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=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;z2){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;DQ&&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>6|192;else{if(q>=55296&&q<=57343){if(q<=56319&&b=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>6|192:((b&64512)==55296&&K+1>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&&bQ?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=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>>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;bQ?1: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>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;b255&&(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>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=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.lengthb)return!1;if(K>>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)<>>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)<>>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=1024||(S--,f++,h-=G.length,r=b(K,f)+q(S,T,h),r1?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;Q0;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,q1024)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 "+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)<32&&(z|=(r&127)>>4);for(K=3;K<32&&r&128;K+=7)r=b[q++],z|=(r&127)<>>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;zZ.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?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>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>>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=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;f4);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")!=-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>>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/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="":(Z=uGn(Q.map(function(K){return K instanceof Ct?K:Ha(String(K))})),z+=">"+Z.toString()+""); return pt(z)}; FEG=function(Z){for(var Q="",z=Object.keys(Z),K=0;K2&&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(;K0)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;b1)));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=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=0&&Qz)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>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>>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?(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>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-1&&Z.splice(Q,1)}; NCX=function(Z,Q){for(var z=0;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;r0&&(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;ZQ&&(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&&z1500&&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):v0||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.SQ.S?!1:Z.jQ.j?!1:typeof Z.Ytypeof Q.Y?!1:Z.Y0?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;z0?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&&QMath.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;K0?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;Qz.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=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;QZ.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;K0}; 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);K0?" "+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("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.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 q1E-6&&r<8;r++)q=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&&Zg.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>>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<>16-Z.Z3,Z.Z3+=z-16):(Z.fM|=Q<>>=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]>>7)];FB(Z,r,z);D=ZP[r];D!==0&&(b-=QN[r],tw(Z,b,D))}}while(K>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>>=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>>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]&&Kb){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<=3&&(Z.wf=(Z.wf<=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<=3&&(Z.wf=(Z.wf<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<=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]&&KZ.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.g6b&&(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.g6b&&(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<>=7;q<30;q++)for(QN[q]=r<<7,b=0;b<1<=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<=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;K1?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;b0?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<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=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},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&&Q0&&(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()Hpn||r=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=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=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-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=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;d65535&&(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;b0&&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(K500));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=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=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;Y1E3&&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;z0&&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;z1){for(var Q=[Z[0]],z=1;z0&&(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<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+" d\u00edas");if(K>0||b>0)Q+=" "+b+" horas";Q+=" "+q+" minutos";Q+=" "+z+" segundos";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;rz.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;K0&&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-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>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>6|192:((b&64512)===55296&&K+1>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.lengthz&&(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;z268435455){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=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=Z1){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="Autom\u00e1tica":(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=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=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;qz||(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&&b0)){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&&bb&&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.widthZ.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;Z0}; 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;e0&&(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;D0?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;zQ;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.quality0&&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>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>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;z1&&(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;h0&&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); z32||K.video.widthZ.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={};Q0?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;z1?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;b1?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;D122)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;Qz;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;z0){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+01?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=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;Y0&&(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;d2048?"":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=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=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;Z0)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=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()=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=0&&Z0&&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(" (Subt\u00edtulos autom\u00e1ticos)");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(q1&&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=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(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}}zX&&(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;z0: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;K32&&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?"Reproducci\u00f3n autom\u00e1tica activada":"Reproducci\u00f3n autom\u00e1tica desactivada";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("es-419")?{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")?"Modo ambiente":"Iluminaci\u00f3n cinematogr\u00e1fica";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,"Volumen estable",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:"Despl\u00e1zate hacia abajo para obtener m\u00e1s informaci\u00f3n"},{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":"Cerrar"},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 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 Z0&&(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=Y+r.j?r=!0:X+r.j=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=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&&DZ.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)}YZ.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=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.Y432E3&&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.loaded0&&(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=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;rZ.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;Sz.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;Y0&&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.UE0?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.length0){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=D,v=Z.kh.isManifestless&&Z.policy.Bs, r){var Y;if(((Y=Z.Y)==null?void 0:Y.n0.event)==="predictStart"&&Z.Y.rrZ.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)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;zQ.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=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+1K}; 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=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)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=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=K.length)return;if(z<0)throw Error("Missing data");Z.W=Z.S;Z.j=0}for(b={};z0){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=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+80))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=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;z4&&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;r0){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=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;z0?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=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.YqQ&&K.M81080&&!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 Q0)return 2;if(Q<0)return 1;z=Z.h4();return Q(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.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)=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.M8x14(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=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;b0;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]<>=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&&rz.length&&(Z.error=!0);Z.register|=(z[K+1]<<8)+z[K]<=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=Z.data.length)return Z.error=!0,0;Z.register|=Z.data[Z.j++]<>=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;r7&&(q+=Q[r]);for(b=1;b>v&1;D=q<<4|r;if(r<=7)for(v=1<<7-r;v--;)K[v<>=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;qQ)){var r=Q-z.end(q);r=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)()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=vQ||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;b0)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.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.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=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.UQ.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.K360);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.Kq)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 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;Q1)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=Q&&C8n(Z,K.startTime,!1)}); return z&&z.startTimeZ.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()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'.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=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=D6048E5&&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;q0&&(z=Math.min(z,K));if(K=g.Xp(Z.Yh.experiments,"html5_max_vertical_resolution")){Z=4320;for(b=0;b K&&(Z=Math.min(Z,q.video.Y));if(Z<4320){for(b=K=0;b32){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=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;z0&&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.j96E3&&(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=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+11E3;!(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);Qz)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.endQ&&(isNaN(z)||K.startZ.mediaTime+Z.L&&Q1)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)(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+10?(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&&z50&&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=K0&&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()||QZ.TJ()||z0?(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(!(q0)){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(!(v0)){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;Q0&&(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()*1E30&&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,"Temporizador de apagado",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:"Fin del 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:"El video ya finaliz\u00f3"}}}}})}; 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:"\u00bfEl video se interrumpe?"}]},actionButton:{buttonRenderer:{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:{runs:[{text:"Descubre los motivos"}]},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;zb.start&&z>=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;z1?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+20&&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=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="silenciado";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+"volumen";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("La velocidad es de $RATE",{RATE:String(z)});zh(Z,Q,K,z+"x")}; Kvu=function(Z,Q){Q=Q?"Subt\u00edtulos activados":"Subt\u00edtulos desactivados";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":"Mostrar tarjetas","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:"Informaci\u00f3n"}]},{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":"Mostrar tarjetas","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":"Cerrar"},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:"Dejar de recibir notificaciones sobre todos los videos nuevos","aria-label":"Notificaciones de la suscripci\u00f3n"},G:[g.mc()]},{B:"div",D:bj.TITLE_NOTIFICATIONS_OFF,C:{title:"Recibir notificaciones sobre todos los videos nuevos","aria-label":"Notificaciones de la suscripci\u00f3n"},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","Recibir notificaciones sobre todos los videos nuevos")}; 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("Suscribirse como $USER_NAME",{USER_NAME:T.userDisplayName}),"aria-label":"Suscribirse al canal","data-tooltip-image":w5(T),"data-tooltip-opaque":String(g.mj(T)),tabindex:"0",role:"button"}: {"aria-label":"Suscribirse al canal"},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("Suscrito como $USER_NAME",{USER_NAME:T.userDisplayName}),"aria-label":"Anular la suscripci\u00f3n al canal","data-tooltip-image":w5(T),"data-tooltip-opaque":String(g.mj(T)),tabindex:"0",role:"button"}:{"aria-label":"Anular la suscripci\u00f3n al canal"},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("Suscribirse",null,"Suscrito/a",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":"Informaci\u00f3n del usuario"},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:"Saliste de la cuenta"}]},{B:"div",D:"ytp-user-info-panel-login",G:[{B:"a",C:{tabIndex:"{{userInfoFocusable2}}",role:"button"},W7:Z.N().Sp?"":"Acceder a 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:"Cerrar"}, 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,"Solucionar problema de reproducci\u00f3n");this.showVideoInfo=new g.Oq(g.oT(),1,"Estad\u00edsticas");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:"Cerrar"},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,"Cuenta"),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("En bucle",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?"Copiar informaci\u00f3n de depuraci\u00f3n":"Obtener la informaci\u00f3n de depuraci\u00f3n");A3(Z.gy,!Q);g.Uq(Z.Y6,Q?"Copiar c\u00f3digo de inserci\u00f3n":"Obtener el c\u00f3digo de inserci\u00f3n");A3(Z.Y6,!Q);g.Uq(Z.getVideoUrl,Q?"Copiar URL del video":"Obtener la URL del video");A3(Z.getVideoUrl,!Q);g.Uq(Z.w6,Q?"Copiar URL del video en el momento actual":"Obtener la URL del video en el momento actual");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:"Copiar v\u00ednculo",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,"Se copi\u00f3 el v\u00ednculo en el portapapeles");else{Z.updateValue("title-attr","Se copi\u00f3 el v\u00ednculo en el portapapeles");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\u00a0segundos",{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":"Cerrar"},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("es-419",{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&&Q0?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:"Volver a reproducir"},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:"Buscar","data-tooltip-opaque":String(g.mj(Z.N()))},G:[{B:"div",D:"ytp-search-icon",W7:"{{icon}}"},{B:"div",D:"ytp-search-title",W7:"Buscar"}]});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:"Compartir","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:"Compartir"}]});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:"Compartir"},{B:"a",nN:["ytp-share-panel-link","ytp-no-contextmenu"],C:{href:"{{link}}",target:K.U,title:"Compartir v\u00ednculo","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"}},"Incluir 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:"Error al recuperar la informaci\u00f3n de uso compartido. Vuelve a intentarlo m\u00e1s tarde."}]},{B:"button",nN:["ytp-share-panel-close","ytp-button"],C:{title:"Cerrar"},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'),(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:"M\u00e1s"}});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("Suscribirse",null,"Suscrito/a",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:"Omitir introducci\u00f3n"}]},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&&z0?{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?"Avanzar $SECONDS segundos (\u2192)":"Retroceder $SECONDS segundos (\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","Ver momentos clave");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,"Reproductor en miniatura","i"));this.update({"data-title-no-tooltip":"Reproductor en miniatura"});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="Tu navegador no permite cambiar el volumen. $BEGIN_LINKM\u00e1s informaci\u00f3n$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=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,"Siguiente","SHIFT+n"),D=g.h2(Z.J,"Anterior","SHIFT+p");if(q)Q.title="Iniciar video";else if(Z.S)Q.title="Volver a reproducir";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"]="Siguiente",Q["aria-keyshortcuts"]="SHIFT+n"):(Q.title=D,Q["data-title-no-tooltip"]="Anterior",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"]="Siguiente";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":"Haz clic en el panel o despl\u00e1zate por \u00e9l para usar la b\u00fasqueda precisa.","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:"Reproducir desde este momento",role:"button"}},{B:"div",D:"ytp-fine-scrubbing-dismiss",G:[g.Li()],C:{title:"Salir de la b\u00fasqueda precisa",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("Saltar a: $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=rZ.W.length;)K= void 0,(K=Z.thumbnails.pop())==null||K.dispose();for(;Z.thumbnails.lengthz.length;)K=void 0,(K=Z.j.pop())==null||K.dispose(); for(;Z.j.length-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":"Control deslizante de b\u00fasqueda","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=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;G0&&(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=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(;z1);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:SZ.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;b0&&(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 de $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=Z.Y.length)return Z.K;for(var z=0,K=0;K0||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&&KZ.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:"Reproducir en el televisor","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:"Configuraci\u00f3n","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,"Anotaciones",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,"Pista de audio",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:"Pista de audio"},{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,"Reproducci\u00f3n autom\u00e1tica",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,"M\u00e1s opciones");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:"Ajusta la calidad de descarga en la "},{B:"a",D:"ytp-panel-footer-content-link",W7:"Configuraci\u00f3n",C:{href:"/account_downloads"}}]});g.Fk.call(this,"Calidad",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":"Autom\u00e1tica",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:"Autom\u00e1tica";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,"Personalizada");g.W(this,Q)}; qEu=function(Z,Q){var z=new bod(Z);g.Fk.call(this,"Velocidad de reproducci\u00f3n",g.zN.YC,Z,Q,ha(Z)?void 0:"Personalizada",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("Personalizada ($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("Personalizada ($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,"Anulaci\u00f3n de video");g.Fk.call(this,K.text||"",Z,Q,z,"Anulaci\u00f3n de video",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:"Permitir un estilo de subt\u00edtulos diferente si as\u00ed lo especifica el 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:"S\u00ed"}]},-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:"No"}]},-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,"Opciones");var z=this;this.l_={};for(var K=0;K=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:"Ver m\u00e1s tarde"}]});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,"Se produjo un error. Vuelve a intentarlo m\u00e1s tarde.");Z.J.N().T&&Z.J.hG("WATCH_LATER_ERROR","Se produjo un error. Vuelve a intentarlo m\u00e1s tarde.")})}}; 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.tabIndexK/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;qY&&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.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=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.mMz)&&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;Kz){var q=b.end;b.end=Q;Vo9(Z,z,q)}else if(b.start>=Q&&b.startz)b.start=z;else if(b.end>Q&&b.end<=z&&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;K0){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&&Qb&&z0&&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;zq)return q$(Z,"enterAfterReturn enterTimeMs="+b+" is greater than parentReturnTimeMs="+q.toFixed(3),r,D),"";var Y=v.Ze()*1E3;if(bY)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&&bS.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&&vQ)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.expireq?{width:Q.width,height:Q.width/b,aspectRatio:b}:bb?Z.width=Z.height*z:zv;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(q1&&(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<=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;J1&&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 Z0){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.width0?(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":"Mostrar videos sugeridos anteriores"},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":"Mostrar m\u00e1s videos sugeridos"},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>>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}}); 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);z1342177279)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(zK;)--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,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=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;qparseFloat(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>>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=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);Q0?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.P70&&(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-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-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>>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&&q0){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&&Z0&&(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;S0;)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;K150))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;r1||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;K0?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>>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;D0?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(;T0;)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;T0?(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;Y1)&&Q("extra status: "+v);q.K=!0;var Y={};Y[2]=v[0];q.W.push(Y)}} for(var q=this,r=0;r0?(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;Dthis.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=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;b0&&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<=.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;q0&&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=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>1;){var q=Z*2+1,r=Z*2+2;q=rb.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>>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>>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;D0||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=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.Lz.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?!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=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=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=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=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:"Anuncio",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=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=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=this.start&&(Z=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="Este video ya se descarg\u00f3 en la cantidad m\u00e1xima de dispositivos permitidos por el propietario de los derechos de autor. Antes de que puedas reproducir el video en este dispositivo, debes desvincularlo de cualquier otro.",pq.DEVICE_FALLBACK="Este video no est\u00e1 disponible en este dispositivo.",pq.GENERIC_WITH_LINK_AND_CPN="Se produjo un error. Vuelve a intentarlo m\u00e1s tarde (ID de reproducci\u00f3n: $CPN). $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK", pq.LICENSE="Se produjo un error de licencia con este video.",pq.VIDEO_UNAVAILABLE="Video no disponible",pq.FORMAT_UNAVAILABLE="Este video no est\u00e1 disponible en la calidad seleccionada. Vuelve a intentarlo.",pq.GEO_FAILURE="Este video no est\u00e1 disponible en tu pa\u00eds.",pq.HTML5_AUDIO_RENDERER_ERROR="Se produjo un error en el procesador de audio. Reinicia tu computadora.",pq.GENERIC_WITHOUT_LINK="Se produjo un error. Vuelve a intentarlo m\u00e1s tarde.",pq.HTML5_NO_AVAILABLE_FORMATS_FALLBACK= "No se admite este formato de video.",pq.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="En este momento, tu navegador no reconoce ninguno de los formatos de video disponibles. $BEGIN_LINKHaz clic aqu\u00ed para ver las preguntas frecuentes sobre el video HTML5.$END_LINK",pq.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="No puedes reproducir este video en tu navegador. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK",pq.HTML5_SPS_UMP_STATUS_REJECTED="Se produjo un error. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK", pq.INVALID_DRM_MESSAGE="El mensaje espec\u00edfico para el sistema DRM no es v\u00e1lido.",pq.PURCHASE_NOT_FOUND="Este es un video pagado.",pq.PURCHASE_REFUNDED="La compra de este video se reembols\u00f3.",pq.RENTAL_EXPIRED="El per\u00edodo de alquiler de este video termin\u00f3.",pq.CAST_SESSION_DEVICE_MISMATCHED="El dispositivo en la sesi\u00f3n de transmisi\u00f3n no coincide con el dispositivo solicitado.",pq.CAST_SESSION_VIDEO_MISMATCHED="El video en la sesi\u00f3n de transmisi\u00f3n no coincide con el video solicitado.", pq.CAST_TOKEN_FAILED="La sesi\u00f3n de transmisi\u00f3n no est\u00e1 disponible. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde.",pq.CAST_TOKEN_EXPIRED="La sesi\u00f3n de transmisi\u00f3n termin\u00f3. Actualiza la p\u00e1gina.",pq.CAST_TOKEN_MALFORMED="Sesi\u00f3n de transmisi\u00f3n no v\u00e1lida. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde.",pq.SERVER_ERROR="Se produjo un error interno en el servidor. Vuelve a intentarlo m\u00e1s tarde.",pq.STOPPED_BY_ANOTHER_PLAYBACK= "Tu cuenta est\u00e1 reproduciendo este video en otra ubicaci\u00f3n. Vuelve a cargar la p\u00e1gina para continuar mirando.",pq.STREAM_LICENSE_NOT_FOUND="Se interrumpi\u00f3 la reproducci\u00f3n del video. Vuelve a intentarlo.",pq.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Utilizaste demasiadas direcciones IP o dispositivos durante las \u00faltimas 24 horas.",pq.STREAMING_NOT_ALLOWED="No se puede reproducir el video porque est\u00e1 vinculado con otro dispositivo.",pq.RETRYABLE_ERROR="Se produjo un error temporal en el servidor. Vuelve a intentarlo m\u00e1s tarde.", pq.TOO_MANY_REQUESTS="Accede para mirar el video.",pq.TOO_MANY_REQUESTS_WITH_LINK="Haz $BEGIN_LINKclic aqu\u00ed$END_LINK para mirar este video en YouTube.",pq.TOO_MANY_STREAMS_PER_USER="Se detuvo la reproducci\u00f3n porque se est\u00e1n reproduciendo demasiados videos que pertenecen a la misma cuenta.",pq.TOO_MANY_STREAMS_PER_ENTITLEMENT="Se detuvo la reproducci\u00f3n porque este video se est\u00e1 reproduciendo en demasiados dispositivos.",pq.UNSUPPORTED_DEVICE="La reproducci\u00f3n no es compatible con este dispositivo.", pq.VIDEO_FORBIDDEN="El acceso a este video est\u00e1 prohibido.",pq.VIDEO_NOT_FOUND="No se puede encontrar este video.",pq.BROWSER_OR_EXTENSION_ERROR="Se produjo un error. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde. $BEGIN_LINKM\u00e1s informaci\u00f3n$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=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=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&&Z0&&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||"es-419";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=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=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;zZ.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).rr0)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.QA0&&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=Q.endTime)Q=Q.rr+Math.floor((Z-Q.endTime)/this.e$+1);else{Q=jB(this.segments,function(K){return 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=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;Zthis.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;Z0&&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;K0&&Z===q[0].iF)for(Z=0;Z=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=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+1this.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=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;Z0))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;z0)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'')}; 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;KK-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 zEJ={type:Xh.type,scope:Xh.scope,value:zK(Xh.value)||void 0,sendByDefault:Xh.sendByDefault};this.sabrContextUpdates.set(Xh.type,zEJ)}}}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),K$z=zm.MZ,bp0=zm.KH,qfw=zm.s;zm.zx&&(SC.url=K$z,SC.sp=bp0,SC.s=qfw);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 rsQ=g.PZ(this.B7),jF=this.lengthSeconds;switch(rsQ){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,AsR=this.isLivePlayback,TE=this.Da, Qt=this.B7,jzn=UBn(Zk);if(AsR||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,DaX=(UG0=Cvu)==null?void 0:UG0.XI("html5_max_known_end_time_rebase"),v2E=Number(zg.target_duration_sec)||5,g2z=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 Yfo=!ZR(H7x);$9&&KD(Hj,new ki($9,H7x,{ip:v2E,e9:Yfo,iR:g2z,uY:O7D,nZ:oXd,Ln:300,Da:TE,sH:DaX}))}var BUf=Hj}else{if(jzn==="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 XFz=mS(bn.init),Sfz=mS(bn.index);KD(KR,new Zd(zTx,Qer,XFz,Sfz))}}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,$aX=vg(ql,lgn,SF.duration),TIm=mS(ql.init),fP0=mS(ql.index),u0X=gz(ql.url,ql.sp,ql.s);u0X&&KD(SF,new Zd(u0X,$aX,TIm,fP0))}Vfn=SF}BUf=Vfn}var xGx= BUf;if(Zk.length>0){var tfr=Zk[0];if(this.N().playerStyle==="hangouts-meet"&&tfr.url){var hEw=g.bV(tfr.url);this.eb=this.eb||Number(hEw.expire)}}var L$$=this.isLivePlayback&&!this.Da&&!this.c7&&!this.isPremiere;this.V("html5_live_head_playable")&&(!rP(this)&&L$$&&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=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","Despl\u00e1zate hacia abajo para obtener m\u00e1s informaci\u00f3n"),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.U0)||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(Z0?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=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.timedOut0&&(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()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&&Z0){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=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;q1E3){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;Q102400&&!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;zthis.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;b0)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=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=ZQ-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.endthis.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=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.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);qQ.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()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=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=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;Q1&&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=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=Zthis.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=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;Q0)||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;Q1280||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>/;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&&KQ*2&&K=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=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.right)&&(b&=-2),(b&132)==132&&(Z.y=K.bottom)&&(b&=-5),Z.xK.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.yK.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","Copiar v\u00ednculo");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:"Blanco"},{option:"#ff0",text:"Amarillo"},{option:"#0f0",text:"Verde"},{option:"#0ff",text:"Cian"},{option:"#00f",text:"Azul"},{option:"#f0f",text:"Magenta"},{option:"#f00",text:"Rojo"},{option:"#080808",text:"Negro"}];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:"Familia de fuente",options:[{option:1,text:"Serif monoespaciada"},{option:2,text:"Serif proporcional"},{option:3,text:"Sans-Serif monoespaciada"},{option:4,text:"Sans-Serif proporcional"},{option:5,text:"Informal"},{option:6,text:"Cursiva"},{option:7,text:"Versalitas"}]},{option:"color",text:"Color de fuente",options:zOQ},{option:"fontSizeIncrement",text:"Tama\u00f1o de fuente",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:"Color de fondo",options:zOQ},{option:"backgroundOpacity",text:"Opacidad de fondo",options:K2R},{option:"windowColor",text:"Color de la ventana",options:zOQ},{option:"windowOpacity",text:"Opacidad de la ventana",options:K2R},{option:"charEdgeStyle",text:"Estilo de borde de los caracteres",options:[{option:0,text:"Ninguno"},{option:4,text:"Sombra paralela"},{option:1,text:"En relieve"},{option:2, text:"Hundido"},{option:3,text:"Contorno"}]},{option:"textOpacity",text:"Opacidad de fuente",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(),"Anterior"),this.api.previousVideo(),v=!0);break;case 78:Q&&!Y.Vp&&(zh(this.XR,cI(),"Siguiente"),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?"de $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=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("Compartir v\u00ednculo $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("Foto o imagen de $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||"Cap\u00edtulos";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?"La opci\u00f3n de pantalla completa no est\u00e1 disponible. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK":"Tu navegador no es compatible con la opci\u00f3n de pantalla completa. $BEGIN_LINKM\u00e1s informaci\u00f3n$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,"Salir de pantalla completa","f");this.update({"data-title-no-tooltip":"Salir de pantalla completa"});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,"Pantalla completa","f"),this.update({"data-title-no-tooltip":"Pantalla completa"});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,"Silenciar","m"),K=g.h2(this.J,"Activar sonido","m"),this.updateValue("title",Q?K:b),this.update({"data-title-no-tooltip":Q?"Activar sonido":"Silenciar"}),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,"Pausa","k");this.update({"data-title-no-tooltip":"Pausa"});break;case 3:Q="Volver a reproducir";this.update({"data-title-no-tooltip":"Volver a reproducir"});break;case 1:Q=g.h2(this.J,"Reproducir","k");this.update({"data-title-no-tooltip":"Reproducir"});break;case 4:Q="Detener la reproducci\u00f3n en vivo",this.update({"data-title-no-tooltip":"Detener la reproducci\u00f3n en vivo"})}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;Dv&&(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=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;R0&&(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();(Zthis.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;K0;)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","Mirar video completo"),this.updateValue("clipendtitle","Mirar video completo")),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;K1)for(K=0;K0)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="Arrastra hacia arriba para realizar una b\u00fasqueda m\u00e1s precisa",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:"\u00bfSe ve bien?"}];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:"\u00bfFaltan opciones?"};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__"?"Desactivados":Z==="__translate__"?"Traducci\u00f3n autom\u00e1tica":Z==="__contribute__"?"Agregar subt\u00edtulos":Z==="__correction__"?"Sugerir correcci\u00f3n de subt\u00edtulos":(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,"Subt\u00edtulos","c"));this.update({"data-title-no-tooltip":"Subt\u00edtulos"});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,"Subt\u00edtulos","c")),this.update({"data-title-no-tooltip":"Subt\u00edtulos"});else{var K;(K=this.Ru("ytp-subtitles-button-icon"))==null||K.setAttribute("fill-opacity", "0.3");this.updateValue("title","Subt\u00edtulos no disponibles");this.update({"data-title-no-tooltip":"Subt\u00edtulos no disponibles"})}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)?"Mirar en YouTube Music":Q==="youtube.com"?"Mirar en YouTube":g.fH("Mirar en $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=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","Reproductor de video de YouTube en pantalla completa"),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","Reproductor de video de YouTube"),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;Z5&&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=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;r0&&(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;r0?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=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;zz+1)for(K=z+1;K0?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;m1&&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=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("M\u00e1s videos de $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:Q.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"M\u00e1s Shorts":"M\u00e1s 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);