ÿØÿà JFIF ÿÛ „ ( %"1"%)+...383,7(-.-
![]() Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20 System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64 User : apache ( 48) PHP Version : 7.4.20 Disable Function : NONE Directory : /tmp/ |
O:13:"Curl\Response":4:{s:6:"status";i:200;s:4:"body";s:2536928:"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 Qx,ZXd,Q09,gf,zMW,bXX,Xd,qG4,S4,rnG,Tn,fX,hn,Anx,j0u,DrG,Nr,Gn,vWD,gWX,YGW,XG4,PG,R0,CX,pX,HG,Mr,SGD,UG,Vx,uu,Tf0,fDG,hMr,Qz,Kz,bU,L9u,nWW,vn,Xm,SR,mrx,IDd,Jn9,ynf,drM,Nfn,GnG,iX9,fz,aD4,ho,Pu0,HXW,Lz,M49,UrG,mw,OXW,yz,NY,Cz,pz,Hn,MY,oWW,BfW,OQ,Bn,oE,W9G,V4r,knf,udG,Wn,xrX,Vz,k$,uU,t4M,F94,to,wGD,EWG,bB,lDu,jB,sEG,Zzr,rl,QEG,z0r,KwG,Tw,bzX,rof,YQx,nG,g$9,jEX,SQM,TXM,h0G,mU,Ic,yM,N6,dl,n$M,mYG,Gw,iB,ac,CG,pG,dYM,HD,M6,oc,BD,NXd,WD,VM,xn,tj,eB,PUn,so,Qe,K9,R0r,zd,CUW,pnu,bp,Z2,q_,rD, Hzn,A6,D2,UYd,vL,gD,XG,o$4,n9,BXX,WwD,VRx,Ozn,L9,Td,Sx,kJr,umX,tRn,e00,wnW,mE,II,J6,E$M,lHd,dD,zJn,qmx,scx,bG0,KU0,Qcn,ZGG,rjx,AjM,jcn,N_,vnM,ip,D6u,Ym0,C9,RI,XDr,$6d,p9,HL,Uo,M_,oI,Oo,xK,BL,Ve,kK,Tln,FG,fIX,ex,wD,Zc,QL,zk,Eo,sb,lp,bi,qq,rb,hJX,qY,jp,Dc,WL,up,v_,nnD,gb,Ao,Y_,X6,Sp,$_,Tk,fu,hr,cju,nu,m6G,c_,IIn,I5,m2,Jr,yL,db,Nq,Gk,JjW,d6f,a5,Nld,Gw4,P_,R5,H_,aIG,Mq,PB9,Ub,CB9,Ob,HGX,o5,B_,W_,MBG,VL,U60,k_,OGu,onf,ui,BlD,x_,tr,ep,wb,VBx,s3,x6G,WUG,Zg,z$,Kt,FUx,bS,rW,eJd,EnW,lIn,A5,j6,Dg,vB,gW,YM,X5, Z99,QI9,zUd,KEd,S6,b9W,qoW,$M,T$,ft,h5,r6G,vKn,gKX,XL9,Yo0,So9,TDD,mB,Iu,J5,yR,dW,G$,iS,nKr,PB,Ct,pt,HB,U3,O3,c6G,ou,BB,VR,I2G,J6f,kM,xM,t5,e6,wW,lS,sD,RUn,CpM,pLx,H90,ZM,QE,Mx9,U_u,O9x,zF,Kx,bY,qe,rg,gg,Xv,TF,Lx,oKr,BDx,dg,WEr,px,Ha,uGn,wL4,FEG,l2x,OD,oe,tl,Q5f,K24,zOG,eO,ED,bux,wg,zB,UD,rrG,qb0,AE,rC,Me,j3,DN,v8,Arn,gC,Dq0,S3,v_D,$r,TB,f$,L$,g_d,YbW,X_9,n$,SbD,$q4,Tbr,JE,fcX,hOX,L2M,crd,n_x,I8,yX,dC,mqW,Icn,JrG,yrd,NT,dqX,GB,jIx,A6x,iG,a8,R8,C$,iun,p$,H8,Ul,ac0,PiD,Ol,Mp0,tE,Cin,Hun,uG,B8,El,lG, Uqn,zD,Ouf,KE,bq,o_d,W2G,jM,kkG,vK,gw,u69,xqn,SM,TD,w_M,lcf,su0,he,ZtG,fE,bt9,Y7,F2G,r5u,KBM,Qux,zWD,A5u,q3G,LE,E_4,mL,rlW,AlG,jeu,Den,vvn,Je,gvG,dw,YDG,$e4,Tgn,Nc,GD,PK,HK,hT9,Mc,Uj,Oj,L6M,nvW,WK,clx,VU,k7,Jl0,deu,GF0,NgG,ixf,x7,eM,sW,Q_,zX,KK,bk,q2,RTd,CYn,rK,paM,Aq,j$,ZY,DY,vj,gK,rX,Ye,Hxf,S$,Oxn,$e,TX,fK,ovX,Bgf,W6X,VOf,hq,LK,nK,cj,tOG,xef,F6d,eTd,wa9,mx,Ev0,kFG,Ij,lM4,s8f,Jq,Q8u,zhn,KDD,b$0,qld,N2,rE9,AEr,j8W,DTW,YlG,vr9,GX,ik,aj,Pj,Rj,CK,pK,M2,SlM,OW,UW,oj,$Tn,Bj,TCf,fNW,hhn,LDG,Wj,ke,mT0,V_, IN9,uk,xe,JEn,tq,FO,e$,wK,EW,lk,i$9,yEW,zp,GBn,KB,NCX,Qr,sc,dTu,Z9,qu,PGu,AY,rc,Y5,Xn,$5,p8G,Sg,hY,H$d,LB,RhM,O$r,orf,BCD,mu,Ib,JY,WD0,yr,dc,Nu,Gp,V3x,iT,CB,pB,kBd,u8n,HJ,xTf,w80,Ern,ehr,lNu,slW,ZED,t30,zGG,Mu,Uc,Oc,KLG,BJ,ob,bED,qjd,re9,uT,AeX,x5,tY,jlX,Fn,v74,eg,DcD,g7u,YjG,XKW,wc,Ec,lT,sg,Zo,QP,z7,Sj4,Kf,bf,qN,$cu,fSD,hGG,A$,Do,jJ,gJ,Y4,Xq,n79,cen,SJ,$4,T7,ISW,JeD,Nwx,yen,GDn,RG4,ff,Pqd,iE0,h$,Lf,Cqd,nf,pKf,cW,MMf,HEx,Ucn,OEf,yP,dJ,o7d,Bw0,WLf,NN,G7,VMu,at,kDr,uAX,tMd,E70,PW,lSn,sj9,ZKG,QjG,zmf, pf,Kx4,bKG,qW4,WW,BW,ot,rqG,AqD,jju,VP,k4,uf,ver,wJ,Eg,lf,sd,Zw,Qq,YW0,Xju,SWd,zI,AG,je,Ys,Xz,TI,TKG,hm9,fYd,Lxr,ne9,N9,cqu,m2r,GI,IYn,JqG,yqD,d2d,RH,aH,C4,p4,H$,NKu,GX4,iK4,M9,Ud,aYu,Od,Pk0,Rmx,Cku,oH,pjG,B$,W$,HKn,M$G,U2r,OKX,oeX,BK0,Vq,ks,uh,tG,kXG,Fz,ee,uOW,V$x,xs,x2G,wo,Ed,lh,Zr,sM,t$n,FxD,em9,Qo,Een,zo,sbf,ZBx,QbG,zcM,Kux,bBu,qc4,rYf,qO,rn,Ab,jbW,AYu,Dud,v5r,Dr,g5d,vQ,YcD,XJn,gn,YP,X1,ScX,Sr,$P,$ud,To,fh,Lh,nh,cQ,mW,I4,Jb,Tcn,f9n,hcn,LuD,yo,n5x,mu0,cYr,NO,Go,JYn,I9W,NcM,a9f,iB9,iA,PTu,Rcn,CTG, HBG,pJn,MgM,a4,Uud,OBM,R4,o5G,BcD,WuG,Vgr,Ch,kpr,ph,un4,HQ,MO,tgd,UM,FuM,OM,o4,ecx,wJu,BQ,Vo,l9r,kP,E54,stu,ZfG,Qtn,Kyf,uA,bfu,F1,er,r$u,A$r,v4u,g4x,wn,EM,lA,s6,Zb,Q$,zH,K8,bR,qD,r2,AO,j_,$Nx,SgW,TJn,h8M,fon,n4X,XWx,Lyn,Ygx,Db,vk,mNf,Ion,J$4,S_,$l,TH,g2,dNd,f8,c$X,G74,if0,NJn,hO,L8,n8,ck,ao4,y$x,PfW,JO,R80,CfD,pWM,Hfu,MJr,o49,BJX,Wyx,VJr,ND,uqX,xNX,e8G,wWx,iR,lox,aF,GH,Z4u,sHd,Kix,rGW,RF,p8,AGd,jHn,D9G,vsx,YdG,U6,MD,X$W,gs9,$9x,fwx,m9u,Bk,Iwu,oF,V$,JGu,kl,xl,e_,yG0,d9X,No0,Km,GI0,i44,YR,aw9,Ryn,XB, ChD,p$4,osn,H4X,fm,hw,Lm,cC,mf,uzu,IR,Jw,yn,teG,GC,Fix,eyx,i_,EsG,PC,RR,Cm,pm,lwG,HC,Ut,Ot,oR,BC,s4X,Vn,kR,u_,xR,tw,FB,ZhX,Q4f,zBX,KW4,bhD,qMM,en,rbr,zO,Ab9,j4G,DOr,Kp,qa,rI,As,vF,gI,Y2,gPu,$2,TO,fp,YMu,XQu,hs,SM9,$OG,np,Irn,Jbu,ybG,cF,dOx,Nnn,aru,Iz,RBn,PAM,yN,pQx,HhG,Mrr,Na,GO,UOn,iW,az,PF,Rz,Cp,pp,HF,Ma,Uf,BF,WF,VN,k2,uW,Ohf,oPx,BnW,ts,et,WWf,sS,ZX,QC,zr,KA,qi,rp,xOn,AN,jL,DX,FWG,tr0,Vr9,Yq,gp,lrW,XJ,mY,LA,In,JN,Z8D,K_W,dp,rOd,b8n,q6u,jFM,Xkn,DDG,gld,Y6W,Gr,Ni,S64,an,PX,Rn,$DD,OS,T2f,on,BX,VC, fbG,uV,xq,hjX,tN,FJ,nlD,ES,s7,ZT,Qs,zM,KS,bb,qW,rt,AW,mDd,jj,gt,v6,JOG,GHX,dDn,N29,i84,ab9,Rj4,CRn,PRn,H8f,$T,TM,LS,M_G,UDW,hW,nS,olG,B2x,uHM,kHf,JW,ys,dt,NW,GM,a7,t_d,F_4,ejG,U7,O7,wkX,Eln,lb9,kT,ub,xT,sR4,Zmd,zwM,bmd,wt,qtn,sI,E7,zS,Kc,qm,rw0,Yk,Xc,Sz,$k,fc,hh,nc,gRn,Ytf,me,XC9,StM,Jh,$7r,Tdx,y6,dr,f80,hwG,nRX,aw,m70,I8x,GS,Jwr,yw9,Nd9,d7u,pc,cwG,imf,a8W,Bs,OI,P_n,Rwr,Ws,V6,C_D,pCn,xk,Hm9,Mnd,U79,OmW,EI,oRX,BdX,Wf9,Vnr,kCu,uBn,x7X,tnf,sn,Ff0,QS,wCn,ER9,l8X,sz9,ZpX,zl,j7,zEn,qf9,D4,rsG,jzG,QzD,Daf, v20,g2x,K$x,bpM,Kj,bC,Af,As4,rM,qQ,Yfn,XFX,Sfx,$af,TId,fPM,IPW,hE9,X3,S7,Tl,daX,ipf,GOn,$S,If,aPn,dM,PWD,CWn,PS,REn,Vtr,pFn,W$x,HS,kOr,ttG,MQ,pj,utW,xan,F$u,On,wFG,E24,lP0,sn0,ZAd,Qnd,zKn,eEr,bA0,qSG,rNu,jnf,AN0,vqX,VS,gqG,kS,uC,xS,YSn,XXd,e7,wM,$iu,SSd,En,Tpn,hKf,nqM,LYW,cNn,JNu,miD,jk,g1,v9,yN4,Dt,Y9,fl,hX,di4,Npx,nl,iAG,IY,mH,yJ,d1,NF,aX0,Gt,aY,PVG,RY,pl,H9,RKG,CVG,pXf,HAX,MF,Oh,MLn,oY,B9,W9,OAx,VJ,k9,oqD,x9,ek,Fh,tX,w1,Eh,VLM,eKM,Eqd,FY0,tLu,wXM,Q4,bO,Q7W,lXf,s7f,ZSn,WYd,vTG,SD,DWn,X6M,j7x,Zx, $Y,jD,YY,gT0,r9,uJf,krG,xiM,KO,AWd,LO,LCG,nO,cWx,mWx,ITX,mZ,JWr,yWM,dWM,GMX,iSn,y4,Pb4,d9,Rg4,CbX,HS0,MjG,G1,UWd,oTx,iO,Btr,am,Pc,jz,xWr,ETx,Uu,swr,z4G,om,bc9,qIG,rhM,Ahx,Eu,jwx,eD,NIx,ty,w9,Fs,Bc,qE,bo,AB,Dz,vkG,vI,Yf,XN,gkM,YID,Ty,SIG,$mD,TrG,fWM,h4x,Le4,nkf,chn,mm4,IWD,ni,Jhf,cI,Ip,yhn,dmd,Nrd,JB,GSG,icf,Gy,io,ap,aWf,PI,PQf,Ci,CQ0,R4r,HI,ME,U2,O2,psf,op,BI,HcX,Mzn,WI,Vw,Brd,Umu,okW,Ocn,kf,uo,xf,WeD,Vz9,kSx,tB,xmW,e4G,Feu,FN,eN,wV,E2,lo,Zm,Qd,z5,KF,bc,qj,rB,wsn,EkX,lWX,A1,jq,Dm,vM,YC,Sq,QfD,Zjd, T5,zk4,fF,h1,LF,nF,cM,J1,yd,dB,Nj,G5,ic,as,PM,Rs,CF,pF,qnn,Mj,O8,rfu,os,jfG,DQM,vSX,YnM,Snx,xC,$Qu,Fw,t1,hkW,Lpx,nSf,wB,E8,mQ9,ZU,QY,za,KV,Jfn,$p,Ta,fV,yfX,h4,I49,LV,nV,NM4,dQG,cO,mh,IC,J4,dh,ij0,a4x,Ga,iK,PO,RC,PCW,aC,pS9,Hjn,M7X,UQr,Ojn,oSd,BMG,pV,CV,CCM,kln,HO,xQG,t79,BO,Fpd,Uw,Ow,ekX,WO,ESx,sY4,VY,kp,Zln,uK,zNn,xp,jYD,rX0,KH9,qh9,blG,FS,eI,wh,Ew,lK,sP,ZV,z0,v9W,X94,qH,E4n,rE,Sh4,T1G,jd,Yj,DV,gE,vA,LHf,hNX,ftG,n9G,Xg,cX0,yXM,Sd,fe,N1n,hK,Le,ne,cA,Gtr,m8,iln,atX,JK,G0,i9,av,PA,Rv,Ce,pe,HA,MH,UP, OP,ov,BA,Pm4,RNn,WA,V5,kj,u9,xj,tK,Cmr,p9u,Fg,jP,UFd,OlM,Dk,vV,Tg,fR,B1W,nR,Ih,WH9,kt4,VkG,uhd,xFu,tkD,FHG,eNX,w9x,ltn,E9n,smu,zHn,bO0,QmM,dx,Nl,ry0,qux,Gg,ah,PV,jmd,Rh,CR,pR,vYx,gYG,HV,DUn,Ml,Suu,Uz,Oz,oh,BV,WV,Vt,kZ,un,xZ,tM,FK,eP,wx,Ez,ln,s$,Z3,QO,z4,KM,bs,qh,rO,Ag,jG,D3,vT,gO,Y0,XZ,SG,$0,T4,fM,hg,LM,nM,cT,mg,Ik,Jg,yO,dO,Nh,G4,is,ak,PT,Rk,CM,pM,HT,Mh,U$,O$,ok,BT,WT,VO,k0,us,x0,tg,FZ,eG,wO,E$,ls,si,Z0,zv,Kw,T9G,bz,w,qf,QF,rZ,AJ,j1,hH9,vh,nY0,D0,cyG,YH,mUG,S1,gZ,$H,Tv,fw,Lw,Jyr,yyu,dUf,N90,Gv,iz, JJ,a$,iOD,axx,POX,RHn,IxW,COx,hJ,pcf,HOf,R$,Ui,Cw,ch,MDx,nw,Ph,pw,Oi,OOX,mP,I$,Mf,Hh,oYM,o$,Bh,Wh,VF,B9n,kH,uz,xH,tJ,Fp,WZM,VDM,us9,xUx,Ei,lz,s1,ZB,EYD,sp4,Qp4,zuu,zQ,bi4,q20,jX,rBf,DB,ve,g7,YE,Xa,SX,ABn,DEu,vfX,jpn,gfG,Y29,hH,LH,ce,Ix,JH,yh,d7,XIG,N4,GQ,nH,Pe,Rx,CH,pH,S2n,ax,TVd,He,fz0,huG,M4,LcX,U1,O1,nfu,cBr,ox,mEG,Izn,Be,JBX,yBx,dEW,NVD,We,Vh,GyX,iiu,kE,u6,xE,az0,tH,Fa,eX,w7,Pod,E1,l6,RuX,ZL,Con,QI,pIW,HiG,MNr,UEG,Oiu,of9,zZ,BV4,Wcf,VNG,KI,ky4,bt,uNn,q5,xEG,r8,tNx,Fcn,A7,Yh,euW,Xy,S5,$h,TZ,wID, fI,h7,LI,EfG,lzn,cN,mr,ZFX,I3,Qs9,z74,ss0,KMG,bFx,q80,yI,r1f,d8,N5,GZ,it,A1D,a3,PN,CI,jsG,pI,HN,DjW,Us,BN,Os,ut,xh,vC9,t7,gCn,e5,w8,Es,Y8W,sZ,ZR,XMn,zu,Ks,VI,bx,qB,rQ,S8r,Ax,j8,DR,$jG,vd,gQ,Y6,XF,S8,Bd,Wd,VH,k6,TBu,fmu,h7W,LMG,FF,ux,e8,wQ,nCG,c10,mjX,EZ,lx,sN,Imr,J1G,tx,y1d,djf,Zl,NBd,Qb,z6,b$,qy,ru,Ak,j9,vv,gu,Xl,S9,$o,T6,Yo,amf,Pcf,hk,Lg,ng,R74,m3,pMu,Ir,Jk,HFG,yb,du,Ny,i$,MqM,G6,ar,Pv,Rr,UjG,Hv,oCW,BBX,WMG,My,UN,VqM,k5G,uwM,ON,tqX,cv,xjx,FMG,or,e7n,Bv,wM9,Wv,ECu,lm4,sCd,ZVn,QCr,Vb,KhW,zo4,ko,tk, bVr,Fl,qwX,e9,r4W,A4u,wu,jCd,DXW,vpx,gpG,EN,Ywr,l$,Swd,Zj,Q1,Thn,$XD,fUn,hon,LhX,KJ,b1,qI,npW,c44,mXn,IUG,J4f,y4W,dXM,NhD,Ga4,iVW,AV,ji,aUM,PKW,Dj,v4,Ro9,gA,Yt,Si,CK4,$t,Tf,fJ,pOr,hV,HVu,LJ,MIu,nJ,UXG,OVu,c4,op4,Bhd,WhG,mq,Io,JV,y1,dA,VIx,kan,NI,Gf,i1,uSX,ao,P4,Ro,CJ,pJ,xX0,tIX,H4,MI,Fhr,U5,O5,oo,B4,k1n,eoD,wOG,W4,EpM,lUf,svW,V1,kt,u1,xt,tV,FV,ei,wA,E5,l1,sp,ZeG,Qvn,r6,Au,z$9,jC,ci,vi,jvM,SPM,DHX,$HX,fVM,h$9,TEW,L8W,njD,cKM,p5,JKx,dHx,G0x,ier,aVM,Up,Op,R$0,C9u,UHM,oU,Oer,pAX,Bi,Wi,VQ,kd,BEn,k0x,W8f, tdx,ZRu,shG,F84,QhG,xd,wAr,e$u,bRG,AMu,rMD,gZf,jhM,tu,FT,TxX,Ep,fkG,JMW,IkW,mlr,cMD,LO4,Nxu,dlG,nZd,RPn,PnD,Cnr,zq,MPG,pVM,HRf,hPx,Ul0,OR4,lD,ZF,iRG,GgM,akf,oZd,s4,yM9,WOM,kgn,xlM,FOX,EZx,lkW,ZMx,Qkn,Kgu,zIr,jkd,q$W,bMf,Dhu,Y$0,XTW,S$d,$hd,XD,yK0,hIu,TOG,Tq,cgd,hQ,I3f,JgG,mhG,Ld,ygG,nd,cx,$E,ml,IVG,Id,JQ,yG,dhG,NOW,d_,G49,iMu,a3G,Nn,Gq,iP,ad,Px,Rd,Cd,pd,Hx,PsM,RIM,Mn,Cs0,U4,xo,O4,od,HMX,pTd,Bx,MG9,Uhx,Wx,VG,OMx,kg,o0n,BOf,NEf,n0u,WgW,uP,TQ,wZ,Kd,VGd,k4W,tQ,$lx,eC,uZn,Sm,$g,qn,bP,uD,AQ,ePr,skG,r_, Yzr,v0D,xhn,zP4,EjG,FD,LgG,Mb,Fgn,tGX,ojG,wVG,eIX,g0d,g_,XVD,SzM,qzd,tP4,uKn,xHM,VdX,Mdx,He4,P94,Bx4,lVG,rg4,Dl4,vZM,DF,vx,jm,Ag0,VP4,E0d,wTu,em,w_,E4,lP,se,zG,qP,r0,Ad,D7,v3,Z7,Qu,jZ,s$W,l3W,g0,XP,Zwn,Q$W,SZ,$N,TG,fY,hd,LY,nY,c3,qiu,IL,m5,rJn,KPG,bw0,AJn,Jd,yu,j$u,Df9,d0,vHn,Ah,Yix,gHX,Sid,TZx,f0M,$fn,h5x,cJG,RL,CY,mf9,I04,pY,H3,JJD,yJ9,dfW,NZn,Ue,oL,B3,iw9,a0G,CzG,Hwn,M1n,phX,kN,xN,uJ,UfG,Owf,W3,oHG,BZd,WP0,V14,Vu,t14,FPG,e50,xf9,upW,kvM,wh4,EHd,Pz9,l0d,R5x,sxf,ZHn,bHn,QxM,zzn,Ko4,AH9,q14,rHn,jx9, D4n,FP,Y14,vEd,Xex,gEG,S1M,$4r,T7n,fB4,hzx,Lo9,nEG,cHx,m4G,IBr,JHf,yHf,eZ,N79,GQn,iHn,d4d,aB9,P69,pe4,Ee,Z5,zL,HHn,KZ,b2,qV,oEn,Wod,B7n,kQG,lBf,XU,A0,VXW,OHG,U4u,MX9,YL,jl,gL,h0,LZ,Q3D,nZ,co,fZ,qs4,zfn,Krn,r7d,mG,I6,j3f,yy,dL,NV,GL,i2,a6,Po,D54,vhn,R6,CZ,Ho,YsM,XNn,pZ,MV,T8d,fLM,UJ,hf0,Bo,LrD,Wo,kL,nh4,Vy,u2,c7f,t0,ILr,J7r,el,wL,QT,d5G,l2,z9,b7,N8G,rm,ZE,KQ,GZu,At,iIX,jc,aL9,EJ,sX,y7n,qo,DE,Pt9,Rf0,vz,Ctx,gm,Yi,XM,Sc,pNX,T9,$i,fQ,ht,HI9,M5r,LQ,nQ,cz,mS,Ia,U5G,Jt,yT,OIx,ohn,dm,No,G9,Wrd,B8r,i7,V5d, kZx,uyr,aa,x5f,t5r,FrM,efn,wNW,Pz,Ra,CQ,pQ,EhM,lLd,Mo,sVG,UX,OX,Zsf,QVd,oa,zRW,KVx,Ax4,jVD,bsX,qZX,rxW,Wz,VT,ki,u7,DBr,v69,xi,g64,XdW,YZD,wm,ec,$Bn,TQM,fRW,hRx,EX,LVd,sa,Zd,n6d,mBn,IRD,zi,rz,NQn,we4,D5,isG,aR9,Px9,RRf,CxM,rL,KD,pdG,Dd,vg,UBn,Osn,o6G,gz,kuu,BQG,WVf,xBd,t8d,YQ,FV4,uFW,eRG,X9,S2,$Q,wdD,E6n,Ti,fD,lR0,hR,srW,LD,AR,JR,ZgM,EEG,ua4,y3,dz,Gi,iI,aW,Pg,RW,N1,Hg,zlf,Oa,K34,bgr,qNG,rkx,AkM,oW,Dyn,Bg,god,Wg,XvM,SNu,YNG,vox,$y9,TuD,flx,tR,hln,L3u,ckx,F9,ZIG,wz,Ilx,ykf,Sl,dyr,Nu0,lI,igX,vo,G6W,x4x, Fou,ezG,myM,s_,Z1,Qf,alu,P$0,zK,Rln,ba,qx,r5,AC,jY,C$G,D1,vZ,pvr,HgG,g5,Ya,X4,SY,$a,TK,Uyn,M9n,fn,OgW,Bux,hC,W3G,oou,Mx,pn,U_,oM,BZ,uI,V9n,wvd,dZ,HZ,ua,ZJr,zXd,JC,eY,IM,w5,sK,Cn,Zf,AVn,Q0,zs,jon,DID,vt0,gtx,KU,Y5G,X4G,b8,S5W,Lq0,hXG,$IM,fjd,TAD,qk,ntW,rv,cVf,mIn,JVG,yVX,dIu,P1u,gv,YF,p4n,SH,$F,HJG,OJW,otX,BA4,Wqu,Ts,Vin,uVf,xIG,Gs,QUG,w4f,Etx,Ktu,i8,b5X,rur,qp0,Au9,P1,pU,jU4,aO,H1,Mk,Dbx,gdX,Spx,B1,xF,EK,Zu,N6G,GEW,bN,K3,AP,jy,i5d,Rbu,PDr,CDf,v0,Du,H5u,MCn,Ub9,odG,piG,Xo,O5X,B6d,Wtf,Tz,f3,kEn,oO, YG,Sy,LtG,vdn,IAd,IG,rP,p3,l8,UH,OH,oG,Kln,zZx,sH,W0,Va,q4f,kG,rQ4,AQn,Qa,uN,aAG,tP,ebf,qz,jdu,T6D,$bG,YpG,Fo,wP,hZf,fFr,ngd,cQd,Zy,ze,KW,Q7,qZ,rR,mnd,A2,JQD,ju,dn9,gR,yQD,YA,XX,aFn,Su,CPG,pxr,fW,Hdu,Und,ir,Pq,RT,pW,OdD,Hq,MZ,Bq,Wq,V7,kA,ogW,ur,xA,kqM,t2,FX,uDu,xnx,eu,tmM,Flu,eZX,wxG,wR,Eq,Egn,sLn,Z6,QZ,bl,qK,ZY0,rF,AI,jT,D6,v7,QLn,zeu,gF,K54,bYf,YB,rdf,qer,Ad4,X2,DPD,jLx,ST,vNX,$B,TN,gNf,X39,SeD,fL,hI,LL,$Pf,nL,f7u,mm,he0,L59,c7,IA,JI,yZ,I7W,ydn,nNW,Jdn,dPu,cdu,mPW,N09,GGu,GN,iYG,PJM,p3M,MZD,HYu, MK,H7,oA,OYx,B7,W7,VZ,B0x,kB,W5D,oNr,ul,uPf,xB,tI,xPW,F2,tZM,eXG,Z50,ee0,F5n,ENu,w3r,l7f,wF,s6W,ZZf,Q69,bZG,sx,ZJ,QV,r0W,DVr,bv,qG,rU,gLG,vL9,zU,YJn,Xon,SJG,TLG,AZ,y0d,gU,YX,P2X,aA,C2D,por,HZd,Mld,UV0,Sf,OZx,$X,TU,f7,oL0,n7,BLG,WGn,cu,mn,Vl4,kL0,uUr,xVn,tlD,Ii,L7,FGu,JZ,wof,ELd,l54,yV,san,ZQX,Qau,znX,KSD,bQr,qX9,rt4,AtM,jaD,dU,vif,NG,giX,iv,Xzd,Ri,DoW,GU,C7,p7,Hu,MG,Ux,Ox,SXG,oi,$oX,Wu,niX,IEM,Jtx,ytd,don,uv,NmX,mo0,LSD,G9G,VV,iQW,P7G,Bu,kX,fE9,hn4,xX,Rnn,C7M,ctG,Tmf,pzd,F0,HQG,ef,wU,Mc0,Ex,oiu,Uor, OQ0,lv,Bmx,sT,Zp,QK,zb,WS0,VcD,k9n,Kv,xo9,tcn,bH,FSW,qs,ra,enn,wzf,EiG,lEn,sWn,ZDM,qa4,zpn,Red,jw,ARM,jW9,KbG,bD0,QWM,Yz,Xgd,vl,Dp,rRn,$10,Ya4,gQG,vQ0,D1X,Sw,Tzf,il,$z,Tb,fv,fdn,hA,hp9,Lv,LbG,OV,nQG,nv,RA,pL,a7X,Ig,yK,IdW,JRD,da,Gb,JA,mK,ag,cl,cRn,m14,Pl,yRD,d1W,Pu,YXM,P7,Rg,Nzf,Ns,GiM,iD9,adD,PI0,Cv,pv,Hl,CIG,pg0,HDd,M29,U1r,aEG,UT,OT,og,Ms,oQW,VZn,kGd,Bl,Bzn,WbM,V2u,kiG,Wl,u94,VK,x14,Fbn,kz,epG,wgM,xz,EQM,uH,ET,Znr,sMW,Kjr,zsD,bnW,q_W,QM4,$O,ldn,rC9,Tm,AC4,vaW,jMd,Dx9,hi,ed9,gaW,Y_f,XZu,S_G,$xd, L1,n1,cP,T5x,mT,IP,f19,Ji,hsG,Lj4,yi,nax,cC9,mxx,I1n,dH,j6u,Nd,dxr,Gm,yCd,ig,N50,A0x,K7,GKX,aP,RP,Pau,a14,BP,Vi,WP,Ca4,ug,pZG,Hnf,xO,OnX,B59,Uxx,WjG,VYu,kKu,u4n,xxx,Fjx,esx,wZ0,tYn,Ff,PP,l1W,MYM,sOM,oaX,eF,QOu,EaX,ti,zvW,K14,rFX,vFM,AFG,gFD,DkG,YKx,bU4,wH,X1r,qKG,ZO,ff4,L1n,hvf,nF9,cFG,mkd,Tvu,If4,JFG,Er,yFG,dkX,NvD,Gs4,P8G,afX,iUX,zA,RvG,p1r,HUn,MHG,Ukf,qM,rY,ai,OUd,oFG,BvX,ksr,VHu,W1n,uRf,tHd,F1G,xkX,s0,tA,w19,EFn,lfW,qHD,QGG,zQ9,KdW,rPd,jGG,SaM,KP,Z3n,sGn,APW,UV,b3M,AA,CL,jOn,X0X,YHr,SHr,$zW,TP4, fuW,C8n,wa,FW,vG4,hQu,gGf,Ldu,t2d,nG9,$kn,SK0,DzD,ew,DO,vb,mzn,gY,Iu0,JPM,yPx,dzn,NPW,i3G,au4,p0n,PN4,CNu,H30,XC,oGG,Uzu,O3M,Vy4,kzn,uoG,xzf,tyW,YV,FdG,Wdn,Myu,Ss,eQx,RQ4,w0n,$V,luD,sTn,ZW9,EG0,TA,KID,zSW,rAn,qT9,bvx,AA9,jgd,fP,Dsx,vzu,YT4,XlG,gzM,STf,LK4,Tau,fpn,hxG,nzn,cA4,msG,JAG,Ip0,yAD,dsx,Nan,ivD,apu,Rxx,PHx,CHd,Gbn,plr,Mwd,Us9,ozM,WKG,Ovx,nP,VwM,kbX,HvD,uWf,Bar,cb,xsd,twM,FK0,exu,wlM,Ezn,lpW,Z1x,z9d,KTr,b1n,qrG,rin,IK,Aif,J9,Dd9,vOW,Yrf,GA,Sr9,$dW,THD,fiu,LTn,h9W,mdG,Iin,iX,Pb,nOM,ci4,JiG, CP,dd9,yiX,NH0,Gmx,i1n,R9X,aiM,H10,pP,Pgu,MFu,Hb,BHd,U0,O0,WTd,MM,VF9,oK,xdd,ufM,O1n,oOu,tFu,FTX,e9X,Ud0,wPD,Bb,EOd,kmx,XPn,RK,sKn,VD,ZPx,QKu,z2M,K4n,bP9,q0n,r99,A99,jKD,DMf,kV,vVW,gVd,Xbd,S0G,$Mn,Y04,TYn,fOW,h29,L4G,nVf,t9,c9M,FC,iF4,mMn,IOG,es,J9n,y9X,E0,GA9,iP9,lX,PXG,R2G,aOD,NYW,sB,wY,dMX,zT,Q9,CXd,K_,Za,UMG,BYr,Vs0,kAf,xM4,HPn,W44,tsM,Ms0,F4n,e2u,j0,b5,EVn,wb9,rj,Z_0,Q_D,oVW,OPW,s_W,zVr,uC9,pbM,Da,vy,gj,K7r,Y1,Dvn,r8X,v19,A84,qBn,g1D,b_0,$vD,YBr,Xk,Tj0,hV0,n1G,c89,mvx,y8G,f_,dvr,IaW,A8,i_n,aau, m7,ZUf,S0,P5u,RV9,pyX,C5f,H_4,GT9,L_,M0D,UvW,O_f,Bj4,o1x,evX,W74,h8,V04,ukd,kTn,t09,xv4,L7n,eV4,F7r,n_,$1,wyd,J8,la9,sq4,Zy9,QqM,zqG,I_,$s0,J8x,KR0,cPn,qv,byG,qUu,rvd,Avx,jqG,y9,dj,v3n,g34,YUx,Dpn,Xf9,Nv,f_u,$pu,T4W,hqd,GT,LRW,n3W,cvd,i5,mpx,JvG,yv9,dpx,a_,I_G,Py,R_,N4d,G2D,Hy,C_,p_,iyr,Mv,a_x,PMx,RqW,pf0,CMu,V9,MWG,UpG,Hy4,OyG,k1,o3n,u5,B44,x1,WRu,VWu,tWG,xpG,wfW,k2G,FRr,t8,uix,eqD,E3X,l_G,sXG,Zbd,e0,QX9,l5,wj,zCG,sU,Z_,bbG,z2,Ky,qkf,QB,r3G,bM,jX0,A3x,r4,Av,jW,gb4,DCd,vbn,D_,Yk9,T$n,SkX,XR9,$Cn, vf,hCu,c3d,mCr,g4,Isf,J3n,Lsd,nbu,N$G,Ghr,ib4,asG,Pj4,RC4,SW,Mb4,$3,pRX,Hb9,B$u,Xi,T2,fy,CjW,UCX,Ws9,hv,Ly,Vbd,kh9,uEG,ny,xCu,tbG,Fsd,eC4,wRM,EbW,lsX,QQn,sQM,ztu,KXG,qAX,ra4,Pf,YAD,jQn,D3D,XU9,SAD,gJD,AaW,$3u,fKr,TyG,htn,Jan,Cy,NyD,aK4,iaf,G30,m3G,IKW,LXf,nJn,yax,py,Hf,Rtd,mI,N_d,Cdx,UU,oq,Hau,pUx,d3x,U3X,OaX,oJ4,Bf,Byn,Fi,VQG,k3f,uju,tQn,x3n,FXW,eW,w4,etW,lKf,s1f,sk,EJM,ZCG,Q1G,wUM,Zs,Kb,zi0,Kvu,zh,bCr,qOr,rzG,Az9,D$f,j1n,YOu,Xpd,v8G,$$W,T3d,g84,r$,A3,fCG,LvM,jb,hif,n8W,m$9,czu,ICd,Ds,Jz0,yzn,d$9, vR,g$,G_f,N30,iCf,aCx,Ri4,PZd,CZd,pp9,HCW,MVd,U$4,o8u,XE,Yb,Sb,B3u,Wvf,OCM,tVM,Fvu,eiX,lC4,E8n,wpD,s2G,Z6x,$b,Th,Q2n,z1X,Kz0,b6G,rpX,Apx,h3,j2G,fb,nb,qRf,DLn,vc9,gcX,YRG,XmX,ms,SRX,$L0,h1u,IX,Lzr,fen,J3,ym,ncx,cpX,IeG,ypn,mLW,Jp4,NC,dLn,GPM,i6d,Py0,R1G,Gh,ij,CyG,NSM,Mv9,H6X,pmd,aX,PR,O6u,ULW,RX,Cb,oc4,pb,BSD,Wzn,VvX,HR,kPf,MC,uQd,Uk,Ok,Fzf,e10,wmf,le9,sSG,Zq9,EcM,zDG,QSu,K0f,rcW,WR,jSG,AcG,bq4,qFr,DSr,vIn,Vm,kb,gIW,YF4,Xt4,SFD,$S0,TN0,hDD,L0n,NNG,mSr,IZn,nI4,iqX,w$,lj,CLr,Qv,z3,ptW,aZu,eb,q3,bd,sA, MKx,ry,Oqu,BNn,oIu,Aa,ZK,FE,USd,Ka,PLf,Hqd,VKf,uj,jQ,kjM,ubn,Ek,RDx,DK,vU,xS4,gy,YJ,Xj,tKM,F0M,wtn,EIG,eDn,SQ,sZu,lZn,$J,Zod,T3,fa,QZd,z_X,KQW,bod,qEu,AmX,Dt0,jZx,rmM,ha,vDD,YEx,gDu,La,na,X5d,$tM,TkG,cU,SEG,fhG,h_u,LQW,nDx,cmn,mtu,Ih9,IQ,Ja,ymr,Jmu,dtD,yv,dy,Nk9,GxX,ahW,ioM,P3D,G3,R_M,C3f,aQ,p5G,Ho9,MaG,UtM,Oo0,oDn,WQD,Vau,kxd,BkG,urx,xtM,ta0,FQn,e_G,w59,EDx,lhf,HU,sNG,ZN4,QN0,bN4,jNx,rUu,KaW,OA,qLG,zrd,AUW,oQ,vUD,DAD,BU,gUf,YLx,X2f,h9,SLx,Lau,nUG,cUn,WU,mA9,kJ,QD,In0,ud,JUM,Vv,yUn,dAd,Rrn,wy,EA, sO,ZC,p2x,Ce4,Nsn,Qc,HNG,MoM,ON4,z_,oUx,BsX,WaG,ld,kYx,Vo9,KC,anr,Fj,ux0,xAn,toG,FaM,GYD,iNu,eQ,erD,syf,Z0G,zLG,lnX,qCf,dF,NK,lg,jyn,Dw4,ATG,vwM,Qy4,rTx,w2W,gw4,b0u,YCG,KNX,iH,Rp4,lOM,bZ,f1,EU9,SC4,hLG,r3,LN0,nwf,TGd,jV,cTW,mwf,Xw4,IQD,fQd,JTu,DC,Az,yTW,NGG,dwX,q$,i0n,Y8,aQ9,vp,Xe,g3,SV,NjX,P4M,pw0,C4G,MUr,Uwn,H0n,T_,$8,owx,BGM,WN4,Ewn,tUd,FNu,uun,Zr9,kR9,LC,KFf,QBf,brM,q9D,r_x,cp,mv,D8W,jBn,A_f,Jz,ww9,G_,gxX,N$,I1,XEn,TTf,fqG,sBu,S9n,Pp,haG,eLd,vxu,yc,LFr,nC,nxr,c_G,m8X,pC,Hp,Y99,Iqx,J_W,M$,UO,y_f, d3,zan,d8n,NTX,GVr,$8u,ir4,iZ,aqW,a1,vq,PFd,CFG,OO,o1,pE0,Hrx,MEG,CC,R1,U8G,RLX,Oru,oxd,BTX,WF9,VEW,Bp,Wp,x8x,ea4,Exn,u_X,qv0,rSd,ASu,jJG,DJG,vyM,gyD,XHG,YvX,Vc,k8,uZ,SvG,$Jn,TqG,u$,fG9,x8,hAr,tz,Fe,J7,eV,e1,LJM,fd,f3G,nyG,w6,cSW,Cg,pg,xg,mJn,IGG,JSf,ySd,dJ4,w3,G8d,ikG,EO,sR,Ze,aGD,C0u,pHf,Ql,Hk0,P0X,RA9,Mh0,UJr,Ok4,oyd,Bqf,zP,Vh4,$EX,mo,s5,k8r,u$f,zf,WJ9,i6,xJn,thM,FJG,K6,fg,wH0,EyW,by,qL,lGG,rS,s90,lZ,Z2G,Q9n,OF0,Ap,jv,z3X,De,vm,KAr,gS,b2n,Yc,XQ,qyx,rLG,XOn,Sv,AL0,Dg0,j90,$c,vmn,TP,f6,gmW,Yyr,Xr0, Syf,$g0,TiW,fvn,LAG,L6,h3x,nmd,cLr,mgd,Ivd,Ni9,JLG,yLD,dgG,i2d,Pwu,R3n,Cw4,avG,n6,pr4,H2f,MAM,UgW,O2X,mz,omM,I2,Jp,yl,Bif,WAn,kWD,uId,xgG,tA0,e3f,FAG,wr9,dS,NL,sDn,Emu,lvG,GP,ZT4,QD9,iy,a2,z6G,Pm,Kkn,R2,bTG,C6,p6,qY9,Hm,ML,rDG,AD0,UR,OR,jDW,o2,DRG,vuM,kc,gu0,YYf,XYd,Ten,$Rn,uy,f$f,h6u,Lk0,mHD,SYG,cDG,mRf,JD4,s0f,DD;Qx=function(Z){return function(){return s0f[Z].apply(this,arguments)}}; g.zn=function(Z,Q){return s0f[Z]=Q}; ZXd=function(Z){var Q=0;return function(){return Q<Z.length?{done:!1,value:Z[Q++]}:{done:!0}}}; Q09=function(Z){Z=["object"==typeof globalThis&&globalThis,Z,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var Q=0;Q<Z.length;++Q){var z=Z[Q];if(z&&z.Math==Math)return z}throw Error("Cannot find global object");}; gf=function(Z,Q){if(Q)a:{var z=g.An;Z=Z.split(".");for(var K=0;K<Z.length-1;K++){var b=Z[K];if(!(b in z))break a;z=z[b]}Z=Z[Z.length-1];K=z[Z];Q=Q(K);Q!=K&&Q!=null&&DD(z,Z,{configurable:!0,writable:!0,value:Q})}}; zMW=function(Z){Z={next:Z};Z[Symbol.iterator]=function(){return this}; return Z}; g.L=function(Z,Q){Z.prototype=K9f(Q.prototype);Z.prototype.constructor=Z;if(YW)YW(Z,Q);else for(var z in Q)if(z!="prototype")if(Object.defineProperties){var K=Object.getOwnPropertyDescriptor(Q,z);K&&Object.defineProperty(Z,z,K)}else Z[z]=Q[z];Z.L0=Q.prototype}; g.n=function(Z){var Q=typeof Symbol!="undefined"&&Symbol.iterator&&Z[Symbol.iterator];if(Q)return Q.call(Z);if(typeof Z.length=="number")return{next:ZXd(Z)};throw Error(String(Z)+" is not an iterable or ArrayLike");}; bXX=function(Z){for(var Q,z=[];!(Q=Z.next()).done;)z.push(Q.value);return z}; g.I=function(Z){return Z instanceof Array?Z:bXX(g.n(Z))}; Xd=function(Z){return qG4(Z,Z)}; qG4=function(Z,Q){Z.raw=Q;Object.freeze&&(Object.freeze(Z),Object.freeze(Q));return Z}; S4=function(Z,Q){return Object.prototype.hasOwnProperty.call(Z,Q)}; rnG=function(Z){if(!(Z instanceof Object))throw new TypeError("Iterator result "+Z+" is not an object");}; Tn=function(){this.T=!1;this.W=null;this.j=void 0;this.Y=1;this.L=this.K=0;this.U=this.S=null}; fX=function(Z){if(Z.T)throw new TypeError("Generator is already running");Z.T=!0}; hn=function(Z,Q){Z.S={S0:Q,iK:!0};Z.Y=Z.K||Z.L}; g.P=function(Z,Q,z){Z.Y=z;return{value:Q}}; Anx=function(Z,Q,z){Q=g.n(Q);var K=Q.next();rnG(K);if(K.done)Z.j=K.value,Z.Y=z;else return Z.W=Q,g.P(Z,K.value,z)}; g.LX=function(Z){Z.Y=0}; g.nX=function(Z,Q,z){Z.K=Q;z!=void 0&&(Z.L=z)}; g.cG=function(Z,Q){Z.K=0;Z.L=Q||0}; g.m9=function(Z,Q,z){Z.Y=Q;Z.K=z||0}; g.I0=function(Z,Q){Z.K=Q||0;Q=Z.S.S0;Z.S=null;return Q}; g.Jn=function(Z,Q,z,K){K?Z.U[K]=Z.S:Z.U=[Z.S];Z.K=Q||0;Z.L=z||0}; g.yx=function(Z,Q,z){z=Z.U.splice(z||0)[0];(z=Z.S=Z.S||z)?z.iK?Z.Y=Z.K||Z.L:z.O$!=void 0&&Z.L<z.O$?(Z.Y=z.O$,Z.S=null):Z.Y=Z.L:Z.Y=Q}; j0u=function(Z){this.Y=new Tn;this.j=Z}; DrG=function(Z,Q){fX(Z.Y);var z=Z.Y.W;if(z)return Nr(Z,"return"in z?z["return"]:function(K){return{value:K,done:!0}},Q,Z.Y.return); Z.Y.return(Q);return Gn(Z)}; Nr=function(Z,Q,z,K){try{var b=Q.call(Z.Y.W,z);rnG(b);if(!b.done)return Z.Y.T=!1,b;var q=b.value}catch(r){return Z.Y.W=null,hn(Z.Y,r),Gn(Z)}Z.Y.W=null;K.call(Z.Y,q);return Gn(Z)}; Gn=function(Z){for(;Z.Y.Y;)try{var Q=Z.j(Z.Y);if(Q)return Z.Y.T=!1,{value:Q.value,done:!1}}catch(z){Z.Y.j=void 0,hn(Z.Y,z)}Z.Y.T=!1;if(Z.Y.S){Q=Z.Y.S;Z.Y.S=null;if(Q.iK)throw Q.S0;return{value:Q.return,done:!0}}return{value:void 0,done:!0}}; vWD=function(Z){this.next=function(Q){fX(Z.Y);Z.Y.W?Q=Nr(Z,Z.Y.W.next,Q,Z.Y.X):(Z.Y.X(Q),Q=Gn(Z));return Q}; this.throw=function(Q){fX(Z.Y);Z.Y.W?Q=Nr(Z,Z.Y.W["throw"],Q,Z.Y.X):(hn(Z.Y,Q),Q=Gn(Z));return Q}; this.return=function(Q){return DrG(Z,Q)}; this[Symbol.iterator]=function(){return this}}; gWX=function(Z,Q){Q=new vWD(new j0u(Q));YW&&Z.prototype&&YW(Q,Z.prototype);return Q}; YGW=function(Z){function Q(K){return Z.next(K)} function z(K){return Z.throw(K)} return new Promise(function(K,b){function q(r){r.done?K(r.value):Promise.resolve(r.value).then(Q,z).then(q,b)} q(Z.next())})}; g.C=function(Z){return YGW(new vWD(new j0u(Z)))}; g.iu=function(){for(var Z=Number(this),Q=[],z=Z;z<arguments.length;z++)Q[z-Z]=arguments[z];return Q}; XG4=function(Z,Q,z){Z instanceof String&&(Z=String(Z));for(var K=Z.length,b=0;b<K;b++){var q=Z[b];if(Q.call(z,q,b,Z))return{Df:b,l2:q}}return{Df:-1,l2:void 0}}; PG=function(Z,Q,z){if(Z==null)throw new TypeError("The 'this' value for String.prototype."+z+" must not be null or undefined");if(Q instanceof RegExp)throw new TypeError("First argument to String.prototype."+z+" must not be a regular expression");return Z+""}; R0=function(Z,Q){Z instanceof String&&(Z+="");var z=0,K=!1,b={next:function(){if(!K&&z<Z.length){var q=z++;return{value:Q(q,Z[q]),done:!1}}K=!0;return{done:!0,value:void 0}}}; b[Symbol.iterator]=function(){return b}; return b}; CX=function(Z){return Z?Z:Array.prototype.fill}; pX=function(Z){return Z?Z:Array.prototype.copyWithin}; HG=function(Z){Z=Math.trunc(Z)||0;Z<0&&(Z+=this.length);if(!(Z<0||Z>=this.length))return this[Z]}; Mr=function(Z){return Z?Z:HG}; SGD=function(Z,Q,z){Z instanceof String&&(Z=String(Z));for(var K=Z.length-1;K>=0;K--){var b=Z[K];if(Q.call(z,b,K,Z))return{Df:K,l2:b}}return{Df:-1,l2:void 0}}; UG=function(Z){return Z?Z:function(Q,z){return SGD(this,Q,z).Df}}; g.BG=function(Z,Q,z){Z=Z.split(".");z=z||g.OG;for(var K;Z.length&&(K=Z.shift());)Z.length||Q===void 0?z[K]&&z[K]!==Object.prototype[K]?z=z[K]:z=z[K]={}:z[K]=Q}; Vx=function(Z,Q){var z=g.WG("CLOSURE_FLAGS");Z=z&&z[Z];return Z!=null?Z:Q}; g.WG=function(Z,Q){Z=Z.split(".");Q=Q||g.OG;for(var z=0;z<Z.length;z++)if(Q=Q[Z[z]],Q==null)return null;return Q}; uu=function(Z){var Q=typeof Z;return Q!="object"?Q:Z?Array.isArray(Z)?"array":Q:"null"}; g.xW=function(Z){var Q=uu(Z);return Q=="array"||Q=="object"&&typeof Z.length=="number"}; g.tn=function(Z){var Q=typeof Z;return Q=="object"&&Z!=null||Q=="function"}; g.e4=function(Z){return Object.prototype.hasOwnProperty.call(Z,Fd)&&Z[Fd]||(Z[Fd]=++$rM)}; Tf0=function(Z,Q,z){return Z.call.apply(Z.bind,arguments)}; fDG=function(Z,Q,z){if(!Z)throw Error();if(arguments.length>2){var K=Array.prototype.slice.call(arguments,2);return function(){var b=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(b,K);return Z.apply(Q,b)}}return function(){return Z.apply(Q,arguments)}}; g.EG=function(Z,Q,z){g.EG=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?Tf0:fDG;return g.EG.apply(null,arguments)}; g.lu=function(Z,Q){var z=Array.prototype.slice.call(arguments,1);return function(){var K=z.slice();K.push.apply(K,arguments);return Z.apply(this,K)}}; g.sQ=function(){return Date.now()}; hMr=function(Z){return Z}; g.ZH=function(Z,Q){function z(){} z.prototype=Q.prototype;Z.L0=Q.prototype;Z.prototype=new z;Z.prototype.constructor=Z;Z.pM=function(K,b,q){for(var r=Array(arguments.length-2),D=2;D<arguments.length;D++)r[D-2]=arguments[D];return Q.prototype[b].apply(K,r)}}; Qz=function(Z,Q){if(Q!==null&&Q!==void 0){if(typeof Q!=="object"&&typeof Q!=="function")throw new TypeError("Object expected.");if(z===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");var z=Q[Symbol.dispose]}if(typeof z!=="function")throw new TypeError("Object not disposable.");Z.stack.push({value:Q,dispose:z,async:!1})}return Q}; Kz=function(Z){function Q(q){Z.error=Z.hasError?new SuppressedError(q,Z.error,"An error was suppressed during disposal."):q;Z.hasError=!0} function z(){for(;K=Z.stack.pop();)try{if(!K.async&&b===1)return b=0,Z.stack.push(K),Promise.resolve().then(z);if(K.dispose){var q=K.dispose.call(K.value);if(K.async)return b|=2,Promise.resolve(q).then(z,function(r){Q(r);return z()})}else b|=1}catch(r){Q(r)}if(b===1)return Z.hasError?Promise.reject(Z.error):Promise.resolve(); if(Z.hasError)throw Z.error;} var K,b=0;z()}; bU=function(Z,Q,z){z=z===void 0?Error():z;var K=Error.call(this);this.message=K.message;"stack"in K&&(this.stack=K.stack);this.code=Z;Q+=":";z instanceof Error?(this.message=Q+z.message,this.stack=z.stack||""):(this.message=Q+String(z),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)}; L9u=function(Z){var Q=Q===void 0?46:Q;var z=[];qY(Z,rX,6).forEach(function(K){Ao(K,2)<=Q&&z.push(Ao(K,1))}); return z}; nWW=function(Z){var Q=Q===void 0?46:Q;var z=[];qY(Z,rX,6).forEach(function(K){Ao(K,2)>Q&&z.push(Ao(K,1))}); return z}; g.jR=function(Z){Z&&typeof Z.dispose=="function"&&Z.dispose()}; g.DH=function(Z){for(var Q=0,z=arguments.length;Q<z;++Q){var K=arguments[Q];g.xW(K)?g.DH.apply(null,K):g.jR(K)}}; g.O=function(){this.o0=this.o0;this.WS=this.WS}; g.W=function(Z,Q){Z.addOnDisposeCallback(g.lu(g.jR,Q))}; vn=function(Z){Z.then(function(){},function(){})}; Xm=function(){g.O.apply(this,arguments);this.W=1;this[cnW]=this.dispose}; SR=function(Z){return{fieldType:2,fieldName:Z}}; g.TJ=function(Z){return{fieldType:3,fieldName:Z}}; mrx=function(Z){this.Y=Z;Z.pY("/client_streamz/bg/frs",g.TJ("ke"))}; IDd=function(Z){this.Y=Z;Z.pY("/client_streamz/bg/wrl",g.TJ("mn"),SR("ac"),SR("sc"),g.TJ("rk"),g.TJ("mk"))}; Jn9=function(Z){this.j=Z;Z.Zq("/client_streamz/bg/ec",g.TJ("en"),g.TJ("mk"))}; ynf=function(Z){this.Y=Z;Z.pY("/client_streamz/bg/el",g.TJ("en"),g.TJ("rk"),g.TJ("mk"))}; drM=function(Z){this.j=Z;Z.Zq("/client_streamz/bg/cec",SR("ec"),g.TJ("rk"),g.TJ("mk"))}; Nfn=function(Z){this.j=Z;Z.Zq("/client_streamz/bg/po/csc",SR("cs"),g.TJ("rk"),g.TJ("mk"))}; GnG=function(Z){this.j=Z;Z.Zq("/client_streamz/bg/po/ctav",g.TJ("av"),g.TJ("rk"),g.TJ("mk"))}; iX9=function(Z){this.j=Z;Z.Zq("/client_streamz/bg/po/cwsc",g.TJ("su"),g.TJ("rk"),g.TJ("mk"))}; fz=function(Z,Q){if(Error.captureStackTrace)Error.captureStackTrace(this,fz);else{var z=Error().stack;z&&(this.stack=z)}Z&&(this.message=String(Z));Q!==void 0&&(this.cause=Q)}; aD4=function(){}; ho=function(){throw Error("Invalid UTF8");}; Pu0=function(Z,Q){Q=String.fromCharCode.apply(null,Q);return Z==null?Q:Z+Q}; HXW=function(Z){var Q=!1;Q=Q===void 0?!1:Q;if(RMn){if(Q&&(CuG?!Z.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(Z)))throw Error("Found an unpaired surrogate");Z=(pGD||(pGD=new TextEncoder)).encode(Z)}else{for(var z=0,K=new Uint8Array(3*Z.length),b=0;b<Z.length;b++){var q=Z.charCodeAt(b);if(q<128)K[z++]=q;else{if(q<2048)K[z++]=q>>6|192;else{if(q>=55296&&q<=57343){if(q<=56319&&b<Z.length){var r=Z.charCodeAt(++b);if(r>=56320&&r<=57343){q=(q-55296)*1024+ r-56320+65536;K[z++]=q>>18|240;K[z++]=q>>12&63|128;K[z++]=q>>6&63|128;K[z++]=q&63|128;continue}else b--}if(Q)throw Error("Found an unpaired surrogate");q=65533}K[z++]=q>>12|224;K[z++]=q>>6&63|128}K[z++]=q&63|128}}Z=z===K.length?K:K.subarray(0,z)}return Z}; Lz=function(Z){g.OG.setTimeout(function(){throw Z;},0)}; M49=function(Z){return Array.prototype.map.call(Z,function(Q){Q=Q.toString(16);return Q.length>1?Q:"0"+Q}).join("")}; UrG=function(Z){for(var Q=[],z=0;z<Z.length;z+=2)Q.push(parseInt(Z.substring(z,z+2),16));return Q}; g.cn=function(Z){for(var Q=[],z=0,K=0;K<Z.length;K++){var b=Z.charCodeAt(K);b<128?Q[z++]=b:(b<2048?Q[z++]=b>>6|192:((b&64512)==55296&&K+1<Z.length&&(Z.charCodeAt(K+1)&64512)==56320?(b=65536+((b&1023)<<10)+(Z.charCodeAt(++K)&1023),Q[z++]=b>>18|240,Q[z++]=b>>12&63|128):Q[z++]=b>>12|224,Q[z++]=b>>6&63|128),Q[z++]=b&63|128)}return Q}; mw=function(Z,Q){return Z.lastIndexOf(Q,0)==0}; OXW=function(Z,Q){var z=Z.length-Q.length;return z>=0&&Z.indexOf(Q,z)==z}; g.IE=function(Z){return/^[\s\xa0]*$/.test(Z)}; g.Jo=function(Z,Q){return Z.indexOf(Q)!=-1}; yz=function(Z,Q){return g.Jo(Z.toLowerCase(),Q.toLowerCase())}; g.GJ=function(Z,Q){var z=0;Z=dX(String(Z)).split(".");Q=dX(String(Q)).split(".");for(var K=Math.max(Z.length,Q.length),b=0;z==0&&b<K;b++){var q=Z[b]||"",r=Q[b]||"";do{q=/(\d*)(\D*)(.*)/.exec(q)||["","","",""];r=/(\d*)(\D*)(.*)/.exec(r)||["","","",""];if(q[0].length==0&&r[0].length==0)break;z=NY(q[1].length==0?0:parseInt(q[1],10),r[1].length==0?0:parseInt(r[1],10))||NY(q[2].length==0,r[2].length==0)||NY(q[2],r[2]);q=q[3];r=r[3]}while(z==0)}return z}; NY=function(Z,Q){return Z<Q?-1:Z>Q?1:0}; g.iU=function(){var Z=g.OG.navigator;return Z&&(Z=Z.userAgent)?Z:""}; Cz=function(Z){return aE||Pn?RE?RE.brands.some(function(Q){return(Q=Q.brand)&&g.Jo(Q,Z)}):!1:!1}; pz=function(Z){return g.Jo(g.iU(),Z)}; Hn=function(){return aE||Pn?!!RE&&RE.brands.length>0:!1}; MY=function(){return Hn()?!1:pz("Opera")}; oWW=function(){return Hn()?!1:pz("Trident")||pz("MSIE")}; BfW=function(){return Hn()?Cz("Microsoft Edge"):pz("Edg/")}; OQ=function(){return pz("Firefox")||pz("FxiOS")}; Bn=function(){return pz("Safari")&&!(oE()||(Hn()?0:pz("Coast"))||MY()||(Hn()?0:pz("Edge"))||BfW()||(Hn()?Cz("Opera"):pz("OPR"))||OQ()||pz("Silk")||pz("Android"))}; oE=function(){return Hn()?Cz("Chromium"):(pz("Chrome")||pz("CriOS"))&&!(Hn()?0:pz("Edge"))||pz("Silk")}; W9G=function(){return pz("Android")&&!(oE()||OQ()||MY()||pz("Silk"))}; V4r=function(Z){var Q={};Z.forEach(function(z){Q[z[0]]=z[1]}); return function(z){return Q[z.find(function(K){return K in Q})]||""}}; knf=function(Z){var Q=g.iU();if(Z==="Internet Explorer"){if(oWW())if((Z=/rv: *([\d\.]*)/.exec(Q))&&Z[1])Q=Z[1];else{Z="";var z=/MSIE +([\d\.]+)/.exec(Q);if(z&&z[1])if(Q=/Trident\/(\d.\d)/.exec(Q),z[1]=="7.0")if(Q&&Q[1])switch(Q[1]){case "4.0":Z="8.0";break;case "5.0":Z="9.0";break;case "6.0":Z="10.0";break;case "7.0":Z="11.0"}else Z="7.0";else Z=z[1];Q=Z}else Q="";return Q}var K=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");z=[];for(var b;b=K.exec(Q);)z.push([b[1],b[2],b[3]||void 0]); Q=V4r(z);switch(Z){case "Opera":if(MY())return Q(["Version","Opera"]);if(Hn()?Cz("Opera"):pz("OPR"))return Q(["OPR"]);break;case "Microsoft Edge":if(Hn()?0:pz("Edge"))return Q(["Edge"]);if(BfW())return Q(["Edg"]);break;case "Chromium":if(oE())return Q(["Chrome","CriOS","HeadlessChrome"])}return Z==="Firefox"&&OQ()||Z==="Safari"&&Bn()||Z==="Android Browser"&&W9G()||Z==="Silk"&&pz("Silk")?(Q=z[2])&&Q[1]||"":""}; udG=function(Z){if(Hn()&&Z!=="Silk"){var Q=RE.brands.find(function(z){return z.brand===Z}); if(!Q||!Q.version)return NaN;Q=Q.version.split(".")}else{Q=knf(Z);if(Q==="")return NaN;Q=Q.split(".")}return Q.length===0?NaN:Number(Q[0])}; Wn=function(){return aE||Pn?!!RE&&!!RE.platform:!1}; xrX=function(){return Wn()?RE.platform==="Android":pz("Android")}; Vz=function(){return pz("iPhone")&&!pz("iPod")&&!pz("iPad")}; k$=function(){return Vz()||pz("iPad")||pz("iPod")}; uU=function(){return Wn()?RE.platform==="macOS":pz("Macintosh")}; t4M=function(){return Wn()?RE.platform==="Windows":pz("Windows")}; g.x$=function(Z){return Z[Z.length-1]}; F94=function(Z,Q){var z=Z.length,K=typeof Z==="string"?Z.split(""):Z;for(--z;z>=0;--z)z in K&&Q.call(void 0,K[z],z,Z)}; g.Fm=function(Z,Q,z){Q=to(Z,Q,z);return Q<0?null:typeof Z==="string"?Z.charAt(Q):Z[Q]}; to=function(Z,Q,z){for(var K=Z.length,b=typeof Z==="string"?Z.split(""):Z,q=0;q<K;q++)if(q in b&&Q.call(z,b[q],q,Z))return q;return-1}; g.eR=function(Z,Q,z){var K=Z.length,b=typeof Z==="string"?Z.split(""):Z;for(--K;K>=0;K--)if(K in b&&Q.call(z,b[K],K,Z))return K;return-1}; g.wX=function(Z,Q){return eMf(Z,Q)>=0}; wGD=function(Z){if(!Array.isArray(Z))for(var Q=Z.length-1;Q>=0;Q--)delete Z[Q];Z.length=0}; g.lU=function(Z,Q){Q=eMf(Z,Q);var z;(z=Q>=0)&&g.EQ(Z,Q);return z}; g.EQ=function(Z,Q){return Array.prototype.splice.call(Z,Q,1).length==1}; g.sm=function(Z,Q){Q=to(Z,Q);Q>=0&&g.EQ(Z,Q)}; EWG=function(Z,Q){var z=0;F94(Z,function(K,b){Q.call(void 0,K,b,Z)&&g.EQ(Z,b)&&z++})}; g.ZI=function(Z){return Array.prototype.concat.apply([],arguments)}; g.QM=function(Z){var Q=Z.length;if(Q>0){for(var z=Array(Q),K=0;K<Q;K++)z[K]=Z[K];return z}return[]}; g.KG=function(Z,Q){for(var z=1;z<arguments.length;z++){var K=arguments[z];if(g.xW(K)){var b=Z.length||0,q=K.length||0;Z.length=b+q;for(var r=0;r<q;r++)Z[b+r]=K[r]}else Z.push(K)}}; g.q6=function(Z,Q,z,K){Array.prototype.splice.apply(Z,bB(arguments,1))}; bB=function(Z,Q,z){return arguments.length<=2?Array.prototype.slice.call(Z,Q):Array.prototype.slice.call(Z,Q,z)}; lDu=function(Z){for(var Q=0,z=0,K={};z<Z.length;){var b=Z[z++],q=g.tn(b)?"o"+g.e4(b):(typeof b).charAt(0)+b;Object.prototype.hasOwnProperty.call(K,q)||(K[q]=!0,Z[Q++]=b)}Z.length=Q}; g.Aj=function(Z,Q,z){return sEG(Z,z||rl,!1,Q)}; jB=function(Z,Q){return sEG(Z,Q,!0)}; sEG=function(Z,Q,z,K){for(var b=0,q=Z.length,r;b<q;){var D=b+(q-b>>>1),v=void 0;z?v=Q.call(void 0,Z[D],D,Z):v=Q(K,Z[D]);v>0?b=D+1:(q=D,r=!v)}return r?b:-b-1}; g.DI=function(Z,Q){Z.sort(Q||rl)}; Zzr=function(Z,Q){var z=rl;g.DI(Z,function(K,b){return z(Q(K),Q(b))})}; g.vD=function(Z,Q,z){if(!g.xW(Z)||!g.xW(Q)||Z.length!=Q.length)return!1;var K=Z.length;z=z||QEG;for(var b=0;b<K;b++)if(!z(Z[b],Q[b]))return!1;return!0}; rl=function(Z,Q){return Z>Q?1:Z<Q?-1:0}; QEG=function(Z,Q){return Z===Q}; g.X7=function(Z,Q,z){z=g.Aj(Z,Q,z);z<0&&g.q6(Z,-(z+1),0,Q)}; g.$n=function(Z,Q,z){var K={};(0,g.SB)(Z,function(b,q){K[Q.call(z,b,q,Z)]=b}); return K}; z0r=function(Z){for(var Q=[],z=0;z<Z;z++)Q[z]="";return Q}; KwG=function(Z,Q){Q=Array.prototype.splice.call(Z,Q,1);Array.prototype.splice.call(Z,0,0,Q[0])}; Tw=function(Z){Tw[" "](Z);return Z}; bzX=function(Z,Q){try{return Tw(Z[Q]),!0}catch(z){}return!1}; rof=function(Z,Q){var z=qQx;return Object.prototype.hasOwnProperty.call(z,Z)?z[Z]:z[Z]=Q(Z)}; g.fG=function(Z){return rof(Z,function(){return g.GJ(AoX,Z)>=0})}; g.hj=function(Z,Q){Q===void 0&&(Q=0);jEX();Q=DYf[Q];for(var z=Array(Math.floor(Z.length/3)),K=Q[64]||"",b=0,q=0;b<Z.length-2;b+=3){var r=Z[b],D=Z[b+1],v=Z[b+2],Y=Q[r>>2];r=Q[(r&3)<<4|D>>4];D=Q[(D&15)<<2|v>>6];v=Q[v&63];z[q++]=""+Y+r+D+v}Y=0;v=K;switch(Z.length-b){case 2:Y=Z[b+1],v=Q[(Y&15)<<2]||K;case 1:Z=Z[b],z[q]=""+Q[Z>>2]+Q[(Z&3)<<4|Y>>4]+v+K}return z.join("")}; g.LG=function(Z,Q){if(v$d&&!Q)Z=g.OG.btoa(Z);else{for(var z=[],K=0,b=0;b<Z.length;b++){var q=Z.charCodeAt(b);q>255&&(z[K++]=q&255,q>>=8);z[K++]=q}Z=g.hj(z,Q)}return Z}; YQx=function(Z){var Q=[];g$9(Z,function(z){Q.push(z)}); return Q}; nG=function(Z){var Q=Z.length,z=Q*3/4;z%3?z=Math.floor(z):g.Jo("=.",Z[Q-1])&&(z=g.Jo("=.",Z[Q-2])?z-2:z-1);var K=new Uint8Array(z),b=0;g$9(Z,function(q){K[b++]=q}); return b!==z?K.subarray(0,b):K}; g$9=function(Z,Q){function z(v){for(;K<Z.length;){var Y=Z.charAt(K++),X=cD[Y];if(X!=null)return X;if(!g.IE(Y))throw Error("Unknown base64 encoding at char: "+Y);}return v} jEX();for(var K=0;;){var b=z(-1),q=z(0),r=z(64),D=z(64);if(D===64&&b===-1)break;Q(b<<2|q>>4);r!=64&&(Q(q<<4&240|r>>2),D!=64&&Q(r<<6&192|D))}}; jEX=function(){if(!cD){cD={};for(var Z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),Q=["+/=","+/","-_=","-_.","-_"],z=0;z<5;z++){var K=Z.concat(Q[z].split(""));DYf[z]=K;for(var b=0;b<K.length;b++){var q=K[b];cD[q]===void 0&&(cD[q]=b)}}}}; SQM=function(Z){if(!Xn0)return g.hj(Z);for(var Q="",z=0,K=Z.length-10240;z<K;)Q+=String.fromCharCode.apply(null,Z.subarray(z,z+=10240));Q+=String.fromCharCode.apply(null,z?Z.subarray(z):Z);return btoa(Q)}; TXM=function(Z){return $Yx[Z]||""}; h0G=function(Z){if(!Xn0)return nG(Z);fHn.test(Z)&&(Z=Z.replace(fHn,TXM));Z=atob(Z);for(var Q=new Uint8Array(Z.length),z=0;z<Z.length;z++)Q[z]=Z.charCodeAt(z);return Q}; mU=function(Z){return LwG&&Z!=null&&Z instanceof Uint8Array}; Ic=function(Z,Q){n$M(Q);this.Y=Z;if(Z!=null&&Z.length===0)throw Error("ByteString should be constructed with non-empty values");}; yM=function(){return coG||(coG=new Ic(null,Jj))}; N6=function(Z){return new Uint8Array(dl(Z)||0)}; dl=function(Z){n$M(Jj);var Q=Z.Y;Q=Q==null||mU(Q)?Q:typeof Q==="string"?h0G(Q):null;return Q==null?Q:Z.Y=Q}; n$M=function(Z){if(Z!==Jj)throw Error("illegal external caller");}; mYG=function(Z,Q){Z.__closure__error__context__984382||(Z.__closure__error__context__984382={});Z.__closure__error__context__984382.severity=Q}; Gw=function(Z){Z=Error(Z);mYG(Z,"warning");return Z}; iB=function(Z){if(Z!=null){var Q;var z=(Q=IHn)!=null?Q:IHn={};Q=z[Z]||0;Q>=5||(z[Z]=Q+1,Z=Error(),mYG(Z,"incident"),Lz(Z))}}; ac=function(Z,Q,z){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(z===void 0?0:z)&&Symbol.for&&Z?Symbol.for(Z):Z!=null?Symbol(Z):Symbol():Q}; CG=function(Z,Q){PD||Rc in Z||JoD(Z,yoX);Z[Rc]|=Q}; pG=function(Z,Q){PD||Rc in Z||JoD(Z,yoX);Z[Rc]=Q}; dYM=function(Z,Q){pG(Q,(Z|0)&-30975)}; HD=function(Z,Q){pG(Q,(Z|34)&-30941)}; M6=function(){return typeof BigInt==="function"}; oc=function(Z){return Array.prototype.slice.call(Z)}; BD=function(Z){return Z!==null&&typeof Z==="object"&&!Array.isArray(Z)&&Z.constructor===Object}; NXd=function(Z,Q){if(Z!=null)if(typeof Z==="string")Z=Z?new Ic(Z,Jj):yM();else if(Z.constructor!==Ic)if(mU(Z))Z=Z.length?new Ic(new Uint8Array(Z),Jj):yM();else{if(!Q)throw Error();Z=void 0}return Z}; WD=function(Z){if(Z&2)throw Error();}; VM=function(Z,Q){if(typeof Q!=="number"||Q<0||Q>=Z.length)throw Error();}; xn=function(Z){var Q=hMr(kn);return Q?Z[Q]:void 0}; tj=function(Z){Z.BeF=!0;return Z}; eB=function(Z){var Q=Z;if(GJr(Q)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(Q))throw Error(String(Q));}else if(iz9(Q)&&!Number.isSafeInteger(Q))throw Error(String(Q));return F7?BigInt(Z):Z=aH4(Z)?Z?"1":"0":GJr(Z)?Z.trim()||"0":String(Z)}; PUn=function(Z,Q){if(Z.length>Q.length)return!1;if(Z.length<Q.length||Z===Q)return!0;for(var z=0;z<Z.length;z++){var K=Z[z],b=Q[z];if(K>b)return!1;if(K<b)return!0}}; so=function(Z){var Q=Z>>>0;wl=Q;lB=(Z-Q)/4294967296>>>0}; Qe=function(Z){if(Z<0){so(0-Z);var Q=g.n(Z2(wl,lB));Z=Q.next().value;Q=Q.next().value;wl=Z>>>0;lB=Q>>>0}else so(Z)}; K9=function(Z,Q){var z=Q*4294967296+(Z>>>0);return Number.isSafeInteger(z)?z:zd(Z,Q)}; R0r=function(Z,Q){var z=Q&2147483648;z&&(Z=~Z+1>>>0,Q=~Q>>>0,Z==0&&(Q=Q+1>>>0));Z=K9(Z,Q);return typeof Z==="number"?z?-Z:Z:z?"-"+Z:Z}; zd=function(Z,Q){Q>>>=0;Z>>>=0;if(Q<=2097151)var z=""+(4294967296*Q+Z);else M6()?z=""+(BigInt(Q)<<BigInt(32)|BigInt(Z)):(z=(Z>>>24|Q<<8)&16777215,Q=Q>>16&65535,Z=(Z&16777215)+z*6777216+Q*6710656,z+=Q*8147497,Q*=2,Z>=1E7&&(z+=Z/1E7>>>0,Z%=1E7),z>=1E7&&(Q+=z/1E7>>>0,z%=1E7),z=Q+CUW(z)+CUW(Z));return z}; CUW=function(Z){Z=String(Z);return"0000000".slice(Z.length)+Z}; pnu=function(){var Z=wl,Q=lB;Q&2147483648?M6()?Z=""+(BigInt(Q|0)<<BigInt(32)|BigInt(Z>>>0)):(Q=g.n(Z2(Z,Q)),Z=Q.next().value,Q=Q.next().value,Z="-"+zd(Z,Q)):Z=zd(Z,Q);return Z}; bp=function(Z){if(Z.length<16)Qe(Number(Z));else if(M6())Z=BigInt(Z),wl=Number(Z&BigInt(4294967295))>>>0,lB=Number(Z>>BigInt(32)&BigInt(4294967295));else{var Q=+(Z[0]==="-");lB=wl=0;for(var z=Z.length,K=0+Q,b=(z-Q)%6+Q;b<=z;K=b,b+=6)K=Number(Z.slice(K,b)),lB*=1E6,wl=wl*1E6+K,wl>=4294967296&&(lB+=Math.trunc(wl/4294967296),lB>>>=0,wl>>>=0);Q&&(Q=g.n(Z2(wl,lB)),Z=Q.next().value,Q=Q.next().value,wl=Z,lB=Q)}}; Z2=function(Z,Q){Q=~Q;Z?Z=~Z+1:Q+=1;return[Z,Q]}; q_=function(Z,Q){throw Error(Q===void 0?"unexpected value "+Z+"!":Q);}; rD=function(Z){if(Z!=null&&typeof Z!=="number")throw Error("Value of float/double field must be a number, found "+typeof Z+": "+Z);return Z}; Hzn=function(Z){return Z.displayName||Z.name||"unknown type name"}; A6=function(Z){if(Z!=null&&typeof Z!=="boolean")throw Error("Expected boolean but got "+uu(Z)+": "+Z);return Z}; D2=function(Z){switch(typeof Z){case "bigint":return!0;case "number":return jx(Z);case "string":return MRX.test(Z);default:return!1}}; UYd=function(Z){if(typeof Z!=="number")throw Gw("int32");if(!jx(Z))throw Gw("int32");return Z|0}; vL=function(Z){return Z==null?Z:UYd(Z)}; gD=function(Z){if(Z==null)return Z;if(typeof Z==="string"&&Z)Z=+Z;else if(typeof Z!=="number")return;return jx(Z)?Z|0:void 0}; XG=function(Z){if(Z==null)return Z;if(typeof Z==="string"&&Z)Z=+Z;else if(typeof Z!=="number")return;return jx(Z)?Z>>>0:void 0}; o$4=function(Z){var Q=0;Q=Q===void 0?0:Q;if(!D2(Z))throw Gw("int64");var z=typeof Z;switch(Q){case 4096:switch(z){case "string":return Sx(Z);case "bigint":return String($K(64,Z));default:return Td(Z)}case 8192:switch(z){case "string":return Q=f9(Number(Z)),h6(Q)?Z=eB(Q):(Q=Z.indexOf("."),Q!==-1&&(Z=Z.substring(0,Q)),Z=M6()?eB($K(64,BigInt(Z))):eB(Ozn(Z))),Z;case "bigint":return eB($K(64,Z));default:return h6(Z)?eB(L9(Z)):eB(Td(Z))}case 0:switch(z){case "string":return Sx(Z);case "bigint":return eB($K(64, Z));default:return L9(Z)}default:return q_(Q,"Unknown format requested type for int64")}}; n9=function(Z){return Z==null?Z:o$4(Z)}; BXX=function(Z){if(Z[0]==="-")return!1;var Q=Z.length;return Q<20?!0:Q===20&&Number(Z.substring(0,6))<184467}; WwD=function(Z){var Q=Z.length;return Z[0]==="-"?Q<20?!0:Q===20&&Number(Z.substring(0,7))>-922337:Q<19?!0:Q===19&&Number(Z.substring(0,6))<922337}; VRx=function(Z){if(Z<0){Qe(Z);var Q=zd(wl,lB);Z=Number(Q);return h6(Z)?Z:Q}Q=String(Z);if(BXX(Q))return Q;Qe(Z);return K9(wl,lB)}; Ozn=function(Z){if(WwD(Z))return Z;bp(Z);return pnu()}; L9=function(Z){D2(Z);Z=f9(Z);h6(Z)||(Qe(Z),Z=R0r(wl,lB));return Z}; Td=function(Z){D2(Z);Z=f9(Z);if(h6(Z))Z=String(Z);else{var Q=String(Z);WwD(Q)?Z=Q:(Qe(Z),Z=pnu())}return Z}; Sx=function(Z){D2(Z);var Q=f9(Number(Z));if(h6(Q))return String(Q);Q=Z.indexOf(".");Q!==-1&&(Z=Z.substring(0,Q));return Ozn(Z)}; kJr=function(Z){if(Z==null)return Z;if(typeof Z==="bigint")return cL(Z)?Z=Number(Z):(Z=$K(64,Z),Z=cL(Z)?Number(Z):String(Z)),Z;if(D2(Z))return typeof Z==="number"?L9(Z):Sx(Z)}; umX=function(Z){if(Z==null)return Z;var Q=typeof Z;if(Q==="bigint")return String($K(64,Z));if(D2(Z)){if(Q==="string")return Sx(Z);if(Q==="number")return L9(Z)}}; tRn=function(Z){if(Z==null)return Z;var Q=typeof Z;if(Q==="bigint")return String(xYn(64,Z));if(D2(Z)){if(Q==="string")return D2(Z),Q=f9(Number(Z)),h6(Q)&&Q>=0?Z=String(Q):(Q=Z.indexOf("."),Q!==-1&&(Z=Z.substring(0,Q)),BXX(Z)||(bp(Z),Z=zd(wl,lB))),Z;if(Q==="number")return D2(Z),Z=f9(Z),Z>=0&&h6(Z)?Z:VRx(Z)}}; e00=function(Z){if(Z==null||typeof Z=="string"||Z instanceof Ic)return Z;if(mU(Z))return mU(Z)&&iB(Fw4),Z}; wnW=function(Z){if(typeof Z!=="string")throw Error();return Z}; mE=function(Z){if(Z!=null&&typeof Z!=="string")throw Error();return Z}; II=function(Z){return Z==null||typeof Z==="string"?Z:void 0}; J6=function(Z,Q){if(!(Z instanceof Q))throw Error("Expected instanceof "+Hzn(Q)+" but got "+(Z&&Hzn(Z.constructor)));return Z}; E$M=function(Z,Q,z){if(Z!=null&&typeof Z==="object"&&Z.Od===ye)return Z;if(Array.isArray(Z)){var K=Z[Rc]|0,b=K;b===0&&(b|=z&32);b|=z&2;b!==K&&pG(Z,b);return new Q(Z)}}; lHd=function(Z){return Z}; dD=function(Z){return Z}; zJn=function(Z,Q,z,K){return scx(Z,Q,z,K,ZGG,Qcn)}; qmx=function(Z,Q,z,K){return scx(Z,Q,z,K,KU0,bG0)}; scx=function(Z,Q,z,K,b,q){if(!z.length&&!K)return 0;for(var r=0,D=0,v=0,Y=0,X=0,S=z.length-1;S>=0;S--){var T=z[S];K&&S===z.length-1&&T===K||(Y++,T!=null&&v++)}if(K)for(var f in K)S=+f,isNaN(S)||(X+=rjx(S),D++,S>r&&(r=S));Y=b(Y,v)+q(D,r,X);f=v;S=D;T=r;for(var h=X,m=z.length-1;m>=0;m--){var J=z[m];if(!(J==null||K&&m===z.length-1&&J===K)){J=m-Q;var d=b(J,f)+q(S,T,h);d<Y&&(Z=1+J,Y=d);S++;f--;h+=rjx(J);T=Math.max(T,J)}}Q=b(0,0)+q(S,T,h);Q<Y&&(Z=0,Y=Q);if(K){S=D;T=r;h=X;f=v;for(var G in K)K=+G,isNaN(K)|| K>=1024||(S--,f++,h-=G.length,r=b(K,f)+q(S,T,h),r<Y&&(Z=1+K,Y=r))}return Z}; bG0=function(Z,Q,z){return z+Z*3+(Z>1?Z-1:0)}; KU0=function(Z,Q){return(Z>1?Z-1:0)+(Z-Q)*4}; Qcn=function(Z,Q){return Z==0?0:9*Math.max(1<<32-Math.clz32(Z+Z/2-1),4)<=Q?Z==0?0:Z<4?100+(Z-1)*16:Z<6?148+(Z-4)*16:Z<12?244+(Z-6)*16:Z<22?436+(Z-12)*19:Z<44?820+(Z-22)*17:52+32*Z:40+4*Q}; ZGG=function(Z){return 40+4*Z}; rjx=function(Z){return Z>=100?Z>=1E4?Math.ceil(Math.log10(1+Z)):Z<1E3?3:4:Z<10?1:2}; AjM=function(Z,Q,z){var K=oc(Z),b=K.length,q=Q&256?K[b-1]:void 0;b+=q?-1:0;for(Q=Q&512?1:0;Q<b;Q++)K[Q]=z(K[Q]);if(q){Q=K[Q]={};for(var r in q)Q[r]=z(q[r])}(Z=xn(Z))&&(K[kn]=oc(Z));return K}; jcn=function(Z,Q,z,K,b){if(Z!=null){if(Array.isArray(Z)){var q=Z[Rc]|0;return Z.length===0&&q&1?void 0:b&&q&2?Z:N_(Z,Q,z,K!==void 0,b)}return Q(Z,K)}}; N_=function(Z,Q,z,K,b){var q=K||z?Z[Rc]|0:0,r=K?!!(q&32):void 0;K=oc(Z);for(var D=0,v=K.length,Y=0;Y<v;Y++){var X=K[Y];if(Y===v-1&&BD(X)){var S=void 0;var T=Q,f=z,h=r,m=b,J=void 0;for(S in X){var d=jcn(X[S],T,f,h,m);if(d!=null){var G=void 0;((G=J)!=null?G:J={})[S]=d}}S=J}else S=jcn(K[Y],Q,z,r,b);K[Y]=S;S!=null&&(D=Y+1)}D<v&&(K.length=D);z&&((Z=xn(Z))&&(K[kn]=oc(Z)),z(q,K));return K}; vnM=function(Z){switch(typeof Z){case "number":return Number.isFinite(Z)?Z:""+Z;case "bigint":return cL(Z)?Number(Z):""+Z;case "boolean":return Z?1:0;case "object":if(mU(Z))return mU(Z)&&iB(Fw4),SQM(Z);if(Z.Od===ye)return D6u(Z);if(Z instanceof Ic){var Q=Z.Y;return Q==null?"":typeof Q==="string"?Q:Z.Y=SQM(Q)}return}return Z}; ip=function(Z,Q){Q&&(Gd=Q===dD||Q!==lHd&&Q!==zJn&&Q!==qmx?dD:Q);try{return D6u(Z)}finally{Gd=void 0}}; D6u=function(Z){var Q=Z.P4;Z=N_(Q,vnM,void 0,void 0,!1);var z=Q[Rc]|0;if((Q=Z.length)&&!(z&512)){var K=Z[Q-1],b=!1;BD(K)?(Q--,b=!0):K=void 0;var q,r=(q=Gd)!=null?q:dD;q=z&512?0:-1;z=Q-q;r=r(z,q,Z,K);K&&(Z[Q]=void 0);if(z<r&&K){z=!0;for(var D in K){var v=+D;v<=r?(b=v+q,Z[b]=K[D],Q=Math.max(b+1,Q),b=!1,delete K[D]):z=!1}z&&(K=void 0)}for(z=Q-1;Q>0;z=Q-1)if(D=Z[z],D==null)Q--,b=!0;else if(z-=q,z>=r)b=void 0,((b=K)!=null?b:K={})[z]=D,Q--,b=!0;else break;b&&(Z.length=Q);K&&Z.push(K)}return Z}; Ym0=function(Z){switch(typeof Z){case "boolean":return PL||(PL=[0,void 0,!0]);case "number":return Z>0?void 0:Z===0?gnG||(gnG=[0,void 0]):[-Z,void 0];case "string":return[0,Z];case "object":return Z}}; C9=function(Z,Q,z){Z=RI(Z,Q[0],Q[1],z?1:2);Q!==PL&&z&&CG(Z,16384);return Z}; RI=function(Z,Q,z,K){if(Z==null){var b=96;z?(Z=[z],b|=512):Z=[];Q&&(b=b&-33521665|(Q&1023)<<15)}else{if(!Array.isArray(Z))throw Error("narr");b=Z[Rc]|0;16384&b||!(64&b)||2&b||XDr();if(b&2048)throw Error("farr");if(b&64)return Z;K===1||K===2||(b|=64);if(z&&(b|=512,z!==Z[0]))throw Error("mid");a:{z=Z;var q=z.length;if(q){var r=q-1;K=z[r];if(BD(K)){b|=256;Q=b&512?0:-1;r-=Q;if(r>=1024)throw Error("pvtlmt");for(var D in K)q=+D,q<r&&(z[q+Q]=K[D],delete K[D]);b=b&-33521665|(r&1023)<<15;break a}}if(Q){D= Math.max(Q,q-(b&512?0:-1));if(D>1024)throw Error("spvt");b=b&-33521665|(D&1023)<<15}}}pG(Z,b);return Z}; XDr=function(){iB(SmM)}; $6d=function(Z,Q,z){z=z===void 0?HD:z;if(Z!=null){if(LwG&&Z instanceof Uint8Array)return Q?Z:new Uint8Array(Z);if(Array.isArray(Z)){var K=Z[Rc]|0;if(K&2)return Z;Q&&(Q=K===0||!!(K&32)&&!(K&64||!(K&16)));return Q?(pG(Z,K|34),K&4&&Object.freeze(Z),Z):N_(Z,$6d,K&4?HD:z,!0,!0)}Z.Od===ye&&(z=Z.P4,K=z[Rc]|0,Z=K&2?Z:new Z.constructor(p9(z,K,!0)));return Z}}; p9=function(Z,Q,z){var K=z||Q&2?HD:dYM,b=!!(Q&32);Z=AjM(Z,Q,function(q){return $6d(q,b,K)}); CG(Z,32|(z?2:0));return Z}; HL=function(Z){var Q=Z.P4,z=Q[Rc]|0;return z&2?new Z.constructor(p9(Q,z,!1)):Z}; Uo=function(Z,Q){Z=Z.P4;return M_(Z,Z[Rc]|0,Q)}; M_=function(Z,Q,z){if(z===-1)return null;var K=z+(Q&512?0:-1),b=Z.length-1;if(K>=b&&Q&256)return Z[b][z];if(K<=b)return Z[K]}; oI=function(Z,Q,z){var K=Z.P4,b=K[Rc]|0;WD(b);Oo(K,b,Q,z);return Z}; Oo=function(Z,Q,z,K){var b=Q&512?0:-1,q=z+b,r=Z.length-1;if(q>=r&&Q&256)return Z[r][z]=K,Q;if(q<=r)return Z[q]=K,Q;K!==void 0&&(r=Q>>15&1023||536870912,z>=r?K!=null&&(q={},Z[r+b]=(q[z]=K,q),Q|=256,pG(Z,Q)):Z[q]=K);return Q}; xK=function(Z,Q,z,K,b){var q=Z.P4;Z=q[Rc]|0;var r=2&Z?1:K;b=!!b;K=BL(q,Z,Q);var D=K[Rc]|0;if(!(4&D)){4&D&&(K=oc(K),D=WL(D,Z),Z=Oo(q,Z,Q,K));for(var v=0,Y=0;v<K.length;v++){var X=z(K[v]);X!=null&&(K[Y++]=X)}Y<v&&(K.length=Y);D=Ve(D,Z);z=(D|20)&-4097;D=z&=-8193;pG(K,D);2&D&&Object.freeze(K)}r===1||r===4&&32&D?kK(D)||(b=D,D|=2,D!==b&&pG(K,D),Object.freeze(K)):(r===2&&kK(D)&&(K=oc(K),D=WL(D,Z),D=up(D,Z,b),pG(K,D),Z=Oo(q,Z,Q,K)),kK(D)||(Q=D,D=up(D,Z,b),D!==Q&&pG(K,D)));return K}; BL=function(Z,Q,z){Z=M_(Z,Q,z);return Array.isArray(Z)?Z:t6}; Ve=function(Z,Q){Z===0&&(Z=WL(Z,Q));return Z|1}; kK=function(Z){return!!(2&Z)&&!!(4&Z)||!!(2048&Z)}; Tln=function(Z){return NXd(Z,!0)}; FG=function(Z,Q){Z=Z.P4;var z=Z[Rc]|0,K=M_(Z,z,Q),b=Tln(K);b!=null&&b!==K&&Oo(Z,z,Q,b);return b==null?yM():b}; fIX=function(Z,Q,z){var K=Z.P4,b=K[Rc]|0;WD(b);if(Q==null)return Oo(K,b,3),Z;if(!Array.isArray(Q))throw Gw();var q=Q[Rc]|0,r=q,D=kK(q),v=D||Object.isFrozen(Q);D||(q=0);v||(Q=oc(Q),r=0,q=WL(q,b),q=up(q,b,!0),v=!1);q|=21;D=4&q?4096&q?4096:8192&q?8192:0:void 0;D=D!=null?D:0;for(var Y=0;Y<Q.length;Y++){var X=Q[Y],S=z(X,D);Object.is(X,S)||(v&&(Q=oc(Q),r=0,q=WL(q,b),q=up(q,b,!0),v=!1),Q[Y]=S)}q!==r&&(v&&(Q=oc(Q),q=WL(q,b),q=up(q,b,!0)),pG(Q,q));Oo(K,b,3,Q);return Z}; ex=function(Z,Q,z,K){var b=Z.P4,q=b[Rc]|0;WD(q);Oo(b,q,Q,(K==="0"?Number(z)===0:z===K)?void 0:z);return Z}; wD=function(Z,Q,z,K){WD(Q);var b=BL(Z,Q,z),q=b!==t6;if(64&Q||!(16384&Q)||!q){var r=q?b[Rc]|0:0,D=r;if(!q||2&D||kK(D)||4&D&&!(32&D))b=oc(b),D=WL(D,Q),Q=Oo(Z,Q,z,b);D=Ve(D,Q)&-13;D=up(K?D&-17:D|16,Q,!0);D!==r&&pG(b,D)}return b}; Zc=function(Z,Q,z,K){var b=Z.P4,q=b[Rc]|0;WD(q);if(K==null){var r=Eo(b);if(lp(r,b,q,z)===Q)r.set(z,0);else return Z}else q=sb(b,q,z,Q);Oo(b,q,Q,K);return Z}; QL=function(Z,Q,z,K){var b=Z[Rc]|0;b=sb(Z,b,z,Q);Oo(Z,b,Q,K)}; zk=function(Z,Q){Z=Z.P4;return lp(Eo(Z),Z,Z[Rc]|0,Q)}; Eo=function(Z){if(PD){var Q;return(Q=Z[Ku])!=null?Q:Z[Ku]=new Map}if(Ku in Z)return Z[Ku];Q=new Map;Object.defineProperty(Z,Ku,{value:Q});return Q}; sb=function(Z,Q,z,K){z.includes(K);var b=Eo(Z),q=lp(b,Z,Q,z);q!==K&&(q&&(Q=Oo(Z,Q,q)),b.set(z,K));return Q}; lp=function(Z,Q,z,K){var b=Z.get(K);if(b!=null)return b;for(var q=b=0;q<K.length;q++){var r=K[q];M_(Q,z,r)!=null&&(b!==0&&(z=Oo(Q,z,b)),b=r)}Z.set(K,b);return b}; bi=function(Z,Q,z){var K=Z[Rc]|0,b=M_(Z,K,z),q;if(b!=null&&b.Od===ye)return Q=HL(b),Q!==b&&Oo(Z,K,z,Q),Q.P4;if(Array.isArray(b)){var r=b[Rc]|0;r&2?q=C9(p9(b,r,!1),Q,!0):r&64?q=b:q=C9(q,Q,!0)}else q=C9(void 0,Q,!0);q!==b&&Oo(Z,K,z,q);return q}; qq=function(Z,Q,z){Z=Z.P4;var K=Z[Rc]|0,b=M_(Z,K,z);Q=E$M(b,Q,K);Q!==b&&Q!=null&&Oo(Z,K,z,Q);return Q}; rb=function(Z,Q,z){Q=qq(Z,Q,z);if(Q==null)return Q;Z=Z.P4;var K=Z[Rc]|0;if(!(K&2)){var b=HL(Q);b!==Q&&(Q=b,Oo(Z,K,z,Q))}return Q}; hJX=function(Z,Q,z,K,b,q,r){Z=Z.P4;var D=!!(2&Q),v=D?1:b;q=!!q;r&&(r=!D);b=BL(Z,Q,K);var Y=b[Rc]|0;D=!!(4&Y);if(!D){Y=Ve(Y,Q);var X=b,S=Q,T=!!(2&Y);T&&(S|=2);for(var f=!T,h=!0,m=0,J=0;m<X.length;m++){var d=E$M(X[m],z,S);if(d instanceof z){if(!T){var G=!!((d.P4[Rc]|0)&2);f&&(f=!G);h&&(h=G)}X[J++]=d}}J<m&&(X.length=J);Y|=4;Y=h?Y|16:Y&-17;Y=f?Y|8:Y&-9;pG(X,Y);T&&Object.freeze(X)}if(r&&!(8&Y||!b.length&&(v===1||v===4&&32&Y))){kK(Y)&&(b=oc(b),Y=WL(Y,Q),Q=Oo(Z,Q,K,b));z=b;r=Y;for(X=0;X<z.length;X++)Y=z[X], S=HL(Y),Y!==S&&(z[X]=S);r|=8;r=z.length?r&-17:r|16;pG(z,r);Y=r}v===1||v===4&&32&Y?kK(Y)||(Q=Y,Y|=!b.length||16&Y&&(!D||32&Y)?2:2048,Y!==Q&&pG(b,Y),Object.freeze(b)):(v===2&&kK(Y)&&(b=oc(b),Y=WL(Y,Q),Y=up(Y,Q,q),pG(b,Y),Q=Oo(Z,Q,K,b)),kK(Y)||(K=Y,Y=up(Y,Q,q),Y!==K&&pG(b,Y)));return b}; qY=function(Z,Q,z){var K=Z.P4[Rc]|0;return hJX(Z,K,Q,z,void 0===LUf?2:4,!1,!(2&K))}; jp=function(Z,Q,z,K){K!=null?J6(K,Q):K=void 0;return oI(Z,z,K)}; Dc=function(Z,Q,z,K){var b=Z.P4,q=b[Rc]|0;WD(q);if(K==null)return Oo(b,q,z),Z;if(!Array.isArray(K))throw Gw();for(var r=K[Rc]|0,D=r,v=kK(r),Y=v||Object.isFrozen(K),X=!0,S=!0,T=0;T<K.length;T++){var f=K[T];J6(f,Q);v||(f=!!((f.P4[Rc]|0)&2),X&&(X=!f),S&&(S=f))}v||(r=X?13:5,r=S?r|16:r&-17);Y&&r===D||(K=oc(K),D=0,r=WL(r,q),r=up(r,q,!0));r!==D&&pG(K,r);Oo(b,q,z,K);return Z}; WL=function(Z,Q){Z=(2&Q?Z|2:Z&-3)|32;return Z&=-2049}; up=function(Z,Q,z){32&Q&&z||(Z&=-33);return Z}; v_=function(Z,Q,z,K){var b=Z.P4[Rc]|0;WD(b);Z=hJX(Z,b,z,Q,2,!0);K=K!=null?J6(K,z):new z;Z.push(K);Z[Rc]=(K.P4[Rc]|0)&2?Z[Rc]&-9:Z[Rc]&-17}; nnD=function(Z){Z=Uo(Z,1);var Q=Q===void 0?!1:Q;var z=typeof Z;Q=Z==null?Z:z==="bigint"?String($K(64,Z)):D2(Z)?z==="string"?Sx(Z):Q?Td(Z):L9(Z):void 0;return Q}; gb=function(Z,Q){return II(Uo(Z,Q))}; Ao=function(Z,Q,z){z=z===void 0?0:z;var K;return(K=gD(Uo(Z,Q)))!=null?K:z}; Y_=function(Z,Q){var z=z===void 0?0:z;var K;return(K=XG(Uo(Z,Q)))!=null?K:z}; X6=function(Z,Q){var z;return(z=gb(Z,Q))!=null?z:""}; Sp=function(Z,Q){var z=z===void 0?0:z;Z=Uo(Z,Q);Z=Z==null?Z:jx(Z)?Z|0:void 0;return Z!=null?Z:z}; $_=function(Z,Q,z){return oI(Z,Q,n9(z))}; Tk=function(Z,Q,z){return oI(Z,Q,mE(z))}; fu=function(Z,Q,z){return ex(Z,Q,mE(z),"")}; hr=function(Z,Q,z){if(z!=null){if(!jx(z))throw Gw("enum");z|=0}return oI(Z,Q,z)}; cju=function(Z,Q){return Error("Invalid wire type: "+Z+" (at position "+Q+")")}; nu=function(){return Error("Failed to read varint, encoding is invalid.")}; m6G=function(Z,Q){return Error("Tried to read past the end of the data "+Q+" > "+Z)}; c_=function(Z){if(typeof Z==="string")return{buffer:h0G(Z),VH:!1};if(Array.isArray(Z))return{buffer:new Uint8Array(Z),VH:!1};if(Z.constructor===Uint8Array)return{buffer:Z,VH:!1};if(Z.constructor===ArrayBuffer)return{buffer:new Uint8Array(Z),VH:!1};if(Z.constructor===Ic)return{buffer:dl(Z)||new Uint8Array(0),VH:!0};if(Z instanceof Uint8Array)return{buffer:new Uint8Array(Z.buffer,Z.byteOffset,Z.byteLength),VH:!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"); }; IIn=function(Z,Q){this.j=null;this.L=!1;this.Y=this.S=this.W=0;this.init(Z,void 0,void 0,Q)}; I5=function(Z){var Q=0,z=0,K=0,b=Z.j,q=Z.Y;do{var r=b[q++];Q|=(r&127)<<K;K+=7}while(K<32&&r&128);K>32&&(z|=(r&127)>>4);for(K=3;K<32&&r&128;K+=7)r=b[q++],z|=(r&127)<<K;m2(Z,q);if(r<128)return R0r(Q>>>0,z>>>0);throw nu();}; m2=function(Z,Q){Z.Y=Q;if(Q>Z.S)throw m6G(Z.S,Q);}; Jr=function(Z){var Q=Z.j,z=Z.Y,K=Q[z++],b=K&127;if(K&128&&(K=Q[z++],b|=(K&127)<<7,K&128&&(K=Q[z++],b|=(K&127)<<14,K&128&&(K=Q[z++],b|=(K&127)<<21,K&128&&(K=Q[z++],b|=K<<28,K&128&&Q[z++]&128&&Q[z++]&128&&Q[z++]&128&&Q[z++]&128&&Q[z++]&128)))))throw nu();m2(Z,z);return b}; yL=function(Z){var Q=Z.j,z=Z.Y,K=Q[z+0],b=Q[z+1],q=Q[z+2];Q=Q[z+3];m2(Z,Z.Y+4);return(K<<0|b<<8|q<<16|Q<<24)>>>0}; db=function(Z){var Q=yL(Z);Z=yL(Z);return K9(Q,Z)}; Nq=function(Z){var Q=yL(Z),z=yL(Z);Z=(z>>31)*2+1;var K=z>>>20&2047;Q=4294967296*(z&1048575)+Q;return K==2047?Q?NaN:Z*Infinity:K==0?Z*4.9E-324*Q:Z*Math.pow(2,K-1075)*(Q+4503599627370496)}; Gk=function(Z){for(var Q=0,z=Z.Y,K=z+10,b=Z.j;z<K;){var q=b[z++];Q|=q;if((q&128)===0)return m2(Z,z),!!(Q&127)}throw nu();}; JjW=function(Z,Q){if(Q<0)throw Error("Tried to read a negative byte length: "+Q);var z=Z.Y,K=z+Q;if(K>Z.S)throw m6G(Q,Z.S-z);Z.Y=K;return z}; d6f=function(Z,Q){if(Q==0)return yM();var z=JjW(Z,Q);Z.T$&&Z.L?z=Z.j.subarray(z,z+Q):(Z=Z.j,Q=z+Q,z=z===Q?new Uint8Array(0):yjx?Z.slice(z,Q):new Uint8Array(Z.subarray(z,Q)));return z.length==0?yM():new Ic(z,Jj)}; a5=function(Z,Q){if(ii.length){var z=ii.pop();z.init(Z,void 0,void 0,Q);Z=z}else Z=new IIn(Z,Q);this.Y=Z;this.S=this.Y.Y;this.j=this.W=-1;Nld(this,Q)}; Nld=function(Z,Q){Q=Q===void 0?{}:Q;Z.g3=Q.g3===void 0?!1:Q.g3}; Gw4=function(Z){var Q=Z.Y;if(Q.Y==Q.S)return!1;Z.S=Z.Y.Y;var z=Jr(Z.Y)>>>0;Q=z>>>3;z&=7;if(!(z>=0&&z<=5))throw cju(z,Z.S);if(Q<1)throw Error("Invalid field number: "+Q+" (at position "+Z.S+")");Z.W=Q;Z.j=z;return!0}; P_=function(Z){switch(Z.j){case 0:Z.j!=0?P_(Z):Gk(Z.Y);break;case 1:Z=Z.Y;m2(Z,Z.Y+8);break;case 2:if(Z.j!=2)P_(Z);else{var Q=Jr(Z.Y)>>>0;Z=Z.Y;m2(Z,Z.Y+Q)}break;case 5:Z=Z.Y;m2(Z,Z.Y+4);break;case 3:Q=Z.W;do{if(!Gw4(Z))throw Error("Unmatched start-group tag: stream EOF");if(Z.j==4){if(Z.W!=Q)throw Error("Unmatched end-group tag");break}P_(Z)}while(1);break;default:throw cju(Z.j,Z.S);}}; R5=function(Z,Q,z){var K=Z.Y.S,b=Jr(Z.Y)>>>0,q=Z.Y.Y+b,r=q-K;r<=0&&(Z.Y.S=q,z(Q,Z,void 0,void 0,void 0),r=q-Z.Y.Y);if(r)throw Error("Message parsing ended unexpectedly. Expected to read "+(b+" bytes, instead read "+(b-r)+" bytes, either the data ended unexpectedly or the message misreported its own length"));Z.Y.Y=q;Z.Y.S=K}; H_=function(Z){var Q=Jr(Z.Y)>>>0;Z=Z.Y;var z=JjW(Z,Q);Z=Z.j;if(iGx){var K=Z,b;(b=Cu)||(b=Cu=new TextDecoder("utf-8",{fatal:!0}));Q=z+Q;K=z===0&&Q===K.length?K:K.subarray(z,Q);try{var q=b.decode(K)}catch(Y){if(pu===void 0){try{b.decode(new Uint8Array([128]))}catch(X){}try{b.decode(new Uint8Array([97])),pu=!0}catch(X){pu=!1}}!pu&&(Cu=void 0);throw Y;}}else{q=z;Q=q+Q;z=[];for(var r=null,D,v;q<Q;)D=Z[q++],D<128?z.push(D):D<224?q>=Q?ho():(v=Z[q++],D<194||(v&192)!==128?(q--,ho()):z.push((D&31)<<6|v&63)): D<240?q>=Q-1?ho():(v=Z[q++],(v&192)!==128||D===224&&v<160||D===237&&v>=160||((b=Z[q++])&192)!==128?(q--,ho()):z.push((D&15)<<12|(v&63)<<6|b&63)):D<=244?q>=Q-2?ho():(v=Z[q++],(v&192)!==128||(D<<28)+(v-144)>>30!==0||((b=Z[q++])&192)!==128||((K=Z[q++])&192)!==128?(q--,ho()):(D=(D&7)<<18|(v&63)<<12|(b&63)<<6|K&63,D-=65536,z.push((D>>10&1023)+55296,(D&1023)+56320))):ho(),z.length>=8192&&(r=Pu0(r,z),z.length=0);q=Pu0(r,z)}return q}; aIG=function(Z){var Q=Jr(Z.Y)>>>0;return d6f(Z.Y,Q)}; Mq=function(Z,Q,z){this.P4=RI(Z,Q,z)}; PB9=function(Z,Q){if(Q==null||Q=="")return new Z;Q=JSON.parse(Q);if(!Array.isArray(Q))throw Error("dnarr");CG(Q,32);return new Z(Q)}; Ub=function(Z,Q){this.j=Z>>>0;this.Y=Q>>>0}; CB9=function(Z){if(!Z)return RJ0||(RJ0=new Ub(0,0));if(!/^\d+$/.test(Z))return null;bp(Z);return new Ub(wl,lB)}; Ob=function(Z,Q){this.j=Z>>>0;this.Y=Q>>>0}; HGX=function(Z){if(!Z)return pDx||(pDx=new Ob(0,0));if(!/^-?\d+$/.test(Z))return null;bp(Z);return new Ob(wl,lB)}; o5=function(){this.Y=[]}; B_=function(Z,Q,z){for(;z>0||Q>127;)Z.Y.push(Q&127|128),Q=(Q>>>7|z<<25)>>>0,z>>>=7;Z.Y.push(Q)}; W_=function(Z,Q){for(;Q>127;)Z.Y.push(Q&127|128),Q>>>=7;Z.Y.push(Q)}; MBG=function(Z,Q){if(Q>=0)W_(Z,Q);else{for(var z=0;z<9;z++)Z.Y.push(Q&127|128),Q>>=7;Z.Y.push(1)}}; VL=function(Z,Q){Z.Y.push(Q>>>0&255);Z.Y.push(Q>>>8&255);Z.Y.push(Q>>>16&255);Z.Y.push(Q>>>24&255)}; U60=function(){this.S=[];this.j=0;this.Y=new o5}; k_=function(Z,Q){Q.length!==0&&(Z.S.push(Q),Z.j+=Q.length)}; OGu=function(Z,Q){ui(Z,Q,2);Q=Z.Y.end();k_(Z,Q);Q.push(Z.j);return Q}; onf=function(Z,Q){var z=Q.pop();for(z=Z.j+Z.Y.length()-z;z>127;)Q.push(z&127|128),z>>>=7,Z.j++;Q.push(z);Z.j++}; ui=function(Z,Q,z){W_(Z.Y,Q*8+z)}; BlD=function(Z,Q,z){if(z!=null){switch(typeof z){case "string":CB9(z)}ui(Z,Q,1);switch(typeof z){case "number":Z=Z.Y;so(z);VL(Z,wl);VL(Z,lB);break;case "bigint":z=BigInt.asUintN(64,z);z=new Ub(Number(z&BigInt(4294967295)),Number(z>>BigInt(32)));Z=Z.Y;Q=z.Y;VL(Z,z.j);VL(Z,Q);break;default:z=CB9(z),Z=Z.Y,Q=z.Y,VL(Z,z.j),VL(Z,Q)}}}; x_=function(Z,Q,z){ui(Z,Q,2);W_(Z.Y,z.length);k_(Z,Z.Y.end());k_(Z,z)}; tr=function(){function Z(){throw Error();} Object.setPrototypeOf(Z,Z.prototype);return Z}; ep=function(Z,Q,z){this.jq=Z;this.iW=Q;Z=hMr(F6);this.Y=!!Z&&z===Z||!1}; wb=function(Z,Q){var z=z===void 0?F6:z;return new ep(Z,Q,z)}; VBx=function(Z,Q,z,K,b){Q=WUG(Q,K);Q!=null&&(z=OGu(Z,z),b(Q,Z),onf(Z,z))}; s3=function(Z,Q,z,K){var b=K[Z];if(b)return b;b={};b.BSu=K;b.Jf=Ym0(K[0]);var q=K[1],r=1;q&&q.constructor===Object&&(b.extensions=q,q=K[++r],typeof q==="function"&&(b.SN=!0,Eb!=null||(Eb=q),li!=null||(li=K[r+1]),q=K[r+=2]));for(var D={};q&&Array.isArray(q)&&q.length&&typeof q[0]==="number"&&q[0]>0;){for(var v=0;v<q.length;v++)D[q[v]]=q;q=K[++r]}for(v=1;q!==void 0;){typeof q==="number"&&(v+=q,q=K[++r]);var Y=void 0;if(q instanceof ep)var X=q;else X=kwG,r--;q=void 0;if((q=X)==null?0:q.Y){q=K[++r];Y= K;var S=r;typeof q==="function"&&(q=q(),Y[S]=q);Y=q}q=K[++r];S=v+1;typeof q==="number"&&q<0&&(S-=q,q=K[++r]);for(;v<S;v++){var T=D[v];Y?z(b,v,X,Y,T):Q(b,v,X,T)}}return K[Z]=b}; x6G=function(Z){return Array.isArray(Z)?Z[0]instanceof ep?Z:[u7X,Z]:[Z,void 0]}; WUG=function(Z,Q){if(Z instanceof Mq)return Z.P4;if(Array.isArray(Z))return C9(Z,Q,!1)}; Zg=function(Z,Q,z,K){var b=z.jq;Z[Q]=K?function(q,r,D){return b(q,r,D,K)}:b}; z$=function(Z,Q,z,K,b){var q=z.jq,r,D;Z[Q]=function(v,Y,X){return q(v,Y,X,D||(D=s3(QR,Zg,z$,K).Jf),r||(r=Kt(K)),b)}}; Kt=function(Z){var Q=Z[tBf];if(Q!=null)return Q;var z=s3(QR,Zg,z$,Z);Q=z.SN?function(K,b){return Eb(K,b,z)}:function(K,b){for(var q=K[Rc]|0;Gw4(b)&&b.j!=4;){var r=b.W,D=z[r]; if(D==null){var v=z.extensions;v&&(v=v[r])&&(v=FUx(v),v!=null&&(D=z[r]=v))}D!=null&&D(b,K,r)||(D=b,r=D.S,P_(D),D.g3?D=void 0:(v=D.Y.Y-r,D.Y.Y=r,D=d6f(D.Y,v)),r=K,D&&((v=r[kn])?v.push(D):r[kn]=[D]))}q&16384&&CG(K,34);return!0}; return Z[tBf]=Q}; FUx=function(Z){Z=x6G(Z);var Q=Z[0].jq;if(Z=Z[1]){var z=Kt(Z),K=s3(QR,Zg,z$,Z).Jf;return function(b,q,r){return Q(b,q,r,K,z)}}return Q}; bS=function(Z,Q,z){Z[Q]=z.iW}; rW=function(Z,Q,z,K){var b,q,r=z.iW;Z[Q]=function(D,v,Y){return r(D,v,Y,q||(q=s3(q0,bS,rW,K).Jf),b||(b=eJd(K)))}}; eJd=function(Z){var Q=Z[wDr];if(!Q){var z=s3(q0,bS,rW,Z);Q=function(K,b){return EnW(K,b,z)}; Z[wDr]=Q}return Q}; EnW=function(Z,Q,z){for(var K=Z[Rc]|0,b=K&512?0:-1,q=Z.length,r=q+(K&256?-1:0),D=K&512?1:0;D<r;D++){var v=Z[D];if(v!=null){var Y=D-b,X=lIn(z,Y);X&&X(Q,v,Y)}}if(K&256){K=Z[q-1];for(var S in K)b=+S,Number.isNaN(b)||(q=K[b],q!=null&&(r=lIn(z,b))&&r(Q,q,b))}if(Z=xn(Z))for(k_(Q,Q.Y.end()),z=0;z<Z.length;z++)k_(Q,dl(Z[z])||new Uint8Array(0))}; lIn=function(Z,Q){var z=Z[Q];if(z)return z;if(z=Z.extensions)if(z=z[Q]){z=x6G(z);var K=z[0].iW;if(z=z[1]){var b=eJd(z),q=s3(q0,bS,rW,z).Jf;z=Z.SN?li(q,b):function(r,D,v){return K(r,D,v,q,b)}}else z=K; return Z[Q]=z}}; A5=function(Z,Q,z){if(Array.isArray(Q)){var K=Q[Rc]|0;if(K&4)return Q;for(var b=0,q=0;b<Q.length;b++){var r=Z(Q[b]);r!=null&&(Q[q++]=r)}q<b&&(Q.length=q);z&&(pG(Q,(K|5)&-12289),K&2&&Object.freeze(Q));return Q}}; j6=function(Z,Q,z){return new ep(Z,Q,z)}; Dg=function(Z,Q,z){return new ep(Z,Q,z)}; vB=function(Z,Q,z){Oo(Z,Z[Rc]|0,Q,z)}; gW=function(Z,Q,z){Q=Q==null||typeof Q==="number"?Q:Q==="NaN"||Q==="Infinity"||Q==="-Infinity"?Number(Q):void 0;Q!=null&&(ui(Z,z,1),Z=Z.Y,z=sIM||(sIM=new DataView(new ArrayBuffer(8))),z.setFloat64(0,+Q,!0),wl=z.getUint32(0,!0),lB=z.getUint32(4,!0),VL(Z,wl),VL(Z,lB))}; YM=function(Z,Q,z){Q=umX(Q);if(Q!=null){switch(typeof Q){case "string":HGX(Q)}if(Q!=null)switch(ui(Z,z,0),typeof Q){case "number":Z=Z.Y;Qe(Q);B_(Z,wl,lB);break;case "bigint":z=BigInt.asUintN(64,Q);z=new Ob(Number(z&BigInt(4294967295)),Number(z>>BigInt(32)));B_(Z.Y,z.j,z.Y);break;default:z=HGX(Q),B_(Z.Y,z.j,z.Y)}}}; X5=function(Z,Q,z){Q=gD(Q);Q!=null&&Q!=null&&(ui(Z,z,0),MBG(Z.Y,Q))}; Z99=function(Z,Q,z){Q=Q==null||typeof Q==="boolean"?Q:typeof Q==="number"?!!Q:void 0;Q!=null&&(ui(Z,z,0),Z.Y.Y.push(Q?1:0))}; QI9=function(Z,Q,z){Q=II(Q);Q!=null&&x_(Z,z,HXW(Q))}; zUd=function(Z,Q,z,K,b){Q=WUG(Q,K);Q!=null&&(z=OGu(Z,z),b(Q,Z),onf(Z,z))}; KEd=function(Z){return function(){var Q=new U60;EnW(this.P4,Q,s3(q0,bS,rW,Z));k_(Q,Q.Y.end());for(var z=new Uint8Array(Q.j),K=Q.S,b=K.length,q=0,r=0;r<b;r++){var D=K[r];z.set(D,q);q+=D.length}Q.S=[z];return z}}; S6=function(Z){return function(Q){return PB9(Z,Q)}}; b9W=function(Z){this.P4=RI(Z)}; qoW=function(Z,Q){return fIX(Z,Q,UYd)}; $M=function(Z){this.P4=RI(Z)}; T$=function(Z){this.P4=RI(Z)}; ft=function(Z){this.P4=RI(Z)}; h5=function(Z){this.P4=RI(Z)}; r6G=function(Z){this.P4=RI(Z)}; g.D_G=function(Z){var Q=new h5;Q=Tk(Q,1,Z.j);var z=A6x(Z);Q=fIX(Q,z,wnW);z=[];for(var K=[],b=g.n(Z.Y.keys()),q=b.next();!q.done;q=b.next())K.push(q.value.split(","));for(b=0;b<K.length;b++){q=K[b];for(var r=Z.W,D=Z.Zv(q)||[],v=[],Y=0;Y<D.length;Y++){var X=D[Y],S=X&&X.Y;X=new T$;switch(r){case 3:S=Number(S);Number.isFinite(S)&&Zc(X,1,Lt,n9(S));break;case 2:Zc(X,2,Lt,rD(Number(S)))}v.push(X)}r=v;for(D=0;D<r.length;D++){v=r[D];Y=new ft;v=jp(Y,T$,2,v);Y=[];X=jIx(Z);for(S=0;S<X.length;S++){var T=X[S], f=q[S],h=new $M;switch(T){case 3:Zc(h,1,nt,mE(String(f)));break;case 2:T=Number(f);Number.isFinite(T)&&Zc(h,2,nt,vL(T));break;case 1:Zc(h,3,nt,A6(f==="true"))}Y.push(h)}Dc(v,$M,1,Y);z.push(v)}}Dc(Q,ft,4,z);return Q}; vKn=function(Z){if(!Z)return"";if(/^about:(?:blank|srcdoc)$/.test(Z))return window.origin||"";Z.indexOf("blob:")===0&&(Z=Z.substring(5));Z=Z.split("#")[0].split("?")[0];Z=Z.toLowerCase();Z.indexOf("//")==0&&(Z=window.location.protocol+Z);/^[\w\-]*:\/\//.test(Z)||(Z=window.location.href);var Q=Z.substring(Z.indexOf("://")+3),z=Q.indexOf("/");z!=-1&&(Q=Q.substring(0,z));z=Z.substring(0,Z.indexOf("://"));if(!z)throw Error("URI is missing protocol: "+Z);if(z!=="http"&&z!=="https"&&z!=="chrome-extension"&& z!=="moz-extension"&&z!=="file"&&z!=="android-app"&&z!=="chrome-search"&&z!=="chrome-untrusted"&&z!=="chrome"&&z!=="app"&&z!=="devtools")throw Error("Invalid URI scheme in origin: "+z);Z="";var K=Q.indexOf(":");if(K!=-1){var b=Q.substring(K+1);Q=Q.substring(0,K);if(z==="http"&&b!=="80"||z==="https"&&b!=="443")Z=":"+b}return z+"://"+Q+Z}; gKX=function(){function Z(){b[0]=1732584193;b[1]=4023233417;b[2]=2562383102;b[3]=271733878;b[4]=3285377520;X=Y=0} function Q(S){for(var T=r,f=0;f<64;f+=4)T[f/4]=S[f]<<24|S[f+1]<<16|S[f+2]<<8|S[f+3];for(f=16;f<80;f++)S=T[f-3]^T[f-8]^T[f-14]^T[f-16],T[f]=(S<<1|S>>>31)&4294967295;S=b[0];var h=b[1],m=b[2],J=b[3],d=b[4];for(f=0;f<80;f++){if(f<40)if(f<20){var G=J^h&(m^J);var R=1518500249}else G=h^m^J,R=1859775393;else f<60?(G=h&m|J&(h|m),R=2400959708):(G=h^m^J,R=3395469782);G=((S<<5|S>>>27)&4294967295)+G+d+R+T[f]&4294967295;d=J;J=m;m=(h<<30|h>>>2)&4294967295;h=S;S=G}b[0]=b[0]+S&4294967295;b[1]=b[1]+h&4294967295;b[2]= b[2]+m&4294967295;b[3]=b[3]+J&4294967295;b[4]=b[4]+d&4294967295} function z(S,T){if(typeof S==="string"){S=unescape(encodeURIComponent(S));for(var f=[],h=0,m=S.length;h<m;++h)f.push(S.charCodeAt(h));S=f}T||(T=S.length);f=0;if(Y==0)for(;f+64<T;)Q(S.slice(f,f+64)),f+=64,X+=64;for(;f<T;)if(q[Y++]=S[f++],X++,Y==64)for(Y=0,Q(q);f+64<T;)Q(S.slice(f,f+64)),f+=64,X+=64} function K(){var S=[],T=X*8;Y<56?z(D,56-Y):z(D,64-(Y-56));for(var f=63;f>=56;f--)q[f]=T&255,T>>>=8;Q(q);for(f=T=0;f<5;f++)for(var h=24;h>=0;h-=8)S[T++]=b[f]>>h&255;return S} for(var b=[],q=[],r=[],D=[128],v=1;v<64;++v)D[v]=0;var Y,X;Z();return{reset:Z,update:z,digest:K,Kh:function(){for(var S=K(),T="",f=0;f<S.length;f++)T+="0123456789ABCDEF".charAt(Math.floor(S[f]/16))+"0123456789ABCDEF".charAt(S[f]%16);return T}}}; XL9=function(Z,Q,z){var K=String(g.OG.location.href);return K&&Z&&Q?[Q,Yo0(vKn(K),Z,z||null)].join(" "):null}; Yo0=function(Z,Q,z){var K=[],b=[];if((Array.isArray(z)?2:1)==1)return b=[Q,Z],g.SB(K,function(D){b.push(D)}),So9(b.join(" ")); var q=[],r=[];g.SB(z,function(D){r.push(D.key);q.push(D.value)}); z=Math.floor((new Date).getTime()/1E3);b=q.length==0?[z,Q,Z]:[q.join(":"),z,Q,Z];g.SB(K,function(D){b.push(D)}); Z=So9(b.join(" "));Z=[z,Z];r.length==0||Z.push(r.join(""));return Z.join("_")}; So9=function(Z){var Q=gKX();Q.update(Z);return Q.Kh().toLowerCase()}; TDD=function(){var Z=null;if(!$_M)return Z;try{var Q=function(z){return z}; Z=$_M.createPolicy("goog#html",{createHTML:Q,createScript:Q,createScriptURL:Q})}catch(z){}return Z}; mB=function(){cB===void 0&&(cB=TDD());return cB}; Iu=function(Z){this.Y=Z}; J5=function(Z){var Q=mB();return new Iu(Q?Q.createScriptURL(Z):Z)}; yR=function(Z){if(Z instanceof Iu)return Z.Y;throw Error("");}; dW=function(Z){this.Y=Z}; g.N0=function(Z){if(Z instanceof dW)return Z.Y;throw Error("");}; G$=function(Z){this.hH=Z}; iS=function(Z){return new G$(function(Q){return Q.substr(0,Z.length+1).toLowerCase()===Z+":"})}; g.au=function(Z,Q){Q=Q===void 0?f2x:Q;a:if(Q=Q===void 0?f2x:Q,!(Z instanceof dW)){for(var z=0;z<Q.length;++z){var K=Q[z];if(K instanceof G$&&K.hH(Z)){Z=new dW(Z);break a}}Z=void 0}return Z||hUr}; nKr=function(Z){if(LEf.test(Z))return Z}; PB=function(Z){return Z instanceof dW?g.N0(Z):nKr(Z)}; g.Ru=function(Z,Q){Q=PB(Q);Q!==void 0&&(Z.href=Q)}; Ct=function(Z){this.Y=Z}; pt=function(Z){var Q=mB();return new Ct(Q?Q.createHTML(Z):Z)}; HB=function(Z){if(Z instanceof Ct)return Z.Y;throw Error("");}; g.M0=function(Z,Q,z,K){Q=PB(Q);return Q!==void 0?Z.open(Q,z,K):null}; U3=function(Z){Z=Z===void 0?document:Z;var Q,z;Z=(z=(Q=Z).querySelector)==null?void 0:z.call(Q,"script[nonce]");return Z==null?"":Z.nonce||Z.getAttribute("nonce")||""}; O3=function(Z){this.Y=Z}; c6G=function(Z){var Q=mB();return new O3(Q?Q.createScript(Z):Z)}; ou=function(Z){if(Z instanceof O3)return Z.Y;throw Error("");}; BB=function(Z){var Q=U3(Z.ownerDocument);Q&&Z.setAttribute("nonce",Q)}; g.WB=function(Z,Q){Z.src=yR(Q);BB(Z)}; VR=function(){this.Y=m_n[0].toLowerCase()}; I2G=function(Z){var Q="true".toString(),z=[new VR];if(z.length===0)throw Error("");if(z.map(function(K){if(K instanceof VR)K=K.Y;else throw Error("");return K}).every(function(K){return"data-loaded".indexOf(K)!==0}))throw Error('Attribute "data-loaded" does not match any of the allowed prefixes.'); Z.setAttribute("data-loaded",Q)}; J6f=function(Z){var Q=g.WG("window.location.href");Z==null&&(Z='Unknown Error of type "null/undefined"');if(typeof Z==="string")return{message:Z,name:"Unknown error",lineNumber:"Not available",fileName:Q,stack:"Not available"};var z=!1;try{var K=Z.lineNumber||Z.line||"Not available"}catch(r){K="Not available",z=!0}try{var b=Z.fileName||Z.filename||Z.sourceURL||g.OG.$googDebugFname||Q}catch(r){b="Not available",z=!0}Q=kM(Z);if(!(!z&&Z.lineNumber&&Z.fileName&&Z.stack&&Z.message&&Z.name)){z=Z.message; if(z==null){if(Z.constructor&&Z.constructor instanceof Function){if(Z.constructor.name)z=Z.constructor.name;else if(z=Z.constructor,uS[z])z=uS[z];else{z=String(z);if(!uS[z]){var q=/function\s+([^\(]+)/m.exec(z);uS[z]=q?q[1]:"[Anonymous]"}z=uS[z]}z='Unknown Error of type "'+z+'"'}else z="Unknown Error of unknown type";typeof Z.toString==="function"&&Object.prototype.toString!==Z.toString&&(z+=": "+Z.toString())}return{message:z,name:Z.name||"UnknownError",lineNumber:K,fileName:b,stack:Q||"Not available"}}return{message:Z.message, name:Z.name,lineNumber:Z.lineNumber,fileName:Z.fileName,stack:Q}}; kM=function(Z,Q){Q||(Q={});Q[xM(Z)]=!0;var z=Z.stack||"",K=Z.cause;K&&!Q[xM(K)]&&(z+="\nCaused by: ",K.stack&&K.stack.indexOf(K.toString())==0||(z+=typeof K==="string"?K:K.message+"\n"),z+=kM(K,Q));Z=Z.errors;if(Array.isArray(Z)){K=1;var b;for(b=0;b<Z.length&&!(K>4);b++)Q[xM(Z[b])]||(z+="\nInner error "+K++ +": ",Z[b].stack&&Z[b].stack.indexOf(Z[b].toString())==0||(z+=typeof Z[b]==="string"?Z[b]:Z[b].message+"\n"),z+=kM(Z[b],Q));b<Z.length&&(z+="\n... "+(Z.length-b)+" more inner errors")}return z}; xM=function(Z){var Q="";typeof Z.toString==="function"&&(Q=""+Z);return Q+Z.stack}; t5=function(Z,Q,z){return Z.parseFromString(HB(Q),z)}; g.F5=function(Z){return encodeURIComponent(String(Z))}; e6=function(Z){return decodeURIComponent(Z.replace(/\+/g," "))}; wW=function(Z){y6G.test(Z)&&(Z.indexOf("&")!=-1&&(Z=Z.replace(d_M,"&")),Z.indexOf("<")!=-1&&(Z=Z.replace(ND9,"<")),Z.indexOf(">")!=-1&&(Z=Z.replace(GdG,">")),Z.indexOf('"')!=-1&&(Z=Z.replace(i9u,""")),Z.indexOf("'")!=-1&&(Z=Z.replace(a2W,"'")),Z.indexOf("\x00")!=-1&&(Z=Z.replace(PpD,"�")));return Z}; g.E3=function(Z){return Z==null?"":String(Z)}; lS=function(Z){for(var Q=0,z=0;z<Z.length;++z)Q=31*Q+Z.charCodeAt(z)>>>0;return Q}; sD=function(Z){var Q=Number(Z);return Q==0&&g.IE(Z)?NaN:Q}; RUn=function(Z){return String(Z).replace(/\-([a-z])/g,function(Q,z){return z.toUpperCase()})}; CpM=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; pLx=function(Z){return Z.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(Q,z,K){return z+K.toUpperCase()})}; H90=function(Z){var Q=1;Z=Z.split(":");for(var z=[];Q>0&&Z.length;)z.push(Z.shift()),Q--;Z.length&&z.push(Z.join(":"));return z}; ZM=function(Z){this.Y=Z||{cookie:""}}; QE=function(Z){Z=(Z.Y.cookie||"").split(";");for(var Q=[],z=[],K,b,q=0;q<Z.length;q++)b=dX(Z[q]),K=b.indexOf("="),K==-1?(Q.push(""),z.push(b)):(Q.push(b.substring(0,K)),z.push(b.substring(K+1)));return{keys:Q,values:z}}; Mx9=function(){var Z=g.OG.__SAPISID||g.OG.__APISID||g.OG.__3PSAPISID||g.OG.__1PSAPISID||g.OG.__OVERRIDE_SID;if(Z)return!0;typeof document!=="undefined"&&(Z=new ZM(document),Z=Z.get("SAPISID")||Z.get("APISID")||Z.get("__Secure-3PAPISID")||Z.get("__Secure-1PAPISID"));return!!Z}; U_u=function(Z,Q,z,K){(Z=g.OG[Z])||typeof document==="undefined"||(Z=(new ZM(document)).get(Q));return Z?XL9(Z,z,K):null}; O9x=function(Z){var Q=vKn(String(g.OG.location.href)),z=[];if(Mx9()){Q=Q.indexOf("https:")==0||Q.indexOf("chrome-extension:")==0||Q.indexOf("chrome-untrusted://new-tab-page")==0||Q.indexOf("moz-extension:")==0;var K=Q?g.OG.__SAPISID:g.OG.__APISID;K||typeof document==="undefined"||(K=new ZM(document),K=K.get(Q?"SAPISID":"APISID")||K.get("__Secure-3PAPISID"));(K=K?XL9(K,Q?"SAPISIDHASH":"APISIDHASH",Z):null)&&z.push(K);Q&&((Q=U_u("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",Z))&&z.push(Q),(Z=U_u("__3PSAPISID", "__Secure-3PAPISID","SAPISID3PHASH",Z))&&z.push(Z))}return z.length==0?null:z.join(" ")}; zF=function(){}; Kx=function(Z){this.P4=RI(Z)}; bY=function(Z,Q){this.intervalMs=Z;this.callback=Q;this.enabled=!1;this.Y=function(){return g.sQ()}; this.j=this.Y()}; qe=function(Z){this.P4=RI(Z)}; rg=function(Z){this.P4=RI(Z)}; g.Al=function(Z,Q,z){return Math.min(Math.max(Z,Q),z)}; g.jO=function(Z,Q){Z%=Q;return Z*Q<0?Z+Q:Z}; gg=function(Z,Q,z){return Z+z*(Q-Z)}; g.Yv=function(Z,Q){this.x=Z!==void 0?Z:0;this.y=Q!==void 0?Q:0}; Xv=function(Z,Q){return Z==Q?!0:Z&&Q?Z.x==Q.x&&Z.y==Q.y:!1}; g.SO=function(Z,Q){this.width=Z;this.height=Q}; g.$v=function(Z,Q){return Z==Q?!0:Z&&Q?Z.width==Q.width&&Z.height==Q.height:!1}; TF=function(Z){return Z.width*Z.height}; g.fx=function(Z,Q,z){for(var K in Z)Q.call(z,Z[K],K,Z)}; g.hl=function(Z,Q,z){var K={},b;for(b in Z)Q.call(z,Z[b],b,Z)&&(K[b]=Z[b]);return K}; Lx=function(Z,Q){var z={},K;for(K in Z)z[K]=Q.call(void 0,Z[K],K,Z);return z}; g.nx=function(Z,Q,z){for(var K in Z)if(Q.call(z,Z[K],K,Z))return!0;return!1}; oKr=function(Z,Q){for(var z in Z)if(!Q.call(void 0,Z[z],z,Z))return!1;return!0}; g.ca=function(Z){for(var Q in Z)return Q}; BDx=function(Z){for(var Q in Z)return Z[Q]}; g.m6=function(Z){var Q=[],z=0,K;for(K in Z)Q[z++]=Z[K];return Q}; g.Ie=function(Z){var Q=[],z=0,K;for(K in Z)Q[z++]=K;return Q}; g.Jl=function(Z,Q){return Z!==null&&Q in Z}; g.yE=function(Z,Q){for(var z in Z)if(Z[z]==Q)return!0;return!1}; dg=function(Z,Q){for(var z in Z)if(Q.call(void 0,Z[z],z,Z))return z}; WEr=function(Z,Q){return(Q=dg(Z,Q))&&Z[Q]}; g.Ne=function(Z){for(var Q in Z)return!1;return!0}; g.Vxn=function(Z){for(var Q in Z)delete Z[Q]}; g.GF=function(Z,Q,z){return Z!==null&&Q in Z?Z[Q]:z}; g.iY=function(Z,Q){for(var z in Z)if(!(z in Q)||Z[z]!==Q[z])return!1;for(var K in Q)if(!(K in Z))return!1;return!0}; g.ae=function(Z){var Q={},z;for(z in Z)Q[z]=Z[z];return Q}; g.Pa=function(Z){if(!Z||typeof Z!=="object")return Z;if(typeof Z.clone==="function")return Z.clone();if(typeof Map!=="undefined"&&Z instanceof Map)return new Map(Z);if(typeof Set!=="undefined"&&Z instanceof Set)return new Set(Z);if(Z instanceof Date)return new Date(Z.getTime());var Q=Array.isArray(Z)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(Z)||Z instanceof DataView?{}:new Z.constructor(Z.length),z;for(z in Z)Q[z]=g.Pa(Z[z]);return Q}; g.Re=function(Z,Q){for(var z,K,b=1;b<arguments.length;b++){K=arguments[b];for(z in K)Z[z]=K[z];for(var q=0;q<kd4.length;q++)z=kd4[q],Object.prototype.hasOwnProperty.call(K,z)&&(Z[z]=K[z])}}; px=function(Z,Q){this.Y=Z===Cx&&Q||""}; Ha=function(Z){if(Z instanceof Ct)return Z;Z=String(Z).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'");return pt(Z)}; uGn=function(Z){var Q=Ha("");return pt(Z.map(function(z){return HB(Ha(z))}).join(HB(Q).toString()))}; wL4=function(Z){var Q;if(!x_0.test("div"))throw Error("");if(txx.indexOf("DIV")!==-1)throw Error("");var z="<div";Z&&(z+=FEG(Z));Array.isArray(Q)||(Q=Q===void 0?[]:[Q]);eU4.indexOf("DIV")!==-1?z+=">":(Z=uGn(Q.map(function(K){return K instanceof Ct?K:Ha(String(K))})),z+=">"+Z.toString()+"</div>"); return pt(z)}; FEG=function(Z){for(var Q="",z=Object.keys(Z),K=0;K<z.length;K++){var b=z[K],q=Z[b];if(!x_0.test(b))throw Error("");if(q!==void 0&&q!==null){if(/^on./i.test(b))throw Error("");EK0.indexOf(b.toLowerCase())!==-1&&(q=q instanceof dW?q.toString():nKr(String(q))||"about:invalid#zClosurez");q=b+'="'+Ha(String(q))+'"';Q+=" "+q}}return Q}; l2x=function(Z){var Q=g.iu.apply(1,arguments);if(Q.length===0)return J5(Z[0]);for(var z=Z[0],K=0;K<Q.length;K++)z+=encodeURIComponent(Q[K])+Z[K+1];return J5(z)}; OD=function(Z){return Z?new Me(UD(Z)):s54||(s54=new Me)}; oe=function(Z,Q){return typeof Q==="string"?Z.getElementById(Q):Q}; g.Ba=function(Z,Q){return(Q||document).getElementsByTagName(String(Z))}; g.Wa=function(Z,Q){return(Q||document).querySelectorAll("."+Z)}; g.xv=function(Z,Q){var z=Q||document;z.getElementsByClassName?Z=z.getElementsByClassName(Z)[0]:(z=document,Z=Z?(Q||z).querySelector(Z?"."+Z:""):g.uY(z,"*",Z,Q)[0]||null);return Z||null}; g.uY=function(Z,Q,z,K){Z=K||Z;return(Q=Q&&Q!="*"?String(Q).toUpperCase():"")||z?Z.querySelectorAll(Q+(z?"."+z:"")):Z.getElementsByTagName("*")}; tl=function(Z,Q){g.fx(Q,function(z,K){K=="style"?Z.style.cssText=z:K=="class"?Z.className=z:K=="for"?Z.htmlFor=z:ZuX.hasOwnProperty(K)?Z.setAttribute(ZuX[K],z):mw(K,"aria-")||mw(K,"data-")?Z.setAttribute(K,z):Z[K]=z})}; Q5f=function(Z){Z=Z.document;Z=Z.compatMode=="CSS1Compat"?Z.documentElement:Z.body;return new g.SO(Z.clientWidth,Z.clientHeight)}; K24=function(Z){var Q=zOG(Z);Z=Z.defaultView;return new g.Yv(Z.pageXOffset||Q.scrollLeft,Z.pageYOffset||Q.scrollTop)}; zOG=function(Z){return Z.scrollingElement?Z.scrollingElement:g.Fv||Z.compatMode!="CSS1Compat"?Z.body||Z.documentElement:Z.documentElement}; eO=function(Z){return Z?Z.defaultView:window}; ED=function(Z,Q,z){var K=arguments,b=document,q=K[1],r=wg(b,String(K[0]));q&&(typeof q==="string"?r.className=q:Array.isArray(q)?r.className=q.join(" "):tl(r,q));K.length>2&&bux(b,r,K,2);return r}; bux=function(Z,Q,z,K){function b(D){D&&Q.appendChild(typeof D==="string"?Z.createTextNode(D):D)} for(;K<z.length;K++){var q=z[K];if(!g.xW(q)||g.tn(q)&&q.nodeType>0)b(q);else{a:{if(q&&typeof q.length=="number"){if(g.tn(q)){var r=typeof q.item=="function"||typeof q.item=="string";break a}if(typeof q==="function"){r=typeof q.item=="function";break a}}r=!1}g.SB(r?g.QM(q):q,b)}}}; g.lY=function(Z){return wg(document,Z)}; wg=function(Z,Q){Q=String(Q);Z.contentType==="application/xhtml+xml"&&(Q=Q.toLowerCase());return Z.createElement(Q)}; g.sl=function(Z){return document.createTextNode(String(Z))}; g.ZN=function(Z,Q){Z.appendChild(Q)}; g.QX=function(Z){for(var Q;Q=Z.firstChild;)Z.removeChild(Q)}; zB=function(Z,Q,z){Z.insertBefore(Q,Z.childNodes[z]||null)}; g.K$=function(Z){return Z&&Z.parentNode?Z.parentNode.removeChild(Z):null}; g.bG=function(Z,Q){if(!Z||!Q)return!1;if(Z.contains&&Q.nodeType==1)return Z==Q||Z.contains(Q);if(typeof Z.compareDocumentPosition!="undefined")return Z==Q||!!(Z.compareDocumentPosition(Q)&16);for(;Q&&Z!=Q;)Q=Q.parentNode;return Q==Z}; UD=function(Z){return Z.nodeType==9?Z:Z.ownerDocument||Z.document}; g.qT=function(Z,Q){if("textContent"in Z)Z.textContent=Q;else if(Z.nodeType==3)Z.data=String(Q);else if(Z.firstChild&&Z.firstChild.nodeType==3){for(;Z.lastChild!=Z.firstChild;)Z.removeChild(Z.lastChild);Z.firstChild.data=String(Q)}else g.QX(Z),Z.appendChild(UD(Z).createTextNode(String(Q)))}; rrG=function(Z){return Z.tagName=="A"&&Z.hasAttribute("href")||Z.tagName=="INPUT"||Z.tagName=="TEXTAREA"||Z.tagName=="SELECT"||Z.tagName=="BUTTON"?!Z.disabled&&(!Z.hasAttribute("tabindex")||qb0(Z)):Z.hasAttribute("tabindex")&&qb0(Z)}; qb0=function(Z){Z=Z.tabIndex;return typeof Z==="number"&&Z>=0&&Z<32768}; AE=function(Z,Q,z){if(!Q&&!z)return null;var K=Q?String(Q).toUpperCase():null;return rC(Z,function(b){return(!K||b.nodeName==K)&&(!z||typeof b.className==="string"&&g.wX(b.className.split(/\s+/),z))},!0)}; rC=function(Z,Q,z){Z&&!z&&(Z=Z.parentNode);for(z=0;Z;){if(Q(Z))return Z;Z=Z.parentNode;z++}return null}; Me=function(Z){this.Y=Z||g.OG.document||document}; j3=function(Z){this.P4=RI(Z)}; DN=function(Z){this.P4=RI(Z)}; v8=function(Z){this.P4=RI(Z)}; Arn=function(Z,Q){Dc(Z,DN,1,Q)}; gC=function(Z){this.P4=RI(Z)}; Dq0=function(Z,Q){Q=Q===void 0?j5r:Q;if(!Yr){var z;Z=(z=Z.navigator)==null?void 0:z.userAgentData;if(!Z||typeof Z.getHighEntropyValues!=="function"||Z.brands&&typeof Z.brands.map!=="function")return Promise.reject(Error("UACH unavailable"));z=(Z.brands||[]).map(function(b){var q=new DN;q=Tk(q,1,b.brand);return Tk(q,2,b.version)}); Arn(oI(X8,2,A6(Z.mobile)),z);Yr=Z.getHighEntropyValues(Q)}var K=new Set(Q);return Yr.then(function(b){var q=X8.clone();K.has("platform")&&Tk(q,3,b.platform);K.has("platformVersion")&&Tk(q,4,b.platformVersion);K.has("architecture")&&Tk(q,5,b.architecture);K.has("model")&&Tk(q,6,b.model);K.has("uaFullVersion")&&Tk(q,7,b.uaFullVersion);return q}).catch(function(){return X8.clone()})}; S3=function(Z){this.P4=RI(Z)}; v_D=function(Z){this.P4=RI(Z)}; $r=function(Z){this.P4=RI(Z,4)}; TB=function(Z){this.P4=RI(Z,36)}; f$=function(Z){this.P4=RI(Z,19)}; L$=function(Z,Q){this.tO=Q=Q===void 0?!1:Q;this.uach=this.locale=null;this.j=0;this.isFinal=!1;this.Y=new f$;Number.isInteger(Z)&&this.Y.jT(Z);Q||(this.locale=document.documentElement.getAttribute("lang"));g_d(this,new S3)}; g_d=function(Z,Q){jp(Z.Y,S3,1,Q);Sp(Q,1)||hr(Q,1,1);Z.tO||(Q=n$(Z),X6(Q,5)||Tk(Q,5,Z.locale));Z.uach&&(Q=n$(Z),rb(Q,v8,9)||jp(Q,v8,9,Z.uach))}; YbW=function(Z,Q){Z.j=Q}; X_9=function(Z){var Q=Q===void 0?j5r:Q;var z=Z.tO?void 0:eO();z?Dq0(z,Q).then(function(K){Z.uach=K;K=n$(Z);jp(K,v8,9,Z.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)}; n$=function(Z){Z=rb(Z.Y,S3,1);var Q=rb(Z,gC,11);Q||(Q=new gC,jp(Z,gC,11,Q));return Q}; SbD=function(Z){return g.Fv?"webkit"+Z:Z.toLowerCase()}; g.c8=function(Z,Q,z,K){this.W=Z;this.L=Q;this.Y=this.S=Z;this.K=z||0;this.T=K||2}; g.mD=function(Z){Z.Y=Math.min(Z.L,Z.Y*Z.T);Z.S=Math.min(Z.L,Z.Y+(Z.K?Math.round(Z.K*(Math.random()-.5)*2*Z.Y):0));Z.j++}; $q4=function(Z){this.P4=RI(Z,8)}; Tbr=function(Z){this.P4=RI(Z)}; JE=function(Z){g.O.call(this);var Q=this;this.componentId="";this.Y=[];this.Vp="";this.pageId=null;this.tG=this.P7=-1;this.T=this.experimentIds=null;this.jJ=this.SJ=this.K=this.W=0;this.Du=1;this.timeoutMillis=0;this.JG=!1;this.logSource=Z.logSource;this.q7=Z.q7||function(){}; this.S=new L$(Z.logSource,Z.tO);this.network=Z.network||null;this.KE=Z.KE||null;this.X=Z.lph||null;this.sessionIndex=Z.sessionIndex||null;this.QN=Z.QN||!1;this.logger=null;this.withCredentials=!Z.XA;this.tO=Z.tO||!1;this.U=!this.tO&&!!eO()&&!!eO().navigator&&eO().navigator.sendBeacon!==void 0;this.c7=typeof URLSearchParams!=="undefined"&&!!(new URL(I8())).searchParams&&!!(new URL(I8())).searchParams.set;var z=hr(new S3,1,1);g_d(this.S,z);this.L=new g.c8(1E4,3E5,.1);Z=fcX(this,Z.Su);this.j=new bY(this.L.getValue(), Z);this.KN=new bY(6E5,Z);this.QN||this.KN.start();this.tO||(document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Q.LS()}),document.addEventListener("pagehide",this.LS.bind(this)))}; fcX=function(Z,Q){return Z.c7?Q?function(){Q().then(function(){Z.flush()})}:function(){Z.flush()}:function(){}}; hOX=function(Z){Z.X||(Z.X=I8());try{return(new URL(Z.X)).toString()}catch(Q){return(new URL(Z.X,eO().location.origin)).toString()}}; L2M=function(Z,Q,z){z=z===void 0?Z.q7():z;var K={},b=new URL(hOX(Z));z&&(K.Authorization=z);Z.sessionIndex&&(K["X-Goog-AuthUser"]=Z.sessionIndex,b.searchParams.set("authuser",Z.sessionIndex));Z.pageId&&(Object.defineProperty(K,"X-Goog-PageId",{value:Z.pageId}),b.searchParams.set("pageId",Z.pageId));return{url:b.toString(),body:Q,tQ:1,requestHeaders:K,requestType:"POST",withCredentials:Z.withCredentials,timeoutMillis:Z.timeoutMillis}}; crd=function(Z){n_x(Z,function(Q,z){Q=new URL(Q);Q.searchParams.set("format","json");var K=!1;try{K=eO().navigator.sendBeacon(Q.toString(),z.pZ())}catch(b){}K||(Z.U=!1);return K})}; n_x=function(Z,Q){if(Z.Y.length!==0){var z=new URL(hOX(Z));z.searchParams.delete("format");var K=Z.q7();K&&z.searchParams.set("auth",K);z.searchParams.set("authuser",Z.sessionIndex||"0");for(K=0;K<10&&Z.Y.length;++K){var b=Z.Y.slice(0,32),q=Z.S.build(b,Z.W,Z.K,Z.KE,Z.SJ,Z.jJ);if(!Q(z.toString(),q)){++Z.K;break}Z.W=0;Z.K=0;Z.SJ=0;Z.jJ=0;Z.Y=Z.Y.slice(b.length)}Z.j.enabled&&Z.j.stop()}}; I8=function(){return"https://play.google.com/log?format=json&hasfast=true"}; yX=function(){this.H$=typeof AbortController!=="undefined"}; dC=function(Z,Q){g.O.call(this);this.logSource=Z;this.sessionIndex=Q;this.An="https://play.google.com/log?format=json&hasfast=true";this.j=null;this.W=!1;this.network=null;this.componentId="";this.Y=this.KE=null;this.S=!1;this.pageId=null}; mqW=function(Z,Q){Z.j=Q;return Z}; Icn=function(Z,Q){Z.network=Q;return Z}; JrG=function(Z,Q){Z.Y=Q}; yrd=function(Z){Z.S=!0;return Z}; NT=function(Z,Q,z,K,b,q,r){Z=Z===void 0?-1:Z;Q=Q===void 0?"":Q;z=z===void 0?"":z;K=K===void 0?!1:K;b=b===void 0?"":b;g.O.call(this);this.logSource=Z;this.componentId=Q;q?Q=q:(Z=new dC(Z,"0"),Z.componentId=Q,g.W(this,Z),z!==""&&(Z.An=z),K&&(Z.W=!0),b&&mqW(Z,b),r&&Icn(Z,r),Q=Z.build());this.Y=Q}; dqX=function(Z){this.Y=Z}; GB=function(Z,Q,z){this.j=Z;this.W=Q;this.fields=z||[];this.Y=new Map}; jIx=function(Z){return Z.fields.map(function(Q){return Q.fieldType})}; A6x=function(Z){return Z.fields.map(function(Q){return Q.fieldName})}; iG=function(Z,Q){GB.call(this,Z,3,Q)}; a8=function(Z,Q){GB.call(this,Z,2,Q)}; g.P8=function(Z,Q){this.type=Z;this.currentTarget=this.target=Q;this.defaultPrevented=this.j=!1}; R8=function(Z,Q){g.P8.call(this,Z?Z.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.Y=null;Z&&this.init(Z,Q)}; C$=function(Z){return!(!Z||!Z[Nbn])}; iun=function(Z,Q,z,K,b){this.listener=Z;this.proxy=null;this.src=Q;this.type=z;this.capture=!!K;this.Bo=b;this.key=++Gkr;this.removed=this.A1=!1}; p$=function(Z){Z.removed=!0;Z.listener=null;Z.proxy=null;Z.src=null;Z.Bo=null}; H8=function(Z){this.src=Z;this.listeners={};this.Y=0}; g.MT=function(Z,Q){var z=Q.type;z in Z.listeners&&g.lU(Z.listeners[z],Q)&&(p$(Q),Z.listeners[z].length==0&&(delete Z.listeners[z],Z.Y--))}; Ul=function(Z,Q,z,K){for(var b=0;b<Z.length;++b){var q=Z[b];if(!q.removed&&q.listener==Q&&q.capture==!!z&&q.Bo==K)return b}return-1}; g.o8=function(Z,Q,z,K,b){if(K&&K.once)return Ol(Z,Q,z,K,b);if(Array.isArray(Q)){for(var q=0;q<Q.length;q++)g.o8(Z,Q[q],z,K,b);return null}z=B8(z);return C$(Z)?Z.listen(Q,z,g.tn(K)?!!K.capture:!!K,b):ac0(Z,Q,z,!1,K,b)}; ac0=function(Z,Q,z,K,b,q){if(!Q)throw Error("Invalid event type");var r=g.tn(b)?!!b.capture:!!b,D=uG(Z);D||(Z[xr]=D=new H8(Z));z=D.add(Q,z,K,r,q);if(z.proxy)return z;K=PiD();z.proxy=K;K.src=Z;K.listener=z;if(Z.addEventListener)ROD||(b=r),b===void 0&&(b=!1),Z.addEventListener(Q.toString(),K,b);else if(Z.attachEvent)Z.attachEvent(Cin(Q.toString()),K);else if(Z.addListener&&Z.removeListener)Z.addListener(K);else throw Error("addEventListener and attachEvent are unavailable.");p_f++;return z}; PiD=function(){function Z(z){return Q.call(Z.src,Z.listener,z)} var Q=Hun;return Z}; Ol=function(Z,Q,z,K,b){if(Array.isArray(Q)){for(var q=0;q<Q.length;q++)Ol(Z,Q[q],z,K,b);return null}z=B8(z);return C$(Z)?Z.x7(Q,z,g.tn(K)?!!K.capture:!!K,b):ac0(Z,Q,z,!0,K,b)}; Mp0=function(Z,Q,z,K,b){if(Array.isArray(Q))for(var q=0;q<Q.length;q++)Mp0(Z,Q[q],z,K,b);else K=g.tn(K)?!!K.capture:!!K,z=B8(z),C$(Z)?Z.oy(Q,z,K,b):Z&&(Z=uG(Z))&&(Q=Z.Mj(Q,z,K,b))&&tE(Q)}; tE=function(Z){if(typeof Z!=="number"&&Z&&!Z.removed){var Q=Z.src;if(C$(Q))g.MT(Q.ey,Z);else{var z=Z.type,K=Z.proxy;Q.removeEventListener?Q.removeEventListener(z,K,Z.capture):Q.detachEvent?Q.detachEvent(Cin(z),K):Q.addListener&&Q.removeListener&&Q.removeListener(K);p_f--;(z=uG(Q))?(g.MT(z,Z),z.Y==0&&(z.src=null,Q[xr]=null)):p$(Z)}}}; Cin=function(Z){return Z in F8?F8[Z]:F8[Z]="on"+Z}; Hun=function(Z,Q){if(Z.removed)Z=!0;else{Q=new R8(Q,this);var z=Z.listener,K=Z.Bo||Z.src;Z.A1&&tE(Z);Z=z.call(K,Q)}return Z}; uG=function(Z){Z=Z[xr];return Z instanceof H8?Z:null}; B8=function(Z){if(typeof Z==="function")return Z;Z[e3]||(Z[e3]=function(Q){return Z.handleEvent(Q)}); return Z[e3]}; g.wC=function(){g.O.call(this);this.ey=new H8(this);this.B$=this;this.PG=null}; El=function(Z,Q,z,K){Q=Z.ey.listeners[String(Q)];if(!Q)return!0;Q=Q.concat();for(var b=!0,q=0;q<Q.length;++q){var r=Q[q];if(r&&!r.removed&&r.capture==z){var D=r.listener,v=r.Bo||r.src;r.A1&&g.MT(Z.ey,r);b=D.call(v,K)!==!1&&b}}return b&&!K.defaultPrevented}; lG=function(Z,Q){this.S=Z;this.W=Q;this.j=0;this.Y=null}; Uqn=function(Z,Q){Z.W(Q);Z.j<100&&(Z.j++,Q.next=Z.Y,Z.Y=Q)}; zD=function(Z){Z=ZS(Z);QU||(QU=Ouf());QU(Z)}; Ouf=function(){if(typeof MessageChannel!=="undefined"){var Z=new MessageChannel,Q={},z=Q;Z.port1.onmessage=function(){if(Q.next!==void 0){Q=Q.next;var K=Q.Rc;Q.Rc=null;K()}}; return function(K){z.next={Rc:K};z=z.next;Z.port2.postMessage(0)}}return function(K){g.OG.setTimeout(K,0)}}; KE=function(){this.j=this.Y=null}; bq=function(){this.next=this.scope=this.Y=null}; g.Ae=function(Z,Q){qc||o_d();rw||(qc(),rw=!0);Bbd.add(Z,Q)}; o_d=function(){var Z=Promise.resolve(void 0);qc=function(){Z.then(W2G)}}; W2G=function(){for(var Z;Z=Bbd.remove();){try{Z.Y.call(Z.scope)}catch(Q){Lz(Q)}Uqn(Vp0,Z)}rw=!1}; jM=function(Z){return function(){return Z}}; g.DS=function(){}; kkG=function(Z){var Q=Q||0;return function(){return Z.apply(this,Array.prototype.slice.call(arguments,0,Q))}}; vK=function(Z){var Q=!1,z;return function(){Q||(z=Z(),Q=!0);return z}}; gw=function(Z){var Q=Z;return function(){if(Q){var z=Q;Q=null;z()}}}; u69=function(Z,Q){var z=0;return function(K){g.OG.clearTimeout(z);var b=arguments;z=g.OG.setTimeout(function(){Z.apply(Q,b)},50)}}; g.XA=function(Z){this.Y=0;this.T=void 0;this.W=this.j=this.S=null;this.L=this.K=!1;if(Z!=g.DS)try{var Q=this;Z.call(void 0,function(z){Y7(Q,2,z)},function(z){Y7(Q,3,z)})}catch(z){Y7(this,3,z)}}; xqn=function(){this.next=this.context=this.j=this.S=this.Y=null;this.W=!1}; SM=function(Z,Q,z){var K=tpn.get();K.S=Z;K.j=Q;K.context=z;return K}; g.$7=function(Z){if(Z instanceof g.XA)return Z;var Q=new g.XA(g.DS);Y7(Q,2,Z);return Q}; TD=function(Z){return new g.XA(function(Q,z){z(Z)})}; g.eOf=function(Z,Q,z){F2G(Z,Q,z,null)||g.Ae(g.lu(Q,Z))}; w_M=function(Z){return new g.XA(function(Q,z){Z.length||Q(void 0);for(var K,b=0;b<Z.length;b++)K=Z[b],g.eOf(K,Q,z)})}; lcf=function(){var Z,Q,z=new g.XA(function(K,b){Z=K;Q=b}); return new E_4(z,Z,Q)}; su0=function(Z,Q,z,K){fE(Z,SM(Q||g.DS,z||null,K))}; he=function(Z,Q){Q=ZS(Q);Q=SM(Q,Q);Q.W=!0;fE(Z,Q);return Z}; ZtG=function(Z,Q){if(Z.Y==0)if(Z.S){var z=Z.S;if(z.j){for(var K=0,b=null,q=null,r=z.j;r&&(r.W||(K++,r.Y==Z&&(b=r),!(b&&K>1)));r=r.next)b||(q=r);b&&(z.Y==0&&K==1?ZtG(z,Q):(q?(K=q,K.next==z.W&&(z.W=K),K.next=K.next.next):Qux(z),zWD(z,b,3,Q)))}Z.S=null}else Y7(Z,3,Q)}; fE=function(Z,Q){Z.j||Z.Y!=2&&Z.Y!=3||KBM(Z);Z.W?Z.W.next=Q:Z.j=Q;Z.W=Q}; bt9=function(Z,Q,z,K){var b=SM(null,null,null);b.Y=new g.XA(function(q,r){b.S=Q?function(D){try{var v=Q.call(K,D);q(v)}catch(Y){r(Y)}}:q; b.j=z?function(D){try{var v=z.call(K,D);v===void 0&&D instanceof LE?r(D):q(v)}catch(Y){r(Y)}}:r}); b.Y.S=Z;fE(Z,b);return b.Y}; Y7=function(Z,Q,z){Z.Y==0&&(Z===z&&(Q=3,z=new TypeError("Promise cannot resolve to itself")),Z.Y=1,F2G(z,Z.EE7,Z.Def,Z)||(Z.T=z,Z.Y=Q,Z.S=null,KBM(Z),Q!=3||z instanceof LE||q3G(Z,z)))}; F2G=function(Z,Q,z,K){if(Z instanceof g.XA)return su0(Z,Q,z,K),!0;if(Z)try{var b=!!Z.$goog_Thenable}catch(r){b=!1}else b=!1;if(b)return Z.then(Q,z,K),!0;if(g.tn(Z))try{var q=Z.then;if(typeof q==="function")return r5u(Z,q,Q,z,K),!0}catch(r){return z.call(K,r),!0}return!1}; r5u=function(Z,Q,z,K,b){function q(v){D||(D=!0,K.call(b,v))} function r(v){D||(D=!0,z.call(b,v))} var D=!1;try{Q.call(Z,r,q)}catch(v){q(v)}}; KBM=function(Z){Z.K||(Z.K=!0,g.Ae(Z.lq,Z))}; Qux=function(Z){var Q=null;Z.j&&(Q=Z.j,Z.j=Q.next,Q.next=null);Z.j||(Z.W=null);return Q}; zWD=function(Z,Q,z,K){if(z==3&&Q.j&&!Q.W)for(;Z&&Z.L;Z=Z.S)Z.L=!1;if(Q.Y)Q.Y.S=null,A5u(Q,z,K);else try{Q.W?Q.S.call(Q.context):A5u(Q,z,K)}catch(b){qD9.call(null,b)}Uqn(tpn,Q)}; A5u=function(Z,Q,z){Q==2?Z.S.call(Z.context,z):Z.j&&Z.j.call(Z.context,z)}; q3G=function(Z,Q){Z.L=!0;g.Ae(function(){Z.L&&qD9.call(null,Q)})}; LE=function(Z){fz.call(this,Z)}; E_4=function(Z,Q,z){this.promise=Z;this.resolve=Q;this.reject=z}; g.nE=function(Z,Q){g.wC.call(this);this.P8=Z||1;this.xK=Q||g.OG;this.W5=(0,g.EG)(this.V_h,this);this.zH=g.sQ()}; g.cK=function(Z,Q,z){if(typeof Z==="function")z&&(Z=(0,g.EG)(Z,z));else if(Z&&typeof Z.handleEvent=="function")Z=(0,g.EG)(Z.handleEvent,Z);else throw Error("Invalid listener argument");return Number(Q)>2147483647?-1:g.OG.setTimeout(Z,Q||0)}; mL=function(Z,Q){var z=null;return(new g.XA(function(K,b){z=g.cK(function(){K(Q)},Z); z==-1&&b(Error("Failed to schedule timer."))})).RX(function(K){g.OG.clearTimeout(z); throw K;})}; g.Il=function(Z){g.O.call(this);this.T=Z;this.W=0;this.S=100;this.L=!1;this.j=new Map;this.K=new Set;this.flushInterval=3E4;this.Y=new g.nE(this.flushInterval);this.Y.listen("tick",this.bT,!1,this);g.W(this,this.Y)}; rlW=function(Z){Z.Y.enabled||Z.Y.start();Z.W++;Z.W>=Z.S&&Z.bT()}; AlG=function(Z,Q){return Z.K.has(Q)?void 0:Z.j.get(Q)}; jeu=function(Z){for(var Q=0;Q<Z.length;Q++)Z[Q].clear()}; Den=function(Z){switch(Z){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}}; vvn=function(Z){switch(Z){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""}}; Je=function(Z,Q,z){z=z===void 0?{}:z;Q=Error.call(this,Q);this.message=Q.message;"stack"in Q&&(this.stack=Q.stack);this.code=Z;this.metadata=z;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)}; g.yU=function(Z){return(new gvG).pZ(Z)}; gvG=function(){}; dw=function(Z,Q,z){if(Q==null)z.push("null");else{if(typeof Q=="object"){if(Array.isArray(Q)){var K=Q;Q=K.length;z.push("[");for(var b="",q=0;q<Q;q++)z.push(b),dw(Z,K[q],z),b=",";z.push("]");return}if(Q instanceof String||Q instanceof Number||Q instanceof Boolean)Q=Q.valueOf();else{z.push("{");b="";for(K in Q)Object.prototype.hasOwnProperty.call(Q,K)&&(q=Q[K],typeof q!="function"&&(z.push(b),YDG(K,z),z.push(":"),dw(Z,q,z),b=","));z.push("}");return}}switch(typeof Q){case "string":YDG(Q,z);break;case "number":z.push(isFinite(Q)&& !isNaN(Q)?String(Q):"null");break;case "boolean":z.push(String(Q));break;case "function":z.push("null");break;default:throw Error("Unknown type: "+typeof Q);}}}; YDG=function(Z,Q){Q.push('"',Z.replace(Xa9,function(z){var K=SD9[z];K||(K="\\u"+(z.charCodeAt(0)|65536).toString(16).slice(1),SD9[z]=K);return K}),'"')}; $e4=function(Z){switch(Z){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"}}; Tgn=function(){}; Nc=function(){}; GD=function(Z,Q,z,K,b,q,r){var D="";Z&&(D+=Z+":");z&&(D+="//",Q&&(D+=Q+"@"),D+=z,K&&(D+=":"+K));b&&(D+=b);q&&(D+="?"+q);r&&(D+="#"+r);return D}; PK=function(Z){return Z?decodeURI(Z):Z}; g.CE=function(Z,Q){return Q.match(Rl)[Z]||null}; g.pE=function(Z){return PK(g.CE(3,Z))}; g.fMD=function(Z){Z=Z.match(Rl);return GD(Z[1],Z[2],Z[3],Z[4])}; HK=function(Z){Z=Z.match(Rl);return GD(null,null,null,null,Z[5],Z[6],Z[7])}; hT9=function(Z){var Q=Z.indexOf("#");return Q<0?Z:Z.slice(0,Q)}; Mc=function(Z,Q){if(Z){Z=Z.split("&");for(var z=0;z<Z.length;z++){var K=Z[z].indexOf("="),b=null;if(K>=0){var q=Z[z].substring(0,K);b=Z[z].substring(K+1)}else q=Z[z];Q(q,b?e6(b):"")}}}; Uj=function(Z,Q){if(!Q)return Z;var z=Z.indexOf("#");z<0&&(z=Z.length);var K=Z.indexOf("?");if(K<0||K>z){K=z;var b=""}else b=Z.substring(K+1,z);Z=[Z.slice(0,K),b,Z.slice(z)];z=Z[1];Z[1]=Q?z?z+"&"+Q:Q:z;return Z[0]+(Z[1]?"?"+Z[1]:"")+Z[2]}; Oj=function(Z,Q,z){if(Array.isArray(Q))for(var K=0;K<Q.length;K++)Oj(Z,String(Q[K]),z);else Q!=null&&z.push(Z+(Q===""?"":"="+g.F5(Q)))}; L6M=function(Z,Q){var z=[];for(Q=Q||0;Q<Z.length;Q+=2)Oj(Z[Q],Z[Q+1],z);return z.join("&")}; g.ol=function(Z){var Q=[],z;for(z in Z)Oj(z,Z[z],Q);return Q.join("&")}; nvW=function(Z,Q){var z=arguments.length==2?L6M(arguments[1],0):L6M(arguments,1);return Uj(Z,z)}; g.BK=function(Z,Q){Q=g.ol(Q);return Uj(Z,Q)}; WK=function(Z,Q,z){z=z!=null?"="+g.F5(z):"";return Uj(Z,Q+z)}; clx=function(Z,Q,z,K){for(var b=z.length;(Q=Z.indexOf(z,Q))>=0&&Q<K;){var q=Z.charCodeAt(Q-1);if(q==38||q==63)if(q=Z.charCodeAt(Q+b),!q||q==61||q==38||q==35)return Q;Q+=b+1}return-1}; VU=function(Z,Q){var z=Z.search(me4),K=clx(Z,0,Q,z);if(K<0)return null;var b=Z.indexOf("&",K);if(b<0||b>z)b=z;K+=Q.length+1;return e6(Z.slice(K,b!==-1?b:0))}; k7=function(Z,Q){for(var z=Z.search(me4),K=0,b,q=[];(b=clx(Z,K,Q,z))>=0;)q.push(Z.substring(K,b)),K=Math.min(Z.indexOf("&",b)+1||z,z);q.push(Z.slice(K));return q.join("").replace(IMW,"$1")}; Jl0=function(Z,Q,z){return WK(k7(Z,Q),Q,z)}; g.uq=function(Z){g.wC.call(this);this.headers=new Map;this.KN=Z||null;this.S=!1;this.Y=null;this.X="";this.j=0;this.W="";this.L=this.P7=this.U=this.SJ=!1;this.jJ=0;this.K=null;this.JG="";this.T=!1}; deu=function(Z,Q,z,K,b,q,r){var D=new g.uq;yln.push(D);Q&&D.listen("complete",Q);D.x7("ready",D.M1);q&&(D.jJ=Math.max(0,q));r&&(D.T=r);D.send(Z,z,K,b)}; GF0=function(Z,Q){Z.S=!1;Z.Y&&(Z.L=!0,Z.Y.abort(),Z.L=!1);Z.W=Q;Z.j=5;NgG(Z);x7(Z)}; NgG=function(Z){Z.SJ||(Z.SJ=!0,Z.dispatchEvent("complete"),Z.dispatchEvent("error"))}; ixf=function(Z){if(Z.S&&typeof te!="undefined")if(Z.U&&g.FA(Z)==4)setTimeout(Z.EQ.bind(Z),0);else if(Z.dispatchEvent("readystatechange"),Z.isComplete()){Z.getStatus();Z.S=!1;try{if(eM(Z))Z.dispatchEvent("complete"),Z.dispatchEvent("success");else{Z.j=6;try{var Q=g.FA(Z)>2?Z.Y.statusText:""}catch(z){Q=""}Z.W=Q+" ["+Z.getStatus()+"]";NgG(Z)}}finally{x7(Z)}}}; x7=function(Z,Q){if(Z.Y){Z.K&&(clearTimeout(Z.K),Z.K=null);var z=Z.Y;Z.Y=null;Q||Z.dispatchEvent("ready");try{z.onreadystatechange=null}catch(K){}}}; eM=function(Z){var Q=Z.getStatus();a:switch(Q){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var z=!0;break a;default:z=!1}if(!z){if(Q=Q===0)Z=g.CE(1,String(Z.X)),!Z&&g.OG.self&&g.OG.self.location&&(Z=g.OG.self.location.protocol.slice(0,-1)),Q=!aM4.test(Z?Z.toLowerCase():"");z=Q}return z}; g.FA=function(Z){return Z.Y?Z.Y.readyState:0}; g.ww=function(Z){try{return Z.Y?Z.Y.responseText:""}catch(Q){return""}}; g.Ej=function(Z){try{if(!Z.Y)return null;if("response"in Z.Y)return Z.Y.response;switch(Z.JG){case "":case "text":return Z.Y.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in Z.Y)return Z.Y.mozResponseArrayBuffer}return null}catch(Q){return null}}; g.PY4=function(Z){var Q={};Z=(Z.Y&&g.FA(Z)>=2?Z.Y.getAllResponseHeaders()||"":"").split("\r\n");for(var z=0;z<Z.length;z++)if(!g.IE(Z[z])){var K=H90(Z[z]),b=K[0];K=K[1];if(typeof K==="string"){K=K.trim();var q=Q[b]||[];Q[b]=q;q.push(K)}}return Lx(Q,function(r){return r.join(", ")})}; g.lq=function(Z,Q){return Z.Y?Z.Y.getResponseHeader(Q):null}; sW=function(){}; Q_=function(Z,Q){this.logger=Z;this.event=Q;this.startTime=ZY()}; zX=function(){Xm.apply(this,arguments);this.zz={Ox:function(){return[]}}}; KK=function(Z,Q,z){var K=ZY();Q=Q();Z.yH(z,ZY()-K);return Q}; bk=function(){zX.apply(this,arguments)}; q2=function(Z){zX.call(this);var Q=this;this.logger=Z;this.zz={PNJ:function(){return Q.logger}, Ox:function(){return Q.logger.zz.Ox()}}; this.addOnDisposeCallback(function(){return void Q.logger.dispose()})}; RTd=function(Z){return{Q3u:new mrx(Z),errorCount:new drM(Z),eventCount:new Jn9(Z),X1:new ynf(Z),I3r:new IDd(Z),jq7:new Nfn(Z),ox:new GnG(Z),pvB:new iX9(Z)}}; CYn=function(Z,Q,z,K){Z=yrd(Icn(mqW(new dC(1828,"0"),Z),new sW));Q.length&&JrG(Z,qoW(new b9W,Q));K!==void 0&&(Z.An=K);var b=new NT(1828,"","",!1,"",Z.build());g.W(b,Z);var q=new g.Il({flush:function(r){try{b.flush(r)}catch(D){z(D)}}}); q.addOnDisposeCallback(function(){setTimeout(function(){try{q.bT()}finally{b.dispose()}})}); q.S=1E5;q.flushInterval=3E4;q.Y.setInterval(3E4);return q}; rK=function(Z,Q){g.O.call(this);var z=this;this.callback=Z;this.j=Q;this.Y=-Q;this.addOnDisposeCallback(function(){return void clearTimeout(z.IC)})}; paM=function(Z){if(Z.IC===void 0){var Q=Math.max(0,Z.Y+Z.j-ZY());Z.IC=setTimeout(function(){try{Z.callback()}finally{Z.Y=ZY(),Z.IC=void 0}},Q)}}; Aq=function(Z,Q,z){zX.call(this);this.metrics=Z;this.ye=Q;this.Pl=z}; j$=function(Z,Q){Q=Q===void 0?[]:Q;var z={ye:Z.ye||"_",Pl:Z.Pl||"",Ir:Z.Ir||[],Ya:Z.Ya|0,An:Z.An,XH:Z.XH||function(){}, MV:Z.MV||function(q,r){return CYn(q,r,z.XH,z.An)}},K=z.MV("46",z.Ir.concat(Q)); Aq.call(this,RTd(K),z.ye,z.Pl);var b=this;this.S=Q;this.zz={Ox:function(){return b.options.Ir.concat(b.S).sort(function(q,r){return q-r})}}; this.options=z;this.service=K;this.j=!Z.MV;this.Y=new rK(function(){return void b.service.bT()},z.Ya); this.addOnDisposeCallback(function(){b.Y.dispose();b.j&&b.service.dispose()})}; ZY=function(){var Z,Q,z;return(z=(Z=globalThis.performance)==null?void 0:(Q=Z.now)==null?void 0:Q.call(Z))!=null?z:Date.now()}; DY=function(Z){this.P4=RI(Z)}; vj=function(Z){this.P4=RI(Z)}; gK=function(Z){this.P4=RI(Z,0,gK.messageId)}; rX=function(Z){this.P4=RI(Z)}; Ye=function(Z){this.P4=RI(Z)}; g.XO=function(){var Z=this;this.promise=new Promise(function(Q,z){Z.resolve=Q;Z.reject=z})}; Hxf=function(Z,Q,z){if(Z.disable)return new bk;Q=Q?L9u(Q):[];if(z)return z.mu(Q),z.share();Z={ye:Z.ye,Pl:Z.Pl,Ir:Z.GN,Ya:Z.VfG,An:Z.An,XH:Z.XH,MV:Z.MV};z=Q;z=z===void 0?[]:z;return new j$(Z,z)}; S$=function(Z){function Q(h,m,J,d){Promise.resolve().then(function(){v.done();D.wP();D.dispose();r.resolve({c$:h,hNN:m,nXu:J,b9h:d})})} function z(h,m,J,d){if(!K.logger.FI()){var G="k";m?G="h":J&&(G="u");G!=="k"?d!==0&&(K.logger.U7(G),K.logger.yH(G,h)):K.j<=0?(K.logger.U7(G),K.logger.yH(G,h),K.j=Math.floor(Math.random()*200)):K.j--}} g.O.call(this);var K=this;this.j=Math.floor(Math.random()*200);this.Y=new Ye;if("challenge"in Z&&MOr(Z.challenge)){var b=X6(Z.challenge,4);var q=X6(Z.challenge,5);X6(Z.challenge,7)&&(this.Y=Uex(X6(Z.challenge,7)))}else b=Z.program,q=Z.globalName;this.addOnDisposeCallback(function(){var h,m,J;return g.C(function(d){if(d.Y==1)return g.P(d,K.S,2);h=d.j;m=h.hNN;(J=m)==null||J();g.LX(d)})}); this.logger=Hxf(Z.vE||{},this.Y,Z.md);g.W(this,this.logger);var r=new g.XO;this.S=r.promise;this.logger.U7("t");var D=this.logger.share(),v=new Q_(D,"t");if(!g.OG[q])throw this.logger.B8(25),Error("EGOU");if(!g.OG[q].a)throw this.logger.B8(26),Error("ELIU");try{var Y=g.OG[q].a;q=[];for(var X=[],S=L9u(this.Y),T=0;T<S.length;T++)q.push(S[T]),X.push(1);var f=nWW(this.Y);for(S=0;S<f.length;S++)q.push(f[S]),X.push(2);this.W=g.n(Y(b,Q,!0,Z.TC,z,[q,X],X6(this.Y,5))).next().value;this.ud=r.promise.then(function(){})}catch(h){throw this.logger.B8(28), h; }}; Oxn=function(Z){if(!Z)return null;Z=gb(Z,4);return Z===null||Z===void 0?null:J5(Z)}; $e=function(){this.j={};this.Y=null}; TX=function(){$e.instance||($e.instance=new $e);return $e.instance}; fK=function(Z,Q){return ovX(Z,rb(Q,DY,1),rb(Q,vj,2),X6(Q,3))}; ovX=function(Z,Q,z,K){if(!Q&&!z)return Promise.resolve();if(!K)return Bgf(Q,z);var b;(b=Z.j)[K]||(b[K]=new Promise(function(q,r){Bgf(Q,z).then(function(){Z.Y=K;q()},function(D){delete Z.j[K]; r(D)})})); return Z.j[K]}; Bgf=function(Z,Q){return Q?W6X(Q):Z?VOf(Z):Promise.resolve()}; W6X=function(Z){return new Promise(function(Q,z){var K=g.lY("SCRIPT"),b=Oxn(Z);g.WB(K,b);K.onload=function(){g.K$(K);Q()}; K.onerror=function(){g.K$(K);z(Error("EWLS"))}; (g.Ba("HEAD")[0]||document.documentElement).appendChild(K)})}; VOf=function(Z){return new Promise(function(Q){var z=g.lY("SCRIPT");if(Z){var K=gb(Z,6);K=K===null||K===void 0?null:c6G(K)}else K=null;z.textContent=ou(K);BB(z);(g.Ba("HEAD")[0]||document.documentElement).appendChild(z);g.K$(z);Q()})}; hq=function(Z){this.P4=RI(Z)}; LK=function(Z){this.P4=RI(Z)}; nK=function(Z,Q,z){this.client=Z;this.Nf=Q;this.Y=z}; cj=function(Z){g.O.call(this);var Q=this;this.options=Z;this.K=new g.XO;this.ud=this.K.promise;this.L=new g.XO;this.X=1;this.S=new g.XO;this.W=[];this.II=Z.II||function(){}; this.logger=new q2(Hxf(Z.vE||{}));kFG(this,Z.m3,Z.p7,Z.UDh,Z.bVB,Object.assign({},uvM,Z.Tl||{}));this.addOnDisposeCallback(function(){return void xef(Q)})}; tOG=function(Z){var Q;return g.C(function(z){if(Z.FI())throw Error("Already disposed");(Q=Z.Y)!=null&&(Q.endTimeMs=0,Q.eZ(1));return g.P(z,Z.S.promise,0)})}; xef=function(Z){Z.T=Error("Cancelled by dispose");Z.L.resolve();vn(Z.K.promise);Z.K.reject(Error("Cancelled by dispose"));Z.logger.dispose();Promise.all(Z.W).then(function(){var z;return g.C(function(K){(z=Z.j)==null||z.dispose();Z.j=void 0;g.LX(K)})}); Z.W=[];var Q;(Q=Z.Y)!=null&&(Q.endTimeMs=0,Q.eZ(1));vn(Z.S.promise);Z.S.reject(Error("Cancelled by dispose"))}; F6d=function(Z,Q){var z=Z.II;Z.II=function(){z();Q()}}; eTd=function(Z,Q){Z.FI()||(Z.j=Q,Z.logger.update(Q.JW()),Z.L.resolve(),Z.K.resolve(void 0),Z.II())}; wa9=function(Z,Q){Q&&(Promise.all(Z.W).then(function(){return void Q.dispose()}),Z.W=[])}; mx=function(Z,Q){Z.X=Q;var z,K;(K=(z=Z.options).esp)==null||K.call(z,Q)}; Ev0=function(Z){Z.FI()||(Z.S.resolve(),Z.S=new g.XO)}; kFG=function(Z,Q,z,K,b,q){K=K===void 0?TX():K;b=b===void 0?Promise.resolve(void 0):b;var r,D,v,Y,X,S,T,f,h,m,J,d;g.C(function(G){switch(G.Y){case 1:return g.P(G,0,3);case 3:D=null;if(!r){G.O$(6);break}mx(Z,7);g.nX(G,7);return g.P(G,Ij(r.snapshot({}),q.hQ,function(){return Promise.resolve("E:CTO")}),9); case 9:D=G.j;g.m9(G,6);break;case 7:g.I0(G),D="E:UCE";case 6:v=void 0,Y=r?q.aZ:q.Nt,X=new g.c8(Y,q.s5,q.yJ,q.mP),S=0;case 10:if(!(S<q.maxAttempts)){G.O$(12);break}if(S===0){G.O$(13);break}mx(Z,0);Z.Y=new lM4(X.getValue(),q.eU,q.Gs);return g.P(G,Z.Y.promise,14);case 14:T=G.j,Z.Y=void 0,T===1?(S=0,X.reset()):g.mD(X);case 13:g.nX(G,15);f=void 0;if(z){f=z;G.O$(17);break}mx(Z,5);h=K.Y;return g.P(G,Ij(Q.RS(h,D),q.QJ,function(){return Promise.reject(Error("RGF:Fetch timed out"))}),18); case 18:f=G.j;case 17:return mx(Z,3),g.P(G,Ij(fK(K,f),q.AGI,function(){return Promise.reject(Error("DTZ:Script timed out"))}),19); case 19:return mx(Z,8),g.P(G,b,20);case 20:return m=new S$({challenge:f,vE:Z.options.vE,TC:Z.options.TC}),g.P(G,Ij(m.ud,q.li7,function(){return Promise.reject(Error("QEG:Setup timed out"))}),21); case 21:v=m;G.O$(12);break;case 15:J=g.I0(G),Z.handleError(J),Ev0(Z);case 11:S++;G.O$(10);break;case 12:if(Z.FI()){G.O$(5);break}v&&(z=void 0,wa9(Z,r),r=v,eTd(Z,v),Ev0(Z));mx(Z,2);Z.Y=new lM4(q.CYG,q.eU,q.Gs);return g.P(G,Z.Y.promise,22);case 22:Z.Y=void 0;if(Z.FI()){G.O$(5);break}G.O$(3);break;case 5:(d=r)==null||d.dispose(),g.LX(G)}})}; Ij=function(Z,Q,z){var K,b=new Promise(function(q){K=setTimeout(q,Q)}); return Promise.race([Z.finally(function(){return void clearTimeout(K)}), b.then(z)])}; lM4=function(Z,Q,z){function K(){var q=b.endTimeMs-Date.now();q<=z?b.eZ(0):setTimeout(K,Math.min(q,Q))} var b=this;this.endTimeMs=Date.now()+Z;this.promise=new Promise(function(q){b.eZ=q}); K()}; s8f=function(Z,Q){try{return globalThis.sessionStorage.setItem(Z,Q),!0}catch(z){return!1}}; Jq=function(Z,Q,z,K){Q=Q===void 0?0:Q;z=z===void 0?Z.length:z;var b=0;for(K&&(b=Jq(K));Q<z;Q++)K=typeof Z==="string"?Z.charCodeAt(Q):Z[Q],b=Z$n(31,b)+K|0;return b}; Q8u=function(Z,Q){return[Jq(Z,0,Z.length>>1,Q),Jq(Z,Z.length>>1)]}; zhn=function(Z){var Q=g.n(Q8u(Z,dK));Z=Q.next().value;Q=Q.next().value;return Z.toString(16)+Q.toString(16)}; KDD=function(Z,Q){var z=Q8u(Q);Z=new Uint32Array(Z.buffer);Q=Z[0];var K=g.n(z);z=K.next().value;K=K.next().value;for(var b=1;b<Z.length;b+=2){for(var q=Q,r=b,D=z,v=K,Y=0;Y<22;Y++)r=r>>>8|r<<24,r+=q|0,r^=D+38293,q=q<<3|q>>>29,q^=r,v=v>>>8|v<<24,v+=D|0,v^=Y+38293,D=D<<3|D>>>29,D^=v;q=[q,r];Z[b]^=q[0];b+1<Z.length&&(Z[b+1]^=q[1])}}; b$0=function(Z,Q,z,K,b){var q=(4-(dK.length+z.length)%4)%4,r=new Uint8Array(4+q+dK.length+4+z.length),D=new DataView(r.buffer),v=0;D.setUint32(v,Math.random()*4294967295);v=v+4+q;r.set(dK,v);v+=dK.length;D.setUint32(v,b);r.set(z,v+4);KDD(r,K);return Z.CK(Q,function(Y){return void globalThis.sessionStorage.removeItem(Y)})?s8f(Q,g.hj(r))?"s":"t":"i"}; qld=function(Z,Q){var z=globalThis.sessionStorage.getItem(Z);if(!z)return["m"];try{var K=nG(z);KDD(K,Q)}catch(b){return globalThis.sessionStorage.removeItem(Z),["c"]}for(Q=4;Q<7&&K[Q]===0;)Q++;for(z=0;z<dK.length;z++)if(K[Q++]!==dK[z])return globalThis.sessionStorage.removeItem(Z),["d"];z=(new DataView(K.buffer)).getUint32(Q);return Math.floor(Date.now()/1E3)>=z?(globalThis.sessionStorage.removeItem(Z),["e"]):["a",new Uint8Array(K.buffer,Q+4)]}; N2=function(Z,Q,z){z=z===void 0?[]:z;this.maxItems=Z;this.Y=Q===void 0?0:Q;this.j=z}; rE9=function(Z){var Q=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!Q)return new N2(Z);var z=Q.split(",");if(z.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new N2(Z);Q=z.slice(1);Q.length===1&&Q[0]===""&&(Q=[]);z=Number(z[0]);return isNaN(z)||z<0||z>Q.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new N2(Z)):new N2(Z,z,Q)}; AEr=function(Z,Q){this.logger=Q;try{var z=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(K){z=!1}z&&(this.index=rE9(Z))}; j8W=function(Z,Q,z,K,b){var q=Z.index?KK(Z.logger,function(){return b$0(Z.index,zhn(Q),z,K,b)},"W"):"u"; Z.logger.j2(q)}; DTW=function(Z,Q,z){var K=g.n(Z.index?KK(Z.logger,function(){return qld(zhn(Q),z)},"R"):["u"]),b=K.next().value; K=K.next().value;Z.logger.QE(b);return K}; YlG=function(Z){function Q(){z-=K;z-=b;z^=b>>>13;K-=b;K-=z;K^=z<<8;b-=z;b-=K;b^=K>>>13;z-=K;z-=b;z^=b>>>12;K-=b;K-=z;K^=z<<16;b-=z;b-=K;b^=K>>>5;z-=K;z-=b;z^=b>>>3;K-=b;K-=z;K^=z<<10;b-=z;b-=K;b^=K>>>15} Z=vr9(Z);for(var z=2654435769,K=2654435769,b=314159265,q=Z.length,r=q,D=0;r>=12;r-=12,D+=12)z+=GX(Z,D),K+=GX(Z,D+4),b+=GX(Z,D+8),Q();b+=q;switch(r){case 11:b+=Z[D+10]<<24;case 10:b+=Z[D+9]<<16;case 9:b+=Z[D+8]<<8;case 8:K+=Z[D+7]<<24;case 7:K+=Z[D+6]<<16;case 6:K+=Z[D+5]<<8;case 5:K+=Z[D+4];case 4:z+=Z[D+3]<<24;case 3:z+=Z[D+2]<<16;case 2:z+=Z[D+1]<<8;case 1:z+=Z[D+0]}Q();return gr0.toString(b)}; vr9=function(Z){for(var Q=[],z=0;z<Z.length;z++)Q.push(Z.charCodeAt(z));return Q}; GX=function(Z,Q){return Z[Q+0]+(Z[Q+1]<<8)+(Z[Q+2]<<16)+(Z[Q+3]<<24)}; ik=function(Z){g.O.call(this);var Q=this;this.logger=Z;this.j=new g.XO;this[X8W]=this.dispose;this.addOnDisposeCallback(function(){vn(Q.j.promise);Q.j.reject()})}; aj=function(Z,Q){var z=setTimeout(function(){Z.j.resolve()},Q); Z.addOnDisposeCallback(function(){return void clearTimeout(z)})}; Pj=function(Z,Q,z,K){return KK(Z.logger,function(){return z?Z.a$(Q,K):Z.mX(Q,K)},Z.Y)}; Rj=function(Z,Q,z,K){ik.call(this,Z);this.W=Q;this.K=z;this.Y="m";this.S="x";this.L=0;aj(this,K)}; CK=function(Z,Q,z){ik.call(this,Z);this.W=Q;this.Y="f";this.S="z";aj(this,z)}; pK=function(Z,Q,z){ik.call(this,Z);this.W=Q;this.Y="w";this.S="z";aj(this,z)}; M2=function(Z,Q){ik.call(this,Z);this.error=Q;this.Y="e";this.S="y"}; SlM=function(Z,Q){var z=(Q(Z.error.message)+":"+Q(Z.error.stack)).substring(0,2048);Q=z.length+1;z=UW(z);var K=new Uint8Array(4+z.length);K.set([42,Q&127|128,Q>>7,Z.error.code]);K.set(z,4);return K}; OW=function(Z,Q,z){ik.call(this,Z);this.W=Q;this.clientState=z;this.Y="S";this.S="q"}; UW=function(Z){return globalThis.TextEncoder?(new TextEncoder).encode(Z):g.cn(Z)}; oj=function(Z,Q,z){g.O.call(this);var K=this;this.logger=Z;this.onError=Q;this.state=z;this.T=0;this.j=void 0;this.addOnDisposeCallback(function(){K.Y&&(K.Y.dispose(),K.Y=void 0)})}; $Tn=function(Z,Q){Q=Q instanceof bU?Q:new bU(5,"TVD:error",Q);return Z.reportError(Q)}; Bj=function(Z,Q,z){try{if(Z.FI())throw new bU(21,"BNT:disposed");if(!Z.Y&&Z.j)throw Z.j;var K,b;return(b=(K=TCf(Z,Q,z))!=null?K:fNW(Z,Q,z))!=null?b:hhn(Z,Q,z)}catch(q){if(!Q.NP)throw $Tn(Z,q);return LDG(Z,z,q)}}; TCf=function(Z,Q,z){var K;return(K=Z.Y)==null?void 0:Pj(K,function(){return Wj(Z,Q)},z,function(b){var q; if(Z.Y instanceof Rj&&((q=Q.Hv)==null?0:q.DJ))try{var r;(r=Z.cache)==null||j8W(r,Wj(Z,Q),b,Q.Hv.fO,Z.X-120)}catch(D){Z.reportError(new bU(24,"ELX:write",D))}})}; fNW=function(Z,Q,z){var K;if((K=Q.Hv)!=null&&K.M4)try{var b,q=(b=Z.cache)==null?void 0:DTW(b,Wj(Z,Q),Q.Hv.fO);return q?z?KK(Z.logger,function(){return g.hj(q,2)},"a"):q:void 0}catch(r){Z.reportError(new bU(23,"RXO:read",r))}}; hhn=function(Z,Q,z){var K={stack:[],error:void 0,hasError:!1};try{if(!Q.ai)throw new bU(29,"SDF:notready");return Pj(Qz(K,new OW(Z.logger,Z.T,Z.state)),function(){return Wj(Z,Q)},z)}catch(b){K.error=b,K.hasError=!0}finally{Kz(K)}}; LDG=function(Z,Q,z){var K={stack:[],error:void 0,hasError:!1};try{var b=$Tn(Z,z);return Pj(Qz(K,new M2(Z.logger,b)),function(){return[]},Q)}catch(q){K.error=q,K.hasError=!0}finally{Kz(K)}}; Wj=function(Z,Q){return Q.gH?Q.gH:Q.wV?KK(Z.logger,function(){return Q.gH=UW(Q.wV)},"c"):[]}; ke=function(Z){var Q;oj.call(this,Z.Hg.JW(),(Q=Z.onError)!=null?Q:function(){},0); var z=this;this.L=0;this.W=new g.XO;this.S=!1;this.Hg=Z.Hg;this.m3=Z.m3;this.Tl=Object.assign({},nr0,Z.Tl||{});Z.Pl&&(this.logger instanceof j$||this.logger instanceof q2)&&this.logger.zX(Z.Pl);this.ql=Z.ql||!1;if(cEf(Z)){var K=this.Hg;this.K=function(){return tOG(K).catch(function(r){r=z.reportError(new bU(z.S?20:32,"TRG:Disposed",r));z.j=r;var D;(D=z.Y)==null||D.dispose();z.Y=void 0;z.W.reject(r)})}; F6d(K,function(){return void V_(z)}); K.X===2&&V_(this)}else this.K=Z.MoY,V_(this);var b=this.logger.share();b.U7("o");var q=new Q_(b,"o");this.W.promise.then(function(){q.done();b.wP();b.dispose()},function(){return void b.dispose()}); this.addOnDisposeCallback(function(){z.S||(z.j?z.logger.wP():(z.j=z.reportError(new bU(32,"TNP:Disposed")),z.logger.wP(),z.W.reject(z.j)));z.logger.dispose()})}; mT0=function(Z,Q){if(!(Q instanceof bU))if(Q instanceof Je){var z=Error(Q.toString());z.stack=Q.stack;Q=new bU(11,"EBH:Error",z)}else Q=new bU(12,"BSO:Unknown",Q);return Z.reportError(Q)}; V_=function(Z){var Q,z,K,b,q,r,D,v,Y,X,S,T,f,h,m;return g.C(function(J){switch(J.Y){case 1:Q=void 0;Z.L++;z=new g.XO;Z.Hg instanceof cj&&Z.Hg.W.push(z.promise);if(!Z.ql){J.O$(2);break}K=new g.XO;setTimeout(function(){return void K.resolve()}); return g.P(J,K.promise,2);case 2:return b=Z.logger.share(),g.nX(J,4,5),Z.state=5,q={},r=[],g.P(J,Ij(Z.Hg.snapshot({wV:q,vu:r}),Z.Tl.YsY,function(){return Promise.reject(new bU(15,"MDA:Timeout"))}),7); case 7:D=J.j;if(Z.FI())throw new bU(Z.S?20:32,"MDA:Disposed");v=r[0];Z.state=6;return g.P(J,Ij(b.BE("g",1,Z.m3.TF(D)),Z.Tl.YW,function(){return Promise.reject(new bU(10,"BWB:Timeout"))}),8); case 8:Y=J.j;if(Z.FI())throw new bU(Z.S?20:32,"BWB:Disposed");Z.state=7;Q=KK(b,function(){var G=IN9(Z,Y,z,v);G.j.promise.then(function(){return void Z.K()}).catch(function(){}); return G},"i"); case 5:g.Jn(J);b.dispose();g.yx(J,6);break;case 4:X=g.I0(J);(S=Q)==null||S.dispose();if(!Z.j){T=mT0(Z,X);z.resolve();var d;if(d=Z.Hg instanceof cj&&Z.L<2)a:if(X instanceof bU)d=X.code!==32&&X.code!==20&&X.code!==10;else{if(X instanceof Je)switch(X.code){case 2:case 13:case 14:case 4:break;default:d=!1;break a}d=!0}if(d)return f=(1+Math.random()*.25)*(Z.S?6E4:1E3),h=setTimeout(function(){return void Z.K()},f),Z.addOnDisposeCallback(function(){return void clearTimeout(h)}),J.return(); Z.j=T}b.B8(Z.S?13:14);Z.W.reject(Z.j);return J.return();case 6:Z.state=8,Z.L=0,(m=Z.Y)==null||m.dispose(),Z.Y=Q,Z.S=!0,Z.W.resolve(),g.LX(J)}})}; IN9=function(Z,Q,z,K){var b=Y_(Q,2)*1E3;if(b<=0)throw new bU(31,"TTM:Invalid");if(X6(Q,4))return new pK(Z.logger,X6(Q,4),b);if(!Y_(Q,3))return new CK(Z.logger,N6(FG(Q,1)),b);if(!K)throw new bU(4,"PMD:Undefined");K=K(N6(FG(Q,1)));if(!(K instanceof Function))throw new bU(16,"APF:Failed");Z.X=Math.floor((Date.now()+b)/1E3);Z=new Rj(Z.logger,K,Y_(Q,3),b);Z.addOnDisposeCallback(function(){return void z.resolve()}); return Z}; uk=function(){var Z=0,Q;return function(z){Q||(Q=new bk);var K=new OW(Q,Z,1),b=Pj(K,function(){return UW(z)},!0); K.dispose();Z++;return b}}; xe=function(Z){this.P4=RI(Z)}; JEn=function(Z,Q,z){this.Zo=Z;this.Aa=Q;this.metadata=z}; tq=function(Z,Q){Q=Q===void 0?{}:Q;this.RNf=Z;this.metadata=Q;this.status=null}; FO=function(Z,Q,z,K,b){this.name=Z;this.methodType="unary";this.requestType=Q;this.responseType=z;this.Y=K;this.j=b}; e$=function(Z){this.P4=RI(Z)}; wK=function(Z){this.P4=RI(Z)}; EW=function(Z){this.P4=RI(Z)}; lk=function(Z,Q){this.T=Z.kWu;this.X=Q;this.Y=Z.xhr;this.S=[];this.L=[];this.K=[];this.W=[];this.j=[];this.T&&yEW(this)}; i$9=function(Z,Q){var z=new dTu;g.o8(Z.Y,"complete",function(){if(eM(Z.Y)){var K=g.ww(Z.Y);if(Q&&Z.Y.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");K=atob(K)}try{var b=Z.X(K)}catch(D){sc(Z,Z9(new Je(13,"Error when deserializing response data; error: "+D+(", response: "+K)),z));return}K=Den(Z.Y.getStatus());Qr(Z,zp(Z));K==0?NCX(Z,b):sc(Z,Z9(new Je(K,"Xhr succeeded but the status code is not 200"),z))}else{K=g.ww(Z.Y);b=zp(Z);if(K){var q=GBn(Z, K);K=q.code;var r=q.details;q=q.metadata}else K=2,r="Rpc failed due to xhr error. uri: "+String(Z.Y.X)+", error code: "+Z.Y.j+", error: "+Z.Y.getLastError(),q=b;Qr(Z,b);sc(Z,Z9(new Je(K,r,q),z))}})}; yEW=function(Z){Z.T.Xy("data",function(Q){if("1"in Q){var z=Q["1"];try{var K=Z.X(z)}catch(b){sc(Z,new Je(13,"Error when deserializing response data; error: "+b+(", response: "+z)))}K&&NCX(Z,K)}if("2"in Q)for(Q=GBn(Z,Q["2"]),z=0;z<Z.K.length;z++)Z.K[z](Q)}); Z.T.Xy("end",function(){Qr(Z,zp(Z));for(var Q=0;Q<Z.W.length;Q++)Z.W[Q]()}); Z.T.Xy("error",function(){if(Z.j.length!=0){var Q=Z.Y.j;Q!==0||eM(Z.Y)||(Q=6);var z=-1;switch(Q){case 0:var K=2;break;case 7:K=10;break;case 8:K=4;break;case 6:z=Z.Y.getStatus();K=Den(z);break;default:K=14}Qr(Z,zp(Z));Q=$e4(Q)+", error: "+Z.Y.getLastError();z!=-1&&(Q+=", http status code: "+z);sc(Z,new Je(K,Q))}})}; zp=function(Z){var Q={},z=g.PY4(Z.Y);Object.keys(z).forEach(function(K){Q[K]=z[K]}); return Q}; GBn=function(Z,Q){var z=2,K={};try{var b=aNG(Q);z=Ao(b,1);var q=b.getMessage();qY(b,wK,3).length&&(K["grpc-web-status-details-bin"]=Q)}catch(r){Z.Y&&Z.Y.getStatus()===404?(z=5,q="Not Found: "+String(Z.Y.X)):(z=14,q="Unable to parse RpcStatus: "+r)}return{code:z,details:q,metadata:K}}; KB=function(Z,Q){Q=Z.indexOf(Q);Q>-1&&Z.splice(Q,1)}; NCX=function(Z,Q){for(var z=0;z<Z.S.length;z++)Z.S[z](Q)}; Qr=function(Z,Q){for(var z=0;z<Z.L.length;z++)Z.L[z](Q)}; sc=function(Z,Q){for(var z=0;z<Z.j.length;z++)Z.j[z](Q)}; dTu=function(){var Z=Error.call(this);this.message=Z.message;"stack"in Z&&(this.stack=Z.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"}; Z9=function(Z,Q){Q.stack&&(Z.stack+="\n"+Q.stack);return Z}; g.bT=function(Z){this.W=Z.SNg||null;this.S=Z.oA||!1;this.j=void 0}; qu=function(Z,Q){g.wC.call(this);this.SJ=Z;this.K=Q;this.L=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=this.responseXML=null;this.X=new Headers;this.j=null;this.jJ="GET";this.U="";this.Y=!1;this.T=this.S=this.W=null}; PGu=function(Z){Z.S.read().then(Z.CI.bind(Z)).catch(Z.Ke.bind(Z))}; AY=function(Z){Z.readyState=4;Z.W=null;Z.S=null;Z.T=null;rc(Z)}; rc=function(Z){Z.onreadystatechange&&Z.onreadystatechange.call(Z)}; g.jg=function(Z){this.Y=this.X=this.L="";this.S=null;this.K=this.j="";this.T=!1;var Q;Z instanceof g.jg?(this.T=Z.T,g.D9(this,Z.L),this.X=Z.X,g.vJ(this,Z.Y),g.gc(this,Z.S),this.j=Z.j,Y5(this,Z.W.clone()),this.K=Z.K):Z&&(Q=String(Z).match(Rl))?(this.T=!1,g.D9(this,Q[1]||"",!0),this.X=Xn(Q[2]||""),g.vJ(this,Q[3]||"",!0),g.gc(this,Q[4]),this.j=Xn(Q[5]||"",!0),Y5(this,Q[6]||"",!0),this.K=Xn(Q[7]||"")):(this.T=!1,this.W=new Sg(null,this.T))}; g.D9=function(Z,Q,z){Z.L=z?Xn(Q,!0):Q;Z.L&&(Z.L=Z.L.replace(/:$/,""))}; g.vJ=function(Z,Q,z){Z.Y=z?Xn(Q,!0):Q}; g.gc=function(Z,Q){if(Q){Q=Number(Q);if(isNaN(Q)||Q<0)throw Error("Bad port number "+Q);Z.S=Q}else Z.S=null}; Y5=function(Z,Q,z){Q instanceof Sg?(Z.W=Q,RhM(Z.W,Z.T)):(z||(Q=$5(Q,CGn)),Z.W=new Sg(Q,Z.T))}; g.Tp=function(Z,Q,z){Z.W.set(Q,z)}; g.fB=function(Z){return Z instanceof g.jg?Z.clone():new g.jg(Z)}; Xn=function(Z,Q){return Z?Q?decodeURI(Z.replace(/%25/g,"%2525")):decodeURIComponent(Z):""}; $5=function(Z,Q,z){return typeof Z==="string"?(Z=encodeURI(Z).replace(Q,p8G),z&&(Z=Z.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),Z):null}; p8G=function(Z){Z=Z.charCodeAt(0);return"%"+(Z>>4&15).toString(16)+(Z&15).toString(16)}; Sg=function(Z,Q){this.j=this.Y=null;this.S=Z||null;this.W=!!Q}; hY=function(Z){Z.Y||(Z.Y=new Map,Z.j=0,Z.S&&Mc(Z.S,function(Q,z){Z.add(e6(Q),z)}))}; H$d=function(Z,Q){hY(Z);Q=LB(Z,Q);return Z.Y.has(Q)}; g.M3u=function(Z,Q,z){Z.remove(Q);z.length>0&&(Z.S=null,Z.Y.set(LB(Z,Q),g.QM(z)),Z.j=Z.j+z.length)}; LB=function(Z,Q){Q=String(Q);Z.W&&(Q=Q.toLowerCase());return Q}; RhM=function(Z,Q){Q&&!Z.W&&(hY(Z),Z.S=null,Z.Y.forEach(function(z,K){var b=K.toLowerCase();K!=b&&(this.remove(K),g.M3u(this,b,z))},Z)); Z.W=Q}; g.UTG=function(Z){var Q="";g.fx(Z,function(z,K){Q+=K;Q+=":";Q+=z;Q+="\r\n"}); return Q}; g.nB=function(Z,Q,z){if(g.Ne(z))return Z;z=g.UTG(z);if(typeof Z==="string")return WK(Z,g.F5(Q),z);g.Tp(Z,Q,z);return Z}; g.cJ=function(Z){g.O.call(this);this.j=Z;this.Y={}}; O$r=function(Z,Q,z,K,b,q){if(Array.isArray(z))for(var r=0;r<z.length;r++)O$r(Z,Q,z[r],K,b,q);else{Q=Ol(Q,z,K||Z.handleEvent,b,q||Z.j||Z);if(!Q)return Z;Z.Y[Q.key]=Q}return Z}; orf=function(){this.S=!0;this.j=0;this.Y=""}; BCD=function(Z,Q,z){Z.S=!1;throw Error("The stream is broken @"+Z.j+". Error: "+z+". With input:\n"+Q);}; mu=function(){this.K=null;this.T=[];this.W=this.j=this.S=this.Y=this.U=0;this.L=null;this.X=0}; Ib=function(Z,Q,z,K){Z.Y=3;Z.K="The stream is broken @"+Z.U+"/"+z+". Error: "+K+". With input:\n"+Q;throw Error(Z.K);}; JY=function(){this.Y=null;this.j=0;this.S=new orf;this.W=new mu}; WD0=function(Z,Q,z){Z.Y="The stream is broken @"+Z.j+". Error: "+z+". With input:\n"+Q;throw Error(Z.Y);}; yr=function(Z){return Z=="\r"||Z=="\n"||Z==" "||Z=="\t"}; dc=function(Z){this.U=null;this.K=[];this.W="";this.SJ=[];this.S=this.j=0;this.T=!1;this.X=0;this.P7=/[\\"]/g;this.Y=this.L=0;this.jJ=!(!Z||!Z.bq)}; Nu=function(Z,Q,z){Z.L=3;Z.U="The stream is broken @"+Z.S+"/"+z+". With input:\n"+Q;throw Error(Z.U);}; Gp=function(){this.L=this.S=null;this.j=this.Y=0;this.W=[];this.K=!1}; V3x=function(Z){var Q=g.lq(Z,"Content-Type");if(!Q)return null;Q=Q.toLowerCase();return Q.startsWith("application/json")?Q.startsWith("application/json+protobuf")?new Gp:new dc:Q.startsWith("application/x-protobuf")?(Z=g.lq(Z,"Content-Transfer-Encoding"))?Z.toLowerCase()=="base64"?new JY:null:new mu:null}; iT=function(Z){this.Y=Z;this.j=null;this.L=this.S=0;this.U=!1;this.W=this.T=this.K=null;this.X=new g.cJ(this);this.X.listen(this.Y,"readystatechange",this.jJ)}; CB=function(Z,Q){Z.L!=Q&&(Z.L=Q,Z.T&&Z.T())}; pB=function(Z){Z.X.removeAll();if(Z.Y){var Q=Z.Y;Z.Y=null;Q.abort();Q.dispose()}}; kBd=function(Z){Z=this.S=Z;var Q=(0,g.EG)(this.S8B,this);Z.W=Q;Z=this.S;Q=(0,g.EG)(this.AHF,this);Z.T=Q;this.j={};this.Y={}}; u8n=function(Z,Q){for(var z={},K=0;K<Z.length;z={Xe:void 0},K++)z.Xe=Z[K],Q.forEach(function(b){return function(q){try{q(b.Xe)}catch(r){}}}(z))}; HJ=function(Z,Q){var z=Z.j[Q];z&&z.forEach(function(K){try{K()}catch(b){}}); (z=Z.Y[Q])&&z.forEach(function(K){K()}); Z.Y[Q]=[]}; xTf=function(){var Z={format:"jspb"};Z=Z===void 0?{}:Z;this.L=Z.ud7||g.WG("suppressCorsPreflight",Z)||!1;this.j=Z.withCredentials||g.WG("withCredentials",Z)||!1;this.W=Z.v$I||[];this.K=Z.TPJ||[];this.Y=Z.Msu;this.S=Z.Dzu||!1}; w80=function(Z,Q,z,K,b,q){q=q===void 0?{}:q;var r=Q.substring(0,Q.length-b.name.length),D,v=(D=q)==null?void 0:D.signal;return t30(function(Y){return new FDn(function(X,S){if(v==null?0:v.aborted){var T=new Je(1,"Aborted");T.cause=v.reason;S(T)}else{var f={},h=ehr(Z,Y,r);h.Xy("error",function(m){return S(m)}); h.Xy("metadata",function(m){f=m}); h.Xy("data",function(m){var J=f;J=J===void 0?{}:J;X(new tq(m,J))}); v&&v.addEventListener("abort",function(){h.cancel();var m=new Je(1,"Aborted");m.cause=v.reason;S(m)})}})},Z.K).call(Z,b.T(z,K)).then(function(Y){return Y.RNf})}; Ern=function(Z,Q,z,K,b){var q=q===void 0?{}:q;return w80(Z,Q,z,K,b,q)}; ehr=function(Z,Q,z){var K=Q.Aa,b=Q.getMetadata(),q=lNu(Z,!0);Z=slW(Z,b,q,z+K.getName());z=ZED(q,K.j,!1);i$9(z,b["X-Goog-Encode-Response-If-Executable"]=="base64");Q=K.Y(Q.Zo);q.send(Z,"POST",Q);return z}; lNu=function(Z,Q){Q=Z.S&&!Q;return Z.Y||Q?new g.uq(new g.bT({SNg:Z.Y,oA:Q})):new g.uq}; slW=function(Z,Q,z,K){Q["Content-Type"]="application/json+protobuf";Q["X-User-Agent"]="grpc-web-javascript/0.1";var b=Q.Authorization;if(b&&QlG.has(b.split(" ")[0])||Z.j)z.T=!0;if(Z.L)K=g.nB(K,"$httpHeaders",Q);else for(var q in Q)z.headers.set(q,Q[q]);return K}; ZED=function(Z,Q,z){if(z){Z.isActive();z=new iT(Z);var K=new kBd(z)}return new lk({xhr:Z,kWu:K},Q)}; t30=function(Z,Q){return Q.reduce(function(z,K){return function(b){return K.intercept(b,z)}},Z)}; zGG=function(){this.Y=new xTf;this.j="https://jnn-pa.googleapis.com".replace(/\/+$/,"")}; Mu=function(Z){g.O.call(this);this.owner=Z;this.signals=new Set;Z&&g.W(Z,this)}; Uc=function(Z,Q){Z.signals.has(Q);return Q}; Oc=function(Z){g.O.call(this);this.H5=Z;this.slots=new Map;this.dN=new Set;this.nW=!1}; KLG=function(Z,Q){Z.FI()||Z.slots.set(Q,{slotId:Q,slot:void 0,sb:function(){return Z.slots.delete(Q)}})}; BJ=function(Z,Q){new Promise(function(z){ob(function(){Z.H5&&(Z.bK=Q,Z.nW=!0);for(var K=g.n(Z.slots.values()),b=K.next();!b.done;b=K.next()){var q=b.value;b=q.slotId;q=q.slot;try{q(Q,{signal:Z,slotId:b})}catch(r){Lz(r)}}K=g.n(Z.dN);for(b=K.next();!b.done;b=K.next())b.value.resolve(Q);Z.dN.clear();z()})})}; ob=function(Z){WJ.push(Z);bED()}; bED=function(){var Z,Q;g.C(function(z){switch(z.Y){case 1:if(Vr)return z.return();g.nX(z,2,3);Vr=!0;Z=qjd(0);case 5:if(!(Z<WJ.length)){z.O$(3);break}return g.P(z,Promise.resolve(),8);case 8:Z=qjd(Z);z.O$(5);break;case 3:g.Jn(z);WJ.length=0;Vr=!1;g.yx(z,0);break;case 2:Q=g.I0(z),Lz(Q),z.O$(3)}})}; qjd=function(Z){for(var Q=Z+100;Z<Q&&Z<WJ.length;)try{WJ[Z++]()}catch(z){Lz(z)}return Z}; re9=function(Z,Q){if(Z.FI())Q();else{var z=k5.get(Z);if(z)z.push(Q);else{var K=[Q];k5.set(Z,K);Z.addOnDisposeCallback(function(){for(var b=g.n([].concat(g.I(K))),q=b.next();!q.done;q=b.next())q=q.value,q();k5.delete(Z)})}}}; uT=function(Z,Q,z){g.O.call(this);this.T=Z;this.milliseconds=Q;this.H4=z;this.state=this.W=0}; AeX=function(Z){return new uT(!1,Z,{Qm:function(){}, PA:void 0})}; x5=function(Z){fz.call(this,Z);this.name="TimerCancelledError"}; tY=function(Z){fz.call(this,Z);this.name="TimerDisposedError"}; jlX=function(Z){var Q={wV:Z.wV,gH:Z.gH,ai:!0,NP:!0};Z.Hv&&(Z=Z.Hv,Q.Hv={fO:Z.fO,M4:Z.M4,DJ:Z.DJ});return Q}; Fn=function(Z){var Q;oj.call(this,Z.Iif?new bk:new j$({ye:Z.ye,Pl:Z.Nf,Ir:Z.Ir},[]),(Q=Z.onError)!=null?Q:function(){},1); this.S=new g.XO;this.p7=void 0;this.m3=Z.m3;this.rG=Z.rG;var z;this.onEvent=(z=Z.onEvent)!=null?z:function(){}}; v74=function(Z){var Q,z,K,b,q,r,D,v,Y,X,S,T,f,h,m,J;return g.C(function(d){switch(d.Y){case 1:Q=void 0,z=Z.isReady()?6E4:1E3,K=new g.c8(z,6E5,.25,2),b={},q=1;case 2:if(!(q<=2)){d.O$(4);break}g.nX(d,5);Z.state=3;Z.T=q-1;return g.P(d,Z.p7&&q===1?Z.p7:Z.RS(q),7);case 7:return r=d.j,Z.p7=void 0,Z.state=4,D=new Q_(Z.logger,"b"),g.P(d,fK(TX(),r),8);case 8:return Z.state=5,Z.onEvent(1),b.OJ=3,b.aJ=new S$({challenge:r,md:Z.logger}),v=eg(Z,12E4).then(function(R){return function(){Z.onEvent(R.OJ);return Promise.reject(new bU(15, "MDA:Timeout"))}}(b)),g.P(d,Promise.race([b.aJ.ud, v]),9);case 9:return Z.onEvent(2),Y=[],Z.onEvent(4),b.OJ=6,g.P(d,Promise.race([b.aJ.snapshot({vu:Y}),v]),10);case 10:return X=d.j,Z.onEvent(5),S=g.n(Y),T=S.next().value,b.g1=T,D.done(),Z.state=6,g.P(d,DcD(Z,Z.logger.BE("g",q,Z.m3.TF(X)),new bU(10,"BWB:Timeout")),11);case 11:return b.q9=d.j,Z.state=7,f=KK(Z.logger,function(R){return function(){var U=R.q9;var B=R.aJ;var e=R.g1;if(X6(U,4))B.dispose(),B=new pK(Z.logger,X6(U,4),Y_(U,2)*1E3);else if(Y_(U,3)){if(!e)throw new bU(4,"PMD:Undefined");var F= e(N6(FG(U,1)));if(!(F instanceof Function))throw new bU(16,"APF:Failed");e=Y_(U,2)*1E3;U=new Rj(Z.logger,F,Y_(U,3),e);g.W(U,B);Z.X=Math.floor((Date.now()+e)/1E3);B=U}else B.dispose(),B=new CK(Z.logger,N6(FG(U,1)),Y_(U,2)*1E3);return B}}(b),"i"),m=h=void 0,(m=(h=Z).rG)==null||m.call(h,N6(FG(b.q9,1))),Z.state=8,d.return(f); case 5:J=g.I0(d);Q=J instanceof bU?J:J instanceof tY?new bU(20,"WTO:Disposed",J):J instanceof Je?new bU(11,"EBH:Error",J):new bU(12,"BSO:Unknown",J);Z.reportError(Q);a:{if(J instanceof Je)switch(J.code){case 2:case 13:case 14:case 4:var G=!0;break a;default:G=!1;break a}G=J instanceof bU?J.code!==20:!0}if(!G)throw Q;return g.P(d,eg(Z,K.getValue()),12);case 12:g.mD(K);case 3:b={OJ:void 0,q9:void 0,aJ:void 0,g1:void 0};q++;d.O$(2);break;case 4:throw Q;}})}; eg=function(Z,Q){Q=AeX(Q);g.W(Z,Q);Q.start();return Q.X}; DcD=function(Z,Q,z){return Promise.race([Q,eg(Z,12E4).then(function(){return Promise.reject(z)})])}; g7u=function(Z){var Q,z,K;g.C(function(b){switch(b.Y){case 1:return Q=void 0,g.nX(b,5),g.P(b,v74(Z),7);case 7:Q=b.j;g.m9(b,6);break;case 5:z=g.I0(b);if(Z.Y){Z.logger.B8(13);b.O$(0);break}Z.logger.B8(14);Q=new M2(Z.logger,z instanceof bU?z:new bU(14,"SOM:Init",z instanceof Error?z:Error(String(z))));case 6:return K=void 0,(K=Z.Y)==null||K.dispose(),Z.Y=Q,Z.S.resolve(),g.nX(b,8),g.P(b,Z.Y.j.promise,10);case 10:g.m9(b,1);break;case 8:g.I0(b),b.O$(0)}})}; YjG=function(Z,Q){Q.Hv&&!Z.cache&&Z.l9(Math.min(Q.Hv.gq7,150))}; XKW=function(Z){var Q={};g.SB(Z,function(z){var K=z.event,b=Q[K];Q.hasOwnProperty(K)?b!==null&&(z.Tg(b)||(Q[K]=null)):Q[K]=z}); EWG(Z,function(z){return Q[z.event]===null})}; wc=function(){this.lk=0;this.Y=!1;this.j=-1;this.nQ=!1;this.dc=0}; Ec=function(){this.j=null;this.Y=!1}; lT=function(Z){Ec.call(this);this.W=Z}; sg=function(){Ec.call(this)}; Zo=function(){Ec.call(this)}; QP=function(){this.Y={};this.j=!0;this.S={}}; z7=function(Z,Q,z){Z.Y[Q]||(Z.Y[Q]=new lT(z));return Z.Y[Q]}; Sj4=function(Z){Z.Y.queryid||(Z.Y.queryid=new Zo)}; Kf=function(Z,Q,z){(Z=Z.Y[Q])&&Z.S(z)}; bf=function(Z,Q){if(g.Jl(Z.S,Q))return Z.S[Q];if(Z=Z.Y[Q])return Z.getValue()}; qN=function(Z){var Q={},z=g.hl(Z.Y,function(K){return K.Y}); g.fx(z,function(K,b){K=Z.S[b]!==void 0?String(Z.S[b]):K.Y&&K.j!==null?String(K.j):"";K.length>0&&(Q[b]=K)},Z); return Q}; $cu=function(Z){Z=qN(Z);var Q=[];g.fx(Z,function(z,K){K in Object.prototype||typeof z!="undefined"&&Q.push([K,":",z].join(""))}); return Q}; fSD=function(Z){z7(Z,"od",Twr);z7(Z,"opac",rJ).Y=!0;z7(Z,"sbeos",rJ).Y=!0;z7(Z,"prf",rJ).Y=!0;z7(Z,"mwt",rJ).Y=!0;z7(Z,"iogeo",rJ)}; hGG=function(){this.Y=this.NA=null}; A$=function(){}; Do=function(){if(!jJ())throw Error();}; jJ=function(){return!(!vW||!vW.performance)}; gJ=function(Z){return Z?Z.passive&&LLW()?Z:Z.capture||!1:!1}; Y4=function(Z,Q,z,K){return Z.addEventListener?(Z.addEventListener(Q,z,gJ(K)),!0):!1}; Xq=function(Z){return Z.prerendering?3:{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[Z.visibilityState||Z.webkitVisibilityState||Z.mozVisibilityState||""]||0}; n79=function(){}; cen=function(){return(aE||Pn)&&RE?RE.mobile:!SJ()&&(pz("iPod")||pz("iPhone")||pz("Android")||pz("IEMobile"))}; SJ=function(){return(aE||Pn)&&RE?!RE.mobile&&(pz("iPad")||pz("Android")||pz("Silk")):pz("iPad")||pz("Android")&&!pz("Mobile")||pz("Silk")}; $4=function(Z){try{return!!Z&&Z.location.href!=null&&bzX(Z,"foo")}catch(Q){return!1}}; T7=function(Z,Q){if(Z)for(var z in Z)Object.prototype.hasOwnProperty.call(Z,z)&&Q(Z[z],z,Z)}; ISW=function(){var Z=[];T7(mcf,function(Q){Z.push(Q)}); return Z}; JeD=function(Z){var Q,z;return(z=(Q=/https?:\/\/[^\/]+/.exec(Z))==null?void 0:Q[0])!=null?z:""}; Nwx=function(){var Z=yen("IFRAME"),Q={};g.SB(dcX(),function(z){Z.sandbox&&Z.sandbox.supports&&Z.sandbox.supports(z)&&(Q[z]=!0)}); return Q}; yen=function(Z,Q){Q=Q===void 0?document:Q;return Q.createElement(String(Z).toLowerCase())}; GDn=function(Z){for(var Q=Z;Z&&Z!=Z.parent;)Z=Z.parent,$4(Z)&&(Q=Z);return Q}; RG4=function(Z){Z=Z||ff();for(var Q=new iE0(g.OG.location.href,!1),z=null,K=Z.length-1,b=K;b>=0;--b){var q=Z[b];!z&&aSM.test(q.url)&&(z=q);if(q.url&&!q.Ii){Q=q;break}}b=null;q=Z.length&&Z[K].url;Q.depth!=0&&q&&(b=Z[K]);return new Pqd(Q,b,z)}; ff=function(){var Z=g.OG,Q=[],z=null;do{var K=Z;if($4(K)){var b=K.location.href;z=K.document&&K.document.referrer||null}else b=z,z=null;Q.push(new iE0(b||""));try{Z=K.parent}catch(q){Z=null}}while(Z&&K!=Z);K=0;for(Z=Q.length-1;K<=Z;++K)Q[K].depth=Z-K;K=g.OG;if(K.location&&K.location.ancestorOrigins&&K.location.ancestorOrigins.length==Q.length-1)for(Z=1;Z<Q.length;++Z)b=Q[Z],b.url||(b.url=K.location.ancestorOrigins[Z-1]||"",b.Ii=!0);return Q}; Pqd=function(Z,Q,z){this.Y=Z;this.j=Q;this.S=z}; iE0=function(Z,Q){this.url=Z;this.Ii=!!Q;this.depth=null}; h$=function(){this.S="&";this.j={};this.W=0;this.Y=[]}; Lf=function(Z,Q){var z={};z[Z]=Q;return[z]}; Cqd=function(Z,Q,z,K,b){var q=[];T7(Z,function(r,D){(r=nf(r,Q,z,K,b))&&q.push(D+"="+r)}); return q.join(Q)}; nf=function(Z,Q,z,K,b){if(Z==null)return"";Q=Q||"&";z=z||",$";typeof z==="string"&&(z=z.split(""));if(Z instanceof Array){if(K||(K=0),K<z.length){for(var q=[],r=0;r<Z.length;r++)q.push(nf(Z[r],Q,z,K+1,b));return q.join(z[K])}}else if(typeof Z==="object")return b||(b=0),b<2?encodeURIComponent(Cqd(Z,Q,z,K,b+1)):"...";return encodeURIComponent(String(Z))}; pKf=function(Z){var Q=1,z;for(z in Z.j)z.length>Q&&(Q=z.length);return 3997-Q-Z.S.length-1}; cW=function(Z,Q){this.Y=Z;this.depth=Q}; MMf=function(){function Z(D,v){return D==null?v:D} var Q=ff(),z=Math.max(Q.length-1,0),K=RG4(Q);Q=K.Y;var b=K.j,q=K.S,r=[];q&&r.push(new cW([q.url,q.Ii?2:0],Z(q.depth,1)));b&&b!=q&&r.push(new cW([b.url,2],0));Q.url&&Q!=q&&r.push(new cW([Q.url,0],Z(Q.depth,z)));K=g.my(r,function(D,v){return r.slice(0,r.length-v)}); !Q.url||(q||b)&&Q!=q||(b=JeD(Q.url))&&K.push([new cW([b,1],Z(Q.depth,z))]);K.push([]);return g.my(K,function(D){return HEx(z,D)})}; HEx=function(Z,Q){g.It(Q,function(b){return b.depth>=0}); var z=J$(Q,function(b,q){return Math.max(b,q.depth)},-1),K=z0r(z+2); K[0]=Z;g.SB(Q,function(b){return K[b.depth+1]=b.Y}); return K}; Ucn=function(){var Z=Z===void 0?MMf():Z;return Z.map(function(Q){return nf(Q)})}; OEf=function(Z){var Q=!1;Q=Q===void 0?!1:Q;vW.google_image_requests||(vW.google_image_requests=[]);var z=yen("IMG",vW.document);Q&&(z.attributionSrc="");z.src=Z;vW.google_image_requests.push(z)}; yP=function(Z){var Q="kE";if(Z.kE&&Z.hasOwnProperty(Q))return Z.kE;var z=new Z;Z.kE=z;Z.hasOwnProperty(Q);return z}; dJ=function(){this.j=new n79;this.Y=jJ()?new Do:new A$}; o7d=function(){NN();var Z=vW.document;return!!(Z&&Z.body&&Z.body.getBoundingClientRect&&typeof vW.setInterval==="function"&&typeof vW.clearInterval==="function"&&typeof vW.setTimeout==="function"&&typeof vW.clearTimeout==="function")}; Bw0=function(){NN();return Ucn()}; WLf=function(){}; NN=function(){var Z=yP(WLf);if(!Z.Y){if(!vW)throw Error("Context has not been set and window is undefined.");Z.Y=yP(dJ)}return Z.Y}; G7=function(Z){this.P4=RI(Z)}; VMu=function(Z){this.S=Z;this.Y=-1;this.j=this.W=0}; at=function(Z,Q){return function(){var z=g.iu.apply(0,arguments);if(Z.Y>-1)return Q.apply(null,g.I(z));try{return Z.Y=Z.S.Y.now(),Q.apply(null,g.I(z))}finally{Z.W+=Z.S.Y.now()-Z.Y,Z.Y=-1,Z.j+=1}}}; kDr=function(Z,Q){this.j=Z;this.S=Q;this.Y=new VMu(Z)}; uAX=function(){this.Y={}}; tMd=function(){var Z=PW().flags,Q=xcn;Z=Z.Y[Q.key];if(Q.valueType==="proto"){try{var z=JSON.parse(Z);if(Array.isArray(z))return z}catch(K){}return Q.defaultValue}return typeof Z===typeof Q.defaultValue?Z:Q.defaultValue}; E70=function(){this.S=void 0;this.j=this.K=0;this.L=-1;this.kd=new QP;z7(this.kd,"mv",FL4).Y=!0;z7(this.kd,"omid",rJ);z7(this.kd,"epoh",rJ).Y=!0;z7(this.kd,"epph",rJ).Y=!0;z7(this.kd,"umt",rJ).Y=!0;z7(this.kd,"phel",rJ).Y=!0;z7(this.kd,"phell",rJ).Y=!0;z7(this.kd,"oseid",eGu).Y=!0;var Z=this.kd;Z.Y.sloi||(Z.Y.sloi=new sg);Z.Y.sloi.Y=!0;z7(this.kd,"mm",Rt);z7(this.kd,"ovms",wKx).Y=!0;z7(this.kd,"xdi",rJ).Y=!0;z7(this.kd,"amp",rJ).Y=!0;z7(this.kd,"prf",rJ).Y=!0;z7(this.kd,"gtx",rJ).Y=!0;z7(this.kd, "mvp_lv",rJ).Y=!0;z7(this.kd,"ssmol",rJ).Y=!0;z7(this.kd,"fmd",rJ).Y=!0;z7(this.kd,"gen204simple",rJ);this.Y=new kDr(NN(),this.kd);this.W=!1;this.flags=new uAX}; PW=function(){return yP(E70)}; lSn=function(Z,Q,z,K){if(Math.random()<(K||Z.Y))try{if(z instanceof h$)var b=z;else b=new h$,T7(z,function(r,D){var v=b,Y=v.W++;r=Lf(D,r);v.Y.push(Y);v.j[Y]=r}); var q=b.sS(Z.j,"pagead2.googlesyndication.com","/pagead/gen_204?id="+Q+"&");q&&(NN(),OEf(q))}catch(r){}}; sj9=function(Z,Q,z){z=z===void 0?{}:z;this.error=Z;this.context=Q.context;this.msg=Q.message||"";this.id=Q.id||"jserror";this.meta=z}; ZKG=function(){var Z=Z===void 0?g.OG:Z;return(Z=Z.performance)&&Z.now&&Z.timing?Math.floor(Z.now()+Z.timing.navigationStart):g.sQ()}; QjG=function(){var Z=Z===void 0?g.OG:Z;return(Z=Z.performance)&&Z.now?Z.now():null}; zmf=function(Z,Q,z){this.label=Z;this.type=Q;this.value=z;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; pf=function(){var Z=window;this.events=[];this.j=Z||g.OG;var Q=null;Z&&(Z.google_js_reporting_queue=Z.google_js_reporting_queue||[],this.events=Z.google_js_reporting_queue,Q=Z.google_measure_js_timing);this.Y=Cf()||(Q!=null?Q:Math.random()<1)}; Kx4=function(Z){Z&&HW&&Cf()&&(HW.clearMarks("goog_"+Z.label+"_"+Z.uniqueId+"_start"),HW.clearMarks("goog_"+Z.label+"_"+Z.uniqueId+"_end"))}; bKG=function(){var Z=MN;this.Y=Ug;this.j0="jserror";this.f1=!0;this.jD=null;this.j=this.oi;this.qb=Z===void 0?null:Z}; qW4=function(Z,Q,z){var K=Og;return at(PW().Y.Y,function(){try{if(K.qb&&K.qb.Y){var b=K.qb.start(Z.toString(),3);var q=Q();K.qb.end(b)}else q=Q()}catch(D){var r=K.f1;try{Kx4(b),r=K.j(Z,new ot(BW(D)),void 0,z)}catch(v){K.oi(217,v)}if(!r)throw D;}return q})()}; WW=function(Z,Q,z,K){return at(PW().Y.Y,function(){var b=g.iu.apply(0,arguments);return qW4(Z,function(){return Q.apply(z,b)},K)})}; BW=function(Z){var Q=Z.toString();Z.name&&Q.indexOf(Z.name)==-1&&(Q+=": "+Z.name);Z.message&&Q.indexOf(Z.message)==-1&&(Q+=": "+Z.message);if(Z.stack)a:{Z=Z.stack;var z=Q;try{Z.indexOf(z)==-1&&(Z=z+"\n"+Z);for(var K;Z!=K;)K=Z,Z=Z.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");Q=Z.replace(/\n */g,"\n");break a}catch(b){Q=z;break a}Q=void 0}return Q}; ot=function(Z){sj9.call(this,Error(Z),{message:Z})}; rqG=function(){vW&&typeof vW.google_measure_js_timing!="undefined"&&(vW.google_measure_js_timing||MN.disable())}; AqD=function(Z){Og.jD=function(Q){g.SB(Z,function(z){z(Q)})}}; jju=function(Z,Q){return qW4(Z,Q)}; VP=function(Z,Q){return WW(Z,Q)}; k4=function(Z,Q,z,K){Og.oi(Z,Q,z,K)}; uf=function(){return Date.now()-D2G}; ver=function(){var Z=PW().S,Q=x4>=0?uf()-x4:-1,z=t$?uf()-Fq:-1,K=eJ>=0?uf()-eJ:-1;if(Z==947190542)return 100;if(Z==79463069)return 200;Z=[2E3,4E3];var b=[250,500,1E3];k4(637,Error(),.001);var q=Q;z!=-1&&z<Q&&(q=z);for(Q=0;Q<Z.length;++Q)if(q<Z[Q]){var r=b[Q];break}r===void 0&&(r=b[Z.length]);return K!=-1&&K>1500&&K<4E3?500:r}; wJ=function(Z,Q,z,K){this.top=Z;this.right=Q;this.bottom=z;this.left=K}; Eg=function(Z){return Z.right-Z.left}; lf=function(Z,Q){return Z==Q?!0:Z&&Q?Z.top==Q.top&&Z.right==Q.right&&Z.bottom==Q.bottom&&Z.left==Q.left:!1}; sd=function(Z,Q,z){Q instanceof g.Yv?(Z.left+=Q.x,Z.right+=Q.x,Z.top+=Q.y,Z.bottom+=Q.y):(Z.left+=Q,Z.right+=Q,typeof z==="number"&&(Z.top+=z,Z.bottom+=z));return Z}; Zw=function(Z,Q,z){var K=new wJ(0,0,0,0);this.time=Z;this.volume=null;this.S=Q;this.Y=K;this.j=z}; Qq=function(Z,Q,z,K,b,q,r,D){this.W=Z;this.T=Q;this.S=z;this.K=K;this.Y=b;this.L=q;this.j=r;this.X=D}; YW0=function(Z){var Q=Z!==Z.top,z=Z.top===GDn(Z),K=-1,b=0;if(Q&&z&&Z.top.mraid){K=3;var q=Z.top.mraid}else K=(q=Z.mraid)?Q?z?2:1:0:-1;q&&(q.IS_GMA_SDK||(b=2),oKr(ged,function(r){return typeof q[r]==="function"})||(b=1)); return{LC:q,compatibility:b,Cz7:K}}; Xju=function(){var Z=window.document;return Z&&typeof Z.elementFromPoint==="function"}; SWd=function(Z,Q,z){Z&&Q!==null&&Q!=Q.top&&(Q=Q.top);try{return(z===void 0?0:z)?(new g.SO(Q.innerWidth,Q.innerHeight)).round():Q5f(Q||window).round()}catch(K){return new g.SO(-12245933,-12245933)}}; zI=function(Z,Q,z){try{Z&&(Q=Q.top);var K=SWd(Z,Q,z),b=K.height,q=K.width;if(q===-12245933)return new wJ(q,q,q,q);var r=K24(OD(Q.document).Y),D=r.x,v=r.y;return new wJ(v,D+q,v+b,D)}catch(Y){return new wJ(-12245933,-12245933,-12245933,-12245933)}}; g.ro=function(Z,Q,z,K){this.left=Z;this.top=Q;this.width=z;this.height=K}; AG=function(Z,Q){return Z==Q?!0:Z&&Q?Z.left==Q.left&&Z.width==Q.width&&Z.top==Q.top&&Z.height==Q.height:!1}; g.Dw=function(Z,Q,z){if(typeof Q==="string")(Q=je(Z,Q))&&(Z.style[Q]=z);else for(var K in Q){z=Z;var b=Q[K],q=je(z,K);q&&(z.style[q]=b)}}; je=function(Z,Q){var z=$2n[Q];if(!z){var K=RUn(Q);z=K;Z.style[K]===void 0&&(K=(g.Fv?"Webkit":v$?"Moz":null)+pLx(K),Z.style[K]!==void 0&&(z=K));$2n[Q]=z}return z}; g.go=function(Z,Q){var z=Z.style[RUn(Q)];return typeof z!=="undefined"?z:Z.style[je(Z,Q)]||""}; Ys=function(Z,Q){var z=UD(Z);return z.defaultView&&z.defaultView.getComputedStyle&&(Z=z.defaultView.getComputedStyle(Z,null))?Z[Q]||Z.getPropertyValue(Q)||"":""}; Xz=function(Z,Q){return Ys(Z,Q)||(Z.currentStyle?Z.currentStyle[Q]:null)||Z.style&&Z.style[Q]}; g.$s=function(Z,Q,z){if(Q instanceof g.Yv){var K=Q.x;Q=Q.y}else K=Q,Q=z;Z.style.left=g.Se(K,!1);Z.style.top=g.Se(Q,!1)}; TI=function(Z){try{return Z.getBoundingClientRect()}catch(Q){return{left:0,top:0,right:0,bottom:0}}}; TKG=function(Z){var Q=UD(Z),z=Xz(Z,"position"),K=z=="fixed"||z=="absolute";for(Z=Z.parentNode;Z&&Z!=Q;Z=Z.parentNode)if(Z.nodeType==11&&Z.host&&(Z=Z.host),z=Xz(Z,"position"),K=K&&z=="static"&&Z!=Q.documentElement&&Z!=Q.body,!K&&(Z.scrollWidth>Z.clientWidth||Z.scrollHeight>Z.clientHeight||z=="fixed"||z=="absolute"||z=="relative"))return Z;return null}; g.f4=function(Z){var Q=UD(Z),z=new g.Yv(0,0);if(Z==(Q?UD(Q):document).documentElement)return z;Z=TI(Z);Q=K24(OD(Q).Y);z.x=Z.left+Q.x;z.y=Z.top+Q.y;return z}; hm9=function(Z,Q){var z=new g.Yv(0,0),K=eO(UD(Z));if(!bzX(K,"parent"))return z;do{var b=K==Q?g.f4(Z):fYd(Z);z.x+=b.x;z.y+=b.y}while(K&&K!=Q&&K!=K.parent&&(Z=K.frameElement)&&(K=K.parent));return z}; g.hG=function(Z,Q){Z=Lxr(Z);Q=Lxr(Q);return new g.Yv(Z.x-Q.x,Z.y-Q.y)}; fYd=function(Z){Z=TI(Z);return new g.Yv(Z.left,Z.top)}; Lxr=function(Z){if(Z.nodeType==1)return fYd(Z);Z=Z.changedTouches?Z.changedTouches[0]:Z;return new g.Yv(Z.clientX,Z.clientY)}; g.L4=function(Z,Q,z){if(Q instanceof g.SO)z=Q.height,Q=Q.width;else if(z==void 0)throw Error("missing height argument");Z.style.width=g.Se(Q,!0);Z.style.height=g.Se(z,!0)}; g.Se=function(Z,Q){typeof Z=="number"&&(Z=(Q?Math.round(Z):Z)+"px");return Z}; g.n4=function(Z){var Q=ne9;if(Xz(Z,"display")!="none")return Q(Z);var z=Z.style,K=z.display,b=z.visibility,q=z.position;z.visibility="hidden";z.position="absolute";z.display="inline";Z=Q(Z);z.display=K;z.position=q;z.visibility=b;return Z}; ne9=function(Z){var Q=Z.offsetWidth,z=Z.offsetHeight,K=g.Fv&&!Q&&!z;return(Q===void 0||K)&&Z.getBoundingClientRect?(Z=TI(Z),new g.SO(Z.right-Z.left,Z.bottom-Z.top)):new g.SO(Q,z)}; g.c$=function(Z,Q){Z.style.display=Q?"":"none"}; N9=function(Z,Q){Q=Math.pow(10,Q);return Math.floor(Z*Q)/Q}; cqu=function(Z){return new wJ(Z.top,Z.right,Z.bottom,Z.left)}; m2r=function(Z){var Q=Z.top||0,z=Z.left||0;return new wJ(Q,z+(Z.width||0),Q+(Z.height||0),z)}; GI=function(Z){return Z!=null&&Z>=0&&Z<=1}; IYn=function(){var Z=g.iU();return Z?ih("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(Q){return yz(Z,Q)})||yz(Z,"OMI/")&&!yz(Z,"XiaoMi/")?!0:yz(Z,"Presto")&&yz(Z,"Linux")&&!yz(Z,"X11")&&!yz(Z,"Android")&&!yz(Z,"Mobi"):!1}; JqG=function(){this.S=!$4(vW.top);this.isMobileDevice=SJ()||cen();var Z=ff();this.domain=Z.length>0&&Z[Z.length-1]!=null&&Z[Z.length-1].url!=null?g.pE(Z[Z.length-1].url)||"":"";this.Y=new wJ(0,0,0,0);this.W=new g.SO(0,0);this.L=new g.SO(0,0);this.T=new wJ(0,0,0,0);this.frameOffset=new g.Yv(0,0);this.K=0;this.X=!1;this.j=!(!vW||!YW0(vW).LC);this.update(vW)}; yqD=function(Z,Q){Q&&Q.screen&&(Z.W=new g.SO(Q.screen.width,Q.screen.height))}; d2d=function(Z,Q){a:{var z=Z.Y?new g.SO(Eg(Z.Y),Z.Y.getHeight()):new g.SO(0,0);Q=Q===void 0?vW:Q;Q!==null&&Q!=Q.top&&(Q=Q.top);var K=0,b=0;try{var q=Q.document,r=q.body,D=q.documentElement;if(q.compatMode=="CSS1Compat"&&D.scrollHeight)K=D.scrollHeight!=z.height?D.scrollHeight:D.offsetHeight,b=D.scrollWidth!=z.width?D.scrollWidth:D.offsetWidth;else{var v=D.scrollHeight,Y=D.scrollWidth,X=D.offsetHeight,S=D.offsetWidth;D.clientHeight!=X&&(v=r.scrollHeight,Y=r.scrollWidth,X=r.offsetHeight,S=r.offsetWidth); v>z.height?v>X?(K=v,b=Y):(K=X,b=S):v<X?(K=v,b=Y):(K=X,b=S)}var T=new g.SO(b,K);break a}catch(f){T=new g.SO(-12245933,-12245933);break a}T=void 0}Z.L=T}; RH=function(){var Z=aH();if(Z.K>0||Z.X)return!0;Z=NN().j.isVisible();var Q=Xq(P$)===0;return Z||Q}; aH=function(){return yP(JqG)}; C4=function(Z){this.S=Z;this.j=0;this.Y=null}; p4=function(Z,Q,z){this.S=Z;this.tG=z===void 0?"na":z;this.L=[];this.isInitialized=!1;this.W=new Zw(-1,!0,this);this.Y=this;this.X=Q;this.jJ=this.U=!1;this.KN="uk";this.JG=!1;this.K=!0}; H$=function(Z,Q){g.wX(Z.L,Q)||(Z.L.push(Q),Q.kF(Z.Y),Q.b_(Z.W),Q.Je()&&(Z.U=!0))}; NKu=function(Z){Z=Z.Y;Z.c9();Z.Fx();var Q=aH();Q.T=zI(!1,Z.S,Q.isMobileDevice);d2d(aH(),Z.S);Z.W.Y=Z.Yy()}; GX4=function(Z){Z.U=Z.L.length?ih(Z.L,function(Q){return Q.Je()}):!1}; iK4=function(Z){var Q=g.QM(Z.L);g.SB(Q,function(z){z.b_(Z.W)})}; M9=function(Z){var Q=g.QM(Z.L);g.SB(Q,function(z){z.kF(Z.Y)}); Z.Y!=Z||iK4(Z)}; Ud=function(Z,Q,z,K){this.element=Z;this.Y=new wJ(0,0,0,0);this.S=null;this.K=new wJ(0,0,0,0);this.j=Q;this.kd=z;this.JG=K;this.P7=!1;this.timestamp=-1;this.U=new Qq(Q.W,this.element,this.Y,new wJ(0,0,0,0),0,0,uf(),0);this.L=void 0}; aYu=function(Z,Q){return Z.L?new wJ(Math.max(Q.top+Z.L.top,Q.top),Math.min(Q.left+Z.L.right,Q.right),Math.min(Q.top+Z.L.bottom,Q.bottom),Math.max(Q.left+Z.L.left,Q.left)):Q.clone()}; Od=function(Z){this.L=!1;this.Y=Z;this.W=function(){}}; Pk0=function(Z,Q,z){this.S=z===void 0?0:z;this.j=Z;this.Y=Q==null?"":Q}; Rmx=function(Z){switch(Math.trunc(Z.S)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; Cku=function(Z,Q){return Z.S<Q.S?!0:Z.S>Q.S?!1:Z.j<Q.j?!0:Z.j>Q.j?!1:typeof Z.Y<typeof Q.Y?!0:typeof Z.Y>typeof Q.Y?!1:Z.Y<Q.Y}; oH=function(){this.S=0;this.Y=[];this.j=!1}; pjG=function(Z,Q){(0,g.SB)(Q.Y,function(z){Z.add(z.j,z.Y,Rmx(z))})}; B$=function(Z,Q){var z=z===void 0?0:z;var K=K===void 0?!0:K;T7(Q,function(b,q){K&&b===void 0||Z.add(q,b,z)}); return Z}; W$=function(Z){var Q=HKn;Z.j&&(g.DI(Z.Y,function(z,K){return Cku(K,z)?1:Cku(z,K)?-1:0}),Z.j=!1); return J$(Z.Y,function(z,K){K=Q(K);return""+z+(z!=""&&K!=""?"&":"")+K},"")}; HKn=function(Z){var Q=Z.j;Z=Z.Y;return Z===""?Q:typeof Z==="boolean"?Z?Q:"":Array.isArray(Z)?Z.length===0?Q:Q+"="+Z.join():Q+"="+(g.wX(["mtos","tos","p"],Q)?Z:encodeURIComponent(Z))}; M$G=function(Z){var Q=Q===void 0?!0:Q;this.Y=new oH;Z!==void 0&&pjG(this.Y,Z);Q&&this.Y.add("v","unreleased",-16)}; U2r=function(Z){var Q=[],z=[];g.fx(Z,function(K,b){if(!(b in Object.prototype)&&typeof K!="undefined")switch(Array.isArray(K)&&(K=K.join(",")),K=[b,"=",K].join(""),b){case "adk":case "r":case "tt":case "error":case "mtos":case "tos":case "p":case "bs":Q.unshift(K);break;case "req":case "url":case "referrer":case "iframe_loc":z.push(K);break;default:Q.push(K)}}); return Q.concat(z)}; OKX=function(Z){Z=Z.toString();NN();OEf(Z)}; oeX=function(){this.Y=0}; BK0=function(Z,Q,z){(0,g.SB)(Z.S,function(K){var b=Z.Y;if(!K.Y&&(K.S(Q,z),K.W())){K.Y=!0;var q=K.j(),r=new oH;r.add("id","av-js");r.add("type","verif");r.add("vtype",K.L);K=yP(oeX);r.add("i",K.Y++);r.add("adk",b);B$(r,q);b=new M$G(r);OKX(b)}})}; Vq=function(){this.j=this.S=this.W=this.Y=0}; ks=function(Z){this.j=Z=Z===void 0?Wxd:Z;this.Y=g.my(this.j,function(){return new Vq})}; uh=function(Z,Q){return V$x(Z,function(z){return z.Y},Q===void 0?!0:Q)}; tG=function(Z,Q){return xs(Z,Q,function(z){return z.Y})}; kXG=function(Z,Q){return V$x(Z,function(z){return z.S},Q===void 0?!0:Q)}; Fz=function(Z,Q){return xs(Z,Q,function(z){return z.S})}; ee=function(Z,Q){return xs(Z,Q,function(z){return z.j})}; uOW=function(Z){g.SB(Z.Y,function(Q){Q.j=0})}; V$x=function(Z,Q,z){Z=g.my(Z.Y,function(K){return Q(K)}); return z?Z:x2G(Z)}; xs=function(Z,Q,z){var K=g.eR(Z.j,function(b){return Q<=b}); return K==-1?0:z(Z.Y[K])}; x2G=function(Z){return g.my(Z,function(Q,z,K){return z>0?K[z]-K[z-1]:K[z]})}; wo=function(){this.j=new ks;this.tG=this.Vp=0;this.Zu=new Vq;this.SJ=this.T=-1;this.qB=1E3;this.CN=new ks([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.KN=this.P7=-1}; Ed=function(Z,Q){return kXG(Z.j,Q===void 0?!0:Q)}; lh=function(Z,Q,z,K){var b=b===void 0?!1:b;z=WW(K,z);Y4(Z,Q,z,{capture:b})}; Zr=function(Z,Q){Q=sM(Q);return Q===0?0:sM(Z)/Q}; sM=function(Z){return Math.max(Z.bottom-Z.top,0)*Math.max(Z.right-Z.left,0)}; t$n=function(Z,Q){if(!Z||!Q)return!1;for(var z=0;Z!==null&&z++<100;){if(Z===Q)return!0;try{if(Z=Z.parentElement||Z){var K=UD(Z),b=K&&eO(K),q=b&&b.frameElement;q&&(Z=q)}}catch(r){break}}return!1}; FxD=function(Z,Q,z){if(!Z||!Q)return!1;Q=sd(Z.clone(),-Q.left,-Q.top);Z=(Q.left+Q.right)/2;Q=(Q.top+Q.bottom)/2;$4(window.top)&&window.top&&window.top.document&&(window=window.top);if(!Xju())return!1;Z=window.document.elementFromPoint(Z,Q);if(!Z)return!1;Q=(Q=(Q=UD(z))&&Q.defaultView&&Q.defaultView.frameElement)&&t$n(Q,Z);var K=Z===z;Z=!K&&Z&&rC(Z,function(b){return b===z}); return!(Q||K||Z)}; em9=function(Z,Q,z,K){return aH().S?!1:Eg(Z)<=0||Z.getHeight()<=0?!0:z&&K?jju(208,function(){return FxD(Z,Q,z)}):!1}; Qo=function(Z,Q,z){g.O.call(this);this.position=wjM.clone();this.dJ=this.Uz();this.rz=-2;this.timeCreated=Date.now();this.hk=-1;this.qO=Q;this.h5=null;this.jh=!1;this.e2=null;this.opacity=-1;this.requestSource=z;this.t_I=!1;this.xD=function(){}; this.Kp=function(){}; this.o4=new hGG;this.o4.NA=Z;this.o4.Y=Z;this.F8=!1;this.M7={X0:null,sY:null};this.b8=!0;this.nH=null;this.Xp=this.mBf=!1;PW().K++;this.Ve=this.pU();this.mf=-1;this.qR=null;this.hasCompleted=this.ZNJ=!1;this.kd=new QP;fSD(this.kd);Een(this);this.requestSource==1?Kf(this.kd,"od",1):Kf(this.kd,"od",0)}; Een=function(Z){Z=Z.o4.NA;var Q;if(Q=Z&&Z.getAttribute)Q=/-[a-z]/.test("googleAvInapp")?!1:lYd&&Z.dataset?"googleAvInapp"in Z.dataset:Z.hasAttribute?Z.hasAttribute("data-"+CpM()):!!Z.getAttribute("data-"+CpM());Q&&(aH().j=!0)}; zo=function(Z,Q){Q!=Z.Xp&&(Z.Xp=Q,Z=aH(),Q?Z.K++:Z.K>0&&Z.K--)}; sbf=function(Z,Q){if(Z.qR){if(Q.getName()===Z.qR.getName())return;Z.qR.dispose();Z.qR=null}Q=Q.create(Z.o4.Y,Z.kd,Z.Je());if(Q=Q!=null&&Q.observe()?Q:null)Z.qR=Q}; ZBx=function(Z,Q,z){if(!Z.h5||Z.qO==-1||Q.j===-1||Z.h5.j===-1)return 0;Z=Q.j-Z.h5.j;return Z>z?0:Z}; QbG=function(Z,Q,z){if(Z.qR){Z.qR.sX();var K=Z.qR.U,b=K.W,q=b.Y;if(K.K!=null){var r=K.S;Z.e2=new g.Yv(r.left-q.left,r.top-q.top)}q=Z.Kl()?Math.max(K.Y,K.L):K.Y;r={};b.volume!==null&&(r.volume=b.volume);b=Z.e0(K);Z.h5=K;Z.E$(q,Q,z,!1,r,b,K.X)}}; zcM=function(Z){if(Z.jh&&Z.nH){var Q=bf(Z.kd,"od")==1,z=aH().Y,K=Z.nH,b=Z.qR?Z.qR.getName():"ns",q=Z.e2,r=new g.SO(Eg(z),z.getHeight());z=Z.Kl();Z={HKG:b,e2:q,Q6F:r,Kl:z,lk:Z.Ve.lk,hDu:Q};if(Q=K.j){Q.sX();b=Q.U;q=b.W.Y;var D=r=null;b.K!=null&&q&&(r=b.S,r=new g.Yv(r.left-q.left,r.top-q.top),D=new g.SO(q.right-q.left,q.bottom-q.top));b=z?Math.max(b.Y,b.L):b.Y;z={HKG:Q.getName(),e2:r,Q6F:D,Kl:z,hDu:!1,lk:b}}else z=null;z&&BK0(K,Z,z)}}; Kux=function(Z,Q,z){Q&&(Z.xD=Q);z&&(Z.Kp=z)}; g.Kh=function(){}; g.bA=function(Z){return{value:Z,done:!1}}; bBu=function(){this.W=this.Y=this.S=this.j=this.L=0}; qc4=function(Z){var Q={};var z=g.sQ()-Z.L;Q=(Q.ptlt=z,Q);(z=Z.j)&&(Q.pnk=z);(z=Z.S)&&(Q.pnc=z);(z=Z.W)&&(Q.pnmm=z);(Z=Z.Y)&&(Q.pns=Z);return Q}; rYf=function(){wc.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; qO=function(Z){return GI(Z.volume)&&Z.volume>0}; rn=function(Z,Q,z,K){z=z===void 0?!0:z;K=K===void 0?function(){return!0}:K; return function(b){var q=b[Z];if(Array.isArray(q)&&K(b))return AYu(q,Q,z)}}; Ab=function(Z,Q){return function(z){return Q(z)?z[Z]:void 0}}; jbW=function(Z){return function(Q){for(var z=0;z<Z.length;z++)if(Z[z]===Q.e||Z[z]===void 0&&!Q.hasOwnProperty("e"))return!0;return!1}}; AYu=function(Z,Q,z){return z===void 0||z?g.jr(Z,function(K,b){return g.wX(Q,b)}):g.my(Q,function(K,b,q){return Z.slice(b>0?q[b-1]+1:0,K+1).reduce(function(r,D){return r+D},0)})}; Dud=function(){this.j=this.Y=""}; v5r=function(){}; Dr=function(Z,Q){var z={};if(Z!==void 0)if(Q!=null)for(var K in Q){var b=Q[K];K in Object.prototype||b!=null&&(z[K]=typeof b==="function"?b(Z):Z[b])}else g.Re(z,Z);return W$(B$(new oH,z))}; g5d=function(){var Z={};this.j=(Z.vs=[1,0],Z.vw=[0,1],Z.am=[2,2],Z.a=[4,4],Z.f=[8,8],Z.bm=[16,16],Z.b=[32,32],Z.avw=[0,64],Z.avs=[64,0],Z.pv=[256,256],Z.gdr=[0,512],Z.p=[0,1024],Z.r=[0,2048],Z.m=[0,4096],Z.um=[0,8192],Z.ef=[0,16384],Z.s=[0,32768],Z.pmx=[0,16777216],Z.mut=[33554432,33554432],Z.umutb=[67108864,67108864],Z.tvoff=[134217728,134217728],Z);this.Y={};for(var Q in this.j)this.j[Q][1]>0&&(this.Y[Q]=0);this.S=0}; vQ=function(Z,Q){var z=Z.j[Q],K=z[1];Z.S+=z[0];K>0&&Z.Y[Q]==0&&(Z.Y[Q]=1)}; YcD=function(Z){var Q=g.Ie(Z.j),z=0,K;for(K in Z.Y)g.wX(Q,K)&&Z.Y[K]==1&&(z+=Z.j[K][1],Z.Y[K]=2);return z}; XJn=function(Z){var Q=0,z;for(z in Z.Y){var K=Z.Y[z];if(K==1||K==2)Q+=Z.j[z][1]}return Q}; gn=function(){this.Y=this.j=0}; YP=function(){wo.call(this);this.S=new Vq;this.Du=this.U=this.JG=0;this.X=-1;this.Qp=new Vq;this.L=new Vq;this.Y=new ks;this.K=this.W=-1;this.jJ=new Vq;this.qB=2E3;this.c7=new gn;this.NB=new gn;this.s$=new gn}; X1=function(Z,Q,z){var K=Z.Du;t$||z||Z.X==-1||(K+=Q-Z.X);return K}; ScX=function(){this.S=!1}; Sr=function(Z,Q){this.S=!1;this.W=Z;this.U=Q;this.L=0}; $P=function(Z,Q){Sr.call(this,Z,Q);this.T=[]}; $ud=function(){}; To=function(){}; fh=function(Z,Q,z,K){Ud.call(this,Z,Q,z,K)}; Lh=function(Z,Q,z){Ud.call(this,null,Z,Q,z);this.X=Z.isActive();this.T=0}; nh=function(Z){return[Z.top,Z.left,Z.bottom,Z.right]}; cQ=function(Z,Q,z,K,b,q){q=q===void 0?new To:q;Qo.call(this,Q,z,K);this.J2=b;this.pS=0;this.fZ={};this.pK=new g5d;this.ev={};this.OZ="";this.s$=null;this.DI=!1;this.Y=[];this.D4=q.j();this.K=q.S();this.W=null;this.S=-1;this.tG=this.U=void 0;this.SJ=this.jJ=0;this.KN=-1;this.qB=this.NB=!1;this.JG=this.X=this.j=this.qV=this.gq=0;new ks;this.c7=this.Du=0;this.Zu=-1;this.Cs=0;this.T=g.DS;this.P7=[this.Uz()];this.X7=2;this.WK={};this.WK.pause="p";this.WK.resume="r";this.WK.skip="s";this.WK.mute="m";this.WK.unmute= "um";this.WK.exitfullscreen="ef";this.L=null;this.CN=this.Qp=!1;this.F7=Math.floor(Date.now()/1E3-1704067200);this.Vp=0}; mW=function(Z){Z.hasCompleted=!0;Z.Cs!=0&&(Z.Cs=3)}; I4=function(Z){return Z===void 0?Z:Number(Z)?N9(Z,3):0}; Jb=function(Z,Q){return Z.P7[Q!=null&&Q<Z.P7.length?Q:Z.P7.length-1]}; Tcn=function(Z){var Q=!!bf(PW().kd,"umt");return Z.U||!Q&&!Z.tG?0:1}; f9n=function(Z,Q){Z.JV()?Q=0:Z.qO==-1?Q=0:(Q-=Z.qO,Q=Q>Math.max(1E4,Z.S/3)?0:Q);var z=Z.T(Z)||{};z=z.currentTime!==void 0?z.currentTime:Z.jJ;var K=z-Z.jJ,b=0;K>=0?(Z.SJ+=Q,Z.c7+=Math.max(Q-K,0),b=Math.min(K,Z.SJ)):Z.Du+=Math.abs(K);K!=0&&(Z.SJ=0);Z.Zu==-1&&K>0&&(Z.Zu=eJ>=0?uf()-eJ:-1);Z.jJ=z;return b}; hcn=function(Z,Q){ih(Z.K,function(z){return z.W==Q.W})||Z.K.push(Q)}; LuD=function(Z){var Q=tG(Z.ZH().Y,1);return yo(Z,Q)}; yo=function(Z,Q,z){return Q>=15E3?!0:Z.NB?(z===void 0?0:z)?!0:Z.S>0?Q>=Z.S/2:Z.KN>0?Q>=Z.KN:!1:!1}; n5x=function(Z){var Q=N9(Z.Ve.lk,2),z=Z.pK.S,K=Z.Ve,b=Jb(Z),q=I4(b.W),r=I4(b.K),D=I4(K.volume),v=N9(b.T,2),Y=N9(b.SJ,2),X=N9(K.lk,2),S=N9(b.P7,2),T=N9(b.KN,2);K=N9(K.dc,2);var f=Z.Br().clone().round();Z=Z.qR&&Z.qR.S?(Z.qR?Z.qR.S:null).clone().round():null;b=Ed(b,!1);return{Uep:Q,i6:z,Kq:q,wJ:r,vD:D,zi:v,Wj:Y,lk:X,VV:S,Hj:T,dc:K,position:f,sM:Z,rJ:b}}; mu0=function(Z,Q){cYr(Z.Y,Q,function(){return{Uep:0,i6:void 0,Kq:-1,wJ:-1,vD:-1,zi:-1,Wj:-1,lk:-1,VV:-1,Hj:-1,dc:-1,position:void 0,sM:void 0,rJ:[]}}); Z.Y[Q]=n5x(Z)}; cYr=function(Z,Q,z){for(var K=Z.length;K<Q+1;)Z.push(z()),K++}; NO=function(Z,Q,z){var K=Z.ev[Q];if(K!=null)return K;K=I9W(Z,Q);var b=dg(dn,function(q){return q==Q}); Z=JYn(Z,K,K,z,yYD[dn[b]]);Q=="fully_viewable_audible_half_duration_impression"&&(Z.std="csm");return Z}; Go=function(Z,Q,z){var K=[Q];if(Z!=Q||z!=Q)K.unshift(Z),K.push(z);return K}; JYn=function(Z,Q,z,K,b){if(Z.F8)return{"if":0,vs:0};var q=Z.Br().clone().round(),r=Z.qR?Z.qR.S:null,D=aH(),v=PW(),Y=Z.ZH(),X=Z.qR?Z.qR.getName():"ns",S={};S["if"]=D.S?1:void 0;S.sdk=Z.W?Z.W:void 0;S.t=Z.timeCreated;S.p=[q.top,q.left,q.bottom,q.right];q&&r&&!lf(r,q)&&(q=r.round(),S.cp=[q.top,q.left,q.bottom,q.right]);S.tos=uh(Y.j,!1);S.mtos=Ed(Y);S.mcvt=Y.Zu.S;S.ps=void 0;q=X1(Y,uf(),Z.JV());S.vht=q;S.mut=Y.Qp.S;S.a=I4(Z.Ve.volume);S.mv=I4(Y.K);S.fs=Z.Xp?1:0;S.ft=Y.jJ.Y;S.at=Y.L.Y;S.as=Y.W>0?1:0;S.atos= uh(Y.Y);S.ssb=uh(Y.CN,!1);S.amtos=kXG(Y.Y,!1);S.uac=Z.gq;S.vpt=Y.S.Y;X=="nio"&&(S.nio=1,S.avms="nio");S.gmm="4";S.gdr=yo(Z,Y.S.Y,!0)?1:0;S.efpf=Z.X7;if(X=="gsv"||X=="nis")X=Z.qR,X.T>0&&(S.nnut=X.T);S.tcm=Tcn(Z);S.nmt=Z.Du;S.bt=Z.c7;S.pst=Z.Zu;S.vpaid=Z.U;S.dur=Z.S;S.vmtime=Z.jJ;S.is=Z.pK.S;Z.Y.length>=1&&(S.i0=Z.Y[0].i6,S.a0=[Z.Y[0].vD],S.c0=[Z.Y[0].lk],S.ss0=[Z.Y[0].dc],X=Z.Y[0].position,q=Z.Y[0].sM,S.p0=X?nh(X):void 0,X&&q&&!lf(q,X)&&(S.cp0=nh(q)));Z.Y.length>=2&&(S.i1=Z.Y[1].i6,S.a1=Go(Z.Y[1].Kq, Z.Y[1].vD,Z.Y[1].wJ),S.c1=Go(Z.Y[1].zi,Z.Y[1].lk,Z.Y[1].Wj),S.ss1=Go(Z.Y[1].VV,Z.Y[1].dc,Z.Y[1].Hj),X=Z.Y[1].position,q=Z.Y[1].sM,S.p1=X?nh(X):void 0,X&&q&&!lf(q,X)&&(S.cp1=nh(q)),S.mtos1=Z.Y[1].rJ);Z.Y.length>=3&&(S.i2=Z.Y[2].i6,S.a2=Go(Z.Y[2].Kq,Z.Y[2].vD,Z.Y[2].wJ),S.c2=Go(Z.Y[2].zi,Z.Y[2].lk,Z.Y[2].Wj),S.ss2=Go(Z.Y[2].VV,Z.Y[2].dc,Z.Y[2].Hj),X=Z.Y[2].position,q=Z.Y[2].sM,S.p2=X?nh(X):void 0,X&&q&&!lf(q,X)&&(S.cp2=nh(q)),S.mtos2=Z.Y[2].rJ);Z.Y.length>=4&&(S.i3=Z.Y[3].i6,S.a3=Go(Z.Y[3].Kq,Z.Y[3].vD, Z.Y[3].wJ),S.c3=Go(Z.Y[3].zi,Z.Y[3].lk,Z.Y[3].Wj),S.ss3=Go(Z.Y[3].VV,Z.Y[3].dc,Z.Y[3].Hj),X=Z.Y[3].position,q=Z.Y[3].sM,S.p3=X?nh(X):void 0,X&&q&&!lf(q,X)&&(S.cp3=nh(q)),S.mtos3=Z.Y[3].rJ);S.cs=XJn(Z.pK);Q&&(S.ic=YcD(Z.pK),S.dvpt=Y.S.j,S.dvs=ee(Y.j,.5),S.dfvs=ee(Y.j,1),S.davs=ee(Y.Y,.5),S.dafvs=ee(Y.Y,1),z&&(Y.S.j=0,uOW(Y.j),uOW(Y.Y)),Z.o$()&&(S.dtos=Y.JG,S.dav=Y.U,S.dtoss=Z.pS+1,z&&(Y.JG=0,Y.U=0,Z.pS++)),S.dat=Y.L.j,S.dft=Y.jJ.j,z&&(Y.L.j=0,Y.jJ.j=0));S.ps=[D.L.width,D.L.height];S.bs=[Eg(D.Y),D.Y.getHeight()]; S.scs=[D.W.width,D.W.height];S.dom=D.domain;Z.qV&&(S.vds=Z.qV);if(Z.K.length>0||Z.D4)Q=g.QM(Z.K),Z.D4&&Q.push(Z.D4),S.pings=g.my(Q,function(T){return T.toString()}); Q=g.my(g.jr(Z.K,function(T){return T.K()}),function(T){return T.getId()}); lDu(Q);S.ces=Q;Z.j&&(S.vmer=Z.j);Z.X&&(S.vmmk=Z.X);Z.JG&&(S.vmiec=Z.JG);S.avms=Z.qR?Z.qR.getName():"ns";Z.qR&&g.Re(S,Z.qR.Wr());K?(S.c=N9(Z.Ve.lk,2),S.ss=N9(Z.Ve.dc,2)):S.tth=uf()-duu;S.mc=N9(Y.SJ,2);S.nc=N9(Y.T,2);S.mv=I4(Y.K);S.nv=I4(Y.W);S.lte=N9(Z.rz,2);K=Jb(Z,b);Ed(Y);S.qmtos=Ed(K);S.qnc=N9(K.T,2);S.qmv=I4(K.K);S.qnv=I4(K.W);S.qas=K.W>0?1:0;S.qi=Z.OZ;S.avms||(S.avms="geo");S.psm=Y.c7.Y;S.psv=Y.c7.getValue();S.psfv=Y.NB.getValue();S.psa=Y.s$.getValue();v=$cu(v.kd);v.length&&(S.veid=v);Z.L&&g.Re(S, qc4(Z.L));S.avas=Z.Z2();S.vs=Z.jR();S.co=NcM(Z);S.tm=Y.Vp;S.tu=Y.tG;return S}; I9W=function(Z,Q){if(g.wX(Gpn,Q))return!0;var z=Z.fZ[Q];return z!==void 0?(Z.fZ[Q]=!0,!z):!1}; NcM=function(Z){var Q=Z.Vp.toString(10).padStart(2,"0");Q=""+Z.F7+Q;Z.Vp<99&&Z.Vp++;return Q}; a9f=function(){this.Y={};var Z=eO();iA(this,Z,document);var Q=iB9();try{if("1"==Q){for(var z=Z.parent;z!=Z.top;z=z.parent)iA(this,z,z.document);iA(this,Z.top,Z.top.document)}}catch(K){}}; iB9=function(){var Z=document.documentElement;try{if(!$4(eO().top))return"2";var Q=[],z=eO(Z.ownerDocument);for(Z=z;Z!=z.top;Z=Z.parent)if(Z.frameElement)Q.push(Z.frameElement);else break;return Q&&Q.length!=0?"1":"0"}catch(K){return"2"}}; iA=function(Z,Q,z){lh(z,"mousedown",function(){return PTu(Z)},301); lh(Q,"scroll",function(){return Rcn(Z)},302); lh(z,"touchmove",function(){return CTG(Z)},303); lh(z,"mousemove",function(){return pJn(Z)},304); lh(z,"keydown",function(){return HBG(Z)},305)}; PTu=function(Z){g.fx(Z.Y,function(Q){Q.S>1E5||++Q.S})}; Rcn=function(Z){g.fx(Z.Y,function(Q){Q.Y>1E5||++Q.Y})}; CTG=function(Z){g.fx(Z.Y,function(Q){Q.Y>1E5||++Q.Y})}; HBG=function(Z){g.fx(Z.Y,function(Q){Q.j>1E5||++Q.j})}; pJn=function(Z){g.fx(Z.Y,function(Q){Q.W>1E5||++Q.W})}; MgM=function(){this.Y=[];this.j=[]}; a4=function(Z,Q){return g.Fm(Z.Y,function(z){return z.OZ==Q})}; Uud=function(Z,Q){return Q?g.Fm(Z.Y,function(z){return z.o4.NA==Q}):null}; OBM=function(Z,Q){return g.Fm(Z.j,function(z){return z.ol()==2&&z.OZ==Q})}; R4=function(){var Z=PQ;return Z.Y.length==0?Z.j:Z.j.length==0?Z.Y:g.ZI(Z.j,Z.Y)}; o5G=function(Z,Q){Z=Q.ol()==1?Z.Y:Z.j;var z=to(Z,function(K){return K==Q}); return z!=-1?(Z.splice(z,1),Q.qR&&Q.qR.unobserve(),Q.dispose(),!0):!1}; BcD=function(Z){var Q=PQ;if(o5G(Q,Z)){switch(Z.ol()){case 0:var z=function(){return null}; case 2:z=function(){return OBM(Q,Z.OZ)}; break;case 1:z=function(){return a4(Q,Z.OZ)}}for(var K=z();K;K=z())o5G(Q,K)}}; WuG=function(Z){var Q=PQ;Z=g.jr(Z,function(z){return!Uud(Q,z.o4.NA)}); Q.Y.push.apply(Q.Y,g.I(Z))}; Vgr=function(Z){var Q=[];g.SB(Z,function(z){ih(PQ.Y,function(K){return K.o4.NA===z.o4.NA&&K.OZ===z.OZ})||(PQ.Y.push(z),Q.push(z))})}; Ch=function(){this.Y=this.j=null}; kpr=function(Z,Q){function z(K,b){Q(K,b)} if(Z.j==null)return!1;Z.Y=g.Fm(Z.j,function(K){return K!=null&&K.r9()}); Z.Y&&(Z.Y.init(z)?NKu(Z.Y.Y):Q(Z.Y.Y.bf(),Z.Y));return Z.Y!=null}; ph=function(Z){Z=un4(Z);Od.call(this,Z.length?Z[Z.length-1]:new p4(vW,0));this.S=Z;this.j=null}; un4=function(Z){if(!Z.length)return[];Z=(0,g.jr)(Z,function(z){return z!=null&&z.cn()}); for(var Q=1;Q<Z.length;Q++)H$(Z[Q-1],Z[Q]);return Z}; HQ=function(Z,Q,z,K){Ud.call(this,Z,Q,z,K);this.SJ=this.jJ=this.T=this.X=this.W=null}; MO=function(Z){return Z.W&&Z.W.takeRecords?Z.W.takeRecords():[]}; tgd=function(Z){if(!Z.element)return!1;var Q=Z.element,z=Z.j.Y.S,K=PW().Y.Y;Z.W=new z.IntersectionObserver(at(K,function(b){return UM(Z,b)}),xur); K=at(K,function(){Z.W.unobserve(Q);Z.W.observe(Q);UM(Z,MO(Z))}); z.ResizeObserver?(Z.X=new z.ResizeObserver(K),Z.X.observe(Q)):z.MutationObserver&&(Z.T=new g.OG.MutationObserver(K),Z.T.observe(Q,{attributes:!0,childList:!0,characterData:!0,subtree:!0}));Z.W.observe(Q);UM(Z,MO(Z));return!0}; UM=function(Z,Q){try{if(Q.length){Z.jJ||(Z.jJ=uf());var z=FuM(Q),K=hm9(Z.element,Z.j.Y.S),b=K.x,q=K.y;Z.S=new wJ(Math.round(q),Math.round(b)+z.boundingClientRect.width,Math.round(q)+z.boundingClientRect.height,Math.round(b));Z.Y=aYu(Z,Z.S);var r=cqu(z.intersectionRect);Z.K=sd(r,Z.S.left-r.left,Z.S.top-r.top)}}catch(D){Z.unobserve(),k4(299,D)}}; FuM=function(Z){return J$(Z,function(Q,z){return Q.time>z.time?Q:z},Z[0])}; OM=function(Z){Z=Z===void 0?vW:Z;Od.call(this,new p4(Z,2))}; o4=function(){var Z=ecx();p4.call(this,vW.top,Z,"geo")}; ecx=function(){PW();var Z=aH();return Z.S||Z.j?0:2}; wJu=function(){}; BQ=function(){this.done=!1;this.Y={Rx:0,ZF:0,Q$h:0,hI:0,N9:-1,AQ:0,q1:0,CB:0,gE$:0};this.L=null;this.K=!1;this.S=null;this.T=0;this.j=new C4(this)}; Vo=function(){var Z=WQ;Z.K||(Z.K=!0,E54(Z,function(){return Z.W.apply(Z,g.I(g.iu.apply(0,arguments)))}),Z.W())}; l9r=function(){yP(wJu);var Z=yP(Ch);Z.Y!=null&&Z.Y.Y?NKu(Z.Y.Y):aH().update(vW)}; kP=function(Z,Q,z){if(!Z.done&&(Z.j.cancel(),Q.length!=0)){Z.S=null;try{l9r();var K=uf();PW().L=K;if(yP(Ch).Y!=null)for(var b=0;b<Q.length;b++)QbG(Q[b],K,z);for(K=0;K<Q.length;K++)zcM(Q[K]);++Z.Y.hI}finally{z?g.SB(Q,function(q){q.Ve.lk=0}):Z.j.schedule()}}}; E54=function(Z,Q){if(!Z.L){Q=WW(142,Q);NN();var z;P$.visibilityState?z="visibilitychange":P$.mozVisibilityState?z="mozvisibilitychange":P$.webkitVisibilityState&&(z="webkitvisibilitychange");z&&Y4(P$,z,Q,{capture:!1})&&(Z.L=Q)}}; stu=function(){var Z=yP(Ch);if(Z.Y!=null){var Q=Z.Y;g.SB(R4(),function(z){return sbf(z,Q)})}}; ZfG=function(Z,Q){Z=Z.T;t$&&(Z+=Q-Fq);return Z}; Qtn=function(Z){Z=Z===void 0?function(){return{}}:Z; Og.j0="av-js";Ug.Y=.01;AqD([function(Q){var z=PW(),K={};K=(K.bin=z.j,K.type="error",K);z=qN(z.kd);if(!WQ.S){var b=WQ,q=vW.document,r=x4>=0?uf()-x4:-1,D=uf();b.Y.N9==-1&&(r=D);var v=aH(),Y=PW(),X=qN(Y.kd),S=R4();try{if(S.length>0){var T=v.Y;T&&(X.bs=[Eg(T),T.getHeight()]);var f=v.L;f&&(X.ps=[f.width,f.height]);vW.screen&&(X.scs=[vW.screen.width,vW.screen.height])}else X.url=encodeURIComponent(vW.location.href.substring(0,512)),q.referrer&&(X.referrer=encodeURIComponent(q.referrer.substring(0,512))); X.tt=r;X.pt=x4;X.bin=Y.j;vW.google_osd_load_pub_page_exp!==void 0&&(X.olpp=vW.google_osd_load_pub_page_exp);X.deb=[1,b.Y.Rx,b.Y.ZF,b.Y.hI,b.Y.N9,0,b.j.j,b.Y.AQ,b.Y.q1,b.Y.CB,b.Y.gE$,-1].join(";");X.tvt=ZfG(b,D);v.j&&(X.inapp=1);if(vW!==null&&vW!=vW.top){S.length>0&&(X.iframe_loc=encodeURIComponent(vW.location.href.substring(0,512)));var h=v.T;X.is=[Eg(h),h.getHeight()]}}catch(m){X.error=1}WQ.S=X}T=g.ae(WQ.S);f=PW().Y;bf(f.S,"prf")==1?(h=new G7,b=f.Y,q=0,b.Y>-1&&(q=b.S.Y.now()-b.Y),h=ex(h,1,rD(b.W+ q),0),b=f.Y,h=ex(h,5,vL(b.Y>-1?b.j+1:b.j),0),h=ex(h,2,n9(f.j.Y.S()),"0"),h=ex(h,3,n9(f.j.Y.j()),"0"),f=ex(h,4,n9(f.j.Y.Y()),"0"),h={},f=(h.pf=g.hj(f.Y()),h)):f={};g.Re(T,f);g.Re(Q,K,z,T,Z())}])}; Kyf=function(){var Z=z8W||vW;if(!Z)return"";var Q=[];if(!Z.location||!Z.location.href)return"";Q.push("url="+encodeURIComponent(Z.location.href.substring(0,512)));Z.document&&Z.document.referrer&&Q.push("referrer="+encodeURIComponent(Z.document.referrer.substring(0,512)));return Q.join("&")}; uA=function(){var Z="youtube.player.web_20250219_01_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20250219_01_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20250219_01_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20250219_01_RC00".match(/_(\d{8})_\d+_RC\d+$/),Q;if(((Q=Z)==null?void 0:Q.length)==2)return Z[1];Z="youtube.player.web_20250219_01_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var z;return((z=Z)==null?void 0:z.length)==3?"20"+Z[1]+Z[2]:null}; bfu=function(){return"av.default_js".includes("ima_html5_sdk")?{BH:"ima",Rl:null}:"av.default_js".includes("ima_native_sdk")?{BH:"nima",Rl:null}:"av.default_js".includes("admob-native-video-javascript")?{BH:"an",Rl:null}:"youtube.player.web_20250219_01_RC00".includes("cast_js_sdk")?{BH:"cast",Rl:uA()}:"youtube.player.web_20250219_01_RC00".includes("youtube.player.web")?{BH:"yw",Rl:uA()}:"youtube.player.web_20250219_01_RC00".includes("outstream_web_client")?{BH:"out",Rl:uA()}:"youtube.player.web_20250219_01_RC00".includes("drx_rewarded_web")? {BH:"r",Rl:uA()}:"youtube.player.web_20250219_01_RC00".includes("gam_native_web_video")?{BH:"n",Rl:uA()}:"youtube.player.web_20250219_01_RC00".includes("admob_interstitial_video")?{BH:"int",Rl:uA()}:{BH:"j",Rl:null}}; F1=function(Z,Q){var z={sv:"966"};xP!==null&&(z.v=xP);z.cb=qgG;z.nas=PQ.Y.length;z.msg=Z;Q!==void 0&&(Z=r$u(Q))&&(z.e=tb[Z]);return z}; er=function(Z){return mw(Z,"custom_metric_viewable")}; r$u=function(Z){var Q=er(Z)?"custom_metric_viewable":Z.toLowerCase();return dg(dn,function(z){return z==Q})}; A$r=function(){this.Y=void 0;this.j=!1;this.S=0;this.W=-1;this.L="tos"}; v4u=function(Z){try{var Q=Z.split(",");return Q.length>g.Ie(jtr).length?null:J$(Q,function(z,K){K=K.toLowerCase().split("=");if(K.length!=2||DND[K[0]]===void 0||!DND[K[0]](K[1]))throw Error("Entry ("+K[0]+", "+K[1]+") is invalid.");z[K[0]]=K[1];return z},{})}catch(z){return null}}; g4x=function(Z,Q){if(Z.Y==void 0)return 0;switch(Z.L){case "mtos":return Z.j?Fz(Q.Y,Z.Y):Fz(Q.j,Z.Y);case "tos":return Z.j?tG(Q.Y,Z.Y):tG(Q.j,Z.Y)}return 0}; wn=function(Z,Q,z,K){Sr.call(this,Q,K);this.T=Z;this.X=z}; EM=function(){}; lA=function(Z){Sr.call(this,"fully_viewable_audible_half_duration_impression",Z)}; s6=function(Z){this.Y=Z}; Zb=function(Z,Q){Sr.call(this,Z,Q)}; Q$=function(Z){$P.call(this,"measurable_impression",Z)}; zH=function(){s6.apply(this,arguments)}; K8=function(Z,Q,z){Lh.call(this,Z,Q,z)}; bR=function(Z){Z=Z===void 0?vW:Z;Od.call(this,new p4(Z,2))}; qD=function(Z,Q,z){Lh.call(this,Z,Q,z)}; r2=function(Z){Z=Z===void 0?vW:Z;Od.call(this,new p4(Z,2))}; AO=function(){p4.call(this,vW,2,"mraid");this.c7=0;this.SJ=this.P7=!1;this.T=null;this.j=YW0(this.S);this.W.Y=new wJ(0,0,0,0);this.Vp=!1}; j_=function(Z,Q,z){Z.Bz("addEventListener",Q,z)}; $Nx=function(Z){PW().W=!!Z.Bz("isViewable");j_(Z,"viewableChange",Ygx);Z.Bz("getState")==="loading"?j_(Z,"ready",XWx):SgW(Z)}; SgW=function(Z){typeof Z.j.LC.AFMA_LIDAR==="string"?(Z.P7=!0,TJn(Z)):(Z.j.compatibility=3,Z.T="nc",Z.W8("w"))}; TJn=function(Z){Z.SJ=!1;var Q=bf(PW().kd,"rmmt")==1,z=!!Z.Bz("isViewable");(Q?!z:1)&&NN().setTimeout(VP(524,function(){Z.SJ||(fon(Z),k4(540,Error()),Z.T="mt",Z.W8("w"))}),500); h8M(Z);j_(Z,Z.j.LC.AFMA_LIDAR,Lyn)}; h8M=function(Z){var Q=bf(PW().kd,"sneio")==1,z=Z.j.LC.AFMA_LIDAR_EXP_1!==void 0,K=Z.j.LC.AFMA_LIDAR_EXP_2!==void 0;(Q=Q&&K)&&(Z.j.LC.AFMA_LIDAR_EXP_2=!0);z&&(Z.j.LC.AFMA_LIDAR_EXP_1=!Q)}; fon=function(Z){Z.Bz("removeEventListener",Z.j.LC.AFMA_LIDAR,Lyn);Z.P7=!1}; n4X=function(Z,Q){if(Z.Bz("getState")==="loading")return new g.SO(-1,-1);Q=Z.Bz(Q);if(!Q)return new g.SO(-1,-1);Z=parseInt(Q.width,10);Q=parseInt(Q.height,10);return isNaN(Z)||isNaN(Q)?new g.SO(-1,-1):new g.SO(Z,Q)}; XWx=function(){try{var Z=yP(AO);Z.Bz("removeEventListener","ready",XWx);SgW(Z)}catch(Q){k4(541,Q)}}; Lyn=function(Z,Q){try{var z=yP(AO);z.SJ=!0;var K=Z?new wJ(Z.y,Z.x+Z.width,Z.y+Z.height,Z.x):new wJ(0,0,0,0);var b=uf(),q=RH();var r=new Zw(b,q,z);r.Y=K;r.volume=Q;z.b_(r)}catch(D){k4(542,D)}}; Ygx=function(Z){var Q=PW(),z=yP(AO);Z&&!Q.W&&(Q.W=!0,z.Vp=!0,z.T&&z.W8("w",!0))}; Db=function(){this.isInitialized=!1;this.Y=this.j=null;var Z={};this.T=(Z.start=this.LFB,Z.firstquartile=this.JGg,Z.midpoint=this.bNJ,Z.thirdquartile=this.VJB,Z.complete=this.dBI,Z.error=this.BrI,Z.pause=this.RQ,Z.resume=this.mW,Z.skip=this.zYG,Z.viewable_impression=this.f9,Z.mute=this.XM,Z.unmute=this.XM,Z.fullscreen=this.ONJ,Z.exitfullscreen=this.RY$,Z.fully_viewable_audible_half_duration_impression=this.f9,Z.measurable_impression=this.f9,Z.abandon=this.RQ,Z.engagedview=this.f9,Z.impression=this.f9, Z.creativeview=this.f9,Z.progress=this.XM,Z.custom_metric_viewable=this.f9,Z.bufferstart=this.RQ,Z.bufferfinish=this.mW,Z.audio_measurable=this.f9,Z.audio_audible=this.f9,Z);Z={};this.X=(Z.overlay_resize=this.KFr,Z.abandon=this.oL,Z.close=this.oL,Z.collapse=this.oL,Z.overlay_unmeasurable_impression=function(Q){return NO(Q,"overlay_unmeasurable_impression",RH())},Z.overlay_viewable_immediate_impression=function(Q){return NO(Q,"overlay_viewable_immediate_impression",RH())},Z.overlay_unviewable_impression= function(Q){return NO(Q,"overlay_unviewable_impression",RH())},Z.overlay_viewable_end_of_session_impression=function(Q){return NO(Q,"overlay_viewable_end_of_session_impression",RH())},Z); PW().j=3;c$X(this);this.S=null}; vk=function(Z,Q,z,K){Z=Z.TG(null,K,!0,Q);Z.W=z;WuG([Z]);return Z}; mNf=function(Z,Q,z){XKW(Q);var K=Z.Y;g.SB(Q,function(b){var q=g.my(b.criteria,function(r){var D=v4u(r);if(D==null)r=null;else if(r=new A$r,D.visible!=null&&(r.Y=D.visible/100),D.audible!=null&&(r.j=D.audible==1),D.time!=null){var v=D.timetype=="mtos"?"mtos":"tos",Y=OXW(D.time,"%")?"%":"ms";D=parseInt(D.time,10);Y=="%"&&(D/=100);r.setTime(D,Y,v)}return r}); ih(q,function(r){return r==null})||hcn(z,new wn(b.id,b.event,q,K))})}; Ion=function(){var Z=[],Q=PW();Z.push(yP(o4));bf(Q.kd,"mvp_lv")&&Z.push(yP(AO));Q=[new bR,new r2];Q.push(new ph(Z));Q.push(new OM(vW));return Q}; J$4=function(Z){if(!Z.isInitialized){Z.isInitialized=!0;try{var Q=uf(),z=PW(),K=aH();x4=Q;z.S=79463069;Z.j!=="o"&&(z8W=GDn(vW));if(o7d()){WQ.Y.ZF=0;WQ.Y.N9=uf()-Q;var b=Ion(),q=yP(Ch);q.j=b;kpr(q,function(){g2()})?WQ.done||(stu(),H$(q.Y.Y,Z),Vo()):K.S?g2():Vo()}else Yl=!0}catch(r){throw PQ.reset(),r; }}}; S_=function(Z){WQ.j.cancel();XH=Z;WQ.done=!0}; $l=function(Z){if(Z.j)return Z.j;var Q=yP(Ch).Y;if(Q)switch(Q.getName()){case "nis":Z.j="n";break;case "gsv":Z.j="m"}Z.j||(Z.j="h");return Z.j}; TH=function(Z,Q,z){if(Z.Y==null)return Q.qV|=4,!1;Z=y$x(Z.Y,z,Q);Q.qV|=Z;return Z==0}; g2=function(){var Z=[new OM(vW)],Q=yP(Ch);Q.j=Z;kpr(Q,function(){S_("i")})?WQ.done||(stu(),Vo()):S_("i")}; dNd=function(Z,Q){if(!Z.DI){var z=NO(Z,"start",RH());z=Z.J2.Y(z).Y;var K={id:"lidarv"};K.r=Q;K.sv="966";xP!==null&&(K.v=xP);Mc(z,function(b,q){return K[b]=b=="mtos"||b=="tos"?q:encodeURIComponent(q)}); Q=Kyf();Mc(Q,function(b,q){return K[b]=encodeURIComponent(q)}); Q="//pagead2.googlesyndication.com/pagead/gen_204?"+W$(B$(new oH,K));OKX(Q);Z.DI=!0}}; f8=function(Z,Q,z){kP(WQ,[Z],!RH());mu0(Z,z);z!=4&&cYr(Z.P7,z,Z.Uz);return NO(Z,Q,RH())}; c$X=function(Z){Qtn(function(){var Q=NJn();Z.j!=null&&(Q.sdk=Z.j);var z=yP(Ch);z.Y!=null&&(Q.avms=z.Y.getName());return Q})}; G74=function(Z,Q,z,K){var b=Uud(PQ,z);b!==null&&b.OZ!==Q&&(Z.Rp(b),b=null);b||(Q=Z.TG(z,uf(),!1,Q),PQ.j.length==0&&(PW().S=79463069),Vgr([Q]),b=Q,b.W=$l(Z),K&&(b.s$=K));return b}; if0=function(Z,Q){var z=Z[Q];z!==void 0&&z>0&&(Z[Q]=Math.floor(z*1E3))}; NJn=function(){var Z=aH(),Q={},z={},K={};return Object.assign({},(Q.sv="966",Q),xP!==null&&(z.v=xP,z),(K["if"]=Z.S?"1":"0",K.nas=String(PQ.Y.length),K))}; hO=function(Z){Sr.call(this,"audio_audible",Z)}; L8=function(Z){$P.call(this,"audio_measurable",Z)}; n8=function(){s6.apply(this,arguments)}; ck=function(){}; ao4=function(Z){this.Y=Z}; y$x=function(Z,Q,z){Z=Z.j();if(typeof Z==="function"){var K={};var b={};K=Object.assign({},xP!==null&&(K.v=xP,K),(b.sv="966",b.cb=qgG,b.e=PfW(Q),b));b=NO(z,Q,RH());g.Re(K,b);z.ev[Q]=b;K=z.ol()==2?U2r(K).join("&"):z.J2.Y(K).Y;try{return Z(z.OZ,K,Q),0}catch(q){return 2}}else return 1}; PfW=function(Z){var Q=er(Z)?"custom_metric_viewable":Z;Z=dg(dn,function(z){return z==Q}); return tb[Z]}; JO=function(){Db.call(this);this.K=null;this.L=!1;this.W="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; R80=function(Z,Q,z){z=z.opt_configurable_tracking_events;Z.Y!=null&&Array.isArray(z)&&mNf(Z,z,Q)}; CfD=function(Z,Q,z){var K=a4(PQ,Q);K||(K=z.opt_nativeTime||-1,K=vk(Z,Q,$l(Z),K),z.opt_osdId&&(K.s$=z.opt_osdId));return K}; pWM=function(Z,Q,z){var K=a4(PQ,Q);K||(K=vk(Z,Q,"n",z.opt_nativeTime||-1));return K}; Hfu=function(Z,Q){var z=a4(PQ,Q);z||(z=vk(Z,Q,"h",-1));return z}; MJr=function(Z){PW();switch($l(Z)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; o49=function(Z,Q,z,K){z=z===void 0?{}:z;var b={};g.Re(b,{opt_adElement:void 0,opt_fullscreen:void 0},z);var q=Z.WR(Q,z);z=q?q.J2:Z.h0();if(b.opt_bounds)return z.Y(F1("ol",K));if(K!==void 0)if(r$u(K)!==void 0)if(Yl)Z=F1("ue",K);else if(J$4(Z),XH=="i")Z=F1("i",K),Z["if"]=0;else if(Q=Z.WR(Q,b)){b:{XH=="i"&&(Q.F8=!0);q=b.opt_fullscreen;q!==void 0&&zo(Q,!!q);var r;if(q=!aH().j)(q=yz(g.iU(),"CrKey")&&!(yz(g.iU(),"CrKey")&&yz(g.iU(),"SmartSpeaker"))||yz(g.iU(),"PlayStation")||yz(g.iU(),"Roku")||IYn()||yz(g.iU(), "Xbox"))||(q=g.iU(),q=yz(q,"AppleTV")||yz(q,"Apple TV")||yz(q,"CFNetwork")||yz(q,"tvOS")),q||(q=g.iU(),q=yz(q,"sdk_google_atv_x86")||yz(q,"Android TV")),q=!q;q&&(NN(),q=Xq(P$)===0);if(r=q){switch(Q.ol()){case 1:dNd(Q,"pv");break;case 2:Z.Ep(Q)}S_("pv")}q=K.toLowerCase();if(r=!r)r=bf(PW().kd,"ssmol")&&q==="loaded"?!1:g.wX(UNd,q);if(r&&Q.Cs==0){XH!="i"&&(WQ.done=!1);r=b!==void 0?b.opt_nativeTime:void 0;eJ=r=typeof r==="number"?r:uf();Q.jh=!0;var D=RH();Q.Cs=1;Q.fZ={};Q.fZ.start=!1;Q.fZ.firstquartile= !1;Q.fZ.midpoint=!1;Q.fZ.thirdquartile=!1;Q.fZ.complete=!1;Q.fZ.resume=!1;Q.fZ.pause=!1;Q.fZ.skip=!1;Q.fZ.mute=!1;Q.fZ.unmute=!1;Q.fZ.viewable_impression=!1;Q.fZ.measurable_impression=!1;Q.fZ.fully_viewable_audible_half_duration_impression=!1;Q.fZ.fullscreen=!1;Q.fZ.exitfullscreen=!1;Q.pS=0;D||(Q.ZH().X=r);kP(WQ,[Q],!D)}(r=Q.WK[q])&&vQ(Q.pK,r);bf(PW().kd,"fmd")||g.wX(OfX,q)&&Q.D4&&Q.D4.j(Q,null);switch(Q.ol()){case 1:var v=er(q)?Z.T.custom_metric_viewable:Z.T[q];break;case 2:v=Z.X[q]}if(v&&(K=v.call(Z, Q,b,K),bf(PW().kd,"fmd")&&g.wX(OfX,q)&&Q.D4&&Q.D4.j(Q,null),K!==void 0)){b=F1(void 0,q);g.Re(b,K);K=b;break b}K=void 0}Q.Cs==3&&Z.Rp(Q);Z=K}else Z=F1("nf",K);else Z=void 0;else Yl?Z=F1("ue"):q?(Z=F1(),g.Re(Z,JYn(q,!0,!1,!1))):Z=F1("nf");return typeof Z==="string"?z.Y():z.Y(Z)}; BJX=function(Z,Q){Q&&(Z.W=Q)}; Wyx=function(Z){var Q={};return Q.viewability=Z.Y,Q.googleViewability=Z.j,Q}; VJr=function(Z,Q,z){z=z===void 0?{}:z;Z=o49(yP(JO),Q,z,Z);return Wyx(Z)}; ND=function(Z){var Q=g.iu.apply(1,arguments).filter(function(K){return K}).join("&"); if(!Q)return Z;var z=Z.match(/[?&]adurl=/);return z?Z.slice(0,z.index+1)+Q+"&"+Z.slice(z.index+1):Z+(Z.indexOf("?")===-1?"?":"&")+Q}; uqX=function(Z){var Q=Z.url;Z=Z.xzr;this.Y=Q;this.T=Z;Z=/[?&]dsh=1(&|$)/.test(Q);this.L=!Z&&/[?&]ae=1(&|$)/.test(Q);this.K=!Z&&/[?&]ae=2(&|$)/.test(Q);if((this.j=/[?&]adurl=([^&]*)/.exec(Q))&&this.j[1]){try{var z=decodeURIComponent(this.j[1])}catch(K){z=null}this.S=z}this.W=(new Date).getTime()-k7f}; xNX=function(Z){Z=Z.T;if(!Z)return"";var Q="";Z.platform&&(Q+="&uap="+encodeURIComponent(Z.platform));Z.platformVersion&&(Q+="&uapv="+encodeURIComponent(Z.platformVersion));Z.uaFullVersion&&(Q+="&uafv="+encodeURIComponent(Z.uaFullVersion));Z.architecture&&(Q+="&uaa="+encodeURIComponent(Z.architecture));Z.model&&(Q+="&uam="+encodeURIComponent(Z.model));Z.bitness&&(Q+="&uab="+encodeURIComponent(Z.bitness));Z.fullVersionList&&(Q+="&uafvl="+encodeURIComponent(Z.fullVersionList.map(function(z){return encodeURIComponent(z.brand)+ ";"+encodeURIComponent(z.version)}).join("|"))); typeof Z.wow64!=="undefined"&&(Q+="&uaw="+Number(Z.wow64));return Q.substring(1)}; e8G=function(Z,Q,z,K,b){var q=window;var r=r===void 0?!1:r;var D;z?D=(r===void 0?0:r)?"//ep1.adtrafficquality.google/bg/"+wW(z)+".js":"//pagead2.googlesyndication.com/bg/"+wW(z)+".js":D="";r=r===void 0?!1:r;z=q.document;var v={};Q&&(v._scs_=Q);v._bgu_=D;v._bgp_=K;v._li_="v_h.3.0.0.0";b&&(v._upb_=b);(Q=q.GoogleTyFxhY)&&typeof Q.push=="function"||(Q=q.GoogleTyFxhY=[]);Q.push(v);Q=OD(z).createElement("SCRIPT");Q.type="text/javascript";Q.async=!0;Z=(r===void 0?0:r)?l2x(tJ9,wW(Z)+".js"):l2x(Fyd,wW(Z)+ ".js");g.WB(Q,Z);(q=(q.GoogleTyFxhYEET||{})[Q.src])?q():z.getElementsByTagName("head")[0].appendChild(Q)}; wWx=function(){try{var Z,Q;return!!((Z=window)==null?0:(Q=Z.top)==null?0:Q.location.href)&&!1}catch(z){return!0}}; iR=function(){var Z=E4n();Z=Z===void 0?"bevasrsg":Z;return new Promise(function(Q){var z=window===window.top?window:wWx()?window:window.top,K=z[Z],b;((b=K)==null?0:b.bevasrs)?Q(new GH(K.bevasrs)):(K||(K={},K=(K.nqfbel=[],K),z[Z]=K),K.nqfbel.push(function(q){Q(new GH(q))}))})}; lox=function(Z){var Q={c:Z.wV,e:Z.gH,mc:Z.ai,me:Z.NP};Z.Hv&&(Q.co={c:Z.Hv.fO,a:Z.Hv.M4,s:Z.Hv.DJ});return Q}; aF=function(Z){g.O.call(this);this.wpc=Z}; GH=function(Z){g.O.call(this);var Q=this;this.Hg=Z;this.S="keydown keypress keyup input focusin focusout select copy cut paste change click dblclick auxclick pointerover pointerdown pointerup pointermove pointerout dragenter dragleave drag dragend mouseover mousedown mouseup mousemove mouseout touchstart touchend touchmove wheel".split(" ");this.Y=void 0;this.ud=this.Hg.p;this.W=this.JF.bind(this);this.addOnDisposeCallback(function(){return void sHd(Q)})}; Z4u=function(Z){var Q;return g.C(function(z){if(z.Y==1){if(!Z.Hg.wpc)throw new bU(30,"NWA");return Z.j?z.return(Z.j):g.P(z,Z.Hg.wpc(),2)}Q=z.j;Z.j=new aF(Q);return z.return(Z.j)})}; sHd=function(Z){Z.Y!==void 0&&(Z.S.forEach(function(Q){var z;(z=Z.Y)==null||z.removeEventListener(Q,Z.W)}),Z.Y=void 0)}; Kix=function(Z){if(g.IE(g.E3(Z)))return!1;if(Z.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&")>=0)return!0;try{var Q=new g.jg(Z)}catch(z){return g.Fm(QHd,function(K){return Z.search(K)>0})!=null}return Q.K.match(zyD)?!0:g.Fm(QHd,function(z){return Z.match(z)!=null})!=null}; g.Pk=function(Z,Q){return Z.replace(b4X,function(z,K){try{var b=g.GF(Q,K);if(b==null||b.toString()==null)return z;b=b.toString();if(b==""||!g.IE(g.E3(b)))return encodeURIComponent(b).replace(/%2C/g,",")}catch(q){}return z})}; rGW=function(Z){var Q=qd0.oZ;if(Q){var z,K;(K=(z=performance).mark)==null||K.call(z,"signalSetStart__"+Z)}z={};return z[Symbol.dispose]=function(){if(Q){var b,q;(q=(b=performance).measure)==null||q.call(b,"signalSet__"+Z,"signalSetStart__"+Z)}},z}; RF=function(Z,Q){return Object.is(Z,Q)}; p8=function(Z){var Q=C8;C8=Z;return Q}; AGd=function(Z){if(Z.Au!==void 0){var Q=Hk;Hk=!0;try{for(var z=g.n(Z.Au),K=z.next();!K.done;K=z.next()){var b=K.value;b.jo||(Z=void 0,b.jo=!0,AGd(b),(Z=b.x_)==null||Z.call(b,b))}}finally{Hk=Q}}}; jHn=function(){var Z;return((Z=C8)==null?void 0:Z.k_)!==!1}; D9G=function(Z){Z&&(Z.oK=0);return p8(Z)}; vsx=function(Z,Q){p8(Q);if(Z&&Z.t6!==void 0&&Z.Pe!==void 0&&Z.nt!==void 0){if(MD(Z))for(Q=Z.oK;Q<Z.t6.length;Q++)U6(Z.t6[Q],Z.Pe[Q]);for(;Z.t6.length>Z.oK;)Z.t6.pop(),Z.nt.pop(),Z.Pe.pop()}}; YdG=function(Z,Q,z){gs9(Z);if(Z.Au.length===0&&Z.t6!==void 0)for(var K=0;K<Z.t6.length;K++)Z.Pe[K]=YdG(Z.t6[K],Z,K);Z.eG.push(z);return Z.Au.push(Q)-1}; U6=function(Z,Q){gs9(Z);if(Z.Au.length===1&&Z.t6!==void 0)for(var z=0;z<Z.t6.length;z++)U6(Z.t6[z],Z.Pe[z]);z=Z.Au.length-1;Z.Au[Q]=Z.Au[z];Z.eG[Q]=Z.eG[z];Z.Au.length--;Z.eG.length--;Q<Z.Au.length&&(z=Z.eG[Q],Z=Z.Au[Q],X$W(Z),Z.Pe[z]=Q)}; MD=function(Z){var Q,z;return Z.fb||((z=Z==null?void 0:(Q=Z.Au)==null?void 0:Q.length)!=null?z:0)>0}; X$W=function(Z){Z.t6!=null||(Z.t6=[]);Z.Pe!=null||(Z.Pe=[]);Z.nt!=null||(Z.nt=[])}; gs9=function(Z){Z.Au!=null||(Z.Au=[]);Z.eG!=null||(Z.eG=[])}; $9x=function(Z){function Q(){if(Hk)throw Error("");if(C8!==null){var K=C8.oK++;X$W(C8);K<C8.t6.length&&C8.t6[K]!==z&&MD(C8)&&U6(C8.t6[K],C8.Pe[K]);C8.t6[K]!==z&&(C8.t6[K]=z,C8.Pe[K]=MD(C8)?YdG(z,C8,K):0);C8.nt[K]=z.version}return z.value} var z=Object.create(Sdf);z.value=Z;Q[O6]=z;return Q}; fwx=function(Z,Q){if(!jHn())throw Error();Z.P0(Z.value,Q)||(Z.value=Q,Z.version++,Ton++,AGd(Z))}; m9u=function(Z,Q){function z(){hyn++;return K()} Q=Q===void 0?"":Q;var K=$9x(Z);Li4++;var b=K[O6];b.Jz=Q!=null?Q:"[signal]";z[O6]=b;return[z,function(q){var r={stack:[],error:void 0,hasError:!1};try{if(Qz(r,rGW(b.Jz)),nsn++,q&&q[cGM]){var D=q[cGM];if(!jHn())throw Error();fwx(b,D(b.value))}else fwx(b,q)}catch(v){r.error=v,r.hasError=!0}finally{Kz(r)}}]}; Bk=function(Z){g.wC.call(this);var Q=this;this.L=this.j=0;this.b1=Z!=null?Z:{Y8:function(b,q){return setTimeout(b,q)}, FZ:function(b){clearTimeout(b)}}; var z,K;this.Y=(K=(z=window.navigator)==null?void 0:z.onLine)!=null?K:!0;this.S=function(){return g.C(function(b){return g.P(b,oF(Q),0)})}; window.addEventListener("offline",this.S);window.addEventListener("online",this.S);this.L||this.MR()}; Iwu=function(){var Z=g.Wk;Bk.instance||(Bk.instance=new Bk(Z));return Bk.instance}; oF=function(Z,Q){return Z.W?Z.W:Z.W=new Promise(function(z){var K,b,q,r;return g.C(function(D){switch(D.Y){case 1:return K=window.AbortController?new window.AbortController:void 0,q=(b=K)==null?void 0:b.signal,r=!1,g.nX(D,2,3),K&&(Z.j=Z.b1.Y8(function(){K.abort()},Q||2E4)),g.P(D,fetch("/generate_204",{method:"HEAD", signal:q}),5);case 5:r=!0;case 3:g.Jn(D);Z.W=void 0;Z.j&&(Z.b1.FZ(Z.j),Z.j=0);r!==Z.Y&&(Z.Y=r,Z.Y?Z.dispatchEvent("networkstatus-online"):Z.dispatchEvent("networkstatus-offline"));z(r);g.yx(D,0);break;case 2:g.I0(D),r=!1,D.O$(3)}})})}; V$=function(){this.data=[];this.Y=-1}; JGu=function(Z){Z.Y===-1&&(Z.Y=Z.data.reduce(function(Q,z,K){return Q+(z?Math.pow(2,K):0)},0)); return Z.Y}; kl=function(Z){Z.setAttribute("role","link")}; xl=function(Z,Q){Array.isArray(Q)&&(Q=Q.join(" "));Q===""||Q==void 0?(uR||(Q={},uR=(Q.atomic=!1,Q.autocomplete="none",Q.dropeffect="none",Q.haspopup=!1,Q.live="off",Q.multiline=!1,Q.multiselectable=!1,Q.orientation="vertical",Q.readonly=!1,Q.relevant="additions text",Q.required=!1,Q.sort="none",Q.busy=!1,Q.disabled=!1,Q.hidden=!1,Q.invalid="false",Q)),Q=uR,"label"in Q?Z.setAttribute("aria-label",Q.label):Z.removeAttribute("aria-label")):Z.setAttribute("aria-label",Q)}; e_=function(Z){Z=Z.getAttribute("aria-label");return Z==null||Z==void 0?"":String(Z)}; g.w2=function(Z,Q,z){g.O.call(this);this.Y=null;this.W=!1;this.K=Z;this.L=z;this.j=Q||window;this.S=(0,g.EG)(this.NI,this)}; yG0=function(Z){Z=Z.j;return Z.requestAnimationFrame||Z.webkitRequestAnimationFrame||Z.mozRequestAnimationFrame||Z.oRequestAnimationFrame||Z.msRequestAnimationFrame||null}; d9X=function(Z){Z=Z.j;return Z.cancelAnimationFrame||Z.cancelRequestAnimationFrame||Z.webkitCancelRequestAnimationFrame||Z.mozCancelRequestAnimationFrame||Z.oCancelRequestAnimationFrame||Z.msCancelRequestAnimationFrame||null}; g.E6=function(Z,Q,z){g.O.call(this);this.Y=Z;this.P8=Q||0;this.j=z;this.S=(0,g.EG)(this.uy,this)}; g.lR=function(Z,Q){Z.isActive()||Z.start(Q)}; g.Z8=function(Z){Z.stop();Z.uy()}; g.Qn=function(Z){Z.isActive()&&g.Z8(Z)}; g.zC=function(Z,Q){this.Y=Z[g.OG.Symbol.iterator]();this.j=Q}; No0=function(Z){return typeof Z.className=="string"?Z.className:Z.getAttribute&&Z.getAttribute("class")||""}; Km=function(Z){return Z.classList?Z.classList:No0(Z).match(/\S+/g)||[]}; g.b_=function(Z,Q){typeof Z.className=="string"?Z.className=Q:Z.setAttribute&&Z.setAttribute("class",Q)}; g.q7=function(Z,Q){return Z.classList?Z.classList.contains(Q):g.wX(Km(Z),Q)}; g.rd=function(Z,Q){if(Z.classList)Z.classList.add(Q);else if(!g.q7(Z,Q)){var z=No0(Z);g.b_(Z,z+(z.length>0?" "+Q:Q))}}; g.Aw=function(Z,Q){if(Z.classList)Array.prototype.forEach.call(Q,function(b){g.rd(Z,b)}); else{var z={};Array.prototype.forEach.call(Km(Z),function(b){z[b]=!0}); Array.prototype.forEach.call(Q,function(b){z[b]=!0}); Q="";for(var K in z)Q+=Q.length>0?" "+K:K;g.b_(Z,Q)}}; g.jn=function(Z,Q){Z.classList?Z.classList.remove(Q):g.q7(Z,Q)&&g.b_(Z,Array.prototype.filter.call(Km(Z),function(z){return z!=Q}).join(" "))}; g.D8=function(Z,Q){Z.classList?Array.prototype.forEach.call(Q,function(z){g.jn(Z,z)}):g.b_(Z,Array.prototype.filter.call(Km(Z),function(z){return!g.wX(Q,z)}).join(" "))}; g.vC=function(Z,Q,z){z?g.rd(Z,Q):g.jn(Z,Q)}; GI0=function(Z,Q){var z=!g.q7(Z,Q);g.vC(Z,Q,z)}; g.gd=function(){g.wC.call(this);this.Y=0;this.endTime=this.startTime=null}; i44=function(Z,Q){Array.isArray(Q)||(Q=[Q]);Q=Q.map(function(z){return typeof z==="string"?z:z.property+" "+z.duration+"s "+z.timing+" "+z.delay+"s"}); g.Dw(Z,"transition",Q.join(","))}; YR=function(Z,Q,z,K,b){g.gd.call(this);this.j=Z;this.L=Q;this.K=z;this.W=K;this.T=Array.isArray(b)?b:[b]}; aw9=function(Z,Q,z,K){return new YR(Z,Q,{opacity:z},{opacity:K},{property:"opacity",duration:Q,timing:"ease-in",delay:0})}; Ryn=function(Z){Z=dX(Z);if(Z=="")return null;var Q=String(Z.slice(0,4)).toLowerCase();if(("url("<Q?-1:"url("==Q?0:1)==0)return!Z.endsWith(")")||(Z?Z.split("(").length-1:0)>1||Z&&Z.split(")"),null;if(Z.indexOf("(")>0){if(/"|'/.test(Z))return null;Q=/([\-\w]+)\(/g;for(var z;z=Q.exec(Z);)if(!(z[1].toLowerCase()in Phx))return null}return Z}; XB=function(Z,Q){Z=g.OG[Z];return Z&&Z.prototype?(Q=Object.getOwnPropertyDescriptor(Z.prototype,Q))&&Q.get||null:null}; ChD=function(Z){var Q=g.OG.CSSStyleDeclaration;return Q&&Q.prototype&&Q.prototype[Z]||null}; p$4=function(Z,Q,z,K){if(Z)return Z.apply(Q,K);if(g.Sn&&document.documentMode<10){if(!Q[z].call)throw Error("IE Clobbering detected");}else if(typeof Q[z]!="function")throw Error("Clobbering detected");return Q[z].apply(Q,K)}; osn=function(Z){if(!Z)return"";var Q=document.createElement("div").style;H4X(Z).forEach(function(z){var K=g.Fv&&z in Me4?z:z.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");mw(K,"--")||mw(K,"var")||(z=p$4(U99,Z,Z.getPropertyValue?"getPropertyValue":"getAttribute",[z])||"",z=Ryn(z),z!=null&&p$4(O40,Q,Q.setProperty?"setProperty":"setAttribute",[K,z]))}); return Q.cssText||""}; H4X=function(Z){g.xW(Z)?Z=g.QM(Z):(Z=g.Ie(Z),g.lU(Z,"cssText"));return Z}; g.TC=function(Z){var Q,z=Q=0,K=!1;Z=Z.split(BoX);for(var b=0;b<Z.length;b++){var q=Z[b];g.$R.test(q)?(Q++,z++):WiG.test(q)?K=!0:VeG.test(q)?z++:kIX.test(q)&&(K=!0)}Q=z==0?K?1:0:Q/z>.4?-1:1;return(Q==0?null:Q)==-1?"rtl":"ltr"}; g.nm=function(Z){if(Z instanceof fm||Z instanceof hw||Z instanceof Lm)return Z;if(typeof Z.next=="function")return new fm(function(){return Z}); if(typeof Z[Symbol.iterator]=="function")return new fm(function(){return Z[Symbol.iterator]()}); if(typeof Z.oR=="function")return new fm(function(){return Z.oR()}); throw Error("Not an iterator or iterable.");}; fm=function(Z){this.j=Z}; hw=function(Z){this.j=Z}; Lm=function(Z){fm.call(this,function(){return Z}); this.S=Z}; cC=function(Z,Q,z,K,b,q,r,D){this.Y=Z;this.T=Q;this.S=z;this.L=K;this.W=b;this.K=q;this.j=r;this.X=D}; mf=function(Z,Q){if(Q==0)return Z.Y;if(Q==1)return Z.j;var z=gg(Z.Y,Z.S,Q),K=gg(Z.S,Z.W,Q);Z=gg(Z.W,Z.j,Q);z=gg(z,K,Q);K=gg(K,Z,Q);return gg(z,K,Q)}; uzu=function(Z,Q){var z=(Q-Z.Y)/(Z.j-Z.Y);if(z<=0)return 0;if(z>=1)return 1;for(var K=0,b=1,q=0,r=0;r<8;r++){q=mf(Z,z);var D=(mf(Z,z+1E-6)-q)/1E-6;if(Math.abs(q-Q)<1E-6)return z;if(Math.abs(D)<1E-6)break;else q<Q?K=z:b=z,z-=(q-Q)/D}for(r=0;Math.abs(q-Q)>1E-6&&r<8;r++)q<Q?(K=z,z=(z+b)/2):(b=z,z=(z+K)/2),q=mf(Z,z);return z}; IR=function(Z,Q){this.start=Z<Q?Z:Q;this.end=Z<Q?Q:Z}; Jw=function(Z){return(Z=Z.exec(g.iU()))?Z[1]:""}; yn=function(Z){return g.GJ(x9x,Z)>=0}; g.dd=function(Z){g.O.call(this);this.K=1;this.S=[];this.W=0;this.Y=[];this.j={};this.T=!!Z}; teG=function(Z,Q,z){g.Ae(function(){Z.apply(Q,z)})}; g.N7=function(Z){this.Y=Z}; GC=function(Z){this.Y=Z}; Fix=function(Z){this.data=Z}; eyx=function(Z){return Z===void 0||Z instanceof Fix?Z:new Fix(Z)}; i_=function(Z){this.Y=Z}; g.w$n=function(Z){var Q=Z.creation;Z=Z.expiration;return!!Z&&Z<g.sQ()||!!Q&&Q>g.sQ()}; g.aR=function(Z){this.Y=Z}; EsG=function(){}; PC=function(){}; RR=function(Z){this.Y=Z;this.j=null}; Cm=function(Z){if(Z.Y==null)throw Error("Storage mechanism: Storage unavailable");var Q;((Q=Z.j)!=null?Q:Z.isAvailable())||Lz(Error("Storage mechanism: Storage unavailable"))}; pm=function(){var Z=null;try{Z=g.OG.localStorage||null}catch(Q){}RR.call(this,Z)}; lwG=function(){var Z=null;try{Z=g.OG.sessionStorage||null}catch(Q){}RR.call(this,Z)}; HC=function(Z,Q){this.j=Z;this.Y=Q+"::"}; g.M7=function(Z){var Q=new pm;return Q.isAvailable()?Z?new HC(Q,Z):Q:null}; Ut=function(Z,Q){this.Y=Z;this.j=Q}; Ot=function(Z){this.Y=[];if(Z)a:{if(Z instanceof Ot){var Q=Z.jS();Z=Z.hg();if(this.Y.length<=0){for(var z=this.Y,K=0;K<Q.length;K++)z.push(new Ut(Q[K],Z[K]));break a}}else Q=g.Ie(Z),Z=g.m6(Z);for(z=0;z<Q.length;z++)this.CK(Q[z],Z[z])}}; oR=function(){Ot.apply(this,arguments)}; BC=function(){}; s4X=function(Z){var Q,z,K=Z.length,b=0;for(Q=0;Q<K;Q++){var q=Z.charCodeAt(Q);if((q&64512)===55296&&Q+1<K){var r=Z.charCodeAt(Q+1);(r&64512)===56320&&(q=65536+(q-55296<<10)+(r-56320),Q++)}b+=q<128?1:q<2048?2:q<65536?3:4}var D=new WC.RU(b);for(Q=z=0;z<b;Q++)q=Z.charCodeAt(Q),(q&64512)===55296&&Q+1<K&&(r=Z.charCodeAt(Q+1),(r&64512)===56320&&(q=65536+(q-55296<<10)+(r-56320),Q++)),q<128?D[z++]=q:(q<2048?D[z++]=192|q>>>6:(q<65536?D[z++]=224|q>>>12:(D[z++]=240|q>>>18,D[z++]=128|q>>>12&63),D[z++]=128|q>>> 6&63),D[z++]=128|q&63);return D}; Vn=function(Z){for(var Q=Z.length;--Q>=0;)Z[Q]=0}; kR=function(Z,Q,z,K,b){this.vC=Z;this.Az=Q;this.qt=z;this.uq=K;this.Bqr=b;this.oV=Z&&Z.length}; u_=function(Z,Q){this.qF=Z;this.Vt=0;this.VB=Q}; xR=function(Z,Q){Z.Di[Z.pending++]=Q&255;Z.Di[Z.pending++]=Q>>>8&255}; tw=function(Z,Q,z){Z.Z3>16-z?(Z.fM|=Q<<Z.Z3&65535,xR(Z,Z.fM),Z.fM=Q>>16-Z.Z3,Z.Z3+=z-16):(Z.fM|=Q<<Z.Z3&65535,Z.Z3+=z)}; FB=function(Z,Q,z){tw(Z,z[Q*2],z[Q*2+1])}; ZhX=function(Z,Q){var z=0;do z|=Z&1,Z>>>=1,z<<=1;while(--Q>0);return z>>>1}; Q4f=function(Z,Q,z){var K=Array(16),b=0,q;for(q=1;q<=15;q++)K[q]=b=b+z[q-1]<<1;for(z=0;z<=Q;z++)b=Z[z*2+1],b!==0&&(Z[z*2]=ZhX(K[b]++,b))}; zBX=function(Z){var Q;for(Q=0;Q<286;Q++)Z.ER[Q*2]=0;for(Q=0;Q<30;Q++)Z.X5[Q*2]=0;for(Q=0;Q<19;Q++)Z.jm[Q*2]=0;Z.ER[512]=1;Z.AJ=Z.Ec=0;Z.j9=Z.matches=0}; KW4=function(Z){Z.Z3>8?xR(Z,Z.fM):Z.Z3>0&&(Z.Di[Z.pending++]=Z.fM);Z.fM=0;Z.Z3=0}; bhD=function(Z,Q,z){KW4(Z);xR(Z,z);xR(Z,~z);WC.DW(Z.Di,Z.window,Q,z,Z.pending);Z.pending+=z}; qMM=function(Z,Q,z,K){var b=Q*2,q=z*2;return Z[b]<Z[q]||Z[b]===Z[q]&&K[Q]<=K[z]}; en=function(Z,Q,z){for(var K=Z.yf[z],b=z<<1;b<=Z.Fy;){b<Z.Fy&&qMM(Q,Z.yf[b+1],Z.yf[b],Z.depth)&&b++;if(qMM(Q,K,Z.yf[b],Z.depth))break;Z.yf[z]=Z.yf[b];z=b;b<<=1}Z.yf[z]=K}; rbr=function(Z,Q,z){var K=0;if(Z.j9!==0){do{var b=Z.Di[Z.C8+K*2]<<8|Z.Di[Z.C8+K*2+1];var q=Z.Di[Z.Ji+K];K++;if(b===0)FB(Z,q,Q);else{var r=wd[q];FB(Z,r+256+1,Q);var D=Et[r];D!==0&&(q-=l_[r],tw(Z,q,D));b--;r=b<256?sf[b]:sf[256+(b>>>7)];FB(Z,r,z);D=ZP[r];D!==0&&(b-=QN[r],tw(Z,b,D))}}while(K<Z.j9)}FB(Z,256,Q)}; zO=function(Z,Q){var z=Q.qF,K=Q.VB.vC,b=Q.VB.oV,q=Q.VB.uq,r,D=-1;Z.Fy=0;Z.TV=573;for(r=0;r<q;r++)z[r*2]!==0?(Z.yf[++Z.Fy]=D=r,Z.depth[r]=0):z[r*2+1]=0;for(;Z.Fy<2;){var v=Z.yf[++Z.Fy]=D<2?++D:0;z[v*2]=1;Z.depth[v]=0;Z.AJ--;b&&(Z.Ec-=K[v*2+1])}Q.Vt=D;for(r=Z.Fy>>1;r>=1;r--)en(Z,z,r);v=q;do r=Z.yf[1],Z.yf[1]=Z.yf[Z.Fy--],en(Z,z,1),K=Z.yf[1],Z.yf[--Z.TV]=r,Z.yf[--Z.TV]=K,z[v*2]=z[r*2]+z[K*2],Z.depth[v]=(Z.depth[r]>=Z.depth[K]?Z.depth[r]:Z.depth[K])+1,z[r*2+1]=z[K*2+1]=v,Z.yf[1]=v++,en(Z,z,1);while(Z.Fy>= 2);Z.yf[--Z.TV]=Z.yf[1];r=Q.qF;v=Q.Vt;K=Q.VB.vC;b=Q.VB.oV;q=Q.VB.Az;var Y=Q.VB.qt,X=Q.VB.Bqr,S,T=0;for(S=0;S<=15;S++)Z.Uj[S]=0;r[Z.yf[Z.TV]*2+1]=0;for(Q=Z.TV+1;Q<573;Q++){var f=Z.yf[Q];S=r[r[f*2+1]*2+1]+1;S>X&&(S=X,T++);r[f*2+1]=S;if(!(f>v)){Z.Uj[S]++;var h=0;f>=Y&&(h=q[f-Y]);var m=r[f*2];Z.AJ+=m*(S+h);b&&(Z.Ec+=m*(K[f*2+1]+h))}}if(T!==0){do{for(S=X-1;Z.Uj[S]===0;)S--;Z.Uj[S]--;Z.Uj[S+1]+=2;Z.Uj[X]--;T-=2}while(T>0);for(S=X;S!==0;S--)for(f=Z.Uj[S];f!==0;)K=Z.yf[--Q],K>v||(r[K*2+1]!==S&&(Z.AJ+=(S- r[K*2+1])*r[K*2],r[K*2+1]=S),f--)}Q4f(z,D,Z.Uj)}; Ab9=function(Z,Q,z){var K,b=-1,q=Q[1],r=0,D=7,v=4;q===0&&(D=138,v=3);Q[(z+1)*2+1]=65535;for(K=0;K<=z;K++){var Y=q;q=Q[(K+1)*2+1];++r<D&&Y===q||(r<v?Z.jm[Y*2]+=r:Y!==0?(Y!==b&&Z.jm[Y*2]++,Z.jm[32]++):r<=10?Z.jm[34]++:Z.jm[36]++,r=0,b=Y,q===0?(D=138,v=3):Y===q?(D=6,v=3):(D=7,v=4))}}; j4G=function(Z,Q,z){var K,b=-1,q=Q[1],r=0,D=7,v=4;q===0&&(D=138,v=3);for(K=0;K<=z;K++){var Y=q;q=Q[(K+1)*2+1];if(!(++r<D&&Y===q)){if(r<v){do FB(Z,Y,Z.jm);while(--r!==0)}else Y!==0?(Y!==b&&(FB(Z,Y,Z.jm),r--),FB(Z,16,Z.jm),tw(Z,r-3,2)):r<=10?(FB(Z,17,Z.jm),tw(Z,r-3,3)):(FB(Z,18,Z.jm),tw(Z,r-11,7));r=0;b=Y;q===0?(D=138,v=3):Y===q?(D=6,v=3):(D=7,v=4)}}}; DOr=function(Z){var Q=4093624447,z;for(z=0;z<=31;z++,Q>>>=1)if(Q&1&&Z.ER[z*2]!==0)return 0;if(Z.ER[18]!==0||Z.ER[20]!==0||Z.ER[26]!==0)return 1;for(z=32;z<256;z++)if(Z.ER[z*2]!==0)return 1;return 0}; Kp=function(Z,Q,z){Z.Di[Z.C8+Z.j9*2]=Q>>>8&255;Z.Di[Z.C8+Z.j9*2+1]=Q&255;Z.Di[Z.Ji+Z.j9]=z&255;Z.j9++;Q===0?Z.ER[z*2]++:(Z.matches++,Q--,Z.ER[(wd[z]+256+1)*2]++,Z.X5[(Q<256?sf[Q]:sf[256+(Q>>>7)])*2]++);return Z.j9===Z.Tc-1}; qa=function(Z,Q){Z.msg=bW[Q];return Q}; rI=function(Z){for(var Q=Z.length;--Q>=0;)Z[Q]=0}; As=function(Z){var Q=Z.state,z=Q.pending;z>Z.Bg&&(z=Z.Bg);z!==0&&(WC.DW(Z.output,Q.Di,Q.Kt,z,Z.oG),Z.oG+=z,Q.Kt+=z,Z.Y9+=z,Z.Bg-=z,Q.pending-=z,Q.pending===0&&(Q.Kt=0))}; vF=function(Z,Q){var z=Z.mE>=0?Z.mE:-1,K=Z.Ld-Z.mE,b=0;if(Z.level>0){Z.YX.Yc===2&&(Z.YX.Yc=DOr(Z));zO(Z,Z.XT);zO(Z,Z.dW);Ab9(Z,Z.ER,Z.XT.Vt);Ab9(Z,Z.X5,Z.dW.Vt);zO(Z,Z.gZ);for(b=18;b>=3&&Z.jm[vPx[b]*2+1]===0;b--);Z.AJ+=3*(b+1)+5+5+4;var q=Z.AJ+3+7>>>3;var r=Z.Ec+3+7>>>3;r<=q&&(q=r)}else q=r=K+5;if(K+4<=q&&z!==-1)tw(Z,Q?1:0,3),bhD(Z,z,K);else if(Z.strategy===4||r===q)tw(Z,2+(Q?1:0),3),rbr(Z,jt,DP);else{tw(Z,4+(Q?1:0),3);z=Z.XT.Vt+1;K=Z.dW.Vt+1;b+=1;tw(Z,z-257,5);tw(Z,K-1,5);tw(Z,b-4,4);for(q=0;q<b;q++)tw(Z, Z.jm[vPx[q]*2+1],3);j4G(Z,Z.ER,z-1);j4G(Z,Z.X5,K-1);rbr(Z,Z.ER,Z.X5)}zBX(Z);Q&&KW4(Z);Z.mE=Z.Ld;As(Z.YX)}; gI=function(Z,Q){Z.Di[Z.pending++]=Q}; Y2=function(Z,Q){Z.Di[Z.pending++]=Q>>>8&255;Z.Di[Z.pending++]=Q&255}; gPu=function(Z,Q){var z=Z.mD,K=Z.Ld,b=Z.WP,q=Z.SI,r=Z.Ld>Z.c8-262?Z.Ld-(Z.c8-262):0,D=Z.window,v=Z.ZP,Y=Z.He,X=Z.Ld+258,S=D[K+b-1],T=D[K+b];Z.WP>=Z.SR&&(z>>=2);q>Z.Yd&&(q=Z.Yd);do{var f=Q;if(D[f+b]===T&&D[f+b-1]===S&&D[f]===D[K]&&D[++f]===D[K+1]){K+=2;for(f++;D[++K]===D[++f]&&D[++K]===D[++f]&&D[++K]===D[++f]&&D[++K]===D[++f]&&D[++K]===D[++f]&&D[++K]===D[++f]&&D[++K]===D[++f]&&D[++K]===D[++f]&&K<X;);f=258-(X-K);K=X-258;if(f>b){Z.z8=Q;b=f;if(f>=q)break;S=D[K+b-1];T=D[K+b]}}}while((Q=Y[Q&v])>r&&--z!== 0);return b<=Z.Yd?b:Z.Yd}; $2=function(Z){var Q=Z.c8,z;do{var K=Z.y9-Z.Yd-Z.Ld;if(Z.Ld>=Q+(Q-262)){WC.DW(Z.window,Z.window,Q,Q,0);Z.z8-=Q;Z.Ld-=Q;Z.mE-=Q;var b=z=Z.z4;do{var q=Z.head[--b];Z.head[b]=q>=Q?q-Q:0}while(--z);b=z=Q;do q=Z.He[--b],Z.He[b]=q>=Q?q-Q:0;while(--z);K+=Q}if(Z.YX.oF===0)break;b=Z.YX;z=Z.window;q=Z.Ld+Z.Yd;var r=b.oF;r>K&&(r=K);r===0?z=0:(b.oF-=r,WC.DW(z,b.input,b.QH,r,q),b.state.wrap===1?b.xL=Xt(b.xL,z,r,q):b.state.wrap===2&&(b.xL=St(b.xL,z,r,q)),b.QH+=r,b.jt+=r,z=r);Z.Yd+=z;if(Z.Yd+Z.CK>=3)for(K=Z.Ld-Z.CK, Z.wf=Z.window[K],Z.wf=(Z.wf<<Z.VQ^Z.window[K+1])&Z.Lr;Z.CK&&!(Z.wf=(Z.wf<<Z.VQ^Z.window[K+3-1])&Z.Lr,Z.He[K&Z.ZP]=Z.head[Z.wf],Z.head[Z.wf]=K,K++,Z.CK--,Z.Yd+Z.CK<3););}while(Z.Yd<262&&Z.YX.oF!==0)}; TO=function(Z,Q){for(var z;;){if(Z.Yd<262){$2(Z);if(Z.Yd<262&&Q===0)return 1;if(Z.Yd===0)break}z=0;Z.Yd>=3&&(Z.wf=(Z.wf<<Z.VQ^Z.window[Z.Ld+3-1])&Z.Lr,z=Z.He[Z.Ld&Z.ZP]=Z.head[Z.wf],Z.head[Z.wf]=Z.Ld);z!==0&&Z.Ld-z<=Z.c8-262&&(Z.cg=gPu(Z,z));if(Z.cg>=3)if(z=Kp(Z,Z.Ld-Z.z8,Z.cg-3),Z.Yd-=Z.cg,Z.cg<=Z.kD&&Z.Yd>=3){Z.cg--;do Z.Ld++,Z.wf=(Z.wf<<Z.VQ^Z.window[Z.Ld+3-1])&Z.Lr,Z.He[Z.Ld&Z.ZP]=Z.head[Z.wf],Z.head[Z.wf]=Z.Ld;while(--Z.cg!==0);Z.Ld++}else Z.Ld+=Z.cg,Z.cg=0,Z.wf=Z.window[Z.Ld],Z.wf=(Z.wf<<Z.VQ^ Z.window[Z.Ld+1])&Z.Lr;else z=Kp(Z,0,Z.window[Z.Ld]),Z.Yd--,Z.Ld++;if(z&&(vF(Z,!1),Z.YX.Bg===0))return 1}Z.CK=Z.Ld<2?Z.Ld:2;return Q===4?(vF(Z,!0),Z.YX.Bg===0?3:4):Z.j9&&(vF(Z,!1),Z.YX.Bg===0)?1:2}; fp=function(Z,Q){for(var z,K;;){if(Z.Yd<262){$2(Z);if(Z.Yd<262&&Q===0)return 1;if(Z.Yd===0)break}z=0;Z.Yd>=3&&(Z.wf=(Z.wf<<Z.VQ^Z.window[Z.Ld+3-1])&Z.Lr,z=Z.He[Z.Ld&Z.ZP]=Z.head[Z.wf],Z.head[Z.wf]=Z.Ld);Z.WP=Z.cg;Z.bM=Z.z8;Z.cg=2;z!==0&&Z.WP<Z.kD&&Z.Ld-z<=Z.c8-262&&(Z.cg=gPu(Z,z),Z.cg<=5&&(Z.strategy===1||Z.cg===3&&Z.Ld-Z.z8>4096)&&(Z.cg=2));if(Z.WP>=3&&Z.cg<=Z.WP){K=Z.Ld+Z.Yd-3;z=Kp(Z,Z.Ld-1-Z.bM,Z.WP-3);Z.Yd-=Z.WP-1;Z.WP-=2;do++Z.Ld<=K&&(Z.wf=(Z.wf<<Z.VQ^Z.window[Z.Ld+3-1])&Z.Lr,Z.He[Z.Ld&Z.ZP]= Z.head[Z.wf],Z.head[Z.wf]=Z.Ld);while(--Z.WP!==0);Z.Xk=0;Z.cg=2;Z.Ld++;if(z&&(vF(Z,!1),Z.YX.Bg===0))return 1}else if(Z.Xk){if((z=Kp(Z,0,Z.window[Z.Ld-1]))&&vF(Z,!1),Z.Ld++,Z.Yd--,Z.YX.Bg===0)return 1}else Z.Xk=1,Z.Ld++,Z.Yd--}Z.Xk&&(Kp(Z,0,Z.window[Z.Ld-1]),Z.Xk=0);Z.CK=Z.Ld<2?Z.Ld:2;return Q===4?(vF(Z,!0),Z.YX.Bg===0?3:4):Z.j9&&(vF(Z,!1),Z.YX.Bg===0)?1:2}; YMu=function(Z,Q){for(var z,K,b,q=Z.window;;){if(Z.Yd<=258){$2(Z);if(Z.Yd<=258&&Q===0)return 1;if(Z.Yd===0)break}Z.cg=0;if(Z.Yd>=3&&Z.Ld>0&&(K=Z.Ld-1,z=q[K],z===q[++K]&&z===q[++K]&&z===q[++K])){for(b=Z.Ld+258;z===q[++K]&&z===q[++K]&&z===q[++K]&&z===q[++K]&&z===q[++K]&&z===q[++K]&&z===q[++K]&&z===q[++K]&&K<b;);Z.cg=258-(b-K);Z.cg>Z.Yd&&(Z.cg=Z.Yd)}Z.cg>=3?(z=Kp(Z,1,Z.cg-3),Z.Yd-=Z.cg,Z.Ld+=Z.cg,Z.cg=0):(z=Kp(Z,0,Z.window[Z.Ld]),Z.Yd--,Z.Ld++);if(z&&(vF(Z,!1),Z.YX.Bg===0))return 1}Z.CK=0;return Q=== 4?(vF(Z,!0),Z.YX.Bg===0?3:4):Z.j9&&(vF(Z,!1),Z.YX.Bg===0)?1:2}; XQu=function(Z,Q){for(var z;;){if(Z.Yd===0&&($2(Z),Z.Yd===0)){if(Q===0)return 1;break}Z.cg=0;z=Kp(Z,0,Z.window[Z.Ld]);Z.Yd--;Z.Ld++;if(z&&(vF(Z,!1),Z.YX.Bg===0))return 1}Z.CK=0;return Q===4?(vF(Z,!0),Z.YX.Bg===0?3:4):Z.j9&&(vF(Z,!1),Z.YX.Bg===0)?1:2}; hs=function(Z,Q,z,K,b){this.Xj=Z;this.dTg=Q;this.tfB=z;this.Pag=K;this.func=b}; SM9=function(){this.YX=null;this.status=0;this.Di=null;this.wrap=this.pending=this.Kt=this.W2=0;this.FR=null;this.g6=0;this.method=8;this.g2=-1;this.ZP=this.F$=this.c8=0;this.window=null;this.y9=0;this.head=this.He=null;this.SI=this.SR=this.strategy=this.level=this.kD=this.mD=this.WP=this.Yd=this.z8=this.Ld=this.Xk=this.bM=this.cg=this.mE=this.VQ=this.Lr=this.EU=this.z4=this.wf=0;this.ER=new WC.y_(1146);this.X5=new WC.y_(122);this.jm=new WC.y_(78);rI(this.ER);rI(this.X5);rI(this.jm);this.gZ=this.dW= this.XT=null;this.Uj=new WC.y_(16);this.yf=new WC.y_(573);rI(this.yf);this.TV=this.Fy=0;this.depth=new WC.y_(573);rI(this.depth);this.Z3=this.fM=this.CK=this.matches=this.Ec=this.AJ=this.C8=this.j9=this.Tc=this.Ji=0}; $OG=function(Z,Q){if(!Z||!Z.state||Q>5||Q<0)return Z?qa(Z,-2):-2;var z=Z.state;if(!Z.output||!Z.input&&Z.oF!==0||z.status===666&&Q!==4)return qa(Z,Z.Bg===0?-5:-2);z.YX=Z;var K=z.g2;z.g2=Q;if(z.status===42)if(z.wrap===2)Z.xL=0,gI(z,31),gI(z,139),gI(z,8),z.FR?(gI(z,(z.FR.text?1:0)+(z.FR.LJ?2:0)+(z.FR.extra?4:0)+(z.FR.name?8:0)+(z.FR.comment?16:0)),gI(z,z.FR.time&255),gI(z,z.FR.time>>8&255),gI(z,z.FR.time>>16&255),gI(z,z.FR.time>>24&255),gI(z,z.level===9?2:z.strategy>=2||z.level<2?4:0),gI(z,z.FR.os& 255),z.FR.extra&&z.FR.extra.length&&(gI(z,z.FR.extra.length&255),gI(z,z.FR.extra.length>>8&255)),z.FR.LJ&&(Z.xL=St(Z.xL,z.Di,z.pending,0)),z.g6=0,z.status=69):(gI(z,0),gI(z,0),gI(z,0),gI(z,0),gI(z,0),gI(z,z.level===9?2:z.strategy>=2||z.level<2?4:0),gI(z,3),z.status=113);else{var b=8+(z.F$-8<<4)<<8;b|=(z.strategy>=2||z.level<2?0:z.level<6?1:z.level===6?2:3)<<6;z.Ld!==0&&(b|=32);z.status=113;Y2(z,b+(31-b%31));z.Ld!==0&&(Y2(z,Z.xL>>>16),Y2(z,Z.xL&65535));Z.xL=1}if(z.status===69)if(z.FR.extra){for(b= z.pending;z.g6<(z.FR.extra.length&65535)&&(z.pending!==z.W2||(z.FR.LJ&&z.pending>b&&(Z.xL=St(Z.xL,z.Di,z.pending-b,b)),As(Z),b=z.pending,z.pending!==z.W2));)gI(z,z.FR.extra[z.g6]&255),z.g6++;z.FR.LJ&&z.pending>b&&(Z.xL=St(Z.xL,z.Di,z.pending-b,b));z.g6===z.FR.extra.length&&(z.g6=0,z.status=73)}else z.status=73;if(z.status===73)if(z.FR.name){b=z.pending;do{if(z.pending===z.W2&&(z.FR.LJ&&z.pending>b&&(Z.xL=St(Z.xL,z.Di,z.pending-b,b)),As(Z),b=z.pending,z.pending===z.W2)){var q=1;break}q=z.g6<z.FR.name.length? z.FR.name.charCodeAt(z.g6++)&255:0;gI(z,q)}while(q!==0);z.FR.LJ&&z.pending>b&&(Z.xL=St(Z.xL,z.Di,z.pending-b,b));q===0&&(z.g6=0,z.status=91)}else z.status=91;if(z.status===91)if(z.FR.comment){b=z.pending;do{if(z.pending===z.W2&&(z.FR.LJ&&z.pending>b&&(Z.xL=St(Z.xL,z.Di,z.pending-b,b)),As(Z),b=z.pending,z.pending===z.W2)){q=1;break}q=z.g6<z.FR.comment.length?z.FR.comment.charCodeAt(z.g6++)&255:0;gI(z,q)}while(q!==0);z.FR.LJ&&z.pending>b&&(Z.xL=St(Z.xL,z.Di,z.pending-b,b));q===0&&(z.status=103)}else z.status= 103;z.status===103&&(z.FR.LJ?(z.pending+2>z.W2&&As(Z),z.pending+2<=z.W2&&(gI(z,Z.xL&255),gI(z,Z.xL>>8&255),Z.xL=0,z.status=113)):z.status=113);if(z.pending!==0){if(As(Z),Z.Bg===0)return z.g2=-1,0}else if(Z.oF===0&&(Q<<1)-(Q>4?9:0)<=(K<<1)-(K>4?9:0)&&Q!==4)return qa(Z,-5);if(z.status===666&&Z.oF!==0)return qa(Z,-5);if(Z.oF!==0||z.Yd!==0||Q!==0&&z.status!==666){K=z.strategy===2?XQu(z,Q):z.strategy===3?YMu(z,Q):Lp[z.level].func(z,Q);if(K===3||K===4)z.status=666;if(K===1||K===3)return Z.Bg===0&&(z.g2= -1),0;if(K===2&&(Q===1?(tw(z,2,3),FB(z,256,jt),z.Z3===16?(xR(z,z.fM),z.fM=0,z.Z3=0):z.Z3>=8&&(z.Di[z.pending++]=z.fM&255,z.fM>>=8,z.Z3-=8)):Q!==5&&(tw(z,0,3),bhD(z,0,0),Q===3&&(rI(z.head),z.Yd===0&&(z.Ld=0,z.mE=0,z.CK=0))),As(Z),Z.Bg===0))return z.g2=-1,0}if(Q!==4)return 0;if(z.wrap<=0)return 1;z.wrap===2?(gI(z,Z.xL&255),gI(z,Z.xL>>8&255),gI(z,Z.xL>>16&255),gI(z,Z.xL>>24&255),gI(z,Z.jt&255),gI(z,Z.jt>>8&255),gI(z,Z.jt>>16&255),gI(z,Z.jt>>24&255)):(Y2(z,Z.xL>>>16),Y2(z,Z.xL&65535));As(Z);z.wrap>0&& (z.wrap=-z.wrap);return z.pending!==0?0:1}; np=function(Z){if(!(this instanceof np))return new np(Z);Z=this.options=WC.assign({level:-1,method:8,chunkSize:16384,M_:15,KM$:8,strategy:0,uN:""},Z||{});Z.raw&&Z.M_>0?Z.M_=-Z.M_:Z.lV&&Z.M_>0&&Z.M_<16&&(Z.M_+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.YX=new Tnr;this.YX.Bg=0;var Q=this.YX;var z=Z.level,K=Z.method,b=Z.M_,q=Z.KM$,r=Z.strategy;if(Q){var D=1;z===-1&&(z=6);b<0?(D=0,b=-b):b>15&&(D=2,b-=16);if(q<1||q>9||K!==8||b<8||b>15||z<0||z>9||r<0||r>4)Q=qa(Q,-2);else{b===8&&(b=9); var v=new SM9;Q.state=v;v.YX=Q;v.wrap=D;v.FR=null;v.F$=b;v.c8=1<<v.F$;v.ZP=v.c8-1;v.EU=q+7;v.z4=1<<v.EU;v.Lr=v.z4-1;v.VQ=~~((v.EU+3-1)/3);v.window=new WC.RU(v.c8*2);v.head=new WC.y_(v.z4);v.He=new WC.y_(v.c8);v.Tc=1<<q+6;v.W2=v.Tc*4;v.Di=new WC.RU(v.W2);v.C8=1*v.Tc;v.Ji=3*v.Tc;v.level=z;v.strategy=r;v.method=K;if(Q&&Q.state){Q.jt=Q.Y9=0;Q.Yc=2;z=Q.state;z.pending=0;z.Kt=0;z.wrap<0&&(z.wrap=-z.wrap);z.status=z.wrap?42:113;Q.xL=z.wrap===2?0:1;z.g2=0;if(!fr0){K=Array(16);for(q=r=0;q<28;q++)for(l_[q]= r,b=0;b<1<<Et[q];b++)wd[r++]=q;wd[r-1]=q;for(q=r=0;q<16;q++)for(QN[q]=r,b=0;b<1<<ZP[q];b++)sf[r++]=q;for(r>>=7;q<30;q++)for(QN[q]=r<<7,b=0;b<1<<ZP[q]-7;b++)sf[256+r++]=q;for(b=0;b<=15;b++)K[b]=0;for(b=0;b<=143;)jt[b*2+1]=8,b++,K[8]++;for(;b<=255;)jt[b*2+1]=9,b++,K[9]++;for(;b<=279;)jt[b*2+1]=7,b++,K[7]++;for(;b<=287;)jt[b*2+1]=8,b++,K[8]++;Q4f(jt,287,K);for(b=0;b<30;b++)DP[b*2+1]=5,DP[b*2]=ZhX(b,5);hB9=new kR(jt,Et,257,286,15);LWW=new kR(DP,ZP,0,30,15);nP4=new kR([],cbG,0,19,7);fr0=!0}z.XT=new u_(z.ER, hB9);z.dW=new u_(z.X5,LWW);z.gZ=new u_(z.jm,nP4);z.fM=0;z.Z3=0;zBX(z);z=0}else z=qa(Q,-2);z===0&&(Q=Q.state,Q.y9=2*Q.c8,rI(Q.head),Q.kD=Lp[Q.level].dTg,Q.SR=Lp[Q.level].Xj,Q.SI=Lp[Q.level].tfB,Q.mD=Lp[Q.level].Pag,Q.Ld=0,Q.mE=0,Q.Yd=0,Q.CK=0,Q.cg=Q.WP=2,Q.Xk=0,Q.wf=0);Q=z}}else Q=-2;if(Q!==0)throw Error(bW[Q]);Z.header&&(Q=this.YX)&&Q.state&&Q.state.wrap===2&&(Q.state.FR=Z.header);if(Z.UM){var Y;typeof Z.UM==="string"?Y=s4X(Z.UM):mOX.call(Z.UM)==="[object ArrayBuffer]"?Y=new Uint8Array(Z.UM):Y=Z.UM; Z=this.YX;q=Y;r=q.length;if(Z&&Z.state)if(Y=Z.state,Q=Y.wrap,Q===2||Q===1&&Y.status!==42||Y.Yd)Q=-2;else{Q===1&&(Z.xL=Xt(Z.xL,q,r,0));Y.wrap=0;r>=Y.c8&&(Q===0&&(rI(Y.head),Y.Ld=0,Y.mE=0,Y.CK=0),z=new WC.RU(Y.c8),WC.DW(z,q,r-Y.c8,Y.c8,0),q=z,r=Y.c8);z=Z.oF;K=Z.QH;b=Z.input;Z.oF=r;Z.QH=0;Z.input=q;for($2(Y);Y.Yd>=3;){q=Y.Ld;r=Y.Yd-2;do Y.wf=(Y.wf<<Y.VQ^Y.window[q+3-1])&Y.Lr,Y.He[q&Y.ZP]=Y.head[Y.wf],Y.head[Y.wf]=q,q++;while(--r);Y.Ld=q;Y.Yd=2;$2(Y)}Y.Ld+=Y.Yd;Y.mE=Y.Ld;Y.CK=Y.Yd;Y.Yd=0;Y.cg=Y.WP=2; Y.Xk=0;Z.QH=K;Z.input=b;Z.oF=z;Y.wrap=Q;Q=0}else Q=-2;if(Q!==0)throw Error(bW[Q]);this.S7p=!0}}; Irn=function(Z,Q){Q=Q||{};Q.lV=!0;Q=new np(Q);Q.push(Z,!0);if(Q.err)throw Q.msg||bW[Q.err];return Q.result}; Jbu=function(){var Z=g.iu.apply(0,arguments);return Z.length===0?function(Q){return Q}:Z.length===1?Z[0]:Z.reduce(function(Q,z){return function(){return Q(z.apply(null,g.I(g.iu.apply(0,arguments))))}})}; ybG=function(){var Z=g.iu.apply(0,arguments);return function(Q){return function(z,K){function b(){throw Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.");} z=Q(z,K);var q={getState:z.getState,dispatch:function(r){return b.apply(null,[r].concat(g.I(g.iu.apply(1,arguments))))}}; K=Z.map(function(r){return r(q)}); b=Jbu.apply(null,g.I(K))(z.dispatch);return Object.assign({},z,{dispatch:b})}}}; cF=function(){return Math.random().toString(36).substring(7).split("").join(".")}; dOx=function(Z){Object.keys(Z).forEach(function(Q){var z=Z[Q];if(typeof z(void 0,{type:m$})==="undefined")throw Error('The slice reducer for key "'+Q+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(typeof z(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+cF()})==="undefined")throw Error('The slice reducer for key "'+ Q+"\" returned undefined when probed with a random type. Don't try to handle '"+(m$+'\' 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.'));})}; Nnn=function(Z,Q,z){function K(){if(X)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 D} function b(f){if(typeof f!=="function")throw Error("Expected the listener to be a function. Instead, received: '"+typeof f+"'");if(X)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 h=!0;Y===v&&(Y=v.slice());Y.push(f);return function(){if(h){if(X)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."); h=!1;Y===v&&(Y=v.slice());Y.splice(Y.indexOf(f),1);v=null}}} function q(f){if(typeof f!=="object"||f===null)var h=!1;else{for(h=f;Object.getPrototypeOf(h)!==null;)h=Object.getPrototypeOf(h);h=Object.getPrototypeOf(f)===h}if(!h)throw Error("Actions must be plain objects. Instead, the actual type was: '"+typeof f+"'. 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 f.type==="undefined")throw Error('Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(X)throw Error("Reducers may not dispatch actions.");try{X=!0,D=r(D,f)}finally{X=!1}h=v=Y;for(var m=0;m<h.length;m++)(0,h[m])();return f} if(typeof Q==="function"&&typeof z==="function"||typeof z==="function"&&typeof arguments[3]==="function")throw Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");typeof Q==="function"&&typeof z==="undefined"&&(z=Q,Q=void 0);if(typeof z!=="undefined"){if(typeof z!=="function")throw Error("Expected the enhancer to be a function. Instead, received: '"+ typeof z+"'");return z(Nnn)(Z,Q)}if(typeof Z!=="function")throw Error("Expected the root reducer to be a function. Instead, received: '"+typeof Z+"'");var r=Z,D=Q,v=[],Y=v,X=!1;q({type:m$});var S={},T=(S.dispatch=q,S.subscribe=b,S.getState=K,S.replaceReducer=function(f){if(typeof f!=="function")throw Error("Expected the nextReducer to be a function. Instead, received: '"+typeof f);r=f;q({type:GoM});return T},S[ih0]=function(){var f={}; return f.subscribe=function(h){function m(){h.next&&h.next(K())} if(typeof h!=="object"||h===null)throw new TypeError("Expected the observer to be an object. Instead, received: '"+typeof h+"'");m();return{unsubscribe:b(m)}},f[ih0]=function(){return this},f},S); return T}; aru=function(Z){return Z?(Z=Z.privateDoNotAccessOrElseSafeScriptWrappedValue)?c6G(Z):null:null}; Iz=function(Z){return Z?(Z=Z.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?J5(Z):null:null}; RBn=function(Z){Z=PAM(Z);return pt(Z)}; g.Js=function(Z){Z=PAM(Z);return J5(Z)}; PAM=function(Z){return Z===null?"null":Z===void 0?"undefined":Z}; yN=function(Z){this.P4=RI(Z)}; pQx=function(Z){var Q=Z.split(Z.slice(0,0)),z=[1832234114,function(K,b){K.push(b)}, 1139798962,524407697,-1412489118,function(){for(var K=64,b=[];++K-b.length-32;){switch(K){case 91:K=44;continue;case 123:K=65;break;case 65:K-=18;continue;case 58:K=96;continue;case 46:K=95}b.push(String.fromCharCode(K))}return b}, 2016787385,-899163636,-1987314467,function(K,b){b=(b%K.length+K.length)%K.length;K.splice(b,1)}, Q,260397829,447311738,-1000914230,-714127624,-97572757,function(K,b,q){var r=b.length;q.forEach(function(D,v,Y){this.push(Y[v]=b[(b.indexOf(D)-b.indexOf(this[v])+v+r--)%b.length])},K.split(""))}, -604412405,285929139,-1119405578,156611533,function(K,b){if(K.length!=0){b=(b%K.length+K.length)%K.length;var q=K[0];K[0]=K[b];K[b]=q}}, -769821551,-1449967488,function(K,b){K=(K%b.length+b.length)%b.length;b.splice(-K).reverse().forEach(function(q){b.unshift(q)})}, -605799166,"aSNC",409470925,-1741672943,/\[()"()["']/,1526239019,-2028225289,function(K,b,q,r,D,v){return b(r,D,v)}, null,-1722366208,198996094,1530043277,function(K,b){if(K.length!=0){b=(b%K.length+K.length)%K.length;var q=K[0];K[0]=K[b];K[b]=q}}, "hEXCw",508503487,function(K,b,q,r,D,v,Y,X){return b(q,r,D,v,Y,X)}, function(K,b,q,r,D,v,Y,X,S){return q(r,D,v,Y,X,S)}, -1257104885,813347147,-1360355722,-669520802,1530043277,1874160078,1351240208,-740865263,313243472,function(K,b,q,r,D){return b(q,r,D)}, function(K,b){for(b=(b%K.length+K.length)%K.length;b--;)K.unshift(K.pop())}, function(){for(var K=64,b=[];++K-b.length-32;){switch(K){case 58:K-=14;case 91:case 92:case 93:continue;case 123:K=47;case 94:case 95:case 96:continue;case 46:K=95}b.push(String.fromCharCode(K))}return b}, function(K){for(var b=K.length;b;)K.push(K.splice(--b,1)[0])}, -1000241724,function(K,b){K.length!=0&&(b=(b%K.length+K.length)%K.length,K.splice(0,1,K.splice(b,1,K[0])[0]))}, 1210401676,-1942224520,-1583174926,1331366041,913323391,1619104649,-1133646893,-1746322959,Q,-2087378607,564329299,-670308815,-418232650,function(K){K.reverse()}, Q,908048147,234420281,-76571529,null,function(){for(var K=64,b=[];++K-b.length-32;)switch(K){case 46:K=95;default:b.push(String.fromCharCode(K));case 94:case 95:case 96:break;case 123:K-=76;case 92:case 93:continue;case 58:K=44;case 91:}return b}, -370453038,function(){for(var K=64,b=[];++K-b.length-32;)switch(K){case 58:K=96;continue;case 91:K=44;break;case 65:K=47;continue;case 46:K=153;case 123:K-=58;default:b.push(String.fromCharCode(K))}return b}, 1906185947,506657132,null,819960607,-1741672943,-1707830392,284120513,855622221,-1449967488];z[33]=z;z[75]=z;z[81]=z;if(typeof CAn==="undefined")return Z;try{try{z[20]!=10?(0,z[52])(z[65],z[7]):(0,z[70])(z[33]),z[14]<=-9&&(z[30]!==new Date("1970-01-01T08:00:06.000+08:00")/1E3||((0,z[51])((0,z[56])(z[65],z[49]),z[9],z[10],z[20]),0))&&((0,z[24])(z[22],z[75]),z[41])(z[18],z[3]),z[20]>=10&&(z[21]!=-9?(((0,z[41])(z[60],z[15]),(0,z[39])(z[83]),z[6])(z[18],z[64]),z[22])(z[50],z[29])===(0,z[41])(z[18],z[75]): (0,z[36])(((0,z[new Date("1969-12-31T21:45:39.000-02:15")/1E3])(z[82]),z[1])(z[11],(0,z[38])(),z[50]),z[0],z[50],z[53])>>>(0,z[36])((0,z[0])(z[82],z[46]),z[0],z[82],z[47])),z[77]!==3&&(z[87]>9||((0,z[25])((0,z[37])(z[new Date("1969-12-31T18:16:22.000-05:45")/1E3],z[79]),z[36],(0,z[36])((0,z[41])(z[18],z[58]),z[9],z[new Date("1969-12-31T12:30:04.000-11:30")/1E3],z[60]),z[12],z[56],z[76]),0))&&(0,z[32])((0,z[7])(z[29],(0,z[67])(),z[56]),(0,z[79])(z[56],z[14]),z[42],(0,z[7])(z[29],(0,z[69])(),z[56]), z[61],z[66])}catch(K){((0,z[42])((0,z[45])(z[66]),z[43],z[56],z[4]),z[47])(z[24],z[19])/(0,z[7])(z[29],(0,z[84])(),z[56])}try{z[46]<=9&&(((((((0,z[43])(z[0],z[46]),z[47])(z[62],z[41]),((0,z[47])(z[66],z[65]),z[43])(z[56],z[58]),z[79])(z[62],z[48]),z[12])(z[72],z[34]),(0,z[43])(z[56],z[71]),z[45])(z[66]),z[45])((0,z[7])(z[63],z[new Date("1970-01-01T08:15:32.000+08:15")/1E3]),z[59],z[15],z[4]),1)||((((0,z[45])(((0,z[80])(z[70],(0,z[20])(),z[25]),z[80])(z[58],(0,z[18])(),z[25]),z[8],z[25],z[85]),(0,z[45])((0,z[45])((0,z[72])(z[62], z[25]),z[80],z[70],(0,z[18])(),z[67]),z[26],z[15]),z[1458-new Date("1970-01-01T11:23:36.000+11:00")/1E3])(z[21]),z[42])(z[67]),(0,z[72])(z[33],z[67]),z[8])(z[31],z[84])}catch(K){(0,z[44])(z[21],z[48])}try{z[84]>=10&&(z[32]<1||((0,z[55])((0,z[40])(z[31],z[27])<<(0,z[59])(z[63],z[68]),((0,z[45])((0,z[54%Math.pow(new Date("1969-12-31T22:15:04.000-01:45")/1E3,4)-10])(z[67],z[65]),z[72],z[38],z[63]),z[42])(z[67]),z[45],((0,z[75])(z[25],z[30]),(0,z[80])(z[70],(0,z[3])(),z[67])),z[8],z[31],z[82]),0))&&(0,z[45])((((((0,z[45])((0,z[59])(z[15], z[10]),z[44],z[67],z[50]),(0,z[26])(z[21]),z[62])(z[57]),z[44])(z[73],z[31]),z[45])(z[38],z[50]),z[58])(z[13],z[68]),z[73],z[7],z[4]),z[19]!=-1&&(z[71]<3?(0,z[87])((0,z[87])((0,z[87])((0,z[87])((0,z[57])(z[69],z[46]),z[35],z[69],z[6]),z[35],z[12],z[71]),z[35],z[28],z[24]),z[52],z[62],(0,z[0])(),z[18]):((0,z[88])(z[18],z[7]),((0,z[17])(z[12]),z[88])(z[12],z[78]),(0,z[3])(z[28],z[38]))!==(0,z[88])(z[22],z[29]))}catch(K){(0,z[42])(z[64],(0,z[15])(),z[2])===(0,z[25])(z[2],z[51])}finally{z[75]==-4?(((0,z[50])(z[71], z[12]),((0,z[25])(z[79],z[21]),z[42])(z[64],(0,z[15])(),z[8]),(0,z[42])(z[52],(0,z[30])(),z[8]),z[78])(z[79],z[53]),z[42])(z[52],(0,z[15])(),z[8]):((0,z[58])((0,z[7])(z[2]),z[63],(0,z[77])((0,z[42])(z[64],(0,z[30])(),z[55]),z[42],z[52],(0,z[18])(),z[2]),z[2],z[34]),z[47])(z[2],z[5])%(0,z[25+83%(new Date("1969-12-31T13:17:46.000-10:45")/1E3)-101])(z[79])}}catch(K){return"6866dUEMVjwq50B1OL-_w8_"+Z}return Q.join("")}; HhG=function(Z){return Z,"long"[2+!!Z]}; g.dI=function(Z){this.name=Z}; Mrr=function(Z){this.P4=RI(Z)}; Na=function(Z){this.P4=RI(Z)}; GO=function(Z){this.P4=RI(Z)}; UOn=function(Z){this.P4=RI(Z)}; iW=function(Z){this.P4=RI(Z)}; az=function(Z){this.P4=RI(Z)}; PF=function(Z){this.P4=RI(Z)}; Rz=function(Z){this.P4=RI(Z)}; Cp=function(Z){this.P4=RI(Z)}; pp=function(Z){this.P4=RI(Z)}; HF=function(Z){this.P4=RI(Z)}; Ma=function(Z){this.P4=RI(Z)}; Uf=function(Z){this.P4=RI(Z)}; BF=function(Z){this.P4=RI(Z)}; WF=function(Z){this.P4=RI(Z)}; VN=function(Z){this.P4=RI(Z,500)}; k2=function(Z){this.P4=RI(Z)}; uW=function(Z){this.P4=RI(Z)}; Ohf=function(Z){this.P4=RI(Z)}; oPx=function(){return g.WG("yt.ads.biscotti.lastId_")||""}; BnW=function(Z){g.BG("yt.ads.biscotti.lastId_",Z)}; ts=function(){var Z=arguments,Q=x2;Z.length>1?Q[Z[0]]=Z[1]:Z.length===1&&Object.assign(Q,Z[0])}; g.Ft=function(Z,Q){return Z in x2?x2[Z]:Q}; et=function(Z){var Q=x2.EXPERIMENT_FLAGS;return Q?Q[Z]:void 0}; WWf=function(Z){wI.forEach(function(Q){return Q(Z)})}; g.lW=function(Z){return Z&&window.yterr?function(){try{return Z.apply(this,arguments)}catch(Q){g.Ef(Q)}}:Z}; g.Ef=function(Z){var Q=g.WG("yt.logging.errors.log");Q?Q(Z,"ERROR",void 0,void 0,void 0,void 0,void 0):(Q=g.Ft("ERRORS",[]),Q.push([Z,"ERROR",void 0,void 0,void 0,void 0,void 0]),ts("ERRORS",Q));WWf(Z)}; sS=function(Z,Q,z,K,b){var q=g.WG("yt.logging.errors.log");q?q(Z,"WARNING",Q,z,K,void 0,b):(q=g.Ft("ERRORS",[]),q.push([Z,"WARNING",Q,z,K,void 0,b]),ts("ERRORS",q))}; ZX=function(Z,Q){Q=Z.split(Q);for(var z={},K=0,b=Q.length;K<b;K++){var q=Q[K].split("=");if(q.length===1&&q[0]||q.length===2)try{var r=Vr9(q[0]||""),D=Vr9(q[1]||"");if(r in z){var v=z[r];Array.isArray(v)?g.KG(v,D):z[r]=[v,D]}else z[r]=D}catch(T){var Y=T,X=q[0],S=String(ZX);Y.args=[{key:X,value:q[1],query:Z,method:kof===S?"unchanged":S}];u1f.hasOwnProperty(X)||sS(Y)}}return z}; QC=function(Z){var Q=[];g.fx(Z,function(z,K){var b=g.F5(K);g.SB(Array.isArray(z)?z:[z],function(q){q==""?Q.push(b):Q.push(b+"="+g.F5(q))})}); return Q.join("&")}; zr=function(Z){Z.charAt(0)==="?"&&(Z=Z.substring(1));return ZX(Z,"&")}; KA=function(Z){return Z.split(",").map(function(Q){return zr(Q)})}; g.bV=function(Z){return Z.indexOf("?")!==-1?(Z=(Z||"").split("#")[0],Z=Z.split("?",2),zr(Z.length>1?Z[1]:Z[0])):{}}; qi=function(Z,Q){return xOn(Z,Q||{},!0)}; rp=function(Z,Q){return xOn(Z,Q||{},!1)}; xOn=function(Z,Q,z){var K=Z.split("#",2);Z=K[0];K=K.length>1?"#"+K[1]:"";var b=Z.split("?",2);Z=b[0];b=zr(b[1]||"");for(var q in Q)if(z||!g.Jl(b,q))b[q]=Q[q];return g.BK(Z,b)+K}; AN=function(Z){if(!Q)var Q=window.location.href;var z=g.CE(1,Z),K=g.pE(Z);z&&K?(Z=Z.match(Rl),Q=Q.match(Rl),Z=Z[3]==Q[3]&&Z[1]==Q[1]&&Z[4]==Q[4]):Z=K?g.pE(Q)===K&&(Number(g.CE(4,Q))||null)===(Number(g.CE(4,Z))||null):!0;return Z}; jL=function(Z){Z||(Z=document.location.href);Z=g.CE(1,Z);return Z!==null&&Z==="https"}; DX=function(Z){Z=tr0(Z);return Z===null?!1:Z[0]==="com"&&Z[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; FWG=function(Z){Z=tr0(Z);return Z===null?!1:Z[1]==="google"?!0:Z[2]==="google"?Z[0]==="au"&&Z[1]==="com"?!0:Z[0]==="uk"&&Z[1]==="co"?!0:!1:!1}; tr0=function(Z){Z=g.pE(Z);return Z!==null?Z.split(".").reverse():null}; Vr9=function(Z){return Z&&Z.match(eBX)?Z:e6(Z)}; Yq=function(Z){var Q=vX;Z=Z===void 0?oPx():Z;var z=Object,K=z.assign,b=gp(Q);var q=Q.Y;try{var r=q.screenX;var D=q.screenY}catch(d){}try{var v=q.outerWidth;var Y=q.outerHeight}catch(d){}try{var X=q.innerWidth;var S=q.innerHeight}catch(d){}try{var T=q.screenLeft;var f=q.screenTop}catch(d){}try{X=q.innerWidth,S=q.innerHeight}catch(d){}try{var h=q.screen.availWidth;var m=q.screen.availTop}catch(d){}q=[T,f,r,D,h,m,v,Y,X,S];r=SWd(!1,Q.Y.top);D={};var J=J===void 0?g.OG:J;v=new V$;"SVGElement"in J&&"createElementNS"in J.document&&v.set(0);Y=Nwx();Y["allow-top-navigation-by-user-activation"]&&v.set(1);Y["allow-popups-to-escape-sandbox"]&&v.set(2);J.crypto&&J.crypto.subtle&&v.set(3);"TextDecoder"in J&&"TextEncoder"in J&&v.set(4);J=JGu(v);Q=(D.bc=J,D.bih=r.height,D.biw=r.width,D.brdim=q.join(),D.vis=Xq(Q.j),D.wgl=!!vW.WebGLRenderingContext,D);z=K.call(z,b,Q);z.ca_type="image";Z&&(z.bid=Z);return z}; gp=function(Z){var Q={};Q.dt=wQf;Q.flash="0";a:{try{var z=Z.Y.top.location.href}catch(X){Z=2;break a}Z=z?z===Z.j.location.href?0:1:2}Q=(Q.frm=Z,Q);try{Q.u_tz=-(new Date).getTimezoneOffset();var K=K===void 0?vW:K;try{var b=K.history.length}catch(X){b=0}Q.u_his=b;var q;Q.u_h=(q=vW.screen)==null?void 0:q.height;var r;Q.u_w=(r=vW.screen)==null?void 0:r.width;var D;Q.u_ah=(D=vW.screen)==null?void 0:D.availHeight;var v;Q.u_aw=(v=vW.screen)==null?void 0:v.availWidth;var Y;Q.u_cd=(Y=vW.screen)==null?void 0: Y.colorDepth}catch(X){}return Q}; lrW=function(){if(!EP0)return null;var Z=EP0();return"open"in Z?Z:null}; g.SL=function(Z){switch(XJ(Z)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; XJ=function(Z){return Z&&"status"in Z?Z.status:-1}; g.$q=function(Z,Q){typeof Z==="function"&&(Z=g.lW(Z));return window.setTimeout(Z,Q)}; g.Tr=function(Z,Q){typeof Z==="function"&&(Z=g.lW(Z));return window.setInterval(Z,Q)}; g.fA=function(Z){window.clearTimeout(Z)}; g.hN=function(Z){window.clearInterval(Z)}; g.nA=function(Z){Z=LA(Z);return typeof Z==="string"&&Z==="false"?!1:!!Z}; g.cX=function(Z,Q){Z=LA(Z);return Z===void 0&&Q!==void 0?Q:Number(Z||0)}; mY=function(){return g.Ft("EXPERIMENTS_TOKEN","")}; LA=function(Z){return g.Ft("EXPERIMENT_FLAGS",{})[Z]}; In=function(){for(var Z=[],Q=g.Ft("EXPERIMENTS_FORCED_FLAGS",{}),z=g.n(Object.keys(Q)),K=z.next();!K.done;K=z.next())K=K.value,Z.push({key:K,value:String(Q[K])});z=g.Ft("EXPERIMENT_FLAGS",{});K=g.n(Object.keys(z));for(var b=K.next();!b.done;b=K.next())b=b.value,b.startsWith("force_")&&Q[b]===void 0&&Z.push({key:b,value:String(z[b])});return Z}; JN=function(Z,Q,z,K,b,q,r,D){function v(){(Y&&"readyState"in Y?Y.readyState:0)===4&&Q&&g.lW(Q)(Y)} z=z===void 0?"GET":z;K=K===void 0?"":K;D=D===void 0?!1:D;var Y=lrW();if(!Y)return null;"onloadend"in Y?Y.addEventListener("loadend",v,!1):Y.onreadystatechange=v;g.nA("debug_forward_web_query_parameters")&&(Z=sFM(Z,window.location.search));Y.open(z,Z,!0);q&&(Y.responseType=q);r&&(Y.withCredentials=!0);z=z==="POST"&&(window.FormData===void 0||!(K instanceof FormData));if(b=Z8D(Z,b))for(var X in b)Y.setRequestHeader(X,b[X]),"content-type"===X.toLowerCase()&&(z=!1);z&&Y.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");if(D&&"setAttributionReporting"in XMLHttpRequest.prototype){Z={eventSourceEligible:!0,triggerEligible:!1};try{Y.setAttributionReporting(Z)}catch(S){sS(S)}}Y.send(K);return Y}; Z8D=function(Z,Q){Q=Q===void 0?{}:Q;var z=AN(Z),K=g.Ft("INNERTUBE_CLIENT_NAME"),b=g.nA("web_ajax_ignore_global_headers_if_set"),q;for(q in QFG){var r=g.Ft(QFG[q]),D=q==="X-Goog-AuthUser"||q==="X-Goog-PageId";q!=="X-Goog-Visitor-Id"||r||(r=g.Ft("VISITOR_DATA"));var v;if(!(v=!r)){if(!(v=z||(g.pE(Z)?!1:!0))){v=Z;var Y;if(Y=g.nA("add_auth_headers_to_remarketing_google_dot_com_ping")&&q==="Authorization"&&(K==="TVHTML5"||K==="TVHTML5_UNPLUGGED"||K==="TVHTML5_SIMPLY")&&FWG(v))v=PK(g.CE(5,v))||"",v=v.split("/"), v="/"+(v.length>1?v[1]:""),Y=v==="/pagead";v=Y?!0:!1}v=!v}v||b&&Q[q]!==void 0||K==="TVHTML5_UNPLUGGED"&&D||(Q[q]=r)}"X-Goog-EOM-Visitor-Id"in Q&&"X-Goog-Visitor-Id"in Q&&delete Q["X-Goog-Visitor-Id"];if(z||!g.pE(Z))Q["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(z||!g.pE(Z)){try{var X=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(S){}X&&(Q["X-YouTube-Time-Zone"]=X)}document.location.hostname.endsWith("youtubeeducation.com")||!z&&g.pE(Z)||(Q["X-YouTube-Ad-Signals"]= QC(Yq()));return Q}; K_W=function(Z,Q){var z=g.pE(Z);g.nA("debug_handle_relative_url_for_query_forward_killswitch")||!z&&AN(Z)&&(z=document.location.hostname);var K=PK(g.CE(5,Z));K=(z=z&&(z.endsWith("youtube.com")||z.endsWith("youtube-nocookie.com")))&&K&&K.startsWith("/api/");if(!z||K)return Z;var b=zr(Q),q={};g.SB(zjD,function(r){b[r]&&(q[r]=b[r])}); return rp(Z,q)}; dp=function(Z,Q){Q.method="POST";Q.postParams||(Q.postParams={});return g.yC(Z,Q)}; rOd=function(Z,Q){if(window.fetch&&Q.format!=="XML"){var z={method:Q.method||"GET",credentials:"same-origin"};Q.headers&&(z.headers=Q.headers);Q.priority&&(z.priority=Q.priority);Z=b8n(Z,Q);var K=q6u(Z,Q);K&&(z.body=K);Q.withCredentials&&(z.credentials="include");var b=Q.context||g.OG,q=!1,r;fetch(Z,z).then(function(D){if(!q){q=!0;r&&g.fA(r);var v=D.ok,Y=function(X){X=X||{};v?Q.onSuccess&&Q.onSuccess.call(b,X,D):Q.onError&&Q.onError.call(b,X,D);Q.onFinish&&Q.onFinish.call(b,X,D)}; (Q.format||"JSON")==="JSON"&&(v||D.status>=400&&D.status<500)?D.json().then(Y,function(){Y(null)}):Y(null)}}).catch(function(){Q.onError&&Q.onError.call(b,{},{})}); Z=Q.timeout||0;Q.onFetchTimeout&&Z>0&&(r=g.$q(function(){q||(q=!0,g.fA(r),Q.onFetchTimeout.call(Q.context||g.OG))},Z))}else g.yC(Z,Q)}; g.yC=function(Z,Q){var z=Q.format||"JSON";Z=b8n(Z,Q);var K=q6u(Z,Q),b=!1,q=AOM(Z,function(v){if(!b){b=!0;D&&g.fA(D);var Y=g.SL(v),X=null,S=400<=v.status&&v.status<500,T=500<=v.status&&v.status<600;if(Y||S||T)X=jFM(Z,z,v,Q.convertToSafeHtml);Y&&(Y=DDG(z,v,X));X=X||{};S=Q.context||g.OG;Y?Q.onSuccess&&Q.onSuccess.call(S,v,X):Q.onError&&Q.onError.call(S,v,X);Q.onFinish&&Q.onFinish.call(S,v,X)}},Q.method,K,Q.headers,Q.responseType,Q.withCredentials); K=Q.timeout||0;if(Q.onTimeout&&K>0){var r=Q.onTimeout;var D=g.$q(function(){b||(b=!0,q.abort(),g.fA(D),r.call(Q.context||g.OG,q))},K)}return q}; b8n=function(Z,Q){Q.includeDomain&&(Z=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+Z);var z=g.Ft("XSRF_FIELD_NAME");if(Q=Q.urlParams)Q[z]&&delete Q[z],Z=qi(Z,Q);return Z}; q6u=function(Z,Q){var z=g.Ft("XSRF_FIELD_NAME"),K=g.Ft("XSRF_TOKEN"),b=Q.postBody||"",q=Q.postParams,r=g.Ft("XSRF_FIELD_NAME"),D;Q.headers&&(D=Q.headers["Content-Type"]);Q.excludeXsrf||g.pE(Z)&&!Q.withCredentials&&g.pE(Z)!==document.location.hostname||Q.method!=="POST"||D&&D!=="application/x-www-form-urlencoded"||Q.postParams&&Q.postParams[r]||(q||(q={}),q[z]=K);(g.nA("ajax_parse_query_data_only_when_filled")&&q&&Object.keys(q).length>0||q)&&typeof b==="string"&&(b=zr(b),g.Re(b,q),b=Q.postBodyFormat&& Q.postBodyFormat==="JSON"?JSON.stringify(b):g.ol(b));q=b||q&&!g.Ne(q);!vlf&&q&&Q.method!=="POST"&&(vlf=!0,g.Ef(Error("AJAX request with postData should use POST")));return b}; jFM=function(Z,Q,z,K){var b=null;switch(Q){case "JSON":try{var q=z.responseText}catch(r){throw K=Error("Error reading responseText"),K.params=Z,sS(K),r;}Z=z.getResponseHeader("Content-Type")||"";q&&Z.indexOf("json")>=0&&(q.substring(0,5)===")]}'\n"&&(q=q.substring(5)),b=JSON.parse(q));break;case "XML":if(Z=(Z=z.responseXML)?gld(Z):null)b={},g.SB(Z.getElementsByTagName("*"),function(r){b[r.tagName]=Y6W(r)})}K&&Xkn(b); return b}; Xkn=function(Z){if(g.tn(Z))for(var Q in Z)Q==="html_content"||OXW(Q,"_html")?Z[Q]=pt(Z[Q]):Xkn(Z[Q])}; DDG=function(Z,Q,z){if(Q&&Q.status===204)return!0;switch(Z){case "JSON":return!!z;case "XML":return Number(z&&z.return_code)===0;case "RAW":return!0;default:return!!z}}; gld=function(Z){return Z?(Z=("responseXML"in Z?Z.responseXML:Z).getElementsByTagName("root"))&&Z.length>0?Z[0]:null:null}; Y6W=function(Z){var Q="";g.SB(Z.childNodes,function(z){Q+=z.nodeValue}); return Q}; Gr=function(Z,Q){var z=g.ae(Q),K;return(new g.XA(function(b,q){z.onSuccess=function(r){g.SL(r)?b(new S64(r)):q(new Ni("Request failed, status="+XJ(r),"net.badstatus",r))}; z.onError=function(r){q(new Ni("Unknown request error","net.unknown",r))}; z.onTimeout=function(r){q(new Ni("Request timed out","net.timeout",r))}; K=g.yC(Z,z)})).RX(function(b){if(b instanceof LE){var q; (q=K)==null||q.abort()}return TD(b)})}; g.iV=function(Z,Q,z,K){function b(D,v,Y){return D.RX(function(X){if(v<=0||XJ(X.xhr)===403)return TD(new Ni("Request retried too many times","net.retryexhausted",X.xhr,X));X=Math.pow(2,z-v+1)*Y;var S=r>0?Math.min(r,X):X;return q(Y).then(function(){return b(Gr(Z,Q),v-1,S)})})} function q(D){return new g.XA(function(v){setTimeout(v,D)})} var r=r===void 0?-1:r;return b(Gr(Z,Q),z-1,K)}; Ni=function(Z,Q,z){fz.call(this,Z+", errorCode="+Q);this.errorCode=Q;this.xhr=z;this.name="PromiseAjaxError"}; S64=function(Z){this.xhr=Z}; an=function(Z){this.Y=Z===void 0?null:Z;this.S=0;this.j=null}; PX=function(Z){var Q=new an;Z=Z===void 0?null:Z;Q.S=2;Q.j=Z===void 0?null:Z;return Q}; Rn=function(Z){var Q=new an;Z=Z===void 0?null:Z;Q.S=1;Q.j=Z===void 0?null:Z;return Q}; g.HX=function(Z,Q,z,K,b){CA||pA.set(""+Z,Q,{MQ:z,path:"/",domain:K===void 0?"youtube.com":K,secure:b===void 0?!1:b})}; g.Mi=function(Z,Q){if(!CA)return pA.get(""+Z,Q)}; g.US=function(Z,Q,z){CA||pA.remove(""+Z,Q===void 0?"/":Q,z===void 0?"youtube.com":z)}; $DD=function(){if(g.nA("embeds_web_enable_cookie_detection_fix")){if(!g.OG.navigator.cookieEnabled)return!1}else if(!pA.isEnabled())return!1;if(!pA.isEmpty())return!0;g.nA("embeds_web_enable_cookie_detection_fix")?pA.set("TESTCOOKIESENABLED","1",{MQ:60,nJG:"none",secure:!0}):pA.set("TESTCOOKIESENABLED","1",{MQ:60});if(pA.get("TESTCOOKIESENABLED")!=="1")return!1;pA.remove("TESTCOOKIESENABLED");return!0}; g.V=function(Z,Q){if(Z)return Z[Q.name]}; OS=function(Z){var Q=g.Ft("INNERTUBE_HOST_OVERRIDE");Q&&(Z=String(Q)+String(HK(Z)));return Z}; T2f=function(Z){var Q={};g.nA("json_condensed_response")&&(Q.prettyPrint="false");return Z=rp(Z,Q)}; on=function(Z,Q){var z=z===void 0?{}:z;Z={method:Q===void 0?"POST":Q,mode:AN(Z)?"same-origin":"cors",credentials:AN(Z)?"same-origin":"include"};Q={};for(var K=g.n(Object.keys(z)),b=K.next();!b.done;b=K.next())b=b.value,z[b]&&(Q[b]=z[b]);Object.keys(Q).length>0&&(Z.headers=Q);return Z}; BX=function(){var Z=/Chrome\/(\d+)/.exec(g.iU());return Z?parseFloat(Z[1]):NaN}; VC=function(){return g.WX("android")&&g.WX("chrome")&&!(g.WX("trident/")||g.WX("edge/"))&&!g.WX("cobalt")}; fbG=function(){return g.WX("armv7")||g.WX("aarch64")||g.WX("android")}; g.kq=function(){return g.WX("cobalt")}; uV=function(){return g.WX("cobalt")&&g.WX("appletv")}; xq=function(){return g.WX("(ps3; leanback shell)")||g.WX("ps3")&&g.kq()}; hjX=function(){return g.WX("(ps4; leanback shell)")||g.WX("ps4")&&g.kq()}; g.L_r=function(){return g.kq()&&(g.WX("ps4 vr")||g.WX("ps4 pro vr"))}; tN=function(){var Z=/WebKit\/([0-9]+)/.exec(g.iU());return!!(Z&&parseInt(Z[1],10)>=600)}; FJ=function(){var Z=/WebKit\/([0-9]+)/.exec(g.iU());return!!(Z&&parseInt(Z[1],10)>=602)}; nlD=function(){return g.WX("iemobile")||g.WX("windows phone")&&g.WX("edge")}; ES=function(){return(eL||wp)&&g.WX("applewebkit")&&!g.WX("version")&&(!g.WX("safari")||g.WX("gsa/"))}; s7=function(){return g.lV&&g.WX("version/")}; ZT=function(){return g.WX("smart-tv")&&g.WX("samsung")}; g.WX=function(Z){var Q=g.iU();return Q?Q.toLowerCase().indexOf(Z)>=0:!1}; Qs=function(){return Mx9()||ES()||s7()?!0:g.Ft("EOM_VISITOR_DATA")?!1:!0}; zM=function(Z,Q){return Q===void 0||Q===null?Z:Q==="1"||Q===!0||Q===1||Q==="True"?!0:!1}; KS=function(Z,Q,z){for(var K in z)if(z[K]==Q)return z[K];return Z}; bb=function(Z,Q){return Q===void 0||Q===null?Z:Number(Q)}; qW=function(Z,Q){return Q===void 0||Q===null?Z:Q.toString()}; rt=function(Z,Q){if(Q){if(Z==="fullwidth")return Infinity;if(Z==="fullheight")return 0}return Z&&(Q=Z.match(cOG))&&(Z=Number(Q[2]),Q=Number(Q[1]),!isNaN(Z)&&!isNaN(Q)&&Z>0)?Q/Z:NaN}; AW=function(Z){var Q=Z.docid||Z.video_id||Z.videoId||Z.id;if(Q)return Q;Q=Z.raw_player_response;Q||(Z=Z.player_response)&&(Q=JSON.parse(Z));return Q&&Q.videoDetails&&Q.videoDetails.videoId||null}; mDd=function(Z){return jj(Z,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; g.DT=function(Z){return Z==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||Z==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; jj=function(Z,Q){Q=(Q===void 0?0:Q)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(Q="EMBEDDED_PLAYER_MODE_PFL");var z=Z.raw_embedded_player_response;if(!z&&(Z=Z.embedded_player_response))try{z=JSON.parse(Z)}catch(K){return Q}return z?KS(Q,z.embeddedPlayerMode,IbX):Q}; gt=function(Z){fz.call(this,Z.message||Z.description||Z.name);this.isMissing=Z instanceof v6;this.isTimeout=Z instanceof Ni&&Z.errorCode=="net.timeout";this.isCanceled=Z instanceof LE}; v6=function(){fz.call(this,"Biscotti ID is missing from server")}; JOG=function(){if(g.nA("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!Qs())return Error("User has not consented - not fetching biscotti id.");var Z=g.Ft("PLAYER_VARS",{});if(g.GF(Z,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(mDd(Z))return Error("Biscotti id fetching has been disabled for pfl.")}; GHX=function(){var Z=JOG();if(Z!==void 0)return TD(Z);XY||(XY=Gr("//googleads.g.doubleclick.net/pagead/id",yOG).then(dDn).RX(function(Q){return N29(2,Q)})); return XY}; dDn=function(Z){Z=Z.xhr.responseText;if(!mw(Z,")]}'"))throw new v6;Z=JSON.parse(Z.substr(4));if((Z.type||1)>1)throw new v6;Z=Z.id;BnW(Z);XY=Rn(Z);i84(18E5,2);return Z}; N29=function(Z,Q){Q=new gt(Q);BnW("");XY=PX(Q);Z>0&&i84(12E4,Z-1);throw Q;}; i84=function(Z,Q){g.$q(function(){Gr("//googleads.g.doubleclick.net/pagead/id",yOG).then(dDn,function(z){return N29(Q,z)}).RX(g.DS)},Z)}; ab9=function(){try{var Z=g.WG("yt.ads.biscotti.getId_");return Z?Z():GHX()}catch(Q){return TD(Q)}}; Rj4=function(Z){Z&&(Z.dataset?Z.dataset[PRn()]="true":I2G(Z))}; CRn=function(Z){return Z?Z.dataset?Z.dataset[PRn()]:Z.getAttribute("data-loaded"):null}; PRn=function(){return pkd.loaded||(pkd.loaded="loaded".replace(/\-([a-z])/g,function(Z,Q){return Q.toUpperCase()}))}; H8f=function(){var Z=document;if("visibilityState"in Z)return Z.visibilityState;var Q=Sj+"VisibilityState";if(Q in Z)return Z[Q]}; $T=function(Z,Q){var z;ih(Z,function(K){z=Q[K];return!!z}); return z}; TM=function(Z){if(Z.requestFullscreen)Z=Z.requestFullscreen(void 0);else if(Z.webkitRequestFullscreen)Z=Z.webkitRequestFullscreen();else if(Z.mozRequestFullScreen)Z=Z.mozRequestFullScreen();else if(Z.msRequestFullscreen)Z=Z.msRequestFullscreen();else if(Z.webkitEnterFullscreen)Z=Z.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return Z instanceof Promise?Z:Promise.resolve()}; LS=function(Z){var Q;g.fS()?hW()==Z&&(Q=document):Q=Z;return Q&&(Z=$T(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],Q))?(Q=Z.call(Q),Q instanceof Promise?Q:Promise.resolve()):Promise.resolve()}; M_G=function(Z){return g.Fm(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(Q){return"on"+Q.toLowerCase()in Z})}; UDW=function(){var Z=document;return g.Fm(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(Q){return"on"+Q.toLowerCase()in Z})}; g.fS=function(){return!!$T(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; hW=function(Z){Z=Z===void 0?!1:Z;var Q=$T(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(Z)for(;Q&&Q.shadowRoot;)Q=Q.shadowRoot.fullscreenElement;return Q?Q:null}; nS=function(Z){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(Z=Z||window.event){this.event=Z;for(var Q in Z)Q in O8M||(this[Q]=Z[Q]);this.scale=Z.scale;this.rotation=Z.rotation;var z=Z.target||Z.srcElement;z&&z.nodeType==3&&(z=z.parentNode);this.target=z;var K=Z.relatedTarget; if(K)try{K=K.nodeName?K:null}catch(b){K=null}else this.type=="mouseover"?K=Z.fromElement:this.type=="mouseout"&&(K=Z.toElement);this.relatedTarget=K;this.clientX=Z.clientX!=void 0?Z.clientX:Z.pageX;this.clientY=Z.clientY!=void 0?Z.clientY:Z.pageY;this.keyCode=Z.keyCode?Z.keyCode:Z.which;this.charCode=Z.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=Z.altKey;this.ctrlKey=Z.ctrlKey;this.shiftKey=Z.shiftKey;this.metaKey=Z.metaKey;this.Y=Z.pageX;this.j=Z.pageY}}catch(b){}}; olG=function(Z){if(document.body&&document.documentElement){var Q=document.body.scrollTop+document.documentElement.scrollTop;Z.Y=Z.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);Z.j=Z.clientY+Q}}; B2x=function(Z,Q,z,K){K=K===void 0?{}:K;Z.addEventListener&&(Q!="mouseenter"||"onmouseenter"in document?Q!="mouseleave"||"onmouseenter"in document?Q=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(Q="MozMousePixelScroll"):Q="mouseout":Q="mouseover");return dg(c6,function(b){var q=typeof b[4]==="boolean"&&b[4]==!!K,r=g.tn(b[4])&&g.tn(K)&&g.iY(b[4],K);return!!b.length&&b[0]==Z&&b[1]==Q&&b[2]==z&&(q||r)})}; g.mC=function(Z,Q,z,K){K=K===void 0?{}:K;if(!Z||!Z.addEventListener&&!Z.attachEvent)return"";var b=B2x(Z,Q,z,K);if(b)return b;b=++W_0.count+"";var q=!(Q!="mouseenter"&&Q!="mouseleave"||!Z.addEventListener||"onmouseenter"in document);var r=q?function(D){D=new nS(D);if(!rC(D.relatedTarget,function(v){return v==Z},!0))return D.currentTarget=Z,D.type=Q,z.call(Z,D)}:function(D){D=new nS(D); D.currentTarget=Z;return z.call(Z,D)}; r=g.lW(r);Z.addEventListener?(Q=="mouseenter"&&q?Q="mouseover":Q=="mouseleave"&&q?Q="mouseout":Q=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(Q="MozMousePixelScroll"),V_W()||typeof K==="boolean"?Z.addEventListener(Q,r,K):Z.addEventListener(Q,r,!!K.capture)):Z.attachEvent("on"+Q,r);c6[b]=[Z,Q,z,r,K];return b}; uHM=function(Z){return kHf(Z,function(Q){return g.q7(Q,"ytp-ad-has-logging-urls")})}; kHf=function(Z,Q){var z=document.body||document;return g.mC(z,"click",function(K){var b=rC(K.target,function(q){return q===z||Q(q)},!0); b&&b!==z&&!b.disabled&&(K.currentTarget=b,Z.call(b,K))})}; g.I7=function(Z){Z&&(typeof Z=="string"&&(Z=[Z]),g.SB(Z,function(Q){if(Q in c6){var z=c6[Q],K=z[0],b=z[1],q=z[3];z=z[4];K.removeEventListener?V_W()||typeof z==="boolean"?K.removeEventListener(b,q,z):K.removeEventListener(b,q,!!z.capture):K.detachEvent&&K.detachEvent("on"+b,q);delete c6[Q]}}))}; JW=function(Z){for(var Q in c6)c6[Q][0]==Z&&g.I7(Q)}; ys=function(Z){Z=Z||window.event;var Q;Z.composedPath&&typeof Z.composedPath==="function"?Q=Z.composedPath():Q=Z.path;Q&&Q.length?Z=Q[0]:(Z=Z||window.event,Z=Z.target||Z.srcElement,Z.nodeType==3&&(Z=Z.parentNode));return Z}; dt=function(Z){this.T=Z;this.Y=null;this.W=0;this.K=null;this.L=0;this.j=[];for(Z=0;Z<4;Z++)this.j.push(0);this.S=0;this.SJ=g.mC(window,"mousemove",(0,g.EG)(this.U,this));this.X=g.Tr((0,g.EG)(this.jJ,this),25)}; NW=function(Z){g.O.call(this);this.T=[];this.gq=Z||this}; GM=function(Z,Q,z,K){for(var b=0;b<z.length;b++)Z.Z(Q,z[b],K)}; g.ib=function(Z,Q){for(;Z.T.length;){var z=Z.T.pop(),K=void 0;Q&&xDG()&&(K={passive:!0});z.target.removeEventListener(z.name,z.callback,K)}}; a7=function(Z){Z=Z||{};var Q={},z={};this.url=Z.url||"";this.args=Z.args||g.ae(Q);this.assets=Z.assets||{};this.attrs=Z.attrs||g.ae(z);this.fallback=Z.fallback||null;this.fallbackMessage=Z.fallbackMessage||null;this.html5=!!Z.html5;this.disable=Z.disable||{};this.loaded=!!Z.loaded;this.messages=Z.messages||{}}; t_d=function(Z){Z instanceof a7||(Z=new a7(Z));return Z}; g.CS=function(Z,Q,z){var K=z&&z>0?z:0;z=K?Date.now()+K*1E3:0;if((K=K?(0,g.P6)():R7())&&window.JSON){typeof Q!=="string"&&(Q=JSON.stringify(Q,void 0));try{K.set(Z,Q,z)}catch(b){K.remove(Z)}}}; g.pS=function(Z){var Q=R7(),z=(0,g.P6)();if(!Q&&!z||!window.JSON)return null;try{var K=Q.get(Z)}catch(b){}if(typeof K!=="string")try{K=z.get(Z)}catch(b){}if(typeof K!=="string")return null;try{K=JSON.parse(K,void 0)}catch(b){}return K}; F_4=function(){var Z=(0,g.P6)();if(Z&&(Z=Z.j("yt-player-quality")))return Z.creation}; g.H6=function(Z){try{var Q=R7(),z=(0,g.P6)();Q&&Q.remove(Z);z&&z.remove(Z)}catch(K){}}; g.MW=function(){return g.pS("yt-remote-session-screen-id")}; ejG=function(Z){var Q=this;this.j=void 0;this.Y=!1;Z.addEventListener("beforeinstallprompt",function(z){z.preventDefault();Q.j=z}); Z.addEventListener("appinstalled",function(){Q.Y=!0},{once:!0})}; U7=function(){if(!g.OG.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.OG.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.OG.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.OG.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.OG.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(Z){return"WEB_DISPLAY_MODE_UNKNOWN"}}; O7=function(){this.Eh=!0}; wkX=function(){O7.instance||(O7.instance=new O7);return O7.instance}; Eln=function(Z){switch(Z){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}}; lb9=function(){this.Y=g.Ft("ALT_PREF_COOKIE_NAME","PREF");this.j=g.Ft("ALT_PREF_COOKIE_DOMAIN","youtube.com");var Z=g.Mi(this.Y);Z&&this.parse(Z)}; g.B6=function(){o7||(o7=new lb9);return o7}; g.W6=function(Z,Q){return!!((sR4("f"+(Math.floor(Q/31)+1))||0)&1<<Q%31)}; kT=function(Z,Q){var z="f"+(Math.floor(Z/31)+1);Z=1<<Z%31;var K=sR4(z)||0;K=Q?K|Z:K&~Z;K===0?delete Vs[z]:(Q=K.toString(16),Vs[z]=Q.toString())}; ub=function(Z){if(/^f([1-9][0-9]*)$/.test(Z))throw Error("ExpectedRegexMatch: "+Z);}; xT=function(Z){if(!/^\w+$/.test(Z))throw Error("ExpectedRegexMismatch: "+Z);}; sR4=function(Z){Z=Vs[Z]!==void 0?Vs[Z].toString():null;return Z!=null&&/^[A-Fa-f0-9]+$/.test(Z)?parseInt(Z,16):null}; Zmd=function(){var Z=g.OG.navigator;return Z?Z.connection:void 0}; zwM=function(){var Z=Zmd();if(Z){var Q=QRM[Z.type||"unknown"]||"CONN_UNKNOWN";Z=QRM[Z.effectiveType||"unknown"]||"CONN_UNKNOWN";Q==="CONN_CELLULAR_UNKNOWN"&&Z!=="CONN_UNKNOWN"&&(Q=Z);if(Q!=="CONN_UNKNOWN")return Q;if(Z!=="CONN_UNKNOWN")return Z}}; bmd=function(){var Z=Zmd();if(Z!=null&&Z.effectiveType)return KfM.hasOwnProperty(Z.effectiveType)?KfM[Z.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"}; g.tW=function(Z){var Q=g.iu.apply(1,arguments);var z=Error.call(this,Z);this.message=z.message;"stack"in z&&(this.stack=z.stack);this.args=[].concat(g.I(Q))}; g.ej=function(){try{return g.FY(),!0}catch(Z){return!1}}; g.FY=function(Z){if(g.Ft("DATASYNC_ID")!==void 0)return g.Ft("DATASYNC_ID");throw new g.tW("Datasync ID not set",Z===void 0?"unknown":Z);}; wt=function(){this.Y=new WeakMap}; g.lb=function(Z,Q,z){return E7(Q,0,z)}; qtn=function(Z){var Q=g.WG("yt.scheduler.instance.addImmediateJob");Q?Q(Z):Z()}; sI=function(){wt.apply(this,arguments)}; g.ZW=function(){sI.instance||(sI.instance=new sI);return sI.instance}; g.Q6=function(){return!!g.WG("yt.scheduler.instance")}; E7=function(Z,Q,z){z!==void 0&&Number.isNaN(Number(z))&&(z=void 0);var K=g.WG("yt.scheduler.instance.addJob");return K?K(Z,Q,z):z===void 0?(Z(),NaN):g.$q(Z,z||0)}; zS=function(Z,Q){(Z=g.WG("yt.scheduler.instance.setPriorityThreshold"))&&Z(Q)}; Kc=function(Z){this.Y=(Z=g.M7(Z))?new i_(Z):null;this.j=document.domain||window.location.hostname}; qm=function(){var Z;return(Z=bQ())==null?void 0:Z.get("LAST_RESULT_ENTRY_KEY",!0)}; rw0=function(){var Z={};for(rr=new Ah(Z.handleError===void 0?jz:Z.handleError,Z.logEvent===void 0?g.DW:Z.logEvent);vs.length>0;)switch(Z=vs.shift(),Z.type){case "ERROR":rr.B8(Z.payload);break;case "EVENT":rr.logEvent(Z.eventType,Z.payload)}}; Yk=function(Z){gr||(rr?rr.B8(Z):(vs.push({type:"ERROR",payload:Z}),vs.length>10&&vs.shift()))}; Xc=function(Z,Q){gr||(rr?rr.logEvent(Z,Q):(vs.push({type:"EVENT",eventType:Z,payload:Q}),vs.length>10&&vs.shift()))}; Sz=function(Z){if(Z.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; $k=function(Z){return Z.substr(0,Z.indexOf(":"))||Z}; g.TS=function(Z,Q,z,K,b){Q=Q===void 0?{}:Q;z=z===void 0?Aw4[Z]:z;K=K===void 0?jRG[Z]:K;b=b===void 0?D7r[Z]:b;g.tW.call(this,z,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:Z},Q));this.type=Z;this.message=z;this.level=K;this.Y=b;Object.setPrototypeOf(this,g.TS.prototype)}; fc=function(Z,Q){g.TS.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:Q,foundObjectStores:Z},Aw4.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,fc.prototype)}; hh=function(Z,Q){var z=Error.call(this);this.message=z.message;"stack"in z&&(this.stack=z.stack);this.index=Z;this.objectStore=Q;Object.setPrototypeOf(this,hh.prototype)}; nc=function(Z,Q,z,K){Q=$k(Q);var b=Z instanceof Error?Z:Error("Unexpected error: "+Z);if(b instanceof g.TS)return b;Z={objectStoreNames:z,dbName:Q,dbVersion:K};if(b.name==="QuotaExceededError")return new g.TS("QUOTA_EXCEEDED",Z);if(g.Lc&&b.name==="UnknownError")return new g.TS("QUOTA_MAYBE_EXCEEDED",Z);if(b instanceof hh)return new g.TS("MISSING_INDEX",Object.assign({},Z,{objectStore:b.objectStore,index:b.index}));if(b.name==="InvalidStateError"&&vRG.some(function(q){return b.message.includes(q)}))return new g.TS("EXECUTE_TRANSACTION_ON_CLOSED_DB", Z); if(b.name==="AbortError")return new g.TS("UNKNOWN_ABORT",Z,b.message);b.args=[Object.assign({},Z,{name:"IdbError",Hc:b.name})];b.level="WARNING";return b}; g.cs=function(Z,Q,z){var K=qm();return new g.TS("IDB_NOT_SUPPORTED",{context:{caller:Z,publicName:Q,version:z,hasSucceededOnce:K==null?void 0:K.hasSucceededOnce}})}; gRn=function(Z){if(!Z)throw Error();throw Z;}; Ytf=function(Z){return Z}; me=function(Z){this.Y=Z}; g.Iw=function(Z){function Q(b){if(K.state.status==="PENDING"){K.state={status:"REJECTED",reason:b};b=g.n(K.j);for(var q=b.next();!q.done;q=b.next())q=q.value,q()}} function z(b){if(K.state.status==="PENDING"){K.state={status:"FULFILLED",value:b};b=g.n(K.Y);for(var q=b.next();!q.done;q=b.next())q=q.value,q()}} var K=this;this.state={status:"PENDING"};this.Y=[];this.j=[];Z=Z.Y;try{Z(z,Q)}catch(b){Q(b)}}; XC9=function(Z,Q,z,K,b){try{if(Z.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var q=z(Z.state.value);q instanceof g.Iw?Jh(Z,Q,q,K,b):K(q)}catch(r){b(r)}}; StM=function(Z,Q,z,K,b){try{if(Z.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var q=z(Z.state.reason);q instanceof g.Iw?Jh(Z,Q,q,K,b):K(q)}catch(r){b(r)}}; Jh=function(Z,Q,z,K,b){Q===z?b(new TypeError("Circular promise chain detected.")):z.then(function(q){q instanceof g.Iw?Jh(Z,Q,q,K,b):K(q)},function(q){b(q)})}; $7r=function(Z,Q,z){function K(){z(Z.error);q()} function b(){Q(Z.result);q()} function q(){try{Z.removeEventListener("success",b),Z.removeEventListener("error",K)}catch(r){}} Z.addEventListener("success",b);Z.addEventListener("error",K)}; Tdx=function(Z){return new Promise(function(Q,z){$7r(Z,Q,z)})}; y6=function(Z){return new g.Iw(new me(function(Q,z){$7r(Z,Q,z)}))}; dr=function(Z,Q){return new g.Iw(new me(function(z,K){function b(){var q=Z?Q(Z):null;q?q.then(function(r){Z=r;b()},K):z()} b()}))}; f80=function(Z,Q){this.request=Z;this.cursor=Q}; hwG=function(Z){return y6(Z).then(function(Q){return Q?new f80(Z,Q):null})}; g.Lfu=function(Z){Z.cursor.continue(void 0);return hwG(Z.request)}; nRX=function(Z,Q){this.Y=Z;this.options=Q;this.transactionCount=0;this.S=Math.round((0,g.Nm)());this.j=!1}; g.iQ=function(Z,Q,z){Z=Z.Y.createObjectStore(Q,z);return new GS(Z)}; aw=function(Z,Q){Z.Y.objectStoreNames.contains(Q)&&Z.Y.deleteObjectStore(Q)}; g.Cc=function(Z,Q,z){return g.Ps(Z,[Q],{mode:"readwrite",xq:!0},function(K){return g.Rw(K.objectStore(Q),z)})}; g.Ps=function(Z,Q,z,K){var b,q,r,D,v,Y,X,S,T,f,h,m;return g.C(function(J){switch(J.Y){case 1:var d={mode:"readonly",xq:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof z==="string"?d.mode=z:Object.assign(d,z);b=d;Z.transactionCount++;q=b.xq?3:1;r=0;case 2:if(D){J.O$(4);break}r++;v=Math.round((0,g.Nm)());g.nX(J,5);Y=Z.Y.transaction(Q,b.mode);d=new pc(Y);d=cwG(d,K);return g.P(J,d,7);case 7:return X=J.j,S=Math.round((0,g.Nm)()),m70(Z,v,S,r,void 0,Q.join(),b),J.return(X);case 5:T=g.I0(J);f=Math.round((0,g.Nm)()); h=nc(T,Z.Y.name,Q.join(),Z.Y.version);if((m=h instanceof g.TS&&!h.Y)||r>=q)m70(Z,v,f,r,h,Q.join(),b),D=h;J.O$(2);break;case 4:return J.return(Promise.reject(D))}})}; m70=function(Z,Q,z,K,b,q,r){Q=z-Q;b?(b instanceof g.TS&&(b.type==="QUOTA_EXCEEDED"||b.type==="QUOTA_MAYBE_EXCEEDED")&&Xc("QUOTA_EXCEEDED",{dbName:$k(Z.Y.name),objectStoreNames:q,transactionCount:Z.transactionCount,transactionMode:r.mode}),b instanceof g.TS&&b.type==="UNKNOWN_ABORT"&&(z-=Z.S,z<0&&z>=2147483648&&(z=0),Xc("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:q,transactionDuration:Q,transactionCount:Z.transactionCount,dbDuration:z}),Z.j=!0),I8x(Z,!1,K,q,Q,r.tag),Yk(b)):I8x(Z,!0,K,q,Q, r.tag)}; I8x=function(Z,Q,z,K,b,q){Xc("TRANSACTION_ENDED",{objectStoreNames:K,connectionHasUnknownAbortedTransaction:Z.j,duration:b,isSuccessful:Q,tryCount:z,tag:q===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":q})}; GS=function(Z){this.Y=Z}; g.Hs=function(Z,Q,z){Z.Y.createIndex(Q,z,{unique:!1})}; Jwr=function(Z,Q){return g.Mm(Z,{query:Q},function(z){return z.delete().then(function(){return g.UI(z)})}).then(function(){})}; yw9=function(Z,Q,z){var K=[];return g.Mm(Z,{query:Q},function(b){if(!(z!==void 0&&K.length>=z))return K.push(b.getValue()),g.UI(b)}).then(function(){return K})}; Nd9=function(Z){return"getAllKeys"in IDBObjectStore.prototype?y6(Z.Y.getAllKeys(void 0,void 0)):d7u(Z)}; d7u=function(Z){var Q=[];return g.GCW(Z,{query:void 0},function(z){Q.push(z.cursor.primaryKey);return g.Lfu(z)}).then(function(){return Q})}; g.Rw=function(Z,Q,z){return y6(Z.Y.put(Q,z))}; g.Mm=function(Z,Q,z){Z=Z.Y.openCursor(Q.query,Q.direction);return OI(Z).then(function(K){return dr(K,z)})}; g.GCW=function(Z,Q,z){var K=Q.query;Q=Q.direction;Z="openKeyCursor"in IDBObjectStore.prototype?Z.Y.openKeyCursor(K,Q):Z.Y.openCursor(K,Q);return hwG(Z).then(function(b){return dr(b,z)})}; pc=function(Z){var Q=this;this.Y=Z;this.S=new Map;this.j=!1;this.done=new Promise(function(z,K){Q.Y.addEventListener("complete",function(){z()}); Q.Y.addEventListener("error",function(b){b.currentTarget===b.target&&K(Q.Y.error)}); Q.Y.addEventListener("abort",function(){var b=Q.Y.error;if(b)K(b);else if(!Q.j){b=g.TS;for(var q=Q.Y.objectStoreNames,r=[],D=0;D<q.length;D++){var v=q.item(D);if(v===null)throw Error("Invariant: item in DOMStringList is null");r.push(v)}b=new b("UNKNOWN_ABORT",{objectStoreNames:r.join(),dbName:Q.Y.db.name,mode:Q.Y.mode});K(b)}})})}; cwG=function(Z,Q){var z=new Promise(function(K,b){try{Q(Z).then(function(q){K(q)}).catch(b)}catch(q){b(q),Z.abort()}}); return Promise.all([z,Z.done]).then(function(K){return g.n(K).next().value})}; imf=function(Z){this.Y=Z}; a8W=function(Z,Q,z){var K=[];return g.ow(Z,{query:Q},function(b){if(!(z!==void 0&&K.length>=z))return K.push(b.getValue()),g.UI(b)}).then(function(){return K})}; g.ow=function(Z,Q,z){Z=Z.Y.openCursor(Q.query===void 0?null:Q.query,Q.direction===void 0?"next":Q.direction);return OI(Z).then(function(K){return dr(K,z)})}; Bs=function(Z,Q){this.request=Z;this.cursor=Q}; OI=function(Z){return y6(Z).then(function(Q){return Q?new Bs(Z,Q):null})}; g.UI=function(Z){Z.cursor.continue(void 0);return OI(Z.request)}; P_n=function(Z,Q,z){return new Promise(function(K,b){function q(){T||(T=new nRX(r.result,{closed:S}));return T} var r=Q!==void 0?self.indexedDB.open(Z,Q):self.indexedDB.open(Z);var D=z.blocked,v=z.blocking,Y=z.KGN,X=z.upgrade,S=z.closed,T;r.addEventListener("upgradeneeded",function(f){try{if(f.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(r.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");f.dataLoss&&f.dataLoss!=="none"&&Xc("IDB_DATA_CORRUPTED",{reason:f.dataLossMessage||"unknown reason",dbName:$k(Z)});var h=q(),m=new pc(r.transaction); X&&X(h,function(J){return f.oldVersion<J&&f.newVersion>=J},m); m.done.catch(function(J){b(J)})}catch(J){b(J)}}); r.addEventListener("success",function(){var f=r.result;v&&f.addEventListener("versionchange",function(){v(q())}); f.addEventListener("close",function(){Xc("IDB_UNEXPECTEDLY_CLOSED",{dbName:$k(Z),dbVersion:f.version});Y&&Y()}); K(q())}); r.addEventListener("error",function(){b(r.error)}); D&&r.addEventListener("blocked",function(){D()})})}; Rwr=function(Z,Q,z){z=z===void 0?{}:z;return P_n(Z,Q,z)}; Ws=function(Z,Q){Q=Q===void 0?{}:Q;var z,K,b,q;return g.C(function(r){if(r.Y==1)return g.nX(r,2),z=self.indexedDB.deleteDatabase(Z),K=Q,(b=K.blocked)&&z.addEventListener("blocked",function(){b()}),g.P(r,Tdx(z),4); if(r.Y!=2)return g.m9(r,0);q=g.I0(r);throw nc(q,Z,"",-1);})}; V6=function(Z,Q){this.name=Z;this.options=Q;this.S=!0;this.L=this.W=0}; C_D=function(Z,Q){return new g.TS("INCOMPATIBLE_DB_VERSION",{dbName:Z.name,oldVersion:Z.options.version,newVersion:Q})}; g.kk=function(Z,Q){if(!Q)throw g.cs("openWithToken",$k(Z.name));return Z.open()}; pCn=function(Z,Q){var z;return g.C(function(K){if(K.Y==1)return g.P(K,g.kk(uQ,Q),2);z=K.j;return K.return(g.Ps(z,["databases"],{xq:!0,mode:"readwrite"},function(b){var q=b.objectStore("databases");return q.get(Z.actualName).then(function(r){if(r?Z.actualName!==r.actualName||Z.publicName!==r.publicName||Z.userIdentifier!==r.userIdentifier:1)return g.Rw(q,Z).then(function(){})})}))})}; xk=function(Z,Q){var z;return g.C(function(K){if(K.Y==1)return Z?g.P(K,g.kk(uQ,Q),2):K.return();z=K.j;return K.return(z.delete("databases",Z))})}; Hm9=function(Z,Q){var z,K;return g.C(function(b){return b.Y==1?(z=[],g.P(b,g.kk(uQ,Q),2)):b.Y!=3?(K=b.j,g.P(b,g.Ps(K,["databases"],{xq:!0,mode:"readonly"},function(q){z.length=0;return g.Mm(q.objectStore("databases"),{},function(r){Z(r.getValue())&&z.push(r.getValue());return g.UI(r)})}),3)):b.return(z)})}; Mnd=function(Z,Q){return Hm9(function(z){return z.publicName===Z&&z.userIdentifier!==void 0},Q)}; U79=function(){var Z,Q,z,K;return g.C(function(b){switch(b.Y){case 1:Z=qm();if((Q=Z)==null?0:Q.hasSucceededOnce)return b.return(!0);if(th&&tN()&&!FJ()||g.Fc)return b.return(!1);try{if(z=self,!(z.indexedDB&&z.IDBIndex&&z.IDBKeyRange&&z.IDBObjectStore))return b.return(!1)}catch(q){return b.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return b.return(!1);g.nX(b,2);K={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.P(b,pCn(K,ez),4);case 4:return g.P(b,xk("yt-idb-test-do-not-use",ez),5);case 5:return b.return(!0);case 2:return g.I0(b),b.return(!1)}})}; OmW=function(){if(wr!==void 0)return wr;gr=!0;return wr=U79().then(function(Z){gr=!1;var Q;if((Q=bQ())!=null&&Q.Y){var z;Q={hasSucceededOnce:((z=qm())==null?void 0:z.hasSucceededOnce)||Z};var K;(K=bQ())==null||K.set("LAST_RESULT_ENTRY_KEY",Q,2592E3,!0)}return Z})}; EI=function(){return g.WG("ytglobal.idbToken_")||void 0}; g.lQ=function(){var Z=EI();return Z?Promise.resolve(Z):OmW().then(function(Q){(Q=Q?ez:void 0)&&g.BG("ytglobal.idbToken_",Q);return Q})}; oRX=function(Z){if(!g.ej())throw Z=new g.TS("AUTH_INVALID",{dbName:Z}),Yk(Z),Z;var Q=g.FY();return{actualName:Z+":"+Q,publicName:Z,userIdentifier:Q}}; BdX=function(Z,Q,z,K){var b,q,r,D,v,Y;return g.C(function(X){switch(X.Y){case 1:return q=(b=Error().stack)!=null?b:"",g.P(X,g.lQ(),2);case 2:r=X.j;if(!r)throw D=g.cs("openDbImpl",Z,Q),g.nA("ytidb_async_stack_killswitch")||(D.stack=D.stack+"\n"+q.substring(q.indexOf("\n")+1)),Yk(D),D;Sz(Z);v=z?{actualName:Z,publicName:Z,userIdentifier:void 0}:oRX(Z);g.nX(X,3);return g.P(X,pCn(v,r),5);case 5:return g.P(X,Rwr(v.actualName,Q,K),6);case 6:return X.return(X.j);case 3:return Y=g.I0(X),g.nX(X,7),g.P(X,xk(v.actualName, r),9);case 9:g.m9(X,8);break;case 7:g.I0(X);case 8:throw Y;}})}; Wf9=function(Z,Q,z){z=z===void 0?{}:z;return BdX(Z,Q,!1,z)}; Vnr=function(Z,Q,z){z=z===void 0?{}:z;return BdX(Z,Q,!0,z)}; kCu=function(Z,Q){Q=Q===void 0?{}:Q;var z,K;return g.C(function(b){if(b.Y==1)return g.P(b,g.lQ(),2);if(b.Y!=3){z=b.j;if(!z)return b.return();Sz(Z);K=oRX(Z);return g.P(b,Ws(K.actualName,Q),3)}return g.P(b,xk(K.actualName,z),0)})}; uBn=function(Z,Q,z){Z=Z.map(function(K){return g.C(function(b){return b.Y==1?g.P(b,Ws(K.actualName,Q),2):g.P(b,xk(K.actualName,z),0)})}); return Promise.all(Z).then(function(){})}; x7X=function(Z){var Q=Q===void 0?{}:Q;var z,K;return g.C(function(b){if(b.Y==1)return g.P(b,g.lQ(),2);if(b.Y!=3){z=b.j;if(!z)return b.return();Sz(Z);return g.P(b,Mnd(Z,z),3)}K=b.j;return g.P(b,uBn(K,Q,z),0)})}; tnf=function(Z,Q){Q=Q===void 0?{}:Q;var z;return g.C(function(K){if(K.Y==1)return g.P(K,g.lQ(),2);if(K.Y!=3){z=K.j;if(!z)return K.return();Sz(Z);return g.P(K,Ws(Z,Q),3)}return g.P(K,xk(Z,z),0)})}; sn=function(Z,Q){V6.call(this,Z,Q);this.options=Q;Sz(Z)}; Ff0=function(Z,Q){var z;return function(){z||(z=new sn(Z,Q));return z}}; g.Z4=function(Z,Q){return Ff0(Z,Q)}; QS=function(Z){return g.kk(ewX(),Z)}; wCn=function(Z,Q,z,K){var b,q,r;return g.C(function(D){switch(D.Y){case 1:return b={config:Z,hashData:Q,timestamp:K!==void 0?K:(0,g.Nm)()},g.P(D,QS(z),2);case 2:return q=D.j,g.P(D,q.clear("hotConfigStore"),3);case 3:return g.P(D,g.Cc(q,"hotConfigStore",b),4);case 4:return r=D.j,D.return(r)}})}; ER9=function(Z,Q,z,K,b){var q,r,D;return g.C(function(v){switch(v.Y){case 1:return q={config:Z,hashData:Q,configData:z,timestamp:b!==void 0?b:(0,g.Nm)()},g.P(v,QS(K),2);case 2:return r=v.j,g.P(v,r.clear("coldConfigStore"),3);case 3:return g.P(v,g.Cc(r,"coldConfigStore",q),4);case 4:return D=v.j,v.return(D)}})}; l8X=function(Z){var Q,z;return g.C(function(K){return K.Y==1?g.P(K,QS(Z),2):K.Y!=3?(Q=K.j,z=void 0,g.P(K,g.Ps(Q,["coldConfigStore"],{mode:"readwrite",xq:!0},function(b){return g.ow(b.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(q){z=q.getValue()})}),3)):K.return(z)})}; sz9=function(Z){var Q,z;return g.C(function(K){return K.Y==1?g.P(K,QS(Z),2):K.Y!=3?(Q=K.j,z=void 0,g.P(K,g.Ps(Q,["hotConfigStore"],{mode:"readwrite",xq:!0},function(b){return g.ow(b.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(q){z=q.getValue()})}),3)):K.return(z)})}; ZpX=function(){return g.C(function(Z){return g.P(Z,x7X("ytGcfConfig"),0)})}; zl=function(){g.O.call(this);this.j=[];this.Y=[];var Z=g.WG("yt.gcf.config.hotUpdateCallbacks");Z?(this.j=[].concat(g.I(Z)),this.Y=Z):(this.Y=[],g.BG("yt.gcf.config.hotUpdateCallbacks",this.Y))}; j7=function(){var Z=this;this.L=!1;this.S=this.W=0;this.K=new zl;this.zz={WXI:function(){Z.L=!0}, SjJ:function(){return Z.Y}, dzG:function(Q){Kj(Z,Q)}, dP:function(Q){Z.dP(Q)}, iVh:function(Q){bC(Z,Q)}, RH:function(){return Z.coldHashData}, Vn:function(){return Z.hotHashData}, cef:function(){return Z.j}, OjG:function(){return qQ()}, KlG:function(){return rM()}, bjr:function(){return g.WG("yt.gcf.config.coldHashData")}, z7J:function(){return g.WG("yt.gcf.config.hotHashData")}, o$J:function(){QzD(Z)}, CRG:function(){Z.dP(void 0);Af(Z);delete j7.instance}, g$F:function(Q){Z.S=Q}, d0f:function(){return Z.S}}}; zEn=function(){if(!j7.instance){var Z=new j7;j7.instance=Z}return j7.instance}; qf9=function(Z){var Q;g.C(function(z){if(z.Y==1)return g.nA("start_client_gcf")||g.nA("delete_gcf_config_db")?g.nA("start_client_gcf")?g.P(z,g.lQ(),3):z.O$(2):z.return();z.Y!=2&&((Q=z.j)&&g.ej()&&!g.nA("delete_gcf_config_db")?(Z.L=!0,QzD(Z)):(K$x(Z),bpM(Z)));return g.nA("delete_gcf_config_db")?g.P(z,ZpX(),0):z.O$(0)})}; D4=function(){var Z;return(Z=rM())!=null?Z:g.Ft("RAW_HOT_CONFIG_GROUP")}; rsG=function(Z){var Q,z,K,b,q,r;return g.C(function(D){switch(D.Y){case 1:if(Z.j)return D.return(rM());if(!Z.L)return Q=g.cs("getHotConfig IDB not initialized"),sS(Q),D.return(Promise.reject(Q));z=EI();K=g.Ft("TIME_CREATED_MS");if(!z){b=g.cs("getHotConfig token error");sS(b);D.O$(2);break}return g.P(D,sz9(z),3);case 3:if((q=D.j)&&q.timestamp>K)return Kj(Z,q.config),Z.dP(q.hashData),D.return(rM());case 2:bpM(Z);if(!(z&&Z.j&&Z.hotHashData)){D.O$(4);break}return g.P(D,wCn(Z.j,Z.hotHashData,z,K),4);case 4:return Z.j? D.return(rM()):(r=new g.tW("Config not available in ytConfig"),sS(r),D.return(Promise.reject(r)))}})}; jzG=function(Z){var Q,z,K,b,q,r;return g.C(function(D){switch(D.Y){case 1:if(Z.Y)return D.return(qQ());if(!Z.L)return Q=g.cs("getColdConfig IDB not initialized"),sS(Q),D.return(Promise.reject(Q));z=EI();K=g.Ft("TIME_CREATED_MS");if(!z){b=g.cs("getColdConfig");sS(b);D.O$(2);break}return g.P(D,l8X(z),3);case 3:if((q=D.j)&&q.timestamp>K)return bC(Z,q.config),As4(Z,q.configData),Af(Z,q.hashData),D.return(qQ());case 2:K$x(Z);if(!(z&&Z.Y&&Z.coldHashData&&Z.configData)){D.O$(4);break}return g.P(D,ER9(Z.Y, Z.coldHashData,Z.configData,z,K),4);case 4:return Z.Y?D.return(qQ()):(r=new g.tW("Config not available in ytConfig"),sS(r),D.return(Promise.reject(r)))}})}; QzD=function(Z){if(!Z.j||!Z.Y){if(!EI()){var Q=g.cs("scheduleGetConfigs");sS(Q)}Z.W||(Z.W=g.Wk.Y8(function(){return g.C(function(z){switch(z.Y){case 1:return g.nX(z,2),g.P(z,rsG(Z),4);case 4:g.m9(z,3);break;case 2:g.I0(z);case 3:return g.nX(z,5),g.P(z,jzG(Z),7);case 7:g.m9(z,6);break;case 5:g.I0(z);case 6:Z.W&&(Z.W=0),g.LX(z)}})},100))}}; Daf=function(Z,Q,z){var K,b,q;return g.C(function(r){switch(r.Y){case 1:if(!g.nA("start_client_gcf")){r.O$(0);break}z&&Kj(Z,z);Z.dP(Q);K=EI();if(!K){r.O$(3);break}if(z){r.O$(4);break}return g.P(r,sz9(K),5);case 5:b=r.j,z=(q=b)==null?void 0:q.config;case 4:return g.P(r,wCn(z,Q,K),3);case 3:if(z)for(var D=z,v=g.n(Z.K.Y),Y=v.next();!Y.done;Y=v.next())Y=Y.value,Y(D);g.LX(r)}})}; v20=function(Z,Q,z){var K,b,q,r;return g.C(function(D){if(D.Y==1){if(!g.nA("start_client_gcf"))return D.O$(0);Af(Z,Q);return(K=EI())?z?D.O$(4):g.P(D,l8X(K),5):D.O$(0)}D.Y!=4&&(b=D.j,z=(q=b)==null?void 0:q.config);if(!z)return D.O$(0);r=z.configData;return g.P(D,ER9(z,Q,r,K),0)})}; g2x=function(){var Z=zEn(),Q=(0,g.Nm)()-Z.S;if(!(Z.S!==0&&Q<g.cX("send_config_hash_timer"))){Q=g.WG("yt.gcf.config.coldConfigData");var z=g.WG("yt.gcf.config.hotHashData"),K=g.WG("yt.gcf.config.coldHashData");Q&&z&&K&&(Z.S=(0,g.Nm)());return{coldConfigData:Q,hotHashData:z,coldHashData:K}}}; K$x=function(Z){bC(Z,g.Ft("RAW_COLD_CONFIG_GROUP"));Af(Z,g.Ft("SERIALIZED_COLD_HASH_DATA"));var Q;As4(Z,(Q=Z.Y)==null?void 0:Q.configData)}; bpM=function(Z){Kj(Z,g.Ft("RAW_HOT_CONFIG_GROUP"));Z.dP(g.Ft("SERIALIZED_HOT_HASH_DATA"))}; Kj=function(Z,Q){Z.j=Q;g.BG("yt.gcf.config.hotConfigGroup",Z.j||null)}; bC=function(Z,Q){Z.Y=Q;g.BG("yt.gcf.config.coldConfigGroup",Z.Y||null)}; Af=function(Z,Q){Z.coldHashData=Q;g.BG("yt.gcf.config.coldHashData",Z.coldHashData||null)}; As4=function(Z,Q){Z.configData=Q;g.BG("yt.gcf.config.coldConfigData",Z.configData||null)}; rM=function(){return g.WG("yt.gcf.config.hotConfigGroup")}; qQ=function(){return g.WG("yt.gcf.config.coldConfigGroup")}; Yfn=function(){return"INNERTUBE_API_KEY"in x2&&"INNERTUBE_API_VERSION"in x2}; g.vS=function(){return{innertubeApiKey:g.Ft("INNERTUBE_API_KEY"),innertubeApiVersion:g.Ft("INNERTUBE_API_VERSION"),T4:g.Ft("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),sU:g.Ft("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),q3:g.Ft("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:g.Ft("INNERTUBE_CONTEXT_CLIENT_VERSION"),Xz:g.Ft("INNERTUBE_CONTEXT_HL"),yu:g.Ft("INNERTUBE_CONTEXT_GL"),AY:g.Ft("INNERTUBE_HOST_OVERRIDE")||"",Uy:!!g.Ft("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),tJF:!!g.Ft("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT", !1),appInstallData:g.Ft("SERIALIZED_CLIENT_CONFIG_DATA")}}; g.gM=function(Z){var Q={client:{hl:Z.Xz,gl:Z.yu,clientName:Z.sU,clientVersion:Z.innertubeContextClientVersion,configInfo:Z.T4}};navigator.userAgent&&(Q.client.userAgent=String(navigator.userAgent));var z=g.OG.devicePixelRatio;z&&z!=1&&(Q.client.screenDensityFloat=String(z));z=mY();z!==""&&(Q.client.experimentsToken=z);z=In();z.length>0&&(Q.request={internalExperimentFlags:z});XFX(Z,void 0,Q);Sfx(void 0,Q);$af(void 0,Q);TId(Z,void 0,Q);fPM(void 0,Q);g.nA("start_client_gcf")&&hE9(void 0,Q);g.Ft("DELEGATED_SESSION_ID")&& !g.nA("pageid_as_header_web")&&(Q.user={onBehalfOfUser:g.Ft("DELEGATED_SESSION_ID")});!g.nA("fill_delegate_context_in_gel_killswitch")&&(Z=g.Ft("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(Q.user=Object.assign({},Q.user,{serializedDelegationContext:Z}));Z=g.Ft("INNERTUBE_CONTEXT");var K;if(g.nA("enable_persistent_device_token")&&(Z==null?0:(K=Z.client)==null?0:K.rolloutToken)){var b;Q.client.rolloutToken=Z==null?void 0:(b=Z.client)==null?void 0:b.rolloutToken}K=Object;b=K.assign;Z=Q.client; z={};for(var q=g.n(Object.entries(zr(g.Ft("DEVICE","")))),r=q.next();!r.done;r=q.next()){var D=g.n(r.value);r=D.next().value;D=D.next().value;r==="cbrand"?z.deviceMake=D:r==="cmodel"?z.deviceModel=D:r==="cbr"?z.browserName=D:r==="cbrver"?z.browserVersion=D:r==="cos"?z.osName=D:r==="cosver"?z.osVersion=D:r==="cplatform"&&(z.platform=D)}Q.client=b.call(K,Z,z);return Q}; XFX=function(Z,Q,z){Z=Z.sU;if(Z==="WEB"||Z==="MWEB"||Z===1||Z===2)if(Q){z=rb(Q,GO,96)||new GO;var K=U7();K=Object.keys(L$W).indexOf(K);K=K===-1?null:K;K!==null&&hr(z,3,K);jp(Q,GO,96,z)}else z&&(z.client.mainAppWebInfo=(K=z.client.mainAppWebInfo)!=null?K:{},z.client.mainAppWebInfo.webDisplayMode=U7())}; Sfx=function(Z,Q){var z=g.WG("yt.embedded_player.embed_url");z&&(Z?(Q=rb(Z,Cp,7)||new Cp,Tk(Q,4,z),jp(Z,Cp,7,Q)):Q&&(Q.thirdParty={embedUrl:z}))}; $af=function(Z,Q){var z;if(g.nA("web_log_memory_total_kbytes")&&((z=g.OG.navigator)==null?0:z.deviceMemory)){var K;z=(K=g.OG.navigator)==null?void 0:K.deviceMemory;Z?oI(Z,95,n9(z*1E6)):Q&&(Q.client.memoryTotalKbytes=""+z*1E6)}}; TId=function(Z,Q,z){if(Z.appInstallData)if(Q){var K;z=(K=rb(Q,Na,62))!=null?K:new Na;Tk(z,6,Z.appInstallData);jp(Q,Na,62,z)}else z&&(z.client.configInfo=z.client.configInfo||{},z.client.configInfo.appInstallData=Z.appInstallData)}; fPM=function(Z,Q){var z=zwM();z&&(Z?hr(Z,61,n2G[z]):Q&&(Q.client.connectionType=z));g.nA("web_log_effective_connection_type")&&(z=bmd())&&(Z?hr(Z,94,ma4[z]):Q&&(Q.client.effectiveConnectionType=z))}; IPW=function(Z,Q,z){z=z===void 0?{}:z;var K={};g.Ft("EOM_VISITOR_DATA")?K={"X-Goog-EOM-Visitor-Id":g.Ft("EOM_VISITOR_DATA")}:K={"X-Goog-Visitor-Id":z.visitorData||g.Ft("VISITOR_DATA","")};if(Q&&Q.includes("www.youtube-nocookie.com"))return K;Q=z.Uk||g.Ft("AUTHORIZATION");Q||(Z?Q="Bearer "+g.WG("gapi.auth.getToken")().access_token:(Z=wkX().rH(YS),g.nA("pageid_as_header_web")||delete Z["X-Goog-PageId"],K=Object.assign({},K,Z)));Q&&(K.Authorization=Q);return K}; hE9=function(Z,Q){var z=g2x();if(z){var K=z.coldConfigData,b=z.coldHashData;z=z.hotHashData;if(Z){var q;Q=(q=rb(Z,Na,62))!=null?q:new Na;K=Tk(Q,1,K);Tk(K,3,b).dP(z);jp(Z,Na,62,Q)}else Q&&(Q.client.configInfo=Q.client.configInfo||{},K&&(Q.client.configInfo.coldConfigData=K),b&&(Q.client.configInfo.coldHashData=b),z&&(Q.client.configInfo.hotHashData=z))}}; X3=function(Z,Q){this.version=Z;this.args=Q}; S7=function(Z,Q){this.topic=Z;this.Y=Q}; Tl=function(Z,Q){var z=$S();z&&z.publish.call(z,Z.toString(),Z,Q)}; daX=function(Z){var Q=Jsx,z=$S();if(!z)return 0;var K=z.subscribe(Q.toString(),function(b,q){var r=g.WG("ytPubsub2Pubsub2SkipSubKey");r&&r==K||(r=function(){if(fj[K])try{if(q&&Q instanceof S7&&Q!=b)try{var D=Q.Y,v=q;if(!v.args||!v.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!D.DP){var Y=new D;D.DP=Y.version}var X=D.DP}catch(S){}if(!X||v.version!=X)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{q=Reflect.construct(D, g.QM(v.args))}catch(S){throw S.message="yt.pubsub2.Data.deserialize(): "+S.message,S;}}catch(S){throw S.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+Q.toString()+": "+S.message,S;}Z.call(window,q)}catch(S){g.Ef(S)}},ysu[Q.toString()]?g.Q6()?g.Wk.Y8(r):g.$q(r,0):r())}); fj[K]=!0;hf[Q.toString()]||(hf[Q.toString()]=[]);hf[Q.toString()].push(K);return K}; ipf=function(){var Z=NIx,Q=daX(function(z){Z.apply(void 0,arguments);GOn(Q)}); return Q}; GOn=function(Z){var Q=$S();Q&&(typeof Z==="number"&&(Z=[Z]),g.SB(Z,function(z){Q.unsubscribeByKey(z);delete fj[z]}))}; $S=function(){return g.WG("ytPubsub2Pubsub2Instance")}; If=function(Z,Q,z){z=z===void 0?{sampleRate:.1}:z;Math.random()<Math.min(.02,z.sampleRate/100)&&Tl("meta_logging_csi_event",{timerName:Z,tsY:Q})}; aPn=function(){Jf||(Jf=Iz(g.Ft("WORKER_SERIALIZATION_URL")));return Jf||void 0}; dM=function(){var Z=aPn();yS||Z===void 0||(yS=new Worker(yR(Z),void 0));return yS}; PWD=function(){return typeof Worker==="function"&&aPn()?!0:!1}; CWn=function(){if(PWD()&&!NQ){var Z=function(z){z=z.data;if(z.op==="gzippedGelBatch"){var K=Gl.get(z.key);K&&(REn(z.gzippedBatch,K.latencyPayload,K.url,K.options,K.sendFn),Gl.delete(z.key))}},Q=dM(); Q&&(Q.addEventListener("message",Z),Q.onerror=function(){Gl.clear()},NQ=!0)}}; PS=function(Z,Q,z,K,b){b=b===void 0?!1:b;var q={startTime:(0,g.Nm)(),ticks:{},infos:{}};if(iC)try{var r=pFn(Q);if(r!=null&&(r>Hpn||r<MtD))K(Z,z);else{if(g.nA("gzip_gel_with_worker")&&(g.nA("initial_gzip_use_main_thread")&&!Uad||!g.nA("initial_gzip_use_main_thread"))){NQ||CWn();var D=dM();if(D&&!b){Gl.set(af,{latencyPayload:q,url:Z,options:z,sendFn:K});D.postMessage({op:"gelBatchToGzip",serializedBatch:Q,key:af});af++;return}}var v=Irn(Opr(Q));REn(v,q,Z,z,K)}}catch(Y){sS(Y),K(Z,z)}else K(Z,z)}; REn=function(Z,Q,z,K,b){Uad=!1;var q=(0,g.Nm)();Q.ticks.gelc=q;Rf++;g.nA("disable_compression_due_to_performance_degredation")&&q-Q.startTime>=o2x&&(Cj++,g.nA("abandon_compression_after_N_slow_zips")?Rf===g.cX("compression_disable_point")&&Cj>BIx&&(iC=!1):iC=!1);W$x(Q);K.headers||(K.headers={});K.headers["Content-Encoding"]="gzip";K.postBody=Z;K.postParams=void 0;b(z,K)}; Vtr=function(Z){var Q=Q===void 0?!1:Q;var z=z===void 0?!1:z;var K=(0,g.Nm)(),b={startTime:K,ticks:{},infos:{}},q=Q?g.WG("yt.logging.gzipForFetch",!1):!0;if(iC&&q){if(!Z.body)return Z;try{var r=z?Z.body:typeof Z.body==="string"?Z.body:JSON.stringify(Z.body);q=r;if(!z&&typeof r==="string"){var D=pFn(r);if(D!=null&&(D>Hpn||D<MtD))return Z;z=Q?{level:1}:void 0;q=Irn(Opr(r),z);var v=(0,g.Nm)();b.ticks.gelc=v;if(Q){Rf++;if((g.nA("disable_compression_due_to_performance_degredation")||g.nA("disable_compression_due_to_performance_degradation_lr"))&& v-K>=o2x)if(Cj++,g.nA("abandon_compression_after_N_slow_zips")||g.nA("abandon_compression_after_N_slow_zips_lr")){Q=Cj/Rf;var Y=BIx/g.cX("compression_disable_point");Rf>0&&Rf%g.cX("compression_disable_point")===0&&Q>=Y&&(iC=!1)}else iC=!1;W$x(b)}}Z.headers=Object.assign({},{"Content-Encoding":"gzip"},Z.headers||{});Z.body=q;return Z}catch(X){return sS(X),Z}}else return Z}; pFn=function(Z){try{return(new Blob(Z.split(""))).size}catch(Q){return sS(Q),null}}; W$x=function(Z){g.nA("gel_compression_csi_killswitch")||!g.nA("log_gel_compression_latency")&&!g.nA("log_gel_compression_latency_lr")||If("gel_compression",Z,{sampleRate:.1})}; HS=function(Z){var Q=this;this.Xi=this.Y=!1;this.potentialEsfErrorCounter=this.j=0;this.handleError=function(){}; this.fF=function(){}; this.now=Date.now;this.YH=!1;this.zz={wJg:function(X){Q.iz=X}, fh7:function(){Q.mR()}, xC:function(){Q.nY()}, I5:function(X){return g.C(function(S){return g.P(S,Q.I5(X),0)})}, lS:function(X,S){return Q.lS(X,S)}, qo:function(){Q.qo()}}; var z;this.M6=(z=Z.M6)!=null?z:100;var K;this.sL=(K=Z.sL)!=null?K:1;var b;this.TZ=(b=Z.TZ)!=null?b:2592E6;var q;this.cU=(q=Z.cU)!=null?q:12E4;var r;this.Ni=(r=Z.Ni)!=null?r:5E3;var D;this.iz=(D=Z.iz)!=null?D:void 0;this.zF=!!Z.zF;var v;this.Ip=(v=Z.Ip)!=null?v:.1;var Y;this.vc=(Y=Z.vc)!=null?Y:10;Z.handleError&&(this.handleError=Z.handleError);Z.fF&&(this.fF=Z.fF);Z.YH&&(this.YH=Z.YH);Z.Xi&&(this.Xi=Z.Xi);this.XI=Z.XI;this.b1=Z.b1;this.Qr=Z.Qr;this.Tp=Z.Tp;this.sendFn=Z.sendFn;this.Si=Z.Si;this.Qi= Z.Qi;pj(this)&&(!this.XI||this.XI("networkless_logging"))&&kOr(this)}; kOr=function(Z){pj(Z)&&!Z.YH&&(Z.Y=!0,Z.zF&&Math.random()<=Z.Ip&&Z.Qr.ZC(Z.iz),Z.qo(),Z.Tp.fK()&&Z.mR(),Z.Tp.listen(Z.Si,Z.mR.bind(Z)),Z.Tp.listen(Z.Qi,Z.nY.bind(Z)))}; ttG=function(Z,Q){if(!pj(Z))throw Error("IndexedDB is not supported: updateRequestHandlers");var z=Q.options.onError?Q.options.onError:function(){}; Q.options.onError=function(b,q){var r,D,v,Y;return g.C(function(X){switch(X.Y){case 1:r=utW(q);(D=xan(q))&&Z.XI&&Z.XI("web_enable_error_204")&&Z.handleError(Error("Request failed due to compression"),Q.url,q);if(!(Z.XI&&Z.XI("nwl_consider_error_code")&&r||Z.XI&&!Z.XI("nwl_consider_error_code")&&Z.potentialEsfErrorCounter<=Z.vc)){X.O$(2);break}if(!Z.Tp.j1){X.O$(3);break}return g.P(X,Z.Tp.j1(),3);case 3:if(Z.Tp.fK()){X.O$(2);break}z(b,q);if(!Z.XI||!Z.XI("nwl_consider_error_code")||((v=Q)==null?void 0: v.id)===void 0){X.O$(6);break}return g.P(X,Z.Qr.XK(Q.id,Z.iz,!1),6);case 6:return X.return();case 2:if(Z.XI&&Z.XI("nwl_consider_error_code")&&!r&&Z.potentialEsfErrorCounter>Z.vc)return X.return();Z.potentialEsfErrorCounter++;if(((Y=Q)==null?void 0:Y.id)===void 0){X.O$(8);break}return Q.sendCount<Z.sL?g.P(X,Z.Qr.XK(Q.id,Z.iz,!0,D?!1:void 0),12):g.P(X,Z.Qr.jd(Q.id,Z.iz),8);case 12:Z.b1.Y8(function(){Z.Tp.fK()&&Z.mR()},Z.Ni); case 8:z(b,q),g.LX(X)}})}; var K=Q.options.onSuccess?Q.options.onSuccess:function(){}; Q.options.onSuccess=function(b,q){var r;return g.C(function(D){if(D.Y==1)return((r=Q)==null?void 0:r.id)===void 0?D.O$(2):g.P(D,Z.Qr.jd(Q.id,Z.iz),2);Z.Tp.CQ&&Z.XI&&Z.XI("vss_network_hint")&&Z.Tp.CQ(!0);K(b,q);g.LX(D)})}; return Q}; MQ=function(Z,Q){Z.Xc&&!Z.Tp.fK()?Z.Xc(Q):Z.handleError(Q)}; pj=function(Z){return!!Z.iz||Z.Xi}; utW=function(Z){var Q;return(Z=Z==null?void 0:(Q=Z.error)==null?void 0:Q.code)&&Z>=400&&Z<=599?!1:!0}; xan=function(Z){var Q;Z=Z==null?void 0:(Q=Z.error)==null?void 0:Q.code;return!(Z!==400&&Z!==415)}; F$u=function(){if(Un)return Un();var Z={};Un=g.Z4("LogsDatabaseV2",{yQ:(Z.LogsRequestsStore={Mw:2},Z),shared:!1,upgrade:function(Q,z,K){z(2)&&g.iQ(Q,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});z(3);z(5)&&(K=K.objectStore("LogsRequestsStore"),K.Y.indexNames.contains("newRequest")&&K.Y.deleteIndex("newRequest"),g.Hs(K,"newRequestV2",["status","interface","timestamp"]));z(7)&&aw(Q,"sapisid");z(9)&&aw(Q,"SWHealthLog")}, version:9});return Un()}; On=function(Z){return g.kk(F$u(),Z)}; wFG=function(Z,Q){var z,K,b,q;return g.C(function(r){if(r.Y==1)return z={startTime:(0,g.Nm)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.P(r,On(Q),2);if(r.Y!=3)return K=r.j,b=Object.assign({},Z,{options:JSON.parse(JSON.stringify(Z.options)),interface:g.Ft("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.P(r,g.Cc(K,"LogsRequestsStore",b),3);q=r.j;z.ticks.tc=(0,g.Nm)();eEr(z);return r.return(q)})}; E24=function(Z,Q){var z,K,b,q,r,D,v,Y;return g.C(function(X){if(X.Y==1)return z={startTime:(0,g.Nm)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.P(X,On(Q),2);if(X.Y!=3)return K=X.j,b=g.Ft("INNERTUBE_CONTEXT_CLIENT_NAME",0),q=[Z,b,0],r=[Z,b,(0,g.Nm)()],D=IDBKeyRange.bound(q,r),v="prev",g.nA("use_fifo_for_networkless")&&(v="next"),Y=void 0,g.P(X,g.Ps(K,["LogsRequestsStore"],{mode:"readwrite",xq:!0},function(S){return g.ow(S.objectStore("LogsRequestsStore").index("newRequestV2"), {query:D,direction:v},function(T){T.getValue()&&(Y=T.getValue(),Z==="NEW"&&(Y.status="QUEUED",T.update(Y)))})}),3); z.ticks.tc=(0,g.Nm)();eEr(z);return X.return(Y)})}; lP0=function(Z,Q){var z;return g.C(function(K){if(K.Y==1)return g.P(K,On(Q),2);z=K.j;return K.return(g.Ps(z,["LogsRequestsStore"],{mode:"readwrite",xq:!0},function(b){var q=b.objectStore("LogsRequestsStore");return q.get(Z).then(function(r){if(r)return r.status="QUEUED",g.Rw(q,r).then(function(){return r})})}))})}; sn0=function(Z,Q,z,K){z=z===void 0?!0:z;var b;return g.C(function(q){if(q.Y==1)return g.P(q,On(Q),2);b=q.j;return q.return(g.Ps(b,["LogsRequestsStore"],{mode:"readwrite",xq:!0},function(r){var D=r.objectStore("LogsRequestsStore");return D.get(Z).then(function(v){return v?(v.status="NEW",z&&(v.sendCount+=1),K!==void 0&&(v.options.compress=K),g.Rw(D,v).then(function(){return v})):g.Iw.resolve(void 0)})}))})}; ZAd=function(Z,Q){var z;return g.C(function(K){if(K.Y==1)return g.P(K,On(Q),2);z=K.j;return K.return(z.delete("LogsRequestsStore",Z))})}; Qnd=function(Z){var Q,z;return g.C(function(K){if(K.Y==1)return g.P(K,On(Z),2);Q=K.j;z=(0,g.Nm)()-2592E6;return g.P(K,g.Ps(Q,["LogsRequestsStore"],{mode:"readwrite",xq:!0},function(b){return g.Mm(b.objectStore("LogsRequestsStore"),{},function(q){if(q.getValue().timestamp<=z)return q.delete().then(function(){return g.UI(q)})})}),0)})}; zKn=function(){g.C(function(Z){return g.P(Z,x7X("LogsDatabaseV2"),0)})}; eEr=function(Z){g.nA("nwl_csi_killswitch")||If("networkless_performance",Z,{sampleRate:1})}; bA0=function(Z){return g.kk(KYu(),Z)}; qSG=function(Z){var Q,z;g.C(function(K){if(K.Y==1)return g.P(K,bA0(Z),2);Q=K.j;z=(0,g.Nm)()-2592E6;return g.P(K,g.Ps(Q,["SWHealthLog"],{mode:"readwrite",xq:!0},function(b){return g.Mm(b.objectStore("SWHealthLog"),{},function(q){if(q.getValue().timestamp<=z)return q.delete().then(function(){return g.UI(q)})})}),0)})}; rNu=function(Z){var Q;return g.C(function(z){if(z.Y==1)return g.P(z,bA0(Z),2);Q=z.j;return g.P(z,Q.clear("SWHealthLog"),0)})}; g.of=function(Z,Q,z,K,b,q,r){b=b===void 0?"":b;q=q===void 0?!1:q;r=r===void 0?!1:r;if(Z)if(z&&!g.kq())sS(new g.tW("Legacy referrer-scrubbed ping detected")),Z&&AN0(Z,void 0,{scrubReferrer:!0});else if(b)JN(Z,Q,"POST",b,K);else if(g.Ft("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||K||r)JN(Z,Q,"GET","",K,void 0,q,r);else{b:{try{var D=new uqX({url:Z});if(D.L?typeof D.S!=="string"||D.S.length===0?0:{version:3,zN:D.S,rT:ND(D.Y,"act=1","ri=1",xNX(D))}:D.K&&{version:4,zN:ND(D.Y,"dct=1","suid="+D.W,""),rT:ND(D.Y, "act=1","ri=1","suid="+D.W)}){var v=PK(g.CE(5,Z));var Y=!(!v||!v.endsWith("/aclk")||VU(Z,"ri")!=="1");break b}}catch(X){}Y=!1}Y?jnf(Z)?(Q&&Q(),z=!0):z=!1:z=!1;z||AN0(Z,Q)}}; jnf=function(Z,Q){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(Z,Q===void 0?"":Q))return!0}catch(z){}return!1}; AN0=function(Z,Q,z){z=z===void 0?{}:z;var K=new Image,b=""+Diu++;BS[b]=K;K.onload=K.onerror=function(){Q&&BS[b]&&Q();delete BS[b]}; z.scrubReferrer&&(K.referrerPolicy="no-referrer");K.src=Z}; vqX=function(Z){var Q;return((Q=document.featurePolicy)==null?0:Q.allowedFeatures().includes("attribution-reporting"))?Z+"&nis=6":Z+"&nis=5"}; VS=function(){WS||(WS=new Kc("yt.offline"));return WS}; gqG=function(Z){if(g.nA("offline_error_handling")){var Q=VS().get("errors",!0)||{};Q[Z.message]={name:Z.name,stack:Z.stack};Z.level&&(Q[Z.message].level=Z.level);VS().set("errors",Q,2592E3,!0)}}; kS=function(){this.Y=new Map;this.j=!1}; uC=function(){if(!kS.instance){var Z=g.WG("yt.networkRequestMonitor.instance")||new kS;g.BG("yt.networkRequestMonitor.instance",Z);kS.instance=Z}return kS.instance}; xS=function(){g.wC.call(this);var Z=this;this.j=!1;this.Y=Iwu();this.Y.listen("networkstatus-online",function(){if(Z.j&&g.nA("offline_error_handling")){var Q=VS().get("errors",!0);if(Q){for(var z in Q)if(Q[z]){var K=new g.tW(z,"sent via offline_errors");K.name=Q[z].name;K.stack=Q[z].stack;K.level=Q[z].level;g.Ef(K)}VS().set("errors",{},2592E3,!0)}}})}; YSn=function(){if(!xS.instance){var Z=g.WG("yt.networkStatusManager.instance")||new xS;g.BG("yt.networkStatusManager.instance",Z);xS.instance=Z}return xS.instance}; g.tf=function(Z){Z=Z===void 0?{}:Z;g.wC.call(this);var Q=this;this.Y=this.W=0;this.j=YSn();var z=g.WG("yt.networkStatusManager.instance.listen").bind(this.j);z&&(Z.rateLimit?(this.rateLimit=Z.rateLimit,z("networkstatus-online",function(){XXd(Q,"publicytnetworkstatus-online")}),z("networkstatus-offline",function(){XXd(Q,"publicytnetworkstatus-offline")})):(z("networkstatus-online",function(){Q.dispatchEvent("publicytnetworkstatus-online")}),z("networkstatus-offline",function(){Q.dispatchEvent("publicytnetworkstatus-offline")})))}; XXd=function(Z,Q){Z.rateLimit?Z.Y?(g.Wk.FZ(Z.W),Z.W=g.Wk.Y8(function(){Z.S!==Q&&(Z.dispatchEvent(Q),Z.S=Q,Z.Y=(0,g.Nm)())},Z.rateLimit-((0,g.Nm)()-Z.Y))):(Z.dispatchEvent(Q),Z.S=Q,Z.Y=(0,g.Nm)()):Z.dispatchEvent(Q)}; e7=function(){var Z=HS.call;F3||(F3=new g.tf({cJ7:!0,fLY:!0}));Z.call(HS,this,{Qr:{ZC:Qnd,jd:ZAd,N2:E24,w4r:lP0,XK:sn0,set:wFG},Tp:F3,handleError:function(Q,z,K){var b,q=K==null?void 0:(b=K.error)==null?void 0:b.code;if(q===400||q===415){var r;sS(new g.tW(Q.message,z,K==null?void 0:(r=K.error)==null?void 0:r.code),void 0,void 0,void 0,!0)}else g.Ef(Q)}, fF:sS,sendFn:SSd,now:g.Nm,Xc:gqG,b1:g.ZW(),Si:"publicytnetworkstatus-online",Qi:"publicytnetworkstatus-offline",zF:!0,Ip:.1,vc:g.cX("potential_esf_error_limit",10),XI:g.nA,YH:!(g.ej()&&g.pE(document.location.toString())!=="www.youtube-nocookie.com")});this.S=new g.XO;g.nA("networkless_immediately_drop_all_requests")&&zKn();tnf("LogsDatabaseV2")}; wM=function(){var Z=g.WG("yt.networklessRequestController.instance");Z||(Z=new e7,g.BG("yt.networklessRequestController.instance",Z),g.nA("networkless_logging")&&g.lQ().then(function(Q){Z.iz=Q;kOr(Z);Z.S.resolve();Z.zF&&Math.random()<=Z.Ip&&Z.iz&&qSG(Z.iz);g.nA("networkless_immediately_drop_sw_health_store")&&$iu(Z)})); return Z}; $iu=function(Z){var Q;g.C(function(z){if(!Z.iz)throw Q=g.cs("clearSWHealthLogsDb"),Q;return z.return(rNu(Z.iz).catch(function(K){Z.handleError(K)}))})}; SSd=function(Z,Q,z,K){K=K===void 0?!1:K;Q=g.nA("web_fp_via_jspb")?Object.assign({},Q):Q;g.nA("use_cfr_monitor")&&Tpn(Z,Q);if(g.nA("use_request_time_ms_header"))Q.headers&&AN(Z)&&(Q.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.Nm)())));else{var b;if((b=Q.postParams)==null?0:b.requestTimeMs)Q.postParams.requestTimeMs=Math.round((0,g.Nm)())}z&&Object.keys(Q).length===0?g.of(Z):Q.compress?Q.postBody?(typeof Q.postBody!=="string"&&(Q.postBody=JSON.stringify(Q.postBody)),PS(Z,Q.postBody, Q,g.yC,K)):PS(Z,JSON.stringify(Q.postParams),Q,dp,K):g.yC(Z,Q)}; En=function(Z,Q){g.nA("use_event_time_ms_header")&&AN(Z)&&(Q.headers||(Q.headers={}),Q.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.Nm)())));return Q}; Tpn=function(Z,Q){var z=Q.onError?Q.onError:function(){}; Q.onError=function(b,q){uC().requestComplete(Z,!1);z(b,q)}; var K=Q.onSuccess?Q.onSuccess:function(){}; Q.onSuccess=function(b,q){uC().requestComplete(Z,!0);K(b,q)}}; g.lC=function(Z){this.config_=null;Z?this.config_=Z:Yfn()&&(this.config_=g.vS())}; g.sh=function(Z,Q,z,K){function b(Y){try{if((Y===void 0?0:Y)&&K.retry&&!K.networklessOptions.bypassNetworkless)q.method="POST",K.networklessOptions.writeThenSend?wM().writeThenSend(v,q):wM().sendAndWrite(v,q);else if(K.compress){var X=!K.networklessOptions.writeThenSend;if(q.postBody){var S=q.postBody;typeof S!=="string"&&(S=JSON.stringify(q.postBody));PS(v,S,q,g.yC,X)}else PS(v,JSON.stringify(q.postParams),q,dp,X)}else g.nA("web_all_payloads_via_jspb")?g.yC(v,q):dp(v,q)}catch(T){if(T.name==="InvalidAccessError")sS(Error("An extension is blocking network request.")); else throw T;}} !g.Ft("VISITOR_DATA")&&Q!=="visitor_id"&&Math.random()<.01&&sS(new g.tW("Missing VISITOR_DATA when sending innertube request.",Q,z,K));if(!Z.isReady())throw Z=new g.tW("innertube xhrclient not ready",Q,z,K),g.Ef(Z),Z;var q={headers:K.headers||{},method:"POST",postParams:z,postBody:K.postBody,postBodyFormat:K.postBodyFormat||"JSON",onTimeout:function(){K.onTimeout()}, onFetchTimeout:K.onTimeout,onSuccess:function(Y,X){if(K.onSuccess)K.onSuccess(X)}, onFetchSuccess:function(Y){if(K.onSuccess)K.onSuccess(Y)}, onError:function(Y,X){if(K.onError)K.onError(X)}, onFetchError:function(Y){if(K.onError)K.onError(Y)}, timeout:K.timeout,withCredentials:!0,compress:K.compress};q.headers["Content-Type"]||(q.headers["Content-Type"]="application/json");z="";var r=Z.config_.AY;r&&(z=r);r=Z.config_.Uy||!1;var D=IPW(r,z,K);Object.assign(q.headers,D);q.headers.Authorization&&!z&&r&&(q.headers["x-origin"]=window.location.origin);var v=qi(""+z+("/youtubei/"+Z.config_.innertubeApiVersion+"/"+Q),{alt:"json"});g.WG("ytNetworklessLoggingInitializationOptions")&&fXW.isNwlInitialized?OmW().then(function(Y){b(Y)}):b(!1)}; g.bm=function(Z,Q,z){var K=g.Zt();if(K&&Q){var b=K.subscribe(Z,function(){function q(){QJ[b]&&Q.apply&&typeof Q.apply=="function"&&Q.apply(z||window,r)} var r=arguments;try{g.zt[Z]?q():g.$q(q,0)}catch(D){g.Ef(D)}},z); QJ[b]=!0;Kl[Z]||(Kl[Z]=[]);Kl[Z].push(b);return b}return 0}; hKf=function(Z){var Q=g.bm("LOGGED_IN",function(z){Z.apply(void 0,arguments);g.qF(Q)})}; g.qF=function(Z){var Q=g.Zt();Q&&(typeof Z==="number"?Z=[Z]:typeof Z==="string"&&(Z=[parseInt(Z,10)]),g.SB(Z,function(z){Q.unsubscribeByKey(z);delete QJ[z]}))}; g.r1=function(Z,Q){var z=g.Zt();return z?z.publish.apply(z,arguments):!1}; nqM=function(Z){var Q=g.Zt();if(Q)if(Q.clear(Z),Z)LYW(Z);else for(var z in Kl)LYW(z)}; g.Zt=function(){return g.OG.ytPubsubPubsubInstance}; LYW=function(Z){Kl[Z]&&(Z=Kl[Z],g.SB(Z,function(Q){QJ[Q]&&delete QJ[Q]}),Z.length=0)}; g.AX=function(Z,Q,z){cNn(Z,Q,z===void 0?null:z)}; cNn=function(Z,Q,z){z=z===void 0?null:z;var K=miD(Z),b=document.getElementById(K),q=b&&CRn(b),r=b&&!q;q?Q&&Q():(Q&&(q=g.bm(K,Q),Q=""+g.e4(Q),IXD[Q]=q),r||(b=JNu(Z,K,function(){CRn(b)||(Rj4(b),g.r1(K),g.$q(function(){nqM(K)},0))},z)))}; JNu=function(Z,Q,z,K){K=K===void 0?null:K;var b=g.lY("SCRIPT");b.id=Q;b.onload=function(){z&&setTimeout(z,0)}; b.onreadystatechange=function(){switch(b.readyState){case "loaded":case "complete":b.onload()}}; K&&b.setAttribute("nonce",K);g.WB(b,g.Js(Z));Z=document.getElementsByTagName("head")[0]||document.body;Z.insertBefore(b,Z.firstChild);return b}; miD=function(Z){var Q=document.createElement("a");g.Ru(Q,Z);Z=Q.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+lS(Z)}; jk=function(Z,Q){if(Z===Q)Z=!0;else if(Array.isArray(Z)&&Array.isArray(Q))Z=g.vD(Z,Q,jk);else if(g.tn(Z)&&g.tn(Q))a:if(g.Ie(Z).length!=g.Ie(Q).length)Z=!1;else{for(var z in Z)if(!jk(Z[z],Q[z])){Z=!1;break a}Z=!0}else Z=!1;return Z}; g1=function(Z){var Q=g.iu.apply(1,arguments);if(!Dt(Z)||Q.some(function(K){return!Dt(K)}))throw Error("Only objects may be merged."); Q=g.n(Q);for(var z=Q.next();!z.done;z=Q.next())v9(Z,z.value)}; v9=function(Z,Q){for(var z in Q)if(Dt(Q[z])){if(z in Z&&!Dt(Z[z]))throw Error("Cannot merge an object into a non-object.");z in Z||(Z[z]={});v9(Z[z],Q[z])}else if(Y9(Q[z])){if(z in Z&&!Y9(Z[z]))throw Error("Cannot merge an array into a non-array.");z in Z||(Z[z]=[]);yN4(Z[z],Q[z])}else Z[z]=Q[z];return Z}; yN4=function(Z,Q){Q=g.n(Q);for(var z=Q.next();!z.done;z=Q.next())z=z.value,Dt(z)?Z.push(v9({},z)):Y9(z)?Z.push(yN4([],z)):Z.push(z);return Z}; Dt=function(Z){return typeof Z==="object"&&!Array.isArray(Z)}; Y9=function(Z){return typeof Z==="object"&&Array.isArray(Z)}; fl=function(Z){g.O.call(this);this.j=Z}; hX=function(Z){fl.call(this,!0);this.Y=Z}; di4=function(Z,Q){g.O.call(this);var z=this;this.S=[];this.T=!1;this.j=0;this.L=this.K=this.W=!1;this.jJ=null;var K=(0,g.EG)(Z,Q);this.Y=new g.E6(function(){return K(z.jJ)},300); g.W(this,this.Y);this.U=this.X=Infinity}; Npx=function(Z,Q){if(!Q)return!1;for(var z=0;z<Q.length;z++){var K=Q.item(z);if(K&&Z.S.includes(K.identifier))return!0}return!1}; nl=function(Z){if(window.crypto&&window.crypto.getRandomValues)try{var Q=Array(Z),z=new Uint8Array(Z);window.crypto.getRandomValues(z);for(var K=0;K<Q.length;K++)Q[K]=z[K];return Q}catch(q){}Q=Array(Z);for(z=0;z<Z;z++){K=Date.now();for(var b=0;b<K%23;b++)Q[z]=Math.random();Q[z]=Math.floor(Math.random()*256)}if(Ll)for(z=1,K=0;K<Ll.length;K++)Q[z%Z]^=Q[(z-1)%Z]/4^Ll.charCodeAt(K),z++;return Q}; g.c9=function(Z){Z=nl(Z);for(var Q=[],z=0;z<Z.length;z++)Q.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(Z[z]&63));return Q.join("")}; g.GrD=function(){return g.my(nl(16),function(Z){return(Z&15).toString(16)}).join("")}; iAG=function(){var Z={};var Q=Z.D8h===void 0?!1:Z.D8h;Z=Z.fh===void 0?!0:Z.fh;if(g.WG("_lact",window)==null){var z=parseInt(g.Ft("LACT"),10);z=isFinite(z)?Date.now()-Math.max(z,0):-1;g.BG("_lact",z,window);g.BG("_fact",z,window);z==-1&&mH();g.mC(document,"keydown",mH);g.mC(document,"keyup",mH);g.mC(document,"mousedown",mH);g.mC(document,"mouseup",mH);Q?g.mC(window,"touchmove",function(){IY("touchmove",200)},{passive:!0}):(g.mC(window,"resize",function(){IY("resize",200)}),Z&&g.mC(window,"scroll", function(){IY("scroll",200)})); new dt(function(){IY("mouse",100)}); g.mC(document,"touchstart",mH,{passive:!0});g.mC(document,"touchend",mH,{passive:!0})}}; IY=function(Z,Q){JX[Z]||(JX[Z]=!0,g.Wk.Y8(function(){mH();JX[Z]=!1},Q))}; mH=function(){g.WG("_lact",window)==null&&(iAG(),g.WG("_lact",window));var Z=Date.now();g.BG("_lact",Z,window);g.WG("_fact",window)==-1&&g.BG("_fact",Z,window);(Z=g.WG("ytglobal.ytUtilActivityCallback_"))&&Z()}; yJ=function(){var Z=g.WG("_lact",window);return Z==null?-1:Math.max(Date.now()-Z,0)}; d1=function(Z){this.name=Z}; NF=function(Z){this.key=Z}; aX0=function(){var Z=this;this.Y=new Map;this.S=new Map;this.j=new Map;this.zz={vAp:function(){return new Map(Z.Y)}}}; Gt=function(Z,Q){Z.Y.set(Q.vV,Q);var z=Z.S.get(Q.vV);if(z)try{z.eZ(Z.resolve(Q.vV))}catch(K){z.xN(K)}}; aY=function(Z,Q,z,K){K=K===void 0?!1:K;if(z.indexOf(Q)>-1)throw Error("Deps cycle for: "+Q);if(Z.j.has(Q))return Z.j.get(Q);if(!Z.Y.has(Q)){if(K)return;throw Error("No provider for: "+Q);}K=Z.Y.get(Q);z.push(Q);if(K.Lk!==void 0)var b=K.Lk;else if(K.Gpf)b=K[im]?PVG(Z,K[im],z):[],b=K.Gpf.apply(K,g.I(b));else if(K.fp){b=K.fp;var q=b[im]?PVG(Z,b[im],z):[];b=new (Function.prototype.bind.apply(b,[null].concat(g.I(q))))}else throw Error("Could not resolve providers for: "+Q);z.pop();K.F7B||Z.j.set(Q,b); return b}; PVG=function(Z,Q,z){return Q?Q.map(function(K){return K instanceof NF?aY(Z,K.key,z,!0):aY(Z,K,z)}):[]}; RY=function(){P9||(P9=new aX0);return P9}; pl=function(){var Z,Q;return"h5vcc"in Cl&&((Z=Cl.h5vcc.traceEvent)==null?0:Z.traceBegin)&&((Q=Cl.h5vcc.traceEvent)==null?0:Q.traceEnd)?1:"performance"in Cl&&Cl.performance.mark&&Cl.performance.measure?2:0}; H9=function(Z){var Q=pl();switch(Q){case 1:Cl.h5vcc.traceEvent.traceBegin("YTLR",Z);break;case 2:Cl.performance.mark(Z+"-start");break;case 0:break;default:q_(Q,"unknown trace type")}}; RKG=function(Z){var Q=pl();switch(Q){case 1:Cl.h5vcc.traceEvent.traceEnd("YTLR",Z);break;case 2:Q=Z+"-start";var z=Z+"-end";Cl.performance.mark(z);Cl.performance.measure(Z,Q,z);break;case 0:break;default:q_(Q,"unknown trace type")}}; CVG=function(Z){var Q,z;(z=(Q=window).onerror)==null||z.call(Q,Z.message,"",0,0,Z)}; pXf=function(Z){var Q=this;var z=z===void 0?0:z;var K=K===void 0?g.ZW():K;this.S=z;this.scheduler=K;this.j=new g.XO;this.Y=Z;for(Z={BL:0};Z.BL<this.Y.length;Z={bS:void 0,BL:Z.BL},Z.BL++)Z.bS=this.Y[Z.BL],z=function(b){return function(){b.bS.Ri();Q.Y[b.BL].oI=!0;Q.Y.every(function(q){return q.oI===!0})&&Q.j.resolve()}}(Z),K=E7(z,MF(this,Z.bS)),this.Y[Z.BL]=Object.assign({},Z.bS,{Ri:z, jobId:K})}; HAX=function(Z){var Q=Array.from(Z.Y.keys()).sort(function(K,b){return MF(Z,Z.Y[b])-MF(Z,Z.Y[K])}); Q=g.n(Q);for(var z=Q.next();!z.done;z=Q.next())z=Z.Y[z.value],z.jobId===void 0||z.oI||(Z.scheduler.FZ(z.jobId),E7(z.Ri,10))}; MF=function(Z,Q){var z;return(z=Q.priority)!=null?z:Z.S}; Oh=function(Z){this.state=Z;this.plugins=[];this.S=void 0;this.W={};Uh&&H9(this.state)}; MLn=function(Z,Q){var z=Q.filter(function(b){return oY(Z,b)===10}),K=Q.filter(function(b){return oY(Z,b)!==10}); return Z.W.zwY?function(){var b=g.iu.apply(0,arguments);return g.C(function(q){if(q.Y==1)return g.P(q,Z.O0G.apply(Z,[z].concat(g.I(b))),2);Z.WC.apply(Z,[K].concat(g.I(b)));g.LX(q)})}:function(){var b=g.iu.apply(0,arguments); Z.b0g.apply(Z,[z].concat(g.I(b)));Z.WC.apply(Z,[K].concat(g.I(b)))}}; oY=function(Z,Q){var z,K;return(K=(z=Z.S)!=null?z:Q.priority)!=null?K:0}; B9=function(Z){Uh&&Z&&H9(Z)}; W9=function(Z){Uh&&Z&&RKG(Z)}; OAx=function(Z,Q,z){UiG&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+Z.constructor.name+"] '"+Z.state+"' to '"+Q+"'"),console.log("with message: ",z),console.groupEnd())}; VJ=function(Z){if(g.nA("web_lifecycle_error_handling_killswitch"))return Z();try{return Z()}catch(Q){CVG(Q)}}; k9=function(Z){Oh.call(this,Z===void 0?"none":Z);this.Y=null;this.S=10;this.transitions=[{from:"none",uN:"application_navigating",action:this.L},{from:"application_navigating",uN:"none",action:this.K},{from:"application_navigating",uN:"application_navigating",action:function(){}}, {from:"none",uN:"none",action:function(){}}]}; oqD=function(){um||(um=new k9);return um}; x9=function(){var Z=this;this.store={};this.Y=0;this.j={};this.zz={R7J:function(){return Z.Y}}}; ek=function(Z,Q){var z=tX(Q);if(Z.j[z])return Z.j[z];var K=Object.keys(Z.store)||[];if(K.length<=1&&tX(Q)===K[0])return K;for(var b=[],q=0;q<K.length;q++){var r=K[q].split("/");if(Fh(Q.auth,r[0])){var D=Q.isJspb;Fh(D===void 0?"undefined":D?"true":"false",r[1])&&Fh(Q.cttAuthInfo,r[2])&&(D=Q.tier,D=D===void 0?"undefined":JSON.stringify(D),Fh(D,r[3])&&b.push(K[q]))}}return Z.j[z]=b}; Fh=function(Z,Q){return Z===void 0||Z==="undefined"?!0:Z===Q}; tX=function(Z){return[Z.auth===void 0?"undefined":Z.auth,Z.isJspb===void 0?"undefined":Z.isJspb,Z.cttAuthInfo===void 0?"undefined":Z.cttAuthInfo,Z.tier===void 0?"undefined":Z.tier].join("/")}; w1=function(){this.W=this.Y=this.j=0;this.S=!1}; Eh=function(){var Z=g.WG("yt.logging.ims");Z||(Z=new x9,g.BG("yt.logging.ims",Z));return Z}; VLM=function(){if(PWD()&&!BpX){var Z=function(z){z=z.data;if(z.op==="serializedGelBatch"){var K=lm.get(z.key);K&&(WYd(z.serializedBatch,K.client,K.resolve,K.networklessOptions,K.isIsolated,K.useVSSEndpoint,K.dangerousLogToVisitorSession,K.requestsOutstanding),lm.delete(z.key))}},Q=dM(); Q&&(Q.addEventListener("message",Z),Q.onerror=function(){lm.clear()}); BpX=!0}}; eKM=function(Z,Q){if(Z.endpoint==="log_event"){Zx(Z);var z=Q4(Z),K=krG(Z.payload)||"",b=uJf(K),q=200;if(b){if(b.enabled===!1&&!g.nA("web_payload_policy_disabled_killswitch"))return;q=xiM(b.tier);if(q===400){tLu(Z,Q);return}}z1[z]=!0;z={cttAuthInfo:z,isJspb:!1,tier:q};Eh().storePayload(z,Z.payload);FY0(Q,!1,z,KO(K))}}; Eqd=function(Z,Q,z){if(Q.endpoint==="log_event"){Zx(void 0,Q);var K=Q4(Q,!0),b=uJf(Z),q=200;if(b){if(b.enabled===!1&&!g.nA("web_payload_policy_disabled_killswitch"))return;q=xiM(b.tier);if(q===400){wXM(Z,Q,z);return}}z1[K]=!0;K={cttAuthInfo:K,isJspb:!0,tier:q};Eh().storePayload(K,ip(Q.payload));FY0(z,!0,K,KO(Z))}}; FY0=function(Z,Q,z,K){function b(){bO({writeThenSend:!0},Q,z.tier)} Q=Q===void 0?!1:Q;K=K===void 0?!1:K;Z&&(qU=new Z);Z=g.cX("tvhtml5_logging_max_batch_ads_fork")||g.cX("tvhtml5_logging_max_batch")||g.cX("web_logging_max_batch")||100;var q=(0,g.Nm)(),r=r9(Q,z.tier),D=r.W;K&&(r.S=!0);K=0;z&&(K=Eh().getSequenceCount(z));K>=1E3?b():K>=Z?Ay||(Ay=jD(function(){b();Ay=void 0},0)):q-D>=10&&(lXf(Q,z.tier),r.W=q)}; tLu=function(Z,Q){if(Z.endpoint==="log_event"){g.nA("more_accurate_gel_parser")&&Eh().storePayload({isJspb:!1},Z.payload);Zx(Z);var z=Q4(Z),K=new Map;K.set(z,[Z.payload]);var b=krG(Z.payload)||"";Q&&(qU=new Q);return new g.XA(function(q,r){qU&&qU.isReady()?s7f(K,qU,q,r,{bypassNetworkless:!0},!0,KO(b)):q()})}}; wXM=function(Z,Q,z){if(Q.endpoint==="log_event"){Zx(void 0,Q);var K=Q4(Q,!0),b=new Map;b.set(K,[ip(Q.payload)]);z&&(qU=new z);return new g.XA(function(q){qU&&qU.isReady()?ZSn(b,qU,q,{bypassNetworkless:!0},!0,KO(Z)):q()})}}; Q4=function(Z,Q){var z="";if(Z.dangerousLogToVisitorSession)z="visitorOnlyApprovedKey";else if(Z.cttAuthInfo){if(Q===void 0?0:Q){Q=Z.cttAuthInfo.token;z=Z.cttAuthInfo;var K=new uW;z.videoId?K.setVideoId(z.videoId):z.playlistId&&Zc(K,2,Dx,mE(z.playlistId));vc[Q]=K}else Q=Z.cttAuthInfo,z={},Q.videoId?z.videoId=Q.videoId:Q.playlistId&&(z.playlistId=Q.playlistId),g9[Z.cttAuthInfo.token]=z;z=Z.cttAuthInfo.token}return z}; bO=function(Z,Q,z){Z=Z===void 0?{}:Z;Q=Q===void 0?!1:Q;new g.XA(function(K,b){var q=r9(Q,z),r=q.S;q.S=!1;YY(q.j);YY(q.Y);q.Y=0;qU&&qU.isReady()?z===void 0&&g.nA("enable_web_tiered_gel")?Q7W(K,b,Z,Q,300,r):Q7W(K,b,Z,Q,z,r):(lXf(Q,z),K())})}; Q7W=function(Z,Q,z,K,b,q){var r=qU;z=z===void 0?{}:z;K=K===void 0?!1:K;b=b===void 0?200:b;q=q===void 0?!1:q;var D=new Map,v=new Map,Y={isJspb:K,cttAuthInfo:void 0,tier:b},X={isJspb:K,cttAuthInfo:void 0};if(K){Q=g.n(Object.keys(z1));for(b=Q.next();!b.done;b=Q.next())b=b.value,v=g.nA("enable_web_tiered_gel")?Eh().smartExtractMatchingEntries({keys:[Y,X],sizeLimit:1E3}):Eh().extractMatchingEntries({isJspb:!0,cttAuthInfo:b}),v.length>0&&D.set(b,v),(g.nA("web_fp_via_jspb_and_json")&&z.writeThenSend||!g.nA("web_fp_via_jspb_and_json"))&& delete z1[b];ZSn(D,r,Z,z,!1,q)}else{D=g.n(Object.keys(z1));for(Y=D.next();!Y.done;Y=D.next())Y=Y.value,X=g.nA("enable_web_tiered_gel")?Eh().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:Y,tier:b},{isJspb:!1,cttAuthInfo:Y}],sizeLimit:1E3}):Eh().extractMatchingEntries({isJspb:!1,cttAuthInfo:Y}),X.length>0&&v.set(Y,X),(g.nA("web_fp_via_jspb_and_json")&&z.writeThenSend||!g.nA("web_fp_via_jspb_and_json"))&&delete z1[Y];s7f(v,r,Z,Q,z,!1,q)}}; lXf=function(Z,Q){function z(){bO({writeThenSend:!0},Z,Q)} Z=Z===void 0?!1:Z;Q=Q===void 0?200:Q;var K=r9(Z,Q),b=K===zgW||K===KCD?5E3:bS9;g.nA("web_gel_timeout_cap")&&!K.Y&&(b=jD(function(){z()},b),K.Y=b); YY(K.j);b=g.Ft("LOGGING_BATCH_TIMEOUT",g.cX("web_gel_debounce_ms",1E4));g.nA("shorten_initial_gel_batch_timeout")&&Xs&&(b=q7n);b=jD(function(){g.cX("gel_min_batch_size")>0?Eh().getSequenceCount({cttAuthInfo:void 0,isJspb:Z,tier:Q})>=rW9&&z():z()},b); K.j=b}; s7f=function(Z,Q,z,K,b,q,r){b=b===void 0?{}:b;var D=Math.round((0,g.Nm)()),v=Z.size,Y=AWd(r);Z=g.n(Z);var X=Z.next();for(r={};!X.done;r={qP:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,C_:void 0,Rz:void 0},X=Z.next()){var S=g.n(X.value);X=S.next().value;S=S.next().value;r.batchRequest=g.Pa({context:g.gM(Q.config_||g.vS())});if(!g.xW(S)&&!g.nA("throw_err_when_logevent_malformed_killswitch")){K();break}r.batchRequest.events=S;(S=g9[X])&&j7x(r.batchRequest,X,S);delete g9[X];r.dangerousLogToVisitorSession= X==="visitorOnlyApprovedKey";DWn(r.batchRequest,D,r.dangerousLogToVisitorSession);vTG(b);r.C_=function(T){g.nA("start_client_gcf")&&g.Wk.Y8(function(){return g.C(function(f){return g.P(f,gT0(T),0)})}); v--;v||z()}; r.qP=0;r.Rz=function(T){return function(){T.qP++;if(b.bypassNetworkless&&T.qP===1)try{g.sh(Q,Y,T.batchRequest,SD({writeThenSend:!0},T.dangerousLogToVisitorSession,T.C_,T.Rz,q)),Xs=!1}catch(f){g.Ef(f),K()}v--;v||z()}}(r); try{g.sh(Q,Y,r.batchRequest,SD(b,r.dangerousLogToVisitorSession,r.C_,r.Rz,q)),Xs=!1}catch(T){g.Ef(T),K()}}}; ZSn=function(Z,Q,z,K,b,q){K=K===void 0?{}:K;var r=Math.round((0,g.Nm)()),D={value:Z.size},v=new Map([].concat(g.I(Z)));v=g.n(v);for(var Y=v.next();!Y.done;Y=v.next()){var X=g.n(Y.value).next().value,S=Z.get(X);Y=new Ohf;var T=Q.config_||g.vS(),f=new Ma,h=new iW;Tk(h,1,T.Xz);Tk(h,2,T.yu);hr(h,16,T.q3);Tk(h,17,T.innertubeContextClientVersion);if(T.T4){var m=T.T4,J=new Na;m.coldConfigData&&Tk(J,1,m.coldConfigData);m.appInstallData&&Tk(J,6,m.appInstallData);m.coldHashData&&Tk(J,3,m.coldHashData);m.hotHashData&& J.dP(m.hotHashData);jp(h,Na,62,J)}(m=g.OG.devicePixelRatio)&&m!=1&&oI(h,65,rD(m));m=mY();m!==""&&Tk(h,54,m);m=In();if(m.length>0){J=new Rz;for(var d=0;d<m.length;d++){var G=new az;Tk(G,1,m[d].key);Zc(G,2,Y7r,mE(m[d].value));v_(J,15,az,G)}jp(f,Rz,5,J)}XFX(T,h);Sfx(f);$af(h);TId(T,h);fPM(h);g.nA("start_client_gcf")&&hE9(h);g.Ft("DELEGATED_SESSION_ID")&&!g.nA("pageid_as_header_web")&&(T=new HF,Tk(T,3,g.Ft("DELEGATED_SESSION_ID")));!g.nA("fill_delegate_context_in_gel_killswitch")&&(m=g.Ft("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&& (J=rb(f,HF,3)||new HF,T=f,m=Tk(J,18,m),jp(T,HF,3,m));T=h;m=g.n(Object.entries(zr(g.Ft("DEVICE",""))));for(J=m.next();!J.done;J=m.next())d=g.n(J.value),J=d.next().value,d=d.next().value,J==="cbrand"?Tk(T,12,d):J==="cmodel"?Tk(T,13,d):J==="cbr"?Tk(T,87,d):J==="cbrver"?Tk(T,88,d):J==="cos"?Tk(T,18,d):J==="cosver"?Tk(T,19,d):J==="cplatform"&&hr(T,42,Eln(d));f.pH(h);jp(Y,Ma,1,f);if(h=vc[X])a:{if(h.lY())f=1;else if(h.getPlaylistId())f=2;else break a;jp(Y,uW,4,h);h=rb(Y,Ma,1)||new Ma;T=rb(h,HF,3)||new HF; m=new pp;m.setToken(X);hr(m,1,f);v_(T,12,pp,m);jp(h,HF,3,T)}delete vc[X];X=X==="visitorOnlyApprovedKey";$Y()||$_(Y,2,r);!X&&(f=g.Ft("EVENT_ID"))&&(h=X6M(),T=new k2,Tk(T,1,f),$_(T,2,h),jp(Y,k2,5,T));vTG(K);if(g.nA("jspb_serialize_with_worker")&&(f=dM())&&K.writeThenSend){lm.set(T1,{client:Q,resolve:z,networklessOptions:K,isIsolated:b,useVSSEndpoint:q,dangerousLogToVisitorSession:X,requestsOutstanding:D});f.postMessage({op:"gelBatchToSerialize",batchRequest:ip(Y),clientEvents:S,key:T1});T1++;break}if(S){f= [];for(h=0;h<S.length;h++)try{f.push(new VN(S[h]))}catch(R){g.Ef(new g.tW("Transport failed to deserialize "+String(S[h])))}S=f}else S=[];S=g.n(S);for(f=S.next();!f.done;f=S.next())v_(Y,3,VN,f.value);S={startTime:(0,g.Nm)(),ticks:{},infos:{}};Y=Y.pZ();S.ticks.geljspc=(0,g.Nm)();g.nA("log_jspb_serialize_latency")&&If("gel_jspb_serialize",S,{sampleRate:.1});WYd(Y,Q,z,K,b,q,X,D)}}; WYd=function(Z,Q,z,K,b,q,r,D){K=K===void 0?{}:K;D=D===void 0?{value:0}:D;q=AWd(q);K=SD(K,r,function(v){g.nA("start_client_gcf")&&g.Wk.Y8(function(){return g.C(function(Y){return g.P(Y,gT0(v),0)})}); D.value--;D.value||z()},function(){D.value--; D.value||z()},b); K.headers["Content-Type"]="application/json+protobuf";K.postBodyFormat="JSPB";K.postBody=Z;g.sh(Q,q,"",K);Xs=!1}; vTG=function(Z){g.nA("always_send_and_write")&&(Z.writeThenSend=!1)}; SD=function(Z,Q,z,K,b){Z={retry:!0,onSuccess:z,onError:K,networklessOptions:Z,dangerousLogToVisitorSession:Q,Jlu:!!b,headers:{},postBodyFormat:"",postBody:"",compress:g.nA("compress_gel")||g.nA("compress_gel_lr")};$Y()&&(Z.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.Nm)())));return Z}; DWn=function(Z,Q,z){$Y()||(Z.requestTimeMs=String(Q));g.nA("unsplit_gel_payloads_in_logs")&&(Z.unsplitGelPayloadsInLogs=!0);!z&&(Q=g.Ft("EVENT_ID"))&&(z=X6M(),Z.serializedClientEventId={serializedEventId:Q,clientCounter:String(z)})}; X6M=function(){var Z=g.Ft("BATCH_CLIENT_COUNTER")||0;Z||(Z=Math.floor(Math.random()*65535/2));Z++;Z>65535&&(Z=1);ts("BATCH_CLIENT_COUNTER",Z);return Z}; j7x=function(Z,Q,z){if(z.videoId)var K="VIDEO";else if(z.playlistId)K="PLAYLIST";else return;Z.credentialTransferTokenTargetId=z;Z.context=Z.context||{};Z.context.user=Z.context.user||{};Z.context.user.credentialTransferTokens=[{token:Q,scope:K}]}; Zx=function(Z,Q){if(!g.WG("yt.logging.transport.enableScrapingForTest")){var z=LA("il_payload_scraping");if((z!==void 0?String(z):"")==="enable_il_payload_scraping")fO=[],g.BG("yt.logging.transport.enableScrapingForTest",!0),g.BG("yt.logging.transport.scrapedPayloadsForTesting",fO),g.BG("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.BG("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.BG("yt.logging.transport.scrapeClientEvent",!0);else return}z=g.WG("yt.logging.transport.scrapedPayloadsForTesting");var K=g.WG("yt.logging.transport.payloadToScrape");Q&&(Q=Q.payload,(Q=g.WG("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(Q)())&&z.push(Q));Q=g.WG("yt.logging.transport.scrapeClientEvent");if(K&&K.length>=1)for(var b=0;b<K.length;b++)if(Z&&Z.payload[K[b]])if(Q)z.push(Z.payload);else{var q=void 0;z.push(((q=Z)==null?void 0:q.payload)[K[b]])}g.BG("yt.logging.transport.scrapedPayloadsForTesting", z)}; $Y=function(){return g.nA("use_request_time_ms_header")||g.nA("lr_use_request_time_ms_header")}; jD=function(Z,Q){return g.nA("transport_use_scheduler")===!1?g.$q(Z,Q):g.nA("logging_avoid_blocking_during_navigation")||g.nA("lr_logging_avoid_blocking_during_navigation")?g.lb(0,function(){if(oqD().currentState==="none")Z();else{var z={};oqD().install((z.none={callback:Z},z))}},Q):E7(Z,0,Q)}; YY=function(Z){g.nA("transport_use_scheduler")?g.Wk.FZ(Z):g.fA(Z)}; gT0=function(Z){var Q,z,K,b,q,r,D,v,Y,X;return g.C(function(S){return S.Y==1?(K=(Q=Z)==null?void 0:(z=Q.responseContext)==null?void 0:z.globalConfigGroup,b=g.V(K,S7x),r=(q=K)==null?void 0:q.hotHashData,D=g.V(K,$WD),Y=(v=K)==null?void 0:v.coldHashData,(X=RY().resolve(new NF(j7)))?r?b?g.P(S,Daf(X,r,b),2):g.P(S,Daf(X,r),2):S.O$(2):S.return()):Y?D?g.P(S,v20(X,Y,D),0):g.P(S,v20(X,Y),0):S.O$(0)})}; r9=function(Z,Q){Q=Q===void 0?200:Q;return Z?Q===300?zgW:Ttn:Q===300?KCD:fTX}; uJf=function(Z){if(g.nA("enable_web_tiered_gel")){Z=hg9[Z||""];var Q,z,K,b=RY().resolve(new NF(j7))==null?void 0:(Q=D4())==null?void 0:(z=Q.loggingHotConfig)==null?void 0:(K=z.eventLoggingConfig)==null?void 0:K.payloadPolicies;if(b)for(Q=0;Q<b.length;Q++)if(b[Q].payloadNumber===Z)return b[Q]}}; krG=function(Z){Z=Object.keys(Z);Z=g.n(Z);for(var Q=Z.next();!Q.done;Q=Z.next())if(Q=Q.value,hg9[Q])return Q}; xiM=function(Z){switch(Z){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}}; KO=function(Z){return Z==="gelDebuggingEvent"}; AWd=function(Z){return(Z===void 0?0:Z)&&g.nA("vss_through_gel_video_stats")?"video_stats":"log_event"}; LO=function(Z,Q,z,K){K=K===void 0?{}:K;var b={},q=Math.round(K.timestamp||(0,g.Nm)());b.eventTimeMs=q<Number.MAX_SAFE_INTEGER?q:0;b[Z]=Q;Z=yJ();b.context={lastActivityMs:String(K.timestamp||!isFinite(Z)?-1:Z)};K.sequenceGroup&&!g.nA("web_gel_sequence_info_killswitch")&&(Z=b.context,Q=K.sequenceGroup,Q={index:LCG(Q),groupKey:Q},Z.sequence=Q,K.endOfSequence&&delete hy[K.sequenceGroup]);(K.sendIsolatedPayload?tLu:eKM)({endpoint:"log_event",payload:b,cttAuthInfo:K.cttAuthInfo,dangerousLogToVisitorSession:K.dangerousLogToVisitorSession}, z)}; LCG=function(Z){hy[Z]=Z in hy?hy[Z]+1:0;return hy[Z]}; g.DW=function(Z,Q,z){z=z===void 0?{}:z;var K=g.lC;g.Ft("ytLoggingEventsDefaultDisabled",!1)&&g.lC===g.lC&&(K=null);LO(Z,Q,K,z)}; nO=function(Z){this.Y=Z}; g.cc=function(Z){return new nO({trackingParams:Z})}; cWx=function(Z){var Q=nTG++;return new nO({veType:Z,veCounter:Q,elementIndex:void 0,dataElement:void 0,youtubeData:void 0,jspbYoutubeData:void 0,loggingDirectives:void 0})}; mWx=function(Z){return g.Ft("client-screen-nonce-store",{})[Z===void 0?0:Z]}; ITX=function(Z,Q){Q=Q===void 0?0:Q;var z=g.Ft("client-screen-nonce-store");z||(z={},ts("client-screen-nonce-store",z));z[Q]=Z}; mZ=function(Z){Z=Z===void 0?0:Z;return Z===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+Z}; JWr=function(Z){return g.Ft(mZ(Z===void 0?0:Z))}; g.Im=function(Z){return(Z=JWr(Z===void 0?0:Z))?new nO({veType:Z,youtubeData:void 0,jspbYoutubeData:void 0}):null}; yWM=function(){var Z=g.Ft("csn-to-ctt-auth-info");Z||(Z={},ts("csn-to-ctt-auth-info",Z));return Z}; dWM=function(){return Object.values(g.Ft("client-screen-nonce-store",{})).filter(function(Z){return Z!==void 0})}; g.Jy=function(Z){Z=mWx(Z===void 0?0:Z);if(!Z&&!g.Ft("USE_CSN_FALLBACK",!0))return null;Z||(Z="UNDEFINED_CSN");return Z?Z:null}; GMX=function(Z){for(var Q=g.n(Object.values(NtM)),z=Q.next();!z.done;z=Q.next())if(g.Jy(z.value)===Z)return!0;return!1}; iSn=function(Z,Q,z){var K=yWM();(z=g.Jy(z))&&delete K[z];Q&&(K[Z]=Q)}; y4=function(Z){return yWM()[Z]}; Pb4=function(Z,Q,z,K){z=z===void 0?0:z;if(Z!==mWx(z)||Q!==g.Ft(mZ(z)))if(iSn(Z,K,z),ITX(Z,z),ts(mZ(z),Q),Q=function(){setTimeout(function(){Z&&g.DW("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:aTW,clientScreenNonce:Z})},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(Q)}catch(b){Q()}else Q()}; d9=function(Z,Q){var z=z===void 0?!0:z;var K=g.Ft("VALID_SESSION_TEMPDATA_DOMAINS",[]),b=g.pE(window.location.href);b&&K.push(b);b=g.pE(Z);if(g.wX(K,b)||!b&&mw(Z,"/"))if(K=document.createElement("a"),g.Ru(K,Z),Z=K.href)if(Z=HK(Z),Z=hT9(Z))if(z&&!Q.csn&&(Q.itct||Q.ved)&&(Q=Object.assign({csn:g.Jy()},Q)),q){var q=parseInt(q,10);isFinite(q)&&q>0&&Rg4(Z,Q,q)}else Rg4(Z,Q)}; Rg4=function(Z,Q,z){Z=CbX(Z);Q=Q?g.ol(Q):"";z=z||5;Qs()&&g.HX(Z,Q,z)}; CbX=function(Z){for(var Q=g.n(p6M),z=Q.next();!z.done;z=Q.next())Z=k7(Z,z.value);return"ST-"+lS(Z).toString(36)}; HS0=function(Z){if(Z.name==="JavaException")return!0;Z=Z.stack;return Z.includes("chrome://")||Z.includes("chrome-extension://")||Z.includes("moz-extension://")}; MjG=function(){this.Q_=[];this.MD=[]}; G1=function(){if(!NU){var Z=NU=new MjG;Z.MD.length=0;Z.Q_.length=0;UWd(Z,OSG)}return NU}; UWd=function(Z,Q){Q.MD&&Z.MD.push.apply(Z.MD,Q.MD);Q.Q_&&Z.Q_.push.apply(Z.Q_,Q.Q_)}; oTx=function(Z){function Q(){return Z.charCodeAt(K++)} var z=Z.length,K=0;do{var b=iO(Q);if(b===Infinity)break;var q=b>>3;switch(b&7){case 0:b=iO(Q);if(q===2)return b;break;case 1:if(q===2)return;K+=8;break;case 2:b=iO(Q);if(q===2)return Z.substr(K,b);K+=b;break;case 5:if(q===2)return;K+=4;break;default:return}}while(K<z)}; iO=function(Z){var Q=Z(),z=Q&127;if(Q<128)return z;Q=Z();z|=(Q&127)<<7;if(Q<128)return z;Q=Z();z|=(Q&127)<<14;if(Q<128)return z;Q=Z();return Q<128?z|(Q&127)<<21:Infinity}; Btr=function(Z,Q,z,K){if(Z)if(Array.isArray(Z)){var b=K;for(K=0;K<Z.length&&!(Z[K]&&(b+=am(K,Z[K],Q,z),b>500));K++);K=b}else if(typeof Z==="object")for(b in Z){if(Z[b]){var q=b;var r=Z[b],D=Q,v=z;q=typeof r!=="string"||q!=="clickTrackingParams"&&q!=="trackingParams"?0:(r=oTx(atob(r.replace(/-/g,"+").replace(/_/g,"/"))))?am(q+".ve",r,D,v):0;K+=q;K+=am(b,Z[b],Q,z);if(K>500)break}}else z[Q]=Pc(Z),K+=z[Q].length;else z[Q]=Pc(Z),K+=z[Q].length;return K}; am=function(Z,Q,z,K){z+="."+Z;Z=Pc(Q);K[z]=Z;return z.length+Z.length}; Pc=function(Z){try{return(typeof Z==="string"?Z:String(JSON.stringify(Z))).substr(0,500)}catch(Q){return"unable to serialize "+typeof Z+" ("+Q.message+")"}}; jz=function(Z){g.Rm(Z)}; g.CO=function(Z){g.Rm(Z,"WARNING")}; g.Rm=function(Z,Q){var z=z===void 0?{}:z;z.name=g.Ft("INNERTUBE_CONTEXT_CLIENT_NAME",1);z.version=g.Ft("INNERTUBE_CONTEXT_CLIENT_VERSION");Q=Q===void 0?"ERROR":Q;var K=!1;Q=Q===void 0?"ERROR":Q;K=K===void 0?!1:K;if(Z){Z.hasOwnProperty("level")&&Z.level&&(Q=Z.level);if(g.nA("console_log_js_exceptions")){var b=[];b.push("Name: "+Z.name);b.push("Message: "+Z.message);Z.hasOwnProperty("params")&&b.push("Error Params: "+JSON.stringify(Z.params));Z.hasOwnProperty("args")&&b.push("Error args: "+JSON.stringify(Z.args)); b.push("File name: "+Z.fileName);b.push("Stacktrace: "+Z.stack);window.console.log(b.join("\n"),Z)}if(!(WCD>=5)){b=VjX;var q=J6f(Z),r=q.message||"Unknown Error",D=q.name||"UnknownError",v=q.stack||Z.j||"Not available";if(v.startsWith(D+": "+r)){var Y=v.split("\n");Y.shift();v=Y.join("\n")}Y=q.lineNumber||"Not available";q=q.fileName||"Not available";var X=0;if(Z.hasOwnProperty("args")&&Z.args&&Z.args.length)for(var S=0;S<Z.args.length&&!(X=Btr(Z.args[S],"params."+S,z,X),X>=500);S++);else if(Z.hasOwnProperty("params")&& Z.params){var T=Z.params;if(typeof Z.params==="object")for(S in T){if(T[S]){var f="params."+S,h=Pc(T[S]);z[f]=h;X+=f.length+h.length;if(X>500)break}}else z.params=Pc(T)}if(b.length)for(S=0;S<b.length&&!(X=Btr(b[S],"params.context."+S,z,X),X>=500);S++);navigator.vendor&&!z.hasOwnProperty("vendor")&&(z["device.vendor"]=navigator.vendor);z={message:r,name:D,lineNumber:Y,fileName:q,stack:v,params:z,sampleWeight:1};b=Number(Z.columnNumber);isNaN(b)||(z.lineNumber=z.lineNumber+":"+b);if(Z.level==="IGNORED")Z= 0;else a:{Z=G1();b=g.n(Z.MD);for(r=b.next();!r.done;r=b.next())if(r=r.value,z.message&&z.message.match(r.Z4)){Z=r.weight;break a}Z=g.n(Z.Q_);for(b=Z.next();!b.done;b=Z.next())if(b=b.value,b.callback(z)){Z=b.weight;break a}Z=1}z.sampleWeight=Z;Z=g.n(kMM);for(b=Z.next();!b.done;b=Z.next())if(b=b.value,b.OF[z.name])for(D=g.n(b.OF[z.name]),r=D.next();!r.done;r=D.next())if(S=r.value,r=z.message.match(S.UZ)){z.params["params.error.original"]=r[0];D=S.groups;S={};for(Y=0;Y<D.length;Y++)S[D[Y]]=r[Y+1],z.params["params.error."+ D[Y]]=r[Y+1];z.message=b.DX(S);break}z.params||(z.params={});Z=G1();z.params["params.errorServiceSignature"]="msg="+Z.MD.length+"&cb="+Z.Q_.length;z.params["params.serviceWorker"]="false";g.OG.document&&g.OG.document.querySelectorAll&&(z.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new px(Cx,"sample")).constructor!==px&&(z.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(z);if(z.sampleWeight!==0&&!uYu.has(z.message)){if(K&& g.nA("web_enable_error_204"))xWr(Q===void 0?"ERROR":Q,z);else{Q=Q===void 0?"ERROR":Q;Q==="ERROR"?(pO.publish("handleError",z),g.nA("record_app_crashed_web")&&tj4===0&&z.sampleWeight===1&&(tj4++,K={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},g.nA("report_client_error_with_app_crash_ks")||(K.systemHealth={crashData:{clientError:{logMessage:{message:z.message}}}}),g.DW("appCrashed",K)),FCr++):Q==="WARNING"&&pO.publish("handleWarning",z);if(g.nA("kevlar_gel_error_routing")){K=Q;Z=void 0;Z=Z===void 0?{}:Z; b:{b=g.n(egD);for(r=b.next();!r.done;r=b.next())if(g.WX(r.value.toLowerCase())){b=!0;break b}b=!1}if(b)Z=void 0;else{r={stackTrace:z.stack};z.fileName&&(r.filename=z.fileName);b=z.lineNumber&&z.lineNumber.split?z.lineNumber.split(":"):[];b.length!==0&&(b.length!==1||isNaN(Number(b[0]))?b.length!==2||isNaN(Number(b[0]))||isNaN(Number(b[1]))||(r.lineNumber=Number(b[0]),r.columnNumber=Number(b[1])):r.lineNumber=Number(b[0]));b={level:"ERROR_LEVEL_UNKNOWN",message:z.message,errorClassName:z.name,sampleWeight:z.sampleWeight}; K==="ERROR"?b.level="ERROR_LEVEL_ERROR":K==="WARNING"&&(b.level="ERROR_LEVEL_WARNNING");r={isObfuscated:!0,browserStackInfo:r};Z.pageUrl=window.location.href;Z.kvPairs=[];g.Ft("FEXP_EXPERIMENTS")&&(Z.experimentIds=g.Ft("FEXP_EXPERIMENTS"));D=g.Ft("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!et("web_disable_gel_stp_ecatcher_killswitch")&&D)for(S=g.n(Object.keys(D)),Y=S.next();!Y.done;Y=S.next())Y=Y.value,Z.kvPairs.push({key:Y,value:String(D[Y])});if(D=z.params)for(S=g.n(Object.keys(D)),Y=S.next();!Y.done;Y= S.next())Y=Y.value,Z.kvPairs.push({key:"client."+Y,value:String(D[Y])});D=g.Ft("SERVER_NAME");S=g.Ft("SERVER_VERSION");D&&S&&(Z.kvPairs.push({key:"server.name",value:D}),Z.kvPairs.push({key:"server.version",value:S}));Z={errorMetadata:Z,stackTrace:r,logMessage:b}}if(Z&&(g.DW("clientError",Z),K==="ERROR"||g.nA("errors_flush_gel_always_killswitch")))a:{if(g.nA("web_fp_via_jspb")){K=!0;K=K===void 0?!1:K;Z=w6X;w6X=[];if(Z)for(Z=g.n(Z),b=Z.next();!b.done;b=Z.next())b=b.value,K?LO(b.payloadName,b.payload, g.lC,b.options):g.DW(b.payloadName,b.payload,b.options);bO(void 0,!0);if(!g.nA("web_fp_via_jspb_and_json"))break a}bO(void 0,!1)}}g.nA("suppress_error_204_logging")||xWr(Q,z)}try{uYu.add(z.message)}catch(m){}WCD++}}}}; xWr=function(Z,Q){var z=Q.params||{};Z={urlParams:{a:"logerror",t:"jserror",type:Q.name,msg:Q.message.substr(0,250),line:Q.lineNumber,level:Z,"client.name":z.name},postParams:{url:g.Ft("PAGE_NAME",window.location.href),file:Q.fileName},method:"POST"};z.version&&(Z["client.version"]=z.version);if(Z.postParams){Q.stack&&(Z.postParams.stack=Q.stack);Q=g.n(Object.keys(z));for(var K=Q.next();!K.done;K=Q.next())K=K.value,Z.postParams["client."+K]=z[K];if(z=g.Ft("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(Q= g.n(Object.keys(z)),K=Q.next();!K.done;K=Q.next())K=K.value,Z.postParams[K]=z[K];(z=g.Ft("LAVA_VERSION"))&&(Z.postParams["lava.version"]=z);z=g.Ft("SERVER_NAME");Q=g.Ft("SERVER_VERSION");z&&Q&&(Z.postParams["server.name"]=z,Z.postParams["server.version"]=Q)}g.yC(g.Ft("ECATCHER_REPORT_HOST","")+"/error_204",Z)}; ETx=function(Z){var Q=g.iu.apply(1,arguments);Z.args||(Z.args=[]);Z.args.push.apply(Z.args,g.I(Q))}; Uu=function(Z){var Q=g.V(Z,Hc);if(Q)return Q;if((Q=g.V(Z,lTx))&&Q.commands)return swr(Q.commands);if((Q=g.V(Z,Zcf))&&Q.commands)return swr(Q.commands);if((Z=g.V(Z,Qwr))&&Z.identifier&&Z.command&&(MU||(MU=[]),!MU.includes(Z.identifier)))return MU.push(Z.identifier),g.V(Z.command,Hc)}; swr=function(Z){if(Z.length!==0){var Q=[];Z=g.n(Z);for(var z=Z.next();!z.done;z=Z.next())(z=Uu(z.value))&&Q.push(z);return{commandExecutorCommand:{commands:Q}}}}; g.Ou=function(Z,Q,z){z===void 0?delete Z[Q.name]:Z[Q.name]=z}; z4G=function(Z){for(var Q=0,z=0;z<Z.length;z++)Q=Q*31+Z.charCodeAt(z),z<Z.length-1&&(Q%=0x800000000000);return Q%1E5}; om=function(Z){X3.call(this,1,arguments);this.csn=Z}; bc9=function(Z,Q,z,K,b,q,r,D){var v=Ke0(),Y=new nO({veType:Q,youtubeData:q,jspbYoutubeData:void 0});q=Bc({},v);b&&(q.cttAuthInfo=b);b={csn:v,pageVe:Y.getAsJson()};g.nA("expectation_logging")&&D&&D.screenCreatedLoggingExpectations&&(b.screenCreatedLoggingExpectations=D.screenCreatedLoggingExpectations);z&&z.visualElement?(b.implicitGesture={parentCsn:z.clientScreenNonce,gesturedVe:z.visualElement.getAsJson()},r&&(b.implicitGesture.gestureType=r)):z&&g.CO(new g.tW("newScreen() parent element does not have a VE - rootVe", Q));K&&(b.cloneCsn=K);Z?LO("screenCreated",b,Z,q):g.DW("screenCreated",b,q);Tl(Jsx,new om(v));Wc.clear();V4.clear();kY.clear();return v}; g.xY=function(Z,Q,z,K,b){g.uO(Z,Q,z,[K],b===void 0?!1:b)}; g.uO=function(Z,Q,z,K,b){b=b===void 0?!1:b;for(var q=Bc({cttAuthInfo:y4(Q)||void 0},Q),r=g.n(K),D=r.next();!D.done;D=r.next()){D=D.value;var v=D.getAsJson();(g.Ne(v)||!v.trackingParams&&!v.veType)&&g.CO(Error("Child VE logged with no data"));if(g.nA("no_client_ve_attach_unless_shown")){var Y=ty(D,Q);if(v.veType&&!V4.has(Y)&&!kY.has(Y)&&!b){if(!g.nA("il_attach_cache_limit")||Wc.size<1E3){Wc.set(Y,[Z,Q,z,D]);return}g.nA("il_attach_cache_limit")&&Wc.size>1E3&&g.CO(new g.tW("IL Attach cache exceeded limit"))}D= ty(z,Q);Wc.has(D)?Fs(z,Q):kY.set(D,!0)}}K=K.filter(function(X){X.csn!==Q?(X.csn=Q,X=!0):X=!1;return X}); z={csn:Q,parentVe:z.getAsJson(),childVes:g.my(K,function(X){return X.getAsJson()})}; Q==="UNDEFINED_CSN"?eD("visualElementAttached",q,z):Z?LO("visualElementAttached",z,Z,q):g.DW("visualElementAttached",z,q)}; qIG=function(Z,Q,z,K,b){w9(z,Q);K=Bc({cttAuthInfo:y4(Q)||void 0},Q);z={csn:Q,ve:z.getAsJson(),eventType:1};b&&(z.clientData=b);Q==="UNDEFINED_CSN"?eD("visualElementShown",K,z):Z?LO("visualElementShown",z,Z,K):g.DW("visualElementShown",z,K)}; rhM=function(Z,Q,z,K){var b=(K=K===void 0?!1:K)?16:8;K=Bc({cttAuthInfo:y4(Q)||void 0,endOfSequence:K},Q);z={csn:Q,ve:z.getAsJson(),eventType:b};Q==="UNDEFINED_CSN"?eD("visualElementHidden",K,z):Z?LO("visualElementHidden",z,Z,K):g.DW("visualElementHidden",z,K)}; Ahx=function(Z,Q,z,K,b){Eu(Z,Q,z,void 0,K,b)}; Eu=function(Z,Q,z,K,b){w9(z,Q);K=K||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var q=Bc({cttAuthInfo:y4(Q)||void 0},Q);z={csn:Q,ve:z.getAsJson(),gestureType:K};b&&(z.clientData=b);Q==="UNDEFINED_CSN"?eD("visualElementGestured",q,z):Z?LO("visualElementGestured",z,Z,q):g.DW("visualElementGestured",z,q)}; jwx=function(){var Z=nl(16);for(var Q=[],z=0;z<Z.length;z++)Q.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(Z[z]&63));return Q.join("")}; eD=function(Z,Q,z){lO.push({payloadName:Z,payload:z,KX7:void 0,options:Q});s2||(s2=ipf())}; NIx=function(Z){if(lO){for(var Q=g.n(lO),z=Q.next();!z.done;z=Q.next())z=z.value,z.payload&&(z.payload.csn=Z.csn,g.DW(z.payloadName,z.payload,z.options));lO.length=0}s2=0}; ty=function(Z,Q){return""+Z.getAsJson().veType+Z.getAsJson().veCounter+Q}; w9=function(Z,Q){if(g.nA("no_client_ve_attach_unless_shown")){var z=ty(Z,Q);V4.set(z,!0);Fs(Z,Q)}}; Fs=function(Z,Q){Z=ty(Z,Q);Wc.has(Z)&&(Q=Wc.get(Z)||[],g.xY(Q[0],Q[1],Q[2],Q[3],!0),Wc.delete(Z))}; Bc=function(Z,Q){g.nA("log_sequence_info_on_gel_web")&&(Z.sequenceGroup=Q);return Z}; g.Zz=function(Z,Q,z,K){g.lW(qIG)(void 0,Z,Q,z,K,void 0)}; g.Qw=function(Z,Q){g.lW(function(){g.SB(Q,function(z){w9(z,Z);var K=Bc({cttAuthInfo:y4(Z)||void 0},Z);z={csn:Z,ve:z.getAsJson(),eventType:4};Z==="UNDEFINED_CSN"?eD("visualElementShown",K,z):g.DW("visualElementShown",z,K)})})()}; g.zy=function(Z,Q){g.lW(function(){g.SB(Q,function(z){rhM(void 0,Z,z)})})()}; g.Ki=function(Z,Q,z){g.lW(Ahx)(void 0,Z,Q,z,void 0)}; qE=function(Z,Q,z,K,b,q){z=z===void 0?{}:z;this.componentType=Z;this.renderer=Q===void 0?null:Q;this.macros=z;this.layoutId=K;this.interactionLoggingClientData=b;this.Y=q;this.id=bo(Z)}; bo=function(Z){var Q=":"+(BC.getInstance().Y++).toString(36);return Z+Q}; g.rV=function(Z){Z=Z===void 0?!1:Z;g.O.call(this);this.yF=new g.dd(Z);g.W(this,this.yF)}; AB=function(){var Z="ytp-id-"+Dm0.toString();Dm0++;return Z}; g.jN=function(Z){g.O.call(this);this.DI={};this.ex={};this.element=this.createElement(Z)}; Dz=function(Z,Q,z,K){if(K.substring(0,2)==="{{")Z.ex[K]=[Q,z];else return K}; vkG=function(Z,Q){var z=[];if(!Q)return z;Q=g.n(Q);for(var K=Q.next();!K.done;K=Q.next())if(K=K.value,K!=null){var b=K.nodeType;b===1||b===3?z.push(K):K&&typeof K.B==="string"?z.push(Z.createElement(K)):K.element?z.push(K.element):typeof K==="string"&&K.indexOf("\n")!==-1?K.split("\n").forEach(function(q,r){r>0&&z.push(g.lY("BR"));z.push(g.sl(q))}):z.push(g.sl(K))}return z}; vI=function(Z,Q,z,K){if(z==="child"){g.QX(Q);var b;K===void 0?b=void 0:b=!Array.isArray(K)||K&&typeof K.B==="string"?[K]:K;z=vkG(Z,b);z=g.n(z);for(Z=z.next();!Z.done;Z=z.next())Q.appendChild(Z.value)}else z==="style"?g.Dw(Q,"cssText",K?K:""):K===null||K===void 0?Q.removeAttribute(z):(Z=K.toString(),z==="href"&&(Z=g.N0(g.au(Z))),Q.setAttribute(z,Z))}; g.x=function(Z){g.jN.call(this,Z);this.RT=!0;this.L=!1;this.listeners=[]}; g.gV=function(Z){g.x.call(this,Z);this.Du=new g.rV;g.W(this,this.Du)}; Yf=function(Z,Q,z,K,b,q,r){r=r===void 0?null:r;g.gV.call(this,Q);this.api=Z;this.macros={};this.componentType=z;this.T=this.X=null;this.Qp=r;this.layoutId=K;this.interactionLoggingClientData=b;this.au=q;this.s$=null;this.A2=new hX(this.element);g.W(this,this.A2);this.CN=this.Z(this.element,"click",this.onClick);this.JG=[];this.P7=new di4(this.onClick,this);g.W(this,this.P7);this.gq=!1;this.c7=this.jJ=null}; XN=function(Z,Q){Z=Z===void 0?null:Z;Q=Q===void 0?null:Q;if(Z==null)return g.CO(Error("Got null or undefined adText object")),"";var z=g.E3(Z.text);if(!Z.isTemplated)return z;if(Q==null)return g.CO(Error("Missing required parameters for a templated message")),z;Z=g.n(Object.entries(Q));for(Q=Z.next();!Q.done;Q=Z.next()){var K=g.n(Q.value);Q=K.next().value;K=K.next().value;z=z.replace("{"+Q+"}",K)}return z}; gkM=function(Z){Z=Z===void 0?null:Z;return Z!=null&&(Z=Z.thumbnail,Z!=null&&Z.thumbnails!=null&&Z.thumbnails.length!=0&&Z.thumbnails[0].url!=null)?g.E3(Z.thumbnails[0].url):""}; YID=function(Z){Z=Z===void 0?null:Z;return Z!=null&&(Z=Z.thumbnail,Z!=null&&Z.thumbnails!=null&&Z.thumbnails.length!=0&&Z.thumbnails[0].width!=null&&Z.thumbnails[0].height!=null)?new g.SO(Z.thumbnails[0].width||0,Z.thumbnails[0].height||0):new g.SO(0,0)}; g.SN=function(Z){if(Z.simpleText)return Z.simpleText;if(Z.runs){var Q=[];Z=g.n(Z.runs);for(var z=Z.next();!z.done;z=Z.next())z=z.value,z.text&&Q.push(z.text);return Q.join("")}return""}; g.$f=function(Z){if(Z.simpleText)return Z=document.createTextNode(Z.simpleText),Z;var Q=[];if(Z.runs)for(var z=0;z<Z.runs.length;z++){var K=Z.runs[z];if(K.text){var b=Q,q=b.push,r=null;var D=K.text;K.bold&&(r=ED("B",null,r||D));K.italics&&(r=ED("I",null,r||D));K.strikethrough&&(r=ED("STRIKE",null,r||D));K.navigationEndpoint&&K.navigationEndpoint.urlEndpoint&&(K=K.navigationEndpoint.urlEndpoint,r=ED("A",null,r||D),g.Ru(r,K.url),K.target=="TARGET_NEW_WINDOW"&&(r.target="_blank"));D=r||ED("SPAN",null, D);q.call(b,D)}}return Q.length==1?Q[0]:ED("SPAN",null,Q)}; g.Xsr=function(){return{B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},G:[{B:"path",KL:!0,C:{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"}}]}}; Ty=function(){return{B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},G:[{B:"path",C:{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.fi=function(){return{B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},G:[{B:"path",C:{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.hB=function(){return{B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},G:[{B:"path",C:{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"}}]}}; SIG=function(){return{B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},G:[{B:"path",C:{d:"M14,14 L14,0 L0,0 L0,14 L14,14 Z"}},{B:"path",C:{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"}}]}}; $mD=function(){return{B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},G:[{B:"path",KL:!0,C:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}}; TrG=function(){return{B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},G:[{B:"path",KL:!0,C:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}}; g.Li=function(){return{B:"svg",C:{height:"100%",viewBox:"0 0 24 24",width:"100%"},G:[{B:"path",C:{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"}}]}}; fWM=function(){return{B:"svg",C:{height:"100%",viewBox:"0 0 36 36",width:"100%"},G:[{B:"path",C:{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"}}]}}; h4x=function(){return{B:"svg",C:{viewBox:"0 0 24 24"},G:[{B:"path",C:{d:"M0 0h24v24H0z",fill:"none"}},{B:"path",C:{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"}}]}}; Le4=function(){return{B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},G:[{B:"path",KL:!0,D:"ytp-svg-fill",C:{d:"M 10,24 18.5,18 10,12 V 24 z M 19,12 V 24 L 27.5,18 19,12 z"}}]}}; nkf=function(){return{B:"svg",C:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},G:[{B:"path",C:{"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"}}]}}; chn=function(){return{B:"svg",C:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},G:[{B:"path",C:{d:"M0 0h48v48H0z",fill:"none"}},{B:"path",C:{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"}}]}}; mm4=function(){return{B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},G:[{B:"path",KL:!0,D:"ytp-svg-fill",C:{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"}}]}}; IWD=function(){return{B:"svg",C:{viewBox:"0 0 24 24"},G:[{B:"path",C:{d:"M0 0h24v24H0z",fill:"none"}},{B:"path",C:{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"}}]}}; ni=function(){return{B:"svg",C:{height:"100%",viewBox:"0 0 36 36",width:"100%"},G:[{B:"path",C:{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"}}]}}; Jhf=function(){return{B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},G:[{B:"path",KL:!0,C:{d:"M5,0 L9,0 L9,14 L5,14 L5,0 Z",fill:"#eaeaea"}}]}}; cI=function(){return{B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},G:[{B:"path",KL:!0,D:"ytp-svg-fill",C:{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.mc=function(){return{B:"svg",C:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},G:[{B:"path",C:{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"}}]}}; Ip=function(){return{B:"svg",C:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},G:[{B:"path",C:{d:"M0 0h48v48H0z",fill:"none"}},{B:"path",C:{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"}}]}}; yhn=function(){return{B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},G:[{B:"path",KL:!0,D:"ytp-svg-fill",C:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}}]}}; dmd=function(){return{B:"svg",C:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},G:[{B:"path",D:"ytp-svg-fill",C:{"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"}}]}}; Nrd=function(){return{B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},G:[{B:"path",KL:!0,C:{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"}}]}}; JB=function(){return{B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},G:[{B:"path",KL:!0,D:"ytp-svg-fill",C:{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"}}]}}; GSG=function(){return{B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},G:[{B:"path",KL:!0,D:"ytp-svg-fill",C:{d:"m 12,12 h 2 v 12 h -2 z m 3.5,6 8.5,6 V 12 z"}}]}}; g.yw=function(){return{B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},G:[{B:"path",KL:!0,D:"ytp-svg-fill",C:{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.dV=function(){return{B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},G:[{B:"path",KL:!0,C:{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.NE=function(){return{B:"svg",C:{height:"100%",viewBox:"0 0 16 16",width:"100%"},G:[{B:"path",C:{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"}}]}}; icf=function(){return{B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},G:[{B:"path",KL:!0,D:"ytp-svg-fill",C:{d:"M 12,25 19,25 19,11 12,11 z M 19,25 26,25 26,11 19,11 z"}}]}}; Gy=function(){return{B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},G:[{B:"path",KL:!0,D:"ytp-svg-fill",C:{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"}}]}}; io=function(Z,Q,z){Q=Q===void 0?!1:Q;z=z===void 0?!1:z;if(!Z)return null;switch(Z.iconType){case "OPEN_IN_NEW":case "EXTERNAL_LINK":return z?{B:"svg",C:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},G:[{B:"path",C:{d:"M21 21H3V3h9v1H4v16h16v-8h1v9zM15 3v1h4.32l-8.03 8.03.71.71 8-8V9h1V3h-6z"}}]}:Ip();case "CHECK_BOX":return{B:"svg",C:{height:"100%",viewBox:"0 0 24 24",width:"100%"},G:[{B:"path",C:{d:"M0 0h24v24H0z",fill:"none"}},{B:"path",C:{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{B:"svg",C:{height:"100%",viewBox:"0 0 24 24",width:"100%"},G:[{B:"path",C:{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"}},{B:"path",C:{d:"M0 0h24v24H0z",fill:"none"}}]};case "CLOSE":return g.Li();case "INFO_OUTLINE":return Q?{B:"svg",C:{fill:"#fff",height:"12px",style:"padding-top: 8px",viewBox:"0 -960 960 960",width:"12px"},G:[{B:"path",C:{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"}}]}: chn();case "REMOVE_CIRCLE":return{B:"svg",C:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},G:[{B:"path",C:{d:"M0 0h24v24H0z",fill:"none"}},{B:"path",C:{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 cI();case "SKIP_NEXT_NEW":return{B:"svg",C:{height:"100%",viewBox:"-6 -6 36 36",width:"100%"},G:[{B:"path",C:{d:"M5,18l10-6L5,6V18L5,18z M19,6h-2v12h2V6z",fill:"#fff"}}]};case "LIKE":return IWD(); case "DISLIKE":return h4x();default:return g.CO(new g.tW("Unexpected icon:",Z)),null}}; ap=function(Z,Q,z,K,b,q,r,D,v){b=b===void 0?[]:b;r=r===void 0?!1:r;v=v===void 0?!1:v;b={B:"button",nN:["ytp-ad-button"].concat(b)};D!=null&&(b.C={tabindex:D});Yf.call(this,Z,b,q===void 0?"button":q,Q,z,K);this.Y=this.j=this.S=null;this.K=r;this.W=v;this.hide()}; aWf=function(Z){var Q=null;Z.Y!=null&&(Q=[Z.Y.serviceEndpoint,Z.Y.navigationEndpoint].filter(function(z){return z!=null}),Z.Y.command&&(Q=Q.concat(Z.Y.command))); return Q||[]}; PI=function(){g.O.call(this);var Z=this;this.Y=new Map;this.j=uHM(function(Q){if(Q.target&&(Q=Z.Y.get(Q.target))&&Q)for(var z=0;z<Q.length;z++)g.of(Q[z])})}; PQf=function(){Rp==null&&(Rp=new PI);return Rp}; Ci=function(Z,Q){if(Z.simpleText){a:{Z=Z.simpleText;if(Q&&(Q=R4r(Z))){Q=ED("SPAN",null,Q);break a}Q=g.sl(Z)}return Q}var z=[];if(Z.runs)for(var K=0;K<Z.runs.length;K++){var b=Z.runs[K];b.text&&z.push(CQ0(b,Q))}return z.length==1?z[0]:ED("SPAN",null,z)}; CQ0=function(Z,Q){var z=null,K=Z.text;Q&&(K=R4r(K)||K);Z.bold&&(z=ED("B",null,z||K));Z.italics&&(z=ED("I",null,z||K));Z.strikethrough&&(z=ED("STRIKE",null,z||K));Z.navigationEndpoint&&g.V(Z.navigationEndpoint,g.pi)&&(Q=g.V(Z.navigationEndpoint,g.pi),z=ED("A",null,z||K),g.Ru(z,Q.url),Q.target=="TARGET_NEW_WINDOW"&&(z.target="_blank"),Z=Z.navigationEndpoint.loggingUrls)&&(Z=Z.map(function(b){return b.baseUrl}),PQf().register(z,Z),g.rd(z,"ytp-ad-has-logging-urls")); return z||ED("SPAN",null,K)}; R4r=function(Z){Z=Z.split(/(?:\r\n|\r|\n)/g);if(Z.length>1){for(var Q=[Z[0]],z=1;z<Z.length;z++)Q.push(ED("BR")),Q.push(Z[z]);return Q}return null}; HI=function(Z,Q,z,K,b,q,r,D,v){q=q===void 0?!1:q;r=r===void 0?[]:r;v=v===void 0?!1:v;Yf.call(this,Z,{B:"span",nN:["ytp-ad-hover-text-button"].concat(r)},D===void 0?"ad-hover-text-button":D,Q,z,K);this.button=this.j=null;this.U=q;this.K=b;this.S=v;this.hide()}; ME=function(Z){return Z&&Z.thumbnails&&(Z.thumbnails||null).length!=0&&Z.thumbnails[0].url?g.E3(Z.thumbnails[0].url):""}; U2=function(Z,Q,z,K,b,q){q=q===void 0?!1:q;Yf.call(this,Z,{B:"img",D:"ytp-ad-image"},"ad-image",Q,z,K,b===void 0?null:b);this.Y=q;this.hide()}; O2=function(Z,Q,z,K,b,q){b=b===void 0?[]:b;Yf.call(this,Z,{B:"div",nN:["ytp-ad-confirm-dialog-background"],G:[{B:"div",D:"ytp-ad-confirm-dialog-container",G:[{B:"div",nN:["ytp-ad-confirm-dialog"].concat(b),C:{role:"dialog",tabindex:"-1"},G:[{B:"div",D:"ytp-ad-confirm-dialog-title",W7:"{{title}}"},{B:"div",D:"ytp-ad-confirm-dialog-messages"},{B:"div",D:"ytp-ad-confirm-dialog-confirm-container",G:[{B:"button",D:"ytp-ad-confirm-dialog-cancel-button",W7:"{{cancelLabel}}"},{B:"button",D:"ytp-ad-confirm-dialog-confirm-button", W7:"{{confirmLabel}}"}]}]}]},{B:"button",nN:["ytp-ad-confirm-dialog-close-overlay-button","ytp-ad-button","ytp-ad-button-link"],G:[{B:"span",D:"ytp-ad-button-icon",G:[g.Li()]}]}]},q===void 0?"confirm-dialog":q,Q,z,K);this.U=this.Ru("ytp-ad-confirm-dialog-close-overlay-button");this.W=this.Ru("ytp-ad-confirm-dialog-cancel-button");this.K=this.Ru("ytp-ad-confirm-dialog-confirm-button");this.SJ=this.Ru("ytp-ad-confirm-dialog-messages");this.S=null;this.Y=new NW;g.W(this,this.Y);this.j=null;this.hide()}; psf=function(Z,Q){if(Q.title){var z=g.SN(Q.title);Z.updateValue("title",z)}if(Q.dialogMessages){z=g.n(Q.dialogMessages);for(var K=z.next();!K.done;K=z.next())K=Ci(K.value),Z.SJ.appendChild(K)}Q.cancelLabel&&(z=g.SN(Q.cancelLabel),Z.updateValue("cancelLabel",z),Z.Y.Z(Z.W,"click",function(b){return Z.rR(b)})); Q.confirmLabel&&(Q=g.SN(Q.confirmLabel),Z.updateValue("confirmLabel",Q),Z.Y.Z(Z.K,"click",function(b){return Z.Wd(b)})); Z.Y.Z(Z.U,"click",function(b){return Z.gG(b)})}; op=function(Z,Q,z,K,b,q){b=b===void 0?[]:b;q=q===void 0?"toggle-button":q;var r=bo("ytp-ad-toggle-button-input"),D={role:"button","aria-label":"{{tooltipText}}"};Z.N().experiments.XI("fix_h5_toggle_button_a11y")&&(D.tabindex="0");Z.N().experiments.XI("fix_toggle_button_role_for_ad_components")&&(D.role="checkbox");Yf.call(this,Z,{B:"div",nN:["ytp-ad-toggle-button"].concat(b),G:[{B:"label",D:"ytp-ad-toggle-button-label",C:{"for":r},G:[{B:"span",D:"ytp-ad-toggle-button-icon",C:D,G:[{B:"span",D:"ytp-ad-toggle-button-untoggled-icon", W7:"{{untoggledIconTemplateSpec}}"},{B:"span",D:"ytp-ad-toggle-button-toggled-icon",W7:"{{toggledIconTemplateSpec}}"}]},{B:"input",D:"ytp-ad-toggle-button-input",C:{id:r,type:"checkbox"}},{B:"span",D:"ytp-ad-toggle-button-text",W7:"{{buttonText}}"},{B:"span",D:"ytp-ad-toggle-button-tooltip",W7:"{{tooltipText}}"}]}]},q,Q,z,K);this.W=this.Ru("ytp-ad-toggle-button");this.Y=this.Ru("ytp-ad-toggle-button-input");this.j=this.Ru("ytp-ad-toggle-button-icon");this.U=this.Ru("ytp-ad-toggle-button-untoggled-icon"); this.K=this.Ru("ytp-ad-toggle-button-toggled-icon");this.KN=this.Ru("ytp-ad-toggle-button-text");this.S=null;this.SJ=!1;this.hide()}; BI=function(Z){Z.SJ&&(Z.isToggled()?(g.c$(Z.U,!1),g.c$(Z.K,!0),Z.api.N().experiments.XI("fix_toggle_button_role_for_ad_components")&&Z.j.setAttribute("aria-checked",!0)):(g.c$(Z.U,!0),g.c$(Z.K,!1),Z.api.N().experiments.XI("fix_toggle_button_role_for_ad_components")&&Z.j.setAttribute("aria-checked",!1)))}; HcX=function(Z,Q){var z=null;Z.S&&(z=(Q?[Z.S.defaultServiceEndpoint,Z.S.defaultNavigationEndpoint]:[Z.S.toggledServiceEndpoint]).filter(function(K){return K!=null})); return z||[]}; Mzn=function(Z,Q,z){this.actionType=Q;this.id=z;this.content=Z}; WI=function(Z){NW.call(this);this.Y=Z;this.Z(this.Y,"onAdUxUpdate",this.K)}; Vw=function(Z,Q,z,K){Yf.call(this,Z,{B:"div",D:"ytp-ad-feedback-dialog-background",G:[{B:"div",D:"ytp-ad-feedback-dialog-container",G:[{B:"div",D:"ytp-ad-feedback-dialog-form",C:{role:"dialog",tabindex:"-1"},G:[{B:"div",D:"ytp-ad-feedback-dialog-title",G:[{B:"span",W7:"{{title}}"}]},{B:"span",D:"ytp-ad-info-dialog-feedback-options-title",W7:"{{reasonsTitle}}"},{B:"div",D:"ytp-ad-info-dialog-feedback-options"},{B:"div",D:"ytp-ad-feedback-dialog-confirm-container",G:[{B:"button",D:"ytp-ad-feedback-dialog-cancel-button", W7:"{{cancelLabel}}"},{B:"button",D:"ytp-ad-feedback-dialog-confirm-button",W7:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog",Q,z,K);this.W=[];this.Y=null;this.K=this.Ru("ytp-ad-feedback-dialog-cancel-button");this.U=this.Ru("ytp-ad-feedback-dialog-confirm-button");this.SJ=this.Ru("ytp-ad-info-dialog-feedback-options");this.KN=this.Ru("ytp-ad-feedback-dialog-title");this.S=this.j=null;this.hide()}; Brd=function(Z,Q){var z=Q.cancelRenderer&&Q.cancelRenderer.buttonRenderer||null;z&&(Z.Y=new ap(Z.api,Z.layoutId,Z.interactionLoggingClientData,Z.au,["ytp-ad-feedback-dialog-close-button"],"button"),g.W(Z,Z.Y),Z.Y.init(bo("button"),z,Z.macros),Z.Y.listen("click",Z.Ro,Z),Z.Y.zf(Z.element));Q.title&&(z=g.SN(Q.title),Z.updateValue("title",z));Q.reasonsTitle&&(z=g.SN(Q.reasonsTitle),Z.updateValue("reasonsTitle",z));Q.reasons&&Umu(Z,Q.reasons);Q.cancelLabel&&(z=g.SN(Q.cancelLabel),Z.updateValue("cancelLabel", z),g.mC(Z.K,"click",function(){return Z.Ro()})); Q.confirmLabel&&(z=g.SN(Q.confirmLabel),Z.updateValue("confirmLabel",z),g.mC(Z.U,"click",function(){return Ocn(Z)})); Q.undoRenderer&&okW(Z,Q.undoRenderer)}; Umu=function(Z,Q){Q=g.n(Q);for(var z=Q.next();!z.done;z=Q.next()){var K=z.value;z=K.reason;if(z==null)g.CO(Error("AdFeedbackReason.reason was not set."));else if(K=K.endpoint,K==null)g.CO(Error("AdFeedbackReason.endpoint was not set."));else{z=new kf(z,K);g.W(Z,z);K=Z.SJ;var b=z.OA();K.appendChild(b);Z.W.push(z)}}}; okW=function(Z,Q){if(Q=Q&&Q.buttonRenderer||null)Q.serviceEndpoint?(Z.j=new ap(Z.api,Z.layoutId,Z.interactionLoggingClientData,Z.au,["ytp-ad-feedback-dialog-undo-mute-button"],"ad-feedback-undo-mute-button"),g.W(Z,Z.j),Z.j.init(bo("ad-feedback-undo-mute-button"),Q,Z.macros),Z.j.listen("click",Z.gXJ,Z),Z.j.zf(Z.KN)):g.CO(Error("AdFeedbackRenderer.undoRenderer.undoButtonRenderer was specified but did not contain a service endpoint."))}; Ocn=function(Z){var Q=Z.W.filter(function(z){return z.isChecked()}); Q.length!==0&&(Q=Q[0].getCommand(),Z.layoutId?Z.au.executeCommand(Q,Z.layoutId):g.Rm(Error("Missing layoutId for ad feedback dialog.")),Z.api.onAdUxClicked("ad-feedback-dialog-confirm-button",Z.layoutId),Z.publish("a"),Z.hide())}; kf=function(Z,Q){this.j=Q;this.Y=new g.gV({B:"label",D:"ytp-ad-feedback-dialog-reason-label",G:[{B:"input",D:"ytp-ad-feedback-dialog-reason-input",C:{type:"radio",name:"feedback-reason-group"}},{B:"span",D:"ytp-ad-feedback-dialog-reason-text",W7:g.SN(Z)}]});this.S=this.Y.Ru("ytp-ad-feedback-dialog-reason-input")}; uo=function(Z,Q,z,K){O2.call(this,Z,Q,z,K,[],"ad-mute-confirm-dialog")}; xf=function(Z,Q,z,K,b){Yf.call(this,Z,{B:"div",D:"ytp-ad-info-dialog-background",G:[{B:"div",D:"ytp-ad-info-dialog-container",G:[{B:"div",D:"ytp-ad-info-dialog-form",C:{role:"dialog",tabindex:"-1"},G:[{B:"div",D:"ytp-ad-info-dialog-title",W7:"{{title}}"},{B:"ul",D:"ytp-ad-info-dialog-ad-reasons"},{B:"div",D:"ytp-ad-info-dialog-message"},{B:"div",D:"ytp-ad-info-dialog-mute-container"},{B:"div",D:"ytp-ad-info-dialog-confirm-container",G:[{B:"button",D:"ytp-ad-info-dialog-confirm-button",W7:"{{confirmLabel}}"}]}]}]}]}, "ad-info-dialog",Q,z,K);this.Y=this.j=null;this.U=this.Ru("ytp-ad-info-dialog-confirm-button");this.NB=this.Ru("ytp-ad-info-dialog-mute-container");this.Zu=this.Ru("ytp-ad-info-dialog-message");this.Vp=this.Ru("ytp-ad-info-dialog-ad-reasons");this.W=this.S=null;this.KN=b;this.K=null;this.tG=!1;this.SJ=null;this.hide()}; WeD=function(Z,Q){if(Q=Q.content&&Q.content.adFeedbackRenderer||null)Z.j=new Vw(Z.api,Z.layoutId,Z.interactionLoggingClientData,Z.au),g.W(Z,Z.j),Z.j.init(bo("ad-feedback-dialog"),Q,Z.macros),Z.j.zf(Z.KN),Z.j.subscribe("a",function(){return Z.publish("c")})}; Vz9=function(Z,Q){if(Q=Q.content&&Q.content.confirmDialogRenderer||null)Z.W=new uo(Z.api,Z.layoutId,Z.interactionLoggingClientData,Z.au),g.W(Z,Z.W),Z.W.init(bo("ad-mute-confirm-dialog"),Q,Z.macros),Z.W.zf(Z.KN),Z.W.subscribe("b",function(){return Z.publish("c")})}; kSx=function(Z){Z.Y&&Z.Y.listen("click",Z.kG,Z);g.mC(Z.U,"click",function(){return Z.kG()})}; tB=function(Z,Q,z,K,b,q,r){HI.call(this,Z,Q,z,K,q===void 0?!0:q,!0,["ytp-ad-info-hover-text-button"],"ad-info-hover-text-button",r===void 0?!1:r);this.Y=null;this.W=b;this.hide()}; xmW=function(Z,Q,z){Q=Q.dialog&&g.V(Q.dialog,uc0)||null;Q==null?g.Rm(Error("AdInfoDialogEndpoint did not contain an AdInfoDialogRenderer.")):(Z.Y=new xf(Z.api,Z.layoutId,Z.interactionLoggingClientData,Z.au,Z.W),g.W(Z,Z.Y),Z.Y.init(bo("ad-info-dialog"),Q,z),Z.Y.zf(Z.W),Z.Y.subscribe("d",function(){return Z.publish("f")}),Z.Y.subscribe("c",function(){return Z.publish("e")}))}; e4G=function(Z,Q,z){Z.button==null?g.Rm(Error("AdInfoHoverTextButton.button was expected but it was not created.")):(Z.j&&g.rd(Z.j.element,"ytp-ad-info-hover-text-short"),(Q=Q&&Q.serviceEndpoint&&g.V(Q.serviceEndpoint,tzX)||null)?(xmW(Z,Q,z),Z.button.listen("click",function(){Z.Y&&!Z.Y.RT&&(Z.Y.show(),Feu(Z))})):Z.button.listen("click",function(){return Feu(Z)}))}; Feu=function(Z){Z.api.onAdUxClicked("ad-info-icon-button",Z.layoutId)}; FN=function(Z,Q,z,K,b,q){Yf.call(this,Z,{B:"div",D:"ytp-ad-text"},q===void 0?"ad-text":q,Q,z,K,b===void 0?null:b);this.Y=null;this.hide()}; eN=function(Z,Q){Q&&g.qT(Z.element,XN(Z.Y,Q))}; wV=function(Z,Q,z,K,b,q,r){Yf.call(this,Z,Q,z,K,b,q);this.Y=r;g.W(this,this.Y);this.tG=this.U=-1}; E2=function(Z){Z.Y&&Z.U===-1&&(Z.U=Z.Y.subscribe("h",Z.HP,Z),Z.tG=Z.Y.subscribe("g",Z.P2,Z),Z.HP())}; lo=function(Z){Z.Y!=null&&Z.U!==-1&&(Z.Y.SK(Z.U),Z.Y.SK(Z.tG),Z.tG=-1,Z.U=-1)}; g.s8=function(Z,Q,z,K,b,q){g.O.call(this);this.element=Z;this.state=null;z||Z.hide();this.j=Q;this.S=K===void 0?Q:K;this.Y=q;this.onHidden=b;this.delay=new g.E6(this.z$,0,this);g.W(this,this.delay)}; Zm=function(Z,Q){Z=Z.element.element;Q?Z.setAttribute("aria-hidden","true"):Z.removeAttribute("aria-hidden")}; Qd=function(Z,Q,z,K,b,q){wV.call(this,Z,{B:"div",D:"ytp-ad-preview-slot"},"ad-preview",Q,z,K,b);var r=this;this.NB=-1;this.W=this.api.N().experiments.XI("enable_modern_skip_button_on_web");this.j=new g.gV({B:"span",D:"ytp-ad-preview-container"});this.W&&this.j.element.classList.add("ytp-ad-preview-container-detached");g.W(this,this.j);this.S=this.W?new FN(this.api,this.layoutId,this.interactionLoggingClientData,this.au,"ytp-ad-preview-text-modern"):new FN(this.api,this.layoutId,this.interactionLoggingClientData, this.au,"ytp-ad-preview-text");g.W(this,this.S);this.S.zf(this.j.element);this.SJ=this.W?new g.gV({B:"span",D:"ytp-ad-preview-image-modern"}):new g.gV({B:"span",D:"ytp-ad-preview-image"});g.W(this,this.SJ);this.K=new U2(this.api,this.layoutId,this.interactionLoggingClientData,this.au);g.W(this,this.K);this.K.zf(this.SJ.element);this.SJ.zf(this.j.element);this.j.zf(this.element);this.KN=new g.s8(this.j,400,!1,100,function(){return r.hide()}); g.W(this,this.KN);this.Vp=0;this.Zu=!1;this.qB=q;this.hide()}; z5=function(Z){Z.KN.show(100);Z.show()}; KF=function(Z,Q,z,K,b,q){wV.call(this,Z,{B:"div",nN:["ytp-flyout-cta","ytp-flyout-cta-inactive"],G:[{B:"div",D:"ytp-flyout-cta-icon-container"},{B:"div",D:"ytp-flyout-cta-body",G:[{B:"div",D:"ytp-flyout-cta-text-container",G:[{B:"div",D:"ytp-flyout-cta-headline-container"},{B:"div",D:"ytp-flyout-cta-description-container"}]},{B:"div",D:"ytp-flyout-cta-action-button-container"}]}]},"flyout-cta",Q,z,K,b);this.S=new U2(this.api,this.layoutId,this.interactionLoggingClientData,this.au,"ytp-flyout-cta-icon"); g.W(this,this.S);this.S.zf(this.Ru("ytp-flyout-cta-icon-container"));this.S.element.classList.add("ytp-flyout-cta-icon-rounded");this.K=new FN(this.api,this.layoutId,this.interactionLoggingClientData,this.au,"ytp-flyout-cta-headline");g.W(this,this.K);this.K.zf(this.Ru("ytp-flyout-cta-headline-container"));this.W=new FN(this.api,this.layoutId,this.interactionLoggingClientData,this.au,"ytp-flyout-cta-description");g.W(this,this.W);this.W.zf(this.Ru("ytp-flyout-cta-description-container"));Z=["ytp-flyout-cta-action-button"]; this.api.N().V("web_modern_buttons")&&Z.push("ytp-flyout-cta-action-button-rounded");this.j=new ap(this.api,this.layoutId,this.interactionLoggingClientData,this.au,Z);g.W(this,this.j);this.j.zf(this.Ru("ytp-flyout-cta-action-button-container"));this.j.element.setAttribute("tabIndex","-1");kl(this.j.element);this.SJ=null;this.KN=0;this.Vp=q;this.hide()}; bc=function(Z,Q,z,K,b){Yf.call(this,Z,{B:"div",D:"ytp-ad-instream-user-sentiment-container"},"instream-user-sentiment",Q,z,K,b===void 0?null:b);var q=this;this.Y=null;this.S=new op(this.api,this.layoutId,this.interactionLoggingClientData,this.au,["ytp-ad-instream-user-sentiment-like-button"]);g.W(this,this.S);this.S.zf(this.element);this.j=new op(this.api,this.layoutId,this.interactionLoggingClientData,this.au,["ytp-ad-instream-user-sentiment-dislike-button"]);g.W(this,this.j);this.j.zf(this.element); this.W=new g.s8(this,400,!1,500,function(){return q.hide()}); g.W(this,this.W);this.hide()}; qj=function(Z,Q,z,K,b,q){b=b===void 0?0:b;q=q===void 0?!1:q;g.O.call(this);this.j=Z;this.S=!1;this.U=K;this.jJ=q;this.K=!1;this.Y=null;Q>0&&(this.Y=new g.E6(this.QP,Q,this),g.W(this,this.Y));this.L=new g.E6(this.QP,z,this);g.W(this,this.L);this.X=aw9(this.j,b,1,K);g.W(this,this.X);this.T=aw9(this.j,0,K,1);g.W(this,this.T);this.W=new NW;g.W(this,this.W)}; rB=function(Z,Q,z){this.j=Z;this.isAsync=Q;this.Y=z}; wsn=function(Z){switch(Z){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:q_(Z,"unknown result type")}}; EkX=function(Z,Q){var z=1;Z.isTrusted===!1&&(z=0);ts("ISDSTAT",z);A1(z,"i.s_",{triggerContext:"sk",metadata:Q});return z}; lWX=function(Z,Q){var z=[];Q?Q.isTrusted===!0?z.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):Q.isTrusted===!1?z.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):z.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):z.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");A1(0,"a.s_",{metadata:Z,states:z});ts("ASDSTAT",0)}; A1=function(Z,Q,z){Q=sfW[Q];var K,b,q={detected:Z===0,source:""+Q.j+((K=z.triggerContext)!=null?K:"")+((b=z.mx)!=null?b:""),detectionStates:z.states,durationMs:z.eX};z.metadata&&(q.contentCpn=z.metadata.contentCpn,q.adCpn=z.metadata.adCpn);g.DW("biscottiBasedDetection",q);Q.Y!==void 0&&(z=Number(g.Ft("CATSTAT",0)),Q.Y!==void 0?(Q=Q.Y,Z=wsn(Z),Z=z&~(3<<Q)|Z<<Q):Z=z,ts("CATSTAT",Z))}; jq=function(Z){return Z?"layout: "+Z.layoutType:""}; Dm=function(Z,Q,z){return Z?!0:(g.CO(new g.tW("Assertion: "+Q,z)),!1)}; vM=function(Z,Q,z,K,b){K=K===void 0?{}:K;if(!b||Math.random()<5E-4){Q=Q||null;z=z||null;Z=Z instanceof Error?Z:new g.tW(Z);if(Z.args)for(var q=g.n(Z.args),r=q.next();!r.done;r=q.next())r=r.value,r instanceof Object&&(K=Object.assign({},r,K));K.category="H5 Ads Control Flow";Q&&(K.slot=Q?"slot: "+Q.slotType:"");z&&(K.layout=jq(z),K.layoutId=z.layoutId);b&&(K.known_error_aggressively_sampled=!0);Z.args=[K];g.CO(Z)}}; g.gB=function(Z,Q){this.state=Z;this.oldState=Q}; YC=function(Z,Q){return g.t(Z.state,Q)&&!g.t(Z.oldState,Q)?1:!g.t(Z.state,Q)&&g.t(Z.oldState,Q)?-1:0}; g.Xw=function(Z,Q){return YC(Z,Q)>0}; Sq=function(Z,Q,z,K,b,q){wV.call(this,Z,{B:"div",D:"ytp-ad-skip-button-slot"},"skip-button",Q,z,K,b);var r=this;this.SJ=null;this.KN=!1;this.Zu=q;this.K=this.api.N().experiments.XI("enable_modern_skip_button_on_web");this.NB=!1;this.S=new g.gV({B:"span",nN:["ytp-ad-skip-button-container"]});this.K&&this.S.element.classList.add("ytp-ad-skip-button-container-detached");this.api.V("enable_ad_pod_index_autohide")&&this.S.element.classList.add("ytp-ad-skip-button-container--clean-player");g.W(this,this.S); this.S.zf(this.element);this.j=this.W=null;this.qB=new g.s8(this.S,500,!1,100,function(){return r.hide()}); g.W(this,this.qB);this.Vp=new qj(this.S.element,15E3,5E3,.5,.5,this.K);g.W(this,this.Vp);this.hide()}; QfD=function(Z){Z=Z.SJ&&Z.SJ.adRendererCommands;return(Z&&Z.clickCommand&&g.V(Z.clickCommand,g.$C)&&g.V(Z.clickCommand,g.$C).commands||[]).some(function(Q){return Q.adLifecycleCommand?Zjd(Q.adLifecycleCommand):!1})}; Zjd=function(Z){return Z.action==="END_LINEAR_AD"||Z.action==="END_LINEAR_AD_PLACEMENT"}; T5=function(Z,Q,z,K,b,q){wV.call(this,Z,{B:"div",D:"ytp-ad-skip-ad-slot"},"skip-ad",Q,z,K,b);this.SJ=q;this.W=!1;this.K=0;this.S=this.j=null;this.hide()}; zk4=function(Z,Q){Z.W||(Z.W=!0,Z.j&&(Q?Z.j.KN.hide():Z.j.hide()),Q?(Z=Z.S,Z.qB.show(),Z.show()):Z.S.show())}; fF=function(Z,Q,z,K){ap.call(this,Z,Q,z,K,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; h1=function(Z,Q,z,K,b,q,r){q=q===void 0?!1:q;r=r===void 0?!1:r;Yf.call(this,Z,{B:"span",D:"ytp-ad-simple-ad-badge"},"simple-ad-badge",Q,z,K);this.S=b;this.Y=this.Ru("ytp-ad-simple-ad-badge");(this.j=q)&&this.Y.classList.add("ytp-ad-simple-ad-badge--clean-player");r&&this.Y.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}; LF=function(Z,Q,z,K,b){b=b===void 0?!1:b;qE.call(this,"player-overlay",Z,{},Q,K);this.videoAdDurationSeconds=z;this.interactionLoggingClientData=K;this.Oi=b}; nF=function(Z,Q){g.rV.call(this);this.api=Z;this.durationMs=Q;this.Y=null;this.Bo=new NW(this);g.W(this,this.Bo);this.j=Kpn;this.Bo.Z(this.api,"presentingplayerstatechange",this.lj);this.Y=this.Bo.Z(this.api,"onAdPlaybackProgress",this.E8)}; cM=function(Z){g.rV.call(this);this.Y=!1;this.VF=0;this.Bo=new NW(this);g.W(this,this.Bo);this.durationMs=Z;this.IC=new g.nE(100);g.W(this,this.IC);this.Bo.Z(this.IC,"tick",this.E8);this.j={seekableStart:0,seekableEnd:Z/1E3,current:0};this.start()}; g.mM=function(Z,Q){var z=Math.abs(Math.floor(Z)),K=Math.floor(z/86400),b=Math.floor(z%86400/3600),q=Math.floor(z%3600/60);z=Math.floor(z%60);if(Q){Q="";K>0&&(Q+=" "+K+" Days");if(K>0||b>0)Q+=" "+b+" Hours";Q+=" "+q+" Minutes";Q+=" "+z+" Seconds";K=Q.trim()}else{Q="";K>0&&(Q+=K+":",b<10&&(Q+="0"));if(K>0||b>0)Q+=b+":",q<10&&(Q+="0");Q+=q+":";z<10&&(Q+="0");K=Q+z}return Z>=0?K:"-"+K}; g.Is=function(Z){return(!("button"in Z)||typeof Z.button!=="number"||Z.button===0)&&!("shiftKey"in Z&&Z.shiftKey)&&!("altKey"in Z&&Z.altKey)&&!("metaKey"in Z&&Z.metaKey)&&!("ctrlKey"in Z&&Z.ctrlKey)}; J1=function(Z,Q,z,K,b,q,r){wV.call(this,Z,{B:"span",D:r?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",Q,z,K,b);this.videoAdDurationSeconds=q;this.j=null;this.api.V("clean_player_style_fix_on_web")&&this.element.classList.add("ytp-ad-duration-remaining--clean-player-with-light-shadow");r&&this.api.N().j&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),this.api.V("clean_player_style_fix_on_web")&&(this.element.classList.add("ytp-ad-duration-remaining--mweb-light"), th&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios")));this.hide()}; yd=function(Z,Q,z,K){FN.call(this,Z,Q,z,K,"ytp-video-ad-top-bar-title","ad-title");Z.V("enable_ad_pod_index_autohide")&&this.element.classList.add("ytp-video-ad-top-bar-title--clean-player")}; dB=function(Z){this.content=Z.content;if(Z.commandRuns){Z=g.n(Z.commandRuns);for(var Q=Z.next();!Q.done;Q=Z.next())Q=Q.value,this.loggingDirectives=g.V(Q,bjf),Q.onTap&&(this.interaction={onTap:Q.onTap})}}; Nj=function(Z,Q,z,K){Yf.call(this,Z,{B:"div",D:"ad-simple-attributed-string"},"ad-simple-attributed-string",Q,z,K);this.hide()}; G5=function(Z,Q,z,K,b){Yf.call(this,Z,{B:"span",D:b?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",Q,z,K);this.j=b;this.adBadgeText=new Nj(this.api,this.layoutId,this.interactionLoggingClientData,this.au);this.adBadgeText.zf(this.element);g.W(this,this.adBadgeText);b?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),this.api.V("clean_player_style_fix_on_web")&&(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player-with-light-shadow"),th&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios"))): this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; ic=function(Z,Q,z,K,b){Yf.call(this,Z,{B:"span",D:"ytp-ad-pod-index"},"ad-pod-index",Q,z,K);this.j=b;this.api.N().j&&(this.element.classList.add("ytp-ad-pod-index--mweb"),this.api.V("clean_player_style_fix_on_web")&&(this.element.classList.add("ytp-ad-pod-index--mweb-light"),th&&this.element.classList.add("ytp-ad-pod-index--mweb-ios")));this.hide()}; as=function(Z,Q,z,K){Yf.call(this,Z,{B:"div",D:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",Q,z,K);this.hide()}; PM=function(Z,Q){this.j=Z;this.Y=Q}; Rs=function(Z,Q,z){if(!Z.getLength())return z!=null?z:Infinity;Z=(Q-Z.j)/Z.getLength();return g.Al(Z,0,1)}; CF=function(Z,Q,z,K){K=K===void 0?!1:K;g.gV.call(this,{B:"div",D:"ytp-ad-persistent-progress-bar-container",G:[{B:"div",D:"ytp-ad-persistent-progress-bar"}]});this.api=Z;this.j=Q;this.S=z;K&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.W(this,this.j);this.progressBar=this.Ru("ytp-ad-persistent-progress-bar");this.Y=-1;this.Z(Z,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; pF=function(Z,Q,z,K,b,q){Yf.call(this,Z,{B:"div",D:"ytp-ad-player-overlay",G:[{B:"div",D:"ytp-ad-player-overlay-flyout-cta"},{B:"div",D:"ytp-ad-player-overlay-instream-info"},{B:"div",D:"ytp-ad-player-overlay-skip-or-preview"},{B:"div",D:"ytp-ad-player-overlay-progress-bar"},{B:"div",D:"ytp-ad-player-overlay-instream-user-sentiment"},{B:"div",D:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",Q,z,K);this.SJ=q;this.K=this.Ru("ytp-ad-player-overlay-flyout-cta");this.K.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.Y=this.Ru("ytp-ad-player-overlay-instream-info");this.W=null;qnn(this)&&(Z=ED("div"),g.rd(Z,"ytp-ad-player-overlay-top-bar-gradients"),this.api.V("disable_ad_preview_for_instream_ads")&&g.rd(Z,"ytp-ad-player-overlay-top-bar-gradients--clean-player"),Q=this.Y,Q.parentNode&&Q.parentNode.insertBefore(Z,Q),(Q=this.api.getVideoData(2))&&Q.isListed&&Q.title&&(z=new yd(this.api,this.layoutId,this.interactionLoggingClientData,this.au),z.zf(Z),z.init(bo("ad-title"),{text:Q.title},this.macros),g.W(this, z)),this.W=Z);this.S=null;this.U=this.Ru("ytp-ad-player-overlay-skip-or-preview");this.tG=this.Ru("ytp-ad-player-overlay-progress-bar");this.Vp=this.Ru("ytp-ad-player-overlay-instream-user-sentiment");this.KN=this.Ru("ytp-ad-player-overlay-ad-disclosure-banner");this.j=b;g.W(this,this.j);this.hide()}; qnn=function(Z){Z=Z.api.N();return g.HM(Z)&&Z.j}; Mj=function(Z,Q,z){var K={};Q&&(K.v=Q);z&&(K.list=z);Z={name:Z,locale:void 0,feature:void 0};for(var b in K)Z[b]=K[b];K=g.BK("/sharing_services",Z);g.of(K)}; g.U8=function(Z){Z&=16777215;var Q=[(Z&16711680)>>16,(Z&65280)>>8,Z&255];Z=Q[0];var z=Q[1];Q=Q[2];Z=Number(Z);z=Number(z);Q=Number(Q);if(Z!=(Z&255)||z!=(z&255)||Q!=(Q&255))throw Error('"('+Z+","+z+","+Q+'") is not a valid RGB color');z=Z<<16|z<<8|Q;return Z<16?"#"+(16777216|z).toString(16).slice(1):"#"+z.toString(16)}; O8=function(Z){this.Y=new i_(Z)}; rfu=function(){var Z=!1;try{Z=!!window.sessionStorage.getItem("session_logininfo")}catch(Q){Z=!0}return(g.Ft("INNERTUBE_CLIENT_NAME")==="WEB"||g.Ft("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&Z}; os=function(Z){if(g.Ft("LOGGED_IN",!0)&&rfu()){var Q=g.Ft("VALID_SESSION_TEMPDATA_DOMAINS",[]);var z=g.pE(window.location.href);z&&Q.push(z);z=g.pE(Z);g.wX(Q,z)||!z&&mw(Z,"/")?(Q=HK(Z),(Q=hT9(Q))?(Q=CbX(Q),Q=(Q=g.Mi(Q)||null)?zr(Q):{}):Q=null):Q=null;Q==null&&(Q={});z=Q;var K=void 0;rfu()?(K||(K=g.Ft("LOGIN_INFO")),K?(z.session_logininfo=K,z=!0):z=!1):z=!1;z&&d9(Z,Q)}}; g.Af9=function(Z){var Q=Q===void 0?{}:Q;var z=z===void 0?"":z;var K=K===void 0?window:K;Z=g.BK(Z,Q);os(Z);z=g.au(Z+z);K=K.location;z=PB(z);z!==void 0&&(K.href=z)}; g.BM=function(Z,Q,z){Q=Q===void 0?{}:Q;z=z===void 0?!1:z;var K=g.Ft("EVENT_ID");K&&(Q.ei||(Q.ei=K));Q&&d9(Z,Q);z||(os(Z),g.Af9(Z))}; g.WM=function(Z,Q,z,K,b){b=b===void 0?!1:b;z&&d9(Z,z);z=g.au(Z);var q=g.N0(z);Z!=q&&sS(Error("Unsafe window.open URL: "+Z));Z=q;Q=Q||lS(Z).toString(36);try{if(b){b=Z;b=vqX(b);os(b);g.M0(window,b,Q,"attributionsrc");return}}catch(r){g.Ef(r)}os(Z);g.M0(window,z,Q,K)}; jfG=function(Z){Vd=Z}; DQM=function(Z){kC=Z}; vSX=function(Z){uc=Z}; YnM=function(){gSG=uc=kC=Vd=null}; Snx=function(){var Z=Z===void 0?window.location.href:Z;if(g.nA("kevlar_disable_theme_param"))return null;var Q=PK(g.CE(5,Z));if(g.nA("enable_dark_theme_only_on_shorts")&&Q!=null&&Q.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var z=g.bV(Z).theme;return XSd.get(z)||null}catch(K){}return null}; xC=function(){this.Y={};if(this.j=$DD()){var Z=g.Mi("CONSISTENCY");Z&&$Qu(this,{encryptedTokenJarContents:Z})}}; $Qu=function(Z,Q){if(Q.encryptedTokenJarContents&&(Z.Y[Q.encryptedTokenJarContents]=Q,typeof Q.expirationSeconds==="string")){var z=Number(Q.expirationSeconds);setTimeout(function(){delete Z.Y[Q.encryptedTokenJarContents]},z*1E3); Z.j&&g.HX("CONSISTENCY",Q.encryptedTokenJarContents,z,void 0,!0)}}; Fw=function(){this.j=-1;var Z=g.Ft("LOCATION_PLAYABILITY_TOKEN");g.Ft("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=t1(this))&&(Z=this.localStorage.get("yt-location-playability-token"));Z&&(this.locationPlayabilityToken=Z,this.Y=void 0)}; t1=function(Z){return Z.localStorage===void 0?new Kc("yt-client-location"):Z.localStorage}; g.eq=function(Z,Q,z){Q=Q===void 0?!1:Q;z=z===void 0?!1:z;var K=g.Ft("INNERTUBE_CONTEXT");if(!K)return g.Rm(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};K=g.Pa(K);g.nA("web_no_tracking_params_in_shell_killswitch")||delete K.clickTracking;K.client||(K.client={});var b=K.client;b.clientName==="MWEB"&&b.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(b.clientFormFactor=g.Ft("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");b.screenWidthPoints=window.innerWidth;b.screenHeightPoints= window.innerHeight;b.screenPixelDensity=Math.round(window.devicePixelRatio||1);b.screenDensityFloat=window.devicePixelRatio||1;b.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var q=q===void 0?!1:q;g.B6();var r="USER_INTERFACE_THEME_LIGHT";g.W6(0,165)?r="USER_INTERFACE_THEME_DARK":g.W6(0,174)?r="USER_INTERFACE_THEME_LIGHT":!g.nA("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& (r="USER_INTERFACE_THEME_DARK");q=q?r:Snx()||r;b.userInterfaceTheme=q;if(!Q){if(q=zwM())b.connectionType=q;g.nA("web_log_effective_connection_type")&&(q=bmd())&&(K.client.effectiveConnectionType=q)}var D;if(g.nA("web_log_memory_total_kbytes")&&((D=g.OG.navigator)==null?0:D.deviceMemory)){var v;D=(v=g.OG.navigator)==null?void 0:v.deviceMemory;K.client.memoryTotalKbytes=""+D*1E6}g.nA("web_gcf_hashes_innertube")&&(q=g2x())&&(v=q.coldConfigData,D=q.coldHashData,q=q.hotHashData,K.client.configInfo=K.client.configInfo|| {},v&&(K.client.configInfo.coldConfigData=v),D&&(K.client.configInfo.coldHashData=D),q&&(K.client.configInfo.hotHashData=q));v=g.bV(g.OG.location.href);!g.nA("web_populate_internal_geo_killswitch")&&v.internalcountrycode&&(b.internalGeo=v.internalcountrycode);b.clientName==="MWEB"||b.clientName==="WEB"?(b.mainAppWebInfo={graftUrl:g.OG.location.href},g.nA("kevlar_woffle")&&ejG.instance&&(v=ejG.instance,b.mainAppWebInfo.pwaInstallabilityStatus=!v.Y&&v.j?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": "PWA_INSTALLABILITY_STATUS_UNKNOWN"),b.mainAppWebInfo.webDisplayMode=U7(),b.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):b.clientName==="TVHTML5"&&(!g.nA("web_lr_app_quality_killswitch")&&(v=g.Ft("LIVING_ROOM_APP_QUALITY"))&&(b.tvAppInfo=Object.assign(b.tvAppInfo||{},{appQuality:v})),v=g.Ft("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(b.tvAppInfo=Object.assign(b.tvAppInfo||{},{certificationScope:v}));if(!g.nA("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== "undefined")try{var Y=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(U){}Y=void 0}Y&&(b.timeZone=Y)}(Y=mY())?b.experimentsToken=Y:delete b.experimentsToken;Y=In();xC.instance||(xC.instance=new xC);K.request=Object.assign({},K.request,{internalExperimentFlags:Y,consistencyTokenJars:g.m6(xC.instance.Y)});!g.nA("web_prequest_context_killswitch")&&(Y=g.Ft("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(K.request.externalPrequestContext=Y);b=g.B6();Y=g.W6(0,58);b=b.get("gsml","");K.user=Object.assign({}, K.user);Y&&(K.user.enableSafetyMode=Y);b&&(K.user.lockedSafetyMode=!0);g.nA("warm_op_csn_cleanup")?z&&(Q=g.Jy())&&(K.clientScreenNonce=Q):!Q&&(Q=g.Jy())&&(K.clientScreenNonce=Q);Z&&(K.clickTracking={clickTrackingParams:Z});if(Z=g.WG("yt.mdx.remote.remoteClient_"))K.remoteClient=Z;Fw.getInstance().setLocationOnInnerTubeContext(K);try{var X=Yq(),S=X.bid;delete X.bid;K.adSignalsInfo={params:[],bid:S};for(var T=g.n(Object.entries(X)),f=T.next();!f.done;f=T.next()){var h=g.n(f.value),m=h.next().value, J=h.next().value;X=m;S=J;Z=void 0;(Z=K.adSignalsInfo.params)==null||Z.push({key:X,value:""+S})}var d,G;if(((d=K.client)==null?void 0:d.clientName)==="TVHTML5"||((G=K.client)==null?void 0:G.clientName)==="TVHTML5_UNPLUGGED"){var R=g.Ft("INNERTUBE_CONTEXT");R.adSignalsInfo&&(K.adSignalsInfo.advertisingId=R.adSignalsInfo.advertisingId,K.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",K.adSignalsInfo.limitAdTracking=R.adSignalsInfo.limitAdTracking)}}catch(U){g.Rm(U)}return K}; hkW=function(Z,Q){if(!Z)return!1;var z,K=(z=g.V(Z,TM0))==null?void 0:z.signal;if(K&&Q.Aw)return!!Q.Aw[K];var b;if((z=(b=g.V(Z,f4W))==null?void 0:b.request)&&Q.Nv)return!!Q.Nv[z];for(var q in Z)if(Q.EJ[q])return!0;return!1}; Lpx=function(Z){var Q={"Content-Type":"application/json"};g.Ft("EOM_VISITOR_DATA")?Q["X-Goog-EOM-Visitor-Id"]=g.Ft("EOM_VISITOR_DATA"):g.Ft("VISITOR_DATA")&&(Q["X-Goog-Visitor-Id"]=g.Ft("VISITOR_DATA"));Q["X-Youtube-Bootstrap-Logged-In"]=g.Ft("LOGGED_IN",!1);g.Ft("DEBUG_SETTINGS_METADATA")&&(Q["X-Debug-Settings-Metadata"]=g.Ft("DEBUG_SETTINGS_METADATA"));Z!=="cors"&&((Z=g.Ft("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(Q["X-Youtube-Client-Name"]=Z),(Z=g.Ft("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(Q["X-Youtube-Client-Version"]= Z),(Z=g.Ft("CHROME_CONNECTED_HEADER"))&&(Q["X-Youtube-Chrome-Connected"]=Z),(Z=g.Ft("DOMAIN_ADMIN_STATE"))&&(Q["X-Youtube-Domain-Admin-State"]=Z),g.Ft("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(Z=g.Ft("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(Q["X-YouTube-Lava-Device-Context"]=Z));return Q}; nSf=function(){this.Y={}}; wB=function(){this.mappings=new nSf}; E8=function(Z){return function(){return new Z}}; mQ9=function(Z){var Q=Q===void 0?"UNKNOWN_INTERFACE":Q;if(Z.length===1)return Z[0];var z=cf0[Q];if(z){z=new RegExp(z);for(var K=g.n(Z),b=K.next();!b.done;b=K.next())if(b=b.value,z.exec(b))return b}var q=[];Object.entries(cf0).forEach(function(r){var D=g.n(r);r=D.next().value;D=D.next().value;Q!==r&&q.push(D)}); z=new RegExp(q.join("|"));Z.sort(function(r,D){return r.length-D.length}); K=g.n(Z);for(b=K.next();!b.done;b=K.next())if(b=b.value,!z.exec(b))return b;return Z[0]}; g.lc=function(Z){return"/youtubei/v1/"+mQ9(Z)}; ZU=function(){}; QY=function(){}; za=function(){}; KV=function(Z){return g.WG("ytcsi."+(Z||"")+"data_")||I49(Z)}; Jfn=function(){var Z=KV();Z.info||(Z.info={});return Z.info}; $p=function(Z){Z=KV(Z);Z.metadata||(Z.metadata={});return Z.metadata}; Ta=function(Z){Z=KV(Z);Z.tick||(Z.tick={});return Z.tick}; fV=function(Z){Z=KV(Z);if(Z.gel){var Q=Z.gel;Q.gelInfos||(Q.gelInfos={});Q.gelTicks||(Q.gelTicks={})}else Z.gel={gelTicks:{},gelInfos:{}};return Z.gel}; yfX=function(Z){Z=fV(Z);Z.gelInfos||(Z.gelInfos={});return Z.gelInfos}; h4=function(Z){var Q=KV(Z).nonce;Q||(Q=g.c9(16),KV(Z).nonce=Q);return Q}; I49=function(Z){var Q={tick:{},info:{}};g.BG("ytcsi."+(Z||"")+"data_",Q);return Q}; LV=function(){var Z=g.WG("ytcsi.debug");Z||(Z=[],g.BG("ytcsi.debug",Z),g.BG("ytcsi.reference",{}));return Z}; nV=function(Z){Z=Z||"";var Q=dQG();if(Q[Z])return Q[Z];var z=LV(),K={timerName:Z,info:{},tick:{},span:{},jspbInfo:[]};z.push(K);return Q[Z]=K}; NM4=function(Z){Z=Z||"";var Q=dQG();Q[Z]&&delete Q[Z];var z=LV(),K={timerName:Z,info:{},tick:{},span:{},jspbInfo:[]};z.push(K);Q[Z]=K}; dQG=function(){var Z=g.WG("ytcsi.reference");if(Z)return Z;LV();return g.WG("ytcsi.reference")}; cO=function(Z){return GlX[Z]||"LATENCY_ACTION_UNKNOWN"}; mh=function(Z,Q){X3.call(this,1,arguments);this.IC=Q}; IC=function(){this.Y=0}; J4=function(){IC.instance||(IC.instance=new IC);return IC.instance}; dh=function(Z,Q){yY[Q]=yY[Q]||{count:0};var z=yY[Q];z.count++;z.time=(0,g.Nm)();Z.Y||(Z.Y=g.lb(0,function(){var K=(0,g.Nm)(),b;for(b in yY)yY[b]&&K-yY[b].time>6E4&&delete yY[b];Z&&(Z.Y=0)},5E3)); return z.count>5?(z.count===6&&Math.random()*1E5<1&&(z=new g.tW("CSI data exceeded logging limit with key",Q.split("_")),Q.indexOf("plev")>=0||g.CO(z)),!0):!1}; ij0=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; a4x=function(){var Z;if(g.nA("csi_use_performance_navigation_timing")||g.nA("csi_use_performance_navigation_timing_tvhtml5")){var Q,z,K,b=NX==null?void 0:(Z=NX.getEntriesByType)==null?void 0:(Q=Z.call(NX,"navigation"))==null?void 0:(z=Q[0])==null?void 0:(K=z.toJSON)==null?void 0:K.call(z);b?(b.requestStart=Ga(b.requestStart),b.responseEnd=Ga(b.responseEnd),b.redirectStart=Ga(b.redirectStart),b.redirectEnd=Ga(b.redirectEnd),b.domainLookupEnd=Ga(b.domainLookupEnd),b.connectStart=Ga(b.connectStart), b.connectEnd=Ga(b.connectEnd),b.responseStart=Ga(b.responseStart),b.secureConnectionStart=Ga(b.secureConnectionStart),b.domainLookupStart=Ga(b.domainLookupStart),b.isPerformanceNavigationTiming=!0,Z=b):Z=NX.timing}else Z=g.nA("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(NX.timing)):NX.timing;return Z}; Ga=function(Z){return Math.round(iK()+Z)}; iK=function(){return(g.nA("csi_use_time_origin")||g.nA("csi_use_time_origin_tvhtml5"))&&NX.timeOrigin?Math.floor(NX.timeOrigin):NX.timing.navigationStart}; PO=function(Z,Q){aC("_start",Z,Q)}; RC=function(Z,Q){if(!g.nA("web_csi_action_sampling_enabled")||!KV(Q).actionDisabled){var z=nV(Q||"");g1(z.info,Z);Z.loadType&&(z=Z.loadType,$p(Q).loadType=z);g1(yfX(Q),Z);z=h4(Q);Q=KV(Q).cttAuthInfo;J4().info(Z,z,Q)}}; PCW=function(){var Z,Q,z,K;return((K=RY().resolve(new NF(j7))==null?void 0:(Z=D4())==null?void 0:(Q=Z.loggingHotConfig)==null?void 0:(z=Q.csiConfig)==null?void 0:z.debugTicks)!=null?K:[]).map(function(b){return Object.values(b)[0]})}; aC=function(Z,Q,z){if(!g.nA("web_csi_action_sampling_enabled")||!KV(z).actionDisabled){var K=h4(z),b;if(b=g.nA("web_csi_debug_sample_enabled")&&K){(RY().resolve(new NF(j7))==null?0:D4())&&!RkG&&(RkG=!0,aC("gcfl",(0,g.Nm)(),z));var q,r,D;b=(RY().resolve(new NF(j7))==null?void 0:(q=D4())==null?void 0:(r=q.loggingHotConfig)==null?void 0:(D=r.csiConfig)==null?void 0:D.debugSampleWeight)||0;if(q=b!==0)b:{q=PCW();if(q.length>0)for(r=0;r<q.length;r++)if(Z===q[r]){q=!0;break b}q=!1}q?(b=z4G(K)%b!==0,KV(z).debugTicksExcludedLogged|| (q={},q.debugTicksExcluded=b,RC(q,z)),KV(z).debugTicksExcludedLogged=!0):b=!1}if(!b){if(Z[0]!=="_"&&(b=Z,q=Q,NX.mark))if(b.startsWith("mark_")||(b="mark_"+b),z&&(b+=" ("+z+")"),q===void 0||g.nA("web_csi_disable_alt_time_performance_mark"))NX.mark(b);else{q=g.nA("csi_use_performance_navigation_timing")||g.nA("csi_use_performance_navigation_timing_tvhtml5")?q-NX.timeOrigin:q-(NX.timeOrigin||NX.timing.navigationStart);try{NX.mark(b,{startTime:q})}catch(v){}}b=nV(z||"");b.tick[Z]=Q||(0,g.Nm)();if(b.callback&& b.callback[Z])for(b=g.n(b.callback[Z]),q=b.next();!q.done;q=b.next())q=q.value,q();b=fV(z);b.gelTicks&&(b.gelTicks[Z]=!0);q=Ta(z);b=Q||(0,g.Nm)();g.nA("log_repeated_ytcsi_ticks")?Z in q||(q[Z]=b):q[Z]=b;q=KV(z).cttAuthInfo;Z==="_start"?(Z=J4(),dh(Z,"baseline_"+K)||g.DW("latencyActionBaselined",{clientActionNonce:K},{timestamp:Q,cttAuthInfo:q})):J4().tick(Z,K,Q,q);CCM(z);return b}}}; pS9=function(){var Z,Q=(Z=NX.getEntriesByType)==null?void 0:Z.call(NX,"mark");Q&&Q.forEach(function(z){if(z.name.startsWith("mark_")){var K;(K=NX.clearMarks)==null||K.call(NX,z.name)}})}; Hjn=function(){switch(H8f()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}}; M7X=function(Z){function Q(q,r,D){r=r.match("_rid")?r.split("_rid")[0]:r;typeof D==="number"&&(D=JSON.stringify(D));q.requestIds?q.requestIds.push({endpoint:r,id:D}):q.requestIds=[{endpoint:r,id:D}]} var z={};Z=g.n(Object.entries(Z));for(var K=Z.next();!K.done;K=Z.next()){var b=g.n(K.value);K=b.next().value;b=b.next().value;switch(K){case "GetBrowse_rid":Q(z,K,b);break;case "GetGuide_rid":Q(z,K,b);break;case "GetHome_rid":Q(z,K,b);break;case "GetPlayer_rid":Q(z,K,b);break;case "GetSearch_rid":Q(z,K,b);break;case "GetSettings_rid":Q(z,K,b);break;case "GetTrending_rid":Q(z,K,b);break;case "GetWatchNext_rid":Q(z,K,b);break;case "yt_red":z.isRedSubscriber=!!b;break;case "yt_ad":z.isMonetized=!!b}}return z}; UQr=function(Z,Q){Z=document.querySelector(Z);if(!Z)return!1;var z="",K=Z.nodeName;K==="SCRIPT"?(z=Z.src,z||(z=Z.getAttribute("data-timing-href"))&&(z=window.location.protocol+z)):K==="LINK"&&(z=Z.href);U3(document)&&Z.setAttribute("nonce",U3(document));return z?(Z=NX.getEntriesByName(z))&&Z[0]&&(Z=Z[0],z=iK(),aC("rsf_"+Q,z+Math.round(Z.fetchStart)),aC("rse_"+Q,z+Math.round(Z.responseEnd)),Z.transferSize!==void 0&&Z.transferSize===0)?!0:!1:!1}; Ojn=function(){var Z=window.location.protocol,Q=NX.getEntriesByType("resource");Q=g.jr(Q,function(z){return z.name.indexOf(Z+"//fonts.gstatic.com/s/")===0}); (Q=J$(Q,function(z,K){return K.duration>z.duration?K:z},{duration:0}))&&Q.startTime>0&&Q.responseEnd>0&&(aC("wffs",Ga(Q.startTime)),aC("wffe",Ga(Q.responseEnd)))}; oSd=function(Z,Q,z){NX&&NX.measure&&(Z.startsWith("measure_")||(Z="measure_"+Z),z?NX.measure(Z,Q,z):Q?NX.measure(Z,Q):NX.measure(Z))}; BMG=function(Z){var Q=CV("aft",Z);if(Q)return Q;Q=g.Ft((Z||"")+"TIMING_AFT_KEYS",["ol"]);for(var z=Q.length,K=0;K<z;K++){var b=CV(Q[K],Z);if(b)return b}return NaN}; pV=function(Z,Q){g.BG("ytglobal.timing"+(Q||"")+"ready_",Z)}; CV=function(Z,Q){if(Z=Ta(Q)[Z])return typeof Z==="number"?Z:Z[Z.length-1]}; CCM=function(Z){var Q=CV("_start",Z),z=BMG(Z),K=g.nA("enable_cow_info_csi")||!Wpu;Q&&z&&K&&(Tl(V79,new mh(Math.round(z-Q),Z)),Wpu=!0)}; kln=function(){if(NX.getEntriesByType){var Z=NX.getEntriesByType("paint");if(Z=g.Fm(Z,function(z){return z.name==="first-paint"}))return Ga(Z.startTime)}var Q; g.nA("csi_use_performance_navigation_timing")||g.nA("csi_use_performance_navigation_timing_tvhtml5")?Q=NX.getEntriesByType("first-paint")[0].startTime:Q=NX.timing.f4h;return Q?Math.max(0,Q):0}; HO=function(Z){I49(Z);u3u();pS9();Z||(g.Ft("TIMING_ACTION")&&ts("PREVIOUS_ACTION",g.Ft("TIMING_ACTION")),ts("TIMING_ACTION",""))}; xQG=function(){var Z=["pbs","pbu"];g.lW(function(){nV("").info.actionType="watch";Z&&ts("TIMING_AFT_KEYS",Z);ts("TIMING_ACTION","watch");var Q=M7X(g.Ft("TIMING_INFO",{}));Object.keys(Q).length>0&&RC(Q);Q={isNavigation:!0,actionType:cO(g.Ft("TIMING_ACTION"))};var z=g.Ft("PREVIOUS_ACTION");z&&(Q.previousAction=cO(z));if(z=g.Ft("CLIENT_PROTOCOL"))Q.httpProtocol=z;if(z=g.Ft("CLIENT_TRANSPORT"))Q.transportProtocol=z;(z=g.Jy())&&z!=="UNDEFINED_CSN"&&(Q.clientScreenNonce=z);z=Hjn();if(z===1||z===-1)Q.isVisible= !0;z=$p().loadType==="cold";var K=Jfn();z||(z=K.yt_lt==="cold");if(z){Q.loadType="cold";z=Jfn();K=a4x();var b=iK(),q=g.Ft("CSI_START_TIMESTAMP_MILLIS",0);q>0&&!g.nA("embeds_web_enable_csi_start_override_killswitch")&&(b=q);b&&(aC("srt",K.responseStart),z.prerender!==1&&PO(b));z=kln();z>0&&aC("fpt",z);z=a4x();z.isPerformanceNavigationTiming&&RC({performanceNavigationTiming:!0},void 0);aC("nreqs",z.requestStart,void 0);aC("nress",z.responseStart,void 0);aC("nrese",z.responseEnd,void 0);z.redirectEnd- z.redirectStart>0&&(aC("nrs",z.redirectStart,void 0),aC("nre",z.redirectEnd,void 0));z.domainLookupEnd-z.domainLookupStart>0&&(aC("ndnss",z.domainLookupStart,void 0),aC("ndnse",z.domainLookupEnd,void 0));z.connectEnd-z.connectStart>0&&(aC("ntcps",z.connectStart,void 0),aC("ntcpe",z.connectEnd,void 0));z.secureConnectionStart>=iK()&&z.connectEnd-z.secureConnectionStart>0&&(aC("nstcps",z.secureConnectionStart,void 0),aC("ntcpe",z.connectEnd,void 0));NX&&"getEntriesByType"in NX&&Ojn();z=[];if(document.querySelector&& NX&&NX.getEntriesByName)for(var r in MX)MX.hasOwnProperty(r)&&(K=MX[r],UQr(r,K)&&z.push(K));if(z.length>0)for(Q.resourceInfo=[],r=g.n(z),z=r.next();!z.done;z=r.next())Q.resourceInfo.push({resourceCache:z.value})}RC(Q);Q=fV();Q.preLoggedGelInfos||(Q.preLoggedGelInfos=[]);r=Q.preLoggedGelInfos;Q=yfX();z=void 0;for(K=0;K<r.length;K++)if(b=r[K],b.loadType){z=b.loadType;break}if($p().loadType==="cold"&&(Q.loadType==="cold"||z==="cold")){z=Ta();K=fV();K=K.gelTicks?K.gelTicks:K.gelTicks={};for(var D in z)if(!(D in K))if(typeof z[D]==="number")aC(D,CV(D));else if(g.nA("log_repeated_ytcsi_ticks"))for(b=g.n(z[D]),q=b.next();!q.done;q=b.next())aC(D.slice(1),q.value);D={};z=!1;r=g.n(r);for(K=r.next();!K.done;K=r.next())z=K.value,g1(Q,z),g1(D,z),z=!0;z&&RC(D)}pV(!0);D=g.Ft("TIMING_ACTION");g.WG("ytglobal.timingready_")&&D&&Uw()&&BMG()&&CCM()})()}; t79=function(){var Z=Z===void 0?{}:Z;g.lW(function(){Uw()&&Ow("aa",void 0,void 0);NM4();HO();pV(!1);Z.cttAuthInfo&&(KV().cttAuthInfo=Z.cttAuthInfo);ts("TIMING_AFT_KEYS",[]);Z.Rsg?g.oC({loadType:"hot"}):g.oC({loadType:"warm"});ts("TIMING_ACTION","");delete g.Ft("TIMING_INFO",{}).yt_lt;g.lW(PO)(Z.startTime,void 0)})()}; BO=function(Z,Q){Q=Q===void 0?{}:Q;g.lW(function(){Fpd(Z);var z=Q.sampleRate;if(!g.nA("web_csi_action_sampling_enabled")||z===void 0||z<=1)z=!1;else{var K=h4(Z);z=z4G(K)%z!==0}z&&(KV(Z).actionDisabled=!0);nV(Z||"").info.actionType=Z;Q.cttAuthInfo&&(KV(Z).cttAuthInfo=Q.cttAuthInfo);ts(Z+"TIMING_ACTION",Z);g.lW(PO)(Q.startTime,Z);z={actionType:cO(Z)};Q.rJf&&(z.previousAction=cO(g.Ft("TIMING_ACTION")));(K=g.Jy())&&K!=="UNDEFINED_CSN"&&(z.clientScreenNonce=K);g.oC(z,Z);pV(!0,Z)})()}; Fpd=function(Z){g.lW(function(){Uw(Z)&&Ow("aa",void 0,Z);NM4(Z);HO(Z)})()}; Uw=function(Z){return g.lW(function(){return WO("_start",Z)})()}; g.oC=function(Z,Q,z){g.lW(RC)(Z,Q,z===void 0?!1:z)}; Ow=function(Z,Q,z){return g.lW(aC)(Z,Q,z)}; ekX=function(Z){g.lW(oSd)("action_finished",Z,void 0)}; WO=function(Z,Q){return g.lW(function(){var z=Ta(Q);return Z in z})()}; ESx=function(Z){if(!g.nA("universal_csi_network_ticks"))return"";Z=PK(g.CE(5,Z))||"";for(var Q=Object.keys(wS4),z=0;z<Q.length;z++){var K=Q[z];if(Z.includes(K))return K}return""}; sY4=function(Z){if(!g.nA("universal_csi_network_ticks"))return function(){}; var Q=wS4[Z];return Q?(VY(Q),function(){var z=g.nA("universal_csi_network_ticks")?(z=l4x[Z])?VY(z):!1:!1;return z}):function(){}}; VY=function(Z,Q){return g.lW(function(){if(WO(Z,Q))return!1;Ow(Z,void 0,Q);return!0})()}; kp=function(Z,Q,z){g.lW(function(){if(!Uw(z)||WO(Z,z))return!1;Ow(Z,Q,z);return!0})()}; Zln=function(){g.lW(function(){var Z=h4();requestAnimationFrame(function(){setTimeout(function(){Z===h4()&&Ow("ftl",void 0,void 0)},0)})})()}; uK=function(Z,Q,z,K){this.d3=Z;this.Tp=Q;this.Y=z;this.W=K;this.S=void 0;this.j=new Map;Z.Aw||(Z.Aw={});Z.Aw=Object.assign({},QYM,Z.Aw)}; zNn=function(Z,Q,z,K){if(uK.instance!==void 0){if(K=uK.instance,Z=[Z!==K.d3,Q!==K.Tp,z!==K.Y,!1,!1,!1,void 0!==K.S],Z.some(function(b){return b}))throw new g.tW("InnerTubeTransportService is already initialized",Z); }else uK.instance=new uK(Z,Q,z,K)}; xp=function(Z,Q,z){var K=K===void 0?YS:K;var b=KH9(Z,Q);return b?new g.XA(function(q,r){var D,v,Y,X,S;return g.C(function(T){switch(T.Y){case 1:return g.P(T,b,2);case 2:D=T.j;v=D.L(Q,z,K);if(!v){r(new g.tW("Error: Failed to build request for command.",Q));T.O$(0);break}os(v.input);X=((Y=v.dw)==null?void 0:Y.mode)==="cors"?"cors":void 0;if(Z.Y.Eh){S=blG(Z,v.config,X);T.O$(4);break}return g.P(T,qh9(Z,v.config,X),5);case 5:S=T.j;case 4:q(rX0(Z,v,S)),g.LX(T)}})}):TD(new g.tW("Error: No request builder found for command.", Q))}; g.t4=function(Z,Q,z,K,b){function q(){} b=b===void 0?{nO:{identity:YS}}:b;var r=r===void 0?!0:r;q=sY4(ESx(z));Q.context||(Q.context=g.eq(K,r));return new g.XA(function(D){var v,Y,X,S,T;return g.C(function(f){if(f.Y==1)return v=OS(z),Y=AN(v)?"same-origin":"cors",Z.Y.Eh?(X=blG(Z,b,Y),f.O$(2)):g.P(f,qh9(Z,b,Y),3);f.Y!=2&&(X=f.j);S=T2f(OS(z));T={input:S,dw:on(S),MO:Q,config:b};D(rX0(Z,T,X,q));g.LX(f)})})}; jYD=function(Z,Q,z){var K;if(Q&&!(Q==null?0:(K=Q.sequenceMetaData)==null?0:K.skipProcessing)&&Z.W){K=g.n(AXu);for(var b=K.next();!b.done;b=K.next())b=b.value,Z.W[b]&&Z.W[b].handleResponse(Q,z)}}; rX0=function(Z,Q,z,K){K=K===void 0?function(){}:K; var b,q,r,D,v,Y,X,S,T,f,h,m,J,d,G,R,U,B,e,F,KX,rf,sG,k,l,c,u,o0,nz,gX;return g.C(function(df){switch(df.Y){case 1:df.O$(2);break;case 3:if((b=df.j)&&!b.isExpired())return df.return(Promise.resolve(b.Y()));case 2:if(!((q=Q)==null?0:(r=q.MO)==null?0:r.context)){df.O$(4);break}D=Q.MO.context;df.O$(5);break;case 5:v=g.n([]),Y=v.next();case 8:if(Y.done){df.O$(4);break}X=Y.value;return g.P(df,X.qup(D),9);case 9:Y=v.next();df.O$(8);break;case 4:if((S=Z.S)==null||!S.K7B(Q.input,Q.MO)){df.O$(12);break}return g.P(df, Z.S.FXh(Q.input,Q.MO),13);case 13:return T=df.j,jYD(Z,T,Q),df.return(T);case 12:return(m=(h=Q.config)==null?void 0:h.Nf)&&Z.j.has(m)?f=Z.j.get(m):(J=JSON.stringify(Q.MO),R=(G=(d=Q.dw)==null?void 0:d.headers)!=null?G:{},Q.dw=Object.assign({},Q.dw,{headers:Object.assign({},R,z)}),U=Object.assign({},Q.dw),Q.dw.method==="POST"&&(U=Object.assign({},U,{body:J})),((B=Q.config)==null?0:B.PzF)&&Ow(Q.config.PzF),e=function(){return Z.Tp.fetch(Q.input,U,Q.config)},f=e(),m&&Z.j.set(m,f)),g.P(df,f,14); case 14:if((F=df.j)&&"error"in F&&((KX=F)==null?0:(rf=KX.error)==null?0:rf.details))for(sG=F.error.details,k=g.n(sG),l=k.next();!l.done;l=k.next())c=l.value,(u=c["@type"])&&DFu.indexOf(u)>-1&&(delete c["@type"],F=c);m&&Z.j.has(m)&&Z.j.delete(m);((o0=Q.config)==null?0:o0.JNg)&&Ow(Q.config.JNg);if(F||(nz=Z.S)==null||!nz.O9p(Q.input,Q.MO)){df.O$(15);break}return g.P(df,Z.S.nxB(Q.input,Q.MO),16);case 16:F=df.j;case 15:return jYD(Z,F,Q),((gX=Q.config)==null?0:gX.XgI)&&Ow(Q.config.XgI),K(),df.return(F|| void 0)}})}; KH9=function(Z,Q){a:{Z=Z.d3;var z,K=(z=g.V(Q,TM0))==null?void 0:z.signal;if(K&&Z.Aw&&(z=Z.Aw[K])){var b=z();break a}var q;if((z=(q=g.V(Q,f4W))==null?void 0:q.request)&&Z.Nv&&(q=Z.Nv[z])){b=q();break a}for(b in Q)if(Z.EJ[b]&&(Q=Z.EJ[b])){b=Q();break a}b=void 0}if(b!==void 0)return Promise.resolve(b)}; qh9=function(Z,Q,z){var K,b,q,r,D,v,Y;return g.C(function(X){if(X.Y==1){q=((K=Q)==null?void 0:(b=K.nO)==null?void 0:b.identity)||YS;v=(r=Q)==null?void 0:(D=r.nO)==null?void 0:D.sessionIndex;var S=g.$7(Z.Y.rH(q,{sessionIndex:v}));return g.P(X,S,2)}Y=X.j;return X.return(Promise.resolve(Object.assign({},Lpx(z),Y)))})}; blG=function(Z,Q,z){var K,b=(Q==null?void 0:(K=Q.nO)==null?void 0:K.identity)||YS,q;Q=Q==null?void 0:(q=Q.nO)==null?void 0:q.sessionIndex;Z=Z.Y.rH(b,{sessionIndex:Q});return Object.assign({},Lpx(z),Z)}; FS=function(){}; eI=function(){}; wh=function(Z){this.K=Z}; Ew=function(){}; lK=function(){}; sP=function(){}; ZV=function(){}; g.Q5=function(Z,Q){var z=g.iu.apply(2,arguments);Z=Z===void 0?0:Z;g.tW.call(this,Q,z);this.errorType=Z;Object.setPrototypeOf(this,this.constructor.prototype)}; z0=function(Z,Q,z){this.Y=Z;this.j=Q;this.S=z}; v9W=function(Z,Q,z){if(Z.Y){var K=PK(g.CE(5,k7(Q,"key")))||"/UNKNOWN_PATH";Z.Y.start(K)}Z=z;g.nA("wug_networking_gzip_request")&&(Z=Vtr(z));return new window.Request(Q,Z)}; g.b9=function(Z,Q){if(!Ke){var z=RY();Gt(z,{vV:g9n,fp:z0});var K={EJ:{feedbackEndpoint:E8(Ew),modifyChannelNotificationPreferenceEndpoint:E8(lK),playlistEditEndpoint:E8(sP),shareEntityEndpoint:E8(wh),subscribeEndpoint:E8(FS),unsubscribeEndpoint:E8(eI),webPlayerShareEntityServiceEndpoint:E8(ZV)}},b=Fw.getInstance(),q={};b&&(q.client_location=b);Z===void 0&&(Z=wkX());Q===void 0&&(Q=z.resolve(g9n));zNn(K,Q,Z,q);Gt(z,{vV:Yhr,Lk:uK.instance});Ke=z.resolve(Yhr)}return Ke}; X94=function(Z){var Q=new gK;if(Z.interpreterJavascript){var z=aru(Z.interpreterJavascript);z=ou(z).toString();var K=new DY;Tk(K,6,z);jp(Q,DY,1,K)}else Z.interpreterUrl&&(z=Iz(Z.interpreterUrl),z=yR(z).toString(),K=new vj,Tk(K,4,z),jp(Q,vj,2,K));Z.interpreterHash&&fu(Q,3,Z.interpreterHash);Z.program&&fu(Q,4,Z.program);Z.globalName&&fu(Q,5,Z.globalName);Z.clientExperimentsStateBlob&&fu(Q,7,Z.clientExperimentsStateBlob);return Q}; qH=function(Z){var Q={};Z=Z.split("&");Z=g.n(Z);for(var z=Z.next();!z.done;z=Z.next())z=z.value.split("="),z.length===2&&(Q[z[0]]=z[1]);return Q}; E4n=function(){if(g.nA("bg_st_hr"))return"havuokmhhs-0";var Z,Q=((Z=performance)==null?void 0:Z.timeOrigin)||0;return"havuokmhhs-"+Math.floor(Q)}; rE=function(Z){this.Y=Z}; Sh4=function(){return new Promise(function(Z){var Q=window.top;Q.ntpevasrs!==void 0?Z(new rE(Q.ntpevasrs)):(Q.ntpqfbel===void 0&&(Q.ntpqfbel=[]),Q.ntpqfbel.push(function(z){Z(new rE(z))}))})}; T1G=function(){if(!g.nA("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.nA("disable_biscotti_fetch_entirely_for_all_web_clients")&&Qs()){var Z=g.Ft("PLAYER_VARS",{});if(g.GF(Z,"privembed",!1)!="1"&&!mDd(Z)){var Q=function(){AK=!0;"google_ad_status"in window?ts("DCLKSTAT",1):ts("DCLKSTAT",2)}; try{g.AX("//static.doubleclick.net/instream/ad_status.js",Q)}catch(z){}$FW.push(g.Wk.Y8(function(){if(!(AK||"google_ad_status"in window)){try{if(Q){var z=""+g.e4(Q),K=IXD[z];K&&g.qF(K)}}catch(b){}AK=!0;ts("DCLKSTAT",3)}},5E3))}}}; jd=function(){var Z=Number(g.Ft("DCLKSTAT",0));return isNaN(Z)?0:Z}; Yj=function(Z,Q,z){var K=this;this.network=Z;this.options=Q;this.j=z;this.Y=null;if(Q.E$Y){var b=new g.XO;this.Y=b.promise;g.OG.ytAtRC&&E7(function(){var q,r;return g.C(function(D){if(D.Y==1){if(!g.OG.ytAtRC)return D.return();q=DV(null);return g.P(D,vA(K,q),2)}r=D.j;g.OG.ytAtRC&&g.OG.ytAtRC(JSON.stringify(r));g.LX(D)})},2); Sh4().then(function(q){var r,D,v,Y;return g.C(function(X){if(X.Y==1)return q.bindInnertubeChallengeFetcher(function(S){return vA(K,DV(S))}),g.P(X,iR(),2); r=X.j;D=q.getLatestChallengeResponse();v=D.challenge;if(!v)throw Error("BGE_MACIL");Y={challenge:v,D$:qH(v),Hg:r,bgChallenge:new gK};b.resolve(Y);q.registerChallengeFetchedCallback(function(S){S=S.challenge;if(!S)throw Error("BGE_MACR");S={challenge:S,D$:qH(S),Hg:r,bgChallenge:new gK};K.Y=Promise.resolve(S)}); g.LX(X)})})}else Q.preload&&ftG(this,new Promise(function(q){g.lb(0,function(){q(gE(K))},0)}))}; DV=function(Z){var Q={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};Z&&(Q.interpreterHash=Z);return Q}; gE=function(Z,Q){Q=Q===void 0?0:Q;var z,K,b,q,r,D,v,Y,X,S,T,f;return g.C(function(h){switch(h.Y){case 1:z=DV(TX().Y);if(g.nA("att_fet_ks"))return g.nX(h,7),g.P(h,vA(Z,z),9);g.nX(h,4);return g.P(h,hNX(Z,z),6);case 6:r=h.j;b=r.zug;q=r.Lru;K=r;g.m9(h,3);break;case 4:return g.I0(h),g.CO(Error("Failed to fetch attestation challenge after "+(Q+" attempts; not retrying for 24h."))),Xg(Z,864E5),h.return({challenge:"",D$:{},Hg:void 0,bgChallenge:void 0});case 9:K=h.j;if(!K)throw Error("Fetching Attestation challenge returned falsy"); if(!K.challenge)throw Error("Missing Attestation challenge");b=K.challenge;q=qH(b);if("c1a"in q&&(!K.bgChallenge||!K.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.m9(h,3);break;case 7:D=g.I0(h);g.CO(D);Q++;if(Q>=5)return g.CO(Error("Failed to fetch attestation challenge after "+(Q+" attempts; not retrying for 24h."))),Xg(Z,864E5),h.return({challenge:"",D$:{},Hg:void 0,bgChallenge:void 0});v=1E3*Math.pow(2,Q-1)+Math.random()*1E3;return h.return(new Promise(function(m){g.lb(0, function(){m(gE(Z,Q))},v)})); case 3:Y=Number(q.t)||7200;Xg(Z,Y*1E3);X=void 0;if(!("c1a"in q&&K.bgChallenge)){h.O$(10);break}S=X94(K.bgChallenge);g.nX(h,11);return g.P(h,fK(TX(),S),13);case 13:g.m9(h,12);break;case 11:return T=g.I0(h),g.CO(T),h.return({challenge:b,D$:q,Hg:X,bgChallenge:S});case 12:return g.nX(h,14),X=new S$({challenge:S,vE:{ye:"aGIf"}}),g.P(h,X.ud,16);case 16:g.m9(h,10);break;case 14:f=g.I0(h),g.CO(f),X=void 0;case 10:return h.return({challenge:b,D$:q,Hg:X,bgChallenge:S})}})}; vA=function(Z,Q){var z;return g.C(function(K){z=Z.j;if(!z||z.fK())return K.return(vA(Z.network,Q));kp("att_pna",void 0,"attestation_challenge_fetch");return K.return(new Promise(function(b){z.x7("publicytnetworkstatus-online",function(){vA(Z.network,Q).then(b)})}))})}; LHf=function(Z){if(!Z)throw Error("Fetching Attestation challenge returned falsy");if(!Z.challenge)throw Error("Missing Attestation challenge");var Q=Z.challenge,z=qH(Q);if("c1a"in z&&(!Z.bgChallenge||!Z.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},Z,{zug:Q,Lru:z})}; hNX=function(Z,Q){var z,K,b,q,r;return g.C(function(D){switch(D.Y){case 1:z=void 0,K=0,b={};case 2:if(!(K<5)){D.O$(4);break}if(!(K>0)){D.O$(5);break}b.wZ=1E3*Math.pow(2,K-1)+Math.random()*1E3;return g.P(D,new Promise(function(v){return function(Y){g.lb(0,function(){Y(void 0)},v.wZ)}}(b)),5); case 5:return g.nX(D,7),g.P(D,vA(Z,Q),9);case 9:return q=D.j,D.return(LHf(q));case 7:z=r=g.I0(D),r instanceof Error&&g.CO(r);case 8:K++;b={wZ:void 0};D.O$(2);break;case 4:throw z;}})}; ftG=function(Z,Q){Z.Y=Q}; n9G=function(Z){var Q,z,K;return g.C(function(b){if(b.Y==1)return g.P(b,Promise.race([Z.Y,null]),2);Q=b.j;var q=gE(Z);Z.Y=q;(z=Q)==null||(K=z.Hg)==null||K.dispose();g.LX(b)})}; Xg=function(Z,Q){function z(){var b;return g.C(function(q){b=K-Date.now();return b<1E3?g.P(q,n9G(Z),0):(E7(z,0,Math.min(b,6E4)),q.O$(0))})} var K=Date.now()+Q;z()}; cX0=function(Z,Q){return new Promise(function(z){g.lb(0,function(){z(Q())},Z)})}; g.mFf=function(Z,Q){var z;return g.C(function(K){var b=g.WG("yt.aba.att");return(z=b?b:Yj.instance!==void 0?Yj.instance.S.bind(Yj.instance):null)?K.return(z("ENGAGEMENT_TYPE_PLAYBACK",Z,Q)):K.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; g.Itr=function(){var Z;return(Z=(Z=g.WG("yt.aba.att2"))?Z:Yj.instance!==void 0?Yj.instance.W.bind(Yj.instance):null)?Z():Promise.resolve(!1)}; yXM=function(Z,Q){var z=g.WG("ytDebugData.callbacks");z||(z={},g.BG("ytDebugData.callbacks",z));if(g.nA("web_dd_iu")||JX9.includes(Z))z[Z]=Q}; Sd=function(){var Z=dFx;var Q=Q===void 0?[]:Q;var z=z===void 0?[]:z;Q=Jbu.apply(null,[ybG.apply(null,g.I(Q))].concat(g.I(z)));this.store=Nnn(Z,void 0,Q)}; g.T0=function(Z,Q,z){for(var K=Object.assign({},Z),b=g.n(Object.keys(Q)),q=b.next();!q.done;q=b.next()){q=q.value;var r=Z[q],D=Q[q];if(D===void 0)delete K[q];else if(r===void 0)K[q]=D;else if(Array.isArray(D)&&Array.isArray(r))K[q]=z?[].concat(g.I(r),g.I(D)):D;else if(!Array.isArray(D)&&g.tn(D)&&!Array.isArray(r)&&g.tn(r))K[q]=g.T0(r,D,z);else if(typeof D===typeof r)K[q]=D;else return Q=new g.tW("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:q,mDI:r,updateValue:D}),g.Rm(Q), Z}return K}; fe=function(Z){var Q=this;Z=Z===void 0?[]:Z;this.Vf=[];this.V5=this.u0=0;this.bX=void 0;this.totalLength=0;Z.forEach(function(z){Q.append(z)})}; N1n=function(Z,Q){return Z.Vf.length===0?!1:(Z=Z.Vf[Z.Vf.length-1])&&Z.buffer===Q.buffer&&Z.byteOffset+Z.length===Q.byteOffset}; hK=function(Z,Q){Q=g.n(Q.Vf);for(var z=Q.next();!z.done;z=Q.next())Z.append(z.value)}; Le=function(Z,Q,z){return Z.split(Q).K6.split(z).VE}; ne=function(Z){Z.bX=void 0;Z.u0=0;Z.V5=0}; cA=function(Z,Q,z){Z.isFocused(Q);return Q-Z.V5+z<=Z.Vf[Z.u0].length}; Gtr=function(Z){if(!Z.bX){var Q=Z.Vf[Z.u0];Z.bX=new DataView(Q.buffer,Q.byteOffset,Q.length)}return Z.bX}; m8=function(Z,Q,z){Z=Z.m9(Q===void 0?0:Q,z===void 0?-1:z);Q=new Uint8Array(Z.length);try{Q.set(Z)}catch(K){for(z=0;z<Z.length;z++)Q[z]=Z[z]}return Q}; iln=function(Z,Q){Z.focus(Q);return cA(Z,Q,4)?Gtr(Z).getUint32(Q-Z.V5):256*(256*(256*Z.getUint8(Q)+Z.getUint8(Q+1))+Z.getUint8(Q+2))+Z.getUint8(Q+3)}; atX=function(Z){for(var Q=new Uint8Array(Z.length),z=0;z<Z.length;z++)Q[z]=Z.charCodeAt(z);return Q}; JK=function(Z){return Z.length?Iv?Iv.decode(Z):String.fromCharCode.apply(null,Z):""}; g.dE=function(Z){if(!Z.length)return"";try{if(Iv)return Iv.decode(Z);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(Z)}catch(r){}for(var Q=0,z=[],K=Z.length;Q<K;){for(var b=0;b<1024&&Q<K;){var q=Z[Q++];if(q<128)y5[b++]=q;else{if(q<224)q=(q&31)<<6|Z[Q++]&63;else if(q<240)q=(q&15)<<12|(Z[Q++]&63)<<6|Z[Q++]&63;else{if(b+1===1024){--Q;break}q=(q&7)<<18|(Z[Q++]&63)<<12|(Z[Q++]&63)<<6|Z[Q++]&63;q-=65536;y5[b++]=55296|q>>10;q=56320|q&1023}y5[b++]=q}}q=String.fromCharCode.apply(String,y5); b<1024&&(q=q.substring(0,b));z.push(q)}return z.join("")}; G0=function(Z,Q){var z;if((z=NH)==null?0:z.encodeInto)return Q=NH.encodeInto(Z,Q),Q.read<Z.length?Z.length*4:Q.written;for(var K=z=0;K<Z.length;K++){var b=Z.charCodeAt(K);b<128?Q[z++]=b:(b<2048?Q[z++]=b>>6|192:((b&64512)===55296&&K+1<Z.length&&(Z.charCodeAt(K+1)&64512)===56320?(b=65536+((b&1023)<<10)+(Z.charCodeAt(++K)&1023),Q[z++]=b>>18|240,Q[z++]=b>>12&63|128):Q[z++]=b>>12|224,Q[z++]=b>>6&63|128),Q[z++]=b&63|128)}return z}; i9=function(Z){if(NH)return NH.encode(Z);var Q=new Uint8Array(Math.ceil(Z.length*1.2)),z=G0(Z,Q);Q.length<z&&(Q=new Uint8Array(z),z=G0(Z,Q));Q.length>z&&(Q=Q.subarray(0,z));return Q}; av=function(Z){this.Y=Z;this.pos=0;this.j=-1}; PA=function(Z){var Q=Z.Y.getUint8(Z.pos);++Z.pos;if(Q<128)return Q;for(var z=Q&127,K=1;Q>=128;)Q=Z.Y.getUint8(Z.pos),++Z.pos,K*=128,z+=(Q&127)*K;return z}; Rv=function(Z,Q){var z=Z.j;for(Z.j=-1;Z.Y.PL(Z.pos,1);){z<0&&(z=PA(Z));var K=z>>3,b=z&7;if(K===Q)return!0;if(K>Q){Z.j=z;break}z=-1;switch(b){case 0:PA(Z);break;case 1:Z.pos+=8;break;case 2:K=PA(Z);Z.pos+=K;break;case 5:Z.pos+=4}}return!1}; Ce=function(Z,Q){if(Rv(Z,Q))return PA(Z)}; pe=function(Z,Q){if(Rv(Z,Q))return!!PA(Z)}; HA=function(Z,Q){if(Rv(Z,Q)){Q=PA(Z);var z=Z.Y.m9(Z.pos,Q);Z.pos+=Q;return z}}; MH=function(Z,Q){if(Z=HA(Z,Q))return g.dE(Z)}; UP=function(Z,Q,z){if(Z=HA(Z,Q))return z(new av(new fe([Z])))}; OP=function(Z,Q){for(var z=[];Rv(Z,Q);)z.push(PA(Z));return z.length?z:void 0}; ov=function(Z,Q,z){for(var K=[],b;b=HA(Z,Q);)K.push(z(new av(new fe([b]))));return K.length?K:void 0}; BA=function(Z,Q){Z=Z instanceof Uint8Array?new fe([Z]):Z;return Q(new av(Z))}; Pm4=function(Z,Q,z){if(Q&&z&&z.buffer===Q.exports.memory.buffer){var K=Q.realloc(z.byteOffset,Z);if(K)return new Uint8Array(Q.exports.memory.buffer,K,Z)}Z=Q?new Uint8Array(Q.exports.memory.buffer,Q.malloc(Z),Z):new Uint8Array(Z);z&&Z.set(z);return Z}; RNn=function(Z,Q){this.Kf=Q;this.pos=0;this.j=[];this.Y=Pm4(Z===void 0?4096:Z,Q);this.view=new DataView(this.Y.buffer,this.Y.byteOffset,this.Y.byteLength)}; WA=function(Z,Q){Q=Z.pos+Q;if(!(Z.Y.length>=Q)){for(var z=Z.Y.length*2;z<Q;)z*=2;Z.Y=Pm4(z,Z.Kf,Z.Y.subarray(0,Z.pos));Z.view=new DataView(Z.Y.buffer,Z.Y.byteOffset,Z.Y.byteLength)}}; V5=function(Z,Q){if(Q>268435455){WA(Z,4);for(var z=Q&1073741823,K=0;K<4;K++)Z.view.setUint8(Z.pos,z&127|128),z>>=7,Z.pos+=1;Q=Math.floor(Q/268435456)}for(WA(Z,4);Q>127;)Z.view.setUint8(Z.pos,Q&127|128),Q>>=7,Z.pos+=1;Z.view.setUint8(Z.pos,Q);Z.pos+=1}; kj=function(Z,Q,z){z!==void 0&&(V5(Z,Q*8),V5(Z,z))}; u9=function(Z,Q,z){z!==void 0&&kj(Z,Q,z?1:0)}; xj=function(Z,Q,z){z!==void 0&&(V5(Z,Q*8+2),Q=z.length,V5(Z,Q),WA(Z,Q),Z.Y.set(z,Z.pos),Z.pos+=Q)}; tK=function(Z,Q,z){z!==void 0&&(Cmr(Z,Q,Math.ceil(Math.log2(z.length*4+2)/7)),WA(Z,z.length*1.2),Q=G0(z,Z.Y.subarray(Z.pos)),Z.pos+Q>Z.Y.length&&(WA(Z,Q),Q=G0(z,Z.Y.subarray(Z.pos))),Z.pos+=Q,p9u(Z))}; Cmr=function(Z,Q,z){z=z===void 0?2:z;V5(Z,Q*8+2);Z.j.push(Z.pos);Z.j.push(z);Z.pos+=z}; p9u=function(Z){for(var Q=Z.j.pop(),z=Z.j.pop(),K=Z.pos-z-Q;Q--;){var b=Q?128:0;Z.view.setUint8(z++,K&127|b);K>>=7}}; Fg=function(Z,Q,z,K,b){z&&(Cmr(Z,Q,b===void 0?3:b),K(Z,z),p9u(Z))}; g.ed=function(Z,Q,z){z=new RNn(4096,z);Q(z,Z);return new Uint8Array(z.Y.buffer,z.Y.byteOffset,z.pos)}; g.rx=function(Z){var Q=new av(new fe([nG(decodeURIComponent(Z))]));Z=MH(Q,2);Q=Ce(Q,4);var z=Hl0[Q];if(typeof z==="undefined")throw Z=new g.tW("Failed to recognize field number",{name:"EntityKeyHelperError",XH$:Q}),g.Rm(Z),Z;return{ea:Q,entityType:z,entityId:Z}}; g.AM=function(Z,Q){var z=new RNn;xj(z,2,i9(Z));Z=MkM[Q];if(typeof Z==="undefined")throw Q=new g.tW("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:Q}),g.Rm(Q),Q;kj(z,4,Z);kj(z,5,1);Q=new Uint8Array(z.Y.buffer,z.Y.byteOffset,z.pos);return encodeURIComponent(g.hj(Q))}; jP=function(Z,Q,z,K){if(K===void 0)return K=Object.assign({},Z[Q]||{}),z=(delete K[z],K),K={},Object.assign({},Z,(K[Q]=z,K));var b={},q={};return Object.assign({},Z,(q[Q]=Object.assign({},Z[Q],(b[z]=K,b)),q))}; UFd=function(Z,Q,z,K,b){var q=Z[Q];if(q==null||!q[z])return Z;K=g.T0(q[z],K,b==="REPEATED_FIELDS_MERGE_OPTION_APPEND");b={};q={};return Object.assign({},Z,(q[Q]=Object.assign({},Z[Q],(b[z]=K,b)),q))}; OlM=function(Z,Q){Z=Z===void 0?{}:Z;switch(Q.type){case "ENTITY_LOADED":return Q.payload.reduce(function(K,b){var q,r=(q=b.options)==null?void 0:q.persistenceOption;if(r&&r!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&r!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return K;if(!b.entityKey)return g.Rm(Error("Missing entity key")),K;if(b.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!b.payload)return g.Rm(new g.tW("REPLACE entity mutation is missing a payload",{entityKey:b.entityKey})),K;var D=g.ca(b.payload); return jP(K,D,b.entityKey,b.payload[D])}if(b.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{b=b.entityKey;try{var v=g.rx(b).entityType;D=jP(K,v,b);break a}catch(S){if(S instanceof Error){g.Rm(new g.tW("Failed to deserialize entity key",{entityKey:b,wE:S.message}));D=K;break a}throw S;}D=void 0}return D}if(b.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!b.payload)return g.Rm(new g.tW("UPDATE entity mutation is missing a payload",{entityKey:b.entityKey})),K;D=g.ca(b.payload);var Y,X;return UFd(K,D,b.entityKey, b.payload[D],(Y=b.fieldMask)==null?void 0:(X=Y.mergeOptions)==null?void 0:X.repeatedFieldsMergeOption)}return K},Z); case "REPLACE_ENTITY":var z=Q.payload;return jP(Z,z.entityType,z.key,z.Mt);case "REPLACE_ENTITIES":return Object.keys(Q.payload).reduce(function(K,b){var q=Q.payload[b];return Object.keys(q).reduce(function(r,D){return jP(r,b,D,q[D])},K)},Z); case "UPDATE_ENTITY":return z=Q.payload,UFd(Z,z.entityType,z.key,z.Mt,z.uyB);default:return Z}}; Dk=function(Z,Q,z){return Z[Q]?Z[Q][z]||null:null}; vV=function(Z){return window.Int32Array?new Int32Array(Z):Array(Z)}; Tg=function(Z){g.O.call(this);this.counter=[0,0,0,0];this.j=new Uint8Array(16);this.Y=16;if(!o9x){var Q,z=new Uint8Array(256),K=new Uint8Array(256);var b=1;for(Q=0;Q<256;Q++)z[b]=Q,K[Q]=b,b^=b<<1^(b>>7&&283);gx=new Uint8Array(256);YZ=vV(256);XK=vV(256);SP=vV(256);$Z=vV(256);for(var q=0;q<256;q++){b=q?K[255^z[q]]:0;b^=b<<1^b<<2^b<<3^b<<4;b=b&255^b>>>8^99;gx[q]=b;Q=b<<1^(b>>7&&283);var r=Q^b;YZ[q]=Q<<24|b<<16|b<<8|r;XK[q]=r<<24|YZ[q]>>>8;SP[q]=b<<24|XK[q]>>>8;$Z[q]=b<<24|SP[q]>>>8}o9x=!0}b=vV(44);for(z= 0;z<4;z++)b[z]=Z[4*z]<<24|Z[4*z+1]<<16|Z[4*z+2]<<8|Z[4*z+3];for(K=1;z<44;z++)Z=b[z-1],z%4||(Z=(gx[Z>>16&255]^K)<<24|gx[Z>>8&255]<<16|gx[Z&255]<<8|gx[Z>>>24],K=K<<1^(K>>7&&283)),b[z]=b[z-4]^Z;this.key=b}; fR=function(Z,Q){for(var z=0;z<4;z++)Z.counter[z]=Q[z*4]<<24|Q[z*4+1]<<16|Q[z*4+2]<<8|Q[z*4+3];Z.Y=16}; B1W=function(Z){for(var Q=Z.key,z=Z.counter[0]^Q[0],K=Z.counter[1]^Q[1],b=Z.counter[2]^Q[2],q=Z.counter[3]^Q[3],r=3;r>=0&&!(Z.counter[r]=-~Z.counter[r]);r--);for(var D,v,Y=4;Y<40;)r=YZ[z>>>24]^XK[K>>16&255]^SP[b>>8&255]^$Z[q&255]^Q[Y++],D=YZ[K>>>24]^XK[b>>16&255]^SP[q>>8&255]^$Z[z&255]^Q[Y++],v=YZ[b>>>24]^XK[q>>16&255]^SP[z>>8&255]^$Z[K&255]^Q[Y++],q=YZ[q>>>24]^XK[z>>16&255]^SP[K>>8&255]^$Z[b&255]^Q[Y++],z=r,K=D,b=v;Z=Z.j;r=Q[40];Z[0]=gx[z>>>24]^r>>>24;Z[1]=gx[K>>16&255]^r>>16&255;Z[2]=gx[b>>8&255]^ r>>8&255;Z[3]=gx[q&255]^r&255;r=Q[41];Z[4]=gx[K>>>24]^r>>>24;Z[5]=gx[b>>16&255]^r>>16&255;Z[6]=gx[q>>8&255]^r>>8&255;Z[7]=gx[z&255]^r&255;r=Q[42];Z[8]=gx[b>>>24]^r>>>24;Z[9]=gx[q>>16&255]^r>>16&255;Z[10]=gx[z>>8&255]^r>>8&255;Z[11]=gx[K&255]^r&255;r=Q[43];Z[12]=gx[q>>>24]^r>>>24;Z[13]=gx[z>>16&255]^r>>16&255;Z[14]=gx[K>>8&255]^r>>8&255;Z[15]=gx[b&255]^r&255}; nR=function(){if(!hM&&!g.Fc){if(LR)return LR;var Z;LR=(Z=window.crypto)==null?void 0:Z.subtle;var Q,z,K;if(((Q=LR)==null?0:Q.importKey)&&((z=LR)==null?0:z.sign)&&((K=LR)==null?0:K.encrypt))return LR;LR=void 0}}; g.cV=function(Z){this.W=Z}; g.mO=function(Z){this.j=Z}; Ih=function(Z){this.L=new Uint8Array(64);this.S=new Uint8Array(64);this.W=0;this.K=new Uint8Array(64);this.j=0;this.L.set(Z);this.S.set(Z);for(Z=0;Z<64;Z++)this.L[Z]^=92,this.S[Z]^=54;this.reset()}; WH9=function(Z,Q,z){for(var K=Z.T,b=Z.Y[0],q=Z.Y[1],r=Z.Y[2],D=Z.Y[3],v=Z.Y[4],Y=Z.Y[5],X=Z.Y[6],S=Z.Y[7],T,f,h,m=0;m<64;)m<16?(K[m]=h=Q[z]<<24|Q[z+1]<<16|Q[z+2]<<8|Q[z+3],z+=4):(T=K[m-2],f=K[m-15],h=K[m-7]+K[m-16]+((T>>>17|T<<15)^(T>>>19|T<<13)^T>>>10)+((f>>>7|f<<25)^(f>>>18|f<<14)^f>>>3),K[m]=h),T=S+JM[m]+h+((v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7))+(v&Y^~v&X),f=((b>>>2|b<<30)^(b>>>13|b<<19)^(b>>>22|b<<10))+(b&q^b&r^q&r),S=T+f,D+=T,m++,m<16?(K[m]=h=Q[z]<<24|Q[z+1]<<16|Q[z+2]<<8|Q[z+3],z+=4):(T= K[m-2],f=K[m-15],h=K[m-7]+K[m-16]+((T>>>17|T<<15)^(T>>>19|T<<13)^T>>>10)+((f>>>7|f<<25)^(f>>>18|f<<14)^f>>>3),K[m]=h),T=X+JM[m]+h+((D>>>6|D<<26)^(D>>>11|D<<21)^(D>>>25|D<<7))+(D&v^~D&Y),f=((S>>>2|S<<30)^(S>>>13|S<<19)^(S>>>22|S<<10))+(S&b^S&q^b&q),X=T+f,r+=T,m++,m<16?(K[m]=h=Q[z]<<24|Q[z+1]<<16|Q[z+2]<<8|Q[z+3],z+=4):(T=K[m-2],f=K[m-15],h=K[m-7]+K[m-16]+((T>>>17|T<<15)^(T>>>19|T<<13)^T>>>10)+((f>>>7|f<<25)^(f>>>18|f<<14)^f>>>3),K[m]=h),T=Y+JM[m]+h+((r>>>6|r<<26)^(r>>>11|r<<21)^(r>>>25|r<<7))+(r&D^ ~r&v),f=((X>>>2|X<<30)^(X>>>13|X<<19)^(X>>>22|X<<10))+(X&S^X&b^S&b),Y=T+f,q+=T,m++,m<16?(K[m]=h=Q[z]<<24|Q[z+1]<<16|Q[z+2]<<8|Q[z+3],z+=4):(T=K[m-2],f=K[m-15],h=K[m-7]+K[m-16]+((T>>>17|T<<15)^(T>>>19|T<<13)^T>>>10)+((f>>>7|f<<25)^(f>>>18|f<<14)^f>>>3),K[m]=h),T=v+JM[m]+h+((q>>>6|q<<26)^(q>>>11|q<<21)^(q>>>25|q<<7))+(q&r^~q&D),f=((Y>>>2|Y<<30)^(Y>>>13|Y<<19)^(Y>>>22|Y<<10))+(Y&X^Y&S^X&S),h=S,S=D,D=h,h=X,X=r,r=h,h=Y,Y=q,q=h,v=b+T,b=T+f,m++;Z.Y[0]=b+Z.Y[0]|0;Z.Y[1]=q+Z.Y[1]|0;Z.Y[2]=r+Z.Y[2]|0;Z.Y[3]= D+Z.Y[3]|0;Z.Y[4]=v+Z.Y[4]|0;Z.Y[5]=Y+Z.Y[5]|0;Z.Y[6]=X+Z.Y[6]|0;Z.Y[7]=S+Z.Y[7]|0}; kt4=function(Z){var Q=new Uint8Array(32),z=64-Z.j;Z.j>55&&(z+=64);var K=new Uint8Array(z);K[0]=128;for(var b=Z.W*8,q=1;q<9;q++){var r=b%256;K[z-q]=r;b=(b-r)/256}Z.update(K);for(z=0;z<8;z++)Q[z*4]=Z.Y[z]>>>24,Q[z*4+1]=Z.Y[z]>>>16&255,Q[z*4+2]=Z.Y[z]>>>8&255,Q[z*4+3]=Z.Y[z]&255;VkG(Z);return Q}; VkG=function(Z){Z.Y=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];Z.T=[];Z.T.length=64;Z.W=0;Z.j=0}; uhd=function(Z){this.Y=Z}; xFu=function(Z,Q,z){Z=new Ih(Z.Y);Z.update(Q);Z.update(z);Q=kt4(Z);Z.update(Z.L);Z.update(Q);Q=kt4(Z);Z.reset();return Q}; tkD=function(Z){this.j=Z}; FHG=function(Z,Q,z,K){var b,q,r;return g.C(function(D){switch(D.Y){case 1:if(Z.Y){D.O$(2);break}return g.P(D,K.importKey("raw",Z.j,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:Z.Y=D.j;case 2:return b=new Uint8Array(Q.length+z.length),b.set(Q),b.set(z,Q.length),q={name:"HMAC",hash:"SHA-256"},g.P(D,K.sign(q,Z.Y,b),4);case 4:return r=D.j,D.return(new Uint8Array(r))}})}; eNX=function(Z,Q,z){Z.S||(Z.S=new uhd(Z.j));return xFu(Z.S,Q,z)}; w9x=function(Z,Q,z){var K,b;return g.C(function(q){if(q.Y==1){K=nR();if(!K)return q.return(eNX(Z,Q,z));g.nX(q,3);return g.P(q,FHG(Z,Q,z,K),5)}if(q.Y!=3)return q.return(q.j);b=g.I0(q);g.CO(b);hM=!0;return q.return(eNX(Z,Q,z))})}; ltn=function(Z){for(var Q="",z=0;z<Z.length;z++){var K=Z[z];if(z===0)K="M "+K.x.toFixed(1)+","+K.y.toFixed(1);else{var b=E9n(Z[z-1],Z[z-2],K),q=E9n(K,Z[z-1],Z[z+1],!0);K=" C "+(b.x.toFixed(1)+","+b.y.toFixed(1)+" "+q.x.toFixed(1)+","+q.y.toFixed(1)+" "+K.x.toFixed(1)+","+K.y.toFixed(1))}Q+=K}return Q}; E9n=function(Z,Q,z,K){K=K===void 0?!1:K;Q=new smu(Q||Z,z||Z);return{x:Z.x+((K===void 0?0:K)?Q.Y*-1:Q.Y)*.2,y:Z.y+((K===void 0?0:K)?Q.j*-1:Q.j)*.2}}; smu=function(Z,Q){this.j=this.Y=0;this.Y=Q.x-Z.x;this.j=Q.y-Z.y}; zHn=function(Z,Q){var z,K,b;return g.C(function(q){if(q.Y==1)return z={context:g.eq(),settingItemIds:Q},K=g.lc(ZOD),g.P(q,g.t4(Z,z,K),2);b=q.j;return!b||b.errorMetadata?(QmM("GetSettingValuesRequest",b),q.return(void 0)):q.return(b.settingValues)})}; bO0=function(Z,Q,z){var K,b,q;g.C(function(r){if(r.Y==1)return K={context:g.eq(),settingItemId:Q,newValue:z},b=g.lc(KZG),g.P(r,g.t4(Z,K,b),2);q=r.j;if(!q||q.errorMetadata)return QmM("SetSettingRequest",q),r.return(void 0);g.LX(r)})}; QmM=function(Z,Q){Q?Q.errorMetadata&&g.CO(new g.tW(Z+" failed with status "+Q.errorMetadata.status)):g.CO(new g.tW(Z+" failed with empty response"))}; dx=function(Z,Q,z){if(!Q)return Z.length>=1?Z[Z.length-1]:null;for(var K=g.n(Z),b=K.next();!b.done;b=K.next())if(b=b.value,b.width&&b.height&&(z&&b.width>=Q||!z&&b.height>=Q))return b;for(Q=Z.length-1;Q>=0;Q--)if(z&&Z[Q].width||!z&&Z[Q].height)return Z[Q];return Z[0]}; Nl=function(){this.state=1;this.Hg=null;this.Ff=void 0}; ry0=function(Z,Q,z,K,b,q){var r=r===void 0?"trayride":r;z?(Z.Q3(2),g.AX(z,function(){if(window[r])qux(Z,K,r,b);else{Z.Q3(3);var D=miD(z),v=document.getElementById(D);v&&(nqM(D),v.parentNode.removeChild(v));g.CO(new g.tW("Unable to load Botguard","from "+z))}},q)):Q?(q=g.lY("SCRIPT"),Q instanceof O3?(q.textContent=ou(Q),BB(q)):q.textContent=Q,q.nonce=U3(document),document.head.appendChild(q),document.head.removeChild(q),window[r]?qux(Z,K,r,b):(Z.Q3(4),g.CO(new g.tW("Unable to load Botguard from JS")))): g.CO(new g.tW("Unable to load VM; no url or JS provided"))}; qux=function(Z,Q,z,K){Z.Q3(5);var b=!!Z.Ff&&AyG.includes(g.pE(Z.Ff)||"");try{var q=new S$({program:Q,globalName:z,vE:{disable:!g.nA("att_web_record_metrics")||!g.nA("att_skip_metrics_for_cookieless_domains_ks")&&b,ye:"aGIf"}});q.ud.then(function(){Z.Q3(6);K&&K(Q)}); Z.K1(q)}catch(r){Z.Q3(7),r instanceof Error&&g.CO(r)}}; Gg=function(){var Z=g.WG("yt.abuse.playerAttLoader");return Z&&["bgvma","bgvmb","bgvmc"].every(function(Q){return Q in Z})?Z:null}; ah=function(){Nl.apply(this,arguments)}; PV=function(){}; jmd=function(Z,Q,z){for(var K=!1,b=g.n(Z.LM.entries()),q=b.next();!q.done;q=b.next())q=g.n(q.value).next().value,q.slotType==="SLOT_TYPE_PLAYER_BYTES"&&q.mF==="core"&&(K=!0);if(K){a:if(!z){Z=g.n(Z.LM.entries());for(z=Z.next();!z.done;z=Z.next())if(K=g.n(z.value),z=K.next().value,K=K.next().value,z.slotType==="SLOT_TYPE_IN_PLAYER"&&z.mF==="core"){z=K.layoutId;break a}z=void 0}z?Q.Fz(z):vM("No triggering layout ID available when attempting to mute.")}}; Rh=function(Z,Q){this.p6=Z;this.V0=Q}; CR=function(){}; pR=function(){}; vYx=function(Z){g.O.call(this);var Q=this;this.CL=Z;this.Y=new Map;HV(this,"commandExecutorCommand",function(z,K,b){DUn(Q,z.commands,K,b)}); HV(this,"clickTrackingParams",function(){})}; gYG=function(Z,Q){HV(Z,Q.PM(),function(z,K,b){Q.O1(z,K,b)})}; HV=function(Z,Q,z){Z.FI();Z.Y.get(Q)&&g.Rm(Error("Extension name "+Q+" already registered"));Z.Y.set(Q,z)}; DUn=function(Z,Q,z,K){Q=Q===void 0?[]:Q;Z.FI();var b=[],q=[];Q=g.n(Q);for(var r=Q.next();!r.done;r=Q.next())r=r.value,g.V(r,Yud)||g.V(r,XcM)?b.push(r):q.push(r);b=g.n(b);for(Q=b.next();!Q.done;Q=b.next())Ml(Z,Q.value,z,K);q=g.n(q);for(b=q.next();!b.done;b=q.next())Ml(Z,b.value,z,K)}; Ml=function(Z,Q,z,K){Z.FI();Q.loggingUrls&&Suu(Z,"loggingUrls",Q.loggingUrls,z,K);Q=g.n(Object.entries(Q));for(var b=Q.next();!b.done;b=Q.next()){var q=g.n(b.value);b=q.next().value;q=q.next().value;b==="openPopupAction"?Z.CL.get().Y$("innertubeCommand",{openPopupAction:q}):b==="confirmDialogEndpoint"?Z.CL.get().Y$("innertubeCommand",{confirmDialogEndpoint:q}):$UM.hasOwnProperty(b)||Suu(Z,b,q,z,K)}}; Suu=function(Z,Q,z,K,b){if((Z=Z.Y.get(Q))&&typeof Z==="function")try{Z(z,K,b)}catch(q){g.Rm(q)}else Q=new g.tW("Unhandled field",Q),g.CO(Q)}; Uz=function(Z,Q,z){this.zg=Z;this.Y=Q;this.v7=z}; Oz=function(Z){this.value=Z}; oh=function(Z){this.value=Z}; BV=function(Z){this.value=Z}; WV=function(Z){this.value=Z}; Vt=function(Z){this.value=Z}; kZ=function(Z){this.value=Z}; un=function(Z){this.value=Z}; xZ=function(){Oz.apply(this,arguments)}; tM=function(Z){this.value=Z}; FK=function(Z){this.value=Z}; eP=function(Z){this.value=Z}; wx=function(Z){this.value=Z}; Ez=function(Z){this.value=Z}; ln=function(Z){this.value=Z}; s$=function(Z){this.value=Z}; Z3=function(Z){this.value=Z}; QO=function(Z){this.value=Z}; z4=function(Z){this.value=Z}; KM=function(){Oz.apply(this,arguments)}; bs=function(Z){this.value=Z}; qh=function(Z){this.value=Z}; rO=function(Z){this.value=Z}; Ag=function(Z){this.value=Z}; jG=function(Z){this.value=Z}; D3=function(Z){this.value=Z}; vT=function(Z){this.value=Z}; gO=function(Z){this.value=Z}; Y0=function(Z){this.value=Z}; XZ=function(Z){this.value=Z}; SG=function(Z){this.value=Z}; $0=function(Z){this.value=Z}; T4=function(Z){this.value=Z}; fM=function(Z){this.value=Z}; hg=function(Z){this.value=Z}; LM=function(Z){this.value=Z}; nM=function(Z){this.value=Z}; cT=function(Z){this.value=Z}; mg=function(Z){this.value=Z}; Ik=function(Z){this.value=Z}; Jg=function(Z){this.value=Z}; yO=function(Z){this.value=Z}; dO=function(Z){this.value=Z}; Nh=function(Z){this.value=Z}; G4=function(Z){this.value=Z}; is=function(Z){this.value=Z}; ak=function(Z){this.value=Z}; PT=function(Z){this.value=Z}; Rk=function(Z){this.value=Z}; CM=function(Z){this.value=Z}; pM=function(Z){this.value=Z}; HT=function(Z){this.value=Z}; Mh=function(Z){this.value=Z}; U$=function(Z){this.value=Z}; O$=function(Z){this.value=Z}; ok=function(Z){this.value=Z}; BT=function(Z){this.value=Z}; WT=function(Z){this.value=Z}; VO=function(){Oz.apply(this,arguments)}; k0=function(Z){this.value=Z}; us=function(){Oz.apply(this,arguments)}; x0=function(){Oz.apply(this,arguments)}; tg=function(){Oz.apply(this,arguments)}; FZ=function(){Oz.apply(this,arguments)}; eG=function(){Oz.apply(this,arguments)}; wO=function(Z){this.value=Z}; E$=function(Z){this.value=Z}; ls=function(Z){this.value=Z}; si=function(Z){this.value=Z}; Z0=function(Z){this.value=Z}; zv=function(Z,Q,z){if(z&&!z.includes(Z.layoutType))return!1;Q=g.n(Q);for(z=Q.next();!z.done;z=Q.next())if(!QF(Z.clientMetadata,z.value))return!1;return!0}; Kw=function(){return""}; T9G=function(Z,Q){switch(Z){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 Q(Z),8}}; bz=function(Z,Q,z,K){K=K===void 0?!1:K;fz.call(this,Z);this.eQ=z;this.Vv=K;this.args=[];Q&&this.args.push(Q)}; w=function(Z,Q,z,K){K=K===void 0?!1:K;fz.call(this,Z);this.eQ=z;this.Vv=K;this.args=[];Q&&this.args.push(Q)}; qf=function(Z){var Q=new Map;Z.forEach(function(z){Q.set(z.getType(),z)}); this.Y=Q}; QF=function(Z,Q){return Z.Y.has(Q)}; rZ=function(Z,Q){Z=Z.Y.get(Q);if(Z!==void 0)return Z.get()}; AJ=function(Z){return Array.from(Z.Y.keys())}; j1=function(Z,Q,z){if(z&&z!==Z.slotType)return!1;Q=g.n(Q);for(z=Q.next();!z.done;z=Q.next())if(!QF(Z.clientMetadata,z.value))return!1;return!0}; hH9=function(Z){var Q;return((Q=fxd.get(Z))==null?void 0:Q.Q6)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; vh=function(Z,Q){var z={type:Q.slotType,controlFlowManagerLayer:LZn.get(Q.mF)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};Q.slotEntryTrigger&&(z.entryTriggerType=Q.slotEntryTrigger.triggerType);Q.slotPhysicalPosition!==1&&(z.slotPhysicalPosition=Q.slotPhysicalPosition);if(Z){z.debugData={slotId:Q.slotId};if(Z=Q.slotEntryTrigger)z.debugData.slotEntryTriggerData=D0(Z);Z=Q.slotFulfillmentTriggers;z.debugData.fulfillmentTriggerData=[];Z=g.n(Z);for(var K=Z.next();!K.done;K=Z.next())z.debugData.fulfillmentTriggerData.push(D0(K.value)); Q=Q.slotExpirationTriggers;z.debugData.expirationTriggerData=[];Q=g.n(Q);for(Z=Q.next();!Z.done;Z=Q.next())z.debugData.expirationTriggerData.push(D0(Z.value))}return z}; nY0=function(Z,Q){var z={type:Q.layoutType,controlFlowManagerLayer:LZn.get(Q.mF)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};Z&&(z.debugData={layoutId:Q.layoutId});return z}; D0=function(Z,Q){var z={type:Z.triggerType};Q!=null&&(z.category=Q);Z.triggeringSlotId!=null&&(z.triggerSourceData||(z.triggerSourceData={}),z.triggerSourceData.associatedSlotId=Z.triggeringSlotId);Z.triggeringLayoutId!=null&&(z.triggerSourceData||(z.triggerSourceData={}),z.triggerSourceData.associatedLayoutId=Z.triggeringLayoutId);return z}; cyG=function(Z,Q,z,K){Q={opportunityType:Q};Z&&(K||z)&&(K=g.my(K||[],function(b){return vh(Z,b)}),Q.debugData=Object.assign({},z&&z.length>0?{associatedSlotId:z}:{},K.length>0?{slots:K}:{})); return Q}; YH=function(Z,Q){return function(z){return mUG(gZ(Z),Q.slotId,Q.slotType,Q.slotPhysicalPosition,Q.mF,Q.slotEntryTrigger,Q.slotFulfillmentTriggers,Q.slotExpirationTriggers,z.layoutId,z.layoutType,z.mF)}}; mUG=function(Z,Q,z,K,b,q,r,D,v,Y,X){return{adClientDataEntry:{slotData:vh(Z,{slotId:Q,slotType:z,slotPhysicalPosition:K,mF:b,slotEntryTrigger:q,slotFulfillmentTriggers:r,slotExpirationTriggers:D,clientMetadata:new qf([])}),layoutData:nY0(Z,{layoutId:v,layoutType:Y,mF:X,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Nb:[],wq:new Map,clientMetadata:new qf([]),EA:{}})}}}; S1=function(Z){this.H7=Z;Z=Math.random();var Q=this.H7.get();Q=g.Xp(Q.J.N().experiments,"html5_debug_data_log_probability");Q=Number.isFinite(Q)&&Q>=0&&Q<=1?Q:0;this.Y=Z<Q}; gZ=function(Z){return Z.Y||Z.H7.get().J.N().V("html5_force_debug_data_for_client_tmp_logs")}; $H=function(Z,Q,z,K){g.O.call(this);this.j=Q;this.ZI=z;this.H7=K;this.Y=Z(this,this,this,this,this);g.W(this,this.Y);Z=g.n(Q);for(Q=Z.next();!Q.done;Q=Z.next())g.W(this,Q.value)}; Tv=function(Z,Q){Z.j.add(Q)}; fw=function(Z,Q){Z.j.delete(Q)}; Lw=function(Z,Q,z,K){vM(z,Q,void 0,void 0,z.Vv);z.eQ?Z.ZI.vP(K,z.eQ,Q):vM("adsClientErrorMessage is missing.",Q);hJ(Z,Q,!0)}; Jyr=function(Z,Q,z){if(nw(Z.Y,Q))if(ch(Z.Y,Q).W=z?"filled":"not_filled",z===null){Z.ZI.Wv("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",Q);z=g.n(Z.j);for(var K=z.next();!K.done;K=z.next())K.value.Zp(Q);hJ(Z,Q,!1)}else{Z.ZI.Wv("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",Q,z);Z.ZI.Wv("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",Q,z);var b,q=(b=z.Fv)!=null?b:rZ(z.clientMetadata,"metadata_type_sub_layouts");if(q)for(b=g.n(q),q=b.next();!q.done;q=b.next())Z.ZI.Wv("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED", Q,q.value);b=g.n(Z.j);for(q=b.next();!q.done;q=b.next())q.value.Me(Q);if(nw(Z.Y,Q))if(ch(Z.Y,Q).L)hJ(Z,Q,!1);else{Z.ZI.Wv("ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",Q,z);try{K=Z.Y;if(!ch(K,Q))throw new bz("Unknown slotState for onLayout",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!K.a6.ZR.get(Q.slotType))throw new bz("No LayoutRenderingAdapterFactory registered for slot of type: "+Q.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANNOT_FIND_MATCHING_LAYOUT_RENDERING_ADAPTER_FACTORY"); if(z.layoutExitNormalTriggers.length==0&&z.layoutExitSkipTriggers.length==0&&z.layoutExitMuteTriggers.length==0&&z.layoutExitUserInputSubmittedTriggers.length==0&&z.Nb.length==0)throw new bz("Layout has no exit triggers.",void 0,"ADS_CLIENT_ERROR_MESSAGE_EMPTY_LAYOUT_EXIT_TRIGGER");mP(K,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",z.layoutExitNormalTriggers);mP(K,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",z.layoutExitSkipTriggers);mP(K,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",z.layoutExitMuteTriggers); mP(K,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",z.layoutExitUserInputSubmittedTriggers);mP(K,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",z.Nb)}catch(Y){Y instanceof bz?Z.O6(Q,z,Y,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):Z.O6(Q,z,new bz("Unexpected error: "+Y,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");hJ(Z,Q,!0);return}ch(Z.Y,Q).K=!0;try{var r=Z.Y,D=ch(r,Q),v=r.a6.ZR.get(Q.slotType).get().build(r.W,r.j,Q,z);v.init();D.layout= z;if(D.S)throw new bz("Already had LayoutRenderingAdapter registered for slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_BUILD_DUPLICATE_LAYOUT_RENDERING_ADAPTER");D.S=v;I$(r,D,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",z.layoutExitNormalTriggers);I$(r,D,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",z.layoutExitSkipTriggers);I$(r,D,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",z.layoutExitMuteTriggers);I$(r,D,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",z.layoutExitUserInputSubmittedTriggers);I$(r,D,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED", z.Nb)}catch(Y){JJ(Z,Q);Y instanceof bz?Z.O6(Q,z,Y,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):Z.O6(Q,z,new bz("Unexpected error: "+Y,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");hJ(Z,Q,!0);return}Z.ZI.Wv("ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",Q,z);K=g.n(Z.j);for(r=K.next();!r.done;r=K.next())r.value.Jx(Q,z);JJ(Z,Q);IxW(Z,Q)}else Z=Z.H7.get(),g.yF(Z.J.N())||dZ(Z.J.N())||g.Nf(Z.J.N())?Z=!0:(vM("Composite VOD on legacy path."),Z=!1),Z&&vM("slot is unscheduled after been fulfilled.", Q,z)}}; yyu=function(Z,Q,z){Q.mF!=="core"&&Z.ZI.Wv("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",Q,z,void 0)}; dUf=function(Z,Q,z){Z.ZI.Wv("ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",Q,z,void 0);Z=g.n(Z.j);for(var K=Z.next();!K.done;K=Z.next())K.value.Jx(Q,z)}; N90=function(Z,Q,z){Z=g.n(Z.j);for(var K=Z.next();!K.done;K=Z.next())K.value.vN(Q,z)}; Gv=function(Z,Q,z){Z.ZI.Wv("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",Q,z,void 0);Z=g.n(Z.j);for(var K=Z.next();!K.done;K=Z.next())K.value.Iy(Q,z)}; iz=function(Z,Q,z,K){Z.ZI.Wv(hH9(K),Q,z,void 0);Z=g.n(Z.j);for(var b=Z.next();!b.done;b=Z.next())b.value.F3(Q,z,K)}; JJ=function(Z,Q){if(nw(Z.Y,Q)){ch(Z.Y,Q).K=!1;var z=a$;Q=ch(Z.Y,Q);var K=[].concat(g.I(Q.X));wGD(Q.X);z(Z,K)}}; a$=function(Z,Q){Q.sort(function(q,r){function D(v){vM("TriggerCategoryOrder enum does not contain trigger category: "+v)} return q.category===r.category?q.trigger.triggerId.localeCompare(r.trigger.triggerId):T9G(q.category,D)-T9G(r.category,D)}); var z=new Map;Q=g.n(Q);for(var K=Q.next();!K.done;K=Q.next())if(K=K.value,nw(Z.Y,K.slot))if(ch(Z.Y,K.slot).K)ch(Z.Y,K.slot).X.push(K);else{Z.ZI.tv("ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED",K.slot,K,K.layout);var b=z.get(K.category);b||(b=[]);b.push(K);z.set(K.category,b)}Q=g.n(G19);for(K=Q.next();!K.done;K=Q.next())b=g.n(K.value),K=b.next().value,b=b.next().value,(K=z.get(K))&&iOD(Z,K,b);(Q=z.get("TRIGGER_CATEGORY_SLOT_EXPIRATION"))&&axx(Z,Q);(Q=z.get("TRIGGER_CATEGORY_SLOT_FULFILLMENT"))&&POX(Z, Q);(z=z.get("TRIGGER_CATEGORY_SLOT_ENTRY"))&&RHn(Z,z)}; iOD=function(Z,Q,z){Q=g.n(Q);for(var K=Q.next();!K.done;K=Q.next())K=K.value,K.layout&&Ph(Z.Y,K.slot)&&COx(Z,K.slot,K.layout,z)}; axx=function(Z,Q){Q=g.n(Q);for(var z=Q.next();!z.done;z=Q.next())hJ(Z,z.value.slot,!1)}; POX=function(Z,Q){Q=g.n(Q);for(var z=Q.next();!z.done;z=Q.next()){z=z.value;a:switch(ch(Z.Y,z.slot).W){case "not_filled":var K=!0;break a;default:K=!1}K&&(Z.ZI.OR("ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",z.slot),Z.Y.Jq(z.slot))}}; RHn=function(Z,Q){Q=g.n(Q);for(var z=Q.next();!z.done;z=Q.next()){z=z.value;Z.ZI.OR("ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",z.slot);for(var K=g.n(Z.j),b=K.next();!b.done;b=K.next())b.value.Dp(z.slot);try{var q=Z.Y,r=z.slot,D=ch(q,r);if(!D)throw new w("Got enter request for unknown slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!D.j)throw new w("Tried to enter slot with no assigned slotAdapter",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");if(D.Y!=="scheduled")throw new w("Tried to enter a slot from stage: "+ D.Y,void 0,"ADS_CLIENT_ERROR_MESSAGE_ILLEGAL_SLOT_STATE");if(R$(D))throw new w("Got enter request for already active slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_COLLISION");for(var v=g.n(Cw(q,r.slotType+"_"+r.slotPhysicalPosition).values()),Y=v.next();!Y.done;Y=v.next()){var X=Y.value;if(D!==X&&R$(X))throw new w("Trying to enter a slot when a slot of same type is already active.",{activeSlotStatus:X.Y},"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");}}catch(S){S instanceof w&&S.eQ?(Z.ZI.vP("ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED", S.eQ,z.slot),vM(S,z.slot,pw(Z.Y,z.slot),void 0,S.Vv)):(Z.ZI.vP("ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",z.slot),vM(S,z.slot));hJ(Z,z.slot,!0);continue}z=ch(Z.Y,z.slot);z.Y!=="scheduled"&&Hh(z.slot,z.Y,"enterSlot");z.Y="enter_requested";z.j.rW()}}; IxW=function(Z,Q){if(nw(Z.Y,Q)&&R$(ch(Z.Y,Q))&&pw(Z.Y,Q)&&!Ph(Z.Y,Q)){var z;Z.ZI.Wv("ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",Q,(z=pw(Z.Y,Q))!=null?z:void 0);Z=ch(Z.Y,Q);Z.Y!=="entered"&&Hh(Z.slot,Z.Y,"enterLayoutForSlot");Z.Y="rendering";Z.S.startRendering(Z.layout)}}; COx=function(Z,Q,z,K){if(nw(Z.Y,Q)){var b=Z.ZI,q=b.Wv,r;var D=((r=fxd.get(K))==null?void 0:r.Mp)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";q.call(b,D,Q,z);Z=ch(Z.Y,Q);Z.Y!=="rendering"&&Hh(Z.slot,Z.Y,"exitLayout");Z.Y="rendering_stop_requested";Z.S.dX(z,K)}}; hJ=function(Z,Q,z){if(nw(Z.Y,Q)){a:switch(ch(Z.Y,Q).Y){case "exit_requested":var K=!0;break a;default:K=!1}if(!K)a:switch(ch(Z.Y,Q).Y){case "rendering_stop_requested":K=!0;break a;default:K=!1}if(K&&(ch(Z.Y,Q).L=!0,!z))return;if(R$(ch(Z.Y,Q)))ch(Z.Y,Q).L=!0,pcf(Z,Q,z);else{a:switch(ch(Z.Y,Q).W){case "fill_requested":z=!0;break a;default:z=!1}if(z)ch(Z.Y,Q).L=!0,nw(Z.Y,Q)&&(Z.ZI.OR("ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",Q),Q=ch(Z.Y,Q),Q.W="fill_cancel_requested",Q.T.VG());else{z= pw(Z.Y,Q);(K=Z.H7.get().J.N().experiments.XI("h5_enable_layout_unscheduling_events"))&&(z?Z.vN(Q,z):vM(Error("Layout is null for LayoutUnscheduled event."),Q,z,void 0,!1));Z.ZI.OR("ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",Q);var b=ch(Z.Y,Q),q=Q.slotEntryTrigger,r=b.P7.get(q.triggerId);r&&(r.JL(q),b.P7.delete(q.triggerId));q=g.n(Q.slotFulfillmentTriggers);for(r=q.next();!r.done;r=q.next()){r=r.value;var D=b.jJ.get(r.triggerId);D&&(D.JL(r),b.jJ.delete(r.triggerId))}q=g.n(Q.slotExpirationTriggers); for(r=q.next();!r.done;r=q.next())if(r=r.value,D=b.U.get(r.triggerId))D.JL(r),b.U.delete(r.triggerId);b.layout!=null&&(q=b.layout,Mf(b,q.layoutExitNormalTriggers),Mf(b,q.layoutExitSkipTriggers),Mf(b,q.layoutExitMuteTriggers),Mf(b,q.layoutExitUserInputSubmittedTriggers),Mf(b,q.Nb));b.T=void 0;b.j!=null&&(b.j.release(),b.j=void 0);b.S!=null&&(b.S.release(),b.S=void 0);b=Z.Y;ch(b,Q)&&(b=Cw(b,Q.slotType+"_"+Q.slotPhysicalPosition))&&b.delete(Q.slotId);Z.ZI.OR("ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED", Q);Z=g.n(Z.j);for(b=Z.next();!b.done;b=Z.next())b=b.value,b.e_(Q),z&&!K&&b.vN(Q,z)}}}}; pcf=function(Z,Q,z){if(nw(Z.Y,Q)&&R$(ch(Z.Y,Q))){var K=pw(Z.Y,Q);if(K&&Ph(Z.Y,Q))COx(Z,Q,K,z?"error":"abandoned");else{Z.ZI.OR("ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",Q);try{var b=ch(Z.Y,Q);if(!b)throw new w("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");b.Y!=="enter_requested"&&b.Y!=="entered"&&b.Y!=="rendering"&&Hh(b.slot,b.Y,"exitSlot");b.Y="exit_requested";if(b.j===void 0)throw b.Y="scheduled",new w("Cannot exit slot because adapter is not defined", void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");b.j.uF()}catch(q){q instanceof w&&q.eQ?(Z.ZI.vP("ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",q.eQ,Q),vM(q,Q,void 0,void 0,q.Vv)):(Z.ZI.vP("ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",Q),vM(q,Q))}}}}; HOf=function(Z){this.slot=Z;this.P7=new Map;this.jJ=new Map;this.U=new Map;this.SJ=new Map;this.S=this.layout=this.j=this.T=void 0;this.K=this.L=!1;this.X=[];this.Y="not_scheduled";this.W="not_filled"}; R$=function(Z){return Z.Y==="enter_requested"||Z.isActive()}; Ui=function(Z,Q,z,K,b,q){g.O.call(this);this.a6=Z;this.S=Q;this.L=z;this.W=K;this.j=b;this.H7=q;this.Y=new Map}; Cw=function(Z,Q){return(Z=Z.Y.get(Q))?Z:new Map}; ch=function(Z,Q){return Cw(Z,Q.slotType+"_"+Q.slotPhysicalPosition).get(Q.slotId)}; MDx=function(Z){var Q=[];Z.Y.forEach(function(z){z=g.n(z.values());for(var K=z.next();!K.done;K=z.next())Q.push(K.value.slot)}); return Q}; nw=function(Z,Q){return ch(Z,Q)!=null}; Ph=function(Z,Q){Z=ch(Z,Q);if(Q=Z.layout!=null)a:switch(Z.Y){case "rendering":case "rendering_stop_requested":Q=!0;break a;default:Q=!1}return Q}; pw=function(Z,Q){(Z=ch(Z,Q))?Z.layout!=null&&!Z.layout&&vM("Unexpected empty layout",Q):vM("Unexpected undefined slotState",Q);return(Z==null?void 0:Z.layout)||null}; Oi=function(Z,Q,z){if(z.length==0)throw new w("No "+UUn.get(Q)+" triggers found for slot.",void 0,OOX(Q));z=g.n(z);for(var K=z.next();!K.done;K=z.next())if(K=K.value,!Z.a6.L$.get(K.triggerType))throw new w("No trigger adapter registered for "+Q+" trigger of type: "+K.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");}; OOX=function(Z){switch(Z){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"}}; mP=function(Z,Q,z){z=g.n(z);for(var K=z.next();!K.done;K=z.next())if(K=K.value,!Z.a6.L$.get(K.triggerType))throw new bz("No trigger adapter registered for "+UUn.get(Q)+" trigger of type: "+K.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");}; I$=function(Z,Q,z,K){K=g.n(K);for(var b=K.next();!b.done;b=K.next()){b=b.value;var q=Z.a6.L$.get(b.triggerType);q.Hk(z,b,Q.slot,Q.layout?Q.layout:null);Q.SJ.set(b.triggerId,q)}}; Mf=function(Z,Q){Q=g.n(Q);for(var z=Q.next();!z.done;z=Q.next()){z=z.value;var K=Z.SJ.get(z.triggerId);K&&(K.JL(z),Z.SJ.delete(z.triggerId))}}; Hh=function(Z,Q,z){vM("Slot stage was "+Q+" when calling method "+z,Z)}; oYM=function(Z){return o$(Z.Xn).concat(o$(Z.L$)).concat(o$(Z.i_)).concat(o$(Z.Kz)).concat(o$(Z.ZR))}; o$=function(Z){var Q=[];Z=g.n(Z.values());for(var z=Z.next();!z.done;z=Z.next())z=z.value,z.Px&&Q.push(z);return Q}; Bh=function(Z){g.O.call(this);var Q=this;this.Y=Z;this.instance=null;this.addOnDisposeCallback(function(){g.jR(Q.instance);Q.instance=null})}; Wh=function(Z){return new Bh(Z)}; VF=function(Z){g.O.call(this);this.Y=Z;this.j=B9n(this)}; B9n=function(Z){var Q=new $H(function(z,K,b,q){return new Ui(Z.Y.a6,z,K,b,q,Z.Y.H7)},new Set(oYM(Z.Y.a6).concat(Z.Y.listeners)),Z.Y.ZI,Z.Y.H7); g.W(Z,Q);return Q}; kH=function(Z){this.Y=Z}; uz=function(Z,Q,z){DUn(Z.Y(),Q,z)}; xH=function(Z,Q,z,K){(Z=Z.Y())||vM("Could not initiate a command router instance.");Ml(Z,Q,z,K)}; tJ=function(){this.listeners=new Set}; Fp=function(Z){this.H7=Z}; WZM=function(Z,Q){var z=Q.bgp&&Q.bgub,K=!!Q.upb;Q.siub&&Q.scs&&(z||K)&&(K&&e1(Z.H7.get(),"html5_export_sodar_snapshot")?iR().then(function(b){b=b.snapshot.bind(b);g.BG("yt.abuse.playerAttLoaderRun",b);e8G(Q.siub,Q.scs,Q.bgub,Q.bgp,Q.upb)}):e8G(Q.siub,Q.scs,Q.bgub,Q.bgp,Q.upb))}; VDM=function(Z,Q,z,K,b){this.callback=Z;this.slot=Q;this.j=z;this.Ky=K;this.H7=b;this.Y=null}; us9=function(Z,Q,z,K){Z.Y&&vM("Currently active request ongoing for slot. This should never happen",Z.slot);Z.Y=Q();Z.Y.then(function(b){Z.Y=null;K&&K(b);var q=b.e3?"LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE":"LAYOUT_TYPE_AD_BREAK_RESPONSE",r=Z.j.get(),D=Z.slot.slotId,v=YH(Z.Ky.get(),{slotId:Z.slot.slotId,slotType:Z.slot.slotType,slotPhysicalPosition:Z.slot.slotPhysicalPosition,mF:Z.slot.mF,slotEntryTrigger:Z.slot.slotEntryTrigger,slotFulfillmentTriggers:Z.slot.slotFulfillmentTriggers,slotExpirationTriggers:Z.slot.slotExpirationTriggers}), Y=wZ(r.j.get(),q,D),X={layoutId:Y,layoutType:q,mF:"core"};b={layoutId:Y,layoutType:q,wq:new Map,layoutExitNormalTriggers:[new k1n(r.Y,D)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Nb:[],mF:"core",clientMetadata:new qf([new O$(b)]),EA:v(X)};Jyr(Z.callback,Z.slot,b)},function(b){Z.Y=null; z&&z();b instanceof LE||Lw(Z.callback,Z.slot,new w(b,void 0,"ADS_CLIENT_ERROR_MESSAGE_AD_BREAK_REQUEST_ERROR",!0),"ADS_CLIENT_ERROR_TYPE_FULFILL_SLOT_FAILED")})}; xUx=function(Z){if(Z.Y==null)Z.callback.jk(Z.slot);else try{Z.Y.cancel(),Z.Y=null,Z.callback.jk(Z.slot)}catch(Q){Z.Y=null,Lw(Z.callback,Z.slot,new w(Q,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANCEL_SLOT_FULFILLMENT_FAILURE"),"ADS_CLIENT_ERROR_TYPE_CANCEL_FULFILL_SLOT_FAILED")}}; Ei=function(Z,Q,z,K){!Z&&(z===void 0?0:z)&&g.CO(Error("Player URL validator detects invalid url. "+(K===void 0?"":K)+": "+Q));return Z}; lz=function(Z,Q){return Q&&Q.test(Z)?!0:!1}; s1=function(Z){return(Z=tDM&&tDM.exec(Z))?Z[0]:""}; ZB=function(Z){var Q=Q===void 0?!1:Q;return Ei(lz(Z,FZD),Z,Q,"Trusted Stream URL")}; g.Qh=function(Z){var Q=Q===void 0?!1:Q;return Ei(lz(Z,eHd),Z,Q,"Trusted Image URL")}; EYD=function(Z){var Q=Q===void 0?!1:Q;return Ei(lz(Z,wc0),Z,Q,"Trusted Promoted Video Domain URL")}; sp4=function(Z){var Q=Q===void 0?!1:Q;return Ei(lz(Z,lxx),Z,Q,"Drm Licensor URL")}; Qp4=function(Z,Q){Q=Q===void 0?!1:Q;return Ei(lz(Z,Ziu),Z,Q,"Captions URL")}; zuu=function(Z){Z=new g.jg(Z);g.D9(Z,document.location.protocol);g.vJ(Z,document.location.hostname);document.location.port&&g.gc(Z,document.location.port);return Z.toString()}; zQ=function(Z){Z=new g.jg(Z);g.D9(Z,document.location.protocol);return Z.toString()}; g.b6=function(Z,Q,z){z=z===void 0?{}:z;this.start=Z;this.end=Q;this.active=!0;this.color="";this.wb=0;this.j=Kcd++;this.id=z.id||"";this.priority=z.priority||9;this.visible=z.visible||!1;this.style=z.style||KH.AD_MARKER;this.namespace=z.namespace||"";if(Z=z.color)Z=Z.toString(16),this.color="#"+Array(7-Z.length).join("0")+Z;this.tooltip=z.tooltip;this.icons=z.icons?z.icons.filter(function(K){return g.It(K.thumbnails,function(b){return g.Qh(b.url)})}):null; this.visible=this.visible;this.style=this.style;this.start=this.start}; bi4=function(Z){return Z===-0x8000000000000?"BEFORE_MEDIA_START":Z===0?"MEDIA_START":Z===0x7ffffffffffff?"MEDIA_END":Z===0x8000000000000?"AFTER_MEDIA_END":Z.toString()}; q20=function(Z,Q){switch(Z.style){case KH.CHAPTER_MARKER:return Q?8:5;case KH.AD_MARKER:return 6;case KH.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}}; g.q4=function(Z,Q){return Z.start-Q.start||Z.priority-Q.priority||Z.j-Q.j}; g.r7=function(Z){return"crn_"+Z}; g.AH=function(Z){return"crx_"+Z}; jX=function(Z,Q,z,K,b,q,r,D,v){this.slot=Q;this.j=z;this.v7=r;this.LN=D;this.LL=v;this.Y=new VDM(Z,Q,K,b,q)}; rBf=function(Z){var Q;(Q=Z.LL)==null||Q.get().YP(rZ(Z.slot.clientMetadata,"metadata_type_cue_point").identifier)}; DB=function(Z,Q,z,K,b,q){this.slot=Q;this.Y=z;this.j=new VDM(Z,Q,K,b,q)}; ve=function(Z,Q){this.callback=Z;this.slot=Q}; g7=function(Z,Q){return j1(Z,Q.Lf,Q.slotType)?!0:!1}; YE=function(){}; Xa=function(Z,Q,z,K,b,q,r){this.Y=Z;this.j=Q;this.Ky=z;this.H7=K;this.v7=b;this.LN=q;this.LL=r}; SX=function(){}; ABn=function(Z,Q,z,K,b,q){this.callback=Z;this.slot=Q;this.layout=z;this.S=K;this.Y=b;this.j=q}; DEu=function(Z){if(rZ(Z.slot.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule")){var Q=jpn(Z,Z.slot);$E(Z.Y.get(),"OPPORTUNITY_TYPE_PAUSE_AD_BREAK_REQUEST_SLOT_RESCHEDULE",function(){return[Q]})}}; vfX=function(Z){if(rZ(Z.slot.clientMetadata,"metadata_type_prefetch_metadata")){var Q=jpn(Z,Z.slot);$E(Z.Y.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return[Q]})}}; jpn=function(Z,Q){var z=TQ(Z.j.get(),Z.slot.slotType),K=Object,b=K.assign;Z=Z.slot;if(Q.slotEntryTrigger){var q=Q.slotId;var r=Q.slotEntryTrigger;q=r.triggeringSlotId!=null&&r.triggeringSlotId===q?r.clone(z):r}else q=void 0;return b.call(K,{},Z,{slotId:z,slotEntryTrigger:q,slotFulfillmentTriggers:gfG(Q.slotId,z,Q.slotFulfillmentTriggers),slotExpirationTriggers:gfG(Q.slotId,z,Q.slotExpirationTriggers)})}; gfG=function(Z,Q,z){var K=[];z=g.n(z);for(var b=z.next();!b.done;b=z.next()){var q=K,r=q.push;var D=Z;var v=Q;b=b.value;D=b.triggeringSlotId!=null&&b.triggeringSlotId===D?b.clone(v):b;r.call(q,D)}return K}; g.fH=function(Z,Q){for(var z=g.n(Object.keys(Q)),K=z.next(),b={};!K.done;b={placeholder:void 0},K=z.next())K=K.value,b.placeholder=Q[K],Z=Z.replace(new RegExp("\\$"+K,"gi"),function(q){return function(){return q.placeholder}}(b)); return Z}; Y29=function(Z,Q,z){this.Y=Z;this.slot=Q;this.layout=z}; hH=function(Z,Q,z){Q.layoutId!==Z.layout.layoutId?Z.Y.O6(Z.slot,Q,new bz("Unknown layout received. Required LayoutId: "+Z.layout.layoutId+("and LayoutType: "+Z.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):z()}; LH=function(Z,Q,z,K){g.rV.call(this);this.callback=Z;this.S=K;this.Y=[];this.j=new Y29(Z,Q,z)}; ce=function(Z,Q,z,K,b,q,r,D){K=K||rZ(z.clientMetadata,q);Z=nH(Z);var v=gw(function(){b.Iy(Q,z)}); D.push(r(K,Z,z.layoutId,{adsClientData:z.EA},function(){v()}))}; Ix=function(Z,Q,z,K,b,q,r,D,v){if(Q===Z)if(v){if(v===D.layoutId){a:{Z=g.n(z.keys());for(Q=Z.next();!Q.done;Q=Z.next())if(Q=Q.value,Q.slotType==="SLOT_TYPE_PLAYER_BYTES"&&q===z.get(Q).layoutId){z=!0;break a}z=!1}z?mo(K,1):b?b():vM("Tried to call engagePingCallback but it is null",r,D)}}else vM("Companion AdUxClick received without a layoutId",r,D)}; JH=function(Z){var Q,z,K,b,q;return!((Q=Z.get("active_view_viewable"))==null||!Q.length)||!((z=Z.get("active_view_measurable"))==null||!z.length)||!((K=Z.get("active_view_fully_viewable_audible_half_duration"))==null||!K.length)||!((b=Z.get("audio_audible"))==null||!b.length)||!((q=Z.get("audio_measurable"))==null||!q.length)}; yh=function(Z){var Q,z;return(z=Z==null?void 0:(Q=Z.activeViewTracking)==null?void 0:Q.trafficType)!=null?z:"ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; d7=function(Z){var Q,z;return new Map([["impression",Z.impressionPings||[]],["error",Z.errorPings||[]],["mute",Z.mutePings||[]],["unmute",Z.unmutePings||[]],["pause",Z.pausePings||[]],["rewind",Z.rewindPings||[]],["resume",Z.resumePings||[]],["skip",Z.skipPings||[]],["swipe",Z.swipePings||[]],["close",Z.closePings||[]],["progress",Z.progressPings||[]],["clickthrough",Z.clickthroughPings||[]],["fullscreen",Z.fullscreenPings||[]],["active_view_viewable",Z.activeViewViewablePings||[]],["active_view_measurable", Z.activeViewMeasurablePings||[]],["active_view_fully_viewable_audible_half_duration",Z.activeViewFullyViewableAudibleHalfDurationPings||[]],["audio_audible",((Q=Z.activeViewTracking)==null?void 0:Q.activeViewAudioAudiblePings)||[]],["audio_measurable",((z=Z.activeViewTracking)==null?void 0:z.activeViewAudioMeasurablePings)||[]],["end_fullscreen",Z.endFullscreenPings||[]],["channel_clickthrough",Z.channelClickthroughPings||[]],["abandon",Z.abandonPings||[]],["start",Z.startPings||[]],["first_quartile", Z.firstQuartilePings||[]],["midpoint",Z.secondQuartilePings||[]],["third_quartile",Z.thirdQuartilePings||[]],["complete",Z.completePings||[]],["unmuted_impression",Z.unmutedImpressionPings||[]],["unmuted_error",Z.unmutedErrorPings||[]],["unmuted_mute",Z.unmutedMutePings||[]],["unmuted_unmute",Z.unmutedUnmutePings||[]],["unmuted_pause",Z.unmutedPausePings||[]],["unmuted_resume",Z.unmutedResumePings||[]],["unmuted_close",Z.unmutedClosePings||[]],["unmuted_progress",Z.unmutedProgressPings||[]],["unmuted_clickthrough", Z.unmutedClickthroughPings||[]],["unmuted_fullscreen",Z.unmutedFullscreenPings||[]],["unmuted_end_fullscreen",Z.unmutedEndFullscreenPings||[]],["unmuted_abandon",Z.unmutedAbandonPings||[]],["unmuted_start",Z.unmutedStartPings||[]],["unmuted_first_quartile",Z.unmutedFirstQuartilePings||[]],["unmuted_midpoint",Z.unmutedSecondQuartilePings||[]],["unmuted_third_quartile",Z.unmutedThirdQuartilePings||[]],["unmuted_complete",Z.unmutedCompletePings||[]],["unmuted_skip",Z.unmutedSkipPings||[]]])}; XIG=function(Z){switch(Z){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}}; N4=function(Z,Q,z,K,b){b=b===void 0?null:b;this.S=Z;this.v7=Q;this.layoutId=K;this.W=0;this.K=null;this.L=void 0;this.Y=new Set;this.j=Array.from(this.S.get("progress")||[]);this.j.sort(function(q,r){return(q.offsetMilliseconds||0)-(r.offsetMilliseconds||0)}); this.T={adPlacementConfig:z,yy:b}}; GQ=function(){return["metadata_type_ad_placement_config"]}; nH=function(Z){var Q=Z.v7.get();return i6(Q,Z.T)}; Pe=function(Z,Q,z){z=z===void 0?!1:z;Z.Y.has(Q)?ax(Z,Q,[]):Z.Ao(Q,z)}; Rx=function(Z,Q,z){for(z=z===void 0?!1:z;Z.W<Z.j.length;){var K=Z.j[Z.W];if(K.offsetMilliseconds<=Q||z)ax(Z,"progress",[K]),Z.W++;else break}}; CH=function(Z,Q){return Z.Y.has(Q)}; pH=function(Z){return Z.j.every(function(Q){return Q.hasOwnProperty("offsetMilliseconds")})}; S2n=function(Z,Q,z){Z.K=Q;Z.L=z}; ax=function(Z,Q,z){var K;$EX(Z.v7.get(),Z.layoutId,Q,z,(K=Z.K)!=null?K:void 0,Z.L)}; TVd=function(Z,Q,z,K,b){qE.call(this,"ads-engagement-panel-layout",Z,Q,z,K,b)}; He=function(Z,Q,z,K,b,q,r,D){LH.call(this,Z,Q,z,K);this.v7=b;this.wy=q;this.K=D;this.Px=!0;this.W=null;this.L=rZ(z.clientMetadata,"metadata_type_linked_player_bytes_layout_id");Tv(this.wy(),this);Z=rZ(z.clientMetadata,"metadata_type_ad_placement_config");this.yp=new N4(z.wq,this.v7,Z,z.layoutId)}; fz0=function(){var Z=["metadata_type_ads_engagement_panel_layout_view_model","metadata_type_linked_player_bytes_layout_id"];GQ().forEach(function(Q){Z.push(Q)}); return{Lf:Z,Wg:["LAYOUT_TYPE_PANEL"]}}; huG=function(Z,Q,z,K,b){qE.call(this,"banner-image",Z,Q,z,K,b)}; M4=function(Z,Q,z,K,b,q,r,D){LH.call(this,Z,Q,z,K);this.v7=b;this.wy=q;this.K=D;this.Px=!0;this.W=null;this.L=rZ(z.clientMetadata,"metadata_type_linked_player_bytes_layout_id");Tv(this.wy(),this);this.adPlacementConfig=rZ(z.clientMetadata,"metadata_type_ad_placement_config");this.yp=new N4(z.wq,this.v7,this.adPlacementConfig,z.layoutId)}; LcX=function(){var Z=["metadata_type_banner_image_layout_view_model","metadata_type_linked_player_bytes_layout_id"];GQ().forEach(function(Q){Z.push(Q)}); return{Lf:Z,Wg:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}}; U1=function(Z,Q,z,K,b){qE.call(this,"action-companion",Z,Q,z,K,b)}; O1=function(Z,Q,z,K,b,q,r,D){LH.call(this,Z,Q,z,K);this.v7=b;this.wy=q;this.K=D;this.Px=!0;this.W=null;this.L=rZ(z.clientMetadata,"metadata_type_linked_player_bytes_layout_id");Tv(this.wy(),this);Z=rZ(z.clientMetadata,"metadata_type_ad_placement_config");this.yp=new N4(z.wq,this.v7,Z,z.layoutId)}; nfu=function(){var Z=["metadata_type_action_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];GQ().forEach(function(Q){Z.push(Q)}); return{Lf:Z,Wg:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}}; cBr=function(Z,Q,z,K,b){qE.call(this,"image-companion",Z,Q,z,K,b)}; ox=function(Z,Q,z,K,b,q,r,D){LH.call(this,Z,Q,z,K);this.v7=b;this.wy=q;this.K=D;this.Px=!0;this.W=null;this.L=rZ(z.clientMetadata,"metadata_type_linked_player_bytes_layout_id");Tv(this.wy(),this);Z=rZ(z.clientMetadata,"metadata_type_ad_placement_config");this.yp=new N4(z.wq,this.v7,Z,z.layoutId)}; mEG=function(){var Z=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];GQ().forEach(function(Q){Z.push(Q)}); return{Lf:Z,Wg:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}}; Izn=function(Z,Q,z,K,b){qE.call(this,"shopping-companion",Z,Q,z,K,b)}; Be=function(Z,Q,z,K,b,q,r,D){LH.call(this,Z,Q,z,K);this.v7=b;this.wy=q;this.K=D;this.Px=!0;this.W=null;this.L=rZ(z.clientMetadata,"metadata_type_linked_player_bytes_layout_id");Tv(this.wy(),this);Z=rZ(z.clientMetadata,"metadata_type_ad_placement_config");this.yp=new N4(z.wq,this.v7,Z,z.layoutId)}; JBX=function(){var Z=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];GQ().forEach(function(Q){Z.push(Q)}); return{Lf:Z,Wg:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}}; yBx=function(Z){var Q;if(((Q=Z.adVideoOffset)==null?void 0:Q.kind)!=="AD_VIDEO_PROGRESS_KIND_PERCENT")return!1;var z;return((z=Z.adVideoOffset)==null?void 0:z.percent)!=null}; dEW=function(Z){var Q;if(((Q=Z.adVideoOffset)==null?void 0:Q.kind)!=="AD_VIDEO_PROGRESS_KIND_MILLISECONDS")return!1;var z;return((z=Z.adVideoOffset)==null?void 0:z.milliseconds)!=null&&!isNaN(Number(Z.adVideoOffset.milliseconds))}; NVD=function(Z,Q,z,K){this.v4=Z;this.layoutId=z;this.L=K;this.j=[];this.Y=[];this.S=this.W=0;Z=g.n(Q);for(Q=Z.next();!Q.done;Q=Z.next())switch(Q=Q.value,z=void 0,(z=Q.adVideoOffset)==null?void 0:z.kind){case "AD_VIDEO_PROGRESS_KIND_PERCENT":yBx(Q)?this.j.push(Q):vM("Invalid AdVideoProgressPercentCommand");break;case "AD_VIDEO_PROGRESS_KIND_MILLISECONDS":dEW(Q)?this.Y.push(Q):vM("Invalid AdVideoProgressMillisecondsCommand");break;default:vM("Unknown or invalid AdVideoProgressOffSet kind")}this.j.sort(function(b, q){return b.adVideoOffset.percent-q.adVideoOffset.percent}); this.Y.sort(function(b,q){return Number(b.adVideoOffset.milliseconds)-Number(q.adVideoOffset.milliseconds)})}; We=function(Z,Q,z){z=z===void 0?!1:z;var K=Z.L();if(K){for(;Z.W<Z.j.length;){var b=Z.j[Z.W];if(b.adVideoOffset.percent*K<=Q||z)Z.v4.get().executeCommand(b.command,Z.layoutId),Z.W++;else break}for(;Z.S<Z.Y.length;)if(K=Z.Y[Z.S],Number(K.adVideoOffset.milliseconds)<=Q||z)Z.v4.get().executeCommand(K.command,Z.layoutId),Z.S++;else break}}; Vh=function(Z,Q,z,K,b,q){LH.call(this,Z,Q,z,K);this.v7=b;this.wy=q;this.Px=!0;Tv(this.wy(),this);Z=rZ(z.clientMetadata,"metadata_type_ad_placement_config");this.yp=new N4(z.wq,this.v7,Z,z.layoutId)}; GyX=function(){var Z=["metadata_type_action_companion_ad_renderer"];GQ().forEach(function(Q){Z.push(Q)}); return{Lf:Z,Wg:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}}; iiu=function(Z,Q,z,K,b,q,r,D){this.callback=Z;this.slot=Q;this.layout=z;this.LN=K;this.v7=b;this.H7=r;this.B4=D;this.Y=!1;Z=rZ(z.clientMetadata,"metadata_type_ad_placement_config");this.yp=new N4(z.wq,this.v7,Z,z.layoutId);var v;Z=((v=rZ(this.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"))==null?void 0:v.progressCommands)||[];var Y=rZ(z.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds");this.j=new NVD(q,Z,z.layoutId,function(){return Y*1E3})}; kE=function(Z,Q,z,K,b,q){LH.call(this,Z,Q,z,K);this.LN=b;this.L=q;this.W=!1}; u6=function(Z,Q,z,K,b){qE.call(this,"top-banner-image-text-icon-buttoned",Z,Q,z,K,b)}; xE=function(Z,Q,z,K,b,q){LH.call(this,Z,Q,z,K);this.v7=b;this.wy=q;this.Px=!0;Tv(this.wy(),this);Z=rZ(z.clientMetadata,"metadata_type_ad_placement_config");this.yp=new N4(z.wq,this.v7,Z,z.layoutId)}; az0=function(){var Z=["metadata_type_top_banner_image_text_icon_buttoned_layout_view_model"];GQ().forEach(function(Q){Z.push(Q)}); return{Lf:Z,Wg:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}}; tH=function(Z,Q,z){qE.call(this,"display-underlay-text-grid-cards",Z,{},Q,z);this.interactionLoggingClientData=z}; Fa=function(Z,Q,z,K,b,q){LH.call(this,Z,Q,z,K);this.v7=b;this.W=q;this.L=rZ(this.layout.clientMetadata,"metadata_type_linked_player_bytes_layout_id")}; eX=function(Z,Q,z,K,b,q){b=b===void 0?!1:b;q=q===void 0?!1:q;qE.call(this,"ad-action-interstitial",Z,Q,z,K);this.interactionLoggingClientData=K;this.u$=b;this.Oi=q}; w7=function(Z,Q,z,K,b){LH.call(this,Z,Q,z,K);Z=rZ(z.clientMetadata,"metadata_type_ad_placement_config");this.yp=new N4(z.wq,b,Z,z.layoutId)}; Pod=function(){var Z=["metadata_type_ad_action_interstitial_renderer"];GQ().forEach(function(Q){Z.push(Q)}); return{Lf:Z,Wg:["LAYOUT_TYPE_ENDCAP"]}}; E1=function(Z,Q){return zv(Z,Q.Lf,Q.Wg)?!0:!1}; l6=function(Z,Q,z){this.j=Z;this.S=Q;this.Y=z}; RuX=function(Z,Q,z,K,b){qE.call(this,"ads-engagement-panel",Z,Q,z,K,b)}; ZL=function(Z,Q,z,K,b,q,r,D){LH.call(this,Z,Q,z,K);this.v7=b;this.wy=q;this.K=D;this.Px=!0;this.W=null;this.L=rZ(z.clientMetadata,"metadata_type_linked_player_bytes_layout_id");Tv(this.wy(),this);Z=rZ(z.clientMetadata,"metadata_type_ad_placement_config");this.yp=new N4(z.wq,this.v7,Z,z.layoutId)}; Con=function(){var Z=["metadata_type_ads_engagement_panel_renderer","metadata_type_linked_player_bytes_layout_id"];GQ().forEach(function(Q){Z.push(Q)}); return{Lf:Z,Wg:["LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON"]}}; QI=function(Z,Q,z,K,b,q,r,D){LH.call(this,Z,Q,z,K);this.v7=b;this.wy=q;this.K=D;this.Px=!0;this.W=null;this.L=rZ(z.clientMetadata,"metadata_type_linked_player_bytes_layout_id");Tv(this.wy(),this);this.adPlacementConfig=rZ(z.clientMetadata,"metadata_type_ad_placement_config");this.yp=new N4(z.wq,this.v7,this.adPlacementConfig,z.layoutId)}; pIW=function(){var Z=["metadata_type_top_banner_image_text_icon_buttoned_layout_view_model","metadata_type_linked_player_bytes_layout_id"];GQ().forEach(function(Q){Z.push(Q)}); return{Lf:Z,Wg:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}}; HiG=function(Z,Q,z,K,b){this.J4=Z;this.v7=Q;this.wy=z;this.Y=K;this.B4=b}; MNr=function(Z,Q,z){this.J4=Z;this.v7=Q;this.Y=z}; UEG=function(Z,Q,z,K,b){this.callback=Z;this.slot=Q;this.layout=z;this.v7=K;this.lJ=b;Z=rZ(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.yp=new N4(z.wq,this.v7,Z,z.layoutId)}; Oiu=function(){var Z=["metadata_type_client_forecasting_ad_renderer"];GQ().forEach(function(Q){Z.push(Q)}); return{Lf:Z,Wg:["LAYOUT_TYPE_FORECASTING"]}}; of9=function(Z,Q,z,K,b){this.callback=Z;this.slot=Q;this.layout=z;this.v7=K;this.lJ=b;Z=rZ(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.yp=new N4(z.wq,this.v7,Z,z.layoutId)}; zZ=function(Z,Q,z,K){this.H7=Z;this.v7=Q;this.lJ=z;this.B4=K}; BV4=function(Z,Q){return QF(Z.clientMetadata,"metadata_type_ad_info_ad_metadata")?rZ(Z.clientMetadata,"metadata_type_ad_info_ad_metadata"):Q?{channelId:Q.n6,channelThumbnailUrl:Q.profilePicture,channelTitle:Q.author,videoTitle:Q.title}:(vM("No layout metadata nor AdPlayback specified for AdMetaData"),{channelId:"",channelThumbnailUrl:"",channelTitle:"",videoTitle:""})}; Wcf=function(Z,Q){return QF(Z.clientMetadata,"metadata_ad_video_is_listed")?rZ(Z.clientMetadata,"metadata_ad_video_is_listed"):Q?Q.isListed:(vM("No layout metadata nor AdPlayback specified for ad video isListed"),!1)}; VNG=function(Z,Q,z,K){qE.call(this,"player-overlay-layout",Z,{},z,K);this.videoAdDurationSeconds=Q;this.interactionLoggingClientData=K}; KI=function(Z,Q,z,K,b,q,r,D){LH.call(this,Z,Q,z,K);this.LN=b;this.v7=q;this.K=r;this.L=D;this.W=!1;this.T=rZ(this.layout.clientMetadata,"metadata_type_linked_player_bytes_layout_id")}; ky4=function(Z){if(Z.layout.renderingContent){var Q;return(Q=rZ(Z.layout.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:Q.current}return rZ(Z.layout.clientMetadata,"metadata_type_player_bytes_callback")}; bt=function(Z,Q,z,K,b,q,r,D){LH.call(this,Z,Q,z,K);this.LN=b;this.v7=q;this.K=r;this.L=D;this.W=!1;this.T=rZ(this.layout.clientMetadata,"metadata_type_linked_player_bytes_layout_id")}; uNn=function(){return{Lf:["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"],Wg:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]}}; q5=function(Z){if(Z.layout.renderingContent){var Q;return(Q=rZ(Z.layout.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:Q.current}return rZ(Z.layout.clientMetadata,"metadata_type_player_bytes_callback")}; xEG=function(Z,Q,z){qE.call(this,"ad-message",Z,void 0,Q,z)}; r8=function(Z,Q,z,K,b,q){LH.call(this,z,Z,Q,K);this.LN=b;this.H7=q}; tNx=function(){return{Lf:["metadata_type_valid_ad_message_renderer"],Wg:["LAYOUT_TYPE_TEXT_BANNER_OVERLAY"]}}; Fcn=function(Z,Q,z,K){qE.call(this,"video-interstitial-buttoned-centered",Z,Q,z,K);this.interactionLoggingClientData=K}; A7=function(Z,Q,z,K,b){LH.call(this,Z,Q,z,K);Z=rZ(z.clientMetadata,"metadata_type_ad_placement_config");this.yp=new N4(z.wq,b,Z,z.layoutId)}; Yh=function(Z,Q,z,K,b,q,r,D,v){return E1(z,uNn())||z.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.V(z.renderingContent,j5)!==void 0?new bt(Z,Q,z,K,b,q,r,D):E1(z,{Lf:["metadata_type_player_overlay_layout_renderer","metadata_type_player_bytes_callback","metadata_type_linked_player_bytes_layout_id","METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"],Wg:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})||z.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.V(z.renderingContent,DL)!==void 0? new KI(Z,Q,z,K,b,q,r,D):E1(z,Pod())||z.layoutType==="LAYOUT_TYPE_ENDCAP"&&g.V(z.renderingContent,vN)!==void 0?new w7(Z,Q,z,K,q):E1(z,tNx())?new r8(Q,z,Z,K,b,v):E1(z,{Lf:["metadata_type_instream_ad_player_overlay_renderer"],Wg:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})?new kE(Z,Q,z,K,b,D):z.layoutType==="LAYOUT_TYPE_ENDCAP"&&g.V(z.renderingContent,g8)!==void 0?new A7(Z,Q,z,K,q):null}; euW=function(Z,Q,z,K,b,q){this.J4=Z;this.LN=Q;this.v7=z;this.j=K;this.Y=b;this.H7=q}; Xy=function(Z){return!Z.oldState.isPlaying()&&Z.state.isPlaying()}; S5=function(Z,Q,z){return Z<Q?!1:z!=null?z<=Q:Z<=Q+1}; $h=function(Z,Q,z,K,b,q,r,D){this.callback=Z;this.slot=Q;this.layout=z;this.LN=K;this.v7=b;this.H7=q;this.B4=r;this.ou=D;this.Y=!1;Z=rZ(z.clientMetadata,"metadata_type_ad_placement_config");this.yp=new N4(z.wq,this.v7,Z,z.layoutId)}; TZ=function(Z,Q){Z.Y||(Z.yp.Ao(Q),Z.Y=!0)}; wID=function(Z,Q,z,K,b,q){this.LN=Z;this.v7=Q;this.v4=z;this.H7=K;this.B4=b;this.ou=q}; fI=function(){this.currentState=1;this.Y="unknown"}; h7=function(Z,Q){if(Z.currentState>1){g.CO(new g.tW("Exit already started",{current:Z.currentState}));var z=!1}else z=!0;if(!z)return!1;Z.currentState=2;Z.Y=Q;return!0}; LI=function(Z){if(Z.currentState!==2)return!1;Z.currentState=3;return!0}; EfG=function(Z,Q){var z=new Map;Z=g.n(Z);for(var K=Z.next();!K.done;K=Z.next()){K=K.value;if(K.layoutType==="LAYOUT_TYPE_MEDIA")var b="v";else K.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(b=rZ(K.clientMetadata,"metadata_type_linked_in_player_layout_type"),b=b==="LAYOUT_TYPE_ENDCAP"||b==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":b==="LAYOUT_TYPE_SURVEY"?"s":b==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):b="u";z.set(K.layoutId,b);if(b==="u"){var q={};b=Q;K=(q.c=K.layoutId,q);b.J.pN("uct",K)}}Z= Q.XB();nI={contentCpn:Z,yD:z};K={};z=(K.ct=z.size,K.c=Z,K);Q.J.pN("acc",z)}; lzn=function(){nI={contentCpn:"",yD:new Map}}; cN=function(Z){var Q;return(Q=nI.yD.get(Z))!=null?Q:"u"}; mr=function(Z,Q,z){Z.J.pN(Q,z);ss0(Z)}; ZFX=function(Z){var Q=Z.layoutId,z=Z.kx;if(Z.RP){var K={};mr(Z.zg,"slso",(K.ec=Q,K.is=z,K.ctp=cN(Q),K))}}; I3=function(Z){var Q=Z.layoutId,z=Z.kx;if(Z.RP){var K={};mr(Z.zg,"slse",(K.ec=Q,K.is=z,K.ctp=cN(Q),K))}}; Qs9=function(Z){var Q=Z.layoutId,z=Z.kx,K=Z.zg;Z.RP&&(Z={},mr(K,"sleo",(Z.xc=Q,Z.is=z,Z.ctp=cN(Q),Z)),ss0(K))}; z74=function(Z){var Q=Z.cpn,z=Z.zg;Z=Z.kx;var K=z.XB(),b={};mr(z,"ce",(b.ec=Q,b.ia=Q!==K,b.r=nI.yD.has(Q),b.is=Z,b.ctp=cN(Q),b))}; ss0=function(Z){if(Z.XB()!==nI.contentCpn){var Q={};Q=(Q.c=nI.contentCpn,Q);Z.J.pN("ccm",Q)}}; KMG=function(Z){var Q=Z.cpn,z=Z.zg;Z=Z.kx;var K=z.XB(),b={};mr(z,"cx",(b.xc=Q,b.ia=Q!==K,b.r=nI.yD.has(Q),b.is=Z,b.ctp=cN(Q),b))}; bFx=function(Z){this.params=Z;this.Y=new Set}; q80=function(Z,Q,z){if(!Z.Y.has(Q)){Z.Y.add(Q);var K={};Z.params.gV.Sf(Q,Object.assign({},z,(K.p_ac=Z.params.adCpn,K.p_isv=Z.params.auJ&&Z.params.Gy,K)))}}; yI=function(Z,Q,z){if(J7(Z.params.gV.H7.get(),!0)){var K=z.flush,b={};q80(Z,Q,(b.cts=z.currentTimeSec,b.f=K,b))}}; r1f=function(Z,Q){this.zg=Z;this.H7=Q}; d8=function(Z){var Q=[];if(Z){Z=g.n(Object.entries(Z));for(var z=Z.next();!z.done;z=Z.next()){var K=g.n(z.value);z=K.next().value;K=K.next().value;K!==void 0&&(K=typeof K==="boolean"?""+ +K:(""+K).replace(/[:,=]/g,"_"),Q.push(z+"."+K))}}return Q.join(";")}; N5=function(Z,Q,z){Q=Q===void 0?{}:Q;this.errorCode=Z;this.details=Q;this.severity=z===void 0?0:z}; GZ=function(Z){return Z===1||Z===2}; it=function(Z,Q){Q=Q===void 0?0:Q;if(Z instanceof N5)return Z;Z=Z&&Z instanceof Error?Z:Error(""+Z);GZ(Q)?g.Rm(Z):g.CO(Z);return new N5(Q===1?"player.fatalexception":"player.exception",{name:""+Z.name,message:""+Z.message},Q)}; A1D=function(Z,Q){function z(){var K=g.iu.apply(0,arguments);Z.removeEventListener("playing",z);Q.apply(null,g.I(K))} Z.addEventListener("playing",z)}; a3=function(){var Z=g.WG("yt.player.utils.videoElement_");Z||(Z=g.lY("VIDEO"),g.BG("yt.player.utils.videoElement_",Z));return Z}; PN=function(Z){var Q=a3();return!!(Q&&Q.canPlayType&&Q.canPlayType(Z))}; CI=function(Z){if(/opus/.test(Z)&&g.R3&&!yn("38")&&!g.kq())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(Z);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(Z);if(/webm/.test(Z)&&!hjX())return!1;Z==='audio/mp4; codecs="mp4a.40.2"'&&(Z='video/mp4; codecs="avc1.4d401f"');return!!PN(Z)}; jsG=function(Z){try{var Q=CI('video/mp4; codecs="avc1.42001E"')||CI('video/webm; codecs="vp9"');return(CI('audio/mp4; codecs="mp4a.40.2"')||CI('audio/webm; codecs="opus"'))&&(Q||!Z)||PN('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(z){return"html5.missingapi"}}; pI=function(){var Z=a3();return!(!Z.webkitSupportsPresentationMode||typeof Z.webkitSetPresentationMode!=="function")}; HN=function(){var Z=a3();try{var Q=Z.muted;Z.muted=!Q;return Z.muted!==Q}catch(z){}return!1}; DjW=function(){var Z;return((Z=navigator.connection)==null?void 0:Z.type)||""}; g.M5=function(){NW.apply(this,arguments)}; Us=function(Z,Q,z,K,b,q,r){this.sampleRate=Z===void 0?0:Z;this.numChannels=Q===void 0?0:Q;this.spatialAudioType=z===void 0?"SPATIAL_AUDIO_TYPE_NONE":z;this.Y=K===void 0?!1:K;this.S=b===void 0?0:b;this.j=q===void 0?0:q;this.audioQuality=r===void 0?"AUDIO_QUALITY_UNKNOWN":r}; BN=function(Z,Q,z,K,b,q,r,D,v){this.width=Z;this.height=Q;this.quality=q||Os(Z,Q);this.Y=g.o3[this.quality];this.fps=z||0;this.stereoLayout=!b||K!=null&&K!=="UNKNOWN"&&K!=="RECTANGULAR"?0:b;this.projectionType=K?K==="EQUIRECTANGULAR"&&b===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":K:"UNKNOWN";(Z=r)||(Z=g.o3[this.quality],Z===0?Z="Auto":(Q=this.fps,z=this.projectionType,Z=Z.toString()+(z==="EQUIRECTANGULAR"||z==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||z==="MESH"?"s":"p")+(Q>55?"60":Q>49?"50":Q>39?"48":""))); this.qualityLabel=Z;this.j=D||"";this.primaries=v||""}; Os=function(Z,Q){var z=Math.max(Z,Q);Z=Math.min(Z,Q);Q=WN[0];for(var K=0;K<WN.length;K++){var b=WN[K],q=g.o3[b];if(z>=Math.floor(q*16/9)*1.3||Z>=q*1.3)return Q;Q=b}return"tiny"}; ut=function(Z,Q,z){z=z===void 0?{}:z;this.id=Z;this.mimeType=Q;z.Yq>0||(z.Yq=16E3);Object.assign(this,z);Z=g.n(this.id.split(";"));this.itag=Z.next().value;this.Y=Z.next().value;this.containerType=VI(Q);this.Gf=kh[this.itag]||""}; xh=function(Z){return Z.Gf==="9"||Z.Gf==="("||Z.Gf==="9h"||Z.Gf==="(h"}; vC9=function(Z){return Z.Gf==="H"||Z.Gf==="h"}; t7=function(Z){return Z.Gf==="9h"||Z.Gf==="(h"}; gCn=function(Z){return!!Z.NR&&!!Z.NR.fairplay&&(Z.Gf==="("||Z.Gf==="(h"||Z.Gf==="A"||Z.Gf==="MEAC3")||Fy&&!!Z.NR&&Z.Gf==="1e"}; e5=function(Z){return Z.Gf==="1"||Z.Gf==="1h"||Fy&&Z.Gf==="1e"}; w8=function(Z){return Z.Gf==="mac3"||Z.Gf==="meac3"||Z.Gf==="m"||Z.Gf==="i"}; Es=function(Z){return Z.Gf==="MAC3"||Z.Gf==="MEAC3"||Z.Gf==="M"||Z.Gf==="I"}; g.lt=function(Z){return Z.containerType===1}; Y8W=function(Z){return Z.Gf==="("||Z.Gf==="(h"||Z.Gf==="H"||Fy&&Z.Gf==="1e"}; sZ=function(Z){return Z.mimeType==="application/x-mpegURL"}; ZR=function(Z){Z=Z.mimeType;return Z.includes("vtt")||Z.includes("text/mp4")}; g.QH=function(Z,Q){return{itag:+Z.itag,lmt:Q?0:Z.lastModified,xtags:Z.Y||""}}; XMn=function(Z){var Q=navigator.mediaCapabilities;if(Q==null||!Q.decodingInfo||Z.Gf==="f")return Promise.resolve();var z={type:Z.audio&&Z.video?"file":"media-source"};Z.video&&(z.video={contentType:Z.mimeType,width:Z.video.width||640,height:Z.video.height||360,bitrate:Z.Yq*8||1E6,framerate:Z.video.fps||30});Z.audio&&(z.audio={contentType:Z.mimeType,channels:""+(Z.audio.numChannels||2),bitrate:Z.Yq*8||128E3,samplerate:Z.audio.sampleRate||44100});return Q.decodingInfo(z).then(function(K){Z.j=K})}; zu=function(Z){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(Z)}; Ks=function(Z){return/(vp9|vp09|vp8|avc1|av01)/.test(Z)}; VI=function(Z){return Z.indexOf("/mp4")>=0?1:Z.indexOf("/webm")>=0?2:Z.indexOf("/x-flv")>=0?3:Z.indexOf("/vtt")>=0?4:0}; bx=function(Z,Q,z,K,b,q){var r=new Us;Q in g.o3||(Q="small");Q==="light"&&(Q="tiny");K&&b?(b=Number(b),K=Number(K)):(b=g.o3[Q],K=Math.round(b*16/9));q=new BN(K,b,0,null,void 0,Q,q);Z=unescape(Z.replace(/"/g,'"'));return new ut(z,Z,{audio:r,video:q})}; qB=function(Z){var Q="id="+Z.id;Z.video&&(Q+=", res="+Z.video.qualityLabel);var z,K;return Q+", byterate=("+((z=Z.F5)==null?void 0:z.toFixed(0))+", "+((K=Z.Yq)==null?void 0:K.toFixed(0))+")"}; rQ=function(Z,Q){return{start:function(z){return Z[z]}, end:function(z){return Q[z]}, length:Z.length}}; S8r=function(Z,Q,z){for(var K=[],b=[],q=0;q<Z.length;q++)K.push(Z.start(q)),b.push(Z.end(q));K.push(Q);b.push(z);K.sort(function(r,D){return r-D}); b.sort(function(r,D){return r-D}); return rQ(K,b)}; Ax=function(Z,Q,z){Q=Q===void 0?",":Q;z=z===void 0?Z?Z.length:0:z;var K=[];if(Z)for(z=Math.max(Z.length-z,0);z<Z.length;z++)K.push(Z.start(z).toFixed(3)+"-"+Z.end(z).toFixed(3));return K.join(Q)}; j8=function(Z,Q){if(!Z)return-1;try{for(var z=0;z<Z.length;z++)if(Z.start(z)<=Q&&Z.end(z)>=Q)return z}catch(K){}return-1}; DR=function(Z,Q){return j8(Z,Q)>=0}; $jG=function(Z,Q){if(!Z)return NaN;Q=j8(Z,Q);return Q>=0?Z.start(Q):NaN}; vd=function(Z,Q){if(!Z)return NaN;Q=j8(Z,Q);return Q>=0?Z.end(Q):NaN}; gQ=function(Z){return Z&&Z.length?Z.end(Z.length-1):NaN}; Y6=function(Z,Q){Z=vd(Z,Q);return Z>=0?Z-Q:0}; XF=function(Z,Q,z){for(var K=[],b=[],q=0;q<Z.length;q++)Z.end(q)<Q||Z.start(q)>z||(K.push(Math.max(Q,Z.start(q))-Q),b.push(Math.min(z,Z.end(q))-Q));return rQ(K,b)}; S8=function(Z,Q,z,K){g.rV.call(this);var b=this;this.Po=Z;this.start=Q;this.end=z;this.isActive=K;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.bQ={error:function(){!b.FI()&&b.isActive&&b.publish("error",b)}, updateend:function(){!b.FI()&&b.isActive&&b.publish("updateend",b)}}; this.Po.EK(this.bQ);this.A9=this.isActive}; Bd=function(Z,Q,z,K,b,q){g.rV.call(this);var r=this;this.TW=Z;this.mG=Q;this.id=z;this.containerType=K;this.Gf=b;this.Gy=q;this.zO=this.FQ=this.R3=null;this.pA=!1;this.appendWindowStart=this.timestampOffset=0;this.KY=rQ([],[]);this.DZ=!1;this.Vz=[];this.Bf=$6?[]:void 0;this.Bo=function(v){return r.publish(v.type,r)}; var D;if((D=this.TW)==null?0:D.addEventListener)this.TW.addEventListener("updateend",this.Bo),this.TW.addEventListener("error",this.Bo)}; Wd=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; VH=function(Z,Q){this.zW=Z;this.Y=Q===void 0?!1:Q;this.j=!1}; k6=function(Z,Q,z){z=z===void 0?!1:z;g.O.call(this);this.mediaElement=Z;this.Tf=Q;this.isView=z;this.K=0;this.W=!1;this.L=!0;this.U=0;this.callback=null;this.X=!1;this.Tf||(this.mG=this.mediaElement.OA());this.events=new g.M5(this);g.W(this,this.events);this.S=new VH(this.Tf?window.URL.createObjectURL(this.Tf):this.mG.webkitMediaSourceURL,!0);Z=this.Tf||this.mG;GM(this.events,Z,["sourceopen","webkitsourceopen"],this.hof);GM(this.events,Z,["sourceclose","webkitsourceclose"],this.GJB);this.T={updateend:this.Gj}}; TBu=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; fmu=function(Z,Q){ux(Z)?g.Ae(function(){Q(Z)}):Z.callback=Q}; h7W=function(Z,Q,z){if(x6){var K;tx(Z.mediaElement,{l:"mswssb",sr:(K=Z.mediaElement.Iu)==null?void 0:K.jc()},!1);Q.EK(Z.T,Z);z.EK(Z.T,Z)}Z.Y=Q;Z.j=z;g.W(Z,Q);g.W(Z,z)}; LMG=function(Z,Q,z,K){K=Q.mimeType+(K===void 0?"":K);var b=z.mimeType;Q=Q.Gf;z=z.Gf;var q;Z.jJ=(q=Z.Tf)==null?void 0:q.addSourceBuffer(b);var r;Z.SJ=K.split(";")[0]==="fakesb"?void 0:(r=Z.Tf)==null?void 0:r.addSourceBuffer(K);Z.mG&&(Z.mG.webkitSourceAddId("0",b),Z.mG.webkitSourceAddId("1",K));q=new Bd(Z.jJ,Z.mG,"0",VI(b),z,!1);K=new Bd(Z.SJ,Z.mG,"1",VI(K),Q,!0);h7W(Z,q,K)}; FF=function(Z){return!!Z.Y||!!Z.j}; ux=function(Z){try{return e8(Z)==="open"}catch(Q){return!1}}; e8=function(Z){if(Z.Tf)return Z.Tf.readyState;switch(Z.mG.webkitSourceState){case Z.mG.SOURCE_OPEN:return"open";case Z.mG.SOURCE_ENDED:return"ended";default:return"closed"}}; wQ=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; nCG=function(Z){ux(Z)&&(Z.Tf?Z.Tf.endOfStream():Z.mG.webkitSourceEndOfStream(Z.mG.EOS_NO_ERROR))}; c10=function(Z,Q,z,K){if(!Z.Y||!Z.j)return null;var b=Z.Y.isView()?Z.Y.Po:Z.Y,q=Z.j.isView()?Z.j.Po:Z.j,r=new k6(Z.mediaElement,Z.Tf,!0);r.S=Z.S;h7W(r,new S8(b,Q,z,K),new S8(q,Q,z,K));ux(Z)||Z.Y.Oq(Z.Y.Ry());return r}; mjX=function(Z){var Q;(Q=Z.Y)==null||Q.lH();var z;(z=Z.j)==null||z.lH();Z.L=!1}; EZ=function(){var Z=this;this.xN=this.eZ=aD4;this.promise=new g.XA(function(Q,z){Z.eZ=Q;Z.xN=z})}; lx=function(){g.O.call(this);this.t5=!1;this.zW=null;this.T=this.K=!1;this.W=new g.wC;this.Iu=null;g.W(this,this.W)}; sN=function(Z){Z=Z.ri();return Z.length<1?NaN:Z.end(Z.length-1)}; Imr=function(Z){!Z.j&&TBu()&&(Z.S?Z.S.then(function(){return Imr(Z)}):Z.bJ()||(Z.j=Z.NE()))}; J1G=function(Z){Z.j&&(Z.j.dispose(),Z.j=void 0)}; tx=function(Z,Q,z){var K;((K=Z.Iu)==null?0:K.aT())&&Z.Iu.pN("rms",Q,z===void 0?!1:z)}; y1d=function(Z,Q,z){Z.isPaused()||Z.getCurrentTime()>Q||z>10||(Z.play(),g.$q(function(){y1d(Z,Z.getCurrentTime(),z+1)},500))}; djf=function(Z,Q){Z.zW&&Z.zW.Tg(Q)||(Z.zW&&Z.zW.dispose(),Z.zW=Q)}; Zl=function(Z){return Y6(Z.gm(),Z.getCurrentTime())}; NBd=function(Z,Q){if(Z.oX()===0||Z.hasError())return!1;var z=Z.getCurrentTime()>0;return Q>=0&&(Z=Z.ri(),Z.length||!z)?DR(Z,Q):z}; Qb=function(Z){Z.bJ()&&(Z.Iu&&Z.Iu.vz("rs_s"),th&&Z.getCurrentTime()>0&&Z.seekTo(0),Z.No(),Z.load(),djf(Z,null));delete Z.S}; z6=function(Z){switch(Z.qe()){case 2:return"progressive.net.retryexhausted";case 3:return Z=Z.Fl(),(Z==null?0:Z.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||G5d&&(Z==null?0:Z.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.Kg=function(Z,Q,z){this.wm=Q===void 0?null:Q;this.seekSource=z===void 0?null:z;this.state=Z||64}; b$=function(Z,Q,z){z=z===void 0?!1:z;return iF4(Z,Q.getCurrentTime(),(0,g.Nm)(),Zl(Q),z)}; qy=function(Z,Q,z,K){if(!(Q===Z.state&&z===Z.wm&&K===Z.seekSource||Q!==void 0&&(Q&128&&!z||Q&2&&Q&16))){var b;if(b=Q)b=Q||Z.state,b=!!(b&16||b&32);Z=new g.Kg(Q,z,b?K?K:Z.seekSource:null)}return Z}; ru=function(Z,Q,z){return qy(Z,Z.state|Q,null,z===void 0?null:z)}; Ak=function(Z,Q){return qy(Z,Z.state&~Q,null,null)}; j9=function(Z,Q,z,K){return qy(Z,(Z.state|Q)&~z,null,K===void 0?null:K)}; g.t=function(Z,Q){return!!(Z.state&Q)}; g.Dl=function(Z,Q){return Q.state===Z.state&&Q.wm===Z.wm}; vv=function(Z){return Z.isPlaying()&&!g.t(Z,16)&&!g.t(Z,32)}; gu=function(Z){return g.t(Z,128)?-1:g.t(Z,2)?0:g.t(Z,2048)?3:g.t(Z,64)?-1:g.t(Z,1)&&!g.t(Z,32)?3:g.t(Z,8)?1:g.t(Z,4)?2:-1}; Xl=function(Z,Q,z,K,b,q,r,D,v,Y,X,S,T,f,h,m,J){g.O.call(this);var d=this;this.Zj=Z;this.slot=Q;this.layout=z;this.v7=K;this.B4=b;this.ou=q;this.LN=r;this.t4=D;this.v4=v;this.dj=Y;this.position=S;this.K=T;this.H7=f;this.Tn=h;this.Yn=m;this.context=J;this.Px=!0;this.L=!1;this.jp="not_rendering";this.j=!1;this.S=new fI;Z=rZ(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.yp=new N4(z.wq,this.v7,Z,z.layoutId);var G;Z=((G=Yo(this))==null?void 0:G.progressCommands)||[];this.W=new NVD(v, Z,z.layoutId,function(){return d.LF()}); this.Y=new bFx({adCpn:this.layout.layoutId,gV:J.gV,auJ:this.Tn,Gy:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})}; S9=function(Z){return{layoutId:Z.VS(),kx:Z.Tn,zg:Z.ou.get(),RP:Z.kX()}}; $o=function(Z,Q){return Q.layoutId!==Z.layout.layoutId?(Z.Zj.O6(Z.slot,Q,new bz("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+Z.layout.layoutId+("and LayoutType: "+Z.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; T6=function(Z){Z.jp="rendering_start_requested";Z.dj(-1)}; Yo=function(Z){return rZ(Z.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; amf=function(Z){vM("Received layout exit signal when not in layout exit flow.",Z.slot,Z.layout)}; Pcf=function(Z){var Q;return((Q=fg(Z.ou.get(),2))==null?void 0:Q.clientPlaybackNonce)||""}; hk=function(Z,Q){switch(Q){case "normal":Z.Ao("complete");break;case "skipped":Z.Ao("skip");break;case "abandoned":CH(Z.yp,"impression")&&Z.Ao("abandon")}}; Lg=function(Z,Q){Z.L||(Q=new g.gB(Q.state,new g.Kg),Z.L=!0);return Q}; ng=function(Z,Q){Xy(Q)?Z.dj(1):g.Xw(Q,4)&&!g.Xw(Q,2)&&Z.Ij();YC(Q,4)<0&&!(YC(Q,2)<0)&&Z.pp()}; R74=function(Z){Z.position===0&&(Z.t4.get(),Z=rZ(Z.layout.clientMetadata,"metadata_type_ad_placement_config").kind,Z={adBreakType:cv(Z)},Ow("ad_bl"),g.oC(Z))}; m3=function(Z,Q){Pe(Z.yp,Q,!Z.j)}; pMu=function(Z){var Q;return(((Q=Yo(Z))==null?void 0:Q.progressCommands)||[]).findIndex(function(z){return!!g.V(z==null?void 0:z.command,Ccd)})!==-1}; Ir=function(Z,Q){var z=rZ(Z.clientMetadata,"metadata_type_eligible_for_ssap");return z===void 0?(vM("Expected SSAP eligibility in PlayerBytes factory",Z),!1):Q.kX(z)}; Jk=function(Z,Q){if(!e1(Q.get(),"html5_ssap_pass_transition_reason"))return 3;switch(Z){case "skipped":case "muted":case "user_input_submitted":return 3;case "normal":return 2;case "error":return vM("Unexpected error from cPACF during rendering"),6;case "abandoned":return 5;case "user_cancelled":case "unknown":return vM("Unexpected layout exit reason",void 0,void 0,{layoutExitReason:Z}),3;default:q_(Z,"unknown layoutExitReason")}}; HFG=function(Z){vM("getExitReason: unexpected reason",void 0,void 0,{reason:Z})}; yb=function(Z,Q){if(e1(Q.get(),"html5_ssap_pass_transition_reason"))switch(Z){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return HFG(Z),"abandoned";case 3:case 1:return HFG(Z),"error";default:q_(Z,"unexpected transition reason")}else switch(Z){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return vM("getExitReason: unexpected reason",void 0,void 0,{reason:Z}),"error";default:q_(Z,"unexpected transition reason")}}; du=function(Z,Q,z){WO(Z,z)||kp(Z,Q,z);WO(Z,"video_to_ad")||kp(Z,Q,"video_to_ad");WO(Z,"ad_to_video")||kp(Z,Q,"ad_to_video");WO(Z,"ad_to_ad")||kp(Z,Q,"ad_to_ad")}; Ny=function(Z,Q,z,K,b,q,r,D,v,Y,X,S,T,f,h,m,J,d){Xl.call(this,Z,Q,z,K,b,q,r,D,Y,X,S,T,f,h,m,J,d);var G=this;this.CL=v;this.ZL=S;this.eO=!0;this.F0=this.VF=0;this.Se=gw(function(){ZFX(S9(G));G.Zj.Iy(G.slot,G.layout)}); this.NZ=gw(function(){Qs9(S9(G));G.jp!=="rendering_stop_requested"&&G.ZL(G);G.layoutExitReason?G.Zj.F3(G.slot,G.layout,G.layoutExitReason):amf(G)}); this.IC=new g.nE(200);this.IC.listen("tick",function(){G.E8()}); g.W(this,this.IC)}; i$=function(Z){Z.F0=Date.now();G6(Z,Z.VF);Z.IC.start()}; MqM=function(Z){Z.VF=Z.LF();Z.iH(Z.VF/1E3,!0);G6(Z,Z.VF)}; G6=function(Z,Q){Q={current:Q/1E3,duration:Z.LF()/1E3};Z.CL.get().Y$("onAdPlaybackProgress",Q)}; ar=function(Z){Ny.call(this,Z.Zj,Z.slot,Z.Mn,Z.v7,Z.B4,Z.ou,Z.LN,Z.t4,Z.CL,Z.v4,Z.dj,Z.ZL,Z.K$,Z.Dz,Z.H7,Z.Tn,Z.Yn,Z.context)}; Pv=function(Z){Ny.call(this,Z.Zj,Z.slot,Z.Mn,Z.v7,Z.B4,Z.ou,Z.LN,Z.t4,Z.CL,Z.v4,Z.dj,Z.ZL,Z.K$,Z.Dz,Z.H7,Z.Tn,Z.Yn,Z.context)}; Rr=function(){Pv.apply(this,arguments)}; UjG=function(Z){return Ir(Z.slot,Z.H7.get())?new Rr(Z):new ar(Z)}; Hv=function(Z){Xl.call(this,Z.callback,Z.slot,Z.Mn,Z.v7,Z.B4,Z.ou,Z.LN,Z.t4,Z.v4,Z.dj,Z.ZL,Z.K$,Z.Dz,Z.H7,Z.Tn,Z.Yn,Z.context);var Q=this;this.adCpn="";this.aE=0;this.Vc=!1;this.dD=0;this.Se=gw(function(){ZFX(S9(Q));Q.Zj.Iy(Q.slot,Q.layout)}); this.NZ=gw(function(){Qs9(S9(Q));Q.jp!=="rendering_stop_requested"&&Q.ZL(Q);Q.layoutExitReason?Q.Zj.F3(Q.slot,Q.layout,Q.layoutExitReason):amf(Q)}); this.Cy=Z.Cy;this.jP=Z.jP;this.mZ=Z.mZ;this.CL=Z.CL;this.lz=Z.lz;this.ZL=Z.ZL;if(!this.kX()){e1(this.H7.get(),"html5_disable_media_load_timeout")||(this.RK=new g.E6(function(){Q.Ed("load_timeout",new bz("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); Z=Cg(this.H7.get());var z=pg(this.H7.get());Z&&z&&(this.cE=new g.E6(function(){var K=rZ(Q.layout.clientMetadata,"metadata_type_preload_player_vars");K&&Q.jP.get().J.preloadVideoByPlayerVars(K,2,300)}))}}; oCW=function(Z,Q){var z=rZ(Q.clientMetadata,"metadata_type_ad_video_id"),K=rZ(Q.clientMetadata,"metadata_type_legacy_info_card_vast_extension");z&&K&&Z.lz.get().J.N().c7.add(z,{Ys:K});(Q=rZ(Q.clientMetadata,"metadata_type_sodar_extension_data"))&&WZM(Z.Cy.get(),Q);OF0(Z.LN.get(),!1)}; BBX=function(Z){OF0(Z.LN.get(),!0);var Q;((Q=Z.shrunkenPlayerBytesConfig)==null?0:Q.shouldRequestShrunkenPlayerBytes)&&Z.LN.get().Kj(!1)}; WMG=function(Z){var Q=rZ(Z.qT().clientMetadata,"metadata_type_player_bytes_slot_metadata");Q===void 0&&vM("PlayerBytesSlotMetadata is not filled",Z.qT(),Z.MB());return(Q==null?void 0:Q.u_)===!0}; My=function(){Hv.apply(this,arguments)}; UN=function(){My.apply(this,arguments)}; VqM=function(Z){return UjG(Object.assign({},Z,{Zj:Z.callback,dj:function(){}}))}; k5G=function(Z){return new Hv(Object.assign({},Z,{dj:function(Q){Z.CL.get().Y$("onAdIntroStateChange",Q)}}))}; uwM=function(Z){function Q(z){Z.CL.get().u4(z)} return Ir(Z.slot,Z.H7.get())?new UN(Object.assign({},Z,{dj:Q})):new Hv(Object.assign({},Z,{dj:Q}))}; ON=function(Z){for(var Q=Z.Mn,z=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],K=g.n(GQ()),b=K.next();!b.done;b=K.next())z.push(b.value);if(E1(Q,{Lf:z,Wg:["LAYOUT_TYPE_MEDIA_BREAK"]}))return VqM(Z);Q=Z.Mn;z=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];K=g.n(GQ());for(b=K.next();!b.done;b=K.next())z.push(b.value);if(E1(Q,{Lf:z,Wg:["LAYOUT_TYPE_MEDIA"]}))return QF(Z.Mn.clientMetadata,"metadata_type_ad_intro")?k5G(Z):uwM(Z)}; tqX=function(Z){var Q=rZ(Z.clientMetadata,"metadata_type_ad_placement_config").kind,z=rZ(Z.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:Z.layoutId,adType:xjx(z),adBreakType:cv(Q)}}; cv=function(Z){switch(Z){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"}}; xjx=function(Z){switch(Z){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; FMG=function(Z){try{return new or(Z.VD,Z.slot,Z.layout,Z.aW,Z.tj,Z.ou,Z.LL,Z.jP,Z.wy,Z.LN,Z.PIu,Z)}catch(Q){}}; or=function(Z,Q,z,K,b,q,r,D,v,Y,X,S){g.O.call(this);this.VD=Z;this.slot=Q;this.layout=z;this.aW=K;this.tj=b;this.ou=q;this.LL=r;this.jP=D;this.wy=v;this.LN=Y;this.params=S;this.Px=!0;Z=ON(X);if(!Z)throw Error("Invalid params for sublayout");this.YL=Z}; e7n=function(){this.Y=1;this.j=new fI}; Bv=function(Z,Q,z,K,b,q,r,D,v,Y,X,S,T){g.O.call(this);this.callback=Z;this.ou=Q;this.LL=z;this.jP=K;this.LN=b;this.t4=q;this.T2=r;this.slot=D;this.layout=v;this.aW=Y;this.lJ=X;this.wy=S;this.H7=T;this.Px=!0;this.bU=!1;this.jK=[];this.VN=-1;this.Ar=!1;this.lE=new e7n}; wM9=function(Z){var Q;return(Q=Z.layout.Fv)!=null?Q:rZ(Z.layout.clientMetadata,"metadata_type_sub_layouts")}; Wv=function(Z){return{zg:Z.ou.get(),kx:!1,RP:Z.kX()}}; ECu=function(Z,Q,z){if(Z.yR()===Z.jK.length-1){var K,b;vM("Unexpected skip requested during the last sublayout",(K=Z.S$())==null?void 0:K.qT(),(b=Z.S$())==null?void 0:b.MB(),{requestingSlot:Q,requestingLayout:z})}}; lm4=function(Z,Q,z){return z.layoutId!==Vb(Z,Q,z)?(vM("onSkipRequested for a PlayerBytes layout that is not currently active",Z.qT(),Z.MB()),!1):!0}; sCd=function(Z){Z.yR()===Z.jK.length-1&&vM("Unexpected skip with target requested during the last sublayout")}; ZVn=function(Z,Q,z){return z.renderingContent===void 0&&z.layoutId!==Vb(Z,Q,z)?(vM("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",Z.qT(),Z.MB(),{requestingSlot:Q,requestingLayout:z}),!1):!0}; QCr=function(Z,Q,z,K){var b=rZ(Q.MB().clientMetadata,"metadata_type_ad_pod_skip_target");if(b&&b>0&&b<Z.jK.length){a:{for(var q=b;q<Z.jK.length;){if(b===rZ(Z.jK[q].MB().clientMetadata,"metadata_type_ad_pod_skip_index")){Z=q;break a}q++}Z=void 0}if(Z===void 0)vM("Skip-to-index was requested but target index was not found",Q.qT(),Q.MB(),{requestingSlot:z,requestingLayout:K});else return Z}else vM("Invalid ad pod skip target index",Q.qT(),Q.MB(),{requestingSlot:z,requestingLayout:K})}; Vb=function(Z,Q,z){var K=rZ(Z.MB().clientMetadata,"metadata_type_linked_in_player_layout_id");return K?K:(vM("Tried to retrieve Linked InPlayer LayoutId but missing ClientMetadata",Z.qT(),Z.MB(),{requestingSlot:Q,requestingLayout:z}),null)}; KhW=function(Z,Q,z,K){zo4(Z,Q,z,"skipped",function(){ko(Z,K)})}; zo4=function(Z,Q,z,K,b){if(!Z.Ar){var q=Z.S$();if(q){q.MB().layoutId!==z.layoutId&&vM("SubLayout mismatch in exitSubLayout",Q,z,{exitingSubLayout:z.layoutId,activeSubLayout:q.MB().layoutId});Z.Ar=!0;q.dX(q.MB(),K);q=Object.assign({},Wv(Z),{layoutId:z.layoutId,layoutExitReason:K});var r=q.layoutId,D=q.layoutExitReason;if(q.RP){var v={};mr(q.zg,"wrsx",(v.xc=r,v.ler=D,v.ctp=cN(r),v))}Z.Mv(Q,z,K);Z.Ar=!1;Z.M3?(Z.M3(),Z.kX()||u$(Z.t4.get())):b()}else vM("No active adapter when exitSubLayout in PlayerBytesVodCompositeLayoutRenderingAdapter. This should never happen.", Q,z)}}; ko=function(Z,Q){if(Z.yR()===Z.jK.length-1)Z.VN++,xo(Z.lJ,Z.layout,"normal"),Z.kX()||u$(Z.t4.get());else a:{if(Z.yR()===-1&&(Z.callback.Iy(Z.slot,Z.layout),Q>0)){vM("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",Z.slot,Z.layout,{indexToPlay:Q,layoutId:Z.layout.layoutId});break a}Z.VN=Q;Q=Z.S$();if(Z.yR()>0&&!Z.kX()){var z=Z.t4.get();z.j=!1;var K={};z.Y&&z.videoId&&(K.cttAuthInfo={token:z.Y,videoId:z.videoId});BO("ad_to_ad",K)}Z.aM(Q)}}; tk=function(Z){Bv.call(this,Z.VD,Z.ou,Z.LL,Z.jP,Z.LN,Z.t4,Z.T2,Z.slot,Z.layout,Z.aW,Z.lJ,Z.wy,Z.H7)}; bVr=function(Z){(Z=Z.S$())&&Z.uf()}; Fl=function(Z){Bv.call(this,Z.VD,Z.ou,Z.LL,Z.jP,Z.LN,Z.t4,Z.T2,Z.slot,Z.layout,Z.aW,Z.lJ,Z.wy,Z.H7);this.oC=void 0}; qwX=function(Z,Q){Z.OD()&&!LI(Z.lE.j)||Z.callback.F3(Z.slot,Z.layout,Q)}; e9=function(Z){return e1(Z.H7.get(),"html5_ssap_pass_transition_reason")}; r4W=function(Z,Q,z){Q.IP().currentState<2&&(z=yb(z,Z.H7),Q.dX(Q.MB(),z));z=Q.IP().Y;Z.Mv(Z.slot,Q.MB(),z)}; A4u=function(Z,Q){if(Z.lE.j.currentState<2){var z=yb(Q,Z.H7);z==="error"?Z.callback.O6(Z.slot,Z.layout,new bz("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:Q},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):xo(Z.lJ,Z.layout,z)}}; wu=function(Z,Q,z){Q.IP().currentState>=2||(Q.dX(Q.MB(),z),LI(Q.IP())&&(iz(Z.T2,Z.slot,Q.MB(),z),Z.oC=void 0))}; jCd=function(Z,Q){Z.lE.Y===2&&Q!==Z.XB()&&vM("onClipEntered: unknown cpn",Z.slot,Z.layout,{cpn:Q})}; DXW=function(Z,Q){var z=Z.S$();if(z){var K=z.MB().layoutId,b=Z.yR()+1;Z.OD()?wu(Z,z,Q):z.dX(z.MB(),Q);b>=0&&b<Z.jK.length?(z=Z.jK[b].MB().layoutId,e9(Z)&&(["normal","skipped"].includes(Q)||vM("exitActiveLayoutAndPlayNext: unexpected exit reason",Z.slot,Z.layout,{exitReason:Q})),Z.LL.get().finishSegmentByCpn(K,z,Jk(Q,Z.H7))):b===Z.jK.length?xo(Z.lJ,Z.layout,"normal"):vM("unexpected index",Z.slot,Z.layout,{index:b})}else vM("exitActiveLayoutAndPlayNext: no active adapter",Z.slot,Z.layout)}; vpx=function(Z,Q){vM(Q+": undefined adapter",Z.slot,Z.layout)}; gpG=function(Z){return Ir(Z.slot,Z.H7.get())?new Fl(Z):new tk(Z)}; EN=function(Z,Q,z,K,b,q,r){g.O.call(this);this.callback=Z;this.jP=Q;this.LN=z;this.t4=K;this.YL=b;this.wy=q;this.H7=r;this.Px=!0;this.bU=!1}; Ywr=function(Z,Q,z,K,b,q,r,D,v,Y,X,S,T,f,h,m,J,d,G,R,U,B){function e(){var sG=ON(Object.assign({},rf,{callback:{Iy:Z.Iy.bind(Z),F3:Z.F3.bind(Z),Hf:function(){}, O6:Z.O6.bind(Z)},slot:z,Mn:K,ZL:function(){xo(r,K,"normal")}, K$:0,Dz:1,Tn:!0}));return sG?new EN(Z,X,T,h,sG,b,G):sG} function F(){var sG=Object.assign({},rf,{callback:{Iy:function(){}, F3:function(){}, Hf:function(){return void xo(r,K,"normal")}, O6:function(){}}, slot:z,Mn:K,ZL:function(){}, K$:0,Dz:1,Tn:!0});return FMG({VD:Z,slot:z,layout:K,aW:q,tj:r,ou:S,LL:R,jP:X,wy:b,LN:T,PIu:sG,context:U})} function KX(){var sG,k=(sG=K.Fv)!=null?sG:rZ(K.clientMetadata,"metadata_type_sub_layouts");sG=gpG({VD:Z,ou:S,LL:R,jP:X,LN:T,t4:h,T2:Q,slot:z,layout:K,aW:q,lJ:r,wy:b,H7:G});for(var l=[],c={Rn:0};c.Rn<k.length;c={Rn:c.Rn},c.Rn++){var u=ON(Object.assign({},rf,{callback:{Iy:sG.NC.bind(sG),F3:sG.yU.bind(sG),Hf:sG.Hf.bind(sG),O6:sG.sQ.bind(sG)},slot:z,Mn:k[c.Rn],ZL:function(o0){return function(nz){nz.dX(k[o0.Rn],"normal")}}(c), K$:c.Rn,Dz:k.length,Tn:!1}));if(!u)return;l.push(u)}sG.jK=l;return sG} var rf={v7:D,B4:v,Cy:Y,jP:X,ou:S,LN:T,mZ:f,t4:h,CL:m,v4:J,lz:d,H7:G,context:U,Yn:B};D=E1(K,{Lf:["metadata_type_sub_layouts"],Wg:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})||K.Fv!==void 0&&K.layoutType==="LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES";v=Ir(z,G.get())&&E1(K,{Lf:[],Wg:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]});Y=E1(K,{Lf:[],Wg:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]});if(D)return KX();if(v)return F();if(Y)return e()}; l$=function(Z,Q,z,K,b,q,r,D,v,Y){this.callback=Z;this.slot=Q;this.layout=z;this.ou=K;this.LL=b;this.jx=q;this.LN=r;this.yp=D;this.v7=v;this.L=Y;this.driftRecoveryMs=rZ(this.layout.clientMetadata,"metadata_type_drift_recovery_ms")||null;this.W=rZ(this.layout.clientMetadata,"metadata_type_prefetch_metadata")!==void 0}; Swd=function(Z){var Q=rZ(Z.layout.clientMetadata,"metadata_type_layout_enter_ms"),z=rZ(Z.layout.clientMetadata,"metadata_type_layout_exit_ms");Z=Z.jx.get();Q=XOn(Z.S,Q,z);return Math.min(z,Q!==null?Q:Infinity)}; Zj=function(Z,Q){var z;s5(Z.v7.get(),{driftRecoveryInfo:Object.assign({},{contentCpn:(z=Z.ou.get().m5)==null?void 0:z.clientPlaybackNonce,adClientData:Z.layout.EA.adClientDataEntry},Q)})}; Q1=function(Z,Q,z,K,b,q,r,D,v,Y,X){l$.call(this,Z,Q,z,K,b,q,r,D,v,Y);this.S=X;this.j=this.Y=null;Z=g.n(this.S);for(Q=Z.next();!Q.done;Q=Z.next())Q=Q.value,QF(Q.MB().clientMetadata,"metadata_type_survey_overlay")&&(this.j=Q.MB().layoutId)}; Thn=function(Z,Q){var z=$XD(Z,Q);z||vM("Expected subLRA found by layout ID",Z.slot,Z.layout,{layoutId:Q});Z.Y={f6:z};z?z.startRendering(z.MB()):Q===Z.j&&vM("Failed to find rendering adapter for survey media layout",Z.slot,Z.layout,{surveyMediaLayoutId:Q})}; $XD=function(Z,Q){return Q==null?null:Z.S.find(function(z){return z.MB().layoutId===Q})||null}; fUn=function(Z,Q,z,K,b,q,r,D,v,Y){var X=b-K,S=QF(Q.clientMetadata,"metadata_type_survey_overlay"),T,f=((T=Z.fulfilledLayout||rZ(Z.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:rZ(T.clientMetadata,"metadata_type_ssdai_ads_config"))||"";if(!X)return r.jL(z,f,2,q,K,b,Z.slotId),zf(Y,"ads_iraot","sid."+Z.slotId+";enterMs."+K+";exitMs."+b+";hso."+S+";vid."+z.video_id),null;X=r.Fq(z,f,2,q,K,b,Z.slotId);zf(Y,"ads_atct","sid."+Z.slotId+";enterMs."+K+";exitMs."+b+";hso."+S+";vid."+z.video_id); if(!X)return vM("Unexpected failure to add to playback timeline",Z,Q,v()),null;Z=Z.slotId;Q=Q.layoutId;X?(D.Y.has(X)&&vM("Unexpected remap of timeline playback"),D.Y.set(X,{slotId:Z,layoutId:Q})):vM("Invalid timeline playback ID");K+q>b&&r.a8(X,b-K);return X}; hon=function(Z,Q,z){var K=rZ(Q.clientMetadata,"metadata_type_sodar_extension_data");if(K)try{WZM(z,K)}catch(b){vM("Unexpected error when loading Sodar",Z,Q,{error:b})}}; LhX=function(Z,Q,z,K,b,q,r){KJ(Z,Q,new g.gB(z,new g.Kg),K,b,r,!1,q)}; KJ=function(Z,Q,z,K,b,q,r,D){r=r===void 0?!0:r;Xy(z)&&S5(b,0,null)&&(!CH(Z,"impression")&&D&&D(),Z.Ao("impression"));CH(Z,"impression")&&(g.Xw(z,4)&&!g.Xw(z,2)&&Z.iJ("pause"),YC(z,4)<0&&!(YC(z,2)<0)&&Z.iJ("resume"),g.Xw(z,16)&&b>=.5&&Z.iJ("seek"),r&&g.Xw(z,2)&&b1(Z,z.state,Q,K,b,q))}; b1=function(Z,Q,z,K,b,q,r,D){CH(Z,"impression")&&(q?(q=b-K,q=q>=-1&&q<=2):q=Math.abs(K-b)<=1,qI(Z,Q,q?K:b,z,K,r,D&&q),q&&Z.Ao("complete"))}; qI=function(Z,Q,z,K,b,q,r){Rx(Z,z*1E3,r);b<=0||z<=0||(Q==null?0:g.t(Q,16))||(Q==null?0:g.t(Q,32))||(S5(z,b*.25,K)&&(q&&!CH(Z,"first_quartile")&&q("first"),Z.Ao("first_quartile")),S5(z,b*.5,K)&&(q&&!CH(Z,"midpoint")&&q("second"),Z.Ao("midpoint")),S5(z,b*.75,K)&&(q&&!CH(Z,"third_quartile")&&q("third"),Z.Ao("third_quartile")))}; npW=function(Z,Q){CH(Z,"impression")&&Z.iJ(Q?"fullscreen":"end_fullscreen")}; c44=function(Z){CH(Z,"impression")&&Z.iJ("clickthrough")}; mXn=function(Z){Z.iJ("active_view_measurable")}; IUG=function(Z){CH(Z,"impression")&&!CH(Z,"seek")&&Z.iJ("active_view_fully_viewable_audible_half_duration")}; J4f=function(Z){CH(Z,"impression")&&!CH(Z,"seek")&&Z.iJ("active_view_viewable")}; y4W=function(Z){CH(Z,"impression")&&!CH(Z,"seek")&&Z.iJ("audio_audible")}; dXM=function(Z){CH(Z,"impression")&&!CH(Z,"seek")&&Z.iJ("audio_measurable")}; NhD=function(Z,Q,z,K,b,q,r,D,v,Y,X,S){this.callback=Z;this.slot=Q;this.layout=z;this.LL=K;this.yp=b;this.LN=q;this.LV=r;this.B4=D;this.Cy=v;this.H7=Y;this.v7=X;this.ou=S;this.eO=!0;this.gX=this.jp=null;this.adCpn=void 0;this.Y=!1}; Ga4=function(Z,Q,z){var K;zf(Z.v7.get(),"ads_qua","cpn."+rZ(Z.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((K=fg(Z.ou.get(),2))==null?void 0:K.clientPlaybackNonce)+";qt."+Q+";clr."+z)}; iVW=function(Z,Q){var z,K;zf(Z.v7.get(),"ads_imp","cpn."+rZ(Z.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((z=fg(Z.ou.get(),2))==null?void 0:z.clientPlaybackNonce)+";clr."+Q+";skp."+!!g.V((K=rZ(Z.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:K.skipOrPreviewRenderer,rA))}; AV=function(Z){return{enterMs:rZ(Z.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:rZ(Z.clientMetadata,"metadata_type_layout_exit_ms")}}; ji=function(Z,Q,z,K,b,q,r,D,v,Y,X,S,T,f){l$.call(this,Z,Q,z,K,b,r,D,v,Y,S);this.LV=q;this.Cy=X;this.B4=T;this.H7=f;this.gX=this.jp=null}; aUM=function(Z,Q){var z;zf(Z.v7.get(),"ads_imp","acpn."+((z=fg(Z.ou.get(),2))==null?void 0:z.clientPlaybackNonce)+";clr."+Q)}; PKW=function(Z,Q,z){var K;zf(Z.v7.get(),"ads_qua","cpn."+rZ(Z.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((K=fg(Z.ou.get(),2))==null?void 0:K.clientPlaybackNonce)+";qt."+Q+";clr."+z)}; Dj=function(Z,Q,z,K,b,q,r,D,v,Y,X,S,T,f,h,m,J,d,G,R,U){this.wy=Z;this.aW=Q;this.lJ=z;this.ou=K;this.LL=b;this.LN=q;this.v7=r;this.LV=D;this.jx=v;this.B4=Y;this.Cy=X;this.jP=S;this.mZ=T;this.t4=f;this.CL=h;this.v4=m;this.lz=J;this.H7=d;this.Y=G;this.context=R;this.Yn=U}; v4=function(Z,Q,z,K,b,q,r,D,v,Y,X,S,T,f,h,m,J,d){this.wy=Z;this.aW=Q;this.lJ=z;this.v7=K;this.B4=b;this.Cy=q;this.jP=r;this.ou=D;this.LN=v;this.mZ=Y;this.t4=X;this.CL=S;this.v4=T;this.lz=f;this.H7=h;this.LL=m;this.context=J;this.Yn=d}; Ro9=function(Z,Q,z,K){qE.call(this,"survey-interstitial",Z,Q,z,K)}; gA=function(Z,Q,z,K,b){LH.call(this,z,Z,Q,K);this.v7=b;Z=rZ(Q.clientMetadata,"metadata_type_ad_placement_config");this.yp=new N4(Q.wq,b,Z,Q.layoutId)}; Yt=function(Z){return Math.round(Z.width)+"x"+Math.round(Z.height)}; Si=function(Z,Q,z){z=z===void 0?XV:z;z.width<XV.width&&(z=XV);if(Z.width<z.width||Z.height<z.height)return{Ih:3,Xr:501,errorMessage:"ad("+Yt(z)+") larger than container("+Yt(Z)+")."};if(z.width*z.height>Z.width*Z.height*.2)return{Ih:3,Xr:501,errorMessage:"ad("+Yt(z)+") to container("+Yt(Z)+") ratio exceeds limit."};if(z.height>Z.height/3-Q)return{Ih:3,Xr:501,errorMessage:"ad("+Yt(z)+") covers container("+Yt(Z)+") center."}}; CK4=function(Z,Q){var z=rZ(Z.clientMetadata,"metadata_type_ad_placement_config");return new N4(Z.wq,Q,z,Z.layoutId)}; $t=function(Z){return rZ(Z.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")}; Tf=function(Z,Q,z,K){qE.call(this,"invideo-overlay",Z,Q,z,K);this.interactionLoggingClientData=K}; fJ=function(Z,Q,z,K,b,q,r,D,v,Y,X,S){LH.call(this,q,Z,Q,b);this.v7=z;this.W=r;this.LN=D;this.v4=v;this.H7=Y;this.K=X;this.L=S;this.yp=CK4(Q,z)}; pOr=function(){var Z=["metadata_type_invideo_overlay_ad_renderer"];GQ().forEach(function(Q){Z.push(Q)}); return{Lf:Z,Wg:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; hV=function(Z,Q,z,K,b,q,r,D,v,Y,X,S,T){LH.call(this,q,Z,Q,b);this.v7=z;this.W=r;this.X=D;this.LN=v;this.v4=Y;this.H7=X;this.K=S;this.L=T;this.yp=CK4(Q,z)}; HVu=function(){for(var Z=["metadata_type_invideo_overlay_ad_renderer"],Q=g.n(GQ()),z=Q.next();!z.done;z=Q.next())Z.push(z.value);return{Lf:Z,Wg:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; LJ=function(Z){this.LN=Z;this.Y=!1}; MIu=function(Z,Q,z){qE.call(this,"survey",Z,{},Q,z)}; nJ=function(Z,Q,z,K,b,q,r){LH.call(this,z,Z,Q,K);this.W=b;this.LN=q;this.H7=r}; UXG=function(Z,Q,z,K,b,q,r,D,v,Y){this.J4=Z;this.LN=Q;this.v7=z;this.W=K;this.B4=b;this.j=q;this.S=r;this.v4=D;this.H7=v;this.Y=Y}; OVu=function(Z,Q,z,K,b,q,r,D,v,Y){this.J4=Z;this.LN=Q;this.v7=z;this.W=K;this.B4=b;this.j=q;this.S=r;this.v4=D;this.H7=v;this.Y=Y}; c4=function(Z,Q,z,K,b,q,r,D,v,Y){bt.call(this,Z,Q,z,K,b,q,r,v);this.TQ=D;this.ou=Y}; op4=function(){var Z=uNn();Z.Lf.push("metadata_type_ad_info_ad_metadata");return Z}; Bhd=function(Z,Q,z,K,b,q,r){this.J4=Z;this.LN=Q;this.v7=z;this.j=K;this.TQ=b;this.Y=q;this.ou=r}; WhG=function(Z,Q,z,K,b,q,r,D){this.J4=Z;this.LN=Q;this.v7=z;this.j=K;this.TQ=b;this.Y=q;this.H7=r;this.ou=D}; mq=function(Z,Q){this.slotId=Q;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=Z(this.triggerType)}; Io=function(Z,Q){this.adPodIndex=Z;this.Y=Q.length;this.adBreakLengthSeconds=Q.reduce(function(K,b){return K+b},0); var z=0;for(Z+=1;Z<Q.length;Z++)z+=Q[Z];this.adBreakRemainingLengthSeconds=z}; JV=function(Z,Q,z){this.fz=Q;this.triggerType="TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED";this.triggerId=z||Z(this.triggerType)}; y1=function(Z,Q,z){this.Y=Q;this.triggerType="TRIGGER_TYPE_CLOSE_REQUESTED";this.triggerId=z||Z(this.triggerType)}; dA=function(Z,Q,z,K){this.fz=Q;this.visible=z;this.triggerType="TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED";this.triggerId=K||Z(this.triggerType)}; VIx=function(Z){this.triggerType="TRIGGER_TYPE_CUE_BREAK_IDENTIFIED";this.triggerId=Z(this.triggerType)}; kan=function(Z){this.triggerType="TRIGGER_TYPE_DURATION_AFTER_MEDIA_PAUSED";this.triggerId=Z(this.triggerType)}; NI=function(Z,Q,z){this.triggeringLayoutId=Q;this.slotId=z;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ACTIVE_AND_SLOT_ID_HAS_EXITED";this.triggerId=Z(this.triggerType)}; Gf=function(Z,Q,z){this.triggeringLayoutId=Q;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ENTERED";this.triggerId=z||Z(this.triggerType)}; i1=function(Z,Q,z,K){this.triggeringLayoutId=Q;this.Y=z;this.triggerType="TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON";this.triggerId=K||Z(this.triggerType)}; uSX=function(Z){switch(Z){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 w("Invalid layout exit reason: "+ Z)}}; ao=function(Z,Q,z){this.triggeringLayoutId=Q;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_EXITED";this.triggerId=z||Z(this.triggerType)}; P4=function(Z,Q){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=Q||Z(this.triggerType)}; Ro=function(Z,Q){this.breakDurationMs=Z;this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED";this.triggerId=Q||""}; CJ=function(Z,Q){this.breakDurationMs=Z;this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED";this.triggerId=Q||""}; pJ=function(Z,Q){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=Q||Z(this.triggerType)}; xX0=function(Z){this.triggerId=Z;this.triggerType="TRIGGER_TYPE_MEDIA_RESUMED"}; tIX=function(Z,Q,z,K,b){this.fz=Q;this.Y=z;this.visible=K;this.layoutId=b;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED";this.triggerId=Z(this.triggerType)}; H4=function(Z,Q,z,K,b){this.fz=Q;this.Y=z;this.visible=K;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE";this.triggerId=b||Z(this.triggerType)}; MI=function(Z,Q){this.breakDurationMs=Z;this.triggerType="TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION";this.triggerId=Q||""}; Fhr=function(Z,Q,z){this.fz=Q;this.Y=z;this.triggerType="TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE";this.triggerId=Z(this.triggerType)}; U5=function(Z,Q,z,K,b){this.Y=Q;this.slotType=z;this.layoutType=K;this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED";this.triggerId=b||Z(this.triggerType)}; O5=function(Z,Q){this.Y=Q;this.slotType="SLOT_TYPE_IN_PLAYER";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED";this.triggerId=Z(this.triggerType)}; oo=function(Z,Q,z){this.layoutId=Q;this.triggerType="TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED";this.triggerId=z||Z(this.triggerType)}; B4=function(Z,Q,z){this.Y=Q;this.triggerType="TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID";this.triggerId=z||Z(this.triggerType)}; k1n=function(Z,Q){this.opportunityType="OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED";this.associatedSlotId=Q;this.triggerType="TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED";this.triggerId=Z(this.triggerType)}; eoD=function(Z,Q){this.Y=Z;this.index=Q}; wOG=function(Z){this.triggerType="TRIGGER_TYPE_PLAYBACK_MINIMIZED";this.triggerId=Z(this.triggerType)}; W4=function(Z,Q){this.triggerType="TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED";this.triggerId=Q||Z(this.triggerType)}; EpM=function(Z,Q,z){this.layoutId=Q;this.offsetMs=z;this.triggerType="TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=Z(this.triggerType)}; lUf=function(Z,Q){this.layoutId=Q;this.triggerType="TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME";this.triggerId=Z(this.triggerType)}; svW=function(Z,Q,z){this.layoutId=Q;this.offsetMs=z;this.triggerType="TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=Z(this.triggerType)}; V1=function(Z,Q,z){this.triggeringLayoutId=Q;this.triggerType="TRIGGER_TYPE_SKIP_REQUESTED";this.triggerId=z||Z(this.triggerType)}; kt=function(Z,Q,z){this.triggeringSlotId=Q;this.triggerType="TRIGGER_TYPE_SLOT_ID_ENTERED";this.triggerId=z||Z(this.triggerType)}; u1=function(Z,Q,z){this.triggeringSlotId=Q;this.triggerType="TRIGGER_TYPE_SLOT_ID_EXITED";this.triggerId=z||Z(this.triggerType)}; xt=function(Z,Q){this.triggeringSlotId=Q;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY";this.triggerId=Z(this.triggerType)}; tV=function(Z,Q){this.triggeringSlotId=Q;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY";this.triggerId=Z(this.triggerType)}; FV=function(Z,Q,z){this.triggeringSlotId=Q;this.triggerType="TRIGGER_TYPE_SLOT_ID_SCHEDULED";this.triggerId=z||Z(this.triggerType)}; ei=function(Z,Q){this.triggeringSlotId=Q;this.triggerType="TRIGGER_TYPE_SLOT_ID_UNSCHEDULED";this.triggerId=Z(this.triggerType)}; wA=function(Z,Q,z){this.triggeringLayoutId=Q;this.triggerType="TRIGGER_TYPE_SURVEY_SUBMITTED";this.triggerId=z||Z(this.triggerType)}; E5=function(Z,Q,z,K){this.durationMs=Q;this.triggeringLayoutId=z;this.triggerType="TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=K||Z(this.triggerType)}; l1=function(Z,Q,z,K){this.category=Z;this.trigger=Q;this.slot=z;this.layout=K}; sp=function(Z){return(Z==null?void 0:Z.layoutId)!=null&&(Z==null?void 0:Z.layoutType)!=null}; ZeG=function(Z){if(!sp(Z.adLayoutMetadata))return!1;Z=Z.renderingContent;return g.V(Z,ZA)||g.V(Z,QQ)||g.V(Z,zE)||g.V(Z,K5)||g.V(Z,bD)||g.V(Z,qb)?!0:!1}; Qvn=function(Z){return(Z==null?void 0:Z.durationMs)!=null&&(Z==null?void 0:Z.durationMs)>0}; r6=function(Z){return!!(Z.xBI&&Z.slot&&Z.layout)}; Au=function(Z){var Q,z=(Q=Z.config)==null?void 0:Q.adPlacementConfig;Z=Z.renderer;return!(!z||z.kind==null||!Z)}; z$9=function(Z){if(!sp(Z.adLayoutMetadata))return!1;Z=Z.renderingContent;return g.V(Z,vN)||g.V(Z,g8)||g.V(Z,j5)||g.V(Z,DL)?!0:!1}; jC=function(Z){return Z.playerVars!==void 0&&Z.pings!==void 0&&Z.externalVideoId!==void 0}; ci=function(Z){if(!sp(Z.adLayoutMetadata))return!1;Z=Z.renderingContent;var Q=g.V(Z,DA);return Q?vi(Q):(Q=g.V(Z,f5))?jC(Q):(Q=g.V(Z,hu))?Q.playerVars!==void 0:(Q=g.V(Z,vN))?Q.durationMilliseconds!==void 0:g.V(Z,L5)||g.V(Z,n5)?!0:!1}; vi=function(Z){Z=(Z.sequentialLayouts||[]).map(function(Q){return g.V(Q,mt)}); return Z.length>0&&Z.every(ci)}; jvM=function(Z){if(!sp(Z.adLayoutMetadata))return!1;if(g.V(Z.renderingContent,K8G)||g.V(Z.renderingContent,bef))return!0;var Q=g.V(Z.renderingContent,IU);return g.V(Z.renderingContent,Ju)||g.V(Q==null?void 0:Q.sidePanel,qPr)||g.V(Q==null?void 0:Q.sidePanel,rKf)||g.V(Q==null?void 0:Q.sidePanel,AKf)?!0:!1}; SPM=function(Z){var Q;(Q=!Z)||(Q=Z.adSlotMetadata,Q=!((Q==null?void 0:Q.slotId)!==void 0&&(Q==null?void 0:Q.slotType)!==void 0));if(Q||!(DHX(Z)||Z.slotEntryTrigger&&Z.slotFulfillmentTriggers&&Z.slotExpirationTriggers))return!1;var z;Z=(z=Z.fulfillmentContent)==null?void 0:z.fulfilledLayout;return(z=g.V(Z,mt))?ci(z):(z=g.V(Z,yQ))?jvM(z):(z=g.V(Z,vjG))?z$9(z):(z=g.V(Z,gjD))?ZeG(z):(z=g.V(Z,YPM))?sp(z.adLayoutMetadata)?g.V(z.renderingContent,ZA)?!0:!1:!1:(Z=g.V(Z,XAM))?sp(Z.adLayoutMetadata)?g.V(Z.renderingContent, d6)?!0:!1:!1:!1}; DHX=function(Z){var Q;Z=g.V((Q=Z.fulfillmentContent)==null?void 0:Q.fulfilledLayout,yQ);var z;return Z&&((z=Z.adLayoutMetadata)==null?void 0:z.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&Z.layoutExitNormalTriggers===void 0}; $HX=function(Z){var Q;return(Z==null?void 0:(Q=Z.adSlotMetadata)==null?void 0:Q.slotType)==="SLOT_TYPE_IN_PLAYER"}; fVM=function(Z,Q){var z;if((z=Z.questions)==null||!z.length||!Z.playbackCommands||(Q===void 0||!Q)&&Z.questions.length!==1)return!1;Z=g.n(Z.questions);for(Q=Z.next();!Q.done;Q=Z.next()){Q=Q.value;var K=z=void 0,b=((z=g.V(Q,Nb))==null?void 0:z.surveyAdQuestionCommon)||((K=g.V(Q,GE))==null?void 0:K.surveyAdQuestionCommon);if(!TEW(b))return!1}return!0}; h$9=function(Z){Z=((Z==null?void 0:Z.playerOverlay)||{}).instreamSurveyAdRenderer;var Q;if(Z)if(Z.playbackCommands&&Z.questions&&Z.questions.length===1){var z,K=((Q=g.V(Z.questions[0],Nb))==null?void 0:Q.surveyAdQuestionCommon)||((z=g.V(Z.questions[0],GE))==null?void 0:z.surveyAdQuestionCommon);Q=TEW(K)}else Q=!1;else Q=!1;return Q}; TEW=function(Z){if(!Z)return!1;Z=g.V(Z.instreamAdPlayerOverlay,iD);var Q=g.V(Z==null?void 0:Z.skipOrPreviewRenderer,rA),z=g.V(Z==null?void 0:Z.adInfoRenderer,aU);return(g.V(Z==null?void 0:Z.skipOrPreviewRenderer,Pi)||Q)&&z?!0:!1}; L8W=function(Z){return Z.linearAds!=null&&sp(Z.adLayoutMetadata)}; njD=function(Z){return Z.linearAd!=null&&Z.adVideoStart!=null}; cKM=function(Z){if(isNaN(Number(Z.timeoutSeconds))||!Z.text||!Z.ctaButton||!g.V(Z.ctaButton,g.RU)||!Z.brandImage)return!1;var Q;return Z.backgroundImage&&g.V(Z.backgroundImage,C5)&&((Q=g.V(Z.backgroundImage,C5))==null?0:Q.landscape)?!0:!1}; p5=function(Z,Q,z,K,b,q,r){g.O.call(this);this.H7=Z;this.Y=Q;this.S=K;this.ou=b;this.W=q;this.j=r}; JKx=function(Z,Q,z){var K,b=((K=z.adSlots)!=null?K:[]).map(function(D){return g.V(D,Hi)}); if(z.e3)if(rZ(Q.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))$E(Z.Y.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},Q.slotId); else{if(Z.H7.get().J.N().V("h5_check_forecasting_renderer_for_throttled_midroll")){var q=z.LO.filter(function(D){var v;return((v=D.renderer)==null?void 0:v.clientForecastingAdRenderer)!=null}); q.length!==0?mHD(Z.j,q,b,Q.slotId,z.ssdaiAdsConfig):$E(Z.Y.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},Q.slotId)}else $E(Z.Y.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},Q.slotId); IVG(Z.W,Q)}else{var r;K={pV:Math.round(((q=rZ(Q.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:q.pV)||0),Ie:(r=rZ(Q.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:r.Ie};mHD(Z.j,z.LO,b,Q.slotId,z.ssdaiAdsConfig,K)}}; dHx=function(Z,Q,z,K,b,q,r){var D=fg(Z.ou.get(),1);$E(Z.Y.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return yK0(Z.S.get(),z,K,b,D.clientPlaybackNonce,D.x8,D.daiEnabled,D,q,r)},Q)}; G0x=function(Z,Q,z,K,b,q,r){Q=NEf(Q,q,Number(K.prefetchMilliseconds)||0,r);Z=Q instanceof w?Q:Mb(Z,K,b,Q,z);return Z instanceof w?Z:[Z]}; ier=function(Z,Q,z,K,b){var q=TQ(Z.j.get(),"SLOT_TYPE_AD_BREAK_REQUEST");K=[new U$({getAdBreakUrl:K.getAdBreakUrl,pV:0,Ie:0}),new ls(!0)];Z=Q.pauseDurationMs?Q.lactThresholdMs?{slotId:q,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new FV(Z.Y,q),slotFulfillmentTriggers:[new kan(Z.Y)],slotExpirationTriggers:[new B4(Z.Y,b),new u1(Z.Y,q)],mF:"core",clientMetadata:new qf(K),adSlotLoggingData:z}:new w("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new w("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return Z instanceof w?Z:[Z]}; aVM=function(Z){var Q,z;return((Q=Z.renderer)==null?void 0:(z=Q.adBreakServiceRenderer)==null?void 0:z.getAdBreakUrl)!==void 0}; Up=function(Z,Q,z){if(Z.beforeContentVideoIdStartedTrigger)Z=Z.beforeContentVideoIdStartedTrigger?new JV(Kw,Q,Z.id):new w("Not able to create BeforeContentVideoIdStartedTrigger");else{if(Z.layoutIdExitedTrigger){var K;Q=(K=Z.layoutIdExitedTrigger)!=null&&K.triggeringLayoutId?new ao(Kw,Z.layoutIdExitedTrigger.triggeringLayoutId,Z.id):new w("Not able to create LayoutIdExitedTrigger")}else{if(Z.layoutExitedForReasonTrigger){var b,q;((b=Z.layoutExitedForReasonTrigger)==null?0:b.triggeringLayoutId)&&((q= Z.layoutExitedForReasonTrigger)==null?0:q.layoutExitReason)?(Q=uSX(Z.layoutExitedForReasonTrigger.layoutExitReason),Z=Q instanceof w?Q:new i1(Kw,Z.layoutExitedForReasonTrigger.triggeringLayoutId,[Q],Z.id)):Z=new w("Not able to create LayoutIdExitedForReasonTrigger")}else{if(Z.onLayoutSelfExitRequestedTrigger){var r;Q=(r=Z.onLayoutSelfExitRequestedTrigger)!=null&&r.triggeringLayoutId?new oo(Kw,Z.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,Z.id):new w("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(Z.onNewPlaybackAfterContentVideoIdTrigger)Z= Z.onNewPlaybackAfterContentVideoIdTrigger?new B4(Kw,Q,Z.id):new w("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(Z.skipRequestedTrigger){var D;Q=(D=Z.skipRequestedTrigger)!=null&&D.triggeringLayoutId?new V1(Kw,Z.skipRequestedTrigger.triggeringLayoutId,Z.id):new w("Not able to create SkipRequestedTrigger")}else if(Z.slotIdEnteredTrigger){var v;Q=(v=Z.slotIdEnteredTrigger)!=null&&v.triggeringSlotId?new kt(Kw,Z.slotIdEnteredTrigger.triggeringSlotId,Z.id):new w("Not able to create SlotIdEnteredTrigger")}else if(Z.slotIdExitedTrigger){var Y; Q=(Y=Z.slotIdExitedTrigger)!=null&&Y.triggeringSlotId?new u1(Kw,Z.slotIdExitedTrigger.triggeringSlotId,Z.id):new w("Not able to create SkipRequestedTrigger")}else if(Z.surveySubmittedTrigger){var X;Q=(X=Z.surveySubmittedTrigger)!=null&&X.triggeringLayoutId?new wA(Kw,Z.surveySubmittedTrigger.triggeringLayoutId,Z.id):new w("Not able to create SurveySubmittedTrigger")}else{if(Z.mediaResumedTrigger)Z=Z.mediaResumedTrigger&&Z.id?new xX0(Z.id):new w("Not able to create MediaResumedTrigger");else{if(Z.closeRequestedTrigger){var S; Q=(S=Z.closeRequestedTrigger)!=null&&S.triggeringLayoutId?new y1(Kw,Z.closeRequestedTrigger.triggeringLayoutId,Z.id):new w("Not able to create CloseRequestedTrigger")}else if(Z.slotIdScheduledTrigger){var T;Q=(T=Z.slotIdScheduledTrigger)!=null&&T.triggeringSlotId?new FV(Kw,Z.slotIdScheduledTrigger.triggeringSlotId,Z.id):new w("Not able to create SlotIdScheduledTrigger")}else{if(Z.mediaTimeRangeTrigger){var f;K=Number((f=Z.mediaTimeRangeTrigger)==null?void 0:f.offsetStartMilliseconds);var h;r=Number((h= Z.mediaTimeRangeTrigger)==null?void 0:h.offsetEndMilliseconds);isFinite(K)&&isFinite(r)?(h=r,h===-1&&(h=z),z=K>h?new w("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:K,offsetEndMs:h},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",h===z&&K-500<=h):new IR(K,h),Z=z instanceof w?z:new H4(Kw,Q,z,!1,Z.id)):Z=new w("Not able to create MediaTimeRangeTrigger")}else if(Z.contentVideoIdEndedTrigger)Z=Z.contentVideoIdEndedTrigger?new dA(Kw,Q,!1,Z.id):new w("Not able to create ContentVideoIdEndedTrigger"); else{if(Z.layoutIdEnteredTrigger){var m;Q=(m=Z.layoutIdEnteredTrigger)!=null&&m.triggeringLayoutId?new Gf(Kw,Z.layoutIdEnteredTrigger.triggeringLayoutId,Z.id):new w("Not able to create LayoutIdEnteredTrigger")}else if(Z.timeRelativeToLayoutEnterTrigger){var J;Q=(J=Z.timeRelativeToLayoutEnterTrigger)!=null&&J.triggeringLayoutId?new E5(Kw,Number(Z.timeRelativeToLayoutEnterTrigger.durationMs),Z.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,Z.id):new w("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(Z.onDifferentLayoutIdEnteredTrigger){var d; Q=(d=Z.onDifferentLayoutIdEnteredTrigger)!=null&&d.triggeringLayoutId&&Z.onDifferentLayoutIdEnteredTrigger.slotType&&Z.onDifferentLayoutIdEnteredTrigger.layoutType?new U5(Kw,Z.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,Z.onDifferentLayoutIdEnteredTrigger.slotType,Z.onDifferentLayoutIdEnteredTrigger.layoutType,Z.id):new w("Not able to create CloseRequestedTrigger")}else{if(Z.liveStreamBreakStartedTrigger)Z=Z.liveStreamBreakStartedTrigger&&Z.id?new pJ(Kw,Z.id):new w("Not able to create LiveStreamBreakStartedTrigger"); else if(Z.liveStreamBreakEndedTrigger)Z=Z.liveStreamBreakEndedTrigger&&Z.id?new P4(Kw,Z.id):new w("Not able to create LiveStreamBreakEndedTrigger");else{if(Z.liveStreamBreakScheduledDurationMatchedTrigger){var G;Q=(G=Z.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&G.breakDurationMs?new Ro(Number(Z.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,Z.id):new w("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(Z.liveStreamBreakScheduledDurationNotMatchedTrigger){var R; Q=(R=Z.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&R.breakDurationMs?new CJ(Number(Z.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,Z.id):new w("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(Z.newSlotScheduledWithBreakDurationTrigger){var U;Q=(U=Z.newSlotScheduledWithBreakDurationTrigger)!=null&&U.breakDurationMs?new MI(Number(Z.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,Z.id):new w("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else Q= Z.prefetchCacheExpiredTrigger?new W4(Kw,Z.id):new w("Not able to convert an AdsControlflowTrigger.");Z=Q}Q=Z}Z=Q}Q=Z}Z=Q}Q=Z}Z=Q}Q=Z}Z=Q}Q=Z}Z=Q}return Z}; Op=function(Z,Q){Q.Y>=2&&(Z.slot_pos=Q.adPodIndex);Z.autoplay="1"}; R$0=function(Z,Q,z,K,b,q,r,D){return Q===null?new w("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:Q,ActionCompanionAdRenderer:K}):[P94(Z,Q,r,q,function(v){var Y=v.slotId;v=D(v);var X=K.adLayoutLoggingData,S=new qf([new oh(K),new ln(b)]);Y=wZ(z.j.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Y);var T={layoutId:Y,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",mF:"core"};return{layoutId:Y,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",wq:new Map, layoutExitNormalTriggers:[new B4(z.Y,r)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Nb:[],mF:"core",clientMetadata:S,EA:v(T),adLayoutLoggingData:X}})]}; C9u=function(Z,Q,z,K,b,q,r,D){return Q===null?new w("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:Q,TopBannerImageTextIconButtonedLayoutViewModel:K}):[P94(Z,Q,r,q,function(v){var Y=v.slotId;v=D(v);var X=K.adLayoutLoggingData,S=new qf([new BV(K),new ln(b)]);Y=wZ(z.j.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Y);var T={layoutId:Y,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",mF:"core"};return{layoutId:Y,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", wq:new Map,layoutExitNormalTriggers:[new B4(z.Y,r)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Nb:[],mF:"core",clientMetadata:S,EA:v(T),adLayoutLoggingData:X}})]}; UHM=function(Z,Q,z,K,b,q){if(!q)for(Q=g.n(Q),q=Q.next();!q.done;q=Q.next())q=q.value,oU(Z,q.renderer,q.config.adPlacementConfig.kind);Z=Array.from(Z.values()).filter(function(X){return pAX(X)}); Q=[];q=g.n(Z);for(var r=q.next(),D={};!r.done;D={Tb:void 0},r=q.next()){D.Tb=r.value;r=g.n(D.Tb.Ut);for(var v=r.next(),Y={};!v.done;Y={Eq:void 0},v=r.next())Y.Eq=v.value,v=function(X,S){return function(T){return X.Eq.G3(T,S.Tb.instreamVideoAdRenderer.elementId,X.Eq.Cm)}}(Y,D),Y.Eq.isContentVideoCompanion?Q.push(He4(z,K,b,D.Tb.instreamVideoAdRenderer.elementId,Y.Eq.associatedCompositePlayerBytesLayoutId,Y.Eq.adSlotLoggingData,v)):Z.length>1?Q.push(Mdx(z,K,b,D.Tb.instreamVideoAdRenderer.elementId,Y.Eq.adSlotLoggingData, function(X,S){return function(T){return X.Eq.G3(T,S.Tb.instreamVideoAdRenderer.elementId,X.Eq.Cm,X.Eq.associatedCompositePlayerBytesLayoutId)}}(Y,D))):Q.push(Mdx(z,K,b,D.Tb.instreamVideoAdRenderer.elementId,Y.Eq.adSlotLoggingData,v))}return Q}; oU=function(Z,Q,z){if(Q=Oer(Q)){Q=g.n(Q);for(var K=Q.next();!K.done;K=Q.next())if((K=K.value)&&K.externalVideoId){var b=Bi(Z,K.externalVideoId);b.instreamVideoAdRenderer||(b.instreamVideoAdRenderer=K,b.SL=z)}else vM("InstreamVideoAdRenderer without externalVideoId")}}; Oer=function(Z){var Q=[],z=Z.sandwichedLinearAdRenderer&&Z.sandwichedLinearAdRenderer.linearAd&&g.V(Z.sandwichedLinearAdRenderer.linearAd,f5);if(z)return Q.push(z),Q;if(Z.instreamVideoAdRenderer)return Q.push(Z.instreamVideoAdRenderer),Q;if(Z.linearAdSequenceRenderer&&Z.linearAdSequenceRenderer.linearAds){Z=g.n(Z.linearAdSequenceRenderer.linearAds);for(z=Z.next();!z.done;z=Z.next())z=z.value,g.V(z,f5)&&Q.push(g.V(z,f5));return Q}return null}; pAX=function(Z){if(Z.instreamVideoAdRenderer===void 0)return vM("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var Q=g.n(Z.Ut),z=Q.next();!z.done;z=Q.next()){z=z.value;if(z.G3===void 0)return!1;if(z.Cm===void 0)return vM("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(Z.SL===void 0||z.f3===void 0||Z.SL!==z.f3&&z.f3!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(Z.instreamVideoAdRenderer.elementId===void 0)return vM("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:Z.SL,"matching APSR kind":z.f3}),!1}return!0}; Bi=function(Z,Q){Z.has(Q)||Z.set(Q,{instreamVideoAdRenderer:void 0,SL:void 0,adVideoId:Q,Ut:[]});return Z.get(Q)}; Wi=function(Z,Q,z,K,b,q,r,D,v){b?Bi(Z,b).Ut.push({wHu:Q,f3:z,isContentVideoCompanion:K,Cm:r,associatedCompositePlayerBytesLayoutId:q,adSlotLoggingData:D,G3:v}):vM("Companion AdPlacementSupportedRenderer without adVideoId")}; VQ=function(Z){var Q=0;Z=g.n(Z.questions);for(var z=Z.next();!z.done;z=Z.next())if(z=z.value,z=g.V(z,Nb)||g.V(z,GE)){var K=void 0;Q+=((K=z.surveyAdQuestionCommon)==null?void 0:K.durationMilliseconds)||0}return Q}; kd=function(Z){var Q,z,K,b,q=((z=g.V((Q=Z.questions)==null?void 0:Q[0],Nb))==null?void 0:z.surveyAdQuestionCommon)||((b=g.V((K=Z.questions)==null?void 0:K[0],GE))==null?void 0:b.surveyAdQuestionCommon),r;Q=[].concat(g.I(((r=Z.playbackCommands)==null?void 0:r.instreamAdCompleteCommands)||[]),g.I((q==null?void 0:q.timeoutCommands)||[]));var D,v,Y,X,S,T,f,h,m,J,d,G,R,U,B,e,F,KX,rf,sG;return{impressionCommands:(D=Z.playbackCommands)==null?void 0:D.impressionCommands,errorCommands:(v=Z.playbackCommands)== null?void 0:v.errorCommands,muteCommands:(Y=Z.playbackCommands)==null?void 0:Y.muteCommands,unmuteCommands:(X=Z.playbackCommands)==null?void 0:X.unmuteCommands,pauseCommands:(S=Z.playbackCommands)==null?void 0:S.pauseCommands,rewindCommands:(T=Z.playbackCommands)==null?void 0:T.rewindCommands,resumeCommands:(f=Z.playbackCommands)==null?void 0:f.resumeCommands,skipCommands:(h=Z.playbackCommands)==null?void 0:h.skipCommands,progressCommands:(m=Z.playbackCommands)==null?void 0:m.progressCommands,LBJ:(J= Z.playbackCommands)==null?void 0:J.clickthroughCommands,fullscreenCommands:(d=Z.playbackCommands)==null?void 0:d.fullscreenCommands,activeViewViewableCommands:(G=Z.playbackCommands)==null?void 0:G.activeViewViewableCommands,activeViewMeasurableCommands:(R=Z.playbackCommands)==null?void 0:R.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(U=Z.playbackCommands)==null?void 0:U.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(B=Z.playbackCommands)== null?void 0:(e=B.activeViewTracking)==null?void 0:e.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(F=Z.playbackCommands)==null?void 0:(KX=F.activeViewTracking)==null?void 0:KX.activeViewAudioMeasurableCommands,endFullscreenCommands:(rf=Z.playbackCommands)==null?void 0:rf.endFullscreenCommands,abandonCommands:(sG=Z.playbackCommands)==null?void 0:sG.abandonCommands,completeCommands:Q}}; BEn=function(Z,Q,z,K,b,q,r){return function(D,v){return ojG(Z,v.slotId,D,q,function(Y,X){var S=v.layoutId;Y=r(Y);return uD(Q,S,X,b,Y,"LAYOUT_TYPE_SURVEY",[new SG(z),K],z.adLayoutLoggingData)})}}; k0x=function(Z,Q,z,K,b,q,r){if(!W8f(Z))return new w("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:Z});var D=Z.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[VdX(q,Q,z,K,function(v){var Y=v.slotId;v=r(v);Y=wZ(b.j.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Y);var X={layoutId:Y,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",mF:"core"},S=new ao(b.Y,K);return{layoutId:Y,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",wq:new Map,layoutExitNormalTriggers:[S], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Nb:[],mF:"core",clientMetadata:new qf([new $0(D)]),EA:v(X)}})]}; W8f=function(Z){Z=g.V(Z==null?void 0:Z.additionalPlayerOverlay,ugM);if(!Z)return!1;var Q=Z.slidingMessages;return Z.title&&Q&&Q.length!==0?!0:!1}; tdx=function(Z,Q,z,K,b){var q;if((q=Z.playerOverlay)==null||!q.instreamSurveyAdRenderer)return function(){return[]}; if(!h$9(Z))return function(){return new w("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:Z})}; var r=Z.playerOverlay.instreamSurveyAdRenderer,D=VQ(r);return D<=0?function(){return new w("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:r})}:function(v,Y){var X=xHM(v,z,K,function(S){var T=S.slotId; S=Y(S);var f=kd(r);T=wZ(b.j.get(),"LAYOUT_TYPE_SURVEY",T);var h={layoutId:T,layoutType:"LAYOUT_TYPE_SURVEY",mF:"core"},m=new ao(b.Y,K),J=new V1(b.Y,T),d=new wA(b.Y,T),G=new wOG(b.Y);return{layoutId:T,layoutType:"LAYOUT_TYPE_SURVEY",wq:new Map,layoutExitNormalTriggers:[m,G],layoutExitSkipTriggers:[J],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[d],Nb:[],mF:"core",clientMetadata:new qf([new XZ(r),new ln(Q),new BT(D/1E3),new us(f)]),EA:S(h),adLayoutLoggingData:r.adLayoutLoggingData}}); v=k0x(Z,z,X.slotId,K,b,v,Y);return v instanceof w?v:[X].concat(g.I(v))}}; ZRu=function(Z,Q,z,K,b,q,r){r=r===void 0?!1:r;var D=[];try{var v=[];if(z.renderer.linearAdSequenceRenderer)var Y=function(m){m=F84(m.slotId,z,Q,b(m),K,q,r);v=m.Jxf;return m.BX}; else if(z.renderer.instreamVideoAdRenderer)Y=function(m){var J=m.slotId;m=b(m);var d=r,G=z.config.adPlacementConfig,R=e$u(G),U=R.Yl,B=R.wu;R=z.renderer.instreamVideoAdRenderer;var e;if(R==null?0:(e=R.playerOverlay)==null?0:e.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var F=xd(R,d);e=Math.min(U+F.videoLengthSeconds*1E3,B);d=new Io(0,[F.videoLengthSeconds]);B=F.videoLengthSeconds;var KX=F.playerVars,rf=F.instreamAdPlayerOverlayRenderer,sG=F.playerOverlayLayoutRenderer, k=F.adVideoId,l=wAr(z),c=F.wq;F=F.Dh;var u=R==null?void 0:R.adLayoutLoggingData;R=R==null?void 0:R.sodarExtensionData;J=wZ(Q.j.get(),"LAYOUT_TYPE_MEDIA",J);var o0={layoutId:J,layoutType:"LAYOUT_TYPE_MEDIA",mF:"core"};return{layoutId:J,layoutType:"LAYOUT_TYPE_MEDIA",wq:c,layoutExitNormalTriggers:[new P4(Q.Y)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Nb:[],mF:"core",clientMetadata:new qf([new bs(K),new yO(B),new dO(KX),new is(U),new ak(e),rf&&new qh(rf), sG&&new rO(sG),new ln(G),new KM(k),new s$(d),new HT(l),R&&new G4(R),new cT({current:null}),new Rk({}),new FZ(F)].filter(EjG)),EA:m(o0),adLayoutLoggingData:u}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var X=lVG(Z,K,z.adSlotLoggingData,Y);D.push(X);for(var S=g.n(v),T=S.next();!T.done;T=S.next()){var f=T.value,h=f(Z,b);if(h instanceof w)return h;D.push.apply(D,g.I(h))}}catch(m){return new w(m,{errorMessage:m.message,AdPlacementRenderer:z,numberOfSurveyRenderers:shG(z)})}return D}; shG=function(Z){Z=(Z.renderer.linearAdSequenceRenderer||{}).linearAds;return Z!=null&&Z.length?Z.filter(function(Q){var z,K;return((z=g.V(Q,f5))==null?void 0:(K=z.playerOverlay)==null?void 0:K.instreamSurveyAdRenderer)!=null}).length:0}; F84=function(Z,Q,z,K,b,q,r){var D=Q.config.adPlacementConfig,v=e$u(D),Y=v.Yl,X=v.wu;v=(Q.renderer.linearAdSequenceRenderer||{}).linearAds;if(v==null||!v.length)throw new TypeError("Expected linear ads");var S=[],T={cw:Y,K$:0,deg:S};v=v.map(function(h){return QhG(Z,h,T,z,K,D,b,X,r)}).map(function(h,m){m=new Io(m,S); return h(m)}); var f=v.map(function(h){return h.RZ}); return{BX:zP4(z,Z,Y,f,D,wAr(Q),K,X,q),Jxf:v.map(function(h){return h.RDp})}}; QhG=function(Z,Q,z,K,b,q,r,D,v){var Y=xd(g.V(Q,f5),v),X=z.cw,S=z.K$,T=Math.min(X+Y.videoLengthSeconds*1E3,D);z.cw=T;z.K$++;z.deg.push(Y.videoLengthSeconds);var f,h,m=(f=g.V(Q,f5))==null?void 0:(h=f.playerOverlay)==null?void 0:h.instreamSurveyAdRenderer;if(Y.adVideoId==="nPpU29QrbiU"&&m==null)throw new TypeError("Survey slate media has no survey overlay");return function(J){Op(Y.playerVars,J);var d,G,R=Y.videoLengthSeconds,U=Y.playerVars,B=Y.wq,e=Y.Dh,F=Y.instreamAdPlayerOverlayRenderer,KX=Y.playerOverlayLayoutRenderer, rf=Y.adVideoId,sG=(d=g.V(Q,f5))==null?void 0:d.adLayoutLoggingData;d=(G=g.V(Q,f5))==null?void 0:G.sodarExtensionData;G=wZ(K.j.get(),"LAYOUT_TYPE_MEDIA",Z);var k={layoutId:G,layoutType:"LAYOUT_TYPE_MEDIA",mF:"adapter"};J={layoutId:G,layoutType:"LAYOUT_TYPE_MEDIA",wq:B,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Nb:[],mF:"adapter",clientMetadata:new qf([new bs(r),new yO(R),new dO(U),new is(X),new ak(T),new PT(S),new cT({current:null}), F&&new qh(F),KX&&new rO(KX),new ln(q),new KM(rf),new s$(J),d&&new G4(d),m&&new tg(m),new Rk({}),new FZ(e)].filter(EjG)),EA:b(k),adLayoutLoggingData:sG};R=tdx(g.V(Q,f5),q,r,J.layoutId,K);return{RZ:J,RDp:R}}}; xd=function(Z,Q){if(!Z)throw new TypeError("Expected instream video ad renderer");if(!Z.playerVars)throw new TypeError("Expected player vars in url encoded string");var z=zr(Z.playerVars),K=Number(z.length_seconds);if(isNaN(K))throw new TypeError("Expected valid length seconds in player vars");var b=Number(Z.trimmedMaxNonSkippableAdDurationMs);K=isNaN(b)?K:Math.min(K,b/1E3);b=Z.playerOverlay||{};b=b.instreamAdPlayerOverlayRenderer===void 0?null:b.instreamAdPlayerOverlayRenderer;var q=Z.playerOverlay|| {};q=q.playerOverlayLayoutRenderer===void 0?null:q.playerOverlayLayoutRenderer;var r=z.video_id;r||(r=(r=Z.externalVideoId)?r:void 0);if(!r)throw new TypeError("Expected valid video id in IVAR");if(Q&&K===0){var D;Q=(D=KOG[r])!=null?D:K}else Q=K;return{playerVars:z,videoLengthSeconds:Q,instreamAdPlayerOverlayRenderer:b,playerOverlayLayoutRenderer:q,adVideoId:r,wq:Z.pings?d7(Z.pings):new Map,Dh:yh(Z.pings)}}; wAr=function(Z){Z=Number(Z.driftRecoveryMs);return isNaN(Z)||Z<=0?null:Z}; e$u=function(Z){var Q=Z.adTimeOffset||{};Z=Q.offsetEndMilliseconds;Q=Number(Q.offsetStartMilliseconds);if(isNaN(Q))throw new TypeError("Expected valid start offset");Z=Number(Z);if(isNaN(Z))throw new TypeError("Expected valid end offset");return{Yl:Q,wu:Z}}; bRG=function(Z){var Q,z=(Q=rZ(Z.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:Q.current;if(!z)return null;Q=rZ(Z.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var K=Z.layoutId,b=rZ(Z.clientMetadata,"metadata_type_content_cpn"),q=rZ(Z.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),r=rZ(Z.clientMetadata,"metadata_type_player_underlay_renderer"),D=rZ(Z.clientMetadata,"metadata_type_ad_placement_config"),v=rZ(Z.clientMetadata,"metadata_type_video_length_seconds"); var Y=QF(Z.clientMetadata,"metadata_type_layout_enter_ms")&&QF(Z.clientMetadata,"metadata_type_layout_exit_ms")?(rZ(Z.clientMetadata,"metadata_type_layout_exit_ms")-rZ(Z.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{kA:K,contentCpn:b,zr:z,QT:Q,instreamAdPlayerOverlayRenderer:q,instreamAdPlayerUnderlayRenderer:r,adPlacementConfig:D,videoLengthSeconds:v,Bj:Y,inPlayerLayoutId:rZ(Z.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:rZ(Z.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; AMu=function(Z,Q,z,K,b,q,r,D,v,Y,X,S,T,f,h){K=TQ(K,"SLOT_TYPE_PLAYER_BYTES");Z=qzd(b,Z,r,z,K,v,Y);if(Z instanceof w)return Z;var m;Y=(m=rZ(Z.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:m.layoutId;if(!Y)return new w("Invalid adNotify layout");Q=rMD(Y,b,q,z,D,Q,v,X,S,T,f,h,r);return Q instanceof w?Q:[Z].concat(g.I(Q))}; rMD=function(Z,Q,z,K,b,q,r,D,v,Y,X,S,T){z=jhM(Q,z,K,q,r,D,v,Y,X,S,T);if(z instanceof w)return z;Z=Dl4(Q,Z,r,b,z);return Z instanceof w?Z:[].concat(g.I(Z.DG),[Z.O0])}; gZf=function(Z,Q,z,K,b,q,r,D,v,Y,X,S,T,f){Q=jhM(Z,Q,z,b,q,D,v,Y,X,S,T,f);if(Q instanceof w)return Q;Z=vZM(Z,z,q,r,K,D.fd,Q);return Z instanceof w?Z:Z.DG.concat(Z.O0)}; jhM=function(Z,Q,z,K,b,q,r,D,v,Y,X,S){var T=tu(K,z,Y);return T instanceof bz?new w(T):Y.J.N().experiments.XI("html5_refactor_in_player_slot_generation")?function(f){var h=new Io(0,[T.Sl]);f=Yzr(Q,T.layoutId,T.Ny,z,FT(T.playerVars,T.Wf,q,v,h),T.Sl,b,h,r(f),D.get(T.Ny.externalVideoId),S);h=[];if(T.Ny.playerOverlay.instreamAdPlayerOverlayRenderer){var m=bRG(f);if(!m)return vM("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,f),{layout:f,DG:[]}; h=[XVD(Z,m.contentCpn,m.kA,function(d){return eC(Q,d.slotId,"core",m,YH(X,d))},m.inPlayerSlotId)].concat(g.I(h)); if(m.instreamAdPlayerUnderlayRenderer&&w6(Y)){var J=m.instreamAdPlayerUnderlayRenderer;h=[SzM(Z,m.contentCpn,m.kA,function(d){return $lx(Q,d.slotId,J,m.adPlacementConfig,m.kA,YH(X,d))})].concat(g.I(h))}}return{layout:f, DG:h}}:function(f){var h=new Io(0,[T.Sl]); return{layout:Yzr(Q,T.layoutId,T.Ny,z,FT(T.playerVars,T.Wf,q,v,h),T.Sl,b,h,r(f),D.get(T.Ny.externalVideoId),S),DG:[]}}}; tu=function(Z,Q,z){if(!Z.playerVars)return new bz("No playerVars available in InstreamVideoAdRenderer.");var K,b;if(Z.elementId==null||Z.playerVars==null||Z.playerOverlay==null||((K=Z.playerOverlay)==null?void 0:K.instreamAdPlayerOverlayRenderer)==null&&((b=Z.playerOverlay)==null?void 0:b.playerOverlayLayoutRenderer)==null||Z.pings==null||Z.externalVideoId==null)return new bz("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:Z});K=zr(Z.playerVars);b=Number(K.length_seconds); isNaN(b)&&(b=0,vM("Expected valid length seconds in player vars but got NaN"));if(z.kX(Q.kind==="AD_PLACEMENT_KIND_START")){if(Z.layoutId===void 0)return new bz("Expected server generated layout ID in instreamVideoAdRenderer");Q=Z.layoutId}else Q=Z.elementId;return{layoutId:Q,Ny:Z,playerVars:K,Wf:Z.playerVars,Sl:b}}; FT=function(Z,Q,z,K,b){Z.iv_load_policy=K;Q=zr(Q);if(Q.cta_conversion_urls)try{Z.cta_conversion_urls=JSON.parse(Q.cta_conversion_urls)}catch(q){vM(q)}z.b0&&(Z.ctrl=z.b0);z.QF&&(Z.ytr=z.QF);z.ZD&&(Z.ytrcc=z.ZD);z.isMdxPlayback&&(Z.mdx="1");Z.vvt&&(Z.vss_credentials_token=Z.vvt,z.V2&&(Z.vss_credentials_token_type=z.V2),z.mdxEnvironment&&(Z.mdx_environment=z.mdxEnvironment));Op(Z,b);return Z}; TxX=function(Z){var Q=new Map;Z=g.n(Z);for(var z=Z.next();!z.done;z=Z.next())(z=z.value.renderer.remoteSlotsRenderer)&&z.hostElementId&&Q.set(z.hostElementId,z);return Q}; Ep=function(Z){return Z.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; fkG=function(Z){return Z!=null}; JMW=function(Z,Q,z,K,b,q,r,D,v,Y,X,S,T,f){for(var h=[],m=g.n(Z),J=m.next();!J.done;J=m.next())if(J=J.value,!DHX(J)&&!$HX(J)){var d=Ep(J)&&!!J.slotEntryTrigger.beforeContentVideoIdStartedTrigger,G=v.kX(d),R=hPx(J,Y,K,z.x8,G);if(R instanceof w)return R;var U=void 0,B={slotId:J.adSlotMetadata.slotId,slotType:J.adSlotMetadata.slotType,slotPhysicalPosition:(U=J.adSlotMetadata.slotPhysicalPosition)!=null?U:1,mF:"core",slotEntryTrigger:R.slotEntryTrigger,slotFulfillmentTriggers:R.slotFulfillmentTriggers, slotExpirationTriggers:R.slotExpirationTriggers},e=g.V(J.fulfillmentContent.fulfilledLayout,mt);if(e){if(!ci(e))return new w("Invalid PlayerBytesAdLayoutRenderer");U=S&&!(Ep(J)&&J.slotEntryTrigger.beforeContentVideoIdStartedTrigger);R=R.slotFulfillmentTriggers.some(function(F){return F instanceof Ro}); G=U?LO4(B,J.adSlotMetadata.triggerEvent,e,z,K,q,Y,Z,G,T,R,f):nZd(B,J.adSlotMetadata.triggerEvent,e,Q,z,K,b,q,r,D,v,Y,Z,X,G,J.adSlotMetadata.triggeringSourceLayoutId);if(G instanceof w)return G;R=[];Ep(J)&&R.push(new si({u_:Ep(J)&&!!J.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));U&&R.push(new Rk({}));z.fd&&R.push(new x0({}));R.push(new E$(d));J=Object.assign({},B,{clientMetadata:new qf(R),fulfilledLayout:G.layout,adSlotLoggingData:J.adSlotMetadata.adSlotLoggingData});h.push.apply(h,g.I(G.DG)); h.push(J)}else if(d=g.V(J.fulfillmentContent.fulfilledLayout,yQ)){if(!jvM(d))return new w("Invalid PlayerUnderlayAdLayoutRenderer");d=cMD(d,K,z.x8,q,B,J.adSlotMetadata.triggerEvent,J.adSlotMetadata.triggeringSourceLayoutId);if(d instanceof w)return d;J=Object.assign({},B,{clientMetadata:new qf([]),fulfilledLayout:d,adSlotLoggingData:J.adSlotMetadata.adSlotLoggingData});h.push(J)}else if(d=g.V(J.fulfillmentContent.fulfilledLayout,gjD)){if(!ZeG(d))return new w("Invalid AboveFeedAdLayoutRenderer");d= mlr(d,K,z.x8,q,B,J.adSlotMetadata.triggerEvent,J.adSlotMetadata.triggeringSourceLayoutId);if(d instanceof w)return d;J=Object.assign({},B,{clientMetadata:new qf([]),fulfilledLayout:d,adSlotLoggingData:J.adSlotMetadata.adSlotLoggingData});h.push(J)}else if(d=g.V(J.fulfillmentContent.fulfilledLayout,YPM)){if(!sp(d.adLayoutMetadata)||!g.V(d.renderingContent,ZA))return new w("Invalid BelowPlayerAdLayoutRenderer");d=mlr(d,K,z.x8,q,B,J.adSlotMetadata.triggerEvent,J.adSlotMetadata.triggeringSourceLayoutId); if(d instanceof w)return d;J=Object.assign({},B,{clientMetadata:new qf([]),fulfilledLayout:d,adSlotLoggingData:J.adSlotMetadata.adSlotLoggingData});h.push(J)}else if(d=g.V(J.fulfillmentContent.fulfilledLayout,XAM)){if(!sp(d.adLayoutMetadata)||!g.V(d.renderingContent,d6))return new w("Invalid PlayerBytesSequenceItemAdLayoutRenderer");d=IkW(d,K,z.x8,q,B,J.adSlotMetadata.triggerEvent);if(d instanceof w)return d;J=Object.assign({},B,{clientMetadata:new qf([]),fulfilledLayout:d,adSlotLoggingData:J.adSlotMetadata.adSlotLoggingData}); h.push(J)}else return new w("Unable to retrieve a client slot ["+B.slotType+"] from a given AdSlotRenderer")}return h}; IkW=function(Z,Q,z,K,b,q){var r={layoutId:Z.adLayoutMetadata.layoutId,layoutType:Z.adLayoutMetadata.layoutType,mF:"core"};Q=lD(Z,Q,z);return Q instanceof w?Q:Object.assign({},r,{renderingContent:Z.renderingContent,wq:new Map([["impression",yM9(Z)]])},Q,{EA:YH(K,b)(r),clientMetadata:new qf([new ln(s4(q))]),adLayoutLoggingData:Z.adLayoutMetadata.adLayoutLoggingData})}; mlr=function(Z,Q,z,K,b,q,r){var D={layoutId:Z.adLayoutMetadata.layoutId,layoutType:Z.adLayoutMetadata.layoutType,mF:"core"};Q=lD(Z,Q,z);if(Q instanceof w)return Q;z=[];z.push(new ln(s4(q)));q==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&r!==void 0&&z.push(new T4(r));return Object.assign({},D,{renderingContent:Z.renderingContent,wq:new Map([["impression",yM9(Z)]])},Q,{EA:YH(K,b)(D),clientMetadata:new qf(z),adLayoutLoggingData:Z.adLayoutMetadata.adLayoutLoggingData})}; cMD=function(Z,Q,z,K,b,q,r){if(Z.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(r=g.V(Z.renderingContent,IU))if(r=g.V(r.sidePanel,rKf)){var D={layoutId:Z.adLayoutMetadata.layoutId,layoutType:Z.adLayoutMetadata.layoutType,mF:"core"};Q=lD(Z,Q,z);Z=Q instanceof w?Q:Object.assign({},D,{renderingContent:Z.renderingContent,wq:new Map([["impression",r.impressionPings||[]],["resume",r.resumePings||[]]])},Q,{EA:YH(K,b)(D),clientMetadata:new qf([new ln(s4(q))]),adLayoutLoggingData:Z.adLayoutMetadata.adLayoutLoggingData})}else Z= new w("DismissablePanelTextPortraitImageRenderer is missing");else Z=new w("SqueezebackPlayerSidePanelRenderer is missing");else Z.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.V(Z.renderingContent,K8G)?(r={layoutId:Z.adLayoutMetadata.layoutId,layoutType:Z.adLayoutMetadata.layoutType,mF:"core"},Q=lD(Z,Q,z),Z=Q instanceof w?Q:Object.assign({},r,{renderingContent:Z.renderingContent,wq:new Map},Q,{EA:YH(K,b)(r),clientMetadata:new qf([new ln(s4(q))]),adLayoutLoggingData:Z.adLayoutMetadata.adLayoutLoggingData})): Z=new w("CounterfactualRenderer is missing"):Z.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?Z=new w("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):Z.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?Z=new w("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):Z.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.V(Z.renderingContent,Ju)?(q={layoutId:Z.adLayoutMetadata.layoutId,layoutType:Z.adLayoutMetadata.layoutType, mF:"core"},Q=lD(Z,Q,z),Z=Q instanceof w?Q:r?Object.assign({},q,{renderingContent:Z.renderingContent,wq:new Map},Q,{EA:YH(K,b)(q),clientMetadata:new qf([new T4(r)]),adLayoutLoggingData:Z.adLayoutMetadata.adLayoutLoggingData}):new w("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):Z=new w("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):Z.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.V(Z.renderingContent,bef)? (q={layoutId:Z.adLayoutMetadata.layoutId,layoutType:Z.adLayoutMetadata.layoutType,mF:"core"},Q=lD(Z,Q,z),Z=Q instanceof w?Q:Object.assign({},q,{renderingContent:Z.renderingContent,wq:new Map([])},Q,{EA:YH(K,b)(q),adLayoutLoggingData:Z.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new qf([])})):Z=new w("AdsEngagementPanelSectionListViewModel is missing"):Z=new w("LayoutType ["+Z.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return Z}; LO4=function(Z,Q,z,K,b,q,r,D,v,Y,X,S){if((S==null?void 0:S.pV)===void 0||(S==null?void 0:S.Ie)===void 0)return new w("Cached ad break range from cue point is missing");var T=lD(z,b,K.x8);if(T instanceof w)return T;T={layoutExitMuteTriggers:[],layoutExitNormalTriggers:T.layoutExitNormalTriggers,layoutExitSkipTriggers:[],Nb:[],layoutExitUserInputSubmittedTriggers:[]};if(g.V(z.renderingContent,f5))return Z=dlG(Z,Q,z,T,b,q,D,v,K.x8,r,S.pV,S.Ie),Z instanceof w?Z:Z.Cf===void 0?new w("Expecting associatedInPlayerSlot for single DAI media layout"): {layout:Z.layout,DG:[Z.Cf]};var f=g.V(z.renderingContent,DA);if(f){if(!sp(z.adLayoutMetadata))return new w("Invalid ad layout metadata");if(!vi(f))return new w("Invalid sequential layout");f=f.sequentialLayouts.map(function(h){return h.playerBytesAdLayoutRenderer}); Z=Nxu(Z,Q,z,T,f,b,K,q,r,v,D,Y,S.pV,S.Ie,X);return Z instanceof w?Z:{layout:Z.Dw,DG:Z.DG}}return new w("Not able to convert a sequential layout")}; Nxu=function(Z,Q,z,K,b,q,r,D,v,Y,X,S,T,f,h){var m=GgM(b,T,f);if(m instanceof w)return m;var J=[],d=[];m=g.n(m);for(var G=m.next();!G.done;G=m.next()){var R=G.value;G=Z;var U=b[R.K$],B=R,e=Q;R=q;var F=r,KX=D,rf=v,sG=Y,k=X,l=ZF(U);if(l instanceof w)G=l;else{var c={layoutId:U.adLayoutMetadata.layoutId,layoutType:U.adLayoutMetadata.layoutType,mF:"adapter"};B=iRG(e,U,B,R);B instanceof w?G=B:(G=Object.assign({},c,QG,{wq:l,renderingContent:U.renderingContent,clientMetadata:new qf(B),EA:YH(KX,G)(c),adLayoutLoggingData:U.adLayoutMetadata.adLayoutLoggingData}), G=(U=zq(k,G,R,F.x8,KX,rf,sG,void 0,!0))?U instanceof w?U:{layout:G,Cf:U}:new w("Expecting associatedInPlayerSlot"))}if(G instanceof w)return G;J.push(G.layout);d.push(G.Cf)}b={layoutId:z.adLayoutMetadata.layoutId,layoutType:z.adLayoutMetadata.layoutType,mF:"core"};Q=[new HT(Number(z.driftRecoveryMs)),new is(T),new ak(f),new ln(s4(Q)),new wO(S),new Rk({})];h&&Q.push(new Z0({}));return{Dw:Object.assign({},b,K,{Fv:J,wq:new Map,clientMetadata:new qf(Q),EA:YH(D,Z)(b)}),DG:d}}; dlG=function(Z,Q,z,K,b,q,r,D,v,Y,X,S){if(!ci(z))return new w("Invalid PlayerBytesAdLayoutRenderer");var T=ZF(z);if(T instanceof w)return T;var f={layoutId:z.adLayoutMetadata.layoutId,layoutType:z.adLayoutMetadata.layoutType,mF:"core"},h=g.V(z.renderingContent,f5);if(!h)return new w("Invalid rendering content for DAI media layout");h=xd(h,!1);X={Bp:h,K$:0,cw:X,xM:Math.min(X+h.videoLengthSeconds*1E3,S),jl:new Io(0,[h.videoLengthSeconds])};var m;S=(m=Number(z.driftRecoveryMs))!=null?m:void 0;Q=iRG(Q, z,X,b,S);if(Q instanceof w)return Q;Z=Object.assign({},f,K,{wq:T,renderingContent:z.renderingContent,clientMetadata:new qf(Q),EA:YH(q,Z)(f),adLayoutLoggingData:z.adLayoutMetadata.adLayoutLoggingData});return(b=zq(r,Z,b,v,q,Y,D,void 0,!0))?b instanceof w?b:{layout:Z,Cf:b}:new w("Expecting associatedInPlayerSlot")}; nZd=function(Z,Q,z,K,b,q,r,D,v,Y,X,S,T,f,h,m){var J=lD(z,q,b.x8);if(J instanceof w)return J;if(g.V(z.renderingContent,f5)){v=akf([z],b,v);if(v instanceof w)return v;if(v.length!==1)return new w("Only expected one media layout.");Z=PnD(Z,Q,z,J,v[0],void 0,"core",K,q,r,D,Y,T,f,h,b.x8,S,void 0,m);return Z instanceof w?Z:{layout:Z.layout,DG:Z.Cf?[Z.Cf]:[]}}var d=g.V(z.renderingContent,DA);if(d){if(!sp(z.adLayoutMetadata))return new w("Invalid ad layout metadata");if(!vi(d))return new w("Invalid sequential layout"); d=d.sequentialLayouts.map(function(G){return G.playerBytesAdLayoutRenderer}); Z=RPn(Z,Q,z.adLayoutMetadata,J,d,K,q,b,v,r,D,Y,X,S,h,T,f,m);return Z instanceof w?Z:{layout:Z.Dw,DG:Z.DG}}return new w("Not able to convert a sequential layout")}; RPn=function(Z,Q,z,K,b,q,r,D,v,Y,X,S,T,f,h,m,J,d){var G=new z4({current:null}),R=akf(b,D,v);if(R instanceof w)return R;v=[];for(var U=[],B=void 0,e=0;e<b.length;e++){var F=b[e];if(g.V(F.renderingContent,f5)){B=Cg(T)&&pg(T)?R[e+1]:void 0;B=PnD(Z,Q,F,QG,R[e],B,"adapter",q,r,Y,X,S,m,J,h,D.x8,f,G,d);if(B instanceof w)return B;v.push(B.layout);B.Cf&&U.push(B.Cf);B=R[e]}else if(g.V(F.renderingContent,hu)){var KX=Z,rf=X;if(ci(F)){var sG=g.V(F.renderingContent,hu);if(sG&&sG.playerVars!==void 0){var k={layoutId:F.adLayoutMetadata.layoutId, layoutType:F.adLayoutMetadata.layoutType,mF:"adapter"};sG=zr(sG.playerVars);sG.autoplay="1";F=Object.assign({},k,QG,{renderingContent:F.renderingContent,clientMetadata:new qf([new CM({}),new ln({kind:"AD_PLACEMENT_KIND_START"}),new cT({current:null}),new dO(sG)]),wq:new Map,EA:YH(rf,KX)(k),adLayoutLoggingData:F.adLayoutMetadata.adLayoutLoggingData})}else F=new w("Invalid ad intro renderer")}else F=new w("Invalid PlayerBytesAdLayoutRenderer");if(F instanceof w)return F;v.push(F)}else if(g.V(F.renderingContent, vN))if(J){F=Cnr(Z,F,X,s4(Q),B);if(F instanceof w)return F;v.push(F);F=zq(m,F,r,D.x8,X,f,h,G,!1);if(F instanceof w)return F;if(F)U.push(F);else return new w("Not able to retrieve InPlayer slot for endcap")}else{a:{KX=F.adLayoutMetadata.layoutId;rf=g.n(q);for(k=rf.next();!k.done;k=rf.next()){k=k.value;var l=sG=void 0,c=((sG=k.renderer)==null?void 0:(l=sG.linearAdSequenceRenderer)==null?void 0:l.linearAds)||[];sG=g.n(c);for(l=sG.next();!l.done;l=sG.next())if((l=g.V(l.value,vN))&&l.inPlayerSlotId!==void 0&& l.inPlayerLayoutId!==void 0&&l.associatedPlayerBytesLayoutId!==void 0&&l.associatedPlayerBytesLayoutId===KX){KX={nA:l,adPlacementConfig:k.config.adPlacementConfig};break a}}KX=new w("Not able to find associated InPlayer slot for endcap")}if(KX instanceof w)return KX;F=Cnr(Z,F,X,KX.adPlacementConfig,B);if(F instanceof w)return F;v.push(F);F=pVM(F.layoutId,f,r,KX,G,X);if(F instanceof w)return F;U.push(F)}}Q={layoutId:z.layoutId,layoutType:z.layoutType,mF:"core"};return{Dw:Object.assign({},Q,K,{Fv:v, wq:new Map,clientMetadata:new qf([G]),EA:YH(X,Z)(Q)}),DG:U}}; PnD=function(Z,Q,z,K,b,q,r,D,v,Y,X,S,T,f,h,m,J,d,G){if(!ci(z))return new w("Invalid PlayerBytesAdLayoutRenderer");var R=ZF(z);if(R instanceof w)return R;r={layoutId:z.adLayoutMetadata.layoutId,layoutType:z.adLayoutMetadata.layoutType,mF:r};a:{var U=z.adLayoutMetadata.layoutId,B=g.V(z.renderingContent,f5);if(B&&jC(B)){var e=[];if(f)e.push(new ln(s4(Q)));else{b:{D=g.n(D);for(Q=D.next();!Q.done;Q=D.next()){Q=Q.value;var F=Oer(Q.renderer)||[],KX=g.n(F);for(F=KX.next();!F.done;F=KX.next())if(F=F.value, F.associatedPlayerBytesLayoutId===U){F.associatedPlayerBytesLayoutId?(D=F.playerOverlay,KX=D!==void 0&&D.playerOverlayLayoutRenderer!==void 0&&D.playerOverlayLayoutRenderer.inPlayerSlotId!==void 0&&D.playerOverlayLayoutRenderer.inPlayerLayoutId!==void 0,D=D!==void 0&&D.instreamAdPlayerOverlayRenderer!==void 0&&D.instreamAdPlayerOverlayRenderer.inPlayerSlotId!==void 0&&D.instreamAdPlayerOverlayRenderer.inPlayerLayoutId!==void 0||KX):D=!1;Q=D?{instreamVideoAdRenderer:F,adPlacementConfig:Q.config.adPlacementConfig}: new w("Invalid InPlayer shim");break b}}Q=new w("Not able to find associated InPlayer slot")}if(Q instanceof w){q=Q;break a}D=Q.instreamVideoAdRenderer.playerOverlay.instreamAdPlayerOverlayRenderer;F=Q.instreamVideoAdRenderer.playerOverlay.playerOverlayLayoutRenderer;var rf;KX=(rf=D==null?void 0:D.inPlayerSlotId)!=null?rf:F==null?void 0:F.inPlayerSlotId;var sG;rf=(sG=D==null?void 0:D.inPlayerLayoutId)!=null?sG:F==null?void 0:F.inPlayerLayoutId;if(KX===void 0){q=new w("InPlayer shim slot id is undefined"); break a}if(rf===void 0){q=new w("InPlayer shim layout id is undefined");break a}e.push(new fM(rf),new LM(KX),new PT(b.jl.adPodIndex),new ln(Q.adPlacementConfig));D&&e.push(new qh(D));F&&e.push(new rO(F))}e.push(new s$(b.jl),new KM(B.externalVideoId),new bs(v),new us({impressionCommands:B.impressionCommands,abandonCommands:B.onAbandonCommands,completeCommands:B.completeCommands,progressCommands:B.adVideoProgressCommands}),new dO(b.uC),new cT({current:null}),new yO(b.oXI.Sl),new FZ(yh(B.pings)),new Z3(b.jl.adPodIndex)); G&&e.push(new T4(G));(b=HRf(U,T))&&e.push(new jG(b));q&&e.push(new Nh(q.uC));B.adNextParams&&e.push(new kZ(B.adNextParams));B.clickthroughEndpoint&&e.push(new un(B.clickthroughEndpoint));B.legacyInfoCardVastExtension&&e.push(new VO(B.legacyInfoCardVastExtension));B.sodarExtensionData&&e.push(new G4(B.sodarExtensionData));d&&B.adPodSkipTarget&&B.adPodSkipTarget>0&&(e.push(d),e.push(new QO(B.adPodSkipTarget)));(q=Y.get(B.externalVideoId))&&e.push(new ok(q));q=e}else q=new w("Invalid vod media renderer")}if(q instanceof w)return q;Z=Object.assign({},r,K,{wq:R,renderingContent:z.renderingContent,clientMetadata:new qf(q),EA:YH(X,Z)(r),adLayoutLoggingData:z.adLayoutMetadata.adLayoutLoggingData});z=g.V(z.renderingContent,f5);if(!z||!jC(z))return new w("Invalid meida renderer");S=Bi(S,z.externalVideoId);S.instreamVideoAdRenderer=z;S.SL="AD_PLACEMENT_KIND_START";return f?(v=zq(T,Z,v,m,X,J,h,d,!1),v instanceof w?v:HRf(Z.layoutId,T)&&v?{layout:Object.assign({},Z,{clientMetadata:new qf(q.concat(new D3(v)))})}:{layout:Z,Cf:v}): {layout:Z}}; Cnr=function(Z,Q,z,K,b){if(!ci(Q))return new w("Invalid PlayerBytesAdLayoutRenderer");var q=g.V(Q.renderingContent,vN);if(!q||q.durationMilliseconds===void 0)return new w("Invalid endcap renderer");var r={layoutId:Q.adLayoutMetadata.layoutId,layoutType:Q.adLayoutMetadata.layoutType,mF:"adapter"};K=[new WT(q.durationMilliseconds),new us({impressionCommands:void 0,abandonCommands:q.abandonCommands?[{commandExecutorCommand:q.abandonCommands}]:void 0,completeCommands:q.completionCommands}),new ln(K), new hg("LAYOUT_TYPE_ENDCAP")];if(b){K.push(new Z3(b.jl.adPodIndex-1));K.push(new PT(b.jl.adPodIndex));var D;K.push(new QO((D=b.adPodSkipTarget)!=null?D:-1))}return Object.assign({},r,QG,{renderingContent:Q.renderingContent,clientMetadata:new qf(K),wq:q.skipPings?new Map([["skip",q.skipPings]]):new Map,EA:YH(z,Z)(r),adLayoutLoggingData:Q.adLayoutMetadata.adLayoutLoggingData})}; zq=function(Z,Q,z,K,b,q,r,D,v){Z=Z.filter(function(X){return X.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&X.adSlotMetadata.triggeringSourceLayoutId===Q.layoutId}); if(Z.length!==0){if(Z.length!==1)return new w("Invalid InPlayer slot association for the given PlayerBytes layout");Z=Z[0];r=hPx(Z,q,z,K,r);if(r instanceof w)return r;var Y;q={slotId:Z.adSlotMetadata.slotId,slotType:Z.adSlotMetadata.slotType,slotPhysicalPosition:(Y=Z.adSlotMetadata.slotPhysicalPosition)!=null?Y:1,mF:"core",slotEntryTrigger:r.slotEntryTrigger,slotFulfillmentTriggers:r.slotFulfillmentTriggers,slotExpirationTriggers:r.slotExpirationTriggers};Y=g.V(Z.fulfillmentContent.fulfilledLayout, vjG);if(!Y||!z$9(Y))return new w("Invalid InPlayerAdLayoutRenderer");r={layoutId:Y.adLayoutMetadata.layoutId,layoutType:Y.adLayoutMetadata.layoutType,mF:"core"};z=lD(Y,z,K);if(z instanceof w)return z;K=[];v&&K.push(new Rk({}));if(Y.adLayoutMetadata.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")K.push.apply(K,g.I(MPG(Z.adSlotMetadata.triggerEvent,Q)));else if(Y.adLayoutMetadata.layoutType==="LAYOUT_TYPE_ENDCAP")K.push(new ln(s4(Z.adSlotMetadata.triggerEvent))),D&&K.push(D);else return new w("Not able to parse an SDF InPlayer layout"); b=Object.assign({},r,z,{renderingContent:Y.renderingContent,wq:new Map,EA:YH(b,q)(r),clientMetadata:new qf(K),adLayoutLoggingData:Y.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},q,{fulfilledLayout:b,clientMetadata:new qf([])})}}; MPG=function(Z,Q){var z=[];z.push(new ln(s4(Z)));z.push(new T4(Q.layoutId));(Z=rZ(Q.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&z.push(new cT(Z));(Z=rZ(Q.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&z.push(new z4(Z));(Z=rZ(Q.clientMetadata,"metadata_type_remote_slots_data"))&&z.push(new ok(Z));(Z=rZ(Q.clientMetadata,"metadata_type_ad_next_params"))&&z.push(new kZ(Z));(Z=rZ(Q.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&z.push(new un(Z));(Z= rZ(Q.clientMetadata,"metadata_type_ad_pod_info"))&&z.push(new s$(Z));(Q=rZ(Q.clientMetadata,"metadata_type_ad_video_id"))&&z.push(new KM(Q));return z}; pVM=function(Z,Q,z,K,b,q){function r(Y){return Kd(Q,Y)} var D=K.nA.inPlayerSlotId,v={layoutId:K.nA.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",mF:"core"};z={slotId:D,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,mF:"core",slotEntryTrigger:new Gf(r,Z),slotFulfillmentTriggers:[new kt(r,D)],slotExpirationTriggers:[new u1(r,D),new B4(r,z)]};Z=Object.assign({},v,{layoutExitNormalTriggers:[new ao(r,Z)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Nb:[],wq:new Map,clientMetadata:new qf([new gO(K.nA), new ln(K.adPlacementConfig),b]),EA:YH(q,z)(v),adLayoutLoggingData:K.nA.adLayoutLoggingData});return Object.assign({},z,{clientMetadata:new qf([new Mh(Z)])})}; HRf=function(Z,Q){Q=g.n(Q);for(var z=Q.next();!z.done;z=Q.next())if(z=z.value,z.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var K=g.V(z.fulfillmentContent.fulfilledLayout,yQ);if(K&&(K=g.V(K.renderingContent,IU))&&K.associatedPlayerBytesLayoutId===Z)return z}}; hPx=function(Z,Q,z,K,b){var q=Ul0(Up(Z.slotEntryTrigger,z,K),b,Z,Q);if(q instanceof w)return q;for(var r=[],D=g.n(Z.slotFulfillmentTriggers),v=D.next();!v.done;v=D.next()){v=Up(v.value,z,K);if(v instanceof w)return v;r.push(v)}r=OR4(r,b,Z,Q);Q=[];Z=g.n(Z.slotExpirationTriggers);for(b=Z.next();!b.done;b=Z.next()){b=Up(b.value,z,K);if(b instanceof w)return b;Q.push(b)}return{slotEntryTrigger:q,slotFulfillmentTriggers:r,slotExpirationTriggers:Q}}; Ul0=function(Z,Q,z,K){return Q&&z.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&Z instanceof JV?new mq(function(b){return Kd(K,b)},z.adSlotMetadata.slotId):Z}; OR4=function(Z,Q,z,K){return Q&&z.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?Z.map(function(b){return b instanceof kt?new FV(function(q){return Kd(K,q)},z.adSlotMetadata.slotId):b}):Z}; lD=function(Z,Q,z){for(var K=[],b=g.n(Z.layoutExitNormalTriggers||[]),q=b.next();!q.done;q=b.next()){q=Up(q.value,Q,z);if(q instanceof w)return q;K.push(q)}b=[];q=g.n(Z.layoutExitSkipTriggers||[]);for(var r=q.next();!r.done;r=q.next()){r=Up(r.value,Q,z);if(r instanceof w)return r;b.push(r)}q=[];r=g.n(Z.layoutExitMuteTriggers||[]);for(var D=r.next();!D.done;D=r.next()){D=Up(D.value,Q,z);if(D instanceof w)return D;q.push(D)}r=[];Z=g.n(Z.layoutExitUserInputSubmittedTriggers||[]);for(D=Z.next();!D.done;D= Z.next()){D=Up(D.value,Q,z);if(D instanceof w)return D;r.push(D)}return{layoutExitNormalTriggers:K,layoutExitSkipTriggers:b,layoutExitMuteTriggers:q,layoutExitUserInputSubmittedTriggers:r,Nb:[]}}; ZF=function(Z){var Q=g.V(Z.renderingContent,f5);if(Q==null?0:Q.pings)return d7(Q.pings);Z=g.V(Z.renderingContent,vN);return(Z==null?0:Z.skipPings)?new Map([["skip",Z.skipPings]]):new Map}; iRG=function(Z,Q,z,K,b){Q=g.V(Q.renderingContent,f5);if(!Q)return new w("Invalid rendering content for DAI media layout");Z=[new bs(K),new yO(z.Bp.videoLengthSeconds),new dO(z.Bp.playerVars),new is(z.cw),new ak(z.xM),new PT(z.K$),new ln(s4(Z)),new KM(z.Bp.adVideoId),new s$(z.jl),Q.sodarExtensionData&&new G4(Q.sodarExtensionData),new cT({current:null}),new Rk({}),new FZ(yh(Q.pings))].filter(fkG);b!==void 0&&Z.push(new HT(b));return Z}; GgM=function(Z,Q,z){Z=Z.map(function(v){return xd(g.V(v.renderingContent,f5),!1)}); var K=Z.map(function(v){return v.videoLengthSeconds}),b=K.map(function(v,Y){return new Io(Y,K)}),q=Q,r=z,D=[]; Z.forEach(function(v,Y){r=Math.min(q+v.videoLengthSeconds*1E3,z);Op(v.playerVars,b[Y]);D.push({Bp:v,cw:q,xM:r,K$:Y,jl:b[Y]});q=r}); return D}; akf=function(Z,Q,z){for(var K=[],b=g.n(Z),q=b.next();!q.done;q=b.next())if(q=g.V(q.value.renderingContent,f5)){if(!jC(q))return new w("Invalid vod media renderer");K.push(oZd(q))}b=K.map(function(S){return S.Sl}); q=[];for(var r=0,D=0;D<Z.length;D++){var v=g.V(Z[D].renderingContent,f5);if(v){var Y=new Io(r,b),X=FT(K[r].playerVars,K[r].Wf,Q,z,Y);q[D]={jl:Y,adPodSkipTarget:v.adPodSkipTarget,oXI:K[r],uC:X};r++}}return q}; oZd=function(Z){var Q=zr(Z.playerVars),z=Number(Q.length_seconds);isNaN(z)&&(z=0,vM("Expected valid length seconds in player vars but got NaN"));return{playerVars:Q,Wf:Z.playerVars,Sl:z}}; s4=function(Z){switch(Z){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"}}}; yM9=function(Z){if(g.V(Z.renderingContent,zE)){var Q;return((Q=g.V(Z.renderingContent,zE))==null?void 0:Q.impressionPings)||[]}if(g.V(Z.renderingContent,ZA)){var z;return((z=g.V(Z.renderingContent,ZA))==null?void 0:z.impressionPings)||[]}if(g.V(Z.renderingContent,QQ)){var K;return((K=g.V(Z.renderingContent,QQ))==null?void 0:K.impressionPings)||[]}return[]}; WOM=function(Z,Q,z,K,b,q,r,D,v){var Y=z.pings;return Y?[Bx4(Z,q,D,b,function(X){var S=X.slotId;X=v(X);var T=z.adLayoutLoggingData,f=z.progressCommands;S=wZ(Q.j.get(),"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",S);var h={layoutId:S,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",mF:"core"},m=d7(Y),J=[new B4(Q.Y,q)],d;var G=Y==null?void 0:(d=Y.activeViewTracking)==null?void 0:d.identifier;return{layoutId:S,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",wq:m,layoutExitNormalTriggers:J,layoutExitSkipTriggers:[], layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Nb:[],mF:"core",clientMetadata:new qf([new ln(K),new FZ(yh(Y)),new eG(G),new yO(r/1E3),new us({progressCommands:f}),new BT(r/1E3)]),EA:X(h),adLayoutLoggingData:T}})]:new w("VideoAdTrackingRenderer without VideoAdTracking pings filled.",{videoAdTrackingRenderer:z})}; kgn=function(Z,Q,z,K,b,q,r,D){Z=VP4(Z,z,q,r,K,function(v){var Y=v.slotId;v=D(v);Y=wZ(Q.j.get(),"LAYOUT_TYPE_FORECASTING",Y);var X={layoutId:Y,layoutType:"LAYOUT_TYPE_FORECASTING",mF:"core"},S=new Map,T=b.impressionUrls;T&&S.set("impression",T);return{layoutId:Y,layoutType:"LAYOUT_TYPE_FORECASTING",wq:S,layoutExitNormalTriggers:[new oo(Q.Y,Y)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Nb:[],mF:"core",clientMetadata:new qf([new pM(b),new ln(z)]),EA:v(X)}}); return Z instanceof w?Z:[Z]}; xlM=function(Z,Q,z,K,b,q,r){return[uKn(Z,q,K,function(D){var v=D.slotId;D=r(D);v=wZ(Q.j.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",v);var Y={layoutId:v,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",mF:"core"};return{layoutId:v,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",wq:new Map,layoutExitNormalTriggers:[new B4(Q.Y,q)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Nb:[],mF:"core",clientMetadata:new qf([new qh(b),new ln(z)]),EA:D(Y), adLayoutLoggingData:b.adLayoutLoggingData}})]}; FOX=function(Z,Q,z,K,b,q,r,D){Z=tP4(Z,z,q,r,K,function(v,Y){var X=v.slotId;v=D(v);var S=b.contentSupportedRenderer;S?S.textOverlayAdContentRenderer?(S=wZ(Q.j.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",X),Y=bP(Q,S,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",b,z,v,qn(Q,Y,X))):S.enhancedTextOverlayAdContentRenderer?(S=wZ(Q.j.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",X),Y=bP(Q,S,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",b,z,v,qn(Q,Y,X))):S.imageOverlayAdContentRenderer?(S=wZ(Q.j.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY", X),Y=qn(Q,Y,X),Y.push(new E5(Q.Y,45E3,S)),Y=bP(Q,S,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",b,z,v,Y)):Y=new bz("InvideoOverlayAdRenderer without appropriate sub renderer"):Y=new bz("InvideoOverlayAdRenderer without contentSupportedRenderer");return Y}); return Z instanceof w?Z:[Z]}; EZx=function(Z,Q,z,K,b,q,r,D,v){var Y=Number(K.durationMilliseconds);return isNaN(Y)?new w("Expected valid duration for AdActionInterstitialRenderer."):function(X){return ePr(Q,X.slotId,z,K,Y,{impressionCommands:void 0,abandonCommands:K.abandonCommands?[{commandExecutorCommand:K.abandonCommands}]:void 0,completeCommands:K.completionCommands},K.skipPings?new Map([["skip",K.skipPings]]):new Map,r(X),function(S){return wVG(Z,S,b,function(T,f){var h=T.slotId;T=r(T);h=wZ(Q.j.get(),"LAYOUT_TYPE_ENDCAP", h);return uD(Q,h,f,z,T,"LAYOUT_TYPE_ENDCAP",[new gO(K),D],K.adLayoutLoggingData)})},v,q-1,K.adLayoutLoggingData,q)}}; lkW=function(Z,Q,z,K){if(!z.playerVars)return new w("No playerVars available in AdIntroRenderer.");var b=zr(z.playerVars);b.autoplay="1";return function(q){var r=q.slotId;q=K(q);r=wZ(Z.j.get(),"LAYOUT_TYPE_MEDIA",r);var D={layoutId:r,layoutType:"LAYOUT_TYPE_MEDIA",mF:"adapter"};return{Mn:{layoutId:r,layoutType:"LAYOUT_TYPE_MEDIA",wq:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Nb:[],mF:"adapter",clientMetadata:new qf([new CM({}), new ln(Q),new cT({current:null}),new dO(b)]),EA:q(D)},ME:[new i1(Z.Y,r,["error"])],rd:[],CP:[],Ac:[]}}}; ZMx=function(Z,Q,z,K,b,q,r,D,v,Y){Y=Y===void 0?!1:Y;var X=VQ(b);if(!fVM(b,Y))return new w("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:b});if(X<=0)return new w("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:b});var S=BEn(Z,Q,b,q,z,K,r);return S instanceof w?S:function(T){return skG(Q,T.slotId,z,X,b,kd(b),r(T),S,D,v)}}; Qkn=function(Z,Q,z,K,b,q,r,D){function v(S){return wVG(Z,S,K,Y)} function Y(S,T){var f=S.slotId;S=r(S);f=wZ(Q.j.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",f);return uD(Q,f,T,z,S,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new Y0(b),q],b.adLayoutLoggingData)} if(!cKM(b))return new w("Received invalid SurveyTextInterstitialRenderer.",{SurveyTextInterstitialRenderer:b});var X=b.timeoutSeconds*1E3;return function(S){var T=S.slotId,f={impressionCommands:b.impressionCommands,completeCommands:b.timeoutCommands,skipCommands:b.dismissCommands};S=r(S);T=r_(Q,T,z,X,f,new Map,S,v,void 0,AQ(Q,z,b.layoutId,"createSubLayoutVodMediaBreakLayoutForSurveyInterstitial"));f=new fM(T.Pc);S=new Z3(D);return{Mn:{layoutId:T.layoutId,layoutType:T.layoutType,wq:T.wq,layoutExitNormalTriggers:[], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Nb:[],mF:T.mF,clientMetadata:new qf([].concat(g.I(T.hc),[f,S])),EA:T.EA,adLayoutLoggingData:T.adLayoutLoggingData},ME:[],rd:T.layoutExitMuteTriggers,CP:T.layoutExitUserInputSubmittedTriggers,Ac:T.Nb,Cf:T.Cf}}}; Kgu=function(Z,Q,z,K,b,q,r,D,v,Y,X,S,T,f,h,m){Z=TQ(Z,"SLOT_TYPE_PLAYER_BYTES");K=qzd(Q,r,K,b,Z,Y,X);if(K instanceof w)return K;var J;r=(J=rZ(K.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:J.layoutId;if(!r)return new w("Invalid adNotify layout");Q=zIr(r,Q,z,b,q,v,D,Y,S,T,f,h,m);return Q instanceof w?Q:[K].concat(g.I(Q))}; zIr=function(Z,Q,z,K,b,q,r,D,v,Y,X,S,T){z=bMf(Q,z,K,q,r,D,v,Y,X,S,T);q$W(q)?(K=rg4(Q,Z),Z=TQ(Q.j.get(),"SLOT_TYPE_IN_PLAYER"),q=wZ(Q.j.get(),"LAYOUT_TYPE_SURVEY",Z),D=jm(Q,K,D),Q=[].concat(g.I(D.slotExpirationTriggers),[new y1(Q.Y,q)]),Z=z({slotId:D.slotId,slotType:D.slotType,slotPhysicalPosition:D.slotPhysicalPosition,slotEntryTrigger:D.slotEntryTrigger,slotFulfillmentTriggers:D.slotFulfillmentTriggers,slotExpirationTriggers:Q,mF:D.mF},{slotId:Z,layoutId:q}),b=Z instanceof w?Z:{O0:Object.assign({}, D,{slotExpirationTriggers:Q,clientMetadata:new qf([new Mh(Z.layout)]),adSlotLoggingData:b}),DG:Z.DG}):b=Dl4(Q,Z,D,b,z);return b instanceof w?b:[].concat(g.I(b.DG),[b.O0])}; jkd=function(Z,Q,z,K,b,q,r,D,v,Y,X,S,T,f){Q=bMf(Z,Q,z,b,q,r,v,Y,X,S,T,f);q$W(b)?(b=Ag0(Z,z,r,D),b instanceof w?Z=b:(D=TQ(Z.j.get(),"SLOT_TYPE_IN_PLAYER"),v=wZ(Z.j.get(),"LAYOUT_TYPE_SURVEY",D),r=[].concat(g.I(b.slotExpirationTriggers),[new y1(Z.Y,v)]),D=Q({slotId:b.slotId,slotType:b.slotType,slotPhysicalPosition:b.slotPhysicalPosition,mF:b.mF,slotEntryTrigger:b.slotEntryTrigger,slotFulfillmentTriggers:b.slotFulfillmentTriggers,slotExpirationTriggers:r},{slotId:D,layoutId:v}),Z=D instanceof w?D:{O0:{slotId:b.slotId, slotType:b.slotType,slotPhysicalPosition:b.slotPhysicalPosition,slotEntryTrigger:DF(Z,z,b.slotId,b.slotEntryTrigger),slotFulfillmentTriggers:vx(Z,z,b.slotId,b.slotFulfillmentTriggers),slotExpirationTriggers:r,mF:b.mF,clientMetadata:new qf([new E$(g_(z)),new Mh(D.layout),new si({u_:Z.u_(z)})]),adSlotLoggingData:K},DG:D.DG})):Z=vZM(Z,z,r,D,K,v.fd,Q);return Z instanceof w?Z:Z.DG.concat(Z.O0)}; q$W=function(Z){Z=g.n(Z);for(var Q=Z.next();!Q.done;Q=Z.next())if(g.V(Q.value,L5))return!0;return!1}; bMf=function(Z,Q,z,K,b,q,r,D,v,Y,X,S){return function(T,f){if(Cg(X)&&pg(X))a:{var h=Dhu(K,z,X);if(h instanceof w)f=h;else{for(var m=0,J=[],d=[],G=[],R=[],U=[],B=[],e=new mg({current:null}),F=new z4({current:null}),KX=!1,rf=[],sG=0,k=[],l=0;l<K.length;l++){var c=K[l],u=g.V(c,f5);if(u){u=tu(u,z,X);if(u instanceof bz){f=new w(u);break a}var o0=new Io(sG,h),nz=FT(u.playerVars,u.Wf,r,Y,o0);sG++;k[l]={renderer:c,data:u,jl:o0,uC:nz}}}sG=-1;for(h=0;h<K.length;h++)if(l=K[h],c=g.V(l,hu)){l=lkW(Q,z,c,D);if(l instanceof w){f=l;break a}l=l(T);J.push(l.Mn);d=[].concat(g.I(l.ME),g.I(d));G=[].concat(g.I(l.rd),g.I(G));l.Cf&&(rf=[l.Cf].concat(g.I(rf)))}else if(g.V(l,f5))c=k[h],sG=c.data,l=c.jl,c=c.uC,u=k[h+1],o0=void 0,u&&(o0=u.uC),l=v0D(Q,sG.layoutId,sG.Ny,z,c,sG.Sl,q,l,D(T),F,v.get(sG.Ny.externalVideoId),o0,S),m++,J.push(l.Mn),d=[].concat(g.I(l.ME),g.I(d)),G=[].concat(g.I(l.rd),g.I(G)),KX||(B.push(F),KX=!0),sG=(sG=sG.Ny.adPodSkipTarget)&&sG>0?sG:-1;else if(c=g.V(l,vN)){l=EZx(Z,Q,z,c,q,m,D,F,sG);if(l instanceof w){f= l;break a}l=l(T);J.push(l.Mn);d=[].concat(g.I(l.ME),g.I(d));G=[].concat(g.I(l.rd),g.I(G));l.Cf&&(rf=[l.Cf].concat(g.I(rf)))}else if(c=g.V(l,L5)){if(f===void 0){f=new w("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:c});break a}l=ZMx(Z,Q,z,q,c,e,D,f,m,e1(X,"supports_multi_step_on_desktop"));if(l instanceof w){f=l;break a}l=l(T);J.push(l.Mn);l.Cf&&rf.push(l.Cf);d=[].concat(g.I(l.ME),g.I(d));G=[].concat(g.I(l.rd),g.I(G));R=[].concat(g.I(l.CP),g.I(R)); U=[].concat(g.I(l.Ac),g.I(U));B=[e].concat(g.I(B))}else if(l=g.V(l,n5)){l=Qkn(Z,Q,z,q,l,e,D,m);if(l instanceof w){f=l;break a}l=l(T);J.push(l.Mn);l.Cf&&rf.push(l.Cf);G=[].concat(g.I(l.rd),g.I(G))}else{f=new w("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}f={Fv:J,layoutExitSkipTriggers:d,layoutExitUserInputSubmittedTriggers:R,Nb:U,layoutExitMuteTriggers:G,hc:B,DG:rf}}}else a:if(m=Dhu(K,z,X),m instanceof w)f=m;else{J=0;d=[];G=[];R=[];U=[];B=[];e=[];F=new mg({current:null});KX=new z4({current:null}); rf=!1;k=[];sG=-1;h=g.n(K);for(l=h.next();!l.done;l=h.next())if(l=l.value,g.V(l,hu)){l=lkW(Q,z,g.V(l,hu),D);if(l instanceof w){f=l;break a}l=l(T);d.push(l.Mn);G=[].concat(g.I(l.ME),g.I(G));R=[].concat(g.I(l.rd),g.I(R));l.Cf&&(k=[l.Cf].concat(g.I(k)))}else if(g.V(l,f5)){sG=tu(g.V(l,f5),z,X);if(sG instanceof bz){f=new w(sG);break a}l=new Io(J,m);l=v0D(Q,sG.layoutId,sG.Ny,z,FT(sG.playerVars,sG.Wf,r,Y,l),sG.Sl,q,l,D(T),KX,v.get(sG.Ny.externalVideoId),void 0,S);J++;d.push(l.Mn);G=[].concat(g.I(l.ME),g.I(G)); R=[].concat(g.I(l.rd),g.I(R));rf||(e.push(KX),rf=!0);sG=(sG=sG.Ny.adPodSkipTarget)&&sG>0?sG:-1}else if(g.V(l,vN)){l=EZx(Z,Q,z,g.V(l,vN),q,J,D,KX,sG);if(l instanceof w){f=l;break a}l=l(T);d.push(l.Mn);G=[].concat(g.I(l.ME),g.I(G));R=[].concat(g.I(l.rd),g.I(R));l.Cf&&(k=[l.Cf].concat(g.I(k)))}else if(g.V(l,L5)){if(f===void 0){f=new w("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.V(l,L5)});break a}l=ZMx(Z,Q,z,q,g.V(l,L5),F,D,f,J,e1(X,"supports_multi_step_on_desktop")); if(l instanceof w){f=l;break a}l=l(T);d.push(l.Mn);l.Cf&&k.push(l.Cf);G=[].concat(g.I(l.ME),g.I(G));R=[].concat(g.I(l.rd),g.I(R));U=[].concat(g.I(l.CP),g.I(U));B=[].concat(g.I(l.Ac),g.I(B));e=[F].concat(g.I(e))}else if(g.V(l,n5)){l=Qkn(Z,Q,z,q,g.V(l,n5),F,D,J);if(l instanceof w){f=l;break a}l=l(T);d.push(l.Mn);l.Cf&&k.push(l.Cf);R=[].concat(g.I(l.rd),g.I(R))}else{f=new w("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}f={Fv:d,layoutExitSkipTriggers:G,layoutExitUserInputSubmittedTriggers:U, Nb:B,layoutExitMuteTriggers:R,hc:e,DG:k}}f instanceof w?T=f:(B=T.slotId,m=f.Fv,J=f.layoutExitSkipTriggers,d=f.layoutExitMuteTriggers,G=f.layoutExitUserInputSubmittedTriggers,R=f.hc,T=D(T),U=b?b.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",B=b?b.layoutId:wZ(Q.j.get(),U,B),e={layoutId:B,layoutType:U,mF:"core"},T={layout:{layoutId:B,layoutType:U,wq:new Map,layoutExitNormalTriggers:[new oo(Q.Y,B)],layoutExitSkipTriggers:J,layoutExitMuteTriggers:d,layoutExitUserInputSubmittedTriggers:G,Nb:[],mF:"core", clientMetadata:new qf([new Ik(m)].concat(g.I(R))),EA:T(e)},DG:f.DG});return T}}; Dhu=function(Z,Q,z){var K=[];Z=g.n(Z);for(var b=Z.next();!b.done;b=Z.next())if(b=b.value,g.V(b,f5)){b=tu(g.V(b,f5),Q,z);if(b instanceof bz)return new w(b);K.push(b.Sl)}return K}; Y$0=function(Z,Q,z,K,b,q,r,D){if(!fVM(z,D===void 0?!1:D))return new w("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:z});var v=VQ(z);if(v<=0)return new w("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:z});var Y=new mg({current:null}),X=BEn(Z,Q,z,Y,K,q,r);return g0d(Z,K,q,v,b,function(S,T){var f=S.slotId,h=kd(z);S=r(S);var m,J=(m=AQ(Q,K,z.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?m: wZ(Q.j.get(),"LAYOUT_TYPE_MEDIA_BREAK",f);f={layoutId:J,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",mF:"core"};m=X(J,T);var d=rZ(m.clientMetadata,"metadata_type_fulfilled_layout");d||vM("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");h=[new ln(K),new WT(v),new us(h),Y];d&&h.push(new hg(d.layoutType));return{Odu:{layoutId:J,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",wq:new Map,layoutExitNormalTriggers:[new oo(Q.Y,J)],layoutExitSkipTriggers:[new V1(Q.Y, T.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new wA(Q.Y,T.layoutId)],Nb:[],mF:"core",clientMetadata:new qf(h),EA:S(f)},vhf:m}})}; XTW=function(Z){if(!njD(Z))return!1;var Q=g.V(Z.adVideoStart,Yg);return Q?g.V(Z.linearAd,f5)&&r6(Q)?!0:(vM("Invalid Sandwich with notify"),!1):!1}; S$d=function(Z){if(Z.linearAds==null)return!1;Z=g.V(Z.adStart,Yg);return Z?r6(Z)?!0:(vM("Invalid LASR with notify"),!1):!1}; $hd=function(Z){if(!L8W(Z))return!1;Z=g.V(Z.adStart,Yg);return Z?r6(Z)?!0:(vM("Invalid LASR with notify"),!1):!1}; XD=function(Z,Q,z,K,b,q,r,D,v,Y){this.W=Z;this.j=Q;this.Y=z;this.H7=K;this.Ky=b;this.S=q;this.LN=r;this.xi=D;this.hj=v;this.loadPolicy=Y===void 0?1:Y}; yK0=function(Z,Q,z,K,b,q,r,D,v,Y){var X=[];if(Q.length===0&&K.length===0&&z.length===0)return X;Q=Q.filter(Au);var S=z.filter(SPM),T=K.filter(Au),f=new Map,h=TxX(Q),m=z.some(function(u){var o0;return(u==null?void 0:(o0=u.adSlotMetadata)==null?void 0:o0.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),J=z.some(function(u){var o0; return(u==null?void 0:(o0=u.adSlotMetadata)==null?void 0:o0.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),d=z.some(function(u){var o0; return(u==null?void 0:(o0=u.adSlotMetadata)==null?void 0:o0.slotType)==="SLOT_TYPE_IN_PLAYER"}),G=z.some(function(u){var o0,nz; return(u==null?void 0:(o0=u.adSlotMetadata)==null?void 0:o0.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(u==null?void 0:(nz=u.adSlotMetadata)==null?void 0:nz.slotType)==="SLOT_TYPE_ABOVE_FEED"}); z=z.some(function(u){var o0;return(u==null?void 0:(o0=u.adSlotMetadata)==null?void 0:o0.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"}); if(m||J||d||G||z)Y=JMW(S,Q,D,b,h,Z.Ky.get(),Z.loadPolicy,f,Z.H7.get(),Z.W.get(),d,r,v,Y),Y instanceof w?vM(Y,void 0,void 0,{contentCpn:b}):X.push.apply(X,g.I(Y));Y=g.n(Q);for(z=Y.next();!z.done;z=Y.next())z=z.value,J=TOG(Z,f,z,b,q,r,m,D,h,v,S),J instanceof w?vM(J,void 0,void 0,{renderer:z.renderer,config:z.config.adPlacementConfig,kind:z.config.adPlacementConfig.kind,contentCpn:b,daiEnabled:r}):X.push.apply(X,g.I(J));f3G(Z.H7.get())||(q=hIu(Z,T,b,D,h,f),X.push.apply(X,g.I(q)));if(Z.S===null||r&&!D.ac){var R, U,B;Z=D.fd&&Q.length===1&&((R=Q[0].config)==null?void 0:(U=R.adPlacementConfig)==null?void 0:U.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((B=Q[0].renderer)==null?void 0:B.adBreakServiceRenderer);if(!X.length&&!Z){var e,F,KX,rf;vM("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":Q.length,contentCpn:b,"first APR kind":(e=Q[0])==null?void 0:(F=e.config)==null?void 0:(KX=F.adPlacementConfig)==null?void 0:KX.kind,renderer:(rf=Q[0])==null?void 0: rf.renderer})}return X}R=K.filter(Au);X.push.apply(X,g.I(UHM(f,R,Z.j.get(),Z.S,b,m)));if(!X.length){var sG,k,l,c;vM("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":Q.length,contentCpn:b,daiEnabled:r.toString(),"first APR kind":(sG=Q[0])==null?void 0:(k=sG.config)==null?void 0:(l=k.adPlacementConfig)==null?void 0:l.kind,renderer:(c=Q[0])==null?void 0:c.renderer})}return X}; hIu=function(Z,Q,z,K,b,q){function r(T){return YH(Z.Ky.get(),T)} var D=[];Q=g.n(Q);for(var v=Q.next();!v.done;v=Q.next()){v=v.value;var Y=v.renderer,X=Y.sandwichedLinearAdRenderer,S=Y.linearAdSequenceRenderer;X&&XTW(X)?(vM("Found AdNotify with SandwichedLinearAdRenderer"),S=g.V(X.adVideoStart,Yg),X=g.V(X.linearAd,f5),oU(q,Y,v.config.adPlacementConfig.kind),Y=void 0,S=rMD((Y=S)==null?void 0:Y.layout.layoutId,Z.j.get(),Z.Y.get(),v.config.adPlacementConfig,v.adSlotLoggingData,X,z,K,r,b,Z.loadPolicy,Z.H7.get(),Z.Ky.get()),S instanceof w?vM(S):D.push.apply(D,g.I(S))): S&&(!S.adLayoutMetadata&&S$d(S)||S.adLayoutMetadata&&$hd(S))&&(vM("Found AdNotify with LinearAdSequenceRenderer"),oU(q,Y,v.config.adPlacementConfig.kind),Y=void 0,X=zIr((Y=g.V(S.adStart,Yg))==null?void 0:Y.layout.layoutId,Z.j.get(),Z.Y.get(),v.config.adPlacementConfig,v.adSlotLoggingData,S.linearAds,sp(S.adLayoutMetadata)?S.adLayoutMetadata:void 0,z,K,r,b,Z.loadPolicy,Z.H7.get()),X instanceof w?vM(X):D.push.apply(D,g.I(X)))}return D}; TOG=function(Z,Q,z,K,b,q,r,D,v,Y,X){function S(d){return YH(Z.Ky.get(),d)} var T=z.renderer,f=z.config.adPlacementConfig,h=f.kind,m=z.adSlotLoggingData,J=D.ac&&h==="AD_PLACEMENT_KIND_START";J=q&&!J;if(T.adsEngagementPanelRenderer!=null)return Wi(Q,z.elementId,h,T.adsEngagementPanelRenderer.isContentVideoEngagementPanel,T.adsEngagementPanelRenderer.adVideoId,T.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,f,m,function(d,G,R,U){var B=Z.Y.get(),e=d.slotId,F=T.adsEngagementPanelRenderer;d=YH(Z.Ky.get(),d);return Sm(B,e,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new WV(F),G,R,F.impressionPings,d,T.adsEngagementPanelRenderer.adLayoutLoggingData,U)}),[]; if(T.adsEngagementPanelLayoutViewModel)return Wi(Q,z.elementId,h,T.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,T.adsEngagementPanelLayoutViewModel.adVideoId,T.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,f,m,function(d,G,R,U){var B=Z.Y.get(),e=d.slotId,F=T.adsEngagementPanelLayoutViewModel;d=YH(Z.Ky.get(),d);return $g(B,e,"LAYOUT_TYPE_PANEL",new Vt(F),G,R,d,T.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,U)}),[]; if(T.actionCompanionAdRenderer!=null){if(T.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return R$0(Z.j.get(),Z.S,Z.Y.get(),T.actionCompanionAdRenderer,f,m,K,S);Wi(Q,z.elementId,h,T.actionCompanionAdRenderer.isContentVideoCompanion,T.actionCompanionAdRenderer.adVideoId,T.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,f,m,function(d,G,R,U){var B=Z.Y.get(),e=d.slotId,F=T.actionCompanionAdRenderer;d=YH(Z.Ky.get(),d);return Sm(B,e,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new oh(F),G,R,F.impressionPings,d,T.actionCompanionAdRenderer.adLayoutLoggingData,U)})}else if(T.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(T.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return C9u(Z.j.get(),Z.S,Z.Y.get(),T.topBannerImageTextIconButtonedLayoutViewModel,f,m,K,S); Wi(Q,z.elementId,h,T.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,T.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,T.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,f,m,function(d,G,R,U){var B=Z.Y.get(),e=d.slotId,F=T.topBannerImageTextIconButtonedLayoutViewModel;d=YH(Z.Ky.get(),d);return $g(B,e,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new BV(F),G,R,d,T.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,U)})}else if(T.imageCompanionAdRenderer)Wi(Q, z.elementId,h,T.imageCompanionAdRenderer.isContentVideoCompanion,T.imageCompanionAdRenderer.adVideoId,T.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,f,m,function(d,G,R,U){var B=Z.Y.get(),e=d.slotId,F=T.imageCompanionAdRenderer; d=YH(Z.Ky.get(),d);return Sm(B,e,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new tM(F),G,R,F.impressionPings,d,T.imageCompanionAdRenderer.adLayoutLoggingData,U)}); else if(T.bannerImageLayoutViewModel)Wi(Q,z.elementId,h,T.bannerImageLayoutViewModel.isContentVideoCompanion,T.bannerImageLayoutViewModel.adVideoId,T.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,f,m,function(d,G,R,U){var B=Z.Y.get(),e=d.slotId,F=T.bannerImageLayoutViewModel;d=YH(Z.Ky.get(),d);return $g(B,e,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new FK(F),G,R,d,T.bannerImageLayoutViewModel.adLayoutLoggingData,U)}); else if(T.shoppingCompanionCarouselRenderer)Wi(Q,z.elementId,h,T.shoppingCompanionCarouselRenderer.isContentVideoCompanion,T.shoppingCompanionCarouselRenderer.adVideoId,T.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,f,m,function(d,G,R,U){var B=Z.Y.get(),e=d.slotId,F=T.shoppingCompanionCarouselRenderer;d=YH(Z.Ky.get(),d);return Sm(B,e,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new eP(F),G,R,F.impressionPings,d,T.shoppingCompanionCarouselRenderer.adLayoutLoggingData,U)}); else if(T.adBreakServiceRenderer){if(!aVM(z))return[];if(h==="AD_PLACEMENT_KIND_PAUSE")return ier(Z.j.get(),f,m,z.renderer.adBreakServiceRenderer,K);if(h!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&h!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return G0x(Z.j.get(),f,m,z.renderer.adBreakServiceRenderer,K,b,q);D.fd||vM("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:h,adPlacementConfig:f,daiEnabledForContentVideo:String(q),isServedFromLiveInfra:String(D.fd),clientPlaybackNonce:D.clientPlaybackNonce}); if(h==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!Z.LN)return new w("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!Z.hj)return new w("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");Z.hj.K_({adPlacementRenderer:z,contentCpn:K,x8:b});b=Z.LN.get().getCurrentTimeSec(1,!1);return LgG(Z.j.get(),z.renderer.adBreakServiceRenderer,f,b,K,m,q)}if(!Z.xi)return new w("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface"); Z.xi.K_({adPlacementRenderer:z,contentCpn:K,x8:b})}else{if(T.clientForecastingAdRenderer)return kgn(Z.j.get(),Z.Y.get(),f,m,T.clientForecastingAdRenderer,K,b,S);if(T.invideoOverlayAdRenderer)return FOX(Z.j.get(),Z.Y.get(),f,m,T.invideoOverlayAdRenderer,K,b,S);if(T.instreamAdPlayerOverlayRenderer)return xlM(Z.j.get(),Z.Y.get(),f,m,T.instreamAdPlayerOverlayRenderer,K,S);if((T.linearAdSequenceRenderer||T.instreamVideoAdRenderer)&&J)return ZRu(Z.j.get(),Z.Y.get(),z,K,S,Y,!Z.H7.get().J.N().V("html5_override_ad_video_length_killswitch")); if(T.linearAdSequenceRenderer&&!J){if(r)return[];oU(Q,T,h);if(T.linearAdSequenceRenderer.adLayoutMetadata){if(!L8W(T.linearAdSequenceRenderer))return new w("Received invalid LinearAdSequenceRenderer.")}else if(T.linearAdSequenceRenderer.linearAds==null)return new w("Received invalid LinearAdSequenceRenderer.");if(g.V(T.linearAdSequenceRenderer.adStart,Yg)){vM("Found AdNotify in LinearAdSequenceRenderer");z=g.V(T.linearAdSequenceRenderer.adStart,Yg);if(!Qvn(z))return new w("Invalid AdMessageRenderer."); q=T.linearAdSequenceRenderer.linearAds;return Kgu(Z.W.get(),Z.j.get(),Z.Y.get(),Z.Ky.get(),f,m,z,sp(T.linearAdSequenceRenderer.adLayoutMetadata)?T.linearAdSequenceRenderer.adLayoutMetadata:void 0,q,K,b,D,S,v,Z.loadPolicy,Z.H7.get())}return jkd(Z.j.get(),Z.Y.get(),f,m,T.linearAdSequenceRenderer.linearAds,sp(T.linearAdSequenceRenderer.adLayoutMetadata)?T.linearAdSequenceRenderer.adLayoutMetadata:void 0,K,b,D,S,v,Z.loadPolicy,Z.H7.get(),X)}if(!T.remoteSlotsRenderer||q){if(T.instreamVideoAdRenderer&& !J){if(r)return[];oU(Q,T,h);return gZf(Z.j.get(),Z.Y.get(),f,m,T.instreamVideoAdRenderer,K,b,D,S,v,Z.loadPolicy,Z.H7.get(),Z.Ky.get(),X)}if(T.instreamSurveyAdRenderer)return Y$0(Z.j.get(),Z.Y.get(),T.instreamSurveyAdRenderer,f,m,K,S,e1(Z.H7.get(),"supports_multi_step_on_desktop"));if(T.sandwichedLinearAdRenderer!=null)return njD(T.sandwichedLinearAdRenderer)?g.V(T.sandwichedLinearAdRenderer.adVideoStart,Yg)?(vM("Found AdNotify in SandwichedLinearAdRenderer"),z=g.V(T.sandwichedLinearAdRenderer.adVideoStart, Yg),Qvn(z)?(q=g.V(T.sandwichedLinearAdRenderer.linearAd,f5))?AMu(z,q,f,Z.W.get(),Z.j.get(),Z.Y.get(),Z.Ky.get(),m,K,b,D,S,v,Z.loadPolicy,Z.H7.get()):new w("Missing IVAR from Sandwich"):new w("Invalid AdMessageRenderer.")):jkd(Z.j.get(),Z.Y.get(),f,m,[T.sandwichedLinearAdRenderer.adVideoStart,T.sandwichedLinearAdRenderer.linearAd],void 0,K,b,D,S,v,Z.loadPolicy,Z.H7.get()):new w("Received invalid SandwichedLinearAdRenderer.");if(T.videoAdTrackingRenderer!=null)return D=e1(Z.H7.get(),"enable_h5_shorts_ad_terminal_events")&& D.aF,WOM(Z.j.get(),Z.Y.get(),T.videoAdTrackingRenderer,f,m,K,b,D,S)}}return[]}; Tq=function(Z,Q,z,K,b,q,r,D){g.O.call(this);var v=this;this.j=Z;this.S=Q;this.jx=K;this.LN=b;this.H7=q;this.v7=r;this.LL=D;this.Y=null;z.get().addListener(this);this.addOnDisposeCallback(function(){z.FI()||z.get().removeListener(v)}); K.get().addListener(this);this.addOnDisposeCallback(function(){K.FI()||K.get().removeListener(v)})}; cgd=function(Z,Q,z){var K=Z.LN.get().getCurrentTimeSec(1,!1);Z.H7.get().J.N().aT()&&zf(Z.v7.get(),"sdai","onopp.1;evt."+z.event+";start."+z.startSecs.toFixed(3)+";d."+z.Nn.toFixed(3));$E(Z.j.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var b=Z.S.get(),q=Q.adPlacementRenderer.renderer.adBreakServiceRenderer,r=Q.contentCpn,D=Q.adPlacementRenderer.adSlotLoggingData,v=fd(Z.H7.get()),Y=Z.v7;if(b.H7.get().J.N().experiments.XI("enable_smearing_expansion_dai")){var X=g.Xp(b.H7.get().J.N().experiments, "max_prefetch_window_sec_for_livestream_optimization");var S=g.Xp(b.H7.get().J.N().experiments,"min_prefetch_offset_sec_for_livestream_optimization");v={B2:n0u(z),gN:!1,cueProcessedMs:K*1E3};var T=z.startSecs+z.Nn;if(K===0)v.z_=new IR(0,T*1E3);else{S=z.startSecs-S;var f=S-K;v.z_=f<=0?new IR(S*1E3,T*1E3):new IR(Math.floor(K+Math.random()*Math.min(f,X))*1E3,T*1E3)}X=v}else X={B2:n0u(z),gN:!1},T=z.startSecs+z.Nn,z.startSecs<=K?v=new IR((z.startSecs-4)*1E3,T*1E3):(S=Math.max(0,z.startSecs-K-10),v=new IR(Math.floor(K+ Math.random()*(v?K===0?0:Math.min(S,5):S))*1E3,T*1E3)),X.z_=v;b=Mb(b,q,r,X,D,[new Jg(z)]);Y.get().J.v_(X.z_.start/1E3-K,z.startSecs-K);return[b]})}; hQ=function(Z){var Q,z=(Q=rZ(Z.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:Q.current;if(!z)return null;Q=rZ(Z.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var K=Z.layoutId,b=rZ(Z.clientMetadata,"metadata_type_content_cpn"),q=rZ(Z.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),r=rZ(Z.clientMetadata,"metadata_type_player_overlay_layout_renderer"),D=rZ(Z.clientMetadata,"metadata_type_player_underlay_renderer"),v=rZ(Z.clientMetadata, "metadata_type_ad_placement_config"),Y=rZ(Z.clientMetadata,"metadata_type_video_length_seconds");var X=QF(Z.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?rZ(Z.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):QF(Z.clientMetadata,"metadata_type_layout_enter_ms")&&QF(Z.clientMetadata,"metadata_type_layout_exit_ms")?(rZ(Z.clientMetadata,"metadata_type_layout_exit_ms")-rZ(Z.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{kA:K,contentCpn:b,zr:z,QT:Q,instreamAdPlayerOverlayRenderer:q, playerOverlayLayoutRenderer:r,instreamAdPlayerUnderlayRenderer:D,adPlacementConfig:v,videoLengthSeconds:Y,Bj:X,inPlayerLayoutId:rZ(Z.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:rZ(Z.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; I3f=function(Z,Q){return mhG(Z,Q)}; JgG=function(Z,Q){Q=mhG(Z,Q);if(!Q)return null;var z;Q.Bj=(z=rZ(Z.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:z.adBreakRemainingLengthSeconds;return Q}; mhG=function(Z,Q){var z,K=(z=rZ(Z.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:z.current;if(!K)return null;z=Wcf(Z,Q);return{JQ:BV4(Z,Q),adPlacementConfig:rZ(Z.clientMetadata,"metadata_type_ad_placement_config"),bD:z,contentCpn:rZ(Z.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:rZ(Z.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:rZ(Z.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:rZ(Z.clientMetadata, "metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,Bj:void 0,zr:K,kA:Z.layoutId,videoLengthSeconds:rZ(Z.clientMetadata,"metadata_type_video_length_seconds")}}; Ld=function(Z,Q,z,K,b,q,r,D,v){g.O.call(this);this.W=Z;this.K=Q;this.L=z;this.S=K;this.Y=b;this.j=q;this.Ky=r;this.H7=D;this.ou=v;this.Px=!0}; ygG=function(Z,Q,z){return SzM(Z.Y.get(),Q.contentCpn,Q.kA,function(K){return $lx(Z.j.get(),K.slotId,z,Q.adPlacementConfig,Q.kA,YH(Z.Ky.get(),K))})}; nd=function(Z,Q,z,K,b,q,r,D){g.O.call(this);this.j=Z;this.Y=Q;this.S=z;this.H7=K;this.W=b;this.ou=q;this.LN=r;this.t4=D}; cx=function(Z){g.O.call(this);this.Y=Z}; $E=function(Z,Q,z,K){Z.Y().Gg(Q,K);z=z();Z=Z.Y();Z.ZI.n3("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",Q,K,z);Q=g.n(z);for(z=Q.next();!z.done;z=Q.next())a:{K=Z;z=z.value;K.ZI.OR("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",z);K.ZI.OR("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",z);try{var b=K.Y;if(g.IE(z.slotId))throw new w("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(ch(b,z))throw new w("Duplicate registration for slot.",{slotId:z.slotId,slotEntryTriggerType:z.slotEntryTrigger.triggerType}, "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!b.a6.i_.has(z.slotType))throw new w("No fulfillment adapter factory registered for slot of type: "+z.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!b.a6.Kz.has(z.slotType))throw new w("No SlotAdapterFactory registered for slot of type: "+z.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");Oi(b,"TRIGGER_CATEGORY_SLOT_ENTRY",z.slotEntryTrigger?[z.slotEntryTrigger]:[]);Oi(b,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", z.slotFulfillmentTriggers);Oi(b,"TRIGGER_CATEGORY_SLOT_EXPIRATION",z.slotExpirationTriggers);var q=K.Y,r=z.slotType+"_"+z.slotPhysicalPosition,D=Cw(q,r);if(ch(q,z))throw new w("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");D.set(z.slotId,new HOf(z));q.Y.set(r,D)}catch(KX){KX instanceof w&&KX.eQ?(K.ZI.vP("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",KX.eQ,z),vM(KX,z,void 0,void 0,KX.Vv)):(K.ZI.vP("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", z),vM(KX,z));break a}ch(K.Y,z).K=!0;try{var v=K.Y,Y=ch(v,z),X=z.slotEntryTrigger,S=v.a6.L$.get(X.triggerType);S&&(S.Hk("TRIGGER_CATEGORY_SLOT_ENTRY",X,z,null),Y.P7.set(X.triggerId,S));for(var T=g.n(z.slotFulfillmentTriggers),f=T.next();!f.done;f=T.next()){var h=f.value,m=v.a6.L$.get(h.triggerType);m&&(m.Hk("TRIGGER_CATEGORY_SLOT_FULFILLMENT",h,z,null),Y.jJ.set(h.triggerId,m))}for(var J=g.n(z.slotExpirationTriggers),d=J.next();!d.done;d=J.next()){var G=d.value,R=v.a6.L$.get(G.triggerType);R&&(R.Hk("TRIGGER_CATEGORY_SLOT_EXPIRATION", G,z,null),Y.U.set(G.triggerId,R))}var U=v.a6.i_.get(z.slotType).get().build(v.S,z);Y.T=U;var B=v.a6.Kz.get(z.slotType).get().build(v.L,z);B.init();Y.j=B}catch(KX){KX instanceof w&&KX.eQ?(K.ZI.vP("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",KX.eQ,z),vM(KX,z,void 0,void 0,KX.Vv)):(K.ZI.vP("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",z),vM(KX,z));hJ(K,z,!0);break a}K.ZI.OR("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",z);K.Y.AN(z);for(var e=g.n(K.j),F=e.next();!F.done;F= e.next())F.value.AN(z);JJ(K,z)}}; ml=function(Z,Q,z,K,b){g.O.call(this);var q=this;this.j=Z;this.S=Q;this.mZ=z;this.context=b;this.Y=new Map;K.get().addListener(this);this.addOnDisposeCallback(function(){K.FI()||K.get().removeListener(q)})}; IVG=function(Z,Q){var z=0x8000000000000;var K=0;for(var b=g.n(Q.slotFulfillmentTriggers),q=b.next();!q.done;q=b.next())q=q.value,q instanceof H4?(z=Math.min(z,q.Y.start),K=Math.max(K,q.Y.end)):vM("Found unexpected fulfillment trigger for throttled slot.",Q,null,{fulfillmentTrigger:q});K=new IR(z,K);z="throttledadcuerange:"+Q.slotId;Z.Y.set(z,Q);Z.mZ.get().addCueRange(z,K.start,K.end,!1,Z);J7(Z.context.H7.get())&&(Q=K.start,K=K.end,b={},Z.context.gV.Sf("tcrr",(b.cid=z,b.sm=Q,b.em=K,b)))}; Id=function(){g.O.apply(this,arguments);this.Px=!0;this.LM=new Map;this.Y=new Map}; JQ=function(Z,Q){Z=g.n(Z.LM.values());for(var z=Z.next();!z.done;z=Z.next())if(z.value.layoutId===Q)return!0;return!1}; yG=function(Z,Q){Z=g.n(Z.Y.values());for(var z=Z.next();!z.done;z=Z.next()){z=g.n(z.value);for(var K=z.next();!K.done;K=z.next())if(K=K.value,K.layoutId===Q)return K}vM("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.IE(Q)),layoutId:Q})}; dhG=function(){this.Y=new Map}; NOW=function(Z,Q){this.callback=Z;this.slot=Q}; d_=function(){}; G49=function(Z,Q,z){this.callback=Z;this.slot=Q;this.LN=z}; iMu=function(Z,Q,z){this.callback=Z;this.slot=Q;this.LN=z;this.j=!1;this.Y=0}; a3G=function(Z,Q,z){this.callback=Z;this.slot=Q;this.LN=z}; Nn=function(Z){this.LN=Z}; Gq=function(Z){g.O.call(this);this.uW=Z;this.kq=new Map}; iP=function(Z,Q){for(var z=[],K=g.n(Z.kq.values()),b=K.next();!b.done;b=K.next()){b=b.value;var q=b.trigger;q instanceof wA&&q.triggeringLayoutId===Q&&z.push(b)}z.length?a$(Z.uW(),z):vM("Survey is submitted but no registered triggers can be activated.")}; ad=function(Z,Q,z){Gq.call(this,Z);var K=this;this.H7=z;Q.get().addListener(this);this.addOnDisposeCallback(function(){Q.FI()||Q.get().removeListener(K)})}; Px=function(Z){g.O.call(this);this.Y=Z;this.Px=!0;this.kq=new Map;this.L=new Set;this.S=new Set;this.W=new Set;this.K=new Set;this.j=new Set}; Rd=function(Z){g.O.call(this);this.Y=Z;this.kq=new Map}; Cd=function(Z,Q){for(var z=[],K=g.n(Z.kq.values()),b=K.next();!b.done;b=K.next())b=b.value,b.trigger.Y===Q.layoutId&&z.push(b);z.length&&a$(Z.Y(),z)}; pd=function(Z,Q,z){g.O.call(this);var K=this;this.Y=Z;this.context=z;this.kq=new Map;Q.get().addListener(this);this.addOnDisposeCallback(function(){Q.FI()||Q.get().removeListener(K)})}; Hx=function(Z,Q,z,K,b){g.O.call(this);var q=this;this.j=Z;this.mZ=Q;this.LN=z;this.ou=K;this.context=b;this.Px=!0;this.kq=new Map;this.Y=new Set;z.get().addListener(this);this.addOnDisposeCallback(function(){z.FI()||z.get().removeListener(q)})}; PsM=function(Z,Q,z,K,b,q,r,D,v,Y){if(fg(Z.ou.get(),1).clientPlaybackNonce!==v)throw new w("Cannot register CueRange-based trigger for different content CPN",{trigger:z});Z.kq.set(z.triggerId,{xI:new l1(Q,z,K,b),cueRangeId:q});Z.mZ.get().addCueRange(q,r,D,Y,Z);J7(Z.context.H7.get())&&(v={},Z.context.gV.Sf("crr",(v.ca=Q,v.tt=z.triggerType,v.st=K.slotType,v.lt=b==null?void 0:b.layoutType,v.cid=q,v.sm=r,v.em=D,v)))}; RIM=function(Z,Q){Z=g.n(Z.kq.entries());for(var z=Z.next();!z.done;z=Z.next()){var K=g.n(z.value);z=K.next().value;K=K.next().value;if(Q===K.cueRangeId)return z}return""}; Mn=function(Z,Q){g.O.call(this);var z=this;this.W=Z;this.j=new Map;this.S=new Map;this.Y=null;Q.get().addListener(this);this.addOnDisposeCallback(function(){Q.FI()||Q.get().removeListener(z)}); var K;this.Y=((K=Q.get().m5)==null?void 0:K.slotId)||null}; Cs0=function(Z,Q){var z=[];Z=g.n(Z.values());for(var K=Z.next();!K.done;K=Z.next())K=K.value,K.slot.slotId===Q&&z.push(K);return z}; U4=function(Z){g.O.call(this);this.Y=Z;this.Px=!0;this.kq=new Map}; xo=function(Z,Q,z){Q=Q.layoutId;for(var K=[],b=g.n(Z.kq.values()),q=b.next();!q.done;q=b.next())if(q=q.value,q.trigger instanceof oo){var r;if(r=q.trigger.layoutId===Q){r=z;var D=G19.get(q.category);r=D?D===r:!1}r&&K.push(q)}K.length&&a$(Z.Y(),K)}; O4=function(Z){g.O.call(this);this.Y=Z;this.Px=!0;this.kq=new Map}; od=function(Z,Q,z,K,b){g.O.call(this);var q=this;this.L=Z;this.jx=Q;this.LN=z;this.v7=K;this.Y=null;this.Px=!0;this.kq=new Map;this.S=new Map;Q.get().addListener(this);this.addOnDisposeCallback(function(){Q.FI()||Q.get().removeListener(q)}); b.get().addListener(this);this.addOnDisposeCallback(function(){b.FI()||b.get().removeListener(q)})}; HMX=function(Z){Z.Y&&(Z.j&&(Z.j.stop(),Z.j.start()),pTd(Z,"TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED"))}; pTd=function(Z,Q){for(var z=[],K=g.n(Z.kq.values()),b=K.next();!b.done;b=K.next())b=b.value,b.trigger.triggerType===Q&&z.push(b);z.length>0&&a$(Z.L(),z)}; Bx=function(Z,Q,z,K,b){b=b===void 0?!0:b;for(var q=[],r=g.n(Z.kq.values()),D=r.next();!D.done;D=r.next()){D=D.value;var v=D.trigger;if(v.triggerType===Q){if(v instanceof Ro||v instanceof CJ||v instanceof MI){if(b&&v.breakDurationMs!==z)continue;if(!b&&v.breakDurationMs===z)continue;if(K.has(v.triggerId))continue}q.push(D)}}q.length>0&&a$(Z.L(),q)}; MG9=function(Z){Z=Z.adPlacementRenderer.config.adPlacementConfig;if(!Z.prefetchModeConfig||!Z.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;Z=Number(Z.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(Z)||Z<=0?0:Math.floor(Math.random()*Z)}; Uhx=function(Z){Z=Z.adPlacementRenderer.config.adPlacementConfig;if(Z.prefetchModeConfig&&Z.prefetchModeConfig.cacheFetchRefreshDurationMs&&(Z=Number(Z.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(Z)||Z<=0)))return Z}; Wx=function(Z){Z.Y=null;Z.kq.clear();Z.S.clear();Z.j&&Z.j.stop();Z.W&&Z.W.stop()}; VG=function(Z){g.O.call(this);this.S=Z;this.Px=!0;this.kq=new Map;this.Y=new Map;this.j=new Map}; OMx=function(Z,Q){var z=[];if(Q=Z.Y.get(Q.layoutId)){Q=g.n(Q);for(var K=Q.next();!K.done;K=Q.next())(K=Z.j.get(K.value.triggerId))&&z.push(K)}return z}; kg=function(Z){g.O.call(this);this.Y=Z;this.kq=new Map}; o0n=function(Z,Q){for(var z=[],K=g.n(Z.kq.values()),b=K.next();!b.done;b=K.next())b=b.value,b.trigger instanceof mq&&b.trigger.slotId===Q&&z.push(b);z.length>=1&&a$(Z.Y(),z)}; BOf=function(Z,Q){var z={slotId:TQ(Q,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],mF:"surface",clientMetadata:new qf([])},K=Object,b=K.assign;Q=wZ(Q,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",z.slotId);Q={layoutId:Q,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",wq:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Nb:[],mF:"surface", clientMetadata:new qf([]),EA:mUG(!1,z.slotId,z.slotType,z.slotPhysicalPosition,z.mF,z.slotEntryTrigger,z.slotFulfillmentTriggers,z.slotExpirationTriggers,Q,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return b.call(K,{},Z,{xBI:!0,slot:z,layout:Q})}; NEf=function(Z,Q,z,K){var b=Z.kind;K=K?!1:!Z.hideCueRangeMarker;switch(b){case "AD_PLACEMENT_KIND_START":return K={B2:new IR(-0x8000000000000,-0x8000000000000),gN:K},z!=null&&(K.z_=new IR(-0x8000000000000,-0x8000000000000)),K;case "AD_PLACEMENT_KIND_END":return K={B2:new IR(0x7ffffffffffff,0x8000000000000),gN:K},z!=null&&(K.z_=new IR(Math.max(0,Q-z),0x8000000000000)),K;case "AD_PLACEMENT_KIND_MILLISECONDS":b=Z.adTimeOffset;b.offsetStartMilliseconds||vM("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); b.offsetEndMilliseconds||vM("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");Z=Number(b.offsetStartMilliseconds);b=Number(b.offsetEndMilliseconds);b===-1&&(b=Q);if(Number.isNaN(Z)||Number.isNaN(b)||Z>b)return new w("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:Z,offsetEndMs:b},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",b===Q&&Z-500<=b);K={B2:new IR(Z,b),gN:K};if(z!=null){Z=Math.max(0,Z-z);if(Z===b)return K;K.z_=new IR(Z,b)}return K; default:return new w("AdPlacementKind not supported in convertToRange.",{kind:b,adPlacementConfig:Z})}}; n0u=function(Z){var Q=Z.startSecs*1E3;return new IR(Q,Q+Z.Nn*1E3)}; WgW=function(Z){if(!Z||!Z.adPlacements&&!Z.adSlots)return!1;for(var Q=g.n(Z.adPlacements||[]),z=Q.next();!z.done;z=Q.next())if(z=z.value)if(z=z.adPlacementRenderer,z!=null&&(z.config&&z.config.adPlacementConfig&&z.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;Z=g.n(Z.adSlots||[]);for(Q=Z.next();!Q.done;Q=Z.next()){var K=z=void 0;if(((z=g.V(Q.value,Hi))==null?void 0:(K=z.adSlotMetadata)==null?void 0:K.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; uP=function(Z){this.H7=Z;this.j=new Map;this.Y=new Map;this.S=new Map}; TQ=function(Z,Q){if(xg(Z.H7.get())){var z=Z.j.get(Q)||0;z++;Z.j.set(Q,z);return Q+"_"+z}return g.c9(16)}; wZ=function(Z,Q,z){if(xg(Z.H7.get())){var K=Z.Y.get(Q)||0;K++;Z.Y.set(Q,K);return z+"_"+Q+"_"+K}return g.c9(16)}; Kd=function(Z,Q){if(xg(Z.H7.get())){var z=Z.S.get(Q)||0;z++;Z.S.set(Q,z);return Q+"_"+z}return g.c9(16)}; VGd=function(Z){var Q=[new T4(Z.kA),new nM(Z.zr),new ln(Z.adPlacementConfig),new yO(Z.videoLengthSeconds),new BT(Z.Bj)];Z.instreamAdPlayerOverlayRenderer&&Q.push(new qh(Z.instreamAdPlayerOverlayRenderer));Z.playerOverlayLayoutRenderer&&Q.push(new rO(Z.playerOverlayLayoutRenderer));Z.QT&&Q.push(new z4(Z.QT));return Q}; k4W=function(Z,Q,z,K,b,q){Z=z.inPlayerLayoutId?z.inPlayerLayoutId:wZ(q,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Z);var r,D,v=z.instreamAdPlayerOverlayRenderer?(r=z.instreamAdPlayerOverlayRenderer)==null?void 0:r.adLayoutLoggingData:(D=z.playerOverlayLayoutRenderer)==null?void 0:D.adLayoutLoggingData;r={layoutId:Z,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",mF:Q};return{layoutId:Z,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",wq:new Map,layoutExitNormalTriggers:[new ao(function(Y){return Kd(q, Y)},z.kA)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Nb:[],mF:Q,clientMetadata:K,EA:b(r),adLayoutLoggingData:v}}; tQ=function(Z,Q){var z=this;this.j=Z;this.H7=Q;this.Y=function(K){return Kd(z.j.get(),K)}}; $lx=function(Z,Q,z,K,b,q){z=new qf([new Ag(z),new ln(K)]);Q=wZ(Z.j.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Q);K={layoutId:Q,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",mF:"core"};return{layoutId:Q,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",wq:new Map,layoutExitNormalTriggers:[new ao(function(r){return Kd(Z.j.get(),r)},b)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Nb:[],mF:"core",clientMetadata:z,EA:q(K),adLayoutLoggingData:void 0}}; eC=function(Z,Q,z,K,b){var q=VGd(K);return k4W(Q,z,K,new qf(q),b,Z.j.get())}; uZn=function(Z,Q,z,K,b){var q=VGd(K);q.push(new wx(K.JQ));q.push(new Ez(K.bD));return k4W(Q,z,K,new qf(q),b,Z.j.get())}; Sm=function(Z,Q,z,K,b,q,r,D,v,Y){Q=wZ(Z.j.get(),z,Q);var X={layoutId:Q,layoutType:z,mF:"core"},S=new Map;r&&S.set("impression",r);r=[new U5(Z.Y,b,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];Y&&r.push(new i1(Z.Y,Y,["normal"]));return{layoutId:Q,layoutType:z,wq:S,layoutExitNormalTriggers:r,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Nb:[],mF:"core",clientMetadata:new qf([K,new ln(q),new T4(b)]),EA:D(X),adLayoutLoggingData:v}}; $g=function(Z,Q,z,K,b,q,r,D,v){Q=wZ(Z.j.get(),z,Q);var Y={layoutId:Q,layoutType:z,mF:"core"},X=[new U5(Z.Y,b,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];v&&X.push(new i1(Z.Y,v,["normal"]));return{layoutId:Q,layoutType:z,wq:new Map,layoutExitNormalTriggers:X,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Nb:[],mF:"core",clientMetadata:new qf([K,new ln(q),new T4(b)]),EA:r(Y),adLayoutLoggingData:D}}; qn=function(Z,Q,z){var K=[];K.push(new O5(Z.Y,z));Q&&K.push(Q);return K}; bP=function(Z,Q,z,K,b,q,r){var D={layoutId:Q,layoutType:z,mF:"core"};return{layoutId:Q,layoutType:z,wq:new Map,layoutExitNormalTriggers:r,layoutExitSkipTriggers:[new y1(Z.Y,Q)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Nb:[],mF:"core",clientMetadata:new qf([new xZ(K),new ln(b)]),EA:q(D),adLayoutLoggingData:K.adLayoutLoggingData}}; uD=function(Z,Q,z,K,b,q,r,D){var v={layoutId:Q,layoutType:q,mF:"core"};return{layoutId:Q,layoutType:q,wq:new Map,layoutExitNormalTriggers:[new ao(Z.Y,z)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Nb:[],mF:"core",clientMetadata:new qf([new ln(K)].concat(g.I(r))),EA:b(v),adLayoutLoggingData:D}}; AQ=function(Z,Q,z,K){if(Z.H7.get().kX(Q.kind==="AD_PLACEMENT_KIND_START"))if(z===void 0)vM("Expected SSAP layout ID in renderer",void 0,void 0,{caller:K});else return z}; ePr=function(Z,Q,z,K,b,q,r,D,v,Y,X,S,T){Z=r_(Z,Q,z,b,q,r,D,v,S,AQ(Z,z,K.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),T);Q=Z.hc;z=new fM(Z.Pc);K=Z.layoutExitSkipTriggers;Y>0&&(Q.push(z),Q.push(new QO(Y)),K=[]);Q.push(new Z3(X));return{Mn:{layoutId:Z.layoutId,layoutType:Z.layoutType,wq:Z.wq,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Nb:[],mF:Z.mF,clientMetadata:new qf(Q),EA:Z.EA,adLayoutLoggingData:Z.adLayoutLoggingData}, ME:K,rd:Z.layoutExitMuteTriggers,CP:Z.layoutExitUserInputSubmittedTriggers,Ac:Z.Nb,Cf:Z.Cf}}; skG=function(Z,Q,z,K,b,q,r,D,v,Y){Q=r_(Z,Q,z,K,q,new Map,r,function(X){return D(X,v)},void 0,AQ(Z,z,b.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey")); Z=new wA(Z.Y,Q.Pc);z=new fM(Q.Pc);Y=new Z3(Y);return{Mn:{layoutId:Q.layoutId,layoutType:Q.layoutType,wq:Q.wq,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Nb:[],mF:Q.mF,clientMetadata:new qf([].concat(g.I(Q.hc),[z,Y])),EA:Q.EA,adLayoutLoggingData:Q.adLayoutLoggingData},ME:Q.layoutExitSkipTriggers,rd:Q.layoutExitMuteTriggers,CP:[].concat(g.I(Q.layoutExitUserInputSubmittedTriggers),[Z]),Ac:Q.Nb,Cf:Q.Cf}}; r_=function(Z,Q,z,K,b,q,r,D,v,Y,X){Q=Y!=null?Y:wZ(Z.j.get(),"LAYOUT_TYPE_MEDIA_BREAK",Q);Y={layoutId:Q,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",mF:"adapter"};D=D(Q);var S=rZ(D.clientMetadata,"metadata_type_fulfilled_layout");S||vM("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var T=S?S.layoutId:"";z=[new ln(z),new WT(K),new us(b)];S&&z.push(new hg(S.layoutType));X&&z.push(new PT(X));return{layoutId:Q,layoutType:"LAYOUT_TYPE_MEDIA_BREAK", wq:q,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new V1(Z.Y,T)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Nb:[],mF:"adapter",hc:z,EA:r(Y),adLayoutLoggingData:v,Cf:D,Pc:T}}; Yzr=function(Z,Q,z,K,b,q,r,D,v,Y,X){Z=xhn(Z,Q,"core",z,K,b,q,r,D,v,Y,void 0,X);return{layoutId:Z.layoutId,layoutType:Z.layoutType,wq:Z.wq,layoutExitNormalTriggers:Z.layoutExitNormalTriggers,layoutExitSkipTriggers:Z.layoutExitSkipTriggers,layoutExitMuteTriggers:Z.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:Z.layoutExitUserInputSubmittedTriggers,Nb:Z.Nb,mF:Z.mF,clientMetadata:new qf(Z.c5),EA:Z.EA,adLayoutLoggingData:Z.adLayoutLoggingData}}; v0D=function(Z,Q,z,K,b,q,r,D,v,Y,X,S,T){Q=xhn(Z,Q,"adapter",z,K,b,q,r,D,v,X,S,T);K=Q.layoutExitSkipTriggers;b=Q.c5;z.adPodSkipTarget&&z.adPodSkipTarget>0&&(b.push(Y),b.push(new QO(z.adPodSkipTarget)),K=[]);b.push(new Z3(D.adPodIndex));z.isCritical&&(K=[new i1(Z.Y,Q.layoutId,["error"])].concat(g.I(K)));return{Mn:{layoutId:Q.layoutId,layoutType:Q.layoutType,wq:Q.wq,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Nb:[],mF:Q.mF,clientMetadata:new qf(b), EA:Q.EA,adLayoutLoggingData:Q.adLayoutLoggingData},ME:K,rd:Q.layoutExitMuteTriggers,CP:Q.layoutExitUserInputSubmittedTriggers,Ac:Q.Nb}}; xhn=function(Z,Q,z,K,b,q,r,D,v,Y,X,S,T){var f={layoutId:Q,layoutType:"LAYOUT_TYPE_MEDIA",mF:z};b=[new ln(b),new s$(v),new KM(K.externalVideoId),new bs(D),new us({impressionCommands:K.impressionCommands,abandonCommands:K.onAbandonCommands,completeCommands:K.completeCommands,progressCommands:K.adVideoProgressCommands}),new dO(q),new cT({current:null}),new yO(r)];(q=K.playerOverlay.instreamAdPlayerOverlayRenderer)&&b.push(new qh(q));(r=K.playerOverlay.playerOverlayLayoutRenderer)&&b.push(new rO(r)); S&&b.push(new Nh(S));(S=K.playerUnderlay)&&b.push(new Ag(S));D=TQ(Z.j.get(),"SLOT_TYPE_IN_PLAYER");S=(S=q?q.elementId:r==null?void 0:r.layoutId)?S:wZ(Z.j.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",D);b.push(new fM(S));b.push(new LM(D));b.push(new PT(v.adPodIndex));K.adNextParams&&b.push(new kZ(K.adNextParams));K.shrunkenPlayerBytesConfig&&b.push(new vT(K.shrunkenPlayerBytesConfig));K.clickthroughEndpoint&&b.push(new un(K.clickthroughEndpoint));K.legacyInfoCardVastExtension&&b.push(new VO(K.legacyInfoCardVastExtension)); K.sodarExtensionData&&b.push(new G4(K.sodarExtensionData));X&&b.push(new ok(X));b.push(new FZ(yh(K.pings)));v=d7(K.pings);if(T){a:{T=g.n(T);for(X=T.next();!X.done;X=T.next())if(X=X.value,X.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(q=g.V(X.fulfillmentContent.fulfilledLayout,yQ))&&(q=g.V(q.renderingContent,IU))&&q.associatedPlayerBytesLayoutId===Q){T=X;break a}T=void 0}T&&b.push(new jG(T))}return{layoutId:Q,layoutType:"LAYOUT_TYPE_MEDIA",wq:v,layoutExitNormalTriggers:[new oo(Z.Y,Q)],layoutExitSkipTriggers:K.skipOffsetMilliseconds? [new V1(Z.Y,S)]:[],layoutExitMuteTriggers:[new V1(Z.Y,S)],layoutExitUserInputSubmittedTriggers:[],Nb:[],mF:z,c5:b,EA:Y(f),adLayoutLoggingData:K.adLayoutLoggingData}}; zP4=function(Z,Q,z,K,b,q,r,D,v){K.every(function(X){return zv(X,[],["LAYOUT_TYPE_MEDIA"])})||vM("Unexpect subLayout type for DAI composite layout"); Q=wZ(Z.j.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Q);var Y={layoutId:Q,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",mF:"core"};return{layoutId:Q,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",wq:new Map,layoutExitNormalTriggers:[new P4(Z.Y)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Nb:[],mF:"core",clientMetadata:new qf([new is(z),new ak(D),new Ik(K),new ln(b),new HT(q),new Rk({}),new wO(v)]),EA:r(Y)}}; EjG=function(Z){return Z!=null}; FD=function(Z,Q,z){var K=this;this.j=Z;this.S=Q;this.H7=z;this.Y=function(b){return Kd(K.j.get(),b)}}; LgG=function(Z,Q,z,K,b,q,r){if(!z.prefetchModeConfig)return new w("AdPlacementConfig for Live Prefetch is missing prefetch_config");z=z.prefetchModeConfig;K*=1E3;var D=[];if(!z.breakLengthMs)return new w("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var v=g.n(z.breakLengthMs),Y=v.next();!Y.done;Y=v.next())if(Y=Y.value,Number(Y)>0){var X=K+Number(z.startTimeOffsetMs),S=X+Number(z.cacheFetchSmearingDurationMs);Y={B2:new IR(S,S+Number(Y)),gN:!1,z_:new IR(Math.floor(X+Math.random()* Number(z.cacheFetchSmearingDurationMs)),S),cueProcessedMs:K?K:X};X=[];X.push(new Z0({}));S=[];S.push(new W4(Z.Y));S.push(new VIx(Z.Y));r&&X.push(new Rk({}));D.push(Mb(Z,Q,b,Y,q,X,S))}return D}; Mb=function(Z,Q,z,K,b,q,r){q=q===void 0?[]:q;r=r===void 0?[]:r;var D=TQ(Z.j.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),v=[];r=g.n(r);for(var Y=r.next();!Y.done;Y=r.next())v.push(Y.value);K.z_&&K.z_.start!==K.B2.start&&v.push(new H4(Z.Y,z,new IR(K.z_.start,K.B2.start),!1));v.push(new H4(Z.Y,z,new IR(K.B2.start,K.B2.end),K.gN));K={getAdBreakUrl:Q.getAdBreakUrl,pV:K.B2.start,Ie:K.B2.end,cueProcessedMs:K.cueProcessedMs};Q=new tV(Z.Y,D);q=[new U$(K)].concat(g.I(q));return{slotId:D,slotType:"SLOT_TYPE_AD_BREAK_REQUEST", slotPhysicalPosition:1,slotEntryTrigger:Q,slotFulfillmentTriggers:v,slotExpirationTriggers:[new B4(Z.Y,z),new u1(Z.Y,D),new xt(Z.Y,D)],mF:"core",clientMetadata:new qf(q),adSlotLoggingData:b}}; Fgn=function(Z,Q,z){var K=[];z=g.n(z);for(var b=z.next();!b.done;b=z.next())K.push(tGX(Z,Q,b.value));return K}; tGX=function(Z,Q,z){return z.triggeringSlotId!=null&&z.triggeringSlotId===Z?z.clone(Q):z}; ojG=function(Z,Q,z,K,b){return eIX(Z,Q,z,K,b)}; wVG=function(Z,Q,z,K){var b=TQ(Z.j.get(),"SLOT_TYPE_IN_PLAYER");return eIX(Z,b,Q,z,K)}; eIX=function(Z,Q,z,K,b){var q=new Gf(Z.Y,z),r=[new kt(Z.Y,Q)];Z=[new u1(Z.Y,Q),new B4(Z.Y,K)];return{slotId:Q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:q,slotFulfillmentTriggers:r,slotExpirationTriggers:Z,mF:"core",clientMetadata:new qf([new Mh(b({slotId:Q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,mF:"core",slotEntryTrigger:q,slotFulfillmentTriggers:r,slotExpirationTriggers:Z},z))]),adSlotLoggingData:void 0}}; g0d=function(Z,Q,z,K,b,q){var r=TQ(Z.j.get(),"SLOT_TYPE_PLAYER_BYTES"),D=TQ(Z.j.get(),"SLOT_TYPE_IN_PLAYER"),v=wZ(Z.j.get(),"LAYOUT_TYPE_SURVEY",D);K=em(Z,Q,z,K);var Y=[new kt(Z.Y,r)];z=[new u1(Z.Y,r),new B4(Z.Y,z),new y1(Z.Y,v)];if(K instanceof w)return K;D=q({slotId:r,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,mF:"core",slotEntryTrigger:K,slotFulfillmentTriggers:Y,slotExpirationTriggers:z},{slotId:D,layoutId:v});q=D.Odu;D=D.vhf;return[{slotId:r,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:DF(Z,Q,r,K),slotFulfillmentTriggers:vx(Z,Q,r,Y),slotExpirationTriggers:z,mF:"core",clientMetadata:new qf([new Mh(q),new E$(g_(Q)),new si({u_:Z.u_(Q)})]),adSlotLoggingData:b},D]}; g_=function(Z){return Z.kind==="AD_PLACEMENT_KIND_START"}; XVD=function(Z,Q,z,K,b){b=b?b:TQ(Z.j.get(),"SLOT_TYPE_IN_PLAYER");z=new Gf(Z.Y,z);var q=[new kt(Z.Y,b)];Z=[new B4(Z.Y,Q),new u1(Z.Y,b)];return{slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:z,slotFulfillmentTriggers:q,slotExpirationTriggers:Z,mF:"core",clientMetadata:new qf([new Mh(K({slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,mF:"core",slotEntryTrigger:z,slotFulfillmentTriggers:q,slotExpirationTriggers:Z}))])}}; SzM=function(Z,Q,z,K){var b=TQ(Z.j.get(),"SLOT_TYPE_PLAYER_UNDERLAY");z=new Gf(Z.Y,z);var q=[new kt(Z.Y,b)];Z=[new B4(Z.Y,Q),new u1(Z.Y,b)];return{slotId:b,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:z,slotFulfillmentTriggers:q,slotExpirationTriggers:Z,mF:"core",clientMetadata:new qf([new Mh(K({slotId:b,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,mF:"core",slotEntryTrigger:z,slotFulfillmentTriggers:q,slotExpirationTriggers:Z}))])}}; qzd=function(Z,Q,z,K,b,q,r){var D=TQ(Z.j.get(),"SLOT_TYPE_IN_PLAYER"),v=wZ(Z.j.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",D);K=wTu(Z,K,q,r,v);if(K instanceof w)return K;r=[new kt(Z.Y,D)];b=[new B4(Z.Y,q),new kt(Z.Y,b),new ei(Z.Y,b)];z=YH(z,{slotId:D,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,mF:"core",slotEntryTrigger:K,slotFulfillmentTriggers:r,slotExpirationTriggers:b});Z=Z.S.get();q={layoutId:v,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",mF:"core"};Q={layoutId:v,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", wq:new Map,layoutExitNormalTriggers:[new EpM(Z.Y,v,Q.durationMs)],layoutExitSkipTriggers:[new svW(Z.Y,v,Q.durationMs)],Nb:[new lUf(Z.Y,v)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],mF:"core",clientMetadata:new qf([new k0(Q)]),EA:z(q)};return{slotId:D,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,mF:"core",slotEntryTrigger:K,slotFulfillmentTriggers:r,slotExpirationTriggers:b,clientMetadata:new qf([new Mh(Q)])}}; tP4=function(Z,Q,z,K,b,q){Q=em(Z,Q,z,K);if(Q instanceof w)return Q;var r=Q instanceof H4?new Fhr(Z.Y,z,Q.Y):null;K=TQ(Z.j.get(),"SLOT_TYPE_IN_PLAYER");var D=[new kt(Z.Y,K)];Z=[new B4(Z.Y,z),new u1(Z.Y,K)];q=q({slotId:K,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,mF:"core",slotEntryTrigger:Q,slotFulfillmentTriggers:D,slotExpirationTriggers:Z},r);return q instanceof bz?new w(q):{slotId:K,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:Q,slotFulfillmentTriggers:D,slotExpirationTriggers:Z, mF:"core",clientMetadata:new qf([new Mh(q)]),adSlotLoggingData:b}}; uKn=function(Z,Q,z,K){var b=TQ(Z.j.get(),"SLOT_TYPE_IN_PLAYER"),q=new JV(Z.Y,Q),r=[new FV(Z.Y,b)];Z=[new B4(Z.Y,Q),new u1(Z.Y,b)];return{slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:q,slotFulfillmentTriggers:r,slotExpirationTriggers:Z,mF:"core",clientMetadata:new qf([new Mh(K({slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,mF:"core",slotEntryTrigger:q,slotFulfillmentTriggers:r,slotExpirationTriggers:Z}))]),adSlotLoggingData:z}}; xHM=function(Z,Q,z,K){var b=TQ(Z.j.get(),"SLOT_TYPE_IN_PLAYER");z=new Gf(Z.Y,z);var q=[new kt(Z.Y,b)],r=[new u1(Z.Y,b),new B4(Z.Y,Q)];q={slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,mF:"core",slotEntryTrigger:z,slotFulfillmentTriggers:q,slotExpirationTriggers:r};return{slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:z,slotFulfillmentTriggers:[new kt(Z.Y,b)],slotExpirationTriggers:[new B4(Z.Y,Q),new u1(Z.Y,b)],mF:"core",clientMetadata:new qf([new Mh(K(q))])}}; VdX=function(Z,Q,z,K,b){var q=TQ(Z.j.get(),"SLOT_TYPE_IN_PLAYER");z=new NI(Z.Y,K,z);K=[new kt(Z.Y,q)];Z=[new B4(Z.Y,Q)];return{slotId:q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:z,slotFulfillmentTriggers:K,slotExpirationTriggers:Z,mF:"core",clientMetadata:new qf([new Mh(b({slotId:q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,mF:"core",slotEntryTrigger:z,slotFulfillmentTriggers:K,slotExpirationTriggers:Z}))])}}; Mdx=function(Z,Q,z,K,b,q){var r=TQ(Z.j.get(),Q);return w_(Z,r,Q,new Gf(Z.Y,K),[new B4(Z.Y,z),new u1(Z.Y,r),new i1(Z.Y,K,["error"])],b,q)}; He4=function(Z,Q,z,K,b,q,r){var D=TQ(Z.j.get(),Q);return w_(Z,D,Q,new i1(Z.Y,b,["normal"]),[new B4(Z.Y,z),new u1(Z.Y,D),new i1(Z.Y,K,["error"])],q,r)}; P94=function(Z,Q,z,K,b){var q=TQ(Z.j.get(),Q);return w_(Z,q,Q,new JV(Z.Y,z),[new B4(Z.Y,z),new u1(Z.Y,q)],K,b)}; Bx4=function(Z,Q,z,K,b){z=z?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var q=TQ(Z.j.get(),z);Q=new JV(Z.Y,Q);var r=[new kt(Z.Y,q)];Z=[new u1(Z.Y,q)];return{slotId:q,slotType:z,slotPhysicalPosition:1,slotEntryTrigger:Q,slotFulfillmentTriggers:r,slotExpirationTriggers:Z,mF:"core",clientMetadata:new qf([new Mh(b({slotId:q,slotType:z,slotPhysicalPosition:1,mF:"core",slotEntryTrigger:Q,slotFulfillmentTriggers:r,slotExpirationTriggers:Z}))]),adSlotLoggingData:K}}; lVG=function(Z,Q,z,K){var b=TQ(Z.j.get(),"SLOT_TYPE_PLAYER_BYTES"),q=new pJ(Z.Y),r=[new FV(Z.Y,b)];Z=[new B4(Z.Y,Q)];return{slotId:b,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:q,slotFulfillmentTriggers:r,slotExpirationTriggers:Z,mF:"core",clientMetadata:new qf([new Mh(K({slotId:b,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,mF:"core",slotEntryTrigger:q,slotFulfillmentTriggers:r,slotExpirationTriggers:Z})),new Rk({})]),adSlotLoggingData:z}}; rg4=function(Z,Q){return f3G(Z.H7.get())?new i1(Z.Y,Q,["normal","error","skipped"]):new i1(Z.Y,Q,["normal"])}; Dl4=function(Z,Q,z,K,b){Q=rg4(Z,Q);Z=jm(Z,Q,z);b=b({slotId:Z.slotId,slotType:Z.slotType,slotPhysicalPosition:Z.slotPhysicalPosition,slotEntryTrigger:Z.slotEntryTrigger,slotFulfillmentTriggers:Z.slotFulfillmentTriggers,slotExpirationTriggers:Z.slotExpirationTriggers,mF:Z.mF});return b instanceof w?b:{O0:Object.assign({},Z,{clientMetadata:new qf([new Mh(b.layout)]),adSlotLoggingData:K}),DG:b.DG}}; vZM=function(Z,Q,z,K,b,q,r){z=Ag0(Z,Q,z,K);if(z instanceof w)return z;r=r({slotId:z.slotId,slotType:z.slotType,slotPhysicalPosition:z.slotPhysicalPosition,slotEntryTrigger:z.slotEntryTrigger,slotFulfillmentTriggers:z.slotFulfillmentTriggers,slotExpirationTriggers:z.slotExpirationTriggers,mF:z.mF});if(r instanceof w)return r;K=[new E$(g_(Q)),new Mh(r.layout),new si({u_:Z.u_(Q)})];q&&K.push(new x0({}));return{O0:{slotId:z.slotId,slotType:z.slotType,slotPhysicalPosition:z.slotPhysicalPosition,slotEntryTrigger:DF(Z, Q,z.slotId,z.slotEntryTrigger),slotFulfillmentTriggers:vx(Z,Q,z.slotId,z.slotFulfillmentTriggers),slotExpirationTriggers:z.slotExpirationTriggers,mF:z.mF,clientMetadata:new qf(K),adSlotLoggingData:b},DG:r.DG}}; DF=function(Z,Q,z,K){return Z.H7.get().kX(g_(Q))?new mq(Z.Y,z):K}; vx=function(Z,Q,z,K){return Z.H7.get().kX(g_(Q))?[new FV(Z.Y,z)]:K}; jm=function(Z,Q,z){var K=TQ(Z.j.get(),"SLOT_TYPE_PLAYER_BYTES"),b=[new kt(Z.Y,K)];Z=[new u1(Z.Y,K),new B4(Z.Y,z)];return{slotId:K,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:Q,slotFulfillmentTriggers:b,slotExpirationTriggers:Z,mF:"core"}}; Ag0=function(Z,Q,z,K){Q=em(Z,Q,z,K);return Q instanceof w?Q:jm(Z,Q,z)}; VP4=function(Z,Q,z,K,b,q){var r=TQ(Z.j.get(),"SLOT_TYPE_FORECASTING");Q=em(Z,Q,z,K);if(Q instanceof w)return Q;K=[new kt(Z.Y,r)];Z=[new u1(Z.Y,r),new B4(Z.Y,z)];return{slotId:r,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:Q,slotFulfillmentTriggers:K,slotExpirationTriggers:Z,mF:"core",clientMetadata:new qf([new Mh(q({slotId:r,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,mF:"core",slotEntryTrigger:Q,slotFulfillmentTriggers:K,slotExpirationTriggers:Z}))]),adSlotLoggingData:b}}; E0d=function(Z,Q,z,K,b){var q=!Q.hideCueRangeMarker;switch(Q.kind){case "AD_PLACEMENT_KIND_START":return new JV(Z.Y,z);case "AD_PLACEMENT_KIND_MILLISECONDS":return Z=NEf(Q,K),Z instanceof w?Z:b(Z.B2,q);case "AD_PLACEMENT_KIND_END":return new dA(Z.Y,z,q);default:return new w("Cannot construct entry trigger",{kind:Q.kind})}}; wTu=function(Z,Q,z,K,b){return E0d(Z,Q,z,K,function(q,r){return new tIX(Z.Y,z,q,r,b)})}; em=function(Z,Q,z,K){return E0d(Z,Q,z,K,function(b,q){return new H4(Z.Y,z,b,q)})}; w_=function(Z,Q,z,K,b,q,r){Z=[new FV(Z.Y,Q)];return{slotId:Q,slotType:z,slotPhysicalPosition:1,slotEntryTrigger:K,slotFulfillmentTriggers:Z,slotExpirationTriggers:b,mF:"core",clientMetadata:new qf([new Mh(r({slotId:Q,slotType:z,slotPhysicalPosition:1,mF:"core",slotEntryTrigger:K,slotFulfillmentTriggers:Z,slotExpirationTriggers:b}))]),adSlotLoggingData:q}}; E4=function(Z,Q){g.O.call(this);this.H7=Z;this.Y=Q;this.eventCount=0}; lP=function(Z,Q,z,K){E4.call(this,Z,Q);this.H7=Z;this.ou=z;this.context=K}; se=function(){this.Y=new Map}; zG=function(Z,Q){var z=this;this.currentState="wait";this.onSuccess=[];this.onFailure=[];this.currentState=Z;this.result=Q.result;this.error=Q.error;Q.promise&&Q.promise.then(function(K){Z7(z,K)},function(K){Qu(z,K)})}; qP=function(Z){if(KY(Z)){if(Z instanceof zG)return Z;if(bJ(Z))return new zG("wait",{promise:Z})}return new zG("done",{result:Z})}; r0=function(Z){return new zG("fail",{error:Z})}; Ad=function(Z){try{return qP(Z())}catch(Q){return r0(Q)}}; D7=function(Z,Q){var z=new zG("wait",{});Z.onSuccess.push(function(K){try{var b=Q(K);Z7(z,b)}catch(q){Qu(z,q)}}); Z.onFailure.push(function(K){Qu(z,K)}); jZ(Z);return z}; v3=function(Z,Q){var z=new zG("wait",{});Z.onSuccess.push(function(K){Z7(z,K)}); Z.onFailure.push(function(K){try{var b=Q(K);Z7(z,b)}catch(q){Qu(z,q)}}); jZ(Z);return z}; Z7=function(Z,Q){if(KY(Q)){if(bJ(Q)){Q.then(function(z){Z7(Z,z)},function(z){Qu(Z,z)}); return}if(Q instanceof zG){D7(Q,function(z){Z7(Z,z)}); v3(Q,function(z){Qu(Z,z)}); return}}Z.currentState="done";Z.result=Q;jZ(Z)}; Qu=function(Z,Q){Z.currentState="fail";Z.error=Q;jZ(Z)}; jZ=function(Z){if(Z.currentState==="done"){var Q=Z.onSuccess;Z.onSuccess=[];Z.onFailure=[];Q=g.n(Q);for(var z=Q.next();!z.done;z=Q.next())z=z.value,z(Z.result)}else if(Z.currentState==="fail")for(Q=Z.onFailure,Z.onSuccess=[],Z.onFailure=[],Q=g.n(Q),z=Q.next();!z.done;z=Q.next())z=z.value,z(Z.error)}; s$W=function(Z){return function(){return l3W(Z.apply(this,g.iu.apply(0,arguments)))}}; l3W=function(Z){return Ad(function(){return g0(Z,Z.next())})}; g0=function(Z,Q){return Q.done?qP(Q.value):v3(D7(Q.value.wF,function(z){return g0(Z,Z.next(z))}),function(z){return g0(Z,Z.throw(z))})}; XP=function(Z){var Q=Z.hours||0;var z=Z.minutes||0,K=Z.seconds||0;Q=K+z*60+Q*3600+(Z.days||0)*86400+(Z.weeks||0)*604800+(Z.months||0)*2629800+(Z.years||0)*31557600;Q<=0?Q={hours:0,minutes:0,seconds:0}:(Z=Q,Q=Math.floor(Z/3600),Z%=3600,z=Math.floor(Z/60),K=Math.floor(Z%60),Q={hours:Q,minutes:z,seconds:K});var b=Q.hours===void 0?0:Q.hours;z=Q.minutes===void 0?0:Q.minutes;Z=Q.seconds===void 0?0:Q.seconds;K=b>0;Q=[];if(K){b=(new Intl.NumberFormat("en-u-nu-latn")).format(b);var q=["fr"],r="az bs ca da de el es eu gl hr id is it km lo mk nl pt-BR ro sl sr sr-Latn tr vi".split(" "); b="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(YN)?b.replace(",","\u00a0"):q.includes(YN)?b.replace(",","\u202f"):r.includes(YN)?b.replace(",","."):b;Q.push(b)}K=K===void 0?!1:K;z=(["af","be","lt"].includes(YN)||K)&&z<10?Zwn().format(z):(new Intl.NumberFormat("en-u-nu-latn")).format(z);Q.push(z);z=Zwn().format(Z);Q.push(z);z=":";"da fi id si sr sr-Latn".split(" ").includes(YN)&&(z=".");return Q.join(z)}; Zwn=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; Q$W=function(Z,Q){var z,K;Z=((z=Z.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(K=z.videoAuthorizationToken)==null?void 0:K.credentialTransferTokens)||[];for(z=0;z<Z.length;++z)if(Z[z].scope===Q)return Z[z].token||void 0}; SZ=function(Z){if(Z&&Z.simpleText)return Z.simpleText;var Q="";if(Z&&Z.runs)for(var z=0;z<Z.runs.length;z++)Z.runs[z].text&&(Q+=Z.runs[z].text);return Q}; $N=function(Z){return Z?function(){try{return Z.apply(this,arguments)}catch(Q){g.Rm(Q)}}:Z}; TG=function(){this.S=new Set;this.j=new Set;this.W=new Map;this.client=void 0;this.csn=null}; fY=function(){TG.instance||(TG.instance=new TG);return TG.instance}; hd=function(){}; LY=function(){this.T=[];this.X=[];this.Y=[];this.SJ=[];this.L=[];this.U=[];this.S=new Map;this.K=new Map;this.j=new Set;this.P7=new Map}; nY=function(){LY.instance||(LY.instance=new LY);return LY.instance}; c3=function(Z,Q,z,K){K=K===void 0?{}:K;g.lW(function(){z5W.includes(Q)||(g.CO(new g.tW("createClientScreen() called with a non-page VE",Q)),Q=83769);K.isHistoryNavigation||(Z.SJ=[],Z.Y.push({rootVe:Q,key:K.key||""}));Z.T=[];Z.X=[];K.NF?KPG(Z,Q,z,K):bw0(Z,Q,z,K)})()}; qiu=function(Z,Q,z){z=z===void 0?0:z;g.lW(function(){Q.then(function(K){Z.j.has(z)&&Z.W&&Z.W();var b=g.Jy(z),q=g.Im(z);if(b&&q){var r;(K==null?0:(r=K.response)==null?0:r.trackingParams)&&g.xY(Z.client,b,q,g.cc(K.response.trackingParams));var D;(K==null?0:(D=K.playerResponse)==null?0:D.trackingParams)&&g.xY(Z.client,b,q,g.cc(K.playerResponse.trackingParams))}})})()}; IL=function(Z){var Q=nY();g.lW(function(){var z=g.cc(Z);m5(Q,z);return z})()}; m5=function(Z,Q,z,K){K=K===void 0?0:K;g.lW(function(){if(Z.j.has(K))return Z.T.push([Q,z]),!0;var b=g.Jy(K),q=z||g.Im(K);if(b&&q){if(g.nA("combine_ve_grafts")){var r=Z.S.get(q.toString());r?r.push(Q):(Z.K.set(q.toString(),q),Z.S.set(q.toString(),[Q]));Z.jJ||(Z.jJ=g.lb(0,function(){Jd(Z,b)},1200))}else g.xY(Z.client,b,q,Q); return!0}return!1})()}; rJn=function(Z,Q,z,K){K=K===void 0?0:K;var b=g.Jy(K);Q=Q||g.Im(K);b&&Q&&(Z=Z.client,K=Bc({cttAuthInfo:y4(b)||void 0},b),z={csn:b,ve:Q.getAsJson(),clientData:z},b==="UNDEFINED_CSN"?eD("visualElementStateChanged",K,z):Z?LO("visualElementStateChanged",z,Z,K):g.DW("visualElementStateChanged",z,K))}; KPG=function(Z,Q,z,K){K=K===void 0?{}:K;Z.j.add(K.layer||0);Z.W=function(){bw0(Z,Q,z,K);var r=g.Im(K.layer);if(r){for(var D=g.n(Z.T),v=D.next();!v.done;v=D.next())v=v.value,m5(Z,v[0],v[1]||r,K.layer);r=g.n(Z.X);for(D=r.next();!D.done;D=r.next())D=D.value,rJn(Z,D[0],D[1])}}; z||g.Jy(K.layer)||Z.W();if(K.NF)for(var b=g.n(K.NF),q=b.next();!q.done;q=b.next())qiu(Z,q.value,K.layer);else g.Rm(Error("Delayed screen needs a data promise."))}; bw0=function(Z,Q,z,K){K=K===void 0?{}:K;var b=void 0;K.layer||(K.layer=0);b=K.parentLayer!==void 0?K.parentLayer:K.layer;var q=g.Jy(b);b=g.Im(b);var r=z||b,D;r&&(K.parentCsn!==void 0?D={clientScreenNonce:K.parentCsn,visualElement:r}:q&&q!=="UNDEFINED_CSN"&&(D={clientScreenNonce:q,visualElement:r}));var v,Y=g.Ft("EVENT_ID");q==="UNDEFINED_CSN"&&Y&&(v={servletData:{serializedServletEventId:Y}});g.nA("combine_ve_grafts")&&q&&Jd(Z,q);g.nA("no_client_ve_attach_unless_shown")&&r&&q&&Fs(r,q);try{var X=bc9(Z.client, Q,D,K.MF,K.cttAuthInfo,v,K.implicitGestureType,K.loggingExpectations)}catch(f){ETx(f,{hB:Q,rootVe:b,s$h:z,rlh:q,Neh:D,MF:K.MF});g.Rm(f);return}Pb4(X,Q,K.layer,K.cttAuthInfo);q&&q!=="UNDEFINED_CSN"&&b&&!GMX(q)&&rhM(Z.client,q,b,!0);Z.Y[Z.Y.length-1]&&!Z.Y[Z.Y.length-1].csn&&(Z.Y[Z.Y.length-1].csn=X||"");g.oC({clientScreenNonce:X});hd.instance||(hd.instance=new hd);g.lW(fY().Y).bind(fY())();var S=g.Im(K.layer);q&&q!=="UNDEFINED_CSN"&&S&&(g.nA("web_mark_root_visible")||g.nA("music_web_mark_root_visible"))&& g.Zz(X,S);Z.j.delete(K.layer||0);Z.W=void 0;var T;(T=Z.P7.get(K.layer))==null||T.forEach(function(f,h){f?m5(Z,h,f,K.layer):S&&m5(Z,h,S,K.layer)}); AJn(Z)}; AJn=function(Z){for(var Q=0;Q<Z.L.length;Q++){var z=Z.L[Q];try{z()}catch(K){g.Rm(K)}}for(Q=Z.L.length=0;Q<Z.U.length;Q++){z=Z.U[Q];try{z()}catch(K){g.Rm(K)}}}; Jd=function(Z,Q){if(Q===void 0)for(var z=dWM(),K=0;K<z.length;K++)z[K]!==void 0&&Jd(Z,z[K]);else Z.S.forEach(function(b,q){(q=Z.K.get(q))&&g.uO(Z.client,Q,q,b)}),Z.S.clear(),Z.K.clear(),Z.jJ=void 0}; yu=function(){}; j$u=function(){yu.instance||(yu.instance=new yu);return yu.instance}; Df9=function(Z,Q,z){var K=new XMLHttpRequest;if(z==null?0:z.Zm)K.onreadystatechange=function(q){z.Zm(K,q)}; var b;K.open((b=Q.method)!=null?b:"GET",Z,!0);K.responseType="text";K.withCredentials=!0;if(Q.headers)for(Z=g.n(Object.entries(Q.headers)),Q=Z.next();!Q.done;Q=Z.next())b=g.n(Q.value),Q=b.next().value,b=b.next().value,K.setRequestHeader(Q,b);return K}; d0=function(){}; vHn=function(){var Z=navigator;return new Promise(function(Q,z){var K;(K=Z.webkitTemporaryStorage)!=null&&K.queryUsageAndQuota?Z.webkitTemporaryStorage.queryUsageAndQuota(function(b,q){Q({usage:b,quota:q})},function(b){z(b)}):z(Error("webkitTemporaryStorage is not supported."))})}; Ah=function(Z,Q){var z=this;this.handleError=Z;this.Y=Q;this.j=!1;self.document===void 0||self.addEventListener("beforeunload",function(){z.j=!0}); this.S=Math.random()<=.2}; Yix=function(Z,Q){d0.getInstance().estimate().then(function(z){z=Object.assign({},Q,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:gHX(z==null?void 0:z.usage),deviceStorageQuotaMbytes:gHX(z==null?void 0:z.quota)});Z.Y("idbQuotaExceeded",z)})}; gHX=function(Z){return typeof Z==="undefined"?"-1":String(Math.ceil(Z/1048576))}; Sid=function(){g.B6();return g.W6(0,192)?g.W6(0,190):!(g.nA("web_watch_cinematics_disabled_by_default")||g.nA("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&Xh9())}; TZx=function(Z,Q){$fn(Z.program,Q.U87)&&(kp("bg_i",void 0,"player_att"),g.NP.initialize(Z,function(){kp("bg_l",void 0,"player_att");GG=(0,g.Nm)()},Q.cspNonce,Q.Ff))}; f0M=function(Z){Z=Z===void 0?{}:Z;return g.NP.invoke(Z)}; $fn=function(Z,Q){if(Z){var z;g.NP.isLoading()?z=!1:z=!GG||(0,g.Nm)()-GG>Q;Z=z}else Z=!1;return Z}; h5x=function(Z){Z=Z.split("");iJ.Lg(Z,60);iJ.Lg(Z,18);iJ.vb(Z,1);iJ.yZ(Z,53);iJ.Lg(Z,12);iJ.Lg(Z,42);iJ.yZ(Z,58);iJ.Lg(Z,5);return Z.join("")}; g.aL=function(Z,Q){return Z.Ff+"timedtext_video?ref=player&v="+Q.videoId}; g.LPG=function(Z){var Q=this;this.videoData=Z;Z={};this.Y=(Z.c1a=function(){var z=[];if(g.NP.isInitialized()){var K="";Q.videoData&&Q.videoData.Cj&&(K=Q.videoData.Cj+("&r1b="+Q.videoData.clientPlaybackNonce));var b={};K=(b.atr_challenge=K,b);kp("bg_v",void 0,"player_att");(K=f0M(K))?(kp("bg_s",void 0,"player_att"),z.push("r1a="+K)):(kp("bg_e",void 0,"player_att"),z.push("r1c=2"))}else kp("bg_e",void 0,"player_att"),window.trayride||window.botguard?z.push("r1c=1"):z.push("r1c=4");z.push("r1d="+g.NP.getState()); return z.join("&")},Z.c6a=function(z){return"r6a="+(Number(z.c)^jd())},Z.c6b=function(z){return"r6b="+(Number(z.c)^Number(g.Ft("CATSTAT",0)))},Z); this.videoData&&this.videoData.Cj?this.D$=zr(this.videoData.Cj):this.D$={}}; g.nHu=function(Z){if(Z.videoData&&Z.videoData.Cj){for(var Q=[Z.videoData.Cj],z=g.n(Object.keys(Z.Y)),K=z.next();!K.done;K=z.next())K=K.value,Z.D$[K]&&Z.Y[K]&&(K=Z.Y[K](Z.D$))&&Q.push(K);return Q.join("&")}return null}; g.P3=function(Z,Q){TZx(Z,{U87:g.Xp(Q.experiments,"bg_vm_reinit_threshold"),cspNonce:Q.cspNonce,Ff:Q.Ff||""})}; cJG=function(){var Z=XMLHttpRequest.prototype.fetch;return!!Z&&Z.length===3}; RL=function(Z){Z=Z===void 0?2592E3:Z;if(Z>0&&!(F_4()>(0,g.Nm)()-Z*1E3))return 0;Z=g.pS("yt-player-quality");if(typeof Z==="string"){if(Z=g.o3[Z],Z>0)return Z}else if(Z instanceof Object)return Z.quality;return 0}; CY=function(){var Z=g.pS("yt-player-proxima-pref");return Z==null?null:Z}; mf9=function(){var Z=g.pS("yt-player-quality");if(Z instanceof Object&&Z.quality&&Z.previousQuality){if(Z.quality>Z.previousQuality)return 1;if(Z.quality<Z.previousQuality)return-1}return 0}; I04=function(){var Z={values:{},zt:{}};try{var Q=JSON.parse(JSON.parse(window.localStorage["yt-player-memory"]).data);Z.values=Q.values;Z.halfLives=Q.halfLives}catch(z){}return Z}; pY=function(){return g.pS("yt-player-performance-cap")||{}}; H3=function(){var Z;return(Z=g.pS("yt-player-performance-cap-active-set"))!=null?Z:[]}; JJD=function(Z){(Z===void 0?0:Z)?(Z=H3().filter(function(Q){return Q.startsWith("1")}),g.CS("yt-player-performance-cap-active-set",Z,2592E3)):g.CS("yt-player-performance-cap-active-set",[],2592E3)}; yJ9=function(Z){g.CS("yt-player-watch-later-pending",Z)}; dfW=function(){return!!g.pS("yt-player-headers-readable")}; NZn=function(){try{return+(window.localStorage&&window.localStorage["yt-player-av1-pref"])||0}catch(Z){return 0}}; g.MP=function(){var Z=g.pS("yt-player-caption-language-preferences");return Z?Z:[]}; Ue=function(){var Z=g.pS("yt-player-user-settings"),Q=new Map;if(Z){Z=g.n(Object.entries(Z));for(var z=Z.next();!z.done;z=Z.next()){var K=g.n(z.value);z=K.next().value;K=K.next().value;Q.set(z,K)}}return Q}; oL=function(){try{var Z=window.navigator;if(Z.getAutoplayPolicy&&typeof Z.getAutoplayPolicy==="function"){var Q=document.getElementsByClassName(g.Oe.h9h);var z=Q.length>0&&Q[0]?Z.getAutoplayPolicy(Q[0]):Z.getAutoplayPolicy("mediaelement");if(Gv4[z])return Gv4[z]}}catch(K){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; B3=function(Z){return Z.ex||Z.h6||Z.mutedAutoplay}; iw9=function(Z,Q){return B3(Z)?Q!==1&&Q!==2&&Q!==0?"AUTOPLAY_STATUS_UNAVAILABLE":Z.bu?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; a0G=function(Z,Q,z){var K=Q.N();Z.thirdParty||(Z.thirdParty={});K.ancestorOrigins&&(Z.thirdParty.embeddedPlayerContext=Object.assign({},Z.thirdParty.embeddedPlayerContext,{ancestorOrigins:K.ancestorOrigins}));K.V("embeds_enable_autoplay_and_visibility_signals")&&(K.n4!=null&&(Z.thirdParty.embeddedPlayerContext=Object.assign({},Z.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(K.n4)})),K.FB&&(Z.thirdParty.embeddedPlayerContext=Object.assign({},Z.thirdParty.embeddedPlayerContext,{visibilityFractionSource:K.FB})), Z.thirdParty.embeddedPlayerContext=Object.assign({},Z.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:oL(),autoplayIntended:B3(Q),autoplayStatus:iw9(Q,z)}))}; CzG=function(Z,Q){Fg(Z,2,Q.Yx,W3,3);Fg(Z,3,Q.lA,Pz9,3);xj(Z,4,Q.onesieUstreamerConfig);xj(Z,9,Q.XE);Fg(Z,10,Q.ZJ,Vu,3);Fg(Z,15,Q.reloadPlaybackParams,R5x,3)}; Hwn=function(Z,Q){Fg(Z,1,Q.formatId,kN,3);kj(Z,2,Q.startTimeMs);kj(Z,3,Q.durationMs);kj(Z,4,Q.Bk);kj(Z,5,Q.S_);Fg(Z,9,Q.H9u,phX,3);Fg(Z,11,Q.yJF,uJ,1);Fg(Z,12,Q.dE,uJ,1)}; M1n=function(Z,Q){tK(Z,1,Q.videoId);kj(Z,2,Q.lmt)}; phX=function(Z,Q){if(Q.Mh)for(var z=0;z<Q.Mh.length;z++)Fg(Z,1,Q.Mh[z],M1n,3)}; kN=function(Z,Q){kj(Z,1,Q.itag);kj(Z,2,Q.lmt);tK(Z,3,Q.xtags)}; xN=function(Z){return{itag:Ce(Z,1),lmt:Ce(Z,2),xtags:MH(Z,3)}}; uJ=function(Z,Q){kj(Z,1,Q.startTicks);kj(Z,2,Q.pc);kj(Z,3,Q.timescale)}; UfG=function(Z){return{startTicks:Ce(Z,1),pc:Ce(Z,2),timescale:Ce(Z,3)}}; Owf=function(Z,Q){kj(Z,1,Q.defaultPolicy);kj(Z,2,Q.smooth);kj(Z,3,Q.visibility);kj(Z,4,Q.E5);kj(Z,5,Q.performance);kj(Z,6,Q.speed)}; W3=function(Z,Q){kj(Z,13,Q.timeSinceLastManualFormatSelectionMs);var z=Q.lastManualDirection;z!==void 0&&(V5(Z,112),V5(Z,z<<1^z>>31));kj(Z,16,Q.X7F);kj(Z,17,Q.detailedNetworkType);kj(Z,18,Q.N1);kj(Z,19,Q.ax);kj(Z,21,Q.u8);kj(Z,23,Q.uD);kj(Z,28,Q.Vg);kj(Z,29,Q.FGg);kj(Z,34,Q.visibility);z=Q.playbackRate;if(z!==void 0){var K=new ArrayBuffer(4);(new Float32Array(K))[0]=z;z=(new Uint32Array(K))[0];if(z!==void 0)for(V5(Z,285),WA(Z,4),K=0;K<4;)Z.view.setUint8(Z.pos,z&255),z>>=8,Z.pos+=1,K+=1}kj(Z,36,Q.vX); Fg(Z,38,Q.mediaCapabilities,oHG,3);kj(Z,39,Q.nE$);kj(Z,40,Q.wH);kj(Z,44,Q.playerState);u9(Z,46,Q.F1);kj(Z,48,Q.Np);kj(Z,50,Q.ov);kj(Z,51,Q.IU);kj(Z,54,Q.R0);u9(Z,56,Q.nqY);kj(Z,57,Q.Gd);u9(Z,58,Q.u1);kj(Z,59,Q.k8);kj(Z,60,Q.UE);u9(Z,61,Q.isPrefetch);kj(Z,62,Q.rZ);xj(Z,63,Q.sabrLicenseConstraint);kj(Z,64,Q.GfJ);kj(Z,66,Q.luu);kj(Z,67,Q.to7);kj(Z,68,Q.WM7);tK(Z,69,Q.audioTrackId);u9(Z,71,Q.xo);Fg(Z,72,Q.hu$,Owf,1);kj(Z,74,Q.eL);kj(Z,75,Q.a5)}; oHG=function(Z,Q){if(Q.videoFormatCapabilities)for(var z=0;z<Q.videoFormatCapabilities.length;z++)Fg(Z,1,Q.videoFormatCapabilities[z],BZd,1);if(Q.audioFormatCapabilities)for(z=0;z<Q.audioFormatCapabilities.length;z++)Fg(Z,2,Q.audioFormatCapabilities[z],WP0,1);Fg(Z,4,Q.perPlaybackAttributes,V14,3);kj(Z,5,Q.hdrModeBitmask)}; BZd=function(Z,Q){kj(Z,1,Q.videoCodec);kj(Z,3,Q.maxHeight);kj(Z,4,Q.maxWidth);kj(Z,11,Q.maxFramerate);kj(Z,12,Q.maxBitrateBps);u9(Z,15,Q.is10BitSupported)}; WP0=function(Z,Q){kj(Z,1,Q.audioCodec);kj(Z,2,Q.numChannels);kj(Z,3,Q.maxBitrateBps);kj(Z,6,Q.spatialCapabilityBitmask)}; V14=function(Z,Q){if(Q.itagDenylist)for(var z=0;z<Q.itagDenylist.length;z++)kj(Z,1,Q.itagDenylist[z])}; Vu=function(Z,Q){Fg(Z,1,Q.clientInfo,kvM,3);xj(Z,2,Q.rB);xj(Z,3,Q.playbackCookie);xj(Z,4,Q.XE);if(Q.m8)for(var z=0;z<Q.m8.length;z++)Fg(Z,5,Q.m8[z],upW,3);if(Q.yX)for(z=0;z<Q.yX.length;z++)kj(Z,6,Q.yX[z]);tK(Z,7,Q.q6g);Fg(Z,8,Q.AE,xf9,3)}; t14=function(Z,Q){kj(Z,1,Q.VoF);kj(Z,2,Q.ktJ)}; FPG=function(Z,Q){var z=Q.code;z!==void 0&&(V5(Z,8),V5(Z,z<<1^z>>31));tK(Z,2,Q.message)}; e50=function(Z,Q){kj(Z,1,Q.clientState);Fg(Z,2,Q.oxI,t14,1)}; xf9=function(Z,Q){xj(Z,1,Q.vXp);Fg(Z,2,Q.rjp,FPG,3);Fg(Z,3,Q.coldStartInfo,e50,3)}; upW=function(Z,Q){kj(Z,1,Q.type);xj(Z,2,Q.value)}; kvM=function(Z,Q){tK(Z,1,Q.hl);tK(Z,12,Q.deviceMake);tK(Z,13,Q.deviceModel);kj(Z,16,Q.clientName);tK(Z,17,Q.clientVersion);tK(Z,18,Q.osName);tK(Z,19,Q.osVersion)}; wh4=function(Z,Q){tK(Z,1,Q.name);tK(Z,2,Q.value)}; EHd=function(Z,Q){tK(Z,1,Q.url);if(Q.e8)for(var z=0;z<Q.e8.length;z++)Fg(Z,2,Q.e8[z],wh4,3);xj(Z,3,Q.postBody);u9(Z,4,Q.lG$);u9(Z,6,Q.f2)}; Pz9=function(Z,Q){xj(Z,2,Q.Qq);xj(Z,5,Q.encryptedClientKey);xj(Z,6,Q.iv);xj(Z,7,Q.Tx);u9(Z,10,Q.Qj);u9(Z,13,Q.Cb);u9(Z,14,Q.Pb);xj(Z,16,Q.ZK7);u9(Z,17,Q.xB)}; l0d=function(Z){return{qC:Ce(Z,1),DA:Ce(Z,2),body:HA(Z,4)}}; R5x=function(Z,Q){tK(Z,1,Q.token)}; sxf=function(Z){return{token:MH(Z,1)}}; ZHn=function(Z){return{nj:Ce(Z,1),QCB:Ce(Z,2)}}; bHn=function(Z,Q){Fg(Z,1,Q.Yx,W3,3);if(Q.KQ)for(var z=0;z<Q.KQ.length;z++)Fg(Z,2,Q.KQ[z],kN,3);if(Q.UA)for(z=0;z<Q.UA.length;z++)Fg(Z,3,Q.UA[z],Hwn,3);xj(Z,5,Q.videoPlaybackUstreamerConfig);if(Q.gb)for(z=0;z<Q.gb.length;z++)Fg(Z,6,Q.gb[z],QxM,3);if(Q.Un)for(z=0;z<Q.Un.length;z++)Fg(Z,16,Q.Un[z],kN,3);if(Q.YK)for(z=0;z<Q.YK.length;z++)Fg(Z,17,Q.YK[z],kN,3);if(Q.Ql)for(z=0;z<Q.Ql.length;z++)Fg(Z,18,Q.Ql[z],kN,3);Fg(Z,19,Q.ZJ,Vu,3);Fg(Z,21,Q.Rs,zzn,3);kj(Z,22,Q.A5);kj(Z,23,Q.G4);if(Q.zl)for(z=0;z<Q.zl.length;z++)Fg(Z, 1E3,Q.zl[z],Ko4,3)}; QxM=function(Z,Q){Fg(Z,1,Q.formatId,kN,3);kj(Z,2,Q.I4);kj(Z,3,Q.sequenceNumber);Fg(Z,4,Q.Ez,uJ,1);kj(Z,5,Q.Vy);kj(Z,6,Q.iL)}; zzn=function(Z,Q){if(Q.Tq)for(var z=0;z<Q.Tq.length;z++)tK(Z,1,Q.Tq[z]);xj(Z,2,Q.Xu);tK(Z,3,Q.N7);kj(Z,4,Q.Zy);kj(Z,5,Q.Z7);tK(Z,6,Q.Ml)}; Ko4=function(Z,Q){if(Q.KQ)for(var z=0;z<Q.KQ.length;z++)Fg(Z,1,Q.KQ[z],kN,3);if(Q.UA)for(z=0;z<Q.UA.length;z++)Fg(Z,2,Q.UA[z],Hwn,3);tK(Z,3,Q.clipId)}; g.td=function(Z,Q){Fg(Z,1,Q.Yx,W3,3);xj(Z,3,Q.videoPlaybackUstreamerConfig);Fg(Z,5,Q.ZJ,Vu,3);Fg(Z,6,Q.Rs,zzn,3)}; AH9=function(Z,Q){tK(Z,1,Q.cpn);kj(Z,2,Q.sequenceNumber);tK(Z,3,Q.serializedWatchEndpointLoggingContext);if(Q.decoderInfo)for(var z=0;z<Q.decoderInfo.length;z++)Fg(Z,6,Q.decoderInfo[z],q14,3);tK(Z,9,Q.playerResponseCpn);kj(Z,10,Q.transitionStitchType);kj(Z,12,Q.timestampOffsetMsecs);kj(Z,15,Q.remoteControlMode);if(Q.remoteConnectedDevices)for(z=0;z<Q.remoteConnectedDevices.length;z++)Fg(Z,16,Q.remoteConnectedDevices[z],rHn,3);xj(Z,17,Q.serializedHouseBrandPlayerServiceLoggingContext)}; q14=function(Z,Q){kj(Z,1,Q.elapsedTimeMs);tK(Z,3,Q.videoDecoderName)}; rHn=function(Z,Q){kj(Z,1,Q.deviceInterface);tK(Z,2,Q.deviceVersion);u9(Z,3,Q.isSleeping)}; jx9=function(Z){return{first:Ce(Z,1),PY:Ce(Z,2)}}; D4n=function(Z){return{bitrate:Ce(Z,6),width:Ce(Z,7),height:Ce(Z,8),fps:Ce(Z,25),averageBitrate:Ce(Z,31),audioSampleRate:Ce(Z,45),audioChannels:Ce(Z,46)}}; FP=function(Z){return{itagDenylist:OP(Z,1)}}; Y14=function(Z){return{Vxf:Ce(Z,1),itag:MH(Z,3),WU:UP(Z,4,vEd),lmt:Ce(Z,5),NSY:Ce(Z,7),xtags:MH(Z,15),bdp:UP(Z,23,gEG),HE:UP(Z,34,FP)}}; vEd=function(Z){return{iv:HA(Z,5),DBB:pe(Z,7)}}; Xex=function(Z){return{v$:OP(Z,2),videoId:MH(Z,3),VK:Ce(Z,4)}}; gEG=function(Z){return{videoId:MH(Z,2)}}; S1M=function(Z){return{Y7:Ce(Z,3),Le:Ce(Z,4),r0:Ce(Z,5),EXI:pe(Z,8),Sug:Ce(Z,10),UB:Ce(Z,12),Qy:Ce(Z,13),MS:Ce(Z,14),eN:Ce(Z,15),U4:Ce(Z,16)}}; $4r=function(Z){return{targetAudioReadaheadMs:Ce(Z,1),targetVideoReadaheadMs:Ce(Z,2),backoffTimeMs:Ce(Z,4),playbackCookie:HA(Z,7),videoId:MH(Z,8)}}; T7n=function(Z){return{minBandwidthBytesPerSec:Ce(Z,1),minReadaheadMs:Ce(Z,2)}}; fB4=function(Z){return{startMinReadaheadPolicy:ov(Z,1,T7n),resumeMinReadaheadPolicy:ov(Z,2,T7n)}}; hzx=function(Z){return{label:MH(Z,1),text:MH(Z,2)}}; Lo9=function(Z){return{videoId:MH(Z,1),formatId:UP(Z,2,xN),debugInfo:ov(Z,3,hzx)}}; nEG=function(Z){return{bL:ov(Z,1,Lo9)}}; cHx=function(Z){return{eW:Ce(Z,1),Lq:Ce(Z,2),minReadaheadMs:Ce(Z,3)}}; m4G=function(Z){return{BU:Ce(Z,1),items:ov(Z,2,cHx),Qo:Ce(Z,3)}}; IBr=function(Z){return{token:MH(Z,1),videoId:MH(Z,2)}}; JHf=function(Z){return{UX:Ce(Z,1)}}; yHf=function(Z){return{GyN:MH(Z,1),action:Ce(Z,2),X_:UP(Z,3,JHf)}}; eZ=function(Z){return{Up:Ce(Z,1),Qg:Ce(Z,2),seekSource:Ce(Z,3)}}; N79=function(Z){return{yb:ov(Z,1,d4d),ANu:MH(Z,2)}}; GQn=function(Z){return{A7:MH(Z,1),HU:Ce(Z,2),IIf:Ce(Z,3),oY:Ce(Z,4),f5:Ce(Z,5),PU:Ce(Z,6)}}; iHn=function(Z){return{gJ:Ce(Z,1)}}; d4d=function(Z){return{clipId:MH(Z,1),vJ:UP(Z,2,GQn),Ai:UP(Z,3,iHn)}}; aB9=function(Z){return{type:Ce(Z,1),scope:Ce(Z,2),value:HA(Z,3),sendByDefault:pe(Z,4),writePolicy:Ce(Z,5)}}; P69=function(Z){var Q=[];Z=g.n(Z.split(","));for(var z=Z.next();!z.done;z=Z.next()){var K=z.value;K&&((z=K.startsWith("!"))&&(K=K.substring(1)),K=K.split("-"),K.length<3||Q.push({Lx:K[0],platform:K[1],deviceVersion:K[2],eR:z}))}return Q}; pe4=function(Z){return P69(Z).map(function(Q){return{deviceInterface:RzG[C64[Q.Lx]]||0,deviceVersion:Q.deviceVersion||"",isSleeping:Q.eR}})}; g.w0=function(Z,Q){this.id=Z;this.Qw=Q;this.captionTracks=[];this.S=this.W=null;this.xtags="";this.L=!1;this.Y=null;this.j="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN";Z=this.Qw.id.split(".");Z.length>1&&(this.L=Z[1]==="2")}; Ee=function(Z,Q,z,K,b){this.j=Z;this.Y=Q;this.S=z;this.reason=K;this.Yq=b===void 0?0:b}; g.lJ=function(Z,Q,z,K){return new Ee(g.o3[Z]||0,g.o3[Q]||0,z,K)}; Z5=function(Z){if(sJ&&Z.Yq)return!1;var Q=g.o3.auto;return Z.j===Q&&Z.Y===Q}; zL=function(Z){return Qy[Z.Y||Z.j]||"auto"}; HHn=function(Z,Q){Q=g.o3[Q];return Z.j<=Q&&(!Z.Y||Z.Y>=Q)}; KZ=function(Z){return"["+Z.j+"-"+Z.Y+", override: "+(Z.S+", reason: "+Z.reason+"]")}; b2=function(Z,Q,z){this.videoInfos=Z;this.Y=Q;this.audioTracks=[];if(this.Y){Z=new Set;z==null||z({ainfolen:this.Y.length});Q=g.n(this.Y);for(var K=Q.next();!K.done;K=Q.next())if(K=K.value,!K.Qw||Z.has(K.Qw.id)){var b=void 0,q=void 0,r=void 0;(r=z)==null||r({atkerr:!!K.Qw,itag:K.itag,xtag:K.Y,lang:((b=K.Qw)==null?void 0:b.name)||"",langid:((q=K.Qw)==null?void 0:q.id)||""})}else b=new g.w0(K.id,K.Qw),Z.add(K.Qw.id),this.audioTracks.push(b);z==null||z({atklen:this.audioTracks.length})}}; qV=function(){g.O.apply(this,arguments);this.Y=null}; oEn=function(Z,Q,z,K,b,q,r){if(Z.Y)return Z.Y;var D={},v=new Set,Y={};if(rL(K)){for(var X in K.Y)K.Y.hasOwnProperty(X)&&(Z=K.Y[X],Y[Z.info.Gf]=[Z.info]);return Y}X=MX9(Q,K,D);q&&b({aftsrt:A0(X)});for(var S={},T=g.n(Object.keys(X)),f=T.next();!f.done;f=T.next()){f=f.value;for(var h=g.n(X[f]),m=h.next();!m.done;m=h.next()){m=m.value;var J=m.itag,d=void 0,G=f+"_"+(((d=m.video)==null?void 0:d.fps)||0);S.hasOwnProperty(G)?S[G]===!0?Y[f].push(m):D[J]=S[G]:(d=jl(Q,m,z,K.isLive,v),d!==!0?(r.add(f),D[J]=d, d==="disablevp9hfr"&&(S[G]="disablevp9hfr")):(Y[f]=Y[f]||[],Y[f].push(m),S[G]=!0))}}q&&b({bfflt:A0(Y)});for(var R in Y)Y.hasOwnProperty(R)&&(K=R,Y[K]&&Y[K][0].Gy()&&(Y[K]=Y[K],Y[K]=U4u(Q,Y[K],D),Y[K]=OHG(Y[K],D)));q&&Object.keys(D).length>0&&b({rjr:d8(D)});Q=g.n(v.values());for(K=Q.next();!K.done;K=Q.next())(K=z.j.get(K.value))&&--K.a_;q&&b({aftflt:A0(Y)});Z.Y=g.hl(Y,function(U){return!!U.length}); return Z.Y}; Wod=function(Z,Q,z,K,b,q,r,D){D=D===void 0?!1:D;if(Q.kL&&r&&r.length>1&&!(Q.k8>0||Q.X)){for(var v=Q.j||!!b,Y=v&&Q.ih?q:void 0,X=MX9(Q,K),S=[],T=[],f={},h=0;h<r.length;h++){var m=r[h],J=K.S.get(m);if(J&&J.info){var d=J.info;J=d.Gf;if(jl(Q,d,z,K.isLive)){m=d.Gy()?S:T;d=g.n(X[J]);for(var G=d.next();!G.done;G=d.next()){G=G.value;var R=void 0,U=J+"_"+(((R=G.video)==null?void 0:R.fps)||0);f.hasOwnProperty(U)?f[U]===!0&&m.push(G):jl(Q,G,z,K.isLive)&&(m.push(G),f[U]=!0)}}else v&&q({opfu:m})}}if(S.length&& T.length)return v&&q({opfm:S[0].itag+","+T[0].itag}),Rn(new b2(S,T,Y))}return B7n(Z,Q,z,K,b,q,D)}; B7n=function(Z,Q,z,K,b,q,r){function D(d){return!!S[d]} var v=Q.j||!!b,Y=v&&Q.ih?q:void 0,X=new Set,S=oEn(Z,Q,z,K,q,v,X);D5(K)&&(S=VXW(z,S,b,v,q,Q),v&&q({enflt:A0(S)}));Q.Qp=kQG(S,Q);if(rL(K))return q=g.Fm(Object.values(S),function(d){return!!d.length&&!!d[0].audio}),Z=g.Fm(Object.values(S),function(d){return!!d.length&&!!d[0].video}),q&&Z||PX(),Rn(new b2(Z,q,Y)); b=ua4(Q);v&&q({audioPrefOrder:b.join("_")});Z=[];if(Q.Ph){b=g.jr(b,D);for(var T=new Set,f=g.n(b),h=f.next();!h.done;h=f.next()){h=g.n(S[h.value]);for(var m=h.next();!m.done;m=h.next())m=m.value,m.Qw&&!T.has(m.Qw.id)&&(T.add(m.Qw.id),Z.push(m))}if(Z.length===0){if(b.length===0)return v&&q({noaudio:1}),PX();Z=S[b[0]]}}else{Z=g.Fm(b,D);if(!Z)return v&&q({noaudio:1}),PX();Z=S[Z]}S["9"]&&S.h&&K.fd&&!Q.Zu&&(v&&q({dltvp9:1}),delete S["9"]);if(r){v&&q({bfsflt:A0(S),bfsflta:vo(z)});x4x(z,X);v&&q({bfsfltb:vo(z)}); for(var J in S)if(S.hasOwnProperty(J)&&(r=J,!(r==="f"||Q.Vp===0&&tX4.has(r))))for(X=g.n(S[r]),b=X.next();!b.done;b=X.next())b=b.value,Q.IW?Fou(z,r,b):ezG(z,r,b);v&&q({aftsflt:vo(z)})}r=S["1h"]?"1h":"1";z=S["9h"]?"9h":"9";b=S[r];T=S[z];b&&b.length&&(Q.Y.highestAv1Resolution=b[b.length-1].video.Y);T&&T.length&&(Q.Y.highestVp9Resolution=T[T.length-1].video.Y);J=[];X=[];if(Q.bY&&b)J=b,X=[r],q({forceAv1:r});else if(Q.X&&!Q.u1)for(X=we4(K)?S["1h"]||S["9h"]?["1h","9h"]:["9","h"]:["1","9","h"],v&&q({newhybpref:X.join(".")}), b=g.n(X),T=b.next();!T.done;T=b.next())J=J.concat(S[T.value]).filter(function(d){return d}); else Q.k8>0&&T&&b&&(X=[r,z],J=b.concat(T).filter(function(d){return d})); if(J.length&&!Q.u1){gL(J,X);if(v){v=[];Q=g.n(J);for(K=Q.next();!K.done;K=Q.next())v.push(K.value.itag);q({hbdfmt:v.join(".")})}return Rn(new b2(J,Z,Y))}J=EEG(Q);J=g.Fm(J,D);if(!J){if(S[r])return q=S[r],gL(q),Rn(new b2(q,Z,Y));v&&q({novideo:1});return PX()}Q.De&&(J==="1"||J==="1h")&&S[z]&&(r=YL(S[J]),X=YL(S[z]),X>r?J=z:X===r&&lBf(S[z])&&(J=z));J==="9"&&S.h&&YL(S.h)>YL(S["9"])&&(J="h");Q.F7&&K.isLive&&J==="("&&S.H&&YL(S["("])<1440&&(J="H");v&&q({vfmly:XU(J)});Q=S[J];if(!Q.length)return v&&q({novfmly:XU(J)}), PX();gL(Q);return Rn(new b2(Q,Z,Y))}; kQG=function(Z,Q){var z=!(!Z.m&&!Z.M),K=!(!Z.mac3&&!Z.MAC3),b=!(!Z.meac3&&!Z.MEAC3);Z=!(!Z.i&&!Z.I);Q.yk=Z;return z||K||b||Z}; lBf=function(Z){Z=g.n(Z);for(var Q=Z.next();!Q.done;Q=Z.next())if(Q=Q.value,Q.itag&&s3X.has(Q.itag))return!0;return!1}; XU=function(Z){switch(Z){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return Z}}; A0=function(Z){var Q=[],z;for(z in Z)if(Z.hasOwnProperty(z)){var K=z;Q.push(XU(K));K=g.n(Z[K]);for(var b=K.next();!b.done;b=K.next())Q.push(b.value.itag)}return Q.join(".")}; VXW=function(Z,Q,z,K,b,q){var r={},D={};g.fx(Q,function(v,Y){v=v.filter(function(X){var S=X.itag;if(!X.NR)return D[S]="noenc",!1;if(q.X7&&X.Gf==="(h"&&q.gq)return D[S]="lichdr",!1;if(!Z.S&&X.Gf==="1e")return D[S]="noav1enc",!1;if(X.Gf==="("||X.Gf==="(h"){if(Z.L&&z&&z.flavor==="widevine"){var T=X.mimeType+"; experimental=allowed";(T=!!X.NR[z.flavor]&&!!z.Y[T])||(D[S]=X.NR[z.flavor]?"unspt":"noflv");return T}if(!Sl(Z,$L.CRYPTOBLOCKFORMAT)&&!Z.Vp||Z.JG)return D[S]=Z.JG?"disvp":"vpsub",!1}return z&&X.NR[z.flavor]&& z.Y[X.mimeType]?!0:(D[S]=z?X.NR[z.flavor]?"unspt":"noflv":"nosys",!1)}); v.length&&(r[Y]=v)}); K&&Object.entries(D).length&&b({rjr:d8(D)});return r}; OHG=function(Z,Q){var z=J$(Z,function(K,b){return b.video.fps>32?Math.min(K,b.video.width):K},Infinity); z<Infinity&&(Z=Z.filter(function(K){if(K.video.fps>32||K.video.width<z)return!0;Q[K.itag]="hfrfirst";return!1})); xq()&&(Z=Z.filter(function(K){if(K.itag!=="299")return!0;Q[K.itag]="ps3hfr1080";return!1})); return Z}; U4u=function(Z,Q,z){return Q=Q.filter(function(K){if(K.video.Y<=Z.Sp)return!0;z[K.itag]="maxquality";return!1})}; MX9=function(Z,Q,z){var K={},b;for(b in Q.Y)if(Q.Y.hasOwnProperty(b)){var q=Q.Y[b].info;if(Z.T&&q.video&&q.video.Y<Z.T)z&&(z[q.itag]="min"+Z.T);else{var r=q.Gf;K[r]=K[r]||[];K[r].push(q)}}Z=g.n(Object.keys(K));for(Q=Z.next();!Q.done;Q=Z.next())gL(K[Q.value]);return K}; YL=function(Z){return J$(Z,function(Q,z){return Math.max(Q,z.video.Y)},0)}; jl=function(Z,Q,z,K,b){b=b===void 0?new Set:b;if(Q.Gf==="")return"unkn";if((Q.itag==="304"||Q.itag==="266")&&Z.JG)return"blk2khfr";if(Z.K&&Q.video&&Q.video.Y>Z.K)return"max"+Z.K;if(Z.CN&&Q.Gf==="h"&&Q.video&&Q.video.Y>1080)return"blkhigh264";if(Q.Gf==="(h"&&!z.T)return"enchdr";if((K===void 0?0:K)&&Es(Q)&&!Z.Du)return"blk51live";if((Q.Gf==="MAC3"||Q.Gf==="mac3")&&!Z.W)return"blkac3";if((Q.Gf==="MEAC3"||Q.Gf==="meac3")&&!Z.L)return"blkeac3";if((Q.Gf==="M"||Q.Gf==="m")&&!Z.SJ)return"blkaac51";if((Q.Gf=== "so"||Q.Gf==="sa")&&!Z.P7)return"blkamb";if(!Z.X7&&gCn(Q)&&(!z.S||Q.Gf!=="1e"))return"cbc";if(!z.S&&gCn(Q)&&Q.Gf==="1e")return"cbcav1";if((Q.Gf==="i"||Q.Gf==="I")&&!Z.sA)return"blkiamf";if(Q.itag==="774"&&!Z.KN)return"blkouh";var q,r;if(Z.NB&&(Q.Gf==="1"||Q.Gf==="1h"||z.S&&Q.Gf==="1e")&&((q=Q.video)==null?0:q.Y)&&((r=Q.video)==null?void 0:r.Y)>Z.NB)return"av1cap";if((K=z.j.get(Q.Gf))&&K.a_>0)return b.add(Q.Gf),"byerr";var D;if((D=Q.video)==null?0:D.fps>32){if(!z.c7&&!Sl(z,$L.FRAMERATE))return"capHfr"; if(Z.qB&&Q.video.Y>=4320)return"blk8khfr";if(xh(Q)&&Z.Pg&&Q.NR&&Q.video.Y>=1440)return"disablevp9hfr"}if(Z.Yq&&Q.Yq>Z.Yq)return"ratecap";Z=ZIG(z,Q);return Z!==!0?Z:!0}; gL=function(Z,Q){Q=Q===void 0?[]:Q;g.DI(Z,function(z,K){var b=K.Yq-z.Yq;if(!z.Gy()||!K.Gy())return b;var q=K.video.height*K.video.width-z.video.height*z.video.width;!q&&Q&&Q.length>0&&(z=Q.indexOf(z.Gf)+1,K=Q.indexOf(K.Gf)+1,q=z===0||K===0?K||-1:z-K);q||(q=b);return q})}; g.TL=function(Z,Q){this.j=Z;this.W=Q===void 0?!1:Q;this.S=this.path=this.scheme="";this.Y={};this.url=""}; h0=function(Z){fZ(Z);return Z.S}; LZ=function(Z){return Z.j?Z.j.startsWith("local"):Z.scheme==="local"}; Q3D=function(Z){fZ(Z);return g.nx(Z.Y,function(Q){return Q!==null})}; nZ=function(Z){fZ(Z);var Q=decodeURIComponent(Z.get("mn")||"").split(",");return Z.path==="/videoplayback"&&Q.length>1&&!!Q[1]}; co=function(Z,Q){Q=Q===void 0?!1:Q;fZ(Z);if(Z.path!=="/videoplayback"){var z=Z.clone();z.set("playerfallback","1");return z}var K=Z.sS();z=new g.jg(K);var b=Z.get("fvip"),q=decodeURIComponent(Z.get("mn")||"").split(",");if(b&&q&&q.length>1&&q[1])return K=z.Y,Z=K.replace(/^[^.]*/,""),g.vJ(z,(K.indexOf("rr")===0?"rr":"r")+b+"---"+q[1]+Z),z=new g.TL(z.toString()),z.set("fallback_count","1"),z;if(Q)return z=Z.clone(),z.set("fallback_count","1"),z;b=z.Y.match("\\.a1\\.googlevideo\\.com$");z.Y.match("\\.googlevideo\\.com$")? (g.vJ(z,"redirector.googlevideo.com"),K=z.toString()):z.Y.match("rr?[1-9].*\\.c\\.youtube\\.com$")?(g.vJ(z,"www.youtube.com"),K=z.toString()):(z=zuu(K),ZB(z)&&(K=z));z=new g.TL(K);z.set("cmo=pf","1");b&&z.set("cmo=td","a1.googlevideo.com");return z}; fZ=function(Z){if(Z.j){if(!ZB(Z.j)&&!Z.j.startsWith("local"))throw new g.tW("Untrusted URL",Z.j);var Q=g.fB(Z.j);Z.scheme=Q.L;Z.S=Q.Y+(Q.S!=null?":"+Q.S:"");var z=Q.j;if(z.startsWith("/videoplayback"))Z.path="/videoplayback",z=z.slice(14);else if(z.startsWith("/initplayback"))Z.path="/initplayback",z=z.slice(13);else if(z.startsWith("/api/manifest")){var K=z.indexOf("/",12),b=z.indexOf("/",K+1);K>0&&b>0?(Z.path=z.slice(0,b),z=z.slice(b+1)):(Z.path=z,z="")}else Z.path=z,z="";K=Z.Y;Z.Y=zfn(z);Object.assign(Z.Y, Krn(Q.W.toString()));Object.assign(Z.Y,K);Z.Y.file==="index.m3u8"&&(delete Z.Y.file,Z.path+="/file/index.m3u8");Z.j="";Z.url="";Z.W&&(Q=HhG(),fZ(Z),z=Z.Y[Q]||null)&&(z=bI4[0](z),Z.set(Q,z),Z.W||HhG(""))}}; qs4=function(Z){fZ(Z);var Q=Z.scheme+(Z.scheme?"://":"//")+Z.S+Z.path;if(Q3D(Z)){var z=[];g.fx(Z.Y,function(K,b){K!==null&&z.push(b+"="+K)}); Q+="?"+z.join("&")}return Q}; zfn=function(Z){Z=Z.split("/");var Q=0;Z[0]||Q++;for(var z={};Q<Z.length;Q+=2)Z[Q]&&r7d(z,Z[Q],Z[Q+1]);return z}; Krn=function(Z){Z=Z.split("&");for(var Q={},z=0;z<Z.length;z++){var K=Z[z],b=K.indexOf("=");b>0?r7d(Q,K.slice(0,b),K.slice(b+1)):K&&(Q[K]="")}return Q}; r7d=function(Z,Q,z){if(Q==="cmo"){var K;(K=z.indexOf("="))>=0?(Q="cmo="+z.slice(0,K),z=z.slice(K+1)):(K=z.indexOf("%3D"))>=0&&(Q="cmo="+z.slice(0,K),z=z.slice(K+3))}Z[Q]=z}; mG=function(Z){var Q=g.V(Z,A7u)||Z.signatureCipher;Z={zx:!1,MZ:"",KH:"",s:""};if(!Q)return Z;Q=zr(Q);Z.zx=!0;Z.MZ=Q.url;Z.KH=Q.sp;Z.s=Q.s;return Z}; I6=function(Z,Q,z,K,b,q,r,D,v,Y){this.rr=Z;this.startTime=Q;this.duration=z;this.ingestionTime=K;this.sourceURL=b;this.n0=v;this.Y=Y;this.endTime=Q+z;this.j=r||0;this.range=q||null;this.pending=D||!1;this.n0=v||null}; g.J0=function(){this.segments=[];this.Y=null;this.j=!0;this.S=""}; j3f=function(Z,Q){if(Q>Z.h4())Z.segments=[];else{var z=to(Z.segments,function(K){return K.rr>=Q},Z); z>0&&Z.segments.splice(0,z)}}; yy=function(Z,Q,z,K,b){b=b===void 0?!1:b;this.data=Z;this.offset=Q;this.size=z;this.type=K;this.Y=(this.j=b)?0:8;this.dataOffset=this.offset+this.Y}; dL=function(Z){var Q=Z.data.getUint8(Z.offset+Z.Y);Z.Y+=1;return Q}; NV=function(Z){var Q=Z.data.getUint16(Z.offset+Z.Y);Z.Y+=2;return Q}; GL=function(Z){var Q=Z.data.getInt32(Z.offset+Z.Y);Z.Y+=4;return Q}; i2=function(Z){var Q=Z.data.getUint32(Z.offset+Z.Y);Z.Y+=4;return Q}; a6=function(Z){var Q=Z.data;var z=Z.offset+Z.Y;Q=Q.getUint32(z)*4294967296+Q.getUint32(z+4);Z.Y+=8;return Q}; Po=function(Z,Q){Q=Q===void 0?NaN:Q;if(isNaN(Q))var z=Z.size;else for(z=Z.Y;z<Z.size&&Z.data.getUint8(Z.offset+z)!==Q;)++z;Q=new Uint8Array(Z.data.buffer,Z.offset+Z.Y+Z.data.byteOffset,z-Z.Y);Z.Y=Math.min(z+1,Z.size);return JK(Q)}; D54=function(Z){return new Uint8Array(Z.data.buffer,Z.offset+Z.data.byteOffset,Z.size)}; vhn=function(Z){this.offset=0;this.data=new DataView(new ArrayBuffer(Z))}; R6=function(Z,Q,z,K){(new Uint8Array(Z.data.buffer,Z.offset,K)).set(new Uint8Array(Q.buffer,z+Q.byteOffset,K));Z.offset+=K}; CZ=function(Z,Q,z,K,b,q){this.startSecs=Z;this.Nn=Q;this.context=z;this.identifier=K;this.event=b;this.Y=q}; Ho=function(Z,Q){this.data=Z;this.uri=Q||"http://youtube.com/streaming/metadata/segment/102015";this.KM=pZ(this,"Sequence-Number");this.W=pZ(this,"Segment-Count");this.L=this.data["Segment-Durations-Ms"]||"";this.ingestionTime=pZ(this,"Ingestion-Walltime-Us")/1E6;this.Y=(pZ(this,"First-Frame-Time-Us")+pZ(this,"First-Frame-Uncertainty-Us"))/1E6;this.ip=pZ(this,"Target-Duration-Us")/1E6;this.sN=this.data["Stream-Finished"]==="T";this.S=this.data.Streamable==="T";this.cryptoPeriodIndex=pZ(this,"Crypto-Period-Index"); this.j=pZ(this,"Crypto-Period-Seconds")}; YsM=function(Z){return Z.data["Cuepoint-Type"]?new CZ(-(Number(Z.data["Cuepoint-Playhead-Time-Sec"])||0),Number(Z.data["Cuepoint-Total-Duration-Sec"])||0,Z.data["Cuepoint-Context"],Z.data["Cuepoint-Identifier"]||"",ghG[Z.data["Cuepoint-Event"]||""]||"unknown",(Number(Z.data["Cuepoint-Playhead-Time-Sec"])||0)*1E3):null}; XNn=function(Z){return Number(Z.data["Start-Media-Time-Us"])/1E6||0}; pZ=function(Z,Q){return Number(Z.data[Q])||0}; MV=function(Z){return Z.data["Stitched-Video-Cpn"]?Z.data["Stitched-Video-Cpn"].split(",").slice(0,-1):[]}; g.SsG=function(Z){return Z.data["Serialized-State"]?Z.data["Serialized-State"]:""}; g.$5f=function(Z){switch(Z.data["Is-Ad-Break-Finished"]){case "true":return 1;case "false":return 2;default:return 0}}; T8d=function(Z,Q){this.Y=Z;this.duration=Q}; fLM=function(Z,Q,z,K,b){this.j=b;this.Y=Z||0;this.pitch=Q||0;this.yaw=z||0;this.roll=K||0;this.crc=b.getUint32(4)}; UJ=function(Z){var Q={};Z=Z.split("\r\n");for(var z=0;z<Z.length;z++){if(Z[z].length===0)return Q;var K=Z[z].match(/([^:]+):\s+([\S\s]+)/);K!=null&&(Q[K[1]]=K[2])}return null}; hf0=function(Z,Q){var z=g.OJ(Z,0,1952868452);Z=g.OJ(Z,0,1953658222);if(z&&Z){z.skip(1);var K=dL(z)<<16|NV(z);z.skip(4);K&1&&z.skip(8);K&2&&z.skip(4);if(K&8){K=z.Y;var b=i2(z);z.data.setUint32(z.offset+K,Q>1?Math.ceil(b*Q):Math.floor(b*Q))}Z.skip(1);z=dL(Z)<<16|NV(Z);if(z&256){K=z&1;b=z&4;var q=z&512,r=z&1024,D=z&2048;z=i2(Z);K&&Z.skip(4);b&&Z.skip(4);K=(q?4:0)+(r?4:0)+(D?4:0);for(b=0;b<z;b++)q=Z.Y,r=i2(Z),Z.data.setUint32(Z.offset+q,Q>1?Math.ceil(r*Q):Math.floor(r*Q)),Z.skip(K)}}}; Bo=function(Z){Z=new DataView(Z.buffer,Z.byteOffset,Z.byteLength);return(Z=g.OJ(Z,0,1836476516))?g.o6(Z):NaN}; LrD=function(Z){var Q=g.OJ(Z,0,1937011556);if(!Q)return null;Q=Wo(Z,Q.dataOffset+8,1635148593)||Wo(Z,Q.dataOffset+8,1635135537);if(!Q)return null;var z=Wo(Z,Q.dataOffset+78,1936995172),K=Wo(Z,Q.dataOffset+78,1937126244);if(!K)return null;Q=null;if(z)switch(z.skip(4),dL(z)){default:Q=0;break;case 1:Q=2;break;case 2:Q=1;break;case 3:Q=255}var b=z=null,q=null;if(K=Wo(Z,K.dataOffset,1886547818)){var r=Wo(Z,K.dataOffset,1886546020),D=Wo(Z,K.dataOffset,2037673328);if(!D&&(D=Wo(Z,K.dataOffset,1836279920), !D))return null;r&&(r.skip(4),z=GL(r)/65536,q=GL(r)/65536,b=GL(r)/65536);Z=D54(D);Z=new DataView(Z.buffer,Z.byteOffset+8,Z.byteLength-8);return new fLM(Q,z,q,b,Z)}return null}; Wo=function(Z,Q,z){for(;Vy(Z,Q);){var K=kL(Z,Q);if(K.type===z)return K;Q+=K.size}return null}; g.OJ=function(Z,Q,z){for(;Vy(Z,Q);){var K=kL(Z,Q);if(K.type===z)return K;Q=u2(K.type)?Q+8:Q+K.size}return null}; g.xL=function(Z){if(Z.data.getUint8(Z.dataOffset)){var Q=Z.data;Z=Z.dataOffset+4;Q=Q.getUint32(Z)*4294967296+Q.getUint32(Z+4)}else Q=Z.data.getUint32(Z.dataOffset+4);return Q}; kL=function(Z,Q){var z=Z.getUint32(Q),K=Z.getUint32(Q+4);return new yy(Z,Q,z,K)}; g.o6=function(Z){var Q=Z.data.getUint8(Z.dataOffset)?20:12;return Z.data.getUint32(Z.dataOffset+Q)}; nh4=function(Z){Z=new yy(Z.data,Z.offset,Z.size,Z.type,Z.j);var Q=dL(Z);Z.skip(7);var z=i2(Z);if(Q===0){Q=i2(Z);var K=i2(Z)}else Q=a6(Z),K=a6(Z);Z.skip(2);for(var b=NV(Z),q=[],r=[],D=0;D<b;D++){var v=i2(Z);q.push(v);r.push(i2(Z));Z.skip(4)}return{timescale:z,ra:Q,IH:K,qvu:q,l$:r}}; Vy=function(Z,Q){if(Z.byteLength-Q<8)return!1;var z=Z.getUint32(Q);if(z<8||Z.byteLength-Q<z)return!1;for(z=4;z<8;z++){var K=Z.getInt8(Q+z);if(K<48||K>122)return!1}return!0}; u2=function(Z){return Z===1701082227||Z===1836019558||Z===1836019574||Z===1835297121||Z===1835626086||Z===1937007212||Z===1953653094||Z===1953653099||Z===1836475768}; c7f=function(Z){Z.skip(4);return{FYu:Po(Z,0),value:Po(Z,0),timescale:i2(Z),hs$:i2(Z),E3N:i2(Z),id:i2(Z),GH:Po(Z),offset:Z.offset}}; g.m5x=function(Z){var Q=Wo(Z,0,1701671783);if(!Q)return null;var z=c7f(Q),K=z.FYu;z=UJ(z.GH);if(Z=Wo(Z,Q.offset+Q.size,1701671783))if(Z=c7f(Z),Z=UJ(Z.GH),z&&Z){Q=g.n(Object.keys(Z));for(var b=Q.next();!b.done;b=Q.next())b=b.value,z[b]=Z[b]}return z?new Ho(z,K):null}; t0=function(Z,Q){for(var z=Wo(Z,0,Q);z;){var K=z;K.type=1936419184;K.data.setUint32(K.offset+4,1936419184);z=Wo(Z,z.offset+z.size,Q)}}; g.FU=function(Z,Q){for(var z=0,K=[];Vy(Z,z);){var b=kL(Z,z);b.type===Q&&K.push(b);z=u2(b.type)?z+8:z+b.size}return K}; ILr=function(Z,Q){var z=g.OJ(Z,0,1937011556),K=g.OJ(Z,0,1953654136);if(!z||!K||Z.getUint32(z.offset+12)>=2)return null;var b=new DataView(Q.buffer,Q.byteOffset,Q.length),q=g.OJ(b,0,1937011556);if(!q)return null;Q=b.getUint32(q.dataOffset+8);K=b.getUint32(q.dataOffset+12);if(K!==1701733217&&K!==1701733238)return null;K=new vhn(Z.byteLength+Q);R6(K,Z,0,z.offset+12);K.data.setInt32(K.offset,2);K.offset+=4;R6(K,Z,z.offset+16,z.size-16);R6(K,b,b.byteOffset+q.dataOffset+8,Q);R6(K,Z,z.offset+z.size,Z.byteLength- (z.offset+z.size));z=g.n([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(b=z.next();!b.done;b=z.next())b=g.OJ(Z,0,b.value),K.data.setUint32(b.offset,b.size+Q);Z=g.OJ(K.data,0,1953654136);K.data.setUint32(Z.offset+16,2);return K.data}; J7r=function(Z){var Q=g.OJ(Z,0,1937011556);if(!Q)return null;var z=Z.getUint32(Q.dataOffset+12);if(z!==1701733217&&z!==1701733238)return null;Q=Wo(Z,Q.offset+24+(z===1701733217?28:78),1936289382);if(!Q)return null;z=Wo(Z,Q.offset+8,1935894637);if(!z||Z.getUint32(z.offset+12)!==1667392371)return null;Q=Wo(Z,Q.offset+8,1935894633);if(!Q)return null;Q=Wo(Z,Q.offset+8,1952804451);if(!Q)return null;z=new Uint8Array(16);for(var K=0;K<16;K++)z[K]=Z.getInt8(Q.offset+16+K);return z}; el=function(Z,Q){this.Y=Z;this.pos=0;this.start=Q||0}; wL=function(Z){return Z.pos>=Z.Y.byteLength}; QT=function(Z,Q,z){var K=new el(z);if(!EJ(K,Z))return!1;K=l2(K);if(!sX(K,Q))return!1;for(Z=0;Q;)Q>>>=8,Z++;Q=K.start+K.pos;var b=ZE(K,!0);K=Z+(K.start+K.pos-Q)+b;K=K>9?y7n(K-9,8):y7n(K-2,1);Z=Q-Z;z.setUint8(Z++,236);for(Q=0;Q<K.length;Q++)z.setUint8(Z++,K[Q]);return!0}; d5G=function(Z){var Q=new el(Z);Q.BS();if(EJ(Q,[408125543,374648427,174,224]))Q=l2(Q);else return null;for(var z=Z=null;!wL(Q);){var K=ZE(Q,!1);if(K===21432)switch(z9(Q)){default:Z=0;break;case 1:Z=1;break;case 3:Z=2;break;case 15:Z=255}else K===30320?z=l2(Q):KQ(Q)}if(!z)return null;for(var b,q=K=Q=null;!wL(z);)switch(ZE(z,!1)){case 30321:if(z9(z)!==3)return null;break;case 30324:Q=b7(z);break;case 30323:q=b7(z);break;case 30325:K=b7(z);break;case 30322:b=ZE(z,!0);b=qo(z,b);b=new DataView(b.buffer, b.byteOffset,b.byteLength);break;default:KQ(z)}return b?new fLM(Z,Q,q,K,b):null}; l2=function(Z){var Q=ZE(Z,!0),z=Z.Y.byteOffset+Z.pos;z=new DataView(Z.Y.buffer,z,Math.min(Q,Z.Y.buffer.byteLength-z));z=new el(z,Z.start+Z.pos);Z.pos+=Q;return z}; z9=function(Z){for(var Q=ZE(Z,!0),z=rm(Z),K=1;K<Q;K++)z=z*256+rm(Z);return z}; b7=function(Z){var Q=ZE(Z,!0),z=0;Q===4?z=Z.Y.getFloat32(Z.pos):Q===8&&(z=Z.Y.getFloat64(Z.pos));Z.pos+=Q;return z}; N8G=function(Z){var Q=ZE(Z,!0);return JK(qo(Z,Q))}; rm=function(Z){return Z.Y.getUint8(Z.pos++)}; ZE=function(Z,Q){var z=rm(Z);if(z===1){for(Q=z=0;Q<7;Q++)z=z*256+rm(Z);return z}for(var K=128,b=0;b<6&&K>z;b++)z=z*256+rm(Z),K*=128;return Q?z-K:z}; KQ=function(Z){var Q=ZE(Z,!0);Z.pos+=Q}; GZu=function(Z){if(!sX(Z,440786851,!0))return null;var Q=Z.pos;ZE(Z,!1);var z=ZE(Z,!0)+Z.pos-Q;Z.pos=Q+z;if(!sX(Z,408125543,!1))return null;ZE(Z,!0);if(!sX(Z,357149030,!0))return null;var K=Z.pos;ZE(Z,!1);var b=ZE(Z,!0)+Z.pos-K;Z.pos=K+b;if(!sX(Z,374648427,!0))return null;var q=Z.pos;ZE(Z,!1);var r=ZE(Z,!0)+Z.pos-q,D=new Uint8Array(z+12+b+r),v=new DataView(D.buffer);D.set(new Uint8Array(Z.Y.buffer,Z.Y.byteOffset+Q,z));v.setUint32(z,408125543);v.setUint32(z+4,33554431);v.setUint32(z+8,4294967295); D.set(new Uint8Array(Z.Y.buffer,Z.Y.byteOffset+K,b),z+12);D.set(new Uint8Array(Z.Y.buffer,Z.Y.byteOffset+q,r),z+12+b);return D}; At=function(Z){var Q=Z.pos;Z.pos=0;var z=1E6;EJ(Z,[408125543,357149030,2807729])&&(z=z9(Z));Z.pos=Q;return z}; iIX=function(Z,Q){var z=Z.pos;Z.pos=0;if(Z.Y.getUint8(Z.pos)!==160&&!jc(Z)||!sX(Z,160))return Z.pos=z,NaN;ZE(Z,!0);var K=Z.pos;if(!sX(Z,161))return Z.pos=z,NaN;ZE(Z,!0);rm(Z);var b=rm(Z)<<8|rm(Z);Z.pos=K;if(!sX(Z,155))return Z.pos=z,NaN;K=z9(Z);Z.pos=z;return(b+K)*Q/1E9}; jc=function(Z){if(!aL9(Z)||!sX(Z,524531317))return!1;ZE(Z,!0);return!0}; aL9=function(Z){if(Z.BS()){if(!sX(Z,408125543))return!1;ZE(Z,!0)}return!0}; EJ=function(Z,Q){for(var z=0;z<Q.length;z++){if(!sX(Z,Q[z]))return!1;z!==Q.length-1&&ZE(Z,!0)}return!0}; sX=function(Z,Q,z){z=z===void 0?!1:z;if(wL(Z))return!1;for(var K=Z.pos;ZE(Z,!1)!==Q;)if(KQ(Z),K=Z.pos,wL(Z))return!1;z&&(Z.pos=K);return!0}; y7n=function(Z,Q){Q||(Q=Math.ceil(Math.log(Z+2)/Math.log(2)/7));for(var z=1<<8-Q,K=[];K.length<Q-1;)K.unshift(Z%256),Z=Math.floor(Z/256);K.unshift(Z|z);return K}; qo=function(Z,Q){var z=new Uint8Array(Z.Y.buffer,Z.Y.byteOffset+Z.pos,Q);Z.pos+=Q;return z}; DE=function(Z){this.pM=Z;this.Y={};this.url=""}; Pt9=function(Z,Q){var z=Q.indexOf("?");if(z>0){var K=Krn(Q.substring(z+1));g.fx(K,function(b,q){this.set(q,b)},Z); Q=Q.substring(0,z)}Q=zfn(Q);g.fx(Q,function(b,q){this.set(q,b)},Z)}; Rf0=function(Z){var Q=Z.pM.sS(),z=[];g.fx(Z.Y,function(b,q){z.push(q+"="+b)}); if(!z.length)return Q;var K=z.join("&");Z=Q3D(Z.pM)?"&":"?";return Q+Z+K}; vz=function(Z,Q){var z=new g.TL(Q);(Q=z.get("req_id"))&&Z.set("req_id",Q);g.fx(Z.Y,function(K,b){z.set(b,null)}); return z}; Ctx=function(){this.W=this.j=this.Y=this.timedOut=this.started=this.L=this.S=0}; gm=function(Z){Z.L=(0,g.Nm)();Z.started=0;Z.timedOut=0;Z.Y=0}; Yi=function(Z,Q){var z=Z.started+Z.Y*4;Q&&(z+=Z.j);z=Math.max(0,z-3);return Math.pow(1.6,z)}; XM=function(Z,Q){Z[Q]||(Z[Q]=new Ctx);return Z[Q]}; Sc=function(Z){this.U=this.T=this.L=this.j=0;this.X=this.K=!1;this.Y=Z;this.S=Z.clone()}; pNX=function(Z,Q,z){if(LZ(Z.Y))return!1;var K=XM(z,h0(Z.Y));if(K.timedOut<1&&K.Y<1)return!1;K=K.timedOut+K.Y;Z=$i(Z,Q);z=XM(z,h0(Z));return z.timedOut+z.Y+0<K}; T9=function(Z,Q,z){Z=Q?$i(Z,z):Z.Y;return new DE(Z)}; $i=function(Z,Q){Q=Q?Q.Q0:!1;Z.W||(Z.W=co(Z.S,Q));return Z.W}; fQ=function(Z,Q,z){return h0(Q?$i(Z,z):Z.Y)}; ht=function(Z,Q,z,K){Q.TT&&(K===void 0?0:K)>1?Q=Q.TT:(z=XM(z,fQ(Z,Z.Wl(Q,z),Q)),Q=Math.max(Z.L,z.timedOut)+Q.yE*(Z.j-Z.L)+.25*Z.T,Q=Q>3?1E3*Math.pow(1.6,Q-3):0);return Q===0?!0:Z.U+Q<(0,g.Nm)()}; HI9=function(Z,Q,z){Z.Y.set(Q,z);Z.S.set(Q,z);Z.W&&Z.W.set(Q,z)}; M5r=function(Z,Q,z,K,b){++Z.j;Q&&++Z.L;h0(z.pM).startsWith("redirector.")&&(Z.Y=Z.S.clone(),delete Z.W,K.s4&&delete b[h0(Z.Y)])}; LQ=function(Z){return Z?(Z.itag||"")+";"+(Z.lmt||0)+";"+(Z.xtags||""):""}; nQ=function(Z,Q,z,K){this.initRange=z;this.indexRange=K;this.Y=null;this.S=!1;this.K=0;this.W=this.KA=this.j=null;this.info=Q;this.zW=new Sc(Z)}; cz=function(Z,Q){this.start=Z;this.end=Q;this.length=Q-Z+1}; mS=function(Z){Z=Z.split("-");var Q=Number(Z[0]),z=Number(Z[1]);if(!isNaN(Q)&&!isNaN(z)&&Z.length===2&&(Z=new cz(Q,z),!isNaN(Z.start)&&!isNaN(Z.end)&&!isNaN(Z.length)&&Z.length>0))return Z}; Ia=function(Z,Q){return new cz(Z,Z+Q-1)}; U5G=function(Z){return Z.end==null?{start:String(Z.start)}:{start:String(Z.start),end:String(Z.end)}}; Jt=function(Z){if(!Z)return new cz(0,0);var Q=Number(Z.start);Z=Number(Z.end);if(!isNaN(Q)&&!isNaN(Z)&&(Q=new cz(Q,Z),Q.length>0))return Q}; yT=function(Z,Q,z,K,b,q,r,D,v,Y,X,S){K=K===void 0?"":K;this.type=Z;this.Y=Q;this.range=z;this.source=K;this.I4=X;this.clipId=S===void 0?"":S;this.T=[];this.L="";this.rr=-1;this.X=this.U=0;this.L=K;this.rr=b>=0?b:-1;this.startTime=q||0;this.duration=r||0;this.j=D||0;this.S=v>=0?v:this.range?this.range.length:NaN;this.W=this.range?this.j+this.S===this.range.length:Y===void 0?!!this.S:Y;this.range?(this.eP=this.startTime+this.duration*this.j/this.range.length,this.K=this.duration*this.S/this.range.length, this.M8=this.eP+this.K):OIx(this)}; OIx=function(Z){Z.eP=Z.startTime;Z.K=Z.duration;Z.M8=Z.eP+Z.K}; ohn=function(Z,Q,z){var K=!(!Q||Q.Y!==Z.Y||Q.type!==Z.type||Q.rr!==Z.rr);return z?K&&!!Q&&(Z.range&&Q.range?Q.range.end===Z.range.end:Q.range===Z.range)&&Q.j+Q.S===Z.j+Z.S:K}; dm=function(Z){return Z.type===1||Z.type===2}; No=function(Z){return Z.type===3||Z.type===6}; G9=function(Z,Q){return Z.Y===Q.Y?Z.range&&Q.range?Z.range.start+Z.j+Z.S===Q.range.start+Q.j:Z.rr===Q.rr?Z.j+Z.S===Q.j:Z.rr+1===Q.rr&&Q.j===0&&Z.W:!1}; Wrd=function(Z,Q){return Z.rr!==Q.rr&&Q.rr!==Z.rr+1||Z.type!==Q.type?!1:G9(Z,Q)?!0:Math.abs(Z.eP-Q.eP)<=1E-6&&Z.rr===Q.rr?!1:B8r(Z,Q)}; B8r=function(Z,Q){return G9(Z,Q)||Math.abs(Z.M8-Q.eP)<=1E-6||Z.rr+1===Q.rr&&Q.j===0&&Z.W?!0:!1}; i7=function(Z){return Z.rr+(Z.W?1:0)}; V5d=function(Z){Z.length===1||g.It(Z,function(z){return!!z.range}); for(var Q=1;Q<Z.length;Q++);Q=Z[Z.length-1];return new cz(Z[0].range.start+Z[0].j,Q.range.start+Q.j+Q.S-1)}; kZx=function(Z){for(var Q=1;Q<Z.length;Q++)if(!G9(Z[Q-1],Z[Q]))return!1;return!0}; uyr=function(Z){var Q=0;Z=g.n(Z);for(var z=Z.next();!z.done;z=Z.next())Q+=z.value.range.length;return Q}; aa=function(Z){var Q={};Q.itag=Z.Y.info.itag;Q.type=""+Z.type;Q.src=""+Z.source;Q.segsrc=Z.L;Q.seg=String(Z.rr);Z.range&&(Q.range=Z.range.start+Z.j+"-"+(Z.range.start+Z.j+Z.S-1));Q.time=Z.eP.toFixed(1)+"-"+(Z.eP+Z.K).toFixed(1);Q.off=String(Z.j);Q.len=String(Z.S);Z.W&&(Q.end="1");Z.sN()&&(Q.eos="1");Z.clipId&&(Q.cid=Z.clipId);return Q}; x5f=function(Z){return new yT(Z.type,Z.Y,Z.range,"getEmptyStubBefore"+Z.L,Z.rr,Z.startTime,0,Z.j,0)}; t5r=function(Z){return new yT(Z.type,Z.Y,Z.range,"getEmptyStubAfter"+Z.L,Z.rr,Z.startTime+Z.duration,0,Z.j+Z.S,0)}; FrM=function(Z,Q,z,K){return new yT(Z.type,Z.Y,Z.range,"reslice"+Z.L,Z.rr,Z.startTime,Z.duration,Q,z,K,Z.I4,Z.clipId)}; efn=function(Z,Q){return Z.Y!==Q.Y?!1:Z.range&&Q.range?Z.range.start+Z.j>=Q.range.start+Q.j&&Z.range.start+Z.j+Z.S<=Q.range.start+Q.j+Q.S:Z.rr===Q.rr&&Z.j>=Q.j&&(Z.j+Z.S<=Q.j+Q.S||Q.W)}; wNW=function(Z,Q){return Z.Y!==Q.Y?!1:Z.type===4&&Q.type===3&&Z.Y.E6()?(Z=Z.Y.Pf(Z),ih(Z,function(z){return wNW(z,Q)})):Z.rr===Q.rr&&!!Q.S&&Q.j+Q.S>Z.j&&Q.j+Q.S<=Z.j+Z.S}; Pz=function(Z,Q){var z=Q.rr;Z.L="updateWithSegmentInfo";Z.rr=z;if(Z.startTime!==Q.startTime||Z.duration!==Q.duration)Z.startTime=Q.startTime+Z.U,Z.duration=Q.duration,OIx(Z)}; Ra=function(Z,Q){var z=this;this.AG=Z;this.W=this.Y=null;this.L=this.tx=NaN;this.Wl=this.requestId=null;this.zz={NlI:function(){return z.range}}; this.zW=Z[0].Y.zW;this.j=Q||"";this.AG[0].range&&this.AG[0].S>0&&(kZx(Z)?(this.range=V5d(Z),this.S=this.range.length):(this.range=this.AG[this.AG.length-1].range,this.S=uyr(Z)))}; CQ=function(Z){return!dm(Z.AG[Z.AG.length-1])}; pQ=function(Z){return Z.AG[Z.AG.length-1].type===4}; g.Hz=function(Z,Q,z){z=Z.Wl===null?Z.zW.Wl(Q,z,Z.AG[0].type):Z.Wl;if(Z.Y){Q=z?co(Z.Y,Q.Q0):Z.Y;var K=new DE(Q);K.get("alr")||K.set("alr","yes");Z.j&&Pt9(K,Z.j)}else/http[s]?:\/\//.test(Z.j)?K=new DE(new g.TL(Z.j)):(K=T9(Z.zW,z,Q),Z.j&&Pt9(K,Z.j));(Q=Z.range)?K.set("range",Q.toString()):Z.AG[0].Y.cL()&&Z.AG.length===1&&Z.AG[0].j&&K.set("range",Z.AG[0].j+"-");Z.requestId&&K.set("req_id",Z.requestId);isNaN(Z.tx)||K.set("headm",Z.tx.toString());isNaN(Z.L)||K.set("mffa",Z.L+"ms");Z.urlParams&&g.fx(Z.urlParams, function(b,q){K.set(q,b)}); return K}; EhM=function(Z){if(Z.range)return Z.S;Z=Z.AG[0];return Math.round(Z.K*Z.Y.info.Yq)}; lLd=function(Z,Q){return Math.max(0,Z.AG[0].eP-Q)}; Mo=function(Z,Q,z,K,b,q){q=q===void 0?0:q;nQ.call(this,Z,Q,K,void 0);this.L=z;this.ip=q;this.index=b||new g.J0}; sVG=function(Z,Q,z,K,b){this.rr=Z;this.startSecs=Q;this.Nn=z;this.Y=K||NaN;this.j=b||NaN}; UX=function(Z,Q,z){for(;Z;Z=Z.parentNode)if(Z.attributes&&(!z||Z.nodeName===z)){var K=Z.getAttribute(Q);if(K)return K}return""}; OX=function(Z,Q){for(;Z;Z=Z.parentNode){var z=Z.getElementsByTagName(Q);if(z.length>0)return z[0]}return null}; Zsf=function(Z){if(!Z)return 0;var Q=Z.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return Q?(Number(Q[2])|0)*3600+(Number(Q[4])|0)*60+(Number(Q[6])|0):Number(Z)|0}; QVd=function(Z){return Z.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?Z+"Z":Z}; oa=function(){this.Y=[];this.j=null;this.K=0;this.S=[];this.L=!1;this.T="";this.W=-1}; zRW=function(Z){var Q=Z.S;Z.S=[];return Q}; KVx=function(){this.W=[];this.Y=null;this.j={};this.S={}}; Ax4=function(Z,Q){var z=[];Q=Array.from(Q.getElementsByTagName("SegmentTimeline"));Q=g.n(Q);for(var K=Q.next();!K.done;K=Q.next()){K=K.value;var b=K.parentNode.parentNode,q=null;b.nodeName==="Period"?q=bsX(Z):b.nodeName==="AdaptationSet"?(b=b.getAttribute("id")||b.getAttribute("mimetype")||"",q=qZX(Z,b)):b.nodeName==="Representation"&&(b=b.getAttribute("id")||"",q=rxW(Z,b));if(q==null)return;q.update(K);g.KG(z,zRW(q))}g.KG(Z.W,z);Zzr(Z.W,function(r){return r.startSecs*1E3+r.Y})}; jVD=function(Z){Z.Y&&(Z.Y.Y=[]);g.fx(Z.j,function(Q){Q.Y=[]}); g.fx(Z.S,function(Q){Q.Y=[]})}; bsX=function(Z){Z.Y||(Z.Y=new oa);return Z.Y}; qZX=function(Z,Q){Z.j[Q]||(Z.j[Q]=new oa);return Z.j[Q]}; rxW=function(Z,Q){Z.S[Q]||(Z.S[Q]=new oa);return Z.S[Q]}; Wz=function(Z){var Q=Z===void 0?{}:Z;Z=Q.ip===void 0?0:Q.ip;var z=Q.e9===void 0?!1:Q.e9;var K=Q.iR===void 0?0:Q.iR;var b=Q.uY===void 0?0:Q.uY;var q=Q.nZ===void 0?Infinity:Q.nZ;var r=Q.Ln===void 0?0:Q.Ln;var D=Q.Da===void 0?!1:Q.Da;Q=Q.sH===void 0?!1:Q.sH;g.J0.call(this);this.QA=this.E7=-1;this.e$=Z;this.iR=K;this.e9=z;this.uY=b;this.nZ=q;this.Ln=r;((this.Da=D)||isFinite(q)&&this.nZ>0)&&z&&Bz&&(this.j=!1,this.S="postLive");this.sH=Q}; VT=function(Z,Q){return jB(Z.segments,function(z){return Q-z.rr})}; ki=function(Z,Q,z){z=z===void 0?{}:z;Mo.call(this,Z,Q,"",void 0,void 0,z.ip||0);this.index=new Wz(z)}; u7=function(Z,Q,z){nQ.call(this,Z,Q);this.L=z;Z=this.index=new g.J0;Z.j=!1;Z.S="d"}; DBr=function(Z,Q,z){var K=Z.index.ix(Q),b=Z.index.getStartTime(Q),q=Z.index.getDuration(Q);z?q=z=0:z=Z.info.Yq*q;return new Ra([new yT(3,Z,void 0,"otfCreateRequestInfoForSegment",Q,b,q,0,z)],K)}; v69=function(Z,Q){if(!Z.index.isLoaded()){var z=[],K=Q.W;Q=Q.L.split(",").filter(function(X){return X.length>0}); for(var b=0,q=0,r=0,D=/^(\d+)/,v=/r=(\d+)/,Y=0;Y<K;Y++){if(r<=0)if(r=Q.shift(),q=(q=D.exec(r))?+q[1]/1E3:0)r=(r=v.exec(r))?+r[1]:0,r+=1;else return;z.push(new I6(Y,b,q,NaN,"sq/"+(Y+1)));b+=q;r--}Z.index.append(z)}}; xi=function(Z,Q){this.info=Z;this.Y=Q;this.j=null;this.W=this.S=-1;this.timestampOffset=0;this.isLocked=this.K=!1;this.L=this.info.Y.jg()&&!this.info.j}; g64=function(Z,Q){Z.Y.getLength();Q=Math.min(Q,Z.info.S);var z=Z.Y.split(Q),K=z.K6;z=new xi(new yT(Z.info.type,Z.info.Y,Z.info.range,Z.info.L,Z.info.rr,Z.info.startTime,Z.info.duration,Z.info.j,Q,!1,Z.info.I4,Z.info.clipId),z.VE);z.W=Z.W;z.S=Z.S;Q=new xi(new yT(Z.info.type,Z.info.Y,Z.info.range,Z.info.L,Z.info.rr,Z.info.startTime,Z.info.duration,Z.info.j+Q,Z.info.S-Q,Z.info.W,Z.info.I4,Z.info.clipId),K);Q.W=Z.W;Q.S=Z.S;return[z,Q]}; g.tt=function(Z,Q,z){var K;if(!(K=Z.isLocked||Q.isLocked||!G9(Z.info,Q.info)||Z.info.W)){if(z=z===void 0?!1:z)z=Z.Y,K=Q.Y,z=!(K.Vf.length?N1n(z,K.Vf[0]):1);K=z}if(K)return null;z=new yT(Z.info.type,Z.info.Y,Z.info.range,Z.info.L,Z.info.rr,Z.info.startTime,Z.info.duration,Z.info.j,Z.info.S,Z.info.W,Z.info.I4,Z.info.clipId);K=Q.info;z.S+=K.S;z.range&&(z.K+=K.K);z.M8=K.M8;z.W=K.W;K=new fe;hK(K,Z.Y);hK(K,Q.Y);z=new xi(z,K);z.j=Q.j||Z.j;z.S=Z.S!==-1?Z.S:Q.S;z.W=Z.W!==-1?Z.W:Q.W;return z}; g.FM=function(Z){g.lt(Z.info.Y.info)||Z.info.Y.info.Jj();if(Z.S!==-1)return Z.S;if(Z.j&&XNn(Z.j))return Z.S=XNn(Z.j),Z.S;if(g.lt(Z.info.Y.info)){var Q=Z.Vk();for(var z=Z.info.Y.Y,K=NaN,b=NaN,q=0;Vy(Q,q);){var r=kL(Q,q);r.type===1936286840?b=r.data.getUint32(r.dataOffset+8):r.type===1836476516?b=g.o6(r):r.type===1952867444&&isNaN(K)&&(K=g.xL(r));q=u2(r.type)?q+8:q+r.size}!b&&z&&(b=Bo(z));Q=K/b}else Q=new el(Z.Vk()),z=Z.L?Q:new el(new DataView(Z.info.Y.Y.buffer)),K=At(z),z=Q.pos,Q.pos=0,jc(Q)?sX(Q, 231)?(K=z9(Q)*K/1E9,Q.pos=z,Q=K):(Q.pos=z,Q=NaN):(Q.pos=z,Q=NaN);Z.S=Q||Z.info.eP;return Z.S}; XdW=function(Z,Q){Z.timestampOffset>0&&(Q-=Z.timestampOffset);var z=g.FM(Z)+Q;YZD(Z,z);Z.timestampOffset=Q}; YZD=function(Z,Q){g.lt(Z.info.Y.info)||Z.info.Y.info.Jj();Z.S=Q;if(g.lt(Z.info.Y.info)){var z=Z.Vk();Z=Z.info.Y.Y;for(var K=NaN,b=NaN,q=0;Vy(z,q);){var r=kL(z,q);isNaN(K)&&(r.type===1936286840?K=r.data.getUint32(r.dataOffset+8):r.type===1836476516&&(K=g.o6(r)));if(r.type===1952867444){!K&&Z&&(K=Bo(Z));var D=g.xL(r);isNaN(b)&&(b=Math.round(Q*K)-D);var v=r;D+=b;if(v.data.getUint8(v.dataOffset)){var Y=v.data;v=v.dataOffset+4;Y.setUint32(v,Math.floor(D/4294967296));Y.setUint32(v+4,D&4294967295)}else v.data.setUint32(v.dataOffset+ 4,D)}q=u2(r.type)?q+8:q+r.size}return!0}z=new el(Z.Vk());Z=Z.L?z:new el(new DataView(Z.info.Y.Y.buffer));K=At(Z);Z=z.pos;z.pos=0;if(jc(z)&&sX(z,231))if(b=ZE(z,!0),Q=Math.floor(Q*1E9/K),Math.ceil(Math.log(Q)/Math.log(2)/8)>b)Q=!1;else{for(K=b-1;K>=0;K--)z.Y.setUint8(z.pos+K,Q&255),Q>>>=8;z.pos=Z;Q=!0}else Q=!1;return Q}; wm=function(Z,Q){Q=Q===void 0?!1:Q;var z=ec(Z);Z=Q?0:Z.info.K;return z||Z}; ec=function(Z){g.lt(Z.info.Y.info)||Z.info.Y.info.Jj();if(Z.j&&Z.info.type===6)return Z.j.ip;if(g.lt(Z.info.Y.info)){var Q=Z.Vk();var z=0;Q=g.FU(Q,1936286840);Q=g.n(Q);for(var K=Q.next();!K.done;K=Q.next())K=nh4(K.value),z+=K.l$[0]/K.timescale;z=z||NaN;if(!(z>=0))a:{z=Z.Vk();Q=Z.info.Y.Y;for(var b=K=0,q=0;Vy(z,K);){var r=kL(z,K);if(r.type===1836476516)b=g.o6(r);else if(r.type===1836019558){!b&&Q&&(b=Bo(Q));if(!b){z=NaN;break a}var D=Wo(r.data,r.dataOffset,1953653094),v=D;D=b;var Y=Wo(v.data,v.dataOffset, 1952868452);v=Wo(v.data,v.dataOffset,1953658222);var X=GL(Y);GL(Y);X&2&&GL(Y);Y=X&8?GL(Y):0;var S=GL(v),T=S&1;X=S&4;var f=S&256,h=S&512,m=S&1024;S&=2048;var J=i2(v);T&&GL(v);X&&GL(v);for(var d=T=0;d<J;d++){var G=f?GL(v):Y;h&&GL(v);X&&d===0||!m||GL(v);S&&GL(v);T+=G}q+=T/D}K=u2(r.type)?K+8:K+r.size}z=q||NaN}z||g.CO(new g.tW("Missing duration while parsing bmff",Z.info.O8()))}else z=new el(Z.Vk()),Z=Z.L?z:new el(new DataView(Z.info.Y.Y.buffer)),z=iIX(z,At(Z));return z}; g.SZG=function(Z){if(Z.info.Y.Is())return Z.info.duration;Z.W===-1&&(Z.W=ec(Z));return Z.W||Z.info.duration}; $Bn=function(Z){var Q=Z.Vk();var z=(z=g.OJ(Q,0,1936286840))?z.data.getUint32(z.dataOffset+8):NaN;isNaN(z)&&(Z=Z.info.Y.Y,z=(Q=g.OJ(Q,0,1836476516))?g.o6(Q):Z?Bo(Z):NaN);return z}; TQM=function(Z){return Z.info.Y.info.Jj()&&Z.Y.getUint8(0)===160}; fRW=function(Z){if(!Z.j){g.lt(Z.info.Y.info)||Z.info.Y.info.Jj();if(g.lt(Z.info.Y.info))var Q=g.m5x(Z.Vk());else{Q=new el(Z.Vk());var z=Q.pos;Q.pos=0;var K=null,b=null;if(EJ(Q,[408125543,307544935]))for(var q=Q.pos+ZE(Q,!0);Q.pos<q;)if(ZE(Q,!1)!==29555)KQ(Q);else for(var r=Q.pos+ZE(Q,!0);Q.pos<r;)if(ZE(Q,!1)!==26568)KQ(Q);else for(var D=Q.pos+ZE(Q,!0);Q.pos<D;){var v=ZE(Q,!1);if(v===17543){if(v=N8G(Q),v=UJ(v))if(b)for(var Y=g.n(Object.keys(v)),X=Y.next();!X.done;X=Y.next())X=X.value,b[X]=v[X];else b= v}else v===17827?(v=N8G(Q),K||(K=v)):KQ(Q)}Q.pos=z;Q=b?new Ho(b,K):null}Z.j=Q}}; hRx=function(Z){if(g.lt(Z.info.Y.info))t0(Z.Vk(),1836019574),t0(Z.Vk(),1718909296);else{var Q=new el(Z.Vk());aL9(Q);sX(Q,524531317,!0);Z.Y=Z.Y.split(Q.start+Q.pos).K6}Z.L=!1}; EX=function(Z){if(!Z.K){if(g.lt(Z.info.Y.info)){var Q=Z.Vk();var z=Wo(Q,0,1836019574);if(z){z=z.offset+z.size;var K=new Uint8Array(z);K.set(new Uint8Array(Q.buffer,Q.byteOffset,z));Q=K}else Q=null}else Q=GZu(new el(Z.Vk()));Q&&(Z.info.Y.Y=Q,Z.K=!0)}}; g.l7=function(){this.count=0;this.Y=1;this.j=!1;this.offsets=new Float64Array(128);this.startTicks=new Float64Array(128)}; LVd=function(Z,Q){return Q+1<Z.count||Z.j?Z.offsets[Q+1]-Z.offsets[Q]:-1}; sa=function(Z){Z.offsets.length<Z.count+1&&Z.resize(Z.offsets.length*2)}; Zd=function(Z,Q,z,K){nQ.call(this,Z,Q,z,K);var b=this;this.L=null;this.zz={sC:function(q,r,D,v){return b.sC(q,r,D,v)}}; this.index=new g.l7}; n6d=function(Z,Q,z,K,b,q){this.displayName=Z;this.vssId=Q;this.languageCode=z;this.kind=K===void 0?"":K;this.xtags=b===void 0?"":b;this.id=q===void 0?"":q}; mBn=function(Z){if(Z=Z.colorInfo)if(Z=Z.transferCharacteristics)return cxM[Z];return null}; g.Q3=function(Z,Q,z){this.name=Z;this.id=Q;this.isDefault=z}; IRD=function(Z){return zi(function(Q,z){return g.iV(Q,z,4,1E3)},Z,{format:"RAW", method:"GET",withCredentials:!0})}; g.Jxn=function(Z){var Q;Z.responseType&&Z.responseType!=="text"?Z.responseType==="arraybuffer"&&(Q=JK(new Uint8Array(Z.response))):Q=Z.responseText;return!Q||Q.length>2048?"":Q.indexOf("https://")===0?Q:""}; zi=function(Z,Q,z){Q.match(yxd);return Z(Q,z).then(function(K){var b=g.Jxn(K.xhr);return b?zi(Z,b,z):K.xhr})}; rz=function(Z,Q,z){Z=Z===void 0?"":Z;Q=Q===void 0?null:Q;z=z===void 0?!1:z;g.rV.call(this);var K=this;this.sourceUrl=Z;this.isLivePlayback=z;this.s$=this.duration=0;this.isPremiere=this.Da=this.W=this.isLiveHeadPlayable=this.isLive=this.j=!1;this.nZ=this.uY=0;this.isOtf=this.fd=!1;this.Du=(0,g.Nm)();this.jJ=Infinity;this.Y={};this.S=new Map;this.state=this.Xl=0;this.timeline=null;this.isManifestless=!1;this.P7=[];this.K=null;this.JG=0;this.L="";this.KN=NaN;this.Vp=this.ih=this.timestampOffset=this.T= 0;this.vk=this.Sb=NaN;this.fL=0;this.Zu=this.U=!1;this.c7=[];this.tG={};this.SJ=NaN;this.zz={g3J:function(D){KD(K,D)}}; var b;this.NB=(b=Q)==null?void 0:b.XI("html5_use_network_error_code_enums");dBd=!!Q&&Q.XI("html5_modern_vp9_mime_type");var q;bI=!((q=Q)==null||!q.XI("html5_enable_flush_during_seek"))&&g.kq();var r;q1=!((r=Q)==null||!r.XI("html5_enable_reset_audio_decoder"))&&g.kq()}; NQn=function(Z){return g.nx(Z.Y,function(Q){return!!Q.info.video&&Q.info.video.Y>=2160})}; we4=function(Z){return g.nx(Z.Y,function(Q){return!!Q.info.video&&Q.info.video.isHdr()})}; D5=function(Z){return g.nx(Z.Y,function(Q){return!!Q.info.NR})}; g.GuG=function(Z){return g.nx(Z.Y,function(Q){return ZR(Q.info)})}; isG=function(Z){return g.nx(Z.Y,function(Q){return Q.info.video?Q.info.video.projectionType==="EQUIRECTANGULAR":!1})}; aR9=function(Z){return g.nx(Z.Y,function(Q){return Q.info.video?Q.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; Px9=function(Z){return g.nx(Z.Y,function(Q){return Q.info.video?Q.info.video.projectionType==="MESH":!1})}; RRf=function(Z){return g.nx(Z.Y,function(Q){return Q.info.video?Q.info.video.stereoLayout===1:!1})}; CxM=function(Z){return oKr(Z.Y,function(Q){return Q.info.video?Q.Op():!0})}; rL=function(Z){return g.nx(Z.Y,function(Q){return LZ(Q.zW.Y)})}; KD=function(Z,Q){Z.Y[Q.info.id]=Q;Z.S.set(LQ(g.QH(Q.info,Z.fd)),Q)}; pdG=function(Z,Q){return LQ({itag:Q.itag,lmt:Z.fd?0:Q.lmt||0,xtags:Q.xtags})}; Dd=function(Z,Q,z){z=z===void 0?0:z;var K=Z.mimeType||"",b=Z.itag;var q=Z.xtags;b=b?b.toString():"";q&&(b+=";"+q);q=b;if(Ks(K)){var r=Z.width||640;b=Z.height||360;var D=Z.fps,v=Z.qualityLabel,Y=Z.colorInfo,X=Z.projectionType,S;Z.stereoLayout&&(S=Hsd[Z.stereoLayout]);var T=mBn(Z)||void 0;if(Y==null?0:Y.primaries)var f=M8G[Y.primaries]||void 0;r=new BN(r,b,D,X,S,void 0,v,T,f);K=AR(K,r,kh[Z.itag||""]);bI&&(K+="; enableflushduringseek=true");q1&&(K+="; enableresetaudiodecoder=true")}var h;if(zu(K)){var m= Z.audioSampleRate;S=Z.audioTrack;m=new Us(m?+m:void 0,Z.audioChannels,Z.spatialAudioType,Z.isDrc,Z.loudnessDb,Z.trackAbsoluteLoudnessLkfs,Z.audioQuality||"AUDIO_QUALITY_UNKNOWN");S&&(f=S.displayName,b=S.id,S=S.audioIsDefault,f&&(h=new g.Q3(f,b||"",!!S)))}var J;Z.captionTrack&&(v=Z.captionTrack,S=v.displayName,f=v.vssId,b=v.languageCode,D=v.kind,v=v.id,S&&f&&b&&(J=new n6d(S,f,b,D,Z.xtags,v)));S=Number(Z.bitrate)/8;f=Number(Z.contentLength);b=Number(Z.lastModified);v=Z.drmFamilies;D=Z.type;z=z&&f?f/ z:0;Z=Number(Z.approxDurationMs);if(Q&&v){var d={};v=g.n(v);for(Y=v.next();!Y.done;Y=v.next())(Y=j2[Y.value])&&(d[Y]=Q[Y])}return new ut(q,K,{audio:m,video:r,Qw:h,NR:d,Yq:S,F5:z,contentLength:f,lastModified:b,captionTrack:J,streamType:D,approxDurationMs:Z})}; vg=function(Z,Q,z){z=z===void 0?0:z;var K=Z.type;var b=Z.itag;var q=Z.xtags;q&&(b=Z.itag+";"+q);if(Ks(K)){var r=(Z.size||"640x360").split("x");r=new BN(+r[0],+r[1],+Z.fps,Z.projection_type,+Z.stereo_layout,void 0,Z.quality_label,Z.eotf,Z.primaries);K=AR(K,r,kh[Z.itag]);bI&&(K+="; enableflushduringseek=true");q1&&(K+="; enableresetaudiodecoder=true")}var D;if(zu(K)){var v=new Us(+Z.audio_sample_rate||void 0,+Z.audio_channels||0,Z.spatial_audio_type,!!Z.drc);Z.name&&(D=new g.Q3(Z.name,Z.audio_track_id, Z.isDefault==="1"))}var Y;Z.caption_display_name&&Z.caption_vss_id&&Z.caption_language_code&&(Y=new n6d(Z.caption_display_name,Z.caption_vss_id,Z.caption_language_code,Z.caption_kind,Z.xtags,Z.caption_id));q=Number(Z.bitrate)/8;var X=Number(Z.clen),S=Number(Z.lmt);z=z&&X?X/z:0;if(Q&&Z.drm_families){var T={};for(var f=g.n(Z.drm_families.split(",")),h=f.next();!h.done;h=f.next())h=h.value,T[h]=Q[h]}return new ut(b,K,{audio:v,video:r,Qw:D,NR:T,Yq:q,F5:z,contentLength:X,lastModified:S,captionTrack:Y, streamType:Z.stream_type,approxDurationMs:Number(Z.approx_duration_ms)})}; UBn=function(Z){return ih(Z,function(Q){return"FORMAT_STREAM_TYPE_OTF"===Q.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; Osn=function(Z){return ih(Z,function(Q){return"FORMAT_STREAM_TYPE_OTF"===Q.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; o6G=function(Z,Q){return Z.timeline?bB(Z.timeline.W,Q):Z.P7.length?bB(Z.P7,Q):[]}; gz=function(Z,Q,z){Q=Q===void 0?"":Q;z=z===void 0?"":z;Z=new g.TL(Z,!0);Z.set("alr","yes");z&&(z=h5x(decodeURIComponent(z)),Z.set(Q,encodeURIComponent(z)));return Z}; kuu=function(Z,Q){var z=UX(Q,"id");z=z.replace(":",";");var K=UX(Q,"mimeType"),b=UX(Q,"codecs");K=b?K+'; codecs="'+b+'"':K;b=Number(UX(Q,"bandwidth"))/8;var q=Number(OX(Q,"BaseURL").getAttribute(Z.L+":contentLength")),r=Z.duration&&q?q/Z.duration:0;if(Ks(K)){var D=Number(UX(Q,"width"));var v=Number(UX(Q,"height")),Y=Number(UX(Q,"frameRate")),X=BQG(UX(Q,Z.L+":projectionType"));a:switch(UX(Q,Z.L+":stereoLayout")){case "layout_left_right":var S=1;break a;case "layout_top_bottom":S=2;break a;default:S= 0}D=new BN(D,v,Y,X,S)}if(zu(K)){var T=Number(UX(Q,"audioSamplingRate"));var f=Number(UX(Q.getElementsByTagName("AudioChannelConfiguration")[0],"value"));v=WVf(UX(Q,Z.L+":spatialAudioType"));T=new Us(T,f,v);a:{f=UX(Q,"lang")||"und";if(v=OX(Q,"Role"))if(X=UX(v,"value")||"",g.Jl(V89,X)){v=f+"."+V89[X];Y=X==="main";Z=UX(Q,Z.L+":langName")||f+" - "+X;f=new g.Q3(Z,v,Y);break a}f=void 0}}if(Q=OX(Q,"ContentProtection"))if(Q.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var h={};for(Q= Q.firstChild;Q!=null;Q=Q.nextSibling)Q instanceof Element&&/SystemURL/.test(Q.nodeName)&&(Z=Q.getAttribute("type"),v=Q.textContent,Z&&v&&(h[Z]=v.trim()))}else h=void 0;return new ut(z,K,{audio:T,video:D,Qw:f,NR:h,Yq:b,F5:r,contentLength:q})}; BQG=function(Z){switch(Z){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"}}; WVf=function(Z){switch(Z){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"}}; xBd=function(Z,Q){Q=Q===void 0?"":Q;Z.state=1;Z.Du=(0,g.Nm)();return IRD(Q||Z.sourceUrl).then(function(z){if(!Z.FI()){Z.Xl=z.status;z=z.responseText;var K=new DOMParser;z=t5(K,RBn(z),"text/xml").getElementsByTagName("MPD")[0];Z.jJ=Zsf(UX(z,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(z.attributes){K=g.n(z.attributes);for(var b=K.next();!b.done;b=K.next())if(b=b.value,b.value==="http://youtube.com/yt/2012/10/10"){K=b.name.split(":")[1];break b}}K=""}Z.L=K;Z.isLive=Z.jJ<Infinity&&Z.isLivePlayback;Z.s$= Number(UX(z,Z.L+":earliestMediaSequence"))||0;if(K=Date.parse(QVd(UX(z,Z.L+":mpdResponseTime"))))Z.JG=((0,g.Nm)()-K)/1E3;Z.isLive&&z.getElementsByTagName("SegmentTimeline").length<=0||g.It(z.getElementsByTagName("Period"),Z.Krf,Z);Z.state=2;Z.publish("loaded");uFW(Z)}return Z}).RX(function(z){if(z instanceof Ni){var K=z.xhr; Z.Xl=K.status}Z.state=3;Z.publish("loaderror");return TD(K)})}; t8d=function(Z,Q,z){return xBd(new rz(Z,Q,z),Z)}; YQ=function(Z){return Z.isLive&&(0,g.Nm)()-Z.Du>=Z.jJ}; FV4=function(Z){Z.K&&Z.K.stop()}; uFW=function(Z){var Q=Z.jJ;isFinite(Q)&&(YQ(Z)?Z.refresh():(Q=Math.max(0,Z.Du+Q-(0,g.Nm)()),Z.K||(Z.K=new g.E6(Z.refresh,Q,Z),g.W(Z,Z.K)),Z.K.start(Q)))}; eRG=function(Z){Z=Z.Y;for(var Q in Z){var z=Z[Q].index;if(z.isLoaded())return z.h4()+1}return 0}; X9=function(Z){return Z.ih?Z.ih-(Z.T||Z.timestampOffset):0}; S2=function(Z){return Z.Vp?Z.Vp-(Z.T||Z.timestampOffset):0}; $Q=function(Z){if(!isNaN(Z.KN))return Z.KN;var Q=Z.Y,z;for(z in Q){var K=Q[z].index;if(K.isLoaded()&&!ZR(Q[z].info)){Q=0;for(z=K.pC();z<=K.h4();z++)Q+=K.getDuration(z);Q/=K.Fp();Q=Math.round(Q/.5)*.5;K.Fp()>10&&(Z.KN=Q);return Q}if(Z.isLive&&(K=Q[z],K.ip))return K.ip}return NaN}; wdD=function(Z,Q){Z=WEr(Z.Y,function(K){return K.index.isLoaded()}); if(!Z)return NaN;Z=Z.index;var z=Z.ON(Q);return Z.getStartTime(z)===Q?Q:z<Z.h4()?Z.getStartTime(z+1):NaN}; E6n=function(Z,Q){if(!Z.Y["0"]){var z=new ut("0","fakesb",{video:new BN(0,0,0,void 0,void 0,"auto")});Z.Y["0"]=Q?new Mo(new g.TL("http://www.youtube.com/videoplayback"),z,"fake"):new Zd(new g.TL("http://www.youtube.com/videoplayback"),z,new cz(0,0),new cz(0,0))}}; Ti=function(Z){if(Z.isManifestless)for(var Q in Z.Y)Z.Y[Q].index.segments=[]}; fD=function(Z,Q,z){for(var K in Z.Y){var b=ZR(Z.Y[K].info)||Z.Y[K].info.Gy();if(z===b&&(b=Z.Y[K].index)!=null){var q=VT(b,Q);q>=0&&b.segments.splice(q,1)}}}; lR0=function(Z){for(var Q in Z.Y)ZR(Z.Y[Q].info)||j3f(Z.Y[Q].index,Infinity)}; hR=function(Z,Q,z){for(var K in Z.Y){var b=Z.Y[K].index,q=Q,r=z;b.e9&&(q&&(b.E7=Math.max(b.E7,q)),r&&(b.QA=Math.max(b.QA||0,r)))}z&&(Z.SJ=z/1E3)}; srW=function(Z){Z.Vp=0;Z.ih=0;Z.fL=0}; LD=function(Z){return Z.Zu&&Z.isManifestless?Z.isLiveHeadPlayable:Z.isLive}; AR=function(Z,Q,z){nD===null&&(nD=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(dBd&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return nD||z!=="9"&&z!=="("?nD||z!=="9h"&&z!=="(h"||(Z='video/webm; codecs="vp9.2"'):Z='video/webm; codecs="vp9"',Z;if(!nD&&!cg||Z!=='video/webm; codecs="vp9"'&&Z!=='video/webm; codecs="vp9.2"')return Z; z="00";var K="08",b="01",q="01",r="01";Z==='video/webm; codecs="vp9.2"'&&(z="02",K="10",Q.primaries==="bt2020"&&(r=b="09"),Q.j==="smpte2084"&&(q="16"),Q.j==="arib-std-b67"&&(q="18"));return'video/webm; codecs="'+["vp09",z,"51",K,"01",b,q,r,"00"].join(".")+'"'}; JR=function(Z,Q,z){Z=""+Z+(Q>49?"p60":Q>32?"p48":"");Q=pY()[Z];if(Q!=null&&Q>0)return Q;Q=IW.get(Z);if(Q!=null&&Q>0)return Q;z=z==null?void 0:z.get(Z);return z!=null&&z>0?z:8192}; ZgM=function(Z){this.B7=Z;this.fL=this.u1=this.tG=this.L=this.W=this.SJ=this.DI=this.s$=this.P7=!1;this.T=this.K=0;this.CN=!1;this.JG=!0;this.qB=!1;this.k8=0;this.EW=this.c7=!1;this.De=!0;this.Zu=this.Du=!1;this.Y={};this.Ph=this.disableAv1=this.gq=this.yk=this.Qp=this.F7=this.j=this.X=!1;this.Uv=this.B7.V("html5_disable_aac_preference");this.Sp=Infinity;this.Vp=0;this.ih=this.B7.aT();this.X7=this.B7.experiments.XI("html5_enable_vp9_fairplay");this.bY=this.B7.V("html5_force_av1_for_testing");this.NB= g.Xp(this.B7.experiments,"html5_av1_ordinal_cap");this.Pg=this.B7.V("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.kL=this.B7.V("html5_account_onesie_format_selection_during_format_filter");this.Yq=g.Xp(this.B7.experiments,"html5_max_byterate");this.U=this.B7.V("html5_sunset_aac_high_codec_family");this.KN=this.B7.V("html5_sunset_aac_high_codec_family");this.sA=this.B7.V("html5_enable_iamf_audio");this.IW=this.B7.experiments.XI("html5_allow_capability_merge");this.zJ=this.B7.V("html5_prefer_h264_encrypted_appletv"); this.A4=this.B7.V("html5_enable_encrypted_av1")}; EEG=function(Z){if(Z.s$)return["f"];if(Z.zJ&&g.WX("appletv5"))return"9h 9 h 8 H (h ( *".split(" ");var Q=["9h","9","h","8"];Z.A4&&Q.push("1e");Q=Q.concat(["(h","(","H","*"]);Z.c7&&(Q.unshift("1"),Q.unshift("1h"));Z.u1&&Q.unshift("h");Z.jJ&&(Q=(Qrd[Z.jJ]||[Z.jJ]).concat(Q));return Q}; ua4=function(Z){var Q=["o","a","A"];Z.Vp===1&&(Z.SJ&&(Q=["m","M"].concat(Q)),Z.W&&(Q=["mac3","MAC3"].concat(Q)),Z.L&&(Q=["meac3","MEAC3"].concat(Q)),Z.sA&&(Q=["i","I"].concat(Q)));Z.P7&&(Q=["so","sa"].concat(Q));!Z.fL||Z.tG||Z.S||Z.Uv||Q.unshift("a");Z.DI&&!Z.U&&Q.unshift("ah");Z.S&&(Q=(Qrd[Z.S]||[Z.S]).concat(Q));return Q}; y3=function(Z,Q,z,K){Q=Q===void 0?{}:Q;if(K===void 0?0:K)return Q.disabled=1,0;if(Sl(Z.L,$L.AV1_CODECS)&&Sl(Z.L,$L.HEIGHT)&&Sl(Z.L,$L.BITRATE))return Q.isCapabilityUsable=1,8192;try{var b=NZn();if(b)return Q.localPref=b}catch(D){}K=1080;b=navigator.hardwareConcurrency;b<=2&&(K=480);Q.coreCount=b;if(b=g.Xp(Z.experiments,"html5_default_av1_threshold"))K=Q["default"]=b;!Z.V("html5_disable_av1_arm_check")&&fbG()&&(Q.isArm=1,K=240);if(Z=Z.L.P7)Q.mcap=Z,K=Math.max(K,Z);if(z){var q,r;if(Z=(q=z.videoInfos.find(function(D){return e5(D)}))== null?void 0:(r=q.j)==null?void 0:r.powerEfficient)K=8192,Q.isEfficient=1; z=z.videoInfos[0].video;q=Math.min(JR("1",z.fps),JR("1",30));Q.perfCap=q;K=Math.min(K,q);z.isHdr()&&!Z&&(Q.hdr=1,K*=.75)}else z=JR("1",30),Q.perfCap30=z,K=Math.min(K,z),z=JR("1",60),Q.perfCap60=z,K=Math.min(K,z);return Q.av1Threshold=K}; dz=function(Z,Q,z,K){this.flavor=Z;this.keySystem=Q;this.j=z;this.experiments=K;this.Y={};this.NB=this.keySystemAccess=null;this.zb=this.uG=-1;this.MN=null;this.S=!!K&&K.XI("edge_nonprefixed_eme");K&&K.XI("html5_enable_vp9_fairplay")}; Gi=function(Z){return Z.S?!1:!Z.keySystemAccess&&!!N1()&&Z.keySystem==="com.microsoft.playready"}; iI=function(Z){return Z.keySystem==="com.microsoft.playready"}; aW=function(Z){return!Z.keySystemAccess&&!!N1()&&Z.keySystem==="com.apple.fps.1_0"}; Pg=function(Z){return Z.keySystem==="com.youtube.fairplay"}; RW=function(Z){return Z.keySystem==="com.youtube.fairplay.sbdl"}; g.CD=function(Z){return Z.flavor==="fairplay"}; N1=function(){var Z=window,Q=Z.MSMediaKeys;tN()&&!Q&&(Q=Z.WebKitMediaKeys);return Q&&Q.isTypeSupported?Q:null}; Hg=function(Z){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.R3&&!g.kq())return yn("45");if(g.Fc||g.Sn)return Z.XI("edge_nonprefixed_eme");if(g.pD)return yn("47");if(g.Lc){if(Z.XI("html5_enable_safari_fairplay"))return!1;if(Z=g.Xp(Z,"html5_safari_desktop_eme_min_version"))return yn(Z)}return!0}; zlf=function(Z,Q,z,K){var b=uV(),q=(z=b||z&&tN())?["com.youtube.fairplay"]:["com.widevine.alpha"];Q&&q.unshift("com.youtube.widevine.l3");b&&K&&q.unshift("com.youtube.fairplay.sbdl");return z?q:Z?[].concat(g.I(q),g.I(M1.playready)):[].concat(g.I(M1.playready),g.I(q))}; Oa=function(){this.j=this.XN=0;this.Y=Array.from({length:Ua.length}).fill(0)}; K34=function(){}; bgr=function(){this.startTimeMs=(0,g.Nm)();this.Y=!1}; qNG=function(){this.Y=new K34}; rkx=function(Z,Q,z,K){K=K===void 0?1:K;z>=0&&(Q in Z.Y||(Z.Y[Q]=new Oa),Z.Y[Q].PP(z,K))}; AkM=function(Z,Q,z,K,b){var q=(0,g.Nm)(),r=b?b(Q):void 0,D;b=(D=r==null?void 0:r.XN)!=null?D:1;if(b!==0){var v;D=(v=r==null?void 0:r.profile)!=null?v:z;rkx(Z,D,q-K,b)}return Q}; oW=function(Z,Q,z,K,b){if(Q&&typeof Q==="object"){var q=function(r){return AkM(Z,r,z,K,b)}; if(bJ(Q))return Q.then(q);if(jrW(Q))return D7(Q,q)}return AkM(Z,Q,z,K,b)}; Dyn=function(){}; Bg=function(Z,Q,z,K,b){K=K===void 0?!1:K;g.O.call(this);this.B7=Q;this.useCobaltWidevine=K;this.pN=b;this.j=[];this.S={};this.Y={};this.callback=null;this.L=!1;this.W=[];this.initialize(Z,!z)}; god=function(Z,Q){Z.callback=Q;Z.W=[];Hg(Z.B7.experiments)?Wg(Z):vox(Z)}; Wg=function(Z){if(!Z.FI())if(Z.j.length===0)Z.callback(Z.W);else{var Q=Z.j[0],z=Z.S[Q],K=YNG(Z,z);if(V3&&V3.keySystem===Q&&V3.dnF===JSON.stringify(K))Z.pN("remksa",{re:!0}),XvM(Z,z,V3.keySystemAccess);else{var b,q;Z.pN("remksa",{re:!1,ok:(q=(b=V3)==null?void 0:b.keySystem)!=null?q:""});V3=void 0;(kQ.isActive()?kQ.Be("emereq",function(){return navigator.requestMediaKeySystemAccess(Q,K)}):navigator.requestMediaKeySystemAccess(Q,K)).then($N(function(r){XvM(Z,z,r,K)}),$N(function(){Z.L=!Z.L&&Z.S[Z.j[0]].flavor=== "widevine"; Z.L||Z.j.shift();Wg(Z)}))}}}; XvM=function(Z,Q,z,K){if(!Z.FI()){K&&(V3={keySystem:Q.keySystem,keySystemAccess:z,dnF:JSON.stringify(K)});Q.keySystemAccess=z;if(iI(Q)){z=a3();K=g.n(Object.keys(Z.Y[Q.flavor]));for(var b=K.next();!b.done;b=K.next())b=b.value,Q.Y[b]=!!z.canPlayType(b)}else{z=Q.keySystemAccess.getConfiguration();if(z.audioCapabilities)for(K=g.n(z.audioCapabilities),b=K.next();!b.done;b=K.next())SNu(Z,Q,b.value);if(z.videoCapabilities)for(z=g.n(z.videoCapabilities),K=z.next();!K.done;K=z.next())SNu(Z,Q,K.value)}Z.W.push(Q); Z.useCobaltWidevine||Z.V("html5_enable_vp9_fairplay")&&RW(Q)?(Z.j.shift(),Wg(Z)):Z.callback(Z.W)}}; SNu=function(Z,Q,z){Z.V("log_robustness_for_drm")?Q.Y[z.contentType]=z.robustness||!0:Q.Y[z.contentType]=!0}; YNG=function(Z,Q){var z={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(Z.V("html5_enable_vp9_fairplay")&&Pg(Q))return z.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),z.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[z];iI(Q)&&(z.initDataTypes=["keyids","cenc"]);for(var K=g.n(Object.keys(Z.Y[Q.flavor])),b=K.next();!b.done;b=K.next()){b=b.value;var q=b.indexOf("audio/")===0,r=q?z.audioCapabilities:z.videoCapabilities;Q.flavor!== "widevine"||Z.L?r.push({contentType:b}):q?r.push({contentType:b,robustness:"SW_SECURE_CRYPTO"}):(g.R3&&g.WX("windows nt")&&!Z.V("html5_drm_enable_moho")||r.push({contentType:b,robustness:"HW_SECURE_ALL"}),q=b,Z.V("html5_enable_cobalt_experimental_vp9_decoder")&&b.includes("vp09")&&(q=b+"; experimental=allowed"),r.push({contentType:q,robustness:"SW_SECURE_DECODE"}),uI(Z.B7)==="MWEB"&&(s7()||VC())&&(Z.pN("swcrypto",{}),r.push({contentType:b,robustness:"SW_SECURE_CRYPTO"})))}return[z]}; vox=function(Z){if(N1()&&(g.Lc||eL&&Z.V("html5_drm_support_ios_mweb")))Z.W.push(new dz("fairplay","com.apple.fps.1_0","",Z.B7.experiments));else{var Q=$y9(),z=g.Fm(Z.j,function(K){var b=Z.S[K],q=!1,r=!1,D;for(D in Z.Y[b.flavor])Q(D,K)&&(b.Y[D]=!0,q=q||D.indexOf("audio/")===0,r=r||D.indexOf("video/")===0);return q&&r}); z&&Z.W.push(Z.S[z]);Z.j=[]}Z.callback(Z.W)}; $y9=function(){var Z=N1();if(Z){var Q=Z.isTypeSupported;return function(K,b){return Q(b,K)}}var z=a3(); return z&&(z.addKey||z.webkitAddKey)?function(K,b){return!!z.canPlayType(K,b)}:function(){return!1}}; TuD=function(Z){this.experiments=Z;this.Y=2048;this.W=0;this.SJ=(this.U=this.V("html5_streaming_resilience"))?.5:.25;var Q=Q===void 0?0:Q;this.S=g.Xp(this.experiments,"html5_media_time_weight_prop")||Q;this.L=this.V("html5_app_limited_aware_bwe");this.JG=g.Xp(this.experiments,"html5_sabr_timeout_penalty_factor")||1;this.P7=(this.K=this.experiments.XI("html5_consider_end_stall"))&&xQ;this.j=this.experiments.XI("html5_measure_max_progress_handling");this.jJ=this.V("html5_treat_requests_pre_elbow_as_metadata"); this.T=this.V("html5_media_time_weight")||!!this.S;this.X=g.Xp(this.experiments,"html5_streaming_fallback_byterate");this.V("html5_sabr_live_audio_early_return_fix")&&xQ&&(this.Y=65536)}; flx=function(Z,Q){this.Y=void 0;this.experimentIds=Z?Z.split(","):[];this.flags=ZX(Q||"","&");Z={};Q=g.n(this.experimentIds);for(var z=Q.next();!z.done;z=Q.next())Z[z.value]=!0;this.experiments=Z}; g.Xp=function(Z,Q){Z=Z.flags[Q];JSON.stringify(Z);return Number(Z)||0}; tR=function(Z,Q){return(Z=Z.flags[Q])?Z.toString():""}; hln=function(Z){if(Z=Z.flags.html5_web_po_experiment_ids)if(Z=Z.replace(/\[ *(.*?) *\]/,"$1"))return Z.split(",").map(Number);return[]}; L3u=function(Z){if(Z.Y)return Z.Y;if(Z.experimentIds.length<=1)return Z.Y=Z.experimentIds,Z.Y;var Q=[].concat(g.I(Z.experimentIds)).map(function(K){return Number(K)}); Q.sort();for(var z=Q.length-1;z>0;--z)Q[z]-=Q[z-1];Z.Y=Q.map(function(K){return K.toString()}); Z.Y.unshift("v1");return Z.Y}; ckx=function(Z){return nof.then(Z)}; F9=function(Z,Q,z){this.experiments=Z;this.c7=Q;this.Vp=z===void 0?!1:z;this.SJ=!!g.WG("cast.receiver.platform.canDisplayType");this.U={};this.X=!1;this.j=new Map;this.T=!0;this.W=this.L=!1;this.Y=new Map;this.P7=0;this.JG=this.experiments.XI("html5_disable_vp9_encrypted");this.S=this.experiments.XI("html5_enable_encrypted_av1");Z=g.WG("cast.receiver.platform.getValue");this.KN=g.Xp(this.experiments,"html5_kaios_max_resolution");this.K=!this.SJ&&Z&&Z("max-video-resolution-vpx")||null;myM(this)}; ZIG=function(Z,Q,z){z=z===void 0?1:z;var K=Q.itag;if(K==="0")return!0;var b=Q.mimeType;if(Q.Jj()&&uV()&&Z.experiments.XI("html5_appletv_disable_vp9"))return"dwebm";if(Q.Gf==="1e"&&!Z.S)return"dav1enc";if(e5(Q)&&Z.X)return"dav1";if(Q.video&&(Q.video.isHdr()||Q.video.primaries==="bt2020")&&!(Sl(Z,$L.EOTF)||window.matchMedia&&(window.matchMedia("(dynamic-range: high), (video-dynamic-range: high)").matches||window.screen.pixelDepth>24&&window.matchMedia("(color-gamut: p3)").matches)))return"dhdr";if(K=== "338"&&!(g.R3?yn(53):g.pD&&yn(64)))return"dopus";var q;if(Z.KN&&e2&&((q=Q.video)==null?void 0:q.Y)>Z.KN)return"kaios";q=z;q=q===void 0?1:q;z={};Q.video&&(Q.video.width&&(z[$L.WIDTH.name]=Q.video.width),Q.video.height&&(z[$L.HEIGHT.name]=Q.video.height),Q.video.fps&&(z[$L.FRAMERATE.name]=Q.video.fps*q),Q.video.j&&(z[$L.EOTF.name]=Q.video.j),Q.Yq&&(z[$L.BITRATE.name]=Q.Yq*8*q),Q.Gf==="("&&(z[$L.CRYPTOBLOCKFORMAT.name]="subsample"),Q.video.projectionType==="EQUIRECTANGULAR"||Q.video.projectionType=== "EQUIRECTANGULAR_THREED_TOP_BOTTOM"||Q.video.projectionType==="MESH")&&(z[$L.DECODETOTEXTURE.name]="true");Q.audio&&Q.audio.numChannels&&(z[$L.CHANNELS.name]=Q.audio.numChannels);Z.L&&xh(Q)&&(z[$L.EXPERIMENTAL.name]="allowed");q=g.n(Object.keys($L));for(var r=q.next();!r.done;r=q.next()){r=$L[r.value];var D;if(D=z[r.name])if(D=!(r===$L.EOTF&&Q.mimeType.indexOf("vp09.02")>0)){D=r;var v=Q;D=!(Z.experiments.XI("html5_ignore_h264_framerate_cap")&&D===$L.FRAMERATE&&vC9(v))}if(D)if(Sl(Z,r))if(Z.K){if(Z.K[r.name]< z[r.name])return r.name}else b=b+"; "+r.name+"="+z[r.name];else if(t7(Q)&&r===$L.EOTF)return"dvp92"}Z.SJ&&Q.video&&Q.video.Y>1080&&Q.NR&&(b+="; hdcp=2.2");return K==="227"?"hqcenc":K!=="585"&&K!=="588"&&K!=="583"&&K!=="586"&&K!=="584"&&K!=="587"&&K!=="591"&&K!=="592"||Z.experiments.XI("html5_enable_new_hvc_enc")?Z.isTypeSupported(b)?!0:"tpus":"newhvc"}; wz=function(){var Z=VC()&&!yn(29),Q=g.WX("google tv")&&g.WX("chrome")&&!yn(30);return Z||Q?!1:TBu()}; Ilx=function(Z,Q,z){var K=480;Q=g.n(Q);for(var b=Q.next();!b.done;b=Q.next()){b=b.value;var q=b.video.Y;q<=1080&&q>K&&ZIG(Z,b,z)===!0&&(K=q)}return K}; g.Ea=function(Z,Q){Q=Q===void 0?!1:Q;return wz()&&Z.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!Q&&Z.canPlayType(a3(),"application/x-mpegURL")?!0:!1}; ykf=function(Z){Jk0(function(){for(var Q=g.n(Object.keys($L)),z=Q.next();!z.done;z=Q.next())Sl(Z,$L[z.value])})}; Sl=function(Z,Q){Q.name in Z.U||(Z.U[Q.name]=dyr(Z,Q));return Z.U[Q.name]}; dyr=function(Z,Q){if(Z.K)return!!Z.K[Q.name];if(Q===$L.BITRATE&&Z.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!Z.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(Q===$L.AV1_CODECS)return Z.isTypeSupported("video/mp4; codecs="+Q.valid)&&!Z.isTypeSupported("video/mp4; codecs="+Q.HS);if(Q.video){var z='video/webm; codecs="vp9"';Z.isTypeSupported(z)||(z='video/mp4; codecs="avc1.4d401e"')}else z='audio/webm; codecs="opus"', Z.isTypeSupported(z)||(z='audio/mp4; codecs="mp4a.40.2"');return Z.isTypeSupported(z+"; "+Q.name+"="+Q.valid)&&!Z.isTypeSupported(z+"; "+Q.name+"="+Q.HS)}; Nu0=function(Z){Z.L||(Z.L=!0,lI(Z))}; lI=function(Z){Z.W=!0;Z.experiments.XI("html5_ssap_update_capabilities_on_change")&&G6W(Z)}; igX=function(Z,Q){var z=0;Z.j.has(Q)&&(z=Z.j.get(Q).Ch);Z.j.set(Q,{Ch:z+1,a_:Math.pow(2,z+1)});lI(Z)}; vo=function(Z){for(var Q=[],z=g.n(Z.Y.keys()),K=z.next();!K.done;K=z.next()){K=K.value;var b=Z.Y.get(K);Q.push(K+"_"+b.maxWidth+"_"+b.maxHeight)}return Q.join(".")}; G6W=function(Z){Z.jJ=[];for(var Q=g.n(Z.Y.values()),z=Q.next();!z.done;z=Q.next()){z=z.value;var K=z.Gf;Z.experiments.XI("html5_ssap_force_mp4_aac")&&K!=="a"&&K!=="h"||Z.j.has(K)||Z.X&&(K==="1"||K==="1h"||Z.S&&K==="1e")||Z.jJ.push(z)}}; x4x=function(Z,Q){for(var z=new Map,K=g.n(Z.Y.keys()),b=K.next();!b.done;b=K.next()){b=b.value;var q=b.split("_")[0];Q.has(q)||z.set(b,Z.Y.get(b))}Z.Y=z}; Fou=function(Z,Q,z){var K,b=((K=z.video)==null?void 0:K.fps)||0;K=Q+"_"+b;var q=!!z.audio,r={itag:z.itag,Gf:Q,WN:q};if(q)r.numChannels=z.audio.numChannels;else{var D=z.video;r.maxWidth=D==null?void 0:D.width;r.maxHeight=D==null?void 0:D.height;r.maxFramerate=b;Sl(Z,$L.BITRATE)&&(r.maxBitrateBps=z.Yq*8);r.Hm=D==null?void 0:D.isHdr()}D=Z.Y.get(K);D?q||(z=Math.max(D.maxWidth||0,D.maxHeight||0)>Math.max(r.maxWidth||0,r.maxHeight||0)?D:r,Q={itag:z.itag,Gf:Q,WN:q,maxWidth:Math.max(D.maxWidth||0,r.maxWidth|| 0),maxHeight:Math.max(D.maxHeight||0,r.maxHeight||0),maxFramerate:b,Hm:z.Hm},Sl(Z,$L.BITRATE)&&(Q.maxBitrateBps=z.maxBitrateBps),Z.Y.set(K,Q)):Z.Y.set(K,r)}; ezG=function(Z,Q,z){var K,b=((K=z.video)==null?void 0:K.fps)||0;K=Q+"_"+b;var q=!!z.audio,r=Z.Y.get(K);a:{var D=Z.Y.get(K),v=!!z.audio;if(D){if(v){var Y=!1;break a}var X;if(!v&&((Y=z.video)==null?0:Y.height)&&D.maxHeight&&D.maxHeight>=((X=z.video)==null?void 0:X.height)){Y=!1;break a}}Y=!0}Y&&(Y=z.itag,Q=r?r:{itag:Y,Gf:Q,WN:q},q?Q.numChannels=z.audio.numChannels:(q=z.video,Q.maxWidth=q==null?void 0:q.width,Q.maxHeight=q==null?void 0:q.height,Q.maxFramerate=b,Sl(Z,$L.BITRATE)&&(Q.maxBitrateBps=z.Yq* 8),Q.Hm=q==null?void 0:q.isHdr()),Z.Y.set(K,Q))}; myM=function(Z){var Q;(Q=navigator.mediaCapabilities)!=null&&Q.decodingInfo&&navigator.mediaCapabilities.decodingInfo({type:"media-source",video:{contentType:'video/mp4; codecs="av01.0.12M.08"',width:3840,height:2160,bitrate:32E6,framerate:60}}).then(function(z){z.smooth&&z.powerEfficient&&(Z.P7=2160)})}; s_=function(){g.rV.call(this);this.items={}}; Z1=function(){g.cV.apply(this,arguments)}; Qf=function(){g.mO.apply(this,arguments)}; alu=function(Z,Q,z){this.encryptedClientKey=Q;this.L=z;this.Y=new Uint8Array(Z.buffer,0,16);this.S=new Uint8Array(Z.buffer,16)}; P$0=function(Z){Z.j||(Z.j=new Z1(Z.Y));return Z.j}; zK=function(Z){try{return nG(Z)}catch(Q){return null}}; Rln=function(Z,Q){if(!Q&&Z)try{Q=JSON.parse(Z)}catch(b){}if(Q){Z=Q.clientKey?zK(Q.clientKey):null;var z=Q.encryptedClientKey?zK(Q.encryptedClientKey):null,K=Q.keyExpiresInSeconds?Number(Q.keyExpiresInSeconds)*1E3+(0,g.Nm)():null;Z&&z&&K&&(this.Y=new alu(Z,z,K));Q.onesieUstreamerConfig&&(this.onesieUstreamerConfig=zK(Q.onesieUstreamerConfig)||void 0);this.baseUrl=Q.baseUrl}}; ba=function(){this.data=new Uint8Array(2048);this.pos=0;Kn||(Kn=i9("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))}; qx=function(Z,Q){Z.add(Q==null||isNaN(Q)?0:Q+1)}; r5=function(Z){this.Y=this.j=0;this.alpha=Math.exp(Math.log(.5)/Z)}; AC=function(Z){this.j=Z===void 0?15:Z;this.values=new Float64Array(176);this.Y=new Float64Array(11);this.S=new Float64Array(16)}; jY=function(Z,Q,z,K){z=z===void 0?.5:z;K=K===void 0?0:K;this.resolution=Q;this.j=0;this.S=!1;this.jo=!0;this.Y=Math.round(Z*this.resolution);this.values=Array(this.Y);for(Z=0;Z<this.Y;Z++)this.values[Z]=Infinity;this.L=C$G(this);this.W=z;this.K=K}; C$G=function(Z){for(var Q=Array(Z.Y),z=0;z<Z.Y;z++)Q[z]=z;return Q}; D1=function(Z,Q,z){g.O.call(this);this.policy=Z;this.j=Q;this.lh=z;this.P7=this.Du=0;this.SJ=-1;this.JG=this.L=0;this.jJ=!1;this.interruptions=[];this.W=[{stamp:0,net:0,max:0}];this.Vp=this.K=(0,g.Nm)();this.X=new jY(4,1,.6,.4);this.KN=new jY(4,1,.6,.4);this.T=new jY(20,1,.5,.4);Z.SJ?this.S=new AC(Z.Y):Z.j?this.S=new r5(Z.Y):this.S=new jY(Z.Y,20,.5,.4);this.c7=new jY(5,1,.25);this.U=new jY(30,1,.5);Z=g.pS("yt-player-bandwidth")||{};Q=this.policy.S;if(Z.byterate>0)Q=Z.byterate,this.jJ=!0;else{var K; z=(((K=navigator.connection)==null?void 0:K.downlink)||0)*64*1024;z>0&&(Q=z,this.jJ=!0)}this.S.IF(this.policy.K,Q);Z.delay>0&&this.X.IF(1,Math.min(Z.delay,2));Z.stall>0&&this.T.IF(1,Z.stall);Z.init>0&&(this.Vp=Math.min(Z.init,this.Vp));Z.interruptions&&(this.W=this.W.concat(Z.interruptions),this.W.length>16&&this.W.pop());this.SJ=(0,g.Nm)();this.policy.T>0&&(this.tG=new g.E6(this.Zu,this.policy.T,this),g.W(this,this.tG),this.tG.start())}; vZ=function(Z,Q,z,K){Z.S.IF(K===void 0?Q:K,z/Q);Z.K=(0,g.Nm)()}; pvr=function(Z){Z.L||(Z.L=(0,g.Nm)());Z.policy.U&&(Z.K=(0,g.Nm)())}; HgG=function(Z,Q){if(Z.L){var z=Q-Z.L;if(z<6E4){if(z>1E3){var K=Z.interruptions;K.push(Math.ceil(z));K.sort(function(b,q){return q-b}); K.length>16&&K.pop()}Z.JG+=z}}Z.L=Q}; g5=function(Z,Q,z,K,b,q){q=q===void 0?!1:q;Z.c7.IF(Q,z/Q);Z.K=(0,g.Nm)();b||Z.U.IF(1,Q-K);q||(Z.L=0);Z.SJ>-1&&(0,g.Nm)()-Z.SJ>3E4&&M9n(Z)}; Ya=function(Z,Q,z){Q=Math.max(Q,Z.j.Y);Z.T.IF(1,z/Q)}; X4=function(Z){Z=Z.X.Wx()+Z.KN.Wx()||0;Z=isNaN(Z)?.5:Z;return Z=Math.min(Z,5)}; SY=function(Z,Q,z){isNaN(z)||(Z.P7+=z);isNaN(Q)||(Z.Du+=Q)}; $a=function(Z){Z=Z.S.Wx();return Z>0?Z:1}; TK=function(Z,Q,z){Q=Q===void 0?!1:Q;z=z===void 0?1048576:z;var K=$a(Z);K=1/((Z.T.Wx()||0)*Z.policy.jJ+1/K);var b=Z.c7.Wx();b=b>0?b:1;var q=Math.max(K,b);Z.policy.L>0&&b<K&&(q=Math.min(Z.policy.L,1),q=(1-q)*K+q*b);if(!Q)return q;Q=1E-9+X4(Z);z=q*Math.min(1,z/(q*Q));Z.policy.W||(Z=((Z.U.percentile(.98)||0)-1)/2,Z=Math.max(0,Math.min(1,Z)),z*=1-.5*Z);return z}; Uyn=function(Z){var Q={delay:X4(Z),stall:Z.T.Wx()||0,byterate:$a(Z),init:Z.Vp},z=Z.W[0];z.stamp=Math.round(Z.K/36E5)*36E5;z.net=Math.ceil(Z.JG);z.max=Z.interruptions[0]||0;Q.interruptions=Z.W;return Q}; M9n=function(Z){g.CS("yt-player-bandwidth",Uyn(Z),2592E3);Z.SJ=(0,g.Nm)();Z.jJ=!0}; fn=function(Z){return(0,g.Nm)()-Z.K>=4E3}; OgW=function(Z){this.experiments=Z;this.Y=17;this.S=13E4;this.K=.5;this.j=!1;this.SJ=this.V("html5_use_histogram_for_bandwidth");this.W=!1;this.L=g.Xp(this.experiments,"html5_auxiliary_estimate_weight");this.jJ=g.Xp(this.experiments,"html5_stall_factor")||1;this.T=g.Xp(this.experiments,"html5_check_for_idle_network_interval_ms");this.X=this.experiments.XI("html5_trigger_loader_when_idle_network");this.U=this.experiments.XI("html5_sabr_fetch_on_idle_network_preloaded_players")}; Bux=function(Z,Q){Z=Z===void 0?{}:Z;Q=Q===void 0?{}:Q;g.O.call(this);var z=this;this.values=Z;this.zt=Q;this.j={};this.S=this.Y=0;this.W=new g.E6(function(){oou(z)},1E4); g.W(this,this.W)}; hC=function(Z,Q){W3G(Z,Q);return Z.values[Q]&&Z.zt[Q]?Z.values[Q]/Math.pow(2,Z.Y/Z.zt[Q]):0}; W3G=function(Z,Q){Z.values[Q]||(Q=I04(),Z.values=Q.values||{},Z.zt=Q.halfLives||{},Z.j=Q.values?Object.assign({},Q.values):{})}; oou=function(Z){var Q=I04();if(Q.values){Q=Q.values;for(var z={},K=g.n(Object.keys(Z.values)),b=K.next();!b.done;b=K.next())b=b.value,Q[b]&&Z.j[b]&&(Z.values[b]+=Q[b]-Z.j[b]),z[b]=hC(Z,b);Z.j=z}Q=Z.zt;z={};z.values=Z.j;z.halfLives=Q;g.CS("yt-player-memory",z,2592E3)}; Mx=function(Z,Q,z,K,b){g.O.call(this);this.webPlayerContextConfig=Q;this.tL=K;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.NU=this.X7=this.s$=this.J6=this.userDisplayName=this.userDisplayImage=this.Vr="";this.Y={};this.ih={};this.controlsType="0";this.kL=NaN;this.Qp=!1;this.N8=(0,g.Nm)();this.sA=0;this.TT=this.Q0=!1;this.uP=!0;this.preferGapless=this.vk=this.aC=this.S=this.uw=this.ex=!1;this.tV=[];this.y7=!1;Z=Z?g.ae(Z):{};Q&&Q.csiPageType&&(this.csiPageType=Q.csiPageType);Q&&Q.csiServiceName&& (this.csiServiceName=Q.csiServiceName);Q&&Q.preferGapless&&(this.preferGapless=Q.preferGapless);this.experiments=new flx(Q?Q.serializedExperimentIds:Z.fexp,Q?Q.serializedExperimentFlags:Z.fflags);this.forcedExperiments=Q?Q.serializedForcedExperimentIds:qW("",Z.forced_experiments)||void 0;this.cspNonce=(Q==null?0:Q.cspNonce)?Q.cspNonce:qW("",Z.csp_nonce);this.V("web_player_deprecated_uvr_killswitch");try{var q=document.location.toString()}catch(F){q=""}this.Pg=q;this.ancestorOrigins=(K=window.location.ancestorOrigins)? Array.from(K):[];this.W=zM(!1,Q?Q.isEmbed:Z.is_embed);if(Q&&Q.device){if(K=Q.device,K.androidOsExperience&&(this.Y.caoe=""+K.androidOsExperience),K.androidPlayServicesVersion&&(this.Y.capsv=""+K.androidPlayServicesVersion),K.brand&&(this.Y.cbrand=K.brand),K.browser&&(this.Y.cbr=K.browser),K.browserVersion&&(this.Y.cbrver=K.browserVersion),K.cobaltReleaseVehicle&&(this.Y.ccrv=""+K.cobaltReleaseVehicle),this.Y.c=K.interfaceName||"WEB",this.Y.cver=K.interfaceVersion||"html5",K.interfaceTheme&&(this.Y.ctheme= K.interfaceTheme),this.Y.cplayer=K.interfacePlayerType||"UNIPLAYER",K.model&&(this.Y.cmodel=K.model),K.network&&(this.Y.cnetwork=K.network),K.os&&(this.Y.cos=K.os),K.osVersion&&(this.Y.cosver=K.osVersion),K.platform&&(this.Y.cplatform=K.platform),q=tR(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),q==="all"||q==="once")K.chipset&&(this.ih.cchip=K.chipset),K.cobaltAppVersion&&(this.ih.ccappver=K.cobaltAppVersion),K.firmwareVersion&&(this.ih.cfrmver=K.firmwareVersion),K.deviceYear&&(this.ih.crqyear= K.deviceYear)}else this.Y.c=Z.c||"web",this.Y.cver=Z.cver||"html5",this.Y.cplayer="UNIPLAYER";this.loaderUrl=Q?this.W||V9n(this)&&Q.loaderUrl?Q.loaderUrl||"":this.Pg:this.W||V9n(this)&&Z.loaderUrl?qW("",Z.loaderUrl):this.Pg;this.W&&g.BG("yt.embedded_player.embed_url",this.loaderUrl);this.T=lz(this.loaderUrl,k6G);K=this.loaderUrl;var r=r===void 0?!1:r;this.dl=Ei(lz(K,ul0),K,r,"Trusted Ad Domain URL");this.fL=zM(!1,Z.privembed);this.protocol=this.Pg.indexOf("http:")===0?"http":"https";this.Ff=s1((Q? Q.customBaseYoutubeUrl:Z.BASE_YT_URL)||"")||s1(this.Pg)||this.protocol+"://www.youtube.com/";r=Q?Q.eventLabel:Z.el;K="detailpage";r==="adunit"?K=this.W?"embedded":"detailpage":r==="embedded"||this.T?K=KS(K,r,xy0):r&&(K="embedded");this.KN=K;iAG();r=null;K=Q?Q.playerStyle:Z.ps;q=g.wX(t9d,K);!K||q&&!this.T||(r=K);this.playerStyle=r;this.K=g.wX(t9d,this.playerStyle);this.houseBrandUserStatus=Q==null?void 0:Q.houseBrandUserStatus;this.SJ=this.K&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard"; this.Sb=!this.SJ;this.Vp=zM(!1,Z.disableplaybackui);this.disablePaidContentOverlay=zM(!1,Q==null?void 0:Q.disablePaidContentOverlay);this.disableSeek=zM(!1,Q==null?void 0:Q.disableSeek);this.enableSpeedOptions=(Q==null?void 0:Q.enableSpeedOptions)||(a3().defaultPlaybackRate?Ln||g.lV||e2?g.pD&&yn("20")||g.R3&&yn("4")||g.nn&&yn("11")||FJ():!(g.nn&&!g.WX("chrome")||Ln||g.WX("android")||g.WX("silk")):!1);this.Il=zM(!1,Z.enable_faster_speeds);var D;this.supportsVarispeedExtendedFeatures=(D=Q==null?void 0: Q.supportsVarispeedExtendedFeatures)!=null?D:!1;this.j=zM(this.playerStyle==="blazer",Z.is_html5_mobile_device||Q&&Q.isMobileDevice);this.Du=ES()||s7();this.Al=this.V("mweb_allow_background_playback")?!1:this.j&&!this.K;this.tG=HN();this.hV=g.cZ;var v;this.Em=!!(Q==null?0:(v=Q.embedsHostFlags)==null?0:v.optOutApiDeprecation);var Y;this.Jl=!!(Q==null?0:(Y=Q.embedsHostFlags)==null?0:Y.allowPfpImaIntegration);this.Xw=this.V("embeds_web_enable_ve_conversion_logging_tracking_no_allow_list");var X;Q?Q.hideInfo!== void 0&&(X=!Q.hideInfo):X=Z.showinfo;this.rj=g.mj(this)&&!this.Em||zM(!IM(this)&&!JC(this)&&!this.K,X);this.u7=Q?!!Q.mobileIphoneSupportsInlinePlayback:zM(!1,Z.playsinline);D=this.j&&yf&&d5!=null&&d5>0&&d5<=2.3;v=Q?Q.useNativeControls:Z.use_native_controls;this.X=g.mj(this)&&this.j;Y=this.j&&!this.X;v=g.Nx(this)||!D&&zM(Y,v)?"3":"1";this.disableOrganicUi=!(Q==null||!Q.disableOrganicUi);Y=Q?Q.controlsType:Z.controls;this.controlsType=this.disableOrganicUi?"0":Y!=="0"&&Y!==0?v:"0";this.Ju=this.j;this.color= KS("red",Q?Q.progressBarColor:Z.color,F3n);this.Zb=this.controlsType==="3";this.Ph=!this.W;this.v2=(v=!this.Ph&&!JC(this)&&!this.SJ&&!this.K&&!IM(this))&&!this.Zb&&this.controlsType==="1";this.IW=g.GK(this)&&v&&this.controlsType==="0"&&!this.v2&&!(Q==null?0:Q.embedsEnableEmc3ds);this.CC=this.sj=D;this.De=(this.controlsType==="3"||this.j||zM(!1,Z.use_media_volume))&&!this.X;this.tR=eL&&!g.fG(601)?!1:!0;this.lc=this.W||!1;this.NB=JC(this)?"":(this.loaderUrl||Z.post_message_origin||"").substring(0,128); this.widgetReferrer=qW("",Q?Q.widgetReferrer:Z.widget_referrer);var S;Q?Q.disableCastApi&&(S=!1):S=Z.enablecastapi;S=!this.T||zM(!0,S);D=!0;Q&&Q.disableMdxCast&&(D=!1);this.CM=this.V("enable_cast_for_web_unplugged")&&g.ia(this)&&D||g.HM(this)&&D||S&&D&&this.controlsType==="1"&&!this.j&&(JC(this)||g.GK(this)||g.aM(this));this.AV=!!window.document.pictureInPictureEnabled||pI();S=Q?!!Q.supportsAutoplayOverride:zM(!1,Z.autoplayoverride);this.YE=!(this.j&&!g.mj(this))&&!g.WX("nintendo wiiu")||S;this.LK= (Q?!!Q.enableMutedAutoplay:zM(!1,Z.mutedautoplay))&&!1;S=(JC(this)||IM(this))&&this.playerStyle==="blazer";this.Yi=Q?!!Q.disableFullscreen:!zM(!0,Z.fs);D=g.DT(g.PZ(this))&&g.mj(this);this.F7=!this.Yi&&(S||g.fS())&&!D;this.N0=this.V("html5_picture_in_picture_logging_onresize");this.Dt=this.V("html5_picture_in_picture_blocking_onresize");this.Zt=this.V("html5_picture_in_picture_blocking_ontimeupdate");this.eb=this.V("html5_picture_in_picture_blocking_document_fullscreen");this.MN=this.V("html5_picture_in_picture_blocking_standard_api"); S=VC()&&yn(58)&&!s7();D=th||typeof MediaSource==="undefined";this.VR=this.V("uniplayer_block_pip")&&(S||D)||this.Dt||this.Zt||this.MN;S=g.mj(this)&&!this.Em;var T;Q?Q.disableRelatedVideos!==void 0&&(T=!Q.disableRelatedVideos):T=Z.rel;this.A4=S||zM(!this.K,T);this.FN=zM(!1,Q?Q.enableContentOwnerRelatedVideos:Z.co_rel);this.U=s7()&&d5>0&&d5<=4.4?"_top":"_blank";this.YJ=g.aM(this);this.R4=zM(this.playerStyle==="blazer",Q?Q.enableCsiLogging:Z.enablecsi);switch(this.playerStyle){case "blogger":T="bl"; break;case "gmail":T="gm";break;case "gac":T="ga";break;case "books":T="gb";break;case "docs":case "flix":T="gd";break;case "duo":T="gu";break;case "google-live":T="gl";break;case "google-one":T="go";break;case "play":T="gp";break;case "chat":T="hc";break;case "hangouts-meet":T="hm";break;case "photos-edu":case "picasaweb":T="pw";break;default:T="yt"}this.jJ=T;this.P7=qW("",Q?Q.authorizedUserIndex:Z.authuser);this.Sp=g.mj(this)&&(this.fL||!$DD()||this.Du);var f;Q?Q.disableWatchLater!==void 0&&(f= !Q.disableWatchLater):f=Z.showwatchlater;this.Uv=((T=!this.Sp)||!!this.P7&&T)&&zM(!this.SJ,this.T?f:void 0);this.yk=Q?Q.isMobileDevice||!!Q.disableKeyboardControls:zM(!1,Z.disablekb);this.loop=zM(!1,Z.loop);this.pageId=qW("",Q?Q.initialDelegatedSessionId:Z.pageid);this.qy=zM(!0,Z.canplaylive);this.qB=zM(!1,Z.livemonitor);this.disableSharing=zM(this.K,Q?Q.disableSharing:Z.ss);(f=Q&&this.V("fill_video_container_size_override_from_wpcc")?Q.videoContainerOverride:Z.video_container_override)?(T=f.split("x"), T.length!==2?f=null:(f=Number(T[0]),T=Number(T[1]),f=isNaN(f)||isNaN(T)||f*T<=0?null:new g.SO(f,T))):f=null;this.kZ=f;this.mute=Q?!!Q.startMuted:zM(!1,Z.mute);this.storeUserVolume=!this.mute&&zM(this.controlsType!=="0",Q?Q.storeUserVolume:Z.store_user_volume);f=Q?Q.annotationsLoadPolicy:Z.iv_load_policy;this.annotationsLoadPolicy=this.controlsType==="3"?3:KS(void 0,f,RM);this.captionsLanguagePreference=Q?Q.captionsLanguagePreference||"":qW("",Z.cc_lang_pref);f=KS(2,Q?Q.captionsLanguageLoadPolicy: Z.cc_load_policy,RM);this.controlsType==="3"&&f===2&&(f=3);this.gq=f;this.DI=Q?Q.hl||"en_US":qW("en_US",Z.hl);this.region=Q?Q.contentRegion||"US":qW("US",Z.cr);this.hostLanguage=Q?Q.hostLanguage||"en":qW("en",Z.host_language);this.Y3=!this.fL&&Math.random()<g.Xp(this.experiments,"web_player_api_logging_fraction");this.Zu=!this.fL;this.enabledEngageTypes=new Set;this.deviceIsAudioOnly=!(Q==null||!Q.deviceIsAudioOnly);this.kL=bb(this.kL,Z.ismb);this.Sb?(f=Z.vss_host||"s.youtube.com",f==="s.youtube.com"&& (f=Cn(this.Ff)||"www.youtube.com")):f="video.google.com";this.f$=f;pn(this,Z,!0);this.c7=new s_;g.W(this,this.c7);T=Q?Q.innertubeApiKey:qW("",Z.innertube_api_key);S=Q?Q.innertubeApiVersion:qW("",Z.innertube_api_version);f=Q?Q.innertubeContextClientVersion:qW("",Z.innertube_context_client_version);T=g.Ft("INNERTUBE_API_KEY")||T;S=g.Ft("INNERTUBE_API_VERSION")||S;D=g.Ft("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO");v=uI(this);Y=typeof this.Y.c==="number"?Number(this.Y.c):Object.keys(elx).indexOf(this.Y.c); this.Om={innertubeApiKey:T,innertubeApiVersion:S,T4:D,sU:v,q3:Y,innertubeContextClientVersion:g.Ft("INNERTUBE_CONTEXT_CLIENT_VERSION")||f,Xz:this.hostLanguage,yu:this.region,AY:g.Ft("INNERTUBE_HOST_OVERRIDE")||"",Uy:!!g.Ft("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),tJF:!!g.Ft("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1)};this.kz=window.WebKitPlaybackTargetAvailabilityEvent!=null;this.L=new F9(this.experiments,this.V("html5_force_hfr_support")?!0:dZ(this)||xq()||hjX()||wvd(this),g.R3&&g.fG(56)|| g.pD&&g.fG(54)||this.V("html5_force_vp9_subsample_encryption_support")||wvd(this));f=g.Nf(this);T=this.kL;S=this.experiments;D=new OgW(S);f&&(D.j=!0,D.K=.1);S.XI("html5_media_time_weight")&&(D.j=!1);T&&(D.S=T/8);D.W=RL()>=480;this.schedule=new D1(D,new TuD(this.experiments),b);g.W(this,this.schedule);var h;this.enableSafetyMode=(h=Q==null?void 0:Q.initialEnableSafetyMode)!=null?h:zM(!1,Z.enable_safety_mode);b=this.Vp?!1:JC(this)&&this.playerStyle!=="blazer";var m;Q?Q.disableAutonav!=null&&(m=!Q.disableAutonav): m=Z.allow_autonav;this.zJ=zM(b,!this.SJ&&m);this.sendVisitorIdHeader=Q?!!Q.sendVisitorIdHeader:zM(!1,Z.send_visitor_id_header);var J;this.playerStyle==="docs"&&(Q?J=Q.disableNativeContextMenu:J=Z.disable_native_context_menu);this.disableNativeContextMenu=zM(!1,J);this.T_=dZ(this)&&this.V("enable_skip_intro_button");this.embedConfig=qW("",Q?Q.serializedEmbedConfig:Z.embed_config);this.JG=jj(Z,g.mj(this));this.S=this.JG==="EMBEDDED_PLAYER_MODE_PFL";this.embedsErrorLinks=!(Q==null||!Q.embedsErrorLinks); this.Sc=zM(!1,Z.full_window);var d;this.CN=!((d=this.webPlayerContextConfig)==null?0:d.chromeless);var G;this.livingRoomAppMode=KS("LIVING_ROOM_APP_MODE_UNSPECIFIED",Z.living_room_app_mode||(Q==null?void 0:(G=Q.device)==null?void 0:G.livingRoomAppMode),Eor);var R;m=bb(NaN,Q==null?void 0:(R=Q.device)==null?void 0:R.deviceYear);isNaN(m)||(this.deviceYear=m);this.transparentBackground=Q?!!Q.transparentBackground:zM(!1,Z.transparent_background);this.showMiniplayerButton=Q?!!Q.showMiniplayerButton:zM(!1, Z.show_miniplayer_button);var U;g.mj(this)&&!(Q==null?0:(U=Q.embedsHostFlags)==null?0:U.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=Q?!!Q.externalFullscreen:zM(!1,Z.external_fullscreen);this.showMiniplayerUiWhenMinimized=Q?!!Q.showMiniplayerUiWhenMinimized:zM(!1,Z.use_miniplayer_ui);var B;this.uP=(B=Z.show_loop_video_toggle)!=null?B:!0;this.xA=Math.random()<1E-4;this.zT=Z.onesie_hot_config||(Q==null?0:Q.onesieHotConfig)?new Rln(Z.onesie_hot_config,Q==null?void 0:Q.onesieHotConfig): void 0;this.isTectonic=Q?!!Q.isTectonic:!!Z.isTectonic;this.playerCanaryState=z;this.playerCanaryStage=Q==null?void 0:Q.canaryStage;this.bY=new Bux;g.W(this,this.bY);this.uw=zM(!1,Z.force_gvi);this.datasyncId=(Q==null?void 0:Q.datasyncId)||g.Ft("DATASYNC_ID");this.K4=g.Ft("LOGGED_IN",!1);this.DH=(Q==null?void 0:Q.allowWoffleManagement)||!1;this.L4=Infinity;this.Bl=NaN;this.livingRoomPoTokenId=Q==null?void 0:Q.livingRoomPoTokenId;this.V("html5_high_res_logging_always")?this.aC=!0:this.aC=Math.random()* 100<g.Xp(this.experiments,"html5_high_res_logging_percent");var e;this.vk=!!(Q==null?0:(e=Q.embedsHostFlags)==null?0:e.allowRcat);this.p9=!g.ia(this)&&!HZ(this)}; g.PZ=function(Z){var Q,z;if(!((Q=Z.webPlayerContextConfig)==null?0:(z=Q.embedsHostFlags)==null?0:z.enableLiteUx)||Z.fL||Z.K||Z.S||Z.JG==="EMBEDDED_PLAYER_MODE_PFP")return"EMBEDDED_PLAYER_LITE_MODE_NONE";Z=g.Xp(Z.experiments,"embeds_web_lite_mode");return Z===void 0?"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN":Z>=0&&Z<llf.length?llf[Z]:"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN"}; pn=function(Z,Q,z){z=z===void 0?!1:z;Z.X7=qW(Z.X7,Q.video_id);Z.s$=qW(Z.s$,Q.eventid);Z.s$&&(Ll=Z.s$);for(var K=[],b=g.n(Object.keys(son)),q=b.next();!q.done;q=b.next()){q=son[q.value];var r=Q[q];r!=null&&(r!==Z.Y[q]&&K.push(q),Z.Y[q]=r)}!z&&K.length>0&&Z.xA&&(K.sort(),g.CO(new g.tW("Player client parameters changed after startup",K)));Z.userAge=bb(Z.userAge,Q.user_age);Z.Vr=qW(Z.Vr,Q.user_display_email);Z.userDisplayImage=qW(Z.userDisplayImage,Q.user_display_image);g.Qh(Z.userDisplayImage)||(Z.userDisplayImage= "");Z.userDisplayName=qW(Z.userDisplayName,Q.user_display_name);Z.J6=qW(Z.J6,Q.user_gender);Z.csiPageType=qW(Z.csiPageType,Q.csi_page_type);Z.csiServiceName=qW(Z.csiServiceName,Q.csi_service_name);Z.R4=zM(Z.R4,Q.enablecsi);Z.pageId=qW(Z.pageId,Q.pageid);if(z=Q.enabled_engage_types)Z.enabledEngageTypes=new Set(z.split(","));Q.living_room_session_po_token&&(Z.Q7=Q.living_room_session_po_token.toString())}; U_=function(Z,Q){return!Z.K&&VC()&&yn(55)&&Z.controlsType==="3"&&!Q}; g.O_=function(Z){Z=Cn(Z.Ff);return Z==="www.youtube-nocookie.com"?"www.youtube.com":Z}; oM=function(Z,Q,z){return Z.protocol+"://i1.ytimg.com/vi/"+Q+"/"+(z||"hqdefault.jpg")}; BZ=function(Z){return JC(Z)&&!g.ia(Z)}; g.Nx=function(Z){return Z.V("html5_local_playsinline")?eL&&!g.fG(602)&&!("playsInline"in a3()):eL&&!Z.u7||g.WX("nintendo wiiu")?!0:!1}; uI=function(Z){return Z.Y.c}; g.Nf=function(Z){return/^TVHTML5/.test(uI(Z))}; g.WZ=function(Z){return uI(Z)==="TVHTML5"}; V9n=function(Z){return uI(Z)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; wvd=function(Z){return Z.Y.cmodel==="CHROMECAST ULTRA/STEAK"||Z.Y.cmodel==="CHROMECAST/STEAK"}; g.Vf=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; dZ=function(Z){return/web/i.test(uI(Z))}; g.ka=function(Z){return uI(Z).toUpperCase()==="WEB"}; HZ=function(Z){return uI(Z)==="WEB_KIDS"}; g.ia=function(Z){return uI(Z)==="WEB_UNPLUGGED"}; ua=function(Z){return uI(Z)==="TVHTML5_UNPLUGGED"}; g.yF=function(Z){return g.ia(Z)||uI(Z)==="TV_UNPLUGGED_CAST"||ua(Z)}; g.HM=function(Z){return uI(Z)==="WEB_REMIX"}; g.xa=function(Z){return uI(Z)==="WEB_EMBEDDED_PLAYER"}; g.F4=function(Z){return(Z.deviceIsAudioOnly||!g.R3||th||Z.controlsType==="3"?!1:g.lV?Z.W&&g.fG(51):!0)||(Z.deviceIsAudioOnly||!g.pD||th||Z.controlsType==="3"?!1:g.lV?Z.W&&g.fG(48):g.fG(38))||(Z.deviceIsAudioOnly||!g.nn||th||Z.controlsType==="3"?!1:g.lV?Z.W&&g.fG(37):g.fG(27))||!Z.deviceIsAudioOnly&&g.tC&&!nlD()&&g.fG(11)||!Z.deviceIsAudioOnly&&g.Lc&&g.fG("604.4")}; ZJr=function(Z){if(g.GK(Z)&&yf)return!1;if(g.pD){if(!g.fG(47)||!g.fG(52)&&g.fG(51))return!1}else if(g.Lc)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; zXd=function(Z,Q){return Z.enabledEngageTypes.has(Q.toString())||QoM.includes(Q)}; JC=function(Z){return Z.KN==="detailpage"}; g.GK=function(Z){return Z.KN==="embedded"}; eY=function(Z){return Z.KN==="leanback"}; IM=function(Z){return Z.KN==="adunit"||Z.playerStyle==="gvn"}; g.aM=function(Z){return Z.KN==="profilepage"}; g.mj=function(Z){return Z.W&&g.GK(Z)&&!IM(Z)&&!Z.K}; w5=function(Z){if(!Z.userDisplayImage)return"";var Q=Z.userDisplayImage.split("/");if(Q.length===5)return Z=Q[Q.length-1].split("="),Z[1]="s20-c",Q[Q.length-1]=Z.join("="),Q.join("/");if(Q.length===8)return Q.splice(7,0,"s20-c"),Q.join("/");if(Q.length===9)return Q[7]+="-s20-c",Q.join("/");g.CO(new g.tW("Profile image not a FIFE URL.",Z.userDisplayImage));return Z.userDisplayImage}; g.E_=function(Z){var Q=g.O_(Z);Kqf.includes(Q)&&(Q="www.youtube.com");return Z.protocol+"://"+Q}; g.la=function(Z,Q){Q=Q===void 0?"":Q;if(Z.tL){var z=new EZ,K,b=Z.tL();b.signedOut?K="":b.token?K=b.token:b.pendingResult.then(function(q){b.signedOut?z.resolve(""):z.resolve(q.token)},function(q){g.CO(new g.tW("b189348328_oauth_callback_failed",{error:q})); z.resolve(Q)}); return K!==void 0?Rn(K):new an(z)}return Rn(Q)}; sK=function(Z,Q){Q=Q===void 0?"":Q;return Z.K4?qP(!0):v3(D7(qP(g.la(Z,Q)),function(z){return qP(!!z)}),function(){return qP(!1)})}; Cn=function(Z){var Q=g.pE(Z);return(Z=Number(g.CE(4,Z))||null)?Q+":"+Z:Q}; Zf=function(Z,Q){Q=Q===void 0?!1:Q;var z=kh[Z],K=bJx[z],b=q5D[Z];if(!b||!K)return null;Q=new BN(Q?b.height:b.width,Q?b.width:b.height,b.fps);K=AR(K,Q,z);return new ut(Z,K,{video:Q,Yq:b.bitrate/8})}; AVn=function(Z){var Q=bJx[kh[Z]],z=rVG[Z];return z&&Q?new ut(Z,Q,{audio:new Us(z.audioSampleRate,z.numChannels)}):null}; Q0=function(Z){this.Y=Z}; zs=function(Z,Q,z,K){if(z)return PX();z={};var b=a3();Q=g.n(Q);for(var q=Q.next();!q.done;q=Q.next())if(q=q.value,Z.canPlayType(b,q.getInfo().mimeType)||K){var r=q.Y.video.quality;if(!z[r]||z[r].getInfo().Jj())z[r]=q}Z=[];z.auto&&Z.push(z.auto);K=g.n(WN);for(b=K.next();!b.done;b=K.next())(b=z[b.value])&&Z.push(b);return Z.length?Rn(Z):PX()}; jon=function(Z){this.itag=Z.itag;this.url=Z.url;this.codecs=Z.codecs;this.width=Z.width;this.height=Z.height;this.fps=Z.fps;this.bitrate=Z.bitrate;var Q;this.j=((Q=Z.audioItag)==null?void 0:Q.split(","))||[];this.C2=Z.C2;this.NR=Z.NR||"";this.Qw=Z.Qw;this.audioChannels=Z.audioChannels;this.Y=""}; DID=function(Z,Q,z,K){Q=Q===void 0?!1:Q;z=z===void 0?!0:z;K=K===void 0?{}:K;var b={};Z=g.n(Z);for(var q=Z.next();!q.done;q=Z.next()){q=q.value;if(Q&&MediaSource&&MediaSource.isTypeSupported){var r=q.type;q.audio_channels&&(r=r+"; channels="+q.audio_channels);if(!MediaSource.isTypeSupported(r)){K[q.itag]="tpus";continue}}if(z||!q.drm_families||q.eotf!=="smpte2084"&&q.eotf!=="arib-std-b67"){r=void 0;var D={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},v=q.type.match(/codecs="([^"]*)"/); v=v?v[1]:"";q.audio_track_id&&(r=new g.Q3(q.name,q.audio_track_id,!!q.is_default));var Y=q.eotf;q=new jon({itag:q.itag,url:q.url,codecs:v,width:Number(q.width),height:Number(q.height),fps:Number(q.fps),bitrate:Number(q.bitrate),audioItag:q.audio_itag,C2:Y?D[Y]:void 0,NR:q.drm_families,Qw:r,audioChannels:Number(q.audio_channels)});b[q.itag]=b[q.itag]||[];b[q.itag].push(q)}else K[q.itag]="enchdr"}return b}; vt0=function(Z,Q,z,K,b){this.S=Z;this.j=Q;this.L=z;this.cpn=K;this.K=b;this.W=0;this.Y=""}; gtx=function(Z,Q){Z.S.some(function(z){var K;return((K=z.Qw)==null?void 0:K.getId())===Q}); Z.Y=Q}; KU=function(Z,Q,z){Z.cpn&&(Q=g.BK(Q,{cpn:Z.cpn}));z&&(Q=g.BK(Q,{paired:z}));return Q}; Y5G=function(Z,Q){Z=Z.itag.toString();Q!==null&&(Z+=Q.itag.toString());return Z}; X4G=function(Z){for(var Q=[],z=[],K=g.n(Z.j),b=K.next();!b.done;b=K.next())b=b.value,b.bitrate<=Z.W?Q.push(b):z.push(b);Q.sort(function(q,r){return r.bitrate-q.bitrate}); z.sort(function(q,r){return q.bitrate-r.bitrate}); Z.j=Q.concat(z)}; b8=function(Z,Q,z){this.Y=Z;this.j=Q;this.expiration=z;this.zW=null}; S5W=function(Z,Q){if(!(th||tN()||uV()))return null;Z=DID(Q,Z.V("html5_filter_fmp4_in_hls"));if(!Z)return null;Q=[];for(var z={},K=g.n(Object.keys(Z)),b=K.next();!b.done;b=K.next()){b=g.n(Z[b.value]);for(var q=b.next();!q.done;q=b.next()){var r=q.value;r.Qw&&(q=r.Qw.getId(),z[q]||(r=new g.w0(q,r.Qw),z[q]=r,Q.push(r)))}}return Q.length>0?Q:null}; Lq0=function(Z,Q,z,K,b,q,r){if(!(th||tN()||uV()))return PX();var D={},v=$IM(z),Y=DID(z,Z.V("html5_filter_fmp4_in_hls"),Z.L.T,D);if(!Y)return r({noplst:1}),PX();TAD(Y);z={};var X=(z.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",z),S;z=[];var T=[],f=[],h=null,m="";K=K&&K.match(/hls_timedtext_playlist/)?new jon({itag:"0",url:K,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,Qw:new g.Q3("English","en",!1)}):null;for(var J=g.n(Object.keys(Y)),d=J.next();!d.done;d=J.next())if(d=d.value,!Z.V("html5_disable_drm_hfr_1080")|| d!=="383"&&d!=="373"){d=g.n(Y[d]);for(var G=d.next();!G.done;G=d.next())if(G=G.value,G.width){for(var R=g.n(G.j),U=R.next();!U.done;U=R.next())if(U=U.value,Y[U]){G.Y=U;break}G.Y||(G.Y=fjd(Y,G));if(R=Y[G.Y])if(z.push(G),G.NR==="fairplay"&&(S=X),U="",G.C2==="PQ"?U="smpte2084":G.C2==="HLG"&&(U="arib-std-b67"),U&&(m=U),f.push(hXG(R,[G],K,q,G.itag,G.width,G.height,G.fps,v,void 0,void 0,S,U)),!h||G.width*G.height*G.fps>h.width*h.height*h.fps)h=G}else T.push(G)}else D[d]="disdrmhfr";f.reduce(function(B, e){return e.getInfo().isEncrypted()&&B},!0)&&(S=X); b=Math.max(b,0);X=h||{};Y=X.fps===void 0?0:X.fps;h=X.width===void 0?0:X.width;X=X.height===void 0?0:X.height;J=Z.V("html5_native_audio_track_switching");f.push(hXG(T,z,K,q,"93",h,X,Y,v,"auto",b,S,m,J));Object.entries(D).length&&r(D);return zs(Z.L,f,U_(Z,Q),!1)}; hXG=function(Z,Q,z,K,b,q,r,D,v,Y,X,S,T,f){for(var h=0,m="",J=g.n(Z),d=J.next();!d.done;d=J.next())d=d.value,m||(m=d.itag),d.audioChannels&&d.audioChannels>h&&(h=d.audioChannels,m=d.itag);b=new ut(b,"application/x-mpegURL",{audio:new Us(0,h),video:new BN(q,r,D,null,void 0,Y,void 0,T),NR:S,tf:m});Z=new vt0(Z,Q,z?[z]:[],K,!!f);Z.W=X?X:1369843;return new b8(b,Z,v)}; $IM=function(Z){Z=g.n(Z);for(var Q=Z.next();!Q.done;Q=Z.next())if(Q=Q.value,Q.url&&(Q=Q.url.split("expire/"),!(Q.length<=1)))return+Q[1].split("/")[0];return NaN}; fjd=function(Z,Q){for(var z=g.n(Object.keys(Z)),K=z.next();!K.done;K=z.next()){K=K.value;var b=Z[K][0];if(!b.width&&b.NR===Q.NR&&!b.audioChannels)return K}return""}; TAD=function(Z){for(var Q=new Set,z=g.n(Object.values(Z)),K=z.next();!K.done;K=z.next())K=K.value,K.length&&(K=K[0],K.height&&K.codecs.startsWith("vp09")&&Q.add(K.height));z=[];if(Q.size){K=g.n(Object.keys(Z));for(var b=K.next();!b.done;b=K.next())if(b=b.value,Z[b].length){var q=Z[b][0];q.height&&Q.has(q.height)&&!q.codecs.startsWith("vp09")&&z.push(b)}}Q=g.n(z);for(z=Q.next();!z.done;z=Q.next())delete Z[z.value]}; qk=function(Z,Q){this.Y=Z;this.j=Q}; ntW=function(Z,Q,z,K){var b=[];z=g.n(z);for(var q=z.next();!q.done;q=z.next()){var r=q.value;if(r.url){q=new g.TL(r.url,!0);if(r.s){var D=q,v=r.sp,Y=h5x(decodeURIComponent(r.s));D.set(v,encodeURIComponent(Y))}D=g.n(Object.keys(K));for(v=D.next();!v.done;v=D.next())v=v.value,q.set(v,K[v]);r=bx(r.type,r.quality,r.itag,r.width,r.height);b.push(new qk(r,q))}}return zs(Z.L,b,U_(Z,Q),!1)}; rv=function(Z,Q){this.Y=Z;this.j=Q}; cVf=function(Z,Q,z){var K=[];z=g.n(z);for(var b=z.next();!b.done;b=z.next())if((b=b.value)&&b.url){var q=bx(b.type,"medium","0");K.push(new rv(q,b.url))}return zs(Z.L,K,U_(Z,Q),!1)}; mIn=function(Z,Q){var z=[],K=bx(Q.type,"auto",Q.itag);z.push(new rv(K,Q.url));return zs(Z.L,z,!1,!0)}; JVG=function(Z){return Z&&Ijn[Z]?Ijn[Z]:null}; yVX=function(Z){if(Z=Z.commonConfig)this.url=Z.url,this.urlQueryOverride=Z.urlQueryOverride,Z.ustreamerConfig&&(this.XE=zK(Z.ustreamerConfig)||void 0)}; dIu=function(Z,Q){var z;if(Q=Q==null?void 0:(z=Q.watchEndpointSupportedOnesieConfig)==null?void 0:z.html5PlaybackOnesieConfig)Z.ji=new yVX(Q)}; g.AF=function(Z){Z=Z===void 0?{}:Z;this.languageCode=Z.languageCode||"";this.languageName=Z.languageName||null;this.kind=Z.kind||"";this.name=Z.name===void 0?null:Z.name;this.displayName=Z.displayName||null;this.id=Z.id||null;this.Y=Z.is_servable||!1;this.isTranslateable=Z.is_translateable||!1;this.url=Z.url||null;this.vssId=Z.vss_id||"";this.isDefault=Z.is_default||!1;this.translationLanguage=Z.translationLanguage||null;this.xtags=Z.xtags||"";this.captionId=Z.captionId||""}; g.Df=function(Z){var Q={languageCode:Z.languageCode,languageName:Z.languageName,displayName:g.jH(Z),kind:Z.kind,name:Z.name,id:Z.id,is_servable:Z.Y,is_default:Z.isDefault,is_translateable:Z.isTranslateable,vss_id:Z.vssId};Z.xtags&&(Q.xtags=Z.xtags);Z.captionId&&(Q.captionId=Z.captionId);Z.translationLanguage&&(Q.translationLanguage=Z.translationLanguage);return Q}; g.v1=function(Z){return Z.translationLanguage?Z.translationLanguage.languageCode:Z.languageCode}; g.NAW=function(Z){var Q=Z.vssId;Z.translationLanguage&&Q&&(Q="t"+Q+"."+g.v1(Z));return Q}; g.jH=function(Z){var Q=[];if(Z.displayName)Q.push(Z.displayName);else{var z=Z.languageName||"";Q.push(z);Z.kind==="asr"&&z.indexOf("(")===-1&&Q.push(" (Automatic Captions)");Z.name&&Q.push(" - "+Z.name)}Z.translationLanguage&&Q.push(" >> "+Z.translationLanguage.languageName);return Q.join("")}; P1u=function(Z,Q,z,K){Z||(Z=Q&&Gf4.hasOwnProperty(Q)&&iJ0.hasOwnProperty(Q)?iJ0[Q]+"_"+Gf4[Q]:void 0);Q=Z;if(!Q)return null;Z=Q.match(ajM);if(!Z||Z.length!==5)return null;if(Z=Q.match(ajM)){var b=Number(Z[3]),q=[7,8,10,5,6];Z=!(Number(Z[1])===1&&b===8)&&q.indexOf(b)>=0}else Z=!1;return z||K||Z?Q:null}; gv=function(Z,Q){for(var z={},K=g.n(Object.keys(RXf)),b=K.next();!b.done;b=K.next()){b=b.value;var q=Q?Q+b:b;q=Z[q+"_webp"]||Z[q];g.Qh(q)&&(z[RXf[b]]=q)}return z}; YF=function(Z){var Q={};if(!Z||!Z.thumbnails)return Q;Z=Z.thumbnails.filter(function(D){return!!D.url}); Z.sort(function(D,v){return D.width-v.width||D.height-v.height}); for(var z=g.n(Object.keys(C1G)),K=z.next();!K.done;K=z.next()){var b=Number(K.value);K=C1G[b];for(var q=g.n(Z),r=q.next();!r.done;r=q.next())if(r=r.value,r.width>=b){b=p4n(r.url);g.Qh(b)&&(Q[K]=b);break}}(Z=Z.pop())&&Z.width>=1280&&(Z=p4n(Z.url),g.Qh(Z)&&(Q["maxresdefault.jpg"]=Z));return Q}; p4n=function(Z){return Z.startsWith("//")?"https:"+Z:Z}; SH=function(Z){return Z&&Z.baseUrl||""}; $F=function(Z){Z=g.bV(Z);for(var Q=g.n(Object.keys(Z)),z=Q.next();!z.done;z=Q.next()){z=z.value;var K=Z[z];Z[z]=Array.isArray(K)?K[0]:K}return Z}; HJG=function(Z,Q){Z.botguardData=Q.playerAttestationRenderer.botguardData;Q=Q.playerAttestationRenderer.challenge;Q!=null&&(Z.Cj=Q)}; OJW=function(Z,Q){Q=g.n(Q);for(var z=Q.next();!z.done;z=Q.next()){z=z.value;var K=z.interstitials.map(function(r){var D=g.V(r,Mir);if(D)return{is_yto_interstitial:!0,raw_player_response:D};if(r=g.V(r,UIG))return Object.assign({is_yto_interstitial:!0},zr(r))}); K=g.n(K);for(var b=K.next();!b.done;b=K.next())switch(b=b.value,z.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":Z.interstitials=Z.interstitials.concat({time:0,playerVars:b,sK:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":Z.interstitials=Z.interstitials.concat({time:0x7ffffffffffff,playerVars:b,sK:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var q=Number(z.podConfig.timeToInsertAtMillis);Z.interstitials=Z.interstitials.concat({time:q,playerVars:b, sK:q===0?5:7})}}}; otX=function(Z,Q){if(Q=Q.find(function(z){return!(!z||!z.tooltipRenderer)}))Z.tooltipRenderer=Q.tooltipRenderer}; BA4=function(Z,Q){Q.subscribeCommand&&(Z.subscribeCommand=Q.subscribeCommand);Q.unsubscribeCommand&&(Z.unsubscribeCommand=Q.unsubscribeCommand);Q.addToWatchLaterCommand&&(Z.addToWatchLaterCommand=Q.addToWatchLaterCommand);Q.removeFromWatchLaterCommand&&(Z.removeFromWatchLaterCommand=Q.removeFromWatchLaterCommand);Q.getSharePanelCommand&&(Z.getSharePanelCommand=Q.getSharePanelCommand)}; Wqu=function(Z,Q){Q!=null?(Z.K9=Q,Z.BN=!0):(Z.K9="",Z.BN=!1)}; Ts=function(Z,Q){this.type=Z||"";this.id=Q||""}; g.fU=function(Z){return new Ts(Z.substring(0,2),Z.substring(2))}; g.hF=function(Z,Q){this.B7=Z;this.author="";this.W0=null;this.playlistLength=0;this.Y=this.sessionData=null;this.U={};this.title="";if(Q){this.author=Q.author||Q.playlist_author||"";this.title=Q.playlist_title||"";if(Z=Q.session_data)this.sessionData=ZX(Z,"&");var z;this.Y=((z=Q.thumbnail_ids)==null?void 0:z.split(",")[0])||null;this.U=gv(Q,"playlist_");this.videoId=Q.video_id||void 0;if(z=Q.list)switch(Q.listType){case "user_uploads":this.playlistId=(new Ts("UU","PLAYER_"+z)).toString();break;default:if(Z= Q.playlist_length)this.playlistLength=Number(Z)||0;this.playlistId=g.fU(z).toString();if(Q=Q.video)this.videoId=(Q[0]||null).video_id||void 0}else Q.playlist&&(this.playlistLength=Q.playlist.toString().split(",").length)}}; g.LU=function(Z,Q){this.B7=Z;this.m7=this.author="";this.W0=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.Zk=this.lengthText="";this.sessionData=null;this.U={};this.title="";if(Q){this.ariaLabel=Q.aria_label||void 0;this.author=Q.author||"";this.m7=Q.m7||"";if(Z=Q.endscreen_autoplay_session_data)this.W0=ZX(Z,"&");this.H0=Q.H0;this.isLivePlayback=Q.live_playback==="1";this.isUpcoming=!!Q.isUpcoming;if(Z=Q.length_seconds)this.lengthSeconds=typeof Z==="string"?Number(Z):Z;this.lengthText= Q.lengthText||"";this.Zk=Q.Zk||"";this.publishedTimeText=Q.publishedTimeText||void 0;if(Z=Q.session_data)this.sessionData=ZX(Z,"&");this.shortViewCount=Q.short_view_count_text||void 0;this.U=gv(Q);this.title=Q.title||"";this.videoId=Q.docid||Q.video_id||Q.videoId||Q.id||void 0;this.watchUrl=Q.watchUrl||void 0}}; Vin=function(Z){var Q,z,K=(Q=Z.getWatchNextResponse())==null?void 0:(z=Q.contents)==null?void 0:z.twoColumnWatchNextResults,b,q,r,D,v;Z=(b=Z.getWatchNextResponse())==null?void 0:(q=b.playerOverlays)==null?void 0:(r=q.playerOverlayRenderer)==null?void 0:(D=r.endScreen)==null?void 0:(v=D.watchNextEndScreenRenderer)==null?void 0:v.results;if(!Z){var Y,X;Z=K==null?void 0:(Y=K.endScreen)==null?void 0:(X=Y.endScreen)==null?void 0:X.results}return Z}; g.c1=function(Z){var Q,z,K;Z=g.V((Q=Z.getWatchNextResponse())==null?void 0:(z=Q.playerOverlays)==null?void 0:(K=z.playerOverlayRenderer)==null?void 0:K.decoratedPlayerBarRenderer,nU);return g.V(Z==null?void 0:Z.playerBar,kfG)}; uVf=function(Z){this.Y=Z.playback_progress_0s_url;this.S=Z.playback_progress_2s_url;this.j=Z.playback_progress_10s_url}; xIG=function(){if(m1===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(Q){}a:{try{var Z=!!self.localStorage}catch(Q){Z=!1}if(Z&&(Z=g.M7(g.FY()+"::yt-player"))){m1=new O8(Z);break a}m1=void 0}}return m1}; g.IO=function(){var Z=xIG();if(!Z)return{};try{var Q=Z.get("yt-player-lv");return JSON.parse(Q||"{}")}catch(z){return{}}}; g.ti9=function(Z){var Q=xIG();Q&&(Z=JSON.stringify(Z),Q.set("yt-player-lv",Z))}; g.JF=function(Z){return g.IO()[Z]||0}; g.y0=function(Z,Q){var z=g.IO();Q!==z[Z]&&(Q!==0?z[Z]=Q:delete z[Z],g.ti9(z))}; g.dv=function(Z){return g.C(function(Q){return Q.return(g.kk(FqM(),Z))})}; Gs=function(Z,Q,z,K,b,q,r,D){var v,Y,X,S,T,f;return g.C(function(h){switch(h.Y){case 1:return v=g.JF(Z),v===4?h.return(4):g.P(h,g.lQ(),2);case 2:Y=h.j;if(!Y)throw g.cs("wiac");if(!D||r===void 0){h.O$(3);break}return g.P(h,eXG(D,r),4);case 4:r=h.j;case 3:return X=z.lastModified||"0",g.P(h,g.dv(Y),5);case 5:return S=h.j,g.nX(h,6),Nk++,g.P(h,g.Ps(S,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",xq:!0},function(m){if(q!==void 0&&r!==void 0){var J=""+Z+"|"+Q.id+"|"+X+"|"+String(q).padStart(10, "0");J=g.Rw(m.objectStore("media"),r,J)}else J=g.Iw.resolve(void 0);var d=w4f(Z,Q.Gy()),G=w4f(Z,!Q.Gy()),R={fmts:Etx(K),format:z||{}};d=g.Rw(m.objectStore("index"),R,d);var U=K.downloadedEndTime===-1;R=U?m.objectStore("index").get(G):g.Iw.resolve(void 0);var B={fmts:"music",format:{}};m=U&&b&&!Q.Gy()?g.Rw(m.objectStore("index"),B,G):g.Iw.resolve(void 0);return g.Iw.all([m,R,J,d]).then(function(e){e=g.n(e);e.next();e=e.next().value;Nk--;var F=g.JF(Z);if(F!==4&&U&&b||e!==void 0&&g.ljd(e.fmts))F=1,g.y0(Z, F);return F})}),8); case 8:return h.return(h.j);case 6:T=g.I0(h);Nk--;f=g.JF(Z);if(f===4)return h.return(f);g.y0(Z,4);throw T;}})}; g.sU9=function(Z){var Q,z;return g.C(function(K){if(K.Y==1)return g.P(K,g.lQ(),2);if(K.Y!=3){Q=K.j;if(!Q)throw g.cs("ri");return g.P(K,g.dv(Q),3)}z=K.j;return K.return(g.Ps(z,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(b){var q=IDBKeyRange.bound(Z+"|",Z+"~");return b.objectStore("index").getAll(q).then(function(r){return r.map(function(D){return D?D.format:{}})})}))})}; QUG=function(Z,Q,z,K,b){var q,r,D;return g.C(function(v){if(v.Y==1)return g.P(v,g.lQ(),2);if(v.Y!=3){q=v.j;if(!q)throw g.cs("rc");return g.P(v,g.dv(q),3)}r=v.j;D=g.Ps(r,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(Y){var X=""+Z+"|"+Q+"|"+z+"|"+String(K).padStart(10,"0");return Y.objectStore("media").get(X)}); return b?v.return(D.then(function(Y){if(Y===void 0)throw Error("No data from indexDb");return Z50(b,Y)}).catch(function(Y){throw new g.tW("Error while reading chunk: "+Y.name+", "+Y.message); })):v.return(D)})}; g.ljd=function(Z){return Z?Z==="music"?!0:Z.includes("dlt=-1")||!Z.includes("dlt="):!1}; w4f=function(Z,Q){return""+Z+"|"+(Q?"v":"a")}; Etx=function(Z){var Q={};return QC((Q.dlt=Z.downloadedEndTime.toString(),Q.mket=Z.maxKnownEndTime.toString(),Q.avbr=Z.averageByteRate.toString(),Q))}; Ktu=function(Z){var Q={},z={};Z=g.n(Z);for(var K=Z.next();!K.done;K=Z.next()){var b=K.value,q=b.split("|");b.match(g.zbf)?(K=Number(q.pop()),isNaN(K)?z[b]="?":(q=q.join("|"),(b=Q[q])?(q=b[b.length-1],K===q.end+1?q.end=K:b.push({start:K,end:K})):Q[q]=[{start:K,end:K}])):z[b]="?"}Z=g.n(Object.keys(Q));for(K=Z.next();!K.done;K=Z.next())K=K.value,z[K]=Q[K].map(function(r){return r.start+"-"+r.end}).join(","); return z}; i8=function(Z){g.rV.call(this);this.Y=null;this.S=new oR;this.Y=null;this.K=new Set;this.crossOrigin=Z||""}; b5X=function(Z,Q,z){for(z=aO(Z,z);z>=0;){var K=Z.levels[z];if(K.isLoaded(P1(K,Q))&&(K=g.RO(K,Q)))return K;z--}return g.RO(Z.levels[0],Q)}; rur=function(Z,Q,z){z=aO(Z,z);for(var K,b;z>=0;z--)if(K=Z.levels[z],b=P1(K,Q),!K.isLoaded(b)){K=Z;var q=z,r=q+"-"+b;K.K.has(r)||(K.K.add(r),K.S.enqueue(q,{n5:q,YR:b}))}qp0(Z)}; qp0=function(Z){if(!Z.Y&&!Z.S.isEmpty()){var Q=Z.S.remove();Z.Y=Au9(Z,Q)}}; Au9=function(Z,Q){var z=document.createElement("img");Z.crossOrigin&&(z.crossOrigin=Z.crossOrigin);z.src=Z.levels[Q.n5].sS(Q.YR);z.onload=function(){var K=Q.n5,b=Q.YR;Z.Y!==null&&(Z.Y.onload=null,Z.Y=null);K=Z.levels[K];K.loaded.add(b);qp0(Z);var q=K.columns*K.rows;b*=q;K=Math.min(b+q-1,K.XC()-1);b=[b,K];Z.publish("l",b[0],b[1])}; return z}; g.CU=function(Z,Q,z,K){this.level=Z;this.W=Q;this.loaded=new Set;this.level=Z;this.W=Q;Z=z.split("#");this.width=Math.floor(Number(Z[0]));this.height=Math.floor(Number(Z[1]));this.frameCount=Math.floor(Number(Z[2]));this.columns=Math.floor(Number(Z[3]));this.rows=Math.floor(Number(Z[4]));this.Y=Math.floor(Number(Z[5]));this.S=Z[6];this.signature=Z[7];this.videoLength=K}; P1=function(Z,Q){return Math.floor(Q/(Z.columns*Z.rows))}; g.RO=function(Z,Q){Q>=Z.kO()&&Z.uH();var z=P1(Z,Q),K=Z.columns*Z.rows,b=Q%K;Q=b%Z.columns;b=Math.floor(b/Z.columns);var q=Z.uH()+1-K*z;if(q<Z.columns){var r=q;K=1}else r=Z.columns,K=q<K?Math.ceil(q/Z.columns):Z.rows;return{url:Z.sS(z),column:Q,columns:r,row:b,rows:K,sf:Z.width*r,qc:Z.height*K}}; pU=function(Z,Q,z,K,b){K=K===void 0?!1:K;b=b===void 0?!1:b;i8.call(this,z);this.isLive=K;this.T=!!b;this.levels=this.j(Z,Q);this.W=new Map;this.levels.length>1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; jU4=function(Z,Q,z){return(Z=Z.levels[Q])?Z.cF(z):-1}; aO=function(Z,Q){var z=Z.W.get(Q);if(z)return z;z=Z.levels.length;for(var K=0;K<z;K++)if(Z.levels[K].width>=Q)return Z.W.set(Q,K),K;Z.W.set(Q,z-1);return z-1}; H1=function(Z,Q,z,K){z=z.split("#");z=[z[1],z[2],0,z[3],z[4],-1,z[0],""].join("#");g.CU.call(this,Z,Q,z,0);this.j=null;this.L=K?2:0}; Mk=function(Z,Q,z,K){pU.call(this,Z,0,void 0,Q,!(K===void 0||!K));for(Z=0;Z<this.levels.length;Z++)this.levels[Z].Z9(z)}; Dbx=function(Z,Q,z){Q={cpn:Q};Z.indexOf("/ibw/")===-1&&(Q.ibw=z?String(z):"1369843");return{url:g.BK(Z,Q),type:"application/x-mpegURL",quality:"auto",itag:"93"}}; g.OK=function(Z,Q){g.rV.call(this);var z=this;this.B7=Z;this.adaptiveFormats="";this.FT=this.S5=this.adQueryId=this.iG=null;this.l3={start:NaN,end:NaN};this.cueRanges=this.NR=null;this.qX=new Map;this.compositeLiveStatusToken=this.compositeLiveIngestionOffsetToken=this.yB=void 0;this.Bl=this.drmParams="";this.eventLabel=null;this.allowEmbed=!0;this.allowLiveDvr=this.offlineable=this.backgroundable=!1;this.s$="";this.wM=!1;this.d4=null;this.Vr=this.Sc=this.qy=!1;this.W=null;this.Ce=this.zT=!1;this.CM= NaN;this.applyStatefulNormalization=this.preserveStatefulLoudnessTarget=!1;this.maxStatefulTimeThresholdSec=0;this.pm=NaN;this.loudnessTargetLkfs=Infinity;this.minimumLoudnessTargetLkfs=-Infinity;this.p9=0;this.FB=!1;this.jY=this.cycToken=null;this.author="";this.bu=!1;this.Zu=0;this.v2=!1;this.ZY=null;this.BD=[];this.HH=this.d5=!1;this.clientScreenNonce=this.playerResponseCpn=this.clientPlaybackNonce=this.videoCountText=this.F7=this.aC="";this.contentCheckOk=!1;this.limitedPlaybackDurationInSeconds= this.endSeconds=this.X7=0;this.MN=this.NB=this.j=null;this.zc="";this.loading=!1;this.kL=this.FN=0;this.s4=this.pipable=this.fC=this.isAutonav=!1;this.paidContentOverlayDurationMs=0;this.mutedAutoplay=this.h6=!1;this.mutedAutoplayDurationMode=0;this.isLiveHeadPlayable=this.isLivePlayback=this.qB=this.isPrivate=this.isListed=this.Zz=this.bY=!1;this.wU="";this.isLowLatencyLiveStream=this.isLivingRoomDeeplink=this.isLiveDefaultBroadcast=this.QO=this.c7=this.Da=!1;this.latencyClass="UNKNOWN";this.IJ= this.g4=this.tB=this.yE=this.OM=this.enablePreroll=this.D1=this.enableServerStitchedDai=this.PN=this.isMdxPlayback=this.isUpcoming=this.isPremiere=!1;this.mdxControlMode=null;this.isPharma=this.showSeekingControls=!1;this.Ph=0;this.reloadReason="";this.jH=this.PZ=this.ex=!1;this.keywords={};this.gq="";this.Il=0;this.BK=!1;this.unpluggedFilterModeType=0;this.liveChunkReadahead=NaN;this.VR=null;this.G7=this.lengthSeconds=0;this.playerParams=this.musicVideoType=null;this.jn=this.paygated=!1;this.iP= [];this.rj=!1;this.JG=[];this.EN=null;this.Vj=this.racyCheckOk=!1;this.vZ={};this.isProximaLatencyEligible=!1;this.hB=0;this.S=null;this.autonavState=1;this.Ic=null;this.shortDescription="";this.P7=this.D7=!1;this.Pg=this.sA=this.startSeconds=0;this.ew=this.AF=this.mK=UK;this.gM=this.suggestions=null;this.hP=this.pO=void 0;this.isExternallyHostedPodcast=!1;this.Em=null;this.expandedSubtitle=this.expandedTitle=this.subtitle=this.title="";this.Rv=void 0;this.Qp=[];this.Om=[];this.hlsFormats=this.YE= "";this.xk=this.PK=this.K4=this.zJ=this.CN=this.dl=this.dI=null;this.V2="vvt";this.lI=!1;this.Jp=null;this.h7="";this.CC=NaN;this.uE=this.bH=this.hV=this.O_=this.Jc=this.u7=this.sj=this.zq=this.AV=this.KP="";this.kz=null;this.HY=!1;this.T={};this.clipStart=0;this.clipEnd=Infinity;this.ir=!1;this.heartbeatToken="";this.uv=this.Sn=NaN;this.IW=this.Y3=this.J6=this.Ea=this.x9=!1;this.uw=!0;this.U={};this.captionTracks=[];this.YI=[];this.RO=0;this.p8=[];this.Ps=[];this.Hs=!1;this.iC={};this.L4=new g.w0("und", new g.Q3("Default","und",!0));this.SH=0;this.L=null;this.Xw=[];this.b6=!1;this.N_=this.Sp="";this.slotPosition=-1;this.breakType=0;this.embeddedPlayerConfig=this.tG=this.Hn=this.k7=this.playerResponse=this.Cl=this.V6=this.tR=this.Ma=this.VC=this.hm=this.yx=null;this.Og=!1;this.jJ=null;this.isInlinePlaybackNoAd=this.R4=this.Rd=this.useCobaltWidevine=this.yj=this.Yf=!1;this.QZ=!0;this.Q7=this.DH=NaN;this.defraggedFromSubfragments=this.QC=this.hasSubfragmentedFmp4=!1;this.liveExperimentalContentId=NaN; this.sabrContextUpdates=new Map;this.HK="";this.YO=!1;this.gatewayExperimentGroup="";this.eH=this.DI=this.LK=!1;this.interstitials=[];this.BN=this.UH=!1;this.K9="";this.allowImaMonetization=!1;this.KG="";this.Qx=!1;this.tV="";this.lc=[];this.Pn=[];this.gX="";this.PD=this.X=this.Tm=!1;this.N0="";this.T_=this.dU=this.Q0=this.readAheadGrowthRateMs=this.minReadAheadMediaTimeMs=this.maxReadAheadMediaTimeMs=NaN;this.showShareButton=!0;this.Zb=!1;this.TT=this.Uv=!0;this.errorDetail=this.userGenderAge=""; this.SY=this.g5=this.getSharePanelCommand=this.removeFromWatchLaterCommand=this.addToWatchLaterCommand=this.unsubscribeCommand=this.subscribeCommand=this.contextParams=this.Uq=this.errorReason=this.errorCode=null;this.Bs=this.dM="";this.uP=!1;this.XU=[];this.fL=this.Vp=this.ih=this.nZ=this.uY=0;this.fetchType=null;this.ut=!0;this.transitionEndpointAtEndOfStream=void 0;this.U2=this.fq=-1;this.tL=this.YJ=!1;this.N8=null;this.Du="";this.kZ=!1;this.watchUrl=null;this.TB=[];this.visibleOnLoadKeys=[];this.BR= [];this.inlineMetricEnabled=this.n4=!1;this.embedsRctn=this.embedsRct="";this.Gc=NaN;this.nG=(0,g.Nm)();this.sD=this.eb=0;this.XE=null;this.yk=0;this.Dt=this.Yb=!1;this.De=this.B7.experiments.XI("html5_use_triple_equals");this.JM=!1;this.iM=g.Xp(this.B7.experiments,"html5_gapless_loop_seek_offset_in_milli");this.Ca=0;this.Jl={};this.zz={setData:function(K){z.setData(K)}, Dm:function(){z.Dm()}}; this.YJ=this.V("web_new_autonav_countdown");this.tL=this.V("web_new_big_thumbnail_endscreen");this.setData(Q);this.JC=new qV;g.W(this,this.JC)}; g.W1=function(Z,Q,z){Q&&Q.cpn&&g.CO(new g.tW("CPN provided in VideoData update",{Tef:Q.cpn,iI:Z.clientPlaybackNonce,j$g:z}));z?(AW(Q),Z.setData(Q),oO(Z)&&Z.Dm()):(Q=Q||{},vdn(Z,Q),B1(Z,Q),gdX(Z,Q),Z.publish("dataupdated"))}; gdX=function(Z,Q){Z.fflags=qW(Z.fflags,Q.fflags);var z=Q.iv_invideo_url;z&&(Z.s$=zQ(z));Z.wM=zM(Z.wM,Q.iv_ads_only);if(z=Q.cta_conversion_urls)Z.Ha=z;Z.isPharma=zM(Z.isPharma,Q.is_pharma);Z.author=qW(Z.author,Q.author);Z.aC=YpG(Q.ttsurl)||Z.aC;Z.v2=zM(Z.v2,Q.cc_asr);Z.F7=qW(Z.F7,Q.channel_path);if(z=Q.profile_picture)Z.profilePicture=qW(Z.profilePicture,z);Z.videoCountText=qW(Z.videoCountText,Q.video_count_text);Z.autonavState=KS(Z.autonavState,Q.autonav_state,Xin);if(Z.V("html5_enable_ssap_entity_id")){var K; z=!!Q.cotn||!((K=Z.playerResponse)==null||!K.cotn);K=g.Xp(Z.B7.experiments,"html5_entity_id_simplified_preferred_record_size");Z.playerResponse&&!z&&(Z.clientPlaybackNonce=Spx(Z,Z.playerResponse,K)||Z.clientPlaybackNonce);Z.clientPlaybackNonce||(Q.cpn&&Z.rL("ssei","uhdc"),Z.clientPlaybackNonce=qW(Z.clientPlaybackNonce,Q.cpn))}else Z.clientPlaybackNonce=qW(Z.clientPlaybackNonce,Q.cpn);Z.subscribed=zM(Z.subscribed,Q.subscribed);Z.rawViewCount=bb(Z.rawViewCount,Q.view_count);Z.shortViewCount=qW(Z.shortViewCount, Q.short_view_count_text);Z.publishedTimeText=qW(Z.publishedTimeText||"",Q.publishedTimeText);Z.lengthText=qW(Z.lengthText||"",Q.lengthText);Z.Zk=qW(Z.Zk||"",Q.Zk);Z.m7=qW(Z.m7||"",Q.m7);Z.title=qW(Z.title,Q.title);Z.subtitle=qW(Z.subtitle,Q.subtitle);Z.expandedTitle=qW(Z.expandedTitle,Q.expanded_title);Z.expandedSubtitle=qW(Z.expandedSubtitle,Q.expanded_subtitle);Z.ypcPreview=qW(Z.ypcPreview,Q.ypc_preview);Z.bC=qW(Z.bC,Q.ypc_origin);Z.lI=zM(Z.lI,Q.ypc_is_premiere_trailer);Z.N0=qW(Z.N0,Q.ypc_clickwrap_message); Z.paygated=zM(Z.paygated,Q.paygated);Z.HY=zM(Z.HY,Q.requires_purchase);Z.showShareButton=!zM(!Z.showShareButton,Q.ss);Z.Uv=zM(Z.Uv,Q.showwatchlater);Z.TT=zM(Z.TT,Q.shownotifybutton);Z.Zb=zM(Z.Zb,Q.copy_share);if(K=Q.el)Z.eventLabel=K;if(K=Q.keywords)Z.keywords=$bG(K.split(","));if(K=Q.rvs)Z.suggestions=KA(K).map(function(b){return b.playlist||b.list||b.api?new g.hF(Z.B7,b):new g.LU(Z.B7,b)}); Z.contentCheckOk=zM(Z.contentCheckOk,Q.cco);Z.racyCheckOk=zM(Z.racyCheckOk,Q.rco);Z.isLivingRoomDeeplink=zM(Z.isLivingRoomDeeplink,Q.is_living_room_deeplink);Z.oauthToken=qW(Z.oauthToken,Q.oauth_token);Z.gq=qW(Z.gq,Q.kpt);Z.visitorData=qW(Z.visitorData,Q.visitor_data);if(K=Q.session_data)Z.sessionData=ZX(K,"&");Z.KO=qW(Z.KO,Q.endscreen_ad_tracking_data);Z.GC=zM(Z.GC,Q.wait_for_vast_info_cards_xml);Z.Id=zM(Z.Id,Q.suppress_creator_endscreen);Z.HZ=zM(Z.HZ,Q.is_trueview_action);Z.Nl=qW(Z.Nl,Q.tracking_list); Z.dM=qW(Z.dM,Q.clip);Z.Bs=qW(Z.Bs,Q.clipt);T6D(Z,Q)}; Spx=function(Z,Q,z){var K,b=(K=Q.cpnInfo)==null?void 0:K.cpn;Z.playerResponseCpn=b!=null?b:"";g.V0(Z)&&!b&&Z.rL("ssei","eim_"+Z.clientPlaybackNonce);var q;return((q=Q.cacheMetadata)==null?0:q.isCacheHit)||Z.HH||!b?"":(kF.has(b)?z="":(Q=fAX.push(b),kF.add(b),Q>(z!=null?z:50)&&(z=fAX.shift())&&kF.delete(z),z=b),b!==z&&Z.rL("ssei","dcpn_"+b+"_"+z+"_"+Z.clientPlaybackNonce),z)}; B1=function(Z,Q){var z=Q.raw_watch_next_response;if(!z){var K=Q.watch_next_response;K&&(z=JSON.parse(K))}if(z){Z.tG=z;var b=Z.tG.playerCueRangeSet;b&&g.u8(Z,b);var q=Z.tG.playerOverlays;if(q){var r=q.playerOverlayRenderer;if(r){var D=r.autonavToggle;D&&(Z.autoplaySwitchButtonRenderer=g.V(D,hbx),Z.V("web_player_autonav_use_server_provided_state")&&xF(Z)&&(Z.autonavState=Z.autoplaySwitchButtonRenderer.enabled?2:1));var v=r.videoDetails;if(v){var Y=v.embeddedPlayerOverlayVideoDetailsRenderer;var X=v.playerOverlayVideoDetailsRenderer; X&&(X.title&&(Q.title=g.SN(X.title)),X.subtitle&&(Q.subtitle=g.SN(X.subtitle)))}g.GK(Z.B7)&&(Z.Uv=!!r.addToMenu);LtG(Z,r.shareButton);r.startPosition&&r.endPosition&&(Z.progressBarStartPosition=r.startPosition,Z.progressBarEndPosition=r.endPosition);var S=r.gatedActionsOverlayRenderer;S&&(Z.S7=g.V(S,ndM));var T,f,h,m=g.V((T=Z.getWatchNextResponse())==null?void 0:(f=T.playerOverlays)==null?void 0:(h=f.playerOverlayRenderer)==null?void 0:h.infoPanel,cuu);if(m){Z.Gc=Number(m==null?void 0:m.durationMs)|| NaN;if(m==null?0:m.infoPanelOverviewViewModel)Z.y7=m==null?void 0:m.infoPanelOverviewViewModel;if(m==null?0:m.infoPanelDetailsViewModel)Z.Ju=m==null?void 0:m.infoPanelDetailsViewModel}Z.showSeekingControls=!!r.showSeekingControls}}var J,d,G=(J=Z.getWatchNextResponse())==null?void 0:(d=J.contents)==null?void 0:d.twoColumnWatchNextResults;if(G){var R=G.desktopOverlay&&g.V(G.desktopOverlay,mbM);R&&(R.suppressShareButton&&(Z.showShareButton=!1),R.suppressWatchLaterButton&&(Z.Uv=!1))}Y&&IAd(Z,Q,Y);var U= bb(0,Q.autoplay_count),B=Z.getWatchNextResponse(),e,F=(e=B.contents)==null?void 0:e.twoColumnWatchNextResults,KX,rf,sG,k=(KX=B.playerOverlays)==null?void 0:(rf=KX.playerOverlayRenderer)==null?void 0:(sG=rf.autoplay)==null?void 0:sG.playerOverlayAutoplayRenderer,l=Vin(Z),c,u=(c=B.contents)==null?void 0:c.singleColumnWatchNextResults;if(u){var o0;if(((o0=u.autoplay)==null?0:o0.autoplay)&&!u.playlist){var nz=u.autoplay.autoplay.sets,gX={},df=new g.LU(Z.N()),wf=null,zJ;if(nz){for(var $$=g.n(nz),y=$$.next();!y.done;y= $$.next()){var N=y.value.autoplayVideoRenderer;if(N&&N.compactVideoRenderer){wf=N.compactVideoRenderer;break}}if(zJ=nz[0].autoplayVideo){var a=zJ.clickTrackingParams;a&&(gX.itct=a);gX.autonav="1";gX.playnext=String(U)}}else gX.feature="related-auto";var p=g.V(zJ,g.tF);if(wf){df.videoId=wf.videoId;var M=wf.shortBylineText;M&&(df.author=g.SN(M));var ZD=wf.title;ZD&&(df.title=g.SN(ZD))}else p!=null&&p.videoId&&(df.videoId=p.videoId);df.W0=gX;Z.suggestions=[];Z.gM=df}}if(l){for(var bu=[],qr=g.n(l),H= qr.next();!H.done;H=qr.next()){var vG=H.value,$W=void 0,j4=null;if(vG.endScreenVideoRenderer){var a0=vG.endScreenVideoRenderer,Y$=a0.title;j4=new g.LU(Z.N());j4.videoId=a0.videoId;j4.lengthSeconds=a0.lengthInSeconds||0;var UQ=a0.publishedTimeText;UQ&&(j4.publishedTimeText=g.SN(UQ));var gl=a0.shortBylineText;gl&&(j4.author=g.SN(gl));var kW=a0.shortViewCountText;kW&&(j4.shortViewCount=g.SN(kW));if(Y$){j4.title=g.SN(Y$);var Um=Y$.accessibility;if(Um){var Ar=Um.accessibilityData;Ar&&Ar.label&&(j4.ariaLabel= Ar.label)}}var aI=a0.navigationEndpoint;if(aI){$W=aI.clickTrackingParams;var VE=g.V(aI,g.tF),DM=g.V(aI,g.pi);VE?j4.H0=VE:DM!=null&&(j4.watchUrl=DM.url)}var W8=a0.thumbnailOverlays;if(W8)for(var Om=g.n(W8),VX=Om.next();!VX.done;VX=Om.next()){var hE=VX.value.thumbnailOverlayTimeStatusRenderer;if(hE)if(hE.style==="LIVE"){j4.isLivePlayback=!0;break}else if(hE.style==="UPCOMING"){j4.isUpcoming=!0;break}}j4.U=YF(a0.thumbnail)}else if(vG.endScreenPlaylistRenderer){var va=vG.endScreenPlaylistRenderer,iq= va.navigationEndpoint;if(!iq)continue;var YK=g.V(iq,g.tF);if(!YK)continue;var al=YK.videoId;j4=new g.hF(Z.N());j4.playlistId=va.playlistId;j4.playlistLength=Number(va.videoCount)||0;j4.Y=al||null;j4.videoId=al;var ab=va.title;ab&&(j4.title=g.SN(ab));var PJ=va.shortBylineText;PJ&&(j4.author=g.SN(PJ));$W=iq.clickTrackingParams;j4.U=YF(va.thumbnail)}j4&&($W&&(j4.sessionData={itct:$W}),bu.push(j4))}Z.suggestions=bu}if(k){Z.ut=!!k.preferImmediateRedirect;Z.YJ=Z.YJ||!!k.webShowNewAutonavCountdown;Z.tL= Z.tL||!!k.webShowBigThumbnailEndscreen;if(Z.YJ||Z.tL){var y_=F||null,Em=new g.LU(Z.N());Em.videoId=k.videoId;var kr=k.videoTitle;if(kr){Em.title=g.SN(kr);var zw=kr.accessibility;if(zw){var m_=zw.accessibilityData;m_&&m_.label&&(Em.ariaLabel=m_.label)}}var Of=k.byline;Of&&(Em.author=g.SN(Of));var Yn=k.publishedTimeText;Yn&&(Em.publishedTimeText=g.SN(Yn));var Tu=k.shortViewCountText;Tu&&(Em.shortViewCount=g.SN(Tu));var fs=k.thumbnailOverlays;if(fs)for(var hx=g.n(fs),bK=hx.next();!bK.done;bK=hx.next()){var K4= bK.value.thumbnailOverlayTimeStatusRenderer;if(K4)if(K4.style==="LIVE"){Em.isLivePlayback=!0;break}else if(K4.style==="UPCOMING"){Em.isUpcoming=!0;break}else if(K4.style==="DEFAULT"&&K4.text){Em.lengthText=g.SN(K4.text);var qX=K4.text.accessibility;if(qX){var rh=qX.accessibilityData;rh&&rh.label&&(Em.Zk=rh.label||"")}break}}Em.U=YF(k.background);var Ls=k.nextButton;if(Ls){var ns=Ls.buttonRenderer;if(ns){var cd=ns.navigationEndpoint;if(cd){var mV=g.V(cd,g.tF);mV&&(Em.H0=mV)}}}if(k.topBadges){var IV= k.topBadges[0];if(IV){var Jx=g.V(IV,Juu);Jx&&Jx.style==="BADGE_STYLE_TYPE_PREMIUM"&&(Em.GgY=!0)}}var aG=k.alternativeTitle;aG&&(Em.m7=g.SN(aG));var IF={autonav:"1",playnext:String(U)};Em.playlistId&&(IF.autoplay="1");if(y_){var P0,kv,A4,yH,jI=(P0=y_.autoplay)==null?void 0:(kv=P0.autoplay)==null?void 0:(A4=kv.sets)==null?void 0:(yH=A4[0])==null?void 0:yH.autoplayVideo;if(jI){var dQ=jI.clickTrackingParams;dQ&&(IF.itct=dQ);var DU=g.V(jI,g.tF);DU&&(Em.Ic=DU)}}else if(k){var NB,Gu,ix,aV=(NB=k.nextButton)== null?void 0:(Gu=NB.buttonRenderer)==null?void 0:(ix=Gu.navigationEndpoint)==null?void 0:ix.clickTrackingParams;aV&&(IF.itct=aV)}IF.itct||(IF.feature="related-auto");Em.W0=IF;Z.suggestions||(Z.suggestions=[]);Z.gM=Em}k.countDownSecs!=null&&(Z.fq=k.countDownSecs*1E3);k.countDownSecsForFullscreen!=null&&(Z.U2=k.countDownSecsForFullscreen>=0?k.countDownSecsForFullscreen*1E3:-1);Z.V("web_autonav_color_transition")&&k.watchToWatchTransitionRenderer&&(Z.watchToWatchTransitionRenderer=g.V(k.watchToWatchTransitionRenderer, yun))}var vO=Vin(Z);if(vO){var Pd,RG,RV,gh=vO==null?void 0:(Pd=vO[0])==null?void 0:(RG=Pd.endScreenVideoRenderer)==null?void 0:(RV=RG.navigationEndpoint)==null?void 0:RV.clickTrackingParams,Cs=g.FR(Z);gh&&Cs&&(Cs.sessionData={itct:gh})}Z.tG.currentVideoThumbnail&&(Z.U=YF(Z.tG.currentVideoThumbnail));var ps,y$,Lu,d2,Yp,Lj=(ps=Z.tG)==null?void 0:(y$=ps.contents)==null?void 0:(Lu=y$.twoColumnWatchNextResults)==null?void 0:(d2=Lu.results)==null?void 0:(Yp=d2.results)==null?void 0:Yp.contents;if(Lj&&Lj[1]){var nj, cS,Hd,bh,mp=(nj=Lj[1].videoSecondaryInfoRenderer)==null?void 0:(cS=nj.owner)==null?void 0:(Hd=cS.videoOwnerRenderer)==null?void 0:(bh=Hd.thumbnail)==null?void 0:bh.thumbnails;mp&&mp.length&&(Z.profilePicture=mp[mp.length-1].url)}var C3=AW(Q),MB,Rb=(MB=Z.getWatchNextResponse())==null?void 0:MB.onResponseReceivedEndpoints;if(Rb)for(var UZ=g.n(Rb),XS=UZ.next();!XS.done;XS=UZ.next()){var SI=XS.value;g.V(SI,eH)&&(Z.Ok=g.V(SI,eH));var q9=g.V(SI,db9),OZ=void 0;if((OZ=q9)==null?0:OZ.entityKeys)Z.TB=q9.entityKeys|| [],q9.visibleOnLoadKeys&&(Z.visibleOnLoadKeys=q9.visibleOnLoadKeys)}if(Z.V("web_key_moments_markers")){var H0=g.wv.getState().entities,oV=g.AM("visibility_override","markersVisibilityOverrideEntity");var oz=Dk(H0,"markersVisibilityOverrideEntity",oV);Z.Qp=(oz==null?void 0:oz.videoId)===(Z.videoId||C3)&&(oz==null?0:oz.visibilityOverrideMarkersKey)?oz.visibilityOverrideMarkersKey:Z.visibleOnLoadKeys;Z.visibleOnLoadKeys=[].concat(g.I(Z.Qp))}}}; xF=function(Z){var Q;return((Q=Z.autoplaySwitchButtonRenderer)==null?void 0:Q.enabled)!==void 0}; EK=function(Z){return!!(Z.S&&Z.S.videoInfos&&Z.S.videoInfos.length)}; g.zz=function(Z){var Q=Z.X;Z.V("html5_gapless_unlimit_format_selection")&&l8(Z)&&(Q=!1);var z=!!Z.Y&&Z.Y.fd,K=Z.B7,b=Z.Qu(),q=sH(Z),r=Z.DI,D=Q,v=Z.isOtf();Q=Z.EW();var Y=Z.qB,X=Z.getUserAudio51Preference(),S=Zu(Z),T=new ZgM(K);if(K.aT()||K.V("html5_logging_format_selection"))T.j=!0;T.s$=q;T.DI=r&&K.T;T.Vp=X;g.WX("windows nt 5.1")&&!g.pD&&(T.u1=!0);if(q=b)q=g.F4(K)?ZJr(K):!1;q&&(T.P7=!0);D&&(T.u1=!0,T.fL=!0);v&&!K.V("html5_otf_prefer_vp9")&&(T.u1=!0);K.playerStyle==="picasaweb"&&(v&&(T.u1=!1),T.JG= !1);Y&&(T.u1=!0);Sl(K.L,$L.CHANNELS)&&(K.V("html5_enable_aac51")&&(T.SJ=!0),K.V("html5_enable_ac3")&&(T.W=!0),K.V("html5_enable_eac3")&&(T.L=!0),K.V("html5_enable_ac3_gapless")&&(T.tG=!0));K.V("html5_block_8k_hfr")&&(T.qB=!0);T.K=g.Xp(K.experiments,"html5_max_selectable_quality_ordinal");T.T=g.Xp(K.experiments,"html5_min_selectable_quality_ordinal");e2&&(T.Sp=480);if(z||b)T.JG=!1;T.CN=!1;T.disableAv1=S;z=y3(K,T.Y,void 0,T.disableAv1);z>0&&z<2160&&(Wd()||K.V("html5_format_hybridization"))&&(T.Y.supportsChangeType= +Wd(),T.k8=z);z>=2160&&(T.c7=!0);NZn()&&(T.Y.serveVp9OverAv1IfHigherRes=0,T.De=!1);T.EW=Q;T.Zu=g.Fc||ZT()&&!Q?!1:!0;T.X=K.V("html5_format_hybridization");T.F7=K.V("html5_disable_encrypted_vp9_live_non_2k_4k");Qa(Z)&&(T.Ph=Z.V("html5_prefer_language_over_codec"));uV()&&Z.playerResponse&&Z.playerResponse.playerConfig&&Z.playerResponse.playerConfig.webPlayerConfig&&Z.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(T.W=!0,T.L=!0);Z.X&&Z.isAd()&&(Z.pO&&(T.jJ=Z.pO),Z.hP&&(T.S= Z.hP));T.Du=Z.isLivePlayback&&Z.LZ()&&Z.B7.V("html5_drm_live_audio_51");T.gq=Z.Rd;return Z.N8=T}; Zu=function(Z){return Z.B7.V("html5_disable_av1")||Z.V("html5_gapless_shorts_disable_av1")&&l8(Z)?!0:!1}; N6G=function(Z){Ow("drm_pb_s",void 0,Z.Du);Z.NB||Z.Y&&D5(Z.Y);var Q={};Z.Y&&(Q=oEn(Z.JC,g.zz(Z),Z.B7.L,Z.Y,function(z){return Z.publish("ctmp","fmtflt",z)},!0,new Set)); Q=new Bg(Q,Z.B7,Z.yj,Z.useCobaltWidevine?uV()?K3(Z):!1:!1,function(z,K){Z.pN(z,K)}); g.W(Z,Q);Z.Y3=!1;Z.loading=!0;god(Q,function(z){Ow("drm_pb_f",void 0,Z.Du);for(var K=g.n(z),b=K.next();!b.done;b=K.next())switch(b=b.value,b.flavor){case "fairplay":b.NB=Z.NB;b.uG=Z.uG;b.zb=Z.zb;break;case "widevine":b.MN=Z.MN}Z.Xw=z;if(Z.Xw.length>0&&(Z.L=Z.Xw[0],Z.B7.aT())){z={};K=g.n(Object.entries(Z.L.Y));for(b=K.next();!b.done;b=K.next()){var q=g.n(b.value);b=q.next().value;q=q.next().value;var r="unk";(b=b.match(/(.*)codecs="(.*)"/))&&(r=b[2]);z[r]=q}Z.pN("drmProbe",z)}Z.Dm()})}; GEW=function(Z,Q){if(Q.length===0||bN(Z))return null;qz(Z,"html5_enable_cobalt_experimental_vp9_decoder")&&(cg=!0);var z=Z.NR;var K=Z.lengthSeconds,b=Z.isLivePlayback,q=Z.Da,r=Z.B7,D=Osn(Q);if(b||q){r=r.experiments;K=new rz("",r,!0);K.j=!q;K.fd=!0;K.isManifestless=!0;K.isLive=!q;K.Da=q;Q=g.n(Q);for(b=Q.next();!b.done;b=Q.next()){var v=b.value;b=Dd(v,z);D=mG(v);D=gz(D.MZ||v.url||"",D.KH,D.s);var Y=D.get("id");Y&&Y.includes("%7E")&&(K.U=!0);var X=void 0;Y=(X=r)==null?void 0:X.XI("html5_max_known_end_time_rebase"); X=Number(v.targetDurationSec||5);v=Number(v.maxDvrDurationSec||14400);var S=Number(D.get("mindsq")||D.get("min_sq")||"0"),T=Number(D.get("maxdsq")||D.get("max_sq")||"0")||Infinity;K.uY=K.uY||S;K.nZ=K.nZ||T;var f=!ZR(b);D&&KD(K,new ki(D,b,{ip:X,e9:f,iR:v,uY:S,nZ:T,Ln:300,Da:q,sH:Y}))}z=K}else if(D==="FORMAT_STREAM_TYPE_OTF"){K=K===void 0?0:K;q=new rz("",r.experiments,!1);q.duration=K||0;r=g.n(Q);for(K=r.next();!K.done;K=r.next())K=K.value,Q=Dd(K,z,q.duration),b=mG(K),(b=gz(b.MZ||K.url||"",b.KH,b.s))&& (Q.streamType==="FORMAT_STREAM_TYPE_OTF"?KD(q,new u7(b,Q,"sq/0")):KD(q,new Zd(b,Q,Jt(K.initRange),Jt(K.indexRange))));q.isOtf=!0;z=q}else{K=K===void 0?0:K;q=new rz("",r.experiments,!1);q.duration=K||0;r=g.n(Q);for(K=r.next();!K.done;K=r.next())D=K.value,K=Dd(D,z,q.duration),Q=Jt(D.initRange),b=Jt(D.indexRange),Y=mG(D),(D=gz(Y.MZ||D.url||"",Y.KH,Y.s))&&KD(q,new Zd(D,K,Q,b));z=q}q=Z.isLivePlayback&&!Z.Da&&!Z.c7&&!Z.isPremiere;Z.V("html5_live_head_playable")&&(!rP(Z)&&q&&Z.pN("missingLiveHeadPlayable", {}),Z.B7.jJ==="yt"&&(z.Zu=!0));return z}; bN=function(Z){return uV()?!K3(Z):tN()?!(!Z.NB||!Z.V("html5_enable_safari_fairplay")&&wz()):!1}; K3=function(Z){return Z.V("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; g.u8=function(Z,Q){Q=g.n(Q);for(var z=Q.next();!z.done;z=Q.next())if(z=z.value,z.cueRangeSetIdentifier){var K=void 0;Z.qX.set(z.cueRangeSetIdentifier,(K=z.playerCueRanges)!=null?K:[])}}; AP=function(Z){return!(!Z.Y||!Z.Y.isManifestless)}; jy=function(Z){return Z.De?Z.isLowLatencyLiveStream&&Z.Y!=null&&$Q(Z.Y)>=5:Z.isLowLatencyLiveStream&&Z.Y!=void 0&&$Q(Z.Y)>=5}; i5d=function(Z){return uV()&&K3(Z)?!1:bN(Z)&&(g.yF(Z.B7)?!Z.isLivePlayback:Z.hlsvp)||!wz()||Z.d5?!0:!1}; Rbu=function(Z){Z.loading=!0;Z.J6=!1;if(aAG(Z))g.sU9(Z.videoId).then(function(K){PDr(Z,K)}).then(function(){Z.Dm()}); else{ZB(Z.A4)||g.CO(new g.tW("DASH MPD Origin invalid: ",Z.A4));var Q=Z.A4,z=g.Xp(Z.B7.experiments,"dash_manifest_version")||4;Q=g.BK(Q,{mpd_version:z});Z.isLowLatencyLiveStream&&Z.latencyClass!=="NORMAL"||(Q=g.BK(Q,{pacing:0}));t8d(Q,Z.B7.experiments,Z.isLivePlayback).then(function(K){Z.FI()||(Du(Z,K,!0),Ow("mrc",void 0,Z.Du),Z.Dm())},function(K){Z.FI()||(Z.loading=!1,Z.publish("dataloaderror",new N5("manifest.net.retryexhausted",{backend:"manifest", rc:K.status},1)))}); Ow("mrs",void 0,Z.Du)}}; PDr=function(Z,Q){var z=Q.map(function(v){return v.itag}),K; if((K=Z.playerResponse)!=null&&K.streamingData){K=[];if(Z.V("html5_offline_always_use_local_formats")){z=0;for(var b=g.n(Q),q=b.next();!q.done;q=b.next()){q=q.value;var r=Object.assign({},q);r.signatureCipher="";K.push(r);r=g.n(Z.playerResponse.streamingData.adaptiveFormats);for(var D=r.next();!D.done;D=r.next())if(D=D.value,q.itag===D.itag&&q.xtags===D.xtags){z+=1;break}}z<Q.length&&Z.pN("offnpf",{prlen:z,lflen:Q.length})}else for(b=g.n(Z.playerResponse.streamingData.adaptiveFormats),r=b.next(), q={};!r.done;q={H8:void 0},r=b.next())if(q.H8=r.value,Z.V("html5_fix_multi_audio_offline_playback"))for(r=g.n(Q),D=r.next();!D.done;D=r.next())D=D.value,D.itag===q.H8.itag&&D.xtags===q.H8.xtags&&(q.H8=Object.assign({},q.H8),q.H8.url=Q.find(function(v){return function(Y){return Y.itag===v.H8.itag}}(q)).url,q.H8.signatureCipher="",K.push(q.H8)); else z.includes(q.H8.itag)&&(q.H8=Object.assign({},q.H8),q.H8.url=Q.find(function(v){return function(Y){return Y.itag===v.H8.itag}}(q)).url,q.H8.signatureCipher="",K.push(q.H8)); K.length<2&&Z.pN("offmlf",{len:K.length});Q=GEW(Z,K);sH(Z)&&E6n(Q,!1);Du(Z,Q);Z.pN("dlr",{})}else Z.pN("offsdm",{cotn:Z.Hn?Z.Hn.cotn:"0",cpn:Z.clientPlaybackNonce})}; CDf=function(Z){var Q;return!((Q=Z.B7.getWebPlayerContextConfig())==null||!Q.enableProximaLowLatency)}; v0=function(Z){if(!Z.isProximaLatencyEligible)return 0;var Q=CY();return CDf(Z)?2:Q===1?1:Z.V("html5_enable_proxima")?2:0}; Du=function(Z,Q,z){z=z===void 0?!1:z;Z.Ws=void 0;Z.Y=Q;g.W(Z,Q);Q.uY=Z.uY;Q.nZ=Z.nZ;Q.Vp=Z.Vp;Q.ih=Z.ih;Q.fL=Z.fL;Z.Yi&&(Q.X=new Sc(Z.Yi));(Z.Qu()||g.gP(Z))&&Z.JG.push("webgl");Z.Y.isLive||(Z.isLivePlayback=!1);var K=Q.sourceUrl.split("/");if(Z.De?K.indexOf("manifest_duration")!==-1:K.indexOf("manifest_duration")!=-1)Z.VR=Number(K[K.indexOf("manifest_duration")+1]);if(Q.j||Q.isManifestless)Q.subscribe("clienttemp",Z.pN,Z),z?Q.subscribe("refresh",Z.Kw,Z):Q.subscribe("cuepointsadded",Z.Lb,Z);D5(Q)? Z.Y3=!0:V3=void 0;Z.c7&&(Q.W=Z.c7,Q.isLive=!0,Z.isLivePlayback=!0);Q.isPremiere=Z.isPremiere;Q.isLiveHeadPlayable=Z.isLiveHeadPlayable}; H5u=function(Z,Q){var z=Q||i5d(Z)||Z.isExternallyHostedPodcast;if(!Z.Y||z)return Z.pN("skipDash",{dm:!!Z.Y,air:Q,dd:Z.d5,mss:wz(),"3pp":Z.isExternallyHostedPodcast}),PX();sH(Z)&&E6n(Z.Y,Z.isLivePlayback);qz(Z,"html5_enable_cobalt_experimental_vp9_decoder")&&Nu0(Z.B7.L);return Rn().then(function(){return Wod(Z.JC,g.zz(Z),Z.B7.L,Z.Y,Z.L,function(K){return Z.publish("ctmp","fmtflt",K)},Z.Pn,Qa(Z)&&Z.V("html5_enable_server_format_filter")).then(function(K){piG(Z,K); Z.JC.Y=null;/^av/.test(Z.clientPlaybackNonce)&&Z.N8&&Z.pN("av1",Z.N8.Y)})})}; MCn=function(Z,Q){if(Q&&Z.hlsvp)return PX();if(Z.hlsFormats){Q=YG(Z.hlsFormats);var z;if(((z=Z.N8)==null?0:z.j)&&Q){z=[];for(var K=g.n(Q),b=K.next();!b.done;b=K.next())z.push(b.value.itag);Z.pN("hlsfmt",{itags:z.join(".")})}Z.dI=S5W(Z.B7,Q);z=Z.clientPlaybackNonce;var q,r,D,v;return Lq0(Z.B7,Z.isAd(),Q,(v=(q=Z.playerResponse)==null?void 0:(r=q.captions)==null?void 0:(D=r.playerCaptionsRenderer)==null?void 0:D.baseUrl)!=null?v:null,Z.kL,z,function(Y){return Z.publish("ctmp","hlsflt",Y)}).then(function(Y){for(var X= 0,S=[],T=g.n(Y),f=T.next();!f.done;f=T.next()){f=f.value; var h=void 0;S.push((h=f.getInfo())==null?void 0:h.itag);var m=h=void 0;((h=f.getInfo())==null?void 0:(m=h.audio)==null?void 0:m.numChannels)>X&&(X=f.getInfo().audio.numChannels)}X>2&&Z.pN("hlschl",{mn:X});var J;((J=Z.N8)==null?0:J.j)&&Z.pN("hlsfmtaf",{itags:S.join(".")});var d;if(Z.V("html5_enable_vp9_fairplay")&&((d=Z.L)==null?0:RW(d)))for(Z.pN("drm",{sbdlfbk:1}),X=g.n(Z.Xw),S=X.next();!S.done;S=X.next())if(S=S.value,Pg(S)){Z.L=S;break}Xo(Z,Y)})}return PX()}; Ub9=function(Z){if(Z.isExternallyHostedPodcast&&Z.YE){var Q=YG(Z.YE);if(!Q[0])return PX();Z.fX=Q[0];return mIn(Z.B7,Q[0]).then(function(z){Xo(Z,z)})}return Z.Em&&Z.PZ?cVf(Z.B7,Z.isAd(),Z.Em).then(function(z){Xo(Z,z)}):PX()}; odG=function(Z){if(Z.isExternallyHostedPodcast)return PX();var Q=YG(Z.YE,Z.zc);if(Z.hlsvp){var z=Dbx(Z.hlsvp,Z.clientPlaybackNonce,Z.kL);Q.push(z)}return ntW(Z.B7,Z.isAd(),Q,O5X(Z)).then(function(K){Xo(Z,K)})}; piG=function(Z,Q){Z.S=Q;if(Z.S){Q=g.n(Z.S.videoInfos);for(var z=Q.next();!z.done;z=Q.next()){z=z.value;var K=z.containerType;K!==0&&(Z.iC[K]=z.id)}}Sy(Z);if(Z.L&&Z.S&&Z.S.videoInfos&&!(Z.S.videoInfos.length<=0)&&(Q=sZ(Z.S.videoInfos[0]),Z.L.flavor==="fairplay"!==Q))for(z=g.n(Z.Xw),K=z.next();!K.done;K=z.next())if(K=K.value,Q===(K.flavor==="fairplay")){Z.L=K;break}}; Xo=function(Z,Q){Z.zJ=Q;piG(Z,new b2(g.my(Z.zJ,function(z){return z.getInfo()})))}; O5X=function(Z){var Q={cpn:Z.clientPlaybackNonce,c:Z.B7.Y.c,cver:Z.B7.Y.cver};Z.GB&&(Q.ptk=Z.GB,Q.oid=Z.LG,Q.ptchn=Z.zE,Q.pltype=Z.VP,Z.bG&&(Q.m=Z.bG));return Q}; g.$G=function(Z){return bN(Z)&&Z.NB?(Z={},Z.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",Z):Z.j&&Z.j.NR||null}; B6d=function(Z){var Q=Tz(Z);return Q&&Q.text?g.SN(Q.text):Z.paidContentOverlayText}; Wtf=function(Z){var Q=Tz(Z);return Q&&Q.durationMs?sD(Q.durationMs):Z.paidContentOverlayDurationMs}; Tz=function(Z){var Q,z,K;return Z.playerResponse&&Z.playerResponse.paidContentOverlay&&Z.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.V((Q=Z.tG)==null?void 0:(z=Q.playerOverlays)==null?void 0:(K=z.playerOverlayRenderer)==null?void 0:K.playerDisclosure,VCW)||null}; f3=function(Z){var Q="";if(Z.wU)return Z.wU;Z.isLivePlayback&&(Q=Z.allowLiveDvr?"dvr":Z.isPremiere?"lp":Z.c7?"window":"live");Z.Da&&(Q="post");return Q}; g.hP=function(Z,Q){return typeof Z.keywords[Q]!=="string"?null:Z.keywords[Q]}; kEn=function(Z){return!!Z.NU||!!Z.RN||!!Z.nE||!!Z.Yt||Z.jn||Z.T.focEnabled||Z.T.rmktEnabled}; g.L3=function(Z){return!!(Z.A4||Z.YE||Z.Em||Z.hlsvp||Z.HL())}; oO=function(Z){if(Z.V("html5_onesie")&&Z.errorCode)return!1;var Q=g.wX(Z.JG,"ypc");Z.ypcPreview&&(Q=!1);return Z.hH()&&!Z.loading&&(g.L3(Z)||g.wX(Z.JG,"heartbeat")||Q)}; YG=function(Z,Q){Z=KA(Z);var z={};if(Q){Q=g.n(Q.split(","));for(var K=Q.next();!K.done;K=Q.next())(K=K.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(z[K[1]]={width:K[2],height:K[3]})}Q=g.n(Z);for(K=Q.next();!K.done;K=Q.next()){K=K.value;var b=z[K.itag];b&&(K.width=b.width,K.height=b.height)}return Z}; Sy=function(Z){var Q=Z.getAvailableAudioTracks();Q=Q.concat(Z.L4);for(var z=0;z<Z.YI.length;z++)for(var K=Z.YI[z],b=0;b<Q.length;b++){var q=Q[b],r=q.Qw.id===K.audioTrackId;if(q.Qw.isDefault&&z===Z.RO||r){if(K.captionTrackIndices)for(r=0;r<K.captionTrackIndices.length;r++)q.captionTracks[r]=Z.captionTracks[K.captionTrackIndices[r]];K.defaultCaptionTrackIndex!==void 0&&(q.S=Z.captionTracks[K.defaultCaptionTrackIndex]);K.forcedCaptionTrackIndex!==void 0&&(q.Y=Z.captionTracks[K.forcedCaptionTrackIndex]); q.j=K.visibility||"UNKNOWN";q.captionsInitialState=K.captionsInitialState||"CAPTIONS_INITIAL_STATE_UNKNOWN"}}}; LtG=function(Z,Q){Z.showShareButton=!!Q;var z,K,b=((z=g.V(Q,g.RU))==null?void 0:z.navigationEndpoint)||((K=g.V(Q,g.RU))==null?void 0:K.command);b&&(Z.Zb=!!g.V(b,uTn))}; vdn=function(Z,Q){var z=Q.raw_embedded_player_response;if(!z){var K=Q.embedded_player_response;K&&(z=JSON.parse(K))}z&&(Z.Ma=z);if(Z.Ma){Z.embeddedPlayerConfig=Z.Ma.embeddedPlayerConfig||null;if(z=Z.Ma.videoFlags)z.playableInEmbed&&(Z.allowEmbed=!0),z.isPrivate&&(Z.isPrivate=!0),z.userDisplayName&&(Q.user_display_name=z.userDisplayName),z.userDisplayImage&&(Q.user_display_image=z.userDisplayImage);if(z=Z.Ma.embedPreview){z=z.thumbnailPreviewRenderer;Wqu(Z,z.controlBgHtml);if(K=z.defaultThumbnail)Z.U= YF(K);Z.V("embeds_web_enable_search_button")&&z.searchButton&&(K=g.V(z.searchButton,g.RU))&&(Z.ue=g.V(K.navigationEndpoint,g.n3));(K=g.V(z==null?void 0:z.videoDetails,xbx))&&IAd(Z,Q,K);K=g.V(z==null?void 0:z.videoDetails,tCd);Z.Uv=!!z.addToWatchLaterButton;LtG(Z,z.shareButton);if(K==null?0:K.musicVideoType)Z.musicVideoType=K.musicVideoType;var b,q,r,D,v;if(K=g.V((b=Z.getEmbeddedPlayerResponse())==null?void 0:(q=b.embedPreview)==null?void 0:(r=q.thumbnailPreviewRenderer)==null?void 0:(D=r.playButton)== null?void 0:(v=D.buttonRenderer)==null?void 0:v.navigationEndpoint,g.tF))dIu(Z,K),Z.videoId=K.videoId||Z.videoId;z.videoDurationSeconds&&(Z.lengthSeconds=sD(z.videoDurationSeconds));z.webPlayerActionsPorting&&BA4(Z,z.webPlayerActionsPorting);if(b=g.V(z==null?void 0:z.playlist,Ftd)){Z.rj=!0;q=[];r=Number(b.currentIndex);if(b.contents)for(D=0,v=b.contents.length;D<v;D++)if(z=b.contents[D].playlistPanelVideoRenderer){K=z.shortBylineText?g.SN(z.shortBylineText):"";var Y=z.title?g.SN(z.title):"";q.push({author:K, encrypted_id:z.videoId,title:Y,channel_path:D===r?Q.channel_path:"",profile_picture:D===r?Q.profile_picture:"",is_private:D===r?Z.isPrivate:!0,is_dni:D===r?Z.BN:!1,dni_color:D===r?Z.K9:""})}Q={index:b.currentIndex,list:b.playlistId,playlist_length:b.totalVideos,video:q};b.titleText&&(Q.title=g.SN(b.titleText));b.shortBylineText&&(Q.author=g.SN(b.shortBylineText));Z.Cl=Q}var X,S,T;if(Q=g.V((X=Z.getEmbeddedPlayerResponse())==null?void 0:(S=X.embedPreview)==null?void 0:(T=S.thumbnailPreviewRenderer)== null?void 0:T.infoPanel,cuu)){Z.Gc=Number(Q==null?void 0:Q.durationMs)||NaN;if(Q==null?0:Q.infoPanelOverviewViewModel)Z.y7=Q==null?void 0:Q.infoPanelOverviewViewModel;if(Q==null?0:Q.infoPanelDetailsViewModel)Z.Ju=Q==null?void 0:Q.infoPanelDetailsViewModel}}if(Z.Ma.previewPlayabilityStatus){if(Z.V6=Z.Ma.previewPlayabilityStatus,X=Z.V6,!["OK","LIVE_STREAM_OFFLINE"].includes(X.status)){Z.errorCode=JVG(X.errorCode);S=X.errorScreen;if(T=S==null?void 0:S.playerErrorMessageRenderer){Z.K8=T;if(Q=T.reason)Z.errorReason= g.SN(Q);if(T=T.subreason)Z.Uq=g.SN(T)}else Z.errorReason=X.reason||null;switch(X.status){case "LOGIN_REQUIRED":Z.errorDetail="1";break;case "CONTENT_CHECK_REQUIRED":Z.errorDetail="2";break;case "AGE_CHECK_REQUIRED":var f;(S==null?0:(f=S.playerKavRenderer)==null?0:f.kavUrl)?Z.errorDetail="4":Z.errorDetail="3";break;default:Z.errorDetail=X.isBlockedInRestrictedMode?"5":"0"}}}else Z.Ma.playabilityStatus&&(Z.tR=Z.Ma.playabilityStatus,ebf(Z)&&(Z.errorDetail="0",Z.tR&&((f=Z.tR.embeddedPlayerErrorMessageRenderer)? Z.K8=g.V(f,wiW):Z.errorReason=Z.tR.reason||null)));(f=Z.Ma.attestation)&&HJG(Z,f);(f=Z.Ma.permissions)&&f.allowImaMonetization&&(Z.allowImaMonetization=!0)}}; IAd=function(Z,Q,z){var K=z.channelThumbnail;K&&(K=K.thumbnails)&&(K=K[0])&&(Q.profile_picture=K.url);var b;if(K=g.V((b=g.V(z==null?void 0:z.channelThumbnailEndpoint,Edn))==null?void 0:b.urlEndpoint,g.pi))Q.channel_path=K.url;if(b=z.collapsedRenderer)if(b=g.V(b,lAX)){if(K=b.title)Q.title=g.SN(K);if(b=b.subtitle)Q.subtitle=g.SN(b)}if(z=z.expandedRenderer)if(z=g.V(z,sdn)){if(b=z.title)Q.expanded_title=g.SN(b);if(b=z.subtitle)Q.expanded_subtitle=g.SN(b);if(z=z.subscribeButton)Z.subscribeButtonRenderer= g.V(z,g.c0),Z.subscribeButtonRenderer&&(Q.ucid=Z.subscribeButtonRenderer.channelId,Q.subscribed=Z.subscribeButtonRenderer.subscribed,Z.TT=!!Z.subscribeButtonRenderer.notificationPreferenceToggleButton,Z.subscribeButtonRenderer.notificationPreferenceToggleButton&&Z.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer&&(Q=Z.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer,Q.isToggled?(Z.g5=Q.toggledServiceEndpoint||null,Z.SY=Q.defaultServiceEndpoint|| null):(Z.g5=Q.defaultServiceEndpoint||null,Z.SY=Q.toggledServiceEndpoint||null)))}}; g.md=function(Z){return rP(Z)&&!Z.allowLiveDvr}; IG=function(Z){return rP(Z)&&Z.allowLiveDvr}; rP=function(Z){return Z.V("html5_live_head_playable")&&AP(Z)&&Z.B7.jJ==="yt"?Z.isLiveHeadPlayable:Z.isLivePlayback}; g.JP=function(Z){return!!Z.Y&&isG(Z.Y)}; g.ya=function(Z){return!!Z.Y&&aR9(Z.Y)}; g.dP=function(Z){return!!Z.Y&&Px9(Z.Y)}; g.gP=function(Z){return!!Z.Y&&RRf(Z.Y)}; g.Zdf=function(Z){if(Z.Id)return null;var Q=Z.d4;Q||(Q=Z.playerResponse&&Z.playerResponse.endscreen&&Z.playerResponse.endscreen.endscreenUrlRenderer&&Z.playerResponse.endscreen.endscreenUrlRenderer.url);return Q||null}; g.Qd9=function(Z){return Z.Id?null:Z.playerResponse&&Z.playerResponse.endscreen&&Z.playerResponse.endscreen.endscreenRenderer||null}; g.Nz=function(Z){return Z.V("enable_wn_infocards")}; g.Gz=function(Z){var Q,z,K,b;return(g.Nz(Z)?(Q=Z.tG)==null?void 0:(z=Q.cards)==null?void 0:z.cardCollectionRenderer:(K=Z.playerResponse)==null?void 0:(b=K.cards)==null?void 0:b.cardCollectionRenderer)||null}; g.iN=function(Z){if(!Z.playerResponse||!Z.playerResponse.annotations)return null;Z=g.n(Z.playerResponse.annotations);for(var Q=Z.next();!Q.done;Q=Z.next())if(Q=Q.value,Q.playerAnnotationsExpandedRenderer&&Q.playerAnnotationsExpandedRenderer.featuredChannel)return Q.playerAnnotationsExpandedRenderer;return null}; p3=function(Z){return Z.adFormat&&(Z.De?Z.adFormat!=="1_5":Z.adFormat!="1_5")?"adunit":Z.eventLabel||Z.B7.KN}; g.Mz=function(Z){return p3(Z)==="shortspage"}; l8=function(Z){return Z.aF()&&Z.N().supportsGaplessShorts()}; UH=function(Z){if(Z.isAd()&&(Z.De?Z.videoId!==Z.B7.X7:Z.videoId!=Z.B7.X7))return Z.B7.X7}; OH=function(Z){return Z.h6||p3(Z)==="detailpage"||p3(Z)==="shortspage"||Z.mutedAutoplay}; oG=function(Z){var Q=(Q=Z.V("enable_cleanup_masthead_autoplay_hack_fix"))&&p3(Z)==="adunit"?Z.fC:OH(Z)?p3(Z)==="detailpage"||p3(Z)==="shortspage"?Z.isAutonav||Z.Ph>0:Q||Z.adFormat!=="17_8"||Z.isAutonav||g.xa(Z.B7)||Z.fC?Z.bY?!1:Z.B7.YE||Z.B7.LK||!g.mj(Z.B7)?!Q&&p3(Z)==="adunit"&&Z.NU?!1:!0:!1:!1:(Z.bY?0:Z.ex)&&g.mj(Z.B7)?!0:!1;Z.V("html5_log_detailpage_autoplay")&&p3(Z)==="detailpage"&&Z.pN("autoplay_info",{autoplay:Z.h6,autonav:Z.isAutonav,wasDompaused:Z.bY,result:Q});return Q}; g.B0=function(Z){return Z.oauthToken||Z.B7.NU}; Kln=function(Z){if(Z.V("html5_stateful_audio_normalization")){var Q=1,z=g.Xp(Z.B7.experiments,"html5_default_ad_gain");z&&Z.isAd()&&(Q=z);var K;if(z=((K=Z.W)==null?void 0:K.audio.j)||Z.pm){K=(0,g.Nm)();Z.p9=2;var b=K-Z.B7.Bl<=Z.maxStatefulTimeThresholdSec*1E3;Z.applyStatefulNormalization&&b?Z.p9=4:b||(Z.B7.L4=Infinity,Z.B7.Bl=NaN);b=(Z.p9===4?g.Al(Z.B7.L4,Z.minimumLoudnessTargetLkfs,Z.loudnessTargetLkfs):Z.loudnessTargetLkfs)-z;if(Z.p9!==4){var q,r,D,v,Y=((q=Z.playerResponse)==null?void 0:(r=q.playerConfig)== null?void 0:(D=r.audioConfig)==null?void 0:(v=D.loudnessNormalizationConfig)==null?void 0:v.statelessLoudnessAdjustmentGain)||0;b+=Y}b=Math.min(b,0);Z.preserveStatefulLoudnessTarget&&(Z.B7.L4=z+b,Z.B7.Bl=K);Z=Math.min(1,Math.pow(10,b/20))||Q}else Z=zZx(Z)}else Z=zZx(Z);return Z}; zZx=function(Z){var Q=1,z=g.Xp(Z.B7.experiments,"html5_default_ad_gain");z&&Z.isAd()&&(Q=z);var K;if(z=((K=Z.W)==null?void 0:K.audio.S)||Z.CM)Z.p9=1;return Math.min(1,Math.pow(10,-z/20))||Q}; sH=function(Z){var Q=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],z=uI(Z.B7)==="TVHTML5_SIMPLY"&&Z.B7.Y.ctheme==="MUSIC";Z.LK||!g.HM(Z.B7)&&!z||!Q.includes(Z.musicVideoType)&&!Z.isExternallyHostedPodcast||(Z.LK=!0);if(Q=g.kq())Q=/Starboard\/([0-9]+)/.exec(g.iU()),Q=(Q?parseInt(Q[1],10):NaN)<10;z=Z.B7;z=(uI(z)==="TVHTML5_CAST"||uI(z)==="TVHTML5"&&(z.Y.cver.startsWith("6.20130725")||z.Y.cver.startsWith("6.20130726")))&&Z.B7.Y.ctheme==="MUSIC";var K;if(K=!Z.LK)z||(z=Z.B7,z=uI(z)=== "TVHTML5"&&z.Y.cver.startsWith("7")),K=z;K&&!Q&&(Q=Z.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",z=(Z.V("cast_prefer_audio_only_for_atv_and_uploads")||Z.V("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&Z.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",Q||z||Z.isExternallyHostedPodcast)&&(Z.LK=!0);return Z.B7.deviceIsAudioOnly||Z.LK&&Z.B7.T}; g.bdx=function(Z){var Q;if(!(Q=Z.V("html5_enable_sabr_live_captions")&&Z.fd()&&Qa(Z))){var z,K,b;Q=((z=Z.playerResponse)==null?void 0:(K=z.playerConfig)==null?void 0:(b=K.compositeVideoConfig)==null?void 0:b.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}return Q}; W0=function(Z){var Q,z,K;return!!((Q=Z.playerResponse)==null?0:(z=Q.playerConfig)==null?0:(K=z.mediaCommonConfig)==null?0:K.splitScreenEligible)}; Va=function(Z){var Q;return!((Q=Z.playerResponse)==null||!Q.compositePlayabilityStatus)}; q4f=function(Z){return isNaN(Z)?0:Math.max((Date.now()-Z)/1E3-30,0)}; kG=function(Z){return!(!Z.uP||!Z.B7.T)&&Z.HL()}; rQ4=function(Z){return Z.enablePreroll&&Z.enableServerStitchedDai}; AQn=function(Z){return Z.Dt&&!Z.Yi}; Qa=function(Z){var Q=Z.V("html5_enable_sabr_on_drive")&&Z.B7.jJ==="gd";if(Z.IJ)return Z.Dt&&Z.pN("fds",{fds:!0},!0),!1;if(Z.B7.jJ!=="yt"&&!Q)return Z.Dt&&Z.pN("dsvn",{ns:Z.B7.jJ},!0),!1;if(Z.cotn||!Z.Y||Z.Y.isOtf||Z.D1&&!Z.V("html5_enable_sabr_csdai"))return!1;if(Z.V("html5_use_sabr_requests_for_debugging"))return!0;if(Z.Dt&&Z.Yi)return Z.pN("esfw",{usbc:Z.Dt,hsu:!!Z.Yi},!0),!0;if(Z.V("html5_remove_client_sabr_determination"))return!1;var z=!Z.Y.fd&&!Z.LZ();Q=z&&xQ&&Z.V("html5_enable_sabr_vod_streaming_xhr"); z=z&&!xQ&&Z.V("html5_enable_sabr_vod_non_streaming_xhr");var K=uN(Z),b=Z.V("html5_enable_sabr_drm_vod_streaming_xhr")&&xQ&&Z.LZ()&&!Z.Y.fd&&(Z.Bl==="1"?!1:!0);(Q=Q||z||K||b)&&!Z.Yi&&Z.pN("sabr",{loc:"m"},!0);return Q&&!!Z.Yi}; uN=function(Z){var Q;if(!(Q=xQ&&Z.fd()&&Z.LZ()&&(Z.Bl==="1"?!1:!0)&&Z.V("html5_sabr_live_drm_streaming_xhr"))){Q=Z.fd()&&!Z.LZ()&&xQ;var z=Z.fd()&&Z.latencyClass!=="ULTRALOW"&&!Z.isLowLatencyLiveStream&&Z.V("html5_sabr_live_normal_latency_streaming_xhr"),K=Z.isLowLatencyLiveStream&&Z.V("html5_sabr_live_low_latency_streaming_xhr"),b=Z.latencyClass==="ULTRALOW"&&Z.V("html5_sabr_live_ultra_low_latency_streaming_xhr");Q=Q&&(z||K||b)}z=Q;Q=Z.enableServerStitchedDai&&z&&Z.V("html5_enable_sabr_ssdai_streaming_xhr"); z=!Z.enableServerStitchedDai&&z;K=Z.fd()&&!xQ&&Z.V("html5_enable_sabr_live_non_streaming_xhr");Z=xQ&&(Z.GJ()||W0(Z)&&Z.V("html5_enable_sabr_for_lifa_eligible_streams"));return Q||z||K||Z}; g.V0=function(Z){return Z.YO&&Qa(Z)}; aAG=function(Z){var Q;if(Q=!!Z.cotn)Q=Z.videoId,Q=!!Q&&g.JF(Q)===1;return Q&&!Z.uP}; g.xG=function(Z){if(!Z.Y||!Z.j||!Z.W)return!1;var Q=Z.Y.Y,z=!!Q[Z.j.id]&&LZ(Q[Z.j.id].zW.Y);Q=!!Q[Z.W.id]&&LZ(Q[Z.W.id].zW.Y);return(Z.j.itag==="0"||z)&&Q}; tP=function(Z){return Z.V6?["OK","LIVE_STREAM_OFFLINE"].includes(Z.V6.status):!0}; ebf=function(Z){return(Z=Z.tR)&&Z.showError?Z.showError:!1}; qz=function(Z,Q){return Z.V(Q)?!0:(Z.fflags||"").includes(Q+"=true")}; jdu=function(Z){return Z.V("html5_heartbeat_iff_heartbeat_params_filled")}; T6D=function(Z,Q){Q.inlineMetricEnabled&&(Z.inlineMetricEnabled=!0);Q.playback_progress_0s_url&&(Z.Yt=new uVf(Q));if(Q=Q.video_masthead_ad_quartile_urls)Z.RN=Q.quartile_0_url,Z.k5=Q.quartile_25_url,Z.oE=Q.quartile_50_url,Z.fG=Q.quartile_75_url,Z.t3=Q.quartile_100_url,Z.nE=Q.quartile_0_urls,Z.m2=Q.quartile_25_urls,Z.s2=Q.quartile_50_urls,Z.Xb=Q.quartile_75_urls,Z.MX=Q.quartile_100_urls}; $bG=function(Z){var Q={};Z=g.n(Z);for(var z=Z.next();!z.done;z=Z.next()){z=z.value;var K=z.split("=");K.length===2?Q[K[0]]=K[1]:Q[z]=!0}return Q}; YpG=function(Z){if(Z){if(Qp4(Z))return Z;Z=zuu(Z);if(Qp4(Z,!0))return Z}return""}; g.DnM=function(Z){return Z.captionsLanguagePreference||Z.B7.captionsLanguagePreference||g.hP(Z,"yt:cc_default_lang")||Z.B7.DI}; Fo=function(Z){return!(!Z.isLivePlayback||!Z.hasProgressBarBoundaries())}; g.FR=function(Z){var Q;return Z.gM||((Q=Z.suggestions)==null?void 0:Q[0])||null}; g.ey=function(Z){return Z.BN&&(Z.V("embeds_enable_pfp_always_unbranded")||Z.B7.Jl)}; wP=function(Z,Q){Z.V("html5_log_autoplay_src")&&l8(Z)&&Z.pN("apsrc",{src:Q})}; g.EH=function(Z){var Q,z;return!!((Q=Z.embeddedPlayerConfig)==null?0:(z=Q.embeddedPlayerFlags)==null?0:z.enableMusicUx)}; g.sq=function(Z){var Q=Z.N(),z=g.lN(Q),K=Q.NB;(Q.V("embeds_web_enable_iframe_api_send_full_embed_url")||Q.V("embeds_web_enable_rcat_validation_in_havs")||Q.V("embeds_enable_autoplay_and_visibility_signals"))&&g.GK(Q)&&(K&&(z.thirdParty=Object.assign({},z.thirdParty,{embedUrl:K})),a0G(z,Z));if(K=Z.KN)z.clickTracking={clickTrackingParams:K};K=z.client||{};var b="EMBED",q=p3(Z);q==="leanback"?b="WATCH":Q.V("gvi_channel_client_screen")&&q==="profilepage"?b="CHANNEL":Z.qB?b="LIVE_MONITOR":q==="detailpage"? b="WATCH_FULL_SCREEN":q==="adunit"?b="ADUNIT":q==="sponsorshipsoffer"&&(b="UNKNOWN");K.clientScreen=b;if(Q=Z.kidsAppInfo)K.kidsAppInfo=JSON.parse(Q);(b=Z.Il)&&!Q&&(K.kidsAppInfo={contentSettings:{ageUpMode:vgG[b]}});if(Q=Z.BK)K.unpluggedAppInfo={enableFilterMode:!0};(b=Z.unpluggedFilterModeType)&&!Q&&(K.unpluggedAppInfo={filterModeType:ggD[b]});if(Q=Z.jJ)K.unpluggedLocationInfo=Q;z.client=K;K=z.request||{};Z.IW&&(K.isPrefetch=!0);if(Q=Z.mdxEnvironment)K.mdxEnvironment=Q;if(Q=Z.mdxControlMode)K.mdxControlMode= Y40[Q];z.request=K;K=z.user||{};if(Q=Z.SJ)K.credentialTransferTokens=[{token:Q,scope:"VIDEO"}];if(Q=Z.gq)K.delegatePurchases={oauthToken:Q},K.kidsParent={oauthToken:Q};z.user=K;if(K=Z.contextParams)z.activePlayers=[{playerContextParams:K}];if(Z=Z.clientScreenNonce)z.clientScreenNonce=Z;return z}; g.lN=function(Z){var Q=g.eq(),z=Q.client||{};if(Z.forcedExperiments){var K=Z.forcedExperiments.split(","),b=[];K=g.n(K);for(var q=K.next();!q.done;q=K.next())b.push(Number(q.value));z.experimentIds=b}if(b=Z.homeGroupInfo)z.homeGroupInfo=JSON.parse(b);if(b=Z.getPlayerType())z.playerType=b;if(b=Z.Y.ctheme)z.theme=b;if(b=Z.livingRoomAppMode)z.tvAppInfo=Object.assign({},z.tvAppInfo,{livingRoomAppMode:b});b=Z.deviceYear;Z.V("html5_propagate_device_year")&&b&&(z.tvAppInfo=Object.assign({},z.tvAppInfo,{deviceYear:b})); if(b=Z.livingRoomPoTokenId)z.tvAppInfo=Object.assign({},z.tvAppInfo,{livingRoomPoTokenId:b});Q.client=z;z=Q.user||{};Z.enableSafetyMode&&(z=Object.assign({},z,{enableSafetyMode:!0}));Z.pageId&&(z=Object.assign({},z,{onBehalfOfUser:Z.pageId}));Q.user=z;z=Z.NB;Z.V("embeds_web_enable_iframe_api_send_full_embed_url")||Z.V("embeds_web_enable_rcat_validation_in_havs")||Z.V("embeds_enable_autoplay_and_visibility_signals")||!z||(Q.thirdParty={embedUrl:z});return Q}; hZf=function(Z,Q,z){var K=Z.videoId,b=g.sq(Z),q=Z.N(),r={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(yJ()),referer:document.location.toString(),signatureTimestamp:20139};g.B6();Z.isAutonav&&(r.autonav=!0);g.W6(0,141)&&(r.autonavState=g.W6(0,140)?"STATE_OFF":"STATE_ON");r.autoCaptionsDefaultOn=g.W6(0,66);oG(Z)&&(r.autoplay=!0);q.T&&Z.cycToken&&(r.cycToken=Z.cycToken);q.enablePrivacyFilter&&(r.enablePrivacyFilter=!0);Z.isFling&&(r.fling=!0);var D=Z.forceAdsUrl;if(D){var v={},Y=[];D=D.split(","); D=g.n(D);for(var X=D.next();!X.done;X=D.next()){X=X.value;var S=X.split("|");S.length!==3||X.includes("=")||(S[0]="breaktype="+S[0],S[1]="offset="+S[1],S[2]="url="+S[2]);X={adtype:"video_ad"};S=g.n(S);for(var T=S.next();!T.done;T=S.next()){var f=g.n(T.value.split("="));T=f.next().value;f=bXX(f);X[T]=f.join("=")}S=X.url;T=X.presetad;f=X.viralresponseurl;var h=Number(X.campaignid);if(X.adtype==="in_display_ad")S&&(v.url=S),T&&(v.presetAd=T),f&&(v.viralAdResponseUrl=f),h&&(v.viralCampaignId=String(h)); else if(X.adtype==="video_ad"){var m={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(X.offset)||0)}};if(X=XxX[X.breaktype])m.breakType=X;S&&(m.url=S);T&&(m.presetAd=T);f&&(m.viralAdResponseUrl=f);h&&(m.viralCampaignId=String(h));Y.push(m)}}r.forceAdParameters={videoAds:Y,inDisplayAd:v}}Z.isInlinePlaybackNoAd&&(r.isInlinePlaybackNoAd=!0);Z.isLivingRoomDeeplink&&(r.isLivingRoomDeeplink=!0);v=Z.gU;if(v!=null){v={startWalltime:String(v)};if(Y=Z.VR)v.manifestDuration=String(Y||14400);r.liveContext= v}if(Z.mutedAutoplay){r.mutedAutoplay=!0;v=q.getWebPlayerContextConfig();var J,d;(v==null?0:(J=v.embedsHostFlags)==null?0:J.allowMutedAutoplayDurationMode)&&(v==null?0:(d=v.embedsHostFlags)==null?0:d.allowMutedAutoplayDurationMode.includes(S40[Z.mutedAutoplayDurationMode]))&&(r.mutedAutoplayDurationMode=S40[Z.mutedAutoplayDurationMode])}if(Z.bY?0:Z.ex)r.splay=!0;J=Z.vnd;J===5&&(r.vnd=J);J={};if(d=Z.isMdxPlayback)J.triggeredByMdx=d;if(d=Z.ZD)J.skippableAdsSupported=d.split(",").includes("ska");if(Y= Z.QF){d=Z.Gv;v=[];Y=g.n(P69(Y));for(D=Y.next();!D.done;D=Y.next()){D=D.value;X=D.platform;D={applicationState:D.eR?"INACTIVE":"ACTIVE",clientFormFactor:$nn[X]||"UNKNOWN_FORM_FACTOR",clientName:C64[D.Lx]||"UNKNOWN_INTERFACE",clientVersion:D.deviceVersion||"",platform:T_0[X]||"UNKNOWN_PLATFORM"};X={};if(d){S=void 0;try{S=JSON.parse(d)}catch(G){g.CO(G)}S&&(X={params:[{key:"ms",value:S.ms}]},S.advertising_id&&(X.advertisingId=S.advertising_id),S.limit_ad_tracking!==void 0&&S.limit_ad_tracking!==null&& (X.limitAdTracking=S.limit_ad_tracking),D.osName=S.os_name,D.userAgent=S.user_agent,D.windowHeightPoints=S.window_height_points,D.windowWidthPoints=S.window_width_points)}v.push({adSignalsInfo:X,remoteClient:D})}J.remoteContexts=v}d=Z.sourceContainerPlaylistId;v=Z.serializedMdxMetadata;if(d||v)Y={},d&&(Y.mdxPlaybackContainerInfo={sourceContainerPlaylistId:d}),v&&(Y.serializedMdxMetadata=v),J.mdxPlaybackSourceContext=Y;r.mdxContext=J;J=Q.width;J>0&&(r.playerWidthPixels=Math.round(J));if(Q=Q.height)r.playerHeightPixels= Math.round(Q);z!==0&&(r.vis=z);if(z=q.widgetReferrer)r.widgetReferrer=z.substring(0,128);g.mj(q)&&r&&(r.ancestorOrigins=q.ancestorOrigins);Z.defaultActiveSourceVideoId&&(r.compositeVideoContext={defaultActiveSourceVideoId:Z.defaultActiveSourceVideoId});if(q=q.getWebPlayerContextConfig())r.encryptedHostFlags=q.encryptedHostFlags;K={videoId:K,context:b,playbackContext:{contentPlaybackContext:r}};Z.reloadPlaybackParams&&(K.playbackContext.reloadPlaybackContext={reloadPlaybackParams:Z.reloadPlaybackParams}); Z.contentCheckOk&&(K.contentCheckOk=!0);if(b=Z.clientPlaybackNonce)K.cpn=b;if(b=Z.playerParams)K.params=b;if(b=Z.playlistId)K.playlistId=b;Z.racyCheckOk&&(K.racyCheckOk=!0);b=Z.N();if(r=b.embedConfig)K.serializedThirdPartyEmbedConfig=r;K.captionParams={};r=g.W6(g.B6(),65);Z.deviceCaptionsOn!=null?K.captionParams.deviceCaptionsOn=Z.deviceCaptionsOn:g.ka(b)&&(K.captionParams.deviceCaptionsOn=r!=null?!r:!1);Z.Dd&&(K.captionParams.deviceCaptionsLangPref=Z.Dd);Z.BD.length?K.captionParams.viewerSelectedCaptionLangs= Z.BD:g.ka(b)&&(r=g.MP(),r==null?0:r.length)&&(K.captionParams.viewerSelectedCaptionLangs=r);r=Z.fetchType==="onesie"&&Z.V("html5_onesie_attach_po_token");q=Z.fetchType!=="onesie"&&Z.V("html5_non_onesie_attach_po_token");if(r||q)r=Z.N(),r.Q7&&(K.serviceIntegrityDimensions={},K.serviceIntegrityDimensions.poToken=r.Q7);b.V("fetch_att_independently")&&(K.attestationRequest={omitBotguardData:!0});if(b.V("html5_enable_sabr_from_watch_server")||b.V("html5_create_default_device_playback_capabilities")||b.V("html5_report_supports_vp9_encoding"))K.playbackContext|| (K.playbackContext={}),K.playbackContext.devicePlaybackCapabilities=fFr(Z),K.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding===!1&&Z.pN("noVp9",{});return K}; fFr=function(Z){var Q=!(Z==null?0:Z.EW())&&(Z==null?void 0:Z.fd())&&ZT(),z;if(z=Z==null?0:Z.V("html5_report_supports_vp9_encoding")){if(Z==null)z=0;else{z=g.zz(Z);Z=Z.N().L;var K=Zf("243");z=K?jl(z,K,Z,!0)===!0:!1}z=z&&!Q}return{supportsVp9Encoding:!!z,supportXhr:xQ}}; ngd=function(Z,Q){var z,K,b;return g.C(function(q){if(q.Y==1)return z={context:g.lN(Z.N()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:Z.videoId,cpn:Z.clientPlaybackNonce}}]},K=g.lc(LlW),g.P(q,g.t4(Q,z,K),2);b=q.j;return q.return(b)})}; cQd=function(Z,Q,z){var K=g.Xp(Q.experiments,"bg_vm_reinit_threshold");(!GG||(0,g.Nm)()-GG>K)&&ngd(Z,z).then(function(b){b&&(b=b.botguardData)&&g.P3(b,Q)},function(b){Z.FI()||(b=it(b),Z.pN("attf",b.details))})}; Zy=function(Z,Q){g.O.call(this);this.app=Z;this.state=Q}; ze=function(Z,Q,z){Z.state.Y.hasOwnProperty(Q)||Q7(Z,Q,z);Z.state.T[Q]=function(){return z.apply(Z,g.iu.apply(0,arguments))}; Z.state.K.add(Q)}; KW=function(Z,Q,z){Z.state.Y.hasOwnProperty(Q)||Q7(Z,Q,z);Z.app.N().T&&(Z.state.X[Q]=function(){return z.apply(Z,g.iu.apply(0,arguments))},Z.state.K.add(Q))}; Q7=function(Z,Q,z){Z.state.Y[Q]=function(){return z.apply(Z,g.iu.apply(0,arguments))}}; g.br=function(Z,Q,z){return Z.state.Y[Q].apply(Z.state.Y,g.I(z))}; qZ=function(){g.dd.call(this);this.L=new Map}; rR=function(){g.O.apply(this,arguments);this.element=null;this.K=new Set;this.T={};this.X={};this.Y={};this.U=new Set;this.S=new qZ;this.j=new qZ;this.W=new qZ;this.L=new qZ}; mnd=function(Z,Q,z){typeof Z==="string"&&(Z={mediaContentUrl:Z,startSeconds:Q,suggestedQuality:z});a:{if((Q=Z.mediaContentUrl)&&(Q=/\/([ve]|embed)\/([^#?]+)/.exec(Q))&&Q[2]){Q=Q[2];break a}Q=null}Z.videoId=Q;return A2(Z)}; A2=function(Z,Q,z){if(typeof Z==="string")return{videoId:Z,startSeconds:Q,suggestedQuality:z};Q={};z=g.n(IFG);for(var K=z.next();!K.done;K=z.next())K=K.value,Z[K]&&(Q[K]=Z[K]);return Q}; JQD=function(Z,Q,z,K){if(g.tn(Z)&&!Array.isArray(Z)){Q="playlist list listType index startSeconds suggestedQuality".split(" ");z={};for(K=0;K<Q.length;K++){var b=Q[K];Z[b]&&(z[b]=Z[b])}return z}Q={index:Q,startSeconds:z,suggestedQuality:K};typeof Z==="string"&&Z.length===16?Q.list="PL"+Z:Q.playlist=Z;return Q}; ju=function(){Zy.apply(this,arguments)}; dn9=function(Z){ze(Z,"cueVideoById",Z.iq);ze(Z,"loadVideoById",Z.CgN);ze(Z,"cueVideoByUrl",Z.HX);ze(Z,"loadVideoByUrl",Z.YAu);ze(Z,"playVideo",Z.txp);ze(Z,"pauseVideo",Z.pauseVideo);ze(Z,"stopVideo",Z.WGG);ze(Z,"clearVideo",Z.clearVideo);ze(Z,"getVideoBytesLoaded",Z.DU);ze(Z,"getVideoBytesTotal",Z.ZU);ze(Z,"getVideoLoadedFraction",Z.pW);ze(Z,"getVideoStartBytes",Z.mj);ze(Z,"cuePlaylist",Z.cuePlaylist);ze(Z,"loadPlaylist",Z.q$h);ze(Z,"nextVideo",Z.u7N);ze(Z,"previousVideo",Z.aGu);ze(Z,"playVideoAt", Z.uJr);ze(Z,"setShuffle",Z.setShuffle);ze(Z,"setLoop",Z.setLoop);ze(Z,"getPlaylist",Z.fI);ze(Z,"getPlaylistIndex",Z.getPlaylistIndex);ze(Z,"getPlaylistId",Z.getPlaylistId);ze(Z,"loadModule",Z.cY);ze(Z,"unloadModule",Z.Ol);ze(Z,"setOption",Z.B1);ze(Z,"getOption",Z.Fj);ze(Z,"getOptions",Z.j8);ze(Z,"mute",Z.vqN);ze(Z,"unMute",Z.Tmr);ze(Z,"isMuted",Z.isMuted);ze(Z,"setVolume",Z.XNG);ze(Z,"getVolume",Z.getVolume);ze(Z,"seekTo",Z.ulu);ze(Z,"getPlayerMode",Z.getPlayerMode);ze(Z,"getPlayerState",Z.kW);ze(Z, "getAvailablePlaybackRates",Z.getAvailablePlaybackRates);ze(Z,"getPlaybackQuality",function(){return Z.getPlaybackQuality(1)}); ze(Z,"setPlaybackQuality",Z.eNN);ze(Z,"getAvailableQualityLevels",Z.dF);ze(Z,"getCurrentTime",Z.OI);ze(Z,"getDuration",Z.z6);ze(Z,"addEventListener",Z.V4);ze(Z,"removeEventListener",Z.j3r);ze(Z,"getDebugText",Z.KI);ze(Z,"getVideoData",function(){return yQD(Z)}); ze(Z,"addCueRange",Z.zd);ze(Z,"removeCueRange",Z.removeCueRange);ze(Z,"setSize",Z.setSize);ze(Z,"getApiInterface",Z.getApiInterface);ze(Z,"destroy",Z.destroy);ze(Z,"mutedAutoplay",Z.mutedAutoplay);var Q=Z.app.N();Q.K||(ze(Z,"getVideoEmbedCode",Z.getVideoEmbedCode),ze(Z,"getVideoUrl",Z.N5));ze(Z,"getMediaReferenceTime",Z.nI);ze(Z,"getSize",Z.getSize);ze(Z,"setFauxFullscreen",Z.EJY);Q.K||ze(Z,"logImaAdEvent",Z.logImaAdEvent);ze(Z,"preloadVideoById",Z.ZyF);ze(Z,"wakeUpControls",Z.wakeUpControls)}; g.Dy=function(Z){return(Z=N_d(Z.app.W4()))?Z.eK():null}; gR=function(Z){var Q=g.PZ(Z.app.N()),z,K=(z=Z.app.getVideoData())==null?void 0:z.rj;Z=vq(Z.app);return g.DT(Q)&&!K||Z?!1:!0}; yQD=function(Z,Q){var z={};if(Q=Z.app.GW(Q===void 0?1:Q)){Q=Q.getVideoData();if(Q.isPrivate)return{};z.video_id=Q.videoId;z.author=Q.author;z.title=Q.title;z.isPlayable=tP(Q);z.errorCode=Q.errorCode;if(Q.j&&Q.j.video){z.video_quality=Q.j.video.quality;Q=Q.j.video;var K=[];Q.fps>32&&K.push("hfr");Q.isHdr()&&K.push("hdr");Q.primaries==="bt2020"&&K.push("wcg");z.video_quality_features=K}}if(Z=Z.getPlaylistId())z.list=Z;return z}; YA=function(){ju.apply(this,arguments)}; XX=function(Z,Q){var z={};if(Z.app.N().SJ){Z=g.n(GqM);for(var K=Z.next();!K.done;K=Z.next())K=K.value,Q.hasOwnProperty(K)&&(z[K]=Q[K]);if(Q=z.qoe_cat)Z="",typeof Q==="string"&&Q.length>0&&(Z=Q.split(",").filter(function(b){return idX.includes(b)}).join(",")),z.qoe_cat=Z; aFn(z)}else for(Z=g.n(PPD),K=Z.next();!K.done;K=Z.next())K=K.value,Q.hasOwnProperty(K)&&(z[K]=Q[K]);return z}; aFn=function(Z){var Q=Z.raw_player_response;if(!Q){var z=Z.player_response;z&&(Q=JSON.parse(z))}delete Z.player_response;delete Z.raw_player_response;if(Q){Z.raw_player_response={streamingData:Q.streamingData};var K;if((K=Q.playbackTracking)==null?0:K.qoeUrl)Z.raw_player_response=Object.assign({},Z.raw_player_response,{playbackTracking:{qoeUrl:Q.playbackTracking.qoeUrl}});var b;if((b=Q.videoDetails)==null?0:b.videoId)Z.raw_player_response=Object.assign({},Z.raw_player_response,{videoDetails:{videoId:Q.videoDetails.videoId}})}}; Su=function(Z,Q,z){var K=Z.app.RC(z);if(!K)return 0;Z=K-Z.app.getCurrentTime(z);return Q-Z}; CPG=function(Z){var Q=Q===void 0?5:Q;return Z?RZd[Z]||Q:Q}; g.$A=function(){YA.apply(this,arguments)}; pxr=function(Z){Q7(Z,"getInternalApiInterface",Z.getInternalApiInterface);Q7(Z,"addEventListener",Z.LB);Q7(Z,"removeEventListener",Z.pNN);Q7(Z,"cueVideoByPlayerVars",Z.Sa);Q7(Z,"loadVideoByPlayerVars",Z.UBf);Q7(Z,"preloadVideoByPlayerVars",Z.MxF);Q7(Z,"getAdState",Z.getAdState);Q7(Z,"sendAbandonmentPing",Z.sendAbandonmentPing);Q7(Z,"setLoopRange",Z.setLoopRange);Q7(Z,"getLoopRange",Z.getLoopRange);Q7(Z,"setAutonavState",Z.setAutonavState);Q7(Z,"seekTo",Z.vJu);Q7(Z,"seekBy",Z.cNf);Q7(Z,"seekToLiveHead", Z.seekToLiveHead);Q7(Z,"requestSeekToWallTimeSeconds",Z.requestSeekToWallTimeSeconds);Q7(Z,"seekToStreamTime",Z.seekToStreamTime);Q7(Z,"startSeekCsiAction",Z.startSeekCsiAction);Q7(Z,"getStreamTimeOffset",Z.getStreamTimeOffset);Q7(Z,"getVideoData",Z.M5);Q7(Z,"setInlinePreview",Z.setInlinePreview);Q7(Z,"getAppState",Z.getAppState);Q7(Z,"updateLastActiveTime",Z.updateLastActiveTime);Q7(Z,"setBlackout",Z.setBlackout);Q7(Z,"setUserEngagement",Z.setUserEngagement);Q7(Z,"updateSubtitlesUserSettings",Z.updateSubtitlesUserSettings); Q7(Z,"getPresentingPlayerType",Z.I7);Q7(Z,"canPlayType",Z.canPlayType);Q7(Z,"updatePlaylist",Z.updatePlaylist);Q7(Z,"updateVideoData",Z.updateVideoData);Q7(Z,"updateEnvironmentData",Z.updateEnvironmentData);Q7(Z,"sendVideoStatsEngageEvent",Z.fig);Q7(Z,"productsInVideoVisibilityUpdated",Z.productsInVideoVisibilityUpdated);Q7(Z,"setSafetyMode",Z.setSafetyMode);Q7(Z,"isAtLiveHead",function(Q){return Z.isAtLiveHead(void 0,Q)}); Q7(Z,"getVideoAspectRatio",Z.getVideoAspectRatio);Q7(Z,"getPreferredQuality",Z.getPreferredQuality);Q7(Z,"getPlaybackQualityLabel",Z.getPlaybackQualityLabel);Q7(Z,"setPlaybackQualityRange",Z.mnI);Q7(Z,"onAdUxClicked",Z.onAdUxClicked);Q7(Z,"getFeedbackProductData",Z.getFeedbackProductData);Q7(Z,"getStoryboardFrame",Z.getStoryboardFrame);Q7(Z,"getStoryboardFrameIndex",Z.getStoryboardFrameIndex);Q7(Z,"getStoryboardLevel",Z.getStoryboardLevel);Q7(Z,"getNumberOfStoryboardLevels",Z.getNumberOfStoryboardLevels); Q7(Z,"getCaptionWindowContainerId",Z.getCaptionWindowContainerId);Q7(Z,"getAvailableQualityLabels",Z.getAvailableQualityLabels);Q7(Z,"addCueRange",Z.addCueRange);Q7(Z,"addUtcCueRange",Z.addUtcCueRange);Q7(Z,"showAirplayPicker",Z.showAirplayPicker);Q7(Z,"dispatchReduxAction",Z.dispatchReduxAction);Q7(Z,"getPlayerResponse",Z.vt);Q7(Z,"getWatchNextResponse",Z.sI);Q7(Z,"getHeartbeatResponse",Z.LI);Q7(Z,"getCurrentTime",Z.Js);Q7(Z,"getDuration",Z.uL);Q7(Z,"getPlayerState",Z.getPlayerState);Q7(Z,"getPlayerStateObject", Z.uV);Q7(Z,"getVideoLoadedFraction",Z.getVideoLoadedFraction);Q7(Z,"getProgressState",Z.getProgressState);Q7(Z,"getVolume",Z.getVolume);Q7(Z,"setVolume",Z.BT);Q7(Z,"isMuted",Z.isMuted);Q7(Z,"mute",Z.vj);Q7(Z,"unMute",Z.Mq);Q7(Z,"loadModule",Z.loadModule);Q7(Z,"unloadModule",Z.unloadModule);Q7(Z,"getOption",Z.XG);Q7(Z,"getOptions",Z.getOptions);Q7(Z,"setOption",Z.setOption);Q7(Z,"loadVideoById",Z.vY);Q7(Z,"loadVideoByUrl",Z.uK);Q7(Z,"playVideo",Z.bB);Q7(Z,"loadPlaylist",Z.loadPlaylist);Q7(Z,"nextVideo", Z.nextVideo);Q7(Z,"previousVideo",Z.previousVideo);Q7(Z,"playVideoAt",Z.playVideoAt);Q7(Z,"getDebugText",Z.getDebugText);Q7(Z,"getWebPlayerContextConfig",Z.getWebPlayerContextConfig);Q7(Z,"notifyShortsAdSwipeEvent",Z.notifyShortsAdSwipeEvent);Q7(Z,"getVideoContentRect",Z.getVideoContentRect);Q7(Z,"setSqueezeback",Z.setSqueezeback);Q7(Z,"toggleSubtitlesOn",Z.toggleSubtitlesOn);Q7(Z,"isSubtitlesOn",Z.isSubtitlesOn);Q7(Z,"reportPlaybackIssue",Z.reportPlaybackIssue);Q7(Z,"setAutonav",Z.setAutonav);Q7(Z, "isNotServable",Z.isNotServable);Q7(Z,"channelSubscribed",Z.channelSubscribed);Q7(Z,"channelUnsubscribed",Z.channelUnsubscribed);Q7(Z,"togglePictureInPicture",Z.togglePictureInPicture);Q7(Z,"supportsGaplessAudio",Z.supportsGaplessAudio);Q7(Z,"supportsGaplessShorts",Z.supportsGaplessShorts);Q7(Z,"enqueueVideoByPlayerVars",function(Q){return void Z.enqueueVideoByPlayerVars(Q)}); Q7(Z,"clearQueue",Z.clearQueue);Q7(Z,"getAudioTrack",Z.gF);Q7(Z,"setAudioTrack",Z.xnp);Q7(Z,"getAvailableAudioTracks",Z.Pt);Q7(Z,"getMaxPlaybackQuality",Z.getMaxPlaybackQuality);Q7(Z,"getUserPlaybackQualityPreference",Z.getUserPlaybackQualityPreference);Q7(Z,"getSubtitlesUserSettings",Z.getSubtitlesUserSettings);Q7(Z,"resetSubtitlesUserSettings",Z.resetSubtitlesUserSettings);Q7(Z,"setMinimized",Z.setMinimized);Q7(Z,"setOverlayVisibility",Z.setOverlayVisibility);Q7(Z,"confirmYpcRental",Z.confirmYpcRental); Q7(Z,"queueNextVideo",Z.queueNextVideo);Q7(Z,"handleExternalCall",Z.handleExternalCall);Q7(Z,"logApiCall",Z.logApiCall);Q7(Z,"isExternalMethodAvailable",Z.isExternalMethodAvailable);Q7(Z,"setScreenLayer",Z.setScreenLayer);Q7(Z,"getCurrentPlaylistSequence",Z.getCurrentPlaylistSequence);Q7(Z,"getPlaylistSequenceForTime",Z.getPlaylistSequenceForTime);Q7(Z,"shouldSendVisibilityState",Z.shouldSendVisibilityState);Q7(Z,"syncVolume",Z.syncVolume);Q7(Z,"highlightSettingsMenuItem",Z.highlightSettingsMenuItem); Q7(Z,"openSettingsMenuItem",Z.openSettingsMenuItem);Q7(Z,"getEmbeddedPlayerResponse",Z.getEmbeddedPlayerResponse);Q7(Z,"getVisibilityState",Z.getVisibilityState);Q7(Z,"isMutedByMutedAutoplay",Z.isMutedByMutedAutoplay);Z.V("embeds_enable_emc3ds_muted_autoplay")&&Q7(Z,"isMutedByEmbedsMutedAutoplay",Z.isMutedByEmbedsMutedAutoplay);Q7(Z,"setGlobalCrop",Z.setGlobalCrop);Q7(Z,"setInternalSize",Z.setInternalSize);Q7(Z,"setFauxFullscreen",Z.setFauxFullscreen);Q7(Z,"setAppFullscreen",Z.setAppFullscreen)}; fW=function(Z,Q,z){Z=g.Te(Z.FJ(),Q);return z?(z.addOnDisposeCallback(Z),null):Z}; g.h2=function(Z,Q,z){return Z.app.N().yk?Q:g.fH("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:Q,SHORTCUT:z})}; Hdu=function(Z){Z.FJ().element.setAttribute("aria-live","polite")}; g.LW=function(Z,Q){g.$A.call(this,Z,Q);pxr(this);KW(this,"addEventListener",this.nB);KW(this,"removeEventListener",this.i0f);KW(this,"cueVideoByPlayerVars",this.WX);KW(this,"loadVideoByPlayerVars",this.Qup);KW(this,"preloadVideoByPlayerVars",this.euh);KW(this,"loadVideoById",this.vY);KW(this,"loadVideoByUrl",this.uK);KW(this,"playVideo",this.bB);KW(this,"loadPlaylist",this.loadPlaylist);KW(this,"nextVideo",this.nextVideo);KW(this,"previousVideo",this.previousVideo);KW(this,"playVideoAt",this.playVideoAt); KW(this,"getVideoData",this.IV);KW(this,"seekBy",this.rNg);KW(this,"seekTo",this.t$f);KW(this,"showControls",this.showControls);KW(this,"hideControls",this.hideControls);KW(this,"cancelPlayback",this.cancelPlayback);KW(this,"getProgressState",this.getProgressState);KW(this,"isInline",this.isInline);KW(this,"setInline",this.setInline);KW(this,"setLoopVideo",this.setLoopVideo);KW(this,"getLoopVideo",this.getLoopVideo);KW(this,"getVideoContentRect",this.getVideoContentRect);KW(this,"getVideoStats",this.aH); KW(this,"getCurrentTime",this.bV);KW(this,"getDuration",this.uL);KW(this,"getPlayerState",this.oH);KW(this,"getVideoLoadedFraction",this.er);KW(this,"mute",this.vj);KW(this,"unMute",this.Mq);KW(this,"setVolume",this.BT);KW(this,"loadModule",this.loadModule);KW(this,"unloadModule",this.unloadModule);KW(this,"getOption",this.XG);KW(this,"getOptions",this.getOptions);KW(this,"setOption",this.setOption);KW(this,"addCueRange",this.addCueRange);KW(this,"getDebugText",this.getDebugText);KW(this,"getStoryboardFormat", this.getStoryboardFormat);KW(this,"toggleFullscreen",this.toggleFullscreen);KW(this,"isFullscreen",this.isFullscreen);KW(this,"getPlayerSize",this.getPlayerSize);KW(this,"toggleSubtitles",this.toggleSubtitles);KW(this,"setCenterCrop",this.setCenterCrop);KW(this,"setFauxFullscreen",this.setFauxFullscreen);KW(this,"setSizeStyle",this.setSizeStyle);KW(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);KW(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);dn9(this)}; g.nW=function(Z){Z=Z.W4();var Q=Z.Ov.get("endscreen");return Q&&Q.bb()?!0:Z.Pw()}; g.cq=function(Z,Q){Z.getPresentingPlayerType()===3?Z.publish("mdxautoplaycancel"):Z.hG("onAutonavCancelled",Q)}; g.IT=function(Z){var Q=mI(Z.W4());return Z.app.EZ&&!Z.isFullscreen()||Z.getPresentingPlayerType()===3&&Q&&Q.C4()&&Q.x3()||!!Z.getPlaylist()}; g.J2=function(Z,Q){g.br(Z,"addEmbedsConversionTrackingParams",[Q])}; g.dR=function(Z){return(Z=g.y7(Z.W4()))?Z.SO():{}}; g.Mm0=function(Z){Z=(Z=Z.getVideoData())&&Z.j;return!!Z&&!(!Z.audio||!Z.video)&&Z.mimeType!=="application/x-mpegURL"}; g.NZ=function(Z,Q,z){Z=Z.U$().element;var K=jB(Z.children,function(b){b=Number(b.getAttribute("data-layer"));return z-b||1}); K<0&&(K=-(K+1));zB(Z,Q,K);Q.setAttribute("data-layer",String(z))}; g.Ge=function(Z){var Q=Z.N();if(!Q.zJ)return!1;var z=Z.getVideoData();if(!z||Z.getPresentingPlayerType()===3)return!1;var K=(!z.isLiveDefaultBroadcast||Q.V("allow_poltergust_autoplay"))&&!Fo(z);K=z.isLivePlayback&&(!Q.V("allow_live_autoplay")||!K);var b=z.isLivePlayback&&Q.V("allow_live_autoplay_on_mweb");Z=Z.getPlaylist();Z=!!Z&&Z.C4();var q=z.tG&&z.tG.playerOverlays||null;q=!!(q&&q.playerOverlayRenderer&&q.playerOverlayRenderer.autoplay);q=z.BN&&q;return!z.ypcPreview&&(!K||b)&&!g.wX(z.JG,"ypc")&& !Z&&(!g.mj(Q)||q)}; Und=function(Z){Z=Z.app.eJ();if(!Z)return!1;var Q=Z.getVideoData();if(!Q.j||!Q.j.video||Q.j.video.Y<1080||Q.Tm)return!1;var z=/^qsa/.test(Q.clientPlaybackNonce),K="r";Q.j.id.indexOf(";")>=0&&(z=/^[a-p]/.test(Q.clientPlaybackNonce),K="x");return z?(Z.pN("iqss",{trigger:K},!0),!0):!1}; ir=function(){O7.apply(this,arguments);this.requestHeaders={}}; Pq=function(){aT||(aT=new ir);return aT}; RT=function(Z,Q){Q?Z.requestHeaders.Authorization="Bearer "+Q:delete Z.requestHeaders.Authorization}; g.CW=function(Z,Q,z,K){K=K===void 0?!1:K;g.gV.call(this,Q);var b=this;this.J=Z;this.JG=K;this.X=new g.M5(this);this.jJ=new g.s8(this,z,!0,void 0,void 0,function(){b.O3()}); g.W(this,this.X);g.W(this,this.jJ)}; pW=function(Z){var Q=Z.J.getRootNode();return Z.J.V("web_watch_pip")||Z.J.V("web_shorts_pip")?UD(Q):document}; OdD=function(Z){Z.j&&(document.activeElement&&g.bG(Z.element,document.activeElement)&&Z.j.focus(),Z.j.setAttribute("aria-expanded","false"),Z.j=void 0);g.ib(Z.X);Z.U=void 0}; Hq=function(Z,Q,z){Z.y5()?Z.oT():Z.Gz(Q,z)}; MZ=function(Z,Q,z,K){K=new g.x({B:"div",nN:["ytp-linked-account-popup-button"],W7:K,C:{role:"button",tabindex:"0"}});Q=new g.x({B:"div",D:"ytp-linked-account-popup",C:{role:"dialog","aria-modal":"true",tabindex:"-1"},G:[{B:"div",D:"ytp-linked-account-popup-title",W7:Q},{B:"div",D:"ytp-linked-account-popup-description",W7:z},{B:"div",D:"ytp-linked-account-popup-buttons",G:[K]}]});g.CW.call(this,Z,{B:"div",D:"ytp-linked-account-popup-container",G:[Q]},100);var b=this;this.dialog=Q;g.W(this,this.dialog); K.listen("click",function(){b.oT()}); g.W(this,K);g.NZ(this.J,this.element,4);this.hide()}; g.Oq=function(Z,Q,z,K){g.gV.call(this,Z);this.priority=Q;z&&g.Uq(this,z);K&&this.Wo(K)}; g.oT=function(Z,Q,z,K){Z=Z===void 0?{}:Z;Q=Q===void 0?[]:Q;z=z===void 0?!1:z;K=K===void 0?!1:K;Q.push("ytp-menuitem");var b=Z;"role"in b||(b.role="menuitem");z||(b=Z,"tabindex"in b||(b.tabindex="0"));Z={B:z?"a":"div",nN:Q,C:Z,G:[{B:"div",D:"ytp-menuitem-icon",W7:"{{icon}}"},{B:"div",D:"ytp-menuitem-label",W7:"{{label}}"},{B:"div",D:"ytp-menuitem-content",W7:"{{content}}"}]};K&&Z.G.push({B:"div",D:"ytp-menuitem-secondary-icon",W7:"{{secondaryIcon}}"});return Z}; g.Uq=function(Z,Q){Z.updateValue("label",Q)}; Bq=function(Z){g.Oq.call(this,g.oT({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var Q=this;this.J=Z;this.j=this.Y=!1;this.Kd=Z.l7();Z.createServerVe(this.element,this,!0);this.Z(this.J,"settingsMenuVisibilityChanged",function(z){Q.yw(z)}); this.Z(this.J,"videodatachange",this.W);this.listen("click",this.onClick);this.W()}; Wq=function(Z){return Z?g.SN(Z):""}; V7=function(Z){g.O.call(this);this.api=Z}; kA=function(Z){V7.call(this,Z);var Q=this;Q7(Z,"setAccountLinkState",function(z){Q.setAccountLinkState(z)}); Q7(Z,"updateAccountLinkingConfig",function(z){Q.updateAccountLinkingConfig(z)}); Z.addEventListener("videodatachange",function(z,K){Q.onVideoDataChange(K)}); Z.addEventListener("settingsMenuInitialized",function(){Q.menuItem=new Bq(Q.api);g.W(Q,Q.menuItem)})}; ogW=function(Z){this.api=Z;this.Y={}}; ur=function(Z,Q,z,K){Q in Z.Y||(z=new g.b6(z,K,{id:Q,priority:2,namespace:"appad"}),Z.api.df([z],1),Z.Y[Q]=z)}; xA=function(Z){V7.call(this,Z);var Q=this;this.events=new g.M5(this);g.W(this,this.events);this.Y=new ogW(this.api);this.events.Z(this.api,"legacyadtrackingpingreset",function(){Q.Y.Y={}}); this.events.Z(this.api,"legacyadtrackingpingchange",function(z){var K=Q.Y;ur(K,"part2viewed",1,0x8000000000000);ur(K,"engagedview",Math.max(1,z.X7*1E3),0x8000000000000);if(!z.isLivePlayback){var b=z.lengthSeconds*1E3;l8(z)&&K.api.V("html5_shorts_gapless_ads_duration_fix")&&(b=K.api.getProgressState().seekableEnd*1E3-z.iM);ur(K,"videoplaytime25",b*.25,b);ur(K,"videoplaytime50",b*.5,b);ur(K,"videoplaytime75",b*.75,b);ur(K,"videoplaytime100",b,0x8000000000000);ur(K,"conversionview",b,0x8000000000000); ur(K,"videoplaybackstart",1,b);ur(K,"videoplayback2s",2E3,b);ur(K,"videoplayback10s",1E4,b)}}); this.events.Z(this.api,g.r7("appad"),this.j);this.events.Z(this.api,g.AH("appad"),this.j)}; kqM=function(Z,Q,z){if(!(z in Q))return!1;Q=Q[z];Array.isArray(Q)||(Q=[Q]);Q=g.n(Q);for(z=Q.next();!z.done;z=Q.next()){z=z.value;var K={CPN:Z.api.getVideoData().clientPlaybackNonce};z=g.Pk(z,K);K=void 0;K=K===void 0?!1:K;(K=Ei(lz(z,B_0),z,K,"Active View 3rd Party Integration URL"))||(K=void 0,K=K===void 0?!1:K,K=Ei(lz(z,WlX),z,K,"Google/YouTube Brand Lift URL"));K||(K=void 0,K=K===void 0?!1:K,K=Ei(lz(z,VmX),z,K,"Nielsen OCR URL"));g.of(z,void 0,K)}return!0}; t2=function(Z,Q){uDu(Z,Q).then(function(z){g.of(Q,void 0,void 0,z)})}; FX=function(Z,Q){Q.forEach(function(z){t2(Z,z)})}; uDu=function(Z,Q){return g.Nf(Z.api.N())&&DX(Q)&&jL(Q)?g.la(Z.api.N(),g.B0(Z.api.getVideoData())).then(function(z){var K;z&&(K={Authorization:"Bearer "+z});return K},void 0):Rn()}; xnx=function(Z){V7.call(this,Z);this.events=new g.M5(Z);g.W(this,this.events);this.events.Z(Z,"videoready",function(Q){if(Z.getPresentingPlayerType()===1){var z,K,b={playerDebugData:{pmlSignal:!!((z=Q.getPlayerResponse())==null?0:(K=z.adPlacements)==null?0:K.some(function(q){var r;return q==null?void 0:(r=q.adPlacementRenderer)==null?void 0:r.renderer})), contentCpn:Q.clientPlaybackNonce}};g.DW("adsClientStateChange",b)}})}; eu=function(Z){g.x.call(this,{B:"button",nN:["ytp-button"],C:{title:"{{title}}","aria-label":"{{label}}","data-priority":"2","data-tooltip-target-id":"ytp-autonav-toggle-button"},G:[{B:"div",D:"ytp-autonav-toggle-button-container",G:[{B:"div",D:"ytp-autonav-toggle-button",C:{"aria-checked":"true"}}]}]});this.J=Z;this.j=[];this.Y=!1;this.isChecked=!0;Z.createClientVe(this.element,this,113681);this.Z(Z,"presentingplayerstatechange",this.xr);this.listen("click",this.onClick);this.J.N().V("web_player_autonav_toggle_always_listen")&& tmM(this);fW(Z,this.element,this);this.xr()}; tmM=function(Z){Z.j.push(Z.Z(Z.J,"videodatachange",Z.xr));Z.j.push(Z.Z(Z.J,"videoplayerreset",Z.xr));Z.j.push(Z.Z(Z.J,"onPlaylistUpdate",Z.xr));Z.j.push(Z.Z(Z.J,"autonavchange",Z.MH))}; Flu=function(Z){Z.isChecked=Z.isChecked;Z.Ru("ytp-autonav-toggle-button").setAttribute("aria-checked",String(Z.isChecked));var Q=Z.isChecked?"Autoplay is on":"Autoplay is off";Z.updateValue("title",Q);Z.updateValue("label",Q);Z.J.Bv()}; eZX=function(Z){return Z.J.N().V("web_player_autonav_use_server_provided_state")&&xF(Z.SP())}; wxG=function(Z){V7.call(this,Z);var Q=this;this.events=new g.M5(Z);g.W(this,this.events);this.events.Z(Z,"standardControlsInitialized",function(){var z=new eu(Z);g.W(Q,z);Z.E_(z,"RIGHT_CONTROLS_LEFT")})}; wR=function(Z,Q){g.Oq.call(this,g.oT({role:"menuitemcheckbox","aria-checked":"false"}),Q,Z,{B:"div",D:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; Eq=function(Z,Q){Z.checked=Q;Z.element.setAttribute("aria-checked",String(Z.checked))}; Egn=function(Z){var Q=!Z.N().Yi&&Z.getPresentingPlayerType()!==3;return Z.isFullscreen()||Q}; g.lr=function(Z,Q,z,K){var b=Z.currentTarget;if((z===void 0||!z)&&g.Is(Z))return Z.preventDefault(),!0;Q.pauseVideo();Z=b.getAttribute("href");g.BM(Z,K,!0);return!1}; g.sV=function(Z,Q,z){if(BZ(Q.N())&&Q.getPresentingPlayerType()!==2){if(g.Is(z))return Q.isFullscreen()&&!Q.N().externalFullscreen&&Q.toggleFullscreen(),z.preventDefault(),!0}else{var K=g.Is(z);K&&Q.pauseVideo();g.BM(Z,void 0,!0);K&&(g.WM(Z),z.preventDefault())}return!1}; sLn=function(){var Z=lFx.includes("en")?{B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},G:[{B:"path",KL:!0,C:{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"}}]}:{B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},G:[{B:"path",KL:!0,C:{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"}}]};Z.D="ytp-subtitles-button-icon";return Z}; Z6=function(){return{B:"div",D:"ytp-spinner-container",G:[{B:"div",D:"ytp-spinner-rotator",G:[{B:"div",D:"ytp-spinner-left",G:[{B:"div",D:"ytp-spinner-circle"}]},{B:"div",D:"ytp-spinner-right",G:[{B:"div",D:"ytp-spinner-circle"}]}]}]}}; QZ=function(Z){if(document.createRange){var Q=document.createRange();Q&&(Q.selectNodeContents(Z),Z=window.getSelection())&&(Z.removeAllRanges(),Z.addRange(Q))}}; bl=function(Z){var Q=Z.V("web_player_use_cinematic_label_2")?"Ambient mode":"Cinematic lighting";wR.call(this,Q,g.zN.dO);var z=this;this.J=Z;this.Y=!1;this.j=new g.E6(function(){g.jn(z.element,"ytp-menuitem-highlighted")},0); this.Kd=Z.l7();this.setIcon({B:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},G:[{B:"path",C:{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.S,this);this.listen(KL,this.W);g.W(this,this.j)}; qK=function(Z){V7.call(this,Z);var Q=this;this.Y=!1;Z.addEventListener("settingsMenuInitialized",function(){ZY0(Q)}); Z.addEventListener("highlightSettingsMenu",function(z){ZY0(Q);var K=Q.menuItem;z==="menu_item_cinematic_lighting"&&(g.rd(K.element,"ytp-menuitem-highlighted"),g.rd(K.element,"ytp-menuitem-highlight-transition-enabled"),K.j.start())}); Q7(Z,"updateCinematicSettings",function(z){Q.updateCinematicSettings(z)})}; ZY0=function(Z){Z.menuItem||(Z.menuItem=new bl(Z.api),g.W(Z,Z.menuItem),Z.menuItem.E$(Z.Y))}; rF=function(Z){V7.call(this,Z);var Q=this;this.events=new g.M5(Z);g.W(this,this.events);this.events.Z(Z,"applicationvideodatachange",function(z,K){Q.jM(z,K)})}; AI=function(Z){V7.call(this,Z);this.events=new g.M5(Z);g.W(this,this.events);Q7(Z,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));Q7(Z,"setCreatorEndscreenHideButton",this.Y.bind(this))}; jT=function(Z,Q,z,K){wR.call(this,"Stable Volume",g.zN.Ix);g.rd(this.element,"ytp-drc-menu-item");this.Kd=Z.l7();this.W=Q;this.Y=z;this.hasDrcAudioTrack=K;Z.addEventListener("videodatachange",this.j.bind(this));Z.V("mta_drc_mutual_exclusion_removal")&&this.Z(Z,"onPlaybackAudioChange",this.j);Z=this.Y()===1&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());this.setIcon({B:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},G:[{B:"path",C:{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.S,this);Eq(this,Z);this.Kd.Mb(this)}; D6=function(Z){V7.call(this,Z);var Q=this;this.events=new g.M5(Z);g.W(this,this.events);Z.V("html5_show_drc_toggle")&&Z.addEventListener("settingsMenuInitialized",function(){Q.menuItem||(Q.menuItem=new jT(Q.api,Q.setDrcUserPreference.bind(Q),Q.getDrcUserPreference.bind(Q),Q.j.bind(Q)),g.W(Q,Q.menuItem))}); Q7(this.api,"setDrcUserPreference",function(K){Q.setDrcUserPreference(K)}); Q7(this.api,"getDrcUserPreference",function(){return Q.getDrcUserPreference()}); Q7(this.api,"hasDrcAudioTrack",function(){return Q.j()}); var z;this.Y=(z=g.pS("yt-player-drc-pref"))!=null?z:1;this.updateEnvironmentData()}; v7=function(Z){V7.call(this,Z);var Q=this;this.Y={};this.events=new g.M5(Z);g.W(this,this.events);this.events.Z(Z,"videodatachange",function(){Q.onVideoDataChange()}); this.events.Z(Z,g.r7("embargo"),function(z){Q.api.BP(!0);var K,b=(K=Q.Y[z.id])!=null?K:[];K=g.n(b);for(b=K.next();!b.done;b=K.next()){var q=b.value;Q.api.hideControls();Q.api.q8("auth",2,"This video isn't available in your current playback area",d8({embargoed:1,id:z.id,idx:z.j,start:z.start}));b=void 0;(q=(b=q.embargo)==null?void 0:b.onTrigger)&&Q.api.hG("innertubeCommand",q)}})}; QLn=function(Z,Q){var z;return(z=Q.onEnter)==null?void 0:z.some(Z.j)}; zeu=function(Z,Q){Q=g.n(Q);for(var z=Q.next();!z.done;z=Q.next()){z=z.value;var K=void 0,b=Number((K=z.playbackPosition)==null?void 0:K.utcTimeMillis)/1E3,q=void 0;K=b+Number((q=z.duration)==null?void 0:q.seconds);q="embargo_"+b;Z.api.addUtcCueRange(q,b,K,"embargo",!1);z.onEnter&&(Z.Y[q]=z.onEnter.filter(Z.j))}}; gF=function(Z){V7.call(this,Z);var Q=this;this.Y=[];this.events=new g.M5(Z);g.W(this,this.events);Q7(Z,"addEmbedsConversionTrackingParams",function(z){Q.api.N().Xw&&Q.addEmbedsConversionTrackingParams(z)}); this.events.Z(Z,"veClickLogged",function(z){Q.api.hasVe(z)&&(z=Ao(z.visualElement.getAsJspb(),2),Q.Y.push(z))})}; K54=function(Z){V7.call(this,Z);Q7(Z,"isEmbedsShortsMode",function(){return Z.isEmbedsShortsMode()})}; bYf=function(Z){V7.call(this,Z);var Q=this;this.events=new g.M5(Z);g.W(this,this.events);this.events.Z(Z,"initialvideodatacreated",function(z){c3(nY(),16623);Q.Y=g.Jy();var K=Z.N().YE&&!z.bY;if(OH(z)&&K){c3(nY(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(z.getWatchNextResponse()){var b,q=(b=z.getWatchNextResponse())==null?void 0:b.trackingParams;q&&IL(q)}if(z.getPlayerResponse()){var r;(z=(r=z.getPlayerResponse())==null?void 0:r.trackingParams)&&IL(z)}}else c3(nY(), 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),z.getEmbeddedPlayerResponse()&&(r=(q=z.getEmbeddedPlayerResponse())==null?void 0:q.trackingParams)&&IL(r)}); this.events.Z(Z,"loadvideo",function(){c3(nY(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:Q.Y})}); this.events.Z(Z,"cuevideo",function(){c3(nY(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:Q.Y})}); this.events.Z(Z,"largeplaybuttonclicked",function(z){c3(nY(),27240,z.visualElement)}); this.events.Z(Z,"playlistnextbuttonclicked",function(z){c3(nY(),27240,z.visualElement)}); this.events.Z(Z,"playlistprevbuttonclicked",function(z){c3(nY(),27240,z.visualElement)}); this.events.Z(Z,"playlistautonextvideo",function(){c3(nY(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; YB=function(Z,Q){g.O.call(this);var z=this;this.Y=null;this.S=Q;Q=[];for(var K=0;K<=100;K++)Q.push(K/100);Q={threshold:Q,trackVisibility:!0,delay:1E3};(this.j=window.IntersectionObserver?new IntersectionObserver(function(b){b=b[b.length-1];typeof b.isVisible==="undefined"?document.visibilityState==="visible"&&b.isIntersecting&&b.intersectionRatio>0?z.Y=b.intersectionRatio:document.visibilityState==="hidden"?z.Y=0:z.Y=null:z.Y=b.isVisible?b.intersectionRatio:0;typeof z.S==="function"&&z.S(z.Y)},Q): null)&&this.j.observe(Z)}; rdf=function(Z){V7.call(this,Z);var Q=this;this.events=new g.M5(Z);g.W(this,this.events);this.events.Z(Z,"applicationInitialized",function(){qer(Q)})}; qer=function(Z){var Q=Z.api.getRootNode(),z=Q;if(!Z.api.V("embeds_emc3ds_inview_ks")){var K;z=Z.api.getWebPlayerContextConfig().embedsEnableEmc3ds?((K=Q.parentElement)==null?void 0:K.parentElement)||Q:Q}Z.Y=new YB(z,function(b){b!=null&&(Z.api.N().n4=b,Z.api.N().FB="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")}); g.W(Z,Z.Y);Z.events.Z(Z.api,"videoStatsPingCreated",function(b){var q=Z.Y;q=q.Y==null?null:Math.round(q.Y*100)/100;b.inview=q!=null?q:void 0;q=Z.api.getPlayerSize();if(q.height>0&&q.width>0){q=[Math.round(q.width),Math.round(q.height)];var r=g.Vf();r>1&&q.push(r);q=q.join(":")}else q=void 0;b.size=q})}; Ad4=function(Z){var Q;return((Q=((Z==null?void 0:Z.messageRenderers)||[]).find(function(z){return!!z.timeCounterRenderer}))==null?void 0:Q.timeCounterRenderer)||null}; X2=function(Z){g.x.call(this,{B:"div",nN:["ytp-player-content","ytp-iv-player-content"],G:[{B:"div",D:"ytp-free-preview-countdown-timer",G:[{B:"span",W7:"{{label}}"},{B:"span",D:"ytp-free-preview-countdown-timer-separator",W7:"\u2022"},{B:"span",W7:"{{duration}}"}]}]});this.api=Z;this.Y=null;this.S=this.j=0;this.Z(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; DPD=function(Z,Q){Z.Y||(Z.j=Q,Z.S=(0,g.Nm)(),Z.Y=new g.w2(function(){jLx(Z)},null),jLx(Z))}; jLx=function(Z){var Q=Math,z=Q.round,K=Math.min((0,g.Nm)()-Z.S,Z.j);Q=z.call(Q,(Z.j-K)/1E3);Z.updateValue("duration",XP({seconds:Q}));Q<=0&&Z.Y?ST(Z):Z.Y&&Z.Y.start()}; ST=function(Z){Z.Y&&(Z.Y.dispose(),Z.Y=null)}; vNX=function(Z){V7.call(this,Z);var Q=this;this.events=new g.M5(Z);g.W(this,this.events);this.events.Z(Z,"basechromeinitialized",function(){Q.Y=new X2(Z);g.W(Q,Q.Y);g.NZ(Z,Q.Y.element,4);Q.Y.hide()})}; $B=function(Z){g.x.call(this,{B:"button",nN:["ytp-fullerscreen-edu-button","ytp-button"],G:[{B:"div",nN:["ytp-fullerscreen-edu-text"],W7:"Scroll for details"},{B:"div",nN:["ytp-fullerscreen-edu-chevron"],G:[{B:"svg",C:{height:"100%",viewBox:"0 0 24 24",width:"100%"},G:[{B:"path",C:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],C:{"data-priority":"1"}});this.fN=Z;this.Y=new g.s8(this,250,void 0,100);this.S=this.j=!1;Z.createClientVe(this.element,this,61214);g.W(this, this.Y);this.Z(Z,"fullscreentoggled",this.E$);this.Z(Z,"presentingplayerstatechange",this.E$);this.listen("click",this.onClick);this.E$()}; TN=function(Z){V7.call(this,Z);var Q=this;this.events=new g.M5(Z);g.W(this,this.events);Q7(this.api,"updateFullerscreenEduButtonSubtleModeState",function(K){Q.updateFullerscreenEduButtonSubtleModeState(K)}); Q7(this.api,"updateFullerscreenEduButtonVisibility",function(K){Q.updateFullerscreenEduButtonVisibility(K)}); var z=Z.N();Z.V("external_fullscreen_with_edu")&&z.externalFullscreen&&BZ(z)&&z.controlsType==="1"&&this.events.Z(Z,"standardControlsInitialized",function(){Q.Y=new $B(Z);g.W(Q,Q.Y);Z.E_(Q.Y)})}; gNf=function(Z){g.x.call(this,{B:"div",D:"ytp-gated-actions-overlay",G:[{B:"div",D:"ytp-gated-actions-overlay-background",G:[{B:"div",D:"ytp-gated-actions-overlay-background-overlay"}]},{B:"button",nN:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],C:{"aria-label":"Close"},G:[g.Li()]},{B:"div",D:"ytp-gated-actions-overlay-bar",G:[{B:"div",D:"ytp-gated-actions-overlay-text-container",G:[{B:"div",D:"ytp-gated-actions-overlay-title",W7:"{{title}}"},{B:"div",D:"ytp-gated-actions-overlay-subtitle", W7:"{{subtitle}}"}]},{B:"div",D:"ytp-gated-actions-overlay-button-container"}]}]});var Q=this;this.api=Z;this.background=this.Ru("ytp-gated-actions-overlay-background");this.j=this.Ru("ytp-gated-actions-overlay-button-container");this.Y=[];this.Z(this.Ru("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){Q.api.hG("onCloseMiniplayer")}); this.hide()}; X39=function(Z,Q){var z=0;z=0;for(var K={};z<Q.length;K={yd:void 0},z++){var b=Z.Y[z],q=void 0,r=(q=b)==null?void 0:q.element;r||(r=new g.x({B:"button",D:"ytp-gated-actions-overlay-button",C:{tabindex:"0"},G:[{B:"div",D:"ytp-gated-actions-overlay-button-title",W7:"{{buttonText}}"}]}),g.W(Z,r),r.zf(Z.j),b={element:r});K.yd=g.V(Q[z],Yen);var D=q=void 0,v=void 0,Y=((q=K.yd)==null?void 0:q.title)||((D=K.yd)==null?void 0:(v=D.titleFormatted)==null?void 0:v.content)||"";r.update({buttonText:Y});b.listener&& r.oy(b.listener);b.listener=r.listen("click",function(X){return function(){var S,T=g.V((S=X.yd)==null?void 0:S.onTap,Hc);T&&Z.api.hG("innertubeCommand",T)}}(K)); Z.Y[z]=b}for(;z<Z.Y.length;)Z.Y.pop().element.dispose()}; SeD=function(Z){V7.call(this,Z);var Q=this;this.events=new g.M5(Z);g.W(this,this.events);this.Y=new gNf(this.api);g.W(this,this.Y);this.events.Z(Z,"videodatachange",function(){var z,K=(z=Q.api.getVideoData())==null?void 0:z.S7;z=Q.Y;if(K){var b,q,r=((b=K.title)==null?void 0:b.content)||"";b=((q=K.subtitle)==null?void 0:q.content)||"";z.update({title:r,subtitle:b});r=K.thumbnail;q="none";if(r==null?0:r.sources){b=0;r=g.n(r.sources);for(var D=r.next();!D.done;D=r.next())D=D.value,D.width&&D.url&&D.width> b&&(b=D.width,q="url("+D.url+")")}z.background.style.backgroundImage=q;X39(z,K.actionButtons||[]);z.show()}else z.hide()}); g.NZ(this.api,this.Y.element,4)}; fL=function(Z){V7.call(this,Z);var Q=this;KW(this.api,"getSphericalProperties",function(){return Q.getSphericalProperties()}); KW(this.api,"setSphericalProperties",function(){Q.setSphericalProperties.apply(Q,g.I(g.iu.apply(0,arguments)))}); ze(this.api,"getSphericalProperties",function(){return Q.api.getPresentingPlayerType()===2?{}:Q.getSphericalProperties()}); ze(this.api,"setSphericalProperties",function(){var z=g.iu.apply(0,arguments);Q.api.getPresentingPlayerType()!==2&&Q.setSphericalProperties.apply(Q,g.I(z))})}; hI=function(Z){V7.call(this,Z);Q7(Z,"createClientVe",this.createClientVe.bind(this));Q7(Z,"createServerVe",this.createServerVe.bind(this));Q7(Z,"destroyVe",this.destroyVe.bind(this));Q7(Z,"hasVe",this.hasVe.bind(this));Q7(Z,"logClick",this.logClick.bind(this));Q7(Z,"logVisibility",this.logVisibility.bind(this));Q7(Z,"setTrackingParams",this.setTrackingParams.bind(this))}; LL=function(Z,Q,z,K){function b(r){var D=!(r.status!==204&&r.status!==200&&!r.response),v;r={succ:""+ +D,rc:r.status,lb:((v=r.response)==null?void 0:v.byteLength)||0,rt:((0,g.Nm)()-q).toFixed(),shost:g.pE(Z),trigger:Q};$Pf(r,Z);z&&z(r);K&&!D&&K(new N5("pathprobe.net",r))} var q=(0,g.Nm)();g.yC(Z,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:b,onTimeout:b})}; $Pf=function(Z,Q){var z;((z=window.performance)==null?0:z.getEntriesByName)&&(Q=performance.getEntriesByName(Q))&&Q.length&&(Q=Q[0],Z.pedns=(Q.domainLookupEnd-Q.startTime).toFixed(),Z.pecon=(Q.connectEnd-Q.domainLookupEnd).toFixed(),Z.perqs=(Q.requestStart-Q.connectEnd).toFixed(),T04&&(Z.perqsa=Q.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; nL=function(Z,Q){this.Bh=Z;this.policy=Q;this.playbackRate=1}; f7u=function(Z,Q){var z=Math.min(2.5,X4(Z.Bh));Z=c7(Z);return Q-z*Z}; mm=function(Z,Q,z,K,b){b=b===void 0?!1:b;if(Z.policy.eb)return Math.ceil(Z.policy.eb*Q);Z.policy.FN&&(K=Math.abs(K));K/=Z.playbackRate;var q=1/TK(Z.Bh);z=Math.max(.9*(K-3),X4(Z.Bh)+Z.Bh.j.Y*q)/q*.8/(Q+z);z=Math.min(z,K);Z.policy.o0>0&&b&&(z=Math.max(z,Z.policy.o0));return he0(Z,z,Q)}; he0=function(Z,Q,z){return Math.ceil(Math.max(Math.max(Z.policy.VR,Z.policy.lG*z),Math.min(Math.min(Z.policy.Du,31*z),Math.ceil(Q*z))))||Z.policy.VR}; L59=function(Z,Q,z){z=mm(Z,Q.Y.info.Yq,z.Y.info.Yq,0);var K=X4(Z.Bh)+z/TK(Z.Bh);return Math.max(K,K+Z.policy.qX-z/Q.Y.info.Yq)}; c7=function(Z){return TK(Z.Bh,!Z.policy.Om,Z.policy.uG)}; IA=function(Z){return c7(Z)/Z.playbackRate}; JI=function(Z,Q,z){var K=Z.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],b=Z.policy.playbackStartPolicy.startMinReadaheadPolicy||[];Z=Infinity;Q=g.n(Q&&K.length>0?K:b);for(K=Q.next();!K.done;K=Q.next())K=K.value,b=K.minReadaheadMs||0,z<(K.minBandwidthBytesPerSec||0)||Z>b&&(Z=b);return Z<Infinity?Z/1E3:Z}; yZ=function(Z,Q,z,K){var b=this;this.T=Z;this.kh=Q;this.policy=z;this.logger=K;this.gj=[];this.UA=[];this.Y=-1;this.TW=null;this.K=this.timestampOffset=0;this.y3=null;this.j=10;this.L=new Set;this.zz={eh:function(q){return b.eh(q)}}; this.W=Q.fd?0:1;z.iG>0&&(this.j=z.iG)}; I7W=function(Z,Q,z,K,b){if(!K.info.W){if(z.length===0)z.push(K);else{var q;(Z=(q=z.pop())==null?void 0:g.tt(q,K))?z.push(Z):z.push(K)}return b}var r;(z=(r=z.pop())==null?void 0:g.tt(r,K))||(z=K);if(Z.policy.A4&&z.info.j)return Z.logger&&Z.logger({incompleteSegment:z.info.O8()}),b;r=Z.eh(z);K=r.formatId;b=r.rr;z=r.clipId;q=r.cX;r=r.startTimeMs;if(!Z.policy.lI&&Z.policy.j&&Z.y3){var D=dF(Z.y3,z);r+=D}K={clipId:z,formatId:K,startTimeMs:r,durationMs:q,Bk:b,S_:b,G8:r,l5:q};b=nNW(Q,K.startTimeMs);(z=b>= 0?Q[b]:null)&&cdu(Z,z,K)?K=z:(b+=1,Q.splice(b,0,K));z=0;for(q=b+1;q<Q.length;q++){r=Z;D=Q[q];var v=K,Y=D.startTimeMs+D.durationMs,X=v.startTimeMs+v.durationMs;X>=Y+r.j?r=!0:X+r.j<D.startTimeMs?r=!1:mPW(r,D.formatId,v.formatId)?(v.durationMs=Y-v.startTimeMs,v.l5=v.durationMs,v.S_=D.S_,r=!0):(D.startTimeMs=X,D.G8=X,D.Bk=v.S_+1,r=!1);if(!r)break;z++}z&&Q.splice(b+1,z);return b}; ydn=function(Z,Q,z){Z.policy.A4&&z!=null&&z.xx||(Z.gj=[]);Z.policy.Zt?(Q=g.Aj(Z.UA,{startTimeMs:Q*1E3},function(K,b){return K.startTimeMs-b.startTimeMs}),Z.Y!==Q&&(Z.Y=-1,Z.S=void 0)):(Jdn(Z,!0),Z.Y=nNW(Z.UA,Q*1E3))}; nNW=function(Z,Q){Z=g.Aj(Z,{startTimeMs:Q},function(z,K){return z.startTimeMs-K.startTimeMs}); return Z>=0?Z:-Z-2}; Jdn=function(Z,Q){if(Z.TW){var z=Z.TW.Sx();if(z.length!==0){if(Z.S&&Q){var K=Z.S,b=K.info.eP;!DR(z,b)&&K.info.K>0&&(0,g.Nm)()-Z.K<5E3&&(Z.logger&&Z.logger({dend:K.info.O8()}),z=S8r(z,b,b+.01))}Z.policy.Zt&&Z.logger&&Z.logger({cbri:""+Z.Y});K=[];for(var q=b=0;b<z.length&&q<Z.UA.length;){var r=z.start(b),D=z.end(b),v=Z.UA[q].startTimeMs/1E3,Y=(Z.UA[q].startTimeMs+Z.UA[q].durationMs)/1E3;if(v<=D&&Y>=r){var X=0;if(Z.y3){var S=NK(Z.y3,v*1E3);S&&(X=S.wb/1E3)}S=Object.assign({},Z.UA[q]);var T=Z.kh.S.get(LQ(Z.UA[q].formatId)), f=Math.max(v,r);r=T.index.ON(f+Z.j/1E3-X);v=T.index.getStartTime(r)+X;var h=r+ +(Math.abs(v-f)>Z.j/1E3);f=h+Z.W;h=(T.index.getStartTime(h)+X)*1E3;q!==Z.Y||Q?(S.Bk=f,S.startTimeMs=h):(Z.logger&&Z.logger({pEvict:"1",og:S.startTimeMs,adj:v*1E3}),S.Bk=r+Z.W,S.startTimeMs=v*1E3);S.G8=S.startTimeMs;r=void 0;v=((r=Z.S)==null?void 0:r.info.duration)||11;q===Z.Y&&D<Y&&Y-D<=v*1.01&&(D=Y);r=Math.min(Y,D);v=T.index.ON(r-Z.j/1E3-X);f=Z.policy;(f.j||f.B7.V("html5_sabr_include_tail_media_chunk"))&&T.index.U9(v+ 1)&&T.index.sz(v+1)+X<=r&&(v+=1);f=T.index.sz(v)+X;v-=+(Math.abs(f-r)>Z.j/1E3);r=v+Z.W;X=(T.index.sz(v)+X)*1E3;S.S_=r;S.durationMs=X-S.startTimeMs;S.l5=S.durationMs;S.Bk<=S.S_&&K.push(S)}Y<D?q+=1:b+=1}Z.UA=K}}}; dPu=function(Z){var Q=[],z=[].concat(g.I(Z.gj));Z.UA.forEach(function(r){Q.push(Object.assign({},r))}); for(var K=Z.Y,b=g.n(Z.T.GP()),q=b.next();!q.done;q=b.next())K=I7W(Z,Q,z,q.value,K);Q.forEach(function(r){r.startTimeMs&&(r.startTimeMs+=Z.timestampOffset*1E3,r.G8&&(r.G8+=Z.timestampOffset*1E3))}); return{UA:Q,gj:z}}; cdu=function(Z,Q,z){var K=Q.startTimeMs+Q.durationMs,b=z.startTimeMs+z.durationMs;if(z.startTimeMs-K>Z.j)return!1;if(mPW(Z,Q.formatId,z.formatId))return Q.durationMs=Math.max(K,b)-Q.startTimeMs,Q.l5=Q.durationMs,Q.S_=Math.max(Q.S_,z.S_),!0;if(Math.abs(Q.startTimeMs-z.startTimeMs)<=Z.j){if(Q.durationMs>z.durationMs+Z.j){Z=Q.formatId;var q=Q.Bk,r=Q.S_;Q.formatId=z.formatId;Q.durationMs=z.durationMs;Q.Bk=z.Bk;Q.l5=z.durationMs;Q.S_=z.S_;z.formatId=Z;z.startTimeMs=b;z.G8=b;z.durationMs=K-b;z.l5=z.durationMs; z.Bk=q;z.S_=r;return!1}Q.formatId=z.formatId;return!0}K>z.startTimeMs&&(Q.durationMs=z.startTimeMs-Q.startTimeMs,Q.l5=Q.durationMs,Q.clipId===z.clipId&&(Q.S_=z.Bk-1));return!1}; mPW=function(Z,Q,z){return Q.itag!==z.itag||Q.xtags!==z.xtags?!1:Z.kh.fd||Q.lmt===z.lmt}; N09=function(Z,Q,z){if(Z.logger){for(var K=[],b=0;b<Q.length;b++){var q=Q[b],r=void 0;if((r=q.dE)==null?0:r.startTicks){var D=r=void 0,v=void 0;K.push("i."+((r=q.formatId)==null?void 0:r.itag)+"_st."+(q.startTimeMs+"_psst.")+(((D=q.dE)==null?void 0:D.startTicks)+"_psd.")+((v=q.dE)==null?void 0:v.pc))}r=void 0;K.push("i."+((r=q.formatId)==null?void 0:r.itag)+"_st."+(q.startTimeMs+"_e."+(q.startTimeMs+q.durationMs)+"_d."+q.durationMs)+("_sn."+q.Bk)+("_en."+q.S_))}Z.logger({p:""+z,br:K.join(";")})}}; GGu=function(Z){Z.UA=[];Z.gj=[];Z.L.clear();Z.Y=-1;Z.S=void 0}; GN=function(Z,Q,z,K,b){this.wr=Z;this.kh=Q;this.videoTrack=z;this.audioTrack=K;this.policy=b;this.seekCount=this.Y=0;this.L=!1;this.W=null;this.S=0;this.j=this.kh.isManifestless&&!this.kh.Da}; iYG=function(Z,Q,z){if(!Z.policy.K){Z=Q.Y.index;var K=Q.j.rr;Z.U9(K)||z&&z.rr===K?(Q.L=!Z.U9(K),Q.SJ=!Z.U9(K)):(Q.L=!0,Q.SJ=!0)}}; PJM=function(Z){var Q=Math.max(Z.videoTrack.W.S||0,Z.audioTrack.W.S||0);a7X(Z.videoTrack);a7X(Z.audioTrack);Z.policy.K||lR0(Z.kh);Z.kh.isManifestless&&!Z.policy.K&&(Z.j=!0,Z.S=0);var z=Z.wr;z.policy.KN||(z.currentTime=Q);Z.L=!0;Z.W=new EZ;return Z.W}; p3M=function(Z,Q,z,K,b){var q=Z.policy.A4?b:void 0;if(!Q.Y.E6()){if(!(q=z===0||!!Q.S.length&&Q.S[0]instanceof il))a:{if(Q.S.length&&(q=Q.S[0],q instanceof aA&&q.yr&&q.EN)){q=!0;break a}q=!1}q||Z.policy.Y||P7(Q);return z}var r=RA(Q,z);if(!isNaN(r))return r;if(Z.wr.jW(z*1E3))return z;b.xx?Z.policy.Og&&(Z=CL(Z.wr,Q),Red(Q.W,z+Z,!0)):(Q.Sm(),Z.wr.gP(!1,"sta_"+ +Q.Y.info.WN()));return K&&(Z=vd(K.Sx(),z),!isNaN(Z))?(pL(Q,Z+CJn,q),z):pL(Q,z,q)}; MZD=function(Z,Q,z,K){if(Z.policy.K)!K||!Z.j&&Z.policy.X7||g.Ae(function(){H7(Z)}); else{if(Z.isSeeking()&&Z.Y){var b=HYu(Z,Q,z);if(b!==-1){Z.videoTrack.L=!1;Z.audioTrack.L=!1;Z.j=!0;Z.S=0;g.Ae(function(){Z.wr.pN("seekreason",{reason:"behindMinSq",tgt:b});MK(Z,b)}); return}}z?Z.videoTrack.SJ=!1:Z.audioTrack.SJ=!1;var q=Z.policy.ZY||!Z.j;RA(Z.videoTrack,Z.Y)>=0&&RA(Z.audioTrack,Z.Y)>=0&&q?((Z.videoTrack.L||Z.audioTrack.L)&&Z.wr.pN("iterativeSeeking",{status:"done",count:Z.seekCount}),Z.videoTrack.L=!1,Z.audioTrack.L=!1):K&&g.Ae(function(){if(Z.j||!Z.policy.X7)H7(Z);else{var r=Q.startTime,D=Q.duration;if(!Z.policy.K){var v=z?Z.videoTrack.L:Z.audioTrack.L,Y=Z.videoTrack.K!==-1&&Z.audioTrack.K!==-1,X=Z.Y>=r&&Z.Y<r+D+.1,S=!Z.videoTrack.SJ&&!Z.audioTrack.SJ,T=Z.policy.eH&& RA(Z.videoTrack,r)&&RA(Z.audioTrack,r);v&&Y&&S&&(X||T?((z?Z.videoTrack:Z.audioTrack).L=!1,Z.videoTrack.L||Z.audioTrack.L||(Z.wr.pN("iterativeSeeking",{status:"done",target:r,originalTime:r+Z.wr.Ry(),count:Z.seekCount}),Z.seekCount=0)):Z.seekCount<8?(Z.seekCount++,Z.wr.pN("iterativeSeeking",{status:"inprogress",count:Z.seekCount,target:Z.Y,actual:r,duration:D,isVideo:z}),Z.seek(Z.Y,{})):(Z.wr.pN("iterativeSeeking",{status:"incomplete",count:Z.seekCount,target:Z.Y,actual:r}),Z.seekCount=0,Z.videoTrack.L= !1,Z.audioTrack.L=!1,UV(Z.wr,r+.1,{OE:!0,s8:"chunkSelectorSynchronizeMedia",gS:!0})))}}})}}; HYu=function(Z,Q,z){if(!Z.isSeeking())return-1;z=(z?Z.videoTrack:Z.audioTrack).Y.index;var K=z.ON(Z.Y);return(z.U9(Z.kh.uY)||Q.rr===Z.kh.uY)&&K<Z.kh.uY?Z.kh.Ze():-1}; MK=function(Z,Q,z){Z.j&&Z.videoTrack.K!==-1&&Z.audioTrack.K!==-1&&(Z.j=!1,Z.Y=Q,UV(Z.wr,Q+.1,{OE:!0,s8:"chunkSelectorSynchronize",gS:!0,seekSource:z}))}; H7=function(Z){var Q=Z.videoTrack.K!==-1,z=Z.audioTrack.K!==-1;if(!Q||!z)if(Q=!Q&&OV(Z.videoTrack),z=!z&&OV(Z.audioTrack),Q||z){z=Q?Z.videoTrack:Z.audioTrack;Q=Q?Z.audioTrack:Z.videoTrack;z.K=OV(z).info.rr;if(Z.policy.K){var K;Q.K=((K=OV(Q))==null?void 0:K.info.rr)||Q.K}if(Q.K!==-1){var b=Math.max(Q.Y.index.getStartTime(Q.K),z.Y.index.getStartTime(z.K));S2(Z.kh)&&Math.abs(b-S2(Z.kh))>432E3&&srW(Z.kh);Z.S&&(b=Z.S,Z.S=0);g.Ae(function(){Z.policy.K||MK(Z,b,102)}); Z.wr.pN("initManifestlessSync",{st:b,ost:b+Z.wr.Ry(),a:Z.audioTrack.K,v:Z.videoTrack.K});Z.W&&(Z.W.resolve(b+.1),Z.W=null);Z.policy.K&&MK(Z,b,102)}}}; oA=function(Z,Q){var z=this;this.H4=Z;this.requestNumber=++UPG;this.Y=this.now();this.U=this.jJ=NaN;this.T=this.Y;this.S=this.sA=this.L=0;this.K=this.Y;this.tG=this.X=this.JG=this.Ph=this.Sp=this.KN=this.j=this.W=0;this.SJ=this.isActive=!1;this.F7=this.CN=0;this.zz={brY:function(){return z.lP}}; this.Bh=Q.Bh;this.snapshot=Uyn(this.Bh);this.policy=this.Bh.j;this.AR=!!Q.AR;this.Hz=Q.Hz;this.Sy=Q.Sy||0;this.e$=Q.e$||0;Q.LA&&(this.c7=new ba);var K;this.lP=(K=Q.lP)!=null?K:!1;this.AR||pvr(this.Bh)}; OYx=function(Z){Z.JG=Math.max(Z.JG,Z.L-Z.Sp);Z.X=Math.max(Z.X,Z.T-Z.Ph);Z.KN=0}; B7=function(Z,Q,z){HgG(Z.Bh,Q);Z.c7&&(Z.c7.add(Math.ceil(Q)-Math.ceil(Z.T)),Z.c7.add(Math.max(0,Math.ceil(z/1024)-Math.ceil(Z.L/1024))));var K=Q-Z.T,b=z-Z.L;Z.sA=b;Z.tG=Math.max(Z.tG,b/(K+.01)*1E3);Z.T=Q;Z.L=z;Z.KN&&z>Z.KN&&OYx(Z)}; W7=function(Z,Q){Z.url=Q;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; VZ=function(Z,Q){oA.call(this,Z,Q);this.gq=this.X7=!1;this.Du=this.P7=Infinity;this.Zu=NaN;this.DI=!1;this.qB=NaN;this.ih=this.Vp=this.s$=0;this.HO=Q.HO||1;this.gE=Q.gE||this.HO;this.i7=Q.i7;this.rr=Q.rr;this.tx=Q.tx;oNr(this);this.D8(this.Y);this.Qp=(this.qB-this.Y)/1E3}; B0x=function(Z){var Q=Z.Vp||Z.s$;return Q?Z.snapshot.delay+Math.min(Z.e$,(Z.U-Z.jJ)/1E3)+Q:Z.Qp}; kB=function(Z,Q,z){if(!Z.AR){Q=Math.max(Q,.01);var K=Z.Sy?Math.max(Q,z/Z.Sy):Q,b=Z.Bh.j.S;b&&(K=Q,Z.Sy&&(K=Math.max(Q,z/Z.Sy*b)));vZ(Z.Bh,Q,z,K)}}; W5D=function(Z){return(Z.K-Z.Y)/1E3}; oNr=function(Z){Z.Zu=Z.Y+Z.snapshot.delay*1E3;Z.DI=!1}; ul=function(Z,Q){if(Z.i7&&Z.rr!==void 0&&Z.tx!==void 0){var z=Math,K=z.min,b=Z.P7;var q=Z.i7;var r=Z.Y;if(VZn(q,Z.rr))q=Q;else{var D=0;q.FF&&(D=.2);q=r+(q.e$+D)*1E3}Z.P7=K.call(z,b,q);z=Math;K=z.min;b=Z.Du;q=Z.i7;r=Z.Y;D=kGd(q,Z.rr,Z.tx);D!==2&&(Q=D?Q:r+q.e$*1E3,q.FF&&(Q+=q.e$*1E3));Z.Du=K.call(z,b,Q);Z.P7<=Z.Y?oNr(Z):(Z.Zu=Z.P7,Z.DI=!0)}}; uPf=function(Z,Q){if(Z.PL(Q,1)){var z=Z.getUint8(Q);z=z<128?1:z<192?2:z<224?3:z<240?4:5}else z=0;if(z<1||!Z.PL(Q,z))return[-1,Q];if(z===1)Z=Z.getUint8(Q++);else if(z===2)z=Z.getUint8(Q++),Z=Z.getUint8(Q++),Z=(z&63)+64*Z;else if(z===3){z=Z.getUint8(Q++);var K=Z.getUint8(Q++);Z=Z.getUint8(Q++);Z=(z&31)+32*(K+256*Z)}else if(z===4){z=Z.getUint8(Q++);K=Z.getUint8(Q++);var b=Z.getUint8(Q++);Z=Z.getUint8(Q++);Z=(z&15)+16*(K+256*(b+256*Z))}else z=Q+1,Z.focus(z),cA(Z,z,4)?Z=Gtr(Z).getUint32(z-Z.V5,!0):(K= Z.getUint8(z+2)+256*Z.getUint8(z+3),Z=Z.getUint8(z)+256*(Z.getUint8(z+1)+256*K)),Q+=5;return[Z,Q]}; xB=function(Z){this.H4=Z;this.Y=new fe}; tI=function(Z,Q){this.info=Z;this.callback=Q;this.state=1;this.hE=this.T5=!1;this.tN=null}; xPW=function(Z){return g.It(Z.info.AG,function(Q){return Q.type===3})}; F2=function(Z,Q,z,K){var b=this;K=K===void 0?{}:K;this.policy=Q;this.H4=z;this.status=0;this.Y=new fe;this.j=0;this.FI=this.W=this.S=!1;this.xhr=new XMLHttpRequest;this.xhr.open(K.method||"GET",Z);if(K.headers)for(Z=K.headers,Q=g.n(Object.keys(Z)),z=Q.next();!z.done;z=Q.next())z=z.value,this.xhr.setRequestHeader(z,Z[z]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return b.Zm()}; this.xhr.onload=function(){return b.onDone()}; this.xhr.onerror=function(){return b.onError()}; this.xhr.fetch(function(q){b.Y.append(q);b.j+=q.length;q=(0,g.Nm)();b.H4.qD(q,b.j)},function(){},K.body||null)}; tZM=function(Z,Q){this.j=(new TextEncoder).encode(Z);this.Y=(new TextEncoder).encode(Q)}; eXG=function(Z,Q){var z,K,b;return g.C(function(q){if(q.Y==1){if(!Q)return q.return(Q);z=eT.TM();K=new g.cV(Z.j);return g.P(q,K.encrypt(Q,Z.Y),2)}b=q.j;eT.BO("woe",z,Math.ceil(Q.byteLength/16));return q.return(b)})}; Z50=function(Z,Q){var z,K,b;return g.C(function(q){if(q.Y==1){if(!Q)return q.return(Q);z=eT.TM();K=new g.cV(Z.j);return g.P(q,K.decrypt(Q,Z.Y),2)}b=q.j;eT.BO("wod",z,Math.ceil(Q.byteLength/16));return q.return(b)})}; ee0=function(Z,Q){var z=this;this.Y=Z;this.H4=Q;this.loaded=this.status=0;this.error="";Z=mS(this.Y.get("range")||"");if(!Z)throw Error("bad range");this.range=Z;this.j=new fe;F5n(this).then(function(){z.H4.cS()},function(K){z.error=""+K||"unknown_err"; z.H4.cS()})}; F5n=function(Z){var Q,z,K,b,q,r,D,v,Y,X,S,T,f,h,m;return g.C(function(J){if(J.Y==1){Z.status=200;Q=Z.Y.get("docid");z=e6(Z.Y.get("fmtid")||"");K=Z.Y.get("lmt")||"0";b=+(Z.Y.get("csz")||0);if(!Q||!z||!b)throw Error("Invalid local URL");Z.Y.get("ck")&&Z.Y.get("civ")&&(q=new tZM(Z.Y.get("ck"),Z.Y.get("civ")));r=Z.range;D=Math.floor(r.start/b);v=Math.floor(r.end/b);Y=D}if(J.Y!=5)return Y<=v?g.P(J,QUG(Q,z,K,Y,q),5):J.O$(0);X=J.j;if(X===void 0)throw Error("invariant: data is undefined");S=Y*b;T=(Y+1)*b; f=Math.max(0,r.start-S);h=Math.min(r.end+1,T)-(f+S);m=new Uint8Array(X.buffer,f,h);Z.j.append(m);Z.loaded+=h;Z.loaded<r.length&&Z.H4.qD((0,g.Nm)(),Z.loaded);Y++;return J.O$(2)})}; ENu=function(Z,Q,z,K){var b=this;K=K===void 0?{}:K;this.policy=Q;this.H4=z;this.T=K;this.status=0;this.response=void 0;this.j=0;this.L=this.K=!1;this.errorMessage="";this.U=function(q){if(q)if(b.status=q.status,q.ok&&q.body&&b.status!==204)b.status=b.status||242,b.S=q.body.getReader(),b.FI()?b.S.cancel().catch(function(){}):(b.responseHeaders=q.headers,b.H4.Sw(),w3r(b)); else b.onDone();else b.onError(Error("null_response"))}; this.X=function(q){var r=(0,g.Nm)();b.FI()||(q.done?(b.S=void 0,b.onDone()):(q=q.value,b.j+=q.length,b.Y.append(q),w3r(b),b.H4.qD(r,b.j)))}; this.onError=function(q){b.errorMessage=String(q);b.K=!0;b.onDone()}; this.Y=new fe;this.W=window.AbortController?new AbortController:void 0;this.start(Z)}; w3r=function(Z){Z.S.read().then(Z.X,Z.onError).then(void 0,jz)}; l7f=function(Z,Q,z){var K=this;z=z===void 0?{}:z;this.H4=Q;this.j=this.status=0;this.FI=this.Y=!1;this.xhr=new XMLHttpRequest;this.xhr.open(z.method||"GET",Z);if(z.headers){Z=z.headers;Q=g.n(Object.keys(Z));for(var b=Q.next();!b.done;b=Q.next())b=b.value,this.xhr.setRequestHeader(b,Z[b])}this.xhr.responseType="arraybuffer";this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(q){K.Zm(q)}; Z=$N(function(q){K.onDone(q)}); this.xhr.addEventListener("load",Z,!1);this.xhr.addEventListener("error",Z,!1);z.body?this.xhr.send(z.body):this.xhr.send();this.xhr.addEventListener("progress",$N(function(q){K.qn(q)}),!1)}; wF=function(Z,Q,z,K,b){if(LZ(Z.pM))return new ee0(Z,z);Z=Z.sS();return K?cJG()?new F2(Z,Q,z,b):new ENu(Z,Q,z,b):new l7f(Z,z,b)}; g.EV=function(Z){this.tag=Z}; s6W=function(Z,Q){g.ll.apply(null,[6,Z,Q].concat(g.I(g.iu.apply(2,arguments))))}; ZZf=function(Z,Q){g.ll.apply(null,[5,Z,Q].concat(g.I(g.iu.apply(2,arguments))))}; g.ll=function(Z,Q,z){var K=g.iu.apply(3,arguments),b=Z===6?"ERROR":"WARNING",q="b"+z;g.Rm(new (Function.prototype.bind.apply(g.tW,[null,q].concat(g.I(K)))),b);K.unshift(q);Q69(Q,Z,K.join(", "))}; Q69=function(Z,Q,z,K){var b=zd4.get(Z);if(!b){b="ytplog."+Z;var q=5;try{window.localStorage&&!isNaN(+window.localStorage[b])&&(q=+window.localStorage[b]),window.sessionStorage&&!isNaN(+window.sessionStorage[b])&&(q=+window.sessionStorage[b])}catch(D){}zd4.set(Z,q);b=q}if(!(Q<b))if(Q=KGX,b=Q.Y.get(Z),b||(b=new bZG,Q.Y.set(Z,b)),Q=b,b=Date.now(),q=Math.floor((b-Q.j)*.01),q>0&&(Q.Y=Math.min(Q.Y+q,10),Q.j=b),Q.Y>0?(Q.Y--,Q=!0):Q=!1,Q)typeof z==="function"&&(z=z()),K&&(z=K(z)),console.log("plyr."+Z,z); else{var r;z=((r=qJW.get(Z))!=null?r:0)+1;qJW.set(Z,z);z%100===1&&console.warn("plyr","plyr."+Z+" is chatty, dropping logs.")}}; bZG=function(){this.Y=10;this.j=Date.now()}; sx=function(Z,Q){g.O.call(this);var z=this;this.policy=Z;this.AG=Q;this.j=0;this.Y=null;this.Aj=[];this.S=null;this.zz={uc:function(){return z.AG}}; this.AG.length===1||g.It(this.AG,function(K){return!!K.range})}; ZJ=function(Z,Q,z){Z.Y&&(hK(Z.Y,Q),Q=Z.Y,Z.Y=null);for(var K=0,b=0,q=g.n(Z.AG),r=q.next();!r.done;r=q.next())if(r=r.value,r.range&&K+r.S<=Z.j)K+=r.S;else{Q.getLength();if(dm(r)&&!z&&Z.j+Q.getLength()-b<K+r.S){Z.Y=Q.split(b).K6;return}a:{var D=Z;var v=r,Y=Z.j-K,X=b,S=Q,T=!!z,f=S.getLength()-X;v.range&&(f=Math.min(v.S-Y,f));v=FrM(v,v.j+Y,f,v.range?v.j+Y+f===v.range.length:T);X=Le(S,X,f);X=new xi(v,X);if(D.policy.useUmp&&D.Aj.length&&(S=g.tt(D.Aj[D.Aj.length-1],X))){D.Aj[D.Aj.length-1]=S;D=f;break a}D.Aj.push(X); D=f}Z.j+=D;b+=D;K+=r.S;if(b===Q.getLength())break}Q.getLength()}; QV=function(Z,Q,z,K,b,q,r,D,v){v=v===void 0?!1:v;g.O.call(this);this.H4=Z;this.policy=Q;this.tH=z;this.zW=K;this.timing=b;this.logger=q;this.S=r;this.Rk=D;this.L=v;this.lastError=null;this.Y=0;this.W=!1;this.j=new g.E6(this.WYI,this.policy.y7,this)}; r0W=function(Z){Z.zW.U=(0,g.Nm)();Z=zU(Z);Z.S=(0,g.Nm)();Z.started+=1}; DVr=function(Z,Q,z,K){Z.timing.Co((0,g.Nm)(),Q,z);Q=Z.zW;Q.j=0;Q.L=0;Q.T=0;gm(zU(Z));Z.policy.BK&&K&&(K=zU(Z),K.j+=1);if((K=Z.Rk)!=null&&(Z=Z.tH.pM,!((0,g.Nm)()<K.K+3E5||LZ(Z))&&(Q=h0(Z))&&A0x(Q)&&K.j===K7(Q))){var b;nZ(Z)&&(b=h0(co(Z)));g.CS("yt-player-bandaid-host",{primary:Q,secondary:b},864E3);K.K=(0,g.Nm)();j6u(K,{primary:Q,secondary:b})}}; bv=function(Z){if(Z.lastError==="ump.spsrejectfailure")Z.policy.TT||Z.timing.SJ||M5r(Z.zW,!1,Z.tH,Z.policy,Z.S);else{if(Z.lastError==="net.timeout")Z.timing.Zx((0,g.Nm)());else{var Q=Z.timing;B7(Q,(0,g.Nm)(),Q.L)}if(Z.lastError==="net.nocontent")++Z.zW.T;else{if((Q=Z.lastError==="net.timeout"||Z.lastError==="net.connect"||Z.lastError==="net.closed")&&!LZ(Z.tH.pM)){var z=zU(Z);z.timedOut+=1}else z=zU(Z),z.Y+=1;Z.timing.SJ||M5r(Z.zW,Q,Z.tH,Z.policy,Z.S)}}Z.H4.Q3(5)}; qG=function(Z,Q,z,K,b){return Q>=400?(Z.lastError="net.badstatus",!0):(b===void 0?0:b)?(Z.lastError="ump.spsrejectfailure",!0):z||K!==void 0&&K?!1:(Z.lastError=Q===204?"net.nocontent":"net.connect",!0)}; rU=function(Z,Q){if(Z.policy.Am)return!1;var z=Q.getResponseHeader("content-type"),K=Q.uX();Z=!K||K<=Z.policy.XU;return(!Q.nz()||!z||z.indexOf("text/plain")!==-1)&&Z}; gLG=function(Z,Q){var z="";Q=Q.Ku();Q.getLength()<=Z.policy.XU&&(z=vL9(Z,Q.m9()));return z}; vL9=function(Z,Q){var z=JK(Q);return ZB(z)?(Z.logger.debug(function(){return"Redirecting to "+z}),z):""}; zU=function(Z){return XM(Z.S,h0(Z.tH.pM))}; YJn=function(Z){var Q=Z.timing.Ae();Q.shost=h0(Z.tH.pM);return Q}; Xon=function(Z,Q){return(Z==null?void 0:Z.maxWidth)>(Q==null?void 0:Q.maxWidth)||(Z==null?void 0:Z.maxHeight)>(Q==null?void 0:Q.maxHeight)}; SJG=function(Z,Q){for(var z=g.n(Q.keys()),K=z.next();!K.done;K=z.next())if(K=Q.get(K.value),K.length!==0){g.DI(K,function(D,v){return v.maxFramerate-D.maxFramerate}); for(var b=[K[0]],q=0,r=1;r<K.length;r++)Xon(K[r],b[q])&&(b.push(K[r]),q++);Z=Z.concat(b)}return Z}; TLG=function(Z,Q){var z=[];Q=g.n(Q);for(var K=Q.next();!K.done;K=Q.next()){K=K.value;var b=$VM[K]||0;Z.Y&&b>Z.Y||z.push(K)}return z}; AZ=function(Z,Q,z){var K=f5u[Z]||[];z.V("html5_shorts_onesie_mismatched_fix")&&(K=hdD[Z]||[]);Q.push.apply(Q,g.I(K));z.V("html5_early_media_for_drm")&&Q.push.apply(Q,g.I(LGD[Z]||[]))}; y0d=function(Z,Q){var z=g.zz(Z),K=Z.N(),b=K.L;K=K.V("html5_shorts_onesie_mismatched_fix");var q=Z.aF();if(K){if(!b.W){if(q&&jf)return jf;if(DJ)return DJ}}else if(DJ&&!b.W)return DJ;var r=[],D=[],v={},Y=vu.concat(nLn);K&&(Y=vu.concat(c0n));Z.V("html5_early_media_for_drm")&&(Y=Y.concat(mV9),Z.V("allow_vp9_1080p_mq_enc")&&Y.push(I5W));var X=[].concat(g.I(J00));if(z.U)for(var S=0;S<X.length;S++)X[S].length&&kh[X[S][0]]==="a"&&(X[S]=["141"]);if(z.KN)for(S=0;S<X.length;S++)X[S].length&&kh[X[S][0]]==="o"&& (X[S]=["774"]);Z.V("html5_iamf_audio_onesie_fmt")&&X.push(["773"]);Y=g.n(Y);for(var T=Y.next();!T.done;T=Y.next()){S=!1;T=g.n(T.value);for(var f=T.next();!f.done;f=T.next()){f=f.value;var h=Zf(f,q&&K);if(h&&h.video&&!(e5(h)&&!z.c7&&h.video.Y>z.k8)){var m=g.Xp(Z.N().experiments,"html5_drm_byterate_soft_cap");m>0&&Y8W(h)&&h.Yq>m||(S?(r.push(f),AZ(f,r,Z)):(h=jl(z,h,b),h===!0?(S=!0,r.push(f),AZ(f,r,Z)):v[f]=h))}}}X=g.n(X);for(Y=X.next();!Y.done;Y=X.next())for(Y=g.n(Y.value),S=Y.next();!S.done;S=Y.next())if(S= S.value,(T=AVn(S))&&T.audio&&(Z.V("html5_onesie_51_audio")||!w8(T)&&!Es(T)))if(T=jl(z,T,b),T===!0){D.push(S);AZ(S,D,Z);break}else v[S]=T;z.j&&Q("orfmts",v);if(K)return b.W&&(b.W=!1,jf=DJ=void 0),q?jf={video:r,audio:D}:DJ={video:r,audio:D};DJ={video:r,audio:D};b.W=!1;return DJ}; g.GLX=function(Z,Q,z){var K=z.L,b=[],q=[],r=z.V("html5_shorts_onesie_mismatched_fix");Z=Z.aF();var D=vu.concat(nLn);r&&(D=vu.concat(c0n));z.V("html5_early_media_for_drm")&&(D=D.concat(mV9),z.V("allow_vp9_1080p_mq_enc")&&D.push(I5W));var v=[].concat(g.I(J00));if(Q.U)for(var Y=0;Y<v.length;Y++)v[Y].length&&kh[v[Y][0]]==="a"&&(v[Y]=["141"]);if(Q.KN)for(Y=0;Y<v.length;Y++)v[Y].length&&kh[v[Y][0]]==="o"&&(v[Y]=["774"]);z.V("html5_iamf_audio_onesie_fmt")&&v.push(["773"]);D=g.n(D);for(Y=D.next();!Y.done;Y= D.next()){Y=g.n(Y.value);for(var X=Y.next();!X.done;X=Y.next()){X=X.value;var S=Zf(X,Z&&r);if(S&&S.video){var T=g.Xp(z.experiments,"html5_drm_byterate_soft_cap");if(!(T>0&&Y8W(S)&&S.Yq>T)&&jl(Q,S,K)===!0){b.push({videoCodec:dV9[kh[X]],maxWidth:S.video.width,maxHeight:S.video.height,maxFramerate:S.video.fps});break}}}}r=g.n(v);for(Z=r.next();!Z.done;Z=r.next())for(Z=g.n(Z.value),v=Z.next();!v.done;v=Z.next())if(v=v.value,(D=AVn(v))&&D.audio&&(z.V("html5_onesie_51_audio")||!w8(D)&&!Es(D))&&jl(Q,D,K)=== !0){q.push({audioCodec:NLX[kh[v]],numChannels:D.audio.numChannels});break}return{videoFormatCapabilities:b,audioFormatCapabilities:q}}; gU=function(Z){var Q={},z=Z.Iu,K=Z.B7,b=z.getVideoData(),q=RL(0),r=z.getPlayerSize(),D=z.getVisibilityState();q&&(Q.X7F=q,Q.lastManualDirection=mf9(),q=F_4()||0,q>0&&(q=(K.V("html5_use_date_now_for_local_storage")?Date.now():(0,g.Nm)())-q,K.V("html5_use_date_now_for_local_storage")?q>0&&(Q.timeSinceLastManualFormatSelectionMs=q):Q.timeSinceLastManualFormatSelectionMs=q));q=K.V("html5_use_streamer_bandwidth_for_low_latency_live")&&b.isLowLatencyLiveStream;if(K.schedule.jJ&&!q){var v;q=K.V("html5_disable_bandwidth_cofactors_for_sabr_live")? !((v=Z.RW)==null||!v.Om):!1;Q.uD=TK(K.schedule,!q)}v=g.Vf();var Y=g.o3.medium,X=Math.floor(Y*16/9);q=b.aF()?Y:X;Y=b.aF()?X:Y;Q.N1=Math.max(r.width*v,q);Q.ax=Math.max(r.height*v,Y);Q.visibility=D;Q.nE$=yJ();Q.vX=z.R$()*1E3;r=Z.Iu.fS(!0);var S,T,f,h,m,J;Q.hu$={defaultPolicy:(r==null?void 0:(S=r.O5)==null?void 0:S.Y)||0,smooth:(r==null?void 0:(T=r.UnI)==null?void 0:T.Y)||0,visibility:(r==null?void 0:(f=r.YN7)==null?void 0:f.Y)||0,E5:(r==null?void 0:(h=r.DT)==null?void 0:h.Y)||0,performance:(r==null? void 0:(m=r.jC)==null?void 0:m.Y)||0,speed:(r==null?void 0:(J=r.pxB)==null?void 0:J.Y)||0};if(K.V("html5_sabr_report_sticky_constraints")){var d;Q.u8=(r==null?void 0:(d=r.wx7)==null?void 0:d.Y)||0}else Q.u8=RL();K.V("html5_enable_sabr_drm_hd720p")&&Z.sabrLicenseConstraint&&(Q.sabrLicenseConstraint=Z.sabrLicenseConstraint);if(K.V("html5_onesie_media_capabilities")||K.V("html5_enable_server_format_filter"))Q.wH=3;K.V("html5_onesie_audio_only_playback")&&sH(b)&&(Q.wH=1);var G;((G=Z.RW)==null?0:G.gq)&& Z.EhY&&(Q.wH=Q.wH===void 0?7:Q.wH|4);S=b.N8?b.N8:g.zz(b);K.V("html5_onesie_media_capabilities")&&(Q.mediaCapabilities=g.GLX(b,S,K));var R;if((R=Z.RW)==null?0:R.Y&&R.Pg){f=K.L;R=[];T=[];h=new Map;K.V("html5_ssap_update_capabilities_on_change")?(f.jJ||G6W(f),m=f.jJ||[]):m=Array.from(f.Y.values());m=g.n(m);for(J=m.next();!J.done;J=m.next())d=J.value,d.WN?T.push({audioCodec:NLX[d.Gf],numChannels:d.numChannels,spatialCapabilityBitmask:iZu[d.Gf]}):(G=dV9[d.Gf],J={videoCodec:G,maxWidth:d.maxWidth||0,maxHeight:d.maxHeight|| 0,maxFramerate:d.maxFramerate||0,is10BitSupported:d.Hm||!1},d.maxBitrateBps&&(J.maxBitrateBps=d.maxBitrateBps,r=Zf(d.itag),D=void 0,((D=r)==null?0:D.video)&&jl(S,r,f)===!0&&(r=r.Yq*8,r>J.maxBitrateBps&&(J.maxBitrateBps=r))),d=G+"_"+d.Hm,G=h.get(d)||[],G.push(J),h.set(d,G));R=SJG(R,h);f={};K.V("html5_ssff_denylist_opus_low")&&(f={itagDenylist:[249,350]});Q.mediaCapabilities={videoFormatCapabilities:R,audioFormatCapabilities:T,hdrModeBitmask:3,perPlaybackAttributes:f}}var U;if((U=Z.RW)==null?0:U.Y){Q.u1= S.u1;var B;Q.k8=(B=Z.RW)==null?void 0:B.k8}K.y7&&(Q.F1=K.y7);Q.Vg=Z.Ap;Q.eL=Z.eL;Q.a5=Z.a5;Q.Np=Z.Np;if(K.V("html5_fix_time_since_last_seek_reporting")?Z.G_!==void 0:Z.G_)Q.FGg=(0,g.Nm)()-Z.G_;Z.isPrefetch&&K.V("html5_report_prefetch_requests")&&(Q.isPrefetch=!0);xQ||(Q.nqY=!0);U=X4(K.schedule)*1E3;U>0&&(Q.Gd=U);var e;((e=Z.RW)==null?0:e.zb)&&Z.UE&&Z.UE<Infinity&&(Q.UE=Z.UE);z=z.getPlaybackRate();z!==1&&(Q.playbackRate=z);var F;((F=Z.RW)==null?0:F.De)&&Z.R0&&(Q.ov=Z.ov,Q.IU=Z.IU,Q.R0=Z.R0);K.V("allow_proxima_live_latency")&& (CY()===1&&(Q.GfJ=1),K.V("html5_sabr_force_proxima")&&(Q.luu=1),F=g.Xp(K.experiments,"html5_sabr_force_max_network_interruption_duration_ms"),Q.WM7=F>0?F:K.schedule.interruptions[0]||0);var KX;if((KX=Z.RW)==null?0:KX.ih)Q.xo=Z.xo;var rf;((rf=Z.RW)==null?0:rf.zc)&&b.Zt&&(Q.audioTrackId=b.Zt);var sG;if((sG=Z.RW)==null?0:sG.x4)if(Z=DjW())Q.detailedNetworkType=a5f[Z]||a5f.other;return Q}; YX=function(Z,Q,z,K,b,q,r){var D={};Q&&(D.AE=Q);if(!Z)return D;D.playbackCookie=z==null?void 0:z.playbackCookie;b&&(D.rB=b);D.yX=[];D.m8=[];if(r==null?0:r.size)for(Q=g.n(r.values()),z=Q.next();!z.done;z=Q.next())D.m8.push(z.value);if(Z.sabrContextUpdates.size>0)for(Q=g.n(Z.sabrContextUpdates.values()),z=Q.next();!z.done;z=Q.next())P2X(D,z.value,K);Qa(Z)&&!g.V0(Z)&&Z.V("html5_enable_sabr_request_pipelining")&&q&&P2X(D,q,K);Z.HK&&(D.q6g=Z.HK);K=Z.N().Y;D.clientInfo={clientName:Rdn[K.c.toUpperCase()]|| 0};K.cbrand&&(D.clientInfo.deviceMake=K.cbrand);K.cmodel&&(D.clientInfo.deviceModel=K.cmodel);K.cver&&(D.clientInfo.clientVersion=K.cver);K.cos&&(D.clientInfo.osName=K.cos);K.cosver&&(D.clientInfo.osVersion=K.cosver);K=Z.N();K.V("html5_sabr_enable_server_xtag_selection")&&K.DI&&(D.clientInfo.hl=K.DI);Z.XE&&(D.XE=Z.XE);return D}; P2X=function(Z,Q,z){var K=Q.type||0;(z==null?0:z.has(K))?Z.m8.push(Q):Z.yX.push(K)}; aA=function(Z,Q,z,K,b,q){var r=q===void 0?{}:q;var D=r.zG===void 0?[]:r.zG;var v=r.Fr===void 0?!1:r.Fr;var Y=r.tC===void 0?0:r.tC;var X=r.poToken===void 0?"":r.poToken;var S=r.Rk===void 0?void 0:r.Rk;var T=r.kp===void 0?"":r.kp;var f=r.yr===void 0?0:r.yr;var h=r.EN===void 0?new Uint8Array(0):r.EN;var m=r.F9===void 0?!1:r.F9;q=r.Qo===void 0?0:r.Qo;r=r.AE===void 0?void 0:r.AE;tI.call(this,Q,b);var J=this;this.policy=Z;this.logger=new g.EV("dash/request");this.q4=this.Xl=0;this.YM=!1;this.QA=this.E7= null;this.uQ=!1;this.EN=this.yr=null;this.Zd=this.BB=!1;this.G$=null;this.Qo=this.UX=0;this.t_=!1;this.zz={Q3:function(G){J.Q3(G)}, Xep:function(){return J.tN}, JnF:function(G){J.tN=G}, RwB:function(G){J.Xl=G}, BPF:function(G){J.Tz.lastError=G}, bA:function(){return J.xhr}}; this.timing=new VZ(this,z);this.Fr=v;this.yr=f;this.EN=h;this.tH=g.Hz(this.info,this.policy,K);this.tH.set("rn",this.Xo().toString());this.tH.set("rbuf",(Y*1E3).toFixed().toString());this.Fr&&this.tH.set("smb","1");this.policy.v2&&X&&this.tH.set("pot",X);T&&this.tH.set("bbs",T);this.policy.useUmp&&!LZ(this.tH.pM)&&(this.L6=new xB(this),this.tH.set("ump","1"),this.tH.set("srfvp","1"));if(Z=this.policy.Db?this.policy.bu&&!isNaN(this.info.tx)&&this.info.tx>this.policy.RN?!1:!0:!1)Q=null,this.policy.wU&& this.policy.T0?Q=[1]:m&&(Q=[]),Q!=null&&(this.policy.BR&&Q.push(2),this.tH.set("defsel",Q.join(",")));this.Tz=new QV(this,this.policy,this.tH,this.info.zW,this.timing,this.logger,K,S);this.zG=D||null;this.hE=C2D(this);r0W(this.Tz);K=void 0;if(this.policy.jn||this.L6||this.policy.c7)K={method:"POST"},D=(0,g.X0)([120,0]),S={},this.policy.OM&&r&&(r=YX(void 0,r),S.ZJ=r),this.policy.GB&&this.EN&&(S.videoPlaybackUstreamerConfig=this.EN),this.policy.c7&&(r=this.info.W)&&Object.assign(S,r),Object.keys(S).length> 0?K.body=g.ed(S,g.td):K.body=D;if(this.yr&&this.EN){this.tH.set("iwts","1");K={method:"POST"};r={Np:this.yr*1E3};var d;D=(d=this.info.W)==null?void 0:d.Rs;d=g.ed({Yx:r,Rs:D||void 0,videoPlaybackUstreamerConfig:this.EN},g.td);K.body=d}try{this.xhr=wF(this.tH,this.policy.X,this.timing,Z,K),this.Tz.j.start(),q&&(this.Gn=new g.E6(this.NS,q,this),this.Gn.start(q+(this.timing.Bh.X.Wx()||0)*1E3)),this.policy.Rv&&W7(this.timing,this.sS()),this.logger.debug(function(){return"Sent, itag="+J.tH.get("itag")+ " seg="+J.info.AG[0].rr+" range="+J.tH.get("range")+" time="+Math.round(J.info.AG[0].eP)+"-"+Math.round(g.x$(J.info.AG).M8)+" rtp="+(J.timing.jO()-Date.now()).toFixed(0)}),g.Ae(function(){})}catch(G){por(this,G,!0)}}; C2D=function(Z){if(!(pQ(Z.info)&&Z.info.lP()&&Z.policy.N8&&Z.zG)||Z.info.zW.j>=2||RL()>0||!dfW())return!1;var Q=Z.tH.get("aitags");if(!Q)return!1;Q=e6(Q).split(",");for(var z=[],K=g.n(Z.zG),b=K.next();!b.done;b=K.next())b=b.value,g.wX(Q,b)&&z.push(b);if(!z.length)return!1;Z.tH.set("altitags",g.F5(z.join(",")));return!0}; por=function(Z,Q,z){z=z===void 0?!1:z;g.Rm(Q);Z.Tz.lastError="player.exception";Z.errorMessage=Q.name+"_"+Q.message;z?g.Ae(function(){bv(Z.Tz)}):bv(Z.Tz)}; HZd=function(Z,Q){Z.timing.SJ=!0;Z.xhr.nz()&&Z.timing.Wz();if(Z.policy.IW){var z;(z=Z.Gn)==null||z.stop()}ZJ(Z.tN,Q,!1)}; Mld=function(Z,Q){Z.info=Q;if(Z.tN){var z=Z.tN;Q=Q.AG;(Q.length!==z.AG.length||Q.length<z.Aj.length)&&ZZf("dash/request",260511119,""+Q.length,""+z.AG.length,""+z.Aj.length);z.AG=Q;for(var K=Q[0].range,b=new fe,q=0;q<z.Aj.length;q++)hK(b,z.Aj[q].Y);for(q=0;q<z.Aj.length;q++){z.Aj[q].info=Q[q];var r=Q[q].range;z.Aj[q].Y=Le(b,r.start-K.start,r.length)}}Z.hE=!1}; UV0=function(Z){Z.UX&&(Z.xhr.status=Z.UX,Z.Xl=Z.UX)}; Sf=function(Z,Q){oA.call(this,Z,Q);this.Vp=!0;this.P7=!1;this.Zu=this.Du=0;this.s$=NaN}; OZx=function(Z,Q,z){var K=Z.Sy?Math.max(Q,z/Z.Sy):Q,b=Z.Bh.j.S;b&&(K=Q,Z.Sy&&(K=Math.max(Q,z/Z.Sy*b)));vZ(Z.Bh,Q,z,K)}; $X=function(Z){this.j={};this.logger=new g.EV(Z)}; TU=function(Z){$X.call(this,"sabr");this.H4=Z}; f7=function(Z){g.O.call(this);this.W=Z;this.logger=new g.EV("onesie");this.X3=new Map;this.j=this.Y=!1;this.RW=this.kh=null;this.S=!1}; oL0=function(Z,Q,z){Z.X3.get(Q).qn=z}; n7=function(Z,Q){Z.X3.has(Q)&&(hZ?Z.X3.get(Q).sZ.clear():Z.X3.get(Q).Aj=new fe,L7(Z,Q),Z.j=!0)}; BLG=function(Z){for(var Q=g.n(Z.X3),z=Q.next();!z.done;z=Q.next()){var K=g.n(z.value);z=K.next().value;K=K.next().value;K.L8||n7(Z,z)}}; WGn=function(Z,Q){Q=Z.X3.get(Q);if(!Q)return 0;Z=0;if(Q.AG.length>0){Q=g.n(Q.AG);for(var z=Q.next();!z.done;z=Q.next()){var K=void 0;Z+=((K=z.value.range)==null?void 0:K.length)||0}return Z}if(Q.NQ.length>0)for(z=g.n(Q.NQ),K=z.next();!K.done;K=z.next())Z+=K.value.PJ||0;return Z+Q.lQ}; cu=function(Z,Q){if(hZ){var z=0;Z=Z.X3.get(Q);if(Z==null||!Z.sZ)return 0;Z=g.n(Z.sZ.values());for(Q=Z.next();!Q.done;Q=Z.next())z+=Q.value.data.getLength();return z}return((z=Z.X3.get(Q))==null?void 0:z.Aj.getLength())||0}; mn=function(Z,Q){Z=Z.X3.get(Q);if(hZ){if(Z==null||!Z.L8)return!1;Q=Z.sZ.size>0;return Z.h_.length>0||Q}return!(Z==null||!Z.L8)&&!(Z==null||!Z.Aj.getLength())}; Vl4=function(Z,Q){var z=Z.X3.get(Q),K=WGn(Z,Q),b=!K&&!!z.bytesReceived;if(hZ){var q;if((q=Z.kh)==null?0:q.fd){Z=g.n(z.sZ.values());for(Q=Z.next();!Q.done;Q=Z.next())if(!Q.value.Fk)return!1;return b}}else if(q=Z.zB(Q),b&&Z.Y&&q!==void 0)return q;return(b||z.bytesReceived===K)&&z.N4+cu(Z,Q)===z.bytesReceived}; kL0=function(Z,Q,z){Z.X3.set(Q,{Aj:new fe,N4:0,bytesReceived:0,lQ:0,rE:!1,Bx:!1,zB:!1,WN:z,IM:[],AG:[],NQ:[],L8:!1,sZ:new Map,OH:new Map,h_:[]});Z.logger.debug(function(){return"[initStream] formatId: "+Q})}; uUr=function(Z,Q,z,K){z.AG.push.apply(z.AG,g.I(K));if(hZ){z.OH.has(Q)||z.OH.set(Q,[]);var b;(b=z.OH.get(Q)).push.apply(b,g.I(K))}else if(z.tN)for(Z=g.n(K),Q=Z.next();!Q.done;Q=Z.next())z.tN.AG.push(Q.value);else{z.tN=new sx(Z.RW,[].concat(g.I(z.AG)));var q;((q=Z.RW)==null?0:q.FB)&&g.W(Z,z.tN)}}; xVn=function(Z,Q,z){var K,b=(K=Z.kh)==null?void 0:K.S.get(Q);if(!b)return[];if(z.BS){var q;return((q=b.In(0,z.clipId))==null?void 0:q.AG)||[]}if(b.Is()){var r=z.startMs,D=z.durationMs,v=1E3,Y;if(((Y=Z.RW)==null?0:Y.Y)&&z.timeRange){var X;r=(X=z.timeRange.startTicks)!=null?X:-1;var S;D=(S=z.timeRange.pc)!=null?S:-1;var T;v=(T=z.timeRange.timescale)!=null?T:-1}if(z.Oc<0||z.oP<0||D<0||r<0||z.PJ<0||v<0)return n7(Z,Q),[];Z=Ia(z.Oc,z.PJ);Q=z.Mg||0;return[new yT(3,b,Z,"makeSliceInfosMediaBytes",z.oP-1,r/ v,D/v,Q,Z.length-Q,void 0,z.I4,z.clipId)]}if(z.oP<0)return n7(Z,Q),[];var f;return((f=Z.kh)==null?0:f.fd)?(Q=b.ip,Y=Q*b.info.Yq,X=((r=Z.RW)==null?0:r.A4)?z.Mg:void 0,((v=Z.RW)==null?0:v.ew)&&z.timeRange&&!X&&(D=z.timeRange.startTicks/z.timeRange.timescale),[new yT(3,b,void 0,"makeSliceInfosMediaBytes",z.oP,D,Q,X,Y,!0,z.I4,z.clipId)]):[]}; tlD=function(Z,Q,z){Z.kh=Q;Z.RW=z;Q=g.n(Z.X3);for(z=Q.next();!z.done;z=Q.next()){var K=g.n(z.value);z=K.next().value;K=K.next().value;for(var b=g.n(K.IM),q=b.next();!q.done;q=b.next()){q=q.value;var r=xVn(Z,z,q);uUr(Z,q.DL,K,r)}}}; Ii=function(Z,Q,z,K){Z.logger.debug(function(){return"[addStreamData] formatId: "+z+",headerId: "+Q+" bytes: "+K.getLength()}); (Z=Z.X3.get(z))&&!Z.Bx&&(hZ?(Z.sZ.has(Q)||Z.sZ.set(Q,{data:new fe,lr:0,Fk:!1}),hK(Z.sZ.get(Q).data,K)):hK(Z.Aj,K),Z.bytesReceived+=K.getLength(),Z.rE=!0)}; L7=function(Z,Q){Z.logger.debug(function(){return"[closeStream] formatId: "+Q}); var z=Z.X3.get(Q);z&&!z.Bx&&(z.Bx=!0,z.qn&&z.qn(),FGu(Z)&&Z.W.gC())}; FGu=function(Z){Z=g.n(Z.X3.values());for(var Q=Z.next();!Q.done;Q=Z.next())if(!Q.value.Bx)return!1;return!0}; JZ=function(Z,Q,z,K,b,q,r,D){g.O.call(this);this.policy=Z;this.info=Q;this.kh=z;this.H4=b;this.sB=D;this.logger=new g.EV("sabr");this.L6=new xB(this);this.GZ=new TU(this);this.JN=new f7(this);this.state=1;this.lM=!1;this.Mk=0;this.clipId="";this.Rm=this.KM=-1;this.EL=0;this.QG=-1;this.t_=this.qh=!1;this.VU=0;this.Ub=!1;this.policy.VC?this.OS=new Sf(this,q):this.OS=new VZ(this,q);this.tH=this.policy.ih?Q.Qs:ed9(Q,this.policy,K);this.tH.set("rn",""+this.Xo());this.tH.set("alr","yes");tlD(this.JN,z, Z);this.Tz=new QV(this,this.policy,this.tH,Q.zW,this.OS,this.logger,K,r,this.policy.enableServerDrivenRequestCancellation);r0W(this.Tz);var v;if((v=this.policy)==null?0:v.FB)g.W(this,this.JN),g.W(this,this.Tz);Z=Q.j;Q={method:"POST",body:Z};Z&&(this.EL=Z.length);try{this.xhr=wF(this.tH,this.policy.X,this.OS,xQ,Q),this.policy.Rv&&W7(this.OS,this.sS()),this.Tz.j.start()}catch(Y){g.CO(Y)}}; wof=function(Z){Z.policy.TB&&Z.Cu&&!Z.Ub?Z.Ub=!0:Z.OS.Wz()}; ELd=function(Z,Q){var z=-1,K=-1,b=-1,q;if((q=Z.Z8)==null?0:q.items)for(Z=g.n(Z.Z8.items),q=Z.next();!q.done;q=Z.next())q=q.value,Q<q.eW||q.eW<z||(z=q.eW,K=q.Lq,b=q.minReadaheadMs);return{yGu:z,Lq:K,mH:b}}; l54=function(Z){this.Y=Z;this.U=this.Vp=this.T=this.KN=this.W=this.L=this.K=this.JG=this.X=this.c7=this.SJ=this.P7=this.jJ=0;this.ticks={}}; yV=function(Z){Z.jJ||(Z.jJ=(0,g.Nm)(),du("mb_s",Z.jJ,Z.Y))}; san=function(Z){Z.P7||(Z.P7=(0,g.Nm)(),du("ovfs_rp",Z.P7,Z.Y))}; ZQX=function(Z){Z.SJ||(Z.SJ=(0,g.Nm)(),du("oafs_rp",Z.SJ,Z.Y))}; Qau=function(Z){Z.L||(Z.L=(0,g.Nm)(),du("vda",Z.L,Z.Y),Z.W&&zS(g.ZW(),4))}; znX=function(Z){Z.W||(Z.W=(0,g.Nm)(),du("ada",Z.W,Z.Y),Z.L&&zS(g.ZW(),4))}; KSD=function(Z){Z.KN||(Z.KN=(0,g.Nm)(),du("vis_a",Z.KN,Z.Y))}; bQr=function(Z){Z.T||(Z.T=(0,g.Nm)(),du("ais_a",Z.T,Z.Y))}; qX9=function(Z){Z.Vp||(Z.Vp=(0,g.Nm)(),du("vrb_f",Z.Vp,Z.Y))}; rt4=function(Z){Z.U||(Z.U=(0,g.Nm)(),du("arb_f",Z.U,Z.Y))}; AtM=function(Z,Q,z){var K=Q instanceof JZ&&!Z.S&&!Z.j,b=!Z.S&&(z==null?void 0:z.info.video);z=!Z.j&&(z==null?void 0:z.info.audio);Q.state===3?((b||K)&&Z.tick("vrr"),(z||K)&&Z.tick("arr")):Q.state===4?b?(Z.S=Q.sS(),zS(g.ZW(),4)):z&&(Z.j=Q.sS()):Q instanceof aA&&Q.rI()&&b&&zS(g.ZW(),4)}; jaD=function(Z){return!!Z.j&&!!Z.S}; dU=function(Z,Q,z,K,b,q,r){g.rV.call(this);var D=this;this.wr=Z;this.kh=Q;this.policy=z;this.videoTrack=K;this.audioTrack=b;this.GJ=r;this.jJ=this.Y=null;this.L=this.T=NaN;this.X=0;this.U=NaN;this.K=null;this.JG=this.P7=NaN;this.KN=new Map;this.SJ=this.S=this.W=NaN;this.zz={qjI:function(){return D.j}}; this.j=q?1:0}; vif=function(Z,Q,z,K){K=K===void 0?!0:K;if(z&&!Z.KN.has(Q.rr)){for(var b=Q.startTime,q=[],r=0;r<z.Y.length;r++){var D=z.Y[r],v=b;b=v+z.j[r];q.push({startTime:v,endTime:b,adCpn:D})}Z.KN.set(Q.rr,q)}if(Z.policy.YE)if(b=Z.jJ&&Q.rr===Z.jJ.rr+1,Z.jJ=Q,q=Z.Y&&Q.rr===Z.Y.rr+1,q=Z.Y&&b&&q&&Z.Y.n0.event!=="stop"&&Z.Y.n0.event!=="predictStart",r=Q.n0||null,D=Z.videoTrack.Y.index.h4(),Z.policy.Ju&&(D=Math.max(Z.videoTrack.Y.index.h4(),Z.audioTrack.Y.index.h4())),D=Q.rr>=D,v=Z.kh.isManifestless&&Z.policy.Bs, r){var Y;if(((Y=Z.Y)==null?void 0:Y.n0.event)==="predictStart"&&Z.Y.rr<Q.rr&&r.event==="stop"){var X;Z.wr.handleError("ssdai.missingstartcueevent",{lastpredict:((X=Z.Y)==null?void 0:X.rr)||0,csq:Q.rr},0)}Z.Y={n0:r,rr:Q.rr,xF:!!z,Gy:K};D?NG(Z,r,Q.rr):v&&(b?q?NG(Z,r,Q.rr):r.event==="continue"||r.event==="stop"?DoW(Z,Q):NG(Z,r,Q.rr):NG(Z,r,Q.rr))}else q&&DoW(Z,Q),Z.j===4&&GU(Z,5,"qend")}; NG=function(Z,Q,z){Q.startSecs+=isNaN(Z.X)?0:Z.X;Z=Z.kh;Z.P7.push(Q);Z.publish("cuepointsadded",z)}; giX=function(Z,Q,z){if(Z.j!==0&&z&&Q.AG[0].Gy()){var K=Q.AG[0].rr,b=Q.AG[0].eP;Q=Q.isDecorated();iv(Z,K,b,Q,z)}}; iv=function(Z,Q,z,K,b){var q;Q!==((q=Z.Y)==null?void 0:q.rr)||Z.j===1||K||Z.Y.n0.event==="predictStart"||Z.pN("sdai",{undecevt:1,sq:Q,mt:z,evt:Z.Y.n0.event},!0);Q>Z.L&&(Z.L=NaN,Z.T=NaN);if(Z.Y&&Z.Y.rr===Q)if(K=Z.Y,b&&K){var r=K.n0;q=b.CJ(r);r.event==="predictStart"&&(Z.SJ=Q);Z.pN("sdai",{onqevt:r.event,sq:Q,mt:z,gab:q,cst:r.startSecs,cueid:Z.policy.l3&&(q||r.event==="start")?r.identifier:void 0},!0);if(q)if(r.event!=="predictStart")r.event==="start"&&Z.SJ===Q-1&&Z.pN("sdai",{gabonstart:Q}),K.xF?GU(Z, 4,"cue"):(Z.L=Q,Z.T=z,Z.pN("sdai",{joinad:Z.j,sg:Z.L,st:Z.T.toFixed(3)}),Z.U=Date.now(),GU(Z,2,"join"),b.R7(K.n0));else{var D=Q+Math.max(Math.ceil(-r.Y/5E3),1);q=Math.floor(z-r.Y/1E3);Z.policy.L?Z.S=q:Z.W=D;Z.pN("sdai",{onpred:z,estsq:D,estmt:q.toFixed(3)});ai(Z.wr,q,q,D);Z.U=Date.now();GU(Z,3,"predict");b.R7(K.n0)}else Z.j===1?((D=Z.K)==null?0:D.Wb(z))?(ai(Z.wr,z,z,Q),GU(Z,4,"sk2had")):GU(Z,5,"nogab"):r.event==="predictStart"&&(Z.policy.L&&Z.S>0?(z=Math.floor(z-r.Y/1E3),Z.S!==z&&Z.pN("sdai",{updateSt:z, old:Z.S}),Z.S=z):Z.W>0&&(z=Q+Math.max(Math.ceil(-r.Y/5E3),1),Z.W!==z&&(Z.pN("sdai",{updateSt:z,old:Z.W}),Z.W=z)));var v,Y;if(Z.GJ&&r.event==="start"&&((v=Z.Y)==null?void 0:v.n0.event)!=="predictStart"&&((Y=Z.Y)==null?void 0:Y.rr)===Q-1){var X;Z.pN("sdai",{ovlpst:(X=Z.Y)==null?void 0:X.n0.event,sq:Q})}}else Z.pN("sdai",{nulldec:1,sq:Q,mt:z.toFixed(3),evt:(K==null?void 0:(r=K.n0)==null?void 0:r.event)||"none"});else Z.j===1&&GU(Z,5,"noad")}; Xzd=function(Z,Q,z){if(Z.j===1||Z.j===2)return!1;if(Z.j!==0&&Q===Z.audioTrack){if(Z.policy.L)return YXM(Z.videoTrack,z)||YXM(Z.videoTrack,z+1);Z=Pu(Z.videoTrack);if(z>(Z?Z.rr:-1))return!1}return!0}; Ri=function(Z,Q,z){return(z<0||z===Z.L)&&!isNaN(Z.T)?Z.T:Q}; DoW=function(Z,Q){if(Z.Y){var z=Z.Y.n0.Nn-(Q.startTime+Z.X-Z.Y.n0.startSecs);z<=0||(z=new CZ(Z.Y.n0.startSecs-(isNaN(Z.X)?0:Z.X),z,Z.Y.n0.context,Z.Y.n0.identifier,"stop",Z.Y.n0.Y+Q.duration*1E3),Z.pN("cuepointdiscontinuity",{segNum:Q.rr}),NG(Z,z,Q.rr))}}; GU=function(Z,Q,z){Z.j!==Q&&(Z.pN("sdai",{setsst:Q,old:Z.j,r:z}),Z.j=Q)}; C7=function(Z,Q,z,K){(K===void 0?0:K)?GU(Z,1,"seek"):Q>0&&Math.abs(Q-z)>=5&&Z.j===4&&GU(Z,5,"sk2t."+Q.toFixed(2)+";ct."+z.toFixed(2))}; p7=function(Z,Q,z){this.audio=Z;this.video=Q;this.reason=z}; Hu=function(Z,Q,z){this.Y=Z;this.reason=Q;this.token=z;this.videoId=void 0}; MG=function(Z,Q,z){g.O.call(this);this.policy=Z;this.W=Q;this.pN=z;this.S=new Map;this.L=0;this.K=!1;this.Y="";this.j=!1}; Ux=function(Z,Q,z){if(z===void 0?0:z)Z.K=!0;++Z.L;z=6E4*Math.pow(2,Z.L);z=(0,g.Nm)()+z;Z.S.set(Q.info.id,z)}; Ox=function(Z){for(var Q=g.n(Z.S.entries()),z=Q.next();!z.done;z=Q.next()){var K=g.n(z.value);z=K.next().value;K=K.next().value;K<(0,g.Nm)()&&Z.S.delete(z)}return Z.S}; SXG=function(Z){return Z.K&&Ox(Z).size>0}; oi=function(Z,Q){Z.Y!==Q&&(Z.Y=Q,Z.j=!0)}; $oX=function(Z,Q){var z;Q&&(z=g.Fm(Z.W.Y,function(b){return b.id===Q})); if(!z&&(z=g.Fm(Z.W.Y,function(b){var q;return!((q=b.Qw)==null||!q.isDefault)}),Q)){var K; Z.pN("iaf",{id:Q,sid:(K=z)==null?void 0:K.id})}return z}; Wu=function(Z,Q,z,K,b,q){var r=this;q=q===void 0?[]:q;this.wr=Z;this.P7=Q;this.policy=z;this.kh=K;this.K=b;this.qB=q;this.logger=new g.EV("dash/abr");this.Y=UK;this.S=this.T=null;this.U=-1;this.Vp=!1;this.nextVideo=this.j=null;this.W=[];this.Du=new Set;this.c7={};this.NB=new r5(1);this.X=0;this.Zu=this.SJ=this.jJ=!1;this.JG=0;this.s$=!1;this.KN=new Set;this.tG=!1;this.zz={Ci:function(){Bu(r)}}; this.L=new MG(this.policy,b,function(D,v){r.wr.pN(D,v)})}; niX=function(Z,Q,z){VV(Z,Q);Q=$oX(Z.L,z);z||Q||(Q=Tmf(Z));Q=Q||Z.K.Y[0];Z.j=Z.kh.Y[Q.id];Bu(Z);Z.T=Z.j;fE9(Z);hn4(Z);Z.S=Z.nextVideo;Z.T=Z.j;return LSD(Z)}; IEM=function(Z,Q){if(ctG(Z,Q))return null;if(Q.reason==="m"&&Q.isLocked())return Z.logger.debug(function(){return"User sets constraint to: "+KZ(Q)}),VV(Z,Q),Z.X=Z.W.length-1,Bu(Z),kX(Z),Z.SJ=Z.SJ||Z.S!==Z.nextVideo,Z.S=Z.nextVideo,new p7(Z.j,Z.S,Q.reason); Q.reason==="r"&&(Z.U=-1);VV(Z,Q);kX(Z);if(Q.reason==="r"&&Z.nextVideo===Z.S)return new p7(Z.j,Z.nextVideo,Q.reason);mo0(Z);return null}; Jtx=function(Z,Q,z){Z.j=Z.kh.Y[Q];Z.T=Z.j;return new p7(Z.T,Z.S,z?"t":"m")}; ytd=function(Z,Q){if(Q.info.video){if(Z.S!==Q)return Z.S=Q,LSD(Z)}else Z.Zu=Z.T!==Q,Z.T=Q;return null}; don=function(Z,Q){if(Q.Y.info.video&&Q.W){var z=(Q.j+Q.S)/Q.duration,K=Q.Y.info.Yq;z&&K&&(Z.NB.IF(1,z/K),Z.policy.S&&z/K>1.5&&Z.wr.pN("overshoot",{sq:Q.rr,br:z,max:K}))}}; uv=function(Z,Q,z){Ux(Z.L,Q,z===void 0?!1:z);Z.U=-1;VV(Z,Z.Y)}; NmX=function(Z,Q){return new p7(Z.T,Z.S,Q||Z.Y.reason)}; mo0=function(Z){if(Z.S&&Z.nextVideo&&xX(Z,Z.S.info)<xX(Z,Z.nextVideo.info)){var Q=Z.Y.reason;Z.jJ=Z.jJ||Q==="r"||Q==="u"||Q==="v"}}; LSD=function(Z){Z.Vp?Z.Vp=!1:Z.U=(0,g.Nm)();Z.jJ=!1;Z.tG=!1;return new p7(Z.T,Z.S,Z.Y.reason)}; G9G=function(Z,Q){var z={};Q=g.n(Q);for(var K=Q.next();!K.done;K=Q.next())if((K=K.value)&&K.video){var b=K.video.Y,q=z[b],r=q&&e5(q)&&q.video.Y>Z.policy.k8,D=b<=Z.policy.k8?e5(K):xh(K);if(!q||r||D)z[b]=K}return z}; VV=function(Z,Q){Z.Y=Q;var z=Z.K.videoInfos;if(!Z.Y.isLocked()){var K=(0,g.Nm)();z=g.jr(z,function(D){if(D.Yq>this.policy.Yq)return!1;var v=this.kh.Y[D.id];return Ox(this.L).get(D.id)>K?!1:v.zW.j>4||v.K>4?(this.logger.debug(function(){return"Remove "+qB(D)+"; 4 load failures"}),!1):this.KN.has(+D.itag)?!1:!0},Z); SXG(Z.L)&&(z=g.jr(z,function(D){return D.video.width<=854&&D.video.height<=480}))}z.length||(z=Z.K.videoInfos); var b=z;Z.policy.N0&&(b=iQW(Z,b,Q));b=g.jr(b,Q.W,Q);if(Z.Y.isLocked()&&Z.L.Y){var q=g.Fm(z,function(D){return D.id===Z.L.Y}); q?b=[q]:oi(Z.L,"")}Z.policy.N0||(b=iQW(Z,b,Q));b.length||(b=[z[0]]);b.sort(function(D,v){return xX(Z,D)-xX(Z,v)}); Q={};for(z=1;z<b.length;Q={Ra:void 0,lW:void 0},z++)Q.lW=b[z-1],Q.Ra=b[z],Q.lW.video.width>Q.Ra.video.width?(g.EQ(b,z),z--):xX(Z,Q.lW)*Z.policy.U>xX(Z,Q.Ra)&&(g.EQ(b,z-1),z--);var r=b[b.length-1];Z.s$=!!Z.S&&!!Z.S.info&&Z.S.info.Gf!==r.Gf;Z.logger.debug(function(){return"Constraint: "+KZ(Z.Y)+", "+b.length+" fmts selectable, max selectable fmt: "+qB(r)}); Z.W=b;Z.Du.clear();Q=!1;for(z=0;z<b.length;z++)Q?Z.Du.add(b[z].itag):b[z].video.Y>=1080&&(Q=!0);aEG(Z.policy,r,Z.kh.fd)}; iQW=function(Z,Q,z){var K=z.reason==="m"||z.reason==="s";Z.policy.tB&&tZ&&g.Lc&&(!K||z.Y<1080)&&(Q=Q.filter(function(Y){return Y.video&&(!Y.j||Y.j.powerEfficient)})); if(Q.length>0)if(Wd()){var b=G9G(Z,Q);Q=Q.filter(function(Y){return!!Y&&!!Y.video&&Y.Gf===b[Y.video.Y].Gf})}else{var q,r,D=(q=Q[0])==null?void 0:(r=q.video)==null?void 0:r.Y; if(D){z=Q.filter(function(Y){return!!Y&&!!Y.video&&Y.video.Y===D}); var v=G9G(Z,z)[D].Gf;Q=Q.filter(function(Y){return!!Y&&!!Y.video&&Y.Gf===v})}}return Q}; P7G=function(Z,Q){for(var z=0;z+1<Z.W.length&&Z.W[z].video.quality==="tiny";)z++;var K=IA(Z.P7)/Z.policy.U;return xX(Z,Q.info)+xX(Z,Z.W[z])>K}; Bu=function(Z){if(!Z.j||!Z.policy.W&&!Z.j.info.Qw){var Q=Z.K.Y;Z.j&&(Q=Q.filter(function(K){return K.audio.Y===Z.j.info.audio.Y}),Q.length||(Q=Z.K.Y)); Z.j=Z.kh.Y[Q[0].id];if(Q.length>1){if(Z.policy.kz){if(Z.policy.DI)return;var z=g.Fm(Q,function(K){return K.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}); z&&(Z.j=Z.kh.Y[z.id])}z=!1;if(z=Z.policy.zJ?!0:Z.Y.isLocked()?Z.Y.Y<240:P7G(Z,Z.j))Z.j=Z.kh.Y[g.x$(Q).id]}}}; kX=function(Z){if(!Z.nextVideo||!Z.policy.W)if(Z.Y.isLocked())Z.nextVideo=Z.Y.Y<=360?Z.kh.Y[Z.W[0].id]:Z.kh.Y[g.x$(Z.W).id],Z.logger.debug(function(){return"Select max fmt: "+qB(Z.nextVideo.info)}); else{for(var Q=Math.min(Z.X,Z.W.length-1),z=IA(Z.P7),K=xX(Z,Z.j.info),b=z/Z.policy.jJ-K;Q>0&&!(xX(Z,Z.W[Q])<=b);Q--);for(var q=z/Z.policy.U-K;Q<Z.W.length-1&&!(xX(Z,Z.W[Q+1])>=q);Q++);Z.nextVideo=Z.kh.Y[Z.W[Q].id];Z.X!==Q&&Z.logger.info(function(){return"Adapt to: "+qB(Z.nextVideo.info)+", bandwidth: "+z.toFixed(0)+", bandwidth to downgrade: "+b.toFixed(0)+", bandwidth to upgrade: "+q.toFixed(0)+", constraint: "+KZ(Z.Y)}); Z.X=Q}}; fE9=function(Z){var Q=Z.policy.jJ,z=IA(Z.P7),K=z/Q-xX(Z,Z.j.info);Q=g.eR(Z.W,function(b){return xX(this,b)<K},Z); Q<0&&(Q=0);Z.X=Q;Z.nextVideo=Z.kh.Y[Z.W[Q].id];Z.logger.info(function(){return"Initial selected fmt: "+qB(Z.nextVideo.info)+", bandwidth: "+z.toFixed(0)+", max video byterate: "+K.toFixed(0)})}; hn4=function(Z){if(Z.qB.length){var Q=Z.qB,z=function(K,b){if(K.info.Gf==="f"||Q.includes(LQ(g.QH(K.info,Z.kh.fd))))return K;for(var q={},r=0;r<b.length;q={td:void 0,AZ:void 0},r++){var D=Z.kh.Y[b[r].id];if(Q.includes(LQ(g.QH(D.info,Z.kh.fd)))){var v=K.info.Gf,Y=D.info.Gf;if(v===Y||Wd()){if(K.info.Y!==D.info.Y)return Z.wr.pN("ombifa",{mismatch:"xtag",f:K.info.id,t:D.info.id}),K;q.td=K.info.itag;q.AZ=D.info.itag;Z.wr.pN("ombifa",{f:q.td,t:q.AZ});Z.logger.info(function(X){return function(){return"Initial format selection changed from "+ X.td+" to "+X.AZ+" based on prefetched media."}}(q)); Z.Vp=!0;return D}Z.wr.pN("ombifa",{mismatch:"efficient",fc:v,tc:Y})}}Z.wr.pN("ombifa",{mismatch:"unselectable",fmts:Q.join(".")});return K}; Z.nextVideo=z(Z.nextVideo,Z.K.videoInfos);Z.j=z(Z.j,Z.K.Y)}}; xX=function(Z,Q){if(!Z.c7[Q.id]){var z=Z.kh.Y[Q.id].index.ZQ(Z.JG,15);z=Q.F5&&Z.S&&Z.S.index.isLoaded()?z||Q.F5:z||Q.Yq;Z.c7[Q.id]=z}z=Z.c7[Q.id];Z.Du.has(Q.itag)&&(z*=1.5);return z*=Math.max(1,Z.NB.Wx()||0)}; Rnn=function(Z,Q){Z=WEr(Z.kh.Y,function(z){return z.info.itag===Q}); if(!Z)throw Error("Itag "+Q+" from server not known.");return Z}; C7M=function(Z){var Q=[];if(Z.Y.reason==="m"||Z.Y.reason==="s")return Q;if(CxM(Z.kh)){for(var z=Math.max(0,Z.X-2);z<Z.X&&z<Z.W.length;z++)Q.push(Z.W[z].itag);Q.reverse()}return Q}; ctG=function(Z,Q){var z;return Z.Y.Tg(Q)&&(!Z.L.Y||!Z.Y.isLocked()||((z=Z.nextVideo)==null?void 0:z.info.id)===Z.L.Y)}; Tmf=function(Z){var Q=g.Fm(Z.K.Y,function(K){return K.audio.Y}),z=g.Fm(Z.K.Y,function(K){return!K.audio.Y}); return Q?Z.policy.bC?Q:z:null}; pzd=function(Z){var Q=Z===void 0?{}:Z;Z=Q.FF===void 0?!1:Q.FF;var z=Q.T0===void 0?!1:Q.T0;Q=Q.Db===void 0?!1:Q.Db;return Z?Q?3:2:z?-1:1}; F0=function(Z){this.track=Z;this.buffered=[];this.S=this.W=0;this.K={};this.L=0;this.Y=new ba}; HQG=function(Z,Q,z){Z.flush();Z.j=z;ef(Z,3,Q)}; ef=function(Z,Q,z){var K=[],b=Z.track.TW;if(b){b=b.Sx();for(var q=0;q<b.length;q++)K.push(Math.round(b.start(q)*1E3)),K.push(Math.round(b.end(q)*1E3))}b=1;q=K.length;if(q===Z.buffered.length){for(var r=0;r<=q&&K[r]===Z.buffered[r];r++);r>q?b=0:K[r]>Z.buffered[r]&&(r===q-1?b=2:r===q-2&&K[r+1]>Z.buffered[r+1]&&(b=3))}Z.Y.add(Q<<3|(z&&4)|b);Q=Math.ceil(Z.track.R$()*1E3);Z.Y.add(Q-Z.L);Z.L=Q;if(b===1)for(Z.Y.add(q),r=Q=0;r<q;r++)Z.Y.add(K[r]-Q),Q=K[r];b===3&&Z.Y.add(K[q-2]-Z.buffered[q-2]);b>=2&&Z.Y.add(K[q- 1]-Z.buffered[q-1]);z&&Z.Y.add(z);Z.buffered=K}; wU=function(Z,Q,z){var K=this;this.policy=Z;this.Y=Q;this.JG=z;this.W=this.j=0;this.R3=null;this.jJ=new Set;this.U=[];this.indexRange=this.initRange=null;this.X=new EZ;this.SJ=this.P7=!1;this.zz={e7f:function(){return K.S}, iju:function(){return K.chunkSize}, CcI:function(){return K.T}, Al7:function(){return K.K}}; (Q=Mc0(this))?(this.chunkSize=Q.csz,this.S=Math.floor(Q.clen/Q.csz),this.T=Q.ck,this.K=Q.civ):(this.chunkSize=Z.w5,this.S=0,this.T=g.c9(16),this.K=g.c9(16));this.L=new Uint8Array(this.chunkSize);this.T&&this.K&&(this.crypto=new tZM(this.T,this.K))}; Mc0=function(Z){if(Z.policy.LK&&Z.policy.d5)for(var Q=g.n(Z.policy.LK),z=Q.next(),K={};!z.done;K={xU:void 0,A0:void 0},z=Q.next())if(z=g.bV(z.value),K.xU=+z.clen,K.A0=+z.csz,K.xU>0&&K.A0>0&&Z.policy.W===z.docid&&Z.Y.info.id===z.fmtid&&Z.Y.info.lastModified===+z.lmt)return Z={},Z.clen=K.xU,Z.csz=K.A0,Z.ck=z.ck,Z.civ=z.civ,Z}; Ex=function(Z){return!!Z.R3&&Z.R3.sN()}; oiu=function(Z,Q){if(!Ex(Z)&&!Z.FI()){if(!(Z.P7||(Z.P7=!0,Z.S>0))){var z=lv(Z);z=Gs(Z.policy.W,Z.Y.info,sT(Z),z,Z.policy.qB);Zp(Z,z)}if(Q.info.type===1){if(Z.R3){QK(Z,Error("Woffle: Expect INIT slices to always start us off"));return}Z.initRange=Ia(0,Q.Y.getLength())}else if(Q.info.type===2)Z.R3&&Z.R3.type===1||QK(Z,Error("Woffle: Index before init")),Z.indexRange=Ia(Z.initRange.end+1,Q.Y.getLength());else if(Q.info.type===3){if(!Z.R3){QK(Z,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(Z.R3.type===3&&!G9(Z.R3,Q.info)&&(Z.U=[],Q.info.rr!==i7(Z.R3)||Q.info.j!==0))return;if(Q.info.W){z=g.n(Z.U);for(var K=z.next();!K.done;K=z.next())Uor(Z,K.value);Z.U=[]}else{Z.U.push(Q);Z.R3=Q.info;return}}else{QK(Z,Error("Woffle: Unexpected slice type"));return}Z.R3=Q.info;Uor(Z,Q);OQ0(Z)}}; Uor=function(Z,Q){var z=0,K=Q.Y.m9();if(Z.W<Z.S){z=Z.S*Z.chunkSize;var b,q=(((b=Q.info.range)==null?void 0:b.start)||0)+Q.info.j;z-=q;if(z>=K.length)return;if(z<0)throw Error("Missing data");Z.W=Z.S;Z.j=0}for(b={};z<K.length;b={Ui:void 0})if(b.Ui=Math.min(K.length-z,Z.L.byteLength-Z.j),q=new Uint8Array(K.buffer,K.byteOffset+z,b.Ui),Z.L.set(q,Z.j),Z.j+=b.Ui,z+=b.Ui,Z.j===Z.L.length){if(Q.info===Z.R3&&Ex(Z)&&z===K.length)break;b=lv(Z);b=Gs(Z.policy.W,Z.Y.info,sT(Z),b,Z.policy.qB,Z.W,Z.L,Z.crypto);Z.jJ.add(b); Zp(Z,b);Z.FI()||(b=lv(Z),Z.JG(sT(Z),b!==void 0?(b.downloadedEndTime||0)*b.averageByteRate:b.maxKnownEndTime*b.averageByteRate,b.maxKnownEndTime*b.averageByteRate));Z.L=new Uint8Array(Z.chunkSize);Z.j=0;Z.W+=1}}; OQ0=function(Z){if(Ex(Z))if(Z.R3&&Z.indexRange)if(Z.j){var Q=new Uint8Array(Z.L.buffer,0,Z.j),z=Bmx(Z),K=Z.policy.W;Promise.all(Z.jJ).then(function(){var b=Gs(K,Z.R3.Y.info,sT(Z,!0),z,Z.policy.qB,Z.W,Q,Z.crypto);Zp(Z,b,!0)})}else QK(Z,new zb("Woffle: Expect always re-mark currentChunkOffset at EOS")); else QK(Z,new zb("Woffle: Expect at EOS to always have lastSlice or indexRange"))}; lv=function(Z){return{downloadedEndTime:Math.round(Z.R3?Z.R3.M8:0),maxKnownEndTime:Math.round(Z.Y.index.Hr()),averageByteRate:Math.round(Z.Y.info.F5)}}; Bmx=function(Z){return{downloadedEndTime:-1,maxKnownEndTime:Math.round(Z.Y.index.Hr()),averageByteRate:Math.round(Z.Y.info.F5)}}; sT=function(Z,Q){Q===void 0||!Q||Z.indexRange&&Z.initRange&&Z.R3||QK(Z,new zb("Woffle: Expect isFinal to always have indexRange and initRange and lastSlice"));Q={lmt:Z.Y.info.lastModified,docid:Z.policy.W,fmtid:Z.Y.info.id,type:Z.Y.info.mimeType.split(";")[0],csz:Z.chunkSize,clen:Z.W*Z.chunkSize+Z.j};Z.crypto&&(Q.ck=Z.T,Q.civ=Z.K);var z="local://localhost/videoplayback?"+QC(Q),K,b;Q={itag:+Z.Y.info.itag,mimeType:Z.Y.info.mimeType,bitrate:Z.Y.info.Yq*8,lastModified:String(Z.Y.info.lastModified),initRange:(K= Z.initRange)==null?void 0:U5G(K),indexRange:(b=Z.indexRange)==null?void 0:U5G(b),url:z};if(K=Z.Y.info.Y)Q.xtags=K;if(K=Z.Y.info.video)if(Q.quality=K.quality,Q.qualityLabel=K.qualityLabel,Q.width=K.width,Q.height=K.height,K=K.fps)Q.fps=K;if(Z=Z.Y.info.audio){if(K=Z.sampleRate)Q.audioSampleRate=String(K);if(Z=Z.numChannels)Q.audioChannels=Z}return Q}; Zp=function(Z,Q,z){z=z===void 0?!1:z;Q.then(function(K){Z.jJ.delete(Q);(z||K===4)&&Z.X.resolve(K)},function(K){Z.X.reject(K)})}; QK=function(Z,Q){g.JF(Z.policy.W)!==4&&(g.y0(Z.policy.W,4),g.CO(Q),Z.X.reject(new zb(Q.message)))}; zb=function(Z,Q){Z=Error.call(this,Z);this.message=Z.message;"stack"in Z&&(this.stack=Z.stack);this.Y=Q===void 0?!1:Q}; WS0=function(Z){Z=g.FU(Z,1886614376);for(var Q=g.n(Z),z=Q.next();!z.done;z=Q.next());return g.my(Z,function(K){return D54(K)})}; VcD=function(Z){var Q=J$(Z,function(b,q){return b+q.length},0); Q=new Uint8Array(Q);var z=0;Z=g.n(Z);for(var K=Z.next();!K.done;K=Z.next())K=K.value,Q.set(K,z),z+=K.length;return Q}; k9n=function(Z,Q,z,K,b,q){this.ids=Z;this.Y=Q;this.j=z;this.W=K;this.S=b;this.n8=q}; Kv=function(Z,Q,z){this.initData=Z;this.contentType=Q;this.isPrefetch=z;this.Y=this.cryptoPeriodIndex=NaN;this.S=[];this.Jj=!1;this.j=null;if((Q==null?void 0:Q.toLowerCase())==="webm"||Z.length===16)this.Jj=!0}; xo9=function(Z){a:{var Q=Z.initData;try{for(var z=0,K=new DataView(Q.buffer);z<K.byteLength-8;){var b=K.getUint32(z);if(b<=1)break;if(K.getUint32(z+4)===1886614376){var q=32;if(K.getUint8(z+8)>0){var r=K.getUint32(z+28);q+=r*16+4}var D=K.getUint32(z+q-4);try{var v=uMG(Q.subarray(z+q,z+q+D));if(v!==null){var Y=v;break a}}catch(X){}}z+=b}Y=null;break a}catch(X){Y=null;break a}Y=void 0}if(Y!=null)for(Q=XG(Uo(Y,7)),Q==null||Z.Jj||(Z.cryptoPeriodIndex=Q),Q=XG(Uo(Y,10)),Q!=null&&Q>0&&!Z.Jj&&(Z.Y=Q),Y=xK(Y, 2,Tln,void 0===LUf?2:4),Y=g.n(Y),Q=Y.next();!Q.done;Q=Y.next())Z.S.push(g.hj(N6(Q.value),4))}; tcn=function(Z){return isNaN(Z.cryptoPeriodIndex)?g.hj(Z.initData):""+Z.cryptoPeriodIndex}; bH=function(Z,Q,z){var K=z===void 0?{}:z;z=K.videoDuration===void 0?0:K.videoDuration;var b=K.Fm===void 0?void 0:K.Fm;K=K.vR===void 0?!1:K.vR;this.videoId=Z;this.status=Q;this.videoDuration=z;this.Fm=b;this.vR=K}; FSW=function(Z,Q,z,K,b){this.videoId=Z;this.uo=Q;this.j=z;this.bytesDownloaded=K;this.Y=b}; qs=function(Z){this.Y=Z;this.offset=0}; ra=function(Z){if(Z.offset>=Z.Y.getLength())throw Error();return Z.Y.getUint8(Z.offset++)}; enn=function(Z,Q){Q=Q===void 0?!1:Q;var z=ra(Z);if(z===1){Q=-1;for(z=0;z<7;z++){var K=ra(Z);Q===-1&&K!==255&&(Q=0);Q>-1&&(Q=Q*256+K)}return Q}K=128;for(var b=0;b<6&&K>z;b++)z=z*256+ra(Z),K*=128;return Q?z:z-K}; wzf=function(Z){try{var Q=enn(Z,!0),z=enn(Z,!1);return{id:Q,size:z}}catch(K){return{id:-1,size:-1}}}; EiG=function(Z){for(var Q=new qs(Z),z=-1,K=0,b=0;!K||!b;){var q=wzf(Q),r=q.id;q=q.size;if(r<0)return;if(r===176){if(q!==2)return;K=Q.yA()}else if(r===186){if(q!==2)return;b=Q.yA()}r===374648427?z=Q.yA()+q:r!==408125543&&r!==174&&r!==224&&Q.skip(q)}Q=m8(Z,0,z);z=new DataView(Q.buffer);z.setUint16(K,3840);z.setUint16(b,2160);K=new fe([Q]);hK(K,Z);return K}; lEn=function(Z,Q,z){var K=this;this.wr=Z;this.policy=Q;this.K=z;this.logger=new g.EV("dash");this.j=[];this.Y=null;this.P7=-1;this.U=0;this.KN=NaN;this.jJ=0;this.S=NaN;this.X=this.Vp=0;this.s$=-1;this.c7=this.L=this.W=this.JG=null;this.NB=this.Zu=NaN;this.T=this.SJ=this.Du=this.qB=null;this.CN=!1;this.tG=this.timestampOffset=0;this.zz={GP:function(){return K.j}}; if(this.policy.W){var b=this.K,q=this.policy.W;this.policy.qB&&Z.pN("atv",{ap:this.policy.qB});this.T=new wU(this.policy,b,function(r,D,v){AA(Z,new bH(K.policy.W,2,{Fm:new FSW(q,r,b.info,D,v)}))}); this.T.X.promise.then(function(r){K.T=null;r===1?AA(Z,new bH(K.policy.W,r)):K.wr.pN("offlineerr",{status:r.toString()})},function(r){var D=(r.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); r instanceof zb&&!r.Y?(K.logger.info(function(){return"Assertion failed: "+D}),K.wr.pN("offlinenwerr",{em:D}),jw(K),AA(Z,new bH(K.policy.W,4))):(K.logger.info(function(){return"Failed to write to disk: "+D}),K.wr.pN("dldbwerr",{em:D}),jw(K),AA(Z,new bH(K.policy.W,4,{vR:!0})))})}}; sWn=function(Z){return Z.j.length?Z.j[0]:null}; ZDM=function(Z,Q){return Z.j.some(function(z){return z.info.rr===Q})}; qa4=function(Z,Q,z,K){K=K===void 0?0:K;if(Z.L){var b=Z.L.j+Z.L.S;if(z.info.j>0)if(z.info.rr===Z.L.rr&&z.info.j<b){if(z.info.j+z.info.S<=b)return;z=g64(z,b-z.info.j)[1]}else if(z.info.rr>=0&&Z.L.rr>=0&&!G9(Z.L,z.info))throw new g.tW("improper_continuation",Z.L.O8(),z.info.O8());Wrd(Z.L,z.info)||Dp(Z,"d")}else if(z.info.j>0)throw new g.tW("continuation_of_null",z.info.O8());Z.L=z.info;Z.K=z.info.Y;if(z.info.j===0){if(Z.Y)if(!Z.wr.isOffline()||Z.policy.Bl)Z.wr.pN("slice_not_fully_processed",{buffered:Z.Y.info.O8(), push:z.info.O8()});else throw new g.tW("slice_not_fully_processed",Z.Y.info.O8(),z.info.O8());vl(Z);Z.Vp=K}else{if(Z.Vp&&K&&Z.Vp!==K)throw Z=new g.tW("lmt_mismatch",z.info.rr,Z.Vp,K),Z.level="WARNING",Z;!z.info.Y.Is()&&Z.W&&(K=z.info,b=Z.W.KM,K.L="updateWithEmsg",K.rr=b)}if(Z.Y){K=g.tt(Z.Y,z);if(!K)throw new g.tW("failed_to_merge",Z.Y.info.O8(),z.info.O8());Z.Y=K}else Z.Y=z;a:{z=g.lt(Z.Y.info.Y.info);if(Z.Y.info.type!==3){if(!Z.Y.info.W)break a;Z.Y.info.type===6?QWM(Z,Q,Z.Y):zpn(Z,Z.Y);Z.Y=null}for(;Z.Y;){K= Z.Y.Y.getLength();if(Z.P7<=0&&Z.U===0){var q=Z.Y.Y,r=-1;b=-1;if(z){for(var D=0;D+8<q.getLength();){var v=iln(q,D),Y=iln(q,D+4);D+=v||1;if(Y===1836019558)r=D;else if(Y===1835295092){b=D;break}}b<0&&(r=-1)}else{q=new qs(q);for(v=D=!1;;){Y=q.yA();var X=wzf(q),S=X.id;X=X.size;if(!(S>0))break;if(S!==408125543)if(S===524531317)D=!0,X>=0&&(b=q.yA()+X,v=!0);else{if(D&&(S===160||S===163)&&(r<0&&(r=Y),v))break;S===163&&(r=Math.max(0,r),b=q.yA()+X);if(S===160){r<0&&(b=r=q.yA()+X);break}q.skip(X)}}r<0&&(b=-1)}if(r< 0)break;Z.P7=r;Z.U=b-r}if(Z.P7>K)break;Z.P7?(K=KbG(Z,Z.P7),K.L&&bD0(Z,K),QWM(Z,Q,K),Yz(Z,K),Z.P7=0):Z.U&&(K=KbG(Z,Z.U<0?Infinity:Z.U),Z.U-=K.Y.getLength(),Yz(Z,K))}}Z.Y&&Z.Y.info.W&&(Yz(Z,Z.Y),Z.Y=null)}; zpn=function(Z,Q){!Q.info.Y.Is()&&Q.info.j===0&&(g.lt(Q.info.Y.info)||Q.info.Y.info.Jj())&&fRW(Q);if(Q.info.type===1)try{bD0(Z,Q),rRn(Z,Q)}catch(b){g.Rm(b);var z=aa(Q.info);z.hms="1";Z.wr.handleError("fmt.unparseable",z||{},1)}z=Q.info.Y;z.nU(Q);Z.T&&oiu(Z.T,Q);if(z.E6()&&Z.policy.Y)a:{Z=Z.wr.kh;Q=Q.info.clipId;z=g.QH(z.info,Z.fd);if(Q){var K=pdG(Z,z);if(Z.tG[K])break a;Z.tG[K]=Q}Z.c7.push(z)}}; Red=function(Z,Q,z){if(Z.j.length!==0&&(z||Z.j.some(function(q){return q.info.eP<Q}))){z=0; for(var K=g.n(Z.j),b=K.next();!b.done;b=K.next()){b=b.value;if(b.info.eP<Q)break;Z.wr.pN("cmat",{max:Q,s:b.info.O8()});z+=1}Z.j.splice(0,z)}}; jw=function(Z){var Q;(Q=Z.T)==null||Q.dispose();Z.T=null}; ARM=function(Z){var Q=Z.j.reduce(function(z,K){return z+K.Y.getLength()},0); Z.Y&&(Q+=Z.Y.Y.getLength());return Q}; jW9=function(Z){if(Z.SJ&&!Z.policy.pO){var Q=Z.wr;Q.kh.isManifestless&&fD(Q.kh,Z.SJ.rr,!!Z.K.info.video)}Z.SJ=null;Z.W=null;Z.L=Z.qB;Z.S=Z.L?Z.S-Z.jJ:NaN;vl(Z)}; KbG=function(Z,Q){var z=Z.Y;Q=Math.min(Q,z.Y.getLength());if(Q===z.Y.getLength())return Z.Y=null,z;z=g64(z,Q);Z.Y=z[1];return z[0]}; bD0=function(Z,Q){Q.Y.getLength();var z=Q.Vk();if(t7(Q.info.Y.info)&&Q.info.Y.info.video.primaries==="bt2020"){var K=new el(z);EJ(K,[408125543,374648427,174,224,21936,21937])&&(K=K.start+K.pos,z.getUint8(K)===129&&z.getUint8(K+1)===1&&z.setUint8(K+1,9))}K=Q.info.Y.info;xh(K)&&!t7(K)&&(K=Q.Vk(),(new el(K)).BS(),QT([408125543,374648427,174,224],21936,K));Q.info.Y.info.Gy()&&(K=Q.info.Y,K.info&&K.info.video&&K.info.video.projectionType==="MESH"&&!K.j&&(g.lt(K.info)?K.j=LrD(z):K.info.Jj()&&(K.j=d5G(z)))); Q.info.Y.info.Jj()&&Q.info.Gy()&&(z=Q.Vk(),(new el(z)).BS(),QT([408125543,374648427,174,224],30320,z)&&QT([408125543,374648427,174,224],21432,z));if(Z.policy.fq&&Q.info.Y.info.Jj()){z=Q.Vk();var b=new el(z);if(EJ(b,[408125543,374648427,174,29637])){K=ZE(b,!0);b=b.start+b.pos;for(var q=0;q<K-1;q++)z.setUint8(b+q,0);z.setUint8(b+K-1,1)}}if(Z.WN()&&g.lt(Q.info.Y.info)){K=Q.Vk();z=g.OJ(K,0,1701606260);q=g.OJ(K,0,1836476516);if(z&&q){z.skip(2);var r=NV(z),D=i2(z);K=[];b=[];var v=[],Y=[];if(r)for(r=0;r< D;++r)K.push(a6(z)),b.push(a6(z)),v.push(NV(z)),Y.push(NV(z));else for(r=0;r<D;++r)K.push(GL(z)),b.push(GL(z)),v.push(NV(z)),Y.push(NV(z));z=g.o6(q);z=new T8d(b[0]/z,K[0]/z)}else z=null;if(z){if(g.lt(Q.info.Y.info))for(K=Q.Vk(),b=g.OJ(K,0,1701082227);b;)q=b,q.type=1936419184,q.data.setUint32(q.offset+4,1936419184),b=g.OJ(K,b.offset+b.size,1701082227);Z.CN=!0;Q.info.Y.W=z}}Q.info.Y.Is()||Q.info.Y.Y||Q.info.Y.indexRange||EX(Q)}; QWM=function(Z,Q,z){if(z.info.Y.Is()){if(Z.CN&&D1X(z)&&(Q=z.Vk(),Q=g.OJ(Q,0,1953658222))){Q.skip(1);var K=dL(Q)<<16|NV(Q),b=K&1,q=K&4;if(K&256){var r=K&512,D=K&1024;K&=2048;var v=i2(Q);v<2||(b&&Q.skip(4),q&&Q.skip(4),b=i2(Q),Q.skip((v-1)*(4+(r?4:0)+(D?4:0)+(K?4:0))-4),Q.data.setUint32(Q.offset+Q.Y,b))}}if(Q=Z.JG&&!!Z.JG.K.W)if(Q=z.info.Gy())Q=$Bn(z),r=Z.JG,XW?(D=1/Q,Q=Sw(Z,Q)>=Sw(r)+D):Q=Z.getDuration()>=r.getDuration(),Q=!Q;Q&&D1X(z)&&(Q=Z.JG,XW?(D=$Bn(z),r=1/D,D=Sw(Z,D),Q=Sw(Q)+r-D):Q=Q.getDuration()- Z.getDuration(),Q=1+Q/z.info.duration,hf0(z.Vk(),Q))}else{r=!1;Z.W||(fRW(z),z.j&&(Z.W=z.j,r=!0,q=z.info,K=z.j.KM,q.L="updateWithEmsg",q.rr=K,q=z.j,q.sN&&(K=Z.K.index,K.j=!q.sN,K.S="emsg"),q=z.info.Y.info,K=z.Vk(),g.lt(q)?t0(K,1701671783):q.Jj()&&QT([408125543],307544935,K)));a:if((q=wm(z,Z.policy.Sp))&&TQM(z))D=vQ0(Z,z),Z.X+=D,q-=D,Z.jJ+=q,Z.S=Z.policy.n4?Z.S+q:NaN;else{if(Z.policy.nE){if(K=v=Z.wr.gS(g.FM(z),1),Z.S>=0&&z.info.type!==6){if(Z.policy.n4&&isNaN(Z.Zu)){g.CO(new g.tW("Missing duration while processing previous chunk", z.info.O8()));Z.wr.isOffline()&&!Z.policy.Bl||gQG(Z,z,K);Dp(Z,"m");break a}var Y=v-Z.S,X=Y-Z.X,S=z.info.rr,T=Z.c7?Z.c7.rr:-1,f=Z.NB,h=Z.Zu,m=Z.policy.uE&&Y>Z.policy.uE,J=Math.abs(X)>10,d=Math.abs(Z.S-K)<1E-7;if(Math.abs(X)>1E-4){Z.tG+=1;var G=(b=Z.W)==null?void 0:MV(b);b={audio:""+ +Z.WN(),sq:S.toFixed(),sliceStart:v,lastSq:T.toFixed(),lastSliceStart:f,lastSliceDuration:h,totalDrift:(Y*1E3).toFixed(),segDrift:(X*1E3).toFixed(),skipRewrite:""+ +(m||J)};if(G==null?0:G.length)b.adCpn=G[0];Z.wr.handleError("qoe.avsync", b);Z.s$=S}m||J||d||(K=Z.S);b=vQ0(Z,z,v);q-=b;Z.X=Y+b;Z.policy.S&&(X&&!d||b)&&(Y=(D=Z.W)==null?void 0:MV(D),Z.wr.pN("discontinuityRewrite",{adCpn:(Y==null?0:Y.length)?Y.join("."):"",itag:z.info.Y.info.itag,sq:z.info.rr,originalStartTime:v,rewrittenStartTime:K,startTimeAdjustment:K-v,segDrift:(X*1E3).toFixed(),originalDuration:q+b,rewrittenDuration:q,durationAdjustment:b}))}}else K=isNaN(Z.S)?z.info.startTime:Z.S;gQG(Z,z,K)&&(Z.jJ+=q,Z.S=K+q,Z.policy.CC&&Z.tG>=Z.policy.CC&&(Z.tG=0,Z.wr.k6({resetForRewrites:"count"})))}Z.c7= z.info;Z.Zu=ec(z);z.S>=0&&(Z.NB=z.S);if(r&&Z.W){r=Ya4(Z,!0);Pz(z.info,r);Z.Y&&Pz(Z.Y.info,r);Q=g.n(Q);for(D=Q.next();!D.done;D=Q.next())D=D.value,b=void 0,Z.policy.K&&D.rr!==((b=Z.W)==null?void 0:b.KM)||Pz(D,r);(z.info.W||Z.Y&&Z.Y.info.W)&&z.info.type!==6||(Z.SJ=r,Z.policy.NB?(Q=Xgd(Z.W),Z.wr.Cq(Z.K,r,Q)):(Q=Z.wr,Q.kh.isManifestless&&SaM(Q,r,null,!!Z.K.info.video)),Z.policy.YE||$10(Z))}}rRn(Z,z);Z.timestampOffset&&XdW(z,Z.timestampOffset)}; Yz=function(Z,Q){if(Q.info.W){Z.qB=Q.info;if(Z.W){var z=Z.W,K=Ya4(Z,!1);z=Xgd(z);Z.wr.Cq(Z.K,K,z);Z.SJ||Z.policy.YE||$10(Z);Z.SJ=null}vl(Z)}Z.T&&oiu(Z.T,Q);if(K=Z.vS())if(K=g.tt(K,Q,Z.policy.tR)){Z.j.pop();Z.j.push(K);return}Z.j.push(Q)}; Xgd=function(Z){if(Z.xF()){var Q=Z.data["Stitched-Video-Id"]?Z.data["Stitched-Video-Id"].split(",").slice(0,-1):[],z=MV(Z),K=[];if(Z.data["Stitched-Video-Duration-Us"])for(var b=g.n(Z.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),q=b.next();!q.done;q=b.next())K.push((Number(q.value)||0)/1E6);b=[];if(Z.data["Stitched-Video-Start-Frame-Index"]){q=g.n(Z.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var r=q.next();!r.done;r=q.next())b.push(Number(r.value)||0)}b=[]; if(Z.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(q=g.n(Z.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),r=q.next();!r.done;r=q.next())b.push((Number(r.value)||0)/1E6);Z=new k9n(Q,z,K,b,g.SsG(Z),g.$5f(Z))}else Z=null;return Z}; vl=function(Z){Z.Y=null;Z.P7=-1;Z.U=0;Z.W=null;Z.KN=NaN;Z.jJ=0;Z.SJ=null}; Dp=function(Z,Q){Q={rst4disc:Q,cd:Z.X.toFixed(3),sq:Z.c7?Z.c7.rr:-1};Z.S=NaN;Z.X=0;Z.s$=-1;Z.c7=null;Z.NB=NaN;Z.Zu=NaN;Z.Du=null;Z.wr.pN("mdstm",Q)}; rRn=function(Z,Q){if(Z.K.info.NR){if(Q.info.Y.info.Jj()){var z=new el(Q.Vk());if(EJ(z,[408125543,374648427,174,28032,25152,20533,18402])){var K=ZE(z,!0);z=K!==16?null:qo(z,K)}else z=null;K="webm"}else Q.info.T=WS0(Q.Vk()),z=VcD(Q.info.T),K="cenc";z&&z.length&&(z=new Kv(z,K),Z.policy.SY&&g.lt(Q.info.Y.info)&&(K=J7r(Q.Vk()))&&(z.j=K),z.Jj=Q.info.Y.info.Jj(),Q.j&&Q.j.cryptoPeriodIndex&&(z.cryptoPeriodIndex=Q.j.cryptoPeriodIndex),Q.j&&Q.j.j&&(z.Y=Q.j.j),Z.wr.QM(z))}}; $10=function(Z){var Q=Z.W,z=YsM(Q);z&&(z.startSecs+=Z.KN,Z.wr.Er(Z.K,z,Q.KM,Q.xF()))}; Ya4=function(Z,Q){var z,K=Z.W;if(z=YsM(K))z.startSecs+=Z.KN;var b=Z.KN;Z=Q?K.ip:Z.jJ;var q=K.xF()?2:1;return new I6(K.KM,b,Z,K.ingestionTime,"sq/"+K.KM,void 0,void 0,Q,z,q)}; gQG=function(Z,Q,z){if(!YZD(Q,z))return Q=aa(Q.info),Q.smst="1",Z.wr.handleError("fmt.unparseable",Q||{},1),!1;isNaN(Z.KN)&&(Z.KN=z);return!0}; vQ0=function(Z,Q,z){var K=0;if(Q.info.Y.info.Jj()&&!TQM(Q))return 0;if(Z.JG&&!Z.WN()){var b=0;z&&g.lt(Q.info.Y.info)?b=z-Z.S:Q.info.Y.info.Jj()&&(b=Z.X);var q=Q.info.rr;z=wm(Q,Z.policy.Sp);var r=Z.JG;var D=r.s$;r=r.X;var v=Math.abs(r-b)>.02;if((q===D||q>D&&q>Z.s$)&&v){K=Math.max(.95,Math.min(1.05,(z-(r-b))/z));if(g.lt(Q.info.Y.info))hf0(Q.Vk(),K);else if(Q.info.Y.info.Jj()&&(q=b-r,!g.lt(Q.info.Y.info)&&(Q.info.Y.info.Jj(),K=new el(Q.Vk()),D=Q.L?K:new el(new DataView(Q.info.Y.Y.buffer)),wm(Q,!0)))){var Y= q*1E3,X=At(D);D=K.pos;K.pos=0;if(K.Y.getUint8(K.pos)===160||jc(K))if(sX(K,160))if(ZE(K,!0),sX(K,155)){if(q=K.pos,v=ZE(K,!0),K.pos=q,Y=Y*1E9/X,X=z9(K),Y=X+Math.max(-X*.7,Math.min(X,Y)),Y=Math.sign(Y)*Math.floor(Math.abs(Y)),!(Math.ceil(Math.log(Y)/Math.log(2)/8)>v)){K.pos=q+1;for(q=v-1;q>=0;q--)K.Y.setUint8(K.pos+q,Y&255),Y>>>=8;K.pos=D}}else K.pos=D;else K.pos=D;else K.pos=D}K=wm(Q,Z.policy.Sp);K=z-K}K&&Q.info.Y.info.Jj()&&Z.wr.pN("webmDurationAdjustment",{durationAdjustment:K,videoDrift:b+K,audioDrift:r})}return K}; D1X=function(Z){return Z.info.Y.Is()&&Z.info.rr===Z.info.Y.index.h4()}; Sw=function(Z,Q){Q=(Q=Q===void 0?0:Q)?Math.round(Z.timestampOffset*Q)/Q:Z.timestampOffset;Z.K.W&&Q&&(Q+=Z.K.W.Y);return Q+Z.getDuration()}; Tzf=function(Z,Q){Q<0||(Z.j.forEach(function(z){XdW(z,Q)}),Z.timestampOffset=Q)}; il=function(Z,Q,z,K,b){tI.call(this,z,b);var q=this;this.policy=Z;this.formatId=Q;this.JN=K;this.lastError=null;this.qn=function(){q.FI()||(q.JN.X3.has(q.formatId)?(q.isComplete()||q.Y.start(),mn(q.JN,q.formatId)&&q.fn(2),q.JN.Bx(q.formatId)&&(Vl4(q.JN,q.formatId)?q.Q3(4):(q.lastError="net.closed",q.Q3(5)))):(q.lastError="player.exception",q.Q3(5)))}; this.Y=new g.E6(function(){q.isComplete()||(q.lastError="net.timeout",q.Q3(5))},this.policy.Id); this.Y.start();oL0(this.JN,this.formatId,this.qn);g.Ae(this.qn)}; $z=function(Z,Q,z,K){g.O.call(this);var b=this;this.wr=Z;this.policy=Q;this.Y=z;this.timing=K;this.logger=new g.EV("dash");this.S=[];this.P7=[];this.j=this.TW=null;this.Vp=!1;this.tG=this.Du=0;this.K=-1;this.SJ=!1;this.KN=-1;this.JG=this.c7=null;this.jJ=NaN;this.zz={Q$:function(){return b.W}, D0r:function(){return b.S}, IbN:function(){return b.X}}; this.W=new lEn(Z,Q,z);this.policy.Y&&(this.X=new yZ(this.W,this.wr.getManifest(),this.policy,function(q){b.policy.qy&&b.pN("buftl",q)})); this.policy.CN&&(this.U=new F0(this));this.Yq=z.info.Yq;this.T=this.policy.SJ?!1:z.Ux();this.isManifestless=z.Ux();this.L=this.T;g.W(this,this.c7)}; Tb=function(Z,Q,z){z=z===void 0?!1:z;Q&&XW&&Tzf(Z.W,Q.Jr());if(!z){var K;(K=Z.X)==null||GGu(K)}Z.TW=Q;(Q=Z.X)!=null&&(Q.TW=Z.TW)}; fv=function(Z){var Q=Z.TW&&Z.TW.ZM();if(Z.policy.mK){if((Z=Z.X)==null)Z=void 0;else{var z;Z=(z=Z.S)==null?void 0:z.info}return Z||null}return Q}; fdn=function(Z){for(var Q={},z=0;z<Z.P7.length;z++)Q["r"+z]=Z.P7[z];return Q}; hA=function(Z,Q){isNaN(Z.jJ)||Z.pN("aswr",{sq:Q.info.AG[0].rr,id:Q.info.AG[0].Y.info.itag,xtag:Q.info.AG[0].Y.info.Y,ep:Date.now()-Z.jJ});Z.S.push(Q);Z.j=g.x$(Q.info.AG);Z.P7.push(Q.O8());Z.P7.length>4&&Z.P7.shift()}; hp9=function(Z,Q){if(Q.H2()){var z=Q.O9();z=g.n(z);for(var K=z.next();!K.done;K=z.next())K=K.value,Z.policy.S&&Q instanceof il&&Z.pN("omblss",{s:K.info.O8()}),Lv(Z,Q.info.AG,K,Q.PQ())}}; Lv=function(Z,Q,z,K){K=K===void 0?0:K;isNaN(Z.jJ)||(Z.pN("aswm",{sq:Q[0].rr,id:Q[0].Y.info.itag,xtag:Q[0].Y.info.Y,ep:Date.now()-Z.jJ}),Z.jJ=NaN);switch(z.info.type){case 1:case 2:LbG(Z,z);break;case 4:var b=z.info.Y,q=b.D9(z),r;((r=Z.j)==null?0:r.type===4)&&efn(z.info,Z.j)&&(Z.j=b.Pf(Z.j).pop());z=g.n(q);for(b=z.next();!b.done;b=z.next())Lv(Z,Q,b.value,K);break;case 3:z.info.Y.info.video?(b=Z.timing,b.JG||(b.JG=(0,g.Nm)(),du("fvb_r",b.JG,b.Y))):(b=Z.timing,b.K||(b.K=(0,g.Nm)(),du("fab_r",b.K,b.Y))); qa4(Z.W,Q,z,K);Z.policy.Y&&nQG(Z);break;case 6:qa4(Z.W,Q,z,K),Z.j=z.info}}; LbG=function(Z,Q){if(Q.info.type===1)if(Q.info.Y.info.video){var z=Z.timing;z.c7||(z.c7=(0,g.Nm)(),du("vis_r",z.c7,z.Y))}else z=Z.timing,z.X||(z.X=(0,g.Nm)(),du("ais_r",z.X,z.Y));zpn(Z.W,Q);Z=Z.wr;Z.videoTrack.Y.E6()&&Z.audioTrack.Y.E6()&&Z.policy.Y&&!Z.kh.fd&&(Q=Z.audioTrack.getDuration(),z=Z.videoTrack.getDuration(),Math.abs(Q-z)>1&&Z.pN("trBug",{af:""+g.QH(Z.audioTrack.Y.info,!1),vf:""+g.QH(Z.videoTrack.Y.info,!1),a:""+Q,v:""+z}))}; OV=function(Z){return sWn(Z.W)}; nQG=function(Z){Z.S.length?Z.j=g.x$(g.x$(Z.S).info.AG):Z.W.j.length?Z.j=Z.W.vS().info:Z.j=fv(Z)}; nv=function(Z,Q){var z={UA:[],gb:[]},K;if((Z=Z.X)==null)Z=void 0;else{N09(Z,Z.UA,"og");Jdn(Z,Q);N09(Z,Z.UA,"trim");var b=dPu(Z);Q=b.UA;b=b.gj;for(var q=[],r=0;r<b.length;r++){var D=b[r],v=Z.policy.s$&&D.S!==-1?D.S:D.info.startTime,Y={startTicks:(v+Z.timestampOffset)*1E3,pc:(Z.policy.s$&&D.W!==-1?D.W:D.info.duration)*1E3,timescale:1E3},X=void 0,S=(X=Z.TW)==null?void 0:X.Sx();X=void 0;if(Z.policy.KO&&S&&S.length>0){var T=j8(S,v);T>=0&&(X=(S.end(T)-v+.1)*1E3)}q.push({formatId:g.QH(D.info.Y.info,Z.kh.fd), I4:D.info.I4,sequenceNumber:D.info.rr+Z.W,Ez:Y,Vy:D.info.S,iL:X})}Z={UA:Q,gb:q}}return(K=Z)!=null?K:z}; RA=function(Z,Q,z){z=z===void 0?!1:z;if(Z.TW){var K=Z.TW.Sx(),b=vd(K,Q),q=NaN,r=fv(Z);r&&(q=vd(K,r.Y.index.getStartTime(r.rr)));if(b===q&&Z.j&&Z.j.S&&cRn(cl(Z),0))return Q}Z=m14(Z,Q,z);return Z>=0?Z:NaN}; pL=function(Z,Q,z){Z.Y.E6();var K=m14(Z,Q);if(K>=0)return K;var b;(b=Z.X)==null||ydn(b,Q,z);z=Math;K=z.min;b=Z.W;if(b.T)if(b=b.T,b.R3&&b.R3.type===3)b=b.R3.startTime;else if(b.S>0){var q=b.Y.index;q=g.Aj(q.offsets.subarray(0,q.count),b.S*b.chunkSize);b=b.Y.index.getStartTime(q>=0?q:Math.max(0,-q-2))}else b=0;else b=Infinity;Q=K.call(z,Q,b);if(Z.policy.j){var r,D;z=(r=Z.wr.wp())==null?void 0:(D=NK(r,Q))==null?void 0:D.clipId;Z.j=Z.Y.Ou(Q,void 0,z).AG[0]}else Z.j=Z.policy.SJ?null:Z.Y.Ou(Q).AG[0];mK(Z)&& (Z.TW&&Z.TW.abort(),Z.policy.xk&&(r=Z.X)!=null&&(r.S=void 0));Z.tG=0;return Z.j?Z.j.startTime:Q}; a7X=function(Z){Z.T=!0;Z.L=!0;Z.K=-1;pL(Z,Infinity)}; Ig=function(Z){for(var Q=0,z=g.n(Z.S),K=z.next();!K.done;K=z.next())Q+=EhM(K.value.info);return Q+=ARM(Z.W)}; yK=function(Z,Q){Q=Q===void 0?!1:Q;var z=Z.wr.getCurrentTime(),K=Z.W.vS(),b=(K==null?void 0:K.info.M8)||0;Z.policy.K4&&(K==null?0:K.info.Y.Ux())&&!K.info.W&&(b=K.info.eP);if(Z.policy.j&&K&&K.info.clipId){var q,r=(((q=Z.wr.wp())==null?void 0:dF(q,K.info.clipId))||0)/1E3;b+=r}if(!Z.TW)return Z.policy.Y&&Q&&!isNaN(z)&&K?b-z:0;if((q=fv(Z))&&JA(Z,q))return q.M8;r=Z.TW.Sx(!0);if(Q&&K)return q=0,Z.policy.Y&&(q=Y6(r,b+.02)),q+b-z;b=Y6(r,z);Z.policy.yx&&q&&(Q=j8(r,z),r=j8(r,q.eP-.02),Q===r&&(z=q.M8-z,Z.policy.S&& z>b+.02&&Z.pN("abh",{bh:b,bhtls:z}),b=Math.max(b,z)));return b}; IdW=function(Z){var Q=fv(Z);return Q?Q.M8-Z.wr.getCurrentTime():0}; JRD=function(Z,Q){if(Z.S.length){if(Z.S[0].info.AG[0].startTime<=Q)return;P7(Z)}for(var z=Z.W,K=z.j.length-1;K>=0;K--)z.j[K].info.startTime>Q&&z.j.pop();nQG(Z);Z.j&&Q<Z.j.startTime&&(Z.tG=0,Z.Y.E6()?Z.j=Z.Y.Ou(Q,!0).AG[0]:Z.j=null)}; da=function(Z,Q,z,K){if(!Z.Y.index.U9(Q,!0))return!1;try{P7(Z);for(var b=Z.W,q=null,r=b.j.length-1;r>=0;r--){var D=b.j[r];D.info.rr>=Q&&(b.j.pop(),b.S-=wm(D,b.policy.Sp),q=D.info)}q&&(b.L=b.j.length>0?b.j[b.j.length-1].info:b.Du,b.j.length!==0||b.L||Dp(b,"r"));b.wr.pN("mdstm",{rollbk:1,itag:q?q.Y.info.itag:"",popped:q?q.rr:-1,sq:Q,lastslc:b.L?b.L.rr:-1,lastfraget:b.S.toFixed(3)});if(Z.policy.Y)return Z.j=null,!0;K>z?pL(Z,K):Z.j=Z.Y.TU(Q-1,!1).AG[0]}catch(v){return Q=it(v),Q.details.reason="rollbkerr", Z.wr.handleError(Q.errorCode,Q.details,Q.severity),!1}return!0}; Gb=function(Z,Q){var z;for(z=0;z<Z.S.length&&Q!==Z.S[z];z++);if(z===Z.S.length)Ns(Z,Q);else{for(;z<Z.S.length;)Ns(Z,Z.S.pop());var K=Pu(Z);K&&K.Y.cL()&&ih(Q.info.AG,function(b){return wNW(b,K)})?(Z.j=K,Z.policy.S&&Z.pN("cer",{lsr:"lsp", lsp:K.O8()})):(No(Q.info.AG[0])?(Z.j=Q.tN&&Q.tN.S?t5r(Q.tN.S):x5f(Q.info.AG[0]),Z.policy.S&&Z.pN("cer",{lsr:Z.j.O8(),lsp:K==null?void 0:K.O8()})):(Z.j=null,Z.policy.S&&Z.pN("cer",{lsr:"null",lsp:K==null?void 0:K.O8()})),Z.wr.isOffline()&&!Z.policy.Bl||Ns(Z,Q,!0))}}; JA=function(Z,Q){if(!Q)return!1;if(Z.policy.j){var z;if((Z=(z=Z.wr.wp())==null?void 0:iH(z))&&Q.clipId!==Z)return!1}return Q.sN()}; mK=function(Z){var Q;!(Q=Z.Y.info.Gf==="f")&&(Q=Z.policy.W)&&(Q=Z.W,Q=!!Q.T&&Ex(Q.T));if(Q)return!0;Q=fv(Z);if(!Q)return!1;var z=JA(Z,Q)&&Q.W;return Z.isManifestless&&Z.KN>0?z||Q.rr>=Z.KN:z}; ag=function(Z){var Q;return mK(Z)||JA(Z,(Q=Z.W.vS())==null?void 0:Q.info)}; cl=function(Z){var Q=[],z=fv(Z);z&&Q.push(z);Q=g.ZI(Q,Z.W.uc());z=g.n(Z.S);for(var K=z.next();!K.done;K=z.next()){K=K.value;for(var b=g.n(K.info.AG),q=b.next(),r={};!q.done;r={yl:void 0},q=b.next())r.yl=q.value,K.T5&&(Q=g.jr(Q,function(D){return function(v){return!efn(v,D.yl)}}(r))),(No(r.yl)||r.yl.type===4)&&Q.push(r.yl)}Z.j&&!ohn(Z.j,g.x$(Q),Z.j.Y.Is())&&Q.push(Z.j); return Q}; cRn=function(Z,Q){if(!Z.length)return!1;for(Q+=1;Q<Z.length;Q++)if(!B8r(Z[Q-1],Z[Q]))return!1;return!0}; m14=function(Z,Q,z){z=z===void 0?!1:z;if(!Z.j||!Z.j.S)return NaN;Z=cl(Z);a:{Q+=.02;var K=z;K=K===void 0?!1:K;for(var b=-1,q=0;q<Z.length;++q){var r=Z[q];if(r.eP<=Q)if(K)b=q;else if(r.startTime+r.duration>=Q){Q=q;break a}}Q=b}return Q<0?NaN:cRn(Z,z?Q:0)?Z[Q].startTime:NaN}; Pl=function(Z){return!(!Z.j||Z.j.Y===Z.Y)}; yRD=function(Z){return Pl(Z)&&Z.Y.E6()&&Z.j.Y.info.Yq<Z.Y.info.Yq}; d1W=function(Z,Q,z){if(Z.policy.K4)return yK(Z,!0)<z;var K=Pu(Z);return K&&!JA(Z,K)?K.M8>Q&&K.M8<Q+z:!1}; Pu=function(Z){var Q=Z.W.vS();return Q?Q.info:fv(Z)}; YXM=function(Z,Q){var z;return!((z=Z.X)==null||!z.L.has(Q))||ZDM(Z.W,Q)}; P7=function(Z){for(var Q=g.n(Z.S),z=Q.next();!z.done;z=Q.next())Ns(Z,z.value);Z.S=[];Z.j=null}; Rg=function(Z){var Q;(Q=Z.X)==null||GGu(Q)}; Nzf=function(Z,Q,z){Q.T5&&((z===void 0?0:z)||!Q.info.AG[0].Y.cL())&&(Z.logger.debug(function(){return"Rolling back request with segNum "+Q.info.AG[0].rr}),jW9(Z.W))}; Ns=function(Z,Q,z){Nzf(Z,Q,z===void 0?!1:z);Q.dispose()}; GiM=function(Z){return!!Z.j&&Z.j.rr!==-1&&Z.j.rr<Z.Y.index.pC()}; iD9=function(Z){var Q=Z.j;Q&&Q.rr===-1&&(Z=Z.W.vS())&&No(Z.info)&&(Z=Z.info.rr,Q.L="updateLastSliceRequested",Q.rr=Z)}; adD=function(Z){return ih(Z.S,function(Q){return Q.hE})}; PI0=function(Z,Q){Z.j&&(Z.j.Y=Q)}; Cv=function(Z,Q){return Z.TW?DR(Z.TW.Sx(),Q):!0}; pv=function(Z){var Q=OV(Z);Z=Z.wr.wp();return Q&&Z&&Q.info.clipId&&!Rp4(Z,Q.info.clipId)?!0:!1}; Hl=function(Z){var Q;return!((Q=OV(Z))==null||!Q.isLocked)}; CIG=function(Z,Q){var z=OV(Z);return z&&z.info.type!==6?!Xzd(Q,Z,z.info.rr):!1}; pg0=function(Z){var Q=fv(Z),z,K=(z=Z.TW)==null?void 0:z.Sx();z=NaN;Q&&K&&mK(Z)&&(z=vd(K,(Q.eP+Q.M8)/2));return!isNaN(z)}; HDd=function(Z){if((Z=Z.X)==null)Z=void 0;else if(Z.UA.length===0||Z.policy.Zt&&Z.Y<0)Z=null;else{var Q=Z.UA[Z.Y]?Z.UA[Z.Y].formatId:null;Z=Q?(Z=Z.kh.S.get(LQ(Q)))?Z.info:null:null}return Z||null}; M29=function(){this.FF=!1}; U1r=function(Z){var Q=Z===void 0?{}:Z;Z=Q.hasSubfragmentedFmp4===void 0?!1:Q.hasSubfragmentedFmp4;Q=Q.QC===void 0?!1:Q.QC;var z=new M29;z.FF=Z||Q;return z}; g.ODu=function(Z){this.B7=Z;this.X=new M29;this.Ws=this.gM=!1;this.yB=2;this.tG=20971520;this.Qp=8388608;this.P7=120;this.lG=this.uP=this.sD=2;this.uw=this.Y3=!1;this.sj=1E3;this.sA=15;this.yF=1;this.U=1.15;this.jJ=1.05;this.kZ=1;this.Om=this.Uv=!1;this.zT=6;this.S=!1;this.dk=100;this.Yi=10;this.Ca=6;this.CM=!1;this.AV=1;this.T0=this.N8=!1;this.R4=2;this.nE=this.DH=!1;this.X7=!0;this.Vr=this.F7=this.kz=this.DI=this.zJ=!1;this.Sb=!0;this.dI=!1;this.W="";this.LK=[];this.f$=this.Bs=this.CN=!1;this.k8= 0;this.bY="";this.Il=this.wM=this.HK=this.qy=this.zb=this.J6=this.K=this.Jl=this.tV=this.dl=this.Y=this.xA=this.qB=this.JG=this.xk=this.mK=this.Vp=this.j=this.YE=!1;this.aC=!0;this.Ps=this.K4=this.T_=this.S5=this.L=this.s$=!1;this.Zu=!0;this.bG=this.Og=this.ex=this.fL=this.ew=this.JC=this.KO=this.N_=this.gq=this.V6=this.SJ=this.Ju=this.NB=this.WS=this.KN=!1;this.YJ=this.B7.V("html5_trigger_loader_long_poll_on_sabr_backoff");this.BK=this.B7.V("html5_trigger_fallback_count_from_probe");this.hP=g.Xp(this.B7.experiments, "html5_min_readbehind_secs");this.Xb=g.Xp(this.B7.experiments,"html5_min_readbehind_cap_secs");this.Bl=this.B7.V("html5_offline_reset_media_stream_on_unresumable_slices");this.Yq=NaN;this.VR=Ms(this,"html5_request_size_min_kb",64)*1024;this.Du=2097152;this.zq=Ms(this,"html5_bypass_contention_secs");this.uG=1048576;this.y7=Ms(this,"html5_repredict_interval_ms",1800);this.Bn=Ms(this,"html5_head_miss_secs",5);this.qX=Ms(this,"html5_min_upgrade_health_secs",10);this.Gv=Ms(this,"html5_min_seconds_between_format_selections", 8);this.dU=Ms(this,"html5_max_buffer_health_for_downgrade_secs",15);this.Db=xQ;this.L4=g.Xp(this.B7.experiments,"html5_min_startup_buffered_media_duration_secs");this.Hs=g.Xp(this.B7.experiments,"html5_post_interrupt_readahead");this.bH=this.B7.V("html5_allow_onesie_for_ssap");this.Am=this.B7.V("html5_disable_classic_alr");this.dM=g.Xp(this.B7.experiments,"html5_probe_primary_delay_base_ms")||5E3;this.St=Ms(this,"html5_ssdai_failure_retry_limit",3);this.Q0=this.B7.experiments.XI("html5_clone_original_for_fallback_location"); this.kL=g.Xp(this.B7.experiments,"html5_subsegment_readahead_target_buffer_health_secs");this.Dt=g.Xp(this.B7.experiments,"html5_subsegment_readahead_timeout_secs");this.Cl=g.Xp(this.B7.experiments,"html5_subsegment_readahead_min_buffer_health_secs");this.Em=g.Xp(this.B7.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");this.QZ=g.Xp(this.B7.experiments,"html5_subsegment_readahead_min_load_speed");this.PK=g.Xp(this.B7.experiments,"html5_subsegment_readahead_load_speed_check_interval"); this.YO=g.Xp(this.B7.experiments,"html5_subsegment_readahead_seek_latency_fudge");this.o0=Ms(this,"html5_hopeless_secs",15);this.bu=this.B7.V("html5_restrict_streaming_xhr_on_sqless_requests");this.RN=g.Xp(this.B7.experiments,"html5_max_headm_for_streaming_xhr");this.g5=this.B7.V("html5_pipeline_manifestless_allow_nonstreaming");this.rA=this.B7.V("html5_prefer_server_bwe3");this.SH=this.B7.V("html5_last_slice_transition");this.vT=this.B7.V("html5_store_xhr_headers_readable");this.uE=g.Xp(this.B7.experiments, "html5_max_drift_per_track_secs");this.pO=this.B7.V("html5_no_placeholder_rollbacks");this.Dd=this.B7.V("html5_subsegment_readahead_enable_mffa");this.yk=this.B7.V("html5_allow_video_keyframe_without_audio");this.SY=this.B7.V("html5_enable_vp9_fairplay");this.w5=1048576;this.d5=this.B7.V("html5_woffle_resume");this.FN=this.B7.V("html5_abs_buffer_health");this.Yb=this.B7.V("html5_interruption_resets_seeked_time");this.MX=g.Xp(this.B7.experiments,"html5_max_live_dvr_window_plus_margin_secs")||46800; this.hV=this.B7.V("html5_log_additional_source_buffer_updates");this.Hn=this.B7.V("html5_report_captions_ctmp_qoe");this.Zb=this.B7.V("html5_explicitly_dispose_xhr");this.tR=!this.B7.V("html5_encourage_array_coalescing");this.Ce=this.B7.V("html5_restart_on_unexpected_detach");this.tB=this.B7.V("html5_filter_non_efficient_formats_for_safari");this.B7.V("html5_format_hybridization");this.O_=this.B7.V("html5_abort_before_separate_init");this.fq=FJ();this.AF=this.B7.V("html5_serialize_server_stitched_ad_request"); this.ZY=this.B7.V("html5_skip_buffer_check_seek_to_head");this.v2=this.B7.V("html5_attach_po_token_to_bandaid");this.XU=g.Xp(this.B7.experiments,"html5_max_redirect_response_length")||8192;this.n4=this.B7.V("html5_rewrite_timestamps_for_webm");this.Sp=this.B7.V("html5_only_media_duration_for_discontinuities");this.yE=g.Xp(this.B7.experiments,"html5_resource_bad_status_delay_scaling")||1;this.B7.V("html5_onesie_live");this.pm=this.B7.V("html5_onesie_premieres");this.HD=this.B7.V("html5_drop_onesie_for_live_mode_mismatch"); this.Qx=g.Xp(this.B7.experiments,"html5_onesie_live_ttl_secs")||8;this.j5=g.Xp(this.B7.experiments,"html5_attach_num_random_bytes_to_bandaid");this.Id=g.Xp(this.B7.experiments,"html5_onesie_request_timeout_ms")||3E3;this.IJ=this.B7.V("html5_update_container_type_on_codec_family_change")||this.B7.V("html5_use_update_container_type_codec_family");this.iC=this.B7.V("html5_dont_call_change_type_on_updating");this.lI=this.B7.V("html5_apply_ssap_slice_info_adjustment");this.ih=this.B7.V("html5_enable_sabr_host_fallback"); this.Al=this.B7.V("html5_ssap_enable_legacy_browser_logic");this.k7=this.B7.V("html5_ssap_enable_delay_init");this.Zz=this.B7.V("html5_gapless_fallback_on_append_error");this.RO=this.B7.V("html5_shorts_stop_request_when_buffer_to_end");this.Sn=this.B7.V("html5_vod_stop_request_when_buffer_to_end");this.c7=this.B7.V("html5_ssdai_use_post_for_media")&&this.B7.V("gab_return_sabr_ssdai_config");this.jn=this.B7.V("html5_use_post_for_media");this.IW=this.B7.V("html5_use_live_ump_heartbeat");this.useUmp= this.B7.V("html5_use_ump");this.bC=this.B7.y7;this.s4=this.B7.V("html5_reset_primary_stats_on_redirector_failure");this.mS=this.B7.V("html5_remap_to_original_host_when_redirected");this.K8=this.B7.V("html5_sabr_support_quality_constraints");this.JM=this.B7.V("html5_sabr_remove_all_quality_constraints");this.eH=this.B7.V("html5_iterative_seeking_buffered_time");this.u7=this.B7.V("html5_use_network_error_code_enums");this.U2=this.B7.V("html5_disable_overlapping_requests");this.enableServerDrivenRequestCancellation= this.B7.V("html5_enable_server_driven_request_cancellation");this.VC=this.B7.V("html5_enable_sabr_request_timing");this.Pg=this.B7.V("html5_enable_server_format_filter");this.Rd=this.B7.V("html5_enable_lawnmower");this.NU=this.B7.aT()?g.Xp(this.B7.experiments,"html5_continuous_goodput_probe_interval_ms"):0;this.jH=g.Xp(this.B7.experiments,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN;this.gU=this.B7.V("html5_live_defrag_only_h264_playbacks");this.wU=this.B7.V("html5_live_defrag_only_h264_formats"); this.Rv=this.B7.V("html5_record_now");this.Xw=g.Xp(this.B7.experiments,"html5_drm_byterate_soft_cap");this.lc=g.Xp(this.B7.experiments,"html5_drm_live_byterate_soft_cap");this.T=this.B7.V("html5_sabr_log_request_creation");this.MN=this.B7.V("html5_use_buffer_timeline_for_sabr_request_creation");this.De=this.B7.V("html5_sabr_report_request_cancellation_info");this.Yt=this.B7.V("html5_spoof_4k");this.G7=Ms(this,"html5_min_media_duration_for_cabr_slice");this.m2=Ms(this,"html5_sabr_min_media_bytes_factor_to_append_for_stream")|| .01;this.s2=this.tR?0:Ms(this,"html5_min_media_duration_for_append_prop");this.BR=this.B7.V("html5_remove_defrag_without_frame_level_streaming");this.aN=this.B7.V("html5_consume_all_buffered_bytes_one_poll");this.p8=this.B7.V("html5_disable_urgent_adaptation");this.KP=this.B7.V("html5_apply_constraints_in_client_for_sabr");this.GB=this.B7.V("html5_send_video_playback_ustreamer_config");this.CC=Ms(this,"html5_max_discontinuity_rewrite_count");this.eb=Ms(this,"html5_fixed_media_duration_for_request"); this.rj=this.B7.V("html5_apply_fix_for_missing_seg_info_without_logger");this.Q7=Ms(this,"html5_sabr_request_limit_per_period");this.A4=this.B7.V("html5_sabr_live_partial_segment");this.FB=this.B7.V("html5_sabr_dispose_media_objects");this.Sc=this.B7.V("html5_fix_hbr_reselection_qoe_restart_for_sabr");this.OM=this.B7.V("html5_enable_d6de4");this.ir=this.B7.V("html5_ssap_keep_only_ssap_eos_check");this.B7.V("html5_high_res_seek_logging");this.p9=this.B7.V("html5_disable_chunk_synchronization_sabr_seek"); this.Gc=this.B7.V("html5_enable_ssap_multi_audio_format_filtering");this.iG=g.Xp(this.B7.experiments,"html5_override_micro_discontinuities_threshold_ms");this.hm=this.B7.V("defer_slice_processing_on_healthy_buffer_sabr");this.N0=this.B7.V("html5_byterate_constraints");this.UH=this.B7.V("html5_refactor_sabr_audio_format_selection_logging");this.b6=this.B7.V("enable_sabr_snackbar_message");this.B7.V("html5_reinit_source_buffer_by_new_element");this.QO=this.B7.V("html5_refactor_sabr_video_format_selection_logging"); this.Pn=this.B7.V("html5_log_slice_info_in_sbu");this.Ph=Ms(this,"html5_paced_poll_ms");this.jY=Ms(this,"html5_paced_poll_min_health_ms");this.YI=this.B7.V("html5_disable_sabr_fallback");this.Zt=this.B7.V("html5_track_current_buffered_range_at_sync");this.TT=g.Xp(this.B7.experiments,"html5_enable_sps_retry_backoff_ms");this.vk=this.B7.V("html5_sabr_live_timing");this.zc=this.B7.V("html5_sabr_enable_server_xtag_selection");this.x4=this.B7.V("html5_send_detailed_network_type");this.tL=this.B7.V("html5_sabr_skip_client_audio_init_selection"); this.yx=this.B7.V("html5_count_updating_slice_for_buffer_health");this.FT=this.B7.V("html5_report_max_buffer_bytes_limit_to_sabr");this.TB=this.B7.V("html5_sabr_live_audio_early_return_fix");this.PD=g.Xp(this.B7.experiments,"html5_platform_max_buffer_health_oversend_duration_secs");this.l3=this.B7.V("html5_cuepoint_identifier_logging");this.Jc=this.B7.aT()}; aEG=function(Z,Q,z){z=z===void 0?!1:z;Q.video.Y>1080&&!Z.gM&&(Z.tG=36700160,Z.Qp=5242880,Z.Du=Math.max(4194304,Z.Du),Z.gM=!0);Q.video.Y>2160&&!Z.Ws&&(Z.tG=104857600,Z.Yq=13107200,Z.Ws=!0);g.Xp(Z.B7.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?Q.isEncrypted()&&g.kq()&&g.WX("samsung")&&(g.WX("kant")||g.WX("muse"))&&(Z.Yq=g.Xp(Z.B7.experiments,"html5_samsung_kant_limit_max_bitrate")):Q.isEncrypted()&&g.kq()&&g.WX("kant")&&(Z.Yq=1310720);Z.Xw!==0&&Q.isEncrypted()&&(Z.Yq=Z.Xw);Z.lc!==0&&Q.isEncrypted()&& z&&(Z.Yq=Z.lc);Q.Yq&&(Z.uG=Math.max(Z.VR,Math.min(Z.Du,5*Q.Yq)))}; UT=function(Z){return Z.Y&&Z.tV&&Z.playbackStartPolicy}; OT=function(Z){return Z.j||Z.Y&&Z.Pg}; og=function(Z,Q,z,K){Z.tV&&(Z.playbackStartPolicy=Q,Z.Jp=z,Z.BD=K)}; Ms=function(Z,Q,z){z=z===void 0?0:z;return g.Xp(Z.B7.experiments,Q)||z}; oQW=function(Z){var Q=Z===void 0?{}:Z;Z=Q.T0;var z=Q.FF;var K=Q.e$;var b=Q.h4;Q=Q.Ug;this.T0=Z;this.FF=z;this.e$=K;this.h4=b;this.Ug=Q}; VZn=function(Z,Q){if(Q<0)return!0;var z=Z.h4();return Q<z||Q===z&&!Z.T0||Q===z&&(Z=Z.Ug())&&Q===Z.rr?!0:!1}; kGd=function(Z,Q,z){if(!VZn(Z,Q))return 0;if(!Z.FF||!isNaN(z)&&z>0)return 2;if(Q<0)return 1;z=Z.h4();return Q<z||Q===z&&(Z=Z.Ug())&&Q===Z.rr&&!Z.pending?2:1}; Bl=function(Z,Q,z){g.O.call(this);this.wr=Z;this.policy=Q;this.Bh=z;this.j=0;this.Y=!1;this.delay=new g.E6(this.S,this.policy.NU,this);g.W(this,this.delay)}; Bzn=function(Z,Q){LZ(Q.Y)||(Z.zW=Q,Z.j=0,g.lR(Z.delay))}; WbM=function(Z,Q,z,K,b){var q=this;this.wr=Z;this.policy=Q;this.Bh=z;this.zW=K;this.Wl=b;this.done=!1;this.onTimeout=function(){q.done||(q.done=!0,q.onError("net.timeout"))}; this.size=Math.ceil(Math.min(1E5,.1*TK(this.Bh)));this.timing=new VZ(this,{Bh:this.Bh,HO:this.size,AR:!0,Hz:function(){}, LA:this.policy.S});Z=T9(this.zW,this.Wl,this.policy).pM.clone();fZ(Z);Z.path!=="/videogoodput"&&(Z.path="/videogoodput",Z.url="");this.location=new DE(Z);this.location.set("rn",""+this.timing.requestNumber);this.location.set("range","0-"+(this.size-1));this.xhr=wF(this.location,this.policy.X,this.timing,this.policy.Db,{});setTimeout(this.onTimeout,1E4)}; V2u=function(Z,Q,z){var K=Z.JJ();if(Z.isComplete()||!K||Z.info.zW.Wl(Q,z))return 0;var b=Q.R4;if(!b||K<b)return 0;Z=XM(z,fQ(Z.info.zW,!0,Q));return Z.Y||Z.timedOut||Z.started?0:2}; kiG=function(Z,Q,z){if(!(Q.dM&&Z.isComplete()&&Z.canRetry()&&Z.info.zW.Wl(Q,z))||Z.info.zW.X)return 0;Z=XM(z,fQ(Z.info.zW,!1,Q));return Z.S+Q.dM*Yi(Z,!0)>(0,g.Nm)()?0:1}; Wl=function(Z,Q,z,K,b,q,r,D,v,Y,X,S,T,f){f=f===void 0?null:f;g.O.call(this);var h=this;this.wr=Z;this.policy=Q;this.videoTrack=z;this.audioTrack=K;this.W=b;this.Y=q;this.timing=r;this.L=D;this.schedule=v;this.kh=Y;this.S=X;this.jJ=S;this.F9=T;this.EN=f;this.SJ=!1;this.kp="";this.i7=null;this.tx=NaN;this.P7=!1;this.j=null;this.yr=this.U=NaN;this.Qo=this.K=0;this.logger=new g.EV("dash");this.zz={wz:function(m,J){return h.wz(m,J)}}; this.policy.j5>0&&(this.kp=g.c9(this.policy.j5));this.policy.NU&&(this.X=new Bl(this.wr,this.policy,this.schedule),g.W(this,this.X))}; u94=function(Z,Q,z){var K=Q.j?Q.j.Y.zW:Q.Y.zW;var b=Z.W,q;(q=!Z.policy.mS)||(q=h0(K.Y)===h0(K.S));q?K=!1:(b=XM(b,h0(K.S)),q=6E4*Math.pow(b.W,1.6),(0,g.Nm)()<b.S+q?K=!1:(b.S=(0,g.Nm)(),b.W+=1,K.Y=K.S.clone(),K=!0));K&&Z.wr.pN("hostch",{},!0);if(VK(Z,Q,z)){z=Z.T(Q,z);if(Z.j){var r=z.AG[0].Y.info.id;K=Z.Y;b=z.AG[0].rr;K=b<0&&!isNaN(K.L)?K.L:b;b=Ri(Z.Y,z.AG[0].eP,K);var D=Q===Z.audioTrack?1:2,v=z.AG[0].Y.info.Gf;q=r.split(";")[0];a:{var Y=Z.Y;if(Y.Y){var X=Y.Y.n0.event;if(Y.Y.rr===K){Y=X==="predictStart"? void 0:Y.Y.n0.event;break a}if(Y.Y.rr===K-1){Y=X==="start"||X==="continue"?X:void 0;break a}}Y=void 0}if(Z.policy.c7&&Z.Y.j!==0){var S=Z.j.HR(b,K,r,D,v,Y);K<0&&D===2&&C7(Z.Y,0,0,!0);if(S){var T;r=((T=S.Rs)==null?void 0:T.N7)||"";var f;T=((f=S.Rs)==null?void 0:f.Zy)||-1;Z.wr.pN("sdai",{ssdaiinfo:"1",ds:r,skipsq:T,itag:q,f:v,sg:K,st:b.toFixed(3)});z.W=S}}else if(f=Z.j.JS(b,K,r,D,v,Y),K<0&&D===2&&C7(Z.Y,0,0,!0),f){T={dec_sq:K,itag:q,st:b.toFixed(3)};if(Z.policy.AF&&Q.isRequestPending(K-1)){Z.wr.pN("sdai", {wt_daistate_on_sg:K-1});return}Z.wr.pN("sdai",T);f&&(z.Y=new g.TL(f));Z.policy.S&&(f=z.zW.Qa("id")||"",T=((S=z.Y)==null?void 0:S.get("id"))||"",f!==T&&Z.wr.pN("stmidmismatch",{cid:f,aid:T}))}else Z.Y.j!==5&&Z.wr.pN("sdai",{nodec_sq:K,itag:q,st:b.toFixed(3)})}Z.policy.f$&&z.AG[0].rr!==-1&&z.AG[0].rr<Z.kh.uY&&(z=Q.Y.TU(Z.kh.uY,!1));hA(Q,kz(Z,z));yV(Z.timing);var h;(h=Z.X)==null||Bzn(h,z.zW)}}; VK=function(Z,Q,z){if(Z.policy.J6)return!1;var K;var b=Z.Y,q=((K=Q.j)==null?void 0:K.rr)||-1;b.j===3&&q+1>=b.W?(b.pN("sdai",{haltrq:q+1,est:b.W}),K=!1):K=b.j!==2;if(!K||!ht(Q.j?Q.j.Y.zW:Q.Y.zW,Z.policy,Z.W,Z.wr.SG())||Z.wr.isSuspended&&(!fn(Z.schedule)||Z.wr.Oz))return!1;if(Z.policy.W&&Nk>=5)return g.lR(Z.wr.b5),!1;if(Z.kh.isManifestless){if(Q.S.length>0&&Q.j&&Q.j.rr===-1||Q.S.length>=Z.policy.AV||!Z.policy.g5&&Q.S.length>0&&!Z.policy.X.FF)return!1;if(Q.T)return!Z.kh.isLive||!isNaN(Z.tx)}if(adD(Q))return Z.logger.debug("Pending request with server-selectable format found"), !1;if(!Q.j){if(!Q.Y.E6())return!1;pL(Q,Z.wr.getCurrentTime())}if(OV(Q)&&(Q.vS()!==OV(Q)||Z.wr.isSuspended))return!1;b=(K=Z.policy.zq)&&!Q.S.length&&yK(Q,!0)<Math.min(K,yK(z));K=Q.S.length+z.S.length;q=!Z.policy.U2&&((Q.S.length?Q.S[0].rI():!1)||(z.S.length?z.S[0].rI():!1)||Z.kh.isLive);(b||q)&&--K;if(K+1>=Z.policy.yB)return!1;K=Q.j;if(!K)return!0;K.type===4&&K.Y.E6()&&(Q.j=g.x$(K.Y.Pf(K)),K=Q.j);if(!K.sN()&&!K.Y.x$(K))return!1;q=Z.kh.Da||Z.kh.W;if(Z.kh.isManifestless&&q){q=Q.Y.index.h4();var r=z.Y.index.h4(); q=Math.min(q,r);if(Q.Y.index.lF()>0&&q>0&&K.rr>=q)return Q.KN=q,z.KN=q,!1}if(K.Y.info.audio&&K.type===4||K.sN())return!1;q=!Q.L&&!z.L;if(b=!b)b=K.M8,b=!!(z.j&&!JA(z,z.j)&&z.j.M8<b);r=Q===Z.videoTrack&&Z.policy.JG;return b&&(!Z.kh.isManifestless||z.j&&z.j.M8&&K.M8)&&q&&!r||Z.policy.X7&&!Q.L&&z.L?!1:No(K)&&K.M8>x14(Z,Q)?(x14(Z,Q),!1):(Z=Q.TW)&&Z.isLocked()?!1:!0}; x14=function(Z,Q){var z=Z.Y;z=z.Y?z.Y.n0:null;if(Z.policy.JG&&z)return z.startSecs+z.Nn+15;Q=CL(Z.wr,Q);Z.policy.sA>0&&(z=((0,g.Nm)()-Z.wr.G_)/1E3,Q=Math.min(Q,Z.policy.sA+Z.policy.yF*z));z=Z.wr.getCurrentTime()+Q;return Z.policy.Hs&&(Q=t2d(Z.wr)+Z.policy.Hs,Q<z)?(Z.wr.pN("mrl",{ori:z,mod:Q},!0),Z.policy.Yb&&(Z=Z.wr,z=(0,g.Nm)(),Z.G_=z),Q):z}; Fbn=function(Z,Q,z){if(z!==0){a:if(Q=Q.info,z=z===2,Q.Y)Q=null;else{var K=Q.AG[0];if(Q.range)var b=Ia(Q.range.start,Math.min(4096,Q.S));else{if(Q.j&&Q.j.indexOf("/range/")>=0||Q.zW.Qa("defrag")==="1"||Q.zW.Qa("otf")==="1"){Q=null;break a}b=Ia(0,4096)}b=new Ra([new yT(5,K.Y,b,"createProbeRequestInfo"+K.L,K.rr)],Q.j);b.Wl=z;b.Y=Q.Y;Q=b}Q&&kz(Z,Q)}}; kz=function(Z,Q){Z.wr.HW(Q);var z=EhM(Q),K=Z.wr.YQ();z={Bh:Z.schedule,HO:z,gE:f7u(Z.L,z),lP:dm(Q.AG[0]),AR:LZ(Q.zW.Y),LA:Z.policy.S,Hz:function(r,D){Z.wr.xp(r,D)}}; if(Z.schedule.j.T){var b,q;z.Sy=(((b=Z.videoTrack.Y)==null?void 0:b.info.Yq)||0)+(((q=Z.audioTrack.Y)==null?void 0:q.info.Yq)||0)}Z.i7&&(z.rr=Q.AG[0].rr,z.tx=Q.tx,z.i7=Z.i7);K={tC:lLd(Q,Z.wr.getCurrentTime()),zG:Z.policy.N8&&pQ(Q)&&Q.AG[0].Y.info.video?C7M(Z.S):void 0,Fr:Z.policy.JG,poToken:Z.wr.vH(),Rk:Z.wr.cO(),kp:Z.kp,yr:isNaN(Z.yr)?null:Z.yr,EN:Z.EN,F9:Z.F9,Qo:Z.Qo,AE:K};return new aA(Z.policy,Q,z,Z.W,function(r,D){try{a:{var v=r.info.AG[0].Y,Y=v.info.video?Z.videoTrack:Z.audioTrack;if(!(r.state>= 2)||r.isComplete()||r.JJ()||!(!Z.wr.Tf||Z.wr.isSuspended||yK(Y)>3)){var X=V2u(r,Z.policy,Z.W);X===1&&(Z.P7=!0);Fbn(Z,r,X);if(r.isComplete()||r.FI()&&D<3){if(Z.policy.S){var S=r.timing.Ae();S.rst=r.state;S.strm=r.xhr.nz();S.cncl=r.xhr&&r.Tz.W?1:0;Z.wr.pN("rqs",S)}r.YM&&Z.wr.pN("sbwe3",{},!0)}if(!Z.FI()&&r.state>=2){AtM(Z.timing,r,v);var T=Z.wr;Z.yr&&r.G$&&T&&(Z.yr=NaN,Z.wr.Oe(r.G$),Z.wr.eY(),Z.wr.pN("cabrUtcSeek",{mediaTimeSeconds:r.G$}));r.JD&&Z.yr&&r.JD&&!r.JD.action&&(Z.wr.s1(Z.yr),Z.yr=NaN,Z.wr.pN("cabrUtcSeekFallback", {targetUtcTimeSeconds:Z.yr}));r.nj&&Z.wr.jw(r.nj);Z.policy.IW&&(Z.Qo=r.Qo);if(r.state===3){Gb(Y,r);pQ(r.info)&&uH(Z,Y,v,!0);if(Z.j){var f=r.info.JS();f&&Z.j.a4(r.info.AG[0].rr,v.info.id,f)}Z.wr.MR()}else if(r.isComplete()&&r.info.AG[0].type===5){if(r.state!==4)r.Yz()&&Z.wr.handleError(r.qe(),r.Fw());else{var h=(r.info.AG[0].Y.info.video?Z.videoTrack:Z.audioTrack).S[0]||null;h&&h instanceof aA&&h.JJ()&&h.kP(!0)}r.dispose()}else{r.Yz()||epG(Z,r);var m;((m=r.HE)==null?0:m.itagDenylist)&&Z.wr.hf(r.HE.itagDenylist); if(r.state===4)xz(Z,r),Z.Y&&giX(Z.Y,r.info,Z.j);else if(Z.policy.Db&&r.H2()&&!r.isComplete()&&!xz(Z,r)&&!r.Yz())break a;r.Yz()&&(wgM(Z,r),isNaN(Z.yr)||(Z.wr.s1(Z.yr),Z.yr=NaN));Z.policy.Ph&&!r.isComplete()?tA(Z.wr):Z.wr.MR();var J=kiG(r,Z.policy,Z.W);Fbn(Z,r,J)}}}}}catch(d){D=Z.SJ?1:0,Z.SJ=!0,r=GZ(D),D=it(d,D),Z.wr.handleError(D.errorCode,D.details,D.severity),r||Z.wr.Sm()}},K)}; epG=function(Z,Q){if(Q.hE&&Q.state>=2&&Q.state!==3){var z=Q.xhr.getResponseHeader("X-Response-Itag");if(z){Z.logger.debug(function(){return"Applying streamer-selected format "+z}); var K=Rnn(Z.S,z),b=Q.info.S;b&&(b-=K.Yg(),K.S=!0,Q.info.AG[0].Y.S=!1,Mld(Q,K.In(b)),FW(Z.wr,Z.videoTrack,K),PI0(Z.videoTrack,K),Z.wr.pT(K.info.video.quality),(b=Q.PQ())&&K.info.lastModified&&K.info.lastModified!==+b&&Gb(Z.videoTrack,Q))}else Q.hE=!1}}; wgM=function(Z,Q){var z=Q.info.AG[0].Y,K=Q.qe();if(LZ(z.zW.Y)){var b=g.LG(Q.Fl(),3);Z.wr.pN("dldbrerr",{em:b||"none"})}b=Q.info.AG[0].rr;var q=Ri(Z.Y,Q.info.AG[0].eP,b);K==="net.badstatus"&&(Z.K+=1);if(Q.canRetry()&&ew(Z.wr)){if(!(Q.info.zW.j>=Z.policy.St&&Z.j&&Q.info.isDecorated()&&K==="net.badstatus"&&Z.j.wi(q,b))){b=(z.info.video&&z.zW.j>1||Q.Xl===410||Q.Xl===500||Q.Xl===503)&&!(Ox(Z.S.L).size>0)&&!LZ(z.zW.Y);q=Q.Fw();var r=z.info.video?Z.videoTrack:Z.audioTrack;b&&(q.stun="1");Z.wr.handleError(K, q);Z.FI()||(b&&(Z.logger.debug(function(){return"Stunning format "+z.info.id}),uv(Z.S,z)),Gb(r,Q),Z.wr.MR())}}else r=1,Z.j&&Q.info.isDecorated()&&K==="net.badstatus"&&Z.j.wi(q,b)&&(r=0),Z.kh.isLive&&Q.qe()==="net.badstatus"&&Z.K<=Z.policy.Yi*2?(lR0(Z.kh),Z.kh.Da||Z.kh.isPremiere?UV(Z.wr,0,{s8:"badStatusWorkaround"}):Z.kh.W?UV(Z.wr,Z.kh.Vp,{s8:"badStatusWorkaround", gS:!0}):wa(Z.wr)):Z.wr.handleError(K,Q.Fw(),r)}; xz=function(Z,Q){if(Z.policy.useUmp&&Q.FI())return!1;try{var z=Q.info.AG[0].Y,K=z.info.video?Z.videoTrack:Z.audioTrack;if(Z.kh.isManifestless&&K){Z.K=0;K.T&&(Q.FI(),Q.isComplete()||Q.H2(),K.T=!1);Q.MJ()&&Z.wr.mp.IF(1,Q.MJ());var b=Q.lF(),q=Q.TP();hR(Z.kh,b,q)}if(Q.info.lP()&&!CQ(Q.info))for(var r=g.n(Q.O9()),D=r.next();!D.done;D=r.next())LbG(K,D.value);for(Z.wr.getCurrentTime();K.S.length&&K.S[0].state===4;){var v=K.S.shift();hp9(K,v);K.Du=v.FG()}K.S.length&&hp9(K,K.S[0]);var Y=!!OV(K);Y&&Q instanceof il&&(z.info.WN()?ZQX(Z.timing):san(Z.timing));return Y}catch(X){Q=Q.Fw();Q.origin="hrhs";a:{Z=Z.wr;z=X;if(z instanceof Error){Q.msg||(Q.msg=""+z.message);Q.name||(Q.name=""+z.name);if(z instanceof g.tW&&z.args)for(K=g.n(Object.entries(z.args)),b=K.next();!b.done;b=K.next())q=g.n(b.value),b=q.next().value,q=q.next().value,Q["arg"+b]=""+q;g.CO(z);if(z.level==="WARNING"){Z.Iu.k6(Q);break a}}Z.handleError("fmt.unplayable",Q,1)}return!1}}; EQM=function(Z){var Q=Z.videoTrack.Y.index;Z.i7=new oQW({T0:Z.policy.T0,FF:Z.policy.X.FF,e$:Q.Ge(),h4:function(){return Q.h4()}, Ug:function(){return Q.Ug()}})}; uH=function(Z,Q,z,K){if(!(z.E6()||z.jg()||z.S||!ht(z.zW,Z.policy,Z.W)||z.info.Gf==="f"||Z.policy.Y)){if(K){K=Z.L;var b=z.info;K=he0(K,b.video?K.policy.sD:K.policy.uP,b.Yq)}else K=0;K=z.In(K);Z=kz(Z,K);CQ(K)&&hA(Q,Z);z.S=!0}}; ET=function(Z,Q,z,K,b,q,r,D){g.O.call(this);var v=this;this.wr=Z;this.RW=Q;this.videoTrack=z;this.audioTrack=K;this.kh=b;this.U=q;this.isAudioOnly=r;this.T=D;this.j=UK;this.P7=!1;this.logger=new g.EV("sabr");this.X=this.SJ=this.jJ=!1;this.videoInfos=this.L=this.U.videoInfos;this.S=this.JG=this.U.Y;this.Y=new MG(Q,q,function(Y,X){v.wr.pN(Y,X)}); this.RW.tL||ldn(this);this.isAudioOnly&&sMW(this,this.kh.Y["0"])}; Znr=function(Z,Q){var z=[];Q=g.n(Q);for(var K=Q.next();!K.done;K=Q.next())z.push(g.QH(K.value,Z.kh.fd));return z}; sMW=function(Z,Q,z){Q!==Z.W&&(Z.W&&(Z.P7=!0),Z.W=Q,Z.Gi(Q,Z.videoTrack,z))}; Kjr=function(Z,Q){Z.logger.debug("setConstraint: "+KZ(Q));OT(Z.RW)&&(Z.SJ=Q.reason==="m"||Q.reason==="l"?!0:!1);Q.reason==="m"?Q.isLocked()&&QM4(Z,Q.Y):zsD(Z,Q)?$O(Z,Q.j,Q.Y):Z.videoInfos=Z.L;Z.j=Q}; zsD=function(Z,Q){return Z.RW.K8&&Q.reason==="b"||Z.RW.JM?!1:Z.RW.KP?!0:Q.reason==="l"||Q.reason==="b"||Q.reason==="o"}; bnW=function(Z,Q){return Q.isLocked()&&Z.Y.j||Z.j===void 0?!1:Q.Tg(Z.j)}; q_W=function(Z,Q){var z,K=(z=Z.W)==null?void 0:z.info.video.Y;return Z.P7?!0:Z.W?Q!==K?!0:!Z.Y.j||Z.RW.Sc&&Z.Y.Y===Z.W.info.itag?!1:!0:!1}; QM4=function(Z,Q){var z=Z.Y.Y;if(z){Z.videoInfos=Z.L;var K=g.Fm(Z.videoInfos,function(b){return b.id===z}); K&&K.video.Y===Q?Z.videoInfos=[K]:(K=Z.videoInfos.map(function(b){return b.id}),Z.wr.pN("sabrpf",{pfid:""+z, vfids:""+K.join(".")}),$O(Z,Q,Q),oi(Z.Y,""))}else $O(Z,Q,Q)}; $O=function(Z,Q,z){Z.videoInfos=Z.L;Z.videoInfos=g.jr(Z.videoInfos,function(K){return K.video.Y>=Q&&K.video.Y<=z})}; ldn=function(Z){var Q=$oX(Z.Y,Z.T);Q&&(Z.S=[Q])}; rC9=function(Z,Q,z){if(Z.RW.tL){if(Z.T){var K=g.jr(Z.S,function(b){return b.id===Z.T}); return Tm(K,z).includes(Q)}K=g.jr(Z.S,function(b){var q;return!((q=b.Qw)==null||!q.isDefault)}); if(K.length>0)return Tm(K,z).includes(Q)}return Tm(Z.S,z).includes(Q)}; Tm=function(Z,Q){return Z.map(function(z){return LQ(g.QH(z,Q))})}; AC4=function(Z){var Q;if((Q=Z.j)==null?0:Q.isLocked())return Z.videoInfos;var z=Ox(Z.Y);Q=g.jr(Z.videoInfos,function(K){return K.Yq>Z.RW.Yq?!1:!z.has(K.id)}); SXG(Z.Y)&&(Q=g.jr(Q,function(K){return K.video.width<=854&&K.video.height<=480})); return Q}; vaW=function(Z,Q,z,K){var b=Z.kh,q=Z.Iu.getVideoData(),r=g.V0(q),D=Z.Ql,v=gU({B7:q.N(),Iu:Z.Iu,Ap:Z.Ap,RW:Z.RW,G_:Z.G_,UE:Z.UE,ov:Z.ov,IU:Z.IU,R0:Z.R0,isPrefetch:Z.isPrefetch,rZ:Z.rZ,sabrLicenseConstraint:q.sabrLicenseConstraint,Np:Z.Np,xo:Z.xo,eL:Z.eL,a5:Z.a5,EhY:!!D}),Y=YX(q,Z.AE,Z.nextRequestPolicy,Z.Nr,Z.rB,Z.H0G,Z.UG);K&&z&&(K=Y.m8?Y.m8.map(function(m){return m.type}):[],z("ssap",{stmctxt:K.join("_"), unsntctxt:Y.yX?Y.yX.join("_"):""}));K=Z.Un;var X=Z.YK;if(X===void 0&&K===void 0){var S;X=jMd(b.fd,(S=Z.kC)==null?void 0:S.video);var T;K=jMd(b.fd,(T=Z.kC)==null?void 0:T.audio)}if(q.EN)var f=q.EN;q={Yx:v,gb:Z.gb,Un:K,YK:X,Ql:D,videoPlaybackUstreamerConfig:f,ZJ:Y};Z.Rs&&(q.Rs=Z.Rs);if(r&&Q){r=new Map;var h=g.n(b.c7);for(D=h.next();!D.done;D=h.next())D=D.value,(v=b.tG[pdG(b,D)]||"")?(r.has(v)||r.set(v,[]),r.get(v).push(D)):z&&z("ssap",{nocid4fmt:(D.itag||"")+"_"+(D.lmt||0)+"_"+(D.xtags||"")});b=new Map; h=g.n(Z.UA);for(D=h.next();!D.done;D=h.next())D=D.value,v=D.startTimeMs||0,Y=void 0,S=(Y=Q)==null?void 0:NK(Y,v),Y=S.clipId,S=S.wb,Y?(b.has(Y)||(T=r.get(Y)||[],b.set(Y,{clipId:Y,UA:[],KQ:T})),S!==0&&(D.startTimeMs=v-S),b.get(Y).UA.push(D)):z&&(Y=void 0,z("ssap",{nocid4range:"1",fmt:((Y=D.formatId)==null?void 0:Y.itag)||"",st:v.toFixed(3),d:(D.durationMs||0).toFixed(3),timeline:f1(Q)}));q.zl=[];b=g.n(b.entries());for(r=b.next();!r.done;r=b.next())r=g.n(r.value),r.next(),r=r.next().value,q.zl.push(r); if(Z.UA.length&&!q.zl.length){z&&z("ssap",{nobfrange:"1",br:Dx9(Z.UA),timeline:f1(Q)});return}Z.A5&&(q.A5=Z.A5);Z.G4&&(q.G4=Z.G4)}else q.UA=Z.UA,q.KQ=b.c7,r&&((h=Z.UA)==null?void 0:h.length)>0&&!Q&&z&&z("ssap",{bldmistlm:"1"});return q}; jMd=function(Z,Q){return Q?[g.QH(Q.info,Z)]:[]}; Dx9=function(Z){var Q="";Z=g.n(Z);for(var z=Z.next();!z.done;z=Z.next()){z=z.value;var K=void 0,b=void 0,q=void 0;Q+="fmt."+(((K=z.formatId)==null?void 0:K.itag)||"")+"_"+(((b=z.formatId)==null?void 0:b.lmt)||0)+"_"+(((q=z.formatId)==null?void 0:q.xtags)||"")+";st."+(z.startTimeMs||0).toFixed(3)+";d."+(z.durationMs||0).toFixed(3)+";"}return Q}; hi=function(Z,Q,z){var K=this;this.requestType=Z;this.zW=Q;this.H4=z;this.j=null;this.zz={Org:function(){var b;return(b=K.data)==null?void 0:b.isPrefetch}, rB:function(){var b;return(b=K.data)==null?void 0:b.rB}}}; ed9=function(Z,Q,z){Q=T9(Z.zW,gaW(Z,Q,z),Q);Z.uR()&&Q.set("probe","1");return Q}; gaW=function(Z,Q,z){Z.Wl===void 0&&(Z.Wl=Z.zW.Wl(Q,z));return Z.Wl}; Y_f=function(Z){var Q,z;return((Q=Z.Y)==null?void 0:(z=Q.Yx)==null?void 0:z.Vg)||0}; XZu=function(Z){var Q,z;return!!((Q=Z.Y)==null?0:(z=Q.Yx)==null?0:z.Np)}; S_G=function(Z){var Q={},z=[],K=[];if(!Z.data)return Q;for(var b=0;b<Z.data.UA.length;b++){var q=Z.data.UA[b],r=void 0;z.push("i."+((r=q.formatId)==null?void 0:r.itag)+"_st."+(q.startTimeMs+"_e."+(q.startTimeMs+q.durationMs)+"_d."+q.durationMs)+("_sn."+q.Bk)+("_en."+q.S_))}for(b=0;b<Z.data.gb.length;b++){q=Z.data.gb[b];var D=r=void 0,v=void 0,Y=void 0;K.push("i."+((r=q.formatId)==null?void 0:r.itag)+"_sn."+q.sequenceNumber+"_sl."+(q.I4||NaN)+"_lb."+q.Vy+"_tr.s_"+((D=q.Ez)==null?void 0:D.startTicks)+ "_d_"+((v=q.Ez)==null?void 0:v.pc)+"_t_"+((Y=q.Ez)==null?void 0:Y.timescale)+"_ed_"+q.iL)}Q.ptime=Y_f(Z);Q.rtype=Z.requestType;Q.brl=z.join(";");Q.ps=K.join(";");return Q}; $xd=function(Z){if(Z.lI)return{K7:g.Xp(Z.experiments,"html5_future_encryptor_auto_select_js_max_size_bytes"),CH:g.Xp(Z.experiments,"html5_future_encryptor_auto_select_wasm_max_size_bytes")}}; L1=function(Z,Q){this.Kf=Z;this.cipher=this.Kf.exports.AES128CTRCipher_create(Q.byteOffset)}; n1=function(Z){return function(Q){return{profile:Z,XN:Math.ceil(Q.byteLength/16)}}}; cP=function(Z,Q){this.key=Z;this.subtleCrypto=Q;this.Y=!1}; T5x=function(Z){var Q=globalThis.crypto.subtle;Q=Q===void 0?window.crypto.subtle:Q;return D7(Ad(function(){return Q.importKey("raw",Z,"AES-CTR",!1,["encrypt"]).catch(function(z){return Promise.reject(z.name+": "+z.message)})}),function(z){return new cP(z,Q)})}; mT=function(Z){this.Y=!1;this.j=new Tg(Z)}; IP=function(Z,Q){this.Kf=Z;var z=Z.Xq(Q);this.Y=new L1(Z,z!=null?z:Q);z&&Z.free(z.byteOffset)}; f19=function(Z){g.CO("wasm encryptor failed: "+Z);throw Z;}; Ji=function(Z,Q,z){var K=this;this.key=Z;this.W=this.L=!1;this.K7=32768;this.CH=131072;Q==null||D7(Q,function(b){K.Y=new IP(b,K.key);K.W=b.al}); if(z==null?0:z.CH)this.CH=z.CH;if(z==null?0:z.K7)this.K7=z.K7}; hsG=function(Z,Q,z){Z.j||(Z.j=new mT(Z.key));return v3(Z.j.encrypt(Q,z),f19)}; Lj4=function(Z,Q,z){if(!Z.S){if(!("crypto"in globalThis&&"subtle"in globalThis.crypto))return r0("native encryptor unavailable");Z.S=T5x(Z.key)}return v3(D7(Z.S,function(K){return K.encrypt(Q,z)}),f19)}; yi=function(Z,Q,z){this.Y=Z;this.Kf=Q;this.W=z;this.S=!1;this.iv=(0,g.X0)(nl(16))}; nax=function(Z){Z.j||(Z.j=new Ji(Z.Y.Y,Z.Kf,Z.W));return Z.j}; cC9=function(Z,Q){var z;return g.C(function(K){(0,g.Nm)();z=P$0(Z.Y);return K.return(z.encrypt(Q,Z.iv))})}; mxx=function(Z,Q){var z;return g.C(function(K){(0,g.Nm)();var b=Z.Y;b.W||(b.W=new tkD(b.S));z=b.W;return K.return(w9x(z,Q,Z.iv))})}; I1n=function(Z,Q,z){var K;return g.C(function(b){(0,g.Nm)();K=P$0(Z.Y);return b.return(K.decrypt(Q,z))})}; dH=function(Z){g.O.call(this);var Q=this;this.Yh=Z;this.Y=new Map;this.W=[];this.j=!this.Yh.experiments.XI("html5_disable_trusted_hosts")&&!nR();this.U=g.Xp(this.Yh.experiments,"html5_onesie_prewarm_interval_ms");this.X=new g.E6(this.T,this.U,this);this.K=-1;this.zz={nAg:function(){return Q.Y}, tb7:function(){return Q.L}, Flg:function(){return JCd}}; g.W(this,this.X);j6u(this,g.pS("yt-player-bandaid-host"));this.L=this.load();this.U&&this.L.then(function(){Q.T()})}; j6u=function(Z,Q){var z=Q==null?void 0:Q.primary;Z.S(0,z);z=z?yCd(z):void 0;Z.S(2,z);Z.S(1,Q==null?void 0:Q.secondary)}; Nd=function(Z,Q){return new g.TL("https://"+Q+Z.Yh.zT.baseUrl)}; dxr=function(Z,Q){Z="https://"+h0(Q.location)+"/initplayback?c="+uI(Z.Yh)+"&owc=1";LL(Z,"pw",function(z){z.ht=Q.Y})}; Gm=function(Z,Q,z,K){LL("https://"+Q+"/videoplayback?probe=1",z,function(b){!K.V("html5_onesie_host_racing")||K.videoData.isLivePlayback||K.V("html5_onesie_probe_ec_hosts")||K.MM||K.uA();Z.W.push(b)},function(b){Z.W.push(b.details)})}; yCd=function(Z){return Z.replace(/(\d+)---/g,function(Q,z){Q=Number(z);return(Q===1?2:Q-1)+"---"})}; ig=function(Z,Q){var z,K,b,q,r,D,v,Y;return g.C(function(X){if(X.Y==1){z=Nd(Z,"redirector.googlevideo.com");z.set("alr","yes");z.set("id",""+Math.round(Math.random()*1E5));if(Q===1||Q===2)z.set("cmo=sensitive_content","yes"),z.set("sc","yes");Q===2&&z.set("cmo=td","c.youtube.com");K={format:"RAW",timeout:5E3};return g.P(X,Gr(z.sS(),K),2)}b=X.j;if(b.xhr.status!==200||!b.xhr.responseText)return X.return(Promise.reject(new g.tW("b204258371_no_host",z.sS(),b.xhr.status)));q=new g.TL(b.xhr.responseText); r=h0(q);D=q.get("ms");v=Nd(Z,r);Y=q.get("mm");v.set("ms",D);v.set("mm",Y);return r&&A0x(r)?Q!==2||K7(r)?X.return(v):X.return(Promise.reject(new g.tW("b204258371_untrusted",r,D))):X.return(Promise.reject(new g.tW("b204258371_invalid",r,D)))})}; N50=function(Z){var Q=Z.W;Z.W=[];return Q}; A0x=function(Z){return/.*(\.c\.youtube\.com|.*\.googlevideo\.com)/.test(Z)}; K7=function(Z){var Q=/sn-[^.]*-/;return/.*\.c\.youtube\.com/.test(Z)&&!Q.test(Z)}; GKX=function(Z,Q){this.location=Z;this.Y=Q}; aP=function(Z){this.wj=Z;this.j=!1;this.Y=[]}; RP=function(Z){for(;Z.Y.length&&!Z.Y[0].isEncrypted;){var Q=Z.Y.shift(),z=Q.videoId,K=Q.DL,b=Q.formatId,q=Q.buffer;Q=Q.Sr;if(q)Q=void 0,(Q=PP(Z.wj.nL,z))==null||Ii(Q,K,b,q);else if(Q)Z.wj.nL.pj(z,K,b);else if(K=Z.wj,K.Y[b].LW=!0,z=PP(K.nL,z),z==null?0:z.X3.has(b))z==null||L7(z,b)}}; g.oP=function(Z){this.data=Z;this.Y=0;this.W=!1;this.S=0;this.error=!1;this.register=this.j=0;if(C1.length===0){C1.length=288;C1.fill(8);for(Z=144;Z<280;Z++)C1[Z]=Z<=255?9:7;p1.length=32;p1.fill(5);HP.length=286;HP.fill(0);for(Z=261;Z<285;Z++)HP[Z]=Math.floor((Z-261)/4);Md[257]=3;for(Z=258;Z<285;Z++){var Q=Md[Z-1];Q+=1<<HP[Z-1];Md[Z]=Q}Md[285]=258;for(Z=0;Z<30;Z++)Ur[Z]=Z<=3?0:Math.floor((Z-2)/2);for(Z=Or[0]=1;Z<30;Z++)Q=Or[Z-1],Q+=1<<Ur[Z-1],Or[Z]=Q}Z=100+7*this.data.length;this.data[0]===31&&this.data[1]=== 139&&(Z=(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(Z)}; g.kO=function(Z){for(;!Z.W&&!Z.error;){var Q=Z;Q.W=!!BP(Q,1);switch(BP(Q,2)){case 2:var z=[],K=[];K.length=19;K.fill(0);var b=BP(Q,5)+257;var q=BP(Q,5)+1;for(var r=BP(Q,4)+4,D=0;D<r;D++)K[inG[D]]=BP(Q,3);K=WP(K);for(r=b+q;z.length<r;){D=a14(Q,K);switch(D){case 16:D=z[z.length-1];var v=BP(Q,2)+3;break;case 17:D=0;v=BP(Q,3)+3;break;case 18:D=0;v=BP(Q,7)+11;break;default:v=1}for(;v>0;v--)z.push(D)}z.length!==r?Q.error=!0:(q=z.slice(-q),z.length=b,Pau(Q,z,q));break;case 1:Pau(Q,C1,p1);break;case 0:Vi(Q, Q.Y&7);z=BP(Q,16);b=BP(Q,16);(z^b)!==65535&&(Q.error=!0);Q.output.set(Q.data.subarray(Q.j,Q.j+z),Q.S);Q.j+=z;Q.S+=z;break;default:Q.error=!0}Z.S>Z.output.length&&(Z.output=new Uint8Array(Z.S*2),Z.S=0,Z.j=0,Z.W=!1,Z.Y=0,Z.register=0)}Z.output.length!==Z.S&&(Z.output=Z.output.subarray(0,Z.S));return Z.error?new Uint8Array(0):Z.output}; Pau=function(Z,Q,z){Q=WP(Q);z=WP(z);for(var K=Z.data,b=Z.output,q=Z.S,r=Z.register,D=Z.Y,v=Z.j;;){if(D<15){if(v>K.length){Z.error=!0;break}r|=(K[v+1]<<8)+K[v]<<D;v+=2;D+=16}var Y=Q[r&127];if(Y<0)for(r>>=7;Y<0;)Y=Q[(r&1)-Y],r>>=1;else r>>=Y&15;D-=Y&15;Y>>=4;if(Y<256)b[q++]=Y;else if(Z.register=r,Z.Y=D,Z.j=v,Y>256){r=Md[Y];r+=BP(Z,HP[Y]);v=a14(Z,z);D=Or[v];D+=BP(Z,Ur[v]);if(Rsu&&r<D)D=q-D,b.copyWithin(q,D,D+r);else for(v=q+r,Y=q;Y<v;Y+=4)b[Y]=b[Y-D],b[Y+1]=b[Y-D+1],b[Y+2]=b[Y-D+2],b[Y+3]=b[Y-D+3];q+= r;r=Z.register;D=Z.Y;v=Z.j}else break}Z.S=q}; a14=function(Z,Q){if(Z.Y<7){var z=Z.data,K=Z.j;K>z.length&&(Z.error=!0);Z.register|=(z[K+1]<<8)+z[K]<<Z.Y;Z.j+=2;Z.Y+=16}z=Q[Z.register&127];if(z>=0)return Vi(Z,z&15),z>>4;for(Vi(Z,7);z<0;)z=Q[BP(Z,1)-z];return z>>4}; BP=function(Z,Q){for(;Z.Y<Q;){if(Z.j>=Z.data.length)return Z.error=!0,0;Z.register|=Z.data[Z.j++]<<Z.Y;Z.Y+=8}var z=Z.register&(1<<Q)-1;Z.register>>=Q;Z.Y-=Q;return z}; Vi=function(Z,Q){Z.Y-=Q;Z.register>>=Q}; WP=function(Z){for(var Q=[],z=g.n(Z),K=z.next();!K.done;K=z.next())K=K.value,Q[K]||(Q[K]=0),Q[K]++;var b=Q[0]=0;z=[];var q=0;K=0;for(var r=1;r<Q.length;r++)Q[r]?K=r:Q[r]=0,b=b+Q[r-1]<<1,z[r]=b,r>7&&(q+=Q[r]);for(b=1;b<q;)b<<=1;Q=128;K=new Int16Array(128+(b+K)*2);for(q=0;q<Z.length;q++)if(r=Z[q]){for(var D=z[r]++,v=b=0;v<r;v++)b=b<<1|D>>v&1;D=q<<4|r;if(r<=7)for(v=1<<7-r;v--;)K[v<<r|b]=D;else{v=b&127;r-=7;for(b>>=7;r--;){K[v]||(K[v]=-Q,Q+=2);var Y=b&1;b>>=1;v=Y-K[v]}K[v]=D}}return K}; Ca4=function(Z){var Q,z,K,b,q,r,D;return g.C(function(v){switch(v.Y){case 1:if(!("DecompressionStream"in window))return v.return(g.kO(new g.oP(Z)));Q=new DecompressionStream("gzip");z=Q.writable.getWriter();z.write(Z);z.close();K=Q.readable.getReader();b=new fe([]);case 2:return g.P(v,K.read(),5);case 5:q=v.j;r=q.value;if(D=q.done){v.O$(4);break}b.append(r);v.O$(2);break;case 4:return v.return(b.m9())}})}; ug=function(Z,Q){this.Y=Z;this.Kf=Q}; pZG=function(Z){return v3(v3(Ad(function(){return D7(Z.Kf,function(Q){return Z.XD(Z.Y,Q)})}),function(){return Z.yc(Z.Y)}),function(){return Z.sy(Z.Y)})}; Hnf=function(Z,Q){return pZG(new ug(Z,Q))}; xO=function(Z){$X.call(this,"onesie");this.nL=Z;this.Y={};this.S=!0;this.W=null;this.queue=new aP(this);this.L={};this.K=s$W(function(Q,z){var K=this;return function q(){var r,D,v,Y,X,S,T,f,h,m,J,d,G,R,U,B,e,F,KX,rf;return gWX(q,function(sG){switch(sG.Y){case 1:g.cG(sG,2);K.nL.Ud();r=function(k){return function(l){throw{name:k,message:l};}}; D=Q.m9();g.nX(sG,4,5);if(!z){sG.O$(7);break}return Anx(sG,v3(MYM(K.nL,D,K.iv),r("DecryptError")).wait(),8);case 8:v=sG.j;case 7:if(!K.nL.enableCompression){sG.O$(9);break}return Anx(sG,v3(Hnf((S=v)!=null?S:D,K.nL.N().lI),r("DecompressError")).wait(),10);case 10:Y=sG.j;case 9:X=BA((f=(T=Y)!=null?T:v)!=null?f:D,l0d);case 5:g.Jn(sG,0,2);if(m=(h=K.nL.N())==null?void 0:h.Kf)((J=v)==null?void 0:J.buffer)===m.exports.memory.buffer&&m.free(v.byteOffset),((d=Y)==null?void 0:d.buffer)===m.exports.memory.buffer&& m.free(Y.byteOffset);g.yx(sG,6);break;case 4:throw R=G=g.I0(sG),new N5("onesie.response.parse",{name:(F=R.name)!=null?F:"unknown",message:(KX=R.message)!=null?KX:"unknown",wasm:((U=K.nL.N())==null?0:U.Kf)?((B=K.nL.N())==null?0:(e=B.Kf)==null?0:e.al)?"1js":"1":"0",enc:K.S,gz:K.nL.enableCompression,webcrypto:!!nR()});case 6:return Uxx(X),rf=g.dE(X.body),sG.return(rf);case 2:g.Jn(sG),g.yx(sG,0)}})}()})}; OnX=function(Z){var Q=Z.queue;Q.Y.length&&Q.Y[0].isEncrypted&&!Q.j&&(Q.Y.length=0);Q=g.n(Object.keys(Z.Y));for(var z=Q.next();!z.done;z=Q.next()){z=z.value;var K=Z.Y[z];if(!K.LW){var b=Z.queue;b.Y.push({videoId:K.videoId,formatId:z,isEncrypted:!1});b.j||RP(b)}}}; B59=function(Z,Q){var z=Q.getLength(),K=!1;switch(Z.W){case 0:Z.nL.V("html5_future_onesie_ump_handler_on_player_response")?v3(D7(Z.K(Q,Z.S),function(b){oaX(Z.nL,b)}),function(b){Z.nL.W8(b)}):Z.Ud(Q,Z.S).then(function(b){oaX(Z.nL,b)},function(b){Z.nL.W8(b)}); break;case 2:Z.bk("ormk");Q=Q.m9();Z.queue.decrypt(Q);break;default:K=!0}Z.nL.C6&&Z.nL.pN("ombup","id.11;pt."+Z.W+";len."+z+(K?";ignored.1":""));Z.W=null}; Uxx=function(Z){if(Z.qC!==1)throw new N5("onesie.response.badproxystatus",{st:Z.qC,webcrypto:!!nR(),textencoder:!!g.OG.TextEncoder});if(Z.DA!==200)throw new N5("onesie.response.badstatus",{st:Z.DA});}; WjG=function(Z){return new Promise(function(Q){setTimeout(Q,Z)})}; VYu=function(Z,Q){var z=Z.N();z=Z.IW&&z.V("html5_onesie_preload_use_content_owner");var K=Z.ji,b=tR(Q.Yh.experiments,"debug_bandaid_hostname");if(b)Q=Nd(Q,b);else if((z===void 0?0:z)&&(K==null?0:K.url)&&!Q.j){var q=h0(new g.TL(K.url));Q=Nd(Q,q)}else Q=(q=Q.Y.get(0))==null?void 0:q.location.clone();if(Q&&Z.videoId){q=zK(Z.videoId);Z=[];if(q)for(q=g.n(q),z=q.next();!z.done;z=q.next())Z.push(z.value.toString(16).padStart(2,"0"));Q.set("id",Z.join(""));return Q}}; kKu=function(Z,Q,z){z=z===void 0?0:z;var K,b;return g.C(function(q){if(q.Y==1)return K=[],K.push(Q.load()),z>0&&K.push(WjG(z)),g.P(q,Promise.race(K),2);b=VYu(Z,Q);return q.return(b)})}; u4n=function(Z,Q,z,K){K=K===void 0?!1:K;Z.set("cpn",Q.clientPlaybackNonce);Z.set("opr","1");var b=Q.N();Z.set("por","1");nR()||Z.set("onem","1");Q.startSeconds>0&&Z.set("osts",""+Q.startSeconds);K||(b.V("html5_onesie_disable_partial_segments")&&Z.set("oses","1"),Q=b.V("html5_gapless_onesie_no_media_bytes")&&l8(Q)&&Q.IW,z&&!Q?(Q=z.audio,Z.set("pvi",z.video.join(",")),b.V("html5_onesie_disable_audio_bytes")||Z.set("pai",Q.join(",")),xQ||Z.set("osh","1")):(Z.set("oad","0"),Z.set("ovd","0"),Z.set("oaad", "0"),Z.set("oavd","0")))}; xxx=function(Z,Q,z,K,b){b=b===void 0?!1:b;var q="https://youtubei.googleapis.com/youtubei/"+Q.Om.innertubeApiVersion+"/player",r=[{name:"Content-Type",value:"application/json"}];K&&r.push({name:"Authorization",value:"Bearer "+K});r.push({name:"User-Agent",value:g.iU()});g.Ft("EOM_VISITOR_DATA")?r.push({name:"X-Goog-EOM-Visitor-Id",value:g.Ft("EOM_VISITOR_DATA")}):(z=z.visitorData||g.Ft("VISITOR_DATA"))&&r.push({name:"X-Goog-Visitor-Id",value:z});(z=g.Ft("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&r.push({name:"X-YouTube-Lava-Device-Context", value:z});(Q=tR(Q.experiments,"debug_sherlog_username"))&&r.push({name:"X-Youtube-Sherlog-Username",value:Q});Z=i9(JSON.stringify(Z));return{url:q,e8:r,postBody:Z,lG$:b,f2:b}}; Fjx=function(Z,Q,z,K,b,q){var r=g.ed(Z,EHd,Z.f2?void 0:z.Kf),D={encryptedClientKey:Q.Y.encryptedClientKey,Qj:!0,Cb:!0,Pb:tYn(z,!!Z.f2),xB:z.experiments.XI("html5_use_jsonformatter_to_parse_player_response")};if(Z.f2)D.ZK7=r;else{Z=Q.encrypt(r);var v;if(((v=z.Kf)==null?void 0:v.exports.memory.buffer)===r.buffer&&Z.byteOffset!==r.byteOffset){var Y;(Y=z.Kf)==null||Y.free(r.byteOffset)}var X;Z=((X=z.Kf)==null?void 0:X.GO(Z))||Z;r=D.Qq=Z;(0,g.Nm)();r=xFu(new uhd(Q.Y.S),r,Q.iv);D.Tx=r;D.iv=Q.iv}Q=K.getVideoData(); z=gU({B7:z,Iu:K,Ap:Q.startSeconds*1E3});b={lA:D,Yx:z,onesieUstreamerConfig:b,XE:q,ZJ:YX(Q)};Q.reloadPlaybackParams&&(b.reloadPlaybackParams=Q.reloadPlaybackParams);return b}; esx=function(Z,Q,z){var K,b,q;return g.C(function(r){if(r.Y==1)return K=g.ed(Q,EHd),g.P(r,cC9(z,K),2);if(r.Y!=3)return b=r.j,g.P(r,mxx(z,b),3);q=r.j;return r.return({Qq:b,encryptedClientKey:z.Y.encryptedClientKey,iv:z.iv,Tx:q,Qj:!0,Cb:!0,Pb:tYn(Z,!!Q.f2),xB:Z.experiments.XI("html5_use_jsonformatter_to_parse_player_response")})})}; wZ0=function(Z,Q,z,K,b,q){var r,D,v,Y;return g.C(function(X){if(X.Y==1)return g.P(X,esx(z,Z,Q),2);r=X.j;D=K.getVideoData();v=gU({B7:z,Iu:K,Ap:D.startSeconds*1E3});Y={lA:r,Yx:v,onesieUstreamerConfig:b,XE:q,ZJ:YX(D)};D.reloadPlaybackParams&&(Y.reloadPlaybackParams=D.reloadPlaybackParams);return X.return(Y)})}; tYn=function(Z,Q){Z=TK(Z.schedule,!0);Q=Q||!!nR()&&Z>1572864;return"DecompressionStream"in window||!Q}; Ff=function(Z,Q){g.O.call(this);var z=this;this.Iu=Z;this.playerRequest=Q;this.logger=new g.EV("onesie");this.xhr=null;this.state=1;this.rl=new EZ;this.vW=!1;this.playerResponse="";this.L6=new xB(this);this.wj=new xO(this);this.ww="";this.MM=this.IY=!1;this.iB="";this.enableCompression=this.TO=this.AS=!1;this.rg=[];this.Rm=this.KM=-1;this.Yh=this.Iu.N();this.videoData=this.Iu.getVideoData();this.C6=this.Yh.aT();this.CY=this.Yh.zT;this.sV=new yi(this.CY.Y,this.Yh.lI,$xd(this.Yh));this.NG=this.Yh.V("html5_onesie_check_timeout"); this.vI=new g.E6(this.DC,500,this);this.BV=new g.E6(this.uA,1E4,this);this.gh=new g.E6(function(){if(!z.isComplete()){var K=ti(z);z.W8(new N5("net.timeout",K))}},g.Xp(this.Yh.experiments,"html5_onesie_request_timeout_ms")); this.hh=new g.E6(this.RLN,2E3,this);this.Ex=this.Iu.cO();this.l4=this.V("html5_onesie_wait_for_media_availability");g.W(this.videoData,this);g.W(this,this.vI);g.W(this,this.BV);g.W(this,this.hh);g.W(this,this.sV);Z=wz();xQ&&Z&&!this.Yh.V("html5_disable_onesie_media_bytes")&&(this.rp=new Map);this.Kg=new Map;this.pw=new Map;this.Do=new Map;this.r3=new Map}; PP=function(Z,Q){var z;return(z=Z.rp)==null?void 0:z.get(Q)}; l1W=function(Z,Q,z){var K;return g.C(function(b){if(b.Y==1)return Z.bk("oprd_s"),EaX(Z)?g.P(b,I1n(Z.sV,Q,z),3):(K=Z.sV.decrypt(Q,z),b.O$(2));b.Y!=2&&(K=b.j);Z.bk("oprd_c");return b.return(K)})}; MYM=function(Z,Q,z){Z.bk("oprd_s");Q=nax(Z.sV).encrypt(Q,z);D7(Q,function(){Z.bk("oprd_c")}); return Q}; sOM=function(Z){return Z.V("html5_onesie_host_probing")||Z.C6?xQ:!1}; oaX=function(Z,Q){Z.bk("oprr");Z.playerResponse=Q;Z.TO||(Z.l4=!1);eF(Z)}; eF=function(Z){if(!Z.playerResponse)return!1;if(Z.AS)return!0;var Q=Z.videoData.V("html5_onesie_audio_only_playback")&&sH(Z.videoData);if(Z.rp&&Z.l4){if(!Z.rp.has(Z.ww))return!1;var z=Z.rp.get(Z.ww),K;if(K=z){K=!1;for(var b=g.n(z.X3.keys()),q=b.next();!q.done;q=b.next())if(q=z.X3.get(q.value))for(var r=g.n(q.NQ),D=r.next();!D.done;D=r.next())D.value.PJ>0&&(q.WN?K=!0:Q=!0);K=!(Q&&K)}if(K)return!1}Z.bk("ofr");Z.rl.resolve(Z.playerResponse);if(!Z.NG){var v;(v=Z.gh)==null||v.start();Z.BV.start()}return Z.AS= !0}; QOu=function(Z){if(Z.rp&&!Z.V("html5_onesie_media_capabilities")){Z.bk("ogsf_s");var Q=y0d(Z.Iu.getVideoData(),function(K,b){Z.pN(K,b)}),z=ZUf(Z.Iu); Q.video=TLG(z,Q.video);Z.bk("ogsf_c");if(Q.video.length)return Q;Z.pN("ombspf","l."+z.j+";u."+z.Y+";o."+z.S+";r."+z.reason)}}; EaX=function(Z,Q){return Z.V("html5_onesie_sync_request_encryption")||(Q==null?0:Q.f2)||g.xa(Z.Yh)&&Z.V("html5_embed_onesie_use_sync_encryption")?!1:!!nR()}; ti=function(Z){if(!Z.OS)return{};var Q=Z.OS.Ae(),z;Q.d=(z=Z.OS.c7)==null?void 0:z.pZ();Q.shost=Z.Qs;Q.ty="o";return Q}; zvW=function(Z,Q){var z,K;(K=(Z=(z=Z.rp)==null?void 0:z.get(Q))==null)||(Q=Z.S?!1:Z.S=!0,K=!Q);return!K}; K14=function(Z,Q,z,K,b,q,r,D,v,Y,X){g.O.call(this);var S=this;this.Iu=Z;this.wr=Q;this.policy=z;this.audioTrack=K;this.videoTrack=b;this.kh=q;this.Bh=r;this.s$=D;this.S=v;this.timing=Y;this.U=X;this.Y=[];this.T={};this.Du=this.Zu=!1;this.Nr=new Set;this.L=this.tG=this.jJ=this.R0=0;this.W=null;this.P7={UA:[],gb:[]};this.JG={UA:[],gb:[]};this.K=null;this.Vp=[];this.zz={yeG:function(){return S.Y}, HjG:function(){return S.T}, zVB:function(){S.Y.length=0}, reF:function(){return S.Nr}, VbI:function(){return S.jJ}, HVg:function(T){S.jJ=T}, OVg:function(T){S.L=T}, HC:function(T){S.K=T}}; this.videoData=this.Iu.getVideoData();this.policy.NU&&(this.c7=new Bl(this.wr,this.policy,this.Bh),g.W(this,this.c7))}; rFX=function(Z,Q){Q=Q===void 0?!1:Q;if(bU4(Z,Q)){Z.policy.T&&Z.wr.pN("sabrcrq",{create:1});var z=new hi(0,Z.kh.X,Z);Z.policy.Q7>0&&Z.L++;Q=qKG(Z,z,Q);Z.Y.push(Q);var K;(K=Z.c7)==null||Bzn(K,Z.kh.X)}}; vFM=function(Z,Q){var z=AFG(Z);if(Z.policy.MN){var K=Z.P7;var b=Z.JG}else K=wH(Z,Z.audioTrack),b=wH(Z,Z.videoTrack);var q=[].concat(g.I(K.UA),g.I(b.UA));Z.policy.gq&&Z.K&&q.push.apply(q,g.I(Z.Vp));var r=[].concat(g.I(K.gb),g.I(b.gb)),D=Z.wr.YQ(),v,Y,X=Z.Iu,S=Z.kh,T=Z.j,f=Z.Nr,h=Z.policy,m=Z.wr.G_,J=t2d(Z.wr)*1E3,d=(v=Z.KN)==null?void 0:v.ov;v=(Y=Z.KN)==null?void 0:Y.IU;var G;Y=Number((G=Z.S.W)==null?void 0:G.info.itag)||0;var R;G=Number((R=Z.S.K)==null?void 0:R.info.itag)||0;Q={Iu:X,kh:S,UA:q,gb:r, Ap:z,nextRequestPolicy:T,Nr:f,RW:h,G_:m,UE:J,ov:d,IU:v,R0:Z.R0,isPrefetch:Q||Z.wr.isSuspended,A5:Y,G4:G,AE:D,UG:Z.Iu.mO()};z=Z.wr.vH();q=zK(z);z&&(Q.rB=q);if(z=Z.Iu.pQ())Q.Np=z*1E3;var U;z=Z.S;q=z.jJ;if((z.RW.j&&z.RW.Gc||((U=z.RW)==null?0:U.Y&&U.Pg))&&!q)for(U=g.n(z.S),r=U.next();!r.done;r=U.next())if(r.value.Qw){q=!0;break}U=OT(z.RW)&&!q?[]:Znr(z,z.S);Q.Un=U;U=Z.S;OT(U.RW)&&!U.SJ?U=[]:(z=AC4(U),z.length===0&&(z=U.L),U=Znr(U,z));Q.YK=U;Q.Ql=Z.policy.gq&&Z.K?[Z.K]:void 0;Z.policy.FT&&(Q.eL=jOn(Z.wr, Z.audioTrack),Q.a5=jOn(Z.wr,Z.videoTrack));if(Z.policy.L){K=DkG(Z,K.UA,b.UA);var B;if(b=(B=Z.W)==null?void 0:B.d7(K))Q.Rs=b}Z.policy.Vp&&Z.Y.length>0&&Z.Y[0].LY()&&(Q.H0G=Z.Y[0].WQ());return Q}; AFG=function(Z){var Q,z=Z.policy.K&&((Q=Z.wr)==null?void 0:Q.J8());Q=Z.wr.getCurrentTime()||0;Q=gFD(Z,Q);var K=Z.wr.Ry()||0;Q+=K;K=IG(Z.videoData)||g.md(Z.videoData);var b=0;z?(K&&(b=Number.MAX_SAFE_INTEGER),Z.videoData.c7&&(b=Math.ceil(Z.videoData.Vp*1E3))):b=Math.ceil(Q*1E3);return Math.min(Number.MAX_SAFE_INTEGER,b)}; gFD=function(Z,Q){if(Z.wr.isSeeking())return Q;var z=Z.Iu.ES();if(!z)return Q;z=z.gm();if(z.length===0||DR(z,Q))return Q;if(!Cv(Z.videoTrack,Q)&&!Cv(Z.audioTrack,Q))return Z.wr.pN("sundrn",{b:0,lt:Q}),Q;for(var K=Q,b=Infinity,q=0;q<z.length;q++)if(!(z.start(q)>Q)){var r=Q-z.end(q);r<b&&(b=r,K=z.end(q))}return K!==Q&&(Z.wr.pN("sundrn",{bre:K,lt:Q}),b>=20)?(Z.wr.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),Q):K}; DkG=function(Z,Q,z){var K=Z.wr.getCurrentTime()||0;Q=YKx(Z,Q,K);Z=YKx(Z,z,K);return Math.min(Q,Z)}; YKx=function(Z,Q,z){Z=Z.wr.Ry()||0;Q=g.n(Q);for(var K=Q.next();!K.done;K=Q.next()){var b=K.value;K=b.startTimeMs?b.startTimeMs/1E3-Z:0;b=K+(b.durationMs?b.durationMs/1E3:0);if(K<=z&&z<=b)return b}return z}; bU4=function(Z,Q){if(Z.policy.Q7>0){var z=Math.floor((0,g.Nm)()/1E4);if(z===Z.tG){if(Z.L>=Z.policy.Q7){if(Z.L===Z.policy.Q7){var K={reason:"toomanyrequests"};K.limit=Z.L;Z.wr.handleError("player.exception",K);Z.L+=1}return!1}}else Z.tG=z,Z.L=0}Q=!Q&&!fn(Z.Bh)&&!Z.policy.YJ;if(Z.wr.isSuspended&&(Z.wr.Oz||Q))return!1;if(Z.SJ&&(0,g.Nm)()<Z.SJ)return Z.policy.YJ&&g.lR(Z.wr.b5),!1;if(Z.Y.length>0&&(!Z.policy.Vp||Z.Y.length!==1||!Z.Y[0].LY()))return!1;var b;if((b=Z.kh.X)==null||!ht(b,Z.policy,Z.T,Z.wr.SG()))return!1; b=Z.policy.ir&&Z.policy.j&&Z.wr.wp();if(ag(Z.audioTrack)&&ag(Z.videoTrack)&&!b)return!1;if(Z.policy.j&&Z.X&&!Z.wr.wp())return Z.Sf("ssap",{pauseontlm:1}),!1;if(Er(Z,Z.audioTrack)&&Er(Z,Z.videoTrack))return Z.policy.S&&Z.wr.pN("sabrHeap",{a:""+Ig(Z.audioTrack),v:""+Ig(Z.videoTrack)}),!1;if(b=Z.policy.L)b=!1,Z.U.j===2?b=!0:Z.U.j===3&&(AFG(Z),Z.wr.Ry(),Q=DkG(Z,nv(Z.audioTrack,Z.wr.isSeeking()).UA,nv(Z.videoTrack,Z.wr.isSeeking()).UA),z=Z.U,Q>=z.S?(z.pN("sdai",{haltrq:Q,est:z.S}),Q=!0):Q=!1,Q&&(b=!0)), b&&Z.policy.T&&Z.wr.pN("sabrcrq",{waitad:1});if(b)return!1;Z.policy.MN&&(Z.P7=wH(Z,Z.audioTrack),Z.JG=wH(Z,Z.videoTrack));if(!Z.j)return Z.policy.T&&Z.wr.pN("sabrcrq",{nopolicy:1}),!0;if(Z.Iu.pQ())return Z.policy.T&&Z.wr.pN("sabrcrq",{utc:1}),!0;if(Z.S.X)return Z.policy.T&&Z.wr.pN("sabrcrq",{audio:1}),!0;if(!Z.j.targetAudioReadaheadMs||!Z.j.targetVideoReadaheadMs)return Z.policy.T&&Z.wr.pN("sabrcrq",{noreadahead:1}),!0;if(Z.policy.K&&Z.wr.J8())return Z.policy.T&&Z.wr.pN("sabrcrq",{seekToHead:1}), !0;b=Math.min(CL(Z.wr,Z.audioTrack)*1E3,Z.j.targetAudioReadaheadMs);Q=Math.min(CL(Z.wr,Z.videoTrack)*1E3,Z.j.targetVideoReadaheadMs);var q=Math.min(b,Q);z=yK(Z.audioTrack,!0)*1E3;var r=yK(Z.videoTrack,!0)*1E3;if(Z.policy.MN){var D=Z.Iu.getCurrentTime()*1E3;var v=X1r(Z.P7.UA,D);D=X1r(Z.JG.UA,D)}else v=z,D=r;var Y=v<q&&!Er(Z,Z.audioTrack);q=D<q&&!Er(Z,Z.videoTrack);!(q=!Y&&!q)&&(q=Z.policy.j)&&(q=Z.wr,!q.jf||LD(q.kh)?q=!1:(Y=lg(q.jf),q=SK0(q,Y)));if(q||Z.policy.RO&&$kn(Z.wr)&&Z.videoData.aF()||Z.policy.Sn&& $kn(Z.wr))return!1;Z.policy.T&&(q=Z.wr.gy(),q.car=v,q.vac=D,q.mar=b,q.mvr=Q,q.tar=Z.j.targetAudioReadaheadMs,q.tvr=Z.j.targetVideoReadaheadMs,q.vbu=Ax(((K=Z.Iu.ES())==null?void 0:K.gm())||null),q.abh=z,q.vbh=r,Z.wr.pN("sabrcrq",q));return!0}; wH=function(Z,Q){AFG(Z);Z.wr.Ry();return nv(Q,Z.wr.isSeeking())}; X1r=function(Z,Q){var z=0,K=-1;Z=g.n(Z);for(var b=Z.next();!b.done;b=Z.next())if(b=b.value,!(b.startTimeMs+b.durationMs<Q)){if(K<0&&b.startTimeMs>Q||K>=0&&b.Bk>K+1)break;z=Math.max(z,b.startTimeMs+b.durationMs);K=Math.max(K,b.S_)}return Math.max(0,z-Q)}; qKG=function(Z,Q,z){var K={Bh:Z.Bh,Hz:function(v,Y){Z.Iu.xp(v,Y)}, lP:Z.policy.T_,LA:Z.policy.S};Z.Bh.j.T&&(K.Sy=(Z.videoTrack.Y.info.Yq||0)+(Z.audioTrack.Y.info.Yq||0));Z.policy.vk&&(K.e$=Z.audioTrack.Y.index.Ge(),K.lP=!1);var b=gaW(Q,Z.policy,Z.T)?2:1;b!==Z.jJ&&(Z.jJ=b,Tvu(Z));z=vFM(Z,z);if((Z.policy.j||Z.policy.Vp)&&Z.policy.S&&z.Nr){for(var q=b="",r=g.n(z.Nr),D=r.next();!D.done;D=r.next())D=D.value,Z.videoData.sabrContextUpdates.has(D)?b+="_"+D:q+="_"+D;Z.wr.pN("sabrbldrqs",{ctxts:b,misctxts:q})}Q.setData(z,Z.wr.wp(),Z.policy,Z.T)||!Z.policy.j&&!Z.policy.Vp|| Z.wr.handleError("player.exception",{reason:"buildsabrrequestdatafailed"},1);K=new JZ(Z.policy,Q,Z.kh,Z.T,Z,K,Z.wr.cO(),Z.policy.lI?Z.wr.wp():void 0);yV(Z.timing);Z.policy.T&&Z.wr.pN("sabrcrq",{rn:K.Xo(),probe:Q.uR()});return K}; ZO=function(Z,Q){if(Q.FI()||Z.FI())Z.policy.p9||(Z.policy.K?s0(Z.wr):Z.wr.MR());else{if(Z.policy.S&&Q.isComplete()&&Q instanceof JZ){var z=Z.wr,K=z.pN,b,q,r=Object.assign(Q.OS.Ae(),{rst:Q.state,strm:Q.xhr.nz(),d:(b=Q.OS.c7)==null?void 0:b.pZ(),cncl:Q.xhr&&Q.Tz.W?1:0,rqb:Q.EL,cwt:Q.VU,swt:(q=Q.Cu)==null?void 0:q.r0});b=Object.assign(S_G(Q.info),r);K.call(z,"rqs",b)}if(Q.isComplete()&&Q.uR()&&Q instanceof JZ)Z.policy.fL?Q.gD()?(Q.dispose(),Z.Y.length===0?Z.wr.MR():(Z=Z.Y[0],Z instanceof JZ&&Z.JJ()&& Z.kP(!1))):Q.Yz()&&Z.wr.handleError(Q.qe(),Q.Fw()):(Q.dispose(),Z.wr.MR());else{if(Q.wD())Q instanceof JZ&&AtM(Z.timing,Q),Tvu(Z),ff4(Z);else if(Q.Yz())z=Z.Iu.pQ(),Q instanceof JZ&&XZu(Q.info)&&z&&Z.wr.s1(z),Q instanceof Ff?Z.Y.pop():(z=1,Q.canRetry()&&ew(Z.wr)&&(hvf(Z,Q),z=0),Z.wr.handleError(Q.qe(),Q.Fw(),z));else{if(Z.wr.isSuspended&&!Q.isComplete())return;ff4(Z)}Q.FI()||Q instanceof Ff||(Q.isComplete()?z=kiG(Q,Z.policy,Z.T):(z=V2u(Q,Z.policy,Z.T),z===1&&(Z.Zu=!0)),z!==0&&(K=new hi(1,Q.info.zW), K.Wl=z===2,qKG(Z,K)));Z.policy.Ph&&!Q.isComplete()?tA(Z.wr):Z.wr.MR()}}}; ff4=function(Z){for(;Z.Y.length&&Z.Y[0].xg(Z.lY());){var Q=Z.Y.shift();L1n(Z,Q);if(Z.policy.L){var z=Z;if(!z.policy.NB&&Q.xg(z.lY())){var K=Q.Xo();if(z.NB!==K){var b=Q.Q1();Q=b.KM;var q=b.Rm;b=b.isDecorated;!z.W||q<0||(z.NB=K,K=Ri(z.U,q/1E3,Q),q=z.wr.Ry()||0,iv(z.U,Q,K-q,b,z.W))}}}}Z.Y.length&&L1n(Z,Z.Y[0])}; L1n=function(Z,Q){var z=new Set(Q.w_(Z.lY()));z=g.n(z);for(var K=z.next();!K.done;K=z.next()){var b=K.value;if(!(K=!(Q instanceof Ff))){K=Z.S;var q=K.kh.fd,r=Tm(K.videoInfos,q);K=rC9(K,b,q)||r.includes(b)}if(K&&(K=Q.uc(b,Z.lY()),q=Z.policy.gq&&ZR(K[0].Y.info),(!(!q&&Z.policy.hm&&K.length>0&&(K[0].Y.info.WN()?yK(Z.audioTrack):yK(Z.videoTrack))>3)||Q.isComplete())&&Q.H2(b,Z.lY()))){b=Q.O9(b,Z.lY());if(Z.policy.j){r=K[0].Y.info;var D=Z.wr.wp();if(D&&r){var v=Q.zP();D.api.V("html5_ssap_set_format_info_on_video_data")&& v===iH(D)&&(r.WN()?D.playback.getVideoData().W=r:D.playback.getVideoData().j=r);if(D=QD(D.timeline,v))if(D=D[0].getVideoData())r.WN()?D.W=r:D.j=r}}b=g.n(b);for(r=b.next();!r.done;r=b.next())if(r=r.value,Z.policy.S&&Q instanceof Ff&&Z.wr.pN("omblss",{s:r.info.O8()}),q)D=Z,D.videoData.fd()&&D.K&&LQ(D.K)===LQ(g.QH(r.info.Y.info,D.kh.fd))&&D.Iu.publish("sabrCaptionsDataLoaded",r,D.jU.bind(D));else{D=r.info.Y.info.WN();var Y=r.info.Y;if(D){v=void 0;var X=Z.S,S=(v=Q.w7(Z.lY()))==null?void 0:v.token;X.X= !1;Y!==X.K&&(X.K=Y,X.Gi(Y,X.audioTrack,S))}else v=void 0,sMW(Z.S,Y,(v=Q.w7(Z.lY()))==null?void 0:v.token);v=D?Z.audioTrack:Z.videoTrack;Q instanceof Ff&&(v.T=!1,Q instanceof Ff&&(D?ZQX(Z.timing):san(Z.timing)));try{Lv(v,K,r)}catch(T){r=it(T),Z.wr.handleError(r.errorCode,r.details,r.severity),v.Sm(),Z.gP(!1,"pushSlice"),s0(Z.wr)}}}}}; hvf=function(Z,Q){Z.policy.Vp?Z.Y.splice(Z.Y.indexOf(Q)).forEach(function(z){z.dispose()}):(Z.Y.pop(),Q==null||Q.dispose())}; nF9=function(Z,Q,z){for(var K=[],b=0;b<Z.Y.length;b++)Q&&Z.Y[b]instanceof Ff?K.push(Z.Y[b]):(Z.policy.T&&Z.wr.pN("sabrcrq",{d:Z.Y[b].Xo(),src:z}),Z.Y[b].dispose());Z.Y=K}; cFG=function(Z,Q){Q&&Q.type&&(Z.videoData.sabrContextUpdates.set(Q.type,Q),Q.sendByDefault&&Z.Nr.add(Q.type))}; mkd=function(Z,Q,z){Q.Ia(z.yD,z.version)?Z.videoData.HK=z.version||"":Z.wr.pN("ssap",{v:z.version,tlnu:1})}; Tvu=function(Z){Z.Nr.clear();if(Z.videoData.sabrContextUpdates.size>0)for(var Q=g.n(Z.videoData.sabrContextUpdates.keys()),z=Q.next();!z.done;z=Q.next()){z=z.value;var K=void 0;((K=Z.videoData.sabrContextUpdates.get(z))==null?0:K.sendByDefault)&&Z.Nr.add(z)}if(Z.policy.Vp&&Z.Y.length)for(Q=g.n(Z.Y),z=Q.next();!z.done;z=Q.next())(z=z.value.WQ())&&z.type&&z.sendByDefault&&Z.Nr.add(z.type)}; If4=function(Z){Z.policy.De&&(Z.KN=void 0,Z.R0=0)}; JFG=function(Z,Q){if(Q.Yz()||Q.FI()){var z=Z.wr,K=z.pN,b=Q.state;Z=Z.lY();var q,r;if((Q=(q=Q.rp)==null?void 0:q.get(Z))==null)Q=void 0;else{q=0;Z=Q.w_();for(var D=0;D<Z.length;D++){var v=void 0;q+=((v=Q.X3.get(Z[D]))==null?void 0:v.bytesReceived)||0}Q=q}Q=(r=Q)!=null?r:-1;K.call(z,"sabromb",{s:b,tbytes:Q})}else Z.Y.push(Q),Q.rg.push(Z),yV(Z.timing),Z.policy.WS&&Q.Ah&&Z.iN(Q.Ah)}; Er=function(Z,Q){return Z.policy.wM?!Z.wr.wS&&OV(Q)&&(Q.vS()!==OV(Q)||Z.wr.isSuspended):!1}; yFG=function(Z){var Q="";Z=g.n(Z);for(var z=Z.next();!z.done;z=Z.next()){z=z.value;Q+=".cid."+z.clipId;if(z.vJ){var K=z.vJ;Q+=".vid."+K.A7+(".pst."+K.HU)+(".ps."+K.PU)+(".lst."+K.IIf)+(".ld."+K.oY)+(".ls."+K.f5)}z.Ai&&(Q+=".nonv."+z.Ai.gJ)}return Q}; dkX=function(Z,Q,z,K,b){this.wr=Z;this.policy=Q;this.schedule=z;this.q4=K;this.U=b;this.jJ=NaN;this.j=this.T=this.W=null;this.Y=this.L=this.K=this.startTimeSecs=NaN;this.S=!1;this.X=NaN}; NvD=function(Z,Q,z,K,b,q){return Q.CM&&Q.yk&&z===3?new dkX(Z,Q,K,b,q):null}; Gs4=function(Z,Q){if(Z.policy.Dd){var z=Q.info.Yq,K=TK(Z.schedule);Q=Q.index.Ge();z=Math.max(1,K/z);Z.X=Math.round(Math.max(((z-1)*Q+Z.policy.kL)/z,Q-Z.policy.Dt)*1E3)}}; P8G=function(Z,Q){var z=Date.now()/1E3,K=z-Z.startTimeSecs,b=z-Z.K,q=b>=Z.policy.PK,r=!1;if(q){var D=0;!isNaN(Q)&&Q>Z.L&&(D=Q-Z.L,Z.L=Q);D/b<Z.policy.QZ&&(r=!0);Z.K=z}z=K>=Z.policy.Dt&&!Z.S;if(!q&&!z&&iUX(Z,Q))return NaN;z&&(Z.S=!0);a:{K=r;z=(0,g.Nm)()/1E3-(Z.q4.Wx()||0)-Z.T.Y-Z.policy.kL;q=Z.j.startTime;z=q+z;if(K){if(isNaN(Q)){zA(Z,NaN,"n",Q);q=NaN;break a}K=Q-Z.policy.Em;K<z&&(z=K)}else Z.S&&(K=z+Z.policy.kL-Z.jJ+Z.policy.YO,isNaN(Q)||(K=Math.max(K,Math.min(z,Q-Z.policy.Em))),z=K);q=z=Math.max(z, q)}Z.Y=q;if(isNaN(Z.Y))return Z.clear(),NaN;if(!r&&iUX(Z,Q))return afX(Z,Q),NaN;if(Z.Y<=Z.j.startTime)return zA(Z,NaN,"y",Q),Z.clear(),NaN;if(!Z.U(Z.Y,!1))return!afX(Z,Q)&&r&&(zA(Z,NaN,"t",Q),Z.clear()),NaN;r=Z.Y;zA(Z,r,"s",Q);Z.clear();return r}; afX=function(Z,Q){return Z.U(Z.Y,!0)?!1:(zA(Z,NaN,"ns",Q),Z.clear(),!0)}; iUX=function(Z,Q){return isNaN(Q)?!0:isNaN(Z.Y)?!1:Q<Z.Y+(Z.S?Z.policy.Em:Z.policy.Cl)}; zA=function(Z,Q,z,K){var b=Z.W.Fw();b.ssr_sk=(Q*1E3).toFixed(0);b.ssr_t=(Z.Y*1E3).toFixed(0);b.ssr_r=z;b.ssr_st=(Z.startTimeSecs*1E3).toFixed(0);b.ssr_n=(0,g.Nm)().toFixed(0);b.ssr_f=(Z.T.Y*1E3).toFixed(0);b.ssr_fa=Z.S?"1":"0";b.ssr_o=(Z.q4.Wx()*1E3||0).toFixed(0);b.ssr_v=(K*1E3).toFixed(0);Q=Z.j.Y.index;Q.U9(Z.j.rr,!0)&&(b.ssr_ist=(Q.getStartTime(Z.j.rr)*1E3).toFixed(0),b.ssr_id=(Q.getDuration(Z.j.rr)*1E3).toFixed(0));Z.wr.pN("ssr",b)}; RvG=function(){var Z={};if(window.performance){var Q=window.performance.memory;Q&&(Z.jsTotal=Q.totalJSHeapSize,Z.jsUsed=Q.usedJSHeapSize,Z.jsLimit=Q.jsHeapSizeLimit,Z.msTotal=Q.totalMediaSourceSize,Z.msLimit=Q.mediaSourceSizeLimit,Z.msUsed=Q.usedMediaSourceMemorySize)}var z;if((z=window.h5vcc)==null?0:z.cVal)Z.cbFree=window.h5vcc.cVal.getValue("Memory.CPU.Free"),Z.cbUsed=window.h5vcc.cVal.getValue("Memory.CPU.Used"),Z.cbJs=window.h5vcc.cVal.getValue("Memory.JS");return Z}; g.bX=function(Z,Q,z,K,b,q,r,D,v,Y){D=D===void 0?!1:D;g.O.call(this);var X=this;this.Iu=Z;this.schedule=Q;this.policy=z;this.kh=K;this.SJ=v;this.fL=Y;this.Tf=null;this.c7=this.Vp=this.KN=this.wS=0;this.tJ=this.Oz=this.isSuspended=!1;this.s$="";this.De={};this.F7=!1;this.CN=0;this.X=null;this.Qp=this.tG=!1;this.G_=0;this.NB=!1;this.JG=this.qB=0;this.X7=null;this.R$=function(){return X.Iu.R$()}; this.timing=new l54(this.fL);this.U=new nL(this.schedule,this.policy);this.DI=new g.E6(this.MR,0,this);this.gq=new g.E6(this.MR,this.policy.Ph,this);this.b5=new g.E6(this.MR,1E3,this);this.Ph=new g.E6(this.MR,void 0,this);this.Zu=new g.E6(function(){X.policy.YJ&&X.isSuspended||X.MR()},1E4,this); this.ih=new g.E6(this.Tfu,250,this);this.K=this.currentTime=NaN;this.mp=new r5(5);this.P7=this.timestampOffset=NaN;this.logger=new g.EV("dash");this.Sp=Infinity;this.zz={getAudioTrack:function(){return X.audioTrack}, YuI:function(){return X.videoTrack}, getManifest:function(){return X.kh}, h7h:function(){return X.S}, MR:function(){X.MR()}, Qt:function(){X.wS=0;X.Qt()}, GtB:function(S){return KP(X,X.videoTrack,X.Tf.j,S)}}; Z=v&&v.w_();v&&(tlD(v,this.kh,this.policy),this.P7=Date.now());this.Y=new Wu(this,this.U,z,this.kh,b,Z);z=niX(this.Y,q,r&&r.id);this.audioTrack=new $z(this,this.policy,z.audio,this.timing);this.videoTrack=new $z(this,this.policy,z.video,this.timing);this.videoTrack.W.JG=this.audioTrack.Q$();this.Du={updateend:this.qI,error:this.mTu};g.W(this,this.DI);g.W(this,this.gq);g.W(this,this.b5);g.W(this,this.Ph);g.W(this,this.Zu);z=this.policy.gU&&this.policy.T0?!vC9(this.videoTrack.Y.info):!1;this.sA=pzd({FF:this.policy.X.FF|| z,T0:this.policy.T0&&!z,Db:this.policy.Db});this.T=NvD(this,this.policy,this.sA,this.schedule,this.mp,function(S,T){return C8n(X,S,T)}); this.W=new dU(this,this.kh,this.policy,this.videoTrack,this.audioTrack,D,this.Iu.getVideoData().GJ());this.j_=new GN(this,this.kh,this.videoTrack,this.audioTrack,this.policy);D=this.policy.GB?this.Iu.getVideoData().EN:null;this.L=new Wl(this,this.policy,this.videoTrack,this.audioTrack,this.De,this.W,this.timing,this.U,this.schedule,this.kh,this.Y,this.T,z,D);g.W(this,this.L);this.j=new ET(this,this.policy,this.videoTrack,this.audioTrack,this.kh,b,sH(this.Iu.getVideoData()),r==null?void 0:r.id);g.W(this, this.j);Kjr(this.j,q);this.S=new K14(this.Iu,this,this.policy,this.audioTrack,this.videoTrack,this.kh,this.schedule,this.Y,this.j,this.timing,this.W);g.W(this,this.S);this.jJ=this.Iu.lh.X8.m3;this.policy.K||p1r(this);this.logger.debug("Created")}; p1r=function(Z){var Q,z;if((Q=Z.jJ)==null?0:(z=Q.HE)==null?0:z.itagDenylist){var K;Z.hf((K=Z.jJ)==null?void 0:K.HE.itagDenylist)}var b;if((b=Z.jJ)==null?0:b.playbackStartPolicy){var q,r;og(Z.policy,(q=Z.jJ)==null?void 0:q.playbackStartPolicy,3,(r=Z.jJ)==null?void 0:r.Xo())}if(Z.policy.Il){Q=Z.lY();var D;(z=Q?(D=Z.jJ)==null?void 0:D.pw.get(Q):void 0)&&Z.S.jb(z)}if(!Z.kh.U){var v;D=(v=Z.jJ)==null?void 0:v.Fe;(D==null?0:D.Y7)&&(D==null?0:D.Le)&&Z.kh.fd&&hR(Z.kh,D.Y7,D.Le)}var Y;((Y=Z.jJ)==null?0:Y.r3)&& (v=Z.jJ.r3.get(Z.lY()||""))&&Z.kh&&v.formatId&&(Z=Z.kh.S.get(LQ(v.formatId)))&&(Z.info.debugInfo=v.debugInfo)}; HUn=function(Z,Q){if(Z.policy.j&&!Z.policy.bH)return!1;var z=LQ(g.QH(Q.Y.info,Z.kh.fd)),K,b=((K=Z.SJ)==null?void 0:K.uc(z))||[];if(b.length===0)return Z.pN("ombmsi",{}),!1;b=new Ra(b);if(K=!Z.policy.SJ||isFinite(Z.getCurrentTime())||Z.Iu.pQ()){a:{K=Z.getCurrentTime();b=g.n(b.AG);for(var q=b.next();!q.done;q=b.next())if(q=q.value,q.type===3&&K>=q.eP&&K<=q.M8){K=!0;break a}K=!1}K=!K}if(K)return Z.pN("ostmf",{ct:Z.getCurrentTime(),a:Q.Y.info.WN()}),!1;(Z=Z.SJ)!=null&&(Z.X3.get(z).L8=!0);return!0}; MHG=function(Z){if(!Z.kh.fd)return!0;var Q=Z.Iu.getVideoData();if(Q.V("html5_skip_live_preroll_onesie")&&Z.Iu.d6()||Q.V("html5_skip_live_preroll_onesie_post_live")&&Z.Iu.d6()&&(Q.Da||Q.isPremiere))return Z.pN("ombpa",{}),!1;var z,K;if(Z.policy.HD&&!!((z=Z.jJ)==null?0:(K=z.Fe)==null?0:K.EXI)!==Z.kh.Da)return Z.pN("ombplmm",{}),!1;z=Q.sA||Q.liveUtcStartSeconds||Q.Pg;if(Z.kh.Da&&z)return Z.pN("ombplst",{}),!1;if(Z.kh.U)return Z.pN("ombab",{}),!1;z=Date.now();return LD(Z.kh)&&!isNaN(Z.P7)&&z-Z.P7>Z.policy.Qx* 1E3?(Z.pN("ombttl",{}),!1):Z.kh.uY&&Z.kh.W||!Z.policy.pm&&Z.kh.isPremiere||!(v0(Q)===0||Z.policy.Y&&Q.V("html5_enable_onesie_media_for_sabr_proxima_optin"))||Q.V("html5_disable_onesie_media_for_mosaic")&&Va(Q)||Q.V("html5_disable_onesie_media_for_ssdai")&&Q.isDaiEnabled()&&Q.enableServerStitchedDai?!1:!0}; Ukf=function(Z,Q){var z=Q.Y,K=Z.kh.fd;if(MHG(Z))if(Z.SJ&&Z.SJ.X3.has(LQ(g.QH(z.info,K)))){if(K=LQ(g.QH(z.info,K)),HUn(Z,Q)){var b=new Ra(Z.SJ.uc(K)),q=function(r){try{if(r.Yz())Z.handleError(r.qe(),r.Fw()),Gb(Q,r),pQ(r.info)&&uH(Z.L,Q,z,!0),Z.MR();else if(xz(Z.L,r)){var D;(D=Z.W)==null||giX(D,r.info,Z.X);Z.MR()}}catch(v){r=it(v),Z.handleError(r.errorCode,r.details,r.severity),Z.Sm()}}; z.S=!0;CQ(b)&&(hA(Q,new il(Z.policy,K,b,Z.SJ,q)),yV(Z.timing))}}else Z.pN("ombfmt",{})}; qM=function(Z,Q){Q=Q||Z.videoTrack&&Z.videoTrack.j&&Z.videoTrack.j.startTime||Z.getCurrentTime();var z=FW,K=Z.videoTrack,b=Z.Y;Q=b.nextVideo&&b.nextVideo.index.ON(Q)||0;b.JG!==Q&&(b.c7={},b.JG=Q,VV(b,b.Y));Q=!b.Y.isLocked()&&b.U>-1&&(0,g.Nm)()-b.U<b.policy.Gv*1E3;var q=b.nextVideo&&xX(b,b.nextVideo.info)*3<IA(b.P7);if(!Q||q)Bu(b),kX(b),b.SJ=b.SJ||b.nextVideo!==b.S;b.nextVideo&&!b.nextVideo.index.isLoaded()&&(b.JG=-1);z(Z,K,b.nextVideo);FW(Z,Z.audioTrack,Z.Y.j)}; rY=function(Z,Q){Z.Oz=Q;Z.policy.JG||(Z.logger.debug("Suspended."),Z.isSuspended=!0,Z.policy.HK&&(Z.b5.stop(),Z.gq.stop(),Z.DI.stop()),Z.policy.YJ&&Z.Zu.stop())}; ai=function(Z,Q,z,K){Z.policy.L&&Z.gP(!1,"rollback");if(Z.kh.isManifestless){var b=da(Z.audioTrack,K,z,Q),q=da(Z.videoTrack,K,z,Q);Z.policy.ex||(q&&fD(Z.kh,K,!0),b&&fD(Z.kh,K,!1));Z.pN("sdai",{rollbk2_seg:K,rbt:z.toFixed(3),lt:Q.toFixed(3),a:b,v:q});(b||q)&&Z.policy.L&&s0(Z)}}; OUd=function(Z){Z.logger.debug("Rebuffering.");Z.tJ=!0;if(Z.policy.CN&&Z.Tf){var Q,z,K,b;Z.pN("lr_rb",{c:Z.getCurrentTime(),s:Z.isSeeking(),ab:Ax(Z.Tf.Y.Sx()),ala:(Q=fv(Z.audioTrack))==null?void 0:Q.O8(),alr:(z=Z.audioTrack.j)==null?void 0:z.O8(),vb:Ax(Z.Tf.j.Sx()),vla:(K=fv(Z.videoTrack))==null?void 0:K.O8(),vlr:(b=Z.videoTrack.j)==null?void 0:b.O8()})}Z.Iu.SG()!==0&&Z.pN("sps_rebuffer",{c:Z.getCurrentTime()})}; oFG=function(Z){Z.policy.F7=!1;try{Z.Qt()}catch(Q){g.Rm(Q)}}; BvX=function(Z){return Z.policy.Y&&Z.policy.j&&(!Wd()&&Z.policy.Al||Z.policy.k7)}; ksr=function(Z,Q,z,K){z=z===void 0?!1:z;K=K===void 0?!1:K;Z.policy.JG&&(Z.logger.debug("disable updateMetadataWithoutMediaSource"),Z.policy.c7&&Z.pN("loader",{setsmb:0}),Z.Sm(),Z.policy.JG=!1);Z.logger.debug("attaching media source");W1n(Z,K);if(BvX(Z))Z.pN("ssap",{delaysb:1}),Z.Tf=Q;else{if(!FF(Q)){var b=OV(Z.videoTrack);b=b?b.info.Y:Z.videoTrack.Y;var q=OV(Z.audioTrack);q=q?q.info.Y:Z.audioTrack.Y;Z.policy.j&&Z.pN("ssap",{initsb:1,v:b.info.id,vf:b.info.Gf,a:q.info.id,af:q.info.Gf});LMG(Q,b.info, q.info,Z.policy.bY)}VHu(Z,Q,z,K);try{Z.MR()}catch(r){g.Rm(r)}}}; VHu=function(Z,Q,z,K){z=z===void 0?!1:z;K=K===void 0?!1:K;Tb(Z.videoTrack,Q.j||null,K);Tb(Z.audioTrack,Q.Y||null,K);Z.Tf=Q;Z.Tf.W=!0;z||Z.resume();Q.Y.EK(Z.Du,Z);Q.j.EK(Z.Du,Z)}; W1n=function(Z,Q){Q=Q===void 0?!1:Q;Z.Tf&&Z.Tf.Y&&Z.Tf.j&&(Z.Tf.Y.wk(Z.Du,Z),Z.Tf.j.wk(Z.Du,Z));Tb(Z.audioTrack,null,Q);Tb(Z.videoTrack,null,Q);Z.Tf&&(Z.Tf.W=!1);Z.Tf=null}; uRf=function(Z){Z.Tf&&Z.Tf.Bx()&&(Z.Sd(),Z.policy.Ce&&Z.handleError("fmt.unplayable",{unexpected:1},1))}; tHd=function(Z,Q){if(!Z.FI())if(Z.policy.Y){if(!bnW(Z.j,Q)){var z=Z.j.j;Kjr(Z.j,Q);var K=!1;K=Q.isLocked()&&Q.reason==="m"&&q_W(Z.j,Q.Y);var b=Z.policy.DH&&Q.reason==="l";z=z.Y>Q.Y&&Q.reason==="b";K||b||z?(Z.Iu.k6({reattachOnConstraint:K?"u":b?"drm":"perf",lo:Q.j,up:Q.Y}),Z.policy.Sc||(Z.j.Y.j=!1)):(Z.policy.Sc&&(Z.j.Y.j=!1),s0(Z))}}else if(!ctG(Z.Y,Q)&&Z.videoTrack){Z.logger.debug(function(){return"Setting constraint: r="+Q.reason+" u="+Q.Y}); z=Z.Y.Y;xkX(Z,IEM(Z.Y,Q));qM(Z);K=Q.isLocked()&&Q.reason==="m"&&Z.Y.SJ;b=Z.policy.DH&&Q.reason==="l"&&Pl(Z.videoTrack);z=z.Y>Q.Y&&Q.reason==="b";var q=Z.Y.s$&&!Wd();K||b||z||q?Z.Iu.k6({reattachOnConstraint:K?"u":b?"drm":q?"codec":"perf"}):s0(Z)}}; F1G=function(Z,Q,z){if((!Z.Tf||ux(Z.Tf)&&!Z.policy.Y3)&&!Z.j_.isSeeking()&&(Z.policy.Y||Pl(Q)&&Q.Y.E6()&&Z.Y.jJ)){var K=Z.getCurrentTime()+L59(Z.U,Q,z);Z.logger.debug(function(){return"Clearing back to "+K.toFixed(3)}); JRD(Q,K)}}; xkX=function(Z,Q){Q&&(Z.logger.debug(function(){return"Logging new format: "+qB(Q.video.info)}),evX(Z.Iu,new Hu(Q.video,Q.reason))); if(Z.Y.Zu){var z=NmX(Z.Y,"a");Z.Iu.W_(new Hu(z.audio,z.reason))}}; s0=function(Z){g.lR(Z.DI)}; tA=function(Z){Z.policy.Ph&&Z.policy.Db&&Math.min(IdW(Z.videoTrack),IdW(Z.audioTrack))*1E3>Z.policy.jY?g.lR(Z.gq):Z.MR()}; w19=function(Z,Q){var z=(0,g.Nm)()-Q,K=yK(Z.audioTrack,!0)*1E3,b=yK(Z.videoTrack,!0)*1E3;Z.logger.debug(function(){return"Appends paused for "+z}); if(Z.policy.S&&(Z.pN("apdpe",{dur:z.toFixed(),abuf:K.toFixed(),vbuf:b.toFixed()}),UT(Z.policy))){var q=IA(Z.U);Z.pN("sdps",{ct:Q,ah:K.toFixed(),vh:b.toFixed(),mr:JI(Z.U,Z.tJ,q),bw:q.toFixed(),js:Z.isSeeking(),re:+Z.tJ,ps:(Z.policy.Jp||"").toString(),rn:(Z.policy.BD||"").toString()})}}; EFn=function(Z){if(Z.policy.j&&pv(Z.videoTrack)&&pv(Z.audioTrack))return"ssap";if(adD(Z.videoTrack))return Z.logger.debug("Pausing appends for server-selectable format"),"ssf";if(Z.policy.Zu&&Hl(Z.videoTrack)&&Hl(Z.audioTrack))return"updateEnd";if(ag(Z.audioTrack)||ag(Z.videoTrack)&&Z.videoTrack.Y.info.Gf!=="f")return"";if(Z.j_.isSeeking()){var Q=Z.U;var z=Z.videoTrack;var K=Z.audioTrack;if(Q.policy.Y){var b=Q.policy.L4;UT(Q.policy)&&(b=JI(Q,!1,IA(Q)));Q=b;z=yK(K,!0)>=Q&&yK(z,!0)>=Q}else z.S.length|| K.S.length?(b=z.Y.info.Yq+K.Y.info.Yq,b=10*(1-IA(Q)/b),Q=Math.max(b,Q.policy.L4),z=yK(K,!0)>=Q&&yK(z,!0)>=Q):z=!0;if(!z)return"abr";z=Z.videoTrack;if(z.S.length>0&&z.W.j.length===1&&sWn(z.W).info.K<z.Du)return"seek"}if(Z.policy.L&&CIG(Z.videoTrack,Z.W)&&CIG(Z.audioTrack,Z.W))return"ssdai";z=!Z.policy.zT||Z.getCurrentTime()<10;Z.policy.Y||(z=z||Z.videoTrack.Y.info.video.Y>360);K=UT(Z.policy)&&Z.policy.Jl;if(!Z.tJ||!K&&z)return"";z=Z.policy.zT;UT(Z.policy)&&(z=JI(Z.U,Z.tJ,IA(Z.U)));z=d1W(Z.videoTrack, Z.getCurrentTime(),z)||d1W(Z.audioTrack,Z.getCurrentTime(),z);return UT(Z.policy)?z?"mbnm":"":(Z.videoTrack.S.length>0||Z.audioTrack.S.length>0||VK(Z.L,Z.videoTrack,Z.audioTrack)||VK(Z.L,Z.audioTrack,Z.videoTrack))&&z?"nord":""}; lfW=function(Z){if(Z.T){var Q=Z.T.MR(Z.audioTrack,gQ(Z.Tf.j.Sx()));Q&&Z.Iu.seekTo(Q,{OE:!0,s8:"pollSubsegmentReadahead",gS:!0})}}; qHD=function(Z,Q,z){if(Z.policy.Zu&&Hl(Q))return!1;if(z.CU())return!0;if(!z.UW())return!1;var K=OV(Q);if(!K||K.info.type===6)return!1;var b=Z.policy.s2;if(b&&!K.info.W){var q=K.info.eP-Z.getCurrentTime();if(K.info.K<q*b)return!1}var r;if(Z.policy.JC||((r=Z.W)==null?0:Xzd(r,Q,K.info.rr)))Z.c7=0;else return Z.j_.isSeeking()&&s0(Z),Z.c7=Z.c7||(0,g.Nm)(),!1;if(!KP(Z,Q,z,K.info))return!1;if(Z.kh.j&&K.info.j===0){if(b=sGn(Q,z,K))q=fv(Q),Z.pN("initchg",{it:K.info.Y.info.id,sr:!!q&&q.Y===K.info.Y,ty:K.info.type, seg:K.info.rr});q=g.lt(K.info.Y.info);Z.policy.Uv&&q&&!b&&hRx(K)}q=Z.T&&!!Z.T.W&&Q.Y.info.audio;b=Z.kh.isManifestless||K.L;if(!(Z.kh.j&&K.info.j!==0||b&&!q)&&Z3n(Z,Q,z,K))return!0;if(q)return!1;q=CL(Z,Q);q=Z.getCurrentTime()+q;if(K.info.eP>q)return Z.policy.Y&&QGG(Z,Q),Z.policy.bG&&Red(Q.W,q,!1),!1;zQ9(Z,Q);var D;Z.policy.aC&&z===((D=Z.Tf)==null?void 0:D.Y)&&Z.NB&&(z.PR()===0?(Z.NB=!1,Z.policy.aC=!1):Z.qB=z.PR());if(!KdW(Z,z,K,Q))return!1;Z.policy.Zu&&K.info.sN()?(Z.Iu.N().aT()&&Z.pN("eosl",{ls:K.info.O8()}), K.isLocked=!0):(Q.KV(K),don(Z.Y,K.info),Z.logger.debug(function(){return"Appended "+K.info.O8()+", buffered: "+Ax(z.Sx())})); b&&b3M(Z,K.info.Y.KA);return!0}; QGG=function(Z,Q){Q===Z.videoTrack?Z.Vp=Z.Vp||(0,g.Nm)():Z.KN=Z.KN||(0,g.Nm)()}; zQ9=function(Z,Q){Q===Z.videoTrack?Z.Vp=0:Z.KN=0}; KdW=function(Z,Q,z,K){var b=Z.policy.CN?(0,g.Nm)():0,q=z.L&&z.info.Y.Y||void 0,r=z.Y;z.L&&(r=rPd(Z,z,r)||r);var D=r.m9();r=Z.policy.CN?(0,g.Nm)():0;Q=APW(Z,Q,D,z.info,q);(K=K.U)!=null&&(q=z.info,b=r-b,r=(0,g.Nm)()-r,!K.j||Wrd(K.j,q)&&K.j.rr===q.rr||K.flush(),K.W+=b,K.S+=r,b=1,!K.j&&q.j&&(b=2),ef(K,b,Q),r=Math.ceil(q.j/1024),b===2&&K.Y.add(r),K.Y.add(Math.ceil((q.j+q.S)/1024)-r),K.j=q);Z.JG=0;if(Q===0)return Z.tG&&(Z.logger.debug("Retry succeed, back to normal append logic."),Z.tG=!1,Z.Qp=!1),Z.CN= 0,!0;if(Q===2||Q===5)return jGG(Z,"checked",Q,z.info),!1;if(Q===1){if(!Z.tG)return Z.logger.debug("QuotaExceeded, retrying."),Z.tG=!0,!1;if(!Z.Qp)return Z.Qp=!0,Z.Iu.seekTo(Z.getCurrentTime(),{s8:"quotaExceeded",gS:!0}),!1;z.info.Gy()?(b=Z.policy,b.tG=Math.floor(b.tG*.8),b.P7=Math.floor(b.P7*.8)):(b=Z.policy,b.Qp=Math.floor(b.Qp*.8),b.P7=Math.floor(b.P7*.8));Z.policy.Y?Ux(Z.j.Y,z.info.Y,!1):uv(Z.Y,z.info.Y)}Z.Iu.k6({reattachOnAppend:Q});return!1}; rPd=function(Z,Q,z){var K;if(K=Z.policy.Yt&&Z.Tf&&!Z.Tf.X&&!Z.Iu.Va())Q=Q.info.Y.info,K=Q.Jj()&&xh(Q)&&Q.video&&Q.video.width<3840&&Q.video.width>Q.video.height;if(K&&(Z.Tf.X=!0,CI('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return z=EiG(z),Z.policy.S&&Z.pN("sp4k",{s:!!z}),z}; jGG=function(Z,Q,z,K){var b="fmt.unplayable",q=1;z===5||z===3?(b="fmt.unparseable",Z.policy.Y?!K.Y.info.video||Ox(Z.j.Y).size>0||Ux(Z.j.Y,K.Y,!1):!K.Y.info.video||Ox(Z.Y.L).size>0||uv(Z.Y,K.Y)):z===2&&(Z.CN<15?(Z.CN++,b="html5.invalidstate",q=0):b="fmt.unplayable");K=aa(K);var r;K.mrs=(r=Z.Tf)==null?void 0:e8(r);K.origin=Q;K.reason=z;Z.handleError(b,K,q)}; SaM=function(Z,Q,z,K,b){var q=Z.kh;var r=Z.policy.Y,D=!1,v=-1,Y;for(Y in q.Y){var X=ZR(q.Y[Y].info)||q.Y[Y].info.Gy();if(K===X)if(X=q.Y[Y].index,X.U9(Q.rr)){D=X;var S=Q,T=D.aR(S.rr);T&&T.startTime!==S.startTime?(D.segments=[],D.Fi(S),D=!0):D=!1;D?v=Q.rr:!Q.pending&&r&&(S=X.getDuration(Q.rr),S!==Q.duration&&(q.publish("clienttemp","mfldurUpdate",{itag:q.Y[Y].info.itag,seg:Q.rr,od:S,nd:Q.duration},!1),X.Fi(Q),D=!0))}else X.Fi(Q),D=!0}v>=0&&(r={},q.publish("clienttemp","resetMflIndex",(r[K?"v":"a"]= v,r),!1));q=D;MZD(Z.j_,Q,K,q);Z.W.Cq(Q,z,K,b);Q.rr===Z.kh.uY&&q&&S2(Z.kh)&&Q.startTime>S2(Z.kh)&&(Z.kh.Vp=Q.startTime+(isNaN(Z.timestampOffset)?0:Z.timestampOffset),Z.j_.isSeeking()&&Z.j_.Y<Z.kh.Ze()&&Z.j_.seek(Z.kh.Ze(),{}))}; KP=function(Z,Q,z,K){var b=fv(Q);!b||b.W||G9(b,K)||(z.abort(),(Q=Q.U)!=null&&(ef(Q,4),Q.flush()));if(!z.zV()||Wd())try{if(Z.policy.IJ){if(z.Xm(K.Y.info.containerType,K.Y.info.Gf)){if(Z.policy.iC&&z.G0())return!1;Z.pN("ssap",{chgtp:K.Y.info.containerType,cf:K.Y.info.Gf,oldtp:z.zV(),oldcf:z.eF()});z.d0(K.Y.info.containerType,K.Y.info.Gf,K.Y.info.mimeType)}}else z.Pu(K.Y.info.containerType,K.Y.info.mimeType)}catch(q){return z=q,g.CO(z),Z.pN("ctexp",{name:z.name,msg:z.message}),!1}else K.Y.info.containerType!== z.zV()&&Z.pN("ctu",{ct:Wd(),prev_c:z.zV(),curr_c:K.Y.info.containerType});Q=K.Y.W;Z.policy.Sb&&Q&&(K=0+Q.duration,Q=-Q.Y,0===z.F6()&&K===z.D2()||z.wQ(0,K),Q!==z.Ry()&&(z.Oq(Q),XW&&Tzf(Z.audioTrack.Q$(),z.Jr())));return!0}; Z3n=function(Z,Q,z,K){K.info.Y.E6();var b=K.info.Y.Y;if(!b||!z.UW()||z.CO()===b)return!1;var q=b,r=z.GF();if(Z.policy.dI&&r&&z.isView()&&g.lt(K.info.Y.info)){var D=new DataView(b.buffer,b.byteOffset,b.byteLength);(r=ILr(D,r))?q=new Uint8Array(r.buffer,r.byteOffset,r.byteLength):Z.pN("fenc",{})}Z.policy.Yt&&(r=rPd(Z,K,new fe([q])))&&(q=r.m9());var v;(r=K.info.Y.In(0,K.info.clipId))&&(v=r.AG[0]);if(K===Z.X7){if(Z.JG+=1,Z.Iu.getVideoData().V("html5_shorts_gapless_restart_on_init_seg_retries")&&Z.JG> 5)return Z.JG=0,Z.Iu.k6({initSegStuck:1,as:K.info.O8()}),!0}else Z.JG=0,Z.X7=K;Z.policy.O_&&(z.abort(),(r=Q.U)!=null&&(ef(r,4),r.flush()));b=APW(Z,z,q,v,b);var Y;(Y=Q.U)==null||HQG(Y,b,v);if(b!==0)return DzD(Z,b,K),!0;K.info.Gy()?KSD(Z.timing):bQr(Z.timing);Z.logger.debug(function(){return"Appended init for "+K.info.Y.info.id}); b3M(Z,K.info.Y.KA);return z.G0()}; sGn=function(Z,Q,z){if(Q.CO()==null){Z=fv(Z);if(!(Q=!Z||Z.Y!==z.info.Y)){a:if(Z=Z.T,z=z.info.T,Z.length!==z.length)z=!1;else{for(Q=0;Q<Z.length;Q++)if(!g.vD(Z[Q],z[Q])){z=!1;break a}z=!0}Q=!z}return Q}Z=Q.CO();z.info.Y.jg()&&EX(z);z=z.info.Y.Y;return Z!==z&&!g.vD(Z,z)}; APW=function(Z,Q,z,K,b){var q=0;if(Z.policy.j&&K&&K.clipId&&Z.jf){var r;q=(((r=Z.jf)==null?void 0:dF(r,K.clipId))||0)/1E3}try{Z.policy.j&&Q.Ry()!==q&&Q.Oq(q);var D,v=Q===((D=Z.Tf)==null?void 0:D.Y)?Z.audioTrack:Z.videoTrack;if(Z.policy.Zu&&(K==null?0:K.sN())){if((K==null?void 0:K.X)>1)return 6;v.c7=new g.E6(function(){var X=OV(v);Z.FI()||X==null||!X.isLocked?Z.Iu.N().aT()&&Z.pN("eosl",{delayA:X==null?void 0:X.info.O8()}):vG4(v)?(Z.Iu.N().aT()&&Z.pN("eosl",{dunlock:X==null?void 0:X.info.O8()}),gGf(Z, v===Z.audioTrack)):(Z.pN("nue",{ls:X.info.O8()}),X.info.X+=1,Z.Tf&&Z.Qt())},1E4,Z); Z.Iu.N().aT()&&Z.pN("eosl",{delayS:K.O8()});v.c7.start()}if(Z.policy.hV&&(K==null?0:K.sN())){var Y;if((Y=v.JG)==null?0:Y.isActive())g.Z8(v.JG),Z.pN("sbac",{as:K.O8()});v.JG=new g.E6(function(){Z.pN("sbum5s",{as:K.O8()})},5E3,Z); v.JG.start()}Z.policy.N_&&(K==null?void 0:K.Y)instanceof Mo&&K.sN()&&Z.pN("poseos",{itag:K.Y.info.itag,seg:K.rr,lseg:K.Y.index.h4(),es:K.Y.index.S});Q.appendBuffer(z,K,b)}catch(X){if(X instanceof DOMException){if(X.code===11)return 2;if(X.code===12)return 5;if(X.code===22||X.message.indexOf("Not enough storage")===0)return Q=Object.assign({name:"QuotaExceededError",buffered:Ax(Q.Sx()).replace(/,/g,"_"),vheap:Ig(Z.videoTrack),aheap:Ig(Z.audioTrack),message:g.LG(X.message,3),track:Z.Tf?Q===Z.Tf.j?"v": "a":"u"},RvG()),Z.handleError("player.exception",Q),1;g.Rm(X)}return 4}return Z.Tf.Bx()?3:0}; UV=function(Z,Q,z){Z.Iu.seekTo(Q,z)}; b3M=function(Z,Q){Q&&Z.Iu.QM(new Kv(Q.key,Q.type))}; AA=function(Z,Q){Z.Iu.Af(Q)}; CL=function(Z,Q){if(Z.tG&&!Z.tJ)return 3;if(Z.isSuspended)return 1;var z;if((z=Z.Tf)==null?0:z.Tf&&z.Tf.streaming===!1)return 4;z=(Q.Y.info.audio?Z.policy.Qp:Z.policy.tG)/(Q.Yq*Z.policy.kZ);if(Z.policy.hP>0&&Z.Tf&&ux(Z.Tf)&&(Q=Q.Y.info.video?Z.Tf.j:Z.Tf.Y)&&!Q.G0()){Q=Q.Sx();var K=j8(Q,Z.getCurrentTime());K>=0&&(Q=Z.getCurrentTime()-Q.start(K),z+=Math.max(0,Math.min(Q-Z.policy.hP,Z.policy.Xb)))}Z.policy.P7>0&&(z=Math.min(z,Z.policy.P7));return z}; jOn=function(Z,Q){return(CL(Z,Q)+Z.policy.PD)*Q.Yq}; X0X=function(Z){Z.s$&&!Z.isSuspended&&fn(Z.schedule)&&(YHr(Z,Z.s$),Z.s$="")}; YHr=function(Z,Q){LL(Q,"cms",function(z){Z.policy.S&&Z.pN("pathprobe",z)},function(z){Z.Iu.handleError(z)})}; SHr=function(Z,Q){if(Z.Tf&&Z.Tf.W&&!Z.Tf.Bx()&&(Q.tC=yK(Z.videoTrack),Q.j=yK(Z.audioTrack),Z.policy.S)){var z=Ig(Z.videoTrack),K=Ig(Z.audioTrack),b=Ax(Z.Tf.j.Sx(),"_",5),q=Ax(Z.Tf.Y.Sx(),"_",5);Object.assign(Q.Y,{lvq:z,laq:K,lvb:b,lab:q})}Q.bandwidthEstimate=c7(Z.U);var r;(r=Z.audioTrack.U)==null||r.flush();var D;(D=Z.videoTrack.U)==null||D.flush();Z.logger.debug(function(){return d8(Q.Y)})}; $zW=function(Z,Q){Z.X=Q;Z.W&&(Z.W.K=Q);Z.X.L1(Z.videoTrack.Y.info.Jj());Z.L.j=Z.X;Z.policy.L&&(Z.S.W=Z.X)}; TP4=function(Z,Q){if(Z.Tf&&Z.Tf.j){if(Z.policy.UH){var z=HDd(Z.audioTrack);if(z&&z.WN()){var K=Z.Iu;K.r5&&(K.r5.Y=z,K.NT(K.r5.videoId).xf(K.r5))}}Z.policy.QO&&(z=HDd(Z.videoTrack))&&z.Gy()&&(K=Z.Iu,K.lT&&(K.lT.Y=z,K.NT(K.lT.videoId).Nx(K.lT)));Q-=isNaN(Z.timestampOffset)?0:Z.timestampOffset;Z.getCurrentTime()!==Q&&Z.resume();Z.j_.isSeeking()&&Z.Tf&&!Z.Tf.Bx()&&(z=Z.getCurrentTime()<=Q&&Q<Z.getCurrentTime()+10,K=DR(Z.Tf.j.Sx(),Z.getCurrentTime()+A9),z&&K&&(Z.j_.L=!1));Z.j_.isSeeking()||Z.policy.KN|| (Z.currentTime=Q);g.lR(Z.b5)}}; fuW=function(Z,Q){var z=cl(Z.videoTrack).find(function(K){return K.startTime>=Q&&C8n(Z,K.startTime,!1)}); return z&&z.startTime<Q+z.duration*1.5?z.startTime+.1:0}; C8n=function(Z,Q,z){if(!(Z.videoTrack.Y.E6()&&Z.audioTrack.Y.E6()&&Z.Tf&&Z.Tf.j&&Z.Tf.Y))return!1;if(z&&Z.kh.isManifestless&&(Z.videoTrack.K===-1||Z.audioTrack.K===-1))return!0;var K=RA(Z.videoTrack,Q,z);if(isNaN(K))return!1;Z=RA(Z.audioTrack,Z.policy.yk?Q:K,z);return isNaN(Z)?!1:!0}; wa=function(Z){Z.Sm();Z.j_.isSeeking()&&Z.logger.debug("seeking cancelled by seek-to-head");Z.T&&Gs4(Z.T,Z.videoTrack.Y);s0(Z);return PJM(Z.j_)}; FW=function(Z,Q,z,K){(K===void 0?0:K)&&!Q.Vp&&(Wd()||(K=Q.TW,BvX(Z)||!K||K.fQ(z.info)||(Z.pN("ssap",{rstonsrvfmt:z.info.mimeType}),Z.Iu.Hx())),Q.Vp=!0);Q.Y!==z&&(Z.logger.debug(function(){return"Setting target itag: "+z.info.id+" (was "+Q.Y.info.id+")"}),Q.Y=z)}; vG4=function(Z){var Q,z=(Q=OV(Z))==null?void 0:Q.info;return!z||Cv(Z,Math.min(z.eP+A9,z.M8))}; hQu=function(Z,Q){var z;if((z=OV(Q))!=null&&z.isLocked&&vG4(Q)){if(Z.Iu.N().aT()){var K;Z.pN("eosl",{munlock:(K=OV(Q))==null?void 0:K.info.O8()})}gGf(Z,Q===Z.audioTrack)}}; gGf=function(Z,Q){if(Z.policy.Zu&&Z.Tf){var z,K,b=Q?(z=Z.Tf)==null?void 0:z.Y:(K=Z.Tf)==null?void 0:K.j;z=Q?Z.audioTrack:Z.videoTrack;Q=OV(z);if(Q==null?0:Q.isLocked){Z.Iu.N().aT()&&Z.pN("eosl",{unlock:Q.info.O8()});var q;(q=z.c7)==null||q.stop();Q.isLocked=!1;z.KV(Q);don(Z.Y,Q.info);b=b==null?void 0:b.ZM();(b==null?void 0:b.O8())!==Q.info.O8()&&Z.pN("oue",{bls:b==null?void 0:b.O8(),tls:Q.info.O8()})}}}; Ldu=function(Z,Q){Z.timestampOffset!==Q&&(Z.timestampOffset=Q,Z.policy.ex&&Ti(Z.kh),Z.logger.debug(function(){return"Timestamps will be made relative to "+Z.timestampOffset}),Z.W.X=Z.timestampOffset,Z.Iu.IQ(Z.timestampOffset),Z.kh.isManifestless&&(Z.kh.timestampOffset=Z.timestampOffset),Z.videoTrack.Oq(Z.timestampOffset),Z.audioTrack.Oq(Z.timestampOffset))}; t2d=function(Z){var Q=Z.mL().filter(function(K){return K.namespace==="ad"}); Q=g.n(Q);for(var z=Q.next();!z.done;z=Q.next())if(z=z.value,z.start/1E3>Z.getCurrentTime())return z.start/1E3;return Infinity}; nG9=function(Z){var Q=fv(Z.videoTrack),z=fv(Z.audioTrack);return Q&&!pg0(Z.videoTrack)?Q.startTime:z&&!pg0(Z.audioTrack)?z.startTime:NaN}; $kn=function(Z){if(Z.Iu.getVideoData().isLivePlayback)return!1;var Q=Z.Iu.ES();if(!Q)return!1;Q=Q.getDuration();return SK0(Z,Q)}; SK0=function(Z,Q){if(!Z.Tf||!Z.Tf.Y||!Z.Tf.j)return!1;var z=Z.getCurrentTime(),K=Z.Tf.Y.Sx();Z=Z.Tf.j.Sx();K=K?vd(K,z):z;z=Z?vd(Z,z):z;z=Math.min(K,z);return isNaN(z)?!1:z>=Q-.01}; DzD=function(Z,Q,z){Z.policy.Zz&&l8(Z.Iu.getVideoData())?(Z.Iu.SW()||jGG(Z,"sepInit",Q,z.info),cPn(Z.Iu,"sie")):jGG(Z,"sepInit",Q,z.info)}; ew=function(Z){return Z.Iu.SG()<Z.Sp}; g.js=function(Z){this.y3=Z}; DO=function(){g.rV.apply(this,arguments)}; vb=function(Z,Q,z,K){DO.call(this);var b=this;this.S=-1;this.Y={};this.W=new g.E6(this.L,0,this);g.W(this,this.W);this.j=new g.E6(function(){b.FI()||(b.W.start(Math.random()*z),b.j.start(Q))},Z,this); g.W(this,this.j);K.subscribe("fairplay_next_need_key_info",this.K,this)}; mzn=function(Z){if(!(Z.length<=28))for(var Q=(0,g.X0)([60,0,75,0,73,0,68,0,62,0]),z=28;z<Z.length;){a:if(Z.length-z<Q.length)var K=!1;else{for(K=0;K<Q.length;++K)if(Z[z+K]!==Q[K]){K=!1;break a}K=!0}if(K){z+=Q.length;if(Z.length<=z+48)break;Q=new Uint8Array(24);for(K=0;K<24;++K)Q[K]=Z[z+K*2];Z=JK(Q);Z=nG(Z);if(!Z)break;z=Z[0];Z[0]=Z[3];Z[3]=z;z=Z[1];Z[1]=Z[2];Z[2]=z;z=Z[4];Z[4]=Z[5];Z[5]=z;z=Z[6];Z[6]=Z[7];Z[7]=z;return Z}z++}}; gY=function(Z,Q,z){DO.call(this);var K=this;this.S=Z;this.Y=[];this.zz={Blu:function(){return K.Y.length}}; this.W=z.XI("html5_ignore_widevine_key_rotation_license_requests");this.j=new g.E6(function(){K.publish("log_qoe",{wvagt:"timer",reqlen:K.Y?K.Y.length:-1});if(K.Y){if(K.Y.length>0){var b=K.Y.shift();Iu0(K,b.info)}K.Y.length>0&&(b=K.Y[0].time-(0,g.Nm)(),K.j.start(Math.max(0,b)))}},0); g.W(this,this.j);Q.subscribe("widevine_set_need_key_info",this.L,this)}; Iu0=function(Z,Q){a:{var z=Q.cryptoPeriodIndex;if(isNaN(z)&&Z.S.size>0)z=!0;else{for(var K=g.n(Z.S.values()),b=K.next();!b.done;b=K.next())if(b.value.cryptoPeriodIndex===z){z=!0;break a}z=!1}}Z.publish("log_qoe",{wvagt:"reqnews",canskip:z});z||Z.publish("rotated_need_key_info_ready",Q)}; JPM=function(){var Z={};var Q=Z.url;var z=Z.interval;Z=Z.retries;this.url=Q;this.interval=z;this.retries=Z}; yPx=function(Z,Q){this.statusCode=Z;this.message=Q;this.j=this.heartbeatParams=this.errorMessage=null;this.Y={};this.nextFairplayKeyId=null}; dzn=function(Z,Q,z){z=z===void 0?"":z;g.O.call(this);this.message=Z;this.requestNumber=Q;this.IC=z;this.onError=this.onSuccess=null;this.Y=new g.c8(5E3,2E4,.2)}; NPW=function(Z,Q,z){Z.onSuccess=Q;Z.onError=z}; i3G=function(Z,Q,z,K){var b={timeout:3E4,onSuccess:function(q){if(!Z.FI()){Ow("drm_net_r",void 0,Z.IC);var r=q.status==="LICENSE_STATUS_OK"?0:9999,D=null;if(q.license)try{D=nG(q.license)}catch(h){g.Rm(h)}if(r!==0||D){D=new yPx(r,D);r!==0&&q.reason&&(D.errorMessage=q.reason);if(q.authorizedFormats){r={};for(var v=[],Y={},X=g.n(q.authorizedFormats),S=X.next();!S.done;S=X.next())if(S=S.value,S.trackType&&S.keyId){var T=Gzd[S.trackType];if(T){T==="HD"&&q.isHd720&&(T="HD720");S.isHdr&&(T+="HDR");r[T]|| (v.push(T),r[T]=!0);var f=null;try{f=nG(S.keyId)}catch(h){g.Rm(h)}f&&(Y[g.hj(f,4)]=T)}}D.j=v;D.Y=Y}q.nextFairplayKeyId&&(D.nextFairplayKeyId=q.nextFairplayKeyId);q.sabrLicenseConstraint&&(D.sabrLicenseConstraint=nG(q.sabrLicenseConstraint));q=D}else q=null;if(q)Z.onSuccess(q,Z.requestNumber);else Z.onError(Z,"drm.net","t.p;p.i")}}, onError:function(q){if(!Z.FI())if(q&&q.error)q=q.error,Z.onError(Z,"drm.net.badstatus","t.r;p.i;c."+q.code+";s."+q.status,q.code);else Z.onError(Z,"drm.net.badstatus","t.r;p.i;c.n")}, onTimeout:function(){Z.onError(Z,"drm.net","rt.req."+Z.requestNumber)}}; K&&(b.Uk="Bearer "+K);g.sh(z,"player/get_drm_license",Q,b)}; au4=function(Z,Q,z,K){g.rV.call(this);this.videoData=Z;this.Yh=Q;this.X=z;this.sessionId=K;this.L={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.jJ=this.SJ=!1;this.S=null;this.P7=[];this.W=[];this.T=!1;this.Y={};this.status="";this.K=NaN;this.j=Z.L;this.cryptoPeriodIndex=z.cryptoPeriodIndex;Z={};Object.assign(Z,this.Yh.Y);Z.cpn=this.videoData.clientPlaybackNonce;this.videoData.SJ&&(Z.vvt=this.videoData.SJ,this.videoData.mdxEnvironment&&(Z.mdx_environment=this.videoData.mdxEnvironment)); this.Yh.P7&&(Z.authuser=this.Yh.P7);this.Yh.pageId&&(Z.pageid=this.Yh.pageId);isNaN(this.cryptoPeriodIndex)||(Z.cpi=this.cryptoPeriodIndex.toString());var b=(b=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.iU()))?b[1]:"";b==="ATV"&&(Z.cdt=b);this.L=Z;this.L.session_id=K;this.U=!0;this.j.flavor==="widevine"&&(this.L.hdr="1");this.j.flavor==="playready"&&(Q=Number(tR(Q.experiments,"playready_first_play_expiration")),!isNaN(Q)&&Q>=0&&(this.L.mfpe=""+Q),this.U=!1);Q="";g.CD(this.j)?RW(this.j)?(K=z.j)&&(Q="https://www.youtube.com/api/drm/fps?ek="+ M49(K)):(Q=z.initData.subarray(4),Q=new Uint16Array(Q.buffer,Q.byteOffset,Q.byteLength/2),Q=String.fromCharCode.apply(null,Q).replace("skd://","https://")):Q=this.j.j;this.baseUrl=Q;this.fairplayKeyId=VU(this.baseUrl,"ek")||"";if(Q=VU(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(Q);this.P7=z.Jj?[g.hj(z.initData,4)]:z.S;YV(this,{sessioninit:z.cryptoPeriodIndex});this.status="in"}; p0n=function(Z,Q){YV(Z,{createkeysession:1});Z.status="gr";Ow("drm_gk_s",void 0,Z.videoData.Du);Z.url=PN4(Z);try{Z.S=Q.createSession(Z.X,function(z){YV(Z,{m:z})})}catch(z){Q="t.g"; z instanceof DOMException&&(Q+=";c."+z.code);Z.publish("licenseerror","drm.unavailable",1,Q,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}Z.S&&(RQ4(Z.S,function(z,K){CNu(Z,z,K)},function(z,K,b){if(!Z.FI()){K=void 0; var q=1;g.CD(Z.j)&&g.ia(Z.Yh)&&Z.Yh.V("html5_enable_safari_fairplay")&&b===1212433232&&(K="ERROR_HDCP",q=Z.Yh.V("html5_safari_fairplay_ignore_hdcp")?0:q);Z.error("drm.keyerror",q,z,K)}},function(){Z.FI()||(YV(Z,{onkyadd:1}),Z.jJ||(Z.publish("sessionready"),Z.jJ=!0))},function(z){Z.I0(z)}),g.W(Z,Z.S))}; PN4=function(Z){var Q=Z.baseUrl;sp4(Q)||Z.error("drm.net",2,"t.x");if(!VU(Q,"fexp")){var z=["23898307","23914062","23916106","23883098"].filter(function(b){return Z.Yh.experiments.experiments[b]}); z.length>0&&(Z.L.fexp=z.join())}z=g.n(Object.keys(Z.L));for(var K=z.next();!K.done;K=z.next())K=K.value,Q=Jl0(Q,K,Z.L[K]);return Q}; CNu=function(Z,Q,z){if(!Z.FI())if(Q){YV(Z,{onkmtyp:z});Z.status="km";switch(z){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":H30(Z,Q);return;default:Z.publish("ctmp","message_type",{t:z,l:Q.byteLength})}Z.SJ||(Ow("drm_gk_f",void 0,Z.videoData.Du),Z.SJ=!0,Z.publish("newsession",Z));if(iI(Z.j)&&(Q=Myu(Q),!Q))return;Q=new dzn(Q,++Z.requestNumber,Z.videoData.Du);NPW(Q,function(K){Uzu(Z,K)},function(K,b,q){if(!Z.FI()){var r=0; K.Y.j>=3&&(r=1,b="drm.net.retryexhausted");YV(Z,{onlcsrqerr:b,info:q});Z.error(b,r,q);Z.shouldRetry(GZ(r),K)&&O3M(Z,K)}}); g.W(Z,Q);oGG(Z,Q)}else Z.error("drm.unavailable",1,"km.empty")}; H30=function(Z,Q){YV(Z,{sdpvrq:1});Z.K=Date.now();if(Z.j.flavor!=="widevine")Z.error("drm.provision",1,"e.flavor;f."+Z.j.flavor+";l."+Q.byteLength);else{var z={cpn:Z.videoData.clientPlaybackNonce};Object.assign(z,Z.Yh.Y);z=g.BK("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",z);Q={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null, Q)}),responseType:"arraybuffer"};g.iV(z,Q,3,500).then($N(function(K){K=K.xhr;if(!Z.FI()){K=new Uint8Array(K.response);var b=String.fromCharCode.apply(null,K);try{var q=JSON.parse(b)}catch(r){}q&&q.signedResponse?(Z.publish("ctmp","drminfo",{provisioning:1}),q=(Date.now()-Z.K)/1E3,Z.K=NaN,Z.publish("ctmp","provs",{et:q.toFixed(3)}),Z.S&&Z.S.update(K)):(q=q&&q.error&&q.error.message,K="e.parse",q&&(K+=";m."+q),Z.error("drm.provision",1,K))}}),$N(function(K){Z.FI()||Z.error("drm.provision",1,"e."+K.errorCode+ ";c."+(K.xhr&&K.xhr.status))}))}}; XC=function(Z){var Q;if(Q=Z.U&&Z.S!=null)Z=Z.S,Q=!(!Z.Y||!Z.Y.keyStatuses);return Q}; oGG=function(Z,Q){Z.status="km";Ow("drm_net_s",void 0,Z.videoData.Du);var z=new g.lC(Z.Yh.Om),K={context:g.gM(z.config_||g.vS())};K.drmSystem=BP9[Z.j.flavor];K.videoId=Z.videoData.videoId;K.cpn=Z.videoData.clientPlaybackNonce;K.sessionId=Z.sessionId;K.licenseRequest=g.hj(Q.message);K.drmParams=Z.videoData.drmParams;isNaN(Z.cryptoPeriodIndex)||(K.isKeyRotated=!0,K.cryptoPeriodIndex=Z.cryptoPeriodIndex);var b,q,r=!!((b=Z.videoData.j)==null?0:(q=b.video)==null?0:q.isHdr());K.drmVideoFeature=r?"DRM_VIDEO_FEATURE_PREFER_HDR": "DRM_VIDEO_FEATURE_SDR";if(K.context&&K.context.client){if(b=Z.Yh.Y)K.context.client.deviceMake=b.cbrand,K.context.client.deviceModel=b.cmodel,K.context.client.browserName=b.cbr,K.context.client.browserVersion=b.cbrver,K.context.client.osName=b.cos,K.context.client.osVersion=b.cosver;K.context.user=K.context.user||{};K.context.request=K.context.request||{};Z.videoData.SJ&&(K.context.user.credentialTransferTokens=[{token:Z.videoData.SJ,scope:"VIDEO"}]);K.context.request.mdxEnvironment=Z.videoData.mdxEnvironment|| K.context.request.mdxEnvironment;Z.videoData.gq&&(K.context.user.kidsParent={oauthToken:Z.videoData.gq});g.CD(Z.j)&&(K.fairplayKeyId=g.hj(UrG(Z.fairplayKeyId)));g.la(Z.Yh,g.B0(Z.videoData)).then(function(D){i3G(Q,K,z,D);Z.status="rs"})}else Z.error("drm.net",2,"t.r;ic.0")}; Uzu=function(Z,Q){if(!Z.FI())if(YV(Z,{onlcsrsp:1}),Z.status="rr",Q.statusCode!==0)Z.error("drm.auth",1,"t.f;c."+Q.statusCode,Q.errorMessage||void 0);else{Ow("drm_kr_s",void 0,Z.videoData.Du);if(Q.heartbeatParams&&Q.heartbeatParams.url&&Z.videoData.V("outertube_streaming_data_always_use_staging_license_service")){var z=Z.j.j.match(/(.*)youtube.com/g);z&&(Q.heartbeatParams.url=z[0]+Q.heartbeatParams.url)}Q.heartbeatParams&&Z.publish("newlicense",Q.heartbeatParams);Q.j&&(Z.W=Q.j,Z.videoData.b6||Z.publish("newlicense", new JPM),Z.videoData.b6=!0,Z.T=ih(Z.W,function(K){return K.includes("HDR")})); Q.Y&&(Z.Yh.V("html5_enable_vp9_fairplay")&&RW(Z.j)?(z=g.hj(UrG(Z.fairplayKeyId),4),Z.Y[z]={type:Q.Y[z],status:"unknown"}):Z.Y=Lx(Q.Y,function(K){return{type:K,status:"unknown"}})); Pg(Z.j)&&(Q.message=atX(g.hj(Q.message)));Z.S&&(YV(Z,{updtks:1}),Z.status="ku",Z.S.update(Q.message).then(function(){Ow("drm_kr_f",void 0,Z.videoData.Du);XC(Z)||(YV(Z,{ksApiUnsup:1}),Z.publish("keystatuseschange",Z))},function(K){K="msuf.req."+Z.requestNumber+";msg."+g.LG(K.message,3); Z.error("drm.keyerror",1,K)})); g.CD(Z.j)&&Z.publish("fairplay_next_need_key_info",Z.baseUrl,Q.nextFairplayKeyId);Z.Yh.V("html5_enable_vp9_fairplay")&&RW(Z.j)&&Z.publish("qualitychange",Wdn(Z.W));Q.sabrLicenseConstraint&&Z.publish("sabrlicenseconstraint",Q.sabrLicenseConstraint)}}; O3M=function(Z,Q){var z=Q.Y.getValue();z=new g.E6(function(){oGG(Z,Q)},z); g.W(Z,z);z.start();g.mD(Q.Y);YV(Z,{rtyrq:1})}; Vy4=function(Z,Q){for(var z=[],K=g.n(Object.keys(Z.Y)),b=K.next();!b.done;b=K.next())b=b.value,z.push(b+"_"+Z.Y[b].type+"_"+Z.Y[b].status);return z.join(Q)}; kzn=function(Z){var Q={};Q[Z.status]=XC(Z)?Vy4(Z,"."):Z.W.join(".");return Q}; uoG=function(Z,Q){switch(Z){case "highres":case "hd2880":Z="UHD2";break;case "hd2160":case "hd1440":Z="UHD1";break;case "hd1080":case "hd720":Z="HD";break;case "large":case "medium":case "small":case "light":case "tiny":Z="SD";break;default:return""}Q&&(Z+="HDR");return Z}; xzf=function(Z,Q){for(var z in Z.Y)if(Z.Y[z].status==="usable"&&Z.Y[z].type===Q)return!0;return!1}; tyW=function(Z,Q){for(var z in Z.Y)if(Z.Y[z].type===Q)return Z.Y[z].status}; YV=function(Z,Q){var z=z===void 0?!1:z;d8(Q);(z||Z.Yh.aT())&&Z.publish("ctmp","drmlog",Q)}; FdG=function(Z){var Q=Z[0];Z[0]=Z[3];Z[3]=Q;Q=Z[1];Z[1]=Z[2];Z[2]=Q;Q=Z[4];Z[4]=Z[5];Z[5]=Q;Q=Z[6];Z[6]=Z[7];Z[7]=Q}; Wdn=function(Z){return g.wX(Z,"UHD2")||g.wX(Z,"UHD2HDR")?"highres":g.wX(Z,"UHD1")||g.wX(Z,"UHD1HDR")?"hd2160":g.wX(Z,"HD")||g.wX(Z,"HDHDR")?"hd1080":g.wX(Z,"HD720")||g.wX(Z,"HD720HDR")?"hd720":"large"}; Myu=function(Z){for(var Q="",z=0;z<Z.length;z+=2)Q+=String.fromCharCode(Z[z]);Z=t5(new DOMParser,pt(Q),"text/xml");return Z?(Z=Z.querySelector("Challenge"))&&Z.childNodes&&Z.childNodes.length!==0?new Uint8Array((0,g.X0)(YQx(Z.childNodes[0].nodeValue)).buffer):null:null}; Ss=function(Z,Q,z,K,b,q){q=q===void 0?!1:q;g.O.call(this);this.element=Z;this.X=Q;this.initData=z;this.Y=K;this.j=b;this.U=q;this.sessionId="";this.T=this.K=this.S=this.L=null;this.W=new g.M5(this);g.W(this,this.W);eQx(this)}; eQx=function(Z){Z.Y?(Z.W.Z(Z.Y,"message",Z.A$),Z.W.Z(Z.Y,"keystatuseschange",Z.I0),Z.Y.closed&&Z.Y.closed.then($N(function(){Z.onClosed()}),null)):Z.j&&(GM(Z.W,Z.j,["mskeymessage", "webkitkeymessage"],Z.xR),GM(Z.W,Z.j,["mskeyerror","webkitkeyerror"],Z.oo),GM(Z.W,Z.j,["mskeyadded","webkitkeyadded"],Z.kR))}; RQ4=function(Z,Q,z,K,b){Z.L=Q;Z.S=z;Z.K=K;Z.T=b}; w0n=function(Z,Q,z){g.Rm(z);Z.S&&(z instanceof DOMException&&(Q+=";n."+z.name+";m."+z.message),Z.S(Q))}; $V=function(Z,Q,z,K){K=K===void 0?!1:K;g.O.call(this);this.element=Z;this.Y=Q;this.pN=z;this.T=K;this.K={};this.W=null;this.L=new g.M5(this);this.S=this.j=null;g.W(this,this.L)}; luD=function(Z,Q){Q=EG0(Q,Z.Y.NB);Q=Z.S.createSession("video/mp4",Q);return new Ss(null,null,null,null,Q,Z.T)}; sTn=function(Z,Q){for(var z=new Uint8Array(270),K=0;K<135;K++)z[K*2]='<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="true"></LicenseAcquisition></PlayReadyCDMData>'.charCodeAt(K);Z=Z.S.createSession("video/mp4",Q,z);return new Ss(null,null,null,null,Z)}; ZW9=function(Z,Q){var z=Z.K[Q.sessionId];!z&&Z.W&&(z=Z.W,Z.W=null,z.sessionId=Q.sessionId,Z.K[Q.sessionId]=z);return z}; EG0=function(Z,Q){var z=Z.subarray(4);z=new Uint16Array(z.buffer,z.byteOffset,z.byteLength/2);z=String.fromCharCode.apply(null,z).match(/ek=([0-9a-f]+)/)[1];for(var K="",b=0;b<z.length;b+=2)K+=String.fromCharCode(parseInt(z.substring(b,b+2),16));z=K;K=new ArrayBuffer(z.length*2);b=new Uint16Array(K);for(var q=0;q<z.length;q++)b[q]=z.charCodeAt(q);z=new Uint8Array(K);K=0;q=new ArrayBuffer(Z.byteLength+4+z.byteLength+4+Q.byteLength);b=new Uint8Array(q);q=new DataView(q);b.set(Z);K+=Z.byteLength;q.setUint32(K, z.length,!0);K+=4;b.set(z,K);K+=z.length;q.setUint32(K,Q.byteLength,!0);b.set(Q,K+4);return b}; TA=function(){this.keys=[];this.values=[]}; KID=function(Z,Q,z){g.rV.call(this);this.element=Z;this.videoData=Q;this.Yh=z;this.S=[];this.Vp=2;this.tG=this.KN=!1;this.heartbeatParams=null;this.JG=this.U=!1;this.L=null;this.c7=!1;this.Y=this.videoData.L;this.drmSessionId=this.videoData.drmSessionId||g.GrD();this.j=new Map;this.K=new TA;this.T=new TA;this.SJ=new g.M5(this);this.P7=this.Yh.V("html5_eme_ignore_teardown_errors");(Z=this.element)&&(Z.addKey||Z.webkitAddKey)||N1()||Hg(z.experiments);this.Yh.V("html5_enable_vp9_fairplay")&&RW(this.Y)? z=QTd:(z=this.videoData.R4,z=this.Y.flavor==="fairplay"||z?UK:QTd);this.X=z;this.W=new $V(this.element,this.Y,this.aK.bind(this),this.P7);g.W(this,this.W);Gi(this.Y)&&(this.jJ=new $V(this.element,this.Y,this.aK.bind(this),this.P7),g.W(this,this.jJ));g.W(this,this.SJ);z=this.element;this.Y.keySystemAccess?this.SJ.Z(z,"encrypted",this.RhY):GM(this.SJ,z,Gi(this.Y)?["msneedkey"]:["needkey","webkitneedkey"],this.mbY);zSW(this);a:switch(z=this.Y,Z=this.Yh.experiments,Q=this.j,z.flavor){case "fairplay":if(Q= /\sCobalt\/(\S+)\s/.exec(g.iU())){Z=[];Q=g.n(Q[1].split("."));for(var K=Q.next();!K.done;K=Q.next())K=parseInt(K.value,10),K>=0&&Z.push(K);Z=parseFloat(Z.join("."))}else Z=NaN;Z>19.2999?(Z=z.uG,z=z.zb,z>=Z&&(z=Z*.75),Q=(Z-z)*.5,z=new vb(Q,Z,Z-Q-z,this)):z=null;break a;case "widevine":z=new gY(Q,this,Z);break a;default:z=null}if(this.L=z)g.W(this,this.L),this.L.subscribe("rotated_need_key_info_ready",this.yP,this),this.L.subscribe("log_qoe",this.v8,this);Hg(this.Yh.experiments);this.v8({cks:this.Y.getInfo()})}; zSW=function(Z){var Q=Z.W.g8();Q?Q.then($N(function(){bvx(Z)}),$N(function(z){if(!Z.FI()){g.Rm(z); var K="t.a";z instanceof DOMException&&(K+=";n."+z.name+";m."+z.message);Z.publish("licenseerror","drm.unavailable",1,K,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(Z.v8({mdkrdy:1}),Z.U=!0); Z.jJ&&(Q=Z.jJ.g8())}; rAn=function(Z,Q,z){Z.tG=!0;z=new Kv(Q,z);Z.Yh.V("html5_eme_loader_sync")&&(Z.K.get(Q)||Z.K.set(Q,z));qT9(Z,z)}; qT9=function(Z,Q){if(!Z.FI()){Z.v8({onInitData:1});if(Z.Yh.V("html5_eme_loader_sync")&&Z.videoData.S&&Z.videoData.S.Y){var z=Z.T.get(Q.initData);Q=Z.K.get(Q.initData);if(!z||!Q)return;Q=z;z=Q.initData;Z.K.remove(z);Z.T.remove(z)}Z.v8({initd:Q.initData.length,ct:Q.contentType});if(Z.Y.flavor==="widevine")if(Z.KN&&!Z.videoData.isLivePlayback)fP(Z);else{if(!(Z.Yh.V("vp9_drm_live")&&Z.videoData.isLivePlayback&&Q.Jj)){Z.KN=!0;z=Q.cryptoPeriodIndex;var K=Q.Y;xo9(Q);Q.Jj||(K&&Q.Y!==K?Z.publish("ctmp","cpsmm", {emsg:K,pssh:Q.Y}):z&&Q.cryptoPeriodIndex!==z&&Z.publish("ctmp","cpimm",{emsg:z,pssh:Q.cryptoPeriodIndex}));Z.publish("widevine_set_need_key_info",Q)}}else Z.yP(Q)}}; bvx=function(Z){if(!Z.FI())if(Z.Yh.V("html5_drm_set_server_cert")||RW(Z.Y)){var Q=Z.W.setServerCertificate();Q?Q.then($N(function(z){Z.Yh.aT()&&Z.publish("ctmp","ssc",{success:z})}),$N(function(z){Z.publish("ctmp","ssce",{n:z.name, m:z.message})})).then($N(function(){AA9(Z)})):AA9(Z)}else AA9(Z)}; AA9=function(Z){Z.FI()||(Z.U=!0,Z.v8({onmdkrdy:1}),fP(Z))}; jgd=function(Z){return Z.Y.flavor==="widevine"&&Z.videoData.V("html5_drm_cpi_license_key")}; fP=function(Z){if((Z.tG||Z.Yh.V("html5_widevine_use_fake_pssh"))&&Z.U&&!Z.JG){for(;Z.S.length;){var Q=Z.S[0],z=jgd(Z)?tcn(Q):g.hj(Q.initData);if(RW(Z.Y)&&!Q.j)Z.S.shift();else{if(Z.j.get(z))if(Z.Y.flavor!=="fairplay"||RW(Z.Y)){Z.S.shift();continue}else Z.j.delete(z);xo9(Q);break}}Z.S.length&&Z.createSession(Z.S[0])}}; Dsx=function(Z){var Q;if(Q=g.kq()){var z;Q=!((z=Z.W.j)==null||!z.getMetrics)}Q&&(Q=Z.W.getMetrics())&&(Q=g.dE(Q),Z.publish("ctmp","drm",{metrics:Q}))}; vzu=function(){var Z=H8f();return!(!Z||Z==="visible")}; YT4=function(Z){var Q=gzM();Q&&document.addEventListener(Q,Z,!1)}; XlG=function(Z){var Q=gzM();Q&&document.removeEventListener(Q,Z,!1)}; gzM=function(){if(document.visibilityState)var Z="visibilitychange";else{if(!document[Sj+"VisibilityState"])return"";Z=Sj+"visibilitychange"}return Z}; STf=function(Z){g.O.call(this);var Q=this;this.Iu=Z;this.t8=0;this.K=this.j=this.L=!1;this.W=0;this.B7=this.Iu.N();this.videoData=this.Iu.getVideoData();this.S=g.Xp(this.B7.experiments,"html5_delayed_retry_count");this.Y=new g.E6(function(){Q.Iu.Hx()},g.Xp(this.B7.experiments,"html5_delayed_retry_delay_ms")); g.W(this,this.Y)}; LK4=function(Z,Q,z){var K=Z.videoData.j,b=Z.videoData.W;l8(Z.Iu.getVideoData())&&Z.B7.V("html5_gapless_fallback_on_qoe_restart")&&cPn(Z.Iu,"pe");if((Q==="progressive.net.retryexhausted"||Q==="fmt.unplayable"||Q==="fmt.decode")&&!Z.Iu.jQ.L&&K&&K.itag==="22")return Z.Iu.jQ.L=!0,Z.U8("qoe.restart",{reason:"fmt.unplayable.22"}),Z.Iu.ED(),!0;var q=!1;if(Z.videoData.isExternallyHostedPodcast){if(q=Z.videoData.fX)z.mimeType=q.type,Z.pN("3pp",{url:q.url});z.ns="3pp";Z.Iu.q8(Q,1,"VIDEO_UNAVAILABLE",d8((new N5(Q, z,1)).details));return!0}var r=Z.t8+3E4<(0,g.Nm)()||Z.Y.isActive();if(Z.B7.V("html5_empty_src")&&Z.videoData.isAd()&&Q==="fmt.unplayable"&&/Empty src/.test(""+z.msg))return z.origin="emptysrc",Z.U8("auth",z),!0;r||h9(Z.Iu.MU())||(z.nonfg="paused",r=!0,Z.Iu.pauseVideo());(Q==="fmt.decode"||Q==="fmt.unplayable")&&(b==null?0:w8(b)||Es(b))&&(igX(Z.B7.L,b.Gf),z.acfallexp=b.Gf,q=r=!0);!r&&Z.S>0&&(Z.Y.start(),r=!0,z.delayed="1",--Z.S);b=Z.Iu.wr;!r&&((K==null?0:e5(K))||(K==null?0:xh(K)))&&(igX(Z.B7.L,K.Gf), q=r=!0,z.cfallexp=K.Gf);if(Z.B7.V("html5_ssap_ignore_decode_error_for_next_video")&&g.V0(Z.videoData)&&Q==="fmt.unplayable"&&z.cid&&z.ccid&&h9(Z.Iu.MU())){if(z.cid!==z.ccid)return z.ignerr="1",Z.U8("ssap.transitionfailure",z),!0;Z.U8("ssap.transitionfailure",z);if($s0(Z.Iu,Q))return!0}if(!r)return Tau(Z,z);if(Z.B7.V("html5_ssap_skip_decoding_clip_with_incompatible_codec")&&g.V0(Z.videoData)&&Q==="fmt.unplayable"&&z.cid&&z.ccid&&z.cid!==z.ccid&&h9(Z.Iu.MU())&&(Z.U8("ssap.transitionfailure",z),$s0(Z.Iu, Q)))return!0;r=!1;Z.L?Z.t8=(0,g.Nm)():r=Z.L=!0;var D=Z.videoData;if(D.CN){D=D.CN.ob();var v=Date.now()/1E3+1800;D=D<v}else D=!1;z.e=Q;z.bkg=vzu();D&&(z.staleprog="1");Z.U8("qoe.restart",z);if(D&&fpn(Z))return hxG(Z),!0;if(!(!g.WX("philips")||Q==="fmt.unplayable"&&b&&b.P7||Z.B7.Y.cplatform==="GAME_CONSOLE"))try{window.close()}catch(Y){}K&&e5(K)&&!Z.B7.V("html5_allow_av1_retry_in_session")?(q=Z.B7.L,q.X=!0,lI(q),q=!0):b?r||(Q=(Q=fv(b.videoTrack)||b.videoTrack.j)?Q.Y:b.videoTrack.Y,Q.K+=1,b.policy.Y? Ux(b.j.Y,Q,!0):uv(b.Y,Q,!0)):Z.videoData.CN&&Z.videoData.CN.i$();Z.Y.isActive()||Z.Iu.Hx(q);return!0}; Tau=function(Z,Q){if(Z.videoData.P7)return!1;Z.B7.sA+=1;if(Z.B7.sA<=10)return!1;Q.exiled=""+Z.B7.sA;Z.U8("qoe.start15s",Q);Z.Iu.publish("playbackstalledatstart");return!0}; fpn=function(Z){return Z.j?!0:Z.B7.jJ==="yt"?Z.videoData.P7?Z.videoData.Ph<25:!Z.videoData.Ph:!1}; hxG=function(Z){if(!Z.j){Z.j=!0;var Q=Z.Iu.getPlayerState();Q=Q.isPaused()||Q.isSuspended();Z.Iu.RR();Q&&!kG(Z.videoData)||Z.Iu.publish("signatureexpired")}}; nzn=function(Z,Q){if((Z=Z.Iu.ES())&&(Q.errorCode==="fmt.unplayable"||Q.errorCode==="html5.invalidstate")){var z=Z.qe();Q.details.merr=z?z.toString():"0";Q.details.mmsg=Z.Fl()}}; cA4=function(Z){return Z.errorCode==="net.badstatus"&&(Z.severity===1||!!Z.details.fmt_unav)}; msG=function(Z,Q){return Z.B7.V("html5_use_network_error_code_enums")&&Q.details.rc===403||Q.details.rc==="403"?(Z=Q.errorCode,Z==="net.badstatus"||Z==="manifest.net.retryexhausted"):!1}; JAG=function(Z,Q){if(!msG(Z,Q)&&!Z.j)return!1;Q.details.sts="20139";if(fpn(Z))return GZ(Q.severity)&&(Q=Object.assign({e:Q.errorCode},Q.details),Q=new N5("qoe.restart",Q)),Z.U8(Q.errorCode,Q.details),hxG(Z),!0;(0,g.Nm)()-Z.B7.N8>6048E5&&Ip0(Z,"signature");return!1}; Ip0=function(Z,Q){try{window.location.reload(),Z.U8("qoe.restart",{detail:"pr."+Q})}catch(z){}}; yAD=function(Z,Q){Q=Q===void 0?"fmt.noneavailable":Q;var z=Z.B7.L;z.T=!1;lI(z);Z.U8("qoe.restart",{e:Q,detail:"hdr"});Z.Iu.Hx(!0)}; dsx=function(Z,Q,z,K,b,q){this.videoData=Z;this.Y=Q;this.reason=z;this.j=K;this.token=b;this.videoId=q}; Nan=function(Z,Q,z){this.Yh=Z;this.oB=Q;this.Iu=z;this.X=this.K=this.Y=this.W=this.T=this.j=0;this.L=!1;this.U=g.Xp(this.Yh.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.S=new Map}; ivD=function(Z,Q,z){!Z.Yh.V("html5_tv_ignore_capable_constraint")&&g.Nf(Z.Yh)&&(z=z.compose(Gbn(Z,Q)));return z}; apu=function(Z){if(Z.Iu.MU().isInline())return UK;var Q;Z.V("html5_exponential_memory_for_sticky")?Q=hC(Z.Yh.bY,"sticky-lifetime")<.5?"auto":Qy[RL()]:Q=Qy[RL()];return g.lJ("auto",Q,!1,"s")}; Rxx=function(Z,Q){var z,K=PHx(Z,(z=Q.Y)==null?void 0:z.videoInfos);z=Z.Iu.getPlaybackRate();return z>1&&K?(Z=Ilx(Z.Yh.L,Q.Y.videoInfos,z),new Ee(0,Z,!0,"o")):new Ee(0,0,!1,"o")}; PHx=function(Z,Q){return Q&&g.Nf(Z.Yh)?Q.some(function(z){return z.video.fps>32}):!1}; CHd=function(Z,Q){var z=Z.Iu.ya();Z.V("html5_use_video_quality_cap_for_ustreamer_constraint")&&z&&z.VK>0&&Z5(Q.videoData.mK)&&(Z=z.VK,Q.videoData.mK=new Ee(0,Z,!1,"u"));return Q.videoData.mK}; Gbn=function(Z,Q){if(g.Nf(Z.Yh)&&Sl(Z.Yh.L,$L.HEIGHT))var z=Q.Y.videoInfos[0].video.Y;else{var K=!!Q.Y.Y;var b;g.Nx(Z.Yh)&&(b=window.screen&&window.screen.width?new g.SO(window.screen.width,window.screen.height):null);b||(b=Z.Yh.kZ?Z.Yh.kZ.clone():Z.oB.KZ());(eL||tZ||K)&&b.scale(g.Vf());K=b;sH(Q.videoData)||kG(Q.videoData);Q=Q.Y.videoInfos;if(Q.length){b=g.Xp(Z.Yh.experiments,"html5_override_oversend_fraction")||.85;var q=Q[0].video;q.projectionType!=="MESH"&&q.projectionType!=="EQUIRECTANGULAR"&& q.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||yf||(b=.45);Z=g.Xp(Z.Yh.experiments,"html5_viewport_undersend_maximum");for(q=0;q<Q.length;q++){z=Q[q];var r=z.video;if(K===null||r.width*b<K.width&&r.height*b<K.height){Z&&q&&r.width<K.width*Z&&r.height<K.height*Z&&(z=Q[q-1]);break}}K=z.video;z=new Ee(0,z.itag==="93"?g.o3[Os(K.width,K.height)]:K.Y,!1,"r")}else z=UK;z=z.Y}z&&(z=Math.max(z,360));return new Ee(0,z,!1,"r")}; plr=function(Z,Q){var z;a:if((z=Q.Y)&&z.videoInfos.length){for(var K=g.n(z.videoInfos),b=K.next();!b.done;b=K.next()){b=b.value;var q=void 0;if((q=b.j)==null?0:q.smooth){z=b.video.Y;break a}}z=z.videoInfos[0].video.Y}else z=0;fbG()&&!g.Nf(Z.Yh)&&xh(Q.Y.videoInfos[0])&&(z=Math.min(z,g.o3.large));K=g.Xp(Z.Yh.experiments,"html5_chipset_soft_cap");K>0&&(z=Math.min(z,K));if(K=g.Xp(Z.Yh.experiments,"html5_max_vertical_resolution")){Z=4320;for(b=0;b<Q.Y.videoInfos.length;b++)q=Q.Y.videoInfos[b],q.video.height> K&&(Z=Math.min(Z,q.video.Y));if(Z<4320){for(b=K=0;b<Q.Y.videoInfos.length;b++)q=Q.Y.videoInfos[b].video.Y,q<Z&&(K=Math.max(K,q));K&&(z=Math.min(K,z))}}return new Ee(0,z,!1,"o")}; Mwd=function(Z,Q){var z=4320;!Z.Yh.j||g.GK(Z.Yh)||Z.Yh.V("hls_for_vod")||Z.Yh.V("mweb_remove_360p_cap")||(z=g.o3.medium);var K=g.Xp(Z.Yh.experiments,"html5_default_quality_cap");K&&Q.Y.Y&&(Z.Yh.V("html5_always_apply_default_quality_cap")||!Q.videoData.b0&&!Q.videoData.NR)&&(z=Math.min(z,K));K=g.Xp(Z.Yh.experiments,"html5_random_playback_cap");var b=/[a-h]$/;K&&b.test(Q.videoData.clientPlaybackNonce)&&(z=Math.min(z,K));if(b=K=g.Xp(Z.Yh.experiments,"html5_hfr_quality_cap"))a:{b=Q.Y;if(b.Y){b=g.n(b.videoInfos); for(var q=b.next();!q.done;q=b.next())if(q.value.video.fps>32){b=!0;break a}}b=!1}b&&(z=Math.min(z,K));(K=g.Xp(Z.Yh.experiments,"html5_live_quality_cap"))&&Q.videoData.isLivePlayback&&(z=Math.min(z,K));z=HvD(Z,Q,z);Z=g.Xp(Z.Yh.experiments,"html5_byterate_soft_cap");return new Ee(0,z===4320?0:z,!1,"d",Z)}; Us9=function(Z){var Q,z,K,b;return g.C(function(q){switch(q.Y){case 1:return Z.Y.Y&&typeof((Q=navigator.mediaCapabilities)==null?void 0:Q.decodingInfo)==="function"?g.P(q,Promise.resolve(),2):q.return(Promise.resolve());case 2:z=g.n(Z.Y.videoInfos),K=z.next();case 3:if(K.done){q.O$(0);break}b=K.value;return g.P(q,XMn(b),4);case 4:K=z.next(),q.O$(3)}})}; ozM=function(Z,Q){if(!Q.videoData.j||Z.V("html5_disable_performance_downgrade"))return!1;Date.now()-Z.T>6E4&&(Z.j=0);Z.j++;Z.T=Date.now();if(Z.j!==4)return!1;Ovx(Z,Q.videoData.j);return!0}; WKG=function(Z,Q,z,K){if(!Q||!z||!Q.videoData.j)return!1;var b=g.Xp(Z.Yh.experiments,"html5_df_downgrade_thresh"),q=Z.V("html5_log_media_perf_info");if(!((0,g.Nm)()-Z.W<5E3?0:q||b>0))return!1;var r=((0,g.Nm)()-Z.W)/1E3;Z.W=(0,g.Nm)();z=z.getVideoPlaybackQuality();if(!z)return!1;var D=z.droppedVideoFrames-Z.K,v=z.totalVideoFrames-Z.X;Z.K=z.droppedVideoFrames;Z.X=z.totalVideoFrames;var Y=z.displayCompositedVideoFrames===0?0:z.displayCompositedVideoFrames||-1;q&&Z.Yh.aT()&&Z.Iu.pN("ddf",{dr:z.droppedVideoFrames, de:z.totalVideoFrames,comp:Y});if(K)return Z.Y=0,!1;if((v-D)/r>Z.U||!b||g.Nf(Z.Yh))return!1;Z.Y=(v>60?D/v:0)>b?Z.Y+1:0;if(Z.Y!==3)return!1;Ovx(Z,Q.videoData.j);Z.Iu.pN("dfd",Object.assign({dr:z.droppedVideoFrames,de:z.totalVideoFrames},Bar()));return!0}; Ovx=function(Z,Q){var z=Q.Gf,K=Q.video.fps,b=Q.video.Y-1,q=Z.S;Q=""+z+(K>49?"p60":K>32?"p48":"");z=JR(z,K,q);b>0&&(z=Math.min(z,b));if(!LP.has(Q)&&H3().includes(Q)){var r=z;z=pY();+z[Q]>0&&(r=Math.min(+z[Q],r));z[Q]!==r&&(z[Q]=r,g.CS("yt-player-performance-cap",z,2592E3))}else if(LP.has(Q)||q==null){a:{r=r===void 0?!0:r;K=H3().slice();if(r){if(K.includes(Q))break a;K.push(Q)}else{if(!K.includes(Q))break a;K.splice(K.indexOf(Q),1)}g.CS("yt-player-performance-cap-active-set",K,2592E3)}IW.set(Q,z)}else LP.add(Q), q==null||q.set(Q,z);Z.Iu.mC()}; nP=function(Z,Q){if(!Q.Y.Y)return Z.L?new Ee(0,360,!1,"b"):UK;for(var z=!1,K=!1,b=g.n(Q.Y.videoInfos),q=b.next();!q.done;q=b.next())e5(q.value)?z=!0:K=!0;z=z&&K;K=0;b=g.Xp(Z.Yh.experiments,"html5_performance_cap_floor");b=Z.Yh.j?240:b;Q=g.n(Q.Y.videoInfos);for(q=Q.next();!q.done;q=Q.next()){var r=q.value;if(!z||!e5(r))if(q=JR(r.Gf,r.video.fps,Z.S),r=r.video.Y,Math.max(q,b)>=r){K=r;break}}return new Ee(0,K,!1,"b")}; VwM=function(Z,Q){var z=Z.Iu.MU();return z.isInline()&&!Q.PD?new Ee(0,480,!1,"v"):z.isBackground()&&yJ()/1E3>60&&!g.Nf(Z.Yh)?new Ee(0,360,!1,"v"):UK}; kbX=function(Z,Q,z){if(Z.Yh.experiments.XI("html5_disable_client_autonav_cap_for_onesie")&&Q.fetchType==="onesie"||g.Nf(Z.Yh)&&(RL(-1)>=1080||Q.osid))return UK;var K=g.Xp(Z.Yh.experiments,"html5_autonav_quality_cap"),b=g.Xp(Z.Yh.experiments,"html5_autonav_cap_idle_secs");return K&&Q.isAutonav&&yJ()/1E3>b?(z&&(K=HvD(Z,z,K)),new Ee(0,K,!1,"e")):UK}; HvD=function(Z,Q,z){if(Z.V("html5_optimality_defaults_chooses_next_higher")&&z)for(Z=Q.Y.videoInfos,Q=1;Q<Z.length;Q++)if(Z[Q].video.Y<z)return Z[Q-1].video.Y;return z}; uWf=function(Z,Q){Z.V("html5_log_media_perf_info")&&(Z.Iu.pN("perfdb",Bar()),Z.Iu.pN("sessionperfdb",Object.fromEntries(IW.entries())),Z.Iu.pN("playbackperfdb",Object.fromEntries(Z.S.entries())),Z.Iu.pN("hwc",{nch:navigator.hardwareConcurrency},!0),Q&&Z.Iu.pN("mcdb",{itags:Q.Y.videoInfos.filter(function(z){var K;return((K=z.j)==null?void 0:K.smooth)===!1}).map(function(z){return z.itag}).join("-")}))}; Bar=function(){return Lx(pY(),function(Z){return""+Z})}; cb=function(Z){g.O.call(this);var Q=this;this.provider=Z;this.Y=-1;this.L=!1;this.j=-1;this.playerState=new g.Kg;this.networkErrorCount=this.rebufferTimeSecs=this.playTimeSecs=this.W=0;this.encounteredSabrFallback=!1;this.seekCount=this.nonNetworkErrorCount=0;this.delay=new g.E6(this.send,6E4,this);this.S=!1;this.jsErrorCount=0;this.zz={EV:function(){Q.EV()}}; this.EV=function(){Q.jsErrorCount++}; g.W(this,this.delay);window.addEventListener("error",this.EV);window.addEventListener("unhandledrejection",this.EV)}; xsd=function(Z){Z.Y>=0||(Z.provider.Iu.getVisibilityState()===3?Z.L=!0:(Z.Y=g.m4(Z.provider),Z.delay.start()))}; twM=function(Z){if(!(Z.j<0)){var Q=g.m4(Z.provider),z=Q-Z.W;Z.W=Q;Z.playerState.state===8?Z.playTimeSecs+=z:Z.playerState.isBuffering()&&!g.t(Z.playerState,16)&&(Z.rebufferTimeSecs+=z)}}; FK0=function(Z){var Q;switch((Q=Z.Yh.playerCanaryStage)==null?void 0:Q.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"}}; exu=function(Z){return window.PressureObserver&&new window.PressureObserver(Z)}; wlM=function(Z){Z=Z===void 0?exu:Z;g.O.call(this);var Q=this;try{this.S=Z(function(K){Q.j=K.at(-1)}); var z;this.W=(z=this.S)==null?void 0:z.observe("cpu",{sampleInterval:2E3}).catch(function(K){K instanceof DOMException&&(Q.Y=K)})}catch(K){K instanceof DOMException&&(this.Y=K)}}; Ezn=function(Z){var Q={},z=window.h5vcc;Q.hwConcurrency=navigator.hardwareConcurrency;Z.Y&&(Q.cpe=Z.Y.message);Z.j&&(Q.cpt=Z.j.time,Q.cps=Z.j.state);if(z==null?0:z.cVal)Q.cb2s=z.cVal.getValue("CPU.Total.Usage.IntervalSeconds.2"),Q.cb5s=z.cVal.getValue("CPU.Total.Usage.IntervalSeconds.5"),Q.cb30s=z.cVal.getValue("CPU.Total.Usage.IntervalSeconds.30");return Q}; lpW=function(Z){var Q;g.C(function(z){switch(z.Y){case 1:return g.nX(z,2),g.P(z,Z.W,4);case 4:g.m9(z,3);break;case 2:g.I0(z);case 3:(Q=Z.S)==null||Q.disconnect(),g.LX(z)}})}; Z1x=function(Z,Q){Q?sPW.test(Z):(Z=g.bV(Z),Object.keys(Z).includes("cpn"))}; z9d=function(Z,Q,z,K,b,q,r){var D={format:"RAW"},v={};if(AN(Z)&&jL()){if(r){var Y;((Y=QP9.uaChPolyfill)==null?void 0:Y.state.type)!==2?r=null:(r=QP9.uaChPolyfill.state.data.values,r={"Synth-Sec-CH-UA-Arch":r.architecture,"Synth-Sec-CH-UA-Model":r.model,"Synth-Sec-CH-UA-Platform":r.platform,"Synth-Sec-CH-UA-Platform-Version":r.platformVersion,"Synth-Sec-CH-UA-Full-Version":r.uaFullVersion});v=Object.assign(v,r);D.withCredentials=!0}(r=g.Ft("EOM_VISITOR_DATA"))?v["X-Goog-EOM-Visitor-Id"]=r:K?v["X-Goog-Visitor-Id"]= K:g.Ft("VISITOR_DATA")&&(v["X-Goog-Visitor-Id"]=g.Ft("VISITOR_DATA"));z&&(v["X-Goog-PageId"]=z);(K=Q.P7)&&!ua(Q)&&(v["X-Goog-AuthUser"]=K);b&&(v.Authorization="Bearer "+b);Q.V("enable_datasync_id_header_in_web_vss_pings")&&Q.K4&&Q.datasyncId&&(v["X-YouTube-DataSync-Id"]=Q.datasyncId);r||v["X-Goog-Visitor-Id"]||b||z||K?D.withCredentials=!0:Q.V("html5_send_cpn_with_options")&&sPW.test(Z)&&(D.withCredentials=!0)}Object.keys(v).length>0&&(D.headers=v);q&&(D.onFinish=q);return Object.keys(D).length>1? D:null}; KTr=function(Z,Q,z,K,b,q,r,D){jL()&&z.token&&(Z=qi(Z,{ctt:z.token,cttype:z.Ue,mdx_environment:z.mdxEnvironment}));K.V("net_pings_low_priority")&&(Q||(Q={}),Q.priority="low");q||D&&K.V("nwl_skip_retry")?(Q==null?Q={}:Z1x(Z,K.V("html5_assert_cpn_with_regex")),r?wM().sendAndWrite(Z,Q):wM().sendThenWrite(Z,Q,D)):Q?(Z1x(Z,K.V("html5_assert_cpn_with_regex")),K.V("net_pings_use_fetch")?rOd(Z,Q):g.yC(Z,Q)):g.of(Z,b)}; b1n=function(Z){for(var Q=[],z=0;z<Z;z++){for(var K={},b=Math.floor(Math.random()*9*1E8)+1E8,q="",r=0;r<9;r++)q+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(Math.random()*52)];K.videoDecoderName=q;K.elapsedTimeMs=b;Q.push(K)}return Q}; qrG=function(Z){return window.Profiler&&new window.Profiler(Z)}; rin=function(Z){/[^a-zA-Z0-9;.!_-]/.test(Z)&&(Z=Z.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return Z}; IK=function(Z,Q,z){z=z===void 0?qrG:z;g.O.call(this);this.sampleInterval=Z;this.maxBufferSize=Q;this.L=z;this.encoder=new ba;this.Y=[];this.S=0;Aif(this)}; Aif=function(Z){var Q=Z.sampleInterval,z=Z.maxBufferSize;if(Q>0&&z>0&&!Z.j&&Z.S<1E7)try{Z.W=Z.L({sampleInterval:Q,maxBufferSize:z});var K;(K=Z.W)==null||K.addEventListener("samplebufferfull",function(){return g.C(function(b){if(b.Y==1)return g.P(b,Z.stop(),2);Aif(Z);g.LX(b)})})}catch(b){Z.j=rin(b.message)}}; J9=function(Z,Q){var z,K;return!!((z=window.h5vcc)==null?0:(K=z.settings)==null?0:K.set(Z,Q))}; Dd9=function(){var Z,Q,z,K=(Z=window.h5vcc)==null?void 0:(Q=Z.settings)==null?void 0:(z=Q.getPersistentSettingAsString)==null?void 0:z.call(Q,"cpu_usage_tracker_intervals");if(K!=null){var b;Z=(b=JSON.parse(K))!=null?b:[];b=Z.filter(function(Y){return Y.type==="total"}).map(function(Y){return Y.seconds}); Q=g.n(jP0);for(z=Q.next();!z.done;z=Q.next())z=z.value,b.indexOf(z)===-1&&Z.push({type:"total",seconds:z});var q,r;(q=window.h5vcc)==null||(r=q.settings)==null||r.set("cpu_usage_tracker_intervals_enabled",1);var D,v;(D=window.h5vcc)==null||(v=D.settings)==null||v.set("cpu_usage_tracker_intervals",JSON.stringify(Z))}}; vOW=function(){var Z=window.H5vccPlatformService,Q="";if(Z&&Z.has("dev.cobalt.coat.clientloginfo")&&(Z=Z.open("dev.cobalt.coat.clientloginfo",function(){}))){var z=Z.send(new ArrayBuffer(0)); z&&(Q=String.fromCharCode.apply(String,g.I(new Uint8Array(z))));Z.close()}return Q}; g.NM=function(Z,Q){g.O.call(this);var z=this;this.provider=Z;this.logger=new g.EV("qoe");this.Y={};this.sequenceNumber=1;this.K=NaN;this.gf="N";this.U=this.S3=this.j3=this.F7=this.L=0;this.ih=this.Vp=this.T=this.Du="";this.Ph=this.tG=NaN;this.Sp=0;this.De=-1;this.fL=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.Qp=this.isEmbargoed=this.KN=this.isOffline=this.isBuffering=!1;this.kL=[];this.SJ=null;this.CN=this.S=this.qB=this.X=!1;this.j=-1;this.s$=!1;this.A4=new g.E6(this.S$I,750,this);this.jJ= this.adCpn=this.P7=this.contentCpn="";this.adFormat=void 0;this.yk=0;this.IW=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.zJ=new Set(["gd"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.gq=!1;this.sA=NaN;this.c7=0;this.DI=!1;this.JG=0;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.X7=!1;this.zz={Mo:function(b){z.Mo(b)}, uvY:function(){return z.W}, XB:function(){return z.contentCpn}, gAB:function(){return z.P7}, reportStats:function(){z.reportStats()}, peJ:function(){return z.Y.cat}, Qa:function(b){return z.Y[b]}, pMg:function(){return z.JG}}; var K=g.Xp(this.provider.Yh.experiments,"html5_qoe_proto_mock_length");K&&!yD.length&&(yD=b1n(K));g.W(this,this.A4);try{navigator.getBattery().then(function(b){z.SJ=b})}catch(b){}g.dY(this,0,"vps",["N"]); Z.Yh.aT()&&(this.c7=(0,g.Nm)(),this.sA=g.Tr(function(){var b=(0,g.Nm)(),q=b-z.c7;q>500&&z.pN("vmlock",{diff:q.toFixed()});z.c7=b},250)); Z.Iu.wp()&&Q&&(this.JG=Q-Math.round(g.m4(Z)*1E3));this.provider.videoData.b0&&(this.remoteControlMode=gO0[this.provider.videoData.b0]||0);this.provider.videoData.QF&&(Q=pe4(this.provider.videoData.QF),Q==null?0:Q.length)&&(this.remoteConnectedDevices=Q);if(Z.Yh.aT()||Z.V("html5_log_cpu_info"))this.NB=new wlM,g.W(this,this.NB);Q=g.Xp(Z.Yh.experiments,"html5_js_self_profiler_sample_interval_ms");Z=g.Xp(Z.Yh.experiments,"html5_js_self_profiler_max_samples");Q>0&&Z>0&&(this.Zu=new IK(Q,Z),g.W(this,this.Zu))}; g.dY=function(Z,Q,z,K){var b=Z.Y[z];b||(b=[],Z.Y[z]=b);b.push(Q.toFixed(3)+":"+K.join(":"))}; Yrf=function(Z,Q){var z=Z.adCpn||Z.provider.videoData.clientPlaybackNonce,K=Z.provider.getCurrentTime(z);g.dY(Z,Q,"cmt",[K.toFixed(3)]);K=Z.provider.XJ(z);if(Z.W&&K*1E3>Z.W.im+100&&Z.W){var b=Z.W;z=b.isAd;K=K*1E3-b.im;Z.n7=Q*1E3-b.KYg-K-b.Y6h;b=(0,g.Nm)()-K;Q=Z.n7;K=Z.provider.videoData;var q=K.isAd();if(z||q){q=(z?"ad":"video")+"_to_"+(q?"ad":"video");var r={};K.K&&(r.cttAuthInfo={token:K.K,videoId:K.videoId});r.startTime=b-Q;BO(q,r);g.oC({targetVideoId:K.videoId,targetCpn:K.clientPlaybackNonce}, q);Ow("pbs",b,q)}else b=Z.provider.Iu.hx(),b.K!==K.clientPlaybackNonce?(b.L=K.clientPlaybackNonce,b.j=Q):K.aF()||g.CO(new g.tW("CSI timing logged before gllat",{cpn:K.clientPlaybackNonce}));Z.pN("gllat",{l:Z.n7.toFixed(),prev_ad:+z});delete Z.W}}; GA=function(Z,Q){Q=Q===void 0?NaN:Q;Q=Q>=0?Q:g.m4(Z.provider);var z=Z.provider.Iu.X6(),K=z.Fd-(Z.tG||0);K>0&&g.dY(Z,Q,"bwm",[K,(z.ub-(Z.Ph||0)).toFixed(3)]);isNaN(Z.tG)&&z.Fd&&Z.isOffline&&Z.Mo(!1);Z.tG=z.Fd;Z.Ph=z.ub;isNaN(z.bandwidthEstimate)||g.dY(Z,Q,"bwe",[z.bandwidthEstimate.toFixed(0)]);Z.provider.Yh.aT()&&Object.keys(z.Y).length!==0&&Z.pN("bwinfo",z.Y);if(Z.provider.Yh.aT()||Z.provider.Yh.V("html5_log_meminfo"))K=RvG(),Object.values(K).some(function(q){return q!==void 0})&&Z.pN("meminfo", K); if(Z.provider.Yh.aT()||Z.provider.Yh.V("html5_log_cpu_info")){var b;(K=(b=Z.NB)==null?void 0:Ezn(b))&&Object.values(K).some(function(q){return q!=null})&&Z.pN("cpuinfo",K)}Z.Zu&&Z.pN("jsprof",Z.Zu.flush()); Z.SJ&&g.dY(Z,Q,"bat",[Z.SJ.level,Z.SJ.charging?"1":"0"]);b=Z.provider.Iu.getVisibilityState();Z.De!==b&&(g.dY(Z,Q,"vis",[b]),Z.De=b);Yrf(Z,Q);(b=XPn(Z.provider))&&b!==Z.Sp&&(g.dY(Z,Q,"conn",[b]),Z.Sp=b);Sr9(Z,Q,z)}; Sr9=function(Z,Q,z){if(!isNaN(z.tC)){var K=z.tC;z.j<K&&(K=z.j);g.dY(Z,Q,"bh",[K.toFixed(3)])}}; $dW=function(Z,Q,z){g.la(Z.provider.Yh,g.B0(Z.provider.videoData)).then(function(K){var b=!1;if(Q.includes("&dt=")||Q.includes("&cotn=")){if(Z.provider.Yh.V("kevlar_woffle")||Z.provider.Yh.V("qoe_nwl_downloads"))b=!0}else Z.provider.Yh.V("qoe_with_networkless")&&(b=!0);var q=Z.provider.Yh.V("qoe_send_and_write"),r=Z.provider.Yh;K=z9d(Q,r,Z.provider.Yh.pageId,Z.provider.Yh.sendVisitorIdHeader?Z.provider.videoData.visitorData:void 0,K);r.V("html5_simplify_pings")&&(K=K||{});K?(K.method="POST",K.postBody= z,KTr(Q,K,{token:Z.provider.videoData.K,Ue:Z.provider.videoData.V2,mdxEnvironment:Z.provider.videoData.mdxEnvironment},r,void 0,b,q&&Z.KN)):b?(b=Z.provider.Yh.V("networkless_ajax"),r={method:"POST",postBody:z},q&&Z.KN?wM().sendAndWrite(Q,r):b?g.yC(Q,{method:"POST",postBody:z}):wM().sendThenWrite(Q,r)):(q=z,q=q===void 0?"":q,jnf(Q,q)||g.of(Q,void 0,void 0,void 0,q))})}; THD=function(Z){for(var Q=0,z=g.n(Object.keys(Z.Y)),K=z.next();!K.done;K=z.next())K=K.value,Q+=K.length+Number(J$(Z.Y[K],function(b,q){return b+q.length},0)); Q>96E3&&(new g.E6(Z.reportStats,0,Z)).start()}; fiu=function(Z){Z.provider.videoData.IW&&iX(Z,"prefetch");Z.provider.videoData.Ph&&Z.pN("reload",{r:Z.provider.videoData.reloadReason,ct:Z.provider.videoData.Ph});Z.provider.videoData.qB&&iX(Z,"monitor");Z.provider.videoData.isLivePlayback&&iX(Z,"live");xQ&&iX(Z,"streaming");Z.provider.videoData.b0&&Z.pN("ctrl",{mode:Z.provider.videoData.b0},!0);if(Z.provider.videoData.QF){var Q=Z.provider.videoData.QF.replace(/,/g,"_");Z.pN("ytp",{type:Q},!0)}Z.provider.videoData.fW&&(Q=Z.provider.videoData.fW.replace(/,/g, "."),Z.pN("ytrexp",{ids:Q},!0));var z=Z.provider.videoData;Q=Z.provider.Yh.V("enable_white_noise")||Z.provider.Yh.V("enable_webgl_noop");z=g.gP(z)||g.JP(z)||g.ya(z)||g.dP(z);(Q||z)&&(Q=(0,g.aK)())&&(Z.Y.gpu=[Q]);kG(Z.provider.videoData)&&g.dY(Z,g.m4(Z.provider),"dt",["1"]);Z.provider.Yh.aT()&&(Q=(0,g.Nm)()-Z.provider.Yh.N8,Z.pN("playerage",{secs:Math.pow(1.6,Math.round(Math.log(Q/1E3)/Math.log(1.6))).toFixed()}));Z.S=!0;Z.K=g.Tr(function(){Z.reportStats()},1E4)}; LTn=function(Z,Q,z){var K=g.m4(Z.provider);h9W(Z,K,Q,0,z);GA(Z,K);THD(Z)}; h9W=function(Z,Q,z,K,b){var q=Z.provider.Yh.Y.cbrver;Z.provider.Yh.Y.cbr==="Chrome"&&/^96[.]/.test(q)&&z==="net.badstatus"&&/rc\.500/.test(b)&&nOM(Z,3);Z.provider.Yh.V("html5_use_ump")&&/b248180278/.test(b)&&nOM(Z,4);q=Z.provider.getCurrentTime(Z.adCpn||Z.provider.videoData.clientPlaybackNonce);K=K===1?"fatal":"";z=[z,K,q.toFixed(3)];K&&(b+=";a6s."+jd());b&&z.push(ci4(b));g.dY(Z,Q,"error",z);Z.S=!0}; mdG=function(Z){Z.j>=0||(Z.provider.Yh.ex||Z.provider.Iu.getVisibilityState()!==3?Z.j=g.m4(Z.provider):Z.s$=!0)}; Iin=function(Z,Q,z,K){if(z!==Z.gf){Q<Z.L||(Z.gf==="PL"?Z.playTimeSecs+=Q-Z.L:Z.gf==="B"&&Z.isBuffering&&(Z.isBuffering=!1,Z.rebufferTimeSecs+=Q-Z.F7,!Z.Qp&&Z.rebufferTimeSecs>=10&&Z.playTimeSecs<=180&&(Z.Y.qoealert=["1"],Z.Qp=!0)),z!=="B"||Z.gf!=="PL"&&Z.gf!=="PB"||(Z.isBuffering=!0),Z.L=Q);Z.gf==="PL"&&(z==="B"||z==="S")||Z.provider.Yh.aT()?GA(Z,Q):(Z.gq||z!=="PL"||(Z.gq=!0,Sr9(Z,Q,Z.provider.Iu.X6())),Yrf(Z,Q));z==="PL"&&g.lR(Z.A4);var b=[z];z==="S"&&K&&b.push("ss."+K);g.dY(Z,Q,"vps",b);Z.gf=z; Z.F7=Q;Z.L=Q;Z.S=!0}}; iX=function(Z,Q){var z=Z.Y.cat||[];z.push(Q);Z.Y.cat=z}; Pb=function(Z,Q,z,K,b,q){var r=g.m4(Z.provider);z!==1&&z!==3&&z!==5||g.dY(Z,r,"vps",[Z.gf]);var D=Z.Y.xvt||[];D.push("t."+r.toFixed(3)+";m."+q.toFixed(3)+";g."+Q+";tt."+z+";np.0;c."+K+";d."+b);Z.Y.xvt=D}; nOM=function(Z,Q){if(!Z.CN){var z=Z.Y.fcnz;z||(z=[],Z.Y.fcnz=z);z.push(String(Q));Z.CN=!0}}; ci4=function(Z){/[^a-zA-Z0-9;.!_-]/.test(Z)&&(Z=Z.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return Z}; JiG=function(Z){this.provider=Z;this.T=!1;this.Y=0;this.W=-1;this.qO=NaN;this.S=0;this.segments=[];this.K=this.L=0;this.previouslyEnded=!1;this.U=this.provider.Iu.getVolume();this.X=this.provider.Iu.isMuted()?1:0;this.j=RK(this.provider)}; CP=function(Z){Z.j.startTime=Z.S;Z.j.endTime=Z.Y;var Q=!1;Z.segments.length&&g.x$(Z.segments).isEmpty()?(Z.segments[Z.segments.length-1].previouslyEnded&&(Z.j.previouslyEnded=!0),Z.segments[Z.segments.length-1]=Z.j,Q=!0):Z.segments.length&&Z.j.isEmpty()||(Z.segments.push(Z.j),Q=!0);Q?Z.j.endTime===0&&(Z.previouslyEnded=!1):Z.j.previouslyEnded&&(Z.previouslyEnded=!0);Z.L+=Z.Y-Z.S;Z.j=RK(Z.provider);Z.j.previouslyEnded=Z.previouslyEnded;Z.previouslyEnded=!1;Z.S=Z.Y}; dd9=function(Z){yiX(Z);Z.K=g.Tr(function(){Z.update()},100); Z.qO=g.m4(Z.provider);Z.j=RK(Z.provider)}; yiX=function(Z){g.hN(Z.K);Z.K=NaN}; NH0=function(Z,Q,z){z-=Z.qO;return Q===Z.Y&&z>.5}; Gmx=function(Z,Q,z,K){this.Yh=Q;this.ih=z;this.segments=[];this.experimentIds=[];this.Zu=this.F7=this.isFinal=this.delayThresholdMet=this.gq=this.De=this.autoplay=this.autonav=!1;this.Sp="yt";this.K=[];this.T=this.U=null;this.sendVisitorIdHeader=this.s$=!1;this.X=this.pageId="";this.L=z==="watchtime";this.S=z==="playback";this.P7=z==="atr";this.ex=z==="engage";this.sendVisitorIdHeader=!1;this.uri=this.P7?"/api/stats/"+z:"//"+Q.f$+"/api/stats/"+z;K&&(this.F7=K.fs,K.rtn&&(this.T=K.rtn),this.L?(this.playerState= K.state,K.rti>0&&(this.U=K.rti)):(this.aC=K.mos,this.YJ=K.volume,K.at&&(this.adType=K.at)),K.autonav&&(this.autonav=K.autonav),K.inview!=null&&(this.fL=K.inview),K.size&&(this.Ph=K.size),K.playerwidth&&(this.playerWidth=K.playerwidth),K.playerheight&&(this.playerHeight=K.playerheight));this.zJ=g.ae(Q.Y);this.X=tR(Q.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.X==="all"||this.X==="once")this.DI=g.ae(Q.ih);this.bY=Q.NB;this.experimentIds=L3u(Q.experiments);this.Du=Q.DI;this.Sp=Q.jJ;this.region= Q.region;this.userAge=Q.userAge;this.qB=Q.J6;this.kL=yJ();this.sendVisitorIdHeader=Q.sendVisitorIdHeader;this.JG=Q.V("vss_pings_using_networkless")||Q.V("kevlar_woffle");this.N8=Q.V("vss_final_ping_send_and_write");this.KN=Q.V("vss_use_send_and_write");this.pageId=Q.pageId;this.y7=Q.V("vss_playback_use_send_and_write");Q.livingRoomAppMode&&(this.livingRoomAppMode=Q.livingRoomAppMode);this.Pg=Q.W&&Q.V("embeds_append_synth_ch_headers");g.mj(Q)&&(this.Vp=Q.JG);g.DT(g.PZ(Q))&&this.K.push(1);this.accessToken= g.B0(Z);Z.Jl[this.ih]?this.W=Z.Jl[this.ih]:Z.Jl.playback&&(this.W=Z.Jl.playback);this.adFormat=Z.adFormat;this.adQueryId=Z.adQueryId;this.autoplay=oG(Z);this.S&&(this.De=(Z.V("html5_enable_log_server_autoplay")||Z.V("enable_cleanup_masthead_autoplay_hack_fix"))&&Z.fC&&p3(Z)==="adunit"?!0:!1);this.autonav=Z.isAutonav||this.autonav;this.contentVideoId=UH(Z);this.clientPlaybackNonce=Z.clientPlaybackNonce;this.gq=Z.BN;Z.K&&(this.jJ=Z.K,this.Qp=Z.V2);Z.mdxEnvironment&&(this.mdxEnvironment=Z.mdxEnvironment); this.Y=Z.Zu;this.X7=Z.X7;Z.j&&(this.IW=Z.j.itag,Z.W&&Z.W.itag!==this.IW&&(this.CN=Z.W.itag));Z.Y&&rL(Z.Y)&&(this.offlineDownloadUserChoice="1");this.eventLabel=p3(Z);this.Zu=Z.bY?!1:Z.ex;this.yk=Z.FN;if(Q=f3(Z))this.Q7=Q;this.Uv=Z.G7;this.partnerId=Z.partnerId;this.eventId=Z.eventId;this.playlistId=Z.Nl||Z.playlistId;this.St=Z.St;this.b0=Z.b0;this.QF=Z.QF;this.xA=Z.xA;this.subscribed=Z.subscribed;this.videoId=Z.videoId;this.videoMetadata=Z.videoMetadata;this.visitorData=Z.visitorData;this.osid=Z.osid; this.Bn=Z.Bn;this.referrer=Z.referrer;this.Al=Z.iQ||Z.Al;this.NB=Z.aN;this.dk=Z.dk;this.userGenderAge=Z.userGenderAge;this.j5=Z.j5;this.embedsRct=Z.embedsRct;this.embedsRctn=Z.embedsRctn;g.mj(this.Yh)&&Z.mutedAutoplay&&(Z.mutedAutoplayDurationMode===2&&Z.limitedPlaybackDurationInSeconds===0&&Z.endSeconds===0?this.K.push(7):this.K.push(2));Z.isEmbedsShortsMode(new g.SO(this.playerWidth,this.playerHeight),!!this.playlistId)&&this.K.push(3);g.EH(Z)&&this.K.push(4);this.tG=Z.mS;Z.compositeLiveIngestionOffsetToken&& (this.compositeLiveIngestionOffsetToken=Z.compositeLiveIngestionOffsetToken)}; i1n=function(Z,Q){var z=Z.sendVisitorIdHeader?Z.visitorData:void 0;return g.la(Z.Yh,Z.accessToken).then(function(K){return z9d(Z.uri,Z.Yh,Z.pageId,z,K,Q,Z.Pg)})}; R9X=function(Z,Q){return function(){Z.Yh.V("html5_simplify_pings")?(Z.Y=Z.c7,Z.A4=Q(),Z.kL=0,Z.send()):i1n(Z).then(function(z){var K=aiM(Z);K.cmt=K.len;K.lact="0";var b=Q().toFixed(3);K.rt=Number(b).toString();K=g.BK(Z.uri,K);Z.Yh.V("vss_through_gel_double")&&Pgu(K);Z.JG?(z==null&&(z={}),Z.KN?wM().sendAndWrite(K,z):wM().sendThenWrite(K,z)):z?g.yC(K,z):g.of(K)})}}; aiM=function(Z){var Q={ns:Z.Sp,el:Z.eventLabel,cpn:Z.clientPlaybackNonce,ver:2,cmt:Z.j(Z.Y),fmt:Z.IW,fs:Z.F7?"1":"0",rt:Z.j(Z.A4),adformat:Z.adFormat,content_v:Z.contentVideoId,euri:Z.bY,lact:Z.kL,live:Z.Q7,cl:(728910285).toString(),mos:Z.aC,state:Z.playerState,volume:Z.YJ};Z.subscribed&&(Q.subscribed="1");Object.assign(Q,Z.zJ);Z.X==="all"?Object.assign(Q,Z.DI):Z.X==="once"&&Z.S&&Object.assign(Q,Z.DI);Z.autoplay&&(Q.autoplay="1");Z.De&&(Q.sautoplay="1");Z.gq&&(Q.dni="1");!Z.L&&Z.Vp&&(Q.epm=CgX[Z.Vp]); Z.isFinal&&(Q["final"]="1");Z.Zu&&(Q.splay="1");Z.X7&&(Q.delay=Z.X7);Z.Du&&(Q.hl=Z.Du);Z.region&&(Q.cr=Z.region);Z.userGenderAge&&(Q.uga=Z.userGenderAge);Z.userAge!==void 0&&Z.qB&&(Q.uga=Z.qB+Z.userAge);Z.c7!==void 0&&(Q.len=Z.j(Z.c7));!Z.L&&Z.experimentIds.length>0&&(Q.fexp=Z.experimentIds.toString());Z.T!==null&&(Q.rtn=Z.j(Z.T));Z.Al&&(Q.feature=Z.Al);Z.b0&&(Q.ctrl=Z.b0);Z.QF&&(Q.ytr=Z.QF);Z.CN&&(Q.afmt=Z.CN);Z.offlineDownloadUserChoice&&(Q.ODUC=Z.offlineDownloadUserChoice);Z.sA&&(Q.lio=Z.j(Z.sA)); Z.L?(Q.idpj=Z.yk,Q.ldpj=Z.Uv,Z.delayThresholdMet&&(Q.dtm="1"),Z.U!=null&&(Q.rti=Z.j(Z.U)),Z.j5&&(Q.ald=Z.j5),Z.compositeLiveIngestionOffsetToken&&(Q.clio=Z.compositeLiveIngestionOffsetToken)):Z.adType!==void 0&&(Q.at=Z.adType);Z.Ph&&(Z.S||Z.L)&&(Q.size=Z.Ph);Z.S&&Z.K.length&&(Q.pbstyle=Z.K.join(","));Z.fL!=null&&(Z.S||Z.L)&&(Q.inview=Z.j(Z.fL));Z.L&&(Q.volume=pP(Z,g.my(Z.segments,function(K){return K.volume})),Q.st=pP(Z,g.my(Z.segments,function(K){return K.startTime})),Q.et=pP(Z,g.my(Z.segments,function(K){return K.endTime})), ih(Z.segments,function(K){return K.playbackRate!==1})&&(Q.rate=pP(Z,g.my(Z.segments,function(K){return K.playbackRate}))),ih(Z.segments,function(K){return K.Y!=="-"})&&(Q.als=g.my(Z.segments,function(K){return K.Y}).join(",")),ih(Z.segments,function(K){return K.previouslyEnded})&&(Q.pe=g.my(Z.segments,function(K){return""+ +K.previouslyEnded}).join(","))); Q.muted=pP(Z,g.my(Z.segments,function(K){return K.muted?1:0})); ih(Z.segments,function(K){return K.visibilityState!==0})&&(Q.vis=pP(Z,g.my(Z.segments,function(K){return K.visibilityState}))); ih(Z.segments,function(K){return K.connectionType!==0})&&(Q.conn=pP(Z,g.my(Z.segments,function(K){return K.connectionType}))); ih(Z.segments,function(K){return K.j!==0})&&(Q.blo=pP(Z,g.my(Z.segments,function(K){return K.j}))); ih(Z.segments,function(K){return!!K.S})&&(Q.blo=g.my(Z.segments,function(K){return K.S}).join(",")); ih(Z.segments,function(K){return!!K.compositeLiveStatusToken})&&(Q.cbs=g.my(Z.segments,function(K){return K.compositeLiveStatusToken}).join(",")); ih(Z.segments,function(K){return K.W!=="-"})&&(Q.cc=g.my(Z.segments,function(K){return K.W}).join(",")); ih(Z.segments,function(K){return K.clipId!=="-"})&&(Q.clipid=g.my(Z.segments,function(K){return K.clipId}).join(",")); if(ih(Z.segments,function(K){return!!K.audioId})){var z="au"; Z.S&&(z="au_d");Q[z]=g.my(Z.segments,function(K){return K.audioId}).join(",")}jL()&&Z.jJ&&(Q.ctt=Z.jJ,Q.cttype=Z.Qp,Q.mdx_environment=Z.mdxEnvironment); Z.ex&&(Q.etype=Z.SJ!==void 0?Z.SJ:0);Z.NB&&(Q.uoo=Z.NB);Z.livingRoomAppMode&&Z.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(Q.clram=pPx[Z.livingRoomAppMode]||Z.livingRoomAppMode);Z.W?H10(Z,Q):(Q.docid=Z.videoId,Q.referrer=Z.referrer,Q.ei=Z.eventId,Q.of=Z.Bn,Q.osid=Z.osid,Q.vm=Z.videoMetadata,Z.adQueryId&&(Q.aqi=Z.adQueryId),Z.autonav&&(Q.autonav="1"),Z.playlistId&&(Q.list=Z.playlistId),Z.xA&&(Q.ssrt="1"),Z.dk&&(Q.upt=Z.dk));Z.S&&(Z.embedsRct&&(Q.rct=Z.embedsRct),Z.embedsRctn&&(Q.rctn= Z.embedsRctn),Z.compositeLiveIngestionOffsetToken&&(Q.clio=Z.compositeLiveIngestionOffsetToken));Z.tG&&(Q.host_cpn=Z.tG);return Q}; H10=function(Z,Q){if(Q&&Z.W){var z=new Set(["q","feature","mos"]),K=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),b=new Set(["aqi","autonav","list","ssrt","upt"]);Z.W.ns==="3pp"&&(Q.ns="3pp");for(var q=g.n(Object.keys(Z.W)),r=q.next();!r.done;r=q.next())r=r.value,K.has(r)||z.has(r)||b.has(r)&&!Z.W[r]||(Q[r]=Z.W[r])}}; pP=function(Z,Q){return g.my(Q,Z.j).join(",")}; Pgu=function(Z){Z.indexOf("watchtime")!==-1&&g.DW("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:Z}})}; MFu=function(Z,Q){Z.attestationResponse&&i1n(Z).then(function(z){z=z||{};z.method="POST";z.postParams={atr:Z.attestationResponse};Z.JG?Z.KN?wM().sendAndWrite(Q,z):wM().sendThenWrite(Q,z):g.yC(Q,z)})}; Hb=function(Z){g.O.call(this);this.provider=Z;this.K="paused";this.L=NaN;this.T=[10,10,10,40];this.U=this.X=0;this.SJ=this.JG=this.P7=this.jJ=this.S=!1;this.j=this.W=NaN;this.Y=new JiG(Z)}; BHd=function(Z){if(!Z.S){Z.provider.videoData.hB===16623&&g.CO(Error("Playback for EmbedPage"));var Q=MM(Z,"playback");a:{if(Z.provider.Yh.V("web_player_use_server_vss_schedule")){var z,K=(z=Z.provider.videoData.getPlayerResponse())==null?void 0:z.playbackTracking,b=K==null?void 0:K.videostatsScheduledFlushWalltimeSeconds;K=K==null?void 0:K.videostatsDefaultFlushIntervalSeconds;if(b&&b.length>0&&K){z=[];var q=Z.provider.videoData.FN,r=Z.provider.videoData.G7,D=-q;b=g.n(b);for(var v=b.next();!v.done;v= b.next())v=v.value,z.push(v-D),D=v;z.push(K+r-q);z.push(K);Z.T=z;break a}}Z.T=[10+Z.provider.videoData.FN,10,10,40+Z.provider.videoData.G7-Z.provider.videoData.FN,40]}dd9(Z.Y);Q.T=U0(Z);Z.j>0&&(Q.Y-=Z.j);Q.send();Z.provider.videoData.GB&&(Q=Z.provider.Yh,K=Z.provider.videoData,z={html5:"1",video_id:K.videoId,cpn:K.clientPlaybackNonce,ei:K.eventId,ptk:K.GB,oid:K.LG,ptchn:K.zE,pltype:K.VP,content_v:UH(K)},K.bG&&Object.assign(z,{m:K.bG}),Q=g.BK(Q.Ff+"ptracking",z),Ud0(Z,Q));Z.provider.videoData.X7|| (O1n(Z),oOu(Z),Z.aP());Z.S=!0;Z=Z.Y;Z.Y=Z.provider.Iu.XJ();Z.qO=g.m4(Z.provider);!(Z.S===0&&Z.Y<5)&&Z.Y-Z.S>2&&(Z.S=Z.Y);Z.T=!0}}; U0=function(Z,Q){Q=Q===void 0?NaN:Q;var z=g.m4(Z.provider);Q=isNaN(Q)?z:Q;Q=Math.ceil(Q);var K=Z.T[Z.X];Z.X+1<Z.T.length&&Z.X++;var b=Q+K;Z.L=g.$q(function(){if(!Z.FI()){Z.L=NaN;var q=WTd(Z),r=VF9(Z,q);r.U=b;var D=Z.U>1E3;!(q.length>1)&&q[0].isEmpty()||D||(r.T=U0(Z,b));r.send();Z.U++}},(b-z)*1E3); return Z.W=b}; O0=function(Z){g.fA(Z.L);Z.L=NaN}; WTd=function(Z){Z.Y.update();Z=Z.Y;Z.segments.length&&Z.Y===Z.S||CP(Z);var Q=Z.segments;Z.segments=[];return Q}; MM=function(Z,Q){var z=kmx(Z.provider);Object.assign(z,{state:Z.K});Q=new Gmx(Z.provider.videoData,Z.provider.Yh,Q,z);Q.Y=Z.provider.Iu.XJ();z=Z.provider.videoData.clientPlaybackNonce;Q.Y=Z.provider.Iu.Mm(z);Z.provider.videoData.isLivePlayback||(Q.c7=Z.provider.Iu.getDuration(z));Z.provider.videoData.Y&&(z=Z.provider.videoData.Y.RC(Q.Y))&&(Q.sA=z-Q.Y);Q.A4=g.m4(Z.provider);Q.segments=[RK(Z.provider)];return Q}; VF9=function(Z,Q){var z=MM(Z,"watchtime");ufM(Z)&&(z.delayThresholdMet=!0,Z.P7=!0);if(Z.j>0){for(var K=g.n(Q),b=K.next();!b.done;b=K.next())b=b.value,b.startTime-=Z.j,b.endTime-=Z.j;z.Y-=Z.j}else z.Y=Z.Y.UT();z.segments=Q;return z}; oK=function(Z,Q){var z=xdd(Z,!isNaN(Z.W));Q&&(Z.W=NaN);return z}; xdd=function(Z,Q){var z=VF9(Z,WTd(Z));!isNaN(Z.W)&&Q&&(z.U=Z.W);return z}; ufM=function(Z){var Q;if(Q=Z.provider.videoData.isLoaded()&&Z.provider.videoData.X7&&Z.S&&!Z.P7)Q=Z.Y,Q=Q.L+Q.provider.Iu.XJ()-Q.S>=Z.provider.videoData.X7;return!!Q}; O1n=function(Z){Z.provider.videoData.youtubeRemarketingUrl&&!Z.JG&&(Ud0(Z,Z.provider.videoData.youtubeRemarketingUrl),Z.JG=!0)}; oOu=function(Z){Z.provider.videoData.googleRemarketingUrl&&!Z.SJ&&(Ud0(Z,Z.provider.videoData.googleRemarketingUrl),Z.SJ=!0)}; tFu=function(Z){if(!Z.FI()&&Z.S){Z.K="paused";var Q=oK(Z);Q.isFinal=!0;Q.send();Z.dispose()}}; FTX=function(Z,Q){if(!Z.FI())if(g.t(Q.state,2)||g.t(Q.state,512)){if(Z.K="paused",g.Xw(Q,2)||g.Xw(Q,512))g.Xw(Q,2)&&(Z.Y.previouslyEnded=!0),Z.S&&(O0(Z),oK(Z).send(),Z.W=NaN)}else if(g.t(Q.state,8)){Z.K="playing";var z=Z.S&&isNaN(Z.L)?U0(Z):NaN;!isNaN(z)&&(YC(Q,64)<0||YC(Q,512)<0)&&(Z=xdd(Z,!1),Z.T=z,Z.send())}else Z.K="paused"}; e9X=function(Z,Q,z){if(!Z.jJ){z||(z=MM(Z,"atr"));z.attestationResponse=Q;try{z.send()}catch(K){if(K.message!=="Unknown Error")throw K;}Z.jJ=!0}}; Ud0=function(Z,Q){var z=Z.provider.Yh;g.la(Z.provider.Yh,g.B0(Z.provider.videoData)).then(function(K){var b=Z.provider.Yh.pageId,q=Z.provider.Yh.sendVisitorIdHeader?Z.provider.videoData.visitorData:void 0,r=Z.provider.Yh.V("vss_pings_using_networkless")||Z.provider.Yh.V("kevlar_woffle"),D=Z.provider.Yh.V("allow_skip_networkless");K=z9d(Q,z,b,q,K);KTr(Q,K,{token:Z.provider.videoData.K,Ue:Z.provider.videoData.V2,mdxEnvironment:Z.provider.videoData.mdxEnvironment},z,void 0,r&&!D,!1,!0)})}; wPD=function(){this.endTime=this.startTime=-1;this.W="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.j=0;this.compositeLiveStatusToken=this.S=void 0;this.volume=this.connectionType=0;this.muted=!1;this.Y=this.clipId="-";this.previouslyEnded=!1}; Bb=function(Z,Q,z){this.videoData=Z;this.Yh=Q;this.Iu=z;this.Y=void 0}; g.m4=function(Z){return EOd(Z)()}; EOd=function(Z){if(!Z.Y){var Q=g.lu(function(K){var b=(0,g.Nm)();K&&b<=631152E6&&(Z.Iu.pN("ytnerror",{issue:28799967,value:""+b}),b=(new Date).getTime()+2);return b},Z.Yh.V("html5_validate_yt_now")),z=Q(); Z.Y=function(){return Math.round(Q()-z)/1E3}; Z.Iu.Xt()}return Z.Y}; kmx=function(Z){var Q=Z.Iu.bR()||{};Q.fs=Z.Iu.mB();Q.volume=Z.Iu.getVolume();Q.muted=Z.Iu.isMuted()?1:0;Q.mos=Q.muted;Q.clipid=Z.Iu.Rf();var z;Q.playerheight=((z=Z.Iu.getPlayerSize())==null?void 0:z.height)||0;var K;Q.playerwidth=((K=Z.Iu.getPlayerSize())==null?void 0:K.width)||0;Z=Z.videoData;z={};Z.j&&(z.fmt=Z.j.itag,Z.W&&(Z.De?Z.W.itag!==Z.j.itag:Z.W.itag!=Z.j.itag)&&(z.afmt=Z.W.itag));z.ei=Z.eventId;z.list=Z.playlistId;z.cpn=Z.clientPlaybackNonce;Z.videoId&&(z.v=Z.videoId);Z.zT&&(z.infringe=1); (Z.bY?0:Z.ex)&&(z.splay=1);(K=f3(Z))&&(z.live=K);Z.fC&&(z.sautoplay=1);Z.h6&&(z.autoplay=1);Z.St&&(z.sdetail=Z.St);Z.partnerId&&(z.partnerid=Z.partnerId);Z.osid&&(z.osid=Z.osid);Z.HD&&(z.cc=g.NAW(Z.HD));return Object.assign(Q,z)}; XPn=function(Z){var Q=DjW();if(Q)return liG[Q]||liG.other;if(g.Nf(Z.Yh)){Z=navigator.userAgent;if(/[Ww]ireless[)]/.test(Z))return 3;if(/[Ww]ired[)]/.test(Z))return 30}return 0}; RK=function(Z){var Q=new wPD,z;Q.W=((z=kmx(Z).cc)==null?void 0:z.toString())||"-";Q.playbackRate=Z.Iu.getPlaybackRate();z=Z.Iu.getVisibilityState();z!==0&&(Q.visibilityState=z);Z.Yh.Qp&&(Q.j=1);Q.S=Z.videoData.yB;Q.compositeLiveStatusToken=Z.videoData.compositeLiveStatusToken;z=Z.Iu.getAudioTrack();z.Qw&&z.Qw.id&&z.Qw.id!=="und"&&(Q.audioId=z.Qw.id);Q.connectionType=XPn(Z);Q.volume=Z.Iu.getVolume();Q.muted=Z.Iu.isMuted();Q.clipId=Z.Iu.Rf()||"-";Q.Y=Z.videoData.rA||"-";return Q}; g.Wb=function(Z,Q){g.O.call(this);var z=this;this.provider=Z;this.W=!1;this.S=new Map;this.gf=new g.Kg;this.zz={m0Y:function(){return z.qoe}, I4F:function(){return z.Y}, Llh:function(){return z.j}}; this.provider.videoData.hH()&&!this.provider.videoData.Em&&(this.Y=new Hb(this.provider),this.Y.j=this.provider.videoData.yk/1E3,g.W(this,this.Y),this.qoe=new g.NM(this.provider,Q),g.W(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.iI=this.provider.videoData.clientPlaybackNonce)&&this.S.set(this.iI,this.Y));if(Z.Yh.playerCanaryState==="canary"||Z.Yh.playerCanaryState==="holdback")this.j=new cb(this.provider),g.W(this,this.j)}; sKn=function(Z){return!!Z.Y&&!!Z.qoe}; VD=function(Z){Z.j&&xsd(Z.j);Z.qoe&&mdG(Z.qoe)}; ZPx=function(Z){if(Z.qoe){Z=Z.qoe;for(var Q=Z.provider.videoData,z=Z.provider.Yh,K=g.n(z.tV),b=K.next();!b.done;b=K.next())iX(Z,b.value);if(Z.provider.V("html5_enable_qoe_cat_list"))for(K=g.n(Q.lc),b=K.next();!b.done;b=K.next())iX(Z,b.value);else Q.tV&&iX(Z,Z.provider.videoData.tV);Q.fd()&&(K=Q.Y,AP(Q)&&iX(Z,"manifestless"),K&&$Q(K)&&iX(Z,"live-segment-"+$Q(K).toFixed(1)));Qa(Q)?iX(Z,"sabr"):Z.ke(v0(Q));if(W0(Q)||Q.GJ())Q.GJ()&&iX(Z,"ssa"),iX(Z,"lifa");Q.gatewayExperimentGroup&&(K=Q.gatewayExperimentGroup, K==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?K="spkadtrt":K==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(K="spkadctrl"),iX(Z,K));z.jJ!=="yt"&&(Z.Y.len=[Q.lengthSeconds.toFixed(2)]);Q.cotn&&!kG(Q)&&Z.Mo(!0);z.aT()&&(Q=vOW())&&Z.pN("cblt",{m:Q});if(z.V("html5_log_screen_diagonal")){z=Z.pN;var q;Q=((q=window.H5vccScreen)==null?0:q.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;z.call(Z,"cbltdiag",{v:Q})}}}; QKu=function(Z){if(Z.provider.Iu.wp()){if(Z.W)return;Z.W=!0}Z.Y&&BHd(Z.Y);if(Z.j){Z=Z.j;var Q=g.m4(Z.provider);Z.Y<0&&(Z.Y=Q,Z.delay.start());Z.j=Q;Z.W=Q}}; z2M=function(Z,Q){Z.Y&&(Z=Z.Y,Q===58?Z.Y.update():Z.S&&(O0(Z),oK(Z).send(),Z.W=NaN))}; K4n=function(Z,Q){if(g.Xw(Q,1024)||g.Xw(Q,512)||g.Xw(Q,4)){if(Z.j){var z=Z.j;z.j>=0||(z.Y=-1,z.delay.stop())}Z.qoe&&(z=Z.qoe,z.X||(z.j=-1))}if(Z.provider.videoData.enableServerStitchedDai&&Z.iI){var K;(K=Z.S.get(Z.iI))==null||FTX(K,Q)}else Z.Y&&FTX(Z.Y,Q);if(Z.qoe){K=Z.qoe;z=Q.state;var b=g.m4(K.provider),q=K.getPlayerState(z);Iin(K,b,q,z.seekSource||void 0);q=z.wm;g.t(z,128)&&q&&(q.TR=q.TR||"",h9W(K,b,q.errorCode,q.dH,q.TR));(g.t(z,2)||g.t(z,128))&&K.reportStats(b);z.isPlaying()&&!K.X&&(K.j>=0&& (K.Y.user_intent=[K.j.toString()]),K.X=!0);THD(K)}Z.j&&(K=Z.j,twM(K),K.playerState=Q.state,K.j>=0&&g.Xw(Q,16)&&K.seekCount++,Q.state.isError()&&K.send());Z.provider.Iu.wp()&&(Z.gf=Q.state)}; bP9=function(Z){if(Z.provider.videoData.enableServerStitchedDai&&Z.iI){var Q;(Q=Z.S.get(Z.iI))!=null&&CP(Q.Y)}else Z.Y&&CP(Z.Y.Y)}; q0n=function(Z){Z.j&&Z.j.send();if(Z.qoe){var Q=Z.qoe;if(Q.S){Q.gf==="PL"&&(Q.gf="N");var z=g.m4(Q.provider);g.dY(Q,z,"vps",[Q.gf]);Q.X||(Q.j>=0&&(Q.Y.user_intent=[Q.j.toString()]),Q.X=!0);Q.provider.Yh.aT()&&Q.pN("finalized",{});Q.KN=!0;Q.reportStats(z)}}if(Z.provider.videoData.enableServerStitchedDai)for(Q=g.n(Z.S.values()),z=Q.next();!z.done;z=Q.next())tFu(z.value);else Z.Y&&tFu(Z.Y);Z.dispose()}; r99=function(Z,Q){Z.Y&&e9X(Z.Y,Q)}; A99=function(Z){if(!Z.Y)return null;var Q=MM(Z.Y,"atr");return function(z){Z.Y&&e9X(Z.Y,z,Q)}}; jKD=function(Z,Q,z,K){z.adFormat=z.Sp;var b=Q.Iu;Q=new Hb(new Bb(z,Q.Yh,{getDuration:function(){return z.lengthSeconds}, getCurrentTime:function(){return b.getCurrentTime()}, XJ:function(){return b.XJ()}, Mm:function(){return b.Mm()}, wp:function(){return b.wp()}, X6:function(){return b.X6()}, getPlayerSize:function(){return b.getPlayerSize()}, getAudioTrack:function(){return z.getAudioTrack()}, getPlaybackRate:function(){return b.getPlaybackRate()}, Aq:function(){return b.Aq()}, getVisibilityState:function(){return b.getVisibilityState()}, hx:function(){return b.hx()}, bR:function(){return b.bR()}, getVolume:function(){return b.getVolume()}, isMuted:function(){return b.isMuted()}, mB:function(){return b.mB()}, Rf:function(){return b.Rf()}, getProximaLatencyPreference:function(){return b.getProximaLatencyPreference()}, Xt:function(){b.Xt()}, pN:function(q,r){b.pN(q,r)}, ET:function(){return b.ET()}})); Q.j=K;g.W(Z,Q);return Q}; DMf=function(){this.tC=0;this.S=this.ub=this.Fd=this.j=NaN;this.Y={};this.bandwidthEstimate=NaN}; kV=function(Z,Q,z){g.O.call(this);var K=this;this.Yh=Z;this.Iu=Q;this.j=z;this.Y=new Map;this.iI="";this.zz={jS:function(){return Array.from(K.Y.keys())}}}; vVW=function(Z,Q){Z.Y.has(Q)&&(q0n(Z.Y.get(Q)),Z.Y.delete(Q))}; gVd=function(){this.Y=g.q4;this.array=[]}; Xbd=function(Z,Q,z){var K=[];for(Q=Y04(Z,Q);Q<Z.array.length;++Q){var b=Z.array[Q];(b.end<=z||b.contains(z))&&K.push(b);if(b.start>z)break}return K}; S0G=function(Z,Q){var z=[];Z=g.n(Z.array);for(var K=Z.next();!K.done&&!(K=K.value,K.contains(Q)&&z.push(K),K.start>Q);K=Z.next());return z}; $Mn=function(Z){return Z.array.slice(Y04(Z,0x7ffffffffffff),Z.array.length)}; Y04=function(Z,Q){Z=jB(Z.array,function(z){return Q-z.start||1}); return Z<0?-(Z+1):Z}; TYn=function(Z,Q){var z=NaN;Z=g.n(Z.array);for(var K=Z.next();!K.done;K=Z.next())if(K=K.value,K.contains(Q)&&(isNaN(z)||K.end<z)&&(z=K.end),K.start>Q&&(isNaN(z)||K.start<z)){z=K.start;break}return z}; fOW=function(Z,Q){Z.array=Z.array.filter(function(z){return!Q.has(z)})}; g.uX=function(Z,Q,z,K,b){g.O.call(this);this.U=Z;this.P7=Q;this.K=z;this.jJ=K;this.W=b;this.S=NaN;this.T=this.X=this.started=!1;this.j=[];this.SJ=new g.E6(this.sync,250,this);g.W(this,this.SJ);this.L=new g.E6(this.sync,0,this);g.W(this,this.L);this.Y=new gVd}; h29=function(Z){Z.started=!0;Z.sync()}; L4G=function(Z,Q){Z.started&&(Z.sync(),g.t(Q.oldState,16)&&(Q=TYn(Z.Y,Math.max(Z.S-2E3,0)),!isNaN(Q)&&Q<0x7ffffffffffff&&Z.L.start()))}; nVf=function(Z,Q){Q=g.n(Q);for(var z=Q.next();!z.done;z=Q.next()){z=z.value;var K=z[1];z[0]===1?Z.jJ(g.r7(K.namespace),K):Z.jJ(g.AH(K.namespace),K)}}; g.xV=function(Z){var Q=this;this.Iu=Z;this.zz={Q0F:function(){return Q.Iu}}}; t9=function(Z){Z.Iu.dispose()}; c9M=function(Z){this.Yh=Z;this.S=this.j=this.mediaTime=NaN;this.W=this.Y=!1;this.L=.001;g.Nf(Z)&&(this.L=.01)}; FC=function(Z,Q){return Q>Z.mediaTime+Z.L&&Q<Z.mediaTime+5}; iF4=function(Z,Q,z,K,b){if(K=K>1)Z.W=!0;if((b===void 0?0:b)||isNaN(Z.j))Z.j=Q;if(Z.Y)Q!==Z.mediaTime&&(Z.Y=!1);else if(Q>0&&Z.mediaTime===Q){b=1500;if(Z.Yh.V("html5_buffer_underrun_transition_fix")){b=g.Xp(Z.Yh.experiments,"html5_min_playback_advance_for_steady_state_secs");var q=g.Xp(Z.Yh.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");b=b>0&&q>0&&Math.abs(Q-Z.j)<b?q:1500}return z-Z.S>(K||!Z.W?b:400)}Z.mediaTime=Q;Z.S=z;return!1}; mMn=function(Z,Q){this.videoData=Z;this.Y=Q}; IOG=function(Z,Q,z){return Q.sW(z).then(function(){return Rn(new mMn(Q,Q.S))},function(K){K instanceof Error&&g.CO(K); var b=PN('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),q=CI('audio/mp4; codecs="mp4a.40.2"'),r=b||q,D=Q.isLivePlayback&&!g.Ea(Z.L,!0);K="fmt.noneavailable";D?K="html5.unsupportedlive":r||(K="html5.missingapi");r=D||!r?2:1;b={buildRej:"1",a:Q.HL(),d:!!Q.A4,drm:Q.LZ(),f18:Q.YE.indexOf("itag=18")>=0,c18:b};Q.Y&&(Q.LZ()?(b.f142=!!Q.Y.Y["142"],b.f149=!!Q.Y.Y["149"],b.f279=!!Q.Y.Y["279"]):(b.f133=!!Q.Y.Y["133"],b.f140=!!Q.Y.Y["140"],b.f242=!!Q.Y.Y["242"]),b.cAAC=q,b.cAVC=CI('video/mp4; codecs="avc1.42001E"'), b.cVP9=CI('video/webm; codecs="vp9"'));Q.L&&(b.drmsys=Q.L.keySystem,q=0,Q.L.Y&&(q=Object.keys(Q.L.Y).length),b.drmst=q);return new N5(K,b,r)})}; es=function(Z){this.data=window.Float32Array?new Float32Array(Z):Array(Z);this.j=this.Y=Z-1}; J9n=function(Z){return Z.data[Z.Y]||0}; y9X=function(Z){this.L=Z;this.S=this.j=0;this.W=new es(50)}; E0=function(Z,Q,z){g.rV.call(this);this.videoData=Z;this.experiments=Q;this.K=z;this.j=[];this.W=0;this.S=!0;this.L=!1;this.T=0;z=new dMX;Z.latencyClass==="ULTRALOW"&&(z.W=!1);Z.qB?z.j=3:g.md(Z)&&(z.j=2);Z.latencyClass==="NORMAL"&&(z.K=!0);var K=g.Xp(Q,"html5_liveness_drift_proxima_override");if(v0(Z)!==0&&K){z.Y=K;var b;((b=Z.Y)==null?0:NQn(b))&&z.Y--}Qa(Z)&&Q.XI("html5_sabr_parse_live_metadata_playback_boundaries")&&(z.U=!0);if(g.WX("trident/")||g.WX("edge/"))b=g.Xp(Q,"html5_platform_minimum_readahead_seconds")|| 3,z.S=Math.max(z.S,b);g.Xp(Q,"html5_minimum_readahead_seconds")&&(z.S=g.Xp(Q,"html5_minimum_readahead_seconds"));g.Xp(Q,"html5_maximum_readahead_seconds")&&(z.X=g.Xp(Q,"html5_maximum_readahead_seconds"));Q.XI("html5_force_adaptive_readahead")&&(z.W=!0);if(b=g.Xp(Q,"html5_liveness_drift_chunk_override"))z.Y=b;jy(Z)&&(z.Y=(z.Y+1)/5,Z.latencyClass==="LOW"&&(z.Y*=2));if(Z.latencyClass==="ULTRALOW"||Z.latencyClass==="LOW")z.L=g.Xp(Q,"html5_low_latency_adaptive_liveness_adjustment_segments")||1,z.T=g.Xp(Q, "html5_low_latency_max_allowable_liveness_drift_chunks")||10;this.policy=z;this.X=this.policy.j!==1;this.Y=wY(this,NYW(this,isNaN(Z.liveChunkReadahead)?3:Z.liveChunkReadahead,Z))}; GA9=function(Z,Q){if(Q)return Q=Z.videoData,Q=NYW(Z,isNaN(Q.liveChunkReadahead)?3:Q.liveChunkReadahead,Q),wY(Z,Q);if(Z.j.length){if(Math.min.apply(null,Z.j)>1)return wY(Z,Z.Y-1);if(Z.policy.W)return wY(Z,Z.Y+1)}return Z.Y}; iP9=function(Z,Q){if(!Z.j.length)return!1;var z=Z.Y;Z.Y=GA9(Z,Q===void 0?!1:Q);if(Q=z!==Z.Y)Z.j=[],Z.W=0;return Q}; lX=function(Z,Q){return Q>=Z.GT()-aOD(Z)}; PXG=function(Z,Q,z){Q=lX(Z,Q);z||Q?Q&&(Z.S=!0):Z.S=!1;Z.X=Z.policy.j===2||Z.policy.j===3&&Z.S}; R2G=function(Z,Q){Q=lX(Z,Q);Z.L!==Q&&Z.publish("livestatusshift",Q);Z.L=Q}; aOD=function(Z){var Q=Z.policy.Y;Z.L||(Q=Math.max(Q-1,0));return Q*sB(Z)}; NYW=function(Z,Q,z){z.qB&&Q--;jy(z)&&(Q=1);if(v0(z)!==0&&(Z=g.Xp(Z.experiments,"html5_live_chunk_readahead_proxima_override"))){Q=Z;var K;((K=z.Y)==null?0:NQn(K))&&Q++}return Q}; sB=function(Z){return Z.videoData.Y?$Q(Z.videoData.Y)||5:5}; wY=function(Z,Q){Q=Math.max(Math.max(1,Math.ceil(Z.policy.S/sB(Z))),Q);return Math.min(Math.min(8,Math.floor(Z.policy.X/sB(Z))),Q)}; dMX=function(){this.S=0;this.X=Infinity;this.W=!0;this.Y=2;this.j=1;this.K=!1;this.T=10;this.U=!1;this.L=1}; zT=function(Z){g.O.call(this);this.Iu=Z;this.Y=0;this.j=null;this.K=this.W=0;this.S={};this.Yh=this.Iu.N();this.L=new g.E6(this.MR,1E3,this);this.CN=new Za({delayMs:g.Xp(this.Yh.experiments,"html5_seek_timeout_delay_ms")});this.KN=new Za({delayMs:g.Xp(this.Yh.experiments,"html5_long_rebuffer_threshold_ms")});this.Qp=Q9(this,"html5_seek_set_cmt");this.Du=Q9(this,"html5_seek_jiggle_cmt");this.s$=Q9(this,"html5_seek_new_elem");this.sA=Q9(this,"html5_unreported_seek_reseek");this.P7=Q9(this,"html5_long_rebuffer_jiggle_cmt"); this.c7=Q9(this,"html5_long_rebuffer_ssap_clip_not_match");this.JG=new Za({delayMs:2E4});this.Zu=Q9(this,"html5_seek_new_elem_shorts");this.qB=Q9(this,"html5_seek_new_media_source_shorts_reuse");this.NB=Q9(this,"html5_seek_new_media_element_shorts_reuse");this.tG=Q9(this,"html5_reseek_after_time_jump");this.X=Q9(this,"html5_gapless_handoff_close_end_long_rebuffer");this.jJ=Q9(this,"html5_gapless_slow_seek");this.U=Q9(this,"html5_gapless_slice_append_stuck");this.SJ=Q9(this,"html5_gapless_slow_start"); this.T=Q9(this,"html5_ads_preroll_lock_timeout");this.X7=Q9(this,"html5_ssap_ad_longrebuffer_new_element");this.gq=new Za({delayMs:g.Xp(this.Yh.experiments,"html5_skip_slow_ad_delay_ms")||5E3,If:!this.Yh.V("html5_report_slow_ads_as_error")});this.DI=new Za({delayMs:g.Xp(this.Yh.experiments,"html5_skip_slow_ad_delay_ms")||5E3,If:!this.Yh.V("html5_skip_slow_buffering_ad")});this.F7=new Za({delayMs:g.Xp(this.Yh.experiments,"html5_slow_start_timeout_delay_ms")});this.Vp=Q9(this,"html5_slow_start_no_media_source"); g.W(this,this.L)}; Q9=function(Z,Q){var z=g.Xp(Z.Yh.experiments,Q+"_delay_ms");Z=Z.Yh.V(Q+"_cfl");return new Za({delayMs:z,If:Z})}; CXd=function(Z,Q){Z.Y=Q}; K_=function(Z,Q,z,K,b,q,r,D){Q.test(z)?(Z.U8(b,Q,r),Q.If||q()):(Q.ys&&Q.j&&!Q.W?(z=(0,g.Nm)(),K?Q.Y||(Q.Y=z):Q.Y=0,q=!K&&z-Q.j>Q.ys,z=Q.Y&&z-Q.Y>Q.Tr||q?Q.W=!0:!1):z=!1,z&&(D=Object.assign({},Z.gy(Q),D),D.wn=r,D.we=b,D.wsuc=K,Z.Iu.pN("workaroundReport",D),K&&(Q.reset(),Z.S[b]=!1)))}; Za=function(Z){var Q=Z===void 0?{}:Z;Z=Q.delayMs===void 0?0:Q.delayMs;var z=Q.Tr===void 0?1E3:Q.Tr;var K=Q.ys===void 0?3E4:Q.ys;Q=Q.If===void 0?!1:Q.If;this.Y=this.j=this.S=this.startTimestamp=0;this.W=!1;this.L=Math.ceil(Z/1E3);this.Tr=z;this.ys=K;this.If=Q}; UMG=function(Z){g.O.call(this);var Q=this;this.Iu=Z;this.K=this.Y=this.wr=this.mediaElement=this.playbackData=null;this.W=0;this.L=this.jJ=this.S=null;this.SJ=!1;this.gq=0;this.X=!1;this.timestampOffset=0;this.T=!0;this.Du=0;this.s$=this.F7=!1;this.U=0;this.qB=!1;this.P7=0;this.Yh=this.Iu.N();this.videoData=this.Iu.getVideoData();this.policy=new pbM;this.JG=new zT(this.Iu);this.CN=this.tG=this.Vp=this.j=NaN;this.c7=new g.E6(function(){HPn(Q,!1)},2E3); this.DI=new g.E6(function(){b5(Q)}); this.Zu=new g.E6(function(){Q.SJ=!0;Ms0(Q,{})}); this.Qp=NaN;this.KN=new g.E6(function(){var z=Q.Yh.bY;z.Y+=1E4/36E5;z.Y-z.S>1/6&&(oou(z),z.S=z.Y);Q.KN.start()},1E4); g.W(this,this.JG);g.W(this,this.c7);g.W(this,this.Zu);g.W(this,this.DI);g.W(this,this.KN)}; BYr=function(Z,Q){Z.playbackData=Q;Z.videoData.isLivePlayback&&(Z.K=new y9X(function(){a:{if(Z.playbackData&&Z.playbackData.Y.Y){if(AP(Z.videoData)&&Z.wr){var z=Z.wr.mp.Wx()||0;break a}if(Z.videoData.Y){z=Z.videoData.Y.JG;break a}}z=0}return z}),Z.Y=new E0(Z.videoData,Z.Yh.experiments,function(){return Z.TJ(!0)})); qv(Z.Iu)?(Q=OPW(Z),Q.X9?(Z.V("html5_sabr_enable_utc_seek_requests")&&Qa(Z.videoData)&&Z.Pz(Q.X9,Q.startSeconds),Z.W=Q.startSeconds):Q.startSeconds>0&&Z.seekTo(Q.startSeconds,{s8:"seektimeline_startPlayback",seekSource:15}),Z.T=!1):oVW(Z)||(Z.W=Z.W||(g.V0(Z.videoData)?0:Z.videoData.startSeconds)||0)}; Vs0=function(Z,Q){(Z.wr=Q)?W44(Z,!0):rj(Z)}; kAf=function(Z,Q){g.lR(Z.JG.L);Z.V("html5_exponential_memory_for_sticky")&&(Q.state.isPlaying()?g.lR(Z.KN):Z.KN.stop());if(Z.mediaElement)if(Q.oldState.state===8&&vv(Q.state)&&Q.state.isBuffering()){Q=Z.mediaElement.getCurrentTime();var z=Z.mediaElement.gm();var K=Z.V("manifestless_post_live_ufph")||Z.V("manifestless_post_live")?j8(z,Math.max(Q-3.5,0)):j8(z,Q-3.5);K>=0&&Q>z.end(K)-1.1&&K+1<z.length&&z.start(K+1)-z.end(K)<11&&(K=z.start(K+1)+.2,Math.abs(Z.Qp-K)<.2||(Z.Iu.pN("seekover",{b:Ax(z,"_"), cmt:Q}),Z.Qp=K,Z.seekTo(K,{OE:!0,s8:"seektimeline_postLiveDisc"})))}else((z=Q.state)==null?0:z.state===8)&&!Z.s$&&(Z.videoData.limitedPlaybackDurationInSeconds>0?(A8(Z.Iu,Z.getCurrentTime()+Z.videoData.limitedPlaybackDurationInSeconds),Z.s$=!0):Z.videoData.isLivePlayback&&Z.videoData.endSeconds>0&&(A8(Z.Iu,Z.getCurrentTime()+Z.videoData.endSeconds),Z.s$=!0))}; xM4=function(Z,Q){var z=Z.getCurrentTime(),K=Z.isAtLiveHead(z);if(Z.K&&K){var b=Z.K;if(b.Y&&!(z>=b.j&&z<b.S)){var q=b.Y.ON(z);q!==-1&&(b.j=b.Y.getStartTime(q),b.S=b.j+b.Y.getDuration(q),q=(0,g.Nm)()/1E3-b.Y.RC(q),q-=b.L(),b.W.add(q))}}Z.Y&&(K&&(b=Z.Y,q=uC9(Z),b.W++,b.W<3||Date.now()-b.T<3E3||(b.T=Date.now(),b.j.push(q),b.j.length>50&&b.j.shift())),b=Z.Y,PXG(b,z,Q===void 0?!0:Q),R2G(b,z),Q&&HPn(Z,!0));K!==Z.F7&&(Q=Z.getCurrentTime()-Z.CN<=500,z=Z.gq>=1E3,Q||z||(Q=Z.Iu.NT(),Q.qoe&&(Q=Q.qoe,z=g.m4(Q.provider), g.dY(Q,z,"lh",[K?"1":"0"])),Z.F7=K,Z.gq++,Z.CN=Z.getCurrentTime()))}; HPn=function(Z,Q){if(Z.Y){var z=Z.Y;var K=Z.getCurrentTime();!lX(z,K)&&z.s7()?(z.policy.K&&(z.policy.Y=Math.max(z.policy.Y+z.policy.L,z.policy.T)),z=Infinity):z=K<z.videoData.Ze()?Math.min(z.videoData.Ze()+10,z.GT()):NaN;if(!isNaN(z)){if(Z.wr&&Q&&(Q=Z.c7.isActive(),K=Z.Y.GT(),(K=fuW(Z.wr,K-Z.Ry()))&&!Q)){Z.c7.start();Z.Iu.pN("inBufferPtl",{cmt:Z.getCurrentTime(),seekTo:K+Z.Ry()});Z.seekTo(K+Z.Ry(),{s8:"seektimeline_inBufferSeek"});return}Z.seekTo(z,{s8:"seektimeline_pegToLive"})}}}; W44=function(Z,Q){if(Z.Y&&Z.wr){var z=!1;Q?z=!0:Z.videoData.isLowLatencyLiveStream||Z.videoData.latencyClass==="LOW"||Z.videoData.latencyClass==="ULTRALOW"?z=iP9(Z.Y):Z.qB&&(Z.qB=!1,z=iP9(Z.Y,!0));z&&(Q=Z.Iu.NT(),z=Z.Y,z=sB(z)*z.Y,Q.qoe&&(Q=Q.qoe,g.dY(Q,g.m4(Q.provider),"lra",[z]),Q.pN("live-readahead-seconds",{v:z})));Q=Z.wr;z=Z.Y.Y;Z=Z.Y;Z=(Z.Y-1+Z.policy.Y)*sB(Z);var K=NaN,b=Q.sA;b===2||b===-1?jy(Q.Iu.getVideoData())&&(K=Q.policy.jH):--z;z=Math.max(z,0);b=Q.L;b.tx=z;b.U=K;Q.T&&(Q.T.jJ=Z)}}; tsM=function(Z,Q){Z.W=Q}; Ms0=function(Z,Q){F4n(Z,Q).then(void 0,function(){rj(Z)}); e2u(Z).then(function(z){wb9(Z,z)},function(){rj(Z)}); Z.Iu.qY(Q);Z.Yh.aT()&&(Q=Z.gy(),Q["native"]=""+ +Z.X,Q.tgt=""+Z.j,Q.otgt=""+(Z.j+Z.timestampOffset),Z.Y&&Z.V("html5_high_res_seek_logging")&&(Q.tht=""+Z.Y.K(),Q.ht=""+Z.Y.GT(),Q.adft=""+aOD(Z.Y)),Z.V("html5_sabr_parse_live_metadata_playback_boundaries")&&Z.videoData.Y&&Qa(Z.videoData)&&(Q.minst=""+Z.videoData.Y.Sb,Q.cminst=""+(Z.videoData.Y.Ze()+Z.timestampOffset),Q.maxst=""+Z.videoData.Y.vk,Q.hts=""+Z.videoData.Y.SJ,Q.cmaxst=""+(Z.videoData.Y.TJ()+Z.timestampOffset)),Z.Iu.pN("startSeek",Q))}; F4n=function(Z,Q){Z.jJ||(Z.wr?isFinite(Z.j)?Z.jJ=Z.wr.seek(Z.j-Z.timestampOffset,Q):(rP(Z.videoData),Z.jJ=wa(Z.wr),uN(Z.videoData)||(Z.j=Z.wr.getCurrentTime()+Z.timestampOffset)):Z.jJ=g.$7(Z.j-Z.timestampOffset));return Z.jJ}; e2u=function(Z){var Q=Z.S;Q||(Z.S=new EZ,Q=Z.S,b5(Z));return Q}; j0=function(Z,Q,z){return isNaN(Q)?NaN:g.Al(Q,Z.Ze(),Z.TJ(z))}; b5=function(Z){if(Z.S)if(Z.videoData.isLivePlayback&&Z.videoData.S&&!Z.videoData.S.Y&&Z.mediaElement&&Z.mediaElement.oX()>0&&sN(Z.mediaElement)>0&&(Z.j=j0(Z,Z.j,!1)),!Z.mediaElement||!EVn(Z))Z.DI.start(750);else if(!isNaN(Z.j)&&isFinite(Z.j)){var Q=Z.tG-(Z.j-Z.timestampOffset);if(!(Q===0||Z.V("html5_enable_new_seek_timeline_logic")&&Math.abs(Q)<.005))if(Q=Z.mediaElement.getCurrentTime()-Z.j,Math.abs(Q)<=Z.Du||Z.V("html5_enable_new_seek_timeline_logic")&&Math.abs(Q)<.005)Z.S&&Z.S.resolve(Z.mediaElement.getCurrentTime()); else{if(Z.videoData.OM)Z.videoData.OM=!1;else if(!rP(Z.videoData)&&Z.j>=Z.TJ()-.1){Z.j=Z.TJ();Z.S.resolve(Z.TJ());Z.Iu.s0();return}try{var z=Z.j-Z.timestampOffset;Z.mediaElement.seekTo(z);Z.JG.Y=z;Z.tG=z;Z.W=Z.j;Z.V("html5_enable_new_seek_timeline_logic")&&(Z.X=!1)}catch(K){}}}}; EVn=function(Z){if(!Z.mediaElement||Z.mediaElement.oX()===0||Z.mediaElement.hasError())return!1;var Q=Z.mediaElement.getCurrentTime()>0;if(!(Z.videoData.S&&Z.videoData.S.Y||Z.videoData.isLivePlayback)&&Z.videoData.LZ())return Q;if(Z.j>=0){var z=Z.mediaElement.ri();if(z.length||!Q)return DR(z,Z.j-Z.timestampOffset)}return Q}; wb9=function(Z,Q){Z.L&&(Z.L.resolve(Q),Z.Iu.hX(),Z.Yh.aT()&&(Q=Z.gy(),Q["native"]=""+ +Z.X,Q.otgt=""+(Z.j+Z.timestampOffset),Z.Iu.pN("seekEnd",Q)));rj(Z)}; rj=function(Z){Z.j=NaN;Z.tG=NaN;Z.S=null;Z.jJ=null;Z.L=null;Z.SJ=!1;Z.X=!1;Z.Du=0;Z.c7.stop();Z.Zu.stop()}; Z_0=function(Z,Q,z){var K=Z.mediaElement,b=Q.type;switch(b){case "seeking":var q=K.getCurrentTime()+Z.timestampOffset;if(!Z.S||Z.X&&q!==Z.j){var r=!!Z.S;Z.S=new EZ;Z.V("html5_enable_new_seek_timeline_logic")&&Z.S.then(function(v){wb9(Z,v)},function(){rj(Z)}); if(Z.videoData.isAd()){var D;lWX({adCpn:Z.videoData.clientPlaybackNonce,contentCpn:(D=Z.videoData.mS)!=null?D:""},Q.Y)}Z.tG=q;CXd(Z.JG,K.getCurrentTime());Z.seekTo(q,{seekSource:104,s8:"seektimeline_mediaElementEvent"});z&&lOM(z,q*1E3,!!r);Z.X=!0}break;case "seeked":Z.S&&Z.S.resolve(Z.mediaElement.getCurrentTime());break;case "loadedmetadata":qv(Z.Iu)||s_W(Z);b5(Z);break;case "progress":b5(Z);break;case "pause":Z.U=Z.getCurrentTime()}Z.U&&((b==="play"||b==="playing"||b==="timeupdate"||b==="progress")&& Z.getCurrentTime()-Z.U>10&&(Z.V("html5_enable_new_media_element_puase_jump")?(Z.Iu.U8(new N5("qoe.restart",{reason:"pauseJump"})),Z.Iu.Hx()):Z.seekTo(Z.U,{s8:"pauseJump"})),b!=="pause"&&b!=="play"&&b!=="playing"&&b!=="progress"&&(Z.U=0))}; Q_D=function(Z){return(IG(Z.videoData)||!!Z.videoData.liveUtcStartSeconds)&&(!!Z.videoData.liveUtcStartSeconds||oVW(Z))&&!!Z.videoData.Y}; oVW=function(Z){return!!Z.videoData.startSeconds&&isFinite(Z.videoData.startSeconds)&&Z.videoData.startSeconds>1E9}; OPW=function(Z){var Q=0,z=NaN,K="";if(!Z.T)return{startSeconds:Q,X9:z,source:K};Z.videoData.c7?Q=Z.videoData.Vp:rP(Z.videoData)&&(Q=Infinity);if(g.md(Z.videoData))return{startSeconds:Q,X9:z,source:K};Z.videoData.startSeconds?(K="ss",Q=Z.videoData.startSeconds):Z.videoData.Pg&&(K="stss",Q=Z.videoData.Pg);Z.videoData.liveUtcStartSeconds&&(z=Z.videoData.liveUtcStartSeconds);if(isFinite(Q)&&(Q>Z.TJ()||Q<Z.Ze())){var b={};b.minSeekableTime=Z.Ze();b.maxSeekableTime=Z.TJ();b.cmt=Z.getCurrentTime();b.ss= Q;b.utc=z;b.src=K;Z.Iu.pN("startSecondsOutOfBounds",b);Z.videoData.fd()&&(Q=j0(Z,Q,!1))}return{startSeconds:Q,X9:z,source:K}}; s_W=function(Z){if(Z.T)if(g.md(Z.videoData))Z.T=!1;else{var Q="ss",z=0,K;((K=Z.videoData.Y)==null?0:K.isManifestless)&&Z.videoData.sA&&!oVW(Z)&&(Q="mss",z=Z.videoData.sA);(Z.videoData.c7?Z.V("html5_prioritize_windowed_st_start_seconds"):Z.V("html5_prioritize_st_start_seconds"))&&!z&&Z.videoData.Pg&&(Q="stss",z=Z.videoData.Pg);!z&&Q_D(Z)&&(z=Z.videoData.liveUtcStartSeconds||Z.videoData.sA,Q="utc",z=Z.TJ()-Z.RC(Z.TJ())+z);z||Z.V("html5_prefer_initial_ss_over_stream_time_ss_for_vod")&&!Z.videoData.fd()|| !Z.videoData.Pg||(Q="stss",z=Z.videoData.Pg);K={};if(z){if(z>Z.TJ()||z<Z.Ze())K.minSeekableTime=Z.Ze(),K.maxSeekableTime=Z.TJ(),K.cmt=Z.getCurrentTime(),K.it=Z.RC(Z.getCurrentTime()),K.ss=z,K.utc=Q_D(Z)?Z.videoData.liveUtcStartSeconds||Z.videoData.sA:0,Z.Iu.pN("startSecondsOutOfBounds",K),Z.videoData.fd()&&(z=j0(Z,z,!1));Z.seekTo(z,{s8:"seektimeline_startSeconds"});K[Q]=z;Z.Iu.pN("startSeconds",K);Z.T=!1}else Z.videoData.sA&&(K[Q]=Z.videoData.sA+Z.Ry(),Z.Iu.pN("startSeconds",K))}}; zVr=function(Z,Q){Z.Iu.pN("sdai",{adj4t:Q.toFixed(3)});Z.Vp=Q;Q+=1;Z.j=Q;Z.W=Q;e2u(Z).then(function(z){wb9(Z,z)},function(){rj(Z)})}; uC9=function(Z){return Z.mediaElement?Zl(Z.mediaElement):0}; pbM=function(){}; Da=function(Z){g.O.call(this);this.S=Z;this.Y=new Map;this.j=new g.E6(this.sample,250,this);g.W(this,this.j);this.start()}; vy=function(Z,Q){if((Z=Z.Y.get(Q))==null)Z=void 0;else{Z=Z.buffer;for(Q=[];Z.j!==Z.Y;)Z.j=(Z.j+1)%Z.data.length,Q.push(Z.data[Z.j]);Z=Q}return Z||[]}; gj=function(Z,Q){var z;return((z=Z.Y.get(Q))==null?void 0:J9n(z.buffer))||0}; K7r=function(Z){this.Y=Z;this.w2=NaN;this.buffer=new es(100)}; Y1=function(){this.finished=this.started=!1}; Dvn=function(Z){function Q(b){return z.uw&&(!K.uP||!K.B7.T)||z.jJ!=="yt"&&(K.partnerId===38&&z.playerStyle==="books"||K.partnerId===30&&z.playerStyle==="docs"||K.partnerId===33&&z.playerStyle==="google-live")?b_0(Z,K,b):qBn(Z,K).then(function(){Xk(Z,K)},function(q){Xk(Z,K,!0); throw q;})} var z=Z.N(),K=Z.getVideoData();K.FI();K.loading=!0;return r8X(Z)?A84(Z,K).then(function(){Xk(Z,K)},function(b){b=it(b); if(GZ(b.severity))return Xk(Z,K,!0),Promise.reject(b);b.errorCode==="onesie.response.badproxystatus"&&""+b.details.st==="3"&&(j_4=!0);Z.handleError(b);return Q("onesie")}):Q("gvi")}; r8X=function(Z){var Q=Z.N();if(Q.V("html5_disable_onesie_when_no_subtlecrypto")&&!nR()||Q.V("html5_disable_onesie")||!Q.V("html5_onesie")||!Q.V("html5_onesie_inline")&&Z.getVisibilityState()===5||Q.jJ!=="yt")return!1;var z=Q.zT;if(!z||!z.Y)return Z.handleError(new N5("onesie.unavailable.hotconfig",{key:"0"})),!1;if(z.Y.L<(0,g.Nm)()&&(Z.pN("okexp","1"),(z=Z.cO())&&Q.V("html5_prefer_trusted_host_on_key_expiration"))){z.j=!0;var K;(Q=(K=z.Y.get(0))==null?void 0:h0(K.location))&&!K7(Q)&&z.Y.delete(0)}if(j_4)return Z.pN("ost3", "1"),!1;K={};return Object.keys(K).length>0?(K.onesie="0",Z.handleError(new N5("html5.missingapi",K)),!1):!0}; v19=function(Z){var Q=Pq();RT(Q,Z);return g.b9(Q,j$u())}; A84=function(Z,Q){var z,K,b,q,r,D,v,Y,X,S,T,f,h,m,J,d,G,R,U,B,e,F,KX,rf,sG,k;return g.C(function(l){if(l.Y==1)return Q.fetchType="onesie",z=hZf(Q,Z.getPlayerSize(),Z.getVisibilityState()),K=new Ff(Z,z),g.P(l,K.fetch(),2);b=l.j;q={player_response:b};Q.loading=!1;r=Z.lh.X8;if(K.rp){D=g.n(K.rp.entries());for(v=D.next();!v.done;v=D.next())Y=v.value,X=g.n(Y),S=X.next().value,T=X.next().value,f=S,h=T,r.Y.set(f,h,180),f===Q.videoId&&(m=h.w_(),Q.Pn=m);r.m3=K}J=g.n(K.Kg.entries());for(d=J.next();!d.done;d= J.next())G=d.value,R=g.n(G),U=R.next().value,B=R.next().value,e=U,F=B,r.j.set(e,F,180);g.W1(Q,q,!0);if(Q.loading||oO(Q))return l.return(Promise.resolve());r.Y.removeAll();r.j.removeAll();Q.Pn=[];KX={};rf="onesie.response";sG=0;Q.errorCode?(rf="auth",KX.ec=Q.errorCode,KX.ed=Q.errorDetail,KX.es=Q.Uq||"",sG=2):(KX.successButUnplayable="1",KX.disposed=""+ +Q.FI(),KX.afmts=""+ +/adaptiveFormats/.test(b),KX.cpn=Q.clientPlaybackNonce);k=new N5(rf,KX,sG);return l.return(Promise.reject(k))})}; qBn=function(Z,Q){var z,K,b,q,r,D,v,Y,X,S,T;return g.C(function(f){switch(f.Y){case 1:z=Q.isAd(),K=!z,b=z?1:3,q=0;case 2:if(!(q<b)){f.O$(4);break}if(!(q>0)){f.O$(5);break}return g.P(f,mL(5E3),6);case 6:r=new g.tW("Retrying OnePlatform request",{attempt:q}),g.CO(r);case 5:return g.nX(f,7),g.P(f,g1D(Z,Q),9);case 9:return f.return();case 7:D=g.I0(f);v=it(D);Y=v.errorCode;X=Z.N();S=X.V("html5_use_network_error_code_enums")?401:"401";K&&Y==="manifest.net.badstatus"&&v.details.rc===S&&(K=!1,q===b-1&&(b+= 1));if(q===b-1)return T=YBr(z,v.details),T.details.backend="op",T.details.originec=Y,f.return(Promise.reject(T));if(Y==="auth"||Y==="manifest.net.retryexhausted")return f.return(Promise.reject(v));Z.handleError(v);if(GZ(v.severity)){f.O$(4);break}case 3:q++;f.O$(2);break;case 4:return f.return(Promise.reject(YBr(z,{backend:"op"})))}})}; g1D=function(Z,Q){function z(rf){rf.readyState===2&&Z.bk("ps_c")} var K,b,q,r,D,v,Y,X,S,T,f,h,m,J,d,G,R,U,B,e,F,KX;return g.C(function(rf){switch(rf.Y){case 1:Q.fetchType="gp";K=Z.N();b=g.la(K,g.B0(Q));if(!b.Y){q=b.getValue();rf.O$(2);break}return g.P(rf,b.Y,3);case 3:q=rf.j;case 2:return r=q,D=v19(r),v=hZf(Q,Z.getPlayerSize(),Z.getVisibilityState()),Y=g.lc(Xy4),X=g.B0(Q),S=(0,g.Nm)(),T=!1,f="empty",h=0,Z.bk("psns"),m={Zm:z},g.P(rf,g.t4(D,v,Y,void 0,m),4);case 4:J=rf.j;Z.bk("psnr");if(Q.FI())return rf.return();J?"error"in J&&J.error?(T=!0,f="esf:"+J.error.message, h=J.error.code):J.errorMetadata&&(T=!0,f="its",h=J.errorMetadata.status):T=!0;if(T)return d=0,G=((0,g.Nm)()-S).toFixed(),R={},R=K.V("html5_use_network_error_code_enums")?{backend:"op",rc:h,rt:G,reason:f,has_kpt:Q.gq?"1":"0",has_mdx_env:Q.mdxEnvironment?"1":"0",has_omit_key_flag:g.Ft("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:K.pageId?"1":"0",has_token:X?"1":"0",has_vvt:Q.SJ?"1":"0",is_mdx:Q.isMdxPlayback?"1":"0",mdx_ctrl:Q.b0||"",token_eq:X===g.B0(Q)?"1":"0"}:{backend:"op", rc:""+h,rt:G,reason:f,has_kpt:Q.gq?"1":"0",has_mdx_env:Q.mdxEnvironment?"1":"0",has_omit_key_flag:g.Ft("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:K.pageId?"1":"0",has_token:X?"1":"0",has_vvt:Q.SJ?"1":"0",is_mdx:Q.isMdxPlayback?"1":"0",mdx_ctrl:Q.b0||"",token_eq:X===g.B0(Q)?"1":"0"},U="manifest.net.connect",h===429?(U="auth",d=2):h>200&&(U="manifest.net.badstatus",h===400&&(d=2)),rf.return(Promise.reject(new N5(U,R,d)));Q.loading=!1;g.W1(Q,{raw_player_response:J},!0); B=J;g.GK(Q.N())&&B&&B.trackingParams&&IL(B.trackingParams);if(Q.errorCode)return e={ec:Q.errorCode,ed:Q.errorDetail,es:Q.Uq||""},rf.return(Promise.reject(new N5("auth",e,2)));if(!Q.loading&&!oO(Q))return F=Q.isAd()?"auth":"manifest.net.retryexhausted",KX=Q.isAd()?2:1,rf.return(Promise.reject(new N5(F,{successButUnplayable:"1",hasMedia:g.L3(Q)?"1":"0"},KX)));g.LX(rf)}})}; b_0=function(Z,Q,z){function K(h){h=it(h);if(GZ(h.severity))return Promise.reject(h);Z.handleError(h);return!1} function b(){return!0} var q,r,D,v,Y,X,S,T,f;return g.C(function(h){switch(h.Y){case 1:var m=Z.N(),J=Z.getPlayerSize(),d=Z.getVisibilityState();Z.isFullscreen();var G=window.location.search;if(Q.partnerId===38&&m.playerStyle==="books")G=Q.videoId.indexOf(":"),G=g.BK("//play.google.com/books/volumes/"+Q.videoId.slice(0,G)+"/content/media",{aid:Q.videoId.slice(G+1),sig:Q.KX});else if(Q.partnerId===30&&m.playerStyle==="docs")G=g.BK("https://docs.google.com/get_video_info",{docid:Q.videoId,authuser:Q.wvI,authkey:Q.JU,eurl:m.NB}); else if(Q.partnerId===33&&m.playerStyle==="google-live")G=g.BK("//google-liveplayer.appspot.com/get_video_info",{key:Q.videoId});else{m.jJ!=="yt"&&g.Rm(Error("getVideoInfoUrl for invalid namespace: "+m.jJ));var R={html5:"1",video_id:Q.videoId,cpn:Q.clientPlaybackNonce,eurl:m.NB,ps:m.playerStyle,el:p3(Q),hl:m.DI,list:Q.playlistId,agcid:Q.FT,aqi:Q.adQueryId,sts:20139,lact:yJ()};Object.assign(R,m.Y);m.forcedExperiments&&(R.forced_experiments=m.forcedExperiments);Q.SJ?(R.vvt=Q.SJ,Q.mdxEnvironment&&(R.mdx_environment= Q.mdxEnvironment)):g.B0(Q)&&(R.access_token=g.B0(Q));Q.adFormat&&(R.adformat=Q.adFormat);Q.slotPosition>=0&&(R.slot_pos=Q.slotPosition);Q.breakType&&(R.break_type=Q.breakType);Q.yx!==null&&(R.ad_id=Q.yx);Q.hm!==null&&(R.ad_sys=Q.hm);Q.VC!==null&&(R.encoded_ad_playback_context=Q.VC);m.captionsLanguagePreference&&(R.cc_lang_pref=m.captionsLanguagePreference);m.gq&&m.gq!==2&&(R.cc_load_policy=m.gq);var U=g.W6(g.B6(),65);g.ka(m)&&U!=null&&!U&&(R.device_captions_on="1");m.mute&&(R.mute=m.mute);Q.annotationsLoadPolicy&& m.annotationsLoadPolicy!==2&&(R.iv_load_policy=Q.annotationsLoadPolicy);Q.KO&&(R.endscreen_ad_tracking=Q.KO);(U=m.c7.get(Q.videoId))&&U.fl&&(R.ic_track=U.fl);Q.KN&&(R.itct=Q.KN);oG(Q)&&(R.autoplay="1");Q.mutedAutoplay&&(R.mutedautoplay=Q.mutedAutoplay);Q.isAutonav&&(R.autonav="1");Q.Zz&&(R.noiba="1");Q.isMdxPlayback&&(R.mdx="1",R.ytr=Q.QF);Q.mdxControlMode&&(R.mdx_control_mode=Q.mdxControlMode);Q.ZD&&(R.ytrcc=Q.ZD);Q.jH&&(R.utpsa="1");Q.isFling&&(R.is_fling="1");Q.isInlinePlaybackNoAd&&(R.mute="1"); Q.vnd&&(R.vnd=Q.vnd);Q.forceAdsUrl&&(U=Q.forceAdsUrl.split("|").length===3,R.force_ad_params=U?Q.forceAdsUrl:"||"+Q.forceAdsUrl);Q.IW&&(R.preload=Q.IW);J.width&&(R.width=J.width);J.height&&(R.height=J.height);(Q.bY?0:Q.ex)&&(R.splay="1");Q.ypcPreview&&(R.ypc_preview="1");UH(Q)&&(R.content_v=UH(Q));Q.qB&&(R.livemonitor=1);m.P7&&(R.authuser=m.P7);m.pageId&&(R.pageid=m.pageId);m.s$&&(R.ei=m.s$);m.W&&(R.iframe="1");Q.contentCheckOk&&(R.cco="1");Q.racyCheckOk&&(R.rco="1");m.T&&Q.gU&&(R.live_start_walltime= Q.gU);m.T&&Q.VR&&(R.live_manifest_duration=Q.VR);m.T&&Q.playerParams&&(R.player_params=Q.playerParams);m.T&&Q.cycToken&&(R.cyc=Q.cycToken);m.T&&Q.jY&&(R.tkn=Q.jY);d!==0&&(R.vis=d);m.enableSafetyMode&&(R.enable_safety_mode="1");Q.gq&&(R.kpt=Q.gq);Q.Il&&(R.kids_age_up_mode=Q.Il);Q.kidsAppInfo&&(R.kids_app_info=Q.kidsAppInfo);Q.BK&&(R.upg_content_filter_mode="1");m.widgetReferrer&&(R.widget_referrer=m.widgetReferrer.substring(0,128));Q.jJ?(J=Q.jJ.latitudeE7!=null&&Q.jJ.longitudeE7!=null?Q.jJ.latitudeE7+ ","+Q.jJ.longitudeE7:",",J+=","+(Q.jJ.clientPermissionState||0)+","+(Q.jJ.locationRadiusMeters||"")+","+(Q.jJ.locationOverrideToken||"")):J=null;J&&(R.uloc=J);Q.f$&&(R.internalipoverride=Q.f$);m.embedConfig&&(R.embed_config=m.embedConfig);m.FN&&(R.co_rel="1");m.ancestorOrigins.length>0&&(R.ancestor_origins=Array.from(m.ancestorOrigins).join(","));m.homeGroupInfo!==void 0&&(R.home_group_info=m.homeGroupInfo);m.livingRoomAppMode!==void 0&&(R.living_room_app_mode=m.livingRoomAppMode);m.enablePrivacyFilter&& (R.enable_privacy_filter="1");Q.isLivingRoomDeeplink&&(R.is_living_room_deeplink="1");Q.dM&&Q.Bs&&(R.clip=Q.dM,R.clipt=Q.Bs);Q.Og&&(R.disable_watch_next="1");Q.kZ&&(R.forced_by_var="1");for(var B in R)!SBW.has(B)&&R[B]&&String(R[B]).length>512&&(g.CO(Error("GVI param too long: "+B)),R[B]="");B=m.Ff;g.ia(m)&&(B=s1(B.replace(/\b(?:www|web)([.-])/,"tv$1"))||m.Ff);m=g.BK(B+"get_video_info",R);G&&(m=K_W(m,G));G=m}q=G;D=(r=Q.isAd())?1:3;v=0;case 2:if(!(v<D)){h.O$(4);break}Y=q;if(!(v>0)){h.O$(5);break}return g.P(h, mL(5E3),6);case 6:X={playerretry:v,playerretrysrc:z},r||(X.recover="embedded"),Y=rp(q,X);case 5:return g.P(h,$vD(Q,Y).then(b,K),7);case 7:if(S=h.j)return h.return();v++;h.O$(2);break;case 4:T=r?"auth":"manifest.net.retryexhausted";f=r?2:1;if(!r&&Math.random()<1E-4)try{g.CO(new g.tW("b/152131571",btoa(q)))}catch(e){}return h.return(Promise.reject(new N5(T,{backend:"gvi"},f)))}})}; $vD=function(Z,Q){function z(J){return K(J.xhr)} function K(J){if(!Z.FI()){J=J?J.status:-1;var d=0,G=((0,g.Nm)()-X).toFixed();G=b.V("html5_use_network_error_code_enums")?{backend:"gvi",rc:J,rt:G}:{backend:"gvi",rc:""+J,rt:G};var R="manifest.net.connect";J===429?(R="auth",d=2):J>200&&(R="manifest.net.badstatus",J===400&&(d=2));return Promise.reject(new N5(R,G,d))}} var b,q,r,D,v,Y,X,S,T,f,h,m;return g.C(function(J){if(J.Y==1){Z.fetchType="gvi";b=Z.N();var d={};Z.Gv&&(d.ytrext=Z.Gv);(D=g.Ne(d)?void 0:d)?(q={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:D},r=rp(Q,{action_display_post:1})):(q={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},r=Q);v={};b.sendVisitorIdHeader&&Z.visitorData&&(v["X-Goog-Visitor-Id"]=Z.visitorData);(Y=tR(b.experiments,"debug_sherlog_username"))&&(v["X-Youtube-Sherlog-Username"]=Y);Object.keys(v).length> 0&&(q.headers=v);X=(0,g.Nm)();return g.P(J,zi(Gr,r,q).then(void 0,z),2)}S=J.j;if(!S||!S.responseText)return J.return(K(S));Z.loading=!1;T=zr(S.responseText);g.W1(Z,T,!0);if(Z.errorCode)return f={ec:Z.errorCode,ed:Z.errorDetail,es:Z.Uq||""},J.return(Promise.reject(new N5("auth",f,2)));if(!Z.loading&&!oO(Z))return h=Z.isAd()?"auth":"manifest.net.retryexhausted",m=Z.isAd()?2:1,J.return(Promise.reject(new N5(h,{successButUnplayable:"1"},m)));g.LX(J)})}; YBr=function(Z,Q){return new N5(Z?"auth":"manifest.net.retryexhausted",Q,Z?2:1)}; Xk=function(Z,Q,z){z=z===void 0?!1:z;var K,b,q,r;g.C(function(D){if(D.Y==1){K=Z.N();if(z&&(!g.xa(K)||p3(Q)!=="embedded")||Q.Og||p3(Q)!=="adunit"&&(g.Nf(K)||HZ(K)||g.HM(K)||g.ia(K)||uI(K)==="WEB_CREATOR"))return D.return();b=g.la(K,g.B0(Q));return b.Y?g.P(D,b.Y,3):(q=b.getValue(),D.O$(2))}D.Y!=2&&(q=D.j);r=q;return D.return(Tj0(Z,Q,r))})}; Tj0=function(Z,Q,z){var K,b,q,r,D;return g.C(function(v){if(v.Y==1){g.nX(v,2);K=v19(z);var Y=Q.N();g.B6();var X={context:g.sq(Q),videoId:Q.videoId,racyCheckOk:Q.racyCheckOk,contentCheckOk:Q.contentCheckOk,autonavState:"STATE_NONE"};p3(Q)==="adunit"&&(X.isAdPlayback=!0);Y.embedConfig&&(X.serializedThirdPartyEmbedConfig=Y.embedConfig);Y.FN&&(X.showContentOwnerOnly=!0);Q.Vj&&(X.showShortsOnly=!0);g.W6(0,141)&&(X.autonavState=g.W6(0,140)?"STATE_OFF":"STATE_ON");if(g.ka(Y)){var S=g.W6(0,65);S=S!=null? !S:!1;var T=!!g.pS("yt-player-sticky-caption");X.captionsRequested=S&&T}var f;if(Y=(f=Y.getWebPlayerContextConfig())==null?void 0:f.encryptedHostFlags)X.playbackContext={encryptedHostFlags:Y};b=X;q=g.lc(fan);Z.bk("wn_s");return g.P(v,g.t4(K,b,q),4)}if(v.Y!=2)return r=v.j,Z.bk("wn_r"),!r||"error"in r&&r.error||(D=r,g.GK(Q.N())&&D.trackingParams&&IL(D.trackingParams),g.W1(Q,{raw_watch_next_response:r},!1)),g.m9(v,0);g.I0(v);g.LX(v)})}; hV0=function(Z){Z.bk("vir");Z.bk("ps_s");kp("vir",void 0,"video_to_ad");var Q=Dvn(Z);Q.then(function(){Z.bk("virc");kp("virc",void 0,"video_to_ad");Z.bk("ps_r");kp("ps_r",void 0,"video_to_ad")},function(){Z.bk("virc"); kp("virc",void 0,"video_to_ad")}); return Q}; g.TT=function(Z,Q,z,K,b,q,r,D,v,Y){v=v===void 0?new g.OK(Z):v;Y=Y===void 0?!0:Y;g.rV.call(this);var X=this;this.Yh=Z;this.playerType=Q;this.rq=z;this.oB=K;this.getVisibilityState=q;this.visibility=r;this.lh=D;this.videoData=v;this.fB=Y;this.logger=new g.EV("VideoPlayer");this.f8=new c9M(this.Yh);this.iY=null;this.qx=new TA;this.So=null;this.jQ=new Nan(this.Yh,this.oB,this);this.KW=!0;this.Tf=this.wr=null;this.wl=[];this.Uu=new Y1;this.K0=this.JB=null;this.QQ=new Y1;this.zR=null;this.tY=this.vr=!1; this.Lu=NaN;this.wY=!1;this.playerState=new g.Kg;this.Fg=[];this.AD=new g.M5;this.aX=new STf(this);this.mediaElement=null;this.Nc=new g.E6(this.u3g,15E3,this);this.Y2=this.Ti=!1;this.zA=NaN;this.Md=!1;this.WI=0;this.Wm=!1;this.lx=NaN;this.yh=new Da(new Map([["bufferhealth",function(){return uC9(X.xd)}], ["bandwidth",function(){return X.Dv()}], ["networkactivity",function(){return X.Yh.schedule.P7}], ["livelatency",function(){return X.isAtLiveHead()&&X.isPlaying()?L7n(X):NaN}], ["rawlivelatency",function(){return L7n(X)}]])); this.t8=0;this.loop=!1;this.playbackRate=1;this.RY=0;this.xd=new UMG(this);this.ju=!1;this.nu=[];this.Ko=this.gY=0;this.qk=this.Fc=!1;this.ub=this.Fd=0;this.Pp=-1;this.A3="";this.qL=new g.E6(this.G6,0,this);this.cC=!1;this.jf=this.y3=null;this.oqu=[this.AD,this.qL,this.Nc,this.yh];this.lT=this.r5=null;this.bz=function(){var S=X.NT();S.provider.Yh.ex||S.provider.Iu.getVisibilityState()===3||(S.provider.Yh.ex=!0);bP9(S);if(S.j){var T=S.j;T.L&&T.Y<0&&T.provider.Iu.getVisibilityState()!==3&&xsd(T)}S.qoe&& (S=S.qoe,S.s$&&S.j<0&&S.provider.Yh.ex&&mdG(S),S.S&&GA(S));X.wr&&S0(X);X.Yh.Al&&!X.videoData.backgroundable&&X.mediaElement&&!X.o6()&&(X.isBackground()&&X.mediaElement.L3()?(X.pN("bgmobile",{suspend:1}),X.RR(!0,!0)):X.isBackground()||$1(X)&&X.pN("bgmobile",{resume:1}))}; this.zz={I0:function(S){X.I0(S)}, W7J:function(S){X.iY=S}, kw$:function(){return X.JE}, nF:function(){return X.OV}, NE:function(){return X.Tf}, UOG:function(){return X.HI}, Ql$:function(){return X.d8}, DD7:function(){}, N:function(){return X.Yh}, ES:function(){return X.mediaElement}, ZrF:function(S){X.Sk(S)}, CNg:function(){return X.oB}}; this.logger.debug(function(){return"creating, type "+Q}); this.Rq=new g.uX(function(){return X.getCurrentTime()},function(){return X.getPlaybackRate()},function(){return X.getPlayerState()},function(S,T){S!==g.r7("endcr")||g.t(X.playerState,32)||X.s0(); b(S,T,X.playerType)},function(S,T){g.V0(X.videoData)&&X.pN(S,T)}); g.W(this,this.Rq);g.W(this,this.xd);n1G(this,v);this.videoData.subscribe("dataupdated",this.HyJ,this);this.videoData.subscribe("dataloaded",this.u9,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.pN,this);this.videoData.subscribe("ctmpstr",this.rL,this);this.gW();YT4(this.bz);this.visibility.subscribe("visibilitystatechange",this.bz);this.HI=new g.E6(this.YY,g.Xp(this.Yh.experiments,"html5_player_att_initial_delay_ms")||4500,this);this.d8= new g.E6(this.YY,g.Xp(this.Yh.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.O7=new g.xV(this)}; n1G=function(Z,Q){if(Z.playerType===2||Z.Yh.dl)Q.PZ=!0;var z=P1u(Q.Sp,Q.N_,Z.Yh.W,Z.Yh.T);z&&(Q.adFormat=z);Z.playerType===2&&(Q.h6=!0);if(Z.isFullscreen()||Z.Yh.W)z=g.pS("yt-player-autonavstate"),Q.autonavState=z||(Z.Yh.W?2:Z.videoData.autonavState);Q.endSeconds&&Q.endSeconds>Q.startSeconds&&A8(Z,Q.endSeconds)}; c89=function(Z){q0n(Z.JE);g.jR(Z.JE);for(var Q=Z.OV,z=g.n(Q.Y.values()),K=z.next();!K.done;K=z.next())q0n(K.value);Q.Y.clear();g.jR(Z.OV)}; mvx=function(Z){var Q=Z.videoData;hV0(Z).then(void 0,function(z){Z.videoData!==Q||Q.FI()||(z=it(z),z.errorCode==="auth"&&Z.videoData.errorDetail?Z.q8(z.errorCode,2,unescape(Z.videoData.errorReason),d8(z.details),Z.videoData.errorDetail,Z.videoData.Uq||void 0):Z.handleError(z))})}; y8G=function(Z){if(!g.t(Z.playerState,128))if(Z.videoData.isLoaded(),Z.logger.debug("finished loading playback data"),Z.wl=g.QM(Z.videoData.JG),g.L3(Z.videoData)){Z.rq.tick("bpd_s");f_(Z).then(function(){Z.rq.tick("bpd_c");if(!Z.FI()){Z.vr&&(Z.V3(ru(ru(Z.playerState,512),1)),$1(Z));var K=Z.videoData;K.endSeconds&&K.endSeconds>K.startSeconds&&A8(Z,K.endSeconds);Z.Uu.finished=!0;h8(Z,"dataloaded");Z.QQ.fJ()&&IaW(Z);uWf(Z.jQ,Z.K0)}}); Z.V("html5_log_media_perf_info")&&Z.pN("loudness",{v:Z.videoData.CM.toFixed(3)},!0);var Q,z=(Q=Z.mediaElement)==null?void 0:Q.OA();if(z&&"disablePictureInPicture"in z&&Z.Yh.MN)try{z.disablePictureInPicture=Z.Yh.VR&&!Z.videoData.backgroundable}catch(K){g.CO(K)}J8x(Z)}else h8(Z,"dataloaded")}; f_=function(Z){L_(Z);Z.K0=null;var Q=IOG(Z.Yh,Z.videoData,Z.o6());Z.JB=Q;Z.JB.then(function(z){dvr(Z,z)},function(z){Z.FI()||(z=it(z),Z.visibility.isBackground()?(n_(Z,"vp_none_avail"),Z.JB=null,Z.Uu.reset()):(Z.Uu.finished=!0,Z.q8(z.errorCode,z.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",d8(z.details))))}); return Q}; dvr=function(Z,Q){if(!Z.FI()&&!Q.videoData.FI()){Z.logger.debug("finished building playback data");Z.K0=Q;BYr(Z.xd,Z.K0);if(Z.videoData.isLivePlayback){var z=NjX(Z.lh.X8,Z.videoData.videoId)||Z.wr&&!isNaN(Z.wr.P7);z=Z.V("html5_onesie_live")&&z;qv(Z)||Z.videoData.sA>0&&!AP(Z.videoData)||z||Z.seekTo(Z.TJ(),{s8:"videoplayer_playbackData",seekSource:18})}if(Z.videoData.S.Y){if(Z.V("html5_sabr_report_missing_url_as_error")&&AQn(Z.videoData)){Z.handleError(new N5("fmt.missing",{missabrurl:"1"},2));return}Z.wr? g.CO(Error("Duplicated Loader")):(z=g.Xp(Z.Yh.experiments,"html5_onesie_defer_content_loader_ms"))&&Z.d6()&&NjX(Z.lh.X8,Z.videoData.VW)?g.$q(function(){Z.FI()||Z.wr||GT9(Z)},z):GT9(Z)}else!Z.videoData.S.Y&&kG(Z.videoData)&&Z.Af(new bH(Z.videoData.videoId||"",4)); Z.rP();Us9(Q).then(function(){var K={};Z.mC(K);Z.Yh.aT()&&Z.V("html5_log_media_perf_info")&&Z.pN("av1Info",K);S0(Z)})}}; IaW=function(Z){Z.FI();Z.logger.debug("try finish readying playback");if(Z.QQ.finished)Z.logger.debug("already finished readying");else if(Z.Uu.finished)if(g.t(Z.playerState,128))Z.logger.debug("cannot finish readying because of error");else if(Z.wl.length)Z.logger.debug(function(){return"cannot finish readying because of pending preroll: "+Z.wl}); else if(Z.Rq.started||h29(Z.Rq),Z.Um())Z.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{Z.wr&&(Z.tY=jaD(Z.wr.timing));Z.QQ.finished||(Z.QQ.finished=!0);var Q=Z.V("html5_onesie_live")&&Z.wr&&!isNaN(Z.wr.P7);!Z.videoData.isLivePlayback||Z.videoData.sA>0&&!AP(Z.videoData)||Q||qv(Z)||(Z.logger.debug("seek to head for live"),Z.seekTo(Infinity,{s8:"videoplayer_readying",seekSource:18}),Z.isBackground()&&(Z.Y2=!0));ZPx(Z.NT());Z.logger.debug("finished readying playback"); Z.publish("playbackready",Z);WO("pl_c",Z.rq.timerName)||(Z.rq.tick("pl_c"),kp("pl_c",void 0,"video_to_ad"));WO("pbr",Z.rq.timerName)||(Z.rq.tick("pbr"),kp("pbr",void 0,"video_to_ad"))}else Z.logger.debug("playback data not loaded")}; A8=function(Z,Q){Z.So&&i_n(Z);Z.So=new g.b6(Q*1E3,0x7ffffffffffff);Z.So.namespace="endcr";Z.addCueRange(Z.So)}; i_n=function(Z){Z.removeCueRange(Z.So);Z.So=null}; aau=function(Z,Q,z,K,b){var q=Z.NT(b),r=g.V0(Z.videoData)?q.getVideoData():Z.videoData;r.j=z;var D=g.cy(Z);z=new dsx(r,z,Q,D?D.itag:"",K);Z.Yh.experiments.XI("html5_refactor_sabr_video_format_selection_logging")?(z.videoId=b,Z.lT=z):q.Nx(z);b=Z.jQ;b.j=0;b.Y=0;Z.publish("internalvideoformatchange",r,Q==="m")}; g.cy=function(Z){var Q=m7(Z);return Z5(Q)||!Z.K0?null:g.Fm(Z.K0.Y.videoInfos,function(z){return Q.W(z)})}; m7=function(Z){if(Z.K0){var Q=Z.jQ;var z=Z.K0;Z=Z.Qv();var K=apu(Q);if(Z5(K)){if(K=Gbn(Q,z).compose(plr(Q,z)).compose(Mwd(Q,z)).compose(VwM(Q,z.videoData)).compose(kbX(Q,z.videoData,z)).compose(nP(Q,z)).compose(Rxx(Q,z)),Z5(Z)||Q.V("html5_apply_pbr_cap_for_drm"))K=K.compose(CHd(Q,z))}else Q.V("html5_perf_cap_override_sticky")&&(K=K.compose(nP(Q,z))),Q.V("html5_ustreamer_cap_override_sticky")&&(K=K.compose(CHd(Q,z)));K=K.compose(Rxx(Q,z));Q=z.videoData.ew.compose(K).compose(z.videoData.AF).compose(Z)}else Q= UK;return Q}; ZUf=function(Z){var Q=Z.jQ;Z=Z.videoData;var z=VwM(Q,Z);Q.V("html5_disable_client_autonav_cap_for_onesie")||z.compose(kbX(Q,Z));return z}; S0=function(Z){if(Z.videoData.S&&Z.videoData.S.Y){var Q=m7(Z);Z.wr&&tHd(Z.wr,Q)}}; P5u=function(Z){var Q;return!!(Z.V("html5_native_audio_track_switching")&&g.Lc&&((Q=Z.videoData.j)==null?0:sZ(Q)))}; RV9=function(Z){if(!P5u(Z))return!1;var Q;Z=(Q=Z.mediaElement)==null?void 0:Q.audioTracks();return!!(Z&&Z.length>1)}; pyX=function(Z){var Q=C5f(Z);if(Q)return Z.videoData.getAvailableAudioTracks().find(function(z){return z.Qw.getName()===Q})}; C5f=function(Z){var Q;if(Z=(Q=Z.mediaElement)==null?void 0:Q.audioTracks())for(Q=0;Q<Z.length;++Q){var z=Z[Q];if(z.enabled)return z.label}}; H_4=function(Z){var Q,z=Z.videoData.getAvailableAudioTracks(),K=Z.videoData.Zt;K&&(Q=z.find(function(q){return q.getLanguageInfo().id===K})); if(Z.Yh.experiments.XI("enable_audio_description_setting")&&g.W6(g.B6(),198)){z=g.n(z);for(var b=z.next();!b.done;b=z.next())if(b=b.value,b.L){Q=b;break}}Q||(Z=Z.getAudioTrack(),Q=Z.Qw.isDefault?void 0:Z);return Q}; GT9=function(Z){for(var Q=Z.videoData.Y,z=g.n(Object.entries({cpn:Z.videoData.clientPlaybackNonce,c:Z.Yh.Y.c,cver:Z.Yh.Y.cver})),K=z.next();!K.done;K=z.next()){var b=g.n(K.value);K=b.next().value;b=b.next().value;for(var q=g.n(Object.values(Q.Y)),r=q.next();!r.done;r=q.next())HI9(r.value.zW,K,b);q=void 0;(q=Q.X)==null||HI9(q,K,b)}z=Z.Yh;K=Z.videoData;Q=new g.ODu(z);b=U1r({hasSubfragmentedFmp4:K.hasSubfragmentedFmp4,QC:K.QC});Q.X=b;Q.P7=K.maxReadAheadMediaTimeMs/1E3||Q.P7;b=z.schedule;b.S.Wx()===b.policy.S? Q.sA=10:Q.sA=K.minReadAheadMediaTimeMs/1E3||Q.sA;Q.yF=K.readAheadGrowthRateMs/1E3||Q.yF;Q.Y3=!wQ();g.Nf(z)||!wQ()?(b=z.experiments,Q.tG=8388608,Q.Qp=524288,Q.uP=5,Q.Du=1048576,Q.lG=1.5,Q.Yq=4587520,xq()&&(Q.Yq=786432),Q.U*=1.1,Q.jJ*=1.1,Q.Uv=!0,Q.Vr=b.XI("persist_disable_player_preload_on_tv")||b.XI("persist_disable_player_preload_on_tv_for_living_room")||!1):z.j&&(Q.U*=1.3,Q.jJ*=1.3);g.R3&&g.WX("crkey")&&(b=z.Y.cmodel==="CHROMECAST/ANCHOVY",Q.tG=20971520,Q.Qp=1572864,b&&(Q.Yq=812500,Q.y7=1E3,Q.sD= 5,Q.Du=2097152));g.pD&&(Q.Uv=!0);z.supportsGaplessAudio()||(Q.Sb=!1);e2&&(Q.zJ=!0);Q.N8=z.V("html5_peak_shave");K.fetchType==="onesie"&&z.V("html5_disable_peak_shave_for_onesie")&&(Q.N8=!1);var D;b=(D=K.Y)==null?void 0:D5(D);if(AP(K)){Q.YE=!0;Q.vk||(Q.Om=!0);Q.Sp=!0;Q.n4=!0;Q.nE=!0;if(K.latencyClass==="ULTRALOW"||K.latencyClass==="LOW"&&!z.V("html5_disable_low_pipeline"))Q.AV=2,Q.yB=4;Q.T0=K.defraggedFromSubfragments;if(K.PN||z.V("html5_publish_all_cuepoints"))Q.Bs=!0;g.md(K)&&(Q.X7=!1);Q.f$=g.yF(z)}K.isAd()&& (Q.zT=0,Q.o0=0);Q.CM=z.V("html5_enable_subsegment_readahead_v3")||z.V("html5_ultra_low_latency_subsegment_readahead")&&K.latencyClass==="ULTRALOW";Q.S=z.aT();ZT()&&/(K\d{3}|KS\d{3}|KU\d{3})/.test(z.Y.cmodel)&&!z.V("html5_disable_move_pssh_to_moov")&&b&&(Q.Uv=!1);q=0;z.V("html5_live_use_alternate_bandwidth_window_sizes")&&(q=z.schedule.policy.Y,K.isLivePlayback&&(q=g.Xp(z.experiments,K.latencyClass==="ULTRALOW"?"html5_live_ultra_low_latency_bandwidth_window":K.isLowLatencyLiveStream?"html5_live_low_latency_bandwidth_window": "html5_live_normal_latency_bandwidth_window")||q));D=z.schedule;D.j.W=AP(K)?.5:0;if(!D.policy.j&&q&&(D=D.S,q=Math.round(q*D.resolution),q!==D.Y)){r=Array(q);var v=Math.min(q,D.S?D.Y:D.j),Y=D.j-v;Y<0&&(Y+=D.Y);for(var X=0;X<v;++X)r[X]=D.values[(Y+X)%D.Y];for(;X<q;++X)r[X]=Infinity;D.Y=q;D.values=r;D.j=v%q;D.S=v===q;D.jo=!0;D.L=C$G(D)}K.isLivePlayback&&(Q.L4=g.Xp(z.experiments,"html5_min_startup_buffered_media_duration_for_live_secs")||.25,Q.Zu=!1);K.LZ()&&(Q.Zu=!1);jy(K)&&(Q.CM=!0,K.latencyClass=== "LOW"?Q.kL=g.Xp(z.experiments,"html5_jumbo_mobile_subsegment_readahead_target"):K.latencyClass==="ULTRALOW"&&(Q.kL=g.Xp(z.experiments,"html5_jumbo_ull_subsegment_readahead_target")),Q.pO=!0);K.fd()&&(Q.kZ=1.3);Q.zJ=Q.zJ||K.eH;Q.DI=(Q.DI||K.DI)&&z.T;Q.kz=z.V("html5_sunset_aac_high_codec_family");Q.j=g.V0(K);Q.F7=K.X||Q.j&&!z.V("html5_enable_ssap_seteos");z.aT()&&(Q.CN=!0);K.X&&!b&&(Q.dI=!0);K.X&&K.isAd()&&(Q.U*=1.6,Q.jJ*=1.6);kG(K)&&(Q.W=K.videoId,Q.FN=!0,Q.dk=100,K.XU&&K.XU.length>0&&(Q.LK=K.XU)); Q.DH=K.R4;Q.k8=y3(z,{},K.S||void 0,Zu(K));Q.qB=sH(K)&&g.HM(z);Qa(K)&&(z.V("html5_sabr_allow_video_keyframe_without_audio")&&(Q.yk=!0),z.V("html5_sabr_report_partial_segment_estimated_duration")&&(Q.KO=!0),Q.Y=!0,Q.xA=z.V("html5_sabr_enable_utc_seek_requests"),Q.dl=z.V("html5_sabr_enable_live_clock_offset"),Q.Jl=z.V("html5_disable_client_resume_policy_for_sabr"),Q.HK=z.V("html5_trigger_loader_when_idle_network"),Q.S5=z.V("html5_sabr_parse_live_metadata_playback_boundaries"),Q.wM=z.V("html5_enable_platform_backpressure_with_sabr"), Q.Il=z.V("html5_consume_onesie_next_request_policy_for_sabr"),Q.zb=z.V("html5_sabr_report_next_ad_break_time"),Q.qy=z.V("html5_log_high_res_buffer_timeline")&&z.aT(),Q.bG=z.V("html5_remove_stuck_slices_beyond_max_buffer_limits"),Q.mK=z.V("html5_gapless_sabr_btl_last_slice")&&l8(K),Q.xk=z.V("html5_reset_last_appended_slice_on_seek")&&l8(K),AP(K)?(Q.Og=!0,Q.T_=z.V("html5_disable_variability_tracker_for_live"),Q.s$=z.V("html5_sabr_use_accurate_slice_info_params"),z.V("html5_simplified_backup_timeout_sabr_live")&& (Q.uw=!0,Q.y7=Q.sj)):Q.fL=z.V("html5_probe_request_on_sabr_request_progress"),Q.Ps=z.V("html5_serve_start_seconds_seek_for_post_live_sabr"),Q.ex=z.V("html5_flush_index_on_updated_timestamp_offset"),Q.Vp=z.V("html5_enable_sabr_request_pipelining")&&!g.V0(K),Q.K4=z.V("html5_ignore_partial_segment_from_live_readahead"),Q.N_=z.V("html5_use_non_active_broadcast_for_post_live"),Q.KN=z.V("html5_use_centralized_player_time"),Q.WS=z.V("html5_consume_onesie_sabr_seek"),Q.SJ=z.V("html5_enable_sabr_seek_loader_refactor"), Q.ew=z.V("html5_update_segment_start_time_from_media_header"),K.enableServerStitchedDai&&(Q.L=!0,Q.V6=z.V("html5_reset_server_stitch_state_for_non_sabr_seek"),Q.JC=z.V("html5_remove_ssdai_append_pause"),Q.NB=z.V("html5_consume_ssdai_info_with_streaming"),Q.Ju=z.V("html5_process_all_cuepoints")));Q.K=Q.Y&&z.V("html5_sabr_live");Q.gq=g.bdx(K);Sl(z.L,$L.BITRATE)&&(Q.Yq=NaN);if(D=g.Xp(z.experiments,"html5_request_size_max_kb"))Q.Du=D*1024;z.L.L?Q.bY="; "+$L.EXPERIMENTAL.name+"=allowed":z.V("html5_enable_cobalt_tunnel_mode")&& (Q.bY="; tunnelmode=true");D=K.serverPlaybackStartConfig;(D==null?0:D.enable)&&(D==null?0:D.playbackStartPolicy)&&(Q.tV=!0,og(Q,D.playbackStartPolicy,2));D=H_4(Z);Z.qx.removeAll();a:{z=Z.lh.X8;if(K=Z.videoData.videoId)if(b=z.Y.get(K)){z.Y.remove(K);z=b;break a}z=void 0}Z.wr=new g.bX(Z,Z.Yh.schedule,Q,Z.videoData.Y,Z.videoData.S,m7(Z),D,Z.videoData.enableServerStitchedDai,z,Z.videoData.Du);Q=Z.videoData.V("html5_disable_preload_for_ssdai_with_preroll")&&Z.videoData.isLivePlayback&&Z.d6()?!0:Z.vr&& g.Nf(Z.Yh)&&Z.videoData.isLivePlayback;Z.wr.initialize(Z.getCurrentTime(),m7(Z),Q);Z.videoData.probeUrl&&(Z.wr.s$=Z.videoData.probeUrl);if(Z.wl.length||Z.vr)Z.videoData.cotn||I_(Z,!1);Vs0(Z.xd,Z.wr);Z.y3&&($zW(Z.wr,new g.js(Z.y3)),Z.pN("sdai",{sdl:1}));Z.jf&&(Z.wr.GA(Z.jf),Z.xd.T=!1);g.xG(Z.videoData)&&(Z=Z.wr,Z.policy.Yi=Z.policy.Ca)}; L_=function(Z){Z.wr&&(Z.wr.dispose(),Z.wr=null,Vs0(Z.xd,null));Z.jc()?M0D(Z):Z.Ss()}; M0D=function(Z){if(Z.Tf)if(Z.logger.debug("release media source"),Z.Sd(),Z.Tf.L)try{Z.Yh.aT()&&Z.pN("rms",{l:"vprms",sr:Z.jc(),rs:e8(Z.Tf)});Z.Tf.clear();var Q;(Q=Z.mediaElement)!=null&&(Q.j=Z.Tf);Z.Tf=null}catch(z){Q=new g.tW("Error while clearing Media Source in VideoPlayer: "+z.name+", "+z.message),Q=it(Q),Z.handleError(Q),Z.Ss()}else Z.Ss()}; UvW=function(Z,Q){Q=Q===void 0?!1:Q;if(Z.Tf)return Z.Tf.S;Z.logger.debug("update media source");a:{Q=Q===void 0?!1:Q;try{g.kq()&&Z.videoData.Qu()&&J1G(Z.mediaElement);var z=Z.mediaElement.NE(Z.HM(),Z.sT())}catch(b){if(LK4(Z.aX,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",b);Z.q8("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}Z.iT(z,!1,!1,Q)}var K;return((K=Z.NE())==null?void 0:K.S)||null}; O_f=function(Z,Q){Q=Q===void 0?!1:Q;if(Z.wr){var z=Z.getCurrentTime()-Z.Ry();Z.wr.seek(z,{xx:Q}).RX(function(){})}else GT9(Z)}; Bj4=function(Z,Q,z,K){z=z===void 0?!1:z;K=K===void 0?!1:K;if(Z.Tf&&(!Q||Z.Tf===Q)){Z.logger.debug("media source opened");var b=Z.getDuration();!b&&AP(Z.videoData)&&(b=25200);if(Z.Tf.isView){var q=b;Z.logger.debug(function(){return"Set media source duration to "+q+", video duration "+b}); q>Z.Tf.getDuration()&&o1x(Z,q)}else o1x(Z,b);ksr(Z.wr,Z.Tf,z,K);Z.publish("mediasourceattached")}}; o1x=function(Z,Q){if(Z.Tf){Z.Tf.bN(Q);var z;(z=Z.wr)!=null&&z.policy.KN&&(z.K=Q)}}; evX=function(Z,Q){aau(Z,Q.reason,Q.Y.info,Q.token,Q.videoId)}; W74=function(Z,Q){Z.Yh.experiments.XI("enable_adb_handling_in_sabr")&&(Z.pauseVideo(!0),Z.Ym(),Q&&Z.q8("sabr.config",1,"BROWSER_OR_EXTENSION_ERROR"))}; h8=function(Z,Q){Z.publish("internalvideodatachange",Q===void 0?"dataupdated":Q,Z,Z.videoData)}; V04=function(Z){for(var Q=g.n("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),z=Q.next();!z.done;z=Q.next())Z.AD.Z(Z.mediaElement,z.value,Z.Sk,Z);Z.Yh.kz&&Z.mediaElement.Yo()&&(Z.AD.Z(Z.mediaElement,"webkitplaybacktargetavailabilitychanged",Z.DTh,Z),Z.AD.Z(Z.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",Z.Zdr,Z))}; ukd=function(Z){g.hN(Z.Lu);kTn(Z)||(Z.Lu=g.Tr(function(){return kTn(Z)},100))}; kTn=function(Z){var Q=Z.mediaElement;Q&&Z.Ti&&!Z.videoData.P7&&!WO("vfp",Z.rq.timerName)&&Q.oX()>=2&&!Q.isEnded()&&gQ(Q.gm())>0&&Z.rq.tick("vfp");return(Q=Z.mediaElement)&&!Z.videoData.P7&&Q.getDuration()>0&&(Q.isPaused()&&Q.oX()>=2&&gQ(Q.gm())>0&&(WO("pbp",Z.rq.timerName)||Z.rq.tick("pbp"),!Z.videoData.n4||Z.wY||Q.isSeeking()||(Z.wY=!0,Z.publish("onPlaybackPauseAtStart"))),Q=Q.getCurrentTime(),FC(Z.f8,Q))?(Z.Dx(),!0):!1}; t09=function(Z){Z.NT().qn();if(rP(Z.videoData)&&Date.now()>Z.RY+6283){if(!(!Z.isAtLiveHead()||Z.videoData.Y&&YQ(Z.videoData.Y))){var Q=Z.NT();if(Q.qoe){Q=Q.qoe;var z=Q.provider.Iu.X6(),K=g.m4(Q.provider);Sr9(Q,K,z);z=z.S;isNaN(z)||g.dY(Q,K,"e2el",[z.toFixed(3)])}}Z.V("html5_alc_live_log_rawlat")?(Q=Z.videoData,Q=g.yF(Q.N())?!0:g.WZ(Q.N())?Q.Bl==="6":!1):Q=g.yF(Z.Yh);Q&&Z.pN("rawlat",{l:gj(Z.yh,"rawlivelatency").toFixed(3)});Z.RY=Date.now()}Z.videoData.j&&sZ(Z.videoData.j)&&(Q=Z.wI())&&Q.videoHeight!== Z.Ko&&(Z.Ko=Q.videoHeight,aau(Z,"a",xv4(Z,Z.videoData.CN)))}; xv4=function(Z,Q){if(Q.Y.video.quality==="auto"&&sZ(Q.getInfo())&&Z.videoData.zJ)for(var z=g.n(Z.videoData.zJ),K=z.next();!K.done;K=z.next())if(K=K.value,K.getHeight()===Z.Ko&&K.Y.video.quality!=="auto")return K.getInfo();return Q.getInfo()}; L7n=function(Z){if(!rP(Z.videoData))return NaN;var Q=0;Z.wr&&Z.videoData.Y&&(Q=AP(Z.videoData)?Z.wr.mp.Wx()||0:Z.videoData.Y.JG);return(0,g.Nm)()/1E3-Z.RC()-Q}; eV4=function(Z){Z.mediaElement&&Z.mediaElement.o6()&&(Z.lx=(0,g.Nm)());Z.Yh.hV?g.$q(function(){F7r(Z)},0):F7r(Z)}; F7r=function(Z){var Q;if((Q=Z.Tf)==null||!Q.YZ()){if(Z.mediaElement)try{Z.zR=Z.mediaElement.playVideo()}catch(K){n_(Z,"err."+K)}if(Z.zR){var z=Z.zR;z.then(void 0,function(K){Z.logger.debug(function(){return"playMediaElement failed: "+K}); if(!g.t(Z.playerState,4)&&!g.t(Z.playerState,256)&&Z.zR===z)if(K&&K.name==="AbortError"&&K.message&&K.message.includes("load"))Z.logger.debug(function(){return"ignore play media element failure: "+K.message}); else{var b="promise";K&&K.name&&(b+=";m."+K.name);n_(Z,b);Z.ju=!0;Z.videoData.bY=!0}})}}}; n_=function(Z,Q){g.t(Z.playerState,128)||(Z.V3(j9(Z.playerState,1028,9)),Z.pN("dompaused",{r:Q}),Z.publish("onAutoplayBlocked"))}; $1=function(Z,Q){Q=Q===void 0?!1:Q;if(!Z.mediaElement||!Z.videoData.S)return!1;var z=Q;z=z===void 0?!1:z;var K=null;var b;if((b=Z.videoData.S)==null?0:b.Y){K=UvW(Z,z);var q;(q=Z.wr)==null||q.resume()}else L_(Z),Z.videoData.CN&&(K=Z.videoData.CN.oN());b=Z.mediaElement.L3();z=!1;b&&b.Tg(K)||(wyd(Z,K),z=!0);g.t(Z.playerState,2)||(K=Z.xd,Q=Q===void 0?!1:Q,K.L||!(K.W>0)||K.mediaElement&&K.mediaElement.getCurrentTime()>0||(Q={s8:"seektimeline_resumeTime",xx:Q},K.videoData.P7||(Q.seekSource=15),K.seekTo(K.W, Q)));a:{Q=z;if(Qa(Z.videoData)){if(!Z.videoData.LZ())break a}else if(!g.$G(Z.videoData))break a;if(Z.mediaElement)if((K=Z.videoData.L)&&Z.mediaElement.Yo()){b=Z.mediaElement.OA();if(Z.iY)if(b!==Z.iY.element)J8(Z);else if(Q&&K.flavor==="fairplay"&&!uV())J8(Z);else break a;if(Z.V("html5_report_error_for_unsupported_tvos_widevine")&&uV()&&K.flavor==="widevine")Z.q8("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.unspttvoswidevine");else{Z.iY=new KID(b,Z.videoData,Z.Yh);Z.iY.subscribe("licenseerror", Z.qg,Z);Z.iY.subscribe("qualitychange",Z.r4h,Z);Z.iY.subscribe("heartbeatparams",Z.Qz,Z);Z.iY.subscribe("keystatuseschange",Z.I0,Z);Z.iY.subscribe("ctmp",Z.pN,Z);Z.V("html5_widevine_use_fake_pssh")&&!Z.videoData.isLivePlayback&&K.flavor==="widevine"&&Z.iY.QM(new Kv(E1x,"cenc",!1));Q=g.n(Z.qx.keys);for(K=Q.next();!K.done;K=Q.next())K=Z.qx.get(K.value),Z.iY.QM(K);Z.V("html5_eme_loader_sync")||Z.qx.removeAll()}}else Z.q8("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1")}return z}; wyd=function(Z,Q){Z.rq.tick("vta");kp("vta",void 0,"video_to_ad");Z.getCurrentTime()>0&&tsM(Z.xd,Z.getCurrentTime());Z.mediaElement.activate(Q);Z.Tf&&zS(0,4);!Z.videoData.P7&&Z.playerState.isOrWillBePlaying()&&Z.Nc.start();if(P5u(Z)){var z;if(Q=(z=Z.mediaElement)==null?void 0:z.audioTracks())Q.onchange=function(){Z.publish("internalaudioformatchange",Z.videoData,!0)}}}; J8=function(Z){Z.iY&&(Z.iY.dispose(),Z.iY=null)}; la9=function(Z){var Q=Q===void 0?!1:Q;Z.logger.debug("reattachVideoSource");Z.mediaElement&&(Z.Tf?(J8(Z),Z.Ss(),UvW(Z,Q)):(Z.videoData.CN&&Z.videoData.CN.i$(),Z.mediaElement.stopVideo()),Z.playVideo())}; sq4=function(Z,Q){Z.Yh.V("html5_log_rebuffer_reason")&&(Q={r:Q,lact:yJ()},Z.mediaElement&&(Q.bh=Zl(Z.mediaElement)),Z.pN("bufreason",Q))}; Zy9=function(Z,Q){if(Z.Yh.aT()&&Z.mediaElement){var z=Z.mediaElement.gy();z.omt=(Z.mediaElement.getCurrentTime()+Z.Ry()).toFixed(3);z.ps=Z.playerState.state.toString(16);z.rt=(g.m4(Z.NT().provider)*1E3).toFixed();z.e=Q;Z.nu[Z.gY++%5]=z}try{if(Q==="timeupdate"||Q==="progress")return}catch(K){}Z.logger.debug(function(){return"video element event "+Q})}; QqM=function(Z){if(Z.Yh.aT()){Z.nu.sort(function(K,b){return+K.rt-+b.rt}); for(var Q=g.n(Z.nu),z=Q.next();!z.done;z=Q.next())z=z.value,Z.pN("vpe",Object.assign({t:z.rt},z));Z.nu=[];Z.gY=0}}; zqG=function(Z){if(g.WX("cobalt")&&g.WX("nintendo switch")){var Q=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;Z.pN("nxdock",{d:Q})}}; I_=function(Z,Q){var z;(z=Z.wr)==null||rY(z,Q)}; $s0=function(Z,Q){return g.V0(Z.videoData)&&Z.jf?Z.jf.handleError(Q,void 0):!1}; J8x=function(Z){qz(Z.videoData,"html5_set_debugging_opt_in")&&(Z=g.B6(),g.W6(0,183)||(kT(183,!0),Z.save()))}; KR0=function(Z){return g.V0(Z.videoData)&&Z.jf?lg(Z.jf):Z.videoData.TJ()}; cPn=function(Z,Q){Z.lh.dV()||(Z.pN("sgap",{f:Q}),Z.lh.clearQueue(!1,Q==="pe"))}; qv=function(Z){return Z.V("html5_disable_video_player_initiated_seeks")&&Qa(Z.videoData)}; byG=function(Z){V7.call(this,Z);var Q=this;this.events=new g.M5(Z);g.W(this,this.events);Q7(this.api,"isLifaAdPlaying",function(){return Q.api.isLifaAdPlaying()}); this.events.Z(Z,"serverstitchedvideochange",function(){Q.api.isLifaAdPlaying()?(Q.playbackRate=Q.api.getPlaybackRate(),Q.api.setPlaybackRate(1)):Q.api.setPlaybackRate(Q.playbackRate)}); this.playbackRate=1}; qUu=function(Z){V7.call(this,Z);var Q=this;this.events=new g.M5(Z);g.W(this,this.events);Q7(this.api,"seekToChapterWithAnimation",function(z){Q.seekToChapterWithAnimation(z)}); Q7(this.api,"seekToTimeWithAnimation",function(z,K){Q.seekToTimeWithAnimation(z,K)}); Q7(this.api,"renderChapterSeekingAnimation",function(z,K,b){Q.api.renderChapterSeekingAnimation(z,K,b)}); Q7(this.api,"setMacroMarkers",function(z){Q.setMacroMarkers(Z,z)}); Q7(this.api,"changeMarkerVisibility",function(z,K,b){Q.changeMarkerVisibility(z,K,b)}); Q7(this.api,"isSameMarkerTypeVisible",function(z){return Q.isSameMarkerTypeVisible(z)})}; rvd=function(Z,Q,z){var K=Z.api.getCurrentTime()*1E3<Q?1:-1;Z.api.renderChapterSeekingAnimation(K,z);Z.api.seekTo(Q/1E3,void 0,void 0,void 0,3)}; Avx=function(Z,Q){var z,K;return(z=Dk(Z,"macroMarkersListEntity",Q))==null?void 0:(K=z.markersList)==null?void 0:K.markerType}; jqG=function(Z,Q){var z=g.wv.getState().entities;Z=Avx(z,Z);Q=g.n(Q.Qp);for(var K=Q.next();!K.done;K=Q.next())if(Z===Avx(z,K.value))return!0;return!1}; y9=function(Z){V7.call(this,Z);var Q=this;this.events=new g.M5(Z);g.W(this,this.events);this.events.Z(Z,"videodatachange",function(){Q.updateMetadata()}); this.events.Z(Z,"presentingplayerstatechange",function(){Dpn(Q)})}; dj=function(Z,Q){try{navigator.mediaSession.setActionHandler(Z,Q)}catch(z){}}; v3n=function(Z){dj("play",function(){Z.api.playVideo()}); dj("pause",function(){Z.api.pauseVideo()}); dj("seekbackward",function(){Z.api.seekBy(-5*Z.api.getPlaybackRate())}); dj("seekforward",function(){Z.api.seekBy(5*Z.api.getPlaybackRate())}); dj("seekto",function(Q){((Q=Q.seekTime)||Z.api.V("web_player_misc_bugfix_a")&&Q!=null)&&Z.api.seekTo(Q)})}; g34=function(Z){var Q,z,K,b;return(Q=Z.api.getVideoData().getWatchNextResponse())==null?void 0:(z=Q.playerOverlays)==null?void 0:(K=z.playerOverlayRenderer)==null?void 0:(b=K.browserMediaSession)==null?void 0:b.browserMediaSessionRenderer}; YUx=function(Z){var Q=[];if(!Z||!Z.thumbnails)return Q;Z=g.n(Z.thumbnails);for(var z=Z.next();!z.done;z=Z.next())z=z.value,z.url&&(!z.width||z.width<=0||!z.height||z.height<=0||g.Qh(z.url)&&Q.push({src:z.url||"",sizes:z.width+"x"+z.height,type:"image/jpeg"}));return Q}; Dpn=function(Z){Z=Z.api.getPlayerStateObject();Z=Z.isCued()||Z.isError()?"none":Z.isOrWillBePlaying()?"playing":"paused";navigator.mediaSession.playbackState=Z}; Xf9=function(Z){var Q=Z.api.getProgressState().seekableEnd;Q&&navigator.mediaSession.setPositionState&&navigator.mediaSession.setPositionState({duration:Q,playbackRate:Z.api.getPlaybackRate(),position:Z.api.getCurrentTime()})}; Nv=function(Z){V7.call(this,Z);var Q=this;this.j=new Map;this.S=this.Y=void 0;this.compositeVideoState=null;this.events=new g.M5(Z);g.W(this,this.events);this.events.Z(Z,"modulecreated",function(z){var K;a:{var b,q,r,D=(b=Q.api.getVideoData())==null?void 0:(q=b.getPlayerResponse())==null?void 0:(r=q.overlay)==null?void 0:r.playerControlsOverlayRenderer;if(D&&(b=g.V(D.compositeVideoOverlay,SU0),b==null?0:(K=b.sources)==null?0:K.length))for(K=g.n(b==null?void 0:b.sources),b=K.next();!b.done;b=K.next())if(b= b.value,b.isActive){K=b;break a}K=void 0}z==="captions"&&(K==null?void 0:K.topLeftCornerX)!==void 0&&(K==null?void 0:K.topLeftCornerY)!==void 0&&(K==null?void 0:K.width)!==void 0&&(K==null?void 0:K.height)!==void 0&&Q.api.e1({top:K.topLeftCornerY,right:1-K.topLeftCornerX-K.width,bottom:1-K.topLeftCornerY-K.height,left:K.topLeftCornerX})}); this.events.Z(Z,"videodatachange",function(z){var K=Q.api.getVideoData();Q.Y=void 0;Q.j.clear();Q.api.US("compositeembargo",1);var b=K==null?void 0:K.qX.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(b==null?0:b.length)?$pu(Q,b.filter(function(q){return T4W(Q,q)})):(K==null?0:K.cueRanges)&&$pu(Q,K.cueRanges.filter(function(q){return T4W(Q,q)})); z==="dataupdated"&&(K==null?void 0:K.compositeLiveStatusToken)!==Q.S&&(Q.S=K==null?void 0:K.compositeLiveStatusToken,Q.api.y0())}); this.events.Z(Z,g.r7("compositeembargo"),function(z){var K;if(((K=Q.Y)==null?void 0:K.id)!==z.id&&(Q.api.BP(!0),Q.j.has(z.id))){var b=Q.j.get(z.id);K=Q.api.getVideoData();b=g.n(b);for(var q=b.next();!q.done;q=b.next()){var r=void 0;q=(r=q.value.compositeEmbargo)==null?void 0:r.embargoStatusToken;K.yB!==q&&(K.yB=q,Q.api.y0());f_u(Q,z)}}}); this.events.Z(Z,g.AH("compositeembargo"),function(z){var K;if(((K=Q.Y)==null?void 0:K.id)===z.id&&(Q.api.BP(!1),Q.j.has(z.id))){if(z=Q.api.getVideoData())z.yB=void 0;Q.api.y0();f_u(Q)}}); this.events.Z(Z,"heartbeatRequest",function(z){Q.compositeVideoState!==null&&(z.playbackState||(z.playbackState={}),z.playbackState.compositeVideoState=Q.compositeVideoState)}); this.events.Z(Z,"internalaudioformatchange",function(z){if(Q.api.V("html5_sabr_enable_server_xtag_selection")){var K=Q.api.getVideoData(void 0,!0);if(K&&Va(K)){var b=Q.api.getAvailableAudioTracks();b=g.n(b);for(var q=b.next();!q.done;q=b.next())if(q.value.getLanguageInfo().getId()===z){K.Zt=z;break}}}}); this.events.Z(Z,"onPlaybackAudioChange",function(){Q.api.y0()}); Q7(Z,"setCompositeParam",function(z){Q.compositeVideoState=z})}; f_u=function(Z,Q){var z;((z=Z.Y)==null?void 0:z.id)!==(Q==null?void 0:Q.id)&&(Z.Y&&(Z.j.delete(Z.Y.id),Z.api.Pk([Z.Y],1)),Z.Y=Q)}; $pu=function(Z,Q){Q=g.n(Q);for(var z=Q.next();!z.done;z=Q.next()){var K=z.value,b=void 0;z=Number((b=K.playbackRelativePosition)==null?void 0:b.utcTimeMs)/1E3;var q=void 0;b=z+Number((q=K.duration)==null?void 0:q.seconds);q="composite_embargo_"+z;K.onEnter&&(K=K.onEnter.filter(Z.W),K.length&&(Z.j.set(q,K),Z.api.addUtcCueRange(q,z,b,"compositeembargo",!1)))}}; T4W=function(Z,Q){var z;return(z=Q.onEnter)==null?void 0:z.some(Z.W)}; hqd=function(Z){V7.call(this,Z);Q7(this.api,"queueOfflineAction",this.queueOfflineAction.bind(this));Q7(this.api,"updateDownloadState",this.updateDownloadState.bind(this));Q7(this.api,"pauseVideoDownload",this.pauseVideoDownload.bind(this));Q7(this.api,"resumeVideoDownload",this.resumeVideoDownload.bind(this));Q7(this.api,"isOrchestrationLeader",this.isOrchestrationLeader.bind(this));Q7(this.api,"refreshAllStaleEntities",this.refreshAllStaleEntities.bind(this));Q7(this.api,"setUpPositionSyncInterval", this.setUpPositionSyncInterval.bind(this))}; GT=function(Z){V7.call(this,Z);var Q=this;Q7(Z,"getAvailableQualityData",function(){return Q.getAvailableQualityData()}); Q7(Z,"getAvailableQualityDataAndMessaging",function(){return Q.getAvailableQualityDataAndMessaging()})}; LRW=function(Z,Q,z){var K=[],b=Q?156595:151874;Z=g.n(Z);for(var q=Z.next();!q.done;q=Z.next()){var r=q.value;q=r.video;r={formatId:r.id,qualityLabel:q.qualityLabel,quality:q.quality,isPlayable:Q};if(q=z.get(q.qualityLabel))r.paygatedQualityDetails={paygatedIndicatorText:q.paygatedIndicatorText,endpoint:q.endpoint,veType:b,trackingParams:q.trackingParams};K.push(r)}return K}; n3W=function(Z){for(var Q=0,z=0;z<Z.length;z++)if(Z[z].paygatedQualityDetails){var K=Z[z];Z.splice(z,1);Z.splice(Q,0,K);Q++}}; cvd=function(Z){var Q=new Set,z=new Map,K={};Z=g.n(Z);for(var b=Z.next();!b.done;b=Z.next()){b=b.value;var q=b.quality,r=b.isPlayable,D=b.qualityLabel;D&&q&&(r&&z.has(q)&&z.get(q)!==D?Q.add(q):r&&z.set(q,D),K[D]||(K[D]=b))}z=[];K=g.n(Object.values(K));for(Z=K.next();!Z.done;Z=K.next())b=Z.value,(Z=b.quality)&&!Q.has(Z)&&(b.formatId=void 0),z.push(b);return z}; i5=function(Z){V7.call(this,Z);var Q=this;this.S=1;this.rq=null;this.zz={ZjI:function(){return Q.S}}; this.events=new g.M5(Z);g.W(this,this.events);this.events.Z(Z,"d6de4videobindingchange",function(z){Q.eT(z)}); this.events.Z(Z,"csiinitialized",function(){mpx(Q)})}; mpx=function(Z){if(I_G()){Z.rq=Z.api.hx();Z.Y=new EZ;Z.S=2;var Q=g.Xp(Z.api.N().experiments,"html5_d6de4_defer_timeout_ms");Z.rq.f0("pt_pish");Q?g.$q(function(){JvG(Z)},Q):Z.api.V("html5_enable_d6de4_idle_priority_job")&&window.requestIdleCallback?window.requestIdleCallback(function(){JvG(Z)}):JvG(Z)}}; JvG=function(Z){if(I_G()){Z.rq=Z.api.hx();var Q=g.Xp(Z.api.N().experiments,"html5_d6de4_cloud_project_number");Z.rq.f0("pt_pis");try{window.android.webview.getExperimentalMediaIntegrityTokenProvider({cloudProjectNumber:Q}).then(function(K){Z.j=K;var b;(b=Z.Y)==null||b.resolve();Z.rq.f0("pt_pif")}).catch(function(K){a_(K,"player_start"); Z.rq.f0("pt_pie");var b;(b=Z.Y)==null||b.reject(K)})}catch(K){a_(K,"player_start_catch"); Z.api.pN("pfes",{});var z;(z=Z.Y)==null||z.reject(K)}}}; yv9=function(Z,Q){if(Z.j&&!Z.V("html5_disable_d6de4_mint_debug")){var z=Q.videoId;Z.S=3;Z.rq.f0("pt_ms");try{Z.j.requestToken(z).then(function(K){Z.rq.f0("pt_mf");if(K=zK(K))Q.w5={vXp:K}}).catch(function(K){Z.rq.f0("pt_me"); a_(K,"player_generate");Z.handleError(K,Q)})}catch(K){a_(K,"player_generate_catch"),Z.handleError(K,Q)}}}; dpx=function(Z,Q){Z.api.V("html5_enable_d6de4_cold_start_and_error")&&(Q.w5={coldStartInfo:{clientState:Z.S}})}; a_=function(Z,Q){Z.message&&g.CO(Error(Q+"_"+Z.message))}; I_G=function(){return window.android&&window.android.webview&&window.android.webview.getExperimentalMediaIntegrityTokenProvider}; Py=function(Z){g.x.call(this,{B:"button",nN:["ytp-pip-button","ytp-button"],C:{title:"{{title}}","data-priority":"7","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-pip-button"},G:[Nrd()]});var Q=this;this.api=Z;this.listen("click",this.onClick);var z=this.api.MU(),K=z.subscribe("visibilitystatechange",function(){Q.E$(z.m$())}); this.addOnDisposeCallback(function(){z.SK(K)}); fW(Z,this.element,this);this.E$(z.m$())}; R_=function(Z){V7.call(this,Z);var Q=this;this.events=new g.M5(Z);g.W(this,this.events);this.events.Z(Z,"standardControlsInitialized",function(){Q.createButton()}); g.ka(this.api.N())&&(this.V("web_watch_pip")||this.V("web_shorts_pip"))&&Q7(this.api,"setDocumentPictureInPicture",function(z){Q.setDocumentPictureInPicture(z)})}; N4d=function(Z){var Q=Z.api.getVideoData();Z.button.Wh(Q.D7)}; G2D=function(Z){V7.call(this,Z);var Q=this;this.events=new g.M5(Z);g.W(this,this.events);Q7(this.api,"musicDisableUi",function(){g.rd(Q.api.getRootNode(),"ytp-player-in-bar-disable-ui")}); Q7(this.api,"musicEnableUi",function(){g.jn(Q.api.getRootNode(),"ytp-player-in-bar-disable-ui")})}; Hy=function(Z,Q,z){Q=Q===void 0?!0:Q;z=z===void 0?!1:z;g.x.call(this,{B:"div",D:"ytp-suggested-action"});var K=this;this.J=Z;this.F7=this.SJ=this.P7=this.jJ=this.W=this.X=this.expanded=this.enabled=this.s$=!1;this.Du=this.J.V("delhi_modern_web_player")?40:34;this.CN=new g.E6(function(){K.badge.element.style.width=""},200,this); this.tG=new g.E6(function(){C_(K);p_(K)},200,this); this.dismissButton=new g.x({B:"button",nN:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.W(this,this.dismissButton);this.S=new g.x({B:"div",D:"ytp-suggested-action-badge-expanded-content-container",G:[{B:"label",D:"ytp-suggested-action-badge-title",W7:"{{badgeLabel}}"},this.dismissButton]});g.W(this,this.S);this.c7=new g.x({B:"div",D:"ytp-suggested-action-badge-icon-container",G:[Q?{B:"div",D:"ytp-suggested-action-badge-icon"}:""]});g.W(this,this.c7);this.badge=new g.x({B:z?"div": "button",nN:["ytp-button","ytp-suggested-action-badge","ytp-suggested-action-badge-with-controls"],G:[this.c7,this.S]});g.W(this,this.badge);this.badge.zf(this.element);this.U=new g.s8(this.badge,250,!1,100);g.W(this,this.U);this.qB=new g.s8(this.S,250,!1,100);g.W(this,this.qB);this.Qp=new g.w2(this.j6g,null,this);g.W(this,this.Qp);this.NB=new g.w2(this.TN,null,this);g.W(this,this.NB);g.W(this,this.CN);g.W(this,this.tG);this.J.createServerVe(this.badge.element,this.badge,!0);this.J.createServerVe(this.dismissButton.element, this.dismissButton,!0);this.Z(this.J,"onHideControls",function(){K.Ng(!1)}); this.Z(this.J,"onShowControls",function(){K.Ng(!0)}); this.Z(this.badge.element,"click",this.h8);this.Z(this.dismissButton.element,"click",this.AO);this.Z(this.J,"pageTransition",this.e4);this.Z(this.J,"appresize",this.VA);this.Z(this.J,"fullscreentoggled",this.KZ$);this.Z(this.J,"cardstatechange",this.qAN);this.Z(this.J,"annotationvisibility",this.meJ,this);this.Z(this.J,"offlineslatestatechange",this.apg,this)}; C_=function(Z){g.vC(Z.badge.element,"ytp-suggested-action-badge-with-controls",Z.P7||!Z.X)}; p_=function(Z,Q){var z=Z.b2();Z.expanded!==z&&(Z.expanded=z,Q===void 0||Q?(Z.Qp.stop(),Z.NB.stop(),Z.CN.stop(),Z.Qp.start()):(Z.S.Wh(Z.expanded),g.vC(Z.badge.element,"ytp-suggested-action-badge-expanded",Z.expanded)),Z.Pj())}; iyr=function(Z){var Q=Z.text||"",z=g.xv("ytp-suggested-action-badge-title",Z.element);z&&g.qT(z,Q);Z.badge.element.setAttribute("aria-label",Q);Z.dismissButton.element.setAttribute("aria-label",Z.Zu?Z.Zu:"")}; Mv=function(Z,Q,z,K,b,q){var r={B:"div",D:"ytp-panel"};if(z){var D="ytp-panel-back-button";var v="ytp-panel-title";var Y={B:"div",D:"ytp-panel-header",G:[{B:"div",nN:["ytp-panel-back-button-container"],G:[{C:{"aria-label":"Back to previous menu"},B:"button",nN:["ytp-button",D]}]},{B:"span",nN:[v],C:Z.V("web_enable_a11y_header_role_in_panel")?{role:"heading","aria-level":"2"}:void 0,G:[z]}]};if(b){var X="ytp-panel-options";Y.G.push({B:"button",nN:["ytp-button",X],G:[K]})}r.G=[Y]}K=!1;q&&(q={B:"div", D:"ytp-panel-footer",G:[q]},K=!0,r.G?r.G.push(q):r.G=[q]);g.gV.call(this,r);this.content=Q;K&&r.G?Q.zf(this.element,r.G.length-1):Q.zf(this.element);this.cW=!1;this.FD=K;z&&(z=this.Ru(v),this.Z(this.Ru(D),"click",this.HA),this.Z(z,"click",this.HA),this.cW=!0,b&&this.Z(this.Ru(X),"click",b));Q.subscribe("size-change",this.Jh,this);this.Z(Z,"fullscreentoggled",this.Jh);this.J=Z}; g.UB=function(Z,Q,z,K,b,q){Q=Q===void 0?null:Q;var r={role:"menu"};Q&&(r.id=Q);Q=new g.gV({B:"div",D:"ytp-panel-menu",C:r});Mv.call(this,Z,Q,z,K,b,q);this.menuItems=Q;this.items=[];g.W(this,this.menuItems)}; g.OB=function(Z){for(var Q=g.n(Z.items),z=Q.next();!z.done;z=Q.next())z.value.unsubscribe("size-change",Z.ZV,Z);Z.items=[];try{g.QX(Z.menuItems.element)}catch(q){var K,b;g.CO(new g.tW("Failed to remove menu items from panel menu.",{error:q.message,originalStack:q.stack,childToBeRemoved:(b=(K=Z.menuItems.element.firstChild)==null?void 0:K.textContent)!=null?b:"child element not found"}))}Z.menuItems.publish("size-change")}; a_x=function(Z,Q){return Q.priority-Z.priority}; g.o_=function(Z,Q){g.CW.call(this,Z,{B:"div",nN:["ytp-popup",Q||""]},100,!0);this.Y=[];this.T=this.K=null;this.maxHeight=this.maxWidth=0;this.size=new g.SO(0,0);this.listen("keydown",this.YV)}; PMx=function(Z){var Q=Z.Y[Z.Y.length-1];if(Q){g.L4(Z.element,Z.maxWidth||"100%",Z.maxHeight||"100%");g.Dw(Q.element,"width","");g.Dw(Q.element,"height","");g.Dw(Q.element,"maxWidth","100%");g.Dw(Q.element,"maxHeight","100%");g.Dw(Q.content.element,"height","");var z=g.n4(Q.element);z.width+=1;z.height+=1;g.Dw(Q.element,"width",z.width+"px");g.Dw(Q.element,"height",z.height+"px");g.Dw(Q.element,"maxWidth","");g.Dw(Q.element,"maxHeight","");var K=0;Q.cW&&(K=g.n4(Q.Ru("ytp-panel-header")).height);var b= 0;Q.FD&&(b=Q.Ru("ytp-panel-footer"),g.Dw(b,"width",z.width+"px"),b=g.n4(b).height);g.Dw(Q.content.element,"height",z.height-K-b+"px");Q.element instanceof HTMLElement&&(K=Q.element,b=K.scrollWidth-K.clientWidth,K.offsetWidth-K.clientWidth>0&&b>0&&(z.width+=b,g.Dw(Q.element,"width",z.width+"px")));Z.size=z}}; g.By=function(Z,Q){var z=Z.Y[Z.Y.length-1];z!==Q&&(Z.Y.push(Q),RqW(Z,z,Q))}; g.Wy=function(Z){if(!(Z.Y.length<=1)){var Q=Z.Y.pop(),z=Z.Y[0];Z.Y=[z];RqW(Z,Q,z,!0)}}; RqW=function(Z,Q,z,K){CMu(Z);Q&&(Q.unsubscribe("size-change",Z.hD,Z),Q.unsubscribe("back",Z.Jt,Z));z.subscribe("size-change",Z.hD,Z);z.subscribe("back",Z.Jt,Z);if(Z.RT){g.rd(z.element,K?"ytp-panel-animate-back":"ytp-panel-animate-forward");z.zf(Z.element);z.focus();Z.element.scrollLeft=0;Z.element.scrollTop=0;var b=Z.size;PMx(Z);g.L4(Z.element,b);Z.K=new g.E6(function(){pf0(Z,Q,z,K)},20,Z); Z.K.start()}else z.zf(Z.element),Q&&Q.detach()}; pf0=function(Z,Q,z,K){Z.K.dispose();Z.K=null;g.rd(Z.element,"ytp-popup-animating");K?(g.rd(Q.element,"ytp-panel-animate-forward"),g.jn(z.element,"ytp-panel-animate-back")):(g.rd(Q.element,"ytp-panel-animate-back"),g.jn(z.element,"ytp-panel-animate-forward"));g.L4(Z.element,Z.size);Z.T=new g.E6(function(){g.jn(Z.element,"ytp-popup-animating");Q.detach();g.D8(Q.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);Z.T.dispose();Z.T=null},250,Z); Z.T.start()}; CMu=function(Z){Z.K&&g.Z8(Z.K);Z.T&&g.Z8(Z.T)}; V9=function(Z){g.o_.call(this,Z,"ytp-shopping-product-menu");this.zy=new g.UB(this.J);g.W(this,this.zy);this.hide();g.By(this,this.zy);g.NZ(this.J,this.element,4)}; MWG=function(Z,Q,z){var K,b=Q==null?void 0:(K=Q.text)==null?void 0:K.simpleText;b&&(z=Hy4(Z,z,b,Q==null?void 0:Q.icon,Q==null?void 0:Q.secondaryIcon),Q.navigationEndpoint&&z.listen("click",function(){Z.J.hG("innertubeCommand",Q.navigationEndpoint);Z.hide()},Z))}; UpG=function(Z,Q,z){var K,b=Q==null?void 0:(K=Q.text)==null?void 0:K.simpleText;b&&Hy4(Z,z,b,Q==null?void 0:Q.icon).listen("click",function(){var q;(Q==null?void 0:(q=Q.icon)==null?void 0:q.iconType)==="HIDE"?Z.J.publish("featuredproductdismissed"):Q.serviceEndpoint&&Z.J.hG("innertubeCommand",Q.serviceEndpoint);Z.hide()},Z)}; Hy4=function(Z,Q,z,K,b){Q=new g.Oq(g.oT({},[],!1,!!b),Q,z);b&&Q.updateValue("secondaryIcon",OyG(b));Q.setIcon(OyG(K));g.W(Z,Q);Z.zy.Mb(Q,!0);return Q}; OyG=function(Z){if(!Z)return null;switch(Z.iconType){case "ACCOUNT_CIRCLE":return{B:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},G:[{B:"path",C:{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{B:"svg",C:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},G:[{B:"path",C:{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 nkf();case "HIDE":return{B:"svg",C:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},G:[{B:"g",G:[{B:"path",C:{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 Ip()}}; k1=function(Z){Hy.call(this,Z,!1,!0);this.isCounterfactual=this.j=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.X=!0;this.overflowButton=new g.x({B:"button",nN:["ytp-featured-product-overflow-icon","ytp-button"],C:{"aria-haspopup":"true"}});this.overflowButton.hide();g.W(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.x({B:"img",D:"ytp-suggested-action-badge-img",C:{src:"{{url}}"}}); this.thumbnailImage.hide();g.W(this,this.thumbnailImage);this.thumbnailIcon=new g.x({B:"div",D:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.W(this,this.thumbnailIcon);this.banner=new g.x({B:"a",D:"ytp-suggested-action-container",G:[this.thumbnailImage,this.thumbnailIcon,{B:"div",D:"ytp-suggested-action-details",G:[{B:"text",D:"ytp-suggested-action-title",W7:"{{title}}"},{B:"text",D:"ytp-suggested-action-subtitle",W7:"{{subtitle}}"},{B:"text",D:"ytp-suggested-action-metadata-text", W7:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.W(this,this.banner);this.banner.zf(this.S.element);this.Z(this.J,"videodatachange",this.onVideoDataChange);this.Z(this.J,g.r7("suggested_action_view_model"),this.J4r);this.Z(this.J,g.AH("suggested_action_view_model"),this.bLF);this.Z(this.overflowButton.element,"click",this.Ig);this.Z(Z,"featuredproductdismissed",this.AO);this.J.createServerVe(this.banner.element,this.banner,!0)}; o3n=function(Z){Z.isInitialized&&(Z.enabled=Z.isVisible,Z.SJ=Z.isVisible,p_(Z),Z.VA(),Z.thumbnailImage.Wh(Z.isVisible),Z.shouldHideDismissButton||Z.dismissButton.Wh(Z.isVisible),Z.shouldShowOverflowButton&&Z.overflowButton.Wh(Z.isVisible))}; u5=function(){k1.apply(this,arguments)}; B44=function(Z){V7.call(this,Z);this.Y=new u5(this.api);g.W(this,this.Y);g.NZ(this.api,this.Y.element,4)}; x1=function(Z){V7.call(this,Z);var Q=this;this.Y="";this.S=!0;this.j=this.api.V("html5_enable_audio_track_stickiness_phase_two");var z=new g.M5(Z);g.W(this,z);z.Z(Z,"internalaudioformatchange",function(K,b){WRu(Q,K,b)}); z.Z(Z,"videoplayerreset",function(){VWu(Q)}); z.Z(Z,"videodatachange",function(K,b){Q.onVideoDataChange(K,b)})}; WRu=function(Z,Q,z){if(z){var K="";k2G(Z,Q)&&(K=Q,Z.j||(Z.Y=Q),Z.api.V("html5_sabr_enable_server_xtag_selection")&&(z=Z.api.getVideoData(void 0,!0)))&&(z.Zt=Q);if(Z.j&&K&&uix(Z,K)){var b;D7(sK(Z.api.N(),(b=Z.api.getVideoData())==null?void 0:g.B0(b)),function(q){xpG(Z,K,q)})}}}; VWu=function(Z){if(Z.Y)tWG(Z);else{var Q;if(Z.j&&((Q=Ue())==null?0:Q.size)){var z;D7(sK(Z.api.N(),(z=Z.api.getVideoData())==null?void 0:g.B0(z)),function(K){if((K=FRr(K))&&uix(Z,K)){var b=Z.api.getVideoData(void 0,!0);b&&(b.Zt=K)}})}}}; tWG=function(Z){var Q=Z.api.getVideoData(void 0,!0);Q&&(Q.Zt=Z.Y)}; xpG=function(Z,Q,z){FRr(z)!==Q&&(eqD([{settingItemId:t8(z),settingOptionValue:{stringValue:Q}}]),D7(Z.Na(),function(K){bO0(K,t8(z),{stringValue:Q})}))}; wfW=function(Z,Q){v3(D7(D7(Z.Na(),function(z){return zHn(z,[t8(Q)])}),function(z){if(z){z=g.n(z); for(var K=z.next();!K.done;K=z.next()){var b=K.value;K=b.key;b=b.value;K&&b&&eqD([{settingItemId:K,settingOptionValue:b}])}}}),function(){Z.S=!0})}; k2G=function(Z,Q){Z=Z.api.getAvailableAudioTracks();Z=g.n(Z);for(var z=Z.next();!z.done;z=Z.next())if(z=z.value,z.getLanguageInfo().getId()===Q)return z;return null}; FRr=function(Z){Z=t8(Z);var Q=Ue();Z=Q?Q.get(Z):void 0;return Z&&Z.stringValue?Z.stringValue:""}; t8=function(Z){var Q=(484).toString();Z&&(Q=(483).toString());return Q}; uix=function(Z,Q){var z;return Q.split(".")[0]!==""&&((z=Z.api.getVideoData())==null?void 0:!Va(z))}; eqD=function(Z){var Q=Ue();Q||(Q=new Map);Z=g.n(Z);for(var z=Z.next();!z.done;z=Z.next())z=z.value,Q.set(z.settingItemId,z.settingOptionValue);Q=JSON.stringify(Object.fromEntries(Q));g.CS("yt-player-user-settings",Q,2592E3)}; g.Fk=function(Z,Q,z,K,b,q,r){g.Oq.call(this,g.oT({"aria-haspopup":"true"}),Q,Z);this.Kd=K;this.X=!1;this.S=null;this.options={};this.j=new g.UB(z,void 0,Z,b,q,r);g.W(this,this.j);this.listen("keydown",this.pR);this.listen("click",this.open)}; E3X=function(Z){if(Z.S){var Q=Z.options[Z.S];Q.element.getAttribute("aria-checked");Q.element.setAttribute("aria-checked","false");Z.S=null}}; l_G=function(Z,Q){g.Fk.call(this,"Sleep timer",g.zN.SLEEP_TIMER,Z,Q);this.J=Z;this.U={};this.K=this.KF("Off");this.T=this.Y="";Z.V("web_settings_menu_icons")&&this.setIcon({B:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},G:[{B:"path",C:{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.W=new g.x({B:"div",nN:["ytp-menuitem-label-wrapper"],G:[{B:"div",W7:"End of video"},{B:"div",nN:["ytp-menuitem-sublabel"],W7:"{{content}}"}]});g.W(this,this.W);this.listen("click",this.onClick);this.Z(Z,"videodatachange",this.onVideoDataChange);this.Z(Z,"presentingplayerstatechange",this.E$);this.Z(Z,"settingsMenuVisibilityChanged",this.aag);Z.createClientVe(this.element,this,218889);this.E$();this.J.hG("onSleepTimerFeatureAvailable")}; sXG=function(Z){var Q="Off 10 15 20 30 45 60".split(" "),z;((z=Z.J.getVideoData())==null?0:z.isLivePlayback)||Q.push("End of video");z=Z.J.getPlaylist();var K;z&&((K=z.listId)==null?void 0:K.type)!=="RD"&&Q.push("End of playlist");Z.xS(g.my(Q,Z.KF));Z.U=g.$n(Q,Z.KF,Z);Q=Z.KF("End of video");Z.options[Q]&&g.Uq(Z.options[Q],Z.W)}; Zbd=function(Z,Q){var z=Z.U[Q],K=z==="End of video"||z==="End of playlist";z==="Off"&&(Z.Y="");Z.J.getPlayerState()!==0&&Z.J.getPlayerState()!==5||!K?(Z.K=Q,g.Fk.prototype.zp.call(Z,Q),Z.D3(Q),Z.J.hG("onSleepTimerSettingsChanged",z)):Z.J.hG("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"Video has already ended"}}}}})}; e0=function(Z){V7.call(this,Z);var Q=this;Z.addEventListener("settingsMenuInitialized",function(){Q.menuItem||(Q.menuItem=new l_G(Q.api,Q.api.l7()),g.W(Q,Q.menuItem))}); Z.addEventListener("openSettingsMenuItem",function(z){if(z==="menu_item_sleep_timer"){if(!Q.menuItem){var K;(K=Q.api.l7())==null||K.Gz()}Q.menuItem.open()}}); Q7(Z,"resetSleepTimerMenuSettings",function(){Q.resetSleepTimerMenuSettings()}); Q7(Z,"setSleepTimerTimeLeft",function(z){Q.setSleepTimerTimeLeft(z)}); Q7(Z,"setVideoTimeLeft",function(z){Q.setVideoTimeLeft(z)})}; QX9=function(Z){V7.call(this,Z);var Q=this;this.events=new g.M5(Z);g.W(this,this.events);this.events.Z(Z,"onSnackbarMessage",function(z){switch(z){case 1:z=Q.api.getPlayerStateObject(),z.isBuffering()&&g.t(z,8)&&g.t(z,16)&&Q.api.hG("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.EB=function(Z,Q,z,K,b){Q=Q===void 0?!1:Q;K=K===void 0?!1:K;b=b===void 0?!1:b;g.rV.call(this);this.U=b;this.T=!1;this.W=new NW(this);this.L=this.K=null;this.S=this.j=!1;g.W(this,this.W);this.target=Z;this.Y=Q;this.X=z||Z;this.T=K;Q&&(g.Fv&&this.target.setAttribute("draggable","true"),b||(this.target.style.touchAction="none"));wj(this)}; l5=function(Z){g.ib(Z.W,!Z.Y)}; wj=function(Z){Z.L=null;Z.K=null;Z.Z(sU("over"),Z.A_);Z.Z("touchstart",Z.xO);Z.Y&&Z.Z(sU("down"),Z.co7)}; zCG=function(Z,Q){for(var z=0;z<Q.changedTouches.length;z++){var K=Q.changedTouches[z];if(K.identifier===Z.K)return K}return null}; sU=function(Z){return window.navigator.msPointerEnabled?"MSPointer"+Z.charAt(0).toUpperCase()+Z.substring(1):"mouse"+Z}; Z_=function(Z){return Z&&Ksn?UD(Z)||document:document}; bbG=function(Z,Q){g.x.call(this,{B:"div",nN:["ytp-overlay","ytp-speedmaster-overlay"],G:[{B:"div",D:"ytp-speedmaster-user-edu",G:[{B:"div",D:"ytp-speedmaster-label",W7:Q},{B:"div",D:"ytp-speedmaster-icon",W7:"{{icon}}"}]}]});this.J=Z;this.Y=this.Ru("ytp-speedmaster-user-edu");this.updateValue("icon",Le4());g.rd(this.Y,"ytp-speedmaster-has-icon");this.J.createClientVe(this.Y,this,173040,!0);this.zo()}; z2=function(Z){V7.call(this,Z);var Q=this;this.W=this.S=!1;this.tG=g.Xp(this.api.N().experiments,"speedmaster_touch_activation_ms")||500;this.P7=g.Xp(this.api.N().experiments,"speedmaster_cancellation_movement_dp")||10;this.Vp=g.Xp(this.api.N().experiments,"speedmaster_playback_rate")||2;this.j=new g.M5(Z);g.W(this,this.j);this.U="2x";this.speedmasterUserEdu=new bbG(Z,this.U);g.W(this,this.speedmasterUserEdu);g.NZ(this.api,this.speedmasterUserEdu.element,4);this.Y=new g.EB(this.api.U$().QY,!0,null, !1,!0);g.W(this,this.Y);this.delay=new g.E6(this.KN,this.tG,this);g.W(this,this.delay);this.j.Z(Z,"videodatachange",function(){QB(Q)},this); this.j.Z(Z,"presentingplayerstatechange",function(){QB(Q)},this); this.j.Z(Z,"autonavvisibility",function(){QB(Q)},this); this.api.MU().subscribe("visibilitystatechange",function(){QB(Q)}); this.j.Z(Z,"rootnodemousedown",function(z){Q.T=z}); this.V("web_speedmaster_spacebar_control")&&(this.j.Z(Z,"keyboardserviceglobalkeydown",function(z,K){Q.jJ=K;qkf(Q,z,!0)},this),this.j.Z(Z,"keyboardserviceglobalkeyup",function(z){qkf(Q,z,!1)},this))}; Ky=function(Z){Z.delay.stop();Z.Y.unsubscribe("dragmove",Z.K,Z);Z.Y.unsubscribe("dragend",Z.L,Z);Z.S&&(Z.S=!1,Z.speedmasterUserEdu.zo(),Z.api.setPlaybackRate(Z.JG),Z.api.showControls(),Z.c7&&Z.api.pauseVideo())}; qkf=function(Z,Q,z){z?Q.keyCode!==32||Q.repeat||Z.S||!Z.W||g.lR(Z.delay):Ky(Z)}; QB=function(Z){var Q,z;var K=!!Z.U&&!((Q=Z.api.getVideoData())==null?0:Q.isLivePlayback)&&!Z.api.HN()&&Z.api.getPresentingPlayerType()!==2&&!g.t(Z.api.getPlayerStateObject(),2)&&!((z=g.Dy(Z.api))==null?0:z.R6())&&!Z.api.isEmbedsShortsMode()&&h9(Z.api.MU());Z.W!==K&&(Z.W=K,Z.W?Z.Y.subscribe("dragstart",Z.SJ,Z):(Z.Y.unsubscribe("dragstart",Z.SJ,Z),Z.Y.unsubscribe("dragmove",Z.K,Z),Z.Y.unsubscribe("dragend",Z.L,Z),Ky(Z)))}; r3G=function(Z){V7.call(this,Z);var Q=this;this.events=new g.M5(Z);g.W(this,this.events);Q7(this.api,"addPlayerResponseForAssociation",function(z){Q.api.addPlayerResponseForAssociation(z)}); Q7(this.api,"finishSegmentByCpn",function(z,K,b){return Q.api.finishSegmentByCpn(z,K,b)}); this.events.Z(Z,"modulecreated",function(z){if(z==="ad"&&(z=Q.api.getVideoData(1))&&(z=z.getPlayerResponse())){var K;z=(K=z.adPlacements)!=null?K:[];K=g.n(z);for(var b=K.next();!b.done;b=K.next()){var q=z=void 0,r=void 0;if(b=(z=b.value.adPlacementRenderer)==null?void 0:(q=z.renderer)==null?void 0:(r=q.instreamVideoAdRenderer)==null?void 0:r.playerVars)z=zr(b),Q.api.addPlayerResponseForAssociation({playerVars:z})}}}); this.events.Z(Z,"videodatachange",function(z,K){Q.onVideoDataChange(z,K)})}; bM=function(Z,Q,z){g.P8.call(this,Q,Z);this.Y=z}; g.qp=function(Z){lx.call(this);var Q=this;this.Y=Z;this.L={};this.listener=function(z){Q.dispatchEvent(new bM(Q,z.type,z))}}; jX0=function(Z){var Q=Z.getVideoData(),z=Z.ES(),K=z.OA(),b=Z.N(),q=Z.yC(),r=q.CI7,D=q.Ss7,v=gj(D,"bandwidth")*8/1024,Y=gj(D,"networkactivity")/1024,X=gj(D,"bufferhealth"),S=q.KA,T=q.playerState.state.toString(16),f=z.getCurrentTime().toFixed(2),h=Ax(z.gm(),",",3),m="";if(Q.isDaiEnabled()){Q.enableServerStitchedDai&&(m+=Q.tB?"DS":"SS");m=Q.GJ()?m+"LIFA, ":m+"DAI, ";var J=q.XO;J&&(m+=J)}W0(Q)&&!Q.GJ()&&(m+="LIFAE, ");var d;((d=Z.getVideoData(1))==null?0:g.V0(d))?(m+="SSAP, ",(J=q.XO)&&(m+=J)):Qa(Q)&& (m+="SABR, ");if(Q.fetchType){switch(Q.fetchType){case "onesie":J="o";break;case "gp":J="gp";break;default:J="gvi"}m+="vd:"+J+", "}b.Kf&&(m=b.Kf.al?m+"wa, ":m+"w, ");m+="s:"+T+" t:"+f+" b:"+h+" ";z.isSeeking()&&(m+="S");z.isPaused()&&(m+="P");z.isEnded()&&(m+="E");Z.isOrchestrationLeader()&&(m+=" L");(z=q.n7)&&(m+=" l:"+z.toFixed());z=q.currentTime;b=Q.l3;z&&z>b.start&&z<b.end&&(m+=" as");z=m;m=g.lW(CV)("_start",void 0);b=[];T=g.n(["pl_i","vir","or_p","orfb","pbs"]);for(f=T.next();!f.done;f=T.next())f= f.value,(h=g.lW(CV)(f,void 0))&&m&&(h-=m,b.push(f+":"+Math.round(h)));m=b.join(" ");b=g.Vf();T=g.dR(Z).uII;f=Q.S&&!Q.S.Y?"display:none":"";if((h=Q.clientPlaybackNonce)&&h.length==16){h+="AAAA";J=0;d="";for(var G=0;G<20;G++)if(J=(J<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(h.charAt(G)),G%5==4){for(var R="",U=0;U<6;U++)R="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(J&31)+R,J>>=5;d+=R}h=d.substr(0,4)+" "+d.substr(4,4)+" "+d.substr(8,4)+" "+(d.substr(12,4)+" "+d.substr(16, 4))}else h="";v={video_id_and_cpn:String(Q.videoId)+" / "+h,codecs:"",dims_and_frames:"",bandwidth_kbps:v.toFixed(0)+" Kbps",buffer_health_seconds:X.toFixed(2)+" s",date:""+(new Date).toString(),drm_style:S?"":"display:none",drm:S,debug_info:z,extra_debug_info:"",bandwidth_style:f,network_activity_style:f,network_activity_bytes:Y.toFixed(0)+" KB",shader_info:T,shader_info_style:T?"":"display:none",playback_categories:""};Y=K.clientWidth+"x"+K.clientHeight+(b>1?"*"+b.toFixed(2):"");X="-";r.totalVideoFrames&& (X=(r.droppedVideoFrames||0)+" dropped of "+r.totalVideoFrames);v.dims_and_frames=Y+" / "+X;Z=Z.getVolume();r=Kln(Q);var B;Y=((B=Q.W)==null?0:B.audio.Y)?"DRC":Math.round(Z*r)+"%";B=Math.round(Z)+"% / "+Y;Z=Q.CM.toFixed(1);isFinite(Number(Z))&&(B+=" (content loudness "+Z+"dB)");v.volume=B;v.resolution=K.videoWidth+"x"+K.videoHeight;if(K=Q.j){if(B=K.video)Z=B.fps,Z>1&&(v.resolution+="@"+Z),(Z=q.by7)&&Z.video&&(v.resolution+=" / "+Z.video.width+"x"+Z.video.height,Z.video.fps>1&&(v.resolution+="@"+Z.video.fps)), v.codecs=A3x(K),!Q.W||K.audio&&K.video?K.tf&&(v.codecs+=" / "+K.tf+"A"):v.codecs+=" / "+A3x(Q.W),B.j||B.primaries?(Z=B.j||"unknown",Z==="smpte2084"?Z+=" (PQ)":Z==="arib-std-b67"&&(Z+=" (HLG)"),v.color=Z+" / "+(B.primaries||"unknown"),v.color_style=""):v.color_style="display:none";if(K.debugInfo)for(v.fmt_debug_info="",K=g.n(K.debugInfo),B=K.next();!B.done;B=K.next())B=B.value,v.fmt_debug_info+=B.label+":"+B.text+" ";v.fmt_debug_info_style=v.fmt_debug_info&&v.fmt_debug_info.length>0?"":"display:none"}K= Q.isLivePlayback;B=Q.Da;v.live_mode_style=K||B?"":"display:none";v.live_latency_style=K?"":"display:none";if(B)v.live_mode="Post-Live"+(AP(Q)?" Manifestless":"");else if(K){B=gj(D,"livelatency");v.live_latency_secs=B.toFixed(2)+"s";K=AP(Q)?"Manifestless, ":"";Q.c7&&(K+="Windowed, ");Z="Uncertain";if(B>=0&&B<120)if(Q.latencyClass&&Q.latencyClass!=="UNKNOWN")switch(Q.latencyClass){case "NORMAL":Z="Optimized for Normal Latency";break;case "LOW":Z="Optimized for Low Latency";break;case "ULTRALOW":Z="Optimized for Ultra Low Latency"; break;default:Z="Unknown Latency Setting"}else Z=Q.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";K+=Z;(B=q.x8p)&&(K+=", seq "+B.sequence);v.live_mode=K}!q.isGapless||l8(Q)&&q.dV||(v.playback_categories+="Gapless ");v.playback_categories_style=v.playback_categories?"":"display:none";v.bandwidth_samples=vy(D,"bandwidth");v.network_activity_samples=vy(D,"networkactivity");v.live_latency_samples=vy(D,"livelatency");v.buffer_health_samples=vy(D,"bufferhealth");q=g.xG(Q); if(Q.cotn||q)v.cotn_and_local_media=(Q.cotn?Q.cotn:"null")+" / "+q;v.cotn_and_local_media_style=v.cotn_and_local_media?"":"display:none";qz(Q,"web_player_release_debug")?(v.release_name="youtube.player.web_20250219_01_RC00",v.release_style=""):v.release_style="display:none";v.debug_info&&m.length>0&&v.debug_info.length+m.length<=60?v.debug_info+=" "+m:v.extra_debug_info=m;v.extra_debug_info_style=v.extra_debug_info&&v.extra_debug_info.length>0?"":"display:none";return v}; A3x=function(Z){var Q=/codecs="([^"]*)"/.exec(Z.mimeType);return Q&&Q[1]?Q[1]+" ("+Z.itag+")":Z.itag}; r4=function(Z,Q,z,K,b){g.x.call(this,{B:"div",D:"ytp-horizonchart"});this.T=Q;this.sampleCount=z;this.W=K;this.K=b;this.index=0;this.heightPx=-1;this.S=this.j=null;this.Y=Math.round(Z/z);this.element.style.width=this.Y*this.sampleCount+"px";this.element.style.height=this.T+"em"}; Av=function(Z,Q){if(Z.heightPx===-1){var z=null;try{z=g.lY("CANVAS"),Z.j=z.getContext("2d")}catch(D){}if(Z.j){var K=Z.Y*Z.sampleCount;Z.S=z;Z.S.width=K;Z.S.style.width=K+"px";Z.element.appendChild(Z.S)}else for(Z.sampleCount=Math.floor(Z.sampleCount/4),Z.Y*=4,z=0;z<Z.sampleCount;z++)K=g.lY("SPAN"),K.style.width=Z.Y+"px",K.style.left=Z.Y*z+"px",Z.element.appendChild(K)}z=Z.element.clientHeight||24;z!==Z.heightPx&&(Z.heightPx=z,Z.j&&(z=(window.devicePixelRatio||1)>1?2:1,Z.S.height=Z.heightPx*z,Z.S.style.height= Z.heightPx+"px",Z.j.scale(1,z)));Q=g.n(Q);for(K=Q.next();!K.done;K=Q.next()){z=Z;var b=Z.index,q=K.value;for(K=0;K+2<z.W.length&&z.W[K+1]<q;)K++;q=Math.min(1,(q-z.W[K])/(z.W[K+1]-z.W[K]));if(z.j)z.j.fillStyle=z.K[K],z.j.fillRect(b*z.Y,0,z.Y,z.heightPx),z.j.fillStyle=z.K[K+1],z.j.fillRect(b*z.Y,z.heightPx*(1-q),z.Y,z.heightPx);else{b=z.element.children[b];var r=window.devicePixelRatio||1;q=Math.min(z.heightPx,Math.round(z.heightPx*q*r)/r)||0;b.style.height=q+"px";b.style.backgroundColor=z.K[K+1];b.style.borderTop= "solid "+(z.heightPx-q)+"px "+z.K[K]}Z.index=(Z.index+1)%Z.sampleCount}Q=Z.index;Z.j?Z.j.clearRect(Q*Z.Y,0,Z.Y,Z.heightPx):(Z=Z.element.children[Q],Z.style.height="0px",Z.style.borderTop="")}; jW=function(Z){var Q=null;Q={B:"button",nN:["ytp-sfn-close","html5-video-info-panel-close","ytp-button"],C:{title:"close"},W7:"[X]"};g.x.call(this,{B:"div",nN:["html5-video-info-panel","ytp-sfn"],G:[Q,{B:"div",nN:["html5-video-info-panel-content","ytp-sfn-content"],G:[{B:"div",G:[{B:"div",W7:"Video ID / sCPN"},{B:"span",W7:"{{video_id_and_cpn}}",D:"ytp-sfn-cpn"}]},{B:"div",G:[{B:"div",W7:"Viewport / Frames"},{B:"span",W7:"{{dims_and_frames}}"}]},{B:"div",G:[{B:"div",W7:"Current / Optimal Res"},{B:"span", W7:"{{resolution}}"}]},{B:"div",G:[{B:"div",W7:"Volume / Normalized"},{B:"span",W7:"{{volume}}"}]},{B:"div",G:[{B:"div",W7:"Codecs"},{B:"span",W7:"{{codecs}}"}]},{B:"div",C:{style:"{{shader_info_style}}"},G:[{B:"div",W7:"Shader Info"},{B:"span",W7:"{{shader_info}}"}]},{B:"div",C:{style:"{{color_style}}"},G:[{B:"div",W7:"Color"},{B:"span",W7:"{{color}}"}]},{B:"div",C:{style:"{{drm_style}}"},G:[{B:"div",W7:"Protected"},{B:"span",W7:"{{drm}}"}]},{B:"div",C:{style:"{{bandwidth_style}}"},G:[{B:"div",W7:"Connection Speed"}, {B:"span",G:[{B:"span",W7:"{{bandwidth_chart}}"},{B:"span",W7:"{{bandwidth_kbps}}"}]}]},{B:"div",C:{style:"{{network_activity_style}}"},G:[{B:"div",W7:"Network Activity"},{B:"span",G:[{B:"span",W7:"{{network_activity_chart}}"},{B:"span",W7:"{{network_activity_bytes}}"}]}]},{B:"div",G:[{B:"div",W7:"Buffer Health"},{B:"span",G:[{B:"span",W7:"{{buffer_health_chart}}"},{B:"span",W7:"{{buffer_health_seconds}}"}]}]},{B:"div",C:{style:"{{live_latency_style}}"},G:[{B:"div",W7:"Live Latency"},{B:"span",G:[{B:"span", W7:"{{live_latency_chart}}"},{B:"span",W7:"{{live_latency_secs}}"}]}]},{B:"div",C:{style:"{{live_mode_style}}"},G:[{B:"div",W7:"Live Mode"},{B:"span",W7:"{{live_mode}}"}]},{B:"div",C:{style:"{{playback_categories_style}}"},G:[{B:"div",W7:"Playback Categories"},{B:"span",W7:"{{playback_categories}}"}]},{B:"div",C:{style:"{{fmt_debug_info_style}}"},G:[{B:"div",W7:"Format Debug Info"},{B:"span",W7:"{{fmt_debug_info}}"}]},{B:"div",G:[{B:"div",W7:"Mystery Text"},{B:"span",W7:"{{debug_info}}"}]},{B:"div", C:{style:"{{extra_debug_info_style}}"},G:[{B:"div",W7:""},{B:"span",G:[{B:"span",W7:"{{extra_debug_info}}"}]}]},{B:"div",G:[{B:"div",W7:"Date"},{B:"span",W7:"{{date}}"}]},{B:"div",C:{style:"{{cotn_and_local_media_style}}"},G:[{B:"div",W7:"COTN / Local Media"},{B:"span",W7:"{{cotn_and_local_media}}"}]},{B:"div",C:{style:"{{release_style}}"},G:[{B:"div",W7:"Player Release"},{B:"span",W7:"{{release_name}}"}]}]}]});this.fN=Z;this.position=0;this.K=!0;Q?this.Z(this.Ru("ytp-sfn-close"),"click",this.hide): this.Z(this.element,"click",this.hide);Z=[0,18750,37500,81250,128E3,256E3,512E3,2048E3,8192E3,32768E3,131072E3];Q="#000 #d53e4f #f46d43 #fdae61 #fee08b #e6f598 #abdda4 #66c2a5 #3288bd #124588 #fff".split(" ");var z=Z.map(function(K){return K/4}); this.U={};this.Y=new r4(300,1,150,Z,Q);g.W(this,this.Y);this.updateValue("bandwidth_chart",this.Y);this.S=new r4(300,1,150,[0,3,10,15,30,60,90],"#000 #66c2a5 #abdda4 #e6f598 #fdae61 #f46d43 #a8330f".split(" "));g.W(this,this.S);this.updateValue("live_latency_chart",this.S);this.j=new r4(300,1,150,[0,15,30,60,90,120],"#000 #fdae61 #e6f598 #66c2a5 #3288bd #fff".split(" "));g.W(this,this.j);this.updateValue("buffer_health_chart",this.j);this.T=new r4(300,1,150,z,Q);g.W(this,this.T);this.updateValue("network_activity_chart", this.T);this.delay=new g.E6(this.E$,500,this);g.W(this,this.delay);this.W=new g.E6(this.X,2E4,this);g.W(this,this.W)}; gb4=function(Z){V7.call(this,Z);var Q=this;Q7(Z,"getStatsForNerds",function(){return jX0(Q.api)}); ze(Z,"showVideoInfo",function(){DCd(Q,!0)}); ze(Z,"hideVideoInfo",function(){DCd(Q,!1)}); ze(Z,"isVideoInfoVisible",function(){return vbn(Q)})}; DCd=function(Z,Q){var z=vbn(Z);Z.Y||(Z.Y=new jW(Z.api),g.W(Z,Z.Y),g.NZ(Z.api,Z.Y.element,4));Z.Y.Wh(Q);var K=mI(Z.api.W4());K&&K.loaded&&z!==Q&&K.C1();Q&&Z.api.pN("sfn",{},!0)}; vbn=function(Z){var Q;return!((Q=Z.Y)==null||!Q.RT)}; D_=function(){g.O.call(this);this.j=null;this.startTime=this.duration=0;this.delay=new g.w2(this.Y,null,this);g.W(this,this.delay)}; Yk9=function(Z,Q){if(Q.B==="path")return Q.C.d;if(Q.G)for(var z=0;z<Q.G.length;z++){var K=Q.G[z];if(K&&typeof K!=="string"&&(K=Yk9(Z,K)))return K}}; T$n=function(Z,Q,z){z=Yk9(Z,z);var K=Q.getElementsByTagName("path")[0],b=K.getAttribute("d");if(K.getAttribute("id")){var q=AB();Q=Q.getElementsByTagName("use");for(var r=0;r<Q.length;r++)Q[r].setAttributeNS("http://www.w3.org/1999/xlink","href","#"+q);K.setAttribute("id",q)}var D=XR9(b),v=XR9(z);SkX(Z,function(Y){K.setAttribute("d",$Cn(D,v,Y))},200)}; SkX=function(Z,Q,z){Z.j=Q;Z.startTime=(0,g.Nm)();Z.duration=z;Z.Y()}; XR9=function(Z){var Q=[];Z=Z.match(fsG);for(var z=0;z<Z.length;z++){var K=Z[z]===" "?NaN:Number(Z[z]);Q.push(isNaN(K)?Z[z]:K)}return Q}; $Cn=function(Z,Q,z){for(var K="",b=0;b<Z.length;b++){var q=Z[b];K=typeof q==="number"?K+(q+(Q[b]-q)*z):K+q}return K}; vf=function(Z){g.x.call(this,{B:"button",nN:["ytp-size-button","ytp-button"],C:{title:"{{title}}","aria-keyshortcuts":"t","data-priority":"8","data-title-no-tooltip":"{{data-title-no-tooltip}}"},W7:"{{icon}}"});this.api=Z;this.XZ=null;this.transition=new D_;g.W(this,this.transition);this.Z(Z,"sizestylechange",this.E$);this.Z(Z,"fullscreentoggled",this.E$);this.Z(Z,"presentingplayerstatechange",this.E$);Z.createClientVe(this.element,this,139116);this.E$();this.listen("click",this.onClick);fW(Z,this.element, this)}; hCu=function(Z){V7.call(this,Z);var Q=this;this.events=new g.M5(Z);g.W(this,this.events);this.events.Z(Z,"standardControlsInitialized",function(){Q.button=new vf(Z);g.W(Q,Q.button);Z.E_(Q.button,"RIGHT_CONTROLS_RIGHT")})}; c3d=function(Z){V7.call(this,Z);var Q=this,z={};this.K=(z.TIMELY_ACTION_TRIGGER_TYPE_UNSPECIFIED=function(){return!1},z.TIMELY_ACTION_TRIGGER_TYPE_KEYBOARD_SEEK=function(K){return Lsd(Q,K)},z.TIMELY_ACTION_TRIGGER_TYPE_PROGRESS_BAR_SEEK=function(K){return Lsd(Q,K)},z); this.W={};this.events=new g.M5(Z);g.W(this,this.events);this.events.Z(Z,"videodatachange",function(K,b){if(K!=="dataupdated"||b.videoId!==Q.videoId||!jk(Q.timelyActions,nbu(b)))Q.onVideoDataChange(b)}); this.events.Z(Z,"presentingplayerstatechange",function(K){Q.FP(K)}); this.events.Z(Z,g.r7("timelyAction"),function(K){Q.onCueRangeEnter(K.getId())}); this.events.Z(Z,g.AH("timelyAction"),function(K){Q.onCueRangeExit(K.getId())}); this.S=new g.x({B:"div",nN:["ytp-player-content","ytp-timely-actions-content"]});this.S.hide();Q7(Z,"insertTimelyActionUi",function(K){Q.S.element.children.length>0&&g.QX(Q.S.element);K.classList.add("ytp-timely-actions-overlay");Q.S.element.appendChild(K)}); g.W(this,this.S);g.NZ(this.api,this.S.element,4)}; mCr=function(Z){Z.timelyActions&&(Z.W=Z.timelyActions.reduce(function(Q,z){if(z.cueRangeId===void 0)return Q;Q[z.cueRangeId]=0;return Q},{}))}; g4=function(Z,Q){if(Z.timelyActions){Z=g.n(Z.timelyActions);for(var z=Z.next();!z.done;z=Z.next())if(z=z.value,z.cueRangeId===Q)return z}}; Isf=function(Z,Q){if((Z=g4(Z,Q))&&Z.onCueRangeExit)return Uu(Z.onCueRangeExit)}; J3n=function(Z){if(Z.Y!==void 0){var Q=(Q=g4(Z,Z.Y))&&Q.onCueRangeEnter?Uu(Q.onCueRangeEnter):void 0;var z=g4(Z,Z.Y);if(z&&z.additionalTrigger){var K=!1;for(var b=g.n(z.additionalTrigger),q=b.next();!q.done;q=b.next())q=q.value,q.type&&q.args&&Z.K[q.type]!==void 0&&(K=K||Z.K[q.type](q.args))}else K=!0;Q&&K&&(Z.api.hG("innertubeCommand",Q),Z.setTimeout(z),Z.W[Z.Y]!==void 0&&Z.W[Z.Y]++)}}; Lsd=function(Z,Q){return Z.j===void 0?!1:Q.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(Q.seekLengthMilliseconds)===5E3?Z.j===72:Q.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(Q.seekLengthMilliseconds)===1E4?Z.j===74:Q.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(Q.seekLengthMilliseconds)===5E3?Z.j===71:Q.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(Q.seekLengthMilliseconds)===1E4?Z.j===73:!1}; nbu=function(Z){if(Z=Z.getWatchNextResponse()){var Q,z;Z=(Q=Z.playerOverlays)==null?void 0:(z=Q.playerOverlayRenderer)==null?void 0:z.timelyActionsOverlayViewModel;Q=g.V(Z,y3f);if(Q!=null&&Q.timelyActions)return Q==null?void 0:Q.timelyActions.map(function(K){return g.V(K,dC0)}).filter(function(K){return!!K})}}; N$G=function(Z){V7.call(this,Z);var Q=this;ze(this.api,"getPlaybackRate",function(){return Q.api.getPlaybackRate()}); ze(this.api,"setPlaybackRate",function(z){typeof z==="number"&&Q.api.setPlaybackRate(z)})}; Ghr=function(Z){Z=Z.sS();if(!Z)return!1;Z=g.bV(Z).exp||"";return Z.includes("xpv")||Z.includes("xpe")}; ib4=function(Z){Z=g.n(g.Y3(Z,!0));for(var Q=Z.next();!Q.done;Q=Z.next())if(Ghr(Q.value))return!0;return!1}; asG=function(Z,Q){Z=g.n(g.Y3(Z,!0));for(var z=Z.next();!z.done;z=Z.next())if(z=z.value,Ghr(z)){var K={potc:"1",pot:Q};z.url&&(z.url=qi(z.url,K))}}; Pj4=function(Z){var Q=new zGG,z={},K=(z["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",z);return new nK(Q,Z,function(){return K})}; RC4=function(Z){return g.C(function(Q){if(Q.Y==1)return g.nX(Q,2),g.P(Q,Z,4);if(Q.Y!=2)return g.m9(Q,0);g.I0(Q);g.LX(Q)})}; SW=function(Z){V7.call(this,Z);var Q=this;this.useLivingRoomPoToken=!1;this.W=new g.XO;this.rq=null;this.T=!1;this.S=null;this.L=!1;var z=Z.N().getWebPlayerContextConfig();this.events=new g.M5(Z);g.W(this,this.events);this.events.Z(Z,"spsumpreject",function(K,b,q){Q.L=b;K&&Q.T&&!Q.S&&(Q.V("html5_generate_content_po_token")&&q?Q.GM(q):Q.V("html5_generate_session_po_token")&&CjW(Q));Q.S||Q.api.pN("stp",{s:+Q.T,b:+Q.L})}); this.events.Z(Z,"poTokenVideoBindingChange",function(K){Q.GM(K)}); this.useLivingRoomPoToken=!(z==null||!z.useLivingRoomPoToken);Z.addEventListener("csiinitialized",function(){Q.rq=Z.hx();var K=(Q.V("html5_generate_session_po_token")||Q.V("html5_generate_content_po_token"))&&!Q.useLivingRoomPoToken;try{if(Q.V("html5_use_shared_owl_instance"))pRX(Q);else if(K){Q.rq.f0("pot_isc");Q.V("html5_new_wpo_client")||Hb9(Q);var b=g.Xp(Q.api.N().experiments,"html5_webpo_kaios_defer_timeout_ms");b?(Q.V("html5_new_wpo_client")&&(Q.j=uk()),g.$q(function(){Xi(Q)},b)):Q.V("html5_webpo_idle_priority_job")? (Q.V("html5_new_wpo_client")&&(Q.j=uk()),g.lb(g.ZW(),function(){Xi(Q)})):Xi(Q)}}catch(q){q instanceof Error&&g.CO(q)}}); Z.addEventListener("trackListLoaded",this.Go.bind(this));Z.RM(this)}; Mb4=function(Z){var Q=tR(Z.experiments,"html5_web_po_request_key");return Q?Q:g.Nf(Z)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; $3=function(Z,Q){if(Z.V("html5_webpo_bge_ctmp")){var z,K={hwpo:!!Z.Y,hwpor:!((z=Z.Y)==null||!z.isReady())};Z.api.pN(Q,K)}}; pRX=function(Z){var Q,z;g.C(function(K){if(K.Y==1)return $3(Z,"swpo_i"),Z.j=uk(),T2(Z),g.P(K,iR(),2);if(K.Y!=3)return Q=K.j,$3(Z,"swpo_co"),g.P(K,Z4u(Q),3);z=K.j;Z.Y=UCX(Z,z);$3(Z,"swpo_cc");Z.Y.ready().then(function(){Z.W.resolve();$3(Z,"swpo_re")}); g.$q(function(){Xi(Z);$3(Z,"swpo_si")},0); g.LX(K)})}; Hb9=function(Z){var Q=Z.api.N(),z=Mb4(Q),K=Pj4(z);Q=new Fn({Nf:z,m3:K,onEvent:function(b){(b=ObD[b])&&Z.rq.f0(b)}, onError:g.CO,Ir:hln(Q.experiments),rG:function(){return void Z.api.pN("itr",{})}, Iif:Q.experiments.XI("html5_web_po_disable_remote_logging")||obu.includes(g.pE(Q.Ff)||"")});Q.ready().then(function(){return void Z.W.resolve()}); g.W(Z,Q);Z.Y=Q}; B$u=function(Z){var Q=Z.api.N(),z=Pj4(Mb4(Q)),K=z.TF.bind(z);z.TF=function(D){var v;return g.C(function(Y){if(Y.Y==1)return g.P(Y,K(D),2);v=Y.j;Z.api.pN("itr",{});return Y.return(v)})}; try{var b=new cj({m3:z,Tl:{maxAttempts:5},vE:{disable:Q.experiments.XI("html5_web_po_disable_remote_logging")||obu.includes(g.pE(Q.Ff)||""),GN:hln(Q.experiments),VfG:Z.V("wpo_dis_lfdms")?0:1E3},OLN:g.CO});var q=new ke({Hg:b,m3:z,onError:g.CO});RC4(q.nS()).then(function(){return void Z.W.resolve()}); g.W(Z,b);g.W(Z,q);Z.Y=UCX(Z,q)}catch(D){g.CO(D);var r;(r=b)==null||r.dispose()}}; Xi=function(Z){var Q=Z.api.N();Z.rq.f0("pot_ist");Z.Y?Z.Y.start():Z.V("html5_new_wpo_client")&&B$u(Z);Z.V("html5_bandaid_attach_content_po_token")||(Z.V("html5_generate_session_po_token")&&(T2(Z),CjW(Z)),Q=g.Xp(Q.experiments,"html5_session_po_token_interval_time_ms")||0,Q>0&&(Z.K=g.Tr(function(){T2(Z)},Q)),Z.T=!0)}; T2=function(Z){var Q,z,K,b;g.C(function(q){if(!Z.V("html5_generate_session_po_token")||Z.useLivingRoomPoToken)return q.return();Q=Z.api.N();z=g.Ft("EOM_VISITOR_DATA")||g.Ft("VISITOR_DATA");K=Q.K4?Q.datasyncId:z;b=tR(Q.experiments,"html5_mock_content_binding_for_session_token")||Q.livingRoomPoTokenId||K;Q.Q7=fy(Z,b);g.LX(q)})}; fy=function(Z,Q){if(!Z.Y)return Z.j?Z.j(Q):"";try{var z=Z.Y.isReady();Z.rq.f0(z?"pot_cms":"pot_csms");var K="";K=Z.V("html5_web_po_token_disable_caching")?Z.Y.a$({wV:Q}):Z.Y.a$({wV:Q,Hv:{fO:Q,gq7:150,M4:!0,DJ:!0}});Z.rq.f0(z?"pot_cmf":"pot_csmf");if(z){var b;(b=Z.S)==null||b.resolve();Z.S=null;if(Z.L){Z.L=!1;var q;(q=Z.api.app.eJ())==null||q.Fn(!1)}}return K}catch(r){return g.CO(r),""}}; CjW=function(Z){Z.Y&&(Z.S=new EZ,Z.Y.ready().then(function(){Z.rq.f0("pot_if");T2(Z)}))}; UCX=function(Z,Q){Z.V("html5_web_po_token_disable_caching")||Q.l9(150);var z=!1,K=RC4(Q.nS()).then(function(){z=!0}); return{isReady:function(){return z}, ready:function(){return K}, a$:function(b){return Q.a$({wV:b.wV,ai:!0,NP:!0,Hv:b.Hv?{fO:b.Hv.fO,M4:b.Hv.M4,DJ:b.Hv.DJ}:void 0})}, start:function(){}}}; Ws9=function(Z){V7.call(this,Z);var Q=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.M5(Z);g.W(this,this.events);this.events.Z(Z,"heartbeatRequest",function(z){if(Q.freePreviewUsageDetails.length||Q.freePreviewWatchedDuration!==null)z.heartbeatRequestParams||(z.heartbeatRequestParams={}),z.heartbeatRequestParams.unpluggedParams||(z.heartbeatRequestParams.unpluggedParams={}),Q.freePreviewUsageDetails.length>0?z.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= Q.freePreviewUsageDetails:z.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+Q.freePreviewWatchedDuration}}); Q7(Z,"setFreePreviewWatchedDuration",function(z){Q.freePreviewWatchedDuration=z}); Q7(Z,"setFreePreviewUsageDetails",function(z){Q.freePreviewUsageDetails=z})}; hv=function(Z){g.O.call(this);this.features=[];var Q=this.Y,z=new hI(Z),K=new kA(Z),b=new GT(Z),q=new SW(Z);var r=g.yF(Z.N())?void 0:new v7(Z);var D=new Nv(Z),v=new gb4(Z),Y=new N$G(Z),X=new fL(Z);var S=g.yF(Z.N())?new Ws9(Z):void 0;var T=Z.V("html5_enable_ssap")?new r3G(Z):void 0;var f=Z.V("web_cinematic_watch_settings")&&(f=Z.N().getWebPlayerContextConfig())!=null&&f.cinematicSettingsAvailable?new qK(Z):void 0;var h=new TN(Z);var m=Z.V("enable_courses_player_overlay_purchase")?new SeD(Z):void 0; var J=g.ka(Z.N())?new vNX(Z):void 0;var d=new gF(Z);var G=Z.N().W?new bYf(Z):void 0;var R=g.mj(Z.N())?new K54(Z):void 0;var U=Z.V("web_player_move_autonav_toggle")&&Z.N().zJ?new wxG(Z):void 0;var B=g.ka(Z.N())?new qUu(Z):void 0;var e=Z.V("web_enable_speedmaster")&&g.ka(Z.N())?new z2(Z):void 0;var F=Z.N().Sc?void 0:new hCu(Z);var KX=Z.V("report_pml_debug_signal")?new xnx(Z):void 0;var rf=new hqd(Z),sG=new R_(Z);var k=g.HM(Z.N())?new G2D(Z):void 0;var l=navigator.mediaSession&&window.MediaMetadata&& Z.N().p9?new y9(Z):void 0;var c=Z.V("html5_enable_drc")&&!Z.N().K?new D6(Z):void 0;var u=new xA(Z);var o0=g.ka(Z.N())?new B44(Z):void 0;var nz=Z.V("html5_enable_d6de4")?new i5(Z):void 0;var gX=g.ka(Z.N())&&Z.V("web_sleep_timer")?new e0(Z):void 0;var df=g.mj(Z.N())?new rdf(Z):void 0;var wf=new x1(Z),zJ=new rF(Z),$$=new byG(Z);var y=Z.V("enable_sabr_snackbar_message")?new QX9(Z):void 0;var N=Z.V("web_enable_timely_actions")?new c3d(Z):void 0;Q.call(this,z,K,b,q,r,D,v,Y,X,S,T,f,h,m,J,d,G,R,U,B,e,F,KX, rf,sG,k,void 0,l,c,u,void 0,o0,nz,gX,df,void 0,wf,zJ,$$,void 0,y,N,new AI(Z))}; Ly=function(){this.j=this.Y=NaN}; Vbd=function(Z,Q){this.Yh=Z;this.timerName="";this.S=!1;this.j=NaN;this.W=new Ly;this.Y=Q||null;this.S=!1}; kh9=function(Z,Q,z){var K=g.GK(Q.B7)&&!Q.B7.K;if(Q.B7.R4&&(JC(Q.B7)||Q.B7.KN==="shortspage"||eY(Q.B7)||K)&&!Z.S){Z.S=!0;Z.K=Q.clientPlaybackNonce;g.Ft("TIMING_ACTION")||ts("TIMING_ACTION",Z.Yh.csiPageType);Z.Yh.csiServiceName&&ts("CSI_SERVICE_NAME",Z.Yh.csiServiceName);if(Z.Y){K=Z.Y.hx();for(var b=g.n(Object.keys(K)),q=b.next();!q.done;q=b.next())q=q.value,Ow(q,K[q],Z.timerName);K=g.lW(M7X)(Z.Y.Wp);g.oC(K,Z.timerName);K=Z.Y;K.j={};K.Wp={}}g.oC({playerInfo:{visibilityState:g.lW(Hjn)()},playerType:"LATENCY_PLAYER_HTML5"}, Z.timerName);Z.L!==Q.clientPlaybackNonce||Number.isNaN(Z.j)||(WO("_start",Z.timerName)?z=g.lW(CV)("_start",Z.timerName)+Z.j:g.CO(new g.tW("attempted to log gapless pbs before CSI timeline started",{cpn:Q.clientPlaybackNonce})));z&&!WO("pbs",Z.timerName)&&Z.tick("pbs",z)}}; uEG=function(Z,Q,z,K,b,q,r){Z=(Z===z?"video":"ad")+"_to_"+(Q===z?"video":"ad");if(Z!=="video_to_ad"||q!=null&&q.P7){q=Z==="ad_to_video"?q:K;z=q==null?void 0:q.Hp;var D={};if(K==null?0:K.K)D.cttAuthInfo={token:K.K,videoId:K.videoId};b&&(D.startTime=b);BO(Z,D);var v,Y,X;K={targetVideoId:(v=K==null?void 0:K.videoId)!=null?v:"empty_video",targetCpn:Q,adVideoId:(Y=q==null?void 0:q.videoId)!=null?Y:"empty_video",adClientPlaybackNonce:(X=z==null?void 0:z.cpn)!=null?X:q==null?void 0:q.clientPlaybackNonce}; z&&(K.adBreakType=z.adBreakType,K.adType=z.adType);g.oC(K,Z);Ow("pbs",r!=null?r:(0,g.Nm)(),Z)}}; ny=function(Z){t79();xQG();Z.timerName=""}; xCu=function(Z){if(Z.Y){var Q=Z.Y;Q.j={};Q.Wp={}}Z.S=!1;Z.L=void 0;Z.j=NaN}; tbG=function(Z,Q){g.rV.call(this);this.B7=Z;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.Y=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.U={};this.j=0;if(Z=Q.session_data)this.sessionData=ZX(Z,"&");this.index=Math.max(0,Number(Q.index)||0);this.loop=!!Q.loop;this.startSeconds=Number(Q.startSeconds)||0;this.title=Q.playlist_title||"";this.description=Q.playlist_description||"";this.author= Q.author||Q.playlist_author||"";Q.video_id&&(this.items[this.index]=Q);if(Z=Q.api)typeof Z==="string"&&Z.length===16?Q.list="PL"+Z:Q.playlist=Z;if(Z=Q.list)switch(Q.listType){case "user_uploads":this.listId=new Ts("UU","PLAYER_"+Z);break;default:var z=Q.playlist_length;z&&(this.length=Number(z)||0);this.listId=g.fU(Z);if(Z=Q.video)this.items=Z.slice(0),this.loaded=!0}else if(Q.playlist){Z=Q.playlist.toString().split(",");this.index>0&&(this.items=[]);Z=g.n(Z);for(z=Z.next();!z.done;z=Z.next())(z= z.value)&&this.items.push({video_id:z});this.length=this.items.length;if(Z=Q.video)this.items=Z.slice(0),this.loaded=!0}this.setShuffle(!!Q.shuffle);if(Z=Q.suggestedQuality)this.quality=Z;this.U=gv(Q,"playlist_");this.S=(Q=Q.thumbnail_ids)?Q.split(","):[]}; Fsd=function(Z){return!!(Z.playlist||Z.list||Z.api)}; eC4=function(Z){var Q=Z.index+1;return Q>=Z.length?0:Q}; wRM=function(Z){var Q=Z.index-1;return Q<0?Z.length-1:Q}; g.cf=function(Z,Q,z,K){Q=Q!==void 0?Q:Z.index;Q=Z.items&&Q in Z.items?Z.items[Z.order[Q]]:null;var b=null;Q&&(z&&(Q.autoplay="1"),K&&(Q.autonav="1"),b=new g.OK(Z.B7,Q),g.W(Z,b),b.rj=!0,b.startSeconds=Z.startSeconds||b.clipStart||0,Z.listId&&(b.playlistId=Z.listId.toString()));return b}; EbW=function(Z,Q){Z.index=g.Al(Q,0,Z.length-1);Z.startSeconds=0}; lsX=function(Z,Q){if(Q.video&&Q.video.length){Z.title=Q.title||"";Z.description=Q.description;Z.views=Q.views;Z.likes=Q.likes;Z.dislikes=Q.dislikes;Z.author=Q.author||"";var z=Q.loop;z&&(Z.loop=z);z=g.cf(Z);Z.items=[];for(var K=g.n(Q.video),b=K.next();!b.done;b=K.next())if(b=b.value)b.video_id=b.encrypted_id,Z.items.push(b);Z.length=Z.items.length;(Q=Q.index)?Z.index=Q:Z.findIndex(z);Z.setShuffle(!1);Z.loaded=!0;Z.j++;Z.Y&&Z.Y()}}; QQn=function(Z,Q){var z,K,b,q,r,D,v;return g.C(function(Y){if(Y.Y==1){z=g.b9();var X=Z.N(),S={context:g.sq(Z),playbackContext:{contentPlaybackContext:{ancestorOrigins:X.ancestorOrigins}}},T=X.getWebPlayerContextConfig();if(T==null?0:T.encryptedHostFlags)S.playbackContext.contentPlaybackContext.encryptedHostFlags=T.encryptedHostFlags;if(T==null?0:T.hideInfo)S.playerParams={showinfo:!1};X=X.embedConfig;T=Q.docid||Q.video_id||Q.videoId||Q.id;if(!T){T=Q.raw_embedded_player_response;if(!T){var f=Q.embedded_player_response; f&&(T=JSON.parse(f))}if(T){var h,m,J,d,G,R;T=((R=g.V((h=T)==null?void 0:(m=h.embedPreview)==null?void 0:(J=m.thumbnailPreviewRenderer)==null?void 0:(d=J.playButton)==null?void 0:(G=d.buttonRenderer)==null?void 0:G.navigationEndpoint,g.tF))==null?void 0:R.videoId)||null}else T=null}h=(h=T)?h:void 0;m=Z.playlistId?Z.playlistId:Q.list;J=Q.listType;if(m){var U;J==="user_uploads"?U={username:m}:U={playlistId:m};sQM(X,h,Q,U);S.playlistRequest=U}else Q.playlist?(U={templistVideoIds:Q.playlist.toString().split(",")}, sQM(X,h,Q,U),S.playlistRequest=U):h&&(U={videoId:h},X&&(U.serializedThirdPartyEmbedConfig=X),S.singleVideoRequest=U);K=S;b=g.lc(Zaf);g.nX(Y,2);return g.P(Y,g.t4(z,K,b),4)}if(Y.Y!=2)return q=Y.j,r=Z.N(),Q.raw_embedded_player_response=q,r.JG=jj(Q,g.mj(r)),r.S=r.JG==="EMBEDDED_PLAYER_MODE_PFL",q&&(D=q,D.trackingParams&&IL(D.trackingParams)),Y.return(new g.OK(r,Q));v=g.I0(Y);v instanceof Error||(v=Error("b259802748"));g.Rm(v);return Y.return(Z)})}; sQM=function(Z,Q,z,K){z.index&&(K.playlistIndex=String(Number(z.index)+1));K.videoId=Q?Q:"";Z&&(K.serializedThirdPartyEmbedConfig=Z)}; g.Iq=function(Z,Q){mR.get(Z);mR.set(Z,Q)}; g.Jv=function(Z){g.rV.call(this);this.loaded=!1;this.player=Z}; ztu=function(){this.j=[];this.Y=[]}; g.Y3=function(Z,Q){return Q?Z.Y.concat(Z.j):Z.Y}; g.yB=function(Z,Q){switch(Q.kind){case "asr":KXG(Q,Z.j);break;default:KXG(Q,Z.Y)}}; KXG=function(Z,Q){g.Fm(Q,function(z){return Z.Tg(z)})||Q.push(Z)}; g.d4=function(Z){g.O.call(this);this.fN=Z;this.j=new ztu;this.W=null;this.L=[];this.X=[]}; g.Np=function(Z,Q,z){g.d4.call(this,Z);this.videoData=Q;this.audioTrack=z;this.Y=null;this.S=!1;this.L=Q.Ps;this.X=Q.p8;this.S=g.Mz(Q)}; g.G2=function(Z,Q){return ZR(Z.info)?Q?Z.info.itag===Q:!0:!1}; g.ba9=function(Z,Q){if(Z.Y!=null&&g.yF(Q.N())&&!Z.Y.isManifestless&&Z.Y.Y.rawcc!=null)return!0;if(!Z.fd())return!1;Q=!!Z.Y&&Z.Y.isManifestless&&Object.values(Z.Y.Y).some(function(z){return g.G2(z,"386")}); Z=!!Z.Y&&!Z.Y.isManifestless&&g.GuG(Z.Y);return Q||Z}; g.iM=function(Z,Q,z,K,b,q){g.d4.call(this,Z);this.videoId=z;this.aV=b;this.eventId=q;this.K={};this.Y=null;Z=K||g.bV(Q).hl||"";Z=Z.split("_").join("-");this.S=qi(Q,{hl:Z})}; qAX=function(Z,Q){this.j=Z;this.Y=Q;this.onFailure=void 0}; ra4=function(Z,Q){return{ZW:Z.ZW&&Q.ZW,Kf:Z.Kf&&Q.Kf,sync:Z.sync&&Q.sync,streaming:Z.streaming&&Q.streaming}}; Pf=function(Z,Q){var z=AaW,K=this;this.path=Z;this.S=Q;this.W=z;this.capabilities={ZW:!!this.S,Kf:"WebAssembly"in window,sync:"WebAssembly"in window,streaming:"WebAssembly"in window&&"instantiateStreaming"in WebAssembly&&"compileStreaming"in WebAssembly};this.L=new qAX([{name:"compileStreaming",condition:function(b){return!!K.j&&b.streaming}, hC:aq.QX("wmcx",function(){return WebAssembly.compileStreaming(fetch(K.path))}), onFailure:function(){return K.capabilities.streaming=!1}}, {name:"sync",condition:function(b){return b.sync}, hC:function(){return D7(jQn(K),aq.QX("wmcs",function(b){return new WebAssembly.Module(b)}))}, onFailure:function(){return K.capabilities.sync=!1}}, {name:"async",condition:function(){return!0}, hC:function(){return D7(jQn(K),aq.QX("wmca",function(b){return WebAssembly.compile(b)}))}, onFailure:function(){return K.capabilities.Kf=!1}}]); this.K=new qAX([{name:"instantiateStreaming",condition:function(b){return b.Kf&&b.streaming&&!K.j&&!K.Y}, hC:function(b,q){return aq.Be("wmix",function(){return WebAssembly.instantiateStreaming(fetch(K.path),q)}).then(function(r){K.Y=qP(r.module); return{instance:r.instance,al:!1}})}, onFailure:function(){return K.capabilities.streaming=!1}}, {name:"sync",condition:function(b){return b.Kf&&b.sync}, hC:function(b,q){return D7(D3D(K,b),aq.QX("wmis",function(r){return{instance:new WebAssembly.Instance(r,q),al:!1}}))}, onFailure:function(){return K.capabilities.sync=!1}}, {name:"async",condition:function(b){return b.Kf}, hC:function(b,q){return D7(D7(D3D(K,b),aq.QX("wmia",function(r){return WebAssembly.instantiate(r,q)})),function(r){return{instance:r, al:!1}})}, onFailure:function(){return K.capabilities.Kf=!1}}, {name:"asmjs",condition:function(b){return b.ZW}, hC:function(b,q){return qP(aq.Be("wmij",function(){return K.S(q)}).then(function(r){return{instance:{exports:r}, al:!0}}))}, onFailure:function(){return K.capabilities.ZW=!1}}],function(b,q,r){return K.W(r,b.instance.exports)})}; YAD=function(Z){var Q=vJ0;return Q.instantiate(Z?ra4(Q.capabilities,Z):Q.capabilities,new gJD)}; jQn=function(Z){if(Z.j)return Z.j;var Q=fetch(Z.path).then(function(z){return z.arrayBuffer()}).then(function(z){Z.j=qP(z); return z}).then(void 0,function(z){g.CO(Error("wasm module fetch failure: "+z.message,{cause:z})); Z.j=void 0;throw z;}); Z.j=qP(Q);return Z.j}; D3D=function(Z,Q){if(!Q.Kf)return r0(Error("wasm unavailable"));if(Z.Y)return Z.Y;Z.Y=v3(D7(Z.compile(Q),function(z){Z.Y=qP(z);return z}),function(z){g.CO(Error("wasm module compile failure: "+z.message,{cause:z})); Z.Y=void 0;throw z;}); return Z.Y}; XU9=function(){}; SAD=function(){var Z=this;this.proc_exit=function(){}; this.fd_write=function(Q,z,K){if(!Z.exports)return 1;Q=new Uint32Array(Z.exports.memory.buffer,z,K*2);z=[];for(var b=0;b<K;++b){var q=new Uint8Array(Z.exports.memory.buffer,Q[b*2],Q[b*2+1]);q=g.dE(q);z.push(q)}return z.reduce(function(r,D){return r+D.length},0)}}; gJD=function(){this.env=new XU9;this.wasi_snapshot_preview1=new SAD}; AaW=function(Z,Q){Z.wasi_snapshot_preview1.exports=Q;Z=Math.floor(Math.random()*256);var z=Math.floor(Math.random()*256),K=0;try{K=Q.malloc(16);(new Uint8Array(Q.memory.buffer,K,16)).fill(Z);if(Q.sentinel(K,16,z)!==z*16%256)return!1;for(var b=new Uint8Array(Q.memory.buffer,K,16),q=0;q<16;q++)if(b[q]!==(Z+z)%256)return!1;return!0}finally{K!==0&&Q.free(K)}}; $3u=function(Z,Q){this.instance=Z;this.al=Q;this.exports=this.Y=this.instance.exports}; fKr=function(Z,Q,z){z=z===void 0?!1:z;var K=K===void 0?!0:K;var b=aq.TM();return D7(TyG(Z,Q,{ZW:z,Kf:!0,sync:!0,streaming:!0},K),function(q){aq.BO(q.al?"winitjs":"winit",b);return q})}; TyG=function(Z,Q,z,K){K=K===void 0?!0:K;vJ0||(vJ0=new Pf(Z,Q));return D7(YAD(z),function(b){return new $3u(b.instance,b.al,K)})}; htn=function(Z,Q){g.O.call(this);var z=this;this.J=Z;this.Y=Q;this.Wp={};this.j={};this.S=null;this.W=new Set;this.L=new g.M5(this);this.zz={GwJ:function(){return z.Y}, FV:function(){return z.FV()}}; this.K=this.J.V("web_player_defer_modules");this.Ov=new Map;g.W(this,this.L);this.L.Z(Z,"videodatachange",this.onVideoDataChange)}; g.Rq=function(Z){return Z.Ov.get("captions")}; Jan=function(Z,Q){switch(Q){case "ad":return LXf(Z);case "annotations_module":return Z.J.isEmbedsShortsMode()?Z=!1:(Q=Z.J,Z=Q.N(),Q=Q.getVideoData(),Z=Z.S||Q.HZ||Z.controlsType==="3"?!1:Z.c7.isEmpty()&&Z.playerStyle!=="annotation-editor"&&Z.playerStyle!=="live-dashboard"?!!Q.s$||!!g.Gz(Q)||!!g.iN(Q):!0),Z;case "asmjs":return Z.J.N().V("html5_allow_asmjs");case "creatorendscreen":return nJn(Z);case "embed":return g.mj(Z.J.N());case "endscreen":return g.caX(Z);case "heartbeat":return Z.n1();case "kids":return HZ(Z.J.N()); case "remote":return Z.J.N().CM;case "miniplayer":return Z.J.N().showMiniplayerUiWhenMinimized;case "offline":return Z.J.N().DH;case "captions":return m3G(Z);case "unplugged":return g.ia(Z.J.N());case "ux":return Z.J.N().CN;case "webgl":return IKW(Z);case "ypc":return Z.Pw();case "ypc_clickwrap":return Z=Z.J.getVideoData(),Z.Vr&&!Z.UH;case "yto":return!!Z.J.getVideoData().JG.includes("yto");default:return g.Rm(Error("Module descriptor "+Q+" does not match")),!1}}; Cy=function(Z,Q,z,K,b){var q;z=z===void 0?!1:z;K=K===void 0?!1:K;var r=Z.Ov.get(Q);if(!r||K)if(b||(b=function(){Cy(Z,Q,z,K)}),q||(q=function(){Z.J.o3(Q)}),r=r||yax(Z,Q,Jan(Z,Q),b,q))Z.Ov.set(Q,r),r.create(),Z.J.publish("modulecreated",Q),z&&Z.J.ZG("onApiChange")}; NyD=function(Z){var Q=Q===void 0?!1:Q;var z,K,b,q,r;return g.C(function(D){if(D.Y==1)return(z=Z.Ov.get("asmjs"))&&!Q?D.return(z):(K=mR.get("asmjs"))!=null?(b=K,D.O$(2)):g.P(D,new Promise(function(v,Y){d3x(Z,"asmjs",function(){var X=mR.get("asmjs");X?v(X):Y("cannot load module asmjs")},Y)}),3); D.Y!=2&&(b=D.j);q=b;if(!q)return D.return(Promise.reject("cannot load module asmjs"));r=new q(Z.J);Z.Ov.set("asmjs",r);r.create();return D.return(r)})}; aK4=function(Z){G30(Z)&&Z.XY();iaf(Z)&&(Cy(Z,"captions",!0),Cy(Z,"endscreen"),Z.wW(),Cy(Z,"creatorendscreen",!0))}; iaf=function(Z){var Q=Z.J.getVideoData(),z=Z.K&&!Q.isInlinePlaybackNoAd;Z.J.V("html5_defer_modules_on_ads_only")&&!Q.isAd()&&(z=!1);return z}; G30=function(Z){Z=Z.J.getVideoData();var Q;if(Q=Z.V("web_player_defer_ad")){if(g.wX(Z.JG,"ad")||kEn(Z)||Z.enableServerStitchedDai)Z=!1;else{Q=Z.playerResponse;Z=Z.startSeconds;var z=Q==null?void 0:Q.adPlacements;if(Q=z){Q=Number.MAX_VALUE;z=g.n(z);for(var K=z.next();!K.done;K=z.next())if(K=K.value.adPlacementRenderer){var b=void 0,q=(b=K.config)==null?void 0:b.adPlacementConfig;b=void 0;if(((b=q)==null?void 0:b.kind)==="AD_PLACEMENT_KIND_MILLISECONDS"){var r=b=void 0;q=Number((b=q)==null?void 0:(r= b.adTimeOffset)==null?void 0:r.offsetStartMilliseconds)||0;r=b=void 0;K=Number(((b=K.renderer)==null?void 0:(r=b.adBreakServiceRenderer)==null?void 0:r.prefetchMilliseconds)||0);K=q-K;K<Q&&(Q=K)}}Q=Q-5E3<=Z*1E3}Z=Q?!1:!0}Q=Z}return Q}; m3G=function(Z){var Q=Z.J.getVideoData();return!!Q.aC||!!Q.captionTracks.length||g.ba9(Q,Z.J)}; g.caX=function(Z){var Q=Z.J.N();if(Q.S||eY(Q)||Q.K||!Q.A4&&!Q.YJ)return!1;var z=Z.J.getPresentingPlayerType();if(z===2)return!1;if(z===3)return Q.V("desktop_enable_autoplay");Z=Z.J.getVideoData();if(!Z)return!1;z=!Z.isLiveDefaultBroadcast||Q.V("allow_poltergust_autoplay");z=Z.isLivePlayback&&(!Q.V("allow_live_autoplay")||!z);Q=Z.isLivePlayback&&Q.V("allow_live_autoplay_on_mweb");return!z||Q}; g.y7=function(Z){return Z.Ov.get("webgl")}; IKW=function(Z){var Q=Z.J.getVideoData();Z=Z.J.N();var z=g.L_r(),K=Z.V("enable_spherical_kabuki"),b=g.F4(Z);if(g.dP(Q))return z||K||b;if(g.JP(Q))return b||z||K;if(g.ya(Q))return b||z||!1;if(g.gP(Q))return b||!1;z=Q.j&&Q.j.video&&Q.j.video.isHdr();return b&&!g.$G(Q)&&!z&&Z.V("enable_webgl_noop")}; LXf=function(Z){if(Z.J.N().S)return!1;Z=Z.J.getVideoData(1);var Q=Z.getPlayerResponse();if(Q){var z=Q.adPlacements;if(z)for(var K=0;K<z.length;K++)if(z[K].adPlacementRenderer)return!0;if(Q.adSlots)return!0}return g.V0(Z)?!0:!1}; nJn=function(Z){if(Z.J.isEmbedsShortsMode())return!1;Z=Z.J;var Q=Z.N();if(Q.S)return!1;var z;if(((z=Q.getWebPlayerContextConfig())==null?0:z.embedsEnableEmc3ds)||Q.controlsType==="3")return!1;if(Q.playerStyle==="creator-endscreen-editor")return!0;z=Z.getVideoData();return!!z&&(!!g.Zdf(z)||!!g.Qd9(z))}; yax=function(Z,Q,z,K,b){try{if(z){var q=mR.get(Q);if(q)return new q(Z.J);d3x(Z,Q,K,b)}else Z.J.o3(Q)}catch(r){Z.J.o3(Q),g.Rm(r)}return null}; py=function(Z,Q,z){if(Z.J.N().V("html5_dispose_modules_in_order"))for(var K=g.n(PdG),b=K.next();!b.done;b=K.next()){b=b.value;var q=Z.Ov.get(b);q&&(z||q.bP(Q))&&(g.jR(q),Z.Ov.delete(b))}else for(K=g.n(Z.Ov),b=K.next();!b.done;b=K.next())q=g.n(b.value),b=q.next().value,(q=q.next().value)&&(z||q.bP(Q))&&(g.jR(q),Z.Ov.delete(b))}; Hf=function(Z){return Z.Ov.get("ad")}; Rtd=function(Z){if(HZ(Z.J.N()))return Z.Ov.get("kids")}; mI=function(Z){if(Z.J.N().CM)return Z.Ov.get("remote")}; g.Mp=function(Z){if(g.ia(Z.J.N()))return Z.Ov.get("unplugged")}; N_d=function(Z){if(Z.J.N().CN)return Z.Ov.get("ux")}; Cdx=function(Z){if(Z.J.N().showMiniplayerUiWhenMinimized)return Z.Ov.get("miniplayer")}; UU=function(Z){if(Z.J.N().DH)return Z.Ov.get("offline")}; g.OU=function(Z){return Z.Ov.get("annotations_module")}; oq=function(Z){return Z.Ov.get("creatorendscreen")}; Hau=function(Z,Q){var z=Z.Y.startsWith("https://")?Z.Y+"lib.wasm":Z.Y.split("/").slice(0,4).join("/")+"/wasm/lib.wasm";return fKr(z,function(K){var b=Z.Ov.get("asmjs");return b?Promise.resolve(b.Qc(K)):pUx(Z).then(function(q){return q.Qc(K)})},Q)}; pUx=function(Z){var Q,z;return g.C(function(K){if(K.Y==1)return g.P(K,NyD(Z),2);z=Q=K.j;return K.return(z)})}; d3x=function(Z,Q,z,K){if(Z.Y){var b=MQG[Q];U3X(Z,Z.Y+b,function(){Z.W.add(b);z.call(Z)},K)}}; U3X=function(Z,Q,z,K){function b(){Z.FI()||K.call(Z)} function q(){Z.FI()||z.call(Z)} for(var r=g.Ba("SCRIPT"),D=!1,v,Y=0;Y<r.length;Y++){var X=r[Y];if(X.src===Q||X.getAttribute("data-original-src")===Q)v=X}v||(v=g.lY("SCRIPT"),v.setAttribute("data-original-src",Q),D=!0);var S=v.onload;v.onload=function(m){zD(q);S&&S.apply(window,[m])}; var T=v.onerror;v.onerror=function(m){if(Math.random()<.01){var J=new g.tW("Unable to load player module",Q,document.location&&document.location.origin);g.Rm(J)}zD(b);T&&T(m)}; var f=v,h=f.onreadystatechange;f.onreadystatechange=function(m){switch(f.readyState){case "loaded":case "complete":zD(q)}h&&h(m)}; D&&((r=Z.J.N().cspNonce)&&v.setAttribute("nonce",r),g.WB(v,g.Js(Q)),r=g.Ba("HEAD")[0]||document.body,r.insertBefore(v,r.firstChild),Z.addOnDisposeCallback(function(){v.parentNode&&v.parentNode.removeChild(v)}))}; OaX=function(Z,Q,z,K,b){g.rV.call(this);var q=this;this.target=Z;this.Qd=Q;this.j=0;this.K=!1;this.W=new g.Yv(NaN,NaN);this.Y=new g.M5(this);this.P7=this.S=this.T=null;g.W(this,this.Y);Q=K||b?4E3:3E3;this.U=new g.E6(function(){Bf(q,1,!1)},Q,this); g.W(this,this.U);this.jJ=new g.E6(function(){Bf(q,2,!1)},Q,this); g.W(this,this.jJ);this.SJ=new g.E6(function(){Bf(q,512,!1)},Q,this); g.W(this,this.SJ);this.JG=3E3;K||(this.S=this.Y.Z(Z,"mouseover",this.A_),this.Y.Z(Z,"mousemove",this.iO),this.Y.Z(Z,"mouseleave",this.ror));v$?this.Y.Z(Z,"keypress",this.suu):this.Y.Z(Z,"focusin",this.pI);this.L=this.Y.Z(Z,"mousedown",this.Xx);this.X=this.Y.Z(Z,"touchstart",this.ly,void 0,!0);Bf(this,640,!0)}; oJ4=function(Z){Bf(Z,4,!1);Z.T&&(Z.Y.oy(Z.T),Z.T=null,Z.S=Z.Y.Z(Z.target,"mouseover",Z.A_));Z.S&&(Z.Y.oy(Z.S),Z.S=Z.Y.Z(Z.target,"mouseover",Z.A_))}; Bf=function(Z,Q,z){Z.FI();var K=!Z.j;z?(Z.j|=Q,Q&1&&Z.U.start(),Q&2&&Z.jJ.start()):(Z.j&=~Q,Q&1&&Z.U.stop(),Q&2&&Z.jJ.stop(),Q&512&&Z.SJ.stop());Z.j&512&&!(Z.j&128)&&g.lR(Z.SJ,Z.JG);Q=!Z.j;K!==Q&&Z.publish("autohideupdate",Q)}; g.VB=function(Z){g.x.call(this,{B:"button",nN:["ytp-large-play-button","ytp-button"],C:{"aria-label":"Play",title:"Play"},G:["{{largePlayButtonChildren}}"]});this.api=Z;this.Z(Z,"videodatachange",this.E$);this.Z(Z,"basechromeinitialized",this.eDf);Z=this.api.N();Z.X&&Wf&&(this.listen("click",this.hs,this),this.listen("touchstart",this.m8N,this));g.GK(Z)&&g.rd(this.element,"ytp-large-play-button-red-bg");this.api.createClientVe(this.element,this,28572);this.E$()}; g.k3=function(Z){var Q=Z.N(),z=["ytp-cued-thumbnail-overlay"];Q.K&&z.push("ytp-exp-contain-thumbnail");Q.V("web_player_show_frame_zero_when_cued")&&z.push("ytp-exp-frame0");g.x.call(this,{B:"div",nN:z,G:[{B:"div",D:"ytp-cued-thumbnail-overlay-image"}]});Q=this.Ru("ytp-cued-thumbnail-overlay");z=new g.VB(Z);g.W(this,z);z.zf(Q);this.W=new g.M5(this);g.W(this,this.W);this.api=Z;this.K=this.Ru("ytp-cued-thumbnail-overlay-image");this.S=z;this.j=new g.s8(this,250);g.W(this,this.j);this.Y=new g.E6(this.E$, 0,this);g.W(this,this.Y);this.E$();this.Z(Z,"appresize",this.pL);this.Z(Z,"presentingplayerstatechange",this.onStateChange);this.Z(Z,"ypcStateChanged",this.Oy7);JC(Z.N())&&this.Z(Z,"videoplayerreset",this.onReset)}; Byn=function(Z){if(!Z.api.V("web_player_show_frame_zero_when_cued"))return!1;var Q=Z.api.getCurrentTime();Z=Z.api.getPlayerStateObject();Z=g.t(Z,64)&&g.t(Z,1);return Q===0&&Z}; g.uM=function(Z){g.x.call(this,{B:"div",nN:["ytp-error"],C:{role:"alert"},G:[{B:"div",D:"ytp-error-content",G:[{B:"div",D:"ytp-error-icon-container",G:[{B:"svg",C:{fill:"#fff",viewBox:"0 0 48 48"},G:[{B:"path",C:{d:"M0 0h48v48H0V0z",fill:"none"}},{B:"path",C:{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"}}]}]},{B:"div",D:"ytp-error-content-wrap", G:[{B:"div",D:"ytp-error-content-wrap-reason",W7:"{{content}}"},{B:"div",D:"ytp-error-content-wrap-subreason",W7:"{{subreason}}"}]}]}]});this.api=Z;this.keys=[];this.S=!1;Z.createClientVe(this.element,this,216103);this.api.logVisibility(this.element,this.RT)}; g.x3=function(Z){Z=Z.split(WXd);for(var Q=[],z=0;z<Z.length;z+=3){var K=Z[z++].split("\n");Q.push(K[0]);for(var b=1;b<K.length;b++)Q.push({B:"br"}),Q.push(K[b]);z<Z.length&&Q.push({B:"a",C:{href:Z[z],target:Z[z+1]},W7:Z[z+2]})}return{B:"span",G:Q}}; Fi=function(Z,Q,z,K,b,q,r){K=K===void 0?!1:K;b=b===void 0?!1:b;r=r===void 0?!0:r;b||(b=Z.api.N().W);var D=Z.api.getVideoData();Q=g.fH(g.tv[Q]||"",K?{CPN:D.clientPlaybackNonce}:{}).split(/\$(BEGIN|END)_LINK/);K=[];q&&K.push({B:"h2",W7:q});K.push(Q[0]);r&&K.push({B:"br"});K.push({B:"a",C:{href:z,target:b?"_blank":null},D:"ytp-error-link",W7:Q[2]});Z.S=!0;K.push(Q[4]);return{B:"span",G:K}}; VQG=function(Z,Q){for(var z=Z.element.getElementsByTagName("a"),K=0;K<z.length;K++){var b=Z.Z(z[K],"click",Q);Z.keys.push(b)}}; k3f=function(Z){for(var Q=0;Q<Z.keys.length;Q++)Z.oy(Z.keys[Q]);Z.keys=[]}; uju=function(Z){g.x.call(this,{B:"div",D:"ytp-paid-content-overlay",C:{"aria-live":"assertive","aria-atomic":"true"}});this.J=Z;this.videoId=null;this.S=!1;this.innertubeCommand=this.gf=this.Y=null;var Q=Z.N();Z.V("enable_new_paid_product_placement")&&!g.xa(Q)?(this.j=new g.x({B:"a",D:"ytp-paid-content-overlay-link",C:{href:"{{href}}",target:"_blank"},G:[{B:"div",D:"ytp-paid-content-overlay-icon",W7:"{{icon}}"},{B:"div",D:"ytp-paid-content-overlay-text",W7:"{{text}}"},{B:"div",D:"ytp-paid-content-overlay-chevron", W7:"{{chevron}}"}]}),this.Z(this.j.element,"click",this.onClick)):this.j=new g.x({B:"div",nN:["ytp-button","ytp-paid-content-overlay-text"],W7:"{{text}}"});this.W=new g.s8(this.j,250,!1,100);g.W(this,this.j);this.j.zf(this.element);g.W(this,this.W);this.J.createServerVe(this.element,this);this.Z(Z,"videodatachange",this.onVideoDataChange);this.Z(Z,"presentingplayerstatechange",this.g$)}; tQn=function(Z,Q){var z=B6d(Q),K=Wtf(Q);if(!Q.Vr||!Z.J.Um())if(Z.Y||Z.J.V("enable_paid_content_overlay_bugfix")){if(Q.videoId&&Q.videoId!==Z.videoId){var b;(b=Z.Y)==null||g.Qn(b);!Z.J.V("enable_paid_content_overlay_bugfix")||z&&K?(Z.videoId=Q.videoId,Z.S=!!K,Z.S&&z&&x3n(Z,K,z,Q)):Z.S=!1}}else z&&K&&!Z.J.V("enable_paid_content_overlay_bugfix")&&x3n(Z,K,z,Q)}; x3n=function(Z,Q,z,K){Z.Y&&Z.Y.dispose();Z.Y=new g.E6(Z.oT,Q,Z);g.W(Z,Z.Y);K=Tz(K);Q=K==null?void 0:K.navigationEndpoint;var b;K=K==null?void 0:(b=K.icon)==null?void 0:b.iconType;var q;b=(q=g.V(Q,g.pi))==null?void 0:q.url;Z.J.setTrackingParams(Z.element,(Q==null?void 0:Q.clickTrackingParams)||null);Q&&!b?(Z.innertubeCommand=Q,b="#!"):Z.innertubeCommand=null;var r;Z.j.update({href:(r=b)!=null?r:"#",text:z,icon:K==="MONEY_HAND"?{B:"svg",C:{fill:"none",height:"100%",viewBox:"0 0 24 24",width:"100%"}, G:[{B:"path",C:{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:b||Z.innertubeCommand?g.hB():null})}; FXW=function(Z,Q){Z.Y&&(g.t(Q,8)&&Z.S?(Z.S=!1,Z.Gz(),Z.Y.start()):(g.t(Q,2)||g.t(Q,64))&&Z.videoId&&(Z.videoId=null))}; eW=function(Z){g.x.call(this,{B:"div",D:"ytp-spinner",G:[Z6(),{B:"div",D:"ytp-spinner-message",W7:"If playback doesn't begin shortly, try restarting your device."}]});this.api=Z;this.message=this.Ru("ytp-spinner-message");this.Y=new g.E6(this.show,500,this);g.W(this,this.Y);this.Z(Z,"presentingplayerstatechange",this.onStateChange);this.Z(Z,"playbackstalledatstart",this.j);this.Q3(Z.getPlayerStateObject())}; w4=function(Z){var Q=[{B:"div",nN:["ytp-unmute-icon"],G:[{B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},G:[{B:"path",KL:!0,D:"ytp-svg-fill",C:{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"}}]}]}, {B:"div",nN:["ytp-unmute-text"],W7:"Tap to unmute"}];Q.push({B:"div",nN:["ytp-unmute-box"],G:[]});g.CW.call(this,Z,{B:"button",nN:["ytp-unmute","ytp-popup","ytp-button","ytp-unmute-animated","ytp-unmute-shrink"],G:[{B:"div",D:"ytp-unmute-inner",G:Q}]},100);this.Y=this.clicked=!1;this.api=Z;this.api.createClientVe(this.element,this,51663);this.Z(Z,"onMutedAutoplayChange",this.onMutedAutoplayChange,this);this.Z(Z,"presentingplayerstatechange",this.FP);this.listen("click",this.onClick,this);Z=Z.isMutedByMutedAutoplay()&& !g.mj(this.api.N());this.Wh(Z);Z&&etW(this);this.S=Z}; etW=function(Z){Z.Y||(Z.Y=!0,Z.api.logVisibility(Z.element,!0))}; g.EU=function(Z){g.M5.call(this);var Q=this;this.api=Z;this.EY=!1;this.PS=null;this.sJ=!1;this.s6=null;this.yG=this.oO=!1;this.pk=this.jB=null;this.OB=NaN;this.I9=this.IS=!1;this.l6=0;this.hv=[];this.HG=!1;this.xQ={height:0,width:0};this.zs=480;this.iZg=["ytp-player-content","html5-endscreen","ytp-overlay"];this.cj={yS:!1};var z=Z.N(),K=Z.U$();this.xQ=Z.getPlayerSize();this.Y_=new g.E6(this.SM,0,this);g.W(this,this.Y_);z.disableOrganicUi||(this.hR=new g.k3(Z),g.W(this,this.hR),g.NZ(Z,this.hR.element, 4));if(wUM(this)){var b=new eW(Z);g.W(this,b);b=b.element;g.NZ(Z,b,4)}var q=Z.getVideoData();this.I6=new OaX(K,function(D){return Q.Qd(D)},q,z.Ju,!1); g.W(this,this.I6);this.I6.subscribe("autohideupdate",this.T8,this);if(!z.disablePaidContentOverlay){var r=new uju(Z);g.W(this,r);g.NZ(Z,r.element,4)}this.g0=new w4(Z);g.W(this,this.g0);g.NZ(this.api,this.g0.element,2);this.Dg=this.api.isMutedByMutedAutoplay();this.Z(Z,"onMutedAutoplayChange",this.onMutedAutoplayChange);this.u2=new g.E6(this.nV,200,this);g.W(this,this.u2);this.u6=q.videoId;this.Mi=new g.E6(function(){Q.l6=0},350); g.W(this,this.Mi);this.bF=new g.E6(function(){Q.I9||EJM(Q)},350,this); g.W(this,this.bF);q=Z.getRootNode();q.setAttribute("aria-label","YouTube Video Player");switch(z.color){case "white":g.rd(q,"ytp-color-white")}this.Z(Z,"appresize",this.pL);this.Z(Z,"presentingplayerstatechange",this.FP);this.Z(Z,"videodatachange",this.onVideoDataChange);this.Z(Z,"videoplayerreset",this.Chu);this.Z(Z,"autonavvisibility",function(){Q.Ej()}); this.Z(Z,"sizestylechange",function(){Q.Ej()}); this.Z(K,"click",this.Fvg,this);this.Z(K,"dblclick",this.cHp,this);this.Z(K,"mousedown",this.uRr,this);z.F7&&(this.Z(K,"gesturechange",this.rHG,this),this.Z(K,"gestureend",this.vLF,this));this.XQ=[K.QY];this.hR&&this.XQ.push(this.hR.element);b&&this.XQ.push(b);this.api.V("web_player_fullscreen_double_click_ve")&&(this.api.createClientVe(K.element,this,247482),this.api.logVisibility(K.element,!0))}; lKf=function(Z,Q){if(!Q)return!1;var z=Z.api.ES();if(z.Yo()&&(z=z.OA())&&g.bG(z,Q))return z.controls;for(z=0;z<Z.XQ.length;z++)if(g.bG(Z.XQ[z],Q))return!1;z=g.n(Z.iZg);for(var K=z.next();!K.done;K=z.next())if(g.q7(Q,K.value))return!1;return Q===Z.api.getRootNode()?!1:!0}; s1f=function(Z){var Q=Z.api.getPresentingPlayerType()===2&&(Z.api.U$().cR||Z.api.N().disableOrganicUi||!1)&&Z.api.N().j&&Wf&&lM>=11;Z=Z.api.N().X&&Wf;return!(!Q&&!Z)}; sk=function(Z,Q){return!Z.api.isInline()&&!lKf(Z,ys(Q))&&g.Is(Q)}; EJM=function(Z){Z.I6.tP();if(Z.oO&&Z.yG)Z.yG=!1;else if(!Z.api.N().Vp&&!Z.ge()){var Q=Z.api.getPlayerStateObject();g.t(Q,2)&&g.nW(Z.api)||Z.dg(Q);!Z.api.N().F7||Q.isCued()||g.t(Q,1024)?Z.nV():Z.u2.isActive()?(Z.Zg(),Z.u2.stop()):Z.u2.start()}}; ZCG=function(Z,Q){var z;if((z=Z.api.getVideoData())==null?0:z.mutedAutoplay){var K,b;if((K=Q.target)==null?0:(b=K.className)==null?0:b.includes("ytp-info-panel"))return!1}return g.Is(Q)&&Z.api.isMutedByMutedAutoplay()?(Z.api.unMute(),Z.api.getPresentingPlayerType()===2&&Z.api.playVideo(),Q=Z.api.getPlayerStateObject(),!g.t(Q,4)||g.t(Q,8)||g.t(Q,2)||Z.nV(),!0):!1}; Q1G=function(Z,Q,z){Z.api.isFullscreen()?z<1-Q&&Z.api.toggleFullscreen():z>1+Q&&Z.api.toggleFullscreen()}; wUM=function(Z){var Q=VC()&&BX()>=67&&!Z.api.N().X;Z=Z.api.N().disableOrganicUi;return!g.WX("tizen")&&!e2&&!Q&&!Z}; Zs=function(Z,Q){Q=Q===void 0?2:Q;g.rV.call(this);this.api=Z;this.Y=null;this.Bo=new NW(this);g.W(this,this.Bo);this.j=Kpn;this.Bo.Z(this.api,"presentingplayerstatechange",this.Wi);this.Y=this.Bo.Z(this.api,"progresssync",this.E8);this.sK=Q;this.sK===1&&this.E8()}; g.Qm=function(Z){g.x.call(this,{B:"div",G:[{B:"div",D:"ytp-bezel-text-wrapper",G:[{B:"div",D:"ytp-bezel-text",W7:"{{title}}"}]},{B:"div",D:"ytp-bezel",C:{role:"status","aria-label":"{{label}}"},G:[{B:"div",D:"ytp-bezel-icon",W7:"{{icon}}"}]}]});this.J=Z;this.j=new g.E6(this.show,10,this);Z=this.J.V("delhi_modern_web_player")?1E3:500;this.Y=new g.E6(this.hide,Z,this);g.W(this,this.j);g.W(this,this.Y);this.hide()}; Kb=function(Z,Q,z){if(Q<=0){z=Gy();Q="muted";var K=0}else z=z?{B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},G:[{B:"path",KL:!0,C:{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"}}]}:{B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},G:[{B:"path",KL:!0,C:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z M19,11.29 C21.89,12.15 24,14.83 24,18 C24,21.17 21.89,23.85 19,24.71 L19,26.77 C23.01,25.86 26,22.28 26,18 C26,13.72 23.01,10.14 19,9.23 L19,11.29 Z", fill:"#fff"}}]},K=Math.floor(Q),Q=K+"volume";zh(Z,z,Q,K+"%")}; zi0=function(Z,Q){Q=Q?{B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},G:[{B:"path",KL:!0,D:"ytp-svg-fill",C:{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"}}]}:Le4();var z=Z.J.getPlaybackRate(),K=g.fH("Speed is $RATE",{RATE:String(z)});zh(Z,Q,K,z+"x")}; Kvu=function(Z,Q){Q=Q?"Subtitles/closed captions on":"Subtitles/closed captions off";zh(Z,sLn(),Q)}; zh=function(Z,Q,z,K){K=K===void 0?"":K;Z.updateValue("label",z===void 0?"":z);Z.updateValue("icon",Q);g.Qn(Z.Y);Z.j.start();Z.updateValue("title",K);g.vC(Z.element,"ytp-bezel-text-hide",!K)}; bCr=function(Z,Q){g.x.call(this,{B:"button",nN:["ytp-button","ytp-cards-button"],C:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.mj(Z.N()))},G:[{B:"span",D:"ytp-cards-button-icon-default",G:[{B:"div",D:"ytp-cards-button-icon",G:[Z.N().V("player_new_info_card_format")?mm4():{B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},G:[{B:"path",KL:!0,D:"ytp-svg-fill",C:{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"}}]}]}, {B:"div",D:"ytp-cards-button-title",W7:"Info"}]},{B:"span",D:"ytp-cards-button-icon-shopping",G:[{B:"div",D:"ytp-cards-button-icon",G:[{B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},G:[{B:"path",D:"ytp-svg-shadow",C:{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"}},{B:"path",D:"ytp-svg-fill",C:{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"}},{B:"path",D:"ytp-svg-shadow-fill",C:{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"}}]}]},{B:"div", D:"ytp-cards-button-title",W7:"Shopping"}]}]});this.J=Z;this.S=Q;this.Y=null;this.j=new g.s8(this,250,!0,100);g.W(this,this.j);g.vC(this.S,"ytp-show-cards-title",g.mj(Z.N()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.FZu);this.gg(!0)}; qOr=function(Z,Q){g.x.call(this,{B:"div",D:"ytp-cards-teaser",G:[{B:"div",D:"ytp-cards-teaser-box"},{B:"div",D:"ytp-cards-teaser-text",G:Z.N().V("player_new_info_card_format")?[{B:"button",D:"ytp-cards-teaser-info-icon",C:{"aria-label":"Show cards","aria-haspopup":"true"},G:[mm4()]},{B:"span",D:"ytp-cards-teaser-label",W7:"{{text}}"},{B:"button",D:"ytp-cards-teaser-close-button",C:{"aria-label":"Close"},G:[g.Li()]}]:[{B:"span",D:"ytp-cards-teaser-label",W7:"{{text}}"}]}]});var z=this;this.J=Z;this.vx= Q;this.W=new g.s8(this,250,!1,250);this.Y=null;this.X=new g.E6(this.ZLr,300,this);this.T=new g.E6(this.Dbp,2E3,this);this.K=[];this.j=null;this.U=new g.E6(function(){z.element.style.margin="0"},250); this.onClickCommand=this.S=null;g.W(this,this.W);g.W(this,this.X);g.W(this,this.T);g.W(this,this.U);Z.N().V("player_new_info_card_format")?(g.rd(Z.getRootNode(),"ytp-cards-teaser-dismissible"),this.Z(this.Ru("ytp-cards-teaser-close-button"),"click",this.Hi),this.Z(this.Ru("ytp-cards-teaser-info-icon"),"click",this.GX),this.Z(this.Ru("ytp-cards-teaser-label"),"click",this.GX)):this.listen("click",this.GX);this.Z(Q.element,"mouseover",this.hK);this.Z(Q.element,"mouseout",this.Gk);this.Z(Z,"cardsteasershow", this.UR7);this.Z(Z,"cardsteaserhide",this.oT);this.Z(Z,"cardstatechange",this.zC);this.Z(Z,"presentingplayerstatechange",this.zC);this.Z(Z,"appresize",this.TL);this.Z(Z,"onShowControls",this.TL);this.Z(Z,"onHideControls",this.ez);this.listen("mouseenter",this.Pi)}; rzG=function(Z){g.x.call(this,{B:"button",nN:[bj.BUTTON,bj.TITLE_NOTIFICATIONS],C:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},G:[{B:"div",D:bj.TITLE_NOTIFICATIONS_ON,C:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},G:[g.mc()]},{B:"div",D:bj.TITLE_NOTIFICATIONS_OFF,C:{title:"Get notified about every new video","aria-label":"Notify subscriptions"},G:[{B:"svg",C:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},G:[{B:"path",C:{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=Z;this.Y=!1;Z.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Get notified about every new video")}; Az9=function(Z,Q){Z.Y=Q;Z.element.classList.toggle(bj.NOTIFICATIONS_ENABLED,Z.Y);var z=Z.api.getVideoData();z?(Q=Q?z.g5:z.SY)?(Z=Z.api.Na())?xp(Z,Q):g.Rm(Error("No innertube service available when updating notification preferences.")):g.Rm(Error("No update preferences command available.")):g.Rm(Error("No video data when updating notification preferences."))}; D$f=function(Z,Q,z){var K=K===void 0?800:K;var b=b===void 0?600:b;var q=document.location.protocol;Z=nvW(q+"//"+Z+"/signin?context=popup","feature",Q,"next",q+"//"+location.hostname+"/post_login");j1n(Z,z,K,b)}; j1n=function(Z,Q,z,K){z=z===void 0?800:z;K=K===void 0?600:K;if(Z=g.M0(window,Z,"loginPopup","width="+z+",height="+K+",resizable=yes,scrollbars=yes"))hKf(function(){Q()}),Z.moveTo((screen.width-z)/2,(screen.height-K)/2)}; g.qC=function(Z,Q,z,K,b,q,r,D,v,Y,X,S){Z=Z.charAt(0)+Z.substring(1).toLowerCase();z=z.charAt(0)+z.substring(1).toLowerCase();if(Q==="0"||Q==="-1")Q=null;if(K==="0"||K==="-1")K=null;var T=X.N(),f=T.userDisplayName&&g.GK(T);g.x.call(this,{B:"div",nN:["ytp-button","ytp-sb"],G:[{B:"div",D:"ytp-sb-subscribe",C:f?{title:g.fH("Subscribe as $USER_NAME",{USER_NAME:T.userDisplayName}),"aria-label":"Subscribe to channel","data-tooltip-image":w5(T),"data-tooltip-opaque":String(g.mj(T)),tabindex:"0",role:"button"}: {"aria-label":"Subscribe to channel"},G:[{B:"div",D:"ytp-sb-text",G:[{B:"div",D:"ytp-sb-icon"},Z]},Q?{B:"div",D:"ytp-sb-count",W7:Q}:""]},{B:"div",D:"ytp-sb-unsubscribe",C:f?{title:g.fH("Subscribed as $USER_NAME",{USER_NAME:T.userDisplayName}),"aria-label":"Unsubscribe to channel","data-tooltip-image":w5(T),"data-tooltip-opaque":String(g.mj(T)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe to channel"},G:[{B:"div",D:"ytp-sb-text",G:[{B:"div",D:"ytp-sb-icon"},z]},K?{B:"div",D:"ytp-sb-count", W7:K}:""]}],C:{"aria-live":"polite"}});var h=this;this.channelId=r;this.J=X;this.S=S;var m=this.Ru("ytp-sb-subscribe"),J=this.Ru("ytp-sb-unsubscribe");q&&g.rd(this.element,"ytp-sb-classic");if(b){D?this.Y():this.j();var d=function(){if(T.P7){var R=h.channelId;if(v||Y){var U={c:R};var B;g.NP.isInitialized()&&(B=f0M(U));U=B||"";if(B=X.getVideoData())if(B=B.subscribeCommand){var e=X.Na();e?(xp(e,B,{botguardResponse:U,feature:v}),X.hG("SUBSCRIBE",R)):g.Rm(Error("No innertube service available when updating subscriptions."))}else g.Rm(Error("No subscribe command in videoData.")); else g.Rm(Error("No video data available when updating subscription."))}J.focus();J.removeAttribute("aria-hidden");m.setAttribute("aria-hidden","true")}else D$f(g.O_(h.J.N()),"sb_button",h.W)},G=function(){var R=h.channelId; if(v||Y){var U=X.getVideoData();xp(X.Na(),U.unsubscribeCommand,{feature:v});X.hG("UNSUBSCRIBE",R)}m.focus();m.removeAttribute("aria-hidden");J.setAttribute("aria-hidden","true")}; this.Z(m,"click",d);this.Z(J,"click",G);this.Z(m,"keypress",function(R){R.keyCode===13&&d(R)}); this.Z(J,"keypress",function(R){R.keyCode===13&&G(R)}); this.Z(X,"SUBSCRIBE",this.Y);this.Z(X,"UNSUBSCRIBE",this.j);this.S&&f&&(Hdu(X),fW(X,m,this),fW(X,J,this))}else g.rd(m,"ytp-sb-disabled"),g.rd(J,"ytp-sb-disabled")}; YOu=function(Z){g.x.call(this,{B:"div",D:"ytp-title-channel",G:[{B:"div",D:"ytp-title-beacon"},{B:"a",D:"ytp-title-channel-logo",C:{href:"{{channelLink}}",target:Z.N().U,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{B:"div",D:"ytp-title-expanded-overlay",C:{"aria-hidden":"{{flyoutUnfocusable}}"},G:[{B:"div",D:"ytp-title-expanded-heading",G:[{B:"div",D:"ytp-title-expanded-title",G:[{B:"a",W7:"{{expandedTitle}}",C:{href:"{{channelTitleLink}}",target:Z.N().U,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{B:"div",D:"ytp-title-expanded-subtitle",W7:"{{expandedSubtitle}}",C:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var Q=this;this.api=Z;this.channel=this.Ru("ytp-title-channel");this.j=this.Ru("ytp-title-channel-logo");this.channelName=this.Ru("ytp-title-expanded-title");this.K=this.Ru("ytp-title-expanded-overlay");this.S=this.Y=this.subscribeButton=null;this.W=!1;Z.createClientVe(this.j,this,36925);Z.createClientVe(this.channelName,this, 37220);g.mj(this.api.N())&&v8G(this);this.Z(Z,"videodatachange",this.E$);this.Z(Z,"videoplayerreset",this.E$);this.Z(this.channelName,"click",function(z){Q.api.logClick(Q.channelName);g.M0(window,g84(Q));z.preventDefault()}); this.Z(this.j,"click",this.UT$);this.E$()}; Xpd=function(Z){if(!Z.api.N().Sp){var Q=Z.api.getVideoData(),z=new g.qC("Subscribe",null,"Subscribed",null,!0,!1,Q.n6,Q.subscribed,"channel_avatar",null,Z.api,!0);Z.api.createServerVe(z.element,Z);var K;Z.api.setTrackingParams(z.element,((K=Q.subscribeButtonRenderer)==null?void 0:K.trackingParams)||null);Z.Z(z.element,"click",function(){Z.api.logClick(z.element)}); Z.subscribeButton=z;g.W(Z,Z.subscribeButton);Z.subscribeButton.zf(Z.K);Z.subscribeButton.hide();var b=new rzG(Z.api);Z.Y=b;g.W(Z,b);b.zf(Z.K);b.hide();Z.Z(Z.api,"SUBSCRIBE",function(){Q.TT&&(b.show(),Z.api.logVisibility(b.element,!0))}); Z.Z(Z.api,"UNSUBSCRIBE",function(){Q.TT&&(b.hide(),Z.api.logVisibility(b.element,!1),Az9(b,!1))})}}; v8G=function(Z){var Q=Z.api.N();Xpd(Z);Z.updateValue("flyoutUnfocusable","true");Z.updateValue("channelTitleFocusable","-1");Z.updateValue("shouldHideExpandedTitleForA11y","true");Z.updateValue("shouldHideExpandedSubtitleForA11y","true");Q.j||Q.Du||(Z.Z(Z.channel,"mouseenter",Z.OT),Z.Z(Z.channel,"mouseleave",Z.T3),Z.Z(Z.channel,"focusin",Z.OT),Z.Z(Z.channel,"focusout",function(z){Z.channel.contains(z.relatedTarget)||Z.T3()})); Z.S=new g.E6(function(){Z.isExpanded()&&(Z.api.logVisibility(Z.channelName,!1),Z.subscribeButton&&(Z.subscribeButton.hide(),Z.api.logVisibility(Z.subscribeButton.element,!1)),Z.Y&&(Z.Y.hide(),Z.api.logVisibility(Z.Y.element,!1)),Z.channel.classList.remove("ytp-title-expanded"),Z.channel.classList.add("ytp-title-show-collapsed"))},500); g.W(Z,Z.S);Z.Z(Z.channel,SOW,function(){$$W(Z)}); Z.Z(Z.api,"onHideControls",Z.Nk);Z.Z(Z.api,"appresize",Z.Nk);Z.Z(Z.api,"fullscreentoggled",Z.Nk)}; $$W=function(Z){Z.channel.classList.remove("ytp-title-show-collapsed");Z.channel.classList.remove("ytp-title-show-expanded")}; T3d=function(Z){var Q=Z.api.getPlayerSize();return g.mj(Z.api.N())&&Q.width>=524}; g84=function(Z){var Q=Z.api.N(),z=Z.api.getVideoData(),K=g.E_(Q)+z.F7;g.EH(z)&&(K="https://music.youtube.com"+z.F7);if(!g.mj(Q))return K;Q={};g.br(Z.api,"addEmbedsConversionTrackingParams",[Q]);return g.BK(K,Q)}; r$=function(Z){var Q=g.oT({"aria-haspopup":"true"});g.Oq.call(this,Q,Z);this.listen("keydown",this.Y)}; A3=function(Z,Q){Z.element.setAttribute("aria-haspopup",String(Q))}; fCG=function(Z,Q){g.x.call(this,{B:"div",D:"ytp-user-info-panel",C:{"aria-label":"User info"},G:Z.N().P7&&!Z.V("embeds_web_always_enable_signed_out_state")?[{B:"div",D:"ytp-user-info-panel-icon",W7:"{{icon}}"},{B:"div",D:"ytp-user-info-panel-content",G:[{B:"div",D:"ytp-user-info-panel-info",C:{tabIndex:"{{userInfoFocusable}}",role:"text"},W7:"{{watchingAsUsername}}"},{B:"div",D:"ytp-user-info-panel-info",C:{tabIndex:"{{userInfoFocusable2}}",role:"text"},W7:"{{watchingAsEmail}}"}]}]:[{B:"div",D:"ytp-user-info-panel-icon", W7:"{{icon}}"},{B:"div",D:"ytp-user-info-panel-content",G:[{B:"div",G:[{B:"text",C:{tabIndex:"{{userInfoFocusable}}"},W7:"Signed out"}]},{B:"div",D:"ytp-user-info-panel-login",G:[{B:"a",C:{tabIndex:"{{userInfoFocusable2}}",role:"button"},W7:Z.N().Sp?"":"Sign in on YouTube"}]}]}]});this.fN=Z;this.Y=Q;Z.N().P7||Z.N().Sp||this.Z(this.Ru("ytp-user-info-panel-login"),"click",this.Bi);this.closeButton=new g.x({B:"button",nN:["ytp-collapse","ytp-button"],C:{title:"Close"},G:[g.NE()]});this.closeButton.zf(this.element); g.W(this,this.closeButton);this.Z(window,"blur",this.hide);this.Z(document,"click",this.d$);this.E$()}; LvM=function(Z,Q,z){g.UB.call(this,Z);this.Kd=Q;this.XR=z;this.getVideoUrl=new r$(6);this.w6=new r$(5);this.Y6=new r$(4);this.gy=new r$(3);this.Mf=new g.Oq(g.oT({href:"{{href}}",target:this.J.N().U},void 0,!0),2,"Troubleshoot playback issue");this.showVideoInfo=new g.Oq(g.oT(),1,"Stats for nerds");this.YF=new g.gV({B:"div",nN:["ytp-copytext","ytp-no-contextmenu"],C:{draggable:"false",tabindex:"1"},W7:"{{text}}"});this.Ta=new Mv(this.J,this.YF);this.yO=this.VM=null;g.mj(this.J.N())&&(this.closeButton= new g.x({B:"button",nN:["ytp-collapse","ytp-button"],C:{title:"Close"},G:[g.NE()]}),g.W(this,this.closeButton),this.closeButton.zf(this.element),this.closeButton.listen("click",this.sG,this));g.mj(this.J.N())&&(this.b7=new g.Oq(g.oT(),8,"Account"),g.W(this,this.b7),this.Mb(this.b7,!0),this.b7.listen("click",this.NXI,this),Z.createClientVe(this.b7.element,this.b7,137682));this.J.N().uP&&(this.jy=new wR("Loop",7),g.W(this,this.jy),this.Mb(this.jy,!0),this.jy.listen("click",this.kzG,this),Z.createClientVe(this.jy.element, this.jy,28661));g.W(this,this.getVideoUrl);this.Mb(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.Vpu,this);Z.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.W(this,this.w6);this.Mb(this.w6,!0);this.w6.listen("click",this.ndY,this);Z.createClientVe(this.w6.element,this.w6,28660);g.W(this,this.Y6);this.Mb(this.Y6,!0);this.Y6.listen("click",this.LZf,this);Z.createClientVe(this.Y6.element,this.Y6,28658);g.W(this,this.gy);this.Mb(this.gy,!0);this.gy.listen("click",this.zhG, this);g.W(this,this.Mf);this.Mb(this.Mf,!0);this.Mf.listen("click",this.zoJ,this);g.W(this,this.showVideoInfo);this.Mb(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.sWf,this);g.W(this,this.YF);this.YF.listen("click",this.jyf,this);g.W(this,this.Ta);Q=document.queryCommandSupported&&document.queryCommandSupported("copy");udG("Chromium")>=43&&(Q=!0);udG("Firefox")<=40&&(Q=!1);Q&&(this.VM=new g.x({B:"textarea",D:"ytp-html5-clipboard",C:{readonly:"",tabindex:"-1"}}),g.W(this,this.VM), this.VM.zf(this.element));var K;(K=this.b7)==null||K.setIcon(dmd());var b;(b=this.jy)==null||b.setIcon({B:"svg",C:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},G:[{B:"path",C:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});this.gy.setIcon({B:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},G:[{B:"path",C:{"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.Mf.setIcon(nkf());this.showVideoInfo.setIcon(chn());this.Z(Z,"onLoopChange",this.onLoopChange);this.Z(Z,"videodatachange",this.onVideoDataChange);hif(this);this.dK(this.J.getVideoData())}; jb=function(Z,Q){var z=!1;if(Z.VM){var K=Z.VM.element;K.value=Q;K.select();try{z=document.execCommand("copy")}catch(b){}}z?Z.Kd.oT():(Z.YF.Wo(Q,"text"),g.By(Z.Kd,Z.Ta),QZ(Z.YF.element),Z.VM&&(Z.VM=null,hif(Z)));return z}; hif=function(Z){var Q=!!Z.VM;g.Uq(Z.gy,Q?"Copy debug info":"Get debug info");A3(Z.gy,!Q);g.Uq(Z.Y6,Q?"Copy embed code":"Get embed code");A3(Z.Y6,!Q);g.Uq(Z.getVideoUrl,Q?"Copy video URL":"Get video URL");A3(Z.getVideoUrl,!Q);g.Uq(Z.w6,Q?"Copy video URL at current time":"Get video URL at current time");A3(Z.w6,!Q);Z.Y6.setIcon(Q?fWM():null);Z.getVideoUrl.setIcon(Q?ni():null);Z.w6.setIcon(Q?ni():null)}; n8W=function(Z){return g.mj(Z.J.N())?Z.b7:Z.jy}; m$9=function(Z,Q){g.o_.call(this,Z);this.XR=Q;this.W=new g.M5(this);this.SJ=new g.E6(this.iyB,1E3,this);this.P7=this.S=null;g.W(this,this.W);g.W(this,this.SJ);Z.createClientVe(this.element,this,28656);g.rd(this.element,"ytp-contextmenu");czu(this);this.hide()}; czu=function(Z){g.ib(Z.W);var Q=Z.J.N();Q.playerStyle==="gvn"||Q.j||Q.Du||(Q=Z.J.U$(),Z.W.Z(Q,"contextmenu",Z.Ie$),Z.W.Z(Q,"touchstart",Z.JT,null,!0),Z.W.Z(Q,"touchmove",Z.XW,null,!0),Z.W.Z(Q,"touchend",Z.XW,null,!0))}; ICd=function(Z){Z.J.isFullscreen()?g.NZ(Z.J,Z.element,10):Z.zf(pW(Z).body)}; Ds=function(Z,Q,z){z=z===void 0?240:z;g.x.call(this,{B:"button",nN:["ytp-button","ytp-copylink-button"],C:{title:"{{title-attr}}","data-tooltip-opaque":String(g.mj(Z.N()))},G:[{B:"div",D:"ytp-copylink-icon",W7:"{{icon}}"},{B:"div",D:"ytp-copylink-title",W7:"Copy link",C:{"aria-hidden":"true"}}]});this.api=Z;this.Y=Q;this.j=z;this.visible=!1;this.tooltip=this.Y.FJ();Q=Z.N();this.tooltip.element.setAttribute("aria-live","polite");g.vC(this.element,"ytp-show-copylink-title",g.mj(Q));Z.createClientVe(this.element, this,86570);this.listen("click",this.onClick);this.Z(Z,"videodatachange",this.E$);this.Z(Z,"videoplayerreset",this.E$);this.Z(Z,"appresize",this.E$);this.E$();this.addOnDisposeCallback(g.Te(this.tooltip,this.element))}; Jz0=function(Z){var Q=Z.api.N(),z=Z.api.getVideoData(),K=Z.api.U$().getPlayerSize().width;Q=Q.S;return!!z.videoId&&K>=Z.j&&z.Zb&&!g.ey(z)&&!Z.api.isEmbedsShortsMode()&&!Q}; yzn=function(Z){Z.updateValue("icon",Ty());if(Z.api.N().j)Z.tooltip.Bw(Z.element,"Link copied to clipboard");else{Z.updateValue("title-attr","Link copied to clipboard");Z.tooltip.Bv();Z.tooltip.Bw(Z.element);var Q=Z.listen("mouseleave",function(){Z.oy(Q);Z.E$();Z.tooltip.E9()})}}; d$9=function(Z,Q){return g.C(function(z){if(z.Y==1)return g.nX(z,2),g.P(z,navigator.clipboard.writeText(Q),4);if(z.Y!=2)return z.return(!0);g.I0(z);var K=z.return,b=!1,q=g.lY("TEXTAREA");q.value=Q;q.setAttribute("readonly","");var r=Z.api.getRootNode();r.appendChild(q);if(th){var D=window.getSelection();D.removeAllRanges();var v=document.createRange();v.selectNodeContents(q);D.addRange(v);q.setSelectionRange(0,Q.length)}else q.select();try{b=document.execCommand("copy")}catch(Y){}r.removeChild(q); return K.call(z,b)})}; vR=function(Z){g.x.call(this,{B:"div",D:"ytp-doubletap-ui-legacy",G:[{B:"div",D:"ytp-doubletap-fast-forward-ve"},{B:"div",D:"ytp-doubletap-rewind-ve"},{B:"div",D:"ytp-doubletap-static-circle",G:[{B:"div",D:"ytp-doubletap-ripple"}]},{B:"div",D:"ytp-doubletap-overlay-a11y"},{B:"div",D:"ytp-doubletap-seek-info-container",G:[{B:"div",D:"ytp-doubletap-arrows-container",G:[{B:"span",D:"ytp-doubletap-base-arrow"},{B:"span",D:"ytp-doubletap-base-arrow"},{B:"span",D:"ytp-doubletap-base-arrow"}]},{B:"div", D:"ytp-doubletap-tooltip",G:[{B:"div",D:"ytp-seek-icon-text-container",G:[{B:"div",D:"ytp-seek-icon",W7:"{{seekIcon}}"},{B:"div",D:"ytp-chapter-seek-text-legacy",W7:"{{seekText}}"}]},{B:"div",D:"ytp-doubletap-tooltip-label",W7:"{{seekTime}}"}]}]}]});this.J=Z;this.W=new g.E6(this.show,10,this);this.j=new g.E6(this.hide,700,this);this.T=this.S=0;this.jJ=this.K=!1;this.Y=this.Ru("ytp-doubletap-static-circle");g.W(this,this.W);g.W(this,this.j);this.hide();this.X=this.Ru("ytp-doubletap-fast-forward-ve"); this.U=this.Ru("ytp-doubletap-rewind-ve");this.J.createClientVe(this.X,this,28240);this.J.createClientVe(this.U,this,28239);this.J.logVisibility(this.X,!0);this.J.logVisibility(this.U,!0);this.K=Z.V("web_show_cumulative_seek_time");this.jJ=Z.V("web_center_static_circles")}; g$=function(Z,Q,z,K){if(K=K===void 0?null:K){var b=Q===-1?Z.U.visualElement:Z.X.visualElement;K={seekData:K};var q=g.Jy();q&&g.lW(Eu)(void 0,q,b,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",K,void 0)}Z.S=Q===Z.T?Z.S+z:z;Z.T=Q;b=Z.J.U$().getPlayerSize();Z.K?Z.j.stop():g.Qn(Z.j);Z.W.start();Z.element.setAttribute("data-side",Q===-1?"back":"forward");g.rd(Z.element,"ytp-time-seeking");Z.Y.style.width="110px";Z.Y.style.height="110px";K=b.width*.1-15;Q===1?Z.jJ?(Z.Y.style.right=K+"px",Z.Y.style.left=""): (Z.Y.style.right="",Z.Y.style.left=b.width*.8-30+"px"):Q===-1&&(Z.jJ?(Z.Y.style.right="",Z.Y.style.left=K+"px"):(Z.Y.style.right="",Z.Y.style.left=b.width*.1-15+"px"));Z.Y.style.top=b.height*.5+15+"px";N30(Z,Z.K?Z.S:z)}; G_f=function(Z,Q,z,K){K=K===void 0?null:K;g.Qn(Z.j);Z.W.start();switch(Q){case -1:Q="back";break;case 1:Q="forward";break;default:Q=""}Z.element.setAttribute("data-side",Q);Z.Y.style.width="0";Z.Y.style.height="0";g.rd(Z.element,"ytp-chapter-seek");Z.updateValue("seekText",z);Z.updateValue("seekTime","");z=Z.Ru("ytp-seek-icon");if(K){a:if(K){switch(K){case "PREMIUM_STANDALONE":K={B:"svg",C:{height:"24px",version:"1.1",viewBox:"-2 -2 24 24",width:"24px"},G:[{B:"path",C:{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"}},{B:"path",C:{d:"M 7.88 11.42 L 7.88 15.71 L 5.37 15.71 L 5.37 3.52 L 10.12 3.52 C 11.04 3.52 11.84 3.69 12.54 4.02 C 13.23 4.36 13.76 4.83 14.14 5.45 C 14.51 6.07 14.70 6.77 14.70 7.56 C 14.70 8.75 14.29 9.69 13.48 10.38 C 12.66 11.07 11.53 11.42 10.08 11.42 Z M 7.88 9.38 L 10.12 9.38 C 10.79 9.38 11.30 9.23 11.64 8.91 C 11.99 8.60 12.17 8.16 12.17 7.57 C 12.17 6.98 11.99 6.5 11.64 6.12 C 11.29 5.76 10.80 5.57 10.18 5.56 L 7.88 5.56 Z M 7.88 9.38 ",fill:"#fff","fill-rule":"nonzero"}}]}; break a;case "PREMIUM_STANDALONE_CAIRO":K={B:"svg",C:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},G:[{B:"rect",C:{fill:"white",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{B:"rect",C:{fill:"url(#ytp-premium-standalone-gradient)",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{B:"path",C:{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"}},{B:"defs",G:[{B:"linearGradient",C:{gradientUnits:"userSpaceOnUse",id:"ytp-premium-standalone-gradient",x1:"2",x2:"22",y1:"22",y2:"2"},G:[{B:"stop",C:{offset:"0.3","stop-color":"#E1002D"}},{B:"stop",C:{offset:"0.9","stop-color":"#E01378"}}]}]}]};break a}K=void 0}else K=null;Z.updateValue("seekIcon",K);z.style.display="inline-block"}else z.style.display="none"}; N30=function(Z,Q){Q=g.fH("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:Q.toString()});Z.updateValue("seekTime",Q)}; iCf=function(Z){Hy.call(this,Z,!1,!0);this.JG=[];this.sA=[];this.X=!0;this.badge.element.classList.add("ytp-featured-product");this.KN=new g.x({B:"div",D:"ytp-featured-product-open-in-new"});g.W(this,this.KN);this.countdownTimer=new g.x({B:"text",D:"ytp-featured-product-countdown",W7:"{{content}}"});this.countdownTimer.hide();g.W(this,this.countdownTimer);this.j=new g.x({B:"div",D:"ytp-featured-product-trending",G:[{B:"div",D:"ytp-featured-product-trending-icon"},{B:"text",D:"ytp-featured-product-trending-text", W7:"{{trendingOffer}}"}]});this.j.hide();g.W(this,this.j);this.overflowButton=new g.x({B:"button",nN:["ytp-featured-product-overflow-icon","ytp-button"],C:{"aria-haspopup":"true"}});this.overflowButton.hide();g.W(this,this.overflowButton);this.T=new g.x({B:"text",D:"ytp-featured-product-exclusive-countdown",W7:"{{content}}",C:{id:"exclusiveCountdown","aria-hidden":"true"}});this.T.hide();g.W(this,this.T);this.K=new g.x({B:"div",D:"ytp-featured-product-exclusive-container",C:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"}, G:[{B:"div",D:"ytp-featured-product-exclusive-badge-container",G:[{B:"div",D:"ytp-featured-product-exclusive-badge",G:[{B:"text",D:"ytp-featured-product-exclusive-badge-text",W7:"{{exclusive}}",C:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.T]});this.K.hide();g.W(this,this.K);this.banner=new g.x({B:"a",D:"ytp-featured-product-container",G:[{B:"div",D:"ytp-featured-product-thumbnail",G:[{B:"img",C:{src:"{{thumbnail}}"}},this.KN]},{B:"div",D:"ytp-featured-product-details",G:[{B:"text",D:"ytp-featured-product-title", W7:"{{title}}"},this.J.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{B:"div",D:"ytp-featured-product-price-container",C:{"aria-label":"{{priceA11yText}}"},G:[{B:"text",D:"ytp-featured-product-price-when-promotion-text-enabled",W7:"{{price}}",C:{"aria-hidden":"true"}},{B:"text",D:"ytp-featured-product-promotion-text",W7:"{{promotionText}}",C:{"aria-hidden":"true"}}]}:{B:"div",C:{"aria-label":"{{priceA11yText}}"},G:[{B:"text",D:"ytp-featured-product-price",W7:"{{price}}", C:{"aria-hidden":"true"}},{B:"text",D:"ytp-featured-product-sales-original-price",W7:"{{salesOriginalPrice}}",C:{"aria-hidden":"true"}},{B:"text",D:"ytp-featured-product-price-drop-reference-price",W7:"{{priceDropReferencePrice}}",C:{"aria-hidden":"true"}}]},this.J.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{B:"div",D:"ytp-featured-product-when-promotion-text-enabled",G:[{B:"text",D:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled",W7:"{{affiliateDisclaimer}}"}, this.j,{B:"text",D:"ytp-featured-product-vendor-when-promotion-text-enabled",W7:"{{vendor}}"}]}:{B:"div",G:[{B:"text",D:"ytp-featured-product-affiliate-disclaimer",W7:"{{affiliateDisclaimer}}"},this.J.V("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.K:null,this.j,{B:"text",D:"ytp-featured-product-vendor",W7:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.W(this,this.banner);this.banner.zf(this.S.element);this.Z(this.J,g.r7("featured_product"),this.DnY);this.Z(this.J, g.AH("featured_product"),this.DS);this.Z(this.J,"videodatachange",this.onVideoDataChange);this.Z(this.overflowButton.element,"click",this.OP);this.Z(Z,"featuredproductdismissed",this.AO)}; aCx=function(Z){var Q,z;Z=(Q=Z.Y)==null?void 0:(z=Q.bannerData)==null?void 0:z.itemData;var K,b,q;return(Z==null||!Z.affiliateDisclaimer)&&(Z==null?0:(K=Z.exclusivesData)==null?0:K.exclusiveOfferLabelText)&&(Z==null?0:(b=Z.exclusivesData)==null?0:b.expirationTimestampMs)&&(Z==null?0:(q=Z.exclusivesData)==null?0:q.exclusiveOfferCountdownText)?!0:!1}; Ri4=function(Z){var Q,z,K,b,q=(Q=Z.Y)==null?void 0:(z=Q.bannerData)==null?void 0:(K=z.itemData)==null?void 0:(b=K.exclusivesData)==null?void 0:b.expirationTimestampMs;Q=(Number(q)-Date.now())/1E3;if(Q>0){if(Q<604800){var r,D,v,Y;z=(r=Z.Y)==null?void 0:(D=r.bannerData)==null?void 0:(v=D.itemData)==null?void 0:(Y=v.exclusivesData)==null?void 0:Y.exclusiveOfferCountdownText;if(z!==void 0)for(r=Date.now(),D=g.n(z),v=D.next();!v.done;v=D.next())if(v=v.value,v!==void 0&&v.text!==void 0&&(Y=Number(v.textDisplayStartTimestampMs), !isNaN(Y)&&r>=Y)){v.insertCountdown?(Q=v.text.replace(/\$0/,String(XP({seconds:Q}))),Z.T.Wo(Q)):Z.T.Wo(v.text);Z.T.show();break}}var X,S,T,f;Z.K.update({exclusive:(X=Z.Y)==null?void 0:(S=X.bannerData)==null?void 0:(T=S.itemData)==null?void 0:(f=T.exclusivesData)==null?void 0:f.exclusiveOfferLabelText});Z.K.show();Yb(Z);var h;(h=Z.ih)==null||h.start()}else PZd(Z)}; PZd=function(Z){var Q;(Q=Z.ih)==null||Q.stop();Z.T.hide();Z.K.hide();XE(Z)}; CZd=function(Z){var Q,z,K=(Q=Z.Y)==null?void 0:(z=Q.bannerData)==null?void 0:z.itemData;return Z.J.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(K==null||!K.priceReplacementText)&&(K==null?0:K.promotionText)?K==null?void 0:K.promotionText.content:null}; pp9=function(Z){var Q,z,K=(Q=Z.Y)==null?void 0:(z=Q.bannerData)==null?void 0:z.itemData,b,q;if(!(K!=null&&K.priceReplacementText||Z.J.V("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(K==null?0:(b=K.dealsData)==null?0:(q=b.sales)==null?0:q.originalPrice)){var r,D;return K==null?void 0:(r=K.dealsData)==null?void 0:(D=r.sales)==null?void 0:D.originalPrice}return null}; HCW=function(Z){var Q,z,K=(Q=Z.Y)==null?void 0:(z=Q.bannerData)==null?void 0:z.itemData,b,q,r,D;if(!((K==null?0:K.priceReplacementText)||Z.J.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(K==null?0:(b=K.dealsData)==null?0:(q=b.sales)==null?0:q.originalPrice))&&(K==null?0:(r=K.dealsData)==null?0:(D=r.priceDrop)==null?0:D.referencePrice)){var v,Y;return K==null?void 0:(v=K.dealsData)==null?void 0:(Y=v.priceDrop)==null?void 0:Y.referencePrice}return null}; MVd=function(Z){var Q,z,K=(Q=Z.Y)==null?void 0:(z=Q.bannerData)==null?void 0:z.itemData;if(K==null?0:K.priceReplacementText)return K==null?void 0:K.priceReplacementText;if((K==null?0:K.promotionText)&&Z.J.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var b;return(K==null?void 0:K.price)+" "+(K==null?void 0:(b=K.promotionText)==null?void 0:b.content)}var q,r;if(K==null?0:(q=K.dealsData)==null?0:(r=q.sales)==null?0:r.originalPrice){var D,v;return K==null?void 0:(D=K.dealsData)== null?void 0:(v=D.sales)==null?void 0:v.salesPriceAccessibilityLabel}var Y,X;if(K==null?0:(Y=K.dealsData)==null?0:(X=Y.priceDrop)==null?0:X.referencePrice){var S,T;return(K==null?void 0:K.price)+" "+(K==null?void 0:(S=K.dealsData)==null?void 0:(T=S.priceDrop)==null?void 0:T.referencePrice)}return K==null?void 0:K.price}; U$4=function(Z){if(Z.J.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var Q,z,K;return Z.j.RT?null:(Q=Z.Y)==null?void 0:(z=Q.bannerData)==null?void 0:(K=z.itemData)==null?void 0:K.vendorName}var b,q,r,D,v,Y;return Z.j.RT||Z.K.RT||((b=Z.Y)==null?0:(q=b.bannerData)==null?0:(r=q.itemData)==null?0:r.affiliateDisclaimer)?null:(D=Z.Y)==null?void 0:(v=D.bannerData)==null?void 0:(Y=v.itemData)==null?void 0:Y.vendorName}; o8u=function(Z,Q){Sb(Z);if(Q){var z=g.wv.getState().entities;z=Dk(z,"featuredProductsEntity",Q);if(z!=null&&z.productsData){Q=[];z=g.n(z.productsData);for(var K=z.next();!K.done;K=z.next()){K=K.value;var b=void 0;if((b=K)!=null&&b.identifier&&K.featuredSegments){Z.JG.push(K);var q=void 0;b=g.n((q=K)==null?void 0:q.featuredSegments);for(q=b.next();!q.done;q=b.next()){var r=q.value;q=OCM(r.startTimeSec);q!==void 0&&(r=OCM(r.endTimeSec),Q.push(new g.b6(q*1E3,r===void 0?0x7ffffffffffff:r*1E3,{id:K.identifier, namespace:"featured_product"})))}}}Z.J.df(Q)}}}; XE=function(Z){if(Z.trendingOfferEntityKey){var Q=g.wv.getState().entities;if(Q=Dk(Q,"trendingOfferEntity",Z.trendingOfferEntityKey)){var z,K,b;Q.encodedSkuId!==((z=Z.Y)==null?void 0:(K=z.bannerData)==null?void 0:(b=K.itemData)==null?void 0:b.encodedOfferSkuId)?Yb(Z):(Z.j.update({trendingOffer:Q.shortLabel+" \u2022 "+Q.countLabel}),Z.j.show(),Z.banner.update({vendor:U$4(Z)}))}else Yb(Z)}else Yb(Z)}; Yb=function(Z){Z.j.hide();Z.banner.update({vendor:U$4(Z)})}; Sb=function(Z){Z.JG=[];Z.DS();Z.J.US("featured_product")}; B3u=function(Z){var Q,z,K,b,q=(Q=Z.Y)==null?void 0:(z=Q.bannerData)==null?void 0:(K=z.itemData)==null?void 0:(b=K.hiddenProductOptions)==null?void 0:b.dropTimestampMs;Q=(Number(q)-Date.now())/1E3;Z.countdownTimer.Wo(XP({seconds:Q}));if(Q>0){var r;(r=Z.X7)==null||r.start()}}; Wvf=function(Z){var Q;(Q=Z.X7)==null||Q.stop();Z.countdownTimer.hide()}; OCM=function(Z){if(Z!==void 0&&Z.trim()!==""&&(Z=Math.trunc(Number(Z.trim())),!(isNaN(Z)||Z<0)))return Z}; tVM=function(Z,Q,z){g.x.call(this,{B:"div",nN:["ytp-info-panel-action-item"],G:[{B:"div",D:"ytp-info-panel-action-item-disclaimer",W7:"{{disclaimer}}"},{B:"a",nN:["ytp-info-panel-action-item-button","ytp-button"],C:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},G:[{B:"div",D:"ytp-info-panel-action-item-icon",W7:"{{icon}}"},{B:"div",D:"ytp-info-panel-action-item-label",W7:"{{label}}"}]}]});this.J=Z;this.Y=z;this.disclaimer=this.Ru("ytp-info-panel-action-item-disclaimer");this.button= this.Ru("ytp-info-panel-action-item-button");this.hH=!1;this.J.createServerVe(this.element,this,!0);this.listen("click",this.onClick);Z="";z=g.V(Q==null?void 0:Q.onTap,Hc);var K=g.V(z,g.pi);this.hH=!1;K?(Z=K.url||"",Z.startsWith("//")&&(Z="https:"+Z),this.hH=!0,g.Ru(this.button,g.au(Z))):(K=g.V(z,VVd))&&!this.Y?((Z=K.phoneNumbers)&&Z.length>0?(Z="sms:"+Z[0],K.messageText&&(Z+="?&body="+encodeURI(K.messageText))):Z="",this.hH=!0,g.Ru(this.button,g.au(Z,[k_n]))):(z=g.V(z,ue0))&&!this.Y&&(Z=z.phoneNumber? "tel:"+z.phoneNumber:"",this.hH=!0,g.Ru(this.button,g.au(Z,[x$G])));var b;if(z=(b=Q.disclaimerText)==null?void 0:b.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var q;this.update({label:(q=Q.bodyText)==null?void 0:q.content,icon:Ip(),disclaimer:z})}else{this.disclaimer.style.display="none";var r;this.update({label:(r=Q.bodyText)==null?void 0:r.content,icon:Ip()})}this.J.setTrackingParams(this.element,Q.trackingParams||null);this.hH&&(this.j={externalLinkData:{url:Z}})}; Fvu=function(Z,Q){var z=AB();g.CW.call(this,Z,{B:"div",D:"ytp-info-panel-detail-skrim",G:[{B:"div",D:"ytp-info-panel-detail",C:{role:"dialog",id:z},G:[{B:"div",D:"ytp-info-panel-detail-header",G:[{B:"div",D:"ytp-info-panel-detail-title",W7:"{{title}}"},{B:"button",nN:["ytp-info-panel-detail-close","ytp-button"],C:{"aria-label":"Close"},G:[g.Li()]}]},{B:"div",D:"ytp-info-panel-detail-body",W7:"{{body}}"},{B:"div",D:"ytp-info-panel-detail-items"}]}]},250);this.Y=Q;this.items=this.Ru("ytp-info-panel-detail-items"); this.S=new g.M5(this);this.itemData=[];this.W=z;this.Z(this.Ru("ytp-info-panel-detail-close"),"click",this.oT);this.Z(this.Ru("ytp-info-panel-detail-skrim"),"click",this.oT);this.Z(this.Ru("ytp-info-panel-detail"),"click",function(K){K.stopPropagation()}); g.W(this,this.S);this.J.createServerVe(this.element,this,!0);this.Z(Z,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",Z.getVideoData());this.hide()}; eiX=function(Z,Q){Z=g.n(Z.itemData);for(var z=Z.next();!z.done;z=Z.next())z=z.value,z.J.logVisibility(z.element,Q)}; lC4=function(Z,Q){g.x.call(this,{B:"div",D:"ytp-info-panel-preview",C:{"aria-live":"assertive","aria-atomic":"true","aria-owns":Q.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.mj(Z.N()))},G:[{B:"div",D:"ytp-info-panel-preview-text",W7:"{{text}}"},{B:"div",D:"ytp-info-panel-preview-chevron",W7:"{{chevron}}"}]});var z=this;this.J=Z;this.gf=this.Y=this.videoId=null;this.W=this.showControls=this.j=!1;this.Z(this.element,"click",function(){Z.logClick(z.element);Z.ge();Hq(Q)}); this.S=new g.s8(this,250,!1,100);g.W(this,this.S);this.J.createServerVe(this.element,this,!0);this.Z(Z,"videodatachange",this.onVideoDataChange);this.Z(Z,"presentingplayerstatechange",this.z9);this.Z(this.J,"paidcontentoverlayvisibilitychange",this.OQ);this.Z(this.J,"infopaneldetailvisibilitychange",this.OQ);var K=Z.getVideoData()||{};wpD(K)&&E8n(this,K);this.Z(Z,"onShowControls",this.KR);this.Z(Z,"onHideControls",this.bO)}; E8n=function(Z,Q){if(!Q.Vr||!Z.J.Um()){var z=Q.Gc||1E4,K=wpD(Q);Z.Y?Q.videoId&&Q.videoId!==Z.videoId&&(g.Qn(Z.Y),Z.videoId=Q.videoId,K?(s2G(Z,z,Q),Z.Gz()):(Z.oT(),Z.Y.dispose(),Z.Y=null)):K&&(Q.videoId&&(Z.videoId=Q.videoId),s2G(Z,z,Q),Z.Gz())}}; wpD=function(Z){var Q,z,K,b;return!!((Q=Z.y7)==null?0:(z=Q.title)==null?0:z.content)||!!((K=Z.y7)==null?0:(b=K.bodyText)==null?0:b.content)}; s2G=function(Z,Q,z){Z.Y&&Z.Y.dispose();Z.Y=new g.E6(Z.Npp,Q,Z);g.W(Z,Z.Y);var K;Q=((K=z.y7)==null?void 0:K.trackingParams)||null;Z.J.setTrackingParams(Z.element,Q);var b;var q,r;if(z==null?0:(q=z.y7)==null?0:(r=q.title)==null?0:r.content){var D;K=(b=z.y7)==null?void 0:(D=b.title)==null?void 0:D.content;var v,Y;if((v=z.y7)==null?0:(Y=v.bodyText)==null?0:Y.content)K+=" \u2022 ";b=K}else b="";var X,S;z=((X=z.y7)==null?void 0:(S=X.bodyText)==null?void 0:S.content)||"";Z.update({text:b+z,chevron:g.hB()})}; Z6x=function(Z,Q){Z.Y&&(g.t(Q,8)?(Z.j=!0,Z.Gz(),Z.Y.start()):(g.t(Q,2)||g.t(Q,64))&&Z.videoId&&(Z.videoId=null))}; $b=function(Z){var Q=null;try{Q=Z.toLocaleString("en",{style:"percent"})}catch(z){Q=Z.toLocaleString(void 0,{style:"percent"})}return Q}; Th=function(Z,Q){var z=0;Z=g.n(Z);for(var K=Z.next();!(K.done||K.value.startTime>Q);K=Z.next())z++;return z===0?z:z-1}; Q2n=function(Z,Q){for(var z=0,K=g.n(Z),b=K.next();!b.done;b=K.next()){b=b.value;if(Q<b.timeRangeStartMillis)return null;if(Q>=b.timeRangeStartMillis&&Q<b.timeRangeStartMillis+b.Y)break;z++}z+1<Z.length&&Z[z+1].timeRangeStartMillis<=Q&&z++;return z<Z.length?z:null}; z1X=function(Z,Q){Q=Th(Z,Q)+1;return Q<Z.length?Q:-1}; Kz0=function(Z,Q){return Th(Z,Q)-1}; b6G=function(Z,Q){return new g.b6(Z,Q,{namespace:"timedMarkerCueRange",priority:9,id:"tm_"+Z})}; rpX=function(Z,Q,z,K,b,q,r,D){g.M5.call(this);var v=this;this.api=Z;this.contextMenu=z;this.I6=K;this.XR=b;this.Y=q;this.K=r;this.progressBar=D;this.L=new g.E6(function(){qRf(v,!1)},1E3); this.j="";this.S={kQ:!1};this.W=!1;g.W(this,this.L);this.Z(Q,"mousedown",function(){fb(v,!1)}); this.Z(z.element,"mousedown",function(){fb(v,!1)}); this.Z(Q,"keydown",this.RV);this.Z(z.element,"keydown",this.RV);this.Z(Q,"keyup",this.JY);this.Z(z.element,"keyup",this.JY)}; Apx=function(Z,Q){return Q<0?0:Math.floor(Math.min(Q,Z.api.getDuration())*1E3)}; h3=function(Z,Q,z){var K=Z.api.getCurrentTime(),b=Apx(Z,K);Z=Apx(Z,K+Q);return{startMediaTimeMs:b,endMediaTimeMs:Z,seekSource:z}}; j2G=function(Z){var Q,z=(Q=Z.api.getVideoData())==null?void 0:Q.GJ();return Z.api.getPresentingPlayerType(z)!==2}; fb=function(Z,Q){Z.W=Q;g.vC(Z.api.getRootNode(),"ytp-probably-keyboard-focus",Q);g.vC(Z.contextMenu.element,"ytp-probably-keyboard-focus",Q)}; nb=function(Z,Q,z,K){var b=g.Rq(Z.api.W4());if(b&&b.loaded){var q=Z.api.getSubtitlesUserSettings();b=void 0;for(var r=0;r<g.Lb.length;r++){var D=g.Lb[r];if(D.option===Q){b=D.options;break}}r=void 0;for(D=0;D<b.length;D++)b[D].option===q[Q]&&(r=D);if(K)if(z){if(r===0)return}else if(r===b.length-1)return;K={};K[Q]=b[(r+(z?b.length-1:1))%b.length].option;Z.api.updateSubtitlesUserSettings(K);qRf(Z,!0);Z.L.start()}}; qRf=function(Z,Q){g.Rq(Z.api.W4())&&Z.api.setOption("captions","sampleSubtitles",Q)}; g.cR=function(Z,Q){g.x.call(this,{B:"button",nN:["ytp-button","ytp-overflow-button"],C:{title:"More","aria-haspopup":"true","aria-owns":Q.element.id},G:[{B:"div",D:"ytp-overflow-icon",G:[{B:"svg",C:{height:"100%",viewBox:"-5 -5 36 36",width:"100%"},G:[{B:"path",C:{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z",fill:"#fff"}}]}]}]});var z=this;this.J=Z;this.uJ=Q;this.Y=this.visible=!1;Z.createClientVe(this.element, this,16499);this.Z(Z,"videoplayerreset",this.E$);this.Z(Z,"appresize",this.E$);this.Z(Z,"fullscreentoggled",this.E$);this.Z(Z,"presentingplayerstatechange",this.E$);this.E$();fW(Z,this.element,this);this.listen("click",function(){Z.logClick(z.element);Hq(Q,z.element,!1)}); this.Z(Q.closeButton,"click",function(){z.focus()})}; DLn=function(Z){g.CW.call(this,Z,{B:"div",D:"ytp-overflow-panel",C:{id:AB(),role:"dialog"},G:[{B:"div",D:"ytp-overflow-panel-content",G:[{B:"div",D:"ytp-overflow-panel-action-buttons",W7:"{{buttons}}"}]},{B:"button",nN:["ytp-overflow-panel-close","ytp-button"],C:{title:"Close"},G:[g.Li()]}]},250);this.actionButtons=[];this.Y=this.Ru("ytp-overflow-panel-content");this.closeButton=this.Ru("ytp-overflow-panel-close");this.Z(this.closeButton,"click",this.oT);fW(Z,this.closeButton,this);this.listen("click", this.LR);this.Z(Z,"videoplayerreset",this.hide);this.Z(Z,"fullscreentoggled",this.onFullscreenToggled);this.hide()}; vc9=function(Z,Q){Z.actionButtons.includes(Q)||(Z.actionButtons.push(Q),Z.updateValue("buttons",Z.actionButtons))}; gcX=function(Z,Q){Z=g.n(Z.actionButtons);for(var z=Z.next();!z.done;z=Z.next())z.value.yw(Q)}; YRG=function(Z,Q,z){var K=g.cf(Q,z),b=K.uI("default.jpg");g.x.call(this,{B:"a",nN:["ytp-video-menu-item","ytp-button"],C:{role:"menuitemradio","aria-label":K.title,href:Z.N().getVideoUrl(K.videoId,Q.listId?Q.listId.toString():null)},G:[{B:"div",D:"ytp-video-menu-item-index",W7:String(z+1)},{B:"div",D:"ytp-video-menu-item-now-playing",W7:"\u25b6"},{B:"div",D:"ytp-video-menu-item-thumbnail",C:{style:b?"background-image: url("+b+");":void 0}},{B:"div",D:"ytp-video-menu-item-title",W7:K.title},{B:"div", D:"ytp-video-menu-item-author",W7:K.author}]});this.api=Z;this.index=z;this.listen("click",this.onClick)}; XmX=function(Z){g.CW.call(this,Z,{B:"div",D:"ytp-playlist-menu",C:{role:"dialog",id:AB()},G:[{B:"div",D:"ytp-playlist-menu-header",G:[{B:"div",D:"ytp-playlist-menu-title",G:[Z.N().S?{B:"span",D:"ytp-playlist-menu-title-name",W7:"{{title}}"}:{B:"a",D:"ytp-playlist-menu-title-name",C:{href:"{{playlisturl}}"},W7:"{{title}}"},{B:"button",nN:["ytp-playlist-menu-close","ytp-button"],C:{"aria-label":"Close"},G:[g.Li()]}]},{B:"div",D:"ytp-playlist-menu-subtitle",W7:"{{subtitle}}"}]},{B:"div",D:"ytp-playlist-menu-items", C:{role:"menu"}}]},250);this.api=Z;this.S=this.selected=this.W=this.playlist=null;this.items=this.Ru("ytp-playlist-menu-items");this.Y=new g.M5(this);this.playlistData=[];this.Z(this.Ru("ytp-playlist-menu-close"),"click",this.oT);var Q=this.Ru("ytp-playlist-menu-title-name");Z.N().S||(this.S=this.Z(Q,"click",this.pgu));g.W(this,this.Y);this.hide()}; ms=function(Z,Q){g.x.call(this,{B:"button",nN:["ytp-playlist-menu-button","ytp-button"],C:{title:"{{title}}","aria-owns":String(Q.element.id),"aria-haspopup":"true","aria-label":"Playlist"},G:[{B:"div",D:"ytp-playlist-menu-button-icon",G:[{B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},G:[{B:"path",KL:!0,C:{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"}}]}]},{B:"div",D:"ytp-playlist-menu-button-text",W7:"{{text}}"}]});var z=this;this.api=Z;this.playlist=null;this.visible=!1;Z.createClientVe(this.element,this,70344);this.Z(Z,"videodatachange",this.Y);this.Z(Z,"videoplayerreset",this.Y);this.Z(Z,"onPlaylistUpdate",this.Y);this.Z(Z,"presentingplayerstatechange",this.E$);this.Z(Z,"appresize",this.E$);this.hide();this.Y();fW(Z,this.element,this);this.listen("click",function(){Z.logClick(z.element);Hq(Q,z.element,!1)})}; SRX=function(Z,Q){g.x.call(this,{B:"div",D:"ytp-promotooltip-wrapper",G:[{B:"div",D:"ytp-promotooltip-container",G:[{B:"div",D:"ytp-promotooltip-content",G:[{B:"div",D:"ytp-promotooltip-title",W7:"{{title}}"},{B:"div",D:"ytp-promotooltip-details",W7:"{{details}}"}]},{B:"div",D:"ytp-promotooltip-buttons",G:[{B:"div",D:"ytp-promotooltip-dismiss-button",W7:"{{dismissButtonText}}",C:{tabindex:"0"}},{B:"div",D:"ytp-promotooltip-accept-button",W7:"{{acceptButtonText}}",C:{tabindex:"0","aria-haspopup":"true"}}]}]}, {B:"div",D:"ytp-promotooltip-pointer"}]});var z=this;this.tooltipRenderer=Z;this.J=Q;this.Y=this.S=null;this.title=this.Ru("ytp-promotooltip-title");this.details=this.Ru("ytp-promotooltip-details");this.acceptButton=this.Ru("ytp-promotooltip-accept-button");this.dismissButton=this.Ru("ytp-promotooltip-dismiss-button");this.j=this.K=!1;this.W=!0;this.jJ=this.T=this.U=this.X=!1;this.zz={I8:function(K){z.I8(K)}}; this.Wh(!1);Z=this.tooltipRenderer.trackingParams||null;if(this.j=!!Z)this.J.createServerVe(this.element,this,!0),this.J.setTrackingParams(this.element,Z);this.Z(Q,"onShowControls",this.nR);this.Z(Q,"onHideControls",this.VL);this.Z(Q,"resize",this.pL);this.Z(this.acceptButton,"click",this.fIN);this.Z(this.dismissButton,"click",this.WZY);this.Z(document,"click",this.FX)}; $L0=function(Z){var Q=document.querySelectorAll('[data-tooltip-target-id="'+Z.tooltipRenderer.targetId+'"]');Q=Q.length>0?Q[0]:null;var z=g.xv("ytp-chrome-bottom"),K=g.xv("ytp-ad-module");Z.W=!(z==null||!z.contains(Q));Z.X=!(K==null||!K.contains(Q));Z.U=!(Q==null||!Q.hasAttribute("data-tooltip-target-fixed"));return Q}; h1u=function(Z,Q,z){if(!Z.K){if(Q){Z.tooltipRenderer=Q;Q=Z.tooltipRenderer.text;var K=!1,b;(Q==null?0:(b=Q.runs)==null?0:b.length)&&Q.runs[0].text&&(Z.update({title:Q.runs[0].text.toString()}),K=!0);g.c$(Z.title,K);Q=Z.tooltipRenderer.detailsText;b=!1;var q;if((Q==null?0:(q=Q.runs)==null?0:q.length)&&Q.runs[0].text){K=Q.runs[0].text.toString();q=K.indexOf("$TARGET_ICON");if(q>-1)if(Z.tooltipRenderer.targetId){Q=[];K=K.split("$TARGET_ICON");var r=new g.jN({B:"span",D:"ytp-promotooltip-details-icon", G:[TSG[Z.tooltipRenderer.targetId]]});g.W(Z,r);for(var D=[],v=g.n(K),Y=v.next();!Y.done;Y=v.next())Y=new g.jN({B:"span",D:"ytp-promotooltip-details-component",W7:Y.value}),g.W(Z,Y),D.push(Y);K.length===2?(Q.push(D[0].element),Q.push(r.element),Q.push(D[1].element)):K.length===1&&(q===0?(Q.push(r.element),Q.push(D[0].element)):(Q.push(D[0].element),Q.push(r.element)));q=Q.length?Q:null}else q=null;else q=K;if(q){if(typeof q!=="string")for(g.QX(Z.details),b=g.n(q),q=b.next();!q.done;q=b.next())Z.details.appendChild(q.value); else Z.update({details:q});b=!0}}g.c$(Z.details,b);b=Z.tooltipRenderer.acceptButton;q=!1;var X,S,T;((X=g.V(b,g.RU))==null?0:(S=X.text)==null?0:(T=S.runs)==null?0:T.length)&&g.V(b,g.RU).text.runs[0].text&&(Z.update({acceptButtonText:g.V(b,g.RU).text.runs[0].text.toString()}),q=!0);g.c$(Z.acceptButton,q);X=Z.tooltipRenderer.dismissButton;S=!1;var f,h,m;((f=g.V(X,g.RU))==null?0:(h=f.text)==null?0:(m=h.runs)==null?0:m.length)&&g.V(X,g.RU).text.runs[0].text&&(Z.update({dismissButtonText:g.V(X,g.RU).text.runs[0].text.toString()}), S=!0);g.c$(Z.dismissButton,S)}z&&(Z.S=z);Z.Y=$L0(Z);Z.T=!1;Z.J.N().V("web_player_hide_nitrate_promo_tooltip")||Z.Wh(!0);fen(Z);Z.RT&&!Z.jJ&&(Z.jJ=!0,Z.zz.I8(0));Z.j&&Z.J.logVisibility(Z.element,Z.RT)}}; IX=function(Z){Z.Wh(!1);Z.j&&Z.J.logVisibility(Z.element,Z.RT)}; Lzr=function(Z){var Q,z,K,b=((Q=g.V(Z.acceptButton,g.RU))==null?void 0:(z=Q.text)==null?void 0:(K=z.runs)==null?void 0:K.length)&&!!g.V(Z.acceptButton,g.RU).text.runs[0].text,q,r,D;Q=((q=g.V(Z.dismissButton,g.RU))==null?void 0:(r=q.text)==null?void 0:(D=r.runs)==null?void 0:D.length)&&!!g.V(Z.dismissButton,g.RU).text.runs[0].text;return b||Q}; fen=function(Z){var Q;if(!(Q=!Z.Y)){Q=Z.Y;var z=window.getComputedStyle(Q);Q=z.display==="none"||z.visibility==="hidden"||Q.getAttribute("aria-hidden")==="true"}if(Q||Z.J.isMinimized())Z.Wh(!1);else if(Q=g.n4(Z.Y),Q.width&&Q.height){Z.J.bl(Z.element,Z.Y);var K=Z.J.U$().getPlayerSize().height;z=g.n4(Z.Ru("ytp-promotooltip-container")).height;Z.W?Z.element.style.top=K-z-Q.height-12+"px":Z.U||(K=Z.J.qE().height-z-Q.height-12,Z.element.style.top=K+"px");K=Z.Ru("ytp-promotooltip-pointer");var b=g.hG(Z.Y, Z.J.getRootNode()),q=Number(Z.element.style.left.replace(/[^\d\.]/g,""));Z=Z.J.isFullscreen()?18:12;K.style.left=b.x-q+Q.width/2-Z+"px";K.style.top=z+"px"}else Z.Wh(!1)}; J3=function(Z){g.x.call(this,{B:"button",nN:["ytp-replay-button","ytp-button"],C:{title:"Replay"},G:[g.yw()]});this.J=Z;this.Z(Z,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.Q3(Z.getPlayerStateObject());fW(this.J,this.element,this)}; ym=function(Z,Q){Q=Q===void 0?240:Q;g.x.call(this,{B:"button",nN:["ytp-button","ytp-search-button"],C:{title:"Search","data-tooltip-opaque":String(g.mj(Z.N()))},G:[{B:"div",D:"ytp-search-icon",W7:"{{icon}}"},{B:"div",D:"ytp-search-title",W7:"Search"}]});this.api=Z;this.j=Q;this.visible=!1;this.updateValue("icon",{B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},G:[{B:"path",D:"ytp-svg-fill",C:{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"}}]}); Z.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.Y();this.Z(Z,"appresize",this.Y);this.Z(Z,"videodatachange",this.Y);fW(Z,this.element,this)}; g.d$=function(Z,Q,z,K){K=K===void 0?240:K;g.x.call(this,{B:"button",nN:["ytp-button","ytp-share-button"],C:{title:"Share","aria-haspopup":"true","aria-owns":z.element.id,"data-tooltip-opaque":String(g.mj(Z.N()))},G:[{B:"div",D:"ytp-share-icon",W7:"{{icon}}"},{B:"div",D:"ytp-share-title",W7:"Share"}]});this.api=Z;this.Y=Q;this.S=z;this.W=K;this.j=this.visible=!1;this.tooltip=this.Y.FJ();Z.createClientVe(this.element,this,28664);this.listen("click",this.onClick);this.Z(Z,"videodatachange",this.E$); this.Z(Z,"videoplayerreset",this.E$);this.Z(Z,"appresize",this.E$);this.Z(Z,"presentingplayerstatechange",this.E$);this.E$();this.addOnDisposeCallback(g.Te(this.tooltip,this.element))}; ncx=function(Z){var Q=Z.api.N(),z=Z.api.getVideoData(),K=g.mj(Q)&&g.IT(Z.api)&&g.t(Z.api.getPlayerStateObject(),128);Q=Q.S||Q.disableSharing&&Z.api.getPresentingPlayerType()!==2||!z.showShareButton||z.Zb||K||g.ey(z)||Z.j;K=Z.api.U$().getPlayerSize().width;return!!z.videoId&&K>=Z.W&&!Q}; cpX=function(Z,Q){Q.name!=="InvalidStateError"&&Q.name!=="AbortError"&&(Q.name==="NotAllowedError"?(Z.Y.ge(),Hq(Z.S,Z.element,!1)):g.Rm(Q))}; IeG=function(Z,Q){var z=AB(),K=Z.N();z={B:"div",D:"ytp-share-panel",C:{id:AB(),role:"dialog","aria-labelledby":z},G:[{B:"div",D:"ytp-share-panel-inner-content",G:[{B:"div",D:"ytp-share-panel-title",C:{id:z},W7:"Share"},{B:"a",nN:["ytp-share-panel-link","ytp-no-contextmenu"],C:{href:"{{link}}",target:K.U,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},W7:"{{linkText}}"},{B:"label",D:"ytp-share-panel-include-playlist",G:[{B:"input",D:"ytp-share-panel-include-playlist-checkbox",C:{type:"checkbox", checked:"true"}},"Include playlist"]},{B:"div",D:"ytp-share-panel-loading-spinner",G:[Z6()]},{B:"div",D:"ytp-share-panel-service-buttons",W7:"{{buttons}}"},{B:"div",D:"ytp-share-panel-error",W7:"An error occurred while retrieving sharing information. Please try again later."}]},{B:"button",nN:["ytp-share-panel-close","ytp-button"],C:{title:"Close"},G:[g.Li()]}]};g.CW.call(this,Z,z,250);var b=this;this.moreButton=null;this.api=Z;this.tooltip=Q.FJ();this.S=[];this.K=this.Ru("ytp-share-panel-inner-content"); this.closeButton=this.Ru("ytp-share-panel-close");this.Z(this.closeButton,"click",this.oT);this.addOnDisposeCallback(g.Te(this.tooltip,this.closeButton));this.W=this.Ru("ytp-share-panel-include-playlist-checkbox");this.Z(this.W,"click",this.E$);this.Y=this.Ru("ytp-share-panel-link");this.addOnDisposeCallback(g.Te(this.tooltip,this.Y));this.api.createClientVe(this.Y,this,164503);this.Z(this.Y,"click",function(q){q.preventDefault();b.api.logClick(b.Y);var r=b.api.getVideoUrl(!0,!0,!1,!1);r=mLW(b,r); g.sV(r,b.api,q)&&b.api.hG("SHARE_CLICKED")}); this.listen("click",this.r$);this.Z(Z,"videoplayerreset",this.hide);this.Z(Z,"fullscreentoggled",this.onFullscreenToggled);this.Z(Z,"onLoopRangeChange",this.SAu);this.hide()}; ypn=function(Z,Q){Jp4(Z);for(var z=Q.links||Q.shareTargets,K=0,b={},q=0;q<z.length&&K<2;b={Mc:void 0,JR:void 0},q++){b.Mc=z[q];a:switch(b.Mc.img||b.Mc.iconId){case "facebook":var r={B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},G:[{B:"rect",C:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{B:"path",C:{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":r={B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},G:[{B:"rect",C:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{B:"path",C:{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:r=null}if(r){var D=b.Mc.sname||b.Mc.serviceName;b.JR=new g.x({B:"a",nN:["ytp-share-panel-service-button","ytp-button"],C:{href:b.Mc.url,target:"_blank",title:D},G:[r]});b.JR.listen("click",function(X){return function(S){var T=X.Mc.url;if(g.Is(S)){var f=f===void 0?{}:f;f.target=f.target||"YouTube";f.width=f.width||"600";f.height=f.height||"600";var h=f;h||(h={});f=window;var m=T instanceof dW?T:g.au(typeof T.href!="undefined"?T.href:String(T));var J=self.crossOriginIsolated!== void 0,d="strict-origin-when-cross-origin";window.Request&&(d=(new Request("/")).referrerPolicy);var G=d==="unsafe-url";d=h.noreferrer;if(J&&d){if(G)throw Error("Cannot use the noreferrer option on a page that sets a referrer-policy of `unsafe-url` in modern browsers!");d=!1}T=h.target||T.target;J=[];for(var R in h)switch(R){case "width":case "height":case "top":case "left":J.push(R+"="+h[R]);break;case "target":case "noopener":case "noreferrer":break;case "attributionsrc":J.push(R+(h[R]?"="+h[R]: ""));break;default:J.push(R+"="+(h[R]?1:0))}R=J.join(",");k$()&&f.navigator&&f.navigator.standalone&&T&&T!="_self"?(R=g.lY("A"),g.Ru(R,m),R.target=T,d&&(R.rel="noreferrer"),((h=h.attributionsrc)||h==="")&&R.setAttribute("attributionsrc",h),h=document.createEvent("MouseEvent"),h.initMouseEvent("click",!0,!0,f,1),R.dispatchEvent(h),f={}):d?(f=g.M0(f,"",T,R),h=g.N0(m),f&&(f.opener=null,h===""&&(h="javascript:''"),h=pt('<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+ wW(h)+'">'),(m=f.document)&&m.write&&(m.write(HB(h)),m.close()))):((f=g.M0(f,m,T,R))&&h.noopener&&(f.opener=null),f&&h.noreferrer&&(f.opener=null));f&&(f.opener||(f.opener=window),f.focus());S.preventDefault()}}}(b)); b.JR.addOnDisposeCallback(g.Te(Z.tooltip,b.JR.element));D==="Facebook"?Z.api.createClientVe(b.JR.element,b.JR,164504):D==="Twitter"&&Z.api.createClientVe(b.JR.element,b.JR,164505);Z.Z(b.JR.element,"click",function(X){return function(){Z.api.logClick(X.JR.element)}}(b)); Z.api.logVisibility(b.JR.element,!0);Z.S.push(b.JR);K++}}var v=Q.more||Q.moreLink,Y=new g.x({B:"a",nN:["ytp-share-panel-service-button","ytp-button"],G:[{B:"span",D:"ytp-share-panel-service-button-more",G:[{B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},G:[{B:"rect",C:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{B:"path",C:{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"}}]}]}],C:{href:v,target:"_blank",title:"More"}});Y.listen("click",function(X){var S=v;Z.api.logClick(Z.moreButton.element);S=mLW(Z,S);g.sV(S,Z.api,X)&&Z.api.hG("SHARE_CLICKED")}); Y.addOnDisposeCallback(g.Te(Z.tooltip,Y.element));Z.api.createClientVe(Y.element,Y,164506);Z.Z(Y.element,"click",function(){Z.api.logClick(Y.element)}); Z.api.logVisibility(Y.element,!0);Z.S.push(Y);Z.moreButton=Y;Z.updateValue("buttons",Z.S)}; mLW=function(Z,Q){var z={};g.mj(Z.api.N())&&(g.br(Z.api,"addEmbedsConversionTrackingParams",[z]),Q=g.BK(Q,z));return Q}; Jp4=function(Z){for(var Q=g.n(Z.S),z=Q.next();!z.done;z=Q.next())z=z.value,z.detach(),g.jR(z);Z.S=[]}; NC=function(Z){return Z===void 0||Z.startSec===void 0||Z.endSec===void 0?!1:!0}; dLn=function(Z,Q){Z.startSec+=Q;Z.endSec+=Q}; GPM=function(Z){Hy.call(this,Z);this.j=this.Y=this.isContentForward=this.T=!1;NSM(this);this.Z(this.J,"changeProductsInVideoVisibility",this.QyJ);this.Z(this.J,"videodatachange",this.onVideoDataChange)}; i6d=function(Z){Z.K&&Z.c7.element.removeChild(Z.K.element);Z.K=void 0}; Py0=function(Z,Q){return Q.map(function(z){var K,b;if((z=(K=g.V(z,aed))==null?void 0:(b=K.thumbnail)==null?void 0:b.thumbnails)&&z.length!==0)return z[0].url}).filter(function(z){return z!==void 0}).map(function(z){z=new g.x({B:"img", D:"ytp-suggested-action-product-thumbnail",C:{alt:"",src:z}});g.W(Z,z);return z})}; R1G=function(Z,Q){Z.isContentForward=Q;g.vC(Z.badge.element,"ytp-suggested-action-badge-content-forward",Q)}; Gh=function(Z){var Q=Z.isContentForward&&!Z.b2();g.vC(Z.badge.element,"ytp-suggested-action-badge-preview-collapsed",Q&&Z.Y);g.vC(Z.badge.element,"ytp-suggested-action-badge-preview-expanded",Q&&Z.j)}; ij=function(Z,Q,z){return new g.b6(Z*1E3,Q*1E3,{priority:9,namespace:z})}; CyG=function(Z){Z.J.US("shopping_overlay_visible");Z.J.US("shopping_overlay_preview_collapsed");Z.J.US("shopping_overlay_preview_expanded");Z.J.US("shopping_overlay_expanded")}; NSM=function(Z){Z.Z(Z.J,g.r7("shopping_overlay_visible"),function(){Z.bz(!0)}); Z.Z(Z.J,g.AH("shopping_overlay_visible"),function(){Z.bz(!1)}); Z.Z(Z.J,g.r7("shopping_overlay_expanded"),function(){Z.SJ=!0;p_(Z)}); Z.Z(Z.J,g.AH("shopping_overlay_expanded"),function(){Z.SJ=!1;p_(Z)}); Z.Z(Z.J,g.r7("shopping_overlay_preview_collapsed"),function(){Z.Y=!0;Gh(Z)}); Z.Z(Z.J,g.AH("shopping_overlay_preview_collapsed"),function(){Z.Y=!1;Gh(Z)}); Z.Z(Z.J,g.r7("shopping_overlay_preview_expanded"),function(){Z.j=!0;Gh(Z)}); Z.Z(Z.J,g.AH("shopping_overlay_preview_expanded"),function(){Z.j=!1;Gh(Z)})}; Mv9=function(Z){g.x.call(this,{B:"div",D:"ytp-shorts-title-channel",G:[{B:"a",D:"ytp-shorts-title-channel-logo",C:{href:"{{channelLink}}",target:Z.N().U,"aria-label":"{{channelLogoLabel}}"}},{B:"div",D:"ytp-shorts-title-expanded-heading",G:[{B:"div",D:"ytp-shorts-title-expanded-title",G:[{B:"a",W7:"{{expandedTitle}}",C:{href:"{{channelTitleLink}}",target:Z.N().U,tabIndex:"0"}}]}]}]});var Q=this;this.api=Z;this.Y=this.Ru("ytp-shorts-title-channel-logo");this.channelName=this.Ru("ytp-shorts-title-expanded-title"); this.subscribeButton=null;Z.createClientVe(this.Y,this,36925);this.Z(this.Y,"click",function(z){Q.api.logClick(Q.Y);g.M0(window,pmd(Q));z.preventDefault()}); Z.createClientVe(this.channelName,this,37220);this.Z(this.channelName,"click",function(z){Q.api.logClick(Q.channelName);g.M0(window,pmd(Q));z.preventDefault()}); H6X(this);this.Z(Z,"videodatachange",this.E$);this.Z(Z,"videoplayerreset",this.E$);this.E$()}; H6X=function(Z){if(!Z.api.N().Sp){var Q=Z.api.getVideoData(),z=new g.qC("Subscribe",null,"Subscribed",null,!0,!1,Q.n6,Q.subscribed,"channel_avatar",null,Z.api,!0);Z.api.createServerVe(z.element,Z);var K;Z.api.setTrackingParams(z.element,((K=Q.subscribeButtonRenderer)==null?void 0:K.trackingParams)||null);Z.Z(z.element,"click",function(){Z.api.logClick(z.element)}); Z.subscribeButton=z;g.W(Z,Z.subscribeButton);Z.subscribeButton.zf(Z.element)}}; pmd=function(Z){var Q=Z.api.N(),z=Z.api.getVideoData();z=g.E_(Q)+z.F7;if(!g.mj(Q))return z;Q={};g.br(Z.api,"addEmbedsConversionTrackingParams",[Q]);return g.BK(z,Q)}; aX=function(Z){g.CW.call(this,Z,{B:"button",nN:["ytp-skip-intro-button","ytp-popup","ytp-button"],G:[{B:"div",D:"ytp-skip-intro-button-text",W7:"Skip Intro"}]},100);var Q=this;this.S=!1;this.Y=new g.E6(function(){Q.hide()},5E3); this.Q7=this.DH=NaN;g.W(this,this.Y);this.T=function(){Q.show()}; this.K=function(){Q.hide()}; this.W=function(){var z=Q.J.getCurrentTime();z>Q.DH/1E3&&z<Q.Q7/1E3&&Q.show()}; this.Z(this.J,"videodatachange",function(z,K){Q.AL(z,K)}); this.Z(this.element,"click",function(){Q.J.seekTo(Q.Q7/1E3)}); this.hide()}; PR=function(Z){g.x.call(this,{B:"button",nN:["ytp-airplay-button","ytp-button"],C:{title:"AirPlay","data-priority":"10"},W7:"{{icon}}"});this.J=Z;this.listen("click",this.onClick);this.Z(Z,"airplayactivechange",this.E$);this.Z(Z,"airplayavailabilitychange",this.E$);this.E$();fW(Z,this.element,this)}; O6u=function(Z){g.x.call(this,{B:"div",D:"ytp-gradient-bottom"});this.j=g.lY("CANVAS");this.Y=this.j.getContext("2d",{willReadFrequently:!0});this.S=NaN;this.j.width=1;ULW(this,Z.U$().getPlayerSize().height)}; ULW=function(Z,Q){if(Z.Y){Q=Math.floor(Q*.4);Q=Math.max(Q,47);var z=Q+2;if(Z.S!==z){Z.S=z;Z.j.height=z;Z.Y.clearRect(0,0,1,z);var K=Z.Y.createLinearGradient(0,2,0,2+Q),b=Q-42;K.addColorStop(0,"rgba(0, 0, 0, 0)");K.addColorStop(b/Q,"rgba(0, 0, 0, 0.3)");K.addColorStop(1,"rgba(0, 0, 0, 0.68)");Z.Y.fillStyle=K;Z.Y.fillRect(0,2,1,Q);Z.element.style.height=z+"px";try{Z.element.style.backgroundImage="url("+Z.j.toDataURL()+")"}catch(q){}}}}; RX=function(Z,Q,z,K){g.x.call(this,{B:"div",D:"ytp-chapter-container",G:[{B:"button",nN:["ytp-chapter-title","ytp-button"],G:[{B:"span",C:{"aria-hidden":"true"},D:"ytp-chapter-title-prefix",W7:"\u2022"},{B:"div",D:"ytp-chapter-title-content",W7:"{{title}}",C:{"aria-label":"{{ariaLabel}}","aria-live":"polite",title:K}},{B:"div",D:"ytp-chapter-title-chevron",G:[{B:"svg",C:{height:"100%",viewBox:"0 0 24 24",width:"100%"},G:[{B:"path",C:{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.J=Z;this.W=Q;this.K="";this.currentIndex=0;this.j=void 0;this.S=!0;this.jJ=this.Ru("ytp-chapter-container");this.Y=this.Ru("ytp-chapter-title");this.SJ=this.Ru("ytp-chapter-title-content");this.updateVideoData("newdata",this.J.getVideoData());this.Z(Z,"videodatachange",this.updateVideoData);this.Z(this.jJ,"click",this.onClick);this.Z(Z,g.r7(z),this.E8);this.Z(Z,"onLoopRangeChange",this.E8);this.Z(Z,"innertubeCommand",this.onClickCommand);(Z=g.aM(this.J.N()))&&g.vC(this.Y, "ytp-profile-page",!0);this.J.V("web_player_updated_entrypoint")&&g.vC(this.element,"ytp-xs-mono-button-style",!0);g.mj(this.J.N())||Z||fW(this.J,this.SJ,this)}; Cb=function(Z,Q){RX.call(this,Z,Q,"chapterCueRange","View chapter");this.T=""}; oc4=function(Z,Q,z,K,b){var q=Q.qc/Q.rows,r=Math.min(z/(Q.sf/Q.columns),K/q),D=Q.sf*r,v=Q.qc*r;D=Math.floor(D/Q.columns)*Q.columns;v=Math.floor(v/Q.rows)*Q.rows;var Y=D/Q.columns,X=v/Q.rows,S=-Q.column*Y,T=-Q.row*X;b&&q<=45&&(X-=1/r);Y-=2/r;Z=Z.style;Z.width=Y+"px";Z.height=X+"px";b||(K=(K-X)/2,z=(z-Y)/2,Z.marginTop=Math.floor(K)+"px",Z.marginBottom=Math.ceil(K)+"px",Z.marginLeft=Math.floor(z)+"px",Z.marginRight=Math.ceil(z)+"px");Z.background="url("+Q.url+") "+S+"px "+T+"px/"+D+"px "+v+"px"}; pb=function(Z,Q){g.x.call(this,{B:"div",D:"ytp-storyboard-framepreview",G:[{B:"div",D:"ytp-storyboard-framepreview-timestamp",W7:"{{timestamp}}"},{B:"div",D:"ytp-storyboard-framepreview-img"}]});this.api=Z;this.W=this.Ru("ytp-storyboard-framepreview-img");this.j=null;this.S=NaN;this.events=new g.M5(this);this.Y=new g.s8(this,100);g.W(this,this.events);g.W(this,this.Y);this.Z(this.api,"presentingplayerstatechange",this.K);Q&&this.Z(this.element,"click",function(){Q.Gb()})}; BSD=function(Z,Q){var z=!!Z.j;Z.j=Q;Z.j?(z||(Z.events.Z(Z.api,"videodatachange",function(){BSD(Z,Z.api.Mr())}),Z.events.Z(Z.api,"progresssync",Z.qn),Z.events.Z(Z.api,"appresize",Z.T)),Z.S=NaN,Wzn(Z),Z.Y.show(200)):(z&&g.ib(Z.events),Z.Y.hide(),Z.Y.stop())}; Wzn=function(Z){var Q=Z.j,z=Z.api.getCurrentTime(),K=Z.api.U$().getPlayerSize(),b=aO(Q,K.width);b=jU4(Q,b,z);Z.update({timestamp:g.mM(z)});b!==Z.S&&(Z.S=b,rur(Q,b,K.width),Q=b5X(Q,b,K.width),oc4(Z.W,Q,K.width,K.height))}; VvX=function(Z,Q){g.x.call(this,{B:"button",nN:["ytp-fullscreen-button","ytp-button"],C:{title:"{{title}}","aria-keyshortcuts":"f","data-priority":"11","data-title-no-tooltip":"{{data-title-no-tooltip}}"},W7:"{{icon}}"});this.J=Z;this.j=Q;this.message=null;this.Y=g.Te(this.j.FJ(),this.element);this.S=new g.E6(this.EG,2E3,this);g.W(this,this.S);this.Z(Z,"fullscreentoggled",this.Jg);this.Z(Z,"presentingplayerstatechange",this.E$);this.Z(Z,"resize",this.E$);this.listen("click",this.onClick);g.fS()&& (Q=this.J.U$(),this.Z(Q,UDW(),this.n_),this.Z(Q,M_G(document),this.gL));Z.N().F7||Z.N().X||this.disable();Z.createClientVe(this.element,this,139117);this.E$();this.Jg(Z.isFullscreen())}; HR=function(Z,Q){g.x.call(this,{B:"button",nN:["ytp-button","ytp-jump-button"],C:{title:"{{title}}","aria-keyshortcuts":"{{aria-keyshortcuts}}","data-title-no-tooltip":"{{data-title-no-tooltip}}"},G:[Q>0?{B:"svg",C:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},G:[{B:"path",nN:["ytp-circle-arrow","ytp-svg-fill"],C:{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"}}, {B:"text",nN:["ytp-jump-button-text","ytp-svg-fill"],C:{x:"7.05",y:"15.05"}}]}:{B:"svg",C:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},G:[{B:"path",nN:["ytp-circle-arrow","ytp-svg-fill"],C:{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"}}, {B:"text",nN:["ytp-jump-button-text","ytp-svg-fill"],C:{x:"6.5",y:"15"}}]}]});var z=this;this.J=Z;this.Y=Q;this.j=new g.E6(function(){z.S?(z.S=!1,z.j.start()):z.element.classList.remove("ytp-jump-spin","backwards")},250); this.S=!1;(Q=Q>0)?this.J.createClientVe(this.element,this,36843):this.J.createClientVe(this.element,this,36844);var K=g.fH(Q?"Seek forward $SECONDS seconds. (\u2192)":"Seek backwards $SECONDS seconds. (\u2190)",{SECONDS:Math.abs(this.Y).toString()});this.update({title:K,"data-title-no-tooltip":K,"aria-keyshortcuts":Q?"\u2192":"\u2190"});this.W=this.element.querySelector(".ytp-jump-button-text");this.W.textContent=Math.abs(this.Y).toString();this.listen("click",this.onClick,this);fW(Z,this.element, this)}; kPf=function(Z,Q){Q?Z.element.classList.add("ytp-jump-button-enabled"):Z.element.classList.remove("ytp-jump-button-enabled");Z.J.logVisibility(Z.element,Q);Z.J.Bv()}; MC=function(Z,Q){RX.call(this,Z,Q,"timedMarkerCueRange","View key moments");this.Z(Z,g.AH("timedMarkerCueRange"),this.E8);this.Z(Z,"updatemarkervisibility",this.updateVideoData)}; uQd=function(Z){var Q,z=(Q=Z.J.getVideoData())==null?void 0:Q.Qp;if(z)for(Z=Z.W.tG,z=g.n(z),Q=z.next();!Q.done;Q=z.next())if(Q=Z[Q.value]){var K=void 0,b=void 0,q=void 0;if(((K=Q.onTap)==null?void 0:(b=K.innertubeCommand)==null?void 0:(q=b.changeEngagementPanelVisibilityAction)==null?void 0:q.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return Q}}; Uk=function(Z){var Q=Z.V("web_enable_pip_on_miniplayer");g.x.call(this,{B:"button",nN:["ytp-miniplayer-button","ytp-button"],C:{title:"{{title}}","aria-keyshortcuts":"i","data-priority":"6","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},G:[Q?{B:"svg",C:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 -960 960 960",width:"100%"},G:[{B:"g",C:{transform:"translate(96, -96) scale(0.8)"},G:[{B:"path",KL:!0,C:{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"}}]}]}: Nrd()]});this.J=Z;this.visible=!1;this.listen("click",this.onClick);this.Z(Z,"fullscreentoggled",this.E$);this.updateValue("title",g.h2(Z,"Miniplayer","i"));this.update({"data-title-no-tooltip":"Miniplayer"});fW(Z,this.element,this);Z.createClientVe(this.element,this,62946);this.E$()}; Ok=function(Z,Q,z){z=z===void 0?!1:z;g.x.call(this,{B:"button",nN:["ytp-mute-button","ytp-button"],C:Z.N().tG?{title:"{{title}}","aria-keyshortcuts":"m","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-priority":"{{dataPriority}}"}:{"aria-disabled":"true","aria-haspopup":"true"},W7:"{{icon}}"});this.J=Z;this.KN=z;this.Y=null;this.W=this.U=this.K=this.SJ=NaN;this.P7=this.T=null;this.S=[];this.j=[];this.visible=!1;this.X=null;Z.V("delhi_modern_web_player")&&this.update({"data-priority":3}); z=this.J.N();this.updateValue("icon",Gy());this.tooltip=Q.FJ();this.Y=new g.jN({B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},G:[{B:"defs",G:[{B:"clipPath",C:{id:"ytp-svg-volume-animation-mask"},G:[{B:"path",C:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{B:"path",C:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{B:"path",D:"ytp-svg-volume-animation-mover",C:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{B:"clipPath",C:{id:"ytp-svg-volume-animation-slash-mask"}, G:[{B:"path",D:"ytp-svg-volume-animation-mover",C:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{B:"path",KL:!0,nN:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],C:{"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"}},{B:"path",KL:!0,nN:["ytp-svg-fill","ytp-svg-volume-animation-hider"],C:{"clip-path":"url(#ytp-svg-volume-animation-slash-mask)", d:"M 9.25,9 7.98,10.27 24.71,27 l 1.27,-1.27 Z",fill:"#fff"}}]});g.W(this,this.Y);this.T=this.Y.Ru("ytp-svg-volume-animation-speaker");this.P7=this.T.getAttribute("d");this.S=g.Wa("ytp-svg-volume-animation-mover",this.Y.element);this.j=g.Wa("ytp-svg-volume-animation-hider",this.Y.element);this.JG=new D_;g.W(this,this.JG);this.jJ=new D_;g.W(this,this.jJ);this.listen("click",this.Mpu);this.Z(Z,"appresize",this.qH);this.Z(Z,"onVolumeChange",this.onVolumeChange);var K=null;z.tG?this.addOnDisposeCallback(g.Te(Q.FJ(), this.element)):(Q="Your browser doesn't support changing the volume. $BEGIN_LINKLearn More$END_LINK".split(/\$(BEGIN|END)_LINK/),K=new g.CW(Z,{B:"span",nN:["ytp-popup","ytp-generic-popup"],C:{tabindex:"0"},G:[Q[0],{B:"a",C:{href:"https://support.google.com/youtube/?p=noaudio",target:z.U},W7:Q[2]},Q[4]]},100,!0),g.W(this,K),K.hide(),K.subscribe("show",function(b){Z.Sh(K,b)}),g.NZ(Z,K.element,4)); this.message=K;Z.createClientVe(this.element,this,28662);this.qH(Z.U$().getPlayerSize());this.setVolume(Z.getVolume(),Z.isMuted())}; Fzf=function(Z,Q){Z.SJ=Q;var z=Z.P7;Q&&(z+=$Cn(xLX,tvn,Q));Z.T.setAttribute("d",z)}; e10=function(Z,Q){Z.U=Q;for(var z=20*Q,K=0;K<Z.S.length;K++)Z.S[K].setAttribute("transform","translate("+z+", "+z+")");var b;Q===1?b=Gy():b=Z.Y;for(z=0;z<Z.j.length;z++){K=Z.j[z];var q=void 0;if((q=K)==null?0:q.style)K.style.display=Q===0?"none":""}b!==Z.X&&(Z.updateValue("icon",b),Z.X=b)}; g.oX=function(Z,Q){g.x.call(this,{B:"button",nN:["ytp-play-button","ytp-button"],C:{title:"{{title}}","aria-keyshortcuts":"k","data-title-no-tooltip":"{{data-title-no-tooltip}}"},W7:"{{icon}}"});this.J=Z;this.Y=null;this.transition=new D_;this.tooltip=Q.FJ();g.W(this,this.transition);Z.createClientVe(this.element,this,36842);Z.V("embeds_use_parent_visibility_in_ve_logging")?Z.logVisibility(this.element,this.L):Z.logVisibility(this.element,!0);this.Z(Z,"fullscreentoggled",this.onVideoDataChange);this.Z(Z, "presentingplayerstatechange",this.onStateChange);this.Z(Z,"videodatachange",this.onVideoDataChange);this.Q3(Z.getPlayerStateObject());this.listen("click",this.nV,this);this.addOnDisposeCallback(g.Te(Q.FJ(),this.element))}; wmf=function(Z){switch(Z){case 1:return JB();case 2:return yhn();case 3:return g.yw();case 4:return icf();default:return null}}; g.BR=function(Z,Q,z){g.x.call(this,{B:"a",nN:[z?"ytp-next-button":"ytp-prev-button","ytp-button"],C:{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}}"},G:[z?cI():GSG()]});var K=this;this.J=Z;this.Y=z;this.playlist=this.videoData=null;this.T= !1;this.W=this.K=this.j=null;this.S=!1;this.tooltip=Q.FJ();z?Z.createClientVe(this.element,this,6193):Z.createClientVe(this.element,this,6194);this.Z(Z,"fullscreentoggled",this.onVideoDataChange);this.Z(Z,"videodatachange",this.onVideoDataChange);this.Z(Z,"onPlaylistUpdate",this.onVideoDataChange);this.Z(Z,"onLoopRangeChange",this.onVideoDataChange);this.Y||this.Z(Z,"appresize",this.Dl);this.Z(Z,"mdxpreviousnextchange",function(){EcM(K);K.Dl()}); this.onVideoDataChange()}; le9=function(Z){Z.playlist&&Z.playlist.unsubscribe("shuffle",Z.onVideoDataChange,Z)}; sSG=function(Z){return!!Z.playlist&&!Z.Y&&!!Z.videoData&&!Z.videoData.isLivePlayback&&Z.J.getCurrentTime()>=3&&Z.J.getPresentingPlayerType()!==2}; Zq9=function(Z){var Q=mI(Z.J.W4());return Q?Z.Y?Q.C4():Q.x3():!1}; EcM=function(Z){var Q={duration:null,preview:null,text:null,title:null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},z=Z.playlist!=null&&Z.playlist.C4();z=g.IT(Z.J)&&(!Z.Y||z);var K=Z.Y&&g.Ge(Z.J),b=Zq9(Z),q=Z.Y&&Z.J.getPresentingPlayerType()===5,r=g.h2(Z.J,"Next","SHIFT+n"),D=g.h2(Z.J,"Previous","SHIFT+p");if(q)Q.title="Start video";else if(Z.S)Q.title="Replay";else if(z){var v=null;Z.playlist&&(v=g.cf(Z.playlist,Z.Y?eC4(Z.playlist):wRM(Z.playlist)));if(v){if(v.videoId){var Y=Z.playlist.listId; Q.url=Z.J.N().getVideoUrl(v.videoId,Y?Y.toString():void 0)}Q.text=v.title;Q.duration=v.lengthText?v.lengthText:v.lengthSeconds?g.mM(v.lengthSeconds):null;Q.preview=v.uI("mqdefault.jpg")}Z.Y?(Q.title=r,Q["data-title-no-tooltip"]="Next",Q["aria-keyshortcuts"]="SHIFT+n"):(Q.title=D,Q["data-title-no-tooltip"]="Previous",Q["aria-keyshortcuts"]="SHIFT+p")}else if(K){if(D=(v=Z.videoData)==null?void 0:g.FR(v))Q.url=D.qN(),Q.text=D.title,Q.duration=D.lengthText?D.lengthText:D.lengthSeconds?g.mM(D.lengthSeconds): null,Q.preview=D.uI("mqdefault.jpg");Q.title=r;Q["data-title-no-tooltip"]="Next";Q["aria-keyshortcuts"]="SHIFT+n"}Q.disabled=!K&&!z&&!b&&!q;Z.update(Q);Z.T=!!Q.url;K||z||Z.S||b||q?Z.j||(Z.j=g.Te(Z.tooltip,Z.element),Z.K=Z.listen("click",Z.onClick,Z)):Z.j&&(Z.j(),Z.j=null,Z.oy(Z.K),Z.K=null);Z.tooltip.Bv();g.vC(Z.element,"ytp-playlist-ui",Z.Y&&z)}; zDG=function(Z,Q){g.x.call(this,{B:"div",D:"ytp-fine-scrubbing",G:[{B:"div",D:"ytp-fine-scrubbing-draggable",G:[{B:"div",D:"ytp-fine-scrubbing-thumbnails",C:{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}}"}}]},{B:"div",C:{"aria-hidden":"true"},D:"ytp-fine-scrubbing-cursor"},{B:"div",D:"ytp-fine-scrubbing-seek-time",C:{"aria-hidden":"true"}, W7:"{{seekTime}}"},{B:"div",D:"ytp-fine-scrubbing-play",G:[JB()],C:{title:"Play from this position",role:"button"}},{B:"div",D:"ytp-fine-scrubbing-dismiss",G:[g.Li()],C:{title:"Exit precise seeking",role:"button"}}]});var z=this;this.api=Z;this.K=this.Ru("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.Ru("ytp-fine-scrubbing-dismiss");this.P7=this.Ru("ytp-fine-scrubbing-draggable");this.playButton=this.Ru("ytp-fine-scrubbing-play");this.thumbnails=[];this.j=[];this.Vp=this.Y=0;this.c7=void 0; this.jJ=NaN;this.tG=this.U=this.S=this.X=0;this.W=[];this.interval=this.frameCount=0;this.T=160;this.scale=1;this.Du=0;this.isEnabled=this.KN=!1;QSu(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.Te(Q,this.dismissButton));this.addOnDisposeCallback(g.Te(Q,this.playButton));this.JG=new g.EB(this.P7,!0);this.JG.subscribe("dragstart",this.ML,this);this.JG.subscribe("dragmove",this.Zl,this);this.JG.subscribe("dragend",this.tT,this);this.Z(Z,"SEEK_COMPLETE",this.eg);Z.V("web_fix_fine_scrubbing_false_play")&& this.Z(Z,"rootnodemousedown",function(K){z.SJ=K}); this.K.addEventListener("keydown",function(){}); g.W(this,this.JG);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.K,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}; QSu=function(Z,Q){var z=g.mM(Q),K=g.fH("Seek to $PROGRESS",{PROGRESS:g.mM(Q,!0)});Z.update({ariamin:0,ariamax:Math.floor(Z.api.getDuration()),arianow:Math.floor(Q),arianowtext:K,seekTime:z})}; K0f=function(Z){Z.jJ=NaN;Z.U=0;Z.X=Z.S}; rcW=function(Z){var Q=Z.api.Mr();if(Q){var z=90*Z.scale,K=aO(Q,160*Z.scale);if(Q=Q.levels[K]){Z.T=Q.width;if(!Z.W.length){K=[];for(var b=P1(Q,Q.uH()),q=Q.columns*Q.rows,r=Q.frameCount,D=0;D<=b;D++)for(var v=r<q?Math.ceil(r/Q.columns):Q.rows,Y=0;Y<Q.rows;Y++){var X=r<Q.columns?r:Q.columns,S={url:Q.sS(D),column:0,columns:X,row:Y,rows:v,sf:Q.width*X,qc:Q.height*v};K.push(S);r-=X;if(r<=1)break}Z.W=K;Z.frameCount=Q.XC();Z.interval=Q.Y/1E3||Z.api.getDuration()/Z.frameCount}for(;Z.thumbnails.length>Z.W.length;)K= void 0,(K=Z.thumbnails.pop())==null||K.dispose();for(;Z.thumbnails.length<Z.W.length;)K=new bq4,Z.thumbnails.push(K),K.zf(Z.K),g.W(Z,K);for(K=0;K<Z.W.length;K++)b=Z.thumbnails[K].element,q=Z.W[K],r=Z.T*Z.scale,D=q.qc/q.rows,v=z/D,b.style.background="url("+q.url+") 0 "+-q.row*q.qc/q.rows*v+"px/"+r*Q.columns+"px "+D*q.rows*v+"px",b.style.width=r*q.columns+"px",b.style.height=z+"px";WR(Z,Z.api.getCurrentTime());for(z=Z.api.getVideoData().Om;Z.j.length>z.length;)K=void 0,(K=Z.j.pop())==null||K.dispose(); for(;Z.j.length<z.length;)K=new qFr,Z.j.push(new qFr),g.W(Z,K);for(K=0;K<z.length;K++)b=z[K],Z.j[K].update({chapterTitle:b.title}),b=Math.round(b.startTime/Q.Y),q=Math.floor(b/Q.rows),g.Dw(Z.j[K].element,"transform","translateX("+b%Q.rows*Z.T*Z.scale+"px)"),q<Z.thumbnails.length&&Z.thumbnails[q]&&Z.j[K].zf(Z.thumbnails[q].element);Z.KN=!0}}}; WR=function(Z,Q){Z.SJ&&(Z.SJ.yS=!0);Z.update({seekTime:g.mM(Q)});var z=Z.T*Z.scale;Q=Q<Z.interval/2?-Q*z/Z.interval*2+Z.Y/2:-Q*z/Z.interval-z/2+Z.Y/2;Q=g.Al(Q,AcG(Z),Z.Y/2);Z.X=Q;Z.S=Z.X;g.Dw(Z.P7,"transform","translateX("+(Z.X-Z.Y/2)+"px)");g.Dw(Z.P7,"padding","0px "+Z.Y/2+"px");g.Dw(Z.K,"position","relative")}; jSG=function(Z,Q){var z=Z.T*Z.scale;Q-=Z.Y/2;return Q>-z?-Q/z*Z.interval*.5:-(Q+z/2)/z*Z.interval}; AcG=function(Z){return-((Z.K.offsetWidth||(Z.frameCount-1)*Z.T*Z.scale)-Z.Y/2)}; bq4=function(){g.x.call(this,{B:"div",D:"ytp-fine-scrubbing-thumbnail"})}; qFr=function(){g.x.call(this,{B:"div",D:"ytp-fine-scrubbing-chapter-title",G:[{B:"div",D:"ytp-fine-scrubbing-chapter-title-content",W7:"{{chapterTitle}}"}]})}; DSr=function(Z){g.x.call(this,{B:"div",D:"ytp-heat-map-chapter",G:[{B:"svg",D:"ytp-heat-map-svg",C:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},G:[{B:"defs",G:[{B:"clipPath",C:{id:"{{id}}"},G:[{B:"path",D:"ytp-heat-map-path",C:{d:"",fill:"white"}}]},{B:"linearGradient",C:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},G:[{B:"stop",C:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{B:"stop",C:{offset:"100%", "stop-color":"white","stop-opacity":"0"}}]}]},{B:"rect",D:"ytp-heat-map-graph",C:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{B:"rect",D:"ytp-heat-map-hover",C:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{B:"rect",D:"ytp-heat-map-play",C:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{B:"path",D:"ytp-modern-heat-map",C:{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=Z;this.X=this.Ru("ytp-heat-map-svg");this.K=this.Ru("ytp-heat-map-path");this.W=this.Ru("ytp-heat-map-graph");this.T=this.Ru("ytp-heat-map-play");this.Y=this.Ru("ytp-heat-map-hover");this.S=this.Ru("ytp-modern-heat-map");this.hH=!1;this.j=60;Z=""+g.e4(this);this.update({id:Z});Z="url(#"+Z+")";this.W.setAttribute("clip-path",Z);this.T.setAttribute("clip-path",Z);this.Y.setAttribute("clip-path", Z)}; vIn=function(Z,Q){Q>0&&(Z.j=Q,Z.X.style.height=Z.j+"px")}; Vm=function(){g.x.call(this,{B:"div",D:"ytp-chapter-hover-container",G:[{B:"div",D:"ytp-progress-bar-padding"},{B:"div",D:"ytp-progress-list",G:[{B:"div",nN:["ytp-play-progress","ytp-swatch-background-color"]},{B:"div",D:"ytp-progress-linear-live-buffer"},{B:"div",D:"ytp-load-progress"},{B:"div",D:"ytp-hover-progress"},{B:"div",D:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.j=this.Ru("ytp-progress-list");this.K=this.Ru("ytp-progress-linear-live-buffer"); this.W=this.Ru("ytp-ad-progress-list");this.T=this.Ru("ytp-load-progress");this.X=this.Ru("ytp-play-progress");this.S=this.Ru("ytp-hover-progress");this.Y=this.Ru("ytp-chapter-hover-container")}; kb=function(Z,Q){g.Dw(Z.Y,"width",Q)}; gIW=function(Z,Q){g.Dw(Z.Y,"margin-right",Q+"px")}; YF4=function(){this.j=this.position=this.S=this.Y=this.W=this.width=NaN}; Xt4=function(){g.x.call(this,{B:"div",D:"ytp-timed-marker"});this.Y=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; g.xb=function(Z,Q){g.gV.call(this,{B:"div",D:"ytp-progress-bar-container",C:{"aria-disabled":"true"},G:[{B:"div",nN:["ytp-heat-map-container"],G:[{B:"div",D:"ytp-heat-map-edu"}]},{B:"div",nN:["ytp-progress-bar"],C:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},G:[{B:"div",D:"ytp-chapters-container"},{B:"div",D:"ytp-timed-markers-container"},{B:"div",D:"ytp-clip-start-exclude"}, {B:"div",D:"ytp-clip-end-exclude"},{B:"div",D:"ytp-scrubber-container",G:[{B:"div",nN:["ytp-scrubber-button","ytp-swatch-background-color"],G:[{B:"div",D:"ytp-scrubber-pull-indicator"},{B:"img",nN:["ytp-decorated-scrubber-button"]}]}]}]},{B:"div",nN:["ytp-fine-scrubbing-container"],G:[{B:"div",D:"ytp-fine-scrubbing-edu"}]},{B:"div",D:"ytp-bound-time-left",W7:"{{boundTimeLeft}}"},{B:"div",D:"ytp-bound-time-right",W7:"{{boundTimeRight}}"},{B:"div",D:"ytp-clip-start",C:{title:"{{clipstarttitle}}"},W7:"{{clipstarticon}}"}, {B:"div",D:"ytp-clip-end",C:{title:"{{clipendtitle}}"},W7:"{{clipendicon}}"}]});this.api=Z;this.y7=!1;this.Uv=this.lI=this.Zu=this.K=this.Vr=0;this.Pg=null;this.yk=!1;this.Vp={};this.sA={};this.clipEnd=Infinity;this.F7=this.Ru("ytp-clip-end");this.Sp=new g.EB(this.F7,!0);this.ih=this.Ru("ytp-clip-end-exclude");this.Ph=this.Ru("ytp-clip-start-exclude");this.clipStart=0;this.X7=this.Ru("ytp-clip-start");this.fL=new g.EB(this.X7,!0);this.U=this.qB=0;this.progressBar=this.Ru("ytp-progress-bar");this.Qp= {};this.tG={};this.gq=this.Ru("ytp-chapters-container");this.LK=this.Ru("ytp-timed-markers-container");this.Y=[];this.T=[];this.aC={};this.Q7=null;this.P7=-1;this.CN=this.JG=0;this.IW=this.X=null;this.bY=this.Ru("ytp-scrubber-button");this.De=this.Ru("ytp-decorated-scrubber-button");this.J6=this.Ru("ytp-scrubber-container");this.NB=new g.Yv;this.YJ=new YF4;this.S=new PM(0,0);this.Vw=null;this.jJ=this.N8=!1;this.YE=null;this.SJ=this.Ru("ytp-heat-map-container");this.kL=this.Ru("ytp-heat-map-edu"); this.W=[];this.heatMarkersDecorations=[];this.s$=this.Ru("ytp-fine-scrubbing-container");this.A4=this.Ru("ytp-fine-scrubbing-edu");this.j=void 0;this.KN=this.zJ=this.c7=!1;this.tooltip=Q.FJ();this.addOnDisposeCallback(g.Te(this.tooltip,this.F7));g.W(this,this.Sp);this.Sp.subscribe("hoverstart",this.BA,this);this.Sp.subscribe("hoverend",this.dC,this);this.Z(this.F7,"click",this.aI);this.addOnDisposeCallback(g.Te(this.tooltip,this.X7));g.W(this,this.fL);this.fL.subscribe("hoverstart",this.BA,this); this.fL.subscribe("hoverend",this.dC,this);this.Z(this.X7,"click",this.aI);SFD(this);this.Z(Z,"resize",this.pL);this.Z(Z,"presentingplayerstatechange",this.juF);this.Z(Z,"videodatachange",this.AL);this.Z(Z,"videoplayerreset",this.p7h);this.Z(Z,"cuerangesadded",this.s6h);this.Z(Z,"cuerangesremoved",this.S6J);this.Z(Z,"onLoopRangeChange",this.AK);this.Z(Z,"innertubeCommand",this.onClickCommand);this.Z(Z,g.r7("timedMarkerCueRange"),this.IG$);this.Z(Z,"updatemarkervisibility",this.V9);this.Z(Z,"serverstitchedvideochange", this.yxI);this.updateVideoData(Z.getVideoData(),!0);this.AK(Z.getLoopRange());uj(this)&&!this.j&&(this.j=new zDG(this.api,this.tooltip),Z=g.f4(this.element).x||0,this.j.pL(Z,this.K),this.j.zf(this.s$),g.W(this,this.j),this.Z(this.j.dismissButton,"click",this.Gb),this.Z(this.j.playButton,"click",this.V$),this.Z(this.j.element,"dblclick",this.V$));this.api.createClientVe(this.SJ,this,139609,!0);this.api.createClientVe(this.kL,this,140127,!0);this.api.createClientVe(this.A4,this,151179,!0);this.api.createClientVe(this.progressBar, this,38856,!0)}; SFD=function(Z){if(Z.Y.length===0){var Q=new Vm;Z.Y.push(Q);g.W(Z,Q);Q.zf(Z.gq,0)}for(;Z.Y.length>1;)Z.Y.pop().dispose();kb(Z.Y[0],"100%");Z.Y[0].startTime=0;Z.Y[0].title=""}; $S0=function(Z){var Q=Q===void 0?NaN:Q;var z=new DSr(Z.api);Z.W.push(z);g.W(Z,z);z.zf(Z.SJ);Q>=0&&(z.element.style.width=Q+"px")}; TN0=function(Z){for(;Z.T.length;)Z.T.pop().dispose()}; hDD=function(Z){var Q,z,K,b,q;return(q=g.V((b=g.V((Q=Z.getWatchNextResponse())==null?void 0:(z=Q.playerOverlays)==null?void 0:(K=z.playerOverlayRenderer)==null?void 0:K.decoratedPlayerBarRenderer,nU))==null?void 0:b.playerBar,fZn))==null?void 0:q.chapters}; L0n=function(Z){for(var Q=Z.Y,z=[],K=0;K<Q.length;K++)if(!isNaN(Q[K].startTime)){var b=Q[K].startTime;b=new g.b6(b,K===Q.length-1?Infinity:Q[K+1].startTime,{namespace:"chapterCueRange",priority:9,id:"c_"+b});z.push(b)}Z.api.US("chapterCueRange");Z.api.df(z)}; NNG=function(Z,Q){var z,K=(z=Z.Qp[Q])==null?void 0:z.chapters;K&&(nI4(Z,K),Z.api.getVideoData().Om=Z.Y,L0n(Z));var b;if((z=(b=Z.Qp[Q])==null?void 0:b.markers)&&Q!=="HEATSEEKER"){TN0(Z);b=g.n(z);for(z=b.next();!z.done;z=b.next())if(K=z.value,z=new Xt4,K=g.V(K,g.ccG)){var q=void 0;z.title=((q=K.title)==null?void 0:q.simpleText)||"";q=void 0;z.timeRangeStartMillis=(q=K.timeRangeStartMillis)!=null?q:NaN;var r=q=void 0;z.onActiveCommand=(r=(q=K)==null?void 0:q.onActiveCommand)!=null?r:void 0;mSr(Z,z)}IZn(Z, Z.T);b=Z.T;z=Z.aC;K=[];for(q=0;q<b.length;q++)!isNaN(b[q].timeRangeStartMillis)&&b[q].onActiveCommand&&(r=b6G(b[q].timeRangeStartMillis,q===b.length-1?Infinity:b[q+1].timeRangeStartMillis),K.push(r),z[r.id]=b[q].onActiveCommand);Z.api.df(K)}var D;if(Q=g.V((D=Z.Qp[Q])==null?void 0:D.heatmap,Jcn)){D=Q.heatMarkers||[];var v;b=(v=Q.minHeightDp)!=null?v:0;var Y;v=(Y=Q.maxHeightDp)!=null?Y:60;Y=Z.Y.length;z=null;for(K=0;K<Y;K++){r=Z.Y[K].startTime;var X=K===Y-1?Infinity:Z.Y[K+1].startTime;K===Z.W.length&& $S0(Z);q=[];z&&q.push(z);for(var S=g.n(D),T=S.next();!T.done;T=S.next()){T=T.value;var f=void 0,h=void 0,m=(h=(f=g.V(T,ycW))==null?void 0:f.timeRangeStartMillis)!=null?h:-1;m>=r&&m<=X&&q.push(T)}v>0&&(Z.SJ.style.height=v+"px");r=Z.W[K];X=q;T=b;h=v;m=K===0;m=m===void 0?!1:m;vIn(r,h);S=X;f=r.j;m=m===void 0?!1:m;var J=1E3/S.length,d=[];d.push({x:0,y:100});for(var G=0;G<S.length;G++){var R=void 0,U=((R=g.V(S[G],ycW))==null?void 0:R.heatMarkerIntensityScoreNormalized)||0;R=(G+.5)*J;U=100-g.Al(U*100,T/ f*100,h/f*100);G!==0||m||d.push({x:0,y:U});d.push({x:R,y:U});G===S.length-1&&d.push({x:1E3,y:U})}d.push({x:1E3,y:100});S=d;X=X.length===0?"":ltn(S);r.api.V("delhi_modern_web_player")?r.S.setAttribute("d",X):r.K.setAttribute("d",X);r.hH=X!=="";g.vC(r.api.getRootNode(),"ytp-heat-map",r.hH);g.vC(r.api.getRootNode(),"ytp-heat-map-played_bar",r.api.V("web_player_heat_map_played_bar")&&X!=="");r.api.V("delhi_modern_web_player")&&(r.S.style.display="block",r.W.style.display="none",r.Y.style.display="none"); q.length>0&&(z=q[q.length-1])}g.t3(Z);D=[];Q=g.n(Q.heatMarkersDecorations||[]);for(b=Q.next();!b.done;b=Q.next())if(b=g.V(b.value,dSX))v=b.label,K=z=Y=void 0,D.push({visibleTimeRangeStartMillis:(Y=b.visibleTimeRangeStartMillis)!=null?Y:-1,visibleTimeRangeEndMillis:(z=b.visibleTimeRangeEndMillis)!=null?z:-1,decorationTimeMillis:(K=b.decorationTimeMillis)!=null?K:NaN,label:v?g.SN(v):""});Z.heatMarkersDecorations=D}}; mSr=function(Z,Q){Z.T.push(Q);g.W(Z,Q);Q.zf(Z.LK,Z.LK.children.length)}; IZn=function(Z,Q){Q=g.n(Q);for(var z=Q.next();!z.done;z=Q.next()){z=z.value;var K=FE(Z,z.timeRangeStartMillis/(Z.S.Y*1E3),eb(Z));g.Dw(z.element,"transform","translateX("+K+"px) scaleX(0.6)")}}; nI4=function(Z,Q){var z=0,K=!1;Q=g.n(Q);for(var b=Q.next();!b.done;b=Q.next()){b=b.value;if(g.V(b,GjD)){b=g.V(b,GjD);var q={startTime:NaN,title:null,onActiveCommand:void 0},r=b.title;q.title=r?g.SN(r):"";r=b.timeRangeStartMillis;r!=null&&(q.startTime=r);q.onActiveCommand=b.onActiveCommand;b=q;z===0&&b.startTime!==0&&(Z.Y[z].startTime=0,Z.Y[z].title="",Z.Y[z].onActiveCommand=b.onActiveCommand,z++,K=!0);Z.Y.length<=z&&(q=new Vm,Z.Y.push(q),g.W(Z,q),q.zf(Z.gq,Z.gq.children.length));Z.Y[z].startTime= b.startTime;Z.Y[z].title=b.title?b.title:"";Z.Y[z].onActiveCommand=b.onActiveCommand;Z.Y[z].index=K?z-1:z}z++}for(;z<Z.Y.length;)Z.Y.pop().dispose();g.t3(Z);w$(Z)}; g.t3=function(Z){Z.JG=Z.Y.length-1;Z.CN=0;iqX(Z,!0)&&iqX(Z,!1);for(var Q=0,z=0;z<Z.Y.length;z++)if(Z.Y[z].width===0){if(z===Z.Y.length-1)for(var K=Z.Y.length-1;K>=0;K--)if(Z.Y[K].width>0){gIW(Z.Y[K],0);var b=Math.floor(Z.Y[K].width);Z.Y[K].width=b;kb(Z.Y[K],b+"px");break}Z.Y[z].width=0;kb(Z.Y[z],"0")}else z===Z.Y.length-1?(K=Math.floor(Z.Y[z].width+Q),Z.Y[z].width=K,kb(Z.Y[z],K+"px")):(Q=Z.Y[z].width+Q,K=Math.round(Q),Q-=K,Z.Y[z].width=K,kb(Z.Y[z],K+"px"));z=0;if(Z.W.length===Z.Y.length)for(Q=0;Q< Z.W.length;Q++)K=Z.Y[Q].width,Z.W[Q].element.style.width=K+"px",Z.W[Q].element.style.left=z+"px",z+=K+Ek(Z);Z.api.V("delhi_modern_web_player")&&(Z.Y.length===1?Z.Y[0].j.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(Z.Y[0].j.classList.remove("ytp-progress-bar-end"),Z.Y[0].j.classList.add("ytp-progress-bar-start"),Z.Y[Z.Y.length-1].j.classList.add("ytp-progress-bar-end")))}; iqX=function(Z,Q){var z=0,K=!1,b=Z.Y.length,q=Z.S.Y*1E3;q===0&&(q=Z.api.getProgressState().seekableEnd*1E3);if(q>0&&Z.K>0){for(var r=Z.K-Ek(Z)*Z.JG,D=Z.CN===0?3:r*Z.CN,v=g.n(Z.Y),Y=v.next();!Y.done;Y=v.next())Y.value.width=0;for(;z<b;){v=q-Z.Y[z].startTime;z<b-1&&(v=Z.Y[z+1].startTime-Z.Y[z].startTime,gIW(Z.Y[z],Ek(Z)));g.vC(Z.Y[z].Y,"ytp-exp-chapter-hover-container",Z.Y.length>1);Y=(q===0?0:v/q*r)+Z.Y[z].width;if(Y>D)Z.Y[z].width=Y;else{Z.Y[z].width=0;var X=Z,S=z,T=X.Y[S-1];T!==void 0&&T.width>0? T.width+=Y:S<X.Y.length-1&&(X.Y[S+1].width+=Y);gIW(X.Y[S],0);Q&&(Z.JG--,v/q>Z.CN&&(Z.CN=v/q),K=!0)}z++}}return K}; w$=function(Z){if(Z.K){var Q=Z.api.getProgressState(),z=Z.api.getVideoData();if(!(z&&z.enableServerStitchedDai&&z.enablePreroll)||isFinite(Q.current)){var K;if(((K=Z.api.getVideoData())==null?0:Fo(K))&&Q.airingStart&&Q.airingEnd)var b=lj(Z,Q.airingStart,Q.airingEnd);else if(Z.api.getPresentingPlayerType()===2&&Z.api.N().V("show_preskip_progress_bar_for_skippable_ads")){var q,r,D;b=(z=(b=Z.api.getVideoData())==null?void 0:(q=b.getPlayerResponse())==null?void 0:(r=q.playerConfig)==null?void 0:(D=r.webPlayerConfig)== null?void 0:D.skippableAdProgressBarDuration)?lj(Z,Q.seekableStart,z/1E3):lj(Z,Q.seekableStart,Q.seekableEnd)}else b=lj(Z,Q.seekableStart,Q.seekableEnd);q=Rs(b,Q.loaded,0);Q=Rs(b,Q.current,0);r=Z.S.j!==b.j||Z.S.Y!==b.Y;Z.S=b;sA(Z,Q,q);r&&aZu(Z);PLf(Z)}}}; lj=function(Z,Q,z){return RDx(Z)?new PM(Math.max(Q,Z.Vw.startTimeMs/1E3),Math.min(z,Z.Vw.endTimeMs/1E3)):new PM(Q,z)}; CLr=function(Z,Q){var z;if(((z=Z.Vw)==null?void 0:z.type)==="repeatChapter"||(Q==null?void 0:Q.type)==="repeatChapter")Q&&(Q=Z.Y[Th(Z.Y,Q.startTimeMs)],g.vC(Q.Y,"ytp-repeating-chapter",!1)),Z.Vw&&(Q=Z.Y[Th(Z.Y,Z.Vw.startTimeMs)],g.vC(Q.Y,"ytp-repeating-chapter",!0)),Z.Y.forEach(function(K){g.vC(K.Y,"ytp-exp-chapter-hover-container",!Z.Vw)})}; Qv=function(Z,Q){var z=Z.S;z=z.j+Q.j*z.getLength();if(Z.Y.length>1){z=ZK(Z,Q.S,!0);for(var K=0,b=0;b<z;b++)Z.Y[b].width>0&&(K+=Z.Y[b].width,K+=Ek(Z));z=(Z.Y[z].startTime+(Q.S-K)/Z.Y[z].width*((z===Z.Y.length-1?Z.S.Y*1E3:Z.Y[z+1].startTime)-Z.Y[z].startTime))/1E3||0}return z}; z3=function(Z,Q,z,K,b){Q=Q<0?0:Math.floor(Math.min(Q,Z.api.getDuration())*1E3);z=z<0?0:Math.floor(Math.min(z,Z.api.getDuration())*1E3);Z=Z.progressBar.visualElement;K={seekData:{startMediaTimeMs:Q,endMediaTimeMs:z,seekSource:K}};(Q=g.Jy())&&g.lW(Eu)(void 0,Q,Z,b,K,void 0)}; ptW=function(Z,Q,z){if(z>=Z.Y.length)return!1;var K=Z.K-Ek(Z)*Z.JG;return Math.abs(Q-Z.Y[z].startTime/1E3)/Z.S.Y*K<4}; aZu=function(Z){Z.bY.style.removeProperty("height");for(var Q=g.n(Object.keys(Z.Vp)),z=Q.next();!z.done;z=Q.next())Hqd(Z,z.value);Ka(Z);sA(Z,Z.U,Z.qB)}; eb=function(Z){var Q=Z.NB.x;Q=g.Al(Q,0,Z.K);Z.YJ.update(Q,Z.K);return Z.YJ}; q3=function(Z){return(Z.jJ?135:90)-bd(Z)}; bd=function(Z){var Q=48,z=Z.api.N();Z.jJ?Q=54:g.mj(z)&&!z.j?Q=40:Z.api.V("delhi_modern_web_player")&&(Q=68);return Q}; sA=function(Z,Q,z){Z.U=Q;Z.qB=z;var K=eb(Z),b=Z.S.Y;var q=Z.S;q=q.j+Z.U*q.getLength();var r=g.fH("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.mM(q,!0),DURATION:g.mM(b,!0)}),D=Th(Z.Y,q*1E3);D=Z.Y[D].title;Z.update({ariamin:Math.floor(Z.S.j),ariamax:Math.floor(b),arianow:Math.floor(q),arianowtext:D?D+" "+r:r});b=Z.clipStart;q=Z.clipEnd;Z.Vw&&Z.api.getPresentingPlayerType()!==2&&(b=Z.Vw.startTimeMs/1E3,q=Z.Vw.endTimeMs/1E3);b=Rs(Z.S,b,0);D=Rs(Z.S,q,1);r=Z.api.getVideoData();q=g.Al(Q,b,D);z=(r==null? 0:g.xG(r))?1:g.Al(z,b,D);Q=FE(Z,Q,K);g.Dw(Z.J6,"transform","translateX("+Q+"px)");Z.api.V("delhi_modern_web_player")&&MKx(Z,Q);ry(Z,K,b,q,"PLAY_PROGRESS");(r==null?0:Fo(r))?(Q=Z.api.getProgressState().seekableEnd)&&ry(Z,K,q,Rs(Z.S,Q),"LIVE_BUFFER"):ry(Z,K,b,z,"LOAD_PROGRESS");if(Z.api.V("web_player_heat_map_played_bar")){var v;(v=Z.W[0])!=null&&v.T.setAttribute("width",(q*100).toFixed(2)+"%")}}; MKx=function(Z,Q){Q||(Q=FE(Z,Z.U,eb(Z)));var z=Z.yk?36:28,K=Q-z/2;Q+=z/2;Z.gq.style.clipPath='path("M 0 0 L 0 8 L '+(K+" 8 C "+(K+6+" 8 "+(K+6)+" 0 "+K+" 0 L 0 0 M ")+(Q+" 0 L ")+(Z.K+" 0 L ")+(Z.K+" 8 L ")+(Q+" 8 C ")+(Q-6+" 8 "+(Q-6)+" 0 "+Q+' 0")'))}; ry=function(Z,Q,z,K,b){var q=Z.Y.length,r=Q.Y-Z.JG*Ek(Z),D=z*r;z=ZK(Z,D);var v=K*r;r=ZK(Z,v);b==="HOVER_PROGRESS"&&(r=ZK(Z,Q.Y*K,!0),v=Q.Y*K-USd(Z,Q.Y*K)*Ek(Z));K=Math.max(D-Oqu(Z,z),0);for(D=z;D<q;D++)Z.Y[D].OA(b).style.left=z===D?K+"px":"0";Q=FE(Z,Z.U,Q);for(q=z;q<r;q++){D=Z.Y[q].OA(b);var Y=Z.Y[q].width,X=q===z?Y-K:Y;Aa(Z,D,X,Y);oIu(Z,D,X,Y,q,Q,b)}q=Z.Y[r].width;v=g.Al(v-Oqu(Z,r),0,q);z===r&&(v-=K);K=Z.Y[r].OA(b);Aa(Z,K,v,q);oIu(Z,K,v,q,r,Q,b);v=Z.Y.length;for(r+=1;r<v;r++)BNn(Z,r,b);for(r=0;r< z;r++)BNn(Z,r,b)}; Oqu=function(Z,Q){if(Q>=Z.Y.length)return Z.K;for(var z=0,K=0;K<Q;)z+=Z.Y[K].width,K++;return z}; BNn=function(Z,Q,z){z=Z.Y[Q].OA(z);Aa(Z,z,0,Z.Y[Q].width)}; oIu=function(Z,Q,z,K,b,q,r){r==="PLAY_PROGRESS"&&(z=!K||Z.api.N().j?1:z/K,Z.Ph.clientWidth>0||Z.ih.clientWidth>0?(q=Q.clientWidth/z,Z=-1*Z.Ph.clientWidth/z):(q/=z,Z=-1*Z.Y[b].element.offsetLeft/z),g.Dw(Q,"background-size",q+"px"),g.Dw(Q,"background-position-x",Z+"px"))}; Aa=function(Z,Q,z,K,b){b||Z.api.N().j?Q.style.width=z+"px":g.Dw(Q,"transform","scalex("+(K?z/K:0)+")")}; ZK=function(Z,Q,z){var K=0;(z===void 0?0:z)&&(Q-=USd(Z,Q)*Ek(Z));z=g.n(Z.Y);for(var b=z.next();!b.done;b=z.next()){b=b.value;if(Q>b.width)Q-=b.width;else break;K++}return K===Z.Y.length?K-1:K}; FE=function(Z,Q,z){var K=Q*Z.S.Y*1E3;for(var b=-1,q=g.n(Z.Y),r=q.next();!r.done;r=q.next())r=r.value,K>r.startTime&&r.width>0&&b++;K=b<0?0:b;b=z.Y-Ek(Z)*Z.JG;return Q*b+Ek(Z)*K+z.W}; USd=function(Z,Q){for(var z=Z.Y.length,K=0,b=g.n(Z.Y),q=b.next();!q.done;q=b.next())if(q=q.value,q.width!==0)if(Q>q.width)Q-=q.width,Q-=Ek(Z),K++;else break;return K===z?z-1:K}; g.W0D=function(Z,Q,z,K){var b=Z.K!==z,q=Z.jJ!==K;Z.Vr=Q;Z.K=z;Z.jJ=K;uj(Z)&&(Q=Z.j)!=null&&(Q.scale=K?1.5:1);aZu(Z);Z.Y.length===1&&(Z.Y[0].width=z||0);b&&g.t3(Z);Z.j&&q&&uj(Z)&&(Z.j.isEnabled&&(z=Z.jJ?135:90,K=z-bd(Z),Z.s$.style.height=z+"px",g.Dw(Z.SJ,"transform","translateY("+-K+"px)"),g.Dw(Z.progressBar,"transform","translateY("+-K+"px)")),rcW(Z.j))}; Ka=function(Z){var Q=!!Z.Vw&&Z.api.getPresentingPlayerType()!==2,z=Z.clipStart,K=Z.clipEnd,b=!0,q=!0;Q&&Z.Vw?(z=Z.Vw.startTimeMs/1E3,K=Z.Vw.endTimeMs/1E3):(b=z>Z.S.j,q=Z.S.Y>0&&K<Z.S.Y);var r,D;if(((r=Z.Vw)==null?0:r.postId)||((D=Z.Vw)==null?void 0:D.type)==="repeatChapter")q=b=!1;g.vC(Z.element,"ytp-loop-range-enabled",Q);g.vC(Z.element,"ytp-clip-start-enabled",b);g.vC(Z.element,"ytp-clip-end-enabled",q);Q=b?Rs(Z.S,z,0):0;K=q?Rs(Z.S,K,1):1;Z.X7.style.left=Math.round(Q*1E3)/10+"%";Z.F7.style.left= Math.round(K*1E3)/10+"%";Z.Ph.style.width=Math.round(Q*1E3)/10+"%";Z.ih.style.left=Math.round(K*1E3)/10+"%";Z.ih.style.width=Math.round((1-K)*1E3)/10+"%"}; PLf=function(Z){var Q;if((Q=Z.api.getVideoData())==null||!Fo(Q)){Q=eb(Z);ry(Z,Q,Z.U,Math.max(Q.j,Z.U),"HOVER_PROGRESS");for(var z=ZK(Z,Q.Y*Z.U,!0),K=ZK(Z,Q.S,!0),b=z;b<=K;b++)g.vC(Z.Y[b].S,"ytp-hover-progress-light",Q.j>Z.U);g.vC(Z.bY,"ytp-scrubber-button-hover",z===K&&Z.Y.length>1);if(Z.api.V("web_player_heat_map_played_bar")){var q;(q=Z.W[0])!=null&&q.Y.setAttribute("width",(Q.j*100).toFixed(2)+"%")}}}; Hqd=function(Z,Q){var z=Z.Vp[Q];Q=Z.sA[Q];var K=eb(Z),b=Rs(Z.S,z.start/1E3,0),q=q20(z,Z.jJ)/K.width;var r=Rs(Z.S,z.end/1E3,1);q!==Number.POSITIVE_INFINITY&&(b=g.Al(b,0,r-q));r=Math.min(r,b+q);z.color&&(Q.style.background=z.color);z=b;Q.style.left=Math.max(z*K.Y+K.W,0)+"px";Aa(Z,Q,g.Al((r-z)*K.Y+K.W,0,K.width),K.width,!0)}; VKf=function(Z,Q){var z=Q.getId();Z.Vp[z]===Q&&(g.K$(Z.sA[z]),delete Z.Vp[z],delete Z.sA[z])}; uj=function(Z){var Q=g.ka(Z.api.N())&&(Z.api.V("web_shorts_pip")||Z.api.V("web_watch_pip")),z;return!((z=Z.api.getVideoData())==null?0:z.isLivePlayback)&&!Z.api.isMinimized()&&!Z.api.isInline()&&(!Z.api.m$()||!Q)}; jQ=function(Z){Z.j&&(Z.j.disable(),Z.Zu=0,Z.SJ.style.removeProperty("transform"),Z.progressBar.style.removeProperty("transform"),Z.s$.style.removeProperty("height"),Z.element.parentElement&&Z.element.parentElement.style.removeProperty("height"))}; kjM=function(Z,Q){var z=Q/q3(Z)*bd(Z);g.Dw(Z.progressBar,"transform","translateY("+-Q+"px)");g.Dw(Z.SJ,"transform","translateY("+-Q+"px)");g.Dw(Z.s$,"transform","translateY("+z+"px)");Z.s$.style.height=Q+z+"px";Z.element.parentElement&&(Z.element.parentElement.style.height=bd(Z)-z+"px")}; ubn=function(Z,Q){Q?Z.X||(Z.element.removeAttribute("aria-disabled"),Z.X=new g.EB(Z.progressBar,!0),Z.X.subscribe("hovermove",Z.poB,Z),Z.X.subscribe("hoverend",Z.Iah,Z),Z.X.subscribe("dragstart",Z.YSf,Z),Z.X.subscribe("dragmove",Z.ifu,Z),Z.X.subscribe("dragend",Z.jWF,Z),Z.api&&Z.api.V("delhi_modern_web_player")&&(Z.IW=new g.EB(Z.progressBar,!0),Z.IW.subscribe("hoverstart",function(){Z.yk=!0;MKx(Z)},Z),Z.IW.subscribe("hoverend",function(){Z.yk=!1; MKx(Z)},Z)),Z.YE=Z.listen("keydown",Z.fR)):Z.X&&(Z.element.setAttribute("aria-disabled","true"),Z.oy(Z.YE),Z.X.cancel(),Z.X.dispose(),Z.X=null)}; Ek=function(Z){return Z.api.V("delhi_modern_web_player")?4:Z.jJ?3:2}; RDx=function(Z){var Q;return!((Q=Z.Vw)==null||!Q.postId)&&Z.api.getPresentingPlayerType()!==2}; DK=function(Z,Q){g.x.call(this,{B:"button",nN:["ytp-remote-button","ytp-button"],C:{title:"Play on TV","aria-haspopup":"true","data-priority":"9"},W7:"{{icon}}"});this.J=Z;this.Kd=Q;this.Y=null;this.Z(Z,"onMdxReceiversChange",this.E$);this.Z(Z,"presentingplayerstatechange",this.E$);this.Z(Z,"appresize",this.E$);Z.createClientVe(this.element,this,139118);this.E$();this.listen("click",this.j,this);fW(Z,this.element,this)}; vU=function(Z,Q){g.x.call(this,{B:"button",nN:["ytp-button","ytp-settings-button"],C:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":AB(),title:"Settings","data-tooltip-target-id":"ytp-settings-button"},G:[g.dV()]});this.J=Z;this.Kd=Q;this.j=!0;this.listen("click",this.S);this.Z(Z,"onPlaybackQualityChange",this.updateBadge);this.Z(Z,"videodatachange",this.updateBadge);this.Z(Z,"webglsettingschanged",this.updateBadge);this.Z(Z,"appresize",this.Y);fW(Z,this.element,this);this.J.createClientVe(this.element, this,28663);this.updateBadge();this.Y(Z.U$().getPlayerSize())}; xS4=function(Z,Q){Z.j=!!Q;Z.Y(Z.J.U$().getPlayerSize())}; gy=function(Z,Q){wR.call(this,"Annotations",g.zN.Ul);this.J=Z;this.Kd=Q;this.Y=!1;Z.V("web_settings_menu_icons")&&this.setIcon({B:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},G:[{B:"path",C:{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.Z(Z,"videodatachange",this.E$);this.Z(Z,"onApiChange",this.E$);this.subscribe("select",this.onSelect,this);this.E$()}; YJ=function(Z,Q){g.Fk.call(this,"Audio track",g.zN.AUDIO,Z,Q);this.J=Z;this.tracks={};g.rd(this.element,"ytp-audio-menu-item");this.countLabel=new g.x({B:"div",G:[{B:"span",W7:"Audio track"},{B:"span",D:"ytp-menuitem-label-count",W7:"{{content}}"}]});Z.V("web_settings_menu_icons")&&this.setIcon({B:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},G:[{B:"path",C:{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.W(this,this.countLabel);g.Uq(this,this.countLabel);this.Z(Z,"videodatachange",this.E$);this.Z(Z,"onPlaybackAudioChange",this.E$);this.E$()}; Xj=function(Z,Q){wR.call(this,"Autoplay",g.zN.j7);this.J=Z;this.Kd=Q;this.Y=!1;this.S=[];this.Z(Z,"presentingplayerstatechange",this.j);this.subscribe("select",this.onSelect,this);Z.createClientVe(this.element,this,113682);this.j()}; tKM=function(Z,Q){g.Oq.call(this,g.oT({"aria-haspopup":"false"}),0,"More options");this.J=Z;this.Kd=Q;this.Z(this.element,"click",this.onClick);this.Kd.Mb(this)}; F0M=function(Z,Q){var z;g.ka(Z.N())&&(z={B:"div",D:"ytp-panel-footer-content",G:[{B:"span",W7:"Adjust download quality from your "},{B:"a",D:"ytp-panel-footer-content-link",W7:"Settings",C:{href:"/account_downloads"}}]});g.Fk.call(this,"Quality",g.zN.CR,Z,Q,void 0,void 0,z);this.J=Z;this.P7={};this.U={};this.W={};this.JG=new Set;this.Y=this.K=!1;this.T="unknown";this.jJ="";this.SJ=new g.tf;g.W(this,this.SJ);this.K=this.J.V("web_player_use_new_api_for_quality_pullback");this.Y=this.J.V("web_player_enable_premium_hbr_playback_cap"); Z.V("web_settings_menu_icons")&&this.setIcon({B:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},G:[{B:"path",C:{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.rd(this.j.element,"ytp-quality-menu");this.Z(Z,"videodatachange",this.Tv);this.Z(Z,"videoplayerreset",this.Tv);this.Z(Z,"onPlaybackQualityChange",this.Cv);this.Tv();Z.createClientVe(this.element,this,137721)}; wtn=function(Z,Q,z){var K=Z.P7[Q],b=g.o3[Q];return eDn(Z,K?K.qualityLabel:b?b+"p":"Auto",Q,z)}; EIG=function(Z,Q,z,K,b){var q=(Q=Z.Y?Z.W[Q]:Z.U[Q])&&Q.quality,r=Q&&Q.qualityLabel;r=r?r:"Auto";K&&(r="("+r);Z=eDn(Z,r,q||"",b);K&&Z.G.push(")");(K=(K=Q&&Q.paygatedQualityDetails)&&K.paygatedIndicatorText)&&z&&Z.G.push({B:"div",D:"ytp-premium-label",W7:K});return Z}; eDn=function(Z,Q,z,K){Q={B:"span",nN:K,G:[Q]};var b;K="ytp-swatch-color";if(Z.K||Z.Y)K="ytp-swatch-color-white";z==="highres"?b="8K":z==="hd2880"?b="5K":z==="hd2160"?b="4K":z.indexOf("hd")===0&&z!=="hd720"&&(b="HD");b&&(Q.G.push(" "),Q.G.push({B:"sup",D:K,W7:b}));return Q}; SQ=function(Z,Q,z,K,b){var q={B:"div",D:"ytp-input-slider-section",G:[{B:"input",D:"ytp-input-slider",C:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};b&&q.G.unshift(b);g.x.call(this,q);this.S=Z;this.W=Q;this.K=z;this.initialValue=K;this.header=b;this.Y=this.Ru("ytp-input-slider");this.j=K?K:Z;this.init();this.Z(this.Y,"input",this.T)}; sZu=function(Z,Q){Z.j=Q;Z.updateValue("slidervalue",Z.j);Z.Y.valueAsNumber=Z.j;lZn(Z,Q)}; lZn=function(Z,Q){Z.Y.style.setProperty("--yt-slider-shape-gradient-percent",(Q-Z.S)/(Z.W-Z.S)*100+"%")}; $J=function(Z){SQ.call(this,Z.getAvailablePlaybackRates()[0],Z.getAvailablePlaybackRates()[Z.getAvailablePlaybackRates().length-1],.05,Z.getPlaybackRate(),{B:"div",D:"ytp-speedslider-indicator-container",G:[{B:"div",D:"ytp-speedslider-badge"},{B:"p",D:"ytp-speedslider-text"}]});this.J=Z;this.U=u69(this.SJ,this);g.rd(this.Y,"ytp-speedslider");this.X=this.Ru("ytp-speedslider-text");this.JG=this.Ru("ytp-speedslider-badge");Zod(this);this.Z(this.Y,"change",this.P7);this.Z(this.Y,"keydown",this.jJ)}; Zod=function(Z){Z.X.textContent=Z.j+"x";Z.JG.classList.toggle("ytp-speedslider-premium-badge",Z.j>2&&Z.J.V("enable_web_premium_varispeed"))}; T3=function(Z,Q,z,K,b,q,r){g.x.call(this,{B:"div",D:"ytp-slider-section",C:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},G:[{B:"div",D:"ytp-slider",G:[{B:"div",D:"ytp-slider-handle"}]}]});this.X=Z;this.U=Q;this.j=z;this.S=K;this.jJ=b;this.KN=q;this.range=this.S-this.j;this.c7=this.Ru("ytp-slider-section");this.W=this.Ru("ytp-slider");this.SJ=this.Ru("ytp-slider-handle");this.T=new g.EB(this.W, !0);this.Y=r?r:z;g.W(this,this.T);this.T.subscribe("dragmove",this.T9,this);this.Z(this.element,"keydown",this.EP);this.Z(this.element,"wheel",this.xV);this.init()}; fa=function(Z){T3.call(this,.05,.05,Z.getAvailablePlaybackRates()[0],Z.getAvailablePlaybackRates()[Z.getAvailablePlaybackRates().length-1],150,20,Z.getPlaybackRate());this.J=Z;this.K=g.lY("P");this.JG=u69(this.P7,this);g.rd(this.W,"ytp-speedslider");g.rd(this.K,"ytp-speedslider-text");Z=this.K;var Q=this.W;Q.parentNode&&Q.parentNode.insertBefore(Z,Q.nextSibling);QZd(this);this.Z(this.J,"onPlaybackRateChange",this.updateValues)}; QZd=function(Z){Z.K.textContent=z_X(Z,Z.Y)+"x"}; z_X=function(Z,Q){Z=Number(g.Al(Q,Z.j,Z.S).toFixed(2));Q=Math.floor((Z+.001)*100%5+2E-15);var z=Z;Q!==0&&(z=Z-Q*.01);return Number(z.toFixed(2))}; KQW=function(Z){g.gV.call(this,{B:"div",D:"ytp-speedslider-component"});Z.V("web_settings_use_input_slider")?this.Y=new $J(Z):this.Y=new fa(Z);g.W(this,this.Y);this.element.appendChild(this.Y.element)}; bod=function(Z){var Q=new KQW(Z);Mv.call(this,Z,Q,"Custom");g.W(this,Q)}; qEu=function(Z,Q){var z=new bod(Z);g.Fk.call(this,"Playback speed",g.zN.YC,Z,Q,ha(Z)?void 0:"Custom",ha(Z)?void 0:function(){g.By(Q,z)}); var K=this;this.K=!1;g.W(this,z);this.T=new $J(Z);g.W(this,this.T);Z.V("web_settings_menu_icons")&&this.setIcon({B:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},G:[{B:"path",C:{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.J=Z;this.K=!1;this.jJ=null;ha(Z)?(this.Y=g.fH("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.J.getPlaybackRate().toString()}),this.W=this.J.getPlaybackRate()):this.W=this.Y=null;this.U=this.J.getAvailablePlaybackRates();this.Z(Z,"presentingplayerstatechange",this.E$);var b;((b=this.J.getVideoData())==null?0:b.GJ())&&this.Z(Z,"serverstitchedvideochange",this.E$);this.Z(this.T.Y,"change",function(){K.K=!0;K.E$()}); this.E$()}; AmX=function(Z,Q){var z=rmM(Q);Z.Y&&(Z.K||Q===Z.W)?(Z.D3(Z.Y),Z.Wo(Q.toString())):Z.D3(z)}; Dt0=function(Z){Z.xS(Z.U.map(rmM));Z.Y=null;Z.W=null;var Q=Z.J.getPlaybackRate();if(!Z.U.includes(Q)||ha(Z.J))jZx(Z,Q),Z.D3(Z.Y)}; jZx=function(Z,Q){Z.W=Q;Z.Y=g.fH("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:Q.toString()});Q=Z.U.map(rmM);Q.unshift(Z.Y);Z.xS(Q)}; rmM=function(Z){return Z.toString()}; ha=function(Z){return Z.V("web_settings_menu_surface_custom_playback")}; vDD=function(Z){return Z.V("web_settings_menu_surface_custom_playback")&&Z.V("web_settings_use_input_slider")}; YEx=function(Z,Q,z,K){var b=new g.UB(Q,void 0,"Video Override");g.Fk.call(this,K.text||"",Z,Q,z,"Video Override",function(){g.By(z,b)}); var q=this;g.rd(this.element,"ytp-subtitles-options-menu-item");this.setting=K.option.toString();Z=K.options;this.settings=g.$n(Z,this.Uo,this);this.K=b;g.W(this,this.K);Q=new g.Oq({B:"div",D:"ytp-menuitemtitle",W7:"Allow for a different caption style if specified by the video."},0);g.W(this,Q);this.K.Mb(Q,!0);this.W=new g.Oq({B:"div",D:"ytp-menuitem",C:{role:"menuitemradio",tabindex:"0"},G:[{B:"div",D:"ytp-menuitem-label",W7:"On"}]},-1);g.W(this,this.W);this.K.Mb(this.W,!0);this.Z(this.W.element, "click",function(){gDu(q,!0)}); this.Y=new g.Oq({B:"div",D:"ytp-menuitem",C:{role:"menuitemradio",tabindex:"0"},G:[{B:"div",D:"ytp-menuitem-label",W7:"Off"}]},-2);g.W(this,this.Y);this.K.Mb(this.Y,!0);this.Z(this.Y.element,"click",function(){gDu(q,!1)}); this.xS(g.my(Z,this.Uo))}; gDu=function(Z,Q){Z.publish("settingChange",Z.setting+"Override",!Q);Z.Kd.Jt()}; La=function(Z,Q){g.UB.call(this,Z,void 0,"Options");var z=this;this.l_={};for(var K=0;K<g.Lb.length;K++){var b=g.Lb[K],q=new YEx(-K,Z,Q,b);g.W(this,q);q.subscribe("settingChange",this.IX,this);this.l_[b.option.toString()]=q;this.Mb(q,!0)}Z=new g.Oq(g.oT(),-g.Lb.length,"Reset");g.W(this,Z);Z.listen("click",function(){z.IX("reset",!0)}); this.Mb(Z,!0)}; na=function(Z,Q){g.Fk.call(this,"Auto-translate",0,Z,Q);this.J=Z;this.languages={};Z.createClientVe(this.element,this,127301);Z.logVisibility(this.element,!0)}; X5d=function(Z,Q){Z.languages=g.$n(Q,Z.Y,Z);Z.xS(g.my(Q,Z.Y))}; $tM=function(Z,Q){var z=new La(Z,Q),K=["This setting only applies to the current video. Adjust caption visibility in "," for all videos."],b;g.ka(Z.N())&&(b={B:"div",D:"ytp-panel-footer-content",G:[{B:"span",W7:K[0]},{B:"a",D:"ytp-panel-footer-content-link",W7:"Settings",C:{href:"/account_playback"}},{B:"span",W7:K[1]}]});g.Fk.call(this,"Subtitles/CC",g.zN.SUBTITLES,Z,Q,"Options",function(){g.By(Q,z)},b); var q=this;this.J=Z;this.Kd=Q;this.tracks={};this.T=new g.E6(function(){SEG(q,!1)},3E3); g.W(this,this.T);this.countLabel=new g.x({B:"div",G:[{B:"span",W7:"Subtitles/CC"},{B:"span",D:"ytp-menuitem-label-count",W7:"{{content}}"}]});g.W(this,this.countLabel);g.Uq(this,this.countLabel);Z.V("web_settings_menu_icons")&&this.setIcon(lFx.includes("en")?{B:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},G:[{B:"path",C:{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"}}]}:{B:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},G:[{B:"path",C:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]});this.Y=new na(Z,Q);g.W(this,this.Y);this.Y.subscribe("select",this.DK,this);this.K=z;g.W(this,this.K);this.K.subscribe("settingChange",this.IX,this);Q.subscribe("show",this.mRr,this);this.Z(Z,"videodatachange",this.E$);this.Z(Z,"onApiChange",this.E$);this.Z(Z,"onCaptionsTrackListChanged", this.E$);this.Z(Z,"captionschanged",this.E$);Z.createClientVe(this.element,this,127300);this.E$()}; TkG=function(Z){return Object.values(Z.tracks).find(function(Q){return Q.languageCode==="en"&&Q.kind==="asr"})}; cU=function(Z,Q){Z.J.setOption("captions","track",Q)}; SEG=function(Z,Q){Z.J.setOption("captions","sampleSubtitles",Q)}; fhG=function(Z){g.o_.call(this,Z,"ytp-settings-menu");var Q=this;this.zy=new g.UB(this.J);this.uB=this.settingsButton=null;this.isInitialized=this.Bc=!1;g.W(this,this.zy);this.hide();g.By(this,this.zy);Z.createClientVe(this.element,this,108341,!0);this.subscribe("show",function(z){Q.bz(z)}); this.Z(Z,"highlightSettingsMenu",function(){Q.Bc=!0;Q.Gz()}); this.Z(Z,"openSettingsMenuItem",function(z){if(z&&(Q.Bc=!0,Q.Gz(),z==="menu_item_video_quality_advanced")){var K;(K=Q.uB)==null||K.open()}})}; h_u=function(Z,Q){Z.settingsButton=Q;Z.element.id=Q.element.getAttribute("aria-controls")}; LQW=function(Z,Q){g.x.call(this,{B:"button",nN:["ytp-subtitles-button","ytp-button"],C:{title:"{{title}}","aria-keyshortcuts":"c","aria-pressed":"{{pressed}}","data-priority":"4","data-title-no-tooltip":"{{data-title-no-tooltip}}"},G:[sLn()]});this.J=Z;this.tooltip=Q.FJ();this.Z(Z,"videodatachange",this.E$);this.Z(Z,"appresize",this.E$);this.Z(Z,"promotooltipacceptbuttonclicked",this.jCI);this.Z(Z,"onApiChange",this.E$);this.Z(Z,"onCaptionsTrackListChanged",this.E$);this.Z(Z,"captionschanged",this.E$); this.J.createClientVe(this.element,this,127299);this.E$();this.listen("click",this.onClick);this.addOnDisposeCallback(g.Te(Q.FJ(),this.element))}; nDx=function(Z){return g.Rq(Z.J.W4())!=null?g.Rq(Z.J.W4()).v1()?!!Z.J.getOption("captions","tracklist",{includeAsr:!0}).length:!0:!1}; g.mX=function(Z,Q,z){z=z===void 0?350:z;g.x.call(this,{B:"div",nN:["ytp-time-display","notranslate"],G:[{B:"span",D:"ytp-time-wrapper",G:[{B:"span",D:"ytp-time-clip-icon",W7:"{{clipicon}}"},{B:"span",D:"ytp-time-current",W7:"{{currenttime}}"},{B:"span",D:"ytp-time-separator",W7:" / "},{B:"span",D:"ytp-time-duration",W7:"{{duration}}"}]},{B:"span",D:"ytp-clip-watch-full-video-button-separator",W7:"\u2022"},{B:"span",D:"ytp-clip-watch-full-video-button",W7:"{{watchfullvideo}}"}]});var K=this;this.api= Z;this.U=z;this.liveBadge=new g.x({B:"button",nN:["ytp-live-badge","ytp-button"],C:{disabled:"true"},W7:"{{content}}"});this.Y=null;this.Pm=this.j=!1;this.X=this.T=null;this.isPremiere=!1;this.K=this.W=null;this.S=!1;this.Vw=null;this.jJ=this.Ru("ytp-clip-watch-full-video-button");this.api.V("web_player_updated_entrypoint")&&g.vC(this.element,"ytp-xs-mono-button-style",!0);this.liveBadge.Wo("Live");g.W(this,this.liveBadge);this.api.V("web_player_updated_entrypoint")||this.api.V("delhi_modern_web_player")? this.liveBadge.zf(this.element.querySelector(".ytp-time-wrapper")):this.liveBadge.zf(this.element);this.tooltip=Q.FJ();this.liveBadge.listen("click",this.onClick.bind(this));this.api.V("delhi_modern_web_player")&&this.Z(this.Ru("ytp-time-current"),"click",this.iLg);this.Z(this.jJ,"click",this.d8G);this.Z(this.api,"serverstitchedvideochange",function(){cmn(K,K.api.getProgressState().isAtLiveHead)}); this.Z(Z,"presentingplayerstatechange",this.E8);this.Z(Z,"appresize",this.E8);this.Z(Z,"onLoopRangeChange",this.onLoopRangeChange);this.Z(Z,"videodatachange",this.onVideoDataChange);(Q=Z.getVideoData())&&this.updateVideoData(Q);this.E8();mtu(this,Z.getLoopRange())}; cmn=function(Z,Q){var z=Z.liveBadge.element,K=Z.api.isLifaAdPlaying();z.disabled=K||Q;!IQ(Z)||Z.X===Q&&Z.T===Z.isPremiere||(Z.X=Q,Z.T=Z.isPremiere,Z.E8(),Q?z.classList.add("ytp-live-badge-is-livehead"):z.classList.remove("ytp-live-badge-is-livehead"),Z.liveBadge.Wo(Z.isPremiere?"Premiere":"Live"),Q?Z.Y&&(Z.Y(),Z.Y=null,z.removeAttribute("title")):(z.title="Skip ahead to live broadcast.",Z.Y=g.Te(Z.tooltip,Z.liveBadge.element)))}; mtu=function(Z,Q){var z=Z.Vw!==Q;Z.Vw=Q;z&&Ih9(Z)}; Ih9=function(Z){Z.updateValue("clipicon",{B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},G:[{B:"path",C:{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"}}]}); Z.Pm&&!Z.j?Z.updateValue("watchfullvideo","Watch live stream"):Z.updateValue("watchfullvideo","Watch full video");g.vC(Z.element,"ytp-clip",Ja(Z));g.vC(Z.element,"ytp-live",IQ(Z))}; IQ=function(Z){var Q=Z.api.N().V("enable_linear_program_progress"),z=!Z.api.V("clean_player_style_fix_on_web")||Z.api.getPresentingPlayerType()!==2;return Z.Pm&&!Ja(Z)&&(!Q||!Z.j)&&z}; Ja=function(Z){return!!Z.Vw&&!!Z.Vw.postId&&Z.api.getPresentingPlayerType()!==2&&(!Z.Vw.type||Z.Vw.type==="clips")}; ymr=function(Z,Q){g.x.call(this,{B:"div",D:"ytp-volume-panel",C:{title:"Volume",role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},G:[{B:"div",D:"ytp-volume-slider",G:[{B:"div",D:"ytp-volume-slider-handle"}]}]});var z=this;this.api=Z;this.T=Q;this.p$=!1;this.U=this.volume=0;this.K=null;this.j=this.Y=this.isDragging=!1;this.T=Q;this.S=Z.Us();this.X=this.Ru("ytp-volume-slider");this.jJ=this.Ru("ytp-volume-slider-handle"); this.W=new g.EB(this.X,!0);g.W(this,this.W);this.W.subscribe("dragstart",this.laF,this);this.W.subscribe("dragmove",this.Mu,this);this.W.subscribe("dragend",this.Xof,this);this.Z(Z,"onVolumeChange",this.onVolumeChange);this.Z(Z,"appresize",this.QI);this.Z(Z,"fullscreentoggled",this.gL);this.Z(Z,"onShowControls",this.Vq);this.Z(Z,"onHideControls",this.Vq);this.Z(this.element,"keydown",this.eA);this.Z(this.element,"focus",function(){yv(z,z.Y,z.isDragging,!0,z.api.p$())}); this.Z(this.element,"blur",function(){yv(z,z.Y,z.isDragging,!1,z.api.p$())}); this.QI(Z.U$().getPlayerSize());Jmu(this,Z.getVolume(),Z.isMuted());fW(Z,this.element,this)}; Jmu=function(Z,Q,z){var K=Math.floor(Q),b=K+"% volume"+(z?" muted":"");z=z?0:Q/100;Z.updateValue("valuenow",K);Z.updateValue("valuetext",b);Z.jJ.style.left=(Z.S?60:40)*z+"px";Z.volume=Q}; dtD=function(Z,Q){g.vC(Z.element,"ytp-volume-control-hover",Q);yv(Z,Q,Z.isDragging,Z.j,Z.api.p$())}; yv=function(Z,Q,z,K,b){var q=Z.Y||Z.isDragging||Z.j||Z.p$;Z.Y=Q;Z.isDragging=z;Z.j=K;Z.p$=b;Q=Z.Y||Z.isDragging||Z.j||Z.p$;q!==Q&&(Q?Z.K=Z.Z(Z.element,"wheel",Z.ZK):(Z.oy(Z.K),Z.K=null),g.vC(Z.T,"ytp-volume-slider-active",Q))}; dy=function(Z,Q){var z=Z.N(),K=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"];z.S&&K.push("no-link");var b={title:"{{title}}",target:z.U,"data-priority":"5","data-sessionlink":"feature=player-button"};z.S||(b.href="{{url}}");g.x.call(this,{B:"a",nN:K,C:b,W7:"{{logoSvg}}"});this.Y=null;this.api=Z;this.visible=!1;z.S||(this.Y=this.listen("click",this.onClick));this.Z(Z,"videodatachange",this.onVideoDataChange);this.Z(Z,"videoplayerreset",this.onVideoDataChange);this.Z(Z,"onLoopRangeChange", this.onVideoDataChange);this.Z(Z,"appresize",this.pL);this.onVideoDataChange();z.S||this.addOnDisposeCallback(g.Te(Q.FJ(),this.element));this.pL()}; Nk9=function(Z,Q,z){g.M5.call(this);var K=this;this.J=Z;this.JG=Q;this.I6=z;this.Qp=NaN;this.SJ=this.NB=this.playButton=this.L=this.K=this.Zu=this.tG=this.jJ=this.U=this.Y=this.qB=this.CN=null;this.S=new fhG(this.J);this.progressBar=new g.xb(this.J,this.JG);this.KN=new g.mX(this.J,this.JG);this.P7=new VvX(this.J,this.JG);this.X=new g.w2(this.mI,null,this);z=Z.N();this.I6.subscribe("autohideupdate",this.T8,this);var b=!Z.getPlayerStateObject().isCued(),q;Z.N().V("html5_player_dynamic_bottom_gradient")? this.qB=q=new O6u(Z):q=new g.x({B:"div",D:"ytp-gradient-bottom"});g.W(this,q);g.NZ(Z,q.element,9);this.Vp=new g.s8(q,250,b,100);g.W(this,this.Vp);this.W=new g.x({B:"div",D:"ytp-chrome-bottom",G:[{B:"div",D:"ytp-chrome-controls"}]});g.W(this,this.W);g.NZ(Z,this.W.element,9);this.c7=new g.s8(this.W,250,b,100);g.W(this,this.c7);this.Du=this.W.element.children[0];g.W(this,this.S);g.NZ(Z,this.S.element,6);this.S.subscribe("show",function(D){K.J.gg(!D);Z.dQ(K.S,D)}); g.W(this,this.progressBar);this.progressBar.zf(this.W.element,0);b=new pb(Z,Q);g.W(this,b);g.NZ(Z,b.element,4);b=new g.jN({B:"div",D:"ytp-left-controls"});g.W(this,b);b.zf(this.Du);Z.V("delhi_modern_web_player")||(q=new g.BR(Z,Q,!1),g.W(this,q),q.zf(b.element));Z.V("web_render_jump_buttons")&&(this.U=new HR(Z,g.Xp(Z.N().experiments,"web_jump_button_backward_amount")||-10),g.W(this,this.U),this.U.zf(b.element));z.Vp||(this.playButton=new g.oX(Z,Q),g.W(this,this.playButton),this.playButton.zf(b.element)); Z.V("web_render_jump_buttons")&&(this.jJ=new HR(Z,g.Xp(Z.N().experiments,"web_jump_button_forward_amount")||10),g.W(this,this.jJ),this.jJ.zf(b.element));Z.V("delhi_modern_web_player_remove_nav_buttons")||(Z.V("delhi_modern_web_player")&&(q=new g.BR(Z,Q,!1),g.W(this,q),q.zf(b.element)),q=new g.BR(Z,Q,!0),g.W(this,q),q.zf(b.element));if(!Z.V("delhi_modern_web_player")&&(q=new g.x({B:"span",D:"ytp-volume-area"}),g.W(this,q),q.zf(b.element),!z.De&&(this.Y=new Ok(Z,Q),g.W(this,this.Y),this.Y.zf(q.element), z.tG&&!z.X))){var r=new ymr(Z,this.W.element);this.NB=r;g.W(this,r);r.zf(q.element);q=new g.EB(q.element);g.W(this,q);q.subscribe("hoverstart",function(){var D;(D=K.NB)==null||dtD(D,!0)}); q=new g.EB(b.element);g.W(this,q);q.subscribe("hoverend",function(){var D;(D=K.NB)==null||dtD(D,!1)})}g.W(this,this.KN); this.KN.zf(b.element);this.tG=new Cb(Z,this.progressBar);g.W(this,this.tG);this.tG.zf(b.element);z.V("web_key_moments_markers")&&(this.Zu=new MC(Z,this.progressBar),g.W(this,this.Zu),this.Zu.zf(b.element));Z.V("delhi_modern_web_player")?(this.j=new g.jN({B:"div",D:"ytp-right-controls",G:[{B:"div",D:N3.RIGHT_CONTROLS_LEFT},{B:"div",D:N3.RIGHT_CONTROLS_RIGHT}]}),Z.V("delhi_modern_web_player_right_controls_separate")&&g.rd(this.j.element,"ytp-right-controls-separate")):this.j=new g.jN({B:"div",D:"ytp-right-controls"}); g.W(this,this.j);this.j.zf(this.Du);Z.V("delhi_modern_web_player")&&(this.Y=new Ok(Z,Q),g.W(this,this.Y),this.Y.zf(this.j.Ru(N3.RIGHT_CONTROLS_LEFT)));this.s$=new LQW(Z,Q);g.W(this,this.s$);G3(this,this.s$,"RIGHT_CONTROLS_LEFT");this.settingsButton=new vU(Z,this.S);g.W(this,this.settingsButton);h_u(this.S,this.settingsButton);G3(this,this.settingsButton,"RIGHT_CONTROLS_LEFT");b=Z.getVideoData();if(z.v2||b.BN&&z.controlsType==="1")this.K=new dy(Z,Q),g.W(this,this.K),this.K.zf(this.j.element);z.showMiniplayerButton&& (this.L=new Uk(Z),g.W(this,this.L),G3(this,this.L,"RIGHT_CONTROLS_RIGHT"));z.CM&&(Q=new DK(Z,this.S),g.W(this,Q),G3(this,Q,"RIGHT_CONTROLS_RIGHT"));z.kz&&(Q=new PR(Z),g.W(this,Q),G3(this,Q,"RIGHT_CONTROLS_RIGHT"));g.W(this,this.P7);G3(this,this.P7,"RIGHT_CONTROLS_RIGHT");g.W(this,this.X);this.Z(Z,"appresize",this.pL);this.Z(Z,"fullscreentoggled",this.pL);this.Z(Z,"presentingplayerstatechange",this.Oa);this.Z(Z,"videodatachange",this.onVideoDataChange);this.pL()}; GxX=function(Z,Q){if(Z.J.getPlayerStateObject().isCued()||Q){if(Q){Z.c7.hide();Z.Vp.hide();Z.Y&&Z.Y.yw(!1);Z.K&&Z.K.yw(!1);Z.L&&Z.L.yw(!1);if(Z.J.V("embeds_use_parent_visibility_in_ve_logging")){var z;(z=Z.P7)==null||z.yw(!1);var K;(K=Z.settingsButton)==null||K.yw(!1);var b;(b=Z.playButton)==null||b.yw(!1)}Z.J.E9(Z.OA())}}else if(!Q){Z.c7.show();Z.Vp.show();Z.Y&&Z.Y.yw(!0);Z.K&&Z.K.yw(!0);Z.L&&Z.L.yw(!0);if(Z.J.V("embeds_use_parent_visibility_in_ve_logging")){var q;(q=Z.P7)==null||q.yw(!0);var r; (r=Z.s$)==null||r.yw(!0);var D;(D=Z.playButton)==null||D.yw(!0)}Z.T8()}}; ahW=function(Z){var Q=Z.J.U$().getPlayerSize().width;return Math.max(Q-ioM(Z)*2,100)}; ioM=function(Z){var Q=Z.J.Us(),z=Z.J.getVideoData().BN,K=0;Z.J.Us()&&Z.J.isEmbedsShortsMode()&&(K=(Z.J.U$().getPlayerSize().width-Z.J.getVideoContentRect().width)/2);return 12*(z?0:Q?2:1)+K}; P3D=function(Z){var Q=Z.J.Us()?72:50;Z=Z.J.N();g.ka(Z)&&(Q=Z.V("delhi_modern_web_player")?78:62,g.GK(Z)&&(Q=54));return Q}; G3=function(Z,Q,z){Z.J.V("delhi_modern_web_player")?Q.zf(Z.j.Ru(N3[z])):Q.zf(Z.j.element)}; R_M=function(Z){Hy.call(this,Z,!1);var Q=this;this.suggestedActions={};this.Z(this.J,"videodatachange",this.onVideoDataChange);this.Z(this.J,g.r7("suggested_action_button_visible"),function(z){z=z.id;Q.text=z;iyr(Q);Q.onClickCommand=Q.suggestedActions[z];Q.enabled=!0;Q.bz()}); this.Z(this.J,g.AH("suggested_action_button_visible"),function(z){Q.enabled=!1;Q.bz();Q.J.removeCueRange(z.id)})}; C3f=function(Z){Z.suggestedActions={};Z.J.US("suggested_action_button_visible")}; aQ=function(Z){g.x.call(this,{B:"div",D:id.TITLE,G:[{B:"div",D:id.TEXT,G:[{B:"a",nN:[id.LINK,id.SESSIONLINK],C:{target:Z.N().U,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"},W7:"{{title}}"},{B:"div",D:id.SUBTEXT,G:["{{subtextElement}}"]}]}]});this.api=Z;this.Y=null;this.link=this.Ru(id.LINK);Z.createClientVe(this.element,this,23851);this.Z(Z,"videodatachange",this.E$);this.Z(Z,"videoplayerreset",this.E$);this.E$()}; p5G=function(Z){Z.updateValue("channelLink","");Z.updateValue("channelName","");g.GK(Z.api.N())?Z.updateValue("channelTitleFocusable","0"):Z.updateValue("channelTitleFocusable","-1")}; g.PU=function(Z,Q){g.x.call(this,{B:"div",G:[{B:"div",D:"ytp-tooltip-text-wrapper",C:{"aria-hidden":"{{ariaHidden}}"},G:[{B:"div",D:"ytp-tooltip-edu",G:[{B:"svg",C:{height:"100%",viewBox:"0 0 36 36",width:"100%"},G:[{B:"path",C:{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"}}]},{B:"span",W7:"{{eduText}}"}]},{B:"div",D:"ytp-tooltip-image"},{B:"div",D:"ytp-tooltip-title",G:[{B:"span",W7:"{{title}}"},{B:"div",D:"ytp-tooltip-keyboard-shortcut", W7:"{{keyBoardShortcut}}"}]},{B:"div",D:"ytp-tooltip-bottom-text",G:[{B:"span",D:"ytp-tooltip-text",W7:"{{text}}"},{B:"div",D:"ytp-tooltip-keyboard-shortcut",W7:"{{keyBoardShortcut}}"}]}]},{B:"div",D:"ytp-tooltip-bg",G:[{B:"div",D:"ytp-tooltip-duration",W7:"{{duration}}"}]}]});var z=this;this.api=Z;this.Vp=Q;this.jJ=function(K){(K=K.relatedTarget)&&g.bG(z.Y,K)||z.zo()}; this.K=function(K){z.type===3&&z.zo();(K=K.currentTarget)&&K.nodeType===1&&!z.type&&(K.removeEventListener("mouseover",z.K),K.addEventListener("mouseout",z.jJ),K.removeEventListener("focus",z.K),K.addEventListener("blur",z.jJ),Ho9(z,K,2))}; this.SJ=function(){z.zo()}; this.type=this.Y=null;this.U=!1;this.j=null;this.S="";this.X=!0;this.scale=1;this.env=this.api.N();this.KN=this.env.j;this.bg=this.Ru("ytp-tooltip-bg");this.c7=this.Ru("ytp-tooltip-edu");this.image=this.Ru("ytp-tooltip-image");this.text=this.Ru("ytp-tooltip-text");this.bottomText=this.Ru("ytp-tooltip-bottom-text");this.title=this.Ru("ytp-tooltip-title");this.T=new g.s8(this,100);this.W=NaN;this.Y5=this.api.U$().getPlayerSize().width;this.P7=new g.E6(this.hY7,250,this);this.JG=new g.E6(this.zo,5E3, this);g.W(this,this.T);g.W(this,this.P7);g.W(this,this.JG);Ln&&(Z=this.Ru("ytp-tooltip-text"),Z.setAttribute("role","text"),Z.setAttribute("aria-live","polite"))}; g.Te=function(Z,Q){if(Z.KN)return function(){}; Q.addEventListener("mouseover",Z.K);Q.addEventListener("focus",Z.K);var z=Q.getAttribute("title");z&&!Q.hasAttribute("aria-label")&&Q.setAttribute("aria-label",z);return function(){Z.Y===Q&&Z.zo();Q.removeEventListener("mouseover",Z.K);Q.removeEventListener("focus",Z.K)}}; Ho9=function(Z,Q,z,K){if(Q&&!Q.hasAttribute)Z=new g.tW("showElementTooltip called with non-element.",Q.toString()),g.Rm(Z);else{isNaN(Z.W)||(Z.W=NaN,Z.bg.style.background="");Z.Y=Q;Z.U=!!K;K?Z.S=K:(Z.S=Q.getAttribute("title"),Q.removeAttribute("title"));g.b_(Z.element,"ytp-tooltip");var b=Q.getAttribute("data-tooltip-image");b&&(Z.image.style.backgroundImage="url("+b+")");K?Z.update({ariaHidden:"false"}):Z.update({ariaHidden:"true"});g.vC(Z.element,"ytp-tooltip-image-enabled",!!b);Q=Q.getAttribute("data-tooltip-opaque"); g.vC(Z.element,"ytp-tooltip-opaque",!!Q);Z.type=z;Z.api.addEventListener("appresize",Z.SJ);Z.X&&(MaG(Z),Z.T.show(0))}}; MaG=function(Z){if(Z.Y){var Q=Z.Y.getAttribute("data-tooltip-text");if(Z.S&&Z.Y.getAttribute("aria-label")!==Z.S)var z=Z.S;var K=Z.Y.getAttribute("aria-keyshortcuts"),b=Z.Y.getAttribute("data-title-no-tooltip");K&&b&&(z=g.fH("$BUTTON_TITLE keyboard shortcut $SHORTCUT_KEY",{BUTTON_TITLE:b,SHORTCUT_KEY:K}));z&&Z.Y.setAttribute("aria-label",z);if(Q&&!Z.U){K=Z.Y;Z.updateValue("text",Q);z=K.getAttribute("data-duration");Z.update({title:Z.S,duration:z});K=K.getAttribute("data-preview");b=243*Z.scale;var q= 141*Z.scale;Z.bg.style.width=b+"px";Z.bg.style.height=q+"px";Z.bg.style.backgroundImage=K?"url("+K+")":"";Z.bg.style.backgroundSize=b+"px "+q+"px";g.Aw(Z.element,["ytp-text-detail","ytp-preview"]);g.vC(Z.element,"ytp-has-duration",!!z)}else Z.updateValue("text",Z.S),K&&Z.env.V("delhi_modern_web_player")&&(Z.updateValue("text",b),Z.updateValue("keyBoardShortcut",K.toUpperCase())),g.D8(Z.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);UtM(Z,!!Q)}}; UtM=function(Z,Q,z,K){var b=Math.min(Z.Y5,300*Z.scale);Z.element.style.maxWidth=Q?"":b+"px";Z.Vp.bl(Z.element,Z.Y,z,Z.type===1,K);Z.element.style.top?g.rd(Z.element,"ytp-bottom"):Z.element.style.bottom&&g.rd(Z.element,"ytp-top");Z.type===3&&Z.JG.start()}; Oo0=function(Z,Q){g.vC(Z.element,"ytp-preview",Q>=0);if(!(Q<0||Q===Z.W)){Z.W=Q;Q=243*Z.scale;var z=141*Z.scale,K=b5X(Z.j,Z.W,Q);oc4(Z.bg,K,Q,z,!0);Z.P7.start()}}; oDn=function(Z){var Q=Z.Y;Z.type===3&&Z.JG.stop();Z.api.removeEventListener("appresize",Z.SJ);Z.U||Q.setAttribute("title",Z.S);Z.S="";Z.Y=null;Z.updateValue("keyBoardShortcut","")}; WQD=function(Z){g.x.call(this,{B:"button",nN:["ytp-watch-later-button","ytp-button"],C:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.mj(Z.N()))},G:[{B:"div",D:"ytp-watch-later-icon",W7:"{{icon}}"},{B:"div",D:"ytp-watch-later-title",W7:"Watch later"}]});this.J=Z;this.icon=null;this.visible=this.isRequestPending=this.Y=!1;Hdu(Z);Z.createClientVe(this.element,this,28665);this.listen("click",this.onClick,this);this.Z(Z,"videoplayerreset",this.onReset);this.Z(Z,"appresize", this.DY);this.Z(Z,"videodatachange",this.DY);this.Z(Z,"presentingplayerstatechange",this.DY);this.DY();Z=this.J.N();var Q=g.pS("yt-player-watch-later-pending");Z.W&&Q?(yJ9(),BkG(this)):this.E$(2);g.vC(this.element,"ytp-show-watch-later-title",g.mj(Z));fW(this.J,this.element,this)}; Vau=function(Z){var Q=Z.J.getPlayerSize(),z=Z.J.N(),K=Z.J.getVideoData(),b=g.mj(z)&&g.IT(Z.J)&&g.t(Z.J.getPlayerStateObject(),128),q=z.S;return z.Uv&&Q.width>=240&&!K.isAd()&&K.Uv&&!b&&!g.ey(K)&&!Z.J.isEmbedsShortsMode()&&!q}; kxd=function(Z,Q){D$f(g.O_(Z.J.N()),"wl_button",function(){yJ9({videoId:Q});window.location.reload()})}; BkG=function(Z){if(!Z.isRequestPending){Z.isRequestPending=!0;Z.E$(3);var Q=Z.J.getVideoData();Q=Z.Y?Q.removeFromWatchLaterCommand:Q.addToWatchLaterCommand;var z=Z.J.Na(),K=Z.Y?function(){Z.Y=!1;Z.isRequestPending=!1;Z.E$(2);Z.J.N().T&&Z.J.hG("WATCH_LATER_VIDEO_REMOVED")}:function(){Z.Y=!0; Z.isRequestPending=!1;Z.E$(1);Z.J.N().j&&Z.J.Bw(Z.element);Z.J.N().T&&Z.J.hG("WATCH_LATER_VIDEO_ADDED")}; xp(z,Q).then(K,function(){Z.isRequestPending=!1;Z.E$(4,"An error occurred. Please try again later.");Z.J.N().T&&Z.J.hG("WATCH_LATER_ERROR","An error occurred. Please try again later.")})}}; urx=function(Z,Q){if(Q!==Z.icon){switch(Q){case 3:var z=Z6();break;case 1:z=Ty();break;case 2:z={B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},G:[{B:"path",KL:!0,D:"ytp-svg-fill",C:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M16,19.02 L16,12.00 L18,12.00 L18,17.86 L23.10,20.81 L22.10,22.54 L16,19.02 Z"}}]};break;case 4:z={B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},G:[{B:"path", KL:!0,C:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}Z.updateValue("icon",z);Z.icon=Q}}; g.RQ=function(){g.EU.apply(this,arguments);this.ZB=(this.vM=g.mj(this.api.N()))&&(this.api.N().j||s7()||ES());this.t0=48;this.kU=69;this.hp=this.Ma=null;this.hO=[];this.tW=this.To=this.kY=this.yv=this.XR=null;this.EH=[];this.contextMenu=this.C0=this.overflowButton=this.uJ=this.vx=this.searchButton=this.copyLinkButton=this.shareButton=this.l1=this.bI=this.title=this.channelAvatar=this.UV=this.tooltip=null;this.BI=!1;this.cV=this.EE=this.ze=this.Lc=null;this.WG=this.EY=this.sJ=!1}; xtM=function(Z){var Q=Z.api.N(),z=g.t(Z.api.getPlayerStateObject(),128);return Q.W&&z&&!Z.api.isFullscreen()}; ta0=function(Z){if(Z.R6()&&!Z.api.isEmbedsShortsMode()&&Z.uJ){var Q=Z.api.V("web_player_hide_overflow_button_if_empty_menu");!Z.l1||Q&&!Vau(Z.l1)||vc9(Z.uJ,Z.l1);!Z.shareButton||Q&&!ncx(Z.shareButton)||vc9(Z.uJ,Z.shareButton);!Z.copyLinkButton||Q&&!Jz0(Z.copyLinkButton)||vc9(Z.uJ,Z.copyLinkButton)}else{if(Z.uJ){Q=Z.uJ;for(var z=g.n(Q.actionButtons),K=z.next();!K.done;K=z.next())K.value.detach();Q.actionButtons=[]}Z.searchButton&&!g.bG(Z.bI.element,Z.searchButton.element)&&Z.searchButton.zf(Z.bI.element); Z.l1&&!g.bG(Z.bI.element,Z.l1.element)&&Z.l1.zf(Z.bI.element);Z.shareButton&&!g.bG(Z.bI.element,Z.shareButton.element)&&Z.shareButton.zf(Z.bI.element);Z.copyLinkButton&&!g.bG(Z.bI.element,Z.copyLinkButton.element)&&Z.copyLinkButton.zf(Z.bI.element)}}; FQn=function(Z,Q,z){Q=z?Q.lastElementChild:Q.firstElementChild;for(var K=null;Q;){if(Ys(Q,"display")!=="none"&&Q.getAttribute("aria-hidden")!=="true"){var b=void 0;Q.tabIndex>=0?b=Q:b=FQn(Z,Q,z);b&&(K?z?b.tabIndex>K.tabIndex&&(K=b):b.tabIndex<K.tabIndex&&(K=b):K=b)}Q=z?Q.previousElementSibling:Q.nextElementSibling}return K}; e_G=function(Z,Q,z){if(Z.api.V("web_player_nitrate_promo_tooltip")&&Z.api.getPresentingPlayerType(!0)!==2){var K=Z.api.getVideoData(1);if(K==null?0:K.tooltipRenderer){K=K.tooltipRenderer;var b;if(b=!Z.cV){if(!(Q=!Q)){var q,r,D;Q=((q=K.tooltipDisplayStrategy)==null?void 0:q.type)!=="TOOLTIP_DISPLAY_TYPE_DO_NOT_SHOW_IMMEDIATELY"&&((r=K.promoConfig)==null?void 0:r.promoId)!=="dtip-edu-player-iseecaptions"&&((D=K.promoConfig)==null?void 0:D.promoId)!=="dtip-edu-player-tc-m2"}b=Q}b&&(Z.cV=new SRX(K,Z.api), g.W(Z,Z.cV),g.NZ(Z.api,Z.cV.element,9));var v;(v=Z.cV)==null||h1u(v,K,z)}}}; g.Ca=function(Z){g.Jv.call(this,Z);this.chrome=null;this.load()}; w59=function(){for(var Z=pa.length;Z<4;Z++){var Q=g.lY("VIDEO");Q.load();pa.push(new g.qp(Q))}}; EDx=function(Z,Q,z,K){var b=z.getVideoData(),q=Q.getVideoData();if(z.getPlayerState().isError())return{msg:"player-error"};var r=q.S;if(Q.XJ()>K/1E3+1)return{msg:"in-the-past"};if(q.isLivePlayback&&!isFinite(K))return{msg:"live-infinite"};(K=Q.ES())&&K.isView()&&(K=K.mediaElement);if(K&&K.jG().length>12&&g.$G(b))return{msg:"played-ranges"};if(!b.S)return null;if(!r)return{msg:"no-pvd-formats"};if(!b.S.Y||!r.Y)return{msg:"non-dash"};K=r.videoInfos[0];var D=b.S.videoInfos[0];Z.T&&l8(q)&&(K=Q.HM(),D= z.HM());if(!K||!D)return{msg:"no-video-info"};if(Z.S&&(e5(K)||e5(D)))return{msg:"av1"};Q=Z.Y&&q.aF()&&Wd();if(D.containerType!==K.containerType)if(Q)q.pN("sgap",{ierr:"container"});else return{msg:"container"};if(Z.j&&!Q&&(D.Gf!==K.Gf||D.Gf===""||K.Gf===""))return{msg:"codec"};if(Z.W&&D.video&&K.video&&Math.abs(D.video.width/D.video.height-K.video.width/K.video.height)>.01)return{msg:"ratio"};if(g.$G(q)&&g.$G(b))return{msg:"content-protection"};r=r.Y[0];b=b.S.Y[0];z=r.audio;var v=b.audio;if(z.sampleRate!== v.sampleRate&&!g.R3)if(Q)q.pN("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:r.itag,cr:z.sampleRate,ni:b.itag,nr:v.sampleRate};return(z.numChannels||2)!==(v.numChannels||2)?{msg:"channel-count"}:Z.L&&q.aF()&&K.video.fps!==D.video.fps?{msg:"fps"}:null}; lhf=function(Z,Q,z){var K=Z.getVideoData(),b=Q.getVideoData();if(!K.N().supportsGaplessShorts())return{nq:"env"};if(z.K){if(K.h6&&!K.isAd()||b.h6&&!b.isAd())return{nq:"autoplay"}}else if(K.h6||b.h6)return{nq:"autoplay"};if(!K.X)return{nq:"client"};if(!Z.dV())return{nq:"no-empty"};Z=EDx(z,Z,Q,Infinity);return Z!=null?{nq:Z.msg}:null}; HU=function(Z){g.O.call(this);this.app=Z;this.L=this.W=this.j=this.Y=null;this.S=1;this.events=new g.M5(this);this.events.Z(this.app.fN,g.AH("gaplessshortslooprange"),this.X);g.W(this,this.events)}; sNG=function(){this.W=this.K=this.S=this.T=this.L=this.j=this.Y=!1}; ZN4=function(Z){var Q=new sNG;Q.Y=Z.V("h5_gapless_support_types_diff");Q.L=Z.V("h5_gapless_error_on_fps_diff");Q.T=Z.V("html5_gapless_use_format_info_fix");Q.S=Z.V("html5_gapless_disable_on_av1")&&!Z.V("html5_gapless_enable_on_av1");Q.j=Z.V("html5_gapless_check_codec_diff_strictly");Q.K=Z.V("html5_gapless_on_ad_autoplay");Q.W=Z.V("html5_gapless_disable_diff_aspect_radio");return Q}; g.M3=function(Z,Q,z,K){K=K===void 0?!1:K;lx.call(this);this.mediaElement=Z;this.start=Q;this.end=z;this.Y=K}; QN0=function(Z,Q,z,K,b,q){q=q===void 0?0:q;g.O.call(this);var r=this;this.policy=Z;this.Y=Q;this.j=z;this.lh=b;this.L=q;this.W=this.S=null;this.currentVideoDuration=this.K=-1;this.T=!1;this.rl=new EZ;this.zQ=K-Q.Ry()*1E3;this.rl.then(void 0,function(){}); this.timeout=new g.E6(function(){r.Os("timeout")},1E4); g.W(this,this.timeout);this.X=isFinite(K);this.status={status:0,error:null}}; bN4=function(Z){var Q,z,K,b,q,r,D,v,Y,X;return g.C(function(S){if(S.Y==1){if(Z.FI())return S.return(Promise.reject(Error(Z.status.error||"disposed")));Z.timeout.start();Q=g.UA.TM();return g.P(S,Z.rl,2)}g.UA.BO("gtfta",Q);z=Z.Y.ES();if(z.isEnded())return Z.Os("ended_in_finishTransition"),S.return(Promise.reject(Error(Z.status.error||"")));if(!Z.W||!ux(Z.W))return Z.Os("next_mse_closed"),S.return(Promise.reject(Error(Z.status.error||"")));if(Z.j.NE()!==Z.W)return Z.Os("next_mse_mismatch"),S.return(Promise.reject(Error(Z.status.error|| "")));K=zrd(Z);b=K.jI;q=K.mA;r=K.Io;Z.Y.A6(!1,!0);D=KaW(z,b,r,!Z.j.getVideoData().isAd());Z.j.setMediaElement(D);(v=Z.Y.iU())&&Z.j.y6(v.j3,v.S3);Z.X&&(Z.j.seekTo(Z.j.getCurrentTime()+.001,{OE:!0,Qh:3,s8:"gapless_pseudo"}),D.play(),Rn());Y=z.gy();Y.cpn=Z.Y.getVideoData().clientPlaybackNonce;Y.st=""+b;Y.et=""+r;Z.j.pN("gapless",Y);Z.Y.pN("gaplessTo",{cpn:Z.j.getVideoData().clientPlaybackNonce});X=Z.Y.getPlayerType()===Z.j.getPlayerType();Z.Y.ZN(q,!0,!1,X,Z.j.getVideoData().clientPlaybackNonce);Z.j.ZN(Z.j.getCurrentTime(), !0,!0,X,Z.Y.getVideoData().clientPlaybackNonce);Z.j.Ur();g.Ae(function(){!Z.j.getVideoData().P7&&Z.j.getPlayerState().isOrWillBePlaying()&&Z.j.Dx()}); OA(Z,6);Z.dispose();return S.return(Promise.resolve())})}; jNx=function(Z){if(Z.j.getVideoData().S){var Q=Z.lh.N().V("html5_gapless_suspend_next_loader")&&Z.L===1;Z.j.iT(Z.W,Q,qLG(Z));OA(Z,3);rUu(Z);var z=AUW(Z);Q=z.Vh;z=z.BC;Q.subscribe("updateend",Z.oU,Z);z.subscribe("updateend",Z.oU,Z);Z.oU(Q);Z.oU(z)}}; rUu=function(Z){Z.Y.unsubscribe("internalvideodatachange",Z.Nw,Z);Z.j.unsubscribe("internalvideodatachange",Z.Nw,Z);Z.lh.N().V("html5_gapless_use_format_info_fix")&&(Z.Y.unsubscribe("internalvideoformatchange",Z.Nw,Z),Z.j.unsubscribe("internalvideoformatchange",Z.Nw,Z));Z.Y.unsubscribe("mediasourceattached",Z.Nw,Z);Z.j.unsubscribe("statechange",Z.IE,Z)}; KaW=function(Z,Q,z,K){Z=Z.isView()?Z.mediaElement:Z;return new g.M3(Z,Q,z,K)}; OA=function(Z,Q){Q<=Z.status.status||(Z.status={status:Q,error:null},Q===5&&Z.rl.resolve())}; qLG=function(Z){return Z.lh.N().V("html5_gapless_no_clear_buffer_timeline")&&Z.L===1&&Qa(Z.Y.getVideoData())}; zrd=function(Z){var Q=Z.Y.ES();Q=Q.isView()?Q.start:0;var z=Z.Y.getVideoData().isLivePlayback?Infinity:Z.Y.Pr(!0);z=Math.min(Z.zQ/1E3,z)+Q;var K=Z.X?100:0;Z=z-Z.j.XJ()+K;return{PX:Q,jI:Z,mA:z,Io:Infinity}}; AUW=function(Z){return{Vh:Z.S.Y.Po,BC:Z.S.j.Po}}; oQ=function(Z){g.O.call(this);var Q=this;this.app=Z;this.L=this.j=this.Y=null;this.X=!1;this.S=this.W=null;this.T=ZN4(this.app.N());this.K=function(){g.Ae(function(){DAD(Q)})}}; vUD=function(Z,Q,z,K,b){K=K===void 0?0:K;b=b===void 0?0:b;Z.dV()||BU(Z);Z.W=new EZ;Z.Y=Q;var q=z,r=b===0;r=r===void 0?!0:r;var D=Z.app.eJ(),v=D.getVideoData().isLivePlayback?Infinity:D.Pr(!0)*1E3;q>v&&(q=v-200,Z.X=!0);r&&D.getCurrentTime()>=q/1E3?Z.K():(Z.j=D,r&&(r=q,q=Z.j,Z.app.fN.addEventListener(g.r7("vqueued"),Z.K),r=isFinite(r)||r/1E3>q.getDuration()?r:0x8000000000000,Z.L=new g.b6(r,0x8000000000000,{namespace:"vqueued"}),q.addCueRange(Z.L)));r=K/=1E3;q=Q.getVideoData().Y;K&&q&&Z.j&&(D=K,v=0, Q.getVideoData().isLivePlayback&&(r=Math.min(z/1E3,Z.j.Pr(!0)),v=Math.max(0,r-Z.j.getCurrentTime()),D=Math.min(K,Q.Pr()+v)),r=wdD(q,D)||K,r!==K&&Z.Y.pN("qvaln",{st:K,at:r,rm:v,ct:D}));Q=r;K=Z.Y;K.getVideoData().IW=!0;K.getVideoData().X=!0;K.Lz(!0);q={};Z.j&&(q=Z.j.R$(),r=Z.j.getVideoData().clientPlaybackNonce,q={crt:(q*1E3).toFixed(),cpn:r});K.pN("queued",q);Q!==0&&K.seekTo(Q+.01,{OE:!0,Qh:3,s8:"videoqueuer_queued"});Z.S=new QN0(Z.T,Z.app.eJ(),Z.Y,z,Z.app,b);z=Z.S;z.status.status!==Infinity&&(OA(z, 1),z.Y.subscribe("internalvideodatachange",z.Nw,z),z.j.subscribe("internalvideodatachange",z.Nw,z),z.lh.N().V("html5_gapless_use_format_info_fix")&&(z.Y.subscribe("internalvideoformatchange",z.Nw,z),z.j.subscribe("internalvideoformatchange",z.Nw,z)),z.Y.subscribe("mediasourceattached",z.Nw,z),z.j.subscribe("statechange",z.IE,z),z.Y.subscribe("newelementrequired",z.nw,z),z.Nw());return Z.W}; DAD=function(Z){var Q,z,K,b,q,r,D,v,Y;g.C(function(X){switch(X.Y){case 1:if(Z.FI()||!Z.W||!Z.Y)return X.return();Z.X&&Z.app.eJ().s0(!0,!1);z=Z.app.N().V("html5_force_csdai_gapful_transition")&&((Q=Z.app.eJ())==null?void 0:Q.getVideoData().isDaiEnabled());K=null;if(!Z.S||z){X.O$(2);break}g.nX(X,3);return g.P(X,bN4(Z.S),5);case 5:g.m9(X,2);break;case 3:K=b=g.I0(X);case 2:if(!Z.Y)return X.return();g.UA.Be("vqsp",function(){Z.app.OX(Z.Y)}); if(!Z.Y)return X.return();q=Z.Y.ES();Z.app.N().V("html5_gapless_seek_on_negative_time")&&q&&q.getCurrentTime()<-.01&&Z.Y.seekTo(0);g.UA.Be("vqpv",function(){Z.app.playVideo()}); if(K||z)Z.Y?(r=K?K.message:"forced",(D=Z.j)==null||D.pN("gapfulfbk",{r:r}),Z.Y.cQ(r)):(v=Z.j)==null||v.pN("gapsp",{});Y=Z.W;BU(Z);Y&&Y.resolve();return X.return(Promise.resolve())}})}; BU=function(Z,Q){Q=Q===void 0?!1:Q;if(Z.j){if(Z.L){var z=Z.j;Z.app.fN.removeEventListener(g.r7("vqueued"),Z.K);z.removeCueRange(Z.L)}Z.j=null;Z.L=null}Z.S&&(Z.S.status.status!==6&&(z=Z.S,z.status.status!==Infinity&&z.L!==1&&z.Os("Canceled")),Z.S=null);Z.W=null;Z.Y&&!Q&&Z.Y!==Z.app.IT()&&Z.Y!==Z.app.eJ()&&t9(Z.Y);Z.Y&&Q&&Z.Y.Ss();Z.Y=null;Z.X=!1}; gUf=function(Z){var Q;return((Q=Z.S)==null?void 0:Q.currentVideoDuration)||-1}; YLx=function(Z,Q,z){if(Z.dV())return"qie";if(Z.Y==null||Z.Y.Iu.FI()||Z.Y.getVideoData()==null)return"qpd";if(Q.videoId!==Z.Y.lY())return"vinm";if(gUf(Z)<=0)return"ivd";if(z!==1)return"upt";if((z=Z.S)==null)Z=void 0;else if(z.getStatus().status!==5)Z="niss";else if(EDx(z.policy,z.Y,z.j,z.zQ)!=null)Z="pge";else{Q=AUW(z);Z=Q.Vh;var K=Q.BC;Q=g.Xp(z.lh.N().experiments,"html5_shorts_gapless_next_buffer_in_seconds");z=z.K+Q;K=DR(K.Sx(),z);Z=DR(Z.Sx(),z);Z=!(Q>0)||K&&Z?null:"neb"}return Z!=null?Z:null}; X2f=function(){g.rV.call(this);var Z=this;this.fullscreen=0;this.W=this.S=this.pictureInPicture=this.Y=this.j=this.inline=!1;this.L=function(){Z.bz()}; YT4(this.L);this.K=this.getVisibilityState(this.o6(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.m$(),this.CF(),this.i5(),this.XZ())}; h9=function(Z){return!(Z.isMinimized()||Z.isInline()||Z.isBackground()||Z.m$()||Z.CF()||Z.i5()||Z.XZ())}; SLx=function(Z,Q){g.O.call(this);this.S=this.W=null;this.Y=Z;this.j=Q}; Lau=function(Z){var Q=Z.experiments,z=Q.XI.bind(Q);$AX=z("html5_use_async_stopVideo");TsX=z("html5_pause_for_async_stopVideo");fnx=z("html5_not_reset_media_source");z("html5_listen_for_audio_output_changed")&&(G5d=!0);x6=z("html5_not_reset_media_source");hrW=z("html5_not_reset_media_source");$6=z("html5_retain_source_buffer_appends_for_debugging");Ksn=z("web_watch_pip");z("html5_mediastream_applies_timestamp_offset")&&(XW=!0);var K=g.Xp(Q,"html5_cobalt_override_quic");K&&J9("QUIC",+(K>0));(K=g.Xp(Q, "html5_cobalt_audio_write_ahead_ms"))&&J9("Media.AudioWriteDurationLocal",K);(K=z("html5_cobalt_enable_decode_to_texture"))&&J9("Media.PlayerConfiguration.DecodeToTexturePreferred",K?1:0);(Z.aT()||z("html5_log_cpu_info"))&&Dd9();Error.stackTraceLimit=50;var b=g.Xp(Q,"html5_idle_rate_limit_ms");b&&Object.defineProperty(window,"requestIdleCallback",{value:function(q){return window.setTimeout(q,b)}}); ykf(Z.L);hZ=z("html5_use_ump_request_slicer");T04=z("html5_record_now");z("html5_disable_streaming_xhr")&&(xQ=!1);z("html5_byterate_constraints")&&(sJ=!0);z("html5_use_non_active_broadcast_for_post_live")&&(Bz=!0);z("html5_sunset_aac_high_codec_family")&&(kh["141"]="a");z("html5_enable_encrypted_av1")&&(Fy=!0)}; nUG=function(Z){return Z.slice(12).replace(/_[a-z]/g,function(Q){return Q.toUpperCase().replace("_","")}).replace("Dot",".")}; cUn=function(Z){var Q={},z;for(z in Z.experiments.flags)if(z.startsWith("cobalt_h5vcc")){var K=nUG(z),b=g.Xp(Z.experiments,z);K&&b&&(Q[K]=J9(K,b))}return Q}; WU=function(Z,Q,z,K,b){b=b===void 0?[]:b;g.O.call(this);this.Yh=Z;this.mM=Q;this.W=z;this.segments=b;this.Y=void 0;this.j=new Map;b.length&&(this.Y=b[0])}; mA9=function(Z){if(!(Z.segments.length<2)){var Q=Z.segments.shift();if(Q){var z=Q.Y,K=[];if(z.size){z=g.n(z.values());for(var b=z.next();!b.done;b=z.next()){b=g.n(b.value);for(var q=b.next();!q.done;q=b.next()){q=q.value;for(var r=g.n(q.segments),D=r.next();!D.done;D=r.next())(D=Vv(D.value))&&K.push(D);q.removeAll()}}}(z=Vv(Q))&&K.push(z);K=g.n(K);for(z=K.next();!z.done;z=K.next())Z.j.delete(z.value);Q.dispose()}}}; kJ=function(Z,Q,z,K){if(!Z.Y||Q>z)return!1;Q=new WU(Z.Yh,Q,z,Z.Y,K);K=g.n(K);for(z=K.next();!z.done;z=K.next()){z=z.value;var b=Vv(z);b&&b!==Vv(Z.Y)&&Z.j.set(b,[z])}Z=Z.Y;Z.Y.has(Q.xX())?Z.Y.get(Q.xX()).push(Q):Z.Y.set(Q.xX(),[Q]);return!0}; QD=function(Z,Q){return Z.j.get(Q)}; In0=function(Z,Q,z){Z.j.set(Q,z)}; ud=function(Z,Q,z,K,b,q){return new JUM(z,z+(K||0),!K,Q,Z,b,q)}; JUM=function(Z,Q,z,K,b,q,r){g.O.call(this);this.mM=Z;this.S=Q;this.j=z;this.type=K;this.W=b;this.videoData=q;this.gJ=r;this.Y=new Map;Sy(q)}; Vv=function(Z){return Z.videoData.clientPlaybackNonce}; yUn=function(Z){if(Z.Y.size)for(var Q=g.n(Z.Y.values()),z=Q.next();!z.done;z=Q.next()){z=g.n(z.value);for(var K=z.next();!K.done;K=z.next())K.value.dispose()}Z.Y.clear()}; dAd=function(Z){this.end=this.start=Z}; g.xJ=function(){this.Y=new Map;this.S=new Map;this.j=new Map}; g.ta=function(Z,Q,z,K){g.O.call(this);var b=this;this.api=Z;this.Yh=Q;this.playback=z;this.app=K;this.c7=new g.xJ;this.j=new Map;this.K=[];this.L=[];this.S=new Map;this.ih=new Map;this.jJ=new Map;this.Zu=null;this.sA=NaN;this.DI=this.X7=null;this.F7=new g.E6(function(){Nsn(b,b.sA,b.X7||void 0)}); this.events=new g.M5(this);this.gq=15E3;this.P7=new g.E6(function(){b.KN=!0;b.playback.t2(b.gq);GYD(b);b.gI(!1)},this.gq); this.KN=!1;this.T=new Map;this.CN=[];this.SJ=null;this.zJ=new Set;this.Vp=[];this.Sp=[];this.A4=[];this.De=[];this.Y=void 0;this.JG=0;this.Du=!0;this.U=!1;this.tG=[];this.NB=new Set;this.IW=new Set;this.kL=new Set;this.Tu=0;this.s$=new Set;this.fL=0;this.qw=this.Ph=!1;this.Jo=this.W="";this.qB=null;this.zz={G_r:function(){return b.j}, weJ:function(){return b.K}, q7f:function(){return b.S}, ZT:function(q){b.onCueRangeEnter(b.j.get(q))}, aLF:function(q){b.onCueRangeExit(b.j.get(q))}, jeg:function(q,r){b.j.set(q,r)}, SX$:function(q){b.Jo=q}, n9:function(){return b.n9()}, hVu:function(q){return b.jJ.get(q)}}; this.playback.getPlayerType();this.playback.b$(this);this.Qp=this.Yh.aT();g.W(this,this.F7);g.W(this,this.events);g.W(this,this.P7);this.events.Z(this.api,g.r7("serverstitchedcuerange"),this.onCueRangeEnter);this.events.Z(this.api,g.AH("serverstitchedcuerange"),this.onCueRangeExit)}; Rrn=function(Z,Q,z,K,b,q,r,D){var v=iNu(Z,q,q+b);Z.KN&&Z.Sf({adaftto:1});z||Z.Sf({missadcon:1,enter:q,len:b,aid:D});Z.X&&!Z.X.t1&&(Z.X.t1=D);Z.qw&&Z.Sf({adfbk:1,enter:q,len:b,aid:D});var Y=Z.playback;r=r===void 0?q+b:r;q===r&&!b&&Z.Yh.V("html5_allow_zero_duration_ads_on_timeline")&&Z.Sf({attl0d:1});q>r&&Fj(Z,{reason:"enterTime_greater_than_return",mM:q,JH:r});var X=Y.Ze()*1E3;q<X&&Fj(Z,{reason:"enterTime_less_than_minSeekableTime",enterMs:q,minSkMs:X},Z.Yh.V("html5_report_ssdai_timeline_error_as_fatal")); Y=Y.getDuration()*1E3;r>Y&&Fj(Z,{reason:"parent_return_greater_than_content_duration",JH:r,a4p:Y});Y=null;X=g.Aj(Z.L,{JH:q},function(S,T){return S.JH-T.JH}); X>=0&&(Y=Z.L[X],Y.JH>q&&anr(Z,Q.video_id||"",q,r,Y));if(v&&Y)for(X=0;X<Z.Vp.length;X++){if(Z.Vp[X].identifier===v.identifier){Z.Vp.splice(X,1);break}}else if(v)return Z.Sf({rejectAttl:1}),D&&!ih(Z.De,function(S){return S===D})&&(Z.Sf({rejectAdBreakAttl:D},!0),Z.De.push(D)),eQ(Z),""; v="ss_childplayback_"+PeM++;Z.Yh.V("html5_enable_ssap_entity_id")?(Q=new g.OK(Z.Yh,Q),X=Q.clientPlaybackNonce):(Q.cpn||(Q.cpn=g.c9(16)),X=Q.cpn,Q=new g.OK(Z.Yh,Q));Q.gX=v;z={gX:v,playerType:K,durationMs:b,mM:q,JH:r,cpn:X,videoData:Q,errorCount:0,ssdaiAdsConfig:z};g.X7(Z.L,z,function(S,T){return S.mM===T.mM?S.durationMs-T.durationMs:S.mM-T.mM}); Z.S.set(X,z);Z.ih.set(v,z);Z.Sf({attlDone:r-q,acpn:X,et:q,prt:r});D?z.xZ=D:Y?z.xZ=Y.xZ:z.xZ=z.cpn;if(q=z.xZ)(K=Z.jJ.get(q))?(K.push(z),g.DI(K,function(S,T){return S.mM-T.mM})):Z.jJ.set(q,[z]); Z.P7.isActive()&&(Z.KN=!1,Z.P7.stop(),GYD(Z),Z.gI(!0));return v}; wy=function(Z,Q,z){return{ssvc:Q,cpn:(z==null?void 0:z.cpn)||"",vid:(z==null?void 0:z.videoData.videoId)||"",ct:(Z.playback.getCurrentTime()||0).toFixed(3),cmt:(Z.playback.XJ()||0).toFixed(3)}}; EA=function(Z,Q){Z.api.yY();Z.api.publish("serverstitchedvideochange",Q.gX,Q.Dq)}; sO=function(Z,Q,z){var K=Z.U,b=Z.n9(),q=Z.W;Z.W="";var r=Q.Xf-z.Xf;Math.abs(r)>.5&&Z.Sf({ttdtb:1,delta:r,cpn:b.cpn,enter:Q.adCpn,exit:z.adCpn,seek:K,skip:q});Z.api.V("html5_ssdai_enable_media_end_cue_range")&&Z.api.cJ();if(Q.isAd&&z.isAd){b=!!q;if(Q.adCpn&&z.adCpn){var D=Z.S.get(Q.adCpn);var v=Z.S.get(z.adCpn)}b?Z.Sf({igtransskip:1,enter:Q.adCpn,exit:z.adCpn,seek:K,skip:q}):ld(Z,v,D,z.Xf,Q.Xf,K,b)}else if(!Q.isAd&&z.isAd){Z.Jo=b.cpn;Z.api.publish("serverstitchedvideochange");D=wy(Z,"a2c");Z.Sf(D); Z.Tu=0;if(D=z.nf)Z.JG=D.end;var Y;z.adCpn&&(Y=Z.S.get(z.adCpn));Y&&Z.playback.fE(Y,b,z.Xf,Q.Xf,K,!!q)}else if(Q.isAd&&!z.isAd){var X;Q.adCpn&&(X=Z.S.get(Q.adCpn));X&&(Z.JG=0,Z.Jo=X.cpn,EA(Z,X),Y=wy(Z,"c2a",X),Z.Sf(Y),Z.Tu=1,Z.playback.fE(b,X,z.Xf,Q.Xf,K,!!q))}}; ZC=function(Z,Q,z){z=z===void 0?0:z;var K=g.Aj(Z.L,{mM:(Q+z)*1E3},function(D,v){return D.mM-v.mM}); K=K<0?(K+2)*-1:K;if(K>=0)for(var b=Q*1E3,q=K;q<=K+1&&q<Z.L.length;q++){var r=Z.L[q];if(b>=r.mM-z*1E3&&b<=r.JH+z*1E3)return{Z$:r,qA:Q}}return{Z$:void 0,qA:Q}}; p2x=function(Z,Q){var z="";(Q=Ce4(Z,Q))&&(z=Q.getId());return z?Z.S.get(z):void 0}; Ce4=function(Z,Q){if(Z.Jo){var z=Z.j.get(Z.Jo);if(z&&z.start-200<=Q&&z.end+200>=Q)return z}Z=g.n(Z.j.values());for(z=Z.next();!z.done;z=Z.next())if(z=z.value,z.start<=Q&&z.end>=Q)return z}; Nsn=function(Z,Q,z){var K=Z.DI||Z.app.eJ().getPlayerState();Qc(Z,!0);Z.playback.seekTo(Q,z);Z=Z.app.eJ();Q=Z.getPlayerState();K.isOrWillBePlaying()&&!Q.isOrWillBePlaying()?Z.playVideo():K.isPaused()&&!Q.isPaused()&&Z.pauseVideo()}; Qc=function(Z,Q){Z.sA=NaN;Z.X7=null;Z.F7.stop();Z.Zu&&Q&&Z.Zu.OC();Z.DI=null;Z.Zu=null}; HNG=function(Z){var Q=Q===void 0?-1:Q;var z=z===void 0?Infinity:z;for(var K=[],b=g.n(Z.L),q=b.next();!q.done;q=b.next())q=q.value,(q.mM<Q||q.JH>z)&&K.push(q);Z.L=K;K=g.n(Z.j.values());for(b=K.next();!b.done;b=K.next())b=b.value,b.start>=Q&&b.end<=z&&(Z.playback.removeCueRange(b),Z.j.delete(b.getId()),Z.Sf({rmAdCR:1}));K=ZC(Z,Q/1E3);Q=K.Z$;K=K.qA;if(Q&&(K=K*1E3-Q.mM,b=Q.mM+K,Q.durationMs=K,Q.JH=b,K=Z.j.get(Q.cpn))){b=g.n(Z.K);for(q=b.next();!q.done;q=b.next())q=q.value,q.start===K.end?q.start=Q.mM+ Q.durationMs:q.end===K.start&&(q.end=Q.mM);K.start=Q.mM;K.end=Q.mM+Q.durationMs}if(Q=ZC(Z,z/1E3).Z$){var r;K="playback_timelinePlaybackId_"+Q.gX+"_video_id_"+((r=Q.videoData)==null?void 0:r.videoId)+"_durationMs_"+Q.durationMs+"_enterTimeMs_"+Q.mM+"_parentReturnTimeMs_"+Q.JH;Z.B8("Invalid_clearEndTimeMs_"+z+"_that_falls_during_"+K+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; MoM=function(Z){Z.c7.clearAll();Z.j.clear();Z.K=[];Z.L=[];Z.S.clear();Z.ih.clear();Z.jJ.clear();Z.T.clear();Z.CN=[];Z.SJ=null;Z.zJ.clear();Z.Vp=[];Z.Sp=[];Z.A4=[];Z.De=[];Z.tG=[];Z.NB.clear();Z.IW.clear();Z.kL.clear();Z.s$.clear();Z.KN=!1;Z.Y=void 0;Z.JG=0;Z.Du=!0;Z.U=!1;Z.Tu=0;Z.fL=0;Z.Ph=!1;Z.qw=!1;Z.W="";Z.P7.isActive()&&eQ(Z)}; ON4=function(Z,Q,z,K,b,q){if(!Z.qw)if(g.UAd(Z,z))Z.Sf({gdu:"undec",seg:z,itag:b});else if(Q=z_(Z,Q,z,K,q),!(Z.playback.getVideoData().GJ()&&(Q==null?0:Q.pn)))return Q}; z_=function(Z,Q,z,K,b){var q=Z.T.get(z);if(!q){if(q=oUx(Z,Q))return q;Q=Z.vO(z-1,K!=null?K:2);if(b)return Z.Sf({misscue:b,sq:z,type:K,prevsstate:Q==null?void 0:Q.n8,prevrecord:Z.T.has(z-1)}),Z.T.get(z-1);if((Q==null?void 0:Q.n8)===2)return Z.Sf({adnf:1,sq:z,type:K,prevrecord:Z.T.has(z-1)}),Z.T.get(z-1)}return q}; oUx=function(Z,Q){Q+=Z.G1();if(Z.playback.getVideoData().GJ())a:{var z=1;z=z===void 0?0:z;var K=Q*1E3;Z=g.n(Z.L);for(var b=Z.next();!b.done;b=Z.next()){b=b.value;var q=b.Dq?b.Dq*1E3:b.mM;if(K>=b.mM-z*1E3&&K<=q+b.durationMs+z*1E3){K={Z$:b,qA:Q};break a}}K={Z$:void 0,qA:Q}}else K=ZC(Z,Q),((z=K)==null?0:z.Z$)||(K=ZC(Z,Q,1));var r;return(r=K)==null?void 0:r.Z$}; BsX=function(Z,Q){Q=Q===void 0?"":Q;var z=zK(Q)||void 0;if(!Q||!z){var K;Z.Sf({adcfg:(K=Q)==null?void 0:K.length,dcfg:z==null?void 0:z.length})}return z}; WaG=function(Z){if(Z.tG.length)for(var Q=g.n(Z.tG),z=Q.next();!z.done;z=Q.next())Z.onCueRangeExit(z.value);Q=g.n(Z.j.values());for(z=Q.next();!z.done;z=Q.next())Z.playback.removeCueRange(z.value);Q=g.n(Z.K);for(z=Q.next();!z.done;z=Q.next())Z.playback.removeCueRange(z.value);Z.j.clear();Z.K=[];Z.c7.clearAll();Z.Y||(Z.Du=!0)}; ld=function(Z,Q,z,K,b,q,r){if(Q&&z){Z.Jo=z.cpn;EA(Z,z);var D=wy(Z,"a2a",z);Z.Sf(D);Z.Tu++;Z.playback.fE(Q,z,K||0,b||0,!!q,!!r)}else Z.Sf({misspbkonadtrans:1,enter:(z==null?void 0:z.cpn)||"",exit:(Q==null?void 0:Q.cpn)||"",seek:q,skip:r})}; kYx=function(Z,Q,z,K){if(K)for(K=0;K<Z.K.length;){var b=Z.K[K];if(b.start<Q&&b.end>z){var q=b.end;b.end=Q;Vo9(Z,z,q)}else if(b.start>=Q&&b.start<z&&b.end>z)b.start=z;else if(b.end>Q&&b.end<=z&&b.start<Q)b.end=Q;else if(b.start>=Q&&b.end<=z){Z.playback.removeCueRange(b);if(Z.tG.includes(b))Z.onCueRangeExit(b);Z.K.splice(K,1);continue}K++}else Vo9(Z,Q,z)}; Vo9=function(Z,Q,z){Q=Z.lC(Q,z);z=!0;g.X7(Z.K,Q,function(r,D){return r.start-D.start}); for(var K=0;K<Z.K.length;){if(K>0){var b=Z.K[K],q=Z.K[K-1];if(Math.round(q.end/1E3)>=Math.round(b.start/1E3)){q.end=b.end;b!==Q?Z.playback.removeCueRange(b):z=!1;Z.K.splice(K,1);continue}}K++}if(z)for(Z.playback.addCueRange(Q),Q=Z.playback.Y1("serverstitchedcuerange",36E5),Q=g.n(Q),z=Q.next();!z.done;z=Q.next())Z.j.delete(z.value.getId())}; KC=function(Z,Q,z){if(z===void 0||!z){z=g.n(Z.CN);for(var K=z.next();!K.done;K=z.next()){K=K.value;if(Q>=K.start&&Q<=K.end)return;if(Q===K.end+1){K.end+=1;return}}Z.CN.push(new dAd(Q))}}; g.UAd=function(Z,Q){Z=g.n(Z.CN);for(var z=Z.next();!z.done;z=Z.next())if(z=z.value,Q>=z.start&&Q<=z.end)return!0;return!1}; anr=function(Z,Q,z,K,b){var q;Q={reason:"overlapping_playbacks",ExG:Q,mM:z,JH:K,eVJ:b.gX,mON:((q=b.videoData)==null?void 0:q.videoId)||"",DOB:b.durationMs,Z9F:b.mM,MlI:b.JH};Fj(Z,Q)}; Fj=function(Z,Q,z){Z.playback.kN(Q,z)}; ux0=function(Z,Q){var z=[];Z=Z.jJ.get(Q);if(!Z)return[];Z=g.n(Z);for(Q=Z.next();!Q.done;Q=Z.next())Q=Q.value,Q.cpn&&z.push(Q.cpn);return z}; xAn=function(Z,Q,z){var K=0;Z=Z.jJ.get(z);if(!Z)return-1;Z=g.n(Z);for(z=Z.next();!z.done;z=Z.next()){if(z.value.cpn===Q)return K;K++}return-1}; toG=function(Z,Q){var z=0;Z=Z.jJ.get(Q);if(!Z)return 0;Z=g.n(Z);for(Q=Z.next();!Q.done;Q=Z.next())Q=Q.value,Q.durationMs!==0&&Q.JH!==Q.mM&&z++;return z}; FaM=function(Z,Q,z){var K=!1;if(z&&(z=Z.jJ.get(z))){z=g.n(z);for(var b=z.next();!b.done;b=z.next())b=b.value,b.durationMs!==0&&b.JH!==b.mM&&(b=b.cpn,Q===b&&(K=!0),K&&!Z.IW.has(b)&&(Z.Sf({decoratedAd:b}),Z.IW.add(b)))}}; GYD=function(Z){Z.Qp&&Z.Sf({adf:"0_"+((new Date).getTime()/1E3-Z.fL)+"_isTimeout_"+Z.KN})}; iNu=function(Z,Q,z){if(Z.Vp.length)for(var K=g.n(Z.Vp),b=K.next(),q={};!b.done;q={pF:void 0},b=K.next()){q.pF=b.value;b=q.pF.startSecs*1E3;var r=q.pF.Nn*1E3+b;if(Q>b&&Q<r||z>b&&z<r)return ih(Z.A4,function(D){return function(v){return v.identifier===D.pF.identifier}}(q))||(Z.Sf({adskip:Q}),Z.A4.push(q.pF)),q.pF}}; eQ=function(Z){Z.KN=!1;Z.P7.isActive()&&GYD(Z);Z.P7.stop();Z.gI(!1)}; erD=function(){g.ta.apply(this,arguments)}; syf=function(Z,Q,z){g.O.call(this);var K=this;this.api=Z;this.timeline=Q;this.playback=z;this.GQ=new Map;this.vl=new Map;this.aB=new Map;this.events=new g.M5(this);this.Tu=0;this.qM=this.Jo="";this.b4=[];this.Q5=new Set;this.xa=new g.E6(function(){K.api.playVideo(1,K.api.V("html5_ssap_keep_media_on_finish_segment"));K.api.pN("ssap",{nve:""+K.Jo});w2W(K,4)},3E4); this.CE="";this.J9=new Set;this.Oh=!0;this.xY=new Map;this.Vs=new Set;this.po=this.tD=!1;this.BY="";this.hW=null;this.zz={WlN:function(){return K.vl}, ZT:function(b){if(b=K.vl.get(b))K.onCueRangeEnter(b)}, onCueRangeEnter:function(b){K.onCueRangeEnter(b)}, AeN:function(){return K.tD}}; this.playback.getPlayerType();EU9(this);Q.S=void 0;this.events.Z(this.api,g.r7("ssap"),this.onCueRangeEnter);this.events.Z(this.api,"internalAbandon",this.Yp);this.api.V("html5_ssap_timeline_handle_error_and_abandon")&&this.events.Z(this.api,"presentingplayerstatechange",this.FP);g.W(this,this.xa);this.kgf=g.Xp(Z.N().experiments,"html5_ssap_segment_end_media_threshold_ms")||200;this.Lh=Z.V("html5_disable_ssap_append_pause");this.tD=lnX(this)}; Z0G=function(Z,Q,z,K){for(var b=g.n(K),q=b.next();!q.done;q=b.next()){var r=q.value;r.j||((q=Vv(r),r=r.getVideoData(),q&&r&&Z.playback.Iu.nF().gW(q,r,2),r)?q||(r=void 0,Z.api.pN("ssap",{macac:q,maccc:(r=Z.timeline.Y)==null?void 0:Vv(r)})):(r=void 0,Z.api.pN("ssap",{mvac:q,mvcc:(r=Z.timeline.Y)==null?void 0:Vv(r)})))}return kJ(Z.timeline,Q,z,K)}; zLG=function(Z,Q){if(!Z.Q5.has(Z.Jo)){var z=0,K=0,b=QD(Z.timeline,Z.Jo);if(b==null?0:b.length)for(b=g.n(b),b=b.next();!b.done;b=b.next()){K=b.value;z=K.xX();K=K.aq();break}if(!(K>0&&K>Q*1E3+Z.kgf)&&(K=Qy4(Z,z))){Q=!1;z=void 0;K=g.n(K.segments);for(b=K.next();!b.done;b=K.next()){b=b.value;if(Q){z=b;break}Vv(b)===Z.Jo&&(Q=!0)}K=void 0;if(z)K=Vv(z);else if(Q){var q;K=(q=Z.timeline.Y)==null?void 0:Vv(q)}if(K)Z.finishSegmentByCpn(Z.Jo,K,2,void 0);else{var r;Z.api.pN("ssap",{mfnc:1,mfncc:(r=Z.timeline.Y)== null?void 0:Vv(r)})}}}}; lnX=function(Z){return Z.api.V("html5_force_ssap_gapful_switch")||Z.api.V("html5_ssap_enable_legacy_browser_logic")&&!Wd()}; qCf=function(Z,Q,z,K){Z.aB.set(Q,K);KNX(Z,Q,z);b0u(Z,z)}; dF=function(Z,Q){Z=QD(Z.timeline,Q);return(Z==null?0:Z.length)?Z[0].xX():0}; NK=function(Z,Q){var z=z===void 0?!1:z;var K=Z.timeline.Y;if(!K)return{clipId:"",wb:0};var b=rTx(Z,Q,z);if(b)return{clipId:Vv(b)||"",wb:b.xX()};Z.api.pN("mci",{cs:Vv(K),mt:Q,tl:f1(Z),invt:!!z});return{clipId:"",wb:0}}; lg=function(Z){var Q=Z.timeline.Y;if(!Q)return 0;Z=0;if(Q.Y.size===0)return(Q.aq()-Q.xX())/1E3;Q=Q.Y.values();Q=g.n(Q);for(var z=Q.next();!z.done;z=Q.next()){z=g.n(z.value);for(var K=z.next();!K.done;K=z.next())K=K.value,Z+=(K.aq()-K.xX())/1E3}return Z}; jyn=function(Z,Q){return(Z=ATG(Z,Q*1E3))?Z.xX():0}; Dw4=function(Z,Q){var z=QD(Z.timeline,Q);Q=0;if(z==null?0:z.length)for(Z=g.n(z),z=Z.next();!z.done;z=Z.next())z=z.value,Q+=(z.aq()-z.xX())/1E3;else return lg(Z);return Q}; ATG=function(Z,Q){if(Z=QD(Z.timeline,Z.Jo)){Z=g.n(Z);for(var z=Z.next();!z.done;z=Z.next())if(z=z.value,z.xX()<=Q&&z.aq()>=Q)return z}}; vwM=function(Z){var Q=Z.playback.getVideoData();Z.Jo&&(Z=Z.GQ.get(Z.Jo))&&(Q=Z);return Q}; Qy4=function(Z,Q,z){z=z===void 0?!1:z;var K=Z.timeline.Y;if(K){K=K.Y;var b=Array.from(K.keys());g.DI(b);Q=g.Aj(b,Q);Q=K.get(b[Q<0?(Q+2)*-1:Q]);if(!z&&Q){z=g.n(Q);for(Q=z.next();!Q.done;Q=z.next())if(Q=Q.value,Q.xX()!==Q.aq())return Q;return Z.timeline}return Q&&Q.length>0?Q[Q.length-1]:void 0}}; rTx=function(Z,Q,z){z=z===void 0?!1:z;var K=Qy4(Z,Q,z);if(K){if(Z=K.segments,Z.length){for(var b=g.n(Z),q=b.next();!q.done;q=b.next())if(q=q.value,q.xX()<=Q&&q.aq()>Q)return q;if(z&&K.xX()===K.aq())return Z[0]}}else Z.api.pN("ssap",{ctnf:1})}; w2W=function(Z,Q){var z;if(Z.CE)for(z=Z.b4.shift();z&&z!==Z.CE;)z=Z.b4.shift();else z=Z.b4.shift();if(z){if(Z.Q5.has(z))gw4(Z,z);else if(Q===3||Q===4)Z.xa.stop(),Z.api.playVideo(1,Z.api.V("html5_ssap_keep_media_on_finish_segment"));Z.aB.set(Z.Jo,Q);Z.api.pN("ssap",{onvftn:1});b0u(Z,z);return!1}Z.api.pN("ssap",{onvftv:1});Z.xa.stop();return!0}; gw4=function(Z,Q){Q=QD(Z.timeline,Q);if(Q==null?0:Q.length)Z.api.pauseVideo(),Z.xa.start(Q[0].gJ)}; b0u=function(Z,Q){var z=Z.playback.getVideoData(),K=z.clientPlaybackNonce;Z.hW&&(Z.events.oy(Z.hW),Z.hW=null,Z.playback.yg());var b=Z.Jo,q=!1;if(b==="")b=K,q=!0;else if(b===void 0){var r=Z.playback.Iu.nF().iI;r&&Z.timeline.j.has(r)&&(b=r);Z.api.pN("ssap",{mcc:b+";"+Q});Z.playback.U8(new N5("ssap.timelineerror",{e:"missing_current_cpn",pcpn:b,ccpn:Q}))}if(b===Q)q&&z&&YCG(Z,z,q);else{r=Z.aB.get(b);if(!q&&(!r||r!==3&&r!==5&&r!==6&&r!==7)){var D=Z.api.cJ(Z.Jo);Z.api.pN("ssap",{nmec:D,cpc:Z.Jo,ec:Q})}r&& r!==2||Z.FU();Z.Jo=Q;Z.FU();Q=QD(Z.timeline,Z.Jo);if(Q==null?0:Q.length){Q=Q[0];D=Q.getType();b!==K&&(Z.qM=b,z=Z.GQ.get(b));r?Z.aB.delete(b):r=q?1:2;Z.api.V("html5_ssap_pacf_qoe_ctmp")&&D===2&&!Q.j&&(Z.hW=Z.events.Z(Z.api,"onVideoProgress",Z.PYJ));Z.api.pN("ssapt",{ostro:r,pcpn:b,ccpn:Z.Jo});a:{var v=Z.Jo;if(!Z.vl.has(v))for(var Y=g.n(Z.vl),X=Y.next();!X.done;X=Y.next()){var S=g.n(X.value);X=S.next().value;S=S.next().value;if(S.getId().includes(v)){v=X;break a}}}X=v;Y=Z.api.N().V("html5_ssap_insert_su_before_nonvideo")&& X!==Z.Jo;S=Z.playback.Iu.nF();if(S.iI!==X){var T=S.NT(S.iI);v=S.NT(X);S.iI=X;v!==T&&(T.qoe&&(X=T.qoe,X.provider.Yh.aT()&&X.pN("ssap",{qoesus:"1",vid:X.provider.videoData.videoId}),Y&&(Y=g.m4(X.provider),Iin(X,Y,"SU")),isNaN(X.K)||g.hN(X.K)),v.resume())}Y=Math.max(0,bZ(Z,b));v=Z.playback.getCurrentTime();X=Math.max(0,v-dF(Z,Z.Jo)/1E3);v=Q.getVideoData();S=r===3||r===5||r===6||r===7;Z.api.V("html5_ssap_skip_illegal_seeking")&&(T=Z.playback.getPlayerState(),T=!g.t(T,8)&&g.t(T,16),S=S||T,T&&Z.api.pN("ssap", {iis:1}));T=Z.playback;var f=b,h=Z.Jo,m=Z.playback.getPlayerState();T.Iu.nF().Y4(f,h,Y,X,!1,S,m,!0);Z.api.pN("ssapt",{ostri:r,pcpn:b,ccpn:Z.Jo});var J;Y=b;X=Z.Jo;S=(J=Z.xY.get(b))!=null?J:(0,g.Nm)();uEG(Y,X,K,v,S,z);Z.xY.delete(b);q?z=void 0:z||Z.api.pN("ssap",{pvdm:b+";"+Z.Jo,pvdmc:Z.Jo===K?"1":"0"});Z.api.pN("ssap",{tpac:b+";"+Z.Jo,tpcc:K,tpv:(v==null?0:v.hH())?"1":"0"},!1,1);Z.api.N().V("html5_ssap_cleanup_player_switch_ad_player")&&Z.api.yY();Z.api.publish("videodatachange","newdata",v,D,z,r); Q.j||Z.playback.getVideoData().publish("dataupdated");Z.Q5.delete(b);Z.CE="";v&&D===1?YCG(Z,v):Z.playback.pN("ssap",{nis:Z.Jo});D===2?Z.Tu++:Z.Tu=0}}}; YCG=function(Z,Q,z){z=z===void 0?!1:z;if(Q.startSeconds&&Z.Oh){var K=Q.startSeconds;Q=QD(Z.timeline,Q.clientPlaybackNonce);if(Q==null?0:Q.length)K+=Q[0].xX()/1E3,Z.api.V("htm5_ssap_ignore_initial_seek_if_too_big")&&K>=Z.UT()||(Z.playback.seekTo(K,{TX:!0}),Z.Oh=!1,Z.playback.pN("ssap",{is:Z.Jo,co:z?"1":"0",tse:K.toFixed()}))}}; KNX=function(Z,Q,z){Q=QD(Z.timeline,Q);if(Q!=null&&Q.length&&(Q=Qy4(Z,Q[0].xX()))){Q=g.n(Q.segments);for(var K=Q.next();!K.done;K=Q.next()){K=K.value;if(Vv(K)===z)break;if(K=Vv(K)){var b=Z.vl.get(K);b&&Z.playback.removeCueRange(b);Z.vl.delete(K)}}}}; iH=function(Z){return Z.playback.getVideoData().clientPlaybackNonce}; Rp4=function(Z,Q){if(Z.tD&&Z.Jo!==Q)return!1;if(Z.Lh)return!0;if(Q=Z.vl.get(Q))if(Q=Q.getId().split(","),Q.length>1)for(var z=0;z<Q.length;z++){var K=z<Q.length-1?Q[z+1]:"";if(Z.Q5.has(Q[z]))return Q[z]===Z.Jo&&!Z.Q5.has(K)}return!0}; lOM=function(Z,Q,z){rTx(Z,Q)||Z.playback.pN("ssap",{ilgsk:Q.toFixed(),mep:z?"1":"0",tl:f1(Z)})}; bZ=function(Z,Q){Q=Q||Z.Jo;var z=Z.GQ.get(Q);return z?z.Zu:Q!==iH(Z)?0:Z.playback.getVideoData().Zu}; f1=function(Z){var Q=Z.Jo;Q||(Q=Z.playback.getVideoData().clientPlaybackNonce);var z,K,b=Array.from((K=(z=Z.timeline.Y)==null?void 0:z.Y.values())!=null?K:[]);z=[];if(b==null?0:b.length)for(K=g.n(b),b=K.next();!b.done;b=K.next())if(b=b.value,b.length&&b[0]&&(b=b[0].segments,b.length)){b=g.n(b);for(var q=b.next();!q.done;q=b.next()){var r=q.value;q="st."+r.xX()+";";q+="et."+r.aq()+";";var D=Vv(r);D&&(q+="cpn."+D+";",q+="a."+(Q===D?1:0)+";");if(r=r.getVideoData())D=void 0,q+="vid."+((D=r.videoId)!= null?D:"nvd");z.push(q)}}return(z.length?z.join(","):"empty."+Q)+";cpcpn."+Z.lw()}; EU9=function(Z){Z.playback.D6(Array.from(Z.vl.values()));Z.vl.clear()}; SC4=function(Z,Q,z,K){g.O.call(this);var b=this;this.api=Z;this.Yh=Q;this.Y=z;this.app=K;this.L=new Map;this.j=[];this.S=this.T=null;this.jJ=NaN;this.K=this.W=this.U=null;this.X=new g.E6(function(){Xw4(b,b.jJ,b.U||void 0)}); this.SJ=[];this.P7=new g.E6(function(){var q=b.SJ.pop();if(q){var r=q.gX,D=q.playerVars;q=q.playerType;D&&(D.prefer_gapless=!0,b.api.preloadVideoByPlayerVars(D,q,NaN,"",r),b.SJ.length&&g.lR(b.P7,4500))}}); this.events=new g.M5(this);this.zz={j0g:function(){return b.j}}; this.Y.getPlayerType();g.W(this,this.X);g.W(this,this.P7);g.W(this,this.events);this.events.Z(this.api,g.r7("childplayback"),this.onCueRangeEnter);this.events.Z(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.Z(this.api,"presentingplayerstatechange",this.FP)}; hLG=function(Z,Q,z,K,b,q){var r=Q.cpn,D=Q.docid||Q.video_id||Q.videoId||Q.id,v=Z.Y;q=q===void 0?b+K:q;if(b>q)return q$(Z,"enterAfterReturn enterTimeMs="+b+" is greater than parentReturnTimeMs="+q.toFixed(3),r,D),"";var Y=v.Ze()*1E3;if(b<Y)return q$(Z,"enterBeforeMinSeekable enterTimeMs="+b+" is less than parentMinSeekableTimeMs="+Y,r,D),"";Y=v.getDuration()*1E3;if(q>Y)return v="returnAfterDuration parentReturnTimeMs="+q.toFixed(3)+" is greater than parentDurationMs="+Y+". And timestampOffset in seconds is "+ v.Ry(),q$(Z,v,r,D),"";Y=null;for(var X=g.n(Z.j),S=X.next();!S.done;S=X.next()){S=S.value;if(b>=S.mM&&b<S.JH)return q$(Z,"overlappingEnter",r,D),"";if(q<=S.JH&&q>S.mM)return q$(Z,"overlappingReturn",r,D),"";if(q===S.mM)return q$(Z,"outOfOrder",r,D),"";b===S.JH&&(Y=S)}r="cs_childplayback_"+$wx++;D={nf:r3(K,!0),zQ:Infinity,target:null};var T={gX:r,playerVars:Q,playerType:z,durationMs:K,mM:b,JH:q,QD:D};Z.j=Z.j.concat(T).sort(function(m,J){return m.mM-J.mM}); Y?TGd(Z,Y,{nf:r3(Y.durationMs,!0),zQ:Y.QD.zQ,target:T}):(Q={nf:r3(b,!1),zQ:b,target:T},Z.L.set(Q.nf,Q),v.addCueRange(Q.nf));Q=!0;if(Z.Y===Z.app.eJ()&&(v=v.getCurrentTime()*1E3,v>=T.mM&&v<T.JH)){var f=Z.app.eJ().getPlayerState(),h=v-T.mM;zD(function(){fQd(Z,T,h/1E3,{},f)}); Q=!1}Q&&(Z.SJ.unshift(T),g.lR(Z.P7,0));return r}; r3=function(Z,Q){return new g.b6(Math.max(0,Z-5E3),Q?0x8000000000000:Z-1,{namespace:"childplayback",priority:9})}; LN0=function(Z,Q,z,K){Z.S=K;Z.api.FC(Z.Y,z,Q)}; nwf=function(Z,Q,z,K){Z.S=K;K=Q.gX;var b=Q.playerVars,q=Q.playerType;Z.T=Q;b&&(Z.Yh.V("html5_enable_ssap_entity_id")&&(b.cached_load=!0),Z.api.enqueueVideoByPlayerVars(b,q,z,K))}; TGd=function(Z,Q,z){var K=Q.QD;Q.QD=z;Az(Z,Q)&&(z=Z.app.eJ(),K.nf===Z.S&&jV(Z),z.removeCueRange(K.nf),z.addCueRange(Q.QD.nf))}; jV=function(Z){Z.T=null;Z.S=null;Z.api.dV()||Z.api.clearQueue()}; cTW=function(Z,Q){Az(Z,Q)||q$(Z,"childPlaybackIsNotPresenting");return Q.JH===Q.mM+Q.durationMs?Q.mM+Z.app.eJ().getCurrentTime()*1E3:Q.JH}; mwf=function(Z,Q){var z=0;Z=g.n(Z.j);for(var K=Z.next();!K.done;K=Z.next()){K=K.value;var b=K.mM/1E3+z,q=b+K.durationMs/1E3;if(b>Q)break;if(q>Q)return{Z$:K,qA:Q-b};z=q-K.JH/1E3}return{Z$:null,qA:Q-z}}; Xw4=function(Z,Q,z){z=z===void 0?{}:z;var K=Z.K||Z.app.eJ().getPlayerState();DC(Z,!0);Q=isFinite(Q)?Q:Z.Y.GT();var b=mwf(Z,Q);Q=b.qA;var q=(b=b.Z$)&&!Az(Z,b)||!b&&Z.Y!==Z.app.eJ(),r=Q*1E3;r=Z.S&&Z.S.start<=r&&r<=Z.S.end;!q&&r||jV(Z);b?fQd(Z,b,Q,z,K):IQD(Z,Q,z,K)}; IQD=function(Z,Q,z,K){var b=Z.Y;b!==Z.app.eJ()&&Z.app.TA();b.seekTo(Q,Object.assign({},{s8:"application_timelinemanager"},z));JTu(Z,K)}; fQd=function(Z,Q,z,K,b){var q=Az(Z,Q);if(!q){Q.playerVars.prefer_gapless=!0;Z.Yh.V("html5_enable_ssap_entity_id")&&(Q.playerVars.cached_load=!0);var r=new g.OK(Z.Yh,Q.playerVars);r.gX=Q.gX;Z.api.eV(r,Q.playerType)}r=Z.app.eJ();q||r.addCueRange(Q.QD.nf);r.seekTo(z,Object.assign({},{s8:"application_timelinemanager"},K));JTu(Z,b)}; JTu=function(Z,Q){Z=Z.app.eJ();var z=Z.getPlayerState();Q.isOrWillBePlaying()&&!z.isOrWillBePlaying()?Z.playVideo():Q.isPaused()&&!z.isPaused()&&Z.pauseVideo()}; DC=function(Z,Q){Z.jJ=NaN;Z.U=null;Z.X.stop();Z.W&&Q&&Z.W.OC();Z.K=null;Z.W=null}; Az=function(Z,Q){Z=Z.app.eJ();return!!Z&&Z.getVideoData().gX===Q.gX}; yTW=function(Z){var Q=Z.j.find(function(b){return Az(Z,b)}); if(Q){var z=Z.app.eJ();jV(Z);var K=new g.Kg(8);Q=cTW(Z,Q)/1E3;IQD(Z,Q,{},K);z.pN("forceParentTransition",{childPlayback:1});Z.Y.pN("forceParentTransition",{parentPlayback:1})}}; NGG=function(Z,Q,z){Q=Q===void 0?-1:Q;z=z===void 0?Infinity:z;for(var K=Q,b=z,q=g.n(Z.L),r=q.next();!r.done;r=q.next()){var D=g.n(r.value);r=D.next().value;D=D.next().value;D.zQ>=K&&D.target&&D.target.JH<=b&&(Z.Y.removeCueRange(r),Z.L.delete(r))}K=Q;b=z;q=[];r=g.n(Z.j);for(D=r.next();!D.done;D=r.next())if(D=D.value,D.mM>=K&&D.JH<=b){var v=Z;v.T===D&&jV(v);Az(v,D)&&v.app.TA()}else q.push(D);Z.j=q;K=mwf(Z,Q/1E3);Q=K.Z$;K=K.qA;Q&&(K*=1E3,dwX(Z,Q,K,Q.JH===Q.mM+Q.durationMs?Q.mM+K:Q.JH));(Q=mwf(Z,z/1E3).Z$)&& q$(Z,"Invalid clearEndTimeMs="+z+" that falls during playback={timelinePlaybackId="+(Q.gX+" video_id="+Q.playerVars.video_id+" durationMs="+Q.durationMs+" enterTimeMs="+Q.mM+" parentReturnTimeMs="+Q.JH+"}.Child playbacks can only have duration updated not their start."))}; dwX=function(Z,Q,z,K){Q.durationMs=z;Q.JH=K;K={nf:r3(z,!0),zQ:z,target:null};TGd(Z,Q,K);Az(Z,Q)&&Z.app.eJ().getCurrentTime()*1E3>z&&(Q=cTW(Z,Q)/1E3,z=Z.app.eJ().getPlayerState(),IQD(Z,Q,{},z))}; q$=function(Z,Q,z,K){Z.Y.pN("timelineerror",{e:Q,cpn:z?z:void 0,videoId:K?K:void 0})}; i0n=function(Z){Z&&Z!=="web"&&GR0.includes(Z)}; Y8=function(Z,Q){g.O.call(this);var z=this;this.data=[];this.S=Z||NaN;this.j=Q||null;this.Y=new g.E6(function(){vp(z);g3(z)}); g.W(this,this.Y)}; aQ9=function(Z){vp(Z);return Z.data.map(function(Q){return Q.value})}; vp=function(Z){var Q=(0,g.Nm)();Z.data.forEach(function(z){z.expire<Q&&Xe(Z,z,!0)}); Z.data=g.jr(Z.data,function(z){return!(z.expire<Q)})}; Xe=function(Z,Q,z){z&&Z.j&&Z.j(Q.value)}; g3=function(Z){Z.Y.stop();var Q=Infinity;for(var z=g.n(Z.data),K=z.next();!K.done;K=z.next())K=K.value,K.expire<Q&&(Q=K.expire);Q&&isFinite(Q)&&(Q=Math.max(Q-Date.now(),100),Z.Y.start(Q))}; SV=function(){g.O.call(this);this.Y=new Y8(5,null);g.W(this,this.Y);this.j=new Y8(15,null);g.W(this,this.j)}; NjX=function(Z,Q){return Q?!!Z.Y.get(Q):!1}; P4M=function(Z,Q){Z.dataset.version=Q}; pw0=function(Z){g.x.call(this,{B:"div",nN:["html5-video-player"],C:{tabindex:Z.N().disableOrganicUi?"":"-1",id:Z.webPlayerContextConfig?Z.webPlayerContextConfig.rootElementId:Z.config.attrs.id},G:[{B:"div",D:g.Oe.VIDEO_CONTAINER,C:{"data-layer":"0"}}]});var Q=this;this.app=Z;this.QY=this.Ru(g.Oe.VIDEO_CONTAINER);this.IB=new g.ro(0,0,0,0);this.Hh=null;this.tF=new g.ro(0,0,0,0);this.KU=this.MP=this.ZX=NaN;this.cR=this.rh=this.nT=this.bZ=!1;this.eD=NaN;this.B6=!1;this.Z5=null;this.L_=function(){Q.element.focus({preventScroll:!0})}; this.iS=function(){Q.app.fN.publish("playerUnderlayVisibilityChange","visible");Q.Hh.classList.remove(g.Oe.VIDEO_CONTAINER_TRANSITIONING);Q.Hh.removeEventListener(KL,Q.iS);Q.Hh.removeEventListener("transitioncancel",Q.iS)}; var z=this.element.addEventListener,K=this.element.removeEventListener;this.addEventListener=function(q,r,D){z.apply(Q.element,[q,r,D])}; this.removeEventListener=function(q,r,D){K.apply(Q.element,[q,r,D])}; var b=Z.N();b.transparentBackground&&this.Zh("ytp-transparent");b.controlsType==="0"&&this.Zh("ytp-hide-controls");g.rd(this.element,"ytp-exp-bottom-control-flexbox");g.rd(this.element,"ytp-modern-caption");b.V("enable_new_paid_product_placement")&&!g.xa(b)&&g.rd(this.element,"ytp-exp-ppp-update");b.V("html5_enable_ssap")&&g.rd(this.element,"ytp-ssap");g.rd(this.element,"ytp-livebadge-color");b.V("delhi_modern_web_player")&&g.rd(this.element,"ytp-delhi-modern");P4M(this.element,RLX(Z));this.Jk=!1; this.Kc=new g.SO(NaN,NaN);C4G(this);this.Z(Z.fN,"onMutedAutoplayChange",this.onMutedAutoplayChange)}; C4G=function(Z){function Q(){Z.Hh&&$8(Z);T_(Z)!==Z.B6&&Z.resize()} function z(r,D){Z.AL(r,D)} function K(r){r.getVideoData()&&Z.updateVideoData(r.getVideoData())} function b(){Z.tF=new g.ro(0,0,0,0);Z.IB=new g.ro(0,0,0,0)} var q=Z.app.fN;q.addEventListener("initializingmode",b);q.addEventListener("videoplayerreset",K);q.addEventListener("videodatachange",z);q.addEventListener("presentingplayerstatechange",Q);Z.addOnDisposeCallback(function(){q.removeEventListener("initializingmode",b);q.removeEventListener("videoplayerreset",K);q.removeEventListener("videodatachange",z);q.removeEventListener("presentingplayerstatechange",Q)})}; MUr=function(Z){var Q=Z.app.eJ(),z=Q=Q?Q.getVideoData():null;if(Q==null?0:g.V0(Q))z=Z.app.fN.getVideoData();if(z){if(g.JP(z)||g.ya(z)||g.dP(z))return 16/9;if(EK(z)&&z.S.Y)return Z=z.S.videoInfos[0].video,H0n(Z.width,Z.height)}return(Z=Z.Hh)?H0n(Z.videoWidth,Z.videoHeight):16/9}; Uwn=function(Z,Q,z,K){var b=z,q=H0n(Q.width,Q.height);Z.bZ?b=z<q?Infinity:0:isNaN(Z.KU)?isNaN(Z.MP)||(b=Z.MP):b=Z.KU;isFinite(b)||(b=Math.max(z,q));Z=b>q?{width:Q.width,height:Q.width/b,aspectRatio:b}:b<q?{width:Q.height*b,height:Q.height,aspectRatio:b}:{width:Q.width,height:Q.height,aspectRatio:q};K||isNaN(z)||(z>b?Z.width=Z.height*z:z<b&&(Z.height=Z.width/z),Z.aspectRatio=z);return Z}; H0n=function(Z,Q){return Math.abs(O0n*Q-Z)<1||Math.abs(O0n/Z-Q)<1?O0n:Z/Q}; T_=function(Z){if(Z.app.getAppState()===1)return!1;if(Z.app.getAppState()===6)return!0;var Q=Z.app.eJ();if(!Q||Q.Um())return!1;Z=Z.app.fN.getPlayerStateObject();Q=!g.t(Z,2)||Q&&Q.getVideoData().X;var z=g.t(Z,1024);return Z&&Q&&!z&&!Z.isCued()}; $8=function(Z){var Q=Z.app.N().controlsType==="3"&&!Z.cR&&T_(Z)&&!Z.app.kf||!1;Z.Hh.controls=Q;Z.Hh.tabIndex=Q?0:-1;Z.app.N().W&&(Z.Hh.ariaHidden=Q||Z.app.N().V("video_element_aria_hidden_ks")?"false":"true");Q?Z.Hh.removeEventListener("focus",Z.L_):Z.Hh.addEventListener("focus",Z.L_)}; owx=function(Z){var Q=Z.KZ(),z=1,K=!1,b=Uwn(Z,Q,Z.getVideoAspectRatio()),q=Z.app.N(),r=q.V("enable_desktop_player_underlay"),D=nlD(),v=g.Xp(q.experiments,"player_underlay_min_player_width");v=r&&Z.nT&&Z.getPlayerSize().width>v;if(T_(Z)){var Y=MUr(Z);var X=isNaN(Y)||g.Fc||tZ&&g.Lc||v;th&&!g.fG(601)?Y=b.aspectRatio:X=X||q.controlsType==="3";X?v?(X=q.V("place_shrunken_video_on_left_of_player")?16:Z.getPlayerSize().width-Q.width-16,Y=Math.max((Z.getPlayerSize().height-Q.height)/2,0),X=new g.ro(X,Y,Q.width, Q.height),Z.Hh.style.setProperty("border-radius","12px")):X=new g.ro(0,0,Q.width,Q.height):(z=b.aspectRatio/Y,X=new g.ro((Q.width-b.width/z)/2,(Q.height-b.height)/2,b.width/z,b.height),z===1&&g.Lc&&(Y=X.width-Q.height*Y,Y>0&&(X.width+=Y,X.height+=Y)));g.vC(Z.element,"ytp-fit-cover-video",Math.max(X.width-b.width,X.height-b.height)<1);if(D||Z.Jk)Z.Hh.style.display="";Z.B6=!0}else{X=-Q.height;th?X*=window.devicePixelRatio:g.tC&&(X-=window.screen.height);X=new g.ro(0,X,Q.width,Q.height);if(D||Z.Jk)Z.Hh.style.display= "none";Z.B6=!1}AG(Z.tF,X)||(Z.tF=X,g.ia(q)?(Z.Hh.style.setProperty("width",X.width+"px","important"),Z.Hh.style.setProperty("height",X.height+"px","important")):g.L4(Z.Hh,X.getSize()),K=new g.Yv(X.left,X.top),g.$s(Z.Hh,Math.round(K.x),Math.round(K.y)),K=!0);Q=new g.ro((Q.width-b.width)/2,(Q.height-b.height)/2,b.width,b.height);AG(Z.IB,Q)||(Z.IB=Q,K=!0);g.Dw(Z.Hh,"transform",z===1?"":"scaleX("+z+")");r&&v!==Z.rh&&(v&&(Z.Hh.addEventListener(KL,Z.iS),Z.Hh.addEventListener("transitioncancel",Z.iS),Z.Hh.classList.add(g.Oe.VIDEO_CONTAINER_TRANSITIONING)), Z.rh=v,Z.app.fN.publish("playerUnderlayVisibilityChange",Z.rh?"transitioning":"hidden"));return K}; BGM=function(){this.csn=g.Jy();this.clientPlaybackNonce=null;this.elements=new Set;this.S=new Set;this.Y=new Set;this.j=new Set}; WN4=function(Z){if(Z.csn!==g.Jy())if(Z.csn==="UNDEFINED_CSN")Z.csn=g.Jy();else{var Q=g.Jy(),z=g.Im();if(Q&&z){Z.csn=Q;for(var K=g.n(Z.elements),b=K.next();!b.done;b=K.next())(b=b.value.visualElement)&&b.isClientVe()&&Q&&z&&(g.nA("combine_ve_grafts")?m5(nY(),b,z):g.lW(g.xY)(void 0,Q,z,b))}if(Q)for(Z=g.n(Z.Y),z=Z.next();!z.done;z=Z.next())(z=z.value.visualElement)&&z.isClientVe()&&g.Zz(Q,z)}}; g.fC=function(Z,Q,z,K){g.O.call(this);var b=this;this.logger=new g.EV("App");this.kf=this.EZ=!1;this.fu={};this.RB=[];this.hY=!1;this.G5=null;this.intentionalPlayback=!1;this.uU=!0;this.rQ=!1;this.K5=this.Lo=null;this.xw=!0;this.mediaElement=this.Vw=null;this.uu=NaN;this.R2=!1;this.py=this.Uc=this.jf=this.Qk=this.screenLayer=this.playlist=null;this.S6=[];this.un=0;this.zz={MbJ:function(){return b.Zi}, wp:function(){return b.jf}, GA:function(r){b.jf=r}, Ia:function(r,D){b.jf&&b.jf.Ia(r,D)}}; this.logger.debug("constructor begin");this.config=t_d(Q||{});this.webPlayerContextConfig=z;rw0();Q=this.config.args||{};this.Yh=new Mx(Q,z,z?z.canaryState:this.config.assets.player_canary_state,K,this);g.W(this,this.Yh);Lau(this.Yh);K=cUn(this.Yh);this.Yh.aT()&&this.S6.push({key:"h5vcc",value:K});this.Yh.experiments.XI("jspb_serialize_with_worker")&&VLM();this.Yh.experiments.XI("gzip_gel_with_worker")&&CWn();this.Yh.j&&!VU9&&(window.addEventListener(Ln?"touchstart":"click",w59,{capture:!0,passive:!0}), VU9=!0);this.V("html5_onesie")&&(this.Rk=new dH(this.Yh),g.W(this,this.Rk));this.Kx=zM(JC(this.Yh)&&!0,Q.enablesizebutton);this.P6=zM(!1,Q.player_wide);this.visibility=new X2f;g.W(this,this.visibility);this.V("web_log_theater_mode_visibility")&&this.rN(zM(!1,Q.player_wide));this.EZ=zM(!1,Q.external_list);this.events=new g.M5(this);g.W(this,this.events);this.V("start_client_gcf")&&(Gt(RY(),{vV:j7,Lk:zEn()}),this.lD=RY().resolve(j7),qf9(this.lD));this.yjp=new qZ;g.W(this,this.yjp);this.cM=new BGM;K= new rR;this.fN=new g.LW(this,K);g.W(this,this.fN);this.template=new pw0(this);g.W(this,this.template);this.appState=1;this.UN=kR9(this);g.W(this,K);K={};this.w8=(K.internalvideodatachange=this.jM,K.playbackready=this.aI7,K.playbackstarted=this.Nqu,K.statechange=this.sTf,K);this.U5=new hv(this.fN);this.Za=uun(this);K=this.V("html5_load_wasm");Q=this.V("html5_allow_asmjs");if(K&&xwW||Q)this.Yh.lI=Hau(this.Za,Q),v3(D7(this.Yh.lI,function(r){b.Yh.Kf=r;var D;(D=b.eJ())==null||D.pN("wasm",{a:r.al})}),function(r){g.CO(r); r="message"in r&&r.message||r.toString()||"";var D;(D=b.eJ())==null||D.pN("wasm",{e:r})}); else if(K&&!xwW){var q;(q=this.eJ())==null||q.pN("wasm",{e:"wasm unavailable"})}this.rq=new Vbd(this.Yh,this.Za);this.fN.publish("csiinitialized");q=10;g.Nf(this.Yh)&&(q=3);ua(this.Yh)&&(q=g.Xp(this.Yh.experiments,"tvhtml5_unplugged_preload_cache_size"));q=new Y8(q,function(r){r!==b.GW(r.getPlayerType())&&t9(r)}); g.W(this,q);this.Zi=new SLx(q,{});q=tUd(this);this.Zi.S1(q.O7);FNu(this);q={};this.Jb=(q.airplayactivechange=this.onAirPlayActiveChange,q.airplayavailabilitychange=this.onAirPlayAvailabilityChange,q.beginseeking=this.wG,q.sabrCaptionsDataLoaded=this.Im,q.endseeking=this.Bd,q.internalAbandon=this.Yp,q.internalaudioformatchange=this.xf,q.internalvideodatachange=this.onVideoDataChange,q.internalvideoformatchange=this.Nx,q.liveviewshift=this.vdf,q.playbackstalledatstart=this.qS$,q.progresssync=this.wor, q.onAbnormalityDetected=this.Ym,q.onSnackbarMessage=this.onSnackbarMessage,q.onLoadProgress=this.onLoadProgress,q.SEEK_COMPLETE=this.eg,q.SEEK_TO=this.Zf$,q.onVideoProgress=this.onVideoProgress,q.onLoadedMetadata=this.onLoadedMetadata,q.onAutoplayBlocked=this.onAutoplayBlocked,q.onPlaybackPauseAtStart=this.q8u,q.playbackready=this.A4g,q.statechange=this.GI,q.newelementrequired=this.FW,q.heartbeatparams=this.Qz,q.videoelementevent=this.Sk,q.drmoutputrestricted=this.onDrmOutputRestricted,q.signatureexpired= this.yHr,q.nonfatalerror=this.aeI,q.reloadplayer=this.OfN,q);this.yM=new g.M5(this);g.W(this,this.yM);this.X8=new SV;g.W(this,this.X8);this.KS=this.xs=-1;this.hF=new g.E6(this.template.resize,16,this.template);g.W(this,this.hF);this.y3=new SC4(this.fN,this.Yh,this.IT(),this);this.We=new WU(this.Yh);this.Hl=new oQ(this);g.W(this,this.Hl);this.qq=new HU(this);g.W(this,this.qq);i0n(this.Yh.Y.c);this.events.Z(this.fN,g.r7("appapi"),this.MfB);this.events.Z(this.fN,g.AH("appapi"),this.eLI);this.events.Z(this.fN, g.r7("appprogressboundary"),this.SSI);this.events.Z(this.fN,g.AH("applooprange"),this.UF);this.events.Z(this.fN,"presentingplayerstatechange",this.FP);this.events.Z(this.fN,"resize",this.LvY);this.template.zf(oe(document,Z));this.events.Z(this.fN,"offlineslatestatechange",this.y4h);this.events.Z(this.fN,"sabrCaptionsTrackChanged",this.faG);this.events.Z(this.fN,"sabrCaptionsBufferedRangesUpdated",this.oLu);this.Za.J.N().DH&&Cy(this.Za,"offline");this.Yh.CN&&g.Iq("ux",g.Ca);Z=g.Xp(this.Yh.experiments, "html5_defer_fetch_att_ms");this.CG=new g.E6(this.AjY,Z,this);g.W(this,this.CG);this.SP().hH()&&(g.MW()&&this.SP().JG.push("remote"),eLd(this));this.rq.tick("fs");ww9(this);this.Yh.CN&&Cy(this.Za,"ux",!0);g.mj(this.Za.J.N())&&Cy(this.Za,"embed");this.V("web_player_sentinel_is_uniplayer")||g.CO(new g.tW("Player experiment flags missing","web_player_sentinel_is_uniplayer"));Z=this.V("web_player_sentinel_yt_experiments_sync");q=g.nA("web_player_sentinel_yt_experiments_sync");Z!==q&&g.CO(new g.tW("b/195699950", {yt:Z,player:q}));z||g.CO(new g.tW("b/179532961"));this.Rj=Ewn(this);if(z=g.Xp(this.Yh.experiments,"html5_block_pip_safari_delay"))this.kc=new g.E6(this.B5,z,this),g.W(this,this.kc);CA=this.Yh.fL;z=g.Xp(this.Yh.experiments,"html5_performance_impact_profiling_timer_ms");z>0&&(this.Yj=new g.nE(z),g.W(this,this.Yj),this.events.Z(this.Yj,"tick",function(){b.I_&&lQd.BO("apit",b.I_);b.I_=lQd.TM()})); this.fN.publish("applicationInitialized");this.logger.debug("constructor end")}; Ewn=function(Z){function Q(z){z.stack&&z.stack.indexOf("player")!==-1&&(Z.eJ()||Z.IT()).JX(z)} pO.subscribe("handleError",Q);wI.push(Q);return function(){pO.unsubscribe("handleError",Q);var z=wI.indexOf(Q);z!==-1&&wI.splice(z,1)}}; tUd=function(Z){var Q=new g.OK(Z.Yh,Z.config.args);Z.fN.publish("initialvideodatacreated",Q);return g.hz(Z,1,Q)}; FNu=function(Z){var Q=Z.IT();Q.setPlaybackRate(Z.Yh.W?1:sBu(Z,Number(g.pS("yt-player-playback-rate"))||1));Q.EK(Z.w8,Z);Q.Ww()}; uun=function(Z){var Q="",z=RLX(Z);z.indexOf("//")===0&&(z=Z.Yh.protocol+":"+z);var K=z.lastIndexOf("/base.js");K!==-1&&(Q=z.substring(0,K+1));if(z=Error().stack)if(z=z.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))z=z[1],z.includes(Q)||g.CO(Error("Player module URL mismatch: "+(z+" vs "+Q+".")));Q=new htn(Z.fN,Q);Zr9(Z,Q);return Q}; Zr9=function(Z,Q){var z={};z=(z.destroyed=function(){Z.onApiChange()},z); Q.S=z}; kR9=function(Z){if(Z.Yh.storeUserVolume){Z=g.pS("yt-player-volume")||{};var Q=Z.volume;Z={volume:isNaN(Q)?100:g.Al(Math.floor(Q),0,100),muted:!!Z.muted}}else Z={volume:100,muted:Z.Yh.mute};return Z}; LC=function(Z){Z.mediaElement=Z.Yh.deviceIsAudioOnly?new g.qp(g.lY("AUDIO")):pa.pop()||new g.qp(g.lY("VIDEO"));g.W(Z,Z.mediaElement);var Q=Z.eJ();Q&&Q.setMediaElement(Z.mediaElement);try{Z.Yh.De?(Z.Uc&&Z.events.oy(Z.Uc),Z.Uc=Z.events.Z(Z.mediaElement,"volumechange",Z.EdG)):(Z.mediaElement.zM(Z.UN.muted),Z.mediaElement.setVolume(Z.UN.volume/100))}catch(b){Z.Os("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(b&&typeof b==="object"&&"message"in b&&typeof b.message==="string"&&b.message.replace(/[;:,]/g, "_")));return}g.ib(Z.yM);QBf(Z);Q=Z.template;var z=Z.mediaElement.OA();Q.Hh=z;Q.cR=!1;Q.Hh.parentNode||zB(Q.QY,Q.Hh,0);Q.tF=new g.ro(0,0,0,0);owx(Q);$8(Q);z=Q.Hh;g.rd(z,"video-stream");g.rd(z,g.Oe.MAIN_VIDEO);var K=Q.app.N();K.Yi&&z.setAttribute("data-no-fullscreen","true");K.V("html5_local_playsinline")?"playsInline"in a3()&&(z.playsInline=!0):K.u7&&(z.setAttribute("webkit-playsinline",""),z.setAttribute("playsinline",""));K.sj&&Q.Hh&&Q.Z(z,"click",z.play,z);try{Z.mediaElement.activate()}catch(b){Z.Os("html5.missingapi", 2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(b&&typeof b==="object"&&"message"in b&&typeof b.message==="string"&&b.message.replace(/[;:,]/g,"_")))}}; KFf=function(Z){if(!zan(Z)){var Q=Z.IT().ES();Q&&(Q=Q.B0(),Q instanceof Promise&&Q.catch(function(){})); nC(Z,gu(Z.getPlayerStateObject()))}}; QBf=function(Z){var Q=Z.mediaElement;pI()?Z.yM.Z(Q,"webkitpresentationmodechanged",Z.TXY):window.document.pictureInPictureEnabled&&(Z.yM.Z(Q,"enterpictureinpicture",function(){Z.JP(!0)}),Z.yM.Z(Q,"leavepictureinpicture",function(){Z.JP(!1)})); eL&&(Z.yM.Z(Q,"webkitbeginfullscreen",function(){Z.Jg(3)}),Z.yM.Z(Q,"webkitendfullscreen",function(){Z.Jg(0)}))}; brM=function(Z,Q){var z=Q.getPlayerType(),K=Z.Zi.GW(z);Q!==Z.IT()&&Q!==K&&(K==null||t9(K),Z.Zi.j[z]=Q)}; q9D=function(Z,Q){Q=Q===void 0?!0:Q;Z.logger.debug("start clear presenting player");var z;if(z=Z.py){z=Z.py;var K=Z.mediaElement;z=!!K&&K===z.mediaElement}z&&(Z.A6(),LC(Z));if(z=Z.eJ())z.A6(!Q),z.wk(Z.Jb,Z),z.getPlayerType()!==1&&t9(z);Z.Zi.S=null;Z.logger.debug("finish clear presenting player")}; g.hz=function(Z,Q,z,K){var b=Z.rq;Q===2&&(b=new Vbd(Z.Yh));return new g.TT(Z.Yh,Q,b,Z.template,function(q,r,D){Z.fN.publish(q,r,D)},function(){return Z.fN.getVisibilityState()},Z.visibility,Z,z,K)}; r_x=function(Z,Q,z,K){Z=g.hz(Z,Q,z,K);Z.Ww();return Z}; cp=function(Z,Q){return Z.PN(Q)?Z.IT():Q}; mv=function(Z,Q){var z=Z.eJ(),K=Z.IT();return z&&Q===K&&Z.PN(Q)&&Z.PN(z)?z:Q}; D8W=function(Z){Z.logger.debug("start application playback");if(Z.IT().getPlayerState().isError())Z.logger.debug("start application playback done, player in error state");else{var Q=I1(Z);Z.SP().isLoaded();Q&&Z.Oj(6);A_f(Z);G30(Z.Za)||jBn(Z)}}; jBn=function(Z){if(!I1(Z)){var Q=Hf(Z.Za);Q&&!Q.created&&LXf(Z.Za)&&(Z.logger.debug("reload ad module"),Q.create())}}; A_f=function(Z){Z.logger.debug("start presenter playback");var Q=Z.getVideoData(),z=Z.Za;G30(z)||z.XY();!xwW&&z.J.V("html5_allow_asmjs")&&pUx(z);Cy(z,"embed");Cy(z,"kids");Cy(z,"remote");Cy(z,"miniplayer");Cy(z,"offline");Cy(z,"unplugged");Cy(z,"ypc",!1,!0);Cy(z,"ypc_clickwrap",!1,!0);Cy(z,"yto",!1,!0);Cy(z,"webgl",!1,!0);iaf(z)||(Cy(z,"captions",!0),Cy(z,"endscreen"),z.FV()||z.wW(),Cy(z,"creatorendscreen",!0));z.Eb();Z.fN.publish("videoready",Q)}; Jz=function(Z){Z=Z.SP();Z.hH();return OH(Z)}; ww9=function(Z){Z.logger.debug("start prepare initial playback");Z.Iw();var Q=Z.config.args;LC(Z);var z=Z.SP();Z.fN.ZG("onVolumeChange",Z.UN);if(Q&&Fsd(Q)){var K=BZ(Z.Yh);K&&!Z.EZ&&(Q.fetch=0);var b=g.mj(Z.Yh);b&&!Z.EZ&&(Q.fetch=0);yc(Z,Q);g.mj(Z.Yh)&&Z.rq.tick("ep_pr_s");if(!K||Z.EZ)if(b&&!Z.EZ)vxu(Z);else if(!z.hH())Z.playlist.onReady(function(){d3(Z)})}Z.OX(Z.IT()); g.t(Z.IT().getPlayerState(),128)||(Q=jsG(!Z.Yh.deviceIsAudioOnly),Q==="fmt.noneavailable"?Z.Os("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):Q==="html5.missingapi"?Z.Os(Q,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):z&&z.hH()&&Jz(Z)&&(Z.Yh.YE||Z.Yh.LK)?N$(Z):z.Qx?Z.V("embeds_enable_full_length_inline_muted_autoplay")?Z.fN.mutedAutoplay({durationMode:z.mutedAutoplayDurationMode}):Z.fN.mutedAutoplay():g.pS("yt-player-playback-on-reload")?(g.DW("embedsItpPlayedOnReload",{playedOnReload:!0, isLoggedIn:!!Z.Yh.P7}),g.CS("yt-player-playback-on-reload",!1),N$(Z)):eY(Z.Yh)||gxX(Z),g.ka(Z.Yh)||uI(Z.Yh)==="MWEB"?(g.lb(g.ZW(),function(){G_(Z)}),g.lb(g.ZW(),function(){T1G()})):(G_(Z),T1G()),Z.logger.debug("finish prepare initial playback"))}; G_=function(Z){if(!Z.V("use_rta_for_player"))if(Z.V("fetch_att_independently"))g.lR(Z.CG);else{var Q=Z.getVideoData().botguardData;Q&&g.P3(Q,Z.Yh,Z.getVideoData().Cj||"")}}; gxX=function(Z){Z.logger.debug("start initialize to CUED mode");Z.fN.publish("initializingmode");Z.Oj(2);Z.V("embeds_web_enable_defer_loading_remote_js")&&g.xa(Z.Yh)?g.lb(g.ZW(),function(){Cy(Z.Za,"remote")}):Cy(Z.Za,"remote"); Cy(Z.Za,"miniplayer");Z.logger.debug("initialized to CUED mode")}; N$=function(Z){Z.logger.debug("start initialize application playback");var Q=Z.IT();if(g.t(Q.getPlayerState(),128))return!1;var z=Q.getVideoData();Jz(Z)&&Z.Yh.LK&&(pa.length&&Z.kf?(iZ(Z,{muted:!1,volume:Z.UN.volume},!1),a1(Z,!1)):pa.length||Z.UN.muted||(iZ(Z,{muted:!0,volume:Z.UN.volume},!1),a1(Z,!0)));Jz(Z)&&g.mj(Z.Yh)&&z.mutedAutoplay&&(iZ(Z,{muted:!0,volume:Z.UN.volume},!1),a1(Z,!0));z.Ce&&iZ(Z,{muted:!0,volume:Z.UN.volume},!1);Y99(Z,1,z,!1);Z.fN.publish("initializingmode");Z.OX(Z.IT());Z.Oj(3); var K;if(!(K=!Z.Yh.tR)){if(K=Z.py){K=Z.py;var b=Z.mediaElement;K=!!b&&b===K.mediaElement}K=K&&Z.hY}K&&(Z.A6(),LC(Z),Q.setMediaElement(Z.mediaElement));Q.LH();if(g.t(Q.getPlayerState(),128))return!1;z.n4||nC(Z,3);return Z.hY=!0}; I1=function(Z){Z=mI(Z.Za);return!!Z&&Z.loaded}; XEn=function(Z,Q){if(!Z.Vw)return!1;var z=Z.Vw.startTimeMs*.001-1,K=Z.Vw.endTimeMs*.001;Z.Vw.type==="repeatChapter"&&K--;return Math.abs(Q-z)<=1E-6||Math.abs(Q-K)<=1E-6||Q>=z&&Q<=K}; TTf=function(Z){var Q=Z.eJ();Q&&l8(Q.getVideoData())&&!Q.qK()&&(Q=S9n(Z)*1E3-Z.getVideoData().iM,Z.V("html5_gapless_new_slr")?(Z=Z.qq,$8u(Z.app,"gaplessshortslooprange"),Q=new g.b6(0,Q,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(Z=Z.app.eJ())&&Z.addCueRange(Q)):Z.setLoopRange({startTimeMs:0,endTimeMs:Q,type:"shortsLoop"}))}; fqG=function(Z){var Q=Z.IT();if(!(g.t(Q.getPlayerState(),64)&&Z.SP().isLivePlayback&&Z.Vw.startTimeMs<5E3)){if(Z.Vw.type==="repeatChapter"){var z,K=(z=N_d(Z.W4()))==null?void 0:z.eK(),b;z=(b=Z.getVideoData())==null?void 0:b.Om;K instanceof g.EU&&z&&(b=z[Th(z,Z.Vw.startTimeMs)],K.renderChapterSeekingAnimation(0,b.title));isNaN(Number(Z.Vw.loopCount))?Z.Vw.loopCount=0:Z.Vw.loopCount++;Z.Vw.loopCount===1&&Z.fN.hG("innertubeCommand",Z.getVideoData().va)}K={s8:"application_loopRangeStart"};if(Z.Vw.type=== "clips"||Z.Vw.type==="shortsLoop")K.seekSource=58;Q.seekTo(Z.Vw.startTimeMs*.001,K)}}; sBu=function(Z,Q){var z=Z.fN.getAvailablePlaybackRates();Q=Number(Q.toFixed(2));Z=z[0];z=z[z.length-1];Q<=Z?Q=Z:Q>=z?Q=z:(Z=Math.floor(Q*100+.001)%5,Q=Z===0?Q:Math.floor((Q-Z*.01)*100+.001)/100);return Q}; S9n=function(Z,Q){Q=Z.GW(Q);if(!Q)return 0;Q=cp(Z,Q);return Pp(Z,Q.Pr(),Q)}; Pp=function(Z,Q,z){if(Z.PN(z)){z=z.getVideoData();if(R1(Z))z=Q;else{Z=Z.y3;for(var K=g.n(Z.j),b=K.next();!b.done;b=K.next())if(b=b.value,z.gX===b.gX){Q+=b.mM/1E3;break}K=Q;Z=g.n(Z.j);for(b=Z.next();!b.done;b=Z.next()){b=b.value;if(z.gX===b.gX)break;var q=b.mM/1E3;if(q<Q)K+=b.durationMs/1E3+q-b.JH/1E3;else break}z=K}return z}return Q}; haG=function(Z,Q){if(Z.getPresentingPlayerType()===3)return gu(mI(Z.Za).gf);if((Z.getVideoData().enableServerStitchedDai||g.V0(Z.getVideoData()))&&Q===2){var z,K;return((z=Z.Qk)==null?0:z.sR(Z.getCurrentTime()))||((K=Z.jf)==null?0:K.sR())?Z.xs:-1}return Q!==2||Z.PN()?Z.xs:Z.KS}; eLd=function(Z){Z.logger.debug("reset for new application playback");CC(Z);Z.setLoopVideo(!1);Z.setLoopRange(null);Z.fN.publish("legacyadtrackingpingreset");Z.fu={};Z.RB=[];xCu(Z.rq);if(Z.Qk){var Q=Z.Qk,z=Z.IT();z.getPlayerType();Qc(Q,!1);HNG(Q);MoM(Q);Q.playback=z}Q=Z.y3;Z=Z.IT();Z.getPlayerType()!==1&&q$(Q,"invalidParentVideoPlayerType");DC(Q,!1);NGG(Q);Q.Y=Z}; vxu=function(Z,Q){var z=(Q?Q:Z.SP()).Cl;Z.rq.tick("ep_pr_r");if(z!=null&&(lsX(Z.playlist,z),Z.rQ))Z.playlist.onReady(function(){d3(Z,Q)})}; yc=function(Z,Q){Z.playlist&&(g.jR(Z.playlist),Z.playlist=null);Q&&(Z.EZ&&(Q.fetch=0),Z.playlist=new tbG(Z.Yh,Q))}; LFr=function(Z){var Q,z=Number((Q=Z.getVideoData().progressBarEndPosition)==null?void 0:Q.utcTimeMillis)/1E3;!isNaN(z)&&(Q=Z.RC())&&(Q-=Z.getCurrentTime(),z=(z-Q)*1E3,Q=Z.fu.progressEndBoundary,(Q==null?void 0:Q.start)!==z&&(Q&&Z.D6([Q]),z=new g.b6(z,0x7ffffffffffff,{id:"progressEndBoundary",namespace:"appprogressboundary"}),Z.IT().addCueRange(z),Z.fu.progressEndBoundary=z))}; nC=function(Z,Q){Z.logger.debug(function(){return"set external state "+Q}); var z=Z.eJ();if(z){var K=z.getPlayerType();if(K===2&&!Z.PN()){Z.KS!==Q&&(Z.KS=Q,Z.fN.ZG("onAdStateChange",Q));return}if(K===2&&Z.PN()||K===5||K===6||K===7)if(Q===-1||Q===0||Q===5)return}if(Q===0){if(Z.Vw)return;if((z==null?0:z.rS())&&g.Nf(Z.Yh)){Z.playVideo();return}}Z.xs!==Q&&(Z.xs=Q,Z.fN.ZG("onStateChange",Q))}; nxr=function(Z,Q,z,K,b){K=K===void 0?Infinity:K;b=b===void 0?0:b;Z.logger.debug(function(){return"Enqueuing playerType="+z+" at time="+K+"\n videoId="+Q.videoId}); var q=Z.eJ();z=z||q.getPlayerType();(q=Y99(Z,z,Q,!0))||(q=r_x(Z,z,Q).O7);var r=Z.IT();if(z===2&&r){var D=q.getVideoData();r.iE(D.clientPlaybackNonce,D.Sp||"",D.breakType||0,D.CM,D.videoId||"")}Z.FC(q,K,0,b)}; c_G=function(Z,Q,z,K,b){var q="";q=Z.Yh.V("html5_autonav_autoplay_in_preload_key")?pC(Z,z,Q):Hp(Z,z,Q.videoId,Q.gX);Z.logger.debug(function(){return"start preload video "+q+", trigger="+b}); var r="",D=Z.eJ();if(D&&(r=Z.Yh.V("html5_autonav_autoplay_in_preload_key")?pC(Z,D.getPlayerType(),D.getVideoData()):Hp(Z,D.getPlayerType(),D.getVideoData().videoId,D.getVideoData().gX),q===r))return D.Lz(!0),Q.dispose(),null;Q.IW=!0;Q=r_x(Z,z,Q);z===1&&ua(Z.Yh)||Q.Lz(!0);Z.Zi.Y.set(q,Q.O7,K||3600);return Q}; m8X=function(Z,Q,z,K){var b=AW(z);return Hp(Z,Q,b,K,z.autonav==="1"||z.autonav===!0,z.autoplay==="1"||z.autoplay===!0||z.autoplay===1)}; pC=function(Z,Q,z){return Hp(Z,Q,z.videoId,z.gX,z.isAutonav,z.fC)}; Hp=function(Z,Q,z,K,b,q){b=b===void 0?!1:b;q=q===void 0?!1:q;Q=Q+"_"+z+"_"+K;Z.Yh.V("html5_autonav_autoplay_in_preload_key")&&(Q+="_"+ +b+ +q);return Q}; Y99=function(Z,Q,z,K){var b=Z.Yh.V("html5_autonav_autoplay_in_preload_key")?pC(Z,Q,z):Hp(Z,Q,z.videoId,z.gX);var q=Z.Zi.Y.get(b)||null;if(!q||q.Iu.FI())return null;Z.Zi.Y.remove(b);if(g.t(q.getPlayerState(),128))return t9(q),null;if(q===Z.GW(Q))return Z.rq.infoGel({isCacheHit:!0}),q;if((q.getVideoData().oauthToken||z.oauthToken)&&q.getVideoData().oauthToken!==z.oauthToken)return null;Q===1&&CC(Z);K||Z.OX(q,!0);Z.rq.infoGel({isCacheHit:!0});return q}; Iqx=function(Z,Q){var z;return Q&&Z.Yh.VR&&!((z=Z.getVideoData())==null?0:z.backgroundable)}; J_W=function(Z,Q){return Iqx(Z,Q)?(Z.kc?Z.kc.start():Z.B5(),!0):!1}; M$=function(Z,Q,z){Q&&(Q=Z.GW(z))&&Q===Z.IT()&&(Q.getVideoData().ex=!0)}; UO=function(Z,Q,z){z=z===void 0?1:z;Z.logger.debug(function(){return"start cue video, vid "+Q.videoId+", type "+z}); if(Q.hH()){var K=g.hz(Z,z,Q).O7;Z.cancelPlayback(4,z);Z.OX(K);K.Ww();if(z===1){Z.Oj(1);if(g.mj(Z.Yh)&&!tP(Q)){Q.dispose();t9(Z.IT());return}gxX(Z)}Z.logger.debug("finish cue video")}else Z.logger.debug(function(){return"invalid VideoData in cueVideo"}),Q.dispose(),(K=Z.GW(z))&&t9(K),rQ4(Z.SP())&&z===2&&Z.yY()}; y_f=function(Z,Q,z,K,b){Q=JQD(Q,z,K,b);(z=g.mj(Z.Yh)&&!Z.Yh.SJ)&&!Z.EZ&&(Q.fetch=0);yc(Z,Q);g.mj(Z.Yh)&&Z.rq.tick("ep_a_pr_s");if(z&&!Z.EZ)z=Z.SP(),QQn(z,Q).then(function(q){Z.rQ=!0;vxu(Z,q)}); else Z.playlist.onReady(function(){d3(Z)}); g.mj(Z.Yh)&&Z.rq.tick("ep_a_pr_r")}; d3=function(Z,Q){var z=g.mj(Z.Yh)&&!Z.Yh.SJ,K=z&&Q?Q:g.cf(Z.playlist);Q=z&&Q?Q:Z.getVideoData();K&&(Q.h6&&(Z.Yh.YE||Z.Yh.LK)||!Z.uU?(Q=Q.ex,K=Z.eV(K,1),Q&&M$(Z,K)):UO(Z,K,1));g.mj(Z.Yh)&&Z.rq.tick("ep_p_l");Z.rQ=!1;Z.fN.wX("onPlaylistUpdate")}; zan=function(Z){if(Z.playlist&&g.GK(Z.Yh)&&Z.v0()){var Q=Z.Yh.V("html5_player_autonav_logging");Z.nextVideo(!1,Q);return!0}return!1}; d8n=function(Z,Q,z,K,b,q,r){Q={id:Q,namespace:r!=null?r:"appapi"};q==="chapter"?(Q.style=KH.CHAPTER_MARKER,Q.visible=!0):isNaN(b)||(q==="ad"?Q.style=KH.AD_MARKER:(Q.style=KH.TIME_MARKER,Q.color=b),Q.visible=!0);Z.Mz([new g.b6(z*1E3,K*1E3,Q)],1);return!0}; NTX=function(Z,Q,z,K,b,q){q=q===void 0?!0:q;var r=Z.RC();if(!r)return q&&Z.getVideoData().isLivePlayback&&Z.RB.push({id:Q,AxJ:z,qsJ:K}),!1;q=r-Z.getCurrentTime();return d8n(Z,Q,z-q,K-q,void 0,void 0,b)}; GVr=function(Z,Q){Z.RB=g.jr(Z.RB,function(r){return r.id!==Q}); for(var z=Z.IT(),K=z.mL(),b=0;b<K.length;b++){var q=K[b];if(q.getId()===Q)return z.removeCueRange(q),OO(Z,"cuerangesremoved",[q]),!0}return!1}; $8u=function(Z,Q,z){var K=Z.GW(z);K&&(Q=K.US(Q),z&&Z.getPresentingPlayerType()!==z||OO(Z,"cuerangesremoved",Q))}; ir4=function(Z){var Q=(0,g.Nm)(),z=Z.getCurrentTime();Z=Z.getVideoData();z=1E3*(z-Z.startSeconds);Z.isLivePlayback&&(z=0);return Q-Math.max(z,0)}; iZ=function(Z,Q,z){Z.Yh.tG&&(Z.UN=Q,Q.muted||a1(Z,!1),z&&Z.Yh.storeUserVolume&&!Z.Yh.De&&(z={volume:Math.floor(Q.volume),muted:Q.muted},z.unstorable||(g.CS("yt-player-volume",z),g.CS("yt-player-volume",z,2592E3))),aqW(Z),z=g.R3&&Z.mediaElement&&!Z.mediaElement.bJ(),Z.Yh.De&&!z||Z.fN.ZG("onVolumeChange",{muted:Q.muted,volume:Q.volume,unstorable:!Z.Yh.storeUserVolume}))}; aqW=function(Z){var Q=Z.getVideoData();if(!Q.zT){Q=Z.Yh.De?1:Kln(Q);var z=Z.mediaElement;z.zM(Z.UN.muted);try{z.setVolume(Z.UN.volume*Q/100)}catch(K){g.CO(new g.tW("b183742307","multiplier: "+Q+", volume: "+Z.UN.volume))}}}; a1=function(Z,Q){Q!==Z.kf&&(Z.kf=Q,Z.fN.wX("onMutedAutoplayChange",Q))}; vq=function(Z){return Z.kf&&Z.getVideoData().mutedAutoplay}; PFd=function(Z){var Q=hW(!0);return Q&&(Q===Z.template.element||Z.mediaElement&&Q===Z.mediaElement.OA())?Q:null}; CFG=function(Z,Q){var z=window.screen&&window.screen.orientation;if((Z.Yh.V("lock_fullscreen2")||Z.Yh.X)&&z&&z.lock&&(!g.R3||!Ra9))if(Q){Q=z.type.indexOf("portrait")===0;var K=Z.template.getVideoAspectRatio(),b=Q;K<1?b=!0:K>1&&(b=!1);if(!Z.R2||b!==Q){z=z.lock(b?"portrait":"landscape");if(z!=null)z["catch"](function(){}); Z.R2=!0}}else Z.R2&&(Z.R2=!1,z.unlock())}; OO=function(Z,Q,z){Z.fN.publish(Q,z);var K=g.Nf(Z.Yh)||g.ia(Z.Yh)||g.HM(Z.Yh);if(z&&K){switch(Q){case "cuerangemarkersupdated":var b="onCueRangeMarkersUpdated";break;case "cuerangesadded":b="onCueRangesAdded";break;case "cuerangesremoved":b="onCueRangesRemoved"}b&&Z.fN.hG(b,z.map(function(q){return{getId:function(){return this.id}, end:q.end,id:q.getId(),namespace:q.namespace==="ad"?"ad":"",start:q.start,style:q.style,visible:q.visible}}))}}; o1=function(Z,Q,z,K,b,q){z=z===void 0?!0:z;var r=Z.GW(b);r&&(r.getPlayerType()===2&&!Z.PN(r)||g.md(r.getVideoData()))||(Z.getPresentingPlayerType()===3?mI(Z.Za).Uf("control_seek",Q,z):(r&&r===Z.IT()&&Z.Vw&&!XEn(Z,Q)&&Z.setLoopRange(null),Z.seekTo(Q,z,K,b,q)))}; pE0=function(Z,Q,z,K){z&&(Z.A6(),LC(Z));z=Z.eJ();z.oQ(Q);var b=Z.getVideoData(),q={};q.video_id=b.videoId;q.adformat=b.adFormat;b.isLivePlayback||(q.start=z.getCurrentTime(),q.resume="1");b.isLivePlayback&&AP(b)&&g.yF(Z.Yh)&&(q.live_utc_start=z.RC(),q.resume="1");b.SJ&&(q.vvt=b.SJ);b.K&&(q.vss_credentials_token=b.K,q.vss_credentials_token_type=b.V2);b.oauthToken&&(q.oauth_token=b.oauthToken);b.kZ&&(q.force_gvi=b.kZ);q.autoplay=1;q.reload_count=b.Ph+1;q.reload_reason=Q;b.aN&&(q.unplugged_partner_opt_out= b.aN);b.lI&&(q.ypc_is_premiere_trailer=b.lI);b.playerParams&&(q.player_params=b.playerParams);Z.loadVideoByPlayerVars(q,void 0,!0,void 0,void 0,K);Q==="signature"&&Z.Qk&&jBn(Z)}; Hrx=function(Z,Q){Z.SP().autonavState=Q;g.CS("yt-player-autonavstate",Q);Z.fN.publish("autonavchange",Q)}; MEG=function(Z){var Q=Z.getVideoData().zT,z=Z.Yh.Qp,K=Z.isInline()&&!Z.getVideoData().QZ,b=Z.mediaElement;Q||z||K?b.jF():(b.Hb(),iZ(Z,Z.UN))}; CC=function(Z){var Q=Hf(Z.W4());Q&&Q.created&&(Z.logger.debug("reset ad module"),Q.destroy())}; R1=function(Z){return Z.getVideoData().enableServerStitchedDai&&!!Z.Qk}; U8G=function(Z,Q){Q.bounds=Z.getBoundingClientRect();for(var z=g.n(["display","opacity","visibility","zIndex"]),K=z.next();!K.done;K=z.next())K=K.value,Q[K]=Ys(Z,K);Q.hidden=!!Z.hidden}; RLX=function(Z){if(Z.webPlayerContextConfig){var Q=Z.webPlayerContextConfig.trustedJsUrl;return Q?Iz(Q).toString():Z.webPlayerContextConfig.jsUrl}return Z.config.assets&&Z.config.assets.js?Z.config.assets.js:""}; Oru=function(Z,Q){var z=Z.GW(1);if(z){if(z.getVideoData().clientPlaybackNonce===Q)return z;if((Z=Z.Hl.Y)&&Z.getVideoData().clientPlaybackNonce===Q)return Z}return null}; oxd=function(Z){return Z.name==="TypeError"&&Z.stack.includes("/s/player/")&&BX()<=105}; BTX=function(Z){return Z.isTimeout?"NO_BID":"ERR_BID"}; WF9=function(){var Z=null;ab9().then(function(Q){return Z=Q},function(Q){return Z=BTX(Q)}); return Z}; VEW=function(){var Z=mL(1E3,"NO_BID");return he(w_M([ab9(),Z]).RX(BTX),function(){Z.cancel()})}; Bp=function(Z){return Z.zJ?g.W6(g.B6(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; Wp=function(Z){this.player=Z;this.S=this.Y=1}; x8x=function(Z,Q,z,K,b,q){Q.client||(Q.client={});Z.player.N().V("h5_remove_url_for_get_ad_break")||(Q.client.originalUrl=z);var r=AN(z),D=g.pE(z)?!1:!0;(r||D)&&typeof Intl!=="undefined"&&(Q.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);D=g.pE(z)?!1:!0;if(r||D||K!==""){var v={};z=QC(Yq(K)).split("&");var Y=new Map;z.forEach(function(X){X=X.split("=");X.length>1&&Y.set(X[0].toString(),decodeURIComponent(X[1].toString()))}); Y.has("bid")&&(v.bid=Y.get("bid"));v.params=[];kVd.forEach(function(X){Y.has(X)&&(X={key:X,value:Y.get(X)},v.params.push(X))}); u_X(Z,v);Q.adSignalsInfo=v}Q.client.unpluggedAppInfo||(Q.client.unpluggedAppInfo={});Q.client.unpluggedAppInfo.enableFilterMode=!1;z=b.Y.cosver;z!=null&&z!=="cosver"&&(Q.client.osVersion=z);z=b.Y.cplatform;z!=null&&z!=="cplatform"&&z!==""&&(Q.client.platform=z);z=b.Y.cmodel;z!=null&&z!=="cmodel"&&(Q.client.deviceModel=z);z=b.Y.cplayer;z!=null&&z!=="cplayer"&&(Q.client.playerType=z);z=b.Y.cbrand;z!=null&&z!=="cbrand"&&(Q.client.deviceMake=z);Q.user||(Q.user={});Q.user.lockedSafetyMode=!1;(b.V("embeds_web_enable_iframe_api_send_full_embed_url")|| b.V("embeds_enable_autoplay_and_visibility_signals"))&&g.GK(b)&&a0G(Q,q,Z.player.getPlayerState(1))}; ea4=function(Z,Q){var z=!1;if(Q==="")return z;Q.split(",").forEach(function(K){var b={},q={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},r="ACTIVE";K[0]==="!"&&(K=K.substring(1),r="INACTIVE");K=K.split("-");K.length<3||(K[0]in tEu&&(q.clientName=tEu[K[0]]),K[1]in FFr&&(q.platform=FFr[K[1]]),q.applicationState=r,q.clientVersion=K.length>2?K[2]:"",b.remoteClient=q,Z.remoteContexts?Z.remoteContexts.push(b):Z.remoteContexts=[b],z=!0)}); return z}; Exn=function(Z){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in wEM))return!1;Z=Z.split(RegExp("[:&]"));var Q=wEM.FLAG_AUTO_CAPTIONS_DEFAULT_ON,z="f"+(1+Math.floor(Q/31)).toString();Q=1<<Math.floor(Q%31);for(var K=0,b=Z.length;K<b;K++){var q=Z[K].split("=");if(q[0]===z&&parseInt("0x"+q[1],16)&Q)return!0}return!1}; u_X=function(Z,Q){Z=Z.player.N();if(g.WZ(Z)||ua(Z)){Z=g.Ft("INNERTUBE_CONTEXT");var z,K;(Z==null?0:(z=Z.adSignalsInfo)==null?0:z.advertisingId)&&typeof(Z==null?void 0:(K=Z.adSignalsInfo)==null?void 0:K.limitAdTracking)!=="undefined"&&(Q.advertisingId=Z.adSignalsInfo.advertisingId,Q.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",Q.limitAdTracking=Z.adSignalsInfo.limitAdTracking)}}; qv0=function(Z,Q,z,K,b){var q=z.DRIFT_FROM_HEAD_MS&&!Number.isNaN(z.DRIFT_FROM_HEAD_MS)?Math.trunc(z.DRIFT_FROM_HEAD_MS):0,r=lqX.exec(Q);r=r!=null&&r.length>=2?r[1]:"";var D=sJd.test(Q),v=Zkn.exec(Q);v=v!=null&&v.length>=2?v[1]:"";var Y=QJG.exec(Q);Y=Y!=null&&Y.length>=2&&!Number.isNaN(Number(Y[1]))?Number(Y[1]):1;var X=zAW.exec(Q);X=X!=null&&X.length>=2?X[1]:"0";var S=Cn(Z.player.N().Ff),T=Z.player.getVideoData(1),f=g.eq(T.KN,!0),h="BISCOTTI_ID"in z?z.BISCOTTI_ID:"";x8x(Z,f,Q,h.toString(),Z.player.N(), T);T={splay:!1,lactMilliseconds:z.LACT.toString(),playerHeightPixels:Math.trunc(z.P_H),playerWidthPixels:Math.trunc(z.P_W),vis:Math.trunc(z.VIS),signatureTimestamp:20139,autonavState:Bp(Z.player.N())};K&&(K={},ea4(K,z.YT_REMOTE)&&(T.mdxContext=K));if(K=KJu.includes(S)?void 0:g.Mi("PREF")){for(var m=K.split(RegExp("[:&]")),J=0,d=m.length;J<d;J++){var G=m[J].split("=");if((G[0].toUpperCase()==="SML"||G[0].toUpperCase()==="GSML")&&G.length>1&&G[1].toUpperCase()==="TRUE"){f.user.lockedSafetyMode=!0;break}}T.autoCaptionsDefaultOn= Exn(K)}Q=bkn.exec(Q);(Q=Q!=null&&Q.length>=2?Q[1]:"")&&v&&(f.user.credentialTransferTokens=[{token:Q,scope:"VIDEO"}]);Q={contentPlaybackContext:T};r={adBlock:Math.trunc(z.AD_BLOCK),params:r,breakIndex:Y,breakPositionMs:X,clientPlaybackNonce:z.CPN,topLevelDomain:S,isProxyAdTagRequest:D,context:f,adSignalsInfoString:QC(Yq(h.toString())),overridePlaybackContext:Q};b!==void 0&&(r.cueProcessedMs=Math.round(b).toString());v&&(r.videoId=v);z.LIVE_TARGETING_CONTEXT&&(r.liveTargetingParams=z.LIVE_TARGETING_CONTEXT); z.AD_BREAK_LENGTH&&(r.breakLengthMs=Math.trunc(z.AD_BREAK_LENGTH*1E3).toString());q&&(r.driftFromHeadMs=q.toString());r.currentMediaTimeMs=Math.round(Z.player.getCurrentTime(1)*1E3);(Z=Z.player.getGetAdBreakContext())&&(r.getAdBreakContext=Z);return r}; rSd=function(){Wp.apply(this,arguments)}; ASu=function(Z,Q,z,K,b){var q=z.e5;var r=z.nf;var D=Z.player.N().yF,v=0;z.cueProcessedMs&&r&&!q&&(z=r.end-r.start,z>0&&(v=Math.floor(z/1E3)));var Y={AD_BLOCK:b,AD_BREAK_LENGTH:q?q.Nn:v,AUTONAV_STATE:Bp(Z.player.N()),CA_TYPE:"image",CPN:Z.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:Z.player.SS()*1E3,LACT:yJ(),LIVE_INDEX:q?Z.S++:1,LIVE_TARGETING_CONTEXT:q&&q.context?q.context:"",MIDROLL_POS:r?Math.round(r.start/1E3):0,MIDROLL_POS_MS:r?Math.round(r.start):0,VIS:Z.player.getVisibilityState(), P_H:Z.player.U$().KZ().height,P_W:Z.player.U$().KZ().width,YT_REMOTE:D?D.join(","):""},X=gp(vX);Object.keys(X).forEach(function(S){X[S]!=null&&(Y[S.toUpperCase()]=X[S].toString())}); K!==""&&(Y.BISCOTTI_ID=K);K={};DX(Q)&&(K.sts="20139",(Z=Z.player.N().forcedExperiments)&&(K.forced_experiments=Z));return rp(g.Pk(Q,Y),K)}; jJG=function(Z,Q){var z=Z.player.N(),K,b=(K=Z.player.getVideoData(1))==null?void 0:K.oauthToken;return g.la(z,b).then(function(q){if(q&&jL()){var r=Pq();RT(r,q)}return g.t4(Z.player.Na(r),Q,"/youtubei/v1/player/ad_break").then(function(D){return D})})}; DJG=function(Z){this.v7=Z}; vyM=function(Z){this.J=Z}; gyD=function(Z){this.v7=Z}; XHG=function(Z){g.O.call(this);this.Y=Z;this.ag=YvX(this)}; YvX=function(Z){var Q=new vYx(Z.Y.CL);g.W(Z,Q);Z=g.n([new DJG(Z.Y.v7),new vyM(Z.Y.J),new gyD(Z.Y.v7),new Rh(Z.Y.p6,Z.Y.V0),new pR,new Uz(Z.Y.zg,Z.Y.NN,Z.Y.v7),new CR,new PV]);for(var z=Z.next();!z.done;z=Z.next())gYG(Q,z.value);Z=g.n(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(z=Z.next();!z.done;z=Z.next())HV(Q,z.value,function(){}); return Q}; Vc=function(Z){var Q=Z.ou,z=Z.H7;Z=Z.Ky;var K=new dhG,b={gV:new r1f(Q.get(),z),H7:z};return{ZI:new lP(z,Z,Q,b),context:b,Yn:K}}; k8=function(Z,Q,z,K,b){g.O.call(this);this.j=Q;this.LN=z;this.ou=K;this.jx=b;this.listeners=[];var q=new NW(this);g.W(this,q);q.Z(Z,"internalAbandon",this.Yp);this.addOnDisposeCallback(function(){g.ib(q)})}; uZ=function(Z){this.J=Z;this.adVideoId=this.Y=this.videoId=this.adCpn=this.contentCpn=null;this.L=!0;this.j=this.S=!1;this.adFormat=null;this.W="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; SvG=function(Z){Z.contentCpn=null;Z.adCpn=null;Z.videoId=null;Z.adVideoId=null;Z.adFormat=null;Z.W="AD_PLACEMENT_KIND_UNKNOWN";Z.actionType="unknown_type";Z.S=!1;Z.j=!1}; $Jn=function(Z,Q){Z=g.n(Q);for(Q=Z.next();!Q.done;Q=Z.next())if((Q=Q.value.renderer)&&(Q.instreamVideoAdRenderer||Q.linearAdSequenceRenderer||Q.sandwichedLinearAdRenderer||Q.instreamSurveyAdRenderer)){Ow("ad_i");g.oC({isMonetized:!0});break}}; TqG=function(Z){var Q;(Q=Z.J.getVideoData(1))!=null&&Q.P7&&(Z.j=!1,Q={},Z.Y&&Z.videoId&&(Q.cttAuthInfo={token:Z.Y,videoId:Z.videoId}),BO("video_to_ad",Q))}; u$=function(Z){Z.j=!1;var Q={};Z.Y&&Z.videoId&&(Q.cttAuthInfo={token:Z.Y,videoId:Z.videoId});BO("ad_to_video",Q);fG9(Z)}; fG9=function(Z){if(Z.S)if(Z.W==="AD_PLACEMENT_KIND_START"&&Z.actionType==="video_to_ad")HO("video_to_ad");else{var Q={adBreakType:cv(Z.W),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:Z.videoStreamType};Z.actionType==="ad_to_video"?(Z.contentCpn&&(Q.targetCpn=Z.contentCpn),Z.videoId&&(Q.targetVideoId=Z.videoId)):(Z.adCpn&&(Q.targetCpn=Z.adCpn),Z.adVideoId&&(Q.targetVideoId=Z.adVideoId));Z.adFormat&&(Q.adType=Z.adFormat);Z.contentCpn&& (Q.clientPlaybackNonce=Z.contentCpn);Z.videoId&&(Q.videoId=Z.videoId);Z.adCpn&&(Q.adClientPlaybackNonce=Z.adCpn);Z.adVideoId&&(Q.adVideoId=Z.adVideoId);g.oC(Q,Z.actionType)}}; x8=function(Z){g.O.call(this);this.J=Z;this.Y=new Map;this.j=new NW(this);g.W(this,this.j);this.j.Z(this.J,g.r7("ad"),this.onCueRangeEnter,this);this.j.Z(this.J,g.AH("ad"),this.onCueRangeExit,this)}; hAr=function(Z,Q,z,K,b){g.b6.call(this,Q,z,{id:Z,namespace:"ad",priority:b,visible:K})}; tz=function(Z){this.J=Z}; Fe=function(Z){this.J=Z;g.Xp(this.J.N().experiments,"tv_pacf_logging_sample_rate")}; J7=function(Z,Q){Q=Q===void 0?!1:Q;return Z.J.N().V("html5_ssap_force_ads_ctmp")?!0:(Q||Z.J.N().aT())&&Z.J.N().V("html5_ssap_pacf_qoe_ctmp")}; eV=function(Z){var Q,z;return(z=(Q=Z.J.getVideoData(1))==null?void 0:g.V0(Q))!=null?z:!1}; e1=function(Z,Q){return Z.J.N().V(Q)}; LJM=function(Z){return Z.J.N().V("substitute_ad_cpn_macro_in_ssdai")}; fd=function(Z){var Q,z,K;return((Q=Z.J.getVideoData(1).getPlayerResponse())==null?void 0:(z=Q.playerConfig)==null?void 0:(K=z.daiConfig)==null?void 0:K.enableServerStitchedDai)||!1}; f3G=function(Z){return Z.J.N().V("html5_enable_vod_slar_with_notify_pacf")}; nyG=function(Z){return Z.J.N().V("html5_recognize_predict_start_cue_point")}; w6=function(Z){return Z.J.N().experiments.XI("enable_desktop_player_underlay")}; cSW=function(Z){return Z.J.N().experiments.XI("html5_load_empty_player_in_media_break_sub_lra")}; Cg=function(Z){return Z.J.N().experiments.XI("html5_load_ads_instead_of_cue")}; pg=function(Z){return Z.J.N().experiments.XI("html5_preload_ads")}; xg=function(Z){return Z.J.N().experiments.XI("enable_ads_control_flow_deterministic_id_generation")}; mJn=function(Z){return Z.J.N().experiments.XI("enable_desktop_discovery_video_abandon_pings")||g.WZ(Z.J.N())}; IGG=function(Z){return Z.J.N().experiments.XI("enable_progres_commands_lr_feeds")}; JSf=function(Z){return Z.J.N().experiments.XI("html5_cuepoint_identifier_logging")}; ySd=function(Z){switch(Z){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}}; dJ4=function(){g.rV.call(this);var Z=this;this.Y={};this.addOnDisposeCallback(function(){for(var Q=g.n(Object.keys(Z.Y)),z=Q.next();!z.done;z=Q.next())delete Z.Y[z.value]})}; w3=function(){if(Nq0===null){Nq0=new dJ4;yP(JO).j="b";var Z=yP(JO),Q=$l(Z)=="h"||$l(Z)=="b",z=!(PW(),!1);Q&&z&&(Z.L=!0,Z.K=new a9f)}return Nq0}; G8d=function(Z,Q,z){Z.Y[Q]=z}; ikG=function(Z){switch(Z){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}}; EO=function(Z,Q,z){this.LN=Z;this.J=Q;this.H7=z;this.j=new Set;this.Y=new Map;w3().subscribe("adactiveviewmeasurable",this.il,this);w3().subscribe("adfullyviewableaudiblehalfdurationimpression",this.jZ,this);w3().subscribe("adviewableimpression",this.SZ,this);w3().subscribe("adaudioaudible",this.Ik,this);w3().subscribe("adaudiomeasurable",this.pE,this)}; sR=function(Z,Q,z){var K=z.Dh,b=z.Gl,q=z.listener,r=z.dT;z=z.RP===void 0?!1:z.RP;if(Z.Y.has(Q))vM("Unexpected registration of layout in LidarApi");else{if(r){if(Z.j.has(r))return;Z.j.add(r)}Z.Y.set(Q,q);Kf(PW().kd,"fmd",1);BJX(yP(JO),K);var D=z?Q:void 0;G8d(w3(),Q,{Gh:function(){if(!b)return{};var v=Z.J.getPresentingPlayerType(!0),Y;return(Y=Z.J.getVideoData(v))!=null&&Y.isAd()?{currentTime:Z.LN.get().getCurrentTimeSec(v,!1,D),duration:b,isPlaying:lZ(Z.LN.get(),v).isPlaying(),isVpaid:!1,isYouTube:!0, volume:Z.LN.get().isMuted()?0:Z.LN.get().getVolume()/100}:{}}})}}; Ze=function(Z,Q){Z.Y.has(Q)?(Z.Y.delete(Q),delete w3().Y[Q]):vM("Unexpected unregistration of layout in LidarApi")}; aGD=function(Z,Q){if(Z.J.isLifaAdPlaying()){var z=Z.J.qE(!0,!0);Z.T7(Q,z.width*.5*1.1,z.height*.25*1.1,z.width*.5*.9,z.height*.5*.9)}}; C0u=function(Z,Q,z){var K={};P0X(Z,K,Q,z);RA9(K);K.LACT=Ql(function(){return yJ().toString()}); K.VIS=Ql(function(){return Z.getVisibilityState().toString()}); K.SDKV="h.3.0";K.VOL=Ql(function(){return Z.isMuted()?"0":Math.round(Z.getVolume()).toString()}); K.VED="";return K}; pHf=function(Z,Q){var z={};if(Q)return z;if(!Z.kind)return g.Rm(Error("AdPlacementConfig without kind")),z;if(Z.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||Z.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!Z.adTimeOffset||!Z.adTimeOffset.offsetStartMilliseconds)return g.Rm(Error("malformed AdPlacementConfig")),z;z.MIDROLL_POS=Ql(jM(Math.round(sD(Z.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else z.MIDROLL_POS=Ql(jM("0"));return z}; Ql=function(Z){return{toString:function(){return Z()}}}; Hk0=function(Z,Q,z){function K(D,v){(v=z[v])&&(q[D]=v)} function b(D,v){(v=z[v])&&(q[D]=r(v))} if(!z||g.Ne(z))return Z;var q=Object.assign({},Z),r=Q?encodeURIComponent:function(D){return D}; b("DV_VIEWABILITY","doubleVerifyViewability");b("IAS_VIEWABILITY","integralAdsViewability");b("MOAT_INIT","moatInit");b("MOAT_VIEWABILITY","moatViewability");K("GOOGLE_VIEWABILITY","googleViewability");K("VIEWABILITY","viewability");return q}; P0X=function(Z,Q,z,K){Q.CPN=Ql(function(){var b;(b=Z.getVideoData(1))?b=b.clientPlaybackNonce:(g.CO(Error("Video data is null.")),b=null);return b}); Q.AD_MT=Ql(function(){if(K!=null)var b=K;else{var q=z;Z.N().V("html5_ssap_use_cpn_to_get_time")||(q=void 0);if(Z.N().V("enable_h5_shorts_ad_fill_ad_mt_macro")||Z.N().V("enable_desktop_discovery_pings_ad_mt_macro")||g.WZ(Z.N())){var r=Z.getPresentingPlayerType(!0),D;b=((D=Z.getVideoData(r))==null?0:D.isAd())?Mh0(Z,r,q):0}else b=Mh0(Z,2,q)}return Math.round(Math.max(0,b*1E3)).toString()}); Q.MT=Ql(function(){return Math.round(Math.max(0,Z.getCurrentTime(1,!1)*1E3)).toString()}); Q.P_H=Ql(function(){return Z.U$().KZ().height.toString()}); Q.P_W=Ql(function(){return Z.U$().KZ().width.toString()}); Q.PV_H=Ql(function(){return Z.U$().getVideoContentRect().height.toString()}); Q.PV_W=Ql(function(){return Z.U$().getVideoContentRect().width.toString()})}; RA9=function(Z){Z.CONN=Ql(jM("0"));Z.WT=Ql(function(){return Date.now().toString()})}; Mh0=function(Z,Q,z){return z!==void 0?Z.getCurrentTime(Q,!1,z):Z.getCurrentTime(Q,!1)}; UJr=function(){}; Ok4=function(Z,Q,z,K,b){var q,r,D,v,Y,X,S,T,f,h,m,J,d;g.C(function(G){switch(G.Y){case 1:q=!!Q.scrubReferrer;r=g.Pk(Q.baseUrl,Hk0(z,q,K));D={};if(!Q.headers){G.O$(2);break}v=Z.W();if(!v.Y){Y=v.getValue();G.O$(3);break}return g.P(G,v.Y,4);case 4:Y=G.j;case 3:X=Y;S=g.n(Q.headers);for(T=S.next();!T.done;T=S.next())switch(f=T.value,f.headerType){case "VISITOR_ID":g.Ft("VISITOR_DATA")&&(D["X-Goog-Visitor-Id"]=g.Ft("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.Ft("EOM_VISITOR_DATA")&&(D["X-Goog-EOM-Visitor-Id"]= g.Ft("EOM_VISITOR_DATA"));break;case "USER_AUTH":X&&(D.Authorization="Bearer "+X);break;case "PLUS_PAGE_ID":(h=Z.L())&&(D["X-Goog-PageId"]=h);break;case "AUTH_USER":m=Z.Y();!X&&m&&(D["X-Goog-AuthUser"]=m);break;case "DATASYNC_ID":if(J=void 0,(J=Z.S())==null?0:J.XI("enable_datasync_id_header_in_web_vss_pings"))d=Z.j(),AN(r)&&g.Ft("LOGGED_IN")&&d&&(D["X-YouTube-DataSync-Id"]=d)}"X-Goog-EOM-Visitor-Id"in D&&"X-Goog-Visitor-Id"in D&&delete D["X-Goog-Visitor-Id"];case 2:g.of(r,void 0,q,Object.keys(D).length!== 0?D:void 0,"",!0,b),g.LX(G)}})}; oyd=function(Z,Q,z,K,b){this.W=Z;this.L=Q;this.Y=z;this.j=K;this.S=b}; Bqf=function(Z,Q){this.Y=Z;this.H7=Q}; zP=function(Z,Q,z,K,b,q,r){var D=D===void 0?new oyd(function(){var v=Z.N(),Y=Z.getVideoData(1);return g.la(v,Y?g.B0(Y):"")},function(){return Z.N().pageId},function(){return Z.N().P7},function(){var v; return(v=Z.N().datasyncId)!=null?v:""},function(){return Z.N().experiments}):D; this.J=Z;this.j=Q;this.B4=z;this.ou=K;this.ZI=b;this.H7=q;this.Yn=r;this.W=D;this.kK=null;this.Y=new Map;this.S=new Bqf(D,this.H7)}; Vh4=function(Z,Q,z,K,b){var q=yG(Z.j.get(),z);q?(z=i6(Z,WJ9(q),q,void 0,void 0,K),Q.hasOwnProperty("baseUrl")?Z.W.send(Q,z):Z.S.send(Q,z,{},b)):vM("Trying to ping from an unknown layout",void 0,void 0,{layoutId:z})}; $EX=function(Z,Q,z,K,b,q){K=K===void 0?[]:K;var r=yG(Z.j.get(),Q);if(r){var D=Z.B4.get().iJ(Q,z),v=i6(Z,WJ9(r),r,b,q);K.forEach(function(Y,X){Y.baseUrl&&(Z.S.send(Y.baseUrl,v,D,Y.attributionSrcMode),Y.serializedAdPingMetadata&&Z.ZI.Eu("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,r,new eoD(Y,X),void 0,void 0,r.adLayoutLoggingData))})}else vM("Trying to track from an unknown layout.",void 0,void 0,{layoutId:Q, trackingType:z})}; mo=function(Z,Q){Z.J.sendVideoStatsEngageEvent(Q,void 0,2)}; s5=function(Z,Q){g.DW("adsClientStateChange",Q)}; k8r=function(Z,Q){Z.Y.has(Q.VS())?vM("Trying to register an existing AdErrorInfoSupplier."):Z.Y.set(Q.VS(),Q)}; u$f=function(Z,Q){Z.Y.delete(Q.VS())||vM("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; zf=function(Z,Q,z){typeof z==="string"?Z.J.getVideoData(1).rL(Q,z):Z.J.getVideoData(1).pN(Q,z)}; WJ9=function(Z){var Q=rZ(Z.clientMetadata,"metadata_type_ad_placement_config");Z=rZ(Z.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:Q,yy:Z}}; i6=function(Z,Q,z,K,b,q){var r=z?xJn(Z):{},D=z?thM(Z,z.layoutId):{},v=FJG(Z),Y,X=b!=null?b:(Y=fg(Z.ou.get(),2))==null?void 0:Y.clientPlaybackNonce;Z.J.N().V("enable_player_logging_lr_home_infeed_ads")&&!X&&(X=fg(Z.ou.get(),1).clientPlaybackNonce);b=void 0;if(z){var S;if((S=Z.Yn.Y.get(z.layoutId))==null?0:S.RP)b=z.layoutId}S={};Z=Object.assign({},C0u(Z.J,b,K),pHf(Q.adPlacementConfig,(z==null?void 0:z.renderingContent)!==void 0),D,r,v,(S.FINAL=Ql(function(){return"1"}),S.AD_CPN=Ql(function(){return X|| ""}),S)); (z==null?void 0:z.renderingContent)!==void 0||(Z.SLOT_POS=Ql(function(){return(Q.yy||0).toString()})); z={};q=Object.assign({},Z,q);Z=g.n(Object.values(eAG));for(K=Z.next();!K.done;K=Z.next())K=K.value,r=q[K],r!=null&&r.toString()!=null&&(z[K]=r.toString());return z}; xJn=function(Z){var Q={},z,K=(z=Z.kK)==null?void 0:z.VF/1E3;K!=null&&(Q.SURVEY_ELAPSED_MS=Ql(function(){return Math.round(K*1E3).toString()})); Q.SURVEY_LOCAL_TIME_EPOCH_S=Ql(function(){return Math.round(Date.now()/1E3).toString()}); return Q}; thM=function(Z,Q){Z=Z.Y.get(Q);if(!Z)return{};Z=Z.ow();if(!Z)return{};Q={};return Q.YT_ERROR_CODE=Z.Ih.toString(),Q.ERRORCODE=Z.Xr.toString(),Q.ERROR_MSG=Z.errorMessage,Q}; FJG=function(Z){var Q={},z=Z.J.getVideoData(1);Q.ASR=Ql(function(){var K;return(K=z==null?void 0:z.S5)!=null?K:null}); Q.EI=Ql(function(){var K;return(K=z==null?void 0:z.eventId)!=null?K:null}); return Q}; K6=function(Z,Q,z){g.O.call(this);this.J=Z;this.LV=Q;this.H7=z;this.listeners=[];this.c6=null;this.YU=new Map;Q=new g.M5(this);g.W(this,Q);Q.Z(Z,"videodatachange",this.WrI);Q.Z(Z,"serverstitchedvideochange",this.MP$);this.m5=fg(this)}; fg=function(Z,Q){var z=Z.J.getVideoData(Q);return z?Z.sW(z,Q||Z.J.getPresentingPlayerType(!0)):null}; wH0=function(Z,Q,z){var K=Z.sW(Q,z);Z.m5=K;Z.listeners.forEach(function(b){b.QV(K)})}; EyW=function(Z){switch(Z){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}}; by=function(Z,Q,z){g.O.call(this);this.J=Z;this.ou=Q;this.H7=z;this.listeners=[];this.yN=[];this.Y=function(){vM("Called 'doUnlockPreroll' before it's initialized.")}; Q=new NW(this);z=new g.M5(this);g.W(this,z);g.W(this,Q);Q.Z(Z,"progresssync",this.gL7);Q.Z(Z,"presentingplayerstatechange",this.UbF);Q.Z(Z,"fullscreentoggled",this.onFullscreenToggled);Q.Z(Z,"onVolumeChange",this.onVolumeChange);Q.Z(Z,"minimized",this.Es);Q.Z(Z,"overlayvisibilitychange",this.Gu);Q.Z(Z,"shortsadswipe",this.At);Q.Z(Z,"resize",this.pL);z.Z(Z,g.r7("appad"),this.XF)}; qL=function(Z){eV(Z.H7.get())||Z.Y()}; lGG=function(Z,Q){Z.yN=Z.yN.filter(function(z){return z!==Q})}; rS=function(Z,Q,z){return Z.getCurrentTimeSec(Q,z)}; s90=function(Z,Q){var z;Q=(z=Z.ou.get().YU.get(Q))!=null?z:null;if(Q===null)return vM("Expected ad video start time on playback timeline"),0;Z=Z.J.getCurrentTime(2,!0);return Z<Q?0:Z-Q}; lZ=function(Z,Q){return Z.J.getPlayerStateObject(Q)}; Z2G=function(Z){var Q=Z.J.U$().KZ();Z=Z.J.qE(!0,!0);return Q.height-(Z.height+Z.top)}; Q9n=function(Z){Z.J.cueVideoByPlayerVars({videoId:"empty_video"},2)}; OF0=function(Z,Q){var z=Z.J.N();g.Nx(z)||z.controlsType!=="3"||Z.J.U$().wK(Q)}; Ap=function(Z,Q){g.rd(Z.J.getRootNode(),Q)}; jv=function(Z,Q){g.jn(Z.J.getRootNode(),Q)}; z3X=function(Z,Q,z,K,b){g.O.call(this);var q=this,r=Wh(function(){return new uP(q.H7)}); g.W(this,r);var D=Wh(function(){return new tQ(r,q.H7)}); g.W(this,D);var v=Wh(function(){return new Id}); g.W(this,v);K=Wh(function(){return new cx(Z)}); g.W(this,K);var Y=Wh(function(){return new FD(r,D,q.H7)}); g.W(this,Y);var X=Wh(function(){return new se}); g.W(this,X);this.v4=Wh(function(){return new kH(b)}); g.W(this,this.v4);this.t4=Wh(function(){return new uZ(Q)}); g.W(this,this.t4);this.mZ=Wh(function(){return new x8(Q)}); g.W(this,this.mZ);this.CL=Wh(function(){return new tz(Q)}); g.W(this,this.CL);this.H7=Wh(function(){return new Fe(Q)}); g.W(this,this.H7);var S=Wh(function(){return new S1(q.H7)}); g.W(this,S);var T=Wh(function(){return new XD(r,Y,D,q.H7,S,null,null,null,null)}); g.W(this,T);this.ou=Wh(function(){return new K6(Q,X,q.H7)}); g.W(this,this.ou);var f=Vc({ou:this.ou,H7:this.H7,Ky:S}),h=f.context,m=f.Yn;this.ZI=f.ZI;this.LN=Wh(function(){return new by(Q,q.ou,q.H7)}); g.W(this,this.LN);this.B4=Wh(function(){return new EO(q.LN,Q,q.H7)}); g.W(this,this.B4);this.v7=Wh(function(){return new zP(Q,v,q.B4,q.ou,q.ZI,q.H7,m)}); g.W(this,this.v7);this.rX=new nd(K,T,z,this.H7,Z,this.ou,this.LN,this.t4);g.W(this,this.rX);var J=new k8(Q,this.rX,this.LN,this.ou);this.mY=Wh(function(){return J}); this.wL=J;this.U6=new ml(K,Y,this.mZ,this.mY,h);g.W(this,this.U6);this.oW=new p5(this.H7,K,Y,T,this.ou,this.U6,z);g.W(this,this.oW);this.a6={Xn:new Map,i_:new Map,L$:new Map,Kz:new Map,ZR:new Map};this.listeners=[];this.PE={oW:this.oW,NN:this.H7.get(),au:this.v4.get(),Cn:this.LN.get(),rX:this.rX,J_:r.get(),o5:null,V0:{Fz:function(){}}, p6:v.get(),zg:this.ou.get()}}; De=function(Z,Q){g.O.call(this);this.z2=Q;this.z2.get().addListener(this)}; vm=function(Z){this.Y=Z}; KAr=function(Z,Q){if(!Z)return{LO:[],adSlots:[],e3:!0,ssdaiAdsConfig:void 0};Z.trackingParams&&IL(Z.trackingParams);if(Z.adThrottled)return{LO:[],adSlots:[],e3:!0,ssdaiAdsConfig:void 0};var z,K=(z=Z.adSlots)!=null?z:[],b;z=(b=Z.playerAds)!=null?b:[];if(!(z&&z.length||K.length))return{LO:[],adSlots:K,e3:!1,ssdaiAdsConfig:void 0};b=z.map(function(r){return r.adPlacementRenderer}).filter(function(r){return!(!r||!r.renderer)}); if(!b.length&&!K.length)return{LO:[],adSlots:K,e3:!1,ssdaiAdsConfig:void 0};if(Q.end>0){var q=Q.end.toString();b.forEach(function(r){(r=r.config&&r.config.adPlacementConfig)&&r.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&r.adTimeOffset&&r.adTimeOffset.offsetEndMilliseconds==="-1"&&r.adTimeOffset.offsetEndMilliseconds!==q&&(r.adTimeOffset.offsetEndMilliseconds=q)}); K.map(function(r){return g.V(r,Hi)}).forEach(function(r){var D; (r=r==null?void 0:(D=r.slotEntryTrigger)==null?void 0:D.mediaTimeRangeTrigger)&&r.offsetEndMilliseconds==="-1"&&(r.offsetEndMilliseconds=q)})}return{LO:b, adSlots:K,e3:!1,ssdaiAdsConfig:Z.ssdaiAdsConfig}}; gS=function(Z){g.O.call(this);this.J=Z;this.listeners=[];this.Y=new NW(this);g.W(this,this.Y);this.Y.Z(this.J,"aduxclicked",this.onAdUxClicked);this.Y.Z(this.J,"aduxmouseover",this.p_);this.Y.Z(this.J,"aduxmouseout",this.Iz);this.Y.Z(this.J,"muteadaccepted",this.EqI)}; b2n=function(Z,Q,z){Q=g.my(Q,function(K){return new Mzn(K,z,K.id)}); Z.J.hG("onAdUxUpdate",Q)}; Yc=function(Z,Q){Z=g.n(Z.listeners);for(var z=Z.next();!z.done;z=Z.next())Q(z.value)}; XQ=function(Z,Q){this.j=Z;this.S=Q===void 0?!1:Q;this.Y={}}; qyx=function(Z,Q){var z=Z.startSecs+Z.Nn;z=z<=0?null:z;if(z===null)return null;switch(Z.event){case "start":case "continue":case "stop":break;case "predictStart":if(Q)break;return null;default:return null}Q=Math.max(Z.startSecs,0);return{IZ:new IR(Q,z),fuh:new CZ(Q,z-Q,Z.context,Z.identifier,Z.event,Z.Y)}}; rLG=function(){this.Y=[]}; XOn=function(Z,Q,z){var K=g.Aj(Z.Y,Q);if(K>=0)return Q;Q=-K-1;return Q>=Z.Y.length||Z.Y[Q]>z?null:Z.Y[Q]}; Sv=function(Z,Q,z){g.O.call(this);this.J=Z;this.H7=Q;this.v7=z;this.listeners=[];this.W=!1;this.NV=[];this.Y=null;this.L=new XQ(this,nyG(Q.get()));this.S=new rLG;this.j=null}; AL0=function(Z,Q){Z.NV.push(Q);for(var z=!1,K=g.n(Z.listeners),b=K.next();!b.done;b=K.next())z=b.value.eM(Q)||z;Z.W=z;JSf(Z.H7.get())&&zf(Z.v7.get(),"onci","cpi."+Q.identifier+";cpe."+Q.event+";cps."+Q.startSecs+";cbi."+z)}; Dg0=function(Z,Q){s5(Z.v7.get(),{cuepointTrigger:{event:j90(Q.event),cuepointId:Q.identifier,totalCueDurationMs:Q.Nn*1E3,playheadTimeMs:Q.Y,cueStartTimeMs:Q.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:Z.J.getVideoData(1).clientPlaybackNonce}})}; j90=function(Z){switch(Z){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 q_(Z,"Unexpected cuepoint event")}}; $c=function(Z){this.J=Z}; vmn=function(Z,Q){Z.J.cueVideoByPlayerVars(Q,2)}; TP=function(Z){this.J=Z}; f6=function(Z){this.J=Z}; gmW=function(Z){switch(Z){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:q_(Z,"unknown transitionReason")}}; Yyr=function(Z){this.J=Z}; Xr0=function(Z,Q,z,K,b){g.O.call(this);var q=this,r=Wh(function(){return new uP(q.H7)}); g.W(this,r);var D=Wh(function(){return new tQ(r,q.H7)}); g.W(this,D);var v=Wh(function(){return new Id}); g.W(this,v);var Y=Wh(function(){return new cx(Z)}); g.W(this,Y);var X=Wh(function(){return new FD(r,D,q.H7)}); g.W(this,X);var S=Wh(function(){return new se}); g.W(this,S);this.J4=Wh(function(){return new gS(Q)}); g.W(this,this.J4);this.v4=Wh(function(){return new kH(b)}); g.W(this,this.v4);this.t4=Wh(function(){return new uZ(Q)}); g.W(this,this.t4);this.mZ=Wh(function(){return new x8(Q)}); g.W(this,this.mZ);this.jP=Wh(function(){return new $c(Q)}); g.W(this,this.jP);this.CL=Wh(function(){return new tz(Q)}); g.W(this,this.CL);this.H7=Wh(function(){return new Fe(Q)}); g.W(this,this.H7);var T=Wh(function(){return new vm(K)}); g.W(this,T);var f=Wh(function(){return new S1(q.H7)}); g.W(this,f);this.lz=Wh(function(){return new TP(Q)}); g.W(this,this.lz);this.z2=Wh(function(){return new tJ}); g.W(this,this.z2);this.ou=Wh(function(){return new K6(Q,S,q.H7)}); g.W(this,this.ou);var h=Vc({ou:this.ou,H7:this.H7,Ky:f}),m=h.context,J=h.Yn;this.ZI=h.ZI;this.jx=Wh(function(){return new Sv(Q,q.H7,q.v7)}); g.W(this,this.jx);this.LL=Wh(function(){return new f6(Q)}); g.W(this,this.LL);this.LN=Wh(function(){return new by(Q,q.ou,q.H7)}); g.W(this,this.LN);h=Wh(function(){return new XD(r,X,D,q.H7,f,"SLOT_TYPE_ABOVE_FEED",q.LN,q.xi,q.hj)}); g.W(this,h);this.Cy=Wh(function(){return new Fp(q.H7)}); this.B4=Wh(function(){return new EO(q.LN,Q,q.H7)}); g.W(this,this.B4);this.v7=Wh(function(){return new zP(Q,v,q.B4,q.ou,q.ZI,q.H7,J)}); g.W(this,this.v7);this.wc=new Ld(hQ,hp,function(G,R,U,B){return eC(D.get(),G,R,U,B)},Y,X,D,f,this.H7,this.ou); g.W(this,this.wc);this.rX=new nd(Y,h,z,this.H7,Z,this.ou,this.LN,this.t4);g.W(this,this.rX);var d=new k8(Q,this.rX,this.LN,this.ou,this.jx);this.mY=Wh(function(){return d}); this.wL=d;this.xi=new Tq(Y,X,this.mY,this.jx,this.LN,this.H7,this.v7,this.LL);g.W(this,this.xi);this.U6=new ml(Y,X,this.mZ,this.mY,m);g.W(this,this.U6);this.oW=new p5(this.H7,Y,X,h,this.ou,this.U6,z);g.W(this,this.oW);this.z0=Wh(function(){return new Xa(T,D,f,q.H7,q.v7,q.LN,q.LL)}); g.W(this,this.z0);this.rf=Wh(function(){return new SX}); g.W(this,this.rf);this.nK=new ad(Z,this.J4,this.H7);g.W(this,this.nK);this.Cd=new Px(Z);g.W(this,this.Cd);this.DD=new Rd(Z);g.W(this,this.DD);this.Gp=new pd(Z,this.mY,m);g.W(this,this.Gp);this.j$=new Hx(Z,this.mZ,this.LN,this.ou,m);g.W(this,this.j$);this.m4=new Mn(Z,this.ou);g.W(this,this.m4);this.hj=new od(Z,this.jx,this.LN,this.v7,this.mY);g.W(this,this.hj);this.tj=new U4(Z);g.W(this,this.tj);this.aW=new kg(Z);g.W(this,this.aW);this.p4=new O4(Z);g.W(this,this.p4);this.pP=new VG(Z);g.W(this,this.pP); this.aW=new kg(Z);g.W(this,this.aW);this.V7=Wh(function(){return new d_}); g.W(this,this.V7);this.Wk=Wh(function(){return new Nn(q.LN)}); g.W(this,this.Wk);this.DF=Wh(function(){return new HiG(q.J4,q.v7,Z,v,q.B4)}); g.W(this,this.DF);this.Ks=Wh(function(){return new l6(q.oW,Y,r)}); g.W(this,this.Ks);this.Dc=Wh(function(){return new zZ(q.H7,q.v7,q.tj,q.B4)}); g.W(this,this.Dc);this.SQ=Wh(function(){return new Dj(Z,q.aW,q.tj,q.ou,q.LL,q.LN,q.v7,S,q.jx,q.B4,q.Cy,q.jP,q.mZ,q.t4,q.CL,q.v4,q.lz,q.H7,v,m,J)}); g.W(this,this.SQ);this.KT=Wh(function(){return new wID(q.LN,q.v7,q.v4,q.H7,q.B4,q.ou)}); g.W(this,this.KT);this.nJ=Wh(function(){return new UXG(q.J4,q.LN,q.v7,v,q.B4,q.DD,q.pP,q.v4,q.H7,z)}); g.W(this,this.nJ);this.J7=Wh(function(){return new MNr(q.J4,q.v7,v)}); g.W(this,this.J7);this.Av=new De(Z,this.z2,r);g.W(this,this.Av);this.a6={Xn:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.oW],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.xi],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.wc],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.rX],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.U6]]),i_:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.z0],["SLOT_TYPE_ABOVE_FEED",this.rf],["SLOT_TYPE_FORECASTING",this.rf], ["SLOT_TYPE_IN_PLAYER",this.rf],["SLOT_TYPE_PLAYER_BYTES",this.rf],["SLOT_TYPE_PLAYER_UNDERLAY",this.rf],["SLOT_TYPE_PLAYBACK_TRACKING",this.rf],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.rf]]),L$:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.nK],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.nK],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Cd],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Cd],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Cd],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Cd],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.Cd],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Cd],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Cd],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Cd],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Cd],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.Cd],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Cd],["TRIGGER_TYPE_CLOSE_REQUESTED",this.DD],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Gp],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.j$],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.j$],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.j$],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.j$],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.j$],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.j$],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.j$],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.m4],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.m4],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.tj],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.Gp],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.p4],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.pP],["TRIGGER_TYPE_AD_BREAK_STARTED",this.aW],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.hj],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.hj],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.hj],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.hj],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.hj]]),Kz:new Map([["SLOT_TYPE_ABOVE_FEED",this.V7], ["SLOT_TYPE_AD_BREAK_REQUEST",this.V7],["SLOT_TYPE_FORECASTING",this.V7],["SLOT_TYPE_IN_PLAYER",this.V7],["SLOT_TYPE_PLAYER_BYTES",this.Wk],["SLOT_TYPE_PLAYER_UNDERLAY",this.V7],["SLOT_TYPE_PLAYBACK_TRACKING",this.V7],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.V7]]),ZR:new Map([["SLOT_TYPE_ABOVE_FEED",this.DF],["SLOT_TYPE_AD_BREAK_REQUEST",this.Ks],["SLOT_TYPE_FORECASTING",this.Dc],["SLOT_TYPE_PLAYER_BYTES",this.SQ],["SLOT_TYPE_PLAYBACK_TRACKING",this.KT],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.KT],["SLOT_TYPE_IN_PLAYER",this.nJ],["SLOT_TYPE_PLAYER_UNDERLAY",this.J7]])};this.listeners=[v.get()];this.PE={oW:this.oW,NN:this.H7.get(),au:this.v4.get(),Cn:this.LN.get(),rX:this.rX,J_:r.get(),o5:this.z2.get(),V0:this.nK,p6:v.get(),zg:this.ou.get()}}; Syf=function(Z,Q,z,K,b){g.O.call(this);var q=this,r=Wh(function(){return new uP(q.H7)}); g.W(this,r);var D=Wh(function(){return new tQ(r,q.H7)}); g.W(this,D);var v=Wh(function(){return new Id}); g.W(this,v);var Y=Wh(function(){return new cx(Z)}); g.W(this,Y);var X=Wh(function(){return new FD(r,D,q.H7)}); g.W(this,X);var S=Wh(function(){return new se}); g.W(this,S);this.J4=Wh(function(){return new gS(Q)}); g.W(this,this.J4);this.v4=Wh(function(){return new kH(b)}); g.W(this,this.v4);this.t4=Wh(function(){return new uZ(Q)}); g.W(this,this.t4);this.mZ=Wh(function(){return new x8(Q)}); g.W(this,this.mZ);this.jP=Wh(function(){return new $c(Q)}); g.W(this,this.jP);this.CL=Wh(function(){return new tz(Q)}); g.W(this,this.CL);this.H7=Wh(function(){return new Fe(Q)}); g.W(this,this.H7);var T=Wh(function(){return new vm(K)}); g.W(this,T);var f=Wh(function(){return new S1(q.H7)}); g.W(this,f);var h=Wh(function(){return new XD(r,X,D,q.H7,f,null,null,q.xi,q.hj)}); g.W(this,h);this.lz=Wh(function(){return new TP(Q)}); g.W(this,this.lz);this.z2=Wh(function(){return new tJ}); g.W(this,this.z2);this.ou=Wh(function(){return new K6(Q,S,q.H7)}); g.W(this,this.ou);var m=Vc({ou:this.ou,H7:this.H7,Ky:f}),J=m.context,d=m.Yn;this.ZI=m.ZI;this.jx=Wh(function(){return new Sv(Q,q.H7,q.v7)}); this.LN=Wh(function(){return new by(Q,q.ou,q.H7)}); g.W(this,this.LN);this.B4=Wh(function(){return new EO(q.LN,Q,q.H7)}); g.W(this,this.B4);this.v7=Wh(function(){return new zP(Q,v,q.B4,q.ou,q.ZI,q.H7,d)}); g.W(this,this.v7);this.Cy=Wh(function(){return new Fp(q.H7)}); g.W(this,this.Cy);this.wc=new Ld(hQ,hp,function(R,U,B,e){return eC(D.get(),R,U,B,e)},Y,X,D,f,this.H7,this.ou); g.W(this,this.wc);this.rX=new nd(Y,h,z,this.H7,Z,this.ou,this.LN,this.t4);g.W(this,this.rX);var G=new k8(Q,this.rX,this.LN,this.ou,this.jx);this.mY=Wh(function(){return G}); this.wL=G;this.xi=new Tq(Y,X,this.mY,this.jx,this.LN,this.H7,this.v7);g.W(this,this.xi);this.U6=new ml(Y,X,this.mZ,this.mY,J);g.W(this,this.U6);this.oW=new p5(this.H7,Y,X,h,this.ou,this.U6,z);g.W(this,this.oW);this.z0=Wh(function(){return new Xa(T,D,f,q.H7,q.v7,q.LN)}); g.W(this,this.z0);this.rf=Wh(function(){return new SX}); g.W(this,this.rf);this.nK=new ad(Z,this.J4,this.H7);g.W(this,this.nK);this.Cd=new Px(Z);g.W(this,this.Cd);this.DD=new Rd(Z);g.W(this,this.DD);this.Gp=new pd(Z,this.mY,J);g.W(this,this.Gp);this.j$=new Hx(Z,this.mZ,this.LN,this.ou,J);g.W(this,this.j$);this.tj=new U4(Z);g.W(this,this.tj);this.p4=new O4(Z);g.W(this,this.p4);this.pP=new VG(Z);g.W(this,this.pP);this.LL=Wh(function(){return new f6(Q)}); g.W(this,this.LL);this.aW=new kg(Z);g.W(this,this.aW);this.hj=new od(Z,this.jx,this.LN,this.v7,this.mY);g.W(this,this.hj);this.V7=Wh(function(){return new d_}); g.W(this,this.V7);this.Wk=Wh(function(){return new Nn(q.LN)}); g.W(this,this.Wk);this.Ks=Wh(function(){return new l6(q.oW,Y,r)}); g.W(this,this.Ks);this.Dc=Wh(function(){return new zZ(q.H7,q.v7,q.tj,q.B4)}); g.W(this,this.Dc);this.nJ=Wh(function(){return new OVu(q.J4,q.LN,q.v7,v,q.B4,q.DD,q.pP,q.v4,q.H7,z)}); g.W(this,this.nJ);this.SQ=Wh(function(){return new v4(Z,q.aW,q.tj,q.v7,q.B4,q.Cy,q.jP,q.ou,q.LN,q.mZ,q.t4,q.CL,q.v4,q.lz,q.H7,q.LL,J,d)}); g.W(this,this.SQ);this.Av=new De(Z,this.z2,r);g.W(this,this.Av);this.a6={Xn:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.oW],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.xi],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.wc],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.rX],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.U6]]),i_:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.z0],["SLOT_TYPE_FORECASTING",this.rf],["SLOT_TYPE_IN_PLAYER",this.rf], ["SLOT_TYPE_PLAYER_BYTES",this.rf]]),L$:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.nK],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Cd],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Cd],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Cd],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Cd],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Cd],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Cd],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Cd],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Cd],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Cd], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Cd],["TRIGGER_TYPE_CLOSE_REQUESTED",this.DD],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Gp],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.j$],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.j$],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.j$],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.tj],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Gp],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.p4],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.pP],["TRIGGER_TYPE_AD_BREAK_STARTED",this.aW],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.hj],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.hj],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.hj],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.hj],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.hj]]),Kz:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.V7],["SLOT_TYPE_FORECASTING",this.V7],["SLOT_TYPE_IN_PLAYER",this.V7],["SLOT_TYPE_PLAYER_BYTES",this.Wk]]), ZR:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ks],["SLOT_TYPE_FORECASTING",this.Dc],["SLOT_TYPE_IN_PLAYER",this.nJ],["SLOT_TYPE_PLAYER_BYTES",this.SQ]])};this.listeners=[v.get()];this.PE={oW:this.oW,NN:this.H7.get(),au:this.v4.get(),Cn:this.LN.get(),rX:this.rX,J_:r.get(),o5:this.z2.get(),V0:this.nK,p6:v.get(),zg:this.ou.get()}}; $g0=function(Z,Q,z,K,b){g.O.call(this);var q=this,r=Wh(function(){return new uP(q.H7)}); g.W(this,r);var D=Wh(function(){return new tQ(r,q.H7)}); g.W(this,D);var v=Wh(function(){return new Id}); g.W(this,v);var Y=Wh(function(){return new cx(Z)}); g.W(this,Y);var X=Wh(function(){return new FD(r,D,q.H7)}); g.W(this,X);var S=Wh(function(){return new se}); g.W(this,S);this.J4=Wh(function(){return new gS(Q)}); g.W(this,this.J4);this.v4=Wh(function(){return new kH(b)}); g.W(this,this.v4);this.t4=Wh(function(){return new uZ(Q)}); g.W(this,this.t4);this.mZ=Wh(function(){return new x8(Q)}); g.W(this,this.mZ);this.jP=Wh(function(){return new $c(Q)}); g.W(this,this.jP);this.CL=Wh(function(){return new tz(Q)}); g.W(this,this.CL);this.H7=Wh(function(){return new Fe(Q)}); g.W(this,this.H7);var T=Wh(function(){return new vm(K)}); g.W(this,T);var f=Wh(function(){return new S1(q.H7)}); g.W(this,f);var h=Wh(function(){return new XD(r,X,D,q.H7,f,null,null,null,null)}); g.W(this,h);this.lz=Wh(function(){return new TP(Q)}); g.W(this,this.lz);this.ou=Wh(function(){return new K6(Q,S,q.H7)}); g.W(this,this.ou);var m=Vc({ou:this.ou,H7:this.H7,Ky:f}),J=m.context,d=m.Yn;this.ZI=m.ZI;this.LN=Wh(function(){return new by(Q,q.ou,q.H7)}); g.W(this,this.LN);this.B4=Wh(function(){return new EO(q.LN,Q,q.H7)}); g.W(this,this.B4);this.v7=Wh(function(){return new zP(Q,v,q.B4,q.ou,q.ZI,q.H7,d)}); g.W(this,this.v7);this.Cy=Wh(function(){return new Fp(q.H7)}); g.W(this,this.Cy);this.wc=new Ld(hQ,hp,function(R,U,B,e){return eC(D.get(),R,U,B,e)},Y,X,D,f,this.H7,this.ou); g.W(this,this.wc);this.rX=new nd(Y,h,z,this.H7,Z,this.ou,this.LN,this.t4);g.W(this,this.rX);var G=new k8(Q,this.rX,this.LN,this.ou);this.mY=Wh(function(){return G}); this.wL=G;this.U6=new ml(Y,X,this.mZ,this.mY,J);g.W(this,this.U6);this.oW=new p5(this.H7,Y,X,h,this.ou,this.U6,z);g.W(this,this.oW);this.z0=Wh(function(){return new Xa(T,D,f,q.H7,q.v7,q.LN)}); g.W(this,this.z0);this.rf=Wh(function(){return new SX}); g.W(this,this.rf);this.nK=new ad(Z,this.J4,this.H7);g.W(this,this.nK);this.Cd=new Px(Z);g.W(this,this.Cd);this.Gp=new pd(Z,this.mY,J);g.W(this,this.Gp);this.j$=new Hx(Z,this.mZ,this.LN,this.ou,J);g.W(this,this.j$);this.tj=new U4(Z);g.W(this,this.tj);this.p4=new O4(Z);g.W(this,this.p4);this.LL=Wh(function(){return new f6(Q)}); g.W(this,this.LL);this.aW=new kg(Z);g.W(this,this.aW);this.V7=Wh(function(){return new d_}); g.W(this,this.V7);this.Wk=Wh(function(){return new Nn(q.LN)}); g.W(this,this.Wk);this.Ks=Wh(function(){return new l6(q.oW,Y,r)}); g.W(this,this.Ks);this.Dc=Wh(function(){return new zZ(q.H7,q.v7,q.tj,q.B4)}); g.W(this,this.Dc);this.QU=Wh(function(){return new euW(q.J4,q.LN,q.v7,v,z,q.H7)}); g.W(this,this.QU);this.SQ=Wh(function(){return new v4(Z,q.aW,q.tj,q.v7,q.B4,q.Cy,q.jP,q.ou,q.LN,q.mZ,q.t4,q.CL,q.v4,q.lz,q.H7,q.LL,J,d)}); g.W(this,this.SQ);this.a6={Xn:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.oW],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.wc],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.rX],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.U6]]),i_:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.z0],["SLOT_TYPE_FORECASTING",this.rf],["SLOT_TYPE_IN_PLAYER",this.rf],["SLOT_TYPE_PLAYER_BYTES",this.rf]]),L$:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.nK],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.Cd],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Cd],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Cd],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Cd],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Cd],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Cd],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Cd],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Cd],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Cd],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Gp],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.j$],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.j$],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.tj],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Gp],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.p4],["TRIGGER_TYPE_AD_BREAK_STARTED",this.aW]]),Kz:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.V7],["SLOT_TYPE_ABOVE_FEED",this.V7],["SLOT_TYPE_FORECASTING",this.V7],["SLOT_TYPE_IN_PLAYER",this.V7],["SLOT_TYPE_PLAYER_BYTES",this.Wk]]),ZR:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ks],["SLOT_TYPE_FORECASTING",this.Dc],["SLOT_TYPE_IN_PLAYER", this.QU],["SLOT_TYPE_PLAYER_BYTES",this.SQ]])};this.listeners=[v.get()];this.PE={oW:this.oW,NN:this.H7.get(),au:this.v4.get(),Cn:this.LN.get(),rX:this.rX,J_:r.get(),o5:null,V0:this.nK,p6:v.get(),zg:this.ou.get()}}; TiW=function(Z,Q,z,K,b){g.O.call(this);var q=this,r=Wh(function(){return new uP(q.H7)}); g.W(this,r);var D=Wh(function(){return new tQ(r,q.H7)}); g.W(this,D);var v=Wh(function(){return new Id}); g.W(this,v);var Y=Wh(function(){return new cx(Z)}); g.W(this,Y);var X=Wh(function(){return new FD(r,D,q.H7)}); g.W(this,X);var S=Wh(function(){return new se}); g.W(this,S);this.TQ=Wh(function(){return new Yyr(Q)}); g.W(this,this.TQ);this.J4=Wh(function(){return new gS(Q)}); g.W(this,this.J4);this.v4=Wh(function(){return new kH(b)}); g.W(this,this.v4);this.t4=Wh(function(){return new uZ(Q)}); g.W(this,this.t4);this.mZ=Wh(function(){return new x8(Q)}); g.W(this,this.mZ);this.jP=Wh(function(){return new $c(Q)}); g.W(this,this.jP);this.CL=Wh(function(){return new tz(Q)}); g.W(this,this.CL);this.H7=Wh(function(){return new Fe(Q)}); g.W(this,this.H7);var T=Wh(function(){return new vm(K)}); g.W(this,T);var f=Wh(function(){return new S1(q.H7)}); g.W(this,f);var h=Wh(function(){return new XD(r,X,D,q.H7,f,null,null,null,null)}); g.W(this,h);this.lz=Wh(function(){return new TP(Q)}); g.W(this,this.lz);this.ou=Wh(function(){return new K6(Q,S,q.H7)}); g.W(this,this.ou);var m=Vc({ou:this.ou,H7:this.H7,Ky:f}),J=m.context,d=m.Yn;this.ZI=m.ZI;this.LN=Wh(function(){return new by(Q,q.ou,q.H7)}); g.W(this,this.LN);this.B4=Wh(function(){return new EO(q.LN,Q,q.H7)}); g.W(this,this.B4);this.v7=Wh(function(){return new zP(Q,v,q.B4,q.ou,q.ZI,q.H7,d)}); g.W(this,this.v7);this.Cy=Wh(function(){return new Fp(q.H7)}); g.W(this,this.Cy);this.wc=new Ld(I3f,hp,function(R,U,B,e){return uZn(D.get(),R,U,B,e)},Y,X,D,f,this.H7,this.ou); g.W(this,this.wc);this.rX=new nd(Y,h,z,this.H7,Z,this.ou,this.LN,this.t4);g.W(this,this.rX);var G=new k8(Q,this.rX,this.LN,this.ou);this.mY=Wh(function(){return G}); this.wL=G;this.U6=new ml(Y,X,this.mZ,this.mY,J);g.W(this,this.U6);this.oW=new p5(this.H7,Y,X,h,this.ou,this.U6,z);g.W(this,this.oW);this.z0=Wh(function(){return new Xa(T,D,f,q.H7,q.v7,q.LN)}); g.W(this,this.z0);this.rf=Wh(function(){return new SX}); g.W(this,this.rf);this.nK=new ad(Z,this.J4,this.H7);g.W(this,this.nK);this.Cd=new Px(Z);g.W(this,this.Cd);this.Gp=new pd(Z,this.mY,J);g.W(this,this.Gp);this.j$=new Hx(Z,this.mZ,this.LN,this.ou,J);g.W(this,this.j$);this.tj=new U4(Z);g.W(this,this.tj);this.p4=new O4(Z);g.W(this,this.p4);this.LL=Wh(function(){return new f6(Q)}); g.W(this,this.LL);this.aW=new kg(Z);g.W(this,this.aW);this.V7=Wh(function(){return new d_}); g.W(this,this.V7);this.Wk=Wh(function(){return new Nn(q.LN)}); g.W(this,this.Wk);this.Ks=Wh(function(){return new l6(q.oW,Y,r)}); g.W(this,this.Ks);this.Dc=Wh(function(){return new zZ(q.H7,q.v7,q.tj,q.B4)}); g.W(this,this.Dc);this.SQ=Wh(function(){return new v4(Z,q.aW,q.tj,q.v7,q.B4,q.Cy,q.jP,q.ou,q.LN,q.mZ,q.t4,q.CL,q.v4,q.lz,q.H7,q.LL,J,d)}); g.W(this,this.SQ);this.aj=Wh(function(){return new Bhd(q.J4,q.LN,q.v7,v,q.TQ,z,q.ou)}); g.W(this,this.aj);this.a6={Xn:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.oW],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.wc],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.rX],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.U6]]),i_:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.z0],["SLOT_TYPE_FORECASTING",this.rf],["SLOT_TYPE_IN_PLAYER",this.rf],["SLOT_TYPE_PLAYER_BYTES",this.rf]]),L$:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.nK],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.Cd],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Cd],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Cd],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Cd],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Cd],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Cd],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Cd],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Cd],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Cd],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Gp],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.j$],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.j$],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.tj],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Gp],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.p4],["TRIGGER_TYPE_AD_BREAK_STARTED",this.aW]]),Kz:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.V7],["SLOT_TYPE_FORECASTING",this.V7],["SLOT_TYPE_IN_PLAYER",this.V7],["SLOT_TYPE_PLAYER_BYTES",this.Wk]]),ZR:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ks],["SLOT_TYPE_FORECASTING",this.Dc],["SLOT_TYPE_IN_PLAYER",this.aj],["SLOT_TYPE_PLAYER_BYTES", this.SQ]])};this.listeners=[v.get()];this.PE={oW:this.oW,NN:this.H7.get(),au:this.v4.get(),Cn:this.LN.get(),rX:this.rX,J_:r.get(),o5:null,V0:this.nK,p6:v.get(),zg:this.ou.get()}}; fvn=function(Z,Q,z,K,b){g.O.call(this);var q=this,r=Wh(function(){return new uP(q.H7)}); g.W(this,r);var D=Wh(function(){return new tQ(r,q.H7)}); g.W(this,D);var v=Wh(function(){return new Id}); g.W(this,v);var Y=Wh(function(){return new cx(Z)}); g.W(this,Y);var X=Wh(function(){return new FD(r,D,q.H7)}); g.W(this,X);var S=Wh(function(){return new se}); g.W(this,S);this.TQ=Wh(function(){return new Yyr(Q)}); g.W(this,this.TQ);this.J4=Wh(function(){return new gS(Q)}); g.W(this,this.J4);this.v4=Wh(function(){return new kH(b)}); g.W(this,this.v4);this.t4=Wh(function(){return new uZ(Q)}); g.W(this,this.t4);this.mZ=Wh(function(){return new x8(Q)}); g.W(this,this.mZ);this.jP=Wh(function(){return new $c(Q)}); g.W(this,this.jP);this.CL=Wh(function(){return new tz(Q)}); g.W(this,this.CL);this.H7=Wh(function(){return new Fe(Q)}); g.W(this,this.H7);var T=Wh(function(){return new vm(K)}); g.W(this,T);var f=Wh(function(){return new S1(q.H7)}); g.W(this,f);this.lz=Wh(function(){return new TP(Q)}); g.W(this,this.lz);this.ou=Wh(function(){return new K6(Q,S,q.H7)}); g.W(this,this.ou);var h=Vc({ou:this.ou,H7:this.H7,Ky:f}),m=h.context,J=h.Yn;this.ZI=h.ZI;this.jx=Wh(function(){return new Sv(Q,q.H7,q.v7)}); g.W(this,this.jx);this.LL=Wh(function(){return new f6(Q)}); g.W(this,this.LL);this.LN=Wh(function(){return new by(Q,q.ou,q.H7)}); g.W(this,this.LN);h=Wh(function(){return new XD(r,X,D,q.H7,f,null,q.LN,q.xi,q.hj,3)}); g.W(this,h);this.Cy=Wh(function(){return new Fp(q.H7)}); this.B4=Wh(function(){return new EO(q.LN,Q,q.H7)}); g.W(this,this.B4);this.v7=Wh(function(){return new zP(Q,v,q.B4,q.ou,q.ZI,q.H7,J)}); g.W(this,this.v7);this.rX=new nd(Y,h,z,this.H7,Z,this.ou,this.LN,this.t4);g.W(this,this.rX);var d=new k8(Q,this.rX,this.LN,this.ou,this.jx);this.mY=Wh(function(){return d}); this.wL=d;this.wc=new Ld(JgG,hp,function(G,R,U,B){return uZn(D.get(),G,R,U,B)},Y,X,D,f,this.H7,this.ou); g.W(this,this.wc);this.xi=new Tq(Y,X,this.mY,this.jx,this.LN,this.H7,this.v7,this.LL);g.W(this,this.xi);this.U6=new ml(Y,X,this.mZ,this.mY,m);g.W(this,this.U6);this.oW=new p5(this.H7,Y,X,h,this.ou,this.U6,z);g.W(this,this.oW);this.z0=Wh(function(){return new Xa(T,D,f,q.H7,q.v7,q.LN,q.LL)}); g.W(this,this.z0);this.rf=Wh(function(){return new SX}); g.W(this,this.rf);this.nK=new ad(Z,this.J4,this.H7);g.W(this,this.nK);this.Cd=new Px(Z);g.W(this,this.Cd);this.Gp=new pd(Z,this.mY,m);g.W(this,this.Gp);this.j$=new Hx(Z,this.mZ,this.LN,this.ou,m);g.W(this,this.j$);this.m4=new Mn(Z,this.ou);g.W(this,this.m4);this.hj=new od(Z,this.jx,this.LN,this.v7,this.mY);g.W(this,this.hj);this.tj=new U4(Z);g.W(this,this.tj);this.p4=new O4(Z);g.W(this,this.p4);this.aW=new kg(Z);g.W(this,this.aW);this.V7=Wh(function(){return new d_}); g.W(this,this.V7);this.Wk=Wh(function(){return new Nn(q.LN)}); g.W(this,this.Wk);this.Ks=Wh(function(){return new l6(q.oW,Y,r)}); g.W(this,this.Ks);this.Dc=Wh(function(){return new zZ(q.H7,q.v7,q.tj,q.B4)}); g.W(this,this.Dc);this.SQ=Wh(function(){return new Dj(Z,q.aW,q.tj,q.ou,q.LL,q.LN,q.v7,S,q.jx,q.B4,q.Cy,q.jP,q.mZ,q.t4,q.CL,q.v4,q.lz,q.H7,v,m,J)}); g.W(this,this.SQ);this.nJ=Wh(function(){return new WhG(q.J4,q.LN,q.v7,v,q.TQ,z,q.H7,q.ou)}); g.W(this,this.nJ);this.a6={Xn:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.oW],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.xi],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.wc],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.rX],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.U6]]),i_:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.z0],["SLOT_TYPE_FORECASTING",this.rf],["SLOT_TYPE_IN_PLAYER",this.rf],["SLOT_TYPE_PLAYER_BYTES",this.rf]]),L$:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.nK],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Cd],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Cd],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Cd],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Cd],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Cd],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Cd],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Cd],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Cd],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Cd],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Gp],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.j$],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.j$],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.m4],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.m4],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.tj],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Gp],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.p4],["TRIGGER_TYPE_AD_BREAK_STARTED",this.aW],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.hj],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", this.hj],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.hj],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.hj],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.hj]]),Kz:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.V7],["SLOT_TYPE_FORECASTING",this.V7],["SLOT_TYPE_IN_PLAYER",this.V7],["SLOT_TYPE_PLAYER_BYTES",this.Wk]]),ZR:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ks],["SLOT_TYPE_FORECASTING",this.Dc],["SLOT_TYPE_PLAYER_BYTES",this.SQ],["SLOT_TYPE_IN_PLAYER",this.nJ]])};this.listeners=[v.get()]; this.PE={oW:this.oW,NN:this.H7.get(),au:this.v4.get(),Cn:this.LN.get(),rX:this.rX,J_:r.get(),o5:null,V0:this.nK,p6:v.get(),zg:this.ou.get()}}; LAG=function(Z,Q,z,K){function b(){return q.j} g.O.call(this);var q=this;Z.N().experiments.XI("html5_dispose_of_manager_before_dependency")?(this.Y=h3x(b,Z,Q,z,K),this.j=(new VF(this.Y)).S(),g.W(this,this.j),g.W(this,this.Y)):(this.Y=h3x(b,Z,Q,z,K),g.W(this,this.Y),this.j=(new VF(this.Y)).S(),g.W(this,this.j))}; L6=function(Z){return Z.Y.PE}; h3x=function(Z,Q,z,K,b){try{var q=Q.N();if(g.ka(q))var r=new Xr0(Z,Q,z,K,b);else if(g.xa(q))r=new Syf(Z,Q,z,K,b);else if(HZ(q))r=new $g0(Z,Q,z,K,b);else if(g.HM(q))r=new TiW(Z,Q,z,K,b);else if(g.ia(q))r=new fvn(Z,Q,z,K,b);else throw new TypeError("Unknown web interface");return r}catch(D){return r=Q.N(),vM("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:r.Y.cplatform,interface:r.Y.c,dDf:r.Y.cver,PRf:r.Y.ctheme,Hrp:r.Y.cplayer,XMG:r.playerStyle}),new z3X(Z,Q,z,K,b)}}; nmd=function(Z){WI.call(this,Z)}; cLr=function(Z,Q,z,K,b){wV.call(this,Z,{B:"div",D:"ytp-ad-timed-pie-countdown-container",G:[{B:"svg",D:"ytp-ad-timed-pie-countdown",C:{viewBox:"0 0 20 20"},G:[{B:"circle",D:"ytp-ad-timed-pie-countdown-background",C:{r:"10",cx:"10",cy:"10"}},{B:"circle",D:"ytp-ad-timed-pie-countdown-inner",C:{r:"5",cx:"10",cy:"10"}},{B:"circle",D:"ytp-ad-timed-pie-countdown-outer",C:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",Q,z,K,b);this.W=this.Ru("ytp-ad-timed-pie-countdown-container");this.S=this.Ru("ytp-ad-timed-pie-countdown-inner"); this.K=this.Ru("ytp-ad-timed-pie-countdown-outer");this.j=Math.ceil(2*Math.PI*5);this.hide()}; mgd=function(Z,Q,z,K,b,q){Yf.call(this,Z,{B:"div",D:"ytp-ad-action-interstitial",C:{tabindex:"0"},G:[{B:"div",D:"ytp-ad-action-interstitial-background-container"},{B:"div",D:"ytp-ad-action-interstitial-slot",G:[{B:"div",D:"ytp-ad-action-interstitial-instream-info"},{B:"div",D:"ytp-ad-action-interstitial-card",G:[{B:"div",D:"ytp-ad-action-interstitial-image-container"},{B:"div",D:"ytp-ad-action-interstitial-headline-container"},{B:"div",D:"ytp-ad-action-interstitial-description-container"},{B:"div", D:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",Q,z,K);this.u$=b;this.Oi=q;this.navigationEndpoint=this.Y=this.skipButton=this.j=this.actionButton=null;this.tG=this.Ru("ytp-ad-action-interstitial-instream-info");this.Vp=this.Ru("ytp-ad-action-interstitial-image-container");this.U=new U2(this.api,this.layoutId,this.interactionLoggingClientData,this.au,"ytp-ad-action-interstitial-image");g.W(this,this.U);this.U.zf(this.Vp);this.KN=this.Ru("ytp-ad-action-interstitial-headline-container"); this.K=new FN(this.api,this.layoutId,this.interactionLoggingClientData,this.au,"ytp-ad-action-interstitial-headline");g.W(this,this.K);this.K.zf(this.KN);this.SJ=this.Ru("ytp-ad-action-interstitial-description-container");this.S=new FN(this.api,this.layoutId,this.interactionLoggingClientData,this.au,"ytp-ad-action-interstitial-description");g.W(this,this.S);this.S.zf(this.SJ);this.qB=this.Ru("ytp-ad-action-interstitial-background-container");this.Zu=new U2(this.api,this.layoutId,this.interactionLoggingClientData, this.au,"ytp-ad-action-interstitial-background",!0);g.W(this,this.Zu);this.Zu.zf(this.qB);this.NB=this.Ru("ytp-ad-action-interstitial-action-button-container");this.slot=this.Ru("ytp-ad-action-interstitial-slot");this.I3=this.Ru("ytp-ad-action-interstitial-card");this.W=new NW;g.W(this,this.W);this.hide()}; Ivd=function(Z){var Q=g.xv("html5-video-player");Q&&g.vC(Q,"ytp-ad-display-override",Z)}; Ni9=function(Z,Q,z,K){Yf.call(this,Z,{B:"div",D:"ytp-ad-overlay-slot",G:[{B:"div",D:"ytp-ad-overlay-container"}]},"invideo-overlay",Q,z,K);this.U=[];this.qB=this.KN=this.W=this.NB=this.tG=null;this.Zu=!1;this.K=null;this.SJ=0;Z=this.Ru("ytp-ad-overlay-container");this.Vp=new qj(Z,45E3,6E3,.3,.4);g.W(this,this.Vp);this.S=JLG(this);g.W(this,this.S);this.S.zf(Z);this.j=yLD(this);g.W(this,this.j);this.j.zf(Z);this.Y=dgG(this);g.W(this,this.Y);this.Y.zf(Z);this.hide()}; JLG=function(Z){var Q=new g.gV({B:"div",D:"ytp-ad-text-overlay",G:[{B:"div",D:"ytp-ad-overlay-ad-info-button-container"},{B:"div",D:"ytp-ad-overlay-close-container",G:[{B:"button",D:"ytp-ad-overlay-close-button",G:[io(GWn)]}]},{B:"div",D:"ytp-ad-overlay-title",W7:"{{title}}"},{B:"div",D:"ytp-ad-overlay-desc",W7:"{{description}}"},{B:"div",nN:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],W7:"{{displayUrl}}"}]});Z.Z(Q.Ru("ytp-ad-overlay-title"),"click",function(z){n6(Z,Q.element,z)}); Z.Z(Q.Ru("ytp-ad-overlay-link"),"click",function(z){n6(Z,Q.element,z)}); Z.Z(Q.Ru("ytp-ad-overlay-close-container"),"click",Z.eq);Q.hide();return Q}; yLD=function(Z){var Q=new g.gV({B:"div",nN:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],G:[{B:"div",D:"ytp-ad-overlay-ad-info-button-container"},{B:"div",D:"ytp-ad-overlay-close-container",G:[{B:"button",D:"ytp-ad-overlay-close-button",G:[io(GWn)]}]},{B:"div",D:"ytp-ad-overlay-text-image",G:[{B:"img",C:{src:"{{imageUrl}}"}}]},{B:"div",D:"ytp-ad-overlay-title",W7:"{{title}}"},{B:"div",D:"ytp-ad-overlay-desc",W7:"{{description}}"},{B:"div",nN:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], W7:"{{displayUrl}}"}]});Z.Z(Q.Ru("ytp-ad-overlay-title"),"click",function(z){n6(Z,Q.element,z)}); Z.Z(Q.Ru("ytp-ad-overlay-link"),"click",function(z){n6(Z,Q.element,z)}); Z.Z(Q.Ru("ytp-ad-overlay-close-container"),"click",Z.eq);Z.Z(Q.Ru("ytp-ad-overlay-text-image"),"click",Z.QWY);Q.hide();return Q}; dgG=function(Z){var Q=new g.gV({B:"div",D:"ytp-ad-image-overlay",G:[{B:"div",D:"ytp-ad-overlay-ad-info-button-container"},{B:"div",D:"ytp-ad-overlay-close-container",G:[{B:"button",D:"ytp-ad-overlay-close-button",G:[io(GWn)]}]},{B:"div",D:"ytp-ad-overlay-image",G:[{B:"img",C:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});Z.Z(Q.Ru("ytp-ad-overlay-image"),"click",function(z){n6(Z,Q.element,z)}); Z.Z(Q.Ru("ytp-ad-overlay-close-container"),"click",Z.eq);Q.hide();return Q}; i2d=function(Z,Q){if(Q){var z=g.V(Q,aU)||null;z==null?g.Rm(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(Q=g.xv("video-ads ytp-ad-module")||null,Q==null?g.Rm(Error("Could not locate the root ads container element to attach the ad info dialog.")):(Z.KN=new g.gV({B:"div",D:"ytp-ad-overlay-ad-info-dialog-container"}),g.W(Z,Z.KN),Z.KN.zf(Q),Q=new tB(Z.api,Z.layoutId,Z.interactionLoggingClientData,Z.au,Z.KN.element,!1),g.W(Z,Q),Q.init(bo("ad-info-hover-text-button"),z,Z.macros), Z.K?(Q.zf(Z.K,0),Q.subscribe("f",Z.xTr,Z),Q.subscribe("e",Z.MY,Z),Z.Z(Z.K,"click",Z.Tq7),Z.Z(g.xv("ytp-ad-button",Q.element),"click",function(){var K;if(g.V((K=g.V(z.button,g.RU))==null?void 0:K.serviceEndpoint,tzX))Z.Zu=Z.api.getPlayerState(1)===2,Z.api.pauseVideo();else Z.api.onAdUxClicked("ad-info-hover-text-button",Z.layoutId)}),Z.qB=Q):g.Rm(Error("Ad info button container within overlay ad was not present."))))}else g.CO(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; Pwu=function(Z,Q){if(avG(Z,cm)||Z.api.isMinimized())return!1;var z=XN(Q.title),K=XN(Q.description);if(g.IE(z)||g.IE(K))return!1;Z.createServerVe(Z.S.element,Q.trackingParams||null);Z.S.updateValue("title",XN(Q.title));Z.S.updateValue("description",XN(Q.description));Z.S.updateValue("displayUrl",XN(Q.displayUrl));Q.navigationEndpoint&&g.KG(Z.U,Q.navigationEndpoint);Z.S.show();Z.Vp.start();Z.logVisibility(Z.S.element,!0);Z.Z(Z.S.element,"mouseover",function(){Z.SJ++}); return!0}; R3n=function(Z,Q){if(avG(Z,cm)||Z.api.isMinimized())return!1;var z=XN(Q.title),K=XN(Q.description);if(g.IE(z)||g.IE(K))return!1;Z.createServerVe(Z.j.element,Q.trackingParams||null);Z.j.updateValue("title",XN(Q.title));Z.j.updateValue("description",XN(Q.description));Z.j.updateValue("displayUrl",XN(Q.displayUrl));Z.j.updateValue("imageUrl",gkM(Q.image));Q.navigationEndpoint&&g.KG(Z.U,Q.navigationEndpoint);Z.NB=Q.imageNavigationEndpoint||null;Z.j.show();Z.Vp.start();Z.logVisibility(Z.j.element,!0); Z.Z(Z.j.element,"mouseover",function(){Z.SJ++}); return!0}; Cw4=function(Z,Q){if(Z.api.isMinimized())return!1;var z=YID(Q.image),K=z;z.width<cm.width&&(K=cm);if(z.width===0||z.height===0||avG(Z,K))return!1;Z.createServerVe(Z.Y.element,Q.trackingParams||null);Z.Y.updateValue("imageUrl",gkM(Q.image));Z.Y.updateValue("width",z.width);Z.Y.updateValue("height",z.height);Q.navigationEndpoint&&g.KG(Z.U,Q.navigationEndpoint);g.Dw(Z.Y.Ru("ytp-ad-image-overlay"),"max-width",z.width+"px");Z.Y.show();Z.logVisibility(Z.Y.element,!0);Z.Z(Z.Y.element,"mouseover",function(){Z.SJ++; Z.api.p_("invideo-overlay",Z.layoutId)}); Z.Z(Z.Y.element,"mouseout",function(){Z.api.Iz("invideo-overlay",Z.layoutId)}); return!0}; avG=function(Z,Q){var z=Z.api.U$().KZ(),K=Z.api.qE(!0,!1);return(Q=Si(z,z.height-(K.height+K.top),Q))?(Z.tG&&Q&&(z=g.ae(Z.macros),z.ERRORCODE=Q.Xr.toString(),z.ERROR_MSG=Q.errorMessage,Z.layoutId?xH(Z.au,Z.tG,Z.layoutId,z):g.Rm(Error("Missing layoutId for invideo_overlay_ad."))),!0):!1}; n6=function(Z,Q,z){var K=g.ae(Z.macros),b=g.n4(Q);K.AW={toString:function(){return b.width.toString()}}; K.AH={toString:function(){return b.height.toString()}}; var q=g.hG(z,Q).floor();K.I_X={toString:function(){return q.x.toString()}}; K.NX={toString:function(){return q.x.toString()}}; K.I_Y={toString:function(){return q.y.toString()}}; K.NY={toString:function(){return q.y.toString()}}; K.NM={toString:function(){return Z.SJ.toString()}}; Q=g.n(Z.U);for(z=Q.next();!z.done;z=Q.next())z=z.value,Z.layoutId?xH(Z.au,z,Z.layoutId,K):g.Rm(Error("Missing layoutId for invideo_overlay_ad."));Z.api.pauseVideo()}; pr4=function(Z,Q){Z=Z.api.getRootNode();g.vC(Z,"ytp-ad-overlay-open",Q);g.vC(Z,"ytp-ad-overlay-closed",!Q)}; H2f=function(Z,Q,z,K,b){wV.call(this,Z,{B:"div",D:"ytp-ad-message-overlay",G:[{B:"div",D:"ytp-ad-message-slot"}]},"ad-message",Q,z,K,b);var q=this;this.K=-1;this.S=0;this.SJ=!1;this.KN=this.Ru("ytp-ad-message-slot");this.j=new g.gV({B:"span",D:"ytp-ad-message-container"});this.j.zf(this.KN);g.W(this,this.j);this.messageText=new FN(this.api,this.layoutId,this.interactionLoggingClientData,K,"ytp-ad-message-text");g.W(this,this.messageText);this.messageText.zf(this.j.element);this.W=new g.s8(this.j, 400,!1,100,function(){q.hide()}); g.W(this,this.W);this.hide()}; MAM=function(Z,Q){Z=Z.api.getRootNode();g.vC(Z,"ytp-ad-overlay-open",Q);g.vC(Z,"ytp-ad-overlay-closed",!Q)}; UgW=function(Z,Q,z,K){Yf.call(this,Z,{B:"div",D:"ytp-ad-underlay-companion",G:[{B:"div",D:"ytp-ad-underlay-side-container",G:[{B:"div",D:"ytp-ad-underlay-image-container"},{B:"div",D:"ytp-ad-underlay-description-container"},{B:"div",D:"ytp-ad-underlay-headline-container"},{B:"div",D:"ytp-ad-underlay-action-button-container"}]}]},"player-underlay",Q,z,K);this.actionButton=null;this.KN=this.Ru("ytp-ad-underlay-image-container");this.S=new U2(this.api,this.layoutId,this.interactionLoggingClientData, this.au,"ytp-ad-underlay-image");g.W(this,this.S);this.S.zf(this.KN);this.SJ=this.Ru("ytp-ad-underlay-headline-container");this.j=new FN(this.api,this.layoutId,this.interactionLoggingClientData,this.au,"ytp-ad-underlay-headline");g.W(this,this.j);this.j.zf(this.SJ);this.U=this.Ru("ytp-ad-underlay-description-container");this.W=new FN(this.api,this.layoutId,this.interactionLoggingClientData,this.au,"ytp-ad-underlay-description");g.W(this,this.W);this.W.zf(this.U);this.K=this.Ru("ytp-ad-underlay-action-button-container"); this.Y=this.Ru("ytp-ad-underlay-side-container");this.hide()}; O2X=function(Z){var Q=g.xv("html5-video-player");Q&&g.vC(Q,"ytp-ad-display-override",Z)}; mz=function(Z,Q,z,K,b,q){q=q===void 0?function(){}:q; Yf.call(this,Z,{B:"div",D:"ytp-ad-survey-answer"},"survey-answer",Q,z,K);this.index=b;this.onSelected=q;this.Y=null;this.toggledLoggingParams="";this.answer=this.Ru("ytp-ad-survey-answer");this.hide()}; omM=function(Z,Q,z,K){Yf.call(this,Z,{B:"div",D:"ytp-ad-survey-none-of-the-above"},"survey-none-of-the-above",Q,z,K);this.button=null;this.Y=this.Ru("ytp-ad-survey-none-of-the-above");this.hide()}; I2=function(Z,Q,z,K){var b=["ytp-ad-survey-submit-button"];b.push("ytp-ad-survey-submit-button-rounded");ap.call(this,Z,Q,z,K,b,"survey-submit")}; Jp=function(Z,Q,z,K,b){Yf.call(this,Z,{B:"div",D:"ytp-ad-survey-player-overlay",G:[{B:"div",D:"ytp-ad-survey-player-overlay-instream-info"},{B:"div",D:"ytp-ad-survey-player-overlay-skip-preview-submit",G:[{B:"div",D:"ytp-ad-survey-player-overlay-skip-or-preview"},{B:"div",D:"ytp-ad-survey-player-overlay-submit"}]},{B:"div",D:"ytp-ad-survey-player-overlay-instream-user-sentiment"}]},"survey-player-overlay",Q,z,K);this.W=b;this.j=this.Y=null;this.S=this.Ru("ytp-ad-survey-player-overlay-instream-info"); this.skipOrPreview=this.Ru("ytp-ad-survey-player-overlay-skip-or-preview");this.submitButton=this.Ru("ytp-ad-survey-player-overlay-submit");g.W(this,this.W);this.hide()}; yl=function(Z,Q,z,K,b,q){q=q===void 0?function(){}:q; Yf.call(this,Z,{B:"div",D:"ytp-ad-survey-question",G:[{B:"div",nN:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{B:"div",nN:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{B:"div",nN:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{B:"div",D:"ytp-ad-survey-question-background"}]},b,Q,z,K);this.KN=q;this.W=null;this.j=[];this.Y=null;this.U=this.api.N().experiments.XI("a11y_h5_associate_survey_question");this.question=this.Ru("ytp-ad-survey-question"); this.Vp=this.Ru("ytp-ad-survey-question-background");this.questionText=this.Ru("ytp-ad-survey-question-text");this.answers=this.Ru("ytp-ad-survey-answers");this.playerOverlay=this.Ru("ytp-ad-survey-question-player-overlay");this.S=Date.now()}; Bif=function(Z,Q){Q=g.SN(Q);g.qT(Z.questionText,Q);Z.U&&Z.questionText.setAttribute("id",bo("survey-question-text"))}; WAn=function(Z,Q,z,K){K=new mz(Z.api,Z.layoutId,Z.interactionLoggingClientData,Z.au,K,Z.KN);K.zf(Z.answers);K.init(bo("survey-answer"),Q,z);Z.U&&(Q=Z.questionText.getAttribute("id"),Q!=null&&(K.Y!==null?K.Y.j.setAttribute("aria-describedby",Q):K.answer.getElementsByTagName("button")[0].setAttribute("aria-describedby",Q)));Z.j.push(K)}; kWD=function(Z,Q){if(Q){var z=Q.background;z&&g.V(z,VA9)&&(z=(z=g.V(z,VA9).image)&&ME(z)||"",g.IE(z)?g.CO(Error("Found ThumbnailDetails without valid image URL")):g.Dw(Z.Vp,"backgroundImage","url("+z+")"));if(Q.durationMilliseconds==null||Q.durationMilliseconds===void 0||Q.durationMilliseconds===0)g.Rm(Error("durationMilliseconds unset or 0 for SurveyAdQuestionCommon: "+JSON.stringify(Q)));else{Z.S=g.sQ();Z.Y=new nF(Z.api,Q.durationMilliseconds);g.W(Z,Z.Y);if(Z.Y&&Q.instreamAdPlayerOverlay&&g.V(Q.instreamAdPlayerOverlay, iD))try{var K=new Jp(Z.api,Z.layoutId,Z.interactionLoggingClientData,Z.au,Z.Y);K.zf(Z.playerOverlay);K.init(bo("survey-player-overlay"),g.V(Q.instreamAdPlayerOverlay,iD),Z.macros);Z.W=K;g.W(Z,K);Z.tb()}catch(b){g.Rm(Error("ISAPOR had an error when initializing. Error: "+(b+" SurveyAdQuestionCommon: "+JSON.stringify(Q))))}else g.Rm(Error("ISAPOR was not present in renderer. SurveyAdQuestionCommon: "+JSON.stringify(Q)));Z.Y&&Q.durationMilliseconds&&Q.durationMilliseconds>0?(Q=new CF(Z.api,Z.Y),Q.zf(Z.playerOverlay), g.W(Z,Q)):g.Rm(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(Q)))}}else g.Rm(Error("addCommonComponents() needs to be called before starting countdown."))}; uId=function(Z){function Q(z){return{toString:function(){return z()}}} Z.macros.SURVEY_LOCAL_TIME_EPOCH_S=Q(function(){var z=new Date;return(Math.round(z.valueOf()/1E3)+-1*z.getTimezoneOffset()*60).toString()}); Z.macros.SURVEY_ELAPSED_MS=Q(function(){return(Date.now()-Z.S).toString()})}; xgG=function(Z,Q,z,K,b){yl.call(this,Z,Q,z,K,"survey-question-multi-select");this.SJ=b;this.noneOfTheAbove=null;this.submitEndpoints=[];this.K=null;this.hide()}; tA0=function(Z,Q,z){Z.noneOfTheAbove=new omM(Z.api,Z.layoutId,Z.interactionLoggingClientData,Z.au);Z.noneOfTheAbove.zf(Z.answers);Z.noneOfTheAbove.init(bo("survey-none-of-the-above"),Q,z)}; e3f=function(Z){Z.j.forEach(function(Q){Q.Y.toggleButton(!1)}); FAG(Z,!0)}; FAG=function(Z,Q){var z=Z.W;Z=wr9(Z);Q=Q===void 0?!1:Q;z.Y&&(Z?z.Y.hide():z.Y.show(),Q&&z.Y instanceof T5&&!z.Y.W&&zk4(z.Y,!1));z.j&&(Z?z.j.show():z.j.hide())}; wr9=function(Z){return Z.j.some(function(Q){return Q.Y.isToggled()})||Z.noneOfTheAbove.button.isToggled()}; dS=function(Z,Q,z,K,b){yl.call(this,Z,Q,z,K,"survey-question-single-select",function(r){q.api.N().V("supports_multi_step_on_desktop")&&b([r])}); var q=this;this.hide()}; NL=function(Z,Q,z,K){Yf.call(this,Z,{B:"div",D:"ytp-ad-survey",G:[{B:"div",D:"ytp-ad-survey-questions"}]},"survey",Q,z,K);this.questions=[];this.j=[];this.conditioningRules=[];this.Y=0;this.K=this.Ru("ytp-ad-survey-questions");this.api.N().V("fix_survey_color_contrast_on_destop")&&this.Ru("ytp-ad-survey").classList.add("color-contrast-fix");this.api.N().V("web_enable_speedmaster")&&this.Ru("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; sDn=function(Z,Q){var z=Z.j[Q],K;(K=Z.S)==null||K.dispose();g.V(z,GE)?Emu(Z,g.V(z,GE),Z.macros):g.V(z,Nb)&&lvG(Z,g.V(z,Nb),Z.macros);Z.Y=Q}; Emu=function(Z,Q,z){var K=new dS(Z.api,Z.layoutId,Z.interactionLoggingClientData,Z.au,Z.W.bind(Z));K.zf(Z.K);K.init(bo("survey-question-single-select"),Q,z);Z.api.N().V("supports_multi_step_on_desktop")?Z.S=K:Z.questions.push(K);g.W(Z,K)}; lvG=function(Z,Q,z){var K=new xgG(Z.api,Z.layoutId,Z.interactionLoggingClientData,Z.au,Z.W.bind(Z));K.zf(Z.K);K.init(bo("survey-question-multi-select"),Q,z);Z.api.N().V("supports_multi_step_on_desktop")?Z.S=K:Z.questions.push(K);g.W(Z,K)}; GP=function(Z,Q,z,K){Yf.call(this,Z,{B:"div",D:"ytp-ad-survey-interstitial",G:[{B:"div",D:"ytp-ad-survey-interstitial-contents",G:[{B:"div",D:"ytp-ad-survey-interstitial-logo",G:[{B:"div",D:"ytp-ad-survey-interstitial-logo-image"}]},{B:"div",D:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",Q,z,K);this.Y=this.actionButton=null;this.interstitial=this.Ru("ytp-ad-survey-interstitial");this.j=this.Ru("ytp-ad-survey-interstitial-contents");this.text=this.Ru("ytp-ad-survey-interstitial-text"); this.logoImage=this.Ru("ytp-ad-survey-interstitial-logo-image");this.transition=new g.s8(this,500,!1,300);g.W(this,this.transition)}; ZT4=function(Z,Q){Q=Q&&ME(Q)||"";if(g.IE(Q))g.CO(Error("Found ThumbnailDetails without valid image URL"));else{var z=Z.style;Z=Z.style.cssText;var K=document.implementation.createHTMLDocument("").createElement("DIV");K.style.cssText=Z;Z=osn(K.style);z.cssText=[Z,'background-image:url("'+Q+'");'].join("")}}; QD9=function(Z){var Q=g.xv("html5-video-player");Q&&g.vC(Q,"ytp-ad-display-override",Z)}; iy=function(Z,Q,z,K,b,q){q=q===void 0?0:q;wV.call(this,Z,{B:"div",D:"ytp-preview-ad",G:[{B:"div",D:"ytp-preview-ad__text"}]},"preview-ad",Q,z,K,b);var r=this;this.SJ=q;this.j=0;this.W=-1;this.S=this.Ru("ytp-preview-ad__text");switch(this.SJ){case 1:this.S.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.s8(this,400,!1,100,function(){r.hide()}); g.W(this,this.transition);this.hide()}; a2=function(Z,Q,z,K){Yf.call(this,Z,{B:"img",D:"ytp-ad-avatar"},"ad-avatar",Q,z,K);this.hide()}; z6G=function(Z){switch(Z.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}}; Pm=function(Z,Q,z,K,b,q){b=b===void 0?!1:b;q=q===void 0?!1:q;Yf.call(this,Z,{B:"button",D:"ytp-ad-button-vm"},"ad-button",Q,z,K);this.buttonText=this.buttonIcon=null;this.hide();this.Y=b;this.j=q}; Kkn=function(Z,Q,z,K,b){wV.call(this,Z,{B:"div",nN:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],G:[{B:"div",D:"ytp-ad-avatar-lockup-card__avatar_and_text_container",G:[{B:"div",D:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",Q,z,K,b);this.startMilliseconds=0;this.adAvatar=new a2(this.api,this.layoutId,this.interactionLoggingClientData,this.au);g.W(this,this.adAvatar);zB(this.element,this.adAvatar.element,0);this.headline=new Nj(this.api,this.layoutId, this.interactionLoggingClientData,this.au);g.W(this,this.headline);this.headline.zf(this.Ru("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new Nj(this.api,this.layoutId,this.interactionLoggingClientData,this.au);g.W(this,this.description);this.description.zf(this.Ru("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new Pm(this.api, this.layoutId,this.interactionLoggingClientData,this.au);g.W(this,this.adButton);this.adButton.zf(this.element);this.hide()}; R2=function(Z,Q,z,K){Yf.call(this,Z,{B:"button",D:"ytp-skip-ad-button",G:[{B:"div",D:"ytp-skip-ad-button__text"}]},"skip-button",Q,z,K);var b=this;this.j=!1;this.W=this.Ru("ytp-skip-ad-button__text");this.transition=new g.s8(this,500,!1,100,function(){b.hide()}); g.W(this,this.transition);this.Y=new qj(this.element,15E3,5E3,.5,.5,!0);g.W(this,this.Y);this.hide()}; bTG=function(Z,Q,z,K,b){wV.call(this,Z,{B:"div",D:"ytp-skip-ad"},"skip-ad",Q,z,K,b);this.skipOffsetMilliseconds=0;this.W=this.isSkippable=!1;var q;if((q=this.api.getVideoData())==null?0:q.isDaiEnabled())this.W=this.api.N().V("clean_player_style_fix_on_web");if(this.W||!this.api.N().experiments.XI("disable_ad_preview_for_instream_ads"))this.j=new iy(this.api,this.layoutId,this.interactionLoggingClientData,this.au,this.Y),g.W(this,this.j),this.j.zf(this.element);this.S=new R2(this.api,this.layoutId, this.interactionLoggingClientData,this.au);g.W(this,this.S);this.S.zf(this.element);this.hide()}; C6=function(Z,Q,z,K){Yf.call(this,Z,{B:"div",D:"ytp-visit-advertiser-link"},"visit-advertiser-link",Q,z,K);this.hide();this.api.V("enable_ad_pod_index_autohide")&&this.element.classList.add("ytp-visit-advertiser-link--clean-player");this.api.V("clean_player_style_fix_on_web")&&this.element.classList.add("ytp-visit-advertiser-link--clean-player-with-light-shadow")}; p6=function(Z,Q,z,K,b){Yf.call(this,Z,{B:"div",D:"ytp-ad-player-overlay-layout",G:[{B:"div",D:"ytp-ad-player-overlay-layout__player-card-container"},{B:"div",D:"ytp-ad-player-overlay-layout__ad-info-container"},{B:"div",D:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{B:"div",D:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",Q,z,K);this.j=b;this.KN=this.Ru("ytp-ad-player-overlay-layout__player-card-container");this.Y=this.Ru("ytp-ad-player-overlay-layout__ad-info-container"); this.U=this.Ru("ytp-ad-player-overlay-layout__skip-or-preview-container");this.SJ=this.Ru("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}; qY9=function(Z,Q,z,K){Yf.call(this,Z,{B:"div",D:"ytp-ad-grid-card-text",G:[{B:"div",D:"ytp-ad-grid-card-text__metadata",G:[{B:"div",D:"ytp-ad-grid-card-text__metadata__headline"},{B:"div",D:"ytp-ad-grid-card-text__metadata__description",G:[{B:"div",D:"ytp-ad-grid-card-text__metadata__description__line"},{B:"div",D:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{B:"div",D:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",Q,z,K);this.headline=new Nj(this.api,this.layoutId,this.interactionLoggingClientData, this.au);g.W(this,this.headline);this.headline.zf(this.Ru("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new Pm(this.api,this.layoutId,this.interactionLoggingClientData,this.au,!0);g.W(this,this.moreInfoButton);this.moreInfoButton.zf(this.Ru("ytp-ad-grid-card-text__button"))}; Hm=function(Z,Q,z,K){Yf.call(this,Z,{B:"div",D:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",Q,z,K);this.Y=[]}; ML=function(Z,Q,z,K,b,q,r){wV.call(this,Z,q,r,Q,z,K,b);this.playerProgressOffsetMs=0;this.j=!1}; rDG=function(Z){var Q=g.xv("html5-video-player");Q&&g.vC(Q,"ytp-ad-display-override",Z)}; AD0=function(Z,Q,z,K,b){ML.call(this,Z,Q,z,K,b,{B:"div",D:"ytp-display-underlay-text-grid-cards",G:[{B:"div",D:"ytp-display-underlay-text-grid-cards__content_container",G:[{B:"div",D:"ytp-display-underlay-text-grid-cards__content_container__header",G:[{B:"div",D:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{B:"div",D:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{B:"div",D:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"}, {B:"div",D:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new Hm(this.api,this.layoutId,this.interactionLoggingClientData,this.au);g.W(this,this.adGridCardCollection);this.adGridCardCollection.zf(this.Ru("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new Pm(this.api,this.layoutId,this.interactionLoggingClientData,this.au);g.W(this,this.adButton);this.adButton.zf(this.Ru("ytp-display-underlay-text-grid-cards__content_container__ad_button")); this.S=this.Ru("ytp-display-underlay-text-grid-cards__content_container");this.W=this.Ru("ytp-display-underlay-text-grid-cards__content_container__header")}; UR=function(Z,Q,z,K){Yf.call(this,Z,{B:"div",D:"ytp-ad-details-line"},"ad-details-line",Q,z,K);this.Y=[];this.hide()}; OR=function(Z,Q,z,K){Yf.call(this,Z,{B:"div",D:"ytp-image-background",G:[{B:"img",D:"ytp-image-background-image"}]},"image-background",Q,z,K);this.hide()}; jDW=function(Z,Q,z,K,b){wV.call(this,Z,{B:"svg",D:"ytp-timed-pie-countdown",C:{viewBox:"0 0 20 20"},G:[{B:"circle",D:"ytp-timed-pie-countdown__background",C:{r:"10",cx:"10",cy:"10"}},{B:"circle",D:"ytp-timed-pie-countdown__inner",C:{r:"5",cx:"10",cy:"10"}},{B:"circle",D:"ytp-timed-pie-countdown__outer",C:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",Q,z,K,b);this.S=this.Ru("ytp-timed-pie-countdown__inner");this.j=Math.ceil(2*Math.PI*5);this.hide()}; o2=function(Z,Q,z,K){Yf.call(this,Z,{B:"div",D:"ytp-video-interstitial-buttoned-centered-layout",C:{tabindex:"0"},G:[{B:"div",D:"ytp-video-interstitial-buttoned-centered-layout__content",G:[{B:"div",D:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{B:"div",D:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",G:[{B:"div",D:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{B:"div",D:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, {B:"div",D:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{B:"div",D:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{B:"div",D:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",Q,z,K);this.j=null;this.W=this.Ru("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.S=new NW;g.W(this,this.S);this.hide()}; DRG=function(Z){var Q=g.xv("html5-video-player");Q&&g.vC(Q,"ytp-ad-display-override",Z)}; vuM=function(Z){if(!Z.adAvatar||!g.V(Z.adAvatar,Bm))return g.Rm(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!Z.headline)return g.Rm(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!Z.adBadge||!g.V(Z.adBadge,Wm))return g.Rm(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!Z.adButton||!g.V(Z.adButton,Vl))return g.Rm(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!Z.adInfoRenderer|| !g.V(Z.adInfoRenderer,aU))return g.Rm(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;Z=Z.durationMilliseconds||0;return typeof Z!=="number"||Z<=0?(g.Rm(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+Z)),!1):!0}; kc=function(Z,Q,z){WI.call(this,Z);this.api=Z;this.au=Q;this.j={};Z=new g.x({B:"div",nN:["video-ads","ytp-ad-module"]});g.W(this,Z);e2&&g.rd(Z.element,"ytp-ads-tiny-mode");this.L=new hX(Z.element);g.W(this,this.L);g.NZ(this.api,Z.element,4);w6(z)&&(z=new g.x({B:"div",nN:["ytp-ad-underlay"]}),g.W(this,z),this.S=new hX(z.element),g.W(this,this.S),g.NZ(this.api,z.element,0));g.W(this,PQf())}; gu0=function(Z,Q){Z=g.GF(Z.j,Q.id,null);Z==null&&g.CO(Error("Component not found for element id: "+Q.id));return Z||null}; YYf=function(Z){g.Jv.call(this,Z);var Q=this;this.j=null;this.created=!1;this.S=Z.N().V("h5_use_refactored_get_ad_break")?new rSd(this.player):new Wp(this.player);this.W=function(){if(Q.j!=null)return Q.j;var K=new XHG({V0:L6(Q.Y).V0,zg:L6(Q.Y).zg,J:Q.player,NN:L6(Q.Y).NN,v7:Q.Y.Y.v7,p6:L6(Q.Y).p6,CL:Q.Y.Y.CL});Q.j=K.ag;return Q.j}; this.Y=new LAG(this.player,this,this.S,this.W);g.W(this,this.Y);var z=Z.N();!dZ(z)||g.ia(z)||HZ(z)||(g.W(this,new kc(Z,L6(this.Y).au,L6(this.Y).NN)),g.W(this,new nmd(Z)))}; XYd=function(Z){Z.created!==Z.loaded&&vM("Created and loaded are out of sync")}; Ten=function(Z){g.Jv.prototype.load.call(Z);var Q=L6(Z.Y).NN;try{Z.player.getRootNode().classList.add("ad-created")}catch(v){vM(v instanceof Error?v:String(v))}var z=Z.player.getVideoData(1),K=z&&z.videoId||"",b=z&&z.getPlayerResponse()||{},q=(!Z.player.N().experiments.XI("debug_ignore_ad_placements")&&b&&b.adPlacements||[]).map(function(v){return v.adPlacementRenderer}),r=((b==null?void 0:b.adSlots)||[]).map(function(v){return g.V(v,Hi)}); b=b.playerConfig&&b.playerConfig.daiConfig&&b.playerConfig.daiConfig.enableDai||!1;z&&z.fd();q=SYG(q,r,Q,L6(Z.Y).J_);r=z&&z.clientPlaybackNonce||"";z=z&&z.HH||!1;if(J7(Q,!0)&&z){var D;Q={};(D=Z.player.getVideoData())==null||D.pN("p_cpb",(Q.cc=r,Q))}D=1E3*Z.player.getDuration(1);$Rn(Z);Z.Y.Y.wL.l0(r,D,z,q.RI,q.Nh,q.RI,b,K)}; $Rn=function(Z){var Q,z;if(z=(Q=Z.player.getVideoData(1))==null||!Q.HH)Q=Z.player.N(),z=dZ(Q)&&!g.yF(Q)&&Q.playerStyle==="desktop-polymer";z&&(Z=Z.player.getInternalApi(),Z.addEventListener("updateKevlarOrC3Companion",jfG),Z.addEventListener("updateEngagementPanelAction",DQM),Z.addEventListener("changeEngagementPanelVisibility",vSX),window.addEventListener("yt-navigate-start",YnM))}; uy=function(Z,Q){Q===Z.EX&&(Z.EX=void 0)}; f$f=function(Z){var Q=L6(Z.Y).rX,z=Q.W().HQ("SLOT_TYPE_PLAYER_BYTES",1);Q=fg(Q.ou.get(),1).clientPlaybackNonce;var K=!1;z=g.n(z);for(var b=z.next();!b.done;b=z.next()){b=b.value;var q=b.slotType==="SLOT_TYPE_PLAYER_BYTES"&&b.slotEntryTrigger instanceof JV?b.slotEntryTrigger.fz:void 0;q&&q===Q&&(K&&vM("More than 1 preroll playerBytes slot detected",b),K=!0)}K||qL(L6(Z.Y).Cn)}; h6u=function(Z){if(eV(L6(Z.Y).NN))return!0;var Q="";Z=g.n(L6(Z.Y).p6.LM.keys());for(var z=Z.next();!z.done;z=Z.next()){z=z.value;if(z.slotType==="SLOT_TYPE_PLAYER_BYTES"&&z.mF==="core")return!0;Q+=z.slotType+" "}Math.random()<.01&&vM("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:Q});return!1}; Lk0=function(Z){Z=g.n(L6(Z.Y).p6.LM.values());for(var Q=Z.next();!Q.done;Q=Z.next())if(Q.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; mHD=function(Z,Q,z,K,b,q){z=z===void 0?[]:z;K=K===void 0?"":K;b=b===void 0?"":b;var r=L6(Z.Y).NN,D=Z.player.getVideoData(1);D&&D.getPlayerResponse();D&&D.fd();z=SYG(Q,z,r,L6(Z.Y).J_);dHx(L6(Z.Y).oW,K,z.RI,z.Nh,Q,b,q)}; SYG=function(Z,Q,z,K){Q={RI:[],Nh:Q};Z=g.n(Z);for(var b=Z.next();!b.done;b=Z.next())if((b=b.value)&&b.renderer!=null){var q=b.renderer;if(!z.J.N().V("html5_enable_vod_lasr_with_notify_pacf")){var r=void 0,D=void 0,v=void 0,Y=void 0,X=K;g.V((Y=q.sandwichedLinearAdRenderer)==null?void 0:Y.adVideoStart,Yg)?(r=g.V((v=q.sandwichedLinearAdRenderer)==null?void 0:v.adVideoStart,Yg),r=BOf(r,X),g.Ou(q.sandwichedLinearAdRenderer.adVideoStart,Yg,r)):g.V((D=q.linearAdSequenceRenderer)==null?void 0:D.adStart,Yg)&& (v=g.V((r=q.linearAdSequenceRenderer)==null?void 0:r.adStart,Yg),r=BOf(v,X),g.Ou(q.linearAdSequenceRenderer.adStart,Yg,r))}Q.RI.push(b)}return Q}; g.xc=function(Z){if(typeof DOMParser!="undefined")return t5(new DOMParser,RBn(Z),"application/xml");throw Error("Your browser does not support loading xml documents");}; g.tp=function(Z){g.O.call(this);this.callback=Z;this.Y=new cC(0,0,.4,0,.2,1,1,1);this.delay=new g.w2(this.next,window,this);g.W(this,this.delay)}; g.nuD=function(Z){var Q=Z.N();return Q.A4&&!Q.S&&g.mj(Q)?Z.isEmbedsShortsMode()?(Z=Z.qE(),Math.min(Z.width,Z.height)>=315):!Z.R6():!1}; g.FQ=function(Z){g.x.call(this,{B:"div",D:"ytp-more-videos-view",C:{tabIndex:"-1"}});var Q=this;this.api=Z;this.j=!0;this.S=new g.M5(this);this.Y=[];this.suggestionData=[];this.columns=this.containerWidth=this.X=this.W=this.scrollPosition=0;this.title=new g.x({B:"h2",D:"ytp-related-title",W7:"{{title}}"});this.previous=new g.x({B:"button",nN:["ytp-button","ytp-previous"],C:{"aria-label":"Show previous suggested videos"},G:[g.fi()]});this.T=new g.tp(function(z){Q.suggestions.element.scrollLeft=-z}); this.next=new g.x({B:"button",nN:["ytp-button","ytp-next"],C:{"aria-label":"Show more suggested videos"},G:[g.hB()]});g.W(this,this.S);this.K=Z.N().W;g.W(this,this.title);this.title.zf(this.element);this.suggestions=new g.x({B:"div",D:"ytp-suggestions"});g.W(this,this.suggestions);this.suggestions.zf(this.element);g.W(this,this.previous);this.previous.zf(this.element);this.previous.listen("click",this.TK,this);g.W(this,this.T);cDG(this);g.W(this,this.next);this.next.zf(this.element);this.next.listen("click", this.xu,this);this.S.Z(this.api,"appresize",this.pL);this.S.Z(this.api,"fullscreentoggled",this.gL);this.S.Z(this.api,"videodatachange",this.onVideoDataChange);this.pL(this.api.U$().getPlayerSize());this.onVideoDataChange()}; cDG=function(Z){for(var Q={MK:0};Q.MK<16;Q={MK:Q.MK},++Q.MK){var z=new g.x({B:"a",D:"ytp-suggestion-link",C:{href:"{{link}}",target:Z.api.N().U,"aria-label":"{{aria_label}}"},G:[{B:"div",D:"ytp-suggestion-image"},{B:"div",D:"ytp-suggestion-overlay",C:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},G:[{B:"div",D:"ytp-suggestion-title",W7:"{{title}}"},{B:"div",D:"ytp-suggestion-author",W7:"{{author_and_views}}"},{B:"div",C:{"data-is-live":"{{is_live}}"},D:"ytp-suggestion-duration", W7:"{{duration}}"}]}]});g.W(Z,z);var K=z.Ru("ytp-suggestion-link");g.Dw(K,"transitionDelay",Q.MK/20+"s");Z.S.Z(K,"click",function(b){return function(q){var r=b.MK;if(Z.j){var D=Z.suggestionData[r],v=D.sessionData;Z.K&&Z.api.V("web_player_log_click_before_generating_ve_conversion_params")?(Z.api.logClick(Z.Y[r].element),r=D.qN(),D={},g.J2(Z.api,D),r=g.BK(r,D),g.sV(r,Z.api,q)):g.lr(q,Z.api,Z.K,v||void 0)&&Z.api.G2(D.videoId,v,D.playlistId)}else q.preventDefault(),document.activeElement.blur()}}(Q)); z.zf(Z.suggestions.element);Z.Y.push(z);Z.api.createServerVe(z.element,z)}}; mRf=function(Z){if(Z.api.N().V("web_player_log_click_before_generating_ve_conversion_params"))for(var Q=Math.floor(-Z.scrollPosition/(Z.W+8)),z=Math.min(Q+Z.columns,Z.suggestionData.length)-1;Q<=z;Q++)Z.api.logVisibility(Z.Y[Q].element,!0)}; g.ev=function(Z){var Q=Z.api.Us()?32:16;Q=Z.X/2+Q;Z.next.element.style.bottom=Q+"px";Z.previous.element.style.bottom=Q+"px";Q=Z.scrollPosition;var z=Z.containerWidth-Z.suggestionData.length*(Z.W+8);g.vC(Z.element,"ytp-scroll-min",Q>=0);g.vC(Z.element,"ytp-scroll-max",Q<=z)}; JD4=function(Z){for(var Q=Z.suggestionData.length,z=0;z<Q;++z){var K=void 0,b=void 0,q=void 0;K=Z;var r=K.api.N(),D=K.suggestionData[z],v=K.Y[z];q=K.api.isEmbedsShortsMode()?D.shortViewCount||"":D.shortViewCount?D.author+" \u2022 "+D.shortViewCount:D.author;v.element.style.display="";g.Dw(v.Ru("ytp-suggestion-link"),"display","inline-block");I$G.test(D.title)&&(v.Ru("ytp-suggestion-title").dir="rtl");I$G.test(q)&&(v.Ru("ytp-suggestion-author").dir="rtl");b=D.isLivePlayback?"Live":D.lengthSeconds? g.mM(D.lengthSeconds):"";var Y=D.qN(K.api.isEmbedsShortsMode());if(g.mj(r)&&!r.V("web_player_log_click_before_generating_ve_conversion_params")){var X={};g.br(K.api,"addEmbedsConversionTrackingParams",[X]);Y=g.BK(Y,X)}r.V("web_player_log_click_before_generating_ve_conversion_params")&&(r=(r=D.sessionData)&&r.itct)&&K.api.setTrackingParams(v.element,r);v.update({author_and_views:q,duration:b,link:Y,title:D.title,aria_label:D.ariaLabel||D.title,is_live:D.isLivePlayback,aria_hidden:!!D.ariaLabel,blink_rendering_hack:g.R3|| g.nn?"will-change: opacity":void 0});b=v.Ru("ytp-suggestion-image");K=K.api.isEmbedsShortsMode()?D.uI("hq2.jpg"):D.uI();b.style.backgroundImage=K?"url("+K+")":""}if(Q<16)for(;Q<16;++Q)g.Dw(Z.Y[Q].Ru("ytp-suggestion-link"),"display","none");g.ev(Z)}; s0f=[];DD=typeof Object.defineProperties=="function"?Object.defineProperty:function(Z,Q,z){if(Z==Array.prototype||Z==Object.prototype)return Z;Z[Q]=z.value;return Z}; g.An=Q09(this);gf("Symbol",function(Z){function Q(q){if(this instanceof Q)throw new TypeError("Symbol is not a constructor");return new z(K+(q||"")+"_"+b++,q)} function z(q,r){this.Y=q;DD(this,"description",{configurable:!0,writable:!0,value:r})} if(Z)return Z;z.prototype.toString=function(){return this.Y}; var K="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",b=0;return Q}); gf("Symbol.iterator",function(Z){if(Z)return Z;Z=Symbol("Symbol.iterator");for(var Q="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),z=0;z<Q.length;z++){var K=g.An[Q[z]];typeof K==="function"&&typeof K.prototype[Z]!="function"&&DD(K.prototype,Z,{configurable:!0,writable:!0,value:function(){return zMW(ZXd(this))}})}return Z}); var K9f=typeof Object.create=="function"?Object.create:function(Z){function Q(){} Q.prototype=Z;return new Q},yDX=function(){function Z(){function z(){} new z;Reflect.construct(z,[],function(){}); return new z instanceof z} if(typeof Reflect!="undefined"&&Reflect.construct){if(Z())return Reflect.construct;var Q=Reflect.construct;return function(z,K,b){z=Q(z,K);b&&Reflect.setPrototypeOf(z,b.prototype);return z}}return function(z,K,b){b===void 0&&(b=z); b=K9f(b.prototype||Object.prototype);return Function.prototype.apply.call(z,b,K)||b}}(),dRx; if(typeof Object.setPrototypeOf=="function")dRx=Object.setPrototypeOf;else{var NeW;a:{var Gc0={a:!0},iTu={};try{iTu.__proto__=Gc0;NeW=iTu.a;break a}catch(Z){}NeW=!1}dRx=NeW?function(Z,Q){Z.__proto__=Q;if(Z.__proto__!==Q)throw new TypeError(Z+" is not extensible");return Z}:null}var YW=dRx,a$r=typeof Object.assign=="function"?Object.assign:function(Z,Q){for(var z=1;z<arguments.length;z++){var K=arguments[z]; if(K)for(var b in K)S4(K,b)&&(Z[b]=K[b])}return Z}; gf("Object.assign",function(Z){return Z||a$r}); Tn.prototype.X=function(Z){this.j=Z}; Tn.prototype.return=function(Z){this.S={return:Z};this.Y=this.L}; Tn.prototype.O$=function(Z){this.Y=Z}; gf("globalThis",function(Z){return Z||g.An}); gf("Reflect",function(Z){return Z?Z:{}}); gf("Reflect.construct",function(){return yDX}); gf("Reflect.setPrototypeOf",function(Z){return Z?Z:YW?function(Q,z){try{return YW(Q,z),!0}catch(K){return!1}}:null}); gf("Promise",function(Z){function Q(r){this.Y=0;this.S=void 0;this.j=[];this.T=!1;var D=this.W();try{r(D.resolve,D.reject)}catch(v){D.reject(v)}} function z(){this.Y=null} function K(r){return r instanceof Q?r:new Q(function(D){D(r)})} if(Z)return Z;z.prototype.j=function(r){if(this.Y==null){this.Y=[];var D=this;this.S(function(){D.L()})}this.Y.push(r)}; var b=g.An.setTimeout;z.prototype.S=function(r){b(r,0)}; z.prototype.L=function(){for(;this.Y&&this.Y.length;){var r=this.Y;this.Y=[];for(var D=0;D<r.length;++D){var v=r[D];r[D]=null;try{v()}catch(Y){this.W(Y)}}}this.Y=null}; z.prototype.W=function(r){this.S(function(){throw r;})}; Q.prototype.W=function(){function r(Y){return function(X){v||(v=!0,Y.call(D,X))}} var D=this,v=!1;return{resolve:r(this.P7),reject:r(this.L)}}; Q.prototype.P7=function(r){if(r===this)this.L(new TypeError("A Promise cannot resolve to itself"));else if(r instanceof Q)this.KN(r);else{a:switch(typeof r){case "object":var D=r!=null;break a;case "function":D=!0;break a;default:D=!1}D?this.SJ(r):this.K(r)}}; Q.prototype.SJ=function(r){var D=void 0;try{D=r.then}catch(v){this.L(v);return}typeof D=="function"?this.c7(D,r):this.K(r)}; Q.prototype.L=function(r){this.X(2,r)}; Q.prototype.K=function(r){this.X(1,r)}; Q.prototype.X=function(r,D){if(this.Y!=0)throw Error("Cannot settle("+r+", "+D+"): Promise already settled in state"+this.Y);this.Y=r;this.S=D;this.Y===2&&this.JG();this.U()}; Q.prototype.JG=function(){var r=this;b(function(){if(r.jJ()){var D=g.An.console;typeof D!=="undefined"&&D.error(r.S)}},1)}; Q.prototype.jJ=function(){if(this.T)return!1;var r=g.An.CustomEvent,D=g.An.Event,v=g.An.dispatchEvent;if(typeof v==="undefined")return!0;typeof r==="function"?r=new r("unhandledrejection",{cancelable:!0}):typeof D==="function"?r=new D("unhandledrejection",{cancelable:!0}):(r=g.An.document.createEvent("CustomEvent"),r.initCustomEvent("unhandledrejection",!1,!0,r));r.promise=this;r.reason=this.S;return v(r)}; Q.prototype.U=function(){if(this.j!=null){for(var r=0;r<this.j.length;++r)q.j(this.j[r]);this.j=null}}; var q=new z;Q.prototype.KN=function(r){var D=this.W();r.C3(D.resolve,D.reject)}; Q.prototype.c7=function(r,D){var v=this.W();try{r.call(D,v.resolve,v.reject)}catch(Y){v.reject(Y)}}; Q.prototype.then=function(r,D){function v(T,f){return typeof T=="function"?function(h){try{Y(T(h))}catch(m){X(m)}}:f} var Y,X,S=new Q(function(T,f){Y=T;X=f}); this.C3(v(r,Y),v(D,X));return S}; Q.prototype.catch=function(r){return this.then(void 0,r)}; Q.prototype.C3=function(r,D){function v(){switch(Y.Y){case 1:r(Y.S);break;case 2:D(Y.S);break;default:throw Error("Unexpected state: "+Y.Y);}} var Y=this;this.j==null?q.j(v):this.j.push(v);this.T=!0}; Q.resolve=K;Q.reject=function(r){return new Q(function(D,v){v(r)})}; Q.race=function(r){return new Q(function(D,v){for(var Y=g.n(r),X=Y.next();!X.done;X=Y.next())K(X.value).C3(D,v)})}; Q.all=function(r){var D=g.n(r),v=D.next();return v.done?K([]):new Q(function(Y,X){function S(h){return function(m){T[h]=m;f--;f==0&&Y(T)}} var T=[],f=0;do T.push(void 0),f++,K(v.value).C3(S(T.length-1),X),v=D.next();while(!v.done)})}; return Q}); gf("Object.setPrototypeOf",function(Z){return Z||YW}); gf("Symbol.dispose",function(Z){return Z?Z:Symbol("Symbol.dispose")}); gf("SuppressedError",function(Z){function Q(z,K,b){if(!(this instanceof Q))return new Q(z,K,b);b=Error(b);"stack"in b&&(this.stack=b.stack);this.message=b.message;this.error=z;this.suppressed=K} if(Z)return Z;g.L(Q,Error);Q.prototype.name="SuppressedError";return Q}); gf("Array.prototype.find",function(Z){return Z?Z:function(Q,z){return XG4(this,Q,z).l2}}); gf("WeakMap",function(Z){function Q(v){this.Y=(D+=Math.random()+1).toString();if(v){v=g.n(v);for(var Y;!(Y=v.next()).done;)Y=Y.value,this.set(Y[0],Y[1])}} function z(){} function K(v){var Y=typeof v;return Y==="object"&&v!==null||Y==="function"} function b(v){if(!S4(v,r)){var Y=new z;DD(v,r,{value:Y})}} function q(v){var Y=Object[v];Y&&(Object[v]=function(X){if(X instanceof z)return X;Object.isExtensible(X)&&b(X);return Y(X)})} if(function(){if(!Z||!Object.seal)return!1;try{var v=Object.seal({}),Y=Object.seal({}),X=new Z([[v,2],[Y,3]]);if(X.get(v)!=2||X.get(Y)!=3)return!1;X.delete(v);X.set(Y,4);return!X.has(v)&&X.get(Y)==4}catch(S){return!1}}())return Z; var r="$jscomp_hidden_"+Math.random();q("freeze");q("preventExtensions");q("seal");var D=0;Q.prototype.set=function(v,Y){if(!K(v))throw Error("Invalid WeakMap key");b(v);if(!S4(v,r))throw Error("WeakMap key fail: "+v);v[r][this.Y]=Y;return this}; Q.prototype.get=function(v){return K(v)&&S4(v,r)?v[r][this.Y]:void 0}; Q.prototype.has=function(v){return K(v)&&S4(v,r)&&S4(v[r],this.Y)}; Q.prototype.delete=function(v){return K(v)&&S4(v,r)&&S4(v[r],this.Y)?delete v[r][this.Y]:!1}; return Q}); gf("Map",function(Z){function Q(){var D={};return D.previous=D.next=D.head=D} function z(D,v){var Y=D[1];return zMW(function(){if(Y){for(;Y.head!=D[1];)Y=Y.previous;for(;Y.next!=Y.head;)return Y=Y.next,{done:!1,value:v(Y)};Y=null}return{done:!0,value:void 0}})} function K(D,v){var Y=v&&typeof v;Y=="object"||Y=="function"?q.has(v)?Y=q.get(v):(Y=""+ ++r,q.set(v,Y)):Y="p_"+v;var X=D[0][Y];if(X&&S4(D[0],Y))for(D=0;D<X.length;D++){var S=X[D];if(v!==v&&S.key!==S.key||v===S.key)return{id:Y,list:X,index:D,entry:S}}return{id:Y,list:X,index:-1,entry:void 0}} function b(D){this[0]={};this[1]=Q();this.size=0;if(D){D=g.n(D);for(var v;!(v=D.next()).done;)v=v.value,this.set(v[0],v[1])}} if(function(){if(!Z||typeof Z!="function"||!Z.prototype.entries||typeof Object.seal!="function")return!1;try{var D=Object.seal({x:4}),v=new Z(g.n([[D,"s"]]));if(v.get(D)!="s"||v.size!=1||v.get({x:4})||v.set({x:4},"t")!=v||v.size!=2)return!1;var Y=v.entries(),X=Y.next();if(X.done||X.value[0]!=D||X.value[1]!="s")return!1;X=Y.next();return X.done||X.value[0].x!=4||X.value[1]!="t"||!Y.next().done?!1:!0}catch(S){return!1}}())return Z; var q=new WeakMap;b.prototype.set=function(D,v){D=D===0?0:D;var Y=K(this,D);Y.list||(Y.list=this[0][Y.id]=[]);Y.entry?Y.entry.value=v:(Y.entry={next:this[1],previous:this[1].previous,head:this[1],key:D,value:v},Y.list.push(Y.entry),this[1].previous.next=Y.entry,this[1].previous=Y.entry,this.size++);return this}; b.prototype.delete=function(D){D=K(this,D);return D.entry&&D.list?(D.list.splice(D.index,1),D.list.length||delete this[0][D.id],D.entry.previous.next=D.entry.next,D.entry.next.previous=D.entry.previous,D.entry.head=null,this.size--,!0):!1}; b.prototype.clear=function(){this[0]={};this[1]=this[1].previous=Q();this.size=0}; b.prototype.has=function(D){return!!K(this,D).entry}; b.prototype.get=function(D){return(D=K(this,D).entry)&&D.value}; b.prototype.entries=function(){return z(this,function(D){return[D.key,D.value]})}; b.prototype.keys=function(){return z(this,function(D){return D.key})}; b.prototype.values=function(){return z(this,function(D){return D.value})}; b.prototype.forEach=function(D,v){for(var Y=this.entries(),X;!(X=Y.next()).done;)X=X.value,D.call(v,X[1],X[0],this)}; b.prototype[Symbol.iterator]=b.prototype.entries;var r=0;return b}); gf("Set",function(Z){function Q(z){this.Y=new Map;if(z){z=g.n(z);for(var K;!(K=z.next()).done;)this.add(K.value)}this.size=this.Y.size} if(function(){if(!Z||typeof Z!="function"||!Z.prototype.entries||typeof Object.seal!="function")return!1;try{var z=Object.seal({x:4}),K=new Z(g.n([z]));if(!K.has(z)||K.size!=1||K.add(z)!=K||K.size!=1||K.add({x:4})!=K||K.size!=2)return!1;var b=K.entries(),q=b.next();if(q.done||q.value[0]!=z||q.value[1]!=z)return!1;q=b.next();return q.done||q.value[0]==z||q.value[0].x!=4||q.value[1]!=q.value[0]?!1:b.next().done}catch(r){return!1}}())return Z; Q.prototype.add=function(z){z=z===0?0:z;this.Y.set(z,z);this.size=this.Y.size;return this}; Q.prototype.delete=function(z){z=this.Y.delete(z);this.size=this.Y.size;return z}; Q.prototype.clear=function(){this.Y.clear();this.size=0}; Q.prototype.has=function(z){return this.Y.has(z)}; Q.prototype.entries=function(){return this.Y.entries()}; Q.prototype.values=function(){return this.Y.values()}; Q.prototype.keys=Q.prototype.values;Q.prototype[Symbol.iterator]=Q.prototype.values;Q.prototype.forEach=function(z,K){var b=this;this.Y.forEach(function(q){return z.call(K,q,q,b)})}; return Q}); gf("Math.log2",function(Z){return Z?Z:function(Q){return Math.log(Q)/Math.LN2}}); gf("Object.values",function(Z){return Z?Z:function(Q){var z=[],K;for(K in Q)S4(Q,K)&&z.push(Q[K]);return z}}); gf("Object.is",function(Z){return Z?Z:function(Q,z){return Q===z?Q!==0||1/Q===1/z:Q!==Q&&z!==z}}); gf("Array.prototype.includes",function(Z){return Z?Z:function(Q,z){var K=this;K instanceof String&&(K=String(K));var b=K.length;z=z||0;for(z<0&&(z=Math.max(z+b,0));z<b;z++){var q=K[z];if(q===Q||Object.is(q,Q))return!0}return!1}}); gf("String.prototype.includes",function(Z){return Z?Z:function(Q,z){return PG(this,Q,"includes").indexOf(Q,z||0)!==-1}}); gf("Array.from",function(Z){return Z?Z:function(Q,z,K){z=z!=null?z:function(D){return D}; var b=[],q=typeof Symbol!="undefined"&&Symbol.iterator&&Q[Symbol.iterator];if(typeof q=="function"){Q=q.call(Q);for(var r=0;!(q=Q.next()).done;)b.push(z.call(K,q.value,r++))}else for(q=Q.length,r=0;r<q;r++)b.push(z.call(K,Q[r],r));return b}}); gf("Object.entries",function(Z){return Z?Z:function(Q){var z=[],K;for(K in Q)S4(Q,K)&&z.push([K,Q[K]]);return z}}); gf("Number.isFinite",function(Z){return Z?Z:function(Q){return typeof Q!=="number"?!1:!isNaN(Q)&&Q!==Infinity&&Q!==-Infinity}}); gf("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991}); gf("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991}); gf("Number.isInteger",function(Z){return Z?Z:function(Q){return Number.isFinite(Q)?Q===Math.floor(Q):!1}}); gf("Number.isSafeInteger",function(Z){return Z?Z:function(Q){return Number.isInteger(Q)&&Math.abs(Q)<=Number.MAX_SAFE_INTEGER}}); gf("String.prototype.startsWith",function(Z){return Z?Z:function(Q,z){var K=PG(this,Q,"startsWith");Q+="";var b=K.length,q=Q.length;z=Math.max(0,Math.min(z|0,K.length));for(var r=0;r<q&&z<b;)if(K[z++]!=Q[r++])return!1;return r>=q}}); gf("String.prototype.endsWith",function(Z){return Z?Z:function(Q,z){var K=PG(this,Q,"endsWith");Q+="";z===void 0&&(z=K.length);z=Math.max(0,Math.min(z|0,K.length));for(var b=Q.length;b>0&&z>0;)if(K[--z]!=Q[--b])return!1;return b<=0}}); gf("Array.prototype.entries",function(Z){return Z?Z:function(){return R0(this,function(Q,z){return[Q,z]})}}); gf("Math.imul",function(Z){return Z?Z:function(Q,z){Q=Number(Q);z=Number(z);var K=Q&65535,b=z&65535;return K*b+((Q>>>16&65535)*b+K*(z>>>16&65535)<<16>>>0)|0}}); gf("Math.trunc",function(Z){return Z?Z:function(Q){Q=Number(Q);if(isNaN(Q)||Q===Infinity||Q===-Infinity||Q===0)return Q;var z=Math.floor(Math.abs(Q));return Q<0?-z:z}}); gf("Math.clz32",function(Z){return Z?Z:function(Q){Q=Number(Q)>>>0;if(Q===0)return 32;var z=0;(Q&4294901760)===0&&(Q<<=16,z+=16);(Q&4278190080)===0&&(Q<<=8,z+=8);(Q&4026531840)===0&&(Q<<=4,z+=4);(Q&3221225472)===0&&(Q<<=2,z+=2);(Q&2147483648)===0&&z++;return z}}); gf("Math.log10",function(Z){return Z?Z:function(Q){return Math.log(Q)/Math.LN10}}); gf("Number.isNaN",function(Z){return Z?Z:function(Q){return typeof Q==="number"&&isNaN(Q)}}); gf("Array.prototype.keys",function(Z){return Z?Z:function(){return R0(this,function(Q){return Q})}}); gf("Array.prototype.values",function(Z){return Z?Z:function(){return R0(this,function(Q,z){return z})}}); gf("Array.prototype.fill",function(Z){return Z?Z:function(Q,z,K){var b=this.length||0;z<0&&(z=Math.max(0,b+z));if(K==null||K>b)K=b;K=Number(K);K<0&&(K=Math.max(0,b+K));for(z=Number(z||0);z<K;z++)this[z]=Q;return this}}); gf("Int8Array.prototype.fill",CX);gf("Uint8Array.prototype.fill",CX);gf("Uint8ClampedArray.prototype.fill",CX);gf("Int16Array.prototype.fill",CX);gf("Uint16Array.prototype.fill",CX);gf("Int32Array.prototype.fill",CX);gf("Uint32Array.prototype.fill",CX);gf("Float32Array.prototype.fill",CX);gf("Float64Array.prototype.fill",CX); gf("Object.fromEntries",function(Z){return Z?Z:function(Q){var z={};if(!(Symbol.iterator in Q))throw new TypeError(""+Q+" is not iterable");Q=Q[Symbol.iterator].call(Q);for(var K=Q.next();!K.done;K=Q.next()){K=K.value;if(Object(K)!==K)throw new TypeError("iterable for fromEntries should yield objects");z[K[0]]=K[1]}return z}}); gf("String.prototype.replaceAll",function(Z){return Z?Z:function(Q,z){if(Q instanceof RegExp&&!Q.global)throw new TypeError("String.prototype.replaceAll called with a non-global RegExp argument.");return Q instanceof RegExp?this.replace(Q,z):this.replace(new RegExp(String(Q).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),z)}}); gf("String.prototype.repeat",function(Z){return Z?Z:function(Q){var z=PG(this,null,"repeat");if(Q<0||Q>1342177279)throw new RangeError("Invalid count value");Q|=0;for(var K="";Q;)if(Q&1&&(K+=z),Q>>>=1)z+=z;return K}}); gf("Promise.prototype.finally",function(Z){return Z?Z:function(Q){return this.then(function(z){return Promise.resolve(Q()).then(function(){return z})},function(z){return Promise.resolve(Q()).then(function(){throw z; })})}}); gf("String.prototype.padStart",function(Z){return Z?Z:function(Q,z){var K=PG(this,null,"padStart");Q-=K.length;z=z!==void 0?String(z):" ";return(Q>0&&z?z.repeat(Math.ceil(Q/z.length)).substring(0,Q):"")+K}}); gf("Array.prototype.findIndex",function(Z){return Z?Z:function(Q,z){return XG4(this,Q,z).Df}}); gf("Math.sign",function(Z){return Z?Z:function(Q){Q=Number(Q);return Q===0||isNaN(Q)?Q:Q>0?1:-1}}); gf("WeakSet",function(Z){function Q(z){this.Y=new WeakMap;if(z){z=g.n(z);for(var K;!(K=z.next()).done;)this.add(K.value)}} if(function(){if(!Z||!Object.seal)return!1;try{var z=Object.seal({}),K=Object.seal({}),b=new Z([z]);if(!b.has(z)||b.has(K))return!1;b.delete(z);b.add(K);return!b.has(z)&&b.has(K)}catch(q){return!1}}())return Z; Q.prototype.add=function(z){this.Y.set(z,!0);return this}; Q.prototype.has=function(z){return this.Y.has(z)}; Q.prototype.delete=function(z){return this.Y.delete(z)}; return Q}); gf("Array.prototype.copyWithin",function(Z){function Q(z){z=Number(z);return z===Infinity||z===-Infinity?z:z|0} return Z?Z:function(z,K,b){var q=this.length;z=Q(z);K=Q(K);b=b===void 0?q:Q(b);z=z<0?Math.max(q+z,0):Math.min(z,q);K=K<0?Math.max(q+K,0):Math.min(K,q);b=b<0?Math.max(q+b,0):Math.min(b,q);if(z<K)for(;K<b;)K in this?this[z++]=this[K++]:(delete this[z++],K++);else for(b=Math.min(b,q+K-z),z+=b-K;b>K;)--b in this?this[--z]=this[b]:delete this[--z];return this}}); gf("Int8Array.prototype.copyWithin",pX);gf("Uint8Array.prototype.copyWithin",pX);gf("Uint8ClampedArray.prototype.copyWithin",pX);gf("Int16Array.prototype.copyWithin",pX);gf("Uint16Array.prototype.copyWithin",pX);gf("Int32Array.prototype.copyWithin",pX);gf("Uint32Array.prototype.copyWithin",pX);gf("Float32Array.prototype.copyWithin",pX);gf("Float64Array.prototype.copyWithin",pX);gf("Array.prototype.at",function(Z){return Z?Z:HG}); gf("Int8Array.prototype.at",Mr);gf("Uint8Array.prototype.at",Mr);gf("Uint8ClampedArray.prototype.at",Mr);gf("Int16Array.prototype.at",Mr);gf("Uint16Array.prototype.at",Mr);gf("Int32Array.prototype.at",Mr);gf("Uint32Array.prototype.at",Mr);gf("Float32Array.prototype.at",Mr);gf("Float64Array.prototype.at",Mr);gf("String.prototype.at",function(Z){return Z?Z:HG}); gf("Array.prototype.findLastIndex",function(Z){return Z?Z:function(Q,z){return SGD(this,Q,z).Df}}); gf("Int8Array.prototype.findLastIndex",UG);gf("Uint8Array.prototype.findLastIndex",UG);gf("Uint8ClampedArray.prototype.findLastIndex",UG);gf("Int16Array.prototype.findLastIndex",UG);gf("Uint16Array.prototype.findLastIndex",UG);gf("Int32Array.prototype.findLastIndex",UG);gf("Uint32Array.prototype.findLastIndex",UG);gf("Float32Array.prototype.findLastIndex",UG);gf("Float64Array.prototype.findLastIndex",UG);gf("Number.parseInt",function(Z){return Z||parseInt});var te,Fd,$rM;te=te||{};g.OG=this||self;Fd="closure_uid_"+(Math.random()*1E9>>>0);$rM=0;g.L(bU,Error);g.O.prototype.o0=!1;g.O.prototype.FI=function(){return this.o0}; g.O.prototype.dispose=function(){this.o0||(this.o0=!0,this.gr())}; g.O.prototype[Symbol.dispose]=function(){this.dispose()}; g.O.prototype.addOnDisposeCallback=function(Z,Q){this.o0?Q!==void 0?Z.call(Q):Z():(this.WS||(this.WS=[]),Q&&(Z=Z.bind(Q)),this.WS.push(Z))}; g.O.prototype.gr=function(){if(this.WS)for(;this.WS.length;)this.WS.shift()()};var cnW;g.L(Xm,g.O);Xm.prototype.share=function(){if(this.FI())throw Error("E:AD");this.W++;return this}; Xm.prototype.dispose=function(){--this.W||g.O.prototype.dispose.call(this)}; cnW=Symbol.dispose;mrx.prototype.PP=function(Z,Q){this.Y.PP("/client_streamz/bg/frs",Z,Q)}; IDd.prototype.PP=function(Z,Q,z,K,b,q){this.Y.PP("/client_streamz/bg/wrl",Z,Q,z,K,b,q)}; Jn9.prototype.Y=function(Z,Q){this.j.n$("/client_streamz/bg/ec",Z,Q)}; ynf.prototype.PP=function(Z,Q,z,K){this.Y.PP("/client_streamz/bg/el",Z,Q,z,K)}; drM.prototype.Y=function(Z,Q,z){this.j.n$("/client_streamz/bg/cec",Z,Q,z)}; Nfn.prototype.Y=function(Z,Q,z){this.j.n$("/client_streamz/bg/po/csc",Z,Q,z)}; GnG.prototype.Y=function(Z,Q,z){this.j.n$("/client_streamz/bg/po/ctav",Z,Q,z)}; iX9.prototype.Y=function(Z,Q,z){this.j.n$("/client_streamz/bg/po/cwsc",Z,Q,z)};g.ZH(fz,Error);fz.prototype.name="CustomError";var s54;var pu=void 0,Cu,iGx=typeof TextDecoder!=="undefined",pGD,CuG=typeof String.prototype.isWellFormed==="function",RMn=typeof TextEncoder!=="undefined";var dX=String.prototype.trim?function(Z){return Z.trim()}:function(Z){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(Z)[1]},d_M=/&/g,ND9=/</g,GdG=/>/g,i9u=/"/g,a2W=/'/g,PpD=/\x00/g,y6G=/[\x00&<>"']/;var PEX=Vx(1,!0),aE=Vx(610401301,!1);Vx(899588437,!1);var R6u=Vx(725719775,!1);Vx(651175828,!1);Vx(722764542,!1);Vx(2147483644,!1);Vx(2147483645,!1);Vx(2147483646,PEX);Vx(2147483647,!0);var Pn=!!g.WG("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var RE,CEM=g.OG.navigator;RE=CEM?CEM.userAgentData||null:null;var eMf,J$,ih;eMf=Array.prototype.indexOf?function(Z,Q){return Array.prototype.indexOf.call(Z,Q,void 0)}:function(Z,Q){if(typeof Z==="string")return typeof Q!=="string"||Q.length!=1?-1:Z.indexOf(Q,0); for(var z=0;z<Z.length;z++)if(z in Z&&Z[z]===Q)return z;return-1}; g.pYG=Array.prototype.lastIndexOf?function(Z,Q){return Array.prototype.lastIndexOf.call(Z,Q,Z.length-1)}:function(Z,Q){var z=Z.length-1; z<0&&(z=Math.max(0,Z.length+z));if(typeof Z==="string")return typeof Q!=="string"||Q.length!=1?-1:Z.lastIndexOf(Q,z);for(;z>=0;z--)if(z in Z&&Z[z]===Q)return z;return-1}; g.SB=Array.prototype.forEach?function(Z,Q,z){Array.prototype.forEach.call(Z,Q,z)}:function(Z,Q,z){for(var K=Z.length,b=typeof Z==="string"?Z.split(""):Z,q=0;q<K;q++)q in b&&Q.call(z,b[q],q,Z)}; g.jr=Array.prototype.filter?function(Z,Q,z){return Array.prototype.filter.call(Z,Q,z)}:function(Z,Q,z){for(var K=Z.length,b=[],q=0,r=typeof Z==="string"?Z.split(""):Z,D=0;D<K;D++)if(D in r){var v=r[D]; Q.call(z,v,D,Z)&&(b[q++]=v)}return b}; g.my=Array.prototype.map?function(Z,Q,z){return Array.prototype.map.call(Z,Q,z)}:function(Z,Q,z){for(var K=Z.length,b=Array(K),q=typeof Z==="string"?Z.split(""):Z,r=0;r<K;r++)r in q&&(b[r]=Q.call(z,q[r],r,Z)); return b}; J$=Array.prototype.reduce?function(Z,Q,z){return Array.prototype.reduce.call(Z,Q,z)}:function(Z,Q,z){var K=z; (0,g.SB)(Z,function(b,q){K=Q.call(void 0,K,b,q,Z)}); return K}; ih=Array.prototype.some?function(Z,Q){return Array.prototype.some.call(Z,Q,void 0)}:function(Z,Q){for(var z=Z.length,K=typeof Z==="string"?Z.split(""):Z,b=0;b<z;b++)if(b in K&&Q.call(void 0,K[b],b,Z))return!0; return!1}; g.It=Array.prototype.every?function(Z,Q,z){return Array.prototype.every.call(Z,Q,z)}:function(Z,Q,z){for(var K=Z.length,b=typeof Z==="string"?Z.split(""):Z,q=0;q<K;q++)if(q in b&&!Q.call(z,b[q],q,Z))return!1; return!0};Tw[" "]=function(){};var v$,tZ,Ra9,HTG,MSM,URG,Ln,e2,OTn;g.nn=MY();g.Sn=oWW();g.Fc=pz("Edge");g.tC=g.Fc||g.Sn;v$=pz("Gecko")&&!(yz(g.iU(),"WebKit")&&!pz("Edge"))&&!(pz("Trident")||pz("MSIE"))&&!pz("Edge");g.Fv=yz(g.iU(),"WebKit")&&!pz("Edge");tZ=uU();Ra9=t4M();g.lV=xrX();HTG=Vz();MSM=pz("iPad");URG=pz("iPod");Ln=k$();e2=yz(g.iU(),"KaiOS"); a:{var ouW="",Be9=function(){var Z=g.iU();if(v$)return/rv:([^\);]+)(\)|;)/.exec(Z);if(g.Fc)return/Edge\/([\d\.]+)/.exec(Z);if(g.Sn)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(Z);if(g.Fv)return/WebKit\/(\S+)/.exec(Z);if(g.nn)return/(?:Version)[ \/]?(\S+)/.exec(Z)}(); Be9&&(ouW=Be9?Be9[1]:"");if(g.Sn){var wS,WkX=g.OG.document;wS=WkX?WkX.documentMode:void 0;if(wS!=null&&wS>parseFloat(ouW)){OTn=String(wS);break a}}OTn=ouW}var AoX=OTn,qQx={};var eL,wp;g.pD=OQ();eL=Vz()||pz("iPod");wp=pz("iPad");g.cZ=W9G();g.R3=oE();g.Lc=Bn()&&!k$();var DYf={},cD=null,v$d=v$||g.Fv||typeof g.OG.btoa=="function";var LwG=typeof Uint8Array!=="undefined",Xn0=!g.Sn&&typeof btoa==="function",fHn=/[-_.]/g,$Yx={"-":"+",_:"/",".":"="},Jj={};Ic.prototype.isEmpty=function(){return this.Y==null}; Ic.prototype.sizeBytes=function(){var Z=dl(this);return Z?Z.length:0}; var coG;var IHn=void 0;var PD=typeof Symbol==="function"&&typeof Symbol()==="symbol",VSd=ac("jas",void 0,!0),Ku=ac(void 0,"1oa"),kn=ac(void 0,Symbol()),SmM=ac(void 0,"0actk"),Fw4=ac(void 0,"8utk");Math.max.apply(Math,g.I(Object.values({tQG:1,vSN:2,rL$:4,zkJ:8,K3J:16,dEh:32,kug:64,GQf:128,eZN:256,Mcu:512,uBG:1024,niN:2048,DwJ:4096,cug:8192,aHJ:16384})));var Rc=PD?VSd:"kf$",yoX={kf$:{value:0,configurable:!0,writable:!0,enumerable:!1}},JoD=Object.defineProperties;var ye={},t6,kcd=[];pG(kcd,55);t6=Object.freeze(kcd);var LUf=Object.freeze({});var iz9=tj(function(Z){return typeof Z==="number"}),GJr=tj(function(Z){return typeof Z==="string"}),aH4=tj(function(Z){return typeof Z==="boolean"}),bJ=tj(function(Z){return Z!=null&&typeof Z==="object"&&typeof Z.then==="function"}),KY=tj(function(Z){return!!Z&&(typeof Z==="object"||typeof Z==="function")});var F7=typeof g.OG.BigInt==="function"&&typeof g.OG.BigInt(0)==="bigint";var cL=tj(function(Z){return F7?Z>=uLW&&Z<=xR9:Z[0]==="-"?PUn(Z,tSW):PUn(Z,Fkx)}),tSW=Number.MIN_SAFE_INTEGER.toString(),uLW=F7?BigInt(Number.MIN_SAFE_INTEGER):void 0,Fkx=Number.MAX_SAFE_INTEGER.toString(),xR9=F7?BigInt(Number.MAX_SAFE_INTEGER):void 0;var yjx=typeof Uint8Array.prototype.slice==="function",wl=0,lB=0,sIM;var $K=typeof BigInt==="function"?BigInt.asIntN:void 0,xYn=typeof BigInt==="function"?BigInt.asUintN:void 0,h6=Number.isSafeInteger,jx=Number.isFinite,f9=Math.trunc,MRX=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var Gd;var PL,gnG;g.A=IIn.prototype;g.A.init=function(Z,Q,z,K){K=K===void 0?{}:K;this.T$=K.T$===void 0?!1:K.T$;Z&&(Z=c_(Z),this.j=Z.buffer,this.L=Z.VH,this.W=Q||0,this.S=z!==void 0?this.W+z:this.j.length,this.Y=this.W)}; g.A.free=function(){this.clear();ii.length<100&&ii.push(this)}; g.A.clear=function(){this.j=null;this.L=!1;this.Y=this.S=this.W=0;this.T$=!1}; g.A.reset=function(){this.Y=this.W}; g.A.Vk=function(){var Z=this.K;Z||(Z=this.j,Z=this.K=new DataView(Z.buffer,Z.byteOffset,Z.byteLength));return Z}; var ii=[];a5.prototype.free=function(){this.Y.clear();this.j=this.W=-1;ER.length<100&&ER.push(this)}; a5.prototype.reset=function(){this.Y.reset();this.S=this.Y.Y;this.j=this.W=-1}; var ER=[];g.A=Mq.prototype;g.A.toJSON=function(){return ip(this)}; g.A.pZ=function(Z){return JSON.stringify(ip(this,Z))}; g.A.clone=function(){var Z=this.P4;return new this.constructor(p9(Z,Z[Rc]|0,!1))}; g.A.VH=function(){return!!((this.P4[Rc]|0)&2)}; g.A.Od=ye;g.A.toString=function(){return this.P4.toString()};var RJ0,pDx;o5.prototype.length=function(){return this.Y.length}; o5.prototype.end=function(){var Z=this.Y;this.Y=[];return Z};var F6=tr(),e6r=tr(),wYG=tr(),EuX=tr(),l$4=tr(),s0X=tr(),ZXm=tr(),Q0w=tr();var kwG=wb(function(Z,Q,z,K,b){if(Z.j!==2)return!1;R5(Z,bi(Q,K,z),b);return!0},VBx),u7X=wb(function(Z,Q,z,K,b){if(Z.j!==2)return!1; R5(Z,bi(Q,K,z),b);return!0},VBx),q0=Symbol(),QR=Symbol(),tBf=Symbol(),wDr=Symbol(),Eb,li;var zM$=j6(function(Z,Q,z){if(Z.j!==1)return!1;vB(Q,z,Nq(Z.Y));return!0},gW,ZXm),K9X=j6(function(Z,Q,z){if(Z.j!==1)return!1; Z=Nq(Z.Y);vB(Q,z,Z===0?void 0:Z);return!0},gW,ZXm),bXz=j6(function(Z,Q,z,K){if(Z.j!==1)return!1; QL(Q,z,K,Nq(Z.Y));return!0},gW,ZXm),qGR=j6(function(Z,Q,z){if(Z.j!==0)return!1; vB(Q,z,I5(Z.Y));return!0},YM,l$4),rnQ=j6(function(Z,Q,z){if(Z.j!==0)return!1; Z=I5(Z.Y);vB(Q,z,Z===0?void 0:Z);return!0},YM,l$4),Anz=j6(function(Z,Q,z,K){if(Z.j!==0)return!1; QL(Q,z,K,I5(Z.Y));return!0},YM,l$4),j0U=j6(function(Z,Q,z){if(Z.j!==0)return!1; vB(Q,z,Jr(Z.Y));return!0},X5,EuX),Drn=j6(function(Z,Q,z){if(Z.j!==0)return!1; Z=Jr(Z.Y);vB(Q,z,Z===0?void 0:Z);return!0},X5,EuX),vWH=j6(function(Z,Q,z,K){if(Z.j!==0)return!1; QL(Q,z,K,Jr(Z.Y));return!0},X5,EuX),gWz=j6(function(Z,Q,z){if(Z.j!==1)return!1; vB(Q,z,db(Z.Y));return!0},function(Z,Q,z){BlD(Z,z,tRn(Q))},s0X),YG$=Dg(function(Z,Q,z){if(Z.j!==1&&Z.j!==2)return!1; Q=wD(Q,Q[Rc]|0,z,!1);if(Z.j==2)for(z=Jr(Z.Y)>>>0,z=Z.Y.Y+z;Z.Y.Y<z;)Q.push(db(Z.Y));else Q.push(db(Z.Y));return!0},function(Z,Q,z){Q=A5(tRn,Q,!1); if(Q!=null)for(var K=0;K<Q.length;K++)BlD(Z,z,Q[K])},s0X),XGR=j6(function(Z,Q,z){if(Z.j!==0)return!1; vB(Q,z,Gk(Z.Y));return!0},Z99,e6r),SGH=j6(function(Z,Q,z,K){if(Z.j!==0)return!1; QL(Q,z,K,Gk(Z.Y));return!0},Z99,e6r),ly=j6(function(Z,Q,z){if(Z.j!==2)return!1; vB(Q,z,H_(Z));return!0},QI9,wYG),$r0=Dg(function(Z,Q,z){if(Z.j!==2)return!1; Z=H_(Z);wD(Q,Q[Rc]|0,z,!1).push(Z);return!0},function(Z,Q,z){Q=A5(II,Q,!0); if(Q!=null)for(var K=0;K<Q.length;K++){var b=Z,q=z,r=Q[K];r!=null&&x_(b,q,HXW(r))}},wYG),TfE=j6(function(Z,Q,z,K){if(Z.j!==2)return!1; QL(Q,z,K,H_(Z));return!0},QI9,wYG),sF,ZZ=void 0; ZZ=ZZ===void 0?F6:ZZ;sF=new ep(function(Z,Q,z,K,b){if(Z.j!==2)return!1;K=C9(void 0,K,!0);wD(Q,Q[Rc]|0,z,!0).push(K);R5(Z,K,b);return!0},function(Z,Q,z,K,b){if(Array.isArray(Q))for(var q=0;q<Q.length;q++)zUd(Z,Q[q],z,K,b)},ZZ); var Qj=wb(function(Z,Q,z,K,b,q){if(Z.j!==2)return!1;sb(Q,Q[Rc]|0,q,z);Q=bi(Q,K,z);R5(Z,Q,b);return!0},zUd),fDQ=j6(function(Z,Q,z){if(Z.j!==2)return!1; vB(Q,z,aIG(Z));return!0},function(Z,Q,z){Q=e00(Q); Q!=null&&x_(Z,z,c_(Q).buffer)},Q0w),hMY=Dg(function(Z,Q,z){if(Z.j!==2)return!1; Z=aIG(Z);wD(Q,Q[Rc]|0,z,!1).push(Z);return!0},function(Z,Q,z){Q=A5(e00,Q,!1); if(Q!=null)for(var K=0;K<Q.length;K++){var b=Z,q=z,r=Q[K];r!=null&&x_(b,q,c_(r).buffer)}},Q0w),zj=j6(function(Z,Q,z){if(Z.j!==0)return!1; vB(Q,z,Jr(Z.Y)>>>0);return!0},function(Z,Q,z){Q=XG(Q); Q!=null&&Q!=null&&(ui(Z,z,0),W_(Z.Y,Q))},tr()),L9U=j6(function(Z,Q,z){if(Z.j!==0)return!1; vB(Q,z,Jr(Z.Y));return!0},function(Z,Q,z){Q=gD(Q); Q!=null&&(Q=parseInt(Q,10),ui(Z,z,0),MBG(Z.Y,Q))},tr());g.L(b9W,Mq);g.L($M,Mq);var nt=[1,2,3];var nW$=[0,nt,TfE,vWH,SGH];var cn$=[0,sF,[0,zM$,qGR]];g.L(T$,Mq);var Lt=[1,2,3];var mrz=[0,Lt,Anz,bXz,Qj,cn$];g.L(ft,Mq);var IDm=[0,sF,nW$,mrz];var Jnw=[0,[1,2,3],Qj,[0,ly,-1,XGR],Qj,[0,ly,-1,j0U,XGR],Qj,[0,ly]];g.L(h5,Mq);h5.prototype.PM=function(){var Z=xK(this,3,II,3,!0);VM(Z);return Z[void 0]};h5.prototype.Y=KEd([0,ly,Jnw,$r0,sF,IDm,gWz,YG$]);g.L(r6G,Mq);var $_M=globalThis.trustedTypes,cB;Iu.prototype.toString=function(){return this.Y+""};dW.prototype.toString=function(){return this.Y}; var hUr=new dW("about:invalid#zClosurez");var x$G=iS("tel"),k_n=iS("sms"),f2x=[iS("data"),iS("http"),iS("https"),iS("mailto"),iS("ftp"),new G$(function(Z){return/^[^:]*([/?#]|$)/.test(Z)})],LEf=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;Ct.prototype.toString=function(){return this.Y+""};O3.prototype.toString=function(){return this.Y+""};VR.prototype.toString=function(){return this.Y};var uS={};g.ynX=String.prototype.repeat?function(Z,Q){return Z.repeat(Q)}:function(Z,Q){return Array(Q+1).join(Z)};g.A=ZM.prototype;g.A.isEnabled=function(){if(!g.OG.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{MQ:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.A.set=function(Z,Q,z){var K=!1;if(typeof z==="object"){var b=z.nJG;K=z.secure||!1;var q=z.domain||void 0;var r=z.path||void 0;var D=z.MQ}if(/[;=\s]/.test(Z))throw Error('Invalid cookie name "'+Z+'"');if(/[;\r\n]/.test(Q))throw Error('Invalid cookie value "'+Q+'"');D===void 0&&(D=-1);z=q?";domain="+q:"";r=r?";path="+r:"";K=K?";secure":"";D=D<0?"":D==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+D*1E3)).toUTCString();this.Y.cookie=Z+"="+Q+z+r+D+K+(b!=null?";samesite="+ b:"")}; g.A.get=function(Z,Q){for(var z=Z+"=",K=(this.Y.cookie||"").split(";"),b=0,q;b<K.length;b++){q=dX(K[b]);if(q.lastIndexOf(z,0)==0)return q.slice(z.length);if(q==Z)return""}return Q}; g.A.remove=function(Z,Q,z){var K=this.get(Z)!==void 0;this.set(Z,"",{MQ:0,path:Q,domain:z});return K}; g.A.jS=function(){return QE(this).keys}; g.A.hg=function(){return QE(this).values}; g.A.isEmpty=function(){return!this.Y.cookie}; g.A.clear=function(){for(var Z=QE(this).keys,Q=Z.length-1;Q>=0;Q--)this.remove(Z[Q])}; var pA=new ZM(typeof document=="undefined"?null:document);zF.prototype.compress=function(Z){var Q,z,K,b;return g.C(function(q){switch(q.Y){case 1:return Q=new CompressionStream("gzip"),z=(new Response(Q.readable)).arrayBuffer(),K=Q.writable.getWriter(),g.P(q,K.write((new TextEncoder).encode(Z)),2);case 2:return g.P(q,K.close(),3);case 3:return b=Uint8Array,g.P(q,z,4);case 4:return q.return(new b(q.j))}})}; zF.prototype.isSupported=function(Z){return Z<1024?!1:typeof CompressionStream!=="undefined"};g.L(Kx,Mq);bY.prototype.setInterval=function(Z){this.intervalMs=Z;this.IC&&this.enabled?(this.stop(),this.start()):this.IC&&this.stop()}; bY.prototype.start=function(){var Z=this;this.enabled=!0;this.IC||(this.IC=setTimeout(function(){Z.tick()},this.intervalMs),this.j=this.Y())}; bY.prototype.stop=function(){this.enabled=!1;this.IC&&(clearTimeout(this.IC),this.IC=void 0)}; bY.prototype.tick=function(){var Z=this;if(this.enabled){var Q=Math.max(this.Y()-this.j,0);Q<this.intervalMs*.8?this.IC=setTimeout(function(){Z.tick()},this.intervalMs-Q):(this.IC&&(clearTimeout(this.IC),this.IC=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.IC=void 0};g.L(qe,Mq);g.L(rg,Mq);g.A=g.Yv.prototype;g.A.clone=function(){return new g.Yv(this.x,this.y)}; g.A.Tg=function(Z){return Z instanceof g.Yv&&Xv(this,Z)}; g.A.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; g.A.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; g.A.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; g.A.scale=function(Z,Q){this.x*=Z;this.y*=typeof Q==="number"?Q:Z;return this};g.A=g.SO.prototype;g.A.clone=function(){return new g.SO(this.width,this.height)}; g.A.aspectRatio=function(){return this.width/this.height}; g.A.isEmpty=function(){return!TF(this)}; g.A.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.A.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.A.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.A.scale=function(Z,Q){this.width*=Z;this.height*=typeof Q==="number"?Q:Z;return this};var kd4="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");px.prototype.toString=function(){return this.Y}; var Cx={};new px(Cx,"");var x_0=/^[a-z][a-z\d-]*$/i,txx="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),eU4="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),EK0=["action","formaction","href"];var ZuX={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};g.A=Me.prototype;g.A.OA=function(Z){return oe(this.Y,Z)}; g.A.getElementsByTagName=function(Z,Q){return(Q||this.Y).getElementsByTagName(String(Z))}; g.A.Ru=function(Z){return g.xv(Z,this.Y)}; g.A.setProperties=tl;g.A.createElement=function(Z){return wg(this.Y,Z)}; g.A.appendChild=g.ZN;g.A.append=function(Z,Q){bux(UD(Z),Z,arguments,1)}; g.A.canHaveChildren=function(Z){if(Z.nodeType!=1)return!1;switch(Z.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0}; g.A.removeNode=g.K$;g.A.getChildren=function(Z){return Z.children!=void 0?Z.children:Array.prototype.filter.call(Z.childNodes,function(Q){return Q.nodeType==1})}; g.A.contains=g.bG;g.L(j3,Mq);j3.prototype.gx=function(){return Sp(this,1)};g.L(DN,Mq);g.L(v8,Mq);g.L(gC,Mq);var j5r=["platform","platformVersion","architecture","model","uaFullVersion"],X8=new v8,Yr=null;g.L(S3,Mq);g.L(v_D,Mq);g.L($r,Mq);g.L(TB,Mq);TB.prototype.V=function(){return qq(this,v_D,7)!==void 0}; TB.prototype.Ox=function(){return rb(this,Kx,16)};g.L(f$,Mq);f$.prototype.jT=function(Z){return hr(this,2,Z)};L$.prototype.jT=function(Z){this.Y.jT(Z);return this}; L$.prototype.build=function(Z,Q,z,K,b,q){Q=Q===void 0?0:Q;z=z===void 0?0:z;K=K===void 0?null:K;b=b===void 0?0:b;q=q===void 0?0:q;var r=rb(this.Y,S3,1);if(qq(r,gC,11)!==void 0){r=n$(this);var D=new j3;D=hr(D,1,this.j);D=oI(D,2,A6(this.isFinal));z=oI(D,3,vL(z>0?z:void 0));z=oI(z,4,vL(b>0?b:void 0));z=oI(z,5,vL(q>0?q:void 0));b=z.P4;q=b[Rc]|0;z=q&2?z:new z.constructor(p9(b,q,!0));jp(r,j3,10,z)}r=this.Y.clone();z=Date.now().toString();r=oI(r,4,n9(z));Z=Dc(r,TB,3,Z.slice());K&&(r=new qe,K=oI(r,13,vL(K)), r=new rg,K=jp(r,qe,2,K),r=new $r,K=jp(r,rg,1,K),K=hr(K,2,9),jp(Z,$r,18,K));Q&&$_(Z,14,Q);return Z};var ROD=function(){if(!g.OG.addEventListener||!Object.defineProperty)return!1;var Z=!1,Q=Object.defineProperty({},"passive",{get:function(){Z=!0}}); try{var z=function(){}; g.OG.addEventListener("test",z,Q);g.OG.removeEventListener("test",z,Q)}catch(K){}return Z}();var SOW=SbD("AnimationEnd"),KL=SbD("TransitionEnd");g.c8.prototype.j=0;g.c8.prototype.reset=function(){this.Y=this.S=this.W;this.j=0}; g.c8.prototype.getValue=function(){return this.S};g.L($q4,Mq);var dr0=S6($q4);g.L(Tbr,Mq);var Kq=new function(){this.Y=Tbr;this.isRepeated=0;this.j=rb;this.defaultValue=void 0};g.L(JE,g.O);g.A=JE.prototype;g.A.gr=function(){this.LS();this.j.stop();this.KN.stop();g.O.prototype.gr.call(this)}; g.A.dispatch=function(Z){if(Z instanceof TB)this.log(Z);else try{var Q=new TB,z=Z.pZ();var K=Tk(Q,8,z);this.log(K)}catch(b){}}; g.A.log=function(Z){if(this.c7){Z=Z.clone();var Q=this.Du++;Z=$_(Z,21,Q);this.componentId&&Tk(Z,26,this.componentId);Q=Z;if(nnD(Q)==null){var z=Date.now();z=Number.isFinite(z)?z.toString():"0";oI(Q,1,n9(z))}kJr(Uo(Q,15))!=null||$_(Q,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(z=this.experimentIds.clone(),jp(Q,Kx,16,z));Q=this.Y.length-1E3+1;Q>0&&(this.Y.splice(0,Q),this.W+=Q);this.Y.push(Z);this.QN||this.j.enabled||this.j.start()}}; g.A.flush=function(Z,Q){var z=this;if(this.Y.length===0)Z&&Z();else if(this.JG&&this.U)this.S.j=3,crd(this);else{var K=Date.now();if(this.tG>K&&this.P7<K)Q&&Q("throttled");else{this.network&&(typeof this.network.gx==="function"?YbW(this.S,this.network.gx()):this.S.j=0);var b=this.S.build(this.Y,this.W,this.K,this.KE,this.SJ,this.jJ),q=this.q7();if(q&&this.Vp===q)Q&&Q("stale-auth-token");else{this.Y=[];this.j.enabled&&this.j.stop();this.W=0;K=b.pZ();var r;this.T&&this.T.isSupported(K.length)&&(r=this.T.compress(K)); var D=L2M(this,K,q),v=function(S){z.L.reset();z.j.setInterval(z.L.getValue());if(S){var T=null;try{var f=JSON.stringify(JSON.parse(S.replace(")]}'\n","")));T=dr0(f)}catch(J){}if(T){S=Number;var h="-1";h=h===void 0?"0":h;var m;f=(m=nnD(T))!=null?m:h;m=S(f);m>0&&(z.P7=Date.now(),z.tG=z.P7+m);T=Kq.Y?Kq.j(T,Kq.Y,175237375):Kq.j(T,175237375,null);if(T=T===null?void 0:T)T=Ao(T,1,-1),T!==-1&&(z.L=new g.c8(T<1?1:T,3E5,.1),z.j.setInterval(z.L.getValue()))}}Z&&Z();z.K=0},Y=function(S,T){var f=qY(b,TB,3); var h;var m=(h=kJr(Uo(b,14)))!=null?h:void 0;g.mD(z.L);z.j.setInterval(z.L.getValue());S===401&&q&&(z.Vp=q);m&&(z.W+=m);T===void 0&&(T=z.isRetryable(S));T&&(z.Y=f.concat(z.Y),z.QN||z.j.enabled||z.j.start());Q&&Q("net-send-failed",S);++z.K},X=function(){z.network&&z.network.send(D,v,Y)}; r?r.then(function(S){D.requestHeaders["Content-Encoding"]="gzip";D.requestHeaders["Content-Type"]="application/binary";D.body=S;D.tQ=2;X()},function(){X()}):X()}}}}; g.A.LS=function(){this.S.isFinal=!0;this.flush();this.S.isFinal=!1}; g.A.isRetryable=function(Z){return 500<=Z&&Z<600||Z===401||Z===0};yX.prototype.send=function(Z,Q,z){var K=this,b,q,r,D,v,Y,X,S,T,f;return g.C(function(h){switch(h.Y){case 1:return q=(b=K.H$?new AbortController:void 0)?setTimeout(function(){b.abort()},Z.timeoutMillis):void 0,g.nX(h,2,3),r=Object.assign({},{method:Z.requestType, headers:Object.assign({},Z.requestHeaders)},Z.body&&{body:Z.body},Z.withCredentials&&{credentials:"include"},{signal:Z.timeoutMillis&&b?b.signal:null}),g.P(h,fetch(Z.url,r),5);case 5:D=h.j;if(D.status!==200){(v=z)==null||v(D.status);h.O$(3);break}if((Y=Q)==null){h.O$(7);break}return g.P(h,D.text(),8);case 8:Y(h.j);case 7:case 3:g.Jn(h);clearTimeout(q);g.yx(h,0);break;case 2:X=g.I0(h);switch((S=X)==null?void 0:S.name){case "AbortError":(T=z)==null||T(408);break;default:(f=z)==null||f(400)}h.O$(3)}})}; yX.prototype.gx=function(){return 4};g.L(dC,g.O);dC.prototype.XA=function(){this.L=!0;return this}; dC.prototype.build=function(){this.network||(this.network=new yX);var Z=new JE({logSource:this.logSource,q7:this.q7?this.q7:O9x,sessionIndex:this.sessionIndex,lph:this.An,tO:this.W,QN:!1,XA:this.L,Su:this.Su,network:this.network});g.W(this,Z);if(this.j){var Q=this.j,z=n$(Z.S);Tk(z,7,Q)}Z.T=new zF;this.componentId&&(Z.componentId=this.componentId);this.KE&&(Z.KE=this.KE);this.pageId&&(Z.pageId=this.pageId);this.Y&&((z=this.Y)?(Z.experimentIds||(Z.experimentIds=new Kx),Q=Z.experimentIds,z=z.pZ(),Tk(Q, 4,z)):Z.experimentIds&&oI(Z.experimentIds,4));this.S&&(Z.JG=Z.U);X_9(Z.S);this.network.jT&&this.network.jT(this.logSource);this.network.s3N&&this.network.s3N(Z);return Z};g.L(NT,g.O);NT.prototype.flush=function(Z){Z=Z||[];if(Z.length){for(var Q=new r6G,z=[],K=0;K<Z.length;K++){var b=Z[K],q=g.D_G(b);z.push(q);b.clear()}Dc(Q,h5,1,z);this.Y.dispatch(Q);this.Y.flush()}};g.A=GB.prototype;g.A.KB=function(Z){var Q=g.iu.apply(1,arguments),z=this.Zv(Q);z?z.push(new dqX(Z)):this.i8(Z,Q)}; g.A.i8=function(Z){this.Y.set(this.VI(g.iu.apply(1,arguments)),[new dqX(Z)])}; g.A.Zv=function(){var Z=this.VI(g.iu.apply(0,arguments));return this.Y.has(Z)?this.Y.get(Z):void 0}; g.A.Bt=function(){var Z=this.Zv(g.iu.apply(0,arguments));return Z&&Z.length?Z[0]:void 0}; g.A.clear=function(){this.Y.clear()}; g.A.VI=function(){var Z=g.iu.apply(0,arguments);return Z?Z.join(","):"key"};g.L(iG,GB);iG.prototype.S=function(Z){var Q=g.iu.apply(1,arguments),z=0,K=this.Bt(Q);K&&(z=K.Y);this.i8(z+Z,Q)};g.L(a8,GB);a8.prototype.PP=function(Z){this.KB(Z,g.iu.apply(1,arguments))};g.P8.prototype.stopPropagation=function(){this.j=!0}; g.P8.prototype.preventDefault=function(){this.defaultPrevented=!0};g.ZH(R8,g.P8); R8.prototype.init=function(Z,Q){var z=this.type=Z.type,K=Z.changedTouches&&Z.changedTouches.length?Z.changedTouches[0]:null;this.target=Z.target||Z.srcElement;this.currentTarget=Q;Q=Z.relatedTarget;Q||(z=="mouseover"?Q=Z.fromElement:z=="mouseout"&&(Q=Z.toElement));this.relatedTarget=Q;K?(this.clientX=K.clientX!==void 0?K.clientX:K.pageX,this.clientY=K.clientY!==void 0?K.clientY:K.pageY,this.screenX=K.screenX||0,this.screenY=K.screenY||0):(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.button=Z.button;this.keyCode=Z.keyCode||0;this.key=Z.key||"";this.charCode=Z.charCode||(z=="keypress"?Z.keyCode:0);this.ctrlKey=Z.ctrlKey;this.altKey=Z.altKey;this.shiftKey=Z.shiftKey;this.metaKey=Z.metaKey;this.pointerId=Z.pointerId||0;this.pointerType=Z.pointerType;this.state=Z.state;this.Y=Z;Z.defaultPrevented&&R8.L0.preventDefault.call(this)}; R8.prototype.stopPropagation=function(){R8.L0.stopPropagation.call(this);this.Y.stopPropagation?this.Y.stopPropagation():this.Y.cancelBubble=!0}; R8.prototype.preventDefault=function(){R8.L0.preventDefault.call(this);var Z=this.Y;Z.preventDefault?Z.preventDefault():Z.returnValue=!1};var Nbn="closure_listenable_"+(Math.random()*1E6|0);var Gkr=0;g.A=H8.prototype;g.A.add=function(Z,Q,z,K,b){var q=Z.toString();Z=this.listeners[q];Z||(Z=this.listeners[q]=[],this.Y++);var r=Ul(Z,Q,K,b);r>-1?(Q=Z[r],z||(Q.A1=!1)):(Q=new iun(Q,this.src,q,!!K,b),Q.A1=z,Z.push(Q));return Q}; g.A.remove=function(Z,Q,z,K){Z=Z.toString();if(!(Z in this.listeners))return!1;var b=this.listeners[Z];Q=Ul(b,Q,z,K);return Q>-1?(p$(b[Q]),g.EQ(b,Q),b.length==0&&(delete this.listeners[Z],this.Y--),!0):!1}; g.A.removeAll=function(Z){Z=Z&&Z.toString();var Q=0,z;for(z in this.listeners)if(!Z||z==Z){for(var K=this.listeners[z],b=0;b<K.length;b++)++Q,p$(K[b]);delete this.listeners[z];this.Y--}return Q}; g.A.Mj=function(Z,Q,z,K){Z=this.listeners[Z.toString()];var b=-1;Z&&(b=Ul(Z,Q,z,K));return b>-1?Z[b]:null}; g.A.hasListener=function(Z,Q){var z=Z!==void 0,K=z?Z.toString():"",b=Q!==void 0;return g.nx(this.listeners,function(q){for(var r=0;r<q.length;++r)if(!(z&&q[r].type!=K||b&&q[r].capture!=Q))return!0;return!1})};var xr="closure_lm_"+(Math.random()*1E6|0),F8={},p_f=0,e3="__closure_events_fn_"+(Math.random()*1E9>>>0);g.ZH(g.wC,g.O);g.wC.prototype[Nbn]=!0;g.A=g.wC.prototype;g.A.addEventListener=function(Z,Q,z,K){g.o8(this,Z,Q,z,K)}; g.A.removeEventListener=function(Z,Q,z,K){Mp0(this,Z,Q,z,K)}; g.A.dispatchEvent=function(Z){var Q=this.PG;if(Q){var z=[];for(var K=1;Q;Q=Q.PG)z.push(Q),++K}Q=this.B$;K=Z.type||Z;if(typeof Z==="string")Z=new g.P8(Z,Q);else if(Z instanceof g.P8)Z.target=Z.target||Q;else{var b=Z;Z=new g.P8(K,Q);g.Re(Z,b)}b=!0;var q;if(z)for(q=z.length-1;!Z.j&&q>=0;q--){var r=Z.currentTarget=z[q];b=El(r,K,!0,Z)&&b}Z.j||(r=Z.currentTarget=Q,b=El(r,K,!0,Z)&&b,Z.j||(b=El(r,K,!1,Z)&&b));if(z)for(q=0;!Z.j&&q<z.length;q++)r=Z.currentTarget=z[q],b=El(r,K,!1,Z)&&b;return b}; g.A.gr=function(){g.wC.L0.gr.call(this);this.ey&&this.ey.removeAll(void 0);this.PG=null}; g.A.listen=function(Z,Q,z,K){return this.ey.add(String(Z),Q,!1,z,K)}; g.A.x7=function(Z,Q,z,K){return this.ey.add(String(Z),Q,!0,z,K)}; g.A.oy=function(Z,Q,z,K){this.ey.remove(String(Z),Q,z,K)}; g.A.Mj=function(Z,Q,z,K){return this.ey.Mj(String(Z),Q,z,K)}; g.A.hasListener=function(Z,Q){return this.ey.hasListener(Z!==void 0?String(Z):void 0,Q)};var ZS=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(Z){return Z&&AsyncContext.Snapshot.wrap(Z)}:function(Z){return Z};lG.prototype.get=function(){if(this.j>0){this.j--;var Z=this.Y;this.Y=Z.next;Z.next=null}else Z=this.S();return Z};var QU;KE.prototype.add=function(Z,Q){var z=Vp0.get();z.set(Z,Q);this.j?this.j.next=z:this.Y=z;this.j=z}; KE.prototype.remove=function(){var Z=null;this.Y&&(Z=this.Y,this.Y=this.Y.next,this.Y||(this.j=null),Z.next=null);return Z}; var Vp0=new lG(function(){return new bq},function(Z){return Z.reset()}); bq.prototype.set=function(Z,Q){this.Y=Z;this.scope=Q;this.next=null}; bq.prototype.reset=function(){this.next=this.scope=this.Y=null};var qc,rw=!1,Bbd=new KE;xqn.prototype.reset=function(){this.context=this.j=this.S=this.Y=null;this.W=!1}; var tpn=new lG(function(){return new xqn},function(Z){Z.reset()}); g.XA.prototype.then=function(Z,Q,z){return bt9(this,ZS(typeof Z==="function"?Z:null),ZS(typeof Q==="function"?Q:null),z)}; g.XA.prototype.$goog_Thenable=!0;g.A=g.XA.prototype;g.A.finally=function(Z){var Q=this;Z=ZS(Z);return new Promise(function(z,K){su0(Q,function(b){Z();z(b)},function(b){Z(); K(b)})})}; g.A.RX=function(Z,Q){return bt9(this,null,ZS(Z),Q)}; g.A.catch=g.XA.prototype.RX;g.A.cancel=function(Z){if(this.Y==0){var Q=new LE(Z);g.Ae(function(){ZtG(this,Q)},this)}}; g.A.EE7=function(Z){this.Y=0;Y7(this,2,Z)}; g.A.Def=function(Z){this.Y=0;Y7(this,3,Z)}; g.A.lq=function(){for(var Z;Z=Qux(this);)zWD(this,Z,this.Y,this.T);this.K=!1}; var qD9=Lz;g.ZH(LE,fz);LE.prototype.name="cancel";g.ZH(g.nE,g.wC);g.A=g.nE.prototype;g.A.enabled=!1;g.A.qb=null;g.A.setInterval=function(Z){this.P8=Z;this.qb&&this.enabled?(this.stop(),this.start()):this.qb&&this.stop()}; g.A.V_h=function(){if(this.enabled){var Z=g.sQ()-this.zH;Z>0&&Z<this.P8*.8?this.qb=this.xK.setTimeout(this.W5,this.P8-Z):(this.qb&&(this.xK.clearTimeout(this.qb),this.qb=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}}; g.A.start=function(){this.enabled=!0;this.qb||(this.qb=this.xK.setTimeout(this.W5,this.P8),this.zH=g.sQ())}; g.A.stop=function(){this.enabled=!1;this.qb&&(this.xK.clearTimeout(this.qb),this.qb=null)}; g.A.gr=function(){g.nE.L0.gr.call(this);this.stop();delete this.xK};g.L(g.Il,g.O);g.A=g.Il.prototype;g.A.sendIsolatedPayload=function(Z){this.L=Z;this.S=1}; g.A.bT=function(){var Z=this.j.values();Z=[].concat(g.I(Z)).filter(function(Q){return Q.Y.size}); Z.length&&this.T.flush(Z,this.L);jeu(Z);this.W=0;this.Y.enabled&&this.Y.stop()}; g.A.Zq=function(Z){var Q=g.iu.apply(1,arguments);this.j.has(Z)||this.j.set(Z,new iG(Z,Q))}; g.A.pY=function(Z){var Q=g.iu.apply(1,arguments);this.j.has(Z)||this.j.set(Z,new a8(Z,Q))}; g.A.n$=function(Z){this.Fh(Z,1,g.iu.apply(1,arguments))}; g.A.Fh=function(Z,Q){var z=g.iu.apply(2,arguments),K=AlG(this,Z);K&&K instanceof iG&&(K.S(Q,z),rlW(this))}; g.A.PP=function(Z,Q){var z=g.iu.apply(2,arguments),K=AlG(this,Z);K&&K instanceof a8&&(K.PP(Q,z),rlW(this))};g.L(Je,Error);Je.prototype.toString=function(){var Z="RpcError("+(vvn(this.code)||String(this.code))+")";this.message&&(Z+=": "+this.message);return Z};gvG.prototype.pZ=function(Z){var Q=[];dw(this,Z,Q);return Q.join("")}; var SD9={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},Xa9=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;var Nfo;g.ZH(Nc,Tgn);Nc.prototype.Y=function(){return new XMLHttpRequest}; Nfo=new Nc;var Rl=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),me4=/#|$/,IMW=/[?&]($|#)/;g.ZH(g.uq,g.wC);var aM4=/^https?$/i,GnQ=["POST","PUT"],yln=[];g.A=g.uq.prototype;g.A.M1=function(){this.dispose();g.lU(yln,this)}; g.A.send=function(Z,Q,z,K){if(this.Y)throw Error("[goog.net.XhrIo] Object is active with another request="+this.X+"; newUri="+Z);Q=Q?Q.toUpperCase():"GET";this.X=Z;this.W="";this.j=0;this.SJ=!1;this.S=!0;this.Y=this.KN?this.KN.Y():Nfo.Y();this.Y.onreadystatechange=ZS((0,g.EG)(this.EQ,this));try{this.getStatus(),this.P7=!0,this.Y.open(Q,String(Z),!0),this.P7=!1}catch(r){this.getStatus();GF0(this,r);return}Z=z||"";z=new Map(this.headers);if(K)if(Object.getPrototypeOf(K)===Object.prototype)for(var b in K)z.set(b, K[b]);else if(typeof K.keys==="function"&&typeof K.get==="function"){b=g.n(K.keys());for(var q=b.next();!q.done;q=b.next())q=q.value,z.set(q,K.get(q))}else throw Error("Unknown input type for opt_headers: "+String(K));K=Array.from(z.keys()).find(function(r){return"content-type"==r.toLowerCase()}); b=g.OG.FormData&&Z instanceof g.OG.FormData;!g.wX(GnQ,Q)||K||b||z.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");Q=g.n(z);for(K=Q.next();!K.done;K=Q.next())z=g.n(K.value),K=z.next().value,z=z.next().value,this.Y.setRequestHeader(K,z);this.JG&&(this.Y.responseType=this.JG);"withCredentials"in this.Y&&this.Y.withCredentials!==this.T&&(this.Y.withCredentials=this.T);try{this.K&&(clearTimeout(this.K),this.K=null),this.jJ>0&&(this.getStatus(),this.K=setTimeout(this.aD.bind(this), this.jJ)),this.getStatus(),this.U=!0,this.Y.send(Z),this.U=!1}catch(r){this.getStatus(),GF0(this,r)}}; g.A.aD=function(){typeof te!="undefined"&&this.Y&&(this.W="Timed out after "+this.jJ+"ms, aborting",this.j=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.A.abort=function(Z){this.Y&&this.S&&(this.getStatus(),this.S=!1,this.L=!0,this.Y.abort(),this.L=!1,this.j=Z||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),x7(this))}; g.A.gr=function(){this.Y&&(this.S&&(this.S=!1,this.L=!0,this.Y.abort(),this.L=!1),x7(this,!0));g.uq.L0.gr.call(this)}; g.A.EQ=function(){this.FI()||(this.P7||this.U||this.L?ixf(this):this.Pku())}; g.A.Pku=function(){ixf(this)}; g.A.isActive=function(){return!!this.Y}; g.A.isComplete=function(){return g.FA(this)==4}; g.A.getStatus=function(){try{return g.FA(this)>2?this.Y.status:-1}catch(Z){return-1}}; g.A.getResponseHeader=function(Z){if(this.Y&&this.isComplete())return Z=this.Y.getResponseHeader(Z),Z===null?void 0:Z}; g.A.getLastError=function(){return typeof this.W==="string"?this.W:String(this.W)};sW.prototype.send=function(Z,Q,z){Q=Q===void 0?function(){}:Q; z=z===void 0?function(){}:z; deu(Z.url,function(K){K=K.target;eM(K)?Q(g.ww(K)):z(K.getStatus())},Z.requestType,Z.body,Z.requestHeaders,Z.timeoutMillis,Z.withCredentials)}; sW.prototype.gx=function(){return 1};Q_.prototype.done=function(){this.logger.yH(this.event,ZY()-this.startTime)}; g.L(zX,Xm);g.L(bk,zX);g.A=bk.prototype;g.A.Ef=function(){}; g.A.U7=function(){}; g.A.yH=function(){}; g.A.B8=function(){}; g.A.wP=function(){}; g.A.BE=function(Z,Q,z){return z}; g.A.S2=function(){}; g.A.QE=function(){}; g.A.j2=function(){}; g.A.mu=function(){}; g.L(q2,zX);g.A=q2.prototype;g.A.update=function(Z){this.logger.dispose();this.logger=Z}; g.A.U7=function(Z){this.logger.U7(Z)}; g.A.yH=function(Z,Q){this.logger.yH(Z,Q)}; g.A.B8=function(Z){this.logger.B8(Z)}; g.A.wP=function(){this.logger.wP()}; g.A.BE=function(Z,Q,z){return this.logger.BE(Z,Q,z)}; g.A.S2=function(Z){this.logger.S2(Z)}; g.A.QE=function(Z){this.logger.QE(Z)}; g.A.j2=function(Z){this.logger.j2(Z)}; g.A.mu=function(Z){this.logger.mu(Z)}; g.A.zX=function(Z){this.logger instanceof j$&&this.logger.zX(Z)}; g.A.Ef=function(Z){this.logger.Ef(Z)}; g.L(rK,g.O);g.L(Aq,zX);g.A=Aq.prototype;g.A.zX=function(Z){this.Pl=Z}; g.A.Ef=function(Z){this.metrics.Q3u.PP(Z,this.ye)}; g.A.U7=function(Z){this.metrics.eventCount.Y(Z,this.ye)}; g.A.yH=function(Z,Q){this.metrics.X1.PP(Q,Z,this.Pl,this.ye)}; g.A.B8=function(Z){this.metrics.errorCount.Y(Z,this.Pl,this.ye)}; g.A.BE=function(Z,Q,z){function K(r){if(!b.FI()){var D=ZY()-q;b.metrics.I3r.PP(D,Z,Q,r,b.Pl,b.ye)}} var b=this,q=ZY();z.then(function(){K(0)},function(r){r instanceof Je?K(r.code):K(-1)}); return z}; g.A.S2=function(Z){this.metrics.jq7.Y(Z,this.Pl,this.ye)}; g.A.QE=function(Z){this.metrics.ox.Y(Z,this.Pl,this.ye)}; g.A.j2=function(Z){this.metrics.pvB.Y(Z,this.Pl,this.ye)}; g.L(j$,Aq);j$.prototype.mu=function(Z){var Q=this;this.Y.dispose();this.j&&this.service.dispose();this.service=this.options.MV("46",this.options.Ir.concat(Z));this.Y=new rK(function(){return void Q.service.bT()},this.options.Ya); this.metrics=RTd(this.service);this.S=Z}; j$.prototype.wP=function(){paM(this.Y)};g.L(DY,Mq);g.L(vj,Mq);g.L(gK,Mq);var iXw=S6(gK),MOr=function(Z){return tj(function(Q){return Q instanceof Z&&!((Q.P4[Rc]|0)&2)})}(gK); gK.messageId="bfkj";g.L(rX,Mq);g.L(Ye,Mq);var Uex=S6(Ye);g.L(S$,g.O);S$.prototype.snapshot=function(Z){if(this.FI())throw Error("Already disposed");this.logger.U7("n");var Q=this.logger.share();return this.S.then(function(z){var K=z.c$;return new Promise(function(b){var q=new Q_(Q,"n");K(function(r){q.done();Q.Ef(r.length);Q.wP();Q.dispose();b(r)},[Z.wV, Z.oM,Z.vu,Z.Ee])})})}; S$.prototype.M$=function(Z){var Q=this;if(this.FI())throw Error("Already disposed");this.logger.U7("n");var z=KK(this.logger,function(){return Q.W([Z.wV,Z.oM,Z.vu,Z.Ee])},"n"); this.logger.Ef(z.length);this.logger.wP();return z}; S$.prototype.JF=function(Z){this.S.then(function(Q){var z;(z=Q.nXu)==null||z(Z)})}; S$.prototype.JW=function(){return this.logger.share()};g.L(hq,Mq);g.L(LK,Mq);nK.prototype.RS=function(Z,Q){var z=this,K,b,q,r,D;return g.C(function(v){if(v.Y==1){var Y=new hq;K=fu(Y,1,z.Nf);Z&&fu(K,2,Z);Q&&fu(K,3,Q);b=z.Y();return g.P(v,z.client.create(K,b),2)}q=v.j;r=N6(FG(q,2));if(r.length){Y=v.return;var X=new Uint8Array(r.length);for(var S=0;S<r.length;S++)X[S]=r[S]+97;if(g.OG.TextDecoder)X=(new TextDecoder).decode(X);else if(X.length<=8192)X=String.fromCharCode.apply(null,X);else{S="";for(var T=0;T<X.length;T+=8192)S+=String.fromCharCode.apply(null,Array.prototype.slice.call(X, T,T+8192));X=S}X=iXw(X);return Y.call(v,X)}D=rb(q,gK,1);if(!D)throw Error("Missing field");return v.return(D)})}; nK.prototype.TF=function(Z){var Q=this,z,K;return g.C(function(b){z=Q.Y();var q=new LK;q=fu(q,1,Q.Nf);K=fu(q,2,Z);q=b.return;var r=Q.client;r=Ern(r.Y,r.j+"/$rpc/google.internal.waa.v1.Waa/GenerateIT",K,z||{},aDR);return q.call(b,r)})};g.L(cj,g.O);cj.prototype.snapshot=function(Z){var Q=this;return g.C(function(z){switch(z.Y){case 1:if(Q.FI())throw Error("Already disposed");if(Q.j||Q.T){z.O$(2);break}return g.P(z,Q.L.promise,2);case 2:if(!Q.j){z.O$(4);break}return g.P(z,Q.j.snapshot(Z),5);case 5:return z.return(z.j);case 4:throw Q.T;}})}; cj.prototype.JF=function(Z){var Q,z;(Q=this.j)==null||(z=Q.JF)==null||z.call(Q,Z)}; cj.prototype.handleError=function(Z){if(!this.FI()){this.T=Z;this.L.resolve();var Q,z;(z=(Q=this.options).OLN)==null||z.call(Q,Z)}}; cj.prototype.JW=function(){return this.logger.share()}; var uvM={CYG:432E5,eU:3E5,Gs:10,hQ:1E4,QJ:3E4,AGI:3E4,li7:6E4,Nt:1E3,aZ:6E4,s5:6E5,yJ:.25,mP:2,maxAttempts:10};var PuE,Z$n=(PuE=Math.imul)!=null?PuE:function(Z,Q){return Z*Q|0},dK=[196, 200,224,18];N2.prototype.pZ=function(){return String(this.Y)+","+this.j.join()}; N2.prototype.CK=function(Z,Q){var z=void 0;if(this.j[this.Y]!==Z){var K=this.j.indexOf(Z);K!==-1?(this.j.splice(K,1),K<this.Y&&this.Y--,this.j.splice(this.Y,0,Z)):(z=this.j[this.Y],this.j[this.Y]=Z)}this.Y=(this.Y+1)%this.maxItems;Z=s8f("iU5q-!O9@$",this.pZ());z&&Z&&Q(z);return Z};var gr0={toString:function(Z){var Q=[],z=0;Z-=-2147483648;Q[z++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Z%52);for(Z=Math.floor(Z/52);Z>0;)Q[z++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(Z%62),Z=Math.floor(Z/62);return Q.join("")}};var X8W;g.L(ik,g.O);ik.prototype.a$=function(Z,Q){var z=this.mX(Z);Q==null||Q(z);return KK(this.logger,function(){return g.hj(z,2)},this.S)}; X8W=Symbol.dispose;g.L(Rj,ik);Rj.prototype.mX=function(Z,Q){var z=this;this.logger.U7(this.Y);++this.L>=this.K&&this.j.resolve();var K=Z();Z=KK(this.logger,function(){return z.W(K)},"C"); if(Z===void 0)throw new bU(17,"YNJ:Undefined");if(!(Z instanceof Uint8Array))throw new bU(18,"ODM:Invalid");Q==null||Q(Z);return Z}; g.L(CK,ik);CK.prototype.mX=function(){return this.W}; g.L(pK,ik);pK.prototype.mX=function(){var Z=this;return KK(this.logger,function(){return nG(Z.W)},"d")}; pK.prototype.a$=function(){return this.W}; g.L(M2,ik);M2.prototype.mX=function(){if(this.W)return this.W;this.W=SlM(this,function(Z){return"_"+YlG(Z)}); return SlM(this,function(Z){return Z})}; g.L(OW,ik);OW.prototype.mX=function(Z){var Q=Z();if(Q.length>118)throw new bU(19,"DFO:Invalid");Z=Math.floor(Date.now()/1E3);var z=[Math.random()*255,Math.random()*255],K=z.concat([this.W&255,this.clientState],[Z>>24&255,Z>>16&255,Z>>8&255,Z&255]);Z=new Uint8Array(2+K.length+Q.length);Z[0]=34;Z[1]=K.length+Q.length;Z.set(K,2);Z.set(Q,2+K.length);Q=Z.subarray(2);for(K=z=z.length;K<Q.length;++K)Q[K]^=Q[K%z];this.logger.S2(this.clientState);return Z};var nr0={YW:3E4,YsY:2E4};g.L(oj,g.O);oj.prototype.l9=function(Z){if(!(Z>150))try{this.cache=new AEr(Z,this.logger)}catch(Q){this.reportError(new bU(22,"GBJ:init",Q))}}; oj.prototype.reportError=function(Z){this.logger.B8(Z.code);this.onError(Z);return Z}; g.L(ke,oj);ke.prototype.nS=function(){return this.W.promise}; ke.prototype.mX=function(Z){return Bj(this,Object.assign({},Z),!1)}; ke.prototype.a$=function(Z){return Bj(this,Object.assign({},Z),!0)}; var cEf=function(Z){return tj(function(Q){if(!KY(Q))return!1;for(var z=g.n(Object.entries(Z)),K=z.next();!K.done;K=z.next()){var b=g.n(K.value);K=b.next().value;b=b.next().value;if(!(K in Q)){if(b.JJu===!0)continue;return!1}if(!b(Q[K]))return!1}return!0})}({Hg:function(Z){return tj(function(Q){return Q instanceof Z})}(cj)},"");g.L(xe,Mq);var RMJ=S6(xe);JEn.prototype.getMetadata=function(){return this.metadata};tq.prototype.getMetadata=function(){return this.metadata}; tq.prototype.getStatus=function(){return this.status};FO.prototype.T=function(Z,Q){Q=Q===void 0?{}:Q;return new JEn(Z,this,Q)}; FO.prototype.getName=function(){return this.name};var CuQ=new FO("/google.internal.waa.v1.Waa/Create",hq,xe,function(Z){return Z.pZ()},RMJ);g.L(e$,Mq);var aDR=new FO("/google.internal.waa.v1.Waa/GenerateIT",LK,e$,function(Z){return Z.pZ()},S6(e$));var QlG=new Set(["SAPISIDHASH","APISIDHASH"]);var FDn=Promise;g.L(wK,Mq);wK.prototype.getValue=function(){var Z=Uo(this,2);if(Array.isArray(Z)||Z instanceof Mq)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return FG(this,2)};g.L(EW,Mq);EW.prototype.getMessage=function(){return X6(this,2)}; var aNG=S6(EW);lk.prototype.Xy=function(Z,Q){Z=="data"?this.S.push(Q):Z=="metadata"?this.L.push(Q):Z=="status"?this.K.push(Q):Z=="end"?this.W.push(Q):Z=="error"&&this.j.push(Q);return this}; lk.prototype.removeListener=function(Z,Q){Z=="data"?KB(this.S,Q):Z=="metadata"?KB(this.L,Q):Z=="status"?KB(this.K,Q):Z=="end"?KB(this.W,Q):Z=="error"&&KB(this.j,Q);return this}; lk.prototype.cancel=function(){this.Y.abort()}; lk.prototype.cancel=lk.prototype.cancel;lk.prototype.removeListener=lk.prototype.removeListener;lk.prototype.on=lk.prototype.Xy;g.L(dTu,Error);g.ZH(g.bT,Tgn);g.bT.prototype.Y=function(){var Z=new qu(this.W,this.S);this.j&&Z.setCredentialsMode(this.j);return Z}; g.bT.prototype.setCredentialsMode=function(Z){this.j=Z}; g.ZH(qu,g.wC);g.A=qu.prototype;g.A.open=function(Z,Q){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.jJ=Z;this.U=Q;this.readyState=1;rc(this)}; g.A.send=function(Z){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");this.Y=!0;var Q={headers:this.X,method:this.jJ,credentials:this.L,cache:void 0};Z&&(Q.body=Z);(this.SJ||g.OG).fetch(new Request(this.U,Q)).then(this.WFF.bind(this),this.Ke.bind(this))}; g.A.abort=function(){this.response=this.responseText="";this.X=new Headers;this.status=0;this.S&&this.S.cancel("Request was aborted.").catch(function(){}); this.readyState>=1&&this.Y&&this.readyState!=4&&(this.Y=!1,AY(this));this.readyState=0}; g.A.WFF=function(Z){if(this.Y&&(this.W=Z,this.j||(this.status=this.W.status,this.statusText=this.W.statusText,this.j=Z.headers,this.readyState=2,rc(this)),this.Y&&(this.readyState=3,rc(this),this.Y)))if(this.responseType==="arraybuffer")Z.arrayBuffer().then(this.w7r.bind(this),this.Ke.bind(this));else if(typeof g.OG.ReadableStream!=="undefined"&&"body"in Z){this.S=Z.body.getReader();if(this.K){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.'); this.response=[]}else this.response=this.responseText="",this.T=new TextDecoder;PGu(this)}else Z.text().then(this.gh7.bind(this),this.Ke.bind(this))}; g.A.CI=function(Z){if(this.Y){if(this.K&&Z.value)this.response.push(Z.value);else if(!this.K){var Q=Z.value?Z.value:new Uint8Array(0);if(Q=this.T.decode(Q,{stream:!Z.done}))this.response=this.responseText+=Q}Z.done?AY(this):rc(this);this.readyState==3&&PGu(this)}}; g.A.gh7=function(Z){this.Y&&(this.response=this.responseText=Z,AY(this))}; g.A.w7r=function(Z){this.Y&&(this.response=Z,AY(this))}; g.A.Ke=function(){this.Y&&AY(this)}; g.A.setRequestHeader=function(Z,Q){this.X.append(Z,Q)}; g.A.getResponseHeader=function(Z){return this.j?this.j.get(Z.toLowerCase())||"":""}; g.A.getAllResponseHeaders=function(){if(!this.j)return"";for(var Z=[],Q=this.j.entries(),z=Q.next();!z.done;)z=z.value,Z.push(z[0]+": "+z[1]),z=Q.next();return Z.join("\r\n")}; g.A.setCredentialsMode=function(Z){this.L=Z}; Object.defineProperty(qu.prototype,"withCredentials",{get:function(){return this.L==="include"}, set:function(Z){this.setCredentialsMode(Z?"include":"same-origin")}});g.jg.prototype.toString=function(){var Z=[],Q=this.L;Q&&Z.push($5(Q,pGH,!0),":");var z=this.Y;if(z||Q=="file")Z.push("//"),(Q=this.X)&&Z.push($5(Q,pGH,!0),"@"),Z.push(g.F5(z).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),z=this.S,z!=null&&Z.push(":",String(z));if(z=this.j)this.Y&&z.charAt(0)!="/"&&Z.push("/"),Z.push($5(z,z.charAt(0)=="/"?HX$:M4w,!0));(z=this.W.toString())&&Z.push("?",z);(z=this.K)&&Z.push("#",$5(z,UrQ));return Z.join("")}; g.jg.prototype.resolve=function(Z){var Q=this.clone(),z=!!Z.L;z?g.D9(Q,Z.L):z=!!Z.X;z?Q.X=Z.X:z=!!Z.Y;z?g.vJ(Q,Z.Y):z=Z.S!=null;var K=Z.j;if(z)g.gc(Q,Z.S);else if(z=!!Z.j){if(K.charAt(0)!="/")if(this.Y&&!this.j)K="/"+K;else{var b=Q.j.lastIndexOf("/");b!=-1&&(K=Q.j.slice(0,b+1)+K)}b=K;if(b==".."||b==".")K="";else if(g.Jo(b,"./")||g.Jo(b,"/.")){K=mw(b,"/");b=b.split("/");for(var q=[],r=0;r<b.length;){var D=b[r++];D=="."?K&&r==b.length&&q.push(""):D==".."?((q.length>1||q.length==1&&q[0]!="")&&q.pop(), K&&r==b.length&&q.push("")):(q.push(D),K=!0)}K=q.join("/")}else K=b}z?Q.j=K:z=Z.W.toString()!=="";z?Y5(Q,Z.W.clone()):z=!!Z.K;z&&(Q.K=Z.K);return Q}; g.jg.prototype.clone=function(){return new g.jg(this)}; var pGH=/[#\/\?@]/g,M4w=/[#\?:]/g,HX$=/[#\?]/g,CGn=/[#\?@]/g,UrQ=/#/g;g.A=Sg.prototype;g.A.add=function(Z,Q){hY(this);this.S=null;Z=LB(this,Z);var z=this.Y.get(Z);z||this.Y.set(Z,z=[]);z.push(Q);this.j=this.j+1;return this}; g.A.remove=function(Z){hY(this);Z=LB(this,Z);return this.Y.has(Z)?(this.S=null,this.j=this.j-this.Y.get(Z).length,this.Y.delete(Z)):!1}; g.A.clear=function(){this.Y=this.S=null;this.j=0}; g.A.isEmpty=function(){hY(this);return this.j==0}; g.A.forEach=function(Z,Q){hY(this);this.Y.forEach(function(z,K){z.forEach(function(b){Z.call(Q,b,K,this)},this)},this)}; g.A.jS=function(){hY(this);for(var Z=Array.from(this.Y.values()),Q=Array.from(this.Y.keys()),z=[],K=0;K<Q.length;K++)for(var b=Z[K],q=0;q<b.length;q++)z.push(Q[K]);return z}; g.A.hg=function(Z){hY(this);var Q=[];if(typeof Z==="string")H$d(this,Z)&&(Q=Q.concat(this.Y.get(LB(this,Z))));else{Z=Array.from(this.Y.values());for(var z=0;z<Z.length;z++)Q=Q.concat(Z[z])}return Q}; g.A.set=function(Z,Q){hY(this);this.S=null;Z=LB(this,Z);H$d(this,Z)&&(this.j=this.j-this.Y.get(Z).length);this.Y.set(Z,[Q]);this.j=this.j+1;return this}; g.A.get=function(Z,Q){if(!Z)return Q;Z=this.hg(Z);return Z.length>0?String(Z[0]):Q}; g.A.toString=function(){if(this.S)return this.S;if(!this.Y)return"";for(var Z=[],Q=Array.from(this.Y.keys()),z=0;z<Q.length;z++){var K=Q[z],b=g.F5(K);K=this.hg(K);for(var q=0;q<K.length;q++){var r=b;K[q]!==""&&(r+="="+g.F5(K[q]));Z.push(r)}}return this.S=Z.join("&")}; g.A.clone=function(){var Z=new Sg;Z.S=this.S;this.Y&&(Z.Y=new Map(this.Y),Z.j=this.j);return Z};g.ZH(g.cJ,g.O);var OX$=[];g.A=g.cJ.prototype;g.A.listen=function(Z,Q,z,K){Array.isArray(Q)||(Q&&(OX$[0]=Q.toString()),Q=OX$);for(var b=0;b<Q.length;b++){var q=g.o8(Z,Q[b],z||this.handleEvent,K||!1,this.j||this);if(!q)break;this.Y[q.key]=q}return this}; g.A.x7=function(Z,Q,z,K){return O$r(this,Z,Q,z,K)}; g.A.oy=function(Z,Q,z,K,b){if(Array.isArray(Q))for(var q=0;q<Q.length;q++)this.oy(Z,Q[q],z,K,b);else z=z||this.handleEvent,K=g.tn(K)?!!K.capture:!!K,b=b||this.j||this,z=B8(z),K=!!K,Q=C$(Z)?Z.Mj(Q,z,K,b):Z?(Z=uG(Z))?Z.Mj(Q,z,K,b):null:null,Q&&(tE(Q),delete this.Y[Q.key])}; g.A.removeAll=function(){g.fx(this.Y,function(Z,Q){this.Y.hasOwnProperty(Q)&&tE(Z)},this); this.Y={}}; g.A.gr=function(){g.cJ.L0.gr.call(this);this.removeAll()}; g.A.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};orf.prototype.isInputValid=function(){return this.S};mu.prototype.isInputValid=function(){return this.Y!=3}; mu.prototype.Fl=function(){return this.K}; mu.prototype.vF=function(){return!0}; mu.prototype.parse=function(Z){function Q(v){v&128&&Ib(q,r,D,"invalid tag");(v&7)!=2&&Ib(q,r,D,"invalid wire type");q.S=v>>>3;q.S!=1&&q.S!=2&&q.S!=15&&Ib(q,r,D,"unexpected tag");q.Y=1;q.j=0;q.W=0} function z(v){q.W++;q.W==5&&v&240&&Ib(q,r,D,"message length too long");q.j|=(v&127)<<(q.W-1)*7;v&128||(q.Y=2,q.X=0,typeof Uint8Array!=="undefined"?q.L=new Uint8Array(q.j):q.L=Array(q.j),q.j==0&&b())} function K(v){q.L[q.X++]=v;q.X==q.j&&b()} function b(){if(q.S<15){var v={};v[q.S]=q.L;q.T.push(v)}q.Y=0} for(var q=this,r=Z instanceof Array?Z:new Uint8Array(Z),D=0;D<r.length;){switch(q.Y){case 3:Ib(q,r,D,"stream already broken");break;case 0:Q(r[D]);break;case 1:z(r[D]);break;case 2:K(r[D]);break;default:throw Error("unexpected parser state: "+q.Y);}q.U++;D++}Z=q.T;q.T=[];return Z.length>0?Z:null};JY.prototype.isInputValid=function(){return this.Y===null}; JY.prototype.Fl=function(){return this.Y}; JY.prototype.vF=function(){return!1}; JY.prototype.parse=function(Z){this.Y!==null&&WD0(this,Z,"stream already broken");var Q=null;try{var z=this.S;z.S||BCD(z,Z,"stream already broken");z.Y+=Z;var K=Math.floor(z.Y.length/4);if(K==0)var b=null;else{try{var q=YQx(z.Y.slice(0,K*4))}catch(r){BCD(z,z.Y,r.message)}z.j+=K*4;z.Y=z.Y.slice(K*4);b=q}Q=b===null?null:this.W.parse(b)}catch(r){WD0(this,Z,r.message)}this.j+=Z.length;return Q};var oW$={INIT:0,WD:1,Xh:2,fP:3,IN:4,Yr:5,STRING:6,NL:7,WZ:8,Fu:9,cZ:10,r4:11,tA:12,k9:13,o9:14,fk:15,BZ:16,RE:17,J3:18,AT:19,yT:20};g.A=dc.prototype;g.A.isInputValid=function(){return this.L!=3}; g.A.Fl=function(){return this.U}; g.A.done=function(){return this.L===2}; g.A.vF=function(){return!1}; g.A.parse=function(Z){function Q(){for(;T<Z.length;)if(yr(Z[T]))T++,q.S++;else break;return T<Y} function z(){for(var h;;){h=Z[T++];if(!h)break;q.S++;switch(q.Y){case v.INIT:h==="{"?q.Y=v.Xh:h==="["?q.Y=v.IN:yr(h)||Nu(q,Z,T);continue;case v.NL:case v.Xh:if(yr(h))continue;if(q.Y===v.NL)r.push(v.WZ);else if(h==="}"){b("{}");q.Y=K();continue}else r.push(v.fP);h==='"'?q.Y=v.STRING:Nu(q,Z,T);continue;case v.WZ:case v.fP:if(yr(h))continue;h===":"?(q.Y===v.fP&&(r.push(v.fP),q.j++),q.Y=v.WD):h==="}"?(q.j--,b(),q.Y=K()):h===","?(q.Y===v.fP&&r.push(v.fP),q.Y=v.NL):Nu(q,Z,T);continue;case v.IN:case v.WD:if(yr(h))continue; if(q.Y===v.IN)if(q.j++,q.Y=v.WD,h==="]"){q.j--;if(q.j===0){q.Y=v.Yr;return}b("[]");q.Y=K();continue}else r.push(v.Yr);h==='"'?q.Y=v.STRING:h==="{"?q.Y=v.Xh:h==="["?q.Y=v.IN:h==="t"?q.Y=v.Fu:h==="f"?q.Y=v.tA:h==="n"?q.Y=v.BZ:h!=="-"&&("0123456789".indexOf(h)!==-1?q.Y=v.yT:Nu(q,Z,T));continue;case v.Yr:if(h===",")r.push(v.Yr),q.Y=v.WD,q.j===1&&(S=T);else if(h==="]"){q.j--;if(q.j===0)return;b();q.Y=K()}else if(yr(h))continue;else Nu(q,Z,T);continue;case v.STRING:var m=T;a:for(;;){for(;q.X>0;)if(h=Z[T++], q.X===4?q.X=0:q.X++,!h)break a;if(h==='"'&&!q.T){q.Y=K();break}if(h==="\\"&&!q.T&&(q.T=!0,h=Z[T++],!h))break;if(q.T)if(q.T=!1,h==="u"&&(q.X=1),h=Z[T++])continue;else break;D.lastIndex=T;h=D.exec(Z);if(!h){T=Z.length+1;break}T=h.index+1;h=Z[h.index];if(!h)break}q.S+=T-m;continue;case v.Fu:if(!h)continue;h==="r"?q.Y=v.cZ:Nu(q,Z,T);continue;case v.cZ:if(!h)continue;h==="u"?q.Y=v.r4:Nu(q,Z,T);continue;case v.r4:if(!h)continue;h==="e"?q.Y=K():Nu(q,Z,T);continue;case v.tA:if(!h)continue;h==="a"?q.Y=v.k9: Nu(q,Z,T);continue;case v.k9:if(!h)continue;h==="l"?q.Y=v.o9:Nu(q,Z,T);continue;case v.o9:if(!h)continue;h==="s"?q.Y=v.fk:Nu(q,Z,T);continue;case v.fk:if(!h)continue;h==="e"?q.Y=K():Nu(q,Z,T);continue;case v.BZ:if(!h)continue;h==="u"?q.Y=v.RE:Nu(q,Z,T);continue;case v.RE:if(!h)continue;h==="l"?q.Y=v.J3:Nu(q,Z,T);continue;case v.J3:if(!h)continue;h==="l"?q.Y=K():Nu(q,Z,T);continue;case v.AT:h==="."?q.Y=v.yT:Nu(q,Z,T);continue;case v.yT:if("0123456789.eE+-".indexOf(h)!==-1)continue;else T--,q.S--,q.Y= K();continue;default:Nu(q,Z,T)}}} function K(){var h=r.pop();return h!=null?h:v.WD} function b(h){q.j>1||(h||(h=S===-1?q.W+Z.substring(X,T):Z.substring(S,T)),q.jJ?q.K.push(h):q.K.push(JSON.parse(h)),S=T)} for(var q=this,r=q.SJ,D=q.P7,v=oW$,Y=Z.length,X=0,S=-1,T=0;T<Y;)switch(q.L){case 3:return Nu(q,Z,T),null;case 2:return Q()&&Nu(q,Z,T),null;case 0:if(Q()){var f=Z[T++];q.S++;if(f==="["){q.L=1;X=T;q.Y=v.IN;continue}else Nu(q,Z,T)}return null;case 1:return z(),q.j===0&&q.Y==v.Yr?(q.L=2,q.W=Z.substring(T)):q.W=S===-1?q.W+Z.substring(X):Z.substring(S),q.K.length>0?(f=q.K,q.K=[],f):null}return null};Gp.prototype.isInputValid=function(){return this.L===null}; Gp.prototype.Fl=function(){return this.L}; Gp.prototype.vF=function(){return!1}; Gp.prototype.parse=function(Z){function Q(v){q.j=6;q.L="The stream is broken @"+q.Y+"/"+r+". Error: "+v+". With input:\n";throw Error(q.L);} function z(){q.S=new dc({Pcr:!0,bq:!0})} function K(v){if(v)for(var Y=0;Y<v.length;Y++){var X={};X[1]=v[Y];q.W.push(X)}} function b(v){if(v){(q.K||v.length>1)&&Q("extra status: "+v);q.K=!0;var Y={};Y[2]=v[0];q.W.push(Y)}} for(var q=this,r=0;r<Z.length;){var D;if(D=q.j!==2){a:{for(;r<Z.length;){if(!yr(Z[r])){D=!0;break a}r++;q.Y++}D=!1}D=!D}if(D)return null;switch(q.j){case 6:Q("stream already broken");break;case 0:Z[r]==="["?(q.j=1,r++,q.Y++):Q("unexpected input token");break;case 1:Z[r]==="["?(q.j=2,z()):Z[r]===","||Z.slice(r,r+5)=="null,"?q.j=3:Z[r]==="]"?(q.j=5,r++,q.Y++):Q("unexpected input token");break;case 2:D=q.S.parse(Z.substring(r));K(D);q.S.done()?(q.j=3,D=q.S.W,q.Y+=Z.length-r-D.length,Z=D,r=0):(q.Y+=Z.length- r,r=Z.length);break;case 3:Z[r]===","||Z.slice(r,r+5)=="null,"?(q.j=4,z(),q.S.parse("["),r+=Z[r]===","?1:5,q.Y++):Z[r]==="]"&&(q.j=5,r++,q.Y++);break;case 4:D=q.S.parse(Z.substring(r));b(D);q.S.done()?(q.j=5,D=q.S.W,q.Y+=Z.length-r-D.length,Z=D,r=0):(q.Y+=Z.length-r,r=Z.length);break;case 5:Q("extra input after stream end")}}return q.W.length>0?(Z=q.W,q.W=[],Z):null};iT.prototype.bA=function(){return this.Y}; iT.prototype.getStatus=function(){return this.L}; iT.prototype.jJ=function(Z){Z=Z.target;try{if(Z==this.Y)a:{var Q=g.FA(this.Y),z=this.Y.j,K=this.Y.getStatus(),b=g.ww(this.Y);Z=[];if(g.Ej(this.Y)instanceof Array){var q=g.Ej(this.Y);q.length>0&&q[0]instanceof Uint8Array&&(this.U=!0,Z=q)}if(!(Q<3||Q==3&&!b&&Z.length==0))if(K=K==200||K==206,Q==4&&(z==8?CB(this,7):z==7?CB(this,8):K||CB(this,3)),this.j||(this.j=V3x(this.Y),this.j==null&&CB(this,5)),this.L>2)pB(this);else{if(Z.length>this.S){var r=Z.length;z=[];try{if(this.j.vF())for(var D=0;D<r;D++){var v= this.j.parse(Array.from(Z[D]));v&&(z=z.concat(v))}else{v="";if(!this.K){if(typeof TextDecoder==="undefined")throw Error("TextDecoder is not supported by this browser.");this.K=new TextDecoder}for(D=0;D<r;D++)v+=this.K.decode(Z[D],{stream:Q==4&&D==r-1});z=this.j.parse(v)}Z.splice(0,r);z&&this.W(z)}catch(X){CB(this,5);pB(this);break a}}else if(b.length>this.S){D=b.slice(this.S);this.S=b.length;try{var Y=this.j.parse(D);Y!=null&&this.W&&this.W(Y)}catch(X){CB(this,5);pB(this);break a}}Q==4?(b.length!= 0||this.U?CB(this,2):CB(this,4),pB(this)):CB(this,1)}}}catch(X){CB(this,6),pB(this)}};g.A=kBd.prototype;g.A.Xy=function(Z,Q){var z=this.j[Z];z||(z=[],this.j[Z]=z);z.push(Q);return this}; g.A.addListener=function(Z,Q){this.Xy(Z,Q);return this}; g.A.removeListener=function(Z,Q){var z=this.j[Z];z&&g.lU(z,Q);(Z=this.Y[Z])&&g.lU(Z,Q);return this}; g.A.once=function(Z,Q){var z=this.Y[Z];z||(z=[],this.Y[Z]=z);z.push(Q);return this}; g.A.S8B=function(Z){var Q=this.j.data;Q&&u8n(Z,Q);(Q=this.Y.data)&&u8n(Z,Q);this.Y.data=[]}; g.A.AHF=function(){switch(this.S.getStatus()){case 1:HJ(this,"readable");break;case 5:case 6:case 4:case 7:case 3:HJ(this,"error");break;case 8:HJ(this,"close");break;case 2:HJ(this,"end")}};xTf.prototype.serverStreaming=function(Z,Q,z,K){var b=this,q=Z.substring(0,Z.length-K.name.length);return t30(function(r){var D=r.Aa,v=r.getMetadata(),Y=lNu(b,!1);v=slW(b,v,Y,q+D.getName());var X=ZED(Y,D.j,!0);r=D.Y(r.Zo);Y.send(v,"POST",r);return X},this.W).call(this,K.T(Q,z))};zGG.prototype.create=function(Z,Q){return Ern(this.Y,this.j+"/$rpc/google.internal.waa.v1.Waa/Create",Z,Q||{},CuQ)};var Bf$=1,k5=new WeakMap;g.L(Mu,g.O);Mu.prototype.signal=function(){var Z=new Oc(!1);this.signals.add(Z);g.W(this,Z);return Z}; Mu.prototype.w2=function(Z){return Uc(this,Z).w2()}; g.L(Oc,g.O);g.A=Oc.prototype;g.A.g8=function(){var Z=this,Q=Bf$++;ob(function(){KLG(Z,Q)}); return Q}; g.A.detach=function(Z){var Q=this;ob(function(){var z=Q.slots.get(Z);z&&z.sb()})}; g.A.value=function(Z){return this.promise(!0,Z)}; g.A.w2=function(){return this.bK}; g.A.next=function(Z){return this.promise(!1,Z)}; g.A.promise=function(Z,Q){var z=this,K=lcf();ob(function(){if(z.FI())K.reject(new LE("Signal initially disposed"));else if(Q&&Q.FI())K.reject(new LE("Owner initially disposed"));else if(Z&&z.H5&&z.nW)K.resolve(z.bK);else if(z.dN.add(K),he(K.promise,function(){z.dN.delete(K)}),Q){var b=function(){K.reject(new LE("Owner asynchronously disposed"))}; he(K.promise,function(){var q=k5.get(Q);q&&g.lU(q,b)}); re9(Q,b)}}); return K.promise}; g.A.gr=function(){var Z=this;g.O.prototype.gr.call(this);ob(function(){for(var Q=g.n(Z.slots.values()),z=Q.next();!z.done;z=Q.next())z=z.value.sb,z();Z.slots.clear();Q=g.n(Z.dN);for(z=Q.next();!z.done;z=Q.next())z.value.reject(new LE("Signal asynchronously disposed"));Z.dN.clear()})}; var WJ=[],Vr=!1;g.L(uT,g.O);uT.prototype.start=function(){var Z=this;if(this.FI())throw new tY("Cannot start a disposed timer.");if(!this.K){this.W=0;if(this.T){var Q=Date.now();this.handle=setInterval(function(){Z.W=Z.milliseconds>0?Math.trunc((Date.now()-Q)/Z.milliseconds):Z.W+1;var z;(z=Z.j)==null||z.resolve();Z.j=void 0;if(Z.S){var K;(K=Z.Y)!=null&&BJ(Uc(K,Z.S),Z)}Z.H4.Qm(Z)},this.milliseconds)}else this.handle=setTimeout(function(){Z.state=3; Z.handle=void 0;Z.W=1;var z;(z=Z.j)==null||z.resolve();Z.j=void 0;if(Z.S){var K;(K=Z.Y)!=null&&BJ(Uc(K,Z.S),Z)}Z.H4.Qm(Z)},this.milliseconds); this.state=1}}; uT.prototype.cancel=function(){if(this.K){this.clear();this.state=2;var Z;(Z=this.j)==null||Z.reject(new x5);var Q;(Q=this.H4.PA)==null||Q.call(this);if(this.L){var z;(z=this.Y)!=null&&BJ(Uc(z,this.L))}}}; uT.prototype.gr=function(){this.clear();var Z;(Z=this.j)==null||Z.reject(new tY);this.state=4;g.O.prototype.gr.call(this)}; uT.prototype.clear=function(){this.T?clearInterval(this.handle):clearTimeout(this.handle);this.handle=void 0}; g.An.Object.defineProperties(uT.prototype,{K:{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.W}}, X:{configurable:!0,enumerable:!0,get:function(){switch(this.state){case 0:case 1:return this.j!=null||(this.j=new g.XO),this.j.promise;case 3:return Promise.resolve();case 2:return Promise.reject(new x5("Timer has been cancelled."));case 4:return Promise.reject(new tY("Timer has been disposed."));default:q_(this.state)}}}, Qm:{configurable:!0,enumerable:!0,get:function(){if(this.FI())throw new tY("Cannot attach a signal to a disposed timer.");this.S||(this.Y!=null||(this.Y=new Mu(this)),this.S=this.Y.signal());return this.S}}, PA:{configurable:!0,enumerable:!0,get:function(){if(this.FI())throw new tY("Cannot attach a signal to a disposed timer.");this.L||(this.Y!=null||(this.Y=new Mu(this)),this.L=this.Y.signal());return this.L}}}); g.L(x5,fz);g.L(tY,fz);g.L(Fn,oj);g.A=Fn.prototype;g.A.isReady=function(){return!!this.Y}; g.A.ready=function(){var Z=this;return g.C(function(Q){return g.P(Q,Z.S.promise,0)})}; g.A.RS=function(Z){return DcD(this,this.logger.BE("c",Z===void 0?1:Z,this.m3.RS(TX().Y,null)),new bU(10,"JVZ:Timeout"))}; g.A.prefetch=function(){this.state===1&&(this.p7=this.RS())}; g.A.start=function(){if(this.state===1){this.state=2;var Z=new Q_(this.logger,"r");this.ready().finally(function(){return void Z.done()}); g7u(this)}}; g.A.mX=function(Z){YjG(this,Z);return Bj(this,jlX(Z),!1)}; g.A.a$=function(Z){YjG(this,Z);return Bj(this,jlX(Z),!0)};var Twr={NONE:0,YR$:1},wKx={Ow:0,i$F:1,js7:2,SqY:3},Rt={Q9:"a",qZN:"d",VIDEO:"v"};wc.prototype.isVisible=function(){return this.nQ?this.lk>=.3:this.lk>=.5};var rJ={xUp:0,K9r:1},FL4={NONE:0,SmY:1,ruB:2};Ec.prototype.getValue=function(){return this.j}; g.L(lT,Ec);lT.prototype.S=function(Z){this.j===null&&g.yE(this.W,Z)&&(this.j=Z)}; g.L(sg,Ec);sg.prototype.S=function(Z){this.j===null&&typeof Z==="number"&&(this.j=Z)}; g.L(Zo,Ec);Zo.prototype.S=function(Z){this.j===null&&typeof Z==="string"&&(this.j=Z)};QP.prototype.disable=function(){this.j=!1}; QP.prototype.enable=function(){this.j=!0}; QP.prototype.isEnabled=function(){return this.j}; QP.prototype.reset=function(){this.Y={};this.j=!0;this.S={}};var P$=document,vW=window;var lYd=!g.Sn&&!Bn();A$.prototype.now=function(){return 0}; A$.prototype.j=function(){return 0}; A$.prototype.S=function(){return 0}; A$.prototype.Y=function(){return 0};g.L(Do,A$);Do.prototype.now=function(){return jJ()&&vW.performance.now?vW.performance.now():A$.prototype.now.call(this)}; Do.prototype.j=function(){return jJ()&&vW.performance.memory?vW.performance.memory.totalJSHeapSize||0:A$.prototype.j.call(this)}; Do.prototype.S=function(){return jJ()&&vW.performance.memory?vW.performance.memory.usedJSHeapSize||0:A$.prototype.S.call(this)}; Do.prototype.Y=function(){return jJ()&&vW.performance.memory?vW.performance.memory.jsHeapSizeLimit||0:A$.prototype.Y.call(this)};var LLW=vK(function(){var Z=!1;try{var Q=Object.defineProperty({},"passive",{get:function(){Z=!0}}); g.OG.addEventListener("test",null,Q)}catch(z){}return Z});n79.prototype.isVisible=function(){return Xq(P$)===1};var mcf={zFG:"allow-forms",LLh:"allow-modals",VKr:"allow-orientation-lock",nnu:"allow-pointer-lock",FLJ:"allow-popups",c67:"allow-popups-to-escape-sandbox",r6$:"allow-presentation",vnY:"allow-same-origin",uPr:"allow-scripts",tKY:"allow-top-navigation",kor:"allow-top-navigation-by-user-activation"},dcX=vK(function(){return ISW()});var aSM=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");h$.prototype.sS=function(Z,Q,z){Z=Z+"//"+Q+z;var K=pKf(this)-z.length;if(K<0)return"";this.Y.sort(function(Y,X){return Y-X}); z=null;Q="";for(var b=0;b<this.Y.length;b++)for(var q=this.Y[b],r=this.j[q],D=0;D<r.length;D++){if(!K){z=z==null?q:z;break}var v=Cqd(r[D],this.S,",$");if(v){v=Q+v;if(K>=v.length){K-=v.length;Z+=v;Q=this.S;break}z=z==null?q:z}}K="";z!=null&&(K=""+Q+"trn="+z);return Z+K};dJ.prototype.setInterval=function(Z,Q){return vW.setInterval(Z,Q)}; dJ.prototype.clearInterval=function(Z){vW.clearInterval(Z)}; dJ.prototype.setTimeout=function(Z,Q){return vW.setTimeout(Z,Q)}; dJ.prototype.clearTimeout=function(Z){vW.clearTimeout(Z)};g.L(G7,Mq);G7.prototype.Y=KEd([0,K9X,rnQ,-2,Drn]);var eGu={mE$:1,W$:2,i6I:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};E70.prototype.cG=function(Z){if(typeof Z==="string"&&Z.length!=0){var Q=this.kd;if(Q.j){Z=Z.split("&");for(var z=Z.length-1;z>=0;z--){var K=Z[z].split("="),b=decodeURIComponent(K[0]);K.length>1?(K=decodeURIComponent(K[1]),K=/^[0-9]+$/g.exec(K)?parseInt(K,10):K):K=1;(b=Q.Y[b])&&b.S(K)}}}};var bL=null;var HW=g.OG.performance,W9n=!!(HW&&HW.mark&&HW.measure&&HW.clearMarks),Cf=vK(function(){var Z;if(Z=W9n){var Q=Q===void 0?window:Q;if(bL===null){bL="";try{Z="";try{Z=Q.top.location.hash}catch(K){Z=Q.location.hash}if(Z){var z=Z.match(/\bdeid=([\d,]+)/);bL=z?z[1]:""}}catch(K){}}Q=bL;Z=!!Q.indexOf&&Q.indexOf("1337")>=0}return Z}); pf.prototype.disable=function(){this.Y=!1;this.events!==this.j.google_js_reporting_queue&&(Cf()&&g.SB(this.events,Kx4),this.events.length=0)}; pf.prototype.start=function(Z,Q){if(!this.Y)return null;var z=QjG()||ZKG();Z=new zmf(Z,Q,z);Q="goog_"+Z.label+"_"+Z.uniqueId+"_start";HW&&Cf()&&HW.mark(Q);return Z}; pf.prototype.end=function(Z){if(this.Y&&typeof Z.value==="number"){var Q=QjG()||ZKG();Z.duration=Q-Z.value;Q="goog_"+Z.label+"_"+Z.uniqueId+"_end";HW&&Cf()&&HW.mark(Q);!this.Y||this.events.length>2048||this.events.push(Z)}};bKG.prototype.oi=function(Z,Q,z,K,b){b=b||this.j0;try{var q=new h$;q.Y.push(1);q.j[1]=Lf("context",Z);Q.error&&Q.meta&&Q.id||(Q=new ot(BW(Q)));if(Q.msg){var r=Q.msg.substring(0,512);q.Y.push(2);q.j[2]=Lf("msg",r)}var D=Q.meta||{};if(this.jD)try{this.jD(D)}catch(f){}if(K)try{K(D)}catch(f){}K=[D];q.Y.push(3);q.j[3]=K;var v=RG4();if(v.j){var Y=v.j.url||"";q.Y.push(4);q.j[4]=Lf("top",Y)}var X={url:v.Y.url||""};if(v.Y.url){var S=v.Y.url.match(Rl);var T=GD(S[1],null,S[3],S[4])}else T="";Y=[X,{url:T}];q.Y.push(5); q.j[5]=Y;lSn(this.Y,b,q,z)}catch(f){try{lSn(this.Y,b,{context:"ecmserr",rctx:Z,msg:BW(f),url:v&&v.Y.url},z)}catch(h){}}return this.f1}; g.L(ot,sj9);var Ug,Og,MN=new pf;Ug=new function(){var Z="https:";vW&&vW.location&&vW.location.protocol==="http:"&&(Z="http:");this.j=Z;this.Y=.01}; Og=new bKG;vW&&vW.document&&(vW.document.readyState=="complete"?rqG():MN.Y&&Y4(vW,"load",function(){rqG()}));var D2G=Date.now(),Fq=-1,x4=-1,duu,eJ=-1,t$=!1;g.A=wJ.prototype;g.A.getHeight=function(){return this.bottom-this.top}; g.A.clone=function(){return new wJ(this.top,this.right,this.bottom,this.left)}; g.A.contains=function(Z){return this&&Z?Z instanceof wJ?Z.left>=this.left&&Z.right<=this.right&&Z.top>=this.top&&Z.bottom<=this.bottom:Z.x>=this.left&&Z.x<=this.right&&Z.y>=this.top&&Z.y<=this.bottom:!1}; g.A.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this}; g.A.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this}; g.A.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this}; g.A.scale=function(Z,Q){Q=typeof Q==="number"?Q:Z;this.left*=Z;this.right*=Z;this.top*=Q;this.bottom*=Q;return this};Zw.prototype.Tg=function(Z,Q){return!!Z&&(!(Q===void 0?0:Q)||this.volume==Z.volume)&&this.S==Z.S&&lf(this.Y,Z.Y)&&!0};Qq.prototype.OA=function(){return this.T}; Qq.prototype.Tg=function(Z,Q){return this.W.Tg(Z.W,Q===void 0?!1:Q)&&this.T==Z.T&&lf(this.S,Z.S)&&lf(this.K,Z.K)&&this.Y==Z.Y&&this.L==Z.L&&this.j==Z.j&&this.X==Z.X};var V4Y={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},dn={pB:"start",nX:"firstquartile",lO:"midpoint",jz:"thirdquartile",COMPLETE:"complete",ERROR:"error",XX:"metric",PAUSE:"pause",UP:"resume",QL:"skip",gT:"viewable_impression",hT:"mute",Sz:"unmute",FL:"fullscreen",LX:"exitfullscreen",Wa:"bufferstart",gO:"bufferfinish",rO:"fully_viewable_audible_half_duration_impression",yL:"measurable_impression",Cp:"abandon",zK:"engagedview",o1:"impression",Ba:"creativeview",sP:"loaded", yg$:"progress",CLOSE:"close",uFh:"collapse",rgJ:"overlay_resize",vzg:"overlay_unmeasurable_impression",uo7:"overlay_unviewable_impression",k1G:"overlay_viewable_immediate_impression",tyh:"overlay_viewable_end_of_session_impression",R1:"custom_metric_viewable",Yu:"audio_audible",pX:"audio_measurable",I1:"audio_impression"},UNd="start firstquartile midpoint thirdquartile resume loaded".split(" "),OfX=["start","firstquartile","midpoint","thirdquartile"],Gpn=["abandon"],tb={UNKNOWN:-1,pB:0,nX:1,lO:2, jz:3,COMPLETE:4,XX:5,PAUSE:6,UP:7,QL:8,gT:9,hT:10,Sz:11,FL:12,LX:13,rO:14,yL:15,Cp:16,zK:17,o1:18,Ba:19,sP:20,R1:21,Wa:22,gO:23,I1:27,pX:28,Yu:29};var ged={HZI:"addEventListener",uZf:"getMaxSize",tcG:"getScreenSize",k0p:"getState",oig:"getVersion",QRY:"removeEventListener",kTf:"isViewable"};g.A=g.ro.prototype;g.A.clone=function(){return new g.ro(this.left,this.top,this.width,this.height)}; g.A.contains=function(Z){return Z instanceof g.Yv?Z.x>=this.left&&Z.x<=this.left+this.width&&Z.y>=this.top&&Z.y<=this.top+this.height:this.left<=Z.left&&this.left+this.width>=Z.left+Z.width&&this.top<=Z.top&&this.top+this.height>=Z.top+Z.height}; g.A.getSize=function(){return new g.SO(this.width,this.height)}; g.A.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.A.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.A.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.A.scale=function(Z,Q){Q=typeof Q==="number"?Q:Z;this.left*=Z;this.width*=Z;this.top*=Q;this.height*=Q;return this};var $2n={};JqG.prototype.update=function(Z){Z&&Z.document&&(this.T=zI(!1,Z,this.isMobileDevice),this.Y=zI(!0,Z,this.isMobileDevice),d2d(this,Z),yqD(this,Z))};C4.prototype.cancel=function(){NN().clearTimeout(this.Y);this.Y=null}; C4.prototype.schedule=function(){var Z=this,Q=NN(),z=PW().Y.Y;this.Y=Q.setTimeout(at(z,VP(143,function(){Z.j++;Z.S.sample()})),ver())};g.A=p4.prototype;g.A.cn=function(){return!1}; g.A.initialize=function(){return this.isInitialized=!0}; g.A.bf=function(){return this.Y.KN}; g.A.UC=function(){return this.Y.jJ}; g.A.W8=function(Z,Q){if(!this.jJ||(Q===void 0?0:Q))this.jJ=!0,this.KN=Z,this.X=0,this.Y!=this||M9(this)}; g.A.getName=function(){return this.Y.tG}; g.A.Wr=function(){return this.Y.E3()}; g.A.E3=function(){return{}}; g.A.Kr=function(){return this.Y.X}; g.A.Fx=function(){var Z=aH();Z.Y=zI(!0,this.S,Z.isMobileDevice)}; g.A.c9=function(){yqD(aH(),this.S)}; g.A.Yy=function(){return this.W.Y}; g.A.sample=function(){}; g.A.isActive=function(){return this.Y.K}; g.A.kF=function(Z){var Q=this.Y;this.Y=Z.Kr()>=this.X?Z:this;Q!==this.Y?(this.K=this.Y.K,M9(this)):this.K!==this.Y.K&&(this.K=this.Y.K,M9(this))}; g.A.b_=function(Z){if(Z.j===this.Y){var Q=!this.W.Tg(Z,this.U);this.W=Z;Q&&iK4(this)}}; g.A.Je=function(){return this.U}; g.A.dispose=function(){this.JG=!0}; g.A.FI=function(){return this.JG};g.A=Ud.prototype;g.A.observe=function(){return!0}; g.A.unobserve=function(){}; g.A.T7=function(Z){this.L=Z}; g.A.dispose=function(){if(!this.FI()){var Z=this.j;g.lU(Z.L,this);Z.U&&this.Je()&&GX4(Z);this.unobserve();this.P7=!0}}; g.A.FI=function(){return this.P7}; g.A.Wr=function(){return this.j.Wr()}; g.A.Kr=function(){return this.j.Kr()}; g.A.bf=function(){return this.j.bf()}; g.A.UC=function(){return this.j.UC()}; g.A.kF=function(){}; g.A.b_=function(){this.sX()}; g.A.Je=function(){return this.JG};g.A=Od.prototype;g.A.Kr=function(){return this.Y.Kr()}; g.A.bf=function(){return this.Y.bf()}; g.A.UC=function(){return this.Y.UC()}; g.A.create=function(Z,Q,z){var K=null;this.Y&&(K=this.K3(Z,Q,z),H$(this.Y,K));return K}; g.A.r9=function(){return this.rU()}; g.A.rU=function(){return!1}; g.A.init=function(Z){return this.Y.initialize()?(H$(this.Y,this),this.W=Z,!0):!1}; g.A.kF=function(Z){Z.Kr()==0&&this.W(Z.bf(),this)}; g.A.b_=function(){}; g.A.Je=function(){return!1}; g.A.dispose=function(){this.L=!0}; g.A.FI=function(){return this.L}; g.A.Wr=function(){return{}};oH.prototype.add=function(Z,Q,z){++this.S;Z=new Pk0(Z,Q,z);this.Y.push(new Pk0(Z.j,Z.Y,Z.S+this.S/4096));this.j=!0;return this};M$G.prototype.toString=function(){var Z="//pagead2.googlesyndication.com//pagead/gen_204",Q=W$(this.Y);Q.length>0&&(Z+="?"+Q);return Z};Vq.prototype.update=function(Z,Q,z){Z&&(this.Y+=Q,this.j+=Q,this.W+=Q,this.S=Math.max(this.S,this.W));if(z===void 0?!Z:z)this.W=0};var Wxd=[1,.75,.5,.3,0];ks.prototype.update=function(Z,Q,z,K,b,q){q=q===void 0?!0:q;Q=b?Math.min(Z,Q):Q;for(b=0;b<this.j.length;b++){var r=this.j[b],D=Q>0&&Q>=r;r=!(Z>0&&Z>=r)||z;this.Y[b].update(q&&D,K,!q||r)}};wo.prototype.update=function(Z,Q,z,K){this.T=this.T!=-1?Math.min(this.T,Q.lk):Q.lk;this.SJ=Math.max(this.SJ,Q.lk);this.P7=this.P7!=-1?Math.min(this.P7,Q.dc):Q.dc;this.KN=Math.max(this.KN,Q.dc);this.CN.update(Q.dc,z.dc,Q.Y,Z,K);this.Vp+=Z;Q.lk===0&&(this.tG+=Z);this.j.update(Q.lk,z.lk,Q.Y,Z,K);z=K||z.nQ!=Q.nQ?z.isVisible()&&Q.isVisible():z.isVisible();Q=!Q.isVisible()||Q.Y;this.Zu.update(z,Z,Q)}; wo.prototype.o$=function(){return this.Zu.S>=this.qB};if(P$&&P$.URL){var knX=P$.URL,udn;if(udn=!!knX){var xrz;a:{if(knX){var t40=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var qS=t40.exec(decodeURIComponent(knX));if(qS){xrz=qS[1]&&qS[1].length>1?qS[1].substring(1):"true";break a}}catch(Z){}}xrz=""}udn=xrz.length>0}Og.f1=!udn};var F9R=new wJ(0,0,0,0);var wjM=new wJ(0,0,0,0);g.L(Qo,g.O);g.A=Qo.prototype; g.A.gr=function(){if(this.o4.Y){if(this.M7.X0){var Z=this.o4.Y;Z.removeEventListener&&Z.removeEventListener("mouseover",this.M7.X0,gJ());this.M7.X0=null}this.M7.sY&&(Z=this.o4.Y,Z.removeEventListener&&Z.removeEventListener("mouseout",this.M7.sY,gJ()),this.M7.sY=null)}this.nH&&this.nH.dispose();this.qR&&this.qR.dispose();delete this.dJ;delete this.xD;delete this.Kp;delete this.o4.NA;delete this.o4.Y;delete this.M7;delete this.nH;delete this.qR;delete this.kd;g.O.prototype.gr.call(this)}; g.A.Br=function(){return this.qR?this.qR.Y:this.position}; g.A.cG=function(Z){PW().cG(Z)}; g.A.Je=function(){return!1}; g.A.Uz=function(){return new wo}; g.A.ZH=function(){return this.dJ}; g.A.e0=function(Z){return ZBx(this,Z,1E4)}; g.A.E$=function(Z,Q,z,K,b,q,r){this.F8||(this.jh&&(Z=this.b9(Z,z,b,r),K=K&&this.Ve.lk>=(this.nQ()?.3:.5),this.R9(q,Z,K),this.qO=Q,Z.lk>0&&-1===this.mf&&(this.mf=Q),this.hk==-1&&this.o$()&&(this.hk=Q),this.rz==-2&&(this.rz=sM(this.Br())?Z.lk:-1),this.Ve=Z),this.xD(this))}; g.A.R9=function(Z,Q,z){this.ZH().update(Z,Q,this.Ve,z)}; g.A.pU=function(){return new wc}; g.A.b9=function(Z,Q,z,K){z=this.pU();z.Y=Q;Q=NN().j;Q=Xq(P$)===0?-1:Q.isVisible()?0:1;z.j=Q;z.lk=this.Zw(Z);z.nQ=this.nQ();z.dc=K;return z}; g.A.Zw=function(Z){return this.opacity===0&&bf(this.kd,"opac")===1?0:Z}; g.A.nQ=function(){return!1}; g.A.Kl=function(){return this.ZNJ||this.mBf}; g.A.A_=function(){uf()}; g.A.tE=function(){uf()}; g.A.ol=function(){return 0}; g.A.o$=function(){return this.dJ.o$()}; g.A.jR=function(){var Z=this.jh;Z=(this.hasCompleted||this.FI())&&!Z;var Q=PW().j!==2||this.t_I;return this.F8||Q&&Z?2:this.o$()?4:3}; g.A.Z2=function(){return 0};g.Kh.prototype.next=function(){return g.rN}; g.rN={done:!0,value:void 0};g.Kh.prototype.oR=function(){return this};g.L(rYf,wc);var Ac=jbW([void 0,1,2,3,4,8,16]),jK=jbW([void 0,4,8,16]),eMX={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:Ab("p0",jK),p1:Ab("p1",jK),p2:Ab("p2",jK),p3:Ab("p3",jK),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:rn("mtos1",[0,2,4],!1,jK),mtos2:rn("mtos2",[0,2,4],!1,jK),mtos3:rn("mtos3",[0,2,4],!1,jK),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:Ab("a0",jK),a1:Ab("a1",jK),a2:Ab("a2",jK),a3:Ab("a3",jK),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:Ab("c0",jK),c1:Ab("c1",jK),c2:Ab("c2",jK),c3:Ab("c3",jK),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:Ab("qmtos",Ac),qnc:Ab("qnc",Ac),qmv:Ab("qmv",Ac),qnv:Ab("qnv",Ac), 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:Ab("ss0",jK),ss1:Ab("ss1",jK),ss2:Ab("ss2",jK),ss3:Ab("ss3",jK),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"},wGH=Object.assign({},eMX,{avid:jM("audio"),avas:"avas",vs:"vs"}),EWn={atos:"atos",avt:rn("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(Z,Q){return function(z){return z[Z]===void 0&&Q!==void 0?Q:z[Z]}}("ss",0), t:"t"};gn.prototype.getValue=function(){return this.j}; gn.prototype.update=function(Z,Q){Z>=32||(this.Y&1<<Z&&!Q?this.j&=~(1<<Z):this.Y&1<<Z||!Q||(this.j|=1<<Z),this.Y|=1<<Z)};g.L(YP,wo); YP.prototype.update=function(Z,Q,z,K){if(!Q.paused){wo.prototype.update.call(this,Z,Q,z,K);var b=qO(Q)&&qO(z),q=(K?Math.min(Q.lk,z.lk):z.lk)>=.5;GI(Q.volume)&&(this.W=this.W!=-1?Math.min(this.W,Q.volume):Q.volume,this.K=Math.max(this.K,Q.volume));q&&(this.JG+=Z,this.U+=b?Z:0);this.Y.update(Q.lk,z.lk,Q.Y,Z,K,b);this.S.update(!0,Z);this.L.update(b,Z);this.jJ.update(z.fullscreen,Z);this.Qp.update(b&&!q,Z);Z=Math.floor(Q.mediaTime/1E3);this.c7.update(Z,Q.isVisible());this.NB.update(Z,Q.lk>=1);this.s$.update(Z, qO(Q))}};ScX.prototype.j=function(Z){this.S||(this.Y(Z)?(Z=y$x(this.U,this.W,Z),this.L|=Z,Z=Z==0):Z=!1,this.S=Z)};g.L(Sr,ScX);Sr.prototype.Y=function(){return!0}; Sr.prototype.K=function(){return!1}; Sr.prototype.getId=function(){var Z=this,Q=dg(dn,function(z){return z==Z.W}); return tb[Q].toString()}; Sr.prototype.toString=function(){var Z="";this.K()&&(Z+="c");this.S&&(Z+="s");this.L>0&&(Z+=":"+this.L);return this.getId()+Z};g.L($P,Sr);$P.prototype.j=function(Z,Q){Q=Q===void 0?null:Q;Q!=null&&this.T.push(Q);Sr.prototype.j.call(this,Z)};g.L(To,$ud);To.prototype.j=function(){return null}; To.prototype.S=function(){return[]};g.L(fh,Ud);g.A=fh.prototype;g.A.z3=function(){if(this.element){var Z=this.element,Q=this.j.Y.S;try{try{var z=cqu(Z.getBoundingClientRect())}catch(Y){z=new wJ(0,0,0,0)}var K=z.right-z.left,b=z.bottom-z.top,q=hm9(Z,Q),r=q.x,D=q.y;var v=new wJ(Math.round(D),Math.round(r+K),Math.round(D+b),Math.round(r))}catch(Y){v=F9R.clone()}this.S=v;this.Y=aYu(this,this.S)}}; g.A.P5=function(){this.K=this.j.W.Y}; g.A.jN=function(Z){var Q=bf(this.kd,"od")==1;return em9(Z,this.K,this.element,Q)}; g.A.dZ=function(){this.timestamp=uf()}; g.A.sX=function(){this.dZ();this.z3();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var Z=this.element;var Q=new g.SO(Z.videoWidth,Z.videoHeight);Z=this.Y;var z=Eg(Z),K=Z.getHeight(),b=Q.width;Q=Q.height;b<=0||Q<=0||z<=0||K<=0||(b/=Q,Q=z/K,Z=Z.clone(),b>Q?(z/=b,K=(K-z)/2,K>0&&(K=Z.top+K,Z.top=Math.round(K),Z.bottom=Math.round(K+z))):(K*=b,z=Math.round((z-K)/2),z>0&&(z=Z.left+z,Z.left=Math.round(z),Z.right=Math.round(z+K))));this.Y=Z}this.P5(); Z=this.Y;z=this.K;Z=Z.left<=z.right&&z.left<=Z.right&&Z.top<=z.bottom&&z.top<=Z.bottom?new wJ(Math.max(Z.top,z.top),Math.min(Z.right,z.right),Math.min(Z.bottom,z.bottom),Math.max(Z.left,z.left)):new wJ(0,0,0,0);z=Z.top>=Z.bottom||Z.left>=Z.right?new wJ(0,0,0,0):Z;Z=this.j.W;Q=b=K=0;if((this.Y.bottom-this.Y.top)*(this.Y.right-this.Y.left)>0)if(this.jN(z))z=new wJ(0,0,0,0);else{K=aH().W;Q=new wJ(0,K.height,K.width,0);var q;K=Zr(z,(q=this.L)!=null?q:this.Y);b=Zr(z,aH().Y);Q=Zr(z,Q)}q=z.top>=z.bottom|| z.left>=z.right?new wJ(0,0,0,0):sd(z,-this.Y.left,-this.Y.top);RH()||(b=K=0);this.U=new Qq(Z,this.element,this.Y,q,K,b,this.timestamp,Q)}; g.A.getName=function(){return this.j.getName()};var lDU=new wJ(0,0,0,0);g.L(Lh,fh);g.A=Lh.prototype;g.A.observe=function(){this.W();return!0}; g.A.b_=function(){fh.prototype.sX.call(this)}; g.A.dZ=function(){}; g.A.z3=function(){}; g.A.sX=function(){this.W();fh.prototype.sX.call(this)}; g.A.kF=function(Z){Z=Z.isActive();Z!==this.X&&(Z?this.W():(aH().Y=new wJ(0,0,0,0),this.Y=new wJ(0,0,0,0),this.K=new wJ(0,0,0,0),this.timestamp=-1));this.X=Z};var DZ={},yYD=(DZ.firstquartile=0,DZ.midpoint=1,DZ.thirdquartile=2,DZ.complete=3,DZ);g.L(cQ,Qo);g.A=cQ.prototype;g.A.Je=function(){return!0}; g.A.JV=function(){return this.Cs==2}; g.A.e0=function(Z){return ZBx(this,Z,Math.max(1E4,this.S/3))}; g.A.E$=function(Z,Q,z,K,b,q,r){var D=this,v=this.T(this)||{};g.Re(v,b);this.S=v.duration||this.S;this.U=v.isVpaid||this.U;this.tG=v.isYouTube||this.tG;NN();this.CN=!1;b=f9n(this,Q);Tcn(this)===1&&(q=b);Qo.prototype.E$.call(this,Z,Q,z,K,v,q,r);this.D4&&this.D4.S&&g.SB(this.K,function(Y){Y.j(D)})}; g.A.R9=function(Z,Q,z){Qo.prototype.R9.call(this,Z,Q,z);Jb(this).update(Z,Q,this.Ve,z);this.qB=qO(this.Ve)&&qO(Q);this.KN==-1&&this.NB&&(this.KN=this.ZH().S.Y);this.pK.S=0;Z=this.o$();Q.isVisible()&&vQ(this.pK,"vs");Z&&vQ(this.pK,"vw");GI(Q.volume)&&vQ(this.pK,"am");qO(Q)?vQ(this.pK,"a"):vQ(this.pK,"mut");this.Xp&&vQ(this.pK,"f");Q.j!=-1&&(vQ(this.pK,"bm"),Q.j==1&&(vQ(this.pK,"b"),qO(Q)&&vQ(this.pK,"umutb")));qO(Q)&&Q.isVisible()&&vQ(this.pK,"avs");this.qB&&Z&&vQ(this.pK,"avw");Q.lk>0&&vQ(this.pK, "pv");yo(this,this.ZH().S.Y,!0)&&vQ(this.pK,"gdr");Fz(this.ZH().j,1)>=2E3&&vQ(this.pK,"pmx");this.CN&&vQ(this.pK,"tvoff")}; g.A.Uz=function(){return new YP}; g.A.ZH=function(){return this.dJ}; g.A.pU=function(){return new rYf}; g.A.b9=function(Z,Q,z,K){Z=Qo.prototype.b9.call(this,Z,Q,z,K===void 0?-1:K);Z.fullscreen=this.Xp;Z.paused=this.JV();Z.volume=z.volume;GI(Z.volume)||(this.gq++,Q=this.Ve,GI(Q.volume)&&(Z.volume=Q.volume));z=z.currentTime;Z.mediaTime=z!==void 0&&z>=0?z:-1;return Z}; g.A.Zw=function(Z){return aH(),this.Xp?1:Qo.prototype.Zw.call(this,Z)}; g.A.ol=function(){return 1}; g.A.getDuration=function(){return this.S}; g.A.jR=function(){return this.F8?2:LuD(this)?5:this.o$()?4:3}; g.A.Z2=function(){return this.Qp?this.ZH().L.S>=2E3?4:3:2}; g.A.T7=function(Z){this.qR&&this.qR.T7(Z)};var sEn=g.sQ();MgM.prototype.reset=function(){this.Y=[];this.j=[]}; var PQ=yP(MgM);g.L(ph,Od);g.A=ph.prototype;g.A.getName=function(){return(this.j?this.j:this.Y).getName()}; g.A.Wr=function(){return(this.j?this.j:this.Y).Wr()}; g.A.Kr=function(){return(this.j?this.j:this.Y).Kr()}; g.A.init=function(Z){var Q=!1;(0,g.SB)(this.S,function(z){z.initialize()&&(Q=!0)}); Q&&(this.W=Z,H$(this.Y,this));return Q}; g.A.dispose=function(){(0,g.SB)(this.S,function(Z){Z.dispose()}); Od.prototype.dispose.call(this)}; g.A.r9=function(){return ih(this.S,function(Z){return Z.cn()})}; g.A.rU=function(){return ih(this.S,function(Z){return Z.cn()})}; g.A.K3=function(Z,Q,z){return new fh(Z,this.Y,Q,z)}; g.A.b_=function(Z){this.j=Z.j};var xur={threshold:[0,.3,.5,.75,1]};g.L(HQ,fh);g.A=HQ.prototype;g.A.observe=function(){var Z=this;this.SJ||(this.SJ=uf());if(jju(298,function(){return tgd(Z)}))return!0; this.j.W8("msf");return!1}; g.A.unobserve=function(){if(this.W&&this.element)try{this.W.unobserve(this.element),this.X?(this.X.unobserve(this.element),this.X=null):this.T&&(this.T.disconnect(),this.T=null)}catch(Z){}}; g.A.sX=function(){var Z=MO(this);Z.length>0&&UM(this,Z);fh.prototype.sX.call(this)}; g.A.z3=function(){}; g.A.jN=function(){return!1}; g.A.P5=function(){}; g.A.Wr=function(){var Z={};return Object.assign(this.j.Wr(),(Z.niot_obs=this.SJ,Z.niot_cbk=this.jJ,Z))}; g.A.getName=function(){return"nio"};g.L(OM,Od);OM.prototype.getName=function(){return"nio"}; OM.prototype.rU=function(){return!aH().j&&this.Y.Y.S.IntersectionObserver!=null}; OM.prototype.K3=function(Z,Q,z){return new HQ(Z,this.Y,Q,z)};g.L(o4,p4);o4.prototype.Yy=function(){return aH().Y}; o4.prototype.cn=function(){var Z=ecx();this.X!==Z&&(this.Y!=this&&Z>this.Y.X&&(this.Y=this,M9(this)),this.X=Z);return Z==2};BQ.prototype.sample=function(){kP(this,R4(),!1)}; BQ.prototype.W=function(){var Z=RH(),Q=uf();Z?(t$||(Fq=Q,g.SB(PQ.Y,function(z){var K=z.ZH();K.Du=X1(K,Q,z.Cs!=1)})),t$=!0):(this.T=ZfG(this,Q),t$=!1,duu=Q,g.SB(PQ.Y,function(z){z.jh&&(z.ZH().X=Q)})); kP(this,R4(),!Z)}; var WQ=yP(BQ);var z8W=null,XH="",Yl=!1;var qgG=bfu().BH,xP=bfu().Rl;var jtr={zZp:"visible",UaI:"audible",eCJ:"time",aqh:"timetype"},DND={visible:function(Z){return/^(100|[0-9]{1,2})$/.test(Z)}, audible:function(Z){return Z=="0"||Z=="1"}, timetype:function(Z){return Z=="mtos"||Z=="tos"}, time:function(Z){return/^(100|[0-9]{1,2})%$/.test(Z)||/^([0-9])+ms$/.test(Z)}}; A$r.prototype.setTime=function(Z,Q,z){Q=="ms"?(this.S=Z,this.W=-1):(this.S=-1,this.W=Z);this.L=z===void 0?"tos":z;return this};g.L(wn,Sr);wn.prototype.getId=function(){return this.T}; wn.prototype.K=function(){return!0}; wn.prototype.Y=function(Z){var Q=Z.ZH(),z=Z.getDuration();return ih(this.X,function(K){if(K.Y!=void 0)var b=g4x(K,Q);else b:{switch(K.L){case "mtos":b=K.j?Q.L.S:Q.S.Y;break b;case "tos":b=K.j?Q.L.Y:Q.S.Y;break b}b=0}b==0?K=!1:(K=K.S!=-1?K.S:z!==void 0&&z>0?K.W*z:-1,K=K!=-1&&b>=K);return K})};g.L(EM,v5r);EM.prototype.Y=function(Z){var Q=new Dud;Q.Y=Dr(Z,eMX);Q.j=Dr(Z,EWn);return Q};g.L(lA,Sr);lA.prototype.Y=function(Z){return LuD(Z)};g.L(s6,$ud);g.L(Zb,Sr);Zb.prototype.Y=function(Z){return Z.ZH().o$()};g.L(Q$,$P);Q$.prototype.Y=function(Z){var Q=g.wX(this.T,bf(PW().kd,"ovms"));return!Z.F8&&(Z.Cs!=0||Q)};g.L(zH,s6);zH.prototype.j=function(){return new Q$(this.Y)}; zH.prototype.S=function(){return[new Zb("viewable_impression",this.Y),new lA(this.Y)]};g.L(K8,Lh);K8.prototype.W=function(){var Z=g.WG("ima.admob.getViewability"),Q=bf(this.kd,"queryid");typeof Z==="function"&&Q&&Z(Q)}; K8.prototype.getName=function(){return"gsv"};g.L(bR,Od);bR.prototype.getName=function(){return"gsv"}; bR.prototype.rU=function(){var Z=aH();PW();return Z.j&&!1}; bR.prototype.K3=function(Z,Q,z){return new K8(this.Y,Q,z)};g.L(qD,Lh);qD.prototype.W=function(){var Z=this,Q=g.WG("ima.bridge.getNativeViewability"),z=bf(this.kd,"queryid");typeof Q==="function"&&z&&Q(z,function(K){g.Ne(K)&&Z.T++;var b=K.opt_nativeViewVisibleBounds||{},q=K.opt_nativeViewHidden;Z.Y=m2r(K.opt_nativeViewBounds||{});var r=Z.j.W;r.Y=q?lDU.clone():m2r(b);Z.timestamp=K.opt_nativeTime||-1;aH().Y=r.Y;K=K.opt_nativeVolume;K!==void 0&&(r.volume=K)})}; qD.prototype.getName=function(){return"nis"};g.L(r2,Od);r2.prototype.getName=function(){return"nis"}; r2.prototype.rU=function(){var Z=aH();PW();return Z.j&&!1}; r2.prototype.K3=function(Z,Q,z){return new qD(this.Y,Q,z)};g.L(AO,p4);g.A=AO.prototype;g.A.cn=function(){return this.j.LC!=null}; g.A.E3=function(){var Z={};this.c7&&(Z.mraid=this.c7);this.P7&&(Z.mlc=1);Z.mtop=this.j.Cz7;this.T&&(Z.mse=this.T);this.Vp&&(Z.msc=1);Z.mcp=this.j.compatibility;return Z}; g.A.Bz=function(Z){var Q=g.iu.apply(1,arguments);try{return this.j.LC[Z].apply(this.j.LC,Q)}catch(z){k4(538,z,.01,function(K){K.method=Z})}}; g.A.initialize=function(){var Z=this;if(this.isInitialized)return!this.UC();this.isInitialized=!0;if(this.j.compatibility===2)return this.T="ng",this.W8("w"),!1;if(this.j.compatibility===1)return this.T="mm",this.W8("w"),!1;aH().X=!0;this.S.document.readyState&&this.S.document.readyState=="complete"?$Nx(this):lh(this.S,"load",function(){NN().setTimeout(VP(292,function(){return $Nx(Z)}),100)},292); return!0}; g.A.Fx=function(){var Z=aH(),Q=n4X(this,"getMaxSize");Z.Y=new wJ(0,Q.width,Q.height,0)}; g.A.c9=function(){aH().W=n4X(this,"getScreenSize")}; g.A.dispose=function(){fon(this);p4.prototype.dispose.call(this)};var xcn=new function(Z,Q){this.key=Z;this.defaultValue=Q===void 0?!1:Q;this.valueType="boolean"}("45378663");g.A=Db.prototype;g.A.Rp=function(Z){zo(Z,!1);BcD(Z)}; g.A.WR=function(){}; g.A.TG=function(Z,Q,z,K){var b=this;Z=new cQ(vW,Z,z?Q:-1,7,this.h0(),this.D0());Z.OZ=K;Sj4(Z.kd);Kf(Z.kd,"queryid",Z.OZ);Z.cG("");Kux(Z,function(){return b.BW.apply(b,g.I(g.iu.apply(0,arguments)))},function(){return b.Pgg.apply(b,g.I(g.iu.apply(0,arguments)))}); (K=yP(Ch).Y)&&sbf(Z,K);this.S&&(Z.T7(this.S),this.S=null);Z.o4.NA&&yP(wJu);return Z}; g.A.kF=function(Z){switch(Z.Kr()){case 0:if(Z=yP(Ch).Y)Z=Z.Y,g.lU(Z.L,this),Z.U&&this.Je()&&GX4(Z);g2();break;case 2:Vo()}}; g.A.b_=function(){}; g.A.Je=function(){return!1}; g.A.Pgg=function(Z,Q){Z.F8=!0;switch(Z.ol()){case 1:dNd(Z,Q);break;case 2:this.Ep(Z)}}; g.A.LFB=function(Z){var Q=Z.T(Z);Q&&(Q=Q.volume,Z.Qp=GI(Q)&&Q>0);mu0(Z,0);return NO(Z,"start",RH())}; g.A.XM=function(Z,Q,z){kP(WQ,[Z],!RH());return this.f9(Z,Q,z)}; g.A.f9=function(Z,Q,z){return NO(Z,z,RH())}; g.A.JGg=function(Z){return f8(Z,"firstquartile",1)}; g.A.bNJ=function(Z){Z.NB=!0;return f8(Z,"midpoint",2)}; g.A.VJB=function(Z){return f8(Z,"thirdquartile",3)}; g.A.dBI=function(Z){var Q=f8(Z,"complete",4);mW(Z);return Q}; g.A.BrI=function(Z){Z.Cs=3;return NO(Z,"error",RH())}; g.A.mW=function(Z,Q,z){Q=RH();if(Z.JV()&&!Q){var K=Z.ZH(),b=uf();K.X=b}kP(WQ,[Z],!Q);Z.JV()&&(Z.Cs=1);return NO(Z,z,Q)}; g.A.zYG=function(Z,Q){Q=this.XM(Z,Q||{},"skip");mW(Z);return Q}; g.A.ONJ=function(Z,Q){zo(Z,!0);return this.XM(Z,Q||{},"fullscreen")}; g.A.RY$=function(Z,Q){zo(Z,!1);return this.XM(Z,Q||{},"exitfullscreen")}; g.A.RQ=function(Z,Q,z){Q=Z.ZH();var K=uf();Q.Du=X1(Q,K,Z.Cs!=1);kP(WQ,[Z],!RH());Z.Cs==1&&(Z.Cs=2);return NO(Z,z,RH())}; g.A.KFr=function(Z){kP(WQ,[Z],!RH());return Z.j()}; g.A.oL=function(Z){kP(WQ,[Z],!RH());this.xj(Z);mW(Z);return Z.j()}; g.A.BW=function(){}; g.A.Ep=function(){}; g.A.xj=function(){}; g.A.v9=function(){}; g.A.qv=function(){}; g.A.D0=function(){this.Y||(this.Y=this.qv());return this.Y==null?new To:new zH(this.Y)}; g.A.h0=function(){return new EM};g.L(hO,Sr);hO.prototype.Y=function(Z){return Z.Z2()==4};g.L(L8,$P);L8.prototype.Y=function(Z){Z=Z.Z2();return Z==3||Z==4};g.L(n8,s6);n8.prototype.j=function(){return new L8(this.Y)}; n8.prototype.S=function(){return[new hO(this.Y)]};g.L(ck,v5r);ck.prototype.Y=function(Z){Z&&(Z.e===28&&(Z=Object.assign({},Z,{avas:3})),Z.vs===4||Z.vs===5)&&(Z=Object.assign({},Z,{vs:3}));var Q=new Dud;Q.Y=Dr(Z,wGH);Q.j=Dr(Z,EWn);return Q};ao4.prototype.j=function(){return g.WG(this.Y)};g.L(JO,Db);g.A=JO.prototype;g.A.WR=function(Z,Q){var z=this,K=yP(Ch);if(K.Y!=null)switch(K.Y.getName()){case "nis":var b=pWM(this,Z,Q);break;case "gsv":b=CfD(this,Z,Q);break;case "exc":b=Hfu(this,Z)}b||(Q.opt_overlayAdElement?b=void 0:Q.opt_adElement&&(b=G74(this,Z,Q.opt_adElement,Q.opt_osdId)));b&&b.ol()==1&&(b.T==g.DS&&(b.T=function(q){return z.v9(q)}),R80(this,b,Q)); return b}; g.A.v9=function(Z){Z.j=0;Z.JG=0;if(Z.W=="h"||Z.W=="n"){PW();Z.s$&&(PW(),$l(this)!="h"&&$l(this));var Q=g.WG("ima.common.getVideoMetadata");if(typeof Q==="function")try{var z=Q(Z.OZ)}catch(b){Z.j|=4}else Z.j|=2}else if(Z.W=="b")if(Q=g.WG("ytads.bulleit.getVideoMetadata"),typeof Q==="function")try{z=Q(Z.OZ)}catch(b){Z.j|=4}else Z.j|=2;else if(Z.W=="ml")if(Q=g.WG("ima.common.getVideoMetadata"),typeof Q==="function")try{z=Q(Z.OZ)}catch(b){Z.j|=4}else Z.j|=2;else Z.j|=1;Z.j||(z===void 0?Z.j|=8:z===null? Z.j|=16:g.Ne(z)?Z.j|=32:z.errorCode!=null&&(Z.JG=z.errorCode,Z.j|=64));z==null&&(z={});Q=z;Z.X=0;for(var K in V4Y)Q[K]==null&&(Z.X|=V4Y[K]);if0(Q,"currentTime");if0(Q,"duration");GI(z.volume)&&GI()&&(z.volume*=NaN);return z}; g.A.qv=function(){PW();$l(this)!="h"&&$l(this);var Z=MJr(this);return Z!=null?new ao4(Z):null}; g.A.Ep=function(Z){!Z.Y&&Z.F8&&TH(this,Z,"overlay_unmeasurable_impression")&&(Z.Y=!0)}; g.A.xj=function(Z){Z.b8&&(Z.o$()?TH(this,Z,"overlay_viewable_end_of_session_impression"):TH(this,Z,"overlay_unviewable_impression"),Z.b8=!1)}; g.A.BW=function(){}; g.A.TG=function(Z,Q,z,K){if(tMd()){var b=bf(PW().kd,"mm"),q={};(b=(q[Rt.Q9]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",q[Rt.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",q)[b])&&BJX(this,b);this.W==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&k4(1044,Error())}Z=Db.prototype.TG.call(this,Z,Q,z,K);this.L&&(Q=this.K,Z.L==null&&(Z.L=new bBu),Q.Y[Z.OZ]=Z.L,Z.L.L=sEn);return Z}; g.A.Rp=function(Z){Z&&Z.ol()==1&&this.L&&delete this.K.Y[Z.OZ];return Db.prototype.Rp.call(this,Z)}; g.A.D0=function(){this.Y||(this.Y=this.qv());return this.Y==null?new To:this.W==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new n8(this.Y):new zH(this.Y)}; g.A.h0=function(){return this.W==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new ck:new EM}; g.A.T7=function(Z,Q,z,K,b){Q=new wJ(z,Q+K,z+b,Q);(Z=a4(PQ,Z))?Z.T7(Q):this.S=Q}; var ZzY=WW(193,VJr,void 0,NJn);g.BG("Goog_AdSense_Lidar_sendVastEvent",ZzY);var QEQ=VP(194,function(Z,Q){Q=Q===void 0?{}:Q;Z=o49(yP(JO),Z,Q);return Wyx(Z)}); g.BG("Goog_AdSense_Lidar_getViewability",QEQ);var z0Y=WW(195,function(){return Bw0()}); g.BG("Goog_AdSense_Lidar_getUrlSignalsArray",z0Y);var KwQ=VP(196,function(){return JSON.stringify(Bw0())}); g.BG("Goog_AdSense_Lidar_getUrlSignalsList",KwQ);var k7f=(new Date("2024-01-01T00:00:00Z")).getTime();var tJ9=Xd(["//ep2.adtrafficquality.google/sodar/",""]),Fyd=Xd(["//tpc.googlesyndication.com/sodar/",""]);g.L(aF,g.O);aF.prototype.nS=function(){return this.wpc.f()}; aF.prototype.l9=function(Z){this.wpc.c(Z)}; aF.prototype.mX=function(Z){return this.wpc.m(lox(Z))}; aF.prototype.a$=function(Z){return this.wpc.mws(lox(Z))}; g.L(GH,g.O);GH.prototype.snapshot=function(Z){return this.Hg.s(Object.assign({},Z.wV&&{c:Z.wV},Z.oM&&{s:Z.oM},Z.Ee!==void 0&&{p:Z.Ee}))}; GH.prototype.JF=function(Z){this.Hg.e(Z)}; GH.prototype.JW=function(){return this.Hg.l()};var wQf=(new Date).getTime();var QHd="://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(" "),zyD=/\bocr\b/;var b4X=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var Li4=0,hyn=0,nsn=0;var qd0=Object.assign({},{attributes:{},handleError:function(Z){throw Z;}},{tlu:!0, o3f:!0,oZ:!1,zsu:!1,dOp:!1,clp:!1,k_G:R6u});var C8=null,Hk=!1,Ton=1,O6=Symbol("SIGNAL"),vt={version:0,LXr:0,jo:!1,t6:void 0,nt:void 0,Pe:void 0,oK:0,Au:void 0,eG:void 0,k_:!1,fb:!1,kind:"unknown",Ki:function(){return!1}, zZ:function(){}, x_:function(){}, FBJ:function(){}};var gN=Symbol("UNSET"),YI=Symbol("COMPUTING"),Xb=Symbol("ERRORED");Object.assign({},vt,{value:gN,jo:!0,error:null,P0:RF,kind:"computed",Ki:function(Z){return Z.value===gN||Z.value===YI}, zZ:function(Z){if(Z.value===YI)throw Error("Detected cycle in computations.");var Q=Z.value;Z.value=YI;var z=D9G(Z),K=!1;try{var b=Z.Xs();p8(null);K=Q!==gN&&Q!==Xb&&b!==Xb&&Z.P0(Q,b)}catch(q){b=Xb,Z.error=q}finally{vsx(Z,z)}K?Z.value=Q:(Z.value=b,Z.version++)}});var Sdf=Object.assign({},vt,{P0:RF,value:void 0,kind:"signal"});Object.assign({},vt,{value:gN,jo:!0,error:null,P0:RF,Ki:function(Z){return Z.value===gN||Z.value===YI}, zZ:function(Z){if(Z.value===YI)throw Error("Detected cycle in computations.");var Q=Z.value;Z.value=YI;var z=D9G(Z);try{var K=Z.source();var b=Z.Xs(K,Q===gN||Q===Xb?void 0:{source:Z.Ipu,value:Q});Z.Ipu=K}catch(q){b=Xb,Z.error=q}finally{vsx(Z,z)}Q!==gN&&b!==Xb&&Z.P0(Q,b)?Z.value=Q:(Z.value=b,Z.version++)}});Object.assign({},vt,{fb:!0,k_:!1,x_:function(Z){Z.schedule!==null&&Z.schedule(Z.AJG)}, irJ:!1,KBY:function(){}});var cGM=Symbol("updater");g.L(Bk,g.wC);Bk.prototype.dispose=function(){window.removeEventListener("offline",this.S);window.removeEventListener("online",this.S);this.b1.FZ(this.L);delete Bk.instance}; Bk.prototype.fK=function(){return this.Y}; Bk.prototype.MR=function(){var Z=this;this.L=this.b1.Y8(function(){var Q;return g.C(function(z){if(z.Y==1)return Z.Y?((Q=window.navigator)==null?0:Q.onLine)?z.O$(3):g.P(z,oF(Z),3):g.P(z,oF(Z),3);Z.MR();g.LX(z)})},3E4)};V$.prototype.set=function(Z,Q){Q=Q===void 0?!0:Q;0<=Z&&Z<52&&Number.isInteger(Z)&&this.data[Z]!==Q&&(this.data[Z]=Q,this.Y=-1)}; V$.prototype.get=function(Z){return!!this.data[Z]};var uR;g.ZH(g.w2,g.O);g.A=g.w2.prototype;g.A.start=function(){this.stop();this.W=!1;var Z=yG0(this),Q=d9X(this);Z&&!Q&&this.j.mozRequestAnimationFrame?(this.Y=g.o8(this.j,"MozBeforePaint",this.S),this.j.mozRequestAnimationFrame(null),this.W=!0):this.Y=Z&&Q?Z.call(this.j,this.S):this.j.setTimeout(kkG(this.S),20)}; g.A.stop=function(){if(this.isActive()){var Z=yG0(this),Q=d9X(this);Z&&!Q&&this.j.mozRequestAnimationFrame?tE(this.Y):Z&&Q?Q.call(this.j,this.Y):this.j.clearTimeout(this.Y)}this.Y=null}; g.A.isActive=function(){return this.Y!=null}; g.A.NI=function(){this.W&&this.Y&&tE(this.Y);this.Y=null;this.K.call(this.L,g.sQ())}; g.A.gr=function(){this.stop();g.w2.L0.gr.call(this)};g.ZH(g.E6,g.O);g.A=g.E6.prototype;g.A.vn=0;g.A.gr=function(){g.E6.L0.gr.call(this);this.stop();delete this.Y;delete this.j}; g.A.start=function(Z){this.stop();this.vn=g.cK(this.S,Z!==void 0?Z:this.P8)}; g.A.stop=function(){this.isActive()&&g.OG.clearTimeout(this.vn);this.vn=0}; g.A.isActive=function(){return this.vn!=0}; g.A.uy=function(){this.vn=0;this.Y&&this.Y.call(this.j)};g.zC.prototype[Symbol.iterator]=function(){return this}; g.zC.prototype.next=function(){var Z=this.Y.next();return{value:Z.done?void 0:this.j.call(void 0,Z.value),done:Z.done}};g.ZH(g.gd,g.wC);g.A=g.gd.prototype;g.A.isPlaying=function(){return this.Y==1}; g.A.isPaused=function(){return this.Y==-1}; g.A.mU=function(){this.C$("begin")}; g.A.lR=function(){this.C$("end")}; g.A.onFinish=function(){this.C$("finish")}; g.A.onStop=function(){this.C$("stop")}; g.A.C$=function(Z){this.dispatchEvent(Z)};var bzz=vK(function(){var Z=g.lY("DIV"),Q=g.Fv?"-webkit":v$?"-moz":null,z="transition:opacity 1s linear;";Q&&(z+=Q+"-transition:opacity 1s linear;");Q=wL4({style:z});if(Z.nodeType===1&&/^(script|style)$/i.test(Z.tagName))throw Error("");Z.innerHTML=HB(Q);return g.go(Z.firstChild,"transition")!=""});g.ZH(YR,g.gd);g.A=YR.prototype;g.A.play=function(){if(this.isPlaying())return!1;this.mU();this.C$("play");this.startTime=g.sQ();this.Y=1;if(bzz())return g.Dw(this.j,this.K),this.S=g.cK(this.kyJ,void 0,this),!0;this.cq(!1);return!1}; g.A.kyJ=function(){g.n4(this.j);i44(this.j,this.T);g.Dw(this.j,this.W);this.S=g.cK((0,g.EG)(this.cq,this,!1),this.L*1E3)}; g.A.stop=function(){this.isPlaying()&&this.cq(!0)}; g.A.cq=function(Z){g.Dw(this.j,"transition","");g.OG.clearTimeout(this.S);g.Dw(this.j,this.W);this.endTime=g.sQ();this.Y=0;if(Z)this.onStop();else this.onFinish();this.lR()}; g.A.gr=function(){this.stop();YR.L0.gr.call(this)}; g.A.pause=function(){};var Phx={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};XB("Element","attributes")||XB("Node","attributes");XB("Element","innerHTML")||XB("HTMLElement","innerHTML");XB("Node","nodeName");XB("Node","nodeType");XB("Node","parentNode");XB("Node","childNodes");XB("HTMLElement","style")||XB("Element","style");XB("HTMLStyleElement","sheet");var U99=ChD("getPropertyValue"),O40=ChD("setProperty");XB("Element","namespaceURI")||XB("Node","namespaceURI");var Me4={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var VeG,I$G,WiG,BoX,kIX;VeG=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]");I$G=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.qQz=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.$R=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]");WiG=/^http:\/\/.*/;g.roX=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");BoX=/\s+/;kIX=/[\d\u06f0-\u06f9]/;fm.prototype.oR=function(){return new hw(this.j())}; fm.prototype[Symbol.iterator]=function(){return new Lm(this.j())}; fm.prototype.Y=function(){return new Lm(this.j())}; g.L(hw,g.Kh);hw.prototype.next=function(){return this.j.next()}; hw.prototype[Symbol.iterator]=function(){return new Lm(this.j)}; hw.prototype.Y=function(){return new Lm(this.j)}; g.L(Lm,fm);Lm.prototype.next=function(){return this.S.next()};cC.prototype.clone=function(){return new cC(this.Y,this.T,this.S,this.L,this.W,this.K,this.j,this.X)}; cC.prototype.Tg=function(Z){return this.Y==Z.Y&&this.T==Z.T&&this.S==Z.S&&this.L==Z.L&&this.W==Z.W&&this.K==Z.K&&this.j==Z.j&&this.X==Z.X};IR.prototype.clone=function(){return new IR(this.start,this.end)}; IR.prototype.getLength=function(){return this.end-this.start};(function(){if(Ra9){var Z=/Windows NT ([0-9.]+)/;return(Z=Z.exec(g.iU()))?Z[1]:"0"}return tZ?(Z=/1[0|1][_.][0-9_.]+/,(Z=Z.exec(g.iU()))?Z[0].replace(/_/g,"."):"10"):g.lV?(Z=/Android\s+([^\);]+)(\)|;)/,(Z=Z.exec(g.iU()))?Z[1]:""):HTG||MSM||URG?(Z=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(Z=Z.exec(g.iU()))?Z[1].replace(/_/g,"."):""):""})();var x9x=function(){if(g.pD)return Jw(/Firefox\/([0-9.]+)/);if(g.Sn||g.Fc||g.nn)return AoX;if(g.R3){if(k$()||uU()){var Z=Jw(/CriOS\/([0-9.]+)/);if(Z)return Z}return Jw(/Chrome\/([0-9.]+)/)}if(g.Lc&&!k$())return Jw(/Version\/([0-9.]+)/);if(eL||wp){if(Z=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.iU()))return Z[1]+"."+Z[2]}else if(g.cZ)return(Z=Jw(/Android\s+([0-9.]+)/))?Z:Jw(/Version\/([0-9.]+)/);return""}();g.ZH(g.dd,g.O);g.A=g.dd.prototype;g.A.subscribe=function(Z,Q,z){var K=this.j[Z];K||(K=this.j[Z]=[]);var b=this.K;this.Y[b]=Z;this.Y[b+1]=Q;this.Y[b+2]=z;this.K=b+3;K.push(b);return b}; g.A.unsubscribe=function(Z,Q,z){if(Z=this.j[Z]){var K=this.Y;if(Z=Z.find(function(b){return K[b+1]==Q&&K[b+2]==z}))return this.SK(Z)}return!1}; g.A.SK=function(Z){var Q=this.Y[Z];if(Q){var z=this.j[Q];this.W!=0?(this.S.push(Z),this.Y[Z+1]=function(){}):(z&&g.lU(z,Z),delete this.Y[Z],delete this.Y[Z+1],delete this.Y[Z+2])}return!!Q}; g.A.publish=function(Z,Q){var z=this.j[Z];if(z){var K=Array(arguments.length-1),b=arguments.length,q;for(q=1;q<b;q++)K[q-1]=arguments[q];if(this.T)for(q=0;q<z.length;q++)b=z[q],teG(this.Y[b+1],this.Y[b+2],K);else{this.W++;try{for(q=0,b=z.length;q<b&&!this.FI();q++){var r=z[q];this.Y[r+1].apply(this.Y[r+2],K)}}finally{if(this.W--,this.S.length>0&&this.W==0)for(;z=this.S.pop();)this.SK(z)}}return q!=0}return!1}; g.A.clear=function(Z){if(Z){var Q=this.j[Z];Q&&(Q.forEach(this.SK,this),delete this.j[Z])}else this.Y.length=0,this.j={}}; g.A.gr=function(){g.dd.L0.gr.call(this);this.clear();this.S.length=0};g.N7.prototype.set=function(Z,Q){Q===void 0?this.Y.remove(Z):this.Y.set(Z,g.yU(Q))}; g.N7.prototype.get=function(Z){try{var Q=this.Y.get(Z)}catch(z){return}if(Q!==null)try{return JSON.parse(Q)}catch(z){throw"Storage: Invalid value was encountered";}}; g.N7.prototype.remove=function(Z){this.Y.remove(Z)};g.ZH(GC,g.N7);GC.prototype.set=function(Z,Q){GC.L0.set.call(this,Z,eyx(Q))}; GC.prototype.j=function(Z){Z=GC.L0.get.call(this,Z);if(Z===void 0||Z instanceof Object)return Z;throw"Storage: Invalid value was encountered";}; GC.prototype.get=function(Z){if(Z=this.j(Z)){if(Z=Z.data,Z===void 0)throw"Storage: Invalid value was encountered";}else Z=void 0;return Z};g.ZH(i_,GC);i_.prototype.set=function(Z,Q,z){if(Q=eyx(Q)){if(z){if(z<g.sQ()){i_.prototype.remove.call(this,Z);return}Q.expiration=z}Q.creation=g.sQ()}i_.L0.set.call(this,Z,Q)}; i_.prototype.j=function(Z,Q){var z=i_.L0.j.call(this,Z);if(z)if(!Q&&g.w$n(z))i_.prototype.remove.call(this,Z);else return z};g.ZH(g.aR,i_);g.ZH(PC,EsG);PC.prototype[Symbol.iterator]=function(){return g.nm(this.oR(!0)).Y()}; PC.prototype.clear=function(){var Z=Array.from(this);Z=g.n(Z);for(var Q=Z.next();!Q.done;Q=Z.next())this.remove(Q.value)};g.ZH(RR,PC);g.A=RR.prototype;g.A.isAvailable=function(){var Z=this.Y;if(Z)try{Z.setItem("__sak","1");Z.removeItem("__sak");var Q=!0}catch(z){Q=z instanceof DOMException&&(z.name==="QuotaExceededError"||z.code===22||z.code===1014||z.name==="NS_ERROR_DOM_QUOTA_REACHED")&&Z&&Z.length!==0}else Q=!1;return this.j=Q}; g.A.set=function(Z,Q){Cm(this);try{this.Y.setItem(Z,Q)}catch(z){if(this.Y.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}}; g.A.get=function(Z){Cm(this);Z=this.Y.getItem(Z);if(typeof Z!=="string"&&Z!==null)throw"Storage mechanism: Invalid value was encountered";return Z}; g.A.remove=function(Z){Cm(this);this.Y.removeItem(Z)}; g.A.oR=function(Z){Cm(this);var Q=0,z=this.Y,K=new g.Kh;K.next=function(){if(Q>=z.length)return g.rN;var b=z.key(Q++);if(Z)return g.bA(b);b=z.getItem(b);if(typeof b!=="string")throw"Storage mechanism: Invalid value was encountered";return g.bA(b)}; return K}; g.A.clear=function(){Cm(this);this.Y.clear()}; g.A.key=function(Z){Cm(this);return this.Y.key(Z)};g.ZH(pm,RR);g.ZH(lwG,RR);g.ZH(HC,PC);HC.prototype.set=function(Z,Q){this.j.set(this.Y+Z,Q)}; HC.prototype.get=function(Z){return this.j.get(this.Y+Z)}; HC.prototype.remove=function(Z){this.j.remove(this.Y+Z)}; HC.prototype.oR=function(Z){var Q=this.j[Symbol.iterator](),z=this,K=new g.Kh;K.next=function(){var b=Q.next();if(b.done)return b;for(b=b.value;b.slice(0,z.Y.length)!=z.Y;){b=Q.next();if(b.done)return b;b=b.value}return g.bA(Z?b.slice(z.Y.length):z.j.get(b))}; return K};Ut.prototype.getValue=function(){return this.j}; Ut.prototype.clone=function(){return new Ut(this.Y,this.j)};g.A=Ot.prototype;g.A.CK=function(Z,Q){var z=this.Y;z.push(new Ut(Z,Q));Z=z.length-1;Q=this.Y;for(z=Q[Z];Z>0;){var K=Z-1>>1;if(Q[K].Y>z.Y)Q[Z]=Q[K],Z=K;else break}Q[Z]=z}; g.A.remove=function(){var Z=this.Y,Q=Z.length,z=Z[0];if(!(Q<=0)){if(Q==1)Z.length=0;else{Z[0]=Z.pop();Z=0;Q=this.Y;for(var K=Q.length,b=Q[Z];Z<K>>1;){var q=Z*2+1,r=Z*2+2;q=r<K&&Q[r].Y<Q[q].Y?r:q;if(Q[q].Y>b.Y)break;Q[Z]=Q[q];Z=q}Q[Z]=b}return z.getValue()}}; g.A.hg=function(){for(var Z=this.Y,Q=[],z=Z.length,K=0;K<z;K++)Q.push(Z[K].getValue());return Q}; g.A.jS=function(){for(var Z=this.Y,Q=[],z=Z.length,K=0;K<z;K++)Q.push(Z[K].Y);return Q}; g.A.clone=function(){return new Ot(this)}; g.A.isEmpty=function(){return this.Y.length===0}; g.A.clear=function(){this.Y.length=0};g.L(oR,Ot);oR.prototype.enqueue=function(Z,Q){this.CK(Z,Q)};BC.kE=void 0;BC.getInstance=function(){return BC.kE?BC.kE:BC.kE=new BC}; BC.prototype.Y=0;var WC={},Aoz=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";WC.assign=function(Z){for(var Q=Array.prototype.slice.call(arguments,1);Q.length;){var z=Q.shift();if(z){if(typeof z!=="object")throw new TypeError(z+"must be non-object");for(var K in z)Object.prototype.hasOwnProperty.call(z,K)&&(Z[K]=z[K])}}return Z}; WC.tZ=function(Z,Q){if(Z.length===Q)return Z;if(Z.subarray)return Z.subarray(0,Q);Z.length=Q;return Z}; var jEz={DW:function(Z,Q,z,K,b){if(Q.subarray&&Z.subarray)Z.set(Q.subarray(z,z+K),b);else for(var q=0;q<K;q++)Z[b+q]=Q[z+q]}, Rb:function(Z){var Q,z;var K=z=0;for(Q=Z.length;K<Q;K++)z+=Z[K].length;var b=new Uint8Array(z);K=z=0;for(Q=Z.length;K<Q;K++){var q=Z[K];b.set(q,z);z+=q.length}return b}},DYX={DW:function(Z,Q,z,K,b){for(var q=0;q<K;q++)Z[b+q]=Q[z+q]}, Rb:function(Z){return[].concat.apply([],Z)}}; WC.yNJ=function(){Aoz?(WC.RU=Uint8Array,WC.y_=Uint16Array,WC.Pa=Int32Array,WC.assign(WC,jEz)):(WC.RU=Array,WC.y_=Array,WC.Pa=Array,WC.assign(WC,DYX))}; WC.yNJ();var v$m=!0;try{new Uint8Array(1)}catch(Z){v$m=!1};var Xt={};Xt=function(Z,Q,z,K){var b=Z&65535|0;Z=Z>>>16&65535|0;for(var q;z!==0;){q=z>2E3?2E3:z;z-=q;do b=b+Q[K++]|0,Z=Z+b|0;while(--q);b%=65521;Z%=65521}return b|Z<<16|0};for(var St={},SK,g$w=[],$I=0;$I<256;$I++){SK=$I;for(var YQz=0;YQz<8;YQz++)SK=SK&1?3988292384^SK>>>1:SK>>>1;g$w[$I]=SK}St=function(Z,Q,z,K){z=K+z;for(Z^=-1;K<z;K++)Z=Z>>>8^g$w[(Z^Q[K])&255];return Z^-1};var bW={};bW={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 Et=[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],ZP=[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],cbG=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],vPx=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],jt=Array(576);Vn(jt);var DP=Array(60);Vn(DP);var sf=Array(512);Vn(sf);var wd=Array(256);Vn(wd);var l_=Array(29);Vn(l_);var QN=Array(30);Vn(QN);var hB9,LWW,nP4,fr0=!1;var Lp;Lp=[new hs(0,0,0,0,function(Z,Q){var z=65535;for(z>Z.W2-5&&(z=Z.W2-5);;){if(Z.Yd<=1){$2(Z);if(Z.Yd===0&&Q===0)return 1;if(Z.Yd===0)break}Z.Ld+=Z.Yd;Z.Yd=0;var K=Z.mE+z;if(Z.Ld===0||Z.Ld>=K)if(Z.Yd=Z.Ld-K,Z.Ld=K,vF(Z,!1),Z.YX.Bg===0)return 1;if(Z.Ld-Z.mE>=Z.c8-262&&(vF(Z,!1),Z.YX.Bg===0))return 1}Z.CK=0;if(Q===4)return vF(Z,!0),Z.YX.Bg===0?3:4;Z.Ld>Z.mE&&vF(Z,!1);return 1}), new hs(4,4,8,4,TO),new hs(4,5,16,8,TO),new hs(4,6,32,32,TO),new hs(4,4,16,16,fp),new hs(8,16,32,32,fp),new hs(8,16,128,128,fp),new hs(8,32,128,256,fp),new hs(32,128,258,1024,fp),new hs(32,258,258,4096,fp)];var Tnr={};Tnr=function(){this.input=null;this.jt=this.oF=this.QH=0;this.output=null;this.Y9=this.Bg=this.oG=0;this.msg="";this.state=null;this.Yc=2;this.xL=0};var mOX=Object.prototype.toString; np.prototype.push=function(Z,Q){var z=this.YX,K=this.options.chunkSize;if(this.ended)return!1;var b=Q===~~Q?Q:Q===!0?4:0;typeof Z==="string"?z.input=s4X(Z):mOX.call(Z)==="[object ArrayBuffer]"?z.input=new Uint8Array(Z):z.input=Z;z.QH=0;z.oF=z.input.length;do{z.Bg===0&&(z.output=new WC.RU(K),z.oG=0,z.Bg=K);Z=$OG(z,b);if(Z!==1&&Z!==0)return this.lR(Z),this.ended=!0,!1;if(z.Bg===0||z.oF===0&&(b===4||b===2))if(this.options.uN==="string"){var q=WC.tZ(z.output,z.oG);Q=q;q=q.length;if(q<65537&&(Q.subarray&& v$m||!Q.subarray))Q=String.fromCharCode.apply(null,WC.tZ(Q,q));else{for(var r="",D=0;D<q;D++)r+=String.fromCharCode(Q[D]);Q=r}this.chunks.push(Q)}else Q=WC.tZ(z.output,z.oG),this.chunks.push(Q)}while((z.oF>0||z.Bg===0)&&Z!==1);if(b===4)return(z=this.YX)&&z.state?(K=z.state.status,K!==42&&K!==69&&K!==73&&K!==91&&K!==103&&K!==113&&K!==666?Z=qa(z,-2):(z.state=null,Z=K===113?qa(z,-3):0)):Z=-2,this.lR(Z),this.ended=!0,Z===0;b===2&&(this.lR(0),z.Bg=0);return!0}; np.prototype.lR=function(Z){Z===0&&(this.result=this.options.uN==="string"?this.chunks.join(""):WC.Rb(this.chunks));this.chunks=[];this.err=Z;this.msg=this.YX.msg};var m$="@@redux/INIT"+cF(),GoM="@@redux/REPLACE"+cF();var ih0=typeof Symbol==="function"&&Symbol.observable||"@@observable";var XnE=[0,fDQ,-3,zj];g.L(yN,Mq);yN.prototype.getType=function(){return Sp(this,11)};var uMG=function(){var Z=[0,L9U,hMY,ly,fDQ,ly,-1,zj,fDQ,zj,-1,L9U,zj,hMY,sF,XnE,ly,-1,zj];return function(Q,z){if(ER.length){var K=ER.pop();Nld(K,z);K.Y.init(Q,void 0,void 0,z);Q=K}else Q=new a5(Q,z);try{var b=new yN,q=b.P4;Kt(Z)(q,Q);var r=b}finally{Q.free()}return r}}();var CAn=-507131827;var tzX=new g.dI("adInfoDialogEndpoint");var XcM=new g.dI("adPingingEndpoint");var Ccd=new g.dI("crossDeviceProgressCommand");var ZA=new g.dI("actionCompanionAdRenderer");var vN=new g.dI("adActionInterstitialRenderer");var SQ0=new g.dI("adDurationRemainingRenderer");var aU=new g.dI("adHoverTextButtonRenderer");var uc0=new g.dI("adInfoDialogRenderer");var Yg=new g.dI("adMessageRenderer");var Pi=new g.dI("adPreviewRenderer");var zE=new g.dI("adsEngagementPanelRenderer");var rKf=new g.dI("dismissablePanelTextPortraitImageRenderer");var bef=new g.dI("adsEngagementPanelSectionListViewModel");var $Yz=new g.dI("flyoutCtaRenderer");var QQ=new g.dI("imageCompanionAdRenderer");var j5=new g.dI("instreamAdPlayerOverlayRenderer");var VA9=new g.dI("instreamSurveyAdBackgroundImageRenderer");var iD=new g.dI("instreamSurveyAdPlayerOverlayRenderer");var L5=new g.dI("instreamSurveyAdRenderer"),GE=new g.dI("instreamSurveyAdSingleSelectQuestionRenderer"),Nb=new g.dI("instreamSurveyAdMultiSelectQuestionRenderer"),Tj=new g.dI("instreamSurveyAdAnswerRenderer"),TX0=new g.dI("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var f5=new g.dI("instreamVideoAdRenderer");var fHJ=new g.dI("textOverlayAdContentRenderer"),h0n=new g.dI("enhancedTextOverlayAdContentRenderer"),Lwn=new g.dI("imageOverlayAdContentRenderer");var DL=new g.dI("playerOverlayLayoutRenderer");var g8=new g.dI("videoInterstitialButtonedCenteredLayoutRenderer");var gjD=new g.dI("aboveFeedAdLayoutRenderer");var YPM=new g.dI("belowPlayerAdLayoutRenderer");var vjG=new g.dI("inPlayerAdLayoutRenderer");var mt=new g.dI("playerBytesAdLayoutRenderer");var XAM=new g.dI("playerBytesSequenceItemAdLayoutRenderer");var yQ=new g.dI("playerUnderlayAdLayoutRenderer");var hu=new g.dI("adIntroRenderer");var DA=new g.dI("playerBytesSequentialLayoutRenderer");var ugM=new g.dI("slidingTextPlayerOverlayRenderer");var n5=new g.dI("surveyTextInterstitialRenderer");var d6=new g.dI("videoAdTrackingRenderer");var n$0=new g.dI("simpleAdBadgeRenderer");var rA=new g.dI("skipAdRenderer"),con=new g.dI("skipButtonRenderer");var Hi=new g.dI("adSlotRenderer");var IU=new g.dI("squeezebackPlayerSidePanelRenderer");var mYQ=new g.dI("timedPieCountdownRenderer");var Bm=new g.dI("adAvatarViewModel");var Wm=new g.dI("adBadgeViewModel");var Vl=new g.dI("adButtonViewModel");var IHo=new g.dI("adDetailsLineViewModel");var JoH=new g.dI("adDisclosureBannerViewModel");var yoz=new g.dI("adPodIndexViewModel");var dY0=new g.dI("imageBackgroundViewModel");var NXm=new g.dI("adGridCardCollectionViewModel");var GJY=new g.dI("adGridCardTextViewModel");var izw=new g.dI("adPreviewViewModel");var aHR=new g.dI("playerAdAvatarLockupCardButtonedViewModel");var PUo=new g.dI("skipAdButtonViewModel");var R0Y=new g.dI("skipAdViewModel");var CU$=new g.dI("timedPieCountdownViewModel");var pnU=new g.dI("visitAdvertiserLinkViewModel");var K5=new g.dI("bannerImageLayoutViewModel");var bD=new g.dI("topBannerImageTextIconButtonedLayoutViewModel");var qb=new g.dI("adsEngagementPanelLayoutViewModel");var Ju=new g.dI("displayUnderlayTextGridCardsLayoutViewModel");g.n3=new g.dI("browseEndpoint");var Hzo=new g.dI("confirmDialogEndpoint");var $WD=new g.dI("rawColdConfigGroup");var S7x=new g.dI("rawHotConfigGroup");g.$C=new g.dI("commandExecutorCommand");g.L(Mrr,Mq);var elx={HCh:0,n6I:1,T6u:32,myY:61,G2u:67,sPh:103,N6$:86,xyu:42,E6G:60,cVr:62,eR7:73,ZC$:76,yVN:88,XSI:90,hRp:99,o6$:98,ljI:100,MSY:102,qK$:41,AVf:69,C17:70,Uyf:71,BbI:2,Rk7:27,ANDROID:3,xaG:54,Tvg:14,y67:91,Enh:55,Dar:24,ZZr:20,MKp:18,maJ:21,a3$:104,l3h:30,qN7:29,A6p:28,bCB:101,CJG:34,XvY:36,eFJ:38,IOS:5,gS$:15,z9I:92,H4N:40,dNI:25,Bcu:17,R9N:19,JL$:64,O4u:66,b4N:26,VQ7:22,nSr:33,FE7:68,cLB:35,KEI:53,LEr:37,Pwg:39,ARY:7,CP$:57,Uwf:43,YKp:59,QsF:93,hFp:74,IjG:75,pSF:85,jPu:65,SKu:80,wSJ:8,hCg:10, WCu:58,g6J:63,iCr:72,GoY:23,ILB:11,pHr:13,ct7:12,qq7:16,fjI:56,ajY:31,H6N:77,fcN:84,DyG:87,Tdp:89,xrN:94,ALu:95};g.L(Na,Mq);Na.prototype.RH=function(){return X6(this,3)}; Na.prototype.Vn=function(){return X6(this,5)}; Na.prototype.dP=function(Z){return Tk(this,5,Z)};g.L(GO,Mq);g.L(UOn,Mq);g.L(iW,Mq);g.A=iW.prototype;g.A.getDeviceId=function(){return X6(this,6)}; g.A.Ox=function(Z){var Q=xK(this,9,gD,3,!0);VM(Q,Z);return Q[Z]}; g.A.getPlayerType=function(){return Sp(this,36)}; g.A.setHomeGroupInfo=function(Z){return jp(this,UOn,81,Z)}; g.A.clearLocationPlayabilityToken=function(){return oI(this,89)};g.L(az,Mq);az.prototype.getValue=function(){return X6(this,zk(this,Y7r)===2?2:-1)}; var Y7r=[2,3,4,5,6];g.L(PF,Mq);PF.prototype.setTrackingParams=function(Z){return oI(this,1,NXd(Z,!1))};g.L(Rz,Mq);g.L(Cp,Mq);Cp.prototype.Ox=function(Z){var Q=xK(this,5,XG,3,!0);VM(Q,Z);return Q[Z]};g.L(pp,Mq);pp.prototype.getToken=function(){return gb(this,2)}; pp.prototype.setToken=function(Z){return Tk(this,2,Z)};g.L(HF,Mq);HF.prototype.setSafetyMode=function(Z){return hr(this,5,Z)};g.L(Ma,Mq);Ma.prototype.pH=function(Z){return jp(this,iW,1,Z)};var C5=new g.dI("thumbnailLandscapePortraitRenderer");g.MRz=new g.dI("changeEngagementPanelVisibilityAction");var f4W=new g.dI("continuationCommand");g.UYm=new g.dI("openPopupAction");g.fq=new g.dI("webCommandMetadata");var Juu=new g.dI("metadataBadgeRenderer");var TM0=new g.dI("signalServiceEndpoint");var Hc=new g.dI("innertubeCommand");var bjf=new g.dI("loggingDirectives");var IbX={SRN:"EMBEDDED_PLAYER_MODE_UNKNOWN",plB:"EMBEDDED_PLAYER_MODE_DEFAULT",is7:"EMBEDDED_PLAYER_MODE_PFP",j47:"EMBEDDED_PLAYER_MODE_PFL"};var Edn=new g.dI("channelThumbnailEndpoint");var wiW=new g.dI("embeddedPlayerErrorMessageRenderer");var xbx=new g.dI("embeddedPlayerOverlayVideoDetailsRenderer"),lAX=new g.dI("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),sdn=new g.dI("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var cuu=new g.dI("embedsInfoPanelRenderer");var Ozo=new g.dI("feedbackEndpoint");var o$R=new g.dI("callToActionButtonViewModel");var BXz=new g.dI("interactionLoggingCommandMetadata");var L$W={k2$:"WEB_DISPLAY_MODE_UNKNOWN",rV$:"WEB_DISPLAY_MODE_BROWSER",uE$:"WEB_DISPLAY_MODE_MINIMAL_UI",tSh:"WEB_DISPLAY_MODE_STANDALONE",v6F:"WEB_DISPLAY_MODE_FULLSCREEN"};g.L(Uf,Mq);Uf.prototype.getPlayerType=function(){return Sp(this,7)}; Uf.prototype.lY=function(){return X6(this,19)}; Uf.prototype.setVideoId=function(Z){return Tk(this,19,Z)};g.L(BF,Mq);g.L(WF,Mq);g.L(VN,Mq); var WwH=[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 VRz=new g.dI("loggingContext");g.L(k2,Mq);g.L(uW,Mq);uW.prototype.lY=function(){return gb(this,zk(this,Dx)===1?1:-1)}; uW.prototype.setVideoId=function(Z){return Zc(this,1,Dx,mE(Z))}; uW.prototype.getPlaylistId=function(){return gb(this,zk(this,Dx)===2?2:-1)}; var Dx=[1,2];g.L(Ohf,Mq);var eH=new g.dI("changeKeyedMarkersVisibilityCommand");var kJY=new g.dI("changeMarkersVisibilityCommand");var db9=new g.dI("loadMarkersCommand");var umz=new g.dI("suggestedActionDataViewModel");var dC0=new g.dI("timelyActionViewModel");var y3f=new g.dI("timelyActionsOverlayViewModel");var aed=new g.dI("productListItemRenderer");var xYJ=new g.dI("shoppingOverlayRenderer");var tCd=new g.dI("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var tRJ=new g.dI("adFeedbackEndpoint");var FwR=new g.dI("menuEndpoint");var ue0=new g.dI("phoneDialerEndpoint");var VVd=new g.dI("sendSmsEndpoint");var uTn=new g.dI("copyTextEndpoint");var e0E=new g.dI("shareEndpoint"),wn$=new g.dI("shareEntityEndpoint"),E$0=new g.dI("shareEntityServiceEndpoint"),lHm=new g.dI("webPlayerShareEntityServiceEndpoint");g.pi=new g.dI("urlEndpoint");g.tF=new g.dI("watchEndpoint");var scz=new g.dI("watchPlaylistEndpoint");g.ZGn=new g.dI("offlineOrchestrationActionCommand");var SU0=new g.dI("compositeVideoOverlayRenderer");var QcJ=new g.dI("miniplayerRenderer");var VCW=new g.dI("paidContentOverlayRenderer");var zJJ=new g.dI("playerMutedAutoplayOverlayRenderer"),KUE=new g.dI("playerMutedAutoplayEndScreenRenderer");var Mir=new g.dI("unserializedPlayerResponse"),bGE=new g.dI("unserializedPlayerResponse");var qmz=new g.dI("playlistEditEndpoint");var hc;g.RU=new g.dI("buttonRenderer");hc=new g.dI("toggleButtonRenderer");var K8G=new g.dI("counterfactualRenderer");var rjz=new g.dI("resolveUrlCommandMetadata");var Aj0=new g.dI("modifyChannelNotificationPreferenceEndpoint");var Yud=new g.dI("pingingEndpoint");var jco=new g.dI("unsubscribeEndpoint");g.c0=new g.dI("subscribeButtonRenderer");var D6U=new g.dI("subscribeEndpoint");var Yen=new g.dI("buttonViewModel");var qPr=new g.dI("qrCodeRenderer");var Eor={NcY:"LIVING_ROOM_APP_MODE_UNSPECIFIED",e9N:"LIVING_ROOM_APP_MODE_MAIN",MQ$:"LIVING_ROOM_APP_MODE_KIDS",mNr:"LIVING_ROOM_APP_MODE_MUSIC",atN:"LIVING_ROOM_APP_MODE_UNPLUGGED",Z4g:"LIVING_ROOM_APP_MODE_GAMING"};var hbx=new g.dI("autoplaySwitchButtonRenderer");var nU,fZn,kfG,GjD;nU=new g.dI("decoratedPlayerBarRenderer");fZn=new g.dI("chapteredPlayerBarRenderer");kfG=new g.dI("multiMarkersPlayerBarRenderer");GjD=new g.dI("chapterRenderer");g.ccG=new g.dI("markerRenderer");var vn0=new g.dI("decoratedPlayheadRenderer");var mbM=new g.dI("desktopOverlayConfigRenderer");var AKf=new g.dI("engagementPanelSectionListRenderer");var ndM=new g.dI("gatedActionsOverlayViewModel");var ycW=new g.dI("heatMarkerRenderer");var Jcn=new g.dI("heatmapRenderer");var yun=new g.dI("watchToWatchTransitionRenderer");var Ftd=new g.dI("playlistPanelRenderer");var gnn=new g.dI("productUpsellSuggestedActionViewModel");var YmE=new g.dI("suggestedActionTimeRangeTrigger"),XDY=new g.dI("suggestedActionsRenderer"),Sm0=new g.dI("suggestedActionRenderer");var dSX=new g.dI("timedMarkerDecorationRenderer");var A7u=new g.dI("cipher");var UIG=new g.dI("playerVars");var $6m=new g.dI("playerVars");var Lq=g.OG.window,Tlo,fIz,x2=(Lq==null?void 0:(Tlo=Lq.yt)==null?void 0:Tlo.config_)||(Lq==null?void 0:(fIz=Lq.ytcfg)==null?void 0:fIz.data_)||{};g.BG("yt.config_",x2);var wI=[];var eBX=/^[\w.]*$/,u1f={q:!0,search_query:!0},kof=String(ZX);var vX=new function(){var Z=window.document;this.Y=window;this.j=Z}; g.BG("yt.ads_.signals_.getAdSignalsString",function(Z){return QC(Yq(Z))});g.sQ();var EP0="XMLHttpRequest"in g.OG?function(){return new XMLHttpRequest}:null;var hJz="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.I(hJz);var QFG={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"},zjD="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.I(hJz)),vlf=!1,sFM=K_W,AOM=JN;g.L(Ni,fz);an.prototype.then=function(Z,Q,z){return this.Y?this.Y.then(Z,Q,z):this.S===1&&Z?(Z=Z.call(z,this.j))&&typeof Z.then==="function"?Z:Rn(Z):this.S===2&&Q?(Z=Q.call(z,this.j))&&typeof Z.then==="function"?Z:PX(Z):this}; an.prototype.getValue=function(){return this.j}; an.prototype.$goog_Thenable=!0;var CA=!1;var th=eL||wp;var cOG=/^([0-9\.]+):([0-9\.]+)$/;g.L(gt,fz);gt.prototype.name="BiscottiError";g.L(v6,fz);v6.prototype.name="BiscottiMissingError";var yOG={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},XY=null;var m_n=Xd(["data-"]),pkd={};var LUX=0,Sj=g.Fv?"webkit":v$?"moz":g.Sn?"ms":g.nn?"o":"",nnH=g.WG("ytDomDomGetNextId")||function(){return++LUX}; g.BG("ytDomDomGetNextId",nnH);var O8M={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};nS.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; nS.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; nS.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var c6=g.OG.ytEventsEventsListeners||{};g.BG("ytEventsEventsListeners",c6);var W_0=g.OG.ytEventsEventsCounter||{count:0};g.BG("ytEventsEventsCounter",W_0);var xDG=vK(function(){var Z=!1;try{var Q=Object.defineProperty({},"passive",{get:function(){Z=!0}}); window.addEventListener("test",null,Q)}catch(z){}return Z}),V_W=vK(function(){var Z=!1; try{var Q=Object.defineProperty({},"capture",{get:function(){Z=!0}}); window.addEventListener("test",null,Q)}catch(z){}return Z});var nq;nq=window;g.Nm=nq.ytcsi&&nq.ytcsi.now?nq.ytcsi.now:nq.performance&&nq.performance.timing&&nq.performance.now&&nq.performance.timing.navigationStart?function(){return nq.performance.timing.navigationStart+nq.performance.now()}:function(){return(new Date).getTime()};g.ZH(dt,g.O);dt.prototype.U=function(Z){Z.Y===void 0&&olG(Z);var Q=Z.Y;Z.j===void 0&&olG(Z);this.Y=new g.Yv(Q,Z.j)}; dt.prototype.Br=function(){return this.Y||new g.Yv}; dt.prototype.jJ=function(){if(this.Y){var Z=(0,g.Nm)();if(this.W!=0){var Q=this.K,z=this.Y,K=Q.x-z.x;Q=Q.y-z.y;K=Math.sqrt(K*K+Q*Q)/(Z-this.W);this.j[this.S]=Math.abs((K-this.L)/this.L)>.5?1:0;for(z=Q=0;z<4;z++)Q+=this.j[z]||0;Q>=3&&this.T();this.L=K}this.W=Z;this.K=this.Y;this.S=(this.S+1)%4}}; dt.prototype.gr=function(){g.hN(this.X);g.I7(this.SJ)};g.L(NW,g.O);NW.prototype.Z=function(Z,Q,z,K,b){z=g.lW((0,g.EG)(z,K||this.gq));z={target:Z,name:Q,callback:z};var q;b&&xDG()&&(q={passive:!0});Z.addEventListener(Q,z.callback,q);this.T.push(z);return z}; NW.prototype.oy=function(Z){for(var Q=0;Q<this.T.length;Q++)if(this.T[Q]==Z){this.T.splice(Q,1);Z.target.removeEventListener(Z.name,Z.callback);break}}; NW.prototype.gr=function(){g.ib(this);g.O.prototype.gr.call(this)};a7.prototype.clone=function(){var Z=new a7,Q;for(Q in this)if(this.hasOwnProperty(Q)){var z=this[Q];Z[Q]=uu(z)=="object"?g.ae(z):z}return Z};var LlW=["att/get"],Zaf=["embedded_player"],ZOD=["account/get_setting_values"],cjU=["share/get_share_panel"],m6Q=["share/get_web_player_share_panel"],IIJ=["feedback"],Jj$=["notification/modify_channel_preference"],Xy4=["player"],yjz=["browse/edit_playlist"],KZG=["account/set_setting"],d6X=["subscription/subscribe"],Nlm=["subscription/unsubscribe"],fan=["next","unplugged/watch_next"];var R7;g.P6=vK(function(){try{var Z=new pm;var Q=Z.isAvailable()?Z:null}catch(z){return null}return Q?new g.aR(Q):null}); R7=vK(function(){var Z=new lwG;return Z.isAvailable()?new g.aR(Z):null});g.GwR=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};g.BG("yt.msgs_",g.GwR);O7.prototype.rH=function(Z,Q){Z={};var z=[];"USER_SESSION_ID"in x2&&z.push({key:"u",value:g.Ft("USER_SESSION_ID")});if(z=O9x(z))Z.Authorization=z,z=Q=Q==null?void 0:Q.sessionIndex,z===void 0&&(z=Number(g.Ft("SESSION_INDEX",0)),z=isNaN(z)?0:z),g.nA("voice_search_auth_header_removal")||(Z["X-Goog-AuthUser"]=z.toString()),"INNERTUBE_HOST_OVERRIDE"in x2||(Z["X-Origin"]=window.location.origin),Q===void 0&&"DELEGATED_SESSION_ID"in x2&&(Z["X-Goog-PageId"]=g.Ft("DELEGATED_SESSION_ID"));return Z};var YS={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var Vs=g.WG("ytglobal.prefsUserPrefsPrefs_")||{};g.BG("ytglobal.prefsUserPrefsPrefs_",Vs);var o7;g.A=lb9.prototype;g.A.get=function(Z,Q){xT(Z);ub(Z);Z=Vs[Z]!==void 0?Vs[Z].toString():null;return Z!=null?Z:Q?Q:""}; g.A.set=function(Z,Q){xT(Z);ub(Z);if(Q==null)throw Error("ExpectedNotNull");Vs[Z]=Q.toString()}; g.A.remove=function(Z){xT(Z);ub(Z);delete Vs[Z]}; g.A.save=function(){var Z=!0;g.nA("web_secure_pref_cookie_killswitch")&&(Z=!1);g.HX(this.Y,this.dump(),63072E3,this.j,Z)}; g.A.clear=function(){g.Vxn(Vs)}; g.A.dump=function(){var Z=[],Q;for(Q in Vs)Vs.hasOwnProperty(Q)&&Z.push(Q+"="+encodeURIComponent(String(Vs[Q])));return Z.join("&")}; g.A.parse=function(Z){Z=decodeURIComponent(Z).split("&");for(var Q=0;Q<Z.length;Q++){var z=Z[Q].split("="),K=z[0];(z=z[1])&&(Vs[K]=z.toString())}};var QRM={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"},n2G={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},ma4={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},KfM={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};g.L(g.tW,Error);wt.prototype.Y8=function(Z,Q){return E7(Z,1,Q)}; wt.prototype.xC=function(Z){(Z=this.Y.get(Z))&&Z()};g.WG("yt.scheduler.instance.timerIdMap_");g.L(sI,wt);sI.prototype.FZ=function(Z){if(Z===void 0||!Number.isNaN(Number(Z))){var Q=g.WG("yt.scheduler.instance.cancelJob");Q?Q(Z):g.fA(Z)}}; sI.prototype.start=function(){var Z=g.WG("yt.scheduler.instance.start");Z&&Z()}; sI.prototype.pause=function(){var Z=g.WG("yt.scheduler.instance.pause");Z&&Z()}; g.Wk=g.ZW();Kc.prototype.set=function(Z,Q,z,K){z=z||31104E3;this.remove(Z);if(this.Y)try{this.Y.set(Z,Q,Date.now()+z*1E3);return}catch(q){}var b="";if(K)try{b=escape(g.yU(Q))}catch(q){return}else b=escape(Q);g.HX(Z,b,z,this.j)}; Kc.prototype.get=function(Z,Q){var z=void 0,K=!this.Y;if(!K)try{z=this.Y.get(Z)}catch(b){K=!0}if(K&&(z=g.Mi(Z))&&(z=unescape(z),Q))try{z=JSON.parse(z)}catch(b){this.remove(Z),z=void 0}return z}; Kc.prototype.remove=function(Z){this.Y&&this.Y.remove(Z);g.US(Z,"/",this.j)}; Kc.prototype.getCreationTime=function(Z){return this.Y&&(Z=(this.Y.j(Z)||{}).creation,typeof Z==="number")?Z:null};var bQ=function(){var Z;return function(){Z||(Z=new Kc("ytidb"));return Z}}();var vs=[],rr,gr=!1;var ct={},Aw4=(ct.AUTH_INVALID="No user identifier specified.",ct.EXPLICIT_ABORT="Transaction was explicitly aborted.",ct.IDB_NOT_SUPPORTED="IndexedDB is not supported.",ct.MISSING_INDEX="Index not created.",ct.MISSING_OBJECT_STORES="Object stores not created.",ct.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",ct.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",ct.UNKNOWN_ABORT= "Transaction was aborted for unknown reasons.",ct.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",ct.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",ct.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",ct.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",ct),m0={},jRG=(m0.AUTH_INVALID="ERROR",m0.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",m0.EXPLICIT_ABORT="IGNORED", m0.IDB_NOT_SUPPORTED="ERROR",m0.MISSING_INDEX="WARNING",m0.MISSING_OBJECT_STORES="ERROR",m0.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",m0.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",m0.QUOTA_EXCEEDED="WARNING",m0.QUOTA_MAYBE_EXCEEDED="WARNING",m0.UNKNOWN_ABORT="WARNING",m0.INCOMPATIBLE_DB_VERSION="WARNING",m0),IS={},D7r=(IS.AUTH_INVALID=!1,IS.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,IS.EXPLICIT_ABORT=!1,IS.IDB_NOT_SUPPORTED=!1,IS.MISSING_INDEX=!1,IS.MISSING_OBJECT_STORES=!1,IS.DB_DELETED_BY_MISSING_OBJECT_STORES= !1,IS.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,IS.QUOTA_EXCEEDED=!1,IS.QUOTA_MAYBE_EXCEEDED=!0,IS.UNKNOWN_ABORT=!0,IS.INCOMPATIBLE_DB_VERSION=!1,IS);g.L(g.TS,g.tW);g.L(fc,g.TS);g.L(hh,Error);var vRG=["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.Iw.all=function(Z){return new g.Iw(new me(function(Q,z){var K=[],b=Z.length;b===0&&Q(K);for(var q={Zf:0};q.Zf<Z.length;q={Zf:q.Zf},++q.Zf)g.Iw.resolve(Z[q.Zf]).then(function(r){return function(D){K[r.Zf]=D;b--;b===0&&Q(K)}}(q)).catch(function(r){z(r)})}))}; g.Iw.resolve=function(Z){return new g.Iw(new me(function(Q,z){Z instanceof g.Iw?Z.then(Q,z):Q(Z)}))}; g.Iw.reject=function(Z){return new g.Iw(new me(function(Q,z){z(Z)}))}; g.Iw.prototype.then=function(Z,Q){var z=this,K=Z!=null?Z:Ytf,b=Q!=null?Q:gRn;return new g.Iw(new me(function(q,r){z.state.status==="PENDING"?(z.Y.push(function(){XC9(z,z,K,q,r)}),z.j.push(function(){StM(z,z,b,q,r)})):z.state.status==="FULFILLED"?XC9(z,z,K,q,r):z.state.status==="REJECTED"&&StM(z,z,b,q,r)}))}; g.Iw.prototype.catch=function(Z){return this.then(void 0,Z)};g.A=nRX.prototype;g.A.add=function(Z,Q,z){return g.Ps(this,[Z],{mode:"readwrite",xq:!0},function(K){return K.objectStore(Z).add(Q,z)})}; g.A.clear=function(Z){return g.Ps(this,[Z],{mode:"readwrite",xq:!0},function(Q){return Q.objectStore(Z).clear()})}; g.A.close=function(){this.Y.close();var Z;((Z=this.options)==null?0:Z.closed)&&this.options.closed()}; g.A.count=function(Z,Q){return g.Ps(this,[Z],{mode:"readonly",xq:!0},function(z){return z.objectStore(Z).count(Q)})}; g.A.delete=function(Z,Q){return g.Ps(this,[Z],{mode:"readwrite",xq:!0},function(z){return z.objectStore(Z).delete(Q)})}; g.A.get=function(Z,Q){return g.Ps(this,[Z],{mode:"readonly",xq:!0},function(z){return z.objectStore(Z).get(Q)})}; g.A.getAll=function(Z,Q,z){return g.Ps(this,[Z],{mode:"readonly",xq:!0},function(K){return K.objectStore(Z).getAll(Q,z)})}; g.A.objectStoreNames=function(){return Array.from(this.Y.objectStoreNames)}; g.A.getName=function(){return this.Y.name}; g.A=GS.prototype;g.A.add=function(Z,Q){return y6(this.Y.add(Z,Q))}; g.A.autoIncrement=function(){return this.Y.autoIncrement}; g.A.clear=function(){return y6(this.Y.clear()).then(function(){})}; g.A.count=function(Z){return y6(this.Y.count(Z))}; g.A.delete=function(Z){return Z instanceof IDBKeyRange?Jwr(this,Z):y6(this.Y.delete(Z))}; g.A.get=function(Z){return y6(this.Y.get(Z))}; g.A.getAll=function(Z,Q){return"getAll"in IDBObjectStore.prototype?y6(this.Y.getAll(Z,Q)):yw9(this,Z,Q)}; g.A.index=function(Z){try{return new imf(this.Y.index(Z))}catch(Q){if(Q instanceof Error&&Q.name==="NotFoundError")throw new hh(Z,this.Y.name);throw Q;}}; g.A.getName=function(){return this.Y.name}; g.A.keyPath=function(){return this.Y.keyPath}; pc.prototype.abort=function(){this.Y.abort();this.j=!0;throw new g.TS("EXPLICIT_ABORT");}; pc.prototype.objectStore=function(Z){Z=this.Y.objectStore(Z);var Q=this.S.get(Z);Q||(Q=new GS(Z),this.S.set(Z,Q));return Q}; g.A=imf.prototype;g.A.count=function(Z){return y6(this.Y.count(Z))}; g.A.delete=function(Z){return g.ow(this,{query:Z},function(Q){return Q.delete().then(function(){return g.UI(Q)})})}; g.A.get=function(Z){return y6(this.Y.get(Z))}; g.A.getAll=function(Z,Q){return"getAll"in IDBIndex.prototype?y6(this.Y.getAll(Z,Q)):a8W(this,Z,Q)}; g.A.keyPath=function(){return this.Y.keyPath}; g.A.unique=function(){return this.Y.unique}; Bs.prototype.delete=function(){return y6(this.cursor.delete()).then(function(){})}; Bs.prototype.getValue=function(){return this.cursor.value}; Bs.prototype.update=function(Z){return y6(this.cursor.update(Z))};V6.prototype.j=function(Z,Q,z){z=z===void 0?{}:z;return Rwr(Z,Q,z)}; V6.prototype.delete=function(Z){Z=Z===void 0?{}:Z;return Ws(this.name,Z)}; V6.prototype.open=function(){function Z(){var q,r,D,v,Y,X,S,T,f,h;return g.C(function(m){switch(m.Y){case 1:return r=(q=Error().stack)!=null?q:"",g.nX(m,2),g.P(m,z.j(z.name,z.options.version,b),4);case 4:for(var J=D=m.j,d=z.options,G=[],R=g.n(Object.keys(d.yQ)),U=R.next();!U.done;U=R.next()){U=U.value;var B=d.yQ[U],e=B.gJu===void 0?Number.MAX_VALUE:B.gJu;!(J.Y.version>=B.Mw)||J.Y.version>=e||J.Y.objectStoreNames.contains(U)||G.push(U)}v=G;if(v.length===0){m.O$(5);break}Y=Object.keys(z.options.yQ); X=D.objectStoreNames();if(z.L<g.cX("ytidb_reopen_db_retries",0))return z.L++,D.close(),Yk(new g.TS("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:z.name,expectedObjectStores:Y,foundObjectStores:X})),m.return(Z());if(!(z.W<g.cX("ytidb_remake_db_retries",1))){m.O$(6);break}z.W++;return g.P(m,z.delete(),7);case 7:return Yk(new g.TS("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:z.name,expectedObjectStores:Y,foundObjectStores:X})),m.return(Z());case 6:throw new fc(X,Y);case 5:return m.return(D);case 2:S= g.I0(m);if(S instanceof DOMException?S.name!=="VersionError":"DOMError"in self&&S instanceof DOMError?S.name!=="VersionError":!(S instanceof Object&&"message"in S)||S.message!=="An attempt was made to open a database using a lower version than the existing version."){m.O$(8);break}return g.P(m,z.j(z.name,void 0,Object.assign({},b,{upgrade:void 0})),9);case 9:T=m.j;f=T.Y.version;if(z.options.version!==void 0&&f>z.options.version+1)throw T.close(),z.S=!1,C_D(z,f);return m.return(T);case 8:throw Q(), S instanceof Error&&!g.nA("ytidb_async_stack_killswitch")&&(S.stack=S.stack+"\n"+r.substring(r.indexOf("\n")+1)),nc(S,z.name,"",(h=z.options.version)!=null?h:-1);}})} function Q(){z.Y===K&&(z.Y=void 0)} var z=this;if(!this.S)throw C_D(this);if(this.Y)return this.Y;var K,b={blocking:function(q){q.close()}, closed:Q,KGN:Q,upgrade:this.options.upgrade};return this.Y=K=Z()};var uQ=new V6("YtIdbMeta",{yQ:{databases:{Mw:1}},upgrade:function(Z,Q){Q(1)&&g.iQ(Z,"databases",{keyPath:"actualName"})}});var wr,ez=new function(){}(new function(){});new g.XO;g.L(sn,V6);sn.prototype.j=function(Z,Q,z){z=z===void 0?{}:z;return(this.options.shared?Vnr:Wf9)(Z,Q,Object.assign({},z))}; sn.prototype.delete=function(Z){Z=Z===void 0?{}:Z;return(this.options.shared?tnf:kCu)(this.name,Z)};var iGz={},ewX=g.Z4("ytGcfConfig",{yQ:(iGz.coldConfigStore={Mw:1},iGz.hotConfigStore={Mw:1},iGz),shared:!1,upgrade:function(Z,Q){Q(1)&&(g.Hs(g.iQ(Z,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.Hs(g.iQ(Z,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.L(zl,g.O);zl.prototype.gr=function(){for(var Z=g.n(this.j),Q=Z.next();!Q.done;Q=Z.next()){var z=this.Y;Q=z.indexOf(Q.value);Q>=0&&z.splice(Q,1)}this.j.length=0;g.O.prototype.gr.call(this)};j7.prototype.dP=function(Z){this.hotHashData=Z;g.BG("yt.gcf.config.hotHashData",this.hotHashData||null)};var aIn=typeof TextEncoder!=="undefined"?new TextEncoder:null,Opr=aIn?function(Z){return aIn.encode(Z)}:function(Z){Z=g.cn(Z); for(var Q=new Uint8Array(Z.length),z=0;z<Q.length;z++)Q[z]=Z[z];return Q};var wS4={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},l4x={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};X3.prototype.pZ=function(){return{version:this.version,args:this.args}};S7.prototype.toString=function(){return this.topic};var PBw=g.WG("ytPubsub2Pubsub2Instance")||new g.dd;g.dd.prototype.subscribe=g.dd.prototype.subscribe;g.dd.prototype.unsubscribeByKey=g.dd.prototype.SK;g.dd.prototype.publish=g.dd.prototype.publish;g.dd.prototype.clear=g.dd.prototype.clear;g.BG("ytPubsub2Pubsub2Instance",PBw);var fj=g.WG("ytPubsub2Pubsub2SubscribedKeys")||{};g.BG("ytPubsub2Pubsub2SubscribedKeys",fj);var hf=g.WG("ytPubsub2Pubsub2TopicToKeys")||{};g.BG("ytPubsub2Pubsub2TopicToKeys",hf);var ysu=g.WG("ytPubsub2Pubsub2IsAsync")||{}; g.BG("ytPubsub2Pubsub2IsAsync",ysu);g.BG("ytPubsub2Pubsub2SkipSubKey",null);var yS=void 0,Jf=void 0;var Hpn=g.cX("max_body_size_to_compress",5E5),MtD=g.cX("min_body_size_to_compress",500),iC=!0,Cj=0,Rf=0,o2x=g.cX("compression_performance_threshold_lr",250),BIx=g.cX("slow_compressions_before_abandon_count",4),NQ=!1,Gl=new Map,af=1,Uad=!0;g.A=HS.prototype;g.A.writeThenSend=function(Z,Q){var z=this;Q=Q===void 0?{}:Q;if(pj(this)&&this.Y){var K={url:Z,options:Q,timestamp:this.now(),status:"NEW",sendCount:0};this.Qr.set(K,this.iz).then(function(b){K.id=b;z.Tp.fK()&&z.I5(K)}).catch(function(b){z.I5(K); MQ(z,b)})}else this.sendFn(Z,Q)}; g.A.sendThenWrite=function(Z,Q,z){var K=this;Q=Q===void 0?{}:Q;if(pj(this)&&this.Y){var b={url:Z,options:Q,timestamp:this.now(),status:"NEW",sendCount:0};this.XI&&this.XI("nwl_skip_retry")&&(b.skipRetry=z);if(this.Tp.fK()||this.XI&&this.XI("nwl_aggressive_send_then_write")&&!b.skipRetry){if(!b.skipRetry){var q=Q.onError?Q.onError:function(){}; Q.onError=function(r,D){return g.C(function(v){if(v.Y==1)return g.P(v,K.Qr.set(b,K.iz).catch(function(Y){MQ(K,Y)}),2); q(r,D);g.LX(v)})}}this.sendFn(Z,Q,b.skipRetry)}else this.Qr.set(b,this.iz).catch(function(r){K.sendFn(Z,Q,b.skipRetry); MQ(K,r)})}else z=this.XI&&this.XI("nwl_skip_retry")&&z,this.sendFn(Z,Q,z)}; g.A.sendAndWrite=function(Z,Q){var z=this;Q=Q===void 0?{}:Q;if(pj(this)&&this.Y){var K={url:Z,options:Q,timestamp:this.now(),status:"NEW",sendCount:0},b=!1,q=Q.onSuccess?Q.onSuccess:function(){}; K.options.onSuccess=function(r,D){K.id!==void 0?z.Qr.jd(K.id,z.iz):b=!0;z.Tp.CQ&&z.XI&&z.XI("vss_network_hint")&&z.Tp.CQ(!0);q(r,D)}; this.sendFn(K.url,K.options,void 0,!0);this.Qr.set(K,this.iz).then(function(r){K.id=r;b&&z.Qr.jd(K.id,z.iz)}).catch(function(r){MQ(z,r)})}else this.sendFn(Z,Q,void 0,!0)}; g.A.mR=function(){var Z=this;if(!pj(this))throw Error("IndexedDB is not supported: throttleSend");this.j||(this.j=this.b1.Y8(function(){var Q;return g.C(function(z){if(z.Y==1)return g.P(z,Z.Qr.N2("NEW",Z.iz),2);if(z.Y!=3)return Q=z.j,Q?g.P(z,Z.I5(Q),3):(Z.nY(),z.return());Z.j&&(Z.j=0,Z.mR());g.LX(z)})},this.M6))}; g.A.nY=function(){this.b1.FZ(this.j);this.j=0}; g.A.I5=function(Z){var Q=this,z;return g.C(function(K){switch(K.Y){case 1:if(!pj(Q))throw Error("IndexedDB is not supported: immediateSend");if(Z.id===void 0){K.O$(2);break}return g.P(K,Q.Qr.w4r(Z.id,Q.iz),3);case 3:(z=K.j)||Q.fF(Error("The request cannot be found in the database."));case 2:if(Q.lS(Z,Q.TZ)){K.O$(4);break}Q.fF(Error("Networkless Logging: Stored logs request expired age limit"));if(Z.id===void 0){K.O$(5);break}return g.P(K,Q.Qr.jd(Z.id,Q.iz),5);case 5:return K.return();case 4:Z.skipRetry|| (Z=ttG(Q,Z));if(!Z){K.O$(0);break}if(!Z.skipRetry||Z.id===void 0){K.O$(8);break}return g.P(K,Q.Qr.jd(Z.id,Q.iz),8);case 8:Q.sendFn(Z.url,Z.options,!!Z.skipRetry),g.LX(K)}})}; g.A.lS=function(Z,Q){Z=Z.timestamp;return this.now()-Z>=Q?!1:!0}; g.A.qo=function(){var Z=this;if(!pj(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.Qr.N2("QUEUED",this.iz).then(function(Q){Q&&!Z.lS(Q,Z.cU)?Z.b1.Y8(function(){return g.C(function(z){if(z.Y==1)return Q.id===void 0?z.O$(2):g.P(z,Z.Qr.XK(Q.id,Z.iz),2);Z.qo();g.LX(z)})}):Z.Tp.fK()&&Z.mR()})};var Un;var hg9={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 RJE={},KYu=g.Z4("ServiceWorkerLogsDatabase",{yQ:(RJE.SWHealthLog={Mw:1},RJE),shared:!0,upgrade:function(Z,Q){Q(1)&&g.Hs(g.iQ(Z,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var BS={},Diu=0;var WS;kS.prototype.requestComplete=function(Z,Q){Q&&(this.j=!0);Z=this.removeParams(Z);this.Y.get(Z)||this.Y.set(Z,Q)}; kS.prototype.isEndpointCFR=function(Z){Z=this.removeParams(Z);return(Z=this.Y.get(Z))?!1:Z===!1&&this.j?!0:null}; kS.prototype.removeParams=function(Z){return Z.split("?")[0]}; kS.prototype.removeParams=kS.prototype.removeParams;kS.prototype.isEndpointCFR=kS.prototype.isEndpointCFR;kS.prototype.requestComplete=kS.prototype.requestComplete;kS.getInstance=uC;g.L(xS,g.wC);g.A=xS.prototype;g.A.fK=function(){return this.Y.fK()}; g.A.CQ=function(Z){this.Y.Y=Z}; g.A.yn=function(){var Z=window.navigator.onLine;return Z===void 0?!0:Z}; g.A.k0=function(){this.j=!0}; g.A.listen=function(Z,Q){return this.Y.listen(Z,Q)}; g.A.j1=function(Z){Z=oF(this.Y,Z);Z.then(function(Q){g.nA("use_cfr_monitor")&&uC().requestComplete("generate_204",Q)}); return Z}; xS.prototype.sendNetworkCheckRequest=xS.prototype.j1;xS.prototype.listen=xS.prototype.listen;xS.prototype.enableErrorFlushing=xS.prototype.k0;xS.prototype.getWindowStatus=xS.prototype.yn;xS.prototype.networkStatusHint=xS.prototype.CQ;xS.prototype.isNetworkAvailable=xS.prototype.fK;xS.getInstance=YSn;g.L(g.tf,g.wC);g.tf.prototype.fK=function(){var Z=g.WG("yt.networkStatusManager.instance.isNetworkAvailable");return Z?Z.bind(this.j)():!0}; g.tf.prototype.CQ=function(Z){var Q=g.WG("yt.networkStatusManager.instance.networkStatusHint").bind(this.j);Q&&Q(Z)}; g.tf.prototype.j1=function(Z){var Q=this,z;return g.C(function(K){z=g.WG("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(Q.j);return g.nA("skip_network_check_if_cfr")&&uC().isEndpointCFR("generate_204")?K.return(new Promise(function(b){var q;Q.CQ(((q=window.navigator)==null?void 0:q.onLine)||!0);b(Q.fK())})):z?K.return(z(Z)):K.return(!0)})};var F3;g.L(e7,HS);e7.prototype.writeThenSend=function(Z,Q){Q||(Q={});Q=En(Z,Q);g.ej()||(this.Y=!1);HS.prototype.writeThenSend.call(this,Z,Q)}; e7.prototype.sendThenWrite=function(Z,Q,z){Q||(Q={});Q=En(Z,Q);g.ej()||(this.Y=!1);HS.prototype.sendThenWrite.call(this,Z,Q,z)}; e7.prototype.sendAndWrite=function(Z,Q){Q||(Q={});Q=En(Z,Q);g.ej()||(this.Y=!1);HS.prototype.sendAndWrite.call(this,Z,Q)}; e7.prototype.awaitInitialization=function(){return this.S.promise};var fXW=g.OG.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.BG("ytNetworklessLoggingInitializationOptions",fXW);g.lC.prototype.isReady=function(){!this.config_&&Yfn()&&(this.config_=g.vS());return!!this.config_};var CBw,QJ,Kl;CBw=g.OG.ytPubsubPubsubInstance||new g.dd;QJ=g.OG.ytPubsubPubsubSubscribedKeys||{};Kl=g.OG.ytPubsubPubsubTopicToKeys||{};g.zt=g.OG.ytPubsubPubsubIsSynchronous||{};g.dd.prototype.subscribe=g.dd.prototype.subscribe;g.dd.prototype.unsubscribeByKey=g.dd.prototype.SK;g.dd.prototype.publish=g.dd.prototype.publish;g.dd.prototype.clear=g.dd.prototype.clear;g.BG("ytPubsubPubsubInstance",CBw);g.BG("ytPubsubPubsubTopicToKeys",Kl);g.BG("ytPubsubPubsubIsSynchronous",g.zt); g.BG("ytPubsubPubsubSubscribedKeys",QJ);var IXD={};g.L(fl,g.O);fl.prototype.append=function(Z){if(!this.j)throw Error("This does not support the append operation");Z=Z.OA();this.OA().appendChild(Z)}; g.L(hX,fl);hX.prototype.OA=function(){return this.Y};g.L(di4,g.O);var Ll=Date.now().toString();var JX={};var im=Symbol("injectionDeps");d1.prototype.toString=function(){return"InjectionToken("+this.name+")"}; aX0.prototype.resolve=function(Z){return Z instanceof NF?aY(this,Z.key,[],!0):aY(this,Z,[])};var P9;var Cl=window;var Uh=g.nA("web_enable_lifecycle_monitoring")&&pl()!==0,UiG=g.nA("web_enable_lifecycle_monitoring");pXf.prototype.cancel=function(){for(var Z=g.n(this.Y),Q=Z.next();!Q.done;Q=Z.next())Q=Q.value,Q.jobId===void 0||Q.oI||this.scheduler.FZ(Q.jobId),Q.oI=!0;this.j.resolve()};g.A=Oh.prototype;g.A.install=function(Z){this.plugins.push(Z);return this}; g.A.uninstall=function(){var Z=this;g.iu.apply(0,arguments).forEach(function(Q){Q=Z.plugins.indexOf(Q);Q>-1&&Z.plugins.splice(Q,1)})}; g.A.transition=function(Z,Q){var z=this;Uh&&RKG(this.state);var K=this.transitions.find(function(q){return Array.isArray(q.from)?q.from.find(function(r){return r===z.state&&q.uN===Z}):q.from===z.state&&q.uN===Z}); if(K){this.j&&(HAX(this.j),this.j=void 0);OAx(this,Z,Q);this.state=Z;Uh&&H9(this.state);K=K.action.bind(this);var b=this.plugins.filter(function(q){return q[Z]}).map(function(q){return q[Z]}); K(MLn(this,b),Q)}else throw Error("no transition specified from "+this.state+" to "+Z);}; g.A.b0g=function(Z){var Q=g.iu.apply(1,arguments);g.ZW();for(var z=g.n(Z),K=z.next(),b={};!K.done;b={f7:void 0},K=z.next())b.f7=K.value,qtn(function(q){return function(){B9(q.f7.name);VJ(function(){return q.f7.callback.apply(q.f7,g.I(Q))}); W9(q.f7.name)}}(b))}; g.A.O0G=function(Z){var Q=g.iu.apply(1,arguments),z,K,b,q;return g.C(function(r){r.Y==1&&(g.ZW(),z=g.n(Z),K=z.next(),b={});if(r.Y!=3){if(K.done)return r.O$(0);b.MA=K.value;b.Zn=void 0;q=function(D){return function(){B9(D.MA.name);var v=VJ(function(){return D.MA.callback.apply(D.MA,g.I(Q))}); bJ(v)?D.Zn=g.nA("web_lifecycle_error_handling_killswitch")?v.then(function(){W9(D.MA.name)}):v.then(function(){W9(D.MA.name)},function(Y){CVG(Y); W9(D.MA.name)}):W9(D.MA.name)}}(b); qtn(q);return b.Zn?g.P(r,b.Zn,3):r.O$(3)}b={MA:void 0,Zn:void 0};K=z.next();return r.O$(2)})}; g.A.WC=function(Z){var Q=g.iu.apply(1,arguments),z=this,K=Z.map(function(b){return{Ri:function(){B9(b.name);VJ(function(){return b.callback.apply(b,g.I(Q))}); W9(b.name)}, priority:oY(z,b)}}); K.length&&(this.j=new pXf(K))}; g.An.Object.defineProperties(Oh.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var um;g.L(k9,Oh);k9.prototype.L=function(Z,Q){var z=this;this.Y=g.lb(0,function(){z.currentState==="application_navigating"&&z.transition("none")},5E3); Z(Q==null?void 0:Q.event)}; k9.prototype.K=function(Z,Q){this.Y&&(g.Wk.FZ(this.Y),this.Y=null);Z(Q==null?void 0:Q.event)};var fO=[];g.BG("yt.logging.transport.getScrapedGelPayloads",function(){return fO});x9.prototype.storePayload=function(Z,Q){Z=tX(Z);this.store[Z]?this.store[Z].push(Q):(this.j={},this.store[Z]=[Q]);this.Y++;g.nA("more_accurate_gel_parser")&&(Q=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(Q));return Z}; x9.prototype.smartExtractMatchingEntries=function(Z){if(!Z.keys.length)return[];for(var Q=ek(this,Z.keys.splice(0,1)[0]),z=[],K=0;K<Q.length;K++)this.store[Q[K]]&&Z.sizeLimit&&(this.store[Q[K]].length<=Z.sizeLimit?(z.push.apply(z,g.I(this.store[Q[K]])),delete this.store[Q[K]]):z.push.apply(z,g.I(this.store[Q[K]].splice(0,Z.sizeLimit))));this.Y-=z.length;(Z==null?0:Z.sizeLimit)&&z.length<(Z==null?void 0:Z.sizeLimit)&&(Z.sizeLimit-=z.length,z.push.apply(z,g.I(this.smartExtractMatchingEntries(Z)))); return z}; x9.prototype.extractMatchingEntries=function(Z){Z=ek(this,Z);for(var Q=[],z=0;z<Z.length;z++)this.store[Z[z]]&&(Q.push.apply(Q,g.I(this.store[Z[z]])),delete this.store[Z[z]]);this.Y-=Q.length;return Q}; x9.prototype.getSequenceCount=function(Z){Z=ek(this,Z);for(var Q=0,z=0;z<Z.length;z++){var K=void 0;Q+=((K=this.store[Z[z]])==null?void 0:K.length)||0}return Q}; x9.prototype.getSequenceCount=x9.prototype.getSequenceCount;x9.prototype.extractMatchingEntries=x9.prototype.extractMatchingEntries;x9.prototype.smartExtractMatchingEntries=x9.prototype.smartExtractMatchingEntries;x9.prototype.storePayload=x9.prototype.storePayload;var q7n=g.cX("initial_gel_batch_timeout",2E3),bS9=g.cX("gel_queue_timeout_max_ms",6E4),rW9=g.cX("gel_min_batch_size",5),qU=void 0,fTX=new w1,Ttn=new w1,KCD=new w1,zgW=new w1,Ay,Xs=!0,T1=1,lm=new Map,g9=g.OG.ytLoggingTransportTokensToCttTargetIds_||{};g.BG("ytLoggingTransportTokensToCttTargetIds_",g9);var vc=g.OG.ytLoggingTransportTokensToJspbCttTargetIds_||{};g.BG("ytLoggingTransportTokensToJspbCttTargetIds_",vc);var z1={},BpX=!1;var hy=g.OG.ytLoggingGelSequenceIdObj_||{};g.BG("ytLoggingGelSequenceIdObj_",hy);var w6X=[];var aTW,Jc=g.OG.ytLoggingDocDocumentNonce_;Jc||(Jc=g.c9(16),g.BG("ytLoggingDocDocumentNonce_",Jc));aTW=Jc;var NtM={Ow:0,bMr:1,TVI:2,G9:3,ytI:4,LC$:5,P7$:6,SHARE:7,hkh:8,gZr:9,dyB:10,f$r: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 nTG=1;g.A=nO.prototype;g.A.getAsJson=function(){var Z={};this.Y.trackingParams!==void 0?Z.trackingParams=this.Y.trackingParams:(Z.veType=this.Y.veType,this.Y.veCounter!==void 0&&(Z.veCounter=this.Y.veCounter),this.Y.elementIndex!==void 0&&(Z.elementIndex=this.Y.elementIndex));this.Y.dataElement!==void 0&&(Z.dataElement=this.Y.dataElement.getAsJson());this.Y.youtubeData!==void 0&&(Z.youtubeData=this.Y.youtubeData);this.Y.isCounterfactual&&(Z.isCounterfactual=!0);return Z}; g.A.getAsJspb=function(){var Z=new PF;this.Y.trackingParams!==void 0?Z.setTrackingParams(this.Y.trackingParams):(this.Y.veType!==void 0&&oI(Z,2,vL(this.Y.veType)),this.Y.veCounter!==void 0&&oI(Z,6,vL(this.Y.veCounter)),this.Y.elementIndex!==void 0&&oI(Z,3,vL(this.Y.elementIndex)),this.Y.isCounterfactual&&oI(Z,5,A6(!0)));if(this.Y.dataElement!==void 0){var Q=this.Y.dataElement.getAsJspb();jp(Z,PF,7,Q)}this.Y.youtubeData!==void 0&&jp(Z,Mrr,8,this.Y.jspbYoutubeData);return Z}; g.A.toString=function(){return JSON.stringify(this.getAsJson())}; g.A.isClientVe=function(){return!this.Y.trackingParams&&!!this.Y.veType}; g.A.getLoggingDirectives=function(){return this.Y.loggingDirectives};g.BG("yt_logging_screen.getRootVeType",JWr);g.BG("yt_logging_screen.getCurrentCsn",g.Jy);g.BG("yt_logging_screen.getCttAuthInfo",y4);g.BG("yt_logging_screen.setCurrentScreen",Pb4);var p6M="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var kMM=[{DX:function(Z){return"Cannot read property '"+Z.key+"'"}, OF:{Error:[{UZ:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{UZ:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{UZ:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{UZ:/\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"]},{UZ:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{UZ:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{UZ:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{DX:function(Z){return"Cannot call '"+Z.key+"'"}, OF:{TypeError:[{UZ:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{UZ:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{UZ:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{UZ:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{UZ:/\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"]}, {UZ:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{DX:function(Z){return Z.key+" is not defined"}, OF:{ReferenceError:[{UZ:/(.*) is not defined/,groups:["key"]},{UZ:/Can't find variable: (.*)/,groups:["key"]}]}}];var OSG={MD:[],Q_:[{callback:HS0,weight:500}]};var NU;var pO=new g.dd;var uYu=new Set,WCD=0,FCr=0,tj4=0,VjX=[],egD=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var lTx=new g.dI("parallelCommand");var Qwr=new g.dI("performOnceCommand");var Zcf=new g.dI("serialCommand");var MU=void 0;var pDz=g.n(m9u({},"Z39Sdf"));pDz.next();pDz.next();var HGz=g.n(m9u(null,"qqrkLd"));HGz.next();HGz.next();g.L(om,X3);var Jsx=new S7("screen-created",om),lO=[],Ke0=jwx,s2=0,Wc=new Map,V4=new Map,kY=new Map;g.ZH(g.rV,g.O);g.A=g.rV.prototype;g.A.subscribe=function(Z,Q,z){return this.FI()?0:this.yF.subscribe(Z,Q,z)}; g.A.unsubscribe=function(Z,Q,z){return this.FI()?!1:this.yF.unsubscribe(Z,Q,z)}; g.A.SK=function(Z){return this.FI()?!1:this.yF.SK(Z)}; g.A.publish=function(Z,Q){return this.FI()?!1:this.yF.publish.apply(this.yF,arguments)}; g.A.EK=function(Z,Q){for(var z in Z)this.subscribe(z,Z[z],Q)}; g.A.wk=function(Z,Q){for(var z in Z)this.unsubscribe(z,Z[z],Q)};var O0n=16/9,yj=[.25,.5,.75,1,1.25,1.5,1.75,2],MBQ=yj.concat([3,4,5,6,7,8,9,10,15]),U6E=yj.concat([2.5,3,3.5,4]),OGU=yj.concat([2.5,3]);var Dm0=1;g.L(g.jN,g.O);g.A=g.jN.prototype; g.A.createElement=function(Z,Q){Q=Q||Z.B==="svg";var z=Z.D,K=Z.nN;if(Q){var b=document.createElementNS("http://www.w3.org/2000/svg",Z.B);g.tC&&(Z.C||(Z.C={}),Z.C.focusable="false")}else b=g.lY(Z.B);if(z){if(z=Dz(this,b,"class",z))vI(this,b,"class",z),this.DI[z]=b}else if(K){z=g.n(K);for(var q=z.next();!q.done;q=z.next())this.DI[q.value]=b;vI(this,b,"class",K.join(" "))}K=Z.W7;z=Z.G;if(K)Q=Dz(this,b,"child",K),Q!==void 0&&b.appendChild(g.sl(Q));else if(z)for(K=0,z=g.n(z),q=z.next();!q.done;q=z.next())if(q= q.value)if(typeof q==="string")q=Dz(this,b,"child",q),q!=null&&b.appendChild(g.sl(q));else if(q.element)b.appendChild(q.element);else{var r=q;q=this.createElement(r,Q);b.appendChild(q);r.KL&&(r=AB(),q.id=r,q=document.createElementNS("http://www.w3.org/2000/svg","use"),q.setAttribute("class","ytp-svg-shadow"),q.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+r),zB(b,q,K++))}if(Z=Z.C)for(Q=b,K=g.n(Object.keys(Z)),z=K.next();!z.done;z=K.next())z=z.value,q=Z[z],vI(this,Q,z,typeof q==="string"? Dz(this,Q,z,q):q);return b}; g.A.Ru=function(Z){return this.DI[Z]}; g.A.zf=function(Z,Q){typeof Q==="number"?zB(Z,this.element,Q):Z.appendChild(this.element)}; g.A.detach=function(){g.K$(this.element)}; g.A.update=function(Z){for(var Q=g.n(Object.keys(Z)),z=Q.next();!z.done;z=Q.next())z=z.value,this.updateValue(z,Z[z])}; g.A.updateValue=function(Z,Q){(Z=this.ex["{{"+Z+"}}"])&&vI(this,Z[0],Z[1],Q)}; g.A.gr=function(){this.DI={};this.ex={};this.detach();g.O.prototype.gr.call(this)};g.L(g.x,g.jN);g.A=g.x.prototype;g.A.Wo=function(Z,Q){this.updateValue(Q||"content",Z)}; g.A.show=function(){this.RT||(g.Dw(this.element,"display",""),this.RT=!0)}; g.A.hide=function(){this.RT&&(g.Dw(this.element,"display","none"),this.RT=!1)}; g.A.Wh=function(Z){Z?this.show():this.hide()}; g.A.yw=function(Z){this.L=Z}; g.A.listen=function(Z,Q,z){return this.Z(this.element,Z,Q,z)}; g.A.Z=function(Z,Q,z,K){z=(0,g.EG)(z,K||this);K={target:Z,type:Q,listener:z};this.listeners.push(K);Z.addEventListener(Q,z);return K}; g.A.oy=function(Z){var Q=this;this.listeners.forEach(function(z,K){z===Z&&(z=Q.listeners.splice(K,1)[0],z.target.removeEventListener(z.type,z.listener))})}; g.A.focus=function(){this.element.focus()}; g.A.gr=function(){for(;this.listeners.length;){var Z=this.listeners.pop();Z&&Z.target.removeEventListener(Z.type,Z.listener)}g.jN.prototype.gr.call(this)};g.L(g.gV,g.x);g.gV.prototype.subscribe=function(Z,Q,z){return this.Du.subscribe(Z,Q,z)}; g.gV.prototype.unsubscribe=function(Z,Q,z){return this.Du.unsubscribe(Z,Q,z)}; g.gV.prototype.SK=function(Z){return this.Du.SK(Z)}; g.gV.prototype.publish=function(Z){return this.Du.publish.apply(this.Du,[Z].concat(g.I(g.iu.apply(1,arguments))))};var onX=new WeakSet;g.L(Yf,g.gV);g.A=Yf.prototype;g.A.bind=function(Z){this.s$||Z.renderer&&this.init(Z.id,Z.renderer,{},Z);return Promise.resolve()}; g.A.init=function(Z,Q,z){this.s$=Z;this.element.setAttribute("id",this.s$);this.Qp&&g.rd(this.element,this.Qp);this.jJ=Q&&Q.adRendererCommands;this.c7=Q.interaction;var K;((K=this.c7)==null?0:K.onTap)&&g.rd(this.element,"ytp-ad-component--clickable");this.macros=z;this.X=Q.trackingParams||null;var b,q;this.T=(q=(b=g.V(Q.rendererContext,VRz))==null?void 0:b.loggingDirectives)!=null?q:Q.loggingDirectives;this.X!=null?this.createServerVe(this.element,this.X):this.T&&(Z=this.element,Q=this.T,this.api.createServerVe(Z, this,!0),this.api.setTrackingParams(Z,Q.trackingParams||null))}; g.A.clear=function(){}; g.A.hide=function(){g.gV.prototype.hide.call(this);(this.X!=null||this.T)&&this.logVisibility(this.element,!1)}; g.A.show=function(){g.gV.prototype.show.call(this);if(!this.gq){this.gq=!0;var Z=this.jJ&&this.jJ.impressionCommand,Q,z=(Q=this.c7)==null?void 0:Q.onFirstVisible;Z?this.qf(Z):z&&(Z=Uu(z))&&this.qf(Z)}(this.X!=null||this.T)&&this.logVisibility(this.element,!0)}; g.A.onClick=function(Z){if((this.X||this.T)&&!onX.has(Z)){var Q=this.element;this.api.hasVe(Q)&&this.RT&&this.api.logClick(Q,this.interactionLoggingClientData);onX.add(Z)}var z=this.jJ&&this.jJ.clickCommand,K;Q=(K=this.c7)==null?void 0:K.onTap;if(z)Q=this.Li(z),this.qf(Q);else{if(K=Q)a:{K=this.element;Z=Z.composedPath();Z=g.n(Z);for(z=Z.next();!z.done;z=Z.next()){z=z.value;if(z===K)break;if(z.className.indexOf("ytp-ad-component--clickable")>=0){K=!1;break a}}K=!0}K&&(Q=Uu(Q))&&this.qf(Q)}}; g.A.Li=function(Z){return Z}; g.A.Xa=function(Z){var Q=this.P7;Q.T=!0;Q.j=Z.touches.length;Q.Y.isActive()&&(Q.Y.stop(),Q.L=!0);Z=Z.touches;Q.K=Npx(Q,Z)||Z.length!=1;var z=Z.item(0);Q.K||!z?(Q.X=Infinity,Q.U=Infinity):(Q.X=z.clientX,Q.U=z.clientY);for(z=Q.S.length=0;z<Z.length;z++){var K=Z.item(z);Q.S.push(K.identifier)}}; g.A.y8=function(Z){var Q=this.P7;Z=Z.changedTouches.item(0);var z;if(z=k$()){z=g.iU();var K="";if(t4M())K=/Windows (?:NT|Phone) ([0-9.]+)/,K=(z=K.exec(z))?z[1]:"0.0";else if(k$())K=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,K=(z=K.exec(z))&&z[1].replace(/_/g,".");else if(uU())K=/Mac OS X ([0-9_.]+)/,K=(z=K.exec(z))?z[1].replace(/_/g,"."):"10";else if(yz(g.iU(),"KaiOS"))K=/(?:KaiOS)\/(\S+)/i,K=(z=K.exec(z))&&z[1];else if(xrX())K=/Android\s+([^\);]+)(\)|;)/,K=(z=K.exec(z))&&z[1];else if(Wn()?RE.platform=== "Chrome OS":pz("CrOS"))K=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,K=(z=K.exec(z))&&z[1];z=!(g.GJ(K||"",8)>=0)}if(z||Z&&Math.pow(Z.clientX-Q.X,2)+Math.pow(Z.clientY-Q.U,2)>25)Q.W=!0}; g.A.sO=function(Z){if(this.P7){var Q=this.P7,z=Z.changedTouches;z&&Q.T&&Q.j==1&&!Q.W&&!Q.L&&!Q.K&&Npx(Q,z)&&(Q.jJ=Z,Q.Y.start());Q.j=Z.touches.length;Q.j===0&&(Q.T=!1,Q.W=!1,Q.S.length=0);Q.L=!1}}; g.A.qf=function(Z){this.layoutId?this.au.executeCommand(Z,this.layoutId):g.Rm(new g.tW("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))}; g.A.createServerVe=function(Z,Q){this.api.createServerVe(Z,this);this.api.setTrackingParams(Z,Q)}; g.A.logVisibility=function(Z,Q){this.api.hasVe(Z)&&this.api.logVisibility(Z,Q,this.interactionLoggingClientData)}; g.A.gr=function(){this.clear(null);this.oy(this.CN);for(var Z=g.n(this.JG),Q=Z.next();!Q.done;Q=Z.next())this.oy(Q.value);g.gV.prototype.gr.call(this)};g.L(ap,Yf); ap.prototype.init=function(Z,Q,z){Yf.prototype.init.call(this,Z,Q,z);this.Y=Q;if(Q.text==null&&Q.icon==null)g.CO(Error("ButtonRenderer did not have text or an icon set."));else{switch(Q.style||null){case "STYLE_UNKNOWN":Z="ytp-ad-button-link";break;default:Z=null}Z!=null&&g.rd(this.element,Z);Q.text!=null&&(Z=g.SN(Q.text),g.IE(Z)||(this.element.setAttribute("aria-label",Z),this.S=new g.gV({B:"span",D:"ytp-ad-button-text",W7:Z}),g.W(this,this.S),this.S.zf(this.element)));Q.accessibilityData&&Q.accessibilityData.accessibilityData&& Q.accessibilityData.accessibilityData.label&&!g.IE(Q.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",Q.accessibilityData.accessibilityData.label);Q.icon!=null&&(Q=io(Q.icon,this.W),Q!=null&&(this.j=new g.gV({B:"span",D:"ytp-ad-button-icon",G:[Q]}),g.W(this,this.j)),this.K?zB(this.element,this.j.element,0):this.j.zf(this.element))}}; ap.prototype.clear=function(){this.hide()}; ap.prototype.onClick=function(Z){Yf.prototype.onClick.call(this,Z);Z=g.n(aWf(this));for(var Q=Z.next();!Q.done;Q=Z.next())Q=Q.value,this.layoutId?this.au.executeCommand(Q,this.layoutId):g.Rm(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.L(PI,g.O);PI.prototype.gr=function(){this.j&&g.I7(this.j);this.Y.clear();Rp=null;g.O.prototype.gr.call(this)}; PI.prototype.register=function(Z,Q){Q&&this.Y.set(Z,Q)}; var Rp=null;g.L(HI,Yf); HI.prototype.init=function(Z,Q,z){Yf.prototype.init.call(this,Z,Q,z);Z=Q.hoverText||null;Q=Q.button&&g.V(Q.button,g.RU)||null;Q==null?g.Rm(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new ap(this.api,this.layoutId,this.interactionLoggingClientData,this.au,void 0,void 0,void 0,void 0,this.S),g.W(this,this.button),this.button.init(bo("button"),Q,this.macros),Z&&this.button.element.setAttribute("aria-label",g.SN(Z)),this.button.zf(this.element),this.U&&!g.q7(this.button.element, "ytp-ad-clickable")&&g.rd(this.button.element,"ytp-ad-clickable"),this.S&&(g.rd(this.button.element,"ytp-ad-hover-text-button--clean-player"),this.api.V("clean_player_style_fix_on_web")&&g.rd(this.button.element,"ytp-ad-hover-text-button--clean-player-with-light-shadow")),Z&&(this.j=new g.gV({B:"div",D:"ytp-ad-hover-text-container"}),this.K&&(Q=new g.gV({B:"div",D:"ytp-ad-hover-text-callout"}),Q.zf(this.j.element),g.W(this,Q)),g.W(this,this.j),this.j.zf(this.element),Q=Ci(Z),zB(this.j.element,Q,0)), this.show())}; HI.prototype.hide=function(){this.button&&this.button.hide();this.j&&this.j.hide();Yf.prototype.hide.call(this)}; HI.prototype.show=function(){this.button&&this.button.show();Yf.prototype.show.call(this)};g.L(U2,Yf); U2.prototype.init=function(Z,Q,z){Yf.prototype.init.call(this,Z,Q,z);z=(Z=Q.thumbnail)&&ME(Z)||"";g.IE(z)?Math.random()<.01&&g.CO(Error("Found AdImage without valid image URL")):(this.Y?g.Dw(this.element,"backgroundImage","url("+z+")"):tl(this.element,{src:z}),tl(this.element,{alt:Z&&Z.accessibility&&Z.accessibility.label||""}),Q&&Q.adRendererCommands&&Q.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; U2.prototype.clear=function(){this.hide()};g.L(O2,Yf);g.A=O2.prototype;g.A.hide=function(){Yf.prototype.hide.call(this);this.S&&this.S.focus()}; g.A.show=function(){this.S=document.activeElement;Yf.prototype.show.call(this);this.W.focus()}; g.A.init=function(Z,Q,z){Yf.prototype.init.call(this,Z,Q,z);this.j=Q;Q.dialogMessages||Q.title!=null?Q.confirmLabel==null?g.Rm(Error("ConfirmDialogRenderer.confirmLabel was not set.")):Q.cancelLabel==null?g.Rm(Error("ConfirmDialogRenderer.cancelLabel was not set.")):psf(this,Q):g.Rm(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.A.clear=function(){g.ib(this.Y);this.hide()}; g.A.gG=function(){this.hide()}; g.A.rR=function(){var Z=this.j.cancelEndpoint;Z&&(this.layoutId?this.au.executeCommand(Z,this.layoutId):g.Rm(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.A.Wd=function(){var Z=this.j.confirmNavigationEndpoint||this.j.confirmEndpoint;Z&&(this.layoutId?this.au.executeCommand(Z,this.layoutId):g.Rm(Error("Missing layoutId for confirm dialog.")));this.hide()};g.L(op,Yf);g.A=op.prototype; g.A.init=function(Z,Q,z){Yf.prototype.init.call(this,Z,Q,z);this.S=Q;if(Q.defaultText==null&&Q.defaultIcon==null)g.Rm(Error("ToggleButtonRenderer must have either text or icon set."));else if(Q.defaultIcon==null&&Q.toggledIcon!=null)g.Rm(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(Q.style){switch(Q.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":Z="ytp-ad-toggle-button-default-style";break;default:Z=null}Z!=null&&g.rd(this.W,Z)}Z={};Q.defaultText? (z=g.SN(Q.defaultText),g.IE(z)||(Z.buttonText=z,this.api.N().experiments.XI("a11y_h5_associate_survey_question")||this.Y.setAttribute("aria-label",z),this.api.N().experiments.XI("fix_h5_toggle_button_a11y")&&this.j.setAttribute("aria-label",z))):g.c$(this.KN,!1);Q.defaultTooltip&&(Z.tooltipText=Q.defaultTooltip,this.Y.hasAttribute("aria-label")||this.j.setAttribute("aria-label",Q.defaultTooltip));Q.defaultIcon?(z=io(Q.defaultIcon),this.updateValue("untoggledIconTemplateSpec",z),Q.toggledIcon?(this.SJ= !0,z=io(Q.toggledIcon),this.updateValue("toggledIconTemplateSpec",z)):(g.c$(this.U,!0),g.c$(this.K,!1)),g.c$(this.Y,!1)):g.c$(this.j,!1);g.Ne(Z)||this.update(Z);Q.isToggled&&(g.rd(this.W,"ytp-ad-toggle-button-toggled"),this.toggleButton(Q.isToggled));BI(this);this.Z(this.element,"change",this.tK);this.show()}}; g.A.onClick=function(Z){this.JG.length>0&&(this.toggleButton(!this.isToggled()),this.tK());Yf.prototype.onClick.call(this,Z)}; g.A.tK=function(){g.vC(this.W,"ytp-ad-toggle-button-toggled",this.isToggled());for(var Z=g.n(HcX(this,this.isToggled())),Q=Z.next();!Q.done;Q=Z.next())Q=Q.value,this.layoutId?this.au.executeCommand(Q,this.layoutId):g.Rm(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);BI(this)}; g.A.clear=function(){this.hide()}; g.A.toggleButton=function(Z){g.vC(this.W,"ytp-ad-toggle-button-toggled",Z);this.Y.checked=Z;BI(this)}; g.A.isToggled=function(){return this.Y.checked};g.L(WI,NW);WI.prototype.K=function(Z){if(Array.isArray(Z)){Z=g.n(Z);for(var Q=Z.next();!Q.done;Q=Z.next())Q=Q.value,Q instanceof Mzn&&this.W(Q)}};g.L(Vw,Yf);g.A=Vw.prototype;g.A.init=function(Z,Q,z){Yf.prototype.init.call(this,Z,Q,z);Q.reasons?Q.confirmLabel==null?g.Rm(Error("AdFeedbackRenderer.confirmLabel was not set.")):(Q.cancelLabel==null&&g.CO(Error("AdFeedbackRenderer.cancelLabel was not set.")),Q.title==null&&g.CO(Error("AdFeedbackRenderer.title was not set.")),Brd(this,Q)):g.Rm(Error("AdFeedbackRenderer.reasons were not set."))}; g.A.clear=function(){JW(this.K);JW(this.U);this.W.length=0;this.hide()}; g.A.hide=function(){this.Y&&this.Y.hide();this.j&&this.j.hide();Yf.prototype.hide.call(this);this.S&&this.S.focus()}; g.A.show=function(){this.Y&&this.Y.show();this.j&&this.j.show();this.S=document.activeElement;Yf.prototype.show.call(this);this.K.focus()}; g.A.Ro=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.A.gXJ=function(){this.hide()}; kf.prototype.OA=function(){return this.Y.element}; kf.prototype.getCommand=function(){return this.j}; kf.prototype.isChecked=function(){return this.S.checked};g.L(uo,O2);uo.prototype.gG=function(Z){O2.prototype.gG.call(this,Z);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; uo.prototype.rR=function(Z){O2.prototype.rR.call(this,Z);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; uo.prototype.Wd=function(Z){O2.prototype.Wd.call(this,Z);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.L(xf,Yf);g.A=xf.prototype; g.A.init=function(Z,Q,z){Yf.prototype.init.call(this,Z,Q,z);this.K=Q;if(Q.dialogMessage==null&&Q.title==null)g.Rm(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{Q.confirmLabel==null&&g.CO(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(Z=Q.closeOverlayRenderer&&g.V(Q.closeOverlayRenderer,g.RU)||null)this.Y=new ap(this.api,this.layoutId,this.interactionLoggingClientData,this.au,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), g.W(this,this.Y),this.Y.init(bo("button"),Z,this.macros),this.Y.zf(this.element);Q.title&&(Z=g.SN(Q.title),this.updateValue("title",Z));if(Q.adReasons)for(Z=Q.adReasons,z=0;z<Z.length;z++){var K=Ci(Z[z]);if(!g.IE(K.textContent)){var b=ED("LI");b.appendChild(K);this.Vp.appendChild(b)}}else g.c$(this.Vp,!1);Q.dialogMessage&&(Z=Ci(Q.dialogMessage,!0),this.Zu.appendChild(Z));Q.confirmLabel&&(Z=g.SN(Q.confirmLabel),this.updateValue("confirmLabel",Z));Q.muteAdRenderer&&(Q=g.V(Q.muteAdRenderer,g.RU)||null)&& (Z=Q.navigationEndpoint&&g.V(Q.navigationEndpoint,tRJ)||null,z=Q.navigationEndpoint&&g.V(Q.navigationEndpoint,Hzo)||null,Z==null&&z==null?g.CO(Error("AdInfoDialogRenderer.muteAdRenderer was specified but contains neither an AdFeedbackEndpoint, nor a ConfirmDialogEndpoint.")):(Z?WeD(this,Z):z&&Vz9(this,z),this.S=new ap(this.api,this.layoutId,this.interactionLoggingClientData,this.au,["ytp-ad-info-dialog-mute-button"],"button",!0),g.W(this,this.S),this.S.init(bo("button"),Q,this.macros),this.S.listen("click", this.ehB,this),this.S.zf(this.NB)));kSx(this)}}; g.A.clear=function(){JW(this.U);this.hide()}; g.A.hide=function(){this.j?this.j.hide():this.W&&this.W.hide();this.Y&&this.Y.hide();this.S&&this.S.hide();Yf.prototype.hide.call(this);this.SJ&&this.SJ.focus()}; g.A.show=function(){this.Y&&this.Y.show();this.S&&this.S.show();if(!this.tG){for(var Z=g.n(this.K&&this.K.impressionEndpoints||[]),Q=Z.next();!Q.done;Q=Z.next())Q=Q.value,this.layoutId?this.au.executeCommand(Q,this.layoutId):g.Rm(Error("Missing layoutId for ad info dialog."));this.tG=!0}this.SJ=document.activeElement;Yf.prototype.show.call(this);this.U.focus()}; g.A.kG=function(){if(this.K&&this.K.confirmServiceEndpoint){var Z=this.K.confirmServiceEndpoint;this.layoutId?this.au.executeCommand(Z,this.layoutId):g.Rm(Error("Missing layoutId for ad info dialog."))}this.api.onAdUxClicked("ad-info-dialog-close-button",this.layoutId);this.publish("d");this.hide()}; g.A.ehB=function(){var Z=this.j?this.j:this.W;Z&&!Z.RT&&(this.hide(),Z.show())};g.L(tB,HI);tB.prototype.init=function(Z,Q,z){HI.prototype.init.call(this,Z,Q,z);Z=Q.button&&g.V(Q.button,g.RU)||null;Z!=null&&(e4G(this,Z,z),this.api.V("enable_ad_pod_index_autohide")&&this.element.classList.add("ytp-ad-info-hover-text-button--clean-player"),this.show())}; tB.prototype.hide=function(){this.button&&this.button.hide();this.Y&&this.Y.hide();HI.prototype.hide.call(this)}; tB.prototype.show=function(){this.button&&this.button.show();HI.prototype.show.call(this)}; tB.prototype.clear=function(){this.hide()};g.L(FN,Yf); FN.prototype.init=function(Z,Q,z){Yf.prototype.init.call(this,Z,Q,z);this.Y=Q;this.isTemplated()||g.qT(this.element,XN(this.Y));if(Q.backgroundImage&&(Z=(Z=Q.backgroundImage.thumbnail)?ME(Z):"",z=(z=this.api.getVideoData(1))&&z.uw,Z&&z&&(this.element.style.backgroundImage="url("+Z+")",this.element.style.backgroundSize="100%"),Q.style&&Q.style.adTextStyle))switch(Q.style.adTextStyle.fontSize){case "AD_FONT_SIZE_MEDIUM":this.element.style.fontSize="26px"}(Z=g.E3(Q.targetId))&&this.element.setAttribute("data-tooltip-target-id",Z); Q&&Q.adRendererCommands&&Q.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element");this.show()}; FN.prototype.isTemplated=function(){return this.Y.isTemplated||!1}; FN.prototype.clear=function(){this.hide()};var Kpn={seekableStart:0,seekableEnd:1,current:0};g.L(wV,Yf);wV.prototype.clear=function(){this.dispose()};g.L(g.s8,g.O);g.A=g.s8.prototype;g.A.show=function(Z){this.state!==1&&this.state!==2&&(this.state===4&&this.z$(),this.state===5?(this.element.show(),this.state=null,this.delay.stop(),this.Y&&this.Y()):this.element.RT||(Zm(this,!0),this.state=1,Z?this.delay.start(Z):this.z$()))}; g.A.hide=function(){this.state!==4&&(this.state===1||this.state===2?(this.element.hide(),this.state=null,this.delay.stop()):this.element.RT&&(Zm(this,!0),this.state=4,this.delay.start(this.S)))}; g.A.z$=function(){switch(this.state){case 1:this.element.show();this.state=2;this.delay.start(10);break;case 2:Zm(this,!1);this.state=3;this.delay.start(this.j);break;case 3:this.state=null;this.Y&&this.Y();break;case 4:this.element.hide();Zm(this,!1);this.state=5;this.delay.start(0);break;case 5:if(this.state=null,this.onHidden)this.onHidden()}}; g.A.stop=function(){for(;this.state!==null&&this.state!==5;)this.delay.stop(),this.z$()}; g.A.gr=function(){this.element.FI()||this.element.element.removeAttribute("aria-hidden");g.O.prototype.gr.call(this)};g.L(Qd,wV);g.A=Qd.prototype; g.A.init=function(Z,Q,z){wV.prototype.init.call(this,Z,Q,z);Z=Q.durationMilliseconds;typeof Z==="number"&&Z<0&&g.Rm(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+Z));this.qB&&(this.W?g.rd(this.j.element,"modern-countdown-next-to-thumbnail"):g.rd(this.j.element,"countdown-next-to-thumbnail"));Z=Q.durationMilliseconds;this.Vp=Z==null||Z===0?this.Y.m6():Z;if(Q.templatedCountdown)var K=Q.templatedCountdown.templatedAdText;else Q.staticPreview&&(K=Q.staticPreview); this.S.init(bo("ad-text"),K,z);(K=this.api.getVideoData(1))&&K.uw&&Q.thumbnail?this.K.init(bo("ad-image"),Q.thumbnail,z):(this.SJ.hide(),this.W&&this.qB&&g.rd(this.S.element,"ytp-ad-preview-text-modern-postroll"))}; g.A.clear=function(){this.hide()}; g.A.hide=function(){this.j.hide();this.S.hide();this.K.hide();lo(this);wV.prototype.hide.call(this)}; g.A.show=function(){E2(this);this.j.show();this.S.show();this.K.show();wV.prototype.show.call(this)}; g.A.P2=function(){this.hide()}; g.A.HP=function(){if(this.Y!=null){var Z=this.Y.getProgressState();Z!=null&&Z.current!=null&&(Z=1E3*Z.current,!this.Zu&&Z>=this.Vp?(this.KN.hide(),this.Zu=!0,this.publish("i")):this.S&&this.S.isTemplated()&&(Z=Math.max(0,Math.ceil((this.Vp-Z)/1E3)),Z!=this.NB&&(eN(this.S,{TIME_REMAINING:String(Z)}),this.NB=Z)))}};g.L(KF,wV);g.A=KF.prototype; g.A.init=function(Z,Q,z){wV.prototype.init.call(this,Z,Q,z);if(Q.image&&Q.image.thumbnail)if(Q.headline)if(Q.description)if((Z=Q.actionButton&&g.V(Q.actionButton,g.RU))&&Z.navigationEndpoint){var K=this.api.getVideoData(2);if(K!=null)if(Q.image&&Q.image.thumbnail){var b=Q.image.thumbnail.thumbnails;b!=null&&b.length>0&&g.IE(g.E3(b[0].url))&&(b[0].url=K.profilePicture)}else g.CO(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.S.init(bo("ad-image"),Q.image,z);this.K.init(bo("ad-text"), Q.headline,z);this.W.init(bo("ad-text"),Q.description,z);this.j.init(bo("button"),Z,z);z=e_(this.j.element);xl(this.j.element,z+" This link opens in new tab");this.SJ=Z.navigationEndpoint;this.api.IG()||this.show();this.api.N().V("enable_larger_flyout_cta_on_desktop")&&(this.Ru("ytp-flyout-cta").classList.add("ytp-flyout-cta-large"),this.Ru("ytp-flyout-cta-body").classList.add("ytp-flyout-cta-body-large"),this.Ru("ytp-flyout-cta-headline-container").classList.add("ytp-flyout-cta-headline-container-dark-background"), this.Ru("ytp-flyout-cta-description-container").classList.add("ytp-flyout-cta-description-container-dark-background"),this.Ru("ytp-flyout-cta-text-container").classList.add("ytp-flyout-cta-text-container-large"),this.Ru("ytp-flyout-cta-action-button-container").classList.add("ytp-flyout-cta-action-button-container-large"),this.j.element.classList.add("ytp-flyout-cta-action-button-large"),this.j.element.classList.add("ytp-flyout-cta-action-button-rounded-large"),this.Ru("ytp-flyout-cta-icon-container").classList.add("ytp-flyout-cta-icon-container-large")); this.api.addEventListener("playerUnderlayVisibilityChange",this.fv.bind(this));this.KN=Q.startMs||0;E2(this)}else g.Rm(Error("FlyoutCtaRenderer has no valid action button."));else g.Rm(Error("FlyoutCtaRenderer has no description AdText."));else g.Rm(Error("FlyoutCtaRenderer has no headline AdText."));else g.CO(Error("FlyoutCtaRenderer has no image."))}; g.A.onClick=function(Z){wV.prototype.onClick.call(this,Z);this.api.pauseVideo();!g.bG(this.j.element,Z.target)&&this.SJ&&(this.layoutId?this.au.executeCommand(this.SJ,this.layoutId):g.Rm(Error("Missing layoutId for flyout cta.")))}; g.A.HP=function(){if(this.Y){var Z=this.Y.getProgressState();(Z&&Z.current||this.Vp)&&1E3*Z.current>=this.KN&&(lo(this),g.jn(this.element,"ytp-flyout-cta-inactive"),this.j.element.removeAttribute("tabIndex"))}}; g.A.P2=function(){this.clear()}; g.A.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.fv.bind(this))}; g.A.show=function(){this.j&&this.j.show();wV.prototype.show.call(this)}; g.A.hide=function(){this.j&&this.j.hide();wV.prototype.hide.call(this)}; g.A.fv=function(Z){Z=="hidden"?this.show():this.hide()};g.L(bc,Yf);g.A=bc.prototype; g.A.init=function(Z,Q,z){Yf.prototype.init.call(this,Z,Q,z);this.Y=Q;if(this.Y.rectangle)for(Z=this.Y.likeButton&&g.V(this.Y.likeButton,hc),Q=this.Y.dislikeButton&&g.V(this.Y.dislikeButton,hc),this.S.init(bo("toggle-button"),Z,z),this.j.init(bo("toggle-button"),Q,z),this.Z(this.element,"change",this.xG),this.W.show(100),this.show(),z=g.n(this.Y&&this.Y.impressionCommands||[]),Z=z.next();!Z.done;Z=z.next())Z=Z.value,this.layoutId?this.au.executeCommand(Z,this.layoutId):g.Rm(Error("Missing layoutId for instream user sentiment."))}; g.A.clear=function(){this.hide()}; g.A.hide=function(){this.S.hide();this.j.hide();Yf.prototype.hide.call(this)}; g.A.show=function(){this.S.show();this.j.show();Yf.prototype.show.call(this)}; g.A.xG=function(){GI0(this.element,"ytp-ad-instream-user-sentiment-selected");this.Y.postMessageAction&&this.api.hG("onYtShowToast",this.Y.postMessageAction);this.W.hide()}; g.A.onClick=function(Z){this.JG.length>0&&this.xG();Yf.prototype.onClick.call(this,Z)};g.L(qj,g.O);g.A=qj.prototype;g.A.gr=function(){this.reset();g.O.prototype.gr.call(this)}; g.A.reset=function(){g.ib(this.W);this.K=!1;this.Y&&this.Y.stop();this.L.stop();this.S&&(this.S=!1,this.T.play())}; g.A.start=function(){this.reset();this.W.Z(this.j,"mouseover",this.Eo,this);this.W.Z(this.j,"mouseout",this.Tk,this);this.jJ&&(this.W.Z(this.j,"focusin",this.Eo,this),this.W.Z(this.j,"focusout",this.Tk,this));this.Y?this.Y.start():(this.K=this.S=!0,g.Dw(this.j,{opacity:this.U}))}; g.A.Eo=function(){this.S&&(this.S=!1,this.T.play());this.L.stop();this.Y&&this.Y.stop()}; g.A.Tk=function(){this.K?this.L.start():this.Y&&this.Y.start()}; g.A.QP=function(){this.S||(this.S=!0,this.X.play(),this.K=!0)};var sfW=[new rB("b.f_",!1,0),new rB("j.s_",!1,2),new rB("r.s_",!1,4),new rB("e.h_",!1,6),new rB("i.s_",!0,8),new rB("s.t_",!1,10),new rB("p.h_",!1,12),new rB("s.i_",!1,14),new rB("f.i_",!1,16),new rB("a.b_",!1,18),new rB("a.o_",!1),new rB("g.o_",!1,22),new rB("p.i_",!1,24),new rB("p.m_",!1),new rB("i.k_",!0,28),new rB("n.k_",!0,20),new rB("i.f_",!1),new rB("a.s_",!0),new rB("m.c_",!1),new rB("n.h_",!1,26),new rB("o.p_",!1)].reduce(function(Z,Q){Z[Q.j]=Q;return Z},{});g.L(Sq,wV);g.A=Sq.prototype; g.A.init=function(Z,Q,z){wV.prototype.init.call(this,Z,Q,z);this.SJ=Q;(this.KN=QfD(this))&&g.CO(Error("hasAdControlInClickCommands_ is true."));if(!Q||g.Ne(Q))g.Rm(Error("SkipButtonRenderer was not specified or empty."));else if(!Q.message||g.Ne(Q.message))g.Rm(Error("SkipButtonRenderer.message was not specified or empty."));else{Z=this.K?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"};Q=io(Z);Q==null?g.Rm(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+Z.iconType+".")): (this.W=new g.gV({B:"button",nN:[this.K?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],G:[{B:"span",D:this.K?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",G:[Q]}]}),g.W(this,this.W),this.W.zf(this.S.element),this.j=new FN(this.api,this.layoutId,this.interactionLoggingClientData,this.au,"ytp-ad-skip-button-text"),this.K&&this.j.element.classList.add("ytp-ad-skip-button-text-centered"),this.j.init(bo("ad-text"),this.SJ.message,z),g.W(this,this.j),zB(this.W.element,this.j.element, 0));var K=K===void 0?null:K;z=this.api.N();!(this.JG.length>0)&&z.j&&(e2?0:"ontouchstart"in document.documentElement&&(cen()||SJ()))&&(this.oy(this.CN),K&&this.oy(K),this.JG=[this.Z(this.element,"touchstart",this.Xa,this),this.Z(this.element,"touchmove",this.y8,this),this.Z(this.element,"touchend",this.sO,this)])}}; g.A.clear=function(){this.Vp.reset();this.hide()}; g.A.hide=function(){this.S.hide();this.j&&this.j.hide();lo(this);wV.prototype.hide.call(this)}; g.A.onClick=function(Z){if(this.W!=null){if(Z){var Q=Z||window.event;Q.returnValue=!1;Q.preventDefault&&Q.preventDefault()}var z;if(EkX(Z,{contentCpn:((z=this.api.getVideoData(1))==null?void 0:z.clientPlaybackNonce)||""})===0)this.api.hG("onAbnormalityDetected");else if(wV.prototype.onClick.call(this,Z),this.publish("j"),this.api.hG("onAdSkip"),this.Zu||!this.KN)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; g.A.Li=function(Z){if(!this.Zu)return this.KN&&vM("SkipButton click commands not pruned while ALC exist"),Z;var Q,z=(Q=g.V(Z,g.$C))==null?void 0:Q.commands;if(!z)return Z;Z=[];for(Q=0;Q<z.length;Q++){var K=z[Q];K.adLifecycleCommand&&Zjd(K.adLifecycleCommand)||K.pingingEndpoint||K.adPingingEndpoint||Z.push(K)}return{commandExecutorCommand:{commands:Z}}}; g.A.show=function(){this.Vp.start();this.S.show();this.j&&this.j.show();E2(this);wV.prototype.show.call(this);this.NB&&this.api.N().V("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)}; g.A.P2=function(){this.publish("k")}; g.A.HP=function(){};g.L(T5,wV);g.A=T5.prototype; g.A.init=function(Z,Q,z){wV.prototype.init.call(this,Z,Q,z);Z=Q&&Q.preskipRenderer&&g.V(Q.preskipRenderer,Pi)||{};(Z=g.Ne(Z)?null:Z)?(this.K=Z.durationMilliseconds!=null&&Z.durationMilliseconds!==void 0?Z.durationMilliseconds:5E3,this.j=new Qd(this.api,this.layoutId,this.interactionLoggingClientData,this.au,this.Y,tR(this.api.N().experiments,"preskip_button_style_ads_backend")=="countdown_next_to_thumbnail"&&dZ(this.api.N())),this.j.init(bo("preskip-component"),Z,z),z5(this.j),g.W(this,this.j),this.j.zf(this.element)): Q.skipOffsetMilliseconds&&(this.K=Q.skipOffsetMilliseconds);Z=Q&&Q.skippableRenderer&&g.V(Q.skippableRenderer,con)||{};Z=g.Ne(Z)?null:Z;Z==null?g.Rm(Error("SkipButtonRenderer was not set in player response.")):(this.S=new Sq(this.api,this.layoutId,this.interactionLoggingClientData,this.au,this.Y,this.SJ),this.S.init(bo("skip-button"),Z,z),g.W(this,this.S),this.S.zf(this.element),this.api.N().experiments.XI("enable_skip_to_next_messaging")&&(Q=g.E3(Q.targetId))&&(z=this.S,z.W!=null&&(z.NB=!0,z.W.element.setAttribute("data-tooltip-target-id", Q),z.W.element.setAttribute("data-tooltip-target-fixed",""))),this.show())}; g.A.show=function(){this.W&&this.S?this.S.show():this.j&&this.j.show();E2(this);wV.prototype.show.call(this)}; g.A.P2=function(){}; g.A.clear=function(){this.j&&this.j.clear();this.S&&this.S.clear();lo(this);wV.prototype.hide.call(this)}; g.A.hide=function(){this.j&&this.j.hide();this.S&&this.S.hide();lo(this);wV.prototype.hide.call(this)}; g.A.HP=function(){1E3*this.Y.getProgressState().current>=this.K&&zk4(this,!0)};g.L(fF,ap);fF.prototype.init=function(Z,Q,z){ap.prototype.init.call(this,Z,Q,z);Z=!1;Q.text!=null&&(Z=g.SN(Q.text),Z=!g.IE(Z));Z?Q.navigationEndpoint==null?g.CO(Error("No visit advertiser clickthrough provided in renderer,")):Q.style!=="STYLE_UNKNOWN"?g.CO(Error("Button style was not a link-style type in renderer,")):this.show():g.CO(Error("No visit advertiser text was present in the renderer."))};g.L(h1,Yf); h1.prototype.init=function(Z,Q,z){Yf.prototype.init.call(this,Z,Q,z);Z=Q.text;g.IE(XN(Z))?g.CO(Error("SimpleAdBadgeRenderer has invalid or empty text")):(Z&&Z.text&&(Q=Z.text,this.S&&!this.j&&(Q=this.api.N(),Q=Z.text+" "+(Q&&Q.j?"\u2022":"\u00b7")),Q={text:Q,isTemplated:Z.isTemplated},Z.style&&(Q.style=Z.style),Z.targetId&&(Q.targetId=Z.targetId),Z=new FN(this.api,this.layoutId,this.interactionLoggingClientData,this.au),Z.init(bo("simple-ad-badge"),Q,z),Z.zf(this.element),g.W(this,Z)),this.show())}; h1.prototype.clear=function(){this.hide()};g.L(LF,qE);g.L(nF,g.rV);g.A=nF.prototype;g.A.m6=function(){return this.durationMs}; g.A.stop=function(){this.Y&&this.Bo.oy(this.Y)}; g.A.E8=function(Z){this.j={seekableStart:0,seekableEnd:this.durationMs/1E3,current:Z.current};this.publish("h")}; g.A.getProgressState=function(){return this.j}; g.A.lj=function(Z){g.Xw(Z,2)&&this.publish("g")};g.L(cM,g.rV);g.A=cM.prototype;g.A.m6=function(){return this.durationMs}; g.A.start=function(){this.Y||(this.Y=!0,this.IC.start())}; g.A.stop=function(){this.Y&&(this.Y=!1,this.IC.stop())}; g.A.E8=function(){this.VF+=100;var Z=!1;this.VF>this.durationMs&&(this.VF=this.durationMs,this.IC.stop(),Z=!0);this.j={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.VF/1E3};this.publish("h");Z&&this.publish("g")}; g.A.getProgressState=function(){return this.j};g.L(J1,wV);g.A=J1.prototype;g.A.init=function(Z,Q,z){wV.prototype.init.call(this,Z,Q,z);var K;if(Q==null?0:(K=Q.templatedCountdown)==null?0:K.templatedAdText){Z=Q.templatedCountdown.templatedAdText;if(!Z.isTemplated){g.CO(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.j=new FN(this.api,this.layoutId,this.interactionLoggingClientData,this.au);this.j.init(bo("ad-text"),Z,{});this.j.zf(this.element);g.W(this,this.j)}this.show()}; g.A.clear=function(){this.hide()}; g.A.hide=function(){lo(this);wV.prototype.hide.call(this)}; g.A.P2=function(){this.hide()}; g.A.HP=function(){if(this.Y!=null){var Z=this.Y.getProgressState();if(Z!=null&&Z.current!=null&&this.j){var Q=this.Y instanceof nF?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:Z.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.Y instanceof cM?Z.seekableEnd:this.api.getDuration(2,!1);Z=Z.current;Q=this.api.N().experiments.XI("enable_player_overlay_non_negative_remaining_duration_on_web")?Math.max(Q-Z,0):Q-Z;eN(this.j,{FORMATTED_AD_DURATION_REMAINING:String(g.mM(Q)), TIME_REMAINING:String(Math.ceil(Q))})}}}; g.A.show=function(){E2(this);wV.prototype.show.call(this)};g.L(yd,FN);yd.prototype.onClick=function(Z){FN.prototype.onClick.call(this,Z);this.api.onAdUxClicked(this.componentType)};g.L(Nj,Yf);Nj.prototype.init=function(Z,Q){Yf.prototype.init.call(this,Z,Q,{});if(Z=Q.content){g.qT(this.element,Z);var z,K;Q=((z=Q.interaction)==null?void 0:(K=z.accessibility)==null?void 0:K.label)||Z;this.element.setAttribute("aria-label",Q)}else g.Rm(Error("AdSimpleAttributedString does not have text content"))}; Nj.prototype.clear=function(){this.hide()}; Nj.prototype.onClick=function(Z){Yf.prototype.onClick.call(this,Z)};g.L(G5,Yf); G5.prototype.init=function(Z,Q){Yf.prototype.init.call(this,Z,Q,{});(Z=Q.label)&&Z.content&&!g.IE(Z.content)?(this.adBadgeText.init(bo("ad-simple-attributed-string"),new dB(Z)),(Q=Q.adPodIndex)&&Q.content&&!g.IE(Q.content)&&(this.Y=new Nj(this.api,this.layoutId,this.interactionLoggingClientData,this.au),this.Y.zf(this.element),g.W(this,this.Y),this.Y.element.classList.add("ytp-ad-badge__pod-index"),this.Y.init(bo("ad-simple-attributed-string"),new dB(Q))),this.element.classList.add(this.j?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.Rm(Error("No label is returned in AdBadgeViewModel."))}; G5.prototype.show=function(){this.adBadgeText.show();var Z;(Z=this.Y)==null||Z.show();Yf.prototype.show.call(this)}; G5.prototype.hide=function(){this.adBadgeText.hide();var Z;(Z=this.Y)==null||Z.hide();Yf.prototype.hide.call(this)};g.L(ic,Yf); ic.prototype.init=function(Z,Q){Yf.prototype.init.call(this,Z,Q,{});(Z=Q.adPodIndex)&&Z.content&&!g.IE(Z.content)&&(this.Y=new Nj(this.api,this.layoutId,this.interactionLoggingClientData,this.au),this.Y.zf(this.element),g.W(this,this.Y),this.Y.init(bo("ad-simple-attributed-string"),new dB(Z)),(this.api.N().V("clean_player_style_fix_on_web")?Q.visibilityCondition==="AD_POD_INDEX_VISIBILITY_CONDITION_AUTOHIDE":!this.j||Q.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.V("clean_player_style_fix_on_web")&&this.element.classList.add("ytp-ad-pod-index--stark-with-light-shadow");this.show()}; ic.prototype.show=function(){var Z;(Z=this.Y)==null||Z.show();Yf.prototype.show.call(this)}; ic.prototype.hide=function(){var Z;(Z=this.Y)==null||Z.hide();Yf.prototype.hide.call(this)};g.L(as,Yf); as.prototype.init=function(Z,Q){Yf.prototype.init.call(this,Z,Q,{});if(Q!=null&&Q.text){var z;if(((z=Q.text)==null?0:z.content)&&!g.IE(Q.text.content)){this.Y=new g.gV({B:"div",D:"ytp-ad-disclosure-banner__text",W7:Q.text.content});g.W(this,this.Y);this.Y.zf(this.element);var K,b;Z=((K=Q.interaction)==null?void 0:(b=K.accessibility)==null?void 0:b.label)||Q.text.content;this.element.setAttribute("aria-label",Z);var q;if((q=Q.interaction)==null?0:q.onTap)this.j=new g.gV({B:"div",D:"ytp-ad-disclosure-banner__chevron",G:[g.hB()]}), g.W(this,this.j),this.j.zf(this.element);this.show()}}else g.Rm(Error("No banner text found in AdDisclosureBanner."))}; as.prototype.clear=function(){this.hide()};PM.prototype.getLength=function(){return this.Y-this.j};g.L(CF,g.gV);CF.prototype.E8=function(){var Z=this.j.getProgressState(),Q=Z.seekableEnd;this.api.getPresentingPlayerType()===2&&this.api.N().V("show_preskip_progress_bar_for_skippable_ads")&&(Q=this.S?this.S/1E3:Z.seekableEnd);Z=Rs(new PM(Z.seekableStart,Q),Z.current,0);this.progressBar.style.width=Z*100+"%"}; CF.prototype.onStateChange=function(){g.ia(this.api.N())||(this.api.getPresentingPlayerType()===2?this.Y===-1&&(this.show(),this.Y=this.j.subscribe("h",this.E8,this),this.E8()):this.Y!==-1&&(this.hide(),this.j.SK(this.Y),this.Y=-1))};g.L(pF,Yf); pF.prototype.init=function(Z,Q,z,K){Yf.prototype.init.call(this,Z,Q,z);z=!0;if(Q.skipOrPreviewRenderer){var b=Q.skipOrPreviewRenderer;Z=g.V(b,rA);b=g.V(b,Pi);Z?(b=new T5(this.api,this.layoutId,this.interactionLoggingClientData,this.au,this.j,this.SJ),b.zf(this.U),b.init(bo("skip-button"),Z,this.macros),g.W(this,b)):b&&!this.api.N().experiments.XI("disable_ad_preview_for_instream_ads")&&(Z=new Qd(this.api,this.layoutId,this.interactionLoggingClientData,this.au,this.j,!1),Z.zf(this.U),Z.init(bo("ad-preview"),b, this.macros),z5(Z),g.W(this,Z));if(Z=g.V(Q.skipOrPreviewRenderer,rA)){z=!1;var q=Z.skipOffsetMilliseconds}}Q.brandInteractionRenderer&&(Z=Q.brandInteractionRenderer.brandInteractionRenderer,b=new bc(this.api,this.layoutId,this.interactionLoggingClientData,this.au),b.zf(this.Vp),b.init(bo("instream-user-sentiment"),Z,this.macros),g.W(this,b));if(Z=g.V(Q,$Yz))if(Z=g.V(Z,$Yz))b=new KF(this.api,this.layoutId,this.interactionLoggingClientData,this.au,this.j,!!Q.showWithoutLinkedMediaLayout),g.W(this,b), b.zf(this.K),b.init(bo("flyout-cta"),Z,this.macros);Z=(this.api.N().V("disable_ad_duration_remaining_for_instream_video_ads")||Q.adPodIndex!==void 0)&&!1;K=K&&K.videoAdDurationSeconds;if(Q.adBadgeRenderer){var r=Q.adBadgeRenderer;b=g.V(r,Wm);b!=null?(r=new G5(this.api,this.layoutId,this.interactionLoggingClientData,this.au,Z),g.W(this,r),r.zf(this.Y),r.init(bo("ad-badge"),b,this.macros),this.S=r.element):(b=r.simpleAdBadgeRenderer,b==null&&(b={text:{text:"Ad",isTemplated:!1}}),r=new h1(this.api,this.layoutId, this.interactionLoggingClientData,this.au,!0),g.W(this,r),r.zf(this.Y),r.init(bo("simple-ad-badge"),b,this.macros))}Q.adPodIndex&&(b=g.V(Q.adPodIndex,yoz),b!=null&&(z=new ic(this.api,this.layoutId,this.interactionLoggingClientData,this.au,z),g.W(this,z),z.zf(this.Y),z.init(bo("ad-pod-index"),b)));Q.adDurationRemaining&&!Q.showWithoutLinkedMediaLayout&&(z=Q.adDurationRemaining.adDurationRemainingRenderer,z==null&&(z={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}), K=new J1(this.api,this.layoutId,this.interactionLoggingClientData,this.au,this.j,K,Z),g.W(this,K),K.zf(this.Y),K.init(bo("ad-duration-remaining"),z,this.macros),Z&&K.element.classList.add("ytp-ad-duration-remaining-autohide"));Q.adInfoRenderer&&(K=g.V(Q.adInfoRenderer,aU))&&(z=new tB(this.api,this.layoutId,this.interactionLoggingClientData,this.au,this.element,void 0,Z),g.W(this,z),this.api.N().V("enable_ad_pod_index_autohide")&&this.S!==null?this.Y.insertBefore(z.element,this.S.nextSibling):z.zf(this.Y), z.init(bo("ad-info-hover-text-button"),K,this.macros));Q.visitAdvertiserRenderer&&(z=g.V(Q.visitAdvertiserRenderer,g.RU))&&(b=qnn(this)&&this.W?this.W:this.Y)&&(K=new fF(this.api,this.layoutId,this.interactionLoggingClientData,this.au),g.W(this,K),K.zf(b),K.init(bo("visit-advertiser"),z,this.macros),kl(K.element),z=e_(K.element),xl(K.element,z+" This link opens in new tab"));!(K=this.api.N())||g.Nx(K)||K.controlsType!="3"&&!K.disableOrganicUi||(q=new CF(this.api,this.j,q,Z),q.zf(this.tG),g.W(this, q));Q.adDisclosureBannerRenderer&&(Q=g.V(Q.adDisclosureBannerRenderer,JoH))&&(q=new as(this.api,this.layoutId,this.interactionLoggingClientData,this.au),q.zf(this.KN),q.init(bo("ad-disclosure-banner"),Q),g.W(this,q));this.api.N().V("enable_updated_html5_player_focus_style")&&g.rd(this.element,"ytp-ad-player-overlay-updated-focus-style");Z&&this.api.N().j&&this.Y.classList.add("ytp-ad-player-overlay-instream-info--clean-player-mweb");this.show()}; pF.prototype.clear=function(){this.hide()};O8.prototype.set=function(Z,Q,z){z=z!==void 0?Date.now()+z:void 0;this.Y.set(Z,Q,z)}; O8.prototype.get=function(Z){return this.Y.get(Z)}; O8.prototype.remove=function(Z){this.Y.remove(Z)};var Vd=null,kC=null,uc=null,gSG=null;g.BG("yt.www.ads.eventcache.getLastCompanionData",function(){return Vd}); g.BG("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.BG("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return kC}); g.BG("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return uc}); g.BG("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return gSG});var XSd=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);xC.prototype.handleResponse=function(Z,Q){if(!Q)throw Error("request needs to be passed into ConsistencyService");var z,K;Q=((z=Q.MO.context)==null?void 0:(K=z.request)==null?void 0:K.consistencyTokenJars)||[];var b;(Z=(b=Z.responseContext)==null?void 0:b.consistencyTokenJar)&&this.replace(Q,Z)}; xC.prototype.replace=function(Z,Q){Z=g.n(Z);for(var z=Z.next();!z.done;z=Z.next())delete this.Y[z.value.encryptedTokenJarContents];$Qu(this,Q)};var BlH=window.location.hostname.split(".").slice(-2).join("."),dN;Fw.getInstance=function(){dN=g.WG("yt.clientLocationService.instance");dN||(dN=new Fw,g.BG("yt.clientLocationService.instance",dN));return dN}; g.A=Fw.prototype; g.A.setLocationOnInnerTubeContext=function(Z){Z.client||(Z.client={});if(this.Y)Z.client.locationInfo||(Z.client.locationInfo={}),Z.client.locationInfo.latitudeE7=Math.floor(this.Y.coords.latitude*1E7),Z.client.locationInfo.longitudeE7=Math.floor(this.Y.coords.longitude*1E7),Z.client.locationInfo.horizontalAccuracyMeters=Math.round(this.Y.coords.accuracy),Z.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.S||this.locationPlayabilityToken)Z.client.locationPlayabilityToken=this.S|| this.locationPlayabilityToken}; g.A.handleResponse=function(Z){var Q;Z=(Q=Z.responseContext)==null?void 0:Q.locationPlayabilityToken;Z!==void 0&&(this.locationPlayabilityToken=Z,this.Y=void 0,g.Ft("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=t1(this))&&this.localStorage.set("yt-location-playability-token",Z,15552E3):g.HX("YT_CL",JSON.stringify({loctok:Z}),15552E3,BlH,!0))}; g.A.clearLocationPlayabilityToken=function(Z){Z==="TVHTML5"?(this.localStorage=t1(this))&&this.localStorage.remove("yt-location-playability-token"):g.US("YT_CL");this.S=void 0;this.j!==-1&&(clearTimeout(this.j),this.j=-1)}; g.A.getCurrentPositionFromGeolocation=function(){var Z=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var Q=!1,z=1E4;g.Ft("INNERTUBE_CLIENT_NAME")==="MWEB"&&(Q=!0,z=15E3);return new Promise(function(K,b){navigator.geolocation.getCurrentPosition(function(q){Z.Y=q;K(q)},function(q){b(q)},{enableHighAccuracy:Q, maximumAge:0,timeout:z})})}; g.A.createUnpluggedLocationInfo=function(Z){var Q={};Z=Z.coords;if(Z==null?0:Z.latitude)Q.latitudeE7=Math.floor(Z.latitude*1E7);if(Z==null?0:Z.longitude)Q.longitudeE7=Math.floor(Z.longitude*1E7);if(Z==null?0:Z.accuracy)Q.locationRadiusMeters=Math.round(Z.accuracy);return Q}; g.A.createLocationInfo=function(Z){var Q={};Z=Z.coords;if(Z==null?0:Z.latitude)Q.latitudeE7=Math.floor(Z.latitude*1E7);if(Z==null?0:Z.longitude)Q.longitudeE7=Math.floor(Z.longitude*1E7);return Q};g.A=nSf.prototype;g.A.contains=function(Z){return Object.prototype.hasOwnProperty.call(this.Y,Z)}; g.A.get=function(Z){if(this.contains(Z))return this.Y[Z]}; g.A.set=function(Z,Q){this.Y[Z]=Q}; g.A.jS=function(){return Object.keys(this.Y)}; g.A.remove=function(Z){delete this.Y[Z]};wB.prototype.getModuleId=function(Z){return Z.serviceId.getModuleId()}; wB.prototype.get=function(Z){a:{var Q=this.mappings.get(Z.toString());switch(Q.type){case "mapping":Z=Q.value;break a;case "factory":Q=Q.value();this.mappings.set(Z.toString(),{type:"mapping",value:Q});Z=Q;break a;default:Z=q_(Q)}}return Z}; wB.prototype.registerService=function(Z,Q){this.mappings.set(Z.toString(),{type:"mapping",value:Q});return Z}; new wB;var NS={},cf0=(NS.WEB_UNPLUGGED="^unplugged/",NS.WEB_UNPLUGGED_ONBOARDING="^unplugged/",NS.WEB_UNPLUGGED_OPS="^unplugged/",NS.WEB_UNPLUGGED_PUBLIC="^unplugged/",NS.WEB_CREATOR="^creator/",NS.WEB_KIDS="^kids/",NS.WEB_EXPERIMENTS="^experiments/",NS.WEB_MUSIC="^music/",NS.WEB_REMIX="^music/",NS.WEB_MUSIC_EMBEDDED_PLAYER="^music/",NS.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",NS);ZU.prototype.L=function(Z,Q,z){Q=Q===void 0?{}:Q;z=z===void 0?YS:z;var K={context:g.eq(Z.clickTrackingParams,!1,this.W)};var b=this.j(Z);if(b){this.Y(K,b,Q);var q;Q=g.lc(this.S());(b=(q=g.V(Z.commandMetadata,g.fq))==null?void 0:q.apiUrl)&&(Q=b);q=T2f(OS(Q));Z=Object.assign({},{command:Z},void 0);K={input:q,dw:on(q),MO:K,config:Z};K.config.nO?K.config.nO.identity=z:K.config.nO={identity:z};return K}g.Rm(new g.tW("Error: Failed to create Request from Command.",Z))}; g.An.Object.defineProperties(ZU.prototype,{W:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.L(QY,ZU);g.L(za,QY);za.prototype.L=function(){return{input:"/getDatasyncIdsEndpoint",dw:on("/getDatasyncIdsEndpoint","GET"),MO:{}}}; za.prototype.S=function(){return[]}; za.prototype.j=function(){}; za.prototype.Y=function(){};var WUn={},QYM=(WUn.GET_DATASYNC_IDS=E8(za),WUn);var Gj={},VBz=(Gj["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",Gj["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",Gj["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",Gj["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",Gj["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",Gj["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",Gj["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", Gj["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",Gj["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",Gj["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",Gj["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",Gj["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",Gj["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",Gj["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",Gj["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", Gj["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",Gj["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",Gj["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",Gj["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",Gj["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",Gj["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",Gj["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", Gj["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",Gj.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",Gj["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",Gj["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",Gj["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",Gj["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",Gj["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",Gj["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", Gj["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",Gj["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",Gj["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",Gj["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",Gj["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",Gj["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",Gj["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",Gj["dialog.copyright_strikes"]= "LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",Gj["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",Gj["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",Gj.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",Gj["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",Gj["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",Gj["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",Gj["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",Gj["owner.asset_groups"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",Gj["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",Gj["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",Gj["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",Gj["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",Gj["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",Gj["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",Gj["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",Gj["owner.delivery"]= "LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",Gj["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",Gj["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",Gj["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",Gj["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",Gj["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",Gj["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",Gj["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",Gj["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", Gj["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",Gj["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",Gj["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",Gj["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",Gj["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",Gj["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",Gj["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",Gj["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",Gj["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", Gj["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",Gj["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",Gj["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",Gj["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",Gj["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",Gj["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",Gj["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",Gj["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS", Gj),iL={},GlX=(iL.auto_search="LATENCY_ACTION_AUTO_SEARCH",iL.ad_to_ad="LATENCY_ACTION_AD_TO_AD",iL.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",iL.app_startup="LATENCY_ACTION_APP_STARTUP",iL.browse="LATENCY_ACTION_BROWSE",iL.cast_splash="LATENCY_ACTION_CAST_SPLASH",iL.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",iL.channels="LATENCY_ACTION_CHANNELS",iL.chips="LATENCY_ACTION_CHIPS",iL.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",iL.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK", iL.editor="LATENCY_ACTION_EDITOR",iL.embed="LATENCY_ACTION_EMBED",iL.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",iL.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",iL.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",iL.explore="LATENCY_ACTION_EXPLORE",iL.favorites="LATENCY_ACTION_FAVORITES",iL.home="LATENCY_ACTION_HOME",iL.inboarding="LATENCY_ACTION_INBOARDING",iL.library="LATENCY_ACTION_LIBRARY",iL.live="LATENCY_ACTION_LIVE",iL.live_pagination= "LATENCY_ACTION_LIVE_PAGINATION",iL.management="LATENCY_ACTION_MANAGEMENT",iL.mini_app="LATENCY_ACTION_MINI_APP_PLAY",iL.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",iL.onboarding="LATENCY_ACTION_ONBOARDING",iL.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",iL.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",iL.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",iL.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",iL.prebuffer="LATENCY_ACTION_PREBUFFER", iL.prefetch="LATENCY_ACTION_PREFETCH",iL.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",iL.profile_switcher="LATENCY_ACTION_LOGIN",iL.projects="LATENCY_ACTION_PROJECTS",iL.reel_watch="LATENCY_ACTION_REEL_WATCH",iL.results="LATENCY_ACTION_RESULTS",iL.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",iL.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",iL.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",iL.review="LATENCY_ACTION_REVIEW",iL.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER", iL.search_ui="LATENCY_ACTION_SEARCH_UI",iL.search_suggest="LATENCY_ACTION_SUGGEST",iL.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",iL.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",iL.seek="LATENCY_ACTION_PLAYER_SEEK",iL.settings="LATENCY_ACTION_SETTINGS",iL.store="LATENCY_ACTION_STORE",iL.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",iL.tenx="LATENCY_ACTION_TENX",iL.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",iL.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",iL.watch="LATENCY_ACTION_WATCH", iL.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",iL["watch,watch7"]="LATENCY_ACTION_WATCH",iL["watch,watch7_html5"]="LATENCY_ACTION_WATCH",iL["watch,watch7ad"]="LATENCY_ACTION_WATCH",iL["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",iL.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",iL.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",iL.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",iL.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",iL.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE", iL.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",iL.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",iL.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",iL);Object.assign(GlX,VBz);g.L(mh,X3);var V79=new S7("aft-recorded",mh);var kwQ=g.OG.ytLoggingGelSequenceIdObj_||{};g.BG("ytLoggingGelSequenceIdObj_",kwQ);var yY=g.OG.ytLoggingLatencyUsageStats_||{};g.BG("ytLoggingLatencyUsageStats_",yY);IC.prototype.tick=function(Z,Q,z,K){dh(this,"tick_"+Z+"_"+Q)||g.DW("latencyActionTicked",{tickName:Z,clientActionNonce:Q},{timestamp:z,cttAuthInfo:K})}; IC.prototype.info=function(Z,Q,z){var K=Object.keys(Z).join("");dh(this,"info_"+K+"_"+Q)||(Z=Object.assign({},Z),Z.clientActionNonce=Q,g.DW("latencyActionInfo",Z,{cttAuthInfo:z}))}; IC.prototype.jspbInfo=function(Z,Q,z){for(var K="",b=0;b<ip(Z).length;b++)ip(Z)[b]!==void 0&&(K=b===0?K.concat(""+b):K.concat("_"+b));if(!dh(this,"info_"+K+"_"+Q)){Tk(Z,2,Q);z={cttAuthInfo:z};Q=g.nA("jspb_sparse_encoded_pivot")?new VN([{}]):new VN;Z!=null?J6(Z,Uf):Z=void 0;Zc(Q,7,WwH,Z);z=z===void 0?{}:z;Z=!1;g.Ft("ytLoggingEventsDefaultDisabled",!1)&&(Z=!0);Z=Z?null:g.lC;z=z===void 0?{}:z;K=Math.round(z.timestamp||(0,g.Nm)());$_(Q,1,K<Number.MAX_SAFE_INTEGER?K:0);K=new WF;z.lact?$_(K,1,isFinite(z.lact)? z.lact:-1):z.timestamp?$_(K,1,-1):(b=yJ(),$_(K,1,isFinite(b)?b:-1));if(z.sequenceGroup&&!g.nA("web_gel_sequence_info_killswitch")){b=z.sequenceGroup;var q=LCG(b),r=new BF;$_(r,2,q);Tk(r,1,b);jp(K,BF,3,r);z.endOfSequence&&delete kwQ[z.sequenceGroup]}jp(Q,WF,33,K);(z.sendIsolatedPayload?wXM:Eqd)("latencyActionInfo",{endpoint:"log_event",payload:Q,cttAuthInfo:z.cttAuthInfo,dangerousLogToVisitorSession:z.dangerousLogToVisitorSession},Z)}}; IC.prototype.span=function(Z,Q,z){var K=Object.keys(Z).join("");dh(this,"span_"+K+"_"+Q)||(Z.clientActionNonce=Q,g.DW("latencyActionSpan",Z,{cttAuthInfo:z}))};var aS=window,NX=aS.performance||aS.mozPerformance||aS.msPerformance||aS.webkitPerformance||new ij0;var Wpu=!1,RkG=!1,MX={'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"},u3u=(0,g.EG)(NX.clearResourceTimings||NX.webkitClearResourceTimings||NX.mozClearResourceTimings||NX.msClearResourceTimings||NX.oClearResourceTimings||g.DS,NX);var u7z=window;u7z.ytcsi&&(u7z.ytcsi.infoGel=g.oC,u7z.ytcsi.tick=Ow);var AXu="tokens consistency mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" "),DFu=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];var Yhr=new d1("INNERTUBE_TRANSPORT_TOKEN");g.L(FS,QY);FS.prototype.S=function(){return d6X}; FS.prototype.j=function(Z){return g.V(Z,D6U)||void 0}; FS.prototype.Y=function(Z,Q,z){z=z===void 0?{}:z;Q.channelIds&&(Z.channelIds=Q.channelIds);Q.siloName&&(Z.siloName=Q.siloName);Q.params&&(Z.params=Q.params);z.botguardResponse&&(Z.botguardResponse=z.botguardResponse);z.feature&&(Z.clientFeature=z.feature)}; g.An.Object.defineProperties(FS.prototype,{W:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.L(eI,QY);eI.prototype.S=function(){return Nlm}; eI.prototype.j=function(Z){return g.V(Z,jco)||void 0}; eI.prototype.Y=function(Z,Q){Q.channelIds&&(Z.channelIds=Q.channelIds);Q.siloName&&(Z.siloName=Q.siloName);Q.params&&(Z.params=Q.params)}; g.An.Object.defineProperties(eI.prototype,{W:{configurable:!0,enumerable:!0,get:function(){return!0}}});var x6Q=new d1("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");g.L(wh,QY);wh.prototype.S=function(){return cjU}; wh.prototype.j=function(Z){return g.V(Z,wn$)||g.V(Z,E$0)||g.V(Z,e0E)}; wh.prototype.Y=function(Z,Q){Q.serializedShareEntity&&(Z.serializedSharedEntity=Q.serializedShareEntity);if(Q.clientParamIdentifier){var z;if((z=this.K)==null?0:z.Y(Q.clientParamIdentifier))Z.clientParams=this.K.j(Q.clientParamIdentifier)}}; wh[im]=[x6Q];g.L(Ew,QY);Ew.prototype.S=function(){return IIJ}; Ew.prototype.j=function(Z){return g.V(Z,Ozo)||void 0}; Ew.prototype.Y=function(Z,Q,z){Z.feedbackTokens=[];Q.feedbackToken&&Z.feedbackTokens.push(Q.feedbackToken);if(Q=Q.cpn||z.cpn)Z.feedbackContext={cpn:Q};Z.isFeedbackTokenUnencrypted=!!z.is_feedback_token_unencrypted;Z.shouldMerge=!1;z.extra_feedback_tokens&&(Z.shouldMerge=!0,Z.feedbackTokens=Z.feedbackTokens.concat(z.extra_feedback_tokens))}; g.An.Object.defineProperties(Ew.prototype,{W:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.L(lK,QY);lK.prototype.S=function(){return Jj$}; lK.prototype.j=function(Z){return g.V(Z,Aj0)||void 0}; lK.prototype.Y=function(Z,Q){Q.params&&(Z.params=Q.params);Q.secondaryParams&&(Z.secondaryParams=Q.secondaryParams)};g.L(sP,QY);sP.prototype.S=function(){return yjz}; sP.prototype.j=function(Z){return g.V(Z,qmz)||void 0}; sP.prototype.Y=function(Z,Q){Q.actions&&(Z.actions=Q.actions);Q.params&&(Z.params=Q.params);Q.playlistId&&(Z.playlistId=Q.playlistId)};g.L(ZV,QY);ZV.prototype.S=function(){return m6Q}; ZV.prototype.j=function(Z){return g.V(Z,lHm)}; ZV.prototype.Y=function(Z,Q,z){z=z===void 0?{}:z;Q.serializedShareEntity&&(Z.serializedSharedEntity=Q.serializedShareEntity);z.includeListId&&(Z.includeListId=!0)};var tBX=new d1("FETCH_FN_TOKEN"),FUz=new d1("PARSE_FN_TOKEN");g.L(g.Q5,g.tW);var eJm=new d1("NETWORK_SLI_TOKEN");z0.prototype.fetch=function(Z,Q,z){var K=this,b,q,r;return g.C(function(D){b=v9W(K,Z,Q);r=(q=K.j)!=null?q:fetch;return D.return(r(b).then(function(v){return K.handleResponse(v,z)}).catch(function(v){g.CO(v); if((z==null?0:z.WM)&&v instanceof g.Q5&&v.errorType===1)return Promise.reject(v)}))})}; z0.prototype.handleResponse=function(Z,Q){var z,K=(z=this.S)!=null?z:JSON.parse;z=Z.text().then(function(b){if((Q==null?0:Q.NrI)&&Z.ok)return PB9(Q.NrI,b);b=b.replace(")]}'","");if((Q==null?0:Q.WM)&&b)try{var q=K(b)}catch(D){throw new g.Q5(1,"JSON parsing failed after fetch");}var r;return(r=q)!=null?r:K(b)}); Z.redirected||Z.ok?this.Y&&this.Y.success():(this.Y&&this.Y.slh(),z=z.then(function(b){g.CO(new g.tW("Error: API fetch failed",Z.status,Z.url,b));return Object.assign({},b,{errorMetadata:{status:Z.status}})})); return z}; z0[im]=[new NF(eJm),new NF(tBX),new NF(FUz)];var g9n=new d1("NETWORK_MANAGER_TOKEN");var Ke;rE.prototype.bindInnertubeChallengeFetcher=function(Z){this.Y.bicf(Z)}; rE.prototype.registerChallengeFetchedCallback=function(Z){this.Y.bcr(Z)}; rE.prototype.getLatestChallengeResponse=function(){return this.Y.blc()};var $FW=[],AK=!1;Yj.prototype.W=function(){var Z=this;return g.C(function(Q){return Q.Y==1?g.P(Q,Promise.race([Z.Y,null]),2):Q.return(!!Q.j)})}; Yj.prototype.S=function(Z,Q,z){var K=this,b,q,r;return g.C(function(D){K.Y===null&&ftG(K,gE(K));b=!1;q={};r=function(){var v,Y,X;return g.C(function(S){switch(S.Y){case 1:return g.P(S,K.Y,2);case 2:v=S.j;q.challenge=v.challenge;if(!v.Hg){"c1a"in v.D$&&(q.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");S.O$(3);break}Y=Object.assign({},{c:v.challenge,e:Z},Q);g.nX(S,4);b=!0;if(g.nA("attbs")&&!g.nA("attmusi")){X=v.Hg.M$({wV:Y});S.O$(6);break}return g.P(S,v.Hg.snapshot({wV:Y}),7);case 7:X=S.j;case 6:X?q.webResponse= X:q.error="ATTESTATION_ERROR_VM_NO_RESPONSE";g.m9(S,3);break;case 4:g.I0(S),q.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(Z==="ENGAGEMENT_TYPE_PLAYBACK"){var T=v.D$,f={};T.c6a&&(f.reportingStatus=String(Number(T.c)^jd()));T.c6b&&(f.broadSpectrumDetectionResult=String(Number(T.c)^Number(g.Ft("CATSTAT",0))));q.adblockReporting=f}return S.return(q)}})}; return D.return(Promise.race([r(),cX0(z,function(){var v=Object.assign({},q);b&&(v.error="ATTESTATION_ERROR_VM_TIMEOUT");return v})]))})};var JX9=["APP_STATE","PI"];var z5W=[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,249183,230679,230678,230677,230681,230680,162711,235234,162712,80357,243315,86113,72598,168413,72733,107349,124275,118203,200410,133275,160157,152569,156651,133274, 160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,156655,156654,121692,211414,211411,211412,211413,211403,184846,185993,145656,156656,145655,145653,145654,145657,132972, 133051,133658,132971,97615,181262,190762,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];Sd.prototype.getState=function(){return this.store.getState()}; Sd.prototype.dispatch=function(Z){return this.store.dispatch(Z)}; Sd.prototype.subscribe=function(Z){return this.store.subscribe(Z)}; Sd.prototype.replaceReducer=function(Z){return this.store.replaceReducer(Z)}; Sd.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};g.A=fe.prototype;g.A.getLength=function(){return this.totalLength}; g.A.append=function(Z){if(N1n(this,Z)){var Q=this.Vf[this.Vf.length-1];this.Vf[this.Vf.length-1]=new Uint8Array(Q.buffer,Q.byteOffset,Q.length+Z.length);ne(this)}else this.Vf.push(Z);this.totalLength+=Z.length}; g.A.split=function(Z){for(var Q=new fe,z=new fe,K=g.n(this.Vf),b=K.next();!b.done;b=K.next())b=b.value,Z>=b.length?(Q.append(b),Z-=b.length):Z?(Q.append(new Uint8Array(b.buffer,b.byteOffset,Z)),z.append(new Uint8Array(b.buffer,b.byteOffset+Z,b.length-Z)),Z=0):z.append(b);return{VE:Q,K6:z}}; g.A.isFocused=function(Z){return Z>=this.V5&&Z<this.V5+this.Vf[this.u0].length}; g.A.focus=function(Z){if(!this.isFocused(Z)){for(Z<this.V5&&ne(this);this.V5+this.Vf[this.u0].length<=Z&&this.u0<this.Vf.length;)this.V5+=this.Vf[this.u0].length,this.u0+=1;this.bX=void 0}}; g.A.PL=function(Z,Q){return Z+Q<=this.totalLength}; g.A.Vk=function(Z,Q){Z=Z===void 0?0:Z;Q=Q===void 0?-1:Q;if(!this.totalLength||!Q)return new DataView(new ArrayBuffer(0));Q<0&&(Q=this.totalLength-Z);this.focus(Z);if(!cA(this,Z,Q)){var z=this.u0,K=this.V5;this.focus(Z+Q-1);K=new Uint8Array(this.V5+this.Vf[this.u0].length-K);for(var b=0,q=z;q<=this.u0;q++)K.set(this.Vf[q],b),b+=this.Vf[q].length;this.Vf.splice(z,this.u0-z+1,K);ne(this);this.focus(Z)}z=this.Vf[this.u0];return new DataView(z.buffer,z.byteOffset+Z-this.V5,Q)}; g.A.m9=function(Z,Q){Z=this.Vk(Z===void 0?0:Z,Q===void 0?-1:Q);return new Uint8Array(Z.buffer,Z.byteOffset,Z.byteLength)}; g.A.getUint8=function(Z){this.focus(Z);return this.Vf[this.u0][Z-this.V5]};var y5,Iv,NH;g.X0=function(){function Z(K){for(var b=new Uint8Array(K.length),q=0;q<K.length;q++)b[q]=K[q];return b} function Q(K){return new Uint8Array(K)} var z=new Uint8Array([1]);return z.length===1&&z[0]===1?Q:Z}(); y5=Array(1024);Iv=window.TextDecoder?new TextDecoder:void 0;NH=window.TextEncoder?new TextEncoder:void 0;for(var MkM={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},Hl0={},wDY=g.n(Object.entries(MkM)),En$=wDY.next();!En$.done;En$=wDY.next()){var lIJ=g.n(En$.value),sI0=lIJ.next().value,Z9w=lIJ.next().value,QIw=sI0,zUm=Z9w;zUm&&(Hl0[zUm]=QIw)};var o9x=!1,gx,YZ,XK,SP,$Z;g.L(Tg,g.O); Tg.prototype.encrypt=function(Z){var Q=Z.length;Z=new Uint8Array(Z.buffer.slice(Z.byteOffset,Z.byteOffset+Q));for(var z=this.j,K=0;K<Q&&this.Y<16;)Z[K++]^=z[this.Y++];for(var b=Q-(Q-K)%16;K<b;)B1W(this),Z[K++]^=z[0],Z[K++]^=z[1],Z[K++]^=z[2],Z[K++]^=z[3],Z[K++]^=z[4],Z[K++]^=z[5],Z[K++]^=z[6],Z[K++]^=z[7],Z[K++]^=z[8],Z[K++]^=z[9],Z[K++]^=z[10],Z[K++]^=z[11],Z[K++]^=z[12],Z[K++]^=z[13],Z[K++]^=z[14],Z[K++]^=z[15];if(K<Q)for(B1W(this),this.Y=0;K<Q;)Z[K++]^=z[this.Y++];return Z};var hM=!1;(function(){function Z(K){for(var b=new Uint8Array(K.length),q=0;q<K.length;q++)b[q]=K[q];return b} function Q(K){return new Uint8Array(K)} var z=new Uint8Array([1]);return z.length===1&&z[0]===1?Q:Z})(); var LR;g.cV.prototype.encrypt=function(Z,Q){var z=this,K,b;return g.C(function(q){if(q.Y==1){K=nR();if(!K)return q.return(z.Y(Z,Q));g.nX(q,3);return g.P(q,z.j(Z,Q,K),5)}if(q.Y!=3)return q.return(q.j);b=g.I0(q);g.CO(b);hM=!0;return q.return(z.Y(Z,Q))})}; g.cV.prototype.j=function(Z,Q,z){var K=this,b,q;return g.C(function(r){switch(r.Y){case 1:if(K.L){r.O$(2);break}return g.P(r,z.importKey("raw",K.W,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:K.L=r.j;case 2:return b={name:"AES-CTR",counter:Q,length:128},g.P(r,z.encrypt(b,K.L,Z),4);case 4:return q=r.j,r.return(new Uint8Array(q))}})}; g.cV.prototype.Y=function(Z,Q){this.S||(this.S=new Tg(this.W));fR(this.S,Q);return this.S.encrypt(Z)}; g.cV.prototype.decrypt=function(Z,Q){return this.encrypt(Z,Q)}; g.mO.prototype.encrypt=function(Z,Q){this.Y||(this.Y=new Tg(this.j));fR(this.Y,Q);return this.Y.encrypt(Z)}; g.mO.prototype.decrypt=function(Z,Q){return this.encrypt(Z,Q)};Ih.prototype.reset=function(){VkG(this);this.update(this.S)}; Ih.prototype.update=function(Z){var Q=0,z=Z.length;this.W+=z;this.j&&this.j+z>=64&&(this.K.set(Z.subarray(0,64-this.j),this.j),Q=64-this.j,this.j=0,WH9(this,this.K,0));for(;Q+64<=z;Q+=64)WH9(this,Z,Q);Q<z&&(Z=Z.subarray(Q),this.K.set(Z,this.j),this.j+=Z.length)}; var JM=[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 KEm;KEm={};g.b9$=g.Z4("yt-idb-pref-storage",{yQ:(KEm.prefs={Mw:1},KEm),shared:!1,upgrade:function(Z,Q){Q(1)&&g.Hs(g.iQ(Z,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")}, version:1});var Pt;Pt={};g.qo$=(Pt.INVALID_ENCODER_VERSION="Invalid encoder version",Pt.KEY_CREATION_FAILED="Failed to create encoder key",Pt.UNKNOWN_DECODE_ERROR="Failed to decode PES data",Pt.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",Pt.WRONG_DATA_TYPE="Encoder cannot process the data type",Pt);g.AM("","downloadsPageViewConfigurationEntity");g.AM("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");g.RS=g.AM("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");g.AM("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");g.AM("SMART_DOWNLOADS_ENABLED","settingEntity");g.AM("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var AyG=["www.youtube-nocookie.com","www.youtubeeducation.com","youtube.googleapis.com"];g.A=Nl.prototype;g.A.initialize=function(Z,Q,z,K){this.Ff=K;if(Z.program){var b;K=(b=Z.interpreterUrl)!=null?b:null;if(Z.interpreterSafeScript)b=aru(Z.interpreterSafeScript);else{var q;b=(q=Z.interpreterScript)!=null?q:null}Z.interpreterSafeUrl&&(K=Iz(Z.interpreterSafeUrl).toString());ry0(this,b,K,Z.program,Q,z)}else g.CO(Error("Cannot initialize botguard without program"))}; g.A.isInitialized=function(){return this.nk()}; g.A.getState=function(){return this.state}; g.A.isLoading=function(){return this.state===2}; g.A.invoke=function(Z){Z=Z===void 0?{}:Z;return this.nk()?this.mm({wV:Z}):null}; g.A.dispose=function(){this.K1(null);this.Q3(8)}; g.A.nk=function(){return!!this.Hg}; g.A.mm=function(Z){return this.Hg.M$(Z)}; g.A.K1=function(Z){g.jR(this.Hg);this.Hg=Z}; g.A.Q3=function(Z){this.state=Z};g.L(ah,Nl);ah.prototype.K1=function(Z){var Q;(Q=Gg())==null||Q.bgvma();Z?(Q={bgvma:Z.dispose.bind(Z),bgvmb:Z.snapshot.bind(Z),bgvmc:Z.M$.bind(Z)},g.BG("yt.abuse.playerAttLoader",Q),g.BG("yt.abuse.playerAttLoaderRun",function(z){return Z.snapshot(z)})):(g.BG("yt.abuse.playerAttLoader",null),g.BG("yt.abuse.playerAttLoaderRun",null))}; ah.prototype.nk=function(){return!!Gg()}; ah.prototype.mm=function(Z){return Gg().bgvmc(Z)};PV.prototype.PM=function(){return"crossDeviceProgressCommand"}; PV.prototype.O1=function(Z){if(Z.crossDevicePings){var Q=[];Z=g.n(Z.crossDevicePings);for(var z=Z.next();!z.done;z=Z.next())Q.push({baseUrl:z.value.baseUrl});g.DW("crossDeviceNotificationTransfer",{crossDevicePings:Q})}};Rh.prototype.PM=function(){return"muteAdEndpoint"}; Rh.prototype.O1=function(Z,Q){switch(Z.type){case "SKIP":jmd(this.p6,this.V0,Q)}};CR.prototype.PM=function(){return"openPopupAction"}; CR.prototype.O1=function(){};pR.prototype.PM=function(){return"pingingEndpoint"}; pR.prototype.O1=function(){};var $UM={clickTrackingParams:!0,commandMetadata:!0,loggingUrls:!0};g.L(vYx,g.O);var eAG={gn7:"FINAL",daN:"AD_BREAK_LENGTH",BvN:"AD_CPN",RFY:"AH",J6r:"AD_MT",OZp:"ASR",KL7:"AW",VmN:"NM",n8h:"NX",F$g:"NY",tmY:"CONN",E8f:"CPN",UUf:"DV_VIEWABILITY",HsI:"ERRORCODE",RZI:"ERROR_MSG",OsG:"EI",Ei7:"GOOGLE_VIEWABILITY",AuF:"IAS_VIEWABILITY",xNN:"LACT",DNu:"LIVE_TARGETING_CONTEXT",ltf:"I_X",GTF:"I_Y",CwJ:"MT",QXF:"MIDROLL_POS",Y9F:"MIDROLL_POS_MS",I$$:"MOAT_INIT",pPp:"MOAT_VIEWABILITY",TbB:"P_H",EzG:"PV_H",DEg:"PV_W",Z6p:"P_W",ekN:"TRIGGER_TYPE",dwN:"SDKV",t9I:"SLOT_POS",M9f:"SURVEY_LOCAL_TIME_EPOCH_S", Z$G:"SURVEY_ELAPSED_MS",W$:"VIS",OCY:"VIEWABILITY",KCu:"VED",zRh:"VOL",VSI:"WT",jlN:"YT_ERROR_CODE"};Uz.prototype.PM=function(){return"urlEndpoint"}; Uz.prototype.O1=function(Z,Q,z){var K=this.v7.get(),b=yG(K.j.get(),Q);b?Q=i6(K,WJ9(b),b,void 0,void 0,z):(vM("Trying to ping from an unknown layout",void 0,void 0,{layoutId:Q}),Q={});Q=Object.assign({},Q);e1(this.Y,"h5_inplayer_enable_adcpn_macro_substitution_for_click_pings")&&(z=fg(this.zg,2))&&(Q.AD_CPN=z.clientPlaybackNonce);Q=g.Pk(Z.url,Q);g.WM(Q,void 0,void 0,void 0,Z.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME")};Oz.prototype.get=function(){return this.value}; g.L(oh,Oz);oh.prototype.getType=function(){return"metadata_type_action_companion_ad_renderer"}; g.L(BV,Oz);BV.prototype.getType=function(){return"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model"}; g.L(WV,Oz);WV.prototype.getType=function(){return"metadata_type_ads_engagement_panel_renderer"}; g.L(Vt,Oz);Vt.prototype.getType=function(){return"metadata_type_ads_engagement_panel_layout_view_model"}; g.L(kZ,Oz);kZ.prototype.getType=function(){return"metadata_type_ad_next_params"}; g.L(un,Oz);un.prototype.getType=function(){return"metadata_type_ad_video_clickthrough_endpoint"}; g.L(xZ,Oz);xZ.prototype.getType=function(){return"metadata_type_invideo_overlay_ad_renderer"}; g.L(tM,Oz);tM.prototype.getType=function(){return"metadata_type_image_companion_ad_renderer"}; g.L(FK,Oz);FK.prototype.getType=function(){return"metadata_type_banner_image_layout_view_model"}; g.L(eP,Oz);eP.prototype.getType=function(){return"metadata_type_shopping_companion_carousel_renderer"}; g.L(wx,Oz);wx.prototype.getType=function(){return"metadata_type_ad_info_ad_metadata"}; g.L(Ez,Oz);Ez.prototype.getType=function(){return"metadata_ad_video_is_listed"}; g.L(ln,Oz);ln.prototype.getType=function(){return"metadata_type_ad_placement_config"}; g.L(s$,Oz);s$.prototype.getType=function(){return"metadata_type_ad_pod_info"}; g.L(Z3,Oz);Z3.prototype.getType=function(){return"metadata_type_ad_pod_skip_index"}; g.L(QO,Oz);QO.prototype.getType=function(){return"metadata_type_ad_pod_skip_target"}; g.L(z4,Oz);z4.prototype.getType=function(){return"metadata_type_ad_pod_skip_target_callback_ref"}; g.L(KM,Oz);KM.prototype.getType=function(){return"metadata_type_ad_video_id"}; g.L(bs,Oz);bs.prototype.getType=function(){return"metadata_type_content_cpn"}; g.L(qh,Oz);qh.prototype.getType=function(){return"metadata_type_instream_ad_player_overlay_renderer"}; g.L(rO,Oz);rO.prototype.getType=function(){return"metadata_type_player_overlay_layout_renderer"}; g.L(Ag,Oz);Ag.prototype.getType=function(){return"metadata_type_player_underlay_renderer"}; g.L(jG,Oz);jG.prototype.getType=function(){return"metadata_type_player_underlay_ad_slot_renderer"}; g.L(D3,Oz);D3.prototype.getType=function(){return"metadata_type_media_associated_in_player_slot"}; g.L(vT,Oz);vT.prototype.getType=function(){return"metadata_type_shrunken_player_bytes_config"}; g.L(gO,Oz);gO.prototype.getType=function(){return"metadata_type_ad_action_interstitial_renderer"}; g.L(Y0,Oz);Y0.prototype.getType=function(){return"metadata_type_valid_survey_text_interstitial_renderer"}; g.L(XZ,Oz);XZ.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_DAI"}; g.L(SG,Oz);SG.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"}; g.L($0,Oz);$0.prototype.getType=function(){return"metadata_type_sliding_text_player_overlay_renderer"}; g.L(T4,Oz);T4.prototype.getType=function(){return"metadata_type_linked_player_bytes_layout_id"}; g.L(fM,Oz);fM.prototype.getType=function(){return"metadata_type_linked_in_player_layout_id"}; g.L(hg,Oz);hg.prototype.getType=function(){return"metadata_type_linked_in_player_layout_type"}; g.L(LM,Oz);LM.prototype.getType=function(){return"metadata_type_linked_in_player_slot_id"}; g.L(nM,Oz);nM.prototype.getType=function(){return"metadata_type_player_bytes_callback"}; g.L(cT,Oz);cT.prototype.getType=function(){return"metadata_type_player_bytes_callback_ref"}; g.L(mg,Oz);mg.prototype.getType=function(){return"metadata_type_player_bytes_layout_controls_callback_ref"}; g.L(Ik,Oz);Ik.prototype.getType=function(){return"metadata_type_sub_layouts"}; g.L(Jg,Oz);Jg.prototype.getType=function(){return"metadata_type_cue_point"}; g.L(yO,Oz);yO.prototype.getType=function(){return"metadata_type_video_length_seconds"}; g.L(dO,Oz);dO.prototype.getType=function(){return"metadata_type_player_vars"}; g.L(Nh,Oz);Nh.prototype.getType=function(){return"metadata_type_preload_player_vars"}; g.L(G4,Oz);G4.prototype.getType=function(){return"metadata_type_sodar_extension_data"}; g.L(is,Oz);is.prototype.getType=function(){return"metadata_type_layout_enter_ms"}; g.L(ak,Oz);ak.prototype.getType=function(){return"metadata_type_layout_exit_ms"}; g.L(PT,Oz);PT.prototype.getType=function(){return"metadata_type_media_sub_layout_index"}; g.L(Rk,Oz);Rk.prototype.getType=function(){return"metadata_type_dai"}; g.L(CM,Oz);CM.prototype.getType=function(){return"metadata_type_ad_intro"}; g.L(pM,Oz);pM.prototype.getType=function(){return"metadata_type_client_forecasting_ad_renderer"}; g.L(HT,Oz);HT.prototype.getType=function(){return"metadata_type_drift_recovery_ms"}; g.L(Mh,Oz);Mh.prototype.getType=function(){return"metadata_type_fulfilled_layout"}; g.L(U$,Oz);U$.prototype.getType=function(){return"metadata_type_ad_break_request_data"}; g.L(O$,Oz);O$.prototype.getType=function(){return"metadata_type_ad_break_response_data"}; g.L(ok,Oz);ok.prototype.getType=function(){return"metadata_type_remote_slots_data"}; g.L(BT,Oz);BT.prototype.getType=function(){return"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"}; g.L(WT,Oz);WT.prototype.getType=function(){return"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"}; g.L(VO,Oz);VO.prototype.getType=function(){return"metadata_type_legacy_info_card_vast_extension"}; g.L(k0,Oz);k0.prototype.getType=function(){return"metadata_type_valid_ad_message_renderer"}; g.L(us,Oz);us.prototype.getType=function(){return"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"}; g.L(x0,Oz);x0.prototype.getType=function(){return"metadata_type_served_from_live_infra"}; g.L(tg,Oz);tg.prototype.getType=function(){return"metadata_type_survey_overlay"}; g.L(FZ,Oz);FZ.prototype.getType=function(){return"metadata_type_active_view_traffic_type"}; g.L(eG,Oz);eG.prototype.getType=function(){return"metadata_type_active_view_identifier"}; g.L(wO,Oz);wO.prototype.getType=function(){return"metadata_type_ssdai_ads_config"}; g.L(E$,Oz);E$.prototype.getType=function(){return"metadata_type_eligible_for_ssap"}; g.L(ls,Oz);ls.prototype.getType=function(){return"metadata_type_allow_pause_ad_break_request_slot_reschedule"}; g.L(si,Oz);si.prototype.getType=function(){return"metadata_type_player_bytes_slot_metadata"}; g.L(Z0,Oz);Z0.prototype.getType=function(){return"metadata_type_prefetch_metadata"};var G19=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 UUn=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.L(bz,fz);g.L(w,fz);new Promise(function(){});var LZn=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"]]),fxd=new Map([["normal",{Mp:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",Q6:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{Mp:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",Q6:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}], ["muted",{Mp:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",Q6:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{Mp:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",Q6:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",{Mp:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",Q6:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}],["user_cancelled",{Mp:"ADS_CLIENT_EVENT_TYPE_USER_CANCELLED_EXIT_LAYOUT_REQUESTED",Q6:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_CANCELLED"}], ["error",{Mp:"ADS_CLIENT_EVENT_TYPE_ABORTED_EXIT_LAYOUT_REQUESTED",Q6:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED"}]]);g.L($H,g.O);g.A=$H.prototype;g.A.HQ=function(Z,Q){return this.Y.HQ(Z,Q)}; g.A.Gg=function(Z,Q){this.ZI.n3("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",Z,Q);for(var z=g.n(this.j),K=z.next();!K.done;K=z.next())K.value.Gg(Z,Q)}; g.A.Ty=function(Z){if(nw(this.Y,Z)){this.ZI.OR("ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",Z);this.Y.Ty(Z);for(var Q=g.n(this.j),z=Q.next();!z.done;z=Q.next())z.value.Ty(Z);IxW(this,Z)}}; g.A.Ev=function(Z){if(nw(this.Y,Z)){this.ZI.OR("ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",Z);this.Y.Ev(Z);for(var Q=g.n(this.j),z=Q.next();!z.done;z=Q.next())z.value.Ev(Z);nw(this.Y,Z)&&ch(this.Y,Z).L&&hJ(this,Z,!1)}}; g.A.jk=function(Z){this.ZI.OR("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLMENT_CANCELLED",Z);nw(this.Y,Z)&&(this.Y.jk(Z),hJ(this,Z,!1))}; g.A.Iy=function(Z,Q){if(nw(this.Y,Z)){this.ZI.Wv("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",Z,Q);for(var z=g.n(this.j),K=z.next();!K.done;K=z.next())K.value.Iy(Z,Q)}}; g.A.F3=function(Z,Q,z){if(nw(this.Y,Z)){this.ZI.Wv(hH9(z),Z,Q);this.Y.F3(Z,Q);for(var K=g.n(this.j),b=K.next();!b.done;b=K.next())b.value.F3(Z,Q,z);(z=pw(this.Y,Z))&&Q.layoutId===z.layoutId&&pcf(this,Z,!1)}}; g.A.O6=function(Z,Q,z,K){z.eQ&&K?(vM(z,Z,Q,void 0,z.Vv),this.ZI.vP(K,z.eQ,Z,Q)):vM("adsClientErrorMessage is missing.",Z,Q);hJ(this,Z,!0)}; g.A.gr=function(){var Z=MDx(this.Y);Z=g.n(Z);for(var Q=Z.next();!Q.done;Q=Z.next())hJ(this,Q.value,!1);g.O.prototype.gr.call(this)}; g.A.vN=function(Z,Q){this.ZI.Wv("ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",Z,Q);this.ZI.Wv("ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",Z,Q);for(var z=g.n(this.j),K=z.next();!K.done;K=z.next())K=K.value,Q&&K.vN(Z,Q)};HOf.prototype.isActive=function(){switch(this.Y){case "entered":case "rendering":case "rendering_stop_requested":case "exit_requested":return!0;default:return!1}};g.L(Ui,g.O);g.A=Ui.prototype;g.A.HQ=function(Z,Q){Q=Cw(this,Z+"_"+Q);Z=[];Q=g.n(Q.values());for(var z=Q.next();!z.done;z=Q.next())Z.push(z.value.slot);return Z}; g.A.AN=function(Z){Z=ch(this,Z);Z.Y!=="not_scheduled"&&Hh(Z.slot,Z.Y,"onSlotScheduled");Z.Y="scheduled"}; g.A.Jq=function(Z){Z=ch(this,Z);Z.W="fill_requested";Z.T.Jq()}; g.A.Ty=function(Z){Z=ch(this,Z);Z.Y!=="enter_requested"&&Hh(Z.slot,Z.Y,"onSlotEntered");Z.Y="entered"}; g.A.jk=function(Z){ch(this,Z).W="fill_canceled"}; g.A.Ev=function(Z){Z=ch(this,Z);Z.Y!=="exit_requested"&&Hh(Z.slot,Z.Y,"onSlotExited");Z.Y="scheduled"}; g.A.F3=function(Z,Q){Z=ch(this,Z);Z.layout!=null&&Z.layout.layoutId===Q.layoutId&&(Z.Y!=="rendering_stop_requested"&&Hh(Z.slot,Z.Y,"onLayoutExited"),Z.Y="entered")};g.L(Bh,g.O);Bh.prototype.get=function(){Math.random()<.001&&this.FI()&&vM("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.Y());return this.instance};g.L(VF,g.O);VF.prototype.S=function(){return this.j};kH.prototype.executeCommand=function(Z,Q){Ml(this.Y(),Z,Q)};tJ.prototype.addListener=function(Z){this.listeners.add(Z)}; tJ.prototype.removeListener=function(Z){this.listeners.delete(Z)};var Cq={},KH=(Cq.AD_MARKER="ytp-ad-progress",Cq.CHAPTER_MARKER="ytp-chapter-marker",Cq.TIME_MARKER="ytp-time-marker",Cq);var B_0=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/)"),tDM=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]+)?/)"), WlX=RegExp("^https?://(www\\.google\\.com/pagead/xsul|www\\.youtube\\.com/pagead/slav)"),Ziu=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)|$))"), lxx=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)|$))"),eHd=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/)"), VmX=RegExp("^https?.*#ocr$|^https?://(aksecure\\.imrworldwide\\.com/|cdn\\.imrworldwide\\.com/|secure\\-..\\.imrworldwide\\.com/)"),wc0=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)"),FZD=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/.*$)"), ul0=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)"), k6G=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)"), r6Q=RegExp("^(https://photos\\.google\\.com|https://get\\.google\\.com|https://currents\\.google\\.com|https://mail\\.google\\.com|https://yt\\-web\\-embedded\\-player\\.appspot\\.com|http://yt\\-web\\-embedded\\-player\\.appspot\\.com|https://chat\\.google\\.com|https://one\\.google\\.com|https://artsandculture\\.google\\.com)$|^http://[0-9]+\\.[a-z0-9\\-_]+\\.[a-z0-9\\-_]+\\.[a-z0-9\\-_]+\\.([a-z]{2}|i)\\.borg\\.google\\.com(:[0-9]+)?$|^https://((autopush|beta-lookup|daily-[0-6]|manual-qual|preprod|stream)\\.)?meet\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)*(crowdsource|datacompute)\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)*(youtube|youtubekids|youtubeeducation)\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+sandbox\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com$|^https://(books|play-books-(autopush|internal|preprod|staging)(-sandbox|\\.corp))\\.googleusercontent\\.com$|^https://(draft|www|(www\\.)?dev\\.sandbox|(www\\.)?autopush\\.sandbox|(www\\.)?staging\\.sandbox|(www\\.)?restore\\.sandbox)\\.blogger\\.com$|^https://[0-9a-f]{1,63}\\.proxy\\.googleprod\\.com$|^https://localhost\\.googleusercontent\\.com(:\\d+)?$|^https?://(((docs|m|sing|ss|sss|www)\\.)?drive\\.google\\.com$|([A-Za-z0-9-]{1,63}\\.)*c\\.googlers\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*corp\\.google\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*googleplex\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*proxy\\.googlers\\.com(:[0-9]+)?$|(www\\.|encrypted\\.)google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/?$|[A-Za-z0-9-]+\\.prod\\.google\\.com(:[0-9]+)?$|docs\\.google\\.com$)");g.b6.prototype.getId=function(){return this.id}; g.b6.prototype.toString=function(){return"CueRange{"+this.namespace+":"+this.id+"}["+bi4(this.start)+", "+bi4(this.end)+"]"}; g.b6.prototype.contains=function(Z,Q){return Z>=this.start&&(Z<this.end||Z===this.end&&this.start===this.end)&&(Q==null||Z<Q&&Q<=this.end)}; var Kcd=1;g.b6.prototype.getId=g.b6.prototype.getId;jX.prototype.Jq=function(){var Z=this,Q=0;us9(this.Y,function(){var z=rZ(Z.slot.clientMetadata,"metadata_type_ad_break_request_data");Q=Date.now();zf(Z.v7.get(),"abrs","ct."+Q+";cmt."+Z.LN.get().getCurrentTimeSec(1,!1)+";sid."+Z.slot.slotId+";");return Z.j.get().fetch({zm:z.getAdBreakUrl,UJ:new g.b6(z.pV,z.Ie),e5:rZ(Z.slot.clientMetadata,"metadata_type_cue_point"),cueProcessedMs:z.cueProcessedMs})},function(){rBf(Z)},function(z){var K=Date.now()-Q; zf(Z.v7.get(),"abrr","ct."+(new Date).getTime()+";cmt."+Z.LN.get().getCurrentTimeSec(1,!1)+";l."+K.toString()+";sid."+Z.slot.slotId+";");K=z.LO;K.length>=2&&z.ssdaiAdsConfig&&vM("Unexpected ad placement renderers length",Z.slot,null,{length:K.length});K.some(function(b){var q,r,D,v;return!!((q=b.renderer)==null?0:(r=q.linearAdSequenceRenderer)==null?0:(D=r.linearAds)==null?0:D.length)||!((v=b.renderer)==null||!v.instreamVideoAdRenderer)})||rBf(Z)})}; jX.prototype.VG=function(){xUx(this.Y)};DB.prototype.Jq=function(){var Z=this;us9(this.j,function(){var Q=rZ(Z.slot.clientMetadata,"metadata_type_ad_break_request_data");return Q.cueProcessedMs?Z.Y.get().fetch({zm:Q.getAdBreakUrl,UJ:new g.b6(Q.pV,Q.Ie),cueProcessedMs:Q.cueProcessedMs}):Z.Y.get().fetch({zm:Q.getAdBreakUrl,UJ:new g.b6(Q.pV,Q.Ie)})})}; DB.prototype.VG=function(){xUx(this.j)};ve.prototype.Jq=function(){var Z=this.slot.clientMetadata,Q,z=(Q=this.slot.fulfilledLayout)!=null?Q:rZ(Z,"metadata_type_fulfilled_layout");Jyr(this.callback,this.slot,z)}; ve.prototype.VG=function(){Lw(this.callback,this.slot,new w("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")};YE.prototype.build=function(Z,Q){return Q.fulfilledLayout||g7(Q,{Lf:["metadata_type_fulfilled_layout"]})?new ve(Z,Q):this.S(Z,Q)};g.L(Xa,YE); Xa.prototype.S=function(Z,Q){if(g7(Q,{Lf:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new jX(Z,Q,this.Y,this.j,this.Ky,this.H7,this.v7,this.LN,this.LL);if(g7(Q,{Lf:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new DB(Z,Q,this.Y,this.j,this.Ky,this.H7);throw new w("Unsupported slot with type: "+Q.slotType+" and client metadata: "+AJ(Q.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.L(SX,YE);SX.prototype.S=function(Z,Q){throw new w("Unsupported slot with type: "+Q.slotType+" and client metadata: "+AJ(Q.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.A=ABn.prototype;g.A.qT=function(){return this.slot}; g.A.MB=function(){return this.layout}; g.A.init=function(){}; g.A.release=function(){}; g.A.startRendering=function(Z){if(Z.layoutId!==this.layout.layoutId)this.callback.O6(this.slot,Z,new bz("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 Q=rZ(Z.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.Iy(this.slot,Z),JKx(this.S, this.slot,Q)):vM("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,Z)}}; g.A.dX=function(Z,Q){Z.layoutId!==this.layout.layoutId?this.callback.O6(this.slot,Z,new bz("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.F3(this.slot,Z,Q),DEu(this),vfX(this))};g.L(LH,g.rV);g.A=LH.prototype;g.A.qT=function(){return this.j.slot}; g.A.MB=function(){return this.j.layout}; g.A.init=function(){this.S.get().addListener(this)}; g.A.release=function(){this.S.get().removeListener(this);this.dispose()}; g.A.Fz=function(){}; g.A.Vu=function(){}; g.A.LU=function(){}; g.A.J5=function(){}; g.A.startRendering=function(Z){var Q=this;hH(this.j,Z,function(){return void Q.zD()})}; g.A.zD=function(){this.S.get().zD(this.Y)}; g.A.dX=function(Z,Q){var z=this;hH(this.j,Z,function(){var K=z.S.get();b2n(K,z.Y,3);z.Y=[];z.callback.F3(z.slot,Z,Q)})}; g.A.gr=function(){this.S.FI()||this.S.get().removeListener(this);g.rV.prototype.gr.call(this)}; g.An.Object.defineProperties(LH.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.j.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.j.layout}}});N4.prototype.iJ=function(Z,Q){Q=Q===void 0?!1:Q;var z=(this.S.get(Z)||[]).concat();if(Q=Q&&XIG(Z)){var K=this.S.get(Q);K&&z.push.apply(z,g.I(K))}ax(this,Z,z);this.Y.add(Z);Q&&this.Y.add(Q)}; N4.prototype.Ao=function(Z,Q){Q=Q===void 0?!1:Q;if(!this.Y.has(Z)){var z=Q&&XIG(Z);z&&(Q=!this.Y.has(z));this.iJ(Z,Q)}};g.L(TVd,qE);g.L(He,LH);g.A=He.prototype;g.A.cN=function(Z,Q){Ix("ads-engagement-panel-layout",Z,this.K.get().LM,this.v7.get(),this.W,this.L,this.qT(),this.MB(),Q)}; g.A.startRendering=function(Z){ce(this.yp,this.qT(),this.MB(),g.V(this.MB().renderingContent,qb),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(Q,z,K,b,q){return new TVd(Q,z,K,b,q)},this.Y); LH.prototype.startRendering.call(this,Z)}; g.A.Iy=function(Z,Q){this.L===Q.layoutId&&(this.W===null?this.W=this.v7.get().Ax():vM("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.A.F3=function(){}; g.A.AN=function(){}; g.A.e_=function(){}; g.A.Dp=function(){}; g.A.Ty=function(){}; g.A.Ev=function(){}; g.A.Zp=function(){}; g.A.Me=function(){}; g.A.Jx=function(){}; g.A.vN=function(){}; g.A.Gg=function(){}; g.A.gr=function(){fw(this.wy(),this);LH.prototype.gr.call(this)};g.L(huG,qE);g.L(M4,LH);g.A=M4.prototype;g.A.cN=function(Z,Q){Ix("banner-image",Z,this.K.get().LM,this.v7.get(),this.W,this.L,this.qT(),this.MB(),Q)}; g.A.startRendering=function(Z){ce(this.yp,this.qT(),this.MB(),g.V(this.MB().renderingContent,K5),this.callback,"metadata_type_banner_image_layout_view_model",function(Q,z,K,b,q){return new huG(Q,z,K,b,q)},this.Y); LH.prototype.startRendering.call(this,Z)}; g.A.Iy=function(Z,Q){this.L===Q.layoutId&&(this.W===null?this.W=this.v7.get().Ax():vM("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.A.F3=function(){}; g.A.AN=function(){}; g.A.e_=function(){}; g.A.Dp=function(){}; g.A.Ty=function(){}; g.A.Ev=function(){}; g.A.Zp=function(){}; g.A.Me=function(){}; g.A.Jx=function(){}; g.A.vN=function(){}; g.A.Gg=function(){}; g.A.gr=function(){fw(this.wy(),this);LH.prototype.gr.call(this)};g.L(U1,qE);g.L(O1,LH);g.A=O1.prototype;g.A.cN=function(Z,Q){Ix("action-companion",Z,this.K.get().LM,this.v7.get(),this.W,this.L,this.qT(),this.MB(),Q)}; g.A.startRendering=function(Z){ce(this.yp,this.qT(),this.MB(),g.V(this.MB().renderingContent,ZA),this.callback,"metadata_type_action_companion_ad_renderer",function(Q,z,K,b,q){return new U1(Q,z,K,b,q)},this.Y); LH.prototype.startRendering.call(this,Z)}; g.A.Iy=function(Z,Q){Q.layoutId===this.layout.layoutId?this.yp.Ao("impression"):this.L===Q.layoutId&&(this.W===null?this.W=this.v7.get().Ax():vM("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.A.F3=function(){}; g.A.AN=function(){}; g.A.e_=function(){}; g.A.Dp=function(){}; g.A.Ty=function(){}; g.A.Ev=function(){}; g.A.Zp=function(){}; g.A.Me=function(){}; g.A.Jx=function(){}; g.A.vN=function(){}; g.A.Gg=function(){}; g.A.gr=function(){fw(this.wy(),this);LH.prototype.gr.call(this)};g.L(cBr,qE);g.L(ox,LH);g.A=ox.prototype;g.A.cN=function(Z,Q){Ix("image-companion",Z,this.K.get().LM,this.v7.get(),this.W,this.L,this.qT(),this.MB(),Q)}; g.A.startRendering=function(Z){ce(this.yp,this.qT(),this.MB(),g.V(this.MB().renderingContent,QQ),this.callback,"metadata_type_image_companion_ad_renderer",function(Q,z,K,b,q){return new cBr(Q,z,K,b,q)},this.Y); LH.prototype.startRendering.call(this,Z)}; g.A.Iy=function(Z,Q){Q.layoutId===this.layout.layoutId?this.yp.Ao("impression"):this.L===Q.layoutId&&(this.W===null?this.W=this.v7.get().Ax():vM("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.A.F3=function(){}; g.A.AN=function(){}; g.A.e_=function(){}; g.A.Dp=function(){}; g.A.Ty=function(){}; g.A.Ev=function(){}; g.A.Zp=function(){}; g.A.Me=function(){}; g.A.Jx=function(){}; g.A.vN=function(){}; g.A.Gg=function(){}; g.A.gr=function(){fw(this.wy(),this);LH.prototype.gr.call(this)};g.L(Izn,qE);g.L(Be,LH);g.A=Be.prototype;g.A.cN=function(Z,Q){Ix("shopping-companion",Z,this.K.get().LM,this.v7.get(),this.W,this.L,this.qT(),this.MB(),Q)}; g.A.startRendering=function(Z){ce(this.yp,this.qT(),this.MB(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(Q,z,K,b,q){return new Izn(Q,z,K,b,q)},this.Y); LH.prototype.startRendering.call(this,Z)}; g.A.Iy=function(Z,Q){Q.layoutId===this.layout.layoutId?this.yp.Ao("impression"):this.L===Q.layoutId&&(this.W===null?this.W=this.v7.get().Ax():vM("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.A.F3=function(){}; g.A.AN=function(){}; g.A.e_=function(){}; g.A.Dp=function(){}; g.A.Ty=function(){}; g.A.Ev=function(){}; g.A.Zp=function(){}; g.A.Me=function(){}; g.A.Jx=function(){}; g.A.vN=function(){}; g.A.Gg=function(){}; g.A.gr=function(){fw(this.wy(),this);LH.prototype.gr.call(this)};g.L(Vh,LH);g.A=Vh.prototype;g.A.startRendering=function(Z){ce(this.yp,this.qT(),this.MB(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(Q,z,K,b,q){return new U1(Q,z,K,b,q)},this.Y); LH.prototype.startRendering.call(this,Z)}; g.A.Iy=function(){}; g.A.F3=function(){}; g.A.AN=function(){}; g.A.e_=function(){}; g.A.Dp=function(){}; g.A.Ty=function(){}; g.A.Ev=function(){}; g.A.Zp=function(){}; g.A.Me=function(){}; g.A.Jx=function(){}; g.A.vN=function(){}; g.A.Gg=function(){}; g.A.gr=function(){fw(this.wy(),this);LH.prototype.gr.call(this)}; g.A.cN=function(){};g.A=iiu.prototype;g.A.qT=function(){return this.slot}; g.A.MB=function(){return this.layout}; g.A.init=function(){this.LN.get().addListener(this);this.LN.get().yN.push(this);var Z=rZ(this.layout.clientMetadata,"metadata_type_video_length_seconds"),Q=rZ(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");JH(this.layout.wq)&&sR(this.B4.get(),this.layout.layoutId,{Dh:Q,Gl:Z,listener:this})}; g.A.release=function(){this.LN.get().removeListener(this);lGG(this.LN.get(),this);JH(this.layout.wq)&&Ze(this.B4.get(),this.layout.layoutId)}; g.A.startRendering=function(Z){this.callback.Iy(this.slot,Z)}; g.A.dX=function(Z,Q){mJn(this.H7.get())&&!this.Y&&(this.yp.Ao("abandon"),this.Y=!0);this.callback.F3(this.slot,Z,Q)}; g.A.XF=function(Z){switch(Z.id){case "part2viewed":this.yp.Ao("start");this.yp.Ao("impression");break;case "videoplaytime25":this.yp.Ao("first_quartile");break;case "videoplaytime50":this.yp.Ao("midpoint");break;case "videoplaytime75":this.yp.Ao("third_quartile");break;case "videoplaytime100":mJn(this.H7.get())?this.Y||(this.yp.Ao("complete"),this.Y=!0):this.yp.Ao("complete");pH(this.yp)&&Rx(this.yp,Infinity,!0);IGG(this.H7.get())&&We(this.j,Infinity,!0);break;case "engagedview":pH(this.yp)||this.yp.Ao("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:vM("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.A.onVolumeChange=function(){}; g.A.RF=function(){}; g.A.Es=function(){}; g.A.Gu=function(){}; g.A.onFullscreenToggled=function(){}; g.A.hN=function(){}; g.A.XP=function(){}; g.A.Hd=function(Z){IGG(this.H7.get())&&We(this.j,Z*1E3,!1);pH(this.yp)&&Rx(this.yp,Z*1E3,!1)}; g.A.At=function(){}; g.A.il=function(){this.yp.Ao("active_view_measurable")}; g.A.SZ=function(){this.yp.Ao("active_view_viewable")}; g.A.jZ=function(){this.yp.Ao("active_view_fully_viewable_audible_half_duration")}; g.A.pE=function(){this.yp.Ao("audio_measurable")}; g.A.Ik=function(){this.yp.Ao("audio_audible")};g.L(kE,LH);g.A=kE.prototype;g.A.init=function(){LH.prototype.init.call(this);var Z=rZ(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),Q={adsClientData:this.layout.EA};this.Y.push(new LF(Z,this.layout.layoutId,rZ(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),Q,!0))}; g.A.YA=function(){this.W||this.LN.get().resumeVideo(1)}; g.A.startRendering=function(Z){LH.prototype.startRendering.call(this,Z);Ap(this.LN.get(),"ad-showing");this.callback.Iy(this.slot,Z);this.L.EX=this}; g.A.dX=function(Z,Q){LH.prototype.dX.call(this,Z,Q);jv(this.LN.get(),"ad-showing");uy(this.L,this)}; g.A.cN=function(Z){switch(Z){case "ad-info-icon-button":(this.W=this.LN.get().JV(1))||this.LN.get().pauseVideo();break;case "visit-advertiser":this.LN.get().pauseVideo()}}; g.A.gr=function(){LH.prototype.gr.call(this)};g.L(u6,qE);g.L(xE,LH);g.A=xE.prototype;g.A.startRendering=function(Z){ce(this.yp,this.qT(),this.MB(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(Q,z,K,b,q){return new u6(Q,z,K,b,q)},this.Y); LH.prototype.startRendering.call(this,Z)}; g.A.Iy=function(){}; g.A.F3=function(){}; g.A.AN=function(){}; g.A.e_=function(){}; g.A.Dp=function(){}; g.A.Ty=function(){}; g.A.Ev=function(){}; g.A.Zp=function(){}; g.A.Me=function(){}; g.A.Jx=function(){}; g.A.vN=function(){}; g.A.Gg=function(){}; g.A.gr=function(){fw(this.wy(),this);LH.prototype.gr.call(this)}; g.A.cN=function(){};g.L(tH,qE);g.L(Fa,LH);Fa.prototype.init=function(){LH.prototype.init.call(this);this.Y.push(new tH(g.V(this.layout.renderingContent,Ju),this.layout.layoutId,{adsClientData:this.layout.EA}))}; Fa.prototype.cN=function(){JQ(this.W.get(),this.L)&&mo(this.v7.get(),3)}; Fa.prototype.startRendering=function(Z){LH.prototype.startRendering.call(this,Z);this.callback.Iy(this.slot,Z)}; Fa.prototype.gr=function(){LH.prototype.gr.call(this)};g.L(eX,qE);g.L(w7,LH);w7.prototype.init=function(){LH.prototype.init.call(this);var Z=g.V(this.layout.renderingContent,vN)||rZ(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),Q=nH(this.yp);this.Y.push(new eX(Z,Q,this.layout.layoutId,{adsClientData:this.layout.EA},!0,!0))}; w7.prototype.startRendering=function(Z){LH.prototype.startRendering.call(this,Z);this.callback.Iy(this.slot,Z)}; w7.prototype.cN=function(Z,Q){if(Q===this.layout.layoutId)switch(Z){case "skip-button":var z;(Z=(z=rZ(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:z.current)&&Z.PV(this.qT(),this.layout)}}; w7.prototype.gr=function(){LH.prototype.gr.call(this)};l6.prototype.build=function(Z,Q,z,K){if(E1(K,{Lf:["metadata_type_ad_break_response_data"],Wg:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new ABn(Z,z,K,this.j,this.S,this.Y);throw new bz("Unsupported layout with type: "+K.layoutType+" and client metadata: "+AJ(K.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.L(RuX,qE);g.L(ZL,LH);g.A=ZL.prototype;g.A.cN=function(Z,Q){Ix("ads-engagement-panel",Z,this.K.get().LM,this.v7.get(),this.W,this.L,this.qT(),this.MB(),Q)}; g.A.startRendering=function(Z){ce(this.yp,this.qT(),this.MB(),g.V(this.MB().renderingContent,zE),this.callback,"metadata_type_ads_engagement_panel_renderer",function(Q,z,K,b,q){return new RuX(Q,z,K,b,q)},this.Y); LH.prototype.startRendering.call(this,Z)}; g.A.Iy=function(Z,Q){Q.layoutId===this.layout.layoutId?this.yp.Ao("impression"):this.L===Q.layoutId&&(this.W===null?this.W=this.v7.get().Ax():vM("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.A.F3=function(){}; g.A.AN=function(){}; g.A.e_=function(){}; g.A.Dp=function(){}; g.A.Ty=function(){}; g.A.Ev=function(){}; g.A.Zp=function(){}; g.A.Me=function(){}; g.A.Jx=function(){}; g.A.vN=function(){}; g.A.Gg=function(){}; g.A.gr=function(){fw(this.wy(),this);LH.prototype.gr.call(this)};g.L(QI,LH);g.A=QI.prototype;g.A.cN=function(Z,Q){Ix("top-banner-image-text-icon-buttoned",Z,this.K.get().LM,this.v7.get(),this.W,this.L,this.qT(),this.MB(),Q)}; g.A.startRendering=function(Z){ce(this.yp,this.qT(),this.MB(),g.V(this.MB().renderingContent,bD),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(Q,z,K,b,q){return new u6(Q,z,K,b,q)},this.Y); LH.prototype.startRendering.call(this,Z)}; g.A.Iy=function(Z,Q){this.L===Q.layoutId&&(this.W===null?this.W=this.v7.get().Ax():vM("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.A.F3=function(){}; g.A.AN=function(){}; g.A.e_=function(){}; g.A.Dp=function(){}; g.A.Ty=function(){}; g.A.Ev=function(){}; g.A.Zp=function(){}; g.A.Me=function(){}; g.A.Jx=function(){}; g.A.vN=function(){}; g.A.Gg=function(){}; g.A.gr=function(){fw(this.wy(),this);LH.prototype.gr.call(this)};HiG.prototype.build=function(Z,Q,z,K){if(E1(K,Con())||g.V(K.renderingContent,zE)!==void 0)return new ZL(Z,z,K,this.J4,this.v7,this.wy,this.B4,this.Y);if(E1(K,nfu())||g.V(K.renderingContent,ZA)!==void 0)return new O1(Z,z,K,this.J4,this.v7,this.wy,this.B4,this.Y);if(E1(K,mEG())||g.V(K.renderingContent,QQ)!==void 0)return new ox(Z,z,K,this.J4,this.v7,this.wy,this.B4,this.Y);if(E1(K,JBX()))return new Be(Z,z,K,this.J4,this.v7,this.wy,this.B4,this.Y);if(E1(K,GyX()))return new Vh(Z,z,K,this.J4,this.v7,this.wy, this.B4,this.Y);if(E1(K,LcX())||g.V(K.renderingContent,K5)!==void 0)return new M4(Z,z,K,this.J4,this.v7,this.wy,this.B4,this.Y);if(E1(K,pIW())||g.V(K.renderingContent,bD)!==void 0)return new QI(Z,z,K,this.J4,this.v7,this.wy,this.B4,this.Y);if(E1(K,az0()))return new xE(Z,z,K,this.J4,this.v7,this.wy,this.B4,this.Y);if(E1(K,fz0())||g.V(K.renderingContent,qb)!==void 0)return new He(Z,z,K,this.J4,this.v7,this.wy,this.B4,this.Y);throw new bz("Unsupported layout with type: "+K.layoutType+" and client metadata: "+ AJ(K.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};MNr.prototype.build=function(Z,Q,z,K){if(E1(K,{Lf:["metadata_type_linked_player_bytes_layout_id"],Wg:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new Fa(Z,z,K,this.J4,this.v7,this.Y);throw new bz("Unsupported layout with type: "+K.layoutType+" and client metadata: "+AJ(K.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.A=UEG.prototype;g.A.qT=function(){return this.slot}; g.A.MB=function(){return this.layout}; g.A.init=function(){}; g.A.release=function(){}; g.A.startRendering=function(Z){Z.layoutId!==this.layout.layoutId?this.callback.O6(this.slot,Z,new bz("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.Iy(this.slot,Z),this.yp.Ao("impression"),xo(this.lJ,Z,"normal"))}; g.A.dX=function(Z,Q){Z.layoutId!==this.layout.layoutId?this.callback.O6(this.slot,Z,new bz("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.F3(this.slot,Z,Q)};g.A=of9.prototype;g.A.qT=function(){return this.slot}; g.A.MB=function(){return this.layout}; g.A.init=function(){}; g.A.release=function(){}; g.A.startRendering=function(Z){Z.layoutId!==this.layout.layoutId?this.callback.O6(this.slot,Z,new bz("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.Iy(this.slot,Z),this.yp.Ao("impression"),xo(this.lJ,Z,"normal"))}; g.A.dX=function(Z,Q){Z.layoutId!==this.layout.layoutId?this.callback.O6(this.slot,Z,new bz("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.F3(this.slot,Z,Q)};zZ.prototype.build=function(Z,Q,z,K){if(!this.H7.get().J.N().V("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(E1(K,Oiu()))return new UEG(Z,z,K,this.v7,this.lJ)}else if(E1(K,{Lf:[],Wg:["LAYOUT_TYPE_FORECASTING"]}))return new of9(Z,z,K,this.v7,this.lJ);throw new bz("Unsupported layout with type: "+K.layoutType+" and client metadata: "+AJ(K.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.L(VNG,qE);g.L(KI,LH);g.A=KI.prototype;g.A.init=function(){LH.prototype.init.call(this);var Z=g.V(this.layout.renderingContent,DL)||rZ(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),Q={adsClientData:this.layout.EA};this.Y.push(new VNG(Z,rZ(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,Q))}; g.A.YA=function(){this.W||this.LN.get().resumeVideo(2)}; g.A.startRendering=function(Z){LH.prototype.startRendering.call(this,Z);this.callback.Iy(this.slot,Z);this.L.EX=this}; g.A.dX=function(Z,Q){LH.prototype.dX.call(this,Z,Q);uy(this.L,this)}; g.A.cN=function(Z){if(JQ(this.K.get(),this.T))switch(Z){case "visit-advertiser-link":mo(this.v7.get(),3)}switch(Z){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.W||this.LN.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.W=this.LN.get().JV(2))||this.LN.get().pauseVideo();break;case "visit-advertiser-link":this.LN.get().pauseVideo();ky4(this).sF();break;case "skip-button":if(Z=ky4(this), this.layout.renderingContent&&!QF(this.layout.clientMetadata,"metadata_type_dai")||!Z.eO){var Q;(Z=(Q=rZ(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:Q.current)&&Z.PV(this.qT(),this.layout)}else vM("Requesting to skip by LegacyPlayerBytes when components enabled"),Z.dL(this.qT(),this.layout)}}; g.A.gr=function(){LH.prototype.gr.call(this)};g.L(bt,LH);g.A=bt.prototype;g.A.init=function(){LH.prototype.init.call(this);var Z=g.V(this.layout.renderingContent,j5)||rZ(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),Q={adsClientData:this.layout.EA},z;(z=!!this.layout.renderingContent)||(z=!q5(this).eO);this.Y.push(new LF(Z,this.layout.layoutId,rZ(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),Q,z))}; g.A.YA=function(){this.W||this.LN.get().resumeVideo(2)}; g.A.startRendering=function(Z){LH.prototype.startRendering.call(this,Z);this.callback.Iy(this.slot,Z);this.L.EX=this}; g.A.dX=function(Z,Q){LH.prototype.dX.call(this,Z,Q);uy(this.L,this)}; g.A.cN=function(Z){if(JQ(this.K.get(),this.T))switch(Z){case "visit-advertiser":mo(this.v7.get(),3)}switch(Z){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.W||this.LN.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.W=this.LN.get().JV(2))||this.LN.get().pauseVideo();break;case "visit-advertiser":this.LN.get().pauseVideo();q5(this).sF();break;case "skip-button":if(Z=q5(this),this.layout.renderingContent&& !QF(this.layout.clientMetadata,"metadata_type_dai")||!Z.eO){var Q;(Z=(Q=rZ(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:Q.current)&&Z.PV(this.qT(),this.layout)}else vM("Requesting to skip by LegacyPlayerBytes"),Z.dL(this.qT(),this.layout)}}; g.A.gr=function(){LH.prototype.gr.call(this)};g.L(xEG,qE);g.L(r8,LH);g.A=r8.prototype;g.A.startRendering=function(Z){var Q=this;hH(this.j,Z,function(){Q.Y.push(new xEG(rZ(Q.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),Z.layoutId,Z.EA));Q.zD();Q.callback.Iy(Q.slot,Z);g.t(lZ(Q.LN.get(),1),512)&&Q.callback.O6(Q.qT(),Q.MB(),new bz("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.A.XP=function(){}; g.A.hN=function(Z){if(Z.state.isError()){var Q;this.callback.O6(this.qT(),this.MB(),new bz("A player error happened during adNotify",{playerErrorCode:(Q=Z.state.wm)==null?void 0:Q.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; g.A.onFullscreenToggled=function(){}; g.A.Es=function(){}; g.A.Gu=function(){}; g.A.RF=function(){}; g.A.onVolumeChange=function(){}; g.A.XF=function(){}; g.A.At=function(){}; g.A.cN=function(){};g.L(Fcn,qE);g.L(A7,LH);A7.prototype.init=function(){LH.prototype.init.call(this);var Z=g.V(this.layout.renderingContent,g8),Q=nH(this.yp);this.Y.push(new Fcn(Z,Q,this.layout.layoutId,{adsClientData:this.layout.EA}))}; A7.prototype.startRendering=function(Z){LH.prototype.startRendering.call(this,Z);this.callback.Iy(this.slot,Z)}; A7.prototype.cN=function(Z,Q){if(Q===this.layout.layoutId)switch(Z){case "skip-button":var z;(Z=(z=rZ(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:z.current)&&Z.PV(this.qT(),this.layout)}}; A7.prototype.gr=function(){LH.prototype.gr.call(this)};euW.prototype.build=function(Z,Q,z,K){if(Z=Yh(Z,z,K,this.J4,this.LN,this.v7,this.j,this.Y,this.H7))return Z;throw new bz("Unsupported layout with type: "+K.layoutType+" and client metadata: "+AJ(K.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.A=$h.prototype;g.A.qT=function(){return this.slot}; g.A.MB=function(){return this.layout}; g.A.init=function(){this.LN.get().addListener(this);this.LN.get().yN.push(this);var Z=this.layout.renderingContent?fg(this.ou.get(),1).SC/1E3:rZ(this.layout.clientMetadata,"metadata_type_video_length_seconds"),Q=rZ(this.layout.clientMetadata,"metadata_type_active_view_traffic_type"),z=rZ(this.layout.clientMetadata,"metadata_type_active_view_identifier");JH(this.layout.wq)&&sR(this.B4.get(),this.layout.layoutId,{Dh:Q,Gl:Z,listener:this,dT:z})}; g.A.release=function(){this.LN.get().removeListener(this);lGG(this.LN.get(),this);JH(this.layout.wq)&&Ze(this.B4.get(),this.layout.layoutId)}; g.A.startRendering=function(Z){this.callback.Iy(this.slot,Z)}; g.A.dX=function(Z,Q){TZ(this,"abandon");this.callback.F3(this.slot,Z,Q)}; g.A.XF=function(Z){switch(Z.id){case "part2viewed":this.yp.Ao("start");this.yp.Ao("impression");break;case "videoplaytime25":this.yp.Ao("first_quartile");break;case "videoplaytime50":this.yp.Ao("midpoint");break;case "videoplaytime75":this.yp.Ao("third_quartile");break;case "videoplaytime100":TZ(this,"complete");pH(this.yp)&&Rx(this.yp,Infinity,!0);break;case "engagedview":pH(this.yp)||this.yp.Ao("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:vM("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.A.onVolumeChange=function(){}; g.A.RF=function(){}; g.A.Es=function(){}; g.A.Gu=function(){}; g.A.onFullscreenToggled=function(){}; g.A.hN=function(Z){this.Y||(g.Xw(Z,4)&&!g.Xw(Z,2)?Pe(this.yp,"pause"):YC(Z,4)<0&&!(YC(Z,2)<0)&&Pe(this.yp,"resume"))}; g.A.XP=function(){}; g.A.Hd=function(Z){pH(this.yp)&&Rx(this.yp,Z*1E3,!1)}; g.A.At=function(){TZ(this,"swipe")}; g.A.il=function(){this.yp.Ao("active_view_measurable")}; g.A.SZ=function(){this.yp.Ao("active_view_viewable")}; g.A.jZ=function(){this.yp.Ao("active_view_fully_viewable_audible_half_duration")}; g.A.pE=function(){this.yp.Ao("audio_measurable")}; g.A.Ik=function(){this.yp.Ao("audio_audible")};wID.prototype.build=function(Z,Q,z,K){if(z.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.V(K.renderingContent,d6)!==void 0)return new $h(Z,z,K,this.LN,this.v7,this.H7,this.B4,this.ou);Q=["metadata_type_ad_placement_config"];for(var b=g.n(GQ()),q=b.next();!q.done;q=b.next())Q.push(q.value);if(E1(K,{Lf:Q,Wg:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return z.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new $h(Z,z,K,this.LN,this.v7,this.H7,this.B4,this.ou):new iiu(Z,z,K,this.LN,this.v7, this.v4,this.H7,this.B4);throw new bz("Unsupported layout with type: "+K.layoutType+" and client metadata: "+AJ(K.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var nI={contentCpn:"",yD:new Map};r1f.prototype.Sf=function(Z,Q){var z={};Q=Object.assign({},Q,(z.cc=this.zg.XB(),z));this.zg.J.pN(Z,Q)};var A6z,pq; A6z={onr:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",QqY:"AUTHENTICATION_MALFORMED",YZu:"AUTHENTICATION_MISSING",p8$:"BAD_REQUEST",HMN:"CAST_SESSION_DEVICE_MISMATCHED",P0N:"CAST_SESSION_VIDEO_MISMATCHED",dUr:"CAST_TOKEN_EXPIRED",BVJ:"CAST_TOKEN_FAILED",RGJ:"CAST_TOKEN_MALFORMED",Jtp:"CGI_PARAMS_MALFORMED",OMp:"CGI_PARAMS_MISSING",sFY:"DEVICE_FALLBACK",Ppu:"GENERIC_WITH_LINK_AND_CPN",drY:"ERROR_HDCP",BdN:"LICENSE",Jug:"VIDEO_UNAVAILABLE",Vcu:"FORMAT_UNAVAILABLE",vir:"GEO_FAILURE", yuG:"HTML5_AUDIO_RENDERER_ERROR",Xl$:"GENERIC_WITHOUT_LINK",lcr:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",G0p:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",hZr:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",qRr:"HTML5_SPS_UMP_STATUS_REJECTED",wkN:"INVALID_DRM_MESSAGE",l$J:"PURCHASE_NOT_FOUND",G1F:"PURCHASE_REFUNDED",Yqp:"RENTAL_EXPIRED",w2h:"RETRYABLE_ERROR",JRu:"SERVER_ERROR",cRf:"SIGNATURE_EXPIRED",fq$:"STOPPED_BY_ANOTHER_PLAYBACK",xwh:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",Tju:"STREAMING_NOT_ALLOWED", EZp:"STREAM_LICENSE_NOT_FOUND",ssu:"TOO_MANY_REQUESTS",yRu:"TOO_MANY_REQUESTS_WITH_LINK",X2r:"TOO_MANY_STREAMS_PER_ENTITLEMENT",lqN:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",RRr:"VIDEO_FORBIDDEN",JV$:"VIDEO_NOT_FOUND",SZ$:"BROWSER_OR_EXTENSION_ERROR"};pq={}; g.tv=(pq.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.",pq.DEVICE_FALLBACK="Sorry, this video is not available on this device.",pq.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",pq.LICENSE="Sorry, there was an error licensing this video.",pq.VIDEO_UNAVAILABLE= "Video unavailable",pq.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",pq.GEO_FAILURE="This video isn't available in your country.",pq.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",pq.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",pq.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",pq.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", pq.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",pq.HTML5_SPS_UMP_STATUS_REJECTED="Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",pq.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",pq.PURCHASE_NOT_FOUND="This video requires payment.",pq.PURCHASE_REFUNDED="This video's purchase has been refunded.",pq.RENTAL_EXPIRED="This video's rental has expired.",pq.CAST_SESSION_DEVICE_MISMATCHED= "The device in the cast session doesn't match the requested one.",pq.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",pq.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",pq.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",pq.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",pq.SERVER_ERROR="There was an internal server error. Please try again later.",pq.STOPPED_BY_ANOTHER_PLAYBACK= "Your account is playing this video in another location. Please reload this page to resume watching.",pq.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",pq.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",pq.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",pq.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",pq.TOO_MANY_REQUESTS="Please log in to watch this video.", pq.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",pq.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",pq.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",pq.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",pq.VIDEO_FORBIDDEN="Access to this video is forbidden.",pq.VIDEO_NOT_FOUND="This video can not be found.",pq.BROWSER_OR_EXTENSION_ERROR= "Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",pq);var jIz;var D_Q=g.iU(),vKJ=D_Q.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!vKJ||vKJ.length<2)jIz=void 0;else{var gKz=D_Q.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);jIz=gKz&&gKz.length===6?Number(gKz[5].replace("_",".")):0}var lM=jIz,Wf=lM>=0;g.L(g.M5,NW);g.M5.prototype.Z=function(Z,Q,z,K,b){return NW.prototype.Z.call(this,Z,Q,z,K,b)};var Ht={},j2=(Ht.FAIRPLAY="fairplay",Ht.PLAYREADY="playready",Ht.WIDEVINE="widevine",Ht.CLEARKEY=null,Ht.FLASHACCESS=null,Ht.UNKNOWN=null,Ht.WIDEVINE_CLASSIC=null,Ht);Us.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var MS={},$L=(MS.WIDTH={name:"width",video:!0,valid:640,HS:99999},MS.HEIGHT={name:"height",video:!0,valid:360,HS:99999},MS.FRAMERATE={name:"framerate",video:!0,valid:30,HS:9999},MS.BITRATE={name:"bitrate",video:!0,valid:3E5,HS:2E9},MS.EOTF={name:"eotf",video:!0,valid:"bt709",HS:"catavision"},MS.CHANNELS={name:"channels",video:!1,valid:2,HS:99},MS.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",HS:"invalidformat"},MS.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", HS:"nope"},MS.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",HS:"av99.0.05M.08"},MS.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",HS:"invalid"},MS);var YoE=["h","H"],XLw=["9","("],Sow=["9h","(h"],$_0=["8","*"],TDH=["a","A"],f2z=["o","O"],hUY=["m","M"],LEX=["mac3","MAC3"],nKY=["meac3","MEAC3"],UF={},Qrd=(UF.h=YoE,UF.H=YoE,UF["9"]=XLw,UF["("]=XLw,UF["9h"]=Sow,UF["(h"]=Sow,UF["8"]=$_0,UF["*"]=$_0,UF.a=TDH,UF.A=TDH,UF.o=f2z,UF.O=f2z,UF.m=hUY,UF.M=hUY,UF.mac3=LEX,UF.MAC3=LEX,UF.meac3=nKY,UF.MEAC3=nKY,UF),c6n=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),tX4=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var E={},kh=(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["548"]="1e",E["549"]="1e",E["550"]="1e",E["551"]="1e",E["809"]="1e",E["810"]="1e",E["552"]="1e",E["811"]="1e",E["812"]="1e",E["553"]="1e",E["813"]="1e",E["814"]="1e",E["554"]="1e",E["815"]="1e",E["816"]="1e",E["555"]="1e",E["817"]="1e",E["818"]="1e",E["572"]="1e",E["556"]="1e",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 OF={},Hsd=(OF.STEREO_LAYOUT_UNKNOWN=0,OF.STEREO_LAYOUT_LEFT_RIGHT=1,OF.STEREO_LAYOUT_TOP_BOTTOM=2,OF);var oS,Qy;oS={};g.o3=(oS.auto=0,oS.tiny=144,oS.light=144,oS.small=240,oS.medium=360,oS.large=480,oS.hd720=720,oS.hd1080=1080,oS.hd1440=1440,oS.hd2160=2160,oS.hd2880=2880,oS.highres=4320,oS);Qy={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var WN="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");BN.prototype.isHdr=function(){return this.j==="smpte2084"||this.j==="arib-std-b67"};ut.prototype.Jj=function(){return this.containerType===2}; ut.prototype.isEncrypted=function(){return!!this.NR}; ut.prototype.WN=function(){return!!this.audio}; ut.prototype.Gy=function(){return!!this.video}; var Fy=!1;g.L(S8,g.rV);g.A=S8.prototype;g.A.appendBuffer=function(Z,Q,z){if(this.Po.F6()!==this.appendWindowStart+this.start||this.Po.D2()!==this.appendWindowEnd+this.start||this.Po.Ry()!==this.timestampOffset+this.start)this.Po.supports(1),this.Po.wQ(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.Po.Oq(this.timestampOffset+this.start);this.Po.appendBuffer(Z,Q,z)}; g.A.abort=function(){this.Po.abort()}; g.A.remove=function(Z,Q){this.Po.remove(Z+this.start,Q+this.start)}; g.A.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.A.clear=function(){this.Po.clear()}; g.A.wQ=function(Z,Q){this.appendWindowStart=Z;this.appendWindowEnd=Q}; g.A.Jr=function(){return this.timestampOffset+this.start}; g.A.F6=function(){return this.appendWindowStart}; g.A.D2=function(){return this.appendWindowEnd}; g.A.Oq=function(Z){this.timestampOffset=Z}; g.A.Ry=function(){return this.timestampOffset}; g.A.Sx=function(Z){Z=this.Po.Sx(Z===void 0?!1:Z);return XF(Z,this.start,this.end)}; g.A.G0=function(){return this.Po.G0()}; g.A.PR=function(){return this.Po.PR()}; g.A.YZ=function(){return this.Po.YZ()}; g.A.CU=function(){return this.Po.CU()}; g.A.lH=function(){this.Po.lH()}; g.A.fQ=function(Z){return this.Po.fQ(Z)}; g.A.CO=function(){return this.Po.CO()}; g.A.GF=function(){return this.Po.GF()}; g.A.eF=function(){return this.Po.eF()}; g.A.Pu=function(Z,Q,z){this.Po.Pu(Z,Q,z)}; g.A.d0=function(Z,Q,z){this.Po.d0(Z,Q,z)}; g.A.Xm=function(Z,Q){return this.Po.Xm(Z,Q)}; g.A.supports=function(Z){return this.Po.supports(Z)}; g.A.ZM=function(){return this.Po.ZM()}; g.A.isView=function(){return!0}; g.A.UW=function(){return this.Po.UW()?this.isActive:!1}; g.A.isLocked=function(){return this.A9&&!this.isActive}; g.A.gy=function(Z){Z=this.Po.gy(Z);Z.vw=this.start+"-"+this.end;return Z}; g.A.hM=function(){return this.Po.hM()}; g.A.zV=function(){return this.Po.zV()}; g.A.g7=function(){return this.Po.g7()}; g.A.gr=function(){this.Po.wk(this.bQ);g.rV.prototype.gr.call(this)};var XW=!1;g.L(Bd,g.rV);g.A=Bd.prototype;g.A.appendBuffer=function(Z,Q,z){this.DZ=!1;z&&(this.FQ=z);if(Z.length){var K;((K=this.TW)==null?0:K.appendBuffer)?this.TW.appendBuffer(Z):this.TW?this.TW.append(Z):this.mG&&this.mG.webkitSourceAppend(this.id,Z)}Q&&(Q.isEncrypted()&&(this.zO=this.FQ),Q.type===3&&(this.R3=Q),this.Vz.push(Q.O8()),this.Vz.length>4&&this.Vz.shift());this.Bf&&(this.Bf.length>=2||Z.length>1048576?delete this.Bf:this.Bf.push(Z))}; g.A.abort=function(){try{this.TW?this.TW.abort():this.mG&&this.mG.webkitSourceAbort(this.id)}catch(Z){hrW&&g.Rm(new g.tW("Error while abort the source buffer: "+Z.name+", "+Z.message))}this.FQ=this.R3=null}; g.A.remove=function(Z,Q,z){this.DZ=!1;var K;if((K=this.TW)==null?0:K.remove)z&&z({b:Ax(this.Sx()),s:Z,e:Q}),this.TW.remove(Z,Q)}; g.A.removeAll=function(){this.remove(this.F6(),this.D2())}; g.A.clear=function(){this.YZ()||(this.abort(),this.removeAll(),this.zO=this.FQ=this.R3=null,this.appendWindowStart=this.timestampOffset=0,this.KY=rQ([],[]),this.DZ=!1,this.Bf=$6?[]:void 0,this.pA=!0)}; g.A.F6=function(){if(XW&&this.Gy)return this.appendWindowStart;var Z;return((Z=this.TW)==null?void 0:Z.appendWindowStart)||0}; g.A.D2=function(){var Z;return((Z=this.TW)==null?void 0:Z.appendWindowEnd)||0}; g.A.wQ=function(Z,Q){this.TW&&(XW&&this.Gy?(this.appendWindowStart=Z,this.TW.appendWindowEnd=Q):Z>this.F6()?(this.TW.appendWindowEnd=Q,this.TW.appendWindowStart=Z):(this.TW.appendWindowStart=Z,this.TW.appendWindowEnd=Q))}; g.A.Jr=function(){return this.timestampOffset}; g.A.Oq=function(Z){XW?this.timestampOffset=Z:this.supports(1)&&(this.TW.timestampOffset=Z)}; g.A.Ry=function(){return XW?this.timestampOffset:this.supports(1)?this.TW.timestampOffset:0}; g.A.Sx=function(Z){if(Z===void 0?0:Z)return this.DZ||this.G0()||(this.KY=this.Sx(!1),this.DZ=!0),this.KY;try{return this.TW?this.TW.buffered:this.mG?this.mG.webkitSourceBuffered(this.id):rQ([0],[Infinity])}catch(Q){return rQ([],[])}}; g.A.G0=function(){var Z;return((Z=this.TW)==null?void 0:Z.updating)||!1}; g.A.YZ=function(){return this.pA}; g.A.CU=function(){return!this.pA&&this.G0()}; g.A.lH=function(){this.pA=!1}; g.A.fQ=function(Z){var Q=Z==null?void 0:Z.Gf;Z=Z==null?void 0:Z.containerType;return!Q&&!Z||Q===this.Gf&&Z===this.containerType}; g.A.CO=function(){return this.FQ}; g.A.GF=function(){return this.zO}; g.A.Xm=function(Z,Q){return this.containerType!==Z||this.Gf!==Q}; g.A.Pu=function(Z,Q,z){if(this.containerType!==Z||z&&this.Xm(Z,z))this.supports(4),Wd()&&this.TW.changeType(Q),z&&(this.Gf=z);this.containerType=Z}; g.A.d0=function(Z,Q,z){this.containerType&&this.Xm(Z,Q)&&Wd()&&this.TW.changeType(z);this.containerType=Z;this.Gf=Q}; g.A.ZM=function(){return this.R3}; g.A.isView=function(){return!1}; g.A.supports=function(Z){switch(Z){case 1:var Q;return((Q=this.TW)==null?void 0:Q.timestampOffset)!==void 0;case 0:var z;return!((z=this.TW)==null||!z.appendBuffer);case 2:var K;return!((K=this.TW)==null||!K.remove);case 3:var b,q;return!!(((b=this.TW)==null?0:b.addEventListener)&&((q=this.TW)==null?0:q.removeEventListener));case 4:return!(!this.TW||!this.TW.changeType);default:return!1}}; g.A.UW=function(){return!this.G0()}; g.A.isLocked=function(){return!1}; g.A.gy=function(Z){Z.to=this.Ry();Z.up=this.G0();var Q,z=((Q=this.TW)==null?void 0:Q.appendWindowStart)||0,K;Q=((K=this.TW)==null?void 0:K.appendWindowEnd)||Infinity;Z.aw=z.toFixed(3)+"-"+Q.toFixed(3);return Z}; g.A.PR=function(){var Z;return((Z=this.TW)==null?void 0:Z.writeHead)||0}; g.A.hM=function(){for(var Z={},Q=0;Q<this.Vz.length;Q++)Z["s"+Q]=this.Vz[Q];return Z}; g.A.gr=function(){this.supports(3)&&(this.TW.removeEventListener("updateend",this.Bo),this.TW.removeEventListener("error",this.Bo));g.rV.prototype.gr.call(this)}; g.A.zV=function(){return this.containerType}; g.A.eF=function(){return this.Gf}; g.A.g7=function(){return this.Bf}; var $6=!1,hrW=!1;VH.prototype.dispose=function(){if(!this.FI()){if(this.Y)try{URL.revokeObjectURL(this.zW)}catch(Z){}this.j=!0}}; VH.prototype.FI=function(){return this.j}; VH.prototype.Tg=function(Z){return Z!==null&&Z.zW===this.zW}; VH.prototype.toString=function(){return"MediaResource {"+this.zW+"}"};g.L(k6,g.O);g.A=k6.prototype;g.A.getDuration=function(){var Z;return((Z=this.Tf)==null?void 0:Z.duration)||this.U}; g.A.bN=function(Z){try{this.Tf?this.Tf.duration=Z:(this.U=Z,this.mG.webkitSourceSetDuration(Z))}catch(Q){}}; g.A.Bx=function(){try{return e8(this)==="closed"}catch(Z){return!0}}; g.A.G0=function(){return!!(this.Y&&this.Y.G0()||this.j&&this.j.G0())}; g.A.isAsync=function(){return this.Y?!!this.Y.supports(0):wQ()}; g.A.hof=function(){!this.FI()&&ux(this)&&this.callback&&(this.callback(this),this.callback=null)}; g.A.GJB=function(){this.dispose()}; g.A.Gj=function(Z){if(x6&&!this.W&&Z.YZ()&&Z.Sx().length===0){var Q;tx(this.mediaElement,{l:"mswoue",sr:(Q=this.mediaElement.Iu)==null?void 0:Q.jc()},!1);Z.lH();this.YZ()||(this.mediaElement.t5=!0,this.mediaElement.setCurrentTime(0))}}; g.A.ZZ=function(){return!!this.Y.supports(2)}; g.A.clear=function(){fmu(this,function(){}); var Z;(Z=this.Y)==null||Z.clear();var Q;(Q=this.j)==null||Q.clear()}; g.A.YZ=function(){var Z,Q;return((Z=this.j)==null?void 0:Z.YZ())||((Q=this.Y)==null?void 0:Q.YZ())}; g.A.fQ=function(Z,Q){return!!this.Y&&!!this.j&&this.Y.fQ(Q)&&this.j.fQ(Z)}; var x6=!1;EZ.prototype.then=function(Z,Q){return this.promise.then(Z,Q)}; EZ.prototype.resolve=function(Z){this.eZ(Z)}; EZ.prototype.reject=function(Z){this.xN(Z)};g.L(lx,g.O);g.A=lx.prototype;g.A.L3=function(){return this.zW}; g.A.activate=function(Z){var Q="";Z&&(djf(this,Z),Q=Z.zW);if(!this.bJ()||Q)Q&&this.bJ()!==Q&&(this.HT(Q),delete this.j,this.S&&(this.S.reject(),delete this.S),!window.MediaSource&&window.ManagedMediaSource&&this.W1(!(Z==null||!Z.Y))),Z&&Z.Y||this.load(),this.T||(this.addEventListener("volumechange",this.FA),this.T=!0)}; g.A.NE=function(Z,Q){if(this.j)if(fnx&&FF(this.j)&&!this.j.fQ(Z,Q)){var z;tx(this,{l:"megms",sr:(z=this.Iu)==null?void 0:z.jc()});J1G(this);this.stopVideo()}else return this.Tf=this.j,this.j=void 0,this.Tf;Z=window.MediaSource?new k6(this,new window.MediaSource,!1):window.ManagedMediaSource?new k6(this,new window.ManagedMediaSource,!1):window.WebKitMediaSource?new k6(this,new window.WebKitMediaSource,!1):new k6(this,void 0,!1);this.activate(Z.S);this.Tf=Z;this.t5=!1;return Z}; g.A.playVideo=function(){var Z=this;this.isEnded()&&this.seekTo(0);!this.bJ()&&this.zW&&(g.Rm(Error("playVideo without src")),this.HT(this.zW.zW),this.zW.Y||this.load());var Q=this.play(),z;((z=this.Iu)==null?0:z.V("html5_remove_ios_7_hack_force_play"))||!Q&&Wf&&(lM||0)>=7&&A1D(this,function(){g.$q(function(){y1d(Z,Z.getCurrentTime(),0)},500)}); return Q}; g.A.seekTo=function(Z){this.oX()>0&&(Wf&&lM<4&&(Z=Math.max(.1,Z)),this.setCurrentTime(Z))}; g.A.RR=function(){if(!this.j&&this.Tf)if(this.Tf.L)try{var Z;tx(this,{l:"mer",sr:(Z=this.Iu)==null?void 0:Z.jc(),rs:e8(this.Tf)});this.Tf.clear();this.j=this.Tf;this.Tf=void 0}catch(Q){Z=new g.tW("Error while clearing Media Source in MediaElement: "+Q.name+", "+Q.message),g.Rm(Z),this.stopVideo()}else this.stopVideo()}; g.A.stopVideo=function(){var Z=this;if(!this.j){var Q;(Q=this.Tf)==null||mjX(Q);if($AX){if(!this.S){var z=new EZ;z.then(void 0,function(){}); this.S=z;TsX&&this.pause();g.$q(function(){Z.S===z&&(Qb(Z),z.resolve())},200)}}else Qb(this)}}; g.A.g_=function(){var Z=this.gm();return gQ(Z)>0&&this.getDuration()?vd(Z,this.getCurrentTime()):0}; g.A.Yk=function(){var Z=this.getDuration();return Z===Infinity?1:Z?this.g_()/Z:0}; g.A.gy=function(){try{var Z=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:Ax(this.jG(),",",3),vbu:Ax(this.gm()),vbs:Ax(this.ri()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.oX(),vns:""+this.CA(),vec:""+this.qe(),vemsg:this.Fl(),vvol:""+this.getVolume(),vdom:""+ +this.UU(),vsrc:""+ +!!this.bJ(),vw:""+Z.width,vh:""+Z.height}}catch(Q){return{}}}; g.A.hasError=function(){return this.qe()>0}; g.A.addEventListener=function(Z,Q){this.W.listen(Z,Q,!1,this);this.Bb(Z)}; g.A.removeEventListener=function(Z,Q){this.W.oy(Z,Q,!1,this)}; g.A.dispatchEvent=function(Z){if(this.S&&Z.type==="pause")return!1;if(fnx){var Q,z=((Q=Z.Y)==null?void 0:Q.timeStamp)||Infinity;Q=z>performance.now()?z-Date.now()+performance.now():z;z=this.j||this.Tf;if((z==null?0:z.YZ())||Q<=((z==null?void 0:z.K)||0)){var K;tx(this,{l:"mede",sr:(K=this.Iu)==null?void 0:K.jc(),et:Z.type});return!1}if(this.t5)return tx(this,{l:"medes",et:Z.type}),z&&Z.type==="seeking"&&(z.K=performance.now(),this.t5=!1),!1}return this.W.dispatchEvent(Z)}; g.A.Hb=function(){this.K=!1}; g.A.jF=function(){this.K=!0;this.zM(!0)}; g.A.FA=function(){this.K&&!this.AM()&&this.zM(!0)}; g.A.Tg=function(Z){return!!Z&&Z.OA()===this.OA()}; g.A.gr=function(){this.T&&this.removeEventListener("volumechange",this.FA);$AX&&Qb(this);g.O.prototype.gr.call(this)}; var $AX=!1,TsX=!1,fnx=!1,G5d=!1;g.A=g.Kg.prototype;g.A.isPaused=function(){return g.t(this,4)}; g.A.isPlaying=function(){return g.t(this,8)&&!g.t(this,512)&&!g.t(this,64)&&!g.t(this,2)}; g.A.isOrWillBePlaying=function(){return g.t(this,8)&&!g.t(this,2)&&!g.t(this,1024)}; g.A.isCued=function(){return g.t(this,64)&&!g.t(this,8)&&!g.t(this,4)}; g.A.isBuffering=function(){return g.t(this,1)&&!g.t(this,2)}; g.A.isError=function(){return g.t(this,128)}; g.A.isSuspended=function(){return g.t(this,512)}; g.A.vL=function(){return g.t(this,64)&&g.t(this,4)}; g.A.toString=function(){return"PSt."+this.state.toString(16)}; var Bt={},Wt=(Bt.BUFFERING="buffering-mode",Bt.CUED="cued-mode",Bt.ENDED="ended-mode",Bt.PAUSED="paused-mode",Bt.PLAYING="playing-mode",Bt.SEEKING="seeking-mode",Bt.UNSTARTED="unstarted-mode",Bt);g.L(Xl,g.O);g.A=Xl.prototype;g.A.IP=function(){return this.S}; g.A.qT=function(){return this.slot}; g.A.MB=function(){return this.layout}; g.A.init=function(){var Z=rZ(this.layout.clientMetadata,"metadata_type_video_length_seconds"),Q=rZ(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");JH(this.layout.wq)&&sR(this.B4.get(),this.layout.layoutId,{Dh:Q,Gl:Z,listener:this,RP:this.kX()});k8r(this.v7.get(),this);Z=this.Yn;Q=this.layout.layoutId;var z={RP:this.kX()};Z.Y.set(Q,z);this.o7()}; g.A.GV=function(){}; g.A.release=function(){JH(this.layout.wq)&&Ze(this.B4.get(),this.layout.layoutId);u$f(this.v7.get(),this);this.Yn.Y.delete(this.layout.layoutId);this.xe()}; g.A.Cr=function(){}; g.A.WJ=function(){}; g.A.startRendering=function(Z){I3(S9(this));if($o(this,Z)){var Q=this.Y;J7(Q.params.gV.H7.get(),!0)&&q80(Q,"p_sr",{});T6(this);this.U0(Z);this.kX()||this.Nd(!1)}}; g.A.Iy=function(Z,Q){if(Q.layoutId===this.layout.layoutId){this.jp="rendering";this.j=this.LN.get().isMuted()||this.LN.get().getVolume()===0;this.Ao("impression");this.Ao("start");if(this.LN.get().isMuted()){m3(this,"mute");var z;Z=((z=Yo(this))==null?void 0:z.muteCommands)||[];uz(this.v4.get(),Z,this.layout.layoutId)}if(this.LN.get().isFullscreen()){this.iJ("fullscreen");var K;z=((K=Yo(this))==null?void 0:K.fullscreenCommands)||[];uz(this.v4.get(),z,this.layout.layoutId)}this.kX()||(K=this.t4.get(), K.S&&!K.j&&(K.L=!1,K.j=!0,K.actionType!=="ad_to_video"&&(kp("pbs",void 0,K.actionType),g.nA("finalize_all_timelines")&&Fpd(K.actionType))));this.dj(1);this.tX(Q);var b;Q=((b=Yo(this))==null?void 0:b.impressionCommands)||[];uz(this.v4.get(),Q,this.layout.layoutId)}}; g.A.Ed=function(Z,Q,z){this.T={Ih:3,Xr:Z==="load_timeout"?402:400,errorMessage:Q.message};this.Ao("error");var K;Z=((K=Yo(this))==null?void 0:K.errorCommands)||[];uz(this.v4.get(),Z,this.layout.layoutId);this.kX()||this.Zj.O6(this.slot,this.layout,Q,z)}; g.A.Ij=function(){if(this.jp==="rendering"){m3(this,"pause");var Z,Q=((Z=Yo(this))==null?void 0:Z.pauseCommands)||[];uz(this.v4.get(),Q,this.layout.layoutId);this.dj(2)}}; g.A.pp=function(){if(this.jp==="rendering"){m3(this,"resume");var Z,Q=((Z=Yo(this))==null?void 0:Z.resumeCommands)||[];uz(this.v4.get(),Q,this.layout.layoutId)}}; g.A.iH=function(Z,Q){Q=Q===void 0?!1:Q;if(this.jp==="rendering"){var z={currentTimeSec:Z,flush:Q};yI(this.Y,"p_ip",z);Rx(this.yp,Z*1E3,Q);this.j||Rx(this.yp,Z*1E3,Q===void 0?!1:Q);var K=this.LF();if(K){K/=1E3;if(Z>=K*.25||Q)this.Ao("first_quartile"),yI(this.Y,"p_fq",z);if(Z>=K*.5||Q)this.Ao("midpoint"),yI(this.Y,"p_sq",z);if(Z>=K*.75||Q)this.Ao("third_quartile"),yI(this.Y,"p_tq",z);this.H7.get().J.N().experiments.XI("enable_progress_command_flush_on_kabuki")?We(this.W,Z*1E3,Q):We(this.W,Z*1E3,pMu(this)? Q:!1)}}}; g.A.XB=function(){var Z;return((Z=fg(this.ou.get(),1))==null?void 0:Z.clientPlaybackNonce)||""}; g.A.gk=function(Z,Q){Z.layoutId!==this.layout.layoutId?this.Zj.O6(this.slot,Z,new bz("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"):Q()}; g.A.F3=function(Z,Q,z){if(Q.layoutId===this.layout.layoutId)switch(this.jp="not_rendering",this.layoutExitReason=void 0,this.kX()||(Z=z!=="normal"||this.position+1===this.K)&&this.Nd(Z),this.YB(z),this.dj(0),z){case "abandoned":if(CH(this.yp,"impression")){var K,b=((K=Yo(this))==null?void 0:K.abandonCommands)||[];uz(this.v4.get(),b,this.layout.layoutId)}break;case "normal":K=((b=Yo(this))==null?void 0:b.completeCommands)||[];uz(this.v4.get(),K,this.layout.layoutId);break;case "skipped":var q;K=((q= Yo(this))==null?void 0:q.skipCommands)||[];uz(this.v4.get(),K,this.layout.layoutId)}}; g.A.VS=function(){return this.layout.layoutId}; g.A.ow=function(){return this.T}; g.A.il=function(){if(this.jp==="rendering"){this.yp.Ao("active_view_measurable");var Z,Q=((Z=Yo(this))==null?void 0:Z.activeViewMeasurableCommands)||[];uz(this.v4.get(),Q,this.layout.layoutId)}}; g.A.jZ=function(){if(this.jp==="rendering"){this.yp.Ao("active_view_fully_viewable_audible_half_duration");var Z,Q=((Z=Yo(this))==null?void 0:Z.activeViewFullyViewableAudibleHalfDurationCommands)||[];uz(this.v4.get(),Q,this.layout.layoutId)}}; g.A.SZ=function(){if(this.jp==="rendering"){this.yp.Ao("active_view_viewable");var Z,Q=((Z=Yo(this))==null?void 0:Z.activeViewViewableCommands)||[];uz(this.v4.get(),Q,this.layout.layoutId)}}; g.A.Ik=function(){if(this.jp==="rendering"){this.yp.Ao("audio_audible");var Z,Q=((Z=Yo(this))==null?void 0:Z.activeViewAudioAudibleCommands)||[];uz(this.v4.get(),Q,this.layout.layoutId)}}; g.A.pE=function(){if(this.jp==="rendering"){this.yp.Ao("audio_measurable");var Z,Q=((Z=Yo(this))==null?void 0:Z.activeViewAudioMeasurableCommands)||[];uz(this.v4.get(),Q,this.layout.layoutId)}}; g.A.Nd=function(Z){this.t4.get().Nd(rZ(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,Z,this.position,this.K,!1)}; g.A.onFullscreenToggled=function(Z){if(this.jp==="rendering")if(Z){this.iJ("fullscreen");var Q,z=((Q=Yo(this))==null?void 0:Q.fullscreenCommands)||[];uz(this.v4.get(),z,this.layout.layoutId)}else this.iJ("end_fullscreen"),Q=((z=Yo(this))==null?void 0:z.endFullscreenCommands)||[],uz(this.v4.get(),Q,this.layout.layoutId)}; g.A.onVolumeChange=function(){if(this.jp==="rendering")if(this.LN.get().isMuted()){m3(this,"mute");var Z,Q=((Z=Yo(this))==null?void 0:Z.muteCommands)||[];uz(this.v4.get(),Q,this.layout.layoutId)}else m3(this,"unmute"),Z=((Q=Yo(this))==null?void 0:Q.unmuteCommands)||[],uz(this.v4.get(),Z,this.layout.layoutId)}; g.A.Es=function(){}; g.A.Gu=function(){}; g.A.RF=function(){}; g.A.XF=function(){}; g.A.At=function(){}; g.A.iJ=function(Z){this.yp.iJ(Z,!this.j)}; g.A.Ao=function(Z){this.yp.Ao(Z,!this.j)}; g.A.kX=function(){var Z=rZ(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return Z===void 0?(vM("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.H7.get().kX(Z)};g.L(Ny,Xl);g.A=Ny.prototype;g.A.o7=function(){}; g.A.xe=function(){var Z=this.v7.get();Z.kK===this&&(Z.kK=null);this.IC.stop()}; g.A.Cr=function(){this.IC.stop();Xl.prototype.Ij.call(this)}; g.A.WJ=function(){i$(this);Xl.prototype.pp.call(this)}; g.A.LF=function(){return rZ(this.MB().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.A.dX=function(Z,Q){var z=this;this.gk(Z,function(){z.jp!=="rendering_stop_requested"&&(z.jp="rendering_stop_requested",z.layoutExitReason=Q,hk(z,Q),z.IC.stop())})}; g.A.E8=function(){var Z=Date.now(),Q=Z-this.F0;this.F0=Z;this.VF+=Q;this.VF>=this.LF()?this.WW():(this.iH(this.VF/1E3),G6(this,this.VF))}; g.A.YB=function(){}; g.A.XP=function(){}; g.L(ar,Ny);g.A=ar.prototype;g.A.hN=function(Z){if(this.jp!=="not_rendering"){Z=Lg(this,Z);var Q=this.LN.get().getPresentingPlayerType()===2;this.jp==="rendering_start_requested"?Q&&Xy(Z)&&this.Se():Q?g.Xw(Z,2)?vM("Receive player ended event during MediaBreak",this.qT(),this.MB()):ng(this,Z):this.uf()}}; g.A.U0=function(){R74(this);Q9n(this.LN.get());this.v7.get().kK=this;WO("pbp")||WO("pbs")||kp("pbp");WO("pbp","watch")||WO("pbs","watch")||kp("pbp",void 0,"watch");this.Se()}; g.A.tX=function(Z){this.t4.get();var Q=rZ(Z.clientMetadata,"metadata_type_ad_placement_config").kind,z=this.position===0;Z=rZ(Z.clientMetadata,"metadata_type_linked_in_player_layout_type");Z={adBreakType:cv(Q),adType:xjx(Z)};var K=void 0;z?Q!=="AD_PLACEMENT_KIND_START"&&(K="video_to_ad"):K="ad_to_ad";Ow("ad_mbs",void 0,K);g.oC(Z,K);i$(this)}; g.A.uf=function(){this.NZ()}; g.A.WW=function(){MqM(this);this.NZ()}; g.L(Pv,Ny);g.A=Pv.prototype;g.A.hN=function(Z){this.jp!=="not_rendering"&&(Z=Lg(this,Z),ng(this,Z))}; g.A.U0=function(){vM("Not used in SSAP")}; g.A.tX=function(){i$(this)}; g.A.uf=function(){vM("Not used in SSAP")}; g.A.WW=function(){MqM(this);this.Zj.Hf(this.qT(),this.MB(),"normal")}; g.L(Rr,Pv);Rr.prototype.dX=function(Z,Q){var z=this;this.gk(Z,function(){h7(z.S,Q)&&(z.jp="rendering_stop_requested",z.layoutExitReason=Q,hk(z,Q),z.IC.stop())})}; Rr.prototype.startRendering=function(Z){I3(S9(this));$o(this,Z)&&(T6(this),this.v7.get().kK=this)};g.L(Hv,Xl);g.A=Hv.prototype;g.A.uf=function(){this.NZ()}; g.A.hN=function(Z){if(this.jp!=="not_rendering"){Z=Lg(this,Z);var Q=this.LN.get().getPresentingPlayerType()===2;this.jp==="rendering_start_requested"?Q&&Xy(Z)&&this.Se():!Q||g.Xw(Z,2)?this.NZ():ng(this,Z)}}; g.A.o7=function(){rZ(this.MB().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=rZ(this.MB().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; g.A.xe=function(){rZ(this.MB().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.I$){var Z=this.context.gV,Q=this.I$,z=this.MB().layoutId;if(J7(Z.H7.get(),!0)){var K={};Z.Sf("mccru",(K.cid=Q,K.p_ac=z,K))}this.mZ.get().removeCueRange(this.I$)}this.I$=void 0;var b;(b=this.RK)==null||b.dispose();this.cE&&this.cE.dispose()}; g.A.U0=function(Z){var Q=Cg(this.H7.get()),z=pg(this.H7.get());if(Q&&z&&!this.kX()){z=rZ(Z.clientMetadata,"metadata_type_preload_player_vars");var K=g.Xp(this.H7.get().J.N().experiments,"html5_preload_wait_time_secs");z&&this.cE&&this.cE.start(K*1E3)}oCW(this,Z);R74(this);Q?(z=this.jP.get(),Z=rZ(Z.clientMetadata,"metadata_type_player_vars"),z.J.loadVideoByPlayerVars(Z,!1,2)):vmn(this.jP.get(),rZ(Z.clientMetadata,"metadata_type_player_vars"));var b;(b=this.RK)==null||b.start();Q||this.jP.get().J.playVideo(2)}; g.A.tX=function(){var Z;(Z=this.RK)==null||Z.stop();this.I$="adcompletioncuerange:"+this.MB().layoutId;this.mZ.get().addCueRange(this.I$,0x7ffffffffffff,0x8000000000000,!1,this,2,2);Z=this.context.gV;var Q=this.I$,z=this.MB().layoutId;if(J7(Z.H7.get(),!0)){var K={};Z.Sf("mccr",(K.cid=Q,K.p_ac=z,K))}(this.adCpn=Pcf(this))||vM("Media layout confirmed started, but ad CPN not set.");this.CL.get().Y$("onAdStart",this.adCpn);this.aE=Date.now()}; g.A.LF=function(){var Z;return(Z=fg(this.ou.get(),2))==null?void 0:Z.SC}; g.A.sF=function(){this.yp.iJ("clickthrough")}; g.A.dX=function(Z,Q){var z=this;this.gk(Z,function(){if(z.jp!=="rendering_stop_requested"){z.jp="rendering_stop_requested";z.layoutExitReason=Q;hk(z,Q);var K;(K=z.RK)==null||K.stop();z.cE&&z.cE.stop();BBX(z)}})}; g.A.onCueRangeEnter=function(Z){if(Z!==this.I$)vM("Received CueRangeEnter signal for unknown layout.",this.qT(),this.MB(),{cueRangeId:Z});else{var Q=this.context.gV,z=this.MB().layoutId;if(J7(Q.H7.get(),!0)){var K={};Q.Sf("mccre",(K.cid=Z,K.p_ac=z,K))}this.mZ.get().removeCueRange(this.I$);this.I$=void 0;e1(this.context.H7.get(),"html5_ssap_flush_at_stop_rendering")&&this.kX()||(Z=rZ(this.MB().clientMetadata,"metadata_type_video_length_seconds"),this.iH(Z,!0),this.Ao("complete"))}}; g.A.YB=function(Z){Z!=="abandoned"&&this.CL.get().Y$("onAdComplete");this.CL.get().Y$("onAdEnd",this.adCpn)}; g.A.onCueRangeExit=function(){}; g.A.XP=function(Z){this.jp==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&Z>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.LN.get().Kj(!0),this.iH(Z))}; g.A.iH=function(Z,Q){Xl.prototype.iH.call(this,Z,Q===void 0?!1:Q);Q=Date.now()-this.aE;var z=Z*1E3,K={contentCpn:this.XB(),adCpn:Pcf(this)};if(Z>=5&&!this.Vc){var b=Q<1E3?0:1;A1(b,"i.k_",{metadata:K,eX:Q,mx:Math.floor(z/1E3)});ts("IKDSTAT",b);b===0&&WMG(this)&&this.CL.get().Y$("onAbnormalityDetected");this.Vc=!0}Z-this.dD>=5&&(b=Q<z*.4?0:1,A1(b,"n.k_",{metadata:K,eX:Q,mx:Math.floor(z/1E3)}),ts("NKDSTAT",b),b===0&&WMG(this)&&this.CL.get().Y$("onAbnormalityDetected"),this.dD=Z)};g.L(My,Hv);My.prototype.hN=function(Z){this.jp!=="not_rendering"&&(Z=Lg(this,Z),ng(this,Z))}; My.prototype.U0=function(){vM("Not used in SSAP")}; g.L(UN,My);UN.prototype.dX=function(Z,Q){var z=this;this.gk(Z,function(){if(h7(z.S,Q)){z.jp="rendering_stop_requested";z.layoutExitReason=Q;hk(z,Q);if(e1(z.context.H7.get(),"html5_ssap_flush_at_stop_rendering")&&Q==="normal"){var K=rZ(z.MB().clientMetadata,"metadata_type_video_length_seconds");z.iH(K,!0)}BBX(z)}})}; UN.prototype.startRendering=function(Z){I3(S9(this));$o(this,Z)&&(T6(this),oCW(this,Z))};g.L(or,g.O);g.A=or.prototype;g.A.init=function(){var Z=rZ(this.layout.clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");Z&&(Z.current=this);this.ou.get().addListener(this);this.YL.init();EfG([this.layout],this.ou.get());this.i9()}; g.A.i9=function(){var Z=rZ(this.YL.MB().clientMetadata,"metadata_type_player_vars");Z?this.jP.get().addPlayerResponseForAssociation({playerVars:Z}):(Z=tqX(this.YL.MB()),this.jP.get().addPlayerResponseForAssociation({Hp:Z}))}; g.A.QV=function(){}; g.A.qT=function(){return this.slot}; g.A.MB=function(){return this.layout}; g.A.Cr=function(){this.YL.Cr()}; g.A.WJ=function(){this.YL.WJ()}; g.A.dL=function(){vM("Unexpected onSkipRequested from PlayerBytesSsapSingleLayoutRenderingAdapter. Skip should be handled by Triggers")}; g.A.Iy=function(Z,Q){this.YL.Iy(Z,Q)}; g.A.AN=function(){}; g.A.e_=function(){}; g.A.Dp=function(){}; g.A.Ty=function(){}; g.A.Ev=function(){}; g.A.Zp=function(){}; g.A.Me=function(){}; g.A.Jx=function(){}; g.A.vN=function(){}; g.A.Gg=function(){}; g.A.XP=function(Z){this.YL.XP(Z)}; g.A.onFullscreenToggled=function(Z){this.YL.onFullscreenToggled(Z)}; g.A.Es=function(Z){this.YL.Es(Z)}; g.A.RF=function(Z){this.YL.RF(Z)}; g.A.onVolumeChange=function(){this.YL.onVolumeChange()}; g.A.XF=function(){}; g.A.At=function(){}; g.A.Gu=function(){}; g.A.DB=function(){return this.LN.get().getPresentingPlayerType()===2}; g.A.A8=function(Z){z74({cpn:Z,zg:this.ou.get(),kx:!0});this.layout.layoutId===Z&&(o0n(this.aW,this.slot.slotId),this.VD.Iy(this.slot,this.layout))}; g.A.startRendering=function(Z){if(Z.layoutId!==this.layout.layoutId)return void vM("wrong layout");this.LN.get().addListener(this);Tv(this.wy(),this);this.YL.startRendering(this.layout)}; g.A.hN=function(Z){this.YL.hN(Z)}; g.A.F3=function(Z,Q,z){this.YL.F3(Z,Q,z)}; g.A.release=function(){this.ou.get().removeListener(this);this.YL.release();lzn();fw(this.wy(),this)}; g.A.OD=function(){return e1(this.params.context.H7.get(),"html5_ssap_exit_without_waiting_for_transition")}; g.A.dX=function(Z,Q){Z.layoutId!==this.layout.layoutId?vM("wrong layout"):this.OD()&&this.YL.IP().currentState>=2||(this.YL.dX(this.layout,Q),Z=e1(this.params.context.H7.get(),"html5_ssap_pass_transition_reason")&&Q==="abandoned",this.DB()&&!Z&&(e1(this.params.context.H7.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(Q)||vM("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:Q})),this.LL.get().finishSegmentByCpn(this.layout.layoutId, fg(this.ou.get(),1).clientPlaybackNonce,Jk(Q,this.params.context.H7))),this.LN.get().removeListener(this),this.OD()&&LI(this.YL.IP())&&this.VD.F3(this.slot,this.layout,this.YL.IP().Y))}; g.A.C7=function(Z,Q,z){KMG({cpn:Z,zg:this.ou.get(),kx:!0});this.MB().layoutId!==Z||e1(this.params.context.H7.get(),"html5_ssap_pass_transition_reason")&&z===5||(this.YL.IP().currentState<2&&(Z=yb(z,this.params.context.H7),Z==="error"?this.VD.O6(this.slot,this.layout,new bz("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:z},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):xo(this.tj, this.layout,Z)),e1(this.params.context.H7.get(),"html5_ssap_exit_without_waiting_for_transition")||this.VD.F3(this.slot,this.layout,this.YL.IP().Y))};g.L(Bv,g.O);g.A=Bv.prototype;g.A.qT=function(){return this.slot}; g.A.MB=function(){return this.layout}; g.A.QV=function(){}; g.A.S$=function(){return this.jK[this.VN]}; g.A.yR=function(){return this.VN}; g.A.Cr=function(Z,Q){var z=this.S$();Q.layoutId!==Vb(z,Z,Q)?vM("pauseLayout for a PlayerBytes layout that is not currently active",Z,Q):z.Cr()}; g.A.WJ=function(Z,Q){var z=this.S$();Q.layoutId!==Vb(z,Z,Q)?vM("resumeLayout for a PlayerBytes layout that is not currently active",Z,Q):z.WJ()}; g.A.dL=function(Z,Q){var z=this.S$();ECu(this,Z,Q);lm4(z,Z,Q)&&this.fA(z.qT(),z.MB(),"skipped")}; g.A.PV=function(Z,Q){var z=this.S$();sCd(this);ZVn(z,Z,Q)&&(Z=QCr(this,z,Z,Q),Z!==void 0&&(this.kX()?vM("Should not happen. Should delete"):KhW(this,z.qT(),z.MB(),Z)))}; g.A.NC=function(Z,Q){var z=Object.assign({},Wv(this),{layoutId:Q.layoutId}),K=z.layoutId,b=z.kx;if(z.RP){var q={};mr(z.zg,"wrse",(q.ec=K,q.is=b,q.ctp=cN(K),q))}Gv(this.T2,Z,Q)}; g.A.Iy=function(Z,Q){var z;(z=this.S$())==null||z.Iy(Z,Q)}; g.A.F3=function(Z,Q,z){Q.layoutId===this.MB().layoutId&&(this.bU=!1,fw(this.wy(),this));var K;(K=this.S$())==null||K.F3(Z,Q,z)}; g.A.XP=function(Z){var Q;(Q=this.S$())==null||Q.XP(Z)}; g.A.O4=function(Z,Q,z){this.yR()===-1&&(this.callback.Iy(this.slot,this.layout),this.VN++);var K=this.S$();K?(K.Ed(Z,Q,z),this.kX()&&this.callback.O6(this.slot,this.layout,Q,z)):vM("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.yR()),layoutId:this.MB().layoutId})}; g.A.onFullscreenToggled=function(Z){var Q;(Q=this.S$())==null||Q.onFullscreenToggled(Z)}; g.A.Es=function(Z){var Q;(Q=this.S$())==null||Q.Es(Z)}; g.A.RF=function(Z){var Q;(Q=this.S$())==null||Q.RF(Z)}; g.A.onVolumeChange=function(){var Z;(Z=this.S$())==null||Z.onVolumeChange()}; g.A.Mv=function(Z,Q,z){iz(this.T2,Z,Q,z)}; g.A.aM=function(Z){Z.startRendering(Z.MB())}; g.A.init=function(){var Z=rZ(this.MB().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");Z&&(Z.current=this);if(this.jK.length<1)throw new w("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.jK.length)});if(Z=rZ(this.MB().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))Z.current=this;Z=g.n(this.jK);for(var Q=Z.next();!Q.done;Q=Z.next())Q=Q.value,Q.init(),yyu(this.T2,this.slot,Q.MB()),dUf(this.T2,this.slot,Q.MB()); if(this.kX())for(this.ou.get().addListener(this),EfG(wM9(this),this.ou.get()),Z=wM9(this),Z=g.n(Z),Q=Z.next();!Q.done;Q=Z.next())this.i9(Q.value)}; g.A.i9=function(Z){var Q=rZ(Z.clientMetadata,"metadata_type_player_vars");Q?(Z.layoutType!=="LAYOUT_TYPE_MEDIA"&&vM("Non-video ad contains playerVars",this.slot,Z),this.jP.get().addPlayerResponseForAssociation({playerVars:Q})):(Z=tqX(Z),this.jP.get().addPlayerResponseForAssociation({Hp:Z}))}; g.A.release=function(){var Z=rZ(this.MB().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");Z&&(Z.current=null);if(Z=rZ(this.MB().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))Z.current=null;Z=g.n(this.jK);for(var Q=Z.next();!Q.done;Q=Z.next())Q=Q.value,N90(this.T2,this.slot,Q.MB()),Q.release();this.kX()&&(this.ou.get().removeListener(this),lzn())}; g.A.gk=function(Z){return Z.layoutId!==this.MB().layoutId?(this.callback.O6(this.qT(),Z,new bz("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.MB().layoutId+("and LayoutType: "+this.MB().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; g.A.xb=function(){this.LN.get().addListener(this);Tv(this.wy(),this)}; g.A.hN=function(Z){if(Z.state.isError()){var Q,z;this.O4((Q=Z.state.wm)==null?void 0:Q.errorCode,new bz("There was a player error during this media layout.",{playerErrorCode:(z=Z.state.wm)==null?void 0:z.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(Q=this.S$())&&Q.hN(Z)}; g.A.kX=function(){var Z=rZ(this.qT().clientMetadata,"metadata_type_eligible_for_ssap");return Z===void 0?(vM("Expected SSAP eligibility in PlayerBytes slots",this.qT(),this.MB()),!1):this.H7.get().kX(Z)}; g.A.Gu=function(){}; g.A.AN=function(){}; g.A.e_=function(){}; g.A.Dp=function(){}; g.A.Ty=function(){}; g.A.Ev=function(){}; g.A.Zp=function(){}; g.A.Me=function(){}; g.A.Jx=function(){}; g.A.vN=function(){}; g.A.Gg=function(){}; g.A.XF=function(){}; g.A.At=function(){}; g.L(tk,Bv);g.A=tk.prototype;g.A.yU=function(Z,Q,z){this.fA(Z,Q,z)}; g.A.sQ=function(Z,Q){this.fA(Z,Q,"error")}; g.A.fA=function(Z,Q,z){var K=this;zo4(this,Z,Q,z,function(){ko(K,K.yR()+1)})}; g.A.startRendering=function(Z){this.gk(Z)&&(this.xb(),TqG(this.t4.get()),cSW(this.H7.get())||Q9n(this.LN.get()),this.yR()===-1&&ko(this,this.yR()+1))}; g.A.dX=function(Z,Q){var z=this;this.bU=!0;this.yR()===this.jK.length?this.callback.F3(this.slot,this.layout,Q):(Z=this.S$(),Z.dX(Z.MB(),Q),this.M3=function(){z.callback.F3(z.slot,z.layout,Q)}); this.LN.get().J.TA();vmn(this.jP.get(),{});Z=lZ(this.LN.get(),1);Z.isPaused()&&!g.t(Z,2)&&this.LN.get().playVideo();this.LN.get().removeListener(this);this.bU&&bVr(this)}; g.A.C7=function(){}; g.A.A8=function(){}; g.A.Hf=function(){}; g.L(Fl,Bv);g.A=Fl.prototype;g.A.yU=function(Z,Q,z){Z=Object.assign({},Wv(this),{layoutId:Q.layoutId,layoutExitReason:z});Q=Z.layoutId;z=Z.layoutExitReason;var K={};mr(Z.zg,"prse",(K.xc=Q,K.ler=z,K.ctp=cN(Q),K))}; g.A.sQ=function(){vM("onSubLayoutError in SSAP")}; g.A.fA=function(){vM("exitSubLayoutAndPlayNext in SSAP")}; g.A.S$=function(){return this.oC}; g.A.yR=function(){var Z=this;return this.jK.findIndex(function(Q){var z;return Q.MB().layoutId===((z=Z.oC)==null?void 0:z.MB().layoutId)})}; g.A.aM=function(Z){Dm(this.oC===void 0,"replacing another adapter");this.oC=Z;Z.startRendering(Z.MB())}; g.A.Mv=function(Z,Q,z){iz(this.T2,Z,Q,z);var K;Dm(Q.layoutId===((K=this.oC)==null?void 0:K.MB().layoutId),"currentAdapter does not match exiting layout",{slot:Z?"slot: "+Z.slotType:"",subLayout:jq(Q)})&&(this.oC=void 0)}; g.A.release=function(){Bv.prototype.release.call(this);Dm(this.oC===void 0,"currentAdapter is still active during release");this.oC=void 0}; g.A.DB=function(){return this.LN.get().getPresentingPlayerType()===2}; g.A.dX=function(Z,Q){function z(){e9(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(Q)||vM("Composite stopRendering: Unexpected layout exit reason",this.slot,Z,{layoutExitReason:Q}))} function K(){this.oC&&wu(this,this.oC,Q);if(this.DB()&&(!e9(this)||Q!=="abandoned")){z.call(this);var q;var r=((q=this.ou.get().J.getVideoData())==null?void 0:q.clientPlaybackNonce)||"";q=fg(this.ou.get(),1).clientPlaybackNonce;this.LL.get().finishSegmentByCpn(r,q,Jk(Q,this.H7))}qwX(this,Q)} function b(){if(this.oC){var q=this.oC;q.IP().currentState<2&&q.dX(q.MB(),Q);q=e9(this)&&Q==="abandoned";this.DB()&&!q&&(z.call(this),this.LL.get().finishSegmentByCpn(this.oC.MB().layoutId,fg(this.ou.get(),1).clientPlaybackNonce,Jk(Q,this.H7)))}} Dm(Z.layoutId===this.MB().layoutId,"StopRendering for wrong layout")&&h7(this.lE.j,Q)&&(this.OD()?K.call(this):b.call(this))}; g.A.F3=function(Z,Q,z){Bv.prototype.F3.call(this,Z,Q,z);Q.layoutId===this.MB().layoutId&&this.LN.get().removeListener(this)}; g.A.XB=function(){return fg(this.ou.get(),1).clientPlaybackNonce}; g.A.C7=function(Z,Q,z){KMG(Object.assign({},Wv(this),{cpn:Z}));if(!e9(this)||z!==5)if(this.OD()){if(this.oC&&this.oC.MB().layoutId!==Q){var K=this.oC.MB().layoutId;K!==Z&&vM("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:K,exitingCpn:Z,enteringCpn:Q});Z=yb(z,this.H7);wu(this,this.oC,Z)}else this.oC&&vM("onClipExited: active layout is entering again");Q===this.XB()&&A4u(this,z)}else{if(this.oC&&this.oC.MB().layoutId===Z)r4W(this,this.oC,z);else{var b;vM("Exiting cpn does not match active cpn", this.slot,(K=this.oC)==null?void 0:K.MB(),{exitingCpn:Z,transitionReason:z,activeCpn:(b=this.oC)==null?void 0:b.MB().layoutId})}Q===this.XB()&&(this.oC!==void 0&&(vM("active adapter is not properly exited",this.slot,this.layout,{activeLayout:jq(this.oC.MB())}),r4W(this,this.oC,z)),A4u(this,z),qwX(this,this.lE.j.Y))}}; g.A.OD=function(){return e1(this.H7.get(),"html5_ssap_exit_without_waiting_for_transition")}; g.A.startRendering=function(Z){this.gk(Z)&&(Z=this.lE,Dm(Z.Y===1,"tickStartRendering: state is not initial"),Z.Y=2,this.xb())}; g.A.A8=function(Z){z74(Object.assign({},Wv(this),{cpn:Z}));var Q=this.jK.find(function(z){return z.MB().layoutId===Z}); Q?(this.lE.Y!==2&&(o0n(this.aW,this.slot.slotId),Dm(this.lE.Y===2,"Expect started"),this.callback.Iy(this.slot,this.layout)),this.aM(Q),Gv(this.T2,this.slot,Q.MB())):jCd(this,Z)}; g.A.dL=function(Z,Q){ECu(this,Z,Q);var z=this.S$();z?lm4(z,Z,Q)&&DXW(this,"skipped"):vpx(this,"onSkipRequested")}; g.A.PV=function(Z,Q){var z;a:{if(z=this.S$()){if(sCd(this),ZVn(z,Z,Q)&&(Z=QCr(this,z,Z,Q),Z!==void 0)){z={P$:z,OKN:this.jK[Z]};break a}}else vpx(this,"SkipWithAdPodSkip");z=void 0}if(Z=z)z=Z.P$,Q=Z.OKN,Z=z.MB().layoutId,this.OD()?wu(this,z,"skipped"):z.dX(z.MB(),"skipped"),z=Q.MB().layoutId,this.LL.get().finishSegmentByCpn(Z,z,Jk("skipped",this.H7))}; g.A.NC=function(){vM("Not used in html5_ssap_fix_layout_exit")}; g.A.hN=function(Z){var Q;(Q=this.S$())==null||Q.hN(Z)}; g.A.O4=function(){vM("Not used in html5_ssap_fix_layout_exit")}; g.A.Hf=function(Z,Q,z){var K;if(((K=this.S$())==null?void 0:K.MB().layoutId)!==Q.layoutId)return void vM("requestToExitSubLayout: wrong layout");DXW(this,z)};g.L(EN,g.O);g.A=EN.prototype;g.A.qT=function(){return this.YL.qT()}; g.A.MB=function(){return this.YL.MB()}; g.A.init=function(){var Z=rZ(this.MB().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");Z&&(Z.current=this);this.o7()}; g.A.o7=function(){this.YL.init()}; g.A.release=function(){var Z=rZ(this.MB().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");Z&&(Z.current=null);this.xe()}; g.A.xe=function(){this.YL.release()}; g.A.Cr=function(){this.YL.Cr()}; g.A.WJ=function(){this.YL.WJ()}; g.A.dL=function(Z,Q){vM("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.qT(),this.MB(),{requestingSlot:Z,requestingLayout:Q})}; g.A.startRendering=function(Z){Z.layoutId!==this.MB().layoutId?this.callback.O6(this.qT(),Z,new bz("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.MB().layoutId+("and LayoutType: "+this.MB().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.LN.get().addListener(this),Tv(this.wy(),this),TqG(this.t4.get()),cSW(this.H7.get())||Q9n(this.LN.get()),this.YL.startRendering(Z))}; g.A.dX=function(Z,Q){this.bU=!0;this.YL.dX(Z,Q);this.LN.get().J.TA();vmn(this.jP.get(),{});Z=lZ(this.LN.get(),1);Z.isPaused()&&!g.t(Z,2)&&this.LN.get().playVideo();this.LN.get().removeListener(this);this.bU&&this.YL.uf()}; g.A.Iy=function(Z,Q){this.YL.Iy(Z,Q)}; g.A.F3=function(Z,Q,z){Q.layoutId===this.MB().layoutId&&(this.bU=!1,fw(this.wy(),this));this.YL.F3(Z,Q,z);Q.layoutId===this.MB().layoutId&&u$(this.t4.get())}; g.A.XP=function(Z){this.YL.XP(Z)}; g.A.hN=function(Z){if(Z.state.isError()){var Q,z;this.O4((Q=Z.state.wm)==null?void 0:Q.errorCode,new bz("There was a player error during this media layout.",{playerErrorCode:(z=Z.state.wm)==null?void 0:z.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.YL.hN(Z)}; g.A.O4=function(Z,Q,z){this.YL.Ed(Z,Q,z)}; g.A.onFullscreenToggled=function(Z){this.YL.onFullscreenToggled(Z)}; g.A.Es=function(Z){this.YL.Es(Z)}; g.A.RF=function(Z){this.YL.RF(Z)}; g.A.onVolumeChange=function(){this.YL.onVolumeChange()}; g.A.Gu=function(){}; g.A.AN=function(){}; g.A.e_=function(){}; g.A.Dp=function(){}; g.A.Ty=function(){}; g.A.Ev=function(){}; g.A.Zp=function(){}; g.A.Me=function(){}; g.A.Jx=function(){}; g.A.vN=function(){}; g.A.Gg=function(){}; g.A.XF=function(){}; g.A.At=function(){};g.A=l$.prototype;g.A.qT=function(){return this.slot}; g.A.MB=function(){return this.layout}; g.A.init=function(){this.jx.get().addListener(this);this.LN.get().addListener(this);var Z=rZ(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var Q=rZ(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.W){var z=this.jx.get().NV.slice(-1)[0];z!==void 0&&(Z=z.startSecs*1E3,Q=(z.startSecs+z.Nn)*1E3)}this.GV(Z,Q);var K;z=(K=this.ou.get().m5)==null?void 0:K.clientPlaybackNonce;K=this.layout.EA.adClientDataEntry;s5(this.v7.get(),{daiStateTrigger:{filledAdsDurationMs:Q-Z,contentCpn:z, adClientData:K}});var b=this.jx.get();b=XOn(b.S,Z,Q);b!==null&&(s5(this.v7.get(),{daiStateTrigger:{filledAdsDurationMs:b-Z,contentCpn:z,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:K}}),this.LL.get().XS(b,Q))}; g.A.release=function(){this.xe();this.jx.get().removeListener(this);this.LN.get().removeListener(this)}; g.A.startRendering=function(){this.U0();this.callback.Iy(this.slot,this.layout)}; g.A.dX=function(Z,Q){this.kM(Q);this.driftRecoveryMs!==null&&(Zj(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(Swd(this)-rZ(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.LN.get().J.SS()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.F3(this.slot,this.layout,Q)}; g.A.eM=function(){return!1}; g.A.Pd=function(Z){var Q=rZ(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),z=rZ(this.layout.clientMetadata,"metadata_type_layout_exit_ms");Z*=1E3;if(Q<=Z&&Z<z){var K;s5(this.v7.get(),{daiStateTrigger:{filledAdsDurationMs:Z-Q,contentCpn:(K=this.ou.get().m5)==null?void 0:K.clientPlaybackNonce,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:this.layout.EA.adClientDataEntry}});this.LL.get().XS(Z,z)}}; g.A.XP=function(Z){this.wC(Z);Z=rS(this.LN.get(),2,!0);if(JQ(this.L.get(),this.layout.layoutId)){var Q=rZ(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),z=this.driftRecoveryMs;if(!(z===null||Z*1E3<Q+z)){this.driftRecoveryMs=null;var K=Swd(this),b=this.LN.get().J.SS(),q=Math.min(Z+b,K/1E3);q<=Z?Zj(this,{driftRecoveryMs:z.toString(),breakDurationMs:Math.round(K-Q).toString(),driftFromHeadMs:Math.round(b*1E3).toString()}):(Zj(this,{driftRecoveryMs:z.toString(),breakDurationMs:Math.round(K- Q).toString(),driftFromHeadMs:Math.round(b*1E3).toString(),appliedDriftRecoveryMs:Math.round(Z*1E3-Q).toString(),destinationMs:Math.round(q*1E3-Q).toString()}),this.LN.get().J.seekTo(q,void 0,void 0,1))}}}; g.A.Es=function(){}; g.A.Gu=function(){}; g.A.RF=function(){}; g.A.onVolumeChange=function(){}; g.A.XF=function(){}; g.A.At=function(){};g.L(Q1,l$);g.A=Q1.prototype;g.A.GV=function(Z,Q){this.ou.get().addListener(this);if(this.W){var z=Z,K=0,b=[];Z=this.S.slice();Z.sort(function(q,r){return rZ(q.MB().clientMetadata,"metadata_type_media_sub_layout_index")-rZ(r.MB().clientMetadata,"metadata_type_media_sub_layout_index")}); Z.forEach(function(q){var r=z,D=rZ(q.MB().clientMetadata,"metadata_type_video_length_seconds"),v=Math.min(r+D*1E3,Q);z=v;K++;b.push(D);q.GV(r,v)})}else this.S.forEach(function(q){q.init()}); this.j!=null&&zf(this.v7.get(),"ads_ssmplra_init","lid."+this.layout.layoutId+";smlid."+this.j)}; g.A.xe=function(){this.ou.get().removeListener(this);this.Y=null;this.S.forEach(function(Z){Z.release()})}; g.A.U0=function(){if(this.Y)vM("Failed to restart rendering",this.slot,this.layout,{hasSurveyMediaSubLayout:String(!!this.j)});else{var Z,Q=(Z=this.ou.get().m5)==null?void 0:Z.layoutId;Thn(this,Q)}}; g.A.kM=function(Z){var Q,z,K,b;(K=this.Y)==null||(b=K.f6)==null||b.dX((Q=this.Y)==null?void 0:(z=Q.f6)==null?void 0:z.MB(),Z);this.Y=null}; g.A.QV=function(Z){var Q=Z.videoId;Z=Z.layoutId;if(Q==="nPpU29QrbiU"){var z,K;zf(this.v7.get(),"ads_ssmplra_opdcs","vid."+Q+";lid."+this.layout.layoutId+";smlid."+this.j+";slrs."+!!this.Y+";slrslid."+((z=this.Y)==null?void 0:(K=z.f6)==null?void 0:K.MB().layoutId))}if(this.Y){var b;if(((b=this.Y.f6)==null?void 0:b.MB().layoutId)===Z)vM("Unexpected transition into the same layout ID",this.slot,this.layout,{layoutId:Z});else{var q,r;(r=this.Y.f6)==null||r.dX((q=this.Y.f6)==null?void 0:q.MB(),"normal"); Thn(this,Z)}}}; g.A.C7=function(){}; g.A.A8=function(){}; g.A.wC=function(){}; g.A.hN=function(){}; g.A.onFullscreenToggled=function(){};g.A=NhD.prototype;g.A.qT=function(){return this.slot}; g.A.MB=function(){return this.layout}; g.A.IP=function(){vM("Should not get exitStateMachine for DAI");return new fI}; g.A.GV=function(Z,Q){var z=this;rZ(this.layout.clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.gX=fUn(this.slot,this.layout,rZ(this.layout.clientMetadata,"metadata_type_player_vars"),Z,Q,rZ(this.layout.clientMetadata,"metadata_type_video_length_seconds")*1E3,this.LL.get(),this.LV.get(),function(){var K=Object,b=K.assign,q=AV(z.layout);var r=rZ(z.slot.clientMetadata,"metadata_type_fulfilled_layout")||z.slot.fulfilledLayout;var D=rZ(r.clientMetadata,"metadata_type_sub_layouts")|| r.Fv;r=Object.assign({},AV(r),{adPlacementConfig:rZ(r.clientMetadata,"metadata_type_ad_placement_config"),subLayouts:(D||[]).map(AV)});return b.call(K,{},{layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"},q,{compositeLayout:r,hasSurveyOverlay:QF(z.layout.clientMetadata,"metadata_type_survey_overlay"),surveyOverlay:rZ(z.layout.clientMetadata,"metadata_type_survey_overlay")})},this.v7.get()); this.LN.get().addListener(this);Z=rZ(this.layout.clientMetadata,"metadata_type_video_length_seconds");Q=rZ(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");JH(this.layout.wq)&&sR(this.B4.get(),this.layout.layoutId,{Dh:Q,Gl:Z,listener:this});yyu(this.callback,this.slot,this.layout);dUf(this.callback,this.slot,this.layout)}; g.A.init=function(){var Z=rZ(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),Q=rZ(this.layout.clientMetadata,"metadata_type_layout_exit_ms");this.GV(Z,Q)}; g.A.release=function(){this.LN.get().removeListener(this);JH(this.layout.wq)&&Ze(this.B4.get(),this.layout.layoutId);this.H7.get();N90(this.callback,this.slot,this.layout)}; g.A.startRendering=function(){var Z=this;QF(this.layout.clientMetadata,"metadata_type_survey_overlay")&&zf(this.v7.get(),"ads_ssmlra_srs","lid."+this.layout.layoutId);if(this.jp)vM("Expected the layout not to be entered before start rendering",this.slot,this.layout,{hasSurveyOverlay:QF(this.layout.clientMetadata,"metadata_type_survey_overlay"),surveyOverlay:rZ(this.layout.clientMetadata,"metadata_type_survey_overlay")});else{this.jp={KC:null,Ct:!1};this.Y=!1;if(LJM(this.H7.get())){var Q;this.adCpn= (Q=fg(this.ou.get(),2))==null?void 0:Q.clientPlaybackNonce}this.H7.get().J.N().experiments.XI("html5_disable_sodar_for_tvhtml5")||hon(this.slot,this.layout,this.Cy.get());JH(this.layout.wq)&&aGD(this.B4.get(),this.layout.layoutId);this.yp.Ao("start");if(fd(this.H7.get())){Q=lZ(this.LN.get());var z=rZ(this.layout.clientMetadata,"metadata_type_video_length_seconds"),K=rS(this.LN.get(),2,!1);LhX(this.yp,this.jp.KC,Q,z,K,function(){return void iVW(Z,"teois")},fg(this.ou.get(),1).GJ)}Gv(this.callback, this.slot,this.layout); QF(this.layout.clientMetadata,"metadata_type_survey_overlay")&&zf(this.v7.get(),"ads_ssmlra_sre","lid."+this.layout.layoutId)}}; g.A.dX=function(Z,Q){var z=this;if(this.jp){if(fd(this.H7.get()))if(this.gX===null)vM("Unexpected media sub layout exited without a timeline playback ID");else{Z=rZ(this.layout.clientMetadata,"metadata_type_video_length_seconds");var K=s90(this.LN.get(),this.gX);LJM(this.H7.get())&&this.adCpn===void 0&&vM("Expected ad CPN in SSDAI macro data",this.slot,this.layout,{contentCpn:rZ(this.layout.clientMetadata,"metadata_type_content_cpn")});S2n(this.yp,K,this.adCpn);b1(this.yp,null,this.jp.KC,Z,K,fg(this.ou.get(), 1).GJ,function(b){return void Ga4(z,b,"fue")},LJM(this.H7.get()))}this.jp=null; iz(this.callback,this.slot,this.layout,this.Y&&this.H7.get().J.N().V("dai_layout_log_skip_exit_reason")?"skipped":Q)}else vM("Expected the layout to be entered before stop rendering",this.slot,this.layout)}; g.A.Ed=function(){}; g.A.uf=function(){}; g.A.XP=function(Z){var Q=this;if(this.jp){if(CH(this.yp,"impression")){var z=lZ(this.LN.get()),K=rZ(this.layout.clientMetadata,"metadata_type_video_length_seconds");qI(this.yp,z,Z,this.jp.KC,K,function(b){return void Ga4(Q,b,"tpaqe")})}this.jp.KC=Z}}; g.A.hN=function(Z){var Q=this;if(this.jp){fd(this.H7.get())||this.jp.Ct||(this.jp.Ct=!0,Z=new g.gB(Z.state,new g.Kg));var z=rZ(this.layout.clientMetadata,"metadata_type_video_length_seconds"),K=rS(this.LN.get(),2,!1);KJ(this.yp,this.jp.KC,Z,z,K,fg(this.ou.get(),1).GJ,!fd(this.H7.get()),function(){return void iVW(Q,"teosc")})}}; g.A.onFullscreenToggled=function(Z){npW(this.yp,Z)}; g.A.Es=function(){}; g.A.Gu=function(){}; g.A.RF=function(){}; g.A.dL=function(Z,Q){var z;Z=this.v7.get();var K="ti."+CH(this.yp,"impression")+";ts."+CH(this.yp,"skip")+";hp.",b;var q=!((b=this.yp.S.get("skip"))==null||!b.length);zf(Z,"ads_dsr",K+q+";cpn."+rZ(this.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((z=fg(this.ou.get(),2))==null?void 0:z.clientPlaybackNonce)+";sl."+(rZ(Q.clientMetadata,"metadata_type_linked_player_bytes_layout_id")===this.layout.layoutId));CH(this.yp,"impression")&&this.yp.Ao("skip");Q=fg(this.ou.get(),1).GJ;this.Y=!0; this.LL.get().x6(Q)||(this.Y=!1,vM("Unexpected failure to skip a server stitched ad",this.slot,this.layout))}; g.A.onVolumeChange=function(){}; g.A.Iy=function(){}; g.A.F3=function(){}; g.A.Cr=function(){}; g.A.WJ=function(){}; g.A.sF=function(){c44(this.yp)}; g.A.il=function(){mXn(this.yp)}; g.A.jZ=function(){IUG(this.yp)}; g.A.SZ=function(){J4f(this.yp)}; g.A.Ik=function(){y4W(this.yp)}; g.A.pE=function(){dXM(this.yp)}; g.A.XF=function(){}; g.A.At=function(){};g.L(ji,l$);g.A=ji.prototype; g.A.GV=function(){var Z=this;rZ(this.layout.clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;var Q=rZ(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),z=rZ(this.layout.clientMetadata,"metadata_type_layout_exit_ms");this.gX=fUn(this.slot,this.layout,rZ(this.layout.clientMetadata,"metadata_type_player_vars"),Q,z,rZ(this.layout.clientMetadata,"metadata_type_video_length_seconds")*1E3,this.LL.get(),this.LV.get(),function(){return{layoutType:"LAYOUT_TYPE_MEDIA",enterMs:Q, exitMs:z,adPlacementConfig:rZ(Z.layout.clientMetadata,"metadata_type_ad_placement_config")}},this.v7.get()); var K=rZ(this.layout.clientMetadata,"metadata_type_video_length_seconds"),b=rZ(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");JH(this.layout.wq)&&sR(this.B4.get(),this.layout.layoutId,{Dh:b,Gl:K,listener:this})}; g.A.xe=function(){JH(this.layout.wq)&&Ze(this.B4.get(),this.layout.layoutId)}; g.A.U0=function(){var Z=this;if(this.jp)vM("Expected the layout not to be entered before start rendering",this.slot,this.layout);else if(this.jp={KC:null,Ct:!1},hon(this.slot,this.layout,this.Cy.get()),this.yp.Ao("start"),fd(this.H7.get())){var Q=lZ(this.LN.get()),z=rZ(this.layout.clientMetadata,"metadata_type_video_length_seconds"),K=rS(this.LN.get(),2,!1);LhX(this.yp,this.jp.KC,Q,z,K,function(){return void aUM(Z,"teois")},!1)}}; g.A.kM=function(){var Z=this;if(this.jp){if(fd(this.H7.get()))if(this.gX===null)vM("Unexpected single media layout exited without a timeline playback ID");else{var Q=rZ(this.layout.clientMetadata,"metadata_type_video_length_seconds"),z=s90(this.LN.get(),this.gX);S2n(this.yp,z);b1(this.yp,null,this.jp.KC,Q,z,!1,function(K){return void PKW(Z,K,"fue")})}this.jp=null}else vM("Expected the layout to be entered before stop rendering",this.slot,this.layout)}; g.A.wC=function(Z){var Q=this;if(this.jp){if(CH(this.yp,"impression")){var z=lZ(this.LN.get()),K=rZ(this.layout.clientMetadata,"metadata_type_video_length_seconds");qI(this.yp,z,Z,this.jp.KC,K,function(b){return void PKW(Q,b,"tpaqe")})}this.jp.KC=Z}}; g.A.hN=function(Z){var Q=this;if(this.jp){fd(this.H7.get())||this.jp.Ct||(this.jp.Ct=!0,Z=new g.gB(Z.state,new g.Kg));var z=rZ(this.layout.clientMetadata,"metadata_type_video_length_seconds"),K=rS(this.LN.get(),2,!1);KJ(this.yp,this.jp.KC,Z,z,K,!1,!fd(this.H7.get()),function(){return void aUM(Q,"teosc")})}}; g.A.onFullscreenToggled=function(Z){npW(this.yp,Z)}; g.A.sF=function(){c44(this.yp)}; g.A.il=function(){mXn(this.yp)}; g.A.jZ=function(){IUG(this.yp)}; g.A.SZ=function(){J4f(this.yp)}; g.A.Ik=function(){y4W(this.yp)}; g.A.pE=function(){dXM(this.yp)};Dj.prototype.build=function(Z,Q,z,K){if(QF(z.clientMetadata,"metadata_type_dai")){var b=rZ(K.clientMetadata,"metadata_type_ad_placement_config");E1(K,{Lf:"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(" "),Wg:["LAYOUT_TYPE_MEDIA"]})&&b!==void 0?(b=new N4(K.wq,this.v7,b,K.layoutId,null),b=new ji(Z,z,K,this.ou,this.LL,this.LV,this.jx,this.LN,b,this.v7,this.Cy, this.Y,this.B4,this.H7)):b=null;if(b)return b;a:{var q,r=(q=K.Fv)!=null?q:rZ(K.clientMetadata,"metadata_type_sub_layouts");b=rZ(K.clientMetadata,"metadata_type_ad_placement_config");if(E1(K,{Lf:["metadata_type_layout_enter_ms","metadata_type_drift_recovery_ms","metadata_type_layout_exit_ms"],Wg:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})&&r!==void 0&&b!==void 0){q=[];r=g.n(r);for(var D=r.next();!D.done;D=r.next()){D=D.value;var v=rZ(D.clientMetadata,"metadata_type_media_sub_layout_index");if(!E1(D,{Lf:"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(" "), Wg:["LAYOUT_TYPE_MEDIA"]})||v===void 0){Z=null;break a}v=new N4(D.wq,this.v7,b,D.layoutId,v);q.push(new NhD(Q,z,D,this.LL,v,this.LN,this.LV,this.B4,this.Cy,this.H7,this.v7,this.ou))}Q=new N4(K.wq,this.v7,b,K.layoutId);Z=new Q1(Z,z,K,this.ou,this.LL,this.jx,this.LN,Q,this.v7,this.Y,q)}else Z=null}if(Z)return Z}else if(Z=Ywr(Z,Q,z,K,this.wy,this.aW,this.lJ,this.v7,this.B4,this.Cy,this.jP,this.ou,this.LN,this.mZ,this.t4,this.CL,this.v4,this.lz,this.H7,this.LL,this.context,this.Yn))return Z;throw new bz("Unsupported layout with type: "+ K.layoutType+" and client metadata: "+AJ(K.clientMetadata)+" in PlayerBytesLayoutRenderingAdapterFactory.");};v4.prototype.build=function(Z,Q,z,K){if(Z=Ywr(Z,Q,z,K,this.wy,this.aW,this.lJ,this.v7,this.B4,this.Cy,this.jP,this.ou,this.LN,this.mZ,this.t4,this.CL,this.v4,this.lz,this.H7,this.LL,this.context,this.Yn))return Z;throw new bz("Unsupported layout with type: "+K.layoutType+" and client metadata: "+AJ(K.clientMetadata)+" in PlayerBytesVodOnlyLayoutRenderingAdapterFactory.");};g.L(Ro9,qE);g.L(gA,LH);gA.prototype.startRendering=function(Z){var Q=nH(this.yp),z={adsClientData:this.layout.EA};this.Y.push(new Ro9(rZ(this.layout.clientMetadata,"metadata_type_valid_survey_text_interstitial_renderer"),Q,this.MB().layoutId,z));LH.prototype.startRendering.call(this,Z);this.callback.Iy(this.slot,Z)}; gA.prototype.cN=function(Z,Q){Q!==this.layout.layoutId||Z!=="survey-interstitial"&&Z!=="button"||((Z=rZ(this.layout.clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref").current)?Z.dL(this.slot,this.layout):vM("Tried to skip SurveyInterstitial but PlayerBytes callback is null"))}; gA.prototype.gr=function(){LH.prototype.gr.call(this)};var XV=new g.SO(320,63);g.L(Tf,qE);g.L(fJ,LH);g.A=fJ.prototype;g.A.XP=function(){}; g.A.hN=function(){}; g.A.onFullscreenToggled=function(){}; g.A.Es=function(Z){Z&&Cd(this.W,this.layout)}; g.A.Gu=function(){}; g.A.RF=function(Z){var Q=$t(this.layout);if(this.T=Si(Z,Z2G(this.LN.get())))Q.onErrorCommand&&this.v4.get().executeCommand(Q.onErrorCommand,this.layout.layoutId),Cd(this.W,this.layout)}; g.A.onVolumeChange=function(){}; g.A.VS=function(){return this.MB().layoutId}; g.A.ow=function(){return this.T}; g.A.cN=function(Z){this.L.cN(Z);Z==="in_video_overlay_close_button"&&Cd(this.W,this.layout)}; g.A.J5=function(Z){Z==="invideo-overlay"&&Cd(this.W,this.layout)}; g.A.YA=function(){this.L.YA()}; g.A.startRendering=function(Z){LH.prototype.startRendering.call(this,Z);this.callback.Iy(this.slot,Z);this.K.EX=this}; g.A.dX=function(Z,Q){LH.prototype.dX.call(this,Z,Q);uy(this.K,this)}; g.A.init=function(){LH.prototype.init.call(this);k8r(this.v7.get(),this);this.LN.get().addListener(this);this.Y.push(new Tf($t(this.layout),nH(this.yp),this.layout.layoutId,{adsClientData:this.layout.EA}))}; g.A.release=function(){LH.prototype.release.call(this);this.LN.get().removeListener(this);u$f(this.v7.get(),this)}; g.A.XF=function(){}; g.A.At=function(){};g.L(hV,LH);g.A=hV.prototype;g.A.init=function(){LH.prototype.init.call(this);k8r(this.v7.get(),this);this.LN.get().addListener(this);this.Y.push(new Tf($t(this.layout),nH(this.yp),this.layout.layoutId,{adsClientData:this.layout.EA}))}; g.A.YA=function(){this.L.YA()}; g.A.startRendering=function(Z){LH.prototype.startRendering.call(this,Z);this.callback.Iy(this.slot,Z);this.K.EX=this}; g.A.dX=function(Z,Q){LH.prototype.dX.call(this,Z,Q);uy(this.K,this)}; g.A.cN=function(Z){this.L.cN(Z);Z==="in_video_overlay_close_button"&&Cd(this.W,this.layout)}; g.A.Vu=function(Z){if(Z==="invideo-overlay"){Z=OMx(this.X,this.layout);Z=g.n(Z);for(var Q=Z.next();!Q.done;Q=Z.next())Q.value.stop()}}; g.A.J5=function(Z){Z==="invideo-overlay"&&Cd(this.W,this.layout)}; g.A.LU=function(Z){if(Z==="invideo-overlay"){Z=OMx(this.X,this.layout);Z=g.n(Z);for(var Q=Z.next();!Q.done;Q=Z.next())Q.value.start()}}; g.A.XP=function(){}; g.A.hN=function(){}; g.A.onFullscreenToggled=function(){}; g.A.Es=function(Z){Z&&Cd(this.W,this.layout)}; g.A.Gu=function(){}; g.A.RF=function(Z){var Q=$t(this.layout),z=Q.contentSupportedRenderer.imageOverlayAdContentRenderer,K=Z2G(this.LN.get());a:{z=z.image;z=z===void 0?null:z;if(z!=null&&(z=z.thumbnail,z!=null&&z.thumbnails!=null&&z.thumbnails.length!=0&&z.thumbnails[0].width!=null&&z.thumbnails[0].height!=null)){z=new g.SO(z.thumbnails[0].width||0,z.thumbnails[0].height||0);break a}z=new g.SO(0,0)}if(this.T=Si(Z,K,z))Q.onErrorCommand&&this.v4.get().executeCommand(Q.onErrorCommand,this.layout.layoutId),Cd(this.W,this.layout)}; g.A.onVolumeChange=function(){}; g.A.VS=function(){return this.MB().layoutId}; g.A.ow=function(){return this.T}; g.A.release=function(){LH.prototype.release.call(this);this.LN.get().removeListener(this);u$f(this.v7.get(),this)}; g.A.XF=function(){}; g.A.At=function(){};LJ.prototype.cN=function(Z){Z==="ad-info-hover-text-button"&&((this.Y=this.LN.get().JV(1))||this.LN.get().pauseVideo())}; LJ.prototype.YA=function(){this.Y||this.LN.get().resumeVideo(1)};g.L(MIu,qE);g.L(nJ,LH);g.A=nJ.prototype;g.A.init=function(){LH.prototype.init.call(this);this.LN.get().addListener(this)}; g.A.startRendering=function(Z){var Q=rZ(this.layout.clientMetadata,"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD");this.Y.push(new MIu(Q,this.layout.layoutId,{adsClientData:this.layout.EA}));LH.prototype.startRendering.call(this,Z);this.callback.Iy(this.slot,Z)}; g.A.Iy=function(){}; g.A.cN=function(Z,Q){Q!==this.layout.layoutId||Z!=="ad-info-icon-button"&&Z!=="ad-info-dialog-close-button"||((Q=rZ(this.layout.clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref").current)?Z==="ad-info-icon-button"?Q.Cr(this.slot,this.layout):Z==="ad-info-dialog-close-button"&&Q.WJ(this.slot,this.layout):vM("Tried to use LayoutControlsCallback on Survey but it is null",this.slot,this.layout,{ComponentType:Z}))}; g.A.RF=function(Z){Z.width<450&&Cd(this.W,this.layout)}; g.A.onVolumeChange=function(){}; g.A.XP=function(){}; g.A.onFullscreenToggled=function(){}; g.A.Es=function(){}; g.A.Gu=function(){}; g.A.hN=function(){}; g.A.XF=function(){}; g.A.At=function(){}; g.A.gr=function(){LH.prototype.gr.call(this)}; g.A.release=function(){LH.prototype.release.call(this);this.LN.get().removeListener(this)};UXG.prototype.build=function(Z,Q,z,K){if(Q=Yh(Z,z,K,this.J4,this.LN,this.v7,this.W,this.Y,this.H7))return Q;if(E1(K,HVu()))return new hV(z,K,this.v7,this.B4,this.J4,Z,this.j,this.S,this.LN,this.v4,this.H7,this.Y,new LJ(this.LN));if(E1(K,pOr()))return new fJ(z,K,this.v7,this.B4,this.J4,Z,this.j,this.LN,this.v4,this.H7,this.Y,new LJ(this.LN));if(E1(K,{Lf:["METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"],Wg:["LAYOUT_TYPE_SURVEY"]}))return new nJ(z,K,Z,this.J4,this.j,this.LN,this.H7);if(E1(K, {Lf:["metadata_type_player_bytes_layout_controls_callback_ref","metadata_type_valid_survey_text_interstitial_renderer","metadata_type_ad_placement_config"],Wg:["LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"]}))return new gA(z,K,Z,this.J4,this.v7);if(E1(K,tNx()))return new r8(z,K,Z,this.J4,this.LN,this.H7);throw new bz("Unsupported layout with type: "+K.layoutType+" and client metadata: "+AJ(K.clientMetadata)+" in WebDesktopMainInPlayerLayoutRenderingAdapterFactory.");};OVu.prototype.build=function(Z,Q,z,K){if(Q=Yh(Z,z,K,this.J4,this.LN,this.v7,this.W,this.Y,this.H7))return Q;if(E1(K,HVu()))return new hV(z,K,this.v7,this.B4,this.J4,Z,this.j,this.S,this.LN,this.v4,this.H7,this.Y,new LJ(this.LN));if(E1(K,pOr()))return new fJ(z,K,this.v7,this.B4,this.J4,Z,this.j,this.LN,this.v4,this.H7,this.Y,new LJ(this.LN));throw new bz("Unsupported layout with type: "+K.layoutType+" and client metadata: "+AJ(K.clientMetadata)+" in WebEmbeddedInPlayerLayoutRenderingAdapterFactory."); };g.L(c4,bt);c4.prototype.startRendering=function(Z){bt.prototype.startRendering.call(this,Z);if(Z.renderingContent?Wcf(Z,fg(this.ou.get(),2)||void 0):rZ(this.layout.clientMetadata,"metadata_ad_video_is_listed"))Z=Z.renderingContent?BV4(Z,fg(this.ou.get(),2)||void 0):rZ(this.layout.clientMetadata,"metadata_type_ad_info_ad_metadata"),this.TQ.get().J.hG("onAdMetadataAvailable",Z)};Bhd.prototype.build=function(Z,Q,z,K){if(E1(K,op4())||K.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.V(K.renderingContent,j5)!==void 0)return new c4(Z,z,K,this.J4,this.LN,this.v7,this.j,this.TQ,this.Y,this.ou);throw new bz("Unsupported layout with type: "+K.layoutType+" and client metadata: "+AJ(K.clientMetadata)+" in WebRemixInPlayerLayoutRenderingAdapterFactory.");};WhG.prototype.build=function(Z,Q,z,K){if(E1(K,op4()))return new c4(Z,z,K,this.J4,this.LN,this.v7,this.j,this.TQ,this.Y,this.ou);if(Z=Yh(Z,z,K,this.J4,this.LN,this.v7,this.j,this.Y,this.H7))return Z;throw new bz("Unsupported layout with type: "+K.layoutType+" and client metadata: "+AJ(K.clientMetadata)+" in WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");};kt.prototype.clone=function(Z){var Q=this;return new kt(function(){return Q.triggerId},Z)};u1.prototype.clone=function(Z){var Q=this;return new u1(function(){return Q.triggerId},Z)};xt.prototype.clone=function(Z){var Q=this;return new xt(function(){return Q.triggerId},Z)};tV.prototype.clone=function(Z){var Q=this;return new tV(function(){return Q.triggerId},Z)};FV.prototype.clone=function(Z){var Q=this;return new FV(function(){return Q.triggerId},Z)};ei.prototype.clone=function(Z){var Q=this;return new ei(function(){return Q.triggerId},Z)};g.L(p5,g.O);var KOG={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 QG={layoutExitMuteTriggers:[],layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],Nb:[],layoutExitUserInputSubmittedTriggers:[]};var RM={sX$:1,yLu:2,Xkf:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};g.L(Tq,g.O);g.A=Tq.prototype;g.A.K_=function(Z){if(this.Y)vM("Unexpected multiple fetch instructions for the current content");else{this.Y=Z;Z=g.n(this.jx.get().NV);for(var Q=Z.next();!Q.done;Q=Z.next())cgd(this,this.Y,Q.value)}}; g.A.eM=function(Z){if(!this.Y){var Q;(Q=this.LL)==null||Q.get().YP(Z.identifier);return!1}cgd(this,this.Y,Z);return!0}; g.A.Pd=function(){}; g.A.l0=function(Z){this.Y&&this.Y.contentCpn!==Z&&(vM("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:Z,fetchInstructionsCpn:this.Y.contentCpn}),this.Y=null)}; g.A.S9=function(Z){this.Y&&this.Y.contentCpn!==Z&&vM("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:Z,fetchInstructionsCpn:this.Y.contentCpn},!0);this.Y=null}; g.A.gr=function(){g.O.prototype.gr.call(this);this.Y=null};var hp=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"],m_o=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_player_overlay_layout_renderer","metadata_type_ad_placement_config"];g.L(Ld,g.O);g.A=Ld.prototype;g.A.Iy=function(Z,Q){var z=this;if(Q.layoutType==="LAYOUT_TYPE_MEDIA"&&(zv(Q,this.K)||zv(Q,m_o))){var K=fg(this.ou.get(),2),b=this.W(Q,K||void 0);b?$E(this.S.get(),"OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",function(){var q=[XVD(z.Y.get(),b.contentCpn,b.kA,function(r){return z.L(r.slotId,"core",b,YH(z.Ky.get(),r))},b.inPlayerSlotId)]; b.instreamAdPlayerUnderlayRenderer&&w6(z.H7.get())&&q.push(ygG(z,b,b.instreamAdPlayerUnderlayRenderer));return q}):vM("Expected MediaLayout to carry valid opportunity on entered",Z,Q)}}; g.A.AN=function(){}; g.A.e_=function(){}; g.A.Ty=function(){}; g.A.Dp=function(){}; g.A.Ev=function(){}; g.A.Zp=function(){}; g.A.Me=function(){}; g.A.Jx=function(){}; g.A.vN=function(){}; g.A.Gg=function(){}; g.A.F3=function(){};g.L(nd,g.O);nd.prototype.l0=function(Z,Q,z,K,b,q,r){var D=this,v=fg(this.ou.get(),1);!e1(this.H7.get(),"html5_ssap_play_cached_preroll")&&v.HH?qL(this.LN.get()):($Jn(this.t4.get(),K),$E(this.j.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return yK0(D.Y.get(),K,b,q,Z,Q,r,v,"")}),f$f(this.S))}; nd.prototype.S9=function(){};g.L(cx,g.O);g.L(ml,g.O);ml.prototype.onCueRangeEnter=function(){}; ml.prototype.onCueRangeExit=function(Z){var Q=this,z=this.Y.get(Z);z&&(this.Y.delete(Z),this.mZ.get().removeCueRange(Z),$E(this.j.get(),"OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",function(){var K=Q.S.get();K=TQ(K.j.get(),"SLOT_TYPE_AD_BREAK_REQUEST");return[Object.assign({},z,{slotId:K,slotEntryTrigger:z.slotEntryTrigger?tGX(z.slotId,K,z.slotEntryTrigger):void 0,slotFulfillmentTriggers:Fgn(z.slotId,K,z.slotFulfillmentTriggers),slotExpirationTriggers:Fgn(z.slotId,K,z.slotExpirationTriggers)})]}, z.slotId))}; ml.prototype.l0=function(){for(var Z=g.n(this.Y.keys()),Q=Z.next();!Q.done;Q=Z.next())Q=Q.value,this.mZ.get().removeCueRange(Q);this.Y.clear()}; ml.prototype.S9=function(){};g.L(Id,g.O);g.A=Id.prototype;g.A.AN=function(){}; g.A.e_=function(Z){var Q=this;g.lb(g.ZW(),function(){var z=Q.Y.get(Z);z&&vM("Expected layouts to be properly unscheduled",Z,void 0,{slotType:Z.slotType,layoutTypes:[].concat(g.I(z)).map(function(K){return K.layoutType})})},0)}; g.A.Ty=function(){}; g.A.Dp=function(){}; g.A.Ev=function(){}; g.A.Zp=function(){}; g.A.Me=function(){}; g.A.Jx=function(Z,Q){this.Y.has(Z)||this.Y.set(Z,new Set);this.Y.get(Z).add(Q)}; g.A.vN=function(Z,Q){this.LM.has(Z)&&this.LM.get(Z)===Q&&vM("Unscheduled a Layout that is currently entered.",Z,Q);if(this.Y.has(Z)){var z=this.Y.get(Z);z.has(Q)?(z.delete(Q),z.size===0&&this.Y.delete(Z)):vM("Trying to unscheduled a Layout that was not scheduled.",Z,Q)}else vM("Trying to unscheduled a Layout that was not scheduled.",Z,Q)}; g.A.Iy=function(Z,Q){this.LM.set(Z,Q)}; g.A.F3=function(Z){this.LM.delete(Z)}; g.A.Gg=function(){};g.A=NOW.prototype;g.A.init=function(){}; g.A.qT=function(){return this.slot}; g.A.rW=function(){this.callback.Ty(this.slot)}; g.A.uF=function(){this.callback.Ev(this.slot)}; g.A.release=function(){};d_.prototype.build=function(Z,Q){return new NOW(Z,Q)};g.A=G49.prototype;g.A.init=function(){}; g.A.qT=function(){return this.slot}; g.A.rW=function(){Ap(this.LN.get(),"ad-showing");this.callback.Ty(this.slot)}; g.A.uF=function(){this.callback.Ev(this.slot);jv(this.LN.get(),"ad-showing")}; g.A.release=function(){};g.A=iMu.prototype;g.A.init=function(){}; g.A.qT=function(){return this.slot}; g.A.rW=function(){Ap(this.LN.get(),"ad-showing");Ap(this.LN.get(),"ad-interrupting");this.j=this.LN.get().isAtLiveHead();this.Y=Math.ceil(Date.now()/1E3);this.callback.Ty(this.slot)}; g.A.uF=function(){jv(this.LN.get(),"ad-showing");jv(this.LN.get(),"ad-interrupting");var Z=this.j?Infinity:rS(this.LN.get(),1,!0)+Math.floor(Date.now()/1E3)-this.Y;this.LN.get().J.seekTo(Z,void 0,void 0,1);this.callback.Ev(this.slot)}; g.A.release=function(){};g.A=a3G.prototype;g.A.init=function(){}; g.A.qT=function(){return this.slot}; g.A.rW=function(){Ap(this.LN.get(),"ad-showing");Ap(this.LN.get(),"ad-interrupting");this.callback.Ty(this.slot)}; g.A.uF=function(){qL(this.LN.get());jv(this.LN.get(),"ad-showing");jv(this.LN.get(),"ad-interrupting");this.callback.Ev(this.slot)}; g.A.release=function(){qL(this.LN.get())};Nn.prototype.build=function(Z,Q){if(j1(Q,["metadata_type_dai"],"SLOT_TYPE_PLAYER_BYTES"))return new G49(Z,Q,this.LN);if(Q.slotEntryTrigger instanceof H4&&j1(Q,["metadata_type_served_from_live_infra"],"SLOT_TYPE_PLAYER_BYTES"))return new iMu(Z,Q,this.LN);if(j1(Q,[],"SLOT_TYPE_PLAYER_BYTES"))return new a3G(Z,Q,this.LN);throw new w("Unsupported slot with type "+Q.slotType+" and client metadata: "+(AJ(Q.clientMetadata)+" in PlayerBytesSlotAdapterFactory."));};g.L(Gq,g.O);Gq.prototype.Y=function(Z){for(var Q=[],z=g.n(this.kq.values()),K=z.next();!K.done;K=z.next()){K=K.value;var b=K.trigger;b instanceof V1&&K.category==="TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"&&b.triggeringLayoutId===Z&&Q.push(K)}Q.length?a$(this.uW(),Q):vM("Mute requested but no registered triggers can be activated.")};g.L(ad,Gq);g.A=ad.prototype;g.A.cN=function(Z,Q){if(Q)if(Z==="skip-button"){Z=[];for(var z=g.n(this.kq.values()),K=z.next();!K.done;K=z.next()){K=K.value;var b=K.trigger;b instanceof V1&&K.category==="TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"&&b.triggeringLayoutId===Q&&Z.push(K)}Z.length&&a$(this.uW(),Z)}else e1(this.H7.get(),"supports_multi_step_on_desktop")?Z==="ad-action-submit-survey"&&iP(this,Q):Z==="survey-submit"?iP(this,Q):Z==="survey-single-select-answer-button"&&iP(this,Q)}; g.A.Fz=function(Z){Gq.prototype.Y.call(this,Z)}; g.A.Hk=function(Z,Q,z,K){if(this.kq.has(Q.triggerId))throw new w("Tried to register duplicate trigger for slot.");if(!(Q instanceof wA||Q instanceof V1))throw new w("Incorrect TriggerType: Tried to register trigger of type "+Q.triggerType+" in AdUxUpdateTriggerAdapter.");this.kq.set(Q.triggerId,new l1(Z,Q,z,K))}; g.A.JL=function(Z){this.kq.delete(Z.triggerId)}; g.A.Vu=function(){}; g.A.LU=function(){}; g.A.J5=function(){};g.L(Px,g.O);g.A=Px.prototype; g.A.Hk=function(Z,Q,z,K){if(this.kq.has(Q.triggerId))throw new w("Tried to register duplicate trigger for slot.");if(!(Q instanceof kt||Q instanceof u1||Q instanceof xt||Q instanceof tV||Q instanceof FV||Q instanceof ei||Q instanceof O5||Q instanceof Gf||Q instanceof ao||Q instanceof i1||Q instanceof U5||Q instanceof NI))throw new w("Incorrect TriggerType: Tried to register trigger of type "+Q.triggerType+" in AdsControlFlowEventTriggerAdapter");Z=new l1(Z,Q,z,K);this.kq.set(Q.triggerId,Z);Q instanceof FV&&this.L.has(Q.triggeringSlotId)&&a$(this.Y(),[Z]);Q instanceof kt&&this.S.has(Q.triggeringSlotId)&&a$(this.Y(),[Z]);Q instanceof Gf&&this.j.has(Q.triggeringLayoutId)&&a$(this.Y(),[Z])}; g.A.JL=function(Z){this.kq.delete(Z.triggerId)}; g.A.AN=function(Z){this.L.add(Z.slotId);for(var Q=[],z=g.n(this.kq.values()),K=z.next();!K.done;K=z.next())K=K.value,K.trigger instanceof FV&&Z.slotId===K.trigger.triggeringSlotId&&Q.push(K);Q.length>0&&a$(this.Y(),Q)}; g.A.e_=function(Z){this.L.delete(Z.slotId);for(var Q=[],z=g.n(this.kq.values()),K=z.next();!K.done;K=z.next()){K=K.value;var b=K.trigger;b instanceof ei&&b.triggeringSlotId===Z.slotId&&Q.push(K)}Q.length>0&&a$(this.Y(),Q)}; g.A.Dp=function(Z){for(var Q=[],z=g.n(this.kq.values()),K=z.next();!K.done;K=z.next()){K=K.value;var b=K.trigger;b instanceof O5&&b.slotType===Z.slotType&&b.Y!==Z.slotId&&Q.push(K)}Q.length>0&&a$(this.Y(),Q)}; g.A.Ty=function(Z){this.S.add(Z.slotId);for(var Q=[],z=g.n(this.kq.values()),K=z.next();!K.done;K=z.next())K=K.value,K.trigger instanceof kt&&Z.slotId===K.trigger.triggeringSlotId&&Q.push(K);Q.length>0&&a$(this.Y(),Q)}; g.A.Ev=function(Z){this.S.delete(Z.slotId);this.W.add(Z.slotId);for(var Q=[],z=g.n(this.kq.values()),K=z.next();!K.done;K=z.next())if(K=K.value,K.trigger instanceof u1)Z.slotId===K.trigger.triggeringSlotId&&Q.push(K);else if(K.trigger instanceof NI){var b=K.trigger;Z.slotId===b.slotId&&this.j.has(b.triggeringLayoutId)&&Q.push(K)}Q.length>0&&a$(this.Y(),Q)}; g.A.Zp=function(Z){for(var Q=[],z=g.n(this.kq.values()),K=z.next();!K.done;K=z.next())K=K.value,K.trigger instanceof xt&&Z.slotId===K.trigger.triggeringSlotId&&Q.push(K);Q.length>0&&a$(this.Y(),Q)}; g.A.Me=function(Z){for(var Q=[],z=g.n(this.kq.values()),K=z.next();!K.done;K=z.next())K=K.value,K.trigger instanceof tV&&Z.slotId===K.trigger.triggeringSlotId&&Q.push(K);Q.length>0&&a$(this.Y(),Q)}; g.A.Jx=function(Z,Q){this.K.add(Q.layoutId)}; g.A.vN=function(Z,Q){this.K.delete(Q.layoutId)}; g.A.Iy=function(Z,Q){this.j.add(Q.layoutId);for(var z=[],K=g.n(this.kq.values()),b=K.next();!b.done;b=K.next())if(b=b.value,b.trigger instanceof Gf)Q.layoutId===b.trigger.triggeringLayoutId&&z.push(b);else if(b.trigger instanceof U5){var q=b.trigger;Z.slotType===q.slotType&&Q.layoutType===q.layoutType&&Q.layoutId!==q.Y&&z.push(b)}else b.trigger instanceof NI&&(q=b.trigger,Q.layoutId===q.triggeringLayoutId&&this.W.has(q.slotId)&&z.push(b));z.length>0&&a$(this.Y(),z)}; g.A.F3=function(Z,Q,z){this.j.delete(Q.layoutId);Z=[];for(var K=g.n(this.kq.values()),b=K.next();!b.done;b=K.next())if(b=b.value,b.trigger instanceof ao&&Q.layoutId===b.trigger.triggeringLayoutId&&Z.push(b),b.trigger instanceof i1){var q=b.trigger;Q.layoutId===q.triggeringLayoutId&&q.Y.includes(z)&&Z.push(b)}Z.length>0&&a$(this.Y(),Z)}; g.A.Gg=function(){}; g.A.l0=function(){this.W.clear()}; g.A.S9=function(){};g.L(Rd,g.O);Rd.prototype.Hk=function(Z,Q,z,K){if(this.kq.has(Q.triggerId))throw new w("Tried to register duplicate trigger for slot.");if(!(Q instanceof y1))throw new w("Incorrect TriggerType: Tried to register trigger of type "+Q.triggerType+" in CloseRequestedTriggerAdapter");this.kq.set(Q.triggerId,new l1(Z,Q,z,K))}; Rd.prototype.JL=function(Z){this.kq.delete(Z.triggerId)};g.L(pd,g.O);pd.prototype.Hk=function(Z,Q,z,K){if(this.kq.has(Q.triggerId))throw new w("Tried to register duplicate trigger for slot.");if(!(Q instanceof JV||Q instanceof B4))throw new w("Incorrect TriggerType: Tried to register trigger of type "+Q.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.kq.set(Q.triggerId,new l1(Z,Q,z,K))}; pd.prototype.JL=function(Z){this.kq.delete(Z.triggerId)}; pd.prototype.l0=function(Z){for(var Q=[],z=Q.push,K=z.apply,b=[],q=g.n(this.kq.values()),r=q.next();!r.done;r=q.next())r=r.value,r.trigger instanceof JV&&r.trigger.fz===Z&&b.push(r);K.call(z,Q,g.I(b));z=Q.push;K=z.apply;b=[];q=g.n(this.kq.values());for(r=q.next();!r.done;r=q.next())r=r.value,r.trigger instanceof B4&&r.trigger.Y!==Z&&b.push(r);K.call(z,Q,g.I(b));Q.length&&a$(this.Y(),Q)}; pd.prototype.S9=function(Z){for(var Q=[],z=Q.push,K=z.apply,b=[],q=g.n(this.kq.values()),r=q.next();!r.done;r=q.next()){r=r.value;var D=r.trigger;D instanceof B4&&D.Y===Z&&b.push(r)}K.call(z,Q,g.I(b));Q.length&&a$(this.Y(),Q)};g.L(Hx,g.O);g.A=Hx.prototype;g.A.Hk=function(Z,Q,z,K){if(this.kq.has(Q.triggerId))throw new w("Tried to register duplicate trigger for slot.");var b="adtriggercuerange:"+Q.triggerId;if(Q instanceof H4)PsM(this,Z,Q,z,K,b,Q.Y.start,Q.Y.end,Q.fz,Q.visible);else if(Q instanceof dA)PsM(this,Z,Q,z,K,b,0x7ffffffffffff,0x8000000000000,Q.fz,Q.visible);else throw new w("Incorrect TriggerType: Tried to register trigger of type "+Q.triggerType+" in CueRangeTriggerAdapter");}; g.A.JL=function(Z){var Q=this.kq.get(Z.triggerId);Q&&this.mZ.get().removeCueRange(Q.cueRangeId);this.kq.delete(Z.triggerId)}; g.A.onCueRangeEnter=function(Z){var Q=RIM(this,Z);if(Q&&(Q=this.kq.get(Q)))if(g.t(lZ(this.LN.get()),32))this.Y.add(Q.cueRangeId);else{var z=Q==null?void 0:Q.xI.trigger;if(z instanceof H4||z instanceof dA){if(J7(this.context.H7.get())){var K=Q.xI.slot,b=Q.xI.layout,q={};this.context.gV.Sf("cre",(q.ca=Q.xI.category,q.tt=z.triggerType,q.st=K.slotType,q.lt=b==null?void 0:b.layoutType,q.cid=Z,q))}a$(this.j(),[Q.xI])}}}; g.A.onCueRangeExit=function(Z){(Z=RIM(this,Z))&&(Z=this.kq.get(Z))&&this.Y.delete(Z.cueRangeId)}; g.A.hN=function(Z){if(YC(Z,16)<0){Z=g.n(this.Y);for(var Q=Z.next();!Q.done;Q=Z.next())this.onCueRangeEnter(Q.value,!0);this.Y.clear()}}; g.A.AN=function(){}; g.A.e_=function(){}; g.A.Dp=function(){}; g.A.Ty=function(){}; g.A.Ev=function(){}; g.A.Zp=function(){}; g.A.Me=function(){}; g.A.Jx=function(){}; g.A.vN=function(){}; g.A.Iy=function(){}; g.A.F3=function(){}; g.A.Gg=function(){}; g.A.XP=function(){}; g.A.onFullscreenToggled=function(){}; g.A.Es=function(){}; g.A.Gu=function(){}; g.A.RF=function(){}; g.A.onVolumeChange=function(){}; g.A.XF=function(){}; g.A.At=function(){};g.L(Mn,g.O);g.A=Mn.prototype; g.A.Hk=function(Z,Q,z,K){if(this.j.has(Q.triggerId)||this.S.has(Q.triggerId))throw new w("Tried to re-register the trigger.");Z=new l1(Z,Q,z,K);if(Z.trigger instanceof pJ)this.j.set(Z.trigger.triggerId,Z);else if(Z.trigger instanceof P4)this.S.set(Z.trigger.triggerId,Z);else throw new w("Incorrect TriggerType: Tried to register trigger of type "+Z.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.j.has(Z.trigger.triggerId)&&Z.slot.slotId===this.Y&&a$(this.W(),[Z])}; g.A.JL=function(Z){this.j.delete(Z.triggerId);this.S.delete(Z.triggerId)}; g.A.QV=function(Z){Z=Z.slotId;if(this.Y!==Z){var Q=[];this.Y!=null&&Q.push.apply(Q,g.I(Cs0(this.S,this.Y)));Z!=null&&Q.push.apply(Q,g.I(Cs0(this.j,Z)));this.Y=Z;Q.length&&a$(this.W(),Q)}}; g.A.C7=function(){}; g.A.A8=function(){};g.L(U4,g.O);g.A=U4.prototype;g.A.Hk=function(Z,Q,z,K){if(this.kq.has(Q.triggerId))throw new w("Tried to register duplicate trigger for slot.");if(!(Q instanceof oo))throw new w("Incorrect TriggerType: Tried to register trigger of type "+Q.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.kq.set(Q.triggerId,new l1(Z,Q,z,K))}; g.A.JL=function(Z){this.kq.delete(Z.triggerId)}; g.A.Iy=function(){}; g.A.F3=function(){}; g.A.AN=function(){}; g.A.e_=function(){}; g.A.Dp=function(){}; g.A.Ty=function(){}; g.A.Ev=function(){}; g.A.Zp=function(){}; g.A.Me=function(){}; g.A.Jx=function(){}; g.A.vN=function(){}; g.A.Gg=function(){};g.L(O4,g.O);g.A=O4.prototype;g.A.Gg=function(Z,Q){for(var z=[],K=g.n(this.kq.values()),b=K.next();!b.done;b=K.next()){b=b.value;var q=b.trigger;q.opportunityType===Z&&(q.associatedSlotId&&q.associatedSlotId!==Q||z.push(b))}z.length&&a$(this.Y(),z)}; g.A.Hk=function(Z,Q,z,K){if(this.kq.has(Q.triggerId))throw new w("Tried to register duplicate trigger for slot.");if(!(Q instanceof k1n))throw new w("Incorrect TriggerType: Tried to register trigger of type "+Q.triggerType+" in OpportunityEventTriggerAdapter");this.kq.set(Q.triggerId,new l1(Z,Q,z,K))}; g.A.JL=function(Z){this.kq.delete(Z.triggerId)}; g.A.AN=function(){}; g.A.e_=function(){}; g.A.Dp=function(){}; g.A.Ty=function(){}; g.A.Ev=function(){}; g.A.Zp=function(){}; g.A.Me=function(){}; g.A.Jx=function(){}; g.A.vN=function(){}; g.A.Iy=function(){}; g.A.F3=function(){};g.L(od,g.O);g.A=od.prototype;g.A.Hk=function(Z,Q,z,K){Z=new l1(Z,Q,z,K);if(Q instanceof Ro||Q instanceof MI||Q instanceof CJ||Q instanceof W4||Q instanceof VIx){if(this.kq.has(Q.triggerId))throw new w("Tried to register duplicate trigger for slot.");this.kq.set(Q.triggerId,Z);z=z.slotId;Z=this.S.has(z)?this.S.get(z):new Set;Z.add(Q);this.S.set(z,Z)}else throw new w("Incorrect TriggerType: Tried to register trigger of type "+Q.triggerType+" in PrefetchTriggerAdapter");}; g.A.JL=function(Z){this.kq.delete(Z.triggerId)}; g.A.AN=function(Z){var Q=Z.slotId;if(this.S.has(Q)){Z=0;var z=new Set;Q=g.n(this.S.get(Q));for(var K=Q.next();!K.done;K=Q.next())if(K=K.value,z.add(K.triggerId),K instanceof MI&&K.breakDurationMs){Z=K.breakDurationMs;break}Bx(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",Z,z)}}; g.A.e_=function(){}; g.A.Dp=function(){}; g.A.Ty=function(){}; g.A.Ev=function(){}; g.A.Zp=function(){}; g.A.Me=function(){}; g.A.Jx=function(){}; g.A.vN=function(){}; g.A.Iy=function(){}; g.A.F3=function(){}; g.A.Gg=function(){}; g.A.eM=function(Z){if(this.Y){this.j&&this.j.stop();this.W&&g.lR(this.W);Z=Z.Nn*1E3+1E3;for(var Q=0,z=g.n(this.kq.values()),K=z.next();!K.done;K=z.next())K=K.value.trigger,K instanceof Ro&&K.breakDurationMs<=Z&&K.breakDurationMs>Q&&(Q=K.breakDurationMs);Z=Q;if(Z>0)return Bx(this,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",Z,new Set,!0),Bx(this,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",Z,new Set,!1),!0}return!1}; g.A.Pd=function(){}; g.A.l0=function(Z){this.Y&&this.Y.contentCpn!==Z?(vM("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:Z,fetchInstructionsCpn:this.Y.contentCpn}),Wx(this)):HMX(this)}; g.A.S9=function(Z){this.Y&&this.Y.contentCpn!==Z&&vM("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:Z,fetchInstructionsCpn:this.Y.contentCpn},!0);Wx(this)}; g.A.K_=function(Z){var Q=this;if(this.Y)vM("Unexpected multiple fetch instructions for the current content");else{this.Y=Z;Z=Uhx(Z);this.j=new g.E6(function(){HMX(Q)},Z?Z:6E5); this.j.start();this.W=new g.E6(function(){Q.Y&&(Q.j&&(Q.j.stop(),Q.j.start()),pTd(Q,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},MG9(this.Y)); Z=this.LN.get().getCurrentTimeSec(1,!1);for(var z=g.n(this.jx.get().NV),K=z.next();!K.done;K=z.next())K=K.value,zf(this.v7.get(),"nocache","ct."+Date.now()+";cmt."+Z+";d."+K.Nn.toFixed(3)+";tw."+(K.startSecs-Z)+";cid."+K.identifier+";")}}; g.A.gr=function(){g.O.prototype.gr.call(this);Wx(this)};g.L(VG,g.O);g.A=VG.prototype;g.A.Hk=function(Z,Q,z,K){if(this.kq.has(Q.triggerId))throw new w("Tried to register duplicate trigger for slot.");if(!(Q instanceof E5))throw new w("Incorrect TriggerType: Tried to register trigger of type "+Q.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.kq.set(Q.triggerId,new l1(Z,Q,z,K));Z=this.Y.has(Q.triggeringLayoutId)?this.Y.get(Q.triggeringLayoutId):new Set;Z.add(Q);this.Y.set(Q.triggeringLayoutId,Z)}; g.A.JL=function(Z){this.kq.delete(Z.triggerId);if(!(Z instanceof E5))throw new w("Incorrect TriggerType: Tried to unregister trigger of type "+Z.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var Q=this.j.get(Z.triggerId);Q&&(Q.dispose(),this.j.delete(Z.triggerId));if(Q=this.Y.get(Z.triggeringLayoutId))Q.delete(Z),Q.size===0&&this.Y.delete(Z.triggeringLayoutId)}; g.A.AN=function(){}; g.A.e_=function(){}; g.A.Dp=function(){}; g.A.Ty=function(){}; g.A.Ev=function(){}; g.A.Zp=function(){}; g.A.Me=function(){}; g.A.Jx=function(){}; g.A.vN=function(){}; g.A.Gg=function(){}; g.A.Iy=function(Z,Q){var z=this;if(this.Y.has(Q.layoutId)){Z=this.Y.get(Q.layoutId);Z=g.n(Z);var K=Z.next();for(Q={};!K.done;Q={TD:void 0},K=Z.next())Q.TD=K.value,K=new g.E6(function(b){return function(){var q=z.kq.get(b.TD.triggerId);a$(z.S(),[q])}}(Q),Q.TD.durationMs),K.start(),this.j.set(Q.TD.triggerId,K)}}; g.A.F3=function(){};g.L(kg,g.O);kg.prototype.Hk=function(Z,Q,z,K){if(this.kq.has(Q.triggerId))throw new w("Tried to register duplicate trigger for slot.");if(!(Q instanceof mq))throw new w("Incorrect TriggerType: Tried to register trigger of type "+Q.triggerType+" in VideoTransitionTriggerAdapter.");this.kq.set(Q.triggerId,new l1(Z,Q,z,K))}; kg.prototype.JL=function(Z){this.kq.delete(Z.triggerId)};FD.prototype.u_=function(Z){return Z.kind==="AD_PLACEMENT_KIND_START"};g.L(E4,g.O);g.A=E4.prototype;g.A.logEvent=function(Z){this.Eu(Z)}; g.A.OR=function(Z,Q,z){this.Eu(Z,void 0,void 0,void 0,Q,void 0,void 0,void 0,Q.adSlotLoggingData,void 0,void 0,z)}; g.A.Wv=function(Z,Q,z,K){this.Eu(Z,void 0,void 0,void 0,Q,z?z:void 0,void 0,void 0,Q.adSlotLoggingData,z?z.adLayoutLoggingData:void 0,void 0,K)}; g.A.tv=function(Z,Q,z,K){e1(this.H7.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+Z,"trigger:",z,"slot:",Q,"layout:",K);gZ(this.Y.get())&&this.Eu(Z,void 0,void 0,void 0,Q,K?K:void 0,void 0,z,Q.adSlotLoggingData,K?K.adLayoutLoggingData:void 0)}; g.A.n3=function(Z,Q,z,K,b){this.Eu(Z,Q,z,K,void 0,void 0,void 0,void 0,void 0,void 0,void 0,b)}; g.A.vP=function(Z,Q,z,K){this.Eu("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,z,K,void 0,void 0,z.adSlotLoggingData,K?K.adLayoutLoggingData:void 0,{errorType:Z,errorMessage:Q})}; g.A.Eu=function(Z,Q,z,K,b,q,r,D,v,Y,X,S){var T=this;S=S===void 0?0:S;e1(this.H7.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+Z,"slot:",b,"layout:",q,"ping:",r,"Opportunity:",{opportunityType:Q,associatedSlotId:z,rn$:K,kUG:D,adSlotLoggingData:v,adLayoutLoggingData:Y});try{var f=function(){if(!T.H7.get().J.N().V("html5_disable_client_tmp_logs")&&Z!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){Z||vM("Empty PACF event type",b,q);var h=gZ(T.Y.get()),m={eventType:Z,eventOrder:++T.eventCount},J={}; b&&(J.slotData=vh(h,b));q&&(J.layoutData=nY0(h,q));r&&(J.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:r.Y.serializedAdPingMetadata,pingIndex:r.index});D&&(J.triggerData=D0(D.trigger,D.category));Q&&(J.opportunityData=cyG(h,Q,z,K));h={organicPlaybackContext:{contentCpn:fg(T.ou.get(),1).clientPlaybackNonce}};h.organicPlaybackContext.isLivePlayback=fg(T.ou.get(),1).fd;var d;h.organicPlaybackContext.isMdxPlayback=(d=fg(T.ou.get(),1))==null?void 0:d.isMdxPlayback; var G;if((G=fg(T.ou.get(),1))==null?0:G.daiEnabled)h.organicPlaybackContext.isDaiContent=!0;var R;if(d=(R=fg(T.ou.get(),2))==null?void 0:R.clientPlaybackNonce)h.adVideoPlaybackContext={adVideoCpn:d};h&&(J.externalContext=h);m.adClientData=J;v&&(m.serializedSlotAdServingData=v.serializedSlotAdServingDataEntry);Y&&(m.serializedAdServingData=Y.serializedAdServingDataEntry);X&&(m.errorInfo=X);g.DW("adsClientStateChange",{adsClientEvent:m})}}; S&&S>0?g.lb(g.ZW(),function(){return f()},S):f()}catch(h){e1(this.H7.get(),"html5_log_pacf_logging_errors")&&g.lb(g.ZW(),function(){vM(h instanceof Error?h:String(h),b,q,{pacf_message:"exception during pacf logging"})})}};var I2n=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.L(lP,E4);g.A=lP.prototype; g.A.OR=function(Z,Q,z){E4.prototype.OR.call(this,Z,Q,z);J7(this.H7.get())&&(z={},this.context.gV.Sf("pacf",(z.et=Z,z.st=Q.slotType,z.si=Q.slotId,z)))}; g.A.Wv=function(Z,Q,z,K){var b=I2n.has(Z);E4.prototype.Wv.call(this,Z,Q,z,K);J7(this.H7.get(),b)&&(K={},this.context.gV.Sf("pacf",(K.et=Z,K.st=Q.slotType,K.si=Q.slotId,K.lt=z==null?void 0:z.layoutType,K.li=z==null?void 0:z.layoutId,K.p_ac=z==null?void 0:z.layoutId,K)))}; g.A.n3=function(Z,Q,z,K,b){E4.prototype.n3.call(this,Z,Q,z,K,b);J7(this.H7.get())&&(z={},this.context.gV.Sf("pacf",(z.et=Z,z.ot=Q,z.ss=K==null?void 0:K.length,z)))}; g.A.tv=function(Z,Q,z,K){E4.prototype.tv.call(this,Z,Q,z,K);if(J7(this.H7.get())){var b={};this.context.gV.Sf("pacf",(b.et=Z,b.tt=z.trigger.triggerType,b.tc=z.category,b.st=Q.slotType,b.si=Q.slotId,b.lt=K==null?void 0:K.layoutType,b.li=K==null?void 0:K.layoutId,b.p_ac=K==null?void 0:K.layoutId,b))}}; g.A.vP=function(Z,Q,z,K){E4.prototype.vP.call(this,Z,Q,z,K);if(J7(this.H7.get(),!0)){var b={};this.context.gV.Sf("perror",(b.ert=Z,b.erm=Q,b.st=z.slotType,b.si=z.slotId,b.lt=K==null?void 0:K.layoutType,b.li=K==null?void 0:K.layoutId,b.p_ac=K==null?void 0:K.layoutId,b))}}; g.A.Eu=function(Z,Q,z,K,b,q,r,D,v,Y,X){if(g.Nf(this.H7.get().J.N())){var S=this.H7.get();S=g.Xp(S.J.N().experiments,"H5_async_logging_delay_ms")}else S=void 0;E4.prototype.Eu.call(this,Z,Q,z,K,b,q,r,D,v,Y,X,S)};se.prototype.clear=function(){this.Y.clear()};zG.prototype.resolve=function(Z){Z7(this,Z)}; zG.prototype.reject=function(Z){Qu(this,Z)}; zG.prototype.state=function(){return this.currentState==="done"?{state:"done",result:this.result}:this.currentState==="fail"?{state:"fail",error:this.error}:{state:"wait"}}; zG.prototype.wait=function(){var Z=this;return function z(){return gWX(z,function(K){if(K.Y==1)return g.cG(K,2),g.P(K,{wF:Z},4);if(K.Y!=2)return K.return(K.j);g.Jn(K);return g.yx(K,0)})}()}; var jrW=tj(function(Z){return KY(Z)?Z instanceof zG:!1});var YN=window.i9g||"en";TG.prototype.pH=function(Z){this.client=Z}; TG.prototype.Y=function(){this.clear();this.csn=g.Jy()}; TG.prototype.clear=function(){this.S.clear();this.j.clear();this.W.clear();this.csn=null};hd.prototype.pH=function(Z){g.lW(fY().pH).bind(fY())(Z)}; hd.prototype.clear=function(){g.lW(fY().clear).bind(fY())()};g.A=LY.prototype;g.A.pH=function(Z){this.client=Z}; g.A.Z0=function(Z,Q){var z=this;Q=Q===void 0?{}:Q;g.lW(function(){var K,b,q,r=((K=g.V(Z==null?void 0:Z.commandMetadata,g.fq))==null?void 0:K.rootVe)||((b=g.V(Z==null?void 0:Z.commandMetadata,BXz))==null?void 0:(q=b.screenVisualElement)==null?void 0:q.uiType);if(r){K=g.V(Z==null?void 0:Z.commandMetadata,rjz);if(K==null?0:K.parentTrackingParams){var D=g.cc(K.parentTrackingParams);if(K.parentCsn)var v=K.parentCsn}else Q.clickedVisualElement?D=Q.clickedVisualElement:Z.clickTrackingParams&&(D=g.cc(Z.clickTrackingParams)); a:{K=g.V(Z,g.tF);b=g.V(Z,scz);if(K){if(b=Q$W(K,"VIDEO")){K={token:b,videoId:K.videoId};break a}}else if(b&&(K=Q$W(b,"PLAYLIST"))){K={token:K,playlistId:b.playlistId};break a}K=void 0}Q=Object.assign({},{cttAuthInfo:K,parentCsn:v},Q);if(g.nA("expectation_logging")){var Y;Q.loggingExpectations=((Y=g.V(Z==null?void 0:Z.commandMetadata,BXz))==null?void 0:Y.loggingExpectations)||void 0}c3(z,r,D,Q)}else g.CO(new g.tW("Error: Trying to create a new screen without a rootVeType",Z))})()}; g.A.clickCommand=function(Z,Q,z){Z=Z.clickTrackingParams;z=z===void 0?0:z;Z?(z=g.Jy(z===void 0?0:z))?(Ahx(this.client,z,g.cc(Z),Q),Q=!0):Q=!1:Q=!1;return Q}; g.A.stateChanged=function(Z,Q,z){this.visualElementStateChanged(g.cc(Z),Q,z===void 0?0:z)}; g.A.visualElementStateChanged=function(Z,Q,z){z=z===void 0?0:z;z===0&&this.j.has(z)?this.X.push([Z,Q]):rJn(this,Z,Q,z)};yu.prototype.fetch=function(Z,Q,z){var K=this,b=Df9(Z,Q,z);return new Promise(function(q,r){function D(){if(z==null?0:z.WM)try{var Y=K.handleResponse(Z,b.status,b.response,z);q(Y)}catch(X){r(X)}else q(K.handleResponse(Z,b.status,b.response,z))} b.onerror=D;b.onload=D;var v;b.send((v=Q.body)!=null?v:null)})}; yu.prototype.handleResponse=function(Z,Q,z,K){z=z.replace(")]}'","");try{var b=JSON.parse(z)}catch(q){g.CO(new g.tW("JSON parsing failed after XHR fetch",Z,Q,z));if((K==null?0:K.WM)&&z)throw new g.Q5(1,"JSON parsing failed after XHR fetch");b={}}Q!==200&&(g.CO(new g.tW("XHR API fetch failed",Z,Q,z)),b=Object.assign({},b,{errorMetadata:{status:Q}}));return b};d0.getInstance=function(){var Z=g.WG("ytglobal.storage_");Z||(Z=new d0,g.BG("ytglobal.storage_",Z));return Z}; d0.prototype.estimate=function(){var Z,Q,z;return g.C(function(K){Z=navigator;return((Q=Z.storage)==null?0:Q.estimate)?K.return(Z.storage.estimate()):((z=Z.webkitTemporaryStorage)==null?0:z.queryUsageAndQuota)?K.return(vHn()):K.return()})}; g.BG("ytglobal.storageClass_",d0);Ah.prototype.B8=function(Z){this.handleError(Z)}; Ah.prototype.logEvent=function(Z,Q){switch(Z){case "IDB_DATA_CORRUPTED":g.nA("idb_data_corrupted_killswitch")||this.Y("idbDataCorrupted",Q);break;case "IDB_UNEXPECTEDLY_CLOSED":this.Y("idbUnexpectedlyClosed",Q);break;case "IS_SUPPORTED_COMPLETED":g.nA("idb_is_supported_completed_killswitch")||this.Y("idbIsSupportedCompleted",Q);break;case "QUOTA_EXCEEDED":Yix(this,Q);break;case "TRANSACTION_ENDED":this.S&&Math.random()<=.1&&this.Y("idbTransactionEnded",Q);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":Z= Object.assign({},Q,{hasWindowUnloaded:this.j}),this.Y("idbTransactionAborted",Z)}};var Vj={},FqM=g.Z4("yt-player-local-media",{yQ:(Vj.index={Mw:2},Vj.media={Mw:2},Vj.captions={Mw:5},Vj),shared:!1,upgrade:function(Z,Q){Q(2)&&(g.iQ(Z,"index"),g.iQ(Z,"media"));Q(5)&&g.iQ(Z,"captions");Q(6)&&(aw(Z,"metadata"),aw(Z,"playerdata"))}, version:5});var J6X={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},kI;a:{var uL=g.iU();uL=uL.toLowerCase();if(g.Jo(uL,"android")){var y6n=uL.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(y6n){var d_0=parseFloat(y6n[1]);if(d_0<100){kI=d_0;break a}}var NDw=uL.match("("+Object.keys(J6X).join("|")+")");kI=NDw?J6X[NDw[0]]:0}else kI=void 0}var d5=kI,yf=d5>=0;var QP9=window;var Xh9=vK(function(){var Z,Q;return(Q=(Z=window).matchMedia)==null?void 0:Q.call(Z,"(prefers-reduced-motion: reduce)").matches});var GG;g.NP=new ah;GG=0;var iJ={yZ:function(Z){Z.reverse()}, vb:function(Z,Q){Z.splice(0,Q)}, Lg:function(Z,Q){var z=Z[0];Z[0]=Z[Q%Z.length];Z[Q%Z.length]=z}};var SBW=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var xQ=cJG()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.Fc?!0:!1;var xy0={bZ$:"adunit",NVu:"detailpage",QF$:"editpage",IcG:"embedded",TcG:"leanback",a$B:"previewpage",sRJ:"profilepage",wT:"unplugged",Myg:"playlistoverview",oZI:"sponsorshipsoffer",Lb$:"shortspage",Dr7:"handlesclaiming",CpY:"immersivelivepage",ZMp:"creatormusic",Ur$:"immersivelivepreviewpage",PJY:"admintoolyurt",zC$:"shortsaudiopivot",o8g:"consumption"};var xI,Gdn,N3;xI={};g.Oe=(xI.STOP_EVENT_PROPAGATION="html5-stop-propagation",xI.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",xI.IV_DRAWER_OPEN="ytp-iv-drawer-open",xI.MAIN_VIDEO="html5-main-video",xI.VIDEO_CONTAINER="html5-video-container",xI.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",xI.HOUSE_BRAND="house-brand",xI);Gdn={};N3=(Gdn.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",Gdn.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",Gdn);var Gv4={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var RzG={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},C64={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"},gO0={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var Xin={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.w0.prototype.getLanguageInfo=function(){return this.Qw}; g.w0.prototype.getXtags=function(){if(!this.xtags){var Z=this.id.split(";");Z.length>1&&(this.xtags=Z[1])}return this.xtags}; g.w0.prototype.toString=function(){return this.Qw.name}; g.w0.prototype.getLanguageInfo=g.w0.prototype.getLanguageInfo;Ee.prototype.Tg=function(Z){return this.j===Z.j&&this.Y===Z.Y&&this.S===Z.S&&this.reason===Z.reason&&(!sJ||this.Yq===Z.Yq)}; Ee.prototype.isLocked=function(){return this.S&&!!this.j&&this.j===this.Y}; Ee.prototype.compose=function(Z){if(Z.S&&Z5(Z))return UK;if(Z.S||Z5(this))return Z;if(this.S||Z5(Z))return this;var Q=this.j&&Z.j?Math.max(this.j,Z.j):this.j||Z.j,z=this.Y&&Z.Y?Math.min(this.Y,Z.Y):this.Y||Z.Y;Q=Math.min(Q,z);var K=0;sJ&&(K=this.Yq!==0&&Z.Yq!==0?Math.min(this.Yq,Z.Yq):this.Yq===0?Z.Yq:this.Yq);return sJ&&Q===this.j&&z===this.Y&&K===this.Yq||!sJ&&Q===this.j&&z===this.Y?this:sJ?new Ee(Q,z,!1,z===this.Y&&K===this.Yq?this.reason:Z.reason,K):new Ee(Q,z,!1,z===this.Y?this.reason:Z.reason)}; Ee.prototype.W=function(Z){return!Z.video||sJ&&this.Yq!==0&&this.Yq<Z.Yq?!1:HHn(this,Z.video.quality)}; var i9U=g.lJ("auto","hd1080",!1,"l"),QTd=g.lJ("auto","large",!1,"l"),UK=g.lJ("auto","auto",!1,"p"),sJ=!1;b2.prototype.L9=function(Z){Z=Z||UK;for(var Q=g.jr(this.videoInfos,function(r){return Z.W(r)}),z=[],K={},b=0;b<Q.length;b++){var q=Q[b].video; K[q.quality]||(z.push(q),K[q.quality]=!0)}return z}; b2.prototype.AC=function(Z){Z=Z||UK;return g.jr(this.videoInfos,function(Q){return Z.W(Q)})}; b2.prototype.getAvailableAudioTracks=function(){return this.audioTracks};var s3X=new Set(["356"]);g.L(qV,g.O);qV.prototype.gr=function(){g.O.prototype.gr.call(this)};g.TL.prototype.set=function(Z,Q){this.Y[Z]!==Q&&(this.Y[Z]=Q,this.url="")}; g.TL.prototype.get=function(Z){fZ(this);return this.Y[Z]||null}; g.TL.prototype.sS=function(){this.url||(this.url=qs4(this));return this.url}; g.TL.prototype.clone=function(){var Z=new g.TL(this.j,this.W);Z.scheme=this.scheme;Z.path=this.path;Z.S=this.S;Z.Y=g.ae(this.Y);Z.url=this.url;return Z}; var bI4=[pQx];g.A=g.J0.prototype;g.A.Fi=function(Z){this.segments.push(Z)}; g.A.U9=function(Z){return!!this.aR(Z)}; g.A.getDuration=function(Z){return(Z=this.aR(Z))?Z.duration:0}; g.A.vy=function(Z){return this.getDuration(Z)}; g.A.Ge=function(){return 0}; g.A.pC=function(){return this.segments.length?this.segments[0].rr:-1}; g.A.RC=function(Z){return(Z=this.aR(Z))?Z.ingestionTime:NaN}; g.A.h4=function(){return this.segments.length?this.segments[this.segments.length-1].rr:-1}; g.A.Of=function(Z){return this.h4()===Z&&!this.j&&Z>=0}; g.A.Hr=function(){var Z=this.segments[this.segments.length-1];return Z?Z.endTime:NaN}; g.A.Ze=function(){return this.segments[0].startTime}; g.A.Fp=function(){return this.segments.length}; g.A.yA=function(){return 0}; g.A.ON=function(Z){return(Z=this.PO(Z))?Z.rr:-1}; g.A.ix=function(Z){return(Z=this.aR(Z))?Z.sourceURL:""}; g.A.getStartTime=function(Z){return(Z=this.aR(Z))?Z.startTime:0}; g.A.sz=function(Z){return this.getStartTime(Z)+this.getDuration(Z)}; g.A.wx=Qx(1);g.A.isLoaded=function(){return this.segments.length>0}; g.A.aR=function(Z){if(this.Y&&this.Y.rr===Z)return this.Y;Z=g.Aj(this.segments,new I6(Z,0,0,0,""),function(Q,z){return Q.rr-z.rr}); return this.Y=Z>=0?this.segments[Z]:null}; g.A.PO=function(Z){if(this.Y&&this.Y.startTime<=Z&&Z<this.Y.startTime+this.Y.duration)return this.Y;Z=g.Aj(this.segments,{startTime:Z},function(Q,z){return Q.startTime-z.startTime}); return this.Y=Z>=0?this.segments[Z]:this.segments[Math.max(0,-Z-2)]}; g.A.append=function(Z){if(Z.length)if(Z=g.QM(Z),this.segments.length){var Q=this.segments.length?g.x$(this.segments).endTime:0,z=Z[0].rr-this.h4();z>1&&wGD(this.segments);for(z=z>0?0:-z+1;z<Z.length;z++){var K=Z[z];K.startTime=Q;K.endTime=K.startTime+K.duration;Q+=Z[z].duration;this.segments.push(Z[z])}}else this.segments=Z}; g.A.ZQ=function(){return 0};yy.prototype.skip=function(Z){this.Y+=Z};vhn.prototype.m9=function(){return new Uint8Array(this.data.buffer)};var tc={},a2$=(tc.predictStart="predictStart",tc.start="start",tc["continue"]="continue",tc.stop="stop",tc),ghG={EVENT_PREDICT_START:"predictStart",EVENT_START:"start",EVENT_CONTINUE:"continue",EVENT_STOP:"stop"};Ho.prototype.xF=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"])}; Ho.prototype.toString=function(){for(var Z="",Q=g.n(Object.keys(this.data)),z=Q.next();!z.done;z=Q.next())z=z.value,Z+=z+":"+this.data[z]+";";return Z};el.prototype.BS=function(){var Z=this.pos;this.pos=0;var Q=!1;try{sX(this,440786851)&&(this.pos=0,sX(this,408125543)&&(Q=!0))}catch(z){if(z instanceof RangeError)this.pos=0,Q=!1,g.CO(z);else throw z;}this.pos=Z;return Q};DE.prototype.set=function(Z,Q){this.pM.get(Z);this.Y[Z]=Q;this.url=""}; DE.prototype.get=function(Z){return this.Y[Z]||this.pM.get(Z)}; DE.prototype.sS=function(){this.url||(this.url=Rf0(this));return this.url};Sc.prototype.Wl=function(Z,Q){return Z.ih?this.X?this.K=!0:this.K=pNX(this,Z,Q):pNX(this,Z,Q)}; Sc.prototype.Qa=function(Z){return this.S.get(Z)}; Sc.prototype.a4=function(Z,Q){Z.pM===this.Y&&(this.Y=vz(Z,Q));Z.pM===this.W&&(this.W=vz(Z,Q))}; Sc.prototype.xo=function(){return this.Y!==this.W&&!this.K};nQ.prototype.E6=function(){return!!this.Y&&this.index.isLoaded()}; nQ.prototype.jg=function(){return!1}; nQ.prototype.D9=function(Z){return[Z]}; nQ.prototype.Pf=function(Z){return[Z]};cz.prototype.toString=function(){return this.start+"-"+(this.end==null?"":this.end)};g.A=yT.prototype;g.A.sN=function(){return this.W&&this.Y.index.Of(this.rr)}; g.A.isEncrypted=function(){return this.Y.info.isEncrypted()}; g.A.Tg=function(Z){return!(!Z||Z.Y!==this.Y||Z.type!==this.type||(this.range&&Z.range?Z.range.start!==this.range.start||Z.range.end!==this.range.end:Z.range!==this.range)||Z.rr!==this.rr||Z.j!==this.j||Z.S!==this.S)}; g.A.Gy=function(){return!!this.Y.info.video}; g.A.O8=function(){var Z=aa(this),Q="";g.fx(Z,function(z,K){Q+=K+"_"+z+"_"}); return Q.slice(0,-1)};Ra.prototype.JS=function(){return this.Y?this.Y.sS():""}; Ra.prototype.isDecorated=function(){return!!(this.Y||this.W&&this.W.Rs)}; Ra.prototype.lP=function(){return dm(this.AG[0])}; Ra.prototype.a4=function(Z,Q){this.zW.a4(Z,Q);if(this.Y){this.Y=vz(Z,Q);Q=g.n(["acpns","cpn","daistate","skipsq"]);for(var z=Q.next();!z.done;z=Q.next())this.Y.set(z.value,null)}this.requestId=Z.get("req_id")};g.L(Mo,nQ);g.A=Mo.prototype;g.A.Is=function(){return!1}; g.A.cL=function(){return!0}; g.A.Ux=function(){return!1}; g.A.jg=function(){return!this.L}; g.A.In=function(){return new Ra([new yT(1,this,this.initRange,"getMetadataRequestInfo")],this.L)}; g.A.vK=function(){return null}; g.A.u3=function(Z){this.x$(Z);return this.cL()&&Z.S&&!Z.W?new Ra([new yT(Z.type,Z.Y,Z.range,"liveGetNextRequestInfoBySegment",Z.rr,Z.startTime,Z.duration,Z.j+Z.S,NaN,!0)],this.index.ix(Z.rr)):this.TU(i7(Z),!1)}; g.A.Ou=function(Z,Q){Q=Q===void 0?!1:Q;Z=this.index.ON(Z);Q&&(Z=Math.min(this.index.h4(),Z+1));return this.TU(Z,!0)}; g.A.nU=function(Z){EX(Z)}; g.A.x$=function(Z){return Z.S===0?!0:this.index.h4()>Z.rr&&this.index.pC()<=Z.rr+1}; g.A.update=function(Z,Q,z){this.index.append(Z);j3f(this.index,z);Z=this.index;Z.j=Q;Z.S="update"}; g.A.E6=function(){return this.jg()?!0:nQ.prototype.E6.call(this)}; g.A.TU=function(Z,Q){var z=this.index.ix(Z),K=this.index.getStartTime(Z),b=this.index.getDuration(Z),q;Q?b=q=0:q=this.info.Yq>0?this.info.Yq*b:1E3;return new Ra([new yT(3,this,void 0,"liveCreateRequestInfoForSegment",Z,K,b,0,q,!Q)],z)}; g.A.Yg=function(){return this.jg()?0:this.initRange.length}; g.A.Op=function(){return!1};oa.prototype.update=function(Z){var Q=void 0;this.j&&(Q=this.j);var z=new oa,K=Array.from(Z.getElementsByTagName("S"));if(K.length){var b=+UX(Z,"timescale")||1,q=(+K[0].getAttribute("t")||0)/b,r=+UX(Z,"startNumber")||0;z.W=q;var D=Q?Q.startSecs+Q.Nn:0,v=Date.parse(QVd(UX(Z,"yt:segmentIngestTime")))/1E3;z.L=Z.parentElement.tagName==="SegmentTemplate";z.L&&(z.T=UX(Z,"media"));Z=Q?r-Q.rr:1;z.K=Z>0?0:-Z+1;Z=g.n(K);for(K=Z.next();!K.done;K=Z.next()){K=K.value;for(var Y=+K.getAttribute("d")/b,X=(+K.getAttribute("yt:sid")|| 0)/b,S=+K.getAttribute("r")||0,T=0;T<=S;T++)if(Q&&r<=Q.rr)r++;else{var f=new sVG(r,D,Y,v+X,q);z.Y.push(f);var h=K;var m=b,J=f.startSecs;f=h.getAttribute("yt:cuepointTimeOffset");var d=h.getAttribute("yt:cuepointDuration");if(f&&d){f=Number(f);J=-f/m+J;m=Number(d)/m;d=h.getAttribute("yt:cuepointContext")||null;var G=h.getAttribute("yt:cuepointIdentifier")||"";h=h.getAttribute("yt:cuepointEvent")||"";h=new CZ(J,m,d,G,a2$[h]||"unknown",f)}else h=null;h&&z.S.push(h);r++;D+=Y;q+=Y;v+=Y+X}}z.Y.length&& (z.j=g.x$(z.Y))}this.K=z.K;this.j=z.j||this.j;g.KG(this.Y,z.Y);g.KG(this.S,z.S);this.L=z.L;this.T=z.T;this.W===-1&&(this.W=z.getStreamTimeOffset())}; oa.prototype.getStreamTimeOffset=function(){return this.W===-1?0:this.W};g.L(Wz,g.J0);g.A=Wz.prototype;g.A.Ge=function(){return this.e$}; g.A.U9=function(Z,Q){Z=VT(this,Z);return Z>=0&&(Q||!this.segments[Z].pending)}; g.A.pC=function(){return this.e9?this.segments.length?this.PO(this.Ze()).rr:-1:g.J0.prototype.pC.call(this)}; g.A.Ze=function(){if(this.Da)return 0;if(!this.e9)return g.J0.prototype.Ze.call(this);if(!this.segments.length)return 0;var Z=Math.max(g.x$(this.segments).endTime-this.iR,0);return this.uY>0&&this.PO(Z).rr<this.uY?this.aR(this.uY).startTime:Z}; g.A.Hr=function(){if(this.sH&&this.QA&&this.QA>0)return this.QA/1E3;if(!this.segments.length)return g.J0.prototype.Hr.call(this);var Z=this.h4();if(!this.e9||Z<=this.segments[this.segments.length-1].rr)Z=this.segments[this.segments.length-1];else{var Q=this.segments[this.segments.length-1];Z=new I6(Z,Math.max(0,Q.startTime-(Q.rr-Z)*this.e$),this.e$,0,"sq/"+Z,void 0,void 0,!0)}return this.Da?Math.min(this.iR,Z.endTime):Z.endTime}; g.A.Fp=function(){return this.e9?this.segments.length?this.h4()-this.pC()+1:0:g.J0.prototype.Fp.call(this)}; g.A.h4=function(){var Z=Math.min(this.nZ,Math.max(g.J0.prototype.h4.call(this),this.E7)),Q=this.iR*1E3;Q=this.QA>0&&this.QA<Q;this.Da&&this.iR>0&&this.E7>0&&!Q&&(Q=this.PO(this.iR))&&(Z=Math.min(Q.rr-1,Z));return Z}; g.A.Ug=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.A.Fi=function(Z){var Q=VT(this,Z.rr);if(Q>=0)this.segments[Q]=Z;else if(this.segments.splice(-(Q+1),0,Z),this.Ln&&Z.rr%(300/this.e$)===0){var z=this.segments[0].rr,K=Math.floor(this.Ln/this.e$);Z=Z.rr-K;Q=-(Q+1)-K;Q>0&&Z>z&&(this.segments=this.segments.slice(Q))}}; g.A.lF=function(){return this.E7}; g.A.Of=function(Z){return Bz?!this.j&&Z>=0&&this.h4()<=Z:g.J0.prototype.Of.call(this,Z)}; g.A.PO=function(Z){if(!this.e9)return g.J0.prototype.PO.call(this,Z);if(!this.segments.length)return null;var Q=this.segments[this.segments.length-1];if(Z<this.segments[0].startTime)Q=Math.max(0,this.segments[0].rr-Math.ceil((this.segments[0].startTime-Z)/this.e$));else if(Z>=Q.endTime)Q=Q.rr+Math.floor((Z-Q.endTime)/this.e$+1);else{Q=jB(this.segments,function(K){return Z<K.startTime?-1:Z>=K.endTime?1:0}); if(Q>=0)return this.segments[Q];var z=-(Q+1);Q=this.segments[z-1];z=this.segments[z];Q=Math.floor((Z-Q.endTime)/((z.startTime-Q.endTime)/(z.rr-Q.rr-1))+1)+Q.rr}return this.aR(Q)}; g.A.aR=function(Z){if(!this.e9)return g.J0.prototype.aR.call(this,Z);if(!this.segments.length)return null;var Q=VT(this,Z);if(Q>=0)return this.segments[Q];var z=-(Q+1);Q=this.e$;if(z===0)var K=Math.max(0,this.segments[0].startTime-(this.segments[0].rr-Z)*Q);else z===this.segments.length?(K=this.segments[this.segments.length-1],K=K.endTime+(Z-K.rr-1)*Q):(K=this.segments[z-1],Q=this.segments[z],Q=(Q.startTime-K.endTime)/(Q.rr-K.rr-1),K=K.endTime+(Z-K.rr-1)*Q);return new I6(Z,K,Q,0,"sq/"+Z,void 0,void 0, !0)}; var Bz=!1;g.L(ki,Mo);g.A=ki.prototype;g.A.Ux=function(){return!0}; g.A.E6=function(){return!0}; g.A.x$=function(Z){return this.cL()&&Z.S&&!Z.W||!Z.Y.index.Of(Z.rr)}; g.A.In=function(){}; g.A.Ou=function(Z,Q){return typeof Z!=="number"||isFinite(Z)?Mo.prototype.Ou.call(this,Z,Q===void 0?!1:Q):new Ra([new yT(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.ip,void 0,this.ip*this.info.Yq)],"")}; g.A.TU=function(Z,Q){var z=z===void 0?!1:z;if(this.index.U9(Z))return Mo.prototype.TU.call(this,Z,Q);var K=this.index.getStartTime(Z),b=Math.round(this.ip*this.info.Yq),q=this.ip;Q&&(q=b=0);return new Ra([new yT(z?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",Z,K,q,void 0,b,!Q)],Z>=0?"sq/"+Z:"")};g.L(u7,nQ);g.A=u7.prototype;g.A.Is=function(){return!1}; g.A.cL=function(){return!1}; g.A.Ux=function(){return!1}; g.A.In=function(){return new Ra([new yT(1,this,void 0,"otfInit")],this.L)}; g.A.vK=function(){return null}; g.A.u3=function(Z){this.x$(Z);return DBr(this,i7(Z),!1)}; g.A.Ou=function(Z,Q){Q=Q===void 0?!1:Q;Z=this.index.ON(Z);Q&&(Z=Math.min(this.index.h4(),Z+1));return DBr(this,Z,!0)}; g.A.nU=function(Z){Z.info.type===1&&(this.Y||(this.Y=m8(Z.Y)),Z.j&&Z.j.uri==="http://youtube.com/streaming/otf/durations/112015"&&v69(this,Z.j))}; g.A.x$=function(Z){return Z.S===0?!0:this.index.h4()>Z.rr&&this.index.pC()<=Z.rr+1}; g.A.Yg=function(){return 0}; g.A.Op=function(){return!1};xi.prototype.Vk=function(){return this.Y.Vk()};g.A=g.l7.prototype;g.A.U9=function(Z){return Z<=this.h4()}; g.A.yA=function(Z){return this.offsets[Z]}; g.A.getStartTime=function(Z){return this.startTicks[Z]/this.Y}; g.A.sz=function(Z){return this.getStartTime(Z)+this.getDuration(Z)}; g.A.wx=Qx(0);g.A.RC=function(){return NaN}; g.A.getDuration=function(Z){Z=this.vy(Z);return Z>=0?Z/this.Y:-1}; g.A.vy=function(Z){return Z+1<this.count||this.j?this.startTicks[Z+1]-this.startTicks[Z]:-1}; g.A.Ge=function(){return 0}; g.A.pC=function(){return 0}; g.A.h4=function(){return this.count-1}; g.A.Of=function(Z){return this.h4()===Z&&Z>=0}; g.A.Hr=function(){return this.j?this.startTicks[this.count]/this.Y:NaN}; g.A.Ze=function(){return 0}; g.A.Fp=function(){return this.count}; g.A.ix=function(){return""}; g.A.ON=function(Z){Z=g.Aj(this.startTicks.subarray(0,this.count),Z*this.Y);return Z>=0?Z:Math.max(0,-Z-2)}; g.A.isLoaded=function(){return this.h4()>=0}; g.A.ZQ=function(Z,Q){if(Z>=this.h4())return 0;var z=0;for(Q=this.getStartTime(Z)+Q;Z<this.h4()&&Q>this.getStartTime(Z);Z++)z=Math.max(z,LVd(this,Z)/this.getDuration(Z));return z}; g.A.resize=function(Z){Z+=2;var Q=this.offsets;this.offsets=new Float64Array(Z+1);var z=this.startTicks;this.startTicks=new Float64Array(Z+1);for(Z=0;Z<this.count+1;Z++)this.offsets[Z]=Q[Z],this.startTicks[Z]=z[Z]}; g.A.cap=function(Z,Q){sa(this);this.j=!0;this.startTicks[this.count]=Q;this.offsets[this.count]=Z};g.L(Zd,nQ);g.A=Zd.prototype;g.A.In=function(Z,Q){var z=new yT(2,this,this.indexRange,"indexInfo",void 0,void 0,void 0,void 0,void 0,void 0,void 0,Q),K=[new yT(1,this,this.initRange,"initInfo",void 0,void 0,void 0,void 0,void 0,void 0,void 0,Q),z];this.info.contentLength>0&&Z&&(z=z.range.end+1,Z=Math.min(Z,this.info.contentLength-z),Z>0&&K.push(new yT(4,this,Ia(z,Z),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,Q)));return new Ra(K)}; g.A.nU=function(Z){if(Z.info.type===1){if(this.Y)return;this.Y=m8(Z.Y)}else if(Z.info.type===2){if(this.L||this.index.h4()>=0)return;if(g.lt(this.info)){var Q=this.index,z=Z.Vk();Z=Z.info.range.start;var K=g.OJ(z,0,1936286840);z=nh4(K);Q.Y=z.timescale;var b=z.ra;Q.offsets[0]=z.IH+Z+K.size;Q.startTicks[0]=b;Q.j=!0;Z=z.l$.length;for(K=0;K<Z;K++){b=Q;var q=z.qvu[K],r=z.l$[K];b.count++;sa(b);b.offsets[b.count]=b.offsets[b.count-1]+q;b.startTicks[b.count]=b.startTicks[b.count-1]+r}}else this.L=Z.Vk()}if(this.info.Jj()&& this.Y&&this.L){z=new DataView(this.Y.buffer);Q=this.index;K=this.L;Z=this.indexRange.end;b=new el(z);z=b;b=z.pos;q={aA:1E6,N6:1E9,duration:0,Ab:0,j6:0};if(sX(z,408125543))if(q.Ab=ZE(z,!0),q.j6=z.start+z.pos,sX(z,357149030)){for(r=l2(z);!wL(r);){var D=ZE(r,!1);D===2807729?q.aA=z9(r):D===2807730?q.N6=z9(r):D===17545?q.duration=b7(r):KQ(r)}z.pos=b;z=q}else z.pos=b,z=null;else z.pos=b,z=null;if(z!==null){Q.Y=z.N6/z.aA;b=new el(K);K=b;r=z.j6;b=K.pos;q=[];if(sX(K,475249515)){for(D=l2(K);sX(D,187);){var v= l2(D);if(sX(v,179)){var Y=z9(v);if(sX(v,183)){v=l2(v);for(var X=r;sX(v,241);)X=z9(v)+r;q.push({iF:X,ph:Y})}}}if(q.length>0&&Z===q[0].iF)for(Z=0;Z<q.length;Z++)q[Z].iF+=1;K.pos=b;Z=q}else K.pos=b,Z=null;if(Z!==null){Z=g.n(Z);for(K=Z.next();!K.done;K=Z.next())q=K.value,K=Q,b=q.iF,q=q.ph,sa(K),K.offsets[K.count]=b,K.startTicks[K.count]=q,K.count++;Q.cap(z.Ab+z.j6,z.duration)}}this.L=null}}; g.A.sC=function(Z,Q,z,K){for(var b=[],q=Z;q<=this.index.h4();q++){var r=Ia(this.index.yA(q),LVd(this.index,q)),D=this.index.getStartTime(q),v=this.index.getDuration(q),Y=Math.max(0,Q-r.start),X=Math.min(r.end+1,Q+z)-(r.start+Y);b.push(new yT(3,this,r,"getRequestInfoForRange",q,D,v,Y,X,void 0,void 0,K));if(r.start+Y+X>=Q+z)break}b.length||g.Rm(new g.tW("b189619593",""+Z,""+Q,""+z));return new Ra(b)}; g.A.D9=function(Z){for(var Q=this.Pf(Z.info),z=Z.info.range.start+Z.info.j,K=[],b=0;b<Q.length;b++){var q=Le(Z.Y,Q[b].range.start+Q[b].j-z,Q[b].S);K.push(new xi(Q[b],q))}return K}; g.A.Pf=function(Z){for(var Q=Z.range.start+Z.j,z=0;z<this.index.h4()&&Q>=this.index.yA(z+1);)z++;return this.sC(z,Q,Z.S).AG}; g.A.x$=function(Z){Z.sN();return this.E6()?!0:Z.range.end+1<this.info.contentLength}; g.A.vK=function(Z,Q){this.x$(Z);if(!this.E6())return Q=Ia(Z.range.end+1,Q),Q.end+1>this.info.contentLength&&(Q=new cz(Q.start,this.info.contentLength-1)),new Ra([new yT(4,Z.Y,Q,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,Z.clipId)]);Z.type===4&&(Z=this.Pf(Z),Z=Z[Z.length-1]);var z=0,K=Z.range.start+Z.j+Z.S;Z.type===3&&(Z.sN(),z=Z.rr,K===Z.range.end+1&&(z+=1));return this.sC(z,K,Q)}; g.A.u3=function(){return null}; g.A.Ou=function(Z,Q,z){Q=Q===void 0?!1:Q;Z=this.index.ON(Z);Q&&(Z=Math.min(this.index.h4(),Z+1));return this.sC(Z,this.index.yA(Z),0,z)}; g.A.Is=function(){return!0}; g.A.cL=function(){return!0}; g.A.Ux=function(){return!1}; g.A.Yg=function(){return this.indexRange.length+this.initRange.length}; g.A.Op=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var Fb={},M8G=(Fb.COLOR_PRIMARIES_BT709="bt709",Fb.COLOR_PRIMARIES_BT2020="bt2020",Fb.COLOR_PRIMARIES_UNKNOWN=null,Fb.COLOR_PRIMARIES_UNSPECIFIED=null,Fb),eK={},cxM=(eK.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",eK.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",eK.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",eK.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",eK.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,eK.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,eK);g.Q3.prototype.getName=function(){return this.name}; g.Q3.prototype.getId=function(){return this.id}; g.Q3.prototype.getIsDefault=function(){return this.isDefault}; g.Q3.prototype.toString=function(){return this.name}; g.Q3.prototype.getName=g.Q3.prototype.getName;g.Q3.prototype.getId=g.Q3.prototype.getId;g.Q3.prototype.getIsDefault=g.Q3.prototype.getIsDefault;var yxd=/action_display_post/;var dBd,bI,q1;g.L(rz,g.rV);g.A=rz.prototype;g.A.isLoading=function(){return this.state===1}; g.A.Yz=function(){return this.state===3}; g.A.Krf=function(Z){var Q=Z.getElementsByTagName("Representation");if(Z.getElementsByTagName("SegmentList").length>0||Z.getElementsByTagName("SegmentTemplate").length>0){this.fd=this.j=!0;this.timeline||(this.timeline=new KVx);Ax4(this.timeline,Z);this.publish("refresh");for(Z=0;Z<Q.length;Z++){var z=kuu(this,Q[Z]);if(!this.Y[z.id]){var K=gz(OX(Q[Z],"BaseURL").textContent),b=OX(Q[Z],"Initialization"),q=UX(b,"sourceURL");b=mS(UX(b,"range"));this.Y[z.id]=new Mo(K,z,q,b)}z=this.Y[z.id];K=UX(Q[Z],"id", "AdaptationSet");K=K!==""?K:UX(Q[Z],"mimetype","AdaptationSet");q=this.timeline;q=q.S[z.info.id]||q.j[K]||q.Y||null;K=q.Y;!this.T&&q.getStreamTimeOffset()&&(this.T=q.getStreamTimeOffset());if(q.L){b=[];K=g.n(K);for(var r=K.next();!r.done;r=K.next()){r=r.value;var D=z.info.id,v=z.info.Yq*8,Y=r.rr;var X=r.startSecs;var S=q.T.split("$$");for(var T=0;T<S.length;T++)S[T]=S[T].replace("$RepresentationID$",D),S[T]=S[T].replace("$Number$",Y.toString()),S[T]=S[T].replace("$Bandwidth$",v.toString()),S[T]=S[T].replace("$Time$", X.toString());b.push(new I6(r.rr,r.startSecs,r.Nn,r.Y,S.join("$"),null,r.j))}K=b}else{q=bB(OX(Q[Z],"SegmentList").getElementsByTagName("SegmentURL"),q.K);b=[];for(r=0;r<q.length;r++){D=b;v=D.push;Y=K[r];X=void 0;T=q[r];S=T.getAttribute("media");if(T=T.getAttribute("mediaRange")){var f=T.split("-");f[1]&&Number(f[1])>=0?X=mS(T):S=S+"?range="+T}v.call(D,new I6(Y.rr,Y.startSecs,Y.Nn,Y.Y,S,X,Y.j))}K=b}z.update(K,this.isLive,this.s$)}jVD(this.timeline);return!0}this.duration=Zsf(UX(Z,"mediaPresentationDuration")); a:{for(Z=0;Z<Q.length;Z++){q=Q[Z];z=kuu(this,q);K=gz(OX(q,"BaseURL").textContent);b=OX(q,"SegmentBase");q=mS(b.attributes.getNamedItem("indexRange").value);b=mS(b.getElementsByTagName("Initialization")[0].attributes.getNamedItem("range").value);z=new Zd(K,z,b,q);if(!z){Q=!1;break a}KD(this,z)}Q=!0}return Q}; g.A.refresh=function(){if(!this.isLoading()&&!this.FI()){var Z=g.BK(this.sourceUrl,{start_seq:eRG(this).toString()});xBd(this,Z).RX(function(){})}}; g.A.resume=function(){uFW(this)}; g.A.TJ=function(){if(this.isManifestless&&this.W&&X9(this))return X9(this);var Z=this.Y,Q=!1,z=NaN,K=NaN,b;for(b in Z){var q=Z[b],r=q.index;r.isLoaded()&&!ZR(q.info)&&(q.W&&(Q=!0),r=r.Hr(),q.info.WN()&&(isNaN(z)||r<z)?z=r:q.info.Gy()&&(isNaN(K)||r<K)&&(K=r))}return Q||isNaN(K)?z:Math.min(z,K)}; g.A.Ze=function(){if(this.isManifestless){if(S2(this))return S2(this);if(this.fL){var Z=this.RC(this.TJ());if(Z&&(Z-=this.fL,Z>0))return this.TJ()-Z}}Z=this.Y;for(var Q in Z){var z=Z[Q].index;if(z.isLoaded()&&!ZR(Z[Q].info))return z.Ze()}return 0}; g.A.getStreamTimeOffset=function(){return this.T}; g.A.RC=function(Z){for(var Q in this.Y){var z=this.Y[Q].index;if(z.isLoaded()){var K=z.ON(Z),b=z.RC(K);if(b)return b+Z-z.getStartTime(K)}}return NaN}; var nD=null,PpH,cg=!((PpH=navigator.mediaCapabilities)==null||!PpH.decodingInfo),V89={commentary:1,alternate:2,dub:3,main:4};var LP=new Set,IW=new Map;dz.prototype.clone=function(Z){return new dz(this.flavor,Z,this.j,this.experiments)}; dz.prototype.gy=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; dz.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 RUo={},M1=(RUo.playready=["com.youtube.playready","com.microsoft.playready"],RUo.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],RUo),wN={},BP9=(wN.widevine="DRM_SYSTEM_WIDEVINE",wN.fairplay="DRM_SYSTEM_FAIRPLAY",wN.playready="DRM_SYSTEM_PLAYREADY",wN),EF={},Cp0=(EF.widevine=1,EF.fairplay=2,EF.playready=3,EF);Oa.prototype.PP=function(Z,Q){Q=Q===void 0?1:Q;this.XN+=Q;this.j+=Z;Z/=Q;for(var z=0;z<Ua.length&&!(Z<Ua[z]);++z)this.Y[z]+=Q}; Oa.prototype.toString=function(){return""}; var Ua=[20,100,500,2E3];g.A=qNG.prototype;g.A.isActive=function(){return!0}; g.A.E4=function(Z,Q){var z=this;if(Q){var K={},b;for(b in Q)K={Cw:void 0,uM:void 0},Q.hasOwnProperty(b)&&(K.Cw=Z.prototype[b],K.uM=Q[b],Z.prototype[b]=function(q){return function(){var r=g.iu.apply(0,arguments),D=(0,g.Nm)();r=q.Cw.apply(this,r);return oW(z,r,q.uM,D)}}(K))}}; g.A.hS=function(Z,Q){if(Q){var z=this,K={},b;for(b in Q)K={uZ:void 0,qS:void 0},Q.hasOwnProperty(b)&&(K.qS=Z.prototype[b],K.uZ=Q[b],Z.prototype[b]=function(q){return function(){var r=g.iu.apply(0,arguments),D=this,v=(0,g.Nm)(),Y=q.qS.apply(D,r);return oW(z,Y,null,v,function(X){return q.uZ.apply(D,[X].concat(r))})}}(K))}}; g.A.QX=function(Z,Q){var z=this;return function(){var K=g.iu.apply(0,arguments),b=(0,g.Nm)();K=Q.apply(null,K);return oW(z,K,Z,b)}}; g.A.TM=function(){return new bgr}; g.A.BO=function(Z,Q,z){z=z===void 0?1:z;Q instanceof bgr&&(rkx(this,Z,(0,g.Nm)()-Q.startTimeMs,z),Q.Y=!0)}; g.A.Be=function(Z,Q){var z=(0,g.Nm)();Q=Q();return oW(this,Q,Z,z)}; g.A.Jy=function(){var Z={},Q;for(Q in this.Y)if(this.Y.hasOwnProperty(Q)){var z=this.Y[Q];if(z.XN===0)z=null;else{for(var K=Math.ceil(z.XN).toFixed(0)+"."+z.j.toFixed(0),b=0;b<Ua.length;++b)if(z.Y[b]>0)K+="."+Ua[b].toFixed(0)+"_"+z.Y[b].toFixed(0);else break;z=K}z&&(Z[Q]=z)}this.Y=new K34;return Z}; g.A.toString=function(){return""};g.A=Dyn.prototype;g.A.isActive=function(){return!1}; g.A.E4=function(){}; g.A.hS=function(){}; g.A.QX=function(Z,Q){return Q}; g.A.TM=function(){}; g.A.BO=function(){}; g.A.Be=function(Z,Q){return Q()}; g.A.Jy=function(){return{}}; g.A.toString=function(){return""};var lL,pLz,H9E,Mxw,U_U,O9z,sE,aq,eT,lQd,kQ;lL=new Dyn;pLz=!!+et("html5_enable_profiler");H9E=!!+et("html5_onesie_enable_profiler");Mxw=!!+et("html5_offline_encryption_enable_profiler");U_U=!!+et("html5_performance_impact_profiling_timer_ms");O9z=!!+et("html5_drm_enable_profiler");sE=pLz||H9E||Mxw||U_U||O9z?new qNG:lL;g.UA=pLz?sE:lL;aq=H9E?sE:lL;eT=Mxw?sE:lL;lQd=U_U?sE:lL;kQ=O9z?sE:lL;var V3;g.L(Bg,g.O); Bg.prototype.initialize=function(Z,Q){for(var z=this,K=g.n(Object.keys(Z)),b=K.next();!b.done;b=K.next()){b=g.n(Z[b.value]);for(var q=b.next();!q.done;q=b.next())if(q=q.value,q.NR)for(var r=g.n(Object.keys(q.NR)),D=r.next();!D.done;D=r.next()){var v=D.value;D=v;v=M1[v];!v&&this.V("html5_enable_vp9_fairplay")&&D==="fairplay"&&(v=["com.youtube.fairplay.sbdl"]);if(v){v=g.n(v);for(var Y=v.next();!Y.done;Y=v.next())Y=Y.value,this.S[Y]=this.S[Y]||new dz(D,Y,q.NR[D],this.B7.experiments),this.Y[D]=this.Y[D]|| {},this.Y[D][q.mimeType]=!0}}}uV()&&(this.S["com.youtube.fairplay"]=new dz("fairplay","com.youtube.fairplay","",this.B7.experiments),this.V("html5_enable_vp9_fairplay")||(this.Y.fairplay=this.Y.fairplay||{},this.Y.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.Y.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.j=zlf(Q,this.useCobaltWidevine,this.V("html5_enable_safari_fairplay"),this.V("html5_enable_vp9_fairplay")).filter(function(X){return!!z.S[X]})}; Bg.prototype.V=function(Z){return this.B7.experiments.XI(Z)};var oKY={"":"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"};TuD.prototype.V=function(Z){return this.experiments.XI(Z)};var F3n={RED:"red",QPF:"white"};flx.prototype.XI=function(Z){Z=this.flags[Z];JSON.stringify(Z);return Z==="true"};var nof=Promise.resolve(),Jk0=window.queueMicrotask?window.queueMicrotask.bind(window):ckx;F9.prototype.canPlayType=function(Z,Q){Z=Z.canPlayType?Z.canPlayType(Q):!1;th?Z=Z||BDz[Q]:d5===2.2?Z=Z||WEY[Q]:VC()&&(Z=Z||VxJ[Q]);return!!Z}; F9.prototype.isTypeSupported=function(Z){return this.SJ?window.cast.receiver.platform.canDisplayType(Z):CI(Z)}; var WEY={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},VxJ={"application/x-mpegURL":"maybe"},BDz={"application/x-mpegURL":"maybe"};g.L(s_,g.rV);s_.prototype.add=function(Z,Q){if(!this.items[Z]&&(Q.Ys||Q.cI||Q.fl)){var z=this.items,K=Q;Object.isFrozen&&!Object.isFrozen(Q)&&(K=Object.create(Q),Object.freeze(K));z[Z]=K;this.publish("vast_info_card_add",Z)}}; s_.prototype.remove=function(Z){var Q=this.get(Z);delete this.items[Z];return Q}; s_.prototype.get=function(Z){return this.items[Z]||null}; s_.prototype.isEmpty=function(){return g.Ne(this.items)};g.L(Z1,g.cV);Z1.prototype.Y=function(Z,Q){return g.cV.prototype.Y.call(this,Z,Q)}; Z1.prototype.j=function(Z,Q,z){var K=this;return g.C(function(b){return b.Y==1?g.P(b,g.cV.prototype.j.call(K,Z,Q,z),2):b.return(b.j)})}; g.L(Qf,g.mO);Qf.prototype.encrypt=function(Z,Q){return g.mO.prototype.encrypt.call(this,Z,Q)};var Kn;ba.prototype.add=function(Z){if(this.pos+20>this.data.length){var Q=new Uint8Array(this.data.length*2);Q.set(this.data);this.data=Q}for(;Z>31;)this.data[this.pos++]=Kn[(Z&31)+32],Z>>=5;this.data[this.pos++]=Kn[Z|0]}; ba.prototype.pZ=function(){return g.dE(this.data.subarray(0,this.pos))}; ba.prototype.reset=function(){this.pos=0};r5.prototype.IF=function(Z,Q){var z=Math.pow(this.alpha,Z);this.Y=Q*(1-z)+z*this.Y;this.j+=Z}; r5.prototype.Wx=function(){return this.Y/(1-Math.pow(this.alpha,this.j))};AC.prototype.IF=function(Z,Q){for(var z=0;z<10;z++){var K=this.Y[z],b=K+(z===0?Z:0),q=1*Math.pow(2,z);if(b<=q)break;K=Math.min(1,(b-q*.5)/K);for(b=0;b<16;b++)q=this.values[z*16+b]*K,this.values[(z+1)*16+b]+=q,this.Y[z+1]+=q,this.values[z*16+b]-=q,this.Y[z]-=q}K=z=0;b=8192;Q>8192&&(z=Math.ceil(Math.log(Q/8192)/Math.log(2)),K=8192*Math.pow(2,z-1),b=K*2);z+2>16?this.values[15]+=Z:(Q=(Q-K)/(b-K),this.values[z]+=Z*(1-Q),this.values[z+1]+=Z*Q);this.Y[0]+=Z}; AC.prototype.Wx=function(){var Z=Z===void 0?this.j:Z;var Q=Q===void 0?.02:Q;var z=z===void 0?.98:z;for(var K=this.S,b=0;b<16;b++)K[b]=this.values[b];b=this.Y[0];for(var q=1;q<11;q++){var r=this.Y[q];if(r===0)break;for(var D=Math.min(1,(Z-b)/r),v=0;v<16;v++)K[v]+=this.values[q*16+v]*D;b+=r*D;if(D<1)break}for(q=Z=r=0;q<16;q++){D=r+K[q]/b;Z+=Math.max(0,Math.min(D,z)-Math.max(r,Q))*(q>0?8192*Math.pow(2,q-1):0);if(D>z)break;r=D}return Z/(z-Q)};jY.prototype.IF=function(Z,Q){Z=Math.min(this.Y,Math.max(1,Math.round(Z*this.resolution)));Z+this.j>=this.Y&&(this.S=!0);for(;Z--;)this.values[this.j]=Q,this.j=(this.j+1)%this.Y;this.jo=!0}; jY.prototype.percentile=function(Z){var Q=this;if(!this.S&&this.j===0)return 0;this.jo&&(g.DI(this.L,function(z,K){return Q.values[z]-Q.values[K]}),this.jo=!1); return this.values[this.L[Math.round(Z*((this.S?this.Y:this.j)-1))]]||0}; jY.prototype.Wx=function(){return this.K?(this.percentile(this.W-this.K)+this.percentile(this.W)+this.percentile(this.W+this.K))/3:this.percentile(this.W)};g.L(D1,g.O);D1.prototype.Zu=function(){var Z;(Z=this.tG)==null||Z.start();if(fn(this)&&this.policy.X){var Q;(Q=this.lh)==null||Q.Ye()}};OgW.prototype.V=function(Z){return this.experiments.XI(Z)};g.L(Bux,g.O);var t9d="blogger gac books docs duo flix google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),son={Nvu:"caoe",sqJ:"capsv",jFY:"cbrand",iMg:"cbr",w8u:"cbrver",K$p:"cchip",rtJ:"ccappver",v87:"ccrv",L9g:"cfrmver",ItB:"c",i4J:"cver",jXu:"ctheme",pkI:"cplayer",jR7:"cmodel",O6g:"cnetwork",F3f:"cos",cgI:"cosver",xE$:"cplatform",p2p:"crqyear"};g.L(Mx,g.O);g.A=Mx.prototype;g.A.V=function(Z){return this.experiments.XI(Z)}; g.A.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.A.getVideoUrl=function(Z,Q,z,K,b,q,r){Q={list:Q};z&&(b?Q.time_continue=z:Q.t=z);z=r?"music.youtube.com":g.O_(this);b=z==="www.youtube.com";!q&&K&&b?q="https://youtu.be/"+Z:g.ia(this)?(q="https://"+z+"/fire",Q.v=Z):(q&&b?(q=this.protocol+"://"+z+"/shorts/"+Z,K&&(Q.feature="share")):(q=this.protocol+"://"+z+"/watch",Q.v=Z),th&&(Z=oPx())&&(Q.ebc=Z));return g.BK(q,Q)}; g.A.getVideoEmbedCode=function(Z,Q,z,K){Q="https://"+g.O_(this)+"/embed/"+Q;K&&(Q=g.BK(Q,{list:K}));K=z.width;z=z.height;Q=wW(Q);Z=wW(Z!=null?Z:"YouTube video player");return'<iframe width="'+K+'" height="'+z+'" src="'+Q+'" title="'+(Z+'" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>')}; g.A.supportsGaplessAudio=function(){return g.R3&&!th&&BX()>=74||g.pD&&g.fG(68)?!0:!1}; g.A.supportsGaplessShorts=function(){return!this.V("html5_enable_short_gapless")||this.Du||g.Lc?!1:!0}; g.A.getPlayerType=function(){return this.Y.cplayer}; g.A.aT=function(){return this.aC}; var Kqf=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],llf=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],QoM=[19];var Zh={},rVG=(Zh["140"]={numChannels:2},Zh["141"]={numChannels:2},Zh["251"]={audioSampleRate:48E3,numChannels:2},Zh["774"]={audioSampleRate:48E3,numChannels:2},Zh["380"]={numChannels:6},Zh["328"]={numChannels:6},Zh["773"]={},Zh),Q8={},bJx=(Q8["1"]='video/mp4; codecs="av01.0.08M.08"',Q8["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',Q8["1e"]='video/mp4; codecs="av01.0.08M.08"',Q8["9"]='video/webm; codecs="vp9"',Q8["("]='video/webm; codecs="vp9"',Q8["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"', Q8.h='video/mp4; codecs="avc1.64001e"',Q8.H='video/mp4; codecs="avc1.64001e"',Q8.o='audio/webm; codecs="opus"',Q8.a='audio/mp4; codecs="mp4a.40.2"',Q8.ah='audio/mp4; codecs="mp4a.40.2"',Q8.mac3='audio/mp4; codecs="ac-3"; channels=6',Q8.meac3='audio/mp4; codecs="ec-3"; channels=6',Q8.i='audio/mp4; codecs="iamf.001.001.Opus"',Q8),zx={},q5D=(zx["337"]={width:3840,height:2160,bitrate:3E7,fps:30},zx["336"]={width:2560,height:1440,bitrate:15E6,fps:30},zx["335"]={width:1920,height:1080,bitrate:75E5,fps:30}, zx["702"]={width:7680,height:4320,bitrate:4E7,fps:60},zx["701"]={width:3840,height:2160,bitrate:2E7,fps:60},zx["700"]={width:2560,height:1440,bitrate:1E7,fps:60},zx["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},zx["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},zx["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},zx["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"}, zx["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},zx["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},zx["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},zx["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},zx["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},zx["315"]={width:3840,height:2160,bitrate:2E7,fps:60},zx["308"]={width:2560, height:1440,bitrate:1E7,fps:60},zx["303"]={width:1920,height:1080,bitrate:5E6,fps:60},zx["302"]={width:1280,height:720,bitrate:25E5,fps:60},zx["299"]={width:1920,height:1080,bitrate:75E5,fps:60},zx["298"]={width:1280,height:720,bitrate:35E5,fps:60},zx["571"]={width:7680,height:4320,bitrate:3E7,fps:60},zx["401"]={width:3840,height:2160,bitrate:15E6,fps:60},zx["400"]={width:2560,height:1440,bitrate:75E5,fps:60},zx["399"]={width:1920,height:1080,bitrate:2E6,fps:60},zx["398"]={width:1280,height:720,bitrate:1E6, fps:60},zx["397"]={width:854,height:480,bitrate:4E5,fps:30},zx["396"]={width:640,height:360,bitrate:25E4,fps:30},zx["787"]={width:1080,height:608,bitrate:2E5,fps:30},zx["788"]={width:1080,height:608,bitrate:4E5,fps:30},zx["572"]={width:7680,height:4320,bitrate:3E7,fps:60},zx["555"]={width:3840,height:2160,bitrate:15E6,fps:60},zx["554"]={width:2560,height:1440,bitrate:75E5,fps:60},zx["553"]={width:1920,height:1080,bitrate:2E6,fps:60},zx["552"]={width:1280,height:720,bitrate:1E6,fps:60},zx["551"]={width:854, height:480,bitrate:4E5,fps:30},zx["550"]={width:640,height:360,bitrate:25E4,fps:30},zx["313"]={width:3840,height:2160,bitrate:8E6,fps:30},zx["271"]={width:2560,height:1440,bitrate:4E6,fps:30},zx["248"]={width:1920,height:1080,bitrate:2E6,fps:30},zx["247"]={width:1280,height:720,bitrate:15E5,fps:30},zx["244"]={width:854,height:480,bitrate:52E4,fps:30},zx["243"]={width:640,height:360,bitrate:28E4,fps:30},zx["137"]={width:1920,height:1080,bitrate:4E6,fps:30},zx["136"]={width:1280,height:720,bitrate:3E6, fps:30},zx["135"]={width:854,height:480,bitrate:1E6,fps:30},zx["385"]={width:1920,height:1080,bitrate:6503313,fps:60},zx["376"]={width:1280,height:720,bitrate:5706960,fps:60},zx["384"]={width:1280,height:720,bitrate:3660979,fps:60},zx["225"]={width:1280,height:720,bitrate:5805E3,fps:30},zx["224"]={width:1280,height:720,bitrate:453E4,fps:30},zx["145"]={width:1280,height:720,bitrate:2682052,fps:30},zx);g.A=Q0.prototype;g.A.getInfo=function(){return this.Y}; g.A.oN=function(){return null}; g.A.ob=function(){var Z=this.oN();return Z?(Z=g.bV(Z.zW),Number(Z.expire)):NaN}; g.A.i$=function(){}; g.A.getHeight=function(){return this.Y.video.height};vt0.prototype.build=function(){X4G(this);var Z=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],Q={};a:if(this.Y)var z=this.Y;else{z="";for(var K=g.n(this.S),b=K.next();!b.done;b=K.next())if(b=b.value,b.Qw){if(b.Qw.getIsDefault()){z=b.Qw.getId();break a}z||(z=b.Qw.getId())}}K=g.n(this.S);for(b=K.next();!b.done;b=K.next())if(b=b.value,this.K||!b.Qw||b.Qw.getId()===z)Q[b.itag]||(Q[b.itag]=[]),Q[b.itag].push(b);z=g.n(this.j);for(K=z.next();!K.done;K=z.next())if(K=K.value,b=Q[K.Y]){b=g.n(b);for(var q=b.next();!q.done;q= b.next()){var r=Z,D=r.push;q=q.value;var v="#EXT-X-MEDIA:TYPE=AUDIO,",Y="YES",X="audio";if(q.Qw){X=q.Qw;var S=X.getId().split(".")[0];S&&(v+='LANGUAGE="'+S+'",');(this.Y?this.Y===X.getId():X.getIsDefault())||(Y="NO");X=X.getName()}S="";K!==null&&(S=K.itag.toString());S=KU(this,q.url,S);v=v+('NAME="'+X+'",DEFAULT='+(Y+',AUTOSELECT=YES,GROUP-ID="'))+(Y5G(q,K)+'",URI="'+(S+'"'));D.call(r,v)}}z=g.n(this.L);for(K=z.next();!K.done;K=z.next())K=K.value,b=kdR,K=(r=K.Qw)?'#EXT-X-MEDIA:URI="'+KU(this,K.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+b+'",LANGUAGE="'+r.getId()+'",NAME="'+r.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,K&&Z.push(K);z=this.L.length>0?kdR:void 0;K=g.n(this.j);for(b=K.next();!b.done;b=K.next())b=b.value,D=Q[b.Y],r=void 0,((r=D)==null?void 0:r.length)>0&&(r=b,D=D[0],D="#EXT-X-STREAM-INF:BANDWIDTH="+(r.bitrate+D.bitrate)+',CODECS="'+(r.codecs+","+D.codecs+'",RESOLUTION=')+(r.width+"x"+r.height+',AUDIO="')+(Y5G(D,r)+'",')+(z?'SUBTITLES="'+z+'",':"")+"CLOSED-CAPTIONS=NONE",r.fps>1&&(D+= ",FRAME-RATE="+r.fps),r.C2&&(D+=",VIDEO-RANGE="+r.C2),Z.push(D),Z.push(KU(this,b.url,"")));return Z.join("\n")}; var kdR="text";g.L(b8,Q0);b8.prototype.ob=function(){return this.expiration}; b8.prototype.oN=function(){if(!this.zW||this.zW.FI()){var Z=this.j.build();Z="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(Z);this.zW=new VH(Z)}return this.zW};g.L(qk,Q0);qk.prototype.oN=function(){return new VH(this.j.sS())}; qk.prototype.i$=function(){this.j=co(this.j)};g.L(rv,Q0);rv.prototype.oN=function(){return new VH(this.j)};var Ko={},Ijn=(Ko.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",Ko.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",Ko.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",Ko);g.A=g.AF.prototype;g.A.getId=function(){return this.id}; g.A.getName=function(){return this.name}; g.A.isServable=function(){return this.Y}; g.A.sS=function(){return this.url}; g.A.getXtags=function(){return this.xtags}; g.A.toString=function(){return this.languageCode+": "+g.jH(this)+" - "+this.vssId+" - "+(this.captionId||"")}; g.A.Tg=function(Z){return Z?this.toString()===Z.toString():!1}; g.A.hH=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var Gf4={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},iJ0={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},ajM=/^(\d*)_((\d*)_?(\d*))$/;var RXf={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},C1G={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var b3={},uGJ=(b3.ALWAYS=1,b3.BY_REQUEST=3,b3.UNKNOWN=void 0,b3),qt={},x_E=(qt.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",qt.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",qt.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",qt.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",qt);var dFx; dFx=function(Z){for(var Q=Object.keys(Z),z={},K=0;K<Q.length;K++){var b=Q[K];typeof Z[b]==="function"&&(z[b]=Z[b])}var q=Object.keys(z);try{dOx(z)}catch(D){var r=D}return function(D,v){D=D===void 0?{}:D;if(r)throw r;for(var Y=!1,X={},S=0;S<q.length;S++){var T=q[S],f=D[T],h=(0,z[T])(f,v);if(typeof h==="undefined")throw D=v&&v.type,Error("When called with an action of type "+(D?'"'+String(D)+'"':"(unknown type)")+', the slice reducer for key "'+T+'" 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.');X[T]= h;Y=Y||h!==f}return(Y=Y||q.length!==Object.keys(D).length)?X:D}}({entities:function(Z,Q){Z=Z===void 0?{}:Z; return OlM(Z,Q)}}); g.wv=new Sd;Ts.prototype.toString=function(){return this.type+this.id};g.hF.prototype.uI=function(Z){Z=Z||"hqdefault.jpg";var Q=this.U[Z];if(Q)return Q;if(Z==="sddefault.jpg"||Z==="hq720.jpg"||Z==="maxresdefault.jpg")return Q;if(this.Y)return oM(this.B7,this.Y,Z)}; g.hF.prototype.qN=function(){return this.B7.getVideoUrl(this.videoId,this.playlistId)};g.LU.prototype.uI=function(Z){Z||(Z="hqdefault.jpg");var Q=this.U[Z];return Q?Q:Z==="pop1.jpg"||Z==="pop2.jpg"||Z==="sddefault.jpg"||Z==="hq720.jpg"||Z==="maxresdefault.jpg"?Q:oM(this.B7,this.videoId,Z)}; g.LU.prototype.qN=function(Z){return this.watchUrl||this.B7.getVideoUrl(this.videoId,void 0,void 0,void 0,void 0,Z)};var m1=void 0;yXM("LMS",function(){return g.C(function(Z){return Z.return(g.IO())})});var Nk;Nk=0;g.zbf=/^([\w\-_]+)\|(\d+)(;[\w\-_]+)?\|(\d+)\|(\d+)$/;yXM("LMDB",function(){var Z,Q;return g.C(function(z){if(z.Y==1)return g.P(z,g.lQ(),2);if(z.Y!=3){Z=z.j;if(!Z)throw g.cs("edd");return g.P(z,g.dv(Z),3)}Q=z.j;return z.return(g.Ps(Q,["index","media","captions"],{mode:"readonly",xq:!0},function(K){var b={};K=[g.Mm(K.objectStore("index"),{},function(q){b[q.cursor.key]=q.getValue();return g.UI(q)}), Nd9(K.objectStore("media")),Nd9(K.objectStore("captions"))];return g.Iw.all(K).then(function(q){var r=g.n(q);r.next();q=r.next().value;r=r.next().value;return{index:b,media:Ktu(q||[]),captions:r}})}))})});g.L(i8,g.rV);i8.prototype.gr=function(){this.Y&&(this.Y=this.Y.onload=null);g.rV.prototype.gr.call(this)};g.A=g.CU.prototype;g.A.getHeight=function(){return this.height}; g.A.DQ=Qx(2);g.A.XC=function(){return this.frameCount}; g.A.isDefault=function(){return this.S.indexOf("default")!==-1}; g.A.isLoaded=function(Z){return this.loaded.has(Z)}; g.A.sS=function(Z){var Q=this.W;Q=Q.replace("$N",this.S);Q=Q.replace("$L",this.level.toString());Q=Q.replace("$M",Z.toString());this.signature&&(Q=g.BK(Q,{sigh:this.signature}));return zQ(Q)}; g.A.cF=function(Z){var Q=this.XC()-1;return g.Al(this.Y===0?Math.round(Z*this.frameCount/this.videoLength):Math.round(Z*1E3/this.Y),0,Q)}; g.A.uH=function(){return this.frameCount-1}; g.A.kO=function(){return this.frameCount?0:-1}; g.A.Z9=function(){};g.L(pU,i8);pU.prototype.j=function(Z,Q){var z=[];Z=Z.split("|");for(var K=Z[0],b=1;b<Z.length;b++){var q=this.L(b-1,K,Z[b],Q);(this.T||q.getHeight()<180)&&z.push(q)}return z}; pU.prototype.L=function(Z,Q,z,K){return new g.CU(Z,Q,z,K)};g.L(H1,g.CU);g.A=H1.prototype;g.A.XC=function(){return this.j.Fp()}; g.A.cF=function(Z){var Q=this.rows*this.columns*this.L,z=this.j,K=z.h4();Z=z.ON(Z);return Z>K-Q?-1:Z}; g.A.uH=function(){return this.j.h4()}; g.A.kO=function(){return this.j.pC()}; g.A.Z9=function(Z){this.j=Z};g.L(Mk,pU);Mk.prototype.j=function(Z,Q){return pU.prototype.j.call(this,"$N|"+Z,Q)}; Mk.prototype.L=function(Z,Q,z){return new H1(Z,Q,z,this.isLive)};var fAX=[],kF=new Set;g.L(g.OK,g.rV);g.A=g.OK.prototype; g.A.setData=function(Z){Z=Z||{};var Q=Z.errordetail;Q!=null&&(this.errorDetail=Q);var z=Z.errorcode;z!=null?this.errorCode=z:Z.status==="fail"&&(this.errorCode="auth");var K=Z.reason;K!=null&&(this.errorReason=K);var b=Z.subreason;b!=null&&(this.Uq=b);this.V("html5_enable_ssap_entity_id")||this.clientPlaybackNonce||(this.clientPlaybackNonce=Z.cpn||(this.B7.aT()?"r"+g.c9(15):g.c9(16)));this.qB=zM(this.B7.qB,Z.livemonitor);vdn(this,Z);var q=Z.raw_player_response;if(q)this.Hn=q;else{var r=Z.player_response; r&&(q=JSON.parse(r))}if(this.V("html5_enable_ssap_entity_id")){var D=Z.cached_load;D&&(this.HH=zM(this.HH,D));if(!this.clientPlaybackNonce){var v=Z.cpn;v?(this.rL("ssei","shdc"),this.clientPlaybackNonce=v):this.clientPlaybackNonce=this.B7.aT()?"r"+g.c9(15):g.c9(16)}}q&&(this.playerResponse=q);if(this.playerResponse){var Y=this.playerResponse.annotations;if(Y)for(var X=g.n(Y),S=X.next();!S.done;S=X.next()){var T=S.value.playerAnnotationsUrlsRenderer;if(T){T.adsOnly&&(this.wM=!0);var f=T.loadPolicy; f&&(this.annotationsLoadPolicy=uGJ[f]);var h=T.invideoUrl;h&&(this.s$=zQ(h));break}}var m=this.playerResponse.attestation;m&&HJG(this,m);var J=this.playerResponse.cotn;J&&(this.cotn=J);var d=this.playerResponse.heartbeatParams;if(d){jdu(this)&&(this.ir=!0);var G=d.heartbeatToken;G&&(this.drmSessionId=d.drmSessionId||"",this.heartbeatToken=G,this.Sn=Number(d.intervalMilliseconds),this.uv=Number(d.maxRetries),this.x9=!!d.softFailOnError,this.Ea=!!d.useInnertubeHeartbeatsForDrm,this.qy=!0);this.heartbeatServerData= d.heartbeatServerData;var R;this.FB=!((R=d.heartbeatAttestationConfig)==null||!R.requiresAttestation)}var U=this.playerResponse.messages;U&&otX(this,U);var B=this.playerResponse.overlay;if(B){var e=B.playerControlsOverlayRenderer;if(e)if(Wqu(this,e.controlBgHtml),e.mutedAutoplay){var F=g.V(e.mutedAutoplay,zJJ);if(F&&F.endScreen){var KX=g.V(F.endScreen,KUE);KX&&KX.text&&(this.KG=g.SN(KX.text))}}else this.mutedAutoplay=!1}var rf=this.playerResponse.playabilityStatus;if(rf){var sG=rf.backgroundability; sG&&sG.backgroundabilityRenderer.backgroundable&&(this.backgroundable=!0);var k,l;if((k=rf.offlineability)==null?0:(l=k.offlineabilityRenderer)==null?0:l.offlineable)this.offlineable=!0;var c=rf.contextParams;c&&(this.contextParams=c);var u=rf.pictureInPicture;u&&u.pictureInPictureRenderer.playableInPip&&(this.pipable=!0);rf.playableInEmbed&&(this.allowEmbed=!0);var o0=rf.ypcClickwrap;if(o0){var nz=o0.playerLegacyDesktopYpcClickwrapRenderer,gX=o0.ypcRentalActivationRenderer;if(nz)this.N0=nz.durationMessage|| "",this.Vr=!0;else if(gX){var df=gX.durationMessage;this.N0=df?g.SN(df):"";this.Vr=!0}}var wf=rf.errorScreen;if(wf){if(wf.playerLegacyDesktopYpcTrailerRenderer){var zJ=wf.playerLegacyDesktopYpcTrailerRenderer;this.uE=zJ.trailerVideoId||"";var $$=wf.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var y=$$&&$$.ypcTrailerRenderer}else if(wf.playerLegacyDesktopYpcOfferRenderer)zJ=wf.playerLegacyDesktopYpcOfferRenderer;else if(wf.ypcTrailerRenderer){y=wf.ypcTrailerRenderer;var N=y.fullVideoMessage;this.sj= N?g.SN(N):"";var a,p;this.uE=((a=g.V(y,bGE))==null?void 0:(p=a.videoDetails)==null?void 0:p.videoId)||""}zJ&&(this.hV=zJ.itemTitle||"",zJ.itemUrl&&(this.bH=zJ.itemUrl),zJ.itemBuyUrl&&(this.Jc=zJ.itemBuyUrl),this.O_=zJ.itemThumbnail||"",this.zq=zJ.offerHeadline||"",this.AV=zJ.offerDescription||"",this.u7=zJ.offerId||"",this.KP=zJ.offerButtonText||"",this.Jp=zJ.offerButtonFormattedText||null,this.CC=zJ.overlayDurationMsec||NaN,this.sj=zJ.fullVideoMessage||"",this.Sc=!0);if(y){var M=g.V(y,bGE);if(M)this.kz= {raw_player_response:M};else{var ZD=g.V(y,$6m);this.kz=ZD?zr(ZD):null}this.Sc=!0}}}var bu=this.playerResponse.playbackTracking;if(bu){var qr=Z,H=SH(bu.googleRemarketingUrl);H&&(this.googleRemarketingUrl=H);var vG=SH(bu.youtubeRemarketingUrl);vG&&(this.youtubeRemarketingUrl=vG);var $W={},j4=SH(bu.ptrackingUrl);if(j4){var a0=$F(j4),Y$=a0.oid;Y$&&(this.LG=Y$);var UQ=a0.pltype;UQ&&(this.VP=UQ);var gl=a0.ptchn;gl&&(this.zE=gl);var kW=a0.ptk;kW&&(this.GB=encodeURIComponent(kW));var Um=a0.m;Um&&(this.bG= Um)}var Ar=SH(bu.qoeUrl);if(Ar){for(var aI=g.bV(Ar),VE=g.n(Object.keys(aI)),DM=VE.next();!DM.done;DM=VE.next()){var W8=DM.value,Om=aI[W8];aI[W8]=Array.isArray(Om)?Om.join(","):Om}this.x4=aI;var VX=aI.cat;VX&&(this.V("html5_enable_qoe_cat_list")?this.lc=this.lc.concat(VX.split(",")):this.tV=VX);var hE=aI.live;hE&&(this.wU=hE);var va=aI.drm_product;va&&(this.Bl=va)}var iq=SH(bu.videostatsPlaybackUrl);if(iq){var YK=$F(iq),al=YK.adformat;if(al){qr.adformat=al;var ab=this.N(),PJ=P1u(al,this.N_,ab.W,ab.T); PJ&&(this.adFormat=PJ)}var y_=YK.aqi;y_&&(qr.ad_query_id=y_);var Em=YK.autoplay;Em&&(this.h6=Em=="1",this.fC=Em=="1",wP(this,"vss"));var kr=YK.autonav;kr&&(this.isAutonav=kr=="1");var zw=YK.delay;zw&&(this.X7=sD(zw));var m_=YK.ei;m_&&(this.eventId=m_);if(YK.adcontext||al)this.h6=!0,wP(this,"ad");var Of=YK.feature;Of&&(this.Al=Of);var Yn=YK.list;Yn&&(this.playlistId=Yn);var Tu=YK.of;Tu&&(this.Bn=Tu);var fs=YK.osid;fs&&(this.osid=fs);var hx=YK.referrer;hx&&(this.referrer=hx);var bK=YK.sdetail;bK&&(this.St= bK);var K4=YK.ssrt;K4&&(this.xA=K4=="1");var qX=YK.subscribed;qX&&(this.subscribed=qX=="1",this.T.subscribed=qX);var rh=YK.uga;rh&&(this.userGenderAge=rh);var Ls=YK.upt;Ls&&(this.dk=Ls);var ns=YK.vm;ns&&(this.videoMetadata=ns);$W.playback=YK}var cd=SH(bu.videostatsWatchtimeUrl);if(cd){var mV=$F(cd),IV=mV.ald;IV&&(this.j5=IV);$W.watchtime=mV}var Jx=SH(bu.atrUrl);if(Jx){var aG=$F(Jx);$W.atr=aG}var IF=SH(bu.engageUrl);if(IF){var P0=$F(IF);$W.engage=P0}this.Jl=$W;if(bu.promotedPlaybackTracking){var kv= bu.promotedPlaybackTracking;kv.startUrls&&(this.nE=kv.startUrls);kv.firstQuartileUrls&&(this.m2=kv.firstQuartileUrls);kv.secondQuartileUrls&&(this.s2=kv.secondQuartileUrls);kv.thirdQuartileUrls&&(this.Xb=kv.thirdQuartileUrls);kv.completeUrls&&(this.MX=kv.completeUrls);kv.engagedViewUrls&&(kv.engagedViewUrls.length>1&&g.CO(new g.tW("There are more than one engaged_view_urls.")),this.NU=kv.engagedViewUrls[0])}}var A4=this.playerResponse.playerCueRanges;A4&&A4.length>0&&(this.cueRanges=A4);var yH=this.playerResponse.playerCueRangeSet; yH&&g.u8(this,yH);a:{var jI=this.playerResponse.adPlacements;if(jI)for(var dQ=g.n(jI),DU=dQ.next();!DU.done;DU=dQ.next()){var NB=void 0,Gu=void 0,ix=(NB=DU.value.adPlacementRenderer)==null?void 0:(Gu=NB.renderer)==null?void 0:Gu.videoAdTrackingRenderer;if(ix){var aV=ix;break a}}aV=null}var vO=aV;bu&&bu.promotedPlaybackTracking&&vO&&g.CO(new g.tW("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));vO&&(this.jn=!0);var Pd=this.playerResponse.playerAds;if(Pd)for(var RG= Z,RV=g.n(Pd),gh=RV.next();!gh.done;gh=RV.next()){var Cs=gh.value;if(Cs){var ps=Cs.playerLegacyDesktopWatchAdsRenderer;if(ps){var y$=ps.playerAdParams;if(y$){y$.autoplay=="1"&&(this.fC=this.h6=!0);this.S5=y$.encodedAdSafetyReason||null;y$.showContentThumbnail!==void 0&&(this.uw=!!y$.showContentThumbnail);RG.enabled_engage_types=y$.enabledEngageTypes;break}}}}var Lu=this.playerResponse.playerConfig;if(Lu){var d2=Lu.manifestlessWindowedLiveConfig;if(d2){var Yp=Number(d2.minDvrSequence),Lj=Number(d2.maxDvrSequence), nj=Number(d2.minDvrMediaTimeMs),cS=Number(d2.maxDvrMediaTimeMs),Hd=Number(d2.startWalltimeMs);Yp&&(this.uY=Yp);nj&&(this.Vp=nj/1E3,this.V("html5_sabr_parse_live_metadata_playback_boundaries")&&Qa(this)&&(this.Sb=nj/1E3));Lj&&(this.nZ=Lj);cS&&(this.ih=cS/1E3,this.V("html5_sabr_parse_live_metadata_playback_boundaries")&&Qa(this)&&(this.vk=cS/1E3));Hd&&(this.fL=Hd/1E3);(Yp||nj)&&(Lj||cS)&&(this.allowLiveDvr=this.isLivePlayback=this.c7=!0,this.Da=!1)}var bh=Lu.daiConfig;if(bh){if(bh.enableDai){this.PN= !0;var mp=bh.enableServerStitchedDai;mp&&(this.enableServerStitchedDai=mp);var C3=bh.enablePreroll;C3&&(this.enablePreroll=C3)}var MB;if(bh.daiType==="DAI_TYPE_SS_DISABLED"||((MB=bh.debugInfo)==null?0:MB.isDisabledUnpluggedChannel))this.tB=!0;bh.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(this.D1=!0)}var Rb=Lu.audioConfig;if(Rb){var UZ=Rb.loudnessDb;UZ!=null&&(this.CM=UZ);var XS=Rb.trackAbsoluteLoudnessLkfs;XS!=null&&(this.pm=XS);var SI=Rb.loudnessTargetLkfs;SI!=null&&(this.loudnessTargetLkfs=SI);Rb.audioMuted&& (this.zT=!0);Rb.muteOnStart&&(this.Ce=!0);var q9=Rb.loudnessNormalizationConfig;if(q9){q9.applyStatefulNormalization&&(this.applyStatefulNormalization=!0);q9.preserveStatefulLoudnessTarget&&(this.preserveStatefulLoudnessTarget=!0);var OZ=q9.minimumLoudnessTargetLkfs;OZ!=null&&(this.minimumLoudnessTargetLkfs=OZ);var H0=q9.maxStatefulTimeThresholdSec;H0!=null&&(this.maxStatefulTimeThresholdSec=H0)}this.V("web_player_audio_playback_from_audio_config")&&Rb.playAudioOnly&&(this.LK=!0)}var oV=Lu.playbackEndConfig; if(oV){var oz=oV.endSeconds,bWG=oV.limitedPlaybackDurationInSeconds;this.mutedAutoplay&&(oz&&(this.endSeconds=oz),bWG&&(this.limitedPlaybackDurationInSeconds=bWG))}var lH=Lu.fairPlayConfig;if(lH){var qqG=lH.certificate;qqG&&(this.NB=zK(qqG));var r2u=Number(lH.keyRotationPeriodMs);r2u>0&&(this.uG=r2u);var A2f=Number(lH.keyPrefetchMarginMs);A2f>0&&(this.zb=A2f)}var wE=Lu.playbackStartConfig;if(wE){this.T_=Number(wE.startSeconds);var jT9=wE.liveUtcStartSeconds,DZ0=!!this.liveUtcStartSeconds&&this.liveUtcStartSeconds> 0;jT9&&!DZ0&&(this.liveUtcStartSeconds=Number(jT9));var ju9=wE.startPosition;if(ju9){var vAx=ju9.utcTimeMillis;vAx&&!DZ0&&(this.liveUtcStartSeconds=Number(vAx)*.001);var gAr=ju9.streamTimeMillis;gAr&&(this.Pg=Number(gAr)*.001)}this.progressBarStartPosition=wE.progressBarStartPosition;this.progressBarEndPosition=wE.progressBarEndPosition}else{var D0f=Lu.skippableSegmentsConfig;if(D0f){var Yqx=D0f.introSkipDurationMs;Yqx&&(this.Q0=Number(Yqx)/1E3);var XqW=D0f.outroSkipDurationMs;XqW&&(this.dU=Number(XqW)/ 1E3)}}var vM9=Lu.skippableIntroConfig;if(vM9){var SqM=Number(vM9.startMs),$ZM=Number(vM9.endMs);isNaN(SqM)||isNaN($ZM)||(this.DH=SqM,this.Q7=$ZM)}var TRX=Lu.streamSelectionConfig;TRX&&(this.kL=Number(TRX.maxBitrate));var fy4=Lu.vrConfig;fy4&&(this.Yf=fy4.partialSpherical=="1");var g6=Lu.webDrmConfig;if(g6){g6.skipWidevine&&(this.yj=!0);var hSD=g6.widevineServiceCert;hSD&&(this.MN=zK(hSD));g6.useCobaltWidevine&&(this.useCobaltWidevine=!0);g6.startWithNoQualityConstraint&&(this.R4=!0)}var tO=Lu.mediaCommonConfig; if(tO){var sr=tO.dynamicReadaheadConfig;if(sr){this.maxReadAheadMediaTimeMs=sr.maxReadAheadMediaTimeMs||NaN;this.minReadAheadMediaTimeMs=sr.minReadAheadMediaTimeMs||NaN;this.readAheadGrowthRateMs=sr.readAheadGrowthRateMs||NaN;var LI0,nAu=tO==null?void 0:(LI0=tO.mediaUstreamerRequestConfig)==null?void 0:LI0.videoPlaybackUstreamerConfig;nAu&&(this.EN=zK(nAu));var gMu=tO==null?void 0:tO.sabrContextUpdates;if(gMu&&gMu.length>0)for(var c24=g.n(gMu),Y30=c24.next();!Y30.done;Y30=c24.next()){var Xh=Y30.value; if(Xh.type&&Xh.value){var K$z={type:Xh.type,scope:Xh.scope,value:zK(Xh.value)||void 0,sendByDefault:Xh.sendByDefault};this.sabrContextUpdates.set(Xh.type,K$z)}}}var mZn=tO.serverPlaybackStartConfig;mZn&&(this.serverPlaybackStartConfig=mZn);tO.useServerDrivenAbr&&(this.Dt=!0);var IyG=tO.requestPipeliningConfig;IyG&&(this.requestPipeliningConfig=IyG)}var J2G=Lu.inlinePlaybackConfig;J2G&&(this.QZ=!!J2G.showAudioControls);var Zi=Lu.embeddedPlayerConfig;if(Zi){this.embeddedPlayerConfig=Zi;var XBG=Zi.embeddedPlayerMode; if(XBG){var y2n=this.N();y2n.JG=XBG;y2n.S=XBG==="EMBEDDED_PLAYER_MODE_PFL"}var dZD=Zi.permissions;dZD&&(this.allowImaMonetization=!!dZD.allowImaMonetization)}var NRD=Lu.ssapConfig;NRD&&(this.YO=NRD.ssapPrerollEnabled||!1);var Qi=Lu.webPlayerConfig;Qi&&(Qi.gatewayExperimentGroup&&(this.gatewayExperimentGroup=Qi.gatewayExperimentGroup),Qi.isProximaEligible&&(this.isProximaLatencyEligible=!0))}var FH=this.playerResponse.streamingData;if(FH){var S3D=FH.formats;if(S3D){for(var Yd=[],GeW=g.n(S3D),$0n=GeW.next();!$0n.done;$0n= GeW.next()){var TWW=$0n.value;Yd.push(TWW.itag+"/"+TWW.width+"x"+TWW.height)}this.zc=Yd.join(",");Yd=[];for(var iW9=g.n(S3D),fgG=iW9.next();!fgG.done;fgG=iW9.next()){var XT=fgG.value,SC={itag:XT.itag,type:XT.mimeType,quality:XT.quality},ayG=XT.url;ayG&&(SC.url=ayG);var zm=mG(XT),bp0=zm.MZ,qfw=zm.KH,rsQ=zm.s;zm.zx&&(SC.url=bp0,SC.sp=qfw,SC.s=rsQ);Yd.push(g.ol(SC))}this.YE=Yd.join(",")}var hWn=FH.hlsFormats;if(hWn){var Prn=Lu||null,K1={};if(Prn){var LB4=Prn.audioPairingConfig;if(LB4&&LB4.pairs)for(var RS0= g.n(LB4.pairs),nMG=RS0.next();!nMG.done;nMG=RS0.next()){var Crn=nMG.value,c5G=Crn.videoItag;K1[c5G]||(K1[c5G]=[]);K1[c5G].push(Crn.audioItag)}}for(var pqX={},HWX=g.n(hWn),m0M=HWX.next();!m0M.done;m0M=HWX.next()){var Mu0=m0M.value;pqX[Mu0.itag]=Mu0.bitrate}for(var UZ0=[],OWX=g.n(hWn),IgD=OWX.next();!IgD.done;IgD=OWX.next()){var sj=IgD.value,mi={itag:sj.itag,type:sj.mimeType,url:sj.url,bitrate:sj.bitrate,width:sj.width,height:sj.height,fps:sj.fps},bg=sj.audioTrack;if(bg){var oAX=bg.displayName;oAX&& (mi.name=oAX,mi.audio_track_id=bg.id,bg.audioIsDefault&&(mi.is_default="1"))}if(sj.drmFamilies){for(var BRr=[],WIM=g.n(sj.drmFamilies),J5n=WIM.next();!J5n.done;J5n=WIM.next())BRr.push(j2[J5n.value]);mi.drm_families=BRr.join(",")}var qd=K1[sj.itag];if(qd&&qd.length){mi.audio_itag=qd.join(",");var Vun=pqX[qd[0]];Vun&&(mi.bitrate+=Vun)}var keu=mBn(sj);keu&&(mi.eotf=keu);sj.audioChannels&&(mi.audio_channels=sj.audioChannels);UZ0.push(g.ol(mi))}this.hlsFormats=UZ0.join(",")}var y5X=FH.licenseInfos;if(y5X&& y5X.length>0){for(var uXn={},xZx=g.n(y5X),d0n=xZx.next();!d0n.done;d0n=xZx.next()){var tuD=d0n.value,FID=tuD.drmFamily,eSx=tuD.url;FID&&eSx&&(uXn[j2[FID]]=eSx)}this.NR=uXn}var wqu=FH.drmParams;wqu&&(this.drmParams=wqu);var EA0=FH.dashManifestUrl;EA0&&(this.A4=g.BK(EA0,{cpn:this.clientPlaybackNonce}));var lyW=FH.hlsManifestUrl;lyW&&(this.hlsvp=lyW);var sAD=FH.probeUrl;sAD&&(this.probeUrl=zQ(g.BK(sAD,{cpn:this.clientPlaybackNonce})));var ZLf=FH.serverAbrStreamingUrl;ZLf&&(this.Yi=new g.TL(ZLf,!0))}var QA4= this.playerResponse.trackingParams;QA4&&(this.KN=QA4);var uB=this.playerResponse.videoDetails;if(uB){var IH=Z,NWd=uB.videoId;NWd&&(this.videoId=NWd,IH.video_id||(IH.video_id=NWd));var zFn=uB.channelId;zFn&&(this.T.uid=zFn.substring(2));var G$x=uB.title;G$x&&(this.title=G$x,IH.title||(IH.title=G$x));var itu=uB.lengthSeconds;itu&&(this.lengthSeconds=Number(itu),IH.length_seconds||(IH.length_seconds=itu));var KmD=uB.keywords;KmD&&(this.keywords=$bG(KmD));var agW=uB.channelId;agW&&(this.n6=agW,IH.ucid|| (IH.ucid=agW));var bL9=uB.viewCount;bL9&&(this.rawViewCount=Number(bL9));var PSW=uB.author;PSW&&(this.author=PSW,IH.author||(IH.author=PSW));var qVG=uB.shortDescription;qVG&&(this.shortDescription=qVG);var rID=uB.isCrawlable;rID&&(this.isListed=rID);var AIM=uB.musicVideoType;AIM&&(this.musicVideoType=AIM);var RWf=uB.isLive;RWf!=null&&(this.isLivePlayback=RWf);if(RWf||uB.isUpcoming)this.isPremiere=!uB.isLiveContent;var jA9=uB.thumbnail;jA9&&(this.U=YF(jA9));var DKx=uB.isExternallyHostedPodcast;DKx&& (this.isExternallyHostedPodcast=DKx);var CSx=uB.viewerLivestreamJoinPosition;if(CSx==null?0:CSx.utcTimeMillis)this.sD=sD(CSx.utcTimeMillis);var vBW=Lu||null,pBu=Z;uB.isLiveDefaultBroadcast&&(this.isLiveDefaultBroadcast=!0);uB.isUpcoming&&(this.isUpcoming=!0);if(uB.isPostLiveDvr){this.Da=!0;var gBf=uB.latencyClass;gBf&&(this.latencyClass=x_E[gBf]||"UNKNOWN");uB.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0)}else{var Ht4=!1;this.qB?(this.allowLiveDvr=wz()?!0:wp&&lM<5?!1:!0,this.isLivePlayback= !0):uB.isLive?(pBu.livestream="1",this.allowLiveDvr=uB.isLiveDvrEnabled?wz()?!0:wp&&lM<5?!1:!0:!1,this.partnerId=27,Ht4=!0):uB.isUpcoming&&(Ht4=!0);if(uB.isLive||this.qB&&this.V("html5_parse_live_monitor_flags")){uB.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0);var YV9=uB.latencyClass;YV9&&(this.latencyClass=x_E[YV9]||"UNKNOWN");var X79=uB.liveChunkReadahead;X79&&(this.liveChunkReadahead=X79);var EP=vBW&&vBW.livePlayerConfig;if(EP){EP.hasSubfragmentedFmp4&&(this.hasSubfragmentedFmp4=!0); EP.hasSubfragmentedWebm&&(this.QC=!0);EP.defraggedFromSubfragments&&(this.defraggedFromSubfragments=!0);var SVD=EP.liveExperimentalContentId;SVD&&(this.liveExperimentalContentId=Number(SVD));var $KW=EP.isLiveHeadPlayable;this.V("html5_live_head_playable")&&$KW!=null&&(this.isLiveHeadPlayable=$KW)}}Ht4&&(this.isLivePlayback=!0,pBu.adformat&&pBu.adformat.split("_")[1]!=="8"||this.JG.push("heartbeat"),this.qy=!0)}var TFf=uB.isPrivate;TFf!==void 0&&(this.isPrivate=zM(this.isPrivate,TFf))}if(rf){var f6d= uB||null,hFx=!1,l9=rf.errorScreen;hFx=l9&&(l9.playerLegacyDesktopYpcOfferRenderer||l9.playerLegacyDesktopYpcTrailerRenderer||l9.ypcTrailerRenderer)?!0:f6d&&f6d.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(rf.status);if(!hFx){this.errorCode=JVG(rf.errorCode)||"auth";var rH=l9&&l9.playerErrorMessageRenderer;if(rH){this.playerErrorMessageRenderer=rH;var LmM=rH.reason;LmM&&(this.errorReason=g.SN(LmM));var M64=rH.subreason;M64&&(this.Uq=g.SN(M64),this.lG=M64)}else this.errorReason= rf.reason||null;var U0G=rf.status;if(U0G==="LOGIN_REQUIRED")this.errorDetail="1";else if(U0G==="CONTENT_CHECK_REQUIRED")this.errorDetail="2";else if(U0G==="AGE_CHECK_REQUIRED"){var nB0=rf.errorScreen,cIx=nB0&&nB0.playerKavRenderer;this.errorDetail=cIx&&cIx.kavUrl?"4":"3"}else this.errorDetail=rf.isBlockedInRestrictedMode?"5":"0"}}var mKM=this.playerResponse.interstitialPods;mKM&&OJW(this,mKM);this.s$&&this.eventId&&(this.s$=rp(this.s$,{ei:this.eventId}));var Otr=this.playerResponse.captions;if(Otr&& Otr.playerCaptionsTracklistRenderer)a:{var JG=Otr.playerCaptionsTracklistRenderer;this.captionTracks=[];if(JG.captionTracks)for(var I6G=g.n(JG.captionTracks),oMd=I6G.next();!oMd.done;oMd=I6G.next()){var yq=oMd.value,JIn=YpG(yq.baseUrl);if(!JIn)break a;var BWx={is_translateable:!!yq.isTranslatable,languageCode:yq.languageCode,languageName:yq.name&&g.SN(yq.name),url:JIn,vss_id:yq.vssId,kind:yq.kind};BWx.name=yq.trackName;BWx.displayName=yq.name&&g.SN(yq.name);this.captionTracks.push(new g.AF(BWx))}this.YI= JG.audioTracks||[];this.RO=JG.defaultAudioTrackIndex||0;this.Ps=[];if(JG.translationLanguages)for(var yIf=g.n(JG.translationLanguages),WBx=yIf.next();!WBx.done;WBx=yIf.next()){var sz=WBx.value,Sk={};Sk.languageCode=sz.languageCode;Sk.languageName=g.SN(sz.languageName);if(sz.translationSourceTrackIndices){Sk.translationSourceTrackIndices=[];for(var dKn=g.n(sz.translationSourceTrackIndices),V6f=dKn.next();!V6f.done;V6f=dKn.next())Sk.translationSourceTrackIndices.push(V6f.value)}if(sz.excludeAudioTrackIndices){Sk.excludeAudioTrackIndices= [];for(var NF4=g.n(sz.excludeAudioTrackIndices),k$n=NF4.next();!k$n.done;k$n=NF4.next())Sk.excludeAudioTrackIndices.push(k$n.value)}this.Ps.push(Sk)}this.p8=[];if(JG.defaultTranslationSourceTrackIndices)for(var GNd=g.n(JG.defaultTranslationSourceTrackIndices),u5X=GNd.next();!u5X.done;u5X=GNd.next())this.p8.push(u5X.value);this.Hs=!!JG.contribute&&!!JG.contribute.captionsMetadataRenderer}(this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.T_=Number(this.clipConfig.startTimeMs)* .001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&BA4(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var iLu;this.compositeLiveIngestionOffsetToken=(iLu=this.playerResponse.playbackTracking)==null?void 0:iLu.compositeLiveIngestionOffsetToken;var a6G;this.compositeLiveStatusToken=(a6G=this.playerResponse.playbackTracking)==null?void 0: a6G.compositeLiveStatusToken}B1(this,Z);Z.queue_info&&(this.queueInfo=Z.queue_info);var Pln=Z.hlsdvr;Pln!=null&&(this.allowLiveDvr=Number(Pln)===1?wz()?!0:wp&&lM<5?!1:!0:!1);this.adQueryId=Z.ad_query_id||null;this.S5||(this.S5=Z.encoded_ad_safety_reason||null);this.FT=Z.agcid||null;this.yx=Z.ad_id||null;this.hm=Z.ad_sys||null;this.VC=Z.encoded_ad_playback_context||null;this.zT=zM(this.zT,Z.infringe||Z.muted);this.JU=Z.authkey;this.wvI=Z.authuser;this.mutedAutoplay=zM(this.mutedAutoplay,Z&&Z.playmuted); this.V("embeds_enable_full_length_inline_muted_autoplay")&&(this.mutedAutoplayDurationMode=bb(this.mutedAutoplayDurationMode,Z&&Z.muted_autoplay_duration_mode));this.Qx=zM(this.Qx,Z&&Z.mutedautoplay);var Ai=Z.length_seconds;Ai&&(this.lengthSeconds=typeof Ai==="string"?sD(Ai):Ai);if(this.isAd()||this.rj||!g.DT(g.PZ(this.B7)))this.endSeconds=bb(this.endSeconds,this.dU||Z.end||Z.endSeconds);else{var AsR=g.PZ(this.B7),jF=this.lengthSeconds;switch(AsR){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":jF> 30?this.limitedPlaybackDurationInSeconds=30:jF<30&&jF>10&&(this.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":this.limitedPlaybackDurationInSeconds=jF*.2}}this.KN=qW(this.KN,Z.itct);this.Zz=zM(this.Zz,Z.noiba);this.QO=zM(this.QO,Z.is_live_destination);this.isLivePlayback=zM(this.isLivePlayback,Z.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&&this.fd();Z.isUpcoming&&(this.isUpcoming=zM(this.isUpcoming,Z.isUpcoming));this.Da= zM(this.Da,Z.post_live_playback);this.c7&&(this.Da=!1);this.isMdxPlayback=zM(this.isMdxPlayback,Z.mdx);var Di=Z.mdx_control_mode;Di&&(this.mdxControlMode=typeof Di==="number"?Di:sD(Di));this.isInlinePlaybackNoAd=zM(this.isInlinePlaybackNoAd,Z.is_inline_playback_no_ad);this.Ph=bb(this.Ph,Z.reload_count);this.reloadReason=qW(this.reloadReason,Z.reload_reason);this.uw=zM(this.uw,Z.show_content_thumbnail);this.jH=zM(this.jH,Z.utpsa);this.cycToken=Z.cyc||null;this.jY=Z.tkn||null;var RFM=gv(Z);Object.keys(RFM).length> 0&&(this.U=RFM);this.SJ=qW(this.SJ,Z.vvt);this.mdxEnvironment=qW(this.mdxEnvironment,Z.mdx_environment);Z.source_container_playlist_id&&(this.sourceContainerPlaylistId=Z.source_container_playlist_id);Z.serialized_mdx_metadata&&(this.serializedMdxMetadata=Z.serialized_mdx_metadata);this.KX=Z.osig;this.eventId||(this.eventId=Z.eventid);this.osid||(this.osid=Z.osid);this.playlistId=qW(this.playlistId,Z.list);Z.index&&(this.playlistIndex=this.playlistIndex===void 0?bb(0,Z.index):bb(this.playlistIndex, Z.index));this.x5=Z.pyv_view_beacon_url;this.yq=Z.pyv_quartile25_beacon_url;this.AI=Z.pyv_quartile50_beacon_url;this.Py=Z.pyv_quartile75_beacon_url;this.Kb=Z.pyv_quartile100_beacon_url;var ClD=Z.session_data;!this.iQ&&ClD&&(this.iQ=ZX(ClD,"&").feature);this.isFling=bb(this.isFling?1:0,Z.is_fling)===1;this.vnd=bb(this.vnd,Z.vnd);this.forceAdsUrl=qW(this.forceAdsUrl,Z.force_ads_url);this.b0=qW(this.b0,Z.ctrl);this.QF=qW(this.QF,Z.ytr);this.ZD=Z.ytrcc;this.fW=Z.ytrexp;this.Gv=Z.ytrext;this.Sp=qW(this.Sp, Z.adformat);this.N_=qW(this.N_,Z.attrib);this.slotPosition=bb(this.slotPosition,Z.slot_pos);this.breakType=Z.break_type;this.xA=zM(this.xA,Z.ssrt);this.videoId=AW(Z)||this.videoId;this.K=qW(this.K,Z.vss_credentials_token);this.V2=qW(this.V2,Z.vss_credentials_token_type);this.LK=zM(this.LK,Z.audio_only);this.DI=zM(this.DI,Z.aac_high);this.eH=zM(this.eH,Z.prefer_low_quality_audio);this.PD=zM(this.PD,Z.uncap_inline_quality);this.V("html5_enable_qoe_cat_list")?Z.qoe_cat&&(this.lc=this.lc.concat(Z.qoe_cat.split(","))): this.tV=qW(this.tV,Z.qoe_cat);this.uP=zM(this.uP,Z.download_media);var p7W=Z.prefer_gapless;this.X=p7W!=null?zM(this.X,p7W):this.X?this.X:this.B7.preferGapless&&this.B7.supportsGaplessShorts();WgW(this.playerResponse)&&this.JG.push("ad");var HLG=Z.adaptive_fmts;HLG&&(this.adaptiveFormats=HLG,this.pN("adpfmts",{},!0));var MTu=Z.allow_embed;MTu&&(this.allowEmbed=Number(MTu)===1);var UKu=Z.backgroundable;UKu&&(this.backgroundable=Number(UKu)===1);var OLX=Z.autonav;OLX&&(this.isAutonav=Number(OLX)=== 1);var oBf=Z.autoplay;oBf&&(this.h6=this.fC=Number(oBf)===1,wP(this,"c"));var BFX=Z.iv_load_policy;BFX&&(this.annotationsLoadPolicy=KS(this.annotationsLoadPolicy,BFX,RM));var Wm9=Z.cc_lang_pref;Wm9&&(this.captionsLanguagePreference=qW(Wm9,this.captionsLanguagePreference));var VT0=Z.cc_load_policy;VT0&&(this.ZY=KS(this.ZY,VT0,RM));var kNx;this.deviceCaptionsOn=(kNx=Z.device_captions_on)!=null?kNx:void 0;var u2G;this.Dd=(u2G=Z.device_captions_lang_pref)!=null?u2G:"";var xKD;this.BD=(xKD=Z.viewer_selected_caption_langs)!= null?xKD:[];if(!this.V("html5_enable_ssap_entity_id")){var tTG=Z.cached_load;tTG&&(this.HH=zM(this.HH,tTG))}if(Z.dash==="0"||Z.dash===0||Z.dash===!1)this.d5=!0;var Fm9=Z.dashmpd;Fm9&&(this.A4=g.BK(Fm9,{cpn:this.clientPlaybackNonce}));var eF4=Z.delay;eF4&&(this.X7=sD(eF4));var x00=this.dU||Z.end;if(this.De?x00!=null:x00!=void 0)this.clipEnd=bb(this.clipEnd,x00);var w7f=Z.fmt_list;w7f&&(this.zc=w7f);Z.heartbeat_preroll&&this.JG.push("heartbeat");this.FN=-Math.floor(Math.random()*10);this.G7=-Math.floor(Math.random()* 40);var EB0=Z.is_listed;EB0&&(this.isListed=zM(this.isListed,EB0));var l60=Z.is_private;l60&&(this.isPrivate=zM(this.isPrivate,l60));var sif=Z.is_dni;sif&&(this.BN=zM(this.BN,sif));var Z74=Z.dni_color;Z74&&(this.K9=qW(this.K9,Z74));var QiW=Z.pipable;QiW&&(this.pipable=zM(this.pipable,QiW));this.D7=(this.s4=this.pipable&&this.B7.AV)&&!this.B7.showMiniplayerButton;var zYn=Z.paid_content_overlay_duration_ms;zYn&&(this.paidContentOverlayDurationMs=sD(zYn));var KnX=Z.paid_content_overlay_text;KnX&&(this.paidContentOverlayText= KnX);var b7r=Z.url_encoded_fmt_stream_map;b7r&&(this.YE=b7r);var qxd=Z.hls_formats;qxd&&(this.hlsFormats=qxd);var rZd=Z.hlsvp;rZd&&(this.hlsvp=rZd);var vP=Z.live_start_walltime;vP&&(this.gU=typeof vP==="number"?vP:sD(vP));var gH=Z.live_manifest_duration;gH&&(this.VR=typeof gH==="number"?gH:sD(gH));var AZG=Z.player_params;AZG&&(this.playerParams=AZG);var ji4=Z.partnerid;ji4&&(this.partnerId=bb(this.partnerId,ji4));var DG9=Z.probe_url;DG9&&(this.probeUrl=zQ(g.BK(DG9,{cpn:this.clientPlaybackNonce}))); var t60=Z.pyv_billable_url;t60&&EYD(t60)&&(this.NU=t60);var FB4=Z.pyv_conv_url;FB4&&EYD(FB4)&&(this.GE=FB4);T6D(this,Z);this.startSeconds>0?this.V("html5_log_start_seconds_inconsistency")&&this.startSeconds!==(this.T_||this.Q0||Z.start||Z.startSeconds)&&this.pN("lss",{css:this.startSeconds,pcss:this.T_,iss:this.Q0,ps:Z.start||void 0,pss:Z.startSeconds||void 0}):this.sA=this.startSeconds=bb(this.startSeconds,this.T_||this.Q0||Z.start||Z.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds> 0)){var vXx=Z.live_utc_start;if(vXx!=null)this.liveUtcStartSeconds=Number(vXx);else{var eWG=this.startSeconds;eWG&&isFinite(eWG)&&eWG>1E9&&(this.liveUtcStartSeconds=this.startSeconds)}}if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var gX4=Z.utc_start_millis;gX4&&(this.liveUtcStartSeconds=Number(gX4)*.001)}var Yxf=Z.stream_time_start_millis;Yxf&&(this.Pg=Number(Yxf)*.001);var wBu=this.Q0||Z.start;(this.De?wBu==null||Number(Z.resume)===1:wBu==void 0||Z.resume=="1")||this.isLivePlayback|| (this.clipStart=bb(this.clipStart,wBu));var Xux=Z.url_encoded_third_party_media;Xux&&(this.Em=KA(Xux));var EMM=Z.ypc_offer_button_formatted_text;if(EMM){var Sxr=JSON.parse(EMM);this.Jp=Sxr!=null?Sxr:null;this.h7=EMM}var $GD=Z.ypc_offer_button_text;$GD&&(this.KP=$GD);var TU4=Z.ypc_offer_description;TU4&&(this.AV=TU4);var fJ4=Z.ypc_offer_headline;fJ4&&(this.zq=fJ4);var hYG=Z.ypc_full_video_message;hYG&&(this.sj=hYG);var Lnr=Z.ypc_offer_id;Lnr&&(this.u7=Lnr);var nX0=Z.ypc_buy_url;nX0&&(this.Jc=nX0); var cZ9=Z.ypc_item_thumbnail;cZ9&&(this.O_=cZ9);var mGG=Z.ypc_item_title;mGG&&(this.hV=mGG);var IJ4=Z.ypc_item_url;IJ4&&(this.bH=IJ4);var JZf=Z.ypc_vid;JZf&&(this.uE=JZf);Z.ypc_overlay_timeout&&(this.CC=Number(Z.ypc_overlay_timeout));var yZd=Z.ypc_trailer_player_vars;yZd&&(this.kz=zr(yZd));var dGX=Z.ypc_original_itct;dGX&&(this.Nu=dGX);this.n6=qW(this.n6,Z.ucid);Z.baseUrl&&(this.T.baseUrl=Z.baseUrl);Z.uid&&(this.T.uid=Z.uid);Z.oeid&&(this.T.oeid=Z.oeid);Z.ieid&&(this.T.ieid=Z.ieid);Z.ppe&&(this.T.ppe= Z.ppe);Z.engaged&&(this.T.engaged=Z.engaged);Z.subscribed&&(this.T.subscribed=Z.subscribed);this.T.focEnabled=zM(this.T.focEnabled,Z.focEnabled);this.T.rmktEnabled=zM(this.T.rmktEnabled,Z.rmktEnabled);this.PK=Z.storyboard_spec||null;this.xk=Z.live_storyboard_spec||null;this.d4=Z.iv_endscreen_url||null;this.qy=zM(this.qy,Z.ypc_license_checker_module);this.Sc=zM(this.Sc,Z.ypc_module);this.Vr=zM(this.Vr,Z.ypc_clickwrap_module);this.Sc&&this.JG.push("ypc");this.Vr&&this.JG.push("ypc_clickwrap");this.vZ= {video_id:Z.video_id,eventid:Z.eventid,cbrand:Z.cbrand,cbr:Z.cbr,cbrver:Z.cbrver,c:Z.c,cver:Z.cver,ctheme:Z.ctheme,cplayer:Z.cplayer,cmodel:Z.cmodel,cnetwork:Z.cnetwork,cos:Z.cos,cosver:Z.cosver,cplatform:Z.cplatform,user_age:Z.user_age,user_display_image:Z.user_display_image,user_display_name:Z.user_display_name,user_gender:Z.user_gender,csi_page_type:Z.csi_page_type,csi_service_name:Z.csi_service_name,enablecsi:Z.enablecsi,enabled_engage_types:Z.enabled_engage_types};gdX(this,Z);var NU4=Z.cotn; NU4&&(this.cotn=NU4);if(i5d(this))bN(this)&&(this.isLivePlayback&&this.A4&&(this.J6=!0),this.NB&&(this.Y3=!0));else if(aAG(this))this.J6=!0;else{var GUD,i70,aJG=((GUD=this.playerResponse)==null?void 0:(i70=GUD.streamingData)==null?void 0:i70.adaptiveFormats)||[];if(aJG.length>0)var $d=GEW(this,aJG);else{var PvM=this.adaptiveFormats;if(PvM&&!bN(this)){qz(this,"html5_enable_cobalt_experimental_vp9_decoder")&&(cg=!0);var Zk=YG(PvM),lgn=this.NR,RYG=this.lengthSeconds,jzn=this.isLivePlayback,TE=this.Da, Qt=this.B7,DaX=UBn(Zk);if(jzn||TE){var Cvu=Qt==null?void 0:Qt.experiments,Hj=new rz("",Cvu,!0);Hj.fd=!0;Hj.isManifestless=!0;Hj.j=!TE;Hj.isLive=!TE;Hj.Da=TE;for(var pux=g.n(Zk),seD=pux.next();!seD.done;seD=pux.next()){var zg=seD.value,H7x=vg(zg,lgn),$9=gz(zg.url,zg.sp,zg.s),Mfr=$9.get("id");Mfr&&Mfr.includes("%7E")&&(Hj.U=!0);var UG0=void 0,v2E=(UG0=Cvu)==null?void 0:UG0.XI("html5_max_known_end_time_rebase"),g2z=Number(zg.target_duration_sec)||5,Yfo=Number(zg.max_dvr_duration_sec)||14400,O7D=Number($9.get("mindsq")|| $9.get("min_sq")||"0"),oXd=Number($9.get("maxdsq")||$9.get("max_sq")||"0")||Infinity;Hj.uY=Hj.uY||O7D;Hj.nZ=Hj.nZ||oXd;var XFz=!ZR(H7x);$9&&KD(Hj,new ki($9,H7x,{ip:g2z,e9:XFz,iR:Yfo,uY:O7D,nZ:oXd,Ln:300,Da:TE,sH:v2E}))}var BUf=Hj}else{if(DaX==="FORMAT_STREAM_TYPE_OTF"){var YO=RYG;YO=YO===void 0?0:YO;var KR=new rz("",Qt==null?void 0:Qt.experiments,!1);KR.duration=YO||0;for(var WnG=g.n(Zk),Zxx=WnG.next();!Zxx.done;Zxx=WnG.next()){var bn=Zxx.value,Qer=vg(bn,lgn,KR.duration),zTx=gz(bn.url,bn.sp,bn.s); if(zTx)if(Qer.streamType==="FORMAT_STREAM_TYPE_OTF")KD(KR,new u7(zTx,Qer,"sq/0"));else{var Sfz=mS(bn.init),$aX=mS(bn.index);KD(KR,new Zd(zTx,Qer,Sfz,$aX))}}KR.isOtf=!0;var Vfn=KR}else{var Xf=RYG;Xf=Xf===void 0?0:Xf;var SF=new rz("",Qt==null?void 0:Qt.experiments,!1);SF.duration=Xf||0;for(var kUn=g.n(Zk),K6d=kUn.next();!K6d.done;K6d=kUn.next()){var ql=K6d.value,TIm=vg(ql,lgn,SF.duration),fP0=mS(ql.init),hEw=mS(ql.index),u0X=gz(ql.url,ql.sp,ql.s);u0X&&KD(SF,new Zd(u0X,TIm,fP0,hEw))}Vfn=SF}BUf=Vfn}var xGx= BUf;if(Zk.length>0){var tfr=Zk[0];if(this.N().playerStyle==="hangouts-meet"&&tfr.url){var L$$=g.bV(tfr.url);this.eb=this.eb||Number(L$$.expire)}}var n2Q=this.isLivePlayback&&!this.Da&&!this.c7&&!this.isPremiere;this.V("html5_live_head_playable")&&(!rP(this)&&n2Q&&this.pN("missingLiveHeadPlayable",{}),this.B7.jJ==="yt"&&(xGx.Zu=!0));$d=xGx}else $d=null;this.pN("pafmts",{isManifestFilled:!!$d})}if($d){Du(this,$d);var FnG=!0}else FnG=!1;FnG?this.enableServerStitchedDai=this.enableServerStitchedDai&& AP(this):this.A4&&(this.B7.jJ==="yt"&&this.fd()&&this.V("drm_manifestless_unplugged")&&this.V("html5_deprecate_manifestful_fallback")?this.pN("deprecateMflFallback",{}):this.J6=!0)}var bx9=Z.adpings;bx9&&(this.iG=bx9?zr(bx9):null);var eYr=Z.feature;eYr&&(this.Al=eYr);var wuu=Z.referrer;wuu&&(this.referrer=wuu);this.clientScreenNonce=qW(this.clientScreenNonce,Z.csn);this.hB=bb(this.hB,Z.root_ve_type);this.Il=bb(this.Il,Z.kids_age_up_mode);this.De||Z.kids_app_info==void 0||(this.kidsAppInfo=Z.kids_app_info); this.De&&Z.kids_app_info!=null&&(this.kidsAppInfo=Z.kids_app_info);this.BK=zM(this.BK,Z.upg_content_filter_mode);this.unpluggedFilterModeType=bb(this.unpluggedFilterModeType,Z.unplugged_filter_mode_type);var EXd=Z.unplugged_location_info;EXd&&(this.jJ=EXd);var lJW=Z.unplugged_partner_opt_out;lJW&&(this.aN=qW("",lJW));this.Og=zM(this.Og,Z.disable_watch_next);this.f$=qW(this.f$,Z.internal_ip_override);this.UH=!!Z.is_yto_interstitial;(this.interstitials.length||this.UH)&&this.JG.push("yto");var sgG= Z.iP;sgG&&(this.iP=sgG);var Zvd;this.Du=(Zvd=Z.csi_timer)!=null?Zvd:"";this.kZ=!!Z.force_gvi;Z.watchUrl&&(this.watchUrl=Z.watchUrl);var Tt=Z.watch_endpoint;this.V("html5_attach_watch_endpoint_ustreamer_config")&&Tt&&dIu(this,Tt);if(Tt==null?0:Tt.ustreamerConfig)this.XE=zK(Tt.ustreamerConfig);var Qgr,zx9,KKX=Tt==null?void 0:(Qgr=Tt.loggingContext)==null?void 0:(zx9=Qgr.qoeLoggingContext)==null?void 0:zx9.serializedContextData;KKX&&(this.tU=KKX);g.mj(this.B7)&&this.B7.vk&&(this.embedsRct=qW(this.embedsRct, Z.rct),this.embedsRctn=qW(this.embedsRctn,Z.rctn));this.n4=this.n4||!!Z.pause_at_start;Z.default_active_source_video_id&&(this.defaultActiveSourceVideoId=Z.default_active_source_video_id)}; g.A.N=function(){return this.B7}; g.A.V=function(Z){return this.B7.V(Z)}; g.A.xE=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.A.hasSupportedAudio51Tracks=function(){var Z;return!((Z=this.N8)==null||!Z.Qp)}; g.A.getUserAudio51Preference=function(){var Z=1;ua(this.B7)&&this.V("html5_ytv_surround_toggle_default_off")?Z=0:g.WZ(this.B7)&&this.isLivePlayback&&this.LZ()&&(Z=0);var Q;return(Q=g.pS("yt-player-audio51"))!=null?Q:Z}; g.A.Kw=function(){this.FI()||(this.Y.j||this.Y.unsubscribe("refresh",this.Kw,this),this.Lb(-1))}; g.A.Lb=function(Z){if(!this.isLivePlayback||!this.L||this.L.flavor!=="fairplay"){var Q=o6G(this.Y,this.SH);if(Q.length>0){for(var z=g.n(Q),K=z.next();!K.done;K=z.next())K=K.value,K.startSecs=Math.max(K.startSecs,this.Ze()),this.V("html5_cuepoint_identifier_logging")&&K.event==="start"&&this.pN("cuepoint",{pubCue:K.identifier,segNum:Z});this.publish("cuepointupdated",Q,Z);this.SH+=Q.length;if(AP(this)&&this.B7.aT())for(Q=g.n(Q),z=Q.next();!z.done;z=Q.next())z=z.value,this.pN("cuepoint",{segNum:Z,event:z.event, startSecs:z.startSecs,id:z.identifier.slice(-16)}),z.event==="start"&&(z=z.startSecs,this.l3.start=this.Zu,this.l3.end=z+3)}}}; g.A.Dm=function(){this.FI()||(this.loading=!1,this.publish("dataloaded"))}; g.A.LZ=function(){return this.Ws!==void 0?this.Ws:this.Ws=!!this.NR||!!this.Y&&D5(this.Y)}; g.A.sW=function(Z){var Q=this;if(this.FI())return PX();this.zJ=this.CN=this.S=null;qz(this,"html5_high_res_logging_always")&&(this.B7.aC=!0);return H5u(this,Z).then(void 0,function(){return MCn(Q,Z)}).then(void 0,function(){return Ub9(Q)}).then(void 0,function(){return odG(Q)})}; g.A.Mr=function(){if(this.cotn)return null;var Z=g.yF(this.B7)||this.V("web_l3_storyboard");if(!this.K4)if(this.playerResponse&&this.playerResponse.storyboards){var Q=this.playerResponse.storyboards,z=Q.playerStoryboardSpecRenderer;z&&z.spec?this.K4=new pU(z.spec,this.lengthSeconds,void 0,!1,Z):(Q=Q.playerLiveStoryboardSpecRenderer)&&Q.spec&&this.Y&&(z=BDx(this.Y.Y).index)&&(this.K4=new Mk(Q.spec,this.Y.isLive,z,Z))}else this.PK?this.K4=new pU(this.PK,this.lengthSeconds,void 0,!1,Z):this.xk&&this.Y&& (Q=BDx(this.Y.Y).index)&&(this.K4=new Mk(this.xk,this.Y.isLive,Q,Z));return this.K4}; g.A.getStoryboardFormat=function(){if(this.cotn)return null;if(this.playerResponse&&this.playerResponse.storyboards){var Z=this.playerResponse.storyboards;return(Z=Z.playerStoryboardSpecRenderer||Z.playerLiveStoryboardSpecRenderer)&&Z.spec||null}return this.PK||this.xk}; g.A.TJ=function(){return this.Y&&!isNaN(this.Y.TJ())?this.Y.TJ():AP(this)?0:this.lengthSeconds}; g.A.Ze=function(){return this.Y&&!isNaN(this.Y.Ze())?this.Y.Ze():0}; g.A.getPlaylistSequenceForTime=function(Z){if(this.Y&&this.j){var Q=this.Y.Y[this.j.id];if(!Q)return null;var z=Q.index.ON(Z);Q=Q.index.getStartTime(z);return{sequence:z,elapsed:Math.floor((Z-Q)*1E3)}}return null}; g.A.hH=function(){return!this.FI()&&!(!this.videoId&&!this.Em)}; g.A.HL=function(){var Z,Q,z;return!!this.adaptiveFormats||!!((Z=this.playerResponse)==null?0:(Q=Z.streamingData)==null?0:(z=Q.adaptiveFormats)==null?0:z.length)}; g.A.isLoaded=function(){return oO(this)&&!this.J6&&!this.Y3}; g.A.uI=function(Z){Z||(Z="hqdefault.jpg");var Q=this.U[Z];return Q||this.B7.SJ||Z==="pop1.jpg"||Z==="pop2.jpg"||Z==="sddefault.jpg"||Z==="hq720.jpg"||Z==="maxresdefault.jpg"?Q:oM(this.B7,this.videoId,Z)}; g.A.fd=function(){return this.isLivePlayback||this.Da||this.c7||!(!this.liveUtcStartSeconds||!this.VR)}; g.A.isOtf=function(){return!!this.Y&&(this.Y.isOtf||!this.Da&&!this.isLivePlayback&&this.Y.j)}; g.A.getAvailableAudioTracks=function(){return this.S?this.S.getAvailableAudioTracks().length>0?this.S.getAvailableAudioTracks():this.dI||[]:[]}; g.A.getAudioTrack=function(){var Z=this;if(this.W&&!sZ(this.W))return g.Fm(this.getAvailableAudioTracks(),function(K){return K.id===Z.W.id})||this.L4; if(this.dI){if(!this.dl)for(var Q=g.n(this.dI),z=Q.next();!z.done;z=Q.next())if(z=z.value,z.Qw.getIsDefault()){this.dl=z;break}return this.dl||this.L4}return this.L4}; g.A.getPlayerResponse=function(){return this.playerResponse}; g.A.getWatchNextResponse=function(){return this.tG}; g.A.getHeartbeatResponse=function(){return this.k7}; g.A.qN=function(){return this.watchUrl?this.watchUrl:this.B7.getVideoUrl(this.videoId)}; g.A.Qu=function(){return!!this.Y&&(isG(this.Y)||aR9(this.Y)||Px9(this.Y))}; g.A.getEmbeddedPlayerResponse=function(){return this.Ma}; g.A.aF=function(){return(this.eventLabel||this.B7.KN)==="shortspage"}; g.A.isAd=function(){return this.Yb||!!this.adFormat}; g.A.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; g.A.GJ=function(){var Z,Q,z;return this.isDaiEnabled()&&!!((Z=this.playerResponse)==null?0:(Q=Z.playerConfig)==null?0:(z=Q.daiConfig)==null?0:z.ssaEnabledPlayback)}; g.A.n1=function(){return jdu(this)?this.ir:this.qy||this.lI}; g.A.Pw=function(){return this.Sc||this.lI}; g.A.EW=function(){return qz(this,"html5_samsung_vp9_live")}; g.A.pN=function(Z,Q,z){this.publish("ctmp",Z,Q,z)}; g.A.rL=function(Z,Q,z){this.publish("ctmpstr",Z,Q,z)}; g.A.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; g.A.getGetAdBreakContext=function(Z,Q){Z=Z===void 0?NaN:Z;Q=Q===void 0?NaN:Q;var z={isSabr:Qa(this)},K,b=(K=this.getHeartbeatResponse())==null?void 0:K.adBreakHeartbeatParams;b&&(z.adBreakHeartbeatParams=b);if(this.V("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.Y&&!isNaN(Z)&&!isNaN(Q)){Q=Z-Q;for(var q in this.Y.Y)if(K=this.Y.Y[q],K.info.Gy()||K.info.WN())if(K=K.index,K.isLoaded()){q=K.ON(Q);K=K.RC(q)+Q-K.getStartTime(q);this.pN("gabc",{t:Z.toFixed(3),mt:Q.toFixed(3),sg:q,igt:K.toFixed(3)}); z.livePlaybackPosition={utcTimeMillis:""+(K*1E3).toFixed(0)};break}}return z}; g.A.isEmbedsShortsMode=function(Z,Q){if(!g.mj(this.B7))return!1;var z;if(!this.V("embeds_enable_emc3ds_shorts")&&((z=this.B7.getWebPlayerContextConfig())==null?0:z.embedsEnableEmc3ds)||(this.B7.JG||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||Q)return!1;var K,b;return!!(((K=this.embeddedPlayerConfig)==null?0:(b=K.embeddedPlayerFlags)==null?0:b.isShortsExperienceEligible)&&Z.width<=Z.height)}; g.A.gr=function(){g.rV.prototype.gr.call(this);this.iG=null;delete this.Ha;delete this.accountLinkingConfig;delete this.Y;this.S=this.k7=this.playerResponse=this.tG=null;this.YE=this.adaptiveFormats="";delete this.botguardData;this.Qp=this.suggestions=this.gM=null;this.sabrContextUpdates.clear()};var $nn={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},T_0={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},XxX={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},vgG={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"},Y40={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},ggD={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"},S40={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.L(Zy,g.O);g.A=Zy.prototype;g.A.handleExternalCall=function(Z,Q,z){var K=this.state.T[Z],b=this.state.X[Z],q=K;if(b)if(z&&lz(z,r6Q))q=b;else if(!K)throw Error('API call from an untrusted origin: "'+z+'"');this.logApiCall(Z,z);if(q){z=!1;K=g.n(Q);for(b=K.next();!b.done;b=K.next())if(String(b.value).includes("javascript:")){z=!0;break}z&&g.CO(Error('Dangerous call to "'+Z+'" with ['+Q+"]."));return q.apply(this,Q)}throw Error('Unknown API method: "'+Z+'".');}; g.A.logApiCall=function(Z,Q,z){var K=this.app.N();K.Y3&&!this.state.U.has(Z)&&(this.state.U.add(Z),g.DW("webPlayerApiCalled",{callerUrl:K.loaderUrl,methodName:Z,origin:Q||void 0,playerStyle:K.playerStyle||void 0,embeddedPlayerMode:K.JG,errorCode:z}))}; g.A.publish=function(Z){var Q=g.iu.apply(1,arguments);this.state.S.publish.apply(this.state.S,[Z].concat(g.I(Q)));if(Z==="videodatachange"||Z==="resize"||Z==="cardstatechange")this.state.j.publish.apply(this.state.j,[Z].concat(g.I(Q))),this.state.W.publish.apply(this.state.W,[Z].concat(g.I(Q)))}; g.A.hG=function(Z){var Q=g.iu.apply(1,arguments);this.state.S.publish.apply(this.state.S,[Z].concat(g.I(Q)));this.state.j.publish.apply(this.state.j,[Z].concat(g.I(Q)))}; g.A.wX=function(Z){var Q=g.iu.apply(1,arguments);this.state.S.publish.apply(this.state.S,[Z].concat(g.I(Q)));this.state.j.publish.apply(this.state.j,[Z].concat(g.I(Q)));this.state.W.publish.apply(this.state.W,[Z].concat(g.I(Q)))}; g.A.ZG=function(Z){var Q=g.iu.apply(1,arguments);this.state.S.publish.apply(this.state.S,[Z].concat(g.I(Q)));this.state.j.publish.apply(this.state.j,[Z].concat(g.I(Q)));this.state.W.publish.apply(this.state.W,[Z].concat(g.I(Q)));this.state.L.publish.apply(this.state.L,[Z].concat(g.I(Q)))}; g.A.V=function(Z){return this.app.N().V(Z)}; g.A.gr=function(){if(this.state.element){var Z=this.state.element,Q;for(Q in this.state.Y)this.state.Y.hasOwnProperty(Q)&&(Z[Q]=null);this.state.element=null}g.O.prototype.gr.call(this)};g.L(qZ,g.dd);qZ.prototype.publish=function(Z){var Q=g.iu.apply(1,arguments);if(this.L.has(Z))return this.L.get(Z).push(Q),!0;var z=!1;try{for(Q=[Q],this.L.set(Z,Q);Q.length;)z=g.dd.prototype.publish.call.apply(g.dd.prototype.publish,[this,Z].concat(g.I(Q.shift())))}finally{this.L.delete(Z)}return z};g.L(rR,g.O);rR.prototype.gr=function(){this.L.dispose();this.W.dispose();this.j.dispose();this.S.dispose();this.U=this.Y=this.X=this.T=this.K=void 0};var IFG=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.L(ju,Zy);g.A=ju.prototype;g.A.getApiInterface=function(){return Array.from(this.state.K)}; g.A.V4=function(Z,Q){this.state.L.subscribe(Z,Q)}; g.A.j3r=function(Z,Q){this.state.L.unsubscribe(Z,Q)}; g.A.getPlayerState=function(Z){return haG(this.app,Z)}; g.A.kW=function(){return haG(this.app)}; g.A.ulu=function(Z,Q,z){gR(this)&&(M$(this.app,!0,1),o1(this.app,Z,Q,z,1))}; g.A.getCurrentTime=function(Z,Q,z){var K=this.getPlayerState(Z);if(this.app.getAppState()===2&&K===5){var b;return((b=this.app.getVideoData())==null?void 0:b.startSeconds)||0}return this.V("web_player_max_seekable_on_ended")&&K===0?S9n(this.app,Z):Z?this.app.getCurrentTime(Z,Q,z):this.app.getCurrentTime(Z)}; g.A.OI=function(){return this.app.getCurrentTime(1)}; g.A.nI=function(){var Z=this.app.RC(1);return isNaN(Z)?this.getCurrentTime(1):Z}; g.A.z6=function(){return this.app.getDuration(1)}; g.A.BT=function(Z,Q){Z=g.Al(Math.floor(Z),0,100);isFinite(Z)&&iZ(this.app,{volume:Z,muted:this.isMuted()},Q)}; g.A.XNG=function(Z){this.BT(Z,!1)}; g.A.vj=function(Z){iZ(this.app,{muted:!0,volume:this.getVolume()},Z)}; g.A.vqN=function(){this.vj(!1)}; g.A.Mq=function(Z){vq(this.app)&&!this.V("embeds_enable_emc3ds_muted_autoplay")||iZ(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},Z)}; g.A.Tmr=function(){vq(this.app)&&this.V("embeds_enable_emc3ds_muted_autoplay")||this.Mq(!1)}; g.A.getPlayerMode=function(){var Z={};this.app.getVideoData().BN&&(Z.pfp={enableIma:g.ey(this.app.getVideoData())&&this.app.SP().allowImaMonetization,autoplay:OH(this.app.SP()),mutedAutoplay:this.app.SP().mutedAutoplay});return Z}; g.A.bB=function(){var Z=this.app.getPresentingPlayerType();if(Z===2&&!this.app.PN()){var Q=Hf(this.app.W4());if(!h6u(Q)||Lk0(Q))return}Z===3?mI(this.app.W4()).Uf("control_play"):this.app.N().V("html5_ssap_ignore_play_for_ad")&&g.V0(this.app.SP())&&Z===2||this.app.playVideo(Z)}; g.A.txp=function(){M$(this.app,!0,1);this.bB()}; g.A.pauseVideo=function(Z){var Q=this.app.getPresentingPlayerType();if(Q!==2||this.app.PN()||h6u(Hf(this.app.W4())))Q===3?mI(this.app.W4()).Uf("control_pause"):this.app.pauseVideo(Q,Z)}; g.A.WGG=function(){var Z=this.app,Q=!1;Z.Yh.Ph&&(Z.fN.publish("pageTransition"),Q=!0);Z.stopVideo(Q)}; g.A.clearVideo=function(){}; g.A.getAvailablePlaybackRates=function(){var Z=this.app.N();return Z.enableSpeedOptions?["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(Z.W?Z.ancestorOrigins[0]:window.location.origin)||Z.Il?MBQ:Z.supportsVarispeedExtendedFeatures?U6E:Z.V("web_remix_allow_up_to_3x_playback_rate")&&g.HM(Z)?OGU:yj:[1]}; g.A.getPlaybackQuality=function(Z){return(Z=this.app.GW(Z))?Z.getPlaybackQuality():"unknown"}; g.A.eNN=function(){}; g.A.getAvailableQualityLevels=function(Z){return(Z=this.app.GW(Z))?(Z=g.my(Z.L9(),function(Q){return Q.quality}),Z.length&&(Z[0]==="auto"&&Z.shift(),Z=Z.concat(["auto"])),Z):[]}; g.A.dF=function(){return this.getAvailableQualityLevels(1)}; g.A.DU=function(){return this.pW()}; g.A.ZU=function(){return 1}; g.A.getVideoLoadedFraction=function(Z){return this.app.getVideoLoadedFraction(Z)}; g.A.pW=function(){return this.getVideoLoadedFraction()}; g.A.mj=function(){return 0}; g.A.getSize=function(){var Z=this.app.U$().getPlayerSize();return{width:Z.width,height:Z.height}}; g.A.setSize=function(){this.app.U$().resize()}; g.A.loadVideoById=function(Z,Q,z,K){if(!Z)return!1;Z=A2(Z,Q,z);return this.app.loadVideoByPlayerVars(Z,K)}; g.A.CgN=function(Z,Q,z){Z=this.loadVideoById(Z,Q,z,1);M$(this.app,Z,1)}; g.A.cueVideoById=function(Z,Q,z,K){Z=A2(Z,Q,z);this.app.cueVideoByPlayerVars(Z,K)}; g.A.iq=function(Z,Q,z){this.cueVideoById(Z,Q,z,1)}; g.A.loadVideoByUrl=function(Z,Q,z,K){Z=mnd(Z,Q,z);return this.app.loadVideoByPlayerVars(Z,K)}; g.A.YAu=function(Z,Q,z){Z=this.loadVideoByUrl(Z,Q,z,1);M$(this.app,Z,1)}; g.A.cueVideoByUrl=function(Z,Q,z,K){Z=mnd(Z,Q,z);this.app.cueVideoByPlayerVars(Z,K)}; g.A.HX=function(Z,Q,z){this.cueVideoByUrl(Z,Q,z,1)}; g.A.N5=function(){var Z=this.app.N();if(Z.SJ)return"";var Q=this.app.SP(),z=void 0;Q.isLivePlayback||(z=Math.floor(this.app.getCurrentTime(1)));return Z.getVideoUrl(Q.videoId,this.getPlaylistId()||void 0,z)}; g.A.KI=function(){return this.app.getDebugText()}; g.A.getVideoEmbedCode=function(){var Z=this.app.N();if(Z.SJ)return"";var Q=this.app.SP();return Z.getVideoEmbedCode(Q.isPrivate?"":Q.title,this.app.SP().videoId,this.app.U$().getPlayerSize(),this.getPlaylistId()||void 0)}; g.A.zd=function(Z,Q,z){return d8n(this.app,Z,Q,z)}; g.A.removeCueRange=function(Z){return GVr(this.app,Z)}; g.A.loadPlaylist=function(Z,Q,z,K){this.app.loadPlaylist(Z,Q,z,K)}; g.A.q$h=function(Z,Q,z,K){this.loadPlaylist(Z,Q,z,K);M$(this.app,!0,1)}; g.A.cuePlaylist=function(Z,Q,z,K){this.app.cuePlaylist(Z,Q,z,K)}; g.A.nextVideo=function(Z,Q){this.app.nextVideo(Z,Q)}; g.A.u7N=function(){this.nextVideo();M$(this.app,!0,1)}; g.A.previousVideo=function(Z){this.app.previousVideo(Z)}; g.A.aGu=function(){this.previousVideo();M$(this.app,!0,1)}; g.A.playVideoAt=function(Z){this.app.playVideoAt(Z)}; g.A.uJr=function(Z){this.playVideoAt(Z);M$(this.app,!0,1)}; g.A.setShuffle=function(Z){var Q=this.app.getPlaylist();Q&&Q.setShuffle(Z)}; g.A.setLoop=function(Z){var Q=this.app.getPlaylist();Q&&(Q.loop=Z)}; g.A.fI=function(){var Z=this.app.getPlaylist();if(!Z)return null;for(var Q=[],z=0;z<Z.getLength();z++){var K=g.cf(Z,z);K&&Q.push(K.videoId)}return Q}; g.A.getPlaylistIndex=function(){var Z=this.app.getPlaylist();return Z?Z.index:-1}; g.A.getPlaylistId=function(){var Z=this.app.getPlaylist();return Z&&Z.listId?Z.listId.toString():null}; g.A.cY=function(Z){Z==="captions"&&(Z=g.Rq(this.app.W4()))&&!Z.loaded&&Z.load()}; g.A.Ol=function(Z){Z==="captions"&&(Z=g.Rq(this.app.W4()))&&Z.loaded&&Z.M_$()}; g.A.B1=function(Z,Q,z){if(!Q)return null;var K=this.app.W4();return Z==="captions"?(Z=g.Rq(K))&&Z.Pv(Q,z):null}; g.A.Fj=function(Z,Q,z){return this.app.IT().getVideoData().isPrivate&&this.app.N().W?{}:this.B1(Z,Q,z)}; g.A.j8=function(Z){var Q=this.app.W4();if(Z==="captions"){var z;return((z=g.Rq(Q))==null?void 0:z.getOptions())||null}return Z?null:(Z=[],g.Rq(Q)&&Z.push("captions"),Z)}; g.A.getVolume=function(){return this.app.UN.volume}; g.A.isMuted=function(){return this.app.UN.muted}; g.A.destroy=function(){this.app.dispose()}; g.A.logImaAdEvent=function(Z,Q){var z=this.app.N();g.ey(this.app.getVideoData())&&this.app.SP().allowImaMonetization&&(Z={adSource:"EMBEDS_AD_SOURCE_IMA",breakType:Q,embedUrl:g.fMD(this.app.N().loaderUrl),eventType:Z,youtubeHost:g.pE(this.app.N().Ff)||""},Z.embeddedPlayerMode=z.JG,g.DW("embedsAdEvent",Z))}; g.A.mutedAutoplay=function(Z){var Q=this.app.N(),z,K,b;((z=Q.getWebPlayerContextConfig())==null?0:(K=z.embedsHostFlags)==null?0:(b=K.allowMutedAutoplayDurationMode)==null?0:b.length)&&!Q.S&&this.app.mutedAutoplay(Z)}; g.A.preloadVideoById=function(Z,Q,z,K){var b,q;((b=this.app.N().getWebPlayerContextConfig())==null?0:(q=b.embedsHostFlags)==null?0:q.allowPreloadVideoById)&&Z&&(Z=A2(Z,Q,z),this.app.preloadVideoByPlayerVars(Z,K))}; g.A.ZyF=function(Z,Q,z){this.preloadVideoById(Z,Q,z,1)}; g.A.setFauxFullscreen=function(Z){g.fS();this.app.Jg(Z?2:0)}; g.A.EJY=function(Z){var Q,z;((Q=this.app.N().getWebPlayerContextConfig())==null?0:(z=Q.embedsHostFlags)==null?0:z.allowSetFauxFullscreen)&&this.setFauxFullscreen(Z)}; g.A.wakeUpControls=function(){var Z=g.Dy(this);Z&&Z.tP()};var idX="driveweb flix flix_from_driveweb hovercard projector texmex wshbp".split(" ");g.L(YA,ju);g.A=YA.prototype;g.A.nB=function(Z,Q){this.state.W.subscribe(Z,Q)}; g.A.i0f=function(Z,Q){this.state.W.unsubscribe(Z,Q)}; g.A.cueVideoByPlayerVars=function(Z,Q){this.app.cueVideoByPlayerVars(Z,Q)}; g.A.WX=function(Z,Q){Q=Q===void 0?1:Q;this.cueVideoByPlayerVars(XX(this,Z),Q)}; g.A.loadVideoByPlayerVars=function(Z,Q,z,K,b){this.app.loadVideoByPlayerVars(Z,z,Q,K,b)}; g.A.Qup=function(Z,Q,z,K){z=z===void 0?1:z;this.loadVideoByPlayerVars(XX(this,Z),Q,z,K)}; g.A.preloadVideoByPlayerVars=function(Z,Q,z,K,b){z=z===void 0?NaN:z;this.app.preloadVideoByPlayerVars(Z,Q,z,K===void 0?"":K,b===void 0?"":b)}; g.A.euh=function(Z,Q,z,K){Q=Q===void 0?1:Q;this.preloadVideoByPlayerVars(XX(this,Z),Q,z,K)}; g.A.vY=function(Z,Q,z){this.loadVideoById(Z,Q,z,1)}; g.A.uK=function(Z,Q,z){this.loadVideoByUrl(Z,Q,z,1)}; g.A.oH=function(Z){return this.getPlayerState(Z)}; g.A.IV=function(Z){Z=Z===void 0?1:Z;var Q=yQD(this,Z);if(Z=this.app.GW(Z)){Z=Z.getVideoData();Q.backgroundable=Z.backgroundable;Q.eventId=Z.eventId;Q.cpn=Z.clientPlaybackNonce;Q.isLive=Z.isLivePlayback;Q.isWindowedLive=Z.c7;Q.isManifestless=AP(Z);Q.allowLiveDvr=Z.allowLiveDvr;Q.isListed=Z.isListed;Z.liveUtcStartSeconds!=null&&(Q.liveUtcStartSeconds=Z.liveUtcStartSeconds);Z.LZ()&&(Q.isEncrypted=!0);if(Z.S)for(var z=g.n(Z.S.videoInfos),K=z.next();!K.done;K=z.next()){var b=void 0;if((b=K.value.video)== null?0:b.isHdr()){Q.isHdr=!0;break}}var q,r;Q.isMultiChannelAudio=!!((q=Z.W)==null?0:(r=q.audio)==null?0:r.isMultiChannelAudio())}return Q}; g.A.seekBy=function(Z,Q,z,K,b){gR(this)&&o1(this.app,this.app.getCurrentTime()+Z,Q,z,b,K)}; g.A.rNg=function(Z,Q,z){this.seekBy(Z,Q,z,void 0,1)}; g.A.seekTo=function(Z,Q,z,K,b){gR(this)&&o1(this.app,Z,Q,z,K,b)}; g.A.t$f=function(Z,Q,z,K){this.seekTo(Z,Q,z,K===void 0?1:K)}; g.A.getStoryboardFormat=function(){return this.app.getStoryboardFormat()}; g.A.bV=function(Z,Q){return this.getCurrentTime(Z===void 0?1:Z,Q)}; g.A.I7=function(){var Z=this.app.getPresentingPlayerType(!0);Z===2&&this.app.PN()&&(Z=1);return Z}; g.A.getDuration=function(Z,Q){if(this.I7()===3){var z;return((z=mI(this.app.W4()).getProgressState())==null?void 0:z.duration)||0}return Z?this.app.getDuration(Z,Q):this.app.getDuration(Z)}; g.A.uL=function(Z,Q){return this.getDuration(Z===void 0?1:Z,Q)}; g.A.er=function(Z){return this.getVideoLoadedFraction(Z)}; g.A.loadModule=function(Z){if(Z==="annotations_module"){var Q=g.OU(this.app.W4());Q&&!Q.loaded&&Q.load()}this.cY(Z)}; g.A.unloadModule=function(Z){if(Z==="annotations_module"){var Q=g.OU(this.app.W4());Q&&Q.loaded&&Q.unload()}this.Ol(Z)}; g.A.getOption=function(Z,Q,z,K){return(K=this.app.GW(K))&&K.getVideoData().isPrivate&&this.app.N().W?{}:this.setOption(Z,Q,z)}; g.A.XG=function(Z,Q,z){return this.getOption(Z,Q,z,1)}; g.A.getOptions=function(Z){var Q=this.app.W4();switch(Z){case "ad":var z,K;return((z=Hf(Q))==null?void 0:(K=z.getOptions)==null?void 0:K.call(z))||null;case "remote":var b,q;return((b=mI(Q))==null?void 0:(q=b.getOptions)==null?void 0:q.call(b))||null;case "annotations_module":var r,D;return((r=g.OU(Q))==null?void 0:(D=r.getOptions)==null?void 0:D.call(r))||null;case "creatorendscreen":var v,Y;return((v=oq(Q))==null?void 0:(Y=v.getOptions)==null?void 0:Y.call(v))||null;case "unplugged":var X,S;return((X= g.Mp(Q))==null?void 0:(S=X.getOptions)==null?void 0:S.call(X))||null;case "kids":var T,f;return((T=Rtd(Q))==null?void 0:(f=T.getOptions)==null?void 0:f.call(T))||null}if(!Z){Z=this.j8();if(!Z)return Z;Hf(Q)&&Z.push("ad");mI(Q)&&Z.push("remote");g.OU(Q)&&Z.push("annotations_module");oq(Q)&&Z.push("creatorendscreen");g.Mp(Q)&&Z.push("unplugged");Rtd(Q)&&Z.push("kids");return Z}return this.j8(Z)}; g.A.setOption=function(Z,Q,z){if(!Q)return null;var K=this.app.W4();switch(Z){case "ad":return(Z=Hf(K))&&Z.Pv&&Z.Pv(Q,z);case "kids":return(Z=Rtd(K))&&Z.Pv(Q,z);case "remote":return(Z=mI(K))&&Z.Pv(Q,z);case "unplugged":return(Z=g.Mp(K))&&Z.Pv(Q,z);case "annotations_module":return(Z=g.OU(K))&&Z.Pv(Q,z);case "creatorendscreen":return(Z=oq(K))&&Z.Pv(Q,z)}return this.B1(Z,Q,z)}; g.A.addCueRange=function(Z,Q,z,K,b){return d8n(this.app,Z,Q,z,K,b)}; g.A.getDebugText=function(Z){return this.app.getDebugText(Z)}; g.A.getCurrentBroadcastId=function(){return null}; g.A.handleGlobalKeyDown=function(Z,Q,z,K,b,q,r,D){Q=Q===void 0?!1:Q;z=z===void 0?!1:z;K=K===void 0?!1:K;b=b===void 0?!1:b;var v=g.Dy(this);v&&v.handleGlobalKeyDown(Z,Q,z,K,b,q,r,D)}; g.A.handleGlobalKeyUp=function(Z,Q,z,K,b,q,r){Q=Q===void 0?!1:Q;z=z===void 0?!1:z;K=K===void 0?!1:K;b=b===void 0?!1:b;var D=g.Dy(this);D&&D.handleGlobalKeyUp(Z,Q,z,K,b,q,r)}; g.A.setSizeStyle=function(Z,Q){this.app.setSizeStyle(Z,Q)}; g.A.showControls=function(){var Z=g.Dy(this);Z&&Z.showControls(!0)}; g.A.hideControls=function(){var Z=g.Dy(this);Z&&Z.showControls(!1)}; g.A.getVideoContentRect=function(Z){Z=this.app.U$().getVideoContentRect(Z);return{left:Z.left,top:Z.top,width:Z.width,height:Z.height}}; g.A.toggleFullscreen=function(){function Z(z){g.CO(z)} var Q=this.app.N();if(Q.externalFullscreen){if(!g.xa(Q))return this.isFullscreen()?LS(window.document.documentElement):TM(window.document.documentElement).catch(Z)}else if(g.fS()||Q.X)return this.isFullscreen()?LS(hW()):Q.controlsType!=="3"&&g.fS()?TM(this.app.U$().element).catch(Z):(Q=this.app.ES().OA())?TM(Q).catch(Z):Promise.reject(Error("Media element missing"));this.ZG("onFullscreenToggled",this.isFullscreen());return Promise.resolve(void 0)}; g.A.isFullscreen=function(){return this.app.isFullscreen()}; g.A.mB=function(){return this.app.mB()}; g.A.cancelPlayback=function(){var Z=Hf(this.app.W4());Z&&Z.created&&Z.destroy();(Z=this.app.eJ())&&Z.stopVideo();(Z=this.app.W4().Ov.get("endscreen"))&&Z.Tr$()&&g.cq(this.app.fN,!0)}; g.A.getProgressState=function(Z){if(this.I7()===3)return mI(this.app.W4()).getProgressState();var Q=this.app.getVideoData(),z=this.app.GW(Z)||this.app.eJ(),K=z.getPlayerType();a:{var b=this.app.getVideoData();var q;if((q=b.progressBarStartPosition)==null?0:q.utcTimeMillis)if(b=Number(b.progressBarStartPosition.utcTimeMillis)/1E3,!isNaN(b)){b=Su(this,b,Z);break a}b=0}var r;a:{q=this.app.getVideoData();if((r=q.progressBarEndPosition)==null?0:r.utcTimeMillis)if(r=Number(q.progressBarEndPosition.utcTimeMillis)/ 1E3,!isNaN(r)){r=Su(this,r,Z);break a}r=0}q=this.getCurrentTime(Z);Z=this.getDuration(Z);var D=this.app.RC(K),v=this.app.isAtLiveHead(K),Y=this.app.g_();var X=this.app;var S=X.GW(K);S?(S=cp(X,S),X=Pp(X,S.IL(),S)):X=0;S=S9n(this.app,K);z=z.Ry();var T=this.app.getVideoData().sD;K=!T||isNaN(T)?0:Su(this,T,K);return{airingStart:b,airingEnd:r,allowSeeking:this.app.xE(),clipEnd:Q.clipEnd,clipStart:Q.clipStart,current:q,displayedStart:-1,duration:Z,ingestionTime:D,isAtLiveHead:v,loaded:Y,seekableStart:X, seekableEnd:S,offset:z,viewerLivestreamJoinMediaTime:K}}; g.A.isInline=function(){return this.app.isInline()}; g.A.setInline=function(Z){this.app.setInline(Z)}; g.A.aH=function(){return this.app.IT().gy(!0)}; g.A.toggleSubtitles=function(){var Z=g.Rq(this.app.W4());Z&&Z.cxY()}; g.A.getPlayerSize=function(){var Z=this.app.U$().getPlayerSize();return{width:Z.width,height:Z.height}}; g.A.setCenterCrop=function(Z){this.app.U$().setCenterCrop(Z)}; g.A.getLoopVideo=function(){return this.app.getLoopVideo()}; g.A.setLoopVideo=function(Z){this.app.setLoopVideo(Z)}; var GqM="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(" "), PPD="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 rk={},RZd=(rk["api.invalidparam"]=2,rk.auth=150,rk["drm.auth"]=150,rk["heartbeat.net"]=150,rk["heartbeat.servererror"]=150,rk["heartbeat.stop"]=150,rk["html5.unsupportedads"]=5,rk["fmt.noneavailable"]=5,rk["fmt.decode"]=5,rk["fmt.unplayable"]=5,rk["html5.missingapi"]=5,rk["html5.unsupportedlive"]=5,rk["drm.unavailable"]=5,rk["mrm.blocked"]=151,rk["embedder.identity.denied"]=152,rk);g.L(g.$A,YA);g.A=g.$A.prototype;g.A.isExternalMethodAvailable=function(Z,Q){return this.state.T[Z]?!0:!!(this.state.X[Z]&&Q&&lz(Q,r6Q))}; g.A.getBandwidthEstimate=function(){return TK(this.app.N().schedule)}; g.A.reportPlaybackIssue=function(Z){Z=Z===void 0?"":Z;var Q=this.app.eJ();Q&&(Z={gpu:(0,g.aK)(),d:Z},Q.handleError(new N5("feedback",Z)))}; g.A.getInternalApi=function(){return Object.assign({},this.state.Y)}; g.A.getInternalApiInterface=function(){return g.Ie(this.state.Y)}; g.A.queueNextVideo=function(Z,Q,z,K,b){z=z===void 0?NaN:z;this.app.queueNextVideo(Z,Q,z,K===void 0?"":K,b===void 0?"":b)}; g.A.uV=function(Z){Z=this.app.getPlayerStateObject(Z);return{isBuffering:g.t(Z,1),isCued:Z.isCued(),isDomPaused:g.t(Z,1024),isEnded:g.t(Z,2),isError:g.t(Z,128),isOrWillBePlaying:Z.isOrWillBePlaying(),isPaused:Z.isPaused(),isPlaying:Z.isPlaying(),isSeeking:g.t(Z,16),isUiSeeking:g.t(Z,32),isUnstarted:g.t(Z,64)}}; g.A.createSubtitlesModuleIfNeeded=function(){return this.app.createSubtitlesModuleIfNeeded()}; g.A.startSeekCsiAction=function(){this.app.hx().W.Y=(0,g.Nm)()}; g.A.Js=function(Z,Q,z){return this.getCurrentTime(Z===void 0?1:Z,Q,z)}; g.A.seekToStreamTime=function(Z,Q,z,K){var b=this.app;Q=Q===void 0?!0:Q;var q=b.GW(1),r=0;q&&q.getStreamTimeOffset()&&!q.Ry()&&(r=q.getStreamTimeOffset());o1(b,Z-r,Q,z,1,K)}; g.A.getStreamTimeOffset=function(){return this.app.IT().getStreamTimeOffset()}; g.A.seekToLiveHead=function(Z,Q){var z=this.app.IT().getVideoData();z&&z.isLivePlayback&&o1(this.app,Infinity,Z,Q,1)}; g.A.requestSeekToWallTimeSeconds=function(Z,Q){this.app.IT().Pz(Z,Q)}; g.A.vJu=function(Z,Q,z,K,b){this.seekTo(Z,Q,z,K===void 0?1:K,b)}; g.A.cNf=function(Z,Q,z,K){this.seekBy(Z,Q,z,K,1)}; g.A.setVolume=function(Z,Q){this.BT(Z,Q===void 0?!0:Q)}; g.A.mute=function(Z){this.vj(Z===void 0?!0:Z)}; g.A.unMute=function(Z){this.Mq(Z===void 0?!0:Z)}; g.A.syncVolume=function(){var Z=kR9(this.app);iZ(this.app,{volume:Z.volume,muted:Z.muted},!1)}; g.A.getAvailableQualityLabels=function(){return g.my(this.app.IT().L9(),function(Z){return Z.qualityLabel})}; g.A.channelSubscribed=function(){this.hG("SUBSCRIBE",this.app.SP().n6)}; g.A.channelUnsubscribed=function(){this.hG("UNSUBSCRIBE",this.app.SP().n6)}; g.A.setScreenLayer=function(Z){this.app.setScreenLayer(Z)}; g.A.getCurrentPlaylistSequence=function(){return this.app.eJ().getPlaylistSequenceForTime(this.app.getCurrentTime())}; g.A.getPlaylistSequenceForTime=function(Z){return this.app.eJ().getPlaylistSequenceForTime(Z)}; g.A.shouldSendVisibilityState=function(){return!0}; g.A.confirmYpcRental=function(){this.app.IT().o3("ypc_clickwrap")}; g.A.setHomeGroupInfo=function(Z){this.app.N().homeGroupInfo=Z}; g.A.setConnectedRemoteApps=function(Z){this.app.N().yF=Z}; g.A.setLivingRoomAppMode=function(Z){this.app.N().livingRoomAppMode=KS("LIVING_ROOM_APP_MODE_UNSPECIFIED",Z,Eor)}; g.A.setEnablePrivacyFilter=function(Z){this.app.N().enablePrivacyFilter=Z===void 0?!1:Z}; g.A.togglePictureInPicture=function(){this.app.togglePictureInPicture()}; g.A.addUtcCueRange=function(Z,Q,z,K,b){return NTX(this.app,Z,Q,z,K,b)}; g.A.M5=function(Z){Z=Z===void 0?1:Z;var Q=this.IV(Z);if(Z=this.app.GW(Z)){Z=Z.getVideoData();Q.hasProgressBarBoundaries=Z.hasProgressBarBoundaries();Q.isPremiere=Z.isPremiere;Q.itct=Z.KN;Q.playerResponseCpn=Z.playerResponseCpn;var z;var K=Z.hasProgressBarBoundaries()&&((z=Z.progressBarStartPosition)==null?0:z.utcTimeMillis)?sD(Z.progressBarStartPosition.utcTimeMillis):null;Q.progressBarStartPositionUtcTimeMillis=K;var b;z=Z.hasProgressBarBoundaries()&&((b=Z.progressBarEndPosition)==null?0:b.utcTimeMillis)? sD(Z.progressBarEndPosition.utcTimeMillis):null;Q.progressBarEndPositionUtcTimeMillis=z;Q.ypcOriginalItct=Z.Nu;Q.ypcPreview=Z.ypcPreview;Q.paidContentOverlayText=B6d(Z);Q.paidContentOverlayDurationMs=Wtf(Z);Z.Y&&rL(Z.Y)&&(Q.usingLocalMedia="true");Q.transitionEndpointAtEndOfStream=Z.transitionEndpointAtEndOfStream}return Q}; g.A.getAdState=function(){return this.app.getAdState()}; g.A.isNotServable=function(Z){if(Z!==this.app.config.args.video_id)return!1;var Q=(Z=this.app.IT().getPlayerState())?Z.wm:null;return!!(Z&&Q&&g.t(Z,128)&&CPG(Q.errorCode)===5)}; g.A.supportsGaplessAudio=function(){return this.app.N().supportsGaplessAudio()}; g.A.supportsGaplessShorts=function(){return this.app.N().supportsGaplessShorts()}; g.A.enqueueVideoByPlayerVars=function(Z,Q,z,K){z=z===void 0?Infinity:z;this.app.enqueueVideoByPlayerVars(Z,Q,z,K===void 0?"":K)}; g.A.clearQueue=function(){this.app.clearQueue()}; g.A.eK=function(){return g.Dy(this)}; g.A.sendAbandonmentPing=function(){var Z;(Z=this.app.eJ())==null||Z.sendAbandonmentPing()}; g.A.setAutonavState=function(Z,Q){Q=Q===void 0?!1:Q;if(this.V("web_player_autonav_use_server_provided_state")&&!Q&&(Q=this.app.SP(),Q==null?0:xF(Q))){if(this.V("web_player_autonav_server_provided_state_pause_killswitch"))return;if(Z===3)Q.autonavState!==3&&(Q.Am=Q.autonavState);else if(Q.Am!==void 0)Z=Q.Am,Q.Am=void 0;else return}Hrx(this.app,Z)}; g.A.setAutonav=function(Z,Q){this.setAutonavState(Z?2:1,Q===void 0?!1:Q)}; g.A.setLoopRange=function(Z){this.app.setLoopRange(Z)}; g.A.getLoopRange=function(){return this.app.getLoopRange()}; g.A.hasSupportedAudio51Tracks=function(){return this.app.IT().hasSupportedAudio51Tracks()}; g.A.setUserAudio51Preference=function(Z,Q){this.app.IT().setUserAudio51Preference(Z,Q===void 0?!1:Q)}; g.A.getUserAudio51Preference=function(){return this.app.IT().getUserAudio51Preference()}; g.A.setProximaLatencyPreference=function(Z){this.app.IT().setProximaLatencyPreference(Z)}; g.A.getProximaLatencyPreference=function(){return this.app.IT().getProximaLatencyPreference()}; g.A.isProximaLatencyEligible=function(){return this.app.IT().isProximaLatencyEligible()}; g.A.getAppState=function(){return this.app.getAppState()}; g.A.updateLastActiveTime=function(){mH()}; g.A.setBlackout=function(Z){this.app.setBlackout(Z)}; g.A.setUserEngagement=function(Z){this.app.N().TT!==Z&&(this.app.N().TT=Z,this.app.IT().rP())}; g.A.updateSubtitlesUserSettings=function(Z,Q){Q=Q===void 0?!0:Q;g.Rq(this.app.W4()).vB(Z,Q)}; g.A.getCaptionWindowContainerId=function(){var Z=g.Rq(this.app.W4());return Z?Z.getCaptionWindowContainerId():""}; g.A.toggleSubtitlesOn=function(){var Z=g.Rq(this.app.W4());Z&&Z.q6()}; g.A.isSubtitlesOn=function(){var Z=g.Rq(this.app.W4());return Z?Z.isSubtitlesOn():!1}; g.A.getPlayerResponse=function(Z){return(Z=this.app.GW(Z))?Z.getVideoData().getPlayerResponse():null}; g.A.vt=function(){return this.getPlayerResponse(1)}; g.A.getEmbeddedPlayerResponse=function(){return this.app.IT().getVideoData().getEmbeddedPlayerResponse()}; g.A.getWatchNextResponse=function(Z){return(Z=this.app.GW(Z))?Z.getVideoData().getWatchNextResponse():null}; g.A.sI=function(){return this.getWatchNextResponse(1)}; g.A.getHeartbeatResponse=function(Z){return(Z=this.app.GW(Z))?Z.getVideoData().getHeartbeatResponse():null}; g.A.LI=function(){return this.getHeartbeatResponse(1)}; g.A.getStoryboardFrame=function(Z,Q){var z=this.app.Mr();if(!z)return null;Q=z.levels[Q];return Q?(Z=g.RO(Q,Z))?{column:Z.column,columns:Z.columns,height:Z.qc,row:Z.row,rows:Z.rows,url:Z.url,width:Z.sf}:null:null}; g.A.getStoryboardFrameIndex=function(Z,Q){var z=this.app.Mr();if(!z)return-1;Q=z.levels[Q];if(!Q)return-1;Z-=this.Ry();return Q.cF(Z)}; g.A.getStoryboardLevel=function(Z){var Q=this.app.Mr();return Q?(Q=Q.levels[Z])?{index:Z,intervalMs:Q.Y,maxFrameIndex:Q.uH(),minFrameIndex:Q.kO()}:null:null}; g.A.getNumberOfStoryboardLevels=function(){var Z=this.app.Mr();return Z?Z.levels.length:0}; g.A.gF=function(){return this.getAudioTrack(1)}; g.A.getAudioTrack=function(Z){return(Z=this.app.GW(Z))?Z.getAudioTrack():this.app.getVideoData().L4}; g.A.setAudioTrack=function(Z,Q,z){this.I7()===3&&mI(this.app.W4()).Uf("control_set_audio_track",Z);return(z=this.app.GW(z))?z.Wu(Z,Q):!1}; g.A.xnp=function(Z,Q){return this.setAudioTrack(Z,Q,1)}; g.A.Pt=function(){return this.getAvailableAudioTracks(1)}; g.A.getAvailableAudioTracks=function(Z){return this.app.GW(Z).getAvailableAudioTracks()}; g.A.getMaxPlaybackQuality=function(){var Z=this.app.IT();return Z.getVideoData().j?zL(Z.BQ()):"unknown"}; g.A.getUserPlaybackQualityPreference=function(){return this.app.IT().getUserPlaybackQualityPreference()}; g.A.getSubtitlesUserSettings=function(){var Z=g.Rq(this.app.W4());return Z?Z.T6():null}; g.A.resetSubtitlesUserSettings=function(){g.Rq(this.app.W4()).BpN()}; g.A.setMinimized=function(Z){this.app.setMinimized(Z)}; g.A.setOverlayVisibility=function(Z){this.publish("overlayvisibilitychange",Z)}; g.A.setInlinePreview=function(Z){this.app.setInlinePreview(Z)}; g.A.setSqueezeback=function(Z){this.app.setSqueezeback(Z)}; g.A.setGlobalCrop=function(Z){this.app.U$().setGlobalCrop(Z)}; g.A.setAppFullscreen=function(Z){this.app.Jg(Z?4:0)}; g.A.MU=function(){return this.app.MU()}; g.A.getVisibilityState=function(){return this.MU().getVisibilityState(this.o6(),this.mB()||g.Nx(this.app.N()),this.isMinimized(),this.isInline(),this.app.m$(),this.app.CF(),this.app.i5(),this.app.XZ())}; g.A.isMutedByMutedAutoplay=function(){return this.app.kf}; g.A.isMutedByEmbedsMutedAutoplay=function(){return vq(this.app)}; g.A.setInternalSize=function(Z,Q){this.app.U$().setInternalSize(new g.SO(Z,Q))}; g.A.Ry=function(){var Z=this.app.GW();return Z?Z.Ry():0}; g.A.isMinimized=function(){return this.app.isMinimized()}; g.A.m$=function(){return this.app.m$()}; g.A.o6=function(){var Z=this.app.eJ();return!!Z&&Z.o6()}; g.A.setSafetyMode=function(Z){this.app.N().enableSafetyMode=Z}; g.A.canPlayType=function(Z){return this.app.canPlayType(Z)}; g.A.updatePlaylist=function(Z){if(Z){var Q=this.getPlaylistId(),z=!1;Q&&Q!==Z.list&&(z=!0);Z.external_list!==void 0&&(this.app.EZ=zM(!1,Z.external_list));var K=Z.video;(Q=this.app.getPlaylist())&&!z?this.isFullscreen()&&((z=K[Q.index])&&z.encrypted_id!==g.cf(Q).videoId||(Z.index=Q.index)):yc(this.app,{list:Z.list,index:Z.index,playlist_length:K.length});lsX(this.app.getPlaylist(),Z);this.wX("onPlaylistUpdate")}else this.app.updatePlaylist()}; g.A.updateVideoData=function(Z,Q){g.W1(this.app.IT().getVideoData(),Z,Q)}; g.A.updateEnvironmentData=function(Z){pn(this.app.N(),Z,!1)}; g.A.fig=function(Z){this.app.sendVideoStatsEngageEvent(Z,1)}; g.A.productsInVideoVisibilityUpdated=function(Z){this.publish("changeProductsInVideoVisibility",Z)}; g.A.isAtLiveHead=function(Z,Q){return this.app.isAtLiveHead(Z,Q===void 0?!0:Q)}; g.A.getVideoAspectRatio=function(){return this.app.U$().getVideoAspectRatio()}; g.A.getPreferredQuality=function(){var Z=this.app.eJ();return Z?Z.getPreferredQuality():"unknown"}; g.A.getPlaybackQualityLabel=function(Z){if(Z=this.app.GW(Z)){var Q,z;return((z=(Q=Z.getVideoData().j)==null?void 0:Q.video)==null?void 0:z.qualityLabel)||""}return""}; g.A.setPlaybackQualityRange=function(Z,Q,z,K){(K=this.app.GW(K))&&K.PT(g.lJ(Z,Q||Z,!0,"m"),!0,z)}; g.A.mnI=function(Z,Q,z){this.setPlaybackQualityRange(Z,Q,z,1)}; g.A.onAdUxClicked=function(Z,Q){this.publish("aduxclicked",Z,Q)}; g.A.showAirplayPicker=function(){this.app.showAirplayPicker()}; g.A.dispatchReduxAction=function(Z){g.wv.dispatch(Z)}; g.A.highlightSettingsMenuItem=function(Z){this.publish("highlightSettingsMenu",Z)}; g.A.openSettingsMenuItem=function(Z){this.publish("openSettingsMenuItem",Z)}; g.A.LB=function(Z,Q){this.state.j.subscribe(Z,Q)}; g.A.pNN=function(Z,Q){this.state.j.unsubscribe(Z,Q)}; g.A.Sa=function(Z,Q){this.cueVideoByPlayerVars(Z,Q===void 0?1:Q)}; g.A.UBf=function(Z,Q,z,K){this.loadVideoByPlayerVars(Z,Q,z===void 0?1:z,K)}; g.A.MxF=function(Z,Q,z,K){this.preloadVideoByPlayerVars(Z,Q===void 0?1:Q,z,K)}; g.A.getFeedbackProductData=function(){return this.app.getFeedbackProductData()}; g.A.Us=function(){return g.Dy(this).Us()}; g.A.R6=function(){return g.Dy(this).R6()}; g.A.p$=function(){return g.Dy(this).p$()}; g.A.FJ=function(){return this.eK().FJ()}; g.A.E9=function(){var Z=g.iu.apply(0,arguments),Q;(Q=this.FJ()).E9.apply(Q,g.I(Z))}; g.A.Bv=function(){this.FJ().Bv()}; g.A.M9=function(){this.FJ().M9()}; g.A.zo=function(){this.FJ().hide()}; g.A.Ll=function(Z,Q,z,K,b,q,r,D){this.FJ().Ll(Z,Q,z,K,b,q,r,D)}; g.A.Bw=function(Z,Q){this.FJ().Bw(Z,Q)}; g.A.bl=function(Z,Q,z,K,b){this.eK().bl(Z,Q,z,K,b)}; g.A.gg=function(Z){this.FJ().setEnabled(Z)}; g.A.E_=function(Z,Q){this.eK().E_(Z,Q)}; g.A.Sh=function(Z,Q){this.eK().Sh(Z,Q)}; g.A.WO=function(Z,Q){this.eK().WO(Z,Q)}; g.A.ge=function(){this.eK().ge()}; g.A.dQ=function(Z,Q){this.eK().dQ(Z,Q)}; g.A.L2=Qx(4);g.A.VX=Qx(6);g.A.Jn=Qx(9);g.A.Re=Qx(12);g.A.renderChapterSeekingAnimation=function(Z,Q,z){this.eK().renderChapterSeekingAnimation(Z,Q,z)}; g.A.Gb=function(){this.eK().Gb()}; g.A.getWebPlayerContextConfig=function(){return this.app.N().getWebPlayerContextConfig()}; g.A.notifyShortsAdSwipeEvent=function(){this.publish("shortsadswipe")}; g.A.vH=function(){var Z=this.app.eJ();return Z?Z.vH():""};g.L(g.LW,g.$A);g.A=g.LW.prototype;g.A.G2=function(Z,Q,z,K,b,q,r){return this.app.G2(Z,Q,z,K,b,q,r)}; g.A.v0=function(){return this.app.v0()}; g.A.SV=Qx(14);g.A.W4=function(){return this.app.W4()}; g.A.HN=function(){var Z=this.W4().Ov.get("endscreen");return!!Z&&Z.HN()}; g.A.getRootNode=function(){return this.U$().element}; g.A.N=function(){return this.app.N()}; g.A.BM=Qx(17);g.A.Na=function(Z){return this.app.Na(Z)}; g.A.l7=function(){var Z;return((Z=g.Dy(this))==null?void 0:Z.l7())||null}; g.A.yC=function(){var Z;return(Z=this.app.eJ())==null?void 0:Z.yC()}; g.A.getPlayerStateObject=function(Z){return this.app.getPlayerStateObject(Z)}; g.A.U$=function(){return this.app.U$()}; g.A.getPlaylist=function(){return this.app.getPlaylist()}; g.A.getVideoData=function(Z,Q){Q=Q===void 0?!1:Q;var z=this.app.GW(Z);if(!z)return null;z=z.getVideoData();if(Q)var K=z;else if(z.enableServerStitchedDai&&Z===2||g.V0(z)&&Z!==1)a:{z=this.app;Q=z.getVideoData();if(z.Qk){Z=z.Qk;z=z.getCurrentTime();if(Z.qw)var b=void 0;else{var q=void 0;Z.Jo&&(q=Z.S.get(Z.Jo));if(!q){q=p2x(Z,z*1E3);var r=(b=q)==null?void 0:b.cpn;Z.Jo?r&&Z.Jo!==r&&Z.Sf({cpcnm:r+"_"+Z.Jo,cmt:z.toFixed(3)}):Z.Sf({cpcna:r,cmt:z.toFixed(3)})}b=(K=q)==null?void 0:K.videoData}Q=b||Q}else if(z.jf&& z.eJ()){K=z.jf.getVideoData(Z);break a}K=Q}else K=z;return K}; g.A.wI=function(){var Z;return((Z=this.app.eJ())==null?void 0:Z.wI())||null}; g.A.Mr=function(Z){return this.app.Mr(Z)}; g.A.XZ=function(){return this.app.XZ()}; g.A.isHdr=function(){var Z=this.app.eJ();return Z?Z.isHdr():!1}; g.A.W6=function(){return this.app.W6()}; g.A.isEmbedsShortsMode=function(){var Z=g.Dy(this),Q=this.getVideoData();Z=Z?Z.xQ:this.getPlayerSize();var z=!!this.getPlaylist();return!(!Q||!Q.isEmbedsShortsMode(new g.SO(Z.width,Z.height),z))}; g.A.n2=function(Z){this.app.n2(Z)}; g.A.q8=function(Z,Q,z,K,b){this.app.Os(Z,Q,z,K,b)}; g.A.bE=function(Z,Q){this.app.bE(Z,Q)}; g.A.playVideo=function(Z,Q){try{if(this.getPresentingPlayerType()===3){mI(this.app.W4()).Uf("control_play");return}if(!Z&&this.getPresentingPlayerType()===2){var z=Hf(this.app.W4());if(z&&Lk0(z))return}}catch(K){g.Rm(K)}this.app.playVideo(Z,Q)}; g.A.stopVideo=function(Z){this.app.GW(Z).stopVideo()}; g.A.RR=function(Z){this.app.GW(Z).RR()}; g.A.addEventListener=function(Z,Q){this.state.S.subscribe(Z,Q)}; g.A.removeEventListener=function(Z,Q){this.state.S.unsubscribe(Z,Q)}; g.A.u4=function(Z){this.app.u4(Z)}; g.A.setPlaybackQuality=function(Z,Q){this.setPlaybackQualityRange(Z,Z,Q)}; g.A.L9=function(){var Z={},Q=this.app.eJ().L9();Q=g.n(Q);for(var z=Q.next();!z.done;z=Q.next())z=z.value,Z[z.quality]=z;return Z}; g.A.AC=function(){return this.app.eJ().AC()}; g.A.d_=Qx(22);g.A.Xg=function(Z){this.app.Xg(Z);Z&&Hrx(this.app,Z)}; g.A.getVideoUrl=function(Z,Q,z,K){var b=this.getPresentingPlayerType(),q=b===2;if(K&&q||b===3)q=!1,b=1;K=this.getVideoData(b);if(!K)return"";var r;Z||K.isLivePlayback||(r=Math.floor(this.getCurrentTime(b)));Z=q?void 0:this.getPlaylistId()||void 0;Q&&Z==="WL"&&(Z=void 0);return this.app.getVideoUrl(K.videoId,Z,r,Q,z)}; g.A.mq=Qx(24);g.A.YS=Qx(29);g.A.BP=function(Z){var Q;(Q=this.app.eJ())==null||Q.BP(Z)}; g.A.Iq=Qx(34);g.A.qa=Qx(39);g.A.d2=function(Z,Q){this.W4().d2(Z,Q)}; g.A.Ls=function(){var Z=g.OU(this.W4());return!!Z&&Z.Ls()}; g.A.WH=function(){var Z=g.OU(this.W4());return!!Z&&Z.WH()}; g.A.K2=function(Z,Q,z){var K=g.OU(this.W4());K&&K.K2(Z,Q,z)}; g.A.bd=Qx(40);g.A.y0=function(){var Z;(Z=this.app.eJ())!=null&&Z.Iu.y0()}; g.A.wK=function(Z){this.wX("onVideoAreaChange");this.wX(Z?"onShowControls":"onHideControls")}; g.A.qE=function(Z,Q){var z=g.Dy(this);if(z)return z.qE(Z,Q);Z=this.app.U$().KZ();return new g.ro(0,0,Z.width,Z.height)}; g.A.Bm=function(){var Z=this.W4().Ov.get("heartbeat");return!!Z&&Z.Bm()}; g.A.xE=function(){var Z=this.N();if(Z.Vp||Z.disableSeek)return!1;var Q=this.app.eJ();if(!Q)return!1;var z=Q.getVideoData();if(!z.hH()||g.md(z)||this.getPresentingPlayerType()===2&&!this.app.PN()||z.GJ()&&this.getPresentingPlayerType(!0)===2||Q.Um()&&this.getPresentingPlayerType()!==3)return!1;Z=g.PZ(Z);return g.DT(Z)&&!z.rj||vq(this.app)?!1:!0}; g.A.Wm=function(){var Z=this.app.eJ();return Z?Z.Ad():!1}; g.A.isLifaAdPlaying=function(){var Z,Q=(Z=this.getVideoData())==null?void 0:Z.GJ();return this.getPresentingPlayerType(Q)===2}; g.A.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()}; g.A.zw=function(){var Z;(Z=this.app.eJ())==null||Z.zw()}; g.A.sendVideoStatsEngageEvent=function(Z,Q,z){this.app.sendVideoStatsEngageEvent(Z,z,Q)}; g.A.df=function(Z,Q,z){this.app.Mz(Z,Q,z)}; g.A.Pk=function(Z,Q){this.app.D6(Z,Q)}; g.A.US=function(Z,Q){$8u(this.app,Z,Q)}; g.A.KJ=Qx(43);g.A.cJ=function(Z){return this.app.cJ(Z)}; g.A.o3=function(Z,Q){var z;(z=this.app.GW(Q))==null||z.o3(Z)}; g.A.Um=function(){var Z=this.app.GW();return Z?Z.Um():!0}; g.A.HL=function(){var Z=this.getVideoData();return!!Z&&(Z.HL()||!!Z.hlsFormats||!!Z.A4)}; g.A.getPlaybackRate=function(){return this.app.IT().getPlaybackRate()}; g.A.setPlaybackRate=function(Z,Q){this.app.setPlaybackRate(Z,Q)}; g.A.ES=function(){return this.app.ES()}; g.A.hx=function(){return this.app.hx()}; g.A.Ax=function(Z){return this.app.Ax(Z)}; g.A.createClientVe=function(Z,Q,z,K){this.N().Zu&&this.app.cM.createClientVe(Z,Q,z,K===void 0?!1:K)}; g.A.createServerVe=function(Z,Q,z){this.N().Zu&&this.app.cM.createServerVe(Z,Q,z===void 0?!1:z)}; g.A.setTrackingParams=function(Z,Q){this.N().Zu&&this.app.cM.setTrackingParams(Z,Q)}; g.A.logClick=function(Z,Q){this.N().Zu&&(this.app.cM.click(Z,Q),this.publish("veClickLogged",Z))}; g.A.logVisibility=function(Z,Q,z){this.N().Zu&&this.app.cM.Wh(Z,Q,z)}; g.A.hasVe=function(Z){return this.N().Zu?this.app.cM.hasVe(Z):!1}; g.A.destroyVe=function(Z){this.N().Zu&&this.app.cM.destroyVe(Z)}; g.A.getPresentingPlayerType=function(Z){return this.app.getPresentingPlayerType(Z)}; g.A.TA=function(){this.app.TA()}; g.A.GS=Qx(45);g.A.Oj=function(Z){this.app.Oj(Z)}; g.A.Kn=function(){this.app.Kn()}; g.A.iA=function(){return this.app.iA()}; g.A.addPlayerResponseForAssociation=function(Z){this.app.addPlayerResponseForAssociation(Z)}; g.A.finishSegmentByCpn=function(Z,Q,z){return this.app.finishSegmentByCpn(Z,Q,z)}; g.A.Fq=function(Z,Q,z,K,b,q,r){return this.app.Fq(Z,Q,z,K,b,q,r)}; g.A.jL=function(Z,Q,z,K,b,q,r){return this.app.jL(Z,Q,z,K,b,q,r)}; g.A.QS=function(){return this.app.QS()}; g.A.YP=function(Z){this.app.YP(Z)}; g.A.XS=function(Z,Q){Q=Q===void 0?Infinity:Q;this.app.XS(Z===void 0?-1:Z,Q)}; g.A.e1=function(Z){var Q;(Q=g.Rq(this.W4()))==null||Q.e1(Z)}; g.A.a8=function(Z,Q,z){this.app.a8(Z,Q,z)}; g.A.SS=function(){return this.app.SS()}; g.A.FC=function(Z,Q,z){this.app.FC(Z,Q,z===void 0?0:z)}; g.A.dV=function(){return this.app.dV()}; g.A.PN=function(){return this.app.PN()}; g.A.eV=function(Z,Q,z){return this.app.eV(Z,Q,z)}; g.A.pN=function(Z,Q,z,K){z=z===void 0?!1:z;var b;(b=this.app.GW(K))==null||b.pN(Z,Q,z)}; g.A.p_=function(Z,Q){this.publish("aduxmouseover",Z,Q)}; g.A.Iz=function(Z,Q){this.publish("aduxmouseout",Z,Q)}; g.A.MY=function(Z,Q){this.publish("muteadaccepted",Z,Q)}; g.A.IG=function(){return this.app.U$().IG()}; g.A.Kj=function(Z){this.app.U$().Kj(Z)}; g.A.x6=function(Z){return Z?this.app.Dy():(Z=this.app.eJ())?Z.x6():!1}; g.A.RM=function(Z){this.app.RM(Z)}; g.A.aP=function(){this.app.IT().aP()}; g.A.ED=function(){var Z;(Z=this.app.eJ())==null||Z.ED()}; g.A.yY=function(){this.app.yY()}; g.A.getGetAdBreakContext=function(){var Z=this.app.IT();return Z.getVideoData().getGetAdBreakContext(Z.getCurrentTime(),Z.Ry())}; g.A.v_=function(Z,Q){var z;(z=this.app.eJ())==null||z.v_(Z,Q)}; g.A.R5=function(){var Z;return((Z=this.app.eJ())==null?void 0:Z.R5())||!1};var aT;g.L(ir,O7);ir.prototype.rH=function(Z,Q){Z=O7.prototype.rH.call(this,Z,Q);return Object.assign({},Z,this.requestHeaders)};g.L(g.CW,g.gV);g.A=g.CW.prototype;g.A.show=function(){var Z=this.y5();g.gV.prototype.show.call(this);this.JG&&(this.X.Z(window,"blur",this.oT),this.X.Z(pW(this),"click",this.h$));Z||this.publish("show",!0)}; g.A.hide=function(){var Z=this.y5();g.gV.prototype.hide.call(this);OdD(this);Z&&this.publish("show",!1)}; g.A.Gz=function(Z,Q){this.j=Z;this.jJ.show();Q?(this.U||(this.U=this.X.Z(this.J,"appresize",this.h3)),this.h3()):this.U&&(this.X.oy(this.U),this.U=void 0)}; g.A.O3=function(){this.j&&this.element&&(this.j.getAttribute("aria-haspopup"),this.j.setAttribute("aria-expanded","true"),this.focus())}; g.A.h3=function(){var Z=g.Dy(this.J);this.j&&Z.bl(this.element,this.j)}; g.A.oT=function(){var Z=this.y5();OdD(this);this.jJ.hide();Z&&this.publish("show",!1)}; g.A.h$=function(Z){var Q=ys(Z);Q&&(g.bG(this.element,Q)||this.j&&g.bG(this.j,Q)||!g.Is(Z))||this.oT()}; g.A.y5=function(){return this.RT&&this.jJ.state!==4};g.L(MZ,g.CW);MZ.prototype.Gz=function(){g.CW.prototype.Gz.call(this);this.dialog.focus()};g.L(g.Oq,g.gV);g.Oq.prototype.setIcon=function(Z){this.updateValue("icon",Z)}; g.Oq.prototype.updateValue=function(Z,Q){g.gV.prototype.updateValue.call(this,Z,Q);this.publish("size-change")};g.zN={Ix:15,UE$:14,vZY:13,G9:12,iD:11,j7:10,dO:9,Ul:8,AUDIO:7,SUBTITLES:6,SLEEP_TIMER:5,YC:4,CR:3,ESp:2,REMOTE:1,fHf: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.L(Bq,g.Oq);Bq.prototype.yw=function(Z){this.j&&this.J.logVisibility(this.element,this.Y&&Z)}; Bq.prototype.W=function(){var Z,Q,z=(Z=this.J.getVideoData())==null?void 0:(Q=Z.accountLinkingConfig)==null?void 0:Q.linked;if(z&&!this.Y){var K;Z=(K=this.J.getVideoData())==null?void 0:K.accountLinkingConfig;this.setIcon(ni());var b;g.Uq(this,Wq(Z==null?void 0:(b=Z.menuData)==null?void 0:b.connectedMenuLabel));var q,r,D;this.S=new MZ(this.J,Wq(Z==null?void 0:(q=Z.menuData)==null?void 0:q.connectedDialogTitle),Wq(Z==null?void 0:(r=Z.menuData)==null?void 0:r.connectedDialogMessage),Wq(Z==null?void 0: (D=Z.menuData)==null?void 0:D.confirmButtonText));g.W(this,this.S);var v;K=(Z==null?void 0:(v=Z.menuData)==null?void 0:v.trackingParams)||null;(this.j=!!K)&&this.J.setTrackingParams(this.element,K);this.Kd.Mb(this);this.Y=!0}else!z&&this.Y&&(this.Kd.Ne(this),this.Y=!1)}; Bq.prototype.onClick=function(){this.j&&this.J.logClick(this.element);this.Kd.oT();this.S&&this.S.Gz()};g.L(V7,g.O);V7.prototype.V=function(Z){return this.api.V(Z)};g.L(kA,V7);kA.prototype.onVideoDataChange=function(Z){if(!Z.accountLinkingConfig){var Q,z=(Q=Z.getPlayerResponse())==null?void 0:Q.accountLinkingConfig;Z.accountLinkingConfig=z}var K;if(Q=(K=Z.accountLinkingConfig)==null?void 0:K.alsParam)Z.rA=Q}; kA.prototype.setAccountLinkState=function(Z){this.api.getVideoData().rA=Z;this.api.y0()}; kA.prototype.updateAccountLinkingConfig=function(Z){var Q=this.api.getVideoData(),z=Q.accountLinkingConfig;z&&(z.linked=Z);this.api.publish("videodatachange","dataupdated",Q,this.api.getPresentingPlayerType())};g.L(xA,V7); xA.prototype.j=function(Z){var Q=Z.getId(),z=this.api.getVideoData(1),K=!this.api.isInline();if(!z.inlineMetricEnabled&&!this.api.V("enable_player_logging_lr_home_infeed_ads")||K){if(Q==="part2viewed"){if(z.x5&&g.of(z.x5),z.RN&&t2(this,z.RN),z.nE)for(var b={CPN:this.api.getVideoData().clientPlaybackNonce},q=g.n(z.nE),r=q.next();!r.done;r=q.next())t2(this,g.Pk(r.value,b))}else Q==="conversionview"?this.api.aP():Q==="engagedview"&&z.NU&&(b={CPN:this.api.getVideoData().clientPlaybackNonce},g.of(g.Pk(z.NU, b)));z.GE&&(b=z.GE,q=Z.getId(),b=qi(b,{label:q}),g.of(b));switch(Q){case "videoplaytime25":z.k5&&t2(this,z.k5);z.m2&&FX(this,z.m2);z.yq&&g.of(z.yq);break;case "videoplaytime50":z.oE&&t2(this,z.oE);z.s2&&FX(this,z.s2);z.AI&&g.of(z.AI);break;case "videoplaytime75":z.fG&&t2(this,z.fG);z.Xb&&FX(this,z.Xb);z.Py&&g.of(z.Py);break;case "videoplaytime100":z.t3&&t2(this,z.t3),z.MX&&FX(this,z.MX),z.Kb&&g.of(z.Kb)}(b=this.api.getVideoData().iG)&&kqM(this,b,Z.getId())&&kqM(this,b,Z.getId()+"gaia")}if(z.inlineMetricEnabled&& !K)switch(Q){case "videoplaybackstart":var D,v=(D=z.Yt)==null?void 0:D.Y;v&&t2(this,v);break;case "videoplayback2s":(D=(v=z.Yt)==null?void 0:v.S)&&t2(this,D);break;case "videoplayback10s":var Y;(D=(Y=z.Yt)==null?void 0:Y.j)&&t2(this,D)}this.api.Pk([Z],1)};g.L(xnx,V7);g.L(eu,g.x);g.A=eu.prototype; g.A.xr=function(){var Z;if(Z=this.J.getPresentingPlayerType()!==3&&g.Ge(this.J)&&this.J.U$().getPlayerSize().width>=400)if(Z=this.SP(),this.J.N().V("client_respect_autoplay_switch_button_renderer"))Z=!!Z.autoplaySwitchButtonRenderer;else{var Q,z,K,b;Z=!!((Q=Z.getWatchNextResponse())==null?0:(z=Q.contents)==null?0:(K=z.twoColumnWatchNextResults)==null?0:(b=K.autoplay)==null?0:b.autoplay)!==!1}if(Z)this.Y||(this.Y=!0,this.Wh(this.Y),this.J.N().V("web_player_autonav_toggle_always_listen")||tmM(this), Q=this.SP(),this.MH(Q.autonavState),this.J.logVisibility(this.element,this.Y));else if(this.Y=!1,this.Wh(this.Y),!this.J.N().V("web_player_autonav_toggle_always_listen"))for(this.J.N().V("web_player_autonav_toggle_always_listen"),Q=g.n(this.j),z=Q.next();!z.done;z=Q.next())this.oy(z.value)}; g.A.MH=function(Z){eZX(this)?this.isChecked=Z!==1:((Z=Z!==1)||(g.B6(),Z=g.nA("web_autonav_allow_off_by_default")&&!g.W6(0,141)&&g.Ft("AUTONAV_OFF_BY_DEFAULT")?!1:!g.W6(0,140)),this.isChecked=Z);Flu(this)}; g.A.onClick=function(){this.isChecked=!this.isChecked;this.J.Xg(this.isChecked?2:1);Flu(this);if(eZX(this)){var Z=this.SP().autoplaySwitchButtonRenderer;this.isChecked&&(Z==null?0:Z.onEnabledCommand)?this.J.hG("innertubeCommand",Z.onEnabledCommand):!this.isChecked&&(Z==null?0:Z.onDisabledCommand)&&this.J.hG("innertubeCommand",Z.onDisabledCommand)}this.J.logClick(this.element)}; g.A.getValue=function(){return this.isChecked}; g.A.SP=function(){return this.J.getVideoData(1)};g.L(wxG,V7);g.L(wR,g.Oq);wR.prototype.onClick=function(){this.enabled&&(Eq(this,!this.checked),this.publish("select",this.checked))}; wR.prototype.getValue=function(){return this.checked}; wR.prototype.setEnabled=function(Z){(this.enabled=Z)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var lFx=["en-CA","en","es-MX","fr-CA"];g.L(bl,wR);bl.prototype.E$=function(Z){Z?this.Y||(this.Kd.Mb(this),this.Y=!0):this.Y&&(this.Kd.Ne(this),this.Y=!1);this.Y&&Eq(this,Sid())}; bl.prototype.W=function(){g.jn(this.element,"ytp-menuitem-highlight-transition-enabled")}; bl.prototype.S=function(Z){var Q=Sid();Z!==Q&&(Q=g.B6(),kT(190,Z),kT(192,!0),Q.save(),this.J.hG("cinematicSettingsToggleChange",Z))}; bl.prototype.gr=function(){this.Y&&this.Kd.Ne(this);wR.prototype.gr.call(this)};g.L(qK,V7);qK.prototype.updateCinematicSettings=function(Z){this.Y=Z;var Q;(Q=this.menuItem)==null||Q.E$(Z);this.api.publish("onCinematicSettingsVisibilityChange",Z)};g.L(rF,V7);rF.prototype.jM=function(Z,Q){Q=Q.clipConfig;Z==="dataloaded"&&Q&&Q.startTimeMs!=null&&Q.endTimeMs!=null&&this.api.setLoopRange({startTimeMs:Math.floor(Number(Q.startTimeMs)),endTimeMs:Math.floor(Number(Q.endTimeMs)),postId:Q.postId,type:"clips"})};g.L(AI,V7);AI.prototype.setCreatorEndscreenVisibility=function(Z){var Q;(Q=oq(this.api.W4()))==null||Q.Wh(Z)}; AI.prototype.Y=function(Z){function Q(K){K==="creatorendscreen"&&(K=oq(z.api.W4()))&&K.Z0$(z.hideButton)} var z=this;this.hideButton=Z;this.events.Z(this.api,"modulecreated",Q);Q("creatorendscreen")};g.L(jT,wR);jT.prototype.S=function(Z){this.W(Z?1:0)}; jT.prototype.j=function(){var Z=this.hasDrcAudioTrack(),Q=this.Y()===1&&Z;Eq(this,Q);this.setEnabled(Z)}; jT.prototype.gr=function(){this.Kd.Ne(this);wR.prototype.gr.call(this)};g.L(D6,V7);D6.prototype.getDrcUserPreference=function(){return this.Y}; D6.prototype.setDrcUserPreference=function(Z){g.CS("yt-player-drc-pref",Z,31536E3);Z!==this.Y&&(this.Y=Z,this.updateEnvironmentData(),this.j()&&this.api.ED())}; D6.prototype.updateEnvironmentData=function(){this.api.N().y7=this.Y===1}; D6.prototype.j=function(){var Z,Q,z=(Z=this.api.getVideoData())==null?void 0:(Q=Z.S)==null?void 0:Q.Y;if(!z)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.V("mta_drc_mutual_exclusion_removal")){var K=this.api.getAudioTrack().Qw.id;return ih(z,function(b){var q;return b.audio.Y&&((q=b.Qw)==null?void 0:q.id)===K})}return ih(z,function(b){var q; return((q=b.audio)==null?void 0:q.Y)===!0})};g.L(v7,V7);v7.prototype.onVideoDataChange=function(){var Z=this,Q=this.api.getVideoData();this.api.US("embargo",1);var z=Q==null?void 0:Q.qX.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(z==null?0:z.length)?zeu(this,z.filter(function(K){return QLn(Z,K)})):(Q==null?0:Q.cueRanges)&&zeu(this,Q.cueRanges.filter(function(K){return QLn(Z,K)}))}; v7.prototype.j=function(Z){return Z.embargo!==void 0}; v7.prototype.gr=function(){V7.prototype.gr.call(this);this.Y={}};g.L(gF,V7); gF.prototype.addEmbedsConversionTrackingParams=function(Z){var Q=this.api.N(),z=Q.widgetReferrer,K=Q.NB,b=this.Y,q="",r=Q.getWebPlayerContextConfig();r&&(q=r.embedsIframeOriginParam||"");z.length>0&&(Z.embeds_widget_referrer=z);K.length>0&&(Z.embeds_referring_euri=K);Q.W&&q.length>0&&(Z.embeds_referring_origin=q);r&&r.embedsFeature&&(Z.feature=r.embedsFeature);b.length>0&&(Q.V("embeds_web_enable_lite_experiment_control_arm_logging")?b.unshift(28572):g.DT(g.PZ(Q))&&b.unshift(159628),Q=b.join(","),Q= g.kq()?Q:g.LG(Q,4),Z.source_ve_path=Q);this.Y.length=0};g.L(K54,V7);g.L(bYf,V7);g.L(YB,g.O);YB.prototype.gr=function(){g.O.prototype.gr.call(this);this.Y=null;this.j&&this.j.disconnect()};g.L(rdf,V7);g.L(X2,g.x);X2.prototype.show=function(){g.x.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; X2.prototype.onVideoDataChange=function(Z){var Q,z,K=(Q=this.api.getVideoData())==null?void 0:(z=Q.getPlayerResponse())==null?void 0:z.playabilityStatus;K&&(Q=Ad4(K),g.t(this.api.getPlayerStateObject(),128)||Z==="dataloaderror"||!Q?(this.j=0,ST(this),this.hide()):(Z=(Q.remainingTimeSecs||0)*1E3,Z>0&&(this.show(),this.updateValue("label",SZ(Q.label)),DPD(this,Z))))}; X2.prototype.gr=function(){ST(this);g.x.prototype.gr.call(this)};g.L(vNX,V7);g.L($B,g.x);$B.prototype.onClick=function(){this.fN.logClick(this.element);this.fN.hG("onFullerscreenEduClicked")}; $B.prototype.E$=function(){this.fN.isFullscreen()?this.j?this.Y.hide():this.Y.show():this.hide();this.fN.logVisibility(this.element,this.fN.isFullscreen()&&!this.j)};g.L(TN,V7);TN.prototype.updateFullerscreenEduButtonSubtleModeState=function(Z){var Q;(Q=this.Y)!=null&&(g.vC(Q.element,"ytp-fullerscreen-edu-button-subtle",Z),Z&&!Q.S&&(Q.element.setAttribute("title","Scroll for details"),fW(Q.fN,Q.element,Q),Q.S=!0))}; TN.prototype.updateFullerscreenEduButtonVisibility=function(Z){var Q;(Q=this.Y)!=null&&(Q.j=Z,Q.E$())};g.L(gNf,g.x);g.L(SeD,V7);g.L(fL,V7);fL.prototype.getSphericalProperties=function(){var Z=g.y7(this.api.W4());return Z?Z.getSphericalProperties():{}}; fL.prototype.setSphericalProperties=function(Z){if(Z){var Q=g.y7(this.api.W4());Q&&Q.setSphericalProperties(Z,!0)}};g.L(hI,V7);g.A=hI.prototype;g.A.createClientVe=function(Z,Q,z,K){this.api.createClientVe(Z,Q,z,K===void 0?!1:K)}; g.A.createServerVe=function(Z,Q,z){this.api.createServerVe(Z,Q,z===void 0?!1:z)}; g.A.setTrackingParams=function(Z,Q){this.api.setTrackingParams(Z,Q)}; g.A.logClick=function(Z,Q){this.api.logClick(Z,Q)}; g.A.logVisibility=function(Z,Q,z){this.api.logVisibility(Z,Q,z)}; g.A.hasVe=function(Z){return this.api.hasVe(Z)}; g.A.destroyVe=function(Z){this.api.destroyVe(Z)};var T04=!1;nL.prototype.setPlaybackRate=function(Z){this.playbackRate=Math.max(1,Z)}; nL.prototype.getPlaybackRate=function(){return this.playbackRate};yZ.prototype.eh=function(Z){var Q=g.QH(Z.info.Y.info,this.kh.fd),z=Z.info.rr+this.W,K=Z.info.startTime*1E3;if(this.policy.s$)try{K=this.policy.s$?g.FM(Z)*1E3:Z.info.startTime*1E3}catch(r){Math.random()>.99&&this.logger&&(K=m8(Z.Y).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:Z.info.O8(),encodedDataView:g.hj(K,4)})),K=Z.info.startTime*1E3}var b=Z.info.clipId,q=this.policy.s$?g.SZG(Z)*1E3:Z.info.duration*1E3;this.policy.s$&&(K<0||q<0)&&(this.logger&&(this.logger({missingSegInfo:Z.info.O8(), startTimeMs:K,durationMs:q}),this.policy.rj||(K<0&&(K=Z.info.startTime*1E3),q<0&&(q=Z.info.duration*1E3))),this.policy.rj&&(K<0&&(K=Z.info.startTime*1E3),q<0&&(q=Z.info.duration*1E3)));return{formatId:Q,rr:z,startTimeMs:K,clipId:b,cX:q}}; yZ.prototype.Oq=function(Z){this.timestampOffset=Z};GN.prototype.seek=function(Z,Q){Z!==this.Y&&(this.seekCount=0);this.Y=Z;var z=this.videoTrack.j,K=this.audioTrack.j,b=this.audioTrack.TW,q=p3M(this,this.videoTrack,Z,this.videoTrack.TW,Q);Q=p3M(this,this.audioTrack,this.policy.yk?Z:q,b,Q);Z=Math.max(Z,q,Q);this.L=!0;this.kh.isManifestless&&(iYG(this,this.videoTrack,z),iYG(this,this.audioTrack,K));return Z}; GN.prototype.isSeeking=function(){return this.L}; GN.prototype.Oe=function(Z){this.S=Z}; var CJn=2/24;var UPG=0;g.A=oA.prototype;g.A.Sw=function(){this.jJ=this.now();HgG(this.Bh,this.jJ);this.H4.Sw()}; g.A.qD=function(Z,Q){var z=this.policy.j?(0,g.Nm)():0;B7(this,Z,Q);Z-this.K<10&&this.j>0||this.Iv(Z,Q);this.H4.qD(Z,Q);this.policy.j&&(Z=(0,g.Nm)()-z,this.F7+=Z,this.CN=Math.max(Z,this.CN))}; g.A.Iv=function(Z,Q){var z=(Z-this.K)/1E3,K=Q-this.S;this.AR||(SY(this.Bh,z,K),this.Hz(z,K));this.K=Z;this.S=Q}; g.A.cS=function(){this.KN&&OYx(this);this.H4.cS()}; g.A.Gt=function(Z){this.KN||(this.KN=this.L-this.sA+Z,this.Sp=this.L,this.Ph=this.T)}; g.A.Wz=function(Z,Q){Z=Z===void 0?this.T:Z;Q=Q===void 0?this.L:Q;this.j>0||(this.U=Z,this.j=Q,this.SJ=this.isActive=!0)}; g.A.qm=function(){return this.e$||2}; g.A.vU=function(){}; g.A.Ae=function(){var Z,Q={rn:this.requestNumber,rt:(this.T-this.Y).toFixed(),lb:this.L,stall:(1E3*this.W).toFixed(),ht:(this.jJ-this.Y).toFixed(),elt:(this.U-this.Y).toFixed(),elb:this.j,d:(Z=this.c7)==null?void 0:Z.pZ()};this.url&&$Pf(Q,this.url);this.policy.j&&(Q.mph=this.CN.toFixed(),Q.tph=this.F7.toFixed());Q.ulb=this.JG;Q.ult=this.X;Q.abw=this.tG;return Q}; g.A.now=function(){return(0,g.Nm)()}; g.A.deactivate=function(){this.isActive&&(this.isActive=!1)};g.L(VZ,oA);g.A=VZ.prototype;g.A.Ae=function(){var Z=oA.prototype.Ae.call(this);Z.pb=this.HO;Z.pt=(1E3*this.Qp).toFixed();Z.se=this.ih;return Z}; g.A.Vo=function(){var Z=this.H4;this.NB||(this.NB=Z.Vo?Z.Vo():1);return this.NB}; g.A.H6=function(){return this.i7?this.Vo()!==1:!1}; g.A.Co=function(Z,Q,z){if(!this.X7){this.X7=!0;if(!this.AR){B7(this,Z,Q);this.Iv(Z,Q);var K=this.Vo();this.ih=z;if(!this.policy.L||!this.AR)if(K===2&&this.policy.L){K=Z-this.U<this.qm()*1E3+50;z=this.X?this.JG/(this.X/1E3):Math.max(this.policy.X,z||this.tG);var b=this.Sy*1.3;K&&z<b||(this.X?vZ(this.Bh,this.X/1E3,this.JG,this.Vp||this.policy.SJ):vZ(this.Bh,Q/z,Q,.01));Ya(this.Bh,Q,K?0:this.W)}else K===2?this.AR||(this.X?vZ(this.Bh,this.X/1E3,this.JG,this.Vp||this.policy.SJ):vZ(this.Bh,Q/Math.max(this.policy.X, z||this.tG),Q,.01),Ya(this.Bh,Q,this.W)):K===1&&(K=(Z-this.Y)/1E3,!(K<=this.policy.W)&&this.policy.W||this.gq||this.policy.P7||!(this.j>0)||kB(this,K,Q),this.j>0&&Ya(this.Bh,Q,this.W));Z=(Z-this.Y)/1E3||.01;this.policy.jJ&&!(this.j>0)||g5(this.Bh,Z,this.S,B0x(this),this.lP)}this.deactivate()}}; g.A.pz=function(Z,Q,z){z&&(this.NB=2);Z<0&&this.e$&&(Z=this.e$);Q?this.s$+=Z:this.Vp+=Z}; g.A.qm=function(){return this.Vp||this.s$||oA.prototype.qm.call(this)}; g.A.Iv=function(Z,Q){var z=(Z-this.K)/1E3,K=Q-this.S,b=this.Vo();this.isActive?b===1&&((K>0||this.policy.K)&&(z>.2||K<1024)?(this.W+=z,K>0&&z>.2&&kB(this,this.Sy?z:.05,K),this.gq=!0):K>0&&(kB(this,z,K),this.gq=!0)):Q&&Q>=this.policy.Y&&this.Wz(Z,Q);oA.prototype.Iv.call(this,Z,Q)}; g.A.Zx=function(Z){if(!this.AR){B7(this,Z,this.L);var Q=(Z-this.Y)/1E3;this.Vo()!==2&&this.j>0&&(this.W+=(Z-this.K)/1E3,Ya(this.Bh,this.S,this.W));g5(this.Bh,Q,this.S,B0x(this),this.lP,!0);Z=(Z-this.K)/1E3;SY(this.Bh,Z,0);this.Hz(Z,0)}}; g.A.Wz=function(Z,Q){Z=Z===void 0?this.T:Z;Q=Q===void 0?this.L:Q;if(!(this.j>0)&&(oA.prototype.Wz.call(this,Z,Q),this.Vo()===1)){Q=(this.jJ-this.Y)/1E3;var z=(Z-this.jJ)/1E3;this.i7&&ul(this,this.now());this.DI||this.AR||(this.e$&&(z=Math.max(0,z-this.e$)),Z=this.Bh,Z.X.IF(1,Q),Z.KN.IF(1,z))}}; g.A.q2=function(){this.i7&&ul(this,this.now());return this.Zu}; g.A.rI=function(){var Z;if(Z=this.S>this.gE)Z=(Z=this.S)?Z>=this.policy.Y:!1;return Z}; g.A.jO=function(){return this.qB}; g.A.D8=function(Z){Z=Z===void 0?this.now():Z;if(this.i7){ul(this,Z);if(this.NB?this.H6():this.P7!==this.Du){var Q=this.Du;if(Z<Q){this.qB=this.Du;return}}else Q=this.P7;Q=Math.max(Q,this.Zu)}else Q=this.Zu;var z=this.HO-this.S;z<0&&(z=0);z=(z*this.snapshot.stall+z/this.snapshot.byterate)*1E3;this.qB=z=this.j>0?z+Z:z+Math.max(Z,Q)}; g.A.Nm=function(){return this.now()-this.U}; g.A.S8=function(){return(this.S-this.j)*1E3/this.Nm()||0}; g.A.Ay=function(){return this.U};xB.prototype.feed=function(Z){hK(this.Y,Z);this.MR()}; xB.prototype.MR=function(){if(this.W){if(!this.Y.getLength())return;var Z=this.Y.split(this.S-this.j),Q=Z.VE;Z=Z.K6;if(!this.H4.Gt(this.W,Q,this.j,this.S))return;this.j+=Q.getLength();this.Y=Z;this.j===this.S&&(this.W=this.S=this.j=void 0)}for(;;){var z=0;Z=g.n(uPf(this.Y,z));Q=Z.next().value;z=Z.next().value;z=g.n(uPf(this.Y,z));Z=z.next().value;z=z.next().value;if(Q<0||Z<0)break;if(!this.Y.PL(z,Z)){if(!this.H4.Gt||!this.Y.PL(z,1))break;z=this.Y.split(z).K6;this.H4.Gt(Q,z,0,Z)&&(this.W=Q,this.j= z.getLength(),this.S=Z,this.Y=new fe([]));break}Z=this.Y.split(z).K6.split(Z);z=Z.K6;this.H4.aG(Q,Z.VE);this.Y=z}}; xB.prototype.dispose=function(){this.Y=new fe};g.A=tI.prototype;g.A.MJ=function(){return 0}; g.A.lF=function(){return null}; g.A.TP=function(){return null}; g.A.fJ=function(){return this.state>=1}; g.A.isComplete=function(){return this.state>=3}; g.A.Yz=function(){return this.state===5}; g.A.onStateChange=function(){}; g.A.Q3=function(Z){var Q=this.state;this.state=Z;this.onStateChange(Q);this.callback&&this.callback(this,Q)}; g.A.fn=function(Z){Z&&this.state<Z?this.Q3(Z):this.callback&&this.callback(this,this.state)}; g.A.FI=function(){return this.state===-1}; g.A.O8=function(){var Z="";this.info.AG.forEach(function(Q){Z+=Q.O8()+"."}); return Z.slice(0,-1)}; g.A.dispose=function(){this.FI()||(this.info.AG[0].Y.S=!1,this.Q3(-1))}; g.A.PQ=function(){return 0};g.A=F2.prototype;g.A.Zm=function(){this.xhr.status&&(this.status=this.xhr.status);this.xhr.readyState===this.xhr.HEADERS_RECEIVED&&this.H4.Sw()}; g.A.onError=function(){this.S=!0;this.onDone()}; g.A.onDone=function(){this.FI||(this.W=!0,this.H4.cS())}; g.A.zn=function(){return this.xhr.readyState>=this.xhr.HEADERS_RECEIVED}; g.A.getResponseHeader=function(Z){try{return this.xhr.getResponseHeader(Z)}catch(Q){return""}}; g.A.uX=function(){return+this.getResponseHeader("content-length")}; g.A.s9=function(){return this.j}; g.A.F4=function(){return this.status>=200&&this.status<300&&!!this.j}; g.A.QR=function(){return this.Y.getLength()>0}; g.A.hw=function(){var Z=this.Y;this.Y=new fe;return Z}; g.A.Ku=function(){return this.Y}; g.A.abort=function(){this.FI=!0;this.xhr.abort()}; g.A.nz=function(){return!0}; g.A.EF=function(){return this.S}; g.A.Fl=function(){return""};g.A=ee0.prototype;g.A.getResponseHeader=function(Z){return Z==="content-type"?this.Y.get("type"):""}; g.A.abort=function(){}; g.A.zn=function(){return!0}; g.A.uX=function(){return this.range.length}; g.A.s9=function(){return this.loaded}; g.A.F4=function(){return!!this.loaded}; g.A.QR=function(){return!!this.j.getLength()}; g.A.hw=function(){var Z=this.j;this.j=new fe;return Z}; g.A.Ku=function(){return this.j}; g.A.nz=function(){return!0}; g.A.EF=function(){return!!this.error}; g.A.Fl=function(){return this.error};g.A=ENu.prototype;g.A.start=function(Z){var Q={credentials:"include",cache:"no-store"};Object.assign(Q,this.T);this.W&&(Q.signal=this.W.signal);Z=new Request(Z,Q);fetch(Z).then(this.U,this.onError).then(void 0,jz)}; g.A.onDone=function(){this.FI()||this.H4.cS()}; g.A.getResponseHeader=function(Z){return this.responseHeaders?this.responseHeaders.get(Z):null}; g.A.zn=function(){return!!this.responseHeaders}; g.A.s9=function(){return this.j}; g.A.uX=function(){return+this.getResponseHeader("content-length")}; g.A.F4=function(){return this.status>=200&&this.status<300&&!!this.j}; g.A.QR=function(){return!!this.Y.getLength()}; g.A.hw=function(){this.QR();var Z=this.Y;this.Y=new fe;return Z}; g.A.Ku=function(){this.QR();return this.Y}; g.A.FI=function(){return this.L}; g.A.abort=function(){this.S&&this.S.cancel().catch(function(){}); this.W&&this.W.abort();this.L=!0}; g.A.nz=function(){return!0}; g.A.EF=function(){return this.K}; g.A.Fl=function(){return this.errorMessage};g.A=l7f.prototype;g.A.onDone=function(){if(!this.FI){this.status=this.xhr.status;try{this.response=this.xhr.response,this.j=this.response.byteLength}catch(Z){}this.Y=!0;this.H4.cS()}}; g.A.Zm=function(){this.xhr.readyState===2&&this.H4.Sw()}; g.A.qn=function(Z){this.FI||(this.status=this.xhr.status,this.Y||(this.j=Z.loaded),this.H4.qD((0,g.Nm)(),Z.loaded))}; g.A.zn=function(){return this.xhr.readyState>=2}; g.A.getResponseHeader=function(Z){try{return this.xhr.getResponseHeader(Z)}catch(Q){return g.CO(Error("Could not read XHR header "+Z)),""}}; g.A.uX=function(){return+this.getResponseHeader("content-length")}; g.A.s9=function(){return this.j}; g.A.F4=function(){return this.status>=200&&this.status<300&&this.Y&&!!this.j}; g.A.QR=function(){return this.Y&&!!this.response&&!!this.response.byteLength}; g.A.hw=function(){this.QR();var Z=this.response;this.response=void 0;return new fe([new Uint8Array(Z)])}; g.A.Ku=function(){this.QR();return new fe([new Uint8Array(this.response)])}; g.A.abort=function(){this.FI=!0;this.xhr.abort()}; g.A.nz=function(){return!1}; g.A.EF=function(){return!1}; g.A.Fl=function(){return""};g.EV.prototype.info=function(){}; g.EV.prototype.debug=function(){}; g.EV.prototype.Y=Qx(46);var zd4=new Map,qJW=new Map,KGX=new function(){var Z=this;this.Y=new Map;this.zz={Yj7:function(){return Z.Y}}};g.L(sx,g.O);sx.prototype.O9=function(){if(!this.Aj.length)return[];var Z=this.Aj;this.Aj=[];this.S=g.x$(Z).info;return Z}; sx.prototype.On=function(){return this.Aj}; sx.prototype.gr=function(){g.O.prototype.gr.call(this);this.Y=null;this.Aj.length=0;this.AG.length=0;this.S=null};g.L(QV,g.O);g.A=QV.prototype; g.A.WYI=function(){if(!this.FI()){var Z=(0,g.Nm)(),Q=!1;if(this.policy.uw){Z=Z-(this.timing.j>0?this.timing.U:this.timing.Y)-this.timing.qm()*1E3;var z=Yi(zU(this),!1);Z>=2E3*z?Q=!0:Z>=this.policy.sj*z&&(this.Y=this.policy.R4)}else if(this.timing.j>0){if(this.L){this.policy.fL&&(this.Y=0);return}var K=this.timing.jO();this.timing.D8();var b=this.timing.jO();b-K>=this.policy.y7*.8?(this.Y++,this.logger.debug(function(){return"Mispredicted by "+(b-K).toFixed(0)}),Q=this.Y>=5):this.Y=0}else{var q=Z- this.timing.q2(); this.policy.R4&&q>0&&(this.Y+=1);Q=Yi(zU(this),!1)*this.policy.Bn;(Q=q>Q*1E3)&&this.logger.debug(function(){return"Elbow late by "+q.toFixed(3)})}this.Y>0&&this.H4.r7(); Q?this.kP(!1):this.j.start()}}; g.A.kP=function(Z){this.W=!0;Z&&!this.policy.BK&&(Z=zU(this),Z.j+=1);this.H4.xt();this.lastError="net.timeout";bv(this)}; g.A.canRetry=function(Z){var Q=zU(this);Z=Z?this.policy.St:this.policy.Yi;return Q.timedOut<this.policy.dk&&Q.Y<Z}; g.A.qe=function(){return this.lastError}; g.A.JJ=function(){return this.Y}; g.A.dispose=function(){this.j.dispose();g.O.prototype.dispose.call(this)};var Am={},dV9=(Am["1h"]=8,Am["9h"]=4,Am["1"]=8,Am["9"]=4,Am["("]=4,Am.h=2,Am.H=2,Am),Dh={},NLX=(Dh.o=3,Dh.O=3,Dh.so=3,Dh.a=1,Dh.ah=1,Dh.A=1,Dh.m=1,Dh.M=1,Dh.sa=1,Dh.mac3=7,Dh.MAC3=7,Dh.meac3=5,Dh.MEAC3=5,Dh),v5={},iZu=(v5.o=0,v5.O=0,v5.a=0,v5.ah=0,v5.A=0,v5.m=1,v5.M=1,v5.mac3=1,v5.MAC3=1,v5.meac3=1,v5.MEAC3=1,v5.so=4,v5.sa=4,v5);var Rdn={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 DJ,jf,vu=[["337","336","335"],["702","701","700"],["315","308","303","302"],["299","298"],["787","788"]],nLn=[["571","401","400","399","398"],["313","271","248","247"],["137","136"]],c0n=["571 401 400 399 398 787 788 397 396".split(" "),"313 271 248 247 781 777 244 243".split(" "),["137","136","135"]],mV9=[["411","410","409"],["360","358","357","274"],["385","376","384"],["225","224","145"]],I5W=["412","359"],J00=[["140"],["251"],["380"],["328"]],gk={},f5u=(gk["398"]="397 396 395 394 788 787".split(" "), gk["247"]=["780","779","244","243","242"],gk["136"]=["135","134","133","160"],gk["141"]=["140"],gk["251"]=["250"],gk["774"]=["251","250"],gk),YD={},hdD=(YD["135"]=["134","133","160"],YD["243"]=["242"],YD["781"]=["780","779"],YD["777"]=["776","775"],YD["396"]=["395","394"],YD["141"]=["140"],YD["251"]=["250"],YD),Xr={},LGD=(Xr["274"]=["317","273","318","280","279"],Xr["145"]=["144","222","223","143","142"],Xr["141"]=["149"],Xr["140"]=["149"],Xr["380"]=["381"],Xr["328"]=["329"],Xr),Sa={},$VM=(Sa["133"]= 240,Sa["134"]=360,Sa["135"]=480,Sa["136"]=720,Sa["137"]=1080,Sa["242"]=240,Sa["243"]=360,Sa["244"]=480,Sa["247"]=720,Sa["248"]=1080,Sa["298"]=720,Sa["299"]=1080,Sa["302"]=720,Sa["303"]=1080,Sa["395"]=240,Sa["396"]=360,Sa["397"]=480,Sa["398"]=720,Sa["399"]=1080,Sa);var a5f={unknown:0,other:0,bluetooth:117,wifi:116,cellular:120,ethernet:118,wimax:119,none:122};g.L(aA,tI);g.A=aA.prototype;g.A.Xo=function(){return this.timing.requestNumber}; g.A.sS=function(){return this.tH.sS()}; g.A.Fw=function(){var Z=YJn(this.Tz);if(this.L6){var Q=this.L6,z=Q.Y.getLength();Z.ulen=z;z>0&&(Q=Q.Y.getUint8(0),Z.ubyte=Q,z===1&&Q===0&&(Z.b248180278=!0))}this.Xl&&(Z.rc=this.policy.u7?this.Xl:this.Xl.toString());this.policy.IW&&this.l8&&(Z.tr=this.l8);Z.itag=this.info.AG[0].Y.info.itag;Z.ml=""+ +this.info.AG[0].Y.E6();Z.sq=""+this.info.AG[0].rr;this.tH&&(Z.ifi=""+ +nZ(this.info.zW.S));this.Xl!==410&&this.Xl!==500&&this.Xl!==503||(Z.fmt_unav="true");var K;(z=this.errorMessage||((K=this.xhr)==null? void 0:K.Fl()))&&(Z.msg=z);this.Fr&&(Z.smb="1");this.info.isDecorated()&&(Z.sdai="1");return Z}; g.A.FG=function(){return W5D(this.timing)}; g.A.Fl=function(){return this.xhr.Fl()||""}; g.A.rI=function(){return this.isComplete()||this.timing.rI()}; g.A.qD=function(){!this.FI()&&this.xhr&&(this.Xl=this.xhr.status,this.policy.G7&&this.tN&&this.Ag(!1),this.H2()?this.fn(2):!this.uQ&&this.rI()&&(this.fn(),this.uQ=!0))}; g.A.Sw=function(){if(!this.FI()&&this.xhr){if(!this.q4&&this.xhr.zn()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var Z=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.q4=((0,g.Nm)()-Z)/1E3}this.xhr.zn()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.vT&&!dfW()&&g.CS("yt-player-headers-readable",!0,2592E3);Z=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var Q=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),z;(z=this.Gn)==null||z.stop();this.E7=Z||this.E7; this.QA=Q||this.QA}}; g.A.cS=function(){var Z=this.xhr;if(!this.FI()&&Z){this.Xl=Z.status;Z=this.fU(Z);if(this.policy.IW){var Q;(Q=this.Gn)==null||Q.stop()}Z===5?bv(this.Tz):this.Q3(Z);this.Tz.j.stop()}}; g.A.fU=function(Z){var Q=this;UV0(this);if(qG(this.Tz,this.xhr.status,this.UX?this.timing.SJ||this.Zd:this.xhr.F4(),!1,this.t_))return 5;var z="";rU(this.Tz,this.xhr)&&(z=gLG(this.Tz,this.xhr));if(z)return gm(zU(this.Tz)),this.info.a4(this.tH,z),3;z=Z.s9();if(this.L6){this.Ag(!0);UV0(this);if(qG(this.Tz,this.xhr.status,this.timing.SJ||this.Zd,!1,this.t_))return 5;if(!this.BB){if(this.Zd)return gm(zU(this.Tz)),3;this.Tz.lastError="net.closed";return 5}}else{if(qG(this.Tz,this.xhr.status,this.xhr.F4(), !1,this.t_))return 5;var K=this.info.S;if(K&&K!==z||Z.EF())return this.Tz.lastError="net.closed",5;this.Ag(!0)}K=xPW(this)?Z.getResponseHeader("X-Bandwidth-Est"):0;if(Z=xPW(this)?Z.getResponseHeader("X-Bandwidth-Est3"):0)this.YM=!0,this.policy.rA&&(K=Z);DVr(this.Tz,z,K?Number(K):0,this.info.AG[0].type===5);this.logger.debug(function(){var b=Q.timing;return"Succeeded, rtpd="+(b.Qp*1E3+b.Y-Date.now()).toFixed(0)}); return 4}; g.A.canRetry=function(){this.FI();var Z=this.info.isDecorated();return this.Tz.canRetry(Z)}; g.A.onStateChange=function(){this.isComplete()&&(this.policy.Zb?this.xt():this.timing.deactivate())}; g.A.kP=function(Z){this.Tz.kP(Z)}; g.A.r7=function(){this.callback&&this.callback(this,this.state)}; g.A.JJ=function(){return this.Tz.JJ()}; g.A.dispose=function(){tI.prototype.dispose.call(this);this.Tz.dispose();var Z;(Z=this.Gn)==null||Z.dispose();this.policy.Zb||this.xt()}; g.A.xt=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.A.O9=function(){if(!this.On().length)return[];this.T5=!0;return this.tN.O9()}; g.A.H2=function(){if(this.state<1)return!1;if(this.tN&&this.tN.Aj.length)return!0;var Z;return((Z=this.xhr)==null?0:Z.QR())?!0:!1}; g.A.On=function(){this.Ag(!1);return this.tN?this.tN.On():[]}; g.A.Ag=function(Z){try{if(Z||this.xhr.zn()&&this.xhr.QR()&&!rU(this.Tz,this.xhr)&&!this.hE)this.tN||(this.tN=new sx(this.policy,this.info.AG)),this.xhr.QR()&&(this.L6?this.L6.feed(this.xhr.hw()):ZJ(this.tN,this.xhr.hw(),Z&&!this.xhr.QR()))}catch(Q){this.L6?por(this,Q):g.CO(Q)}}; g.A.aG=function(Z,Q){switch(Z){case 21:Z=Q.split(1).K6;HZd(this,Z);break;case 22:this.BB=!0;ZJ(this.tN,new fe([]),!0);break;case 43:if(Z=MH(new av(Q),1))this.info.a4(this.tH,Z),this.Zd=!0;break;case 45:Q=eZ(new av(Q));Z=Q.Up;Q=Q.Qg;Z&&Q&&(this.G$=Z/Q);break;case 44:this.JD=yHf(new av(Q));var z,K,b;!this.timing.SJ&&((z=this.JD)==null?void 0:z.action)===4&&((K=this.JD)==null?0:(b=K.X_)==null?0:b.UX)&&(this.UX=this.JD.X_.UX);break;case 53:this.policy.IW&&(Z=m4G(new av(Q)).Qo)&&(this.Gn||(this.Qo=Z,this.Gn= new g.E6(this.NS,Z,this)),this.Gn.start());break;case 60:this.HE=FP(new av(Q));break;case 58:if(Z=ZHn(new av(Q)))this.nj=Z,Z.nj===3&&(this.t_=!0)}}; g.A.Gt=function(Z,Q,z,K){z||this.timing.Gt(K);if(Z!==21)return!1;if(Z=this.policy.G7)if(K=Q.getLength()+z===K,Z*=this.info.AG[0].Y.info.Yq,!K&&Q.getLength()<Z)return!1;if(!z){if(Q.getLength()===1)return!0;Q=Q.split(1).K6}HZd(this,Q);return!0}; g.A.s9=function(){return this.xhr.s9()}; g.A.MJ=function(){return this.q4}; g.A.Vo=function(){return this.H6()?2:1}; g.A.H6=function(){if(!this.policy.X.FF||!isNaN(this.info.tx)&&this.info.tx>0)return!1;if(!this.xhr.zn())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.L6)var Z=!this.info.S;else this.xhr.uX()?Z=!1:(Z=this.xhr.getResponseHeader("content-type"),Z=Z==="audio/mp4"||Z==="video/mp4"||Z==="video/webm");if(!Z)return!1;if(isNaN(this.info.tx)){Z=this.xhr.getResponseHeader("x-head-seqnum");var Q=this.timing.policy.U?1:0;if(!Z)this.logger.debug("No x-head-seqnum, cannot tell if head segment."); else if(Number(Z)>this.info.AG[0].rr+Q)return!1}return!0}; g.A.PQ=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.A.lF=function(){this.xhr&&(this.E7=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.E7}; g.A.TP=function(){this.xhr&&(this.QA=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.QA}; g.A.qe=function(){return this.Tz.qe()}; g.A.NS=function(){if(!this.FI()&&this.xhr){this.l8="heartbeat";var Z=this.Tz;Z.Y+=2;this.r7()}};g.L(Sf,oA);g.A=Sf.prototype;g.A.Iv=function(Z,Q){var z=(Z-this.K)/1E3,K=Q-this.S;this.j>0?K>0&&(this.P7&&(z>.2||K<1024?(this.W+=z,z>.2&&OZx(this,.05,K)):OZx(this,z,K)),this.Vp&&(this.Du+=K,this.Zu+=z)):Q>this.policy.Y&&this.Wz(Z,Q);oA.prototype.Iv.call(this,Z,Q)}; g.A.Co=function(Z,Q){B7(this,Z,Q);this.Iv(Z,Q);this.P7&&(Q=this.S*this.snapshot.stall+this.S/this.snapshot.byterate,this.j>0&&Ya(this.Bh,this.Du,this.W),Z=(Z-this.Y)/1E3||.01,this.policy.jJ&&!(this.j>0)||g5(this.Bh,Z,this.S,Q,!1))}; g.A.Zx=function(Z){B7(this,Z,this.L);var Q=(Z-this.K)/1E3;SY(this.Bh,Q,0);this.Hz(Q,0);!this.P7&&this.j>0||(Q=this.S*this.snapshot.stall+this.S/this.snapshot.byterate,this.j>0&&(this.W+=(Z-this.K)/1E3,Ya(this.Bh,this.Du,this.W)),g5(this.Bh,((Z-this.Y)/1E3||.01)*this.policy.JG,this.S,Q,!1,!0))}; g.A.dB=function(Z){Z=Z.J0||2147483647;(Z&2)!==2&&(this.Vp=!1);(Z&1)===1&&(this.P7=!0)}; g.A.I2=function(Z){Z=Z.J0||2147483647;(Z&2)===2&&(this.Vp=!1);(Z&1)===1&&(this.P7=!1)}; g.A.Ay=function(){return this.U}; g.A.Nm=function(){var Z=this.Vp?this.now()-this.K:0;return Math.max(this.Zu*1E3+Z,1)}; g.A.S8=function(){return this.Du*1E3/this.Nm()}; g.A.Wz=function(Z,Q){Z=Z===void 0?this.T:Z;Q=Q===void 0?this.L:Q;this.j>0||(oA.prototype.Wz.call(this,Z,Q),Q=this.Bh,Z=(Z-this.jJ)/1E3,Q.X.IF(1,(this.jJ-this.Y)/1E3),Q.KN.IF(1,Z))}; g.A.vU=function(Z){this.s$=Z}; g.A.Ae=function(){var Z=oA.prototype.Ae.call(this);Z.rbw=this.S8();Z.rbe=+this.Vp;Z.gbe=+this.P7;Z.ackt=(this.s$-this.Y).toFixed();return Z}; g.A.D8=function(){}; g.A.jO=function(){return NaN}; g.A.q2=function(){return this.Y+this.snapshot.delay*1E3};$X.prototype.aG=function(Z,Q){Q.getLength();switch(Z){case 20:Z=new av(Q);Z={DL:Ce(Z,1),videoId:MH(Z,2),itag:Ce(Z,3),lmt:Ce(Z,4),xtags:MH(Z,5),Oc:Ce(Z,6),BS:pe(Z,8),oP:Ce(Z,9),v3G:Ce(Z,10),startMs:Ce(Z,11),durationMs:Ce(Z,12),PJ:Ce(Z,14),timeRange:UP(Z,15,UfG),I4:Ce(Z,16),Mg:Ce(Z,17),clipId:MH(Z,1E3)};this.TY(Z);break;case 21:this.f_(Q,!1);break;case 22:this.pj(Q);break;case 31:Z=BA(Q,S1M);this.U1(Z);break;case 52:Z=BA(Q,IBr);this.Mx(Z);break;default:this.Or(Z,Q)}}; $X.prototype.TY=function(){}; $X.prototype.Or=function(){};g.L(TU,$X);g.A=TU.prototype; g.A.Or=function(Z,Q){Q.getLength();switch(Z){case 35:this.jb(Q);break;case 44:this.gB(Q);break;case 43:this.GY(Q);break;case 53:this.ym(Q);break;case 55:Z=new av(Q);(Z={timeline:UP(Z,1,N79),zNf:UP(Z,2,aB9)},Z.timeline)&&Z.timeline.yb&&this.H4.YN(Z.timeline.yb,Z.timeline.ANu,Z.zNf);break;case 56:this.Sj();break;case 57:this.H_(Q);break;case 42:this.Vm(Q);break;case 45:this.iN(Q);break;case 59:this.wB(Q);break;case 51:this.HV(Q);break;case 49:this.dB(Q);break;case 50:this.I2(Q);break;case 47:this.WV(Q); break;case 58:this.jw(Q);break;case 61:this.H4.OS.vU((0,g.Nm)());break;case 66:this.hJ(Q);break;case 46:this.jj(Q);break;case 67:this.onSnackbarMessage(Q)}}; g.A.HV=function(Z){Z=new av(Z);Z={IhF:ov(Z,1,xN),YXY:ov(Z,2,xN)};this.H4.HV(Z)}; g.A.wB=function(Z){var Q=new av(Z);Z=OP(Q,1);var z=OP(Q,2);Q=OP(Q,3);this.H4.wB(Z,z,Q)}; g.A.iN=function(Z){Z=eZ(new av(Z));this.H4.iN(Z)}; g.A.WV=function(Z){Z=BA(Z,fB4);this.H4.WV(Z)}; g.A.Vm=function(Z){Z=new av(Z);Z={videoId:MH(Z,1),formatId:UP(Z,2,xN),endTimeMs:Ce(Z,3),TS$:Ce(Z,4),mimeType:MH(Z,5),Gx:UP(Z,6,jx9),indexRange:UP(Z,7,jx9),uo:UP(Z,8,D4n)};this.H4.Vm(Z)}; g.A.H_=function(Z){Z=aB9(new av(Z));this.H4.H_(Z)}; g.A.Sj=function(){this.H4.Sj()}; g.A.jb=function(Z){Z=$4r(new av(Z));this.H4.jb(Z)}; g.A.ym=function(Z){Z=m4G(new av(Z));this.H4.ym(Z)}; g.A.gB=function(Z){Z=yHf(new av(Z));this.H4.gB(Z)}; g.A.GY=function(Z){Z={redirectUrl:MH(new av(Z),1)};this.H4.GY(Z)}; g.A.f_=function(Z){var Q=Z.getUint8(0);if(Z.getLength()!==1){Z=Z.split(1).K6;var z=this.j[Q]||null;z&&Ii(this.H4.JN,Q,z,Z)}}; g.A.pj=function(Z){Z=Z.getUint8(0);var Q=this.j[Z]||null;Q&&this.H4.pj(Z,Q)}; g.A.Mx=function(Z){this.H4.Mx(Z)}; g.A.TY=function(Z){var Q=Z.DL,z=Z.BS,K=Z.Oc,b=Z.Mg,q=Z.I4,r=Z.oP,D=Z.startMs,v=Z.durationMs,Y=Z.timeRange,X=Z.PJ,S=Z.clipId,T=LQ(Z);Z=c6n.has(kh[""+Z.itag]);this.j[Q]=T;this.H4.pz(T,Z,{DL:Q,BS:!!z,Oc:K!=null?K:-1,oP:r!=null?r:-1,startMs:D!=null?D:-1,durationMs:v!=null?v:-1,PJ:X,Mg:b,I4:q,clipId:S,timeRange:Y})}; g.A.dB=function(Z){Z={J0:Ce(new av(Z),1)};this.H4.dB(Z)}; g.A.I2=function(Z){Z={J0:Ce(new av(Z),1)};this.H4.I2(Z)}; g.A.U1=function(Z){this.H4.U1(Z)}; g.A.jw=function(Z){Z=ZHn(new av(Z));this.H4.jw(Z)}; g.A.hJ=function(Z){Z={gt:UP(new av(Z),1,nEG)};this.H4.hJ(Z)}; g.A.onSnackbarMessage=function(Z){Z=Ce(new av(Z),1);this.H4.onSnackbarMessage(Z)}; g.A.jj=function(Z){Z={reloadPlaybackParams:UP(new av(Z),1,sxf)};this.H4.jj(Z)};g.L(f7,g.O);g.A=f7.prototype;g.A.w_=function(){return Array.from(this.X3.keys())}; g.A.KV=function(Z){Z=this.X3.get(Z);var Q=Z.Aj;Z.N4+=Q.getLength();Z.Aj=new fe;return Q}; g.A.Bx=function(Z){return this.X3.get(Z).Bx}; g.A.zB=function(Z){return this.X3.get(Z).zB}; g.A.pz=function(Z,Q,z,K){this.X3.get(Z)||kL0(this,Z,Q);Q=this.X3.get(Z);if(this.kh){Z=xVn(this,Z,z);if(K)for(var b=g.n(Z),q=b.next();!q.done;q=b.next()){q=q.value;var r=K;q.U=r;q.startTime+=r;q.eP+=r;q.M8+=r}uUr(this,z.DL,Q,Z)}else z.BS?Q.lQ=z.PJ:Q.NQ.push(z),Q.IM.push(z)}; g.A.uc=function(Z){var Q;return((Q=this.X3.get(Z))==null?void 0:Q.AG)||[]}; g.A.fn=function(){for(var Z=g.n(this.X3.values()),Q=Z.next();!Q.done;Q=Z.next())Q=Q.value,Q.rE&&(Q.qn&&Q.qn(),Q.rE=!1)}; g.A.pj=function(Z,Q){this.logger.debug(function(){return"[onMediaEnd] formatId: "+Q}); var z=this.X3.get(Q);if(hZ){if(z&&!z.Bx){if(z.sZ.get(Z))z.sZ.get(Z).Fk=!0;else{var K;((K=this.RW)==null?0:K.A4)&&z.sZ.set(Z,{data:new fe,lr:0,Fk:!0})}z.zB=!0}}else z&&!z.zB&&(z.zB=!0)}; g.A.O9=function(Z){if(hZ){var Q=this.X3.get(Z);if(Q)for(var z=g.n(Q.sZ),K=z.next();!K.done;K=z.next()){var b=g.n(K.value);K=b.next().value;b=b.next().value;var q=Q.OH.get(K);if(dm(q[0])){if(!b.Fk)continue;var r=q,D=b.data;D.getLength();q=0;var v=[];r=g.n(r);for(var Y=r.next();!Y.done;Y=r.next()){Y=Y.value;var X=Y.S,S=Le(D,q,X);q+=X;v.push(new xi(Y,S))}Q.h_.push.apply(Q.h_,g.I(v))}else if(b.data.getLength()>0||!q[0].range&&b.Fk)D=void 0,q=q[0],v=b.lr,r=b.data,q.range||(D=b.Fk),Y=r.getLength(),D=new xi(FrM(q, q.j+v,Y,D),r),b.lr+=D.info.S,Q.h_.push(D);Q.sZ.get(K).data=new fe;b.Fk&&Q.sZ.delete(K)}Z=this.X3.get(Z);if(!Z)return[];Q=Z.h_;Z.h_=[];z=g.n(Q);for(K=z.next();!K.done;K=z.next())Z.N4+=K.value.info.S;return Q||[]}z=(Q=this.X3.get(Z))==null?void 0:Q.tN;if(!z)return[];this.Ag(Z,z);return z.O9()}; g.A.H2=function(Z){if(hZ)return mn(this,Z);var Q,z,K;return!!((z=(Q=this.X3.get(Z))==null?void 0:Q.tN)==null?0:(K=z.On())==null?0:K.length)||mn(this,Z)}; g.A.Ag=function(Z,Q){for(;mn(this,Z);){var z=this.KV(Z);var K=Z;K=this.X3.get(K).Bx&&!cu(this,K);ZJ(Q,z,K&&Vl4(this,Z))}}; g.A.gr=function(){g.O.prototype.gr.call(this);for(var Z=g.n(this.X3.keys()),Q=Z.next();!Q.done;Q=Z.next())L7(this,Q.value);var z;if((z=this.RW)==null?0:z.FB)for(Z=g.n(this.X3.values()),Q=Z.next();!Q.done;Q=Z.next())Q=Q.value,Q.sZ.clear(),Q.OH.clear(),Q.h_.length=0,Q.AG.length=0,Q.IM.length=0,Q.NQ.length=0;this.X3.clear()}; var hZ=!1;g.L(JZ,g.O);g.A=JZ.prototype;g.A.qD=function(){!this.FI()&&this.xhr&&(this.Ag(!1),ZO(this.H4,this))}; g.A.Sw=function(){}; g.A.cS=function(){if(!this.FI()&&this.xhr){var Z=this.fU();Z===5?bv(this.Tz):this.Q3(Z);this.Tz.j.stop();var Q;(Q=this.ej)==null||Q.stop()}}; g.A.fU=function(){var Z="";rU(this.Tz,this.xhr)&&(Z=gLG(this.Tz,this.xhr));if(Z)return this.info.zW.a4(this.tH,Z),3;this.Ag(!0);if(qG(this.Tz,this.xhr.status,this.xhr.F4(),this.info.uR(),this.t_))return 5;if(this.lM)return 3;DVr(this.Tz,this.xhr.s9(),0,this.uR());this.policy.De&&If4(this.H4);return 4}; g.A.Ag=function(Z){var Q=this.xhr;if((Z||!rU(this.Tz,this.xhr))&&Q.QR()){Z=Q.hw();var z=Z.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+z}); this.L6.feed(Z)}}; g.A.aG=function(Z,Q){this.xhr.nz()&&Z===21&&wof(this);this.GZ.aG(Z,Q)}; g.A.Gt=function(Z,Q,z,K){z||(this.OS.Gt(K),this.policy.TB&&Z===21&&wof(this));if(Z!==21)return!1;this.OS.SJ=!0;Z=Q.getLength();z||(this.QG=Q.getUint8(0),Q=Q.split(1).K6);var b=this.policy.m2,q=this.GZ.j[this.QG],r=this.kh.S.get(q);if(b&&r&&(b*=r.info.Yq,Z+z!==K&&Z<b))return!1;Ii(this.JN,this.QG,q,Q);return!0}; g.A.jb=function(Z){this.H4.jb(Z)}; g.A.ym=function(Z){if(this.policy.enableServerDrivenRequestCancellation){var Q;(Q=this.ej)==null||Q.dispose();this.Z8=Z;Z.BU&&(this.ej=new g.E6(this.aY,Z.BU,this));this.aY()}}; g.A.aY=function(){var Z;if((Z=this.Z8)!=null&&Z.items){var Q;(Q=this.ej)==null||Q.start();if(this.OS.j>0){this.policy.uw&&this.Tz.j.stop();Z=this.OS.Nm();Q=this.OS.S8();var z=ELd(this,Z);if(!(Q>z.Lq||z.mH>0&&this.info.y$()>z.mH)){this.Mk=(0,g.Nm)();var K;(K=this.ej)==null||K.stop();this.policy.De&&(K=this.H4,Z={ov:Math.round(Q*Z/1E3),IU:Z},K.policy.De&&(K.KN=Z,K.R0++));this.kP(!1)}}}}; g.A.kP=function(Z){this.Tz.kP(Z)}; g.A.gB=function(Z){this.H4.gB(Z,this.Xo())}; g.A.GY=function(Z){this.lM=!0;this.info.zW.a4(this.tH,Z.redirectUrl)}; g.A.dB=function(Z){this.OS instanceof Sf&&this.OS.dB(Z)}; g.A.I2=function(Z){this.OS instanceof Sf&&this.OS.I2(Z)}; g.A.YN=function(Z,Q,z){this.H4.YN(Z,Q,z,this.Xo())}; g.A.Vm=function(Z){var Q=Z.formatId,z=LQ({itag:Q.itag,lmt:Q.lmt,xtags:Q.xtags}),K,b,q=new cz(((K=Z.Gx)==null?void 0:K.first)||0,((b=Z.Gx)==null?void 0:b.PY)||0),r,D;K=new cz(((r=Z.indexRange)==null?void 0:r.first)||0,((D=Z.indexRange)==null?void 0:D.PY)||0);if(!this.kh.S.get(z)){z=Z.uo||{};if(this.policy.Al){var v,Y;Z=(v=Z.mimeType)!=null?v:"";v=(Y=Q.itag)!=null?Y:0;Y=kh[""+v];z.mimeType=Y!=="9"&&Y!=="9h"?Z:'video/webm; codecs="'+["vp09",Y==="9h"?"02":"00","51",Y==="9h"?"10":"08","01.01.01.01.00"].join(".")+ '"'}else z.mimeType=Z.mimeType;z.itag=Q.itag;z.lastModified=""+(Q.lmt||0);z.xtags=Q.xtags;Q=this.kh;Y=gz("");v=Dd(z,null);KD(Q,new Zd(Y,v,q,K))}}; g.A.iN=function(Z){this.H4.iN(Z)}; g.A.onSnackbarMessage=function(Z){if(this.policy.b6)this.H4.onSnackbarMessage(Z)}; g.A.U1=function(Z){this.Cu=Z;this.VU=(0,g.Nm)();this.H4.U1(Z)}; g.A.wB=function(Z,Q,z){this.H4.wB(Z,Q,z)}; g.A.H_=function(Z){Z.scope===2&&(this.LYh=Z);this.H4.H_(Z)}; g.A.Sj=function(){this.qh=!0;this.H4.Sj()}; g.A.HV=function(Z){this.policy.Pg&&this.H4.HV(Z)}; g.A.WV=function(Z){this.H4.WV(Z,this.Xo())}; g.A.jw=function(Z){Z.nj===3&&(this.t_=!0);this.H4.jw(Z)}; g.A.hJ=function(Z){this.H4.hJ(Z)}; g.A.jj=function(Z){this.H4.jj(Z)}; g.A.canRetry=function(){this.FI();return this.Tz.canRetry(!1)}; g.A.dispose=function(){if(!this.FI()){g.O.prototype.dispose.call(this);this.Tz.dispose();var Z;(Z=this.ej)==null||Z.dispose();this.Q3(-1);this.xt()}}; g.A.Q3=function(Z){this.state=Z;ZO(this.H4,this)}; g.A.uR=function(){return this.info.uR()}; g.A.LY=function(){return this.qh}; g.A.WQ=function(){return this.LYh}; g.A.pz=function(Z,Q,z){z.clipId&&(this.clipId=z.clipId);this.policy.L&&!Q&&(this.KM=z.oP,this.Rm=z.startMs);var K=0;this.policy.lI&&this.sB&&this.clipId&&(K=dF(this.sB,this.clipId)/1E3);this.JN.pz(Z,Q,z,K);this.policy.vk&&this.Cu&&this.OS instanceof VZ&&(K=this.Cu.Y7,this.OS.pz(z.durationMs/1E3,Q,K>0&&z.oP+1>=K));this.JN.X3.get(Z).L8=!0}; g.A.pj=function(Z,Q){this.JN.pj(Z,Q)}; g.A.Mx=function(Z){this.requestIdentifier=Z}; g.A.O9=function(Z){return this.JN.O9(Z)}; g.A.uc=function(Z){return this.JN.uc(Z)}; g.A.H2=function(Z){return this.JN.H2(Z)}; g.A.w_=function(){return this.JN.w_()}; g.A.Vo=function(){return 1}; g.A.Xo=function(){return this.OS.requestNumber}; g.A.w7=function(){return this.requestIdentifier}; g.A.zP=function(){return this.clipId}; g.A.sS=function(){return this.tH.sS()}; g.A.gC=function(){this.xt()}; g.A.xt=function(){this.OS.deactivate();var Z;(Z=this.xhr)==null||Z.abort()}; g.A.isComplete=function(){return this.state>=3}; g.A.wD=function(){return this.state===3}; g.A.Yz=function(){return this.state===5}; g.A.gD=function(){return this.state===4}; g.A.xg=function(){return this.isComplete()}; g.A.fJ=function(){return this.state>=1}; g.A.JJ=function(){return this.policy.fL?this.Tz.JJ():0}; g.A.r7=function(){this.policy.fL&&ZO(this.H4,this)}; g.A.Cg=function(){return Y_f(this.info)}; g.A.qe=function(){return this.Tz.qe()}; g.A.Fw=function(){var Z=YJn(this.Tz);Object.assign(Z,S_G(this.info));Z.req="sabr";Z.rn=this.Xo();var Q;if((Q=this.xhr)==null?0:Q.status)Z.rc=this.policy.u7?this.xhr.status:this.xhr.status.toString();var z;(Q=(z=this.xhr)==null?void 0:z.Fl())&&(Z.msg=Q);this.Mk&&(z=ELd(this,this.Mk-this.OS.Ay()),Z.letm=z.yGu,Z.mrbps=z.Lq,Z.mram=z.mH);return Z}; g.A.Q1=function(){return{KM:this.KM,Rm:this.Rm,isDecorated:this.info.isDecorated()}};l54.prototype.tick=function(Z,Q){this.ticks[Z]=Q?window.performance.timing.navigationStart+Q:(0,g.Nm)()};g.L(dU,g.rV);g.A=dU.prototype; g.A.Cq=function(Z,Q,z,K){var b=!1;this.policy.NB&&(b=z?this.JG===Z.rr:this.P7===Z.rr);if(this.K&&K&&!b){K=[];b=[];var q=[],r=void 0,D=0;Q&&(K=Q.Y,b=Q.j,q=Q.W,r=Q.S,D=Q.n8,this.pN("sdai",{sq:Z.rr,ssvicpns:K.join("."),ssvid:b.join(".")}));this.policy.NB&&(z?this.JG=Z.rr:this.P7=Z.rr);this.K.P_(Z.rr,Z.startTime,this.j,K,b,q,z,D,r)}if(this.policy.NB){if(z||this.policy.Ju){this.j===1&&GU(this,5,"noad");var v;Z.rr!==((v=this.Y)==null?void 0:v.rr)&&(vif(this,Z,Q,z),isNaN(Z.startTime)||iv(this,Z.rr,Ri(this, Z.startTime,Z.rr),!!Q,this.K))}}else z&&vif(this,Z,Q)}; g.A.Er=function(Z,Q,z){var K=this.videoTrack.Y.index.h4()<=Q;this.Y={n0:Z,rr:Q,xF:z};K&&NG(this,Z,Q)}; g.A.WL=function(){this.K&&this.K.WL()}; g.A.pN=function(Z,Q,z){(Z!=="sdai"||this.policy.Jc||(z===void 0?0:z))&&this.wr.pN(Z,Q)}; g.A.x6=function(Z,Q){var z=this.videoTrack.Y.index.ON(Z);if(z>=0){var K;var b=((K=Q.y3.vO(z,2))==null?void 0:K.N7)||"";if(this.policy.L||b)return Q.zU(Z,z),ai(this.wr,Z,Z,z),this.pN("sdai",{cmskpad:1,t:Z.toFixed(3),sq:z}),!0}this.pN("sdai",{cmskpad:0,t:Z.toFixed(3),sq:z});return!1};g.L(MG,g.O);MG.prototype.mC=function(Z,Q,z){z=z===void 0?{}:z;this.policy.k8=y3(Z,z,this.W,Q===void 0?!1:Q)};Wu.prototype.hf=function(Z){var Q=this;if(this.policy.Rd){var z=new Set(Z);z.size===this.KN.size&&[].concat(g.I(z)).every(function(K){return Q.KN.has(K)})||(this.wr.pN("lwnmow",{itagDenylist:[].concat(g.I(Z)).join(",")}),this.wr.Z6(!!z.size),this.U=-1,this.KN=z,VV(this,this.Y),this.tG=!0)}}; Wu.prototype.mC=function(Z,Q,z){z=z===void 0?{}:z;var K=this.policy.k8;this.L.mC(Z,Q===void 0?!1:Q,z);if(K!==this.policy.k8){VV(this,this.Y);kX(this);var b,q;K>this.policy.k8&&((b=this.S)==null?0:e5(b.info))&&((q=this.nextVideo)==null||!e5(q.info))&&(this.jJ=!0)}};F0.prototype.Oq=function(Z){this.timestampOffset=Z;this.flush()}; F0.prototype.flush=function(){if(this.Y.pos>0){var Z={a:this.track.WN(),u:this.Y.pZ(),pd:Math.round(this.W),ad:Math.round(this.S)},Q=this.j;if(Q){var z=Q.Y.info;Z.itag=z.itag;z.Y&&(Z.xtags=z.Y);Z.sq=Q.rr;Z.st=Q.startTime;Z.sd=Q.duration;this.track.policy.Pn&&(Z.si=Q.O8());Q.W&&(Z.esl=Q.j+Q.S);Q.sN()&&(Z.eos=1)}isNaN(this.timestampOffset)||(Z.to=this.timestampOffset);var K;if(Q=(K=this.track.TW)==null?void 0:K.gy({})){for(var b in Q)this.K[b]!==Q[b]&&(Z["sb_"+b]=Q[b]);this.K=Q}this.track.pN("sbu", Z);this.Y.reset();this.buffered=[];this.L=this.S=this.W=0;this.timestampOffset=this.j=void 0}};wU.prototype.dispose=function(){this.SJ=!0}; wU.prototype.FI=function(){return this.SJ}; g.L(zb,Error);var E1x=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]);qs.prototype.skip=function(Z){this.offset+=Z}; qs.prototype.yA=function(){return this.offset};g.A=lEn.prototype;g.A.GP=function(){return this.j}; g.A.vS=function(){return this.j.length?this.j[this.j.length-1]:null}; g.A.Sm=function(){this.j=[];vl(this);jw(this)}; g.A.KV=function(Z){this.Du=this.j.shift().info;Z.info.Tg(this.Du)}; g.A.uc=function(){return g.my(this.j,function(Z){return Z.info})}; g.A.WN=function(){return!!this.K.info.audio}; g.A.getDuration=function(){return this.K.index.Hr()};g.L(il,tI);g.A=il.prototype;g.A.onStateChange=function(){this.FI()&&(n7(this.JN,this.formatId),this.Y.dispose())}; g.A.Fw=function(){var Z=WGn(this.JN,this.formatId),Q;var z=((Q=this.JN.X3.get(this.formatId))==null?void 0:Q.bytesReceived)||0;var K;Q=((K=this.JN.X3.get(this.formatId))==null?void 0:K.N4)||0;return{expected:Z,received:z,bytesShifted:Q,sliceLength:cu(this.JN,this.formatId),isAnyMediaEndReceived:this.JN.zB(this.formatId)}}; g.A.FG=function(){return 0}; g.A.rI=function(){return!0}; g.A.O9=function(){return this.JN.O9(this.formatId)}; g.A.On=function(){return[]}; g.A.H2=function(){return this.JN.H2(this.formatId)}; g.A.qe=function(){return this.lastError}; g.A.JJ=function(){return 0};g.L($z,g.O);g.A=$z.prototype;g.A.WN=function(){return!!this.Y.info.audio}; g.A.vS=function(){return this.W.vS()}; g.A.KV=function(Z){this.W.KV(Z);var Q;(Q=this.X)!=null&&(Q.L.add(Z.info.rr),Q.Y=I7W(Q,Q.UA,Q.gj,Z,Q.Y),Q.S=Z,Q.K=(0,g.Nm)());this.Yq=Math.max(this.Yq,Z.info.Y.info.Yq||0)}; g.A.getDuration=function(){if(this.policy.j){var Z=this.wr.wp();if(Z)return lg(Z)}return this.Y.index.Hr()}; g.A.Sm=function(){P7(this);this.W.Sm()}; g.A.Q$=function(){return this.W}; g.A.isRequestPending=function(Z){return this.S.length?Z===this.S[this.S.length-1].info.AG[0].rr:!1}; g.A.Oq=function(Z){var Q;(Q=this.X)==null||Q.Oq(Z);var z;(z=this.U)==null||z.Oq(Z)}; g.A.pN=function(Z,Q){this.wr.pN(Z,Q)}; g.A.R$=function(){return this.wr.R$()}; g.A.dispose=function(){var Z;(Z=this.U)==null||Z.flush();g.O.prototype.dispose.call(this)};g.L(Bl,g.O);Bl.prototype.S=function(){this.j++>15||(this.Y=!this.Y,new WbM(this.wr,this.policy,this.Bh,this.zW,this.Y),this.delay.start())}; g.A=WbM.prototype;g.A.Sw=function(){}; g.A.qD=function(){}; g.A.cS=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.s9()===this.size)this.wr.pN("rqs",this.getInfo());else{var Z="net.connect";this.xhr.status>200?Z="net.badstatus":this.xhr.zn()&&(Z="net.closed");this.onError(Z)}}; g.A.onError=function(Z){var Q=this;this.wr.handleError(Z,this.getInfo());LL("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(z){Q.wr.pN("pathprobe",z)},function(z){Q.wr.handleError(z.errorCode,z.details)})}; g.A.getInfo=function(){var Z=this.timing.Ae();Z.shost=h0(this.location.pM);Z.pb=this.size;return Z};g.L(Wl,g.O); Wl.prototype.T=function(Z,Q){if(Z.T){this.kh.isLive?(Z=this.kh.uY&&this.kh.W?Z.Y.TU(this.kh.uY,!1):Z.Y.Ou(Infinity),Z.tx=this.tx):Z=Z.Y.TU(0,!1);if(this.jJ){var z=this.jJ;Z.tx===0&&(Z.L=z.X)}else Z.L=this.U;return Z}z=Z.j;if(!z.Y.E6())return z.Y.Is()?(Z=mm(this.L,Z.Y.info.Yq,Q.Y.info.Yq,0),Z=z.Y.vK(z,Z)):Z=z.Y.u3(z),Z;var K=z.M8-this.wr.getCurrentTime(),b=!z.range||z.S===0&&z.j===0?0:z.range.length-(z.j+z.S),q=z.Y;this.wz(Z,K)&&b===0&&(this.kh.isManifestless?q=Z.Y:(q=z.startTime+A9,z.S&&(q+=z.duration), pL(Z,q),z=Z.j,q=z.Y));q.Is()?(b=this.S,Q=mm(this.L,q.info.Yq,Q.Y.info.Yq,K,b.W.length>0&&b.X===0&&this.wr.tJ),K=Pl(Z),Z=z.Y.vK(z,Q),(Q=Z.S)&&Z.AG.length>1&&(K||Z.zW.j||Z.AG[0].Y!==z.Y?Z=z.Y.vK(z,Z.AG[0].S):(K=Z.AG[Z.AG.length-1],q=K.S/Q,!K.W&&q<.4&&(Z=z.Y.vK(z,Q-K.S))))):(z.rr<0&&(Q=aa(z),Q.pr=""+Z.S.length,this.wr.isSeeking()&&(Q.sk="1"),Q.snss=z.L,this.wr.pN("nosq",Q)),Z=q.u3(z));if(this.policy.JG)for(z=g.n(Z.AG),Q=z.next();!Q.done;Q=z.next())Q.value.type=6;return Z}; Wl.prototype.wz=function(Z,Q){if(!Pl(Z)||!Z.Y.E6())return!1;var z=this.S.tG||yRD(Z)||Q<=this.policy.dU||this.S.jJ;this.logger.debug(function(){return"ready to adapt: "+z+", upgrade pending: "+yRD(Z)+", health: "+Q}); return z}; Wl.prototype.gr=function(){g.O.prototype.gr.call(this)}; var A9=2/24;g.L(ET,g.O);ET.prototype.Gi=function(Z,Q,z){var K;var b=((K=this.j)==null?void 0:K.reason)==="m"?"m":this.j&&zsD(this,this.j)?this.j.reason:"a";this.wr.Gi(new Hu(Z,b,z));FW(this.wr,Q,Z,!0)}; ET.prototype.Ci=function(Z,Q){for(var z=g.n(this.JG),K=z.next();!K.done;K=z.next())if(K=K.value,K.id===Z)return this.RW.tL||(this.S=[K]),this.K=this.kh.Y[Z],OT(this.RW)&&(this.jJ=!0),new Hu(this.K,Q?"t":"m");this.S=[];return null}; ET.prototype.mC=function(Z,Q,z){z=z===void 0?{}:z;this.Y.mC(Z,Q===void 0?!1:Q,z)};hi.prototype.setData=function(Z,Q,z,K){var b=this;K=K===void 0?{}:K;if(z==null?0:z.ih)this.Qs=ed9(this,z,K),Z.xo=this.zW.xo();if(this.uR())return!0;this.data=Z;this.Y=vaW(Z,Q,function(q,r){var D;(D=b.H4)==null||D.Sf(q,r)},z==null?void 0:z.S); if(!this.Y)return!1;this.j=g.ed(this.Y,bHn);return!0}; hi.prototype.uR=function(){return this.requestType===1}; hi.prototype.y$=function(){var Z;return((Z=this.H4)==null?void 0:Z.y$())||0}; hi.prototype.isDecorated=function(){var Z;return!((Z=this.data)==null||!Z.Rs)};L1.prototype.encrypt=function(Z){this.Kf.exports.AES128CTRCipher_encrypt(this.cipher,Z.byteOffset,Z.byteLength);return Z}; L1.prototype.FI=function(){return this.cipher===0}; L1.prototype.dispose=function(){this.Kf.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};cP.prototype.encrypt=function(Z,Q){return qP(this.subtleCrypto.encrypt({name:"AES-CTR",length:128,counter:Q},this.key,Z).catch(function(z){return Promise.reject(z.name+": "+z.message)}).then(function(z){return new Uint8Array(z)}))}; cP.prototype.FI=function(){return this.Y}; cP.prototype.dispose=function(){this.Y=!0}; aq.hS(cP,{encrypt:n1("oan2")});mT.prototype.encrypt=function(Z,Q){fR(this.j,Q);return qP(this.j.encrypt(Z))}; mT.prototype.FI=function(){return this.Y}; mT.prototype.dispose=function(){this.Y=!0}; aq.hS(mT,{encrypt:n1("oap")});IP.prototype.encrypt=function(Z,Q){var z=this.Kf.Xq(Q),K=this.Y;K.Kf.exports.AES128CTRCipher_setCounter(K.cipher,(z!=null?z:Q).byteOffset);Q=this.Kf.Xq(Z);this.Y.encrypt(Q!=null?Q:Z);z&&this.Kf.free(z.byteOffset);return Q?qP(this.Kf.GO(Q)):qP(Z)}; IP.prototype.FI=function(){return this.Y.FI()}; IP.prototype.dispose=function(){this.Y.dispose()}; aq.hS(IP,{encrypt:n1("oalw")});Ji.prototype.encrypt=function(Z,Q){var z=this,K=r0("");Z.length<=this.CH&&this.Y&&!this.W&&(K=v3(K,function(){return z.Y?z.Y.encrypt(Z,Q):r0("wasm unavailable")})); Z.length<=this.K7&&(this.Y&&this.W&&(K=v3(K,function(){return z.Y?z.Y.encrypt(Z,Q):r0("wasm unavailable")})),K=v3(K,function(){return hsG(z,Z,Q)})); return v3(v3(K,function(){return Lj4(z,Z,Q)}),function(){return hsG(z,Z,Q)})}; Ji.prototype.FI=function(){return this.L}; Ji.prototype.dispose=function(){this.L=!0;var Z;(Z=this.S)==null||D7(Z,g.jR);g.jR(this.Y);g.jR(this.j)};yi.prototype.encrypt=function(Z){(0,g.Nm)();return(new Qf(this.Y.Y)).encrypt(Z,this.iv)}; yi.prototype.decrypt=function(Z,Q){(0,g.Nm)();return(new Qf(this.Y.Y)).decrypt(Z,Q)}; yi.prototype.FI=function(){return this.S}; yi.prototype.dispose=function(){this.S=!0;g.jR(this.j)};g.L(dH,g.O);dH.prototype.S=function(Z,Q){if(Q){Q=Q instanceof g.TL?Q:Nd(this,Q);var z;((z=this.Y.get(Z))==null?void 0:h0(z.location))!==h0(Q)&&this.Y.set(Z,new GKX(Q,Z))}else this.Y.delete(Z)}; dH.prototype.load=function(){var Z=this,Q,z,K,b,q,r,D,v,Y,X;return g.C(function(S){switch(S.Y){case 1:Q=Z.Y.get(0);g.nX(S,2);var T;if(T=Q&&!Z.j)T=h0(Q.location),T=Z.j===K7(T);if(T){S.O$(4);break}return g.P(S,ig(Z,Z.j?2:0),5);case 5:if(z=S.j)Z.S(0,z),nZ(z)&&Z.S(1,co(z));case 4:g.m9(S,3);break;case 2:K=g.I0(S);g.CO(K);if(!Z.j){S.O$(3);break}Z.j=!1;return g.P(S,Z.load(),7);case 7:return S.return();case 3:if(!Z.Yh.experiments.XI("html5_onesie_probe_ec_hosts")){S.O$(0);break}g.nX(S,9);b=Z;q=b.S;r=3;return g.P(S, ig(Z,1),11);case 11:return q.call(b,r,S.j),D=Z,v=D.S,Y=4,g.P(S,ig(Z,2),12);case 12:v.call(D,Y,S.j);g.m9(S,0);break;case 9:X=g.I0(S),g.CO(X),g.LX(S)}})}; dH.prototype.T=function(){var Z=this,Q,z;return g.C(function(K){g.lR(Z.X);Q=g.Xp(Z.Yh.experiments,"html5_onesie_prewarm_max_lact_ms");if(yJ()>=Q)return K.return();(z=Z.Y.get(0))&&dxr(Z,z);g.LX(K)})}; var JCd={Nbf:0,BjJ:1,Agu:2,RCJ:3,mU$:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};aP.prototype.decrypt=function(Z){var Q=this,z,K,b,q,r,D;return g.C(function(v){switch(v.Y){case 1:if(Q.Y.length&&!Q.Y[0].isEncrypted)return v.return();Q.j=!0;Q.wj.bk("omd_s");z=new Uint8Array(16);nR()?K=new Z1(Z):b=new Qf(Z);case 2:if(!Q.Y.length||!Q.Y[0].isEncrypted){v.O$(4);break}q=Q.Y.shift();if(!K){r=b.decrypt(q.buffer.m9(),z);v.O$(5);break}return g.P(v,K.decrypt(q.buffer.m9(),z),6);case 6:r=v.j;case 5:D=r;for(var Y=0;Y<z.length;Y++)if(z[Y]===255)z[Y]=0;else{z[Y]+=1;break}Y=Q.wj;var X=q.videoId, S=q.DL,T=q.formatId,f=new fe([D]),h;(h=PP(Y.nL,X))==null||Ii(h,S,T,f);v.O$(2);break;case 4:Q.wj.bk("omd_c"),RP(Q),Q.j=!1,Q.wj.xm(),g.LX(v)}})}; aP.prototype.enqueue=function(Z,Q,z,K,b){this.Y.push({videoId:Z,DL:Q,formatId:z,buffer:K,isEncrypted:b});this.j||RP(this)};var Rsu=!!Uint8Array.prototype.copyWithin,C1=[],p1=[],inG=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Md=[],HP=[],Or=[],Ur=[];ug.prototype.sy=function(Z){return g.kO(new g.oP(Z))}; ug.prototype.yc=function(Z){function Q(r){if(!r.done)return q.append(r.value),b.read().then(function(D){return Q(D)})} if(!("DecompressionStream"in window))return r0("native decompression unavailable");var z=new DecompressionStream("gzip"),K=z.writable.getWriter();K.write(Z).then(function(){return K.close()}); var b=z.readable.getReader(),q=new fe([]);return v3(D7(D7(qP(b.read()),Q),function(){return q.m9()}),function(r){return r0(r.message)})}; ug.prototype.XD=function(Z,Q){var z=void 0,K=Q.Xq(Z);K&&(z=K.byteOffset,Z=K);K=Q.exports.getInflatedSize(Z.byteOffset,Z.length);if(K===0)return r0("bad compressed input");var b=Q.malloc(K);if(Q.exports.inflateGzip(Z.byteOffset,Z.length,b))return Q.free(b),r0("inflateGzip failed");z&&Q.free(z);return qP(new Uint8Array(Q.exports.memory.buffer,b,K))}; aq.hS(ug,{sy:function(Z){return{profile:"gzjb",XN:Math.ceil(Z.byteLength/16)}}, yc:function(Z){return{profile:"gznb",XN:Math.ceil(Z.byteLength/16)}}, XD:function(Z){return{profile:"gzwb",XN:Math.ceil(Z.byteLength/16)}}});g.L(xO,$X);g.A=xO.prototype;g.A.xm=function(){this.nL.xm()}; g.A.Or=function(Z,Q){switch(Z){case 10:var z=BA(Q,Y14);Z=z.Vxf;var K=!1;switch(Z){case 0:this.S=!z.WU.DBB;this.iv=z.WU.iv;break;case 2:break;case 23:var b=this.nL;z=z.bdp;b.bk("omp_r");z.videoId&&(b.ww=z.videoId);b.ww!==b.videoData.videoId&&(b.videoData.VW=b.ww,b.pN("ompp","vid."+b.ww));b.TO=!0;break;case 24:z=this.nL;z.bk("omp_c");z.TO=!1;z.l4=!1;var q=(b=z.rp)==null?void 0:b.get(z.ww);z.notifySubscribers(z.ww);q!=null&&(q.Y=!0);eF(z);break;default:K=!0}this.nL.C6&&this.nL.pN("ombup","id.10;pt."+ Z+";len."+Q.getLength()+(K?";ignored.1":""));this.W=Z;break;case 11:B59(this,Q);break;case 12:this.f_(Q,!0);break;case 37:Q=BA(Q,Xex);(Q.v$||Q.VK)&&Q.videoId&&this.nL.Kg.set(Q.videoId,Q);break;case 60:this.us(Q);break;case 47:this.V("html5_server_playback_start_policy")&&(Q=BA(Q,fB4),this.nL.playbackStartPolicy=Q);break;case 35:this.jb(Q);break;case 45:this.iN(Q);break;case 66:this.hJ(Q);break;default:this.nL.C6&&this.nL.pN("ombup","id."+Z+";len."+Q.getLength()+";ignored.1")}}; g.A.U1=function(Z){this.nL.U1(Z)}; g.A.us=function(Z){Z=BA(Z,FP);this.nL.us(Z)}; g.A.iN=function(Z){Z=BA(Z,eZ);this.nL.iN(Z)}; g.A.TY=function(Z){var Q=Z.DL,z=Z.BS,K=Z.Oc,b=Z.I4,q=Z.oP,r=Z.startMs,D=Z.durationMs,v=Z.timeRange,Y=Z.PJ,X=LQ(Z),S=c6n.has(kh[""+Z.itag]);z&&this.bk(S?"oais_r":"ovis_r");var T=this.Y[X]!==void 0;this.nL.C6&&this.nL.pN("ombup","id.20;hid."+Q+";fid."+X);var f=Z.videoId||"";this.j[Q]=X;this.L[Q]=f;T||(this.Y[X]={videoId:f,LW:!1,WN:S,headers:[]});this.Y[X].headers.push(Z);this.nL.pz(f,X,S,{DL:Q,BS:!!z,Oc:K!=null?K:-1,oP:q!=null?q:-1,startMs:r!=null?r:-1,durationMs:D!=null?D:-1,PJ:Y!=null?Y:0,I4:b,timeRange:v})}; g.A.f_=function(Z,Q){var z=Z.getUint8(0);this.nL.C6&&this.nL.pN("ombup","id."+(Q?12:21)+";len."+Z.getLength()+";hid."+z);if(Z.getLength()!==1){Z=Z.split(1).K6;var K=this.j[z]||null,b=this.L[z]||"";K&&(this.f0(this.Y[K].WN?"oafs_r":"ovfs_r"),this.queue.enqueue(b,z,K,Z,Q))}}; g.A.pj=function(Z){var Q=Z.getUint8(0);this.nL.C6&&this.nL.pN("ombup","id.22;len."+Z.getLength()+";hid."+Q);Z=this.j[Q]||null;var z=this.L[Q]||"";if(Z)if(this.V("html5_use_ump_request_slicer")){var K=this.queue;K.Y.push({videoId:z,DL:Q,formatId:Z,isEncrypted:!1,Sr:!0});K.j||RP(K)}else this.nL.pj(z,Q,Z)}; g.A.Mx=function(Z){this.nL.Mx(Z)}; g.A.Ud=function(Z,Q){var z=this,K,b,q,r,D,v,Y,X,S,T;return g.C(function(f){switch(f.Y){case 1:z.nL.Ud();K=Z.m9();if(!Q){q=K;f.O$(2);break}return g.P(f,l1W(z.nL,K,z.iv),3);case 3:q=f.j;case 2:b=q;if(!z.nL.enableCompression){f.O$(4);break}D=(r=performance)==null?void 0:r.now();return g.P(f,Ca4(b),5);case 5:b=f.j,z.nL.pN("decompression",{ds:"DecompressionStream"in window,rt:((v=performance)==null?NaN:v.now())-D});case 4:try{Y=BA(b,l0d)}catch(h){return X=h instanceof Error?{name:h.name,message:h.message}: {},X.webcrypto=""+ +!!nR(),X.enc=""+ +z.S,S=new N5("onesie.response.parse",X),f.return(Promise.reject(S))}Uxx(Y);T=g.dE(Y.body);return f.return(T)}})}; g.A.jb=function(Z){this.V("html5_consume_onesie_next_request_policy_for_sabr")&&(Z=BA(Z,$4r),this.nL.jb(Z))}; g.A.hJ=function(Z){Z={gt:UP(new av(Z),1,nEG)};this.nL.hJ(Z)}; g.A.bk=function(Z){this.nL.bk(Z)}; g.A.f0=function(Z){return this.nL.f0(Z)}; g.A.V=function(Z){return this.nL.V(Z)};g.L(Ff,g.O);g.A=Ff.prototype;g.A.zP=function(){return""}; g.A.w_=function(Z){var Q,z;return((z=(Q=this.rp)==null?void 0:Q.get(Z))==null?void 0:z.w_())||[]}; g.A.H2=function(Z,Q){var z;return!((z=PP(this,Q))==null||!z.H2(Z))}; g.A.O9=function(Z,Q){var z;return((z=PP(this,Q))==null?void 0:z.O9(Z))||[]}; g.A.uc=function(Z,Q){var z;return((z=PP(this,Q))==null?void 0:z.uc(Z))||[]}; g.A.Q3=function(Z){this.state=Z;this.notifySubscribers()}; g.A.uR=function(){return!1}; g.A.LY=function(){return!1}; g.A.WQ=function(){}; g.A.bk=function(Z){this.Iu.bk(Z)}; g.A.f0=function(Z){return this.Iu.f0(Z)}; g.A.Gt=function(Z,Q,z,K){z||this.OS.Gt(K);return!1}; g.A.aG=function(Z,Q){this.wj.aG(Z,Q)}; g.A.zY=function(){this.bk("orfb");this.MM=!0;if(sOM(this)&&this.xhr){var Z={rc:this.xhr.status,lb:this.xhr.s9(),rt:(1E3*W5D(this.OS)).toFixed(),shost:g.pE(this.iB),trigger:"o1"};this.pN("pathprobe",d8(Z))}}; g.A.Ud=function(){this.bk("opr_r");this.vW=!0}; g.A.pz=function(Z,Q,z,K){if(this.rp){if(!this.rp.has(Z)){var b=new f7(this);this.rp.set(Z,b);g.W(this,b)}var q;(q=this.rp.get(Z))==null||q.pz(Q,z,K);eF(this);z||(this.KM=K.oP,this.Rm=K.startMs)}else eF(this)}; g.A.U1=function(Z){this.Fe=Z;Z.U4!=null&&this.Iu.ke(Z.U4)}; g.A.us=function(Z){this.HE=Z}; g.A.jb=function(Z){Z.videoId&&this.pw.set(Z.videoId,Z)}; g.A.xm=function(){if(this.rp)for(var Z=g.n(this.rp.keys()),Q=Z.next();!Q.done;Q=Z.next()){var z=void 0;(z=this.rp.get(Q.value))==null||z.fn()}}; g.A.iN=function(Z){this.Ah=Z}; g.A.hJ=function(Z){if(Z==null?0:Z.gt)if(Z=Z.gt.bL){Z=g.n(Z);for(var Q=Z.next();!Q.done;Q=Z.next())Q=Q.value,Q.videoId&&this.r3.set(Q.videoId,Q)}}; g.A.pN=function(Z,Q,z){this.Iu.pN(Z,Q,z===void 0?!1:z)}; g.A.pj=function(Z,Q,z){var K;(K=PP(this,Z))==null||K.pj(Q,z)}; g.A.Mx=function(Z){this.Do.set(Z.videoId,Z)}; g.A.fetch=function(){var Z=this,Q,z,K,b,q,r,D,v,Y,X,S,T,f,h,m,J,d,G,R,U,B;return g.C(function(e){switch(e.Y){case 1:Z.logger.debug("Onesie fetch started.");Z.NG?Z.vI.start():Z.BV.start();Z.bk("or_i");Q=Z.Yh.experiments.XI("html5_onesie_verbose_timing");z={};K=(0,g.Nm)();b=function(F){Q&&(z[F]=(0,g.Nm)()-K)}; b("loc_s");if(q=VYu(Z.videoData,Z.Ex)){e.O$(2);break}b("loc_async");r=g.Xp(Z.Yh.experiments,"html5_onesie_redirector_timeout_ms");return g.P(e,kKu(Z.videoData,Z.Ex,r),3);case 3:q=e.j;case 2:if(!q)return Z.logger.info("Onesie URL creation failed."),D={url:"0"},v=new N5("onesie.unavailable.hotconfig",D),Z.W8(v),e.return(Z.rl);Z.Qs=h0(q);b("loc_e");Y=g.la(Z.Yh,g.B0(Z.videoData));X=!!Y.Y;if(!X){S=Y.getValue();e.O$(4);break}return g.P(e,Y.Y,5);case 5:S=e.j;case 4:T=S;Z.V("html5_log_onesie_empty_oauth")&& !T&&Z.pN("no_token",{async:X});b("oauth");f=xxx(Z.playerRequest,Z.Yh,Z.videoData,T,K7(Z.Qs));g.nX(e,6);if(!EaX(Z,f)){b("or_s_sync");Z.Wc=Fjx(f,Z.sV,Z.Yh,Z.Iu,Z.CY.onesieUstreamerConfig,(h=Z.videoData.ji)==null?void 0:h.XE);e.O$(8);break}b("or_s_async");return g.P(e,wZ0(f,Z.sV,Z.Yh,Z.Iu,Z.CY.onesieUstreamerConfig,(m=Z.videoData.ji)==null?void 0:m.XE),9);case 9:Z.Wc=e.j;case 8:g.m9(e,7);break;case 6:return J=g.I0(e),Z.logger.info("Failed to create OnesieRequestProto."),Z.W8(J),e.return(Z.rl);case 7:return b("or_e"), Q&&Z.pN("oreqvt",z),Z.enableCompression=Z.Wc.lA.Pb,Z.bk("osor"),d=U1r(),G=g.ed(Z.Wc,CzG),R={method:"POST",body:G,headers:{"Content-Type":"text/plain",Referer:location.origin}},U=Z.V("html5_onesie_media_capabilities"),u4n(q,Z.videoData,QOu(Z),U),Z.logger.debug("Starting Onesie network request."),Z.C6&&Z.pN("ombrs","1"),B=Z.Iu.N().schedule,Z.OS=new VZ(Z,{Bh:B,LA:Z.C6,Hz:function(F,KX){Z.Iu.xp(F,KX)}, lP:!0}),q.set("rn",""+Z.OS.requestNumber),Z.iB=q.sS(),W7(Z.OS,Z.iB),Z.bk("or_p"),Z.xhr=wF(new DE(q),d,Z.OS,xQ,R),Z.hh.start(),e.return(Z.rl)}})}; g.A.Vo=function(){return 2}; g.A.Sw=function(){this.bk("orh_r")}; g.A.qD=function(){!this.MM&&this.xhr.s9()&&this.zY();if(this.AS&&!this.NG){var Z;(Z=this.gh)==null||Z.start()}this.Ag()}; g.A.cS=function(Z){Z=Z===void 0?!1:Z;this.logger.debug("onXhrDone");this.Ag();if(!(this.FI()||this.state>=4)){var Q=ti(this),z=this.xhr;Q.rc=z.status;Z&&(Q.ab=!0);if(z.Fl()){var K="onesie.net";Q.msg=z.Fl()}else z.status>=400?K="onesie.net.badstatus":z.F4()?this.vW||(K="onesie.response.noplayerresponse"):K=z.status===204?"onesie.net.nocontent":"onesie.net.connect";K?this.W8(new N5(K,Q)):(this.bk("or_fs"),this.OS.Co((0,g.Nm)(),z.s9(),0),this.Q3(4),this.C6&&this.pN("rqs",Q));this.C6&&this.pN("ombre", "ok."+ +!K);this.l4=!1;eF(this);OnX(this.wj);if(!this.NG){this.BV.stop();var b;(b=this.gh)==null||b.stop()}var q;if(Z=(q=this.Ex)==null?void 0:N50(q))for(q=0;q<Z.length;q++)this.pN("pathprobe",Z[q])}}; g.A.gC=function(){if(this.playerResponse&&this.xhr&&this.rp)for(var Z=g.n(this.rp.entries()),Q=Z.next();!Q.done;Q=Z.next())if(Q=g.n(Q.value),Q.next(),Q.next().value.j){this.xhr.abort();this.cS(!0);break}}; g.A.N=function(){return this.Yh}; g.A.V=function(Z){return this.Yh.V(Z)}; g.A.RLN=function(){if(sOM(this)&&this.Ex&&(!this.MM||this.V("html5_onesie_probe_ec_hosts"))){var Z=this.Ex;if(Z.Yh.experiments.XI("html5_onesie_probe_ec_hosts")){var Q,z=(Q=Z.Y.get(3))==null?void 0:h0(Q.location);z&&Gm(Z,z,"osc",this);var K;(z=(K=Z.Y.get(4))==null?void 0:h0(K.location))&&Gm(Z,z,"ocy",this)}else{var b;(K=(b=Z.Y.get(1))==null?void 0:h0(b.location))&&Gm(Z,K,"o2",this);(K=(z=Z.Y.get(2))==null?void 0:h0(z.location))&&Gm(Z,K,"o3",this)}}}; g.A.DC=function(){if(!this.FI()&&!this.isComplete()){if(this.AS){if((0,g.Nm)()-this.OS.T>1E3){var Z;(Z=this.OS)==null||Z.Zx((0,g.Nm)());Z=ti(this);if(this.Yh.aT()&&this.xhr instanceof F2){var Q=this.xhr;Z.xrs=Q.xhr.readyState;Z.xpb=Q.Y.getLength();Z.xdc=Q.W}this.W8(new N5("net.timeout",Z))}}else(0,g.Nm)()-this.OS.Y>1E4&&((Q=this.OS)==null||Q.Zx((0,g.Nm)()),this.uA());this.isComplete()||this.vI.start()}}; g.A.uA=function(){this.logger.info("Onesie request timed out");this.l4=!1;if(!eF(this)){var Z=ti(this);Z.timeout="1";this.W8(new N5("onesie.request",Z))}}; g.A.W8=function(Z){var Q=this;Z=it(Z);this.AS?this.Iu.U8(Z):(this.rl.reject(Z),this.AS=!0);OnX(this.wj);this.NG||this.BV.stop();this.bk("or_fe");var z,K;(z=this.Ex)==null||(K=N50(z))==null||K.forEach(function(b){Q.pN("pathprobe",b)}); this.Q3(5);this.dispose()}; g.A.isComplete=function(){return this.state>=3}; g.A.gD=function(){return this.state===4}; g.A.xg=function(Z){var Q,z;return this.isComplete()||!!((Q=this.rp)==null?0:(z=Q.get(Z))==null?0:z.Y)}; g.A.wD=function(){return!1}; g.A.Yz=function(){return this.state===5}; g.A.notifySubscribers=function(Z){for(var Q=0;Q<this.rg.length;Q++)Z&&this.rg[Q].lY()!==Z||ZO(this.rg[Q],this)}; g.A.Cg=function(){var Z,Q;return((Z=this.Wc)==null?void 0:(Q=Z.Yx)==null?void 0:Q.Vg)||0}; g.A.gr=function(){this.playerResponse="";var Z;(Z=this.xhr)==null||Z.abort();OnX(this.wj);this.L6.dispose();var Q;(Q=this.gh)==null||Q.dispose();this.Q3(-1);this.rg=[];g.O.prototype.gr.call(this)}; g.A.Ag=function(){try{var Z=this.xhr;Z.s9()>102400&&!this.IY&&(this.bk("or100k"),this.IY=!0);if(Z.QR()){var Q=Z.hw(),z=Q.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+z}); this.C6&&this.pN("ombrss","len."+z);this.L6.feed(Q)}if(this.rp)for(var K=g.n(this.rp.keys()),b=K.next();!b.done;b=K.next()){var q=b.value;Z=void 0;(Z=this.rp.get(q))==null||Z.fn();this.notifySubscribers(q)}}catch(r){this.W8(r)}}; g.A.Xo=function(){return this.OS.requestNumber}; g.A.w7=function(Z){return this.Do.get(Z)}; g.A.Q1=function(){return{KM:this.KM,Rm:this.Rm,isDecorated:!1}};g.L(K14,g.O);g.A=K14.prototype;g.A.gP=function(Z,Q){this.SJ=void 0;If4(this);nF9(this,Z,Q)}; g.A.jW=function(Z){if(this.Y.length===0)return!1;var Q=this.Y[0];return Q instanceof Ff?Z===this.wr.getCurrentTime()*1E3:!(Q instanceof JZ&&XZu(Q.info))&&Math.abs(Q.Cg()-Z)<50}; g.A.jb=function(Z){this.j=Z;this.SJ=(0,g.Nm)()+(Z.backoffTimeMs||0)}; g.A.gB=function(Z,Q){if(Z.action===void 0){var z=this.Iu.pQ();z!==void 0&&this.wr.s1(z)}else if(Z.action!==0||!this.Du)switch(Z.action===0&&this.policy.YI&&(Z.action=2),z={},z.reason=Z.GyN,z.action=Z.action,z.rn=Q,Z.action){case 1:this.policy.L&&this.W&&this.W.wi(void 0,void 0,z);break;case 0:this.Du=!0;this.videoData.GJ()&&this.policy.L&&this.W&&this.W.wi(void 0,void 0,z,!1);this.wr.SF(z);break;case 2:this.wr.handleError("sabr.config",z,1);break;case 5:W74(this.Iu,!0);break;case 6:W74(this.Iu,!1); break;case 3:this.policy.ih&&((Z=this.kh.X)!=null&&(Z.X=!0),this.wr.handleError("sabr.hostfallback",z))}}; g.A.YN=function(Z,Q,z,K){if(this.policy.j){this.wr.pN("ssap",{rn:K,v:Q,tl:yFG(Z)});var b=this.wr.wp();Z={yD:Z,context:z,version:Q};cFG(this,z);b?mkd(this,b,Z):(this.wr.pN("ssap",{cacheclips:1,rn:K,v:Q}),this.X=Z)}}; g.A.H_=function(Z){this.wr.pN("ssap",{onsbrctxt:Z.type,dflt:Z.sendByDefault});cFG(this,Z);this.Iu.H_(Z)}; g.A.Sj=function(){}; g.A.iN=function(Z){if(Z.Up!==void 0&&Z.Qg){var Q=Z.Up/Z.Qg;this.audioTrack.T=!1;this.videoTrack.T=!1;if(this.policy.SJ||this.policy.WS||this.policy.p9)this.wr.j_.j=!1;this.wr.gS(Q,1);if(this.Iu.getCurrentTime()!==Q){var z={s8:"sabr_seek",xx:!0,TX:!0};Z.seekSource&&(z.seekSource=Z.seekSource);UV(this.wr,Q+.1,z)}}}; g.A.onSnackbarMessage=function(Z){this.Iu.publish("onSnackbarMessage",Z)}; g.A.U1=function(Z){Z.Y7&&Z.Le&&hR(this.kh,Z.Y7,Z.Le);this.policy.S5&&(Z.UB&&Z.Qy&&(this.kh.Sb=Z.UB/Z.Qy),Z.MS&&Z.eN&&(this.kh.vk=Z.MS/Z.eN));Z.U4!=null&&this.Iu.ke(Z.U4);this.policy.dl&&Z.r0&&(Z=((0,g.Nm)()-Z.r0)/1E3,this.wr.mp.IF(1,Z))}; g.A.jw=function(Z){this.wr.jw(Z)}; g.A.wB=function(Z,Q,z){this.policy.S&&this.wr.pN("sabrctxtplc",{start:Z?Z.join("_"):"",stop:Q?Q.join("_"):"",discard:z?z.join("_"):""});if(Z){Z=g.n(Z);for(var K=Z.next();!K.done;K=Z.next())this.Nr.add(K.value)}if(Q)for(Q=g.n(Q),Z=Q.next();!Z.done;Z=Q.next())Z=Z.value,this.Nr.has(Z)&&this.Nr.delete(Z);if(z)for(z=g.n(z),Q=z.next();!Q.done;Q=z.next())Q=Q.value,this.videoData.sabrContextUpdates.has(Q)&&(this.videoData.sabrContextUpdates.delete(Q),Q===3&&(this.videoData.HK=""))}; g.A.HV=function(){}; g.A.HC=function(Z){this.K=Z}; g.A.jU=function(Z){this.Vp=Z}; g.A.WV=function(Z,Q){og(this.policy,Z,4,Q)}; g.A.hJ=function(Z){if(Z==null?0:Z.gt)if(Z=Z.gt.bL){Z=g.n(Z);for(var Q=Z.next();!Q.done;Q=Z.next())if(Q=Q.value,Q.formatId){var z=this.kh.S.get(LQ(Q.formatId));z&&z.info&&(z.info.debugInfo=Q.debugInfo)}}}; g.A.jj=function(Z){(Z=Z==null?void 0:Z.reloadPlaybackParams)&&this.Iu.publish("reloadplayer",Z)}; g.A.lY=function(){return this.Iu.lY()||""}; g.A.y$=function(){var Z=yK(this.audioTrack,!0)*1E3,Q=yK(this.videoTrack,!0)*1E3;return Math.min(Z,Q)}; g.A.Sf=function(Z,Q){this.wr.pN(Z,Q)}; g.A.HW=function(Z){xkX(this.wr,ytd(this.s$,Z))}; g.A.gr=function(){g.O.prototype.gr.call(this);this.j=void 0;nF9(this,!0,"i");this.Y=[]};dkX.prototype.MR=function(Z,Q){if(this.W)return P8G(this,Q);if(Q=OV(Z)){var z=Q.j;z&&z.S&&z.Y&&(Z=Z.S.length?Z.S[0]:null)&&Z.state>=2&&!Z.Yz()&&Z.info.tx===0&&(this.W=Z,this.T=z,this.j=Q.info,this.K=this.startTimeSecs=Date.now()/1E3,this.L=this.j.startTime)}return NaN}; dkX.prototype.clear=function(){this.j=this.T=this.W=null;this.Y=this.L=this.K=this.startTimeSecs=NaN;this.S=!1};g.L(g.bX,g.O);g.A=g.bX.prototype;g.A.initialize=function(Z,Q,z){this.logger.debug(function(){return"Initialized, t="+Z}); Z=Z||0;this.policy.Y||(Q=NmX(this.Y),evX(this.Iu,new Hu(Q.video,Q.reason)),this.Iu.W_(new Hu(Q.audio,Q.reason)));this.kh.isManifestless&&EQM(this.L);this.T&&Gs4(this.T,this.videoTrack.Y);Q=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var K=!this.kh.isManifestless;this.policy.Ps&&(K=K||this.kh.Da);this.policy.KN||(this.currentTime=K?Z:Q);this.policy.SJ&&this.seek(this.getCurrentTime(),{}).RX(function(){}); if(this.policy.Y){var b;((b=this.jJ)==null?0:zvW(b,this.lY()||""))&&MHG(this)&&HUn(this,this.videoTrack)&&HUn(this,this.audioTrack)&&(JFG(this.S,this.jJ),this.policy.K&&p1r(this))}else this.SJ&&(Ukf(this,this.videoTrack),Ukf(this,this.audioTrack),BLG(this.SJ),delete this.SJ);z?(this.policy.Vr?(this.F7=z,rY(this,z)):rY(this,!1),g.lR(this.b5)):(z=this.getCurrentTime()===0,uH(this.L,this.videoTrack,this.videoTrack.Y,z),uH(this.L,this.audioTrack,this.audioTrack.Y,z),this.policy.Y&&rFX(this.S,!0),this.policy.SJ|| this.seek(this.getCurrentTime(),{}).RX(function(){}),this.timing.tick("gv")); (this.kh.uY||this.kh.nZ||this.kh.Vp||this.kh.ih||this.kh.fL)&&this.Iu.o2(this.kh)}; g.A.resume=function(){if(this.isSuspended||this.tJ){this.logger.debug("Resumed.");this.Oz=this.tJ=this.isSuspended=!1;try{this.MR()}catch(Z){g.Rm(Z)}}}; g.A.qK=function(){return!this.policy.F7}; g.A.Sd=function(Z,Q){Z=Z===void 0?!1:Z;Q=Q===void 0?!1:Q;this.logger.debug("detaching media source");W1n(this);this.Iu.jc()&&(this.K=NaN);Z?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.c7&&this.pN("loader",{setsmb:1}),this.policy.JG=!0,this.Sm()):(this.policy.Vr?rY(this,this.F7):rY(this,!1),Q||this.Sm())}; g.A.setAudioTrack=function(Z,Q,z){z=z===void 0?!1:z;if(!this.FI()){var K=!isNaN(Q);z&&K&&(this.audioTrack.jJ=Date.now(),this.policy.aC&&(this.NB=!0));if(this.policy.Y){var b=this.j.Ci(Z.id,K);this.logger.debug(function(){return"Logging new audio format: "+b.Y.info.id}); this.Iu.W_(b)}else{var q=Jtx(this.Y,Z.id,K);this.logger.debug(function(){return"Logging new audio format: "+q.audio.info.id}); this.Iu.W_(new Hu(q.audio,q.reason))}if(K&&(z=this.audioTrack.Y.index.ON(Q),this.pN("setAudio",{id:Z.id,cmt:Q,sq:z}),z>=0)){this.policy.Y&&(this.j.X=!0,this.gP(!0,"mosaic"));da(this.audioTrack,z,NaN,NaN);!this.policy.ex&&this.kh.isLive&&fD(this.kh,z,!1);return}this.Iu.k6()}}; g.A.setPlaybackRate=function(Z){Z!==this.U.getPlaybackRate()&&this.U.setPlaybackRate(Z)}; g.A.wg=function(Z){var Q=this.S.K;this.S.HC(Z);this.pN("scfidc",{curr:LQ(Q),"new":LQ(Z)});Z&&LQ(Z)!==LQ(Q)&&(this.gP(!1,"caption change"),this.MR())}; g.A.ST=function(Z){this.S.jU(Z)}; g.A.Gi=function(Z){var Q=Z.Y.info.WN();this.logger.debug(function(){return"New "+(Q?"audio":"video")+" format from SABR: "+qB(Z.Y.info)}); Q?this.Iu.W_(Z):evX(this.Iu,Z)}; g.A.HW=function(Z){No(Z.AG[Z.AG.length-1])&&xkX(this,ytd(this.Y,Z.AG[0].Y))}; g.A.vH=function(){return this.Iu.vH()}; g.A.YQ=function(){return this.Iu.YQ()}; g.A.jw=function(Z){this.Iu.N().aT()&&this.pN("sps",{status:Z.nj||""});if(Z.nj===1)this.Iu.videoData.Ca=0;else if(Z.nj===2||Z.nj===3){var Q=!1;if(Z.nj===3){Q=this.Iu.SG();var z;this.Sp=(z=Z.QCB)!=null?z:Infinity;this.Iu.videoData.Ca=Q+1;(Q=ew(this))&&this.Fn(!0)}this.Iu.AX(!0,Q)}}; g.A.cO=function(){return this.Iu.cO()}; g.A.mL=function(){return this.Iu.mL()}; g.A.pT=function(Z){this.Iu.pT(Z)}; g.A.Tfu=function(){var Z,Q=(Z=this.Iu.ES())==null?void 0:Z.getCurrentTime();Q?this.Iu.pN("rms",{cta:Q}):g.lR(this.ih)}; g.A.MR=function(){uRf(this);if(this.Tf&&ux(this.Tf)&&!this.Tf.G0()&&(!this.policy.KN||isFinite(this.getCurrentTime()))){var Z=fv(this.videoTrack);Z=this.policy.SH&&Z&&Z.sN();this.kh.isManifestless&&this.kh.W&&X9(this.kh)?(this.K=X9(this.kh),this.Tf.bN(this.K)):LD(this.kh)&&!Z?isNaN(this.K)?(this.K=this.getCurrentTime()+3600,this.Tf.bN(this.K)):this.K<=this.getCurrentTime()+1800&&(this.K=Math.max(this.K+1800,this.getCurrentTime()+3600),this.Tf.bN(this.K)):this.Tf.isView||(Z=Math.max(this.audioTrack.getDuration(), this.videoTrack.getDuration()),(!isFinite(this.K)||this.K!==Z)&&Z>0&&(this.Tf.bN(Z),this.K=Z))}if(!this.FI())if(YQ(this.kh)&&this.kh.Yz()){var Q=this.kh;this.handleError("manifest.net.retryexhausted",Q.NB?{rc:Q.Xl}:{rc:Q.Xl.toString()},1)}else if(this.policy.Y)a:{try{ff4(this.S);this.kh.isManifestless&&this.policy.K&&H7(this.j_);if(BvX(this)&&this.Tf&&!FF(this.Tf)&&this.videoTrack.Vp&&this.audioTrack.Vp){this.pN("ssap",{delaysb:1,v:this.videoTrack.Y.info.id,vf:this.videoTrack.Y.info.Gf,a:this.audioTrack.Y.info.id, af:this.audioTrack.Y.info.Gf});var z=this.Tf,K=this.videoTrack.Y,b=this.audioTrack.Y;!FF(z)&&b&&K&&(LMG(z,K.info,b.info,this.policy.bY),VHu(this,z))}var q;((q=this.Tf)==null?0:FF(q))&&this.Qt();this.policy.Y||qM(this);rFX(this.S)}catch(D){g.CO(D);Q=D;if(Q.message.includes("changeType")){this.pN("ssap",{exp:Q.name,msg:Q.message,s:Q.stack});break a}this.handleError("fmt.unplayable",{exp:Q.name,msg:Q.message,s:Q.stack},1)}X0X(this);g.lR(this.Zu)}else if(!this.kh.j||!GiM(this.videoTrack)&&!GiM(this.audioTrack)|| (this.videoTrack.L||this.audioTrack.L)&&this.policy.X7?z=!1:(this.Sm(),this.Iu.seekTo(Infinity,{s8:"checkLoaderTracksSync",gS:!0}),z=!0),!z){uRf(this);this.kh.isManifestless&&(iD9(this.videoTrack),iD9(this.audioTrack),H7(this.j_),(z=OV(this.videoTrack))&&z.j&&(z=z.j.S&&!this.policy.T0,this.pN(z===this.policy.X.FF?"strm":"strmbug",{strm:z,sfmp4:this.policy.X.FF,dfs:this.policy.T0},!0)));if(this.Tf)this.Qt();else if(this.policy.W){var r;z=!1;if(this.policy.aN)for(K=g.n([this.videoTrack,this.audioTrack]), b=K.next();!b.done;b=K.next()){q=b.value;for(b=OV(q);b&&q.vS()!==fv(q);b=OV(q))q.KV(b);z=z||!!b}else(Q=OV(this.videoTrack))&&this.videoTrack.KV(Q),(r=OV(this.audioTrack))&&this.audioTrack.KV(r);mK(this.videoTrack)&&mK(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(Q||r||z)&&s0(this)}qM(this);uH(this.L,this.videoTrack,this.videoTrack.Y,!1);uH(this.L,this.audioTrack,this.audioTrack.Y,!1);this.policy.p8||F1G(this,this.videoTrack,this.audioTrack);u94(this.L,this.videoTrack, this.audioTrack);u94(this.L,this.audioTrack,this.videoTrack);X0X(this);this.T&&(Q=this.T,Q.W?(r=Q.K+Q.policy.PK,Q.S||(r=Math.min(r,Q.startTimeSecs+Q.policy.Dt)),Q=Math.max(0,r*1E3-Date.now())):Q=NaN,isNaN(Q)||g.lR(this.Ph,Q));g.lR(this.Zu)}}; g.A.SF=function(Z){this.Iu.SF(Z)}; g.A.Qt=function(){var Z=this;if(this.Tf){var Q=this.Tf.Y,z=this.Tf.j;hQu(this,this.audioTrack);hQu(this,this.videoTrack);var K=EFn(this);if(K){if(this.policy.Db){if(!Q.CO()){var b=OV(this.audioTrack);if(b){if(!KP(this,this.audioTrack,Q,b.info))return;Z3n(this,this.audioTrack,Q,b)}}if(!z.CO()&&(b=OV(this.videoTrack))){if(!KP(this,this.videoTrack,z,b.info))return;Z3n(this,this.videoTrack,z,b)}}this.wS||(this.wS=(0,g.Nm)(),this.logger.debug(function(){return"Appends pause start "+Z.wS+" reason "+K}), this.policy.S&&this.pN("apdps",{r:K}))}else if(this.wS&&(w19(this,this.wS),this.wS=0),lfW(this),b=!1,this.policy.j&&pv(this.videoTrack)||!qHD(this,this.videoTrack,z)||(b=!0,Qau(this.timing),qX9(this.timing)),this.Tf&&!this.Tf.Bx()&&(this.policy.j&&pv(this.audioTrack)||!qHD(this,this.audioTrack,Q)||(b=!0,znX(this.timing),rt4(this.timing)),!this.FI()&&this.Tf)){if(!this.policy.F7&&mK(this.videoTrack)&&mK(this.audioTrack)&&ux(this.Tf)&&!this.Tf.G0()){z=!1; z=fv(this.audioTrack);if(this.policy.j){var q;Q=(q=this.jf)==null?void 0:NK(q,z.eP*1E3);z=!(!Q||Q.clipId!==z.clipId);this.pN("ssap",{eos:z})}else q=z.Y,z=q===this.kh.Y[q.info.id];z&&(this.logger.debug("Setting EOS"),nCG(this.Tf),M9n(this.schedule))}b&&!this.Tf.isAsync()&&s0(this)}}}; g.A.qI=function(Z){var Q,z=Z===((Q=this.Tf)==null?void 0:Q.Y)?this.audioTrack:this.videoTrack,K;(K=z.JG)==null||K.stop();var b;if((b=OV(z))==null?0:b.isLocked){if(this.Iu.N().aT()){var q;this.pN("eosl",{ounlock:(q=OV(z))==null?void 0:q.info.O8()})}var r;gGf(this,Z===((r=this.Tf)==null?void 0:r.Y))}var D;if(this.policy.aC&&Z===((D=this.Tf)==null?void 0:D.Y)&&this.qB){Q=this.qB-this.getCurrentTime();var v;this.Iu.pN("asl",{l:Q,xtag:(v=fv(this.audioTrack))==null?void 0:v.Y.info.Y});this.NB=!1;this.qB= 0}Z.YZ()&&Z.Sx().length===0&&(Z.lH(),this.Tf&&!this.Tf.YZ()&&(this.Iu.N().aT()&&this.Iu.pN("rms",{ld:"seek"}),this.Tf.K=performance.now(),this.Iu.F2(),this.Iu.N().aT()&&g.lR(this.ih)));var Y;(Y=z.U)!=null&&ef(Y,0);this.policy.CN&&this.policy.hV&&this.Tf&&(z=Z.ZM())&&z.sN()&&!DR(Z.Sx(),Math.min(z.eP+A9,z.M8))&&this.pN("sbunb",{st:z.eP,et:z.M8});this.policy.Ph?tA(this):this.MR()}; g.A.mTu=function(Z){if(this.Tf){var Q=fv(Z===this.Tf.Y?this.audioTrack:this.videoTrack);if(Z=Z.g7())for(var z=0;z<Z.length;z++)this.pN("appendedbuffer",{i:z,b:g.hj(Z[z].subarray(0,4096),3)});Z=void 0;Q&&(Z=aa(Q),this.policy.j&&this.jf&&this.jf.lw()&&(Z.ccid=this.jf.lw()));this.handleError("fmt.unplayable",Z,1)}}; g.A.QM=function(Z){this.Iu.QM(Z)}; g.A.Cq=function(Z,Q,z){if(this.kh.isManifestless){Z=!!Z.info.video;SaM(this,Q,z,Z,!0);var K;if(((K=this.Iu.getVideoData())==null?0:K.enableServerStitchedDai)&&Q.Y){a:{K=this.kh;var b=Q.rr;for(q in K.Y)if(!ZR(K.Y[q].info)&&K.Y[q].info.Gy()===!Z){z=void 0;var q=((z=K.Y[q].index.aR(b))==null?void 0:z.Y)||0;break a}q=0}q!==0&&q!==Q.Y&&this.handleError("ssdai.avsync",{sq:Q.rr,a:Z?q:Q.Y,v:Z?Q.Y:q},0)}}}; g.A.Er=function(Z,Q,z,K){Z.info.video&&this.W.Er(Q,z,K)}; g.A.hf=function(Z){this.Y.hf(Z)}; g.A.hq=Qx(19);g.A.GA=function(Z){this.jf=Z;var Q;(Q=this.audioTrack.X)!=null&&(Q.y3=Z);(Q=this.videoTrack.X)!=null&&(Q.y3=Z);Q=this.S;Q.X&&(Q.wr.pN("ssap",{addcacheclips:1,v:Q.X.version,tl:yFG(Q.X.yD)}),mkd(Q,Z,Q.X),Q.X=void 0)}; g.A.wp=function(){return this.jf}; g.A.J8=function(){return this.videoTrack.T||this.audioTrack.T}; g.A.seek=function(Z,Q){if(this.FI())return TD();if(this.J8())return TD("seeking to head");if(this.policy.SJ&&!isFinite(Z))return PJM(this.j_),g.$7(Infinity);uRf(this);this.G_=(0,g.Nm)();this.policy.Y||qM(this,Z);this.Tf&&this.Tf.Y&&this.Tf.j&&!this.Iu.getVideoData().yE&&(this.Tf.Y.isLocked()||this.Tf.j.isLocked())&&this.Iu.k6({reattachOnLockedBuffer:1,vsb:""+this.Tf.j.isLocked(),asb:""+this.Tf.Y.isLocked()});var z=this.getCurrentTime(),K=this.j_.seek(Z,Q);this.policy.KN||(this.currentTime=K);C7(this.W, Z,z,this.policy.V6&&!Q.xx);s0(this);return g.$7(K)}; g.A.jW=function(Z){return this.policy.Y&&this.S.jW(Z)}; g.A.gP=function(Z,Q){this.S.gP(Z,Q)}; g.A.getCurrentTime=function(){if(this.policy.KN){var Z=this.Ry()||0;return this.Iu.getCurrentTime()-Z}return this.currentTime}; g.A.sT=function(){return this.audioTrack.Y.info}; g.A.HM=function(){return this.videoTrack.Y.info}; g.A.tq=function(){return this.audioTrack.Y.info.Gf}; g.A.kH=function(){return this.videoTrack.Y.info.Gf}; g.A.gr=function(){try{this.Sd(),P7(this.audioTrack),P7(this.videoTrack),Rg(this.audioTrack),Rg(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.O.prototype.gr.call(this)}catch(Z){g.Rm(Z)}}; g.A.handleError=function(Z,Q,z){z=z===void 0?0:z;var K=GZ(z);Z==="fmt.unplayable"&&this.kh.isLive&&(this.policy.Db=!1,Ti(this.kh));Q=new N5(Z,Q,z);g.e4(this);d8(Q.details);this.Iu.handleError(Q);Z!=="html5.invalidstate"&&Q.errorCode!=="fmt.unplayable"&&Z!=="fmt.unparseable"&&K&&this.dispose()}; g.A.gy=function(){var Z=fv(this.audioTrack),Q=fv(this.videoTrack);Z={lct:this.getCurrentTime().toFixed(3),lsk:this.j_.isSeeking(),lmf:this.Y.Y.isLocked(),lbw:$a(this.schedule).toFixed(3),lhd:X4(this.schedule).toFixed(3),lst:((this.schedule.T.Wx()||0)*1E9).toFixed(3),laa:Z?Z.O8():"",lva:Q?Q.O8():"",lar:this.audioTrack.j?this.audioTrack.j.O8():"",lvr:this.videoTrack.j?this.videoTrack.j.O8():"",laq:""+Ig(this.audioTrack),lvq:""+Ig(this.videoTrack)};this.Tf&&!this.Tf.Bx()&&this.Tf.Y&&this.Tf.j&&(Z.lab= Ax(this.Tf.Y.Sx()),Z.lvb=Ax(this.Tf.j.Sx()));this.wS&&(Z.lapt=((0,g.Nm)()-this.wS).toFixed(0),Z.lapr=EFn(this));this.KN&&(Z.lapmabht=((0,g.Nm)()-this.KN).toFixed(0),Z.lapmabh=CL(this,this.audioTrack).toFixed(0));this.Vp&&(Z.lapmvbht=((0,g.Nm)()-this.Vp).toFixed(0),Z.lapmvbh=CL(this,this.videoTrack).toFixed(0));this.c7&&(Z.lapsdai=((0,g.Nm)()-this.c7).toFixed(0));return Z}; g.A.Sm=function(){try{this.policy.Y&&this.S.gP(!1,"pending"),this.audioTrack.Sm(),this.videoTrack.Sm()}catch(Z){g.Rm(Z)}this.policy.W=""}; g.A.Dv=function(){return c7(this.U)}; g.A.pN=function(Z,Q,z){this.Iu.pN(Z,Q,z===void 0?!1:z)}; g.A.lY=function(){return this.Iu.lY()}; g.A.gS=function(Z,Q){Z/=Q;isNaN(this.timestampOffset)&&Ldu(this,Z-Math.min(Z,this.policy.MX));return(Z-this.timestampOffset)*Q}; g.A.Ry=function(){return this.timestampOffset}; g.A.isSeeking=function(){return this.j_.isSeeking()}; g.A.WL=function(){this.W.WL()}; g.A.mC=function(Z,Q,z){Q=Q===void 0?!1:Q;z=z===void 0?{}:z;this.policy.Y?this.j.mC(Z,Q,z):this.Y.mC(Z,Q,z)}; g.A.AB=function(Z,Q){if(!this.X)return!1;var z=this.videoTrack.Y.index.ON(Z);return this.X.AB(Z,Q,z)}; g.A.x6=function(Z,Q){if(this.X&&this.W.x6(Z,this.X))return Ldu(this,this.timestampOffset-Q),s0(this),this.policy.L&&(Ti(this.kh),Rg(this.audioTrack),Rg(this.videoTrack),this.Sm()),!0;Q=this.videoTrack.Y.index.ON(Z);this.handleError("ad.skipfailed",{dec:!!this.X,t:Z.toFixed(3),sq:Q});return!1}; g.A.getManifest=function(){return this.kh}; g.A.isOffline=function(){return!!this.Iu.getVideoData().cotn}; g.A.xp=function(Z,Q){this.Iu.xp(Z,Q)}; g.A.Pz=function(Z){if(this.policy.xA)this.policy.Y&&this.S.gP(!0,"utc"),this.MR();else{var Q=this.Iu.getVideoData().EN;if(Q){var z=this.L;z.yr=Z;z.EN=Q;wa(this)}}}; g.A.s1=function(Z){this.videoTrack.T=!1;this.audioTrack.T=!1;this.j_.j=!1;this.Iu.s1(Z)}; g.A.Oe=function(Z){this.j_.Oe(Z-this.Ry())}; g.A.eY=function(){this.Iu.eY()}; g.A.Fn=function(Z){Z!==this.policy.J6&&((this.policy.J6=Z)||this.MR())}; g.A.En=function(Z,Q){var z=this.audioTrack.TW,K=this.videoTrack.TW;z&&K&&(z.remove(Z,Q),K.remove(Z,Q))}; g.A.k6=function(Z){this.Iu.k6(Z)}; g.A.Z6=function(Z){this.Iu.Z6(Z)}; g.A.SG=function(){return this.Iu.SG()};g.A=g.js.prototype;g.A.JS=function(Z,Q,z,K,b,q){return this.y3.JS(Z,Q,z,K,b,q)}; g.A.HR=function(Z,Q,z,K,b,q){return this.y3.HR(Z,Q,z,K,b,q)}; g.A.d7=function(Z){return this.y3.d7(Z)}; g.A.R7=function(Z){this.y3.R7(Z)}; g.A.wi=function(Z,Q,z,K){return this.y3.wi(Z,Q,z,K)}; g.A.WL=function(){this.y3.WL()}; g.A.AB=function(Z,Q,z){return this.y3.AB(Z,Q,z)}; g.A.zU=function(Z,Q){this.y3.zU(Z,Q)}; g.A.lB=function(){this.y3.lB()}; g.A.oS=Qx(48);g.A.a4=function(Z,Q,z){this.y3.a4(Z,Q,z)}; g.A.xP=Qx(51);g.A.P_=function(Z,Q,z,K,b,q,r,D,v){this.y3.P_(Z,Q,z,K,b,q,r,D,v)}; g.A.L1=function(Z){this.y3.L1(Z)}; g.A.CJ=function(Z){return this.y3.CJ(Z)}; g.A.Wb=function(Z){return this.y3.Wb(Z)};g.L(DO,g.rV);g.L(vb,DO);vb.prototype.K=function(Z,Q){if(Z&&Q){var z=Number(VU(Z,"cpi"))*1+1;isNaN(z)||z<=0||z<this.S?(this.W.stop(),this.j.stop(),this.S=-1,this.Y={}):(z>this.S&&(this.S=z,g.Ne(this.Y)||(this.Y={},this.W.stop(),this.j.stop())),this.Y[Q]=Z,g.lR(this.j))}}; vb.prototype.L=function(){for(var Z=g.n(Object.keys(this.Y)),Q=Z.next();!Q.done;Q=Z.next()){var z=Q.value;Q=this.publish;for(var K=this.S,b=this.Y[z].match(Rl),q=[],r=g.n(b[6].split("&")),D=r.next();!D.done;D=r.next())D=D.value,D.indexOf("cpi=")===0?q.push("cpi="+K.toString()):D.indexOf("ek=")===0?q.push("ek="+g.F5(z)):q.push(D);b[6]="?"+q.join("&");z="skd://"+b.slice(2).join("");b=z.length*2;K=new Uint8Array(b+4);K[0]=b%256;K[1]=(b-K[0])/256;for(b=0;b<z.length;++b)K[b*2+4]=z.charCodeAt(b);Q.call(this, "rotated_need_key_info_ready",new Kv(K,"fairplay",!0))}this.Y={}}; vb.prototype.gr=function(){this.Y={};DO.prototype.gr.call(this)};g.L(gY,DO); gY.prototype.L=function(Z){var Q;a:{if((Q=Z.cryptoPeriodIndex)&&this.Y.length>0)for(var z=g.n(this.Y),K=z.next();!K.done;K=z.next())if(Q===K.value.info.cryptoPeriodIndex){Q=!0;break a}Q=!1}if(!Q){Q=(0,g.Nm)();a:{z=Z.cryptoPeriodIndex;if(!isNaN(z)){K=g.n(this.S.values());for(var b=K.next();!b.done;b=K.next())if(Math.abs(b.value.cryptoPeriodIndex-z)<=1){z=!0;break a}}z=!1}z?(z=Z.Y,z=Math.max(0,Math.random()*((isNaN(z)?120:z)-30))*1E3):z=0;this.publish("log_qoe",{wvagt:"delay."+z,cpi:Z.cryptoPeriodIndex,reqlen:this.Y.length, ignore:this.W});z<=0?Iu0(this,Z):this.W||(this.Y.push({time:Q+z,info:Z}),g.lR(this.j,z))}}; gY.prototype.gr=function(){this.Y=[];DO.prototype.gr.call(this)};var $D={},Gzd=($D.DRM_TRACK_TYPE_AUDIO="AUDIO",$D.DRM_TRACK_TYPE_SD="SD",$D.DRM_TRACK_TYPE_HD="HD",$D.DRM_TRACK_TYPE_UHD1="UHD1",$D);g.L(dzn,g.O);g.L(au4,g.rV);g.A=au4.prototype;g.A.I0=function(Z){var Q=this;this.FI()||Z.size<=0||(Z.forEach(function(z,K){var b=iI(Q.j)?K:z;K=new Uint8Array(iI(Q.j)?z:K);iI(Q.j)&&FdG(K);z=g.hj(K,4);FdG(K);K=g.hj(K,4);Q.Y[z]?Q.Y[z].status=b:Q.Y[K]?Q.Y[K].status=b:Q.Y[z]={type:"",status:b}}),Vy4(this,","),YV(this,{onkeystatuschange:1}),this.status="kc",this.publish("keystatuseschange",this))}; g.A.error=function(Z,Q,z,K){this.FI()||(this.publish("licenseerror",Z,Q,z,K),Z==="drm.provision"&&(Z=(Date.now()-this.K)/1E3,this.K=NaN,this.publish("ctmp","provf",{et:Z.toFixed(3)})));GZ(Q)&&this.dispose()}; g.A.shouldRetry=function(Z,Q){return!Z&&this.requestNumber===Q.requestNumber}; g.A.gr=function(){this.Y={};g.rV.prototype.gr.call(this)}; g.A.gy=function(){var Z={ctype:this.X.contentType||"",length:this.X.initData.length,requestedKeyIds:this.P7,cryptoPeriodIndex:this.cryptoPeriodIndex};this.S&&(Z.keyStatuses=this.Y);return Z}; g.A.getInfo=function(){var Z=this.W.join();if(XC(this)){var Q=new Set,z;for(z in this.Y)this.Y[z].status!=="usable"&&Q.add(this.Y[z].type);Z+="/UKS."+Array.from(Q)}return Z+="/"+this.cryptoPeriodIndex}; g.A.sS=function(){return this.url};g.L(Ss,g.O);g.A=Ss.prototype;g.A.A$=function(Z){if(this.L){var Q=Z.messageType||"license-request";this.L(new Uint8Array(Z.message),Q)}}; g.A.I0=function(){this.T&&this.T(this.Y.keyStatuses)}; g.A.onClosed=function(){this.FI()||g.WX("xboxone")&&this.S&&this.S("closed")}; g.A.xR=function(Z){this.L&&this.L(Z.message,"license-request")}; g.A.oo=function(Z){if(this.S){if(this.j){var Q=this.j.error.code;Z=this.j.error.systemCode}else Q=Z.errorCode,Z=Z.systemCode;this.S("t.prefixedKeyError;c."+Q+";sc."+Z,Q,Z)}}; g.A.kR=function(){this.K&&this.K()}; g.A.update=function(Z){var Q=this;if(this.Y)return(kQ.isActive()?kQ.Be("emeupd",function(){return Q.Y.update(Z)}):this.Y.update(Z)).then(null,$N(function(z){w0n(Q,"t.update",z)})); this.j?this.j.update(Z):this.element.addKey?this.element.addKey(this.X.keySystem,Z,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.X.keySystem,Z,this.initData,this.sessionId);return Rn()}; g.A.gr=function(){this.Y&&(this.U?this.Y.close().catch(g.CO):this.Y.close());this.element=null;g.O.prototype.gr.call(this)};g.L($V,g.O);g.A=$V.prototype;g.A.g8=function(){var Z=this;if(this.Y.keySystemAccess)return(kQ.isActive()?kQ.Be("emenew",function(){return Z.Y.keySystemAccess.createMediaKeys()}):this.Y.keySystemAccess.createMediaKeys()).then(function(z){if(!Z.FI())if(Z.j=z,kQ.isActive())kQ.Be("emeset",function(){return Z.element.setMediaKeys(z)}); else{var K;(K=Z.element)==null||K.setMediaKeys(z)}}); if(Gi(this.Y))this.S=new (N1())(this.Y.keySystem);else if(aW(this.Y)){this.S=new (N1())(this.Y.keySystem);var Q;(Q=this.element)==null||Q.webkitSetMediaKeys(this.S)}else kQ.isActive()&&this.pN("emev",{v:"01b"}),GM(this.L,this.element,["keymessage","webkitkeymessage"],this.Q8),GM(this.L,this.element,["keyerror","webkitkeyerror"],this.UO),GM(this.L,this.element,["keyadded","webkitkeyadded"],this.CD);return null}; g.A.setServerCertificate=function(){return this.j.setServerCertificate?this.Y.flavor==="widevine"&&this.Y.MN?this.j.setServerCertificate(this.Y.MN):RW(this.Y)&&this.Y.NB?this.j.setServerCertificate(this.Y.NB):null:null}; g.A.createSession=function(Z,Q){var z=Z.initData;if(this.Y.keySystemAccess){Q&&Q("createsession");var K=this.j.createSession();Pg(this.Y)?z=EG0(z,this.Y.NB):RW(this.Y)&&(z=mzn(z)||new Uint8Array(0));Q&&Q("genreq");var b=kQ.isActive()?kQ.Be("emegen",function(){return K.generateRequest(Z.contentType,z)}):K.generateRequest(Z.contentType,z); var q=new Ss(null,null,null,K,null,this.T);b.then(function(){Q&&Q("genreqsuccess")},$N(function(D){w0n(q,"t.generateRequest",D)})); return q}if(Gi(this.Y))return sTn(this,z);if(aW(this.Y))return luD(this,z);if((b=this.element)==null?0:b.generateKeyRequest)this.element.generateKeyRequest(this.Y.keySystem,z);else{var r;(r=this.element)==null||r.webkitGenerateKeyRequest(this.Y.keySystem,z)}return this.W=new Ss(this.element,this.Y,z,null,null,this.T)}; g.A.Q8=function(Z){var Q=ZW9(this,Z);Q&&Q.xR(Z)}; g.A.UO=function(Z){var Q=ZW9(this,Z);Q&&Q.oo(Z)}; g.A.CD=function(Z){var Q=ZW9(this,Z);Q&&Q.kR(Z)}; g.A.getMetrics=function(){if(this.j&&this.j.getMetrics)try{var Z=this.j.getMetrics()}catch(Q){}return Z}; g.A.gr=function(){this.S=this.j=null;var Z;(Z=this.W)==null||Z.dispose();Z=g.n(Object.values(this.K));for(var Q=Z.next();!Q.done;Q=Z.next())Q.value.dispose();this.K={};g.O.prototype.gr.call(this);delete this.element};g.A=TA.prototype;g.A.get=function(Z){Z=this.findIndex(Z);return Z!==-1?this.values[Z]:null}; g.A.remove=function(Z){Z=this.findIndex(Z);Z!==-1&&(this.keys.splice(Z,1),this.values.splice(Z,1))}; g.A.removeAll=function(){this.keys=[];this.values=[]}; g.A.set=function(Z,Q){var z=this.findIndex(Z);z!==-1?this.values[z]=Q:(this.keys.push(Z),this.values.push(Q))}; g.A.findIndex=function(Z){return g.eR(this.keys,function(Q){return g.vD(Z,Q)})};g.L(KID,g.rV);g.A=KID.prototype;g.A.RhY=function(Z){this.v8({onecpt:1});Z.initData&&rAn(this,new Uint8Array(Z.initData),Z.initDataType)}; g.A.mbY=function(Z){this.v8({onndky:1});rAn(this,Z.initData,Z.contentType)}; g.A.QM=function(Z){this.v8({onneedkeyinfo:1});this.Yh.V("html5_eme_loader_sync")&&(this.T.get(Z.initData)||this.T.set(Z.initData,Z));qT9(this,Z)}; g.A.yP=function(Z){this.S.push(Z);fP(this)}; g.A.createSession=function(Z){var Q=jgd(this)?tcn(Z):g.hj(Z.initData);this.j.get(Q);this.JG=!0;Z=new au4(this.videoData,this.Yh,Z,this.drmSessionId);this.j.set(Q,Z);Z.subscribe("ctmp",this.aK,this);Z.subscribe("keystatuseschange",this.I0,this);Z.subscribe("licenseerror",this.qg,this);Z.subscribe("newlicense",this.cA,this);Z.subscribe("newsession",this.rC,this);Z.subscribe("sessionready",this.mT,this);Z.subscribe("fairplay_next_need_key_info",this.zI,this);this.Yh.V("html5_enable_vp9_fairplay")&&Z.subscribe("qualitychange", this.Kk,this);this.Yh.V("html5_enable_sabr_drm_hd720p")&&Z.subscribe("sabrlicenseconstraint",this.xRF,this);p0n(Z,this.W)}; g.A.cA=function(Z){this.FI()||(this.v8({onnelcswhb:1}),Z&&!this.heartbeatParams&&(this.heartbeatParams=Z,this.publish("heartbeatparams",Z)))}; g.A.rC=function(){this.FI()||(this.v8({newlcssn:1}),this.S.shift(),this.JG=!1,fP(this))}; g.A.mT=function(){if(Gi(this.Y)&&(this.v8({onsnrdy:1}),this.Vp--,this.Vp===0)){var Z=this.jJ,Q,z;(Q=Z.element)==null||(z=Q.msSetMediaKeys)==null||z.call(Q,Z.S)}}; g.A.I0=function(Z){if(!this.FI()){!this.c7&&this.videoData.V("html5_log_drm_metrics_on_key_statuses")&&(Dsx(this),this.c7=!0);this.v8({onksch:1});var Q=this.Kk;if(!XC(Z)&&g.Fc&&Z.j.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var z="large";else{z=[];var K=!0;if(XC(Z))for(var b=g.n(Object.keys(Z.Y)),q=b.next();!q.done;q=b.next())q=q.value,Z.Y[q].status==="usable"&&z.push(Z.Y[q].type),Z.Y[q].status!=="unknown"&&(K=!1);if(!XC(Z)||K)z=Z.W;z=Wdn(z)}Q.call(this,z);this.publish("keystatuseschange", Z)}}; g.A.aK=function(Z,Q){this.FI()||this.publish("ctmp",Z,Q)}; g.A.zI=function(Z,Q){this.FI()||this.publish("fairplay_next_need_key_info",Z,Q)}; g.A.qg=function(Z,Q,z,K){this.FI()||(this.videoData.V("html5_log_drm_metrics_on_error")&&Dsx(this),this.publish("licenseerror",Z,Q,z,K))}; g.A.Qv=function(){return this.X}; g.A.Kk=function(Z){var Q=g.lJ("auto",Z,!1,"l");if(this.videoData.R4){if(this.X.Tg(Q))return}else if(HHn(this.X,Z))return;this.X=Q;this.publish("qualitychange");this.v8({updtlq:Z})}; g.A.xRF=function(Z){this.videoData.sabrLicenseConstraint=Z}; g.A.gr=function(){this.Y.keySystemAccess&&this.element&&(this.P7?this.element.setMediaKeys(null).catch(g.CO):this.element.setMediaKeys(null));this.element=null;this.S=[];for(var Z=g.n(this.j.values()),Q=Z.next();!Q.done;Q=Z.next())Q=Q.value,Q.unsubscribe("ctmp",this.aK,this),Q.unsubscribe("keystatuseschange",this.I0,this),Q.unsubscribe("licenseerror",this.qg,this),Q.unsubscribe("newlicense",this.cA,this),Q.unsubscribe("newsession",this.rC,this),Q.unsubscribe("sessionready",this.mT,this),Q.unsubscribe("fairplay_next_need_key_info", this.zI,this),this.Yh.V("html5_enable_vp9_fairplay")&&Q.unsubscribe("qualitychange",this.Kk,this),Q.dispose();this.j.clear();this.K.removeAll();this.T.removeAll();this.heartbeatParams=null;g.rV.prototype.gr.call(this)}; g.A.gy=function(){for(var Z={systemInfo:this.Y.gy(),sessions:[]},Q=g.n(this.j.values()),z=Q.next();!z.done;z=Q.next())Z.sessions.push(z.value.gy());return Z}; g.A.getInfo=function(){return this.j.size<=0?"no session":""+this.j.values().next().value.getInfo()+(this.L?"/KR":"")}; g.A.v8=function(Z,Q){Q=Q===void 0?!1:Q;this.FI()||(d8(Z),(this.Yh.aT()||Q)&&this.publish("ctmp","drmlog",Z))};g.L(STf,g.O);g.A=STf.prototype;g.A.Va=function(){return!!this.t8}; g.A.Sg=function(){return this.j}; g.A.handleError=function(Z){var Q=this;nzn(this,Z);if((Z.errorCode!=="html5.invalidstate"&&Z.errorCode!=="fmt.unplayable"&&Z.errorCode!=="fmt.unparseable"||!LK4(this,Z.errorCode,Z.details))&&!JAG(this,Z)){if(this.B7.jJ!=="yt"&&msG(this,Z)&&this.videoData.eb&&(0,g.Nm)()/1E3>this.videoData.eb&&this.B7.jJ==="hm"){var z=Object.assign({e:Z.errorCode},Z.details);z.stalesigexp="1";z.expire=this.videoData.eb;z.init=this.videoData.nG/1E3;z.now=(0,g.Nm)()/1E3;z.systelapsed=((0,g.Nm)()-this.videoData.nG)/1E3; Z=new N5(Z.errorCode,z,2);this.Iu.q8(Z.errorCode,2,"SIGNATURE_EXPIRED",d8(Z.details))}if(GZ(Z.severity)){var K;z=(K=this.Iu.wr)==null?void 0:K.Y.Y;if(this.B7.V("html5_use_network_error_code_enums"))if(cA4(Z)&&z&&z.isLocked())var b="FORMAT_UNAVAILABLE";else if(this.B7.K||Z.errorCode!=="auth"||Z.details.rc!==429)Z.errorCode==="ump.spsrejectfailure"&&(b="HTML5_SPS_UMP_STATUS_REJECTED");else{b="TOO_MANY_REQUESTS";var q="6"}else cA4(Z)&&z&&z.isLocked()?b="FORMAT_UNAVAILABLE":this.B7.K||Z.errorCode!=="auth"|| Z.details.rc!=="429"?Z.errorCode==="ump.spsrejectfailure"&&(b="HTML5_SPS_UMP_STATUS_REJECTED"):(b="TOO_MANY_REQUESTS",q="6");this.Iu.q8(Z.errorCode,Z.severity,b,d8(Z.details),q)}else this.Iu.publish("nonfatalerror",Z),K=/^pp/.test(this.videoData.clientPlaybackNonce),this.U8(Z.errorCode,Z.details),K&&Z.errorCode==="manifest.net.connect"&&(Z="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.Nm)(),LL(Z,"manifest",function(r){Q.K=!0;Q.pN("pathprobe",r)},function(r){Q.U8(r.errorCode, r.details)}))}}; g.A.pN=function(Z,Q){this.Iu.NT().pN(Z,Q)}; g.A.U8=function(Z,Q){Q=d8(Q);this.Iu.NT().U8(Z,Q)};Nan.prototype.fS=function(Z,Q){return(Q===void 0?0:Q)?{jC:Z?nP(this,Z):UK,O5:Z?Mwd(this,Z):UK,UnI:Z?plr(this,Z):UK,YN7:Z?VwM(this,Z.videoData):UK,DT:Z?kbX(this,Z.videoData,Z):UK,pxB:Z?Rxx(this,Z):UK,wx7:apu(this)}:{jC:Z?nP(this,Z):UK}}; Nan.prototype.V=function(Z){return this.Yh.V(Z)};g.L(cb,g.O);cb.prototype.onError=function(Z){if(Z!=="player.fatalexception"||this.provider.V("html5_exception_to_health"))Z==="sabr.fallback"&&(this.encounteredSabrFallback=!0),Z.match(txz)?this.networkErrorCount++:this.nonNetworkErrorCount++}; cb.prototype.send=function(){if(!(this.S||this.Y<0)){twM(this);var Z=g.m4(this.provider)-this.Y,Q="PLAYER_PLAYBACK_STATE_UNKNOWN",z=this.playerState.wm;this.playerState.isError()?Q=z&&z.errorCode==="auth"?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.t(this.playerState,2)?Q="PLAYER_PLAYBACK_STATE_ENDED":g.t(this.playerState,64)?Q="PLAYER_PLAYBACK_STATE_UNSTARTED":g.t(this.playerState,16)||g.t(this.playerState,32)?Q="PLAYER_PLAYBACK_STATE_SEEKING":g.t(this.playerState,1)&&g.t(this.playerState, 4)?Q="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.t(this.playerState,1)?Q="PLAYER_PLAYBACK_STATE_BUFFERING":g.t(this.playerState,4)?Q="PLAYER_PLAYBACK_STATE_PAUSED":g.t(this.playerState,8)&&(Q="PLAYER_PLAYBACK_STATE_PLAYING");z=oKY[f3(this.provider.videoData)];a:switch(this.provider.Yh.playerCanaryState){case "canary":var K="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":K="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:K="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var b=FK0(this.provider), q=this.j<0?Z:this.j-this.Y;Z=this.provider.Yh.N8+36E5<(0,g.Nm)();Q={started:this.j>=0,stateAtSend:Q,joinLatencySecs:q,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:K,playerCanaryStage:b,isAd:this.provider.videoData.isAd(),liveMode:z,hasDrm:!!g.$G(this.provider.videoData),isGapless:this.provider.videoData.X,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:Qa(this.provider.videoData)};Z||g.DW("html5PlayerHealthEvent",Q);this.S=!0;this.dispose()}}; cb.prototype.gr=function(){this.S||this.send();window.removeEventListener("error",this.EV);window.removeEventListener("unhandledrejection",this.EV);g.O.prototype.gr.call(this)}; var txz=/\bnet\b/;g.L(wlM,g.O);wlM.prototype.gr=function(){lpW(this);g.O.prototype.gr.call(this)};var sPW=/[?&]cpn=/;g.L(IK,g.O);IK.prototype.flush=function(){var Z={};this.j&&(Z.pe=this.j);this.Y.length>0&&(Z.pt=this.Y.join("."));this.Y=[];return Z}; IK.prototype.stop=function(){var Z=this,Q,z,K;return g.C(function(b){if(b.Y==1)return g.nX(b,2),g.P(b,(Q=Z.W)==null?void 0:Q.stop(),4);if(b.Y!=2)return(z=b.j)&&Z.logTrace(z),g.m9(b,0);K=g.I0(b);Z.j=rin(K.message);g.LX(b)})}; IK.prototype.logTrace=function(Z){this.encoder.reset();this.encoder.add(1);this.encoder.add(Z.resources.length);for(var Q=g.n(Z.resources),z=Q.next();!z.done;z=Q.next()){z=z.value.replace("https://www.youtube.com/s/","");this.encoder.add(z.length);for(var K=0;K<z.length;K++)this.encoder.add(z.charCodeAt(K))}this.encoder.add(Z.frames.length);Q=g.n(Z.frames);for(z=Q.next();!z.done;z=Q.next()){z=z.value;this.encoder.add(z.name.length);for(K=0;K<z.name.length;K++)this.encoder.add(z.name.charCodeAt(K)); qx(this.encoder,z.resourceId);qx(this.encoder,z.line);qx(this.encoder,z.column)}this.encoder.add(Z.samples.length);Q=g.n(Z.samples);for(z=Q.next();!z.done;z=Q.next())z=z.value,this.encoder.add(Math.trunc(z.timestamp)),qx(this.encoder,z.stackId);this.encoder.add(Z.stacks.length);Z=g.n(Z.stacks);for(Q=Z.next();!Q.done;Q=Z.next())Q=Q.value,this.encoder.add(Q.frameId),qx(this.encoder,Q.parentId);Z=this.encoder.pZ();this.S+=Z.length;this.S<1E7&&this.Y.push(Z)}; IK.prototype.gr=function(){this.stop();g.O.prototype.gr.call(this)};var jP0=[2,5,30];g.aK=vK(function(){var Z="";try{var Q=g.lY("CANVAS").getContext("webgl");Q&&(Q.getExtension("WEBGL_debug_renderer_info"),Z=Q.getParameter(37446),Z=Z.replace(/[ :]/g,"_"))}catch(z){}return Z});g.L(g.NM,g.O);g.A=g.NM.prototype;g.A.S$I=function(){var Z=g.m4(this.provider);Yrf(this,Z)}; g.A.DM=function(){return this.n7}; g.A.iU=function(){return{j3:this.j3,S3:this.S3}}; g.A.y6=function(Z,Q){this.j3=Z;this.S3=Q}; g.A.ke=function(Z){if(!this.X7){this.X7=!0;var Q="";switch(Z){case 1:Q="proximaui";break;case 2:Q=CDf(this.provider.videoData)?"proximawpcc":this.provider.videoData.V("html5_enable_proxima")||this.provider.videoData.V("html5_sabr_force_proxima")?"proximaexp":"proximaclient";break;case 3:Q="proximaauto"}Q!==""&&iX(this,Q)}}; g.A.o2=function(Z){this.Y.lwc=[[Z.uY?Z.uY.toFixed():"",Z.nZ?Z.nZ.toFixed():"",Z.Vp?(Z.Vp*1E3).toFixed():"",Z.ih?(Z.ih*1E3).toFixed():"",Z.fL?(Z.fL*1E3).toFixed():""].join(":")]}; g.A.reportStats=function(Z){Z=Z===void 0?NaN:Z;if(!this.FI()&&(Z=Z>=0?Z:g.m4(this.provider),["PL","B","S"].indexOf(this.gf)>-1&&(!g.Ne(this.Y)||Z>=this.L+30)&&(g.dY(this,Z,"vps",[this.gf]),this.L=Z),!g.Ne(this.Y))){this.sequenceNumber===7E3&&g.CO(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){GA(this,Z);var Q=this.provider.Iu.ET();Q=g.n(Q);for(var z=Q.next();!z.done;z=Q.next())z=z.value,this.pN(z.key,z.value);Q=Z;z=this.provider.Iu.Aq();var K=z.droppedVideoFrames||0,b=z.totalVideoFrames|| 0,q=K-this.j3,r=b&&!this.S3;K>z.totalVideoFrames||q>5E3?LTn(this,"html5.badframedropcount","df."+K+";tf."+z.totalVideoFrames):(q>0||r)&&g.dY(this,Q,"df",[q]);this.j3=K;this.S3=b;this.U>0&&(g.dY(this,Z,"glf",[this.U]),this.U=0);sE.isActive()&&(Z=sE.Jy(),Object.keys(Z).length>0&&this.pN("profile",Z));this.DI&&iX(this,"lwnmow");this.provider.Yh.aT()&&this.provider.V("html5_record_now")&&this.pN("now",{wt:(0,g.Nm)()});Z={};this.provider.videoData.j&&(Z.fmt=this.provider.videoData.j.itag,(Q=this.provider.videoData.W)&& Q.itag!==Z.fmt&&(Z.afmt=Q.itag));Z.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(Z.adcpn=this.adCpn);this.jJ&&(Z.addocid=this.jJ);this.contentCpn&&(Z.ccpn=this.contentCpn);this.P7&&(Z.cdocid=this.P7);this.provider.videoData.cotn&&(Z.cotn=this.provider.videoData.cotn);Z.el=p3(this.provider.videoData);Z.content_v=UH(this.provider.videoData);Z.ns=this.provider.Yh.jJ;Z.fexp=L3u(this.provider.Yh.experiments).toString();Z.cl=(728910285).toString();(Q=this.provider.videoData.adFormat||this.adFormat)&& (Z.adformat=Q);(Q=f3(this.provider.videoData))&&(Z.live=Q);this.provider.videoData.LZ()&&(Z.drm=1,this.provider.videoData.L&&(Z.drm_system=Cp0[this.provider.videoData.L.flavor]||0),this.provider.videoData.Bl&&(Z.drm_product=this.provider.videoData.Bl));jL()&&this.provider.videoData.K&&(Z.ctt=this.provider.videoData.K,Z.cttype=this.provider.videoData.V2,this.provider.videoData.mdxEnvironment&&(Z.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(Z.dai= this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.g4&&(Z.dai_fallback="1")):this.provider.videoData.gX?Z.dai="cs":this.provider.videoData.tB&&(Z.dai="disabled");Z.seq=this.sequenceNumber++;if(this.provider.videoData.x4){if(Q=this.provider.videoData.x4,Z&&Q)for(Q.ns==="3pp"&&(Z.ns="3pp"),this.zJ.has(Q.ns)&&iX(this,"hbps"),Q.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=Q.shbpslc),z=g.n(Object.keys(Q)),K=z.next();!K.done;K=z.next())K=K.value,this.IW.has(K)|| (Z[K]=Q[K])}else Z.event="streamingstats",Z.docid=this.provider.videoData.videoId,Z.ei=this.provider.videoData.eventId;this.isEmbargoed&&(Z.embargoed="1");Object.assign(Z,this.provider.Yh.Y);if(Q=Z.seq)Q={cpn:this.provider.videoData.clientPlaybackNonce,sequenceNumber:+Q,serializedWatchEndpointLoggingContext:this.provider.videoData.tU},this.serializedHouseBrandPlayerServiceLoggingContext&&(Q.serializedHouseBrandPlayerServiceLoggingContext=nG(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0), this.provider.videoData.playerResponseCpn&&(Q.playerResponseCpn=this.provider.videoData.playerResponseCpn),yD.length&&(Q.decoderInfo=yD),this.provider.Iu.wp()&&(Q.transitionStitchType=4,this.JG&&(Q.timestampOffsetMsecs=this.JG)),this.remoteControlMode&&(Q.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(Q.remoteConnectedDevices=this.remoteConnectedDevices),Q=g.ed(Q,AH9),Q=g.hj(Q,4),this.Y.qclc=[Q];Z=g.BK("//"+this.provider.Yh.f$+"/api/stats/qoe",Z);z=Q="";K=g.n(Object.keys(this.Y)); for(b=K.next();!b.done;b=K.next())b=b.value,this.Y[b]===null?g.CO(new g.tW("Stats report key has invalid value",b)):(b="&"+b+"="+this.Y[b].join(","),b.length>100?z+=b:Q+=b);$dW(this,Z+Q,z.replace(/ /g,"%20"))}this.Y={}}}; g.A.Z6=function(Z){this.DI=Z}; g.A.w1=function(){if(this.provider.videoData.L){var Z=this.provider.videoData.L;iX(this,"eme-"+(Z.keySystemAccess?"final":Gi(Z)?"ms":Pg(Z)?"ytfp":aW(Z)?"safarifp":"nonfinal"))}}; g.A.Nx=function(Z){var Q=g.m4(this.provider);if(!this.provider.Yh.experiments.XI("html5_refactor_sabr_video_format_selection_logging")||Z.Y.id!==this.Du){var z=[Z.Y.id,Z.j,this.Du,Z.reason];Z.token&&z.push(Z.token);g.dY(this,Q,"vfs",z);this.Du=Z.Y.id;z=this.provider.Iu.getPlayerSize();if(z.width>0&&z.height>0){z=[Math.round(z.width),Math.round(z.height)];var K=g.Vf();K>1&&z.push(K);g.dY(this,Q,"view",z)}this.qB||(this.provider.Yh.aT()&&iX(this,"rqs2"),this.provider.videoData.Y&&rL(this.provider.videoData.Y)&& (this.Y.preload=["1"]));this.S=this.qB=!0}Z.reason==="m"&&++this.yk===100&&nOM(this,2);g.dY(this,Q,"vps",[this.gf]);this.reportStats(Q)}; g.A.xf=function(Z){var Q=g.m4(this.provider);if(this.provider.Yh.experiments.XI("html5_refactor_sabr_audio_format_selection_logging")){Q=Z.Y;var z=[Q.audio&&Q.video?Q.tf?Q.tf:"":Q.id];Q.Qw&&Q.Qw.id&&z.push(Q.Qw.id);Q=z.join(";");Q!==this.T&&(z=[Q,this.T,Z.reason],Z.token&&z.push(Z.token),g.dY(this,g.m4(this.provider),"afs",z),this.T=Q)}else Z.Y.id!==this.T&&(z=[Z.Y.id,this.T,Z.reason],Z.token&&z.push(Z.token),g.dY(this,Q,"afs",z),this.T=Z.Y.id)}; g.A.nC=Qx(55);g.A.BP=function(Z){this.isEmbargoed=Z}; g.A.Iq=Qx(33);g.A.qa=Qx(38);g.A.onPlaybackRateChange=function(Z){var Q=g.m4(this.provider);Z&&Z!==this.fL&&(g.dY(this,Q,"rate",[Z]),this.fL=Z);this.reportStats(Q)}; g.A.YS=Qx(28);g.A.getPlayerState=function(Z){if(g.t(Z,128))return"ER";if(g.t(Z,2048))return"B";if(g.t(Z,512))return"SU";if(g.t(Z,16)||g.t(Z,32))return"S";if(Z.isOrWillBePlaying()&&g.t(Z,64))return"B";var Q=FEn[gu(Z)];g.Nf(this.provider.Yh)&&Q==="B"&&this.provider.Iu.getVisibilityState()===3&&(Q="SU");Q==="B"&&g.t(Z,4)&&(Q="PB");return Q}; g.A.gr=function(){g.O.prototype.gr.call(this);g.hN(this.K);g.hN(this.sA)}; g.A.Mo=function(Z){this.isOffline=Z;g.dY(this,g.m4(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.A.pN=function(Z,Q,z){var K=this.Y.ctmp||[],b=this.kL.indexOf(Z)!==-1;b||this.kL.push(Z);if(!z||!b){var q=typeof Q!=="string"?d8(Q):Q;q=ci4(q);if(!z&&!/^t[.]/.test(q)){var r=g.m4(this.provider)*1E3;q="t."+r.toFixed()+";"+q}K.push(Z+":"+q);this.logger.debug(function(){return"ctmp "+Z+" "+q}); this.Y.ctmp=K;THD(this);return r}}; g.A.ul=function(Z,Q,z){this.W={KYg:Number(this.pN("glrem",{nst:Z.toFixed(),rem:Q.toFixed(),ca:+z})),im:Z,Y6h:Q,isAd:z}}; g.A.iE=function(Z,Q,z){g.dY(this,g.m4(this.provider),"ad_playback",[Z,Q,z])}; g.A.v_=function(Z,Q){var z=g.m4(this.provider)*1E3,K=this.Y.daism||[];K.push("t."+z.toFixed(0)+";smw."+(Z*1E3).toFixed(0)+";smo."+(Q*1E3).toFixed(0));this.Y.daism=K}; g.A.resume=function(){var Z=this;this.provider.Yh.aT()&&this.pN("ssap",{qoesus:"0",vid:this.provider.videoData.videoId});isNaN(this.K)?fiu(this):this.K=g.Tr(function(){Z.reportStats()},1E4)}; var Tx={},FEn=(Tx[5]="N",Tx[-1]="N",Tx[3]="B",Tx[0]="EN",Tx[2]="PA",Tx[1]="PL",Tx[-1E3]="ER",Tx[1E3]="N",Tx),yD=[];JiG.prototype.UT=function(){return this.Y}; JiG.prototype.update=function(){if(this.T){var Z=this.provider.Iu.Mm(this.provider.videoData.clientPlaybackNonce)||0,Q=g.m4(this.provider);Z>=this.provider.Iu.getDuration()-.1&&(this.previouslyEnded=!0);if(Z!==this.Y||NH0(this,Z,Q)){var z;if(!(z=Z<this.Y||Z-this.Y>Q-this.qO+2||NH0(this,Z,Q))){z=this.provider.Iu.getVolume();var K=z!==this.U,b=this.provider.Iu.isMuted()?1:0;b!==this.X?(this.X=b,z=!0):(!K||this.W>=0||(this.U=z,this.W=Q),z=Q-this.W,this.W>=0&&z>2?(this.W=-1,z=!0):z=!1)}z&&(CP(this),this.S= Z);this.qO=Q;this.Y=Z}}};Gmx.prototype.send=function(Z){var Q=this;if(!this.s$){var z=aiM(this),K=g.BK(this.uri,z);this.Yh.V("vss_through_gel_double")&&Pgu(K);this.P7&&!this.Yh.V("html5_simplify_pings")?MFu(this,K):i1n(this,Z).then(function(b){Q.P7&&(b=b||{},b.method="POST",b.postParams={atr:Q.attestationResponse});KTr(K,b,{token:Q.jJ,Ue:Q.Qp,mdxEnvironment:Q.mdxEnvironment},Q.Yh,Z,Q.JG,Q.isFinal&&Q.N8||Q.KN||Q.S&&Q.y7)}); this.s$=!0}}; Gmx.prototype.j=function(Z){Z===void 0&&(Z=NaN);return Number(Z.toFixed(3)).toString()}; var fo={},pPx=(fo.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,fo.LIVING_ROOM_APP_MODE_MAIN=1,fo.LIVING_ROOM_APP_MODE_KIDS=2,fo.LIVING_ROOM_APP_MODE_MUSIC=3,fo.LIVING_ROOM_APP_MODE_UNPLUGGED=4,fo.LIVING_ROOM_APP_MODE_GAMING=5,fo),hm={},CgX=(hm.EMBEDDED_PLAYER_MODE_UNKNOWN=0,hm.EMBEDDED_PLAYER_MODE_DEFAULT=1,hm.EMBEDDED_PLAYER_MODE_PFP=2,hm.EMBEDDED_PLAYER_MODE_PFL=3,hm);g.L(Hb,g.O);g.A=Hb.prototype;g.A.qn=function(){this.Y.update();ufM(this)&&(O1n(this),oOu(this),this.aP())}; g.A.gr=function(){g.O.prototype.gr.call(this);O0(this);yiX(this.Y)}; g.A.gy=function(){return aiM(MM(this,"playback"))}; g.A.aP=function(){this.provider.videoData.T.eventLabel=p3(this.provider.videoData);this.provider.videoData.T.playerStyle=this.provider.Yh.playerStyle;this.provider.videoData.NU&&(this.provider.videoData.T.feature="pyv");this.provider.videoData.T.vid=this.provider.videoData.videoId;var Z=this.provider.videoData.T;var Q=this.provider.videoData;Q=Q.isAd()||!!Q.NU;Z.isAd=Q}; g.A.Ax=function(Z){var Q=MM(this,"engage");Q.SJ=Z;return R9X(Q,EOd(this.provider))};wPD.prototype.isEmpty=function(){return this.endTime===this.startTime};Bb.prototype.V=function(Z){return this.Yh.V(Z)}; Bb.prototype.getCurrentTime=function(Z){if(this.V("html5_ssap_current_time_for_logging_refactor")){var Q=this.Iu.wp();if(Q&&(Z=Z||Q.lw()))return bZ(Q,Z)}else if(g.V0(this.videoData)){var z=this.Iu.wp();if(z)return Z=this.Iu.getCurrentTime(),z=(((Q=NK(z,Z*1E3))==null?void 0:Q.wb)||0)/1E3,Z-z}return this.Iu.getCurrentTime()}; Bb.prototype.XJ=function(Z){if(this.V("html5_ssap_current_time_for_logging_refactor")){var Q=this.Iu.wp();if(Q&&(Z=Z||Q.lw()))return bZ(Q,Z)}else if(g.V0(this.videoData)){var z=this.Iu.wp();if(z)return Z=this.Iu.XJ(),z=(((Q=NK(z,Z*1E3))==null?void 0:Q.wb)||0)/1E3,Z-z}return this.Iu.XJ()}; var liG={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.L(g.Wb,g.O);g.A=g.Wb.prototype;g.A.qn=function(){if(this.provider.videoData.enableServerStitchedDai&&this.iI){var Z;(Z=this.S.get(this.iI))==null||Z.qn()}else this.Y&&this.Y.qn()}; g.A.BP=function(Z){this.qoe&&this.qoe.BP(Z)}; g.A.Iq=Qx(32);g.A.qa=Qx(37);g.A.v_=function(Z,Q){this.qoe&&this.qoe.v_(Z,Q)}; g.A.U8=function(Z,Q){this.qoe&<n(this.qoe,Z,Q);if(this.j)this.j.onError(Z)}; g.A.Nx=function(Z){this.qoe&&this.qoe.Nx(Z)}; g.A.xf=function(Z){this.qoe&&this.qoe.xf(Z)}; g.A.onPlaybackRateChange=function(Z){if(this.qoe)this.qoe.onPlaybackRateChange(Z);this.Y&&CP(this.Y.Y)}; g.A.nC=Qx(54);g.A.pN=function(Z,Q,z){this.qoe&&this.qoe.pN(Z,Q,z)}; g.A.ul=function(Z,Q,z){this.qoe&&this.qoe.ul(Z,Q,z)}; g.A.ke=function(Z){var Q;(Q=this.qoe)==null||Q.ke(Z)}; g.A.o2=function(Z){var Q;(Q=this.qoe)==null||Q.o2(Z)}; g.A.Z6=function(Z){this.qoe&&this.qoe.Z6(Z)}; g.A.iE=function(Z,Q,z){this.qoe&&this.qoe.iE(Z,Q,z)}; g.A.YS=Qx(27);g.A.DM=function(){if(this.qoe)return this.qoe.DM()}; g.A.gy=function(){if(this.provider.videoData.enableServerStitchedDai&&this.iI){var Z,Q;return(Q=(Z=this.S.get(this.iI))==null?void 0:Z.gy())!=null?Q:{}}return this.Y?this.Y.gy():{}}; g.A.iU=function(){var Z;return(Z=this.qoe)==null?void 0:Z.iU()}; g.A.y6=function(Z,Q){var z;(z=this.qoe)==null||z.y6(Z,Q)}; g.A.Ax=function(Z){return this.Y?this.Y.Ax(Z):function(){}}; g.A.aP=function(){this.Y&&this.Y.aP()}; g.A.getVideoData=function(){return this.provider.videoData}; g.A.resume=function(){this.qoe&&this.qoe.resume()};g.L(kV,g.O); kV.prototype.gW=function(Z,Q,z){if(this.Y.has(Z)){var K=this.Y.get(Z);if(Q.videoId&&!sKn(K))this.j.pN("ssap",{rlc:Z}),vVW(this,Z);else return}if(!this.Y.has(Z)){K=new Bb(Q,this.Yh,this.Iu);var b=Math.round(g.m4(this.j.provider)*1E3);K=new g.Wb(K,b);sKn(K)||this.j.pN("nqv",{vv:Q.videoId});b=this.j.getVideoData();this.Y.set(Z,K);if(K.qoe){var q=K.qoe,r=b.videoId||"";q.contentCpn=b.clientPlaybackNonce;q.P7=r}ZPx(K);z===2&&(this.Yh.V("html5_log_ad_playback_docid")?(z=this.j,z.qoe&&(z=z.qoe,K=Q.Sp||"", b=Q.breakType||0,Q=Q.videoId||"",q=this.Yh.jJ||"yt",g.dY(z,g.m4(z.provider),"ad_playback",[Z,K,b,Q,q]))):this.j.iE(Z,Q.Sp||"",Q.breakType||0))}}; kV.prototype.Y4=function(Z,Q,z,K,b,q,r,D){if(Z!==Q){var v=this.NT(Z),Y=this.NT(Q),X,S=Z===((X=v.getVideoData())==null?void 0:X.clientPlaybackNonce),T;X=Q===((T=Y.getVideoData())==null?void 0:T.clientPlaybackNonce);var f;T=S?((f=v.getVideoData())==null?void 0:f.videoId)||"":"nvd";var h;f=X?((h=Y.getVideoData())==null?void 0:h.videoId)||"":"nvd";S&&(v=v.qoe)!=null&&(Pb(v,4,q?4:b?2:0,Q,f,z),v.reportStats());X&&(VD(Y),(Q=Y.qoe)!=null&&(Pb(Q,4,q?5:b?3:1,Z,T,K),Q.reportStats()),K4n(Y,new g.gB(r,Y.gf)), QKu(Y));D&&vVW(this,Z)}}; kV.prototype.NT=function(Z){Z=Z||this.iI;return this.Y.get(Z)||this.j};g.L(g.uX,g.O);g.A=g.uX.prototype; g.A.df=function(Z,Q){this.sync();Q&&this.Y.array.length>=2E3&&this.Y1("captions",1E4);Q=this.Y;if(Z.length>1&&Z.length>Q.array.length)Q.array=Q.array.concat(Z),Q.array.sort(Q.Y);else for(var z=g.n(Z),K=z.next();!K.done;K=z.next())K=K.value,!Q.array.length||Q.Y(K,Q.array[Q.array.length-1])>0?Q.array.push(K):g.X7(Q.array,K,Q.Y);Z=g.n(Z);for(Q=Z.next();!Q.done;Q=Z.next())Q=Q.value,Q.namespace==="ad"&&this.W("ssap",{acrsid:Q.getId(),acrsst:Q.start,acrset:Q.end,acrscpt:Q.playerType});this.S=NaN;this.sync()}; g.A.Pk=function(Z){Z.length>1E4&&g.CO(new g.tW("Over 10k cueRanges removal occurs with a sample: ",Z[0]));if(!this.FI()){for(var Q=g.n(Z),z=Q.next();!z.done;z=Q.next())(z=z.value)&&z.namespace==="ad"&&this.W("ssap",{rcrid:z.getId(),rcst:z.start,rcet:z.end,rcpt:z.playerType});var K=new Set(Z);this.j=this.j.filter(function(b){return!K.has(b)}); fOW(this.Y,K);this.sync()}}; g.A.Y1=function(Z,Q){var z=(isNaN(this.S)?g.t(this.K(),2)?0x8000000000000:this.U()*1E3:this.S)-Q;Q=this.mL().filter(function(K){return K.namespace===Z&&K.end<z}); this.Pk(Q);return Q}; g.A.mL=function(){return this.FI()?[]:this.Y.array}; g.A.reset=function(){this.started=!1;this.L.stop();this.Y.array=[];this.j=[];this.sync()}; g.A.US=function(Z){var Q=this.mL().filter(function(z){return z.namespace===Z}); this.Pk(Q);return Q}; g.A.KJ=Qx(42); g.A.cJ=function(Z,Q){var z=[],K=S0G(this.Y,0x7ffffffffffff),b=[];this.W("ssap",{mecrs:K.length,cpn:Q});K=g.n(K);for(var q=K.next();!q.done;q=K.next())q=q.value,q.active&&(this.W("ssap",{acre:q.id,st:q.start,et:q.end,cpn:Q,cpt:q.playerType,pt:Z}),Q&&Q===q.S?(b.push(q),this.W("ssap",{acrec:q.id,st:q.start,et:q.end,pt:Z})):q.playerType===Z&&(b.push(q),this.W("ssap",{acret:q.id,st:q.start,et:q.end})));z=z.concat(this.vp(b));nVf(this,z);z=[];Q=[];K=g.n(this.j);for(q=K.next();!q.done;q=K.next())q=q.value, q.active&&q.playerType===Z&&q.start===0x7ffffffffffff&&Q.push(q);z=z.concat(this.tM(Q));nVf(this,z);return b.length}; g.A.vp=function(Z){var Q=[];if(!Z.length)return Q;for(var z=0;z<Z.length;z++){var K=Z[z];K.active&&this.j.indexOf(K)===-1&&(this.j.push(K),Q.push([1,K]))}return Q}; g.A.tM=function(Z){var Q=[];if(!Z.length)return Q;Z.sort(g.q4);Z=g.n(Z);for(var z=Z.next();!z.done;z=Z.next())z=z.value,this.j.splice(this.j.indexOf(z),1),Q.push([2,z]);return Q}; g.A.sync=function(){this.T=!0;if(!this.X){for(var Z=3;this.T&&Z;)this.T=!1,this.X=!0,this.Yw(),this.X=!1,Z--;this.K().isPlaying()&&(Z=TYn(this.Y,this.S),!isNaN(Z)&&Z<0x7ffffffffffff&&(Z=(Z-this.S)/this.P7(),this.L.start(Z)))}}; g.A.Yw=function(){if(this.started&&!this.FI()){this.L.stop();var Z=this.K();g.t(Z,32)&&this.SJ.start();for(var Q=g.t(this.K(),2)?0x8000000000000:this.U()*1E3,z=g.t(Z,2),K=[],b=[],q=g.n(this.j),r=q.next();!r.done;r=q.next())r=r.value,r.active&&(z?r.end<0x8000000000000:!r.contains(Q))&&b.push(r);K=K.concat(this.tM(b));q=b=null;z?(Z=S0G(this.Y,0x7ffffffffffff),b=Z.filter(function(D){return D.end<0x8000000000000}),q=$Mn(this.Y)):Z=this.S<=Q&&vv(Z)?Xbd(this.Y,this.S,Q):S0G(this.Y,Q); K=K.concat(this.vp(Z));b&&(K=K.concat(this.tM(b)));q&&(K=K.concat(this.vp(q)));this.S=Q;nVf(this,K)}}; g.A.gr=function(){this.j=[];this.Y.array=[];g.O.prototype.gr.call(this)}; g.UA.E4(g.uX,{df:"crmacr",vp:"crmncr",tM:"crmxcr",Yw:"crmis",Pk:"crmrcr"});g.A=g.xV.prototype;g.A.addCueRange=function(Z){this.Iu.addCueRange(Z)}; g.A.Mz=function(Z,Q){this.Iu.Mz(Z,Q)}; g.A.h1=function(){this.Iu.h1()}; g.A.ZZ=function(){return this.Iu.ZZ()}; g.A.s_=function(){return this.Iu.s_()}; g.A.w3=function(Z,Q){this.Iu.w3(Z,Q)}; g.A.Y1=function(Z,Q){return this.Iu.Y1(Z,Q)}; g.A.OC=function(Z){this.Iu.OC(Z)}; g.A.Th=function(){return this.Iu.Th()}; g.A.getAudioTrack=function(){return this.Iu.getAudioTrack()}; g.A.getAvailableAudioTracks=function(){return this.Iu.getAvailableAudioTracks()}; g.A.L9=function(){return this.Iu.L9()}; g.A.AC=function(){return this.Iu.AC()}; g.A.mL=function(){return this.Iu.mL()}; g.A.tq=function(){return this.Iu.tq()}; g.A.XJ=function(){return this.Iu.XJ()}; g.A.getCurrentTime=function(){return this.Iu.getCurrentTime()}; g.A.kH=function(){return this.Iu.kH()}; g.A.HM=function(){return this.Iu.HM()}; g.A.gy=function(Z){return this.Iu.gy(Z)}; g.A.getDuration=function(Z){return this.Iu.getDuration(Z)}; g.A.GT=function(){return this.Iu.GT()}; g.A.RC=function(){return this.Iu.RC()}; g.A.Ad=function(){return this.Iu.Ad()}; g.A.SS=function(){return this.Iu.SS()}; g.A.g_=function(){return this.Iu.g_()}; g.A.BM=Qx(16);g.A.R$=function(){return this.Iu.R$()}; g.A.rS=function(){return this.Iu.rS()}; g.A.Pr=function(Z){return this.Iu.Pr(Z)}; g.A.ES=function(){return this.Iu.ES()}; g.A.NE=function(){return this.Iu.NE()}; g.A.Ze=function(){return this.Iu.Ze()}; g.A.IL=function(){return this.Iu.IL()}; g.A.Hx=function(Z,Q,z){return this.Iu.Hx(Z,Q,z)}; g.A.d_=Qx(21);g.A.getPlaybackQuality=function(){return this.Iu.getPlaybackQuality()}; g.A.getPlaybackRate=function(){return this.Iu.getPlaybackRate()}; g.A.getPlayerState=function(){return this.Iu.getPlayerState()}; g.A.getPlayerType=function(){return this.Iu.getPlayerType()}; g.A.getPlaylistSequenceForTime=function(Z){return this.Iu.getPlaylistSequenceForTime(Z)}; g.A.Ax=function(Z){return this.Iu.Ax(Z)}; g.A.vH=function(){return this.Iu.vH()}; g.A.getPreferredQuality=function(){return this.Iu.getPreferredQuality()}; g.A.iU=function(){return this.Iu.iU()}; g.A.getProximaLatencyPreference=function(){return this.Iu.getProximaLatencyPreference()}; g.A.BQ=function(){return this.Iu.BQ()}; g.A.getStreamTimeOffset=function(){return this.Iu.getStreamTimeOffset()}; g.A.G1=function(){return this.Iu.G1()}; g.A.Ry=function(){return this.Iu.Ry()}; g.A.yC=function(){return this.Iu.yC()}; g.A.getUserAudio51Preference=function(){return this.Iu.getUserAudio51Preference()}; g.A.getUserPlaybackQualityPreference=function(){return this.Iu.getUserPlaybackQualityPreference()}; g.A.getVideoData=function(){return this.Iu.getVideoData()}; g.A.wI=function(){return this.Iu.wI()}; g.A.lY=function(){return this.Iu.lY()}; g.A.gI=function(Z){this.Iu.gI(Z)}; g.A.handleError=function(Z){this.Iu.handleError(Z)}; g.A.tS=function(Z){this.Iu.tS(Z)}; g.A.cQ=function(Z){this.Iu.cQ(Z)}; g.A.KJ=Qx(41);g.A.Um=function(){return this.Iu.Um()}; g.A.hasSupportedAudio51Tracks=function(){return this.Iu.hasSupportedAudio51Tracks()}; g.A.d6=function(){return this.Iu.d6()}; g.A.o6=function(){return this.Iu.o6()}; g.A.isAtLiveHead=function(Z,Q){return this.Iu.isAtLiveHead(Z,Q)}; g.A.qK=function(){return this.Iu.qK()}; g.A.isGapless=function(){return this.Iu.isGapless()}; g.A.isHdr=function(){return this.Iu.isHdr()}; g.A.vL=function(){return this.Iu.vL()}; g.A.mN=function(){return this.Iu.mN()}; g.A.R5=function(){return this.Iu.R5()}; g.A.isProximaLatencyEligible=function(){return this.Iu.isProximaLatencyEligible()}; g.A.dV=function(){return this.Iu.dV()}; g.A.Sg=function(){return this.Iu.Sg()}; g.A.v6=function(){this.Iu.v6()}; g.A.Fn=function(Z){this.Iu.Fn(Z)}; g.A.FH=function(Z){this.Iu.FH(Z)}; g.A.UY=function(){this.Iu.UY()}; g.A.Ye=function(){this.Iu.Ye()}; g.A.Dx=function(){this.Iu.Dx()}; g.A.yV=function(){this.Iu.yV()}; g.A.JX=function(Z){this.Iu.JX(Z)}; g.A.nC=Qx(53);g.A.YS=Qx(26);g.A.Ur=function(){this.Iu.Ur()}; g.A.pauseVideo=function(Z){this.Iu.pauseVideo(Z)}; g.A.wg=function(Z){this.Iu.wg(Z)}; g.A.ST=function(Z){this.Iu.ST(Z)}; g.A.playVideo=function(Z,Q){return this.Iu.playVideo(Z,Q)}; g.A.iE=function(Z,Q,z,K,b){this.Iu.iE(Z,Q,z,K,b)}; g.A.Iq=Qx(31);g.A.qa=Qx(36);g.A.ZN=function(Z,Q,z,K,b){this.Iu.ZN(Z,Q,z,K,b)}; g.A.pN=function(Z,Q,z){this.Iu.pN(Z,Q,z)}; g.A.BP=function(Z){this.Iu.BP(Z)}; g.A.v_=function(Z,Q){this.Iu.NT().v_(Z,Q)}; g.A.ul=function(Z,Q,z){this.Iu.ul(Z,Q,z)}; g.A.U8=function(Z){this.Iu.U8(Z)}; g.A.ek=function(Z,Q,z){this.Iu.ek(Z,Q,z)}; g.A.t2=function(Z){this.Iu.t2(Z)}; g.A.kN=function(Z,Q){this.Iu.kN(Z,Q)}; g.A.fE=function(Z,Q,z,K,b,q,r,D){this.Iu.fE(Z,Q,z,K,b,q,r,D)}; g.A.oQ=function(Z){this.Iu.oQ(Z)}; g.A.RR=function(Z,Q){this.Iu.RR(Z,Q)}; g.A.En=function(Z,Q){this.Iu.En(Z,Q)}; g.A.removeCueRange=function(Z){this.Iu.removeCueRange(Z)}; g.A.D6=function(Z){this.Iu.D6(Z)}; g.A.US=function(Z){return this.Iu.Rq.US(Z)}; g.A.Ss=function(Z){this.Iu.Ss(Z)}; g.A.A6=function(Z,Q,z){this.Iu.A6(Z,Q,z)}; g.A.Gr=function(){this.Iu.Gr()}; g.A.Pz=function(Z,Q){this.Iu.Pz(Z,Q)}; g.A.yg=function(){this.Iu.yg()}; g.A.seekTo=function(Z,Q){this.Iu.seekTo(Z,Q)}; g.A.sendAbandonmentPing=function(){this.Iu.sendAbandonmentPing()}; g.A.sendVideoStatsEngageEvent=function(Z,Q){this.Iu.sendVideoStatsEngageEvent(Z,Q)}; g.A.s0=function(Z,Q){this.Iu.s0(Z,Q)}; g.A.setLoop=function(Z){this.Iu.setLoop(Z)}; g.A.P1=function(){this.Iu.P1()}; g.A.setMediaElement=function(Z){this.Iu.setMediaElement(Z)}; g.A.iT=function(Z,Q,z,K){this.Iu.iT(Z,Q,z,K)}; g.A.setPlaybackRate=function(Z){this.Iu.setPlaybackRate(Z)}; g.A.q8=function(Z,Q,z,K,b,q){this.Iu.q8(Z,Q,z,K,b,q)}; g.A.y6=function(Z,Q){this.Iu.y6(Z,Q)}; g.A.o3=function(Z){this.Iu.o3(Z)}; g.A.setProximaLatencyPreference=function(Z){this.Iu.setProximaLatencyPreference(Z)}; g.A.GA=function(Z){this.Iu.GA(Z)}; g.A.Ww=function(){this.Iu.Ww()}; g.A.b$=function(Z){this.Iu.b$(Z)}; g.A.setUserAudio51Preference=function(Z,Q){this.Iu.setUserAudio51Preference(Z,Q)}; g.A.PT=function(Z,Q,z){this.Iu.PT(Z,Q,z)}; g.A.jc=function(){return this.Iu.jc()}; g.A.zw=function(){this.Iu.zw()}; g.A.x6=function(){return this.Iu.x6()}; g.A.Lz=function(Z){this.Iu.Lz(Z)}; g.A.LH=function(){this.Iu.LH()}; g.A.VO=function(Z){this.Iu.VO(Z)}; g.A.stopVideo=function(){this.Iu.stopVideo()}; g.A.subscribe=function(Z,Q,z){return this.Iu.subscribe(Z,Q,z)}; g.A.EK=function(Z,Q){this.Iu.EK(Z,Q)}; g.A.togglePictureInPicture=function(){this.Iu.togglePictureInPicture()}; g.A.cJ=function(Z,Q){return this.Iu.Rq.cJ(Z,Q)}; g.A.unsubscribe=function(Z,Q,z){return this.Iu.unsubscribe(Z,Q,z)}; g.A.wk=function(Z,Q){this.Iu.wk(Z,Q)}; g.A.Wu=function(Z,Q){return this.Iu.Wu(Z,Q)}; g.A.aP=function(){this.Iu.aP()}; g.A.rP=function(){this.Iu.rP()}; g.A.bv=function(Z){this.Iu.bv(Z)}; g.A.ED=function(){this.Iu.ED()};es.prototype.add=function(Z){this.Y=(this.Y+1)%this.data.length;this.data[this.Y]=Z}; es.prototype.forEach=function(Z){for(var Q=this.Y+1;Q<this.data.length;Q++)Z(this.data[Q]||0);for(Q=0;Q<=this.Y;Q++)Z(this.data[Q]||0)}; es.prototype.clear=function(){for(var Z=this.data.length,Q=0;Q<Z;Q++)this.data[Q]=0;this.j=this.Y=this.data.length-1};g.L(E0,g.rV);E0.prototype.s7=function(){return this.X}; E0.prototype.GT=function(){return this.policy.U&&this.videoData.Y?this.videoData.Y.vk:Math.max(this.K()-sB(this)*this.Y,this.videoData.Ze())};g.L(zT,g.O);zT.prototype.MR=function(){var Z=this,Q=this.Iu.ES(),z=this.Iu.getPlayerState();if(Q&&!z.isError()){var K=Q.getCurrentTime(),b=z.state===8&&K>this.Y,q=g.t(z,8)&&g.t(z,16),r=this.Iu.MU().isBackground()||z.isSuspended();K_(this,this.CN,q&&!r,b,"qoe.slowseek",function(){},"timeout"); var D=isFinite(this.Y);D=q&&D&&NBd(Q,this.Y);var v=!K||Math.abs(K-this.Y)>10,Y=this.Yh.V("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),X=K===0&&this.j&&[11,10].includes(this.j);K_(this,this.Qp,D&&v&&!r&&(!Y||!X),b,"qoe.slowseek",function(){Q.seekTo(Z.Y)},"set_cmt"); v=D&&DR(Q.gm(),this.Y);var S=this.Iu.wr;D=!S||S.qK();var T=function(){Q.seekTo(Z.Y+.001)}; K_(this,this.Du,v&&D&&!r,b,"qoe.slowseek",T,"jiggle_cmt");D=function(){return Z.Iu.Hx()}; K_(this,this.s$,v&&!r,b,"qoe.slowseek",D,"new_elem");v=vv(z);Y=z.isBuffering();var f=Q.gm(),h=j8(f,K),m=h>=0&&f.end(h)>K+5,J=v&&Y&&m;X=this.Iu.getVideoData();K_(this,this.Zu,K<.002&&this.Y<.002&&q&&g.Nf(this.Yh)&&g.Mz(X)&&!r,b,"qoe.slowseek",D,"slow_seek_shorts");K_(this,this.jJ,X.aF()&&q&&!r&&!X.P7,b,"qoe.slowseek",D,"slow_seek_gapless_shorts");K_(this,this.P7,J&&!r,v&&!Y,"qoe.longrebuffer",T,"jiggle_cmt");K_(this,this.JG,J&&!r,v&&!Y,"qoe.longrebuffer",D,"new_elem_nnr");if(S){var d=S.getCurrentTime(); q=Q.jG();q=$jG(q,d);q=!S.isSeeking()&&K===q;K_(this,this.sA,v&&Y&&q&&!r,v&&!Y&&!q,"qoe.longrebuffer",function(){Q.seekTo(d)},"seek_to_loader")}q={}; T=j8(f,Math.max(K-3.5,0));J=T>=0&&K>f.end(T)-1.1;var G=T>=0&&T+1<f.length?f.start(T+1)-f.end(T):9999;q.mindex=h;q.disIndex=T;q.isdisc=T>=0&&J&&G<11;q.close2edge=J;q.gapsize=G;q.buflen=f.length;this.j&&(q.seekSour=this.j);if(T=this.Iu.wp()){J=T.lw();G=J!==NK(T,K*1E3).clipId;var R=g.Xp(this.Yh.experiments,"html5_ssap_skip_seeking_offset_ms"),U=(dF(T,J)+R)/1E3;K_(this,this.c7,G&&v&&Y&&!r,v&&!Y,"qoe.longrebuffer",function(){Q.seekTo(U)},"ssap_clip_not_match")}K_(this,this.KN,v&&Y&&!r,v&&!Y,"qoe.longrebuffer", function(){},"timeout",q); q=z.isSuspended();q=this.Iu.d6()&&!q;K_(this,this.T,q,!q,"qoe.start15s",function(){Z.Iu.o3("ad")},"ads_preroll_timeout"); T=K-this.W<.5;var B;q=!((B=this.Iu.wp())==null||!B.sR());G=(J=X.isAd()||q&&this.Yh.experiments.XI("html5_ssap_skip_slow_ad"))&&v&&!Y&&T;B=function(){var e=Z.Iu,F=g.V0(e.videoData)&&e.jf,KX=e.lh.getVideoData();(KX&&e.videoData.isAd()&&KX.gX===e.getVideoData().gX||!e.videoData.PN)&&!F?e.q8("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+e.videoData.videoId):qz(e.videoData,"html5_ssap_skip_slow_ad")&&F&&e.jf.sR()&&(e.U8(new N5("ssap.transitionfailure",{cpn:NK(e.jf,e.XJ()).clipId,pcpn:e.jf.lw(), cmt:e.XJ()})),e=e.jf,F=e.playback.XJ(),(F=ATG(e,F))&&zLG(e,F.aq()/1E3))}; K_(this,this.gq,G,!G,"ad.rebuftimeout",B,"skip_slow_ad");T=J&&Y&&DR(Q.gm(),K+5)&&T;K_(this,this.DI,T&&!r,!T,"ad.rebuftimeout",B,"skip_slow_ad_buf");B=z.isOrWillBePlaying()&&g.t(z,64)&&!r;K_(this,this.F7,B,b,"qoe.start15s",function(){},"timeout"); B=!!S&&!S.Tf&&z.isOrWillBePlaying();K_(this,this.Vp,B,b,"qoe.start15s",D,"newElemMse");B=Y6(f,0);T=g.t(z,16)||g.t(z,32);T=!r&&z.isOrWillBePlaying()&&Y&&!T&&(g.t(z,64)||K===0)&&B>5;K_(this,this.qB,g.Mz(X)&&T,v&&!Y,"qoe.longrebuffer",function(){Z.Iu.k6()},"reset_media_source"); K_(this,this.NB,g.Mz(X)&&T,v&&!Y,"qoe.longrebuffer",D,"reset_media_element");this.W===0&&(this.K=K);T=Y&&this.Y===0&&K>1&&K===this.K;K_(this,this.tG,g.Mz(X)&&T,v&&!Y,"qoe.slowseek",function(){Q.seekTo(0)},"reseek_after_time_jump"); r=z.isOrWillBePlaying()&&!r;m=this.Iu.Pr()-K<6&&!m&&this.Iu.r_();K_(this,this.X,X.aF()&&r&&Y&&m,v&&!Y,"qoe.longrebuffer",function(){Z.Iu.Hx(!1,!0)},"handoff_end_long_buffer_reload"); S=(S==null?void 0:nG9(S))||NaN;S=f.length>1||!isNaN(S)&&S-.1<=K;K_(this,this.U,l8(X)&&r&&Y&&S,v&&!Y,"qoe.longrebuffer",D,"gapless_slice_append_stuck");S=h>=0&&f.end(h)>=2;r=l8(X)&&this.Iu.cC&&S&&!X.P7&&r&&(Y||g.t(z,8)&&g.t(z,16));K_(this,this.SJ,r,b,"qoe.start15s",D,"gapless_slow_start");z=!!(q&&B>5&&z.isPlaying()&&K<.1);K_(this,this.X7,z,K>.5&&v,"qoe.longrebuffer",D,"ssap_stuck_in_ad_beginning");this.W=K;this.L.start()}}; zT.prototype.U8=function(Z,Q,z){Q=this.gy(Q);Q.wn=z;Q.wdup=this.S[Z]?"1":"0";this.Iu.U8(new N5(Z,Q));this.S[Z]=!0}; zT.prototype.gy=function(Z){Z=Object.assign(this.Iu.gy(!0),Z.gy());this.Y&&(Z.stt=this.Y.toFixed(3));this.Iu.getVideoData().isLivePlayback&&(Z.ct=this.Iu.getCurrentTime().toFixed(3),Z.to=this.Iu.Ry().toFixed(3));delete Z.uga;delete Z.euri;delete Z.referrer;delete Z.fexp;delete Z.vm;return Z}; Za.prototype.reset=function(){this.Y=this.j=this.S=this.startTimestamp=0;this.W=!1}; Za.prototype.test=function(Z){if(!this.L||this.j)return!1;if(!Z)return this.reset(),!1;Z=(0,g.Nm)();if(!this.startTimestamp)this.startTimestamp=Z,this.S=0;else if(this.S>=this.L)return this.j=Z,!0;this.S+=1;return!1}; Za.prototype.gy=function(){var Z={},Q=(0,g.Nm)();this.startTimestamp&&(Z.wsd=(Q-this.startTimestamp).toFixed());this.j&&(Z.wtd=(Q-this.j).toFixed());this.Y&&(Z.wssd=(Q-this.Y).toFixed());return Z};g.L(UMG,g.O);g.A=UMG.prototype;g.A.setMediaElement=function(Z){(this.mediaElement=Z)?(this.mediaElement&&(this.L||this.W||!this.mediaElement.aQ()||this.seekTo(.01,{s8:"seektimeline_setupMediaElement"})),b5(this)):rj(this)}; g.A.getCurrentTime=function(){if(qv(this.Iu)){if(!isNaN(this.j))return this.j}else if(!isNaN(this.j)&&isFinite(this.j))return this.j;return this.mediaElement&&EVn(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.W||0}; g.A.pQ=function(){return this.NB}; g.A.XJ=function(){return this.getCurrentTime()-this.Ry()}; g.A.GT=function(){return this.Y?this.Y.GT():Infinity}; g.A.isAtLiveHead=function(Z){if(!this.Y)return!1;Z===void 0&&(Z=this.getCurrentTime());return lX(this.Y,Z)}; g.A.s7=function(){return!!this.Y&&this.Y.s7()}; g.A.seekTo=function(Z,Q){var z=Q===void 0?{}:Q;Q=z.MG===void 0?!1:z.MG;var K=z.w0===void 0?0:z.w0;var b=z.OE===void 0?!1:z.OE;var q=z.Qh===void 0?0:z.Qh;var r=z.s8===void 0?"":z.s8;var D=z.seekSource===void 0?void 0:z.seekSource;var v=z.gS===void 0?!1:z.gS;var Y=z.xx===void 0?!1:z.xx;z=z.TX===void 0?!1:z.TX;v&&(Z+=this.Ry());Qa(this.videoData)&&this.V("html5_sabr_enable_utc_seek_requests")&&D===29&&(this.NB=void 0);v=Z<this.Vp&&!!this.wr;var X=Qa(this.videoData)&&Y;if(v&&!X&&(this.Iu.pN("sdai",{sk2bk:Z.toFixed(3), mt:(Z-this.timestampOffset).toFixed(3),lstadj:this.Vp.toFixed(3)}),this.Vp=NaN,this.timestampOffset-=1E3,(X=this.wr)!=null)){Ldu(X,X.timestampOffset-1E3);var S=X.kh,T=new Set;for(m in S.Y){var f=S.Y[m].index,h=f.Ug();h&&!T.has(h)&&(h.startTime+=1E3,h.endTime=h.startTime+h.duration,T.add(h));f.segments.length&&(h=f.segments[f.segments.length-1],f.segments=[],f.segments.push(h))}X.X&&X.X.lB();C7(X.W,0,0,!0)}var m=Z;(X=Qa(this.videoData))&&Y?m=!0:(S=this.V("html5_always_allow_sqless_sync")&&this.videoData.fd(), (X||S)&&r==="chunkSelectorSynchronize"?m=!0:(X=!isFinite(m)||(this.Y?lX(this.Y,m):m>=this.TJ())||!g.md(this.videoData),X||(m={st:m,mst:this.TJ()},this.Y&&this.V("html5_high_res_seek_logging")&&(m.ht=this.Y.GT(),m.adft=aOD(this.Y)),this.Iu.pN("seeknotallowed",m)),m=X));if(!m)return this.S&&(this.S=null,e2u(this)),g.$7(this.getCurrentTime());m=.005;Y&&this.V("html5_sabr_seek_no_shift_tolerance")&&(m=0);if(Math.abs(Z-this.j)<=m&&this.SJ)return this.L;r&&(m=Z,(this.Yh.aT()||this.V("html5_log_seek_reasons"))&& this.Iu.pN("seekreason",{reason:r,tgt:m}));D&&(this.JG.j=D);this.SJ&&rj(this);this.L||(this.L=new EZ);Z&&!isFinite(Z)&&W44(this,!1);(r=z||v)||(r=Z,r=!(this.videoData.isLivePlayback&&this.videoData.S&&!this.videoData.S.Y&&!(this.mediaElement&&this.mediaElement.oX()>0&&sN(this.mediaElement)>0)||AP(this.videoData)&&this.Ze()===this.TJ(!1)?0:isFinite(r)||!AP(this.videoData)));r||(Z=j0(this,Z,b));Z&&!isFinite(Z)&&W44(this,!1);this.W=Z;this.Du=q;this.j=Z;this.U=0;this.Y&&(b=this.Y,q=Z,PXG(b,q,!1),R2G(b, q));b=this.Iu;q=Z;r={MG:Q,seekSource:D};b.xd.W=q;z=b.f8;z.mediaTime=q;z.Y=!0;r.MG&&b.VO(r);r=q>b.videoData.endSeconds&&q>b.videoData.limitedPlaybackDurationInSeconds;b.So&&r&&isFinite(q)&&i_n(b);q<b.TJ()-.01&&(r=Ak(b.playerState,2),g.t(r,8)&&(r=Ak(r,4)),b.V3(r));b.publish("SEEK_TO",b,q);this.L&&(Q?K&&this.Zu.start(K):(Q={xx:Y,seekSource:D},this.SJ=!0,Ms0(this,Q)));(Q=this.Iu.So)&&Z>Q.start&&i_n(this.Iu);return this.L}; g.A.TJ=function(Z){if(!this.videoData.isLivePlayback)return KR0(this.Iu);var Q;return Fo(this.videoData)&&((Q=this.mediaElement)==null?0:Q.isPaused())&&this.videoData.Y?(Z=this.getCurrentTime(),q4f(this.RC(Z)*1E3)+Z):this.V("html5_sabr_parse_live_metadata_playback_boundaries")&&Qa(this.videoData)&&this.videoData.Y?Z?this.videoData.Y.SJ||0:this.videoData.Y.vk||0:AP(this.videoData)&&this.videoData.c7&&this.videoData.Y?this.videoData.Y.TJ()+this.timestampOffset:this.videoData.S&&this.videoData.S.Y?!Z&& this.Y?this.Y.GT():KR0(this.Iu)+this.timestampOffset:this.mediaElement?uV()?q4f(this.mediaElement.Vd().getTime()):sN(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.A.Ze=function(){if(g.V0(this.videoData)){var Z=this.Iu;g.V0(Z.videoData);var Q,z;return(z=(Q=Z.jf)==null?void 0:Q.Ze())!=null?z:Z.videoData.Ze()}if(this.V("html5_sabr_parse_live_metadata_playback_boundaries")&&Qa(this.videoData)){var K;return((K=this.videoData.Y)==null?void 0:K.Sb)||0}Q=this.videoData?this.videoData.Ze()+this.timestampOffset:this.timestampOffset;return Fo(this.videoData)&&this.videoData.Y&&(z=Number((Z=this.videoData.progressBarStartPosition)==null?void 0:Z.utcTimeMillis)/1E3,Z= this.getCurrentTime(),Z=this.RC(Z)-Z,!isNaN(z)&&!isNaN(Z))?Math.max(Q,z-Z):Q}; g.A.F2=function(){this.L||this.seekTo(this.W,{s8:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.A.J8=function(){return this.SJ&&!isFinite(this.j)}; g.A.gr=function(){Vs0(this,null);this.JG.dispose();g.O.prototype.gr.call(this)}; g.A.gy=function(){var Z={};this.wr&&Object.assign(Z,this.wr.gy());this.mediaElement&&Object.assign(Z,this.mediaElement.gy());return Z}; g.A.IQ=function(Z){this.timestampOffset=Z}; g.A.getStreamTimeOffset=function(){return AP(this.videoData)?0:this.videoData.Y?this.videoData.Y.getStreamTimeOffset():0}; g.A.Ry=function(){return this.timestampOffset}; g.A.RC=function(Z){return this.videoData&&this.videoData.Y?this.videoData.Y.RC(Z-this.timestampOffset):NaN}; g.A.Yk=function(){if(!this.mediaElement)return 0;if(IG(this.videoData)){var Z=this.mediaElement,Q=Z.gm();Z=(gQ(Q)>0&&Z.getDuration()?Q.end(Q.length-1):0)+this.timestampOffset-this.Ze();Q=this.TJ()-this.Ze();return Math.max(0,Math.min(1,Z/Q))}return this.mediaElement.Yk()}; g.A.W_=function(Z){this.K&&(this.K.Y=Z)}; g.A.Pz=function(Z,Q){this.Iu.pN("requestUtcSeek",{time:Z});Qa(this.videoData)&&this.V("html5_sabr_enable_utc_seek_requests")&&(this.NB=Z);var z;(z=this.wr)==null||z.Pz(Z);Q&&(this.P7=Q)}; g.A.s1=function(Z){Qa(this.videoData)&&this.V("html5_sabr_enable_utc_seek_requests")&&(this.NB=void 0);if(this.P7)this.Iu.pN("utcSeekingFallback",{source:"streamTime",timeSeconds:this.P7}),this.Iu.seekTo(this.P7,{s8:"utcSeekingFallback_streamTime"}),this.P7=0;else{var Q=this.getCurrentTime();isNaN(Q)||(Z=this.RC(Q)-Z,Q-=Z,this.Iu.pN("utcSeekingFallback",{source:"estimate",timeSeconds:Q}),this.Iu.seekTo(Q,{s8:"utcSeekingFallback_estimate"}))}}; g.A.eY=function(){this.P7=0}; g.A.V=function(Z){return this.Yh&&this.Yh.V(Z)};g.L(Da,g.O);Da.prototype.start=function(){this.j.start()}; Da.prototype.stop=function(){this.j.stop()}; Da.prototype.clear=function(){for(var Z=g.n(this.Y.values()),Q=Z.next();!Q.done;Q=Z.next())Q.value.clear()}; Da.prototype.sample=function(){for(var Z=g.n(this.S),Q=Z.next();!Q.done;Q=Z.next()){var z=g.n(Q.value);Q=z.next().value;z=z.next().value;this.Y.has(Q)||this.Y.set(Q,new K7r(eUR.has(Q)));this.Y.get(Q).update(z())}this.j.start()}; var eUR=new Set(["networkactivity"]);K7r.prototype.update=function(Z){this.Y?(this.buffer.add(Z-this.w2||0),this.w2=Z):this.buffer.add(Z)}; K7r.prototype.clear=function(){this.buffer.clear();this.w2=0};Y1.prototype.fJ=function(){return this.started}; Y1.prototype.start=function(){this.started=!0}; Y1.prototype.reset=function(){this.finished=this.started=!1};var j_4=!1;g.L(g.TT,g.rV);g.A=g.TT.prototype;g.A.gr=function(){this.logger.debug("dispose");g.hN(this.Lu);XlG(this.bz);this.visibility.unsubscribe("visibilitystatechange",this.bz);c89(this);L_(this);g.Wk.FZ(this.zA);this.A6();this.K0=null;g.jR(this.videoData);g.jR(this.aX);g.jR(this.HI);g.jR(this.d8);g.DH(this.oqu);this.So=null;g.rV.prototype.gr.call(this)}; g.A.iE=function(Z,Q,z,K,b){if(this.Yh.V("html5_log_ad_playback_docid")){var q=this.NT();if(q.qoe){q=q.qoe;var r=this.Yh.jJ||"yt";g.dY(q,g.m4(q.provider),"ad_playback",[Z,Q,z,b,r])}}else this.NT().iE(Z,Q,z);this.V("html5_log_media_perf_info")&&this.pN("adloudness",{ld:K.toFixed(3),cpn:Z})}; g.A.tq=function(){var Z;return(Z=this.wr)==null?void 0:Z.tq()}; g.A.kH=function(){var Z;return(Z=this.wr)==null?void 0:Z.kH()}; g.A.HM=function(){var Z;return(Z=this.wr)==null?void 0:Z.HM()}; g.A.sT=function(){var Z;return(Z=this.wr)==null?void 0:Z.sT()}; g.A.LZ=function(){return this.videoData.LZ()}; g.A.jc=function(){return this.V("html5_not_reset_media_source")&&!this.LZ()&&!this.videoData.isLivePlayback&&g.Mz(this.videoData)&&!this.Yh.supportsGaplessShorts()}; g.A.Ww=function(){if(this.videoData.X){var Z;if(!(Z=this.videoData.hP)){var Q;Z=(Q=this.lh.eJ())==null?void 0:Q.tq()}this.videoData.hP=Z;if(!(Z=this.videoData.pO)){var z;Z=(z=this.lh.eJ())==null?void 0:z.kH()}this.videoData.pO=Z}if(ebf(this.videoData)||!tP(this.videoData))z=this.videoData.errorDetail,this.q8(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),z,z,this.videoData.Uq||void 0);this.V("html5_generate_content_po_token")&&this.GM();this.V("html5_enable_d6de4")&&this.eT(); if(this.V("html5_ssap_cleanup_player_switch_ad_player")||this.V("html5_ssap_cleanup_ad_player_on_new_data"))if(z=this.lh.SP())this.A3=z.clientPlaybackNonce}; g.A.nF=function(){return this.OV}; g.A.gW=function(){!this.JE||this.JE.FI();this.JE=new g.Wb(new Bb(this.videoData,this.Yh,this));this.OV=new kV(this.Yh,this,this.JE)}; g.A.getVideoData=function(){return this.videoData}; g.A.N=function(){return this.Yh}; g.A.fS=function(Z){return this.jQ.fS(this.K0,Z===void 0?!1:Z)}; g.A.NT=function(Z){if(Z)a:{for(var Q=this.OV,z=g.n(Q.Y.values()),K=z.next();!K.done;K=z.next())if(K=K.value,K.getVideoData().videoId===Z){Z=K;break a}Z=Q.j}else Z=this.OV.NT();return Z}; g.A.MU=function(){return this.visibility}; g.A.wI=function(){return this.mediaElement&&this.mediaElement.Yo()?this.mediaElement.OA():null}; g.A.ES=function(){return this.mediaElement}; g.A.s_=function(){if(this.V("html5_check_video_data_errors_before_playback_start")&&this.videoData.errorCode)return!1;this.N().K&&this.N().houseBrandUserStatus&&this.pN("hbut",{status:this.N().houseBrandUserStatus});if(this.videoData.hH())return!0;this.q8("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.A.Lz=function(Z){(Z=Z===void 0?!1:Z)||g.V0(this.videoData)||VD(this.NT());this.vr=Z;!this.s_()||this.Uu.fJ()?g.Nf(this.Yh)&&this.videoData.isLivePlayback&&this.Uu.fJ()&&!this.Uu.finished&&!this.vr&&this.u9():(this.Uu.start(),Z=this.NT(),g.m4(Z.provider),Z.qoe&&fiu(Z.qoe),this.u9())}; g.A.u9=function(){if(this.videoData.isLoaded()){var Z=this.aX;g.Xp(Z.B7.experiments,"html5_player_min_build_cl")>0&&g.Xp(Z.B7.experiments,"html5_player_min_build_cl")>728910285&&Ip0(Z,"oldplayer");y8G(this)}else this.videoData.J6||this.videoData.Y3?this.vr&&g.Nf(this.Yh)&&this.videoData.isLivePlayback||(this.videoData.J6?Rbu(this.videoData):(Z=this.NT(),Z.qoe&&(Z=Z.qoe,iX(Z,"protected"),Z.provider.videoData.L?Z.w1():Z.provider.videoData.subscribe("dataloaded",Z.w1,Z)),N6G(this.videoData))):!this.videoData.loading&& this.fB&&mvx(this)}; g.A.b$=function(Z){this.y3=Z;this.wr&&($zW(this.wr,new g.js(Z)),this.pN("sdai",{sdsstm:1}))}; g.A.GA=function(Z){this.jf=Z;this.wr&&this.wr.GA(Z)}; g.A.BM=Qx(15);g.A.isFullscreen=function(){return this.visibility.isFullscreen()}; g.A.isBackground=function(){return this.visibility.isBackground()}; g.A.ED=function(){var Z=this;this.logger.debug("Updating for format change");f_(this).then(function(){return $1(Z)}); this.playerState.isOrWillBePlaying()&&this.playVideo()}; g.A.LH=function(){this.logger.debug("start readying playback");this.mediaElement&&this.mediaElement.activate();this.Lz();this.s_()&&!g.t(this.playerState,128)&&(this.QQ.fJ()||(this.QQ.start(),this.videoData.n4?this.V3(ru(this.playerState,4)):this.V3(ru(ru(this.playerState,8),1))),IaW(this))}; g.A.mN=function(){return this.Uu.finished}; g.A.sendAbandonmentPing=function(){g.t(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.YY(!0),c89(this),g.Wk.FZ(this.zA))}; g.A.s0=function(Z,Q){Z=Z===void 0?!0:Z;(Q===void 0||Q)&&this.mediaElement&&this.mediaElement.pause();this.V3(Z?new g.Kg(14):new g.Kg)}; g.A.y0=function(){bP9(this.NT())}; g.A.q8=function(Z,Q,z,K,b,q){this.logger.debug(function(){return"set player error: ec="+Z+", detail="+b}); var r,D;g.yE(A6z,z)?r=z:z?D=z:r="GENERIC_WITHOUT_LINK";K=(K||"")+(";a6s."+jd());if(Z==="auth"||Z==="drm.auth"||Z==="heartbeat.stop")z&&(K+=";r."+z.replaceAll(" ","_")),q&&(K+="sr."+q.replaceAll(" ","_"));Q={errorCode:Z,errorDetail:b,errorMessage:D||g.tv[r]||"",Rw:r,Uq:q||"",TR:K,dH:Q,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=Z;h8(this,"dataloaderror");this.V3(qy(this.playerState,128,Q));g.Wk.FZ(this.zA);L_(this);this.RR()}; g.A.o3=function(Z){this.wl=this.wl.filter(function(Q){return Z!==Q}); this.logger.debug(function(){return"set preroll ready for "+Z}); g.V0(this.videoData)&&!this.Um()&&this.rq.f0("pl_pr");this.QQ.fJ()&&IaW(this)}; g.A.Um=function(){var Z;(Z=!!this.wl.length)||(Z=this.Rq.Y.array[0],Z=!!Z&&Z.start<=-0x8000000000000);return Z}; g.A.s7=function(){return this.xd.s7()}; g.A.isPlaying=function(){return this.playerState.isPlaying()}; g.A.vL=function(){return this.playerState.vL()&&this.videoData.n4}; g.A.getPlayerState=function(){return this.playerState}; g.A.wg=function(Z){var Q;(Q=this.wr)==null||Q.wg(Z)}; g.A.ST=function(Z){var Q;(Q=this.wr)==null||Q.ST(Z)}; g.A.getPlayerType=function(){return this.playerType}; g.A.getPreferredQuality=function(){if(this.K0){var Z=this.K0;Z=Z.videoData.ew.compose(Z.videoData.AF);Z=zL(Z)}else Z="auto";return Z}; g.A.d_=Qx(20);g.A.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.A.setMediaElement=function(Z){this.logger.debug("set media element");if(this.mediaElement&&Z.OA()===this.mediaElement.OA()&&(Z.isView()||this.mediaElement.isView())){if(Z.isView()||!this.mediaElement.isView())g.ib(this.AD),this.mediaElement=Z,this.mediaElement.Iu=this,V04(this),this.xd.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.A6();if(!this.playerState.isError()){var Q=Ak(this.playerState,512);g.t(Q,8)&&!g.t(Q,2)&&(Q=ru(Q,1));Z.isView()&&(Q=Ak(Q,64));this.V3(Q)}this.mediaElement= Z;this.mediaElement.Iu=this;!g.Nf(this.Yh)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);V04(this);this.xd.setMediaElement(this.mediaElement);this.V("html5_prewarm_media_source")&&!this.aX.Va()&&Imr(this.mediaElement)}}; g.A.A6=function(Z,Q,z){Z=Z===void 0?!1:Z;Q=Q===void 0?!1:Q;z=z===void 0?!1:z;this.logger.debug("remove media element");if(this.mediaElement){var K=this.getCurrentTime();K>0&&(this.xd.W=K);this.xd.setMediaElement(null);!Z&&this.jc()?M0D(this):this.Ss(z);this.wr&&(s0(this.wr),I_(this,Q));this.Nc.stop();if(this.mediaElement&&(!this.QQ.fJ()&&!this.d6()||this.playerState.isError()||g.t(this.playerState,2)||this.V3(ru(this.playerState,512)),this.mediaElement)){g.ib(this.AD);if(Z||!this.mediaElement.isView())this.rq.vz("mesv_s"), this.mediaElement.stopVideo(),J8(this);this.mediaElement=this.mediaElement.Iu=null}}}; g.A.playVideo=function(Z,Q){Z=Z===void 0?!1:Z;Q=Q===void 0?!1:Q;var z=this,K,b,q,r,D,v;return g.C(function(Y){if(Y.Y==1){z.logger.debug("start play video");var X=window.google_image_requests;X&&X.length>10&&(window.google_image_requests=X.slice(-10));if(g.t(z.playerState,128))return Y.return();if(z.aX.Sg())return z.publish("signatureexpired"),Y.return();z.mediaElement&&VD(z.NT());z.LH();(g.t(z.playerState,64)||Z)&&z.V3(ru(z.playerState,8));return z.QQ.finished&&z.mediaElement?z.K0||!z.JB?Y.O$(2): g.P(Y,z.JB,3):Y.return()}if(Y.Y!=2&&g.t(z.playerState,128))return Y.return();if(!z.videoData.S)return z.videoData.isLivePlayback&&!g.Ea(z.Yh.L,!0)?(K="html5.unsupportedlive",b=2):(K=z.videoData.LZ()?"fmt.unplayable":"fmt.noneavailable",b=1),g.CO(Error("selectableFormats")),z.q8(K,b,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),Y.return();if(z.o6()&&z.videoData.S.Y)return z.logger.debug("rebuild playbackData for airplay"),Y.return(f_(z));if(qv(z))X=z.xd,rP(X.videoData)?!X.isAtLiveHead(X.getCurrentTime())&& X.s7()&&X.Iu.seekTo(Infinity,{s8:"seektimeline_peggedToLive",seekSource:34}):g.V0(X.videoData)&&X.getCurrentTime()<X.Ze()&&X.Iu.seekTo(X.Ze(),{s8:"seektimeline_outOfWindow"});else if(rP(z.videoData)){if(q=z.getCurrentTime()<z.Ze()-15,r=g.md(z.videoData)&&z.playerState.isPaused(),D=g.t(z.playerState,1024),X=z.xd,X.videoData.fd()&&uN(X.videoData)||D||!q&&!r||(r?(z.logger.debug("seek to head for live because of live-only"),z.seekTo(Infinity,{s8:"videoplayer_unpauseLiveOnly",seekSource:102})):(z.logger.debug("seek to min seekable for live because of out of window"), z.seekTo(z.Ze(),{s8:"videoplayer_outOfWindow",seekSource:102}))),!z.isAtLiveHead(void 0,!0)&&z.s7()&&(z.logger.debug("seek to head for live because pegged to live"),v={s8:"videoplayer_peggedToLive",seekSource:34},z.seekTo(Infinity,v)),g.t(z.playerState,256)&&z.videoData.P7&&z.xd.J8())return z.V3(j9(z.playerState,8,4)),Y.return()}else g.V0(z.videoData)&&z.getCurrentTime()<z.Ze()-0&&z.seekTo(z.Ze(),{s8:"videoplayer_outOfWindow"});g.t(z.playerState,4)&&g.t(z.playerState,16)&&z.V3(j9(z.playerState,9, 4));if($1(z,Q))return eV4(z),Y.return();F7r(z);g.LX(Y)})}; g.A.k6=function(Z){this.logger.debug("reset media source");Z&&this.U8(new N5("qoe.restart",Z));this.V3(ru(this.playerState,2048));this.Ss();Z=this.videoData.Y&&D5(this.videoData.Y);var Q=this.mediaElement&&this.mediaElement.isView();Z||Q?(this.wr&&oFG(this.wr),this.Hx()):($1(this),this.playerState.isOrWillBePlaying()&&this.playVideo())}; g.A.L9=function(){if(!this.K0)return[];var Z=ivD(this.jQ,this.K0,this.Qv());return this.K0.Y.L9(Z)}; g.A.AC=function(){if(!this.K0)return[];var Z=ivD(this.jQ,this.K0,this.Qv());return this.K0.Y.AC(Z)}; g.A.Qv=function(){var Z=this.iY?this.iY.Qv():EK(this.videoData)&&this.videoData.Y&&D5(this.videoData.Y)?this.videoData.R4?UK:QTd:UK;this.qk&&(Z=Z.compose(i9U));return Z}; g.A.BQ=function(){return this.K0?ivD(this.jQ,this.K0,this.Qv()):UK}; g.A.ya=function(){var Z=this.lY(),Q=this.lh.SP().videoId;return this.lh.X8.ya(Z)||this.lh.X8.ya(Q)}; g.A.PT=function(Z,Q,z){var K;if((K=this.NT().qoe)!=null){var b=Z.Y,q=g.m4(K.provider);g.dY(K,q,"vfi",[b===0?"":""+b,b===0?"A":"M"])}this.videoData.ew=Z;if(this.K0&&Q&&(Q=this.jQ,K=this.K0,K.Y.Y)){var r=K.Y.videoInfos[0].video.Y;b=r!==0&&Z.Y===r;q=RL()>r;r=Q.V("html5_dont_save_under_1080")&&r<1080;if(!b||!q&&!r){var D;b=PHx(Q,(D=K.Y)==null?void 0:D.videoInfos);D=Q.Iu.getPlaybackRate();D>1&&b&&(D=Ilx(Q.Yh.L,K.Y.videoInfos,D),Z.Y!==0&&D<Z.Y&&Q.Iu.setPlaybackRate(1));var v,Y;Z=g.o3[zL(Z)];D=((v=K.videoData.j)== null?void 0:(Y=v.video)==null?void 0:Y.Y)||0;g.CS("yt-player-quality",{quality:Z,previousQuality:D},31104E3);Q.Yh.schedule.policy.W=RL()>=480;if(Q.V("html5_exponential_memory_for_sticky")){v=Q.Yh.bY;Y=1;var X=X===void 0?!1:X;W3G(v,"sticky-lifetime");v.values["sticky-lifetime"]&&v.zt["sticky-lifetime"]||(v.values["sticky-lifetime"]=0,v.zt["sticky-lifetime"]=0);X&&hC(v,"sticky-lifetime")>.0625&&(Y=v.zt["sticky-lifetime"]*2);v.values["sticky-lifetime"]+=1*Math.pow(2,v.Y/Y);v.zt["sticky-lifetime"]=Y; v.W.start()}if(Q.V("html5_perf_cap_override_sticky")){X=Q.S;v=Q.V("html5_perserve_av1_perf_cap");v=v===void 0?!1:v;if(v===void 0?0:v){Y=pY();Q=g.n(Object.keys(Y));for(Z=Q.next();!Z.done;Z=Q.next())Z=Z.value,Z.indexOf("1")!==0&&delete Y[Z];g.CS("yt-player-performance-cap",Y,2592E3)}else g.H6("yt-player-performance-cap");JJD(v);if(v){v=g.n(IW.keys());for(Y=v.next();!Y.done;Y=v.next())Y=Y.value,Y.startsWith("1")||IW.delete(Y);v=g.n(LP.values());for(Y=v.next();!Y.done;Y=v.next())Y=Y.value,Y.startsWith("1")|| LP.delete(Y);v=g.n(X.keys());for(Y=v.next();!Y.done;Y=v.next())Y=Y.value,Y.startsWith("1")||X.delete(Y)}else IW.clear(),LP.clear(),X.clear()}}}this.wr&&(X=this.wr,z=z||"",X.policy.Y?oi(X.j.Y,z):oi(X.Y.L,z));this.rP()}; g.A.getUserPlaybackQualityPreference=function(){return this.videoData.S&&!this.videoData.S.Y?zL(this.videoData.ew):Qy[RL()]}; g.A.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()}; g.A.setUserAudio51Preference=function(Z,Q){this.getUserAudio51Preference()!==Z&&(this.pN("toggle51",{pref:Z}),g.CS("yt-player-audio51",Z,Q?31536E3:2592E3),this.ED())}; g.A.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()}; g.A.setProximaLatencyPreference=function(Z){var Q=this.getProximaLatencyPreference();this.pN("proxima",{pref:Z});g.CS("yt-player-proxima-pref",Z,31536E3);Q!==Z&&(Z=this.xd,Z.qB=!0,Z.Iu.seekTo(Infinity,{s8:"seektimeline_proximaSeekToHead",seekSource:34}))}; g.A.getProximaLatencyPreference=function(){var Z;return(Z=CY())!=null?Z:0}; g.A.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; g.A.GM=function(){this.videoData.videoId?this.lh.GM(this.videoData):this.pN("povid",{})}; g.A.eT=function(){this.videoData.videoId?this.lh.eT(this.videoData):this.pN("piavid",{})}; g.A.rP=function(){if(!this.FI()&&!g.t(this.playerState,128)&&this.videoData.S){if(this.videoData.S.Y)S0(this);else{var Z=m7(this),Q=this.videoData;a:{var z=this.videoData.zJ;if(Z.Y){for(var K=g.n(z),b=K.next();!b.done;b=K.next()){b=b.value;var q=b.getInfo(),r=g.o3[q.video.quality];if((!Z.S||q.video.quality!=="auto")&&r<=Z.Y){z=b;break a}}z=z[z.length-1]}else z=z[0]}Q.CN=z;aau(this,Z.reason,xv4(this,this.videoData.CN))}if(this.V("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.xd.T= !1,this.playVideo()}}; g.A.Wu=function(Z,Q){if(this.FI()||g.t(this.playerState,128))return!1;var z,K=!((z=this.videoData.S)==null||!z.Y);z=K&&Q?this.getCurrentTime()-this.Ry():NaN;if(this.Yh.experiments.XI("html5_record_audio_format_intent")){var b=this.NT();if(b.qoe){b=b.qoe;var q=[Z.Qw.id,isNaN(z)?"m":"t"];g.dY(b,g.m4(b.provider),"afi",q)}}if(K)return Q&&(K=uC9(this.xd),this.pN("aswh",{id:Z.id,xtags:Z.xtags,bh:K.toFixed(3)})),this.wr.setAudioTrack(Z,z,Q),!0;if(RV9(this)){a:{Q=this.mediaElement.audioTracks();for(K=0;K< Q.length;++K)if(z=Q[K],z.label===Z.Qw.getName()){if(z.enabled){Q=!1;break a}Q=z.enabled=!0;break a}Q=void 0}Q&&this.pN("hlsaudio",{id:Z.id})}else{a:if(Q=this.videoData,Q.W&&!sZ(Q.W)||Z===Q.dl||!Q.zJ||Q.zJ.length<=0)Q=!1;else{K=g.n(Q.zJ);for(z=K.next();!z.done;z=K.next()){z=z.value;if(!(z instanceof b8)){Q=!1;break a}b=Z.Qw.getId();z.j&&(gtx(z.j,b),z.zW=null)}Q.dl=Z;Q=!0}Q&&$1(this)&&(this.publish("internalaudioformatchange",this.videoData,!0),this.pN("hlsaudio",{id:Z.id}))}return!0}; g.A.getAvailableAudioTracks=function(){return g.V0(this.videoData)&&this.jf?vwM(this.jf).getAvailableAudioTracks():this.videoData.getAvailableAudioTracks()}; g.A.getAudioTrack=function(){if(RV9(this)){var Z=pyX(this);if(Z)return Z}return this.videoData.getAudioTrack()}; g.A.Ye=function(){if(this.videoData.V("html5_trigger_loader_when_idle_network")&&!this.videoData.fd()&&Qa(this.videoData)){var Z;(Z=this.wr)!=null&&Z.MR()}}; g.A.UY=function(){if(l8(this.videoData)&&this.videoData.V("html5_gapless_append_early")){var Z;(Z=this.wr)!=null&&Z.MR()}}; g.A.Sd=function(Z){Z=Z===void 0?!1:Z;if(this.wr){var Q=this.wr,z=Q.Sd;var K=this.videoData;K=K.V("html5_ssdai_use_post_for_media")&&K.enableServerStitchedDai?!1:AP(K)&&K.PN&&!K.isAd();z.call(Q,K,Z)}}; g.A.Ss=function(Z){Z=Z===void 0?!1:Z;this.Tf&&(this.logger.debug("remove media source"),mjX(this.Tf),this.Sd(Z),this.Tf.dispose(),this.Tf=null)}; g.A.NE=function(){return this.Tf}; g.A.iT=function(Z,Q,z,K){function b(r){try{Bj4(q,r,Q,z)}catch(D){g.CO(D),q.handleError(new N5("fmt.unplayable",{msi:"1",ename:D&&typeof D==="object"&&"name"in D?String(D.name):void 0},1))}} var q=this;Q=Q===void 0?!1:Q;z=z===void 0?!1:z;O_f(this,K===void 0?!1:K);this.Tf=Z;this.jc()&&e8(this.Tf)==="open"?b(this.Tf):fmu(this.Tf,b)}; g.A.QM=function(Z){this.logger.debug("onNeedKeyInfo");this.qx.set(Z.initData,Z);this.iY&&(this.iY.QM(Z),this.V("html5_eme_loader_sync")||this.qx.remove(Z.initData))}; g.A.pT=function(Z){this.videoData.mK=g.lJ("auto",Z,!1,"u");S0(this)}; g.A.W_=function(Z){var Q=Z.reason,z=Z.Y.info,K=Z.token,b=Z.videoId,q=this.NT(b),r=g.V0(this.videoData)?q.getVideoData():this.videoData;if(z!==r.W){var D=!r.W;r.W=z;Q!=="m"&&Q!=="t"&&(Q=D?"i":"a");var v=Q==="m"||Q==="t";this.Yh.experiments.XI("html5_refactor_sabr_audio_format_selection_logging")?this.r5=new dsx(r,z,Q,"",K,b):q.xf(new dsx(r,z,Q,"",K));this.publish("internalaudioformatchange",r,!D&&v)}this.xd.W_(Z.Y.index)}; g.A.Af=function(Z){this.publish("localmediachange",Z)}; g.A.mC=function(Z){Z=Z===void 0?{}:Z;var Q;(Q=this.wr)==null||Q.mC(this.Yh,Zu(this.videoData),Z)}; g.A.Sg=function(){return this.aX.Sg()}; g.A.oQ=function(Z){this.U8(new N5("staleconfig",{reason:Z}))}; g.A.handleError=function(Z){this.aX.handleError(Z)}; g.A.Va=function(){return this.aX.Va()}; g.A.s1=function(Z){this.xd.s1(Z)}; g.A.Hx=function(Z,Q,z){Z=Z===void 0?!1:Z;Q=Q===void 0?!1:Q;z=z===void 0?!1:z;var K=this,b,q,r;return g.C(function(D){if(D.Y==1){K.wr&&K.wr.WL();K.wr&&K.wr.FI()&&L_(K);if(K.V("html5_enable_vp9_fairplay")&&K.LZ()&&(b=K.videoData.Y)!=null)for(var v in b.Y)b.Y.hasOwnProperty(v)&&(b.Y[v].Y=null,b.Y[v].S=!1);K.V3(ru(K.playerState,2048));K.V("html5_ssap_keep_media_on_finish_segment")&&g.V0(K.videoData)?K.publish("newelementrequired",z):K.publish("newelementrequired");return Z?g.P(D,f_(K),2):D.O$(2)}K.videoData.fd()&& ((q=K.wr)==null?0:q.P7)&&!qv(K)&&((r=K.isAtLiveHead())&&rP(K.videoData)?K.seekTo(Infinity,{s8:"videoPlayer_getNewElement"}):K.videoData.Da&&K.wr&&(v=K.wr,v.kh.fd&&(v.kh.Da||v.kh.W||v.kh.isPremiere?(v.seek(0,{s8:"loader_resetSqless"}),v.videoTrack.T=!0,v.audioTrack.T=!0,v.videoTrack.L=!0,v.audioTrack.L=!0):LD(v.kh)&&wa(v))));Q&&K.seekTo(0,{seekSource:105});g.t(K.playerState,8)&&(K.V("html5_ssap_keep_media_on_finish_segment")&&g.V0(K.videoData)?K.playVideo(!1,z):K.playVideo());g.LX(D)})}; g.A.tS=function(Z){this.pN("hgte",{ne:+Z});this.videoData.X=!1;Z&&this.Hx();this.wr&&oFG(this.wr)}; g.A.cQ=function(Z){this.pN("newelem",{r:Z});this.Hx()}; g.A.pauseVideo=function(Z){Z=Z===void 0?!1:Z;if((g.t(this.playerState,64)||g.t(this.playerState,2))&&!Z)if(g.t(this.playerState,8))this.V3(j9(this.playerState,4,8));else if(this.vL())$1(this);else return;g.t(this.playerState,128)||(Z?this.V3(ru(this.playerState,256)):this.V3(j9(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.md(this.videoData)&&this.wr&&I_(this,!1)}; g.A.stopVideo=function(){this.pauseVideo();this.wr&&(I_(this,!1),this.wr.Sm())}; g.A.RR=function(Z,Q){Z=Z===void 0?!1:Z;Q=Q===void 0?!1:Q;if(this.jc()&&Q){var z;(z=this.mediaElement)==null||z.RR()}else{var K;(K=this.mediaElement)==null||K.stopVideo()}J8(this);L_(this);g.t(this.playerState,128)||(Z?this.V3(Ak(Ak(ru(this.playerState,4),8),16)):this.V3(qy(this.playerState)));this.videoData.videoId&&this.Yh.c7.remove(this.videoData.videoId)}; g.A.seekTo=function(Z,Q){Q=Q===void 0?{}:Q;this.logger.debug(function(){return"SeekTo "+Z+", "+JSON.stringify(Q)}); g.t(this.playerState,2)&&$1(this);Q.vxg&&this.V3(ru(this.playerState,2048));Q.seekSource!==58&&Q.seekSource!==60||!this.V("html5_update_vss_during_gapless_seeking")||z2M(this.NT(),Q.seekSource);this.xd.seekTo(Z,Q);this.Rq.sync()}; g.A.VO=function(Z){this.rq.W.wG();g.t(this.playerState,32)||(this.V3(ru(this.playerState,32,Z==null?void 0:Z.seekSource)),g.t(this.playerState,8)&&this.pauseVideo(!0),this.publish("beginseeking",this));this.E8()}; g.A.OC=function(Z){Z=Z==null?void 0:Z.seekSource;g.t(this.playerState,32)?(this.V3(j9(this.playerState,16,32,Z)),this.publish("endseeking",this)):g.t(this.playerState,2)||this.V3(ru(this.playerState,16,Z));this.rq.W.Bd(this.videoData,this.playerState.isPaused())}; g.A.qY=function(Z){this.OC(Z)}; g.A.hX=function(){this.publish("SEEK_COMPLETE")}; g.A.Ym=function(){this.publish("onAbnormalityDetected")}; g.A.H_=function(Z){var Q=this.lh,z=this.videoData.clientPlaybackNonce,K=this.playerType;if(Z.scope===4){var b=Z.type;if(b){var q=Q.IT(),r=q.getVideoData().clientPlaybackNonce;K===1&&(r=z);(Q=Oru(Q,r))?(z=Q.getVideoData())&&(Z.writePolicy===2&&z.sabrContextUpdates.has(b)||z.sabrContextUpdates.set(b,Z)):q.pN("scuset",{ncpf:"1",ccpn:r,crcpn:z})}else g.CO(Error("b/380308491: contextUpdateType is undefined"))}}; g.A.mO=function(){if(this.playerType===2)return this.lh.mO("")}; g.A.getCurrentTime=function(){return this.xd.getCurrentTime()}; g.A.pQ=function(){return this.xd.pQ()}; g.A.XJ=function(){return this.xd.XJ()}; g.A.Mm=function(Z){return this.jf&&(Z=Z||this.jf.lw())?bZ(this.jf,Z):this.XJ()}; g.A.GT=function(){return this.xd.GT()}; g.A.getPlaylistSequenceForTime=function(Z){return this.videoData.getPlaylistSequenceForTime(Z-this.Ry())}; g.A.g_=function(){var Z=NaN;this.mediaElement&&(Z=this.mediaElement.g_());return Z>=0?Z:this.getCurrentTime()}; g.A.RC=function(){var Z;return((Z=this.videoData.Y)==null?0:Z.RC)?this.videoData.Y.RC(this.getCurrentTime()-this.Ry()):this.mediaElement&&(Z=this.mediaElement.Vd())&&(Z=Z.getTime(),!isNaN(Z))?Z/1E3+this.getCurrentTime():NaN}; g.A.getDuration=function(Z){return g.V0(this.videoData)&&this.jf?Z?Dw4(this.jf,Z):lg(this.jf):this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.Ry():this.TJ()?this.TJ():0}; g.A.X6=function(){var Z=new DMf;if(this.wr){var Q=this.Yh.schedule,z=this.Yh.aT();z=z===void 0?!1:z;Z.Fd=Q.P7;Z.ub=Q.Du;Z.bandwidthEstimate=TK(Q);if(z){z=(Q.X.Wx()*1E3).toFixed();var K=(Q.KN.Wx()*1E3).toFixed(),b=X4(Q).toFixed(2),q=((Q.T.Wx()||0)*1E9).toFixed(2),r=Q.S.Wx().toFixed(0),D=Q.c7.Wx().toFixed(0),v=Q.U.percentile(.5).toFixed(2),Y=Q.U.percentile(.92).toFixed(2),X=Q.U.percentile(.96).toFixed(2),S=Q.U.percentile(.98).toFixed(2);Q.Y?Q.Y.reset():Q.Y=new ba;Q.Y.add(Q.JG);Q.Y.add(Q.interruptions.length); for(var T=0,f=Q.interruptions.length-1;f>=0;f--){var h=Q.interruptions[f];Q.Y.add(h-T);T=h}T=0;for(f=Q.W.length-1;f>=0;f--){h=Q.W[f];var m=h.stamp/36E5;Q.Y.add(m-T);T=m;Q.Y.add(h.net/1E3);Q.Y.add(h.max)}Q=Q.Y.pZ();Z.Y={ttr:z,ttm:K,d:b,st:q,bw:r,abw:D,v50:v,v92:Y,v96:X,v98:S,"int":Q}}SHr(this.wr,Z)}else this.mediaElement&&(Z.tC=Zl(this.mediaElement));Z.Fd=this.Fd;Z.ub=this.ub;Z.S=this.isAtLiveHead()&&this.isPlaying()?L7n(this):NaN;return Z}; g.A.xp=function(Z,Q){this.ub+=Z;this.Fd+=Q}; g.A.Yk=function(){return this.mediaElement?g.md(this.videoData)?1:IG(this.videoData)?this.isAtLiveHead()||this.s7()?1:this.xd.Yk():this.mediaElement.Yk():0}; g.A.yC=function(){var Z=this.getCurrentTime();if(this.iY){var Q="IT/"+(this.iY.Y.getInfo()+"/"+zL(this.Qv()));Q+="/"+this.iY.getInfo()}else Q="";var z=this.isGapless(),K=this.dV(),b=this.DM(),q=g.cy(this),r=this.getPlayerState(),D=this.getPlaylistSequenceForTime(this.getCurrentTime());a:{var v=0;var Y="";if(this.y3){if(this.y3.qw){Y="D,";break a}v=this.y3.NJ();Y=this.y3.lw().substring(0,4)}else this.jf&&(v=this.jf.NJ(),Y=this.jf.lw().substring(0,4));v>0?(v="AD"+v+", ",Y&&(v+=Y+", "),Y=v):Y=""}return{currentTime:Z, KA:Q,isGapless:z,dV:K,n7:b,by7:q,playerState:r,x8p:D,Ss7:this.yh,XO:Y,CI7:this.Aq()}}; g.A.gy=function(Z){var Q={};if(Z===void 0?0:Z){Object.assign(Q,this.NT().gy());this.mediaElement&&(Object.assign(Q,this.mediaElement.gy()),Object.assign(Q,this.Aq()));this.wr&&Object.assign(Q,this.wr.gy());this.iY&&(Q.drm=JSON.stringify(this.iY.gy()));Q.state=this.playerState.state.toString(16);g.t(this.playerState,128)&&(Q.debug_error=JSON.stringify(this.playerState.wm));this.Um()&&(Q.prerolls=this.wl.join(","));this.videoData.kL&&(Q.ismb=this.videoData.kL);this.videoData.latencyClass!=="UNKNOWN"&& (Q.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(Q.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)Q.is_mosaic=1;this.videoData.cotn&&(Q.is_offline=1,Q.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(Q.playerResponseCpn=this.videoData.playerResponseCpn);this.lh.isOrchestrationLeader()&&(Q.leader=1);this.videoData.isLivePlayback&&(this.videoData.Y&& $Q(this.videoData.Y)&&(Q.segduration=$Q(this.videoData.Y)),Z=this.xd,Q.lat=Z.K?J9n(Z.K.W):0,Q.liveutcstart=this.videoData.liveUtcStartSeconds);Q.relative_loudness=this.videoData.CM.toFixed(3);if(Z=g.cy(this))Q.optimal_format=Z.video.qualityLabel;Q.user_qual=RL();Q.release_version="youtube.player.web_20250219_01_RC00";g.V0(this.videoData)&&this.jf&&(Q.ssap=f1(this.jf))}Q.debug_videoId=this.videoData.videoId;return Q}; g.A.addCueRange=function(Z){this.Mz([Z])}; g.A.removeCueRange=function(Z){this.Rq.Pk([Z])}; g.A.yV=function(){this.Rq.sync()}; g.A.Y1=function(Z,Q){return this.Rq.Y1(Z,Q)}; g.A.Mz=function(Z,Q){this.Rq.df(Z,Q)}; g.A.D6=function(Z){this.Rq.Pk(Z)}; g.A.FH=function(Z){var Q=this.Rq;Z.length<=0||Q.FI()||(Z=Q.Y,Z.array.sort(Z.Y))}; g.A.mL=function(){return this.Rq.mL()||[]}; g.A.Ad=function(){return this.Wm}; g.A.o6=function(){return this.visibility.o6()}; g.A.zw=function(){this.mediaElement&&this.mediaElement.zw()}; g.A.HyJ=function(){h8(this)}; g.A.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.A.Sk=function(Z){var Q=Z.target.bJ();if(this.mediaElement&&this.mediaElement.bJ()&&this.mediaElement.bJ()===Q){Zy9(this,Z.type);switch(Z.type){case "error":var z=z6(this.mediaElement)||"",K=this.mediaElement.Fl();if(z==="capability.changed"){this.V("html5_restart_on_capability_change")?(this.pN("capchg",{msg:K}),this.Hx(!0)):f_(this);return}if(this.mediaElement.hasError()&&(LK4(this.aX,z,{msg:K})||g.V0(this.videoData)&&this.jf&&(K=this.playerState.wm,this.jf.handleError(z,K==null?void 0:K.dH))))return; if(this.isBackground()&&this.mediaElement.qe()===4){this.RR();n_(this,"unplayable");return}break;case "durationchange":z=this.mediaElement.getDuration();isFinite(z)&&(!this.Tf||z>0)&&z!==1&&this.bN(z);break;case "ratechange":this.wr&&this.wr.setPlaybackRate(this.mediaElement.getPlaybackRate());h29(this.Rq);this.NT().onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":zqG(this);this.publish("onLoadedMetadata");ukd(this);z=this.RC();this.videoData.sD&&(this.videoData.sD=z);break; case "loadstart":ukd(this);break;case "progress":case "suspend":this.E8();this.publish("onLoadProgress",this,this.Yk());break;case "playing":this.rq.vz("plev");this.Y2&&!qv(this)&&(this.Y2=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{s8:"videoplayer_onPlaying"})));break;case "timeupdate":z=this.mediaElement&&!this.mediaElement.getCurrentTime();K=this.mediaElement&&this.mediaElement.oX()===0;if(z&&(!this.Ti||K))return;this.Ti=this.Ti||!!this.mediaElement.getCurrentTime(); kTn(this);this.E8();if(!this.mediaElement||this.mediaElement.bJ()!==Q)return;this.publish("onVideoProgress",this,this.getCurrentTime());break;case "waiting":if(this.mediaElement.jG().length>0&&this.mediaElement.gm().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.wr)return;this.V("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.oX()>2||!this.mediaElement.isSeeking()&&DR(this.mediaElement.gm(),this.mediaElement.getCurrentTime()))&& (z=this.mediaElement.gy(),z.bh=Zl(this.mediaElement).toFixed(3),this.pN("uwe",z));g.V0(this.videoData)&&this.jf&&zLG(this.jf,this.mediaElement.getCurrentTime());break;case "resize":zqG(this);this.videoData.j&&this.videoData.j.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.ju&&g.t(this.playerState,8)&&!g.t(this.playerState,1024)&&this.getCurrentTime()===0&&g.Lc){n_(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.bJ()=== Q){Z_0(this.xd,Z,this.jf||void 0);this.publish("videoelementevent",Z);Q=this.playerState;K=this.f8;var b=this.mediaElement;z=this.videoData.clientPlaybackNonce;var q=g.V0(this.videoData)&&this.jf?lg(this.jf):void 0;if(!g.t(Q,128)){var r=Q.state;b=b?b:Z.target;var D=b.getCurrentTime();if(!g.t(Q,64)||Z.type!=="ended"&&Z.type!=="pause"){q=q||b.getDuration();q=b.isEnded()||D>1&&Math.abs(D-q)<1.1;var v=Z.type==="pause"&&b.isEnded();D=Z.type==="ended"||Z.type==="waiting"||Z.type==="timeupdate"&&!g.t(Q, 4)&&!FC(K,D);if(v||q&&D)b.CA()>0&&b.bJ()&&(r=14);else switch(Z.type){case "error":z6(b)&&(r|=128);break;case "pause":g.t(Q,256)?(r^=256)||(r=64):g.t(Q,32)||g.t(Q,2)||g.t(Q,4)||(r=4,g.t(Q,1)&&g.t(Q,8)&&(r|=1));break;case "playing":D=r;r=(r|8)&-1093;D&4?(r|=1,b$(K,b,!0)):FC(K,b.getCurrentTime())&&(r&=-2);g.t(Q,1)&&b$(K,b)&&(r|=1);break;case "seeking":r|=16;g.t(Q,8)&&(r|=1);r&=-3;break;case "seeked":r&=-17;b$(K,b,!0);break;case "waiting":g.t(Q,2)||(r|=1);b$(K,b);break;case "timeupdate":D=g.t(Q,16),q= g.t(Q,4),(g.t(Q,8)||D)&&!q&&FC(K,b.getCurrentTime())&&(r=8),b$(K,b)&&(r|=1)}}K=r;r=null;K&128&&(r=Z.target,b=z6(r),D=1,b?(b==="capability.changed"&&(D=2),q="GENERIC_WITHOUT_LINK",v=r.gy(),v.mediaElem="1",/AUDIO_RENDERER/.test(r.Fl())&&(q="HTML5_AUDIO_RENDERER_ERROR"),r={errorCode:b,errorMessage:g.tv[q]||"",Rw:q,TR:d8(v),dH:D,cpn:Q.wm?Q.wm.cpn:""}):r=null,r&&(r.cpn=z));Q=qy(Q,K,r)}!g.t(this.playerState,1)&&g.t(Q,1)&&sq4(this,"evt"+Z.type);this.V3(Q)}}}; g.A.DTh=function(Z){Z=Z.Y.availability==="available";Z!==this.Wm&&(this.Wm=Z,this.publish("airplayavailabilitychange"))}; g.A.Zdr=function(){var Z=(0,g.Nm)(),Q=this.mediaElement.o6();this.pN("airplay",{ia:Q});!Q&&!isNaN(this.lx)&&Z-this.lx<2E3||(this.lx=Z,Q!==this.o6()&&(Z=this.visibility,Z.Y!==Q&&(Z.Y=Q,Z.bz()),this.pN("airplay",{rbld:Q}),this.ED()),this.publish("airplayactivechange"))}; g.A.gI=function(Z){if(this.wr){var Q=this.wr,z=Q.W,K=Q.getCurrentTime(),b=Date.now()-z.U;z.U=NaN;z.pN("sdai",{adfetchdone:Z,d:b});Z&&!isNaN(z.T)&&z.j!==3&&ai(z.wr,K,z.T,z.L);z.policy.L?z.S=NaN:z.W=NaN;GU(z,4,z.j===3?"adfps":"adf");s0(Q)}}; g.A.Dx=function(){g.hN(this.Lu);this.Nc.stop();this.videoData.P7=!0;this.Yh.Q0=!0;this.Yh.sA=0;var Z=this.aX;if(Z.videoData.j){var Q=Z.B7.L,z=Z.videoData.j.Gf;Q.j.has(z)&&(Q.j.delete(z),lI(Q))}Z.Y.stop();this.h1();g.t(this.playerState,8)&&this.V3(Ak(this.playerState,65));this.vr=!1;QKu(this.NT());g.lR(this.HI);this.publish("playbackstarted");(Z=g.WG("yt.scheduler.instance.clearPriorityThreshold"))?Z():zS(0,0)}; g.A.h1=function(){var Z=this.lh.SP(),Q={},z={};!WO("pbs",this.rq.timerName)&&NX.measure&&NX.getEntriesByName&&(NX.getEntriesByName("mark_nr")[0]?ekX("mark_nr"):ekX());Z.videoId&&(Q.videoId=Z.videoId);Z.clientPlaybackNonce&&!this.V("web_player_early_cpn")&&(Q.clientPlaybackNonce=Z.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(z.isPausedOnLoad=!0);z.itag=Z.j?Number(Z.j.itag):-1;Z.IW&&(z.preloadType=String(this.tY?2:1));Q.liveStreamMode=oKY[f3(Z)];Q.playerInfo=z;this.rq.infoGel(Q); if(this.wr){Z=this.wr.timing;window&&window.performance&&window.performance.getEntriesByName&&(Z.S&&(Q=window.performance.getEntriesByName(Z.S),Q.length&&(Q=Q[0],Z.tick("vri",Q.fetchStart),Z.tick("vdns",Q.domainLookupEnd),Z.tick("vreq",Q.requestStart),Z.tick("vrc",Q.responseEnd))),Z.j&&(Q=window.performance.getEntriesByName(Z.j),Q.length&&(Q=Q[0],Z.tick("ari",Q.fetchStart),Z.tick("adns",Q.domainLookupEnd),Z.tick("areq",Q.requestStart),Z.tick("arc",Q.responseEnd))));Z=Z.ticks;for(var K in Z)Z.hasOwnProperty(K)&& this.rq.tick(K,Z[K])}}; g.A.ek=function(Z,Q,z){Z=(Z+(this.Pp===3?.3:0))/Q;Q=Math.floor(Z*4);Q>this.Pp&&(this.pN("vpq",{q:Q,cpn:z||this.videoData.clientPlaybackNonce,ratio:Z.toFixed(3)}),this.Pp=Q)}; g.A.yg=function(){this.Pp=-1}; g.A.E8=function(Z){var Q=this;Z=Z===void 0?!1:Z;if(this.mediaElement&&this.videoData){xM4(this.xd,this.isPlaying());var z=this.getCurrentTime();!this.wr||g.t(this.playerState,4)&&g.md(this.videoData)||g.t(this.playerState,32)&&Qa(this.videoData)||TP4(this.wr,z);this.V("html5_ssap_pacf_qoe_ctmp")&&this.playerType===2&&this.ek(z,this.videoData.lengthSeconds);z>5&&(this.xd.W=z);var K=g.Q6();K?g.Wk.FZ(this.zA):g.fA(this.zA);var b=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!b||Fo(this.videoData))&& !g.t(this.playerState,128)){var q=function(){if(Q.mediaElement&&!g.t(Q.playerState,128)){Q.Yh.aT()&&Zy9(Q,"pfx");var r=Q.getCurrentTime();Q.V("html5_buffer_underrun_transition_fix")&&(r-=Q.Ry());var D=Zl(Q.mediaElement),v=g.t(Q.playerState,8),Y=FC(Q.f8,r),X=iF4(Q.f8,r,(0,g.Nm)(),D);v&&Y?Q.V3(Ak(Q.playerState,1)):v&&X?(v=Q.getDuration(),Y=rP(Q.videoData),v&&Math.abs(v-r)<1.1?(Q.pN("setended",{ct:r,bh:D,dur:v,live:Y}),Q.mediaElement.rS()?(Q.logger.debug("seek to 0 because of looping"),Q.seekTo(0,{s8:"videoplayer_loop", seekSource:37})):Q.s0()):(Q.playerState.isBuffering()||sq4(Q,"progress_fix"),Q.V3(ru(Q.playerState,1)))):(v&&!Y&&!X&&r>0&&(v=(Date.now()-Q.t8)/1E3,Y=Q.getDuration(),r>Y-1&&Q.pN("misspg",{t:r.toFixed(2),d:Y.toFixed(2),r:v.toFixed(2),bh:D.toFixed(2)})),Q.playerState.isPaused()&&Q.playerState.isBuffering()&&Zl(Q.mediaElement)>5&&Q.V3(Ak(Q.playerState,1)));Q.E8()}}; this.mediaElement.jG().length===0?this.zA=K?g.Wk.Y8(q,100):g.$q(q,100):this.zA=K?g.Wk.Y8(q,500):g.$q(q,500)}this.videoData.Zu=z;this.jf&&this.jf.FU();!Z&&this.isPlaying()&&t09(this);WKG(this.jQ,this.K0,this.ES(),this.isBackground())&&S0(this);this.publish("progresssync",this,Z);b&&Fo(this.videoData)&&this.publish("onVideoProgress",this,this.getCurrentTime())}}; g.A.G6=function(){this.q8("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.A.DM=function(){return this.NT().DM()}; g.A.Dv=function(){return this.wr?this.wr.Dv():TK(this.Yh.schedule,!0)}; g.A.V3=function(Z){if(!g.Dl(this.playerState,Z)){this.logger.debug(function(){return"Setting state "+Z.toString()}); var Q=new g.gB(Z,this.playerState);this.playerState=Z;QqM(this);var z=!this.Fg.length;this.Fg.push(Q);var K=this.mediaElement&&this.mediaElement.isSeeking();K=Q.oldState.state===8&&!K;g.Xw(Q,1)&&K&&g.t(this.playerState,8)&&!g.t(this.playerState,64)&&this.wr&&(OUd(this.wr),this.mediaElement&&Zl(this.mediaElement)>=5&&ozM(this.jQ,this.K0)&&S0(this));(K=g.Xp(this.Yh.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.t(Z,1)&&(g.t(Z,8)||g.t(Z,16))?this.qL.start(K):this.qL.stop();(YC(Q,8)<0|| g.Xw(Q,1024))&&this.Nc.stop();!g.Xw(Q,8)||this.videoData.P7||g.t(Q.state,1024)||this.Nc.start();g.t(Q.state,8)&&YC(Q,16)<0&&!g.t(Q.state,32)&&!g.t(Q.state,2)&&this.playVideo();g.t(Q.state,2)&&IG(this.videoData)&&(this.bN(this.getCurrentTime()),this.E8(!0));g.Xw(Q,2)&&(this.YY(!0),this.Yh.aT()&&this.V("html5_sabr_parse_live_metadata_playback_boundaries")&&Qa(this.videoData)&&this.videoData.Y&&(K={minst:""+this.videoData.Y.Sb,cminst:""+(this.videoData.Y.Ze()+this.Ry()),maxst:""+this.videoData.Y.vk, hts:""+this.videoData.Y.SJ,cmaxst:""+(this.videoData.Y.TJ()+this.Ry())},this.pN("sabrSeekableBoundaries",K)));g.Xw(Q,128)&&this.RR();this.videoData.Y&&this.videoData.isLivePlayback&&!this.Fc&&(YC(Q,8)<0?FV4(this.videoData.Y):g.Xw(Q,8)&&this.videoData.Y.resume());kAf(this.xd,Q);K4n(this.NT(),Q);if(z&&!this.FI())try{for(var b=g.n(this.Fg),q=b.next();!q.done;q=b.next()){var r=q.value;L4G(this.Rq,r);this.publish("statechange",r)}}finally{this.Fg.length=0}}}; g.A.Xt=function(){this.rq.tick("qoes")}; g.A.F2=function(){this.xd.F2()}; g.A.qg=function(Z,Q,z,K){a:{var b=this.aX;K=K===void 0?"LICENSE":K;z=z.substring(0,256);var q=GZ(Q);Z==="drm.keyerror"&&this.iY&&this.iY.j.keys.length>1&&b.W<96&&(Z="drm.sessionlimitexhausted",q=!1);if(q)if(b.videoData.j&&b.videoData.j.video.isHdr())yAD(b,Z);else{if(b.Iu.q8(Z,Q,K,z),Tau(b,{detail:z}))break a}else b.U8(Z,{detail:z});Z==="drm.sessionlimitexhausted"&&(b.pN("retrydrm",{sessionLimitExhausted:1}),b.W++,la9(b.Iu))}}; g.A.r4h=function(){var Z=this,Q=g.Xp(this.Yh.experiments,"html5_license_constraint_delay"),z=ZT();Q&&z?(Q=new g.E6(function(){Z.rP();h8(Z)},Q),g.W(this,Q),Q.start()):(this.rP(),h8(this))}; g.A.Qz=function(Z){this.publish("heartbeatparams",Z)}; g.A.I0=function(Z){this.pN("keystatuses",kzn(Z));var Q="auto",z=!1;this.videoData.j&&(Q=this.videoData.j.video.quality,z=this.videoData.j.video.isHdr());if(this.V("html5_drm_check_all_key_error_states")){var K=uoG(Q,z);K=XC(Z)?xzf(Z,K):Z.W.includes(K)}else{a:{Q=uoG(Q,z);for(K in Z.Y)if(Z.Y[K].status==="output-restricted"){var b=Z.Y[K].type;if(Q===""||b==="AUDIO"||Q===b){K=!0;break a}}K=!1}K=!K}if(this.V("html5_enable_vp9_fairplay")){if(z)if(Z.T){var q;if((q=this.iY)==null?0:RW(q.Y))if((z=this.iY)== null)z=0;else{Q=q=void 0;b=g.n(z.j.values());for(var r=b.next();!r.done;r=b.next())r=r.value,q||(q=tyW(r,"SD")),Q||(Q=tyW(r,"AUDIO"));z.v8({sd:q,audio:Q});z=q==="output-restricted"||Q==="output-restricted"}else z=!K;if(z){this.pN("drm",{dshdr:1});yAD(this.aX);return}}else{this.videoData.Rd||(this.videoData.Rd=!0,this.pN("drm",{dphdr:1}),this.Hx(!0));return}var D;if((D=this.iY)==null?0:RW(D.Y))return}else if(D=Z.T&&K,z&&!D){yAD(this.aX);return}K||xzf(Z,"AUDIO")&&xzf(Z,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"), Z=kzn(Z),this.qk?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.V("html5_report_fatal_drm_restricted_error_killswitch")||this.q8("drm.keyerror",2,void 0,"info."+Z)):(this.qk=!0,this.U8(new N5("qoe.restart",Object.assign({},{retrydrm:1},Z))),S0(this),la9(this)))}; g.A.u3g=function(){if(!this.videoData.P7&&this.mediaElement&&!this.isBackground()){var Z="0";this.mediaElement.oX()>0&&Zl(this.mediaElement)>=5&&this.videoData.S&&this.videoData.S.Y&&(this.V3(ru(this.playerState,1)),sq4(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),Z="1");QqM(this);var Q=this.videoData.S;Z={restartmsg:Z,mfmt:!EK(this.videoData),mdrm:!(!(Q&&Q.videoInfos&&Q.videoInfos.length&&Q.videoInfos[0].NR)||this.iY),mfmtinfo:!this.videoData.j,prerolls:this.Um()?this.wl.join(","): "0"};if(this.iY){Q=this.iY;if(Q.j.size<=0){var z="ns;";Q.U||(z+="nr;");Q=z+="ql."+Q.S.length}else Q=kzn(Q.j.values().next().value),Q=d8(Q);Z.drmp=Q}var K;Object.assign(Z,((K=this.wr)==null?void 0:K.gy())||{});var b;Object.assign(Z,((b=this.mediaElement)==null?void 0:b.gy())||{});this.NT().U8("qoe.start15s",d8(Z));this.publish("loadsofttimeout")}}; g.A.bN=function(Z){this.videoData.lengthSeconds!==Z&&(this.videoData.lengthSeconds=Z,h8(this))}; g.A.YY=function(Z,Q){var z=this;Z=Z===void 0?!1:Z;if(!this.Md)if(WO("att_s","player_att")||kp("att_s",void 0,"player_att"),this.V("use_rta_for_player"))(function(){var b,q,r,D;return g.C(function(v){switch(v.Y){case 1:if(!(b=Z)){v.O$(2);break}return g.P(v,g.Itr(),3);case 3:b=!v.j;case 2:if(b)return v.return();g.nX(v,4);q=A99(z.NT());if(!q)throw Error();r={};return g.P(v,g.mFf((r.cpn=z.videoData.clientPlaybackNonce,r.encryptedVideoId=z.videoData.videoId||"",r),3E4),6);case 6:D=v.j;if(z.Md)throw Error(); if(!D.challenge)throw g.CO(Error("Not sending attestation ping; no attestation challenge string")),Error();z.Md=!0;var Y=[D.challenge];D.error?Y.push("r1c="+D.error):D.webResponse&&Y.push("r1a="+D.webResponse);var X;((X=D.adblockReporting)==null?void 0:X.reportingStatus)!==void 0&&Y.push("r6a="+D.adblockReporting.reportingStatus);var S;((S=D.adblockReporting)==null?void 0:S.broadSpectrumDetectionResult)!==void 0&&Y.push("r6b="+D.adblockReporting.broadSpectrumDetectionResult);q(Y.join("&"));kp("att_f", void 0,"player_att");g.m9(v,0);break;case 4:g.I0(v),kp("att_e",void 0,"player_att"),g.LX(v)}})})().then(function(){Q==null||Q()}); else{var K=new g.LPG(this.videoData);if("c1a"in K.D$&&!g.NP.isInitialized()){kp("att_wb",void 0,"player_att");this.WI===2&&Math.random()<.01&&g.CO(Error("Botguard not available after 2 attempts"));if(Z)return;if(this.WI<5){g.lR(this.d8);this.WI++;return}}(K=g.nHu(K))?(kp("att_f",void 0,"player_att"),r99(this.NT(),K),this.Md=!0):kp("att_e",void 0,"player_att")}}; g.A.Pr=function(Z){Z=Z===void 0?!1:Z;if(rP(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.s7()||g.md(this.videoData)))Z=this.getCurrentTime();else if(g.V0(this.videoData)&&this.jf){Z=this.jf;var Q=this.getCurrentTime();Z=(Z=rTx(Z,Q*1E3))?(Z.aq()-Z.xX())/1E3:0}else Z=this.TJ(Z);return Z}; g.A.IL=function(){return g.V0(this.videoData)?this.videoData.Ze():this.Ze()}; g.A.TJ=function(Z){return this.xd.TJ(Z===void 0?!1:Z)}; g.A.Ze=function(){return this.xd.Ze()}; g.A.Ry=function(){return this.xd?this.xd.Ry():0}; g.A.getStreamTimeOffset=function(){return this.xd?this.xd.getStreamTimeOffset():0}; g.A.G1=function(){var Z=0;this.Yh.V("web_player_ss_media_time_offset")&&(Z=this.getStreamTimeOffset()===0?this.Ry():this.getStreamTimeOffset());return Z}; g.A.setPlaybackRate=function(Z){var Q;this.playbackRate!==Z&&PHx(this.jQ,(Q=this.videoData.S)==null?void 0:Q.videoInfos)&&(this.playbackRate=Z,S0(this));this.playbackRate=Z;this.mediaElement&&this.mediaElement.setPlaybackRate(Z)}; g.A.getPlaybackRate=function(){return this.playbackRate}; g.A.getPlaybackQuality=function(){var Z="unknown";if(this.videoData.j&&(Z=this.videoData.j.video.quality,Z==="auto"&&this.mediaElement)){var Q=this.wI();Q&&Q.videoHeight>0&&(Z=Os(Q.videoWidth,Q.videoHeight))}return Z}; g.A.isHdr=function(){return!!(this.videoData.j&&this.videoData.j.video&&this.videoData.j.video.isHdr())}; g.A.aP=function(){this.NT().aP()}; g.A.sendVideoStatsEngageEvent=function(Z,Q){var z=this.NT();z.Y?(z=MM(z.Y,"engage"),z.SJ=Z,z.send(Q)):Q&&Q()}; g.A.Ax=function(Z){return this.NT().Ax(Z)}; g.A.isAtLiveHead=function(Z,Q){Q=Q===void 0?!1:Q;return rP(this.videoData)&&(this.KW||Q)?this.xd.isAtLiveHead(Z):!1}; g.A.SS=function(){var Z=this.TJ(),Q=this.getCurrentTime(),z;(z=!rP(this.videoData))||(z=this.xd,z=!(z.Y&&z.Y.S));return z||this.s7()||isNaN(Z)||isNaN(Q)?0:Math.max(0,Z-Q)}; g.A.bv=function(Z){(this.KW=Z)||this.Nc.stop();this.videoData.Y&&(Z?this.videoData.Y.resume():FV4(this.videoData.Y));if(this.wr){var Q=this.videoData.V("html5_disable_preload_for_ssdai_with_preroll")&&this.d6()&&this.videoData.isLivePlayback;Z&&!Q?this.wr.resume():I_(this,!0)}g.t(this.playerState,2)||Z?g.t(this.playerState,512)&&Z&&this.V3(Ak(this.playerState,512)):this.V3(ru(this.playerState,512));Q=this.NT();Q.qoe&&(Q=Q.qoe,g.dY(Q,g.m4(Q.provider),"stream",[Z?"A":"I"]))}; g.A.JX=function(Z){Z={n:Z.name,m:Z.message};this.NT().U8("player.exception",d8(Z))}; g.A.YS=Qx(25);g.A.nC=Qx(52);g.A.BP=function(Z){this.NT().BP(Z)}; g.A.ke=function(Z){this.NT().ke(Z)}; g.A.Z6=function(Z){this.NT().Z6(Z)}; g.A.Iq=Qx(30);g.A.qa=Qx(35);g.A.o2=function(Z){this.NT().o2(Z)}; g.A.v6=function(){this.pN("hidden",{},!0)}; g.A.Aq=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.A.qK=function(){return this.wr?this.wr.qK():!0}; g.A.setLoop=function(Z){this.loop=Z;this.mediaElement&&!g.Nf(this.Yh)&&this.mediaElement.setLoop(Z);this.wr&&this.V("html5_loop_skip_set_end_of_stream")&&(Z?this.wr.policy.F7=!0:oFG(this.wr))}; g.A.rS=function(){return this.mediaElement&&!g.Nf(this.Yh)?this.mediaElement.rS():this.loop}; g.A.IQ=function(Z){this.pN("timestamp",{o:Z.toString()});this.xd.IQ(Z)}; g.A.bk=function(Z){this.rq.tick(Z)}; g.A.f0=function(Z){return this.rq.f0(Z)}; g.A.vz=function(Z){this.rq.vz(Z)}; g.A.pN=function(Z,Q,z){z=z===void 0?!1:z;this.NT().pN(Z,Q,z)}; g.A.rL=function(Z,Q,z){z=z===void 0?!1:z;this.NT().pN(Z,Q,z)}; g.A.U8=function(Z){this.NT().U8(Z.errorCode,d8(Z.details));Z=Z.errorCode;if(this.videoData.isLivePlayback&&(Z==="qoe.longrebuffer"||Z==="qoe.slowseek")||Z==="qoe.restart"){Z=this.wr?fdn(this.wr.videoTrack):{};var Q,z;this.pN("lasoe",Object.assign(this.wr?fdn(this.wr.audioTrack):{},(Q=this.Tf)==null?void 0:(z=Q.Y)==null?void 0:z.hM()));var K,b;this.pN("lvsoe",Object.assign(Z,(K=this.Tf)==null?void 0:(b=K.j)==null?void 0:b.hM()))}}; g.A.ul=function(Z,Q,z){this.NT().ul(Z,Q,z)}; g.A.fE=function(Z,Q,z,K,b,q,r,D){var v;if((v=this.videoData.Y)!=null&&v.isLive){var Y=Q.playerType===2?Q:Z,X=Z.videoData.videoId,S=Q.videoData.videoId;if(X&&S){v=this.NT();if(v.qoe){var T=v.qoe,f=Z.cpn,h=Q.cpn,m=Y.videoData.Sp,J=T.provider.videoData.clientPlaybackNonce,d=T.provider.videoData.videoId,G=h!==J&&S!==d;J=f!==J&&X!==d;T.reportStats();T.adCpn&&T.adCpn!==f||(T.adCpn=J?f:"",T.jJ=J?X:"",T.adFormat=J?m:void 0,Pb(T,2,q?4:b?2:0,h,S,K),T.reportStats(),T.adCpn=G?h:"",T.jJ=G?S:"",T.adFormat=G?m: void 0,Pb(T,2,q?5:b?3:1,f,X,z),T.reportStats())}z=Z.cpn;if(v.S.has(z)){if(b=v.S.get(z),oK(b,!0).send(),O0(b),z!==v.provider.videoData.clientPlaybackNonce){tFu(b);var R;(R=v.Y)==null||WTd(R);v.S.delete(z)}}else v.iI=v.provider.videoData.clientPlaybackNonce,v.iI&&v.Y&&(v.S.set(v.iI,v.Y),oK(v.Y).send(),O0(v.Y));R=Q.cpn;Y=Y.videoData;K-=this.G1();if(v.S.has(R)){K=v.S.get(R);var U=K.S&&isNaN(K.L)?U0(K):NaN;K=xdd(K,!1);isNaN(U)||(K.T=U);K.send()}else K=jKD(v,v.provider,Y,K),v.S.set(R,K),FTX(K,new g.gB(ru(new g.Kg, 8),new g.Kg)),BHd(K),(U=v.Y)==null||O0(U);v.iI=R;this.V("html5_unify_csi_server_stitched_transition_logging")?uEG(Z.cpn,Q.cpn,this.videoData.clientPlaybackNonce,Q.videoData,r,void 0,D):(U=this.videoData.clientPlaybackNonce,v=Q.videoData,Z=(Z.cpn===U?"video":"ad")+"_to_"+(Q.cpn===U?"video":"ad"),U={},v.K&&(U.cttAuthInfo={token:v.K,videoId:v.videoId}),r&&(U.startTime=r),BO(Z,U),g.oC({targetVideoId:v.videoId,targetCpn:Q.cpn,isSsdai:!0},Z),Ow("pbs",D!=null?D:(0,g.Nm)(),Z))}}else Q=this.logger,Q69(Q.tag, 5,"SSTEvent for nonSS",Q.j)}; g.A.ET=function(){var Z=this.lh,Q=Z.S6;Z.S6=[];return Q}; g.A.SF=function(Z){this.videoData.IJ=!0;this.U8(new N5("sabr.fallback",Z));this.Hx(!0)}; g.A.w3=function(Z,Q){this.videoData.g4=!0;if(Q===void 0||Q)this.U8(new N5("qoe.restart",Z)),this.Hx(!0);this.videoData.GJ()&&this.V("html5_reload_caption_on_ssdai_fallback")&&this.lh.E0()}; g.A.t2=function(Z){this.pN("sdai",{aftimeout:Z});this.U8(new N5("ad.fetchtimeout",{timeout:Z}))}; g.A.kN=function(Z,Q){this.pN("timelineerror",Z);Z=new N5("dai.timelineerror",Z);Q?this.q8("dai.timelineerror",1,"RETRYABLE_ERROR",d8(Z.details)):this.U8(Z)}; g.A.R$=function(){return g.m4(this.NT().provider)}; g.A.getPlayerSize=function(){return this.oB.getPlayerSize()}; g.A.KZ=function(){return this.oB.KZ()}; g.A.hx=function(){return this.rq}; g.A.bR=function(){return this.lh.bR()}; g.A.getVolume=function(){return this.lh.getVolume()}; g.A.mB=function(){return this.lh.mB()}; g.A.isMuted=function(){return this.lh.isMuted()}; g.A.Rf=function(){return this.lh.Rf()}; g.A.P1=function(){this.Fc=!0}; g.A.V=function(Z){return this.Yh.V(Z)}; g.A.ZN=function(Z,Q,z,K,b){this.pN("xvt",{m:Z,g:Q?1:0,tt:z?1:0,np:K?1:0,c:b})}; g.A.Gr=function(){var Z;(Z=this.wr)==null||Z.resume()}; g.A.d6=function(){return g.wX(this.wl,"ad")}; g.A.x6=function(){var Z=this.getCurrentTime(),Q=Z-this.Ry();var z=this.mediaElement?gQ(this.mediaElement.gm()):0;z=Math.floor(Math.max(z-Q,0))+100;var K;if(!this.V("html5_ssdai_disable_seek_to_skip")&&((K=this.wr)==null?0:K.AB(Q,this.TJ())))return this.pN("sdai",{skipad:1,ct:Q.toFixed(3),adj:0}),!0;var b;return((b=this.wr)==null?0:b.x6(Q,z))?(this.pN("sdai",{skipad:1,ct:Q.toFixed(3),adj:z.toFixed(3)}),Qa(this.videoData)&&this.wr.seek(Q+z,{seekSource:89,s8:"videoplayer_skipServerStitchedAd"}),zVr(this.xd, Z),!0):!1}; g.A.aT=function(){return this.Yh.aT()}; g.A.vH=function(){if(this.V("html5_generate_content_po_token"))return this.videoData.vT||"";this.lh.JA();return this.Yh.Q7||""}; g.A.YQ=function(){if(this.videoData.videoId)return this.videoData.w5}; g.A.lY=function(){return this.videoData.videoId}; g.A.cO=function(){return this.lh.Rk}; g.A.R5=function(){return this.vr}; g.A.r_=function(){return this.lh.r_()}; g.A.Pz=function(Z,Q){this.xd.Pz(Z,Q)}; g.A.eY=function(){this.xd.eY()}; g.A.AX=function(Z,Q){var z=this.V("html5_generate_content_po_token")?this.videoData:void 0;this.lh.AX(Z,Q,z)}; g.A.En=function(Z,Q){var z;(z=this.wr)==null||z.En(Z,Q)}; g.A.ZZ=function(){var Z=this.NE();return!!Z&&Z.ZZ()}; g.A.wp=function(){return this.jf}; g.A.y6=function(Z,Q){this.NT().y6(Z,Q)}; g.A.iU=function(){return this.NT().iU()}; g.A.SG=function(){return this.videoData.Ca}; g.A.dV=function(){return this.lh.dV()}; g.A.SW=function(){return this.lh.SW(this)}; g.A.Ur=function(){this.cC=!0}; g.A.Th=function(){return this.A3}; g.A.Fn=function(Z){var Q;(Q=this.wr)==null||Q.Fn(Z)};g.L(byG,V7);g.L(qUu,V7);g.A=qUu.prototype;g.A.seekToChapterWithAnimation=function(Z){var Q=this;if(g.Dy(this.api)&&!(Z<0)){var z=this.api.getVideoData(),K=z.Om;if(K&&Z<K.length){K=g.n(K);for(var b=K.next();!b.done;b=K.next())if(b=b.value,b.index===Z){rvd(this,b.startTime,b.title);return}}this.V("web_key_moments_markers")&&(z=z.BR)&&Z<z.length&&z.forEach(function(q,r){r===Z&&rvd(Q,q.timeRangeStartMillis,q.title)})}}; g.A.seekToTimeWithAnimation=function(Z,Q){g.Dy(this.api)&&rvd(this,Z,Q)}; g.A.setMacroMarkers=function(Z,Q){Q={playerOverlays:{playerOverlayRenderer:{decoratedPlayerBarRenderer:{decoratedPlayerBarRenderer:{playerBar:{multiMarkersPlayerBarRenderer:Q}}}}}};Z=Z.getVideoData();Z.getWatchNextResponse();Z&&Z.getWatchNextResponse()==null&&(B1(Z,{raw_watch_next_response:Q}),Z.publish("dataupdated"))}; g.A.changeMarkerVisibility=function(Z,Q,z){var K=this.api.getVideoData();if(K){var b=!1;if(Z)for(Z=g.n(Q),Q=Z.next();!Q.done;Q=Z.next()){Q=Q.value;var q=K.Qp;if(q&&!q.includes(Q))switch(z){case "CHANGE_MARKERS_VISIBILITY_RESTRICTION_MODE_NOT_OVERWRITE_SAME_TYPE":jqG(Q,K)||(b=!0,q=void 0,(q=K.Qp)==null||q.push(Q));break;case "CHANGE_MARKERS_VISIBILITY_RESTRICTION_MODE_NOT_OVERWRITE_ANY_TYPE":q.length===0&&(b=!0,q=void 0,(q=K.Qp)==null||q.push(Q));break;default:b=!0,q=void 0,(q=K.Qp)==null||q.push(Q)}}else for(z= g.n(Q),Z=z.next();!Z.done;Z=z.next())Z=Z.value,K.visibleOnLoadKeys.includes(Z)||g.lU(K.Qp,Z)&&(b=!0);b&&this.api.publish("updatemarkervisibility")}}; g.A.isSameMarkerTypeVisible=function(Z){var Q=this.api.getVideoData();return Q?jqG(Z,Q):!1};g.L(y9,V7); y9.prototype.updateMetadata=function(){var Z=this,Q=this.api.getVideoData();if(Q!=null&&Q.hH()){var z=this.api.N(),K=[],b="";if(!z.SJ){var q=g34(this);g.HM(z)&&q?(K=YUx(q.thumbnailDetails),q.album&&(b=SZ(q.album))):K=[{src:Q.uI("mqdefault.jpg")||"",sizes:"320x180",type:"image/jpeg"}]}var r;((r=this.api.getVideoData())==null?0:r.X)&&Xf9(this);Dpn(this);v3n(this);navigator.mediaSession.metadata=new MediaMetadata({title:Q.title,artist:Q.author,artwork:K,album:b});z=Q=null;g.IT(this.api)&&(Q=function(){Z.api.nextVideo()}, z=function(){Z.api.previousVideo()}); dj("nexttrack",Q);dj("previoustrack",z)}}; y9.prototype.gr=function(){navigator.mediaSession.playbackState="none";navigator.mediaSession.metadata=null;for(var Z=g.n("nexttrack previoustrack play pause seekbackward seekforward seekto".split(" ")),Q=Z.next();!Q.done;Q=Z.next())dj(Q.value,null);var z;((z=this.api.getVideoData())==null?0:z.X)&&navigator.mediaSession.setPositionState&&navigator.mediaSession.setPositionState({});V7.prototype.gr.call(this)};g.L(Nv,V7);Nv.prototype.W=function(Z){return Z.compositeEmbargo!==void 0}; Nv.prototype.gr=function(){V7.prototype.gr.call(this);this.j.clear()};g.L(hqd,V7);g.A=hqd.prototype;g.A.queueOfflineAction=function(Z,Q,z,K){var b=this,q,r;return g.C(function(D){return D.Y==1?(q=UU(b.api.W4()))?g.P(D,q.F_([Z],Q,z,K),3):D.O$(2):D.Y!=2&&(r=D.j,r.length)?D.return(r[0]):D.return(Promise.reject())})}; g.A.updateDownloadState=function(Z,Q){var z=UU(this.api.W4());return z?z.updateDownloadState(Z,Q):Promise.reject()}; g.A.pauseVideoDownload=function(Z){var Q=UU(this.api.W4());Q&&Q.BG(Z)}; g.A.resumeVideoDownload=function(Z){var Q=this,z;return g.C(function(K){return(z=UU(Q.api.W4()))?K.return(z.GG(Z)):K.return(Promise.reject())})}; g.A.isOrchestrationLeader=function(){return this.api.isOrchestrationLeader()}; g.A.refreshAllStaleEntities=function(Z){Z===void 0&&(Z=14400);var Q=UU(this.api.W4());return Q?Q.refreshAllStaleEntities(Z):Promise.reject()}; g.A.setUpPositionSyncInterval=function(Z){var Q=UU(this.api.W4());Q&&Q.setUpPositionSyncInterval(Z)};g.L(GT,V7);GT.prototype.getAvailableQualityDataAndMessaging=function(){return{qualityData:this.getAvailableQualityData(),qualityMessagingFormattedString:void 0}}; GT.prototype.getAvailableQualityData=function(){var Z=this.api.getVideoData();if(!Z)return[];var Q=[],z,K,b=(z=Z.getPlayerResponse())==null?void 0:(K=z.playabilityStatus)==null?void 0:K.paygatedQualitiesMetadata;K=(b==null?void 0:b.qualityDetails)||[];z=new Map;z=g.tn(K)&&!Array.isArray(K)?new Map(Object.entries(K)):new Map(K.map(function(r){return[r.key,r.value]})); if(K=b==null?void 0:b.restrictedAdaptiveFormats){b=[];K=g.n(K);for(var q=K.next();!q.done;q=K.next())q=q.value,q=bx(q.mimeType,q.quality,q.itag.toString(),q.width.toString(),q.height.toString(),q.qualityLabel),b.push(q);Z=g.zz(Z);gL(b);K=[];b=g.n(b);for(q=b.next();!q.done;q=b.next())q=q.value,jl(Z,q,this.api.N().L)===!0&&K.push(q);Q=Q.concat(LRW(K,!1,z))}Z=this.api.AC();Q=Q.concat(LRW(Z,!0,z));z=[];if(this.api.V("web_player_enable_premium_hbr_in_h5_api"))return Q=cvd(Q),n3W(Q),Q;Z={};Q=g.n(Q);for(b= Q.next();!b.done;b=Q.next())b=b.value,K=b.quality,Z[K]||(b.formatId=void 0,z.push(b),Z[K]=!0);return z};var Lo={},wLR=(Lo["internal-error"]=-1,Lo["non-recoverable-error"]=-2,Lo["api-disabled-by-application"]=-3,Lo["invalid-argument"]=-4,Lo["token-provider-invalid"]=-5,Lo);g.L(i5,V7);i5.prototype.eT=function(Z){var Q=this;if(I_G())if(!this.j&&this.Y){dpx(this,Z);try{this.Y.then(function(){yv9(Q,Z)},function(z){a_(z,"player_update"); Q.handleError(z,Z)})}catch(z){a_(z,"player_update_catch"),this.handleError(z,Z)}}else this.j?yv9(this,Z):this.api.pN("pf",{m:this.j?1:0, p:this.Y?1:0})}; i5.prototype.handleError=function(Z,Q){g.CO(Z);if(this.api.V("html5_enable_d6de4_cold_start_and_error")){var z=0;Z.mediaIntegrityErrorName?z||(z=wLR[Z.mediaIntegrityErrorName]):Z.code&&(z=Z.code());Q.w5={rjp:{code:z}}}};g.L(Py,g.x);Py.prototype.E$=function(Z){Z=Z?"Exit picture-in-picture":"Picture-in-picture";this.update({"data-title-no-tooltip":Z,title:Z});this.api.Bv()}; Py.prototype.onClick=function(){this.api.togglePictureInPicture()};g.L(R_,V7);R_.prototype.createButton=function(){var Z=this;this.button=new Py(this.api);g.W(this,this.button);this.api.E_(this.button);this.events.Z(this.api,"videodatachange",function(){N4d(Z)}); N4d(this)}; R_.prototype.setDocumentPictureInPicture=function(Z){this.api.MU().JP(Z);Z=this.api.m$();var Q=Cdx(this.api.W4());Q&&(Z?Q.load():Q.unload());this.api.publish("documentpictureinpicturechange")};g.L(G2D,V7);g.L(Hy,g.x);g.A=Hy.prototype;g.A.h8=function(){}; g.A.AO=function(){}; g.A.qp=function(){return!0}; g.A.j6g=function(){if(this.expanded){this.qB.show();var Z=this.S.element.scrollWidth}else Z=this.S.element.scrollWidth,this.qB.hide();this.Sp=this.Du+Z;g.vC(this.badge.element,"ytp-suggested-action-badge-expanded",this.expanded);this.badge.element.style.width=(this.expanded?this.Du:this.Sp)+"px";this.NB.start()}; g.A.TN=function(){this.badge.element.style.width=(this.expanded?this.Sp:this.Du)+"px";this.CN.start()}; g.A.Pj=function(){this.W&&this.J.logVisibility(this.badge.element,this.qp());this.jJ&&this.J.logVisibility(this.dismissButton.element,this.qp()&&this.b2())}; g.A.Ng=function(Z){this.P7=Z;p_(this);C_(this);this.VA()}; g.A.apg=function(){g.vC(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!0)}; g.A.b2=function(){return this.SJ||this.P7||!this.X}; g.A.VA=function(){this.qp()?this.U.show():this.U.hide();this.Pj()}; g.A.e4=function(){this.enabled=!1;this.VA()}; g.A.lU=function(Z){Z?this.jJ&&this.J.logClick(this.dismissButton.element):this.W&&this.J.logClick(this.badge.element)}; g.A.meJ=function(){this.VA()}; g.A.qAN=function(Z){this.F7=Z===1;this.VA();g.vC(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!1)}; g.A.KZ$=function(){g.vC(this.badge.element,"ytp-suggested-action-badge-fullscreen",this.J.isFullscreen());this.VA()};g.L(Mv,g.gV);Mv.prototype.Jh=function(){this.publish("size-change")}; Mv.prototype.focus=function(){this.content.focus()}; Mv.prototype.HA=function(){this.publish("back")};g.L(g.UB,Mv);g.A=g.UB.prototype;g.A.Mb=function(Z,Q){if(Q===void 0?0:Q)this.items.push(Z),this.menuItems.element.appendChild(Z.element);else{Q=g.Aj(this.items,Z,a_x);if(Q>=0)return;Q=~Q;g.q6(this.items,Q,0,Z);zB(this.menuItems.element,Z.element,Q)}Z.subscribe("size-change",this.ZV,this);this.menuItems.publish("size-change")}; g.A.Ne=function(Z){Z.unsubscribe("size-change",this.ZV,this);this.FI()||(g.lU(this.items,Z),this.menuItems.element.removeChild(Z.element),this.menuItems.publish("size-change"))}; g.A.ZV=function(){this.menuItems.publish("size-change")}; g.A.focus=function(){for(var Z=0,Q=0;Q<this.items.length;Q++){var z=this.items[Q].element;if(z.getAttribute("role")==="menuitemradio"){if(z.getAttribute("aria-checked")==="true"){Z=Q;break}}else break}this.items[Z].focus()}; g.A.cH=function(){return this.items.length};g.L(g.o_,g.CW);g.A=g.o_.prototype;g.A.show=function(){g.CW.prototype.show.call(this);this.hD()}; g.A.hide=function(){g.CW.prototype.hide.call(this);this.Y.length>1&&g.Wy(this)}; g.A.hD=function(){CMu(this);this.RT&&(PMx(this),g.L4(this.element,this.size))}; g.A.Jt=function(){var Z=this.Y.pop();RqW(this,Z,this.Y[this.Y.length-1],!0)}; g.A.YV=function(Z){if(!Z.defaultPrevented)switch(Z.keyCode){case 27:this.oT();Z.preventDefault();break;case 37:this.Y.length>1&&this.Jt();Z.preventDefault();break;case 39:Z.preventDefault()}}; g.A.focus=function(){this.Y.length&&this.Y[this.Y.length-1].focus()}; g.A.gr=function(){g.CW.prototype.gr.call(this);this.K&&this.K.dispose();this.T&&this.T.dispose()};g.L(V9,g.o_);V9.prototype.open=function(Z,Q){this.initialize(Z.items)&&this.Gz(Q,!!Q)}; V9.prototype.initialize=function(Z){g.OB(this.zy);if(Z===void 0||Z.length===0)return!1;var Q=Z.length;Z=g.n(Z);for(var z=Z.next();!z.done;z=Z.next())this.Mb(z.value,Q--);return!0}; V9.prototype.Mb=function(Z,Q){Z.menuNavigationItemRenderer?MWG(this,Z.menuNavigationItemRenderer,Q):Z.menuServiceItemRenderer&&UpG(this,Z.menuServiceItemRenderer,Q)};g.L(k1,Hy);g.A=k1.prototype;g.A.h8=function(Z){Z.target!==this.dismissButton.element&&Z.target!==this.overflowButton.element&&(this.lU(),this.onClickCommand&&this.J.hG("innertubeCommand",this.onClickCommand))}; g.A.AO=function(){this.enabled=!1;this.U.hide()}; g.A.qp=function(){return!!this.Y&&this.enabled}; g.A.onVideoDataChange=function(Z,Q){this.IA(Q);if(this.Y){this.SU();a:if(!this.isCounterfactual){var z,K,b;this.banner.update({title:(z=this.Y)==null?void 0:z.title,subtitle:(K=this.Y)==null?void 0:K.subtitle,metadata:(b=this.Y)==null?void 0:b.metadataText});var q;this.onClickCommand=g.V((q=this.Y)==null?void 0:q.onTap,Hc);var r;if(Z=g.V((r=this.Y)==null?void 0:r.onOverflow,Hc))this.T=g.V(Z,FwR);var D;if((D=this.Y)==null?0:D.thumbnailImage){var v,Y;r=((v=this.Y)==null?void 0:(Y=v.thumbnailImage)== null?void 0:Y.sources)||[];if(r.length===0)break a;this.thumbnailImage.update({url:r[0].url})}else{var X;if((X=this.Y)==null?0:X.thumbnailIconName){var S;this.thumbnailIcon.update({icon:(S=this.Y)==null?void 0:S.thumbnailIconName})}}var T;this.shouldShowOverflowButton=!((T=this.Y)==null||!T.shouldShowOverflowButton);var f;this.shouldHideDismissButton=!((f=this.Y)==null||!f.shouldHideDismissButton)}var h;this.banner.element.setAttribute("aria-label",((h=this.Y)==null?void 0:h.a11yLabel)||"");var m; this.Zu=(m=this.Y)==null?void 0:m.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;o3n(this)}}; g.A.J4r=function(){this.isVisible=!0;o3n(this)}; g.A.bLF=function(){this.isVisible=!1;o3n(this)}; g.A.Pj=function(){Hy.prototype.Pj.call(this);this.j&&this.J.logVisibility(this.banner.element,this.isVisible)}; g.A.lU=function(){Hy.prototype.lU.call(this,!1);this.j&&this.J.logClick(this.banner.element)}; g.A.Ig=function(Z){this.K||(this.K=new V9(this.J),g.W(this,this.K));var Q,z;if((Q=this.T)==null?0:(z=Q.menu)==null?0:z.menuRenderer)this.K.open(this.T.menu.menuRenderer,Z.target),Z.preventDefault()}; g.A.IA=function(){}; g.A.SU=function(){}; g.A.gr=function(){this.J.US("suggested_action_view_model");Hy.prototype.gr.call(this)};g.L(u5,k1); u5.prototype.IA=function(Z){var Q,z,K;this.productUpsellSuggestedActionViewModel=g.V((Q=Z.getWatchNextResponse())==null?void 0:(z=Q.playerOverlays)==null?void 0:(K=z.playerOverlayRenderer)==null?void 0:K.suggestedActionViewModel,gnn);var b;if((b=this.productUpsellSuggestedActionViewModel)==null?0:b.content){var q;this.Y=g.V((q=this.productUpsellSuggestedActionViewModel)==null?void 0:q.content,umz)}var r,D;if(this.j=!!((r=this.productUpsellSuggestedActionViewModel)==null?0:(D=r.loggingDirectives)==null? 0:D.trackingParams)){var v,Y;this.J.setTrackingParams(this.banner.element,((v=this.productUpsellSuggestedActionViewModel)==null?void 0:(Y=v.loggingDirectives)==null?void 0:Y.trackingParams)||null)}var X;this.isCounterfactual=!((X=this.productUpsellSuggestedActionViewModel)==null||!X.isCounterfactualServing)}; u5.prototype.SU=function(){var Z=[],Q,z=g.n(((Q=this.productUpsellSuggestedActionViewModel)==null?void 0:Q.ranges)||[]);for(Q=z.next();!Q.done;Q=z.next()){var K=Q.value;K&&(Q=Number(K.startTimeMilliseconds),K=Number(K.endTimeMilliseconds),isNaN(Q)||isNaN(K)||Z.push(new g.b6(Q,K,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.J.df(Z)};g.L(B44,V7);g.L(x1,V7);x1.prototype.onVideoDataChange=function(Z,Q){var z=this;if(!Va(Q)&&(Z==="newdata"&&VWu(this),this.j&&Z==="dataloaded")){var K;D7(sK(this.api.N(),(K=this.api.getVideoData())==null?void 0:g.B0(K)),function(b){var q=FRr(b);q&&(q=k2G(z,z.Y||q))&&z.api.setAudioTrack(q,!0);z.S&&(z.S=!1,wfW(z,b))})}}; x1.prototype.Na=function(){var Z=this;if(g.Nf(this.api.N())){var Q,z=g.la(this.api.N(),(Q=this.api.getVideoData())==null?void 0:g.B0(Q));return D7(qP(z),function(K){var b=Pq();RT(b,K);return Z.api.Na(b)})}return qP(this.api.Na())};g.L(g.Fk,g.Oq);g.A=g.Fk.prototype;g.A.open=function(){g.By(this.Kd,this.j)}; g.A.D3=function(Z){E3X(this);var Q=this.options[Z];Q&&(Q.element.setAttribute("aria-checked","true"),this.Wo(this.f4(Z)),this.S=Z)}; g.A.xS=function(Z){g.OB(this.j);for(var Q={},z=!1,K=0;K<Z.length;K++){var b=Z[K],q=this.options[b],r=b===this.S;r&&(z=!0);q&&q.priority===-K?(g.Uq(this.options[b],this.f4(b,!0)),delete this.options[b]):q=this.aU(b,-K,r);Q[b]=q;this.j.Mb(q,!0)}z||(this.S=null);Z=g.n(Object.keys(this.options));for(z=Z.next();!z.done;z=Z.next())this.options[z.value].dispose();this.options=Q}; g.A.aU=function(Z,Q,z,K){var b=this;z={B:"div",nN:["ytp-menuitem",K?"ytp-menuitem-with-footer":""],C:{tabindex:"0",role:"menuitemradio","aria-checked":z?"true":"false"},G:[{B:"div",nN:["ytp-menuitem-label"],W7:"{{label}}"}]};K&&(K={B:"div",D:"ytp-menuitem-footer",G:[K]},z.G?z.G.push(K):z.G=[K]);Q=new g.Oq(z,Q,this.f4(Z,!0));Q.listen("click",function(){b.oh(Z)}); return Q}; g.A.enable=function(Z){this.X?Z||(this.X=!1,this.kt(!1)):Z&&(this.X=!0,this.kt(!0))}; g.A.kt=function(Z){Z?this.Kd.Mb(this):this.Kd.Ne(this)}; g.A.zp=function(Z){this.publish("select",Z)}; g.A.oh=function(Z){this.zp(Z)}; g.A.f4=function(Z){return Z.toString()}; g.A.pR=function(Z){Z.defaultPrevented||Z.keyCode!==39||(this.open(),Z.preventDefault())}; g.A.gr=function(){this.X&&this.Kd.Ne(this);g.Oq.prototype.gr.call(this);for(var Z=g.n(Object.keys(this.options)),Q=Z.next();!Q.done;Q=Z.next())this.options[Q.value].dispose()};g.L(l_G,g.Fk);g.A=l_G.prototype;g.A.E$=function(){var Z=this.KF("Off");this.J.getPresentingPlayerType()!==2?(sXG(this),this.D3(this.K),this.Y&&(this.K===Z?this.Y="":this.setSleepTimerTimeLeft(this.Y)),this.T&&this.setVideoTimeLeft(this.T),this.enable(!0)):(this.xS([]),this.enable(!1))}; g.A.zp=function(Z){Zbd(this,Z);this.Kd.Jt()}; g.A.KF=function(Z){switch(Z){case "Off":return"Off";case "End of video":return"End of video";case "End of playlist":return"End of playlist";default:return(Z.toString()+" Minutes").toLowerCase()}}; g.A.onVideoDataChange=function(Z){Z==="dataloaded"&&sXG(this)}; g.A.aag=function(Z){this.J.logVisibility(this.element,Z)}; g.A.onClick=function(){this.J.logClick(this.element)}; g.A.resetSleepTimerMenuSettings=function(){Zbd(this,this.KF("Off"))}; g.A.setSleepTimerTimeLeft=function(Z){this.Y=Z;this.Wo(Z)}; g.A.setVideoTimeLeft=function(Z){this.T=Z;this.W.Wo(Z)};g.L(e0,V7);e0.prototype.resetSleepTimerMenuSettings=function(){this.menuItem&&this.menuItem.resetSleepTimerMenuSettings()}; e0.prototype.setSleepTimerTimeLeft=function(Z){this.menuItem&&this.menuItem.setSleepTimerTimeLeft(Z)}; e0.prototype.setVideoTimeLeft=function(Z){this.menuItem&&this.menuItem.setVideoTimeLeft(Z)};g.L(QX9,V7);g.L(g.EB,g.rV);g.A=g.EB.prototype;g.A.Z=function(Z,Q){this.W.Z(this.X,Z,Q,void 0,!this.Y)}; g.A.cancel=function(){this.S&&(this.S=!1,this.publish("dragend",0,0,null));this.j&&(this.j=!1,this.publish("hoverend",0,0,null),l5(this),wj(this))}; g.A.A_=function(Z){l5(this);this.Z(sU("move"),this.NH);this.Z(sU("out"),this.tE);this.Z("touchstart",this.xO);this.Y&&this.Z(sU("down"),this.fm);var Q=Z.target;Z=new g.Yv(Z.pageX,Z.pageY);this.j=!0;this.publish("hoverstart",Z.x,Z.y,Q);this.publish("hovermove",Z.x,Z.y,Q)}; g.A.NH=function(Z){var Q=Z.target;Z=new g.Yv(Z.pageX,Z.pageY);if(this.L){var z=this.L;this.L=null;if(z.relatedTarget===Q&&Xv(new g.Yv(z.pageX,z.pageY),Z))return}this.publish("hovermove",Z.x,Z.y,Q)}; g.A.tE=function(Z){var Q=new g.Yv(Z.pageX,Z.pageY),z=Z.relatedTarget;try{if(z&&g.bG(this.target,z)){this.L=Z;this.publish("hovermove",Q.x,Q.y,z);return}}catch(K){}l5(this);wj(this);this.j=!1;this.publish("hoverend",Q.x,Q.y,z)}; g.A.co7=function(Z){this.A_(Z);this.fm(Z)}; g.A.fm=function(Z){if(typeof Z.button!=="number"||Z.button===0){l5(this);this.W.Z(Z_(Z.target),sU("move"),this.FM$);this.W.Z(Z_(Z.target),sU("up"),this.jA);var Q=Z.target;if(g.Fv)this.Z("dragstart",this.VJ);else if(Z.preventDefault(),(g.tC||v$)&&Q)a:{for(var z=Q;z;){if(rrG(z)||z.getAttribute("tabindex")==="-1"){z.focus();break a}z=z.parentElement}Z_(Q).activeElement.blur()}this.S=!0;Z=new g.Yv(Z.pageX,Z.pageY);this.publish("dragstart",Z.x,Z.y,Q);this.publish("dragmove",Z.x,Z.y,Q)}}; g.A.VJ=function(Z){Z.preventDefault()}; g.A.FM$=function(Z){var Q=Z.target;Q===Z_(Z.target)&&(Q=null);Z=new g.Yv(Z.pageX,Z.pageY);this.publish("hovermove",Z.x,Z.y,Q);this.publish("dragmove",Z.x,Z.y,Q)}; g.A.jA=function(Z){l5(this);this.S=!1;var Q=ys(Z),z=Z.target;Z=new g.Yv(Z.pageX,Z.pageY);Q&&g.bG(this.target,Q)?(this.Z(sU("move"),this.NH),this.Z(sU("out"),this.tE),this.Z(sU("down"),this.fm),this.Z("touchstart",this.xO),this.publish("dragend",Z.x,Z.y,z)):(wj(this),this.j=!1,this.publish("dragend",Z.x,Z.y,z),this.publish("hoverend",Z.x,Z.y,z))}; g.A.xO=function(Z){var Q=Z.changedTouches[0];Q&&(l5(this),this.U||(this.Z("touchmove",this.rxh),this.Z("touchend",this.yI),this.Z("touchcancel",this.yI),this.K=Q.identifier,Z=Z.target,this.j||(this.j=!0,this.publish("hoverstart",Q.pageX,Q.pageY,Z)),this.publish("hovermove",Q.pageX,Q.pageY,Z),this.Y&&(this.S=!0,this.publish("dragstart",Q.pageX,Q.pageY,Z),this.publish("dragmove",Q.pageX,Q.pageY,Z))))}; g.A.rxh=function(Z){var Q=zCG(this,Z);Q&&(this.Y&&Z.preventDefault(),Z=Z.target,this.publish("hovermove",Q.pageX,Q.pageY,Z),this.Y&&this.publish("dragmove",Q.pageX,Q.pageY,Z))}; g.A.yI=function(Z){var Q=zCG(this,Z);if(Q){l5(this);wj(this);this.j=!1;var z=Z.target;this.Y&&(this.T||Z.preventDefault(),this.S=!1,this.publish("dragend",Q.pageX,Q.pageY,z));this.publish("hoverend",Q.pageX,Q.pageY,z)}}; g.A.gr=function(){this.Y&&(g.Fv&&this.target.removeAttribute("draggable"),this.target.style.touchAction="");l5(this);g.rV.prototype.gr.call(this)}; var Ksn=!1;g.L(bbG,g.x);bbG.prototype.zo=function(){g.Dw(this.element,"display","none");this.J.logVisibility(this.Y,!1)};g.L(z2,V7);z2.prototype.SJ=function(Z,Q){this.FI()||(this.X=[Z,Q],this.Y.subscribe("dragmove",this.K,this),this.Y.subscribe("dragend",this.L,this),this.S||g.lR(this.delay))}; z2.prototype.KN=function(){if(this.W){this.S=!0;this.JG=this.api.getPlaybackRate();this.c7=this.api.getPlayerStateObject().isPaused();var Z=this.speedmasterUserEdu;g.Dw(Z.element,"display","");Z.J.logVisibility(Z.Y,!0);this.api.setPlaybackRate(this.Vp);this.api.hideControls();this.api.playVideo();this.T&&(this.T.yS=!0);this.jJ&&(this.jJ.kQ=!0)}}; z2.prototype.K=function(Z,Q){if(!this.S){Z=[Z,Q];var z=this.X;z&&Z&&z.length===2&&Z.length===2?(Q=Math.abs(z[0]-Z[0]),z=Math.abs(z[1]-Z[1]),Q=Math.sqrt(Q*Q+z*z)):Q=-1;Q<this.P7?this.X=Z:Ky(this)}}; z2.prototype.L=function(){Ky(this)};g.L(r3G,V7);r3G.prototype.onVideoDataChange=function(Z){Z==="newdata"&&this.api.W4().createSubtitlesModuleIfNeeded()};g.L(bM,g.P8);bM.prototype.preventDefault=function(){g.P8.prototype.preventDefault.call(this);this.Y&&this.Y.preventDefault()}; bM.prototype.stopPropagation=function(){g.P8.prototype.stopPropagation.call(this);this.Y&&this.Y.stopPropagation()};g.L(g.qp,lx);g.A=g.qp.prototype;g.A.Yo=function(){return!0}; g.A.isView=function(){return!1}; g.A.aQ=function(){return!1}; g.A.OA=function(){return this.Y}; g.A.bJ=function(){return this.Y.src}; g.A.HT=function(Z){var Q=this.getPlaybackRate();this.Y.src=Z;this.setPlaybackRate(Q)}; g.A.No=function(){this.Y.removeAttribute("src")}; g.A.getPlaybackRate=function(){try{return this.Y.playbackRate>=0?this.Y.playbackRate:1}catch(Z){return 1}}; g.A.setPlaybackRate=function(Z){this.getPlaybackRate()!==Z&&(this.Y.playbackRate=Z);return Z}; g.A.rS=function(){return this.Y.loop}; g.A.setLoop=function(Z){this.Y.loop=Z}; g.A.canPlayType=function(Z,Q){return this.Y.canPlayType(Z,Q)}; g.A.isPaused=function(){return this.Y.paused}; g.A.isSeeking=function(){return this.Y.seeking}; g.A.isEnded=function(){return this.Y.ended}; g.A.AM=function(){return this.Y.muted}; g.A.zM=function(Z){HN();this.Y.muted=Z}; g.A.jG=function(){return this.Y.played||rQ([],[])}; g.A.gm=function(){try{var Z=this.Y.buffered}catch(Q){}return Z||rQ([],[])}; g.A.ri=function(){return this.Y.seekable||rQ([],[])}; g.A.Vd=function(){var Z=this.Y;return Z.getStartDate?Z.getStartDate():null}; g.A.getCurrentTime=function(){return this.Y.currentTime}; g.A.setCurrentTime=function(Z){this.Y.currentTime=Z}; g.A.getDuration=function(){return this.Y.duration}; g.A.load=function(){var Z=this.Y.playbackRate;try{this.Y.load()}catch(Q){}this.Y.playbackRate=Z}; g.A.pause=function(){this.Y.pause()}; g.A.play=function(){var Z=this.Y.play();if(!Z||!Z.then)return null;Z.then(void 0,function(){}); return Z}; g.A.oX=function(){return this.Y.readyState}; g.A.CA=function(){return this.Y.networkState}; g.A.qe=function(){return this.Y.error?this.Y.error.code:null}; g.A.Fl=function(){return this.Y.error?this.Y.error.message:""}; g.A.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.Y instanceof window.HTMLVideoElement&&this.Y.getVideoPlaybackQuality)return this.Y.getVideoPlaybackQuality();if(this.Y){var Z=this.Y,Q=Z.webkitDroppedFrameCount;if(Z=Z.webkitDecodedFrameCount)return{droppedVideoFrames:Q||0,totalVideoFrames:Z}}return{}}; g.A.o6=function(){return!!this.Y.webkitCurrentPlaybackTargetIsWireless}; g.A.zw=function(){return!!this.Y.webkitShowPlaybackTargetPicker()}; g.A.togglePictureInPicture=function(){var Z=this.Y,Q=window.document;window.document.pictureInPictureEnabled?this.Y!==Q.pictureInPictureElement?Z.requestPictureInPicture():Q.exitPictureInPicture():pI()&&Z.webkitSetPresentationMode(Z.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.A.Br=function(){var Z=this.Y;return new g.Yv(Z.offsetLeft,Z.offsetTop)}; g.A.getSize=function(){return g.n4(this.Y)}; g.A.setSize=function(Z){g.L4(this.Y,Z)}; g.A.getVolume=function(){return this.Y.volume}; g.A.setVolume=function(Z){HN();this.Y.volume=Z}; g.A.Bb=function(Z){this.L[Z]||(this.Y.addEventListener(Z,this.listener),this.L[Z]=this.listener)}; g.A.setAttribute=function(Z,Q){this.Y.setAttribute(Z,Q)}; g.A.removeAttribute=function(Z){this.Y.removeAttribute(Z)}; g.A.hasAttribute=function(Z){return this.Y.hasAttribute(Z)}; g.A.cD=Qx(57);g.A.uT=Qx(59);g.A.t9=Qx(61);g.A.Gq=Qx(63);g.A.B0=function(){return LS(this.Y)}; g.A.Zh=function(Z){g.rd(this.Y,Z)}; g.A.lX=function(Z){return g.go(this.Y,Z)}; g.A.UU=function(){return g.bG(document.body,this.Y)}; g.A.audioTracks=function(){var Z=this.Y;if("audioTracks"in Z)return Z.audioTracks}; g.A.gr=function(){for(var Z=g.n(Object.keys(this.L)),Q=Z.next();!Q.done;Q=Z.next())Q=Q.value,this.Y.removeEventListener(Q,this.L[Q]);lx.prototype.gr.call(this)}; g.A.W1=function(Z){this.Y.disableRemotePlayback=Z};g.L(r4,g.x);g.L(jW,g.x);jW.prototype.show=function(){g.x.prototype.show.call(this);this.E$();this.fN.V("html5_enable_moving_s4n_window")&&g.Nf(this.fN.N())&&this.X()}; jW.prototype.hide=function(){g.x.prototype.hide.call(this);this.delay.stop();this.W.stop()}; jW.prototype.E$=function(){var Z=(0,g.Nm)(),Q=jX0(this.fN);Av(this.Y,Q.bandwidth_samples);Av(this.T,Q.network_activity_samples);Av(this.S,Q.live_latency_samples);Av(this.j,Q.buffer_health_samples);var z={};Q=g.n(Object.entries(Q));for(var K=Q.next();!K.done;K=Q.next()){var b=g.n(K.value);K=b.next().value;b=b.next().value;this.U[K]!==b&&(z[K]=" "+String(b));this.U[K]=b}this.update(z);Z=(0,g.Nm)()-Z>25?5E3:500;this.delay.start(Z)}; jW.prototype.X=function(){this.K?(this.position+=1,this.position>15&&(this.K=!1)):(--this.position,this.position<=0&&(this.K=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.W.start(2E4)};g.L(gb4,V7);g.L(D_,g.O);D_.prototype.Y=function(){var Z=(0,g.Nm)()-this.startTime;Z=Z<this.duration?Z/this.duration:1;this.j(mf(EKE,Z));Z<1&&this.delay.start()}; var EKE=new cC(0,0,.4,0,.2,1,1,1),fsG=/[0-9.-]+|[^0-9.-]+/g;g.L(vf,g.x);vf.prototype.onClick=function(){var Z=this.api.app;var Q=Z.V("web_log_theater_mode_visibility")?!Z.XZ():!Z.P6;Z.fN.hG("SIZE_CLICKED",Q);this.api.logClick(this.element)}; vf.prototype.E$=function(){this.Wh(this.api.W6()&&!this.api.isFullscreen()&&this.api.getPresentingPlayerType()!==3);if(this.RT){var Z=this.api.XZ();this.XZ!==Z&&this.rN(Z)}this.api.logVisibility(this.element,this.RT)}; vf.prototype.rN=function(Z){var Q=Z?{B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},G:[{B:"path",KL:!0,C:{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"}}]}:{B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},G:[{B:"path",KL:!0,C:{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.XZ==null?this.updateValue("icon",Q):T$n(this.transition,this.element, Q);this.XZ=Z;Q=g.h2(this.api,"Default view","t");var z=g.h2(this.api,"Theater mode","t");this.updateValue("title",Z?Q:z);this.update({"data-title-no-tooltip":Z?"Default view":"Theater mode"});this.api.Bv()};g.L(hCu,V7);g.L(c3d,V7);g.A=c3d.prototype;g.A.onVideoDataChange=function(Z){this.Pk();this.videoId=Z.videoId;this.j=this.Y=void 0;this.timelyActions=nbu(Z);mCr(this);this.clearTimeout();this.df()}; g.A.FP=function(Z){var Q=Z.oldState,z=Z.state,K=z.seekSource;!g.t(Q,16)&&g.t(z,16)?this.qY(K!=null?K:void 0):g.t(Q,16)&&!g.t(z,16)&&this.hX();Z=Z.state;Z=!Z.isCued()&&!g.t(Z,1024);this.S.Wh(Z)}; g.A.df=function(){var Z=this.mL();Z&&this.api.df(Z)}; g.A.Pk=function(){this.api.US("timelyAction",1);if(this.Y!==void 0)this.onCueRangeExit(this.Y)}; g.A.mL=function(){if(this.timelyActions){for(var Z=[],Q=g.n(this.timelyActions),z=Q.next();!z.done;z=Q.next())z=z.value,z=z.startTimeMilliseconds!=null&&z.endTimeMilliseconds!=null&&z.cueRangeId!=null?new g.b6(Number(z.startTimeMilliseconds),Number(z.endTimeMilliseconds),{id:z.cueRangeId,namespace:"timelyAction"}):void 0,z&&Z.push(z);return Z}}; g.A.onCueRangeEnter=function(Z){var Q=g4(this,Z);Q&&this.W[Z]!==void 0&&(Q.maxShowCount===void 0||(Q==null?void 0:Q.maxShowCount)>this.W[Z])&&(this.Y=Z,J3n(this))}; g.A.onCueRangeExit=function(Z){var Q=Isf(this,Z);Q&&this.Y===Z&&this.api.hG("innertubeCommand",Q);this.clearTimeout();this.Y=void 0}; g.A.onTimeout=function(Z){this.Y!==void 0&&(Z==null?void 0:Z.cueRangeId)===this.Y&&(Z=Isf(this,this.Y))&&this.api.hG("innertubeCommand",Z)}; g.A.qY=function(Z){this.j=Z}; g.A.hX=function(){J3n(this);this.j=void 0}; g.A.setTimeout=function(Z){var Q=this,z=Number(Z==null?void 0:Z.maxVisibleDurationMilliseconds);z&&(this.clearTimeout(),this.L=setTimeout(function(){Q.onTimeout(Z)},z))}; g.A.clearTimeout=function(){this.L&&clearTimeout(this.L);this.L=void 0}; g.A.gr=function(){this.timelyActions=this.j=this.Y=this.videoId=void 0;this.W={};this.Pk();this.clearTimeout();V7.prototype.gr.call(this)};g.L(N$G,V7);var no={},ObD=(no[1]="pot_ss",no[2]="pot_sf",no[3]="pot_se",no[4]="pot_xs",no[5]="pot_xf",no[6]="pot_xe",no),obu=["www.youtube-nocookie.com","www.youtubeeducation.com"];g.L(SW,V7);SW.prototype.gr=function(){this.K&&(g.hN(this.K),this.K=void 0);V7.prototype.gr.call(this)}; SW.prototype.JA=function(){(this.Y?!this.Y.isReady():this.j)&&T2(this)}; SW.prototype.Go=function(Z,Q,z){var K=this;if(ib4(Z)){var b=z||"",q;if((q=this.Y)==null?0:q.isReady())Q=fy(this,b),asG(Z,Q);else{var r=new g.XO;Q.push(r.promise);this.W.promise.then(function(){var D=fy(K,b);asG(Z,D);r.resolve()})}}}; SW.prototype.GM=function(Z){var Q=this;if(this.Y||this.j)Z.vT=fy(this,Z.videoId),this.Y&&!this.Y.isReady()&&(this.S=new EZ,this.W.promise.then(function(){Q.rq.f0("pot_if");Z.vT=fy(Q,Z.videoId)}))};g.L(Ws9,V7);g.L(hv,g.O);hv.prototype.Y=function(){for(var Z=g.n(g.iu.apply(0,arguments)),Q=Z.next();!Q.done;Q=Z.next())(Q=Q.value)&&this.features.push(Q)}; hv.prototype.gr=function(){for(var Z=this.features.length-1;Z>=0;Z--)this.features[Z].dispose();this.features.length=0;g.O.prototype.gr.call(this)};Ly.prototype.wG=function(){this.j=(0,g.Nm)()}; Ly.prototype.reset=function(){this.Y=this.j=NaN}; Ly.prototype.Bd=function(Z,Q){if(Z.clientPlaybackNonce&&!isNaN(this.Y)){if(Math.random()<.01){Q=Q?"pbp":"pbs";var z={startTime:this.Y};Z.K&&(z.cttAuthInfo={token:Z.K,videoId:Z.videoId});BO("seek",z);g.oC({clientPlaybackNonce:Z.clientPlaybackNonce},"seek");isNaN(this.j)||Ow("pl_ss",this.j,"seek");Ow(Q,(0,g.Nm)(),"seek")}this.reset()}};g.A=Vbd.prototype;g.A.reset=function(){HO(this.timerName)}; g.A.tick=function(Z,Q){Ow(Z,Q,this.timerName)}; g.A.f0=function(Z){return VY(Z,this.timerName)}; g.A.vz=function(Z){du(Z,void 0,this.timerName)}; g.A.infoGel=function(Z){g.oC(Z,this.timerName)};g.L(tbG,g.rV);g.A=tbG.prototype;g.A.C4=function(Z){return this.loop||!!Z||this.index+1<this.length}; g.A.x3=function(Z){return this.loop||!!Z||this.index-1>=0}; g.A.setShuffle=function(Z){this.shuffle=Z;Z=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var Q=0;Q<this.items.length;Q++)this.order.push(Q);this.index=Z;this.j++;if(this.shuffle){Z=this.order[this.index];for(Q=1;Q<this.order.length;Q++){var z=Math.floor(Math.random()*(Q+1)),K=this.order[Q];this.order[Q]=this.order[z];this.order[z]=K}for(Q=0;Q<this.order.length;Q++)this.order[Q]===Z&&(this.index=Q);this.j++}this.publish("shuffle")}; g.A.uI=function(Z){Z=Z||"hqdefault.jpg";var Q=this.U[Z];if(Q||this.B7.SJ||Z==="sddefault.jpg"||Z==="hq720.jpg"||Z==="maxresdefault.jpg")return Q;if(this.S.length)return oM(this.B7,this.S[0],Z)}; g.A.getLength=function(){return this.length}; g.A.findIndex=function(Z){if(Z&&(Z=Z.videoId,!this.items[this.index]||this.items[this.index].video_id!==Z))for(var Q=0;Q<this.items.length;Q++)if(this.items[Q].video_id===Z){this.index=Q;break}}; g.A.onReady=function(Z){this.Y=Z;this.loaded&&g.$q(this.Y,0)}; g.A.getPlaylistId=function(){return this.listId?this.listId.toString():null}; g.A.qN=function(){return this.B7.getVideoUrl(g.cf(this).videoId,this.getPlaylistId())}; g.A.gr=function(){this.Y=null;g.DH(this.items);g.rV.prototype.gr.call(this)};var mR=new Map;g.L(g.Jv,g.rV);g.A=g.Jv.prototype;g.A.create=function(){}; g.A.load=function(){this.loaded=!0}; g.A.unload=function(){this.loaded=!1}; g.A.Pv=function(){}; g.A.bP=function(){return!0}; g.A.gr=function(){this.loaded&&this.unload();g.rV.prototype.gr.call(this)}; g.A.gy=function(){return{}}; g.A.getOptions=function(){return[]};g.L(g.d4,g.O);g.A=g.d4.prototype;g.A.Tt=Qx(66);g.A.sE=function(){}; g.A.eS=function(){}; g.A.JO=function(){return""}; g.A.FK=Qx(67);g.A.Go=function(Z,Q){var z=this;if(this.fN.N().V("html5_dispatch_tracklist_loaded_event")){this.W&&(this.W.reject(),this.W=null);var K=[];this.fN.publish("trackListLoaded",this.j,K,Q);K.length?(Q=new g.XO,Q.promise.then(Z.Go,function(){}),this.W=Q,Promise.all(K).then(Q.resolve,Q.reject).finally(function(){z.W=null})):Z.Go()}else Z.Go()}; g.A.E0=function(){}; g.A.gr=function(){this.W&&(this.W.reject(),this.W=null);this.eS();g.O.prototype.gr.call(this)};g.L(g.Np,g.d4);g.Np.prototype.Tt=Qx(65);g.Np.prototype.sE=function(Z){if(this.audioTrack)for(var Q=g.n(this.audioTrack.captionTracks),z=Q.next();!z.done;z=Q.next())g.yB(this.j,z.value);this.Go(Z,this.videoData.videoId)}; g.Np.prototype.JO=function(Z,Q){var z=Z.sS(),K={fmt:Q};if(Q==="srv3"||Q==="3"||Q==="json3")g.kq()?Object.assign(K,{xorb:2,xobt:1,xovt:1}):Object.assign(K,{xorb:2,xobt:3,xovt:3});Z.translationLanguage&&(K.tlang=g.v1(Z));this.S&&(K.xosf="1");Object.assign(K,this.fN.N().Y);return qi(z,K)}; g.Np.prototype.eS=function(){this.Y&&this.Y.abort()};g.l2z=new Map;g.L(g.iM,g.d4);g.iM.prototype.Tt=Qx(64); g.iM.prototype.sE=function(Z){var Q=this,z=this.S,K={type:"list",tlangs:1,v:this.videoId,vssids:1};this.aV&&(K.asrs=1);z=qi(z,K);this.eS();this.Y=g.yC(z,{format:"RAW",onSuccess:function(b){Q.Y=null;if((b=b.responseXML)&&b.firstChild){for(var q=b.getElementsByTagName("track"),r=0;r<q.length;r++){var D=q[r],v=D.getAttribute("lang_code"),Y=D.getAttribute("lang_translated"),X=D.getAttribute("name"),S=D.getAttribute("kind"),T=D.getAttribute("id"),f=D.getAttribute("lang_default")==="true",h=D.getAttribute("cantran")=== "true";D=D.getAttribute("vss_id");g.yB(Q.j,new g.AF({languageCode:v,languageName:Y,name:X,kind:S,id:T,is_servable:!0,is_translateable:h,vss_id:D,is_default:f}))}b=b.getElementsByTagName("target");q=b.length;for(r=0;r<q;r++)v={languageCode:b[r].getAttribute("lang_code"),languageName:b[r].getAttribute("lang_translated"),languageOriginal:b[r].getAttribute("lang_original"),id:b[r].getAttribute("id"),isDefault:b[r].getAttribute("lang_default")==="true"},Q.K[v.languageCode]=v.languageName,Q.L.push(v)}Q.Go(Z, Q.videoId)}, withCredentials:!0})}; g.iM.prototype.JO=function(Z,Q){var z=this.S;Q={v:this.videoId,type:"track",lang:Z.languageCode,name:Z.getName(),kind:Z.kind,fmt:Q};var K=this.fN.N();K.V("captions_url_add_ei")&&(Q.ei=this.eventId);Z.translationLanguage&&(Q.tlang=g.v1(Z));Object.assign(Q,K.Y);return z=qi(z,Q)}; g.iM.prototype.eS=function(){this.Y&&this.Y.abort()};qAX.prototype.S=function(){for(var Z=g.iu.apply(0,arguments),Q=this,z=r0("empty"),K=[],b={sx:0};b.sx<this.j.length&&z.currentState!=="done";b={Q2:void 0,sx:b.sx},b.sx++)b.Q2=this.j[b.sx],b.Q2.condition.apply(b.Q2,g.I(Z))&&(z=v3(v3(z,function(q){return function(){if(!q.Q2.condition.apply(q.Q2,g.I(Z)))throw"condition failed";var r=q.Q2.hC.apply(q.Q2,g.I(Z));return Q.Y===void 0||Q.Y===null?r:D7(qP(r),function(D){if(!Q.Y.apply(Q,[D].concat(g.I(Z))))throw"verification failed";return D})}}(b)),function(q){return function(r){r!== "empty"&&r!=="condition failed"&&r!=="verification failed"&&r!=="error"&&(q.Q2.onFailure&&q.Q2.onFailure.apply(q.Q2,[r].concat(g.I(Z))),Q.onFailure&&Q.onFailure.apply(Q,[r, q.sx,q.Q2].concat(g.I(Z))),K.push(r));throw"error";}}(b))); return v3(z,function(){return r0(K)})};Pf.prototype.preload=function(Z){Z=Z?ra4(this.capabilities,Z):this.capabilities;return Z.Kf?D7(D3D(this,Z),function(){}):qP()}; Pf.prototype.compile=function(Z){return v3(this.L.S(Z),function(Q){throw Error("wasm module compile failure: "+Q.map(function(z){return z.message}).join(", "),{cause:Q}); })}; Pf.prototype.instantiate=function(Z,Q){return v3(this.K.S(Z,Q),function(z){throw Error("wasm module instantiation failure: "+z.map(function(K){return K.message}).join(", "),{cause:z}); })};XU9.prototype.emscripten_notify_memory_growth=function(){};var vJ0;g.A=$3u.prototype;g.A.malloc=function(Z){return this.Y.malloc(Z)}; g.A.free=function(Z){this.Y.free(Z)}; g.A.realloc=function(Z,Q){return this.Y.realloc(Z,Q)}; g.A.Xq=function(Z){if(Z.buffer!==this.exports.memory.buffer){var Q=this.malloc(Z.byteLength);Q=new Uint8Array(this.exports.memory.buffer,Q,Z.byteLength);Q.set(Z);return Q}}; g.A.GO=function(Z){if(Z.buffer===this.exports.memory.buffer){var Q=Z.slice();this.free(Z.byteOffset);return Q}}; var xwW="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly);aq.hS($3u,{Xq:function(Z){return{profile:"copyj2w",XN:Z===void 0?0:Math.ceil(Z.byteLength/16)}}, GO:function(Z){return{profile:"copyw2j",XN:Z===void 0?0:Math.ceil(Z.byteLength/16)}}});g.L(htn,g.O);g.A=htn.prototype;g.A.createSubtitlesModuleIfNeeded=function(){m3G(this)&&Cy(this,"captions");return!!g.Rq(this)}; g.A.FV=function(){return g.V0(this.J.getVideoData())&&!this.J.iA().S}; g.A.Pw=function(){return this.J.getVideoData().Pw()}; g.A.n1=function(){return this.J.getVideoData().n1()}; g.A.Eb=function(){var Z=this.Ov.get("heartbeat");Cy(this,"heartbeat",!1,!0,this.Eb);!Z&&this.Ov.has("heartbeat")&&this.J.publish("offlineslatestatechange")}; g.A.wW=function(){Cy(this,"annotations_module",!0,void 0,this.wW);var Z=this.Ov.get("annotations_module");if(Z)for(var Q in this.S)if(this.S.hasOwnProperty(Q)){var z=Q;Z.subscribe(z,this.S[z])}}; g.A.XY=function(){if(!this.Ov.get("ad"))try{LXf(this)?Cy(this,"ad",!1,!0,this.XY):this.J.o3("ad")}catch(Z){this.J.o3("ad"),g.Rm(Z)}}; g.A.hx=function(){return this.j}; g.A.bR=function(){var Z={},Q=g.Rq(this);Q&&Object.assign(Z,Q.bR());return Z}; g.A.d2=function(Z,Q){Object.assign(this.j,Z||null);Object.assign(this.Wp,Q||null)}; g.A.onVideoDataChange=function(){var Z=this.J.getVideoData();this.J.V("enable_wn_infocards")&&g.Gz(Z)&&!g.OU(this)&&this.wW()}; g.A.gr=function(){g.O.prototype.gr.call(this);py(this,1,!0);for(var Z=g.n(Object.entries(MQG)),Q=Z.next();!Q.done;Q=Z.next()){var z=g.n(Q.value);Q=z.next().value;z=z.next().value;this.W.has(z)&&mR.delete(Q)}this.W.clear()}; var c5={},MQG=(c5.ad="ad.js",c5.annotations_module="annotations_module.js",c5.asmjs="asmjs.js",c5.creatorendscreen="annotations_module.js",c5.embed="embed.js",c5.endscreen="endscreen.js",c5.heartbeat="heartbeat.js",c5.kids="kids.js",c5.remote="remote.js",c5.miniplayer="miniplayer.js",c5.offline="offline.js",c5.captions="captions.js",c5.unplugged="unplugged.js",c5.ux="ux.js",c5.webgl="webgl.js",c5.ypc="ypc.js",c5.ypc_clickwrap="ypc_clickwrap.js",c5.yto="yto.js",c5),PdG="ad annotations_module asmjs creatorendscreen embed endscreen heartbeat kids remote miniplayer offline captions webgl ypc ypc_clickwrap yto unplugged ux".split(" ");g.L(OaX,g.rV);g.A=OaX.prototype;g.A.iO=function(Z){Z=new g.Yv(Z.pageX,Z.pageY);if(!Xv(Z,this.W)){var Q=2;this.K&&(Q|=8);this.W=Z;Bf(this,Q,!0)}}; g.A.ror=function(){this.K&&Bf(this,8,!0);Bf(this,2,!1)}; g.A.A_=function(Z){var Q=new g.Yv(Z.pageX,Z.pageY);Xv(Q,this.W)||(this.W=Q,(Z=Z.target)&&this.Qd(Z)&&(Bf(this,4,!0),this.Y.oy(this.S),this.S=this.Y.Z(this.target,"mouseover",this.tE),this.T=this.Y.Z(this.target,"mouseout",this.tE)))}; g.A.tE=function(Z){Z=Z.relatedTarget;Z&&this.Qd(Z)||(this.W=new g.Yv(NaN,NaN),oJ4(this))}; g.A.suu=function(){Bf(this,1,!0)}; g.A.pI=function(Z){Z=Z.target;Z instanceof Element&&!(Z.tabIndex>0)||Bf(this,1,!0)}; g.A.Xx=function(){this.K=!0;this.Y.oy(this.L);this.L=this.Y.Z(document,"mouseup",this.SA)}; g.A.SA=function(){this.K=!1;Bf(this,8,!1);this.Y.oy(this.L);this.L=this.Y.Z(this.target,"mousedown",this.Xx)}; g.A.ly=function(Z){if(Z=(Z=Z.changedTouches)&&Z[0])this.P7=Z.identifier,this.Y.oy(this.X),this.X=this.Y.Z(this.target,"touchend",this.w$,void 0,!0),Bf(this,1024,!0)}; g.A.w$=function(Z){if(Z=Z.changedTouches)for(var Q=0;Q<Z.length;Q++){var z=Z[Q];if(z.identifier===this.P7){var K=z;break}}K&&(this.Y.oy(this.X),this.X=this.Y.Z(this.target,"touchstart",this.ly,void 0,!0),Bf(this,1024,!1))}; g.A.tP=function(){Bf(this,2,!0)}; g.A.resize=function(){g.R3&&oJ4(this)}; g.A.toString=function(){return g.rV.prototype.toString.call(this)};g.L(g.VB,g.x);g.A=g.VB.prototype;g.A.eDf=function(){this.E$()}; g.A.E$=function(){var Z=this.api.getVideoData(),Q=this.api.N(),z=!!this.api.isEmbedsShortsMode();g.vC(this.element,"ytp-shorts-mode",z);z?Q=[{B:"svg",C:{fill:"none",height:"100%",viewBox:"0 0 87 115",width:"100%"},G:[{B:"path",C:{"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"}},{B:"path",C:{"clip-rule":"evenodd",d:"M33 74L33 41L61 57.5L33 74Z",fill:"white","fill-rule":"evenodd"}}]}]:g.ey(Z)?Q=[{B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},G:[{B:"path",D:"ytp-dni-large-play-button-bg",C:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{B:"path",C:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}]:Z.BN&&Z.K9?Q=[{B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},G:[{B:"path",D:"ytp-dni-large-play-button-bg", C:{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"}},{B:"path",C:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]:Q.K?(g.vC(this.element,"ytp-touch-device",Q.j),Q=[Q.K?{B:"svg",C:{height:"100%",version:"1.1", viewBox:"0 0 60 60",width:"100%"},G:[{B:"path",D:"ytp-large-play-button-bg",C:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{B:"path",C:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}:{B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},G:[{B:"path",D:"ytp-large-play-button-bg",C:{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"}},{B:"path",C:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]):Q=[{B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},G:[{B:"path",D:"ytp-large-play-button-bg",C:{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"}},{B:"path",C:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];this.updateValue("largePlayButtonChildren",Q);Z.BN&&Z.K9&&this.Ru("ytp-dni-large-play-button-bg").setAttribute("fill",Z.K9?Z.K9:"#1f1f1f")}; g.A.show=function(){g.x.prototype.show.call(this);this.api.N().V("embeds_web_enable_lite_experiment_control_arm_logging")&&this.api.logVisibility(this.element,!0)}; g.A.hs=function(){this.api.getVideoData().mutedAutoplay||(this.api.Kn(),this.api.playVideo())}; g.A.m8N=function(Z){this.api.getVideoData().mutedAutoplay||Z.preventDefault()};g.L(g.k3,g.x);g.A=g.k3.prototype;g.A.show=function(){var Z=this;this.RT||(this.W.Z(this.api,"videodatachange",function(){g.lR(Z.Y)}),this.W.Z(this.api,"videoplayerreset",function(){g.lR(Z.Y)})); g.x.prototype.show.call(this)}; g.A.hide=function(){this.W&&g.ib(this.W);g.x.prototype.hide.call(this)}; g.A.pL=function(){g.lR(this.Y)}; g.A.onStateChange=function(){g.lR(this.Y)}; g.A.Oy7=function(){g.lR(this.Y)}; g.A.onReset=function(){this.j.stop();this.hide();g.lR(this.Y)}; g.A.E$=function(){var Z=this.api.getPlayerStateObject();if(this.api.getPresentingPlayerType()===3&&(Z.isPlaying()||Z.isPaused()))var Q=!0;else(Q=this.api.W4().Ov.get("ypc"))&&Q.dh?Q=!0:(Q=this.api.N(),Q=g.t(Z,2)&&g.nW(this.api)&&Q.YJ?!0:!1);Q?(Q=!0,this.S.hide()):this.api.V("web_player_show_frame_zero_when_cued")&&Byn(this)?(Q=!0,this.S.hide()):(this.S.show(),Q=Z.isCued()&&this.api.getPresentingPlayerType()!==2||g.t(Z,2)&&!g.nW(this.api)&&!this.api.v0()||g.t(Z,1024)?!0:!1);var z=this.api.getVideoData(); Q&&!z.JM?(this.j.show(),this.XxN(this.api.getPlaylist(),z)):(this.j.hide(),g.t(Z,1)||this.j.stop())}; g.A.XxN=function(){var Z=g.iu.apply(0,arguments),Q=this.api.N(),z,K=(z=this.api.getVideoData())==null?void 0:z.videoId;if(Q.V("web_player_show_frame_zero_when_cued")&&K&&Byn(this))var b="https://i.ytimg.com/vi/"+K+"/frame0.jpg";else for(Z=g.n(Z),z=Z.next();!z.done;z=Z.next())if(z=z.value,!(!z||z instanceof g.OK&&!z.videoId)){b=this.api.U$().getPlayerSize();var q=g.Vf();K=b.width*q;q*=b.height;if(K>1280||q>720)if(b=z.uI("maxresdefault.jpg"))break;if(K>640||q>480)if(b=z.uI("maxresdefault.jpg"))break; if(K>320||q>180)if(b=z.uI("sddefault.jpg")||z.uI("hqdefault.jpg")||z.uI("mqdefault.jpg"))break;if(b=z.uI("default.jpg"))break}g.xa(Q)&&(Q=new Image,Q.addEventListener("load",function(){Zln()}),Q.src=b?b:"",this.api.hx().tick("ftr")); this.K.style.backgroundImage=b?"url("+b+")":""};g.L(g.uM,g.x);g.uM.prototype.resize=function(){}; g.uM.prototype.j=function(Z){var Q=this;this.S=!1;k3f(this);var z=Z.Rw,K=this.api.N();z!=="GENERIC_WITHOUT_LINK"||K.K?z==="TOO_MANY_REQUESTS"?(K=this.api.getVideoData(),this.Wo(Fi(this,"TOO_MANY_REQUESTS_WITH_LINK",K.qN(),void 0,void 0,void 0,!1))):z!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||K.K?this.api.N().V("html5_enable_bandaid_error_screen")&&z==="HTML5_SPS_UMP_STATUS_REJECTED"&&!K.K?(K=K.hostLanguage,Z="//support.google.com/youtube?p=videoError",K&&(Z=g.BK(Z,{hl:K})),this.Wo(Fi(this,"HTML5_SPS_UMP_STATUS_REJECTED", Z))):this.api.N().V("enable_adb_handling_in_sabr")&&z==="BROWSER_OR_EXTENSION_ERROR"&&!K.K?(K=K.hostLanguage,Z="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",K&&(Z=g.BK(Z,{hl:K})),this.Wo(Fi(this,"BROWSER_OR_EXTENSION_ERROR",Z))):this.Wo(g.x3(Z.errorMessage)):this.Wo(Fi(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(Z=K.hostLanguage,z="//support.google.com/youtube/?p=player_error1",Z&&(z=g.BK(z, {hl:Z})),this.Wo(Fi(this,"GENERIC_WITH_LINK_AND_CPN",z,!0)),K.Ph&&!K.W&&VQG(this,function(q){if(g.lr(q,Q.api,!BZ(Q.api.N()))){q={as3:!1,html5:!0,player:!0,cpn:Q.api.getVideoData().clientPlaybackNonce};var r=Q.api;r.wX("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:q});r.isFullscreen()&&r.toggleFullscreen()}})); if(this.S){var b=this.Ru("ytp-error-link");b&&(this.api.createClientVe(b,this,216104),this.api.logVisibility(b,!0),VQG(this,function(){Q.api.logClick(b)}))}}; var WXd=/<a\s+href=["']([^"']+)["'](?:\s+target=["']([^"']+)["'])?>([^<>]+)<\/a>/;g.L(uju,g.x);g.A=uju.prototype;g.A.onClick=function(Z){this.innertubeCommand?(this.J.hG("innertubeCommand",this.innertubeCommand),Z.preventDefault()):g.lr(Z,this.J,!0);this.J.logClick(this.element)}; g.A.onVideoDataChange=function(Z,Q){tQn(this,Q);this.gf&&FXW(this,this.gf)}; g.A.g$=function(Z){var Q=this.J.getVideoData();this.videoId!==Q.videoId&&tQn(this,Q);this.Y&&FXW(this,Z.state);this.gf=Z.state}; g.A.Gz=function(){this.W.show();this.J.publish("paidcontentoverlayvisibilitychange",!0);this.J.logVisibility(this.element,!0)}; g.A.oT=function(){this.W.hide();this.J.publish("paidcontentoverlayvisibilitychange",!1);this.J.logVisibility(this.element,!1)};g.L(eW,g.x);eW.prototype.hide=function(){this.Y.stop();this.message.style.display="none";g.x.prototype.hide.call(this)}; eW.prototype.onStateChange=function(Z){this.Q3(Z.state)}; eW.prototype.Q3=function(Z){(g.t(Z,128)||this.api.R5()?0:g.t(Z,16)||g.t(Z,1))?this.Y.start():this.hide()}; eW.prototype.j=function(){this.message.style.display="block"};g.L(w4,g.CW);w4.prototype.onMutedAutoplayChange=function(Z){this.S&&(Z?(etW(this),this.Gz()):(this.Y&&this.logClick(),this.oT()))}; w4.prototype.FP=function(Z){this.api.isMutedByMutedAutoplay()&&g.Xw(Z,2)&&this.oT()}; w4.prototype.onClick=function(){this.api.unMute();this.logClick()}; w4.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.L(g.EU,g.M5);g.A=g.EU.prototype;g.A.init=function(){var Z=this.api,Q=Z.getPlayerStateObject();this.xQ=Z.getPlayerSize();this.V3(Q);this.Ej();this.pL();this.api.publish("basechromeinitialized",this);this.RL()&&this.api.publish("standardControlsInitialized")}; g.A.onVideoDataChange=function(Z,Q){var z=this.u6!==Q.videoId;if(z||Z==="newdata"){Z=this.api;Z.isFullscreen()||(this.xQ=Z.getPlayerSize());var K;((K=this.api.getVideoData(1))==null?0:g.V0(K))&&this.Tw()}z&&(this.u6=Q.videoId,z=this.I6,z.JG=3E3,Bf(z,512,!0),this.Ej());this.api.V("web_render_jump_buttons")&&Q.showSeekingControls&&(this.zs=572)}; g.A.Chu=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; g.A.kT=function(){var Z=this.api.Ls()&&this.api.WH(),Q=this.api.QS();return this.sJ||Z||this.Dg||Q}; g.A.Tw=function(){var Z=!this.kT();g.vC(this.api.getRootNode(),"ytp-menu-shown",!Z);var Q;((Q=this.api.getVideoData(1))==null?0:g.V0(Q))&&g.vC(this.api.getRootNode(),"ytp-hide-controls",!Z)}; g.A.Qd=function(Z){try{if(!g.bG(this.api.getRootNode(),Z))return!1}catch(Q){return!1}for(;Z&&!rrG(Z);)Z=Z===this.api.getRootNode()?null:Z.parentElement||null;return!!Z}; g.A.T8=function(Z){var Q=this.api.getRootNode();g.vC(Q,"ytp-autohide",Z);g.vC(Q,"ytp-autohide-active",!0);this.Y_.start(Z?250:100);Z&&(this.oO=!1,g.jn(Q,"ytp-touch-mode"));this.yG=!Z;this.api.wK(!Z)}; g.A.SM=function(){var Z=this.api.getRootNode();g.vC(Z,"ytp-autohide-active",!1)}; g.A.kJB=function(){this.I9=!0}; g.A.tPJ=function(Z){if(this.api.N().V("player_doubletap_to_seek")||this.api.N().X)this.I9=!1,this.pk&&this.oy(this.pk),this.l6===0&&sk(this,Z)?(this.Zg(),this.bF.start(),this.pk=this.Z(this.api.U$(),"touchmove",this.kJB,void 0,!0)):this.bF.stop();s1f(this)&&sk(this,Z)&&!this.api.N().X&&EJM(this);var Q=this.g0.y5();if(!g.mj(this.api.N())&&Ln&&ZCG(this,Z))Q&&Z.preventDefault();else if(this.oO=!0,g.rd(this.api.getRootNode(),"ytp-touch-mode"),this.I6.tP(),this.api.N().V("player_doubletap_to_seek")||this.api.N().X)if(Q= this.api.getPlayerStateObject(),!(!this.api.xE()||g.t(Q,2)&&g.nW(this.api)||g.t(Q,64))){Q=Date.now()-this.OB;this.l6+=1;if(Q<=350){this.IS=!0;Q=this.api.getPlayerSize().width/3;var z=this.api.getRootNode().getBoundingClientRect(),K=Z.targetTouches[0].clientX-z.left;z=Z.targetTouches[0].clientY-z.top;var b=(this.l6-1)*10;K>0&&K<Q?(this.ZS(-1,K,z,b),this.api.seekBy(-10*this.api.getPlaybackRate())):K>Q*2&&K<Q*3&&(this.ZS(1,K,z,b),this.api.seekBy(10*this.api.getPlaybackRate()));Z.preventDefault()}else Wf&& this.api.N().X&&sk(this,Z)&&Z.preventDefault();this.OB=Date.now();this.Mi.start()}}; g.A.uRr=function(){this.cj.yS=!1;this.api.publish("rootnodemousedown",this.cj)}; g.A.Fvg=function(Z){if(this.api.N().V("web_fix_fine_scrubbing_false_play")){if(ZCG(this,Z)||this.cj.yS)return}else if(this.cj.yS||ZCG(this,Z))return;s1f(this)||!sk(this,Z)||this.bF.isActive()||(EJM(this),Z.preventDefault());this.IS&&(this.IS=!1)}; g.A.Zg=function(){}; g.A.dg=function(){}; g.A.ZS=function(){}; g.A.renderChapterSeekingAnimation=function(){}; g.A.nV=function(){var Z=this.api.getPlayerStateObject();g.t(Z,2)&&g.nW(this.api)||(Z.isOrWillBePlaying()?this.api.pauseVideo():(this.hR&&(Z.isCued()||g.t(Z,1024))&&!this.api.N().V("embeds_play_button_state_check_ks")&&this.api.publish("largeplaybuttonclicked",this.hR.S.element),this.api.Kn(),this.api.playVideo(),this.hR&&document.activeElement===this.hR.S.element&&((Z=this.RL())==null?Z=0:Z.playButton?(Z.playButton.focus(),Z=!0):Z=!1,Z||this.api.getRootNode().focus())))}; g.A.cHp=function(Z){var Q=this,z=this.api.getPresentingPlayerType();if(!lKf(this,ys(Z)))if(Z=this.api.N(),(this.api.N().V("player_doubletap_to_seek")||this.api.N().X)&&this.IS)this.IS=!1;else if(Z.F7&&z!==3)try{this.api.toggleFullscreen().catch(function(K){Q.Cc(K)}),this.api.V("web_player_fullscreen_double_click_ve")&&this.api.logClick(this.api.U$().element)}catch(K){this.Cc(K)}}; g.A.Cc=function(Z){String(Z).includes("fullscreen error")?g.CO(Z):g.Rm(Z)}; g.A.rHG=function(Z){Q1G(this,.3,Z.scale);Z.preventDefault()}; g.A.vLF=function(Z){Q1G(this,.1,Z.scale)}; g.A.pL=function(){var Z=this.api.U$().getPlayerSize(),Q=this.api.getRootNode(),z=Z.width>=650;this.I6.resize();g.vC(Q,"ytp-fullscreen",this.api.isFullscreen());g.vC(Q,"ytp-large-width-mode",z);g.vC(Q,"ytp-small-mode",this.R6());g.vC(Q,"ytp-tiny-mode",this.a7());g.vC(Q,"ytp-big-mode",this.Us());this.s6&&this.s6.resize(Z)}; g.A.FP=function(Z){this.V3(Z.state);this.Ej()}; g.A.VX=Qx(5);g.A.qJ=function(){var Z=!!this.u6&&!this.api.HN()&&!this.HG,Q=this.api.getPresentingPlayerType()===2,z=this.api.N();if(Q){if(MSM&&z.V("enable_visit_advertiser_support_on_ipad_mweb"))return!1;Q=Hf(this.api.W4());Z&&(Q&&Q.player?Z=(Z=Q.player.getVideoData(2))?Z.isListed&&!g.yF(Q.player.N()):!1:(vM("showInfoBarDuringAd: this is null"),Z=!1));return Z}return Z&&(z.rj||this.api.isFullscreen()||z.Sc)}; g.A.Ej=function(){var Z=this.qJ();this.PS!==Z&&(this.PS=Z,g.vC(this.api.getRootNode(),"ytp-hide-info-bar",!Z))}; g.A.V3=function(Z){var Q=Z.isCued()||this.api.Um()&&this.api.getPresentingPlayerType()!==3;Q!==this.isCued&&(this.isCued=Q,this.jB&&this.oy(this.jB),this.jB=this.Z(this.api.U$(),"touchstart",this.tPJ,void 0,Q));var z=this.I6,K=Z.isPlaying()&&!g.t(Z,32)||this.api.Bm();Bf(z,128,!K);z=this.I6;K=this.api.getPresentingPlayerType()===3;Bf(z,256,K);z=this.api.getRootNode();g.t(Z,2)?K=[Wt.ENDED]:(K=[],g.t(Z,8)?K.push(Wt.PLAYING):g.t(Z,4)&&K.push(Wt.PAUSED),g.t(Z,1)&&!g.t(Z,32)&&K.push(Wt.BUFFERING),g.t(Z, 32)&&K.push(Wt.SEEKING),g.t(Z,64)&&K.push(Wt.UNSTARTED));g.vD(this.hv,K)||(g.D8(z,this.hv),this.hv=K,g.Aw(z,K));K=this.api.N();var b=g.t(Z,2);a:{var q=this.api.N();var r=q.controlsType;switch(r){case "2":case "0":q=!1;break a}q=r==="3"&&!g.t(Z,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:Lk0(Hf(this.api.W4())))||this.api.QS()||g.mj(q)&&this.api.getPresentingPlayerType()===2?!1:!0}g.vC(z,"ytp-hide-controls",!q);g.vC(z,"ytp-native-controls",K.controlsType==="3"&&!Q&&!b&&!this.Dg);g.t(Z, 128)&&!g.mj(K)?(this.s6||(this.s6=new g.uM(this.api),g.W(this,this.s6),g.NZ(this.api,this.s6.element,4)),this.s6.j(Z.wm),this.s6.show()):this.s6&&(this.s6.dispose(),this.s6=null)}; g.A.ge=function(){return this.api.Ls()&&this.api.WH()?(this.api.K2(!1,!1),!0):this.api.HN()?(g.cq(this.api,!0),!0):!1}; g.A.onMutedAutoplayChange=function(Z){this.Dg=Z;this.Tw()}; g.A.Us=function(){return!1}; g.A.R6=function(){return!this.Us()&&(this.api.getPlayerSize().width<this.zs||this.api.getPlayerSize().height<290)}; g.A.a7=function(){return this.R6()&&(this.api.getPlayerSize().width<240||this.api.getPlayerSize().height<140)}; g.A.p$=function(){return this.oO}; g.A.l7=function(){return null}; g.A.V1=function(){return null}; g.A.qE=function(){var Z=this.api.U$().getPlayerSize();return new g.ro(0,0,Z.width,Z.height)}; g.A.handleGlobalKeyDown=function(){return!1}; g.A.handleGlobalKeyUp=function(){return!1}; g.A.bl=function(){}; g.A.showControls=function(Z){Z!==void 0&&this.api.U$().wK(Z)}; g.A.tP=function(){}; g.A.RL=function(){return null};g.L(Zs,g.rV);g.A=Zs.prototype;g.A.m6=function(){return 1E3*this.api.getDuration(this.sK,!1)}; g.A.stop=function(){this.Y&&this.Bo.oy(this.Y)}; g.A.E8=function(){var Z=this.api.getProgressState(this.sK);this.j={seekableStart:Z.seekableStart,seekableEnd:Z.seekableEnd,current:this.api.getCurrentTime(this.sK,!1)};this.publish("h")}; g.A.getProgressState=function(){return this.j}; g.A.Wi=function(Z){g.Xw(Z,2)&&this.publish("g")};g.L(g.Qm,g.x);g.Qm.prototype.show=function(){g.x.prototype.show.call(this);g.lR(this.Y)}; g.Qm.prototype.hide=function(){this.j.stop();g.x.prototype.hide.call(this)}; g.Qm.prototype.dg=function(Z){Z?g.t(this.J.getPlayerStateObject(),64)||zh(this,JB(),"Play"):(Z=this.J.getVideoData(),Z.isLivePlayback&&!Z.allowLiveDvr?zh(this,icf(),"Stop live playback"):zh(this,yhn(),"Pause"))};g.L(bCr,g.x);g.A=bCr.prototype;g.A.gg=function(Z){Z?this.Y=fW(this.J,this.element,null):(this.Y=this.Y,this.Y(),this.Y=null)}; g.A.Gz=function(){this.J.N().V("player_new_info_card_format")&&g.q7(this.J.getRootNode(),"ytp-cards-teaser-shown")&&!g.mj(this.J.N())||(this.j.show(),g.r1("iv-button-shown"))}; g.A.oT=function(){g.r1("iv-button-hidden");this.j.hide()}; g.A.y5=function(){return this.RT&&this.j.state!==4}; g.A.gr=function(){this.Y&&this.Y();g.x.prototype.gr.call(this)}; g.A.FZu=function(){g.r1("iv-button-mouseover")}; g.A.onClicked=function(Z){this.J.Ls();var Q=g.q7(this.J.getRootNode(),"ytp-cards-teaser-shown");g.r1("iv-teaser-clicked",Q);var z;if((z=this.J.getVideoData())==null?0:g.Nz(z)){var K;Z=(K=this.J.getVideoData())==null?void 0:g.Gz(K);(Z==null?0:Z.onIconTapCommand)&&this.J.hG("innertubeCommand",Z.onIconTapCommand)}else K=Z.screenX===0&&Z.screenY===0,this.J.K2(!this.J.WH(),K,"YOUTUBE_DRAWER_MANUAL_OPEN")};g.L(qOr,g.x);g.A=qOr.prototype;g.A.zC=function(){this.J.Ls()&&this.J.WH()&&this.y5()&&this.oT()}; g.A.GX=function(){this.oT();!this.J.Ls()&&this.J.N().V("enable_error_corrections_infocards_icon_web")&&this.vx.oT();g.r1("iv-teaser-clicked",this.Y!=null);if(this.onClickCommand)this.J.hG("innertubeCommand",this.onClickCommand);else{var Z;((Z=this.J.getVideoData())==null?0:g.Nz(Z))||this.J.K2(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")}}; g.A.Pi=function(){g.r1("iv-teaser-mouseover");this.Y&&this.Y.stop()}; g.A.UR7=function(Z){this.J.N().V("player_new_info_card_format")&&!g.mj(this.J.N())?this.vx.oT():this.J.N().V("enable_error_corrections_infocards_icon_web")&&this.vx.Gz();this.Y||!Z||this.J.WH()||this.j&&this.j.isActive()||(this.Gz(Z),g.r1("iv-teaser-shown"))}; g.A.Gz=function(Z){this.onClickCommand=Z.onClickCommand;this.updateValue("text",Z.teaserText);this.element.setAttribute("dir",g.TC(Z.teaserText));this.W.show();this.j=new g.E6(function(){g.rd(this.J.getRootNode(),"ytp-cards-teaser-shown");this.J.V("player_new_info_card_format")&&!g.mj(this.J.N())&&this.vx.oT();this.TL()},0,this); this.j.start();this.vx.gg(!1);this.Y=new g.E6(this.oT,580+Z.durationMs,this);this.Y.start();this.K.push(this.listen("mouseover",this.hK,this));this.K.push(this.listen("mouseout",this.Gk,this))}; g.A.TL=function(){if(!this.J.N().V("player_new_info_card_format")&&g.mj(this.J.N())&&this.RT){var Z=this.vx.element.offsetLeft,Q=g.xv("ytp-cards-button-icon"),z=this.J.isFullscreen()?54:36;if(Q){var K=Z+Q.offsetLeft;this.element.style.marginRight=this.vx.element.offsetParent.offsetWidth-Z-Q.offsetLeft-z+"px";this.element.style.marginLeft=K+"px"}}}; g.A.ez=function(){g.mj(this.J.N())&&this.J.R6()&&this.RT&&this.U.start()}; g.A.hK=function(){this.T.stop();this.Y&&this.Y.isActive()&&this.X.start()}; g.A.Gk=function(){this.X.stop();this.Y&&!this.Y.isActive()&&this.T.start()}; g.A.ZLr=function(){this.Y&&this.Y.stop()}; g.A.Dbp=function(){this.oT()}; g.A.Hi=function(){this.oT()}; g.A.oT=function(){!this.Y||this.S&&this.S.isActive()||(g.r1("iv-teaser-hidden"),this.W.hide(),g.jn(this.J.getRootNode(),"ytp-cards-teaser-shown"),this.S=new g.E6(function(){for(var Z=g.n(this.K),Q=Z.next();!Q.done;Q=Z.next())this.oy(Q.value);this.K=[];this.Y&&(this.Y.dispose(),this.Y=null);this.vx.gg(!0);!this.J.Ls()&&this.J.N().V("enable_error_corrections_infocards_icon_web")&&this.vx.oT()},330,this),this.S.start())}; g.A.y5=function(){return this.RT&&this.W.state!==4}; g.A.gr=function(){var Z=this.J.getRootNode();Z&&g.jn(Z,"ytp-cards-teaser-shown");g.DH(this.j,this.S,this.Y);g.x.prototype.gr.call(this)};var mQ={},bj=(mQ.BUTTON="ytp-button",mQ.TITLE_NOTIFICATIONS="ytp-title-notifications",mQ.TITLE_NOTIFICATIONS_ON="ytp-title-notifications-on",mQ.TITLE_NOTIFICATIONS_OFF="ytp-title-notifications-off",mQ.NOTIFICATIONS_ENABLED="ytp-notifications-enabled",mQ);g.L(rzG,g.x);rzG.prototype.onClick=function(){this.api.logClick(this.element);var Z=!this.Y;this.updateValue("label",Z?"Stop getting notified about every new video":"Get notified about every new video");this.updateValue("pressed",Z);Az9(this,Z)};g.BG("yt.pubsub.publish",g.r1);g.L(g.qC,g.x);g.qC.prototype.W=function(){window.location.reload()}; g.qC.prototype.Y=function(){g.rd(this.element,"ytp-sb-subscribed")}; g.qC.prototype.j=function(){g.jn(this.element,"ytp-sb-subscribed")};g.L(YOu,g.x);g.A=YOu.prototype;g.A.UT$=function(Z){this.api.logClick(this.j);var Q=this.api.N();Q.j||Q.Du?T3d(this)&&(this.isExpanded()?this.T3():this.OT()):g.M0(window,g84(this));Z.preventDefault()}; g.A.Nk=function(){$$W(this);this.channel.classList.remove("ytp-title-expanded")}; g.A.isExpanded=function(){return this.channel.classList.contains("ytp-title-expanded")}; g.A.OT=function(){if(T3d(this)&&!this.isExpanded()){this.updateValue("flyoutUnfocusable","false");this.updateValue("channelTitleFocusable","0");this.updateValue("shouldHideExpandedTitleForA11y","false");this.updateValue("shouldHideExpandedSubtitleForA11y","false");this.S&&this.S.stop();this.api.logVisibility(this.channelName,!0);this.subscribeButton&&(this.subscribeButton.show(),this.api.logVisibility(this.subscribeButton.element,!0));var Z=this.api.getVideoData();this.Y&&Z.TT&&Z.subscribed&&(this.Y.show(), this.api.logVisibility(this.Y.element,!0));this.channel.classList.add("ytp-title-expanded");this.channel.classList.add("ytp-title-show-expanded")}}; g.A.T3=function(){this.updateValue("flyoutUnfocusable","true");this.updateValue("channelTitleFocusable","-1");this.updateValue("shouldHideExpandedTitleForA11y","true");this.updateValue("shouldHideExpandedSubtitleForA11y","true");this.S&&this.S.start()}; g.A.E$=function(){var Z=this.api.N();this.Wh(!this.api.isEmbedsShortsMode());var Q=this.api.getVideoData(),z=this.api.N(),K=this.api.getVideoData();this.W=!1;var b=!!K.videoId&&!!K.F7&&!!K.profilePicture;this.api.getPresentingPlayerType()===2?this.W=b&&!!K.isListed&&!!K.author:g.mj(z)&&(this.W=b&&!g.ey(K)&&!z.S&&!(z.X&&this.api.getPlayerSize().width<200));z=Q.profilePicture;Z=g.mj(Z)?Q.expandedTitle:Q.author;z=z===void 0?"":z;Z=Z===void 0?"":Z;this.W?(this.T!==z&&(this.j.style.backgroundImage="url("+ z+")",this.T=z),this.updateValue("channelLogoLabel",g.fH("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:Z})),g.rd(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.jn(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.j,this.W&&this.L);this.subscribeButton&&(this.subscribeButton.channelId=Q.n6);this.updateValue("expandedTitle",Q.expandedTitle);this.updateValue("expandedSubtitle",Q.expandedSubtitle)}; g.A.yw=function(Z){g.x.prototype.yw.call(this,Z);this.api.logVisibility(this.j,this.W&&Z)};g.L(r$,g.Oq);r$.prototype.Y=function(Z){Z.defaultPrevented||Z.keyCode!==39||(this.element.click(),Z.preventDefault())};g.L(fCG,g.x);g.A=fCG.prototype;g.A.show=function(){g.x.prototype.show.call(this);this.element.tabIndex=0;this.element.focus();this.updateValue("userInfoFocusable","0");this.updateValue("userInfoFocusable2","0")}; g.A.hide=function(){g.x.prototype.hide.call(this);this.updateValue("userInfoFocusable","-1");this.updateValue("userInfoFocusable2","-1")}; g.A.d$=function(Z){var Q=ys(Z),z=g.bG(this.closeButton.element,Q),K=g.bG(this.element,Q);Z=this.Y&&g.bG(this.Y,Q)&&g.Is(Z);Q&&(K||Z)&&!z||this.hide()}; g.A.Bi=function(){D$f(g.O_(this.fN.N()),"user_info_panel",function(){window.location.reload()})}; g.A.E$=function(){var Z=this.fN.N(),Q={USER_NAME:Z.userDisplayName,USER_EMAIL:Z.Vr};this.updateValue("icon",dmd());this.updateValue("watchingAsUsername",g.fH("Watching as $USER_NAME",Q));Z.Vr?this.updateValue("watchingAsEmail",g.fH("($USER_EMAIL)",Q)):this.updateValue("watchingAsEmail","")};g.L(LvM,g.UB);g.A=LvM.prototype;g.A.sG=function(){this.Kd.oT()}; g.A.jyf=function(){QZ(this.YF.element)}; g.A.zhG=function(){jb(this,this.J.getDebugText(!0))&&zh(this.XR,Ty())}; g.A.LZf=function(){jb(this,this.J.getVideoEmbedCode())&&zh(this.XR,fWM());this.J.logClick(this.Y6.element);Mj("EMBED",this.J.getVideoData().videoId,this.J.getPlaylistId()||"")}; g.A.Vpu=function(){jb(this,this.J.getVideoUrl(!0,!0))&&zh(this.XR,ni());this.J.logClick(this.getVideoUrl.element);Mj("COPY_PASTE",this.J.getVideoData().videoId,this.J.getPlaylistId()||"")}; g.A.ndY=function(){jb(this,this.J.getVideoUrl(!1,!0))&&zh(this.XR,ni());this.J.logClick(this.w6.element);Mj("COPY_PASTE",this.J.getVideoData().videoId,this.J.getPlaylistId()||"")}; g.A.onLoopChange=function(Z){var Q;(Q=this.jy)==null||Eq(Q,Z)}; g.A.kzG=function(){this.J.setLoopVideo(this.jy.getValue());this.Kd.oT();this.J.logClick(this.jy.element)}; g.A.zoJ=function(Z){this.J.reportPlaybackIssue();if(g.lr(Z,this.J,!BZ(this.J.N()))){Z=this.J;var Q=Z.app.getFeedbackProductData();Z.wX("onFeedbackStartRequest",Q);Z.isFullscreen()&&Z.toggleFullscreen()}this.Kd.oT()}; g.A.sWf=function(){g.br(this.J,"isVideoInfoVisible",[])?g.br(this.J,"hideVideoInfo",[]):g.br(this.J,"showVideoInfo",[]);this.Kd.oT()}; g.A.NXI=function(){this.b7&&(this.yO||(this.yO=new fCG(this.J,this.b7.element),g.W(this,this.yO),g.NZ(this.J,this.yO.element,4)),this.yO.show(),this.Kd.oT(),this.J.logClick(this.b7.element))}; g.A.onVideoDataChange=function(Z,Q){this.dK(Q)}; g.A.dK=function(Z){var Q=this.J.N(),z=this.J.getPresentingPlayerType()===2,K=!z||Z.isListed;K=!Q.SJ&&!!Z.videoId&&K;Q.playerStyle!=="play"?Q="https://support.google.com/youtube/?p=report_playback":(Q={contact_type:"playbackissue",html5:1,ei:Z.eventId,v:Z.videoId,p:"movies_playback"},Z.j&&(Q.fmt=Z.j.itag),Z.clientPlaybackNonce&&(Q.cpn=Z.clientPlaybackNonce),Z.partnerId&&(Q.partnerid=Z.partnerId),Q=g.BK("//support.google.com/googleplay/",Q));this.Y6.Wh(K&&Z.allowEmbed);this.getVideoUrl.Wh(K);this.w6.Wh(K&& !Z.isLivePlayback);this.Mf.Wo(Q,"href");var b;(b=this.jy)==null||b.Wh(!Z.isLivePlayback&&!z);var q;(q=this.b7)==null||q.Wh(!z)}; g.A.yw=function(Z){g.UB.prototype.yw.call(this,Z);this.J.logVisibility(this.Y6.element,Z);this.J.logVisibility(this.getVideoUrl.element,Z);this.J.logVisibility(this.w6.element,Z);this.jy&&this.J.logVisibility(this.jy.element,Z);this.b7&&this.J.logVisibility(this.b7.element,Z)};g.L(m$9,g.o_);g.A=m$9.prototype;g.A.JT=function(Z){var Q=ys(Z);if(!(Q&&(AE(Q,"a")||AE(Q,null,"ytp-no-contextmenu"))||this.RT)){var z;this.P7=(Z=(z=Z.touches)==null?void 0:z.item(0))?new g.Yv(Z.clientX,Z.clientY):new g.Yv(0,0);this.SJ.start()}}; g.A.XW=function(){this.SJ.stop()}; g.A.iyB=function(){this.open(this.P7)}; g.A.O3=function(){if(this.S&&n8W(this.S)){var Z=n8W(this.S).element;Z.tabIndex=-1;Z.focus()}else this.element.tabIndex=-1,this.element.focus()}; g.A.show=function(){this.S||(this.S=new LvM(this.J,this,this.XR),g.W(this,this.S),g.By(this,this.S));this.S.onLoopChange(this.J.getLoopVideo());g.o_.prototype.show.call(this);this.J.logVisibility(this.element,!0);this.S.yw(!0)}; g.A.hide=function(){czu(this);g.o_.prototype.hide.call(this);this.J.logVisibility(this.element,!1);this.S&&this.S.yw(!1)}; g.A.Ie$=function(Z){var Q=ys(Z);this.RT||Q&&(AE(Q,"a")||AE(Q,null,"ytp-no-contextmenu"))||(Z.preventDefault(),this.open(new g.Yv(Z.pageX,Z.pageY)))}; g.A.Gz=function(Z){if(Z){var Q=Z.getBoundingClientRect();this.open(new g.Yv(Q.x,Q.y))}g.o_.prototype.Gz.call(this,Z)}; g.A.open=function(Z){ICd(this);var Q=this.J.getVideoData();g.vC(this.element,"ytp-dni",Q.BN);this.element.style.left="";this.element.style.top="";Z.x++;Z.y++;g.o_.prototype.Gz.call(this);var z=pW(this).body;Q=new wJ(0,Infinity,Infinity,0);var K=OD(z);for(var b=K.Y.body,q=K.Y.documentElement,r=zOG(K.Y);z=TKG(z);)if((!g.Fv||z.clientHeight!=0||z!=b)&&z!=b&&z!=q&&Xz(z,"overflow")!="visible"){var D=g.f4(z),v=new g.Yv(z.clientLeft,z.clientTop);D.x+=v.x;D.y+=v.y;Q.top=Math.max(Q.top,D.y);Q.right=Math.min(Q.right, D.x+z.clientWidth);Q.bottom=Math.min(Q.bottom,D.y+z.clientHeight);Q.left=Math.max(Q.left,D.x)}b=r.scrollLeft;r=r.scrollTop;Q.left=Math.max(Q.left,b);Q.top=Math.max(Q.top,r);K=Q5f(K.Y.defaultView||window);Q.right=Math.min(Q.right,b+K.width);Q.bottom=Math.min(Q.bottom,r+K.height);K=Q.top>=0&&Q.left>=0&&Q.bottom>Q.top&&Q.right>Q.left?Q:null;Q=this.size;Z=Z.clone();Q=Q.clone();K&&(r=Q,b=5,(b&65)==65&&(Z.x<K.left||Z.x>=K.right)&&(b&=-2),(b&132)==132&&(Z.y<K.top||Z.y>=K.bottom)&&(b&=-5),Z.x<K.left&&b&1&& (Z.x=K.left),b&16&&(q=Z.x,Z.x<K.left&&(Z.x=K.left),Z.x+r.width>K.right&&(r.width=Math.min(K.right-Z.x,q+r.width-K.left),r.width=Math.max(r.width,0))),Z.x+r.width>K.right&&b&1&&(Z.x=Math.max(K.right-r.width,K.left)),Z.y<K.top&&b&4&&(Z.y=K.top),b&32&&(q=Z.y,Z.y<K.top&&(Z.y=K.top),Z.y+r.height>K.bottom&&(r.height=Math.min(K.bottom-Z.y,q+r.height-K.top),r.height=Math.max(r.height,0))),Z.y+r.height>K.bottom&&b&4&&(Z.y=Math.max(K.bottom-r.height,K.top)));K=new g.ro(0,0,0,0);K.left=Z.x;K.top=Z.y;K.width= Q.width;K.height=Q.height;g.$s(this.element,new g.Yv(K.left,K.top));g.ib(this.W);this.W.Z(pW(this),"contextmenu",this.HL$);this.W.Z(this.J,"fullscreentoggled",this.onFullscreenToggled);this.W.Z(this.J,"pageTransition",this.Rg)}; g.A.HL$=function(Z){if(!Z.defaultPrevented){var Q=ys(Z);g.bG(this.element,Q)||this.oT();this.J.N().disableNativeContextMenu&&Z.preventDefault()}}; g.A.onFullscreenToggled=function(){this.oT();ICd(this)}; g.A.Rg=function(){this.oT()};g.L(Ds,g.x);Ds.prototype.onClick=function(){var Z=this,Q,z,K,b;return g.C(function(q){if(q.Y==1)return Q=Z.api.N(),z=Z.api.getVideoData(),K=Z.api.getPlaylistId(),b=Q.getVideoUrl(z.videoId,K,void 0,!0),g.P(q,d$9(Z,b),2);q.j&&yzn(Z);Z.api.logClick(Z.element);g.LX(q)})}; Ds.prototype.E$=function(){this.updateValue("icon",{B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},G:[{B:"path",KL:!0,D:"ytp-svg-fill",C:{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=Jz0(this);g.vC(this.element,"ytp-copylink-button-visible",this.visible); this.Wh(this.visible);this.tooltip.Bv();this.api.logVisibility(this.element,this.visible&&this.L)}; Ds.prototype.yw=function(Z){g.x.prototype.yw.call(this,Z);this.api.logVisibility(this.element,this.visible&&Z)}; Ds.prototype.gr=function(){g.x.prototype.gr.call(this);g.jn(this.element,"ytp-copylink-button-visible")};g.L(vR,g.x);vR.prototype.show=function(){g.x.prototype.show.call(this);g.lR(this.j)}; vR.prototype.hide=function(){this.W.stop();this.S=0;this.Ru("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.jn(this.element,"ytp-chapter-seek");g.jn(this.element,"ytp-time-seeking");g.x.prototype.hide.call(this)}; vR.prototype.ZS=function(Z,Q,z,K){this.S=Z===this.T?this.S+K:K;this.T=Z;var b=Z===-1?this.U:this.X;b&&this.J.logClick(b);this.K?this.j.stop():g.Qn(this.j);this.W.start();this.element.setAttribute("data-side",Z===-1?"back":"forward");var q=3*this.J.U$().getPlayerSize().height;b=this.J.U$().getPlayerSize();b=b.width/3-3*b.height;this.Y.style.width=q+"px";this.Y.style.height=q+"px";Z===1?(this.Y.style.left="",this.Y.style.right=b+"px"):Z===-1&&(this.Y.style.right="",this.Y.style.left=b+"px");var r=q* 2.5;q=r/2;var D=this.Ru("ytp-doubletap-ripple");D.style.width=r+"px";D.style.height=r+"px";Z===1?(Z=this.J.U$().getPlayerSize().width-Q+Math.abs(b),D.style.left="",D.style.right=Z-q+"px"):Z===-1&&(Z=Math.abs(b)+Q,D.style.right="",D.style.left=Z-q+"px");D.style.top="calc((33% + "+Math.round(z)+"px) - "+q+"px)";if(z=this.Ru("ytp-doubletap-ripple"))z.classList.remove("ytp-doubletap-ripple"),z.classList.add("ytp-doubletap-ripple");N30(this,this.K?this.S:K)};g.L(iCf,Hy);g.A=iCf.prototype;g.A.OP=function(Z){this.Vp||(this.Vp=new V9(this.J),g.W(this,this.Vp));var Q,z;if((Q=this.gq)==null?0:(z=Q.menu)==null?0:z.menuRenderer)this.Vp.open(this.gq.menu.menuRenderer,Z.target),Z.preventDefault()}; g.A.qp=function(){return!!this.Y}; g.A.b2=function(){return!!this.Y}; g.A.h8=function(Z){Z.target===this.overflowButton.element?Z.preventDefault():(this.Ph&&this.J.hG("innertubeCommand",this.Ph),this.lU(!1))}; g.A.AO=function(){this.lU(!0);var Z,Q;((Z=this.Y)==null?0:(Q=Z.bannerData)==null?0:Q.dismissedStatusKey)&&this.sA.push(this.Y.bannerData.dismissedStatusKey);this.DS()}; g.A.e4=function(){this.DS();Sb(this)}; g.A.DnY=function(Z){var Q=this,z;if(Z.id!==((z=this.Y)==null?void 0:z.identifier)){this.DS();z=g.n(this.JG);for(var K=z.next();!K.done;K=z.next()){var b=K.value,q=void 0,r=void 0;if((K=(q=b)==null?void 0:(r=q.bannerData)==null?void 0:r.itemData)&&b.identifier===Z.id){r=q=void 0;var D=((q=b)==null?void 0:(r=q.bannerData)==null?void 0:r.dismissedStatusKey)||"";if(this.sA.includes(D))break;this.Y=b;this.banner.element.setAttribute("aria-label",K.accessibilityLabel||"");K.trackingParams&&(this.W=!0,this.J.setTrackingParams(this.badge.element, K.trackingParams));this.U.show();p_(this);this.KN.Wh(!K.stayInApp);Wvf(this);PZd(this);XE(this);this.Ph=g.V(K.onTapCommand,Hc);if(b=g.V(K.menuOnTap,Hc))this.gq=g.V(b,FwR);b=void 0;this.banner.update({thumbnail:(b=(K.thumbnailSources||[])[0])==null?void 0:b.url,title:K.productTitle,price:K.priceReplacementText?K.priceReplacementText:K.price,salesOriginalPrice:pp9(this),priceDropReferencePrice:HCW(this),promotionText:CZd(this),priceA11yText:MVd(this),affiliateDisclaimer:K.affiliateDisclaimer,vendor:U$4(this)}); D=r=q=b=void 0;((b=K)==null?0:(q=b.hiddenProductOptions)==null?0:q.showDropCountdown)&&((r=K)==null?0:(D=r.hiddenProductOptions)==null?0:D.dropTimestampMs)&&(this.X7=new g.E6(function(){B3u(Q)},1E3),this.KN.hide(),this.countdownTimer.show(),B3u(this)); this.J.V("web_player_enable_featured_product_banner_exclusives_on_desktop")&&aCx(this)&&(this.ih=new g.E6(function(){Ri4(Q)},1E3),Ri4(this))}}}}; g.A.DS=function(){this.Y&&(this.Y=void 0,this.VA())}; g.A.onVideoDataChange=function(Z,Q){var z=this;Z==="dataloaded"&&Sb(this);var K,b,q;Z=g.V((K=Q.getWatchNextResponse())==null?void 0:(b=K.playerOverlays)==null?void 0:(q=b.playerOverlayRenderer)==null?void 0:q.productsInVideoOverlayRenderer,xYJ);this.overflowButton.show();this.dismissButton.hide();var r=Z==null?void 0:Z.featuredProductsEntityKey;this.trendingOfferEntityKey=Z==null?void 0:Z.trendingOfferEntityKey;this.JG.length||(o8u(this,r),XE(this));var D;(D=this.fL)==null||D.call(this);this.fL=g.wv.subscribe(function(){o8u(z, r);XE(z)})}; g.A.gr=function(){Sb(this);Wvf(this);PZd(this);Hy.prototype.gr.call(this)};g.L(tVM,g.x);tVM.prototype.onClick=function(){this.J.logClick(this.element,this.j)};g.L(Fvu,g.CW);g.A=Fvu.prototype;g.A.show=function(){g.CW.prototype.show.call(this);this.J.publish("infopaneldetailvisibilitychange",!0);this.J.logVisibility(this.element,!0);eiX(this,!0)}; g.A.hide=function(){g.CW.prototype.hide.call(this);this.J.publish("infopaneldetailvisibilitychange",!1);this.J.logVisibility(this.element,!1);eiX(this,!1)}; g.A.getId=function(){return this.W}; g.A.cH=function(){return this.itemData.length}; g.A.onVideoDataChange=function(Z,Q){if(Q){var z,K,b,q;this.update({title:((z=Q.Ju)==null?void 0:(K=z.title)==null?void 0:K.content)||"",body:((b=Q.Ju)==null?void 0:(q=b.bodyText)==null?void 0:q.content)||""});var r;Z=((r=Q.Ju)==null?void 0:r.trackingParams)||null;this.J.setTrackingParams(this.element,Z);r=g.n(this.itemData);for(Z=r.next();!Z.done;Z=r.next())Z.value.dispose();this.itemData=[];var D;if((D=Q.Ju)==null?0:D.ctaButtons)for(Q=g.n(Q.Ju.ctaButtons),D=Q.next();!D.done;D=Q.next())if(D=g.V(D.value, o$R))D=new tVM(this.J,D,this.Y),D.hH&&(this.itemData.push(D),D.zf(this.items))}}; g.A.gr=function(){this.hide();g.CW.prototype.gr.call(this)};g.L(lC4,g.x);g.A=lC4.prototype;g.A.onVideoDataChange=function(Z,Q){E8n(this,Q);this.gf&&Z6x(this,this.gf)}; g.A.z9=function(Z){var Q=this.J.getVideoData();this.videoId!==Q.videoId&&E8n(this,Q);Z6x(this,Z.state);this.gf=Z.state}; g.A.OQ=function(Z){(this.W=Z)?this.hide():this.Y&&this.show()}; g.A.KR=function(){this.j||this.Gz();this.showControls=!0}; g.A.bO=function(){this.j||this.oT();this.showControls=!1}; g.A.Gz=function(){var Z;if((Z=this.J)==null?0:Z.V("embeds_web_enable_info_panel_sizing_fix")){var Q;Z=(Q=this.J)==null?void 0:Q.getPlayerSize();Q=Z.width<380;var z;Z=Z.height<(((z=this.J)==null?0:z.isEmbedsShortsMode())?400:280);var K,b;if((((K=this.J)==null?0:K.getPlayerStateObject().isCued())||((b=this.J)==null?0:g.t(b.getPlayerStateObject(),1024)))&&Q&&Z)return}this.Y&&!this.W&&(this.S.show(),this.J.publish("infopanelpreviewvisibilitychange",!0),this.J.logVisibility(this.element,!0))}; g.A.oT=function(){this.Y&&!this.W&&(this.S.hide(),this.J.publish("infopanelpreviewvisibilitychange",!1),this.J.logVisibility(this.element,!1))}; g.A.Npp=function(){this.j=!1;this.showControls||this.oT()};var s5R={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(s5R).reduce(function(Z,Q){Z[s5R[Q]]=Q;return Z},{}); var Zuz={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(Zuz).reduce(function(Z,Q){Z[Zuz[Q]]=Q;return Z},{}); var Q5X={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(Q5X).reduce(function(Z,Q){Z[Q5X[Q]]=Q;return Z},{});var zOQ,K2R;zOQ=[{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"}];K2R=[{option:0,text:$b(0)},{option:.25,text:$b(.25)},{option:.5,text:$b(.5)},{option:.75,text:$b(.75)},{option:1,text:$b(1)}]; g.Lb=[{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:zOQ},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:$b(.5)},{option:-1,text:$b(.75)},{option:0,text:$b(1)},{option:1,text:$b(1.5)},{option:2, text:$b(2)},{option:3,text:$b(3)},{option:4,text:$b(4)}]},{option:"background",text:"Background color",options:zOQ},{option:"backgroundOpacity",text:"Background opacity",options:K2R},{option:"windowColor",text:"Window color",options:zOQ},{option:"windowOpacity",text:"Window opacity",options:K2R},{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:$b(.25)},{option:.5,text:$b(.5)},{option:.75,text:$b(.75)},{option:1,text:$b(1)}]}];var buz=[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.L(rpX,g.M5);g.A=rpX.prototype; g.A.RV=function(Z){Z.repeat||(this.S.kQ=!1);var Q=!1,z=Z.keyCode,K=ys(Z),b=!Z.altKey&&!Z.ctrlKey&&!Z.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||buz.includes(z)),q=!1,r=!1,D=this.api.N();Z.defaultPrevented?(b=!1,r=!0):D.yk&&!this.api.isMutedByEmbedsMutedAutoplay()&&(b=!1);if(z===9)Q=!0;else{if(K)switch(z){case 32:case 13:if(K.tagName==="BUTTON"||K.tagName==="A"||K.tagName==="INPUT")Q=!0,b=!1;else if(b){var v=K.getAttribute("role");!v||v!=="option"&&v!=="button"&&v.indexOf("menuitem")!==0|| (Q=!0,K.click(),q=!0)}break;case 37:case 39:case 36:case 35:Q=K.getAttribute("role")==="slider";break;case 38:case 40:v=K.getAttribute("role"),K=z===38?K.previousSibling:K.nextSibling,v==="slider"?Q=!0:b&&(v==="option"?(K&&K.getAttribute("role")==="option"&&K.focus(),q=Q=!0):v&&v.indexOf("menuitem")===0&&(K&&K.hasAttribute("role")&&K.getAttribute("role").indexOf("menuitem")===0&&K.focus(),q=Q=!0))}if(b&&!q)switch(z){case 38:q=Math.min(this.api.getVolume()+5,100);Kb(this.XR,q,!1);this.api.setVolume(q); r=q=!0;break;case 40:q=Math.max(this.api.getVolume()-5,0);Kb(this.XR,q,!0);this.api.setVolume(q);r=q=!0;break;case 36:this.api.xE()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),r=q=!0);break;case 35:this.api.xE()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),r=q=!0)}}Q&&fb(this,!0);(Q||r)&&this.I6.tP();(q||b&&this.handleGlobalKeyDown(z,Z.shiftKey,Z.ctrlKey,Z.altKey,Z.metaKey,Z.key,Z.code,Z.repeat))&&Z.preventDefault();D.T&&(Z={keyCode:Z.keyCode, altKey:Z.altKey,ctrlKey:Z.ctrlKey,metaKey:Z.metaKey,shiftKey:Z.shiftKey,handled:Z.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.ZG("onKeyPress",Z))}; g.A.JY=function(Z){var Q=Z.keyCode;(!this.api.V("web_player_spacebar_control_bugfix")||this.api.V("web_player_spacebar_control_bugfix")&&!this.W)&&this.handleGlobalKeyUp(Q,Z.shiftKey,Z.ctrlKey,Z.altKey,Z.metaKey,Z.key,Z.code)&&Z.preventDefault()}; g.A.handleGlobalKeyUp=function(Z,Q,z,K,b,q,r){this.api.publish("keyboardserviceglobalkeyup",{keyCode:Z,shiftKey:Q,ctrlKey:z,altKey:K,metaKey:b,key:q,code:r});Q=!1;if(this.S.kQ)return Q;(z=g.y7(this.api.W4()))&&(z=z.z7)&&z.RT&&(z.dn(Z),Q=!0);switch(Z){case 9:fb(this,!0);Q=!0;break;case 32:if(this.api.V("web_speedmaster_spacebar_control")&&(!this.api.V("web_player_spacebar_control_bugfix")&&!this.W||this.api.V("web_player_spacebar_control_bugfix"))&&!this.api.N().yk){var D,v;Z=(D=this.progressBar)== null?void 0:(v=D.j)==null?void 0:v.isEnabled;Q=this.nV(Z)}}return Q}; g.A.handleGlobalKeyDown=function(Z,Q,z,K,b,q,r,D){D||(this.S.kQ=!1);var v=!1,Y=this.api.N();if(Y.yk&&!this.api.isMutedByEmbedsMutedAutoplay())return v;var X=g.y7(this.api.W4());if(X&&(X=X.z7)&&X.RT)switch(Z){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:v=X.PW(Z)}Y.K||v||(v=q||String.fromCharCode(Z).toLowerCase(),this.j+=v,"awesome".indexOf(this.j)===0?(v=!0,7===this.j.length&&GI0(this.api.getRootNode(),"ytp-color-party")):(this.j=v,v="awesome".indexOf(this.j)===0));if(!v&&(!this.api.isMutedByEmbedsMutedAutoplay()|| buz.includes(Z))){var S=this.api.getVideoData(),T,f;X=(T=this.progressBar)==null?void 0:(f=T.j)==null?void 0:f.isEnabled;T=S?S.Om:[];f=tZ?K:z;switch(Z){case 80:Q&&!Y.Vp&&(zh(this.XR,GSG(),"Previous"),this.api.previousVideo(),v=!0);break;case 78:Q&&!Y.Vp&&(zh(this.XR,cI(),"Next"),this.api.nextVideo(),v=!0);break;case 74:this.api.xE()&&(this.api.startSeekCsiAction(),this.Y?this.api.V("enable_key_press_seek_logging")?(v=h3(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),g$(this.Y, -1,10,v)):g$(this.Y,-1,10):zh(this.XR,{B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},G:[{B:"path",KL:!0,D:"ytp-svg-fill",C:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z M 16.9,22 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 -0.2,0 -0.4,.1 -0.6,.1 -0.2,0 -0.4,0 -0.6,-0.1 -0.2,-0.1 -0.3,-0.2 -0.5,-0.3 -0.2,-0.1 -0.2,-0.3 -0.3,-0.6 -0.1,-0.3 -0.1,-0.5 -0.1,-0.8 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.9,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}), this.api.seekBy(-10*this.api.getPlaybackRate(),void 0,void 0,73),v=!0);break;case 76:this.api.xE()&&(this.api.startSeekCsiAction(),this.Y?this.api.V("enable_key_press_seek_logging")?(v=h3(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),g$(this.Y,1,10,v)):g$(this.Y,1,10):zh(this.XR,{B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},G:[{B:"path",KL:!0,D:"ytp-svg-fill",C:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.8,3 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 C 20,21.9 19.8,22 19.6,22 19.4,22 19.2,22 19,21.9 18.8,21.8 18.7,21.7 18.5,21.6 18.3,21.5 18.3,21.3 18.2,21 18.1,20.7 18.1,20.5 18.1,20.2 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.8,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}), this.api.seekBy(10*this.api.getPlaybackRate(),void 0,void 0,74),v=!0);break;case 37:this.api.xE()&&(this.api.startSeekCsiAction(),f?(f=Kz0(T,this.api.getCurrentTime()*1E3),f!==-1&&this.Y!=null&&(G_f(this.Y,-1,T[f].title),this.api.seekTo(T[f].startTime/1E3,void 0,void 0,void 0,53),v=!0)):(this.Y?this.api.V("enable_key_press_seek_logging")?(v=h3(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"),g$(this.Y,-1,5,v)):g$(this.Y,-1,5):zh(this.XR,{B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36", width:"100%"},G:[{B:"path",KL:!0,D:"ytp-svg-fill",C:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z m -1.3,8.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.4,.3 C 18.5,22 18.2,22 18,22 17.8,22 17.6,22 17.5,21.9 17.4,21.8 17.2,21.8 17,21.7 16.8,21.6 16.8,21.5 16.7,21.3 16.6,21.1 16.6,21 16.6,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.5,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.7 z"}}]}), this.api.seekBy(-5*this.api.getPlaybackRate(),void 0,void 0,71),v=!0));break;case 39:this.api.xE()&&(this.api.startSeekCsiAction(),f?(f=z1X(T,this.api.getCurrentTime()*1E3),f!==-1&&this.Y!=null&&(G_f(this.Y,1,T[f].title),this.api.seekTo(T[f].startTime/1E3,void 0,void 0,void 0,52),v=!0)):(this.Y!=null?this.api.V("enable_key_press_seek_logging")?(v=h3(this,5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),g$(this.Y,1,5,v)):g$(this.Y,1,5):zh(this.XR,{B:"svg",C:{height:"100%",version:"1.1", viewBox:"0 0 36 36",width:"100%"},G:[{B:"path",KL:!0,D:"ytp-svg-fill",C:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.7,.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.5,.3 C 18.3,22 18.1,22 17.9,22 17.7,22 17.5,22 17.4,21.9 17.3,21.8 17.1,21.8 16.9,21.7 16.7,21.6 16.7,21.5 16.6,21.3 16.5,21.1 16.5,21 16.5,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.4,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.6 z"}}]}), this.api.seekBy(5*this.api.getPlaybackRate(),void 0,void 0,72),v=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),Kb(this.XR,this.api.getVolume(),!1)):(this.api.mute(),Kb(this.XR,0,!0));v=!0;break;case 32:v=this.api.V("web_speedmaster_spacebar_control")?!this.api.N().Vp:this.nV(X);break;case 75:v=this.nV(X);break;case 190:Q?Y.enableSpeedOptions&&j2G(this)&&(v=this.api.getPlaybackRate(),this.api.setPlaybackRate(v+.25,!0),zi0(this.XR,!1),v=!0):this.api.xE()&&(this.step(1),v=!0);break;case 188:Q? Y.enableSpeedOptions&&j2G(this)&&(v=this.api.getPlaybackRate(),this.api.setPlaybackRate(v-.25,!0),zi0(this.XR,!0),v=!0):this.api.xE()&&(this.step(-1),v=!0);break;case 70:Egn(this.api)&&(this.api.toggleFullscreen().catch(function(){}),v=!0); break;case 27:X?(this.progressBar.Gb(),v=!0):this.K()&&(v=!0)}if(Y.controlsType!=="3")switch(Z){case 67:g.Rq(this.api.W4())&&(Y=this.api.getOption("captions","track"),this.api.toggleSubtitles(),Kvu(this.XR,!Y||Y&&!Y.displayName),v=!0);break;case 79:nb(this,"textOpacity");break;case 87:nb(this,"windowOpacity");break;case 187:case 61:nb(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:nb(this,"fontSizeIncrement",!0,!0)}var h;Q||z||K||(Z>=48&&Z<=57?h=Z-48:Z>=96&&Z<=105&&(h=Z-96));h!=null&&this.api.xE()&& (this.api.startSeekCsiAction(),Y=this.api.getProgressState(),this.api.seekTo(h/10*(Y.seekableEnd-Y.seekableStart)+Y.seekableStart,void 0,void 0,void 0,81),v=!0);v&&this.I6.tP()}this.W||this.api.publish("keyboardserviceglobalkeydown",{keyCode:Z,shiftKey:Q,ctrlKey:z,altKey:K,metaKey:b,key:q,code:r,repeat:D},this.S);return v}; g.A.step=function(Z){this.api.xE();if(this.api.getPlayerStateObject().isPaused()){var Q=this.api.getVideoData().j;Q&&(Q=Q.video)&&this.api.seekBy(Z/(Q.fps||30),void 0,void 0,Z>0?77:78)}}; g.A.nV=function(Z){if(!this.api.N().Vp){var Q;var z,K=(Q=this.api.getVideoData())==null?void 0:(z=Q.getPlayerResponse())==null?void 0:z.playabilityStatus;if(K){var b;Q=((b=g.V(K.miniplayer,QcJ))==null?void 0:b.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else Q=!1;Q&&this.api.hG("onExpandMiniplayer");Z?this.progressBar.V$():(Z=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.XR.dg(Z),Z?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.A.gr=function(){g.Qn(this.L);g.M5.prototype.gr.call(this)};g.L(g.cR,g.x);g.cR.prototype.Re=Qx(11); g.cR.prototype.E$=function(){var Z=this.J.N(),Q=Z.S||this.J.V("web_player_hide_overflow_button_if_empty_menu")&&this.uJ.isEmpty();Z=g.mj(Z)&&g.IT(this.J)&&g.t(this.J.getPlayerStateObject(),128);var z=this.J.getPlayerSize();this.visible=this.J.R6()&&!Z&&z.width>=240&&!g.ey(this.J.getVideoData())&&!Q&&!this.Y&&!this.J.isEmbedsShortsMode();g.vC(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.J.Bv();this.J.logVisibility(this.element,this.visible&&this.L)}; g.cR.prototype.yw=function(Z){g.x.prototype.yw.call(this,Z);this.J.logVisibility(this.element,this.visible&&Z)}; g.cR.prototype.gr=function(){g.x.prototype.gr.call(this);g.jn(this.element,"ytp-overflow-button-visible")};g.L(DLn,g.CW);g.A=DLn.prototype;g.A.LR=function(Z){Z=ys(Z);g.bG(this.element,Z)&&(g.bG(this.Y,Z)||g.bG(this.closeButton,Z)||Hq(this))}; g.A.oT=function(){g.CW.prototype.oT.call(this);this.J.E9(this.element)}; g.A.show=function(){this.RT&&this.J.publish("OVERFLOW_PANEL_OPENED");g.CW.prototype.show.call(this);this.element.setAttribute("aria-modal","true");gcX(this,!0)}; g.A.hide=function(){g.CW.prototype.hide.call(this);this.element.removeAttribute("aria-modal");gcX(this,!1)}; g.A.onFullscreenToggled=function(Z){!Z&&this.y5()&&Hq(this)}; g.A.isEmpty=function(){return this.actionButtons.length===0}; g.A.focus=function(){for(var Z=g.n(this.actionButtons),Q=Z.next();!Q.done;Q=Z.next())if(Q=Q.value,Q.RT){Q.focus();break}};g.L(YRG,g.x);YRG.prototype.onClick=function(Z){g.lr(Z,this.api)&&this.api.playVideoAt(this.index)};g.L(XmX,g.CW);g.A=XmX.prototype;g.A.show=function(){g.CW.prototype.show.call(this);this.Y.Z(this.api,"videodatachange",this.Et);this.Y.Z(this.api,"onPlaylistUpdate",this.Et);this.Et()}; g.A.hide=function(){g.CW.prototype.hide.call(this);g.ib(this.Y);this.updatePlaylist(null)}; g.A.Et=function(){this.updatePlaylist(this.api.getPlaylist());this.api.N().S&&(this.Ru("ytp-playlist-menu-title-name").removeAttribute("href"),this.S&&(this.oy(this.S),this.S=null))}; g.A.GR=function(){var Z=this.playlist,Q=Z.author,z=Q?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",K={CURRENT_POSITION:String(Z.index+1),PLAYLIST_LENGTH:String(Z.getLength())};Q&&(K.AUTHOR=Q);this.update({title:Z.title,subtitle:g.fH(z,K),playlisturl:this.api.getVideoUrl(!0)});Q=Z.j;if(Q===this.W)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[Z.index];else{z=g.n(this.playlistData);for(K=z.next();!K.done;K=z.next())K.value.dispose(); z=Z.getLength();this.playlistData=[];for(K=0;K<z;K++){var b=new YRG(this.api,Z,K);this.playlistData.push(b);b.zf(this.items)}this.selected=this.playlistData[Z.index];this.W=Q}this.selected&&this.selected.element.setAttribute("aria-checked","true")}; g.A.pgu=function(Z){var Q=this.api.getVideoUrl(!0);g.sV(Q,this.api,Z)}; g.A.updatePlaylist=function(Z){this.playlist!==Z?(this.playlist&&this.playlist.unsubscribe("shuffle",this.GR,this),this.playlist=Z,this.W=null,Z?(Z.subscribe("shuffle",this.GR,this),this.GR()):this.RT&&this.hide()):this.playlist&&this.GR()}; g.A.focus=function(){this.selected.focus()}; g.A.gr=function(){this.hide();g.CW.prototype.gr.call(this)};g.L(ms,g.x);ms.prototype.hide=function(){g.x.prototype.hide.call(this);this.yw(!1);this.api.Bv()}; ms.prototype.E$=function(){var Z=g.mj(this.api.N());g.vC(this.element,"ytp-playlist-menu-button-tiny",this.api.U$().getPlayerSize().width<400&&!Z);this.api.isEmbedsShortsMode()?this.hide():this.playlist&&this.api.getPresentingPlayerType()!==2?(this.update({text:g.fH("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.getLength())}),title:g.fH("Playlist: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}),this.RT||(this.show(), this.api.Bv()),this.visible=!0,this.yw(!0)):this.RT&&this.hide()}; ms.prototype.yw=function(Z){g.x.prototype.yw.call(this,Z);this.api.logVisibility(this.element,this.visible&&Z)}; ms.prototype.Y=function(){this.playlist&&this.playlist.unsubscribe("shuffle",this.E$,this);(this.playlist=this.api.getPlaylist())&&this.playlist.subscribe("shuffle",this.E$,this);this.E$()};g.L(SRX,g.x);g.A=SRX.prototype;g.A.nR=function(){this.W?h1u(this):fen(this)}; g.A.VL=function(){this.W?(IX(this),this.T=!0):fen(this)}; g.A.fIN=function(){this.K=!0;this.I8(1);this.J.publish("promotooltipacceptbuttonclicked",this.acceptButton);IX(this);this.j&&this.J.logClick(this.acceptButton)}; g.A.WZY=function(){this.K=!0;this.I8(2);IX(this);this.j&&this.J.logClick(this.dismissButton)}; g.A.FX=function(Z){if(this.J.getPresentingPlayerType()===1||this.J.getPresentingPlayerType()===2&&this.X){var Q=!0,z=g.xv("ytp-ad-overlay-ad-info-dialog-container"),K=g.xv("ytp-ad-player-overlay-layout"),b=ys(Z);if(this.S&&b&&g.bG(this.S,b))this.S=null;else{this.J.getPresentingPlayerType()===1&&b&&Array.from(b.classList).forEach(function(v){if(v.startsWith("ytp-ad")||v.startsWith("ytp-skip-ad"))Q=!1}); var q=Lzr(this.tooltipRenderer),r;if(((r=this.tooltipRenderer.dismissStrategy)==null?void 0:r.type)==="TOOLTIP_DISMISS_TYPE_TAP_ANYWHERE")q&&(Q=Q&&!g.bG(this.element,b));else{var D;((D=this.tooltipRenderer.dismissStrategy)==null?void 0:D.type)==="TOOLTIP_DISMISS_TYPE_TAP_INTERNAL"&&(Q=q?!1:Q&&g.bG(this.element,b))}this.Y&&this.RT&&!z&&!K&&(!b||Q&&g.Is(Z))&&(this.K=!0,IX(this))}}}; g.A.I8=function(Z){var Q=this.tooltipRenderer.promoConfig;if(Q){switch(Z){case 0:var z;if((z=Q.impressionEndpoints)==null?0:z.length)var K=Q.impressionEndpoints[0];break;case 1:K=Q.acceptCommand;break;case 2:K=Q.dismissCommand}var b;Z=(b=g.V(K,Ozo))==null?void 0:b.feedbackToken;K&&Z&&(b={feedbackTokens:[Z]},Z=this.J.Na(),(Z==null?0:hkW(K,Z.d3))&&xp(Z,K,b))}}; g.A.pL=function(){this.T||(this.Y||(this.Y=$L0(this)),h1u(this))}; var TSG={"ytp-settings-button":g.dV()};g.L(J3,g.x);J3.prototype.onStateChange=function(Z){this.Q3(Z.state)}; J3.prototype.Q3=function(Z){this.Wh(g.t(Z,2))}; J3.prototype.onClick=function(){this.J.getPlayerStateObject().isOrWillBePlaying();this.J.playVideo()};g.L(ym,g.x);ym.prototype.onClick=function(Z){this.api.logClick(this.element);var Q=g.BK(this.api.N().Ff,{focusSearch:"true"}),z={};g.br(this.api,"addEmbedsConversionTrackingParams",[z]);Q=g.BK(Q,z);var K;(z=(K=this.api.getVideoData().ue)==null?void 0:K.params)&&(Q=g.BK(Q,{bp:z}));g.M0(window,Q);Z.preventDefault()}; ym.prototype.Y=function(){if(this.api.V("embeds_web_enable_search_button")){var Z=this.api.N();var Q=this.api.getVideoData(),z=this.api.U$().getPlayerSize().width;Z=g.mj(Z)&&z>=this.j&&!Z.S&&!Q.isAd()&&!this.api.isEmbedsShortsMode()}else Z=!1;this.visible=Z;this.Wh(this.visible);g.vC(this.element,"ytp-search-button-visible",this.visible);g.vC(this.element,"ytp-show-search-title",!this.api.R6());this.api.logVisibility(this.element,this.visible&&this.L)}; ym.prototype.yw=function(Z){g.x.prototype.yw.call(this,Z);this.api.logVisibility(this.element,this.visible&&Z)};g.L(g.d$,g.x);g.A=g.d$.prototype;g.A.Jn=Qx(8);g.A.onClick=function(){var Z=this,Q=this.api.N(),z=this.api.getVideoData(this.api.getPresentingPlayerType()),K=this.api.getPlaylistId();Q=this.api.V("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):Q.getVideoUrl(z.videoId,K,void 0,!0);if(navigator.share)try{var b=navigator.share({title:z.title,url:Q});b instanceof Promise&&b.catch(function(q){cpX(Z,q)})}catch(q){q instanceof Error&&cpX(this,q)}else this.Y.ge(),Hq(this.S,this.element,!1); this.api.logClick(this.element)}; g.A.E$=function(){var Z=this.api.N(),Q=this.api.isEmbedsShortsMode();g.vC(this.element,"ytp-show-share-title",g.mj(Z)&&!Q);this.Y.Us()&&Q?(Z=(this.api.U$().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Dw(this.element,"right",Z+"px")):Q&&g.Dw(this.element,"right","0px");this.updateValue("icon",{B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},G:[{B:"path",KL:!0,D:"ytp-svg-fill",C:{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=ncx(this);g.vC(this.element,"ytp-share-button-visible",this.visible);this.Wh(this.visible);this.tooltip.Bv();this.api.logVisibility(this.element,ncx(this)&&this.L)}; g.A.yw=function(Z){g.x.prototype.yw.call(this,Z);this.api.logVisibility(this.element,this.visible&&Z)}; g.A.gr=function(){g.x.prototype.gr.call(this);g.jn(this.element,"ytp-share-button-visible")};g.L(IeG,g.CW);g.A=IeG.prototype;g.A.r$=function(Z){Z=ys(Z);g.bG(this.K,Z)||g.bG(this.closeButton,Z)||Hq(this)}; g.A.oT=function(){g.CW.prototype.oT.call(this);this.tooltip.E9(this.element);this.api.logVisibility(this.Y,!1);for(var Z=g.n(this.S),Q=Z.next();!Q.done;Q=Z.next())Q=Q.value,this.api.hasVe(Q.element)&&this.api.logVisibility(Q.element,!1)}; g.A.show=function(){var Z=this.RT;g.CW.prototype.show.call(this);this.E$();Z||this.api.hG("onSharePanelOpened")}; g.A.SAu=function(){this.RT&&this.E$()}; g.A.E$=function(){var Z=this;g.rd(this.element,"ytp-share-panel-loading");g.jn(this.element,"ytp-share-panel-fail");var Q=this.api.getVideoData(),z=this.api.getPlaylistId()&&this.W.checked;Q.getSharePanelCommand&&xp(this.api.Na(),Q.getSharePanelCommand,{includeListId:z}).then(function(K){Z.FI()||(g.jn(Z.element,"ytp-share-panel-loading"),ypn(Z,K))}); Q=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",Q);this.updateValue("linkText",Q);this.updateValue("shareLinkWithUrl",g.fH("Share link $URL",{URL:Q}));QZ(this.Y);this.api.logVisibility(this.Y,!0)}; g.A.onFullscreenToggled=function(Z){!Z&&this.y5()&&Hq(this)}; g.A.focus=function(){this.Y.focus()}; g.A.gr=function(){g.CW.prototype.gr.call(this);Jp4(this)};g.L(GPM,Hy);g.A=GPM.prototype;g.A.gr=function(){CyG(this);Hy.prototype.gr.call(this)}; g.A.h8=function(Z){Z.target!==this.dismissButton.element&&(this.lU(!1),this.J.hG("innertubeCommand",this.onClickCommand))}; g.A.AO=function(){this.s$=!0;this.lU(!0);this.VA()}; g.A.QyJ=function(Z){this.T=Z;this.VA()}; g.A.onVideoDataChange=function(Z,Q){if(Z=!!Q.videoId&&this.videoId!==Q.videoId)this.videoId=Q.videoId,this.s$=!1,this.P7=!0,this.X=this.SJ=!1,CyG(this),R1G(this,!1),this.j=this.Y=!1,Gh(this),i6d(this);if(Z||!Q.videoId)this.jJ=this.W=!1;var z,K;if(Q==null?0:(z=Q.getPlayerResponse())==null?0:(K=z.videoDetails)==null?0:K.isLiveContent)this.bz(!1);else{var b,q,r;Q=g.V((b=Q.getWatchNextResponse())==null?void 0:(q=b.playerOverlays)==null?void 0:(r=q.playerOverlayRenderer)==null?void 0:r.productsInVideoOverlayRenderer, xYJ);this.T=this.enabled=!1;if(Q){if(b=Q==null?void 0:Q.featuredProductsEntityKey){q=g.wv.getState().entities;var D;if((D=Dk(q,"featuredProductsEntity",b))==null?0:D.productsData){this.bz(!1);return}}this.enabled=!0;if(!this.W){var v;D=(v=Q.badgeInteractionLogging)==null?void 0:v.trackingParams;(this.W=!!D)&&this.J.setTrackingParams(this.badge.element,D||null)}if(!this.jJ){var Y;if(this.jJ=!((Y=Q.dismissButton)==null||!Y.trackingParams)){var X;this.J.setTrackingParams(this.dismissButton.element,((X= Q.dismissButton)==null?void 0:X.trackingParams)||null)}}Q.isContentForward&&(v=Q.productsData,R1G(this,!0),i6d(this),v=Py0(this,v),Y=[],v.length>0&&Y.push(v[0]),v.length>1&&(X=new g.x({B:"div",D:"ytp-suggested-action-more-products-icon"}),g.W(this,X),Y.push(X),Y.push.apply(Y,g.I(v.slice(1)))),this.K=new g.x({B:"div",G:Y,D:"ytp-suggested-action-content-forward-container"}),g.W(this,this.K),this.c7.element.append(this.K.element));this.text=g.SN(Q.text);var S;if(v=(S=Q.dismissButton)==null?void 0:S.a11yLabel)this.Zu= g.SN(v);this.onClickCommand=Q.onClickCommand;this.timing=Q.timing;this.df()}iyr(this);p_(this);this.VA()}}; g.A.qp=function(){return!this.T&&this.enabled&&!this.s$&&!this.J.R6()&&!this.F7&&(this.X||this.P7)}; g.A.Ng=function(Z){Hy.prototype.Ng.call(this,Z);if(this.Y||this.j)this.timing&&NC(this.timing.preview)&&(this.Y=!1,Gh(this),this.j=!1,Gh(this),this.J.US("shopping_overlay_preview_collapsed"),this.J.US("shopping_overlay_preview_expanded"),Z=ij(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),NC(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.J.US("shopping_overlay_expanded"),Z.end=this.timing.expanded.endSec*1E3),this.J.df([Z])), this.SJ=!0,p_(this);Gh(this)}; g.A.bz=function(Z){(this.X=Z)?(C_(this),p_(this,!1)):(CyG(this),this.tG.start());this.VA()}; g.A.df=function(Z){var Q=this.timing;Z=(Z===void 0?0:Z)+this.J.getCurrentTime();var z=[],K=Q.visible,b=Q.preview;Q=Q.expanded;NC(K)&&(dLn(K,Z),z.push(ij(K.startSec,K.endSec,"shopping_overlay_visible")));NC(b)&&(dLn(b,Z),K=b.startSec+1,z.push(ij(b.startSec,K,"shopping_overlay_preview_collapsed")),z.push(ij(K,b.endSec,"shopping_overlay_preview_expanded")));NC(Q)&&(dLn(Q,Z),z.push(ij(Q.startSec,Q.endSec,"shopping_overlay_expanded")));this.J.df(z)};g.L(Mv9,g.x); Mv9.prototype.E$=function(){var Z=this.api.N();this.Wh(g.mj(Z)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.RT);var Q=this.api.getVideoData(),z=!1;this.api.getPresentingPlayerType()===2?z=!!Q.videoId&&!!Q.isListed&&!!Q.author&&!!Q.F7&&!!Q.profilePicture:g.mj(Z)&&(z=!!Q.videoId&&!!Q.F7&&!!Q.profilePicture&&!g.ey(Q)&&!Z.S&&!(Z.X&&this.api.getPlayerSize().width<200));var K=Q.profilePicture;Z=g.mj(Z)?Q.expandedTitle:Q.author;K=K===void 0? "":K;Z=Z===void 0?"":Z;z?(this.j!==K&&(this.Y.style.backgroundImage="url("+K+")",this.j=K),this.updateValue("channelLogoLabel",g.fH("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:Z})),g.rd(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.jn(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.Y,z&&this.L);this.api.logVisibility(this.channelName,z&&this.L);this.subscribeButton&&(this.subscribeButton.channelId=Q.n6);this.updateValue("expandedTitle",Q.expandedTitle)};g.L(aX,g.CW);aX.prototype.show=function(){g.CW.prototype.show.call(this);this.Y.start()}; aX.prototype.hide=function(){g.CW.prototype.hide.call(this);this.Y.stop()}; aX.prototype.AL=function(Z,Q){Z==="dataloaded"&&((this.DH=Q.DH,this.Q7=Q.Q7,isNaN(this.DH)||isNaN(this.Q7))?this.S&&(this.J.US("intro"),this.J.removeEventListener(g.r7("intro"),this.T),this.J.removeEventListener(g.AH("intro"),this.K),this.J.removeEventListener("onShowControls",this.W),this.hide(),this.S=!1):(this.J.addEventListener(g.r7("intro"),this.T),this.J.addEventListener(g.AH("intro"),this.K),this.J.addEventListener("onShowControls",this.W),Z=new g.b6(this.DH,this.Q7,{priority:9,namespace:"intro"}), this.J.df([Z]),this.S=!0))};g.L(PR,g.x);PR.prototype.onClick=function(){this.J.zw()}; PR.prototype.E$=function(){var Z=!0;g.mj(this.J.N())&&(Z=Z&&this.J.U$().getPlayerSize().width>=480);this.Wh(Z);this.updateValue("icon",this.J.o6()?{B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},G:[{B:"path",KL:!0,C:{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"}}]}: {B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},G:[{B:"path",KL:!0,D:"ytp-svg-fill",C:{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.L(O6u,g.x);O6u.prototype.gr=function(){this.Y=null;g.x.prototype.gr.call(this)};g.L(RX,g.x);RX.prototype.onClick=function(){this.J.hG("innertubeCommand",this.j)}; RX.prototype.U=function(Z){Z!==this.K&&(this.update({title:Z,ariaLabel:Z}),this.K=Z);Z?this.show():this.hide()}; RX.prototype.X=function(){this.Y.disabled=this.j==null;g.vC(this.Y,"ytp-chapter-container-disabled",this.Y.disabled);this.E8()};g.L(Cb,RX);Cb.prototype.onClickCommand=function(Z){g.V(Z,eH)&&this.E8()}; Cb.prototype.updateVideoData=function(Z,Q){var z,K,b;Z=g.V((z=Q.getWatchNextResponse())==null?void 0:(K=z.playerOverlays)==null?void 0:(b=K.playerOverlayRenderer)==null?void 0:b.decoratedPlayerBarRenderer,nU);z=g.V(Z==null?void 0:Z.playerBarActionButton,g.RU);this.J.V("web_player_updated_entrypoint")&&(this.T=SZ(z==null?void 0:z.text));this.j=z==null?void 0:z.command;RX.prototype.X.call(this)}; Cb.prototype.E8=function(){var Z=this.J.V("web_player_updated_entrypoint")?this.T:"",Q=this.W.Y,z,K=((z=this.J.getLoopRange())==null?void 0:z.type)==="clips";if(Q.length>1&&!K){Z=this.J.getProgressState().current*1E3;z=Th(Q,Z);Z=Q[z].title||"Chapters";if(z!==this.currentIndex||this.S)this.J.hG("innertubeCommand",Q[z].onActiveCommand),this.currentIndex=z;this.S=!1}else this.S=!0;RX.prototype.U.call(this,Z)};g.L(pb,g.x);pb.prototype.K=function(Z){g.t(Z.state,32)?BSD(this,this.api.Mr()):this.RT&&(g.t(Z.state,16)||g.t(Z.state,1))||this.Y.hide()}; pb.prototype.qn=function(){var Z=this.api.getPlayerStateObject();(g.t(Z,32)||g.t(Z,16))&&Wzn(this)}; pb.prototype.T=function(){this.S=NaN;Wzn(this)}; pb.prototype.hide=function(){this.j&&BSD(this,null);g.x.prototype.hide.call(this)};g.L(VvX,g.x);g.A=VvX.prototype;g.A.onClick=function(){var Z=this;if(this.J.N().F7||this.J.N().X){this.J.logClick(this.element);try{this.J.toggleFullscreen().catch(function(Q){Z.Cc(Q)})}catch(Q){this.Cc(Q)}}else Hq(this.message,this.element,!0)}; g.A.Cc=function(Z){String(Z).includes("fullscreen error")?g.CO(Z):g.Rm(Z);this.n_()}; g.A.n_=function(){this.disable();this.message.Gz(this.element,!0)}; g.A.gL=function(){hW()===this.J.getRootNode()?this.S.start():(this.S.stop(),this.message&&this.message.hide())}; g.A.EG=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var Z=window.screen.width*.9,Q=window.screen.height*.9,z=Math.max(window.outerWidth,window.innerWidth),K=Math.max(window.outerHeight,window.innerHeight);if(z>K!==Z>Q){var b=z;z=K;K=b}Z>z&&Q>K&&this.n_()}}; g.A.disable=function(){var Z=this;if(!this.message){var Q=($T(["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.CW(this.J,{B:"div",nN:["ytp-popup","ytp-generic-popup"],C:{role:"alert",tabindex:"0"},G:[Q[0],{B:"a",C:{href:"https://support.google.com/youtube/answer/6276924", target:this.J.N().U},W7:Q[2]},Q[4]]},100,!0);this.message.hide();g.W(this,this.message);this.message.subscribe("show",function(z){Z.j.Sh(Z.message,z)}); g.NZ(this.J,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.Y)();this.Y=null}}; g.A.E$=function(){var Z=Egn(this.J),Q=this.J.N().X&&this.J.getPlayerSize().width<250;this.Wh(Z&&!Q);var z;((z=this.J.N())==null?0:z.V("embeds_use_parent_visibility_in_ve_logging"))?this.J.logVisibility(this.element,this.RT&&this.L):this.J.logVisibility(this.element,this.RT)}; g.A.Jg=function(Z){if(Z){var Q={B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},G:[{B:"g",D:"ytp-fullscreen-button-corner-2",G:[{B:"path",KL:!0,D:"ytp-svg-fill",C:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{B:"g",D:"ytp-fullscreen-button-corner-3",G:[{B:"path",KL:!0,D:"ytp-svg-fill",C:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{B:"g",D:"ytp-fullscreen-button-corner-0",G:[{B:"path",KL:!0,D:"ytp-svg-fill",C:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{B:"g", D:"ytp-fullscreen-button-corner-1",G:[{B:"path",KL:!0,D:"ytp-svg-fill",C:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};Z=g.h2(this.J,"Exit full screen","f");this.update({"data-title-no-tooltip":"Exit full screen"});document.activeElement===this.element&&this.J.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(z){g.CO(z)})}else Q={B:"svg", C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},G:[{B:"g",D:"ytp-fullscreen-button-corner-0",G:[{B:"path",KL:!0,D:"ytp-svg-fill",C:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{B:"g",D:"ytp-fullscreen-button-corner-1",G:[{B:"path",KL:!0,D:"ytp-svg-fill",C:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{B:"g",D:"ytp-fullscreen-button-corner-2",G:[{B:"path",KL:!0,D:"ytp-svg-fill",C:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{B:"g",D:"ytp-fullscreen-button-corner-3", G:[{B:"path",KL:!0,D:"ytp-svg-fill",C:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},Z=g.h2(this.J,"Full screen","f"),this.update({"data-title-no-tooltip":"Full screen"});Z=this.message?null:Z;this.update({title:Z,icon:Q});this.j.FJ().Bv()}; g.A.gr=function(){this.message||((0,this.Y)(),this.Y=null);g.x.prototype.gr.call(this)}; g.A.yw=function(Z){g.x.prototype.yw.call(this,Z);var Q;((Q=this.J.N())==null?0:Q.V("embeds_use_parent_visibility_in_ve_logging"))&&this.J.logVisibility(this.element,this.RT&&Z)};g.L(HR,g.x);HR.prototype.onClick=function(){this.J.logClick(this.element);this.J.seekBy(this.Y,!0);var Z=this.Y>0?1:-1,Q=Math.abs(this.Y),z=this.J.eK().yv;z&&g$(z,Z,Q);this.j.isActive()?this.S=!0:(Z=["ytp-jump-spin"],this.Y<0&&Z.push("backwards"),this.element.classList.add.apply(this.element.classList,g.I(Z)),g.lR(this.j))};g.L(MC,RX);MC.prototype.onClickCommand=function(Z){g.V(Z,kJY)&&this.E8()}; MC.prototype.updateVideoData=function(){var Z,Q;this.j=(Z=uQd(this))==null?void 0:(Q=Z.onTap)==null?void 0:Q.innertubeCommand;RX.prototype.X.call(this)}; MC.prototype.E8=function(){var Z="",Q=this.W.T,z,K=(z=uQd(this))==null?void 0:z.headerTitle;z=K?g.SN(K):"";var b;K=((b=this.J.getLoopRange())==null?void 0:b.type)==="clips";Q.length>1&&!K&&(Z=this.J.getProgressState().current*1E3,b=Q2n(Q,Z),Z=b!=null?Q[b].title:z,b!=null&&b!==this.currentIndex&&(this.J.hG("innertubeCommand",Q[b].onActiveCommand),this.currentIndex=b));RX.prototype.U.call(this,Z)};g.L(Uk,g.x);Uk.prototype.onClick=function(){this.J.hG("onCollapseMiniplayer");this.J.logClick(this.element)}; Uk.prototype.E$=function(){this.visible=!this.J.isFullscreen();this.Wh(this.visible);this.J.logVisibility(this.element,this.visible&&this.L)}; Uk.prototype.yw=function(Z){g.x.prototype.yw.call(this,Z);this.J.logVisibility(this.element,this.visible&&Z)};g.L(Ok,g.x);g.A=Ok.prototype;g.A.qH=function(Z){this.visible=Z.width>=300||this.KN;this.Wh(this.visible);this.J.logVisibility(this.element,this.visible&&this.L)}; g.A.Mpu=function(){this.J.N().tG?this.J.isMuted()?this.J.unMute():this.J.mute():Hq(this.message,this.element,!0);this.J.logClick(this.element)}; g.A.onVolumeChange=function(Z){this.setVolume(Z.volume,Z.muted)}; g.A.setVolume=function(Z,Q){var z=this,K=Q?0:Z/100,b=this.J.N();Z=K===0?1:Z>50?1:0;if(this.K!==Z){var q=this.SJ;isNaN(q)?Fzf(this,Z):SkX(this.JG,function(D){Fzf(z,q+(z.K-q)*D)},250); this.K=Z}K=K===0?1:0;if(this.W!==K){var r=this.U;isNaN(r)?e10(this,K):SkX(this.jJ,function(D){e10(z,r+(z.W-r)*D)},250); this.W=K}b.tG&&(b=g.h2(this.J,"Mute","m"),K=g.h2(this.J,"Unmute","m"),this.updateValue("title",Q?K:b),this.update({"data-title-no-tooltip":Q?"Unmute":"Mute"}),this.tooltip.Bv())}; g.A.yw=function(Z){g.x.prototype.yw.call(this,Z);this.J.logVisibility(this.element,this.visible&&Z)}; var xLX=["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"],tvn=["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.L(g.oX,g.x);g.A=g.oX.prototype;g.A.onStateChange=function(Z){this.Q3(Z.state);var Q;((Q=this.J.N())==null?0:Q.V("embeds_use_parent_visibility_in_ve_logging"))&&this.J.logVisibility(this.element,this.RT&&this.L)}; g.A.Q3=function(Z){var Q=g.md(this.J.getVideoData()),z=!1;Z.isOrWillBePlaying()?Z=Q?4:2:g.t(Z,2)?(Z=3,z=Q):Z=1;this.element.disabled=z;if(this.Y!==Z){Q=null;switch(Z){case 2:Q=g.h2(this.J,"Pause","k");this.update({"data-title-no-tooltip":"Pause"});break;case 3:Q="Replay";this.update({"data-title-no-tooltip":"Replay"});break;case 1:Q=g.h2(this.J,"Play","k");this.update({"data-title-no-tooltip":"Play"});break;case 4:Q="Stop live playback",this.update({"data-title-no-tooltip":"Stop live playback"})}Z=== 3?this.update({title:Q,icon:wmf(Z)}):(this.update({title:Q}),(Q=wmf(Z))&&this.Y&&this.Y!==3?T$n(this.transition,this.element,Q):this.updateValue("icon",Q));this.tooltip.Bv();this.Y=Z}}; g.A.onVideoDataChange=function(){g.vC(this.element,"ytp-play-button-playlist",g.IT(this.J))}; g.A.nV=function(Z){this.J.logClick(this.element);if(this.J.getPlayerStateObject().isOrWillBePlaying())this.J.pauseVideo();else{if(this.J.isMinimized()&&this.J.getPlayerStateObject().isCued()){var Q={},z;if((z=this.J.getVideoData())==null?0:z.K)Q.cttAuthInfo={token:this.J.getVideoData().K,videoId:this.J.getVideoData().videoId};BO("direct_playback",Q);this.J.hx().timerName="direct_playback"}else this.Y!==3||this.J.N().V("html5_no_csi_on_replay")||ny(this.J.hx());this.J.playVideo()}this.J.isMinimized()&& (Z==null?void 0:Z.type)==="click"&&this.element.blur()}; g.A.yw=function(Z){g.x.prototype.yw.call(this,Z);var Q;((Q=this.J.N())==null?0:Q.V("embeds_use_parent_visibility_in_ve_logging"))&&this.J.logVisibility(this.element,this.RT&&Z)};g.L(g.BR,g.x);g.A=g.BR.prototype;g.A.onVideoDataChange=function(){le9(this);this.W&&(this.oy(this.W),this.W=null);this.videoData=this.J.getVideoData(1);if(this.playlist=this.J.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.W=this.Z(this.J,"progresssync",this.uO);this.S=sSG(this);EcM(this);this.Dl(this.J.U$().getPlayerSize())}; g.A.Dl=function(Z){Z=Z===void 0?this.J.U$().getPlayerSize():Z;var Q,z=((Q=this.J.getLoopRange())==null?void 0:Q.type)==="clips";Z=(g.IT(this.J)||this.Y&&g.Ge(this.J)&&!this.J.V("web_hide_next_button")||Zq9(this))&&!z&&(this.Y||Z.width>=400);this.Wh(Z);this.J.logVisibility(this.element,Z)}; g.A.onClick=function(Z){this.J.logClick(this.element);var Q=!0;this.T?Q=g.lr(Z,this.J):Z.preventDefault();Q&&(this.Y&&this.J.getPresentingPlayerType()===5?this.J.publish("ytoprerollinternstitialnext"):this.Y?(ny(this.J.hx()),this.J.publish("playlistnextbuttonclicked",this.element),this.J.nextVideo(!0)):this.S?this.J.seekTo(0):(ny(this.J.hx()),this.J.publish("playlistprevbuttonclicked",this.element),this.J.previousVideo(!0)))}; g.A.uO=function(){var Z=sSG(this);Z!==this.S&&(this.S=Z,EcM(this))}; g.A.gr=function(){this.j&&(this.j(),this.j=null);le9(this);g.x.prototype.gr.call(this)};g.L(zDG,g.x);g.A=zDG.prototype;g.A.kV=function(Z){this.ML(Z.pageX);this.Zl(Z.pageX+Z.deltaX);K0f(this)}; g.A.ML=function(Z){this.jJ=Z-this.Vp}; g.A.Zl=function(Z){Z-=this.Vp;!isNaN(this.jJ)&&this.thumbnails.length>0&&(this.U=Z-this.jJ,this.thumbnails.length>0&&this.U!==0&&(this.S=this.X+this.U,Z=jSG(this,this.S),this.S<=this.Y/2&&this.S>=AcG(this)?(this.api.seekTo(Z,!1,void 0,void 0,25),g.Dw(this.P7,"transform","translateX("+(this.S-this.Y/2)+"px)"),QSu(this,Z)):this.S=this.X))}; g.A.tT=function(){this.SJ&&(this.SJ.yS=!0);var Z=(0,g.Nm)()-this.Du<300;if(Math.abs(this.U)<5&&!Z){this.Du=(0,g.Nm)();Z=this.jJ+this.U;var Q=this.Y/2-Z;this.ML(Z);this.Zl(Z+Q);K0f(this);this.api.logClick(this.K)}K0f(this)}; g.A.eg=function(){WR(this,this.api.getCurrentTime())}; g.A.play=function(Z){this.api.seekTo(jSG(this,this.S),void 0,void 0,void 0,26);this.api.playVideo();Z&&this.api.logClick(this.playButton)}; g.A.onExit=function(Z){this.api.seekTo(this.tG,void 0,void 0,void 0,63);this.api.playVideo();Z&&this.api.logClick(this.dismissButton)}; g.A.pL=function(Z,Q){this.Vp=Z;this.Y=Q;WR(this,this.api.getCurrentTime())}; g.A.enable=function(){this.isEnabled||(this.isEnabled=!0,this.tG=this.api.getCurrentTime(),QSu(this,this.tG),g.vC(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.c7=this.Z(this.element,"wheel",this.kV),this.logVisibility(this.isEnabled))}; g.A.disable=function(){this.isEnabled=!1;this.hide();g.vC(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.c7&&this.oy(this.c7);this.logVisibility(this.isEnabled)}; g.A.reset=function(){this.disable();this.W=[];this.KN=!1}; g.A.logVisibility=function(Z){this.api.logVisibility(this.element,Z);this.api.logVisibility(this.K,Z);this.api.logVisibility(this.dismissButton,Z);this.api.logVisibility(this.playButton,Z)}; g.A.gr=function(){for(;this.j.length;){var Z=void 0;(Z=this.j.pop())==null||Z.dispose()}g.x.prototype.gr.call(this)}; g.L(bq4,g.x);g.L(qFr,g.x);g.L(DSr,g.x);g.L(Vm,g.x);Vm.prototype.OA=function(Z){return Z==="PLAY_PROGRESS"?this.X:Z==="LOAD_PROGRESS"?this.T:Z==="LIVE_BUFFER"?this.K:this.S};YF4.prototype.update=function(Z,Q,z,K){z=z===void 0?0:z;this.width=Q;this.W=z;this.Y=Q-z-(K===void 0?0:K);this.position=g.Al(Z,z,z+this.Y);this.S=this.position-z;this.j=this.S/this.Y};g.L(Xt4,g.x);g.L(g.xb,g.gV);g.A=g.xb.prototype; g.A.V9=function(){var Z=!1,Q=this.api.getVideoData();if(!Q)return Z;this.api.US("timedMarkerCueRange");TN0(this);for(var z=g.n(Q.Qp),K=z.next();!K.done;K=z.next()){K=K.value;var b=void 0,q=(b=this.tG[K])==null?void 0:b.markerType;b=void 0;var r=(b=this.tG[K])==null?void 0:b.markers;if(!r)break;if(q==="MARKER_TYPE_TIMESTAMPS"){Z=g.n(r);for(q=Z.next();!q.done;q=Z.next()){b=q.value;q=new Xt4;r=void 0;q.title=((r=b.title)==null?void 0:r.simpleText)||"";q.timeRangeStartMillis=Number(b.startMillis);q.Y= Number(b.durationMillis);var D=r=void 0;q.onActiveCommand=(D=(r=b.onActive)==null?void 0:r.innertubeCommand)!=null?D:void 0;mSr(this,q)}IZn(this,this.T);Z=this.T;q=this.aC;b=[];r=null;for(D=0;D<Z.length;D++){var v=Z[D].timeRangeStartMillis;if(!isNaN(v)&&Z[D].onActiveCommand){var Y=void 0,X=(Y=Z[D].Y)!=null?Y:1E4;r&&r.end>v&&(r.end=v);v=b6G(v,v+X);b.push(v);r=v;q[v.id]=Z[D].onActiveCommand}}this.api.df(b);this.Q7=this.tG[K];Z=!0}else if(q==="MARKER_TYPE_HEATMAP"){K=this.tG[K];X=Y=b=v=D=r=void 0;if(K&& K.markers){q=(b=(X=K.markersMetadata)==null?void 0:(Y=X.heatmapMetadata)==null?void 0:Y.minHeightDp)!=null?b:0;b=(r=(v=K.markersMetadata)==null?void 0:(D=v.heatmapMetadata)==null?void 0:D.maxHeightDp)!=null?r:60;r=this.Y.length;D=null;for(v=0;v<r;v++){X=this.Y[v].startTime;var S=v===r-1?Infinity:this.Y[v+1].startTime;v===this.W.length&&$S0(this);Y=[];D&&Y.push(D);for(var T=g.n(K.markers),f=T.next();!f.done;f=T.next()){f=f.value;var h=Number(f.startMillis);h>=X&&h<=S&&Y.push(f)}b>0&&(this.SJ.style.height= b+"px");X=this.W[v];S=Y;f=q;var m=b,J=v===0;J=J===void 0?!1:J;vIn(X,m);T=S;h=X.j;J=J===void 0?!1:J;var d=1E3/T.length,G=[];G.push({x:0,y:100});for(var R=0;R<T.length;R++){var U=(R+.5)*d,B=100-g.Al((T[R].intensityScoreNormalized||0)*100,f/h*100,m/h*100);R!==0||J||G.push({x:0,y:B});G.push({x:U,y:B});R===T.length-1&&G.push({x:1E3,y:B})}G.push({x:1E3,y:100});T=G;S=S.length===0?"":ltn(T);X.api.V("delhi_modern_web_player")?X.S.setAttribute("d",S):X.K.setAttribute("d",S);X.hH=S!=="";g.vC(X.api.getRootNode(), "ytp-heat-map",X.hH);X.api.V("delhi_modern_web_player")&&(X.S.style.display="block",X.W.style.display="none",X.Y.style.display="none");Y.length>0&&(D=Y[Y.length-1])}g.t3(this)}b=void 0;q=[];if(K=(b=K.markersDecoration)==null?void 0:b.timedMarkerDecorations)for(K=g.n(K),b=K.next();!b.done;b=K.next())b=b.value,v=D=r=void 0,q.push({visibleTimeRangeStartMillis:(r=b.visibleTimeRangeStartMillis)!=null?r:-1,visibleTimeRangeEndMillis:(D=b.visibleTimeRangeEndMillis)!=null?D:-1,decorationTimeMillis:(v=b.decorationTimeMillis)!= null?v:NaN,label:b.label?g.SN(b.label):""});K=q;this.heatMarkersDecorations=K}}Q.BR=this.T;g.vC(this.element,"ytp-timed-markers-enabled",Z);return Z}; g.A.pL=function(){g.t3(this);w$(this);IZn(this,this.T);if(this.j){var Z=g.f4(this.element).x||0;this.j.pL(Z,this.K)}}; g.A.onClickCommand=function(Z){if(Z=g.V(Z,eH)){var Q=Z.key;Z.isVisible&&Q&&NNG(this,Q)}}; g.A.IG$=function(Z){this.api.hG("innertubeCommand",this.aC[Z.id])}; g.A.E8=function(){w$(this);var Z=this.api.getCurrentTime();(Z<this.clipStart||Z>this.clipEnd)&&this.aI()}; g.A.fR=function(Z){if(!Z.defaultPrevented){var Q=!1;switch(Z.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);Q=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);Q=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);Q=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);Q=!0;break;case 38:this.api.V("enable_key_press_seek_logging")&&z3(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);Q=!0;break;case 40:this.api.V("enable_key_press_seek_logging")&&z3(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),Q=!0}Q&&Z.preventDefault()}}; g.A.AL=function(Z,Q){this.updateVideoData(Q,Z==="newdata")}; g.A.p7h=function(){this.AL("newdata",this.api.getVideoData())}; g.A.updateVideoData=function(Z,Q){Q=Q===void 0?!1:Q;var z=!!Z&&Z.hH();if(z&&(Fo(Z)||RDx(this)?this.N8=!1:this.N8=Z.allowLiveDvr,g.vC(this.api.getRootNode(),"ytp-enable-live-buffer",!(Z==null||!Fo(Z))),this.api.V("enable_custom_playhead_parsing"))){var K,b,q,r=g.V((K=Z.getWatchNextResponse())==null?void 0:(b=K.playerOverlays)==null?void 0:(q=b.playerOverlayRenderer)==null?void 0:q.decoratedPlayerBarRenderer,nU);if(r==null?0:r.progressColor)for(K=0;K<this.Y.length;K++)this.Y[K].OA("PLAY_PROGRESS").style.background= g.U8(r.progressColor);r=g.V(r==null?void 0:r.playhead,vn0);var D,v;K=(r==null?void 0:(D=r.playheadImage)==null?void 0:D.thumbnails)&&(r==null?void 0:(v=r.playheadImage)==null?void 0:v.thumbnails[0].url);g.vC(this.J6,"ytp-decorated-scrubber-container",!!K);var Y;if(r==null?0:(Y=r.loggingDirectives)==null?0:Y.trackingParams){var X;this.api.setTrackingParams(this.De,r==null?void 0:(X=r.loggingDirectives)==null?void 0:X.trackingParams);this.api.createServerVe(this.De,this)}K&&(this.De.src=K)}ubn(this, this.api.xE());if(Q){if(z){Q=Z.clipEnd;this.clipStart=Z.clipStart;this.clipEnd=Q;Ka(this);for(sA(this,this.U,this.qB);this.W.length>0;)this.W.pop().dispose();this.heatMarkersDecorations=[];this.Qp={};var S;(S=this.j)==null||S.reset();jQ(this);g.vC(this.api.getRootNode(),"ytp-fine-scrubbing-exp",uj(this))}else this.aI();this.zo()}if(Z){var T;S=((T=this.Vw)==null?void 0:T.type)==="clips";if(T=!Z.isLivePlayback){T=this.api.getVideoData();Q=g.c1(T);z=hDD(T);var f;T=Q!=null||z!=null&&z.length>0||((f=T.TB)== null?void 0:f.length)>0}if(T&&!S){f=this.api.getVideoData();S=g.c1(f);T=!1;if(S==null?0:S.markersMap){T=this.api.getVideoData();var h;T.Rv=((h=S.visibleOnLoad)==null?void 0:h.key)||T.Rv;h=g.n(S.markersMap);for(S=h.next();!S.done;S=h.next())S=S.value,S.key&&S.value&&(this.Qp[S.key]=S.value,S.value.onChapterRepeat&&(T.va=S.value.onChapterRepeat));T.Rv!=null&&NNG(this,T.Rv);T=!0}var m;if(((m=f.TB)==null?void 0:m.length)>0){m=g.wv.getState().entities;h=g.n(f.TB);for(S=h.next();!S.done;S=h.next())if(S= S.value,z=void 0,Q=(z=Dk(m,"macroMarkersListEntity",S))==null?void 0:z.markersList,D=z=void 0,((z=Q)==null?void 0:z.markerType)==="MARKER_TYPE_TIMESTAMPS"||((D=Q)==null?void 0:D.markerType)==="MARKER_TYPE_HEATMAP")this.tG[S]=Q;T=this.V9()||T}!T&&(m=hDD(f))&&(nI4(this,m),f.Om=this.Y,L0n(this));CLr(this,null);Z.Ok&&this.W.length===0&&(Z=Z.Ok,m=Z.key,Z.isVisible&&m&&NNG(this,m))}else SFD(this),TN0(this)}w$(this)}; g.A.juF=function(Z){this.X&&!g.t(Z.state,32)&&this.api.getPresentingPlayerType()!==3&&this.X.cancel();var Q;((Q=this.j)==null?0:Q.isEnabled)&&g.t(Z.state,8)&&this.api.pauseVideo();Z=this.api.getPresentingPlayerType()===2||!this.api.xE()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.vC(this.bY,"ytp-hide-scrubber-button",Z)}; g.A.AK=function(Z){var Q=!!this.Vw!==!!Z,z=this.Vw;this.Vw=Z;CLr(this,z);(Z==null?void 0:Z.type)!=="clips"&&Z||(Z?(this.updateValue("clipstarticon",Jhf()),this.updateValue("clipendicon",Jhf()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",TrG()),this.updateValue("clipendicon",$mD()),this.updateValue("clipstarttitle","Watch full video"),this.updateValue("clipendtitle","Watch full video")),Q&&(this.updateVideoData(this.api.getVideoData(), !0),g.t3(this)),Ka(this));sA(this,this.U,this.qB)}; g.A.poB=function(Z,Q,z){var K=g.f4(this.element),b=eb(this).Y,q=z?z.getAttribute("data-tooltip"):void 0,r=z?z.getAttribute("data-position"):void 0,D=z?z.getAttribute("data-offset-y"):void 0;D=D?Number(D):0;r&&(Z=Rs(this.S,Number(z.getAttribute("data-position")),0)*b+g.f4(this.progressBar).x);this.NB.x=Z-K.x;this.NB.y=Q-K.y;Z=eb(this);z=Qv(this,Z);Q=0;var v;if((v=this.api.getVideoData())==null?0:Fo(v))(v=this.api.getProgressState().seekableEnd)&&z>v&&(z=v,Z.position=Rs(this.S,v)*eb(this).Y),Q=this.S.j; RDx(this)&&(Q=this.S.j);v=q||g.mM(this.N8?z-this.S.Y:z-Q);Q=Z.position+this.Vr;z-=this.api.Ry();var Y;if((Y=this.j)==null||!Y.isEnabled)if(this.api.Mr()){if(this.Y.length>1){Y=ZK(this,this.NB.x,!0);if(!this.Vw)for(K=0;K<this.Y.length;)g.vC(this.Y[K].Y,"ytp-exp-chapter-hover-effect",K===Y),K++;if(this.W.length>1)for(K=0;K<this.Y.length;K++)g.vC(this.W[K].element,"ytp-heatmap-hover",K===Y)}if(this.T.length>0)for(Y=this.NB.x,K=g.n(this.T),b=K.next();!b.done;b=K.next())b=b.value,r=FE(this,b.timeRangeStartMillis/ (this.S.Y*1E3),eb(this)),g.vC(b.element,"ytp-timed-marker-hover",r<=Y&&r+6>=Y);K=this.tooltip.scale;D=(isNaN(D)?0:D)-45*K;this.api.V("web_key_moments_markers")?this.Q7?(Y=Q2n(this.T,z*1E3),Y=Y!=null?this.T[Y].title:""):(Y=Th(this.Y,z*1E3),Y=this.Y[Y].title):(Y=Th(this.Y,z*1E3),Y=this.Y[Y].title);Y||(D+=16*K);this.tooltip.scale===.6&&(g.ka(this.api.N())?(D=this.api.U$().getPlayerSize().height-225,D=Y?D+110:D+110+16):D=Y?110:126);K=Th(this.Y,z*1E3);this.P7=ptW(this,z,K)?K:ptW(this,z,K+1)?K+1:-1;g.vC(this.api.getRootNode(), "ytp-progress-bar-snap",this.P7!==-1&&this.Y.length>1);K=!1;b=g.n(this.heatMarkersDecorations);for(r=b.next();!r.done;r=b.next()){r=r.value;var X=z*1E3;X>=r.visibleTimeRangeStartMillis&&X<=r.visibleTimeRangeEndMillis&&(Y=r.label,v=g.mM(r.decorationTimeMillis/1E3),K=!0)}this.zJ!==K&&(this.zJ=K,this.api.logVisibility(this.kL,this.zJ));g.vC(this.api.getRootNode(),"ytp-progress-bar-decoration",K);K=160*this.tooltip.scale*2;b=Y.length*(this.jJ?8.55:5.7);b=b<=K?b:K;r=b<160*this.tooltip.scale;K=3;!r&&b/ 2>Z.position&&(K=1);!r&&b/2>this.K-Z.position&&(K=2);this.api.N().X&&(D-=10);this.W.length&&this.W[0].hH&&(D-=14*(this.jJ?2:1),this.c7||(this.c7=!0,this.api.logVisibility(this.SJ,this.c7)));var S;if(uj(this)&&(((S=this.j)==null?0:S.isEnabled)||this.Zu>0)){var T;D-=((T=this.j)==null?0:T.isEnabled)?q3(this):this.Zu}S=void 0;uj(this)&&!this.api.V("web_player_hide_fine_scrubbing_edu")&&(S="Pull up for precise seeking",this.KN||(this.KN=!0,this.api.logVisibility(this.A4,this.KN)));this.tooltip.Ll(Q,z, v,!!q,D,Y,K,S)}else this.tooltip.Ll(Q,z,v,!!q,D);g.rd(this.api.getRootNode(),"ytp-progress-bar-hover");PLf(this)}; g.A.Iah=function(){this.zo();g.jn(this.api.getRootNode(),"ytp-progress-bar-hover");this.c7&&(this.c7=!1,this.api.logVisibility(this.SJ,this.c7));this.KN&&(this.KN=!1,this.api.logVisibility(this.A4,this.KN))}; g.A.YSf=function(Z,Q){uj(this)&&this.j&&(this.j.KN?WR(this.j,this.api.getCurrentTime()):rcW(this.j),this.j.show(),g.vC(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.j.isEnabled));this.Pg&&(this.Pg.dispose(),this.Pg=null);this.lI=Q;this.Uv=this.api.getCurrentTime();this.Y.length>1&&this.P7!==-1?this.api.seekTo(this.Y[this.P7].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(Qv(this,eb(this)),!1,void 0,void 0,7);g.rd(this.element,"ytp-drag");(this.y7=this.api.getPlayerStateObject().isOrWillBePlaying())&& this.api.pauseVideo()}; g.A.jWF=function(){if(uj(this)&&this.j){var Z=q3(this);this.Zu>=Z*.5?(this.j.enable(),WR(this.j,this.api.getCurrentTime()),kjM(this,Z)):jQ(this)}if(g.t(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var Q;if((Q=this.j)==null?0:Q.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.Y.length>1&&this.P7!==-1)this.api.V("html5_enable_progress_bar_slide_seek_logging")&&z3(this,this.Uv,this.Y[this.P7].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.Y[this.P7].startTime/1E3,void 0,void 0,void 0,7);else{Z=Qv(this,eb(this));this.api.V("html5_enable_progress_bar_slide_seek_logging")&&z3(this,this.Uv,Z,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(Z,void 0,void 0,void 0,7);Q=g.n(this.heatMarkersDecorations);for(var z=Q.next();!z.done;z=Q.next())z=z.value,Z*1E3>=z.visibleTimeRangeStartMillis&&Z*1E3<=z.visibleTimeRangeEndMillis&& this.api.logClick(this.kL)}g.jn(this.element,"ytp-drag");this.y7&&!g.t(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.A.ifu=function(Z,Q){Z=eb(this);Z=Qv(this,Z);this.api.seekTo(Z,!1,void 0,void 0,7);var z;uj(this)&&((z=this.j)==null?0:z.KN)&&(WR(this.j,Z),this.j.isEnabled||(z=q3(this),this.Zu=g.Al(this.lI-Q-10,0,z),kjM(this,this.Zu)))}; g.A.zo=function(){this.tooltip.M9()}; g.A.BA=function(){this.Vw||(this.updateValue("clipstarticon",SIG()),this.updateValue("clipendicon",SIG()),g.rd(this.element,"ytp-clip-hover"))}; g.A.dC=function(){this.Vw||(this.updateValue("clipstarticon",TrG()),this.updateValue("clipendicon",$mD()),g.jn(this.element,"ytp-clip-hover"))}; g.A.aI=function(){this.clipStart=0;this.clipEnd=Infinity;Ka(this);sA(this,this.U,this.qB)}; g.A.s6h=function(Z){Z=g.n(Z);for(var Q=Z.next();!Q.done;Q=Z.next())if(Q=Q.value,Q.visible){var z=Q.getId();if(!this.Vp[z]){var K=g.lY("DIV");Q.tooltip&&K.setAttribute("data-tooltip",Q.tooltip);this.Vp[z]=Q;this.sA[z]=K;g.b_(K,Q.style);Hqd(this,z);this.api.N().V("disable_ad_markers_on_content_progress_bar")||this.Y[0].W.appendChild(K)}}else VKf(this,Q)}; g.A.S6J=function(Z){Z=g.n(Z);for(var Q=Z.next();!Q.done;Q=Z.next())VKf(this,Q.value)}; g.A.Gb=function(Z){this.j&&(this.j.onExit(Z!=null),jQ(this))}; g.A.V$=function(Z){this.j&&(this.j.play(Z!=null),jQ(this))}; g.A.yxI=function(){ubn(this,this.api.xE())}; g.A.gr=function(){ubn(this,!1);g.gV.prototype.gr.call(this)};g.L(DK,g.x);DK.prototype.isActive=function(){return!!this.J.getOption("remote","casting")}; DK.prototype.E$=function(){var Z=!1;this.J.getOptions().includes("remote")&&(Z=this.J.getOption("remote","receivers").length>1);this.Wh(Z&&this.J.U$().getPlayerSize().width>=400);this.J.logVisibility(this.element,this.RT);var Q=1;Z&&this.isActive()&&(Q=2);if(this.Y!==Q){this.Y=Q;switch(Q){case 1:this.updateValue("icon",{B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},G:[{B:"path",KL:!0,C:{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.Xsr())}g.vC(this.element,"ytp-remote-button-active",this.isActive())}}; DK.prototype.j=function(){if(this.J.getOption("remote","quickCast"))this.J.setOption("remote","quickCast",!0);else{var Z=this.Kd,Q=this.element;if(Z.y5())Z.oT();else{Z.initialize();a:{var z=g.n(Z.zy.items);for(var K=z.next();!K.done;K=z.next())if(K=K.value,K.priority===1){z=K;break a}z=null}z&&(z.open(),Z.Gz(Q));Z.Gz(Q)}}this.J.logClick(this.element)};g.L(vU,g.x);vU.prototype.Y=function(Z){var Q=this.J.N(),z=400;this.J.V("web_player_small_hbp_settings_menu")&&Q.K?z=300:Q.X&&(z=200);Z=this.j&&Z.width>=z;this.Wh(Z);this.J.V("embeds_use_parent_visibility_in_ve_logging")?this.J.logVisibility(this.element,Z&&this.L):this.J.logVisibility(this.element,Z)}; vU.prototype.S=function(){if(this.Kd.RT)this.Kd.oT();else{var Z=g.Rq(this.J.W4());Z&&!Z.loaded&&(Z.Pv("tracklist",{includeAsr:!0}).length||Z.load());this.J.logClick(this.element);this.Kd.Gz(this.element)}}; vU.prototype.updateBadge=function(){var Z=this.J.isHdr(),Q=this.J.getPresentingPlayerType(),z=Q!==2&&Q!==3,K=g.dR(this.J),b=z&&!!g.y7(this.J.W4());Q=b&&K.displayMode===1;K=b&&K.displayMode===2;z=(b=Q||K)||!z?null:this.J.getPlaybackQuality();g.vC(this.element,"ytp-hdr-quality-badge",Z);g.vC(this.element,"ytp-hd-quality-badge",!Z&&(z==="hd1080"||z==="hd1440"));g.vC(this.element,"ytp-4k-quality-badge",!Z&&z==="hd2160");g.vC(this.element,"ytp-5k-quality-badge",!Z&&z==="hd2880");g.vC(this.element,"ytp-8k-quality-badge", !Z&&z==="highres");g.vC(this.element,"ytp-3d-badge-grey",!Z&&b&&Q);g.vC(this.element,"ytp-3d-badge",!Z&&b&&K)};g.L(gy,wR);gy.prototype.isLoaded=function(){var Z=g.OU(this.J.W4());return Z!==void 0&&Z.loaded}; gy.prototype.E$=function(){g.OU(this.J.W4())!==void 0&&this.J.getPresentingPlayerType()!==3?this.Y||(this.Kd.Mb(this),this.Y=!0):this.Y&&(this.Kd.Ne(this),this.Y=!1);Eq(this,this.isLoaded())}; gy.prototype.onSelect=function(Z){this.isLoaded();Z?this.J.loadModule("annotations_module"):this.J.unloadModule("annotations_module");this.J.publish("annotationvisibility",Z)}; gy.prototype.gr=function(){this.Y&&this.Kd.Ne(this);wR.prototype.gr.call(this)};g.L(YJ,g.Fk);YJ.prototype.E$=function(){var Z=this.J.getAvailableAudioTracks();Z.length>1?(this.xS(g.my(Z,this.Y)),this.tracks=g.$n(Z,this.Y,this),this.countLabel.Wo(Z.length?" ("+Z.length+")":""),this.publish("size-change"),this.D3(this.Y(this.J.getAudioTrack())),this.enable(!0)):this.enable(!1)}; YJ.prototype.zp=function(Z){g.Fk.prototype.zp.call(this,Z);this.J.setAudioTrack(this.tracks[Z]);this.Kd.Jt()}; YJ.prototype.Y=function(Z){return Z.toString()};g.L(Xj,wR); Xj.prototype.j=function(){var Z=this.J.getPresentingPlayerType();if(Z!==2&&Z!==3&&g.Ge(this.J))this.Y||(this.Kd.Mb(this),this.Y=!0,this.S.push(this.Z(this.J,"videodatachange",this.j)),this.S.push(this.Z(this.J,"videoplayerreset",this.j)),this.S.push(this.Z(this.J,"onPlaylistUpdate",this.j)),this.S.push(this.Z(this.J,"autonavchange",this.W)),Z=this.J.getVideoData(),this.W(Z.autonavState),this.J.logVisibility(this.element,this.Y));else if(this.Y){this.Kd.Ne(this);this.Y=!1;Z=g.n(this.S);for(var Q=Z.next();!Q.done;Q= Z.next())this.oy(Q.value)}}; Xj.prototype.W=function(Z){Eq(this,Z!==1)}; Xj.prototype.onSelect=function(Z){this.J.Xg(Z?2:1);this.Y&&(this.J.logVisibility(this.element,this.Y),this.J.logClick(this.element))}; Xj.prototype.gr=function(){this.Y&&this.Kd.Ne(this);wR.prototype.gr.call(this)};g.L(tKM,g.Oq);tKM.prototype.onClick=function(Z){Z.preventDefault();var Q,z;(Q=g.Dy(this.J))==null||(z=Q.l7())==null||z.oT();var K,b;(K=g.Dy(this.J))==null||(b=K.V1())==null||b.Gz(Z.target)};g.L(F0M,g.Fk);g.A=F0M.prototype; g.A.Tv=function(){var Z=this.J.getPresentingPlayerType();if(Z!==2&&Z!==3){this.P7=this.J.L9();Z=this.J.getAvailableQualityLevels();if(this.Y){this.W={};var Q=g.br(this.J,"getAvailableQualityData",[]);Q=g.n(Q);for(var z=Q.next();!z.done;z=Q.next())z=z.value,this.W[z.qualityLabel]=z;Q=Object.keys(this.W);Z[Z.length-1]==="auto"&&Q.push("auto");this.JG=new Set(Z)}else if(this.K){z=g.br(this.J,"getAvailableQualityData",[]);Q=[];z=g.n(z);for(var K=z.next();!K.done;K=z.next())K=K.value,this.U[K.quality]= K,K.quality&&Q.push(K.quality);Z[Z.length-1]==="auto"&&Q.push("auto")}else Q=Z;g.Mm0(this.J)&&this.J.HL()&&Q.unshift("missing-qualities");Und(this.J)&&Q.unshift("inline-survey");this.xS(Q);Z=this.J.getVideoData().cotn?!0:!1;z=this.SJ.fK();z=!g.ka(this.J.N())||!(Z===void 0?0:Z)||!(z===void 0||z);Z=this.j;z=z===void 0?!1:z;Z.FD&&g.vC(Z.Ru("ytp-panel-footer"),"ytp-panel-hide-footer",z===void 0?!1:z);if(Q.length){this.Cv();this.enable(!0);return}}this.enable(!1)}; g.A.Cv=function(){if(this.Y){var Z=this.J.getPreferredQuality();this.JG.has(Z)&&(this.T=this.J.getPlaybackQuality(),this.jJ=this.J.getPlaybackQualityLabel(),Z==="auto"?(this.D3(Z),this.Wo(this.f4(Z))):this.D3(this.jJ))}else Z=this.J.getPreferredQuality(),this.options[Z]&&(this.T=this.J.getPlaybackQuality(),this.D3(Z),Z==="auto"&&this.Wo(this.f4(Z)))}; g.A.zp=function(Z){if(Z!=="missing-qualities"){g.Fk.prototype.zp.call(this,Z);var Q=this.Y?this.W[Z]:this.U[Z];var z=Q==null?void 0:Q.quality,K=Q==null?void 0:Q.formatId,b=Q==null?void 0:Q.paygatedQualityDetails;Q=b==null?void 0:b.endpoint;if(b){var q;b=(q=this.options[Z])==null?void 0:q.element;this.J.logClick(b)}if(this.Y){var r,D;if((r=g.V(Q,g.UYm))==null?0:(D=r.popup)==null?0:D.notificationActionRenderer)this.J.hG("innertubeCommand",Q);else if(Q){this.J.hG("innertubeCommand",Q);return}K?this.J.setPlaybackQuality(z, K):this.J.setPlaybackQuality(z)}else{if(this.K){var v,Y;if((v=g.V(Q,g.UYm))==null?0:(Y=v.popup)==null?0:Y.notificationActionRenderer)this.J.hG("innertubeCommand",Q);else if(Q){this.J.hG("innertubeCommand",Q);return}}this.J.setPlaybackQuality(Z)}this.Kd.oT();this.Tv()}}; g.A.open=function(){for(var Z=g.n(Object.values(this.options)),Q=Z.next();!Q.done;Q=Z.next()){Q=Q.value;var z=void 0;this.J.hasVe((z=Q)==null?void 0:z.element)&&(z=void 0,this.J.logVisibility((z=Q)==null?void 0:z.element,!0))}g.Fk.prototype.open.call(this);this.J.logClick(this.element)}; g.A.aU=function(Z,Q,z){var K=this;if(Z==="missing-qualities")return new g.Oq({B:"a",nN:["ytp-menuitem"],C:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.J.N().U,tabindex:"0",role:"menuitemradio"},G:[{B:"div",nN:["ytp-menuitem-label"],W7:"{{label}}"}]},Q,this.f4(Z));if(Z!=="inline-survey"){var b,q=(b=this.Y?this.W[Z]:this.U[Z])==null?void 0:b.paygatedQualityDetails;b=q==null?void 0:q.veType;q=q==null?void 0:q.trackingParams;Q=g.Fk.prototype.aU.call(this,Z,Q,z);q?(this.J.createServerVe(Q.element, this,!0),this.J.setTrackingParams(Q.element,q)):b&&this.J.createClientVe(Q.element,this,b,!0);return Q}Z=[{B:"span",W7:"Looks good?"}];z=g.n([!0,!1]);q=z.next();for(b={};!q.done;b={mV:void 0},q=z.next())b.mV=q.value,q=new g.x({B:"span",D:"ytp-menuitem-inline-survey-response",G:[b.mV?IWD():h4x()],C:{tabindex:"0",role:"button"}}),q.listen("click",function(r){return function(){var D=K.J.app.eJ();D&&(D.pN("iqsr",{tu:r.mV}),D.getVideoData().Tm=!0);K.Kd.oT();K.Tv()}}(b)),Z.push(q); return new g.Oq({B:"div",D:"ytp-menuitem",C:{"aria-disabled":"true"},G:[{B:"div",nN:["ytp-menuitem-label"],G:Z}]},Q)}; g.A.f4=function(Z,Q){Q=Q===void 0?!1:Q;if(Z==="missing-qualities")return{B:"div",W7:"Missing options?"};if(Z==="inline-survey")return"";var z=this.K||this.Y?[EIG(this,Z,Q,!1)]:[wtn(this,Z)];var K=this.J.getPreferredQuality();Q||K!=="auto"||Z!=="auto"||(z.push(" "),this.Y?z.push(EIG(this,this.jJ,Q,!0,["ytp-menu-label-secondary"])):this.K?z.push(EIG(this,this.T,Q,!0,["ytp-menu-label-secondary"])):z.push(wtn(this,this.T,["ytp-menu-label-secondary"])));return{B:"div",G:z}};g.L(SQ,g.x);SQ.prototype.init=function(){this.updateValue("minvalue",this.S);this.updateValue("maxvalue",this.W);this.updateValue("stepvalue",this.K);this.updateValue("slidervalue",this.j);lZn(this,this.j)}; SQ.prototype.T=function(){sZu(this,Number(this.Y.value));this.Y.focus()};g.L($J,SQ);$J.prototype.T=function(){SQ.prototype.T.call(this);this.X&&Zod(this)}; $J.prototype.P7=function(){this.U()}; $J.prototype.SJ=function(){this.J.setPlaybackRate(this.j,!0)}; $J.prototype.jJ=function(Z){if(!Z.defaultPrevented){switch(Z.code){case "ArrowDown":var Q=-this.K;break;case "ArrowUp":Q=this.K;break;default:return}sZu(this,Math.min(this.W,Math.max(Number((this.j+Q).toFixed(2)),this.S)));this.U();Zod(this);Z.preventDefault()}};g.L(T3,g.x);g.A=T3.prototype;g.A.init=function(){this.ll(this.Y);this.updateValue("minvalue",this.j);this.updateValue("maxvalue",this.S)}; g.A.EP=function(Z){if(!Z.defaultPrevented){switch(Z.keyCode){case 37:case 40:var Q=-this.X;break;case 39:case 38:Q=this.X;break;default:return}this.ll(this.Y+Q);Z.preventDefault()}}; g.A.xV=function(Z){var Q=this.Y;Q+=(Z.deltaX||-Z.deltaY)<0?-this.U:this.U;this.ll(Q);Z.preventDefault()}; g.A.T9=function(Z){Z=(Z-g.f4(this.W).x)/this.jJ*this.range+this.j;this.ll(Z)}; g.A.ll=function(Z,Q){Q=Q===void 0?"":Q;Z=g.Al(Z,this.j,this.S);Q===""&&(Q=Z.toString());this.updateValue("valuenow",Z);this.updateValue("valuetext",Q);this.SJ.style.left=(Z-this.j)/this.range*(this.jJ-this.KN)+"px";this.Y=Z}; g.A.focus=function(){this.c7.focus()};g.L(fa,T3);fa.prototype.P7=function(){this.J.setPlaybackRate(this.Y,!0)}; fa.prototype.ll=function(Z){T3.prototype.ll.call(this,Z,z_X(this,Z).toString());this.K&&(QZd(this),this.JG())}; fa.prototype.updateValues=function(){var Z=this.J.getPlaybackRate();z_X(this,this.Y)!==Z&&(this.ll(Z),QZd(this))};g.L(KQW,g.gV);KQW.prototype.focus=function(){this.Y.focus()};g.L(bod,Mv);g.L(qEu,g.Fk);g.A=qEu.prototype;g.A.f4=function(Z){return Z==="1"?"Normal":Z.toLocaleString()}; g.A.E$=function(){var Z,Q=(Z=this.J.getVideoData())==null?void 0:Z.GJ();Z=this.J.getPresentingPlayerType(Q);this.enable(Z!==2&&Z!==3);Dt0(this)}; g.A.xS=function(Z){g.Fk.prototype.xS.call(this,Z);this.T&&this.T.Y.focus()}; g.A.kt=function(Z){g.Fk.prototype.kt.call(this,Z);Z?(this.jJ=this.Z(this.J,"onPlaybackRateChange",this.onPlaybackRateChange),Dt0(this),AmX(this,this.J.getPlaybackRate())):(this.oy(this.jJ),this.jJ=null)}; g.A.onPlaybackRateChange=function(Z){var Q=this.J.getPlaybackRate();!this.K&&this.U.includes(Q)||jZx(this,Q);AmX(this,Z)}; g.A.aU=function(Z,Q,z){return Z===this.Y&&vDD(this.J)?g.Fk.prototype.aU.call(this,Z,Q,z,{B:"div",D:"ytp-speed-slider-menu-footer",G:[this.T]}):g.Fk.prototype.aU.call(this,Z,Q,z)}; g.A.zp=function(Z){g.Fk.prototype.zp.call(this,Z);Z===this.Y?this.J.setPlaybackRate(this.W,!0):this.J.setPlaybackRate(Number(Z),!0);vDD(this.J)&&Z===this.Y||this.Kd.Jt()}; g.A.oh=function(Z){var Q=Z===this.Y;this.K=!1;Q&&ha(this.J)&&!vDD(this.J)?(Z=new bod(this.J),g.By(this.Kd,Z)):g.Fk.prototype.oh.call(this,Z)};g.L(YEx,g.Fk);g.A=YEx.prototype;g.A.D3=function(Z){g.Fk.prototype.D3.call(this,Z)}; g.A.Uo=function(Z){return Z.option.toString()}; g.A.getOption=function(Z){return this.settings[Z]}; g.A.f4=function(Z){return this.getOption(Z).text||""}; g.A.zp=function(Z){g.Fk.prototype.zp.call(this,Z);this.publish("settingChange",this.setting,this.settings[Z].option)};g.L(La,g.UB);La.prototype.xn=function(Z){for(var Q=g.n(Object.keys(Z)),z=Q.next();!z.done;z=Q.next()){var K=z.value;if(z=this.l_[K]){var b=Z[K].toString();K=!!Z[K+"Override"];z.options[b]&&(z.D3(b),z.W.element.setAttribute("aria-checked",String(!K)),z.Y.element.setAttribute("aria-checked",String(K)))}}}; La.prototype.IX=function(Z,Q){this.publish("settingChange",Z,Q)};g.L(na,g.Fk);na.prototype.Y=function(Z){return Z.languageCode}; na.prototype.f4=function(Z){return this.languages[Z].languageName||""}; na.prototype.zp=function(Z){this.publish("select",Z);this.J.logClick(this.element);g.Wy(this.Kd)};g.L($tM,g.Fk);g.A=$tM.prototype;g.A.E2=function(Z){return g.Ne(Z)?"__off__":Z.displayName}; g.A.f4=function(Z){return Z==="__off__"?"Off":Z==="__translate__"?"Auto-translate":Z==="__contribute__"?"Add subtitles/CC":Z==="__correction__"?"Suggest caption corrections":(Z==="__off__"?{}:this.tracks[Z]).displayName}; g.A.zp=function(Z){if(Z==="__translate__")this.Y.open();else if(Z==="__contribute__"){this.J.pauseVideo();this.J.isFullscreen()&&this.J.toggleFullscreen();var Q=g.aL(this.J.N(),this.J.getVideoData());g.WM(Q)}else if(Z==="__correction__"){this.J.pauseVideo();this.J.isFullscreen()&&this.J.toggleFullscreen();var z=TkG(this);cU(this,z);g.Fk.prototype.zp.call(this,this.E2(z));var K,b;z=(Q=this.J.getVideoData().getPlayerResponse())==null?void 0:(K=Q.captions)==null?void 0:(b=K.playerCaptionsTracklistRenderer)== null?void 0:b.openTranscriptCommand;this.J.hG("innertubeCommand",z);this.Kd.Jt();this.W&&this.J.logClick(this.W)}else{if(Z==="__correction__"){this.J.pauseVideo();this.J.isFullscreen()&&this.J.toggleFullscreen();Q=TkG(this);cU(this,Q);g.Fk.prototype.zp.call(this,this.E2(Q));var q,r;Q=(z=this.J.getVideoData().getPlayerResponse())==null?void 0:(q=z.captions)==null?void 0:(r=q.playerCaptionsTracklistRenderer)==null?void 0:r.openTranscriptCommand;this.J.hG("innertubeCommand",Q)}else this.J.logClick(this.element), cU(this,Z==="__off__"?{}:this.tracks[Z]),g.Fk.prototype.zp.call(this,Z);this.Kd.Jt()}}; g.A.E$=function(){var Z=this.J.getOptions();Z=Z&&Z.indexOf("captions")!==-1;var Q=this.J.getVideoData(),z=Q&&Q.Hs,K,b=!((K=this.J.getVideoData())==null||!g.xG(K));K={};if(Z||z){var q;if(Z){var r=this.J.getOption("captions","track");K=this.J.getOption("captions","tracklist",{includeAsr:!0});var D=b?[]:this.J.getOption("captions","translationLanguages");this.tracks=g.$n(K,this.E2,this);b=g.my(K,this.E2);var v,Y;TkG(this)&&((q=Q.getPlayerResponse())==null?0:(v=q.captions)==null?0:(Y=v.playerCaptionsTracklistRenderer)== null?0:Y.openTranscriptCommand)&&b.push("__correction__");if(D.length&&!g.Ne(r)){if((q=r.translationLanguage)&&q.languageName){var X=q.languageName;q=D.findIndex(function(S){return S.languageName===X}); KwG(D,q)}X5d(this.Y,D);b.push("__translate__")}q=this.E2(r)}else this.tracks={},b=[],q="__off__";b.unshift("__off__");this.tracks.__off__={};z&&b.unshift("__contribute__");this.tracks[q]||(this.tracks[q]=r,b.push(q));this.xS(b);this.D3(q);r&&r.translationLanguage?this.Y.D3(this.Y.Y(r.translationLanguage)):E3X(this.Y);Z&&this.K.xn(this.J.getSubtitlesUserSettings());this.countLabel.Wo(K&&K.length?" ("+K.length+")":"");this.publish("size-change");this.J.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.A.DK=function(Z){var Q=this.J.getOption("captions","track");Q=g.ae(Q);Q.translationLanguage=this.Y.languages[Z];cU(this,Q)}; g.A.IX=function(Z,Q){if(Z==="reset")this.J.resetSubtitlesUserSettings();else{var z={};z[Z]=Q;this.J.updateSubtitlesUserSettings(z)}SEG(this,!0);this.T.start();this.K.xn(this.J.getSubtitlesUserSettings())}; g.A.mRr=function(Z){Z||g.Qn(this.T)}; g.A.gr=function(){g.Qn(this.T);g.Fk.prototype.gr.call(this)}; g.A.open=function(){g.Fk.prototype.open.call(this);this.options.__correction__&&!this.W&&(this.W=this.options.__correction__.element,this.J.createClientVe(this.W,this,167341),this.J.logVisibility(this.W,!0))};g.L(fhG,g.o_);g.A=fhG.prototype; g.A.initialize=function(){if(!this.isInitialized){var Z=this.J.N();this.isInitialized=!0;try{this.uB=new F0M(this.J,this)}catch(z){g.CO(Error("QualityMenuItem creation failed"))}g.W(this,this.uB);var Q=new $tM(this.J,this);g.W(this,Q);Z.S||(Q=new gy(this.J,this),g.W(this,Q));Z.enableSpeedOptions&&(Q=new qEu(this.J,this),g.W(this,Q));(g.mj(Z)||Z.K)&&(Z.j||Z.Du)&&(Q=new tKM(this.J,this),g.W(this,Q));Z.zJ&&!Z.V("web_player_move_autonav_toggle")&&(Z=new Xj(this.J,this),g.W(this,Z));Z=new YJ(this.J,this); g.W(this,Z);this.J.publish("settingsMenuInitialized");xS4(this.settingsButton,this.zy.cH())}}; g.A.Mb=function(Z){this.initialize();this.zy.Mb(Z);xS4(this.settingsButton,this.zy.cH())}; g.A.Ne=function(Z){this.RT&&this.zy.cH()<=1&&this.hide();this.zy.Ne(Z);xS4(this.settingsButton,this.zy.cH())}; g.A.Gz=function(Z){this.initialize();this.zy.cH()>0&&g.o_.prototype.Gz.call(this,Z)}; g.A.oT=function(){this.Bc?this.Bc=!1:g.o_.prototype.oT.call(this)}; g.A.show=function(){g.o_.prototype.show.call(this);g.rd(this.J.getRootNode(),"ytp-settings-shown")}; g.A.hide=function(){g.o_.prototype.hide.call(this);g.jn(this.J.getRootNode(),"ytp-settings-shown")}; g.A.bz=function(Z){this.J.logVisibility(this.element,Z);this.J.publish("settingsMenuVisibilityChanged",Z)};g.L(LQW,g.x);g.A=LQW.prototype;g.A.onClick=function(){if(nDx(this)&&(this.J.toggleSubtitles(),this.J.logClick(this.element),!this.isEnabled())){var Z=!1,Q=g.W6(g.B6(),65);g.ka(this.J.N())&&Q!=null&&(Z=!Q);Z&&this.J.N().V("web_player_nitrate_promo_tooltip")&&this.J.publish("showpromotooltip",this.element)}}; g.A.jCI=function(Z){var Q,z;(Q=g.Dy(this.J))==null||(z=Q.l7())==null||z.Gz(Z)}; g.A.isEnabled=function(){return!!this.J.getOption("captions","track").displayName}; g.A.E$=function(){var Z=nDx(this),Q=300;this.J.N().X&&(Q=480);if(this.J.N().K){this.updateValue("title",g.h2(this.J,"Subtitles/closed captions","c"));this.update({"data-title-no-tooltip":"Subtitles/closed captions"});var z=Z}else{if(Z)(z=this.Ru("ytp-subtitles-button-icon"))==null||z.setAttribute("fill-opacity","1"),this.updateValue("title",g.h2(this.J,"Subtitles/closed captions","c")),this.update({"data-title-no-tooltip":"Subtitles/closed captions"});else{var K;(K=this.Ru("ytp-subtitles-button-icon"))== null||K.setAttribute("fill-opacity","0.3");this.updateValue("title","Subtitles/closed captions unavailable");this.update({"data-title-no-tooltip":"Subtitles/closed captions unavailable"})}z=!0}this.tooltip.Bv();z=z&&this.J.U$().getPlayerSize().width>=Q;this.Wh(z);this.J.V("embeds_use_parent_visibility_in_ve_logging")?this.J.logVisibility(this.element,z&&this.L):this.J.logVisibility(this.element,z);Z?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)}; g.A.yw=function(Z){g.x.prototype.yw.call(this,Z);this.J.N().V("embeds_use_parent_visibility_in_ve_logging")&&this.J.logVisibility(this.element,this.RT&&Z)};g.L(g.mX,g.x);g.A=g.mX.prototype; g.A.E8=function(){var Z=this.api.U$().getPlayerSize().width,Q=this.U;this.api.N().X&&(Q=400);Q=Z>=Q&&(!IQ(this)||!g.t(this.api.getPlayerStateObject(),64));this.Wh(Q);g.vC(this.element,"ytp-time-display-allow-autohide",Q&&Z<400);Z=this.api.getProgressState();if(Q){Q=this.api.getPresentingPlayerType();var z=this.api.getCurrentTime(Q,!1);this.j&&(z-=Z.airingStart);Ja(this)&&(z-=this.Vw.startTimeMs/1E3);Ja(this)||IQ(this)||!this.S||(z=this.api.getDuration(Q,!1)-z);z=g.mM(z);this.W!==z&&(this.updateValue("currenttime", z),this.W=z);Q=Ja(this)?g.mM((this.Vw.endTimeMs-this.Vw.startTimeMs)/1E3):g.mM(this.api.getDuration(Q,!1));this.K!==Q&&(this.updateValue("duration",Q),this.K=Q)}cmn(this,Z.isAtLiveHead);mtu(this,this.api.getLoopRange())}; g.A.onLoopRangeChange=function(Z){var Q=this.Vw!==Z;this.Vw=Z;Q&&(this.E8(),Ih9(this))}; g.A.d8G=function(){this.api.setLoopRange(null)}; g.A.iLg=function(){this.S=!this.S;this.E8()}; g.A.onVideoDataChange=function(Z,Q,z){this.updateVideoData((this.api.N().V("enable_topsoil_wta_for_halftime")||this.api.N().V("enable_topsoil_wta_for_halftime_live_infra"))&&z===2?this.api.getVideoData(1):Q);this.E8();Ih9(this)}; g.A.updateVideoData=function(Z){this.Pm=Z.isLivePlayback&&!Z.qB;this.j=Fo(Z);this.isPremiere=Z.isPremiere;g.vC(this.element,"ytp-live",IQ(this))}; g.A.onClick=function(Z){Z.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.A.gr=function(){this.Y&&this.Y();g.x.prototype.gr.call(this)};g.L(ymr,g.x);g.A=ymr.prototype;g.A.gL=function(){var Z=this.api.Us();this.S!==Z&&(this.S=Z,Jmu(this,this.api.getVolume(),this.api.isMuted()))}; g.A.QI=function(Z){this.Wh(Z.width>=350)}; g.A.eA=function(Z){if(!Z.defaultPrevented){var Q=Z.keyCode,z=null;Q===37?z=this.volume-5:Q===39?z=this.volume+5:Q===36?z=0:Q===35&&(z=100);z!==null&&(z=g.Al(z,0,100),z===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(z)),Z.preventDefault())}}; g.A.ZK=function(Z){var Q=Z.deltaX||-Z.deltaY;Z.deltaMode?this.api.setVolume(this.volume+(Q<0?-10:10)):this.api.setVolume(this.volume+g.Al(Q/10,-10,10));Z.preventDefault()}; g.A.laF=function(){yv(this,this.Y,!0,this.j,this.api.p$());this.U=this.volume;this.api.isMuted()&&this.api.unMute()}; g.A.Mu=function(Z){var Q=this.S?78:52,z=this.S?18:12;Z-=g.f4(this.X).x;this.api.setVolume(g.Al((Z-z/2)/(Q-z),0,1)*100)}; g.A.Xof=function(){yv(this,this.Y,!1,this.j,this.api.p$());this.volume===0&&(this.api.mute(),this.api.setVolume(this.U))}; g.A.onVolumeChange=function(Z){Jmu(this,Z.volume,Z.muted)}; g.A.Vq=function(){yv(this,this.Y,this.isDragging,this.j,this.api.p$())}; g.A.gr=function(){g.x.prototype.gr.call(this);g.jn(this.T,"ytp-volume-slider-active")};g.L(dy,g.x); dy.prototype.onVideoDataChange=function(){var Z=this.api.N();this.pL();this.visible=!!this.api.getVideoData().videoId&&!g.ey(this.api.getVideoData(1));this.Wh(this.visible);this.api.logVisibility(this.element,this.visible&&this.L);if(this.visible){var Q=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",Q)}Z.S&&(this.Y&&(this.oy(this.Y),this.Y=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.rd(this.element,"no-link")); Q=this.api.N();Z=this.api.getVideoData();var z="";Q.S||(Q=g.O_(Q),Q.indexOf("www.")===0&&(Q=Q.substring(4)),z=g.EH(Z)?"Watch on YouTube Music":Q==="youtube.com"?"Watch on YouTube":g.fH("Watch on $WEBSITE",{WEBSITE:Q}));this.updateValue("title",z)}; dy.prototype.onClick=function(Z){this.api.V("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var Q=this.api.N(),z=this.api.getVideoUrl(!g.Is(Z),!1,!0,!0);if(g.mj(Q)){var K={};g.mj(Q)&&g.br(this.api,"addEmbedsConversionTrackingParams",[K]);z=g.BK(z,K)}g.sV(z,this.api,Z);this.api.V("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; dy.prototype.pL=function(){var Z={B:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},G:[{B:"path",KL:!0,D:"ytp-svg-fill",C:{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 "}}]}, Q=28666,z=this.api.getVideoData();this.api.isEmbedsShortsMode()?Z={B:"svg",C:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},G:[{B:"path",C:{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.EH(z)&&(Z={B:"svg",C:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},G:[{B:"path",C:{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"}},{B:"path",C:{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"}},{B:"path",C:{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"}},{B:"path",C:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{B:"path",C:{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"}},{B:"path",C:{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"}},{B:"path",C:{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"}},{B:"path",C:{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"}},{B:"path",C:{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"}},{B:"path",C:{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"}},{B:"path",C:{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"}},{B:"path",C:{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"}}]},Q=216163);g.EH(z)?g.rd(this.element,"ytp-youtube-music-button"):g.jn(this.element,"ytp-youtube-music-button");Z.C=Object.assign({},Z.C,{"aria-hidden":"true"});this.updateValue("logoSvg",Z);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,Q,!0)}; dy.prototype.yw=function(Z){g.x.prototype.yw.call(this,Z);this.api.logVisibility(this.element,this.visible&&Z)};g.L(Nk9,g.M5);g.A=Nk9.prototype;g.A.qn=function(){if(this.J.V("web_player_max_seekable_on_ended")||!g.t(this.J.getPlayerStateObject(),2))this.progressBar.E8(),this.KN.E8()}; g.A.T8=function(){this.Oa();this.I6.j?this.qn():this.progressBar.zo()}; g.A.mI=function(){this.qn();this.X.start()}; g.A.Oa=function(){var Z;if(Z=!this.J.N().j){Z=this.progressBar;var Q=2*g.Vf()*Z.K;Z=Z.S.getLength()*1E3/Z.api.getPlaybackRate()/Q<300}Z=Z&&this.J.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;Q=!Z;this.I6.j||(Z=Q=!1);Q?this.SJ||(this.SJ=this.Z(this.J,"progresssync",this.qn)):this.SJ&&(this.oy(this.SJ),this.SJ=null);Z?this.X.isActive()||this.X.start():this.X.stop()}; g.A.pL=function(){var Z=this.J.Us(),Q=this.J.U$().getPlayerSize(),z=ioM(this),K=Math.max(Q.width-z*2,100);if(this.Qp!==Q.width||this.CN!==Z){this.Qp=Q.width;this.CN=Z;var b=ahW(this);this.W.element.style.width=b+"px";this.W.element.style.left=z+"px";g.W0D(this.progressBar,z,b,Z);this.J.FJ().Y5=b}z=this.S;K=Math.min(570*(Z?1.5:1),K);Z=Math.min(413*(Z?1.5:1),Math.round((Q.height-P3D(this))*.82));z.maxWidth=K;z.maxHeight=Z;z.hD();this.Oa();this.J.N().V("html5_player_dynamic_bottom_gradient")&&ULW(this.qB, Q.height)}; g.A.onVideoDataChange=function(){var Z=this.J.getVideoData();this.Du.style.background=Z.BN?Z.K9:"";this.jJ&&kPf(this.jJ,Z.showSeekingControls);this.U&&kPf(this.U,Z.showSeekingControls)}; g.A.OA=function(){return this.W.element};g.L(R_M,Hy);g.A=R_M.prototype;g.A.h8=function(Z){Z.target!==this.dismissButton.element&&(this.onClickCommand&&this.J.hG("innertubeCommand",this.onClickCommand),this.AO())}; g.A.AO=function(){this.enabled=!1;this.U.hide()}; g.A.onVideoDataChange=function(Z,Q){Z==="dataloaded"&&C3f(this);Z=[];var z,K,b,q;if(Q=(q=g.V((z=Q.getWatchNextResponse())==null?void 0:(K=z.playerOverlays)==null?void 0:(b=K.playerOverlayRenderer)==null?void 0:b.suggestedActionsRenderer,XDY))==null?void 0:q.suggestedActions)for(z=g.n(Q),K=z.next();!K.done;K=z.next())(K=g.V(K.value,Sm0))&&g.V(K.trigger,YmE)&&Z.push(K);if(Z.length!==0){z=[];Z=g.n(Z);for(K=Z.next();!K.done;K=Z.next())if(K=K.value,b=g.V(K.trigger,YmE))q=(q=K.title)?g.SN(q):"View Chapters", Q=b.timeRangeStartMillis,b=b.timeRangeEndMillis,Q!=null&&b!=null&&K.tapCommand&&(z.push(new g.b6(Q,b,{priority:9,namespace:"suggested_action_button_visible",id:q})),this.suggestedActions[q]=K.tapCommand);this.J.df(z)}}; g.A.qp=function(){return this.enabled}; g.A.bz=function(){this.enabled?this.tG.start():C_(this);this.VA()}; g.A.gr=function(){C3f(this);Hy.prototype.gr.call(this)};var IZ={},id=(IZ.CHANNEL_NAME="ytp-title-channel-name",IZ.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",IZ.LINK="ytp-title-link",IZ.SESSIONLINK="yt-uix-sessionlink",IZ.SUBTEXT="ytp-title-subtext",IZ.TEXT="ytp-title-text",IZ.TITLE="ytp-title",IZ);g.L(aQ,g.x);aQ.prototype.onClick=function(Z){this.api.logClick(this.element);var Q=this.api.N(),z=this.api.getVideoUrl(!g.Is(Z),!1,!0);g.mj(Q)&&(Q={},g.br(this.api,"addEmbedsConversionTrackingParams",[Q]),z=g.BK(z,Q));g.sV(z,this.api,Z)}; aQ.prototype.E$=function(){var Z=this.api.getVideoData(),Q=this.api.N();this.updateValue("title",Z.title);var z={B:"a",D:id.CHANNEL_NAME,C:{href:"{{channelLink}}",target:"_blank"},W7:"{{channelName}}"};this.api.N().S&&(z={B:"span",D:id.CHANNEL_NAME,W7:"{{channelName}}",C:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",z);p5G(this);this.api.getPresentingPlayerType()===2&&(z=this.api.getVideoData(),z.videoId&&z.isListed&&z.author&&z.F7&&z.profilePicture?(this.updateValue("channelLink", z.F7),this.updateValue("channelName",z.author),this.updateValue("channelTitleFocusable","0")):p5G(this));z=Q.externalFullscreen||!this.api.isFullscreen()&&Q.Sc;g.vC(this.link,id.FULLERSCREEN_LINK,z);Q.SJ||!Z.videoId||z||g.ey(Z)||Q.S?this.Y&&(this.updateValue("url",null),this.oy(this.Y),this.Y=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.Y||(this.Y=this.Z(this.link,"click",this.onClick)));Q.S&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.mj(Q)?Z.expandedTitle: Z.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.L(g.PU,g.x);g.A=g.PU.prototype;g.A.setEnabled=function(Z){if(this.type!=null)if(Z)switch(this.type){case 3:case 2:MaG(this);this.T.show();break;default:this.T.show()}else this.T.hide();this.X=Z}; g.A.Ll=function(Z,Q,z,K,b,q,r,D){if(!this.KN||this.env.X){this.type===3&&this.zo();this.type!==1&&(g.b_(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.X&&this.T.show(),this.j&&this.j.dispose(),(this.j=this.api.Mr())&&this.j.subscribe("l",this.Lw,this));if(D){var v=g.n4(this.bg).height||141;this.c7.style.bottom=v+2+"px"}this.update({text:z,title:q!=null?q:"",eduText:D!=null?D:""});g.vC(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!q);this.api.isInline()&&g.rd(this.bottomText, "ytp-modern-tooltip-text");g.vC(this.element,"ytp-text-detail",!!K);z=-1;this.j&&(z=aO(this.j,243*this.scale),this.env.V("web_l3_storyboard")&&this.j.levels.length===4&&(z=this.j.levels.length-1),z=jU4(this.j,z,Q));Oo0(this,z);if(r)switch(Q=g.n4(this.element).width,r){case 1:this.title.style.right="0";this.title.style.textAlign="left";break;case 2:this.title.style.right=Q+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=Q/2+"px",this.title.style.textAlign="center"}UtM(this, !!K,Z,b)}}; g.A.M9=function(){this.type===1&&this.zo()}; g.A.Bw=function(Z,Q){if(this.type)if(this.type===3)this.zo();else return;Ho9(this,Z,3,Q)}; g.A.Bv=function(){this.Y&&!this.U&&this.Y.hasAttribute("title")&&(this.S=this.Y.getAttribute("title")||"",this.Y.removeAttribute("title"),this.X&&MaG(this))}; g.A.Lw=function(Z,Q){Z<=this.W&&this.W<=Q&&(Z=this.W,this.W=NaN,Oo0(this,Z))}; g.A.hY7=function(){rur(this.j,this.W,243*this.scale)}; g.A.zo=function(){switch(this.type){case 2:var Z=this.Y;Z.removeEventListener("mouseout",this.jJ);Z.addEventListener("mouseover",this.K);Z.removeEventListener("blur",this.jJ);Z.addEventListener("focus",this.K);oDn(this);break;case 3:oDn(this);break;case 1:this.j&&(this.j.unsubscribe("l",this.Lw,this),this.j=null),this.api.removeEventListener("videoready",this.SJ),this.P7.stop()}this.type=null;this.X&&this.T.hide()}; g.A.E9=function(){if(this.Y)for(var Z=0;Z<arguments.length;Z++)g.bG(arguments[Z],this.Y)&&this.zo()}; g.A.gr=function(){this.type!=null&&this.zo();this.j&&this.j.dispose();g.x.prototype.gr.call(this)};g.L(WQD,g.x);g.A=WQD.prototype;g.A.DY=function(){this.visible=Vau(this);this.Wh(this.visible);this.icon&&urx(this,this.icon);this.J.logVisibility(this.element,this.visible&&this.L)}; g.A.lY=function(){return this.J.getVideoData().videoId}; g.A.onClick=function(){this.J.logClick(this.element);var Z=this.J.N(),Q=this.lY();Z.P7?BkG(this):kxd(this,Q)}; g.A.onReset=function(){this.isRequestPending=this.Y=!1;this.E$(2);this.DY()}; g.A.E$=function(Z,Q){var z=this.J.N();urx(this,Z);Q?this.update({title:Q,image:null}):z.userDisplayName?(Z={USER_NAME:z.userDisplayName},this.update({title:this.Y?g.fH("Added as $USER_NAME",Z):g.fH("Watch later as $USER_NAME",Z),image:w5(z)})):this.update({title:"Watch later",image:null});this.J.Bv()}; g.A.yw=function(Z){g.x.prototype.yw.call(this,Z);this.J.logVisibility(this.element,this.visible&&Z)};g.L(g.RQ,g.EU);g.A=g.RQ.prototype; g.A.init=function(){var Z=this;this.XR=new g.Qm(this.api);this.yv=new vR(this.api);this.To=new g.x({B:"div",D:"ytp-chrome-top"});this.tooltip=new g.PU(this.api,this);this.channelAvatar=new YOu(this.api);this.title=new aQ(this.api);this.bI=new g.jN({B:"div",D:"ytp-chrome-top-buttons"});this.vx=new bCr(this.api,this.To.element);this.C0=this.api.N().controlsType==="1"?new Nk9(this.api,this,this.I6):null;this.contextMenu=new m$9(this.api,this.XR);this.Lc=new g.x({B:"div",C:{tabindex:"0"}});this.ze=new g.x({B:"div", C:{tabindex:"0"}});var Q=this.api.U$(),z=this.api.N(),K=this.api.getVideoData();this.vM&&(g.rd(this.api.getRootNode(),"ytp-embed"),g.rd(this.api.getRootNode(),"ytp-embed-playlist"),this.ZB&&(g.rd(this.api.getRootNode(),"ytp-embed-overlays-autohide"),g.rd(this.contextMenu.element,"ytp-embed-overlays-autohide")),this.t0=60,this.kU=89);this.api.N().S&&g.rd(this.api.getRootNode(),"ytp-embed-pfl");this.api.N().j&&(g.rd(this.api.getRootNode(),"ytp-mobile"),this.api.N().X&&g.rd(this.api.getRootNode(),"ytp-embed-mobile")); K&&K.videoId&&(this.Ma=K&&K.getEmbeddedPlayerResponse());g.W(this,this.XR);g.NZ(this.api,this.XR.element,4);g.W(this,this.yv);g.NZ(this.api,this.yv.element,4);K=new g.x({B:"div",D:"ytp-gradient-top"});g.W(this,K);g.NZ(this.api,K.element,1);this.kY=new g.s8(K,250,!0,100);g.W(this,this.kY);g.W(this,this.To);g.NZ(this.api,this.To.element,1);this.tW=new g.s8(this.To,250,!0,100);g.W(this,this.tW);g.W(this,this.tooltip);g.NZ(this.api,this.tooltip.element,4);var b=new XmX(this.api);g.W(this,b);g.NZ(this.api, b.element,5);b.subscribe("show",function(v){Z.WO(b,v)}); this.EH.push(b);this.UV=new ms(this.api,b);g.W(this,this.UV);!this.vM&&this.UV.zf(this.To.element);g.W(this,this.channelAvatar);this.channelAvatar.zf(this.To.element);g.W(this,this.title);this.title.zf(this.To.element);this.vM&&(K=new Mv9(this.api),g.W(this,K),K.zf(this.To.element));g.W(this,this.bI);this.bI.zf(this.To.element);var q=new IeG(this.api,this);g.W(this,q);g.NZ(this.api,q.element,5);q.subscribe("show",function(v){Z.WO(q,v)}); this.EH.push(q);this.searchButton=new ym(this.api);g.W(this,this.searchButton);this.searchButton.zf(this.bI.element);this.l1=new WQD(this.api);g.W(this,this.l1);this.l1.zf(this.bI.element);this.shareButton=new g.d$(this.api,this,q);g.W(this,this.shareButton);this.shareButton.zf(this.bI.element);this.copyLinkButton=new Ds(this.api,this);g.W(this,this.copyLinkButton);this.copyLinkButton.zf(this.bI.element);this.vM&&this.UV.zf(this.bI.element);g.W(this,this.vx);this.vx.zf(this.bI.element);z.T_&&(K=new aX(this.api), g.W(this,K),g.NZ(this.api,K.element,4));z.S||(K=new qOr(this.api,this.vx),g.W(this,K),K.zf(this.bI.element));this.uJ=new DLn(this.api);g.W(this,this.uJ);g.NZ(this.api,this.uJ.element,5);this.uJ.subscribe("show",function(){Z.WO(Z.uJ,Z.uJ.y5())}); this.EH.push(this.uJ);this.overflowButton=new g.cR(this.api,this.uJ);g.W(this,this.overflowButton);this.overflowButton.zf(this.bI.element);this.C0&&g.W(this,this.C0);z.controlsType==="3"&&(K=new J3(this.api),g.W(this,K),g.NZ(this.api,K.element,9));g.W(this,this.contextMenu);this.contextMenu.subscribe("show",this.kB,this);this.api.V("show_preskip_progress_bar_for_skippable_ads")||(K=new CF(this.api,new Zs(this.api)),g.W(this,K),g.NZ(this.api,K.element,4));this.Lc.listen("focus",this.jr,this);g.W(this, this.Lc);this.ze.listen("focus",this.iV,this);g.W(this,this.ze);var r;(this.EE=z.Ju?null:new rpX(this.api,Q,this.contextMenu,this.I6,this.XR,this.yv,function(){return Z.ge()},(r=this.C0)==null?void 0:r.progressBar))&&g.W(this,this.EE); this.vM||(this.Hy=new iCf(this.api),g.W(this,this.Hy),g.NZ(this.api,this.Hy.element,4),this.RA=new GPM(this.api),g.W(this,this.RA),g.NZ(this.api,this.RA.element,4));this.Ts=new R_M(this.api);g.W(this,this.Ts);g.NZ(this.api,this.Ts.element,4);if(this.vM){var D=new Fvu(this.api,this.api.N().Du);g.W(this,D);g.NZ(this.api,D.element,5);D.subscribe("show",function(v){Z.WO(D,v)}); Q=new lC4(this.api,D);g.W(this,Q);g.NZ(this.api,Q.element,4)}this.XQ.push(this.XR.element);this.Z(this.api,"fullscreentoggled",this.gL);this.Z(this.api,"offlineslatestatechange",function(){Z.api.Bm()&&Bf(Z.I6,128,!1)}); this.Z(this.api,"cardstatechange",function(){Z.Tw()}); this.Z(this.api,"resize",this.phN);this.Z(this.api,"videoplayerreset",this.onReset);this.Z(this.api,"showpromotooltip",this.fef);g.EU.prototype.init.call(this)}; g.A.FJ=function(){return this.tooltip}; g.A.RL=function(){return this.C0}; g.A.WO=function(Z,Q){Q?this.hp=Z:this.hp=null;this.Tw()}; g.A.Sh=function(Z,Q){if(Q)this.hO.push(Z);else for(Q=this.hO.length;Q>=0;Q--)if(this.hO[Q]===Z){this.hO.splice(Q,1);break}Bf(this.I6,64,this.hO.length>0)}; g.A.kT=function(){this.api.Ls()&&this.api.WH();return!!this.hp||xtM(this)||g.EU.prototype.kT.call(this)}; g.A.L2=Qx(3);g.A.Jn=Qx(7);g.A.Re=Qx(10); g.A.Tw=function(){var Z=!this.kT(),Q=Z&&this.api.Ls()&&!g.t(this.api.getPlayerStateObject(),2)&&!g.ey(this.api.getVideoData())&&!this.api.N().S&&!this.api.isEmbedsShortsMode(),z=this.vM&&g.IT(this.api)&&g.t(this.api.getPlayerStateObject(),128);Z||z?(this.tW.show(),this.kY.show()):(this.tW.hide(),this.kY.hide(),this.api.E9(this.To.element));Q?this.vx.Gz():this.vx.oT();this.C0&&GxX(this.C0,this.WG||!Z);this.api.V("web_player_hide_overflow_button_if_empty_menu")&&ta0(this);g.EU.prototype.Tw.call(this)}; g.A.bl=function(Z,Q,z,K,b){Z.style.left="";Z.style.top="";Z.style.bottom="";var q=g.n4(Z),r=K||this.C0&&g.bG(this.C0.OA(),Q),D=K=null;z!=null&&r||(K=g.n4(Q),D=g.hG(Q,this.api.getRootNode()),z==null&&(z=D.x+K.width/2));z-=q.width/2;r?(Q=this.C0,K=ioM(Q),D=ahW(Q),r=this.api.U$().getPlayerSize().height,z=g.Al(z,K,K+D-q.width),q=r-P3D(Q)-q.height):g.bG(this.To.element,Q)?(Q=this.api.U$().getPlayerSize().width,z=g.Al(z,12,Q-q.width-12),q=this.Us()?this.kU:this.t0,this.api.N().playerStyle==="gvn"&&(q+= 20),this.vM&&(q-=this.Us()?26:18)):(Q=this.api.U$().getPlayerSize(),z=g.Al(z,12,Q.width-q.width-12),q=D.y>(Q.height-K.height)/2?D.y-q.height-12:D.y+K.height+12);Z.style.top=q+(b||0)+"px";Z.style.left=z+"px"}; g.A.T8=function(Z){Z&&(this.api.E9(this.To.element),this.C0&&this.api.E9(this.C0.OA()));this.ZB&&(g.vC(this.contextMenu.element,"ytp-autohide",Z),g.vC(this.contextMenu.element,"ytp-autohide-active",!0));g.EU.prototype.T8.call(this,Z)}; g.A.SM=function(){g.EU.prototype.SM.call(this);this.ZB&&(g.vC(this.contextMenu.element,"ytp-autohide-active",!1),this.ZB&&(this.contextMenu.hide(),this.uJ&&this.uJ.hide()))}; g.A.qE=function(Z,Q){var z=this.api.U$().getPlayerSize();z=new g.ro(0,0,z.width,z.height);if(Z||this.I6.j&&!this.kT()){if(this.api.N().rj||Q)Z=this.Us()?this.kU:this.t0,z.top+=Z,z.height-=Z;this.C0&&(z.height-=P3D(this.C0))}return z}; g.A.gL=function(Z){var Q=this.api.getRootNode();Z?Q.parentElement?(Q.setAttribute("aria-label","YouTube Video Player in Fullscreen"),this.api.N().externalFullscreen||(Q.parentElement.insertBefore(this.Lc.element,Q),Q.parentElement.insertBefore(this.ze.element,Q.nextSibling))):g.Rm(Error("Player not in DOM.")):(Q.setAttribute("aria-label","YouTube Video Player"),this.Lc.detach(),this.ze.detach());this.pL();this.Ej()}; g.A.Us=function(){var Z=this.api.N();return this.api.isFullscreen()&&!Z.X||!1}; g.A.showControls=function(Z){this.sJ=!Z;this.Tw()}; g.A.pL=function(){var Z=this.Us();this.tooltip.scale=Z?1.5:1;this.contextMenu&&g.vC(this.contextMenu.element,"ytp-big-mode",Z);this.Tw();this.api.V("web_player_hide_overflow_button_if_empty_menu")||ta0(this);this.Ej();var Q=this.api.isEmbedsShortsMode();Q&&Z?(Z=(this.api.U$().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Dw(this.To.element,"padding-left",Z+"px"),g.Dw(this.To.element,"padding-right",Z+"px")):Q&&(g.Dw(this.To.element,"padding-left",""),g.Dw(this.To.element,"padding-right", ""));g.EU.prototype.pL.call(this)}; g.A.qJ=function(){if(xtM(this)&&!g.IT(this.api))return!1;var Z=this.api.getVideoData();return!g.mj(this.api.N())||this.api.getPresentingPlayerType()===2||!this.Ma||((Z=this.Ma||Z.Ma)?(Z=Z.embedPreview)?(Z=Z.thumbnailPreviewRenderer,Z=Z.videoDetails&&g.V(Z.videoDetails,xbx)||null):Z=null:Z=null,Z&&Z.collapsedRenderer&&Z.expandedRenderer)?g.EU.prototype.qJ.call(this):!1}; g.A.Ej=function(){g.EU.prototype.Ej.call(this);this.api.logVisibility(this.title.element,!!this.PS);this.UV&&this.UV.yw(!!this.PS);this.channelAvatar.yw(!!this.PS);this.overflowButton&&this.overflowButton.yw(this.R6()&&!!this.PS);this.shareButton&&this.shareButton.yw(!this.R6()&&!!this.PS);this.l1&&this.l1.yw(!this.R6()&&!!this.PS);this.searchButton&&this.searchButton.yw(!this.R6()&&!!this.PS);this.copyLinkButton&&this.copyLinkButton.yw(!this.R6()&&!!this.PS);if(!this.PS){this.api.E9(this.To.element); for(var Z=0;Z<this.EH.length;Z++){var Q=this.EH[Z];Q.y5()&&Q.oT()}}}; g.A.V3=function(Z){this.C0&&GxX(this.C0,this.kT());this.Tw();g.EU.prototype.V3.call(this,Z)}; g.A.handleGlobalKeyDown=function(Z,Q,z,K,b,q,r,D){return this.EE?this.EE.handleGlobalKeyDown(Z,Q,z,K,b,q,r,D):!1}; g.A.handleGlobalKeyUp=function(Z,Q,z,K,b,q,r){return this.EE?this.EE.handleGlobalKeyUp(Z,Q,z,K,b,q,r):!1}; g.A.ge=function(){if(this.contextMenu.RT)return this.contextMenu.oT(),!0;if(this.hO.length)return this.hO[this.hO.length-1].oT(),!0;if(this.hp)return this.hp.oT(),!0;this.C0&&this.api.E9(this.C0.OA());this.bI&&this.api.E9(this.bI.element);return g.EU.prototype.ge.call(this)}; g.A.dQ=function(Z,Q){this.EY=Q;this.Sh(Z,Q);this.kB()}; g.A.kB=function(){var Z=this.EY||this.contextMenu.y5();this.BI!==Z&&(this.BI=Z,this.api.hG("onAutonavPauseRequest",this.BI))}; g.A.jr=function(){FQn(this,this.api.getRootNode(),!0).focus()}; g.A.iV=function(){FQn(this,this.api.getRootNode(),!1).focus()}; g.A.l7=function(){return this.C0&&this.C0.S}; g.A.tP=function(){this.I6.tP()}; g.A.Zg=function(){this.XR.hide()}; g.A.dg=function(Z){this.XR.dg(!Z.isOrWillBePlaying())}; g.A.ZS=function(Z,Q,z,K){this.yv.ZS(Z,Q,z,K)}; g.A.renderChapterSeekingAnimation=function(Z,Q,z){G_f(this.yv,Z,Q,z)}; g.A.phN=function(){e_G(this,!0)}; g.A.onReset=function(){ta0(this)}; g.A.fef=function(Z){e_G(this,!1,Z)}; g.A.V1=function(){return this.contextMenu}; g.A.E_=function(Z,Q){var z;if((z=this.C0)!=null){var K=Number(Z.element.getAttribute("data-priority"))||0,b=0,q=z.j.element;Q&&z.J.V("delhi_modern_web_player")&&(q=z.j.Ru(N3[Q]));Q=g.n(q.children);for(z=Q.next();!(z.done||K<(Number(z.value.getAttribute("data-priority"))||0));z=Q.next())b++;Z.zf(q,b)}}; g.A.Gb=function(){var Z,Q=(Z=this.C0)==null?void 0:Z.progressBar;if(Q){var z;((z=Q.j)==null?0:z.isEnabled)&&Q.Gb()}};g.L(g.Ca,g.Jv);g.Ca.prototype.bP=function(){return!1}; g.Ca.prototype.create=function(){var Z=this.player.N();g.HM(Z)&&Z.j||Z.disableOrganicUi?this.chrome=new g.EU(this.player):this.chrome=new g.RQ(this.player);g.W(this,this.chrome);this.chrome.init();this.player.o3("ux")}; g.Ca.prototype.eK=function(){return this.chrome};var pa=[],VU9=!1;g.L(HU,g.O);HU.prototype.T=function(){this.Y!=null&&this.app.getVideoData()!==this.Y&&oO(this.Y)&&nxr(this.app,this.Y,void 0,void 0,this.S)}; HU.prototype.K=function(){if(this.Y!=null&&this.app.getVideoData()!==this.Y&&this.j!=null&&this.W!=null&&this.L!=null&&oO(this.Y)){var Z=lhf(this.j,this.W,this.L);Z==null?nxr(this.app,this.Y,void 0,void 0,this.S):(this.j.pN("sgap",Z),this.j.getVideoData().X&&this.j.tS(!1))}}; HU.prototype.X=function(Z){var Q=this.app.eJ();if(Q){var z=this.app.getCurrentTime();Math.abs(z-Z.end/1E3)>5&&Q.pN("glrs",{cmt:z});Q.seekTo(0,{seekSource:58});Q.pN("glrre",{cmt:z})}}; HU.prototype.gr=function(){this.Y=null;g.O.prototype.gr.call(this)};g.L(g.M3,lx);g.A=g.M3.prototype;g.A.isView=function(){return!0}; g.A.aQ=function(){var Z=this.mediaElement.getCurrentTime();if(Z<this.start)try{var Q=this.mediaElement.gm(),z=vd(Q,Z);return!(this.start<z)}catch(K){}return!1}; g.A.jG=function(){return XF(this.mediaElement.jG(),this.start,this.end)}; g.A.gm=function(){return XF(this.mediaElement.gm(),this.start,this.end)}; g.A.ri=function(){return XF(this.mediaElement.ri(),this.start,this.end)}; g.A.getCurrentTime=function(){return this.mediaElement.getCurrentTime()-this.start}; g.A.setCurrentTime=function(Z){this.mediaElement.setCurrentTime(Z+this.start)}; g.A.getDuration=function(){return isFinite(this.end)&&!this.Y?this.end-this.start:this.mediaElement.getDuration()-this.start}; g.A.play=function(){if(this.aQ()){this.mediaElement.getCurrentTime();try{this.mediaElement.setCurrentTime(this.start)}catch(Z){}}return this.mediaElement.play()}; g.A.gy=function(){var Z=lx.prototype.gy.call(this);Z.view=this.start+"-"+this.end;return Z}; g.A.addEventListener=function(Z,Q){this.mediaElement.addEventListener(Z,Q)}; g.A.removeEventListener=function(Z,Q){this.mediaElement.removeEventListener(Z,Q)}; g.A.L3=function(){return this.mediaElement.L3()}; g.A.activate=function(Z){this.mediaElement.activate(Z)}; g.A.NE=function(){return this.mediaElement.NE()}; g.A.playVideo=function(){return this.mediaElement.playVideo()}; g.A.Hb=function(){this.mediaElement.Hb()}; g.A.jF=function(){this.mediaElement.jF()}; g.A.Yo=function(){return this.mediaElement.Yo()}; g.A.OA=function(){return this.mediaElement.OA()}; g.A.bJ=function(){return this.mediaElement.bJ()}; g.A.HT=function(Z){this.mediaElement.HT(Z)}; g.A.No=function(){this.mediaElement.No()}; g.A.getPlaybackRate=function(){return this.mediaElement.getPlaybackRate()}; g.A.setPlaybackRate=function(Z){return this.mediaElement.setPlaybackRate(Z)}; g.A.rS=function(){return this.mediaElement.rS()}; g.A.setLoop=function(Z){this.mediaElement.setLoop(Z)}; g.A.canPlayType=function(Z,Q){return this.mediaElement.canPlayType(Z,Q)}; g.A.isPaused=function(){return this.mediaElement.isPaused()}; g.A.isSeeking=function(){return this.mediaElement.isSeeking()}; g.A.isEnded=function(){return this.mediaElement.isEnded()}; g.A.AM=function(){return this.mediaElement.AM()}; g.A.zM=function(Z){this.mediaElement.zM(Z)}; g.A.Vd=function(){return this.mediaElement.Vd()}; g.A.load=function(){this.mediaElement.load()}; g.A.pause=function(){this.mediaElement.pause()}; g.A.oX=function(){return this.mediaElement.oX()}; g.A.CA=function(){return this.mediaElement.CA()}; g.A.qe=function(){return this.mediaElement.qe()}; g.A.Fl=function(){return this.mediaElement.Fl()}; g.A.getVideoPlaybackQuality=function(){return this.mediaElement.getVideoPlaybackQuality()}; g.A.o6=function(){return this.mediaElement.o6()}; g.A.zw=function(){return this.mediaElement.zw()}; g.A.togglePictureInPicture=function(){this.mediaElement.togglePictureInPicture()}; g.A.Br=function(){return this.mediaElement.Br()}; g.A.getSize=function(){return this.mediaElement.getSize()}; g.A.setSize=function(Z){this.mediaElement.setSize(Z)}; g.A.getVolume=function(){return this.mediaElement.getVolume()}; g.A.setVolume=function(Z){this.mediaElement.setVolume(Z)}; g.A.setAttribute=function(Z,Q){this.mediaElement.setAttribute(Z,Q)}; g.A.removeAttribute=function(Z){this.mediaElement.removeAttribute(Z)}; g.A.hasAttribute=function(Z){return this.mediaElement.hasAttribute(Z)}; g.A.cD=Qx(56);g.A.uT=Qx(58);g.A.t9=Qx(60);g.A.Gq=Qx(62);g.A.B0=function(){return this.mediaElement.B0()}; g.A.Zh=function(Z){this.mediaElement.Zh(Z)}; g.A.lX=function(Z){return this.mediaElement.lX(Z)}; g.A.UU=function(){return this.mediaElement.UU()}; g.A.stopVideo=function(){this.mediaElement.stopVideo()}; g.A.Bb=function(Z){this.mediaElement.Bb(Z)}; g.A.audioTracks=function(){return this.mediaElement.audioTracks()}; g.A.W1=function(Z){this.mediaElement.W1(Z)};g.L(QN0,g.O);g.A=QN0.prototype;g.A.getStatus=function(){return this.status}; g.A.Nw=function(){var Z=this.Y.getVideoData(),Q=this.j.getVideoData(),z;if((z=Z.S)&&!(z=!Z.Y)){z=Z.Y;for(var K=!1,b=!1,q=g.n(Object.values(z.Y)),r=q.next();!r.done;r=q.next())r=r.value,r.info.audio&&r.index.isLoaded()&&(K=!0),r.info.video&&r.index.isLoaded()&&(b=!0);z.Y["0"]&&(b=!0);z=K&&b}if(z)if(this.Y.ES()){q=EDx(this.policy,this.Y,this.j,this.zQ);r=zrd(this);z=r.PX;b=r.jI;K=r.mA;r=r.Io;if(!this.T){var D=this.j.XJ()*1E3,v=this.Y.XJ();v=(K-z-v)*1E3;q&&q.msg==="in-the-past"&&(v=0);Z=Z.isAd();this.j.ul(D, v,Z);this.T=!0}q?(Q="cannot_apply"+q.msg,delete q.msg,this.Os(Q,q)):this.status.status===2?jNx(this):(Z=this.Y.NE())&&FF(Z)&&(!ux(Z)&&g.kq()?this.Os("mse_closed"):Q.Y&&D5(Q.Y)&&Z.j&&!Z.j.GF()?this.Os("encr_upgrade"):(Q=this.Y.ES(),Q.isEnded()?this.Os("elem_ended"):b<0?this.Os("next_player_future"):(this.K=K,this.currentVideoDuration=K-z,this.S=c10(Z,z,K,!0),this.W=c10(Z,b,r,!1),Z=this.j.getVideoData().clientPlaybackNonce,this.Y.pN("gaplessPrep",{cpn:Z}),this.Y.iT(this.S,!1,qLG(this),this.lh.N().V("html5_shorts_gapless_keep_pending_requests")&& l8(this.Y.getVideoData())),this.Y.setMediaElement(KaW(Q,z,K,!this.Y.getVideoData().isAd())),OA(this,2),jNx(this))))}else this.Os("no-elem")}; g.A.oU=function(Z){var Q=Z===AUW(this).Vh,z=Q?this.S.Y:this.S.j;Q=Q?this.W.Y:this.W.j;if(z.isActive&&!Q.isActive){var K=this.K;DR(Z.Sx(),K-.01)&&(OA(this,4),z.isActive=!1,z.A9=z.A9||z.isActive,(this.L===1?this.Y:this.j).pN("sbh",{}),Q.isActive=!0,Q.A9=Q.A9||Q.isActive,this.L!==0&&(this.Y.getVideoData().yE=!0));Z=this.W.j;if(this.W.Y.isActive&&Z.isActive&&(OA(this,5),this.L!==0)){Z=this.j.HM();z=this.Y.HM();this.Y.pN("sbs",{citag:z==null?void 0:z.itag,nitag:Z==null?void 0:Z.itag});this.j.pN("gitags", {pitag:z==null?void 0:z.itag,citag:Z==null?void 0:Z.itag});var b;(b=this.j)==null||b.UY()}}}; g.A.nw=function(){this.r_()&&this.Os("player-reload-after-handoff")}; g.A.Os=function(Z,Q){Q=Q===void 0?{}:Q;if(!this.FI()&&this.status.status!==6){var z=this.status.status>=4&&Z!=="player-reload-after-handoff";this.status={status:Infinity,error:Z};if(this.Y&&this.j){var K=this.j.getVideoData().clientPlaybackNonce;this.Y.U8(new N5("dai.transitionfailure",Object.assign(Q,{cpn:K,transitionTimeMs:this.zQ,msg:Z})));this.Y.tS(z)}this.rl.reject(Z);this.dispose()}}; g.A.r_=function(){return this.status.status>=4&&this.status.status<6}; g.A.gr=function(){rUu(this);this.Y.unsubscribe("newelementrequired",this.nw,this);if(this.S){var Z=this.S.j;this.S.Y.Po.unsubscribe("updateend",this.oU,this);Z.Po.unsubscribe("updateend",this.oU,this)}g.O.prototype.gr.call(this)}; g.A.IE=function(Z){g.Xw(Z,128)&&this.Os("player-error-event")};g.L(oQ,g.O);oQ.prototype.clearQueue=function(Z,Q){Z=Z===void 0?!1:Z;Q=Q===void 0?!1:Q;this.W&&this.W.reject("Queue cleared");this.app.N().V("html5_gapless_fallback_on_qoe_restart_v2")||Q&&this.j&&this.j.tS(!1);BU(this,Z)}; oQ.prototype.dV=function(){return!this.Y}; oQ.prototype.r_=function(){var Z;return((Z=this.S)==null?void 0:Z.r_())||!1}; oQ.prototype.gr=function(){BU(this);g.O.prototype.gr.call(this)};g.L(X2f,g.rV);g.A=X2f.prototype;g.A.getVisibilityState=function(Z,Q,z,K,b,q,r,D){return Z?4:vzu()?3:Q?2:z?1:K?5:b?7:q?8:r?9:D?10:0}; g.A.Jg=function(Z){this.fullscreen!==Z&&(this.fullscreen=Z,this.bz())}; g.A.setMinimized=function(Z){this.j!==Z&&(this.j=Z,this.bz())}; g.A.setInline=function(Z){this.inline!==Z&&(this.inline=Z,this.bz())}; g.A.JP=function(Z){this.pictureInPicture!==Z&&(this.pictureInPicture=Z,this.bz())}; g.A.setSqueezeback=function(Z){this.S!==Z&&(this.S=Z,this.bz())}; g.A.rN=function(Z){this.W!==Z&&(this.W=Z,this.bz())}; g.A.o6=function(){return this.Y}; g.A.mB=function(){return this.fullscreen!==0}; g.A.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; g.A.EC=function(){return this.fullscreen}; g.A.isMinimized=function(){return this.j}; g.A.isInline=function(){return this.inline}; g.A.isBackground=function(){return vzu()}; g.A.m$=function(){return this.pictureInPicture}; g.A.CF=function(){return!1}; g.A.i5=function(){return this.S}; g.A.XZ=function(){return this.W}; g.A.bz=function(){this.publish("visibilitychange");var Z=this.getVisibilityState(this.o6(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.m$(),this.CF(),this.i5(),this.XZ());Z!==this.K&&this.publish("visibilitystatechange");this.K=Z}; g.A.gr=function(){XlG(this.L);g.rV.prototype.gr.call(this)};g.L(SLx,g.O);g.A=SLx.prototype;g.A.IT=function(){return this.W}; g.A.S1=function(Z){this.W=Z}; g.A.eJ=function(){return this.S}; g.A.OX=function(Z){this.S=Z}; g.A.GW=function(Z){return this.j[Z]||null}; g.A.gr=function(){for(var Z=g.n(Object.values(this.j)),Q=Z.next();!Q.done;Q=Z.next())t9(Q.value);g.O.prototype.gr.call(this)};g.L(WU,g.O);g.A=WU.prototype;g.A.enqueue=function(Z,Q){if(Z.W!==this)return!1;if(this.segments.length===0||(Q===void 0?0:Q))this.Y=Z;this.segments.push(Z);return!0}; g.A.xX=function(){return this.mM||0}; g.A.aq=function(){return this.W||0}; g.A.removeAll=function(){for(;this.segments.length;){var Z=void 0;(Z=this.segments.pop())==null||Z.dispose()}this.j.clear();this.S=void 0}; g.A.gr=function(){this.removeAll();g.O.prototype.gr.call(this)}; g.L(JUM,g.O);g.A=JUM.prototype;g.A.xX=function(){return this.mM}; g.A.aq=function(){return this.S}; g.A.getType=function(){return this.type}; g.A.getVideoData=function(){return this.videoData}; g.A.dK=function(Z){Sy(Z);this.videoData=Z}; g.A.gr=function(){yUn(this);g.O.prototype.gr.call(this)};g.xJ.prototype.vO=function(Z,Q){if(Q===1)return this.Y.get(Z);if(Q===2)return this.S.get(Z);if(Q===3)return this.j.get(Z)}; g.xJ.prototype.xP=Qx(50);g.xJ.prototype.P_=function(Z,Q,z,K){z={N7:K,n8:z};Q?this.S.set(Z,z):this.Y.set(Z,z)}; g.xJ.prototype.clearAll=function(){this.Y.clear();this.S.clear();this.j.clear()}; g.L(g.ta,g.O);g.A=g.ta.prototype;g.A.lC=function(Z,Q,z){return new g.b6(Z,Q,{id:z,namespace:"serverstitchedcuerange",priority:9})}; g.A.o_=function(Z){var Q=Z.Dq?Z.Dq*1E3:Z.mM,z=this.j.get(Z.cpn);z&&this.playback.removeCueRange(z);this.j.delete(Z.cpn);this.S.delete(Z.cpn);z=this.L.indexOf(Z);z>=0&&this.L.splice(z,1);z=[];for(var K=g.n(this.K),b=K.next();!b.done;b=K.next())b=b.value,b.end<=Q?this.playback.removeCueRange(b):z.push(b);this.K=z;Vo9(this,0,Q+Z.durationMs)}; g.A.onCueRangeEnter=function(Z){this.tG.push(Z);var Q=Z.getId();this.Sf({oncueEnter:1,cpn:Q,start:Z.start,end:Z.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.XJ()||0).toFixed(3)});var z=Q==="";this.s$.add(Z.j);var K=this.S.get(Q);if(z){var b;if(this.playback.getVideoData().GJ()&&((b=this.Y)==null?0:b.OG)&&this.W){this.Tu=0;this.Y=void 0;this.qB&&(this.events.oy(this.qB),this.qB=null);this.W="";this.Du=!0;return}}else if(this.Sf({enterAdCueRange:1}),this.playback.getVideoData().GJ()&& (K==null?0:K.pn))return;if(this.Du&&!this.Y)this.Du=!1,!z&&K&&(z=this.playback.getCurrentTime(),sO(this,{nf:Z,isAd:!0,NO:!0,Xf:z,adCpn:Q},{isAd:!1,NO:!1,Xf:z}),this.Jo=K.cpn,EA(this,K),Z=wy(this,"midab",K),this.Sf(Z),this.Tu=1),this.U=!1;else if(this.Y){if(this.Y.NO)this.Sf({a_pair_of_same_transition_occurs_enter:1,acpn:this.Y.adCpn,transitionTime:this.Y.Xf,cpn:Q,currentTime:this.playback.getCurrentTime()}),K=this.playback.getCurrentTime(),Z={nf:Z,isAd:!z,NO:!0,Xf:K,adCpn:Q},Q={nf:this.Y.nf,isAd:this.Y.isAd, NO:!1,Xf:K,adCpn:this.Y.adCpn},this.Y.nf&&this.s$.delete(this.Y.nf.j),sO(this,Z,Q);else{if(this.Y.nf===Z){this.Sf({same_cue_range_pair_enter:1,acpn:this.Y.adCpn,transitionTime:this.Y.Xf,cpn:Q,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:Z.start,cueRangeEndTime:Z.end});this.Y=void 0;return}if(this.Y.adCpn===Q){Q&&this.Sf({dchtsc:Q});this.Y=void 0;return}Z={nf:Z,isAd:!z,NO:!0,Xf:this.playback.getCurrentTime(),adCpn:Q};sO(this,Z,this.Y)}this.Y=void 0;this.U=!1}else this.Y={nf:Z,isAd:!z, NO:!0,Xf:this.playback.getCurrentTime(),adCpn:Q}}; g.A.onCueRangeExit=function(Z){var Q=Z.getId();this.Sf({oncueExit:1,cpn:Q,start:Z.start,end:Z.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.XJ()||0).toFixed(3)});var z=Q==="",K=this.S.get(Q);if(this.playback.getVideoData().GJ()&&!z&&K){if(K.pn)return;K.pn=!0;this.T.clear();if(this.Yh.V("html5_lifa_no_rewatch_ad_sbc"))if(this.playback.ZZ()){var b=K.mM;this.playback.En(b/1E3,(b+K.durationMs)/1E3)}else this.playback.pN("lifa",{remove:0})}if(this.s$.has(Z.j))if(this.s$.delete(Z.j), this.tG=this.tG.filter(function(q){return q!==Z}),this.Du&&(this.U=this.Du=!1,this.Sf({cref:1})),this.Y){if(this.Y.NO){if(this.Y.nf===Z){this.Sf({same_cue_range_pair_exit:1, acpn:this.Y.adCpn,transitionTime:this.Y.Xf,cpn:Q,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:Z.start,cueRangeEndTime:Z.end});this.Y=void 0;return}if(this.Y.adCpn===Q){Q&&this.Sf({dchtsc:Q});this.Y=void 0;return}Q={nf:Z,isAd:!z,NO:!1,Xf:this.playback.getCurrentTime(),adCpn:Q};sO(this,this.Y,Q)}else if(this.Sf({a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.Y.adCpn,transitionTime:this.Y.Xf,upcomingCpn:Q,contentCpn:this.playback.getVideoData().clientPlaybackNonce,currentTime:this.playback.getCurrentTime()}), this.Y.adCpn===Q)return;this.Y=void 0;this.U=!1}else this.Y={nf:Z,isAd:!z,NO:!1,Xf:this.playback.getCurrentTime(),adCpn:Q};else this.Sf({ignore_single_exit:1})}; g.A.n9=function(){return{cpn:this.playback.getVideoData().clientPlaybackNonce,durationMs:0,mM:0,playerType:1,JH:0,videoData:this.playback.getVideoData(),errorCount:0}}; g.A.sR=function(){if(this.qw)return!1;var Z=void 0;this.Jo&&(Z=this.S.get(this.Jo));return this.playback.getVideoData().GJ()?!!Z&&!Z.pn:!!Z}; g.A.seekTo=function(Z,Q,z,K){Z=Z===void 0?0:Z;Q=Q===void 0?{}:Q;z=z===void 0?!1:z;K=K===void 0?null:K;if(this.playback.getVideoData().GJ()&&Z<=this.JG/1E3)this.playback.pauseVideo(),this.JG=0,this.U=!0,this.playback.Hx(),this.playback.seekTo(Z),this.playback.playVideo();else if(this.U=!0,z)Nsn(this,Z,Q);else{z=this.app.eJ();var b=z===this.Zu?this.DI:null;Qc(this,!1);this.sA=Z;this.X7=Q;K!=null&&this.F7.start(K);z&&(this.DI=b||z.getPlayerState(),z.VO(),this.Zu=z)}}; g.A.gr=function(){Qc(this,!1);HNG(this);MoM(this);g.O.prototype.gr.call(this)}; g.A.L1=function(Z){this.Ph=Z;this.Sf({swebm:Z})}; g.A.a4=function(Z,Q,z){if(z&&Q){var K=this.T.get(Z);if(K){K.locations||(K.locations=new Map);var b=Number(Q.split(";")[0]);z=new g.TL(z);this.Sf({hdlredir:1,itag:Q,seg:Z,hostport:h0(z)});K.locations.set(b,z)}}}; g.A.HR=function(Z,Q,z,K,b,q){var r=K===3,D=ON4(this,Z,Q,K,z,q);if(!D){KC(this,Q,r);var v=g.UAd(this,Q)?"undec":"ncp";this.Sf({gvprp:v,mt:Z,seg:Q,tt:K,itag:z,ce:q});return null}r||this.T.set(Q,D);q=D.xZ;var Y;K=((Y=this.vO(Q-1,K,b))==null?void 0:Y.N7)||"";K===""&&this.Sf({eds:1});Y=BsX(this,D.ssdaiAdsConfig);b=this.playback.getVideoData();var X;r=((X=b.j)==null?void 0:X.containerType)||0;X=b.iC[r];D=D.Lj&&Q>=D.Lj?D.Lj:void 0;X={Tq:q?ux0(this,q):[],Xu:Y,N7:K,Zy:D,Z7:sD(X.split(";")[0]),Ml:X.split(";")[1]|| ""};D={Rs:X};this.Qp&&(Z={gvprpro:"v",sq:Q,mt:Z.toFixed(3),itag:z,acpns:((v=X.Tq)==null?void 0:v.join("_"))||"none",abid:q},this.Sf(Z));return D}; g.A.d7=function(Z){a:{if(!this.qw){var Q=oUx(this,Z);if(!(this.playback.getVideoData().GJ()&&(Q==null?0:Q.pn)))break a}Q=void 0}var z=Q;if(!z)return this.Sf({gvprp:"ncp",mt:Z}),null;Q=z.xZ;var K=BsX(this,z.ssdaiAdsConfig);z=z.Lj&&z.VZ&&Z>=z.VZ?z.Lj:void 0;var b=this.playback.getVideoData(),q,r=((q=b.j)==null?void 0:q.containerType)||0;q=b.iC[r];q={Tq:Q?ux0(this,Q):[],Xu:K,Zy:z,Z7:sD(q.split(";")[0]),Ml:q.split(";")[1]||""};var D;Z={gvprpro:"v",mt:Z.toFixed(3),acpns:((D=q.Tq)==null?void 0:D.join("_"))|| "none",abid:Q};this.Sf(Z);return q}; g.A.JS=function(Z,Q,z,K,b,q){var r=Number(z.split(";")[0]),D=K===3;Z=ON4(this,Z,Q,K,z,q);this.Sf({gdu:1,seg:Q,itag:r,pb:""+!!Z});if(!Z)return KC(this,Q,D),null;Z.locations||(Z.locations=new Map);if(!Z.locations.has(r)){var v,Y;q=(v=Z.videoData.getPlayerResponse())==null?void 0:(Y=v.streamingData)==null?void 0:Y.adaptiveFormats;if(!q)return this.Sf({gdu:"noadpfmts",seg:Q,itag:r}),KC(this,Q,D),null;v=q.find(function(T){return T.itag===r}); if(!v||!v.url){var X=Z.videoData.videoId;Z=[];var S=g.n(q);for(K=S.next();!K.done;K=S.next())Z.push(K.value.itag);this.Sf({gdu:"nofmt",seg:Q,vid:X,itag:r,fullitag:z,itags:Z.join(",")});KC(this,Q,D);return null}Z.locations.set(r,new g.TL(v.url,!0))}q=Z.locations.get(r);if(!q)return this.Sf({gdu:"nourl",seg:Q,itag:r}),KC(this,Q,D),null;q=new DE(q);this.Ph&&(q.get("dvc")?this.Sf({dvc:q.get("dvc")||""}):q.set("dvc","webm"));(K=(S=this.vO(Q-1,K,b))==null?void 0:S.N7)&&q.set("daistate",K);Z.Lj&&Q>=Z.Lj&& q.set("skipsq",""+Z.Lj);(S=this.playback.getVideoData().clientPlaybackNonce)&&q.set("cpn",S);S=[];Z.xZ&&(S=ux0(this,Z.xZ),S.length>0&&q.set("acpns",S.join(",")));D||this.T.set(Q,Z);D=null;D=q.get("aids");K=q.sS();(K==null?void 0:K.length)>2048&&this.Sf({urltoolong:1,sq:Q,itag:r,len:K.length});this.Qp&&(K&&(q=Z.cpn,b=Z.xZ,FaM(this,q,b),b&&!this.kL.has(b)&&(q=xAn(this,q,b),v=toG(this,b),this.Sf({iofa:q}),this.Sf({noawnzd:v-q}),this.Sf({acpns:S.join("."),aids:(X=D)==null?void 0:X.replace(/,/g,".")}), this.kL.add(b))),this.Sf({gdu:"v",seg:Q,itag:z,ast:Z.mM.toFixed(3),alen:Z.durationMs.toFixed(3),acpn:Z.cpn,avid:Z.videoData.videoId}));return K}; g.A.AB=function(Z,Q,z){var K=z_(this,Z,z);return(K=K?(K.mM+K.durationMs)/1E3:0)&&Q>K?(this.zU(Z,z,!0),this.playback.seekTo(K),!0):!1}; g.A.zU=function(Z,Q,z){z=z===void 0?!1:z;var K=z_(this,Z,Q);if(K){var b=void 0,q=K.xZ;if(q){this.Sf({skipadonsq:Q,sts:z,abid:q,acpn:K.cpn,avid:K.videoData.videoId});z=this.jJ.get(q);if(!z)return;z=g.n(z);for(q=z.next();!q.done;q=z.next())q=q.value,q.Lj=Q,q.VZ=Z,q.mM>K.mM&&(b=q)}this.W=K.cpn;WaG(this);Z=this.playback.getCurrentTime();ld(this,K,b,Z,Z,!1,!0)}}; g.A.lB=function(){for(var Z=g.n(this.L),Q=Z.next();!Q.done;Q=Z.next())Q=Q.value,Q.Lj=NaN,Q.VZ=NaN;WaG(this);this.Sf({rsac:"resetSkipAd",sac:this.W});this.W=""}; g.A.vO=function(Z,Q,z){return this.c7.vO(Z,Q,z)}; g.A.xP=Qx(49); g.A.P_=function(Z,Q,z,K,b,q,r,D,v){K.length>0&&this.Sf({onssinfo:1,sq:Z,start:Q.toFixed(3),cpns:K.join(","),ds:b.join(","),isVideo:r?1:0});v&&this.c7.P_(Z,r,D,v);D=Qa(this.playback.getVideoData())&&this.Yh.V("html5_process_all_cuepoints");if(r||D){if(K.length&&b.length)for(this.W&&this.W===K[0]&&this.Sf({skipfail:1,sq:Z,acpn:this.W}),Z=Q+this.G1(),r=0;r<K.length;r++)if(v=K[r],D=Z,Z=D+b[r],v=this.S.get(v))D-=q[r],v.Dq=v.Dq!=null?Math.min(v.Dq,D):D;if(K.length&&b.length)for(Q=(Q+this.G1())*1E3,z=0;z< K.length;z++)if(Z=K[z],r=b[z]*1E3,Z===this.playback.getVideoData().clientPlaybackNonce)kYx(this,Q,Q+r,!1),Q+=r;else{this.NB.has(Z)||(this.Sf({adCpnFromEmsg:1}),this.NB.add(Z));D=0;z<q.length&&(D=q[z]*1E3);v=this.j.get(Z);var Y=!1;v?(v.start=Q-D,v.end=Q+r,this.playback.yV()):(v=this.lC(Q-D,Q+r,Z),this.j.set(Z,v),this.Sf({newAdCR:1,cpn:Z,startTime:v.start,endTime:v.end}),Y=!0);Q=v.end;kYx(this,v.start,v.end,!0);if(Y)for(this.playback.addCueRange(v),Z=this.playback.Y1("serverstitchedcuerange",36E5), Z=g.n(Z),r=Z.next();!r.done;r=Z.next())this.j.delete(r.value.getId())}else z!==5&&z!==4||kYx(this,(Q+this.G1())*1E3,(Q+this.G1())*1E3+5E3,!1)}}; g.A.oS=Qx(47);g.A.G1=function(){return this.playback.G1()}; g.A.B8=function(Z){this.playback.pN("timelineerror",{e:Z})}; g.A.gI=function(Z){this.KN&&this.SJ&&this.Vp.push(this.SJ);Z&&this.SJ&&this.Sp.push(this.SJ);this.SJ=null;this.playback.gI(Z)}; g.A.R7=function(Z){if(this.qw||Z.identifier&&this.zJ.has(Z.identifier))this.Sf({startnoad:Z.identifier}),eQ(this);else if(ih(this.Vp,function(z){return z.identifier===Z.identifier}))this.Sf({timedoutcp:1}),this.P7.start(0); else if(ih(this.Sp,function(z){return z.identifier===Z.identifier}))this.Sf({fetchedcp:1}),eQ(this); else if(this.P7.isActive()){var Q;this.Sf({racingcp:((Q=this.SJ)==null?void 0:Q.identifier)+"_"+Z.identifier})}else this.fL=(new Date).getTime()/1E3,this.Sf({adf:1}),(Q=5E3,Z.event==="predictStart")&&(Q-=Z.Y),this.gq=Math.max(Q,15E3),this.KN=!1,this.P7.start(this.gq),this.SJ=Z,this.c7.clearAll(),this.CN=[]}; g.A.wi=function(Z,Q,z,K){z=z||{reason:"disablessdai"};if(Z&&Q){if(!z_(this,Z,Q))return!1;z.sq=Q}if(this.qw)return!1;this.qw=!0;this.Tu>0&&(this.Tu=0,this.Jo="",this.api.publish("serverstitchedvideochange"));this.playback.w3(z,K);return!0}; g.A.WL=function(){this.Sf({rstdaist:1});this.c7.clearAll()}; g.A.YP=function(Z){var Q;if(Z!==((Q=this.SJ)==null?void 0:Q.identifier))this.Sf({ignorenoad:Z});else{this.zJ.add(Z);var z;((z=this.SJ)==null?void 0:z.identifier)===Z&&eQ(this)}}; g.A.NJ=function(){return this.Tu}; g.A.lw=function(){return this.Jo}; g.A.CJ=function(Z){if(this.playback.getVideoData().GJ()&&(this.Yh.V("html5_lifa_no_gab_on_predict_start")&&Z.event==="predictStart"||Z.event==="continue"||Z.event==="stop"))return this.Sf({cuepoint_skipped:Z.event}),!1;var Q=Hf(this.api.W4());if(Q=Q?Q.CJ(Z):!1)this.X={Y0:Z.identifier,oJ:Z.startSecs};else if(this.X&&this.X.Y0===Z.identifier&&Z.startSecs>this.X.oJ+1){this.Sf({cueStChg:Z.identifier,oldSt:this.X.oJ.toFixed(3),newSt:Z.startSecs.toFixed(3),abid:this.X.t1});if(this.X.t1){var z=Z.startSecs- this.X.oJ,K=this.jJ.get(this.X.t1);if(K){K=g.n(K);for(var b=K.next();!b.done;b=K.next())b=b.value,b.mM>=0&&(b.mM+=z*1E3,this.Yh.V("html5_ssdai_update_timeline_on_start_time_change")&&(b.JH+=z*1E3),this.Sf({newApEt:b.mM,newApPrt:b.JH,acpn:b.cpn}))}}this.X.oJ=Z.startSecs}return Q}; g.A.Wb=function(Z){return this.qw?!1:!!oUx(this,Z)}; g.A.Dy=function(Z){var Q=this;this.playback.pauseVideo();var z=this.playback.getCurrentTime(),K=this.S.get(this.Jo),b=this.j.get(this.Jo);if(K){this.W=this.Jo;this.U=!1;K.pn=!0;var q=this.playback.getCurrentTime();this.Y={nf:b,isAd:!0,NO:!1,Xf:q,adCpn:this.Jo,OG:K,cnh:Z};this.playback.getVideoData().GJ()&&this.playback.fE(K,this.n9(),q,this.playback.getCurrentTime(),!1,!0,Z,(0,g.Nm)());if(b==null?0:b.start)this.JG=q*1E3-b.start;this.T.clear();this.playback.Hx();this.Jo=this.n9().cpn;this.api.publish("serverstitchedvideochange"); this.playback.seekTo(z,{seekSource:89,s8:"lifa_skip"});this.playback.playVideo();this.qB||(this.qB=this.events.Z(this.api,"progresssync",function(){Q.o_(K)})); return!0}this.Sf({skipFail:z},!0);return!1}; g.A.Sf=function(Z,Q){((Q===void 0?0:Q)||this.Qp||this.playback.getVideoData().GJ())&&this.playback.pN("sdai",Z)}; var PeM=0;g.L(erD,g.ta);g.A=erD.prototype;g.A.o_=function(Z){var Q=this.j.get(Z.cpn);Q&&this.playback.removeCueRange(Q);this.j.delete(Z.cpn);this.S.delete(Z.cpn);Z=this.L.indexOf(Z);Z>=0&&this.L.splice(Z,1)}; g.A.onCueRangeEnter=function(Z){var Q=Z.getId();this.playback.pN("sdai",{oncueEnter:1,cpn:Q,start:Z.start,end:Z.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.XJ()||0).toFixed(3)});Q=this.S.get(Q);this.playback.pN("sdai",{enterAdCueRange:1});var z=this.Jo||this.n9().cpn,K;z=(K=this.S.get(z))!=null?K:this.n9();Q&&(Z={nf:Z,Wy:z,Ib:Q,pg:this.playback.getCurrentTime()},this.Y4(Z))}; g.A.onCueRangeExit=function(Z){for(var Q=this.playback.getCurrentTime()*1E3,z=Z.getId(),K=g.n(this.j.values()),b=K.next();!b.done;b=K.next())if(b=b.value,b.getId()!==z&&Q>=b.start&&Q<=b.end)return;if(Q=this.S.get(z))Z={nf:Z,Wy:Q,Ib:this.n9(),pg:this.playback.getCurrentTime()},this.Y4(Z)}; g.A.Y4=function(Z){this.W||this.U||this.FU(this.Jo);var Q=Z.Wy,z=Z.Ib;if(z.cpn===this.Jo)this.playback.pN("sdai",{igtranssame:1,enter:z.cpn,exit:Q.cpn});else{var K=this.U,b=!!this.W;this.W="";Z=Z.pg;var q=Q.playerType===2?Q.mM/1E3+Q.videoData.Zu:this.n9().videoData.Zu;if(Q.playerType===2&&z.playerType===2)b?this.playback.pN("sdai",{igtransskip:1,enter:z.cpn,exit:Q.cpn,seek:K,skip:this.W}):ld(this,Q,z,q,Z,K,b);else{this.Jo=z.cpn;if(Q.playerType===1&&z.playerType===2){this.JG=0;EA(this,z);var r=wy(this, "c2a",z);this.playback.pN("sdai",r);this.Tu++}else if(Q.playerType===2&&z.playerType===1){r=Q.videoData.Zu;this.api.publish("serverstitchedvideochange");var D=wy(this,"a2c");this.playback.pN("sdai",D);this.Tu=0;this.JG=r}this.playback.fE(Q,z,q,Z,K,b)}this.W="";this.U=!1}}; g.A.seekTo=function(Z,Q,z,K){Z=Z===void 0?0:Z;Q=Q===void 0?{}:Q;z=z===void 0?!1:z;K=K===void 0?null:K;this.FU(this.Jo);g.ta.prototype.seekTo.call(this,Z,Q,z,K)}; g.A.zU=function(Z,Q,z){z=z===void 0?!1:z;var K=z_(this,Z,Q);if(K){var b=void 0,q=K.xZ;if(q){this.playback.pN("sdai",{skipadonsq:Q,sts:z,abid:q,acpn:K.cpn,avid:K.videoData.videoId});z=this.jJ.get(q);if(!z)return;z=g.n(z);for(q=z.next();!q.done;q=z.next())q=q.value,q.Lj=Q,q.VZ=Z,q.mM>K.mM&&(b=q)}this.FU(this.Jo);this.W=K.cpn;WaG(this);Z=this.playback.getCurrentTime();ld(this,K,b,Z,Z,!1,!0)}}; g.A.P_=function(Z,Q,z,K,b,q,r,D,v){K.length>0&&this.playback.pN("sdai",{onssinfo:1,sq:Z,start:Q.toFixed(3),cpns:K.join(","),ds:b.join(","),isVideo:r?1:0});v&&this.c7.P_(Z,r,D,v);z=Qa(this.playback.getVideoData())&&this.Yh.V("html5_process_all_cuepoints");if(r||z){if(K.length&&b.length)for(this.W&&this.W===K[0]&&this.playback.pN("sdai",{skipfail:1,sq:Z,acpn:this.W}),Z=Q+this.G1(),r=0;r<K.length;r++)if(D=K[r],z=Z,Z=z+b[r],D=this.S.get(D))z-=q[r],D.Dq=D.Dq!=null?Math.min(D.Dq,z):z;if(K.length&&b.length)for(r= (Q+this.G1())*1E3,Q=0;Q<K.length;Q++)if(z=K[Q],D=b[Q]*1E3,z!==this.playback.getVideoData().clientPlaybackNonce){this.NB.has(z)||(this.playback.pN("sdai",{adCpnFromEmsg:1}),this.NB.add(z));v=0;Q<q.length&&(v=q[Q]*1E3);if(Z=this.j.get(z))Z.start=r-v,Z.end=r+D,this.playback.yV();else for(Z=this.lC(r-v,r+D,z),this.j.set(z,Z),this.playback.pN("sdai",{newAdCR:1,cpn:z,startTime:Z.start,endTime:Z.end}),this.playback.addCueRange(Z),r=this.playback.Y1("serverstitchedcuerange",36E5),r=g.n(r),z=r.next();!z.done;z= r.next())this.j.delete(z.value.getId());r=Z.end}}}; g.A.FU=function(Z){var Q=Z||this.Jo,z=this.S.get(Q);if(z){Z=z.videoData;var K,b;Q=z.Dq||((b=(K=this.j.get(Q))==null?void 0:K.start)!=null?b:0)/1E3;K=this.playback.getCurrentTime()-Q;Z.Zu=K>0?K:0}else this.n9().videoData.Zu=this.playback.getCurrentTime()};g.L(syf,g.O);g.A=syf.prototype; g.A.Ia=function(Z,Q){Q=Q===void 0?"":Q;if(this.timeline.S===Q)return!0;var z=this.timeline.Y,K=z==null?void 0:z.getVideoData();if(!z||!K)return this.api.pN("ssap",{htsm:z?0:1}),!1;if(this.api.V("html5_ssap_clear_timeline_before_update")){var b=this.timeline,q;(q=b.Y)==null||yUn(q);b.j.clear()}b=Vv(z);var r=!1;q=[];var D=new Map;z=[];var v=[],Y=0,X=0,S=0,T=[];Z=g.n(Z);for(var f=Z.next();!f.done;f=Z.next())a:{var h=void 0,m=void 0,J=f.value,d=J.clipId;if(d){if(J.vJ){S=J.vJ.oY||0;f=J.vJ.f5||1;var G= Number(((J.vJ.HU||0)/(J.vJ.PU||1)*1E3).toFixed(0));S=f=G+Number((S/f*1E3).toFixed(0))}else f=G=S,this.J9.has(d)||this.Q5.add(d);var R=(m=D.get(d))!=null?m:0,U=this.timeline.S;m=!1;if(U&&this.api.V("html5_ssap_clear_timeline_before_update")){if(U=this.vl.get(d))U.start=G,U.end=f,m=!0}else{if(U){var B=d;U=G;var e=f,F=R,KX=QD(this.timeline,B);if(KX!=null&&KX.length){F<KX.length&&(KX[F].mM=U,KX[F].S=e);if(B=this.vl.get(B))B.start=U,B.end=e;U=!0}else U=!1}if(U){D.set(d,R+1);r=!0;break a}}T.push(d);!m&& J.vJ&&(T=this.lC(G,f,T.join(",")),this.vl.set(d,T),z.push(T),T=[]);if(((h=J.vJ)==null?void 0:h.A7)===K.videoId){m=h=void 0;J=d;d=K;J!==d.clientPlaybackNonce&&this.api.pN("ssap",{cnm:1,cid:J,cpn:d.clientPlaybackNonce});if(this.api.V("html5_ssap_clear_timeline_before_update"))d.yk=G,J=ud(this.timeline,1,G,f-G,d),q.push(J),G=kJ(this.timeline,G,f,[J]),r=r||G;else if(U=[],d&&(d.yk=G,U=(m=QD(this.timeline,J))!=null?m:[]),!this.timeline.S&&U.length&&R===0){r=U[0];r.mM=G;r.S=f;d=(h=this.timeline.Y)==null? void 0:h.Y;if((h=d==null?void 0:d.get(0))&&d)for(m=0;m<h.length;m++)if(U=h[m],U.xX()!==U.aq()){U.mM=G;U.W=f;h.splice(m,1);d.has(G)?d.get(G).push(U):d.set(G,[U]);break}q.push(r);D.set(J,R+1);r=!0}else J=ud(this.timeline,1,G,f-G,d),q.push(J),G=kJ(this.timeline,G,f,[J]),r=r||G;v.length&&(v=Z0G(this,Y||0,X,v),r=r||v);X=Y=f;v=[]}else R=void 0,h=this.GQ.get(d),m=h!=null?h:new g.OK(this.api.N(),{cpn:d}),m.Yb=!0,this.Q5.has(d)&&this.GQ.set(d,m),Y=Math.min(G,Y),X=Math.max(f,X),this.api.pN("ssap",{e:G,d:f- G,c:d,p:h?1:0}),m.yk=G,f=ud(this.timeline,2,G,f-G,m,(R=J.Ai)==null?void 0:R.gJ),v.push(f)}else this.api.pN("ssap",{cm:1})}v.length&&(K=Z0G(this,Y||0,X,v),r=r||K);b&&q.length&&(In0(this.timeline,b,q),this.api.V("html5_ssap_clear_timeline_before_update")&&(K=q[q.length-1].aq(),(b=this.timeline.Y)!=null&&(b.S=K)));z.length&&this.playback.Mz(z);if(r){this.timeline.S=Q;K=this.playback.mL();Q=[];K=g.n(K);for(z=K.next();!z.done;z=K.next()){z=z.value;if(z.S){if(this.api.V("html5_ssap_fix_ad_completion_cue_range")&& z.start===0x7ffffffffffff)continue;b=dF(this,z.S);if(b===z.wb)continue;z.start=z.start-z.wb+b;z.end=z.end-z.wb+b;z.wb=b;Q.push(z)}this.api.V("html5_ssap_fix_cue_range_updates")||this.playback.FH(Q)}this.api.V("html5_ssap_fix_cue_range_updates")&&this.playback.FH(Q);this.api.pN("ssap",{tu:f1(this)});Q=Hf(this.api.W4());this.api.pN("ssap",{am:Q?1:0})}else this.api.pN("ssap",{tnu:1});return!0}; g.A.addPlayerResponseForAssociation=function(Z){var Q=new g.OK(this.api.N(),Z.playerVars);Q.playerResponseCpn?Q.clientPlaybackNonce=Q.playerResponseCpn:this.api.pN("ssap",{eim:this.playback.getVideoData().clientPlaybackNonce});Q.Yb=!0;if(Z=Z.Hp)Q.Hp=Z,Q.clientPlaybackNonce=Z.cpn;Z=Q.clientPlaybackNonce;this.api.pN("ssap",{aprfa:Z+"_"+Q.videoId});if(Z){this.GQ.set(Z,Q);var z=QD(this.timeline,Z),K=!1;if(z==null?0:z.length){z=g.n(z);for(var b=z.next();!b.done;b=z.next())b=b.value,Q.yk=b.xX(),b.dK(Q), b.j&&(K=!0)}else K=!Q.videoId;if(!K){if(!sKn(this.playback.Iu.NT(Q.videoId))){var q;this.api.pN("ssap",{nlc:Z,nlcc:(q=this.timeline.Y)==null?void 0:Vv(q)})}this.playback.Iu.nF().gW(Z,Q,2)}}}; g.A.Yp=function(){this.po=!0;this.api.V("html5_ssap_timeline_handle_error_and_abandon")&&this.finishSegmentByCpn(this.Jo,iH(this),5)}; g.A.FP=function(Z){if(g.Xw(Z,128)){var Q;Z=(Q=Z.state.wm)==null?void 0:Q.errorCode;this.finishSegmentByCpn(this.Jo,iH(this),7,Z)}}; g.A.finishSegmentByCpn=function(Z,Q,z,K){if(this.Jo===Q)return[];this.po&&(z=5,this.po=!1);this.api.pN("ssap",{fsbc:Z+";"+Q,fsbcr:z,fsbct:this.api.getCurrentTime().toFixed(),fsbce:K!=null?K:""});if(this.api.V("html5_ssap_timeline_handle_error_and_abandon")&&(z===5||z===7))return qCf(this,Z,Q,z),[];this.CE=Q;var b=!1;if(this.Q5.has(Z)&&(b=w2W(this,z),!b))return[Z];var q=QD(this.timeline,Q);if(q){q.sort(function(v,Y){return v.xX()-Y.xX()}); var r=g.n(q);for(q=r.next();!q.done;q=r.next()){q=q.value;var D=this.playback.getCurrentTime()*1E3;if(q.xX()>=D){this.aB.set(Z,z);KNX(this,Z,Q);this.xY.set(Z,(0,g.Nm)());if(z=this.vl.get(Q))for(z=z.getId().split(","),z=g.n(z),r=z.next();!r.done;r=z.next())r=r.value,r!==Q&&this.Q5.has(r)&&(this.Q5.delete(r),this.J9.add(r));this.FU();Q=q.xX()/1E3;q=void 0;z=(q=g.Xp(this.api.N().experiments,"html5_ssap_skip_seeking_offset_ms"))!=null?q:0;this.api.V("html5_ssap_keep_media_on_finish_segment")?this.playback.seekTo(Q+ z/1E3,{xx:!0}):this.playback.seekTo(Q+z/1E3);this.tD?(this.api.pN("ssap",{gpfreload:this.Jo}),lnX(this)||(this.tD=!1),this.playback.Hx(!1,!1,this.api.V("html5_ssap_keep_media_on_finish_segment"))):K&&this.playback.Hx(!1,!1,this.api.V("html5_ssap_keep_media_on_finish_segment"));b&&this.api.playVideo(1,this.api.V("html5_ssap_keep_media_on_finish_segment"));return[Z]}}}return[]}; g.A.UT=function(){var Z=this.timeline.Y;if(!Z)return 0;var Q=Z.aq();Z=g.n(Z.Y.values());for(var z=Z.next();!z.done;z=Z.next()){z=g.n(z.value);for(var K=z.next();!K.done;K=z.next())K=K.value,K.aq()>Q&&(Q=K.aq())}return Q/1E3}; g.A.Ze=function(){var Z=this.playback.getCurrentTime()*1E3;var Q=ATG(this,Z);if(!Q){var z=QD(this.timeline,this.Jo);if(z){z=g.n(z);for(var K=z.next();!K.done;K=z.next())K=K.value,K.xX()>Z&&(Q=K)}}return Q&&Q.getType()===1?Q.xX()/1E3:0}; g.A.getVideoData=function(Z){if(Z===2&&!this.sR()){if(this.qM&&this.GQ.has(this.qM))return this.GQ.get(this.qM);this.api.pN("ssap",{lpanf:""+iH(this)});return null}return vwM(this)}; g.A.sR=function(){var Z=QD(this.timeline,this.Jo);return(Z==null?0:Z.length)?Z[0].getType()===2:!1}; g.A.QS=function(){var Z=QD(this.timeline,this.Jo);return(Z==null?0:Z.length)?Z[0].j:!1}; g.A.seekTo=function(Z,Q){Q=Q===void 0?{}:Q;var z=jyn(this,this.playback.getCurrentTime());this.playback.seekTo(Z+z/1E3,Q)}; g.A.lC=function(Z,Q,z){return new g.b6(Z,Q,{id:z,namespace:"ssap",priority:9})}; g.A.onCueRangeEnter=function(Z){if(!this.Vs.has(Z.getId())){this.api.pN("ssap",{oce:1,cpn:Z.getId(),st:Z.start,et:Z.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.XJ()||0).toFixed(3)});for(var Q=Z.getId().split(","),z=0;z<Q.length&&this.CE&&Q[z]!==this.CE;){var K=Q[z];this.Q5.has(K)&&(this.Q5.delete(K),this.J9.add(K));z++}if(Q.length>z+1)for(K=z+1;K<Q.length;K++)this.b4.push(Q[K]);Q=Q[z];this.Q5.has(Q)&&gw4(this,Q);this.J9.has(Q)||b0u(this,Q);Q=g.n(this.vl.values());for(z= Q.next();!z.done;z=Q.next())z=z.value,z.start<=Z.start&&!this.Vs.has(Z.getId())&&this.Vs.add(z.getId())}}; g.A.NJ=function(){return this.Tu}; g.A.lw=function(){return this.Jo}; g.A.handleError=function(Z,Q){Q=Q===void 0?0:Q;if(Z!=="fmt.decode"&&Z!=="fmt.unplayable"||!this.sR()||this.BY===this.Jo)return!1;this.BY=this.Jo;if(this.api.V("html5_enable_ssap_gapful_switch"))this.tD=!0,this.api.pN("ssap",{gpfonerr:Z}),this.playback.Hx();else{this.playback.pN("ssap",{skiperr:Z,acpn:this.Jo});var z=this.playback.getVideoData().clientPlaybackNonce;this.finishSegmentByCpn(this.Jo,z,Q===1||Q===2?7:6,Z)}return!0}; g.A.FU=function(Z){var Q=Z||this.Jo;if(Z=this.GQ.get(Q)||this.playback.getVideoData())Q=this.playback.getCurrentTime()-dF(this,Q)/1E3,Z.Zu=Q>0?Q:0}; g.A.PYJ=function(Z){var Q=this.GQ.get(this.Jo);Q&&this.playback.ek(Z-Q.yk/1E3,Q.lengthSeconds,this.Jo)}; g.A.gr=function(){this.api.N().aT()&&this.api.pN("ssap",{di:""+this.Jo,dic:""+this.playback.getVideoData().clientPlaybackNonce});this.GQ.clear();this.Q5.clear();this.Vs.clear();this.aB.clear();this.xY.clear();this.J9.clear();this.b4=[];EU9(this);this.CE="";g.ib(this.events);g.O.prototype.gr.call(this)};g.L(SC4,g.O);g.A=SC4.prototype;g.A.onCueRangeEnter=function(Z){if(this.Y===this.app.eJ()){var Q=this.L.get(Z);Q?nwf(this,Q.target,Q.zQ,Z):this.U8("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:Z.toString()})}else if(Q=this.j.find(function(b){return b.QD.nf===Z})){var z=Q.QD,K=z.target; z=z.zQ;K?nwf(this,K,z,Z):LN0(this,Q.JH,z,Z)}}; g.A.onQueuedVideoLoaded=function(){var Z=this.T;jV(this);if(Z){if(!Az(this,Z)){var Q=this.app.eJ();this.U8("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:Q==null?void 0:Q.getVideoData().clientPlaybackNonce,ccpn:""+Z.playerVars.cpn})}this.app.eJ().addCueRange(Z.QD.nf)}}; g.A.seekTo=function(Z,Q,z,K){Z=Z===void 0?0:Z;Q=Q===void 0?{}:Q;K=K===void 0?null:K;if(z===void 0?0:z)Xw4(this,Z,Q);else{z=this.app.eJ()||null;var b=z===this.W?this.K:null;DC(this,!1);this.jJ=Z;this.U=Q;K!=null&&this.X.start(K);z&&(this.K=b||z.getPlayerState(),z.VO(),this.W=z)}}; g.A.FP=function(Z){g.Xw(Z,128)&&yTW(this)}; g.A.isManifestless=function(){return AP(this.Y.getVideoData())}; g.A.gr=function(){DC(this,!1);NGG(this);g.O.prototype.gr.call(this)}; g.A.U8=function(Z,Q){this.Y.U8(new N5(Z,Q))}; var $wx=0;var GR0="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.L(Y8,g.O);g.A=Y8.prototype;g.A.get=function(Z){vp(this);var Q=this.data.find(function(z){return z.key===Z}); return Q?Q.value:null}; g.A.set=function(Z,Q,z){this.remove(Z,!0);vp(this);Z={key:Z,value:Q,expire:Infinity};z&&isFinite(z)&&(z*=1E3,Z.expire=(0,g.Nm)()+z);for(this.data.push(Z);this.data.length>this.S;)(z=this.data.shift())&&Xe(this,z,!0);g3(this)}; g.A.remove=function(Z,Q){Q=Q===void 0?!1:Q;var z=this.data.find(function(K){return K.key===Z}); z&&(Xe(this,z,Q),g.sm(this.data,function(K){return K.key===Z}),g3(this))}; g.A.removeAll=function(Z){if(Z=Z===void 0?!1:Z)for(var Q=g.n(this.data),z=Q.next();!z.done;z=Q.next())Xe(this,z.value,Z);this.data=[];g3(this)}; g.A.gr=function(){var Z=this;g.O.prototype.gr.call(this);this.data.forEach(function(Q){Xe(Z,Q,!0)}); this.data=[]};g.L(SV,g.O);SV.prototype.ya=function(Z){if(Z)return this.j.get(Z)}; SV.prototype.gr=function(){this.Y.removeAll();this.j.removeAll();g.O.prototype.gr.call(this)};g.qbE=vK(function(){var Z=window.AudioContext||window.webkitAudioContext;try{return new Z}catch(Q){return Q.name}});g.L(pw0,g.x);g.A=pw0.prototype;g.A.Zh=function(){g.Aw(this.element,g.iu.apply(0,arguments))}; g.A.A6=function(){this.Hh&&(this.Hh.removeEventListener("focus",this.L_),g.K$(this.Hh),this.Hh=null)}; g.A.Iw=function(){this.FI();var Z=this.app.N();Z.tR||this.Zh("tag-pool-enabled");Z.K&&this.Zh(g.Oe.HOUSE_BRAND);Z.playerStyle==="gvn"&&(this.Zh("ytp-gvn"),this.element.style.backgroundColor="transparent");Z.Ph&&(this.eD=g.bm("yt-dom-content-change",this.resize,this));this.Z(window,"orientationchange",this.resize,this);this.Z(window,"resize",this.resize,this)}; g.A.wK=function(Z){g.Nx(this.app.N());this.cR=!Z;$8(this)}; g.A.resize=function(){if(this.Hh){var Z=this.KZ();if(!Z.isEmpty()){var Q=!g.$v(Z,this.IB.getSize()),z=owx(this);Q&&(this.IB.width=Z.width,this.IB.height=Z.height);Z=this.app.N();(z||Q||Z.Ph)&&this.app.fN.publish("resize",this.getPlayerSize())}}}; g.A.AL=function(Z,Q){this.updateVideoData(Q)}; g.A.updateVideoData=function(Z){if(this.Hh){var Q=this.app.N();th&&(this.Hh.setAttribute("x-webkit-airplay","allow"),Z.title?this.Hh.setAttribute("title",Z.title):this.Hh.removeAttribute("title"));this.Hh.setAttribute("controlslist","nodownload");Q.CC&&Z.videoId&&(this.Hh.poster=Z.uI("default.jpg"))}Q=g.hP(Z,"yt:bgcolor");this.QY.style.backgroundColor=Q?Q:"";this.ZX=rt(g.hP(Z,"yt:stretch"));this.MP=rt(g.hP(Z,"yt:crop"),!0);g.vC(this.element,"ytp-dni",Z.BN);this.resize()}; g.A.setGlobalCrop=function(Z){this.KU=rt(Z,!0);this.resize()}; g.A.setCenterCrop=function(Z){this.bZ=Z;this.resize()}; g.A.Jg=function(){}; g.A.getPlayerSize=function(){var Z=this.app.N(),Q=this.app.fN.isFullscreen(),z=Z.externalFullscreen&&g.mj(Z);if(Q&&VC()&&!z)return new g.SO(window.outerWidth,window.outerHeight);z=!isNaN(this.Kc.width)&&!isNaN(this.Kc.height);var K=this.app.N().V("kevlar_player_enable_squeezeback_fullscreen_sizing");if(Q&&!z&&K)return new g.SO(this.element.clientWidth,this.element.clientHeight);if(Q||Z.lc){if(window.matchMedia){Z="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.Z5&&this.Z5.media=== Z||(this.Z5=window.matchMedia(Z));var b=this.Z5&&this.Z5.matches}if(b)return new g.SO(window.innerWidth,window.innerHeight)}else if(z)return this.Kc.clone();return new g.SO(this.element.clientWidth,this.element.clientHeight)}; g.A.KZ=function(){var Z=this.app.N().V("enable_desktop_player_underlay"),Q=this.getPlayerSize(),z=g.Xp(this.app.N().experiments,"player_underlay_min_player_width");return Z&&this.nT&&Q.width>z?(Z=g.Xp(this.app.N().experiments,"player_underlay_video_width_fraction"),new g.SO(Math.min(Q.height*this.getVideoAspectRatio(),Q.width*Z),Math.min(Q.height,Q.width*Z/this.getVideoAspectRatio()))):Q}; g.A.getVideoAspectRatio=function(){return isNaN(this.ZX)?MUr(this):this.ZX}; g.A.getVideoContentRect=function(Z){var Q=this.KZ();Z=Uwn(this,Q,this.getVideoAspectRatio(),Z);return new g.ro((Q.width-Z.width)/2,(Q.height-Z.height)/2,Z.width,Z.height)}; g.A.Kj=function(Z){this.nT=Z;this.resize()}; g.A.IG=function(){return this.rh}; g.A.onMutedAutoplayChange=function(){$8(this)}; g.A.setInternalSize=function(Z){g.$v(this.Kc,Z)||(this.Kc=Z,this.resize())}; g.A.gr=function(){this.eD&&g.qF(this.eD);this.A6();g.x.prototype.gr.call(this)};g.A=BGM.prototype;g.A.click=function(Z,Q){this.elements.has(Z);this.Y.has(Z);var z=g.Jy();z&&Z.visualElement&&g.Ki(z,Z.visualElement,Q)}; g.A.createClientVe=function(Z,Q,z,K){var b=this;K=K===void 0?!1:K;this.elements.has(Z);this.elements.add(Z);z=cWx(z);Z.visualElement=z;var q=g.Jy(),r=g.Im();q&&r&&(g.nA("combine_ve_grafts")?m5(nY(),z,r):g.lW(g.xY)(void 0,q,r,z));Q.addOnDisposeCallback(function(){b.elements.has(Z)&&b.destroyVe(Z)}); K&&this.j.add(Z)}; g.A.createServerVe=function(Z,Q,z){var K=this;z=z===void 0?!1:z;this.elements.has(Z);this.elements.add(Z);Q.addOnDisposeCallback(function(){K.destroyVe(Z)}); z&&this.j.add(Z)}; g.A.destroyVe=function(Z){this.elements.has(Z);this.elements.delete(Z);this.S.delete(Z);this.Y.delete(Z);this.j.delete(Z)}; g.A.Z0=function(Z,Q){this.clientPlaybackNonce!==Q&&(this.clientPlaybackNonce=Q,c3(nY(),Z),WN4(this))}; g.A.setTrackingParams=function(Z,Q){this.elements.has(Z);Q&&(Z.visualElement=g.cc(Q))}; g.A.Wh=function(Z,Q,z){this.elements.has(Z);Q?this.Y.add(Z):this.Y.delete(Z);var K=g.Jy(),b=Z.visualElement;this.j.has(Z)?K&&b&&(Q?g.Qw(K,[b]):g.zy(K,[b])):Q&&!this.S.has(Z)&&(K&&b&&g.Zz(K,b,void 0,z),this.S.add(Z))}; g.A.hasVe=function(Z){return this.elements.has(Z)};g.L(g.fC,g.O);g.fC.create=function(Z,Q,z,K){try{var b=typeof Z==="string"?Z:"player"+g.e4(Z),q=Jm[b];if(q){try{q.dispose()}catch(D){g.Rm(D)}Jm[b]=null}var r=new g.fC(Z,Q,z,K);r.addOnDisposeCallback(function(){Jm[b]=null;r.Rj&&r.Rj()}); return Jm[b]=r}catch(D){throw g.Rm(D),(D&&D instanceof Error?D:Error(String(D))).stack;}}; g.A=g.fC.prototype;g.A.MU=function(){return this.visibility}; g.A.S1=function(Z){var Q=this.IT();if(Z!==Q){Z.getVideoData().autonavState=Q.getVideoData().autonavState;Q.wk(this.w8,this);var z=Q.getPlaybackRate();t9(Q);this.Zi.S1(Z);Z.setPlaybackRate(z);Z.EK(this.w8,this);eLd(this)}}; g.A.Na=function(){this.G5||(this.G5=g.b9(Pq(),j$u()));return this.G5}; g.A.A6=function(Z){if(this.mediaElement){this.Uc&&(this.events.oy(this.Uc),this.Uc=null);g.ib(this.yM);var Q=this.eJ();Q&&Q.A6(!0,!1,Z);this.template.A6();try{this.V("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.No()}catch(z){g.CO(z)}this.mediaElement=null}}; g.A.OX=function(Z,Q){if(Z!==this.eJ()){this.logger.debug(function(){return"start set presenting player, type "+Z.getPlayerType()+", vid "+Z.getVideoData().videoId}); var z=null,K=this.eJ();K&&(z=K.getPlayerState(),this.logger.debug("set presenting player, destroy modules"),py(this.Za,3),OO(this,"cuerangesremoved",K.mL()),this.Hl&&!Z.isGapless()&&K.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo(),K=Z.jc()&&K.jc(),this.rq.vz("iv_s"),q9D(this,K));Z.getPlayerType()===1&&this.S1(Z);brM(this,Z);this.Zi.OX(Z);this.mediaElement&&Z.setMediaElement(this.mediaElement);Z.EK(this.Jb,this);Z.Sg()?pE0(this,"setPresenting",!1):(this.AL("newdata",Z,Z.getVideoData()), z&&!g.Dl(z,Z.getPlayerState())&&this.GI(new g.gB(Z.getPlayerState(),z)),Q=Q&&this.V("html5_player_preload_ad_fix")&&Z.getPlayerType()===1,Z.mN()&&!Q&&this.AL("dataloaded",Z,Z.getVideoData()),(Q=(Q=Z.getVideoData().j)&&Q.video)&&this.fN.ZG("onPlaybackQualityChange",Q.quality),OO(this,"cuerangesadded",Z.mL()),Q=Z.getPlayerState(),g.t(Q,2)?KFf(this):g.t(Q,8)?Z.playVideo():Z.vL()&&Z.pauseVideo(),Q=this.IT(),Z.getPlayerType()===2&&(Z.getVideoData().mS=Q.getVideoData().clientPlaybackNonce),Z.getPlayerType()!== 2||this.PN()||(z=Z.getVideoData(),Q.iE(z.clientPlaybackNonce,z.Sp||"",z.breakType||0,z.CM,z.videoId||"")),this.logger.debug("finish set presenting player"))}}; g.A.TA=function(){if(this.IT()!==this.eJ()){var Z=this.eJ();this.logger.debug(function(){return"release presenting player, type "+(Z==null?void 0:Z.getPlayerType())+", vid "+(Z==null?void 0:Z.getVideoData().videoId)}); this.OX(this.IT())}}; g.A.GW=function(Z){if(Z)if(Z===1)Z=this.IT();else if(this.getVideoData().enableServerStitchedDai&&Z===2)Z=this.getVideoData().enablePreroll?this.Zi.GW(2)||this.eJ():this.eJ();else if(g.V0(this.getVideoData())&&Z===2){if(Z=this.V("html5_ssap_return_content_player_during_preroll"))if(Z=this.jf)Z=this.jf,Z=Z.Jo===""?!0:Z.sR();Z=Z?this.eJ():this.Zi.GW(2)||this.eJ()}else Z=this.Zi.GW(Z)||null;else Z=this.eJ();return Z}; g.A.IT=function(){return this.Zi.IT()}; g.A.eJ=function(){return this.Zi.eJ()}; g.A.GS=Qx(44);g.A.aI7=function(){I1(this)||(this.logger.debug("application playback ready"),this.Oj(5))}; g.A.A4g=function(Z){if(!I1(this)){this.logger.debug("playback ready");aqW(this);var Q=Z.getPlayerState();Z.vL()?this.pauseVideo():Q.isOrWillBePlaying()&&this.playVideo()}}; g.A.canPlayType=function(Z){return PN(Z)}; g.A.N=function(){return this.Yh}; g.A.getVideoData=function(){return this.eJ().getVideoData()}; g.A.hq=Qx(18);g.A.SP=function(){return this.IT().getVideoData()}; g.A.getVideoLoadedFraction=function(Z){Z=this.GW(Z);return Z?g.xG(Z.getVideoData())?1:(Z=Z.ES())?Z.Yk():0:0}; g.A.U$=function(){return this.template}; g.A.W4=function(){return this.Za}; g.A.hx=function(){return this.rq}; g.A.n2=function(Z){var Q=this.GW(1);Q&&Q.s0(Z)}; g.A.bR=function(){var Z=this.Za.bR();this.fN.publish("videoStatsPingCreated",Z);return Z}; g.A.getVolume=function(){return Math.round(this.fN.getVolume())}; g.A.isMuted=function(){return this.fN.isMuted()}; g.A.Rf=function(){if(this.IT()===this.eJ()&&this.Vw)return this.Vw.postId}; g.A.AjY=function(){var Z=this;this.V("use_rta_for_player")||(g.Nf(this.Yh)?g.la(this.Yh,g.B0(this.getVideoData())).then(function(Q){RT(Pq(),Q);cQd(Z.getVideoData(),Z.Yh,Z.Na())}):cQd(this.getVideoData(),this.Yh,this.Na()))}; g.A.GM=function(Z){this.fN.publish("poTokenVideoBindingChange",Z)}; g.A.eT=function(Z){this.fN.publish("d6de4videobindingchange",Z)}; g.A.JA=function(){this.dY&&this.dY.JA()}; g.A.RM=function(Z){this.dY=Z}; g.A.u4=function(Z){if(Z===1){this.rq.tick("vr");var Q=this.eJ();Q.h1();kh9(this.rq,Q.getVideoData(),ir4(this));aK4(this.Za)}Q=this.Yh;(eY(Q)&&Q.T||g.ia(Q))&&(this.PN()||this.fN.ZG("onAdStateChange",Z))}; g.A.setLoopVideo=function(Z){var Q=this.eJ();Q===this.IT()&&Q.rS()!==Z&&(Q.setLoop(Z),this.fN.hG("onLoopChange",Z))}; g.A.getLoopVideo=function(){return this.eJ().rS()}; g.A.setLoopRange=function(Z){var Q=!1;!!this.Vw!==!!Z?Q=!0:this.Vw&&Z&&(Q=this.Vw.startTimeMs!==Z.startTimeMs||this.Vw.endTimeMs!==Z.endTimeMs||this.Vw.postId!==Z.postId||this.Vw.type!==Z.type);if(Q){(Q=this.eJ())&&l8(Q.getVideoData())&&Q.pN("slr",{et:(Z==null?void 0:Z.endTimeMs)||-1});Q=this.IT();Q.US("applooprange");if(Z){var z=new g.b6(Z.startTimeMs,Z.endTimeMs,{id:"looprange",namespace:"applooprange"});Q.addCueRange(z)}else{this.SP().clipConfig=void 0;var K;((z=this.Vw)==null?void 0:z.type)!== "repeatChapter"||isNaN(Number((K=this.Vw)==null?void 0:K.loopCount))||(z={loopCount:String(this.Vw.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.DW("repeatChapterLoopEvent",z))}this.Vw=Z;this.fN.hG("onLoopRangeChange",Z||void 0);this.IT()===this.eJ()&&(this.UF(),Q.Iu.y0())}}; g.A.getLoopRange=function(){return this.Vw}; g.A.UF=function(){var Z="",Q=this.IT();this.Vw?Q!==this.eJ()?Z="pnea":XEn(this,Q.getCurrentTime())&&(this.Vw.loopCount=0,Z="ilr"):Z="nlr";var z=this.eJ();if(z&&l8(z.getVideoData()))if(this.V("html5_gapless_log_loop_range_info")){var K,b;z.pN("slrre",{rej:Z,ct:Q.getCurrentTime(),lst:(K=this.Vw)==null?void 0:K.startTimeMs,let:(b=this.Vw)==null?void 0:b.endTimeMs})}else z.pN("slrre",{});Z||fqG(this)}; g.A.setPlaybackRate=function(Z,Q){if(!isNaN(Z)){Z=sBu(this,Z);var z=this.IT();z.getPlaybackRate()!==Z&&(z.setPlaybackRate(Z),Q&&!this.Yh.W&&g.CS("yt-player-playback-rate",Z),this.fN.ZG("onPlaybackRateChange",Z))}}; g.A.getCurrentTime=function(Z,Q,z){Q=Q===void 0?!0:Q;if(this.getPresentingPlayerType()===3)return mI(this.Za).getCurrentTime();var K=Z===2&&this.getVideoData().enableServerStitchedDai,b=g.V0(this.getVideoData());Z=K||b?this.eJ():this.GW(Z);if(!Z)return 0;if(b&&this.jf)return Q=this.jf,Z=Z.getCurrentTime(),z?z=bZ(Q,z):(z=jyn(Q,Z),z=Z-z/1E3),z;if(Q){if(K&&this.Qk&&(z=this.Qk.JG/1E3,z!==0))return z;z=mv(this,Z);return Pp(this,z.getCurrentTime(),z)}K&&this.Qk?(z=this.Qk,Z=Z.getCurrentTime(),z=(z=Ce4(z, Z*1E3))?Z-z.start/1E3:Z):z=Z.getCurrentTime();return z}; g.A.g_=function(){var Z=this.GW();if(!Z)return 0;Z=mv(this,Z);return Pp(this,Z.g_(),Z)}; g.A.getDuration=function(Z,Q){Q=Q===void 0?!0:Q;var z=this.getVideoData(),K=Z===2&&z.enableServerStitchedDai,b=g.V0(z);var q=K||b?this.eJ():this.GW(Z);if(!q)return 0;if(z.hasProgressBarBoundaries()&&!K&&!b){var r,D=Number((r=z.progressBarStartPosition)==null?void 0:r.utcTimeMillis),v;z=Number((v=z.progressBarEndPosition)==null?void 0:v.utcTimeMillis);if(!isNaN(D)&&!isNaN(z))return(z-D)/1E3}if(b&&this.jf)return Q=Dw4(this.jf,this.jf.lw()),Z===1&&Q===0?q.getDuration():Q;if(Q)return q=cp(this,q),Pp(this, q.getDuration(),q);K&&this.Qk?(Z=this.Qk,q=q.getCurrentTime(),q=(q=p2x(Z,q*1E3))?q.durationMs/1E3:0):q=q.getDuration();return q}; g.A.RC=function(Z){var Q=this.GW(Z);return Q?this.PN(Q)?(Q=cp(this,Q),Q.RC()-Q.getCurrentTime()+this.getCurrentTime(Z)):Q.RC():0}; g.A.iA=function(){return this.We}; g.A.addPlayerResponseForAssociation=function(Z){this.jf&&this.jf.addPlayerResponseForAssociation(Z)}; g.A.finishSegmentByCpn=function(Z,Q,z){return this.jf?this.jf.finishSegmentByCpn(Z,Q,z):[]}; g.A.Iw=function(){this.template.Iw();var Z=this.fN;Z.state.element=this.template.element;var Q=Z.state.element,z;for(z in Z.state.Y)Z.state.Y.hasOwnProperty(z)&&(Q[z]=Z.state.Y[z]);(Z=M_G(this.template.element))&&this.events.Z(this.template,Z,this.onFullscreenChange);this.events.Z(window,"resize",this.VPJ)}; g.A.getDebugText=function(Z){var Q=this.IT().gy(Z),z=this.eJ(),K=this.IT();if(z&&z!==K){z=z.gy(Z);K=g.n(Object.keys(z));for(var b=K.next();!b.done;b=K.next())b=b.value,Q["ad"+b]=z[b];if(Z){z=Q;K={};if(b=oe(document,"movie_player"))K.bounds=b.getBoundingClientRect(),K["class"]=b.className;b={};var q=g.xv("video-ads");q?(U8G(q,b),b.html=q.outerHTML):b.missing=1;q={};var r=g.xv("videoAdUiSkipContainer"),D=g.xv("ytp-ad-skip-button-container"),v=g.xv("ytp-skip-ad-button"),Y=r||D||v;Y?(U8G(Y,q),q.ima=r? 1:0,q.bulleit=D?1:0,q.component=v?1:0):q.missing=1;K=JSON.stringify({player:K,videoAds:b,skipButton:q});z.ad_skipBtnDbgInfo=K}}Z&&this.mediaElement&&(Q["0sz"]=""+(+TF(this.mediaElement.getSize())===0),Q.op=this.mediaElement.lX("opacity"),z=this.mediaElement.Br().y+this.mediaElement.getSize().height,Q.yof=""+(+z<=0),Q.dis=this.mediaElement.lX("display"));Z&&((Z=(0,g.aK)())&&(Q.gpu=Z),(Z=this.Yh.playerStyle)&&(Q.ps=Z),this.Yh.Du&&(Q.webview=1));Q.debug_playbackQuality=this.fN.getPlaybackQuality(1); Q.debug_date=(new Date).toString();Q.origin=window.origin;Q.timestamp=Date.now();delete Q.uga;delete Q.q;return JSON.stringify(Q,null,2)}; g.A.getFeedbackProductData=function(){var Z={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.N().experiments.experimentIds.join(", "),player_release:"youtube.player.web_20250219_01_RC00"},Q=this.getPlayerStateObject().wm;Q&&(Z.player_error_code=Q.errorCode,Z.player_error_details=JSON.stringify(Q.errorDetail));return Z}; g.A.getPresentingPlayerType=function(Z){if(this.appState===1)return 1;if(I1(this))return 3;var Q;if(Z&&((Q=this.Qk)==null?0:Q.sR(this.getCurrentTime())))return 2;var z;return g.V0(this.getVideoData())&&((z=this.jf)==null?0:z.sR())?2:this.eJ().getPlayerType()}; g.A.QS=function(){return g.V0(this.getVideoData())&&this.jf?this.jf.QS():!1}; g.A.getPlayerStateObject=function(Z){return this.getPresentingPlayerType()===3?mI(this.Za).gf:this.GW(Z).getPlayerState()}; g.A.getAppState=function(){return this.appState}; g.A.Sk=function(Z){switch(Z.type){case "loadedmetadata":this.hF.start();Z=g.n(this.RB);for(var Q=Z.next();!Q.done;Q=Z.next())Q=Q.value,NTX(this,Q.id,Q.AxJ,Q.qsJ,void 0,!1);this.RB=[];break;case "loadstart":this.rq.vz("gv");break;case "progress":case "timeupdate":gQ(Z.target.gm())>=2&&this.rq.vz("l2s");break;case "playing":g.tC&&this.hF.start();if(g.Nf(this.Yh))Z=!1;else{var z=this.eJ();Q=g.y7(this.W4());Z=this.mediaElement.lX("display")==="none"||TF(this.mediaElement.getSize())===0;var K=T_(this.template), b=z.getVideoData();z=g.HM(this.Yh);b=sH(b);Q=!K||Q||z||b||this.Yh.Qp;Z=Z&&!Q}Z&&(Z=this.eJ(),Z.v6(),this.getVideoData().Ph||(this.getVideoData().Ph=1,this.FW(),Z.playVideo()))}}; g.A.onLoadProgress=function(Z,Q){this.fN.wX("onLoadProgress",Q)}; g.A.qS$=function(){this.fN.publish("playbackstalledatstart")}; g.A.Im=function(Z,Q){this.fN.publish("sabrCaptionsDataLoaded",Z,Q)}; g.A.faG=function(Z){var Q;(Q=this.eJ())==null||Q.wg(Z)}; g.A.oLu=function(Z){var Q;(Q=this.eJ())==null||Q.ST(Z)}; g.A.onVideoProgress=function(Z,Q){Z=mv(this,Z.O7);Q=Pp(this,Z.getCurrentTime(),Z);this.fN.ZG("onVideoProgress",Q);this.Yh.Zt&&Iqx(this,this.visibility.m$())&&this.pauseVideo()}; g.A.onAutoplayBlocked=function(){this.fN.ZG("onAutoplayBlocked");var Z,Q=(Z=this.eJ())==null?void 0:Z.getVideoData();Q&&(Q.bu=!0);this.V("embeds_enable_autoplay_and_visibility_signals")&&g.mj(this.Yh)&&(Z={autoplayBrowserPolicy:oL(),autoplayIntended:B3(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.DW("embedsAutoplayStatusChanged",Z))}; g.A.wor=function(){this.fN.publish("progresssync")}; g.A.q8u=function(){this.fN.wX("onPlaybackPauseAtStart")}; g.A.sTf=function(Z){if(this.getPresentingPlayerType()===1){g.Xw(Z,1)&&!g.t(Z.state,64)&&this.SP().isLivePlayback&&this.IT().isAtLiveHead()&&this.fN.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.Xw(Z,2)){if(this.Vw&&this.Vw.endTimeMs>=(this.getDuration()-1)*1E3){fqG(this);return}KFf(this)}if(g.t(Z.state,128)){var Q=Z.state;this.cancelPlayback(5);Q=Q.wm;JSON.stringify({errorData:Q,debugInfo:this.getDebugText(!0)});this.fN.ZG("onError",CPG(Q.errorCode));this.fN.wX("onDetailedError",{errorCode:Q.errorCode, errorDetail:Q.errorDetail,message:Q.errorMessage,messageKey:Q.Rw,cpn:Q.cpn});(0,g.Nm)()-this.Yh.N8>6048E5&&this.fN.wX("onReloadRequired")}Q={};if(Z.state.isPlaying()&&!Z.state.isBuffering()&&!WO("pbresume","ad_to_video")&&WO("_start","ad_to_video")){var z=this.getVideoData();Q.clientPlaybackNonce=z.clientPlaybackNonce;z.videoId&&(Q.videoId=z.videoId);g.oC(Q,"ad_to_video");Ow("pbresume",void 0,"ad_to_video");aK4(this.Za)}this.fN.publish("applicationplayerstatechange",Z)}}; g.A.GI=function(Z){this.getPresentingPlayerType()!==3&&this.fN.publish("presentingplayerstatechange",Z)}; g.A.FP=function(Z){nC(this,gu(Z.state));g.t(Z.state,1024)&&this.fN.isMutedByMutedAutoplay()&&(iZ(this,{muted:!1,volume:this.UN.volume},!1),a1(this,!1))}; g.A.jM=function(Z,Q,z){Z==="newdata"&&eLd(this);this.fN.publish("applicationvideodatachange",Z,z)}; g.A.xf=function(Z,Q){this.fN.wX("onPlaybackAudioChange",this.fN.getAudioTrack().Qw.name);this.fN.publish("internalaudioformatchange",this.fN.getAudioTrack().Qw.id,Q)}; g.A.Nx=function(Z){var Q=this.eJ().getVideoData();Z===Q&&this.fN.ZG("onPlaybackQualityChange",Z.j.video.quality)}; g.A.yY=function(){var Z=this.Zi.GW(2);if(Z){var Q=Z.getVideoData();Z=Z.Th();var z;(z=this.eJ())==null||z.pN("ssdai",{cleanaply:1,acpn:Q==null?void 0:Q.clientPlaybackNonce,avid:Q.videoId,ccpn:Z,sccpn:this.SP().clientPlaybackNonce===Z?1:0,isDai:this.SP().enableServerStitchedDai?1:0});delete this.Zi.j[2]}}; g.A.onVideoDataChange=function(Z,Q,z){this.AL(Z,Q.O7,z)}; g.A.AL=function(Z,Q,z){this.logger.debug(function(){return"on video data change "+Z+", player type "+Q.getPlayerType()+", vid "+z.videoId}); this.Yh.aT()&&Q.pN("vdc",{type:Z,vid:z.videoId||"",cpn:z.clientPlaybackNonce||""});Q===this.IT()&&(this.Yh.NU=z.oauthToken);if(Q===this.IT()){this.getVideoData().enableServerStitchedDai&&!this.Qk?(this.IT().pN("sdai",{initSstm:1}),this.Qk=this.V("html5_enable_ssdai_transition_with_only_enter_cuerange")?new erD(this.fN,this.Yh,this.IT(),this):new g.ta(this.fN,this.Yh,this.IT(),this)):!this.getVideoData().enableServerStitchedDai&&this.Qk&&(this.Qk.dispose(),this.Qk=null);var K,b;!g.V0(this.getVideoData())|| Z!=="newdata"&&Z!=="dataloaded"||this.getVideoData().clientPlaybackNonce===((K=this.We.Y)==null?void 0:(b=K.getVideoData())==null?void 0:b.clientPlaybackNonce)?!g.V0(this.getVideoData())&&this.jf&&(this.jf.dispose(),this.jf=null):(mA9(this.We),this.V("html5_ssap_cleanup_ad_player_on_new_data")&&this.yY(),K=ud(this.We,1,0,this.getDuration(1)*1E3,this.getVideoData()),this.We.enqueue(K,!0),kJ(this.We,0,this.getDuration(1)*1E3,[K]),In0(this.We,this.getVideoData().clientPlaybackNonce,[K]),this.jf&&(this.jf.dispose(), this.jf=null),this.jf=new syf(this.fN,this.We,this.IT()),this.Zi.IT().GA(this.jf))}if(Z==="newdata")this.logger.debug("new video data, destroy modules"),py(this.Za,2),this.fN.publish("videoplayerreset",Q);else{if(!this.mediaElement)return;Z==="dataloaded"&&(this.IT()===this.eJ()?(pn(z.B7,z.vZ),D8W(this)):A_f(this));Q.getPlayerType()===1&&(this.Yh.tG&&MEG(this),this.getVideoData().isLivePlayback&&!this.Yh.qy&&this.Os("html5.unsupportedlive",2,"DEVICE_FALLBACK"),z.isLoaded()&&((kEn(z)||this.getVideoData().iG)&& this.fN.publish("legacyadtrackingpingchange",this.getVideoData()),z.hasProgressBarBoundaries()&&LFr(this)));this.fN.publish("videodatachange",Z,z,Q.getPlayerType())}this.fN.ZG("onVideoDataChange",{type:Z,playertype:Q.getPlayerType()});this.UF();(K=z.hB)?this.cM.Z0(K,z.clientPlaybackNonce):WN4(this.cM)}; g.A.fY=function(){yc(this,null);this.fN.wX("onPlaylistUpdate")}; g.A.SSI=function(Z){delete this.fu[Z.getId()];this.IT().removeCueRange(Z);a:{Z=this.getVideoData();var Q,z,K,b,q,r,D,v,Y,X,S=((Q=Z.tG)==null?void 0:(z=Q.contents)==null?void 0:(K=z.singleColumnWatchNextResults)==null?void 0:(b=K.autoplay)==null?void 0:(q=b.autoplay)==null?void 0:q.sets)||((r=Z.tG)==null?void 0:(D=r.contents)==null?void 0:(v=D.twoColumnWatchNextResults)==null?void 0:(Y=v.autoplay)==null?void 0:(X=Y.autoplay)==null?void 0:X.sets);if(S)for(Q=g.n(S),z=Q.next();!z.done;z=Q.next())if(z= z.value,b=K=void 0,z=z.autoplayVideo||((K=z.autoplayVideoRenderer)==null?void 0:(b=K.autoplayEndpointRenderer)==null?void 0:b.endpoint),K=g.V(z,g.tF),q=b=void 0,z!=null&&((b=K)==null?void 0:b.videoId)===Z.videoId&&((q=K)==null?0:q.continuePlayback)){Z=z;break a}Z=null}(Q=g.V(Z,g.tF))&&this.fN.hG("onPlayVideo",{sessionData:{autonav:"1",itct:Z==null?void 0:Z.clickTrackingParams},videoId:Q.videoId,watchEndpoint:Q})}; g.A.Oj=function(Z){var Q=this;Z!==this.appState&&(this.logger.debug(function(){return"app state change "+Q.appState+" -> "+Z}),Z===2&&this.getPresentingPlayerType()===1&&(nC(this,-1),nC(this,5)),this.appState=Z,this.fN.publish("appstatechange",Z))}; g.A.Os=function(Z,Q,z,K,b){this.IT().q8(Z,Q,z,K,b)}; g.A.bE=function(Z,Q){this.IT().handleError(new N5(Z,Q))}; g.A.isAtLiveHead=function(Z,Q){Q=Q===void 0?!1:Q;var z=this.GW(Z);if(!z)return!1;Z=cp(this,z);z=mv(this,z);return Z!==z?Z.isAtLiveHead(Pp(this,z.getCurrentTime(),z),!0):Z.isAtLiveHead(void 0,Q)}; g.A.SS=function(){var Z=this.GW();return Z?cp(this,Z).SS():0}; g.A.seekTo=function(Z,Q,z,K,b){Q=Q!==!1;if(K=this.GW(K))this.appState===2&&N$(this),this.PN(K)?R1(this)?this.Qk.seekTo(Z,{seekSource:b},Q,z):this.y3.seekTo(Z,{seekSource:b},Q,z):g.V0(this.getVideoData())&&this.jf?this.jf.seekTo(Z,{MG:!Q,w0:z,s8:"application",seekSource:b}):K.seekTo(Z,{MG:!Q,w0:z,s8:"application",seekSource:b})}; g.A.seekBy=function(Z,Q,z,K){this.seekTo(this.getCurrentTime()+Z,Q,z,K)}; g.A.eg=function(){this.fN.ZG("SEEK_COMPLETE")}; g.A.Ym=function(){this.fN.hG("onAbnormalityDetected")}; g.A.onSnackbarMessage=function(Z){this.fN.hG("onSnackbarMessage",Z)}; g.A.Zf$=function(Z,Q){Z=Z.O7;var z=Z.getVideoData();if(this.appState===1||this.appState===2)z.startSeconds=Q;this.appState===2?g.t(Z.getPlayerState(),512)||N$(this):this.fN.ZG("SEEK_TO",Q)}; g.A.onAirPlayActiveChange=function(){this.fN.publish("airplayactivechange");this.Yh.V("html5_external_airplay_events")&&this.fN.wX("onAirPlayActiveChange",this.fN.o6())}; g.A.onAirPlayAvailabilityChange=function(){this.fN.publish("airplayavailabilitychange");this.Yh.V("html5_external_airplay_events")&&this.fN.wX("onAirPlayAvailabilityChange",this.fN.Wm())}; g.A.showAirplayPicker=function(){var Z;(Z=this.eJ())==null||Z.zw()}; g.A.wG=function(){this.fN.publish("beginseeking")}; g.A.Bd=function(){this.fN.publish("endseeking")}; g.A.getStoryboardFormat=function(Z){return(Z=this.GW(Z))?cp(this,Z).getVideoData().getStoryboardFormat():null}; g.A.Mr=function(Z){return(Z=this.GW(Z))?cp(this,Z).getVideoData().Mr():null}; g.A.PN=function(Z){Z=Z||this.eJ();var Q=!1;if(Z){Z=Z.getVideoData();if(R1(this))Z=Z===this.Qk.playback.getVideoData();else a:if(Q=this.y3,Z===Q.Y.getVideoData()&&Q.j.length)Z=!0;else{Q=g.n(Q.j);for(var z=Q.next();!z.done;z=Q.next())if(Z.gX===z.value.gX){Z=!0;break a}Z=!1}Q=Z}return Q}; g.A.Fq=function(Z,Q,z,K,b,q,r){this.logger.debug(function(){return"Adding video to timeline id="+Z.video_id+"\n lengthMs="+K+" enterTimeMs="+b}); var D="",v=R1(this),Y;(Y=this.eJ())==null||Y.pN("appattl",{sstm:this.Qk?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:v});D=v?Rrn(this.Qk,Z,Q,z,K,b,q,r):hLG(this.y3,Z,z,K,b,q);this.logger.debug(function(){return"Video added to timeline id="+Z.video_id+" timelinePlaybackId="+D}); return D}; g.A.jL=function(Z,Q,z,K,b,q,r){if(R1(this)){var D=Rrn(this.Qk,Z,Q,z,K,b,q,r);this.logger.debug(function(){return"Remaining video added to timeline id="+Z.video_id+" timelinePlaybackId="+D})}return""}; g.A.YP=function(Z){var Q;(Q=this.Qk)==null||Q.YP(Z)}; g.A.XS=function(Z,Q){Z=Z===void 0?-1:Z;Q=Q===void 0?Infinity:Q;R1(this)||NGG(this.y3,Z,Q)}; g.A.a8=function(Z,Q,z){if(R1(this)){var K=this.Qk,b=K.ih.get(Z);b?(z===void 0&&(z=b.JH),b.durationMs=Q,b.JH=z):K.B8("Invalid_timelinePlaybackId_"+Z+"_specified")}else{K=this.y3;b=null;for(var q=g.n(K.j),r=q.next();!r.done;r=q.next())if(r=r.value,r.gX===Z){b=r;break}b?(z===void 0&&(z=b.JH),dwX(K,b,Q,z)):q$(K,"InvalidTimelinePlaybackId timelinePlaybackId="+Z)}}; g.A.enqueueVideoByPlayerVars=function(Z,Q,z,K){z=z===void 0?Infinity:z;K=K===void 0?"":K;this.PN();Z=new g.OK(this.Yh,Z);K&&(Z.gX=K);nxr(this,Z,Q,z)}; g.A.queueNextVideo=function(Z,Q,z,K,b){z=z===void 0?NaN:z;z=this.preloadVideoByPlayerVars(Z,Q===void 0?1:Q,z,K===void 0?"":K,b===void 0?"":b);Z=this.eJ();z&&Z&&(Q=z.O7,this.V("html5_check_queue_on_data_loaded")?this.N().supportsGaplessShorts()&&Z.getVideoData().X&&(z=this.qq,K=this.Hl.T,z.W!==Q&&(z.j=Z,z.W=Q,z.S=1,z.Y=Q.getVideoData(),z.L=K,z.Y.isLoaded()?z.K():z.Y.subscribe("dataloaded",z.K,z))):(Q=lhf(Z,Q,this.Hl.T),Q!=null?(Z.pN("sgap",Q),Z.getVideoData().X&&Z.tS(!1)):(Z=z.getVideoData(),Q=this.qq, Q.Y!==Z&&(Q.Y=Z,Q.S=1,Z.isLoaded()?Q.T():Q.Y.subscribe("dataloaded",Q.T,Q)))))}; g.A.FC=function(Z,Q,z,K){var b=this;z=z===void 0?0:z;K=K===void 0?0:K;var q=this.eJ();q&&cp(this,q).P1();vUD(this.Hl,Z,Q,z,K).then(function(){b.fN.wX("onQueuedVideoLoaded")},function(){})}; g.A.dV=function(){return this.Hl.dV()}; g.A.SW=function(Z){return this.Hl.Y===Z.O7}; g.A.clearQueue=function(Z,Q){Z=Z===void 0?!1:Z;Q=Q===void 0?!1:Q;this.logger.debug("Clearing queue");this.Hl.clearQueue(Z,Q)}; g.A.loadVideoByPlayerVars=function(Z,Q,z,K,b,q){Q=Q===void 0?1:Q;var r=this.IT();if(Q===2&&this.SP().enableServerStitchedDai&&r&&!r.d6())return r.pN("lvonss",{vid:(Z==null?void 0:Z.videoId)||"",ptype:Q}),!1;var D=!1;r=new g.OK(this.Yh,Z);r.reloadPlaybackParams=q;g.xa(this.Yh)&&!r.h6&&ny(this.rq);var v;q=this.rq;var Y=(v=r.Du)!=null?v:"";q.timerName=Y;this.rq.f0("pl_i");this.V("web_player_early_cpn")&&r.clientPlaybackNonce&&this.rq.infoGel({clientPlaybackNonce:r.clientPlaybackNonce});if(fFr(r).supportsVp9Encoding=== !1){var X;(X=this.eJ())==null||X.pN("noVp9",{})}if(this.N().supportsGaplessShorts()){v=YLx(this.Hl,r,Q);if(v==null){nC(this,-1);Z=this.Hl;Z.app.N().V("html5_gapless_new_slr")?$8u(Z.app,"gaplessshortslooprange"):Z.app.setLoopRange(null);Z.app.getVideoData().OM=!0;var S;(S=Z.Y)==null||S.Gr();var T;(T=Z.Y)!=null&&VD(T.Iu.NT());z={s8:"gapless_to_next_video",seekSource:60};var f;(f=Z.app.eJ())==null||f.seekTo(gUf(Z),z);if(!Z.app.getPlayerStateObject(Q).isPlaying()){var h;(h=Z.app.eJ())==null||h.playVideo(!0)}Z.K(); return!0}f=this.V("html5_shorts_gapless_preload_fallback");h=this.Hl.Y;f&&h&&!h.Iu.FI()&&(S=h.getVideoData(),S=this.Yh.V("html5_autonav_autoplay_in_preload_key")?pC(this,Q,S):Hp(this,Q,S.videoId,S.gX),this.Zi.Y.set(S,h,3600));this.Hl.clearQueue(f);var m;(m=this.eJ())==null||m.pN("sgap",{f:v})}if(b){for(;r.iP.length&&r.iP[0].isExpired();)r.iP.shift();D=r.iP.length-1;D=D>0&&b.j(r.iP[D])&&b.j(r.iP[D-1]);r.iP.push(b)}z||(Z&&Fsd(Z)?(BZ(this.Yh)&&!this.EZ&&(Z.fetch=0),yc(this,Z)):this.playlist&&yc(this, null),Z&&(this.EZ=zM(!1,Z.external_list)));this.fN.publish("loadvideo");Q=this.eV(r,Q,K);D&&this.Os("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+r.iP.join()).replace(/[;:,]/g,"_"));return Q}; g.A.preloadVideoByPlayerVars=function(Z,Q,z,K,b){Q=Q===void 0?1:Q;z=z===void 0?NaN:z;K=K===void 0?"":K;b=b===void 0?"":b;var q="";if(this.Yh.V("html5_autonav_autoplay_in_preload_key"))q=m8X(this,Q,Z,b);else{var r=AW(Z);q=Hp(this,Q,r,b)}if(this.Zi.Y.get(q))return this.logger.debug(function(){return"already preloaded "+q}),null; Z=new g.OK(this.Yh,Z);b&&(Z.gX=b);return c_G(this,Z,Q,z,K)}; g.A.setMinimized=function(Z){this.visibility.setMinimized(Z);(Z=Cdx(this.Za))&&(this.isMinimized()?Z.load():Z.unload());this.fN.publish("minimized")}; g.A.setInline=function(Z){this.visibility.setInline(Z)}; g.A.setInlinePreview=function(Z){this.visibility.setInline(Z)}; g.A.JP=function(Z){J_W(this,Z)||this.visibility.JP(Z)}; g.A.setSqueezeback=function(Z){this.visibility.setSqueezeback(Z)}; g.A.B5=function(){var Z,Q=(Z=this.mediaElement)==null?void 0:Z.OA();Q&&(this.Yh.eb&&document.exitFullscreen().catch(function(){}),LS(Q).catch(function(z){g.CO(z)}))}; g.A.TXY=function(){this.mediaElement.OA();this.mediaElement.OA().webkitPresentationMode==="picture-in-picture"?this.JP(!0):this.JP(!1)}; g.A.togglePictureInPicture=function(){var Z=this.eJ();Z&&Z.togglePictureInPicture()}; g.A.eV=function(Z,Q,z){Q=Q===void 0?1:Q;this.logger.debug(function(){return"start load video, id "+Z.videoId+", type "+Q}); WO("_start",this.rq.timerName)||g.lW(PO)(void 0,this.rq.timerName);var K=!1,b=Y99(this,Q,Z,!1);b?(K=!0,Z.dispose()):(b=r_x(this,Q,Z,z).O7,(this.V("html5_onesie")||this.V("html5_load_before_stop"))&&b.s_()&&b.Lz(),this.hF.stop(),Q===1&&Q!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,Q),this.OX(b));b===this.IT()&&(this.Yh.NU=Z.oauthToken);if(!b.s_())return!1;if(b===this.IT())return this.Oj(1),z=N$(this),K&&this.V("html5_player_preload_ad_fix")&&b.getPlayerType()===1&& b.mN()&&this.AL("dataloaded",b,b.getVideoData()),z;b.LH();return!0}; g.A.cueVideoByPlayerVars=function(Z,Q){var z=this;Q=Q===void 0?1:Q;var K=this.IT();if(this.SP().enableServerStitchedDai&&K&&!K.d6()&&Z&&Object.keys(Z).length>0)K.pN("qvonss",{vid:(Z==null?void 0:Z.videoId)||"",ptype:Q});else if(Z&&Fsd(Z))if(this.uU=!0,yc(this,Z),(Z=g.cf(this.playlist))&&Z.hH())UO(this,Z,Q);else this.playlist.onReady(function(){d3(z)}); else{Q||(Q=this.getPresentingPlayerType());Q===1&&this.fY();K=new g.OK(this.Yh,Z);var b=g.mj(this.Yh)&&!this.Yh.SJ&&Q===1&&!K.isAd()&&!K.Sp;this.fN.publish("cuevideo");b?(this.eJ().getVideoData().loading=!0,QQn(K,Z?Z:{}).then(function(q){UO(z,q,Q)}),K.dispose()):UO(this,K,Q)}}; g.A.G2=function(Z,Q,z,K,b,q,r){if(!Z&&!z)throw Error("Playback source is invalid");if(JC(this.Yh)||g.yF(this.Yh))return Q=Q||{},Q.lact=yJ(),Q.vis=this.fN.getVisibilityState(),this.fN.hG("onPlayVideo",{videoId:Z,watchEndpoint:q,sessionData:Q,listId:z}),!1;xCu(this.rq);this.rq.reset();Z={video_id:Z};K&&(Z.autoplay="1");K&&(Z.autonav="1");q&&(Z.player_params=q.playerParams);r&&(Z.oauth_token=r);z?(Z.list=z,this.loadPlaylist(Z)):this.loadVideoByPlayerVars(Z,1);return!0}; g.A.cuePlaylist=function(Z,Q,z,K){this.uU=!0;y_f(this,Z,Q,z,K)}; g.A.loadPlaylist=function(Z,Q,z,K){this.uU=!1;y_f(this,Z,Q,z,K)}; g.A.v0=function(){return this.fN.isMutedByMutedAutoplay()?!1:this.getPresentingPlayerType()===3?!0:!(!this.playlist||!this.playlist.C4())}; g.A.SV=Qx(13); g.A.nextVideo=function(Z,Q){var z=g.FR(this.IT().getVideoData());g.Ge(this.fN)&&z?this.G2(z.videoId,Q?z.W0:z.sessionData,z.playlistId,Q,void 0,z.Ic||void 0):this.EZ?this.fN.wX("onPlaylistNext"):this.getPresentingPlayerType()===3?mI(this.Za).nextVideo():!this.playlist||BZ(this.Yh)&&!this.fN.isFullscreen()||(this.playlist.C4(Z)&&EbW(this.playlist,eC4(this.playlist)),this.playlist.loaded?(Z=Q&&this.Yh.V("html5_player_autonav_logging"),Q&&this.fN.publish("playlistautonextvideo"),this.eV(g.cf(this.playlist,void 0, Q,Z),1)):this.uU=!1)}; g.A.previousVideo=function(Z){this.EZ?this.fN.wX("onPlaylistPrevious"):this.getPresentingPlayerType()===3?mI(this.Za).uS():!this.playlist||BZ(this.Yh)&&!this.fN.isFullscreen()||(this.playlist.x3(Z)&&EbW(this.playlist,wRM(this.playlist)),this.playlist.loaded?this.eV(g.cf(this.playlist),1):this.uU=!1)}; g.A.playVideoAt=function(Z){this.EZ?this.fN.wX("onPlaylistIndex",Z):this.playlist&&(this.playlist.loaded?this.eV(g.cf(this.playlist,Z),1):this.uU=!1,EbW(this.playlist,Z))}; g.A.getPlaylist=function(){return this.playlist}; g.A.mq=Qx(23);g.A.MfB=function(Z){this.fN.ZG("onCueRangeEnter",Z.getId())}; g.A.eLI=function(Z){this.fN.ZG("onCueRangeExit",Z.getId())}; g.A.E0=function(){var Z=g.Rq(this.W4());Z&&Z.E0()}; g.A.Mz=function(Z,Q,z){var K=this.GW(Q);if(K){var b=this.SP();if(g.V0(b)){if(this.jf)if(this.V("html5_ssap_enable_cpn_triggered_media_end")&&K.getPlayerType()===2&&this.jf.sR()&&(K=this.IT()),Q===1)for(var q=dF(this.jf,b.clientPlaybackNonce),r=g.n(Z),D=r.next();!D.done;D=r.next())D=D.value,D.start+=q,D.end+=q,D.wb=q,D.S=b.clientPlaybackNonce;else if(this.V("html5_ssap_enable_cpn_triggered_media_end")&&Q===2)for(this.getPresentingPlayerType(),b=g.n(Z),q=b.next();!q.done;q=b.next())q.value.S=this.jf.lw(); b=g.n(Z);for(q=b.next();!q.done;q=b.next())r=void 0,q.value.playerType=(r=Q)!=null?r:1}K.Mz(Z,z);Q&&this.getPresentingPlayerType()!==Q||OO(this,"cuerangesadded",Z)}}; g.A.D6=function(Z,Q){var z=this.GW(Q);z&&(z.D6(Z),Q&&this.getPresentingPlayerType()!==Q||OO(this,"cuerangesremoved",Z))}; g.A.cJ=function(Z){var Q=this.eJ()||this.IT(),z=this.getPresentingPlayerType();return this.V("html5_ssap_enable_cpn_triggered_media_end")?Q.cJ(z,Z):Q.cJ(z)}; g.A.Nqu=function(){function Z(){var K=Q.screenLayer||(Q.isMinimized()?3:0),b=g.Jy(K);if(b&&b!=="UNDEFINED_CSN"){var q=Q.Yh.V("web_player_attach_player_response_ve"),r=Q.Yh.V("web_playback_associated_ve");K={cpn:Q.getVideoData().clientPlaybackNonce,csn:b};Q.getVideoData().KN&&(q||r)&&(q=g.cc(Q.getVideoData().KN),g.Zz(b,q),r&&(K.playbackVe=q.getAsJson()));Q.getVideoData().queueInfo&&(K.queueInfo=Q.getVideoData().queueInfo);b={};Q.V("web_playback_associated_log_ctt")&&Q.getVideoData().K&&(b.cttAuthInfo= {token:Q.getVideoData().K,videoId:Q.getVideoData().videoId});g.DW("playbackAssociated",K,b)}else g.CO(new g.tW("CSN Missing or undefined during playback association"))} var Q=this,z=this.eJ();this.getPresentingPlayerType();kh9(this.rq,z.getVideoData(),ir4(this));Jz(this)&&this.Yh.W&&p3(this.SP())==="embedded"&&this.xw&&Math.random()<.01&&g.DW("autoplayTriggered",{intentional:this.intentionalPlayback});this.xw=!1;aK4(this.Za);this.V("web_player_defer_ad")&&jBn(this);this.fN.wX("onPlaybackStartExternal");(this.Yh.V("mweb_client_log_screen_associated"),HZ(this.Yh))||Z();z={};this.getVideoData().K&&(z.cttAuthInfo={token:this.getVideoData().K,videoId:this.getVideoData().videoId}); z.sampleRate=20;BO("player_att",z);if(this.getVideoData().botguardData||this.V("fetch_att_independently"))g.ka(this.Yh)||uI(this.Yh)==="MWEB"?g.lb(g.ZW(),function(){G_(Q)}):G_(this); this.UF();TTf(this);this.V("embeds_enable_autoplay_and_visibility_signals")&&g.mj(this.Yh)&&(z={autoplayBrowserPolicy:oL(),autoplayIntended:B3(this.getVideoData()),autoplayStatus:iw9(this.getVideoData(),1),cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.DW("embedsAutoplayStatusChanged",z))}; g.A.Yp=function(){this.fN.publish("internalAbandon");CC(this)}; g.A.onApiChange=function(){var Z=this.eJ();this.Yh.T&&Z?this.fN.ZG("onApiChange",Z.getPlayerType()):this.fN.ZG("onApiChange")}; g.A.EdG=function(){var Z=this.mediaElement;Z={volume:g.Al(Math.floor(Z.getVolume()*100),0,100),muted:Z.AM()};Z.muted||a1(this,!1);this.UN=g.ae(Z);this.fN.ZG("onVolumeChange",Z)}; g.A.mutedAutoplay=function(Z){var Q=this.getVideoData().videoId;isNaN(this.uu)&&(this.uu=this.getVideoData().startSeconds);if(!this.V("embeds_enable_full_length_inline_muted_autoplay"))Q&&(this.loadVideoByPlayerVars({video_id:Q,playmuted:!0,start:this.uu}),this.fN.wX("onMutedAutoplayStarts"));else if((Z==null?0:Z.videoId)||Q)this.loadVideoByPlayerVars({video_id:(Z==null?0:Z.videoId)?Z==null?void 0:Z.videoId:Q,playmuted:!0,start:this.uu,muted_autoplay_duration_mode:Z==null?void 0:Z.durationMode}), this.fN.wX("onMutedAutoplayStarts")}; g.A.onFullscreenChange=function(){var Z=PFd(this);this.Jg(Z?1:0);CFG(this,!!Z)}; g.A.Jg=function(Z){var Q=!!Z,z=!!this.EC()!==Q;this.visibility.Jg(Z);this.template.Jg(Q);this.V("html5_media_fullscreen")&&!Q&&this.mediaElement&&PFd(this)===this.mediaElement.OA()&&this.mediaElement.B0();this.template.resize();z&&this.rq.tick("fsc");z&&(this.fN.publish("fullscreentoggled",Q),Z=this.SP(),Q={fullscreen:Q,videoId:Z.bC||Z.videoId,time:this.getCurrentTime()},this.fN.getPlaylistId()&&(Q.listId=this.fN.getPlaylistId()),this.fN.ZG("onFullscreenChange",Q))}; g.A.mB=function(){return this.visibility.mB()}; g.A.isFullscreen=function(){return this.visibility.isFullscreen()}; g.A.EC=function(){return this.visibility.EC()}; g.A.VPJ=function(){if(this.eJ()){var Z=this.EC();Z!==0&&Z!==1||this.Jg(PFd(this)?1:0);Z=window.screen.width*window.screen.height;var Q=window.outerHeight*window.outerWidth;this.Yh.N0?(this.un=Math.max(this.un,Z,Q),Z=Q/this.un<.33,this.visibility.JP(Z),this.Yh.Dt&&J_W(this,Z)):this.mediaElement&&Iqx(this,Q/Z<.33)&&this.mediaElement.B0()}}; g.A.vdf=function(Z){this.getPresentingPlayerType()!==3&&this.fN.publish("liveviewshift",Z)}; g.A.playVideo=function(Z,Q){this.logger.debug(function(){return"play video, player type "+Z}); var z=this.GW(Z);z&&(this.appState===2?(g.xa(this.Yh)&&ny(this.rq),N$(this)):g.t(z.getPlayerState(),2)?(Q=36,this.getVideoData().aF()&&(Q=37),this.seekTo(0,void 0,void 0,void 0,Q)):z.playVideo(!1,Q))}; g.A.pauseVideo=function(Z,Q){(Z=this.GW(Z))&&Z.pauseVideo(Q)}; g.A.stopVideo=function(Z){Z=Z===void 0?!1:Z;this.logger.debug(function(){return"stop video"}); var Q=this.IT().getVideoData(),z=new g.OK(this.Yh,{video_id:Q.bC||Q.videoId,oauth_token:Q.oauthToken});z.U=g.ae(Q.U);var K;!Z||(K=this.webPlayerContextConfig)!=null&&K.disableStaleness||(z.JM=!0);this.cancelPlayback(6);UO(this,z,1)}; g.A.cancelPlayback=function(Z,Q){var z=this;this.logger.debug(function(){return"start cancel playback, type "+Q}); var K=this.GW(Q);K?Q===2&&K.getPlayerType()===1&&(rQ4(this.SP())||g.V0(this.getVideoData()))?K.pN("canclpb",{r:"no_adpb_ssdai"}):(this.Yh.aT()&&K.pN("canclpb",{r:Z}),this.appState===1||this.appState===2?this.logger.debug(function(){return"cancel playback end, app not started, state "+z.appState}):(K===this.eJ()&&(this.logger.debug("cancel playback, destroy modules"),py(this.Za,Z)),Q===1&&(K.stopVideo(),CC(this)),K.RR(void 0,Z!==6),OO(this,"cuerangesremoved",K.mL()),K.Iu.Rq.reset(),this.Hl&&K.isGapless()&& (K.A6(!0),K.setMediaElement(this.mediaElement)))):this.logger.debug("cancel playback end, no player to cancel")}; g.A.sendVideoStatsEngageEvent=function(Z,Q,z){(Q=this.GW(Q))&&zXd(this.Yh,Z)?Q.sendVideoStatsEngageEvent(Z,z):z&&z()}; g.A.Ax=function(Z){var Q=this.GW();return Q&&zXd(this.Yh,Z)?Q.Ax(Z):null}; g.A.updatePlaylist=function(){!BZ(this.Yh)&&g.mj(this.Yh)&&vxu(this);this.fN.wX("onPlaylistUpdate")}; g.A.setSizeStyle=function(Z,Q){this.Kx=Z;this.V("web_log_theater_mode_visibility")?this.rN(Q):this.P6=Q;this.fN.publish("sizestylechange",Z,Q);this.template.resize()}; g.A.rN=function(Z){this.visibility.rN(Z)}; g.A.XZ=function(){return this.V("web_log_theater_mode_visibility")?this.visibility.XZ():this.P6}; g.A.isMinimized=function(){return this.visibility.isMinimized()}; g.A.isInline=function(){return this.visibility.isInline()}; g.A.m$=function(){return this.visibility.m$()}; g.A.CF=function(){return this.visibility.CF()}; g.A.i5=function(){return this.visibility.i5()}; g.A.W6=function(){return this.Kx}; g.A.getAdState=function(){if(this.getPresentingPlayerType()===3)return mI(this.Za).getAdState();if(!this.PN()){var Z=Hf(this.W4());if(Z)return Z.getAdState()}return-1}; g.A.LvY=function(Z){var Q=this.template.getVideoContentRect();AG(this.K5,Q)||(this.K5=Q,(Q=this.eJ())&&Q.rP(),(Q=this.IT())&&Q===this.eJ()&&Q.rP(),this.EC()===1&&this.R2&&CFG(this,!0));this.Lo&&g.$v(this.Lo,Z)||(this.fN.publish("appresize",Z),this.Lo=Z)}; g.A.xE=function(){return this.fN.xE()}; g.A.yHr=function(){this.getPresentingPlayerType()===2&&this.y3.isManifestless()?yTW(this.y3):(this.Qk&&(HNG(this.Qk),CC(this)),pE0(this,"signature"))}; g.A.OfN=function(Z){Z&&pE0(this,"reloadPlayerEvent",void 0,Z)}; g.A.FW=function(Z){this.A6(Z);LC(this)}; g.A.aeI=function(Z){if(Z.errorCode==="manifest.net.badstatus"){var Q=this.Yh.experiments.XI("html5_use_network_error_code_enums")?401:"401";Z.details.rc===Q&&this.fN.hG("onPlayerRequestAuthFailed")}}; g.A.Qz=function(Z){this.fN.publish("heartbeatparams",Z)}; g.A.Xg=function(Z){this.fN.hG("onAutonavChangeRequest",Z!==1)}; g.A.ES=function(){return this.mediaElement}; g.A.setBlackout=function(Z){if(this.Yh.Qp!==Z){this.Yh.Qp=Z;var Q=this.eJ();Q&&(Q.Iu.y0(),this.Yh.tG&&MEG(this),Q.BP(Z))}}; g.A.y4h=function(){var Z=this.eJ();if(Z){var Q=!this.fN.Bm();Z.bv(Q)}}; g.A.onLoadedMetadata=function(){this.fN.wX("onLoadedMetadata")}; g.A.onDrmOutputRestricted=function(){this.fN.wX("onDrmOutputRestricted")}; g.A.Kn=function(){this.intentionalPlayback=!0}; g.A.gr=function(){this.Za.dispose();this.U5.dispose();this.y3.dispose();this.Qk&&this.Qk.dispose();this.We.removeAll();this.We.dispose();this.jf&&this.jf.dispose();t9(this.IT());this.A6();this.Zi.dispose();g.DH(this.playlist);g.O.prototype.gr.call(this)}; g.A.V=function(Z){return this.Yh.V(Z)}; g.A.setScreenLayer=function(Z){this.screenLayer=Z}; g.A.getInternalApi=function(){return this.fN.getInternalApi()}; g.A.createSubtitlesModuleIfNeeded=function(){return this.Za.createSubtitlesModuleIfNeeded()}; g.A.isOrchestrationLeader=function(){var Z=UU(this.Za);return Z?Z.isOrchestrationLeader():!1}; g.A.getVideoUrl=function(Z,Q,z,K,b){if(this.Vw&&this.Vw.postId)return Z=this.Yh.getVideoUrl(Z),Z=k7(Z,"v"),Z.replace("/watch","/clip/"+this.Vw.postId);var q=this.fN.isEmbedsShortsMode()||this.Yh.KN==="shortspage",r=g.EH(this.getVideoData());return this.Yh.getVideoUrl(Z,Q,z,K,b,q,r)}; g.A.r_=function(){return this.Hl.r_()}; g.A.AX=function(Z,Q,z){this.fN.publish("spsumpreject",Z,Q,z)}; g.A.Ye=function(){try{for(var Z=g.n(Object.values(this.Zi.j)),Q=Z.next();!Q.done;Q=Z.next()){var z=Q.value;z.Iu.FI()||z.Ye()}if(this.V("html5_sabr_fetch_on_idle_network_preloaded_players"))for(var K=g.n(aQ9(this.Zi.Y)),b=K.next();!b.done;b=K.next()){var q=b.value;q.Iu.FI()||q.Ye()}this.IT().Ye()}catch(r){g.CO(r)}}; g.A.Dy=function(){if(this.Qk){var Z=(0,g.Nm)();return this.Qk.Dy(Z)}return!1}; g.A.mO=function(Z){var Q=this.IT();Z&&(Q=Oru(this,Z));if(Q){var z=Q.getVideoData();Z=new Map;z=g.n(z.sabrContextUpdates);for(var K=z.next();!K.done;K=z.next()){var b=g.n(K.value);K=b.next().value;b=b.next().value;var q,r;if(r=b.scope===4)(q=Q)==null?q=0:(r=void 0,q=!((r=q.Iu.wr)==null||!r.S.Nr.has(K))),r=q;r&&Z.set(K,b)}return Z}this.IT().pN("scuget",{ncpf:"1",ccpn:Z})}; var Jm={};var rrn={MD:[{Z4:/Unable to load player module/,weight:20},{Z4:/Failed to fetch/,weight:500},{Z4:/XHR API fetch failed/,weight:10},{Z4:/JSON parsing failed after XHR fetch/,weight:10},{Z4:/Retrying OnePlatform request/,weight:10},{Z4:/CSN Missing or undefined during playback association/,weight:100},{Z4:/Non-recoverable error. Do not retry./,weight:0},{Z4:/Internal Error. Retry with an exponential backoff./,weight:0},{Z4:/API disabled by application./,weight:0}],Q_:[{callback:oxd,weight:500}]};var sJd=/[&\?]action_proxy=1/,lqX=/[&\?]token=([\w-]*)/,Zkn=/[&\?]video_id=([\w-]*)/,QJG=/[&\?]index=([\d-]*)/,zAW=/[&\?]m_pos_ms=([\d-]*)/,bkn=/[&\?]vvt=([\w-]*)/,kVd="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(" "),KJu="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(" "),tEu={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"},FFr={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},wEM={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};Wp.prototype.d2=function(Z){this.player.hx().tick(Z)}; Wp.prototype.fetch=function(Z,Q){var z=this;if(!Z.match(/\[BISCOTTI_ID\]/g))return this.j(Z,Q);var K=this.Y===1;K&&this.d2("a_bid_s");var b=WF9();if(b!==null)return K&&this.d2("a_bid_f"),this.j(Z,Q,b);b=VEW();K&&he(b,function(){z.d2("a_bid_f")}); return b.then(function(q){return z.j(Z,Q,q)})}; Wp.prototype.j=function(Z,Q,z){var K=this,b=Q===void 0?{}:Q;Q=b.e5;var q=b.nf;var r=b.cueProcessedMs;z=z===void 0?"":z;var D=this.player.getVideoData(1);b=this.player.N().yF;var v=0;if(r&&q&&!Q){var Y=q.end-q.start;Y>0&&(v=Math.floor(Y/1E3))}v=Q?Q.Nn:v;var X={AD_BLOCK:this.Y++,AD_BREAK_LENGTH:v,AUTONAV_STATE:Bp(this.player.N()),CA_TYPE:"image",CPN:D.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.SS()*1E3,LACT:yJ(),LIVE_INDEX:Q?this.S++:1,LIVE_TARGETING_CONTEXT:Q&&Q.context?Q.context:"",MIDROLL_POS:q? Math.round(q.start/1E3):0,MIDROLL_POS_MS:q?Math.round(q.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.U$().KZ().height,P_W:this.player.U$().KZ().width,YT_REMOTE:b?b.join(","):""},S=gp(vX);Object.keys(S).forEach(function(f){S[f]!=null&&(X[f.toUpperCase()]=S[f].toString())}); z!==""&&(X.BISCOTTI_ID=z);z={};DX(Z)&&(z.sts="20139",(Q=this.player.N().forcedExperiments)&&(z.forced_experiments=Q));var T=rp(g.Pk(Z,X),z);return T.split("?").length!==2?TD(Error("Invalid AdBreakInfo URL")):g.la(this.player.N(),D==null?void 0:D.oauthToken).then(function(f){if(f&&jL()){var h=Pq();RT(h,f)}f=K.player.Na(h);h=qv0(K,T,X,D.isMdxPlayback,r);return g.t4(f,h,"/youtubei/v1/player/ad_break").then(function(m){return m})})}; Wp.prototype.reset=function(){this.S=this.Y=1};g.L(rSd,Wp); rSd.prototype.j=function(Z,Q,z){Q=Q===void 0?{}:Q;var K=Q.e5;var b=Q.nf;var q=Q.cueProcessedMs;z=z===void 0?"":z;Q=this.Y;this.Y++;var r=this.player.N().V("h5_disable_macro_substitution_in_get_ad_break")?Z:ASu(this,Z,{e5:K,nf:b,cueProcessedMs:q},z,Q);if(r.split("?").length!==2)return Math.random()<.1&&g.CO(Error("Invalid AdBreakInfo URL")),TD(Error("Invalid AdBreakInfo URL"));var D=this.player.getVideoData(1).isMdxPlayback,v=z;z=lqX.exec(r);z=z!=null&&z.length>=2?z[1]:"";Z=sJd.test(r);var Y=Zkn.exec(r); Y=Y!=null&&Y.length>=2?Y[1]:"";var X=QJG.exec(r);X=X!=null&&X.length>=2&&!Number.isNaN(Number(X[1]))?Number(X[1]):1;var S=zAW.exec(r);S=S!=null&&S.length>=2?S[1]:"0";var T=Cn(this.player.N().Ff),f=g.eq(this.player.getVideoData(1).KN,!0);x8x(this,f,r,v===""?"":v,this.player.N(),this.player.getVideoData(1));v={splay:!1,lactMilliseconds:String(yJ()),playerHeightPixels:Math.trunc(this.player.U$().KZ().height),playerWidthPixels:Math.trunc(this.player.U$().KZ().width),vis:Math.trunc(this.player.getVisibilityState()), signatureTimestamp:20139,autonavState:Bp(this.player.N())};if(D){D={};var h=this.player.N().yF;ea4(D,h?h.join(","):"")&&(v.mdxContext=D)}if(D=KJu.includes(T)?void 0:g.Mi("PREF")){h=D.split(RegExp("[:&]"));for(var m=0,J=h.length;m<J;m++){var d=h[m].split("=");if((d[0].toUpperCase()==="SML"||d[0].toUpperCase()==="GSML")&&d.length>1&&d[1].toUpperCase()==="TRUE"){f.user.lockedSafetyMode=!0;break}}v.autoCaptionsDefaultOn=Exn(D)}r=bkn.exec(r);(r=r!=null&&r.length>=2?r[1]:"")&&Y&&(f.user.credentialTransferTokens= [{token:r,scope:"VIDEO"}]);r={contentPlaybackContext:v};v=this.player.getVideoData(1).getGetAdBreakContext();D=this.player.getVideoData(1).clientPlaybackNonce;h=q!==void 0?Math.round(q).toString():void 0;m=(K==null?0:K.context)?K.context:void 0;J=0;q&&b&&!K&&(b=b.end-b.start,b>0&&(J=Math.floor(b/1E3)));K=(K=Math.trunc((K?K.Nn:J)*1E3))?String(K):void 0;b=this.player.SS()*1E3;b=Number.isNaN(b)?0:Math.trunc(b);Q={adBlock:Q,params:z,breakIndex:X,breakPositionMs:S,clientPlaybackNonce:D,topLevelDomain:T, isProxyAdTagRequest:Z,context:f,overridePlaybackContext:r,cueProcessedMs:h,videoId:Y?Y:void 0,liveTargetingParams:m,breakLengthMs:K,driftFromHeadMs:b?String(b):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:v?v:void 0};return jJG(this,Q)};var ArJ={Iqp:"replaceUrlMacros",VyJ:"onAboutThisAdPopupClosed",bsN:"executeCommand"};DJG.prototype.PM=function(){return"adPingingEndpoint"}; DJG.prototype.O1=function(Z,Q,z){Vh4(this.v7.get(),Z,Q,z)};vyM.prototype.PM=function(){return"changeEngagementPanelVisibilityAction"}; vyM.prototype.O1=function(Z){this.J.hG("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:Z})};gyD.prototype.PM=function(){return"loggingUrls"}; gyD.prototype.O1=function(Z,Q,z){Z=g.n(Z);for(var K=Z.next();!K.done;K=Z.next())K=K.value,Vh4(this.v7.get(),K.baseUrl,Q,z,K.attributionSrcMode)};g.L(XHG,g.O);g.L(k8,g.O);g.A=k8.prototype;g.A.addListener=function(Z){this.listeners.push(Z)}; g.A.removeListener=function(Z){this.listeners=this.listeners.filter(function(Q){return Q!==Z})}; g.A.l0=function(Z,Q,z,K,b,q,r,D){if(Z==="")vM("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(Z!==this.Y||z){this.Y=Z;this.LN.get().l0(Z,Q,z,K,b,q,r,D);this.ou.get().l0(Z,Q,z,K,b,q,r,D);var v;(v=this.jx)==null||v.get().l0(Z,Q,z,K,b,q,r,D);this.j.l0(Z,Q,z,K,b,q,r,D);v=g.n(this.listeners);for(var Y=v.next();!Y.done;Y=v.next())Y.value.l0(Z,Q,z,K,b,q,r,D)}else vM("Duplicate content video loaded signal")}; g.A.Yp=function(){this.Y&&this.S9(this.Y)}; g.A.S9=function(Z){this.Y=void 0;for(var Q=g.n(this.listeners),z=Q.next();!z.done;z=Q.next())z.value.S9(Z)};uZ.prototype.Nd=function(Z,Q,z,K,b){SvG(this);this.L=!Q&&z===0;var q=this.J.getVideoData(1),r=this.J.getVideoData(2);q&&(this.contentCpn=q.clientPlaybackNonce,this.videoId=q.videoId,this.Y=q.K);r&&(this.adCpn=r.clientPlaybackNonce,this.adVideoId=r.videoId,this.adFormat=r.adFormat);this.W=Z;K<=0?(SvG(this),this.L=!Q&&z===0):(this.actionType=this.L?Q?"unknown_type":"video_to_ad":Q?"ad_to_video":"ad_to_ad",this.videoStreamType=b?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& (this.S=!0,WO("_start",this.actionType)&&fG9(this)))}; uZ.prototype.reset=function(){return new uZ(this.J)};g.L(x8,g.O);x8.prototype.addCueRange=function(Z,Q,z,K,b,q,r){q=q===void 0?3:q;r=r===void 0?1:r;this.Y.has(Z)?vM("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:Z}):(Z=new hAr(Z,Q,z,K,q),this.Y.set(Z.id,{nf:Z,listener:b,sK:r}),this.J.df([Z],r))}; x8.prototype.removeCueRange=function(Z){var Q=this.Y.get(Z);Q?(this.J.Pk([Q.nf],Q.sK),this.Y.delete(Q.nf.id)):vM("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:Z})}; x8.prototype.onCueRangeEnter=function(Z){if(this.Y.has(Z.id))this.Y.get(Z.id).listener.onCueRangeEnter(Z.id)}; x8.prototype.onCueRangeExit=function(Z){if(this.Y.has(Z.id))this.Y.get(Z.id).listener.onCueRangeExit(Z.id)}; g.L(hAr,g.b6);tz.prototype.u4=function(Z){this.J.u4(Z)}; tz.prototype.Y$=function(Z){var Q=g.iu.apply(1,arguments);Z==="onAdStart"||Z==="onAdEnd"?this.J.ZG.apply(this.J,[Z].concat(g.I(Q))):this.J.hG.apply(this.J,[Z].concat(g.I(Q)))};Fe.prototype.kX=function(Z){return Z&&eV(this)};var Nq0=null;g.L(dJ4,g.rV);dJ4.prototype.Gh=function(Z){return this.Y.hasOwnProperty(Z)?this.Y[Z].Gh():{}}; g.BG("ytads.bulleit.getVideoMetadata",function(Z){return w3().Gh(Z)}); g.BG("ytads.bulleit.triggerExternalActivityEvent",function(Z,Q,z){var K=w3();z=ySd(z);z!==null&&K.publish(z,{queryId:Z,viewabilityString:Q})});g.A=EO.prototype;g.A.iJ=function(Z,Q){if(!this.Y.has(Z))return{};if(Q==="seek"){Q=this.J.N().V("html5_dai_enable_active_view_creating_completed_adblock");Q=Q===void 0?!1:Q;var z=yP(JO).WR(Z,{});z?mW(z):Q&&(Z=yP(JO).TG(null,uf(),!1,Z),Z.Cs=3,Vgr([Z]));return{}}Q=ikG(Q);if(Q===null)return{};var K=this.J.wI();if(!K)return{};var b=this.J.getPresentingPlayerType(!0);if((z=this.J.getVideoData(b))==null||!z.isAd())return{};z={opt_adElement:K,opt_fullscreen:this.LN.get().isFullscreen()};return VJr(Q,Z,z)}; g.A.T7=function(Z,Q,z,K,b){this.Y.has(Z)&&(K<=0||b<=0||yP(JO).T7(Z,Q,z,K,b))}; g.A.il=function(Z){var Q;(Q=this.Y.get(Z.queryId))==null||Q.il()}; g.A.jZ=function(Z){var Q;(Q=this.Y.get(Z.queryId))==null||Q.jZ()}; g.A.SZ=function(Z){var Q;(Q=this.Y.get(Z.queryId))==null||Q.SZ()}; g.A.Ik=function(Z){var Q;(Q=this.Y.get(Z.queryId))==null||Q.Ik()}; g.A.pE=function(Z){var Q;(Q=this.Y.get(Z.queryId))==null||Q.pE()};UJr.prototype.send=function(Z,Q,z,K){try{Ok4(this,Z,Q,z,K===void 0?!1:K)}catch(b){}};g.L(oyd,UJr);Bqf.prototype.send=function(Z,Q,z,K){var b=!1;try{if(K==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||K==="ATTRIBUTION_SRC_MODE_XHR_OPTION")b=!0,Z=vqX(Z);K=b;var q=Z.match(Rl);if(q[1]==="https")var r=Z;else q[1]="https",r=GD("https",q[2],q[3],q[4],q[5],q[6],q[7]);var D=Kix(r);q=[];var v=FWG(r)&&this.H7.get().J.N().experiments.XI("add_auth_headers_to_remarketing_google_dot_com_ping");if(DX(r)||v)q.push({headerType:"USER_AUTH"}),q.push({headerType:"PLUS_PAGE_ID"}),q.push({headerType:"VISITOR_ID"}),q.push({headerType:"EOM_VISITOR_ID"}), q.push({headerType:"AUTH_USER"}),q.push({headerType:"DATASYNC_ID"});this.Y.send({baseUrl:r,scrubReferrer:D,headers:q},Q,z,K)}catch(Y){}};zP.prototype.Ax=function(){return this.J.Ax(1)};g.L(K6,g.O);g.A=K6.prototype;g.A.XB=function(){return this.J.getVideoData(1).clientPlaybackNonce}; g.A.addListener=function(Z){this.listeners.push(Z)}; g.A.removeListener=function(Z){this.listeners=this.listeners.filter(function(Q){return Q!==Z})}; g.A.l0=function(){this.YU.clear();this.c6=null;this.LV.get().clear()}; g.A.S9=function(){}; g.A.WrI=function(Z,Q,z,K,b){Q.videoId==="nPpU29QrbiU"&&this.J.pN("ads_ssm_vdc_s",{pt:z,dvt:Z});fd(this.H7.get())&&Z!=="dataloaded"||wH0(this,Q,z);if(eV(this.H7.get())&&Z==="newdata"&&b!==void 0){Z=this.XB();var q=Q.clientPlaybackNonce,r={};mr(this,"rte",(r.ec=q,r.xc=K==null?void 0:K.clientPlaybackNonce,r.tr=b,r.pt=z,r.ia=q!==Z,r.ctp=cN(q),r));Q=Q.clientPlaybackNonce;K=K==null?void 0:K.clientPlaybackNonce;b=EyW(b);if(b!==1)if(K!==void 0)for(z=g.n(this.listeners),Z=z.next();!Z.done;Z=z.next())Z.value.C7(K, Q,b);else vM("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:Q,transitionReason:String(b)});b=g.n(this.listeners);for(K=b.next();!K.done;K=b.next())K.value.A8(Q)}}; g.A.MP$=function(Z,Q){Z!==void 0&&(this.c6=Z,Q===void 0?vM("Expected ad video start time on SS video changed"):this.YU.set(Z,Q));var z=this.J.getPresentingPlayerType(!0),K=this.J.getVideoData(z);this.J.getVideoData(1).pN("ads_ssvc",{pt:z,cpn:K==null?void 0:K.clientPlaybackNonce,crtt:this.J.getCurrentTime(1,!1),atlh:this.J.isAtLiveHead(),adstt:Q});K?wH0(this,K,z):vM("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.J.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:Z})}; g.A.sW=function(Z,Q){var z=Z.author,K=Z.clientPlaybackNonce,b=Z.isListed,q=Z.gX,r=Z.title,D=Z.b0,v=Z.QF,Y=Z.isMdxPlayback,X=Z.V2,S=Z.mdxEnvironment,T=Z.isAutonav,f=Z.fC,h=Z.h6,m=Z.HH,J=Z.videoId||"",d=Z.profilePicture||"",G=Z.n6||"",R=Z.aF()||!1,U=Z.GJ()||!1;Z=Z.ZD||void 0;q=this.LV.get().Y.get(q)||{layoutId:null,slotId:null};var B=this.J.getVideoData(1),e=B.fd();B=B.getPlayerResponse();Q=1E3*this.J.getDuration(Q);var F=1E3*this.J.getDuration(1),KX,rf,sG=(B==null?void 0:(KX=B.playerConfig)==null? void 0:(rf=KX.daiConfig)==null?void 0:rf.enableDai)||!1,k,l;KX=(B==null?void 0:(k=B.playerConfig)==null?void 0:(l=k.daiConfig)==null?void 0:l.enablePreroll)||!1;return Object.assign({},q,{videoId:J,author:z,clientPlaybackNonce:K,SC:Q,x8:F,daiEnabled:sG,ac:KX,isListed:b,fd:e,profilePicture:d,title:r,n6:G,b0:D,QF:v,ZD:Z,isMdxPlayback:Y,V2:X,mdxEnvironment:S,isAutonav:T,fC:f,h6:h,HH:m,aF:R,GJ:U})}; g.A.gr=function(){this.listeners.length=0;this.m5=null;g.O.prototype.gr.call(this)};g.L(by,g.O);g.A=by.prototype;g.A.l0=function(){var Z=this;eV(this.H7.get())||(this.Y=gw(function(){Z.J.FI()||Z.J.o3("ad",1)}))}; g.A.S9=function(){}; g.A.addListener=function(Z){this.listeners.push(Z)}; g.A.removeListener=function(Z){this.listeners=this.listeners.filter(function(Q){return Q!==Z})}; g.A.Hd=function(){}; g.A.playVideo=function(){this.J.playVideo()}; g.A.pauseVideo=function(){this.J.pauseVideo()}; g.A.resumeVideo=function(Z){this.JV(Z)&&this.J.playVideo()}; g.A.JV=function(Z){return this.J.getPlayerState(Z)===2}; g.A.getCurrentTimeSec=function(Z,Q,z){var K=this.ou.get().c6;if(Z===2&&!Q&&K!==null)return s90(this,K);e1(this.H7.get(),"html5_ssap_use_cpn_to_get_time")||(z=void 0);return z!==void 0?this.J.getCurrentTime(Z,Q,z):this.J.getCurrentTime(Z,Q)}; g.A.getVolume=function(){return this.J.getVolume()}; g.A.isMuted=function(){return this.J.isMuted()}; g.A.getPresentingPlayerType=function(){return this.J.getPresentingPlayerType(!0)}; g.A.getPlayerState=function(Z){return this.J.getPlayerState(Z)}; g.A.isFullscreen=function(){return this.J.isFullscreen()}; g.A.isAtLiveHead=function(){return this.J.isAtLiveHead()}; g.A.Kj=function(Z){this.J.Kj(Z)}; g.A.gL7=function(){var Z=this.J.getPresentingPlayerType(!0),Q=this.getCurrentTimeSec(Z,!1);if(Z===2){Z=g.n(this.listeners);for(var z=Z.next();!z.done;z=Z.next())z.value.XP(Q)}else if(Z===1)for(Z=g.n(this.yN),z=Z.next();!z.done;z=Z.next())z.value.Hd(Q)}; g.A.UbF=function(Z){for(var Q=g.n(this.listeners),z=Q.next();!z.done;z=Q.next())z.value.hN(Z,this.getPresentingPlayerType())}; g.A.onFullscreenToggled=function(Z){for(var Q=g.n(this.listeners),z=Q.next();!z.done;z=Q.next())z.value.onFullscreenToggled(Z)}; g.A.onVolumeChange=function(){for(var Z=g.n(this.listeners),Q=Z.next();!Q.done;Q=Z.next())Q.value.onVolumeChange()}; g.A.Es=function(){for(var Z=this.J.isMinimized(),Q=g.n(this.listeners),z=Q.next();!z.done;z=Q.next())z.value.Es(Z)}; g.A.Gu=function(Z){for(var Q=g.n(this.listeners),z=Q.next();!z.done;z=Q.next())z.value.Gu(Z)}; g.A.pL=function(){for(var Z=this.J.U$().KZ(),Q=g.n(this.listeners),z=Q.next();!z.done;z=Q.next())z.value.RF(Z)}; g.A.XF=function(Z){for(var Q=g.n(this.listeners),z=Q.next();!z.done;z=Q.next())z.value.XF(Z)}; g.A.At=function(){for(var Z=g.n(this.listeners),Q=Z.next();!Q.done;Q=Z.next())Q.value.At()};g.L(z3X,g.O);g.L(De,g.O);De.prototype.gr=function(){this.z2.FI()||this.z2.get().removeListener(this);g.O.prototype.gr.call(this)};vm.prototype.fetch=function(Z){var Q=Z.UJ;return this.Y.fetch(Z.zm,{e5:Z.e5===void 0?void 0:Z.e5,nf:Q,cueProcessedMs:Z.cueProcessedMs===void 0?0:Z.cueProcessedMs}).then(function(z){return KAr(z,Q)})};g.L(gS,g.O);g.A=gS.prototype;g.A.addListener=function(Z){this.listeners.push(Z)}; g.A.removeListener=function(Z){this.listeners=this.listeners.filter(function(Q){return Q!==Z})}; g.A.zD=function(Z){b2n(this,Z,1)}; g.A.onAdUxClicked=function(Z,Q){Yc(this,function(z){z.cN(Z,Q)})}; g.A.p_=function(Z){Yc(this,function(Q){Q.Vu(Z)})}; g.A.Iz=function(Z){Yc(this,function(Q){Q.LU(Z)})}; g.A.EqI=function(Z){Yc(this,function(Q){Q.J5(Z)})};XQ.prototype.reduce=function(Z){switch(Z.event){case "unknown":return}var Q=Z.identifier;var z=this.Y[Q];z?Q=z:(z={qZ:null,L5:-Infinity},Q=this.Y[Q]=z);z=Z.startSecs+Z.Y/1E3;if(!(z<Q.L5))if(Q.L5=z,Q.qZ){if(z<Q.qZ.end){a:{z=Q.qZ;switch(Z.event){case "start":case "continue":case "stop":break;default:Z=null;break a}Z=z.start+Z.Nn;Z=z.end<=Z?null:Z}if(Z!==null)for(Q.qZ.end=Z,Q=this.j,g.X7(Q.S.Y,Z*1E3),Q=g.n(Q.listeners),z=Q.next();!z.done;z=Q.next())z.value.Pd(Z)}}else if(Z=qyx(Z,this.S))z=Z.fuh,Q.qZ= Z.IZ,AL0(this.j,z)}; XQ.prototype.updateTime=function(){};g.L(Sv,g.O);g.A=Sv.prototype; g.A.l0=function(){this.L=new XQ(this,nyG(this.H7.get()));this.S=new rLG;var Z=this.J.getVideoData(1);if(!Z.enableServerStitchedDai){var Q=this.J.getVideoData(1),z;((z=this.j)==null?void 0:z.clientPlaybackNonce)!==Q.clientPlaybackNonce&&(this.j!=null&&this.j.unsubscribe("cuepointupdated",this.dG,this),Q.subscribe("cuepointupdated",this.dG,this),this.j=Q)}this.NV.length=0;var K;Q=((K=Z.Y)==null?void 0:o6G(K,0))||[];K=g.n(Q);for(Q=K.next();!Q.done;Q=K.next())Q=Q.value,this.CJ(Q)&&(JSf(this.H7.get())&& zf(this.v7.get(),"ocvl","cpi."+Q.identifier+";cpe."+Q.event+";cps."+Q.startSecs),vM("Unexpected a GetAdBreak to go out without player waiting",void 0,void 0,{cuePointId:Q.identifier,cuePointEvent:Q.event,contentCpn:Z.clientPlaybackNonce}))}; g.A.S9=function(){}; g.A.addListener=function(Z){this.listeners.push(Z)}; g.A.removeListener=function(Z){this.listeners=this.listeners.filter(function(Q){return Q!==Z})}; g.A.CJ=function(Z){Dg0(this,Z);this.L.reduce(Z);Z=this.W;this.W=!1;return Z}; g.A.dG=function(Z){var Q=this.J.getVideoData(1).isDaiEnabled();if(Q||!g.yF(this.J.N())){Z=g.n(Z);for(var z=Z.next();!z.done;z=Z.next())if(z=z.value,Dg0(this,z),Q)this.L.reduce(z);else if(this.J.getCurrentTime(1)!==0&&z.event==="start")if(this.H7.get().J.N().experiments.XI("ignore_overlapping_cue_points_on_endemic_live_html5")&&(this.Y==null||this.H7.get().J.N().experiments.XI("enable_only_drop_overlapping_cuepoints_with_same_identifier")&&this.Y.identifier!==z.identifier?0:z.startSecs+z.Nn>=this.Y.startSecs&& z.startSecs<=this.Y.startSecs+this.Y.Nn)){var K=void 0;JSf(this.H7.get())&&z.identifier!==((K=this.Y)==null?void 0:K.identifier)&&zf(this.v7.get(),"ocud","cpi."+z.identifier+";cpe."+z.event+";cps."+z.startSecs+";");K=void 0;z.identifier!==((K=this.Y)==null?void 0:K.identifier)&&vM("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.Y=z,AL0(this,z)}}; g.A.gr=function(){this.j!=null&&(this.j.unsubscribe("cuepointupdated",this.dG,this),this.j=null);this.listeners.length=0;this.NV.length=0;g.O.prototype.gr.call(this)};$c.prototype.addPlayerResponseForAssociation=function(Z){this.J.addPlayerResponseForAssociation(Z)};g.A=f6.prototype;g.A.Fq=function(Z,Q,z,K,b,q,r){return this.J.Fq(Z,Q,z,K,b,q,r)}; g.A.XS=function(Z,Q){this.J.XS(Z,Q)}; g.A.a8=function(Z,Q,z){this.J.a8(Z,Q,z)}; g.A.YP=function(Z){this.J.YP(Z)}; g.A.jL=function(Z,Q,z,K,b,q,r){this.J.jL(Z,Q,z,K,b,q,r)}; g.A.x6=function(Z){return this.J.x6(Z)}; g.A.finishSegmentByCpn=function(Z,Q,z){z=gmW(z);this.J.finishSegmentByCpn(Z,Q,z)};g.L(Xr0,g.O);g.L(Syf,g.O);g.L($g0,g.O);g.L(TiW,g.O);g.L(fvn,g.O);g.L(LAG,g.O);LAG.prototype.S=function(){return this.j};g.L(nmd,WI); nmd.prototype.W=function(Z){var Q=Z.content;if(Q.componentType==="shopping-companion")switch(Z.actionType){case 1:case 2:Z=this.Y.getVideoData(1);this.Y.hG("updateKevlarOrC3Companion",{contentVideoId:Z&&Z.videoId,shoppingCompanionCarouselRenderer:Q.renderer,layoutId:Q.layoutId,macros:Q.macros,onLayoutVisibleCallback:Q.Y,interactionLoggingClientData:Q.interactionLoggingClientData});break;case 3:this.Y.hG("updateKevlarOrC3Companion",{})}else if(Q.componentType==="action-companion")switch(Z.actionType){case 1:case 2:Z=this.Y.getVideoData(1); this.Y.hG("updateKevlarOrC3Companion",{contentVideoId:Z&&Z.videoId,actionCompanionAdRenderer:Q.renderer,layoutId:Q.layoutId,macros:Q.macros,onLayoutVisibleCallback:Q.Y,interactionLoggingClientData:Q.interactionLoggingClientData});break;case 3:Q.renderer&&(Q=this.Y.getVideoData(1),this.Y.hG("updateKevlarOrC3Companion",{contentVideoId:Q&&Q.videoId})),this.Y.hG("updateKevlarOrC3Companion",{})}else if(Q.componentType==="image-companion")switch(Z.actionType){case 1:case 2:Z=this.Y.getVideoData(1);this.Y.hG("updateKevlarOrC3Companion", {contentVideoId:Z&&Z.videoId,imageCompanionAdRenderer:Q.renderer,layoutId:Q.layoutId,macros:Q.macros,onLayoutVisibleCallback:Q.Y,interactionLoggingClientData:Q.interactionLoggingClientData});break;case 3:Q=this.Y.getVideoData(1),this.Y.hG("updateKevlarOrC3Companion",{contentVideoId:Q&&Q.videoId}),this.Y.hG("updateKevlarOrC3Companion",{})}else if(Q.componentType==="top-banner-image-text-icon-buttoned")switch(Z.actionType){case 1:case 2:Z=this.Y.getVideoData(1);this.Y.hG("updateKevlarOrC3Companion", {contentVideoId:Z&&Z.videoId,topBannerImageTextIconButtonedLayoutViewModel:Q.renderer,layoutId:Q.layoutId,macros:Q.macros,onLayoutVisibleCallback:Q.Y,interactionLoggingClientData:Q.interactionLoggingClientData});break;case 3:Q.renderer&&(Q=this.Y.getVideoData(1),this.Y.hG("updateKevlarOrC3Companion",{contentVideoId:Q&&Q.videoId})),this.Y.hG("updateKevlarOrC3Companion",{})}else if(Q.componentType==="banner-image")switch(Z.actionType){case 1:case 2:Z=this.Y.getVideoData(1);this.Y.hG("updateKevlarOrC3Companion", {contentVideoId:Z&&Z.videoId,bannerImageLayoutViewModel:Q.renderer,layoutId:Q.layoutId,macros:Q.macros,onLayoutVisibleCallback:Q.Y,interactionLoggingClientData:Q.interactionLoggingClientData});break;case 3:Q=this.Y.getVideoData(1),this.Y.hG("updateKevlarOrC3Companion",{contentVideoId:Q&&Q.videoId}),this.Y.hG("updateKevlarOrC3Companion",{})}else if(Q.componentType==="ads-engagement-panel")switch(Q=Q.renderer,Z.actionType){case 1:case 2:this.Y.hG("updateEngagementPanelAction",Q.addAction);this.Y.hG("changeEngagementPanelVisibility", Q.expandAction);break;case 3:this.Y.hG("changeEngagementPanelVisibility",Q.hideAction),this.Y.hG("updateEngagementPanelAction",Q.removeAction)}else if(Q.componentType==="ads-engagement-panel-layout"){var z=Q.renderer;switch(Z.actionType){case 1:case 2:this.Y.hG("updateEngagementPanelAction",{action:Uu(z.addAction),layoutId:Q.layoutId,onLayoutVisibleCallback:Q.Y,interactionLoggingClientData:Q.interactionLoggingClientData});this.Y.hG("changeEngagementPanelVisibility",Uu(z.expandAction));break;case 3:this.Y.hG("changeEngagementPanelVisibility", Uu(z.hideAction)),this.Y.hG("updateEngagementPanelAction",{action:Uu(z.removeAction)})}}};g.L(cLr,wV);g.A=cLr.prototype;g.A.init=function(Z,Q,z){wV.prototype.init.call(this,Z,Q,z);g.Dw(this.S,"stroke-dasharray","0 "+this.j);this.S.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.K.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.W.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; g.A.clear=function(){this.hide()}; g.A.hide=function(){lo(this);wV.prototype.hide.call(this)}; g.A.show=function(){E2(this);wV.prototype.show.call(this)}; g.A.P2=function(){this.hide()}; g.A.HP=function(){if(this.Y){var Z=this.Y.getProgressState();Z!=null&&Z.current!=null&&g.Dw(this.S,"stroke-dasharray",Z.current/Z.seekableEnd*this.j+" "+this.j)}};g.L(mgd,Yf);g.A=mgd.prototype; g.A.init=function(Z,Q,z){Yf.prototype.init.call(this,Z,Q,z);if(Q.image&&Q.image.thumbnail)if(Q.headline)if(Q.description)if(Q.backgroundImage&&Q.backgroundImage.thumbnail)if(Q.actionButton&&g.V(Q.actionButton,g.RU))if(Z=Q.durationMilliseconds||0,typeof Z!=="number"||Z<=0)g.Rm(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+Z));else if(Q.navigationEndpoint){var K=this.api.getVideoData(2);if(K!=null){var b=Q.image.thumbnail.thumbnails;b!=null&& b.length>0&&g.IE(g.E3(b[0].url))&&(b[0].url=K.profilePicture,g.IE(g.E3(K.profilePicture))&&s6W("VideoPlayer",239976093,"Expected non-empty profile picture."));b=Q.backgroundImage.thumbnail.thumbnails;b!=null&&b.length>0&&g.IE(g.E3(b[0].url))&&(b[0].url=K.uI());b=Q.headline;b!=null&&g.IE(g.E3(b.text))&&(b.text=K.author)}this.U.init(bo("ad-image"),Q.image,z);this.K.init(bo("ad-text"),Q.headline,z);this.S.init(bo("ad-text"),Q.description,z);this.Zu.init(bo("ad-image"),Q.backgroundImage,z);K=["ytp-ad-action-interstitial-action-button", "ytp-ad-action-interstitial-action-button-rounded"];this.slot.classList.add("ytp-ad-action-interstitial-slot-dark-background");this.K.element.classList.add("ytp-ad-action-interstitial-headline-light");this.S.element.classList.add("ytp-ad-action-interstitial-description-light");K.push("ytp-ad-action-interstitial-action-button-dark");this.api.N().j&&(K.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),K.push("ytp-ad-action-interstitial-action-button-dark"));this.api.N().V("enable_unified_action_endcap_on_web")&& !this.api.N().j&&(K.push("ytp-ad-action-interstitial-action-button-unified"),this.NB.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.U.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.qB.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.I3.classList.add("ytp-ad-action-interstitial-card-unified"),this.SJ.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.S.element.classList.add("ytp-ad-action-interstitial-description-unified"), this.KN.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.K.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.Vp.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.tG.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new ap(this.api,this.layoutId,this.interactionLoggingClientData,this.au,K);g.W(this,this.actionButton);this.actionButton.zf(this.NB); this.actionButton.init(bo("button"),g.V(Q.actionButton,g.RU),z);kl(this.actionButton.element);K=e_(this.actionButton.element);xl(this.actionButton.element,K+" This link opens in new tab");this.navigationEndpoint=Q.navigationEndpoint;this.W.Z(this.Vp,"click",this.Jd,this);this.W.Z(this.SJ,"click",this.Jd,this);!this.api.N().V("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.N().j||this.W.Z(this.KN,"click",this.Jd,this);this.Y=this.u$?new nF(this.api,Z):new cM(Z);g.W(this,this.Y);if(Q.skipButton){(Z= g.V(Q.skipButton,con))&&this.Y&&(this.skipButton=new Sq(this.api,this.layoutId,this.interactionLoggingClientData,this.au,this.Y,this.Oi),g.W(this,this.skipButton),this.skipButton.zf(this.element),this.skipButton.init(bo("skip-button"),Z,z));z=this.api.V("disable_ad_preview_for_instream_ads");if(Z=Q.adBadgeRenderer)if(Z=g.V(Z,n$0))K=new h1(this.api,this.layoutId,this.interactionLoggingClientData,this.au,!0,z),K.zf(this.tG),K.init(bo("simple-ad-badge"),Z,this.macros),g.W(this,K);if(Z=Q.adInfoRenderer)if(Z= g.V(Z,aU))z=new tB(this.api,this.layoutId,this.interactionLoggingClientData,this.au,this.element,void 0,z),z.zf(this.tG),z.init(bo("ad-info-hover-text-button"),Z,this.macros),g.W(this,z)}else Q.nonskippableOverlayRenderer&&(Z=g.V(Q.nonskippableOverlayRenderer,Pi))&&this.Y&&(this.j=new Qd(this.api,this.layoutId,this.interactionLoggingClientData,this.au,this.Y,!1),g.W(this,this.j),this.j.zf(this.element),this.j.init(bo("ad-preview"),Z,z));Q.countdownRenderer&&(Q=Q.countdownRenderer,g.V(Q,mYQ)&&this.Y&& (z=new cLr(this.api,this.layoutId,this.interactionLoggingClientData,this.au,this.Y),g.W(this,z),z.zf(this.element),z.init(bo("timed-pie-countdown"),g.V(Q,mYQ),this.macros)));this.show();this.element.focus()}else g.Rm(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.Rm(Error("AdActionInterstitialRenderer has no button."));else g.Rm(Error("AdActionInterstitialRenderer has no background AdImage."));else g.Rm(Error("AdActionInterstitialRenderer has no description AdText."));else g.Rm(Error("AdActionInterstitialRenderer has no headline AdText.")); else g.Rm(Error("AdActionInterstitialRenderer has no image."))}; g.A.clear=function(){g.ib(this.W);this.hide()}; g.A.show=function(){Ivd(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.j&&this.j.show();Yf.prototype.show.call(this)}; g.A.hide=function(){Ivd(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.j&&this.j.hide();Yf.prototype.hide.call(this)}; g.A.Jd=function(){this.navigationEndpoint&&(this.layoutId?this.au.executeCommand(this.navigationEndpoint,this.layoutId):g.Rm(Error("Missing layoutId for ad action interstitial.")))};var GWn={iconType:"CLOSE"},cm=new g.SO(320,63);g.L(Ni9,Yf);g.A=Ni9.prototype; g.A.init=function(Z,Q,z){Yf.prototype.init.call(this,Z,Q,z);this.W=Q;this.U=g.QM(this.W.onClickCommands||[]);this.tG=this.W.onErrorCommand||null;if(Z=this.W.contentSupportedRenderer)Z=this.W.contentSupportedRenderer,Q=this.W.adInfoRenderer||null,g.V(Z,fHJ)?(this.K=g.xv("ytp-ad-overlay-ad-info-button-container",this.S.element),i2d(this,Q),Z=Pwu(this,g.V(Z,fHJ))):g.V(Z,h0n)?(this.K=g.xv("ytp-ad-overlay-ad-info-button-container",this.j.element),i2d(this,Q),Z=R3n(this,g.V(Z,h0n))):g.V(Z,Lwn)?(this.K= g.xv("ytp-ad-overlay-ad-info-button-container",this.Y.element),i2d(this,Q),Z=Cw4(this,g.V(Z,Lwn))):(g.Rm(Error("InvideoOverlayAdRenderer content could not be initialized.")),Z=!1);Z&&(this.show(),pr4(this,!0))}; g.A.clear=function(){pr4(this,!1);this.Vp.reset();this.SJ=0;this.S.hide();this.logVisibility(this.S.element,!1);this.j.hide();this.logVisibility(this.j.element,!1);this.Y.hide();this.logVisibility(this.Y.element,!1);this.hide();this.dispose()}; g.A.QWY=function(){this.NB&&(this.layoutId?this.au.executeCommand(this.NB,this.layoutId):g.Rm(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.A.eq=function(){a:{if(this.W&&this.W.closeButton&&this.W.closeButton.buttonRenderer){var Z=this.W.closeButton.buttonRenderer;if(Z.serviceEndpoint){Z=[Z.serviceEndpoint];break a}}Z=[]}Z=g.n(Z);for(var Q=Z.next();!Q.done;Q=Z.next())Q=Q.value,this.layoutId?this.au.executeCommand(Q,this.layoutId):g.Rm(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; g.A.xTr=function(){this.Zu||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.A.MY=function(){this.Zu||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.MY("invideo-overlay")}; g.A.Tq7=function(Z){Z.target===this.K&&g.xv("ytp-ad-button",this.qB.element).click()};g.L(H2f,wV);g.A=H2f.prototype;g.A.init=function(Z,Q,z){wV.prototype.init.call(this,Z,Q,z);Z=Q.durationMs;this.S=Z==null||Z===0?0:Z+this.Y.getProgressState().current*1E3;if(Q.text)var K=Q.text.templatedAdText;else Q.staticMessage&&(K=Q.staticMessage);this.messageText.init(bo("ad-text"),K,z);this.messageText.zf(this.j.element);this.W.show(100);this.show()}; g.A.clear=function(){this.hide()}; g.A.hide=function(){MAM(this,!1);wV.prototype.hide.call(this);this.j.hide();this.messageText.hide();lo(this)}; g.A.show=function(){MAM(this,!0);wV.prototype.show.call(this);E2(this);this.j.show();this.messageText.show()}; g.A.P2=function(){this.hide()}; g.A.HP=function(){if(this.Y!=null){var Z=this.Y.getProgressState();Z!=null&&Z.current!=null&&(Z=1E3*Z.current,!this.SJ&&Z>=this.S?(this.W.hide(),this.SJ=!0):this.messageText&&this.messageText.isTemplated()&&(Z=Math.max(0,Math.ceil((this.S-Z)/1E3)),Z!==this.K&&(eN(this.messageText,{TIME_REMAINING:String(Z)}),this.K=Z)))}};g.L(UgW,Yf);g.A=UgW.prototype; g.A.init=function(Z,Q,z){Yf.prototype.init.call(this,Z,Q,{});Q.image&&Q.image.thumbnail?Q.headline?Q.description?Q.actionButton&&g.V(Q.actionButton,g.RU)?(this.S.init(bo("ad-image"),Q.image,z),this.j.init(bo("ad-text"),Q.headline,z),this.W.init(bo("ad-text"),Q.description,z),Z=["ytp-ad-underlay-action-button"],this.api.N().V("use_blue_buttons_for_desktop_player_underlay")&&Z.push("ytp-ad-underlay-action-button-blue"),this.actionButton=new ap(this.api,this.layoutId,this.interactionLoggingClientData,this.au, Z),Q.backgroundColor&&g.Dw(this.element,"background-color",g.U8(Q.backgroundColor)),g.W(this,this.actionButton),this.actionButton.zf(this.K),this.actionButton.init(bo("button"),g.V(Q.actionButton,g.RU),z),Q=g.Xp(this.api.N().experiments,"player_underlay_video_width_fraction"),this.api.N().V("place_shrunken_video_on_left_of_player")?(z=this.Y,g.jn(z,"ytp-ad-underlay-left-container"),g.rd(z,"ytp-ad-underlay-right-container"),g.Dw(this.Y,"margin-left",Math.round((Q+.02)*100)+"%")):(z=this.Y,g.jn(z,"ytp-ad-underlay-right-container"), g.rd(z,"ytp-ad-underlay-left-container")),g.Dw(this.Y,"width",Math.round((1-Q-.04)*100)+"%"),this.api.IG()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.jX.bind(this)),this.api.addEventListener("resize",this.pG.bind(this))):g.Rm(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.Rm(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.Rm(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.Rm(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.A.show=function(){O2X(!0);this.actionButton&&this.actionButton.show();Yf.prototype.show.call(this)}; g.A.hide=function(){O2X(!1);this.actionButton&&this.actionButton.hide();Yf.prototype.hide.call(this)}; g.A.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.jX.bind(this));this.api.removeEventListener("resize",this.pG.bind(this));this.hide()}; g.A.onClick=function(Z){Yf.prototype.onClick.call(this,Z);this.actionButton&&g.bG(this.actionButton.element,Z.target)&&this.api.pauseVideo()}; g.A.jX=function(Z){Z==="transitioning"?(this.Y.classList.remove("ytp-ad-underlay-clickable"),this.show()):Z==="visible"?this.Y.classList.add("ytp-ad-underlay-clickable"):Z==="hidden"&&(this.hide(),this.Y.classList.remove("ytp-ad-underlay-clickable"))}; g.A.pG=function(Z){Z.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):Z.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.Dw(this.j.element,"font-size",Z.width/40+"px")};g.L(mz,Yf); mz.prototype.init=function(Z,Q,z){Yf.prototype.init.call(this,Z,Q,z);Q.toggledLoggingParams&&(this.toggledLoggingParams=Q.toggledLoggingParams);Q.answer&&g.V(Q.answer,g.RU)?(Z=new ap(this.api,this.layoutId,this.interactionLoggingClientData,this.au,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),Z.zf(this.answer),Z.init(bo("ytp-ad-survey-answer-button"),g.V(Q.answer,g.RU),z),Z.show()):Q.answer&&g.V(Q.answer,hc)&&(this.Y=new op(this.api,this.layoutId,this.interactionLoggingClientData,this.au, ["ytp-ad-survey-answer-toggle-button"]),this.Y.zf(this.answer),g.W(this,this.Y),this.Y.init(bo("survey-answer-button"),g.V(Q.answer,hc),z));this.show()}; mz.prototype.qf=function(Z){this.layoutId?xH(this.au,Z,this.layoutId,this.macros):g.Rm(new g.tW("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))}; mz.prototype.onClick=function(Z){Yf.prototype.onClick.call(this,Z);if(this.api.N().V("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; mz.prototype.clear=function(){this.hide()};g.L(omM,Yf);omM.prototype.init=function(Z,Q,z){Yf.prototype.init.call(this,Z,Q,z);Q.answer&&g.V(Q.answer,hc)&&(this.button=new op(this.api,this.layoutId,this.interactionLoggingClientData,this.au,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.zf(this.Y),this.button.init(bo("survey-none-of-the-above-button"),g.V(Q.answer,hc),z));this.show()};g.L(I2,ap);I2.prototype.init=function(Z,Q,z){ap.prototype.init.call(this,Z,Q,z);Z=!1;Q.text&&(Q=g.SN(Q.text),Z=!g.IE(Q));Z||g.CO(Error("No submit text was present in the renderer."))}; I2.prototype.onClick=function(Z){this.publish("l");ap.prototype.onClick.call(this,Z)};g.L(Jp,Yf); Jp.prototype.init=function(Z,Q,z){Yf.prototype.init.call(this,Z,Q,z);if(Z=Q.skipOrPreviewRenderer)g.V(Z,rA)?(Z=g.V(Z,rA),z=new T5(this.api,this.layoutId,this.interactionLoggingClientData,this.au,this.W,!0),z.zf(this.skipOrPreview),z.init(bo("skip-button"),Z,this.macros),g.W(this,z),this.Y=z):g.V(Z,Pi)&&(Z=g.V(Z,Pi),z=new Qd(this.api,this.layoutId,this.interactionLoggingClientData,this.au,this.W,!1),z.zf(this.skipOrPreview),z.init(bo("ad-preview"),Z,this.macros),z5(z),g.W(this,z),this.Y=z);this.Y== null&&g.Rm(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(Q)));Q.submitButton&&(Z=Q.submitButton,g.V(Z,g.RU)&&(Z=g.V(Z,g.RU),z=new I2(this.api,this.layoutId,this.interactionLoggingClientData,this.au),z.zf(this.submitButton),z.init(bo("survey-submit"),Z,this.macros),g.W(this,z),this.j=z));Z=this.api.V("disable_ad_preview_for_instream_ads");if(z=Q.adBadgeRenderer){z=g.V(z,n$0);var K=new h1(this.api,this.layoutId,this.interactionLoggingClientData,this.au,!0, Z,!0);K.zf(this.S);K.init(bo("simple-ad-badge"),z,this.macros);this.adBadge=K.element;g.W(this,K)}if(z=Q.adDurationRemaining)z=g.V(z,SQ0),K=new J1(this.api,this.layoutId,this.interactionLoggingClientData,this.au,this.W,void 0,Z),K.zf(this.S),K.init(bo("ad-duration-remaining"),z,this.macros),g.W(this,K);(Q=Q.adInfoRenderer)&&g.V(Q,aU)&&(z=new tB(this.api,this.layoutId,this.interactionLoggingClientData,this.au,this.element,void 0,Z),g.W(this,z),Z&&this.adBadge!==void 0?this.S.insertBefore(z.element, this.adBadge.nextSibling):z.zf(this.S),z.init(bo("ad-info-hover-text-button"),g.V(Q,aU),this.macros));this.show()}; Jp.prototype.clear=function(){this.hide()};g.L(yl,Yf);yl.prototype.init=function(Z,Q,z){Yf.prototype.init.call(this,Z,Q,z);uId(this)}; yl.prototype.show=function(){this.S=Date.now();Yf.prototype.show.call(this)}; yl.prototype.tb=function(){};g.L(xgG,yl);g.A=xgG.prototype;g.A.init=function(Z,Q,z){var K=this;yl.prototype.init.call(this,Z,Q,z);Q.questionText&&Bif(this,Q.questionText);Q.answers&&Q.answers.forEach(function(b,q){g.V(b,Tj)&&WAn(K,g.V(b,Tj),z,q)}); this.K=new Set(this.j.map(function(b){return b.Y.Y})); (Z=Q.noneOfTheAbove)&&(Z=g.V(Z,TX0))&&tA0(this,Z,z);Q.surveyAdQuestionCommon&&kWD(this,Q.surveyAdQuestionCommon);Q.submitEndpoints&&(this.submitEndpoints=Q.submitEndpoints);this.Z(this.element,"change",this.onChange);this.show()}; g.A.tb=function(){FAG(this,!1);this.W.j.subscribe("l",this.Ckg,this)}; g.A.onChange=function(Z){Z.target===this.noneOfTheAbove.button.Y?e3f(this):this.K.has(Z.target)&&(this.noneOfTheAbove.button.toggleButton(!1),FAG(this,!0))}; g.A.Ckg=function(){var Z=[],Q=this.j.reduce(function(b,q,r){var D=q.toggledLoggingParams;q.Y&&q.Y.isToggled()&&D&&(b.push(D),Z.push(r));return b},[]).join("&"),z=this.submitEndpoints.map(function(b){if(!b.loggingUrls)return b; b=g.Pa(b);b.loggingUrls=b.loggingUrls.map(function(q){q.baseUrl&&(q.baseUrl=WK(q.baseUrl,Q));return q}); return b}); if(z){z=g.n(z);for(var K=z.next();!K.done;K=z.next())K=K.value,this.layoutId?xH(this.au,K,this.layoutId,this.macros):g.Rm(Error("Missing layoutId for multi_select_question."))}this.api.N().V("supports_multi_step_on_desktop")&&this.SJ(Z)}; g.A.clear=function(){this.api.N().V("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.L(dS,yl);dS.prototype.init=function(Z,Q,z){var K=this;yl.prototype.init.call(this,Z,Q,z);Q.questionText&&Bif(this,Q.questionText);Q.answers&&Q.answers.forEach(function(b,q){g.V(b,Tj)&&WAn(K,g.V(b,Tj),z,q)}); Q.surveyAdQuestionCommon?kWD(this,Q.surveyAdQuestionCommon):g.Rm(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(Q)));this.show()}; dS.prototype.clear=function(){this.api.N().V("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.L(NL,Yf);NL.prototype.init=function(Z,Q,z){var K=this;Yf.prototype.init.call(this,Z,Q,z);if(this.api.N().V("supports_multi_step_on_desktop")){var b;this.conditioningRules=(b=Q.conditioningRules)!=null?b:[];var q;this.j=(q=Q.questions)!=null?q:[];var r;((r=Q.questions)==null?0:r.length)&&sDn(this,0)}else(Q.questions||[]).forEach(function(D){g.V(D,GE)?Emu(K,g.V(D,GE),z):g.V(D,Nb)&&lvG(K,g.V(D,Nb),z)}); this.show()}; NL.prototype.clear=function(){this.api.N().V("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; NL.prototype.W=function(Z){var Q=this;if(this.api.N().V("supports_multi_step_on_desktop")){var z;if((z=this.conditioningRules)==null?0:z.length){var K;if(Z.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(b){return b.questionIndex===Q.Y})==null)g.Rm(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(function(b){if(b.questionIndex===Q.Y)switch(b.condition){case "CONDITION_ALL_OF":var q;if((q=b.answerIndices)==null?0:q.every(function(D){return Z.includes(D)}))K=b.nextQuestionIndex; break;case "CONDITION_ANY_OF":var r;if((r=b.answerIndices)==null?0:r.some(function(D){return Z.includes(D)}))K=b.nextQuestionIndex; break;default:g.Rm(Error("Expected specified condition in survey conditioning rules."))}}),K!=null)sDn(this,K); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.Rm(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.L(GP,Yf); GP.prototype.init=function(Z,Q,z){var K=this;Yf.prototype.init.call(this,Z,Q,z);Z=Q.timeoutSeconds||0;if(typeof Z!=="number"||Z<0)g.Rm(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+Z));else if(Q.timeoutCommands)if(Q.text)if(Q.ctaButton&&g.V(Q.ctaButton,g.RU))if(Q.brandImage)if(Q.backgroundImage&&g.V(Q.backgroundImage,C5)&&g.V(Q.backgroundImage,C5).landscape){this.layoutId||g.Rm(Error("Missing layoutId for survey interstitial."));ZT4(this.interstitial,g.V(Q.backgroundImage, C5).landscape);ZT4(this.logoImage,Q.brandImage);g.qT(this.text,g.SN(Q.text));var b=["ytp-ad-survey-interstitial-action-button"];b.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new ap(this.api,this.layoutId,this.interactionLoggingClientData,this.au,b);g.W(this,this.actionButton);this.actionButton.zf(this.j);this.actionButton.init(bo("button"),g.V(Q.ctaButton,g.RU),z);this.actionButton.show();this.Y=new nF(this.api,Z*1E3);this.Y.subscribe("g",function(){K.transition.hide()}); g.W(this,this.Y);this.Z(this.element,"click",function(q){var r=q.target===K.interstitial;q=K.actionButton.element.contains(q.target);if(r||q)if(K.transition.hide(),r)K.api.onAdUxClicked(K.componentType,K.layoutId)}); this.transition.show(100)}else g.Rm(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.Rm(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.Rm(Error("SurveyTextInterstitialRenderer has no button."));else g.Rm(Error("SurveyTextInterstitialRenderer has no text."));else g.Rm(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; GP.prototype.clear=function(){this.hide()}; GP.prototype.show=function(){QD9(!0);Yf.prototype.show.call(this)}; GP.prototype.hide=function(){QD9(!1);Yf.prototype.hide.call(this)};g.L(iy,wV);g.A=iy.prototype; g.A.init=function(Z,Q){wV.prototype.init.call(this,Z,Q,{});if(Q.durationMilliseconds){if(Q.durationMilliseconds<0){g.Rm(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+Q.durationMilliseconds));return}this.j=Q.durationMilliseconds}else this.j=this.Y.m6();var z;if((z=Q.previewText)==null||!z.text||g.IE(Q.previewText.text))g.Rm(Error("No text is returned for AdPreview."));else{this.K=Q.previewText;Q.previewText.isTemplated||g.qT(this.S,Q.previewText.text);var K; if(((K=this.api.getVideoData(1))==null?0:K.uw)&&Q.previewImage){var b,q;(Z=((q=dx(((b=Q.previewImage)==null?void 0:b.sources)||[],52,!1))==null?void 0:q.url)||"")&&Z.length?(this.previewImage=new g.gV({B:"img",D:"ytp-preview-ad__image",C:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",Z),g.W(this,this.previewImage),this.previewImage.zf(this.element)):g.Rm(Error("Failed to get imageUrl in AdPreview."))}else this.S.classList.add("ytp-preview-ad__text--padding--wide")}}; g.A.clear=function(){this.hide()}; g.A.hide=function(){lo(this);wV.prototype.hide.call(this)}; g.A.show=function(){E2(this);wV.prototype.show.call(this)}; g.A.P2=function(){this.hide()}; g.A.HP=function(){if(this.Y){var Z=this.Y.getProgressState();if(Z!=null&&Z.current)if(Z=1E3*Z.current,Z>=this.j)this.transition.hide();else{var Q;if((Q=this.K)==null?0:Q.isTemplated)if(Q=Math.max(0,Math.ceil((this.j-Z)/1E3)),Q!==this.W){var z,K;(Z=(z=this.K)==null?void 0:(K=z.text)==null?void 0:K.replace("{TIME_REMAINING}",String(Q)))&&g.qT(this.S,Z);this.W=Q}}}};g.L(a2,Yf); a2.prototype.init=function(Z,Q){Yf.prototype.init.call(this,Z,Q,{});var z,K;if((Z=((K=dx(((z=Q.image)==null?void 0:z.sources)||[],z6G(Q),!0))==null?void 0:K.url)||"")&&Z.length){z=this.Ru("ytp-ad-avatar");z.src=Z;var b,q;if(K=(b=Q.interaction)==null?void 0:(q=b.accessibility)==null?void 0:q.label)z.alt=K;switch(Q.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(Q.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.Rm(Error("Failed to get imageUrl in AdAvatar."))}; a2.prototype.clear=function(){this.hide()}; a2.prototype.onClick=function(Z){Yf.prototype.onClick.call(this,Z)};g.L(Pm,Yf); Pm.prototype.init=function(Z,Q){Yf.prototype.init.call(this,Z,Q,{});var z;Z=(z=Q.label)==null?void 0:z.content;if((z=Z!=null&&!g.IE(Z))||Q.iconImage){z&&(this.buttonText=new g.gV({B:"span",D:"ytp-ad-button-vm__text",W7:Z}),g.W(this,this.buttonText),this.buttonText.zf(this.element));var K,b,q=((K=Q.interaction)==null?0:(b=K.accessibility)==null?0:b.label)||z?Z:"";q&&xl(this.element,q+" This link opens in new tab");kl(this.element);if(Q.iconImage){K=void 0;if(Q.iconImage){a:{b=Q.iconImage;if(b.sources)for(b= g.n(b.sources),Z=b.next();!Z.done;Z=b.next())if(Z=Z.value,q=void 0,(q=Z.clientResource)==null?0:q.imageName){b=Z;break a}b=void 0}if(b){var r;K={iconType:(r=b.clientResource)==null?void 0:r.imageName}}}r=io(K,!1,this.j);r!=null&&(this.buttonIcon=new g.gV({B:"span",D:"ytp-ad-button-vm__icon",G:[r]}),g.W(this,this.buttonIcon),Q.iconLeading?(zB(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):z?(this.buttonIcon.zf(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): (this.buttonIcon.zf(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(Q.style){case "AD_BUTTON_STYLE_TRANSPARENT":this.element.classList.add("ytp-ad-button-vm--style-transparent");break;case "AD_BUTTON_STYLE_FILLED_WHITE":this.element.classList.add("ytp-ad-button-vm--style-filled-white");break;case "AD_BUTTON_STYLE_FILLED":this.element.classList.add(this.Y?"ytp-ad-button-vm--style-filled-dark":"ytp-ad-button-vm--style-filled");break;default:this.element.classList.add("ytp-ad-button-vm--style-filled")}switch(Q.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.CO(Error("AdButton does not have label or an icon."))}; Pm.prototype.clear=function(){this.hide()}; Pm.prototype.onClick=function(Z){Yf.prototype.onClick.call(this,Z)};g.L(Kkn,wV);g.A=Kkn.prototype; g.A.init=function(Z,Q){wV.prototype.init.call(this,Z,Q,{});this.api.N().V("enable_larger_flyout_cta_on_desktop")&&(this.element.classList.add("ytp-ad-avatar-lockup-card--large"),this.Ru("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"),zB(this.Ru("ytp-ad-avatar-lockup-card__avatar_and_text_container"),this.adAvatar.element,0));if(Z=g.V(Q.avatar,Bm)){var z=Q.headline;if(z){var K=Q.description;if(K){var b=g.V(Q.button,Vl);b?(this.adAvatar.init(bo("ad-avatar"),Z),this.headline.init(bo("ad-simple-attributed-string"),new dB(z)),this.description.init(bo("ad-simple-attributed-string"),new dB(K)),z.content&&z.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"), this.adButton.init(bo("ad-button"),b),this.startMilliseconds=Q.startMs||0,this.api.IG()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.SX.bind(this)),E2(this)):g.Rm(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.Rm(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.Rm(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.Rm(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; g.A.HP=function(){if(this.Y){var Z=this.Y.getProgressState();Z&&Z.current&&1E3*Z.current>=this.startMilliseconds&&(lo(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.A.P2=function(){this.clear()}; g.A.onClick=function(Z){this.api.pauseVideo();wV.prototype.onClick.call(this,Z)}; g.A.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.SX.bind(this))}; g.A.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();wV.prototype.show.call(this)}; g.A.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();wV.prototype.hide.call(this)}; g.A.SX=function(Z){Z==="hidden"?this.show():this.hide()};g.L(R2,Yf);g.A=R2.prototype; g.A.init=function(Z,Q){Yf.prototype.init.call(this,Z,Q,{});if(!Q.label||g.IE(Q.label))g.Rm(Error("No label is returned for SkipAdButton."));else if(g.qT(this.W,Q.label),Z=io({iconType:"SKIP_NEXT_NEW"}),Z==null)g.Rm(Error("Unable to retrieve icon for SkipAdButton"));else if(this.S=new g.gV({B:"span",D:"ytp-skip-ad-button__icon",G:[Z]}),g.W(this,this.S),this.S.zf(this.element),this.api.N().experiments.XI("enable_skip_to_next_messaging")&&(Q=g.E3(Q.targetId)))this.j=!0,this.element.setAttribute("data-tooltip-target-id",Q), this.element.setAttribute("data-tooltip-target-fixed","")}; g.A.onClick=function(Z){Z&&Z.preventDefault();var Q,z;EkX(Z,{contentCpn:(z=(Q=this.api.getVideoData(1))==null?void 0:Q.clientPlaybackNonce)!=null?z:""})===0?this.api.hG("onAbnormalityDetected"):(Yf.prototype.onClick.call(this,Z),this.api.hG("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; g.A.clear=function(){this.Y.reset();this.hide()}; g.A.hide=function(){Yf.prototype.hide.call(this)}; g.A.show=function(){this.Y.start();Yf.prototype.show.call(this);this.j&&this.api.N().experiments.XI("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.L(bTG,wV);g.A=bTG.prototype; g.A.init=function(Z,Q){wV.prototype.init.call(this,Z,Q,{});Z=g.V(Q.preskipState,izw);if(this.W||!this.api.N().experiments.XI("disable_ad_preview_for_instream_ads")){if(!Z){g.Rm(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}var z;(z=this.j)==null||z.init(bo("preview-ad"),Z);(z=this.j)!=null&&(z.transition.show(100),z.show())}(z=g.V(Q.skippableState,PUo))?(Q.skipOffsetMilliseconds!=null?this.skipOffsetMilliseconds=Q.skipOffsetMilliseconds:(g.CO(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds= 5E3),this.S.init(bo("skip-button"),z),this.show()):g.Rm(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; g.A.show=function(){E2(this);wV.prototype.show.call(this)}; g.A.hide=function(){!this.isSkippable&&this.j?this.j.hide():this.S&&this.S.hide();lo(this);wV.prototype.hide.call(this)}; g.A.clear=function(){var Z;(Z=this.j)==null||Z.clear();this.S&&this.S.clear();lo(this);wV.prototype.hide.call(this)}; g.A.P2=function(){this.hide()}; g.A.HP=function(){if(1E3*this.Y.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var Z;(Z=this.j)!=null&&Z.transition.hide();(Z=this.S)!=null&&(Z.transition.show(),Z.show())}};g.L(C6,Yf); C6.prototype.init=function(Z,Q){Yf.prototype.init.call(this,Z,Q,{});if(Q.label){var z;((z=Q.label)==null?0:z.content)&&!g.IE(Q.label.content)&&(this.linkText=new g.gV({B:"span",D:"ytp-visit-advertiser-link__text",W7:Q.label.content}),g.W(this,this.linkText),this.linkText.zf(this.element));var K,b;if((K=Q.interaction)==null?0:(b=K.accessibility)==null?0:b.label)xl(this.element,Q.interaction.accessibility.label+" This link opens in new tab");else{var q;((q=Q.label)==null?0:q.content)&&!g.IE(Q.label.content)&&xl(this.element, Q.label.content+" This link opens in new tab")}kl(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.Rm(Error("No label found in VisitAdvertiserLink."))}; C6.prototype.onClick=function(Z){Yf.prototype.onClick.call(this,Z);this.api.onAdUxClicked(this.componentType,this.layoutId)}; C6.prototype.clear=function(){this.hide()};g.L(p6,Yf); p6.prototype.init=function(Z,Q,z,K){Yf.prototype.init.call(this,Z,Q,{});if(Q.skipOrPreview){z=Q.skipOrPreview;Z=g.V(z,R0Y);z=g.V(z,izw);var b,q=this.api.N().V("clean_player_style_fix_on_web")&&((b=this.api.getVideoData())==null?void 0:b.isDaiEnabled());Z?(this.zU=new bTG(this.api,this.layoutId,this.interactionLoggingClientData,this.au,this.j),g.W(this,this.zU),this.zU.zf(this.U),this.zU.init(bo("skip-ad"),Z)):!z||this.api.N().experiments.XI("disable_ad_preview_for_instream_ads")&&!q||(this.W=new iy(this.api, this.layoutId,this.interactionLoggingClientData,this.au,this.j,1),g.W(this,this.W),this.W.zf(this.U),this.W.init(bo("ad-preview"),z),b=this.W,b.transition.show(100),b.show());if(b=g.V(Q.skipOrPreview,R0Y))var r=b.skipOffsetMilliseconds}Q.playerAdCard&&(b=g.V(Q.playerAdCard,aHR))&&(this.playerAdCard=new Kkn(this.api,this.layoutId,this.interactionLoggingClientData,this.au,this.j),g.W(this,this.playerAdCard),this.playerAdCard.zf(this.KN),this.playerAdCard.init(bo("ad-avatar-lockup-card"),b));b=this.api.N().V("disable_ad_duration_remaining_for_instream_video_ads")|| Q.adPodIndex!==void 0;Q.adBadgeRenderer&&((Z=g.V(Q.adBadgeRenderer,Wm))?(this.S=new G5(this.api,this.layoutId,this.interactionLoggingClientData,this.au,b),g.W(this,this.S),this.S.zf(this.Y),this.S.init(bo("ad-badge"),Z)):g.Rm(Error("AdBadgeViewModel is not found in player overlay layout.")));Q.adPodIndex&&(Z=g.V(Q.adPodIndex,yoz))&&(this.adPodIndex=new ic(this.api,this.layoutId,this.interactionLoggingClientData,this.au,g.V(Q.skipOrPreview,R0Y)===void 0),g.W(this,this.adPodIndex),this.adPodIndex.zf(this.Y), this.adPodIndex.init(bo("ad-pod-index"),Z));Q.adInfoRenderer&&(Z=g.V(Q.adInfoRenderer,aU))&&(this.adInfoButton=new tB(this.api,this.layoutId,this.interactionLoggingClientData,this.au,this.element,void 0,b),g.W(this,this.adInfoButton),this.api.N().V("enable_ad_pod_index_autohide")&&this.S!==void 0?this.Y.insertBefore(this.adInfoButton.element,this.S.element.nextSibling):this.adInfoButton.zf(this.Y),this.adInfoButton.init(bo("ad-info-hover-text-button"),Z,this.macros));var D;Z=this.api.N().V("clean_player_style_fix_on_web")&& ((D=this.api.getVideoData())==null?void 0:D.isDaiEnabled());Q.adDurationRemaining&&(!b||Z)&&(D=g.V(Q.adDurationRemaining,SQ0))&&(this.adDurationRemaining=new J1(this.api,this.layoutId,this.interactionLoggingClientData,this.au,this.j,K.videoAdDurationSeconds,b),g.W(this,this.adDurationRemaining),b&&this.adPodIndex!==void 0?this.Y.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adInfoButton!==void 0?b?this.Y.insertBefore(this.adDurationRemaining.element,this.adInfoButton.element.nextSibling): this.Y.insertBefore(this.adDurationRemaining.element,this.adInfoButton.element):this.adDurationRemaining.zf(this.Y),this.adDurationRemaining.init(bo("ad-duration-remaining"),D,this.macros),b&&this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));Q.visitAdvertiserLink&&(K=g.V(Q.visitAdvertiserLink,pnU))&&(this.visitAdvertiserLink=new C6(this.api,this.layoutId,this.interactionLoggingClientData,this.au),g.W(this,this.visitAdvertiserLink),this.visitAdvertiserLink.zf(this.Y), this.visitAdvertiserLink.init(bo("visit-advertiser-link"),K));Q.adDisclosureBanner&&(Q=g.V(Q.adDisclosureBanner,JoH))&&(this.adDisclosureBanner=new as(this.api,this.layoutId,this.interactionLoggingClientData,this.au),g.W(this,this.adDisclosureBanner),this.adDisclosureBanner.zf(this.SJ),this.adDisclosureBanner.init(bo("ad-disclosure-banner"),Q));this.api.N().V("show_preskip_progress_bar_for_skippable_ads")&&(this.K=new CF(this.api,this.j,r,b),g.W(this,this.K),g.NZ(this.api,this.K.element,4));this.show()}; p6.prototype.clear=function(){this.hide()};g.L(qY9,Yf);g.A=qY9.prototype; g.A.init=function(Z,Q){Yf.prototype.init.call(this,Z,Q,{});if(Q!=null&&Q.title)if(Z=Q.title)if(this.headline.init(bo("ad-simple-attributed-string"),new dB(Z)),Z=g.V(Q.moreInfoButton,Vl)){if(this.moreInfoButton.init(bo("ad-button"),Z),Q.descriptions)Q.descriptions.length>0&&(Z=Q.descriptions[0])&&(this.Y=new Nj(this.api,this.layoutId,this.interactionLoggingClientData,this.au),g.W(this,this.Y),this.Y.zf(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.Y.init(bo("ad-simple-attributed-string"), new dB(Z))),Q.descriptions.length>1&&(Q=Q.descriptions[1])&&(this.j=new Nj(this.api,this.layoutId,this.interactionLoggingClientData,this.au),g.W(this,this.j),this.j.zf(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.j.init(bo("ad-simple-attributed-string"),new dB(Q)))}else g.Rm(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.Rm(Error("No headline found in AdGridCardText."));else g.Rm(Error("No headline found in AdGridCardText."))}; g.A.onClick=function(Z){Yf.prototype.onClick.call(this,Z);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.A.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var Z;(Z=this.Y)==null||Z.clear();var Q;(Q=this.j)==null||Q.clear()}; g.A.hide=function(){this.headline.hide();this.moreInfoButton.hide();var Z;(Z=this.Y)==null||Z.hide();var Q;(Q=this.j)==null||Q.hide();Yf.prototype.hide.call(this)}; g.A.show=function(){Yf.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var Z;(Z=this.Y)==null||Z.show();var Q;(Q=this.j)==null||Q.show()};g.L(Hm,Yf);Hm.prototype.init=function(Z,Q){Yf.prototype.init.call(this,Z,Q,{});if(Q!=null&&Q.gridCards)if(Q.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.Rm(Error("Only single column style is currently supported in AdGridCardCollection."));else for(Z=g.n(Q.gridCards),Q=Z.next();!Q.done;Q=Z.next()){if(Q=g.V(Q.value,GJY)){var z=new qY9(this.api,this.layoutId,this.interactionLoggingClientData,this.au);g.W(this,z);z.zf(this.element);z.init(bo("ad-grid-card-text"),Q);this.Y.push(z)}}else g.Rm(Error("No grid cards found in AdGridCardCollection."))}; Hm.prototype.show=function(){for(var Z=g.n(this.Y),Q=Z.next();!Q.done;Q=Z.next())Q.value.show();Yf.prototype.show.call(this)}; Hm.prototype.clear=function(){this.hide();for(var Z=g.n(this.Y),Q=Z.next();!Q.done;Q=Z.next())Q.value.clear()}; Hm.prototype.hide=function(){for(var Z=g.n(this.Y),Q=Z.next();!Q.done;Q=Z.next())Q.value.hide();Yf.prototype.hide.call(this)};g.L(ML,wV);g.A=ML.prototype;g.A.init=function(Z,Q,z,K,b){b=b===void 0?0:b;wV.prototype.init.call(this,Z,Q,z,K);this.playerProgressOffsetMs=b;E2(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.Oy.bind(this));this.api.addEventListener("resize",this.w4.bind(this));this.api.IG()?(this.j=!0,this.api.Kj(!0),this.show()):this.hide()}; g.A.HP=function(){if(this.Y){var Z=this.Y.getProgressState();Z&&Z.current&&!this.j&&1E3*Z.current>=this.playerProgressOffsetMs&&(this.j=!0,this.api.Kj(!0),this.show())}}; g.A.P2=function(){this.j&&this.api.Kj(!1);this.hide()}; g.A.clear=function(){this.api.Kj(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.Oy.bind(this));this.api.removeEventListener("resize",this.w4.bind(this));lo(this);this.hide()}; g.A.hide=function(){rDG(!1);wV.prototype.hide.call(this)}; g.A.show=function(){rDG(!0);wV.prototype.show.call(this)};g.L(AD0,ML);g.A=AD0.prototype; g.A.init=function(Z,Q,z,K){if(Q!=null&&Q.adGridCardCollection)if(Q!=null&&Q.adButton){var b=Number(Q.playerProgressOffsetMs||"0");isNaN(b)?ML.prototype.init.call(this,Z,Q,z,K):ML.prototype.init.call(this,Z,Q,z,K,b);Z=Q.headline;z=g.V(Q.adAvatar,Bm);Z&&z?(this.headline=new Nj(this.api,this.layoutId,this.interactionLoggingClientData,this.au),g.W(this,this.headline),this.headline.zf(this.Ru("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(bo("ad-simple-attributed-string"),new dB(Z)), this.adAvatar=new a2(this.api,this.layoutId,this.interactionLoggingClientData,this.au),g.W(this,this.adAvatar),this.adAvatar.zf(this.Ru("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(bo("ad-avatar"),z)):this.W.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");Z=g.V(Q.adGridCardCollection,NXm);this.adGridCardCollection.init(bo("ad-grid-card-collection"),Z);Q=g.V(Q.adButton,Vl);this.adButton.init(bo("ad-button"),Q); this.hide()}else g.Rm(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.Rm(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; g.A.onClick=function(Z){(this.adButton&&g.bG(this.adButton.element,Z.target)||this.adAvatar&&g.bG(this.adAvatar.element,Z.target))&&this.api.pauseVideo();ML.prototype.onClick.call(this,Z);this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.A.w4=function(){}; g.A.clear=function(){this.hide();var Z;(Z=this.headline)==null||Z.clear();var Q;(Q=this.adAvatar)==null||Q.clear();this.adGridCardCollection.clear();this.adButton.clear();ML.prototype.clear.call(this)}; g.A.show=function(){var Z;(Z=this.headline)==null||Z.show();var Q;(Q=this.adAvatar)==null||Q.show();this.adGridCardCollection.show();this.adButton.show();ML.prototype.show.call(this)}; g.A.hide=function(){var Z;(Z=this.headline)==null||Z.hide();var Q;(Q=this.adAvatar)==null||Q.hide();this.adGridCardCollection.hide();this.adButton.hide();ML.prototype.hide.call(this)}; g.A.Oy=function(Z){Z==="transitioning"?(this.S.classList.remove("ytp-ad-underlay-clickable"),this.show()):Z==="visible"?this.S.classList.add("ytp-ad-underlay-clickable"):Z==="hidden"&&(this.hide(),this.S.classList.remove("ytp-ad-underlay-clickable"))};g.L(UR,Yf); UR.prototype.init=function(Z,Q){Yf.prototype.init.call(this,Z,Q,{});if(Q.attributes===void 0)g.Rm(Error("No attributes found in AdDetailsLineViewModel."));else if(Q.style===void 0)g.Rm(Error("No style found in AdDetailsLineViewModel."));else{Z=g.n(Q.attributes);for(var z=Z.next();!z.done;z=Z.next())if(z=z.value,z.text!==void 0){z=z.text;var K=Q.style,b=new Nj(this.api,this.layoutId,this.interactionLoggingClientData,this.au);g.W(this,b);b.zf(this.element);a:switch(K){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":K="ytp-ad-details-line__text--style-responsive"; break a;default:K="ytp-ad-details-line__text--style-standard"}b.element.classList.add(K);b.init(bo("ad-simple-attributed-string"),new dB(z));this.Y.push(b)}this.show()}}; UR.prototype.show=function(){this.Y.forEach(function(Z){Z.show()}); Yf.prototype.show.call(this)}; UR.prototype.clear=function(){this.hide()}; UR.prototype.hide=function(){this.Y.forEach(function(Z){Z.hide()}); Yf.prototype.hide.call(this)};g.L(OR,Yf);OR.prototype.init=function(Z,Q){Yf.prototype.init.call(this,Z,Q,{});var z,K;(Z=((K=dx(((z=Q.image)==null?void 0:z.sources)||[]))==null?void 0:K.url)||"")&&Z.length?(z=this.Ru("ytp-image-background-image"),g.Dw(z,"backgroundImage","url("+Z+")"),Q.blurLevel!==void 0&&g.Dw(z,"filter","blur("+Q.blurLevel+"px)"),Q.gradient!==void 0&&(Q=new g.x({B:"div",nN:["ytp-image-background--gradient-vertical"]}),g.W(this,Q),Q.zf(this.element)),this.show()):g.Rm(Error("Failed to get imageUrl in ImageBackground."))}; OR.prototype.clear=function(){this.hide()};g.L(jDW,wV);g.A=jDW.prototype;g.A.init=function(Z,Q){wV.prototype.init.call(this,Z,Q,{});g.Dw(this.S,"stroke-dasharray","0 "+this.j);this.show()}; g.A.clear=function(){this.hide()}; g.A.hide=function(){lo(this);wV.prototype.hide.call(this)}; g.A.show=function(){E2(this);wV.prototype.show.call(this)}; g.A.P2=function(){this.hide()}; g.A.HP=function(){if(this.Y){var Z=this.Y.getProgressState();Z!=null&&Z.current!=null&&g.Dw(this.S,"stroke-dasharray",Z.current/Z.seekableEnd*this.j+" "+this.j)}};g.L(o2,Yf); o2.prototype.init=function(Z,Q){Yf.prototype.init.call(this,Z,Q,{});if(vuM(Q)){this.adAvatar=new a2(this.api,this.layoutId,this.interactionLoggingClientData,this.au);g.W(this,this.adAvatar);this.adAvatar.zf(this.Ru("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(bo("ad-avatar"),g.V(Q.adAvatar,Bm));this.headline=new Nj(this.api,this.layoutId,this.interactionLoggingClientData,this.au);g.W(this,this.headline);this.headline.zf(this.Ru("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(bo("ad-simple-attributed-string"),new dB(Q.headline));if(Z=g.V(Q.adDetailsLine,IHo))this.detailsLine=new UR(this.api,this.layoutId,this.interactionLoggingClientData,this.au),g.W(this,this.detailsLine),this.detailsLine.zf(this.Ru("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(bo("ad-details-line"),Z);this.adButton=new Pm(this.api,this.layoutId,this.interactionLoggingClientData,this.au,!0);g.W(this,this.adButton); this.adButton.zf(this.Ru("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(bo("ad-button"),g.V(Q.adButton,Vl));Z=this.api.V("disable_ad_preview_for_instream_ads");this.adBadge=new G5(this.api,this.layoutId,this.interactionLoggingClientData,this.au,Z);g.W(this,this.adBadge);this.adBadge.zf(this.W);this.adBadge.init(bo("ad-badge"),g.V(Q.adBadge,Wm));this.adInfoButton=new tB(this.api,this.layoutId,this.interactionLoggingClientData,this.au,this.element, void 0,Z);g.W(this,this.adInfoButton);this.adInfoButton.zf(this.W);this.adInfoButton.init(bo("ad-info-hover-text-button"),g.V(Q.adInfoRenderer,aU),this.macros);if(Z=g.V(Q.skipAdButton,PUo))this.skipAdButton=new R2(this.api,this.layoutId,this.interactionLoggingClientData,this.au),g.W(this,this.skipAdButton),this.skipAdButton.zf(this.element),this.skipAdButton.init(bo("skip-button"),Z);this.j=new cM(Q.durationMilliseconds);g.W(this,this.j);if(Z=g.V(Q.countdownViewModel,CU$))this.Y=new jDW(this.api, this.layoutId,this.interactionLoggingClientData,this.au,this.j),g.W(this,this.Y),this.Y.zf(this.Ru("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.Y.init(bo("timed-pie-countdown"),Z);if(Q=g.V(Q.imageBackground,dY0))this.imageBackground=new OR(this.api,this.layoutId,this.interactionLoggingClientData,this.au),g.W(this,this.imageBackground),this.imageBackground.zf(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"), this.imageBackground.init(bo("image-background"),Q);this.show();this.element.focus()}}; o2.prototype.clear=function(){g.ib(this.S);this.hide()}; o2.prototype.show=function(){DRG(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();Yf.prototype.show.call(this)}; o2.prototype.hide=function(){DRG(!1);this.adAvatar&&this.adAvatar.hide();this.headline&&this.headline.hide();this.adButton&&this.adButton.hide();this.detailsLine&&this.detailsLine.hide();this.adBadge&&this.adBadge.hide();this.adInfoButton&&this.adInfoButton.hide();this.skipAdButton&&this.skipAdButton.hide();this.Y&&this.Y.hide();this.imageBackground&&this.imageBackground.hide();Yf.prototype.hide.call(this)};var j5Y="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.L(kc,WI); kc.prototype.W=function(Z){var Q=Z.id,z=Z.content,K=z.componentType;if(!j5Y.includes(K))switch(Z.actionType){case 1:Z=this.api;var b=this.au,q=z.layoutId,r=z.interactionLoggingClientData,D=z instanceof eX?z.u$:!1,v=z instanceof eX||z instanceof LF?z.Oi:!1;r=r===void 0?{}:r;D=D===void 0?!1:D;v=v===void 0?!1:v;switch(K){case "invideo-overlay":Z=new Ni9(Z,q,r,b);break;case "player-overlay":Z=new pF(Z,q,r,b,new Zs(Z),v);break;case "player-overlay-layout":Z=new p6(Z,q,r,b,new Zs(Z));break;case "survey":Z= new NL(Z,q,r,b);break;case "ad-action-interstitial":Z=new mgd(Z,q,r,b,D,v);break;case "video-interstitial-buttoned-centered":Z=new o2(Z,q,r,b);break;case "survey-interstitial":Z=new GP(Z,q,r,b);break;case "ad-message":Z=new H2f(Z,q,r,b,new Zs(Z,1));break;case "player-underlay":Z=new UgW(Z,q,r,b);break;case "display-underlay-text-grid-cards":Z=new AD0(Z,q,r,b,new Zs(Z));break;default:Z=null}if(!Z){g.CO(Error("No UI component returned from ComponentFactory for type: "+K));break}g.Jl(this.j,Q)?g.CO(Error("Ad UI component already registered: "+ Q)):this.j[Q]=Z;Z.bind(z);z instanceof tH?this.S?this.S.append(Z.A2):g.CO(Error("Underlay view was not created but UnderlayRenderer was created")):this.L.append(Z.A2);break;case 2:Q=gu0(this,Z);if(Q==null)break;Q.bind(z);break;case 3:z=gu0(this,Z),z!=null&&(g.jR(z),g.Jl(this.j,Q)?(z=this.j,Q in z&&delete z[Q]):g.CO(Error("Ad UI component does not exist: "+Q)))}}; kc.prototype.gr=function(){g.DH(Object.values(this.j));this.j={};WI.prototype.gr.call(this)};g.L(YYf,g.Jv);g.A=YYf.prototype;g.A.create=function(){try{XYd(this),this.load(),this.created=!0,XYd(this)}catch(Z){vM(Z instanceof Error?Z:String(Z))}}; g.A.load=function(){try{Ten(this)}finally{eV(L6(this.Y).NN)&&this.player.o3("ad",1)}}; g.A.destroy=function(){var Z=this.player.getVideoData(1);this.Y.Y.wL.S9(Z&&Z.clientPlaybackNonce||"");this.unload();this.created=!1}; g.A.unload=function(){g.Jv.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(Q){vM(Q instanceof Error?Q:String(Q))}if(this.j!=null){var Z=this.j;this.j=null;Z.dispose()}this.S.reset()}; g.A.bP=function(){return!1}; g.A.getAdState=function(){return-1}; g.A.getOptions=function(){return Object.values(ArJ)}; g.A.Pv=function(Z,Q){Q=Q===void 0?{}:Q;switch(Z){case "replaceUrlMacros":return Z=Q,Z.url?(Q=C0u(this.player),Object.assign(Q,Z.WBp),Z=g.Pk(Z.url,Q)):Z=null,Z;case "onAboutThisAdPopupClosed":this.YA(Q);break;case "executeCommand":Z=Q;Z.command&&Z.layoutId&&this.executeCommand(Z);break;default:return null}}; g.A.CJ=function(Z){var Q;return!((Q=this.Y.Y.jx)==null||!Q.get().CJ(Z))}; g.A.YA=function(Z){Z.isMuted&&jmd(L6(this.Y).p6,L6(this.Y).V0,Z.layoutId);this.EX&&this.EX.YA()}; g.A.executeCommand=function(Z){L6(this.Y).au.executeCommand(Z.command,Z.layoutId)};g.BG("yt.player.Application.create",g.fC.create);g.BG("yt.player.Application.createAlternate",g.fC.create);UWd(G1(),rrn);var DqE=g.WG("ytcsi.tick");DqE&&DqE("pe");g.Iq("ad",YYf);g.L(g.tp,g.O);g.tp.prototype.start=function(Z,Q,z){this.config={from:Z,uN:Q,duration:z,startTime:(0,g.Nm)()};this.next()}; g.tp.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.tp.prototype.next=function(){if(this.config){var Z=this.config,Q=Z.from,z=Z.uN,K=Z.duration;Z=Z.startTime;var b=(0,g.Nm)()-Z;Z=this.Y;K=uzu(Z,b/K);if(K==0)Z=Z.T;else if(K==1)Z=Z.X;else{b=gg(Z.T,Z.L,K);var q=gg(Z.L,Z.K,K);Z=gg(Z.K,Z.X,K);b=gg(b,q,K);q=gg(q,Z,K);Z=gg(b,q,K)}Z=g.Al(Z,0,1);this.callback(Q+(z-Q)*Z);Z<1&&this.delay.start()}};g.L(g.FQ,g.x);g.A=g.FQ.prototype;g.A.hasSuggestions=function(){return this.suggestionData.length>0}; g.A.xu=function(){this.j&&this.scrollTo(this.scrollPosition-this.containerWidth)}; g.A.show=function(){g.x.prototype.show.call(this);mRf(this)}; g.A.TK=function(){this.j&&this.scrollTo(this.scrollPosition+this.containerWidth)}; g.A.gL=function(){this.pL(this.api.U$().getPlayerSize())}; g.A.pL=function(Z){var Q=this.api.isEmbedsShortsMode()?.5625:16/9,z=this.api.Us();Z=Z.width-(z?112:58);z=Math.ceil(Z/(z?320:192));var K=(Z-z*8)/z;Q=Math.floor(K/Q);for(var b=g.n(this.Y),q=b.next();!q.done;q=b.next())q=q.value.Ru("ytp-suggestion-image"),q.style.width=K+"px",q.style.height=Q+"px";this.suggestions.element.style.height=Q+"px";this.W=K;this.X=Q;this.containerWidth=Z;this.columns=z;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.ev(this)}; g.A.onVideoDataChange=function(){var Z=this.api.N(),Q=this.api.getVideoData();this.K=Q.BN?!1:Z.W;this.suggestionData=Q.suggestions?g.jr(Q.suggestions,function(z){return z&&!z.playlistId}):[]; JD4(this);Q.BN?this.title.update({title:g.fH("More videos from $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:Q.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"More shorts":"More videos"})}; g.A.scrollTo=function(Z){Z=g.Al(Z,this.containerWidth-this.suggestionData.length*(this.W+8),0);this.T.start(this.scrollPosition,Z,1E3);this.scrollPosition=Z;g.ev(this);mRf(this)};})(_yt_player); ";s:5:"error";s:0:"";s:4:"info";O:13:"Curl\CurlInfo":1:{s:7:"