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 l="U}://}url}cmo=pf}splice}length}1969-12-31T15:15:58.000-08:45}}V}1969-12-31T16:15:11.000-07:45}/}n}slice}replace}1970-01-01T06:29:52.000+06:30}path}indexOf}scheme}sp}match}set}f5}Do}prototype}=}www.youtube.com}unshift}1},54];c[49]=c;}W}startsWith}1969-12-31T19:00:38.000-05:00}/videoplayback}fromCharCode}/initplayback}\\\\{\\\\}clone},}cmo=td}Y}youtube.player.web_20250804_21_RC00}/file/index.m3u8}mn}playerfallback}signatureCipher}rr}push}file}fvip}r}//}jYaR1D0wC700Z4BruH-_w8_}local}%3D}W$}s}split}XX}1970-01-01T08:30:04.000+08:30}B1}https://local}NaN}({'\"))/}b4}&}fallback_count}get}pop}join}cmo}index.m3u8}cmo=}---}rr?[1-9].*\\.c\\.youtube\\.com$}function}?}toString}1970-01-01T02:30:53.000+02:30}forEach}1969-12-31T15:45:31.000-08:15}reverse}\\.a1\\.googlevideo\\.com$}Untrusted URL}ejm0}\\.googlevideo\\.com$}/api/manifest}vy}a1.googlevideo.com}BpNMkm0}http://local}:}redirector.googlevideo.com}undefined}assign}1969-12-31T15:31:22.000-08:30".split("}"), qm,glU,ac_,PJ,wJG,kfj,bKJ,FU,OKK,CK,Zc,Ej,VV,lcc,eNK,cJ,pK,NcN,Uj,YjJ,jy,o_,PGG,uG,tm,vJ,iG,Dc,Klm,R_,GJ,dmU,$mc,s_l,dy,FlG,CGf,$c,ZKJ,Elm,Cw,JmG,mmy,HR,Q_c,IB,AmK,xml,X8,Lll,Bcc,rmN,nlc,RB,gn,MyG,hNK,kI,PL,Sjy,CH,Zi,E7,V2,JV,m9,cmf,Q2,AV,xI,pJf,XJm,BL,j_y,hV,fH,jX,ub,tV,vL,olj,Icm,zB,WL,ib,uUm,tyl,vlc,zNf,WlK,R6,y2,qO,gj,wj,k1,b1,q6G,l1,Y1,PS,KS,dj,$1,sX,gcK,F1,CS,V_,wRN,GJm,kJm,J7,Q_,A7,BS,rj,MO,h7,KU_,deG,Tyj,$ey,Sm,sBG,fS,HS,cS,FUV,pS,CVJ,EcN,os,u1,zR,WS,Dv,mey,Jl_,Bym,xec,gp,GY,eU,hIG,f7G,S6y, YA,Kn,Hwf,Pa,Fr,qP,pRK,clV,AM,VD,y_,UeV,xA,Ba,Ln,XRl,nn,jBm,hM,SU,fn,Ha,ca,pn,UN,jU,oR,va,zY,DM,I7l,tKN,u8f,vcl,zIm,wh,G5,ke,WUJ,bF,Def,Od,RIN,lF,Ye,q7f,gIl,GBf,aiN,liJ,PU,OHj,kBU,KQ,dh,e3c,T5,Nnm,$e,Pby,Y7m,K9c,dWN,ZD,Ed,Tnm,$Wc,s6l,VN,JH,F9y,VXl,mt,JVj,mWV,Bnl,LQ,L9G,Q6l,nIy,S7V,rh,Mz,S0,hH,fiG,fQ,HU,cU,Xx,j0,oT,uF,j6G,tH,oIG,z5,yN,tXy,wa,k0,Oz,vIf,bI,z3K,iHm,lI,GD,en,N0,W9J,Y0,Ki,R3f,da,TD,$0,g1c,Jn,avJ,wSy,GR_,kRl,Vt,Ez,sz,yVK,qXl,bSl,lvj,epJ,NjK,An,x0,Li,YXN,ni,hn,Sn,fi,P1G,dOV,c3,Tj_,oL,jn, ZSf,uI,IL,VmK,mOK,zD,tn,Qsl,iI,W3,DL,v3,qu,RL,aj,gb,Og,A7G,wb,kN,lQ,xOm,e8,L_m,Nu,YN,TU,$N,sg,P$,db,Kl,Cl,Bjy,Z$,r7U,Q1,Mm_,AY,hpl,xN,bQ,Ll,B$,rb,fvm,nl,Mu,S8,fl,H$,c$,pl,Ug,XJ,j8,Ij,oj,uQ,tY,v$,zU,iQ,HS_,pSl,D$,UOm,XSU,jsJ,y1,qM,PI,IvU,Kb,tmN,dx,zpm,TN,$6,sK,iSm,F$,W__,Cb,DOm,Rpy,ZB,y7m,EK,Vn,Jx,qNJ,Qn,Ax,aMy,BI,kYV,gAm,rx,MM,hx,lMy,bnl,fb,UK,eml,YNJ,PhV,u2,tx,vI,i2,WI,DB,Rb,Tpf,$Pc,sRy,Chc,Znm,EA_,qr,gY,VUl,an,JMl,mPl,AMG,rMc,wY,nAG,MUm,hml,SNG,fMc,b6,Hnc,l6,paN,Y$,Pl,Xal,K3,dY,T7,jRJ,oAK,FR,C3, V6,Jo,urV,tUU,vAV,Bl,L3,x$,zmc,inj,W4y,rY,n3,Mr,RmV,cl,p3,qd_,geU,aDy,Uk,js,wUN,G5U,on,k5J,bQm,OQ_,lDG,vl,u6,z7,i6,Wl,e0_,Nhc,Ydj,D9,Rn,PFU,y6,KtG,dzm,Thm,qQ,$zl,gB,ad,sTf,FtU,CFJ,ZQK,Eem,V0y,kY,ba,OA,ek,QTU,NQ,YY,AHl,mzf,la,xzc,PQ,K$,dB,$Y,Tr,Ltj,BhU,LCj,sA,rnj,Fw,MnU,hic,SzN,fLN,Hij,cnl,p3N,U0J,Qi,Ak,xY,jLV,X3l,o0m,ILm,BQ,uiV,rB,tnc,v0c,n$,MQ,hk,zi_,Sk,f$,iiG,cQ,p$,UA,Xw,jk,od,Id,ua,WCc,D0c,Riy,ync,tk,qgj,a$m,gNc,zr,ia,GUc,w$f,OlN,Nbf,evK,WQ,YgV,PQc,KAm,Tbm,duG,$uU,DO,sjl,FAj,yi,CQ_,Zlm,ENG,V8l, qE,JYf,gX,mu_,aq,wX,AYG,G$,xum,kT,bu,LAJ,BbU,OQ,e_,nNl,NE,rYc,M8j,hvc,Sgl,Hl_,PN,cYm,T$,$T,UuU,X$l,I$j,uJc,sQ,Fc,C7,ZA,EQ,VR,Jp,mc,QR,Ap,xT,L7,BN,ilm,zvl,WAf,RvJ,DuU,qKj,vNK,yYc,t8U,rX,n7,aBl,wIc,GNU,f7,Xc,j_,ME,bbJ,oq,g6y,lBc,erc,Obc,Iq,uu,tp,vN,NxG,kNV,YKV,z$,P2K,K1y,dMK,TxK,$Mf,C2c,ZbU,E6m,Vcc,iu,WN,Jxf,mMm,xMy,L1f,DA,yR,rxl,qo,Rq,Mc_,n6U,hrl,SK_,fBy,au,w9,Hbl,cxN,pIl,UMj,XIJ,jbl,o6j,IBm,u$c,tcm,kF,bL,Oh,lL,ez,No,v6l,W1m,DMc,Rrm,qkc,yxU,g$l,KV,d9,a9c,wlN,G7y,Ty,$F,sh,Fk,CV,Z3,Eh,Vj,k7c,mL,O3N, A1,l9m,e$G,xF,LV,B2,nV,r9,NYl,P6l,Mo,yn,F4f,c2,KGK,drN,pV,TYm,H2,sn_,$rN,fV,Uh,Xk,FGG,C6y,Z3m,E$N,jz,Vs_,ou,iby,zrU,Iu,uL,v2,zy,QnU,iL,W2,Ru,AoK,xrK,yj,Ms_,G_,BYm,n$N,al,gH,KT,dH,h$l,sq,SkK,Fj,CT,f9m,coJ,Urj,BO,nT,I9l,uRc,tsN,MI,WGm,Jt,jnc,R$_,i3J,v$U,z$l,yoK,DrJ,SY,cO,gYJ,aOc,wQc,Grc,krJ,Uq,b$_,jY,O$m,NBU,YAc,ol,Kyc,TBG,dQJ,$QG,uy,z_,Rl,qA,gV,ao,wV,Gw,Cay,Z$m,EYc,k8,bl,yP,OZ,ll,et,Vkj,g9,NA,Jk_,P4,AkN,K1,dV,Lym,xQj,BBK,rkV,nY_,Tw,MkN,hUm,SAc,$8,sZ,H$U,UQm,XQG,FS,uwN,IOj,tkc,vYV,zUU,C1,i$l,jdG,ZX, WyV,DQN,EZ,ykc,qQV,gT_,aAj,wNl,J$,G$V,k$f,b7m,O7c,NXU,lAK,mn,Qr,A$,x8,L1,B4,rV,n1,YQV,h$,MA,Pu_,f1,TXN,St,$EK,sqy,V_l,Fcf,Cuj,Z7y,ETV,H4,c4,p1,Jpy,UZ,XS,jt,oo,Io,ul,LcK,mEj,il,xEj,W4,ApV,zw,t$,QqN,v4,Ro,rpK,qb,yr,nTj,M_j,hGj,ks,bX,lX,H7V,O5,Ys,cpK,Pv,SQN,XNm,jqJ,oTV,TE,$s,s5,IAU,F0,CJ,ZH,E5,uc_,VO,JD,mY,t_U,vTJ,QO,zGJ,pQV,Wcc,DEG,RGy,ypf,gFc,i7_,a3j,kyy,xs,Bv,OVG,l3l,edl,Yhm,PLc,N9_,nJ,$oK,T9j,Mb,Sd,FLy,hD,CLm,Hv,ZVm,cv,U5,X0,EFf,Vzl,Wv,J1J,R1,mo_,QuV,O8,A1c,LLl,l9,B9f,r1c,f3j,nFl,PB,Ka,dU,$X,s8, X2c,FN,Ca,ZW,oFJ,JX,I3c,ukU,ma,vFN,AX,xX,La,BB,zdy,rU,MG,hX,SL,fa,iVl,WLc,Dol,cB,pa,U8,XN,jL,oh,Rdf,y1U,qqJ,gEj,aGc,wOJ,Ih,G_c,DW,k_m,bTj,OTf,Rh,qX,g0,aI,kg,bx,OL,eEm,NX,Yg,Pn,NH_,YqV,K_,Py_,K$V,Te,EEJ,VYG,JtV,$g,mIf,Qlj,L$l,Fg,rty,BHU,nEj,hEl,SqN,EL,Ve,fGl,JK,mj,Qe,AK,xg,L_,Bn,r0,n_,MX,hK,Su,f_,Hn,HTJ,ctJ,pOm,p_,Xg,UIJ,vn,ze,ix,Wn,De,ye,qL,IGj,gF,ac,wF,tYm,ujG,XOf,bO,kn,W$V,OF,$n,Ky,sF,FL,REm,ZS,aX_,qZK,g8y,Gwy,eCy,kwj,O1m,lXc,DIc,Vb,EF,YZc,mk,Qb,AG,Plf,ML,KnK,hG,Se,fy,cr,dAU,UF,XL,TVU,je,oc,sof, tG,zn,iO,Wr,DS,Rc,yb,qR,gg,at,Clc,wg,bM,kt,E8f,QoN,J$y,mAl,A$m,xAm,BVy,r$G,Lnm,Mtc,e2,NR,K2,hCG,SZj,P5,dg,H1_,c$K,jom,X4J,Ft,C2,Zn,EH,Vv,IXc,uSK,rg,n2,ttj,v8J,zCj,H5,c5,p2,i1m,Wnj,RCy,q5c,ot,gsl,tE,It,iM,W5,Rt,aHy,k7,bY,OP,lY,NF,Y7,KI,OJl,lHU,TA,esV,N_U,sP,Y5J,PXj,F4,CI,KYG,dbl,$bJ,EP,mJ,FY_,CXU,Vu,ZJm,EsJ,JDy,VdK,LI,s1c,Q1j,AD_,SI,MF,xbV,LYl,fI,Hh,B__,rDJ,UP,nsf,MdV,hsj,S5l,uY,fHf,HJJ,cDj,pvm,Ubl,XvN,j1m,osm,vh,IHm,iY,tdV,vsV,zsc,iJ_,WYU,Wh,a5,RsG,gXy,we,aWc,GMK,DbV,kMN,bal,OaK,yDK,q8_,Dj,Rw,ge, wBG,qY,yu,lWK,eTU,NUy,Y8l,P9y,Kal,FaN,dGK,l$,eC,Y3,EXU,mGJ,JXl,NY,de,Qhj,sb,AXG,LaG,VL,xGV,cX_,BUc,HaG,Aa,pBG,jhN,x3,QL,UG_,XBj,oXU,B0,uNf,tLG,vXV,zTV,iac,Waj,DGl,IWc,yXN,qLj,ggc,wnl,aeU,keG,ha,b__,SC,fB,H0,O_c,lel,Ub,X3,N0l,eHU,jC,YLV,Kjm,T0y,dXN,$Xc,CxN,sIN,wW,bz,k5,Z__,G6,O9,lz,eb,N9,Egf,Pp,JKV,T6,dW,s9,FF,C5,ZV,mXf,E9,JN,QIl,Q9,x5,L5,AKc,xX_,Ljy,B0V,Bp,n5,rKc,M9,hN,Sb,Mu_,f5,Hp,hHl,p5,jb,XF,U9,oG,IG,H_y,ogl,ugN,jIV,Xn_,Iej,vp,Wp,i_f,tuc,vgj,zHm,fef,Gnj,bd,wrl,OyJ,aSN,tN,O_,qw,GX,knc,RG,pnG,cKN, UXJ,iz,gnJ,Yf,Kkm,PC,TFc,$L_,scV,dI,FkV,COV,Zyl,Vej,JGG,s_,Qcf,FX,AGU,xLK,BFK,rGl,nnc,Z1,Mey,SFc,E_,fSc,Va,JW,gw,jcm,vnN,BC,iym,RuK,nF,qHc,gtV,anm,o9,w5l,GVm,XX,VLN,pF,jR,U_,Mw,WC,R9,D1,ql,ax,b2m,wC,kp,bv,O2K,lnK,eV,Ngj,YHm,PMV,KP,KBN,dRV,Tgm,$Rm,stG,FBy,CMG,dC,Z2j,Ts,sE,EtV,V2G,JEf,mRc,Qtf,Fa,CP,AEm,xRl,LBy,Bgc,rEl,ntl,M2l,hAm,Jy,mx,Q0,SHm,Ay,fnV,LP,cEc,H2c,rC,nP,Ml,hy,p5j,SV,fP,URJ,X5U,He,ce,utl,jtm,In_,otK,pP,UE,Xa,t2U,vt_,zAl,jV,WBV,yEl,RAl,ox,Ix,uv,ty,ve,iv,We,DJ,Rx,y0,qk,qPm,g7G,ajN,gQ,aA,wQ, Gj,bc,lc,kAc,GAl,Nk,bIy,Ym,PA,Kj,dQ,Tj,F9,Cj,ZR,Ex,Vc,JI,mz,Qc,e9K,AI,xm,Lj,NwV,PYy,Mk,KJG,hI,Sg,$Fl,swm,FJj,ZIJ,VIV,X9,J2j,oA,jg,A2c,xFG,LJN,uc,tI,r2G,zj,ic,WA,DR,MIG,RA,yc,qZ,h9l,gJ,n7l,aS,wJ,fjU,SPN,Gz,k4,bq,O3,e3,c2y,phK,Y4,Pt,dJ,Tz,UFU,Ks,o7U,Ijm,u4f,tIK,v7y,z9U,iIK,s3,$4,jwV,R9K,F2,qb_,g3y,Jf,a2l,Zp,E3,w0f,mu,kZV,OBN,QI,Af,l2V,x4,Nel,Ls,$YV,dYN,Ybl,KNK,P$_,rJ,ns,MZ,hf,S3,fs,Ht,ps,FNG,E3K,j3,Bxy,oS,VCl,Q5c,uq,iq,tf,zz,vt,LN_,xYf,Aal,Bel,Wt,ray,Sbc,Dp,yI,HBj,qj,gd,ae,wd,caK,p0f,Gp,kv,bH,UYU,X0K, lH,PV,KZ,dd,Tp,$v,sR,j5m,FT,CZ,ZQ,ER,VH,JO,mK,o3f,I2J,QH,AO,xv,LZ,UR,XT,u3G,tCU,jr,tO,iBl,WNy,vV,zp,q8,RDV,w5,Gv,yaV,O4,q9c,aVN,g5U,wpc,G6l,k6j,b5K,O5K,lVj,NWU,e_j,Y9l,d9K,$9V,K2y,sGm,F2J,Z5_,eT,N8,VbU,E5y,YW,Ps,KG,m9G,d5,Tv,$W,AN_,x9V,s4,QGJ,Fl,rNG,CG,ZP,E4,Vh,JZ,mV,Qh,AZ,xW,LG,Bs,r5,nG,M8,hZ,ST,fG,Hs,cs,pG,U4,Xl,jT,oU,IU,uP,tZ,vs,zv,iP,Ws,DP,RU,yh,qD,g2,aZ,w2,GC,kr,bo,O0,lo,e4,ND,Yr,Po,KM,d2,TC,$r,s0,Fv,CM,Z8,E0,VJ,J4,mq,QJ,A4,xr,LM,Bo,r2,nM,MD,h4,S4,fM,Ho,pM,U0,Mby,Xv,W,j4,co,oZ,IZ,uo,S9f,vo,H5G, t4,cNf,io,ppl,D8,zC,RZ,yJ,qh,aM,XpU,jGJ,o5j,IVj,YP,PT,Ow,Kp,tbJ,v5m,z_K,i5U,U9l,W2j,g3,D9j,R_N,TS,Ew,$P,GS,yNy,w3,d3,Fo,Vg,gfJ,kP,bt,Zb,Cp,a1y,J3,ms,Qg,A3,wCm,xP,Lp,BT,r3,np,GXy,kXJ,OF_,l1l,S7,fp,NIV,HT,dwK,$wV,FQf,CdV,pp,Efj,VRV,ut,JWm,t3,vT,zS,WT,Db,RM,mwc,AWU,xwl,Q9f,LQl,BIV,am,wZ,kJ,Ou,lf,eH,rWl,Nf,nfG,YJ,Pb,Gk,Tk,$J,FZ,Ct,MRK,dZ,S_J,Zo,f1l,HFJ,Eu,cWV,VY,JQ,pCf,Uwf,mZ,XCl,j9_,QY,ofl,I1m,uXf,tRf,AQ,xJ,vfK,zYm,Lt,Bb,rZ,iFy,nt,Mf,hQ,SH,WQc,ft,Hb,Dwy,cb,RYj,pt,yWN,qEG,gpj,aJj,wey,Gsy,Uu,ksm,bPl,OPl, XZ,lJl,jH,e1_,om,NCK,Im,YEV,PvN,uf,Do,Kxy,Rm,yY,q4,gl,dlJ,aK,wl,Gt,TCc,$lV,b4,Oe,Fxc,l4,CvG,ZPV,sxc,EpN,VVU,Jym,N4,mlm,YG,Kf,dl,QxN,Tt,$G,F5,AyJ,Cf,ZT,xlN,Vz,ry_,MVU,h1G,npl,Qz,xG,A8,SEj,fJy,cyJ,HPf,J8,pey,Ul_,XeV,jxl,me,tVN,vpV,z1K,uay,IJy,opy,iPl,Lf,Lxm,WxU,BCc,Dly,R1J,gml,yyG,BY,qxU,Gjc,aRl,wAm,bjc,kjN,Ojm,lR_,nf,Yxc,ecV,Pcc,NQm,Kz_,dkK,TQN,$kf,sAc,Fzc,CcU,ZjU,EmG,Vgm,JIf,mkU,M4,AIN,xkK,Lzm,QAy,BQj,ff,h8,Ue,X5,rIc,jG,nmU,IK,u4,t8,MgN,i4,hcf,DT,RK,yz,cY,q7,gD,aY,Sxm,wD,GL,kj,fRl,bw,O2,lw,eN,N7, Yj,KW,dD,TL,s2,Hjm,cIV,pAK,E2,Fb,Vy,JB,Ukc,XAN,jAl,m5,Qy,AB,omN,IRc,Zh,u9y,tgU,xj,vmm,LW,Bz,nW,M7,hB,SN,fW,cz,pW,Xb,jN,oY,IY,U2,Wzf,DkJ,tB,vz,zL,Rcm,Wz,q3J,Dh,RY,g4V,yy,gv,wv,apG,aX,GH,kb,b3,wtf,ev,kzm,bsK,Osm,Yb,Nx,lpl,ewK,NJm,Pk,PqU,iw,Y3_,KuV,K8,dZc,dv,TJf,TH,$ZN,sSj,FuN,CqU,Zsc,$b,V3V,E4f,sf,Za,Jff,Ef,mZf,VZ,QSG,Afl,J9,xZV,Luc,BJK,rfG,mT,n4K,QZ,hwj,xb,L8,fpm,S3c,HsU,cf_,ptl,rv,n8,Mx,UZ_,Xty,jSJ,o4l,Ip_,u2J,t3_,v4G,zwN,isJ,Sv,f8,WuJ,DZ_,Hk,ck,Rwm,p8,Uf,jv,yfK,oX,IX,u3,qRc,t9,gvj,vk,aQl,zH,wVJ, Gpf,i3,kpm,bZj,OZV,Wk,Da,RX,yZ,qc,lQU,exG,gi,aP,wi,Ndl,G0,kZ,bm,Oi,lm,YRj,PHV,eQ,Nc,KKK,YZ,PZ,Kr,di,bFV,djc,TdV,T0,$jJ,sec,FK_,$Z,si,FP,Cr,Zq,Lr,BZ,ri,nr,Mc,hz,CHU,ZZc,XP,jQ,Vrl,oP,WZ,um,y5,LKy,hxj,BdK,SRK,HZU,cOj,fQU,pVN,Ujj,XVc,YB,IQc,vvm,tr_,iZG,WKj,Djl,TK,$B,yOJ,q4c,Gvy,sm,kvN,gWK,FA,Ck,ZN,Em,OGG,N5_,lP_,KVV,ZGJ,CPj,d8m,EWJ,Jh,$8G,T5V,m8K,x8V,AZJ,nWl,LVU,mr,QC,HGK,Lk,cZl,ul_,IPl,oWl,jUy,U8J,zzm,vWc,Xsm,yZU,Rzj,q0f,hh,woc,gr_,a8l,psc,GCl,kCG,B9,nk,WVc,iGV,D8l,bMc,rS,tTj,l8K,N2l,PoU,dDf,sZG,FqN, ZMV,Erm,J4c,V4m,Lq_,QZU,mDU,B2V,M4l,h8N,S0j,f8_,uU,Kk,pom,HMK,zK,DN,RN,jZV,orc,Xof,yC,I8V,qS,gt,yg,ak,ovK,wt,G2,kR,uvN,t4N,bZ,vrl,z8l,iMG,Ot,lZ,eZ,NS,YR,Pc,KO,dt,T2,WqG,DDJ,$R,R8_,FQ,C8,CO,Z6,gPG,y4l,Et,abl,wTG,GSj,Vd,qwK,J6,kSV,mw,bpN,Opm,zxl,lbl,Qd,qf,h3,S9,eSV,N3_,xR,fPN,Ah,Ywm,th,v9,H9,fk,VC,pk,T2c,Com,c9,MTG,r4l,Ptl,VT_,sUl,LO,UDl,dS,dhJ,Ksf,bG_,$Dc,T3U,nr_,oN,hzV,S4_,QUJ,Kqc,Y0y,PPc,ezj,wsm,aPm,RxV,OMV,FVy,A4G,B5l,rZU,XA,j9,Um,xDJ,e8j,sMl,$hU,Bc,rt,FsU,nO,CtV,MS,h6,SZ,ZpK,cc,pO,Ut,jZ,ok,EP_, XQ,Ik,uZ,V7l,t6,vc,z2,Wc,mhj,QMy,D6,Rk,yd,qq,gq,ag,wq,G1,B3G,b5,r3J,kd,nPy,xhf,LsU,M7K,Ol,l5,hSc,SwU,ei,fbj,qF,c3U,Hpm,UhV,jMU,oPV,XTl,t7l,vPV,ipc,T1,$d,Wsl,DhG,sl,Fq,RS_,y3c,quV,gJc,Zl,aoy,wbl,Vo,Jv,kkj,btl,Otm,NZm,Qo,Lx,rq,YuU,nx,Mq,hv,TZV,smG,$fm,Cfc,LZf,EJN,ji,fx,FZc,dfl,KZj,Pfl,Xq,HX,Ul,vX,z1,nJm,i5,WX,tv,fom,MHJ,h2l,Hty,Dl,Rg,pbN,qK,g4,ar,w4,Gh,k9,bp,UfJ,XbU,OY,lp,NK,oJy,Iof,el,uZf,z2N,itG,Y9,WZN,d4,Dfl,Th,sY,R2j,$9,Fs,yQc,Zm,gGc,aTl,Vs,Je,L0,Gtm,Qs,BG,n0,kty,he,x9,r4,bfG,Sl,OfK,f0,lTV,mS,Ae, wYJ,MK,HG,eVy,NlU,cG,Yem,p0,UY,Xs,jl,P4N,Ir,or,up,te,Ke_,d4U,vG,zh,ip,WG,Dm,Tlm,Rr,ys,$4m,sKm,q5,gK,aa,C4j,FeG,wK,Zfj,EG_,VGU,Gm,J8V,m4J,QKG,A8y,x4V,kD,bj,Os,lj,Ley,Blc,N5,r8K,YD,Pw,nGl,MGl,Kg,hV_,Sec,pYJ,U4G,fTK,HfG,c8l,Tm,$D,FH,Cg,XYU,jKc,oGj,ITK,Es,vGy,VW,if_,D4m,Wec,xD,Aw,y8j,q2_,gjc,ahl,Lg,wzc,rK,ng,GLK,bWJ,OWK,hw,cw,Y2l,AQm,cX,K5y,d7G,TDc,$7m,sYy,Si,SS,XH,jS,EjJ,VNJ,JBK,oa,x7K,m7_,QYN,BDV,rBc,Ia,njc,L5l,MNm,uj,tw,vw,hbV,S2f,zm,ij,fhJ,Ww,HWK,Dw,pg,gR,cBm,xfl,ZtJ,aW,wR,kx,bE,O1,lE,eE,G8,Pm,U7l, dR,jYc,T8,Ihl,ojj,XzU,ubm,tNV,vjj,Cz,zbc,iWl,D7m,Zu,rQy,E1,yBV,gby,og,aaG,wkK,px,VHG,mfl,QmN,RbG,Jj,mI,Aj,GHK,kHc,b8f,O8N,lal,eOc,Nvc,KTm,dxm,P3c,TvG,$xU,sXj,FTK,xx,C3c,rR,Z8c,Ebl,VvK,nz,J9f,hj,SE,fz,Hm,cm,mxV,pz,U1,QXl,A9l,XI,jE,oW,IW,uE,tj,LTf,xxV,vm,BvK,nbG,z8,Mvl,r9l,KA,YM,d8,$M,sV,s1,hOK,jX_,e7,P8,EV,tvm,zOj,g8,Ad,q2,xM,r8,WTU,N2,nA,qiG,M2,hd,gZc,aql,wZ_,G0V,S6,k0V,brN,fA,OrG,Pmy,YiV,lqK,Nil,eRJ,H8,Kmc,c8,dcK,Til,sPl,Fml,Cmm,Zrl,QPl,ov,Iv,LmN,u0,td,Bic,MQj,hRV,SiU,fqj,v8,zu,i0,W8,HrV,pZj,Ucm, kQ,iry,IqV,uPc,Dcc,bN,RRc,qmV,yzf,gBc,lN,YQ,aNJ,Or,PD,Kc,w9V,kKG,sr,Zs,Qq,Lc,CUl,Zkf,hF,MH,fc,HD,EB_,Jhc,mvV,pc,cD,QN_,xvy,Lrc,rhN,jO,BSc,nB_,M9f,Ip,uN,SmN,$Q,Xd,Ym_,GKK,TSj,Ds,SO,AhV,G4,AF,bi,OT,vBl,ikJ,zFm,xQ,BD,WrU,ew,NT,RFN,yhm,YU,KD,qtf,rM,d6,V9m,$U,Uvl,sT,eFy,lNG,bkm,Fe,a6j,ZZ,Ytc,NtN,Kwj,dSK,Jc,Qk,Ac,mX,LD,BE,Ttm,r6,skj,nD,CZU,Sw,Fwy,fD,HE,J6c,cE,A6V,xSy,Xe,LwJ,nRK,yk,gL,a0,k_,MZc,bk,OI,Y_,Py,Km,dL,h7l,Td,$_,c6J,sI,FD,pcc,USU,Cm,Zz,XcN,jkU,oRK,I6J,EI,Vf,uQU,tZN,vRj,A0,x_,rL,nm,z7y,iOc,Ms,h0, S1,fm,Wwc,DSm,Hy,R7y,y6J,cy,gdK,qlU,alG,pm,G1l,wXN,k1m,UI,XD,bxl,llc,eZK,j1,o0,Nq_,Ylj,KfN,TqJ,dqK,P5G,$qy,t0,sgj,C5c,vy,ZxV,ik,Edm,Vif,zd,Wy,Dz,R0,Qgm,xqm,JvJ,AvV,LfG,mql,Bqc,rvU,yf,ndN,hZc,Hxc,pXc,cvU,OU,bW,Nd,XXU,YK,PF,KN,odJ,d7,IlV,jgU,T3,vdf,$K,sU,zZV,FW,ixc,oZU,zRl,Dq_,Wfl,yvl,RZU,qYl,CN,Zx,EU,VB,g9m,Ghm,QB,A5,xK,b0G,khl,J5,O0m,lmy,etl,YYc,LN,Z0j,AeK,h5,xKc,g7,B4y,rel,n9j,MlU,htm,fN,SYj,HF,cF,pN,fmG,jF,H0m,cef,o2,I2,pGc,UKG,XGy,jrl,o9V,uW,XW,Imm,usl,t5,v9l,ztG,i0f,vF,WS_,DKV,RtU,yem,qsy,gDG, awl,wwl,GmV,kmV,z3,Ogl,iW,eoc,lwJ,YsN,NKG,Koy,yB,bgm,WF,qt,d5j,TKj,$5c,sam,g1,af,w1,Gi,kO,FoG,bn,Cjl,ln,m5V,x5c,Lol,BK_,rw_,YO,nDV,Awy,Jwm,MSN,eA,hof,fwV,Op,Nt,EDV,VSU,PH,HgJ,cwJ,QaG,ZgN,pw_,d1,U5J,Ti,$O,Xwy,sp,IwG,jac,oDf,FV,uHN,Ce,Zd,Ep,VE,tSl,vDc,zoy,JL,WoU,D5y,mO,Rol,QE,AL,ywl,q1y,gxK,auy,wmc,G8U,ejj,bzK,SlN,Le,Y1y,PEK,Ozm,luc,k8m,ne,sWf,r1,BH,NRc,CEN,$iG,TRK,diy,KIc,hL,Zzm,qd,SA,fe,HH,Exm,cH,VEl,pe,Jjl,eF,mic,Up,w7,kK,Mim,of,un,xiN,LI_,tL,zi,If,jA,WH,XV,QWN,AjN,Dd,BRm,rjV,R2,Pjy,a2,Rf,nxm,vH, MEj,hjK,S1N,ful,yE,qC,Hzm,cjG,pmU,Uij,XmK,SsJ,Md,a4,wr,gr,oxU,uqK,til,G9,Iu_,uIU,tEG,vxG,kw,izl,br,WIN,yjV,zjc,qVJ,agl,gMG,kuG,Oy,NC,OAV,bA_,YVl,egc,P0K,KvG,lgf,N8J,d2U,Yw,T8U,svl,$2m,Pd,tlc,FvG,C0G,ZAU,EMN,V6c,m2m,Qvm,Ady,x2j,LvN,Jdf,KC,wGc,dr,nMj,T9,rdc,M6y,hgl,amc,mW,SVc,fgJ,sy,oMU,jvN,V$,Igc,X8l,zgl,iAj,Wvc,D2J,Rgy,ydf,qrj,gQj,asJ,wDm,GOf,kOm,bcl,Ocf,I4,$w,efm,NMy,Jr,PNy,lsK,Q$,Khl,dHV,spy,Zcc,Fhm,tr,EQN,vd,TM_,ur,z9,$HK,Wd,mHc,AFJ,Qpy,xHN,JFJ,LhK,BMJ,rFK,nQj,MOm,Srl,fsj,hf_,cFJ,UHN,pDV,Isc,jpm, HcK,XDm,udJ,oQl,tOJ,vQ_,zfm,DHK,WhJ,icc,DK,Rf_,yFJ,qTl,gUc,aZG,G4l,bD_,ODG,lZm,ePm,N6j,R4,YTy,Pic,dTG,T6c,aO,s$l,Gx,ZDN,Cif,EUl,VwN,Jcf,Q$l,mT_,LXc,B6U,rcl,nUj,kV,MwU,AcJ,xTc,STc,fZf,HDU,ccJ,pE_,UTj,Dx,XEf,j$G,oUV,ue_,IZf,twN,zPy,iDl,vUc,ir,w8_,DTl,RPm,ycl,bmU,az_,wyU,GdJ,Oml,eXJ,FIc,OO,g_U,qIj,lzf,lW,kdy,xO,G3,CNG,dsV,KEU,TLj,$s_,FEJ,xCG,hPV,eD,lr,YIc,Lbj,Pk_,BrU,Rjy,rrJ,DiG,VOc,NLK,GuJ,N_,YV,MDV,P7,hLJ,Syc,fKm,HCl,crU,UCK,Xdl,uMJ,j4J,IKl,tDN,dk,WbN,zLJ,iCc,yrU,qOm,gVU,Tx,aIJ,K6,w7c,RLK,vwN,$V,GxK, owV,kxU,sO,O6G,b6J,eWj,Nkl,YOG,lIf,FK,d_N,K0c,sON,$_N,Tkj,F0N,CAf,C6,Z6V,EVf,JPN,m_m,Vxf,QOG,rPU,x__,L0m,Bkj,nVc,Mxl,hWf,fIK,SOl,H6K,cPf,ZI,p7l,U_G,jOm,X7l,oVl,IIf,txV,vVl,i6U,D_j,zWc,RWc,yPV,qBm,uKm,gkN,W0c,VF,atK,wPc,GQf,kQj,m0,Ohc,bhc,ltf,e5_,Nzc,Kpm,YBm,$Jm,QF,P_m,szl,AP,V5U,FpU,L6,B7,JsV,xV,mJf,rk,xJf,Asy,ZhK,EkK,LpV,Bzm,rsj,C_c,nkc,n6,M5m,Qzc,FXl,JP,SBl,ftJ,Hhj,csc,pPV,UJm,XPm,jzJ,okl,Itm,uhU,vkj,z5l,ih_,t5m,WpG,DJj,R5V,ysG,qCc,gqJ,GgN,w1l,aUN,kgf,Sx,ij_,boU,Oo_,f6,lUc,eMc,c7,PBl,Kdl,UO,dgj, TPy,p6,YCj,XK,H7,NPl,IO,jx,$g_,uA,oO,ZoU,JqJ,QEj,Aqc,LdG,FdJ,mgU,BPl,CBl,rqJ,nqN,MWj,W7,tP,fUf,Hol,hMm,zx,p1m,Ugl,VWG,EqU,cqG,X1m,xgJ,SCy,sEJ,DI,RO,yF,jEK,qJ,zMl,u_K,ioN,tWj,IUj,Wdm,oqc,yqc,Dg_,gz,qol,aEj,GTl,kTf,lEf,kk,ee_,bXK,iA,PsN,KiV,NJ,Yrc,az,dVl,Tmc,s3K,$VN,FiV,Yo_,OB,Cs_,ZXU,Ezm,JAj,VMG,WXU,b_,mVl,AAl,Q3c,Liy,xVm,wfl,rAf,BmV,l_,wz,nzf,PP,MMc,he_,Sol,fEl,HXl,Yk,OXl,nwc,v7,cAy,Kh,pf_,UV_,Xfl,j3c,ozN,IEN,dz,TQ,vzG,zeG,iXl,u7K,tMU,$k,yAc,DVm,ReU,qDl,gLJ,sB,a0j,wjN,GGG,Fh,kGU,OEc,l0U,eBK,Ch,bEc, Zt,EB,Nu_,YDJ,PRf,KDc,dpV,Tuc,$pG,mp,VM,Js,sJU,QM,FDf,CRm,ZEc,Vfm,ELU,nh,mpV,QJj,Jgj,Ag_,MJ,xpj,hs,LDJ,S5,BuV,rgy,hBl,HEV,nLm,SDl,fh,Mfm,f0N,cgU,pjJ,UpJ,XjG,cP,jJJ,Xh,ph,oL_,j5,oz,uGf,tfm,u_,ts,vLl,Iz,vP,iE_,zBK,i_,WP,Dt,RBf,WD_,Dpf,Rz,ygj,wgN,giK,qSj,a5c,yM,kbK,e4j,NOl,qg,YSf,bUy,PeN,gP,OUU,TOj,aE,wP,$NV,sQN,FPJ,Cey,ZUc,bB,JuG,mNc,QQm,OC,V$V,LPJ,kq,lB,eW,EiJ,niK,rum,dP,M$J,SSU,HUm,h4V,Tg,P1,sC,Ko,f5G,$q,cuG,F_,pg_,UNU,XgU,Co,ZU,jQf,oiG,I5l,uym,t$f,vic,z4j,DNc,iUK,R4m,yum,ayJ,wKV,NNj,no,KR_,$nf,TN_, dnl,lyl,eqc,GI_,b9l,Y$_,Mg,hq,FRm,tc,ZOc,C7N,fo,c1,Z9l,ECG,kIK,P7j,JbG,mnU,Q8G,po,tq,xnV,LRl,BNf,v1,rbm,MjJ,nCj,hqU,zg,iB,S$U,cbJ,pKc,RE,H9_,UnU,XKl,fyy,gm,j8l,oCl,qV,Iyj,ufN,tjy,vCl,i9G,zqj,Rql,ybj,WRG,gyc,akc,DnN,GT,kz,w_N,b4K,bs,kFj,GF_,O4_,ehm,lkl,N$j,Oo,YJf,PTG,KFc,d6c,T$f,$6U,sVJ,CTj,FFm,Z4G,Eyl,Vp_,JSc,m6j,ASG,eM,ls,NV,x6j,LFm,QVU,hhf,SJJ,fkj,p_c,cSl,H4K,U6_,X_l,Yz,Pf,jVc,oyU,Ikl,uuf,vyN,zhm,dm,i4y,KX,$z,tpf,so,WFl,D6G,RhN,ySU,qMN,F7,gu_,aYG,kWc,CX,bvV,GWf,ZE,Eo,VQ,lYU,eKN,NGj,OvV,PKl,YMG, K3y,JA,dym,TGU,sCU,ZvU,$yl,F3f,mi,EuK,JiJ,myN,Aic,xy_,QQ,AA,L3G,Vhy,nuc,rif,BGN,xz,LX,hKc,Mh_,Bf,rm,nX,SMl,MV,fYU,Hvc,ciy,pxm,hA,Uyf,SM,XxK,fX,jCU,Hf,cf,oul,pX,IYm,Uo,X7,thN,ivc,W3J,uOl,Dym,qv_,gSj,aFf,yiK,RKj,Gc_,wqG,kcU,lFV,I3,NEc,elV,bdV,Odc,YvK,P8j,us,tA,KMj,d1l,TEl,$1_,sDm,FMj,Zdc,ESV,BEf,m1y,QDl,VaG,nSc,R3,qp,HdG,c_J,wu,pqK,GG,U1m,Maj,DE,OD,bR,gu,jDl,oSU,lR,uCl,vSK,ta_,ef,aJ,Wf,IFj,kL,hlm,Xql,idK,vf,Np,WMJ,D1K,yQ,SvJ,YL,Pj,Rlm,KE,du,y_c,TG,qGy,gal,wuG,GqN,arG,$L,kqN,sD,FG,buV,Ouc,lrl,eyV,YGl, PSl,d3V,K6U,TsK,Z0,CE,Nsf,$3G,F6U,sic,ED,VK,CSV,EaK,VJm,Jg,ZuK,JJc,m3j,AJm,mD,Qil,x3f,L6N,BsK,Ag,xL,naV,rJf,MJm,LE,Bj,SGc,hym,fr_,cJJ,Huf,puV,nE,U3K,XuV,hg,jiy,Irf,oaK,fE,uny,tJl,val,iuf,W6K,D3c,zyc,Rym,yJl,qWy,g2V,aCV,wMl,Gay,kam,bqy,pE,OqG,lCy,eQV,YW_,Tom,KgG,No_,jf,PCl,XG,dBU,oJ,syc,$Bm,IJ,CCN,Zql,E2y,APl,zG,r6j,tg,iR,vj,D0,VqN,RJ,xBU,Lgj,BoK,n2j,rCl,MqN,hQG,SWU,HqU,cCl,pMG,UBf,fCj,v2_,zQl,tqK,iqK,DBm,yCU,qay,gHK,wO,RQy,Wgl,XMm,Gb,GoN,koc,wil,afK,lfl,OYV,eJU,NAl,Yay,PJN,ki,K7m,ICU,gO,daK,TAc,$ac, s7c,jyf,o2V,aQ,ZY_,EHU,VPy,JTG,F7m,be,CJm,Q7l,BAy,le,rTV,nHG,xam,NN,MPj,hJK,may,SaN,L7m,ffy,Yi,e$,HYG,piJ,cTl,OS,Xim,Pg,NmK,j7V,umK,Ify,vHf,zJf,tPy,dO,KU,W7y,Dac,RJ_,yTl,l_J,GlK,klf,a_V,goU,sS,PDm,Nfm,K8j,dUc,$i,CU,Z5,F8y,sFN,$UN,V8,ORy,Au,ZRG,Q8,ES,Vol,JRc,mUj,ekK,Bg,nU,QFj,bRj,CDc,Ju,ARN,Fy,xUV,L8l,Bfl,S$,Eom,rRm,noc,fU,Hg,MoN,mP,YnN,hkl,SnV,rO,f_G,xi,HRc,LU,hc,cRf,UUf,cg,pU,X6N,jFN,ooG,hu,MN,I_j,oHJ,uzG,w6K,toJ,voV,zky,iRJ,US,Xy,RkJ,ghJ,wWV,DUm,Ycc,PgG,KHl,d$l,TTc,$$l,sHU,CgK,FHj,j$,oQ,IQ,ZLc, EhN,VBV,Fp,JUN,ue,m$l,tu,QHU,vg,zb,AUl,eG,ie,Mh,x$J,iU,c4y,LHc,xB,BTK,Of,l3,rUG,A6,nhy,MBj,W9,uTm,haj,ScK,f4l,Wg,cUf,pWN,D5,y8,qn,U$y,ohf,I4l,gN,uBm,XWV,vhf,jHm,tBc,zam,iLG,WHl,D$c,a8,yUf,hYJ,bf,A9,qj8,gl8,Bk,Ral,Kt,acB,wJV,GfK,wN,uw,bKR,OKw,GI,kC,lcy,b7,O$,RQ,eNw,NcI,GzU,l7,ej,YjR,Nn,YC,PGV,PK,Kll,K9,dN,dm8,Tcl,M3G,TI,$m7,FlV,s_c,$C,s$,CGJ,Ff,ZKR,Ell,VyK,JmV,mmK,Q_7,xmc,Zy,Amw,Llc,Bc7,rmI,nl7,fcw,MyV,hNw,SjK,cmJ,UmV,XJl,j_K,pJJ,E$,ol6,Icl,uUe,tyc,vly,Jb,zNJ,mR,QS,Ab,iKK,Wlw,RNJ,yme,q6V,gcw,wRI,a7w, GJe,xC,L9,Owy,kJe,bwB,BK,l7y,eIw,rN,n9,Ny7,Mn,Y6c,Sj,PV6,f9,HK,KUB,cK,p9,deV,Ty6,U$,Xf,$eK,jj,sBV,FUx,tb,vK,CVR,ZwJ,EcI,meK,JlB,zI,QBy,AlR,xey,jeG,VKy,Byl,rlc,MKx,qjU,Yl;qm=function(q){return function(){return qjU[q].apply(this,arguments)}}; g.kl=function(q,a){return qjU[q]=a}; glU=function(q){var a=0;return function(){return a=this.length))return this[q]}; Dc=function(q){return q?q:iG}; Klm=function(q,a,w){q instanceof String&&(q=String(q));for(var G=q.length-1;G>=0;G--){var k=q[G];if(a.call(w,k,G,q))return{Jd:G,xH:k}}return{Jd:-1,xH:void 0}}; R_=function(q){return q?q:function(a,w){return Klm(this,a,w).Jd}}; g.qe=function(q,a,w){q=q.split(".");w=w||g.yV;for(var G;q.length&&(G=q.shift());)q.length||a===void 0?w[G]&&w[G]!==Object.prototype[G]?w=w[G]:w=w[G]={}:w[G]=a}; GJ=function(q,a){var w=g.aB("CLOSURE_FLAGS");q=w&&w[q];return q!=null?q:a}; g.aB=function(q,a){q=q.split(".");a=a||g.yV;for(var w=0;w2){var G=Array.prototype.slice.call(arguments,2);return function(){var k=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(k,G);return q.apply(a,k)}}return function(){return q.apply(a,arguments)}}; g.Ne=function(q,a,w){g.Ne=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?$mc:s_l;return g.Ne.apply(null,arguments)}; g.Yc=function(q,a){var w=Array.prototype.slice.call(arguments,1);return function(){var G=w.slice();G.push.apply(G,arguments);return q.apply(this,G)}}; g.Kw=function(){return Date.now()}; dy=function(q){return q}; g.TJ=function(q,a){function w(){} w.prototype=a.prototype;q.mG=a.prototype;q.prototype=new w;q.prototype.constructor=q;q.hL=function(G,k,b){for(var O=Array(arguments.length-2),e=2;e=0;--w)w in G&&a.call(void 0,G[w],w,q)}; g.Z7=function(q,a,w){a=Cw(q,a,w);return a<0?null:typeof q==="string"?q.charAt(a):q[a]}; Cw=function(q,a,w){for(var G=q.length,k=typeof q==="string"?q.split(""):q,b=0;b=0;G--)if(G in k&&a.call(w,k[G],G,q))return G;return-1}; g.Vx=function(q,a){return Vyy(q,a)>=0}; JmG=function(q){if(!Array.isArray(q))for(var a=q.length-1;a>=0;a--)delete q[a];q.length=0}; g.mU=function(q,a){a=Vyy(q,a);var w;(w=a>=0)&&g.Jl(q,a);return w}; g.Jl=function(q,a){return Array.prototype.splice.call(q,a,1).length==1}; g.BR=function(q,a){a=Cw(q,a);a>=0&&g.Jl(q,a)}; mmy=function(q,a){var w=0;Elm(q,function(G,k){a.call(void 0,G,k,q)&&g.Jl(q,k)&&w++})}; g.ry=function(q){return Array.prototype.concat.apply([],arguments)}; g.nw=function(q){var a=q.length;if(a>0){for(var w=Array(a),G=0;G>>1),N=void 0;w?N=a.call(void 0,q[e],e,q):N=a(G,q[e]);N>0?k=e+1:(b=e,O=!N)}return O?k:-k-1}; g.vR=function(q,a){q.sort(a||X8)}; xml=function(q,a){var w=X8;g.vR(q,function(G,k){return w(a(G),a(k))})}; g.zJ=function(q,a,w){if(!g.kc(q)||!g.kc(a)||q.length!=a.length)return!1;var G=q.length;w=w||Lll;for(var k=0;ka?1:q0&&(a[k]=G)},q); return a}; pJf=function(q){q=xI(q);var a=[];g.yx(q,function(w,G){G in Object.prototype||typeof w!="undefined"&&a.push([G,":",w].join(""))}); return a}; XJm=function(q){m9(q,"od",UmG);m9(q,"opac",LH).V=!0;m9(q,"sbeos",LH).V=!0;m9(q,"prf",LH).V=!0;m9(q,"mwt",LH).V=!0;m9(q,"iogeo",LH)}; BL=function(q,a){return q.lastIndexOf(a,0)==0}; j_y=function(q,a){var w=q.length-a.length;return w>=0&&q.indexOf(a,w)==w}; g.rn=function(q){return/^[\s\xa0]*$/.test(q)}; g.nH=function(q,a){return q.indexOf(a)!=-1}; hV=function(q,a){return g.nH(q.toLowerCase(),a.toLowerCase())}; g.HL=function(q,a){var w=0;q=SX(String(q)).split(".");a=SX(String(a)).split(".");for(var G=Math.max(q.length,a.length),k=0;w==0&&ka?1:0}; g.cL=function(){var q=g.yV.navigator;return q&&(q=q.userAgent)?q:""}; jX=function(q){if(!pH&&!U7||!XE)return!1;for(var a=0;a0:!1}; vL=function(){return tV()?!1:ub("Opera")}; olj=function(){return tV()?!1:ub("Trident")||ub("MSIE")}; Icm=function(){return tV()?jX("Microsoft Edge"):ub("Edg/")}; zB=function(){return ub("Firefox")||ub("FxiOS")}; WL=function(){return ub("Safari")&&!(ib()||(tV()?0:ub("Coast"))||vL()||(tV()?0:ub("Edge"))||Icm()||(tV()?jX("Opera"):ub("OPR"))||zB()||ub("Silk")||ub("Android"))}; ib=function(){return tV()?jX("Chromium"):(ub("Chrome")||ub("CriOS"))&&!(tV()?0:ub("Edge"))||ub("Silk")}; uUm=function(){return ub("Android")&&!(ib()||zB()||vL()||ub("Silk"))}; tyl=function(q){var a={};q.forEach(function(w){a[w[0]]=w[1]}); return function(w){return a[w.find(function(G){return G in a})]||""}}; vlc=function(q){var a=g.cL();if(q==="Internet Explorer"){if(olj())if((q=/rv: *([\d\.]*)/.exec(a))&&q[1])a=q[1];else{q="";var w=/MSIE +([\d\.]+)/.exec(a);if(w&&w[1])if(a=/Trident\/(\d.\d)/.exec(a),w[1]=="7.0")if(a&&a[1])switch(a[1]){case "4.0":q="8.0";break;case "5.0":q="9.0";break;case "6.0":q="10.0";break;case "7.0":q="11.0"}else q="7.0";else q=w[1];a=q}else a="";return a}var G=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");w=[];for(var k;k=G.exec(a);)w.push([k[1],k[2],k[3]||void 0]); a=tyl(w);switch(q){case "Opera":if(vL())return a(["Version","Opera"]);if(tV()?jX("Opera"):ub("OPR"))return a(["OPR"]);break;case "Microsoft Edge":if(tV()?0:ub("Edge"))return a(["Edge"]);if(Icm())return a(["Edg"]);break;case "Chromium":if(ib())return a(["Chrome","CriOS","HeadlessChrome"])}return q==="Firefox"&&zB()||q==="Safari"&&WL()||q==="Android Browser"&&uUm()||q==="Silk"&&ub("Silk")?(a=w[2])&&a[1]||"":""}; zNf=function(q){if(tV()&&q!=="Silk"){var a=XE.brands.find(function(w){return w.brand===q}); if(!a||!a.version)return NaN;a=a.version.split(".")}else{a=vlc(q);if(a==="")return NaN;a=a.split(".")}return a.length===0?NaN:Number(a[0])}; WlK=function(){var q=null;if(!iKy)return q;try{var a=function(w){return w}; q=iKy.createPolicy("goog#html",{createHTML:a,createScript:a,createScriptURL:a})}catch(w){}return q}; R6=function(){Di===void 0&&(Di=WlK());return Di}; y2=function(q){this.V=q}; qO=function(q){var a=R6();q=a?a.createScriptURL(q):q;return new y2(q)}; gj=function(q){if(q instanceof y2)return q.V;throw Error("");}; wj=function(q){this.V=q}; g.GR=function(q){if(q instanceof wj)return q.V;throw Error("");}; k1=function(q){this.PN=q}; b1=function(q){return new k1(function(a){return a.substr(0,q.length+1).toLowerCase()===q+":"})}; g.OX=function(q,a){a=a===void 0?Dm_:a;a:if(a=a===void 0?Dm_:a,!(q instanceof wj)){for(var w=0;w4);k++)a[Q_(q[k])]||(w+="\nInner error "+G++ +": ",q[k].stack&&q[k].stack.indexOf(q[k].toString())==0||(w+=typeof q[k]==="string"?q[k]:q[k].message+"\n"),w+=J7(q[k],a));k")!=-1&&(q=q.replace(eIK,">")),q.indexOf('"')!=-1&&(q=q.replace(Nyc,""")),q.indexOf("'")!=-1&&(q=q.replace(Y6l,"'")),q.indexOf("\x00")!=-1&&(q=q.replace(PVj,"�")));return q}; g.nS=function(q){return q==null?"":String(q)}; MO=function(q){for(var a=0,w=0;w>>0;return a}; h7=function(q){var a=Number(q);return a==0&&g.rn(q)?NaN:a}; KU_=function(q){return String(q).replace(/\-([a-z])/g,function(a,w){return w.toUpperCase()})}; deG=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; Tyj=function(q){return q.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(a,w,G){return w+G.toUpperCase()})}; $ey=function(q){var a=1;q=q.split(":");for(var w=[];a>0&&q.length;)w.push(q.shift()),a--;q.length&&w.push(q.join(":"));return w}; Sm=function(){return pH||U7?!!XE&&!!XE.platform:!1}; sBG=function(){return Sm()?XE.platform==="Android":ub("Android")}; fS=function(){return ub("iPhone")&&!ub("iPod")&&!ub("iPad")}; HS=function(){return fS()||ub("iPad")||ub("iPod")}; cS=function(){return Sm()?XE.platform==="macOS":ub("Macintosh")}; FUV=function(){return Sm()?XE.platform==="Windows":ub("Windows")}; pS=function(q){pS[" "](q);return q}; CVJ=function(q,a){try{return pS(q[a]),!0}catch(w){}return!1}; EcN=function(q,a){var w=Zwf;return Object.prototype.hasOwnProperty.call(w,q)?w[q]:w[q]=a(q)}; g.UX=function(q){return EcN(q,function(){return g.HL(VKc,q)>=0})}; g.X1=function(q,a,w){return Math.min(Math.max(q,a),w)}; g.jm=function(q,a){q%=a;return q*a<0?q+a:q}; os=function(q,a,w){return q+w*(a-q)}; g.Is=function(q,a){this.x=q!==void 0?q:0;this.y=a!==void 0?a:0}; u1=function(q,a){return q==a?!0:q&&a?q.x==a.x&&q.y==a.y:!1}; g.t7=function(q,a){this.width=q;this.height=a}; g.vS=function(q,a){return q==a?!0:q&&a?q.width==a.width&&q.height==a.height:!1}; zR=function(q){return q.width*q.height}; WS=function(q,a){this.V=q===i1&&a||""}; Dv=function(q){if(q instanceof PS)return q;q=String(q).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'");return KS(q)}; mey=function(q){return Jl_(q)}; Jl_=function(q){var a=Dv("");return KS(q.map(function(w){return dj(Dv(w))}).join(dj(a).toString()))}; Bym=function(q){var a;if(!QBc.test("div"))throw Error("");if(AlJ.indexOf("DIV")!==-1)throw Error("");var w="":(q=mey(a.map(function(G){return G instanceof PS?G:Dv(String(G))})),w+=">"+q.toString()+""); return KS(w)}; xec=function(q){for(var a="",w=Object.keys(q),G=0;G2&&Hwf(k,O,G,2);return O}; Hwf=function(q,a,w,G){function k(e){e&&a.appendChild(typeof e==="string"?q.createTextNode(e):e)} for(;G0)k(b);else{a:{if(b&&typeof b.length=="number"){if(g.bV(b)){var O=typeof b.item=="function"||typeof b.item=="string";break a}if(typeof b==="function"){O=typeof b.item=="function";break a}}O=!1}g.WR(O?g.nw(b):b,k)}}}; g.dp=function(q){return Pa(document,q)}; Pa=function(q,a){a=String(a);q.contentType==="application/xhtml+xml"&&(a=a.toLowerCase());return q.createElement(a)}; g.TY=function(q){return document.createTextNode(String(q))}; g.$A=function(q,a){q.appendChild(a)}; g.sN=function(q){for(var a;a=q.firstChild;)q.removeChild(a)}; Fr=function(q,a,w){q.insertBefore(a,q.childNodes[w]||null)}; g.Cn=function(q){return q&&q.parentNode?q.parentNode.removeChild(q):null}; g.ZM=function(q,a){if(!q||!a)return!1;if(q.contains&&a.nodeType==1)return q==a||q.contains(a);if(typeof q.compareDocumentPosition!="undefined")return q==a||!!(q.compareDocumentPosition(a)&16);for(;a&&q!=a;)a=a.parentNode;return a==q}; qP=function(q){return q.nodeType==9?q:q.ownerDocument||q.document}; g.EN=function(q,a){if("textContent"in q)q.textContent=a;else if(q.nodeType==3)q.data=String(a);else if(q.firstChild&&q.firstChild.nodeType==3){for(;q.lastChild!=q.firstChild;)q.removeChild(q.lastChild);q.firstChild.data=String(a)}else g.sN(q),q.appendChild(qP(q).createTextNode(String(a)))}; pRK=function(q){return q.tagName=="A"&&q.hasAttribute("href")||q.tagName=="INPUT"||q.tagName=="TEXTAREA"||q.tagName=="SELECT"||q.tagName=="BUTTON"?!q.disabled&&(!q.hasAttribute("tabindex")||clV(q)):q.hasAttribute("tabindex")&&clV(q)}; clV=function(q){q=q.tabIndex;return typeof q==="number"&&q>=0&&q<32768}; AM=function(q,a,w){if(!a&&!w)return null;var G=a?String(a).toUpperCase():null;return VD(q,function(k){return(!G||k.nodeName==G)&&(!w||typeof k.className==="string"&&g.Vx(k.className.split(/\s+/),w))},!0)}; VD=function(q,a,w){q&&!w&&(q=q.parentNode);for(w=0;q;){if(a(q))return q;q=q.parentNode;w++}return null}; y_=function(q){this.V=q||g.yV.document||document}; UeV=function(){this.V=this.Vn=null}; xA=function(){}; Ba=function(){if(!Ln())throw Error();}; Ln=function(){return!(!rp||!rp.performance)}; XRl=function(q){return g.NP?"webkit"+q:q.toLowerCase()}; nn=function(q){return function(){return q}}; g.MP=function(){}; jBm=function(q){var a=a||0;return function(){return q.apply(this,Array.prototype.slice.call(arguments,0,a))}}; hM=function(q){var a=!1,w;return function(){a||(w=q(),a=!0);return w}}; SU=function(q){var a=q;return function(){if(a){var w=a;a=null;w()}}}; fn=function(q,a,w){var G=0;return function(k){g.yV.clearTimeout(G);var b=arguments;G=g.yV.setTimeout(function(){q.apply(w,b)},a)}}; Ha=function(q,a,w,G){this.top=q;this.right=a;this.bottom=w;this.left=G}; ca=function(q){return q.right-q.left}; pn=function(q,a){return q==a?!0:q&&a?q.top==a.top&&q.right==a.right&&q.bottom==a.bottom&&q.left==a.left:!1}; UN=function(q,a,w){a instanceof g.Is?(q.left+=a.x,q.right+=a.x,q.top+=a.y,q.bottom+=a.y):(q.left+=a,q.right+=a,typeof w==="number"&&(q.top+=w,q.bottom+=w));return q}; g.Xr=function(q,a,w,G){this.left=q;this.top=a;this.width=w;this.height=G}; jU=function(q,a){return q==a?!0:q&&a?q.left==a.left&&q.width==a.width&&q.top==a.top&&q.height==a.height:!1}; g.IR=function(q,a,w){if(typeof a==="string")(a=oR(q,a))&&(q.style[a]=w);else for(var G in a){w=q;var k=a[G],b=oR(w,G);b&&(w.style[b]=k)}}; oR=function(q,a){var w=ocy[a];if(!w){var G=KU_(a);w=G;q.style[G]===void 0&&(G=(g.NP?"Webkit":uh?"Moz":null)+Tyj(G),q.style[G]!==void 0&&(w=G));ocy[a]=w}return w}; g.tM=function(q,a){var w=q.style[KU_(a)];return typeof w!=="undefined"?w:q.style[oR(q,a)]||""}; va=function(q,a){var w=qP(q);return w.defaultView&&w.defaultView.getComputedStyle&&(q=w.defaultView.getComputedStyle(q,null))?q[a]||q.getPropertyValue(a)||"":""}; zY=function(q,a){return va(q,a)||(q.currentStyle?q.currentStyle[a]:null)||q.style&&q.style[a]}; g.Wa=function(q,a,w){if(a instanceof g.Is){var G=a.x;a=a.y}else G=a,a=w;q.style.left=g.ih(G,!1);q.style.top=g.ih(a,!1)}; DM=function(q){try{return q.getBoundingClientRect()}catch(a){return{left:0,top:0,right:0,bottom:0}}}; I7l=function(q){var a=qP(q),w=zY(q,"position"),G=w=="fixed"||w=="absolute";for(q=q.parentNode;q&&q!=a;q=q.parentNode)if(q.nodeType==11&&q.host&&(q=q.host),w=zY(q,"position"),G=G&&w=="static"&&q!=a.documentElement&&q!=a.body,!G&&(q.scrollWidth>q.clientWidth||q.scrollHeight>q.clientHeight||w=="fixed"||w=="absolute"||w=="relative"))return q;return null}; g.RR=function(q){var a=qP(q),w=new g.Is(0,0);if(q==(a?qP(a):document).documentElement)return w;q=DM(q);a=gp(a);a=f7G(a.V);w.x=q.left+a.x;w.y=q.top+a.y;return w}; tKN=function(q,a){var w=new g.Is(0,0),G=YA(qP(q));if(!CVJ(G,"parent"))return w;do{var k=G==a?g.RR(q):u8f(q);w.x+=k.x;w.y+=k.y}while(G&&G!=a&&G!=G.parent&&(q=G.frameElement)&&(G=G.parent));return w}; g.yD=function(q,a){q=vcl(q);a=vcl(a);return new g.Is(q.x-a.x,q.y-a.y)}; u8f=function(q){q=DM(q);return new g.Is(q.left,q.top)}; vcl=function(q){if(q.nodeType==1)return u8f(q);q=q.changedTouches?q.changedTouches[0]:q;return new g.Is(q.clientX,q.clientY)}; g.qz=function(q,a,w){if(a instanceof g.t7)w=a.height,a=a.width;else if(w==void 0)throw Error("missing height argument");q.style.width=g.ih(a,!0);q.style.height=g.ih(w,!0)}; g.ih=function(q,a){typeof q=="number"&&(q=(a?Math.round(q):q)+"px");return q}; g.gh=function(q){var a=zIm;if(zY(q,"display")!="none")return a(q);var w=q.style,G=w.display,k=w.visibility,b=w.position;w.visibility="hidden";w.position="absolute";w.display="inline";q=a(q);w.display=G;w.position=b;w.visibility=k;return q}; zIm=function(q){var a=q.offsetWidth,w=q.offsetHeight,G=g.NP&&!a&&!w;return(a===void 0||G)&&q.getBoundingClientRect?(q=DM(q),new g.t7(q.right-q.left,q.bottom-q.top)):new g.t7(a,w)}; g.aT=function(q,a){q.style.display=a?"":"none"}; wh=function(q){return q?q.passive&&iwl()?q:q.capture||!1:!1}; G5=function(q,a,w,G){return typeof q.addEventListener==="function"?(q.addEventListener(a,w,wh(G)),!0):!1}; ke=function(q){if(q.prerendering)return 3;var a;return(a={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[q.visibilityState||q.webkitVisibilityState||q.mozVisibilityState||""])!=null?a:0}; WUJ=function(){}; bF=function(q){try{return!!q&&q.location.href!=null&&CVJ(q,"foo")}catch(a){return!1}}; Def=function(q){for(var a=q;q&&q!=q.parent;)q=q.parent,bF(q)&&(a=q);return a}; Od=function(q){q.WfQ=!0;return q}; RIN=function(){return(pH||U7)&&XE?XE.mobile:!lF()&&(ub("iPod")||ub("iPhone")||ub("Android")||ub("IEMobile"))}; lF=function(){return(pH||U7)&&XE?!XE.mobile&&(ub("iPad")||ub("Android")||ub("Silk")):ub("iPad")||ub("Android")&&!ub("Mobile")||ub("Silk")}; Ye=function(q,a){if(q)for(var w in q)Object.prototype.hasOwnProperty.call(q,w)&&a(q[w],w,q)}; q7f=function(){var q=[];Ye(ylm,function(a){q.push(a)}); return q}; gIl=function(q){var a,w;return(w=(a=/https?:\/\/[^\/]+/.exec(q))==null?void 0:a[0])!=null?w:""}; GBf=function(){var q=aiN("IFRAME"),a={};g.WR(wLy(),function(w){q.sandbox&&q.sandbox.supports&&q.sandbox.supports(w)&&(a[w]=!0)}); return a}; aiN=function(q,a){a=a===void 0?document:a;return a.createElement(String(q).toLowerCase())}; liJ=function(q){q=q||PU();for(var a=new kBU(g.yV.location.href,!1),w=null,G=q.length-1,k=G;k>=0;--k){var b=q[k];!w&&bHm.test(b.url)&&(w=b);if(b.url&&!b.V){a=b;break}}k=null;b=q.length&&q[G].url;a.depth!==0&&b&&(k=q[G]);return new OHj(a,k,w)}; PU=function(){var q=g.yV,a=[],w=null;do{var G=q;if(bF(G)){var k=G.location.href;w=G.document&&G.document.referrer||null}else k=w,w=null;a.push(new kBU(k||""));try{q=G.parent}catch(b){q=null}}while(q&&G!==q);G=0;for(q=a.length-1;G<=q;++G)a[G].depth=q-G;G=g.yV;if(G.location&&G.location.ancestorOrigins&&G.location.ancestorOrigins.length===a.length-1)for(q=1;qa&&(a=w.length);return 3997-a-q.W.length-1}; $e=function(q,a){this.V=q;this.depth=a}; Pby=function(){function q(e,N){return e==null?N:e} var a=PU(),w=Math.max(a.length-1,0),G=liJ(a);a=G.V;var k=G.U,b=G.W,O=[];b&&O.push(new $e([b.url,b.V?2:0],q(b.depth,1)));k&&k!=b&&O.push(new $e([k.url,2],0));a.url&&a!=b&&O.push(new $e([a.url,0],q(a.depth,w)));G=g.sd(O,function(e,N){return O.slice(0,O.length-N)}); !a.url||(b||k)&&a!=b||(k=gIl(a.url))&&G.push([new $e([k,1],q(a.depth,w))]);G.push([]);return g.sd(G,function(e){return Y7m(w,e)})}; Y7m=function(q,a){g.Fx(a,function(k){return k.depth>=0}); var w=CQ(a,function(k,b){return Math.max(k,b.depth)},-1),G=Bcc(w+2); G[0]=q;g.WR(a,function(k){return G[k.depth+1]=k.V}); return G}; K9c=function(){var q=q===void 0?Pby():q;return q.map(function(a){return T5(a)})}; dWN=function(q){var a=!1;a=a===void 0?!1:a;rp.google_image_requests||(rp.google_image_requests=[]);var w=aiN("IMG",rp.document);a&&(w.attributionSrc="");w.src=q;rp.google_image_requests.push(w)}; ZD=function(q){var a="QT";if(q.QT&&q.hasOwnProperty(a))return q.QT;var w=new q;q.QT=w;q.hasOwnProperty(a);return w}; Ed=function(){this.U=new WUJ;this.V=Ln()?new Ba:new xA}; Tnm=function(){VN();var q=rp.document;return!!(q&&q.body&&q.body.getBoundingClientRect&&typeof rp.setInterval==="function"&&typeof rp.clearInterval==="function"&&typeof rp.setTimeout==="function"&&typeof rp.clearTimeout==="function")}; $Wc=function(){VN();return K9c()}; s6l=function(){}; VN=function(){var q=ZD(s6l);if(!q.V){if(!rp)throw Error("Context has not been set and window is undefined.");q.V=ZD(Ed)}return q.V}; JH=function(){throw Error("Invalid UTF8");}; F9y=function(q,a){a=String.fromCharCode.apply(null,a);return q==null?a:q+a}; VXl=function(q){var a=!1;a=a===void 0?!1:a;if(CbK){if(a&&(ZHf?!q.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(q)))throw Error("Found an unpaired surrogate");q=(EIj||(EIj=new TextEncoder)).encode(q)}else{for(var w=0,G=new Uint8Array(3*q.length),k=0;k>6|192;else{if(b>=55296&&b<=57343){if(b<=56319&&k=56320&&O<=57343){b=(b-55296)*1024+ O-56320+65536;G[w++]=b>>18|240;G[w++]=b>>12&63|128;G[w++]=b>>6&63|128;G[w++]=b&63|128;continue}else k--}if(a)throw Error("Found an unpaired surrogate");b=65533}G[w++]=b>>12|224;G[w++]=b>>6&63|128}G[w++]=b&63|128}}q=w===G.length?G:G.subarray(0,w)}return q}; mt=function(q){g.yV.setTimeout(function(){throw q;},0)}; JVj=function(q){return Array.prototype.map.call(q,function(a){a=a.toString(16);return a.length>1?a:"0"+a}).join("")}; mWV=function(q){for(var a=[],w=0;w>6|192:((k&64512)==55296&&G+1>18|240,a[w++]=k>>12&63|128):a[w++]=k>>12|224,a[w++]=k>>6&63|128),a[w++]=k&63|128)}return a}; g.AH=function(q,a){a===void 0&&(a=0);Q6l();a=AVf[a];for(var w=Array(Math.floor(q.length/3)),G=a[64]||"",k=0,b=0;k>2];O=a[(O&3)<<4|e>>4];e=a[(e&15)<<2|N>>6];N=a[N&63];w[b++]=""+Y+O+e+N}Y=0;N=G;switch(q.length-k){case 2:Y=q[k+1],N=a[(Y&15)<<2]||G;case 1:q=q[k],w[b]=""+a[q>>2]+a[(q&3)<<4|Y>>4]+N+G}return w.join("")}; g.xe=function(q,a,w){if(xWm&&!a)q=g.yV.btoa(q);else{for(var G=[],k=0,b=0;b255){var e=Error("go/unicode-to-byte-error");if(w)throw e;G[k++]=O&255;O>>=8}G[k++]=O}q=g.AH(G,a)}return q}; Bnl=function(q){var a=[];L9G(q,function(w){a.push(w)}); return a}; LQ=function(q){var a=q.length,w=a*3/4;w%3?w=Math.floor(w):g.nH("=.",q[a-1])&&(w=g.nH("=.",q[a-2])?w-2:w-1);var G=new Uint8Array(w),k=0;L9G(q,function(b){G[k++]=b}); return k!==w?G.subarray(0,k):G}; L9G=function(q,a){function w(N){for(;G>4);O!=64&&(a(b<<4&240|O>>2),e!=64&&a(O<<6&192|e))}}; Q6l=function(){if(!BU){BU={};for(var q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),a=["+/=","+/","-_=","-_.","-_"],w=0;w<5;w++){var G=q.concat(a[w].split(""));AVf[w]=G;for(var k=0;k=a||(G[q]=w+1,q=Error(),GJm(q,"incident"),mt(q))}}; cU=function(q,a,w){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(w===void 0?0:w)&&Symbol.for&&q?Symbol.for(q):q!=null?Symbol(q):Symbol():a}; Xx=function(q,a){pQ||Ud in q||UWU(q,XLl);q[Ud]|=a}; j0=function(q,a){pQ||Ud in q||UWU(q,XLl);q[Ud]=a}; oT=function(){return typeof BigInt==="function"}; uF=function(q,a){return a===void 0?q.V!==IT&&!!(2&(q.r8[Ud]|0)):!!(2&a)&&q.V!==IT}; j6G=function(q,a){if(q!=null)if(typeof q==="string")q=q?new rh(q,nQ):Mz();else if(q.constructor!==rh)if(cVc&&q!=null&&q instanceof Uint8Array)q=q.length?new rh(new Uint8Array(q),nQ):Mz();else{if(!a)throw Error();q=void 0}return q}; tH=function(q,a){if(typeof a!=="number"||a<0||a>=q.length)throw Error();}; oIG=function(q,a,w){var G=a&128?0:-1,k=q.length,b;if(b=!!k)b=q[k-1],b=b!=null&&typeof b==="object"&&b.constructor===Object;var O=k+(b?-1:0);for(a=a&128?1:0;aa.length)return!1;if(q.lengthk)return!1;if(G>>0;q0=a;aL=(q-a)/4294967296>>>0}; k0=function(q){if(q<0){wa(0-q);var a=g.V(GD(q0,aL));q=a.next().value;a=a.next().value;q0=q>>>0;aL=a>>>0}else wa(q)}; Oz=function(q,a){var w=a*4294967296+(q>>>0);return Number.isSafeInteger(w)?w:bI(q,a)}; vIf=function(q,a){var w=a&2147483648;w&&(q=~q+1>>>0,a=~a>>>0,q==0&&(a=a+1>>>0));q=Oz(q,a);return typeof q==="number"?w?-q:q:w?"-"+q:q}; bI=function(q,a){a>>>=0;q>>>=0;if(a<=2097151)var w=""+(4294967296*a+q);else oT()?w=""+(BigInt(a)<>>24|a<<8)&16777215,a=a>>16&65535,q=(q&16777215)+w*6777216+a*6710656,w+=a*8147497,a*=2,q>=1E7&&(w+=q/1E7>>>0,q%=1E7),w>=1E7&&(a+=w/1E7>>>0,w%=1E7),w=a+z3K(w)+z3K(q));return w}; z3K=function(q){q=String(q);return"0000000".slice(q.length)+q}; iHm=function(){var q=q0,a=aL;a&2147483648?oT()?q=""+(BigInt(a|0)<>>0)):(a=g.V(GD(q,a)),q=a.next().value,a=a.next().value,q="-"+bI(q,a)):q=bI(q,a);return q}; lI=function(q){if(q.length<16)k0(Number(q));else if(oT())q=BigInt(q),q0=Number(q&BigInt(4294967295))>>>0,aL=Number(q>>BigInt(32)&BigInt(4294967295));else{var a=+(q[0]==="-");aL=q0=0;for(var w=q.length,G=0+a,k=(w-a)%6+a;k<=w;G=k,k+=6)G=Number(q.slice(G,k)),aL*=1E6,q0=q0*1E6+G,q0>=4294967296&&(aL+=Math.trunc(q0/4294967296),aL>>>=0,q0>>>=0);a&&(a=g.V(GD(q0,aL)),q=a.next().value,a=a.next().value,q0=q,aL=a)}}; GD=function(q,a){a=~a;q?q=~q+1:a+=1;return[q,a]}; en=function(q){return Array.prototype.slice.call(q)}; N0=function(q){if(q!=null&&typeof q!=="number")throw Error("Value of float/double field must be a number, found "+typeof q+": "+q);return q}; W9J=function(q){return q.displayName||q.name||"unknown type name"}; Y0=function(q){if(q!=null&&typeof q!=="boolean")throw Error("Expected boolean but got "+dmU(q)+": "+q);return q}; Ki=function(q){switch(typeof q){case "bigint":return!0;case "number":return P3(q);case "string":return DWf.test(q);default:return!1}}; R3f=function(q){if(typeof q!=="number")throw fQ("int32");if(!P3(q))throw fQ("int32");return q|0}; da=function(q){return q==null?q:R3f(q)}; TD=function(q){if(q==null)return q;if(typeof q==="string"&&q)q=+q;else if(typeof q!=="number")return;return P3(q)?q|0:void 0}; $0=function(q){if(q==null)return q;if(typeof q==="string"&&q)q=+q;else if(typeof q!=="number")return;return P3(q)?q>>>0:void 0}; g1c=function(q){var a=0;a=a===void 0?0:a;if(!Ki(q))throw fQ("int64");var w=typeof q;switch(a){case 512:switch(w){case "string":return sz(q);case "bigint":return String(ZL(64,q));default:return Ez(q)}case 1024:switch(w){case "string":return yVK(q);case "bigint":return yN(ZL(64,q));default:return qXl(q)}case 0:switch(w){case "string":return sz(q);case "bigint":return yN(ZL(64,q));default:return Vt(q)}default:return Y1(a,"Unknown format requested type for int64")}}; Jn=function(q){return q==null?q:g1c(q)}; avJ=function(q){if(q[0]==="-")return!1;var a=q.length;return a<20?!0:a===20&&Number(q.substring(0,6))<184467}; wSy=function(q){var a=q.length;return q[0]==="-"?a<20?!0:a===20&&Number(q.substring(0,7))>-922337:a<19?!0:a===19&&Number(q.substring(0,6))<922337}; GR_=function(q){if(q<0){k0(q);var a=bI(q0,aL);q=Number(a);return mC(q)?q:a}a=String(q);if(avJ(a))return a;k0(q);return Oz(q0,aL)}; kRl=function(q){if(wSy(q))return q;lI(q);return iHm()}; Vt=function(q){Ki(q);q=Qt(q);mC(q)||(k0(q),q=vIf(q0,aL));return q}; Ez=function(q){Ki(q);q=Qt(q);if(mC(q))q=String(q);else{var a=String(q);wSy(a)?q=a:(k0(q),q=iHm())}return q}; sz=function(q){Ki(q);var a=Qt(Number(q));if(mC(a))return String(a);a=q.indexOf(".");a!==-1&&(q=q.substring(0,a));return kRl(q)}; yVK=function(q){var a=Qt(Number(q));if(mC(a))return yN(a);a=q.indexOf(".");a!==-1&&(q=q.substring(0,a));return oT()?yN(ZL(64,BigInt(q))):yN(kRl(q))}; qXl=function(q){return mC(q)?yN(Vt(q)):yN(Ez(q))}; bSl=function(q){if(q==null)return q;var a=typeof q;if(a==="bigint")return String(ZL(64,q));if(Ki(q)){if(a==="string")return sz(q);if(a==="number")return Vt(q)}}; lvj=function(q){if(q==null)return q;var a=typeof q;if(a==="bigint")return String(OSj(64,q));if(Ki(q)){if(a==="string")return Ki(q),a=Qt(Number(q)),mC(a)&&a>=0?q=String(a):(a=q.indexOf("."),a!==-1&&(q=q.substring(0,a)),avJ(q)||(lI(q),q=bI(q0,aL))),q;if(a==="number")return Ki(q),q=Qt(q),q>=0&&mC(q)?q:GR_(q)}}; epJ=function(q){if(q==null||typeof q=="string"||q instanceof rh)return q}; NjK=function(q){if(typeof q!=="string")throw Error();return q}; An=function(q){if(q!=null&&typeof q!=="string")throw Error();return q}; x0=function(q){return q==null||typeof q==="string"?q:void 0}; Li=function(q,a){if(!(q instanceof a))throw Error("Expected instanceof "+W9J(a)+" but got "+(q&&W9J(q.constructor)));return q}; YXN=function(q,a,w){if(q!=null&&q[B3]===ra)return q;if(Array.isArray(q)){var G=q[Ud]|0;w=G|w&32|w&2;w!==G&&j0(q,w);return new a(q)}}; ni=function(q){return q}; hn=function(q){var a=dy(M0);return a?q[a]:void 0}; Sn=function(){}; fi=function(q,a){for(var w in q)!isNaN(w)&&a(q,+w,q[w])}; P1G=function(q){var a=new Sn;fi(q,function(w,G,k){a[G]=en(k)}); a.TM=q.TM;return a}; dOV=function(q,a){a<100||HU(K_l,1)}; c3=function(q,a,w,G){var k=G!==void 0;G=!!G;var b=dy(M0),O;!k&&pQ&&b&&(O=q[b])&&fi(O,dOV);b=[];var e=q.length;O=4294967295;var N=!1,Y=!!(a&64),P=Y?a&128?0:-1:void 0;if(!(a&1)){var K=e&&q[e-1];K!=null&&typeof K==="object"&&K.constructor===Object?(e--,O=e):K=void 0;if(Y&&!(a&128)&&!k){N=!0;var d;O=((d=H3)!=null?d:ni)(O-P,P,q,K,void 0)+P}}a=void 0;for(d=0;d=O){var F=d-P,J=void 0;((J=a)!=null?J:a={})[F]=T}else b[d]=T}if(K)for(var Q in K)e=K[Q],e!= null&&(e=w(e,G))!=null&&(d=+Q,T=void 0,Y&&!Number.isNaN(d)&&(T=d+P)0?void 0:q===0?C1J||(C1J=[0,void 0]):[-q,void 0];case "string":return[0,q];case "object":return q}}; uI=function(q,a,w){return q=IL(q,a[0],a[1],w?1:2)}; IL=function(q,a,w,G){G=G===void 0?0:G;if(q==null){var k=32;w?(q=[w],k|=128):q=[];a&&(k=k&-8380417|(a&1023)<<13)}else{if(!Array.isArray(q))throw Error("narr");k=q[Ud]|0;if(E1V&&1&k)throw Error("rfarr");2048&k&&!(2&k)&&VmK();if(k&256)throw Error("farr");if(k&64)return G!==0||k&2048||j0(q,k|2048),q;if(w&&(k|=128,w!==q[0]))throw Error("mid");a:{w=q;k|=64;var b=w.length;if(b){var O=b-1,e=w[O];if(e!=null&&typeof e==="object"&&e.constructor===Object){a=k&128?0:-1;O-=a;if(O>=1024)throw Error("pvtlmt");for(var N in e)b= +N,b1024)throw Error("spvt");k=k&-8380417|(N&1023)<<13}}}k|=64;G===0&&(k|=2048);j0(q,k);return q}; VmK=function(){if(E1V)throw Error("carr");HU(J7m,5)}; mOK=function(q,a){if(typeof q!=="object")return q;if(Array.isArray(q)){var w=q[Ud]|0;q.length===0&&w&1?q=void 0:w&2||(!a||4096&w||16&w?q=tn(q,w,!1,a&&!(w&16)):(Xx(q,34),w&4&&Object.freeze(q)));return q}if(q!=null&&q[B3]===ra)return a=q.r8,w=a[Ud]|0,uF(q,w)?q:v3(q,a,w)?zD(q,a):tn(a,w);if(q instanceof rh)return q}; zD=function(q,a,w){q=new q.constructor(a);w&&(q.V=IT);q.U=IT;return q}; tn=function(q,a,w,G){G!=null||(G=!!(34&a));q=c3(q,a,mOK,G);G=32;w&&(G|=2);a=a&8380609|G;j0(q,a);return q}; Qsl=function(q){var a=q.r8,w=a[Ud]|0;return uF(q,w)?v3(q,a,w)?zD(q,a,!0):new q.constructor(tn(a,w,!1)):q}; iI=function(q){if(q.V!==IT)return!1;var a=q.r8;a=tn(a,a[Ud]|0);Xx(a,2048);q.r8=a;q.V=void 0;q.U=void 0;return!0}; W3=function(q){if(!iI(q)&&uF(q,q.r8[Ud]|0))throw Error();}; DL=function(q,a){a===void 0&&(a=q[Ud]|0);a&32&&!(a&4096)&&j0(q,a|4096)}; v3=function(q,a,w){return w&2?!0:w&32&&!(w&4096)?(j0(a,w|2),q.V=IT,!0):!1}; qu=function(q,a,w,G,k){Object.isExtensible(q);a=RL(q.r8,a,w,k);if(a!==null||G&&q.U!==IT)return a}; RL=function(q,a,w,G){if(a===-1)return null;var k=a+(w?0:-1),b=q.length-1;if(!(b<1+(w?0:-1))){if(k>=b){var O=q[b];if(O!=null&&typeof O==="object"&&O.constructor===Object){w=O[a];var e=!0}else if(k===b)w=O;else return}else w=q[k];if(G&&w!=null){G=G(w);if(G==null)return G;if(!Object.is(G,w))return e?O[a]=G:q[k]=G,G}return w}}; aj=function(q,a,w,G){W3(q);var k=q.r8;gb(k,k[Ud]|0,a,w,G);return q}; gb=function(q,a,w,G,k){var b=w+(k?0:-1),O=q.length-1;if(O>=1+(k?0:-1)&&b>=O){var e=q[O];if(e!=null&&typeof e==="object"&&e.constructor===Object)return e[w]=G,a}if(b<=O)return q[b]=G,a;if(G!==void 0){var N;O=((N=a)!=null?N:a=q[Ud]|0)>>13&1023||536870912;w>=O?G!=null&&(b={},q[O+(k?0:-1)]=(b[w]=G,b)):q[b]=G}return a}; Og=function(q,a,w,G,k){var b=q.r8,O=b[Ud]|0;G=uF(q,O)?1:G;k=!!k||G===3;G===2&&iI(q)&&(b=q.r8,O=b[Ud]|0);q=wb(b,a);var e=q===GU?7:q[Ud]|0,N=kN(e,O);var Y=4&N?!1:!0;if(Y){4&N&&(q=en(q),e=0,N=bQ(N,O),O=gb(b,O,a,q));for(var P=0,K=0;P32)for(w|=(O&127)>>4,G=3;G<32&&O&128;G+=7)O=k[b++],w|=(O&127)<>>0,w>>>0);throw Error();}; oj=function(q,a){q.V=a;if(a>q.W)throw Error();}; uQ=function(q){var a=q.U,w=q.V,G=a[w++],k=G&127;if(G&128&&(G=a[w++],k|=(G&127)<<7,G&128&&(G=a[w++],k|=(G&127)<<14,G&128&&(G=a[w++],k|=(G&127)<<21,G&128&&(G=a[w++],k|=G<<28,G&128&&a[w++]&128&&a[w++]&128&&a[w++]&128&&a[w++]&128&&a[w++]&128)))))throw Error();oj(q,w);return k}; tY=function(q){var a=q.U,w=q.V,G=a[w+0],k=a[w+1],b=a[w+2];a=a[w+3];oj(q,q.V+4);return(G<<0|k<<8|b<<16|a<<24)>>>0}; v$=function(q){var a=tY(q);q=tY(q);return Oz(a,q)}; zU=function(q){var a=tY(q),w=tY(q);q=(w>>31)*2+1;var G=w>>>20&2047;a=4294967296*(w&1048575)+a;return G==2047?a?NaN:q*Infinity:G==0?q*4.9E-324*a:q*Math.pow(2,G-1075)*(a+4503599627370496)}; iQ=function(q){for(var a=0,w=q.V,G=w+10,k=q.U;wq.W)throw Error();q.V=a;return w}; pSl=function(q,a){if(a==0)return Mz();var w=HS_(q,a);q.hC&&q.D?w=q.U.subarray(w,w+a):(q=q.U,a=w+a,w=w===a?new Uint8Array(0):c7c?q.slice(w,a):new Uint8Array(q.subarray(w,a)));return w.length==0?Mz():new rh(w,nQ)}; D$=function(q,a,w,G){if(W$.length){var k=W$.pop();k.init(q,a,w,G);q=k}else q=new j8(q,a,w,G);this.V=q;this.Y=this.V.V;this.U=this.W=-1;UOm(this,G)}; UOm=function(q,a){a=a===void 0?{}:a;q.VD=a.VD===void 0?!1:a.VD}; XSU=function(q,a,w,G){if(Rj.length){var k=Rj.pop();UOm(k,G);k.V.init(q,a,w,G);return k}return new D$(q,a,w,G)}; jsJ=function(q){var a=q.V;if(a.V==a.W)return!1;q.Y=q.V.V;var w=uQ(q.V)>>>0;a=w>>>3;w&=7;if(!(w>=0&&w<=5))throw Error();if(a<1)throw Error();q.W=a;q.U=w;return!0}; y1=function(q){switch(q.U){case 0:q.U!=0?y1(q):iQ(q.V);break;case 1:q=q.V;oj(q,q.V+8);break;case 2:if(q.U!=2)y1(q);else{var a=uQ(q.V)>>>0;q=q.V;oj(q,q.V+a)}break;case 5:q=q.V;oj(q,q.V+4);break;case 3:a=q.W;do{if(!jsJ(q))throw Error();if(q.U==4){if(q.W!=a)throw Error();break}y1(q)}while(1);break;default:throw Error();}}; qM=function(q,a,w){var G=q.V.W,k=uQ(q.V)>>>0;k=q.V.V+k;var b=k-G;b<=0&&(q.V.W=k,w(a,q,void 0,void 0,void 0),b=k-q.V.V);if(b)throw Error();q.V.V=k;q.V.W=G}; PI=function(q){var a=uQ(q.V)>>>0;q=q.V;var w=HS_(q,a);q=q.U;if(o1V){var G=q,k;(k=NM)||(k=NM=new TextDecoder("utf-8",{fatal:!0}));a=w+a;G=w===0&&a===G.length?G:G.subarray(w,a);try{var b=k.decode(G)}catch(Y){if(Y6===void 0){try{k.decode(new Uint8Array([128]))}catch(P){}try{k.decode(new Uint8Array([97])),Y6=!0}catch(P){Y6=!1}}!Y6&&(NM=void 0);throw Y;}}else{b=w;a=b+a;w=[];for(var O=null,e,N;b=a?JH():(N=q[b++],e<194||(N&192)!==128?(b--,JH()):w.push((e&31)<<6|N&63)): e<240?b>=a-1?JH():(N=q[b++],(N&192)!==128||e===224&&N<160||e===237&&N>=160||((k=q[b++])&192)!==128?(b--,JH()):w.push((e&15)<<12|(N&63)<<6|k&63)):e<=244?b>=a-2?JH():(N=q[b++],(N&192)!==128||(e<<28)+(N-144)>>30!==0||((k=q[b++])&192)!==128||((G=q[b++])&192)!==128?(b--,JH()):(e=(e&7)<<18|(N&63)<<12|(k&63)<<6|G&63,e-=65536,w.push((e>>10&1023)+55296,(e&1023)+56320))):JH(),w.length>=8192&&(O=F9y(O,w),w.length=0);b=F9y(O,w)}return b}; IvU=function(q){var a=uQ(q.V)>>>0;return pSl(q.V,a)}; Kb=function(q,a){this.U=q>>>0;this.V=a>>>0}; tmN=function(q){if(!q)return u1c||(u1c=new Kb(0,0));if(!/^\d+$/.test(q))return null;lI(q);return new Kb(q0,aL)}; dx=function(q,a){this.U=q>>>0;this.V=a>>>0}; zpm=function(q){if(!q)return v1l||(v1l=new dx(0,0));if(!/^-?\d+$/.test(q))return null;lI(q);return new dx(q0,aL)}; TN=function(){this.V=[]}; $6=function(q,a,w){for(;w>0||a>127;)q.V.push(a&127|128),a=(a>>>7|w<<25)>>>0,w>>>=7;q.V.push(a)}; sK=function(q,a){for(;a>127;)q.V.push(a&127|128),a>>>=7;q.V.push(a)}; iSm=function(q,a){if(a>=0)sK(q,a);else{for(var w=0;w<9;w++)q.V.push(a&127|128),a>>=7;q.V.push(1)}}; F$=function(q,a){q.V.push(a>>>0&255);q.V.push(a>>>8&255);q.V.push(a>>>16&255);q.V.push(a>>>24&255)}; W__=function(){this.W=[];this.U=0;this.V=new TN}; Cb=function(q,a){a.length!==0&&(q.W.push(a),q.U+=a.length)}; DOm=function(q,a){ZB(q,a,2);a=q.V.end();Cb(q,a);a.push(q.U);return a}; Rpy=function(q,a){var w=a.pop();for(w=q.U+q.V.length()-w;w>127;)a.push(w&127|128),w>>>=7,q.U++;a.push(w);q.U++}; ZB=function(q,a,w){sK(q.V,a*8+w)}; y7m=function(q,a,w){if(w!=null){switch(typeof w){case "string":tmN(w)}ZB(q,a,1);switch(typeof w){case "number":q=q.V;wa(w);F$(q,q0);F$(q,aL);break;case "bigint":w=BigInt.asUintN(64,w);w=new Kb(Number(w&BigInt(4294967295)),Number(w>>BigInt(32)));q=q.V;a=w.V;F$(q,w.U);F$(q,a);break;default:w=tmN(w),q=q.V,a=w.V,F$(q,w.U),F$(q,a)}}}; EK=function(q,a,w){ZB(q,a,2);sK(q.V,w.length);Cb(q,q.V.end());Cb(q,w)}; Vn=function(){function q(){throw Error();} Object.setPrototypeOf(q,q.prototype);return q}; Jx=function(q,a,w){this.r8=IL(q,a,w)}; qNJ=function(q,a){if(a==null||a=="")return new q;a=JSON.parse(a);if(!Array.isArray(a))throw Error("dnarr");Xx(a,32);return new q(a)}; Qn=function(q,a,w){this.sY=q;this.K9=a;q=dy(m1);this.V=!!q&&w===q||!1}; Ax=function(q,a){var w=w===void 0?m1:w;return new Qn(q,a,w)}; aMy=function(q,a,w,G,k){a=gAm(a,G);a!=null&&(w=DOm(q,w),k(a,q),Rpy(q,w))}; BI=function(q,a,w,G){var k=G[q];if(k)return k;k={};k.LV=G;k.Xd=ZSf(G[0]);var b=G[1],O=1;b&&b.constructor===Object&&(k.extensions=b,b=G[++O],typeof b==="function"&&(k.P$=!0,x6!=null||(x6=b),Lb!=null||(Lb=G[O+1]),b=G[O+=2]));for(var e={};b&&Array.isArray(b)&&b.length&&typeof b[0]==="number"&&b[0]>0;){for(var N=0;N>BigInt(32)));$6(q.V,w.U,w.V);break;default:w=zpm(a),$6(q.V,w.U,w.V)}}}; Rb=function(q,a,w){a=TD(a);a!=null&&a!=null&&(ZB(q,w,0),iSm(q.V,a))}; Tpf=function(q,a,w){a=a==null||typeof a==="boolean"?a:typeof a==="number"?!!a:void 0;a!=null&&(ZB(q,w,0),q.V.V.push(a?1:0))}; $Pc=function(q,a,w){a=x0(a);a!=null&&EK(q,w,VXl(a))}; sRy=function(q,a,w,G,k){a=gAm(a,G);a!=null&&(w=DOm(q,w),k(a,q),Rpy(q,w))}; Chc=function(){var q=yn;this.V=F4f;this.isRepeated=0;this.U=Z$;this.defaultValue=void 0;this.W=q.messageId!=null?vU:void 0}; Znm=function(q,a){return function(w,G){var k={n9:!0};G&&Object.assign(k,G);w=XSU(w,void 0,void 0,k);try{var b=new q,O=b.r8;hx(a)(O,w);var e=b}finally{w.free()}return e}}; EA_=function(q){return function(){var a=new W__;YNJ(this.r8,a,BI(HI,fb,UK,q));Cb(a,a.V.end());for(var w=new Uint8Array(a.U),G=a.W,k=G.length,b=0,O=0;O-1)return a.apply(null,g.Tf(w));try{return q.V=q.W.V.now(),a.apply(null,g.Tf(w))}finally{q.Y+=q.W.V.now()-q.V,q.V=-1,q.U+=1}}}; JMl=function(q,a){this.U=q;this.W=a;this.V=new VUl(q)}; mPl=function(){this.V={}}; AMG=function(){var q=wY().flags,a=QRN;q=q.V[a.key];if(a.valueType==="proto"){try{var w=JSON.parse(q);if(Array.isArray(w))return w}catch(G){}return a.defaultValue}return typeof q===typeof a.defaultValue?q:a.defaultValue}; rMc=function(){this.W=void 0;this.U=this.L=0;this.D=-1;this.H5=new JV;m9(this.H5,"mv",xPl).V=!0;m9(this.H5,"omid",LH);m9(this.H5,"epoh",LH).V=!0;m9(this.H5,"epph",LH).V=!0;m9(this.H5,"umt",LH).V=!0;m9(this.H5,"phel",LH).V=!0;m9(this.H5,"phell",LH).V=!0;m9(this.H5,"oseid",L4J).V=!0;var q=this.H5;q.V.sloi||(q.V.sloi=new E7);q.V.sloi.V=!0;m9(this.H5,"mm",G7);m9(this.H5,"ovms",BpK).V=!0;m9(this.H5,"xdi",LH).V=!0;m9(this.H5,"amp",LH).V=!0;m9(this.H5,"prf",LH).V=!0;m9(this.H5,"gtx",LH).V=!0;m9(this.H5, "mvp_lv",LH).V=!0;m9(this.H5,"ssmol",LH).V=!0;m9(this.H5,"fmd",LH).V=!0;m9(this.H5,"gen204simple",LH);this.V=new JMl(VN(),this.H5);this.Y=!1;this.flags=new mPl}; wY=function(){return ZD(rMc)}; nAG=function(q,a,w,G){if(Math.random()<(G||q.V))try{if(w instanceof KQ)var k=w;else k=new KQ,Ye(w,function(O,e){var N=k,Y=N.Y++;O=dh(e,O);N.V.push(Y);N.U[Y]=O}); var b=k.Do(q.U,"pagead2.googlesyndication.com","/pagead/gen_204?id="+a+"&");b&&(VN(),dWN(b))}catch(O){}}; MUm=function(q,a,w){w=w===void 0?{}:w;this.error=q;this.meta=w;this.context=a.context;this.msg=a.message||"";this.id=a.id||"jserror"}; hml=function(){var q=q===void 0?g.yV:q;return(q=q.performance)&&q.now&&q.timing?Math.floor(q.now()+q.timing.navigationStart):g.Kw()}; SNG=function(){var q=q===void 0?g.yV:q;return(q=q.performance)&&q.now?q.now():null}; fMc=function(q,a,w){this.label=q;this.type=a;this.value=w;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; b6=function(){var q=window;this.events=[];this.U=q||g.yV;var a=null;q&&(q.google_js_reporting_queue=q.google_js_reporting_queue||[],this.events=q.google_js_reporting_queue,a=q.google_measure_js_timing);this.V=k$()||(a!=null?a:Math.random()<1)}; Hnc=function(q){q&&Ok&&k$()&&(Ok.clearMarks("goog_"+q.label+"_"+q.uniqueId+"_start"),Ok.clearMarks("goog_"+q.label+"_"+q.uniqueId+"_end"))}; l6=function(q,a,w,G,k,b,O){var e="";q&&(e+=q+":");w&&(e+="//",a&&(e+=a+"@"),e+=w,G&&(e+=":"+G));k&&(e+=k);b&&(e+="?"+b);O&&(e+="#"+O);return e}; g.es=function(q){return q.match(cMc)}; paN=function(q){return q?decodeURI(q):q}; g.Nr=function(q){return paN(g.es(q)[3]||null)}; Y$=function(q){return paN(g.es(q)[5]||null)}; g.UPJ=function(q){q=g.es(q);return l6(q[1],q[2],q[3],q[4])}; Pl=function(q){q=g.es(q);return l6(null,null,null,null,q[5],q[6],q[7])}; Xal=function(q){var a=q.indexOf("#");return a<0?q:q.slice(0,a)}; K3=function(q,a){if(q){q=q.split("&");for(var w=0;w=0){var b=q[w].substring(0,G);k=q[w].substring(G+1)}else b=q[w];a(b,k?BS(k):"")}}}; dY=function(q,a){if(!a)return q;var w=q.indexOf("#");w<0&&(w=q.length);var G=q.indexOf("?");if(G<0||G>w){G=w;var k=""}else k=q.substring(G+1,w);q=[q.slice(0,G),k,q.slice(w)];w=q[1];q[1]=a?w?w+"&"+a:a:w;return q[0]+(q[1]?"?"+q[1]:"")+q[2]}; T7=function(q,a,w){if(Array.isArray(a))for(var G=0;G=0&&aw)k=w;G+=a.length+1;return BS(q.slice(G,k!==-1?k:0))}; Jo=function(q,a){for(var w=q.search(Ek),G=0,k,b=[];(k=C3(q,G,a,w))>=0;)b.push(q.substring(G,k)),G=Math.min(q.indexOf("&",k)+1||w,w);b.push(q.slice(G));return b.join("").replace(IMl,"$1")}; urV=function(q,a,w){return FR(Jo(q,a),a,w)}; tUU=function(){var q=mG;this.V=Q6;this.d3="jserror";this.yj=!0;this.s4=null;this.U=this.EO;this.bK=q===void 0?null:q}; vAV=function(q,a,w){var G=Ao;return an(wY().V.V,function(){try{if(G.bK&&G.bK.V){var k=G.bK.start(q.toString(),3);var b=a();G.bK.end(k)}else b=a()}catch(e){var O=G.yj;try{Hnc(k),O=G.U(q,new x$(L3(e)),void 0,w)}catch(N){G.EO(217,N)}if(!O)throw e;}return b})()}; Bl=function(q,a,w,G){return an(wY().V.V,function(){var k=g.XU.apply(0,arguments);return vAV(q,function(){return a.apply(w,k)},G)})}; L3=function(q){var a=q.toString();q.name&&a.indexOf(q.name)==-1&&(a+=": "+q.name);q.message&&a.indexOf(q.message)==-1&&(a+=": "+q.message);if(q.stack)a:{q=q.stack;var w=a;try{q.indexOf(w)==-1&&(q=w+"\n"+q);for(var G;q!=G;)G=q,q=q.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");a=q.replace(/\n */g,"\n");break a}catch(k){a=w;break a}a=void 0}return a}; x$=function(q){MUm.call(this,Error(q),{message:q})}; zmc=function(){rp&&typeof rp.google_measure_js_timing!="undefined"&&(rp.google_measure_js_timing||mG.disable())}; inj=function(q){Ao.s4=function(a){g.WR(q,function(w){w(a)})}}; W4y=function(q,a){return vAV(q,a)}; rY=function(q,a){return Bl(q,a)}; n3=function(q,a,w,G){Ao.EO(q,a,w,G)}; Mr=function(){return Date.now()-DPc}; RmV=function(){var q=wY().W,a=ho>=0?Mr()-ho:-1,w=Ss?Mr()-f3:-1,G=Hl>=0?Mr()-Hl:-1;if(q==947190542)return 100;if(q==79463069)return 200;q=[2E3,4E3];var k=[250,500,1E3];n3(637,Error(),.001);var b=a;w!=-1&&w1500&&G<4E3?500:O}; cl=function(q,a,w){var G=new Ha(0,0,0,0);this.time=q;this.volume=null;this.W=a;this.V=G;this.U=w}; p3=function(q,a,w,G,k,b,O,e){this.Y=q;this.X=a;this.W=w;this.L=G;this.V=k;this.D=b;this.U=O;this.S=e}; qd_=function(q){var a=q!==q.top,w=q.top===Def(q),G=-1,k=0;if(a&&w&&q.top.mraid){G=3;var b=q.top.mraid}else G=(b=q.mraid)?a?w?2:1:0:-1;b&&(b.IS_GMA_SDK||(k=2),MyG(yMl,function(O){return typeof b[O]==="function"})||(k=1)); return{Kd:b,compatibility:k,c$7:G}}; geU=function(){var q=window.document;return q&&typeof q.elementFromPoint==="function"}; aDy=function(q,a,w){if(q&&a!==null&&a!=a.top){if(!a.top)return new g.t7(-12245933,-12245933);a=a.top}try{return(w===void 0?0:w)?(new g.t7(a.innerWidth,a.innerHeight)).round():hIG(a||window).round()}catch(G){return new g.t7(-12245933,-12245933)}}; Uk=function(q,a,w){try{if(q){if(!a.top)return new Ha(-12245933,-12245933,-12245933,-12245933);a=a.top}var G=aDy(q,a,w),k=G.height,b=G.width;if(b===-12245933)return new Ha(b,b,b,b);var O=gp(a.document);var e=f7G(O.V);var N=e.x,Y=e.y;return new Ha(Y,N+b,Y+k,N)}catch(P){return new Ha(-12245933,-12245933,-12245933,-12245933)}}; js=function(q,a){a=Math.pow(10,a);return Math.floor(q*a)/a}; wUN=function(q){return new Ha(q.top,q.right,q.bottom,q.left)}; G5U=function(q){var a=q.top||0,w=q.left||0;return new Ha(a,w+(q.width||0),a+(q.height||0),w)}; on=function(q){return q!=null&&q>=0&&q<=1}; k5J=function(){var q=g.cL();return q?In("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;Version/8.0 Safari/601.1 WPE;WebOS".split(";"),function(a){return hV(q,a)})||hV(q,"OMI/")&&!hV(q,"XiaoMi/")?!0:hV(q,"Presto")&&hV(q,"Linux")&&!hV(q,"X11")&&!hV(q,"Android")&&!hV(q,"Mobi"):!1}; bQm=function(){this.W=!bF(rp.top);this.isMobileDevice=lF()||RIN();var q=PU();this.domain=q.length>0&&q[q.length-1]!=null&&q[q.length-1].url!=null?g.Nr(q[q.length-1].url)||"":"";this.V=new Ha(0,0,0,0);this.Y=new g.t7(0,0);this.D=new g.t7(0,0);this.X=new Ha(0,0,0,0);this.frameOffset=new g.Is(0,0);this.L=0;this.S=!1;this.U=!(!rp||!qd_(rp).Kd);this.update(rp)}; OQ_=function(q,a){a&&a.screen&&(q.Y=new g.t7(a.screen.width,a.screen.height))}; lDG=function(q,a){a:{var w=q.V?new g.t7(ca(q.V),q.V.getHeight()):new g.t7(0,0);a=a===void 0?rp:a;a!==null&&a!=a.top&&(a=a.top);var G=0,k=0;try{var b=a.document,O=b.body,e=b.documentElement;if(b.compatMode=="CSS1Compat"&&e.scrollHeight)G=e.scrollHeight!=w.height?e.scrollHeight:e.offsetHeight,k=e.scrollWidth!=w.width?e.scrollWidth:e.offsetWidth;else{var N=e.scrollHeight,Y=e.scrollWidth,P=e.offsetHeight,K=e.offsetWidth;e.clientHeight!=P&&(N=O.scrollHeight,Y=O.scrollWidth,P=O.offsetHeight,K=O.offsetWidth); N>w.height?N>P?(G=N,k=Y):(G=P,k=K):N0||q.S)return!0;q=VN().U.isVisible();var a=ke(to)===0;return q||a}; u6=function(){return ZD(bQm)}; z7=function(q){this.W=q;this.U=0;this.V=null}; i6=function(q,a,w){this.W=q;this.Tl=w===void 0?"na":w;this.D=[];this.isInitialized=!1;this.Y=new cl(-1,!0,this);this.V=this;this.S=a;this.F9=this.J=!1;this.f7="uk";this.jt=!1;this.L=!0}; Wl=function(q,a){g.Vx(q.D,a)||(q.D.push(a),a.BP(q.V),a.Ml(q.Y),a.lR()&&(q.J=!0))}; e0_=function(q){q=q.V;q.vn();q.i$();var a=u6();a.X=Uk(!1,q.W,a.isMobileDevice);lDG(u6(),q.W);q.Y.V=q.Aj()}; Nhc=function(q){q.J=q.D.length?In(q.D,function(a){return a.lR()}):!1}; Ydj=function(q){var a=g.nw(q.D);g.WR(a,function(w){w.Ml(q.Y)})}; D9=function(q){var a=g.nw(q.D);g.WR(a,function(w){w.BP(q.V)}); q.V!=q||Ydj(q)}; Rn=function(q,a,w,G){this.element=q;this.V=new Ha(0,0,0,0);this.W=null;this.L=new Ha(0,0,0,0);this.U=a;this.H5=w;this.jt=G;this.y7=!1;this.timestamp=-1;this.J=new p3(a.Y,this.element,this.V,new Ha(0,0,0,0),0,0,Mr(),0);this.D=void 0}; PFU=function(q,a){return q.D?new Ha(Math.max(a.top+q.D.top,a.top),Math.min(a.left+q.D.right,a.right),Math.min(a.top+q.D.bottom,a.bottom),Math.max(a.left+q.D.left,a.left)):a.clone()}; y6=function(q){this.D=!1;this.V=q;this.Y=function(){}}; KtG=function(q,a,w){this.W=w===void 0?0:w;this.U=q;this.V=a==null?"":a}; dzm=function(q){switch(Math.trunc(q.W)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; Thm=function(q,a){return q.Wa.W?!1:q.Ua.U?!1:typeof q.Vtypeof a.V?!1:q.V0?G[w]-G[w-1]:G[w]})}; PQ=function(){this.U=new ba;this.Tl=this.L7=0;this.St=new kY;this.UK=this.X=-1;this.BT=1E3;this.IW=new ba([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.f7=this.y7=-1}; K$=function(q,a){return QTU(q.U,a===void 0?!0:a)}; dB=function(q,a,w,G){var k=k===void 0?!1:k;w=Bl(G,w);G5(q,a,w,{capture:k})}; $Y=function(q,a){a=Tr(a);return a===0?0:Tr(q)/a}; Tr=function(q){return Math.max(q.bottom-q.top,0)*Math.max(q.right-q.left,0)}; Ltj=function(q,a){if(!q||!a)return!1;for(var w=0;q!==null&&w++<100;){if(q===a)return!0;try{if(q=q.parentElement||q){var G=qP(q),k=G&&YA(G),b=k&&k.frameElement;b&&(q=b)}}catch(O){break}}return!1}; BhU=function(q,a,w){if(!q||!a)return!1;a=UN(q.clone(),-a.left,-a.top);q=(a.left+a.right)/2;a=(a.top+a.bottom)/2;bF(window.top)&&window.top&&window.top.document&&(window=window.top);if(!geU())return!1;q=window.document.elementFromPoint(q,a);if(!q)return!1;a=(a=(a=qP(w))&&a.defaultView&&a.defaultView.frameElement)&&Ltj(a,q);var G=q===w;q=!G&&q&&VD(q,function(k){return k===w}); return!(a||G||q)}; LCj=function(q,a,w,G){return u6().W?!1:ca(q)<=0||q.getHeight()<=0?!0:w&&G?W4y(208,function(){return BhU(q,a,w)}):!1}; sA=function(q,a,w){g.c.call(this);this.position=Bam.clone();this.Q5=this.F$();this.Lz=-2;this.timeCreated=Date.now();this.PO=-1;this.qT=a;this.mu=null;this.KK=!1;this.XD=null;this.opacity=-1;this.requestSource=w;this.zPt=!1;this.eP=function(){}; this.W2=function(){}; this.dl=new UeV;this.dl.Vn=q;this.dl.V=q;this.P3=!1;this.WY={bU:null,gU:null};this.Fn=!0;this.H8=null;this.OI=this.kR=!1;wY().L++;this.ow=this.VG();this.Xn=-1;this.e4=null;this.hasCompleted=this.Ns=!1;this.H5=new JV;XJm(this.H5);rnj(this);this.requestSource==1?Q2(this.H5,"od",1):Q2(this.H5,"od",0)}; rnj=function(q){q=q.dl.Vn;var a;if(a=q&&q.getAttribute)a=/-[a-z]/.test("googleAvInapp")?!1:n0G&&q.dataset?"googleAvInapp"in q.dataset:q.hasAttribute?q.hasAttribute("data-"+deG()):!!q.getAttribute("data-"+deG());a&&(u6().U=!0)}; Fw=function(q,a){a!=q.OI&&(q.OI=a,q=u6(),a?q.L++:q.L>0&&q.L--)}; MnU=function(q,a){if(q.e4){if(a.getName()===q.e4.getName())return;q.e4.dispose();q.e4=null}a=a.create(q.dl.V,q.H5,q.lR());if(a=a!=null&&a.observe()?a:null)q.e4=a}; hic=function(q,a,w){if(!q.mu||q.qT==-1||a.U===-1||q.mu.U===-1)return 0;q=a.U-q.mu.U;return q>w?0:q}; SzN=function(q,a,w){if(q.e4){q.e4.JO();var G=q.e4.J,k=G.Y,b=k.V;if(G.L!=null){var O=G.W;q.XD=new g.Is(O.left-b.left,O.top-b.top)}b=q.Gw()?Math.max(G.V,G.D):G.V;O={};k.volume!==null&&(O.volume=k.volume);k=q.nI(G);q.mu=G;q.NB(b,a,w,!1,O,k,G.S)}}; fLN=function(q){if(q.KK&&q.H8){var a=AV(q.H5,"od")==1,w=u6().V,G=q.H8,k=q.e4?q.e4.getName():"ns",b=q.XD,O=new g.t7(ca(w),w.getHeight());w=q.Gw();q={tZG:k,XD:b,HW7:O,Gw:w,EB:q.ow.EB,YPG:a};if(a=G.U){a.JO();k=a.J;b=k.Y.V;var e=O=null;k.L!=null&&b&&(O=k.W,O=new g.Is(O.left-b.left,O.top-b.top),e=new g.t7(b.right-b.left,b.bottom-b.top));k=w?Math.max(k.V,k.D):k.V;w={tZG:a.getName(),XD:O,HW7:e,Gw:w,YPG:!1,EB:k}}else w=null;w&&V0y(G,q,w)}}; Hij=function(q,a,w){a&&(q.eP=a);w&&(q.W2=w)}; g.C$=function(){}; g.my=function(q){return{value:q,done:!1}}; cnl=function(){this.Y=this.V=this.W=this.U=this.D=0}; p3N=function(q){var a={};var w=g.Kw()-q.D;a=(a.ptlt=w,a);(w=q.U)&&(a.pnk=w);(w=q.W)&&(a.pnc=w);(w=q.Y)&&(a.pnmm=w);(q=q.V)&&(a.pns=q);return a}; U0J=function(){RB.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; Qi=function(q){return on(q.volume)&&q.volume>0}; Ak=function(q,a,w,G){w=w===void 0?!0:w;G=G===void 0?function(){return!0}:G; return function(k){var b=k[q];if(Array.isArray(b)&&G(k))return X3l(b,a,w)}}; xY=function(q,a){return function(w){return a(w)?w[q]:void 0}}; jLV=function(q){return function(a){for(var w=0;w0?b[k-1]+1:0,G+1).reduce(function(O,e){return O+e},0)})}; o0m=function(){this.U=this.V=""}; ILm=function(){}; BQ=function(q,a){var w={};if(q!==void 0)if(a!=null)for(var G in a){var k=a[G];G in Object.prototype||k!=null&&(w[G]=typeof k==="function"?k(q):q[k])}else g.FE(w,q);return ad(gB(new qQ,w))}; uiV=function(){var q={};this.U=(q.vs=[1,0],q.vw=[0,1],q.am=[2,2],q.a=[4,4],q.f=[8,8],q.bm=[16,16],q.b=[32,32],q.avw=[0,64],q.avs=[64,0],q.pv=[256,256],q.gdr=[0,512],q.p=[0,1024],q.r=[0,2048],q.m=[0,4096],q.um=[0,8192],q.ef=[0,16384],q.s=[0,32768],q.pmx=[0,16777216],q.mut=[33554432,33554432],q.umutb=[67108864,67108864],q.tvoff=[134217728,134217728],q);this.V={};for(var a in this.U)this.U[a][1]>0&&(this.V[a]=0);this.W=0}; rB=function(q,a){var w=q.U[a],G=w[1];q.W+=w[0];G>0&&q.V[a]==0&&(q.V[a]=1)}; tnc=function(q){var a=g.bb(q.U),w=0,G;for(G in q.V)g.Vx(a,G)&&q.V[G]==1&&(w+=q.U[G][1],q.V[G]=2);return w}; v0c=function(q){var a=0,w;for(w in q.V){var G=q.V[w];if(G==1||G==2)a+=q.U[w][1]}return a}; n$=function(){this.V=this.U=0}; MQ=function(){PQ.call(this);this.W=new kY;this.le=this.J=this.jt=0;this.S=-1;this.VN=new kY;this.D=new kY;this.V=new ba;this.L=this.Y=-1;this.F9=new kY;this.BT=2E3;this.EK=new n$;this.h2=new n$;this.A2=new n$}; hk=function(q,a,w){var G=q.le;Ss||w||q.S==-1||(G+=a-q.S);return G}; zi_=function(){this.W=!1}; Sk=function(q,a){this.W=!1;this.Y=q;this.J=a;this.D=0}; f$=function(q,a){Sk.call(this,q,a);this.X=[]}; iiG=function(){}; cQ=function(){}; p$=function(q,a,w,G){Rn.call(this,q,a,w,G)}; UA=function(q,a,w){Rn.call(this,null,q,a,w);this.S=q.isActive();this.X=0}; Xw=function(q){return[q.top,q.left,q.bottom,q.right]}; jk=function(q,a,w,G,k,b){b=b===void 0?new cQ:b;sA.call(this,a,w,G);this.Zn=k;this.KY=0;this.Rw={};this.h$=new uiV;this.DF={};this.JL="";this.A2=null;this.uF=!1;this.V=[];this.Sj=b.U();this.L=b.W();this.Y=null;this.W=-1;this.Tl=this.J=void 0;this.UK=this.F9=0;this.f7=-1;this.BT=this.h2=!1;this.jt=this.S=this.U=this.sG=this.OA=0;new ba;this.EK=this.le=0;this.St=-1;this.LF=0;this.X=g.MP;this.y7=[this.F$()];this.w$=2;this.Td={};this.Td.pause="p";this.Td.resume="r";this.Td.skip="s";this.Td.mute="m";this.Td.unmute= "um";this.Td.exitfullscreen="ef";this.D=null;this.IW=this.VN=!1;this.yN=Math.floor(Date.now()/1E3-1704067200);this.L7=0}; od=function(q){q.hasCompleted=!0;q.LF!=0&&(q.LF=3)}; Id=function(q){return q===void 0?q:Number(q)?js(q,3):0}; ua=function(q,a){return q.y7[a!=null&&aMath.max(1E4,q.W/3)?0:a);var w=q.X(q)||{};w=w.currentTime!==void 0?w.currentTime:q.F9;var G=w-q.F9,k=0;G>=0?(q.UK+=a,q.EK+=Math.max(a-G,0),k=Math.min(G,q.UK)):q.le+=Math.abs(G);G!=0&&(q.UK=0);q.St==-1&&G>0&&(q.St=Hl>=0?Mr()-Hl:-1);q.F9=w;return k}; Riy=function(q,a){In(q.L,function(w){return w.Y==a.Y})||q.L.push(a)}; ync=function(q){var a=ek(q.iD().V,1);return tk(q,a)}; tk=function(q,a,w){return a>=15E3?!0:q.h2?(w===void 0?0:w)?!0:q.W>0?a>=q.W/2:q.f7>0?a>=q.f7:!1:!1}; qgj=function(q){var a=js(q.ow.EB,2),w=q.h$.W,G=q.ow,k=ua(q),b=Id(k.Y),O=Id(k.L),e=Id(G.volume),N=js(k.X,2),Y=js(k.UK,2),P=js(G.EB,2),K=js(k.y7,2),d=js(k.f7,2);G=js(G.bO,2);var T=q.LU().clone().round();q=q.e4&&q.e4.W?(q.e4?q.e4.W:null).clone().round():null;k=K$(k,!1);return{j8T:a,B7:w,cZ:b,OR:O,RX:e,Gx:N,uB:Y,EB:P,jM:K,WZ:d,bO:G,position:T,kB:q,RV:k}}; a$m=function(q,a){gNc(q.V,a,function(){return{j8T:0,B7:void 0,cZ:-1,OR:-1,RX:-1,Gx:-1,uB:-1,EB:-1,jM:-1,WZ:-1,bO:-1,position:void 0,kB:void 0,RV:[]}}); q.V[a]=qgj(q)}; gNc=function(q,a,w){for(var G=q.length;G0?1:0;K.atos= OA(Y.V);K.ssb=OA(Y.IW,!1);K.amtos=QTU(Y.V,!1);K.uac=q.OA;K.vpt=Y.W.V;P=="nio"&&(K.nio=1,K.avms="nio");K.gmm="4";K.gdr=tk(q,Y.W.V,!0)?1:0;K.efpf=q.w$;if(P=="gsv"||P=="nis")P=q.e4,P.X>0&&(K.nnut=P.X);K.tcm=WCc(q);K.nmt=q.le;K.bt=q.EK;K.pst=q.St;K.vpaid=q.J;K.dur=q.W;K.vmtime=q.F9;K.is=q.h$.W;q.V.length>=1&&(K.i0=q.V[0].B7,K.a0=[q.V[0].RX],K.c0=[q.V[0].EB],K.ss0=[q.V[0].bO],P=q.V[0].position,b=q.V[0].kB,K.p0=P?Xw(P):void 0,P&&b&&!pn(b,P)&&(K.cp0=Xw(b)));q.V.length>=2&&(K.i1=q.V[1].B7,K.a1=ia(q.V[1].cZ, q.V[1].RX,q.V[1].OR),K.c1=ia(q.V[1].Gx,q.V[1].EB,q.V[1].uB),K.ss1=ia(q.V[1].jM,q.V[1].bO,q.V[1].WZ),P=q.V[1].position,b=q.V[1].kB,K.p1=P?Xw(P):void 0,P&&b&&!pn(b,P)&&(K.cp1=Xw(b)),K.mtos1=q.V[1].RV);q.V.length>=3&&(K.i2=q.V[2].B7,K.a2=ia(q.V[2].cZ,q.V[2].RX,q.V[2].OR),K.c2=ia(q.V[2].Gx,q.V[2].EB,q.V[2].uB),K.ss2=ia(q.V[2].jM,q.V[2].bO,q.V[2].WZ),P=q.V[2].position,b=q.V[2].kB,K.p2=P?Xw(P):void 0,P&&b&&!pn(b,P)&&(K.cp2=Xw(b)),K.mtos2=q.V[2].RV);q.V.length>=4&&(K.i3=q.V[3].B7,K.a3=ia(q.V[3].cZ,q.V[3].RX, q.V[3].OR),K.c3=ia(q.V[3].Gx,q.V[3].EB,q.V[3].uB),K.ss3=ia(q.V[3].jM,q.V[3].bO,q.V[3].WZ),P=q.V[3].position,b=q.V[3].kB,K.p3=P?Xw(P):void 0,P&&b&&!pn(b,P)&&(K.cp3=Xw(b)),K.mtos3=q.V[3].RV);K.cs=v0c(q.h$);a&&(K.ic=tnc(q.h$),K.dvpt=Y.W.U,K.dvs=YY(Y.U,.5),K.dfvs=YY(Y.U,1),K.davs=YY(Y.V,.5),K.dafvs=YY(Y.V,1),w&&(Y.W.U=0,AHl(Y.U),AHl(Y.V)),q.Ps()&&(K.dtos=Y.jt,K.dav=Y.J,K.dtoss=q.KY+1,w&&(Y.jt=0,Y.J=0,q.KY++)),K.dat=Y.D.U,K.dft=Y.F9.U,w&&(Y.D.U=0,Y.F9.U=0));K.ps=[e.D.width,e.D.height];K.bs=[ca(e.V),e.V.getHeight()]; K.scs=[e.Y.width,e.Y.height];K.dom=e.domain;q.sG&&(K.vds=q.sG);if(q.L.length>0||q.Sj)a=g.nw(q.L),q.Sj&&a.push(q.Sj),K.pings=g.sd(a,function(d){return d.toString()}); a=g.sd(g.L$(q.L,function(d){return d.L()}),function(d){return d.getId()}); Q_c(a);K.ces=a;q.U&&(K.vmer=q.U);q.S&&(K.vmmk=q.S);q.jt&&(K.vmiec=q.jt);K.avms=q.e4?q.e4.getName():"ns";q.e4&&g.FE(K,q.e4.v3());G?(K.c=js(q.ow.EB,2),K.ss=js(q.ow.bO,2)):K.tth=Mr()-blJ;K.mc=js(Y.UK,2);K.nc=js(Y.X,2);K.mv=Id(Y.L);K.nv=Id(Y.Y);K.lte=js(q.Lz,2);G=ua(q,k);K$(Y);K.qmtos=K$(G);K.qnc=js(G.X,2);K.qmv=Id(G.L);K.qnv=Id(G.Y);K.qas=G.Y>0?1:0;K.qi=q.JL;K.avms||(K.avms="geo");K.psm=Y.EK.V;K.psv=Y.EK.getValue();K.psfv=Y.h2.getValue();K.psa=Y.A2.getValue();N=pJf(N.H5);N.length&&(K.veid=N);q.D&&g.FE(K, p3N(q.D));K.avas=q.SU();K.vs=q.sW();K.co=OlN(q);K.tm=Y.L7;K.tu=Y.Tl;return K}; w$f=function(q,a){if(g.Vx(l$y,a))return!0;var w=q.Rw[a];return w!==void 0?(q.Rw[a]=!0,!w):!1}; OlN=function(q){var a=q.L7.toString(10).padStart(2,"0");a=""+q.yN+a;q.L7<99&&q.L7++;return a}; Nbf=function(){this.V={};var q=YA();WQ(this,q,document);var a=evK();try{if("1"==a){for(var w=q.parent;w!=q.top;w=w.parent)WQ(this,w,w.document);WQ(this,q.top,q.top.document)}}catch(G){}}; evK=function(){var q=document.documentElement;try{if(!bF(YA().top))return"2";var a=[],w=YA(q.ownerDocument);for(q=w;q!=w.top;q=q.parent)if(q.frameElement)a.push(q.frameElement);else break;return a&&a.length!=0?"1":"0"}catch(G){return"2"}}; WQ=function(q,a,w){dB(w,"mousedown",function(){return YgV(q)},301); dB(a,"scroll",function(){return PQc(q)},302); dB(w,"touchmove",function(){return KAm(q)},303); dB(w,"mousemove",function(){return duG(q)},304); dB(w,"keydown",function(){return Tbm(q)},305)}; YgV=function(q){g.yx(q.V,function(a){a.W>1E5||++a.W})}; PQc=function(q){g.yx(q.V,function(a){a.V>1E5||++a.V})}; KAm=function(q){g.yx(q.V,function(a){a.V>1E5||++a.V})}; Tbm=function(q){g.yx(q.V,function(a){a.U>1E5||++a.U})}; duG=function(q){g.yx(q.V,function(a){a.Y>1E5||++a.Y})}; $uU=function(){this.V=[];this.U=[]}; DO=function(q,a){return g.Z7(q.V,function(w){return w.JL==a})}; sjl=function(q,a){return a?g.Z7(q.V,function(w){return w.dl.Vn==a}):null}; FAj=function(q,a){return g.Z7(q.U,function(w){return w.BC()==2&&w.JL==a})}; yi=function(){var q=Rd;return q.V.length==0?q.U:q.U.length==0?q.V:g.ry(q.U,q.V)}; CQ_=function(q,a){q=a.BC()==1?q.V:q.U;var w=Cw(q,function(G){return G==a}); return w!=-1?(q.splice(w,1),a.e4&&a.e4.unobserve(),a.dispose(),!0):!1}; Zlm=function(q){var a=Rd;if(CQ_(a,q)){switch(q.BC()){case 0:var w=function(){return null}; case 2:w=function(){return FAj(a,q.JL)}; break;case 1:w=function(){return DO(a,q.JL)}}for(var G=w();G;G=w())CQ_(a,G)}}; ENG=function(q){var a=Rd;q=g.L$(q,function(w){return!sjl(a,w.dl.Vn)}); a.V.push.apply(a.V,g.Tf(q))}; V8l=function(q){var a=[];g.WR(q,function(w){In(Rd.V,function(G){return G.dl.Vn===w.dl.Vn&&G.JL===w.JL})||(Rd.V.push(w),a.push(w))})}; qE=function(){this.V=this.U=null}; JYf=function(q,a){function w(G,k){a(G,k)} if(q.U==null)return!1;q.V=g.Z7(q.U,function(G){return G!=null&&G.Lw()}); q.V&&(q.V.init(w)?e0_(q.V.V):a(q.V.V.gK(),q.V));return q.V!=null}; gX=function(q){q=mu_(q);y6.call(this,q.length?q[q.length-1]:new i6(rp,0));this.W=q;this.U=null}; mu_=function(q){if(!q.length)return[];q=(0,g.L$)(q,function(w){return w!=null&&w.l8()}); for(var a=1;aw.time?a:w},q[0])}; kT=function(q){q=q===void 0?rp:q;y6.call(this,new i6(q,2))}; bu=function(){var q=LAJ();i6.call(this,rp.top,q,"geo")}; LAJ=function(){wY();var q=u6();return q.W||q.U?0:2}; BbU=function(){}; OQ=function(){this.done=!1;this.V={U1:0,TE:0,dlT:0,Kf:0,AA:-1,Zu:0,z1:0,Bp:0,DH7:0};this.D=null;this.L=!1;this.W=null;this.X=0;this.U=new z7(this)}; e_=function(){var q=lu;q.L||(q.L=!0,rYc(q,function(){return q.Y.apply(q,g.Tf(g.XU.apply(0,arguments)))}),q.Y())}; nNl=function(){ZD(BbU);var q=ZD(qE);q.V!=null&&q.V.V?e0_(q.V.V):u6().update(rp)}; NE=function(q,a,w){if(!q.done&&(q.U.cancel(),a.length!=0)){q.W=null;try{nNl();var G=Mr();wY().D=G;if(ZD(qE).V!=null)for(var k=0;k=0?Mr()-ho:-1,e=Mr();k.V.AA==-1&&(O=e);var N=u6(),Y=wY(),P=xI(Y.H5),K=yi();try{if(K.length>0){var d=N.V;d&&(P.bs=[ca(d),d.getHeight()]);var T=N.D;T&&(P.ps=[T.width,T.height]);rp.screen&&(P.scs=[rp.screen.width,rp.screen.height])}else P.url=encodeURIComponent(rp.location.href.substring(0,512)),b.referrer&&(P.referrer=encodeURIComponent(b.referrer.substring(0,512))); P.tt=O;P.pt=ho;P.bin=Y.U;rp.google_osd_load_pub_page_exp!==void 0&&(P.olpp=rp.google_osd_load_pub_page_exp);P.deb=[1,k.V.U1,k.V.TE,k.V.Kf,k.V.AA,0,k.U.U,k.V.Zu,k.V.z1,k.V.Bp,k.V.DH7,-1].join(";");P.tvt=hvc(k,e);N.U&&(P.inapp=1);if(rp!==null&&rp!=rp.top){K.length>0&&(P.iframe_loc=encodeURIComponent(rp.location.href.substring(0,512)));var F=N.X;P.is=[ca(F),F.getHeight()]}}catch(J){P.error=1}lu.W=P}d=g.$I(lu.W);T=wY().V;AV(T.W,"prf")==1?(F=new gY,k=T.V,b=0,k.V>-1&&(b=k.W.V.now()-k.V),F=Nu(F,1,N0(k.Y+ b),0),k=T.V,F=Nu(F,5,da(k.V>-1?k.U+1:k.U),0),F=Nu(F,2,Jn(T.U.V.W()),"0"),F=Nu(F,3,Jn(T.U.V.U()),"0"),T=Nu(F,4,Jn(T.U.V.V()),"0"),F={},T=(F.pf=g.AH(T.W()),F)):T={};g.FE(d,T);g.FE(a,G,w,d,q())}])}; Hl_=function(){var q=f$c||rp;if(!q)return"";var a=[];if(!q.location||!q.location.href)return"";a.push("url="+encodeURIComponent(q.location.href.substring(0,512)));q.document&&q.document.referrer&&a.push("referrer="+encodeURIComponent(q.document.referrer.substring(0,512)));return a.join("&")}; PN=function(){var q="youtube.player.web_20250804_21_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20250804_21_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20250804_21_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20250804_21_RC00".match(/_(\d{8})_\d+_RC\d+$/),a;if(((a=q)==null?void 0:a.length)==2)return q[1];q="youtube.player.web_20250804_21_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var w;return((w=q)==null?void 0:w.length)==3?"20"+q[1]+q[2]:null}; cYm=function(){return"av.default_js".includes("ima_html5_sdk")?{n6:"ima",M5:null}:"av.default_js".includes("ima_native_sdk")?{n6:"nima",M5:null}:"av.default_js".includes("admob-native-video-javascript")?{n6:"an",M5:null}:"youtube.player.web_20250804_21_RC00".includes("cast_js_sdk")?{n6:"cast",M5:PN()}:"youtube.player.web_20250804_21_RC00".includes("youtube.player.web")?{n6:"yw",M5:PN()}:"youtube.player.web_20250804_21_RC00".includes("outstream_web_client")?{n6:"out",M5:PN()}:"youtube.player.web_20250804_21_RC00".includes("drx_rewarded_web")? {n6:"r",M5:PN()}:"youtube.player.web_20250804_21_RC00".includes("gam_native_web_video")?{n6:"n",M5:PN()}:"youtube.player.web_20250804_21_RC00".includes("admob_interstitial_video")?{n6:"int",M5:PN()}:{n6:"j",M5:null}}; T$=function(q,a){var w={sv:"968"};K7!==null&&(w.v=K7);w.cb=p$y;w.nas=Rd.V.length;w.msg=q;a!==void 0&&(q=UuU(a))&&(w.e=dX[q]);return w}; $T=function(q){return BL(q,"custom_metric_viewable")}; UuU=function(q){var a=$T(q)?"custom_metric_viewable":q.toLowerCase();return PL(vQ,function(w){return w==a})}; X$l=function(){this.V=void 0;this.U=!1;this.W=0;this.Y=-1;this.D="tos"}; I$j=function(q){try{var a=q.split(",");return a.length>g.bb(jjG).length?null:CQ(a,function(w,G){G=G.toLowerCase().split("=");if(G.length!=2||oNm[G[0]]===void 0||!oNm[G[0]](G[1]))throw Error("Entry ("+G[0]+", "+G[1]+") is invalid.");w[G[0]]=G[1];return w},{})}catch(w){return null}}; uJc=function(q,a){if(q.V==void 0)return 0;switch(q.D){case "mtos":return q.U?NQ(a.V,q.V):NQ(a.U,q.V);case "tos":return q.U?ek(a.V,q.V):ek(a.U,q.V)}return 0}; sQ=function(q,a,w,G){Sk.call(this,a,G);this.X=q;this.S=w}; Fc=function(){}; C7=function(q){Sk.call(this,"fully_viewable_audible_half_duration_impression",q)}; ZA=function(q){this.V=q}; EQ=function(q,a){Sk.call(this,q,a)}; VR=function(q){f$.call(this,"measurable_impression",q)}; Jp=function(){ZA.apply(this,arguments)}; mc=function(q,a,w){UA.call(this,q,a,w)}; QR=function(q){q=q===void 0?rp:q;y6.call(this,new i6(q,2))}; Ap=function(q,a,w){UA.call(this,q,a,w)}; xT=function(q){q=q===void 0?rp:q;y6.call(this,new i6(q,2))}; L7=function(){i6.call(this,rp,2,"mraid");this.EK=0;this.UK=this.y7=!1;this.X=null;this.U=qd_(this.W);this.Y.V=new Ha(0,0,0,0);this.L7=!1}; BN=function(q,a,w){q.Mp("addEventListener",a,w)}; ilm=function(q){wY().Y=!!q.Mp("isViewable");BN(q,"viewableChange",t8U);q.Mp("getState")==="loading"?BN(q,"ready",vNK):zvl(q)}; zvl=function(q){typeof q.U.Kd.AFMA_LIDAR==="string"?(q.y7=!0,WAf(q)):(q.U.compatibility=3,q.X="nc",q.fail("w"))}; WAf=function(q){q.UK=!1;var a=AV(wY().H5,"rmmt")==1,w=!!q.Mp("isViewable");(a?!w:1)&&VN().setTimeout(rY(524,function(){q.UK||(DuU(q),n3(540,Error()),q.X="mt",q.fail("w"))}),500); RvJ(q);BN(q,q.U.Kd.AFMA_LIDAR,yYc)}; RvJ=function(q){var a=AV(wY().H5,"sneio")==1,w=q.U.Kd.AFMA_LIDAR_EXP_1!==void 0,G=q.U.Kd.AFMA_LIDAR_EXP_2!==void 0;(a=a&&G)&&(q.U.Kd.AFMA_LIDAR_EXP_2=!0);w&&(q.U.Kd.AFMA_LIDAR_EXP_1=!a)}; DuU=function(q){q.Mp("removeEventListener",q.U.Kd.AFMA_LIDAR,yYc);q.y7=!1}; qKj=function(q,a){if(q.Mp("getState")==="loading")return new g.t7(-1,-1);a=q.Mp(a);if(!a)return new g.t7(-1,-1);q=parseInt(a.width,10);a=parseInt(a.height,10);return isNaN(q)||isNaN(a)?new g.t7(-1,-1):new g.t7(q,a)}; vNK=function(){try{var q=ZD(L7);q.Mp("removeEventListener","ready",vNK);zvl(q)}catch(a){n3(541,a)}}; yYc=function(q,a){try{var w=ZD(L7);w.UK=!0;var G=q?new Ha(q.y,q.x+q.width,q.y+q.height,q.x):new Ha(0,0,0,0);var k=Mr(),b=vl();var O=new cl(k,b,w);O.V=G;O.volume=a;w.Ml(O)}catch(e){n3(542,e)}}; t8U=function(q){var a=wY(),w=ZD(L7);q&&!a.Y&&(a.Y=!0,w.L7=!0,w.X&&w.fail("w",!0))}; rX=function(){this.isInitialized=!1;this.V=this.U=null;var q={};this.X=(q.start=this.o0,q.firstquartile=this.u4,q.midpoint=this.qs,q.thirdquartile=this.YR,q.complete=this.Ua,q.error=this.dD,q.pause=this.zO,q.resume=this.XI,q.skip=this.yw,q.viewable_impression=this.mX,q.mute=this.Zf,q.unmute=this.Zf,q.fullscreen=this.Wy,q.exitfullscreen=this.Oa,q.fully_viewable_audible_half_duration_impression=this.mX,q.measurable_impression=this.mX,q.abandon=this.zO,q.engagedview=this.mX,q.impression=this.mX,q.creativeview= this.mX,q.progress=this.Zf,q.custom_metric_viewable=this.mX,q.bufferstart=this.zO,q.bufferfinish=this.XI,q.audio_measurable=this.mX,q.audio_audible=this.mX,q);q={};this.S=(q.overlay_resize=this.Qw,q.abandon=this.TV,q.close=this.TV,q.collapse=this.TV,q.overlay_unmeasurable_impression=function(a){return zr(a,"overlay_unmeasurable_impression",vl())},q.overlay_viewable_immediate_impression=function(a){return zr(a,"overlay_viewable_immediate_impression",vl())},q.overlay_unviewable_impression=function(a){return zr(a, "overlay_unviewable_impression",vl())},q.overlay_viewable_end_of_session_impression=function(a){return zr(a,"overlay_viewable_end_of_session_impression",vl())},q); wY().U=3;g6y(this);this.W=null}; n7=function(q,a,w,G){q=q.NK(null,G,!0,a);q.Y=w;ENG([q]);return q}; aBl=function(q,a,w){nlc(a);var G=q.V;g.WR(a,function(k){var b=g.sd(k.criteria,function(O){var e=I$j(O);if(e==null)O=null;else if(O=new X$l,e.visible!=null&&(O.V=e.visible/100),e.audible!=null&&(O.U=e.audible==1),e.time!=null){var N=e.timetype=="mtos"?"mtos":"tos",Y=j_y(e.time,"%")?"%":"ms";e=parseInt(e.time,10);Y=="%"&&(e/=100);O.setTime(e,Y,N)}return O}); In(b,function(O){return O==null})||Riy(w,new sQ(k.id,k.event,b,G))})}; wIc=function(){var q=[],a=wY();q.push(ZD(bu));AV(a.H5,"mvp_lv")&&q.push(ZD(L7));a=[new QR,new xT];a.push(new gX(q));a.push(new kT(rp));return a}; GNU=function(q){if(!q.isInitialized){q.isInitialized=!0;try{var a=Mr(),w=wY(),G=u6();ho=a;w.W=79463069;q.U!=="o"&&(f$c=Def(rp));if(Tnm()){lu.V.TE=0;lu.V.AA=Mr()-a;var k=wIc(),b=ZD(qE);b.U=k;JYf(b,function(){ME()})?lu.done||(M8j(),Wl(b.V.V,q),e_()):G.W?ME():e_()}else hp=!0}catch(O){throw Rd.reset(),O; }}}; f7=function(q){lu.U.cancel();S_=q;lu.done=!0}; Xc=function(q){if(q.U)return q.U;var a=ZD(qE).V;if(a)switch(a.getName()){case "nis":q.U="n";break;case "gsv":q.U="m"}q.U||(q.U="h");return q.U}; j_=function(q,a,w){if(q.V==null)return a.sG|=4,!1;q=kNV(q.V,w,a);a.sG|=q;return q==0}; ME=function(){var q=[new kT(rp)],a=ZD(qE);a.U=q;JYf(a,function(){f7("i")})?lu.done||(M8j(),e_()):f7("i")}; bbJ=function(q,a){if(!q.uF){var w=zr(q,"start",vl());w=q.Zn.V(w).V;var G={id:"lidarv"};G.r=a;G.sv="968";K7!==null&&(G.v=K7);K3(w,function(k,b){return G[k]=k=="mtos"||k=="tos"?b:encodeURIComponent(b)}); a=Hl_();K3(a,function(k,b){return G[k]=encodeURIComponent(b)}); a="//pagead2.googlesyndication.com/pagead/gen_204?"+ad(gB(new qQ,G));ZQK(a);q.uF=!0}}; oq=function(q,a,w){NE(lu,[q],!vl());a$m(q,w);w!=4&&gNc(q.y7,w,q.F$);return zr(q,a,vl())}; g6y=function(q){Sgl(function(){var a=Obc();q.U!=null&&(a.sdk=q.U);var w=ZD(qE);w.V!=null&&(a.avms=w.V.getName());return a})}; lBc=function(q,a,w,G){var k=sjl(Rd,w);k!==null&&k.JL!==a&&(q.D7(k),k=null);k||(a=q.NK(w,Mr(),!1,a),Rd.U.length==0&&(wY().W=79463069),V8l([a]),k=a,k.Y=Xc(q),G&&(k.A2=G));return k}; erc=function(q,a){var w=q[a];w!==void 0&&w>0&&(q[a]=Math.floor(w*1E3))}; Obc=function(){var q=u6(),a={},w={},G={};return Object.assign({},(a.sv="968",a),K7!==null&&(w.v=K7,w),(G["if"]=q.W?"1":"0",G.nas=String(Rd.V.length),G))}; Iq=function(q){Sk.call(this,"audio_audible",q)}; uu=function(q){f$.call(this,"audio_measurable",q)}; tp=function(){ZA.apply(this,arguments)}; vN=function(){}; NxG=function(q){this.V=q}; kNV=function(q,a,w){q=q.U();if(typeof q==="function"){var G={};var k={};G=Object.assign({},K7!==null&&(G.v=K7,G),(k.sv="968",k.cb=p$y,k.e=YKV(a),k));k=zr(w,a,vl());g.FE(G,k);w.DF[a]=k;G=w.BC()==2?CFJ(G).join("&"):w.Zn.V(G).V;try{return q(w.JL,G,a),0}catch(b){return 2}}else return 1}; YKV=function(q){var a=$T(q)?"custom_metric_viewable":q;q=PL(vQ,function(w){return w==a}); return dX[q]}; z$=function(){rX.call(this);this.L=null;this.D=!1;this.Y="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; P2K=function(q,a,w){w=w.opt_configurable_tracking_events;q.V!=null&&Array.isArray(w)&&aBl(q,w,a)}; K1y=function(q,a,w){var G=DO(Rd,a);G||(G=w.opt_nativeTime||-1,G=n7(q,a,Xc(q),G),w.opt_osdId&&(G.A2=w.opt_osdId));return G}; dMK=function(q,a,w){var G=DO(Rd,a);G||(G=n7(q,a,"n",w.opt_nativeTime||-1));return G}; TxK=function(q,a){var w=DO(Rd,a);w||(w=n7(q,a,"h",-1));return w}; $Mf=function(q){wY();switch(Xc(q)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; C2c=function(q,a,w,G){w=w===void 0?{}:w;var k={};g.FE(k,{opt_adElement:void 0,opt_fullscreen:void 0},w);var b=q.oI(a,w);w=b?b.Zn:q.PD();if(k.opt_bounds)return w.V(T$("ol",G));if(G!==void 0)if(UuU(G)!==void 0)if(hp)q=T$("ue",G);else if(GNU(q),S_=="i")q=T$("i",G),q["if"]=0;else if(a=q.oI(a,k)){b:{S_=="i"&&(a.P3=!0);b=k.opt_fullscreen;b!==void 0&&Fw(a,!!b);var O;if(b=!u6().U)(b=hV(g.cL(),"CrKey")&&!(hV(g.cL(),"CrKey")&&hV(g.cL(),"SmartSpeaker"))||hV(g.cL(),"PlayStation")||hV(g.cL(),"Roku")||k5J()||hV(g.cL(), "Xbox"))||(b=g.cL(),b=hV(b,"AppleTV")||hV(b,"Apple TV")||hV(b,"CFNetwork")||hV(b,"tvOS")),b||(b=g.cL(),b=hV(b,"sdk_google_atv_x86")||hV(b,"Android TV")),b=!b;b&&(VN(),b=ke(to)===0);if(O=b){switch(a.BC()){case 1:bbJ(a,"pv");break;case 2:q.Ya(a)}f7("pv")}b=G.toLowerCase();if(O=!O)O=AV(wY().H5,"ssmol")&&b==="loaded"?!1:g.Vx(sbc,b);if(O&&a.LF==0){S_!="i"&&(lu.done=!1);O=k!==void 0?k.opt_nativeTime:void 0;Hl=O=typeof O==="number"?O:Mr();a.KK=!0;var e=vl();a.LF=1;a.Rw={};a.Rw.start=!1;a.Rw.firstquartile= !1;a.Rw.midpoint=!1;a.Rw.thirdquartile=!1;a.Rw.complete=!1;a.Rw.resume=!1;a.Rw.pause=!1;a.Rw.skip=!1;a.Rw.mute=!1;a.Rw.unmute=!1;a.Rw.viewable_impression=!1;a.Rw.measurable_impression=!1;a.Rw.fully_viewable_audible_half_duration_impression=!1;a.Rw.fullscreen=!1;a.Rw.exitfullscreen=!1;a.KY=0;e||(a.iD().S=O);NE(lu,[a],!e)}(O=a.Td[b])&&rB(a.h$,O);AV(wY().H5,"fmd")||g.Vx(F1j,b)&&a.Sj&&a.Sj.U(a,null);switch(a.BC()){case 1:var N=$T(b)?q.X.custom_metric_viewable:q.X[b];break;case 2:N=q.S[b]}if(N&&(G=N.call(q, a,k,G),AV(wY().H5,"fmd")&&g.Vx(F1j,b)&&a.Sj&&a.Sj.U(a,null),G!==void 0)){k=T$(void 0,b);g.FE(k,G);G=k;break b}G=void 0}a.LF==3&&q.D7(a);q=G}else q=T$("nf",G);else q=void 0;else hp?q=T$("ue"):b?(q=T$(),g.FE(q,GUc(b,!0,!1,!1))):q=T$("nf");return typeof q==="string"?w.V():w.V(q)}; ZbU=function(q,a){a&&(q.Y=a)}; E6m=function(q){var a={};return a.viewability=q.V,a.googleViewability=q.U,a}; Vcc=function(q,a,w){w=w===void 0?{}:w;q=C2c(ZD(z$),a,w,q);return E6m(q)}; iu=function(q){var a=g.XU.apply(1,arguments).filter(Boolean).join("&");if(!a)return q;var w=q.match(/[?&]adurl=/);return w?q.slice(0,w.index+1)+a+"&"+q.slice(w.index+1):q+(q.indexOf("?")<0?"?":"&")+a}; WN=function(q,a){return a?"&"+q+"="+encodeURIComponent(a):""}; Jxf=function(q){var a=q.url;q=q.gV9;this.U=a;this.Y=q;this.W=(new Date).getTime()-17040672E5;this.V={};for(var w=/[?&]([^&=]+)=([^&]*)/g;q=w.exec(a);)this.V[q[1]]=q[2]}; mMm=function(q){q=q.Y;if(!q)return"";var a=WN("uap",q.platform)+WN("uapv",q.platformVersion)+WN("uafv",q.uaFullVersion)+WN("uaa",q.architecture)+WN("uam",q.model)+WN("uab",q.bitness);q.fullVersionList&&(a+="&uafvl="+encodeURIComponent(q.fullVersionList.map(function(w){return encodeURIComponent(w.brand)+";"+encodeURIComponent(w.version)}).join("|"))); q.wow64!=null&&(a+="&uaw="+Number(q.wow64));return a.slice(1)}; xMy=function(q,a,w,G,k){var b=window;var O=O===void 0?!1:O;var e;w?e=(O===void 0?0:O)?"//ep1.adtrafficquality.google/bg/"+rj(w)+".js":"//pagead2.googlesyndication.com/bg/"+rj(w)+".js":e="";O=O===void 0?!1:O;w=b.document;var N={};a&&(N._scs_=a);N._bgu_=e;N._bgp_=G;N._li_="v_h.3.0.0.0";k&&(N._upb_=k);(a=b.GoogleTyFxhY)&&typeof a.push=="function"||(a=b.GoogleTyFxhY=[]);a.push(N);a=gp(w).createElement("SCRIPT");a.type="text/javascript";a.async=!0;q=(O===void 0?0:O)?g.Rs(Qbj,rj(q)+".js"):g.Rs(Axy,rj(q)+ ".js");g.Zv(a,q);(b=(b.GoogleTyFxhYEET||{})[a.src])?b():w.getElementsByTagName("head")[0].appendChild(a)}; L1f=function(){try{var q,a;return!!((q=window)==null?0:(a=q.top)==null?0:a.location.href)&&!1}catch(w){return!0}}; DA=function(q,a,w){w=w===void 0?Error():w;var G=Error.call(this);this.message=G.message;"stack"in G&&(this.stack=G.stack);this.code=q;a+=":";w instanceof Error?(this.message=a+w.message,this.stack=w.stack||""):(this.message=a+String(w),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)}; yR=function(){var q=Bxy();q=q===void 0?"bevasrsg":q;return new Promise(function(a){var w=window===window.top?window:L1f()?window:window.top,G=w[q],k;((k=G)==null?0:k.bevasrs)?a(new Rq(G.bevasrs)):(G||(G={},G=(G.nqfbel=[],G),w[q]=G),G.nqfbel.push(function(b){a(new Rq(b))}))})}; rxl=function(q){var a={c:q.l5,e:q.OC,mc:q.bu,me:q.h3};q.Ik&&(a.co={c:q.Ik.qw,a:q.Ik.Pt,s:q.Ik.HO});return a}; qo=function(q){g.c.call(this);this.wpc=q}; Rq=function(q){g.c.call(this);var a=this;this.IA=q;this.W="keydown keypress keyup input focusin focusout select copy cut paste change click dblclick auxclick pointerover pointerdown pointerup pointermove pointerout dragenter dragleave drag dragend mouseover mousedown mouseup mousemove mouseout touchstart touchend touchmove wheel".split(" ");this.U=void 0;this.Q6=this.IA.p;this.Y=this.FM.bind(this);this.addOnDisposeCallback(function(){return void n6U(a)})}; Mc_=function(q){var a;return g.h(function(w){if(w.U==1){if(!q.IA.wpc)throw new DA(30,"NWA");return q.V?w.return(q.V):g.n(w,q.IA.wpc(),2)}a=w.V;q.V=new qo(a);return w.return(q.V)})}; n6U=function(q){q.U!==void 0&&(q.W.forEach(function(a){var w;(w=q.U)==null||w.removeEventListener(a,q.Y)}),q.U=void 0)}; hrl=function(q){var a=a===void 0?50:a;var w=[];Q1(q,g9,6).forEach(function(G){B$(G,2)<=a&&w.push(B$(G,1))}); return w}; SK_=function(q){var a=a===void 0?50:a;var w=[];Q1(q,g9,6).forEach(function(G){B$(G,2)>a&&w.push(B$(G,1))}); return w}; fBy=function(q){q.then(function(){},function(){})}; au=function(){g.c.apply(this,arguments);this.U=1}; w9=function(q){return{fieldType:2,fieldName:q}}; g.Gy=function(q){return{fieldType:3,fieldName:q}}; Hbl=function(q){this.V=q;q.BX("/client_streamz/bg/frs",g.Gy("mk"))}; cxN=function(q){this.V=q;q.BX("/client_streamz/bg/wrl",g.Gy("mn"),w9("ac"),w9("sc"),g.Gy("rk"),g.Gy("mk"))}; pIl=function(q){this.V=q;q.Uo("/client_streamz/bg/ec",g.Gy("en"),g.Gy("mk"))}; UMj=function(q){this.V=q;q.BX("/client_streamz/bg/el",g.Gy("en"),g.Gy("mk"))}; XIJ=function(q){this.V=q;q.Uo("/client_streamz/bg/cec",w9("ec"),g.Gy("mk"))}; jbl=function(q){this.V=q;q.Uo("/client_streamz/bg/po/csc",w9("cs"),g.Gy("mk"))}; o6j=function(q){this.V=q;q.Uo("/client_streamz/bg/po/ctav",g.Gy("av"),g.Gy("mk"))}; IBm=function(q){this.V=q;q.Uo("/client_streamz/bg/po/cwsc",g.Gy("su"),g.Gy("mk"))}; u$c=function(q){this.r8=IL(q)}; tcm=function(q,a){return L_m(q,a,R3f)}; kF=function(q){this.r8=IL(q)}; bL=function(q){this.r8=IL(q)}; Oh=function(q){this.r8=IL(q)}; lL=function(q){this.r8=IL(q)}; ez=function(q){this.r8=IL(q)}; No=function(q){this.r8=IL(q)}; v6l=function(q){this.r8=IL(q)}; W1m=function(q){var a=new No;a=H$(a,1,q.U);var w=zrU(q);a=L_m(a,w,NjK);w=[];for(var G=[],k=g.V(q.V.keys()),b=k.next();!b.done;b=k.next())G.push(b.value.split(","));for(k=0;k>>31)&4294967295;K=k[0];var F=k[1],J=k[2],Q=k[3],B=k[4];for(T=0;T<80;T++){if(T<40)if(T<20){var L=Q^F&(J^Q);var M=1518500249}else L=F^J^Q,M=1859775393;else T<60?(L=F&J|Q&(F|J),M=2400959708):(L=F^J^Q,M=3395469782);L=((K<<5|K>>>27)&4294967295)+L+B+M+d[T]&4294967295;B=Q;Q=J;J=(F<<30|F>>>2)&4294967295;F=K;K=L}k[0]=k[0]+K&4294967295;k[1]=k[1]+F&4294967295;k[2]= k[2]+J&4294967295;k[3]=k[3]+Q&4294967295;k[4]=k[4]+B&4294967295} function w(K,d){if(typeof K==="string"){K=unescape(encodeURIComponent(K));for(var T=[],F=0,J=K.length;F=56;T--)b[T]=d&255,d>>>=8;a(b);for(T=d=0;T<5;T++)for(var F=24;F>=0;F-=8)K[d++]=k[T]>>F&255;return K} for(var k=[],b=[],O=[],e=[128],N=1;N<64;++N)e[N]=0;var Y,P;q();return{reset:q,update:w,digest:G,uj:function(){for(var K=G(),d="",T=0;T1)));O=O.next)k||(b=O);k&&(w.V==0&&G==1?tsN(w,a):(b?(G=b,G.next==w.Y&&(w.Y=G),G.next=G.next.next):v$U(w),z$l(w,k,3,a)))}q.W=null}else Jt(q,3,a)}; MI=function(q,a){q.U||q.V!=2&&q.V!=3||i3J(q);q.Y?q.Y.next=a:q.U=a;q.Y=a}; WGm=function(q,a,w,G){var k=BO(null,null,null);k.V=new g.LT(function(b,O){k.W=a?function(e){try{var N=a.call(G,e);b(N)}catch(Y){O(Y)}}:b; k.U=w?function(e){try{var N=w.call(G,e);N===void 0&&e instanceof SY?O(e):b(N)}catch(Y){O(Y)}}:O}); k.V.W=q;MI(q,k);return k.V}; Jt=function(q,a,w){q.V==0&&(q===w&&(a=3,w=new TypeError("Promise cannot resolve to itself")),q.V=1,jnc(w,q.IyK,q.J$t,q)||(q.X=w,q.V=a,q.W=null,i3J(q),a!=3||w instanceof SY||DrJ(q,w)))}; jnc=function(q,a,w,G){if(q instanceof g.LT)return uRc(q,a,w,G),!0;if(q)try{var k=!!q.$goog_Thenable}catch(O){k=!1}else k=!1;if(k)return q.then(a,w,G),!0;if(g.bV(q))try{var b=q.then;if(typeof b==="function")return R$_(q,b,a,w,G),!0}catch(O){return w.call(G,O),!0}return!1}; R$_=function(q,a,w,G,k){function b(N){e||(e=!0,G.call(k,N))} function O(N){e||(e=!0,w.call(k,N))} var e=!1;try{a.call(q,O,b)}catch(N){b(N)}}; i3J=function(q){q.L||(q.L=!0,g.VP(q.lj,q))}; v$U=function(q){var a=null;q.U&&(a=q.U,q.U=a.next,a.next=null);q.U||(q.Y=null);return a}; z$l=function(q,a,w,G){if(w==3&&a.U&&!a.Y)for(;q&&q.D;q=q.W)q.D=!1;if(a.V)a.V.W=null,yoK(a,w,G);else try{a.Y?a.W.call(a.context):yoK(a,w,G)}catch(k){qAK.call(null,k)}h$l(Xlj,a)}; yoK=function(q,a,w){a==2?q.W.call(q.context,w):q.U&&q.U.call(q.context,w)}; DrJ=function(q,a){q.D=!0;g.VP(function(){q.D&&qAK.call(null,a)})}; SY=function(q){$c.call(this,q)}; g.fT=function(q,a){g.PO.call(this);this.AL=q||1;this.n5=a||g.yV;this.Ft=(0,g.Ne)(this.kN7,this);this.Kn=g.Kw()}; g.HO=function(q,a,w){if(typeof q==="function")w&&(q=(0,g.Ne)(q,w));else if(q&&typeof q.handleEvent=="function")q=(0,g.Ne)(q.handleEvent,q);else throw Error("Invalid listener argument");return Number(a)>2147483647?-1:g.yV.setTimeout(q,a||0)}; cO=function(q,a){var w=null;return(new g.LT(function(G,k){w=g.HO(function(){G(a)},q); w==-1&&k(Error("Failed to schedule timer."))})).AK(function(G){g.yV.clearTimeout(w); throw G;})}; g.pT=function(q){g.c.call(this);this.X=q;this.Y=0;this.W=100;this.D=!1;this.U=new Map;this.L=new Set;this.flushInterval=3E4;this.V=new g.fT(this.flushInterval);this.V.listen("tick",this.Rf,!1,this);g.p(this,this.V)}; gYJ=function(q){q.V.enabled||q.V.start();q.Y++;q.Y>=q.W&&q.Rf()}; aOc=function(q,a){return q.L.has(a)?void 0:q.U.get(a)}; wQc=function(q){for(var a=0;a2?q.V.statusText:""}catch(w){a=""}q.Y=a+" ["+q.getStatus()+"]";dQJ(q)}}finally{uy(q)}}}; uy=function(q,a){if(q.V){q.L&&(clearTimeout(q.L),q.L=null);var w=q.V;q.V=null;a||q.dispatchEvent("ready");try{w.onreadystatechange=null}catch(G){}}}; z_=function(q){var a=q.getStatus();a:switch(a){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var w=!0;break a;default:w=!1}if(!w){if(a=a===0)q=g.es(String(q.S))[1]||null,!q&&g.yV.self&&g.yV.self.location&&(q=g.yV.self.location.protocol.slice(0,-1)),a=!sdm.test(q?q.toLowerCase():"");w=a}return w}; g.vO=function(q){return q.V?q.V.readyState:0}; g.iy=function(q){try{return q.V?q.V.responseText:""}catch(a){return""}}; g.WO=function(q){try{if(!q.V)return null;if("response"in q.V)return q.V.response;switch(q.jt){case "":case "text":return q.V.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in q.V)return q.V.mozResponseArrayBuffer}return null}catch(a){return null}}; g.FyU=function(q){var a={};q=(q.V&&g.vO(q)>=2?q.V.getAllResponseHeaders()||"":"").split("\r\n");for(var w=0;w0&&N>=a};w=w===void 0?[]:w;return new bl(G,w)}; P4=function(q){function a(F,J,Q,B){Promise.resolve().then(function(){N.done();e.q$();e.dispose();O.resolve({jV:F,oe7:J,x97:Q,Vm7:B})})} function w(F,J,Q,B){if(!G.logger.t2()){var L="k";J?L="h":Q&&(L="u");L!=="k"?B!==0&&(G.logger.oH(L),G.logger.u7(L,F)):G.U<=0?(G.logger.oH(L),G.logger.u7(L,F),G.U=Math.floor(Math.random()*200)):G.U--}} g.c.call(this);var G=this;this.U=Math.floor(Math.random()*200);this.V=new NA;if("challenge"in q&&mQl(q.challenge)){var k=nl(q.challenge,4,void 0,vU);var b=nl(q.challenge,5,void 0,vU);nl(q.challenge,7,void 0,vU)&&(this.V=Qdl(nl(q.challenge,7,void 0,vU)))}else k=q.program,b=q.globalName;this.addOnDisposeCallback(function(){var F,J,Q;return g.h(function(B){if(B.U==1)return g.n(B,G.W,2);F=B.V;J=F.oe7;(Q=J)==null||Q();g.Jm(B)})}); this.logger=Jk_(q.g5||{},this.V);g.p(this,this.logger);var O=new g.Y8;this.W=O.promise;this.logger.oH("t");var e=this.logger.share(),N=new qA(e,"t");if(!g.yV[b])throw this.logger.vW(25),Error("EGOU");if(!g.yV[b].a)throw this.logger.vW(26),Error("ELIU");try{var Y=g.yV[b].a;b=[];for(var P=[],K=hrl(this.V),d=0;d>1,a),EZ(q,q.length>>1)]}; qQV=function(q){var a=g.V(ykc(q,Vr));q=a.next().value;a=a.next().value;return q.toString(16)+a.toString(16)}; gT_=function(q,a){var w=ykc(a);q=new Uint32Array(q.buffer);a=q[0];var G=g.V(w);w=G.next().value;G=G.next().value;for(var k=1;k>>8|O<<24,O+=b|0,O^=e+38293,b=b<<3|b>>>29,b^=O,N=N>>>8|N<<24,N+=e|0,N^=Y+38293,e=e<<3|e>>>29,e^=N;b=[b,O];q[k]^=b[0];k+1=w?(globalThis.sessionStorage.removeItem(q),["e"]):["a",new Uint8Array(G.buffer,a+4)]}; J$=function(q,a,w){w=w===void 0?[]:w;this.maxItems=q;this.V=a===void 0?0:a;this.U=w}; G$V=function(q){var a=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!a)return new J$(q);var w=a.split(",");if(w.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new J$(q);a=w.slice(1);a.length===1&&a[0]===""&&(a=[]);w=Number(w[0]);return isNaN(w)||w<0||w>a.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new J$(q)):new J$(q,w,a)}; k$f=function(q,a){this.logger=a;try{var w=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(G){w=!1}w&&(this.index=G$V(q))}; b7m=function(q,a,w,G,k){var b=q.index?ao(q.logger,function(){return aAj(q.index,qQV(a),w,G,k)},"W"):"u"; q.logger.FD(b)}; O7c=function(q,a,w){var G=g.V(q.index?ao(q.logger,function(){return wNl(qQV(a),w)},"R"):["u"]),k=G.next().value; G=G.next().value;q.logger.V5(k);return G}; NXU=function(q){function a(){w-=G;w-=k;w^=k>>>13;G-=k;G-=w;G^=w<<8;k-=w;k-=G;k^=G>>>13;w-=G;w-=k;w^=k>>>12;G-=k;G-=w;G^=w<<16;k-=w;k-=G;k^=G>>>5;w-=G;w-=k;w^=k>>>3;G-=k;G-=w;G^=w<<10;k-=w;k-=G;k^=G>>>15} q=lAK(q);for(var w=2654435769,G=2654435769,k=314159265,b=q.length,O=b,e=0;O>=12;O-=12,e+=12)w+=mn(q,e),G+=mn(q,e+4),k+=mn(q,e+8),a();k+=b;switch(O){case 11:k+=q[e+10]<<24;case 10:k+=q[e+9]<<16;case 9:k+=q[e+8]<<8;case 8:G+=q[e+7]<<24;case 7:G+=q[e+6]<<16;case 6:G+=q[e+5]<<8;case 5:G+=q[e+4];case 4:w+=q[e+3]<<24;case 3:w+=q[e+2]<<16;case 2:w+=q[e+1]<<8;case 1:w+=q[e+0]}a();return eGG.toString(k)}; lAK=function(q){for(var a=[],w=0;w>7,q.error.code]);G.set(w,4);return G}; h$=function(q,a,w){Qr.call(this,q);this.Y=a;this.clientState=w;this.V="S";this.U="q"}; MA=function(q){return globalThis.TextEncoder?(new TextEncoder).encode(q):g.QN(q)}; Pu_=function(q,a,w){return q instanceof sZ?UQm(q,w,a,1):q.Rv(w)}; f1=function(q){g.c.call(this);var a=this;this.W=new g.Y8;this.Y=0;this.U=void 0;this.state=2;this.IA=q.IA;this.HY=q.HY;this.lq=Object.assign({},KcU,q.lq||{});this.logger=q.IA.Q1();var w;this.onError=(w=q.onError)!=null?w:function(){}; this.wM=q.wM||!1;if(dEl(q)){var G=this.IA;this.D=function(){return uwN(G).catch(function(O){O=a.reportError(new DA(a.V?20:32,"TRG:Disposed",O));a.U=O;var e;(e=a.V)==null||e.dispose();a.V=void 0;a.W.reject(O)})}; tkc(G,function(){return void St(a)}); G.S===2&&St(this)}else this.D=q.hMB,St(this);var k=this.logger.share();k.oH("o");var b=new qA(k,"o");this.W.promise.then(function(){b.done();k.q$();k.dispose()},function(){return void k.dispose()}); this.addOnDisposeCallback(function(){a.V?(a.V.dispose(),a.V=void 0):a.U?a.logger.q$():(a.U=a.reportError(new DA(32,"TNP:Disposed")),a.logger.q$(),a.W.reject(a.U))}); g.p(this,this.logger)}; TXN=function(q,a){if(!(a instanceof DA))if(a instanceof Uq){var w=Error(a.toString());w.stack=a.stack;a=new DA(11,"EBH:Error",w)}else a=new DA(12,"BSO:Unknown",a);return q.reportError(a)}; St=function(q){var a,w,G,k,b,O,e,N,Y,P,K,d,T,F,J;return g.h(function(Q){switch(Q.U){case 1:a=void 0;q.Y++;w=new g.Y8;q.IA instanceof FS&&q.IA.Y.push(w.promise);if(!q.wM){Q.Gl(2);break}G=new g.Y8;setTimeout(function(){return void G.resolve()}); return g.n(Q,G.promise,2);case 2:return k=q.logger.share(),g.ml(Q,4,5),q.state=5,b={},O=[],g.n(Q,ZX(q.IA.snapshot({l5:b,eC:O}),q.lq.jGT,function(){return Promise.reject(new DA(15,"MDA:Timeout"))}),7); case 7:e=Q.V;if(q.t2())throw new DA(q.V?20:32,"MDA:Disposed");N=O[0];q.state=6;return g.n(Q,ZX(Pu_(q.HY,k,e),q.lq.PK,function(){return Promise.reject(new DA(10,"BWB:Timeout"))}),8); case 8:Y=Q.V;if(q.t2())throw new DA(q.V?20:32,"BWB:Disposed");q.state=7;a=ao(k,function(){var L=$EK(q,Y,w,N);L.W.promise.then(function(){return void q.D()}); return L},"i"); case 5:g.Sy(Q);k.dispose();g.HJ(Q,6);break;case 4:P=g.rc(Q);(K=a)==null||K.dispose();if(!q.U){d=TXN(q,P);w.resolve();var B;if(B=q.IA instanceof FS&&q.Y<2)a:if(P instanceof DA)B=P.code!==32&&P.code!==20&&P.code!==10;else{if(P instanceof Uq)switch(P.code){case 2:case 13:case 14:case 4:break;default:B=!1;break a}B=!0}if(B)return T=(1+Math.random()*.25)*(q.V?6E4:1E3),F=setTimeout(function(){return void q.D()},T),q.addOnDisposeCallback(function(){return void clearTimeout(F)}),Q.return(); q.U=d}k.vW(q.V?13:14);q.W.reject(q.U);return Q.return();case 6:q.state=8,q.Y=0,(J=q.V)==null||J.dispose(),q.V=a,q.W.resolve(),g.Jm(Q)}})}; $EK=function(q,a,w,G){var k=rb(a,2)*1E3;if(k<=0)throw new DA(31,"TTM:Invalid");if(nl(a,4))return new rV(q.logger,nl(a,4),k);if(!rb(a,3))return new B4(q.logger,S0(e8(a,1)),k);if(!G)throw new DA(4,"PMD:Undefined");G=G(S0(e8(a,1)));if(!(G instanceof Function))throw new DA(16,"APF:Failed");q.L=Math.floor((Date.now()+k)/1E3);q=new L1(q.logger,G,rb(a,3),k);q.addOnDisposeCallback(function(){return void w.resolve()}); return q}; sqy=function(q,a){a=a instanceof DA?a:new DA(5,"TVD:error",a);return q.reportError(a)}; V_l=function(q,a,w){try{if(q.t2())throw new DA(21,"BNT:disposed");if(!q.V&&q.U)throw q.U;var G,k;return(k=(G=Fcf(q,a,w))!=null?G:Cuj(q,a,w))!=null?k:Z7y(q,a,w)}catch(b){if(!a.h3)throw sqy(q,b);return ETV(q,w,b)}}; Fcf=function(q,a,w){var G;return(G=q.V)==null?void 0:x8(G,function(){return H4(q,a)},w,function(k){var b; if(q.V instanceof L1&&((b=a.Ik)==null?0:b.HO))try{var O;(O=q.cache)==null||b7m(O,H4(q,a),k,a.Ik.qw,q.L-120)}catch(e){q.reportError(new DA(24,"ELX:write",e))}})}; Cuj=function(q,a,w){var G;if((G=a.Ik)!=null&&G.Pt)try{var k,b=(k=q.cache)==null?void 0:O7c(k,H4(q,a),a.Ik.qw);return b?w?ao(q.logger,function(){return g.AH(b,2)},"a"):b:void 0}catch(O){q.reportError(new DA(23,"RXO:read",O))}}; Z7y=function(q,a,w){var G={stack:[],error:void 0,hasError:!1};try{if(!a.bu)throw new DA(29,"SDF:notready");return x8(FlG(G,new h$(q.logger,0,q.state)),function(){return H4(q,a)},w)}catch(k){G.error=k,G.hasError=!0}finally{CGf(G)}}; ETV=function(q,a,w){var G={stack:[],error:void 0,hasError:!1};try{var k=sqy(q,w);return x8(FlG(G,new n1(q.logger,k)),function(){return[]},a)}catch(b){G.error=b,G.hasError=!0}finally{CGf(G)}}; H4=function(q,a){return a.OC?a.OC:a.l5?ao(q.logger,function(){return a.OC=MA(a.l5)},"c"):[]}; c4=function(){var q=0,a;return function(w){a||(a=new wV);var G=new h$(a,q,1),k=x8(G,function(){return MA(w)},!0); G.dispose();q++;return k}}; p1=function(q){this.r8=IL(q)}; Jpy=function(q,a,w){this.Lj=q;this.M0=a;this.metadata=w}; UZ=function(q,a){a=a===void 0?{}:a;this.leQ=q;this.metadata=a;this.status=null}; XS=function(q,a,w,G,k){this.name=q;this.methodType="unary";this.requestType=a;this.responseType=w;this.V=G;this.U=k}; jt=function(q){this.r8=IL(q)}; oo=function(q){this.r8=IL(q)}; Io=function(q){this.r8=IL(q)}; ul=function(q,a){this.X=q.nTK;this.S=a;this.V=q.xhr;this.W=[];this.D=[];this.L=[];this.Y=[];this.U=[];this.X&&mEj(this)}; LcK=function(q,a){var w=new QqN;g.qI(q.V,"complete",function(){if(z_(q.V)){var G=g.iy(q.V);if(a&&q.V.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");G=atob(G)}try{var k=q.S(G)}catch(e){t$(q,v4(new Uq(13,"Error when deserializing response data; error: "+e+(", response: "+G)),w));return}G=Grc(q.V.getStatus());zw(q,il(q));G==0?ApV(q,k):t$(q,v4(new Uq(G,"Xhr succeeded but the status code is not 200"),w))}else{G=g.iy(q.V);k=il(q);if(G){var b=xEj(q, G);G=b.code;var O=b.details;b=b.metadata}else G=2,O="Rpc failed due to xhr error. uri: "+String(q.V.S)+", error code: "+q.V.U+", error: "+q.V.getLastError(),b=k;zw(q,k);t$(q,v4(new Uq(G,O,b),w))}})}; mEj=function(q){q.X.sb("data",function(a){if("1"in a){var w=a["1"];try{var G=q.S(w)}catch(k){t$(q,new Uq(13,"Error when deserializing response data; error: "+k+(", response: "+w)))}G&&ApV(q,G)}if("2"in a)for(a=xEj(q,a["2"]),w=0;w-1&&q.splice(a,1)}; ApV=function(q,a){for(var w=0;w>4&15).toString(16)+(q&15).toString(16)}; O5=function(q,a){this.U=this.V=null;this.W=q||null;this.Y=!!a}; Ys=function(q){q.V||(q.V=new Map,q.U=0,q.W&&K3(q.W,function(a,w){q.add(BS(a),w)}))}; cpK=function(q,a){Ys(q);a=Pv(q,a);return q.V.has(a)}; g.pNK=function(q,a,w){q.remove(a);w.length>0&&(q.W=null,q.V.set(Pv(q,a),g.nw(w)),q.U=q.U+w.length)}; Pv=function(q,a){a=String(a);q.Y&&(a=a.toLowerCase());return a}; SQN=function(q,a){a&&!q.Y&&(Ys(q),q.W=null,q.V.forEach(function(w,G){var k=G.toLowerCase();G!=k&&(this.remove(G),g.pNK(this,k,w))},q)); q.Y=a}; g.UEj=function(q){var a="";g.yx(q,function(w,G){a+=G;a+=":";a+=w;a+="\r\n"}); return a}; g.KJ=function(q,a,w){if(g.KH(w))return q;w=g.UEj(w);if(typeof q==="string")return FR(q,g.x1(a),w);g.ed(q,a,w);return q}; g.d_=function(q){g.c.call(this);this.U=q;this.V={}}; XNm=function(q,a,w,G,k,b){if(Array.isArray(w))for(var O=0;O=0)return!0;try{var a=new g.g_(q)}catch(w){return g.Z7(w2l,function(G){return q.search(G)>0})!=null}return a.L.match(GyK)?!0:g.Z7(w2l,function(w){return q.match(w)!=null})!=null}; g.AD=function(q,a){return q.replace(bVm,function(w,G){try{var k=g.dn(a,G);if(k==null||k.toString()==null)return w;k=k.toString();if(k==""||!g.rn(g.nS(k)))return encodeURIComponent(k).replace(/%2C/g,",")}catch(b){}return w})}; xs=function(q,a){return Object.is(q,a)}; Bv=function(q){var a=LJ;LJ=q;return a}; OVG=function(q){if(q.gs!==void 0){var a=r_;r_=!0;try{for(var w=q.gs;w!==void 0;w=w.uI){var G=w.Xt;G.YY||(q=void 0,G.YY=!0,OVG(G),(q=G.MR)==null||q.call(G,G))}}finally{r_=a}}}; l3l=function(){var q;return((q=LJ)==null?void 0:q.nf)!==!1}; edl=function(q){q&&(q.q7=void 0,q.uv=!0);return Bv(q)}; Yhm=function(q,a){Bv(a);if(q){q.uv=!1;a=q.q7;var w=a!==void 0?a.Ry:q.producers;if(w!==void 0){if(nJ(q)){do w=N9_(w);while(w!==void 0)}a!==void 0?a.Ry=void 0:q.producers=void 0}}}; PLc=function(q,a){var w=q.Gt,G=nJ(q);w!==void 0?(a.uI=w.uI,w.uI=a):(a.uI=void 0,q.gs=a);a.Gs=w;q.Gt=a;if(!G)for(q=q.producers;q!==void 0;q=q.Ry)PLc(q.iz,q)}; N9_=function(q){var a=q.iz,w=q.Ry,G=q.uI,k=q.Gs;q.uI=void 0;q.Gs=void 0;G!==void 0?G.Gs=k:a.Gt=k;if(k!==void 0)k.uI=G;else if(a.gs=G,!nJ(a))for(q=a.producers;q!==void 0;)q=N9_(q);return w}; nJ=function(q){return q.lx||q.gs!==void 0}; $oK=function(q){function a(){a:{if(r_)throw Error("");if(LJ!==null){var G=LJ.q7;if(G===void 0||G.iz!==w){var k=void 0,b=LJ.uv;if(b&&(k=G!==void 0?G.Ry:LJ.producers,k!==void 0&&k.iz===w)){LJ.q7=k;k.ZL=w.version;break a}var O=w.Gt,e;if(!(e=O===void 0||O.Xt!==LJ)){if(b){b:{e=LJ;b=e.q7;if(b!==void 0){e=e.producers;do{if(e===O){b=!0;break b}if(e===b)break;e=e.Ry}while(e!==void 0)}b=!1}b=!b}e=b}e&&(b=nJ(LJ),k={iz:w,Xt:LJ,Ry:k,Gs:O,ZL:w.version,uI:void 0},LJ.q7=k,G!==void 0?G.Ry=k:LJ.producers=k,b&&PLc(w, k))}}}return w.value} var w=Object.create(KLJ);w.value=q;a[dof]=w;return[a,function(G){return T9j(w,G)}, function(G){if(!l3l())throw Error();T9j(w,G(w.value))}]}; T9j=function(q,a){if(!l3l())throw Error();q.Fh(q.value,a)||(q.value=a,q.version++,su_++,OVG(q))}; Mb=function(q,a){a=a===void 0?"":a;q=$oK(q)[0][dof];var w;a=(w=a)!=null?w:"[signal]";q.debugName=a}; Sd=function(q){g.PO.call(this);var a=this;this.D=this.U=0;this.BF=q!=null?q:{gh:function(k,b){return setTimeout(k,b)}, FS:function(k){clearTimeout(k)}}; var w,G;this.V=(G=(w=window.navigator)==null?void 0:w.onLine)!=null?G:!0;this.W=function(){return g.h(function(k){return g.n(k,hD(a),0)})}; window.addEventListener("offline",this.W);window.addEventListener("online",this.W);this.D||this.j4()}; FLy=function(){var q=g.fJ;Sd.instance||(Sd.instance=new Sd(q));return Sd.instance}; hD=function(q,a){return q.Y?q.Y:q.Y=new Promise(function(w){var G,k,b,O;return g.h(function(e){switch(e.U){case 1:return G=window.AbortController?new window.AbortController:void 0,b=(k=G)==null?void 0:k.signal,O=!1,g.ml(e,2,3),G&&(q.U=q.BF.gh(function(){G.abort()},a||2E4)),g.n(e,fetch("/generate_204",{method:"HEAD", signal:b}),5);case 5:O=!0;case 3:g.Sy(e);q.Y=void 0;q.U&&(q.BF.FS(q.U),q.U=0);O!==q.V&&(q.V=O,q.V?q.dispatchEvent("networkstatus-online"):q.dispatchEvent("networkstatus-offline"));w(O);g.HJ(e,0);break;case 2:g.rc(e),O=!1,e.Gl(3)}})})}; CLm=function(q){this.r8=IL(q)}; Hv=function(){this.data=[];this.V=-1}; ZVm=function(q){q.V===-1&&(q.V=q.data.reduce(function(a,w,G){return a+(w?Math.pow(2,G):0)},0)); return q.V}; cv=function(q){q.setAttribute("role","link")}; U5=function(q,a){Array.isArray(a)&&(a=a.join(" "));a===""||a==void 0?(pJ||(a={},pJ=(a.atomic=!1,a.autocomplete="none",a.dropeffect="none",a.haspopup=!1,a.live="off",a.multiline=!1,a.multiselectable=!1,a.orientation="vertical",a.readonly=!1,a.relevant="additions text",a.required=!1,a.sort="none",a.busy=!1,a.disabled=!1,a.hidden=!1,a.invalid="false",a)),a=pJ,"label"in a?q.setAttribute("aria-label",a.label):q.removeAttribute("aria-label")):q.setAttribute("aria-label",a)}; X0=function(q){q=q.getAttribute("aria-label");return q==null||q==void 0?"":String(q)}; g.jd=function(q,a,w){g.c.call(this);this.V=null;this.Y=!1;this.L=q;this.D=w;this.U=a||window;this.W=(0,g.Ne)(this.Nc,this)}; EFf=function(q){q=q.U;return q.requestAnimationFrame||q.webkitRequestAnimationFrame||q.mozRequestAnimationFrame||q.oRequestAnimationFrame||q.msRequestAnimationFrame||null}; Vzl=function(q){q=q.U;return q.cancelAnimationFrame||q.cancelRequestAnimationFrame||q.webkitCancelRequestAnimationFrame||q.mozCancelRequestAnimationFrame||q.oCancelRequestAnimationFrame||q.msCancelRequestAnimationFrame||null}; g.o1=function(q,a,w){g.c.call(this);this.V=q;this.AL=a||0;this.U=w;this.W=(0,g.Ne)(this.tD,this)}; g.tD=function(q,a){q.isActive()||q.start(a)}; g.vv=function(q){q.stop();q.tD()}; g.zE=function(q){q.isActive()&&g.vv(q)}; g.iX=function(q,a,w){g.c.call(this);this.Y=w!=null?q.bind(w):q;this.AL=a;this.W=null;this.V=!1;this.U=0;this.bK=null}; Wv=function(q){q.bK=g.HO(function(){q.bK=null;q.V&&!q.U&&(q.V=!1,Wv(q))},q.AL); var a=q.W;q.W=null;q.Y.apply(null,a)}; g.DH=function(q,a){this.V=q[g.yV.Symbol.iterator]();this.U=a}; J1J=function(q){return typeof q.className=="string"?q.className:q.getAttribute&&q.getAttribute("class")||""}; R1=function(q){return q.classList?q.classList:J1J(q).match(/\S+/g)||[]}; g.yO=function(q,a){typeof q.className=="string"?q.className=a:q.setAttribute&&q.setAttribute("class",a)}; g.qG=function(q,a){return q.classList?q.classList.contains(a):g.Vx(R1(q),a)}; g.gU=function(q,a){if(q.classList)q.classList.add(a);else if(!g.qG(q,a)){var w=J1J(q);g.yO(q,w+(w.length>0?" "+a:a))}}; g.ah=function(q,a){if(q.classList)Array.prototype.forEach.call(a,function(k){g.gU(q,k)}); else{var w={};Array.prototype.forEach.call(R1(q),function(k){w[k]=!0}); Array.prototype.forEach.call(a,function(k){w[k]=!0}); a="";for(var G in w)a+=a.length>0?" "+G:G;g.yO(q,a)}}; g.wU=function(q,a){q.classList?q.classList.remove(a):g.qG(q,a)&&g.yO(q,Array.prototype.filter.call(R1(q),function(w){return w!=a}).join(" "))}; g.GM=function(q,a){q.classList?Array.prototype.forEach.call(a,function(w){g.wU(q,w)}):g.yO(q,Array.prototype.filter.call(R1(q),function(w){return!g.Vx(a,w)}).join(" "))}; g.kX=function(q,a,w){w?g.gU(q,a):g.wU(q,a)}; mo_=function(q,a){var w=!g.qG(q,a);g.kX(q,a,w)}; g.b9=function(){g.PO.call(this);this.V=0;this.endTime=this.startTime=null}; QuV=function(q,a){Array.isArray(a)||(a=[a]);a=a.map(function(w){return typeof w==="string"?w:w.property+" "+w.duration+"s "+w.timing+" "+w.delay+"s"}); g.IR(q,"transition",a.join(","))}; O8=function(q,a,w,G,k){g.b9.call(this);this.U=q;this.D=a;this.L=w;this.Y=G;this.X=Array.isArray(k)?k:[k]}; A1c=function(q,a,w,G){return new O8(q,a,{opacity:w},{opacity:G},{property:"opacity",duration:a,timing:"ease-in",delay:0})}; LLl=function(q){q=SX(q);if(q=="")return null;var a=String(q.slice(0,4)).toLowerCase();if(("url("1||q&&q.split(")"),null;if(q.indexOf("(")>0){if(/"|'/.test(q))return null;a=/([\-\w]+)\(/g;for(var w;w=a.exec(q);)if(!(w[1].toLowerCase()in xol))return null}return q}; l9=function(q,a){q=g.yV[q];return q&&q.prototype?(a=Object.getOwnPropertyDescriptor(q.prototype,a))&&a.get||null:null}; B9f=function(q){var a=g.yV.CSSStyleDeclaration;return a&&a.prototype&&a.prototype[q]||null}; r1c=function(q,a,w,G){if(q)return q.apply(a,G);if(g.eL&&document.documentMode<10){if(!a[w].call)throw Error("IE Clobbering detected");}else if(typeof a[w]!="function")throw Error("Clobbering detected");return a[w].apply(a,G)}; f3j=function(q){if(!q)return"";var a=document.createElement("div").style;nFl(q).forEach(function(w){var G=g.NP&&w in Mzm?w:w.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");BL(G,"--")||BL(G,"var")||(w=r1c(hdc,q,q.getPropertyValue?"getPropertyValue":"getAttribute",[w])||"",w=LLl(w),w!=null&&r1c(Shy,a,a.setProperty?"setProperty":"setAttribute",[G,w]))}); return a.cssText||""}; nFl=function(q){g.kc(q)?q=g.nw(q):(q=g.bb(q),g.mU(q,"cssText"));return q}; g.YX=function(q){var a,w=a=0,G=!1;q=q.split(HVG);for(var k=0;k.4?-1:1;return(a==0?null:a)==-1?"rtl":"ltr"}; g.TM=function(q){if(q instanceof PB||q instanceof Ka||q instanceof dU)return q;if(typeof q.next=="function")return new PB(function(){return q}); if(typeof q[Symbol.iterator]=="function")return new PB(function(){return q[Symbol.iterator]()}); if(typeof q.Vh=="function")return new PB(function(){return q.Vh()}); throw Error("Not an iterator or iterable.");}; PB=function(q){this.U=q}; Ka=function(q){this.U=q}; dU=function(q){PB.call(this,function(){return q}); this.W=q}; $X=function(q,a,w,G,k,b,O,e){this.V=q;this.X=a;this.W=w;this.D=G;this.Y=k;this.L=b;this.U=O;this.S=e}; s8=function(q,a){if(a==0)return q.V;if(a==1)return q.U;var w=os(q.V,q.W,a),G=os(q.W,q.Y,a);q=os(q.Y,q.U,a);w=os(w,G,a);G=os(G,q,a);return os(w,G,a)}; X2c=function(q,a){var w=(a-q.V)/(q.U-q.V);if(w<=0)return 0;if(w>=1)return 1;for(var G=0,k=1,b=0,O=0;O<8;O++){b=s8(q,w);var e=(s8(q,w+1E-6)-b)/1E-6;if(Math.abs(b-a)<1E-6)return w;if(Math.abs(e)<1E-6)break;else b1E-6&&O<8;O++)b=0}; g.E8=function(q){g.c.call(this);this.L=1;this.W=[];this.Y=0;this.V=[];this.U={};this.X=!!q}; oFJ=function(q,a,w){g.VP(function(){q.apply(a,w)})}; g.Vp=function(q){this.V=q}; JX=function(q){this.V=q}; I3c=function(q){this.data=q}; ukU=function(q){return q===void 0||q instanceof I3c?q:new I3c(q)}; ma=function(q){this.V=q}; g.tzK=function(q){var a=q.creation;q=q.expiration;return!!q&&qg.Kw()}; g.Qp=function(q){this.V=q}; vFN=function(){}; AX=function(){}; xX=function(q){this.V=q;this.U=null}; La=function(q){if(q.V==null)throw Error("Storage mechanism: Storage unavailable");q.isAvailable()||mt(Error("Storage mechanism: Storage unavailable"))}; BB=function(){var q=null;try{q=g.yV.localStorage||null}catch(a){}xX.call(this,q)}; zdy=function(){var q=null;try{q=g.yV.sessionStorage||null}catch(a){}xX.call(this,q)}; rU=function(q,a){this.U=q;this.V=a+"::"}; g.na=function(q){var a=new BB;return a.isAvailable()?q?new rU(a,q):a:null}; MG=function(q,a){this.V=q;this.U=a}; hX=function(q){this.V=[];if(q)a:{if(q instanceof hX){var a=q.SH();q=q.ip();if(this.V.length<=0){for(var w=this.V,G=0;G>>6:(b<65536?e[w++]=224|b>>>12:(e[w++]=240|b>>>18,e[w++]=128|b>>>12&63),e[w++]=128|b>>> 6&63),e[w++]=128|b&63);return e}; cB=function(q){for(var a=q.length;--a>=0;)q[a]=0}; pa=function(q,a,w,G,k){this.G3=q;this.wY=a;this.NG=w;this.GD=G;this.c2t=k;this.fn=q&&q.length}; U8=function(q,a){this.JU=q;this.N4=0;this.xP=a}; XN=function(q,a){q.GN[q.pending++]=a&255;q.GN[q.pending++]=a>>>8&255}; jL=function(q,a,w){q.tL>16-w?(q.Y3|=a<>16-q.tL,q.tL+=w-16):(q.Y3|=a<>>=1,w<<=1;while(--a>0);return w>>>1}; y1U=function(q,a,w){var G=Array(16),k=0,b;for(b=1;b<=15;b++)G[b]=k=k+w[b-1]<<1;for(w=0;w<=a;w++)k=q[w*2+1],k!==0&&(q[w*2]=Rdf(G[k]++,k))}; qqJ=function(q){var a;for(a=0;a<286;a++)q.uO[a*2]=0;for(a=0;a<30;a++)q.Gm[a*2]=0;for(a=0;a<19;a++)q.Pa[a*2]=0;q.uO[512]=1;q.Vz=q.bL=0;q.TR=q.matches=0}; gEj=function(q){q.tL>8?XN(q,q.Y3):q.tL>0&&(q.GN[q.pending++]=q.Y3);q.Y3=0;q.tL=0}; aGc=function(q,a,w){gEj(q);XN(q,w);XN(q,~w);HB.V8(q.GN,q.window,a,w,q.pending);q.pending+=w}; wOJ=function(q,a,w,G){var k=a*2,b=w*2;return q[k]>>7)];oh(q,O,w);e=i9[O];e!==0&&(k-=WB[O],jL(q,k,e))}}while(G>1;O>=1;O--)Ih(q,w,O);N=b;do O=q.pO[1],q.pO[1]=q.pO[q.l6--],Ih(q,w,1),G=q.pO[1],q.pO[--q.K$]=O,q.pO[--q.K$]=G,w[N*2]=w[O*2]+w[G*2],q.depth[N]=(q.depth[O]>=q.depth[G]?q.depth[O]:q.depth[G])+1,w[O*2+1]=w[G*2+1]=N,q.pO[1]=N++,Ih(q,w,1);while(q.l6>= 2);q.pO[--q.K$]=q.pO[1];O=a.JU;N=a.N4;G=a.xP.G3;k=a.xP.fn;b=a.xP.wY;var Y=a.xP.NG,P=a.xP.c2t,K,d=0;for(K=0;K<=15;K++)q.yO[K]=0;O[q.pO[q.K$]*2+1]=0;for(a=q.K$+1;a<573;a++){var T=q.pO[a];K=O[O[T*2+1]*2+1]+1;K>P&&(K=P,d++);O[T*2+1]=K;if(!(T>N)){q.yO[K]++;var F=0;T>=Y&&(F=b[T-Y]);var J=O[T*2];q.Vz+=J*(K+F);k&&(q.bL+=J*(G[T*2+1]+F))}}if(d!==0){do{for(K=P-1;q.yO[K]===0;)K--;q.yO[K]--;q.yO[K+1]+=2;q.yO[P]--;d-=2}while(d>0);for(K=P;K!==0;K--)for(T=q.yO[K];T!==0;)G=q.pO[--a],G>N||(O[G*2+1]!==K&&(q.Vz+=(K- O[G*2+1])*O[G*2],O[G*2+1]=K),T--)}y1U(w,e,q.yO)}; k_m=function(q,a,w){var G,k=-1,b=a[1],O=0,e=7,N=4;b===0&&(e=138,N=3);a[(w+1)*2+1]=65535;for(G=0;G<=w;G++){var Y=b;b=a[(G+1)*2+1];++O>>=1)if(a&1&&q.uO[w*2]!==0)return 0;if(q.uO[18]!==0||q.uO[20]!==0||q.uO[26]!==0)return 1;for(w=32;w<256;w++)if(q.uO[w*2]!==0)return 1;return 0}; Rh=function(q,a,w){q.GN[q.CK+q.TR*2]=a>>>8&255;q.GN[q.CK+q.TR*2+1]=a&255;q.GN[q.yW+q.TR]=w&255;q.TR++;a===0?q.uO[w*2]++:(q.matches++,a--,q.uO[(u9[w]+256+1)*2]++,q.Gm[(a<256?zM[a]:zM[256+(a>>>7)])*2]++);return q.TR===q.Rb-1}; qX=function(q,a){q.msg=yp[a];return a}; g0=function(q){for(var a=q.length;--a>=0;)q[a]=0}; aI=function(q){var a=q.state,w=a.pending;w>q.Zo&&(w=q.Zo);w!==0&&(HB.V8(q.output,a.GN,a.qK,w,q.P4),q.P4+=w,a.qK+=w,q.g1+=w,q.Zo-=w,a.pending-=w,a.pending===0&&(a.qK=0))}; kg=function(q,a){var w=q.WI>=0?q.WI:-1,G=q.fk-q.WI,k=0;if(q.level>0){q.nT.BD===2&&(q.nT.BD=OTf(q));DW(q,q.Bv);DW(q,q.iE);k_m(q,q.uO,q.Bv.N4);k_m(q,q.Gm,q.iE.N4);DW(q,q.VF);for(k=18;k>=3&&q.Pa[lGj[k]*2+1]===0;k--);q.Vz+=3*(k+1)+5+5+4;var b=q.Vz+3+7>>>3;var O=q.bL+3+7>>>3;O<=b&&(b=O)}else b=O=G+5;if(G+4<=b&&w!==-1)jL(q,a?1:0,3),aGc(q,w,G);else if(q.strategy===4||O===b)jL(q,2+(a?1:0),3),G_c(q,w0,Ge);else{jL(q,4+(a?1:0),3);w=q.Bv.N4+1;G=q.iE.N4+1;k+=1;jL(q,w-257,5);jL(q,G-1,5);jL(q,k-4,4);for(b=0;b>>8&255;q.GN[q.pending++]=a&255}; eEm=function(q,a){var w=q.L_,G=q.fk,k=q.n3,b=q.zJ,O=q.fk>q.WQ-262?q.fk-(q.WQ-262):0,e=q.window,N=q.a5,Y=q.Dt,P=q.fk+258,K=e[G+k-1],d=e[G+k];q.n3>=q.m9&&(w>>=2);b>q.ZZ&&(b=q.ZZ);do{var T=a;if(e[T+k]===d&&e[T+k-1]===K&&e[T]===e[G]&&e[++T]===e[G+1]){G+=2;for(T++;e[++G]===e[++T]&&e[++G]===e[++T]&&e[++G]===e[++T]&&e[++G]===e[++T]&&e[++G]===e[++T]&&e[++G]===e[++T]&&e[++G]===e[++T]&&e[++G]===e[++T]&&Gk){q.lY=a;k=T;if(T>=b)break;K=e[G+k-1];d=e[G+k]}}}while((a=Y[a&N])>O&&--w!== 0);return k<=q.ZZ?k:q.ZZ}; NX=function(q){var a=q.WQ,w;do{var G=q.n4-q.ZZ-q.fk;if(q.fk>=a+(a-262)){HB.V8(q.window,q.window,a,a,0);q.lY-=a;q.fk-=a;q.WI-=a;var k=w=q.LL;do{var b=q.head[--k];q.head[k]=b>=a?b-a:0}while(--w);k=w=a;do b=q.Dt[--k],q.Dt[k]=b>=a?b-a:0;while(--w);G+=a}if(q.nT.o_===0)break;k=q.nT;w=q.window;b=q.fk+q.ZZ;var O=k.o_;O>G&&(O=G);O===0?w=0:(k.o_-=O,HB.V8(w,k.input,k.i7,O,b),k.state.wrap===1?k.G4=lx(k.G4,w,O,b):k.state.wrap===2&&(k.G4=eu(k.G4,w,O,b)),k.i7+=O,k.i_+=O,w=O);q.ZZ+=w;if(q.ZZ+q.gt>=3)for(G=q.fk-q.gt, q.hS=q.window[G],q.hS=(q.hS<=3&&(q.hS=(q.hS<=3)if(w=Rh(q,q.fk-q.lY,q.uy-3),q.ZZ-=q.uy,q.uy<=q.tq&&q.ZZ>=3){q.uy--;do q.fk++,q.hS=(q.hS<=3&&(q.hS=(q.hS<4096)&&(q.uy=2));if(q.n3>=3&&q.uy<=q.n3){G=q.fk+q.ZZ-3;w=Rh(q,q.fk-1-q.FI,q.n3-3);q.ZZ-=q.n3-1;q.n3-=2;do++q.fk<=G&&(q.hS=(q.hS<=3&&q.fk>0&&(G=q.fk-1,w=b[G],w===b[++G]&&w===b[++G]&&w===b[++G])){for(k=q.fk+258;w===b[++G]&&w===b[++G]&&w===b[++G]&&w===b[++G]&&w===b[++G]&&w===b[++G]&&w===b[++G]&&w===b[++G]&&Gq.ZZ&&(q.uy=q.ZZ)}q.uy>=3?(w=Rh(q,1,q.uy-3),q.ZZ-=q.uy,q.fk+=q.uy,q.uy=0):(w=Rh(q,0,q.window[q.fk]),q.ZZ--,q.fk++);if(w&&(kg(q,!1),q.nT.Zo===0))return 1}q.gt=0;return a=== 4?(kg(q,!0),q.nT.Zo===0?3:4):q.TR&&(kg(q,!1),q.nT.Zo===0)?1:2}; YqV=function(q,a){for(var w;;){if(q.ZZ===0&&(NX(q),q.ZZ===0)){if(a===0)return 1;break}q.uy=0;w=Rh(q,0,q.window[q.fk]);q.ZZ--;q.fk++;if(w&&(kg(q,!1),q.nT.Zo===0))return 1}q.gt=0;return a===4?(kg(q,!0),q.nT.Zo===0?3:4):q.TR&&(kg(q,!1),q.nT.Zo===0)?1:2}; K_=function(q,a,w,G,k){this.Ni=q;this.YK7=a;this.XTT=w;this.oT7=G;this.func=k}; Py_=function(){this.nT=null;this.status=0;this.GN=null;this.wrap=this.pending=this.qK=this.gy=0;this.yL=null;this.hG=0;this.method=8;this.LC=-1;this.a5=this.WB=this.WQ=0;this.window=null;this.n4=0;this.head=this.Dt=null;this.zJ=this.m9=this.strategy=this.level=this.tq=this.L_=this.n3=this.ZZ=this.lY=this.fk=this.We=this.FI=this.uy=this.WI=this.nm=this.X5=this.lJ=this.LL=this.hS=0;this.uO=new HB.J5(1146);this.Gm=new HB.J5(122);this.Pa=new HB.J5(78);g0(this.uO);g0(this.Gm);g0(this.Pa);this.VF=this.iE= this.Bv=null;this.yO=new HB.J5(16);this.pO=new HB.J5(573);g0(this.pO);this.K$=this.l6=0;this.depth=new HB.J5(573);g0(this.depth);this.tL=this.Y3=this.gt=this.matches=this.bL=this.Vz=this.CK=this.TR=this.Rb=this.yW=0}; K$V=function(q,a){if(!q||!q.state||a>5||a<0)return q?qX(q,-2):-2;var w=q.state;if(!q.output||!q.input&&q.o_!==0||w.status===666&&a!==4)return qX(q,q.Zo===0?-5:-2);w.nT=q;var G=w.LC;w.LC=a;if(w.status===42)if(w.wrap===2)q.G4=0,bx(w,31),bx(w,139),bx(w,8),w.yL?(bx(w,(w.yL.text?1:0)+(w.yL.gm?2:0)+(w.yL.extra?4:0)+(w.yL.name?8:0)+(w.yL.comment?16:0)),bx(w,w.yL.time&255),bx(w,w.yL.time>>8&255),bx(w,w.yL.time>>16&255),bx(w,w.yL.time>>24&255),bx(w,w.level===9?2:w.strategy>=2||w.level<2?4:0),bx(w,w.yL.os& 255),w.yL.extra&&w.yL.extra.length&&(bx(w,w.yL.extra.length&255),bx(w,w.yL.extra.length>>8&255)),w.yL.gm&&(q.G4=eu(q.G4,w.GN,w.pending,0)),w.hG=0,w.status=69):(bx(w,0),bx(w,0),bx(w,0),bx(w,0),bx(w,0),bx(w,w.level===9?2:w.strategy>=2||w.level<2?4:0),bx(w,3),w.status=113);else{var k=8+(w.WB-8<<4)<<8;k|=(w.strategy>=2||w.level<2?0:w.level<6?1:w.level===6?2:3)<<6;w.fk!==0&&(k|=32);w.status=113;OL(w,k+(31-k%31));w.fk!==0&&(OL(w,q.G4>>>16),OL(w,q.G4&65535));q.G4=1}if(w.status===69)if(w.yL.extra){for(k= w.pending;w.hG<(w.yL.extra.length&65535)&&(w.pending!==w.gy||(w.yL.gm&&w.pending>k&&(q.G4=eu(q.G4,w.GN,w.pending-k,k)),aI(q),k=w.pending,w.pending!==w.gy));)bx(w,w.yL.extra[w.hG]&255),w.hG++;w.yL.gm&&w.pending>k&&(q.G4=eu(q.G4,w.GN,w.pending-k,k));w.hG===w.yL.extra.length&&(w.hG=0,w.status=73)}else w.status=73;if(w.status===73)if(w.yL.name){k=w.pending;do{if(w.pending===w.gy&&(w.yL.gm&&w.pending>k&&(q.G4=eu(q.G4,w.GN,w.pending-k,k)),aI(q),k=w.pending,w.pending===w.gy)){var b=1;break}b=w.hGk&&(q.G4=eu(q.G4,w.GN,w.pending-k,k));b===0&&(w.hG=0,w.status=91)}else w.status=91;if(w.status===91)if(w.yL.comment){k=w.pending;do{if(w.pending===w.gy&&(w.yL.gm&&w.pending>k&&(q.G4=eu(q.G4,w.GN,w.pending-k,k)),aI(q),k=w.pending,w.pending===w.gy)){b=1;break}b=w.hGk&&(q.G4=eu(q.G4,w.GN,w.pending-k,k));b===0&&(w.status=103)}else w.status= 103;w.status===103&&(w.yL.gm?(w.pending+2>w.gy&&aI(q),w.pending+2<=w.gy&&(bx(w,q.G4&255),bx(w,q.G4>>8&255),q.G4=0,w.status=113)):w.status=113);if(w.pending!==0){if(aI(q),q.Zo===0)return w.LC=-1,0}else if(q.o_===0&&(a<<1)-(a>4?9:0)<=(G<<1)-(G>4?9:0)&&a!==4)return qX(q,-5);if(w.status===666&&q.o_!==0)return qX(q,-5);if(q.o_!==0||w.ZZ!==0||a!==0&&w.status!==666){G=w.strategy===2?YqV(w,a):w.strategy===3?NH_(w,a):d0[w.level].func(w,a);if(G===3||G===4)w.status=666;if(G===1||G===3)return q.Zo===0&&(w.LC= -1),0;if(G===2&&(a===1?(jL(w,2,3),oh(w,256,w0),w.tL===16?(XN(w,w.Y3),w.Y3=0,w.tL=0):w.tL>=8&&(w.GN[w.pending++]=w.Y3&255,w.Y3>>=8,w.tL-=8)):a!==5&&(jL(w,0,3),aGc(w,0,0),a===3&&(g0(w.head),w.ZZ===0&&(w.fk=0,w.WI=0,w.gt=0))),aI(q),q.Zo===0))return w.LC=-1,0}if(a!==4)return 0;if(w.wrap<=0)return 1;w.wrap===2?(bx(w,q.G4&255),bx(w,q.G4>>8&255),bx(w,q.G4>>16&255),bx(w,q.G4>>24&255),bx(w,q.i_&255),bx(w,q.i_>>8&255),bx(w,q.i_>>16&255),bx(w,q.i_>>24&255)):(OL(w,q.G4>>>16),OL(w,q.G4&65535));aI(q);w.wrap>0&& (w.wrap=-w.wrap);return w.pending!==0?0:1}; Te=function(q){if(!(this instanceof Te))return new Te(q);q=this.options=HB.assign({level:-1,method:8,chunkSize:16384,Fc:15,RGt:8,strategy:0,to:""},q||{});q.raw&&q.Fc>0?q.Fc=-q.Fc:q.wC&&q.Fc>0&&q.Fc<16&&(q.Fc+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.nT=new dIG;this.nT.Zo=0;var a=this.nT;var w=q.level,G=q.method,k=q.Fc,b=q.RGt,O=q.strategy;if(a){var e=1;w===-1&&(w=6);k<0?(e=0,k=-k):k>15&&(e=2,k-=16);if(b<1||b>9||G!==8||k<8||k>15||w<0||w>9||O<0||O>4)a=qX(a,-2);else{k===8&&(k=9); var N=new Py_;a.state=N;N.nT=a;N.wrap=e;N.yL=null;N.WB=k;N.WQ=1<>=7;b<30;b++)for(WB[b]=O<<7,k=0;k<1<=Y.WQ&&(a===0&&(g0(Y.head),Y.fk=0,Y.WI=0,Y.gt=0),w=new HB.gB(Y.WQ),HB.V8(w,b,O-Y.WQ,Y.WQ,0),b=w,O=Y.WQ);w=q.o_;G=q.i7;k=q.input;q.o_=O;q.i7=0;q.input=b;for(NX(Y);Y.ZZ>=3;){b=Y.fk;O=Y.ZZ-2;do Y.hS=(Y.hS<9?(0,w[50])(w[57]):(0,w[70])(w[72],w[13]),w[40]==-2&&((((0,w[81])(w[72],w[26]), w[29])(w[45],(0,w[65])(),w[47]),w[39])((0,w[12])(w[38],w[20]),w[29],(0,w[52])(w[46],w[45]),w[45],(0,w[75])(),w[60]),1)||(0,w[33])(((0,w[70])(w[20],w[73]),w[52])(w[80],w[42]),w[39],(0,w[18])(w[20],w[82]),w[52],(0,w[70])(w[72],w[7]),w[78],w[72]),w[5]<=0&&((0,w[9])(w[58],w[11]),1)||(0,w[86])(w[12],(0,w[35])(),w[30]),w[19]>=new Date(l[58])/1E3&&(w[14]<7&&((0,w[22])(w[65],w[15]),l[61])||(0,w[25])(w[41],w[13])),(w[49]===5||(((((0,w[51])(w[15],w[72]),w[51])(w[13],w[14]),w[22])(w[71],w[77]),w[85])(w[35], w[73]),0))&&(0,w[34])((((0,w[44])(w[57],(0,w[40])(),w[78]),w[27])(w[31],w[60]),w[65])(w[60]),w[44],w[58],(0,w[20])(),w[0]),w[82]!==-1?(((0,w[85])(w[58],w[68]),w[27])(w[18],w[58]),w[9])(w[72],w[46]):(0,w[54])((0,w[27])(w[52],w[60]),w[44],(0,w[27])(w[83],w[57]),w[60],(0,w[40])(),w[78]),w[30]!=new Date(l[14])/1E3&&(w[50]<-2||((((((0,w[67])(w[47],w[62]),w[27])(w[50],w[72]),w[9])(w[new Date(l[6])/1E3],w[37]),w[44])(w[58],(0,w[20])(),w[78]),w[27])(w[84],w[72]),0))&&(0,w[54])(((0,w[44])(w[60],(0,w[3])(), w[33]),w[77])(w[22],w[72]),w[65],(0,w[65])(w[72])^(0,w[78])(w[52],w[83]),w[15]),w[56]!=1&&(w[36]<-5?((((0,w[27])(w[new Date(l[9])/1E3],w[58]),w[9])(w[62],w[19]),(0,w[9])(w[57],w[76]),((0,w[44])(w[58],(0,w[40])(),w[78]),w[70])(w[42],w[62]),w[36])((0,w[18])(w[12],w[5]),w[33],w[20],w[60])^(0,w[2])((0,w[18])(w[14],w[5]),w[15],(0,w[52])(w[10]),w[2],w[82]))>=(0,w[54])(w[81],w[50]):(0,w[new Date(l[31])/1E3])((0,w[51])((0,w[51])(((((((0,w[7])(w[82],(0,w[59])(),w[61]),w[7])(w[82],(0,w[31])(),w[61]),w[42])(w[81], w[6]),w[69])(w[58],w[81]),w[74])(w[67]),w[74])(w[16]),w[35],w[81]),w[54],w[79],w[15]),(0,w[7])(w[82],(0,w[11])(),w[64]),w[51],(0,w[7])(w[new Date(l[94])/1E3],(0,w[48])(),w[61]),w[7],w[79],(0,w[70])(),w[18])),w[1]!==-9?(0,w[51])((0,w[74])(w[82]),w[42],w[81],w[46]):(0,w[51])((0,w[72])(w[0],w[82]),w[7],w[82],(0,w[new Date(l[79])/1E3])(),w[64])}catch(G){(0,w[7])(w[82],(0,w[48])(),w[18]),(0,w[42])(w[82],w[49]),(0,w[51])((0,w[51])((0,w[7])(w[81],(0,w[11])(),w[61]),w[72],w[13],w[82]),w[74],w[67]),(0,w[24])(w[34], w[82]),(0,w[72])(w[68],w[79]),(0,w[54])(w[77],w[8]),(0,w[24])(w[41],w[67])^(0,w[35])(w[82])}}catch(G){return l[51]+q}return a[l[68]](l[7])}; g.Ze=function(q){this.name=q}; SqN=function(q){this.r8=IL(q)}; EL=function(q){this.r8=IL(q)}; Ve=function(q){this.r8=IL(q)}; fGl=function(q){this.r8=IL(q)}; JK=function(q){this.r8=IL(q)}; mj=function(q){this.r8=IL(q)}; Qe=function(q){this.r8=IL(q)}; AK=function(q){this.r8=IL(q)}; xg=function(q){this.r8=IL(q)}; L_=function(q){this.r8=IL(q)}; Bn=function(q){this.r8=IL(q)}; r0=function(q){this.r8=IL(q)}; n_=function(q){this.r8=IL(q)}; MX=function(q){this.r8=IL(q)}; hK=function(q){this.r8=IL(q)}; Su=function(q){this.r8=IL(q,500)}; f_=function(q){this.r8=IL(q)}; Hn=function(q){this.r8=IL(q)}; HTJ=function(q){this.r8=IL(q)}; ctJ=function(){return g.aB("yt.ads.biscotti.lastId_")||""}; pOm=function(q){g.qe("yt.ads.biscotti.lastId_",q)}; p_=function(){var q=arguments,a=cn;q.length>1?a[q[0]]=q[1]:q.length===1&&Object.assign(a,q[0])}; g.UL=function(q,a){return q in cn?cn[q]:a}; Xg=function(q){var a=cn.EXPERIMENT_FLAGS;return a?a[q]:void 0}; UIJ=function(q){II.forEach(function(a){return a(q)})}; g.tK=function(q){return q&&window.yterr?function(){try{return q.apply(this,arguments)}catch(a){g.ux(a)}}:q}; g.ux=function(q){var a=g.aB("yt.logging.errors.log");a?a(q,"ERROR",void 0,void 0,void 0,void 0,void 0):(a=g.UL("ERRORS",[]),a.push([q,"ERROR",void 0,void 0,void 0,void 0,void 0]),p_("ERRORS",a));UIJ(q)}; vn=function(q,a,w,G,k){var b=g.aB("yt.logging.errors.log");b?b(q,"WARNING",a,w,G,void 0,k):(b=g.UL("ERRORS",[]),b.push([q,"WARNING",a,w,G,void 0,k]),p_("ERRORS",b))}; ze=function(q,a){a=q.split(a);for(var w={},G=0,k=a.length;G1?q[1]:q[0])):{}}; ye=function(q,a){return IGj(q,a||{},!0)}; qL=function(q,a){return IGj(q,a||{},!1)}; IGj=function(q,a,w){var G=q.split("#",2);q=G[0];G=G.length>1?"#"+G[1]:"";var k=q.split("?",2);q=k[0];k=Wn(k[1]||"");for(var b in a)if(w||!g.NW(k,b))k[b]=a[b];return g.sk(q,k)+G}; gF=function(q){if(!a)var a=window.location.href;var w=g.es(q)[1]||null,G=g.Nr(q);w&&G?(q=g.es(q),a=g.es(a),q=q[3]==a[3]&&q[1]==a[1]&&q[4]==a[4]):q=G?g.Nr(a)===G&&(Number(g.es(a)[4]||null)||null)===(Number(g.es(q)[4]||null)||null):!0;return q}; ac=function(q){q||(q=document.location.href);q=g.es(q)[1]||null;return q!==null&&q==="https"}; wF=function(q){q=ujG(q);return q===null?!1:q[0]==="com"&&q[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; tYm=function(q){q=ujG(q);return q===null?!1:q[1]==="google"?!0:q[2]==="google"?q[0]==="au"&&q[1]==="com"?!0:q[0]==="uk"&&q[1]==="co"?!0:!1:!1}; ujG=function(q){q=g.Nr(q);return q!==null?q.split(".").reverse():null}; XOf=function(q){return q&&q.match(vEU)?q:BS(q)}; bO=function(q){var a=Gn;q=q===void 0?ctJ():q;var w=Object,G=w.assign,k=kn(a);var b=a.V;try{var O=b.screenX;var e=b.screenY}catch(B){}try{var N=b.outerWidth;var Y=b.outerHeight}catch(B){}try{var P=b.innerWidth;var K=b.innerHeight}catch(B){}try{var d=b.screenLeft;var T=b.screenTop}catch(B){}try{P=b.innerWidth,K=b.innerHeight}catch(B){}try{var F=b.screen.availWidth;var J=b.screen.availTop}catch(B){}b=[d,T,O,e,F,J,N,Y,P,K];O=aDy(!1,a.V.top);e={};var Q=Q===void 0?g.yV:Q;N=new Hv;"SVGElement"in Q&&"createElementNS"in Q.document&&N.set(0);Y=GBf();Y["allow-top-navigation-by-user-activation"]&&N.set(1);Y["allow-popups-to-escape-sandbox"]&&N.set(2);Q.crypto&&Q.crypto.subtle&&N.set(3);"TextDecoder"in Q&&"TextEncoder"in Q&&N.set(4);Q=ZVm(N);a=(e.bc=Q,e.bih=O.height,e.biw=O.width,e.brdim=b.join(),e.vis=ke(a.U),e.wgl=!!rp.WebGLRenderingContext,e);w=G.call(w,k,a);w.ca_type="image";q&&(w.bid=q);return w}; kn=function(q){var a={};a.dt=zEf;a.flash="0";a:{try{var w=q.V.top.location.href}catch(Y){q=2;break a}q=w?w===q.U.location.href?0:1:2}a=(a.frm=q,a);try{a.u_tz=-(new Date).getTimezoneOffset();try{var G=rp.history.length}catch(Y){G=0}a.u_his=G;var k;a.u_h=(k=rp.screen)==null?void 0:k.height;var b;a.u_w=(b=rp.screen)==null?void 0:b.width;var O;a.u_ah=(O=rp.screen)==null?void 0:O.availHeight;var e;a.u_aw=(e=rp.screen)==null?void 0:e.availWidth;var N;a.u_cd=(N=rp.screen)==null?void 0:N.colorDepth}catch(Y){}return a}; W$V=function(){if(!iTG)return null;var q=iTG();return"open"in q?q:null}; g.lO=function(q){switch(OF(q)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; OF=function(q){return q&&"status"in q?q.status:-1}; g.ee=function(q,a){typeof q==="function"&&(q=g.tK(q));return window.setTimeout(q,a)}; g.NL=function(q,a){typeof q==="function"&&(q=g.tK(q));return window.setInterval(q,a)}; g.Yn=function(q){window.clearTimeout(q)}; g.Pr=function(q){window.clearInterval(q)}; g.dF=function(q){q=Ky(q);return typeof q==="string"&&q==="false"?!1:!!q}; g.Tn=function(q,a){q=Ky(q);return q===void 0&&a!==void 0?a:Number(q||0)}; $n=function(){return g.UL("EXPERIMENTS_TOKEN","")}; Ky=function(q){return g.UL("EXPERIMENT_FLAGS",{})[q]}; sF=function(){for(var q=[],a=g.UL("EXPERIMENTS_FORCED_FLAGS",{}),w=g.V(Object.keys(a)),G=w.next();!G.done;G=w.next())G=G.value,q.push({key:G,value:String(a[G])});w=g.UL("EXPERIMENT_FLAGS",{});G=g.V(Object.keys(w));for(var k=G.next();!k.done;k=G.next())k=k.value,k.startsWith("force_")&&a[k]===void 0&&q.push({key:k,value:String(w[k])});return q}; FL=function(q,a,w,G,k,b,O,e,N){function Y(){(P&&"readyState"in P?P.readyState:0)===4&&a&&g.tK(a)(P)} w=w===void 0?"GET":w;G=G===void 0?"":G;e=e===void 0?!1:e;var P=W$V();if(!P)return null;"onloadend"in P?P.addEventListener("loadend",Y,!1):P.onreadystatechange=Y;g.dF("debug_forward_web_query_parameters")&&(q=DIc(q));P.open(w,q,!0);b&&(P.responseType=b);O&&(P.withCredentials=!0);w=w==="POST"&&(window.FormData===void 0||!(G instanceof FormData));if(k=REm(q,k))for(var K in k)P.setRequestHeader(K,k[K]),"content-type"===K.toLowerCase()&&(w=!1);w&&P.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); N&&"onprogress"in P&&(P.onprogress=function(){N(P.responseText)}); if(e&&"setAttributionReporting"in XMLHttpRequest.prototype){q={eventSourceEligible:!0,triggerEligible:!1};try{P.setAttributionReporting(q)}catch(d){vn(d)}}P.send(G);return P}; REm=function(q,a){a=a===void 0?{}:a;var w=gF(q),G=g.UL("INNERTUBE_CLIENT_NAME"),k=g.dF("web_ajax_ignore_global_headers_if_set"),b;for(b in ytU){var O=g.UL(ytU[b]),e=b==="X-Goog-AuthUser"||b==="X-Goog-PageId";b!=="X-Goog-Visitor-Id"||O||(O=g.UL("VISITOR_DATA"));var N;if(!(N=!O)){if(!(N=w||(g.Nr(q)?!1:!0))){N=q;var Y;if(Y=g.dF("add_auth_headers_to_remarketing_google_dot_com_ping")&&b==="Authorization"&&(G==="TVHTML5"||G==="TVHTML5_UNPLUGGED"||G==="TVHTML5_SIMPLY")&&tYm(N))N=Y$(N)||"",N=N.split("/"), N="/"+(N.length>1?N[1]:""),Y=N==="/pagead";N=Y?!0:!1}N=!N}N||k&&a[b]!==void 0||G==="TVHTML5_UNPLUGGED"&&e||(a[b]=O)}"X-Goog-EOM-Visitor-Id"in a&&"X-Goog-Visitor-Id"in a&&delete a["X-Goog-Visitor-Id"];if(w||!g.Nr(q))a["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(w||!g.Nr(q)){try{var P=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(K){}P&&(a["X-YouTube-Time-Zone"]=P)}document.location.hostname.endsWith("youtubeeducation.com")||!w&&g.Nr(q)||(a["X-YouTube-Ad-Signals"]= ix(bO()));return a}; ZS=function(q,a){a.method="POST";a.postParams||(a.postParams={});return g.Cy(q,a)}; aX_=function(q,a){if(window.fetch&&a.format!=="XML"){var w={method:a.method||"GET",credentials:"same-origin"};a.headers&&(w.headers=a.headers);a.priority&&(w.priority=a.priority);q=qZK(q,a);var G=g8y(q,a);G&&(w.body=G);a.withCredentials&&(w.credentials="include");var k=a.context||g.yV,b=!1,O;fetch(q,w).then(function(e){if(!b){b=!0;O&&g.Yn(O);var N=e.ok,Y=function(P){P=P||{};N?a.onSuccess&&a.onSuccess.call(k,P,e):a.onError&&a.onError.call(k,P,e);a.onFinish&&a.onFinish.call(k,P,e)}; (a.format||"JSON")==="JSON"&&(N||e.status>=400&&e.status<500)?e.json().then(Y,function(){Y(null)}):Y(null)}}).catch(function(){a.onError&&a.onError.call(k,{},{})}); q=a.timeout||0;a.onFetchTimeout&&q>0&&(O=g.ee(function(){b||(b=!0,g.Yn(O),a.onFetchTimeout.call(a.context||g.yV))},q))}else g.Cy(q,a)}; g.Cy=function(q,a){var w=a.format||"JSON";q=qZK(q,a);var G=g8y(q,a),k=!1,b=w4c(q,function(N){if(!k){k=!0;e&&g.Yn(e);var Y=g.lO(N),P=null,K=400<=N.status&&N.status<500,d=500<=N.status&&N.status<600;if(Y||K||d)P=Gwy(q,w,N,a.convertToSafeHtml);Y&&(Y=kwj(w,N,P));P=P||{};K=a.context||g.yV;Y?a.onSuccess&&a.onSuccess.call(K,N,P):a.onError&&a.onError.call(K,N,P);a.onFinish&&a.onFinish.call(K,N,P)}},a.method,G,a.headers,a.responseType,a.withCredentials,!1,a.onProgress); G=a.timeout||0;if(a.onTimeout&&G>0){var O=a.onTimeout;var e=g.ee(function(){k||(k=!0,b.abort(),g.Yn(e),O.call(a.context||g.yV,b))},G)}return b}; qZK=function(q,a){a.includeDomain&&(q=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+q);var w=g.UL("XSRF_FIELD_NAME");if(a=a.urlParams)a[w]&&delete a[w],q=ye(q,a);return q}; g8y=function(q,a){var w=g.UL("XSRF_FIELD_NAME"),G=g.UL("XSRF_TOKEN"),k=a.postBody||"",b=a.postParams,O=g.UL("XSRF_FIELD_NAME"),e;a.headers&&(e=a.headers["Content-Type"]);a.excludeXsrf||g.Nr(q)&&!a.withCredentials&&g.Nr(q)!==document.location.hostname||a.method!=="POST"||e&&e!=="application/x-www-form-urlencoded"||a.postParams&&a.postParams[O]||(b||(b={}),b[w]=G);(g.dF("ajax_parse_query_data_only_when_filled")&&b&&Object.keys(b).length>0||b)&&typeof k==="string"&&(k=Wn(k),g.FE(k,b),k=a.postBodyFormat&& a.postBodyFormat==="JSON"?JSON.stringify(k):g.$$(k));b=k||b&&!g.KH(b);!b1f&&b&&a.method!=="POST"&&(b1f=!0,g.ux(Error("AJAX request with postData should use POST")));return k}; Gwy=function(q,a,w,G){var k=null;switch(a){case "JSON":try{var b=w.responseText}catch(O){throw G=Error("Error reading responseText"),G.params=q,vn(G),O;}q=w.getResponseHeader("Content-Type")||"";b&&q.indexOf("json")>=0&&(b.substring(0,5)===")]}'\n"&&(b=b.substring(5)),k=JSON.parse(b));break;case "XML":if(q=(q=w.responseXML)?O1m(q):null)k={},g.WR(q.getElementsByTagName("*"),function(O){k[O.tagName]=lXc(O)})}G&&eCy(k); return k}; eCy=function(q){if(g.bV(q))for(var a in q)a==="html_content"||j_y(a,"_html")?q[a]=KS(q[a]):eCy(q[a])}; kwj=function(q,a,w){if(a&&a.status===204)return!0;switch(q){case "JSON":return!!w;case "XML":return Number(w&&w.return_code)===0;case "RAW":return!0;default:return!!w}}; O1m=function(q){return q?(q=("responseXML"in q?q.responseXML:q).getElementsByTagName("root"))&&q.length>0?q[0]:null:null}; lXc=function(q){var a="";g.WR(q.childNodes,function(w){a+=w.nodeValue}); return a}; DIc=function(q){var a=window.location.search,w=g.Nr(q);g.dF("debug_handle_relative_url_for_query_forward_killswitch")||!w&&gF(q)&&(w=document.location.hostname);var G=Y$(q);G=(w=w&&(w.endsWith("youtube.com")||w.endsWith("youtube-nocookie.com")))&&G&&G.startsWith("/api/");if(!w||G)return q;var k=Wn(a),b={};g.WR(NVc,function(O){k[O]&&(b[O]=k[O])}); return qL(q,b)}; Vb=function(q,a){var w=g.$I(a),G;return(new g.LT(function(k,b){w.onSuccess=function(O){g.lO(O)?k(new YZc(O)):b(new EF("Request failed, status="+OF(O),"net.badstatus",O))}; w.onError=function(O){b(new EF("Unknown request error","net.unknown",O))}; w.onTimeout=function(O){b(new EF("Request timed out","net.timeout",O))}; G=g.Cy(q,w)})).AK(function(k){if(k instanceof SY){var b; (b=G)==null||b.abort()}return nT(k)})}; g.JG=function(q,a,w,G,k,b){function O(N,Y,P){return N.AK(function(K){if(Y<=0||OF(K.xhr)===403)return nT(new EF("Request retried too many times","net.retryexhausted",K.xhr,K));var d=Math.pow(2,w-Y+1)*P,T=k>0?Math.min(k,d):d;return e(P).then(function(){b&&b(K,Y-1);return O(Vb(q,a),Y-1,T)})})} function e(N){return new g.LT(function(Y){setTimeout(Y,N)})} k=k===void 0?-1:k;return O(Vb(q,a),w-1,G)}; EF=function(q,a,w){$c.call(this,q+", errorCode="+a);this.errorCode=a;this.xhr=w;this.name="PromiseAjaxError"}; YZc=function(q){this.xhr=q}; mk=function(q){this.V=q===void 0?null:q;this.W=0;this.U=null}; Qb=function(q){var a=new mk;q=q===void 0?null:q;a.W=2;a.U=q===void 0?null:q;return a}; AG=function(q){var a=new mk;q=q===void 0?null:q;a.W=1;a.U=q===void 0?null:q;return a}; g.Br=function(q,a,w,G,k){xn||Ly.set(""+q,a,{pQ:w,path:"/",domain:G===void 0?"youtube.com":G,secure:k===void 0?!1:k})}; g.rF=function(q,a){if(!xn)return Ly.get(""+q,a)}; g.ny=function(q,a,w){xn||Ly.remove(""+q,a===void 0?"/":a,w===void 0?"youtube.com":w)}; Plf=function(){if(g.dF("embeds_web_enable_cookie_detection_fix")){if(!g.yV.navigator.cookieEnabled)return!1}else if(!Ly.isEnabled())return!1;if(!Ly.isEmpty())return!0;g.dF("embeds_web_enable_cookie_detection_fix")?Ly.set("TESTCOOKIESENABLED","1",{pQ:60,PyW:"none",secure:!0}):Ly.set("TESTCOOKIESENABLED","1",{pQ:60});if(Ly.get("TESTCOOKIESENABLED")!=="1")return!1;Ly.remove("TESTCOOKIESENABLED");return!0}; g.I=function(q,a){if(q)return q[a.name]}; ML=function(q){var a=g.UL("INNERTUBE_HOST_OVERRIDE");a&&(q=String(a)+String(Pl(q)));return q}; KnK=function(q){var a={};g.dF("json_condensed_response")&&(a.prettyPrint="false");return q=qL(q,a)}; hG=function(q,a){var w=w===void 0?{}:w;q={method:a===void 0?"POST":a,mode:gF(q)?"same-origin":"cors",credentials:gF(q)?"same-origin":"include"};a={};for(var G=g.V(Object.keys(w)),k=G.next();!k.done;k=G.next())k=k.value,w[k]&&(a[k]=w[k]);Object.keys(a).length>0&&(q.headers=a);return q}; Se=function(){var q=/Chrome\/(\d+)/.exec(g.cL());return q?parseFloat(q[1]):NaN}; fy=function(){var q=/\sCobalt\/(\S+)\s/.exec(g.cL());if(!q)return NaN;var a=[];q=g.V(q[1].split("."));for(var w=q.next();!w.done;w=q.next())w=parseInt(w.value,10),w>=0&&a.push(w);return parseFloat(a.join("."))}; cr=function(){return g.Hr("android")&&g.Hr("chrome")&&!(g.Hr("trident/")||g.Hr("edge/"))&&!g.Hr("cobalt")}; dAU=function(){return g.Hr("armv7")||g.Hr("aarch64")||g.Hr("android")}; g.py=function(){return g.Hr("cobalt")}; UF=function(){return g.Hr("cobalt")&&g.Hr("appletv")}; XL=function(){return g.Hr("(ps3; leanback shell)")||g.Hr("ps3")&&g.py()}; TVU=function(){return g.Hr("(ps4; leanback shell)")||g.Hr("ps4")&&g.py()}; g.$AK=function(){return g.py()&&(g.Hr("ps4 vr")||g.Hr("ps4 pro vr"))}; je=function(){var q=/WebKit\/([0-9]+)/.exec(g.cL());return!!(q&&parseInt(q[1],10)>=600)}; oc=function(){var q=/WebKit\/([0-9]+)/.exec(g.cL());return!!(q&&parseInt(q[1],10)>=602)}; sof=function(){return g.Hr("iemobile")||g.Hr("windows phone")&&g.Hr("edge")}; tG=function(){return(Ic||uO)&&g.Hr("applewebkit")&&!g.Hr("version")&&(!g.Hr("safari")||g.Hr("gsa/"))}; zn=function(){return g.vr&&g.Hr("version/")}; iO=function(){return g.Hr("smart-tv")&&g.Hr("samsung")}; g.Hr=function(q){var a=g.cL();return a?a.toLowerCase().indexOf(q)>=0:!1}; Wr=function(){return a9c()||tG()||zn()?!0:g.UL("EOM_VISITOR_DATA")?!1:!0}; DS=function(q,a){return a===void 0||a===null?q:a==="1"||a===!0||a===1||a==="True"?!0:!1}; Rc=function(q,a,w){for(var G in w)if(w[G]==a)return w[G];return q}; yb=function(q,a){return a===void 0||a===null?q:Number(a)}; qR=function(q,a){return a===void 0||a===null?q:a.toString()}; gg=function(q,a){if(a){if(q==="fullwidth")return Infinity;if(q==="fullheight")return 0}return q&&(a=q.match(FnJ))&&(q=Number(a[2]),a=Number(a[1]),!isNaN(q)&&!isNaN(a)&&q>0)?a/q:NaN}; at=function(q){var a=q.docid||q.video_id||q.videoId||q.id;if(a)return a;a=q.raw_player_response;a||(q=q.player_response)&&(a=JSON.parse(q));return a&&a.videoDetails&&a.videoDetails.videoId||null}; Clc=function(q){return wg(q,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; g.GV=function(q){return q==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||q==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; wg=function(q,a){a=(a===void 0?0:a)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(a="EMBEDDED_PLAYER_MODE_PFL");var w=q.raw_embedded_player_response;if(!w&&(q=q.embedded_player_response))try{w=JSON.parse(q)}catch(G){return a}return w?Rc(a,w.embeddedPlayerMode,Z1V):a}; bM=function(q){$c.call(this,q.message||q.description||q.name);this.isMissing=q instanceof kt;this.isTimeout=q instanceof EF&&q.errorCode=="net.timeout";this.isCanceled=q instanceof SY}; kt=function(){$c.call(this,"Biscotti ID is missing from server")}; E8f=function(){if(g.dF("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!Wr())return Error("User has not consented - not fetching biscotti id.");var q=g.UL("PLAYER_VARS",{});if(g.dn(q,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(Clc(q))return Error("Biscotti id fetching has been disabled for pfl.")}; QoN=function(){var q=E8f();if(q!==void 0)return nT(q);OH||(OH=Vb("//googleads.g.doubleclick.net/pagead/id",Vtm).then(J$y).AK(function(a){return mAl(2,a)})); return OH}; J$y=function(q){q=q.xhr.responseText;if(!BL(q,")]}'"))throw new kt;q=JSON.parse(q.substr(4));if((q.type||1)>1)throw new kt;q=q.id;pOm(q);OH=AG(q);A$m(18E5,2);return q}; mAl=function(q,a){a=new bM(a);pOm("");OH=Qb(a);q>0&&A$m(12E4,q-1);throw a;}; A$m=function(q,a){g.ee(function(){Vb("//googleads.g.doubleclick.net/pagead/id",Vtm).then(J$y,function(w){return mAl(a,w)}).AK(g.MP)},q)}; xAm=function(){try{var q=g.aB("yt.ads.biscotti.getId_");return q?q():QoN()}catch(a){return nT(a)}}; BVy=function(q){q&&(q.dataset?q.dataset[Lnm()]="true":wRN(q))}; r$G=function(q){return q?q.dataset?q.dataset[Lnm()]:q.getAttribute("data-loaded"):null}; Lnm=function(){return n8l.loaded||(n8l.loaded="loaded".replace(/\-([a-z])/g,function(q,a){return a.toUpperCase()}))}; Mtc=function(){var q=document;if("visibilityState"in q)return q.visibilityState;var a=lM+"VisibilityState";if(a in q)return q[a]}; e2=function(q,a){var w;In(q,function(G){w=a[G];return!!w}); return w}; NR=function(q){if(q.requestFullscreen)q=q.requestFullscreen(void 0);else if(q.webkitRequestFullscreen)q=q.webkitRequestFullscreen();else if(q.mozRequestFullScreen)q=q.mozRequestFullScreen();else if(q.msRequestFullscreen)q=q.msRequestFullscreen();else if(q.webkitEnterFullscreen)q=q.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return q instanceof Promise?q:Promise.resolve()}; K2=function(q){var a;g.Yt()?P5()==q&&(a=document):a=q;return a&&(q=e2(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],a))?(a=q.call(a),a instanceof Promise?a:Promise.resolve()):Promise.resolve()}; hCG=function(q){return g.Z7(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(a){return"on"+a.toLowerCase()in q})}; SZj=function(){var q=document;return g.Z7(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(a){return"on"+a.toLowerCase()in q})}; g.Yt=function(){return!!e2(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; P5=function(q){q=q===void 0?!1:q;var a=e2(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(q)for(;a&&a.shadowRoot;)a=a.shadowRoot.fullscreenElement;return a?a:null}; dg=function(q){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(q=q||window.event){this.event=q;for(var a in q)a in fXl||(this[a]=q[a]);this.scale=q.scale;this.rotation=q.rotation;var w=q.target||q.srcElement;w&&w.nodeType==3&&(w=w.parentNode);this.target=w;var G=q.relatedTarget; if(G)try{G=G.nodeName?G:null}catch(k){G=null}else this.type=="mouseover"?G=q.fromElement:this.type=="mouseout"&&(G=q.toElement);this.relatedTarget=G;this.clientX=q.clientX!=void 0?q.clientX:q.pageX;this.clientY=q.clientY!=void 0?q.clientY:q.pageY;this.keyCode=q.keyCode?q.keyCode:q.which;this.charCode=q.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=q.altKey;this.ctrlKey=q.ctrlKey;this.shiftKey=q.shiftKey;this.metaKey=q.metaKey;this.V=q.pageX;this.U=q.pageY}}catch(k){}}; H1_=function(q){if(document.body&&document.documentElement){var a=document.body.scrollTop+document.documentElement.scrollTop;q.V=q.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);q.U=q.clientY+a}}; c$K=function(q,a,w,G){G=G===void 0?{}:G;q.addEventListener&&(a!="mouseenter"||"onmouseenter"in document?a!="mouseleave"||"onmouseenter"in document?a=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(a="MozMousePixelScroll"):a="mouseout":a="mouseover");return PL(TV,function(k){var b=typeof k[4]==="boolean"&&k[4]==!!G,O=g.bV(k[4])&&g.bV(G)&&g.TB(k[4],G);return!!k.length&&k[0]==q&&k[1]==a&&k[2]==w&&(b||O)})}; g.$t=function(q,a,w,G){G=G===void 0?{}:G;if(!q||!q.addEventListener&&!q.attachEvent)return"";var k=c$K(q,a,w,G);if(k)return k;k=++p4m.count+"";var b=!(a!="mouseenter"&&a!="mouseleave"||!q.addEventListener||"onmouseenter"in document);var O=b?function(e){e=new dg(e);if(!VD(e.relatedTarget,function(N){return N==q},!0))return e.currentTarget=q,e.type=a,w.call(q,e)}:function(e){e=new dg(e); e.currentTarget=q;return w.call(q,e)}; O=g.tK(O);q.addEventListener?(a=="mouseenter"&&b?a="mouseover":a=="mouseleave"&&b?a="mouseout":a=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(a="MozMousePixelScroll"),UAU()||typeof G==="boolean"?q.addEventListener(a,O,G):q.addEventListener(a,O,!!G.capture)):q.attachEvent("on"+a,O);TV[k]=[q,a,w,O,G];return k}; jom=function(q){return X4J(q,function(a){return g.qG(a,"ytp-ad-has-logging-urls")})}; X4J=function(q,a){var w=document.body||document;return g.$t(w,"click",function(G){var k=VD(G.target,function(b){return b===w||a(b)},!0); k&&k!==w&&!k.disabled&&(G.currentTarget=k,q.call(k,G))})}; g.sH=function(q){q&&(typeof q=="string"&&(q=[q]),g.WR(q,function(a){if(a in TV){var w=TV[a],G=w[0],k=w[1],b=w[3];w=w[4];G.removeEventListener?UAU()||typeof w==="boolean"?G.removeEventListener(k,b,w):G.removeEventListener(k,b,!!w.capture):G.detachEvent&&G.detachEvent("on"+k,b);delete TV[a]}}))}; Ft=function(q){for(var a in TV)TV[a][0]==q&&g.sH(a)}; C2=function(q){q=q||window.event;var a;q.composedPath&&typeof q.composedPath==="function"?a=q.composedPath():a=q.path;a&&a.length?q=a[0]:(q=q||window.event,q=q.target||q.srcElement,q.nodeType==3&&(q=q.parentNode));return q}; Zn=function(q){this.X=q;this.V=null;this.Y=0;this.L=null;this.D=0;this.U=[];for(q=0;q<4;q++)this.U.push(0);this.W=0;this.UK=g.$t(window,"mousemove",(0,g.Ne)(this.J,this));this.S=g.NL((0,g.Ne)(this.F9,this),25)}; EH=function(q){g.c.call(this);this.X=[];this.yN=q||this}; Vv=function(q,a,w,G){for(var k=0;k0?w:0;w=G?Date.now()+G*1E3:0;if((G=G?(0,g.mB)():Qv())&&window.JSON){typeof a!=="string"&&(a=JSON.stringify(a,void 0));try{G.set(q,a,w)}catch(k){G.remove(q)}}}; g.xt=function(q){var a=Qv(),w=(0,g.mB)();if(!a&&!w||!window.JSON)return null;try{var G=a.get(q)}catch(k){}if(typeof G!=="string")try{G=w.get(q)}catch(k){}if(typeof G!=="string")return null;try{G=JSON.parse(G,void 0)}catch(k){}return G}; IXc=function(){var q=(0,g.mB)();if(q&&(q=q.U("yt-player-quality")))return q.creation}; g.L2=function(q){try{var a=Qv(),w=(0,g.mB)();a&&a.remove(q);w&&w.remove(q)}catch(G){}}; g.B5=function(){return g.xt("yt-remote-session-screen-id")}; uSK=function(q){var a=this;this.U=void 0;this.V=!1;q.addEventListener("beforeinstallprompt",function(w){w.preventDefault();a.U=w}); q.addEventListener("appinstalled",function(){a.V=!0},{once:!0})}; rg=function(){if(!g.yV.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.yV.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.yV.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.yV.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.yV.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(q){return"WEB_DISPLAY_MODE_UNKNOWN"}}; n2=function(){this.D4=!0}; ttj=function(){n2.instance||(n2.instance=new n2);return n2.instance}; v8J=function(q){switch(q){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}}; zCj=function(){this.V=g.UL("ALT_PREF_COOKIE_NAME","PREF");this.U=g.UL("ALT_PREF_COOKIE_DOMAIN","youtube.com");var q=g.rF(this.V);q&&this.parse(q)}; g.hE=function(){MR||(MR=new zCj);return MR}; g.S2=function(q,a){return!!((i1m("f"+(Math.floor(a/31)+1))||0)&1<0;)switch(q=ww.shift(),q.type){case "ERROR":yv.vW(q.payload);break;case "EVENT":yv.logEvent(q.eventType,q.payload)}}; k7=function(q){GA||(yv?yv.vW(q):(ww.push({type:"ERROR",payload:q}),ww.length>10&&ww.shift()))}; bY=function(q,a){GA||(yv?yv.logEvent(q,a):(ww.push({type:"EVENT",eventType:q,payload:a}),ww.length>10&&ww.shift()))}; OP=function(q){if(q.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; lY=function(q){return q.substr(0,q.indexOf(":"))||q}; g.eI=function(q,a,w,G,k){a=a===void 0?{}:a;w=w===void 0?wvU[q]:w;G=G===void 0?GEl[q]:G;k=k===void 0?kEm[q]:k;g.UH.call(this,w,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:q},a));this.type=q;this.message=w;this.level=G;this.V=k;Object.setPrototypeOf(this,g.eI.prototype)}; NF=function(q,a){g.eI.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:a,foundObjectStores:q},wvU.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,NF.prototype)}; Y7=function(q,a){var w=Error.call(this);this.message=w.message;"stack"in w&&(this.stack=w.stack);this.index=q;this.objectStore=a;Object.setPrototypeOf(this,Y7.prototype)}; KI=function(q,a,w,G){a=lY(a);var k=q instanceof Error?q:Error("Unexpected error: "+q);if(k instanceof g.eI)return k;q={objectStoreNames:w,dbName:a,dbVersion:G};if(k.name==="QuotaExceededError")return new g.eI("QUOTA_EXCEEDED",q);if(g.Ph&&k.name==="UnknownError")return new g.eI("QUOTA_MAYBE_EXCEEDED",q);if(k instanceof Y7)return new g.eI("MISSING_INDEX",Object.assign({},q,{objectStore:k.objectStore,index:k.index}));if(k.name==="InvalidStateError"&&bJV.some(function(b){return k.message.includes(b)}))return new g.eI("EXECUTE_TRANSACTION_ON_CLOSED_DB", q); if(k.name==="AbortError")return new g.eI("UNKNOWN_ABORT",q,k.message);k.args=[Object.assign({},q,{name:"IdbError",IV:k.name})];k.level="WARNING";return k}; g.dw=function(q,a,w){var G=Rt();return new g.eI("IDB_NOT_SUPPORTED",{context:{caller:q,publicName:a,version:w,hasSucceededOnce:G==null?void 0:G.hasSucceededOnce}})}; OJl=function(q){if(!q)throw Error();throw q;}; lHU=function(q){return q}; TA=function(q){this.V=q}; g.$7=function(q){function a(k){if(G.state.status==="PENDING"){G.state={status:"REJECTED",reason:k};k=g.V(G.U);for(var b=k.next();!b.done;b=k.next())b=b.value,b()}} function w(k){if(G.state.status==="PENDING"){G.state={status:"FULFILLED",value:k};k=g.V(G.V);for(var b=k.next();!b.done;b=k.next())b=b.value,b()}} var G=this;this.state={status:"PENDING"};this.V=[];this.U=[];q=q.V;try{q(w,a)}catch(k){a(k)}}; esV=function(q,a,w,G,k){try{if(q.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var b=w(q.state.value);b instanceof g.$7?sP(q,a,b,G,k):G(b)}catch(O){k(O)}}; N_U=function(q,a,w,G,k){try{if(q.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var b=w(q.state.reason);b instanceof g.$7?sP(q,a,b,G,k):G(b)}catch(O){k(O)}}; sP=function(q,a,w,G,k){a===w?k(new TypeError("Circular promise chain detected.")):w.then(function(b){b instanceof g.$7?sP(q,a,b,G,k):G(b)},function(b){k(b)})}; Y5J=function(q,a,w){function G(){w(q.error);b()} function k(){a(q.result);b()} function b(){try{q.removeEventListener("success",k),q.removeEventListener("error",G)}catch(O){}} q.addEventListener("success",k);q.addEventListener("error",G)}; PXj=function(q){return new Promise(function(a,w){Y5J(q,a,w)})}; F4=function(q){return new g.$7(new TA(function(a,w){Y5J(q,a,w)}))}; CI=function(q,a){return new g.$7(new TA(function(w,G){function k(){var b=q?a(q):null;b?b.then(function(O){q=O;k()},G):w()} k()}))}; KYG=function(q,a){this.request=q;this.cursor=a}; dbl=function(q){return F4(q).then(function(a){return a?new KYG(q,a):null})}; g.T__=function(q){q.cursor.continue(void 0);return dbl(q.request)}; $bJ=function(q,a){this.V=q;this.options=a;this.transactionCount=0;this.W=Math.round((0,g.Zj)());this.U=!1}; EP=function(){return g.dF("idb_immediate_commit")}; g.J2=function(q,a,w){q=q.V.createObjectStore(a,w);return new Vu(q)}; mJ=function(q,a){q.V.objectStoreNames.contains(a)&&q.V.deleteObjectStore(a)}; g.x7=function(q,a,w){return g.Qu(q,[a],{mode:"readwrite",EA:!0,commit:EP()},function(G){return g.A2(G.objectStore(a),w)})}; g.Qu=function(q,a,w,G){var k,b,O,e,N,Y,P,K,d,T,F,J;return g.h(function(Q){switch(Q.U){case 1:var B={mode:"readonly",EA:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof w==="string"?B.mode=w:Object.assign(B,w);k=B;q.transactionCount++;b=k.EA?3:1;O=0;case 2:if(e){Q.Gl(4);break}O++;N=Math.round((0,g.Zj)());g.ml(Q,5);Y=q.V.transaction(a,k.mode);B=!!k.commit;var L=new LI(Y);B=s1c(L,G,B);return g.n(Q,B,7);case 7:return P=Q.V,K=Math.round((0,g.Zj)()),FY_(q,N,K,O,void 0,a.join(),k),Q.return(P);case 5:d=g.rc(Q); T=Math.round((0,g.Zj)());F=KI(d,q.V.name,a.join(),q.V.version);if((J=F instanceof g.eI&&!F.V)||O>=b)FY_(q,N,T,O,F,a.join(),k),e=F;Q.Gl(2);break;case 4:return Q.return(Promise.reject(e))}})}; FY_=function(q,a,w,G,k,b,O){a=w-a;k?(k instanceof g.eI&&(k.type==="QUOTA_EXCEEDED"||k.type==="QUOTA_MAYBE_EXCEEDED")&&bY("QUOTA_EXCEEDED",{dbName:lY(q.V.name),objectStoreNames:b,transactionCount:q.transactionCount,transactionMode:O.mode}),k instanceof g.eI&&k.type==="UNKNOWN_ABORT"&&(w-=q.W,w<0&&w>=2147483648&&(w=0),bY("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:b,transactionDuration:a,transactionCount:q.transactionCount,dbDuration:w}),q.U=!0),CXU(q,!1,G,b,a,O.tag),k7(k)):CXU(q,!0,G,b,a, O.tag)}; CXU=function(q,a,w,G,k,b){bY("TRANSACTION_ENDED",{objectStoreNames:G,connectionHasUnknownAbortedTransaction:q.U,duration:k,isSuccessful:a,tryCount:w,tag:b===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":b})}; Vu=function(q){this.V=q}; g.Bh=function(q,a,w){q.V.createIndex(a,w,{unique:!1})}; ZJm=function(q,a){return g.rw(q,{query:a},function(w){return w.delete().then(function(){return g.nI(w)})}).then(function(){})}; EsJ=function(q,a,w){var G=[];return g.rw(q,{query:a},function(k){if(!(w!==void 0&&G.length>=w))return G.push(k.getValue()),g.nI(k)}).then(function(){return G})}; JDy=function(q){return"getAllKeys"in IDBObjectStore.prototype?F4(q.V.getAllKeys(void 0,void 0)):VdK(q)}; VdK=function(q){var a=[];return g.mbN(q,{query:void 0},function(w){a.push(w.cursor.primaryKey);return g.T__(w)}).then(function(){return a})}; g.A2=function(q,a,w){return F4(q.V.put(a,w))}; g.rw=function(q,a,w){q=q.V.openCursor(a.query,a.direction);return MF(q).then(function(G){return CI(G,w)})}; g.mbN=function(q,a,w){var G=a.query;a=a.direction;q="openKeyCursor"in IDBObjectStore.prototype?q.V.openKeyCursor(G,a):q.V.openCursor(G,a);return dbl(q).then(function(k){return CI(k,w)})}; LI=function(q){var a=this;this.V=q;this.W=new Map;this.U=!1;this.done=new Promise(function(w,G){a.V.addEventListener("complete",function(){w()}); a.V.addEventListener("error",function(k){k.currentTarget===k.target&&G(a.V.error)}); a.V.addEventListener("abort",function(){var k=a.V.error;if(k)G(k);else if(!a.U){k=g.eI;for(var b=a.V.objectStoreNames,O=[],e=0;e=w))return G.push(k.getValue()),g.nI(k)}).then(function(){return G})}; g.h2=function(q,a,w){q=q.V.openCursor(a.query===void 0?null:a.query,a.direction===void 0?"next":a.direction);return MF(q).then(function(G){return CI(G,w)})}; SI=function(q,a){this.request=q;this.cursor=a}; MF=function(q){return F4(q).then(function(a){return a?new SI(q,a):null})}; g.nI=function(q){q.cursor.continue(void 0);return MF(q.request)}; xbV=function(q,a,w){return new Promise(function(G,k){function b(){d||(d=new $bJ(O.result,{closed:K}));return d} var O=a!==void 0?self.indexedDB.open(q,a):self.indexedDB.open(q);var e=w.blocked,N=w.blocking,Y=w.N49,P=w.upgrade,K=w.closed,d;O.addEventListener("upgradeneeded",function(T){try{if(T.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(O.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");T.dataLoss&&T.dataLoss!=="none"&&bY("IDB_DATA_CORRUPTED",{reason:T.dataLossMessage||"unknown reason",dbName:lY(q)});var F=b(),J=new LI(O.transaction); P&&P(F,function(Q){return T.oldVersion=Q},J); J.done.catch(function(Q){k(Q)})}catch(Q){k(Q)}}); O.addEventListener("success",function(){var T=O.result;N&&T.addEventListener("versionchange",function(){N(b())}); T.addEventListener("close",function(){bY("IDB_UNEXPECTEDLY_CLOSED",{dbName:lY(q),dbVersion:T.version});Y&&Y()}); G(b())}); O.addEventListener("error",function(){k(O.error)}); e&&O.addEventListener("blocked",function(){e()})})}; LYl=function(q,a,w){w=w===void 0?{}:w;return xbV(q,a,w)}; fI=function(q,a){a=a===void 0?{}:a;var w,G,k,b;return g.h(function(O){if(O.U==1)return g.ml(O,2),w=self.indexedDB.deleteDatabase(q),G=a,(k=G.blocked)&&w.addEventListener("blocked",function(){k()}),g.n(O,PXj(w),4); if(O.U!=2)return g.xl(O,0);b=g.rc(O);throw KI(b,q,"",-1);})}; Hh=function(q,a){this.name=q;this.options=a;this.W=!0;this.D=this.Y=0}; B__=function(q,a){return new g.eI("INCOMPATIBLE_DB_VERSION",{dbName:q.name,oldVersion:q.options.version,newVersion:a})}; g.ch=function(q,a){if(!a)throw g.dw("openWithToken",lY(q.name));return q.open()}; rDJ=function(q,a){var w;return g.h(function(G){if(G.U==1)return g.n(G,g.ch(pI,a),2);w=G.V;return G.return(g.Qu(w,["databases"],{EA:!0,mode:"readwrite"},function(k){var b=k.objectStore("databases");return b.get(q.actualName).then(function(O){if(O?q.actualName!==O.actualName||q.publicName!==O.publicName||q.userIdentifier!==O.userIdentifier:1)return g.A2(b,q).then(function(){})})}))})}; UP=function(q,a){var w;return g.h(function(G){if(G.U==1)return q?g.n(G,g.ch(pI,a),2):G.return();w=G.V;return G.return(w.delete("databases",q))})}; nsf=function(q,a){var w,G;return g.h(function(k){return k.U==1?(w=[],g.n(k,g.ch(pI,a),2)):k.U!=3?(G=k.V,g.n(k,g.Qu(G,["databases"],{EA:!0,mode:"readonly"},function(b){w.length=0;return g.rw(b.objectStore("databases"),{},function(O){q(O.getValue())&&w.push(O.getValue());return g.nI(O)})}),3)):k.return(w)})}; MdV=function(q,a){return nsf(function(w){return w.publicName===q&&w.userIdentifier!==void 0},a)}; hsj=function(){var q,a,w,G;return g.h(function(k){switch(k.U){case 1:q=Rt();if((a=q)==null?0:a.hasSucceededOnce)return k.return(!0);if(X4&&je()&&!oc()||g.jI)return k.return(!1);try{if(w=self,!(w.indexedDB&&w.IDBIndex&&w.IDBKeyRange&&w.IDBObjectStore))return k.return(!1)}catch(b){return k.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return k.return(!1);g.ml(k,2);G={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.n(k,rDJ(G,ow),4);case 4:return g.n(k,UP("yt-idb-test-do-not-use",ow),5);case 5:return k.return(!0);case 2:return g.rc(k),k.return(!1)}})}; S5l=function(){if(Iw!==void 0)return Iw;GA=!0;return Iw=hsj().then(function(q){GA=!1;var a;if((a=Dn())!=null&&a.V){var w;a={hasSucceededOnce:((w=Rt())==null?void 0:w.hasSucceededOnce)||q};var G;(G=Dn())==null||G.set("LAST_RESULT_ENTRY_KEY",a,2592E3,!0)}return q})}; uY=function(){return g.aB("ytglobal.idbToken_")||void 0}; g.t2=function(){var q=uY();return q?Promise.resolve(q):S5l().then(function(a){(a=a?ow:void 0)&&g.qe("ytglobal.idbToken_",a);return a})}; fHf=function(q){if(!g.j2())throw q=new g.eI("AUTH_INVALID",{dbName:q}),k7(q),q;var a=g.Xt();return{actualName:q+":"+a,publicName:q,userIdentifier:a}}; HJJ=function(q,a,w,G){var k,b,O,e,N,Y;return g.h(function(P){switch(P.U){case 1:return b=(k=Error().stack)!=null?k:"",g.n(P,g.t2(),2);case 2:O=P.V;if(!O)throw e=g.dw("openDbImpl",q,a),g.dF("ytidb_async_stack_killswitch")||(e.stack=e.stack+"\n"+b.substring(b.indexOf("\n")+1)),k7(e),e;OP(q);N=w?{actualName:q,publicName:q,userIdentifier:void 0}:fHf(q);g.ml(P,3);return g.n(P,rDJ(N,O),5);case 5:return g.n(P,LYl(N.actualName,a,G),6);case 6:return P.return(P.V);case 3:return Y=g.rc(P),g.ml(P,7),g.n(P,UP(N.actualName, O),9);case 9:g.xl(P,8);break;case 7:g.rc(P);case 8:throw Y;}})}; cDj=function(q,a,w){w=w===void 0?{}:w;return HJJ(q,a,!1,w)}; pvm=function(q,a,w){w=w===void 0?{}:w;return HJJ(q,a,!0,w)}; Ubl=function(q,a){a=a===void 0?{}:a;var w,G;return g.h(function(k){if(k.U==1)return g.n(k,g.t2(),2);if(k.U!=3){w=k.V;if(!w)return k.return();OP(q);G=fHf(q);return g.n(k,fI(G.actualName,a),3)}return g.n(k,UP(G.actualName,w),0)})}; XvN=function(q,a,w){q=q.map(function(G){return g.h(function(k){return k.U==1?g.n(k,fI(G.actualName,a),2):g.n(k,UP(G.actualName,w),0)})}); return Promise.all(q).then(function(){})}; j1m=function(q){var a=a===void 0?{}:a;var w,G;return g.h(function(k){if(k.U==1)return g.n(k,g.t2(),2);if(k.U!=3){w=k.V;if(!w)return k.return();OP(q);return g.n(k,MdV(q,w),3)}G=k.V;return g.n(k,XvN(G,a,w),0)})}; osm=function(q,a){a=a===void 0?{}:a;var w;return g.h(function(G){if(G.U==1)return g.n(G,g.t2(),2);if(G.U!=3){w=G.V;if(!w)return G.return();OP(q);return g.n(G,fI(q,a),3)}return g.n(G,UP(q,w),0)})}; vh=function(q,a){Hh.call(this,q,a);this.options=a;OP(q)}; IHm=function(q,a){var w;return function(){w||(w=new vh(q,a));return w}}; g.zA=function(q,a){return IHm(q,a)}; iY=function(q){return g.ch(u0K(),q)}; tdV=function(q,a,w,G){var k,b,O;return g.h(function(e){switch(e.U){case 1:return k={config:q,hashData:a,timestamp:G!==void 0?G:(0,g.Zj)()},g.n(e,iY(w),2);case 2:return b=e.V,g.n(e,b.clear("hotConfigStore"),3);case 3:return g.n(e,g.x7(b,"hotConfigStore",k),4);case 4:return O=e.V,e.return(O)}})}; vsV=function(q,a,w,G,k){var b,O,e;return g.h(function(N){switch(N.U){case 1:return b={config:q,hashData:a,configData:w,timestamp:k!==void 0?k:(0,g.Zj)()},g.n(N,iY(G),2);case 2:return O=N.V,g.n(N,O.clear("coldConfigStore"),3);case 3:return g.n(N,g.x7(O,"coldConfigStore",b),4);case 4:return e=N.V,N.return(e)}})}; zsc=function(q){var a,w;return g.h(function(G){return G.U==1?g.n(G,iY(q),2):G.U!=3?(a=G.V,w=void 0,g.n(G,g.Qu(a,["coldConfigStore"],{mode:"readwrite",EA:!0},function(k){return g.h2(k.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(b){w=b.getValue()})}),3)):G.return(w)})}; iJ_=function(q){var a,w;return g.h(function(G){return G.U==1?g.n(G,iY(q),2):G.U!=3?(a=G.V,w=void 0,g.n(G,g.Qu(a,["hotConfigStore"],{mode:"readwrite",EA:!0},function(k){return g.h2(k.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(b){w=b.getValue()})}),3)):G.return(w)})}; WYU=function(){return g.h(function(q){return g.n(q,j1m("ytGcfConfig"),0)})}; Wh=function(){g.c.call(this);this.U=[];this.V=[];var q=g.aB("yt.gcf.config.hotUpdateCallbacks");q?(this.U=[].concat(g.Tf(q)),this.V=q):(this.V=[],g.qe("yt.gcf.config.hotUpdateCallbacks",this.V))}; a5=function(){var q=this;this.D=!1;this.W=this.Y=0;this.L=new Wh;this.qh={U$t:function(){q.D=!0}, Vj7:function(){return q.V}, fkK:function(a){Dj(q,a)}, ju:function(a){q.ju(a)}, QxG:function(a){Rw(q,a)}, V2:function(){return q.coldHashData}, W9:function(){return q.hotHashData}, j4T:function(){return q.U}, qbW:function(){return yu()}, y72:function(){return qY()}, Q48:function(){return g.aB("yt.gcf.config.coldHashData")}, oYG:function(){return g.aB("yt.gcf.config.hotHashData")}, Nm7:function(){DbV(q)}, ak8:function(){q.ju(void 0);ge(q);delete a5.instance}, YmW:function(a){q.W=a}, OmT:function(){return q.W}}}; RsG=function(){if(!a5.instance){var q=new a5;a5.instance=q}return a5.instance}; gXy=function(q){var a;g.h(function(w){if(w.U==1)return g.dF("start_client_gcf")||g.dF("delete_gcf_config_db")?g.dF("start_client_gcf")?g.n(w,g.t2(),3):w.Gl(2):w.return();w.U!=2&&((a=w.V)&&g.j2()&&!g.dF("delete_gcf_config_db")?(q.D=!0,DbV(q)):(yDK(q),q8_(q)));return g.dF("delete_gcf_config_db")?g.n(w,WYU(),0):w.Gl(0)})}; we=function(){var q;return(q=qY())!=null?q:g.UL("RAW_HOT_CONFIG_GROUP")}; aWc=function(q){var a,w,G,k,b,O;return g.h(function(e){switch(e.U){case 1:if(q.U)return e.return(qY());if(!q.D)return a=g.dw("getHotConfig IDB not initialized"),vn(a),e.return(Promise.reject(a));w=uY();G=g.UL("TIME_CREATED_MS");if(!w){k=g.dw("getHotConfig token error");vn(k);e.Gl(2);break}return g.n(e,iJ_(w),3);case 3:if((b=e.V)&&b.timestamp>G)return Dj(q,b.config),q.ju(b.hashData),e.return(qY());case 2:q8_(q);if(!(w&&q.U&&q.hotHashData)){e.Gl(4);break}return g.n(e,tdV(q.U,q.hotHashData,w,G),4);case 4:return q.U? e.return(qY()):(O=new g.UH("Config not available in ytConfig"),vn(O),e.return(Promise.reject(O)))}})}; GMK=function(q){var a,w,G,k,b,O;return g.h(function(e){switch(e.U){case 1:if(q.V)return e.return(yu());if(!q.D)return a=g.dw("getColdConfig IDB not initialized"),vn(a),e.return(Promise.reject(a));w=uY();G=g.UL("TIME_CREATED_MS");if(!w){k=g.dw("getColdConfig");vn(k);e.Gl(2);break}return g.n(e,zsc(w),3);case 3:if((b=e.V)&&b.timestamp>G)return Rw(q,b.config),wBG(q,b.configData),ge(q,b.hashData),e.return(yu());case 2:yDK(q);if(!(w&&q.V&&q.coldHashData&&q.configData)){e.Gl(4);break}return g.n(e,vsV(q.V, q.coldHashData,q.configData,w,G),4);case 4:return q.V?e.return(yu()):(O=new g.UH("Config not available in ytConfig"),vn(O),e.return(Promise.reject(O)))}})}; DbV=function(q){if(!q.U||!q.V){if(!uY()){var a=g.dw("scheduleGetConfigs");vn(a)}q.Y||(q.Y=g.fJ.gh(function(){return g.h(function(w){switch(w.U){case 1:return g.ml(w,2),g.n(w,aWc(q),4);case 4:g.xl(w,3);break;case 2:g.rc(w);case 3:return g.ml(w,5),g.n(w,GMK(q),7);case 7:g.xl(w,6);break;case 5:g.rc(w);case 6:q.Y&&(q.Y=0),g.Jm(w)}})},100))}}; kMN=function(q,a,w){var G,k,b;return g.h(function(O){switch(O.U){case 1:if(!g.dF("start_client_gcf")){O.Gl(0);break}w&&Dj(q,w);q.ju(a);G=uY();if(!G){O.Gl(3);break}if(w){O.Gl(4);break}return g.n(O,iJ_(G),5);case 5:k=O.V,w=(b=k)==null?void 0:b.config;case 4:return g.n(O,tdV(w,a,G),3);case 3:if(w)for(var e=w,N=g.V(q.L.V),Y=N.next();!Y.done;Y=N.next())Y=Y.value,Y(e);g.Jm(O)}})}; bal=function(q,a,w){var G,k,b,O;return g.h(function(e){if(e.U==1){if(!g.dF("start_client_gcf"))return e.Gl(0);ge(q,a);return(G=uY())?w?e.Gl(4):g.n(e,zsc(G),5):e.Gl(0)}e.U!=4&&(k=e.V,w=(b=k)==null?void 0:b.config);if(!w)return e.Gl(0);O=w.configData;return g.n(e,vsV(w,a,O,G),0)})}; OaK=function(){var q=RsG(),a=(0,g.Zj)()-q.W;if(!(q.W!==0&&a0&&(a.request={internalExperimentFlags:w});eTU(q,void 0,a);NUy(void 0,a);Y8l(void 0,a);P9y(q,void 0,a);Kal(void 0,a);g.dF("start_client_gcf")&&dGK(void 0,a);g.UL("DELEGATED_SESSION_ID")&& !g.dF("pageid_as_header_web")&&(a.user={onBehalfOfUser:g.UL("DELEGATED_SESSION_ID")});!g.dF("fill_delegate_context_in_gel_killswitch")&&(q=g.UL("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(a.user=Object.assign({},a.user,{serializedDelegationContext:q}));q=g.UL("INNERTUBE_CONTEXT");var G;if(g.dF("enable_persistent_device_token")&&(q==null?0:(G=q.client)==null?0:G.rolloutToken)){var k;a.client.rolloutToken=q==null?void 0:(k=q.client)==null?void 0:k.rolloutToken}G=Object;k=G.assign;q=a.client; w={};for(var b=g.V(Object.entries(Wn(g.UL("DEVICE","")))),O=b.next();!O.done;O=b.next()){var e=g.V(O.value);O=e.next().value;e=e.next().value;O==="cbrand"?w.deviceMake=e:O==="cmodel"?w.deviceModel=e:O==="cbr"?w.browserName=e:O==="cbrver"?w.browserVersion=e:O==="cos"?w.osName=e:O==="cosver"?w.osVersion=e:O==="cplatform"&&(w.platform=e)}a.client=k.call(G,q,w);return a}; eTU=function(q,a,w){q=q.zV;if(q==="WEB"||q==="MWEB"||q===1||q===2)if(a){w=Z$(a,Ve,96)||new Ve;var G=rg();G=Object.keys(TUy).indexOf(G);G=G===-1?null:G;G!==null&&pl(w,3,G);AY(a,Ve,96,w)}else w&&(w.client.mainAppWebInfo=(G=w.client.mainAppWebInfo)!=null?G:{},w.client.mainAppWebInfo.webDisplayMode=rg())}; NUy=function(q,a){var w=g.aB("yt.embedded_player.embed_url");w&&(q?(a=Z$(q,xg,7)||new xg,H$(a,4,w),AY(q,xg,7,a)):a&&(a.thirdParty={embedUrl:w}))}; Y8l=function(q,a){var w;if(g.dF("web_log_memory_total_kbytes")&&((w=g.yV.navigator)==null?0:w.deviceMemory)){var G;w=(G=g.yV.navigator)==null?void 0:G.deviceMemory;q?aj(q,95,Jn(w*1E6)):a&&(a.client.memoryTotalKbytes=""+w*1E6)}}; P9y=function(q,a,w){if(q.appInstallData)if(a){var G;w=(G=Z$(a,EL,62))!=null?G:new EL;H$(w,6,q.appInstallData);AY(a,EL,62,w)}else w&&(w.client.configInfo=w.client.configInfo||{},w.client.configInfo.appInstallData=q.appInstallData)}; Kal=function(q,a){var w=RCy();w&&(q?pl(q,61,$Gc[w]):a&&(a.client.connectionType=w));g.dF("web_log_effective_connection_type")&&(w=q5c())&&(q?pl(q,94,shJ[w]):a&&(a.client.effectiveConnectionType=w))}; FaN=function(q,a,w){w=w===void 0?{}:w;var G={};g.UL("EOM_VISITOR_DATA")?G={"X-Goog-EOM-Visitor-Id":g.UL("EOM_VISITOR_DATA")}:G={"X-Goog-Visitor-Id":w.visitorData||g.UL("VISITOR_DATA","")};if(a&&a.includes("www.youtube-nocookie.com"))return G;a=w.Sz||g.UL("AUTHORIZATION");a||(q?a="Bearer "+g.aB("gapi.auth.getToken")().access_token:(q=ttj().yy(Ob),g.dF("pageid_as_header_web")||delete q["X-Goog-PageId"],G=Object.assign({},G,q)));a&&(G.Authorization=a);return G}; dGK=function(q,a){var w=OaK();if(w){var G=w.coldConfigData,k=w.coldHashData;w=w.hotHashData;if(q){var b;a=(b=Z$(q,EL,62))!=null?b:new EL;G=H$(a,1,G);H$(G,3,k).ju(w);AY(q,EL,62,a)}else a&&(a.client.configInfo=a.client.configInfo||{},G&&(a.client.configInfo.coldConfigData=G),k&&(a.client.configInfo.coldHashData=k),w&&(a.client.configInfo.hotHashData=w))}}; l$=function(q,a){this.version=q;this.args=a}; eC=function(q,a){this.topic=q;this.V=a}; Y3=function(q,a){var w=NY();w&&w.publish.call(w,q.toString(),q,a)}; EXU=function(q){var a=C9G,w=NY();if(!w)return 0;var G=w.subscribe(a.toString(),function(k,b){var O=g.aB("ytPubsub2Pubsub2SkipSubKey");O&&O==G||(O=function(){if(P0[G])try{if(b&&a instanceof eC&&a!=k)try{var e=a.V,N=b;if(!N.args||!N.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!e.V4){var Y=new e;e.V4=Y.version}var P=e.V4}catch(K){}if(!P||N.version!=P)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{b=Reflect.construct(e, g.nw(N.args))}catch(K){throw K.message="yt.pubsub2.Data.deserialize(): "+K.message,K;}}catch(K){throw K.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+a.toString()+": "+K.message,K;}q.call(window,b)}catch(K){g.ux(K)}},Zac[a.toString()]?g.zV()?g.fJ.gh(O):g.ee(O,0):O())}); P0[G]=!0;KB[a.toString()]||(KB[a.toString()]=[]);KB[a.toString()].push(G);return G}; mGJ=function(){var q=VLN,a=EXU(function(w){q.apply(void 0,arguments);JXl(a)}); return a}; JXl=function(q){var a=NY();a&&(typeof q==="number"&&(q=[q]),g.WR(q,function(w){a.unsubscribeByKey(w);delete P0[w]}))}; NY=function(){return g.aB("ytPubsub2Pubsub2Instance")}; de=function(q,a,w){w=w===void 0?{sampleRate:.1}:w;Math.random()rX_||O=S8m&&(mN++,g.dF("abandon_compression_after_N_slow_zips")?Ja===g.Tn("compression_disable_point")&&mN>fWN&&(Z2=!1):Z2=!1);HaG(a);G.headers||(G.headers={});G.headers["Content-Encoding"]="gzip";G.postBody=q;G.postParams=void 0;k(w,G)}; cX_=function(q){var a=a===void 0?!1:a;var w=w===void 0?!1:w;var G=(0,g.Zj)(),k={startTime:G,ticks:{},infos:{}},b=a?g.aB("yt.logging.gzipForFetch",!1):!0;if(Z2&&b){if(!q.body)return q;try{var O=w?q.body:typeof q.body==="string"?q.body:JSON.stringify(q.body);b=O;if(!w&&typeof O==="string"){var e=BUc(O);if(e!=null&&(e>rX_||e=S8m)if(mN++,g.dF("abandon_compression_after_N_slow_zips")||g.dF("abandon_compression_after_N_slow_zips_lr")){a=mN/Ja;var Y=fWN/g.Tn("compression_disable_point");Ja>0&&Ja%g.Tn("compression_disable_point")===0&&a>=Y&&(Z2=!1)}else Z2=!1;HaG(k)}}q.headers=Object.assign({},{"Content-Encoding":"gzip"},q.headers||{});q.body=b;return q}catch(P){return vn(P),q}}else return q}; BUc=function(q){try{return(new Blob(q.split(""))).size}catch(a){return vn(a),null}}; HaG=function(q){g.dF("gel_compression_csi_killswitch")||!g.dF("log_gel_compression_latency")&&!g.dF("log_gel_compression_latency_lr")||de("gel_compression",q,{sampleRate:.1})}; Aa=function(q){var a=this;this.m3=this.V=!1;this.potentialEsfErrorCounter=this.U=0;this.handleError=function(){}; this.sH=function(){}; this.now=Date.now;this.zb=!1;this.qh={oVT:function(P){a.xW=P}, w3B:function(){a.xg()}, eV:function(){a.cD()}, zP:function(P){return g.h(function(K){return g.n(K,a.zP(P),0)})}, PE:function(P,K){return a.PE(P,K)}, AM:function(){a.AM()}}; var w;this.eY=(w=q.eY)!=null?w:100;var G;this.Nf=(G=q.Nf)!=null?G:1;var k;this.Hx=(k=q.Hx)!=null?k:2592E6;var b;this.qf=(b=q.qf)!=null?b:12E4;var O;this.Mf=(O=q.Mf)!=null?O:5E3;var e;this.xW=(e=q.xW)!=null?e:void 0;this.Tt=!!q.Tt;var N;this.uE=(N=q.uE)!=null?N:.1;var Y;this.cE=(Y=q.cE)!=null?Y:10;q.handleError&&(this.handleError=q.handleError);q.sH&&(this.sH=q.sH);q.zb&&(this.zb=q.zb);q.m3&&(this.m3=q.m3);this.Zh=q.Zh;this.BF=q.BF;this.kD=q.kD;this.fW=q.fW;this.sendFn=q.sendFn;this.b1=q.b1;this.SP= q.SP;QL(this)&&(!this.Zh||this.Zh("networkless_logging"))&&pBG(this)}; pBG=function(q){QL(q)&&!q.zb&&(q.V=!0,q.Tt&&Math.random()<=q.uE&&q.kD.wf(q.xW),q.AM(),q.fW.GA()&&q.xg(),q.fW.listen(q.b1,q.xg.bind(q)),q.fW.listen(q.SP,q.cD.bind(q)))}; jhN=function(q,a){if(!QL(q))throw Error("IndexedDB is not supported: updateRequestHandlers");var w=a.options.onError?a.options.onError:function(){}; a.options.onError=function(k,b){var O,e,N,Y;return g.h(function(P){switch(P.U){case 1:O=UG_(b);(e=XBj(b))&&q.Zh&&q.Zh("web_enable_error_204")&&q.handleError(Error("Request failed due to compression"),a.url,b);if(!(q.Zh&&q.Zh("nwl_consider_error_code")&&O||q.Zh&&!q.Zh("nwl_consider_error_code")&&q.potentialEsfErrorCounter<=q.cE)){P.Gl(2);break}if(!q.fW.Ky){P.Gl(3);break}return g.n(P,q.fW.Ky(),3);case 3:if(q.fW.GA()){P.Gl(2);break}w(k,b);if(!q.Zh||!q.Zh("nwl_consider_error_code")||((N=a)==null?void 0: N.id)===void 0){P.Gl(6);break}return g.n(P,q.kD.Dr(a.id,q.xW,!1),6);case 6:return P.return();case 2:if(q.Zh&&q.Zh("nwl_consider_error_code")&&!O&&q.potentialEsfErrorCounter>q.cE)return P.return();q.potentialEsfErrorCounter++;if(((Y=a)==null?void 0:Y.id)===void 0){P.Gl(8);break}return a.sendCount=400&&q<=599?!1:!0}; XBj=function(q){var a;q=q==null?void 0:(a=q.error)==null?void 0:a.code;return!(q!==400&&q!==415)}; oXU=function(){if(LB)return LB();var q={};LB=g.zA("LogsDatabaseV2",{Bs:(q.LogsRequestsStore={fd:2},q),shared:!1,upgrade:function(a,w,G){w(2)&&g.J2(a,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});w(3);w(5)&&(G=G.objectStore("LogsRequestsStore"),G.V.indexNames.contains("newRequest")&&G.V.deleteIndex("newRequest"),g.Bh(G,"newRequestV2",["status","interface","timestamp"]));w(7)&&mJ(a,"sapisid");w(9)&&mJ(a,"SWHealthLog")}, version:9});return LB()}; B0=function(q){return g.ch(oXU(),q)}; uNf=function(q,a){var w,G,k,b;return g.h(function(O){if(O.U==1)return w={startTime:(0,g.Zj)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.n(O,B0(a),2);if(O.U!=3)return G=O.V,k=Object.assign({},q,{options:JSON.parse(JSON.stringify(q.options)),interface:g.UL("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.n(O,g.x7(G,"LogsRequestsStore",k),3);b=O.V;w.ticks.tc=(0,g.Zj)();IWc(w);return O.return(b)})}; tLG=function(q,a){var w,G,k,b,O,e,N,Y,P;return g.h(function(K){if(K.U==1)return w={startTime:(0,g.Zj)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.n(K,B0(a),2);if(K.U!=3)return G=K.V,k=g.UL("INNERTUBE_CONTEXT_CLIENT_NAME",0),b=[q,k,0],O=[q,k,(0,g.Zj)()],e=IDBKeyRange.bound(b,O),N="prev",g.dF("use_fifo_for_networkless")&&(N="next"),Y=void 0,P=q==="NEW"?"readwrite":"readonly",g.dF("use_readonly_for_get_most_recent_by_status_killswitch")&&(P="readwrite"),g.n(K,g.Qu(G,["LogsRequestsStore"], {mode:P,EA:!0},function(d){return g.h2(d.objectStore("LogsRequestsStore").index("newRequestV2"),{query:e,direction:N},function(T){T.getValue()&&(Y=T.getValue(),q==="NEW"&&(Y.status="QUEUED",T.update(Y)))})}),3); w.ticks.tc=(0,g.Zj)();IWc(w);return K.return(Y)})}; vXV=function(q,a){var w;return g.h(function(G){if(G.U==1)return g.n(G,B0(a),2);w=G.V;return G.return(g.Qu(w,["LogsRequestsStore"],{mode:"readwrite",EA:!0},function(k){var b=k.objectStore("LogsRequestsStore");return b.get(q).then(function(O){if(O)return O.status="QUEUED",g.A2(b,O).then(function(){return O})})}))})}; zTV=function(q,a,w,G){w=w===void 0?!0:w;var k;return g.h(function(b){if(b.U==1)return g.n(b,B0(a),2);k=b.V;return b.return(g.Qu(k,["LogsRequestsStore"],{mode:"readwrite",EA:!0},function(O){var e=O.objectStore("LogsRequestsStore");return e.get(q).then(function(N){return N?(N.status="NEW",w&&(N.sendCount+=1),G!==void 0&&(N.options.compress=G),g.A2(e,N).then(function(){return N})):g.$7.resolve(void 0)})}))})}; iac=function(q,a){var w;return g.h(function(G){if(G.U==1)return g.n(G,B0(a),2);w=G.V;return G.return(w.delete("LogsRequestsStore",q))})}; Waj=function(q){var a,w;return g.h(function(G){if(G.U==1)return g.n(G,B0(q),2);a=G.V;w=(0,g.Zj)()-2592E6;return g.n(G,g.Qu(a,["LogsRequestsStore"],{mode:"readwrite",EA:!0},function(k){return g.rw(k.objectStore("LogsRequestsStore"),{},function(b){if(b.getValue().timestamp<=w)return b.delete().then(function(){return g.nI(b)})})}),0)})}; DGl=function(){g.h(function(q){return g.n(q,j1m("LogsDatabaseV2"),0)})}; IWc=function(q){g.dF("nwl_csi_killswitch")||de("networkless_performance",q,{sampleRate:1})}; yXN=function(q){return g.ch(RTU(),q)}; qLj=function(q){var a,w;g.h(function(G){if(G.U==1)return g.n(G,yXN(q),2);a=G.V;w=(0,g.Zj)()-2592E6;return g.n(G,g.Qu(a,["SWHealthLog"],{mode:"readwrite",EA:!0},function(k){return g.rw(k.objectStore("SWHealthLog"),{},function(b){if(b.getValue().timestamp<=w)return b.delete().then(function(){return g.nI(b)})})}),0)})}; ggc=function(q){var a;return g.h(function(w){if(w.U==1)return g.n(w,yXN(q),2);a=w.V;return g.n(w,a.clear("SWHealthLog"),0)})}; g.re=function(q,a,w,G,k,b,O){k=k===void 0?"":k;b=b===void 0?!1:b;O=O===void 0?!1:O;if(q)if(w&&!g.py())vn(new g.UH("Legacy referrer-scrubbed ping detected")),q&&aeU(q,void 0,{scrubReferrer:!0});else if(k)FL(q,a,"POST",k,G);else if(g.UL("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||G||O)FL(q,a,"GET","",G,void 0,b,O);else{b:{try{c:{var e=new Jxf({url:q});if(e.V.dsh==="1")var N=null;else{var Y=e.V.ae;if(Y==="1"){var P=e.V.adurl;if(P)try{N={version:3,WK:decodeURIComponent(P),Hp:iu(e.U,"act=1","ri=1",mMm(e))}; break c}catch(T){}}N=Y==="2"?{version:4,WK:iu(e.U,"dct=1","suid="+e.W,""),Hp:iu(e.U,"act=1","ri=1","suid="+e.W)}:null}}if(N){var K=Y$(q);var d=!(!K||!K.endsWith("/aclk")||V6(q,"ri")!=="1");break b}}catch(T){}d=!1}d?wnl(q)?(a&&a(),w=!0):w=!1:w=!1;w||aeU(q,a)}}; wnl=function(q,a){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(q,a===void 0?"":a))return!0}catch(w){}return!1}; aeU=function(q,a,w){w=w===void 0?{}:w;var G=new Image,k=""+Gel++;nB[k]=G;G.onload=G.onerror=function(){a&&nB[k]&&a();delete nB[k]}; w.scrubReferrer&&(G.referrerPolicy="no-referrer");G.src=q}; keG=function(q){var a;return((a=document.featurePolicy)==null?0:a.allowedFeatures().includes("attribution-reporting"))?q+"&nis=6":q+"&nis=5"}; ha=function(){MY||(MY=new W5("yt.offline"));return MY}; b__=function(q){if(g.dF("offline_error_handling")){var a=ha().get("errors",!0)||{};a[q.message]={name:q.name,stack:q.stack};q.level&&(a[q.message].level=q.level);ha().set("errors",a,2592E3,!0)}}; SC=function(){this.V=new Map;this.U=!1}; fB=function(){if(!SC.instance){var q=g.aB("yt.networkRequestMonitor.instance")||new SC;g.qe("yt.networkRequestMonitor.instance",q);SC.instance=q}return SC.instance}; H0=function(){g.PO.call(this);var q=this;this.U=!1;this.V=FLy();this.V.listen("networkstatus-online",function(){if(q.U&&g.dF("offline_error_handling")){var a=ha().get("errors",!0);if(a){for(var w in a)if(a[w]){var G=new g.UH(w,"sent via offline_errors");G.name=a[w].name;G.stack=a[w].stack;G.level=a[w].level;g.ux(G)}ha().set("errors",{},2592E3,!0)}}})}; O_c=function(){if(!H0.instance){var q=g.aB("yt.networkStatusManager.instance")||new H0;g.qe("yt.networkStatusManager.instance",q);H0.instance=q}return H0.instance}; g.c0=function(q){q=q===void 0?{}:q;g.PO.call(this);var a=this;this.V=this.Y=0;this.U=O_c();var w=g.aB("yt.networkStatusManager.instance.listen").bind(this.U);w&&(q.rateLimit?(this.rateLimit=q.rateLimit,w("networkstatus-online",function(){lel(a,"publicytnetworkstatus-online")}),w("networkstatus-offline",function(){lel(a,"publicytnetworkstatus-offline")})):(w("networkstatus-online",function(){a.dispatchEvent("publicytnetworkstatus-online")}),w("networkstatus-offline",function(){a.dispatchEvent("publicytnetworkstatus-offline")})))}; lel=function(q,a){q.rateLimit?q.V?(g.fJ.FS(q.Y),q.Y=g.fJ.gh(function(){q.W!==a&&(q.dispatchEvent(a),q.W=a,q.V=(0,g.Zj)())},q.rateLimit-((0,g.Zj)()-q.V))):(q.dispatchEvent(a),q.W=a,q.V=(0,g.Zj)()):q.dispatchEvent(a)}; Ub=function(){var q=Aa.call;pB||(pB=new g.c0({Lfe:!0,ibt:!0}));q.call(Aa,this,{kD:{wf:Waj,jn:iac,MW:tLG,qKK:vXV,Dr:zTV,set:uNf},fW:pB,handleError:function(a,w,G){var k,b=G==null?void 0:(k=G.error)==null?void 0:k.code;if(b===400||b===415){var O;a=new g.UH(a.message,w,G==null?void 0:(O=G.error)==null?void 0:O.code);vn(a,void 0,void 0,void 0,!0)}else g.ux(a)}, sH:vn,sendFn:eHU,now:g.Zj,lX:b__,BF:g.v5(),b1:"publicytnetworkstatus-online",SP:"publicytnetworkstatus-offline",Tt:!0,uE:.1,cE:g.Tn("potential_esf_error_limit",10),Zh:g.dF,zb:!(g.j2()&&g.Nr(document.location.toString())!=="www.youtube-nocookie.com")});this.W=new g.Y8;g.dF("networkless_immediately_drop_all_requests")&&DGl();osm("LogsDatabaseV2")}; X3=function(){var q=g.aB("yt.networklessRequestController.instance");q||(q=new Ub,g.qe("yt.networklessRequestController.instance",q),g.dF("networkless_logging")&&g.t2().then(function(a){q.xW=a;pBG(q);q.W.resolve();q.Tt&&Math.random()<=q.uE&&q.xW&&qLj(q.xW);g.dF("networkless_immediately_drop_sw_health_store")&&N0l(q)})); return q}; N0l=function(q){var a;g.h(function(w){if(!q.xW)throw a=g.dw("clearSWHealthLogsDb"),a;return w.return(ggc(q.xW).catch(function(G){q.handleError(G)}))})}; eHU=function(q,a,w,G){G=G===void 0?!1:G;a=g.dF("web_fp_via_jspb")?Object.assign({},a):a;g.dF("use_cfr_monitor")&&YLV(q,a);if(g.dF("use_request_time_ms_header"))a.headers&&gF(q)&&(a.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.Zj)())));else{var k;if((k=a.postParams)==null?0:k.requestTimeMs)a.postParams.requestTimeMs=Math.round((0,g.Zj)())}w&&Object.keys(a).length===0?g.re(q):a.compress?a.postBody?(typeof a.postBody!=="string"&&(a.postBody=JSON.stringify(a.postBody)),VL(q,a.postBody, a,g.Cy,G)):VL(q,JSON.stringify(a.postParams),a,ZS,G):g.Cy(q,a)}; jC=function(q,a){g.dF("use_event_time_ms_header")&&gF(q)&&(a.headers||(a.headers={}),a.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.Zj)())));return a}; YLV=function(q,a){var w=a.onError?a.onError:function(){}; a.onError=function(k,b){fB().requestComplete(q,!1);w(k,b)}; var G=a.onSuccess?a.onSuccess:function(){}; a.onSuccess=function(k,b){fB().requestComplete(q,!0);G(k,b)}}; g.o5=function(q){this.config_=null;q?this.config_=q:lWK()&&(this.config_=g.GZ())}; g.I5=function(q,a,w,G){function k(Y){try{if((Y===void 0?0:Y)&&G.retry&&!G.networklessOptions.bypassNetworkless)b.method="POST",G.networklessOptions.writeThenSend?X3().writeThenSend(N,b):X3().sendAndWrite(N,b);else if(G.compress){var P=!G.networklessOptions.writeThenSend;if(b.postBody){var K=b.postBody;typeof K!=="string"&&(K=JSON.stringify(b.postBody));VL(N,K,b,g.Cy,P)}else VL(N,JSON.stringify(b.postParams),b,ZS,P)}else g.dF("web_all_payloads_via_jspb")?g.Cy(N,b):ZS(N,b)}catch(d){if(d.name==="InvalidAccessError")vn(Error("An extension is blocking network request.")); else throw d;}} !g.UL("VISITOR_DATA")&&a!=="visitor_id"&&Math.random()<.01&&vn(new g.UH("Missing VISITOR_DATA when sending innertube request.",a,w,G));if(!q.isReady())throw q=new g.UH("innertube xhrclient not ready",a,w,G),g.ux(q),q;var b={headers:G.headers||{},method:"POST",postParams:w,postBody:G.postBody,postBodyFormat:G.postBodyFormat||"JSON",onTimeout:function(){G.onTimeout()}, onFetchTimeout:G.onTimeout,onSuccess:function(Y,P){if(G.onSuccess)G.onSuccess(P)}, onFetchSuccess:function(Y){if(G.onSuccess)G.onSuccess(Y)}, onProgress:function(Y){if(G.onProgress)G.onProgress(Y)}, onError:function(Y,P){if(G.onError)G.onError(P)}, onFetchError:function(Y){if(G.onError)G.onError(Y)}, timeout:G.timeout,withCredentials:!0,compress:G.compress};b.headers["Content-Type"]||(b.headers["Content-Type"]="application/json");w="";var O=q.config_.XU;O&&(w=O);O=q.config_.lG||!1;var e=FaN(O,w,G);Object.assign(b.headers,e);b.headers.Authorization&&!w&&O&&(b.headers["x-origin"]=window.location.origin);var N=ye(""+w+("/youtubei/"+q.config_.innertubeApiVersion+"/"+a),{alt:"json"});g.aB("ytNetworklessLoggingInitializationOptions")&&Pxl.isNwlInitialized?S5l().then(function(Y){k(Y)}):k(!1)}; g.i$=function(q,a,w){var G=g.u$();if(G&&a){var k=G.subscribe(q,function(){function b(){ta[k]&&a.apply&&typeof a.apply=="function"&&a.apply(w||window,O)} var O=arguments;try{g.v0[q]?b():g.ee(b,0)}catch(e){g.ux(e)}},w); ta[k]=!0;zZ[q]||(zZ[q]=[]);zZ[q].push(k);return k}return 0}; Kjm=function(q){var a=g.i$("LOGGED_IN",function(w){q.apply(void 0,arguments);g.W0(a)})}; g.W0=function(q){var a=g.u$();a&&(typeof q==="number"?q=[q]:typeof q==="string"&&(q=[parseInt(q,10)]),g.WR(q,function(w){a.unsubscribeByKey(w);delete ta[w]}))}; g.D2=function(q,a){var w=g.u$();return w?w.publish.apply(w,arguments):!1}; T0y=function(q){var a=g.u$();if(a)if(a.clear(q),q)dXN(q);else for(var w in zZ)dXN(w)}; g.u$=function(){return g.yV.ytPubsubPubsubInstance}; dXN=function(q){zZ[q]&&(q=zZ[q],g.WR(q,function(a){ta[a]&&delete ta[a]}),q.length=0)}; g.R5=function(q,a,w){$Xc(q,a,w===void 0?null:w)}; $Xc=function(q,a,w){w=w===void 0?null:w;var G=sIN(typeof q==="string"?q:q.toString()),k=document.getElementById(G),b=k&&r$G(k),O=k&&!b;b?a&&a():(a&&(b=g.i$(G,a),a=""+g.lV(a),FjV[a]=b),O||(k=CxN(q,G,function(){r$G(k)||(BVy(k),g.D2(G),g.ee(function(){T0y(G)},0))},w)))}; CxN=function(q,a,w,G){G=G===void 0?null:G;var k=g.dp("SCRIPT");k.id=a;k.onload=function(){w&&setTimeout(w,0)}; k.onreadystatechange=function(){switch(k.readyState){case "loaded":case "complete":k.onload()}}; G&&k.setAttribute("nonce",G);g.Zv(k,typeof q==="string"?g.C_(q):q);q=document.getElementsByTagName("head")[0]||document.body;q.insertBefore(k,q.firstChild);return k}; sIN=function(q){var a=document.createElement("a");g.NO(a,q);q=a.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+MO(q)}; wW=function(q,a){if(q===a)q=!0;else if(Array.isArray(q)&&Array.isArray(a))q=g.zJ(q,a,wW);else if(g.bV(q)&&g.bV(a))a:if(g.bb(q).length!=g.bb(a).length)q=!1;else{for(var w in q)if(!wW(q[w],a[w])){q=!1;break a}q=!0}else q=!1;return q}; bz=function(q){var a=g.XU.apply(1,arguments);if(!G6(q)||a.some(function(G){return!G6(G)}))throw Error("Only objects may be merged."); a=g.V(a);for(var w=a.next();!w.done;w=a.next())k5(q,w.value)}; k5=function(q,a){for(var w in a)if(G6(a[w])){if(w in q&&!G6(q[w]))throw Error("Cannot merge an object into a non-object.");w in q||(q[w]={});k5(q[w],a[w])}else if(O9(a[w])){if(w in q&&!O9(q[w]))throw Error("Cannot merge an array into a non-array.");w in q||(q[w]=[]);Z__(q[w],a[w])}else q[w]=a[w];return q}; Z__=function(q,a){a=g.V(a);for(var w=a.next();!w.done;w=a.next())w=w.value,G6(w)?q.push(k5({},w)):O9(w)?q.push(Z__([],w)):q.push(w);return q}; G6=function(q){return typeof q==="object"&&!Array.isArray(q)}; O9=function(q){return typeof q==="object"&&Array.isArray(q)}; lz=function(q){g.c.call(this);this.U=q}; eb=function(q){lz.call(this,!0);this.V=q}; N9=function(q,a){g.c.call(this);var w=this;this.W=[];this.X=!1;this.U=0;this.D=this.L=this.Y=!1;this.F9=null;var G=(0,g.Ne)(q,a);this.V=new g.o1(function(){return G(w.F9)},300); g.p(this,this.V);this.J=this.S=Infinity}; Egf=function(q,a){if(!a)return!1;for(var w=0;w-1)throw Error("Deps cycle for: "+a);if(q.U.has(a))return q.U.get(a);if(!q.V.has(a)){if(G)return;throw Error("No provider for: "+a);}G=q.V.get(a);w.push(a);if(G.FZ!==void 0)var k=G.FZ;else if(G.y4T)k=G[V9]?QIl(q,G[V9],w):[],k=G.y4T.apply(G,g.Tf(k));else if(G.ao){k=G.ao;var b=k[V9]?QIl(q,k[V9],w):[];k=new (Function.prototype.bind.apply(k,[null].concat(g.Tf(b))))}else throw Error("Could not resolve providers for: "+a);w.pop();G.Tm8||q.U.set(a,k); return k}; QIl=function(q,a,w){return a?a.map(function(G){return G instanceof C5?JN(q,G.key,w,!0):JN(q,G,w)}):[]}; Q9=function(){m2||(m2=new mXf);return m2}; x5=function(){var q,a;return"h5vcc"in AN&&((q=AN.h5vcc.traceEvent)==null?0:q.traceBegin)&&((a=AN.h5vcc.traceEvent)==null?0:a.traceEnd)?1:"performance"in AN&&AN.performance.mark&&AN.performance.measure?2:0}; L5=function(q){var a=x5();switch(a){case 1:AN.h5vcc.traceEvent.traceBegin("YTLR",q);break;case 2:AN.performance.mark(q+"-start");break;case 0:break;default:Y1(a,"unknown trace type")}}; AKc=function(q){var a=x5();switch(a){case 1:AN.h5vcc.traceEvent.traceEnd("YTLR",q);break;case 2:a=q+"-start";var w=q+"-end";AN.performance.mark(w);AN.performance.measure(q,a,w);break;case 0:break;default:Y1(a,"unknown trace type")}}; xX_=function(q){var a,w;(w=(a=window).onerror)==null||w.call(a,q.message,"",0,0,q)}; Ljy=function(q){var a=this;var w=w===void 0?0:w;var G=G===void 0?g.v5():G;this.W=w;this.scheduler=G;this.U=new g.Y8;this.V=q;for(q={Mg:0};q.Mg=1E3?k():G>=q?y9||(y9=qw(function(){k();y9=void 0},0)):b-e>=10&&(tuc(a,w.tier),O.Y=b)}; Xn_=function(q,a){if(q.endpoint==="log_event"){g.dF("more_accurate_gel_parser")&&IG().storePayload({isJspb:!1},q.payload);tN(q);var w=vp(q),G=new Map;G.set(w,[q.payload]);var k=cKN(q.payload)||"";a&&(DV=new a);return new g.LT(function(b,O){DV&&DV.isReady()?vgj(G,DV,b,O,{bypassNetworkless:!0},!0,iz(k)):b()})}}; Iej=function(q,a,w){if(a.endpoint==="log_event"){tN(void 0,a);var G=vp(a,!0),k=new Map;k.set(G,[oL(a.payload)]);w&&(DV=new w);return new g.LT(function(b){DV&&DV.isReady()?zHm(k,DV,b,{bypassNetworkless:!0},!0,iz(q)):b()})}}; vp=function(q,a){var w="";if(q.dangerousLogToVisitorSession)w="visitorOnlyApprovedKey";else if(q.cttAuthInfo){if(a===void 0?0:a){a=q.cttAuthInfo.token;w=q.cttAuthInfo;var G=new Hn;w.videoId?G.setVideoId(w.videoId):w.playlistId&&TU(G,2,gI,An(w.playlistId));a9[a]=G}else a=q.cttAuthInfo,w={},a.videoId?w.videoId=a.videoId:a.playlistId&&(w.playlistId=a.playlistId),wI[q.cttAuthInfo.token]=w;w=q.cttAuthInfo.token}return w}; Wp=function(q,a,w){q=q===void 0?{}:q;a=a===void 0?!1:a;new g.LT(function(G,k){var b=RG(a,w),O=b.W;b.W=!1;GX(b.U);GX(b.V);b.V=0;DV&&DV.isReady()?w===void 0&&g.dF("enable_web_tiered_gel")?i_f(G,k,q,a,300,O):i_f(G,k,q,a,w,O):(tuc(a,w),G())})}; i_f=function(q,a,w,G,k,b){var O=DV;w=w===void 0?{}:w;G=G===void 0?!1:G;k=k===void 0?200:k;b=b===void 0?!1:b;var e=new Map,N=new Map,Y={isJspb:G,cttAuthInfo:void 0,tier:k},P={isJspb:G,cttAuthInfo:void 0};if(G){a=g.V(Object.keys(z6));for(k=a.next();!k.done;k=a.next())k=k.value,N=g.dF("enable_web_tiered_gel")?IG().smartExtractMatchingEntries({keys:[Y,P],sizeLimit:1E3}):IG().extractMatchingEntries({isJspb:!0,cttAuthInfo:k}),N.length>0&&e.set(k,N),(g.dF("web_fp_via_jspb_and_json")&&w.writeThenSend||!g.dF("web_fp_via_jspb_and_json"))&& delete z6[k];zHm(e,O,q,w,!1,b)}else{e=g.V(Object.keys(z6));for(Y=e.next();!Y.done;Y=e.next())Y=Y.value,P=g.dF("enable_web_tiered_gel")?IG().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:Y,tier:k},{isJspb:!1,cttAuthInfo:Y}],sizeLimit:1E3}):IG().extractMatchingEntries({isJspb:!1,cttAuthInfo:Y}),P.length>0&&N.set(Y,P),(g.dF("web_fp_via_jspb_and_json")&&w.writeThenSend||!g.dF("web_fp_via_jspb_and_json"))&&delete z6[Y];vgj(N,O,q,a,w,!1,b)}}; tuc=function(q,a){function w(){Wp({writeThenSend:!0},q,a)} q=q===void 0?!1:q;a=a===void 0?200:a;var G=RG(q,a),k=G===WjJ||G===DXl?5E3:RHm;g.dF("web_gel_timeout_cap")&&!G.V&&(k=qw(function(){w()},k),G.V=k); GX(G.U);k=g.UL("LOGGING_BATCH_TIMEOUT",g.Tn("web_gel_debounce_ms",1E4));g.dF("shorten_initial_gel_batch_timeout")&&kf&&(k=yK_);k=qw(function(){g.Tn("gel_min_batch_size")>0?IG().getSequenceCount({cttAuthInfo:void 0,isJspb:q,tier:a})>=qFm&&w():w()},k); G.U=k}; vgj=function(q,a,w,G,k,b,O){k=k===void 0?{}:k;var e=Math.round((0,g.Zj)()),N=q.size,Y=gnJ(O);q=g.V(q);var P=q.next();for(O={};!P.done;O={PG:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,NV:void 0,rU:void 0},P=q.next()){var K=g.V(P.value);P=K.next().value;K=K.next().value;O.batchRequest=g.s7({context:g.b$(a.config_||g.GZ())});if(!g.kc(K)&&!g.dF("throw_err_when_logevent_malformed_killswitch")){G();break}O.batchRequest.events=K;(K=wI[P])&&aSN(O.batchRequest,P,K);delete wI[P];O.dangerousLogToVisitorSession= P==="visitorOnlyApprovedKey";wrl(O.batchRequest,e,O.dangerousLogToVisitorSession);Gnj(k);O.NV=function(d){g.dF("start_client_gcf")&&g.fJ.gh(function(){return g.h(function(T){return g.n(T,knc(d),0)})}); N--;N||w()}; O.PG=0;O.rU=function(d){return function(){d.PG++;if(k.bypassNetworkless&&d.PG===1)try{g.I5(a,Y,d.batchRequest,bd({writeThenSend:!0},d.dangerousLogToVisitorSession,d.NV,d.rU,b)),kf=!1}catch(T){g.ux(T),G()}N--;N||w()}}(O); try{g.I5(a,Y,O.batchRequest,bd(k,O.dangerousLogToVisitorSession,O.NV,O.rU,b)),kf=!1}catch(d){g.ux(d),G()}}}; zHm=function(q,a,w,G,k,b){G=G===void 0?{}:G;var O=Math.round((0,g.Zj)()),e={value:q.size},N=new Map([].concat(g.Tf(q)));N=g.V(N);for(var Y=N.next();!Y.done;Y=N.next()){var P=g.V(Y.value).next().value,K=q.get(P);Y=new HTJ;var d=a.config_||g.GZ(),T=new r0,F=new JK;H$(F,1,d.Bu);H$(F,2,d.Z6);pl(F,16,d.T$);H$(F,17,d.innertubeContextClientVersion);if(d.Mn){var J=d.Mn,Q=new EL;J.coldConfigData&&H$(Q,1,J.coldConfigData);J.appInstallData&&H$(Q,6,J.appInstallData);J.coldHashData&&H$(Q,3,J.coldHashData);J.hotHashData&& Q.ju(J.hotHashData);AY(F,EL,62,Q)}(J=g.yV.devicePixelRatio)&&J!=1&&aj(F,65,N0(J));J=$n();J!==""&&H$(F,54,J);J=sF();if(J.length>0){Q=new AK;for(var B=0;B65535&&(q=1);p_("BATCH_CLIENT_COUNTER",q);return q}; aSN=function(q,a,w){if(w.videoId)var G="VIDEO";else if(w.playlistId)G="PLAYLIST";else return;q.credentialTransferTokenTargetId=w;q.context=q.context||{};q.context.user=q.context.user||{};q.context.user.credentialTransferTokens=[{token:a,scope:G}]}; tN=function(q,a){var w=g.aB("yt.logging.transport.enableScrapingForTest"),G=Ky("il_payload_scraping");G=(G!==void 0?String(G):"")==="enable_il_payload_scraping";if(!w)if(G)eR=[],g.qe("yt.logging.transport.enableScrapingForTest",!0),g.qe("yt.logging.transport.scrapedPayloadsForTesting",eR),g.qe("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.qe("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.qe("yt.logging.transport.scrapeClientEvent",!0);else return;w=g.aB("yt.logging.transport.scrapedPayloadsForTesting");G=g.aB("yt.logging.transport.payloadToScrape");a&&(a=a.payload,(a=g.aB("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(a)())&&w.push(a));a=g.aB("yt.logging.transport.scrapeClientEvent");if(G&&G.length>=1)for(var k=0;k0&&AGU(q,a,b)}else AGU(q,a)}; AGU=function(q,a,w){q=xLK(q);a=a?g.$$(a):"";w=w||5;Wr()&&g.Br(q,a,w)}; xLK=function(q){for(var a=g.V(Lk_),w=a.next();!w.done;w=a.next())q=Jo(q,w.value);return"ST-"+MO(q).toString(36)}; BFK=function(q){if(q.name==="JavaException")return!0;q=q.stack;return q.includes("chrome://")||q.includes("-extension://")||q.includes("webkit-masked-url://")}; rGl=function(q){if(!q.stack)return!0;var a=!q.stack.includes("\n");return a&&q.stack.includes("ErrorType: ")||a&&q.stack.includes("Anonymous function (Unknown script")||q.stack.toLowerCase()==="not available"||q.fileName==="user-script"||q.fileName.startsWith("user-script:")?!0:!1}; nnc=function(){this.o4=[];this.zf=[]}; Z1=function(){if(!CF){var q=CF=new nnc;q.zf.length=0;q.o4.length=0;Mey(q,huj)}return CF}; Mey=function(q,a){a.zf&&q.zf.push.apply(q.zf,a.zf);a.o4&&q.o4.push.apply(q.o4,a.o4)}; SFc=function(q){function a(){return q.charCodeAt(G++)} var w=q.length,G=0;do{var k=E_(a);if(k===Infinity)break;var b=k>>3;switch(k&7){case 0:k=E_(a);if(b===2)return k;break;case 1:if(b===2)return;G+=8;break;case 2:k=E_(a);if(b===2)return q.substr(G,k);G+=k;break;case 5:if(b===2)return;G+=4;break;default:return}}while(G500));G++);G=k}else if(typeof q==="object")for(k in q){if(q[k]){var b=k;var O=q[k],e=a,N=w;b=typeof O!=="string"||b!=="clickTrackingParams"&&b!=="trackingParams"?0:(O=SFc(atob(O.replace(/-/g,"+").replace(/_/g,"/"))))?Va(b+".ve",O,e,N):0;G+=b;G+=Va(k,q[k],a,w);if(G>500)break}}else w[a]=JW(q),G+=w[a].length;else w[a]=JW(q),G+=w[a].length;return G}; Va=function(q,a,w,G){w+="."+q;q=JW(a);G[w]=q;return w.length+q.length}; JW=function(q){try{return(typeof q==="string"?q:String(JSON.stringify(q))).substr(0,500)}catch(a){return"unable to serialize "+typeof q+" ("+a.message+")"}}; gw=function(q){g.mQ(q)}; g.Qa=function(q){g.mQ(q,"WARNING")}; g.mQ=function(q,a){var w=w===void 0?{}:w;w.name=g.UL("INNERTUBE_CONTEXT_CLIENT_NAME",1);w.version=g.UL("INNERTUBE_CONTEXT_CLIENT_VERSION");a=a===void 0?"ERROR":a;var G=!1;a=a===void 0?"ERROR":a;G=G===void 0?!1:G;if(q){q.hasOwnProperty("level")&&q.level&&(a=q.level);if(g.dF("console_log_js_exceptions")){var k=[];k.push("Name: "+q.name);k.push("Message: "+q.message);q.hasOwnProperty("params")&&k.push("Error Params: "+JSON.stringify(q.params));q.hasOwnProperty("args")&&k.push("Error args: "+JSON.stringify(q.args)); k.push("File name: "+q.fileName);k.push("Stacktrace: "+q.stack);window.console.log(k.join("\n"),q)}if(!(Hyy>=5)){k=[];for(var b=g.V(cGN),O=b.next();!O.done;O=b.next()){O=O.value;try{O()&&k.push(O())}catch(J){}}k=[].concat(g.Tf(pry),g.Tf(k));var e=kJm(q);b=e.message||"Unknown Error";O=e.name||"UnknownError";var N=e.stack||q.U||"Not available";if(N.startsWith(O+": "+b)){var Y=N.split("\n");Y.shift();N=Y.join("\n")}Y=e.lineNumber||"Not available";e=e.fileName||"Not available";var P=0;if(q.hasOwnProperty("args")&& q.args&&q.args.length)for(var K=0;K=500);K++);else if(q.hasOwnProperty("params")&&q.params){var d=q.params;if(typeof q.params==="object")for(K in d){if(d[K]){var T="params."+K,F=JW(d[K]);w[T]=F;P+=T.length+F.length;if(P>500)break}}else w.params=JW(d)}if(k.length)for(K=0;K=500);K++);navigator.vendor&&!w.hasOwnProperty("vendor")&&(w["device.vendor"]=navigator.vendor);w={message:b,name:O,lineNumber:Y, fileName:e,stack:N,params:w,sampleWeight:1};K=Number(q.columnNumber);isNaN(K)||(w.lineNumber=w.lineNumber+":"+K);if(q.level==="IGNORED")q=0;else a:{q=Z1();K=g.V(q.zf);for(k=K.next();!k.done;k=K.next())if(k=k.value,w.message&&w.message.match(k.A7)){q=k.weight;break a}q=g.V(q.o4);for(K=q.next();!K.done;K=q.next())if(K=K.value,K.callback(w)){q=K.weight;break a}q=1}w.sampleWeight=q;q=g.V(ULl);for(K=q.next();!K.done;K=q.next())if(K=K.value,K.UD[w.name])for(b=g.V(K.UD[w.name]),k=b.next();!k.done;k=b.next())if(O= k.value,k=w.message.match(O.hK)){w.params["params.error.original"]=k[0];b=O.groups;O={};for(Y=0;Y1E3&&g.Qa(new g.UH("IL Attach cache exceeded limit"))}e= pF(w,a);hW.has(e)?U_(w,a):fF.set(e,!0)}}G=G.filter(function(P){P.csn!==a?(P.csn=a,P=!0):P=!1;return P}); w={csn:a,parentVe:w.getAsJson(),childVes:g.sd(G,function(P){return P.getAsJson()})}; a==="UNDEFINED_CSN"?XX("visualElementAttached",b,w):q?Yf("visualElementAttached",w,q,b):g.aw("visualElementAttached",w,b)}; gtV=function(q,a,w,G,k){jR(w,a);G=Mw({cttAuthInfo:s_(a)||void 0},a);w={csn:a,ve:w.getAsJson(),eventType:1};k&&(w.clientData=k);a==="UNDEFINED_CSN"?XX("visualElementShown",G,w):q?Yf("visualElementShown",w,q,G):g.aw("visualElementShown",w,G)}; anm=function(q,a,w,G){var k=(G=G===void 0?!1:G)?16:8;G=Mw({cttAuthInfo:s_(a)||void 0,endOfSequence:G},a);w={csn:a,ve:w.getAsJson(),eventType:k};a==="UNDEFINED_CSN"?XX("visualElementHidden",G,w):q?Yf("visualElementHidden",w,q,G):g.aw("visualElementHidden",w,G)}; o9=function(q,a,w,G,k){w5l(q,a,w,void 0,G,k)}; w5l=function(q,a,w,G,k){jR(w,a);G=G||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var b=Mw({cttAuthInfo:s_(a)||void 0},a);w={csn:a,ve:w.getAsJson(),gestureType:G};k&&(w.clientData=k);a==="UNDEFINED_CSN"?XX("visualElementGestured",b,w):q?Yf("visualElementGestured",w,q,b):g.aw("visualElementGestured",w,b)}; GVm=function(){var q=Pp(16);for(var a=[],w=0;w0&&w.push(g.dp("BR"));w.push(g.TY(b))}):w.push(g.TY(G))}return w}; wC=function(q,a,w,G){if(w==="child"){g.sN(a);var k;G===void 0?k=void 0:k=!Array.isArray(G)||G&&typeof G.G==="string"?[G]:G;w=b2m(q,k);w=g.V(w);for(q=w.next();!q.done;q=w.next())a.appendChild(q.value)}else w==="style"?g.IR(a,"cssText",G?G:""):G===null||G===void 0?a.removeAttribute(w):(q=G.toString(),w==="href"&&(q=g.GR(g.OX(q))),a.setAttribute(w,q))}; g.u=function(q){g.gC.call(this,q);this.Fw=!0;this.D=!1;this.listeners=[]}; g.Gs=function(q){g.u.call(this,q);this.A2=new g.ya;g.p(this,this.A2)}; kp=function(q,a,w,G,k,b,O){O=O===void 0?null:O;g.Gs.call(this,a);this.api=q;this.macros={};this.componentType=w;this.X=this.S=null;this.VN=O;this.layoutId=G;this.interactionLoggingClientData=k;this.PT=b;this.St=null;this.Xy=new eb(this.element);g.p(this,this.Xy);this.IW=this.C(this.element,"click",this.onClick);this.jt=[];this.y7=new N9(this.onClick,this);g.p(this,this.y7);this.OA=!1;this.EK=this.F9=null}; bv=function(q,a){q=q===void 0?null:q;a=a===void 0?null:a;if(q==null)return g.Qa(Error("Got null or undefined adText object")),"";var w=g.nS(q.text);if(!q.isTemplated)return w;if(a==null)return g.Qa(Error("Missing required parameters for a templated message")),w;q=g.V(Object.entries(a));for(a=q.next();!a.done;a=q.next()){var G=g.V(a.value);a=G.next().value;G=G.next().value;w=w.replace("{"+a+"}",G)}return w}; O2K=function(q){q=q===void 0?null:q;return q!=null&&(q=q.thumbnail,q!=null&&q.thumbnails!=null&&q.thumbnails.length!=0&&q.thumbnails[0].url!=null)?g.nS(q.thumbnails[0].url):""}; lnK=function(q){q=q===void 0?null:q;return q!=null&&(q=q.thumbnail,q!=null&&q.thumbnails!=null&&q.thumbnails.length!=0&&q.thumbnails[0].width!=null&&q.thumbnails[0].height!=null)?new g.t7(q.thumbnails[0].width||0,q.thumbnails[0].height||0):new g.t7(0,0)}; g.OE=function(q){if(q.simpleText)return q.simpleText;if(q.runs){var a=[];q=g.V(q.runs);for(var w=q.next();!w.done;w=q.next())w=w.value,w.text&&a.push(w.text);return a.join("")}return""}; g.lv=function(q){if(q.simpleText)return q=document.createTextNode(q.simpleText),q;var a=[];if(q.runs)for(var w=0;w1){for(var a=[q[0]],w=1;w0&&(this.V=new g.o1(this.zE,a,this),g.p(this,this.V));this.D=new g.o1(this.zE,w,this);g.p(this,this.D);this.S=A1c(this.U,k,1,G);g.p(this,this.S);this.X=A1c(this.U,0,G,1);g.p(this,this.X);this.Y=new EH;g.p(this,this.Y)}; qk=function(q,a,w){this.U=q;this.isAsync=a;this.V=w}; qPm=function(q){switch(q){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:Y1(q,"unknown result type")}}; g7G=function(q,a){var w=1;q.isTrusted===!1&&(w=0);p_("ISDSTAT",w);gQ(w,"i.s_",{triggerContext:"sk",metadata:a});return w}; ajN=function(q,a){var w=[];a?a.isTrusted===!0?w.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):a.isTrusted===!1?w.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):w.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):w.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");gQ(0,"a.s_",{metadata:q,states:w});p_("ASDSTAT",0)}; gQ=function(q,a,w){a=why[a];var G,k,b={detected:q===0,source:""+a.U+((G=w.triggerContext)!=null?G:"")+((k=w.us)!=null?k:""),detectionStates:w.states,durationMs:w.O1};w.metadata&&(b.contentCpn=w.metadata.contentCpn,b.adCpn=w.metadata.adCpn);g.aw("biscottiBasedDetection",b);a.V!==void 0&&(w=Number(g.UL("CATSTAT",0)),a.V!==void 0?(a=a.V,q=qPm(q),q=w&~(3<0}; lc=function(q,a,w,G,k,b){uv.call(this,q,{G:"div",N:"ytp-ad-skip-button-slot"},"skip-button",a,w,G,k);var O=this;this.UK=null;this.f7=!1;this.le=b;this.L=this.api.B().experiments.Zh("enable_modern_skip_button_on_web");this.h2=!1;this.Y=new g.Gs({G:"span",vT:["ytp-ad-skip-button-container"]});this.L&&this.Y.element.classList.add("ytp-ad-skip-button-container-detached");g.p(this,this.Y);this.Y.HT(this.element);this.U=this.W=null;this.BT=new g.zs(this.Y,500,!1,100,function(){return O.hide()}); g.p(this,this.BT);this.L7=new y0(this.Y.element,15E3,5E3,.5,.5,this.L);g.p(this,this.L7);this.hide()}; kAc=function(q){q=q.UK&&q.UK.adRendererCommands;return(q&&q.clickCommand&&g.I(q.clickCommand,g.eg)&&g.I(q.clickCommand,g.eg).commands||[]).some(function(a){return a.adLifecycleCommand?GAl(a.adLifecycleCommand):!1})}; GAl=function(q){return q.action==="END_LINEAR_AD"||q.action==="END_LINEAR_AD_PLACEMENT"}; Nk=function(q,a,w,G,k,b){uv.call(this,q,{G:"div",N:"ytp-ad-skip-ad-slot"},"skip-ad",a,w,G,k);this.UK=b;this.Y=!1;this.L=0;this.W=this.U=null;this.hide()}; bIy=function(q,a){q.Y||(q.Y=!0,q.U&&(a?q.U.UK.hide():q.U.hide()),a?(q=q.W,q.BT.show(),q.show()):q.W.show())}; Ym=function(q,a,w,G){Q0.call(this,q,a,w,G,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; PA=function(q,a,w,G,k,b,O){b=b===void 0?!1:b;O=O===void 0?!1:O;kp.call(this,q,{G:"span",N:"ytp-ad-simple-ad-badge"},"simple-ad-badge",a,w,G);this.W=k;this.V=this.oW("ytp-ad-simple-ad-badge");(this.U=b)&&this.V.classList.add("ytp-ad-simple-ad-badge--clean-player");O&&this.V.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}; Kj=function(q,a,w,G,k){k=k===void 0?!1:k;R9.call(this,"player-overlay",q,{},a,G);this.videoAdDurationSeconds=w;this.interactionLoggingClientData=G;this.YH=k}; dQ=function(q,a){g.ya.call(this);this.api=q;this.durationMs=a;this.V=null;this.Ia=new EH(this);g.p(this,this.Ia);this.U=OIV;this.Ia.C(this.api,"presentingplayerstatechange",this.w7);this.V=this.Ia.C(this.api,"onAdPlaybackProgress",this.EQ)}; Tj=function(q){g.ya.call(this);this.V=!1;this.Uj=0;this.Ia=new EH(this);g.p(this,this.Ia);this.durationMs=q;this.timer=new g.fT(100);g.p(this,this.timer);this.Ia.C(this.timer,"tick",this.EQ);this.U={seekableStart:0,seekableEnd:q/1E3,current:0};this.start()}; g.$m=function(q,a){var w=Math.abs(Math.floor(q)),G=Math.floor(w/86400),k=Math.floor(w%86400/3600),b=Math.floor(w%3600/60);w=Math.floor(w%60);if(a){a="";G>0&&(a+=" "+G+" D\u00edas");if(G>0||k>0)a+=" "+k+" Horas";a+=" "+b+" Minutos";a+=" "+w+" Segundos";G=a.trim()}else{a="";G>0&&(a+=G+":",k<10&&(a+="0"));if(G>0||k>0)a+=k+":",b<10&&(a+="0");a+=b+":";w<10&&(a+="0");G=a+w}return q>=0?G:"-"+G}; g.sx=function(q){return(!("button"in q)||typeof q.button!=="number"||q.button===0)&&!("shiftKey"in q&&q.shiftKey)&&!("altKey"in q&&q.altKey)&&!("metaKey"in q&&q.metaKey)&&!("ctrlKey"in q&&q.ctrlKey)}; F9=function(q,a,w,G,k,b,O){uv.call(this,q,{G:"span",N:O?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",a,w,G,k);this.videoAdDurationSeconds=b;this.U=null;O&&this.api.B().U&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),X4&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios"));this.hide()}; Cj=function(q,a,w,G){ox.call(this,q,a,w,G,"ytp-video-ad-top-bar-title","ad-title")}; ZR=function(q){this.content=q.content;if(q.commandRuns){q=g.V(q.commandRuns);for(var a=q.next();!a.done;a=q.next())a=a.value,this.loggingDirectives=g.I(a,ljU),a.onTap&&(this.interaction={onTap:a.onTap})}}; Ex=function(q,a,w,G){kp.call(this,q,{G:"div",N:"ad-simple-attributed-string"},"ad-simple-attributed-string",a,w,G);this.hide()}; Vc=function(q,a,w,G,k){kp.call(this,q,{G:"span",N:k?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",a,w,G);this.U=k;this.adBadgeText=new Ex(this.api,this.layoutId,this.interactionLoggingClientData,this.PT);this.adBadgeText.HT(this.element);g.p(this,this.adBadgeText);k?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),X4&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios")):this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; JI=function(q,a,w,G){kp.call(this,q,{G:"span",N:"ytp-ad-pod-index"},"ad-pod-index",a,w,G);this.api.B().U&&(this.element.classList.add("ytp-ad-pod-index--mweb"),X4&&this.element.classList.add("ytp-ad-pod-index--mweb-ios"));this.hide()}; mz=function(q,a,w,G){kp.call(this,q,{G:"div",N:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",a,w,G);this.hide()}; Qc=function(q,a){this.U=q;this.V=a}; e9K=function(q,a){return q.U+a*(q.V-q.U)}; AI=function(q,a,w){return q.V-q.U?g.X1((a-q.U)/(q.V-q.U),0,1):w!=null?w:Infinity}; xm=function(q,a,w,G){G=G===void 0?!1:G;g.Gs.call(this,{G:"div",N:"ytp-ad-persistent-progress-bar-container",K:[{G:"div",N:"ytp-ad-persistent-progress-bar"}]});this.api=q;this.U=a;this.W=w;G&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.p(this,this.U);this.progressBar=this.oW("ytp-ad-persistent-progress-bar");this.V=-1;this.C(q,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; Lj=function(q,a,w,G,k,b){kp.call(this,q,{G:"div",N:"ytp-ad-player-overlay",K:[{G:"div",N:"ytp-ad-player-overlay-flyout-cta"},{G:"div",N:"ytp-ad-player-overlay-instream-info"},{G:"div",N:"ytp-ad-player-overlay-skip-or-preview"},{G:"div",N:"ytp-ad-player-overlay-progress-bar"},{G:"div",N:"ytp-ad-player-overlay-instream-user-sentiment"},{G:"div",N:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",a,w,G);this.J=b;this.L=this.oW("ytp-ad-player-overlay-flyout-cta");this.L.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.V=this.oW("ytp-ad-player-overlay-instream-info");this.Y=null;NwV(this)&&(q=Kn("div"),g.gU(q,"ytp-ad-player-overlay-top-bar-gradients"),a=this.V,a.parentNode&&a.parentNode.insertBefore(q,a),(a=this.api.getVideoData(2))&&a.isListed&&a.title&&(w=new Cj(this.api,this.layoutId,this.interactionLoggingClientData,this.PT),w.HT(q),w.init(D1("ad-title"),{text:a.title},this.macros),g.p(this,w)),this.Y=q);this.W=null;this.Tl=this.oW("ytp-ad-player-overlay-skip-or-preview");this.L7=this.oW("ytp-ad-player-overlay-progress-bar"); this.f7=this.oW("ytp-ad-player-overlay-instream-user-sentiment");this.UK=this.oW("ytp-ad-player-overlay-ad-disclosure-banner");this.U=k;g.p(this,this.U);this.hide()}; NwV=function(q){q=q.api.B();return g.BA(q)&&q.U}; g.rQ=function(q){q&=16777215;var a=[(q&16711680)>>16,(q&65280)>>8,q&255];q=a[0];var w=a[1];a=a[2];q=Number(q);w=Number(w);a=Number(a);if(q!=(q&255)||w!=(w&255)||a!=(a&255))throw Error('"('+q+","+w+","+a+'") is not a valid RGB color');w=q<<16|w<<8|a;return q<16?"#"+(16777216|w).toString(16).slice(1):"#"+w.toString(16)}; g.nj=function(){}; PYy=function(q){var a=new ez;var w=new lL;w=H$(w,1,"botguard");q=H$(w,2,q);this.V=hpl(a,lL,1,YPN,q)}; Mk=function(q){this.V=new ma(q)}; KJG=function(){var q=!1;try{q=!!window.sessionStorage.getItem("session_logininfo")}catch(a){q=!0}return(g.UL("INNERTUBE_CLIENT_NAME")==="WEB"||g.UL("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&q}; hI=function(){var q=q===void 0?!0:q;try{window.sessionStorage.removeItem("stickiness_reload");window.sessionStorage.removeItem("session_logininfo");p_("LOGIN_INFO","");q&&window.sessionStorage.setItem("from_switch_account","1");q=!0;q=q===void 0?!1:q;var a,w=dFV;w||(w=document.querySelector("#persist_identity"));if(a=w){var G=a.src?(new URL(a.src)).origin:"*";if(q){var k;(k=a.contentWindow)==null||k.postMessage({action:"clear"},G)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>= 2)){var b=window.sessionStorage.getItem("session_logininfo");if(b){var O;(O=a.contentWindow)==null||O.postMessage({loginInfo:b},G)}}}}catch(e){}}; Sg=function(q){q&&(q.startsWith("https://accounts.google.com/AddSession")?hI():q.startsWith("https://accounts.google.com/ServiceLogin")?hI():q.startsWith("https://myaccount.google.com")&&g.Nb(q).U.endsWith("/youtubeoptions")&&hI());if(g.UL("LOGGED_IN",!0)&&KJG()){var a=g.UL("VALID_SESSION_TEMPDATA_DOMAINS",[]);var w=g.Nr(window.location.href);w&&a.push(w);w=g.Nr(q);g.Vx(a,w)||!w&&BL(q,"/")?(a=Pl(q),(a=Xal(a))?(a=xLK(a),a=(a=g.rF(a)||null)?Wn(a):{}):a=null):a=null;a==null&&(a={});w=a;var G=void 0; KJG()?(G||(G=g.UL("LOGIN_INFO")),G?(w.session_logininfo=G,w=!0):w=!1):w=!1;w&&FX(q,a)}}; g.Twm=function(q){var a=a===void 0?{}:a;var w=w===void 0?"":w;var G=G===void 0?window:G;q=g.sk(q,a);Sg(q);w=g.OX(q+w);G=G.location;w=l1(w);w!==void 0&&(G.href=w)}; g.fj=function(q,a,w){a=a===void 0?{}:a;w=w===void 0?!1:w;var G=g.UL("EVENT_ID");G&&(a.ei||(a.ei=G));a&&FX(q,a);w||(Sg(q),g.Twm(q))}; g.HA=function(q,a,w,G,k){k=k===void 0?!1:k;w&&FX(q,w);w=g.OX(q);var b=g.GR(w);q!=b&&vn(Error("Unsafe window.open URL: "+q));q=b;a=a||MO(q).toString(36);try{if(k)return k=q,k=keG(k),Sg(k),g.TR(window,k,a,"attributionsrc")}catch(O){g.ux(O)}Sg(q);return g.TR(window,w,a,G)}; $Fl=function(q){cA=q}; swm=function(q){pj=q}; FJj=function(q){Ux=q}; ZIJ=function(){CYm=Ux=pj=cA=null}; VIV=function(){var q=q===void 0?window.location.href:q;if(g.dF("kevlar_disable_theme_param"))return null;var a=Y$(q);if(g.dF("enable_dark_theme_only_on_shorts")&&a!=null&&a.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var w=g.RI(q).theme;return E7_.get(w)||null}catch(G){}return null}; X9=function(){this.V={};if(this.U=Plf()){var q=g.rF("CONSISTENCY");q&&J2j(this,{encryptedTokenJarContents:q})}}; J2j=function(q,a){if(a.encryptedTokenJarContents&&(q.V[a.encryptedTokenJarContents]=a,typeof a.expirationSeconds==="string")){var w=Number(a.expirationSeconds);setTimeout(function(){delete q.V[a.encryptedTokenJarContents]},w*1E3); q.U&&g.Br("CONSISTENCY",a.encryptedTokenJarContents,w,void 0,!0)}}; oA=function(){this.U=-1;var q=g.UL("LOCATION_PLAYABILITY_TOKEN");g.UL("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=jg(this))&&(q=this.localStorage.get("yt-location-playability-token"));q&&(this.locationPlayabilityToken=q,this.V=void 0)}; jg=function(q){return q.localStorage===void 0?new W5("yt-client-location"):q.localStorage}; g.IA=function(q,a,w){a=a===void 0?!1:a;w=w===void 0?!1:w;var G=g.UL("INNERTUBE_CONTEXT");if(!G)return g.mQ(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};G=g.s7(G);g.dF("web_no_tracking_params_in_shell_killswitch")||delete G.clickTracking;G.client||(G.client={});var k=G.client;k.clientName==="MWEB"&&k.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(k.clientFormFactor=g.UL("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");k.screenWidthPoints=window.innerWidth;k.screenHeightPoints= window.innerHeight;k.screenPixelDensity=Math.round(window.devicePixelRatio||1);k.screenDensityFloat=window.devicePixelRatio||1;k.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var b=b===void 0?!1:b;g.hE();var O="USER_INTERFACE_THEME_LIGHT";g.S2(0,165)?O="USER_INTERFACE_THEME_DARK":g.S2(0,174)?O="USER_INTERFACE_THEME_LIGHT":!g.dF("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& (O="USER_INTERFACE_THEME_DARK");b=b?O:VIV()||O;k.userInterfaceTheme=b;if(!a){if(b=RCy())k.connectionType=b;g.dF("web_log_effective_connection_type")&&(b=q5c())&&(G.client.effectiveConnectionType=b)}var e;if(g.dF("web_log_memory_total_kbytes")&&((e=g.yV.navigator)==null?0:e.deviceMemory)){var N;e=(N=g.yV.navigator)==null?void 0:N.deviceMemory;G.client.memoryTotalKbytes=""+e*1E6}g.dF("web_gcf_hashes_innertube")&&(b=OaK())&&(N=b.coldConfigData,e=b.coldHashData,b=b.hotHashData,G.client.configInfo=G.client.configInfo|| {},N&&(G.client.configInfo.coldConfigData=N),e&&(G.client.configInfo.coldHashData=e),b&&(G.client.configInfo.hotHashData=b));N=g.RI(g.yV.location.href);!g.dF("web_populate_internal_geo_killswitch")&&N.internalcountrycode&&(k.internalGeo=N.internalcountrycode);k.clientName==="MWEB"||k.clientName==="WEB"?(k.mainAppWebInfo||(k.mainAppWebInfo={}),k.mainAppWebInfo.graftUrl=g.yV.location.href,g.dF("kevlar_woffle")&&uSK.instance&&(N=uSK.instance,k.mainAppWebInfo.pwaInstallabilityStatus=!N.V&&N.U?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": "PWA_INSTALLABILITY_STATUS_UNKNOWN"),k.mainAppWebInfo.webDisplayMode=rg(),k.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):k.clientName==="TVHTML5"&&(!g.dF("web_lr_app_quality_killswitch")&&(N=g.UL("LIVING_ROOM_APP_QUALITY"))&&(k.tvAppInfo=Object.assign(k.tvAppInfo||{},{appQuality:N})),N=g.UL("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(k.tvAppInfo=Object.assign(k.tvAppInfo||{},{certificationScope:N}));if(!g.dF("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== "undefined")try{var Y=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(H){}Y=void 0}Y&&(k.timeZone=Y)}(Y=$n())?k.experimentsToken=Y:delete k.experimentsToken;Y=sF();X9.instance||(X9.instance=new X9);G.request=Object.assign({},G.request,{internalExperimentFlags:Y,consistencyTokenJars:kI(X9.instance.V)});!g.dF("web_prequest_context_killswitch")&&(Y=g.UL("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(G.request.externalPrequestContext=Y);k=g.hE();Y=g.S2(0,58);k=k.get("gsml","");G.user=Object.assign({}, G.user);Y&&(G.user.enableSafetyMode=Y);k&&(G.user.lockedSafetyMode=!0);g.dF("warm_op_csn_cleanup")?w&&(a=g.$f())&&(G.clientScreenNonce=a):!a&&(a=g.$f())&&(G.clientScreenNonce=a);q&&(G.clickTracking={clickTrackingParams:q});if(q=g.aB("yt.mdx.remote.remoteClient_"))G.remoteClient=q;oA.getInstance().setLocationOnInnerTubeContext(G);try{var P=bO(),K=P.bid;delete P.bid;G.adSignalsInfo={params:[],bid:K};for(var d=g.V(Object.entries(P)),T=d.next();!T.done;T=d.next()){var F=g.V(T.value),J=F.next().value, Q=F.next().value;P=J;K=Q;q=void 0;(q=G.adSignalsInfo.params)==null||q.push({key:P,value:""+K})}var B,L;if(((B=G.client)==null?void 0:B.clientName)==="TVHTML5"||((L=G.client)==null?void 0:L.clientName)==="TVHTML5_UNPLUGGED"){var M=g.UL("INNERTUBE_CONTEXT");M.adSignalsInfo&&(G.adSignalsInfo.advertisingId=M.adSignalsInfo.advertisingId,G.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",G.adSignalsInfo.limitAdTracking=M.adSignalsInfo.limitAdTracking)}}catch(H){g.mQ(H)}return G}; A2c=function(q,a){if(!q)return!1;var w,G=(w=g.I(q,mFc))==null?void 0:w.signal;if(G&&a.QY)return!!a.QY[G];var k;if((w=(k=g.I(q,Qwm))==null?void 0:k.request)&&a.Mw)return!!a.Mw[w];for(var b in q)if(a.e3[b])return!0;return!1}; xFG=function(q){var a={"Content-Type":"application/json"};g.UL("EOM_VISITOR_DATA")?a["X-Goog-EOM-Visitor-Id"]=g.UL("EOM_VISITOR_DATA"):g.UL("VISITOR_DATA")&&(a["X-Goog-Visitor-Id"]=g.UL("VISITOR_DATA"));a["X-Youtube-Bootstrap-Logged-In"]=g.UL("LOGGED_IN",!1);g.UL("DEBUG_SETTINGS_METADATA")&&(a["X-Debug-Settings-Metadata"]=g.UL("DEBUG_SETTINGS_METADATA"));q!=="cors"&&((q=g.UL("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(a["X-Youtube-Client-Name"]=q),(q=g.UL("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(a["X-Youtube-Client-Version"]= q),(q=g.UL("CHROME_CONNECTED_HEADER"))&&(a["X-Youtube-Chrome-Connected"]=q),(q=g.UL("DOMAIN_ADMIN_STATE"))&&(a["X-Youtube-Domain-Admin-State"]=q),g.UL("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(q=g.UL("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(a["X-YouTube-Lava-Device-Context"]=q));return a}; LJN=function(){this.V={}}; uc=function(){this.mappings=new LJN}; tI=function(q){return function(){return new q}}; r2G=function(q){var a=a===void 0?"UNKNOWN_INTERFACE":a;if(q.length===1)return q[0];var w=Bw_[a];if(w){w=new RegExp(w);for(var G=g.V(q),k=G.next();!k.done;k=G.next())if(k=k.value,w.exec(k))return k}var b=[];Object.entries(Bw_).forEach(function(O){var e=g.V(O);O=e.next().value;e=e.next().value;a!==O&&b.push(e)}); w=new RegExp(b.join("|"));q.sort(function(O,e){return O.length-e.length}); G=g.V(q);for(k=G.next();!k.done;k=G.next())if(k=k.value,!w.exec(k))return k;return q[0]}; g.vA=function(q){return"/youtubei/v1/"+r2G(q)}; zj=function(){}; ic=function(){}; WA=function(){}; DR=function(q){return g.aB("ytcsi."+(q||"")+"data_")||n7l(q)}; MIG=function(){var q=DR();q.info||(q.info={});return q.info}; RA=function(q){q=DR(q);q.metadata||(q.metadata={});return q.metadata}; yc=function(q){q=DR(q);q.tick||(q.tick={});return q.tick}; qZ=function(q){q=DR(q);if(q.gel){var a=q.gel;a.gelInfos||(a.gelInfos={});a.gelTicks||(a.gelTicks={})}else q.gel={gelTicks:{},gelInfos:{}};return q.gel}; h9l=function(q){q=qZ(q);q.gelInfos||(q.gelInfos={});return q.gelInfos}; gJ=function(q){var a=DR(q).nonce;a||(a=g.K5(16),DR(q).nonce=a);return a}; n7l=function(q){var a={tick:{},info:{}};g.qe("ytcsi."+(q||"")+"data_",a);return a}; aS=function(){var q=g.aB("ytcsi.debug");q||(q=[],g.qe("ytcsi.debug",q),g.qe("ytcsi.reference",{}));return q}; wJ=function(q){q=q||"";var a=SPN();if(a[q])return a[q];var w=aS(),G={timerName:q,info:{},tick:{},span:{},jspbInfo:[]};w.push(G);return a[q]=G}; fjU=function(q){q=q||"";var a=SPN();a[q]&&delete a[q];var w=aS(),G={timerName:q,info:{},tick:{},span:{},jspbInfo:[]};w.push(G);a[q]=G}; SPN=function(){var q=g.aB("ytcsi.reference");if(q)return q;aS();return g.aB("ytcsi.reference")}; Gz=function(q){return HIl[q]||"LATENCY_ACTION_UNKNOWN"}; k4=function(q,a){l$.call(this,1,arguments);this.timer=a}; bq=function(){this.V=0}; O3=function(){bq.instance||(bq.instance=new bq);return bq.instance}; e3=function(q,a){lq[a]=lq[a]||{count:0};var w=lq[a];w.count++;w.time=(0,g.Zj)();q.V||(q.V=g.uM(0,function(){var G=(0,g.Zj)(),k;for(k in lq)lq[k]&&G-lq[k].time>6E4&&delete lq[k];q&&(q.V=0)},5E3)); return w.count>5?(w.count===6&&Math.random()*1E5<1&&(w=new g.UH("CSI data exceeded logging limit with key",a.split("_")),a.indexOf("plev")>=0||g.Qa(w)),!0):!1}; c2y=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; phK=function(){var q;if(g.dF("csi_use_performance_navigation_timing")){var a,w,G,k=NZ==null?void 0:(q=NZ.getEntriesByType)==null?void 0:(a=q.call(NZ,"navigation"))==null?void 0:(w=a[0])==null?void 0:(G=w.toJSON)==null?void 0:G.call(w);k?(k.requestStart=Y4(k.requestStart),k.responseEnd=Y4(k.responseEnd),k.redirectStart=Y4(k.redirectStart),k.redirectEnd=Y4(k.redirectEnd),k.domainLookupEnd=Y4(k.domainLookupEnd),k.connectStart=Y4(k.connectStart),k.connectEnd=Y4(k.connectEnd),k.responseStart=Y4(k.responseStart), k.secureConnectionStart=Y4(k.secureConnectionStart),k.domainLookupStart=Y4(k.domainLookupStart),k.isPerformanceNavigationTiming=!0,q=k):q=NZ.timing}else q=g.dF("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(NZ.timing)):NZ.timing;return q}; Y4=function(q){return Math.round(Pt()+q)}; Pt=function(){return(g.dF("csi_use_time_origin")||g.dF("csi_use_time_origin_tvhtml5"))&&NZ.timeOrigin?Math.floor(NZ.timeOrigin):NZ.timing.navigationStart}; dJ=function(q,a){Ks("_start",q,a)}; Tz=function(q,a){if(!g.dF("web_csi_action_sampling_enabled")||!DR(a).actionDisabled){var w=wJ(a||"");bz(w.info,q);q.loadType&&(w=q.loadType,RA(a).loadType=w);bz(h9l(a),q);w=gJ(a);a=DR(a).cttAuthInfo;O3().info(q,w,a)}}; UFU=function(){var q,a,w,G;return((G=Q9().resolve(ZV(a5))==null?void 0:(q=we())==null?void 0:(a=q.loggingHotConfig)==null?void 0:(w=a.csiConfig)==null?void 0:w.debugTicks)!=null?G:[]).map(function(k){return Object.values(k)[0]})}; Ks=function(q,a,w){if(!g.dF("web_csi_action_sampling_enabled")||!DR(w).actionDisabled){var G=gJ(w),k;if(k=g.dF("web_csi_debug_sample_enabled")&&G){(Q9().resolve(ZV(a5))==null?0:we())&&!Xhl&&(Xhl=!0,Ks("gcfl",(0,g.Zj)(),w));var b,O,e;k=(Q9().resolve(ZV(a5))==null?void 0:(b=we())==null?void 0:(O=b.loggingHotConfig)==null?void 0:(e=O.csiConfig)==null?void 0:e.debugSampleWeight)||0;if(b=k!==0)b:{b=UFU();if(b.length>0)for(O=0;Ow.duration?G:w},{duration:0}))&&a.startTime>0&&a.responseEnd>0&&(Ks("wffs",Y4(a.startTime)),Ks("wffe",Y4(a.responseEnd)))}; z9U=function(q,a,w){NZ&&NZ.measure&&(q.startsWith("measure_")||(q="measure_"+q),w?NZ.measure(q,a,w):a?NZ.measure(q,a):NZ.measure(q))}; iIK=function(q){var a=$4("aft",q);if(a)return a;a=g.UL((q||"")+"TIMING_AFT_KEYS",["ol"]);for(var w=a.length,G=0;G0&&Tz(a);a={isNavigation:!0,actionType:Gz(g.UL("TIMING_ACTION"))};var w=g.UL("PREVIOUS_ACTION");w&&(a.previousAction=Gz(w));if(w=g.UL("CLIENT_PROTOCOL"))a.httpProtocol=w;if(w=g.UL("CLIENT_TRANSPORT"))a.transportProtocol=w;(w=g.$f())&&w!=="UNDEFINED_CSN"&&(a.clientScreenNonce=w);w=Ijm();if(w===1||w===-1)a.isVisible= !0;w=RA().loadType==="cold";var G=MIG();w||(w=G.yt_lt==="cold");if(w){a.loadType="cold";w=MIG();G=phK();var k=Pt(),b=g.UL("CSI_START_TIMESTAMP_MILLIS",0);b>0&&!g.dF("embeds_web_enable_csi_start_override_killswitch")&&(k=b);k&&(Ks("srt",G.responseStart),w.prerender!==1&&dJ(k));w=R9K();w>0&&Ks("fpt",w);w=phK();w.isPerformanceNavigationTiming&&Tz({performanceNavigationTiming:!0},void 0);Ks("nreqs",w.requestStart,void 0);Ks("nress",w.responseStart,void 0);Ks("nrese",w.responseEnd,void 0);w.redirectEnd- w.redirectStart>0&&(Ks("nrs",w.redirectStart,void 0),Ks("nre",w.redirectEnd,void 0));w.domainLookupEnd-w.domainLookupStart>0&&(Ks("ndnss",w.domainLookupStart,void 0),Ks("ndnse",w.domainLookupEnd,void 0));w.connectEnd-w.connectStart>0&&(Ks("ntcps",w.connectStart,void 0),Ks("ntcpe",w.connectEnd,void 0));w.secureConnectionStart>=Pt()&&w.connectEnd-w.secureConnectionStart>0&&(Ks("nstcps",w.secureConnectionStart,void 0),Ks("ntcpe",w.connectEnd,void 0));NZ&&"getEntriesByType"in NZ&&v7y();w=[];if(document.querySelector&& NZ&&NZ.getEntriesByName)for(var O in Cs)Cs.hasOwnProperty(O)&&(G=Cs[O],tIK(O,G)&&w.push(G));if(w.length>0)for(a.resourceInfo=[],O=g.V(w),w=O.next();!w.done;w=O.next())a.resourceInfo.push({resourceCache:w.value})}Tz(a);a=qZ();a.preLoggedGelInfos||(a.preLoggedGelInfos=[]);O=a.preLoggedGelInfos;a=h9l();w=void 0;for(G=0;G-1&&(delete BJ["@type"],z=BJ);J&&q.U.has(J)&&q.U.delete(J);((gy=a.config)==null?0:gy.MoG)&&E3(a.config.MoG);if(z||(F8=q.W)==null||!F8.rat(a.input,a.F1)){Mm.Gl(15);break}return g.n(Mm,q.W.Hvh(a.input,a.F1),16);case 16:z=Mm.V;case 15:return $YV(q, z,a),((eK=a.config)==null?0:eK.ypl)&&E3(a.config.ypl),G(),Mm.return(z||void 0)}})}; Ybl=function(q,a){a:{q=q.qv;var w,G=(w=g.I(a,mFc))==null?void 0:w.signal;if(G&&q.QY&&(w=q.QY[G])){var k=w();break a}var b;if((w=(b=g.I(a,Qwm))==null?void 0:b.request)&&q.Mw&&(b=q.Mw[w])){k=b();break a}for(k in a)if(q.e3[k]&&(a=q.e3[k])){k=a();break a}k=void 0}if(k!==void 0)return Promise.resolve(k)}; KNK=function(q,a,w){var G,k,b,O,e,N,Y;return g.h(function(P){if(P.U==1){b=((G=a)==null?void 0:(k=G.Sh)==null?void 0:k.identity)||Ob;N=(O=a)==null?void 0:(e=O.Sh)==null?void 0:e.sessionIndex;var K=g.rH(q.V.yy(b,{sessionIndex:N}));return g.n(P,K,2)}Y=P.V;return P.return(Promise.resolve(Object.assign({},xFG(w),Y)))})}; P$_=function(q,a,w){var G,k=(a==null?void 0:(G=a.Sh)==null?void 0:G.identity)||Ob,b;a=a==null?void 0:(b=a.Sh)==null?void 0:b.sessionIndex;q=q.V.yy(k,{sessionIndex:a});return Object.assign({},xFG(w),q)}; rJ=function(){}; ns=function(){}; MZ=function(q){this.L=q}; hf=function(){}; S3=function(){}; fs=function(){}; Ht=function(){}; g.ct=function(q,a){var w=g.XU.apply(2,arguments);q=q===void 0?0:q;g.UH.call(this,a,w);this.errorType=q;Object.setPrototypeOf(this,this.constructor.prototype)}; ps=function(q,a,w,G){this.V=q;this.U=a;this.W=w;this.Y=G}; FNG=function(q,a,w){if(q.V){var G=Y$(Jo(a,"key"))||"/UNKNOWN_PATH";q.V.start(G)}G=w;g.dF("wug_networking_gzip_request")&&(G=cX_(w));var k;return new ((k=q.Y)!=null?k:window.Request)(a,G)}; g.X2=function(q,a){if(!U3){var w=Q9();E9(w,{Qo:C$j,ao:ps});var G={e3:{feedbackEndpoint:tI(hf),modifyChannelNotificationPreferenceEndpoint:tI(S3),playlistEditEndpoint:tI(fs),shareEntityEndpoint:tI(MZ),subscribeEndpoint:tI(rJ),unsubscribeEndpoint:tI(ns),webPlayerShareEntityServiceEndpoint:tI(Ht)}},k=oA.getInstance(),b={};k&&(b.client_location=k);q===void 0&&(q=ttj());a===void 0&&(a=w.resolve(C$j));Nel(G,a,q,b);E9(w,{Qo:ZBV,FZ:x4.instance});U3=w.resolve(ZBV)}return U3}; E3K=function(q){var a=new et;if(q.interpreterJavascript){var w=L$l(q.interpreterJavascript);w=F1(w).toString();var G=new OZ;H$(G,6,w);AY(a,OZ,1,G,vU)}else q.interpreterUrl&&(w=Fg(q.interpreterUrl),w=gj(w).toString(),G=new ll,H$(G,4,w),AY(a,ll,2,G,vU));q.interpreterHash&&c$(a,3,q.interpreterHash,vU);q.program&&c$(a,4,q.program,vU);q.globalName&&c$(a,5,q.globalName,vU);q.clientExperimentsStateBlob&&c$(a,7,q.clientExperimentsStateBlob,vU);return a}; j3=function(q){var a={};q=q.split("&");q=g.V(q);for(var w=q.next();!w.done;w=q.next())w=w.value.split("="),w.length===2&&(a[w[0]]=w[1]);return a}; Bxy=function(){if(g.dF("bg_st_hr"))return"havuokmhhs-0";var q,a=((q=performance)==null?void 0:q.timeOrigin)||0;return"havuokmhhs-"+Math.floor(a)}; oS=function(q){this.V=q}; VCl=function(){return new Promise(function(q){var a=window;a.ntpevasrs!==void 0?q(new oS(a.ntpevasrs)):(a.ntpqfbel===void 0&&(a.ntpqfbel=[]),a.ntpqfbel.push(function(w){q(new oS(w))}))})}; Q5c=function(){if(Wr()){var q=g.UL("PLAYER_VARS",{});if(g.dn(q,"privembed",!1)!="1"&&!Clc(q)){var a=function(){IS=!0;"google_ad_status"in window?p_("DCLKSTAT",1):p_("DCLKSTAT",2)}; try{g.R5(Jam,a)}catch(w){}mYj.push(g.fJ.gh(function(){if(!(IS||"google_ad_status"in window)){try{if(Jam.toString()&&a){var w=""+g.lV(a),G=FjV[w];G&&g.W0(G)}}catch(k){}IS=!0;p_("DCLKSTAT",3)}},5E3))}}}; uq=function(){var q=Number(g.UL("DCLKSTAT",0));return isNaN(q)?0:q}; iq=function(q,a,w){var G=this;this.network=q;this.options=a;this.U=w;this.V=null;if(a.k2K){var k=new g.Y8;this.V=k.promise;g.yV.ytAtRC&&It(function(){var b,O;return g.h(function(e){if(e.U==1){if(!g.yV.ytAtRC)return e.return();b=tf(null);return g.n(e,vt(G,b),2)}O=e.V;g.yV.ytAtRC&&g.yV.ytAtRC(JSON.stringify(O));g.Jm(e)})},2); VCl().then(function(b){var O,e,N,Y;return g.h(function(P){if(P.U==1)return b.bindInnertubeChallengeFetcher(function(K){return vt(G,tf(K))}),g.n(P,yR(),2); O=P.V;e=b.getLatestChallengeResponse();N=e.challenge;if(!N)throw Error("BGE_MACIL");Y={challenge:N,Qh:j3(N),IA:O,bgChallenge:new et};k.resolve(Y);b.registerChallengeFetchedCallback(function(K){K=K.challenge;if(!K)throw Error("BGE_MACR");K={challenge:K,Qh:j3(K),IA:O,bgChallenge:new et};G.V=Promise.resolve(K)}); g.Jm(P)})})}else a.preload&&Aal(this,new Promise(function(b){g.uM(0,function(){b(zz(G))},0)}))}; tf=function(q){var a={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};q&&(a.interpreterHash=q);return a}; zz=function(q,a){a=a===void 0?0:a;var w,G,k,b,O,e,N,Y,P,K,d,T;return g.h(function(F){switch(F.U){case 1:w=tf(dV().V);if(g.dF("att_fet_ks"))return g.ml(F,7),g.n(F,vt(q,w),9);g.ml(F,4);return g.n(F,xYf(q,w),6);case 6:O=F.V;k=O.bTK;b=O.h9T;G=O;g.xl(F,3);break;case 4:return g.rc(F),g.Qa(Error("Failed to fetch attestation challenge after "+(a+" attempts; not retrying for 24h."))),Wt(q,864E5),F.return({challenge:"",Qh:{},IA:void 0,bgChallenge:void 0});case 9:G=F.V;if(!G)throw Error("Fetching Attestation challenge returned falsy"); if(!G.challenge)throw Error("Missing Attestation challenge");k=G.challenge;b=j3(k);if("c1a"in b&&(!G.bgChallenge||!G.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.xl(F,3);break;case 7:e=g.rc(F);g.Qa(e);a++;if(a>=5)return g.Qa(Error("Failed to fetch attestation challenge after "+(a+" attempts; not retrying for 24h."))),Wt(q,864E5),F.return({challenge:"",Qh:{},IA:void 0,bgChallenge:void 0});N=1E3*Math.pow(2,a-1)+Math.random()*1E3;return F.return(new Promise(function(J){g.uM(0, function(){J(zz(q,a))},N)})); case 3:Y=Number(b.t)||7200;Wt(q,Y*1E3);P=void 0;if(!("c1a"in b&&G.bgChallenge)){F.Gl(10);break}K=E3K(G.bgChallenge);g.ml(F,11);return g.n(F,Lym(dV(),K),13);case 13:g.xl(F,12);break;case 11:return d=g.rc(F),g.Qa(d),F.return({challenge:k,Qh:b,IA:P,bgChallenge:K});case 12:return g.ml(F,14),P=new P4({challenge:K,g5:{Z9:"aGIf"}}),g.n(F,P.Q6,16);case 16:g.xl(F,10);break;case 14:T=g.rc(F),g.Qa(T),P=void 0;case 10:return F.return({challenge:k,Qh:b,IA:P,bgChallenge:K})}})}; vt=function(q,a){var w;return g.h(function(G){w=q.U;if(!w||w.GA())return G.return(vt(q.network,a));Af("att_pna",void 0,"attestation_challenge_fetch");return G.return(new Promise(function(k){w.HU("publicytnetworkstatus-online",function(){vt(q.network,a).then(k)})}))})}; LN_=function(q){if(!q)throw Error("Fetching Attestation challenge returned falsy");if(!q.challenge)throw Error("Missing Attestation challenge");var a=q.challenge,w=j3(a);if("c1a"in w&&(!q.bgChallenge||!q.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},q,{bTK:a,h9T:w})}; xYf=function(q,a){var w,G,k,b,O;return g.h(function(e){switch(e.U){case 1:w=void 0,G=0,k={};case 2:if(!(G<5)){e.Gl(4);break}if(!(G>0)){e.Gl(5);break}k.JB=1E3*Math.pow(2,G-1)+Math.random()*1E3;return g.n(e,new Promise(function(N){return function(Y){g.uM(0,function(){Y(void 0)},N.JB)}}(k)),5); case 5:return g.ml(e,7),g.n(e,vt(q,a),9);case 9:return b=e.V,e.return(LN_(b));case 7:w=O=g.rc(e),O instanceof Error&&g.Qa(O);case 8:G++;k={JB:void 0};e.Gl(2);break;case 4:throw w;}})}; Aal=function(q,a){q.V=a}; Bel=function(q){var a,w,G;return g.h(function(k){if(k.U==1)return g.n(k,Promise.race([q.V,null]),2);a=k.V;var b=zz(q);q.V=b;(w=a)==null||(G=w.IA)==null||G.dispose();g.Jm(k)})}; Wt=function(q,a){function w(){var k;return g.h(function(b){k=G-Date.now();return k<1E3?g.n(b,Bel(q),0):(It(w,0,Math.min(k,6E4)),b.Gl(0))})} var G=Date.now()+a;w()}; ray=function(q,a){return new Promise(function(w){g.uM(0,function(){w(a())},q)})}; g.n3l=function(q,a){var w;return g.h(function(G){var k=g.aB("yt.aba.att");return(w=k?k:iq.instance!==void 0?iq.instance.W.bind(iq.instance):null)?G.return(w("ENGAGEMENT_TYPE_PLAYBACK",q,a)):G.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; g.MCf=function(){var q;return(q=(q=g.aB("yt.aba.att2"))?q:iq.instance!==void 0?iq.instance.Y.bind(iq.instance):null)?q():Promise.resolve(!1)}; Sbc=function(q,a){var w=g.aB("ytDebugData.callbacks");w||(w={},g.qe("ytDebugData.callbacks",w));if(g.dF("web_dd_iu")||hDc.includes(q))w[q]=a}; Dp=function(){var q=f2V;var a=a===void 0?[]:a;var w=w===void 0?[]:w;a=VYG.apply(null,[JtV.apply(null,g.Tf(a))].concat(g.Tf(w)));this.store=Qlj(q,void 0,a)}; g.RS=function(q,a,w){for(var G=Object.assign({},q),k=g.V(Object.keys(a)),b=k.next();!b.done;b=k.next()){b=b.value;var O=q[b],e=a[b];if(e===void 0)delete G[b];else if(O===void 0)G[b]=e;else if(Array.isArray(e)&&Array.isArray(O))G[b]=w?[].concat(g.Tf(O),g.Tf(e)):e;else if(!Array.isArray(e)&&g.bV(e)&&!Array.isArray(O)&&g.bV(O))G[b]=g.RS(O,e,w);else if(typeof e===typeof O)G[b]=e;else return a=new g.UH("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:b,x$T:O,updateValue:e}),g.mQ(a), q}return G}; yI=function(q){var a=this;q=q===void 0?[]:q;this.V=[];this.W=this.U=0;this.Y=void 0;this.totalLength=0;q.forEach(function(w){a.append(w)})}; HBj=function(q,a){return q.V.length===0?!1:(q=q.V[q.V.length-1])&&q.buffer===a.buffer&&q.byteOffset+q.length===a.byteOffset}; qj=function(q,a){a=g.V(a.V);for(var w=a.next();!w.done;w=a.next())q.append(w.value)}; gd=function(q,a,w){return q.split(a).xK.split(w).DK}; ae=function(q){q.Y=void 0;q.U=0;q.W=0}; wd=function(q,a,w){q.isFocused(a);return a-q.W+w<=q.V[q.U].length}; caK=function(q){if(!q.Y){var a=q.V[q.U];q.Y=new DataView(a.buffer,a.byteOffset,a.length)}return q.Y}; p0f=function(q,a,w){a=a===void 0?0:a;w=w===void 0?-1:w;if(!q.totalLength||!w)return new DataView(new ArrayBuffer(0));w<0&&(w=q.totalLength-a);q.focus(a);if(!wd(q,a,w)){var G=q.U,k=q.W;q.focus(a+w-1);k=new Uint8Array(q.W+q.V[q.U].length-k);for(var b=0,O=G;O<=q.U;O++)k.set(q.V[O],b),b+=q.V[O].length;q.V.splice(G,q.U-G+1,k);ae(q);q.focus(a)}G=q.V[q.U];return new DataView(G.buffer,G.byteOffset+a-q.W,w)}; Gp=function(q,a,w){q=p0f(q,a===void 0?0:a,w===void 0?-1:w);return new Uint8Array(q.buffer,q.byteOffset,q.byteLength)}; kv=function(q,a,w){q=Gp(q,a===void 0?0:a,w===void 0?-1:w);a=new Uint8Array(q.length);try{a.set(q)}catch(G){for(w=0;w>10;b=56320|b&1023}er[k++]=b}}b=String.fromCharCode.apply(String,er); k<1024&&(b=b.substring(0,k));w.push(b)}return w.join("")}; PV=function(q,a){var w;if((w=Yv)==null?0:w.encodeInto)return a=Yv.encodeInto(q,a),a.read>6|192:((k&64512)===55296&&G+1>18|240,a[w++]=k>>12&63|128):a[w++]=k>>12|224,a[w++]=k>>6&63|128),a[w++]=k&63|128)}return w}; KZ=function(q){if(Yv)return Yv.encode(q);var a=new Uint8Array(Math.ceil(q.length*1.2)),w=PV(q,a);a.lengthw&&(a=a.subarray(0,w));return a}; dd=function(q){this.V=q;this.pos=0;this.U=-1}; Tp=function(q){var a=bH(q.V,q.pos);++q.pos;if(a<128)return a;for(var w=a&127,G=1;a>=128;)a=bH(q.V,q.pos),++q.pos,G*=128,w+=(a&127)*G;return w}; $v=function(q,a){var w=q.U;for(q.U=-1;q.pos+1<=q.V.totalLength;){w<0&&(w=Tp(q));var G=w>>3,k=w&7;if(G===a)return!0;if(G>a){q.U=w;break}w=-1;switch(k){case 0:Tp(q);break;case 1:q.pos+=8;break;case 2:G=Tp(q);q.pos+=G;break;case 5:q.pos+=4}}return!1}; sR=function(q,a){if($v(q,a))return Tp(q)}; j5m=function(q,a){if($v(q,a))return a=Gp(q.V,q.pos,8),q.pos+=8,(new DataView(a.buffer,a.byteOffset,a.byteLength)).getFloat64(0,!0)}; FT=function(q,a){if($v(q,a))return!!Tp(q)}; CZ=function(q,a){if($v(q,a)){a=Tp(q);var w=Gp(q.V,q.pos,a);q.pos+=a;return w}}; ZQ=function(q,a){if(q=CZ(q,a))return g.Nj(q)}; ER=function(q,a,w){if(q=CZ(q,a))return w(new dd(new yI([q])))}; VH=function(q,a){for(var w=[];$v(q,a);)w.push(Tp(q));return w.length?w:void 0}; JO=function(q,a,w){for(var G=[],k;k=CZ(q,a);)G.push(w(new dd(new yI([k]))));return G.length?G:void 0}; mK=function(q,a){q=q instanceof Uint8Array?new yI([q]):q;return a(new dd(q))}; o3f=function(q,a){q=new Uint8Array(q);a&&q.set(a);return q}; I2J=function(q){this.pos=0;this.U=[];this.V=o3f(q===void 0?4096:q);this.view=new DataView(this.V.buffer,this.V.byteOffset,this.V.byteLength)}; QH=function(q,a){a=q.pos+a;if(!(q.V.length>=a)){for(var w=q.V.length*2;w268435455){QH(q,4);for(var w=a&1073741823,G=0;G<4;G++)q.view.setUint8(q.pos,w&127|128),w>>=7,q.pos+=1;a=Math.floor(a/268435456)}for(QH(q,4);a>127;)q.view.setUint8(q.pos,a&127|128),a>>=7,q.pos+=1;q.view.setUint8(q.pos,a);q.pos+=1}; xv=function(q,a,w){w!==void 0&&(AO(q,a*8),AO(q,w))}; LZ=function(q,a,w){w!==void 0&&xv(q,a,w?1:0)}; UR=function(q,a,w){w!==void 0&&(AO(q,a*8+2),a=w.length,AO(q,a),QH(q,a),q.V.set(w,q.pos),q.pos+=a)}; XT=function(q,a,w){w!==void 0&&(u3G(q,a,Math.ceil(Math.log2(w.length*4+2)/7)),QH(q,w.length*1.2),a=PV(w,q.V.subarray(q.pos)),q.pos+a>q.V.length&&(QH(q,a),a=PV(w,q.V.subarray(q.pos))),q.pos+=a,tCU(q))}; u3G=function(q,a,w){w=w===void 0?2:w;AO(q,a*8+2);q.U.push(q.pos);q.U.push(w);q.pos+=w}; tCU=function(q){for(var a=q.U.pop(),w=q.U.pop(),G=q.pos-w-a;a--;){var k=a?128:0;q.view.setUint8(w++,G&127|k);G>>=7}}; jr=function(q,a,w,G,k){w&&(u3G(q,a,k===void 0?3:k),G(q,w),tCU(q))}; g.oe=function(q,a){var w=new I2J(4096);a(w,q);return new Uint8Array(w.V.buffer,w.V.byteOffset,w.pos)}; g.Ie=function(q){var a=new dd(new yI([LQ(decodeURIComponent(q))]));q=ZQ(a,2);a=sR(a,4);var w=v3m[a];if(typeof w==="undefined")throw q=new g.UH("Failed to recognize field number",{name:"EntityKeyHelperError",wMQ:a}),g.mQ(q),q;return{pM:a,entityType:w,entityId:q}}; g.uH=function(q,a){var w=w===void 0?0:w;var G=new I2J;UR(G,2,KZ(q));q=zDJ[a];if(typeof q==="undefined")throw w=new g.UH("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:a}),g.mQ(w),w;xv(G,4,q);xv(G,5,1);a=new Uint8Array(G.V.buffer,G.V.byteOffset,G.pos);return encodeURIComponent(g.AH(a,w))}; tO=function(q,a,w,G){if(G===void 0)return G=Object.assign({},q[a]||{}),w=(delete G[w],G),G={},Object.assign({},q,(G[a]=w,G));var k={},b={};return Object.assign({},q,(b[a]=Object.assign({},q[a],(k[w]=G,k)),b))}; iBl=function(q,a,w,G,k){var b=q[a];if(b==null||!b[w])return q;G=g.RS(b[w],G,k==="REPEATED_FIELDS_MERGE_OPTION_APPEND");k={};b={};return Object.assign({},q,(b[a]=Object.assign({},q[a],(k[w]=G,k)),b))}; WNy=function(q,a){q=q===void 0?{}:q;switch(a.type){case "ENTITY_LOADED":return a.payload.reduce(function(G,k){var b,O=(b=k.options)==null?void 0:b.persistenceOption;if(O&&O!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&O!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return G;if(!k.entityKey)return g.mQ(Error("Missing entity key")),G;if(k.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!k.payload)return k=new g.UH("REPLACE entity mutation is missing a payload",{entityKey:k.entityKey}),g.mQ(k),G;var e=g.wn(k.payload); return tO(G,e,k.entityKey,k.payload[e])}if(k.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{k=k.entityKey;try{var N=g.Ie(k).entityType;e=tO(G,N,k);break a}catch(K){if(K instanceof Error){k=new g.UH("Failed to deserialize entity key",{entityKey:k,originalMessage:K.message});g.mQ(k);e=G;break a}throw K;}e=void 0}return e}if(k.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!k.payload)return k=new g.UH("UPDATE entity mutation is missing a payload",{entityKey:k.entityKey}),g.mQ(k),G;e=g.wn(k.payload);var Y,P;return iBl(G, e,k.entityKey,k.payload[e],(Y=k.fieldMask)==null?void 0:(P=Y.mergeOptions)==null?void 0:P.repeatedFieldsMergeOption)}return G},q); case "REPLACE_ENTITY":var w=a.payload;return tO(q,w.entityType,w.key,w.D2);case "REPLACE_ENTITIES":return Object.keys(a.payload).reduce(function(G,k){var b=a.payload[k];return Object.keys(b).reduce(function(O,e){return tO(O,k,e,b[e])},G)},q); case "UPDATE_ENTITY":return w=a.payload,iBl(q,w.entityType,w.key,w.D2,w.Ex2);default:return q}}; vV=function(q,a,w){return q[a]?q[a][w]||null:null}; zp=function(q){return window.Int32Array?new Int32Array(q):Array(q)}; q8=function(q){g.c.call(this);this.counter=[0,0,0,0];this.U=new Uint8Array(16);this.V=16;if(!DYc){var a,w=new Uint8Array(256),G=new Uint8Array(256);var k=1;for(a=0;a<256;a++)w[k]=a,G[a]=k,k^=k<<1^(k>>7&&283);iH=new Uint8Array(256);WV=zp(256);DQ=zp(256);Re=zp(256);yH=zp(256);for(var b=0;b<256;b++){k=b?G[255^w[b]]:0;k^=k<<1^k<<2^k<<3^k<<4;k=k&255^k>>>8^99;iH[b]=k;a=k<<1^(k>>7&&283);var O=a^k;WV[b]=a<<24|k<<16|k<<8|O;DQ[b]=O<<24|WV[b]>>>8;Re[b]=k<<24|DQ[b]>>>8;yH[b]=k<<24|Re[b]>>>8}DYc=!0}k=zp(44);for(w= 0;w<4;w++)k[w]=q[4*w]<<24|q[4*w+1]<<16|q[4*w+2]<<8|q[4*w+3];for(G=1;w<44;w++)q=k[w-1],w%4||(q=(iH[q>>16&255]^G)<<24|iH[q>>8&255]<<16|iH[q&255]<<8|iH[q>>>24],G=G<<1^(G>>7&&283)),k[w]=k[w-4]^q;this.key=k}; RDV=function(q){for(var a=q.key,w=q.counter[0]^a[0],G=q.counter[1]^a[1],k=q.counter[2]^a[2],b=q.counter[3]^a[3],O=3;O>=0&&!(q.counter[O]=-~q.counter[O]);O--);for(var e,N,Y=4;Y<40;)O=WV[w>>>24]^DQ[G>>16&255]^Re[k>>8&255]^yH[b&255]^a[Y++],e=WV[G>>>24]^DQ[k>>16&255]^Re[b>>8&255]^yH[w&255]^a[Y++],N=WV[k>>>24]^DQ[b>>16&255]^Re[w>>8&255]^yH[G&255]^a[Y++],b=WV[b>>>24]^DQ[w>>16&255]^Re[G>>8&255]^yH[k&255]^a[Y++],w=O,G=e,k=N;q=q.U;O=a[40];q[0]=iH[w>>>24]^O>>>24;q[1]=iH[G>>16&255]^O>>16&255;q[2]=iH[k>>8&255]^ O>>8&255;q[3]=iH[b&255]^O&255;O=a[41];q[4]=iH[G>>>24]^O>>>24;q[5]=iH[k>>16&255]^O>>16&255;q[6]=iH[b>>8&255]^O>>8&255;q[7]=iH[w&255]^O&255;O=a[42];q[8]=iH[k>>>24]^O>>>24;q[9]=iH[b>>16&255]^O>>16&255;q[10]=iH[w>>8&255]^O>>8&255;q[11]=iH[G&255]^O&255;O=a[43];q[12]=iH[b>>>24]^O>>>24;q[13]=iH[w>>16&255]^O>>16&255;q[14]=iH[G>>8&255]^O>>8&255;q[15]=iH[k&255]^O&255}; w5=function(){if(!g5&&!g.jI){if(aU)return aU;var q;aU=(q=window.crypto)==null?void 0:q.subtle;var a,w,G;if(((a=aU)==null?0:a.importKey)&&((w=aU)==null?0:w.sign)&&((G=aU)==null?0:G.encrypt))return aU;aU=void 0}}; g.bP=function(q){var a=w5();a&&(this.V=new Gv(q,a));this.U=new g.kW(q)}; Gv=function(q,a){this.U=q;this.subtleCrypto=a}; yaV=function(q,a,w){var G,k;return g.h(function(b){switch(b.U){case 1:if(q.V){b.Gl(2);break}return g.n(b,q.subtleCrypto.importKey("raw",q.U,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:q.V=b.V;case 2:return G={name:"AES-CTR",counter:w,length:128},g.n(b,q.subtleCrypto.encrypt(G,q.V,a),4);case 4:return k=b.V,b.return(new Uint8Array(k))}})}; g.kW=function(q){this.U=q}; O4=function(q){this.D=new Uint8Array(64);this.W=new Uint8Array(64);this.Y=0;this.L=new Uint8Array(64);this.U=0;this.D.set(q);this.W.set(q);for(q=0;q<64;q++)this.D[q]^=92,this.W[q]^=54;this.reset()}; q9c=function(q,a,w){for(var G=q.X,k=q.V[0],b=q.V[1],O=q.V[2],e=q.V[3],N=q.V[4],Y=q.V[5],P=q.V[6],K=q.V[7],d,T,F,J=0;J<64;)J<16?(G[J]=F=a[w]<<24|a[w+1]<<16|a[w+2]<<8|a[w+3],w+=4):(d=G[J-2],T=G[J-15],F=G[J-7]+G[J-16]+((d>>>17|d<<15)^(d>>>19|d<<13)^d>>>10)+((T>>>7|T<<25)^(T>>>18|T<<14)^T>>>3),G[J]=F),d=K+lP[J]+F+((N>>>6|N<<26)^(N>>>11|N<<21)^(N>>>25|N<<7))+(N&Y^~N&P),T=((k>>>2|k<<30)^(k>>>13|k<<19)^(k>>>22|k<<10))+(k&b^k&O^b&O),K=d+T,e+=d,J++,J<16?(G[J]=F=a[w]<<24|a[w+1]<<16|a[w+2]<<8|a[w+3],w+=4):(d= G[J-2],T=G[J-15],F=G[J-7]+G[J-16]+((d>>>17|d<<15)^(d>>>19|d<<13)^d>>>10)+((T>>>7|T<<25)^(T>>>18|T<<14)^T>>>3),G[J]=F),d=P+lP[J]+F+((e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7))+(e&N^~e&Y),T=((K>>>2|K<<30)^(K>>>13|K<<19)^(K>>>22|K<<10))+(K&k^K&b^k&b),P=d+T,O+=d,J++,J<16?(G[J]=F=a[w]<<24|a[w+1]<<16|a[w+2]<<8|a[w+3],w+=4):(d=G[J-2],T=G[J-15],F=G[J-7]+G[J-16]+((d>>>17|d<<15)^(d>>>19|d<<13)^d>>>10)+((T>>>7|T<<25)^(T>>>18|T<<14)^T>>>3),G[J]=F),d=Y+lP[J]+F+((O>>>6|O<<26)^(O>>>11|O<<21)^(O>>>25|O<<7))+(O&e^ ~O&N),T=((P>>>2|P<<30)^(P>>>13|P<<19)^(P>>>22|P<<10))+(P&K^P&k^K&k),Y=d+T,b+=d,J++,J<16?(G[J]=F=a[w]<<24|a[w+1]<<16|a[w+2]<<8|a[w+3],w+=4):(d=G[J-2],T=G[J-15],F=G[J-7]+G[J-16]+((d>>>17|d<<15)^(d>>>19|d<<13)^d>>>10)+((T>>>7|T<<25)^(T>>>18|T<<14)^T>>>3),G[J]=F),d=N+lP[J]+F+((b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+(b&O^~b&e),T=((Y>>>2|Y<<30)^(Y>>>13|Y<<19)^(Y>>>22|Y<<10))+(Y&P^Y&K^P&K),F=K,K=e,e=F,F=P,P=O,O=F,F=Y,Y=b,b=F,N=k+d,k=d+T,J++;q.V[0]=k+q.V[0]|0;q.V[1]=b+q.V[1]|0;q.V[2]=O+q.V[2]|0;q.V[3]= e+q.V[3]|0;q.V[4]=N+q.V[4]|0;q.V[5]=Y+q.V[5]|0;q.V[6]=P+q.V[6]|0;q.V[7]=K+q.V[7]|0}; aVN=function(q){var a=new Uint8Array(32),w=64-q.U;q.U>55&&(w+=64);var G=new Uint8Array(w);G[0]=128;for(var k=q.Y*8,b=1;b<9;b++){var O=k%256;G[w-b]=O;k=(k-O)/256}q.update(G);for(w=0;w<8;w++)a[w*4]=q.V[w]>>>24,a[w*4+1]=q.V[w]>>>16&255,a[w*4+2]=q.V[w]>>>8&255,a[w*4+3]=q.V[w]&255;g5U(q);return a}; g5U=function(q){q.V=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];q.X=[];q.X.length=64;q.Y=0;q.U=0}; wpc=function(q){this.V=q}; G6l=function(q,a,w){q=new O4(q.V);q.update(a);q.update(w);a=aVN(q);q.update(q.D);q.update(a);a=aVN(q);q.reset();return a}; k6j=function(q){this.U=q}; b5K=function(q,a,w,G){var k,b,O;return g.h(function(e){switch(e.U){case 1:if(q.V){e.Gl(2);break}return g.n(e,G.importKey("raw",q.U,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:q.V=e.V;case 2:return k=new Uint8Array(a.length+w.length),k.set(a),k.set(w,a.length),b={name:"HMAC",hash:"SHA-256"},g.n(e,G.sign(b,q.V,k),4);case 4:return O=e.V,e.return(new Uint8Array(O))}})}; O5K=function(q,a,w){q.W||(q.W=new wpc(q.U));return G6l(q.W,a,w)}; lVj=function(q,a,w){var G,k;return g.h(function(b){if(b.U==1){G=w5();if(!G)return b.return(O5K(q,a,w));g.ml(b,3);return g.n(b,b5K(q,a,w,G),5)}if(b.U!=3)return b.return(b.V);k=g.rc(b);g.Qa(k);g5=!0;return b.return(O5K(q,a,w))})}; NWU=function(q){for(var a="",w=0;w=0||C3(q,0,"gad_source",q.search(Ek))>=0}; F2J=function(){this.V=new Map}; Z5_=function(q,a){var w=Q9().resolve(CzJ);if(sGm(a)){var G=V6(a,"gclid");a={handleEvent:function(e){q&&!q.closed&&typeof q.postMessage==="function"&&e&&e.origin&&e.source===q&&e.data&&e.data.action==="gcl_setup"&&q.postMessage(Object.assign({},{action:"gcl_transfer"},G&&{gclid:G},{gadSource:2}),e.origin)}}; for(var k=g.V(w.V),b=k.next();!b.done;b=k.next()){var O=g.V(b.value);b=O.next().value;O=O.next().value;if(b.closed)try{window.removeEventListener("message",O),w.V.delete(b)}catch(e){g.mQ(e)}}q&&w.V.size<15&&(w.V.set(q,a),window.addEventListener("message",a))}}; eT=function(q,a,w){if(!a)return q.length>=1?q[q.length-1]:null;for(var G=g.V(q),k=G.next();!k.done;k=G.next())if(k=k.value,k.width&&k.height&&(w&&k.width>=a||!w&&k.height>=a))return k;for(a=q.length-1;a>=0;a--)if(w&&q[a].width||!w&&q[a].height)return q[a];return q[0]}; N8=function(){this.state=1;this.IA=null;this.pE=void 0}; VbU=function(q,a,w,G,k,b){var O=O===void 0?"trayride":O;w?(q.gG(2),g.R5(g.C_(w),function(){if(window[O])E5y(q,G,O,k);else{q.gG(3);var e=sIN(w),N=document.getElementById(e);N&&(T0y(e),N.parentNode.removeChild(N));g.Qa(new g.UH("BL:ULB",""+w))}},b)):a?(b=g.dp("SCRIPT"),a instanceof sX?(b.textContent=F1(a),CS(b)):b.textContent=a,b.nonce=$1(document),document.head.appendChild(b),document.head.removeChild(b),window[O]?E5y(q,G,O,k):(q.gG(4),g.Qa(new g.UH("BL:ULBJ")))):g.Qa(new g.UH("BL:ULV"))}; E5y=function(q,a,w,G){q.gG(5);var k=!!q.pE&&JNG.includes(g.Nr(q.pE)||"");try{var b=new P4({program:a,globalName:w,g5:{disable:!g.dF("att_web_record_metrics")||!g.dF("att_skip_metrics_for_cookieless_domains_ks")&&k,Z9:"aGIf"}});b.Q6.then(function(){q.gG(6);G&&G(a)}); q.Vj(b)}catch(O){q.gG(7),O instanceof Error&&g.Qa(O)}}; YW=function(){var q=g.aB("yt.abuse.playerAttLoader");return q&&["bgvma","bgvmb","bgvmc"].every(function(a){return a in q})?q:null}; Ps=function(){N8.apply(this,arguments)}; KG=function(){}; m9G=function(q,a,w){for(var G=!1,k=g.V(q.a_.entries()),b=k.next();!b.done;b=k.next())b=g.V(b.value).next().value,b.slotType==="SLOT_TYPE_PLAYER_BYTES"&&b.kT==="core"&&(G=!0);if(G){a:if(!w){q=g.V(q.a_.entries());for(w=q.next();!w.done;w=q.next())if(G=g.V(w.value),w=G.next().value,G=G.next().value,w.slotType==="SLOT_TYPE_IN_PLAYER"&&w.kT==="core"){w=G.layoutId;break a}w=void 0}w?a.pH(w):Gj("No triggering layout ID available when attempting to mute.")}}; d5=function(q,a){this.L3=q;this.IP=a}; Tv=function(){}; $W=function(){}; AN_=function(q){g.c.call(this);var a=this;this.S1=q;this.V=new Map;s4(this,"commandExecutorCommand",function(w,G,k){QGJ(a,w.commands,G,k)}); s4(this,"clickTrackingParams",function(){})}; x9V=function(q,a){s4(q,a.Lm(),function(w,G,k){a.nU(w,G,k)})}; s4=function(q,a,w){q.t2();q.V.get(a)&&g.mQ(Error("Extension name "+a+" already registered"));q.V.set(a,w)}; QGJ=function(q,a,w,G){a=a===void 0?[]:a;q.t2();var k=[],b=[];a=g.V(a);for(var O=a.next();!O.done;O=a.next())O=O.value,g.I(O,L2N)||g.I(O,BWV)?k.push(O):b.push(O);k=g.V(k);for(a=k.next();!a.done;a=k.next())Fl(q,a.value,w,G);b=g.V(b);for(k=b.next();!k.done;k=b.next())Fl(q,k.value,w,G)}; Fl=function(q,a,w,G){q.t2();a.loggingUrls&&rNG(q,"loggingUrls",a.loggingUrls,w,G);a=g.V(Object.entries(a));for(var k=a.next();!k.done;k=a.next()){var b=g.V(k.value);k=b.next().value;b=b.next().value;k==="openPopupAction"?q.S1.get().DN("innertubeCommand",{openPopupAction:b}):k==="confirmDialogEndpoint"?q.S1.get().DN("innertubeCommand",{confirmDialogEndpoint:b}):n5V.hasOwnProperty(k)||rNG(q,k,b,w,G)}}; rNG=function(q,a,w,G,k){if((q=q.V.get(a))&&typeof q==="function")try{q(w,G,k)}catch(b){g.mQ(b)}else a=new g.UH("Unhandled field",a),g.Qa(a)}; CG=function(q,a,w){this.s3=q;this.V=a;this.p7=w;E9(Q9(),{Qo:CzJ,ao:F2J})}; ZP=function(q){this.value=q}; E4=function(q){this.value=q}; Vh=function(q){this.value=q}; JZ=function(q){this.value=q}; mV=function(q){this.value=q}; Qh=function(q){this.value=q}; AZ=function(q){this.value=q}; xW=function(){ZP.apply(this,arguments)}; LG=function(q){this.value=q}; Bs=function(q){this.value=q}; r5=function(q){this.value=q}; nG=function(q){this.value=q}; M8=function(q){this.value=q}; hZ=function(q){this.value=q}; ST=function(q){this.value=q}; fG=function(q){this.value=q}; Hs=function(q){this.value=q}; cs=function(q){this.value=q}; pG=function(){ZP.apply(this,arguments)}; U4=function(q){this.value=q}; Xl=function(q){this.value=q}; jT=function(q){this.value=q}; oU=function(q){this.value=q}; IU=function(q){this.value=q}; uP=function(q){this.value=q}; tZ=function(q){this.value=q}; vs=function(q){this.value=q}; zv=function(q){this.value=q}; iP=function(q){this.value=q}; Ws=function(q){this.value=q}; DP=function(q){this.value=q}; RU=function(q){this.value=q}; yh=function(q){this.value=q}; qD=function(q){this.value=q}; g2=function(q){this.value=q}; aZ=function(q){this.value=q}; w2=function(q){this.value=q}; GC=function(q){this.value=q}; kr=function(q){this.value=q}; bo=function(q){this.value=q}; O0=function(q){this.value=q}; lo=function(q){this.value=q}; e4=function(q){this.value=q}; ND=function(q){this.value=q}; Yr=function(q){this.value=q}; Po=function(q){this.value=q}; KM=function(q){this.value=q}; d2=function(q){this.value=q}; TC=function(q){this.value=q}; $r=function(q){this.value=q}; s0=function(q){this.value=q}; Fv=function(q){this.value=q}; CM=function(q){this.value=q}; Z8=function(q){this.value=q}; E0=function(q){this.value=q}; VJ=function(q){this.value=q}; J4=function(q){this.value=q}; mq=function(q){this.value=q}; QJ=function(){ZP.apply(this,arguments)}; A4=function(q){this.value=q}; xr=function(){ZP.apply(this,arguments)}; LM=function(){ZP.apply(this,arguments)}; Bo=function(){ZP.apply(this,arguments)}; r2=function(){ZP.apply(this,arguments)}; nM=function(){ZP.apply(this,arguments)}; MD=function(q){this.value=q}; h4=function(q){this.value=q}; S4=function(q){this.value=q}; fM=function(q){this.value=q}; Ho=function(q){this.value=q}; pM=function(q,a,w){if(w&&!w.includes(q.layoutType))return!1;a=g.V(a);for(w=a.next();!w.done;w=a.next())if(!co(q.clientMetadata,w.value))return!1;return!0}; U0=function(){return""}; Mby=function(q,a){switch(q){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 a(q),8}}; Xv=function(q,a,w,G){G=G===void 0?!1:G;$c.call(this,q);this.Ok=w;this.Ce=G;this.args=[];a&&this.args.push(a)}; W=function(q,a,w,G){G=G===void 0?!1:G;$c.call(this,q);this.Ok=w;this.Ce=G;this.args=[];a&&this.args.push(a)}; j4=function(q){var a=new Map;q.forEach(function(w){a.set(w.V(),w)}); this.V=a}; co=function(q,a){return q.V.has(a)}; oZ=function(q,a){q=q.V.get(a);if(q!==void 0)return q.get()}; IZ=function(q){return Array.from(q.V.keys())}; uo=function(q,a,w){if(w&&w!==q.slotType)return!1;a=g.V(a);for(w=a.next();!w.done;w=a.next())if(!co(q.clientMetadata,w.value))return!1;return!0}; S9f=function(q){var a;return((a=h_G.get(q))==null?void 0:a.cz)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; vo=function(q,a){var w={type:a.slotType,controlFlowManagerLayer:fVN.get(a.kT)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};a.slotEntryTrigger&&(w.entryTriggerType=a.slotEntryTrigger.triggerType);a.slotPhysicalPosition!==1&&(w.slotPhysicalPosition=a.slotPhysicalPosition);if(q){w.debugData={slotId:a.slotId};if(q=a.slotEntryTrigger)w.debugData.slotEntryTriggerData=t4(q);q=a.slotFulfillmentTriggers;w.debugData.fulfillmentTriggerData=[];q=g.V(q);for(var G=q.next();!G.done;G=q.next())w.debugData.fulfillmentTriggerData.push(t4(G.value)); a=a.slotExpirationTriggers;w.debugData.expirationTriggerData=[];a=g.V(a);for(q=a.next();!q.done;q=a.next())w.debugData.expirationTriggerData.push(t4(q.value))}return w}; H5G=function(q,a){var w={type:a.layoutType,controlFlowManagerLayer:fVN.get(a.kT)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};q&&(w.debugData={layoutId:a.layoutId});return w}; t4=function(q,a){var w={type:q.triggerType};a!=null&&(w.category=a);q.triggeringSlotId!=null&&(w.triggerSourceData||(w.triggerSourceData={}),w.triggerSourceData.associatedSlotId=q.triggeringSlotId);q.triggeringLayoutId!=null&&(w.triggerSourceData||(w.triggerSourceData={}),w.triggerSourceData.associatedLayoutId=q.triggeringLayoutId);return w}; cNf=function(q,a,w,G){a={opportunityType:a};q&&(G||w)&&(G=g.sd(G||[],function(k){return vo(q,k)}),a.debugData=Object.assign({},w&&w.length>0?{associatedSlotId:w}:{},G.length>0?{slots:G}:{})); return a}; io=function(q,a){return function(w){return ppl(zC(q),a.slotId,a.slotType,a.slotPhysicalPosition,a.kT,a.slotEntryTrigger,a.slotFulfillmentTriggers,a.slotExpirationTriggers,w.layoutId,w.layoutType,w.kT)}}; ppl=function(q,a,w,G,k,b,O,e,N,Y,P){return{adClientDataEntry:{slotData:vo(q,{slotId:a,slotType:w,slotPhysicalPosition:G,kT:k,slotEntryTrigger:b,slotFulfillmentTriggers:O,slotExpirationTriggers:e,clientMetadata:new j4([])}),layoutData:H5G(q,{layoutId:N,layoutType:Y,kT:P,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Mh:[],d$:new Map,clientMetadata:new j4([]),Xw:{}})}}}; D8=function(q){this.Q7=q;q=Math.random();var a=this.Q7.get();a=g.Wo(a.j.B().experiments,"html5_debug_data_log_probability");a=Number.isFinite(a)&&a>=0&&a<=1?a:0;this.V=q1){g.Qa(new g.UH("Exit already started",{current:q.currentState}));var w=!1}else w=!0;if(!w)return!1;q.currentState=2;q.V=a;return!0}; Gt=function(q){if(q.currentState!==2)return!1;q.currentState=3;return!0}; TCc=function(q,a){var w=new Map;q=g.V(q);for(var G=q.next();!G.done;G=q.next()){G=G.value;if(G.layoutType==="LAYOUT_TYPE_MEDIA")var k="v";else G.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(k=oZ(G.clientMetadata,"metadata_type_linked_in_player_layout_type"),k=k==="LAYOUT_TYPE_ENDCAP"||k==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":k==="LAYOUT_TYPE_SURVEY"?"s":k==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):k="u";w.set(G.layoutId,k);if(k==="u"){var b={};k=a;G=(b.c=G.layoutId,b);k.j.d8("uct",G)}}q= a.yV();kG={contentCpn:q,l2:w};G={};w=(G.ct=w.size,G.c=q,G);a.j.d8("acc",w)}; $lV=function(){kG={contentCpn:"",l2:new Map}}; b4=function(q){var a;return(a=kG.l2.get(q))!=null?a:"u"}; Oe=function(q,a,w){q.j.d8(a,w);sxc(q)}; Fxc=function(q){var a=q.layoutId,w=q.h7;if(q.z8){var G={};Oe(q.s3,"slso",(G.ec=a,G.is=w,G.ctp=b4(a),G))}}; l4=function(q){var a=q.layoutId,w=q.h7;if(q.z8){var G={};Oe(q.s3,"slse",(G.ec=a,G.is=w,G.ctp=b4(a),G))}}; CvG=function(q){var a=q.layoutId,w=q.h7,G=q.s3;q.z8&&(q={},Oe(G,"sleo",(q.xc=a,q.is=w,q.ctp=b4(a),q)),sxc(G))}; ZPV=function(q){var a=q.cpn,w=q.s3;q=q.h7;var G=w.yV(),k={};Oe(w,"ce",(k.ec=a,k.ia=a!==G,k.r=kG.l2.has(a),k.is=q,k.ctp=b4(a),k))}; sxc=function(q){if(q.yV()!==kG.contentCpn){var a={};a=(a.c=kG.contentCpn,a);q.j.d8("ccm",a)}}; EpN=function(q){var a=q.cpn,w=q.s3;q=q.h7;var G=w.yV(),k={};Oe(w,"cx",(k.xc=a,k.ia=a!==G,k.r=kG.l2.has(a),k.is=q,k.ctp=b4(a),k))}; VVU=function(q){this.params=q;this.V=new Set}; Jym=function(q,a,w){if(!q.V.has(a)){q.V.add(a);var G={};q.params.S2.QN(a,Object.assign({},w,(G.p_ac=q.params.adCpn,G.p_isv=q.params.hh&&q.params.iy,G)))}}; N4=function(q,a,w){if(eG(q.params.S2.Q7.get(),!0)){var G=w.flush,k={};Jym(q,a,(k.cts=w.currentTimeSec,k.f=G,k))}}; mlm=function(q,a){this.s3=q;this.Q7=a}; YG=function(q){var a=[];if(q){q=g.V(Object.entries(q));for(var w=q.next();!w.done;w=q.next()){var G=g.V(w.value);w=G.next().value;G=G.next().value;G!==void 0&&(G=typeof G==="boolean"?""+ +G:(""+G).replace(/[:,=]/g,"_"),a.push(w+"."+G))}}return a.join(";")}; g.PY=function(q,a,w){a=a===void 0?{}:a;this.errorCode=q;this.details=a;this.severity=w===void 0?0:w}; Kf=function(q){return q===1||q===2}; dl=function(q,a){a=a===void 0?0:a;if(q instanceof g.PY)return q;q=q&&q instanceof Error?q:Error(""+q);Kf(a)?g.mQ(q):g.Qa(q);return new g.PY(a===1?"player.fatalexception":"player.exception",{name:""+q.name,message:""+q.message},a)}; QxN=function(q,a){function w(){var G=g.XU.apply(0,arguments);q.removeEventListener("playing",w);a.apply(null,g.Tf(G))} q.addEventListener("playing",w)}; Tt=function(){var q=g.aB("yt.player.utils.videoElement_");q||(q=g.dp("VIDEO"),g.qe("yt.player.utils.videoElement_",q));return q}; $G=function(q){var a=Tt();return!!(a&&a.canPlayType&&a.canPlayType(q))}; F5=function(q){if(/opus/.test(q)&&g.se&&!ZW("38")&&!g.py())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(q);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(q);if(/webm/.test(q)&&!TVU())return!1;q==='audio/mp4; codecs="mp4a.40.2"'&&(q='video/mp4; codecs="avc1.4d401f"');return!!$G(q)}; AyJ=function(q){try{var a=F5('video/mp4; codecs="avc1.42001E"')||F5('video/webm; codecs="vp9"');return(F5('audio/mp4; codecs="mp4a.40.2"')||F5('audio/webm; codecs="opus"'))&&(a||!q)||$G('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(w){return"html5.missingapi"}}; Cf=function(){var q=Tt();return!(!q.webkitSupportsPresentationMode||typeof q.webkitSetPresentationMode!=="function")}; ZT=function(){var q=Tt();try{var a=q.muted;q.muted=!a;return q.muted!==a}catch(w){}return!1}; xlN=function(){var q;return((q=navigator.connection)==null?void 0:q.type)||""}; g.Ee=function(){EH.apply(this,arguments)}; Vz=function(q,a,w,G,k,b,O,e){this.sampleRate=q===void 0?0:q;this.numChannels=a===void 0?0:a;this.spatialAudioType=w===void 0?"SPATIAL_AUDIO_TYPE_NONE":w;this.V=G===void 0?!1:G;this.W=k;this.Y=b;this.audioQuality=O===void 0?"AUDIO_QUALITY_UNKNOWN":O;this.U=e===void 0?!1:e}; ry_=function(q,a){jr(q,2,a.r9,J8,3);jr(q,3,a.innertubeRequest,Lxm,3);UR(q,4,a.onesieUstreamerConfig);UR(q,9,a.f6);jr(q,10,a.RF,me,3);jr(q,15,a.reloadPlaybackParams,BCc,3)}; MVU=function(q,a){jr(q,1,a.formatId,Qz,3);xv(q,2,a.startTimeMs);xv(q,3,a.durationMs);xv(q,4,a.Fa);xv(q,5,a.IN);jr(q,9,a.sET,npl,3);jr(q,11,a.zMT,A8,1);jr(q,12,a.SA,A8,1)}; h1G=function(q,a){XT(q,1,a.videoId);xv(q,2,a.lmt)}; npl=function(q,a){if(a.XL)for(var w=0;w>31));xv(q,16,a.zL);xv(q,17,a.detailedNetworkType);xv(q,18,a.tU);xv(q,19,a.D1);xv(q,21,a.veB);xv(q,23,a.vp);xv(q,28,a.Jl);xv(q,29,a.hP7);xv(q,34,a.visibility);w=a.playbackRate;if(w!==void 0){var G=new ArrayBuffer(4);(new Float32Array(G))[0]=w;w=(new Uint32Array(G))[0];if(w!==void 0)for(AO(q,285),QH(q,4),G=0;G<4;)q.view.setUint8(q.pos,w&255),w>>=8,q.pos+=1,G+=1}xv(q,36,a.cK); jr(q,38,a.mediaCapabilities,pey,3);xv(q,39,a.bOW);xv(q,40,a.Vy);xv(q,44,a.playerState);LZ(q,46,a.yZ);xv(q,48,a.Uz);xv(q,50,a.I5);xv(q,51,a.jN);xv(q,54,a.X1);if(a.AB)for(w=0;w>31));XT(q,2,a.message)}; z1K=function(q,a){xv(q,1,a.clientState);jr(q,2,a.nxB,tVN,1)}; uay=function(q,a){UR(q,1,a.ZTt);jr(q,2,a.z99,vpV,3);jr(q,3,a.coldStartInfo,z1K,3)}; IJy=function(q,a){xv(q,1,a.type);UR(q,2,a.value)}; opy=function(q,a){XT(q,1,a.hl);XT(q,12,a.deviceMake);XT(q,13,a.deviceModel);xv(q,16,a.clientName);XT(q,17,a.clientVersion);XT(q,18,a.osName);XT(q,19,a.osVersion)}; iPl=function(q,a){XT(q,1,a.name);XT(q,2,a.value)}; Lf=function(q,a){XT(q,1,a.url);if(a.hA)for(var w=0;w55?"60":a>49?"50":a>39?"48":"")));this.qualityLabel=q;this.V=N||"";this.primaries=Y||""}; h8=function(q,a){var w=Math.max(q,a);q=Math.min(q,a);a=HY[0];for(var G=0;G=Math.floor(b*16/9)*1.3||q>=b*1.3)return a;a=k}return"tiny"}; Ue=function(q,a,w){w=w===void 0?{}:w;this.id=q;this.mimeType=a;w.J2>0||(w.J2=16E3);Object.assign(this,w);q=g.V(this.id.split(";"));this.itag=q.next().value;this.V=q.next().value;this.containerType=cY(a);this.K7=pf[this.itag]||""}; X5=function(q){return q.K7==="9"||q.K7==="("||q.K7==="9h"||q.K7==="(h"}; rIc=function(q){return q.K7==="H"||q.K7==="h"}; jG=function(q){return q.K7==="9h"||q.K7==="(h"}; nmU=function(q){return!!q.vN&&!!q.vN.fairplay&&(q.K7==="("||q.K7==="(h"||q.K7==="A"||q.K7==="MEAC3")||oK&&!!q.vN&&q.K7==="1e"}; IK=function(q){return q.K7==="1"||q.K7==="1h"||oK&&q.K7==="1e"}; u4=function(q){return q.K7==="mac3"||q.K7==="meac3"||q.K7==="m"||q.K7==="i"}; t8=function(q){return q.K7==="MAC3"||q.K7==="MEAC3"||q.K7==="M"||q.K7==="I"}; g.vY=function(q){return q.containerType===1}; MgN=function(q){return q.K7==="("||q.K7==="(h"||q.K7==="H"||oK&&q.K7==="1e"}; i4=function(q){return q.mimeType==="application/x-mpegURL"}; g.WY=function(q,a){return{itag:+q.itag,lmt:a?0:q.lastModified,xtags:q.V||""}}; hcf=function(q){var a=navigator.mediaCapabilities;if(a==null||!a.decodingInfo||q.K7==="f")return Promise.resolve();var w={type:q.audio&&q.video?"file":"media-source"};q.video&&(w.video={contentType:q.mimeType,width:q.video.width||640,height:q.video.height||360,bitrate:q.J2*8||1E6,framerate:q.video.fps||30});q.audio&&(w.audio={contentType:q.mimeType,channels:""+(q.audio.numChannels||2),bitrate:q.J2*8||128E3,samplerate:q.audio.sampleRate||44100});return a.decodingInfo(w).then(function(G){q.U=G})}; DT=function(q){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(q)}; RK=function(q){return/(vp9|vp09|vp8|avc1|av01)/.test(q)}; yz=function(q){return q.includes("vtt")||q.includes("text/mp4")}; cY=function(q){return q.indexOf("/mp4")>=0?1:q.indexOf("/webm")>=0?2:q.indexOf("/x-flv")>=0?3:q.indexOf("/vtt")>=0?4:0}; q7=function(q,a,w,G,k,b,O){var e=new Vz;a in g.SG||(a="small");a==="light"&&(a="tiny");G&&k?(k=Number(k),G=Number(G)):(k=g.SG[a],G=Math.round(k*16/9));b=new ff(G,k,0,null,void 0,a,b,O);q=unescape(q.replace(/"/g,'"'));return new Ue(w,q,{audio:e,video:b})}; gD=function(q){var a="id="+q.id;q.video&&(a+=", res="+q.video.qualityLabel);var w,G;return a+", byterate=("+((w=q.zB)==null?void 0:w.toFixed(0))+", "+((G=q.J2)==null?void 0:G.toFixed(0))+")"}; aY=function(q,a){return{start:function(w){return q[w]}, end:function(w){return a[w]}, length:q.length}}; Sxm=function(q,a,w){for(var G=[],k=[],b=0;b=a)return w}catch(G){}return-1}; kj=function(q,a){return GL(q,a)>=0}; fRl=function(q,a){if(!q)return NaN;a=GL(q,a);return a>=0?q.start(a):NaN}; bw=function(q,a){if(!q)return NaN;a=GL(q,a);return a>=0?q.end(a):NaN}; O2=function(q){return q&&q.length?q.end(q.length-1):NaN}; lw=function(q){return O2(q)>0}; eN=function(q,a){q=bw(q,a);return q>=0?q-a:0}; N7=function(q,a,w){for(var G=[],k=[],b=0;bw||(G.push(Math.max(a,q.start(b))-a),k.push(Math.min(w,q.end(b))-a));return aY(G,k)}; Yj=function(q,a,w,G){g.ya.call(this);var k=this;this.VL=q;this.start=a;this.end=w;this.isActive=G;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.Od={error:function(){!k.t2()&&k.isActive&&k.publish("error",k)}, updateend:function(){!k.t2()&&k.isActive&&k.publish("updateend",k)}}; this.VL.Ie(this.Od);this.B8=this.isActive}; KW=function(q,a,w,G,k,b){g.ya.call(this);var O=this;this.M1=q;this.pW=a;this.id=w;this.containerType=G;this.K7=k;this.iy=b;this.cG=this.Qe=this.Ap=null;this.qC=!1;this.appendWindowStart=this.timestampOffset=0;this.QB=aY([],[]);this.eb=!1;this.qt=[];this.jO=Pz?[]:void 0;this.Ia=function(N){return O.publish(N.type,O)}; var e;if((e=this.M1)==null?0:e.addEventListener)this.M1.addEventListener("updateend",this.Ia),this.M1.addEventListener("error",this.Ia)}; dD=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; TL=function(q,a){this.GZ=q;this.V=a===void 0?!1:a;this.U=!1}; s2=function(q,a,w){w=w===void 0?!1:w;g.c.call(this);this.mediaElement=q;this.w8=a;this.isView=w;this.L=0;this.Y=!1;this.D=!0;this.J=0;this.callback=null;this.S=!1;this.w8||(this.pW=this.mediaElement.cq());this.events=new g.Ee(this);g.p(this,this.events);this.W=new TL(this.w8?window.URL.createObjectURL(this.w8):this.pW.webkitMediaSourceURL,!0);q=this.w8||this.pW;Vv(this.events,q,["sourceopen","webkitsourceopen"],this.G4Q);Vv(this.events,q,["sourceclose","webkitsourceclose"],this.cST);this.X={updateend:this.g7}}; Hjm=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; cIV=function(q,a){Fb(q)?g.VP(function(){a(q)}):q.callback=a}; pAK=function(q,a,w){if(CW){var G;Zh(q.mediaElement,{l:"mswssb",sr:(G=q.mediaElement.aW)==null?void 0:G.Vp()},!1);a.Ie(q.X,q);w.Ie(q.X,q)}q.V=a;q.U=w;g.p(q,a);g.p(q,w)}; E2=function(q){return!!q.V||!!q.U}; Fb=function(q){try{return Vy(q)==="open"}catch(a){return!1}}; Vy=function(q){if(q.w8)return q.w8.readyState;switch(q.pW.webkitSourceState){case q.pW.SOURCE_OPEN:return"open";case q.pW.SOURCE_ENDED:return"ended";default:return"closed"}}; JB=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; Ukc=function(q){Fb(q)&&(q.w8?q.w8.endOfStream():q.pW.webkitSourceEndOfStream(q.pW.EOS_NO_ERROR))}; XAN=function(q,a,w,G){if(!q.V||!q.U)return null;var k=q.V.isView()?q.V.VL:q.V,b=q.U.isView()?q.U.VL:q.U,O=new s2(q.mediaElement,q.w8,!0);O.W=q.W;pAK(O,new Yj(k,a,w,G),new Yj(b,a,w,G));Fb(q)||q.V.u5(q.V.g$());return O}; jAl=function(q){var a;(a=q.V)==null||a.WP();var w;(w=q.U)==null||w.WP();q.D=!1}; m5=function(){var q=this;this.oh=this.aj=ZKJ;this.promise=new g.LT(function(a,w){q.aj=a;q.oh=w})}; Qy=function(){g.c.call(this);this.TT=!1;this.GZ=null;this.X=this.L=!1;this.Y=new g.PO;this.aW=null;g.p(this,this.Y)}; AB=function(q){q=q.C$();return q.length<1?NaN:q.end(q.length-1)}; omN=function(q){!q.U&&Hjm()&&(q.W?q.W.then(function(){return omN(q)}):q.dh()||(q.U=q.jD()))}; IRc=function(q){q.U&&(q.U.dispose(),q.U=void 0)}; Zh=function(q,a,w){var G;((G=q.aW)==null?0:G.TZ())&&q.aW.d8("rms",a,w===void 0?!1:w)}; u9y=function(q,a,w){q.isPaused()||q.getCurrentTime()>a||w>10||(q.play(),g.ee(function(){u9y(q,q.getCurrentTime(),w+1)},500))}; tgU=function(q,a){q.GZ&&q.GZ.equals(a)||(q.GZ&&q.GZ.dispose(),q.GZ=a)}; xj=function(q){return eN(q.xe(),q.getCurrentTime())}; vmm=function(q,a){if(q.rl()===0||q.hasError())return!1;var w=q.getCurrentTime()>0;return a>=0&&(q=q.C$(),q.length||!w)?kj(q,a):w}; LW=function(q){q.dh()&&(q.aW&&q.aW.z6("rs_s"),X4&&q.getCurrentTime()>0&&q.seekTo(0),q.Nd(),q.load(),tgU(q,null));delete q.W}; Bz=function(q){switch(q.Ne()){case 2:return"progressive.net.retryexhausted";case 3:return q=q.Jp(),(q==null?0:q.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||zcN&&(q==null?0:q.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.rD=function(q,a,w){this.lT=a===void 0?null:a;this.seekSource=w===void 0?null:w;this.state=q||64}; nW=function(q,a,w){w=w===void 0?!1:w;return ij_(q,a.getCurrentTime(),(0,g.Zj)(),xj(a),w)}; M7=function(q,a,w,G){if(!(a===q.state&&w===q.lT&&G===q.seekSource||a!==void 0&&(a&128&&!w||a&2&&a&16))){var k;if(k=a)k=a||q.state,k=!!(k&16||k&32);q=new g.rD(a,w,k?G?G:q.seekSource:null)}return q}; hB=function(q,a,w){return M7(q,q.state|a,null,w===void 0?null:w)}; SN=function(q,a){return M7(q,q.state&~a,null,null)}; fW=function(q,a,w,G){return M7(q,(q.state|a)&~w,null,G===void 0?null:G)}; g.v=function(q,a){return!!(q.state&a)}; g.Hz=function(q,a){return a.state===q.state&&a.lT===q.lT}; cz=function(q){return q.isPlaying()&&!g.v(q,16)&&!g.v(q,32)}; pW=function(q){return g.v(q,128)?-1:g.v(q,2)?0:g.v(q,2048)?3:g.v(q,64)?-1:g.v(q,1)&&!g.v(q,32)?3:g.v(q,8)?1:g.v(q,4)?2:-1}; Xb=function(q,a,w,G,k,b,O,e,N,Y,P,K,d,T,F,J,Q){g.c.call(this);var B=this;this.yx=q;this.slot=a;this.layout=w;this.p7=G;this.q1=k;this.n7=b;this.RW=O;this.j1=e;this.Lk=N;this.Pc=Y;this.position=K;this.L=d;this.Q7=T;this.z2=F;this.bT=J;this.context=Q;this.SZ=!0;this.D=!1;this.mM="not_rendering";this.U=!1;this.W=new aK;q=oZ(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.C7=new YJ(w.d$,this.p7,q,w.layoutId);var L;q=((L=U2(this))==null?void 0:L.progressCommands)||[];this.Y=new tRf(N, q,w.layoutId,function(){return B.bC()}); this.V=new VVU({adCpn:this.layout.layoutId,S2:Q.S2,hh:this.z2,iy:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})}; jN=function(q){return{layoutId:q.hd(),h7:q.z2,s3:q.n7.get(),z8:q.jo()}}; oY=function(q,a){return a.layoutId!==q.layout.layoutId?(q.yx.BJ(q.slot,a,new Xv("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+q.layout.layoutId+("and LayoutType: "+q.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; IY=function(q){q.mM="rendering_start_requested";q.Pc(-1)}; U2=function(q){return oZ(q.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; Wzf=function(q){Gj("Received layout exit signal when not in layout exit flow.",q.slot,q.layout)}; DkJ=function(q){var a;return((a=uw(q.n7.get(),2))==null?void 0:a.clientPlaybackNonce)||""}; tB=function(q,a){switch(a){case "normal":q.xl("complete");break;case "skipped":q.xl("skip");break;case "abandoned":FZ(q.C7,"impression")&&q.xl("abandon")}}; vz=function(q,a){q.D||(a=new g.km(a.state,new g.rD),q.D=!0);return a}; zL=function(q,a){Rm(a)?q.Pc(1):g.Ox(a,4)&&!g.Ox(a,2)&&q.s0();bc(a,4)<0&&!(bc(a,2)<0)&&q.mN()}; Rcm=function(q){q.position===0&&(q.j1.get(),q=oZ(q.layout.clientMetadata,"metadata_type_ad_placement_config").kind,q={adBreakType:iw(q)},E3("ad_bl"),g.VI(q))}; Wz=function(q,a){Tk(q.C7,a,!q.U)}; q3J=function(q){var a;return(((a=U2(q))==null?void 0:a.progressCommands)||[]).findIndex(function(w){return!!g.I(w==null?void 0:w.command,yIc)})!==-1}; Dh=function(q,a){var w=oZ(q.clientMetadata,"metadata_type_eligible_for_ssap");return w===void 0?(Gj("Expected SSAP eligibility in PlayerBytes factory",q),!1):a.jo(w)}; RY=function(q,a){if(!Mh(a.get(),"html5_ssap_pass_transition_reason"))return 3;switch(q){case "skipped":case "muted":case "user_input_submitted":return 3;case "normal":return 2;case "error":return Gj("Unexpected error from cPACF during rendering"),6;case "abandoned":return 5;case "user_cancelled":case "unknown":return Gj("Unexpected layout exit reason",void 0,void 0,{layoutExitReason:q}),3;default:Y1(q,"unknown layoutExitReason")}}; g4V=function(q){Gj("getExitReason: unexpected reason",void 0,void 0,{reason:q})}; yy=function(q,a){if(Mh(a.get(),"html5_ssap_pass_transition_reason"))switch(q){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return g4V(q),"abandoned";case 3:case 1:return g4V(q),"error";default:Y1(q,"unexpected transition reason")}else switch(q){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return Gj("getExitReason: unexpected reason",void 0,void 0,{reason:q}),"error";default:Y1(q,"unexpected transition reason")}}; g.qx=function(q,a,w){mu(q,w)||Af(q,a,w);mu(q,"video_to_ad")||Af(q,a,"video_to_ad");mu(q,"ad_to_video")||Af(q,a,"ad_to_video");mu(q,"ad_to_ad")||Af(q,a,"ad_to_ad")}; gv=function(q,a,w,G,k,b,O,e,N,Y,P,K,d,T,F,J,Q,B){Xb.call(this,q,a,w,G,k,b,O,e,Y,P,K,d,T,F,J,Q,B);var L=this;this.S1=N;this.aH=K;this.Pv=!0;this.RQ=this.Uj=0;this.YI=SU(function(){Fxc(jN(L));L.yx.Bq(L.slot,L.layout)}); this.ws=SU(function(){CvG(jN(L));L.mM!=="rendering_stop_requested"&&L.aH(L);L.layoutExitReason?L.yx.G0(L.slot,L.layout,L.layoutExitReason):Wzf(L)}); this.timer=new g.fT(200);this.timer.listen("tick",function(){L.EQ()}); g.p(this,this.timer)}; wv=function(q){q.RQ=Date.now();aX(q,q.Uj);q.timer.start()}; apG=function(q){q.Uj=q.bC();q.vz(q.Uj/1E3,!0);aX(q,q.Uj)}; aX=function(q,a){a={current:a/1E3,duration:q.bC()/1E3};q.S1.get().DN("onAdPlaybackProgress",a)}; GH=function(q){gv.call(this,q.yx,q.slot,q.fO,q.p7,q.q1,q.n7,q.RW,q.j1,q.S1,q.Lk,q.Pc,q.aH,q.Bc,q.NN,q.Q7,q.z2,q.bT,q.context)}; kb=function(q){gv.call(this,q.yx,q.slot,q.fO,q.p7,q.q1,q.n7,q.RW,q.j1,q.S1,q.Lk,q.Pc,q.aH,q.Bc,q.NN,q.Q7,q.z2,q.bT,q.context)}; b3=function(){kb.apply(this,arguments)}; wtf=function(q){return Dh(q.slot,q.Q7.get())?new b3(q):new GH(q)}; ev=function(q){Xb.call(this,q.callback,q.slot,q.fO,q.p7,q.q1,q.n7,q.RW,q.j1,q.Lk,q.Pc,q.aH,q.Bc,q.NN,q.Q7,q.z2,q.bT,q.context);var a=this;this.adCpn="";this.z$=this.nN=0;this.YI=SU(function(){Fxc(jN(a));a.yx.Bq(a.slot,a.layout)}); this.ws=SU(function(){CvG(jN(a));a.mM!=="rendering_stop_requested"&&a.aH(a);a.layoutExitReason?a.yx.G0(a.slot,a.layout,a.layoutExitReason):Wzf(a)}); this.by=q.by;this.oa=q.oa;this.ya=q.ya;this.S1=q.S1;this.TN=q.TN;this.aH=q.aH;if(!this.jo()){Mh(this.Q7.get(),"html5_disable_media_load_timeout")||(this.oV=new g.o1(function(){a.ER("load_timeout",new Xv("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); q=Of(this.Q7.get());var w=l3(this.Q7.get());q&&w&&(this.w5=new g.o1(function(){var G=oZ(a.layout.clientMetadata,"metadata_type_preload_player_vars");G&&a.oa.get().j.preloadVideoByPlayerVars(G,2,300)}))}}; kzm=function(q,a){var w=oZ(a.clientMetadata,"metadata_type_ad_video_id"),G=oZ(a.clientMetadata,"metadata_type_legacy_info_card_vast_extension");w&&G&&q.TN.get().j.B().L7.add(w,{dH:G});(a=oZ(a.clientMetadata,"metadata_type_sodar_extension_data"))&&GXy(q.by.get(),a);GzU(q.RW.get(),!1)}; bsK=function(q){GzU(q.RW.get(),!0);var a;((a=q.shrunkenPlayerBytesConfig)==null?0:a.shouldRequestShrunkenPlayerBytes)&&q.RW.get().gF(!1)}; Osm=function(q){return new Nx(q)}; Yb=function(){ev.apply(this,arguments)}; Nx=function(){Yb.apply(this,arguments)}; lpl=function(q){return wtf(Object.assign({},q,{yx:q.callback,Pc:function(){}}))}; ewK=function(q){return new ev(Object.assign({},q,{Pc:function(a){q.S1.get().DN("onAdIntroStateChange",a)}}))}; NJm=function(q){function a(w){q.S1.get().Rm(w)} return Dh(q.slot,q.Q7.get())?Osm(Object.assign({},q,{Pc:a})):new ev(Object.assign({},q,{Pc:a}))}; Pk=function(q){for(var a=q.fO,w=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],G=g.V(Pb()),k=G.next();!k.done;k=G.next())w.push(k.value);if(ft(a,{FC:w,CT:["LAYOUT_TYPE_MEDIA_BREAK"]}))return lpl(q);a=q.fO;w=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];G=g.V(Pb());for(k=G.next();!k.done;k=G.next())w.push(k.value);if(ft(a,{FC:w,CT:["LAYOUT_TYPE_MEDIA"]}))return co(q.fO.clientMetadata,"metadata_type_ad_intro")?ewK(q):NJm(q)}; PqU=function(q){var a=oZ(q.clientMetadata,"metadata_type_ad_placement_config").kind,w=oZ(q.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:q.layoutId,adType:Y3_(w),adBreakType:iw(a)}}; iw=function(q){switch(q){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"}}; Y3_=function(q){switch(q){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; KuV=function(q){try{return new K8(q.Xk,q.slot,q.layout,q.HN,q.Gh,q.n7,q.W5,q.oa,q.r$,q.RW,q.Ee2,q)}catch(a){}}; K8=function(q,a,w,G,k,b,O,e,N,Y,P,K){g.c.call(this);this.Xk=q;this.slot=a;this.layout=w;this.HN=G;this.Gh=k;this.n7=b;this.W5=O;this.oa=e;this.r$=N;this.RW=Y;this.params=K;this.SZ=!0;q=Pk(P);if(!q)throw Error("Invalid params for sublayout");this.xF=q}; dZc=function(){this.V=1;this.U=new aK}; dv=function(q,a,w,G,k,b,O,e,N,Y,P,K,d,T){g.c.call(this);this.callback=q;this.n7=a;this.W5=w;this.oa=G;this.RW=k;this.d4=b;this.j1=O;this.Qx=e;this.slot=N;this.layout=Y;this.HN=P;this.nE=K;this.r$=d;this.Q7=T;this.SZ=!0;this.kZ=!1;this.xD=[];this.fK=-1;this.KH=!1;this.Fb=new dZc}; TJf=function(q){var a;return(a=q.layout.Ks)!=null?a:oZ(q.layout.clientMetadata,"metadata_type_sub_layouts")}; TH=function(q){return{s3:q.n7.get(),h7:!1,z8:q.jo()}}; $ZN=function(q,a,w){if(q.Qi()===q.xD.length-1){var G,k;Gj("Unexpected skip requested during the last sublayout",(G=q.Cu())==null?void 0:G.bF(),(k=q.Cu())==null?void 0:k.g8(),{requestingSlot:a,requestingLayout:w})}}; sSj=function(q,a,w){return w.layoutId!==$b(q,a,w)?(Gj("onSkipRequested for a PlayerBytes layout that is not currently active",q.bF(),q.g8()),!1):!0}; FuN=function(q){q.Qi()===q.xD.length-1&&Gj("Unexpected skip with target requested during the last sublayout")}; CqU=function(q,a,w){return w.renderingContent===void 0&&w.layoutId!==$b(q,a,w)?(Gj("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",q.bF(),q.g8(),{requestingSlot:a,requestingLayout:w}),!1):!0}; Zsc=function(q,a,w,G){var k=oZ(a.g8().clientMetadata,"metadata_type_ad_pod_skip_target");if(k&&k>0&&k0)){Gj("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",q.slot,q.layout,{indexToPlay:a,layoutId:q.layout.layoutId});break a}q.fK=a;a=q.Cu();if(q.Qi()>0&&!q.jo()){var w=q.j1.get();w.U=!1;var G={};w.V&&w.videoId&&(G.cttAuthInfo={token:w.V,videoId:w.videoId});Jf("ad_to_ad",G)}w=g.I(a.g8().renderingContent,zk);if(w==null?0: w.isEligibleToBeSkippedWhenNoEngagementOnLayoutId){var k;w=!((k=q.d4.get().Ky8.get(w.isEligibleToBeSkippedWhenNoEngagementOnLayoutId))!=null&&k)}else w=!1;w?sf(q,q.Qi()+1):q.R6(a)}}; Za=function(q){dv.call(this,q.Xk,q.n7,q.W5,q.oa,q.RW,q.d4,q.j1,q.Qx,q.slot,q.layout,q.HN,q.nE,q.r$,q.Q7)}; Jff=function(q){(q=q.Cu())&&q.zp()}; Ef=function(q){dv.call(this,q.Xk,q.n7,q.W5,q.oa,q.RW,q.d4,q.j1,q.Qx,q.slot,q.layout,q.HN,q.nE,q.r$,q.Q7);this.HJ=void 0}; mZf=function(q,a){q.kP()&&!Gt(q.Fb.U)||q.callback.G0(q.slot,q.layout,a)}; VZ=function(q){return Mh(q.Q7.get(),"html5_ssap_pass_transition_reason")}; QSG=function(q,a,w){a.Xj().currentState<2&&(w=yy(w,q.Q7),a.m6(a.g8(),w));w=a.Xj().V;q.nY(q.slot,a.g8(),w)}; Afl=function(q,a){if(q.Fb.U.currentState<2){var w=yy(a,q.Q7);w==="error"?q.callback.BJ(q.slot,q.layout,new Xv("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:a},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):C8(q.nE,q.layout,w)}}; J9=function(q,a,w){a.Xj().currentState>=2||(a.m6(a.g8(),w),Gt(a.Xj())&&(PT(q.Qx,q.slot,a.g8(),w),q.HJ=void 0))}; xZV=function(q,a){q.Fb.V===2&&a!==q.yV()&&Gj("onClipEntered: unknown cpn",q.slot,q.layout,{cpn:a})}; Luc=function(q,a){var w=q.Cu();if(w){var G=w.g8().layoutId,k=q.Qi()+1;q.kP()?J9(q,w,a):w.m6(w.g8(),a);k>=0&&kk&&O.k5(P,k-G);return P}; cf_=function(q,a,w){var G=oZ(a.clientMetadata,"metadata_type_sodar_extension_data");if(G)try{GXy(w,G)}catch(k){Gj("Unexpected error when loading Sodar",q,a,{error:k})}}; ptl=function(q,a,w,G,k,b,O){rv(q,a,new g.km(w,new g.rD),G,k,O,!1,b)}; rv=function(q,a,w,G,k,b,O,e){O=O===void 0?!0:O;Rm(w)&&yY(k,0,null)&&(!FZ(q,"impression")&&e&&e(),q.xl("impression"));FZ(q,"impression")&&(g.Ox(w,4)&&!g.Ox(w,2)&&q.SG("pause"),bc(w,4)<0&&!(bc(w,2)<0)&&q.SG("resume"),g.Ox(w,16)&&k>=.5&&q.SG("seek"),O&&g.Ox(w,2)&&n8(q,w.state,a,G,k,b))}; n8=function(q,a,w,G,k,b,O,e,N){FZ(q,"impression")&&(b?(b=k-G,b=b>=-1&&b<=2):b=Math.abs(G-k)<=1,Mx(q,a,b?G:k,w,G,O,e&&b),b&&!N&&q.xl("complete"))}; Mx=function(q,a,w,G,k,b,O){$J(q,w*1E3,O);k<=0||w<=0||(a==null?0:g.v(a,16))||(a==null?0:g.v(a,32))||(yY(w,k*.25,G)&&(b&&!FZ(q,"first_quartile")&&b("first"),q.xl("first_quartile")),yY(w,k*.5,G)&&(b&&!FZ(q,"midpoint")&&b("second"),q.xl("midpoint")),yY(w,k*.75,G)&&(b&&!FZ(q,"third_quartile")&&b("third"),q.xl("third_quartile")))}; UZ_=function(q,a){FZ(q,"impression")&&q.SG(a?"fullscreen":"end_fullscreen")}; Xty=function(q){FZ(q,"impression")&&q.SG("clickthrough")}; jSJ=function(q){q.SG("active_view_measurable")}; o4l=function(q){FZ(q,"impression")&&!FZ(q,"seek")&&q.SG("active_view_fully_viewable_audible_half_duration")}; Ip_=function(q){FZ(q,"impression")&&!FZ(q,"seek")&&q.SG("active_view_viewable")}; u2J=function(q){FZ(q,"impression")&&!FZ(q,"seek")&&q.SG("audio_audible")}; t3_=function(q){FZ(q,"impression")&&!FZ(q,"seek")&&q.SG("audio_measurable")}; v4G=function(q,a,w,G,k,b,O,e,N,Y,P,K,d){this.callback=q;this.slot=a;this.layout=w;this.W5=G;this.C7=k;this.RW=b;this.xX=O;this.q1=e;this.by=N;this.Q7=Y;this.p7=P;this.n7=K;this.ya=d;this.Pv=!0;this.iK=this.mM=null;this.adCpn=void 0;this.V=!1}; zwN=function(q,a,w){var G;Bk(q.p7.get(),"ads_qua","cpn."+oZ(q.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((G=uw(q.n7.get(),2))==null?void 0:G.clientPlaybackNonce)+";qt."+a+";clr."+w)}; isJ=function(q,a){var w,G;Bk(q.p7.get(),"ads_imp","cpn."+oZ(q.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((w=uw(q.n7.get(),2))==null?void 0:w.clientPlaybackNonce)+";clr."+a+";skp."+!!g.I((G=oZ(q.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:G.skipOrPreviewRenderer,h9))}; Sv=function(q){return{enterMs:oZ(q.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:oZ(q.clientMetadata,"metadata_type_layout_exit_ms")}}; f8=function(q,a,w,G,k,b,O,e,N,Y,P,K,d,T){QZ.call(this,q,a,w,G,k,O,e,N,Y,K);this.xX=b;this.by=P;this.q1=d;this.Q7=T;this.iK=this.mM=null}; WuJ=function(q,a){var w;Bk(q.p7.get(),"ads_imp","acpn."+((w=uw(q.n7.get(),2))==null?void 0:w.clientPlaybackNonce)+";clr."+a)}; DZ_=function(q,a,w){var G;Bk(q.p7.get(),"ads_qua","cpn."+oZ(q.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((G=uw(q.n7.get(),2))==null?void 0:G.clientPlaybackNonce)+";qt."+a+";clr."+w)}; Hk=function(q,a,w,G,k,b,O,e,N,Y,P,K,d,T,F,J,Q,B,L,M,H,X){this.r$=q;this.HN=a;this.nE=w;this.n7=G;this.W5=k;this.RW=b;this.d4=O;this.p7=e;this.xX=N;this.wz=Y;this.q1=P;this.by=K;this.oa=d;this.ya=T;this.j1=F;this.S1=J;this.Lk=Q;this.TN=B;this.Q7=L;this.V=M;this.context=H;this.bT=X}; ck=function(q,a,w,G,k,b,O,e,N,Y,P,K,d,T,F,J,Q,B,L){this.r$=q;this.HN=a;this.nE=w;this.p7=G;this.q1=k;this.by=b;this.oa=O;this.n7=e;this.RW=N;this.d4=Y;this.ya=P;this.j1=K;this.S1=d;this.Lk=T;this.TN=F;this.Q7=J;this.W5=Q;this.context=B;this.bT=L}; Rwm=function(q,a,w,G){R9.call(this,"survey-interstitial",q,a,w,G)}; p8=function(q,a,w,G,k){wZ.call(this,w,q,a,G);this.p7=k;q=oZ(a.clientMetadata,"metadata_type_ad_placement_config");this.C7=new YJ(a.d$,k,q,a.layoutId)}; Uf=function(q){return Math.round(q.width)+"x"+Math.round(q.height)}; jv=function(q,a,w){w=w===void 0?Xp:w;w.widthq.width*q.height*.2)return{BV:3,C5:501,errorMessage:"ad("+Uf(w)+") to container("+Uf(q)+") ratio exceeds limit."};if(w.height>q.height/3-a)return{BV:3,C5:501,errorMessage:"ad("+Uf(w)+") covers container("+Uf(q)+") center."}}; yfK=function(q,a){var w=oZ(q.clientMetadata,"metadata_type_ad_placement_config");return new YJ(q.d$,a,w,q.layoutId)}; oX=function(q){return oZ(q.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")}; IX=function(q,a,w,G){R9.call(this,"invideo-overlay",q,a,w,G);this.interactionLoggingClientData=G}; u3=function(q,a,w,G,k,b,O,e,N,Y,P,K){wZ.call(this,b,q,a,k);this.p7=w;this.Y=O;this.RW=e;this.Lk=N;this.Q7=Y;this.L=P;this.D=K;this.C7=yfK(a,w)}; qRc=function(){var q=["metadata_type_invideo_overlay_ad_renderer"];Pb().forEach(function(a){q.push(a)}); return{FC:q,CT:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; t9=function(q,a,w,G,k,b,O,e,N,Y,P,K,d){wZ.call(this,b,q,a,k);this.p7=w;this.Y=O;this.S=e;this.RW=N;this.Lk=Y;this.Q7=P;this.L=K;this.D=d;this.C7=yfK(a,w)}; gvj=function(){for(var q=["metadata_type_invideo_overlay_ad_renderer"],a=g.V(Pb()),w=a.next();!w.done;w=a.next())q.push(w.value);return{FC:q,CT:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; vk=function(q){this.RW=q;this.V=!1}; aQl=function(q,a,w){R9.call(this,"survey",q,{},a,w)}; zH=function(q,a,w,G,k,b,O){wZ.call(this,w,q,a,G);this.Y=k;this.RW=b;this.Q7=O}; wVJ=function(q,a,w,G,k,b,O,e,N,Y){this.F3=q;this.RW=a;this.p7=w;this.Y=G;this.q1=k;this.U=b;this.W=O;this.Lk=e;this.Q7=N;this.V=Y}; Gpf=function(q,a,w,G,k,b,O,e,N,Y){this.F3=q;this.RW=a;this.p7=w;this.Y=G;this.q1=k;this.U=b;this.W=O;this.Lk=e;this.Q7=N;this.V=Y}; i3=function(q,a,w,G,k,b,O,e,N,Y){jH.call(this,q,a,w,G,k,b,O,N);this.cF=e;this.n7=Y}; kpm=function(){var q=e1_();q.FC.push("metadata_type_ad_info_ad_metadata");return q}; bZj=function(q,a,w,G,k,b,O){this.F3=q;this.RW=a;this.p7=w;this.U=G;this.cF=k;this.V=b;this.n7=O}; OZV=function(q,a,w,G,k,b,O,e){this.F3=q;this.RW=a;this.p7=w;this.U=G;this.cF=k;this.V=b;this.Q7=O;this.n7=e}; Wk=function(q,a){this.slotId=a;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=q(this.triggerType)}; Da=function(q,a){this.adPodIndex=q;this.V=a.length;this.adBreakLengthSeconds=a.reduce(function(G,k){return G+k},0); var w=0;for(q+=1;q0}; XP=function(q){return!!(q.Xp&&q.slot&&q.layout)}; jQ=function(q){var a,w=(a=q.config)==null?void 0:a.adPlacementConfig;q=q.renderer;return!(!w||w.kind==null||!q)}; Vrl=function(q){if(!hz(q.adLayoutMetadata))return!1;q=q.renderingContent;return g.I(q,zk)||g.I(q,Wb)||g.I(q,Ev_)||g.I(q,tQ)||g.I(q,vb)?!0:!1}; oP=function(q){return q.playerVars!==void 0&&q.pings!==void 0&&q.externalVideoId!==void 0}; WZ=function(q){if(!hz(q.adLayoutMetadata))return!1;q=q.renderingContent;var a=g.I(q,IP);return a?um(a):(a=g.I(q,tz))?oP(a):(a=g.I(q,vZ))?a.playerVars!==void 0:(a=g.I(q,zk))?a.durationMilliseconds!==void 0:g.I(q,z0)||g.I(q,im)?!0:!1}; um=function(q){q=(q.sequentialLayouts||[]).map(function(a){return g.I(a,Dq)}); return q.length>0&&q.every(WZ)}; y5=function(q){return hz(q.adLayoutMetadata)?(q=g.I(q.renderingContent,RP))&&q.pings?!0:!1:!1}; LKy=function(q){if(!hz(q.adLayoutMetadata))return!1;if(g.I(q.renderingContent,JOj)||g.I(q.renderingContent,mjK))return!0;var a=g.I(q.renderingContent,qv);return g.I(q.renderingContent,gS)||g.I(a==null?void 0:a.sidePanel,Qem)||g.I(a==null?void 0:a.sidePanel,AON)||g.I(a==null?void 0:a.sidePanel,xjV)?!0:!1}; hxj=function(q){var a;(a=!q)||(a=q.adSlotMetadata,a=!((a==null?void 0:a.slotId)!==void 0&&(a==null?void 0:a.slotType)!==void 0));if(a||!(BdK(q)||q.slotEntryTrigger&&q.slotFulfillmentTriggers&&q.slotExpirationTriggers))return!1;var w;q=(w=q.fulfillmentContent)==null?void 0:w.fulfilledLayout;return(w=g.I(q,Dq))?WZ(w):(w=g.I(q,aN))?LKy(w):(w=g.I(q,rOU))?Vrl(w):(w=g.I(q,nvl))?CHU(w):(w=g.I(q,Mrm))?hz(w.adLayoutMetadata)?g.I(w.renderingContent,SQ)?!0:!1:!1:(q=g.I(q,wS))?y5(q):!1}; BdK=function(q){var a;q=g.I((a=q.fulfillmentContent)==null?void 0:a.fulfilledLayout,aN);var w;return q&&((w=q.adLayoutMetadata)==null?void 0:w.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&q.layoutExitNormalTriggers===void 0}; SRK=function(q){var a;return(q==null?void 0:(a=q.adSlotMetadata)==null?void 0:a.slotType)==="SLOT_TYPE_IN_PLAYER"}; HZU=function(q,a){var w;if((w=q.questions)==null||!w.length||!q.playbackCommands||(a===void 0||!a)&&q.questions.length!==1)return!1;q=g.V(q.questions);for(a=q.next();!a.done;a=q.next()){a=a.value;var G=w=void 0,k=((w=g.I(a,GK))==null?void 0:w.surveyAdQuestionCommon)||((G=g.I(a,kB))==null?void 0:G.surveyAdQuestionCommon);if(!fQU(k))return!1}return!0}; cOj=function(q){q=((q==null?void 0:q.playerOverlay)||{}).instreamSurveyAdRenderer;var a;if(q)if(q.playbackCommands&&q.questions&&q.questions.length===1){var w,G=((a=g.I(q.questions[0],GK))==null?void 0:a.surveyAdQuestionCommon)||((w=g.I(q.questions[0],kB))==null?void 0:w.surveyAdQuestionCommon);a=fQU(G)}else a=!1;else a=!1;return a}; fQU=function(q){if(!q)return!1;q=g.I(q.instreamAdPlayerOverlay,bU);var a=g.I(q==null?void 0:q.skipOrPreviewRenderer,h9),w=g.I(q==null?void 0:q.adInfoRenderer,Om);return(g.I(q==null?void 0:q.skipOrPreviewRenderer,lU)||a)&&w?!0:!1}; pVN=function(q){return q.linearAds!=null&&hz(q.adLayoutMetadata)}; Ujj=function(q){return q.linearAd!=null&&q.adVideoStart!=null}; XVc=function(q){if(isNaN(Number(q.timeoutSeconds))||!q.text||!q.ctaButton||!g.I(q.ctaButton,g.e9)||!q.brandImage)return!1;var a;return q.backgroundImage&&g.I(q.backgroundImage,Nv)&&((a=g.I(q.backgroundImage,Nv))==null?0:a.landscape)?!0:!1}; YB=function(q,a,w,G,k,b,O,e){g.c.call(this);this.Q7=q;this.V=a;this.U=G;this.n7=k;this.Y=b;this.W=O;this.oa=e}; IQc=function(q,a,w){var G,k=((G=w.adSlots)!=null?G:[]).map(function(e){return g.I(e,P9)}); if(w.P_)if(oZ(a.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))yg(q.V.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},a.slotId); else{if(q.Q7.get().j.B().T("h5_check_forecasting_renderer_for_throttled_midroll")){var b=w.x6.filter(function(e){var N;return((N=e.renderer)==null?void 0:N.clientForecastingAdRenderer)!=null}); b.length!==0?jeG(q.W,b,k,a.slotId,w.ssdaiAdsConfig):yg(q.V.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},a.slotId)}else yg(q.V.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},a.slotId); ovK(q.Y,a)}else{var O;G={uN:Math.round(((b=oZ(a.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:b.uN)||0),Og:(O=oZ(a.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:O.Og};b=oZ(a.clientMetadata,"metadata_type_cue_point");jeG(q.W,w.x6,k,a.slotId,w.ssdaiAdsConfig,G,b)}}; vvm=function(q,a,w,G,k,b,O,e){var N=uw(q.n7.get(),1);if(uTm(q.Q7.get())){var Y=Kk(q.U.get(),w,G,k,N.clientPlaybackNonce,N.CE,N.daiEnabled,N,b,O);tr_(q,Y);yg(q.V.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return Y},a)}else yg(q.V.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return Kk(q.U.get(),w,G,k,N.clientPlaybackNonce,N.CE,N.daiEnabled,N,b,O,e)},a)}; tr_=function(q,a){a=g.V(a);for(var w=a.next();!w.done;w=a.next()){var G=w.value;if(G.slotType==="SLOT_TYPE_PLAYER_BYTES"&&G.fulfilledLayout)if(w=void 0,G.fulfilledLayout.renderingContent)w=oZ(G.fulfilledLayout.clientMetadata,"metadata_type_player_vars");else{if(G.fulfilledLayout.Ks){G=g.V(G.fulfilledLayout.Ks);for(var k=G.next();!k.done&&(k=k.value,!k.renderingContent||!(w=oZ(k.clientMetadata,"metadata_type_player_vars")));k=G.next());}}else w=void 0;if(w){q.oa.get().j.preloadVideoByPlayerVars(w, 2,300);break}}}; iZG=function(q,a,w,G,k,b,O){a=zxl(a,b,Number(G.prefetchMilliseconds)||0,O);q=a instanceof W?a:dS(q,G,k,a,w);return q instanceof W?q:[q]}; WKj=function(q,a,w,G,k){var b=qf(q.U.get(),"SLOT_TYPE_AD_BREAK_REQUEST");G=[new Z8({getAdBreakUrl:G.getAdBreakUrl,uN:0,Og:0}),new S4(!0)];q=a.pauseDurationMs?a.lactThresholdMs?{slotId:b,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new Lr(q.V,b),slotFulfillmentTriggers:[new exG(q.V)],slotExpirationTriggers:[new di(q.V,k),new FP(q.V,b)],kT:"core",clientMetadata:new j4(G),adSlotLoggingData:w}:new W("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new W("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return q instanceof W?q:[q]}; Djl=function(q){var a,w;return((a=q.renderer)==null?void 0:(w=a.adBreakServiceRenderer)==null?void 0:w.getAdBreakUrl)!==void 0}; TK=function(q,a,w){if(q.beforeContentVideoIdStartedTrigger)q=q.beforeContentVideoIdStartedTrigger?new RX(U0,a,q.id):new W("Not able to create BeforeContentVideoIdStartedTrigger");else{if(q.layoutIdExitedTrigger){var G;a=(G=q.layoutIdExitedTrigger)!=null&&G.triggeringLayoutId?new G0(U0,q.layoutIdExitedTrigger.triggeringLayoutId,q.id):new W("Not able to create LayoutIdExitedTrigger")}else{if(q.layoutExitedForReasonTrigger){var k,b;((k=q.layoutExitedForReasonTrigger)==null?0:k.triggeringLayoutId)&&((b= q.layoutExitedForReasonTrigger)==null?0:b.layoutExitReason)?(a=Ndl(q.layoutExitedForReasonTrigger.layoutExitReason),q=a instanceof W?a:new wi(U0,q.layoutExitedForReasonTrigger.triggeringLayoutId,[a],q.id)):q=new W("Not able to create LayoutIdExitedForReasonTrigger")}else{if(q.onLayoutSelfExitRequestedTrigger){var O;a=(O=q.onLayoutSelfExitRequestedTrigger)!=null&&O.triggeringLayoutId?new Kr(U0,q.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,q.id):new W("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(q.onNewPlaybackAfterContentVideoIdTrigger)q= q.onNewPlaybackAfterContentVideoIdTrigger?new di(U0,a,q.id):new W("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(q.skipRequestedTrigger){var e;a=(e=q.skipRequestedTrigger)!=null&&e.triggeringLayoutId?new $Z(U0,q.skipRequestedTrigger.triggeringLayoutId,q.id):new W("Not able to create SkipRequestedTrigger")}else if(q.slotIdEnteredTrigger){var N;a=(N=q.slotIdEnteredTrigger)!=null&&N.triggeringSlotId?new si(U0,q.slotIdEnteredTrigger.triggeringSlotId,q.id):new W("Not able to create SlotIdEnteredTrigger")}else if(q.slotIdExitedTrigger){var Y; a=(Y=q.slotIdExitedTrigger)!=null&&Y.triggeringSlotId?new FP(U0,q.slotIdExitedTrigger.triggeringSlotId,q.id):new W("Not able to create SkipRequestedTrigger")}else if(q.surveySubmittedTrigger){var P;a=(P=q.surveySubmittedTrigger)!=null&&P.triggeringLayoutId?new ri(U0,q.surveySubmittedTrigger.triggeringLayoutId,q.id):new W("Not able to create SurveySubmittedTrigger")}else{if(q.mediaResumedTrigger)q=q.mediaResumedTrigger&&q.id?new YRj(q.id):new W("Not able to create MediaResumedTrigger");else{if(q.closeRequestedTrigger){var K; a=(K=q.closeRequestedTrigger)!=null&&K.triggeringLayoutId?new yZ(U0,q.closeRequestedTrigger.triggeringLayoutId,q.id):new W("Not able to create CloseRequestedTrigger")}else if(q.slotIdScheduledTrigger){var d;a=(d=q.slotIdScheduledTrigger)!=null&&d.triggeringSlotId?new Lr(U0,q.slotIdScheduledTrigger.triggeringSlotId,q.id):new W("Not able to create SlotIdScheduledTrigger")}else{if(q.mediaTimeRangeTrigger){var T;G=Number((T=q.mediaTimeRangeTrigger)==null?void 0:T.offsetStartMilliseconds);var F;O=Number((F= q.mediaTimeRangeTrigger)==null?void 0:F.offsetEndMilliseconds);isFinite(G)&&isFinite(O)?(F=O,F===-1&&(F=w),w=G>F?new W("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:G,offsetEndMs:F},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",F===w&&G-500<=F):new FN(G,F),q=w instanceof W?w:new eQ(U0,a,w,!1,q.id)):q=new W("Not able to create MediaTimeRangeTrigger")}else if(q.contentVideoIdEndedTrigger)q=q.contentVideoIdEndedTrigger?new qc(U0,a,!1,q.id):new W("Not able to create ContentVideoIdEndedTrigger"); else{if(q.layoutIdEnteredTrigger){var J;a=(J=q.layoutIdEnteredTrigger)!=null&&J.triggeringLayoutId?new aP(U0,q.layoutIdEnteredTrigger.triggeringLayoutId,q.id):new W("Not able to create LayoutIdEnteredTrigger")}else if(q.timeRelativeToLayoutEnterTrigger){var Q;a=(Q=q.timeRelativeToLayoutEnterTrigger)!=null&&Q.triggeringLayoutId?new nr(U0,Number(q.timeRelativeToLayoutEnterTrigger.durationMs),q.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,q.id):new W("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(q.onDifferentLayoutIdEnteredTrigger){var B; a=(B=q.onDifferentLayoutIdEnteredTrigger)!=null&&B.triggeringLayoutId&&q.onDifferentLayoutIdEnteredTrigger.slotType&&q.onDifferentLayoutIdEnteredTrigger.layoutType?new YZ(U0,q.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,q.onDifferentLayoutIdEnteredTrigger.slotType,q.onDifferentLayoutIdEnteredTrigger.layoutType,q.id):new W("Not able to create CloseRequestedTrigger")}else{if(q.liveStreamBreakStartedTrigger)q=q.liveStreamBreakStartedTrigger&&q.id?new lm(U0,q.id):new W("Not able to create LiveStreamBreakStartedTrigger"); else if(q.liveStreamBreakEndedTrigger)q=q.liveStreamBreakEndedTrigger&&q.id?new kZ(U0,q.id):new W("Not able to create LiveStreamBreakEndedTrigger");else{if(q.liveStreamBreakScheduledDurationMatchedTrigger){var L;a=(L=q.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&L.breakDurationMs?new bm(Number(q.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,q.id):new W("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(q.liveStreamBreakScheduledDurationNotMatchedTrigger){var M; a=(M=q.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&M.breakDurationMs?new Oi(Number(q.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,q.id):new W("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(q.newSlotScheduledWithBreakDurationTrigger){var H;a=(H=q.newSlotScheduledWithBreakDurationTrigger)!=null&&H.breakDurationMs?new Nc(Number(q.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,q.id):new W("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else a= q.prefetchCacheExpiredTrigger?new T0(U0,q.id):new W("Not able to convert an AdsControlflowTrigger.");q=a}a=q}q=a}a=q}q=a}a=q}q=a}a=q}q=a}a=q}q=a}return q}; $B=function(q,a){a.V>=2&&(q.slot_pos=a.adPodIndex);q.autoplay="1"}; yOJ=function(q,a,w,G,k,b,O,e){return a===null?new W("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:a,ActionCompanionAdRenderer:G}):[RxV(q,a,O,b,function(N){var Y=N.slotId;N=e(N);var P=G.adLayoutLoggingData,K=new j4([new E4(G),new hZ(k)]);Y=h3(w.U.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Y);var d={layoutId:Y,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",kT:"core"};return{layoutId:Y,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",d$:new Map, layoutExitNormalTriggers:[new di(w.V,O)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Mh:[],kT:"core",clientMetadata:K,Xw:N(d),adLayoutLoggingData:P}})]}; q4c=function(q,a,w,G,k,b,O,e){return a===null?new W("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:a,TopBannerImageTextIconButtonedLayoutViewModel:G}):[RxV(q,a,O,b,function(N){var Y=N.slotId;N=e(N);var P=G.adLayoutLoggingData,K=new j4([new Vh(G),new hZ(k)]);Y=h3(w.U.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Y);var d={layoutId:Y,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",kT:"core"};return{layoutId:Y,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", d$:new Map,layoutExitNormalTriggers:[new di(w.V,O)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Mh:[],kT:"core",clientMetadata:K,Xw:N(d),adLayoutLoggingData:P}})]}; Gvy=function(q,a,w,G,k,b){if(!b)for(a=g.V(a),b=a.next();!b.done;b=a.next())b=b.value,sm(q,b.renderer,b.config.adPlacementConfig.kind);q=Array.from(q.values()).filter(function(P){return gWK(P)}); a=[];b=g.V(q);for(var O=b.next(),e={};!O.done;e={Fz:void 0},O=b.next()){e.Fz=O.value;O=g.V(e.Fz.Ar);for(var N=O.next(),Y={};!N.done;Y={G8:void 0},N=O.next())Y.G8=N.value,N=function(P,K){return function(d){return P.G8.hI(d,K.Fz.instreamVideoAdRenderer.elementId,P.G8.SW)}}(Y,e),Y.G8.isContentVideoCompanion?a.push(aPm(w,G,k,e.Fz.instreamVideoAdRenderer.elementId,Y.G8.associatedCompositePlayerBytesLayoutId,Y.G8.adSlotLoggingData,N)):q.length>1?a.push(wsm(w,G,k,e.Fz.instreamVideoAdRenderer.elementId,Y.G8.adSlotLoggingData, function(P,K){return function(d){return P.G8.hI(d,K.Fz.instreamVideoAdRenderer.elementId,P.G8.SW,P.G8.associatedCompositePlayerBytesLayoutId)}}(Y,e))):a.push(wsm(w,G,k,e.Fz.instreamVideoAdRenderer.elementId,Y.G8.adSlotLoggingData,N))}return a}; sm=function(q,a,w){if(a=kvN(a)){a=g.V(a);for(var G=a.next();!G.done;G=a.next())if((G=G.value)&&G.externalVideoId){var k=FA(q,G.externalVideoId);k.instreamVideoAdRenderer||(k.instreamVideoAdRenderer=G,k.s$=w)}else Gj("InstreamVideoAdRenderer without externalVideoId")}}; kvN=function(q){var a=[],w=q.sandwichedLinearAdRenderer&&q.sandwichedLinearAdRenderer.linearAd&&g.I(q.sandwichedLinearAdRenderer.linearAd,tz);if(w)return a.push(w),a;if(q.instreamVideoAdRenderer)return a.push(q.instreamVideoAdRenderer),a;if(q.linearAdSequenceRenderer&&q.linearAdSequenceRenderer.linearAds){q=g.V(q.linearAdSequenceRenderer.linearAds);for(w=q.next();!w.done;w=q.next())w=w.value,g.I(w,tz)&&a.push(g.I(w,tz));return a}return null}; gWK=function(q){if(q.instreamVideoAdRenderer===void 0)return Gj("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var a=g.V(q.Ar),w=a.next();!w.done;w=a.next()){w=w.value;if(w.hI===void 0)return!1;if(w.SW===void 0)return Gj("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(q.s$===void 0||w.kO===void 0||q.s$!==w.kO&&w.kO!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(q.instreamVideoAdRenderer.elementId===void 0)return Gj("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:q.s$,"matching APSR kind":w.kO}),!1}return!0}; FA=function(q,a){q.has(a)||q.set(a,{instreamVideoAdRenderer:void 0,s$:void 0,adVideoId:a,Ar:[]});return q.get(a)}; Ck=function(q,a,w,G,k,b,O,e,N){k?FA(q,k).Ar.push({zvT:a,kO:w,isContentVideoCompanion:G,SW:O,associatedCompositePlayerBytesLayoutId:b,adSlotLoggingData:e,hI:N}):Gj("Companion AdPlacementSupportedRenderer without adVideoId")}; ZN=function(q){var a=0;q=g.V(q.questions);for(var w=q.next();!w.done;w=q.next())if(w=w.value,w=g.I(w,GK)||g.I(w,kB)){var G=void 0;a+=((G=w.surveyAdQuestionCommon)==null?void 0:G.durationMilliseconds)||0}return a}; Em=function(q){var a,w,G,k,b=((w=g.I((a=q.questions)==null?void 0:a[0],GK))==null?void 0:w.surveyAdQuestionCommon)||((k=g.I((G=q.questions)==null?void 0:G[0],kB))==null?void 0:k.surveyAdQuestionCommon),O;a=[].concat(g.Tf(((O=q.playbackCommands)==null?void 0:O.instreamAdCompleteCommands)||[]),g.Tf((b==null?void 0:b.timeoutCommands)||[]));var e,N,Y,P,K,d,T,F,J,Q,B,L,M,H,X,D,z,Oj,$l,ey;return{impressionCommands:(e=q.playbackCommands)==null?void 0:e.impressionCommands,errorCommands:(N=q.playbackCommands)== null?void 0:N.errorCommands,muteCommands:(Y=q.playbackCommands)==null?void 0:Y.muteCommands,unmuteCommands:(P=q.playbackCommands)==null?void 0:P.unmuteCommands,pauseCommands:(K=q.playbackCommands)==null?void 0:K.pauseCommands,rewindCommands:(d=q.playbackCommands)==null?void 0:d.rewindCommands,resumeCommands:(T=q.playbackCommands)==null?void 0:T.resumeCommands,skipCommands:(F=q.playbackCommands)==null?void 0:F.skipCommands,progressCommands:(J=q.playbackCommands)==null?void 0:J.progressCommands,UTK:(Q= q.playbackCommands)==null?void 0:Q.clickthroughCommands,fullscreenCommands:(B=q.playbackCommands)==null?void 0:B.fullscreenCommands,activeViewViewableCommands:(L=q.playbackCommands)==null?void 0:L.activeViewViewableCommands,activeViewMeasurableCommands:(M=q.playbackCommands)==null?void 0:M.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(H=q.playbackCommands)==null?void 0:H.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(X=q.playbackCommands)== null?void 0:(D=X.activeViewTracking)==null?void 0:D.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(z=q.playbackCommands)==null?void 0:(Oj=z.activeViewTracking)==null?void 0:Oj.activeViewAudioMeasurableCommands,endFullscreenCommands:($l=q.playbackCommands)==null?void 0:$l.endFullscreenCommands,abandonCommands:(ey=q.playbackCommands)==null?void 0:ey.abandonCommands,completeCommands:a}}; OGG=function(q,a,w,G,k,b,O){return function(e,N){return bG_(q,N.slotId,e,b,function(Y,P){var K=N.layoutId;Y=O(Y);return VC(a,K,P,k,Y,"LAYOUT_TYPE_SURVEY",[new Ws(w),G],w.adLayoutLoggingData)})}}; N5_=function(q,a,w,G,k,b,O){if(!lP_(q))return new W("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:q});var e=q.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[ezj(b,a,w,G,function(N){var Y=N.slotId;N=O(N);Y=h3(k.U.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Y);var P={layoutId:Y,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",kT:"core"},K=new G0(k.V,G);return{layoutId:Y,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",d$:new Map,layoutExitNormalTriggers:[K], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Mh:[],kT:"core",clientMetadata:new j4([new DP(e)]),Xw:N(P)}})]}; lP_=function(q){q=g.I(q==null?void 0:q.additionalPlayerOverlay,Y4_);if(!q)return!1;var a=q.slidingMessages;return q.title&&a&&a.length!==0?!0:!1}; KVV=function(q,a,w,G,k){var b;if((b=q.playerOverlay)==null||!b.instreamSurveyAdRenderer)return function(){return[]}; if(!cOj(q))return function(){return new W("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:q})}; var O=q.playerOverlay.instreamSurveyAdRenderer,e=ZN(O);return e<=0?function(){return new W("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:O})}:function(N,Y){var P=PPc(N,w,G,function(K){var d=K.slotId; K=Y(K);var T=Em(O);d=h3(k.U.get(),"LAYOUT_TYPE_SURVEY",d);var F={layoutId:d,layoutType:"LAYOUT_TYPE_SURVEY",kT:"core"},J=new G0(k.V,G),Q=new $Z(k.V,d),B=new ri(k.V,d),L=new TdV(k.V);return{layoutId:d,layoutType:"LAYOUT_TYPE_SURVEY",d$:new Map,layoutExitNormalTriggers:[J,L],layoutExitSkipTriggers:[Q],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[B],Mh:[],kT:"core",clientMetadata:new j4([new iP(O),new hZ(a),new J4(e/1E3),new xr(T)]),Xw:K(F),adLayoutLoggingData:O.adLayoutLoggingData}}); N=N5_(q,w,P.slotId,G,k,N,Y);return N instanceof W?N:[P].concat(g.Tf(N))}}; ZGJ=function(q,a,w,G,k,b,O){O=O===void 0?!1:O;var e=[];try{var N=[];if(w.renderer.linearAdSequenceRenderer)var Y=function(J){J=d8m(J.slotId,w,a,k(J),G,b,O);N=J.neQ;return J.Uh}; else if(w.renderer.instreamVideoAdRenderer)Y=function(J){var Q=J.slotId;J=k(J);var B=O,L=w.config.adPlacementConfig,M=T5V(L),H=M.UW,X=M.WS;M=w.renderer.instreamVideoAdRenderer;var D;if(M==null?0:(D=M.playerOverlay)==null?0:D.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var z=Jh(M,B);D=Math.min(H+z.videoLengthSeconds*1E3,X);B=new Da(0,[z.videoLengthSeconds]);X=z.videoLengthSeconds;var Oj=z.playerVars,$l=z.instreamAdPlayerOverlayRenderer,ey=z.playerOverlayLayoutRenderer, Nm=z.adVideoId,a_=$8G(w),BJ=z.d$;z=z.zH;var WJ=M==null?void 0:M.adLayoutLoggingData;M=M==null?void 0:M.sodarExtensionData;Q=h3(a.U.get(),"LAYOUT_TYPE_MEDIA",Q);var gy={layoutId:Q,layoutType:"LAYOUT_TYPE_MEDIA",kT:"core"};return{layoutId:Q,layoutType:"LAYOUT_TYPE_MEDIA",d$:BJ,layoutExitNormalTriggers:[new kZ(a.V)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Mh:[],kT:"core",clientMetadata:new j4([new U4(G),new lo(X),new e4(Oj),new Po(H),new KM(D),$l&& new Xl($l),ey&&new jT(ey),new hZ(L),new pG(Nm),new ST(B),new Fv(a_),M&&new Yr(M),new w2({current:null}),new TC({}),new r2(z)].filter(sUl)),Xw:J(gy),adLayoutLoggingData:WJ}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var P=FVy(q,G,w.adSlotLoggingData,Y);e.push(P);for(var K=g.V(N),d=K.next();!d.done;d=K.next()){var T=d.value,F=T(q,k);if(F instanceof W)return F;e.push.apply(e,g.Tf(F))}}catch(J){return new W(J,{errorMessage:J.message,AdPlacementRenderer:w,numberOfSurveyRenderers:CPj(w)})}return e}; CPj=function(q){q=(q.renderer.linearAdSequenceRenderer||{}).linearAds;return q!=null&&q.length?q.filter(function(a){var w,G;return((w=g.I(a,tz))==null?void 0:(G=w.playerOverlay)==null?void 0:G.instreamSurveyAdRenderer)!=null}).length:0}; d8m=function(q,a,w,G,k,b,O){var e=a.config.adPlacementConfig,N=T5V(e),Y=N.UW,P=N.WS;N=(a.renderer.linearAdSequenceRenderer||{}).linearAds;if(N==null||!N.length)throw new TypeError("Expected linear ads");var K=[],d={v8:Y,Bc:0,ePB:K};N=N.map(function(F){return EWJ(q,F,d,w,G,e,k,P,O)}).map(function(F,J){J=new Da(J,K); return F(J)}); var T=N.map(function(F){return F.dY}); return{Uh:VT_(w,q,Y,T,e,$8G(a),G,P,b),neQ:N.map(function(F){return F.XHK})}}; EWJ=function(q,a,w,G,k,b,O,e,N){var Y=Jh(g.I(a,tz),N),P=w.v8,K=w.Bc,d=Math.min(P+Y.videoLengthSeconds*1E3,e);w.v8=d;w.Bc++;w.ePB.push(Y.videoLengthSeconds);var T,F,J=(T=g.I(a,tz))==null?void 0:(F=T.playerOverlay)==null?void 0:F.instreamSurveyAdRenderer;if(Y.adVideoId==="nPpU29QrbiU"&&J==null)throw new TypeError("Survey slate media has no survey overlay");return function(Q){$B(Y.playerVars,Q);var B,L,M=Y.videoLengthSeconds,H=Y.playerVars,X=Y.d$,D=Y.zH,z=Y.instreamAdPlayerOverlayRenderer,Oj=Y.playerOverlayLayoutRenderer, $l=Y.adVideoId,ey=(B=g.I(a,tz))==null?void 0:B.adLayoutLoggingData;B=(L=g.I(a,tz))==null?void 0:L.sodarExtensionData;L=h3(G.U.get(),"LAYOUT_TYPE_MEDIA",q);var Nm={layoutId:L,layoutType:"LAYOUT_TYPE_MEDIA",kT:"adapter"};Q={layoutId:L,layoutType:"LAYOUT_TYPE_MEDIA",d$:X,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Mh:[],kT:"adapter",clientMetadata:new j4([new U4(O),new lo(M),new e4(H),new Po(P),new KM(d),new d2(K),new w2({current:null}), z&&new Xl(z),Oj&&new jT(Oj),new hZ(b),new pG($l),new ST(Q),B&&new Yr(B),J&&new Bo(J),new TC({}),new r2(D)].filter(sUl)),Xw:k(Nm),adLayoutLoggingData:ey};M=KVV(g.I(a,tz),b,O,Q.layoutId,G);return{dY:Q,XHK:M}}}; Jh=function(q,a){if(!q)throw new TypeError("Expected instream video ad renderer");if(!q.playerVars)throw new TypeError("Expected player vars in url encoded string");var w=Wn(q.playerVars),G=Number(w.length_seconds);if(isNaN(G))throw new TypeError("Expected valid length seconds in player vars");var k=Number(q.trimmedMaxNonSkippableAdDurationMs);G=isNaN(k)?G:Math.min(G,k/1E3);k=q.playerOverlay||{};k=k.instreamAdPlayerOverlayRenderer===void 0?null:k.instreamAdPlayerOverlayRenderer;var b=q.playerOverlay|| {};b=b.playerOverlayLayoutRenderer===void 0?null:b.playerOverlayLayoutRenderer;var O=w.video_id;O||(O=(O=q.externalVideoId)?O:void 0);if(!O)throw new TypeError("Expected valid video id in IVAR");if(a&&G===0){var e;a=(e=JZc[O])!=null?e:G}else a=G;return{playerVars:w,videoLengthSeconds:a,instreamAdPlayerOverlayRenderer:k,playerOverlayLayoutRenderer:b,adVideoId:O,d$:q.pings?Nf(q.pings):new Map,zH:eH(q.pings)}}; $8G=function(q){q=Number(q.driftRecoveryMs);return isNaN(q)||q<=0?null:q}; T5V=function(q){var a=q.adTimeOffset||{};q=a.offsetEndMilliseconds;a=Number(a.offsetStartMilliseconds);if(isNaN(a))throw new TypeError("Expected valid start offset");q=Number(q);if(isNaN(q))throw new TypeError("Expected valid end offset");return{UW:a,WS:q}}; m8K=function(q){var a,w=(a=oZ(q.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:a.current;if(!w)return null;a=oZ(q.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var G=q.layoutId,k=oZ(q.clientMetadata,"metadata_type_content_cpn"),b=oZ(q.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),O=oZ(q.clientMetadata,"metadata_type_player_underlay_renderer"),e=oZ(q.clientMetadata,"metadata_type_ad_placement_config"),N=oZ(q.clientMetadata,"metadata_type_video_length_seconds"); var Y=co(q.clientMetadata,"metadata_type_layout_enter_ms")&&co(q.clientMetadata,"metadata_type_layout_exit_ms")?(oZ(q.clientMetadata,"metadata_type_layout_exit_ms")-oZ(q.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{Sm:G,contentCpn:k,K2:w,ze:a,instreamAdPlayerOverlayRenderer:b,instreamAdPlayerUnderlayRenderer:O,adPlacementConfig:e,videoLengthSeconds:N,y5:Y,inPlayerLayoutId:oZ(q.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:oZ(q.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; x8V=function(q,a,w,G,k,b,O,e,N,Y,P,K,d,T,F){G=qf(G,"SLOT_TYPE_PLAYER_BYTES");q=QUJ(k,q,O,w,G,N,Y);if(q instanceof W)return q;var J;Y=(J=oZ(q.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:J.layoutId;if(!Y)return new W("Invalid adNotify layout");a=AZJ(Y,k,b,w,e,a,N,P,K,d,T,F,O);return a instanceof W?a:[q].concat(g.Tf(a))}; AZJ=function(q,a,w,G,k,b,O,e,N,Y,P,K,d){w=LVU(a,w,G,b,O,e,N,Y,P,K,d);if(w instanceof W)return w;q=B5l(a,q,O,k,w);return q instanceof W?q:[].concat(g.Tf(q.De),[q.hT])}; nWl=function(q,a,w,G,k,b,O,e,N,Y,P,K,d,T){a=LVU(q,a,w,k,b,e,N,Y,P,K,d,T);if(a instanceof W)return a;q=rZU(q,w,b,O,G,e.pk,a);return q instanceof W?q:q.De.concat(q.hT)}; LVU=function(q,a,w,G,k,b,O,e,N,Y,P,K){var d=mr(G,w,Y);return d instanceof Xv?new W(d):Y.j.B().experiments.Zh("html5_refactor_in_player_slot_generation")?function(T){var F=new Da(0,[d.p6]);T=MTG(a,d.layoutId,d.GS,w,QC(d.playerVars,d.o1,b,N,F),d.p6,k,F,O(T),e.get(d.GS.externalVideoId),K);F=[];if(d.GS.playerOverlay.instreamAdPlayerOverlayRenderer){var J=m8K(T);if(!J)return Gj("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,T),{layout:T,De:[]}; F=[hzV(q,J.contentCpn,J.Sm,function(B){return Ah(a,B.slotId,"core",J,io(P,B))},J.inPlayerSlotId)].concat(g.Tf(F)); if(J.instreamAdPlayerUnderlayRenderer&&xB(Y)){var Q=J.instreamAdPlayerUnderlayRenderer;F=[S4_(q,J.contentCpn,J.Sm,function(B){return fPN(a,B.slotId,Q,J.adPlacementConfig,J.Sm,io(P,B))})].concat(g.Tf(F))}}return{layout:T, De:F}}:function(T){var F=new Da(0,[d.p6]); return{layout:MTG(a,d.layoutId,d.GS,w,QC(d.playerVars,d.o1,b,N,F),d.p6,k,F,O(T),e.get(d.GS.externalVideoId),K),De:[]}}}; mr=function(q,a,w){if(!q.playerVars)return new Xv("No playerVars available in InstreamVideoAdRenderer.");var G,k;if(q.elementId==null||q.playerVars==null||q.playerOverlay==null||((G=q.playerOverlay)==null?void 0:G.instreamAdPlayerOverlayRenderer)==null&&((k=q.playerOverlay)==null?void 0:k.playerOverlayLayoutRenderer)==null||q.pings==null||q.externalVideoId==null)return new Xv("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:q});G=Wn(q.playerVars);k=Number(G.length_seconds); isNaN(k)&&(k=0,Gj("Expected valid length seconds in player vars but got NaN"));if(w.jo(a.kind==="AD_PLACEMENT_KIND_START")){if(q.layoutId===void 0)return new Xv("Expected server generated layout ID in instreamVideoAdRenderer");a=q.layoutId}else a=q.elementId;return{layoutId:a,GS:q,playerVars:G,o1:q.playerVars,p6:k}}; QC=function(q,a,w,G,k){q.iv_load_policy=G;a=Wn(a);if(a.cta_conversion_urls)try{q.cta_conversion_urls=JSON.parse(a.cta_conversion_urls)}catch(b){Gj(b)}w.rh&&(q.ctrl=w.rh);w.wl&&(q.ytr=w.wl);w.NS&&(q.ytrcc=w.NS);w.isMdxPlayback&&(q.mdx="1");q.vvt&&(q.vss_credentials_token=q.vvt,w.aP&&(q.vss_credentials_token_type=w.aP),w.mdxEnvironment&&(q.mdx_environment=w.mdxEnvironment));$B(q,k);return q}; HGK=function(q){var a=new Map;q=g.V(q);for(var w=q.next();!w.done;w=q.next())(w=w.value.renderer.remoteSlotsRenderer)&&w.hostElementId&&a.set(w.hostElementId,w);return a}; Lk=function(q){return q.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; cZl=function(q){return q!=null}; ul_=function(q,a,w,G,k,b,O,e,N,Y,P,K,d,T,F){for(var J=[],Q=g.V(q),B=Q.next();!B.done;B=Q.next())if(B=B.value,!BdK(B)&&!SRK(B)){var L=Lk(B)&&!!B.slotEntryTrigger.beforeContentVideoIdStartedTrigger,M=N.jo(L),H=psc(B,Y,G,w.CE,M);if(H instanceof W)return H;var X=void 0,D={slotId:B.adSlotMetadata.slotId,slotType:B.adSlotMetadata.slotType,slotPhysicalPosition:(X=B.adSlotMetadata.slotPhysicalPosition)!=null?X:1,kT:"core",slotEntryTrigger:H.slotEntryTrigger,slotFulfillmentTriggers:H.slotFulfillmentTriggers, slotExpirationTriggers:H.slotExpirationTriggers},z=g.I(B.fulfillmentContent.fulfilledLayout,Dq);if(z){if(!WZ(z))return new W("Invalid PlayerBytesAdLayoutRenderer");X=K&&!(Lk(B)&&B.slotEntryTrigger.beforeContentVideoIdStartedTrigger);H=H.slotFulfillmentTriggers.some(function(Oj){return Oj instanceof bm}); M=X?U8J(D,B.adSlotMetadata.triggerEvent,z,w,G,b,Y,q,M,d,H,T):Xsm(D,B.adSlotMetadata.triggerEvent,z,a,w,G,k,b,O,e,N,Y,q,P,M,B.adSlotMetadata.triggeringSourceLayoutId);if(M instanceof W)return M;H=[];F?H.push(new O0({current:F})):H.push(new O0({current:null}));Lk(B)&&H.push(new fM({Sa:Lk(B)&&!!B.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));X&&H.push(new TC({}));w.pk&&H.push(new LM({}));H.push(new h4(L));B=Object.assign({},D,{clientMetadata:new j4(H),fulfilledLayout:M.layout,adSlotLoggingData:B.adSlotMetadata.adSlotLoggingData}); J.push.apply(J,g.Tf(M.De));J.push(B)}else if(L=g.I(B.fulfillmentContent.fulfilledLayout,aN)){if(!LKy(L))return new W("Invalid PlayerUnderlayAdLayoutRenderer");L=jUy(L,G,w.CE,b,D,B.adSlotMetadata.triggerEvent,B.adSlotMetadata.triggeringSourceLayoutId);if(L instanceof W)return L;B=Object.assign({},D,{clientMetadata:new j4([]),fulfilledLayout:L,adSlotLoggingData:B.adSlotMetadata.adSlotLoggingData});J.push(B)}else if(L=g.I(B.fulfillmentContent.fulfilledLayout,nvl)){if(!CHU(L))return new W("Invalid AboveFeedAdLayoutRenderer"); L=oWl(L,G,w.CE,b,D,B.adSlotMetadata.triggerEvent,B.adSlotMetadata.triggeringSourceLayoutId);if(L instanceof W)return L;B=Object.assign({},D,{clientMetadata:new j4([]),fulfilledLayout:L,adSlotLoggingData:B.adSlotMetadata.adSlotLoggingData});J.push(B)}else if(L=g.I(B.fulfillmentContent.fulfilledLayout,Mrm)){if(!hz(L.adLayoutMetadata)||!g.I(L.renderingContent,SQ))return new W("Invalid BelowPlayerAdLayoutRenderer");L=oWl(L,G,w.CE,b,D,B.adSlotMetadata.triggerEvent,B.adSlotMetadata.triggeringSourceLayoutId); if(L instanceof W)return L;B=Object.assign({},D,{clientMetadata:new j4([]),fulfilledLayout:L,adSlotLoggingData:B.adSlotMetadata.adSlotLoggingData});J.push(B)}else if(L=g.I(B.fulfillmentContent.fulfilledLayout,wS)){if(!y5(L))return new W("Invalid PlayerBytesSequenceItemAdLayoutRenderer");L=IPl(L,G,w.CE,b,D,B.adSlotMetadata.triggerEvent);if(L instanceof W)return L;B=Object.assign({},D,{clientMetadata:new j4([]),fulfilledLayout:L,adSlotLoggingData:B.adSlotMetadata.adSlotLoggingData});J.push(B)}else return new W("Unable to retrieve a client slot ["+ D.slotType+"] from a given AdSlotRenderer")}return J}; IPl=function(q,a,w,G,k,b){var O={layoutId:q.adLayoutMetadata.layoutId,layoutType:q.adLayoutMetadata.layoutType,kT:"core"};a=B9(q,a,w);return a instanceof W?a:(w=g.I(q.renderingContent,RP))&&w.pings?Object.assign({},O,{renderingContent:q.renderingContent,d$:Nf(w.pings)},a,{Xw:io(G,k)(O),clientMetadata:new j4([new hZ(rS(b))]),adLayoutLoggingData:q.adLayoutMetadata.adLayoutLoggingData}):new W("VideoAdTracking is missing from PlayerBytesSequenceItemAdLayoutRenderer")}; oWl=function(q,a,w,G,k,b,O){var e={layoutId:q.adLayoutMetadata.layoutId,layoutType:q.adLayoutMetadata.layoutType,kT:"core"};a=B9(q,a,w);if(a instanceof W)return a;w=[];w.push(new hZ(rS(b)));b==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&O!==void 0&&w.push(new RU(O));return Object.assign({},e,{renderingContent:q.renderingContent,d$:new Map([["impression",tTj(q)]])},a,{Xw:io(G,k)(e),clientMetadata:new j4(w),adLayoutLoggingData:q.adLayoutMetadata.adLayoutLoggingData})}; jUy=function(q,a,w,G,k,b,O){if(q.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(O=g.I(q.renderingContent,qv))if(O=g.I(O.sidePanel,AON)){var e={layoutId:q.adLayoutMetadata.layoutId,layoutType:q.adLayoutMetadata.layoutType,kT:"core"};a=B9(q,a,w);q=a instanceof W?a:Object.assign({},e,{renderingContent:q.renderingContent,d$:new Map([["impression",O.impressionPings||[]],["resume",O.resumePings||[]]])},a,{Xw:io(G,k)(e),clientMetadata:new j4([new hZ(rS(b))]),adLayoutLoggingData:q.adLayoutMetadata.adLayoutLoggingData})}else q= new W("DismissablePanelTextPortraitImageRenderer is missing");else q=new W("SqueezebackPlayerSidePanelRenderer is missing");else q.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.I(q.renderingContent,JOj)?(O={layoutId:q.adLayoutMetadata.layoutId,layoutType:q.adLayoutMetadata.layoutType,kT:"core"},a=B9(q,a,w),q=a instanceof W?a:Object.assign({},O,{renderingContent:q.renderingContent,d$:new Map},a,{Xw:io(G,k)(O),clientMetadata:new j4([new hZ(rS(b))]),adLayoutLoggingData:q.adLayoutMetadata.adLayoutLoggingData})): q=new W("CounterfactualRenderer is missing"):q.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?q=new W("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):q.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?q=new W("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):q.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.I(q.renderingContent,gS)?(b={layoutId:q.adLayoutMetadata.layoutId,layoutType:q.adLayoutMetadata.layoutType, kT:"core"},a=B9(q,a,w),q=a instanceof W?a:O?Object.assign({},b,{renderingContent:q.renderingContent,d$:new Map},a,{Xw:io(G,k)(b),clientMetadata:new j4([new RU(O)]),adLayoutLoggingData:q.adLayoutMetadata.adLayoutLoggingData}):new W("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):q=new W("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):q.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.I(q.renderingContent,mjK)? (b={layoutId:q.adLayoutMetadata.layoutId,layoutType:q.adLayoutMetadata.layoutType,kT:"core"},a=B9(q,a,w),q=a instanceof W?a:Object.assign({},b,{renderingContent:q.renderingContent,d$:new Map([])},a,{Xw:io(G,k)(b),adLayoutLoggingData:q.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new j4([])})):q=new W("AdsEngagementPanelSectionListViewModel is missing"):q=new W("LayoutType ["+q.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return q}; U8J=function(q,a,w,G,k,b,O,e,N,Y,P,K){if((K==null?void 0:K.uN)===void 0||(K==null?void 0:K.Og)===void 0)return new W("Cached ad break range from cue point is missing");var d=B9(w,k,G.CE);if(d instanceof W)return d;d={layoutExitMuteTriggers:[],layoutExitNormalTriggers:d.layoutExitNormalTriggers,layoutExitSkipTriggers:[],Mh:[],layoutExitUserInputSubmittedTriggers:[]};if(g.I(w.renderingContent,tz))return q=vWc(q,a,w,d,k,b,e,N,G.CE,O,K.uN,K.Og),q instanceof W?q:q.T4===void 0?new W("Expecting associatedInPlayerSlot for single DAI media layout"): {layout:q.layout,De:[q.T4]};var T=g.I(w.renderingContent,IP);if(T){if(!hz(w.adLayoutMetadata))return new W("Invalid ad layout metadata");if(!um(T))return new W("Invalid sequential layout");T=T.sequentialLayouts.map(function(F){return F.playerBytesAdLayoutRenderer}); q=zzm(q,a,w,d,T,k,G,b,O,N,e,Y,K.uN,K.Og,P);return q instanceof W?q:{layout:q.TQ,De:q.De}}return new W("Not able to convert a sequential layout")}; zzm=function(q,a,w,G,k,b,O,e,N,Y,P,K,d,T,F){var J=iGV(k,d,T);if(J instanceof W)return J;var Q=[],B=[];J=g.V(J);for(var L=J.next();!L.done;L=J.next()){var M=L.value;L=q;var H=k[M.Bc],X=M,D=a;M=b;var z=O,Oj=e,$l=N,ey=Y,Nm=P,a_=nk(H);if(a_ instanceof W)L=a_;else{var BJ={layoutId:H.adLayoutMetadata.layoutId,layoutType:H.adLayoutMetadata.layoutType,kT:"adapter"};X=WVc(D,H,X,M);X instanceof W?L=X:(L=Object.assign({},BJ,Mv,{d$:a_,renderingContent:H.renderingContent,clientMetadata:new j4(X),Xw:io(Oj,L)(BJ), adLayoutLoggingData:H.adLayoutMetadata.adLayoutLoggingData}),L=(H=hh(Nm,L,M,z.CE,Oj,$l,ey,void 0,!0))?H instanceof W?H:{layout:L,T4:H}:new W("Expecting associatedInPlayerSlot"))}if(L instanceof W)return L;Q.push(L.layout);B.push(L.T4)}k={layoutId:w.adLayoutMetadata.layoutId,layoutType:w.adLayoutMetadata.layoutType,kT:"core"};a=[new Fv(Number(w.driftRecoveryMs)),new Po(d),new KM(T),new hZ(rS(a)),new MD(K),new TC({})];F&&a.push(new Ho({}));return{TQ:Object.assign({},k,G,{Ks:Q,d$:new Map,clientMetadata:new j4(a), Xw:io(e,q)(k)}),De:B}}; vWc=function(q,a,w,G,k,b,O,e,N,Y,P,K){if(!WZ(w))return new W("Invalid PlayerBytesAdLayoutRenderer");var d=nk(w);if(d instanceof W)return d;var T={layoutId:w.adLayoutMetadata.layoutId,layoutType:w.adLayoutMetadata.layoutType,kT:"core"},F=g.I(w.renderingContent,tz);if(!F)return new W("Invalid rendering content for DAI media layout");F=Jh(F,!1);P={Lh:F,Bc:0,v8:P,vO:Math.min(P+F.videoLengthSeconds*1E3,K),DJ:new Da(0,[F.videoLengthSeconds])};var J;K=(J=Number(w.driftRecoveryMs))!=null?J:void 0;a=WVc(a, w,P,k,K);if(a instanceof W)return a;q=Object.assign({},T,G,{d$:d,renderingContent:w.renderingContent,clientMetadata:new j4(a),Xw:io(b,q)(T),adLayoutLoggingData:w.adLayoutMetadata.adLayoutLoggingData});return(k=hh(O,q,k,N,b,Y,e,void 0,!0))?k instanceof W?k:{layout:q,T4:k}:new W("Expecting associatedInPlayerSlot")}; Xsm=function(q,a,w,G,k,b,O,e,N,Y,P,K,d,T,F,J){var Q=B9(w,b,k.CE);if(Q instanceof W)return Q;if(g.I(w.renderingContent,tz)){N=D8l([w],k,N);if(N instanceof W)return N;if(N.length!==1)return new W("Only expected one media layout.");q=Rzj(q,a,w,Q,N[0],void 0,"core",G,b,O,e,Y,d,T,F,k.CE,K,void 0,J);return q instanceof W?q:{layout:q.layout,De:q.T4?[q.T4]:[]}}var B=g.I(w.renderingContent,IP);if(B){if(!hz(w.adLayoutMetadata))return new W("Invalid ad layout metadata");if(!um(B))return new W("Invalid sequential layout"); B=B.sequentialLayouts.map(function(L){return L.playerBytesAdLayoutRenderer}); q=yZU(q,a,w.adLayoutMetadata,Q,B,G,b,k,N,O,e,Y,P,K,F,d,T,J);return q instanceof W?q:{layout:q.TQ,De:q.De}}return new W("Not able to convert a sequential layout")}; yZU=function(q,a,w,G,k,b,O,e,N,Y,P,K,d,T,F,J,Q,B){var L=new cs({current:null}),M=D8l(k,e,N);if(M instanceof W)return M;N=[];for(var H=[],X=void 0,D=0;D0&&(D.push(B),D.push(new Hs(X.adPodSkipTarget)));(b=Y.get(X.externalVideoId))&&D.push(new VJ(b));b=D}else b=new W("Invalid vod media renderer")}if(b instanceof W)return b;q=Object.assign({},O,G,{d$:M,renderingContent:w.renderingContent,clientMetadata:new j4(b),Xw:io(P,q)(O),adLayoutLoggingData:w.adLayoutMetadata.adLayoutLoggingData});w=g.I(w.renderingContent,tz);if(!w||!oP(w))return new W("Invalid meida renderer");K=FA(K,w.externalVideoId);K.instreamVideoAdRenderer=w;K.s$="AD_PLACEMENT_KIND_START";return T?(N=hh(d,q,N,J,P,Q,F,B,!1),N instanceof W?N:a8l(q.layoutId,d)&&N?{layout:Object.assign({},q,{clientMetadata:new j4(b.concat(new uP(N)))})}:{layout:q,T4:N}): {layout:q}}; q0f=function(q,a,w,G,k){if(!WZ(a))return new W("Invalid PlayerBytesAdLayoutRenderer");var b=g.I(a.renderingContent,zk);if(!b||b.durationMilliseconds===void 0)return new W("Invalid endcap renderer");var O={layoutId:a.adLayoutMetadata.layoutId,layoutType:a.adLayoutMetadata.layoutType,kT:"adapter"};G=[new mq(b.durationMilliseconds),new xr({impressionCommands:void 0,abandonCommands:b.abandonCommands?[{commandExecutorCommand:b.abandonCommands}]:void 0,completeCommands:b.completionCommands}),new hZ(G), new qD("LAYOUT_TYPE_ENDCAP")];if(k){G.push(new fG(k.DJ.adPodIndex-1));G.push(new d2(k.DJ.adPodIndex));var e;G.push(new Hs((e=k.adPodSkipTarget)!=null?e:-1))}return Object.assign({},O,Mv,{renderingContent:a.renderingContent,clientMetadata:new j4(G),d$:b.skipPings?new Map([["skip",b.skipPings]]):new Map,Xw:io(w,q)(O),adLayoutLoggingData:a.adLayoutMetadata.adLayoutLoggingData})}; hh=function(q,a,w,G,k,b,O,e,N){q=q.filter(function(K){return K.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&K.adSlotMetadata.triggeringSourceLayoutId===a.layoutId}); if(q.length!==0){if(q.length!==1)return new W("Invalid InPlayer slot association for the given PlayerBytes layout");q=q[0];O=psc(q,b,w,G,O);if(O instanceof W)return O;var Y;b={slotId:q.adSlotMetadata.slotId,slotType:q.adSlotMetadata.slotType,slotPhysicalPosition:(Y=q.adSlotMetadata.slotPhysicalPosition)!=null?Y:1,kT:"core",slotEntryTrigger:O.slotEntryTrigger,slotFulfillmentTriggers:O.slotFulfillmentTriggers,slotExpirationTriggers:O.slotExpirationTriggers};Y=g.I(q.fulfillmentContent.fulfilledLayout, rOU);if(!Y||!Vrl(Y))return new W("Invalid InPlayerAdLayoutRenderer");O={layoutId:Y.adLayoutMetadata.layoutId,layoutType:Y.adLayoutMetadata.layoutType,kT:"core"};w=B9(Y,w,G);if(w instanceof W)return w;G=[];var P=Y.adLayoutMetadata.layoutType;N&&G.push(new TC({}));if(P==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")G.push.apply(G,g.Tf(woc(q.adSlotMetadata.triggerEvent,a)));else if(P==="LAYOUT_TYPE_ENDCAP"||P==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED"){G.push(new hZ(rS(q.adSlotMetadata.triggerEvent))); if(P==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED")return new W("Cannot parse endcap layout since AdUxReadyApi is not provided");e&&G.push(e)}else return new W("Not able to parse an SDF InPlayer layout");k=Object.assign({},O,w,{renderingContent:Y.renderingContent,d$:new Map,Xw:io(k,b)(O),clientMetadata:new j4(G),adLayoutLoggingData:Y.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},b,{fulfilledLayout:k,clientMetadata:new j4([])})}}; woc=function(q,a){var w=[];w.push(new hZ(rS(q)));w.push(new RU(a.layoutId));(q=oZ(a.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&w.push(new w2(q));(q=oZ(a.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&w.push(new cs(q));(q=oZ(a.clientMetadata,"metadata_type_remote_slots_data"))&&w.push(new VJ(q));(q=oZ(a.clientMetadata,"metadata_type_ad_next_params"))&&w.push(new Qh(q));(q=oZ(a.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&w.push(new AZ(q));(q= oZ(a.clientMetadata,"metadata_type_ad_pod_info"))&&w.push(new ST(q));(a=oZ(a.clientMetadata,"metadata_type_ad_video_id"))&&w.push(new pG(a));return w}; gr_=function(q,a,w,G,k,b){function O(Y){return S9(a,Y)} var e=G.lE.inPlayerSlotId,N={layoutId:G.lE.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",kT:"core"};w={slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,kT:"core",slotEntryTrigger:new aP(O,q),slotFulfillmentTriggers:[new si(O,e)],slotExpirationTriggers:[new FP(O,e),new di(O,w)]};q=Object.assign({},N,{layoutExitNormalTriggers:[new G0(O,q)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Mh:[],d$:new Map,clientMetadata:new j4([new vs(G.lE), new hZ(G.adPlacementConfig),k]),Xw:io(b,w)(N),adLayoutLoggingData:G.lE.adLayoutLoggingData});return Object.assign({},w,{clientMetadata:new j4([new CM(q)])})}; a8l=function(q,a){a=g.V(a);for(var w=a.next();!w.done;w=a.next())if(w=w.value,w.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var G=g.I(w.fulfillmentContent.fulfilledLayout,aN);if(G&&(G=g.I(G.renderingContent,qv))&&G.associatedPlayerBytesLayoutId===q)return w}}; psc=function(q,a,w,G,k){var b=GCl(TK(q.slotEntryTrigger,w,G),k,q,a);if(b instanceof W)return b;for(var O=[],e=g.V(q.slotFulfillmentTriggers),N=e.next();!N.done;N=e.next()){N=TK(N.value,w,G);if(N instanceof W)return N;O.push(N)}O=kCG(O,k,q,a);a=[];q=g.V(q.slotExpirationTriggers);for(k=q.next();!k.done;k=q.next()){k=TK(k.value,w,G);if(k instanceof W)return k;a.push(k)}return{slotEntryTrigger:b,slotFulfillmentTriggers:O,slotExpirationTriggers:a}}; GCl=function(q,a,w,G){return a&&w.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&q instanceof RX?new Wk(function(k){return S9(G,k)},w.adSlotMetadata.slotId):q}; kCG=function(q,a,w,G){return a&&w.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?q.map(function(k){return k instanceof si?new Lr(function(b){return S9(G,b)},w.adSlotMetadata.slotId):k}):q}; B9=function(q,a,w){for(var G=[],k=g.V(q.layoutExitNormalTriggers||[]),b=k.next();!b.done;b=k.next()){b=TK(b.value,a,w);if(b instanceof W)return b;G.push(b)}k=[];b=g.V(q.layoutExitSkipTriggers||[]);for(var O=b.next();!O.done;O=b.next()){O=TK(O.value,a,w);if(O instanceof W)return O;k.push(O)}b=[];O=g.V(q.layoutExitMuteTriggers||[]);for(var e=O.next();!e.done;e=O.next()){e=TK(e.value,a,w);if(e instanceof W)return e;b.push(e)}O=[];q=g.V(q.layoutExitUserInputSubmittedTriggers||[]);for(e=q.next();!e.done;e= q.next()){e=TK(e.value,a,w);if(e instanceof W)return e;O.push(e)}return{layoutExitNormalTriggers:G,layoutExitSkipTriggers:k,layoutExitMuteTriggers:b,layoutExitUserInputSubmittedTriggers:O,Mh:[]}}; nk=function(q){var a=g.I(q.renderingContent,tz);if(a==null?0:a.pings)return Nf(a.pings);q=g.I(q.renderingContent,zk);return(q==null?0:q.skipPings)?new Map([["skip",q.skipPings]]):new Map}; WVc=function(q,a,w,G,k){a=g.I(a.renderingContent,tz);if(!a)return new W("Invalid rendering content for DAI media layout");q=[new U4(G),new lo(w.Lh.videoLengthSeconds),new e4(w.Lh.playerVars),new Po(w.v8),new KM(w.vO),new d2(w.Bc),new hZ(rS(q)),new pG(w.Lh.adVideoId),new ST(w.DJ),a.sodarExtensionData&&new Yr(a.sodarExtensionData),new w2({current:null}),new TC({}),new r2(eH(a.pings))].filter(cZl);k!==void 0&&q.push(new Fv(k));return q}; iGV=function(q,a,w){q=q.map(function(N){return Jh(g.I(N.renderingContent,tz),!1)}); var G=q.map(function(N){return N.videoLengthSeconds}),k=G.map(function(N,Y){return new Da(Y,G)}),b=a,O=w,e=[]; q.forEach(function(N,Y){O=Math.min(b+N.videoLengthSeconds*1E3,w);$B(N.playerVars,k[Y]);e.push({Lh:N,v8:b,vO:O,Bc:Y,DJ:k[Y]});b=O}); return e}; D8l=function(q,a,w){for(var G=[],k=g.V(q),b=k.next();!b.done;b=k.next())if(b=g.I(b.value.renderingContent,tz)){if(!oP(b))return new W("Invalid vod media renderer");G.push(bMc(b))}k=G.map(function(K){return K.p6}); b=[];for(var O=0,e=0;e0?ey:-1;else if(BJ= g.I(a_,zk)){a_=sZG(q,a,w,BJ,b,J,e,z,ey);if(a_ instanceof W){T=a_;break a}a_=a_(d);Q.push(a_.fO);B=[].concat(g.Tf(a_.oe),g.Tf(B));L=[].concat(g.Tf(a_.UT),g.Tf(L));a_.T4&&($l=[a_.T4].concat(g.Tf($l)))}else if(BJ=g.I(a_,z0)){if(T===void 0){T=new W("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:BJ});break a}a_=ZMV(q,a,w,b,BJ,D,e,T,J,Mh(P,"supports_multi_step_on_desktop"));if(a_ instanceof W){T=a_;break a}a_=a_(d);Q.push(a_.fO);a_.T4&&$l.push(a_.T4); B=[].concat(g.Tf(a_.oe),g.Tf(B));L=[].concat(g.Tf(a_.UT),g.Tf(L));M=[].concat(g.Tf(a_.Yp),g.Tf(M));H=[].concat(g.Tf(a_.o3),g.Tf(H));X=[D].concat(g.Tf(X))}else if(a_=g.I(a_,im)){a_=Erm(q,a,w,b,a_,D,e,J);if(a_ instanceof W){T=a_;break a}a_=a_(d);Q.push(a_.fO);a_.T4&&$l.push(a_.T4);L=[].concat(g.Tf(a_.UT),g.Tf(L))}else{T=new W("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}T={Ks:Q,layoutExitSkipTriggers:B,layoutExitUserInputSubmittedTriggers:M,Mh:H,layoutExitMuteTriggers:L,Q8:X,De:$l}}}else a:if(J= B2V(G,w,P),J instanceof W)T=J;else{Q=0;B=[];L=[];M=[];H=[];X=[];D=[];z=new GC({current:null});Oj=new cs({current:null});$l=!1;Nm=[];ey=-1;F=g.V(G);for(a_=F.next();!a_.done;a_=F.next())if(a_=a_.value,g.I(a_,vZ)){a_=FqN(a,w,g.I(a_,vZ),e);if(a_ instanceof W){T=a_;break a}a_=a_(d);B.push(a_.fO);L=[].concat(g.Tf(a_.oe),g.Tf(L));M=[].concat(g.Tf(a_.UT),g.Tf(M));a_.T4&&(Nm=[a_.T4].concat(g.Tf(Nm)))}else if(g.I(a_,tz)){ey=mr(g.I(a_,tz),w,P);if(ey instanceof Xv){T=new W(ey);break a}a_=new Da(Q,J);a_=r4l(a, ey.layoutId,ey.GS,w,QC(ey.playerVars,ey.o1,O,Y,a_),ey.p6,b,a_,e(d),Oj,N.get(ey.GS.externalVideoId),void 0,K);Q++;B.push(a_.fO);L=[].concat(g.Tf(a_.oe),g.Tf(L));M=[].concat(g.Tf(a_.UT),g.Tf(M));$l||(D.push(Oj),$l=!0);ey=(ey=ey.GS.adPodSkipTarget)&&ey>0?ey:-1}else if(g.I(a_,zk)){a_=sZG(q,a,w,g.I(a_,zk),b,Q,e,Oj,ey);if(a_ instanceof W){T=a_;break a}a_=a_(d);B.push(a_.fO);L=[].concat(g.Tf(a_.oe),g.Tf(L));M=[].concat(g.Tf(a_.UT),g.Tf(M));a_.T4&&(Nm=[a_.T4].concat(g.Tf(Nm)))}else if(g.I(a_,z0)){if(T=== void 0){T=new W("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.I(a_,z0)});break a}a_=ZMV(q,a,w,b,g.I(a_,z0),z,e,T,Q,Mh(P,"supports_multi_step_on_desktop"));if(a_ instanceof W){T=a_;break a}a_=a_(d);B.push(a_.fO);a_.T4&&Nm.push(a_.T4);L=[].concat(g.Tf(a_.oe),g.Tf(L));M=[].concat(g.Tf(a_.UT),g.Tf(M));H=[].concat(g.Tf(a_.Yp),g.Tf(H));X=[].concat(g.Tf(a_.o3),g.Tf(X));D=[z].concat(g.Tf(D))}else if(g.I(a_,im)){a_=Erm(q,a,w,b,g.I(a_,im),z,e,Q);if(a_ instanceof W){T=a_;break a}a_=a_(d);B.push(a_.fO);a_.T4&&Nm.push(a_.T4);M=[].concat(g.Tf(a_.UT),g.Tf(M))}else{T=new W("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}T={Ks:B,layoutExitSkipTriggers:L,layoutExitUserInputSubmittedTriggers:H,Mh:X,layoutExitMuteTriggers:M,Q8:D,De:Nm}}T instanceof W?d=T:(X=d.slotId,J=T.Ks,Q=T.layoutExitSkipTriggers,B=T.layoutExitMuteTriggers,L=T.layoutExitUserInputSubmittedTriggers,M=T.Q8,d=e(d),H=k?k.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",X=k?k.layoutId: h3(a.U.get(),H,X),D={layoutId:X,layoutType:H,kT:"core"},d={layout:{layoutId:X,layoutType:H,d$:new Map,layoutExitNormalTriggers:[new Kr(a.V,X)],layoutExitSkipTriggers:Q,layoutExitMuteTriggers:B,layoutExitUserInputSubmittedTriggers:L,Mh:[],kT:"core",clientMetadata:new j4([new kr(J)].concat(g.Tf(M))),Xw:d(D)},De:T.De});return d}}; B2V=function(q,a,w){var G=[];q=g.V(q);for(var k=q.next();!k.done;k=q.next())if(k=k.value,g.I(k,tz)){k=mr(g.I(k,tz),a,w);if(k instanceof Xv)return new W(k);G.push(k.p6)}return G}; M4l=function(q,a,w,G,k,b,O,e){if(!HZU(w,e===void 0?!1:e))return new W("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:w});var N=ZN(w);if(N<=0)return new W("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:w});var Y=new GC({current:null}),P=OGG(q,a,w,Y,G,b,O);return nr_(q,G,b,N,k,function(K,d){var T=K.slotId,F=Em(w);K=O(K);var J,Q=(J=pk(a,G,w.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?J: h3(a.U.get(),"LAYOUT_TYPE_MEDIA_BREAK",T);T={layoutId:Q,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",kT:"core"};J=P(Q,d);var B=oZ(J.clientMetadata,"metadata_type_fulfilled_layout");B||Gj("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");F=[new hZ(G),new mq(N),new xr(F),Y];B&&F.push(new qD(B.layoutType));return{jWQ:{layoutId:Q,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",d$:new Map,layoutExitNormalTriggers:[new Kr(a.V,Q)],layoutExitSkipTriggers:[new $Z(a.V, d.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new ri(a.V,d.layoutId)],Mh:[],kT:"core",clientMetadata:new j4(F),Xw:K(T)},i4:J}})}; h8N=function(q){if(!Ujj(q))return!1;var a=g.I(q.adVideoStart,IN);return a?g.I(q.linearAd,tz)&&XP(a)?!0:(Gj("Invalid Sandwich with notify"),!1):!1}; S0j=function(q){if(q.linearAds==null)return!1;q=g.I(q.adStart,IN);return q?XP(q)?!0:(Gj("Invalid LASR with notify"),!1):!1}; f8_=function(q){if(!pVN(q))return!1;q=g.I(q.adStart,IN);return q?XP(q)?!0:(Gj("Invalid LASR with notify"),!1):!1}; uU=function(q,a,w,G,k,b,O,e,N,Y){this.Y=q;this.U=a;this.V=w;this.Q7=G;this.VE=k;this.W=b;this.RW=O;this.Xm=e;this.gx=N;this.loadPolicy=Y===void 0?1:Y}; Kk=function(q,a,w,G,k,b,O,e,N,Y,P){var K=[];if(a.length===0&&G.length===0&&w.length===0)return K;a=a.filter(jQ);var d=w.filter(hxj),T=G.filter(jQ),F=new Map,J=HGK(a),Q=w.some(function(gy){var F8;return(gy==null?void 0:(F8=gy.adSlotMetadata)==null?void 0:F8.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),B=w.some(function(gy){var F8; return(gy==null?void 0:(F8=gy.adSlotMetadata)==null?void 0:F8.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),L=w.some(function(gy){var F8; return(gy==null?void 0:(F8=gy.adSlotMetadata)==null?void 0:F8.slotType)==="SLOT_TYPE_IN_PLAYER"}),M=w.some(function(gy){var F8,eK; return(gy==null?void 0:(F8=gy.adSlotMetadata)==null?void 0:F8.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(gy==null?void 0:(eK=gy.adSlotMetadata)==null?void 0:eK.slotType)==="SLOT_TYPE_ABOVE_FEED"}); w=w.some(function(gy){var F8;return(gy==null?void 0:(F8=gy.adSlotMetadata)==null?void 0:F8.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"}); if(Q||B||L||M||w)Y=ul_(d,a,e,k,J,q.VE.get(),q.loadPolicy,F,q.Q7.get(),q.Y.get(),L,O,N,Y,P),Y instanceof W?Gj(Y,void 0,void 0,{contentCpn:k}):K.push.apply(K,g.Tf(Y));Y=g.V(a);for(P=Y.next();!P.done;P=Y.next())P=P.value,w=HMK(q,F,P,k,b,O,Q,e,J,N,d),w instanceof W?Gj(w,void 0,void 0,{renderer:P.renderer,config:P.config.adPlacementConfig,kind:P.config.adPlacementConfig.kind,contentCpn:k,daiEnabled:O}):K.push.apply(K,g.Tf(w));c4y(q.Q7.get())||(b=pom(q,T,k,e,J,F),K.push.apply(K,g.Tf(b)));if(q.W===null|| O&&!e.AU){var H,X,D;q=e.pk&&a.length===1&&((H=a[0].config)==null?void 0:(X=H.adPlacementConfig)==null?void 0:X.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((D=a[0].renderer)==null?void 0:D.adBreakServiceRenderer);if(!K.length&&!q){var z,Oj,$l,ey;Gj("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":a.length,contentCpn:k,"first APR kind":(z=a[0])==null?void 0:(Oj=z.config)==null?void 0:($l=Oj.adPlacementConfig)==null?void 0:$l.kind,renderer:(ey= a[0])==null?void 0:ey.renderer})}return K}H=G.filter(jQ);K.push.apply(K,g.Tf(Gvy(F,H,q.U.get(),q.W,k,Q)));if(!K.length){var Nm,a_,BJ,WJ;Gj("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":a.length,contentCpn:k,daiEnabled:O.toString(),"first APR kind":(Nm=a[0])==null?void 0:(a_=Nm.config)==null?void 0:(BJ=a_.adPlacementConfig)==null?void 0:BJ.kind,renderer:(WJ=a[0])==null?void 0:WJ.renderer})}return K}; pom=function(q,a,w,G,k,b){function O(d){return io(q.VE.get(),d)} var e=[];a=g.V(a);for(var N=a.next();!N.done;N=a.next()){N=N.value;var Y=N.renderer,P=Y.sandwichedLinearAdRenderer,K=Y.linearAdSequenceRenderer;P&&h8N(P)?(Gj("Found AdNotify with SandwichedLinearAdRenderer"),K=g.I(P.adVideoStart,IN),P=g.I(P.linearAd,tz),sm(b,Y,N.config.adPlacementConfig.kind),Y=void 0,K=AZJ((Y=K)==null?void 0:Y.layout.layoutId,q.U.get(),q.V.get(),N.config.adPlacementConfig,N.adSlotLoggingData,P,w,G,O,k,q.loadPolicy,q.Q7.get(),q.VE.get()),K instanceof W?Gj(K):e.push.apply(e,g.Tf(K))): K&&(!K.adLayoutMetadata&&S0j(K)||K.adLayoutMetadata&&f8_(K))&&(Gj("Found AdNotify with LinearAdSequenceRenderer"),sm(b,Y,N.config.adPlacementConfig.kind),Y=void 0,P=V4m((Y=g.I(K.adStart,IN))==null?void 0:Y.layout.layoutId,q.U.get(),q.V.get(),N.config.adPlacementConfig,N.adSlotLoggingData,K.linearAds,hz(K.adLayoutMetadata)?K.adLayoutMetadata:void 0,w,G,O,k,q.loadPolicy,q.Q7.get()),P instanceof W?Gj(P):e.push.apply(e,g.Tf(P)))}return e}; HMK=function(q,a,w,G,k,b,O,e,N,Y,P){function K(B){return io(q.VE.get(),B)} var d=w.renderer,T=w.config.adPlacementConfig,F=T.kind,J=w.adSlotLoggingData,Q=e.AU&&F==="AD_PLACEMENT_KIND_START";Q=b&&!Q;if(d.adsEngagementPanelRenderer!=null)return Ck(a,w.elementId,F,d.adsEngagementPanelRenderer.isContentVideoEngagementPanel,d.adsEngagementPanelRenderer.adVideoId,d.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,T,J,function(B,L,M,H){var X=q.V.get(),D=B.slotId,z=d.adsEngagementPanelRenderer;B=io(q.VE.get(),B);return th(X,D,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new JZ(z),L,M,z.impressionPings,B,d.adsEngagementPanelRenderer.adLayoutLoggingData,H)}),[]; if(d.adsEngagementPanelLayoutViewModel)return Ck(a,w.elementId,F,d.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,d.adsEngagementPanelLayoutViewModel.adVideoId,d.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,T,J,function(B,L,M,H){var X=q.V.get(),D=B.slotId,z=d.adsEngagementPanelLayoutViewModel;B=io(q.VE.get(),B);return v9(X,D,"LAYOUT_TYPE_PANEL",new mV(z),L,M,B,d.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,H)}),[]; if(d.actionCompanionAdRenderer!=null){if(d.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return yOJ(q.U.get(),q.W,q.V.get(),d.actionCompanionAdRenderer,T,J,G,K);Ck(a,w.elementId,F,d.actionCompanionAdRenderer.isContentVideoCompanion,d.actionCompanionAdRenderer.adVideoId,d.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,T,J,function(B,L,M,H){var X=q.V.get(),D=B.slotId,z=d.actionCompanionAdRenderer;B=io(q.VE.get(),B);return th(X,D,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new E4(z),L,M,z.impressionPings,B,d.actionCompanionAdRenderer.adLayoutLoggingData,H)})}else if(d.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(d.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return q4c(q.U.get(),q.W,q.V.get(),d.topBannerImageTextIconButtonedLayoutViewModel,T,J,G,K); Ck(a,w.elementId,F,d.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,d.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,d.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,T,J,function(B,L,M,H){var X=q.V.get(),D=B.slotId,z=d.topBannerImageTextIconButtonedLayoutViewModel;B=io(q.VE.get(),B);return v9(X,D,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new Vh(z),L,M,B,d.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,H)})}else if(d.imageCompanionAdRenderer)Ck(a, w.elementId,F,d.imageCompanionAdRenderer.isContentVideoCompanion,d.imageCompanionAdRenderer.adVideoId,d.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,T,J,function(B,L,M,H){var X=q.V.get(),D=B.slotId,z=d.imageCompanionAdRenderer; B=io(q.VE.get(),B);return th(X,D,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new LG(z),L,M,z.impressionPings,B,d.imageCompanionAdRenderer.adLayoutLoggingData,H)}); else if(d.bannerImageLayoutViewModel)Ck(a,w.elementId,F,d.bannerImageLayoutViewModel.isContentVideoCompanion,d.bannerImageLayoutViewModel.adVideoId,d.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,T,J,function(B,L,M,H){var X=q.V.get(),D=B.slotId,z=d.bannerImageLayoutViewModel;B=io(q.VE.get(),B);return v9(X,D,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new Bs(z),L,M,B,d.bannerImageLayoutViewModel.adLayoutLoggingData,H)}); else if(d.shoppingCompanionCarouselRenderer)Ck(a,w.elementId,F,d.shoppingCompanionCarouselRenderer.isContentVideoCompanion,d.shoppingCompanionCarouselRenderer.adVideoId,d.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,T,J,function(B,L,M,H){var X=q.V.get(),D=B.slotId,z=d.shoppingCompanionCarouselRenderer;B=io(q.VE.get(),B);return th(X,D,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new r5(z),L,M,z.impressionPings,B,d.shoppingCompanionCarouselRenderer.adLayoutLoggingData,H)}); else if(d.adBreakServiceRenderer){if(!Djl(w))return[];if(F==="AD_PLACEMENT_KIND_PAUSE")return WKj(q.U.get(),T,J,w.renderer.adBreakServiceRenderer,G);if(F!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&F!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return iZG(q.U.get(),T,J,w.renderer.adBreakServiceRenderer,G,k,b);e.pk||Gj("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:F,adPlacementConfig:T,daiEnabledForContentVideo:String(b),isServedFromLiveInfra:String(e.pk),clientPlaybackNonce:e.clientPlaybackNonce}); if(F==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!q.RW)return new W("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!q.gx)return new W("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");q.gx.Fv({adPlacementRenderer:w,contentCpn:G,CE:k});k=q.RW.get().getCurrentTimeSec(1,!1);return UDl(q.U.get(),w.renderer.adBreakServiceRenderer,T,k,G,J,b)}if(!q.Xm)return new W("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface"); q.Xm.Fv({adPlacementRenderer:w,contentCpn:G,CE:k})}else{if(d.clientForecastingAdRenderer)return N2l(q.U.get(),q.V.get(),T,J,d.clientForecastingAdRenderer,G,k,K);if(d.invideoOverlayAdRenderer)return dDf(q.U.get(),q.V.get(),T,J,d.invideoOverlayAdRenderer,G,k,K);if(d.instreamAdPlayerOverlayRenderer)return PoU(q.U.get(),q.V.get(),T,J,d.instreamAdPlayerOverlayRenderer,G,K);if((d.linearAdSequenceRenderer||d.instreamVideoAdRenderer)&&Q)return ZGJ(q.U.get(),q.V.get(),w,G,K,Y,!q.Q7.get().j.B().T("html5_override_ad_video_length_killswitch")); if(d.linearAdSequenceRenderer&&!Q){if(O)return[];sm(a,d,F);if(d.linearAdSequenceRenderer.adLayoutMetadata){if(!pVN(d.linearAdSequenceRenderer))return new W("Received invalid LinearAdSequenceRenderer.")}else if(d.linearAdSequenceRenderer.linearAds==null)return new W("Received invalid LinearAdSequenceRenderer.");if(g.I(d.linearAdSequenceRenderer.adStart,IN)){Gj("Found AdNotify in LinearAdSequenceRenderer");w=g.I(d.linearAdSequenceRenderer.adStart,IN);if(!ZZc(w))return new W("Invalid AdMessageRenderer."); b=d.linearAdSequenceRenderer.linearAds;return J4c(q.Y.get(),q.U.get(),q.V.get(),q.VE.get(),T,J,w,hz(d.linearAdSequenceRenderer.adLayoutMetadata)?d.linearAdSequenceRenderer.adLayoutMetadata:void 0,b,G,k,e,K,N,q.loadPolicy,q.Q7.get())}return Lq_(q.U.get(),q.V.get(),T,J,d.linearAdSequenceRenderer.linearAds,hz(d.linearAdSequenceRenderer.adLayoutMetadata)?d.linearAdSequenceRenderer.adLayoutMetadata:void 0,G,k,e,K,N,q.loadPolicy,q.Q7.get(),P)}if(!d.remoteSlotsRenderer||b){if(d.instreamVideoAdRenderer&& !Q){if(O)return[];sm(a,d,F);return nWl(q.U.get(),q.V.get(),T,J,d.instreamVideoAdRenderer,G,k,e,K,N,q.loadPolicy,q.Q7.get(),q.VE.get(),P)}if(d.instreamSurveyAdRenderer)return M4l(q.U.get(),q.V.get(),d.instreamSurveyAdRenderer,T,J,G,K,Mh(q.Q7.get(),"supports_multi_step_on_desktop"));if(d.sandwichedLinearAdRenderer!=null)return Ujj(d.sandwichedLinearAdRenderer)?g.I(d.sandwichedLinearAdRenderer.adVideoStart,IN)?(Gj("Found AdNotify in SandwichedLinearAdRenderer"),w=g.I(d.sandwichedLinearAdRenderer.adVideoStart, IN),ZZc(w)?(b=g.I(d.sandwichedLinearAdRenderer.linearAd,tz))?x8V(w,b,T,q.Y.get(),q.U.get(),q.V.get(),q.VE.get(),J,G,k,e,K,N,q.loadPolicy,q.Q7.get()):new W("Missing IVAR from Sandwich"):new W("Invalid AdMessageRenderer.")):Lq_(q.U.get(),q.V.get(),T,J,[d.sandwichedLinearAdRenderer.adVideoStart,d.sandwichedLinearAdRenderer.linearAd],void 0,G,k,e,K,N,q.loadPolicy,q.Q7.get()):new W("Received invalid SandwichedLinearAdRenderer.");if(d.videoAdTrackingRenderer!=null)return l8K(q.U.get(),q.V.get(),d.videoAdTrackingRenderer, T,J,G,k,e.tK,K)}}return[]}; zK=function(q,a,w,G,k,b,O,e){g.c.call(this);var N=this;this.U=q;this.W=a;this.wz=G;this.RW=k;this.Q7=b;this.p7=O;this.W5=e;this.V=null;w.get().addListener(this);this.addOnDisposeCallback(function(){w.t2()||w.get().removeListener(N)}); G.get().addListener(this);this.addOnDisposeCallback(function(){G.t2()||G.get().removeListener(N)})}; DN=function(q,a,w){var G=q.RW.get().getCurrentTimeSec(1,!1);q.Q7.get().j.B().TZ()&&Bk(q.p7.get(),"sdai","onopp.1;evt."+w.event+";start."+w.startSecs.toFixed(3)+";d."+w.LT.toFixed(3));yg(q.U.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var k=q.W.get(),b=a.adPlacementRenderer.renderer.adBreakServiceRenderer,O=a.contentCpn,e=a.adPlacementRenderer.adSlotLoggingData;iU(q.Q7.get());var N=q.p7;var Y=k.Q7.get();Y=g.Wo(Y.j.B().experiments,"max_prefetch_window_sec_for_livestream_optimization"); var P=k.Q7.get();var K=g.Wo(P.j.B().experiments,"min_prefetch_offset_sec_for_livestream_optimization");P=w.startSecs*1E3;P={Fx:new FN(P,P+w.LT*1E3),D_:!1,cueProcessedMs:G*1E3};var d=w.startSecs+w.LT;if(G===0)P.b5=new FN(0,d*1E3);else{K=w.startSecs-K;var T=K-G;P.b5=T<=0?new FN(K*1E3,d*1E3):new FN(Math.floor(G+Math.random()*Math.min(T,Y))*1E3,d*1E3)}b=dS(k,b,O,P,e,[new bo(w)]);W9(k.Q7.get())&&Bk(N.get(),"abrsm","cpi."+w.identifier+";cps."+w.startSecs+";cpd."+w.LT+";cts."+G+";rbf."+P.b5.start);N.get().j.EU(w.startSecs- G,P.b5.start/1E3-G);return[b]})}; RN=function(q){var a,w=(a=oZ(q.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:a.current;if(!w)return null;a=oZ(q.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var G=q.layoutId,k=oZ(q.clientMetadata,"metadata_type_content_cpn"),b=oZ(q.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),O=oZ(q.clientMetadata,"metadata_type_player_overlay_layout_renderer"),e=oZ(q.clientMetadata,"metadata_type_player_underlay_renderer"),N=oZ(q.clientMetadata, "metadata_type_ad_placement_config"),Y=oZ(q.clientMetadata,"metadata_type_video_length_seconds");var P=co(q.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?oZ(q.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):co(q.clientMetadata,"metadata_type_layout_enter_ms")&&co(q.clientMetadata,"metadata_type_layout_exit_ms")?(oZ(q.clientMetadata,"metadata_type_layout_exit_ms")-oZ(q.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{Sm:G,contentCpn:k,K2:w,ze:a,instreamAdPlayerOverlayRenderer:b, playerOverlayLayoutRenderer:O,instreamAdPlayerUnderlayRenderer:e,adPlacementConfig:N,videoLengthSeconds:Y,y5:P,inPlayerLayoutId:oZ(q.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:oZ(q.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; jZV=function(q,a){return Xof(q,a)}; orc=function(q,a){a=Xof(q,a);if(!a)return null;var w;a.y5=(w=oZ(q.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:w.adBreakRemainingLengthSeconds;return a}; Xof=function(q,a){var w,G=(w=oZ(q.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:w.current;if(!G)return null;w=bPl(q,a);return{df:ksm(q,a),adPlacementConfig:oZ(q.clientMetadata,"metadata_type_ad_placement_config"),Wp:w,contentCpn:oZ(q.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:oZ(q.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:oZ(q.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:oZ(q.clientMetadata, "metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,y5:void 0,K2:G,Sm:q.layoutId,videoLengthSeconds:oZ(q.clientMetadata,"metadata_type_video_length_seconds")}}; yC=function(q,a,w,G,k,b,O,e,N){g.c.call(this);this.Y=q;this.L=a;this.D=w;this.W=G;this.V=k;this.U=b;this.VE=O;this.Q7=e;this.n7=N;this.SZ=!0}; I8V=function(q,a,w){return S4_(q.V.get(),a.contentCpn,a.Sm,function(G){return fPN(q.U.get(),G.slotId,w,a.adPlacementConfig,a.Sm,io(q.VE.get(),G))})}; qS=function(q,a,w,G,k,b,O,e){g.c.call(this);this.U=q;this.V=a;this.W=w;this.Q7=G;this.Y=k;this.n7=b;this.RW=O;this.j1=e}; gt=function(q){g.c.call(this);this.V=q}; yg=function(q,a,w,G){q.V().Xf(a,G);w=w();q=q.V();q.lF.YO("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",a,G,w);a=g.V(w);for(w=a.next();!w.done;w=a.next())a:{G=q;w=w.value;G.lF.Ka("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",w);G.lF.Ka("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",w);try{var k=G.V;if(g.rn(w.slotId))throw new W("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(GS(k,w))throw new W("Duplicate registration for slot.",{slotId:w.slotId,slotEntryTriggerType:w.slotEntryTrigger.triggerType}, "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!k.t4.H3.has(w.slotType))throw new W("No fulfillment adapter factory registered for slot of type: "+w.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!k.t4.hH.has(w.slotType))throw new W("No SlotAdapterFactory registered for slot of type: "+w.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");Vg(k,"TRIGGER_CATEGORY_SLOT_ENTRY",w.slotEntryTrigger?[w.slotEntryTrigger]:[]);Vg(k,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", w.slotFulfillmentTriggers);Vg(k,"TRIGGER_CATEGORY_SLOT_EXPIRATION",w.slotExpirationTriggers);var b=G.V,O=w.slotType+"_"+w.slotPhysicalPosition,e=$P(b,O);if(GS(b,w))throw new W("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");e.set(w.slotId,new R_N(w));b.V.set(O,e)}catch(Oj){Oj instanceof W&&Oj.Ok?(G.lF.Jm("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",Oj.Ok,w),Gj(Oj,w,void 0,void 0,Oj.Ce)):(G.lF.Jm("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", w),Gj(Oj,w));break a}GS(G.V,w).L=!0;try{var N=G.V,Y=GS(N,w),P=w.slotEntryTrigger,K=N.t4.V_.get(P.triggerType);K&&(K.lO("TRIGGER_CATEGORY_SLOT_ENTRY",P,w,null),Y.y7.set(P.triggerId,K));for(var d=g.V(w.slotFulfillmentTriggers),T=d.next();!T.done;T=d.next()){var F=T.value,J=N.t4.V_.get(F.triggerType);J&&(J.lO("TRIGGER_CATEGORY_SLOT_FULFILLMENT",F,w,null),Y.F9.set(F.triggerId,J))}for(var Q=g.V(w.slotExpirationTriggers),B=Q.next();!B.done;B=Q.next()){var L=B.value,M=N.t4.V_.get(L.triggerType);M&&(M.lO("TRIGGER_CATEGORY_SLOT_EXPIRATION", L,w,null),Y.J.set(L.triggerId,M))}var H=N.t4.H3.get(w.slotType).get().build(N.W,w);Y.X=H;var X=N.t4.hH.get(w.slotType).get().build(N.D,w);X.init();Y.U=X}catch(Oj){Oj instanceof W&&Oj.Ok?(G.lF.Jm("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",Oj.Ok,w),Gj(Oj,w,void 0,void 0,Oj.Ce)):(G.lF.Jm("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",w),Gj(Oj,w));g3(G,w,!0);break a}G.lF.Ka("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",w);G.V.MH(w);for(var D=g.V(G.U),z=D.next();!z.done;z= D.next())z.value.MH(w);Ow(G,w)}}; ak=function(q,a,w,G,k){g.c.call(this);var b=this;this.U=q;this.W=a;this.ya=w;this.context=k;this.V=new Map;G.get().addListener(this);this.addOnDisposeCallback(function(){G.t2()||G.get().removeListener(b)})}; ovK=function(q,a){var w=0x8000000000000,G=0,k=0x8000000000000;var b=g.V(a.slotFulfillmentTriggers);for(var O=b.next();!O.done;O=b.next())if(O=O.value,O instanceof eQ){var e=O.V.start;w=Math.min(w,e);G=Math.max(G,O.V.end);O.visible&&(k=Math.min(k,e))}else Gj("Found unexpected fulfillment trigger for throttled slot.",a,null,{fulfillmentTrigger:O});b=w;k=k<0x8000000000000&&w0&&Kp(q.L(),w)}; Et=function(q,a,w,G,k){for(var b=[],O=g.V(q.iF.values()),e=O.next();!e.done;e=O.next()){var N=e=e.value,Y=N.trigger;N=N.slot;if(Y.triggerType===a){if(Y instanceof bm||Y instanceof Oi||Y instanceof Nc){if(k&&Y.breakDurationMs!==w)continue;if(!k&&Y.breakDurationMs===w)continue;if(G.has(N.slotId))continue}b.push(e)}}b.length>0&&Kp(q.L(),b)}; abl=function(q,a){a=(a.LT+1)*1E3;var w=void 0;q=g.V(q.iF.values());for(var G=q.next();!G.done;G=q.next()){var k=G.value;G=k.trigger;k=k.slot;G instanceof bm&&G.breakDurationMs<=a&&(!w||G.breakDurationMs>w.trigger.breakDurationMs)&&(w={slot:k,trigger:G})}return w}; wTG=function(q){q=q.adPlacementRenderer.config.adPlacementConfig;if(!q.prefetchModeConfig||!q.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;q=Number(q.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(q)||q<=0?0:Math.floor(Math.random()*q)}; GSj=function(q){q=q.adPlacementRenderer.config.adPlacementConfig;if(q.prefetchModeConfig&&q.prefetchModeConfig.cacheFetchRefreshDurationMs&&(q=Number(q.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(q)||q<=0)))return q}; Vd=function(q){q.V=null;q.iF.clear();q.U&&q.U.stop();q.D&&q.D.stop();var a;(a=q.W)==null||a.stop();delete q.W}; qwK=function(q){var a=[];q=g.V(q.iF.values());for(var w=q.next();!w.done;w=q.next())w=w.value.trigger,w instanceof bm&&a.push(w.breakDurationMs);return a}; J6=function(q){g.c.call(this);this.W=q;this.SZ=!0;this.iF=new Map;this.V=new Map;this.U=new Map}; kSV=function(q,a){var w=[];if(a=q.V.get(a.layoutId)){a=g.V(a);for(var G=a.next();!G.done;G=a.next())(G=q.U.get(G.value.triggerId))&&w.push(G)}return w}; mw=function(q){g.c.call(this);this.V=q;this.iF=new Map}; bpN=function(q,a){for(var w=[],G=g.V(q.iF.values()),k=G.next();!k.done;k=G.next())k=k.value,k.trigger instanceof Wk&&k.trigger.slotId===a&&w.push(k);w.length>=1&&Kp(q.V(),w)}; Opm=function(q,a){var w={slotId:qf(a,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],kT:"surface",clientMetadata:new j4([])},G=Object,k=G.assign;a=h3(a,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",w.slotId);a={layoutId:a,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",d$:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Mh:[],kT:"surface", clientMetadata:new j4([]),Xw:ppl(!1,w.slotId,w.slotType,w.slotPhysicalPosition,w.kT,w.slotEntryTrigger,w.slotFulfillmentTriggers,w.slotExpirationTriggers,a,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return k.call(G,{},q,{Xp:!0,slot:w,layout:a})}; zxl=function(q,a,w,G){var k=q.kind;G=G?!1:!q.hideCueRangeMarker;switch(k){case "AD_PLACEMENT_KIND_START":return G={Fx:new FN(-0x8000000000000,-0x8000000000000),D_:G},w!=null&&(G.b5=new FN(-0x8000000000000,-0x8000000000000)),G;case "AD_PLACEMENT_KIND_END":return G={Fx:new FN(0x7ffffffffffff,0x8000000000000),D_:G},w!=null&&(G.b5=new FN(Math.max(0,a-w),0x8000000000000)),G;case "AD_PLACEMENT_KIND_MILLISECONDS":k=q.adTimeOffset;k.offsetStartMilliseconds||Gj("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); k.offsetEndMilliseconds||Gj("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");q=Number(k.offsetStartMilliseconds);k=Number(k.offsetEndMilliseconds);k===-1&&(k=a);if(Number.isNaN(q)||Number.isNaN(k)||q>k)return new W("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:q,offsetEndMs:k},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",k===a&&q-500<=k);G={Fx:new FN(q,k),D_:G};if(w!=null){q=Math.max(0,q-w);if(q===k)return G;G.b5=new FN(q,k)}return G; default:return new W("AdPlacementKind not supported in convertToRange.",{kind:k,adPlacementConfig:q})}}; lbl=function(q){if(!q||!q.adPlacements&&!q.adSlots)return!1;for(var a=g.V(q.adPlacements||[]),w=a.next();!w.done;w=a.next())if(w=w.value)if(w=w.adPlacementRenderer,w!=null&&(w.config&&w.config.adPlacementConfig&&w.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;q=g.V(q.adSlots||[]);for(a=q.next();!a.done;a=q.next()){var G=w=void 0;if(((w=g.I(a.value,P9))==null?void 0:(G=w.adSlotMetadata)==null?void 0:G.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; Qd=function(q){this.Q7=q;this.U=new Map;this.V=new Map;this.W=new Map}; qf=function(q,a){if(A6(q.Q7.get())){var w=q.U.get(a)||0;w++;q.U.set(a,w);return a+"_"+w}return g.K5(16)}; h3=function(q,a,w){if(A6(q.Q7.get())){var G=q.V.get(a)||0;G++;q.V.set(a,G);return w+"_"+a+"_"+G}return g.K5(16)}; S9=function(q,a){if(A6(q.Q7.get())){var w=q.W.get(a)||0;w++;q.W.set(a,w);return a+"_"+w}return g.K5(16)}; eSV=function(q){var a=[new RU(q.Sm),new aZ(q.K2),new hZ(q.adPlacementConfig),new lo(q.videoLengthSeconds),new J4(q.y5)];q.instreamAdPlayerOverlayRenderer&&a.push(new Xl(q.instreamAdPlayerOverlayRenderer));q.playerOverlayLayoutRenderer&&a.push(new jT(q.playerOverlayLayoutRenderer));q.ze&&a.push(new cs(q.ze));return a}; N3_=function(q,a,w,G,k,b){q=w.inPlayerLayoutId?w.inPlayerLayoutId:h3(b,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",q);var O,e,N=w.instreamAdPlayerOverlayRenderer?(O=w.instreamAdPlayerOverlayRenderer)==null?void 0:O.adLayoutLoggingData:(e=w.playerOverlayLayoutRenderer)==null?void 0:e.adLayoutLoggingData;O={layoutId:q,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",kT:a};return{layoutId:q,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",d$:new Map,layoutExitNormalTriggers:[new G0(function(Y){return S9(b, Y)},w.Sm)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Mh:[],kT:a,clientMetadata:G,Xw:k(O),adLayoutLoggingData:N}}; xR=function(q,a){var w=this;this.U=q;this.Q7=a;this.V=function(G){return S9(w.U.get(),G)}}; fPN=function(q,a,w,G,k,b){w=new j4([new oU(w),new hZ(G)]);a=h3(q.U.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",a);G={layoutId:a,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",kT:"core"};return{layoutId:a,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",d$:new Map,layoutExitNormalTriggers:[new G0(function(O){return S9(q.U.get(),O)},k)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Mh:[],kT:"core",clientMetadata:w,Xw:b(G),adLayoutLoggingData:void 0}}; Ah=function(q,a,w,G,k){var b=eSV(G);return N3_(a,w,G,new j4(b),k,q.U.get())}; Ywm=function(q,a,w,G,k){var b=eSV(G);b.push(new nG(G.df));b.push(new M8(G.Wp));return N3_(a,w,G,new j4(b),k,q.U.get())}; th=function(q,a,w,G,k,b,O,e,N,Y){a=h3(q.U.get(),w,a);var P={layoutId:a,layoutType:w,kT:"core"},K=new Map;O&&K.set("impression",O);O=[new YZ(q.V,k,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];Y&&O.push(new wi(q.V,Y,["normal"]));return{layoutId:a,layoutType:w,d$:K,layoutExitNormalTriggers:O,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Mh:[],kT:"core",clientMetadata:new j4([G,new hZ(b),new RU(k)]),Xw:e(P),adLayoutLoggingData:N}}; v9=function(q,a,w,G,k,b,O,e,N){a=h3(q.U.get(),w,a);var Y={layoutId:a,layoutType:w,kT:"core"},P=[new YZ(q.V,k,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];N&&P.push(new wi(q.V,N,["normal"]));return{layoutId:a,layoutType:w,d$:new Map,layoutExitNormalTriggers:P,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Mh:[],kT:"core",clientMetadata:new j4([G,new hZ(b),new RU(k)]),Xw:O(Y),adLayoutLoggingData:e}}; H9=function(q,a,w){var G=[];G.push(new PZ(q.V,w));a&&G.push(a);return G}; fk=function(q,a,w,G,k,b,O){var e={layoutId:a,layoutType:w,kT:"core"};return{layoutId:a,layoutType:w,d$:new Map,layoutExitNormalTriggers:O,layoutExitSkipTriggers:[new yZ(q.V,a)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Mh:[],kT:"core",clientMetadata:new j4([new xW(G),new hZ(k)]),Xw:b(e),adLayoutLoggingData:G.adLayoutLoggingData}}; VC=function(q,a,w,G,k,b,O,e){var N={layoutId:a,layoutType:b,kT:"core"};return{layoutId:a,layoutType:b,d$:new Map,layoutExitNormalTriggers:[new G0(q.V,w)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Mh:[],kT:"core",clientMetadata:new j4([new hZ(G)].concat(g.Tf(O))),Xw:k(N),adLayoutLoggingData:e}}; pk=function(q,a,w,G){if(q.Q7.get().jo(a.kind==="AD_PLACEMENT_KIND_START"))if(w===void 0)Gj("Expected SSAP layout ID in renderer",void 0,void 0,{caller:G});else return w}; T2c=function(q,a,w,G,k,b,O,e,N,Y,P,K,d){q=c9(q,a,w,k,b,O,e,N,K,pk(q,w,G.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),d);a=q.Q8;w=new yh(q.J9);G=q.layoutExitSkipTriggers;Y>0&&(a.push(w),a.push(new Hs(Y)),G=[]);a.push(new fG(P));return{fO:{layoutId:q.layoutId,layoutType:q.layoutType,d$:q.d$,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Mh:[],kT:q.kT,clientMetadata:new j4(a),Xw:q.Xw,adLayoutLoggingData:q.adLayoutLoggingData}, oe:G,UT:q.layoutExitMuteTriggers,Yp:q.layoutExitUserInputSubmittedTriggers,o3:q.Mh,T4:q.T4}}; Com=function(q,a,w,G,k,b,O,e,N,Y){a=c9(q,a,w,G,b,new Map,O,function(P){return e(P,N)},void 0,pk(q,w,k.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey")); q=new ri(q.V,a.J9);w=new yh(a.J9);Y=new fG(Y);return{fO:{layoutId:a.layoutId,layoutType:a.layoutType,d$:a.d$,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Mh:[],kT:a.kT,clientMetadata:new j4([].concat(g.Tf(a.Q8),[w,Y])),Xw:a.Xw,adLayoutLoggingData:a.adLayoutLoggingData},oe:a.layoutExitSkipTriggers,UT:a.layoutExitMuteTriggers,Yp:[].concat(g.Tf(a.layoutExitUserInputSubmittedTriggers),[q]),o3:a.Mh,T4:a.T4}}; c9=function(q,a,w,G,k,b,O,e,N,Y,P){a=Y!=null?Y:h3(q.U.get(),"LAYOUT_TYPE_MEDIA_BREAK",a);Y={layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",kT:"adapter"};e=e(a);var K=oZ(e.clientMetadata,"metadata_type_fulfilled_layout");K||Gj("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var d=K?K.layoutId:"";w=[new hZ(w),new mq(G),new xr(k)];K&&w.push(new qD(K.layoutType));P&&w.push(new d2(P));return{layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_BREAK", d$:b,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new $Z(q.V,d)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Mh:[],kT:"adapter",Q8:w,Xw:O(Y),adLayoutLoggingData:N,T4:e,J9:d}}; MTG=function(q,a,w,G,k,b,O,e,N,Y,P){q=Ptl(q,a,"core",w,G,k,b,O,e,N,Y,void 0,P);return{layoutId:q.layoutId,layoutType:q.layoutType,d$:q.d$,layoutExitNormalTriggers:q.layoutExitNormalTriggers,layoutExitSkipTriggers:q.layoutExitSkipTriggers,layoutExitMuteTriggers:q.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:q.layoutExitUserInputSubmittedTriggers,Mh:q.Mh,kT:q.kT,clientMetadata:new j4(q.Rn),Xw:q.Xw,adLayoutLoggingData:q.adLayoutLoggingData}}; r4l=function(q,a,w,G,k,b,O,e,N,Y,P,K,d){a=Ptl(q,a,"adapter",w,G,k,b,O,e,N,P,K,d);G=a.layoutExitSkipTriggers;k=a.Rn;w.adPodSkipTarget&&w.adPodSkipTarget>0&&(k.push(Y),k.push(new Hs(w.adPodSkipTarget)),G=[]);k.push(new fG(e.adPodIndex));w.isCritical&&(G=[new wi(q.V,a.layoutId,["error"])].concat(g.Tf(G)));return{fO:{layoutId:a.layoutId,layoutType:a.layoutType,d$:a.d$,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Mh:[],kT:a.kT, clientMetadata:new j4(k),Xw:a.Xw,adLayoutLoggingData:a.adLayoutLoggingData},oe:G,UT:a.layoutExitMuteTriggers,Yp:a.layoutExitUserInputSubmittedTriggers,o3:a.Mh}}; Ptl=function(q,a,w,G,k,b,O,e,N,Y,P,K,d){var T={layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA",kT:w};k=[new hZ(k),new ST(N),new pG(G.externalVideoId),new U4(e),new xr({impressionCommands:G.impressionCommands,abandonCommands:G.onAbandonCommands,completeCommands:G.completeCommands,progressCommands:G.adVideoProgressCommands}),new e4(b),new w2({current:null}),new lo(O)];(b=G.playerOverlay.instreamAdPlayerOverlayRenderer)&&k.push(new Xl(b));(O=G.playerOverlay.playerOverlayLayoutRenderer)&&k.push(new jT(O)); K&&k.push(new ND(K));(K=G.playerUnderlay)&&k.push(new oU(K));e=qf(q.U.get(),"SLOT_TYPE_IN_PLAYER");K=(K=b?b.elementId:O==null?void 0:O.layoutId)?K:h3(q.U.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",e);k.push(new yh(K));k.push(new g2(e));k.push(new d2(N.adPodIndex));G.adNextParams&&k.push(new Qh(G.adNextParams));G.shrunkenPlayerBytesConfig&&k.push(new tZ(G.shrunkenPlayerBytesConfig));G.clickthroughEndpoint&&k.push(new AZ(G.clickthroughEndpoint));G.legacyInfoCardVastExtension&&k.push(new QJ(G.legacyInfoCardVastExtension)); G.sodarExtensionData&&k.push(new Yr(G.sodarExtensionData));P&&k.push(new VJ(P));k.push(new r2(eH(G.pings)));N=Nf(G.pings);if(d){a:{d=g.V(d);for(P=d.next();!P.done;P=d.next())if(P=P.value,P.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(b=g.I(P.fulfillmentContent.fulfilledLayout,aN))&&(b=g.I(b.renderingContent,qv))&&b.associatedPlayerBytesLayoutId===a){d=P;break a}d=void 0}d&&k.push(new IU(d))}return{layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA",d$:N,layoutExitNormalTriggers:[new Kr(q.V,a)],layoutExitSkipTriggers:G.skipOffsetMilliseconds? [new $Z(q.V,K)]:[],layoutExitMuteTriggers:[new $Z(q.V,K)],layoutExitUserInputSubmittedTriggers:[],Mh:[],kT:w,Rn:k,Xw:Y(T),adLayoutLoggingData:G.adLayoutLoggingData}}; VT_=function(q,a,w,G,k,b,O,e,N){G.every(function(P){return pM(P,[],["LAYOUT_TYPE_MEDIA"])})||Gj("Unexpect subLayout type for DAI composite layout"); a=h3(q.U.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",a);var Y={layoutId:a,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",kT:"core"};return{layoutId:a,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",d$:new Map,layoutExitNormalTriggers:[new kZ(q.V)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Mh:[],kT:"core",clientMetadata:new j4([new Po(w),new KM(e),new kr(G),new hZ(k),new Fv(b),new TC({}),new MD(N)]),Xw:O(Y)}}; sUl=function(q){return q!=null}; LO=function(q,a,w){var G=this;this.U=q;this.W=a;this.Q7=w;this.V=function(k){return S9(G.U.get(),k)}}; UDl=function(q,a,w,G,k,b,O){if(!w.prefetchModeConfig)return new W("AdPlacementConfig for Live Prefetch is missing prefetch_config");w=w.prefetchModeConfig;G*=1E3;var e=[];if(!w.breakLengthMs)return new W("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var N=g.V(w.breakLengthMs),Y=N.next();!Y.done;Y=N.next())if(Y=Y.value,Number(Y)>0){var P=G+Number(w.startTimeOffsetMs),K=P+Number(w.cacheFetchSmearingDurationMs);Y={Fx:new FN(K,K+Number(Y)),D_:!1,b5:new FN(Math.floor(P+Math.random()* Number(w.cacheFetchSmearingDurationMs)),K),cueProcessedMs:G?G:P};P=[];P.push(new Ho({}));K=[];K.push(new T0(q.V));K.push(new lQU(q.V));O&&P.push(new TC({}));e.push(dS(q,a,k,Y,b,P,K))}return e}; dS=function(q,a,w,G,k,b,O){b=b===void 0?[]:b;var e=qf(q.U.get(),"SLOT_TYPE_AD_BREAK_REQUEST");O||(O=[],G.b5&&G.b5.start!==G.Fx.start&&O.push(new eQ(q.V,w,new FN(G.b5.start,G.Fx.start),!1)),O.push(new eQ(q.V,w,new FN(G.Fx.start,G.Fx.end),G.D_)));G={getAdBreakUrl:a.getAdBreakUrl,uN:G.Fx.start,Og:G.Fx.end,cueProcessedMs:G.cueProcessedMs};a=new Zq(q.V,e);b=[new Z8(G)].concat(g.Tf(b));return{slotId:e,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:a,slotFulfillmentTriggers:O, slotExpirationTriggers:[new di(q.V,w),new FP(q.V,e),new Cr(q.V,e)],kT:"core",clientMetadata:new j4(b),adSlotLoggingData:k}}; dhJ=function(q,a,w){var G=[];w=g.V(w);for(var k=w.next();!k.done;k=w.next())G.push(Ksf(q,a,k.value));return G}; Ksf=function(q,a,w){return w.triggeringSlotId!=null&&w.triggeringSlotId===q?w.clone(a):w}; bG_=function(q,a,w,G,k){return T3U(q,a,w,G,k)}; $Dc=function(q,a,w,G){var k=qf(q.U.get(),"SLOT_TYPE_IN_PLAYER");return T3U(q,k,a,w,G)}; T3U=function(q,a,w,G,k){var b=new aP(q.V,w),O=[new si(q.V,a)];q=[new FP(q.V,a),new di(q.V,G)];return{slotId:a,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:O,slotExpirationTriggers:q,kT:"core",clientMetadata:new j4([new CM(k({slotId:a,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,kT:"core",slotEntryTrigger:b,slotFulfillmentTriggers:O,slotExpirationTriggers:q},w))]),adSlotLoggingData:void 0}}; nr_=function(q,a,w,G,k,b){var O=qf(q.U.get(),"SLOT_TYPE_PLAYER_BYTES"),e=qf(q.U.get(),"SLOT_TYPE_IN_PLAYER"),N=h3(q.U.get(),"LAYOUT_TYPE_SURVEY",e);G=Bc(q,a,w,G);var Y=[new si(q.V,O)];w=[new FP(q.V,O),new di(q.V,w),new yZ(q.V,N)];if(G instanceof W)return G;e=b({slotId:O,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,kT:"core",slotEntryTrigger:G,slotFulfillmentTriggers:Y,slotExpirationTriggers:w},{slotId:e,layoutId:N});b=e.jWQ;e=e.i4;return[{slotId:O,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:XA(q,a,O,G),slotFulfillmentTriggers:j9(q,a,O,Y),slotExpirationTriggers:w,kT:"core",clientMetadata:new j4([new CM(b),new h4(oN(a)),new fM({Sa:q.Sa(a)})]),adSlotLoggingData:k},e]}; oN=function(q){return q.kind==="AD_PLACEMENT_KIND_START"}; hzV=function(q,a,w,G,k){k=k?k:qf(q.U.get(),"SLOT_TYPE_IN_PLAYER");w=new aP(q.V,w);var b=[new si(q.V,k)];q=[new di(q.V,a),new FP(q.V,k)];return{slotId:k,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:w,slotFulfillmentTriggers:b,slotExpirationTriggers:q,kT:"core",clientMetadata:new j4([new CM(G({slotId:k,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,kT:"core",slotEntryTrigger:w,slotFulfillmentTriggers:b,slotExpirationTriggers:q}))])}}; S4_=function(q,a,w,G){var k=qf(q.U.get(),"SLOT_TYPE_PLAYER_UNDERLAY");w=new aP(q.V,w);var b=[new si(q.V,k)];q=[new di(q.V,a),new FP(q.V,k)];return{slotId:k,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:w,slotFulfillmentTriggers:b,slotExpirationTriggers:q,kT:"core",clientMetadata:new j4([new CM(G({slotId:k,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,kT:"core",slotEntryTrigger:w,slotFulfillmentTriggers:b,slotExpirationTriggers:q}))])}}; QUJ=function(q,a,w,G,k,b,O){var e=qf(q.U.get(),"SLOT_TYPE_IN_PLAYER"),N=h3(q.U.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",e);G=$hU(q,G,b,O,N);if(G instanceof W)return G;O=[new si(q.V,e)];k=[new di(q.V,b),new si(q.V,k),new BZ(q.V,k)];w=io(w,{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,kT:"core",slotEntryTrigger:G,slotFulfillmentTriggers:O,slotExpirationTriggers:k});q=q.W.get();b={layoutId:N,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",kT:"core"};a={layoutId:N,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", d$:new Map,layoutExitNormalTriggers:[new $jJ(q.V,N,a.durationMs)],layoutExitSkipTriggers:[new FK_(q.V,N,a.durationMs)],Mh:[new sec(q.V,N)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],kT:"core",clientMetadata:new j4([new A4(a)]),Xw:w(b)};return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,kT:"core",slotEntryTrigger:G,slotFulfillmentTriggers:O,slotExpirationTriggers:k,clientMetadata:new j4([new CM(a)])}}; Kqc=function(q,a,w,G,k,b){a=Bc(q,a,w,G);if(a instanceof W)return a;var O=a instanceof eQ?new KKK(q.V,w,a.V):null;G=qf(q.U.get(),"SLOT_TYPE_IN_PLAYER");var e=[new si(q.V,G)];q=[new di(q.V,w),new FP(q.V,G)];b=b({slotId:G,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,kT:"core",slotEntryTrigger:a,slotFulfillmentTriggers:e,slotExpirationTriggers:q},O);return b instanceof Xv?new W(b):{slotId:G,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:a,slotFulfillmentTriggers:e,slotExpirationTriggers:q, kT:"core",clientMetadata:new j4([new CM(b)]),adSlotLoggingData:k}}; Y0y=function(q,a,w,G){var k=qf(q.U.get(),"SLOT_TYPE_IN_PLAYER"),b=new RX(q.V,a),O=[new Lr(q.V,k)];q=[new di(q.V,a),new FP(q.V,k)];return{slotId:k,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:O,slotExpirationTriggers:q,kT:"core",clientMetadata:new j4([new CM(G({slotId:k,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,kT:"core",slotEntryTrigger:b,slotFulfillmentTriggers:O,slotExpirationTriggers:q}))]),adSlotLoggingData:w}}; PPc=function(q,a,w,G){var k=qf(q.U.get(),"SLOT_TYPE_IN_PLAYER");w=new aP(q.V,w);var b=[new si(q.V,k)],O=[new FP(q.V,k),new di(q.V,a)];b={slotId:k,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,kT:"core",slotEntryTrigger:w,slotFulfillmentTriggers:b,slotExpirationTriggers:O};return{slotId:k,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:w,slotFulfillmentTriggers:[new si(q.V,k)],slotExpirationTriggers:[new di(q.V,a),new FP(q.V,k)],kT:"core",clientMetadata:new j4([new CM(G(b))])}}; ezj=function(q,a,w,G,k){var b=qf(q.U.get(),"SLOT_TYPE_IN_PLAYER");w=new gi(q.V,G,w);G=[new si(q.V,b)];q=[new di(q.V,a)];return{slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:w,slotFulfillmentTriggers:G,slotExpirationTriggers:q,kT:"core",clientMetadata:new j4([new CM(k({slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,kT:"core",slotEntryTrigger:w,slotFulfillmentTriggers:G,slotExpirationTriggers:q}))])}}; wsm=function(q,a,w,G,k,b){var O=qf(q.U.get(),a);return rt(q,O,a,new aP(q.V,G),[new di(q.V,w),new FP(q.V,O),new wi(q.V,G,["error"])],k,b)}; aPm=function(q,a,w,G,k,b,O){var e=qf(q.U.get(),a);return rt(q,e,a,new wi(q.V,k,["normal"]),[new di(q.V,w),new FP(q.V,e),new wi(q.V,G,["error"])],b,O)}; RxV=function(q,a,w,G,k){var b=qf(q.U.get(),a);return rt(q,b,a,new RX(q.V,w),[new di(q.V,w),new FP(q.V,b)],G,k)}; OMV=function(q,a,w,G,k){w=w?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var b=qf(q.U.get(),w);a=new RX(q.V,a);var O=[new si(q.V,b)];q=[new FP(q.V,b)];return{slotId:b,slotType:w,slotPhysicalPosition:1,slotEntryTrigger:a,slotFulfillmentTriggers:O,slotExpirationTriggers:q,kT:"core",clientMetadata:new j4([new CM(k({slotId:b,slotType:w,slotPhysicalPosition:1,kT:"core",slotEntryTrigger:a,slotFulfillmentTriggers:O,slotExpirationTriggers:q}))]),adSlotLoggingData:G}}; FVy=function(q,a,w,G){var k=qf(q.U.get(),"SLOT_TYPE_PLAYER_BYTES"),b=new lm(q.V),O=[new Lr(q.V,k)];q=[new di(q.V,a)];return{slotId:k,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:O,slotExpirationTriggers:q,kT:"core",clientMetadata:new j4([new CM(G({slotId:k,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,kT:"core",slotEntryTrigger:b,slotFulfillmentTriggers:O,slotExpirationTriggers:q})),new TC({})]),adSlotLoggingData:w}}; A4G=function(q,a){return c4y(q.Q7.get())?new wi(q.V,a,["normal","error","skipped"]):new wi(q.V,a,["normal"])}; B5l=function(q,a,w,G,k){a=A4G(q,a);q=Um(q,a,w);k=k({slotId:q.slotId,slotType:q.slotType,slotPhysicalPosition:q.slotPhysicalPosition,slotEntryTrigger:q.slotEntryTrigger,slotFulfillmentTriggers:q.slotFulfillmentTriggers,slotExpirationTriggers:q.slotExpirationTriggers,kT:q.kT});return k instanceof W?k:{hT:Object.assign({},q,{clientMetadata:new j4([new CM(k.layout)]),adSlotLoggingData:G}),De:k.De}}; rZU=function(q,a,w,G,k,b,O){w=xDJ(q,a,w,G);if(w instanceof W)return w;O=O({slotId:w.slotId,slotType:w.slotType,slotPhysicalPosition:w.slotPhysicalPosition,slotEntryTrigger:w.slotEntryTrigger,slotFulfillmentTriggers:w.slotFulfillmentTriggers,slotExpirationTriggers:w.slotExpirationTriggers,kT:w.kT});if(O instanceof W)return O;G=[new h4(oN(a)),new CM(O.layout),new fM({Sa:q.Sa(a)})];b&&G.push(new LM({}));return{hT:{slotId:w.slotId,slotType:w.slotType,slotPhysicalPosition:w.slotPhysicalPosition,slotEntryTrigger:XA(q, a,w.slotId,w.slotEntryTrigger),slotFulfillmentTriggers:j9(q,a,w.slotId,w.slotFulfillmentTriggers),slotExpirationTriggers:w.slotExpirationTriggers,kT:w.kT,clientMetadata:new j4(G),adSlotLoggingData:k},De:O.De}}; XA=function(q,a,w,G){return q.Q7.get().jo(oN(a))?new Wk(q.V,w):G}; j9=function(q,a,w,G){return q.Q7.get().jo(oN(a))?[new Lr(q.V,w)]:G}; Um=function(q,a,w){var G=qf(q.U.get(),"SLOT_TYPE_PLAYER_BYTES"),k=[new si(q.V,G)];q=[new FP(q.V,G),new di(q.V,w)];return{slotId:G,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:a,slotFulfillmentTriggers:k,slotExpirationTriggers:q,kT:"core"}}; xDJ=function(q,a,w,G){a=Bc(q,a,w,G);return a instanceof W?a:Um(q,a,w)}; e8j=function(q,a,w,G,k,b){var O=qf(q.U.get(),"SLOT_TYPE_FORECASTING");a=Bc(q,a,w,G);if(a instanceof W)return a;G=[new si(q.V,O)];q=[new FP(q.V,O),new di(q.V,w)];return{slotId:O,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:a,slotFulfillmentTriggers:G,slotExpirationTriggers:q,kT:"core",clientMetadata:new j4([new CM(b({slotId:O,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,kT:"core",slotEntryTrigger:a,slotFulfillmentTriggers:G,slotExpirationTriggers:q}))]),adSlotLoggingData:k}}; sMl=function(q,a,w,G,k){var b=!a.hideCueRangeMarker;switch(a.kind){case "AD_PLACEMENT_KIND_START":return new RX(q.V,w);case "AD_PLACEMENT_KIND_MILLISECONDS":return q=zxl(a,G),q instanceof W?q:k(q.Fx,b);case "AD_PLACEMENT_KIND_END":return new qc(q.V,w,b);default:return new W("Cannot construct entry trigger",{kind:a.kind})}}; $hU=function(q,a,w,G,k){return sMl(q,a,w,G,function(b,O){return new PHV(q.V,w,b,O,k)})}; Bc=function(q,a,w,G){return sMl(q,a,w,G,function(k,b){return new eQ(q.V,w,k,b)})}; rt=function(q,a,w,G,k,b,O){q=[new Lr(q.V,a)];return{slotId:a,slotType:w,slotPhysicalPosition:1,slotEntryTrigger:G,slotFulfillmentTriggers:q,slotExpirationTriggers:k,kT:"core",clientMetadata:new j4([new CM(O({slotId:a,slotType:w,slotPhysicalPosition:1,kT:"core",slotEntryTrigger:G,slotFulfillmentTriggers:q,slotExpirationTriggers:k}))]),adSlotLoggingData:b}}; FsU=function(){}; nO=function(q,a){g.c.call(this);this.Q7=q;this.V=a;this.eventCount=0;this.U=Q9().resolve(ZV(FsU))}; CtV=function(q,a,w){if(a){var G=a.adLayoutLoggingData;g.uM(g.v5(),function(){if(q.U!=null){var k=Date.now().toString();G&&g.aw("adsSeenClientLogging",{adsSeenClientLogging:{serializedAdServingDataEntry:G.serializedAdServingDataEntry},eventTimeMs:k})}},w!=null?w:0)}}; MS=function(q,a,w,G){nO.call(this,q,a);this.Q7=q;this.n7=w;this.context=G}; h6=function(){this.V=new Map}; SZ=function(q){this.V="pending";this.U=[];this.W=[];try{q(this.Y.bind(this),this.reject.bind(this))}catch(a){this.reject(a)}}; ZpK=function(){var q,a;return{xI:new SZ(function(w,G){q=w;a=G}), resolve:q,reject:a}}; cc=function(q){return fO(q)?q:Hc(q)?new SZ(function(a,w){q.then(a,w)}):new SZ(function(a){a(q)})}; pO=function(q){return new SZ(function(a,w){w(q)})}; Ut=function(q){try{return cc(q())}catch(a){return pO(a)}}; jZ=function(q,a,w){var G=ZpK(),k=G.xI,b=G.resolve,O=G.reject;q.U.push(function(e){if(a)try{var N=a(e);b(N)}catch(Y){O(Y)}else b(e)}); q.W.push(function(e){if(w)try{var N=w(e);b(N)}catch(Y){O(Y)}else O(e)}); XQ(q);return k}; ok=function(q,a){return jZ(q,void 0,a)}; EP_=function(q,a){jZ(q,function(w){return jZ(cc(a()),function(){return w})},function(w){return jZ(cc(a()),function(){return pO(w)})})}; XQ=function(q){if(q.V==="fulfilled"){var a=q.U;q.U=[];q.W=[];a=g.V(a);for(var w=a.next();!w.done;w=a.next())w=w.value,w(q.result)}else if(q.V==="rejected")for(a=q.W,q.U=[],q.W=[],a=g.V(a),w=a.next();!w.done;w=a.next())w=w.value,w(q.error)}; Ik=function(q,a){return V7l(a.call(q))}; uZ=function(q){return function w(){return Uj(w,function(G){if(G.U==1)return g.QV(G,2),g.n(G,{xI:cc(q)},4);if(G.U!=2)return G.return(G.V);g.Sy(G);return g.HJ(G,0)})}()}; V7l=function(q){return Ut(function(){return t6(q,q.next())})}; t6=function(q,a){return a.done?cc(a.value):ok(jZ(a.value.xI,function(w){return t6(q,q.next(w))}),function(w){return t6(q,q.throw(w))})}; vc=function(q,a){if(q.length===0)return cc(NaN);var w=ZpK(),G=w.xI,k=w.resolve,b=q.length;q=g.V(q.entries());var O=q.next();for(w={};!O.done;w={xk:void 0},O=q.next()){var e=g.V(O.value);O=e.next().value;e=e.next().value;w.xk=O;EP_(e,function(N){return function(){G.V==="pending"&&(J3m(a)&&a(N.xk)&&G.V==="pending"?k(N.xk):(--b,b===0&&k(NaN)))}}(w))}return G}; z2=function(q){return q.map(function(a){return cc(a)})}; Wc=function(q){var a=q.hours||0;var w=q.minutes||0,G=q.seconds||0;a=G+w*60+a*3600+(q.days||0)*86400+(q.weeks||0)*604800+(q.months||0)*2629800+(q.years||0)*31557600;a<=0?a={hours:0,minutes:0,seconds:0}:(q=a,a=Math.floor(q/3600),q%=3600,w=Math.floor(q/60),G=Math.floor(q%60),a={hours:a,minutes:w,seconds:G});var k=a.hours===void 0?0:a.hours;w=a.minutes===void 0?0:a.minutes;q=a.seconds===void 0?0:a.seconds;G=k>0;a=[];if(G){k=(new Intl.NumberFormat("en-u-nu-latn")).format(k);var b=["fr"],O="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(" "); k="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(iZ)?k.replace(",","\u00a0"):b.includes(iZ)?k.replace(",","\u202f"):O.includes(iZ)?k.replace(",","."):k;a.push(k)}G=G===void 0?!1:G;w=(["af","be","lt"].includes(iZ)||G)&&w<10?mhj().format(w):(new Intl.NumberFormat("en-u-nu-latn")).format(w);a.push(w);w=mhj().format(q);a.push(w);w=":";"da fi id si sr sr-Latn".split(" ").includes(iZ)&&(w=".");return a.join(w)}; mhj=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; QMy=function(q,a){var w,G;q=((w=q.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(G=w.videoAuthorizationToken)==null?void 0:G.credentialTransferTokens)||[];for(w=0;wa;q=w}else q=!1;return q}; g.PX=function(q,a){return q.pE+"timedtext_video?ref=player&v="+a.videoId}; g.IbK=function(q){var a=this;this.videoData=q;q={};this.V=(q.c1a=function(){var w=[];if(g.Nq.isInitialized()){var G="";a.videoData&&a.videoData.qj&&(G=a.videoData.qj+("&r1b="+a.videoData.clientPlaybackNonce));var k={};G=(k.atr_challenge=G,k);Af("bg_v",void 0,"player_att");(G=oPV(G))?(Af("bg_s",void 0,"player_att"),w.push("r1a="+G)):(Af("bg_e",void 0,"player_att"),w.push("r1c=2"))}else Af("bg_e",void 0,"player_att"),window.trayride||window.botguard?w.push("r1c=1"):w.push("r1c=4");w.push("r1d="+g.Nq.getState()); return w.join("&")},q.c6a=function(w){return"r6a="+(Number(w.c)^uq())},q.c6b=function(w){return"r6b="+(Number(w.c)^Number(g.UL("CATSTAT",0)))},q); this.videoData&&this.videoData.qj?this.Qh=Wn(this.videoData.qj):this.Qh={}}; g.uoJ=function(q){if(q.videoData&&q.videoData.qj){for(var a=[q.videoData.qj],w=g.V(Object.keys(q.V)),G=w.next();!G.done;G=w.next())G=G.value,q.Qh[G]&&q.V[G]&&(G=q.V[G](q.Qh))&&a.push(G);return a.join("&")}return null}; g.Kx=function(q,a){jMU(q,{Hul:g.Wo(a.experiments,"bg_vm_reinit_threshold"),cspNonce:a.cspNonce,pE:a.pE||""})}; t7l=function(){var q=XMLHttpRequest.prototype.fetch;return!!q&&q.length===3}; vPV=function(q){q=q[l[56]](l[7]);dq[l[59]](q,41);dq[l[59]](q,44);dq[l[63]](q,3);dq[l[59]](q,34);dq[l[59]](q,45);dq[l[63]](q,1);dq[l[86]](q,54);return q[l[68]](l[7])}; ipc=function(q){zSl=2592E3*(q||1)}; T1=function(q){q=q===void 0?zSl:q;if(q>0&&!(IXc()>(0,g.Zj)()-q*1E3))return 0;q=g.xt("yt-player-quality");if(typeof q==="string"){if(q=g.SG[q],q>0)return q}else if(q instanceof Object)return q.quality;return 0}; $d=function(){var q=g.xt("yt-player-proxima-pref");return q==null?null:q}; Wsl=function(){var q=g.xt("yt-player-quality");if(q instanceof Object&&q.quality&&q.previousQuality){if(q.quality>q.previousQuality)return 1;if(q.quality0&&a[0]?q.getAutoplayPolicy(a[0]):q.getAutoplayPolicy("mediaelement");if(Gkm[w])return Gkm[w]}}catch(G){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; Jv=function(q){return q.Q0||q.BH||q.mutedAutoplay}; kkj=function(q,a){return Jv(q)?a!==1&&a!==2&&a!==0?"AUTOPLAY_STATUS_UNAVAILABLE":q.ey?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; btl=function(q,a,w){var G=a.B();q.thirdParty||(q.thirdParty={});G.ancestorOrigins&&(q.thirdParty.embeddedPlayerContext=Object.assign({},q.thirdParty.embeddedPlayerContext,{ancestorOrigins:G.ancestorOrigins}));G.T("embeds_enable_autoplay_and_visibility_signals")&&(G.sT!=null&&(q.thirdParty.embeddedPlayerContext=Object.assign({},q.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(G.sT)})),G.m7&&(q.thirdParty.embeddedPlayerContext=Object.assign({},q.thirdParty.embeddedPlayerContext,{visibilityFractionSource:G.m7})), q.thirdParty.embeddedPlayerContext=Object.assign({},q.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:Vo(),autoplayIntended:Jv(a),autoplayStatus:kkj(a,w)}))}; Otm=function(q){var a=[];q=g.V(q.split(","));for(var w=q.next();!w.done;w=q.next()){var G=w.value;G&&((w=G.startsWith("!"))&&(G=G.substring(1)),G=G.split("-"),G.length<3||a.push({WO:G[0],platform:G[1],deviceVersion:G[2],v$:w}))}return a}; NZm=function(q){return Otm(q).map(function(a){return{deviceInterface:loV[e2G[a.WO]]||0,deviceVersion:a.deviceVersion||"",isSleeping:a.v$}})}; g.mf=function(q,a){this.id=q;this.Pq=a;this.captionTracks=[];this.W=this.Y=null;this.xtags="";this.D=!1;this.V=null;this.U="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN";q=this.Pq.id.split(".");q.length>1&&(this.D=q[1]==="2")}; Qo=function(q,a,w,G,k){this.U=q;this.V=a;this.W=w;this.reason=G;this.J2=k===void 0?0:k}; g.Av=function(q,a,w,G){return new Qo(g.SG[q]||0,g.SG[a]||0,w,G)}; Lx=function(q){if(xd&&q.J2)return!1;var a=g.SG.auto;return q.U===a&&q.V===a}; rq=function(q){return BX[q.V||q.U]||"auto"}; YuU=function(q,a){a=g.SG[a];return q.U<=a&&(!q.V||q.V>=a)}; nx=function(q){return"["+q.U+"-"+q.V+", override: "+(q.W+", reason: "+q.reason+"]")}; Mq=function(q,a,w,G){this.videoInfos=q;this.V=a;this.audioTracks=[];this.U=G||[];if(this.V){q=new Set;w==null||w({ainfolen:this.V.length});a=g.V(this.V);for(G=a.next();!G.done;G=a.next())if(G=G.value,!G.Pq||q.has(G.Pq.id)){var k=void 0,b=void 0,O=void 0;(O=w)==null||O({atkerr:!!G.Pq,itag:G.itag,xtag:G.V,lang:((k=G.Pq)==null?void 0:k.name)||"",langid:((b=G.Pq)==null?void 0:b.id)||""})}else k=new g.mf(G.id,G.Pq),q.add(G.Pq.id),this.audioTracks.push(k);w==null||w({atklen:this.audioTracks.length})}}; hv=function(){g.c.apply(this,arguments);this.V=null}; TZV=function(q,a,w,G,k,b,O){if(q.V)return q.V;var e={},N=new Set,Y={};if(Si(G)){for(var P in G.V)G.V.hasOwnProperty(P)&&(q=G.V[P],Y[q.info.K7]=[q.info]);return Y}P=Pfl(a,G,e);b&&k({aftsrt:fx(P)});for(var K={},d=g.V(Object.keys(P)),T=d.next();!T.done;T=d.next()){T=T.value;for(var F=g.V(P[T]),J=F.next();!J.done;J=F.next()){J=J.value;var Q=J.itag,B=void 0,L=T+"_"+(((B=J.video)==null?void 0:B.fps)||0);K.hasOwnProperty(L)?K[L]===!0?Y[T].push(J):e[Q]=K[L]:(B=HX(a,J,w,G.isLive,N),B!==!0?(O.add(T),e[Q]=B, B==="disablevp9hfr"&&(K[L]="disablevp9hfr")):(Y[T]=Y[T]||[],Y[T].push(J),K[L]=!0))}}b&&k({bfflt:fx(Y)});for(var M in Y)Y.hasOwnProperty(M)&&(G=M,Y[G]&&Y[G][0].iy()&&(Y[G]=Y[G],Y[G]=KZj(a,Y[G],e),Y[G]=dfl(Y[G],e)));b&&Object.keys(e).length>0&&k({rjr:YG(e)});a=g.V(N.values());for(G=a.next();!G.done;G=a.next())(G=w.Y.get(G.value))&&--G.nj;b&&k({aftflt:fx(Y)});q.V=g.qW(Y,function(H){return!!H.length}); return q.V}; smG=function(q,a,w,G,k,b,O,e){e=e===void 0?!1:e;if(a.aA&&O&&O.length>1&&!(a.yp>0||a.S)){for(var N=a.U||!!k,Y=N&&a.Ai?b:void 0,P=Pfl(a,G),K=[],d=[],T={},F=0;F0&&T&&d&&(P=[O,w],H=d.concat(T).filter(function(X){return X})); if(H.length&&!a.aE){Ul(H,P);if(N){N=[];a=g.V(H);for(G=a.next();!G.done;G=a.next())N.push(G.value.itag);b({hbdfmt:N.join(".")})}return AG(new Mq(H,k,Y,q))}H=xfl(a);H=g.Z7(H,e);if(!H){if(K[O])return b=K[O],Ul(b),AG(new Mq(b,k,Y,q));N&&b({novideo:1});return Qb()}a.h8&&(H==="1"||H==="1h")&&K[w]&&(O=Xq(K[H]),P=Xq(K[w]),P>O?H=w:P===O&&LZf(K[w])&&(H=w));H==="9"&&K.h&&Xq(K.h)>Xq(K["9"])&&(H="h");a.uF&&G.isLive&&H==="("&&K.H&&Xq(K["("])<1440&&(H="H");N&&b({vfmly:ji(H)});a=K[H];if(!a.length)return N&&b({novfmly:ji(H)}), Qb();Ul(a);return AG(new Mq(a,k,Y,q))}; Cfc=function(q,a){var w=!(!q.m&&!q.M),G=!(!q.mac3&&!q.MAC3),k=!(!q.meac3&&!q.MEAC3);q=!(!q.i&&!q.I);a.M9=q;return w||G||k||q}; LZf=function(q){q=g.V(q);for(var a=q.next();!a.done;a=q.next())if(a=a.value,a.itag&&BZU.has(a.itag))return!0;return!1}; EJN=function(q){q=g.V(q);for(var a=q.next();!a.done;a=q.next())if(a.value.audio.audioQuality==="AUDIO_QUALITY_HIGH")return!0;return!1}; ji=function(q){switch(q){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return q}}; fx=function(q){var a=[],w;for(w in q)if(q.hasOwnProperty(w)){var G=w;a.push(ji(G));G=g.V(q[G]);for(var k=G.next();!k.done;k=G.next())a.push(k.value.itag)}return a.join(".")}; FZc=function(q,a,w,G,k,b){var O={},e={};g.yx(a,function(N,Y){N=N.filter(function(P){var K=P.itag;if(!P.vN)return e[K]="noenc",!1;if(b.N1&&P.K7==="(h"&&b.OA)return e[K]="lichdr",!1;if(!q.D&&P.K7==="1e")return e[K]="noav1enc",!1;if(P.K7==="("||P.K7==="(h"){if(q.W&&w&&w.flavor==="widevine"){var d=P.mimeType+"; experimental=allowed";(d=!!P.vN[w.flavor]&&!!w.V[d])||(e[K]=P.vN[w.flavor]?"unspt":"noflv");return d}if(!og(q,Ig.CRYPTOBLOCKFORMAT)&&!q.f7||q.y7)return e[K]=q.y7?"disvp":"vpsub",!1}return w&&P.vN[w.flavor]&& w.V[P.mimeType]?!0:(e[K]=w?P.vN[w.flavor]?"unspt":"noflv":"nosys",!1)}); N.length&&(O[Y]=N)}); G&&Object.entries(e).length&&k({rjr:YG(e)});return O}; dfl=function(q,a){var w=CQ(q,function(G,k){return k.video.fps>32?Math.min(G,k.video.width):G},Infinity); w32||G.video.widthq.L)return"max"+q.L;if(q.BT&&a.K7==="h"&&a.video&&a.video.qualityOrdinal>1080)return"blkhigh264";if(a.K7==="(h"&&!w.X)return"enchdr";if((G===void 0?0:G)&&t8(a)&&!q.L7)return"blk51live";if((a.K7==="MAC3"||a.K7==="mac3")&&!q.Y)return"blkac3";if((a.K7==="MEAC3"||a.K7==="meac3")&&!q.D)return"blkeac3";if(a.K7==="M"||a.K7==="m")return"blkaac51"; if((a.K7==="so"||a.K7==="sa")&&!q.F9)return"blkamb";if(!q.N1&&nmU(a)&&(!w.D||a.K7!=="1e"))return"cbc";if(!w.D&&nmU(a)&&a.K7==="1e")return"cbcav1";if((a.K7==="i"||a.K7==="I")&&!q.Ck)return"blkiamf";var b;if(q.w$&&((b=a.audio)==null?void 0:b.U)===!0)return"blkvbcabr";var O,e;if(q.A2&&(a.K7==="1"||a.K7==="1h"||w.D&&a.K7==="1e")&&((O=a.video)==null?0:O.qualityOrdinal)&&((e=a.video)==null?void 0:e.qualityOrdinal)>q.A2)return"av1cap";G=w.Y.get(a.K7);if(!q.yN&&G&&G.nj>0)return k.add(a.K7),"byerr";var N; if((N=a.video)==null?0:N.fps>32){if(!w.jt&&!og(w,Ig.FRAMERATE))return"capHfr";if(q.h2&&a.video.qualityOrdinal>=4320)return"blk8khfr";if(X5(a)&&q.rz&&a.vN&&a.video.qualityOrdinal>=1440)return"disablevp9hfr"}if(q.J2&&a.J2>q.J2)return"ratecap";if(q.y7>0&&a.iy()&&a.video.height>q.y7)return"mvhcap";q=rQy(w,a);return q!==!0?q:!0}; Ul=function(q,a){a=a===void 0?[]:a;g.vR(q,function(w,G){var k=G.J2-w.J2;if(!w.iy()||!G.iy())return k;var b=G.video.height*G.video.width-w.video.height*w.video.width;!b&&a&&a.length>0&&(w=a.indexOf(w.K7)+1,G=a.indexOf(G.K7)+1,b=w===0||G===0?G||-1:w-G);b||(b=k);return b})}; g.u5=function(q,a){this[l[0]]=q;this[l[39]]=a===void 0?!1:a;this[l[29]]=this[l[15]]=this[l[17]]=l[7];this[l[8]]={};this[l[2]]=l[7]}; vX=function(q){tv(q);return q[l[29]]}; z1=function(q){return q[l[0]]?q[l[0]][l[30]](l[52]):q[l[17]]===l[52]}; nJm=function(q){tv(q);return g.a6(q[l[8]],function(a){return a!==null})}; i5=function(q){tv(q);var a=decodeURIComponent(q[l[66]](l[42])||l[7])[l[56]](l[37]);return q[l[15]]===l[32]&&a[l[5]]>1&&!!a[1]}; WX=function(q,a){a=a===void 0?!1:a;tv(q);if(q[l[15]]!==l[32]){var w=q[l[36]]();w[l[20]](l[43],l[27]);return w}var G=q[l[22]]();w=new g.g_(G);var k=q[l[66]](l[48]),b=decodeURIComponent(q[l[66]](l[42])||l[7])[l[56]](l[37]);if(k&&b&&b[l[5]]>1&&b[1])return G=w.V,q=G[l[13]](/^[^.]*/,l[7]),g.w_(w,(G[l[16]](l[45])===0?l[45]:l[49])+k+l[72]+b[1]+q),w=new g.u5(w[l[76]]()),w[l[20]](l[65],l[27]),w;if(a)return w=q[l[36]](),w[l[20]](l[65],l[27]),w;k=w.V[l[19]](l[81]);w.V[l[19]](l[84])?(g.w_(w,l[91]),G=w[l[76]]()): w.V[l[19]](l[73])?(g.w_(w,l[25]),G=w[l[76]]()):(w=CdV(G),HT(w)&&(G=w));w=new g.u5(G);w[l[20]](l[3],l[27]);k&&w[l[20]](l[38],l[87]);return w}; tv=function(q){if(q[l[0]]){if(!(HT(q[l[0]])||q[l[0]][l[30]](l[52])||q[l[0]][l[30]](l[60])||q[l[0]][l[30]](l[89])))throw new g.UH(l[82],q[l[0]]);var a=g.Nb(q[l[0]]);q[l[17]]=a.D;q[l[29]]=a.V+(a.W!=null?l[90]+a.W:l[7]);var w=a.U;if(w[l[30]](l[32]))q[l[15]]=l[32],w=w[l[12]](14);else if(w[l[30]](l[34]))q[l[15]]=l[34],w=w[l[12]](13);else if(w[l[30]](l[85])){var G=w[l[16]](l[10],12),k=w[l[16]](l[10],G+1);G>0&&k>0?(q[l[15]]=w[l[12]](0,k),w=w[l[12]](k+1)):(q[l[15]]=w,w=l[7])}else q[l[15]]=w,w=l[7];G=q[l[8]]; q[l[8]]=MHJ(w);Object[l[93]](q[l[8]],h2l(a.Y.toString()));Object[l[93]](q[l[8]],G);q[l[8]][l[47]]===l[70]&&(delete q[l[8]][l[47]],q[l[15]]+=l[41]);q[l[0]]=l[7];q[l[2]]=l[7];q[l[39]]&&(tv(q),a=q[l[8]][l[11]]||null)&&(a=SuG[0](a),q[l[20]](l[11],a))}}; fom=function(q){tv(q);var a=q[l[17]]+(q[l[17]]?l[1]:l[50])+q[l[29]]+q[l[15]];if(nJm(q)){var w=[];g.yx(q[l[8]],function(G,k){G!==null&&w[l[46]](k+l[24]+G)}); a+=l[75]+w[l[68]](l[64])}return a}; MHJ=function(q){q=q[l[56]](l[10]);var a=0;q[0]||a++;for(var w={};a0?Hty(a,G[l[12]](0,k),G[l[12]](k+1)):G&&(a[G]=l[7])}return a}; Hty=function(q,a,w){if(a===l[69]){var G;(G=w[l[16]](l[24]))>=0?(a=l[71]+w[l[12]](0,G),w=w[l[12]](G+1)):(G=w[l[16]](l[53]))>=0&&(a=l[71]+w[l[12]](0,G),w=w[l[12]](G+3))}q[a]=w}; Dl=function(q){var a=g.I(q,cQU)||q[l[44]];q={W$:!1,XX:l[7],f5:l[7],s:l[7]};if(!a)return q;a=Wn(a);q[l[54]]=!0;q[l[57]]=a[l[2]];q[l[21]]=a[l[18]];q[l[55]]=a[l[55]];return q}; Rg=function(q,a,w,G,k,b,O,e,N){this.Dh=q;this.startTime=a;this.duration=w;this.ingestionTime=G;this.sourceURL=k;this.QL=N;this.endTime=a+w;this.V=O||0;this.range=b||null;this.pending=e||!1;this.QL=N||null}; g.yo=function(){this.segments=[];this.V=null;this.U=!0;this.W=""}; pbN=function(q,a){if(a>q.P5())q.segments=[];else{var w=Cw(q.segments,function(G){return G.Dh>=a},q); w>0&&q.segments.splice(0,w)}}; qK=function(q,a,w,G,k){k=k===void 0?!1:k;this.data=q;this.offset=a;this.size=w;this.type=G;this.V=(this.U=k)?0:8;this.dataOffset=this.offset+this.V}; g4=function(q){var a=q.data.getUint8(q.offset+q.V);q.V+=1;return a}; ar=function(q){var a=q.data.getUint16(q.offset+q.V);q.V+=2;return a}; w4=function(q){var a=q.data.getInt32(q.offset+q.V);q.V+=4;return a}; Gh=function(q){var a=q.data.getUint32(q.offset+q.V);q.V+=4;return a}; k9=function(q){var a=q.data;var w=q.offset+q.V;a=a.getUint32(w)*4294967296+a.getUint32(w+4);q.V+=8;return a}; bp=function(q,a){a=a===void 0?NaN:a;if(isNaN(a))var w=q.size;else for(w=q.V;w1?Math.ceil(k*a):Math.floor(k*a))}q.skip(1);w=g4(q)<<16|ar(q);if(w&256){G=w&1;k=w&4;var b=w&512,O=w&1024,e=w&2048;w=Gh(q);G&&q.skip(4);k&&q.skip(4);G=(b?4:0)+(O?4:0)+(e?4:0);for(k=0;k1?Math.ceil(O*a):Math.floor(O*a)),q.skip(G)}}}; d4=function(q){q=new DataView(q.buffer,q.byteOffset,q.byteLength);return(q=g.PG(q,0,1836476516))?g.K0(q):NaN}; Dfl=function(q){var a=g.PG(q,0,1937011556);if(!a)return null;a=Th(q,a.dataOffset+8,1635148593)||Th(q,a.dataOffset+8,1635135537);if(!a)return null;var w=Th(q,a.dataOffset+78,1936995172),G=Th(q,a.dataOffset+78,1937126244);if(!G)return null;a=null;if(w)switch(w.skip(4),g4(w)){default:a=0;break;case 1:a=2;break;case 2:a=1;break;case 3:a=255}var k=w=null,b=null;if(G=Th(q,G.dataOffset,1886547818)){var O=Th(q,G.dataOffset,1886546020),e=Th(q,G.dataOffset,2037673328);if(!e&&(e=Th(q,G.dataOffset,1836279920), !e))return null;O&&(O.skip(4),w=w4(O)/65536,b=w4(O)/65536,k=w4(O)/65536);q=UfJ(e);q=new DataView(q.buffer,q.byteOffset+8,q.byteLength-8);return new itG(a,w,b,k,q)}return null}; Th=function(q,a,w){for(;$9(q,a);){var G=sY(q,a);if(G.type===w)return G;a+=G.size}return null}; g.PG=function(q,a,w){for(;$9(q,a);){var G=sY(q,a);if(G.type===w)return G;a=Fs(G.type)?a+8:a+G.size}return null}; g.C0=function(q){if(q.data.getUint8(q.dataOffset)){var a=q.data;q=q.dataOffset+4;a=a.getUint32(q)*4294967296+a.getUint32(q+4)}else a=q.data.getUint32(q.dataOffset+4);return a}; sY=function(q,a){var w=q.getUint32(a),G=q.getUint32(a+4);return new qK(q,a,w,G)}; g.K0=function(q){var a=q.data.getUint8(q.dataOffset)?20:12;return q.data.getUint32(q.dataOffset+a)}; R2j=function(q){q=new qK(q.data,q.offset,q.size,q.type,q.U);var a=g4(q);q.skip(7);var w=Gh(q);if(a===0){a=Gh(q);var G=Gh(q)}else a=k9(q),G=k9(q);q.skip(2);for(var k=ar(q),b=[],O=[],e=0;e122)return!1}return!0}; Fs=function(q){return q===1701082227||q===1836019558||q===1836019574||q===1835297121||q===1835626086||q===1937007212||q===1953653094||q===1953653099||q===1836475768}; yQc=function(q){q.skip(4);return{x_W:bp(q,0),value:bp(q,0),timescale:Gh(q),JOK:Gh(q),eventDuration:Gh(q),id:Gh(q),XY:bp(q),offset:q.offset}}; g.qem=function(q){var a=Th(q,0,1701671783);if(!a)return null;var w=yQc(a),G=w.x_W;w=Y9(w.XY);if(q=Th(q,a.offset+a.size,1701671783))if(q=yQc(q),q=Y9(q.XY),w&&q){a=g.V(Object.keys(q));for(var k=a.next();!k.done;k=a.next())k=k.value,w[k]=q[k]}return w?new NK(w,G):null}; Zm=function(q,a){for(var w=Th(q,0,a);w;){var G=w;G.type=1936419184;G.data.setUint32(G.offset+4,1936419184);w=Th(q,w.offset+w.size,a)}}; g.EY=function(q,a){for(var w=0,G=[];$9(q,w);){var k=sY(q,w);k.type===a&&G.push(k);w=Fs(k.type)?w+8:w+k.size}return G}; gGc=function(q,a){var w=g.PG(q,0,1937011556),G=g.PG(q,0,1953654136);if(!w||!G||q.getUint32(w.offset+12)>=2)return null;var k=new DataView(a.buffer,a.byteOffset,a.length),b=g.PG(k,0,1937011556);if(!b)return null;a=k.getUint32(b.dataOffset+8);G=k.getUint32(b.dataOffset+12);if(G!==1701733217&&G!==1701733238)return null;G=new XbU(q.byteLength+a);OY(G,q,0,w.offset+12);G.data.setInt32(G.offset,2);G.offset+=4;OY(G,q,w.offset+16,w.size-16);OY(G,k,k.byteOffset+b.dataOffset+8,a);OY(G,q,w.offset+w.size,q.byteLength- (w.offset+w.size));w=g.V([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(k=w.next();!k.done;k=w.next())k=g.PG(q,0,k.value),G.data.setUint32(k.offset,k.size+a);q=g.PG(G.data,0,1953654136);G.data.setUint32(q.offset+16,2);return G.data}; aTl=function(q){var a=g.PG(q,0,1937011556);if(!a)return null;var w=q.getUint32(a.dataOffset+12);if(w!==1701733217&&w!==1701733238)return null;a=Th(q,a.offset+24+(w===1701733217?28:78),1936289382);if(!a)return null;w=Th(q,a.offset+8,1935894637);if(!w||q.getUint32(w.offset+12)!==1667392371)return null;a=Th(q,a.offset+8,1935894633);if(!a)return null;a=Th(q,a.offset+8,1952804451);if(!a)return null;w=new Uint8Array(16);for(var G=0;G<16;G++)w[G]=q.getInt8(a.offset+16+G);return w}; Vs=function(q,a){this.V=q;this.pos=0;this.start=a||0}; Je=function(q){return q.pos>=q.V.byteLength}; L0=function(q,a,w){var G=new Vs(w);if(!mS(G,q))return!1;G=Qs(G);if(!Ae(G,a))return!1;for(q=0;a;)a>>>=8,q++;a=G.start+G.pos;var k=x9(G,!0);G=q+(G.start+G.pos-a)+k;G=G>9?wYJ(G-9,8):wYJ(G-2,1);q=a-q;w.setUint8(q++,236);for(a=0;aw;k++)w=w*256+he(q),G*=128;return a?w-G:w}; r4=function(q){var a=x9(q,!0);q.pos+=a}; bfG=function(q){if(!Ae(q,440786851,!0))return null;var a=q.pos;x9(q,!1);var w=x9(q,!0)+q.pos-a;q.pos=a+w;if(!Ae(q,408125543,!1))return null;x9(q,!0);if(!Ae(q,357149030,!0))return null;var G=q.pos;x9(q,!1);var k=x9(q,!0)+q.pos-G;q.pos=G+k;if(!Ae(q,374648427,!0))return null;var b=q.pos;x9(q,!1);var O=x9(q,!0)+q.pos-b,e=new Uint8Array(w+12+k+O),N=new DataView(e.buffer);e.set(new Uint8Array(q.V.buffer,q.V.byteOffset+a,w));N.setUint32(w,408125543);N.setUint32(w+4,33554431);N.setUint32(w+8,4294967295); e.set(new Uint8Array(q.V.buffer,q.V.byteOffset+G,k),w+12);e.set(new Uint8Array(q.V.buffer,q.V.byteOffset+b,O),w+12+k);return e}; Sl=function(q){var a=q.pos;q.pos=0;var w=1E6;mS(q,[408125543,357149030,2807729])&&(w=BG(q));q.pos=a;return w}; OfK=function(q,a){var w=q.pos;q.pos=0;if(q.V.getUint8(q.pos)!==160&&!f0(q)||!Ae(q,160))return q.pos=w,NaN;x9(q,!0);var G=q.pos;if(!Ae(q,161))return q.pos=w,NaN;x9(q,!0);he(q);var k=he(q)<<8|he(q);q.pos=G;if(!Ae(q,155))return q.pos=w,NaN;G=BG(q);q.pos=w;return(k+G)*a/1E9}; f0=function(q){if(!lTV(q)||!Ae(q,524531317))return!1;x9(q,!0);return!0}; lTV=function(q){if(q.AG()){if(!Ae(q,408125543))return!1;x9(q,!0)}return!0}; mS=function(q,a){for(var w=0;w0){var G=h2l(a.substring(w+1));g.yx(G,function(k,b){this.set(b,k)},q); a=a.substring(0,w)}a=MHJ(a);g.yx(a,function(k,b){this.set(b,k)},q)}; NlU=function(q){var a=q.hL.Do(),w=[];g.yx(q.V,function(k,b){w.push(b+"="+k)}); if(!w.length)return a;var G=w.join("&");q=nJm(q.hL)?"&":"?";return a+q+G}; cG=function(q,a){var w=new g.u5(a);(a=w.get("req_id"))&&q.set("req_id",a);g.yx(q.V,function(G,k){w["set"](k,null)}); return w}; Yem=function(){this.Y=this.W=this.V=this.timedOut=this.started=this.D=this.U=0}; p0=function(q){q.D=(0,g.Zj)();q.started=0;q.timedOut=0;q.V=0}; UY=function(q,a){var w=q.started+q.V*4;a&&(w+=q.W);w=Math.max(0,w-3);return Math.pow(1.6,w)}; Xs=function(q,a){q[a]||(q[a]=new Yem);return q[a]}; jl=function(q){this.J=this.X=this.D=this.W=0;this.S=this.L=!1;this.V=q;this.U=q.clone()}; P4N=function(q,a,w){if(z1(q.V))return!1;var G=Xs(w,vX(q.V));if(G.timedOut<1&&G.V<1)return!1;G=G.timedOut+G.V;q=or(q,a);w=Xs(w,vX(q));return w.timedOut+w.V+01?a=a.pL:(w=Xs(w,up(q,q.Zw(a,w),a)),a=Math.max(q.D,w.timedOut)+a.XE*(q.W-q.D)+.25*q.X,a=a>3?1E3*Math.pow(1.6,a-3):0);return a===0?!0:q.J+a<(0,g.Zj)()}; Ke_=function(q,a,w){q.V.set(a,w);q.U.set(a,w);q.Y&&q.Y.set(a,w)}; d4U=function(q,a,w,G,k){++q.W;a&&++q.D;vX(w.hL).startsWith("redirector.")&&(q.V=q.U.clone(),delete q.Y,G.T9&&delete k[vX(q.V)])}; vG=function(q){return q?(q.itag||"")+";"+(q.lmt||0)+";"+(q.xtags||""):""}; zh=function(q,a,w,G){this.initRange=w;this.indexRange=G;this.V=null;this.W=!1;this.L=0;this.Y=this.BA=this.U=null;this.info=a;this.GZ=new jl(q)}; ip=function(q,a){this.start=q;this.end=a;this.length=a-q+1}; WG=function(q){q=q.split("-");var a=Number(q[0]),w=Number(q[1]);if(!isNaN(a)&&!isNaN(w)&&q.length===2&&(q=new ip(a,w),!isNaN(q.start)&&!isNaN(q.end)&&!isNaN(q.length)&&q.length>0))return q}; Dm=function(q,a){return new ip(q,q+a-1)}; Tlm=function(q){return q.end==null?{start:String(q.start)}:{start:String(q.start),end:String(q.end)}}; Rr=function(q){if(!q)return new ip(0,0);var a=Number(q.start);q=Number(q.end);if(!isNaN(a)&&!isNaN(q)&&(a=new ip(a,q),a.length>0))return a}; ys=function(q,a,w,G,k,b,O,e,N,Y,P,K){G=G===void 0?"":G;this.type=q;this.V=a;this.range=w;this.source=G;this.x3=P;this.clipId=K===void 0?"":K;this.J=[];this.X="";this.Dh=-1;this.F9=0;this.X=G;this.Dh=k>=0?k:-1;this.startTime=b||0;this.duration=O||0;this.U=e||0;this.W=N>=0?N:this.range?this.range.length:NaN;this.Y=this.range?this.U+this.W===this.range.length:Y===void 0?!!this.W:Y;this.range?(this.D=this.startTime+this.duration*this.U/this.range.length,this.S=this.duration*this.W/this.range.length,this.L= this.D+this.S):$4m(this)}; $4m=function(q){q.D=q.startTime;q.S=q.duration;q.L=q.D+q.S}; sKm=function(q,a,w){var G=!(!a||a.V!==q.V||a.type!==q.type||a.Dh!==q.Dh);return w?G&&!!a&&(q.range&&a.range?a.range.end===q.range.end:a.range===q.range)&&a.U+a.W===q.U+q.W:G}; q5=function(q){return q.type===1||q.type===2}; gK=function(q){return q.type===3||q.type===6}; aa=function(q,a){return q.V===a.V?q.range&&a.range?q.range.start+q.U+q.W===a.range.start+a.U:q.Dh===a.Dh?q.U+q.W===a.U:q.Dh+1===a.Dh&&a.U===0&&q.Y:!1}; C4j=function(q,a){return q.Dh!==a.Dh&&a.Dh!==q.Dh+1||q.type!==a.type?!1:aa(q,a)?!0:Math.abs(q.D-a.D)<=1E-6&&q.Dh===a.Dh?!1:FeG(q,a)}; FeG=function(q,a){return aa(q,a)||Math.abs(q.L-a.D)<=1E-6||q.Dh+1===a.Dh&&a.U===0&&q.Y?!0:!1}; wK=function(q){return q.Dh+(q.Y?1:0)}; Zfj=function(q){q.length===1||g.Fx(q,function(w){return!!w.range}); for(var a=1;a=a.range.start+a.U&&q.range.start+q.U+q.W<=a.range.start+a.U+a.W:q.Dh===a.Dh&&q.U>=a.U&&(q.U+q.W<=a.U+a.W||a.Y)}; x4V=function(q,a){return q.V!==a.V?!1:q.type===4&&a.type===3&&q.V.cH()?(q=q.V.fZ(q),In(q,function(w){return x4V(w,a)})):q.Dh===a.Dh&&!!a.W&&a.U+a.W>q.U&&a.U+a.W<=q.U+q.W}; kD=function(q,a){var w=a.Dh;q.X="updateWithSegmentInfo";q.Dh=w;if(q.startTime!==a.startTime||q.duration!==a.duration)q.startTime=a.startTime+0,q.duration=a.duration,$4m(q)}; bj=function(q,a){var w=this;this.sK=q;this.Y=this.V=null;this.D=this.qe=NaN;this.Zw=this.requestId=null;this.qh={Np7:function(){return w.range}}; this.GZ=q[0].V.GZ;this.U=a||"";this.sK[0].range&&this.sK[0].W>0&&(EG_(q)?(this.range=Zfj(q),this.W=this.range.length):(this.range=this.sK[this.sK.length-1].range,this.W=VGU(q)))}; Os=function(q){return!q5(q.sK[q.sK.length-1])}; lj=function(q){return q.sK[q.sK.length-1].type===4}; g.eS=function(q,a,w){w=q.Zw===null?q.GZ.Zw(a,w,q.sK[0].type):q.Zw;if(q.V){a=w?WX(q.V,a.y_):q.V;var G=new HG(a);G.get("alr")||G.set("alr","yes");q.U&&eVy(G,q.U)}else/http[s]?:\/\//.test(q.U)?G=new HG(new g.u5(q.U)):(G=Ir(q.GZ,w,a),q.U&&eVy(G,q.U));(a=q.range)?G.set("range",a.toString()):q.sK[0].V.Sk()&&q.sK.length===1&&q.sK[0].U&&G.set("range",q.sK[0].U+"-");q.requestId&&G.set("req_id",q.requestId);isNaN(q.qe)||G.set("headm",q.qe.toString());isNaN(q.D)||G.set("mffa",q.D+"ms");q.urlParams&&g.yx(q.urlParams, function(k,b){G.set(b,k)}); return G}; Ley=function(q){if(q.range)return q.W;q=q.sK[0];return Math.round(q.S*q.V.info.J2)}; Blc=function(q,a){return Math.max(0,q.sK[0].D-a)}; N5=function(q,a,w,G,k,b){b=b===void 0?0:b;zh.call(this,q,a,G,void 0);this.D=w;this.Ca=b;this.index=k||new g.yo}; r8K=function(q,a,w,G,k){this.Dh=q;this.startSecs=a;this.LT=w;this.V=G||NaN;this.U=k||NaN}; YD=function(q,a,w){for(;q;q=q.parentNode)if(q.attributes&&(!w||q.nodeName===w)){var G=q.getAttribute(a);if(G)return G}return""}; Pw=function(q,a){for(;q;q=q.parentNode){var w=q.getElementsByTagName(a);if(w.length>0)return w[0]}return null}; nGl=function(q){if(!q)return 0;var a=q.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return a?(Number(a[2])|0)*3600+(Number(a[4])|0)*60+(Number(a[6])|0):Number(q)|0}; MGl=function(q){return q.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?q+"Z":q}; Kg=function(){this.V=[];this.U=null;this.L=0;this.W=[];this.D=!1;this.X="";this.Y=-1}; hV_=function(q){var a=q.W;q.W=[];return a}; Sec=function(){this.Y=[];this.V=null;this.U={};this.W={}}; pYJ=function(q,a){var w=[];a=Array.from(a.getElementsByTagName("SegmentTimeline"));a=g.V(a);for(var G=a.next();!G.done;G=a.next()){G=G.value;var k=G.parentNode.parentNode,b=null;k.nodeName==="Period"?b=fTK(q):k.nodeName==="AdaptationSet"?(k=k.getAttribute("id")||k.getAttribute("mimetype")||"",b=HfG(q,k)):k.nodeName==="Representation"&&(k=k.getAttribute("id")||"",b=c8l(q,k));if(b==null)return;b.update(G);g.Me(w,hV_(b))}g.Me(q.Y,w);xml(q.Y,function(O){return O.startSecs*1E3+O.V})}; U4G=function(q){q.V&&(q.V.V=[]);g.yx(q.U,function(a){a.V=[]}); g.yx(q.W,function(a){a.V=[]})}; fTK=function(q){q.V||(q.V=new Kg);return q.V}; HfG=function(q,a){q.U[a]||(q.U[a]=new Kg);return q.U[a]}; c8l=function(q,a){q.W[a]||(q.W[a]=new Kg);return q.W[a]}; Tm=function(q){var a=q===void 0?{}:q;q=a.Ca===void 0?0:a.Ca;var w=a.j_===void 0?!1:a.j_;var G=a.Gf===void 0?0:a.Gf;var k=a.cJ===void 0?0:a.cJ;var b=a.YL===void 0?Infinity:a.YL;var O=a.M4===void 0?0:a.M4;var e=a.pT===void 0?!1:a.pT;a=a.P8===void 0?!1:a.P8;g.yo.call(this);this.Dm=this.rd=-1;this.jZ=q;this.Gf=G;this.j_=w;this.cJ=k;this.YL=b;this.M4=O;((this.pT=e)||isFinite(b)&&this.YL>0)&&w&&dK&&(this.U=!1,this.W="postLive");this.P8=a}; $D=function(q,a){return IB(q.segments,function(w){return a-w.Dh})}; FH=function(q,a,w){w=w===void 0?{}:w;N5.call(this,q,a,"",void 0,void 0,w.Ca||0);this.index=new Tm(w)}; Cg=function(q,a,w){zh.call(this,q,a);this.D=w;q=this.index=new g.yo;q.U=!1;q.W="d"}; XYU=function(q,a,w){var G=q.index.uH(a),k=q.index.getStartTime(a),b=q.index.getDuration(a);w?b=w=0:w=q.info.J2*b;return new bj([new ys(3,q,void 0,"otfCreateRequestInfoForSegment",a,k,b,0,w)],G)}; jKc=function(q,a){if(!q.index.isLoaded()){var w=[],G=a.Y;a=a.D.split(",").filter(function(P){return P.length>0}); for(var k=0,b=0,O=0,e=/^(\d+)/,N=/r=(\d+)/,Y=0;Y0&&(k.V=Math.min(k.V+O,10),k.U=b);k.V>0?(k.V--,k=!0):k=!1;if(k)typeof G==="function"&&(G=G()),console.log("plyr."+a,G);else{var e;G=((e=zVm.get(a))!=null?e:0)+1;zVm.set(a,G);G%100===1&&console.warn("plyr","plyr."+a+" is chatty, dropping logs.")}}}; vGy=function(){this.V=10;this.U=Date.now()}; VW=function(q,a){this.info=q;this.U=a;this.V=null;this.Y=this.W=-1;this.timestampOffset=0;this.isLocked=this.L=!1;this.D=this.info.V.Rt()&&!this.info.U}; g.Jw=function(q){return p0f(q.U)}; if_=function(q,a){a=Math.min(a,q.info.W);var w=q.U.split(a),G=w.xK;w=new VW(new ys(q.info.type,q.info.V,q.info.range,q.info.X,q.info.Dh,q.info.startTime,q.info.duration,q.info.U,a,!1,q.info.x3,q.info.clipId),w.DK);w.Y=q.Y;w.W=q.W;a=new VW(new ys(q.info.type,q.info.V,q.info.range,q.info.X,q.info.Dh,q.info.startTime,q.info.duration,q.info.U+a,q.info.W-a,q.info.Y,q.info.x3,q.info.clipId),G);a.Y=q.Y;a.W=q.W;return[w,a]}; g.mo=function(q,a,w,G){w=w===void 0?!1:w;G=G===void 0?0:G;if(q.isLocked||a.isLocked||!aa(q.info,a.info)||q.info.Y)return null;if(G){if(q.U.totalLength+a.U.totalLength>G)return null}else if(w&&(w=q.U,G=a.U,w=!(G.V.length?HBj(w,G.V[0]):1)),w)return null;w=new ys(q.info.type,q.info.V,q.info.range,q.info.X,q.info.Dh,q.info.startTime,q.info.duration,q.info.U,q.info.W,q.info.Y,q.info.x3,q.info.clipId);G=a.info;w.W+=G.W;w.range&&(w.S+=G.S);w.L=G.L;w.Y=G.Y;G=new yI;qj(G,q.U);qj(G,a.U);w=new VW(w,G);w.V!= null&&a.V!=null&&(new g.Zw("dash")).V(414627957,"merged slice emsg overridden; prev: "+w.V.wm()+" next: "+a.V.wm());w.V=a.V||q.V;w.W=q.W!==-1?q.W:a.W;w.Y=q.Y!==-1?q.Y:a.Y;return w}; g.QW=function(q){g.vY(q.info.V.info)||q.info.V.info.O3();if(q.W!==-1)return q.W;if(q.V&&Iof(q.V))return q.W=Iof(q.V),q.W;if(g.vY(q.info.V.info)){var a=g.Jw(q);for(var w=q.info.V.V,G=NaN,k=NaN,b=0;$9(a,b);){var O=sY(a,b);O.type===1936286840?k=O.data.getUint32(O.dataOffset+8):O.type===1836476516?k=g.K0(O):O.type===1952867444&&isNaN(G)&&(G=g.C0(O));b=Fs(O.type)?b+8:b+O.size}!k&&w&&(k=d4(w));a=G/k}else a=new Vs(g.Jw(q)),w=q.D?a:new Vs(new DataView(q.info.V.V.buffer)),G=Sl(w),w=a.pos,a.pos=0,f0(a)?Ae(a, 231)?(G=BG(a)*G/1E9,a.pos=w,a=G):(a.pos=w,a=NaN):(a.pos=w,a=NaN);q.W=a||q.info.D;return q.W}; D4m=function(q,a){q.timestampOffset>0&&(a-=q.timestampOffset);var w=g.QW(q)+a;Wec(q,w);q.timestampOffset=a}; Wec=function(q,a){g.vY(q.info.V.info)||q.info.V.info.O3();q.W=a;if(g.vY(q.info.V.info)){var w=g.Jw(q);q=q.info.V.V;for(var G=NaN,k=NaN,b=0;$9(w,b);){var O=sY(w,b);isNaN(G)&&(O.type===1936286840?G=O.data.getUint32(O.dataOffset+8):O.type===1836476516&&(G=g.K0(O)));if(O.type===1952867444){!G&&q&&(G=d4(q));var e=g.C0(O);isNaN(k)&&(k=Math.round(a*G)-e);var N=O;e+=k;if(N.data.getUint8(N.dataOffset)){var Y=N.data;N=N.dataOffset+4;Y.setUint32(N,Math.floor(e/4294967296));Y.setUint32(N+4,e&4294967295)}else N.data.setUint32(N.dataOffset+ 4,e)}b=Fs(O.type)?b+8:b+O.size}return!0}w=new Vs(g.Jw(q));q=q.D?w:new Vs(new DataView(q.info.V.V.buffer));G=Sl(q);q=w.pos;w.pos=0;if(f0(w)&&Ae(w,231))if(k=x9(w,!0),a=Math.floor(a*1E9/G),Math.ceil(Math.log(a)/Math.log(2)/8)>k)a=!1;else{for(G=k-1;G>=0;G--)w.V.setUint8(w.pos+G,a&255),a>>>=8;w.pos=q;a=!0}else a=!1;return a}; xD=function(q,a){a=a===void 0?!1:a;var w=Aw(q);q=a?0:q.info.S;return w||q}; Aw=function(q){g.vY(q.info.V.info)||q.info.V.info.O3();if(q.V&&q.info.type===6)return q.V.Ca;if(g.vY(q.info.V.info)){var a=g.Jw(q);var w=0;a=g.EY(a,1936286840);a=g.V(a);for(var G=a.next();!G.done;G=a.next())G=R2j(G.value),w+=G.L1[0]/G.timescale;w=w||NaN;if(!(w>=0))a:{w=g.Jw(q);a=q.info.V.V;for(var k=G=0,b=0;$9(w,G);){var O=sY(w,G);if(O.type===1836476516)k=g.K0(O);else if(O.type===1836019558){!k&&a&&(k=d4(a));if(!k){w=NaN;break a}var e=Th(O.data,O.dataOffset,1953653094),N=e;e=k;var Y=Th(N.data,N.dataOffset, 1952868452);N=Th(N.data,N.dataOffset,1953658222);var P=w4(Y);w4(Y);P&2&&w4(Y);Y=P&8?w4(Y):0;var K=w4(N),d=K&1;P=K&4;var T=K&256,F=K&512,J=K&1024;K&=2048;var Q=Gh(N);d&&w4(N);P&&w4(N);for(var B=d=0;B2048?"":a.indexOf("https://")===0?a:""}; hw=function(q,a,w){a.match(ebc);return q(a,w).then(function(G){var k=g.lhc(G.xhr);return k?hw(q,k,w):G.xhr})}; cw=function(q,a,w){q=q===void 0?"":q;a=a===void 0?null:a;w=w===void 0?!1:w;g.ya.call(this);var G=this;this.sourceUrl=q;this.isLivePlayback=w;this.le=this.duration=0;this.isPremiere=this.pT=this.Y=this.isLiveHeadPlayable=this.isLive=this.U=!1;this.YL=this.cJ=0;this.isOtf=this.pk=!1;this.L7=(0,g.Zj)();this.F9=Infinity;this.V={};this.W=new Map;this.state=this.eZ=0;this.timeline=null;this.isManifestless=!1;this.y7=[];this.L=null;this.f7=0;this.D="";this.EK=NaN;this.jt=this.yN=this.timestampOffset=this.X= 0;this.zj=this.i5=NaN;this.N1=0;this.Tl=this.J=!1;this.St=[];this.A2={};this.UK=NaN;this.qh={Z67:function(e){SS(G,e)}}; var k;this.h2=(k=a)==null?void 0:k.Zh("html5_use_network_error_code_enums");NDl=!!a&&a.Zh("html5_modern_vp9_mime_type");var b;fg=!((b=a)==null||!b.Zh("html5_enable_flush_during_seek"))&&g.py();var O;Hw=!((O=a)==null||!O.Zh("html5_enable_reset_audio_decoder"))&&g.py()}; Y2l=function(q){return g.a6(q.V,function(a){return!!a.info.video&&a.info.video.qualityOrdinal>=2160})}; AQm=function(q){return g.a6(q.V,function(a){return!!a.info.video&&a.info.video.isHdr()})}; cX=function(q){return g.a6(q.V,function(a){return!!a.info.vN})}; g.PwG=function(q){return g.a6(q.V,function(a){return yz(a.info.mimeType)})}; K5y=function(q){return g.a6(q.V,function(a){return a.info.video?a.info.video.projectionType==="EQUIRECTANGULAR":!1})}; d7G=function(q){return g.a6(q.V,function(a){return a.info.video?a.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; TDc=function(q){return g.a6(q.V,function(a){return a.info.video?a.info.video.projectionType==="MESH":!1})}; $7m=function(q){return g.a6(q.V,function(a){return a.info.video?a.info.video.stereoLayout===1:!1})}; sYy=function(q){return MyG(q.V,function(a){return a.info.video?a.Bk():!0})}; Si=function(q){return g.a6(q.V,function(a){return z1(a.GZ.V)})}; SS=function(q,a){q.V[a.info.id]=a;q.W.set(vG(g.WY(a.info,q.pk)),a)}; XH=function(q,a,w){w=w===void 0?0:w;var G=q.mimeType||"",k=q.itag;var b=q.xtags;k=k?k.toString():"";b&&(k+=";"+b);b=k;if(RK(G)){var O=q.width||640;k=q.height||360;var e=q.fps,N=q.qualityLabel,Y=q.qualityOrdinal,P=q.colorInfo,K=q.projectionType,d;q.stereoLayout&&(d=F5m[q.stereoLayout]);var T=bWJ(q)||void 0;if(P==null?0:P.primaries)var F=Cwy[P.primaries]||void 0;O=new ff(O,k,e,K,d,void 0,N,Y&&ZWl[Y],T,F);G=pg(G,O,pf[q.itag||""]);fg&&(G+="; enableflushduringseek=true");Hw&&(G+="; enableresetaudiodecoder=true")}var J; if(DT(G)){var Q=q.audioSampleRate;d=q.audioTrack;Q=new Vz(Q?+Q:void 0,q.audioChannels,q.spatialAudioType,q.isDrc,q.loudnessDb,q.trackAbsoluteLoudnessLkfs,q.audioQuality||"AUDIO_QUALITY_UNKNOWN",q.isVb);d&&(F=d.displayName,k=d.id,d=d.audioIsDefault,F&&(J=new g.M5(F,k||"",!!d)))}var B;q.captionTrack&&(N=q.captionTrack,d=N.displayName,F=N.vssId,k=N.languageCode,e=N.kind,N=N.id,d&&F&&k&&(B=new GLK(d,F,k,e,q.xtags,N)));d=Number(q.bitrate)/8;F=Number(q.contentLength);k=Number(q.lastModified);N=q.drmFamilies; e=q.type;w=w&&F?F/w:0;q=Number(q.approxDurationMs);if(a&&N){var L={};N=g.V(N);for(Y=N.next();!Y.done;Y=N.next())(Y=Us[Y.value])&&(L[Y]=a[Y])}return new Ue(b,G,{audio:Q,video:O,Pq:J,vN:L,J2:d,zB:w,contentLength:F,lastModified:k,captionTrack:B,streamType:e,approxDurationMs:q})}; jS=function(q,a,w){w=w===void 0?0:w;var G=q.type;var k=q.itag;var b=q.xtags;b&&(k=q.itag+";"+b);if(RK(G)){var O=(q.size||"640x360").split("x");O=new ff(+O[0],+O[1],+q.fps,q.projection_type,+q.stereo_layout,void 0,q.quality_label,+q.quality_ordinal,q.eotf,q.primaries);G=pg(G,O,pf[q.itag]);fg&&(G+="; enableflushduringseek=true");Hw&&(G+="; enableresetaudiodecoder=true")}var e;if(DT(G)){var N=new Vz(+q.audio_sample_rate||void 0,+q.audio_channels||0,q.spatial_audio_type,!!q.drc);q.name&&(e=new g.M5(q.name, q.audio_track_id,q.isDefault==="1"))}var Y;q.caption_display_name&&q.caption_vss_id&&q.caption_language_code&&(Y=new GLK(q.caption_display_name,q.caption_vss_id,q.caption_language_code,q.caption_kind,q.xtags,q.caption_id));b=Number(q.bitrate)/8;var P=Number(q.clen),K=Number(q.lmt);w=w&&P?P/w:0;if(a&&q.drm_families){var d={};for(var T=g.V(q.drm_families.split(",")),F=T.next();!F.done;F=T.next())F=F.value,d[F]=a[F]}return new Ue(k,G,{audio:N,video:O,Pq:e,vN:d,J2:b,zB:w,contentLength:P,lastModified:K, captionTrack:Y,streamType:q.stream_type,approxDurationMs:Number(q.approx_duration_ms)})}; EjJ=function(q){return In(q,function(a){return"FORMAT_STREAM_TYPE_OTF"===a.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; VNJ=function(q){return In(q,function(a){return"FORMAT_STREAM_TYPE_OTF"===a.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; JBK=function(q,a){return q.timeline?HR(q.timeline.Y,a):q.y7.length?HR(q.y7,a):[]}; oa=function(q,a,w){a=a===void 0?"":a;w=w===void 0?"":w;q=new g.u5(q,!0);q.set("alr","yes");w&&(w=vPV(decodeURIComponent(w)),q[l[20]](a,encodeURIComponent(w)));return q}; x7K=function(q,a){var w=YD(a,"id");w=w.replace(":",";");var G=YD(a,"mimeType"),k=YD(a,"codecs");G=k?G+'; codecs="'+k+'"':G;k=Number(YD(a,"bandwidth"))/8;var b=Number(Pw(a,"BaseURL").getAttribute(q.D+":contentLength")),O=q.duration&&b?b/q.duration:0;if(RK(G)){var e=Number(YD(a,"width"));var N=Number(YD(a,"height")),Y=Number(YD(a,"frameRate")),P=m7_(YD(a,q.D+":projectionType"));a:switch(YD(a,q.D+":stereoLayout")){case "layout_left_right":var K=1;break a;case "layout_top_bottom":K=2;break a;default:K= 0}e=new ff(e,N,Y,P,K)}if(DT(G)){var d=Number(YD(a,"audioSamplingRate"));var T=Number(YD(a.getElementsByTagName("AudioChannelConfiguration")[0],"value"));N=QYN(YD(a,q.D+":spatialAudioType"));d=new Vz(d,T,N);a:{T=YD(a,"lang")||"und";if(N=Pw(a,"Role"))if(P=YD(N,"value")||"",g.NW(ABf,P)){N=T+"."+ABf[P];Y=P==="main";q=YD(a,q.D+":langName")||T+" - "+P;T=new g.M5(q,N,Y);break a}T=void 0}}if(a=Pw(a,"ContentProtection"))if(a.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var F={};for(a= a.firstChild;a!=null;a=a.nextSibling)a instanceof Element&&/SystemURL/.test(a.nodeName)&&(q=a.getAttribute("type"),N=a.textContent,q&&N&&(F[q]=N.trim()))}else F=void 0;return new Ue(w,G,{audio:d,video:e,Pq:T,vN:F,J2:k,zB:O,contentLength:b})}; m7_=function(q){switch(q){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"}}; QYN=function(q){switch(q){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"}}; BDV=function(q,a){a=a===void 0?"":a;q.state=1;q.L7=(0,g.Zj)();return OWK(a||q.sourceUrl).then(function(w){if(!q.t2()){q.eZ=w.status;w=w.responseText;var G=new DOMParser;w=A7(G,rty(w),"text/xml").getElementsByTagName("MPD")[0];q.F9=nGl(YD(w,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(w.attributes){G=g.V(w.attributes);for(var k=G.next();!k.done;k=G.next())if(k=k.value,k.value==="http://youtube.com/yt/2012/10/10"){G=k.name.split(":")[1];break b}}G=""}q.D=G;q.isLive=q.F9=q.F9}; njc=function(q){q.L&&q.L.stop()}; L5l=function(q){var a=q.F9;isFinite(a)&&(Ia(q)?q.refresh():(a=Math.max(0,q.L7+a-(0,g.Zj)()),q.L||(q.L=new g.o1(q.refresh,a,q),g.p(q,q.L)),q.L.start(a)))}; MNm=function(q){q=q.V;for(var a in q){var w=q[a].index;if(w.isLoaded())return w.P5()+1}return 0}; uj=function(q){return q.yN?q.yN-(q.X||q.timestampOffset):0}; tw=function(q){return q.jt?q.jt-(q.X||q.timestampOffset):0}; vw=function(q){if(!isNaN(q.EK))return q.EK;var a=q.V,w;for(w in a){var G=a[w].index;if(G.isLoaded()&&!yz(a[w].info.mimeType)){a=0;for(w=G.l9();w<=G.P5();w++)a+=G.getDuration(w);a/=G.PP();a=Math.round(a/.5)*.5;G.PP()>10&&(q.EK=a);return a}if(q.isLive&&(G=a[w],G.Ca))return G.Ca}return NaN}; hbV=function(q,a){q=Sjy(q.V,function(G){return G.index.isLoaded()}); if(!q)return NaN;q=q.index;var w=q.uT(a);return q.getStartTime(w)===a?a:w=0&&k.segments.splice(b,1)}}}; fhJ=function(q){for(var a in q.V)yz(q.V[a].info.mimeType)||pbN(q.V[a].index,Infinity)}; Ww=function(q,a,w){for(var G in q.V){var k=q.V[G].index,b=a,O=w;k.j_&&(b&&(k.rd=Math.max(k.rd,b)),O&&(k.Dm=Math.max(k.Dm||0,O)))}w&&(q.UK=w/1E3)}; HWK=function(q){q.jt=0;q.yN=0;q.N1=0}; Dw=function(q){return q.Tl&&q.isManifestless?q.isLiveHeadPlayable:q.isLive}; pg=function(q,a,w){Ra===null&&(Ra=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(NDl&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return Ra||w!=="9"&&w!=="("?Ra||w!=="9h"&&w!=="(h"||(q='video/webm; codecs="vp9.2"'):q='video/webm; codecs="vp9"',q;if(!Ra&&!yW||q!=='video/webm; codecs="vp9"'&&q!=='video/webm; codecs="vp9.2"')return q; w="00";var G="08",k="01",b="01",O="01";q==='video/webm; codecs="vp9.2"'&&(w="02",G="10",a.primaries==="bt2020"&&(O=k="09"),a.V==="smpte2084"&&(b="16"),a.V==="arib-std-b67"&&(b="18"));return'video/webm; codecs="'+["vp09",w,"51",G,"01",k,b,O,"00"].join(".")+'"'}; gR=function(q,a,w){q=""+q+(a>49?"p60":a>32?"p48":"");a=sl()[q];if(a!=null&&a>0)return a;a=qi.get(q);if(a!=null&&a>0)return a;w=w==null?void 0:w.get(q);return w!=null&&w>0?w:8192}; cBm=function(q){this.cT=q;this.Nh=this.aE=this.EK=this.D=this.Y=this.St=this.le=this.F9=!1;this.X=this.L=0;this.BT=!1;this.UK=!0;this.h2=!1;this.yp=0;this.Po=this.jt=!1;this.h8=!0;this.Tl=this.L7=!1;this.V={};this.yN=this.w$=this.L0=this.disableAv1=this.OA=this.M9=this.VN=this.uF=this.U=this.S=!1;this.y7=0;this.IW=!1;this.JS=this.cT.T("html5_disable_aac_preference");this.OQ=Infinity;this.f7=0;this.Ai=this.cT.TZ();this.N1=this.cT.experiments.Zh("html5_enable_vp9_fairplay");this.QE=this.cT.T("html5_force_av1_for_testing"); this.A2=g.Wo(this.cT.experiments,"html5_av1_ordinal_cap");this.rz=this.cT.T("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.aA=this.cT.T("html5_account_onesie_format_selection_during_format_filter");this.J2=g.Wo(this.cT.experiments,"html5_max_byterate");this.Ck=this.cT.T("html5_enable_iamf_audio");this.RA=this.cT.experiments.Zh("html5_allow_capability_merge");this.C0=this.cT.T("html5_enable_encrypted_av1");this.y7=g.Wo(this.cT.experiments,"html5_hard_cap_max_vertical_resolution");this.IW= this.cT.T("html5_enable_new_audio_settings_menu")}; xfl=function(q){if(q.le)return["f"];if(g.Hr("appletv5"))return"h 9h 9 8 H (h ( *".split(" ");var a=["9h","9","h","8"];q.C0&&a.push("1e");a=a.concat(["(h","(","H","*"]);q.jt&&(a.unshift("1"),a.unshift("1h"));q.aE&&a.unshift("h");q.J&&(a=(pzU[q.J]||[q.J]).concat(a));return a}; ZtJ=function(q){var a=["o","a","A"];q.f7===1&&(q.Y&&(a=["mac3","MAC3"].concat(a)),q.D&&(a=["meac3","MEAC3"].concat(a)),q.Ck&&(a=["i","I"].concat(a)));q.F9&&(a=["so","sa"].concat(a));!q.Nh||q.EK||q.W||q.JS||a.unshift("a");q.W&&(a=(pzU[q.W]||[q.W]).concat(a));return a}; aW=function(q,a,w,G){a=a===void 0?{}:a;if(G===void 0?0:G)return a.disabled=1,0;if(og(q.D,Ig.AV1_CODECS)&&og(q.D,Ig.HEIGHT)&&og(q.D,Ig.BITRATE))return a.isCapabilityUsable=1,8192;try{var k=gJc();if(k&&!q.T("disable_av1_setting"))return a.localPref=k}catch(e){}G=1080;k=navigator.hardwareConcurrency;k<=2&&(G=480);a.coreCount=k;if(k=g.Wo(q.experiments,"html5_default_av1_threshold"))G=a["default"]=k;!q.T("html5_disable_av1_arm_check")&&dAU()&&(a.isArm=1,G=240);if(q=q.D.UK)a.mcap=q,G=Math.max(G,q);if(w){var b, O;if(q=(b=w.videoInfos.find(function(e){return IK(e)}))==null?void 0:(O=b.U)==null?void 0:O.powerEfficient)G=8192,a.isEfficient=1; w=w.videoInfos[0].video;b=Math.min(gR("1",w.fps),gR("1",30));a.perfCap=b;G=Math.min(G,b);w.isHdr()&&!q&&(a.hdr=1,G*=.75)}else w=gR("1",30),a.perfCap30=w,G=Math.min(G,w),w=gR("1",60),a.perfCap60=w,G=Math.min(G,w);return a.av1Threshold=G}; wR=function(q,a,w,G){this.flavor=q;this.keySystem=a;this.U=w;this.experiments=G;this.V={};this.le=this.keySystemAccess=null;this.El=this.eh=-1;this.KF=null;this.W=!!G&&G.Zh("edge_nonprefixed_eme");G&&G.Zh("html5_enable_vp9_fairplay")}; kx=function(q){return q.W?!1:!q.keySystemAccess&&!!G8()&&q.keySystem==="com.microsoft.playready"}; bE=function(q){return q.keySystem==="com.microsoft.playready"}; O1=function(q){return!q.keySystemAccess&&!!G8()&&q.keySystem==="com.apple.fps.1_0"}; lE=function(q){return q.keySystem==="com.youtube.fairplay"}; eE=function(q){return q.keySystem==="com.youtube.fairplay.sbdl"}; g.Ni=function(q){return q.flavor==="fairplay"}; G8=function(){var q=window,a=q.MSMediaKeys;je()&&!a&&(a=q.WebKitMediaKeys);return a&&a.isTypeSupported?a:null}; Pm=function(q){return navigator.requestMediaKeySystemAccess?g.se&&!g.py()?ZW("45"):g.jI||g.eL?q.Zh("edge_nonprefixed_eme"):g.Yx?ZW("47"):g.Ph&&q.Zh("html5_enable_safari_fairplay")?!1:!0:!1}; U7l=function(q,a,w,G){var k=UF(),b=(w=k||w&&je())?["com.youtube.fairplay"]:["com.widevine.alpha"];a&&b.unshift("com.youtube.widevine.l3");k&&G&&b.unshift("com.youtube.fairplay.sbdl");return w?b:q?[].concat(g.Tf(b),g.Tf(Kz.playready)):[].concat(g.Tf(Kz.playready),g.Tf(b))}; dR=function(q,a,w,G,k){G=G===void 0?!1:G;g.c.call(this);this.cT=a;this.useCobaltWidevine=G;this.d8=k;this.U=[];this.W={};this.V={};this.callback=null;this.D=!1;this.Y=[];this.initialize(q,!w)}; jYc=function(q,a){q.callback=a;q.Y=[];Pm(q.cT.experiments)?T8(q):XzU(q)}; T8=function(q){if(!q.t2())if(q.U.length===0)q.callback(q.Y);else{var a=q.U[0],w=q.W[a],G=ojj(q,w);if($x&&$x.keySystem===a&&$x.XJ2===JSON.stringify(G))q.d8("remksa",{re:!0}),Ihl(q,w,$x.keySystemAccess);else{var k,b;q.d8("remksa",{re:!1,ok:(b=(k=$x)==null?void 0:k.keySystem)!=null?b:""});$x=void 0;navigator.requestMediaKeySystemAccess(a,G).then(Rk(function(O){Ihl(q,w,O,G)}),Rk(function(){q.D=!q.D&&q.W[q.U[0]].flavor==="widevine"; q.D||q.U.shift();T8(q)}))}}}; Ihl=function(q,a,w,G){if(!q.t2()){G&&($x={keySystem:a.keySystem,keySystemAccess:w,XJ2:JSON.stringify(G)});a.keySystemAccess=w;if(bE(a)){w=Tt();G=g.V(Object.keys(q.V[a.flavor]));for(var k=G.next();!k.done;k=G.next())k=k.value,a.V[k]=!!w.canPlayType(k)}else{w=a.keySystemAccess.getConfiguration();if(w.audioCapabilities)for(G=g.V(w.audioCapabilities),k=G.next();!k.done;k=G.next())a.V[k.value.contentType]=!0;if(w.videoCapabilities)for(w=g.V(w.videoCapabilities),G=w.next();!G.done;G=w.next())a.V[G.value.contentType]= !0}q.Y.push(a);q.useCobaltWidevine||q.T("html5_enable_vp9_fairplay")&&eE(a)?(q.U.shift(),T8(q)):q.callback(q.Y)}}; ojj=function(q,a){var w={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(q.T("html5_enable_vp9_fairplay")&&lE(a))return w.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),w.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[w];bE(a)&&(w.initDataTypes=["keyids","cenc"]);for(var G=g.V(Object.keys(q.V[a.flavor])),k=G.next();!k.done;k=G.next()){k=k.value;var b=k.indexOf("audio/")===0,O=b?w.audioCapabilities:w.videoCapabilities;a.flavor!== "widevine"||q.D?O.push({contentType:k}):b?O.push({contentType:k,robustness:"SW_SECURE_CRYPTO"}):(g.se&&g.Hr("windows nt")&&!q.T("html5_drm_enable_moho")||O.push({contentType:k,robustness:"HW_SECURE_ALL"}),b=k,q.cT.D.W&&k.includes("vp09")&&(b=k+"; experimental=allowed"),O.push({contentType:b,robustness:"SW_SECURE_DECODE"}),s1(q.cT)==="MWEB"&&(zn()||cr())&&(q.d8("swcrypto",{}),O.push({contentType:k,robustness:"SW_SECURE_CRYPTO"})))}return[w]}; XzU=function(q){if(G8()&&(g.Ph||Ic))q.Y.push(new wR("fairplay","com.apple.fps.1_0","",q.cT.experiments));else{var a=ubm(),w=g.Z7(q.U,function(G){var k=q.W[G],b=!1,O=!1,e;for(e in q.V[k.flavor])a(e,G)&&(k.V[e]=!0,b=b||e.indexOf("audio/")===0,O=O||e.indexOf("video/")===0);return b&&O}); w&&q.Y.push(q.W[w]);q.U=[]}q.callback(q.Y)}; ubm=function(){var q=G8();if(q){var a=q.isTypeSupported;return function(G,k){return a(k,G)}}var w=Tt(); return w&&(w.addKey||w.webkitAddKey)?function(G,k){return!!w.canPlayType(G,k)}:function(){return!1}}; tNV=function(q){this.experiments=q;this.V=2048;this.Y=0;this.F9=(this.X=this.T("html5_streaming_resilience"))?.5:.25;var a=a===void 0?0:a;this.W=g.Wo(this.experiments,"html5_media_time_weight_prop")||a;this.J=(this.D=this.experiments.Zh("html5_consider_end_stall"))&&FI;this.U=this.experiments.Zh("html5_measure_max_progress_handling");this.S=this.T("html5_treat_requests_pre_elbow_as_metadata");this.L=this.T("html5_media_time_weight")||!!this.W;this.T("html5_sabr_live_audio_early_return_fix")&&FI&& (this.V=65536)}; vjj=function(q,a){this.V=void 0;this.experimentIds=q?q.split(","):[];this.flags=ze(a||"","&");q={};a=g.V(this.experimentIds);for(var w=a.next();!w.done;w=a.next())q[w.value]=!0;this.experiments=q}; g.Wo=function(q,a){q=q.flags[a];JSON.stringify(q);return Number(q)||0}; Cz=function(q,a){return(q=q.flags[a])?q.toString():""}; zbc=function(q){if(q=q.flags.html5_web_po_experiment_ids)if(q=q.replace(/\[ *(.*?) *\]/,"$1"))return q.split(",").map(Number);return[]}; iWl=function(q){if(q.V)return q.V;if(q.experimentIds.length<=1)return q.V=q.experimentIds,q.V;var a=[].concat(g.Tf(q.experimentIds)).map(function(G){return Number(G)}); a.sort();for(var w=a.length-1;w>0;--w)a[w]-=a[w-1];q.V=a.map(function(G){return G.toString()}); q.V.unshift("v1");return q.V}; D7m=function(q){return W5c.then(q)}; Zu=function(q,a,w){this.experiments=q;this.jt=a;this.f7=w===void 0?!1:w;this.J=!!g.aB("cast.receiver.platform.canDisplayType");this.S={};this.F9=!1;this.Y=new Map;this.X=!0;this.U=this.W=!1;this.V=new Map;this.UK=0;this.y7=this.experiments.Zh("html5_disable_vp9_encrypted");this.D=this.experiments.Zh("html5_enable_encrypted_av1");q=g.aB("cast.receiver.platform.getValue");this.L=!this.J&&q&&q("max-video-resolution-vpx")||null;RbG(this);this.W=!!(UF()&&fy()>=21)}; rQy=function(q,a,w){w=w===void 0?1:w;var G=a.itag;if(G==="0")return!0;var k=a.mimeType;if(a.K7==="1e"&&!q.D)return"dav1enc";if(IK(a)&&q.F9)return"dav1";if(a.video&&(a.video.isHdr()||a.video.primaries==="bt2020")&&!(og(q,Ig.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(G==="338"&&!(g.se?ZW(53):g.Yx&&ZW(64)))return"dopus";var b=w;b=b===void 0?1: b;w={};a.video&&(a.video.width&&(w[Ig.WIDTH.name]=a.video.width),a.video.height&&(w[Ig.HEIGHT.name]=a.video.height),a.video.fps&&(w[Ig.FRAMERATE.name]=a.video.fps*b),a.video.V&&(w[Ig.EOTF.name]=a.video.V),a.J2&&(w[Ig.BITRATE.name]=a.J2*8*b),a.K7==="("&&(w[Ig.CRYPTOBLOCKFORMAT.name]="subsample"),a.video.projectionType==="EQUIRECTANGULAR"||a.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||a.video.projectionType==="MESH")&&(w[Ig.DECODETOTEXTURE.name]="true");a.audio&&a.audio.numChannels&& (w[Ig.CHANNELS.name]=a.audio.numChannels);q.W&&X5(a)&&(w[Ig.EXPERIMENTAL.name]="allowed");b=g.V(Object.keys(Ig));for(var O=b.next();!O.done;O=b.next()){O=Ig[O.value];var e;if(e=w[O.name])if(e=!(O===Ig.EOTF&&a.mimeType.indexOf("vp09.02")>0)){e=O;var N=a;e=!(q.experiments.Zh("html5_ignore_h264_framerate_cap")&&e===Ig.FRAMERATE&&rIc(N))}if(e)if(og(q,O))if(q.L){if(q.L[O.name] 1080&&a.vN&&(k+="; hdcp=2.2");return G==="227"?"hqcenc":G!=="585"&&G!=="588"&&G!=="583"&&G!=="586"&&G!=="584"&&G!=="587"&&G!=="591"&&G!=="592"||q.experiments.Zh("html5_enable_new_hvc_enc")?UF()&&fy()>=21&&g.Hr("appletv5")&&(G==="410"||G==="845")?!0:q.isTypeSupported(k)?!0:"tpus":"newhvc"}; E1=function(){var q=cr()&&!ZW(29),a=g.Hr("google tv")&&g.Hr("chrome")&&!ZW(30);return q||a?!1:Hjm()}; yBV=function(q,a,w){var G=480;a=g.V(a);for(var k=a.next();!k.done;k=a.next()){k=k.value;var b=k.video.qualityOrdinal;b<=1080&&b>G&&rQy(q,k,w)===!0&&(G=b)}return G}; g.Vw=function(q,a){a=a===void 0?!1:a;return E1()&&q.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!a&&q.canPlayType(Tt(),"application/x-mpegURL")?!0:!1}; gby=function(q){qfl(function(){for(var a=g.V(Object.keys(Ig)),w=a.next();!w.done;w=a.next())og(q,Ig[w.value])})}; og=function(q,a){a.name in q.S||(q.S[a.name]=aaG(q,a));return q.S[a.name]}; aaG=function(q,a){if(q.L)return!!q.L[a.name];if(a===Ig.BITRATE&&q.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!q.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(a===Ig.AV1_CODECS)return q.isTypeSupported("video/mp4; codecs="+a.valid)&&!q.isTypeSupported("video/mp4; codecs="+a.tZ);if(a.video){var w='video/webm; codecs="vp9"';q.isTypeSupported(w)||(w='video/mp4; codecs="avc1.4d401e"')}else w='audio/webm; codecs="opus"', q.isTypeSupported(w)||(w='audio/mp4; codecs="mp4a.40.2"');return q.isTypeSupported(w+"; "+a.name+"="+a.valid)&&!q.isTypeSupported(w+"; "+a.name+"="+a.tZ)}; wkK=function(q,a){var w=0;q.Y.has(a)&&(w=q.Y.get(a).gY);q.Y.set(a,{gY:w+1,nj:Math.pow(2,w+1)});q.U=!0}; px=function(q){for(var a=[],w=g.V(q.V.keys()),G=w.next();!G.done;G=w.next()){G=G.value;var k=q.V.get(G);a.push(G+"_"+k.maxWidth+"_"+k.maxHeight)}return a.join(".")}; VHG=function(q,a){for(var w=new Map,G=g.V(q.V.keys()),k=G.next();!k.done;k=G.next()){k=k.value;var b=k.split("_")[0];a.has(b)||w.set(k,q.V.get(k))}q.V=w}; mfl=function(q,a,w){var G,k=((G=w.video)==null?void 0:G.fps)||0;G=a+"_"+k;var b=!!w.audio,O={itag:w.itag,K7:a,t$:b};if(b)O.numChannels=w.audio.numChannels;else{var e=w.video;O.maxWidth=e==null?void 0:e.width;O.maxHeight=e==null?void 0:e.height;O.maxFramerate=k;og(q,Ig.BITRATE)&&(O.maxBitrateBps=w.J2*8);O.IB=e==null?void 0:e.isHdr()}e=q.V.get(G);e?b||(w=Math.max(e.maxWidth||0,e.maxHeight||0)>Math.max(O.maxWidth||0,O.maxHeight||0)?e:O,a={itag:w.itag,K7:a,t$:b,maxWidth:Math.max(e.maxWidth||0,O.maxWidth|| 0),maxHeight:Math.max(e.maxHeight||0,O.maxHeight||0),maxFramerate:k,IB:w.IB},og(q,Ig.BITRATE)&&(a.maxBitrateBps=w.maxBitrateBps),q.V.set(G,a)):q.V.set(G,O)}; QmN=function(q,a,w){var G,k=((G=w.video)==null?void 0:G.fps)||0;G=a+"_"+k;var b=!!w.audio,O=q.V.get(G);a:{var e=q.V.get(G),N=!!w.audio;if(e){if(N){var Y=!1;break a}var P;if(!N&&((Y=w.video)==null?0:Y.height)&&e.maxHeight&&e.maxHeight>=((P=w.video)==null?void 0:P.height)){Y=!1;break a}}Y=!0}Y&&(Y=w.itag,a=O?O:{itag:Y,K7:a,t$:b},b?a.numChannels=w.audio.numChannels:(b=w.video,a.maxWidth=b==null?void 0:b.width,a.maxHeight=b==null?void 0:b.height,a.maxFramerate=k,og(q,Ig.BITRATE)&&(a.maxBitrateBps=w.J2* 8),a.IB=b==null?void 0:b.isHdr()),q.V.set(G,a))}; RbG=function(q){var a;(a=navigator.mediaCapabilities)!=null&&a.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(w){w.smooth&&w.powerEfficient&&(q.UK=2160)})}; Jj=function(){g.ya.call(this);this.items={}}; mI=function(q,a){this.V=q;this.cipher=this.V.exports.AES128CTRCipher_create(a.byteOffset)}; Aj=function(){this.U=this.ri=0;this.V=Array.from({length:Qw.length}).fill(0)}; GHK=function(){}; kHc=function(){this.startTimeMs=(0,g.Zj)();this.V=!1}; b8f=function(){this.V=new GHK}; O8N=function(q,a,w,G){G=G===void 0?1:G;w>=0&&(a in q.V||(q.V[a]=new Aj),q.V[a].My(w,G))}; lal=function(q,a,w,G,k){var b=(0,g.Zj)(),O=k?k(a):void 0,e;k=(e=O==null?void 0:O.ri)!=null?e:1;if(k!==0){var N;e=(N=O==null?void 0:O.profile)!=null?N:w;O8N(q,e,b-G,k)}return a}; eOc=function(q,a,w,G,k){if(a&&typeof a==="object"){var b=function(O){return lal(q,O,w,G,k)}; if(Hc(a))return a.then(b);if(fO(a))return jZ(a,b)}return lal(q,a,w,G,k)}; Nvc=function(){}; KTm=function(q,a){return Ik(Yfm,function(){var w=this;return function k(){var b,O,e;return Uj(k,function(N){switch(N.U){case 1:g.QV(N,2);if(!w.Y)throw"wasm.ps.ns";b=q;O=jy;return VV(N,uZ(P3c(w,a)),4);case 4:e=O(N.V);if(!e)throw"wasm.ps.um";try{return N.return(new WebAssembly.Instance(e,b))}catch(Y){}return VV(N,uZ(WebAssembly.instantiate(e,b)),5);case 5:return N.return(N.V);case 2:g.Sy(N),g.HJ(N,0)}})}()})}; dxm=function(q,a){q.V||(q.V=jZ(Ut(function(){return fetch(a)}),function(w){return w.arrayBuffer()}),ok(q.V,function(w){q.V=void 0; throw"wasm.ps.f: "+w;}))}; P3c=function(q,a){if(q.U)return q.U;q.U=TvG(q,a);ok(q.U,function(w){q.U=void 0;throw"wasm.ps.c: "+w;}); return q.U}; TvG=function(q,a){return Ik(q,function(){var w=this;return function k(){var b,O,e,N,Y,P,K,d,T,F,J,Q,B,L;return Uj(k,function(M){switch(M.U){case 1:g.QV(M,2);b=[];O=window.ywc;if(!O){M.Gl(4);break}e=O[a];if(!e){M.Gl(4);break}if(e.mod)return M.return(e.mod);if(!e.modP){M.Gl(6);break}g.ml(M,7);N=jy;return VV(M,uZ(e.modP),9);case 9:return M.return(N(M.V));case 7:g.rc(M),b.unshift("pcm");case 6:if(e.bin){w.V=cc(e.bin);M.Gl(4);break}if(!e.binP){M.Gl(4);break}g.ml(M,12);Y=SZ;P=cc;K=jy;return VV(M,uZ(e.binP), 14);case 14:w.V=P.call(Y,K(M.V));g.xl(M,4);break;case 12:g.rc(M),w.V=void 0,b.unshift("pfb");case 4:if(!w.V){M.Gl(15);break}g.ml(M,16);d=jy;return VV(M,uZ(w.V),18);case 18:T=d(M.V);if(w.W)try{return M.return(new WebAssembly.Module(T))}catch(H){w.W=!1,b.unshift("f0cs")}F=jy;return VV(M,uZ(WebAssembly.compile(T)),19);case 19:return M.return(F(M.V));case 16:g.rc(M),w.V=void 0,b.unshift("f0ca");case 15:return g.ml(M,20),dxm(w,a),J=jy,VV(M,uZ(w.V),22);case 22:Q=J(M.V);if(w.W)try{return M.return(new WebAssembly.Module(Q))}catch(H){w.W= !1,b.unshift("f1cs")}B=jy;return VV(M,uZ(WebAssembly.compile(Q)),23);case 23:return M.return(B(M.V));case 20:L=g.rc(M),w.V=void 0,w.Y=!1,b.unshift("f1ca: "+L);case 21:throw"["+b.map(function(H){return'"'+H+'"'}).join(", ")+"]"; case 2:g.Sy(M),g.HJ(M,0)}})}()})}; $xU=function(){}; sXj=function(){var q=this;this.proc_exit=function(){}; this.fd_write=function(a,w,G){if(!q.exports)return 1;a=new Uint32Array(q.exports.memory.buffer,w,G*2);w=[];for(var k=0;k0)a=q.byterate,this.F9=!0;else{var G; w=(((G=navigator.connection)==null?void 0:G.downlink)||0)*64*1024;w>0&&(a=w,this.F9=!0)}this.W.bM(this.policy.L,a);q.delay>0&&this.S.bM(1,Math.min(q.delay,2));q.stall>0&&this.X.bM(1,q.stall);q.init>0&&(this.L7=Math.min(q.init,this.L7));q.interruptions&&(this.Y=this.Y.concat(q.interruptions),this.Y.length>16&&this.Y.pop());this.UK=(0,g.Zj)();this.policy.X>0&&(this.Tl=new g.o1(this.St,this.policy.X,this),g.p(this,this.Tl),this.Tl.start())}; U1=function(q,a,w,G){q.W.bM(G===void 0?a:G,w/a);q.L=(0,g.Zj)()}; QXl=function(q){q.D||(q.D=(0,g.Zj)());q.policy.J&&(q.L=(0,g.Zj)())}; A9l=function(q,a){if(q.D){var w=a-q.D;if(w<6E4){if(w>1E3){var G=q.interruptions;G.push(Math.ceil(w));G.sort(function(k,b){return b-k}); G.length>16&&G.pop()}q.jt+=w}}q.D=a}; XI=function(q,a,w,G,k,b){b=b===void 0?!1:b;q.EK.bM(a,w/a);q.L=(0,g.Zj)();k||q.J.bM(1,a-G);b||(q.D=0);q.UK>-1&&(0,g.Zj)()-q.UK>3E4&&xxV(q)}; jE=function(q,a,w){a=Math.max(a,q.U.V);q.X.bM(1,w/a)}; oW=function(q){q=q.S.CO()+q.f7.CO()||0;q=isNaN(q)?.5:q;return q=Math.min(q,5)}; IW=function(q,a,w){isNaN(w)||(q.y7+=w);isNaN(a)||(q.le+=a)}; uE=function(q){q=q.W.CO();return q>0?q:1}; tj=function(q,a,w){a=a===void 0?!1:a;w=w===void 0?1048576:w;var G=uE(q);G=1/((q.X.CO()||0)*q.policy.F9+1/G);var k=q.EK.CO();k=k>0?k:1;var b=Math.max(G,k);q.policy.D>0&&k=4E3}; BvK=function(q){this.experiments=q;this.V=17;this.W=13E4;this.L=.5;this.Y=this.U=!1;this.UK=this.T("html5_use_histogram_for_bandwidth");this.D=g.Wo(this.experiments,"html5_auxiliary_estimate_weight");this.F9=g.Wo(this.experiments,"html5_stall_factor")||1;this.X=g.Wo(this.experiments,"html5_check_for_idle_network_interval_ms");this.S=this.experiments.Zh("html5_trigger_loader_when_idle_network");this.J=this.experiments.Zh("html5_sabr_fetch_on_idle_network_preloaded_players")}; nbG=function(q,a){q=q===void 0?{}:q;a=a===void 0?{}:a;g.c.call(this);var w=this;this.values=q;this.Tf=a;this.U={};this.W=this.V=0;this.Y=new g.o1(function(){r9l(w)},1E4); g.p(this,this.Y)}; z8=function(q,a){Mvl(q,a);return q.values[a]&&q.Tf[a]?q.values[a]/Math.pow(2,q.V/q.Tf[a]):0}; Mvl=function(q,a){q.values[a]||(a=DhG(),q.values=a.values||{},q.Tf=a.halfLives||{},q.U=a.values?Object.assign({},a.values):{})}; r9l=function(q){var a=DhG();if(a.values){a=a.values;for(var w={},G=g.V(Object.keys(q.values)),k=G.next();!k.done;k=G.next())k=k.value,a[k]&&q.U[k]&&(q.values[k]+=a[k]-q.U[k]),w[k]=z8(q,k);q.U=w}a=q.Tf;w={};w.values=q.U;w.halfLives=a;g.AE("yt-player-memory",w,2592E3)}; KA=function(q,a,w,G,k){g.c.call(this);this.webPlayerContextConfig=a;this.ag=G;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.ym=this.OA=this.M9=this.J4=this.userDisplayName=this.userDisplayImage=this.eG="";this.V={};this.yN={};this.controlsType="0";this.OQ=NaN;this.BT=!1;this.Th=(0,g.Zj)();this.uF=0;this.FB=this.RE=!1;this.sj=!0;this.preferGapless=this.KF=this.E3=this.W=this.tp=!1;this.pF=[];this.XN=!1;this.Y2=0;q=q?g.$I(q):{};a&&a.csiPageType&&(this.csiPageType=a.csiPageType);a&&a.csiServiceName&& (this.csiServiceName=a.csiServiceName);a&&a.preferGapless&&(this.preferGapless=a.preferGapless);this.experiments=new vjj(a?a.serializedExperimentIds:q.fexp,a?a.serializedExperimentFlags:q.fflags);this.forcedExperiments=a?a.serializedForcedExperimentIds:qR("",q.forced_experiments)||void 0;this.cspNonce=(a==null?0:a.cspNonce)?a.cspNonce:qR("",q.csp_nonce);this.T("web_player_deprecated_uvr_killswitch");try{var b=document.location.toString()}catch(Oj){b=""}this.rz=b;this.ancestorOrigins=(G=window.location.ancestorOrigins)? Array.from(G):[];this.Y=DS(!1,a?a.isEmbed:q.is_embed);if(a&&a.device){if(G=a.device,G.androidOsExperience&&(this.V.caoe=""+G.androidOsExperience),G.androidPlayServicesVersion&&(this.V.capsv=""+G.androidPlayServicesVersion),G.brand&&(this.V.cbrand=G.brand),G.browser&&(this.V.cbr=G.browser),G.browserVersion&&(this.V.cbrver=G.browserVersion),G.cobaltReleaseVehicle&&(this.V.ccrv=""+G.cobaltReleaseVehicle),this.V.c=G.interfaceName||"WEB",this.V.cver=G.interfaceVersion||"html5",G.interfaceTheme&&(this.V.ctheme= G.interfaceTheme),this.V.cplayer=G.interfacePlayerType||"UNIPLAYER",G.model&&(this.V.cmodel=G.model),G.network&&(this.V.cnetwork=G.network),G.os&&(this.V.cos=G.os),G.osVersion&&(this.V.cosver=G.osVersion),G.platform&&(this.V.cplatform=G.platform),b=Cz(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),b==="all"||b==="once")G.chipset&&(this.yN.cchip=G.chipset),G.cobaltAppVersion&&(this.yN.ccappver=G.cobaltAppVersion),G.firmwareVersion&&(this.yN.cfrmver=G.firmwareVersion),G.deviceYear&&(this.yN.crqyear= G.deviceYear)}else this.V.c=q.c||"web",this.V.cver=q.cver||"html5",this.V.cplayer="UNIPLAYER";this.loaderUrl=a?this.Y||hOK(this)&&a.loaderUrl?a.loaderUrl||"":this.rz:this.Y||hOK(this)&&q.loaderUrl?qR("",q.loaderUrl):this.rz;this.Y&&g.qe("yt.embedded_player.embed_url",this.loaderUrl);this.S=fp(this.loaderUrl,SfV);G=this.loaderUrl;var O=O===void 0?!1:O;this.Qr=S7(fp(G,fam),G,O,"Trusted Ad Domain URL");this.Ck=DS(!1,q.privembed);this.protocol=this.rz.indexOf("http:")===0?"http":"https";this.pE=NIV((a? a.customBaseYoutubeUrl:q.BASE_YT_URL)||"")||NIV(this.rz)||this.protocol+"://www.youtube.com/";O=a?a.eventLabel:q.el;G="detailpage";O==="adunit"?G=this.Y?"embedded":"detailpage":O==="embedded"||this.S?G=Rc(G,O,H8c):O&&(G="embedded");this.f7=G;JKV();O=null;G=a?a.playerStyle:q.ps;b=g.Vx(c9N,G);!G||b&&!this.S||(O=G);this.playerStyle=O;this.L=g.Vx(c9N,this.playerStyle);this.houseBrandUserStatus=a==null?void 0:a.houseBrandUserStatus;this.UK=this.L&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard"; this.WM=!this.UK;this.Tl=DS(!1,q.disableplaybackui);this.disablePaidContentOverlay=DS(!1,a==null?void 0:a.disablePaidContentOverlay);this.disableSeek=DS(!1,a==null?void 0:a.disableSeek);this.enableSpeedOptions=(a==null?void 0:a.enableSpeedOptions)||(Tt().defaultPlaybackRate?iE||g.vr||Wm?g.Yx&&ZW("20")||g.se&&ZW("4")||g.Du&&ZW("11")||oc():!(g.Du&&!g.Hr("chrome")||iE||g.Hr("android")||g.Hr("silk")):!1);this.vC=DS(!1,q.enable_faster_speeds);var e;this.supportsVarispeedExtendedFeatures=(e=a==null?void 0: a.supportsVarispeedExtendedFeatures)!=null?e:!1;this.U=DS(this.playerStyle==="blazer",q.is_html5_mobile_device||a&&a.isMobileDevice);this.le=tG()||zn();this.uR=this.T("mweb_allow_background_playback")?!1:this.U&&!this.L;this.EK=ZT();this.Kb=g.RW;var N;this.Uk=!!(a==null?0:(N=a.embedsHostFlags)==null?0:N.optOutApiDeprecation);var Y;a?a.hideInfo!==void 0&&(Y=!a.hideInfo):Y=q.showinfo;this.WF=g.yw(this)&&!this.Uk||DS(!q2(this)&&!g8(this)&&!this.L,Y);this.OM=a?!!a.mobileIphoneSupportsInlinePlayback:DS(!1, q.playsinline);e=this.U&&av&&w8!=null&&w8>0&&w8<=2.3;N=a?a.useNativeControls:q.use_native_controls;this.X=g.yw(this)&&this.U;Y=this.U&&!this.X;N=g.Gu(this)||!e&&DS(Y,N)?"3":"1";this.disableOrganicUi=!(a==null||!a.disableOrganicUi);Y=a?a.controlsType:q.controls;this.controlsType=this.disableOrganicUi||Y==="0"||Y===0?"0":N;this.mP=this.U;this.color=Rc("red",a?a.progressBarColor:q.color,pkU);this.A5=this.controlsType==="3";this.N1=!this.Y;this.qZ=(N=!this.N1&&!g8(this)&&!this.UK&&!this.L&&!q2(this))&& !this.A5&&this.controlsType==="1";this.C0=g.kM(this)&&N&&this.controlsType==="0"&&!this.qZ&&!(a==null?0:a.embedsEnableEmc3ds);this.a4=this.bN=e;this.Nh=(this.controlsType==="3"||this.U||DS(!1,q.use_media_volume))&&!this.X;this.Q_=Ic&&!g.UX(601)?!1:!0;this.Ja=this.Y||!1;this.Ai=g8(this)?"":(this.loaderUrl||q.post_message_origin||"").substring(0,128);this.widgetReferrer=qR("",a?a.widgetReferrer:q.widget_referrer);var P;a?a.disableCastApi&&(P=!1):P=q.enablecastapi;P=!this.S||DS(!0,P);e=!0;a&&a.disableMdxCast&& (e=!1);this.bD=this.T("enable_cast_for_web_unplugged")&&g.b0(this)&&e||g.BA(this)&&e||P&&e&&this.controlsType==="1"&&!this.U&&(g8(this)||g.kM(this)||g.OV(this));this.VO=!!window.document.pictureInPictureEnabled||Cf();P=a?!!a.supportsAutoplayOverride:DS(!1,q.autoplayoverride);this.Q0=!(this.U&&!g.yw(this))&&!g.Hr("nintendo wiiu")||P;this.VT=(a?!!a.enableMutedAutoplay:DS(!1,q.mutedautoplay))&&!1;P=(g8(this)||q2(this))&&this.playerStyle==="blazer";this.PQ=a?!!a.disableFullscreen:!DS(!0,q.fs);e=g.GV(g.l0(this))&& g.yw(this);this.VN=!this.PQ&&(P||g.Yt())&&!e;this.g9=this.T("html5_picture_in_picture_logging_onresize");var K;this.kx=(K=g.Wo(this.experiments,"html5_picture_in_picture_logging_onresize_ratio"))!=null?K:.33;this.rk=this.T("html5_picture_in_picture_blocking_onresize");this.UM=this.T("html5_picture_in_picture_blocking_ontimeupdate");this.N$=this.T("html5_picture_in_picture_blocking_document_fullscreen");this.d2=this.T("html5_picture_in_picture_blocking_standard_api");K=cr()&&ZW(58)&&!zn();P=X4||typeof MediaSource=== "undefined";this.ZO=this.T("uniplayer_block_pip")&&(K||P)||this.rk||this.UM||this.d2;K=g.yw(this)&&!this.Uk;var d;a?a.disableRelatedVideos!==void 0&&(d=!a.disableRelatedVideos):d=q.rel;this.h8=K||DS(!this.L,d);this.rF=DS(!1,a?a.enableContentOwnerRelatedVideos:q.co_rel);this.J=zn()&&w8>0&&w8<=4.4?"_top":"_blank";this.Ku=g.OV(this);this.BQ=DS(this.playerStyle==="blazer",a?a.enableCsiLogging:q.enablecsi);switch(this.playerStyle){case "blogger":d="bl";break;case "gmail":d="gm";break;case "gac":d="ga"; break;case "ads-preview":d="ap";break;case "books":d="gb";break;case "docs":case "flix":d="gd";break;case "duo":d="gu";break;case "google-live":d="gl";break;case "google-one":d="go";break;case "play":case "play-ads":d="gp";break;case "chat":d="hc";break;case "hangouts-meet":d="hm";break;case "photos-edu":case "picasaweb":d="pw";break;default:d="yt"}this.F9=d;this.y7=qR("",a?a.authorizedUserIndex:q.authuser);this.w$=g.yw(this)&&(this.Ck||!Plf()||this.le);var T;a?a.disableWatchLater!==void 0&&(T=!a.disableWatchLater): T=q.showwatchlater;this.ke=((d=!this.w$)||!!this.y7&&d)&&DS(!this.UK,this.S?T:void 0);this.JS=a?a.isMobileDevice||!!a.disableKeyboardControls:DS(!1,q.disablekb);this.loop=DS(!1,q.loop);this.pageId=qR("",a?a.initialDelegatedSessionId:q.pageid);this.IH=DS(!0,q.canplaylive);T=g.Wo(this.experiments,"html5_default_audio_quality_setting_lr");var F;this.QO=(F=UxV[UxV[T]])!=null?F:0;this.IW=DS(!1,q.livemonitor);this.disableSharing=DS(this.L,a?a.disableSharing:q.ss);(F=a&&this.T("fill_video_container_size_override_from_wpcc")? a.videoContainerOverride:q.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.t7(F,T))):F=null;this.y_=F;this.mute=a?!!a.startMuted:DS(!1,q.mute);this.storeUserVolume=!this.mute&&DS(this.controlsType!=="0",a?a.storeUserVolume:q.store_user_volume);F=a?a.annotationsLoadPolicy:q.iv_load_policy;this.annotationsLoadPolicy=this.controlsType==="3"?3:Rc(void 0,F,e6);this.captionsLanguagePreference=a?a.captionsLanguagePreference|| "":qR("",q.cc_lang_pref);F=Rc(2,a?a.captionsLanguageLoadPolicy:q.cc_load_policy,e6);this.controlsType==="3"&&F===2&&(F=3);this.zj=F;this.aA=a?a.hl||"en_US":qR("en_US",q.hl);this.region=a?a.contentRegion||"US":qR("US",q.cr);this.hostLanguage=a?a.hostLanguage||"en":qR("en",q.host_language);this.i5=!this.Ck&&Math.random()=480;this.schedule=new pz(K,new tNV(this.experiments),k);g.p(this,this.schedule);var J;this.enableSafetyMode=(J=a==null?void 0:a.initialEnableSafetyMode)!=null?J:DS(!1,q.enable_safety_mode);k=this.Tl?!1:g8(this)&&this.playerStyle!== "blazer";var Q;a?a.disableAutonav!=null&&(Q=!a.disableAutonav):Q=q.allow_autonav;this.RA=DS(k,!this.UK&&Q);this.sendVisitorIdHeader=a?!!a.sendVisitorIdHeader:DS(!1,q.send_visitor_id_header);var B;this.playerStyle==="docs"&&(a?B=a.disableNativeContextMenu:B=q.disable_native_context_menu);this.disableNativeContextMenu=DS(!1,B);this.N5=e7(this)&&this.T("enable_skip_intro_button");this.embedConfig=qR("",a?a.serializedEmbedConfig:q.embed_config);this.jt=wg(q,g.yw(this));this.W=this.jt==="EMBEDDED_PLAYER_MODE_PFL"; this.embedsErrorLinks=!(a==null||!a.embedsErrorLinks);this.hJ=DS(!1,q.full_window);var L;this.A2=!((L=this.webPlayerContextConfig)==null?0:L.chromeless);var M;this.livingRoomAppMode=Rc("LIVING_ROOM_APP_MODE_UNSPECIFIED",q.living_room_app_mode||(a==null?void 0:(M=a.device)==null?void 0:M.livingRoomAppMode),obG);var H;Q=yb(NaN,a==null?void 0:(H=a.device)==null?void 0:H.deviceYear);isNaN(Q)||(this.deviceYear=Q);this.transparentBackground=a?!!a.transparentBackground:DS(!1,q.transparent_background);this.showMiniplayerButton= a?!!a.showMiniplayerButton:DS(!1,q.show_miniplayer_button);var X;g.yw(this)&&!(a==null?0:(X=a.embedsHostFlags)==null?0:X.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=a?!!a.externalFullscreen:DS(!1,q.external_fullscreen);this.showMiniplayerUiWhenMinimized=a?!!a.showMiniplayerUiWhenMinimized:DS(!1,q.use_miniplayer_ui);var D;this.sj=(D=q.show_loop_video_toggle)!=null?D:!0;this.t5=Math.random()<1E-4;if(q.onesie_hot_config||(a==null?0:a.onesieHotConfig))this.L0=new J9f(q.onesie_hot_config, a==null?void 0:a.onesieHotConfig),g.p(this,this.L0);this.isTectonic=a?!!a.isTectonic:!!q.isTectonic;this.playerCanaryState=w;this.playerCanaryStage=a==null?void 0:a.canaryStage;this.QE=new nbG;g.p(this,this.QE);this.datasyncId=(a==null?void 0:a.datasyncId)||g.UL("DATASYNC_ID");this.CF=g.UL("LOGGED_IN",!1);this.qM=(a==null?void 0:a.allowWoffleManagement)||!1;this.S7=Infinity;this.AJ=NaN;this.livingRoomPoTokenId=a==null?void 0:a.livingRoomPoTokenId;this.T("html5_high_res_logging_always")?this.E3=!0: this.E3=Math.random()*100=0&&q0&&q.t5&&(G.sort(),g.Qa(new g.UH("Player client parameters changed after startup",G)));q.userAge=yb(q.userAge,a.user_age);q.eG=qR(q.eG,a.user_display_email);q.userDisplayImage=qR(q.userDisplayImage,a.user_display_image);g.cT(q.userDisplayImage)||(q.userDisplayImage= "");q.userDisplayName=qR(q.userDisplayName,a.user_display_name);q.J4=qR(q.J4,a.user_gender);q.csiPageType=qR(q.csiPageType,a.csi_page_type);q.csiServiceName=qR(q.csiServiceName,a.csi_service_name);q.BQ=DS(q.BQ,a.enablecsi);q.pageId=qR(q.pageId,a.pageid);if(w=a.enabled_engage_types)q.enabledEngageTypes=new Set(w.split(","));a.living_room_session_po_token&&(q.nu=a.living_room_session_po_token.toString())}; d8=function(q,a){return!q.L&&cr()&&ZW(55)&&q.controlsType==="3"&&!a}; g.Tu=function(q){q=N2(q.pE);return q==="www.youtube-nocookie.com"?"www.youtube.com":q}; $M=function(q,a,w){return q.protocol+"://i1.ytimg.com/vi/"+a+"/"+(w||"hqdefault.jpg")}; sV=function(q){return g8(q)&&!g.b0(q)}; g.Gu=function(q){return q.T("html5_local_playsinline")?Ic&&!g.UX(602)&&!("playsInline"in Tt()):Ic&&!q.OM||g.Hr("nintendo wiiu")?!0:!1}; s1=function(q){return q.V.c}; g.Nh=function(q){return/^TVHTML5/.test(s1(q))}; g.FY=function(q){return s1(q)==="TVHTML5"}; hOK=function(q){return s1(q)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; jX_=function(q){return q.V.cmodel==="CHROMECAST ULTRA/STEAK"||q.V.cmodel==="CHROMECAST/STEAK"}; g.CA=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; e7=function(q){return/web/i.test(s1(q))}; g.Zg=function(q){return s1(q).toUpperCase()==="WEB"}; P8=function(q){return s1(q)==="WEB_KIDS"}; g.b0=function(q){return s1(q)==="WEB_UNPLUGGED"}; EV=function(q){return s1(q)==="TVHTML5_UNPLUGGED"}; g.lt=function(q){return g.b0(q)||s1(q)==="TV_UNPLUGGED_CAST"||EV(q)}; g.BA=function(q){return s1(q)==="WEB_REMIX"}; g.VG=function(q){return s1(q)==="WEB_MUSIC_INTEGRATIONS"}; g.Jd=function(q){return s1(q)==="WEB_EMBEDDED_PLAYER"}; g.QG=function(q){return(q.deviceIsAudioOnly||!g.se||X4||q.controlsType==="3"?!1:g.vr?q.Y&&g.UX(51):!0)||(q.deviceIsAudioOnly||!g.Yx||X4||q.controlsType==="3"?!1:g.vr?q.Y&&g.UX(48):g.UX(38))||(q.deviceIsAudioOnly||!g.Du||X4||q.controlsType==="3"?!1:g.vr?q.Y&&g.UX(37):g.UX(27))||!q.deviceIsAudioOnly&&g.mv&&!sof()&&g.UX(11)||!q.deviceIsAudioOnly&&g.Ph&&g.UX("604.4")}; tvm=function(q){if(g.kM(q)&&av)return!1;if(g.Yx){if(!g.UX(47)||!g.UX(52)&&g.UX(51))return!1}else if(g.Ph)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; zOj=function(q,a){return q.enabledEngageTypes.has(a.toString())||vbm.includes(a)}; g8=function(q){return q.f7==="detailpage"}; g.kM=function(q){return q.f7==="embedded"}; Ad=function(q){return q.f7==="leanback"}; q2=function(q){return q.f7==="adunit"||q.playerStyle==="gvn"}; g.OV=function(q){return q.f7==="profilepage"}; g.yw=function(q){return q.Y&&g.kM(q)&&!q2(q)&&!q.L}; xM=function(q){if(!q.userDisplayImage)return"";var a=q.userDisplayImage.split("/");if(a.length===5)return q=a[a.length-1].split("="),q[1]="s20-c",a[a.length-1]=q.join("="),a.join("/");if(a.length===8)return a.splice(7,0,"s20-c"),a.join("/");if(a.length===9)return a[7]+="-s20-c",a.join("/");g.Qa(new g.UH("Profile image not a FIFE URL.",q.userDisplayImage));return q.userDisplayImage}; g.LA=function(q){var a=g.Tu(q);i8y.includes(a)&&(a="www.youtube.com");return q.protocol+"://"+a}; g.B8=function(q,a){a=a===void 0?"":a;if(q.ag){var w=new m5,G,k=q.ag();k.signedOut?G="":k.token?G=k.token:k.pendingResult.then(function(b){k.signedOut?w.resolve(""):w.resolve(b.token)},function(b){g.Qa(new g.UH("b189348328_oauth_callback_failed",{error:b})); w.resolve(a)}); return G!==void 0?AG(G):new mk(w)}return AG(a)}; r8=function(q,a){a=a===void 0?"":a;return q.CF?cc(!0):ok(jZ(cc(g.B8(q,a)),function(w){return cc(!!w)}),function(){return cc(!1)})}; WTU=function(q,a){a==null||jZ(a,function(w){q.Vm=w;var G,k;(G=q.L0)!=null&&(k=G.V)!=null&&(k.V=new rR(w,k.U,k.W),g.p(k,k.V))})}; N2=function(q){var a=g.Nr(q);return(q=Number(g.es(q)[4]||null)||null)?a+":"+q:a}; nA=function(q,a){a=a===void 0?!1:a;var w=pf[q],G=Dxl[w],k=ROc[q];if(!k||!G)return null;a=new ff(a?k.height:k.width,a?k.width:k.height,k.fps);G=pg(G,a,w);return new Ue(q,G,{video:a,J2:k.bitrate/8})}; qiG=function(q){var a=Dxl[pf[q]],w=y9K[q];return w&&a?new Ue(q,a,{audio:new Vz(w.audioSampleRate,w.numChannels)}):null}; M2=function(q){this.V=q}; hd=function(q,a,w,G){if(w)return Qb();w={};var k=Tt();a=g.V(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,q.canPlayType(k,b.getInfo().mimeType)||G){var O=b.V.video.quality;if(!w[O]||w[O].getInfo().O3())w[O]=b}q=[];w.auto&&q.push(w.auto);G=g.V(HY);for(k=G.next();!k.done;k=G.next())(k=w[k.value])&&q.push(k);return q.length?AG(q):Qb()}; gZc=function(q){this.itag=q.itag;this.url=q.url;this.codecs=q.codecs;this.width=q.width;this.height=q.height;this.fps=q.fps;this.bitrate=q.bitrate;var a;this.U=((a=q.audioItag)==null?void 0:a.split(","))||[];this.mR=q.mR;this.vN=q.vN||"";this.Pq=q.Pq;this.audioChannels=q.audioChannels;this.V=""}; aql=function(q,a,w,G){a=a===void 0?!1:a;w=w===void 0?!0:w;G=G===void 0?{}:G;var k={};q=g.V(q);for(var b=q.next();!b.done;b=q.next()){b=b.value;if(a&&MediaSource&&MediaSource.isTypeSupported){var O=b.type;b.audio_channels&&(O=O+"; channels="+b.audio_channels);if(!MediaSource.isTypeSupported(O)){G[b.itag]="tpus";continue}}if(w||!b.drm_families||b.eotf!=="smpte2084"&&b.eotf!=="arib-std-b67"){O=void 0;var e={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},N=b.type.match(/codecs="([^"]*)"/); N=N?N[1]:"";b.audio_track_id&&(O=new g.M5(b.name,b.audio_track_id,!!b.is_default));var Y=b.eotf;b=new gZc({itag:b.itag,url:b.url,codecs:N,width:Number(b.width),height:Number(b.height),fps:Number(b.fps),bitrate:Number(b.bitrate),audioItag:b.audio_itag,mR:Y?e[Y]:void 0,vN:b.drm_families,Pq:O,audioChannels:Number(b.audio_channels)});k[b.itag]=k[b.itag]||[];k[b.itag].push(b)}else G[b.itag]="enchdr"}return k}; wZ_=function(q,a,w,G,k){this.W=q;this.U=a;this.D=w;this.cpn=G;this.L=k;this.Y=0;this.V=""}; G0V=function(q,a){q.W.some(function(w){var G;return((G=w.Pq)==null?void 0:G.getId())===a}); q.V=a}; S6=function(q,a,w){q.cpn&&(a=g.sk(a,{cpn:q.cpn}));w&&(a=g.sk(a,{paired:w}));return a}; k0V=function(q,a){q=q.itag.toString();a!==null&&(q+=a.itag.toString());return q}; brN=function(q){for(var a=[],w=[],G=g.V(q.U),k=G.next();!k.done;k=G.next())k=k.value,k.bitrate<=q.Y?a.push(k):w.push(k);a.sort(function(b,O){return O.bitrate-b.bitrate}); w.sort(function(b,O){return b.bitrate-O.bitrate}); q.U=a.concat(w)}; fA=function(q,a,w){this.V=q;this.U=a;this.expiration=w;this.GZ=null}; OrG=function(q,a){if(!(X4||je()||UF()))return null;q=aql(a,q.T("html5_filter_fmp4_in_hls"));if(!q)return null;a=[];for(var w={},G=g.V(Object.keys(q)),k=G.next();!k.done;k=G.next()){k=g.V(q[k.value]);for(var b=k.next();!b.done;b=k.next()){var O=b.value;O.Pq&&(b=O.Pq.getId(),w[b]||(O=new g.mf(b,O.Pq),w[b]=O,a.push(O)))}}return a.length>0?a:null}; Pmy=function(q,a,w,G,k,b,O){if(!(X4||je()||UF()))return Qb();var e={},N=lqK(w),Y=aql(w,q.T("html5_filter_fmp4_in_hls"),q.D.X,e);if(!Y)return O({noplst:1}),Qb();eRJ(Y);w={};var P=(w.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",w),K;w=[];var d=[],T=[],F=null,J="";G=G&&G.match(/hls_timedtext_playlist/)?new gZc({itag:"0",url:G,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,Pq:new g.M5("English","en",!1)}):null;for(var Q=g.V(Object.keys(Y)),B=Q.next();!B.done;B=Q.next())if(B=B.value,!q.T("html5_disable_drm_hfr_1080")|| B!=="383"&&B!=="373"){B=g.V(Y[B]);for(var L=B.next();!L.done;L=B.next())if(L=L.value,L.width){for(var M=g.V(L.U),H=M.next();!H.done;H=M.next())if(H=H.value,Y[H]){L.V=H;break}L.V||(L.V=Nil(Y,L));if(M=Y[L.V])if(w.push(L),L.vN==="fairplay"&&(K=P),H="",L.mR==="PQ"?H="smpte2084":L.mR==="HLG"&&(H="arib-std-b67"),H&&(J=H),T.push(YiV(M,[L],G,b,L.itag,L.width,L.height,L.fps,N,void 0,void 0,K,H)),!F||L.width*L.height*L.fps>F.width*F.height*F.fps)F=L}else d.push(L)}else e[B]="disdrmhfr";T.reduce(function(X, D){return D.getInfo().isEncrypted()&&X},!0)&&(K=P); k=Math.max(k,0);P=F||{};Y=P.fps===void 0?0:P.fps;F=P.width===void 0?0:P.width;P=P.height===void 0?0:P.height;Q=q.T("html5_native_audio_track_switching");T.push(YiV(d,w,G,b,"93",F,P,Y,N,"auto",k,K,J,Q));Object.entries(e).length&&O(e);return hd(q.D,T,d8(q,a),!1)}; YiV=function(q,a,w,G,k,b,O,e,N,Y,P,K,d,T){for(var F=0,J="",Q=g.V(q),B=Q.next();!B.done;B=Q.next())B=B.value,J||(J=B.itag),B.audioChannels&&B.audioChannels>F&&(F=B.audioChannels,J=B.itag);k=new Ue(k,"application/x-mpegURL",{audio:new Vz(0,F),video:new ff(b,O,e,null,void 0,Y,void 0,void 0,d),vN:K,vZ:J});q=new wZ_(q,a,w?[w]:[],G,!!T);q.Y=P?P:1369843;return new fA(k,q,N)}; lqK=function(q){q=g.V(q);for(var a=q.next();!a.done;a=q.next())if(a=a.value,a.url&&(a=a.url.split("expire/"),!(a.length<=1)))return+a[1].split("/")[0];return NaN}; Nil=function(q,a){for(var w=g.V(Object.keys(q)),G=w.next();!G.done;G=w.next()){G=G.value;var k=q[G][0];if(!k.width&&k.vN===a.vN&&!k.audioChannels)return G}return""}; eRJ=function(q){for(var a=new Set,w=g.V(Object.values(q)),G=w.next();!G.done;G=w.next())G=G.value,G.length&&(G=G[0],G.height&&G.codecs.startsWith("vp09")&&a.add(G.height));w=[];if(a.size){G=g.V(Object.keys(q));for(var k=G.next();!k.done;k=G.next())if(k=k.value,q[k].length){var b=q[k][0];b.height&&a.has(b.height)&&!b.codecs.startsWith("vp09")&&w.push(k)}}a=g.V(w);for(w=a.next();!w.done;w=a.next())delete q[w.value]}; H8=function(q,a){this.V=q;this.U=a}; Kmc=function(q,a,w,G){var k=[];w=g.V(w);for(var b=w.next();!b.done;b=w.next()){var O=b.value;if(O.url){b=new g.u5(O.url,!0);if(O.s){var e=b,N=O.sp,Y=vPV(decodeURIComponent(O.s));e[l[20]](N,encodeURIComponent(Y))}e=g.V(Object.keys(G));for(N=e.next();!N.done;N=e.next())N=N.value,b.set(N,G[N]);O=q7(O.type,O.quality,O.itag,O.width,O.height);k.push(new H8(O,b))}}return hd(q.D,k,d8(q,a),!1)}; c8=function(q,a){this.V=q;this.U=a}; dcK=function(q,a,w){var G=[];w=g.V(w);for(var k=w.next();!k.done;k=w.next())if((k=k.value)&&k.url){var b=q7(k.type,"medium","0");G.push(new c8(b,k.url))}return hd(q.D,G,d8(q,a),!1)}; Til=function(q,a){var w=[],G=q7(a.type,"auto",a.itag);w.push(new c8(G,a.url));return hd(q.D,w,!1,!0)}; sPl=function(q){return q&&$cG[q]?$cG[q]:null}; Fml=function(q){switch(q){case "multiview.ustreamer_disabled":case "sabr.live_no_max_sq":case "sabr.malformed_config":case "sabr.media_serving_enforcement_id_error":case "sabr.metadata_fetcher_error":case "sabr.no_audio_selected":case "sabr.no_available_formats":case "sabr.no_redirect_url":case "sabr.no_video_selected":case "sabr.too_many_chunk_reader_error_retries":return q;default:return"sabr.config"}}; Cmm=function(q){if(q=q.commonConfig)this.url=q.url,this.urlQueryOverride=q.urlQueryOverride,q.ustreamerConfig&&(this.f6=nz(q.ustreamerConfig)||void 0)}; Zrl=function(q,a){var w;if(a=a==null?void 0:(w=a.watchEndpointSupportedOnesieConfig)==null?void 0:w.html5PlaybackOnesieConfig)q.KX=new Cmm(a)}; g.pA=function(q){q=q===void 0?{}:q;this.languageCode=q.languageCode||"";this.languageName=q.languageName||null;this.kind=q.kind||"";this.name=q.name===void 0?null:q.name;this.displayName=q.displayName||null;this.id=q.id||null;this.V=q.is_servable||!1;this.isTranslateable=q.is_translateable||!1;this.url=q.url||null;this.vssId=q.vss_id||"";this.isDefault=q.is_default||!1;this.translationLanguage=q.translationLanguage||null;this.xtags=q.xtags||"";this.captionId=q.captionId||""}; g.XY=function(q){var a={languageCode:q.languageCode,languageName:q.languageName,displayName:g.UV(q),kind:q.kind,name:q.name,id:q.id,is_servable:q.V,is_default:q.isDefault,is_translateable:q.isTranslateable,vss_id:q.vssId};q.xtags&&(a.xtags=q.xtags);q.captionId&&(a.captionId=q.captionId);q.translationLanguage&&(a.translationLanguage=q.translationLanguage);return a}; g.j6=function(q){return q.translationLanguage?q.translationLanguage.languageCode:q.languageCode}; g.EZV=function(q){var a=q.vssId;q.translationLanguage&&a&&(a="t"+a+"."+g.j6(q));return a}; g.UV=function(q){var a=[];if(q.displayName)a.push(q.displayName);else{var w=q.languageName||"";a.push(w);q.kind==="asr"&&w.indexOf("(")===-1&&a.push(" (Subt\u00edtulos autom\u00e1ticos)");q.name&&a.push(" - "+q.name)}q.translationLanguage&&a.push(" >> "+q.translationLanguage.languageName);return a.join("")}; QPl=function(q,a,w,G){q||(q=a&&VQJ.hasOwnProperty(a)&&Jz_.hasOwnProperty(a)?Jz_[a]+"_"+VQJ[a]:void 0);a=q;if(!a)return null;q=a.match(mcc);if(!q||q.length!==5)return null;if(q=a.match(mcc)){var k=Number(q[3]),b=[7,8,10,5,6];q=!(Number(q[1])===1&&k===8)&&b.indexOf(k)>=0}else q=!1;return w||G||q?a:null}; ov=function(q,a){for(var w={},G=g.V(Object.keys(Azl)),k=G.next();!k.done;k=G.next()){k=k.value;var b=a?a+k:k;b=q[b+"_webp"]||q[b];g.cT(b)&&(w[Azl[k]]=b)}return w}; Iv=function(q){var a={};if(!q||!q.thumbnails)return a;q=q.thumbnails.filter(function(e){return!!e.url}); q.sort(function(e,N){return e.width-N.width||e.height-N.height}); for(var w=g.V(Object.keys(xcf)),G=w.next();!G.done;G=w.next()){var k=Number(G.value);G=xcf[k];for(var b=g.V(q),O=b.next();!O.done;O=b.next())if(O=O.value,O.width>=k){k=LmN(O.url);g.cT(k)&&(a[G]=k);break}}(q=q.pop())&&q.width>=1280&&(q=LmN(q.url),g.cT(q)&&(a["maxresdefault.jpg"]=q));return a}; LmN=function(q){return q.startsWith("//")?"https:"+q:q}; u0=function(q){return q&&q.baseUrl||""}; td=function(q){q=g.RI(q);for(var a=g.V(Object.keys(q)),w=a.next();!w.done;w=a.next()){w=w.value;var G=q[w];q[w]=Array.isArray(G)?G[0]:G}return q}; Bic=function(q,a){q.botguardData=a.playerAttestationRenderer.botguardData;a=a.playerAttestationRenderer.challenge;a!=null&&(q.qj=a)}; MQj=function(q,a){a=g.V(a);for(var w=a.next();!w.done;w=a.next()){w=w.value;var G=w.interstitials.map(function(O){var e=g.I(O,rzj);if(e)return{is_yto_interstitial:!0,raw_player_response:e};if(O=g.I(O,nZU))return Object.assign({is_yto_interstitial:!0},Wn(O))}); G=g.V(G);for(var k=G.next();!k.done;k=G.next())switch(k=k.value,w.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":q.interstitials=q.interstitials.concat({time:0,playerVars:k,zY:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":q.interstitials=q.interstitials.concat({time:0x7ffffffffffff,playerVars:k,zY:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var b=Number(w.podConfig.timeToInsertAtMillis);q.interstitials=q.interstitials.concat({time:b,playerVars:k, zY:b===0?5:7})}}}; hRV=function(q,a){if(a=a.find(function(w){return!(!w||!w.tooltipRenderer)}))q.tooltipRenderer=a.tooltipRenderer}; SiU=function(q,a){a.subscribeCommand&&(q.subscribeCommand=a.subscribeCommand);a.unsubscribeCommand&&(q.unsubscribeCommand=a.unsubscribeCommand);a.addToWatchLaterCommand&&(q.addToWatchLaterCommand=a.addToWatchLaterCommand);a.removeFromWatchLaterCommand&&(q.removeFromWatchLaterCommand=a.removeFromWatchLaterCommand);a.getSharePanelCommand&&(q.getSharePanelCommand=a.getSharePanelCommand)}; fqj=function(q,a){a!=null?(q.kA=a,q.J8=!0):(q.kA="",q.J8=!1)}; v8=function(q,a){this.type=q||"";this.id=a||""}; zu=function(q){return new v8(q.substring(0,2),q.substring(2))}; i0=function(q,a){this.cT=q;this.author="";this.aB=null;this.playlistLength=0;this.V=this.sessionData=null;this.S={};this.title="";if(a){this.author=a.author||a.playlist_author||"";this.title=a.playlist_title||"";if(q=a.session_data)this.sessionData=ze(q,"&");var w;this.V=((w=a.thumbnail_ids)==null?void 0:w.split(",")[0])||null;this.S=ov(a,"playlist_");this.videoId=a.video_id||void 0;if(w=a.list)switch(a.listType){case "user_uploads":this.playlistId=(new v8("UU","PLAYER_"+w)).toString();break;default:if(q= a.playlist_length)this.playlistLength=Number(q)||0;this.playlistId=zu(w).toString();if(a=a.video)this.videoId=(a[0]||null).video_id||void 0}else a.playlist&&(this.playlistLength=a.playlist.toString().split(",").length)}}; W8=function(q,a){this.cT=q;this.mf=this.author="";this.aB=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.VH=this.lengthText="";this.sessionData=null;this.S={};this.title="";if(a){this.ariaLabel=a.aria_label||void 0;this.author=a.author||"";this.mf=a.mf||"";if(q=a.endscreen_autoplay_session_data)this.aB=ze(q,"&");this.L$=a.L$;this.isLivePlayback=a.live_playback==="1";this.isUpcoming=!!a.isUpcoming;if(q=a.length_seconds)this.lengthSeconds=typeof q==="string"?Number(q):q;this.lengthText= a.lengthText||"";this.VH=a.VH||"";this.publishedTimeText=a.publishedTimeText||void 0;if(q=a.session_data)this.sessionData=ze(q,"&");this.shortViewCount=a.short_view_count_text||void 0;this.S=ov(a);this.title=a.title||"";this.videoId=a.docid||a.video_id||a.videoId||a.id||void 0;this.watchUrl=a.watchUrl||void 0}}; HrV=function(q){var a,w,G=(a=q.getWatchNextResponse())==null?void 0:(w=a.contents)==null?void 0:w.twoColumnWatchNextResults,k,b,O,e,N;q=(k=q.getWatchNextResponse())==null?void 0:(b=k.playerOverlays)==null?void 0:(O=b.playerOverlayRenderer)==null?void 0:(e=O.endScreen)==null?void 0:(N=e.watchNextEndScreenRenderer)==null?void 0:N.results;if(!q){var Y,P;q=G==null?void 0:(Y=G.endScreen)==null?void 0:(P=Y.endScreen)==null?void 0:P.results}return q}; g.Rv=function(q){var a,w,G;q=g.I((a=q.getWatchNextResponse())==null?void 0:(w=a.playerOverlays)==null?void 0:(G=w.playerOverlayRenderer)==null?void 0:G.decoratedPlayerBarRenderer,Dg);return g.I(q==null?void 0:q.playerBar,czG)}; pZj=function(q){this.V=q.playback_progress_0s_url;this.W=q.playback_progress_2s_url;this.U=q.playback_progress_10s_url}; Ucm=function(){if(yG===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(a){}a:{try{var q=!!self.localStorage}catch(a){q=!1}if(q&&(q=g.na(g.Xt()+"::yt-player"))){yG=new Mk(q);break a}yG=void 0}}return yG}; g.qH=function(){var q=Ucm();if(!q)return{};try{var a=q.get("yt-player-lv");return JSON.parse(a||"{}")}catch(w){return{}}}; g.XZG=function(q){var a=Ucm();a&&(q=JSON.stringify(q),a.set("yt-player-lv",q))}; g.gM=function(q){return g.qH()[q]||0}; g.ap=function(q,a){var w=g.qH();a!==w[q]&&(a!==0?w[q]=a:delete w[q],g.XZG(w))}; g.wM=function(q){return g.h(function(a){return a.return(g.ch(jP_(),q))})}; kQ=function(q,a,w,G,k,b,O,e){var N,Y,P,K,d,T;return g.h(function(F){switch(F.U){case 1:return N=g.gM(q),N===4?F.return(4):g.n(F,g.t2(),2);case 2:Y=F.V;if(!Y)throw g.dw("wiac");if(!e||O===void 0){F.Gl(3);break}return g.n(F,oZU(e,O),4);case 4:O=F.V;case 3:return P=w.lastModified||"0",g.n(F,g.wM(Y),5);case 5:return K=F.V,g.ml(F,6),GO++,g.n(F,g.Qu(K,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",EA:!0},function(J){if(b!==void 0&&O!==void 0){var Q=""+q+"|"+a.id+"|"+P+"|"+String(b).padStart(10, "0");Q=g.A2(J.objectStore("media"),O,Q)}else Q=g.$7.resolve(void 0);var B=IqV(q,a.iy()),L=IqV(q,!a.iy()),M={fmts:uPc(G),format:w||{}};B=g.A2(J.objectStore("index"),M,B);var H=G.downloadedEndTime===-1;M=H?J.objectStore("index").get(L):g.$7.resolve(void 0);var X={fmts:"music",format:{}};J=H&&k&&!a.iy()?g.A2(J.objectStore("index"),X,L):g.$7.resolve(void 0);return g.$7.all([J,M,Q,B]).then(function(D){D=g.V(D);D.next();D=D.next().value;GO--;var z=g.gM(q);if(z!==4&&H&&k||D!==void 0&&g.tQm(D.fmts))z=1,g.ap(q, z);return z})}),8); case 8:return F.return(F.V);case 6:d=g.rc(F);GO--;T=g.gM(q);if(T===4)return F.return(T);g.ap(q,4);throw d;}})}; g.vZN=function(q){var a,w;return g.h(function(G){if(G.U==1)return g.n(G,g.t2(),2);if(G.U!=3){a=G.V;if(!a)throw g.dw("ri");return g.n(G,g.wM(a),3)}w=G.V;return G.return(g.Qu(w,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(k){var b=IDBKeyRange.bound(q+"|",q+"~");return k.objectStore("index").getAll(b).then(function(O){return O.map(function(e){return e?e.format:{}})})}))})}; iry=function(q,a,w,G,k){var b,O,e;return g.h(function(N){if(N.U==1)return g.n(N,g.t2(),2);if(N.U!=3){b=N.V;if(!b)throw g.dw("rc");return g.n(N,g.wM(b),3)}O=N.V;e=g.Qu(O,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(Y){var P=""+q+"|"+a+"|"+w+"|"+String(G).padStart(10,"0");return Y.objectStore("media").get(P)}); return k?N.return(e.then(function(Y){if(Y===void 0)throw Error("No data from indexDb");return zRl(k,Y)}).catch(function(Y){throw new g.UH("Error while reading chunk: "+Y.name+", "+Y.message); })):N.return(e)})}; g.tQm=function(q){return q?q==="music"?!0:q.includes("dlt=-1")||!q.includes("dlt="):!1}; IqV=function(q,a){return""+q+"|"+(a?"v":"a")}; uPc=function(q){var a={};return ix((a.dlt=q.downloadedEndTime.toString(),a.mket=q.maxKnownEndTime.toString(),a.avbr=q.averageByteRate.toString(),a))}; Dcc=function(q){var a={},w={};q=g.V(q);for(var G=q.next();!G.done;G=q.next()){var k=G.value,b=k.split("|");k.match(g.Wml)?(G=Number(b.pop()),isNaN(G)?w[k]="?":(b=b.join("|"),(k=a[b])?(b=k[k.length-1],G===b.end+1?b.end=G:k.push({start:G,end:G})):a[b]=[{start:G,end:G}])):w[k]="?"}q=g.V(Object.keys(a));for(G=q.next();!G.done;G=q.next())G=G.value,w[G]=a[G].map(function(O){return O.start+"-"+O.end}).join(","); return w}; bN=function(q){g.ya.call(this);this.V=null;this.W=new SL;this.V=null;this.L=new Set;this.crossOrigin=q||""}; RRc=function(q,a,w){for(w=Or(q,w);w>=0;){var G=q.levels[w];if(G.isLoaded(lN(G,a))&&(G=g.eO(G,a)))return G;w--}return g.eO(q.levels[0],a)}; qmV=function(q,a,w){w=Or(q,w);for(var G,k;w>=0;w--)if(G=q.levels[w],k=lN(G,a),!G.isLoaded(k)){G=q;var b=w,O=b+"-"+k;G.L.has(O)||(G.L.add(O),G.W.enqueue(b,{Ue:b,Pl:k}))}yzf(q)}; yzf=function(q){if(!q.V&&!q.W.isEmpty()){var a=q.W.remove();q.V=gBc(q,a)}}; gBc=function(q,a){var w=document.createElement("img");q.crossOrigin&&(w.crossOrigin=q.crossOrigin);w.src=q.levels[a.Ue].Do(a.Pl);w.onload=function(){var G=a.Ue,k=a.Pl;q.V!==null&&(q.V.onload=null,q.V=null);G=q.levels[G];G.loaded.add(k);yzf(q);var b=G.columns*G.rows;k*=b;G=Math.min(k+b-1,G.sF()-1);k=[k,G];q.publish("l",k[0],k[1])}; return w}; g.NH=function(q,a,w,G){this.level=q;this.Y=a;this.loaded=new Set;this.level=q;this.Y=a;q=w.split("#");this.width=Math.floor(Number(q[0]));this.height=Math.floor(Number(q[1]));this.frameCount=Math.floor(Number(q[2]));this.columns=Math.floor(Number(q[3]));this.rows=Math.floor(Number(q[4]));this.V=Math.floor(Number(q[5]));this.W=q[6];this.signature=q[7];this.videoLength=G}; lN=function(q,a){return Math.floor(a/(q.columns*q.rows))}; g.eO=function(q,a){a>=q.LR()&&q.Za();var w=lN(q,a),G=q.columns*q.rows,k=a%G;a=k%q.columns;k=Math.floor(k/q.columns);var b=q.Za()+1-G*w;if(b1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; aNJ=function(q,a,w){return(q=q.levels[a])?q.jy(w):-1}; Or=function(q,a){var w=q.Y.get(a);if(w)return w;w=q.levels.length;for(var G=0;G=a)return q.Y.set(a,G),G;q.Y.set(a,w-1);return w-1}; PD=function(q,a,w,G){w=w.split("#");w=[w[1],w[2],0,w[3],w[4],-1,w[0],""].join("#");g.NH.call(this,q,a,w,0);this.U=null;this.D=G?2:0}; Kc=function(q,a,w,G){YQ.call(this,q,0,void 0,a,!(G===void 0||!G));for(q=0;q=0?Nm.countDownSecsForFullscreen*1E3:-1);q.T("web_autonav_color_transition")&&Nm.watchToWatchTransitionRenderer&&(q.watchToWatchTransitionRenderer=g.I(Nm.watchToWatchTransitionRenderer, sNJ))}var JY=HrV(q);if(JY){var Nz,ec,ZO,EA=JY==null?void 0:(Nz=JY[0])==null?void 0:(ec=Nz.endScreenVideoRenderer)==null?void 0:(ZO=ec.navigationEndpoint)==null?void 0:ZO.clickTrackingParams,HN=g.Vq(q);EA&&HN&&(HN.sessionData={itct:EA})}q.EK.currentVideoThumbnail&&(q.S=Iv(q.EK.currentVideoThumbnail));var X$,jc,ob,by,cN,Z9=(X$=q.EK)==null?void 0:(jc=X$.contents)==null?void 0:(ob=jc.twoColumnWatchNextResults)==null?void 0:(by=ob.results)==null?void 0:(cN=by.results)==null?void 0:cN.contents;if(Z9&&Z9[1]){var p7, Oq,Ib,QD,mA=(p7=Z9[1].videoSecondaryInfoRenderer)==null?void 0:(Oq=p7.owner)==null?void 0:(Ib=Oq.videoOwnerRenderer)==null?void 0:(QD=Ib.thumbnail)==null?void 0:QD.thumbnails;mA&&mA.length&&(q.profilePicture=mA[mA.length-1].url)}var ju=at(a),ly,Vi=(ly=q.getWatchNextResponse())==null?void 0:ly.onResponseReceivedEndpoints;if(Vi)for(var eY=g.V(Vi),UQ=eY.next();!UQ.done;UQ=eY.next()){var Jk=UQ.value;g.I(Jk,JF)&&(q.gM=g.I(Jk,JF));var k3=g.I(Jk,FrN),zt=void 0;if((zt=k3)==null?0:zt.entityKeys)q.NA=k3.entityKeys|| [],k3.visibleOnLoadKeys&&(q.visibleOnLoadKeys=k3.visibleOnLoadKeys)}if(q.T("web_key_moments_markers")){var PE=g.mh.getState().entities,YE=g.uH("visibility_override","markersVisibilityOverrideEntity");var oI=vV(PE,"markersVisibilityOverrideEntity",YE);q.h2=(oI==null?void 0:oI.videoId)===(q.videoId||ju)&&(oI==null?0:oI.visibilityOverrideMarkersKey)?oI.visibilityOverrideMarkersKey:q.visibleOnLoadKeys;q.visibleOnLoadKeys=[].concat(g.Tf(q.h2))}}}; Zs=function(q){var a;return((a=q.autoplaySwitchButtonRenderer)==null?void 0:a.enabled)!==void 0}; Qq=function(q){return!!(q.W&&q.W.videoInfos&&q.W.videoInfos.length)}; g.nc=function(q){var a=q.X;q.T("html5_gapless_unlimit_format_selection")&&AF(q)&&(a=!1);var w=!!q.V&&q.V.pk,G=q.cT,k=q.ra(),b=xQ(q),O=q.St,e=a,N=q.isOtf();a=q.Po();var Y=q.IW,P=q.getUserAudio51Preference(),K=Lc(q),d=BD(q),T=new cBm(G);if(G.TZ()||G.T("html5_logging_format_selection"))T.U=!0;T.le=b;T.St=O&&G.S;T.f7=P;g.Hr("windows nt 5.1")&&!g.Yx&&(T.aE=!0);if(b=k)b=g.QG(G)?tvm(G):!1;b&&(T.F9=!0);e&&(T.aE=!0,T.Nh=!0);N&&!G.T("html5_otf_prefer_vp9")&&(T.aE=!0);G.playerStyle==="picasaweb"&&(N&&(T.aE= !1),T.UK=!1);Y&&(T.aE=!0);og(G.D,Ig.CHANNELS)&&(G.T("html5_enable_ac3")&&(T.Y=!0),G.T("html5_enable_eac3")&&(T.D=!0),G.T("html5_enable_ac3_gapless")&&(T.EK=!0));G.T("html5_block_8k_hfr")&&(T.h2=!0);T.L=g.Wo(G.experiments,"html5_max_selectable_quality_ordinal");T.X=g.Wo(G.experiments,"html5_min_selectable_quality_ordinal");Wm&&(T.OQ=480);if(w||k)T.UK=!1;T.BT=!1;T.disableAv1=K;w=aW(G,T.V,void 0,T.disableAv1);w>0&&w<2160&&(dD()||G.T("html5_format_hybridization"))&&(T.V.supportsChangeType=+dD(),T.yp= w);w>=2160&&(T.jt=!0);gJc()&&!G.T("disable_av1_setting")&&(T.V.serveVp9OverAv1IfHigherRes=0,T.h8=!1);T.Po=a;T.Tl=g.jI||iO()&&!a?!1:!0;T.S=G.T("html5_format_hybridization");T.uF=G.T("html5_disable_encrypted_vp9_live_non_2k_4k");T.yN=d;rM(q)&&(T.L0=q.T("html5_prefer_language_over_codec"));UF()&&q.playerResponse&&q.playerResponse.playerConfig&&q.playerResponse.playerConfig.webPlayerConfig&&q.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(T.Y=!0,T.D=!0);q.X&&q.isAd()&&(q.bN&& (T.J=q.bN),q.kx&&(T.W=q.kx));T.L7=q.isLivePlayback&&q.YD()&&q.cT.T("html5_drm_live_audio_51");T.OA=q.Ki;T.w$=!rM(q);return q.JS=T}; Lc=function(q){return q.cT.T("html5_disable_av1")||q.T("html5_gapless_shorts_disable_av1")&&AF(q)?!0:!1}; CUl=function(q){E3("drm_pb_s",void 0,q.F9);q.le||q.V&&cX(q.V);var a={};q.V&&(a=TZV(q.R5,g.nc(q),q.cT.D,q.V,function(w){return q.publish("ctmp","fmtflt",w)},!0,new Set)); a=new dR(a,q.cT,q.pN,q.useCobaltWidevine?UF()?MH(q):!1:!1,function(w,G){q.d8(w,G)}); g.p(q,a);q.u9=!1;q.loading=!0;jYc(a,function(w){E3("drm_pb_f",void 0,q.F9);for(var G=g.V(w),k=G.next();!k.done;k=G.next())switch(k=k.value,k.flavor){case "fairplay":k.le=q.le;k.eh=q.eh;k.El=q.El;break;case "widevine":k.KF=q.KF}q.y_=w;if(q.y_.length>0&&(q.D=q.y_[0],q.cT.TZ())){w={};G=g.V(Object.entries(q.D.V));for(k=G.next();!k.done;k=G.next()){var b=g.V(k.value);k=b.next().value;b=b.next().value;var O="unk";(k=k.match(/(.*)codecs="(.*)"/))&&(O=k[2]);w[O]=b}q.d8("drmProbe",w)}q.Ag()})}; Zkf=function(q,a){if(a.length===0||hF(q))return null;q.cT.D.W&&(yW=!0);var w=q.vN;var G=q.lengthSeconds,k=q.isLivePlayback,b=q.pT,O=q.cT,e=VNJ(a);if(k||b){O=O.experiments;G=new cw("",O,!0);G.U=!b;G.pk=!0;G.isManifestless=!0;G.isLive=!b;G.pT=b;a=g.V(a);for(k=a.next();!k.done;k=a.next()){var N=k.value;k=XH(N,w);e=Dl(N);e=oa(e.XX||N.url||"",e.f5,e.s);var Y=e.get("id");Y&&Y.includes("%7E")&&(G.J=!0);var P=void 0;Y=(P=O)==null?void 0:P.Zh("html5_max_known_end_time_rebase");P=Number(N.targetDurationSec|| 5);N=Number(N.maxDvrDurationSec||14400);var K=Number(e.get("mindsq")||e.get("min_sq")||"0"),d=Number(e.get("maxdsq")||e.get("max_sq")||"0")||Infinity;G.cJ=G.cJ||K;G.YL=G.YL||d;var T=!yz(k.mimeType);e&&SS(G,new FH(e,k,{Ca:P,j_:T,Gf:N,cJ:K,YL:d,M4:300,pT:b,P8:Y}))}w=G}else if(e==="FORMAT_STREAM_TYPE_OTF"){G=G===void 0?0:G;b=new cw("",O.experiments,!1);b.duration=G||0;O=g.V(a);for(G=O.next();!G.done;G=O.next())G=G.value,a=XH(G,w,b.duration),k=Dl(G),(k=oa(k.XX||G.url||"",k.f5,k.s))&&(a.streamType==="FORMAT_STREAM_TYPE_OTF"? SS(b,new Cg(k,a,"sq/0")):SS(b,new ng(k,a,Rr(G.initRange),Rr(G.indexRange))));b.isOtf=!0;w=b}else{G=G===void 0?0:G;b=new cw("",O.experiments,!1);b.duration=G||0;O=g.V(a);for(G=O.next();!G.done;G=O.next())e=G.value,G=XH(e,w,b.duration),a=Rr(e.initRange),k=Rr(e.indexRange),Y=Dl(e),(e=oa(Y.XX||e.url||"",Y.f5,Y.s))&&SS(b,new ng(e,G,a,k));w=b}b=q.isLivePlayback&&!q.pT&&!q.y7&&!q.isPremiere;q.T("html5_live_head_playable")&&(!SO(q)&&b&&q.d8("missingLiveHeadPlayable",{}),q.cT.F9==="yt"&&(w.Tl=!0));return w}; hF=function(q){return UF()?!MH(q):je()?!(!q.le||!q.T("html5_enable_safari_fairplay")&&E1()):!1}; MH=function(q){return q.T("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; g.Cc=function(q,a){a=g.V(a);for(var w=a.next();!w.done;w=a.next())if(w=w.value,w.cueRangeSetIdentifier){var G=void 0;q.Fq.set(w.cueRangeSetIdentifier,(G=w.playerCueRanges)!=null?G:[])}}; fc=function(q){return!(!q.V||!q.V.isManifestless)}; HD=function(q){return q.Ck?q.isLowLatencyLiveStream&&q.V!=null&&vw(q.V)>=5:q.isLowLatencyLiveStream&&q.V!=void 0&&vw(q.V)>=5}; EB_=function(q){return UF()&&MH(q)?!1:hF(q)&&(g.lt(q.cT)?!q.isLivePlayback:q.hlsvp)||!E1()||q.Br?!0:!1}; Jhc=function(q){q.loading=!0;q.eG=!1;if(V9m(q))g.vZN(q.videoId).then(function(G){var k;if((k=q.playerResponse)!=null&&k.streamingData){k=[];G=g.V(G);for(var b=G.next();!b.done;b=G.next())b=Object.assign({},b.value),b.signatureCipher="",k.push(b);k.length<2&&q.d8("offmlf",{len:k.length});k=Zkf(q,k);xQ(q)&&S2f(k,!1);cD(q,k);q.d8("dlr",{})}else q.d8("offsdm",{cotn:q.uA?q.uA.cotn:"0",cpn:q.clientPlaybackNonce})}).then(function(){q.Ag()}); else{HT(q.Ai)||g.Qa(new g.UH("DASH MPD Origin invalid: ",q.Ai));var a=q.Ai,w=g.Wo(q.cT.experiments,"dash_manifest_version")||4;a=g.sk(a,{mpd_version:w});q.isLowLatencyLiveStream&&q.latencyClass!=="NORMAL"||(a=g.sk(a,{pacing:0}));rBc(a,q.cT.experiments,q.isLivePlayback).then(function(G){q.t2()||(cD(q,G,!0),E3("mrc",void 0,q.F9),q.Ag())},function(G){q.t2()||(q.loading=!1,q.publish("dataloaderror",new g.PY("manifest.net.retryexhausted",{backend:"manifest", rc:G.status},1)))}); E3("mrs",void 0,q.F9)}}; mvV=function(q){var a;return!((a=q.cT.getWebPlayerContextConfig())==null||!a.enableProximaLowLatency)}; pc=function(q){if(!q.isProximaLatencyEligible)return 0;var a=$d();return mvV(q)?2:a===1?1:q.T("html5_enable_proxima")?2:0}; cD=function(q,a,w){w=w===void 0?!1:w;q.Ul=void 0;q.V=a;g.p(q,a);a.cJ=q.cJ;a.YL=q.YL;a.jt=q.jt;a.yN=q.yN;a.N1=q.N1;q.gT&&(a.S=new jl(q.gT));(q.ra()||g.Ur(q))&&q.J.push("webgl");q.V.isLive||(q.isLivePlayback=!1);var G=a.sourceUrl.split("/");if(q.Ck?G.indexOf("manifest_duration")!==-1:G.indexOf("manifest_duration")!=-1)q.lV=Number(G[G.indexOf("manifest_duration")+1]);if(a.U||a.isManifestless)a.subscribe("clienttemp",q.d8,q),w?a.subscribe("refresh",q.dV,q):a.subscribe("cuepointsadded",q.cw,q);cX(a)?q.u9= !0:$x=void 0;q.y7&&(a.Y=q.y7,a.isLive=!0,q.isLivePlayback=!0);a.isPremiere=q.isPremiere;a.isLiveHeadPlayable=q.isLiveHeadPlayable}; QN_=function(q,a){var w=a||EB_(q)||q.isExternallyHostedPodcast;if(!q.V||w)return q.d8("skipDash",{dm:!!q.V,air:a,dd:q.Br,mss:E1(),"3pp":q.isExternallyHostedPodcast}),Qb();xQ(q)&&S2f(q.V,q.isLivePlayback);return AG().then(function(){return smG(q.R5,g.nc(q),q.cT.D,q.V,q.D,function(G){return q.publish("ctmp","fmtflt",G)},q.GX,rM(q)&&q.T("html5_enable_server_format_filter")).then(function(G){q.FO(G); q.R5.V=null;/^av/.test(q.clientPlaybackNonce)&&q.JS&&q.d8("av1",q.JS.V)})})}; xvy=function(q,a){if(a&&q.hlsvp)return Qb();if(q.hlsFormats){a=Xd(q.hlsFormats);var w;if(((w=q.JS)==null?0:w.U)&&a){w=[];for(var G=g.V(a),k=G.next();!k.done;k=G.next())w.push(k.value.itag);q.d8("hlsfmt",{itags:w.join(".")})}q.AJ=OrG(q.cT,a);q.AJ&&AhV(q,q.AJ);w=q.clientPlaybackNonce;var b,O,e,N;return Pmy(q.cT,q.isAd(),a,(N=(b=q.playerResponse)==null?void 0:(O=b.captions)==null?void 0:(e=O.playerCaptionsRenderer)==null?void 0:e.baseUrl)!=null?N:null,q.OQ,w,function(Y){return q.publish("ctmp","hlsflt", Y)}).then(function(Y){for(var P=0,K=[],d=g.V(Y),T=d.next();!T.done;T=d.next()){T=T.value; var F=void 0;K.push((F=T.getInfo())==null?void 0:F.itag);var J=F=void 0;((F=T.getInfo())==null?void 0:(J=F.audio)==null?void 0:J.numChannels)>P&&(P=T.getInfo().audio.numChannels)}P>2&&q.d8("hlschl",{mn:P});var Q;((Q=q.JS)==null?0:Q.U)&&q.d8("hlsfmtaf",{itags:K.join(".")});var B;if(q.T("html5_enable_vp9_fairplay")&&((B=q.D)==null?0:eE(B)))for(q.d8("drm",{sbdlfbk:1}),P=g.V(q.y_),K=P.next();!K.done;K=P.next())if(K=K.value,lE(K)){q.D=K;break}jO(q,Y)})}return Qb()}; Lrc=function(q){if(q.isExternallyHostedPodcast&&q.Th){var a=Xd(q.Th);if(!a[0])return Qb();q.Xm7=a[0];return Til(q.cT,a[0]).then(function(w){jO(q,w)})}return q.m7&&q.Mx?dcK(q.cT,q.isAd(),q.m7).then(function(w){jO(q,w)}):Qb()}; rhN=function(q){if(q.isExternallyHostedPodcast)return Qb();var a=Xd(q.Th,q.Us);if(q.hlsvp){var w=w9V(q.hlsvp,q.clientPlaybackNonce,q.OQ);a.push(w)}return Kmc(q.cT,q.isAd(),a,BSc(q)).then(function(G){jO(q,G)})}; jO=function(q,a){q.Nh=a;q.FO(new Mq(g.sd(q.Nh,function(w){return w.getInfo()})))}; BSc=function(q){var a={cpn:q.clientPlaybackNonce,c:q.cT.V.c,cver:q.cT.V.cver};q.wi&&(a.ptk=q.wi,a.oid=q.vB,a.ptchn=q.Go,a.pltype=q.LA,q.DX&&(a.m=q.DX));return a}; g.op=function(q){return hF(q)&&q.le?(q={},q.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",q):q.U&&q.U.vN||null}; nB_=function(q){var a=Ip(q);return a&&a.text?g.OE(a.text):q.paidContentOverlayText}; M9f=function(q){var a=Ip(q);return a&&a.durationMs?h7(a.durationMs):q.paidContentOverlayDurationMs}; Ip=function(q){var a,w,G;return q.playerResponse&&q.playerResponse.paidContentOverlay&&q.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.I((a=q.EK)==null?void 0:(w=a.playerOverlays)==null?void 0:(G=w.playerOverlayRenderer)==null?void 0:G.playerDisclosure,hFV)||null}; uN=function(q){var a="";if(q.Ox)return q.Ox;q.isLivePlayback&&(a=q.allowLiveDvr?"dvr":q.isPremiere?"lp":q.y7?"window":"live");q.pT&&(a="post");return a}; g.tF=function(q,a){return typeof q.keywords[a]!=="string"?null:q.keywords[a]}; SmN=function(q){return!!q.m4||!!q.wN||!!q.k6||!!q.bV||q.II}; g.vD=function(q){return!!(q.Ai||q.Th||q.m7||q.hlsvp||q.nS())}; $Q=function(q){if(q.T("html5_onesie")&&q.errorCode)return!1;var a=g.Vx(q.J,"ypc");q.ypcPreview&&(a=!1);return q.PN()&&!q.loading&&(g.vD(q)||g.Vx(q.J,"heartbeat")||a)}; Xd=function(q,a){q=De(q);var w={};if(a){a=g.V(a.split(","));for(var G=a.next();!G.done;G=a.next())(G=G.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(w[G[1]]={width:G[2],height:G[3]})}a=g.V(q);for(G=a.next();!G.done;G=a.next()){G=G.value;var k=w[G.itag];k&&(G.width=k.width,G.height=k.height)}return q}; Ym_=function(q,a){q.showShareButton=!!a;var w,G,k=((w=g.I(a,g.e9))==null?void 0:w.navigationEndpoint)||((G=g.I(a,g.e9))==null?void 0:G.command);k&&(q.N5=!!g.I(k,fNl))}; GKK=function(q,a){var w=a.raw_embedded_player_response;if(!w){var G=a.embedded_player_response;G&&(w=JSON.parse(G))}w&&(q.Eq=w);if(q.Eq){q.embeddedPlayerConfig=q.Eq.embeddedPlayerConfig||null;if(w=q.Eq.videoFlags)w.playableInEmbed&&(q.allowEmbed=!0),w.isPrivate&&(q.isPrivate=!0),w.userDisplayName&&(a.user_display_name=w.userDisplayName),w.userDisplayImage&&(a.user_display_image=w.userDisplayImage);if(w=q.Eq.embedPreview){w=w.thumbnailPreviewRenderer;fqj(q,w.controlBgHtml);if(G=w.defaultThumbnail)q.S= Iv(G);q.T("embeds_web_enable_search_button")&&w.searchButton&&(G=g.I(w.searchButton,g.e9))&&(q.eat=g.I(G.navigationEndpoint,g.zO));(G=g.I(w==null?void 0:w.videoDetails,Hk_))&&TSj(q,a,G);G=g.I(w==null?void 0:w.videoDetails,chm);q.ke=!!w.addToWatchLaterButton;Ym_(q,w.shareButton);if(G==null?0:G.musicVideoType)q.musicVideoType=G.musicVideoType;var k,b,O,e,N;if(G=g.I((k=q.getEmbeddedPlayerResponse())==null?void 0:(b=k.embedPreview)==null?void 0:(O=b.thumbnailPreviewRenderer)==null?void 0:(e=O.playButton)== null?void 0:(N=e.buttonRenderer)==null?void 0:N.navigationEndpoint,g.Er))Zrl(q,G),q.videoId=G.videoId||q.videoId;w.videoDurationSeconds&&(q.lengthSeconds=h7(w.videoDurationSeconds));w.webPlayerActionsPorting&&SiU(q,w.webPlayerActionsPorting);if(k=g.I(w==null?void 0:w.playlist,p9G)){q.rk=!0;b=[];O=Number(k.currentIndex);if(k.contents)for(e=0,N=k.contents.length;e0:q.nu?!1:q.cT.Q0||q.cT.VT||!g.yw(q.cT)?!0:!1:(q.nu?0:q.Q0)&&g.yw(q.cT)?!0:!1;q.T("html5_log_detailpage_autoplay")&&G4(q)==="detailpage"&&q.d8("autoplay_info",{autoplay:q.BH,autonav:q.isAutonav,wasDompaused:q.nu,result:a});return a}; g.li=function(q){return q.oauthToken||q.cT.ym}; ikJ=function(q){if(q.T("html5_stateful_audio_normalization")){var a=1,w=g.Wo(q.cT.experiments,"html5_default_ad_gain");w&&q.isAd()&&(a=w);var G,k;w=(k=(G=q.Y)==null?void 0:G.audio.Y)!=null?k:q.As;if(w==null||isNaN(w))q=zFm(q);else{G=(0,g.Zj)();q.WF=2;k=G-q.cT.AJ<=q.maxStatefulTimeThresholdSec*1E3;q.applyStatefulNormalization&&k?q.WF=4:k||(q.cT.S7=Infinity,q.cT.AJ=NaN);k=(q.WF===4?g.X1(q.cT.S7,q.minimumLoudnessTargetLkfs,q.loudnessTargetLkfs):q.loudnessTargetLkfs)-w;if(q.WF!==4){var b,O,e,N,Y=((b= q.playerResponse)==null?void 0:(O=b.playerConfig)==null?void 0:(e=O.audioConfig)==null?void 0:(N=e.loudnessNormalizationConfig)==null?void 0:N.statelessLoudnessAdjustmentGain)||0;k+=Y}k=Math.min(k,0);q.preserveStatefulLoudnessTarget&&(q.cT.S7=w+k,q.cT.AJ=G);q=Math.min(1,Math.pow(10,k/20))||a}}else q=zFm(q);return q}; zFm=function(q){var a=1,w=g.Wo(q.cT.experiments,"html5_default_ad_gain");w&&q.isAd()&&(a=w);if(q.cB){var G,k;w=((G=q.Y)==null?void 0:G.audio.W)!=null?(k=q.Y)==null?void 0:k.audio.W:q.E3}else{var b;w=((b=q.Y)==null?void 0:b.audio.W)||q.E3}isNaN(w)||(q.WF=1);return Math.min(1,Math.pow(10,-w/20))||a}; xQ=function(q){var a=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],w=s1(q.cT)==="TVHTML5_SIMPLY"&&q.cT.V.ctheme==="MUSIC";!q.XN&&(g.BA(q.cT)||g.VG(q.cT)||w)&&(a.includes(q.musicVideoType)||q.isExternallyHostedPodcast)&&(q.XN=!0);if(a=g.py())a=/Starboard\/([0-9]+)/.exec(g.cL()),a=(a?parseInt(a[1],10):NaN)<10;w=q.cT;w=(s1(w)==="TVHTML5_CAST"||s1(w)==="TVHTML5"&&(w.V.cver.startsWith("6.20130725")||w.V.cver.startsWith("6.20130726")))&&q.cT.V.ctheme==="MUSIC";var G;if(G=!q.XN)w||(w= q.cT,w=s1(w)==="TVHTML5"&&w.V.cver.startsWith("7")),G=w;G&&!a&&(a=q.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",w=(q.T("cast_prefer_audio_only_for_atv_and_uploads")||q.T("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&q.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",a||w||q.isExternallyHostedPodcast)&&(q.XN=!0);return q.cT.deviceIsAudioOnly||q.XN&&q.cT.S}; BD=function(q){var a,w,G;return((a=q.playerResponse)==null?void 0:(w=a.playerConfig)==null?void 0:(G=w.compositeVideoConfig)==null?void 0:G.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}; WrU=function(q){var a,w,G,k=(a=q.playerResponse)==null?void 0:(w=a.playerConfig)==null?void 0:(G=w.compositeVideoConfig)==null?void 0:G.sourceConfigs,b,O,e;q=(b=q.playerResponse)==null?void 0:(O=b.playerConfig)==null?void 0:(e=O.compositeVideoConfig)==null?void 0:e.defaultActiveSourceVideoId;if(!k||!q)return"";k=g.V(k);for(b=k.next();!b.done;b=k.next())if(b=b.value,b.videoId===q&&b.audioTracks)for(b=g.V(b.audioTracks),O=b.next();!O.done;O=b.next())if(O=O.value,O.isDefaultForSource)return O.id||""; return""}; g.Dvm=function(q){return q.pk()&&rM(q)}; ew=function(q){var a,w,G;return!!((a=q.playerResponse)==null?0:(w=a.playerConfig)==null?0:(G=w.mediaCommonConfig)==null?0:G.splitScreenEligible)}; NT=function(q){var a;return!((a=q.playerResponse)==null||!a.compositePlayabilityStatus)}; RFN=function(q){return isNaN(q)?0:Math.max((Date.now()-q)/1E3-30,0)}; yhm=function(q){return q.Ku&&!q.yf}; YU=function(q){return!(!q.iV||!q.cT.S)&&q.nS()}; KD=function(q){return q.Le&&q.enableServerStitchedDai}; qtf=function(q){return q.bD&&!q.gT}; rM=function(q){var a=q.T("html5_enable_sabr_on_drive")&&q.cT.F9==="gd";if(q.ZK)return q.bD&&q.d8("fds",{fds:!0},!0),!1;if(q.cT.F9!=="yt"&&!a)return q.bD&&q.d8("dsvn",{ns:q.cT.F9},!0),!1;if(q.cotn||!q.V||q.V.isOtf&&!q.T("html5_enable_sabr_otf_in_client")||q.W&&!q.W.V||q.tN&&!q.T("html5_enable_sabr_csdai"))return!1;if(q.T("html5_use_sabr_requests_for_debugging"))return!0;q.bD&&q.d8("esfw",{usbc:q.bD,hsu:!!q.gT},!0);if(q.bD&&q.gT)return!0;if(q.T("html5_remove_client_sabr_determination"))return!1;var w= !q.V.pk&&!q.YD();a=w&&FI&&q.T("html5_enable_sabr_vod_streaming_xhr");w=w&&!FI&&q.T("html5_enable_sabr_vod_non_streaming_xhr");var G=d6(q),k=q.T("html5_enable_sabr_drm_vod_streaming_xhr")&&FI&&q.YD()&&!q.V.pk&&(q.drmProduct==="1"?!1:!0);(a=a||w||G||k)&&!q.gT&&q.d8("sabr",{loc:"m"},!0);return a&&!!q.gT}; d6=function(q){var a;if(!(a=FI&&q.pk()&&q.YD()&&(q.drmProduct==="1"?!1:!0)&&q.T("html5_sabr_live_drm_streaming_xhr"))){a=q.pk()&&!q.YD()&&FI;var w=q.pk()&&q.latencyClass!=="ULTRALOW"&&!q.isLowLatencyLiveStream&&q.T("html5_sabr_live_normal_latency_streaming_xhr"),G=q.isLowLatencyLiveStream&&q.T("html5_sabr_live_low_latency_streaming_xhr"),k=q.latencyClass==="ULTRALOW"&&q.T("html5_sabr_live_ultra_low_latency_streaming_xhr");a=a&&(w||G||k)}w=a;a=q.enableServerStitchedDai&&w&&q.T("html5_enable_sabr_ssdai_streaming_xhr"); w=!q.enableServerStitchedDai&&w;G=q.pk()&&!FI&&q.T("html5_enable_sabr_live_non_streaming_xhr");q=FI&&(q.fT()||ew(q)&&q.T("html5_enable_sabr_for_lifa_eligible_streams"));return a||w||G||q}; V9m=function(q){var a;if(a=!!q.cotn)a=q.videoId,a=!!a&&g.gM(a)===1;return a&&!q.iV}; g.T4=function(q){if(!q.V||!q.U||!q.Y)return!1;var a=q.V.V,w=!!a[q.U.id]&&z1(a[q.U.id].GZ.V);a=!!a[q.Y.id]&&z1(a[q.Y.id].GZ.V);return(q.U.itag==="0"||w)&&a}; $U=function(q){return q.gi?["OK","LIVE_STREAM_OFFLINE"].includes(q.gi.status):!0}; Uvl=function(q){return(q=q.d2)&&q.showError?q.showError:!1}; sT=function(q,a){return q.T(a)?!0:(q.fflags||"").includes(a+"=true")}; eFy=function(q,a){a.inlineMetricEnabled&&(q.inlineMetricEnabled=!0);a.playback_progress_0s_url&&(q.bV=new pZj(a));if(a=a.video_masthead_ad_quartile_urls)q.wN=a.quartile_0_url,q.VU=a.quartile_25_url,q.au=a.quartile_50_url,q.Or=a.quartile_75_url,q.rg=a.quartile_100_url,q.k6=a.quartile_0_urls,q.K5=a.quartile_25_urls,q.IF=a.quartile_50_urls,q.Vu=a.quartile_75_urls,q.s6=a.quartile_100_urls}; lNG=function(q){var a={};q=g.V(q);for(var w=q.next();!w.done;w=q.next()){w=w.value;var G=w.split("=");G.length===2?a[G[0]]=G[1]:a[w]=!0}return a}; bkm=function(q){if(q){if(FQf(q))return q;q=CdV(q);if(FQf(q,!0))return q}return""}; g.gRf=function(q){return q.captionsLanguagePreference||q.cT.captionsLanguagePreference||g.tF(q,"yt:cc_default_lang")||q.cT.aA}; Fe=function(q){return!(!q.isLivePlayback||!q.hasProgressBarBoundaries())}; g.Vq=function(q){var a;return q.a4||((a=q.suggestions)==null?void 0:a[0])||null}; g.CD=function(q){var a,w;return!!((a=q.embeddedPlayerConfig)==null?0:(w=a.embeddedPlayerFlags)==null?0:w.enableMusicUx)}; a6j=function(q){return q.X||q.T("web_player_media_session_infinity")&&q.isLivePlayback}; ZZ=function(q){return q.cT.Y&&q.isPrivate}; g.Vk=function(q){var a=q.B(),w=g.ET(a),G=a.Ai;(a.T("embeds_web_enable_iframe_api_send_full_embed_url")||a.T("embeds_web_enable_rcat_validation_in_havs")||a.T("embeds_enable_autoplay_and_visibility_signals"))&&g.kM(a)&&(G&&(w.thirdParty=Object.assign({},w.thirdParty,{embedUrl:G})),btl(w,q));if(G=q.L7)w.clickTracking={clickTrackingParams:G};else if(g.kM(q.B())&&g.UL("EVENT_ID"))w.clickTracking={clickTrackingParams:g.UL("EVENT_ID")};else if(a.T("html5_log_missing_itct")){var k;G=new g.UH("Missing ITCT in InnerTubeContext", {isAd:q.isAd(),Wzl:(k=a.getWebPlayerContextConfig())==null?void 0:k.contextId});g.mQ(G)}k=w.client||{};G="EMBED";var b=G4(q);b==="leanback"?G="WATCH":a.T("gvi_channel_client_screen")&&b==="profilepage"?G="CHANNEL":q.IW?G="LIVE_MONITOR":b==="detailpage"?G="WATCH_FULL_SCREEN":b==="adunit"?G="ADUNIT":b==="sponsorshipsoffer"&&(G="UNKNOWN");k.clientScreen=G;if(a=q.kidsAppInfo)k.kidsAppInfo=JSON.parse(a);(G=q.YB)&&!a&&(k.kidsAppInfo={contentSettings:{ageUpMode:wc_[G]}});if(a=q.AP)k.unpluggedAppInfo={enableFilterMode:!0}; (G=q.unpluggedFilterModeType)&&!a&&(k.unpluggedAppInfo={filterModeType:G2c[G]});if(a=q.aA)k.unpluggedLocationInfo=a;w.client=k;k=w.request||{};q.qM&&(k.isPrefetch=!0);if(a=q.mdxEnvironment)k.mdxEnvironment=a;if(a=q.mdxControlMode)k.mdxControlMode=k2j[a];w.request=k;k=w.user||{};if(a=q.f7)k.credentialTransferTokens=[{token:a,scope:"VIDEO"}];if(a=q.L0)k.delegatePurchases={oauthToken:a},k.kidsParent={oauthToken:a};w.user=k;if(k=q.contextParams)w.activePlayers=[{playerContextParams:k}];if(q=q.clientScreenNonce)w.clientScreenNonce= q;return w}; g.ET=function(q){var a=g.IA(),w=a.client||{};if(q.forcedExperiments){var G=q.forcedExperiments.split(","),k=[];G=g.V(G);for(var b=G.next();!b.done;b=G.next())k.push(Number(b.value));w.experimentIds=k}if(k=q.homeGroupInfo)w.homeGroupInfo=JSON.parse(k);if(k=q.getPlayerType())w.playerType=k;if(k=q.V.ctheme)w.theme=k;if(k=q.livingRoomAppMode)w.tvAppInfo=Object.assign({},w.tvAppInfo,{livingRoomAppMode:k});k=q.deviceYear;q.T("html5_propagate_device_year")&&k&&(w.tvAppInfo=Object.assign({},w.tvAppInfo,{deviceYear:k})); if(k=q.livingRoomPoTokenId)w.tvAppInfo=Object.assign({},w.tvAppInfo,{livingRoomPoTokenId:k});a.client=w;w=a.user||{};q.enableSafetyMode&&(w=Object.assign({},w,{enableSafetyMode:!0}));q.pageId&&(w=Object.assign({},w,{onBehalfOfUser:q.pageId}));a.user=w;w=q.Ai;q.T("embeds_web_enable_iframe_api_send_full_embed_url")||q.T("embeds_web_enable_rcat_validation_in_havs")||q.T("embeds_enable_autoplay_and_visibility_signals")||!w||(a.thirdParty={embedUrl:w});return a}; Ytc=function(q,a,w){var G=q.videoId,k=g.Vk(q),b=q.B(),O={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(s9()),referer:document.location.toString(),signatureTimestamp:20305};g.hE();q.isAutonav&&(O.autonav=!0);g.S2(0,141)&&(O.autonavState=g.S2(0,140)?"STATE_OFF":"STATE_ON");O.autoCaptionsDefaultOn=g.S2(0,66);vBl(q)&&(O.autoplay=!0);b.S&&q.cycToken&&(O.cycToken=q.cycToken);b.enablePrivacyFilter&&(O.enablePrivacyFilter=!0);q.isFling&&(O.fling=!0);var e=q.forceAdsUrl;if(e){var N={},Y=[];e= e.split(",");e=g.V(e);for(var P=e.next();!P.done;P=e.next()){P=P.value;var K=P.split("|");K.length!==3||P.includes("=")||(K[0]="breaktype="+K[0],K[1]="offset="+K[1],K[2]="url="+K[2]);P={adtype:"video_ad"};K=g.V(K);for(var d=K.next();!d.done;d=K.next()){var T=g.V(d.value.split("="));d=T.next().value;T=kfj(T);P[d]=T.join("=")}K=P.url;d=P.presetad;T=P.viralresponseurl;var F=Number(P.campaignid);if(P.adtype==="in_display_ad")K&&(N.url=K),d&&(N.presetAd=d),T&&(N.viralAdResponseUrl=T),F&&(N.viralCampaignId= String(F));else if(P.adtype==="video_ad"){var J={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(P.offset)||0)}};if(P=bO_[P.breaktype])J.breakType=P;K&&(J.url=K);d&&(J.presetAd=d);T&&(J.viralAdResponseUrl=T);F&&(J.viralCampaignId=String(F));Y.push(J)}}O.forceAdParameters={videoAds:Y,inDisplayAd:N}}q.isInlinePlaybackNoAd&&(O.isInlinePlaybackNoAd=!0);q.isLivingRoomDeeplink&&(O.isLivingRoomDeeplink=!0);N=q.Y3W;if(N!=null){N={startWalltime:String(N)};if(Y=q.lV)N.manifestDuration=String(Y||14400); O.liveContext=N}if(q.mutedAutoplay){O.mutedAutoplay=!0;N=b.getWebPlayerContextConfig();var Q,B;(N==null?0:(Q=N.embedsHostFlags)==null?0:Q.allowMutedAutoplayDurationMode)&&(N==null?0:(B=N.embedsHostFlags)==null?0:B.allowMutedAutoplayDurationMode.includes(OOK[q.mutedAutoplayDurationMode]))&&(O.mutedAutoplayDurationMode=OOK[q.mutedAutoplayDurationMode])}if(q.nu?0:q.Q0)O.splay=!0;Q=q.vnd;Q===5&&(O.vnd=Q);Q={};if(B=q.isMdxPlayback)Q.triggeredByMdx=B;if(B=q.NS)Q.skippableAdsSupported=B.split(",").includes("ska"); if(Y=q.wl){B=q.aL;N=[];Y=g.V(Otm(Y));for(e=Y.next();!e.done;e=Y.next()){e=e.value;P=e.platform;e={applicationState:e.v$?"INACTIVE":"ACTIVE",clientFormFactor:l6_[P]||"UNKNOWN_FORM_FACTOR",clientName:e2G[e.WO]||"UNKNOWN_INTERFACE",clientVersion:e.deviceVersion||"",platform:e7f[P]||"UNKNOWN_PLATFORM"};P={};if(B){K=void 0;try{K=JSON.parse(B)}catch(M){g.Qa(M)}K&&(P={params:[{key:"ms",value:K.ms}]},K.advertising_id&&(P.advertisingId=K.advertising_id),K.limit_ad_tracking!==void 0&&K.limit_ad_tracking!== null&&(P.limitAdTracking=K.limit_ad_tracking),e.osName=K.os_name,e.userAgent=K.user_agent,e.windowHeightPoints=K.window_height_points,e.windowWidthPoints=K.window_width_points)}N.push({adSignalsInfo:P,remoteClient:e})}Q.remoteContexts=N}B=q.sourceContainerPlaylistId;N=q.serializedMdxMetadata;if(B||N)Y={},B&&(Y.mdxPlaybackContainerInfo={sourceContainerPlaylistId:B}),N&&(Y.serializedMdxMetadata=N),Q.mdxPlaybackSourceContext=Y;O.mdxContext=Q;Q=a.width;Q>0&&(O.playerWidthPixels=Math.round(Q));if(a=a.height)O.playerHeightPixels= Math.round(a);w!==0&&(O.vis=w);if(w=b.widgetReferrer)O.widgetReferrer=w.substring(0,128);g.yw(b)&&O&&(O.ancestorOrigins=b.ancestorOrigins);q.defaultActiveSourceVideoId&&(O.compositeVideoContext={defaultActiveSourceVideoId:q.defaultActiveSourceVideoId});if(b=b.getWebPlayerContextConfig())O.encryptedHostFlags=b.encryptedHostFlags;G={videoId:G,context:k,playbackContext:{contentPlaybackContext:O}};if(q.RE){var L;G.playbackContext.reloadPlaybackContext={reloadPlaybackParams:(L=q.RE)==null?void 0:L.reloadPlaybackParams}}q.contentCheckOk&& (G.contentCheckOk=!0);if(L=q.clientPlaybackNonce)G.cpn=L;if(L=q.playerParams)G.params=L;if(L=q.playlistId)G.playlistId=L;q.racyCheckOk&&(G.racyCheckOk=!0);L=q.B();k=L.embedConfig;q.v1&&L.T("embeds_enable_per_video_embed_config")?G.serializedThirdPartyEmbedConfig=q.v1:k&&(G.serializedThirdPartyEmbedConfig=k);G.captionParams={};k=g.S2(g.hE(),65);q.deviceCaptionsOn!=null?G.captionParams.deviceCaptionsOn=q.deviceCaptionsOn:g.Zg(L)&&(G.captionParams.deviceCaptionsOn=k!=null?!k:!1);q.OF&&(G.captionParams.deviceCaptionsLangPref= q.OF);q.ZQ.length?G.captionParams.viewerSelectedCaptionLangs=q.ZQ:g.Zg(L)&&(k=g.Cx(),k==null?0:k.length)&&(G.captionParams.viewerSelectedCaptionLangs=k);k=q.fetchType==="onesie"&&q.T("html5_onesie_attach_po_token");O=q.fetchType!=="onesie"&&q.T("html5_non_onesie_attach_po_token");if(k||O)k=q.B(),k.nu&&(G.serviceIntegrityDimensions={},G.serviceIntegrityDimensions.poToken=k.nu);L.T("fetch_att_independently")&&(G.attestationRequest={omitBotguardData:!0});G.playbackContext||(G.playbackContext={});G.playbackContext.devicePlaybackCapabilities= NtN(q);G.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding===!1&&q.d8("noVp9",{});return G}; NtN=function(q){var a=!(q==null?0:q.Po())&&(q==null?void 0:q.pk())&&iO(),w;if(!(w=q==null)){w=g.nc(q);q=q.B().D;var G=nA("243");w=!(G&&HX(w,G,q,!0)===!0)}return{supportsVp9Encoding:!(w||a),supportXhr:FI}}; Kwj=function(q,a){var w,G,k;return g.h(function(b){if(b.U==1)return w={context:g.ET(q.B()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:q.videoId,cpn:q.clientPlaybackNonce}}]},G=g.vA(PZU),g.n(b,g.Bt(a,w,G),2);k=b.V;return b.return(k)})}; dSK=function(q,a,w){var G=g.Wo(a.experiments,"bg_vm_reinit_threshold");(!Yd||(0,g.Zj)()-Yd>G)&&Kwj(q,w).then(function(k){k&&(k=k.botguardData)&&g.Kx(k,a)},function(k){q.t2()||(k=dl(k),q.d8("attf",k.details))})}; Jc=function(q,a){g.c.call(this);this.app=q;this.state=a}; Qk=function(q,a,w){q.state.V.hasOwnProperty(a)||mX(q,a,w);q.state.X[a]=function(){return w.apply(q,g.XU.apply(0,arguments))}; q.state.L.add(a)}; Ac=function(q,a,w){q.state.V.hasOwnProperty(a)||mX(q,a,w);q.app.B().S&&(q.state.S[a]=function(){return w.apply(q,g.XU.apply(0,arguments))},q.state.L.add(a))}; mX=function(q,a,w){q.state.V[a]=function(){return w.apply(q,g.XU.apply(0,arguments))}}; g.xU=function(q,a,w){return q.state.V[a].apply(q.state.V,g.Tf(w))}; LD=function(){g.E8.call(this);this.D=new Map}; BE=function(){g.c.apply(this,arguments);this.element=null;this.L=new Set;this.X={};this.S={};this.V={};this.J=new Set;this.W=new LD;this.U=new LD;this.Y=new LD;this.D=new LD}; Ttm=function(q,a,w){typeof q==="string"&&(q={mediaContentUrl:q,startSeconds:a,suggestedQuality:w});a:{if((a=q.mediaContentUrl)&&(a=/\/([ve]|embed)\/([^#?]+)/.exec(a))&&a[2]){a=a[2];break a}a=null}q.videoId=a;return r6(q)}; r6=function(q,a,w){if(typeof q==="string")return{videoId:q,startSeconds:a,suggestedQuality:w};a={};w=g.V($S_);for(var G=w.next();!G.done;G=w.next())G=G.value,q[G]&&(a[G]=q[G]);if(q=q.embedConfig||q.embed_config)if(typeof q==="string")a.embed_config=q;else if(g.bV(q))try{var k=JSON.stringify(q);a.embed_config=k}catch(b){console.error("Invalid embedConfig JSON",b)}return a}; skj=function(q,a,w,G){if(g.bV(q)&&!Array.isArray(q)){a="playlist list listType index startSeconds suggestedQuality".split(" ");w={};for(G=0;G32&&G.push("hfr");a.isHdr()&&G.push("hdr");a.primaries==="bt2020"&&G.push("wcg");w.video_quality_features=G}}if(q=q.getPlaylistId())w.list=q;return w}; fD=function(){nD.apply(this,arguments)}; HE=function(q,a){var w={};if(q.app.B().UK){q=g.V(ERl);for(var G=q.next();!G.done;G=q.next())G=G.value,a.hasOwnProperty(G)&&(w[G]=a[G]);if(a=w.qoe_cat)q="",typeof a==="string"&&a.length>0&&(q=a.split(",").filter(function(k){return VZm.includes(k)}).join(",")),w.qoe_cat=q; J6c(w)}else for(q=g.V(mSm),G=q.next();!G.done;G=q.next())G=G.value,a.hasOwnProperty(G)&&(w[G]=a[G]);return w}; J6c=function(q){var a=q.raw_player_response;if(!a){var w=q.player_response;w&&(a=JSON.parse(w))}delete q.player_response;delete q.raw_player_response;if(a){q.raw_player_response={streamingData:a.streamingData,playerConfig:a.playerConfig};var G;if((G=a.playbackTracking)==null?0:G.qoeUrl)q.raw_player_response=Object.assign({},q.raw_player_response,{playbackTracking:{qoeUrl:a.playbackTracking.qoeUrl}});a.videoDetails&&(a.videoDetails.videoId||a.videoDetails.lengthSeconds)&&(w={},a.videoDetails.videoId&& (w.videoId=a.videoDetails.videoId),a.videoDetails.lengthSeconds&&(w.lengthSeconds=a.videoDetails.lengthSeconds),q.raw_player_response=Object.assign({},q.raw_player_response,{videoDetails:w}))}}; cE=function(q,a,w){var G=q.app.OB(w);if(!G)return 0;q=G-q.app.getCurrentTime(w);return a-q}; A6V=function(q){var a=a===void 0?5:a;return q?Qkf[q]||a:a}; g.pD=function(){fD.apply(this,arguments)}; xSy=function(q){mX(q,"getInternalApiInterface",q.getInternalApiInterface);mX(q,"addEventListener",q.oT);mX(q,"removeEventListener",q.vWh);mX(q,"cueVideoByPlayerVars",q.rf);mX(q,"loadVideoByPlayerVars",q.ahT);mX(q,"preloadVideoByPlayerVars",q.U_e);mX(q,"getAdState",q.getAdState);mX(q,"sendAbandonmentPing",q.sendAbandonmentPing);mX(q,"setLoopRange",q.setLoopRange);mX(q,"getLoopRange",q.getLoopRange);mX(q,"setAutonavState",q.setAutonavState);mX(q,"seekTo",q.Ap7);mX(q,"seekBy",q.CyT);mX(q,"seekToLiveHead", q.seekToLiveHead);mX(q,"requestSeekToWallTimeSeconds",q.requestSeekToWallTimeSeconds);mX(q,"seekToStreamTime",q.seekToStreamTime);mX(q,"prefetchKeyPlay",q.prefetchKeyPlay);mX(q,"startSeekCsiAction",q.startSeekCsiAction);mX(q,"getStreamTimeOffset",q.getStreamTimeOffset);mX(q,"getVideoData",q.t_);mX(q,"setInlinePreview",q.setInlinePreview);mX(q,"getAppState",q.getAppState);mX(q,"updateLastActiveTime",q.updateLastActiveTime);mX(q,"setBlackout",q.setBlackout);mX(q,"setUserEngagement",q.setUserEngagement); mX(q,"updateSubtitlesUserSettings",q.updateSubtitlesUserSettings);mX(q,"getPresentingPlayerType",q.PS);mX(q,"canPlayType",q.canPlayType);mX(q,"updatePlaylist",q.updatePlaylist);mX(q,"updateVideoData",q.updateVideoData);mX(q,"updateEnvironmentData",q.updateEnvironmentData);mX(q,"sendVideoStatsEngageEvent",q.sNT);mX(q,"productsInVideoVisibilityUpdated",q.productsInVideoVisibilityUpdated);mX(q,"setSafetyMode",q.setSafetyMode);mX(q,"isAtLiveHead",function(a){return q.isAtLiveHead(void 0,a)}); mX(q,"getVideoAspectRatio",q.getVideoAspectRatio);mX(q,"getPreferredQuality",q.getPreferredQuality);mX(q,"getPlaybackQualityLabel",q.getPlaybackQualityLabel);mX(q,"setPlaybackQualityRange",q.UHG);mX(q,"onAdUxClicked",q.onAdUxClicked);mX(q,"getFeedbackProductData",q.getFeedbackProductData);mX(q,"getStoryboardFrame",q.getStoryboardFrame);mX(q,"getStoryboardFrameIndex",q.getStoryboardFrameIndex);mX(q,"getStoryboardLevel",q.getStoryboardLevel);mX(q,"getNumberOfStoryboardLevels",q.getNumberOfStoryboardLevels); mX(q,"getCaptionWindowContainerId",q.getCaptionWindowContainerId);mX(q,"getAvailableQualityLabels",q.getAvailableQualityLabels);mX(q,"addCueRange",q.addCueRange);mX(q,"addUtcCueRange",q.addUtcCueRange);mX(q,"showAirplayPicker",q.showAirplayPicker);mX(q,"dispatchReduxAction",q.dispatchReduxAction);mX(q,"getPlayerResponse",q.c9);mX(q,"getWatchNextResponse",q.nt);mX(q,"getHeartbeatResponse",q.uQ);mX(q,"getCurrentTime",q.aY);mX(q,"getDuration",q.vS);mX(q,"getPlayerState",q.getPlayerState);mX(q,"getPlayerStateObject", q.Gz);mX(q,"getVideoLoadedFraction",q.getVideoLoadedFraction);mX(q,"getProgressState",q.getProgressState);mX(q,"getVolume",q.getVolume);mX(q,"setVolume",q.WV);mX(q,"isMuted",q.isMuted);mX(q,"mute",q.iB);mX(q,"unMute",q.wb);mX(q,"loadModule",q.loadModule);mX(q,"unloadModule",q.unloadModule);mX(q,"getOption",q.w3);mX(q,"getOptions",q.getOptions);mX(q,"setOption",q.setOption);mX(q,"loadVideoById",q.Q$);mX(q,"loadVideoByUrl",q.y$);mX(q,"playVideo",q.s_);mX(q,"loadPlaylist",q.loadPlaylist);mX(q,"nextVideo", q.nextVideo);mX(q,"previousVideo",q.previousVideo);mX(q,"playVideoAt",q.playVideoAt);mX(q,"getDebugText",q.getDebugText);mX(q,"getWebPlayerContextConfig",q.getWebPlayerContextConfig);mX(q,"notifyShortsAdSwipeEvent",q.notifyShortsAdSwipeEvent);mX(q,"getVideoContentRect",q.getVideoContentRect);mX(q,"setSqueezeback",q.setSqueezeback);mX(q,"toggleSubtitlesOn",q.toggleSubtitlesOn);mX(q,"isSubtitlesOn",q.isSubtitlesOn);mX(q,"reportPlaybackIssue",q.reportPlaybackIssue);mX(q,"setAutonav",q.setAutonav);mX(q, "isNotServable",q.isNotServable);mX(q,"channelSubscribed",q.channelSubscribed);mX(q,"channelUnsubscribed",q.channelUnsubscribed);mX(q,"togglePictureInPicture",q.togglePictureInPicture);mX(q,"supportsGaplessAudio",q.supportsGaplessAudio);mX(q,"supportsGaplessShorts",q.supportsGaplessShorts);mX(q,"enqueueVideoByPlayerVars",function(a){return void q.enqueueVideoByPlayerVars(a)}); mX(q,"clearQueue",q.clearQueue);mX(q,"getAudioTrack",q.BK);mX(q,"setAudioTrack",q.KG7);mX(q,"getAvailableAudioTracks",q.I9);mX(q,"getMaxPlaybackQuality",q.getMaxPlaybackQuality);mX(q,"getUserPlaybackQualityPreference",q.getUserPlaybackQualityPreference);mX(q,"getSubtitlesUserSettings",q.getSubtitlesUserSettings);mX(q,"resetSubtitlesUserSettings",q.resetSubtitlesUserSettings);mX(q,"setMinimized",q.setMinimized);mX(q,"setOverlayVisibility",q.setOverlayVisibility);mX(q,"confirmYpcRental",q.confirmYpcRental); mX(q,"queueNextVideo",q.queueNextVideo);mX(q,"handleExternalCall",q.handleExternalCall);mX(q,"logApiCall",q.logApiCall);mX(q,"isExternalMethodAvailable",q.isExternalMethodAvailable);mX(q,"setScreenLayer",q.setScreenLayer);mX(q,"getCurrentPlaylistSequence",q.getCurrentPlaylistSequence);mX(q,"getPlaylistSequenceForTime",q.getPlaylistSequenceForTime);mX(q,"shouldSendVisibilityState",q.shouldSendVisibilityState);mX(q,"syncVolume",q.syncVolume);mX(q,"highlightSettingsMenuItem",q.highlightSettingsMenuItem); mX(q,"openSettingsMenuItem",q.openSettingsMenuItem);mX(q,"getEmbeddedPlayerResponse",q.getEmbeddedPlayerResponse);mX(q,"getVisibilityState",q.getVisibilityState);mX(q,"isMutedByMutedAutoplay",q.isMutedByMutedAutoplay);mX(q,"isMutedByEmbedsMutedAutoplay",q.isMutedByEmbedsMutedAutoplay);mX(q,"setGlobalCrop",q.setGlobalCrop);mX(q,"setInternalSize",q.setInternalSize);mX(q,"setFauxFullscreen",q.setFauxFullscreen);mX(q,"setAppFullscreen",q.setAppFullscreen)}; Xe=function(q,a,w){q=g.UT(q.gz(),a);return w?(w.addOnDisposeCallback(q),null):q}; g.jw=function(q,a,w){return q.app.B().JS?a:g.gZ("$DESCRIPTION\u00a0($SHORTCUT)",{DESCRIPTION:a,SHORTCUT:w})}; LwJ=function(q){q.gz().element.setAttribute("aria-live","polite")}; g.o$=function(q,a){g.pD.call(this,q,a);xSy(this);Ac(this,"addEventListener",this.G1);Ac(this,"removeEventListener",this.D_K);Ac(this,"cueVideoByPlayerVars",this.VZ);Ac(this,"loadVideoByPlayerVars",this.FQl);Ac(this,"preloadVideoByPlayerVars",this.d_G);Ac(this,"loadVideoById",this.Q$);Ac(this,"loadVideoByUrl",this.y$);Ac(this,"playVideo",this.s_);Ac(this,"loadPlaylist",this.loadPlaylist);Ac(this,"nextVideo",this.nextVideo);Ac(this,"previousVideo",this.previousVideo);Ac(this,"playVideoAt",this.playVideoAt); Ac(this,"getVideoData",this.ZI);Ac(this,"seekBy",this.S3h);Ac(this,"seekTo",this.Zu7);Ac(this,"showControls",this.showControls);Ac(this,"hideControls",this.hideControls);Ac(this,"cancelPlayback",this.cancelPlayback);Ac(this,"getProgressState",this.getProgressState);Ac(this,"isInline",this.isInline);Ac(this,"setInline",this.setInline);Ac(this,"setLoopVideo",this.setLoopVideo);Ac(this,"getLoopVideo",this.getLoopVideo);Ac(this,"getVideoContentRect",this.getVideoContentRect);Ac(this,"getVideoStats",this.Tz); Ac(this,"getCurrentTime",this.U7);Ac(this,"getDuration",this.vS);Ac(this,"getPlayerState",this.H9);Ac(this,"getVideoLoadedFraction",this.E7);Ac(this,"mute",this.iB);Ac(this,"unMute",this.wb);Ac(this,"setVolume",this.WV);Ac(this,"loadModule",this.loadModule);Ac(this,"unloadModule",this.unloadModule);Ac(this,"getOption",this.w3);Ac(this,"getOptions",this.getOptions);Ac(this,"setOption",this.setOption);Ac(this,"addCueRange",this.addCueRange);Ac(this,"getDebugText",this.getDebugText);Ac(this,"getStoryboardFormat", this.getStoryboardFormat);Ac(this,"toggleFullscreen",this.toggleFullscreen);Ac(this,"isFullscreen",this.isFullscreen);Ac(this,"getPlayerSize",this.getPlayerSize);Ac(this,"toggleSubtitles",this.toggleSubtitles);Ac(this,"setCenterCrop",this.setCenterCrop);Ac(this,"setFauxFullscreen",this.setFauxFullscreen);Ac(this,"setSizeStyle",this.setSizeStyle);Ac(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);Ac(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);CZU(this)}; g.I$=function(q){q=q.Hq();var a=q.KT.get("endscreen");return a&&a.zR()?!0:q.oF()}; g.ui=function(q,a){q.getPresentingPlayerType()===3?q.publish("mdxautoplaycancel"):q.zl("onAutonavCancelled",a)}; g.vE=function(q){var a=tc(q.Hq());return q.app.cQ&&!q.isFullscreen()||q.getPresentingPlayerType()===3&&a&&a.HI()&&a.IE()||!!q.getPlaylist()}; g.z4=function(q,a){g.xU(q,"addEmbedsConversionTrackingParams",[a])}; g.WE=function(q){return(q=g.ii(q.Hq()))?q.Wv():{}}; g.Btm=function(q){q=(q=q.getVideoData())&&q.U;return!!q&&!(!q.audio||!q.video)&&q.mimeType!=="application/x-mpegURL"}; g.DZ=function(q,a,w){q=q.mQ().element;var G=IB(q.children,function(k){k=Number(k.getAttribute("data-layer"));return w-k||1}); G<0&&(G=-(G+1));Fr(q,a,G);a.setAttribute("data-layer",String(w))}; g.R$=function(q){var a=q.B();if(!a.RA)return!1;var w=q.getVideoData();if(!w||q.getPresentingPlayerType()===3)return!1;var G=(!w.isLiveDefaultBroadcast||a.T("allow_poltergust_autoplay"))&&!Fe(w);G=w.isLivePlayback&&(!a.T("allow_live_autoplay")||!G);var k=w.isLivePlayback&&a.T("allow_live_autoplay_on_mweb");q=q.getPlaylist();q=!!q&&q.HI();var b=w.EK&&w.EK.playerOverlays||null;b=!!(b&&b.playerOverlayRenderer&&b.playerOverlayRenderer.autoplay);b=w.J8&&b;return!w.ypcPreview&&(!G||k)&&!g.Vx(w.J,"ypc")&& !q&&(!g.yw(a)||b)}; nRK=function(q,a){q=r6j(q.app.vQ().D);q=g.V(q);for(var w=q.next();!w.done;w=q.next()){w=w.value;var G=w.getAvailableAudioTracks(),k=null;G=g.V(G);for(var b=G.next();!b.done;b=G.next())if(b=b.value,b.getLanguageInfo().getId()===a){k=b;break}k&&w.Da(k,!0)}}; yk=function(){n2.apply(this,arguments);this.requestHeaders={}}; gL=function(){qs||(qs=new yk);return qs}; a0=function(q,a){a?q.requestHeaders.Authorization="Bearer "+a:delete q.requestHeaders.Authorization}; g.wL=function(q){g.c.call(this);var a=this;this.aW=q;this.qh={jF:function(){return a.aW}}}; g.Gd=function(q,a,w,G){G=G===void 0?!1:G;g.Gs.call(this,a);var k=this;this.j=q;this.y7=G;this.S=new g.Ee(this);this.fade=new g.zs(this,w,!0,void 0,void 0,function(){k.YS()}); g.p(this,this.S);g.p(this,this.fade)}; k_=function(q){var a=q.j.getRootNode();return q.j.T("web_watch_pip")||q.j.T("web_shorts_pip")?qP(a):document}; MZc=function(q){q.U&&(document.activeElement&&g.ZM(q.element,document.activeElement)&&q.U.focus(),q.U.setAttribute("aria-expanded","false"),q.U=void 0);g.JE(q.S);q.J=void 0}; bk=function(q,a,w){q.j7()?q.DZ():q.kF(a,w)}; OI=function(q,a,w,G){G=new g.u({G:"div",vT:["ytp-linked-account-popup-button"],ue:G,Z:{role:"button",tabindex:"0"}});a=new g.u({G:"div",N:"ytp-linked-account-popup",Z:{role:"dialog","aria-modal":"true",tabindex:"-1"},K:[{G:"div",N:"ytp-linked-account-popup-title",ue:a},{G:"div",N:"ytp-linked-account-popup-description",ue:w},{G:"div",N:"ytp-linked-account-popup-buttons",K:[G]}]});g.Gd.call(this,q,{G:"div",N:"ytp-linked-account-popup-container",K:[a]},100);var k=this;this.dialog=a;g.p(this,this.dialog); G.listen("click",function(){k.DZ()}); g.p(this,G);g.DZ(this.j,this.element,4);this.hide()}; g.e1=function(q,a,w,G){g.Gs.call(this,q);this.priority=a;w&&g.lk(this,w);G&&this.z0(G)}; g.Ns=function(q,a,w,G){q=q===void 0?{}:q;a=a===void 0?[]:a;w=w===void 0?!1:w;G=G===void 0?!1:G;a.push("ytp-menuitem");var k=q;"role"in k||(k.role="menuitem");w||(k=q,"tabindex"in k||(k.tabindex="0"));q={G:w?"a":"div",vT:a,Z:q,K:[{G:"div",N:"ytp-menuitem-icon",ue:"{{icon}}"},{G:"div",N:"ytp-menuitem-label",ue:"{{label}}"},{G:"div",N:"ytp-menuitem-content",ue:"{{content}}"}]};G&&q.K.push({G:"div",N:"ytp-menuitem-secondary-icon",ue:"{{secondaryIcon}}"});return q}; g.lk=function(q,a){q.updateValue("label",a)}; Y_=function(q){g.e1.call(this,g.Ns({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var a=this;this.j=q;this.U=this.V=!1;this.Wq=q.cW();q.createServerVe(this.element,this,!0);this.C(this.j,"settingsMenuVisibilityChanged",function(w){a.Si(w)}); this.C(this.j,"videodatachange",this.Y);this.listen("click",this.onClick);this.Y()}; Py=function(q){return q?g.OE(q):""}; Km=function(q){g.c.call(this);this.api=q}; dL=function(q){Km.call(this,q);var a=this;mX(q,"setAccountLinkState",function(w){a.setAccountLinkState(w)}); mX(q,"updateAccountLinkingConfig",function(w){a.updateAccountLinkingConfig(w)}); q.addEventListener("videodatachange",function(w,G){a.onVideoDataChange(G)}); q.addEventListener("settingsMenuInitialized",function(){a.menuItem=new Y_(a.api);g.p(a,a.menuItem)})}; h7l=function(q){this.api=q;this.V={}}; Td=function(q,a,w,G){a in q.V||(w=new g.Xo(w,G,{id:a,priority:2,namespace:"appad"}),q.api.N9([w],1),q.V[a]=w)}; $_=function(q){Km.call(this,q);var a=this;this.events=new g.Ee(this);g.p(this,this.events);this.V=new h7l(this.api);this.events.C(this.api,"legacyadtrackingpingreset",function(){a.V.V={}}); this.events.C(this.api,"legacyadtrackingpingchange",function(w){var G=a.V;Td(G,"part2viewed",1,0x8000000000000);Td(G,"engagedview",Math.max(1,w.OA*1E3),0x8000000000000);if(!w.isLivePlayback){var k=w.lengthSeconds*1E3;AF(w)&&G.api.T("html5_shorts_gapless_ads_duration_fix")&&(k=G.api.getProgressState().seekableEnd*1E3-w.LN);Td(G,"videoplaytime25",k*.25,k);Td(G,"videoplaytime50",k*.5,k);Td(G,"videoplaytime75",k*.75,k);Td(G,"videoplaytime100",k,0x8000000000000);Td(G,"conversionview",k,0x8000000000000); Td(G,"videoplaybackstart",1,k);Td(G,"videoplayback2s",2E3,k);Td(G,"videoplayback10s",1E4,k)}}); this.events.C(this.api,g.oM("appad"),this.U);this.events.C(this.api,g.IM("appad"),this.U)}; c6J=function(q,a,w){if(!(w in a))return!1;a=a[w];Array.isArray(a)||(a=[a]);a=g.V(a);for(w=a.next();!w.done;w=a.next()){w=w.value;var G={CPN:q.api.getVideoData().clientPlaybackNonce};w=g.AD(w,G);G=void 0;G=G===void 0?!1:G;(G=S7(fp(w,StN),w,G,"Active View 3rd Party Integration URL"))||(G=void 0,G=G===void 0?!1:G,G=S7(fp(w,f6U),w,G,"Google/YouTube Brand Lift URL"));G||(G=void 0,G=G===void 0?!1:G,G=S7(fp(w,HOc),w,G,"Nielsen OCR URL"));g.re(w,void 0,G)}return!0}; sI=function(q,a){pcc(q,a).then(function(w){g.re(a,void 0,void 0,w)})}; FD=function(q,a){a.forEach(function(w){sI(q,w)})}; pcc=function(q,a){return g.Nh(q.api.B())&&wF(a)&&ac(a)?g.B8(q.api.B(),g.li(q.api.getVideoData())).then(function(w){var G;w&&(G={Authorization:"Bearer "+w});return G},void 0):AG()}; USU=function(q){Km.call(this,q);this.events=new g.Ee(q);g.p(this,this.events);this.events.C(q,"videoready",function(a){if(q.getPresentingPlayerType()===1){var w,G,k={playerDebugData:{pmlSignal:!!((w=a.getPlayerResponse())==null?0:(G=w.adPlacements)==null?0:G.some(function(b){var O;return b==null?void 0:(O=b.adPlacementRenderer)==null?void 0:O.renderer})), contentCpn:a.clientPlaybackNonce}};g.aw("adsClientStateChange",k)}})}; Cm=function(q){Km.call(this,q);var a=this;this.events=new g.Ee(q);g.p(this,this.events);mX(this.api,"getUserAudioQualitySetting",function(){return a.getUserAudioQualitySetting()}); mX(this.api,"setUserAudioQualitySetting",function(w){a.setUserAudioQualitySetting(w)}); mX(this.api,"hasHqaAudioTrack",function(){return a.hasHqaAudioTrack()}); this.QO=wbl();this.updateEnvironmentData()}; Zz=function(q){g.u.call(this,{G:"button",vT:["ytp-button","ytp-autonav-toggle"],Z:{title:q.T("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{data-tooltip-title}}","aria-label":"{{label}}","data-priority":"3","data-tooltip-target-id":"ytp-autonav-toggle-button"},K:[{G:"div",N:"ytp-autonav-toggle-button-container",K:[{G:"div",N:"ytp-autonav-toggle-button",Z:{"aria-checked":"true"}}]}]});this.j=q;this.U=[];this.V=!1;this.isChecked=!0;q.createClientVe(this.element,this, 113681);this.C(q,"presentingplayerstatechange",this.b8);this.listen("click",this.onClick);this.j.B().T("web_player_autonav_toggle_always_listen")&&XcN(this);Xe(q,this.element,this);this.b8()}; XcN=function(q){q.U.push(q.C(q.j,"videodatachange",q.b8));q.U.push(q.C(q.j,"videoplayerreset",q.b8));q.U.push(q.C(q.j,"onPlaylistUpdate",q.b8));q.U.push(q.C(q.j,"autonavchange",q.wg))}; jkU=function(q){q.isChecked=q.isChecked;q.oW("ytp-autonav-toggle-button").setAttribute("aria-checked",String(q.isChecked));var a=q.isChecked?"Reproducci\u00f3n autom\u00e1tica activada":"Reproducci\u00f3n autom\u00e1tica desactivada";q.j.B().T("player_tooltip_data_title_killswitch")?q.update({title:a,label:a}):q.update({"data-tooltip-title":a,label:a});q.j.Fm()}; oRK=function(q){return q.j.B().T("web_player_autonav_use_server_provided_state")&&Zs(q.UB())}; I6J=function(q){Km.call(this,q);var a=this;this.events=new g.Ee(q);g.p(this,this.events);this.events.C(q,"standardControlsInitialized",function(){var w=new Zz(q);g.p(a,w);q.rB(w,"RIGHT_CONTROLS_LEFT")})}; EI=function(q,a){g.e1.call(this,g.Ns({role:"menuitemcheckbox","aria-checked":"false"}),a,q,{G:"div",N:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; Vf=function(q,a){q.checked=a;q.element.setAttribute("aria-checked",String(q.checked))}; uQU=function(q){var a=!q.B().PQ&&q.getPresentingPlayerType()!==3;return q.isFullscreen()||a}; g.J0=function(q,a,w,G){var k=q.currentTarget;if((w===void 0||!w)&&g.sx(q))return q.preventDefault(),!0;a.pauseVideo();q=k.getAttribute("href");g.fj(q,G,!0);return!1}; g.mE=function(q,a,w){if(sV(a.B())&&a.getPresentingPlayerType()!==2){if(g.sx(w))return a.isFullscreen()&&!a.B().externalFullscreen&&a.toggleFullscreen(),w.preventDefault(),!0}else{var G=g.sx(w);G&&a.pauseVideo();g.fj(q,void 0,!0);G&&(g.HA(q),w.preventDefault())}return!1}; tZN=function(q){q=Qf.includes("es")?q.T("delhi_modern_web_player_icons")?KP():{G:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{G:"path",dG:!0,Z:{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"}}]}:q.T("delhi_modern_web_player_icons")?hAm():{G:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{G:"path",dG:!0,Z:{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"}}]};q.N="ytp-subtitles-button-icon"; return q}; vRj=function(q){return Qf.includes("es")?q?KP():{G:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{G:"path",Z:{d:"M6,14v-4c0-0.55,.45-1,1-1h3c0.55,0,1,.45,1,1v1H9.5v-0.5h-2v3h2V13H11v1c0,.55-0.45,1-1,1H7C6.45,15,6,14.55,6,14z M14,15h3c0.55,0,1-0.45,1-1v-1h-1.5v0.5h-2v-3h2V11H18v-1c0-0.55-0.45-1-1-1h-3c-0.55,0-1,.45-1,1v4C13,14.55,13.45,15,14,15z M20,4H4v16h16V4 M21,3v18H3V3.01C3,3,3,3,3.01,3H21L21,3z",fill:"white"}}]}:q?{G:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24", width:"24"},K:[{G:"path",Z:{d:"M21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V19L1.01 19.20C1.05 19.66 1.26 20.08 1.58 20.41C1.91 20.73 2.33 20.94 2.79 20.99L3 21H21L21.20 20.98C21.66 20.94 22.08 20.73 22.41 20.41C22.73 20.08 22.94 19.66 22.99 19.20L23 19V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01ZM3 19V5H21V19H3ZM8 11H6C5.73 11 5.48 11.10 5.29 11.29C5.10 11.48 5 11.73 5 12C5 12.26 5.10 12.51 5.29 12.70C5.48 12.89 5.73 13 6 13H8C8.26 13 8.51 12.89 8.70 12.70C8.89 12.51 9 12.26 9 12C9 11.73 8.89 11.48 8.70 11.29C8.51 11.10 8.26 11 8 11ZM18 11H12C11.73 11 11.48 11.10 11.29 11.29C11.10 11.48 11 11.73 11 12C11 12.26 11.10 12.51 11.29 12.70C11.48 12.89 11.73 13 12 13H18C18.26 13 18.51 12.89 18.70 12.70C18.89 12.51 19 12.26 19 12C19 11.73 18.89 11.48 18.70 11.29C18.51 11.10 18.26 11 18 11ZM18 15H16C15.73 15 15.48 15.10 15.29 15.29C15.10 15.48 15 15.73 15 16C15 16.26 15.10 16.51 15.29 16.70C15.48 16.89 15.73 17 16 17H18C18.26 17 18.51 16.89 18.70 16.70C18.89 16.51 19 16.26 19 16C19 15.73 18.89 15.48 18.70 15.29C18.51 15.10 18.26 15 18 15ZM12 15H6C5.73 15 5.48 15.10 5.29 15.29C5.10 15.48 5 15.73 5 16C5 16.26 5.10 16.51 5.29 16.70C5.48 16.89 5.73 17 6 17H12C12.26 17 12.51 16.89 12.70 16.70C12.89 16.51 13 16.26 13 16C13 15.73 12.89 15.48 12.70 15.29C12.51 15.10 12.26 15 12 15Z", fill:"white"}}]}:{G:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{G:"path",Z:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]}}; A0=function(){return{G:"div",N:"ytp-spinner-container",K:[{G:"div",N:"ytp-spinner-rotator",K:[{G:"div",N:"ytp-spinner-left",K:[{G:"div",N:"ytp-spinner-circle"}]},{G:"div",N:"ytp-spinner-right",K:[{G:"div",N:"ytp-spinner-circle"}]}]}]}}; x_=function(q){if(document.createRange){var a=document.createRange();a&&(a.selectNodeContents(q),q=window.getSelection())&&(q.removeAllRanges(),q.addRange(a))}}; rL=function(q){var a=q.T("web_player_use_cinematic_label_2")?"Modo Ambiente":"Iluminaci\u00f3n cinem\u00e1tica";EI.call(this,a,g.Lm.JR);var w=this;this.j=q;this.V=!1;this.U=new g.o1(function(){g.wU(w.element,"ytp-menuitem-highlighted")},0); this.Wq=q.cW();q=q.T("delhi_modern_web_player_icons")?{G:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{G:"path",Z:{d:"M12 .5C11.73 .5 11.48 .60 11.29 .79C11.10 .98 11 1.23 11 1.5V3.5C11 3.76 11.10 4.01 11.29 4.20C11.48 4.39 11.73 4.5 12 4.5C12.26 4.5 12.51 4.39 12.70 4.20C12.89 4.01 13 3.76 13 3.5V1.5C13 1.23 12.89 .98 12.70 .79C12.51 .60 12.26 .5 12 .5ZM3.79 1.29C3.61 1.46 3.51 1.70 3.50 1.94C3.48 2.19 3.56 2.43 3.72 2.63L3.79 2.70L5.29 4.20L5.37 4.27C5.56 4.42 5.80 4.50 6.04 4.49C6.29 4.47 6.52 4.37 6.70 4.20C6.87 4.02 6.97 3.79 6.99 3.54C7.00 3.30 6.92 3.06 6.77 2.86L6.70 2.79L5.20 1.29L5.13 1.22C4.93 1.06 4.69 .98 4.44 1.00C4.20 1.01 3.96 1.11 3.79 1.29ZM18.86 1.22L18.79 1.29L17.29 2.79L17.22 2.86C17.07 3.06 16.99 3.30 17.00 3.54C17.01 3.79 17.12 4.02 17.29 4.20C17.47 4.37 17.70 4.48 17.95 4.49C18.19 4.50 18.43 4.42 18.63 4.27L18.70 4.20L20.20 2.70L20.27 2.63C20.42 2.43 20.50 2.19 20.49 1.95C20.48 1.70 20.37 1.47 20.20 1.29C20.02 1.12 19.79 1.01 19.54 1.00C19.30 .99 19.06 1.07 18.86 1.22ZM19.20 6.01L19 6H5L4.79 6.01C4.30 6.06 3.84 6.29 3.51 6.65C3.18 7.02 2.99 7.50 3 8V16L3.01 16.20C3.05 16.66 3.26 17.08 3.58 17.41C3.91 17.73 4.33 17.94 4.79 17.99L5 18H19L19.20 17.98C19.66 17.94 20.08 17.73 20.41 17.41C20.73 17.08 20.94 16.66 20.99 16.20L21 16V8C20.99 7.50 20.81 7.02 20.48 6.66C20.15 6.29 19.69 6.06 19.20 6.01ZM5 16V8H19V16H5ZM17.29 19.79C17.11 19.96 17.01 20.20 17.00 20.44C16.98 20.69 17.06 20.93 17.22 21.13L17.29 21.20L18.79 22.70L18.86 22.77C19.06 22.92 19.30 23.00 19.54 22.99C19.79 22.98 20.02 22.87 20.20 22.70C20.37 22.52 20.48 22.29 20.49 22.04C20.50 21.80 20.42 21.56 20.27 21.36L20.20 21.29L18.70 19.79L18.63 19.72C18.43 19.56 18.19 19.48 17.94 19.50C17.70 19.51 17.46 19.61 17.29 19.79ZM5.37 19.72L5.29 19.79L3.79 21.29L3.72 21.36C3.57 21.56 3.49 21.80 3.50 22.04C3.51 22.29 3.62 22.52 3.79 22.70C3.97 22.87 4.20 22.98 4.45 22.99C4.69 23.00 4.93 22.92 5.13 22.77L5.20 22.70L6.70 21.20L6.77 21.13C6.92 20.93 7.00 20.69 6.99 20.45C6.97 20.20 6.87 19.97 6.70 19.79C6.52 19.62 6.29 19.52 6.04 19.50C5.80 19.49 5.56 19.57 5.37 19.72ZM12 19.5C11.73 19.5 11.48 19.60 11.29 19.79C11.10 19.98 11 20.23 11 20.5V22.5C11 22.76 11.10 23.01 11.29 23.20C11.48 23.39 11.73 23.5 12 23.5C12.26 23.5 12.51 23.39 12.70 23.20C12.89 23.01 13 22.76 13 22.5V20.5C13 20.23 12.89 19.98 12.70 19.79C12.51 19.60 12.26 19.5 12 19.5Z", fill:"white"}}]}:{G:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{G:"path",Z:{d:"M21 7v10H3V7h18m1-1H2v12h20V6zM11.5 2v3h1V2h-1zm1 17h-1v3h1v-3zM3.79 3 6 5.21l.71-.71L4.5 2.29 3.79 3zm2.92 16.5L6 18.79 3.79 21l.71.71 2.21-2.21zM19.5 2.29 17.29 4.5l.71.71L20.21 3l-.71-.71zm0 19.42.71-.71L18 18.79l-.71.71 2.21 2.21z",fill:"white"}}]};this.setIcon(q);this.subscribe("select",this.W,this);this.listen(By,this.Y);g.p(this,this.U)}; nm=function(q){Km.call(this,q);var a=this;this.V=!1;q.addEventListener("settingsMenuInitialized",function(){z7y(a)}); q.addEventListener("highlightSettingsMenu",function(w){z7y(a);var G=a.menuItem;w==="menu_item_cinematic_lighting"&&(g.gU(G.element,"ytp-menuitem-highlighted"),g.gU(G.element,"ytp-menuitem-highlight-transition-enabled"),G.U.start())}); mX(q,"updateCinematicSettings",function(w){a.updateCinematicSettings(w)})}; z7y=function(q){q.menuItem||(q.menuItem=new rL(q.api),g.p(q,q.menuItem),q.menuItem.NB(q.V))}; iOc=function(q){Km.call(this,q);var a=this;this.events=new g.Ee(q);g.p(this,this.events);this.events.C(q,"applicationvideodatachange",function(w,G){G=G.clipConfig;w==="dataloaded"&&G&&G.startTimeMs!=null&&G.endTimeMs!=null&&a.api.setLoopRange({startTimeMs:Math.floor(Number(G.startTimeMs)),endTimeMs:Math.floor(Number(G.endTimeMs)),postId:G.postId,type:"clips"})})}; Ms=function(q){Km.call(this,q);this.events=new g.Ee(q);g.p(this,this.events);mX(q,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));mX(q,"setCreatorEndscreenHideButton",this.V.bind(this))}; h0=function(q,a,w,G){EI.call(this,"Volumen estable",g.Lm.Sp);g.gU(this.element,"ytp-drc-menu-item");this.Wq=q.cW();this.W=a;this.V=w;this.hasDrcAudioTrack=G;q.addEventListener("videodatachange",this.U.bind(this));q.T("mta_drc_mutual_exclusion_removal")&&this.C(q,"onPlaybackAudioChange",this.U);a=this.V()===1&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());q=q.T("delhi_modern_web_player_icons")?{G:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{G:"path",Z:{d:"M12 .99C5.92 .99 1 5.92 1 11.99C1 18.07 5.92 22.99 12 22.99C18.07 22.99 23 18.07 23 11.99C23 5.92 18.07 .99 12 .99ZM12 2.99C14.38 2.99 16.67 3.94 18.36 5.63C20.05 7.32 21 9.61 21 11.99C21 14.38 20.05 16.67 18.36 18.36C16.67 20.05 14.38 20.99 12 20.99C9.61 20.99 7.32 20.05 5.63 18.36C3.94 16.67 3 14.38 3 11.99C3 9.61 3.94 7.32 5.63 5.63C7.32 3.94 9.61 2.99 12 2.99ZM14 6.00C13.73 6.00 13.48 6.10 13.29 6.29C13.10 6.48 13 6.73 13 7.00V17.00C13 17.26 13.10 17.52 13.29 17.70C13.48 17.89 13.73 18.00 14 18.00C14.26 18.00 14.51 17.89 14.70 17.70C14.89 17.52 15 17.26 15 17.00V7.00C15 6.73 14.89 6.48 14.70 6.29C14.51 6.10 14.26 6.00 14 6.00ZM10 8.00C9.73 8.00 9.48 8.10 9.29 8.29C9.10 8.48 9 8.73 9 9.00V15.00C9 15.26 9.10 15.52 9.29 15.70C9.48 15.89 9.73 16.00 10 16.00C10.26 16.00 10.51 15.89 10.70 15.70C10.89 15.52 11 15.26 11 15.00V9.00C11 8.73 10.89 8.48 10.70 8.29C10.51 8.10 10.26 8.00 10 8.00ZM18 9.00C17.73 9.00 17.48 9.10 17.29 9.29C17.10 9.48 17 9.73 17 10.00V14.00C17 14.26 17.10 14.52 17.29 14.70C17.48 14.89 17.73 15.00 18 15.00C18.26 15.00 18.51 14.89 18.70 14.70C18.89 14.52 19 14.26 19 14.00V10.00C19 9.73 18.89 9.48 18.70 9.29C18.51 9.10 18.26 9.00 18 9.00ZM6 10.00C5.73 10.00 5.48 10.10 5.29 10.29C5.10 10.48 5 10.73 5 11.00V13.00C5 13.26 5.10 13.52 5.29 13.70C5.48 13.89 5.73 14.00 6 14.00C6.26 14.00 6.51 13.89 6.70 13.70C6.89 13.52 7 13.26 7 13.00V11.00C7 10.73 6.89 10.48 6.70 10.29C6.51 10.10 6.26 10.00 6 10.00Z", fill:"white"}}]}:{G:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{G:"path",Z:{d:"M7 13H5v-2h2v2zm3-4H8v6h2V9zm3-3h-2v12h2V6zm3 2h-2v8h2V8zm3 2h-2v4h2v-4zm-7-7c-4.96 0-9 4.04-9 9s4.04 9 9 9 9-4.04 9-9-4.04-9-9-9m0-1c5.52 0 10 4.48 10 10s-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2z",fill:"white"}}]};this.setIcon(q);this.subscribe("select",this.Y,this);Vf(this,a);this.Wq.Qa(this)}; S1=function(q){Km.call(this,q);var a=this;this.events=new g.Ee(q);g.p(this,this.events);q.T("html5_show_drc_toggle")&&q.addEventListener("settingsMenuInitialized",function(){a.menuItem||(a.menuItem=new h0(a.api,a.setDrcUserPreference.bind(a),a.getDrcUserPreference.bind(a),a.U.bind(a)),g.p(a,a.menuItem))}); mX(this.api,"setDrcUserPreference",function(G){a.setDrcUserPreference(G)}); mX(this.api,"getDrcUserPreference",function(){return a.getDrcUserPreference()}); mX(this.api,"hasDrcAudioTrack",function(){return a.U()}); var w;this.V=(w=g.xt("yt-player-drc-pref"))!=null?w:1;this.updateEnvironmentData()}; fm=function(q){Km.call(this,q);var a=this;this.V={};this.events=new g.Ee(q);g.p(this,this.events);this.events.C(q,"videodatachange",function(){a.onVideoDataChange()}); this.events.C(q,g.oM("embargo"),function(w){a.api.nF(!0);var G,k=(G=a.V[w.id])!=null?G:[];G=g.V(k);for(k=G.next();!k.done;k=G.next()){var b=k.value;a.api.hideControls();a.api.q_("auth",2,"This video isn't available in your current playback area",YG({embargoed:1,id:w.id,idx:w.U,start:w.start}));k=void 0;(b=(k=b.embargo)==null?void 0:k.onTrigger)&&a.api.zl("innertubeCommand",b)}})}; Wwc=function(q,a){var w;return(w=a.onEnter)==null?void 0:w.some(q.U)}; DSm=function(q,a){a=g.V(a);for(var w=a.next();!w.done;w=a.next()){w=w.value;var G=void 0,k=Number((G=w.playbackPosition)==null?void 0:G.utcTimeMillis)/1E3,b=void 0;G=k+Number((b=w.duration)==null?void 0:b.seconds);b="embargo_"+k;q.api.addUtcCueRange(b,k,G,"embargo",!1);w.onEnter&&(q.V[b]=w.onEnter.filter(q.U))}}; Hy=function(q){Km.call(this,q);var a=this;this.V=[];this.events=new g.Ee(q);g.p(this,this.events);mX(q,"addEmbedsConversionTrackingParams",function(w){a.addEmbedsConversionTrackingParams(w)}); this.events.C(q,"veClickLogged",function(w){a.api.hasVe(w)&&(w=w.visualElement.getAsJspb(),w=B$(w,2),a.V.push(w))})}; R7y=function(q){Km.call(this,q);mX(q,"isEmbedsShortsMode",function(){return q.isEmbedsShortsMode()})}; y6J=function(q){Km.call(this,q);var a=this;this.events=new g.Ee(q);g.p(this,this.events);this.events.C(q,"initialvideodatacreated",function(w){G1(wq(),16623);a.V=g.$f();var G=q.B().Q0&&!w.nu;if(OT(w)&&G){G1(wq(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(w.getWatchNextResponse()){var k,b=(k=w.getWatchNextResponse())==null?void 0:k.trackingParams;b&&b5(b)}if(w.getPlayerResponse()){var O;(w=(O=w.getPlayerResponse())==null?void 0:O.trackingParams)&&b5(w)}}else G1(wq(), 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),w.getEmbeddedPlayerResponse()&&(O=(b=w.getEmbeddedPlayerResponse())==null?void 0:b.trackingParams)&&b5(O)}); this.events.C(q,"loadvideo",function(){G1(wq(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:a.V})}); this.events.C(q,"cuevideo",function(){G1(wq(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:a.V})}); this.events.C(q,"largeplaybuttonclicked",function(w){G1(wq(),27240,w.visualElement)}); this.events.C(q,"playlistnextbuttonclicked",function(w){G1(wq(),27240,w.visualElement)}); this.events.C(q,"playlistprevbuttonclicked",function(w){G1(wq(),27240,w.visualElement)}); this.events.C(q,"playlistautonextvideo",function(){G1(wq(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; cy=function(q,a){g.c.call(this);var w=this;this.V=null;this.W=a;a=[];for(var G=0;G<=100;G++)a.push(G/100);a={threshold:a,trackVisibility:!0,delay:1E3};(this.U=window.IntersectionObserver?new IntersectionObserver(function(k){k=k[k.length-1];var b=null;typeof k.isVisible==="undefined"?document.visibilityState==="visible"&&k.isIntersecting&&k.intersectionRatio>0?b=k.intersectionRatio:document.visibilityState==="hidden"?b=0:b=null:b=k.isVisible?k.intersectionRatio:0;b!=null&&(b=Math.max(b,0),b=Math.min(b, 1));w.V=b;typeof w.W==="function"&&w.W(w.V)},a):null)&&this.U.observe(q)}; gdK=function(q){Km.call(this,q);var a=this;this.events=new g.Ee(q);g.p(this,this.events);this.events.C(q,"applicationInitialized",function(){qlU(a)})}; qlU=function(q){var a=q.api.getRootNode(),w,G=q.api.getWebPlayerContextConfig().embedsEnableEmc3ds?((w=a.parentElement)==null?void 0:w.parentElement)||a:a;q.V=new cy(G,function(k){k!=null&&(q.api.B().sT=k,q.api.B().m7="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")}); g.p(q,q.V);q.events.C(q.api,"videoStatsPingCreated",function(k){var b=q.V;b=b.V==null?null:Math.round(b.V*100)/100;k.inview=b!=null?b:void 0;b=q.api.getPlayerSize();if(b.height>0&&b.width>0){b=[Math.round(b.width),Math.round(b.height)];var O=g.CA();O>1&&b.push(O);b=b.join(":")}else b=void 0;k.size=b})}; alG=function(q){var a;return((a=((q==null?void 0:q.messageRenderers)||[]).find(function(w){return!!w.timeCounterRenderer}))==null?void 0:a.timeCounterRenderer)||null}; pm=function(q){g.u.call(this,{G:"div",vT:["ytp-player-content","ytp-iv-player-content"],K:[{G:"div",N:"ytp-free-preview-countdown-timer",K:[{G:"span",ue:"{{label}}"},{G:"span",N:"ytp-free-preview-countdown-timer-separator",ue:"\u2022"},{G:"span",ue:"{{duration}}"}]}]});this.api=q;this.V=null;this.W=this.U=0;this.C(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; G1l=function(q,a){q.V||(q.U=a,q.W=(0,g.Zj)(),q.V=new g.jd(function(){wXN(q)},null),wXN(q))}; wXN=function(q){var a=Math,w=a.round,G=Math.min((0,g.Zj)()-q.W,q.U);a=w.call(a,(q.U-G)/1E3);q.updateValue("duration",Wc({seconds:a}));a<=0&&q.V?q.stopTimer():q.V&&q.V.start()}; k1m=function(q){Km.call(this,q);var a=this;this.events=new g.Ee(q);g.p(this,this.events);this.events.C(q,"basechromeinitialized",function(){a.V=new pm(q);g.p(a,a.V);g.DZ(q,a.V.element,4);a.V.hide()})}; UI=function(q){g.u.call(this,{G:"button",vT:["ytp-fullerscreen-edu-button","ytp-button"],K:[{G:"div",vT:["ytp-fullerscreen-edu-text"],ue:"Desliza hacia abajo para ver m\u00e1s detalles"},{G:"div",vT:["ytp-fullerscreen-edu-chevron"],K:[{G:"svg",Z:{height:"100%",viewBox:"0 0 24 24",width:"100%"},K:[{G:"path",Z:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],Z:{"data-priority":"2"}});this.MB=q;this.fade=new g.zs(this,250,void 0,100);this.U=this.V=!1;q.createClientVe(this.element, this,61214);g.p(this,this.fade);this.C(q,"fullscreentoggled",this.NB);this.C(q,"presentingplayerstatechange",this.NB);this.listen("click",this.onClick);this.NB()}; XD=function(q){Km.call(this,q);var a=this;this.events=new g.Ee(q);g.p(this,this.events);mX(this.api,"updateFullerscreenEduButtonSubtleModeState",function(G){a.updateFullerscreenEduButtonSubtleModeState(G)}); mX(this.api,"updateFullerscreenEduButtonVisibility",function(G){a.updateFullerscreenEduButtonVisibility(G)}); var w=q.B();q.T("external_fullscreen_with_edu")&&w.externalFullscreen&&sV(w)&&w.controlsType==="1"&&this.events.C(q,"standardControlsInitialized",function(){a.V=new UI(q);g.p(a,a.V);q.rB(a.V)})}; bxl=function(q){g.u.call(this,{G:"div",N:"ytp-gated-actions-overlay",K:[{G:"div",N:"ytp-gated-actions-overlay-background",K:[{G:"div",N:"ytp-gated-actions-overlay-background-overlay"}]},{G:"button",vT:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],Z:{"aria-label":"Cerrar"},K:[g.Pe()]},{G:"div",N:"ytp-gated-actions-overlay-bar",K:[{G:"div",N:"ytp-gated-actions-overlay-text-container",K:[{G:"div",N:"ytp-gated-actions-overlay-title",ue:"{{title}}"},{G:"div",N:"ytp-gated-actions-overlay-subtitle", ue:"{{subtitle}}"}]},{G:"div",N:"ytp-gated-actions-overlay-button-container"}]}]});var a=this;this.api=q;this.background=this.oW("ytp-gated-actions-overlay-background");this.U=this.oW("ytp-gated-actions-overlay-button-container");this.V=[];this.C(this.oW("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){a.api.zl("onCloseMiniplayer")}); this.hide()}; llc=function(q,a){var w=0;w=0;for(var G={};w k&&(k=e.width,b="url("+e.url+")")}w.background.style.backgroundImage=b;llc(w,G.actionButtons||[]);w.show()}else w.hide()}); g.DZ(this.api,this.V.element,4)}; j1=function(q){Km.call(this,q);var a=this;Ac(this.api,"getSphericalProperties",function(){return a.getSphericalProperties()}); Ac(this.api,"setSphericalProperties",function(){a.setSphericalProperties.apply(a,g.Tf(g.XU.apply(0,arguments)))}); Qk(this.api,"getSphericalProperties",function(){return a.api.getPresentingPlayerType()===2?{}:a.getSphericalProperties()}); Qk(this.api,"setSphericalProperties",function(){var w=g.XU.apply(0,arguments);a.api.getPresentingPlayerType()!==2&&a.setSphericalProperties.apply(a,g.Tf(w))})}; o0=function(q){Km.call(this,q);mX(q,"createClientVe",this.createClientVe.bind(this));mX(q,"createServerVe",this.createServerVe.bind(this));mX(q,"destroyVe",this.destroyVe.bind(this));mX(q,"hasVe",this.hasVe.bind(this));mX(q,"logClick",this.logClick.bind(this));mX(q,"logVisibility",this.logVisibility.bind(this));mX(q,"setTrackingParams",this.setTrackingParams.bind(this))}; Nq_=function(q){this.V={};this.videoData=q;var a;this.U=((a=q.W)==null?void 0:a.U)||[];q=g.V(I0);for(a=q.next();!a.done;a=q.next())a=a.value,this.V[a]=In(this.U,uk[a].C9);this.YV()}; Ylj=function(q,a){var w=a.getAudioTrack();return w.id!=="und"?g.L$(q,function(G){var k;return((k=G.Pq)==null?void 0:k.name)===w.getLanguageInfo().name}):q}; KfN=function(q,a){return a.getUserAudio51Preference()?g.L$(q,P5G):q}; TqJ=function(q){return g.xt("yt-player-drc-pref")?g.L$(q,dqK):q}; dqK=function(q){var a;return((a=q.audio)==null?void 0:a.V)===!0}; P5G=function(q){return u4(q)||t8(q)}; $qy=function(q){return q.Pq!==void 0}; t0=function(q,a,w,G){function k(O){var e=!(O.status!==204&&O.status!==200&&!O.response),N;O={succ:""+ +e,rc:O.status,lb:((N=O.response)==null?void 0:N.byteLength)||0,rt:((0,g.Zj)()-b).toFixed(),shost:g.Nr(q),trigger:a};sgj(O,q);w&&w(O);G&&!e&&G(new g.PY("pathprobe.net",O))} var b=(0,g.Zj)();g.Cy(q,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:k,onTimeout:k})}; sgj=function(q,a){var w;((w=window.performance)==null?0:w.getEntriesByName)&&(a=performance.getEntriesByName(a))&&a.length&&(a=a[0],q.pedns=(a.domainLookupEnd-a.startTime).toFixed(),q.pecon=(a.connectEnd-a.domainLookupEnd).toFixed(),q.perqs=(a.requestStart-a.connectEnd).toFixed(),Ff_&&(q.perqsa=a.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; C5c=function(q){Ff_=q}; vy=function(q,a){this.f0=q;this.policy=a;this.playbackRate=1}; ZxV=function(q,a){var w=Math.min(2.5,oW(q.f0));q=zd(q);return a-w*q}; ik=function(q,a,w,G,k){k=k===void 0?!1:k;if(q.policy.kx)return Math.ceil(q.policy.kx*a);q.policy.d2&&(G=Math.abs(G));G/=q.playbackRate;var b=1/tj(q.f0);w=Math.max(.9*(G-3),oW(q.f0)+q.f0.U.V*b)/b*.8/(a+w);w=Math.min(w,G);q.policy.xE>0&&k&&(w=Math.max(w,q.policy.xE));return Edm(q,w,a)}; Edm=function(q,a,w){return Math.ceil(Math.max(Math.max(q.policy.zj,q.policy.m4*w),Math.min(Math.min(q.policy.Tl,31*w),Math.ceil(a*w))))||q.policy.zj}; Vif=function(q,a,w){w=ik(q,a.V.info.J2,w.V.info.J2,0);var G=oW(q.f0)+w/tj(q.f0);return Math.max(G,G+q.policy.oL-w/a.V.info.J2)}; zd=function(q){return tj(q.f0,!q.policy.CF,q.policy.bV)}; Wy=function(q){return zd(q)/q.playbackRate}; Dz=function(q,a,w){var G=q.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],k=q.policy.playbackStartPolicy.startMinReadaheadPolicy||[];q=Infinity;a=g.V(a&&G.length>0?G:k);for(G=a.next();!G.done;G=a.next())G=G.value,k=G.minReadaheadMs||0,w<(G.minBandwidthBytesPerSec||0)||q>k&&(q=k);return q0&&(this.U=w.v1)}; Qgm=function(q,a,w,G,k){if(!G.info.Y){if(w.length===0)w.push(G);else{var b;(q=(b=w.pop())==null?void 0:g.mo(b,G))?w.push(q):w.push(G)}return k}var O;(w=(O=w.pop())==null?void 0:g.mo(O,G))||(w=G);if(w.info.U)return q.logger&&q.logger({incompleteSegment:w.info.c5()}),k;G=q.Db(w);k=G.Dh;G={clipId:G.clipId,formatId:G.formatId,startTimeMs:G.startTimeMs,durationMs:G.o9,Fa:k,IN:k};k=JvJ(a,G.startTimeMs);if(b=w=k>=0?a[k]:null){b=G;var e=k;O=w.startTimeMs+w.durationMs;var N=b.startTimeMs+b.durationMs;if(b.startTimeMs- O>q.U)b=!1;else if(mql(q,w.formatId,b.formatId))w.durationMs=Math.max(O,N)-w.startTimeMs,w.IN=Math.max(w.IN,b.IN),b=!0;else if(Math.abs(w.startTimeMs-b.startTimeMs)<=q.U)if(w.durationMs>b.durationMs+q.U){var Y=w.formatId,P=w.Fa;e=w.IN;w.formatId=b.formatId;w.durationMs=b.durationMs;w.Fa=b.Fa;w.IN=b.IN;b.formatId=Y;b.startTimeMs=N;b.durationMs=O-N;b.Fa=P;b.IN=e;b=!1}else w.formatId=b.formatId,b=!0;else O>b.startTimeMs&&(O>N&&(a.splice(e+1,0,{formatId:w.formatId,startTimeMs:N,durationMs:O-N,Fa:b.IN+ 1,IN:w.IN}),q.logger&&q.logger({splitOldStart:(Y=w.startTimeMs)==null?void 0:Y.toFixed(3),splitOldEnd:O==null?void 0:O.toFixed(3),splitNewStart:(P=b.startTimeMs)==null?void 0:P.toFixed(3),splitNewEnd:N==null?void 0:N.toFixed(3)})),w.durationMs=b.startTimeMs-w.startTimeMs,w.IN=b.Fa-1),b=!1}b?G=w:(k+=1,a.splice(k,0,G));Y=0;for(P=k+1;P=N+w.U?w=!0:e+w.U=0?q:-q-2}; AvV=function(q,a){if(q.M1){var w=q.M1.sB();if(w.length!==0){if(q.W&&a){var G=q.W,k=G.info.D;!kj(w,k)&&G.info.S>0&&(0,g.Zj)()-q.L<5E3&&(q.logger&&q.logger({dend:G.info.c5()}),w=Sxm(w,k,k+.01))}q.policy.Uk&&q.logger&&q.logger({cbri:""+q.V});G=[];for(var b=k=0;k=O){var P=Object.assign({},q.uK[b]),K=q.X9.W.get(vG(q.uK[b].formatId)),d=Math.max(N,O);O=K.index.uT(d+q.U/ 1E3);N=K.index.getStartTime(O);var T=O+ +(Math.abs(N-d)>q.U/1E3);d=T+q.Y;T=K.index.getStartTime(T)*1E3;b!==q.V||a?(P.Fa=d,P.startTimeMs=T):(q.logger&&q.logger({pEvict:"1",og:P.startTimeMs,adj:N*1E3}),P.Fa=O+q.Y,P.startTimeMs=N*1E3);O=void 0;N=((O=q.W)==null?void 0:O.info.duration)||11;b===q.V&&eq.U/1E3);O=N+q.Y;K=K.index.BR(N)*1E3;P.IN=O;P.durationMs=K-P.startTimeMs;P.Fa<=P.IN&&G.push(P)}Y=0&&w7(q.audioTrack,q.targetTime)>=0&&b?((q.videoTrack.D||q.audioTrack.D)&&q.loader.d8("iterativeSeeking",{status:"done",count:q.seekCount}),q.videoTrack.D=!1,q.audioTrack.D=!1):G&&g.VP(function(){if(q.V||!q.policy.uF)bW(q);else{var O=a.startTime,e=a.duration;if(!q.policy.D){var N=w?q.videoTrack.D:q.audioTrack.D,Y=q.videoTrack.L!==-1&&q.audioTrack.L!==-1,P=q.targetTime>=O&&q.targetTime432E3&&HWK(q.X9);q.U&&(k=q.U,q.U=0);g.VP(function(){q.policy.D||OU(q,k,102)}); q.loader.d8("initManifestlessSync",{st:k,ost:k+q.loader.g$(),a:q.audioTrack.L,v:q.videoTrack.L});q.W&&(q.W.resolve(k+.1),q.W=null);q.policy.D&&OU(q,k,102)}}}; Nd=function(q,a){var w=this;this.Yl=q;this.requestNumber=++Uqm;this.V=this.now();this.S=this.J=NaN;this.X=this.V;this.W=this.N1=this.D=0;this.L=this.V;this.BT=this.UK=this.EK=this.OQ=this.Ai=this.jt=this.U=this.Y=0;this.F9=this.isActive=!1;this.yN=this.IW=0;this.qh={ox9:function(){return w.i9}}; this.f0=a.f0;this.snapshot=LTf(this.f0);this.policy=this.f0.U;this.wd=!!a.wd;this.XT=a.XT;this.eR=a.eR||0;this.jZ=a.jZ||0;a.XA&&(this.f7=new hj);var G;this.i9=(G=a.i9)!=null?G:!1;this.wd||QXl(this.f0)}; XXU=function(q){q.EK=Math.max(q.EK,q.D-q.Ai);q.UK=Math.max(q.UK,q.X-q.OQ);q.jt=0}; YK=function(q,a,w){A9l(q.f0,a);q.f7&&(q.f7.add(Math.ceil(a)-Math.ceil(q.X)),q.f7.add(Math.max(0,Math.ceil(w/1024)-Math.ceil(q.D/1024))));var G=a-q.X,k=w-q.D;q.N1=k;q.BT=Math.max(q.BT,k/(G+.01)*1E3);q.X=a;q.D=w;q.jt&&w>q.jt&&XXU(q)}; PF=function(q,a){q.url=a;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; KN=function(q,a){Nd.call(this,q,a);this.OA=this.w$=!1;this.L7=this.y7=Infinity;this.Tl=NaN;this.uF=!1;this.h2=NaN;this.Ck=this.le=this.St=0;this.Dc=a.Dc||1;this.Pk=a.Pk||this.Dc;this.Ek=a.Ek;this.Dh=a.Dh;this.qe=a.qe;jgU(this);this.cL(this.V);this.VN=(this.h2-this.V)/1E3}; odJ=function(q){var a=q.le||q.St;return a?q.snapshot.delay+Math.min(q.jZ,(q.S-q.J)/1E3)+a:q.VN}; d7=function(q,a,w){if(!q.wd){a=Math.max(a,.01);var G=q.eR?Math.max(a,w/q.eR):a,k=q.f0.U.W;k&&(G=a,q.eR&&(G=Math.max(a,w/q.eR*k)));U1(q.f0,a,w,G)}}; IlV=function(q){return(q.L-q.V)/1E3}; jgU=function(q){q.Tl=q.V+q.snapshot.delay*1E3;q.uF=!1}; T3=function(q,a){if(q.Ek&&q.Dh!==void 0&&q.qe!==void 0){var w=Math,G=w.min,k=q.y7;var b=q.Ek;var O=q.V;if(uqK(b,q.Dh))b=a;else{var e=0;b.Oj&&(e=.2);b=O+(b.jZ+e)*1E3}q.y7=G.call(w,k,b);w=Math;G=w.min;k=q.L7;b=q.Ek;O=q.V;e=til(b,q.Dh,q.qe);e!==2&&(a=e?a:O+b.jZ*1E3,b.Oj&&(a+=b.jZ*1E3));q.L7=G.call(w,k,a);q.y7<=q.V?jgU(q):(q.Tl=q.y7,q.uF=!0)}}; vdf=function(q,a){if(a+1<=q.totalLength){var w=bH(q,a);w=w<128?1:w<192?2:w<224?3:w<240?4:5}else w=0;if(w<1||!(a+w<=q.totalLength))return[-1,a];if(w===1)q=bH(q,a++);else if(w===2)w=bH(q,a++),q=bH(q,a++),q=(w&63)+64*q;else if(w===3){w=bH(q,a++);var G=bH(q,a++);q=bH(q,a++);q=(w&31)+32*(G+256*q)}else if(w===4){w=bH(q,a++);G=bH(q,a++);var k=bH(q,a++);q=bH(q,a++);q=(w&15)+16*(G+256*(k+256*q))}else w=a+1,q.focus(w),wd(q,w,4)?q=caK(q).getUint32(w-q.W,!0):(G=bH(q,w+2)+256*bH(q,w+3),q=bH(q,w)+256*(bH(q,w+1)+ 256*G)),a+=5;return[q,a]}; $K=function(q){this.Yl=q;this.V=new yI}; sU=function(q,a){this.info=q;this.callback=a;this.state=1;this.It=this.nH=!1;this.ut=null}; zZV=function(q){return g.Fx(q.info.sK,function(a){return a.type===3})}; FW=function(q,a,w,G){var k=this;G=G===void 0?{}:G;this.policy=a;this.Yl=w;this.status=0;this.V=new yI;this.U=0;this.t2=this.Y=this.W=!1;this.xhr=new XMLHttpRequest;this.xhr.open(G.method||"GET",q);if(G.headers)for(q=G.headers,a=g.V(Object.keys(q)),w=a.next();!w.done;w=a.next())w=w.value,this.xhr.setRequestHeader(w,q[w]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return k.z5()}; this.xhr.onload=function(){return k.onDone()}; this.xhr.onerror=function(){return k.onError()}; this.xhr.fetch(function(b){k.V.append(b);k.U+=b.length;b=(0,g.Zj)();k.Yl.rp(b,k.U)},function(){},G.body||null)}; ixc=function(q,a){this.U=(new TextEncoder).encode(q);this.V=(new TextEncoder).encode(a)}; oZU=function(q,a){var w;return g.h(function(G){if(!a)return G.return(a);w=new g.bP(q.U);return G.return(w.encrypt(a,q.V))})}; zRl=function(q,a){var w;return g.h(function(G){if(G.U==1){if(!a)return G.return(a);w=new g.bP(q.U);return g.n(G,w.decrypt(a,q.V),2)}return G.return(G.V)})}; Dq_=function(q,a){var w=this;this.V=q;this.Yl=a;this.loaded=this.status=0;this.error="";q=WG(this.V.get("range")||"");if(!q)throw Error("bad range");this.range=q;this.U=new yI;Wfl(this).then(function(){w.Yl.Vx()},function(G){w.error=""+G||"unknown_err"; w.Yl.Vx()})}; Wfl=function(q){var a,w,G,k,b,O,e,N,Y,P,K,d,T,F,J;return g.h(function(Q){if(Q.U==1){q.status=200;a=q.V.get("docid");w=BS(q.V.get("fmtid")||"");G=q.V.get("lmt")||"0";k=+(q.V.get("csz")||0);if(!a||!w||!k)throw Error("Invalid local URL");q.V.get("ck")&&q.V.get("civ")&&(b=new ixc(q.V.get("ck"),q.V.get("civ")));O=q.range;e=Math.floor(O.start/k);N=Math.floor(O.end/k);Y=e}if(Q.U!=5)return Y<=N?g.n(Q,iry(a,w,G,Y,b),5):Q.Gl(0);P=Q.V;if(P===void 0)throw Error("invariant: data is undefined");K=Y*k;d=(Y+1)*k; T=Math.max(0,O.start-K);F=Math.min(O.end+1,d)-(T+K);J=new Uint8Array(P.buffer,T,F);q.U.append(J);q.loaded+=F;q.loaded=400?(q.lastError="net.badstatus",!0):(k===void 0?0:k)?(q.lastError="ump.spsrejectfailure",!0):w||G!==void 0&&G?!1:(q.lastError=a===204?"net.nocontent":"net.connect",!0)}; xK=function(q,a){if(q.policy.zW)return!1;var w=a.getResponseHeader("content-type"),G=a.Y$();q=!G||G<=q.policy.Ol;return(!a.CP()||!w||w.indexOf("text/plain")!==-1)&&q}; b0G=function(q,a){var w="";a=a.WE();a.totalLength<=q.policy.Ol&&(w=khl(q,Gp(a)));return w}; khl=function(q,a){var w=lH(a);return HT(w)?(q.logger.debug(function(){return"Redirecting to "+w}),w):""}; J5=function(q){return Xs(q.W,vX(q.Yw.hL))}; O0m=function(q){var a=q.timing.Ws();a.shost=vX(q.Yw.hL);return a}; lmy=function(q,a){return(q==null?void 0:q.maxWidth)>(a==null?void 0:a.maxWidth)||(q==null?void 0:q.maxHeight)>(a==null?void 0:a.maxHeight)}; etl=function(q,a){for(var w=g.V(a.keys()),G=w.next();!G.done;G=w.next())if(G=a.get(G.value),G.length!==0){g.vR(G,function(e,N){return N.maxFramerate-e.maxFramerate}); for(var k=[G[0]],b=0,O=1;Oq.V||w.push(G)}return w}; LN=function(q,a,w){var G=Ppc[q]||[];w.T("html5_shorts_onesie_mismatched_fix")&&(G=KSc[q]||[]);a.push.apply(a,g.Tf(G));w.T("html5_early_media_for_drm")&&a.push.apply(a,g.Tf(dKf[q]||[]))}; Z0j=function(q,a){var w=g.nc(q),G=q.B(),k=G.D;G=G.T("html5_shorts_onesie_mismatched_fix");var b=q.tK();if(G){if(!k.U){if(b&&BF)return BF;if(r7)return r7}}else if(r7&&!k.U)return r7;var O=[],e=[],N={},Y=nN.concat(T4l);G&&(Y=nN.concat($Kl));q.T("html5_early_media_for_drm")&&(Y=Y.concat(srl),q.T("allow_vp9_1080p_mq_enc")&&Y.push(FSl));var P=[].concat(g.Tf(CpN));q.T("html5_iamf_audio_onesie_fmt")&&P.push(["773"]);Y=g.V(Y);for(var K=Y.next();!K.done;K=Y.next()){var d=!1;K=g.V(K.value);for(var T=K.next();!T.done;T= K.next()){T=T.value;var F=nA(T,b&&G);if(F&&F.video&&!(IK(F)&&!w.jt&&F.video.qualityOrdinal>w.yp)){var J=g.Wo(q.B().experiments,"html5_drm_byterate_soft_cap");J>0&&MgN(F)&&F.J2>J||(d?(O.push(T),LN(T,O,q)):(F=HX(w,F,k),F===!0?(d=!0,O.push(T),LN(T,O,q)):N[T]=F))}}}P=g.V(P);for(Y=P.next();!Y.done;Y=P.next())for(Y=g.V(Y.value),d=Y.next();!d.done;d=Y.next())if(d=d.value,(K=qiG(d))&&K.audio&&(q.T("html5_onesie_51_audio")||!u4(K)&&!t8(K)))if(K=HX(w,K,k),K===!0){e.push(d);LN(d,e,q);break}else N[d]=K;if(!q.T("html5_enable_audio_quality_setting"))for(q= g.V(["141","774"]),P=q.next();!P.done;P=q.next())P=P.value,e.includes(P)&&(g.mU(e,P),N[P]="blkhqa");w.U&&a("orfmts",N);if(G)return k.U&&(k.U=!1,BF=r7=void 0),b?BF={video:O,audio:e}:r7={video:O,audio:e};r7={video:O,audio:e};k.U=!1;return r7}; g.Jec=function(q,a,w){var G=w.D,k=[],b=[],O=w.T("html5_shorts_onesie_mismatched_fix");q=q.tK();var e=nN.concat(T4l);O&&(e=nN.concat($Kl));w.T("html5_early_media_for_drm")&&(e=e.concat(srl),w.T("allow_vp9_1080p_mq_enc")&&e.push(FSl));var N=[].concat(g.Tf(CpN));w.T("html5_iamf_audio_onesie_fmt")&&N.push(["773"]);e=g.V(e);for(var Y=e.next();!Y.done;Y=e.next()){Y=g.V(Y.value);for(var P=Y.next();!P.done;P=Y.next()){P=P.value;var K=nA(P,q&&O);if(K&&K.video){var d=g.Wo(w.experiments,"html5_drm_byterate_soft_cap"); if(!(d>0&&MgN(K)&&K.J2>d)&&HX(a,K,G)===!0){k.push({videoCodec:E9f[pf[P]],maxWidth:K.video.width,maxHeight:K.video.height,maxFramerate:K.video.fps});break}}}}O=g.V(N);for(q=O.next();!q.done;q=O.next())for(q=g.V(q.value),N=q.next();!N.done;N=q.next())if(N=N.value,(e=qiG(N))&&e.audio&&(w.T("html5_onesie_51_audio")||!u4(e)&&!t8(e))&&HX(a,e,G)===!0){b.push({audioCodec:Vly[pf[N]],numChannels:e.audio.numChannels});break}return{videoFormatCapabilities:k,audioFormatCapabilities:b}}; AeK=function(q){var a,w={},G=q.aW,k=q.cT,b=G.getVideoData(),O=T1(0),e=G.getVisibilityState(),N;if((N=q.S4)==null?0:N.pF)w.QO=k.QO;O&&(w.zL=O,w.lastManualDirection=Wsl(),O=IXc()||0,O>0&&(O=(k.T("html5_use_date_now_for_local_storage")?Date.now():(0,g.Zj)())-O,k.T("html5_use_date_now_for_local_storage")?O>0&&(w.timeSinceLastManualFormatSelectionMs=O):w.timeSinceLastManualFormatSelectionMs=O));O=k.T("html5_use_streamer_bandwidth_for_low_latency_live")&&b.isLowLatencyLiveStream;if(k.schedule.F9&&!O){var Y; O=k.T("html5_disable_bandwidth_cofactors_for_sabr_live")?!((Y=q.S4)==null||!Y.CF):!1;w.vp=tj(k.schedule,!O)}O=g.SG.medium;N=Math.floor(O*16/9);(Y=b.tK())||(b.V&&b.W&&b.W.videoInfos.length!==0?(Y=b.W.videoInfos[0],Y=!!Y.video&&Y.video.width0?{authorizedFormats:q.authorizedFormats}:{authorizedFormats:a};q.sabrLicenseConstraint&&(w.dI.sabrLicenseConstraint=q.sabrLicenseConstraint);if(k.T("html5_onesie_media_capabilities")||k.T("html5_enable_server_format_filter"))w.Vy= 3;k.T("html5_onesie_audio_only_playback")&&xQ(b)&&(w.Vy=1);var B;((B=q.S4)==null?0:B.RA)&&q.l4&&(w.Vy=w.Vy===void 0?7:w.Vy|4);B=b.JS?b.JS:g.nc(b);k.T("html5_onesie_media_capabilities")&&(w.mediaCapabilities=g.Jec(b,B,k));var L;if((L=q.S4)==null?0:Md(L)){K=k.D;L=[];a=[];d=new Map;T=Array.from(K.V.values());T=g.V(T);for(F=T.next();!F.done;F=T.next())J=F.value,J.t$?a.push({audioCodec:Vly[J.K7],numChannels:J.numChannels,spatialCapabilityBitmask:mKN[J.K7]}):(Q=E9f[J.K7],F={videoCodec:Q,maxWidth:J.maxWidth|| 0,maxHeight:J.maxHeight||0,maxFramerate:J.maxFramerate||0,is10BitSupported:J.IB||!1},J.maxBitrateBps&&(F.maxBitrateBps=J.maxBitrateBps,e=nA(J.itag),Y=void 0,((Y=e)==null?0:Y.video)&&HX(B,e,K)===!0&&(e=e.J2*8,e>F.maxBitrateBps&&(F.maxBitrateBps=e))),J=Q+"_"+J.IB,Q=d.get(J)||[],Q.push(F),d.set(J,Q));L=etl(L,d);K={};k.T("html5_ssff_denylist_opus_low")&&(K={itagDenylist:[249,350]});w.mediaCapabilities={videoFormatCapabilities:L,audioFormatCapabilities:a,hdrModeBitmask:3,perPlaybackAttributes:K}}var M; if((M=q.S4)==null?0:M.V){w.aE=B.aE;var H;w.yp=(H=q.S4)==null?void 0:H.yp}k.XN&&(w.yZ=k.XN);w.Jl=q.R2;w.tf=q.tf;w.Ex=q.Ex;w.Uz=q.Uz;q.KL&&(w.hP7=(0,g.Zj)()-q.KL);q.isPrefetch&&k.T("html5_report_prefetch_requests")&&(w.isPrefetch=!0);FI||(w.DBB=!0);M=oW(k.schedule)*1E3;M>0&&(w.SV=M);var X;((X=q.S4)==null?0:X.k6)&&q.He&&q.He0?D:k.schedule.interruptions[0]||0;var z;if((z=q.S4)==null?0:z.w$)w.Vv=q.Vv;k.h2&&(w.audioTrackId=k.h2);NT(b)&&!w.audioTrackId&&(k.T("html5_fill_default_mosaic_audio_track_id")||(q=WrU(b),w.audioTrackId=q),b==null||b.d8("misstrkchg",{"default":w.audioTrackId}));if(b=xlN())w.detailedNetworkType=QrU[b]||QrU.other;k.T("html5_enable_voice_boost")&&(w.RaQ=k.Y2);return w}; h5=function(q,a,w,G,k,b,O){var e={};a&&(e.r5=a);if(!q)return e;e.playbackCookie=w==null?void 0:w.playbackCookie;k&&(e.Hg=k);e.z7=[];e.Fi=[];if(O==null?0:O.size)for(a=g.V(O.values()),w=a.next();!w.done;w=a.next())e.Fi.push(w.value);if(q.sabrContextUpdates.size>0)for(a=g.V(q.sabrContextUpdates.values()),w=a.next();!w.done;w=a.next())xKc(e,w.value,G);rM(q)&&b&&xKc(e,b,G);q.Wr&&(e.Yv7=q.Wr);G=q.B().V;e.clientInfo={clientName:LSc[G.c.toUpperCase()]||0};G.cbrand&&(e.clientInfo.deviceMake=G.cbrand);G.cmodel&& (e.clientInfo.deviceModel=G.cmodel);G.cver&&(e.clientInfo.clientVersion=G.cver);G.cos&&(e.clientInfo.osName=G.cos);G.cosver&&(e.clientInfo.osVersion=G.cosver);G=q.B();G.T("html5_sabr_enable_server_xtag_selection")&&G.aA&&(e.clientInfo.hl=G.aA);q.f6&&(e.f6=q.f6);return e}; xKc=function(q,a,w){var G=a.type||0;(w==null?0:w.has(G))?q.Fi.push(a):q.z7.push(G)}; g7=function(q,a,w,G,k,b){var O=b===void 0?{}:b;var e=O.QP===void 0?[]:O.QP;var N=O.iq===void 0?!1:O.iq;var Y=O.Ke===void 0?0:O.Ke;var P=O.poToken===void 0?"":O.poToken;var K=O.b7===void 0?void 0:O.b7;var d=O.Lc===void 0?"":O.Lc;var T=O.EP===void 0?0:O.EP;var F=O.D9===void 0?new Uint8Array(0):O.D9;var J=O.L9===void 0?!1:O.L9;b=O.YX===void 0?0:O.YX;O=O.r5===void 0?void 0:O.r5;sU.call(this,a,k);var Q=this;this.policy=q;this.logger=new g.Zw("dash/request");this.y8=this.eZ=0;this.Se=!1;this.Dm=this.rd= null;this.Yo=!1;this.D9=this.EP=null;this.NJ=this.FG=!1;this.Il=null;this.YX=this.yc=0;this.ZV=!1;this.qh={gG:function(L){Q.gG(L)}, kfK:function(){return Q.ut}, RE2:function(L){Q.ut=L}, HU2:function(L){Q.eZ=L}, jxQ:function(L){Q.t8.lastError=L}, Hu:function(){return Q.xhr}}; this.timing=new KN(this,w);this.iq=N;this.EP=T;this.D9=F;this.Yw=g.eS(this.info,this.policy,G);this.Yw.set("rn",this.YE().toString());this.Yw.set("rbuf",(Y*1E3).toFixed().toString());this.iq&&this.Yw.set("smb","1");this.policy.u9&&P&&this.Yw.set("pot",P);d&&this.Yw.set("bbs",d);this.policy.useUmp&&!z1(this.Yw.hL)&&(this.SR=new $K(this),this.Yw.set("ump","1"),this.Yw.set("srfvp","1"));if(q=this.policy.sE?this.policy.lP&&!isNaN(this.info.qe)&&this.info.qe>this.policy.aL?!1:!0:!1)a=null,this.policy.hf&& this.policy.OT?a=[1]:J&&(a=[]),a!=null&&(this.policy.tC&&a.push(2),this.Yw.set("defsel",a.join(",")));this.t8=new VB(this,this.policy,this.Yw,this.info.GZ,this.timing,this.logger,G,K);this.QP=e||null;this.It=B4y(this);g9m(this.t8);G=void 0;if(this.policy.qJ||this.SR||this.policy.EK)G={method:"POST"},e=(0,g.SF)([120,0]),K={},this.policy.Us&&O&&(O=h5(void 0,O),K.RF=O),this.policy.oy&&this.D9&&(K.videoPlaybackUstreamerConfig=this.D9),this.policy.EK&&(O=this.info.Y)&&Object.assign(K,O),Object.keys(K).length> 0?G.body=g.oe(K,g.rl):G.body=e;if(this.EP&&this.D9){this.Yw.set("iwts","1");G={method:"POST"};O={Uz:this.EP*1E3};var B;e=(B=this.info.Y)==null?void 0:B.xU;B=g.oe({r9:O,xU:e||void 0,videoPlaybackUstreamerConfig:this.D9},g.rl);G.body=B}try{this.xhr=CN(this.Yw,this.policy.X,this.timing,q,G),this.t8.U.start(),b&&(this.Wd=new g.o1(this.p_,b,this),this.Wd.start(b+(this.timing.f0.S.CO()||0)*1E3)),this.policy.lV&&PF(this.timing,this.Do()),this.logger.debug(function(){return"Sent, itag="+Q.Yw.get("itag")+ " seg="+Q.info.sK[0].Dh+" range="+Q.Yw.get("range")+" time="+Math.round(Q.info.sK[0].D)+"-"+Math.round(g.s6(Q.info.sK).L)+" rtp="+(Q.timing.O8()-Date.now()).toFixed(0)}),g.VP(function(){})}catch(L){rel(this,L,!0)}}; B4y=function(q){if(!(lj(q.info)&&q.info.i9()&&q.policy.Th&&q.QP)||q.info.GZ.W>=2||T1()>0||!quV())return!1;var a=q.Yw.get("aitags");if(!a)return!1;a=BS(a).split(",");for(var w=[],G=g.V(q.QP),k=G.next();!k.done;k=G.next())k=k.value,g.Vx(a,k)&&w.push(k);if(!w.length)return!1;q.Yw.set("altitags",g.x1(w.join(",")));return!0}; rel=function(q,a,w){w=w===void 0?!1:w;g.mQ(a);q.t8.lastError="player.exception";q.errorMessage=a.name+"_"+a.message;w?g.VP(function(){QB(q.t8)}):QB(q.t8)}; n9j=function(q,a){q.timing.F9=!0;q.xhr.CP()&&q.timing.tH();if(q.policy.C0){var w;(w=q.Wd)==null||w.stop()}EU(q.ut,a,!1)}; MlU=function(q,a){q.info=a;if(q.ut){var w=q.ut;a=a.sK;(a.length!==w.sK.length||a.length0){a=g.V(a.sK);for(var w=a.next();!w.done;w=a.next()){var G=void 0;q+=((G=w.value.range)==null?void 0:G.length)||0}return q}if(a.TX.length>0)for(w=g.V(a.TX),G=w.next();!G.done;G=w.next())q+=G.value.fv||0;return q+a.pn}; o2=function(q,a){if(UU){var w=0;q=q.wG.get(a);if(q==null||!q.Ej)return 0;q=g.V(q.Ej.values());for(a=q.next();!a.done;a=q.next())w+=a.value.data.totalLength;return w}return((w=q.wG.get(a))==null?void 0:w.kW.totalLength)||0}; I2=function(q,a){q=q.wG.get(a);if(UU){if(q==null||!q.Gb)return!1;a=q.Ej.size>0;return q.Yt.length>0||a}return!(q==null||!q.Gb)&&!(q==null||!q.kW.totalLength)}; pGc=function(q,a){var w=q.wG.get(a),G=cef(q,a),k=!G&&!!w.bytesReceived;if(UU){var b;if((b=q.X9)==null?0:b.pk){q=g.V(w.Ej.values());for(a=q.next();!a.done;a=q.next())if(!a.value.CS)return!1;return k}}else if(b=q.bl(a),k&&q.V&&b!==void 0)return b;return(k||w.bytesReceived===G)&&w.OH+o2(q,a)===w.bytesReceived}; UKG=function(q,a,w){q.wG.set(a,{kW:new yI,OH:0,bytesReceived:0,pn:0,Uu:!1,A$:!1,bl:!1,t$:w,hF:[],sK:[],TX:[],Gb:!1,Ej:new Map,Gc:new Map,Yt:[]});q.logger.debug(function(){return"[initStream] formatId: "+a})}; XGy=function(q,a,w,G){w.sK.push.apply(w.sK,g.Tf(G));if(UU){w.Gc.has(a)||w.Gc.set(a,[]);var k;(k=w.Gc.get(a)).push.apply(k,g.Tf(G))}else if(w.ut)for(q=g.V(G),a=q.next();!a.done;a=q.next())w.ut.sK.push(a.value);else{w.ut=new Zx(q.S4,[].concat(g.Tf(w.sK)));var b;((b=q.S4)==null?0:b.BW)&&g.p(q,w.ut)}}; jrl=function(q,a,w){var G,k=(G=q.X9)==null?void 0:G.W.get(a);if(!k)return[];if(w.AG){var b;return((b=k.tE(0,w.clipId))==null?void 0:b.sK)||[]}if(k.eD()){var O=w.startMs,e=w.durationMs;G=1E3;var N;if(((N=q.S4)==null?0:N.V)&&w.timeRange){var Y;O=(Y=w.timeRange.startTicks)!=null?Y:-1;var P;e=(P=w.timeRange.mU)!=null?P:-1;var K;G=(K=w.timeRange.timescale)!=null?K:-1}if(w.iL<0||w.Ny<0||e<0||O<0||w.fv<0||G<0)return jF(q,a),[];q=Dm(w.iL,w.fv);a=w.Tx||0;return[new ys(3,k,q,"makeSliceInfosMediaBytes",w.Ny- 1,O/G,e/G,a,q.length-a,void 0,w.x3,w.clipId)]}if(w.Ny<0)return jF(q,a),[];var d;return((d=q.X9)==null?0:d.pk)?(a=k.Ca,N=a*k.info.J2,Y=w.Tx,((e=q.S4)==null?0:e.Nu)&&w.timeRange&&!Y&&(O=w.timeRange.startTicks/w.timeRange.timescale),[new ys(3,k,void 0,"makeSliceInfosMediaBytes",w.Ny,O,a,Y,N,!0,w.x3,w.clipId)]):[]}; o9V=function(q,a,w){q.X9=a;q.S4=w;a=g.V(q.wG);for(w=a.next();!w.done;w=a.next()){var G=g.V(w.value);w=G.next().value;G=G.next().value;for(var k=g.V(G.hF),b=k.next();!b.done;b=k.next()){b=b.value;var O=jrl(q,w,b);XGy(q,b.Vr,G,O)}}}; uW=function(q,a,w,G){q.logger.debug(function(){return"[addStreamData] formatId: "+w+",headerId: "+a+" bytes: "+G.totalLength}); (q=q.wG.get(w))&&!q.A$&&(UU?(q.Ej.has(a)||q.Ej.set(a,{data:new yI,Ko:0,CS:!1}),qj(q.Ej.get(a).data,G)):qj(q.kW,G),q.bytesReceived+=G.totalLength,q.Uu=!0)}; XW=function(q,a){q.logger.debug(function(){return"[closeStream] formatId: "+a}); var w=q.wG.get(a);if(w&&!w.A$){w.A$=!0;if(w.onProgress)w.onProgress();Imm(q)&&q.Y.Bl()}}; Imm=function(q){q=g.V(q.wG.values());for(var a=q.next();!a.done;a=q.next())if(!a.value.A$)return!1;return!0}; usl=function(q){UU=q}; t5=function(q,a,w,G,k,b,O){g.c.call(this);this.policy=q;this.info=a;this.X9=w;this.Yl=k;this.logger=new g.Zw("sabr");this.SR=new $K(this);this.kQ=new cF(this);this.Ze=new pN(this);this.state=1;this.gS=!1;this.fq=0;this.clipId="";this.wk=-1;this.RK=0;this.Zq=-1;this.ZV=this.k_=!1;this.Wf=0;this.ai=!1;this.policy.u2?this.rG=new fN(this,b):this.rG=new KN(this,b);this.Yw=this.policy.w$?a.sD:tlc(a,this.policy,G);this.Yw.set("rn",""+this.YE());this.Yw.set("alr","yes");o9V(this.Ze,w,q);this.t8=new VB(this, this.policy,this.Yw,a.GZ,this.rG,this.logger,G,O,this.policy.enableServerDrivenRequestCancellation);g9m(this.t8);var e;if((e=this.policy)==null?0:e.BW)g.p(this,this.Ze),g.p(this,this.t8);q=a.U;a={method:"POST",body:q};q&&(this.RK=q.length);try{this.xhr=CN(this.Yw,this.policy.X,this.rG,FI,a),this.policy.lV&&PF(this.rG,this.Do()),this.t8.U.start()}catch(N){g.Qa(N)}}; v9l=function(q){q.policy.KS&&q.Z3&&!q.ai?q.ai=!0:q.rG.tH()}; ztG=function(q,a){var w=-1,G=-1,k=-1,b;if((b=q.GM)==null?0:b.items)for(q=g.V(q.GM.items),b=q.next();!b.done;b=q.next())b=b.value,a=e,N=q.X9.isManifestless,O){var Y;if(((Y=q.V)==null?void 0:Y.QL.event)==="predictStart"&&q.V.Dhq.L&&(q.L=NaN,q.X=NaN);q.V&&q.V.Dh===a?NKG(q,a,w,q.V,k):q.U===1&&WF(q,5,"noad")}; YsN=function(q,a,w,G,k){G.wm?WF(q,4,"cue"):(q.L=a,q.X=w,q.d8("sdai",{joinad:q.U,sg:q.L,st:q.X.toFixed(3)}),q.J=Date.now(),WF(q,2,q.U===3?"staftpred":"join"),k.jK(G.QL))}; NKG=function(q,a,w,G,k){if(k&&G){var b=G.QL,O=k.Gk(b);b.event==="predictStart"&&(q.UK=a);q.d8("sdai",{onqevt:b.event,sq:a,mt:w,gab:O,cst:b.startSecs,cueid:q.policy.ST&&(O||b.event==="start")?b.identifier:void 0},!0);if(O)b.event!=="predictStart"?(b.event==="start"&&q.UK===a-1&&q.d8("sdai",{gabonstart:a}),YsN(q,a,w,G,k)):q.policy.Ku?WF(q,3,"predict"):(a+=Math.max(Math.ceil(-b.V/5E3),1),b=Math.floor(w-b.V/1E3),q.policy.U?q.D=b:q.Y=a,q.d8("sdai",{onpred:w,estsq:a,estmt:b.toFixed(3)}),Dx(q.loader,b,b, a),q.J=Date.now(),WF(q,3,"predict"),k.jK(G.QL));else if(q.U===1){var e;((e=q.W)==null?0:e.F0(w))?(Dx(q.loader,w,w,a),WF(q,4,"sk2head")):WF(q,5,"nogab")}else b.event==="predictStart"?q.policy.U&&q.D>0?(w=Math.floor(w-b.V/1E3),q.D!==w&&q.d8("sdai",{updateSt:w,old:q.D}),q.D=w):q.Y>0&&(w=a+Math.max(Math.ceil(-b.V/5E3),1),q.Y!==w&&(q.d8("sdai",{updateSt:w,old:q.Y}),q.Y=w)):q.policy.Ku&&q.U===3&&YsN(q,a,w,G,k)}else q.d8("sdai",{nulldec:1,sq:a,mt:w.toFixed(3),evt:(G==null?void 0:(b=G.QL)==null?void 0:b.event)|| "none"})}; Koy=function(q,a,w){if(q.policy.uR&&q.policy.U)return!(q.U===1||q.U===2||!q.policy.Ku&&q.U===3&&w>=q.Y);if(q.U===1||q.U===2)return!1;if(q.U!==0&&a===q.audioTrack){if(q.policy.U)return Pjy(q.videoTrack,w)||Pjy(q.videoTrack,w+1);q=R2(q.videoTrack);if(w>(q?q.Dh:-1))return!1}return!0}; yB=function(q,a,w){return(w<0||w===q.L)&&!isNaN(q.X)?q.X:a}; bgm=function(q,a){if(q.V){var w=q.V.QL.LT-(a.startTime+q.S-q.V.QL.startSecs);w<=0||(w=new lp(q.V.QL.startSecs-(isNaN(q.S)?0:q.S),w,q.V.QL.context,q.V.QL.identifier,"stop",q.V.QL.V+a.duration*1E3),q.d8("cuepointdiscontinuity",{segNum:a.Dh}),iW(q,w,a.Dh))}}; WF=function(q,a,w){q.U!==a&&(q.d8("sdai",{setsst:a,old:q.U,r:w}),q.U=a)}; qt=function(q,a,w,G){(G===void 0?0:G)?WF(q,1,"seek"):a>0&&Math.abs(a-w)>=5&&q.U===4&&WF(q,5,"sk2t")}; d5j=function(q){this.d8=q;this.V="";this.U=new Map}; TKj=function(q,a,w,G,k){if(q.U.has(a.identifier)){var b=q.U.get(a.identifier);G>b.cU&&(b.startTimeSecs=a.startSecs,b.LT=a.LT,b.event==="predictStart"&&b.dk===5&&a.event!=="predictStart"&&(b.o2=Date.now()),b.event=a.event)}else b={event:a.event,startTimeSecs:a.startSecs,LT:a.LT,KR:[],cU:G,dk:0},q.U.set(a.identifier,b);k&&b.dk===0&&(k.Gk(a)?b.dk=5:(b.dk=2,b.xq=""),b.o2=Date.now(),b.cU=G);G>b.cU&&(k==null||k.Gk(a),b.cU=G);q.W&&w>-1&&w1E4?(q.dk=1,!1):!0:!1}; sam=function(q){switch(q){case 5:return"predictStart";case 1:return"start";case 2:return"continue";case 3:return"stop";default:return"unknown"}}; g1=function(q,a,w){this.audio=q;this.video=a;this.reason=w}; af=function(q,a,w){this.V=q;this.reason=a;this.token=w;this.videoId=void 0}; w1=function(q,a,w){g.c.call(this);this.policy=q;this.Y=a;this.d8=w;this.W=new Map;this.D=0;this.L=!1;this.V="";this.U=!1}; Gi=function(q,a,w){if(w===void 0?0:w)q.L=!0;++q.D;w=6E4*Math.pow(2,q.D);w=(0,g.Zj)()+w;q.W.set(a.info.id,w)}; kO=function(q){for(var a=g.V(q.W.entries()),w=a.next();!w.done;w=a.next()){var G=g.V(w.value);w=G.next().value;G=G.next().value;G<(0,g.Zj)()&&q.W.delete(w)}return q.W}; FoG=function(q){return q.L&&kO(q).size>0}; bn=function(q,a){q.V!==a&&(q.V=a,q.U=!0)}; Cjl=function(q,a){var w;a&&(w=g.Z7(q.Y.V,function(k){return k.id===a})); if(!w&&(w=g.Z7(q.Y.V,function(k){var b;return!((b=k.Pq)==null||!b.isDefault)}),a)){var G; q.d8("iaf",{id:a,sid:(G=w)==null?void 0:G.id})}return w}; ln=function(q,a,w,G,k,b){var O=this;b=b===void 0?[]:b;this.loader=q;this.y7=a;this.policy=w;this.X9=G;this.L=k;this.BT=b;this.logger=new g.Zw("dash/abr");this.V=dM;this.W=this.X=null;this.J=-1;this.L7=!1;this.nextVideo=this.U=null;this.Y=[];this.le=new Set;this.EK={};this.h2=new fz(1);this.S=0;this.St=this.UK=this.F9=!1;this.jt=0;this.A2=!1;this.f7=new Set;this.Tl=!1;this.qh={xQ:function(){Op(O)}}; this.D=new w1(this.policy,k,function(e,N){O.loader.d8(e,N)})}; m5V=function(q,a,w){eA(q,a);a=Cjl(q.D,w);w||a||(a=ZgN(q));a=a||q.L.V[0];q.U=q.X9.V[a.id];Op(q);q.X=q.U;EDV(q);VSU(q);q.W=q.nextVideo;q.X=q.U;return Jwm(q)}; x5c=function(q,a){if(QaG(q,a))return null;if(a.reason==="m"&&a.isLocked())return q.logger.debug(function(){return"User sets constraint to: "+nx(a)}),eA(q,a),q.S=q.Y.length-1,Op(q),Nt(q),q.UK=q.UK||q.W!==q.nextVideo,q.W=q.nextVideo,new g1(q.U,q.W,a.reason); a.reason==="r"&&(q.J=-1);eA(q,a);Nt(q);if(a.reason==="r"&&q.nextVideo===q.W)return new g1(q.U,q.nextVideo,a.reason);Awy(q);return null}; Lol=function(q,a,w){q.U=q.X9.V[a];q.X=q.U;return new g1(q.X,q.W,w?"t":"m")}; BK_=function(q,a){if(a.info.video){if(q.W!==a)return q.W=a,Jwm(q)}else q.St=q.X!==a,q.X=a;return null}; rw_=function(q,a){if(a.V.info.video&&a.Y){var w=(a.U+a.W)/a.duration,G=a.V.info.J2;w&&G&&(q.h2.bM(1,w/G),q.policy.W&&w/G>1.5&&q.loader.d8("overshoot",{sq:a.Dh,br:w,max:G}))}}; YO=function(q,a,w){Gi(q.D,a,w===void 0?!1:w);q.J=-1;eA(q,q.V)}; nDV=function(q,a){return new g1(q.X,q.W,a||q.V.reason)}; Awy=function(q){if(q.W&&q.nextVideo&&PH(q,q.W.info)q.policy.yp,e=k<=q.policy.yp?IK(G):X5(G);if(!b||O||e)w[k]=G}return w}; eA=function(q,a){q.V=a;var w=q.L.videoInfos;if(!q.V.isLocked()){var G=(0,g.Zj)();w=g.L$(w,function(e){if(e.J2>this.policy.J2)return!1;var N=this.X9.V[e.id];return kO(this.D).get(e.id)>G?!1:N.GZ.W>4||N.L>4?(this.logger.debug(function(){return"Remove "+gD(e)+"; 4 load failures"}),!1):this.f7.has(+e.itag)?!1:!0},q); FoG(q.D)&&(w=g.L$(w,function(e){return e.video.width<=854&&e.video.height<=480}))}w.length||(w=q.L.videoInfos); var k=w;q.policy.bN&&(k=hof(q,k,a));k=g.L$(k,a.Y,a);if(q.V.isLocked()&&q.D.V){var b=g.Z7(w,function(e){return e.id===q.D.V}); b?k=[b]:bn(q.D,"")}q.policy.bN||(k=hof(q,k,a));k.length||(k=[w[0]]);k.sort(function(e,N){return PH(q,e)-PH(q,N)}); a={};for(w=1;wa.dW.video.width?(g.Jl(k,w),w--):PH(q,a.w_)*q.policy.S>PH(q,a.dW)&&(g.Jl(k,w-1),w--);var O=k[k.length-1];q.A2=!!q.W&&!!q.W.info&&q.W.info.K7!==O.K7;q.logger.debug(function(){return"Constraint: "+nx(q.V)+", "+k.length+" fmts selectable, max selectable fmt: "+gD(O)}); q.Y=k;q.le.clear();a=!1;for(w=0;w=1080&&(a=!0);SsJ(q.policy,O,q.X9.pk)}; hof=function(q,a,w){var G=w.reason==="m"||w.reason==="s";q.policy.yf&&Ke&&g.Ph&&(!G||w.V<1080)&&(a=a.filter(function(Y){return Y.video&&(!Y.U||Y.U.powerEfficient)})); if(a.length>0)if(dD()){var k=MSN(q,a);a=a.filter(function(Y){return!!Y&&!!Y.video&&Y.K7===k[Y.video.qualityOrdinal].K7})}else{var b,O,e=(b=a[0])==null?void 0:(O=b.video)==null?void 0:O.qualityOrdinal; if(e){w=a.filter(function(Y){return!!Y&&!!Y.video&&Y.video.qualityOrdinal===e}); var N=MSN(q,w)[e].K7;a=a.filter(function(Y){return!!Y&&!!Y.video&&Y.K7===N})}}return a}; fwV=function(q,a){for(var w=0;w+1G}; Op=function(q){if(!q.U||!q.policy.Y&&!q.U.info.Pq){var a=q.L.V;q.U&&(a=a.filter(function(G){return G.audio.V===q.U.info.audio.V}),a.length||(a=q.L.V)); q.U=q.X9.V[a[0].id];if(a.length>1&&!q.policy.St){if(!q.policy.pF){var w=g.Z7(a,function(G){return G.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}); w&&(q.U=q.X9.V[w.id])}w=!1;if(w=q.policy.aA?!0:q.V.isLocked()?q.V.V<240:fwV(q,q.U))q.U=q.X9.V[g.s6(a).id]}}}; Nt=function(q){if(!q.nextVideo||!q.policy.Y)if(q.V.isLocked())q.nextVideo=q.V.V<=360?q.X9.V[q.Y[0].id]:q.X9.V[g.s6(q.Y).id],q.logger.debug(function(){return"Select max fmt: "+gD(q.nextVideo.info)}); else{for(var a=Math.min(q.S,q.Y.length-1),w=Wy(q.y7),G=PH(q,q.U.info),k=w/q.policy.UK-G;a>0&&!(PH(q,q.Y[a])<=k);a--);for(var b=w/q.policy.S-G;a=b);a++);q.nextVideo=q.X9.V[q.Y[a].id];q.S!==a&&q.logger.info(function(){return"Adapt to: "+gD(q.nextVideo.info)+", bandwidth: "+w.toFixed(0)+", bandwidth to downgrade: "+k.toFixed(0)+", bandwidth to upgrade: "+b.toFixed(0)+", constraint: "+nx(q.V)}); q.S=a}}; EDV=function(q){var a=q.policy.UK,w=Wy(q.y7),G=w/a-PH(q,q.U.info);a=g.E6(q.Y,function(k){return PH(this,k)b?k=0:G[O]>q.buffered[O]&&(O===b-1?k=2:O===b-2&&G[O+1]>q.buffered[O+1]&&(k=3))}q.V.add(a<<3|(w&&4)|k);a=Math.ceil(q.track.cI()*1E3);q.V.add(a-q.D);q.D=a;if(k===1)for(q.V.add(b),O=a=0;O=2&&q.V.add(G[b- 1]-q.buffered[b-1]);w&&q.V.add(w);q.buffered=G}; $O=function(q,a,w){var G=this;this.policy=q;this.V=a;this.jt=w;this.Y=this.U=0;this.Ap=null;this.F9=new Set;this.J=[];this.indexRange=this.initRange=null;this.S=new m5;this.UK=this.y7=!1;this.qh={nYW:function(){return G.W}, r5e:function(){return G.chunkSize}, zr9:function(){return G.X}, A5e:function(){return G.L}}; (a=Xwy(this))?(this.chunkSize=a.csz,this.W=Math.floor(a.clen/a.csz),this.X=a.ck,this.L=a.civ):(this.chunkSize=q.Vf,this.W=0,this.X=g.K5(16),this.L=g.K5(16));this.D=new Uint8Array(this.chunkSize);this.X&&this.L&&(this.crypto=new ixc(this.X,this.L))}; Xwy=function(q){if(q.policy.eG&&q.policy.aX)for(var a=g.V(q.policy.eG),w=a.next(),G={};!w.done;G={tI:void 0,CY:void 0},w=a.next())if(w=g.RI(w.value),G.tI=+w.clen,G.CY=+w.csz,G.tI>0&&G.CY>0&&q.policy.Y===w.docid&&q.V.info.id===w.fmtid&&q.V.info.lastModified===+w.lmt)return q={},q.clen=G.tI,q.csz=G.CY,q.ck=w.ck,q.civ=w.civ,q}; sp=function(q){return!!q.Ap&&q.Ap.Dw()}; IwG=function(q,a){if(!sp(q)&&!q.t2()){if(!(q.y7||(q.y7=!0,q.W>0))){var w=FV(q);w=kQ(q.policy.Y,q.V.info,Ce(q),w,q.policy.IW);Zd(q,w)}if(a.info.type===1){if(q.Ap){Ep(q,Error("Woffle: Expect INIT slices to always start us off"));return}q.initRange=Dm(0,a.U.totalLength)}else if(a.info.type===2)q.Ap&&q.Ap.type===1||Ep(q,Error("Woffle: Index before init")),q.indexRange=Dm(q.initRange.end+1,a.U.totalLength);else if(a.info.type===3){if(!q.Ap){Ep(q,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(q.Ap.type===3&&!aa(q.Ap,a.info)&&(q.J=[],a.info.Dh!==wK(q.Ap)||a.info.U!==0))return;if(a.info.Y){w=g.V(q.J);for(var G=w.next();!G.done;G=w.next())jac(q,G.value);q.J=[]}else{q.J.push(a);q.Ap=a.info;return}}else{Ep(q,Error("Woffle: Unexpected slice type"));return}q.Ap=a.info;jac(q,a);oDf(q)}}; jac=function(q,a){var w=0,G=Gp(a.U);if(q.Y=G.length)return;if(w<0)throw Error("Missing data");q.Y=q.W;q.U=0}for(k={};w0){var O=G.getUint32(w+28);b+=O*16+4}var e=G.getUint32(w+b-4);try{var N=igK(a.subarray(w+b,w+b+e));if(N!==null){var Y=N;break a}}catch(P){}}w+=k}Y=null;break a}catch(P){Y=null;break a}Y=void 0}if(Y!=null)for(a=$0(qu(Y,7,void 0,hY)),a==null||q.O3||(q.cryptoPeriodIndex=a),a=$0(qu(Y,10,void 0,hY)),a!=null&&a>0&& !q.O3&&(q.V=a),Y=Og(Y,2,xOm,void 0===n1J?2:4),Y=g.V(Y),G=Y.next();!G.done;G=Y.next())a=q.W,w=a.push,G=S0(G.value),G=g.AH(G,4),w.call(a,G)}; D5y=function(q){return isNaN(q.cryptoPeriodIndex)?g.AH(q.initData):""+q.cryptoPeriodIndex}; mO=function(q,a,w){var G=w===void 0?{}:w;w=G.videoDuration===void 0?0:G.videoDuration;var k=G.cg===void 0?void 0:G.cg;G=G.eK===void 0?!1:G.eK;this.videoId=q;this.status=a;this.videoDuration=w;this.cg=k;this.eK=G}; Rol=function(q,a,w,G,k){this.videoId=q;this.TI=a;this.U=w;this.bytesDownloaded=G;this.V=k}; QE=function(q){this.V=q;this.offset=0}; AL=function(q){if(q.offset>=q.V.totalLength)throw Error();return bH(q.V,q.offset++)}; ywl=function(q,a){a=a===void 0?!1:a;var w=AL(q);if(w===1){a=-1;for(w=0;w<7;w++){var G=AL(q);a===-1&&G!==255&&(a=0);a>-1&&(a=a*256+G)}return a}G=128;for(var k=0;k<6&&G>w;k++)w=w*256+AL(q),G*=128;return a?w:w-G}; q1y=function(q){try{var a=ywl(q,!0),w=ywl(q,!1);return{id:a,size:w}}catch(G){return{id:-1,size:-1}}}; gxK=function(q){for(var a=new QE(q),w=-1,G=0,k=0;!G||!k;){var b=q1y(a),O=b.id;b=b.size;if(O<0)return;if(O===176){if(b!==2)return;G=a.Re()}else if(O===186){if(b!==2)return;k=a.Re()}O===374648427?w=a.Re()+b:O!==408125543&&O!==174&&O!==224&&a.skip(b)}a=kv(q,0,w);w=new DataView(a.buffer);w.setUint16(G,3840);w.setUint16(k,2160);G=new yI([a]);qj(G,q);return G}; auy=function(q,a,w){var G=this;this.loader=q;this.policy=a;this.D=w;this.logger=new g.Zw("dash");this.U=[];this.V=null;this.y7=-1;this.J=0;this.f7=NaN;this.F9=0;this.W=NaN;this.S=this.L7=0;this.A2=-1;this.EK=this.Y=this.L=this.jt=null;this.h2=this.St=NaN;this.X=this.UK=this.le=this.BT=null;this.IW=!1;this.Tl=this.timestampOffset=0;this.qh={kS:function(){return G.U}}; if(this.policy.Y){var k=this.D,b=this.policy.Y;this.policy.IW&&q.d8("atv",{ap:this.policy.IW});this.X=new $O(this.policy,k,function(O,e,N){xO(q,new mO(G.policy.Y,2,{cg:new Rol(b,O,k.info,e,N)}))}); this.X.S.promise.then(function(O){G.X=null;O===1?xO(q,new mO(G.policy.Y,O)):G.loader.d8("offlineerr",{status:O.toString()})},function(O){var e=(O.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); O instanceof VE&&!O.V?(G.logger.info(function(){return"Assertion failed: "+e}),G.loader.d8("offlinenwerr",{em:e}),Le(G),xO(q,new mO(G.policy.Y,4))):(G.logger.info(function(){return"Failed to write to disk: "+e}),G.loader.d8("dldbwerr",{em:e}),Le(G),xO(q,new mO(G.policy.Y,4,{eK:!0})))})}}; wmc=function(q){return q.U.length?q.U[0]:null}; G8U=function(q,a){return q.U.some(function(w){return w.info.Dh===a})}; ejj=function(q,a,w,G){G=G===void 0?0:G;if(q.Y){var k=q.Y.U+q.Y.W;if(w.info.U>0)if(w.info.Dh===q.Y.Dh&&w.info.U=0&&q.Y.Dh>=0&&!aa(q.Y,w.info))throw new g.UH("improper_continuation",q.Y.c5(),w.info.c5());C4j(q.Y,w.info)||BH(q,"d")}else if(w.info.U>0)throw new g.UH("continuation_of_null",w.info.c5());q.Y=w.info;q.D=w.info.V;if(w.info.U===0){if(q.V)if(!q.loader.isOffline()||q.policy.sj)q.loader.d8("slice_not_fully_processed", {buffered:q.V.info.c5(),push:w.info.c5()});else throw new g.UH("slice_not_fully_processed",q.V.info.c5(),w.info.c5());r1(q);q.L7=G}else{if(q.L7&&G&&q.L7!==G)throw q=new g.UH("lmt_mismatch",w.info.Dh,q.L7,G),q.level="WARNING",q;!w.info.V.eD()&&q.L&&(G=w.info,k=q.L.wk,G.X="updateWithEmsg",G.Dh=k)}if(q.V){G=g.mo(q.V,w);if(!G)throw new g.UH("failed_to_merge",q.V.info.c5(),w.info.c5());q.V=G}else q.V=w;a:{w=g.vY(q.V.info.V.info);if(q.V.info.type!==3){if(!q.V.info.Y)break a;q.V.info.type===6?k8m(q,a,q.V): bzK(q,q.V);q.V=null}for(;q.V;){G=q.V.U.totalLength;if(q.y7<=0&&q.J===0){var b=q.V.U,O=-1;k=-1;if(w){for(var e=0;e+80))break;if(K!==408125543)if(K===524531317)e=!0,P>=0&&(k=b.Re()+P,N=!0);else{if(e&&(K===160||K===163)&&(O<0&&(O=Y),N))break;K===163&&(O=Math.max(0,O),k=b.Re()+P);if(K===160){O<0&&(k=O=b.Re()+ P);break}b.skip(P)}}O<0&&(k=-1)}if(O<0)break;q.y7=O;q.J=k-O}if(q.y7>G)break;q.y7?(G=Ozm(q,q.y7),G.D&&luc(q,G),k8m(q,a,G),ne(q,G),q.y7=0):q.J&&(G=Ozm(q,q.J<0?Infinity:q.J),q.J-=G.U.totalLength,ne(q,G))}}q.V&&q.V.info.Y&&(ne(q,q.V),q.V=null)}; bzK=function(q,a){!a.info.V.eD()&&a.info.U===0&&(g.vY(a.info.V.info)||a.info.V.info.O3())&&gjc(a);if(a.info.type===1)try{luc(q,a),NRc(q,a)}catch(k){g.mQ(k);var w=Gm(a.info);w.hms="1";q.loader.handleError("fmt.unparseable",w||{},1)}w=a.info.V;w.D6(a);q.X&&IwG(q.X,a);if(w.cH()&&q.policy.V)a:{q=q.loader.X9;a=a.info.clipId;w=g.WY(w.info,q.pk);if(a){var G=vG({itag:w.itag,lmt:q.pk?0:w.lmt||0,xtags:w.xtags});if(q.A2[G])break a;q.A2[G]=a}q.St.push(w)}}; SlN=function(q,a,w){if(q.U.length!==0&&(w||q.U.some(function(b){return b.info.D=hL(O)+e):a=q.getDuration()>=O.getDuration(),a=!a;a&&KIc(w)&&(a=q.jt,Mt?(e=y8j(w),O=1/e,e=hL(q,e),a=hL(a)+O-e):a=a.getDuration()- q.getDuration(),a=1+a/w.info.duration,WZN(g.Jw(w),a))}else{O=!1;q.L||(gjc(w),w.V&&(q.L=w.V,O=!0,k=w.info,b=w.V.wk,k.X="updateWithEmsg",k.Dh=b,k=w.V,k.Dw&&(b=q.D.index,b.U=!k.Dw,b.W="emsg"),k=w.info.V.info,b=g.Jw(w),g.vY(k)?Zm(b,1701671783):k.O3()&&L0([408125543],307544935,b)));a:if((k=xD(w,q.policy.Ai))&&q2_(w))e=diy(q,w),q.S+=e,k-=e,q.F9+=k,q.W=q.policy.ZO?q.W+k:NaN;else{if(q.policy.zC){if(b=N=q.loader.RP(g.QW(w),1),q.W>=0&&w.info.type!==6){if(q.policy.ZO&&isNaN(q.St)){g.Qa(new g.UH("Missing duration while processing previous chunk", w.info.c5()));q.loader.isOffline()&&!q.policy.sj||TRK(q,w,b);BH(q,"m");break a}G=N-q.W;var Y=G-q.S,P=w.info.Dh,K=q.EK?q.EK.Dh:-1,d=q.h2,T=q.St,F=q.policy.Ul&&G>q.policy.Ul,J=Math.abs(Y)>10,Q=Math.abs(q.W-b)<1E-7;if(Math.abs(Y)>1E-4){q.Tl+=1;var B=(e=q.L)==null?void 0:uZf(e);e={audio:""+ +q.t$(),sq:P.toFixed(),sliceStart:N,lastSq:K.toFixed(),lastSliceStart:d,lastSliceDuration:T,totalDrift:(G*1E3).toFixed(),segDrift:(Y*1E3).toFixed(),skipRewrite:""+ +(F||J)};if(B==null?0:B.length)e.adCpn=B[0];q.loader.handleError("qoe.avsync", e);q.A2=P}F||J||Q||(b=q.W);e=diy(q,w,N);k-=e;q.S=G+e}}else b=isNaN(q.W)?w.info.startTime:q.W;TRK(q,w,b)&&(q.F9+=k,q.W=b+k,q.policy.a4&&q.Tl>=q.policy.a4&&(q.Tl=0,q.loader.Uw({resetForRewrites:"count"})))}q.EK=w.info;q.St=Aw(w);w.W>=0&&(q.h2=w.W);if(O&&q.L){O=$iG(q,!0);kD(w.info,O);q.V&&kD(q.V.info,O);a=g.V(a);for(e=a.next();!e.done;e=a.next())e=e.value,k=void 0,q.policy.D&&e.Dh!==((k=q.L)==null?void 0:k.wk)||kD(e,O);(w.info.Y||q.V&&q.V.info.Y)&&w.info.type!==6||(q.UK=O,q.policy.U?(a=sWf(q.L),q.loader.x7(q.D, O,a)):(a=q.loader,a.X9.isManifestless&&FIc(a,O,null,!!q.D.info.video)),q.policy.VT||CEN(q))}}NRc(q,w);q.timestampOffset&&D4m(w,q.timestampOffset)}; ne=function(q,a){if(a.info.Y){q.BT=a.info;if(q.L){var w=q.L,G=$iG(q,!1);w=sWf(w);q.loader.x7(q.D,G,w);q.UK||q.policy.VT||CEN(q);q.UK=null}r1(q)}q.X&&IwG(q.X,a);if(G=q.vM())if(G=g.mo(G,a,q.policy.qO,q.policy.ke)){q.U.pop();q.U.push(G);return}q.U.push(a)}; sWf=function(q){if(q.wm()){var a=q.data["Stitched-Video-Id"]?q.data["Stitched-Video-Id"].split(",").slice(0,-1):[],w=uZf(q),G=[];if(q.data["Stitched-Video-Duration-Us"])for(var k=g.V(q.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),b=k.next();!b.done;b=k.next())G.push((Number(b.value)||0)/1E6);k=[];if(q.data["Stitched-Video-Start-Frame-Index"]){b=g.V(q.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var O=b.next();!O.done;O=b.next())k.push(Number(O.value)||0)}k=[]; if(q.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(b=g.V(q.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),O=b.next();!O.done;O=b.next())k.push((Number(O.value)||0)/1E6);q=new zoy(a,w,G,k,g.tHU(q),g.vJ_(q))}else q=null;return q}; r1=function(q){q.V=null;q.y7=-1;q.J=0;q.L=null;q.f7=NaN;q.F9=0;q.UK=null}; BH=function(q,a){a={rst4disc:a,cd:q.S.toFixed(3),sq:q.EK?q.EK.Dh:-1};q.W=NaN;q.S=0;q.A2=-1;q.EK=null;q.h2=NaN;q.St=NaN;q.le=null;q.loader.d8("mdstm",a)}; NRc=function(q,a){if(q.isDrm()){if(a.info.V.info.O3()){var w=new Vs(g.Jw(a));if(mS(w,[408125543,374648427,174,28032,25152,20533,18402])){var G=x9(w,!0);w=G!==16?null:MK(w,G)}else w=null;G="webm"}else a.info.J=tSl(g.Jw(a)),w=vDc(a.info.J),G="cenc";w&&w.length&&(w=new JL(w,G),q.policy.AP&&g.vY(a.info.V.info)&&(G=aTl(g.Jw(a)))&&(w.U=G),w.O3=a.info.V.info.O3(),a.V&&a.V.cryptoPeriodIndex&&(w.cryptoPeriodIndex=a.V.cryptoPeriodIndex),a.V&&a.V.U&&(w.V=a.V.U),q.loader.l7(w))}}; CEN=function(q){var a=q.L,w=oJy(a);w&&(w.startSecs+=q.f7,q.loader.Hk(q.D,w,a.wk,a.wm()))}; $iG=function(q,a){var w,G=q.L;if(w=oJy(G))w.startSecs+=q.f7;return new Rg(G.wk,q.f7,a?G.Ca:q.F9,G.ingestionTime,"sq/"+G.wk,void 0,void 0,a,w)}; TRK=function(q,a,w){if(!Wec(a,w))return a=Gm(a.info),a.smst="1",q.loader.handleError("fmt.unparseable",a||{},1),!1;isNaN(q.f7)&&(q.f7=w);return!0}; diy=function(q,a,w){var G=0;if(a.info.V.info.O3()&&!q2_(a))return 0;if(q.jt&&!q.t$()){var k=0;w&&g.vY(a.info.V.info)?k=w-q.W:a.info.V.info.O3()&&(k=q.S);var b=a.info.Dh;w=xD(a,q.policy.Ai);var O=q.jt;var e=O.A2;O=O.S;var N=Math.abs(O-k)>.02;if((b===e||b>e&&b>q.A2)&&N){G=Math.max(.95,Math.min(1.05,(w-(O-k))/w));if(g.vY(a.info.V.info))WZN(g.Jw(a),G);else if(a.info.V.info.O3()&&(b=k-O,!g.vY(a.info.V.info)&&(a.info.V.info.O3(),G=new Vs(g.Jw(a)),e=a.D?G:new Vs(new DataView(a.info.V.V.buffer)),xD(a,!0)))){var Y= b*1E3,P=Sl(e);e=G.pos;G.pos=0;if(G.V.getUint8(G.pos)===160||f0(G))if(Ae(G,160))if(x9(G,!0),Ae(G,155)){if(b=G.pos,N=x9(G,!0),G.pos=b,Y=Y*1E9/P,P=BG(G),Y=P+Math.max(-P*.7,Math.min(P,Y)),Y=Math.sign(Y)*Math.floor(Math.abs(Y)),!(Math.ceil(Math.log(Y)/Math.log(2)/8)>N)){G.pos=b+1;for(b=N-1;b>=0;b--)G.V.setUint8(G.pos+b,Y&255),Y>>>=8;G.pos=e}}else G.pos=e;else G.pos=e;else G.pos=e}G=xD(a,q.policy.Ai);G=w-G}G&&a.info.V.info.O3()&&q.loader.d8("webmDurationAdjustment",{durationAdjustment:G,videoDrift:k+G, audioDrift:O})}return G}; KIc=function(q){return q.info.V.eD()&&q.info.Dh===q.info.V.index.P5()}; hL=function(q,a){a=(a=a===void 0?0:a)?Math.round(q.timestampOffset*a)/a:q.timestampOffset;q.D.Y&&a&&(a+=q.D.Y.V);return a+q.getDuration()}; Zzm=function(q,a){a<0||(q.U.forEach(function(w){D4m(w,a)}),q.timestampOffset=a)}; qd=function(q,a,w,G,k){sU.call(this,w,k);var b=this;this.policy=q;this.formatId=a;this.Ze=G;this.lastError=null;this.onProgress=function(){b.t2()||(b.Ze.wG.has(b.formatId)?(b.isComplete()||b.V.start(),I2(b.Ze,b.formatId)&&b.xJ(2),b.Ze.A$(b.formatId)&&(pGc(b.Ze,b.formatId)?b.gG(4):(b.lastError="net.closed",b.gG(5)))):(b.lastError="player.exception",b.gG(5)))}; this.V=new g.o1(function(){b.isComplete()||(b.lastError="net.timeout",b.gG(5))},1E3); this.V.start();fmG(this.Ze,this.formatId,this.onProgress);g.VP(this.onProgress)}; SA=function(q,a,w,G){g.c.call(this);var k=this;this.loader=q;this.policy=a;this.V=w;this.timing=G;this.logger=new g.Zw("dash");this.W=[];this.jt=[];this.U=this.M1=null;this.le=!1;this.L7=this.Tl=0;this.L=-1;this.y7=!1;this.f7=-1;this.EK=null;this.UK=NaN;this.F9=[];this.qh={Jk:function(){return k.Y}, Tpl:function(){return k.W}, mTW:function(){return k.S}}; this.Y=new auy(q,a,w);this.policy.V&&(this.S=new R0(this.Y,this.loader.getManifest(),this.policy,function(b){k.policy.IH&&k.d8("buftl",b)})); this.policy.Ck&&(this.J=new d1(this));this.J2=w.info.J2;this.X=this.policy.F9?!1:w.YJ();this.isManifestless=w.YJ();this.D=this.X;g.p(this,this.EK)}; fe=function(q,a,w){w=w===void 0?!1:w;a&&Mt&&Zzm(q.Y,a.Yk());if(!w){var G;(G=q.S)==null||rvU(G)}q.M1=a;(a=q.S)!=null&&(a.M1=q.M1)}; HH=function(q){var a=q.M1&&q.M1.JX();if(q.policy.rk){if((q=q.S)==null)q=void 0;else{var w;q=(w=q.W)==null?void 0:w.info}return q||null}return a}; Exm=function(q){for(var a={},w=0;w4&&q.jt.shift()}; VEl=function(q,a){if(a.kU()){var w=a.kK();w=g.V(w);for(var G=w.next();!G.done;G=w.next())G=G.value,q.policy.W&&a instanceof qd&&q.d8("omblss",{s:G.info.c5()}),pe(q,a.info.sK,G,a.qa())}}; pe=function(q,a,w,G){G=G===void 0?0:G;isNaN(q.UK)||(q.d8("aswm",{sq:a[0].Dh,id:a[0].V.info.itag,xtag:a[0].V.info.V,ep:Date.now()-q.UK}),q.UK=NaN);switch(w.info.type){case 1:case 2:Jjl(q,w);break;case 4:var k=w.info.V,b=k.M6(w),O;((O=q.U)==null?0:O.type===4)&&A8y(w.info,q.U)&&(q.U=k.fZ(q.U).pop());w=g.V(b);for(k=w.next();!k.done;k=w.next())pe(q,a,k.value,G);break;case 3:w.info.V.info.video?(k=q.timing,k.f7||(k.f7=(0,g.Zj)(),g.qx("fvb_r",k.f7,k.V))):(k=q.timing,k.L||(k.L=(0,g.Zj)(),g.qx("fab_r",k.L, k.V)));ejj(q.Y,a,w,G);q.policy.V&&mic(q);break;case 6:ejj(q.Y,a,w,G),q.U=w.info}}; Jjl=function(q,a){if(a.info.type===1)if(a.info.V.info.video){var w=q.timing;w.L7||(w.L7=(0,g.Zj)(),g.qx("vis_r",w.L7,w.V))}else w=q.timing,w.S||(w.S=(0,g.Zj)(),g.qx("ais_r",w.S,w.V));bzK(q.Y,a);q=q.loader;q.videoTrack.V.cH()&&q.audioTrack.V.cH()&&q.policy.V&&!q.X9.pk&&(a=q.audioTrack.getDuration(),w=q.videoTrack.getDuration(),Math.abs(a-w)>1&&q.d8("trBug",{af:""+g.WY(q.audioTrack.V.info,!1),vf:""+g.WY(q.videoTrack.V.info,!1),a:""+a,v:""+w}))}; eF=function(q){return wmc(q.Y)}; mic=function(q){q.W.length?q.U=g.s6(g.s6(q.W).info.sK):q.Y.U.length?q.U=q.Y.vM().info:q.U=HH(q)}; Up=function(q,a){var w={uK:[],XB:[]},G;if((q=q.S)==null)q=void 0;else{Bqc(q,q.uK,"og");AvV(q,a);Bqc(q,q.uK,"trim");var k=LfG(q);a=k.uK;k=k.wy;for(var b=[],O=0;O0){var d=GL(K,N);d>=0&&(P=(K.end(d)-N+.1)*1E3)}b.push({formatId:g.WY(e.info.V.info,q.X9.pk), x3:e.info.x3,sequenceNumber:e.info.Dh+q.Y,Pb:Y,FY:e.info.W,OW:P})}q={uK:a,XB:b}}return(G=q)!=null?G:w}; w7=function(q,a,w){w=w===void 0?!1:w;if(q.M1){var G=q.M1.sB(),k=bw(G,a),b=NaN,O=HH(q);O&&(b=bw(G,O.V.index.getStartTime(O.Dh)));if(k===b&&q.U&&q.U.W&&QWN(XV(q),0))return a}q=AjN(q,a,w);return q>=0?q:NaN}; kK=function(q,a,w){q.V.cH();var G=AjN(q,a);if(G>=0)return G;var k;(k=q.S)==null||xqm(k,a,w);G=Math;k=G.min;var b=q.Y;if(b.X)if(b=b.X,b.Ap&&b.Ap.type===3)b=b.Ap.startTime;else if(b.W>0){var O=b.V.index;O=g.oB(O.offsets.subarray(0,O.count),b.W*b.chunkSize);b=b.V.index.getStartTime(O>=0?O:Math.max(0,-O-2))}else b=0;else b=Infinity;a=k.call(G,a,b);q.U=q.policy.F9?null:q.V.tb(a).sK[0];jA(q)&&(q.policy.Gd&&(w==null?void 0:w.seekSource)===60||q.M1&&q.M1.abort(),q.policy.ll&&(w=q.S)!=null&&(w.W=void 0)); q.L7=0;return q.U?q.U.startTime:a}; Mim=function(q){q.X=!0;q.D=!0;q.L=-1;kK(q,Infinity)}; of=function(q){for(var a=0,w=g.V(q.W),G=w.next();!G.done;G=w.next())a+=Ley(G.value.info);return a+=Y1y(q.Y)}; un=function(q,a){a=a===void 0?!1:a;var w=q.loader.getCurrentTime(),G=q.Y.vM(),k=(G==null?void 0:G.info.L)||0;if((G==null?0:G.info.V.YJ())&&!G.info.Y)if(q.policy.S7)k=G.info.D;else if(q.policy.N$){var b=G.info;k=b.range?b.L:Math.min(b.startTime+Math.min(b.duration*b.U/b.V.info.J2,b.duration)+(b.range?b.S:Math.min(b.duration,b.duration*b.W/b.V.info.J2)),b.startTime+b.duration)}if(!q.M1)return q.policy.V&&a&&!isNaN(w)&&G?k-w:0;if((b=HH(q))&&If(b))return b.L;var O=q.M1.sB(!0);if(a&&G)return b=0,q.policy.V&& (b=eN(O,k+.02)),b+k-w;a=eN(O,w);q.policy.xb&&b&&(G=GL(O,w),O=GL(O,b.D-.02),G===O&&(w=b.L-w,q.policy.W&&w>a+.02&&q.d8("abh",{bh:a,bhtls:w}),a=Math.max(a,w)));return a}; xiN=function(q){var a=HH(q);return a?a.L-q.loader.getCurrentTime():0}; LI_=function(q,a){if(q.W.length){if(q.W[0].info.sK[0].startTime<=a)return;a2(q)}for(var w=q.Y,G=w.U.length-1;G>=0;G--)w.U[G].info.startTime>a&&w.U.pop();mic(q);q.U&&a=0;O--){var e=k.U[O];e.info.Dh>=a&&(k.U.pop(),k.W-=xD(e,k.policy.Ai),b=e.info)}b&&(k.Y=k.U.length>0?k.U[k.U.length-1].info:k.le,k.U.length!==0||k.Y||BH(k,"r"));k.loader.d8("mdstm",{rollbk:1,itag:b?b.V.info.itag:"",popped:b?b.Dh:-1,sq:a,lastslc:k.Y?k.Y.Dh:-1,lastfraget:k.W.toFixed(3)});if(q.policy.V)return q.U=null,!0;G>w?kK(q,G):q.U=q.V.Su(a-1,!1).sK[0]}catch(N){return a=dl(N),a.details.reason="rollbkerr", q.loader.handleError(a.errorCode,a.details,a.severity),!1}return!0}; zi=function(q,a){var w;for(w=0;w0?w||a.Dh>=q.f7:w}; WH=function(q){var a;return jA(q)||If((a=q.Y.vM())==null?void 0:a.info)}; XV=function(q){var a=[],w=HH(q);w&&a.push(w);a=g.ry(a,q.Y.zS());w=g.V(q.W);for(var G=w.next();!G.done;G=w.next()){G=G.value;for(var k=g.V(G.info.sK),b=k.next(),O={};!b.done;O={Cc:void 0},b=k.next())O.Cc=b.value,G.nH&&(a=g.L$(a,function(e){return function(N){return!A8y(N,e.Cc)}}(O))),(gK(O.Cc)||O.Cc.type===4)&&a.push(O.Cc)}q.U&&!sKm(q.U,g.s6(a),q.U.V.eD())&&a.push(q.U); return a}; QWN=function(q,a){if(!q.length)return!1;for(a+=1;a=a){a=b;break a}}a=k}return a<0?NaN:QWN(q,w?a:0)?q[a].startTime:NaN}; Dd=function(q){return!(!q.U||q.U.V===q.V)}; BRm=function(q){return Dd(q)&&q.V.cH()&&q.U.V.info.J2a&&q.L1080&&!q.DX&&(q.L7=36700160,q.VN=5242880,q.Tl=Math.max(4194304,q.Tl),q.DX=!0);a.video.qualityOrdinal>2160&&!q.El&&(q.L7=104857600,q.J2=13107200,q.El=!0);g.Wo(q.cT.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?a.isEncrypted()&&g.py()&&g.Hr("samsung")&&(g.Hr("kant")||g.Hr("muse"))&&(q.J2=g.Wo(q.cT.experiments,"html5_samsung_kant_limit_max_bitrate")):a.isEncrypted()&&g.py()&&g.Hr("kant")&&(q.J2=1310720);q.L6!==0&&a.isEncrypted()&& (q.J2=q.L6);q.N5!==0&&a.isEncrypted()&&w&&(q.J2=q.N5);a.J2&&(q.bV=Math.max(q.zj,Math.min(q.Tl,5*a.J2)))}; Md=function(q){return q.V&&q.t5}; a4=function(q){return q.V&&q.gT&&q.playbackStartPolicy}; wr=function(q,a,w,G){q.gT&&(q.playbackStartPolicy=a,q.Rl=w,q.IL=G)}; gr=function(q,a,w){w=w===void 0?0:w;return g.Wo(q.cT.experiments,a)||w}; oxU=function(q){var a=q===void 0?{}:q;q=a.OT;var w=a.Oj;var G=a.jZ;var k=a.P5;a=a.vY;this.OT=q;this.Oj=w;this.jZ=G;this.P5=k;this.vY=a}; uqK=function(q,a){if(a<0)return!0;var w=q.P5();return a0)return 2;if(a<0)return 1;w=q.P5();return a(0,g.Zj)()?0:1}; kw=function(q,a,w,G,k,b,O,e,N,Y,P,K,d,T){T=T===void 0?null:T;g.c.call(this);var F=this;this.loader=q;this.policy=a;this.videoTrack=w;this.audioTrack=G;this.Y=k;this.V=b;this.timing=O;this.D=e;this.schedule=N;this.X9=Y;this.W=P;this.F9=K;this.L9=d;this.D9=T;this.UK=!1;this.Lc="";this.Ek=null;this.qe=NaN;this.y7=!1;this.U=null;this.EP=this.J=NaN;this.YX=this.L=0;this.logger=new g.Zw("dash");this.qh={UO:function(J,Q){return F.UO(J,Q)}}; this.policy.iV>0&&(this.Lc=g.K5(this.policy.iV));this.policy.qM&&(this.S=new G9(this.loader,this.policy,this.schedule),g.p(this,this.S))}; izl=function(q,a,w){var G=a.U?a.U.V.GZ:a.V.GZ;var k=q.Y,b;(b=!q.policy.D$)||(b=vX(G.V)===vX(G.U));b?G=!1:(k=Xs(k,vX(G.U)),b=6E4*Math.pow(k.Y,1.6),(0,g.Zj)()=k.Y?(k.d8("sdai",{haltrq:b+1,est:k.Y}),G=!1):G=k.U!==2;if(!G||!te(a.U?a.U.V.GZ:a.V.GZ,q.policy,q.Y,q.loader.Em())||q.loader.isSuspended&&(!vm(q.schedule)||q.loader.tX))return!1;if(q.policy.Y&&GO>=5)return g.tD(q.loader.X2),!1;if(q.X9.isManifestless){if(a.W.length>0&&a.U&&a.U.Dh===-1||a.W.length>=q.policy.VO||!q.policy.ZQ&&a.W.length>0&&!q.policy.X.Oj)return!1;if(a.X)return!q.X9.isLive|| !isNaN(q.qe)}if(S1N(a))return q.logger.debug("Pending request with server-selectable format found"),!1;if(!a.U){if(!a.V.cH())return!1;kK(a,q.loader.getCurrentTime())}if(eF(a)&&(a.vM()!==eF(a)||q.loader.isSuspended))return!1;k=(G=q.policy.yu)&&!a.W.length&&un(a,!0)=q.policy.di)return!1;G=a.U;if(!G)return!0;G.type===4&&G.V.cH()&&(a.U=g.s6(G.V.fZ(G)),G= a.U);if(!G.Dw()&&!G.V.Cv(G))return!1;b=q.X9.pT||q.X9.Y;if(q.X9.isManifestless&&b){b=a.V.index.P5();var O=w.V.index.P5();b=Math.min(b,O);if(a.V.index.H7()>0&&b>0&&G.Dh>=b)return a.f7=b,w.f7=b,!1}if(G.V.info.audio&&G.type===4||G.Dw())return!1;b=!a.D&&!w.D;if(k=!k)k=G.L,k=!!(w.U&&!If(w.U)&&w.U.LWIN(q,a)?(WIN(q,a),!1):(q=a.M1)&&q.isLocked()?!1:!0}; WIN=function(q,a){var w=q.V;w=w.V?w.V.QL:null;if(q.policy.jt&&w)return w.startSecs+w.LT+15;a=G3(q.loader,a);q.policy.yN>0&&(w=((0,g.Zj)()-q.loader.jP)/1E3,a=Math.min(a,q.policy.yN+q.policy.ym*w));a=q.loader.getCurrentTime()+a;return q.policy.eh&&(w=DiG(q.loader)+q.policy.eh,w=0||a.GZ.U8("defrag")==="1"||a.GZ.U8("otf")==="1"){a=null;break a}k=Dm(0,4096)}k=new bj([new ys(5,G.V,k,"createProbeRequestInfo"+G.X,G.Dh)],a.U);k.Zw=w;k.V=a.V;a=k}a&&zjc(q,a)}}; zjc=function(q,a){q.loader.Ii(a);var w=Ley(a),G=q.loader.dc();w={f0:q.schedule,Dc:w,Pk:ZxV(q.D,w),i9:q5(a.sK[0]),wd:z1(a.GZ.V),XA:q.policy.W,XT:function(O,e){q.loader.X8(O,e)}}; if(q.schedule.U.L){var k,b;w.eR=(((k=q.videoTrack.V)==null?void 0:k.info.J2)||0)+(((b=q.audioTrack.V)==null?void 0:b.info.J2)||0)}q.Ek&&(w.Dh=a.sK[0].Dh,w.qe=a.qe,w.Ek=q.Ek);G={Ke:Blc(a,q.loader.getCurrentTime()),QP:q.policy.Th&&lj(a)&&a.sK[0].V.info.video?cwJ(q.W):void 0,iq:q.policy.jt,poToken:q.loader.g2(),b7:q.loader.xp(),Lc:q.Lc,EP:isNaN(q.EP)?null:q.EP,D9:q.D9,L9:q.L9,YX:q.YX,r5:G};return new g7(q.policy,a,w,q.Y,function(O,e){try{a:{var N=O.info.sK[0].V,Y=N.info.video?q.videoTrack:q.audioTrack; if(!(O.state>=2)||O.isComplete()||O.t7()||!(!q.loader.w8||q.loader.isSuspended||un(Y)>3)){var P=tEG(O,q.policy,q.Y);P===1&&(q.y7=!0);yjV(q,O,P);if(O.isComplete()||O.t2()&&e<3){if(q.policy.W){var K=O.timing.Ws();K.rst=O.state;K.strm=O.xhr.CP();K.cncl=O.xhr&&O.t8.Y?1:0;q.loader.d8("rqs",K)}O.Se&&q.loader.d8("sbwe3",{},!0)}if(!q.t2()&&O.state>=2){GmV(q.timing,O,N);var d=q.loader;q.EP&&O.Il&&d&&(q.EP=NaN,q.loader.rO(O.Il),q.loader.nK(),q.loader.d8("cabrUtcSeek",{mediaTimeSeconds:O.Il}));O.R1&&q.EP&&O.R1&& !O.R1.action&&(q.loader.aM(q.EP),q.EP=NaN,q.loader.d8("cabrUtcSeekFallback",{targetUtcTimeSeconds:q.EP}));O.bR&&q.loader.j8(O.bR);q.policy.C0&&(q.YX=O.YX);if(O.state===3){zi(Y,O);lj(O.info)&&Oy(q,Y,N,!0);if(q.U){var T=O.info.Nk();T&&q.U.fF(O.info.sK[0].Dh,N.info.id,T)}q.loader.j4()}else if(O.isComplete()&&O.info.sK[0].type===5){if(O.state!==4)O.ir()&&q.loader.handleError(O.Ne(),O.C6());else{var F=(O.info.sK[0].V.info.video?q.videoTrack:q.audioTrack).W[0]||null;F&&F instanceof g7&&F.t7()&&F.sU()}O.dispose()}else{O.ir()|| qVJ(q,O);var J;((J=O.pC)==null?0:J.itagDenylist)&&q.loader.bB(O.pC.itagDenylist);if(O.state===4)gMG(q,O),q.V&&eoc(q.V,O.info,q.U);else if(q.policy.sE&&O.kU()&&!O.isComplete()&&!gMG(q,O)&&!O.ir())break a;O.ir()&&(agl(q,O),isNaN(q.EP)||(q.loader.aM(q.EP),q.EP=NaN));q.policy.OQ&&!O.isComplete()?w8_(q.loader):q.loader.j4();var Q=vxG(O,q.policy,q.Y);yjV(q,O,Q)}}}}}catch(B){e=q.UK?1:0,q.UK=!0,O=Kf(e),e=dl(B,e),q.loader.handleError(e.errorCode,e.details,e.severity),O||q.loader.xL()}},G)}; qVJ=function(q,a){if(a.It&&a.state>=2&&a.state!==3){var w=a.xhr.getResponseHeader("X-Response-Itag");if(w){q.logger.debug(function(){return"Applying streamer-selected format "+w}); var G=HgJ(q.W,w),k=a.info.W;k&&(k-=G.rq(),G.W=!0,a.info.sK[0].V.W=!1,MlU(a,G.tE(k)),lr(q.loader,q.videoTrack,G),ful(q.videoTrack,G),q.loader.gP(G.info.video.quality),(k=a.qa())&&G.info.lastModified&&G.info.lastModified!==+k&&zi(q.videoTrack,a))}else a.It=!1}}; agl=function(q,a){var w=a.info.sK[0].V,G=a.Ne();if(z1(w.GZ.V)){var k=g.xe(a.Jp(),3);q.loader.d8("dldbrerr",{em:k||"none"})}k=a.info.sK[0].Dh;var b=yB(q.V,a.info.sK[0].D,k);G==="net.badstatus"&&(q.L+=1);if(a.canRetry()&&GuJ(q.loader)){if(!(a.info.GZ.W>=q.policy.Xi&&q.U&&a.info.isDecorated()&&G==="net.badstatus"&&q.U.R3(b,k))){k=(w.info.video&&w.GZ.W>1||a.eZ===410||a.eZ===500||a.eZ===503)&&!(kO(q.W.D).size>0)&&!z1(w.GZ.V);b=a.C6();var O=w.info.video?q.videoTrack:q.audioTrack;k&&(b.stun="1");q.loader.handleError(G, b);q.t2()||(k&&(q.logger.debug(function(){return"Stunning format "+w.info.id}),YO(q.W,w)),zi(O,a),q.loader.j4())}}else O=1,q.U&&a.info.isDecorated()&&G==="net.badstatus"&&q.U.R3(b,k)&&(O=0),q.X9.isLive&&a.Ne()==="net.badstatus"&&q.L<=q.policy.PM*2?(fhJ(q.X9),q.X9.pT||q.X9.isPremiere?lW(q.loader,0,{e1:"badStatusWorkaround"}):q.X9.Y?lW(q.loader,q.X9.jt,{e1:"badStatusWorkaround", RP:!0}):eD(q.loader)):q.loader.handleError(G,a.C6(),O)}; gMG=function(q,a){if(q.policy.useUmp&&a.t2())return!1;try{var w=a.info.sK[0].V,G=w.info.video?q.videoTrack:q.audioTrack;if(q.X9.isManifestless&&G){q.L=0;G.X&&(a.t2(),a.isComplete()||a.kU(),G.X=!1);a.xj()&&q.loader.MS.bM(1,a.xj());var k=a.H7(),b=a.tj();Ww(q.X9,k,b)}if(a.info.i9()&&!Os(a.info))for(var O=g.V(a.kK()),e=O.next();!e.done;e=O.next())Jjl(G,e.value);for(q.loader.getCurrentTime();G.W.length&&G.W[0].state===4;){var N=G.W.shift();VEl(G,N);G.Tl=N.HS()}G.W.length&&VEl(G,G.W[0]);var Y=!!eF(G);Y&& a instanceof qd&&(w.info.t$()?DKV(q.timing):WS_(q.timing));return Y}catch(P){a=a.C6();a.origin="hrhs";a:{q=q.loader;w=P;if(w instanceof Error){a.msg||(a.msg=""+w.message);a.name||(a.name=""+w.name);if(w instanceof g.UH&&w.args)for(G=g.V(Object.entries(w.args)),k=G.next();!k.done;k=G.next())b=g.V(k.value),k=b.next().value,b=b.next().value,a["arg"+k]=""+b;g.Qa(w);if(w.level==="WARNING"){q.aW.Uw(a);break a}}q.handleError("fmt.unplayable",a,1)}return!1}}; kuG=function(q){var a=q.videoTrack.V.index;q.Ek=new oxU({OT:q.policy.OT,Oj:q.policy.X.Oj,jZ:a.lc(),P5:function(){return a.P5()}, vY:function(){return a.vY()}})}; Oy=function(q,a,w,G){if(!(w.cH()||w.Rt()||w.W||!te(w.GZ,q.policy,q.Y,q.loader.Em())||w.info.K7==="f"||q.policy.V)){if(G){G=q.D;var k=w.info;G=Edm(G,k.video?G.policy.kN:G.policy.WF,k.J2)}else G=0;G=w.tE(G);q=zjc(q,G);Os(G)&&cH(a,q);w.W=!0}}; NC=function(q,a,w,G,k,b,O,e){g.c.call(this);var N=this;this.loader=q;this.S4=a;this.videoTrack=w;this.audioTrack=G;this.X9=k;this.J=b;this.isAudioOnly=O;this.S=e;this.U=dM;this.y7=!1;this.logger=new g.Zw("sabr");this.X=this.UK=this.F9=!1;this.videoInfos=this.L=this.J.videoInfos;this.W=this.jt=this.J.V;this.V=new w1(a,b,function(Y,P){N.loader.d8(Y,P)}); this.isAudioOnly&&bA_(this,this.X9.V["0"])}; OAV=function(q,a){var w=[];a=g.V(a);for(var G=a.next();!G.done;G=a.next())w.push(g.WY(G.value,q.X9.pk));return w}; bA_=function(q,a,w){a!==q.Y&&(q.Y&&(q.y7=!0),q.Y=a,q.k7(a,q.videoTrack,w))}; YVl=function(q,a){q.logger.debug("setConstraint: "+nx(a));Md(q.S4)&&(q.UK=a.reason==="m"||a.reason==="l"?!0:!1);a.reason==="m"?a.isLocked()&&lgf(q,a.V):egc(q,a)?N8J(q,a.U,a.V):q.videoInfos=q.L;q.U=a}; egc=function(q,a){return q.S4.Os&&a.reason==="b"||q.S4.fL&&a.reason==="l"||q.S4.po?!1:q.S4.u8?!0:a.reason==="l"||a.reason==="b"||a.reason==="o"}; P0K=function(q,a){return a.isLocked()&&q.V.U||q.U===void 0?!1:a.equals(q.U)}; KvG=function(q,a){var w,G=(w=q.Y)==null?void 0:w.info.video.qualityOrdinal;return q.y7?!0:q.Y?a!==G?!0:!q.V.U||q.S4.hJ&&q.V.V===q.Y.info.itag?!1:!0:!1}; lgf=function(q,a){var w=q.V.V;if(w){q.videoInfos=q.L;var G=g.Z7(q.videoInfos,function(k){return k.id===w}); G&&G.video.qualityOrdinal===a?q.videoInfos=[G]:(G=q.videoInfos.map(function(k){return k.id}),q.loader.d8("sabrpf",{pfid:""+w, vfids:""+G.join(".")}),N8J(q,a,a),bn(q.V,""))}else N8J(q,a,a)}; N8J=function(q,a,w){q.videoInfos=q.L;q.videoInfos=g.L$(q.videoInfos,function(G){return G.video.qualityOrdinal>=a&&G.video.qualityOrdinal<=w})}; d2U=function(q,a,w){if(q.S){var G=g.L$(q.W,function(k){return k.id===q.S}); return Yw(G,w).includes(a)}G=g.L$(q.W,function(k){var b;return!((b=k.Pq)==null||!b.isDefault)}); return G.length>0?Yw(G,w).includes(a):Yw(q.W,w).includes(a)}; Yw=function(q,a){return q.map(function(w){return vG(g.WY(w,a))})}; T8U=function(q){var a;if((a=q.U)==null?0:a.isLocked())return q.videoInfos;var w=kO(q.V);a=g.L$(q.videoInfos,function(G){return G.J2>q.S4.J2?!1:!w.has(G.id)}); FoG(q.V)&&(a=g.L$(a,function(G){return G.video.width<=854&&G.video.height<=480})); return a}; svl=function(q,a,w){var G=q.X9,k=q.aW.getVideoData(),b=q.aF,O=AeK({cT:k.B(),aW:q.aW,R2:q.R2,S4:q.S4,KL:q.KL,He:q.He,I5:q.I5,jN:q.jN,X1:q.X1,isPrefetch:q.isPrefetch,ix:q.ix,sabrLicenseConstraint:k.sabrLicenseConstraint,Uz:q.Uz,Vv:q.Vv,tf:q.tf,Ex:q.Ex,l4:!!b,authorizedFormats:k.authorizedFormats}),e=h5(k,q.r5,q.nextRequestPolicy,q.CH,q.Hg,q.HL,q.s1);w&&a&&(w=e.Fi?e.Fi.map(function(K){return K.type}):[],a("sabr",{stmctxt:w.join("_"), unsntctxt:e.z7?e.z7.join("_"):""}));a=q.V6;w=q.F4;if(w===void 0&&a===void 0){var N;w=$2m(G.pk,(N=q.pV)==null?void 0:N.video);var Y;a=$2m(G.pk,(Y=q.pV)==null?void 0:Y.audio)}if(k.D9)var P=k.D9;k={r9:O,XB:q.XB,V6:a,F4:w,aF:b,videoPlaybackUstreamerConfig:P,RF:e};q.xU&&(k.xU=q.xU);k.uK=q.uK;k.q4=G.St;return k}; $2m=function(q,a){return a?[g.WY(a.info,q)]:[]}; Pd=function(q,a,w){var G=this;this.requestType=q;this.GZ=a;this.Yl=w;this.U=null;this.qh={yOT:function(){var k;return(k=G.data)==null?void 0:k.isPrefetch}, Hg:function(){var k;return(k=G.data)==null?void 0:k.Hg}}}; tlc=function(q,a,w){a=Ir(q.GZ,FvG(q,a,w),a);q.kY()&&a.set("probe","1");return a}; FvG=function(q,a,w){q.Zw===void 0&&(q.Zw=q.GZ.Zw(a,w));return q.Zw}; C0G=function(q){var a,w;return((a=q.V)==null?void 0:(w=a.r9)==null?void 0:w.Jl)||0}; ZAU=function(q){var a,w;return!!((a=q.V)==null?0:(w=a.r9)==null?0:w.Uz)}; EMN=function(q){var a={},w=[],G=[];if(!q.data)return a;for(var k=0;k0;N--)w.push(e)}w.length!==O?a.error=!0:(b=w.slice(-b),w.length=k,oMU(a,w,b));break;case 1:oMU(a,FM,HAK);break;case 0:Igc(a, a.V&7);w=V$(a,16);k=V$(a,16);(w^k)!==65535&&(a.error=!0);a.output.set(a.data.subarray(a.U,a.U+w),a.W);a.U+=w;a.W+=w;break;default:a.error=!0}q.W>q.output.length&&(q.output=new Uint8Array(q.W*2),q.W=0,q.U=0,q.Y=!1,q.V=0,q.register=0)}q.output.length!==q.W&&(q.output=q.output.subarray(0,q.W));return q.error?new Uint8Array(0):q.output}; oMU=function(q,a,w){a=X8l(a);w=X8l(w);for(var G=q.data,k=q.output,b=q.W,O=q.register,e=q.V,N=q.U;;){if(e<15){if(N>G.length){q.error=!0;break}O|=(G[N+1]<<8)+G[N]<>=7;Y<0;)Y=a[(O&1)-Y],O>>=1;else O>>=Y&15;e-=Y&15;Y>>=4;if(Y<256)k[b++]=Y;else if(q.register=O,q.V=e,q.U=N,Y>256){O=ZK[Y];O+=V$(q,CC[Y]);N=jvN(q,w);e=Ey[N];e+=V$(q,cdG[N]);if(t6_&&Ow.length&&(q.error=!0);q.register|=(w[G+1]<<8)+w[G]<=0)return Igc(q,w&15),w>>4;for(Igc(q,7);w<0;)w=a[V$(q,1)-w];return w>>4}; V$=function(q,a){for(;q.V=q.data.length)return q.error=!0,0;q.register|=q.data[q.U++]<>=a;q.V-=a;return w}; Igc=function(q,a){q.V-=a;q.register>>=a}; X8l=function(q){for(var a=[],w=g.V(q),G=w.next();!G.done;G=w.next())G=G.value,a[G]||(a[G]=0),a[G]++;var k=a[0]=0;w=[];var b=0;G=0;for(var O=1;O7&&(b+=a[O]);for(k=1;k>N&1;e=b<<4|O;if(O<=7)for(N=1<<7-O;N--;)G[N<>=7;O--;){G[N]||(G[N]=-a,a+=2);var Y=k&1;k>>=1;N=Y-G[N]}G[N]=e}}return G}; zgl=function(q){var a,w,G,k,b,O,e,N,Y;return g.h(function(P){switch(P.U){case 1:if(!vMl)throw Error("DecompressionStream is not supported");a=Lz.jQ();w=new DecompressionStream("gzip");G=w.writable.getWriter();G.write(q);G.close();k=w.readable.getReader();b=new yI([]);case 2:return g.n(P,k.read(),5);case 5:O=P.V;e=O.value;if(N=O.done){P.Gl(4);break}b.append(e);P.Gl(2);break;case 4:return Y=Gp(b),Lz.td("gznb",a,Math.ceil(Y.byteLength/16)),P.return(Y)}})}; iAj=function(q){HF.call(this,"onesie");this.X3=q;this.V={};this.Y=!0;this.W=null;this.queue=new fgJ(this);this.D={}}; Wvc=function(q){var a=q.queue;a.V.length&&a.V[0].isEncrypted&&!a.U&&(a.V.length=0);a=g.V(Object.keys(q.V));for(var w=a.next();!w.done;w=a.next()){w=w.value;var G=q.V[w];if(!G.q2){var k=q.queue;k.V.push({videoId:G.videoId,formatId:w,isEncrypted:!1});k.U||sy(k)}}}; D2J=function(q,a){var w=a.totalLength,G=!1;switch(q.W){case 0:q.E_(a,q.Y).then(function(k){var b=q.X3;b.A8("oprr");b.playerResponse=k;b.Tr||(b.AV=!1);Jr(b)},function(k){q.X3.fail(k)}); break;case 2:q.A8("ormk");a=Gp(a);q.queue.decrypt(a);break;default:G=!0}q.X3.Ls&&q.X3.d8("ombup","id.11;pt."+q.W+";len."+w+(G?";ignored.1":""));q.W=null}; Rgy=function(q,a){var w,G,k,b,O;return g.h(function(e){switch(e.U){case 1:q.X3.A8("oprgz_s");if(!vMl){e.Gl(2);break}g.ml(e,3);return g.n(e,zgl(a),5);case 5:return w=e.V,q.X3.A8("oprgz_n"),e.return(w);case 3:G=g.rc(e),q.X3.d8("gzerr",{impl:"native",err:""+G});case 2:if(k=q.X3.B().Vm)try{var N=Lz.jQ(),Y=k.qg(a),P=k,K=Y!=null?Y:a,d=K.byteOffset,T=K.byteLength,F=P.exports.getInflatedSize(d,T);if(F===0)throw Error("wasm_gz: bad input");var J=P.malloc(F),Q=P.exports.inflateGzip(d,T,J);if(Q)throw P.free(J), Error("wasm_gz: fail"+Q);var B=new Uint8Array(P.exports.memory.buffer,J,F);Y&&k.free(Y.byteOffset);var L=k.Mt(B);Lz.td("gzwb",N,Math.ceil(L.byteLength/16));b=L;q.X3.A8("oprgz_w");return e.return(b)}catch(M){q.X3.d8("gzerr",{impl:"wasm",err:""+M})}N=Lz.jQ();Y=g.uYG(new g.p8j(a));Lz.td("gzjb",N,Math.ceil(Y.byteLength/16));O=Y;q.X3.A8("oprgz_p");return e.return(O)}})}; ydf=function(q){return new Promise(function(a){setTimeout(a,q)})}; qrj=function(q,a){var w=q.B();w=q.qM&&w.T("html5_onesie_preload_use_content_owner");var G=q.KX,k=Cz(a.V7.experiments,"debug_bandaid_hostname");if(k)a=dr(a,k);else if((w===void 0?0:w)&&(G==null?0:G.url)&&!a.U){var b=vX(new g.u5(G.url));a=dr(a,b)}else a=(b=a.V.get(0))==null?void 0:b.location.clone();if(a&&q.videoId){b=nz(q.videoId);q=[];if(b)for(b=g.V(b),w=b.next();!w.done;w=b.next())q.push(w.value.toString(16).padStart(2,"0"));a.set("id",q.join(""));return a}}; gQj=function(q,a,w){w=w===void 0?0:w;var G,k;return g.h(function(b){if(b.U==1)return G=[],G.push(a.load()),w>0&&G.push(ydf(w)),g.n(b,Promise.race(G),2);k=qrj(q,a);return b.return(k)})}; asJ=function(q,a,w,G){G=G===void 0?!1:G;q.set("cpn",a.clientPlaybackNonce);q.set("opr","1");var k=a.B();q.set("por","1");w5()||q.set("onem","1");a.startSeconds>0&&q.set("osts",""+a.startSeconds);G||(k.T("html5_onesie_disable_partial_segments")&&q.set("oses","1"),a=k.T("html5_gapless_onesie_no_media_bytes")&&AF(a)&&a.qM,w&&!a?(a=w.audio,q.set("pvi",w.video.join(",")),k.T("html5_onesie_disable_audio_bytes")||q.set("pai",a.join(",")),FI||q.set("osh","1")):(q.set("oad","0"),q.set("ovd","0"),q.set("oaad", "0"),q.set("oavd","0")))}; wDm=function(q,a,w,G,k){k=k===void 0?!1:k;var b="https://youtubei.googleapis.com/youtubei/"+a.xE.innertubeApiVersion+"/player",O=[{name:"Content-Type",value:"application/json"}];G&&O.push({name:"Authorization",value:"Bearer "+G});O.push({name:"User-Agent",value:g.cL()});g.UL("EOM_VISITOR_DATA")?O.push({name:"X-Goog-EOM-Visitor-Id",value:g.UL("EOM_VISITOR_DATA")}):(w=w.visitorData||g.UL("VISITOR_DATA"))&&O.push({name:"X-Goog-Visitor-Id",value:w});(w=g.UL("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&O.push({name:"X-YouTube-Lava-Device-Context", value:w});(a=Cz(a.experiments,"debug_sherlog_username"))&&O.push({name:"X-Youtube-Sherlog-Username",value:a});q=KZ(JSON.stringify(q));return{url:b,hA:O,postBody:q,oWT:k,yY:k}}; GOf=function(q,a,w,G,k,b,O){var e=q.WR,N=q.S5;q=q.VG9;var Y=e!==void 0&&N!==void 0,P=G.getVideoData(),K,d=a.V.encryptedClientKey;a=Y?a.iv:void 0;Y=tj(w.schedule,!0);k=k||!!w5()&&Y>1572864;return{innertubeRequest:{r$e:q,ij:e,S5:N,encryptedClientKey:d,iv:a,m_2:!0,fM:!0,Vq:"DecompressionStream"in window||!k,oDl:w.experiments.Zh("html5_use_jsonformatter_to_parse_player_response")},r9:AeK({cT:w,aW:G,R2:P.startSeconds*1E3}),onesieUstreamerConfig:b,f6:O,RF:h5(P),reloadPlaybackParams:(K=P.RE)==null?void 0: K.reloadPlaybackParams}}; kOm=function(q,a,w,G,k,b){var O=g.oe(q,Lf),e;if(!q.yY)if(e=Qvm(a,O)){var N=e.Hw;e=e.signature}else e=N=a.encrypt(O),(0,g.Zj)(),e=G6l(new wpc(a.V.W),e,a.iv);return GOf(N&&e?{WR:N,S5:e}:{VG9:O},a,w,G,!!q.yY,k,b)}; bcl=function(q,a,w,G,k,b){var O,e,N;return g.h(function(Y){if(Y.U==1)return O=g.oe(q,Lf),g.n(Y,m2m(a,O),2);if(Y.U!=3)return e=Y.V,g.n(Y,Ady(a,e),3);N=Y.V;return Y.return(GOf({WR:e,S5:N},a,w,G,!!q.yY,k,b))})}; Ocf=function(q,a,w,G,k,b){var O=g.oe(q,Lf);if(O=Qvm(a,O))return GOf({WR:O.Hw,S5:O.signature},a,w,G,!!q.yY,k,b)}; I4=function(q,a){g.c.call(this);var w=this;this.aW=q;this.playerRequest=a;this.logger=new g.Zw("onesie");this.xhr=null;this.state=1;this.h5=new m5;this.oR=!1;this.playerResponse="";this.SR=new $K(this);this.NQ=new iAj(this);this.LP="";this.hs=this.N2=!1;this.k8="";this.enableCompression=this.Tr=this.QK=!1;this.L5=[];this.wk=-1;this.Dd=0;this.V7=this.aW.B();this.videoData=this.aW.getVideoData();this.Ls=this.V7.TZ();this.Hb=this.V7.L0;this.Uc=new V6c(this.Hb.V);this.hc=this.V7.T("html5_onesie_check_timeout"); this.HD=new g.o1(this.MY,500,this);this.du=new g.o1(this.eF,1E4,this);this.mK=new g.o1(function(){if(!w.isComplete()){var G=Q$(w);w.fail(new g.PY("net.timeout",G))}},1E3); this.bf=new g.o1(this.Gl7,2E3,this);this.I3=this.aW.xp();this.AV=this.T("html5_onesie_wait_for_media_availability");g.p(this.videoData,this);g.p(this,this.HD);g.p(this,this.du);g.p(this,this.bf);q=E1();FI&&q&&(this.Ff=new Map);this.Gu=new Map;this.Sf=new Map;this.vx=new Map;this.e9=new Map}; $w=function(q,a){var w;return(w=q.Ff)==null?void 0:w.get(a)}; efm=function(q,a,w){var G;return g.h(function(k){if(k.U==1)return q.A8("oprd_s"),lsK(q)?g.n(k,x2j(q.Uc,a,w),3):(G=q.Uc.decrypt(a,w),k.Gl(2));k.U!=2&&(G=k.V);q.A8("oprd_c");return k.return(G)})}; NMy=function(q){return q.T("html5_onesie_host_probing")||q.Ls?FI:!1}; Jr=function(q){if(!q.playerResponse)return!1;if(q.QK)return!0;var a=q.videoData.T("html5_onesie_audio_only_playback")&&xQ(q.videoData);if(q.Ff&&q.AV){if(!q.Ff.has(q.LP))return!1;var w=q.Ff.get(q.LP),G;if(G=w){G=!1;for(var k=g.V(w.wG.keys()),b=k.next();!b.done;b=k.next())if(b=w.wG.get(b.value))for(var O=g.V(b.TX),e=O.next();!e.done;e=O.next())e.value.fv>0&&(b.t$?G=!0:a=!0);G=!(a&&G)}if(G)return!1}q.A8("ofr");q.h5.resolve(q.playerResponse);if(!q.hc){var N;(N=q.mK)==null||N.start();q.du.start()}return q.QK= !0}; PNy=function(q){if(q.Ff&&!q.T("html5_onesie_media_capabilities")){q.A8("ogsf_s");var a=Z0j(q.aW.getVideoData(),function(G,k){q.d8(G,k)}),w=Yrc(q.aW); a.video=YYc(w,a.video);q.A8("ogsf_c");if(a.video.length)return a;q.d8("ombspf","l."+w.U+";u."+w.V+";o."+w.W+";r."+w.reason)}}; lsK=function(q,a){return q.T("html5_onesie_sync_request_encryption")||(a==null?0:a.yY)||g.Jd(q.V7)&&q.T("html5_embed_onesie_use_sync_encryption")?!1:!!w5()}; Q$=function(q){if(!q.rG)return{};var a=q.rG.Ws(),w;a.d=(w=q.rG.f7)==null?void 0:w.m$();a.shost=q.sD;a.ty="o";return a}; Khl=function(q,a){var w,G;(G=(q=(w=q.Ff)==null?void 0:w.get(a))==null)||(a=q.W?!1:q.W=!0,G=!a);return!G}; dHV=function(q,a,w,G,k,b,O,e,N,Y,P,K){g.c.call(this);var d=this;this.aW=q;this.loader=a;this.policy=w;this.audioTrack=G;this.videoTrack=k;this.X9=b;this.f0=O;this.BT=e;this.W=N;this.timing=Y;this.J=P;this.EK=K;this.V=[];this.D={};this.St=this.h2=!1;this.Y=this.le=this.F9=this.A2=this.X1=0;this.S=null;this.y7={uK:[],XB:[]};this.jt={uK:[],XB:[]};this.X=null;this.L=[];this.qh={gYT:function(){return d.V}, UjK:function(){return d.D}, Fz8:function(){d.V.length=0}, HmQ:function(){return d.videoData.BT}, c78:function(){return d.F9}, G2h:function(T){d.F9=T}, iU7:function(T){d.Y=T}, IK:function(T){d.X=T}, AF:function(T){d.L=T}}; this.videoData=this.aW.getVideoData();this.policy.qM&&(this.L7=new G9(this.loader,this.policy,this.f0),g.p(this,this.L7))}; spy=function(q,a){a=a===void 0?!1:a;if(TM_(q)){q.policy.L&&q.loader.d8("sabrcrq",{create:1});var w=new Pd(0,q.X9.S,q);q.policy.nu>0&&q.Y++;a=$HK(q,w,a);q.V.push(a);var G;(G=q.L7)==null||Iu_(G,q.X9.S)}}; Zcc=function(q,a){var w=Fhm(q);if(q.policy.Q0){var G=q.y7;var k=q.jt}else G=ur(q,q.audioTrack),k=ur(q,q.videoTrack);var b=[].concat(g.Tf(G.uK),g.Tf(k.uK));tr(q)&&b.push.apply(b,g.Tf(q.L));var O=[].concat(g.Tf(G.XB),g.Tf(k.XB)),e=q.loader.dc();if(q.policy.Qr&&!q.videoData.isLivePlayback){var N=q.videoData.lengthSeconds*1E3;w>=N&&q.loader.d8("invalidSabrCmt",{cmt:w,vd:N})}var Y,P;N=q.aW;var K=q.X9,d=q.U,T=q.videoData.BT,F=q.policy,J=q.loader.jP,Q=DiG(q.loader)*1E3,B=(Y=q.f7)==null?void 0:Y.I5;Y=(P= q.f7)==null?void 0:P.jN;var L;P=Number((L=q.W.Y)==null?void 0:L.info.itag)||0;var M;L=Number((M=q.W.D)==null?void 0:M.info.itag)||0;a={aW:N,X9:K,uK:b,XB:O,R2:w,nextRequestPolicy:d,CH:T,S4:F,KL:J,He:Q,I5:B,jN:Y,X1:q.X1,isPrefetch:a||q.loader.isSuspended,By:P,Ah:L,r5:e,s1:q.aW.Cl()};w=q.loader.g2();b=nz(w);w&&(a.Hg=b);if(w=q.aW.E9())a.Uz=w*1E3;var H;w=q.W;b=w.F9;if(((H=w.S4)==null?0:Md(H))&&!b)for(H=g.V(w.W),O=H.next();!O.done;O=H.next())if(O.value.Pq){b=!0;break}H=Md(w.S4)&&!b?[]:OAV(w,w.W);a.V6=H; H=q.W;Md(H.S4)&&!H.UK?H=[]:(w=T8U(H),w.length===0&&(w=H.L),H=OAV(H,w));a.F4=H;a.aF=tr(q)?[q.X]:void 0;q.policy.ey&&(a.tf=CNG(q.loader,q.audioTrack),a.Ex=CNG(q.loader,q.videoTrack));if(q.policy.U){H=q.loader.getCurrentTime();G=vd(q,G.uK,H);k=vd(q,k.uK,H);k=Math.min(G,k);tr(q)&&(G=vd(q,q.L,H),q.aW.TZ()&&G0&&q.V[0].oC()&&(a.HL=q.V[0].uJ());return a}; Fhm=function(q){var a,w=q.policy.D&&((a=q.loader)==null?void 0:a.Fd());a=q.loader.getCurrentTime()||0;a=EQN(q,a);var G=q.loader.g$()||0;a+=G;G=Ds(q.videoData)||g.WD(q.videoData);var k=0;w?(G&&(k=Number.MAX_SAFE_INTEGER),q.videoData.y7&&(k=Math.ceil(q.videoData.jt*1E3))):k=Math.ceil(a*1E3);return Math.min(Number.MAX_SAFE_INTEGER,k)}; tr=function(q){return q.policy.RA&&!!q.X}; EQN=function(q,a){if(q.loader.isSeeking())return a;var w=q.aW.Z0();if(!w)return a;w=w.xe();if(w.length===0||kj(w,a))return a;if(!yE(q.videoTrack,a)&&!yE(q.audioTrack,a))return q.loader.d8("sundrn",{b:0,lt:a}),a;for(var G=a,k=Infinity,b=0;ba)){var O=a-w.end(b);O=20)?(q.loader.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),a):G}; vd=function(q,a,w){q=q.loader.g$()||0;return z9(a,(w+q)*1E3)/1E3+w}; TM_=function(q){if(q.policy.nu>0){var a=Math.floor((0,g.Zj)()/1E4);if(a===q.le){if(q.Y>=q.policy.nu){if(q.Y===q.policy.nu){var w={reason:"toomanyrequests"};w.limit=q.Y;q.loader.handleError("player.exception",w);q.Y+=1}return!1}}else q.le=a,q.Y=0}if(q.loader.isSuspended&&q.loader.tX)return!1;if(q.UK&&(0,g.Zj)()0&&(!q.policy.J||q.V.length!==1||!q.V[0].oC()))return!1;var G;if((G=q.X9.S)==null||!te(G,q.policy,q.D,q.loader.Em())||WH(q.audioTrack)&&WH(q.videoTrack))return!1; if(q.policy.U)if(q.policy.BT){var k;if((k=q.EK)==null?0:$5c(k))return!1}else{a=!1;if(q.J.U===2)a=!0;else if(q.J.U===3){Fhm(q);q.loader.g$();var b=Up(q.audioTrack,q.loader.isSeeking()).uK;G=Up(q.videoTrack,q.loader.isSeeking()).uK;k=q.loader.getCurrentTime()||0;b=vd(q,b,k);G=vd(q,G,k);G=Math.min(b,G);k=q.J;G>=k.D?(k.d8("sdai",{haltrq:G,est:k.D}),G=!0):G=!1;G&&(a=!0)}a&&q.policy.L&&q.loader.d8("sabrcrq",{waitad:1});if(a)return!1}q.policy.Q0&&(q.y7=ur(q,q.audioTrack),q.jt=ur(q,q.videoTrack));if(!q.U)return q.policy.L&& q.loader.d8("sabrcrq",{nopolicy:1}),!0;if(q.aW.E9())return q.policy.L&&q.loader.d8("sabrcrq",{utc:1}),!0;if(q.W.X)return q.policy.L&&q.loader.d8("sabrcrq",{audio:1}),!0;if(!q.U.targetAudioReadaheadMs||!q.U.targetVideoReadaheadMs)return q.policy.L&&q.loader.d8("sabrcrq",{noreadahead:1}),!0;if(q.policy.D&&q.loader.Fd())return q.policy.L&&q.loader.d8("sabrcrq",{seekToHead:1}),!0;a=Math.min(G3(q.loader,q.audioTrack)*1E3,q.U.targetAudioReadaheadMs);G=Math.min(G3(q.loader,q.videoTrack)*1E3,q.U.targetVideoReadaheadMs); var O=Math.min(a,G);k=un(q.audioTrack,!0)*1E3;b=un(q.videoTrack,!0)*1E3;var e=q.aW.getCurrentTime()*1E3;if(q.policy.Q0){var N=z9(q.y7.uK,e);var Y=z9(q.jt.uK,e)}else N=k,Y=b;var P=Na||G>=0&&k.Fa>G+1)break;w=Math.max(w,k.startTimeMs+k.durationMs);G=Math.max(G,k.IN)}return Math.max(0,w-a)}; $HK=function(q,a,w){var G={f0:q.f0,XT:function(N,Y){q.aW.X8(N,Y)}, i9:q.policy.vC,XA:q.policy.W};q.f0.U.L&&(G.eR=(q.videoTrack.V.info.J2||0)+(q.audioTrack.V.info.J2||0));q.policy.sT&&(G.jZ=q.audioTrack.V.index.lc(),G.i9=!1);var k=FvG(a,q.policy,q.D)?2:1;k!==q.F9&&(q.F9=k,JFJ(q));w=Zcc(q,w);if(q.policy.J&&q.policy.W&&w.CH){for(var b=k="",O=g.V(w.CH),e=O.next();!e.done;e=O.next())e=e.value,q.videoData.sabrContextUpdates.has(e)||q.policy.J&&w.HL&&w.HL.type===e?k+="_"+e:b+="_"+e;q.loader.d8("sabrbldrqs",{ctxts:k,misctxts:b})}!a.setData(w,q.policy,q.D)&&q.policy.J&&q.loader.handleError("player.exception", {reason:"buildsabrrequestdatafailed"},1);G=new t5(q.policy,a,q.X9,q.D,q,G,q.loader.xp());vF(q.timing);q.policy.L&&q.loader.d8("sabrcrq",{rn:G.YE(),probe:a.kY()});return G}; Wd=function(q,a){if(a.t2()||q.t2())q.policy.RE||(q.policy.D?ir(q.loader):q.loader.j4());else{if(q.policy.W&&a.isComplete()&&a instanceof t5){var w=q.loader,G=w.d8,k,b,O=Object.assign(a.rG.Ws(),{rst:a.state,strm:a.xhr.CP(),d:(k=a.rG.f7)==null?void 0:k.m$(),cncl:a.xhr&&a.t8.Y?1:0,rqb:a.RK,cwt:a.Wf,swt:(b=a.Z3)==null?void 0:b.qU});k=Object.assign(EMN(a.info),O);G.call(w,"rqs",k)}if(a.isComplete()&&a.kY()&&a instanceof t5)q.policy.L0?a.S0()?(a.dispose(),q.V.length===0?q.loader.j4():(q=q.V[0],q instanceof t5&&q.t7()&&q.sU())):a.ir()&&q.loader.handleError(a.Ne(),a.C6()):(a.dispose(),q.loader.j4());else{if(a.xo())a instanceof t5&&GmV(q.timing,a),JFJ(q),mHc(q);else if(a.ir())w=q.aW.E9(),a instanceof t5&&ZAU(a.info)&&w&&q.loader.aM(w),a instanceof I4?q.V.pop():(w=1,a.canRetry()&&GuJ(q.loader)&&(Qpy(q,a),w=0),q.loader.handleError(a.Ne(),a.C6(),w));else{if(q.loader.isSuspended&&!a.isComplete())return;mHc(q)}a.t2()||a instanceof I4||(a.isComplete()?w=vxG(a,q.policy,q.D):(w=tEG(a,q.policy,q.D),w===1&&(q.h2= !0)),w!==0&&(G=new Pd(1,a.info.GZ),G.Zw=w===2,$HK(q,G)));q.policy.OQ&&!a.isComplete()?w8_(q.loader):q.loader.j4()}}}; mHc=function(q){for(;q.V.length&&q.V[0].G$(q.M_());){var a=q.V.shift();AFJ(q,a)}q.V.length&&AFJ(q,q.V[0])}; AFJ=function(q,a){a instanceof t5&&(q.Tl=a);var w=new Set(a.iW(q.M_()));w=g.V(w);for(var G=w.next();!G.done;G=w.next()){var k=G.value;if(!(G=!(a instanceof I4))){G=q.W;var b=G.X9.pk,O=Yw(G.videoInfos,b);b=d2U(G,k,b);var e=O.includes(k);!G.S4.s6||b||e||G.loader.d8("sabrcpf",{fid:""+k,vfids:""+O.join("."),said:G.S||""});G=b||O.includes(k)}if(G&&(G=a.zS(k,q.M_()),O=q.policy.RA&&yz(G[0].V.info.mimeType),a.kU(k,q.M_())))for(k=a.kK(k,q.M_()),k=g.V(k),b=k.next();!b.done;b=k.next())if(b=b.value,q.policy.W&& a instanceof I4&&q.loader.d8("omblss",{s:b.info.c5()}),O)e=q.timing,e.F9||(e.F9=(0,g.Zj)(),g.qx("fcb_r",e.F9,e.V)),e=q,e.videoData.pk()&&e.X&&vG(e.X)===vG(g.WY(b.info.V.info,e.X9.pk))&&e.aW.publish("sabrCaptionsDataLoaded",b,e.AF.bind(e));else{e=b.info.V.info.t$();var N=b.info.V;if(e){var Y=void 0;var P=q.W,K=(Y=a.Uy(q.M_()))==null?void 0:Y.token;P.X&&N!==P.D?Y=!0:(P.X=!1,N!==P.D&&(P.D=N,P.k7(N,P.audioTrack,K)),Y=!1);if(Y)continue}else Y=void 0,bA_(q.W,N,(Y=a.Uy(q.M_()))==null?void 0:Y.token);Y=e? q.audioTrack:q.videoTrack;a instanceof I4&&(Y.X=!1,a instanceof I4&&(e?DKV(q.timing):WS_(q.timing)));try{pe(Y,G,b)}catch(d){b=dl(d),q.loader.handleError(b.errorCode,b.details,b.severity),Y.xL(),q.yz(!1,"pushSlice"),ir(q.loader)}}}}; Qpy=function(q,a){q.policy.J?q.V.splice(q.V.indexOf(a)).forEach(function(w){w.dispose()}):(q.V.pop(),a==null||a.dispose())}; xHN=function(q,a,w){for(var G=[],k=0;k0)for(var a=g.V(q.videoData.sabrContextUpdates.keys()),w=a.next();!w.done;w=a.next()){w=w.value;var G=void 0;((G=q.videoData.sabrContextUpdates.get(w))==null?0:G.sendByDefault)&&q.videoData.BT.add(w)}if(q.policy.J&&q.V.length)for(a=g.V(q.V),w=a.next();!w.done;w=a.next())(w=w.value.uJ())&&w.type&&w.sendByDefault&&q.videoData.BT.add(w.type)}; LhK=function(q){q.policy.Nh&&(q.f7=void 0,q.X1=0)}; BMJ=function(q,a){if(a.ir()||a.t2()){var w=q.loader,G=w.d8,k=a.state;q=q.M_();var b,O;if((a=(b=a.Ff)==null?void 0:b.get(q))==null)a=void 0;else{b=0;q=a.iW();for(var e=0;e=a.mediaTime&&g.v(q.aW.getPlayerState(),8)?(a.resolve([a.mediaTime,a.id]),q.V.delete(a.id)):(a.delay.dispose(),a.delay=new g.o1(function(){hf_(q,a)},(a.mediaTime-w)*1E3/q.aW.getPlaybackRate()),a.delay.start())}; cFJ=function(q,a,w,G){var k=this;this.W=q;this.cpn=a;this.aW=w;this.V=G;this.U=new Map;this.D=new Map;this.X=this.S=NaN;this.L=!1;this.I8="";this.isSeeking=!1;this.J=0;this.Y=new nQj(w);this.oG=w.oG;this.aW.subscribe("SEEK_TO",function(){k.Ib()}); this.aW.subscribe("SEEK_COMPLETE",function(){HcK(k)})}; UHN=function(q,a){if(!q.isSeeking&&q.J!==a&&!isNaN(q.S)){q.J=a;var w=q.L?q.X:q.W.uT(a);(w!==q.X||q.L)&&pDV(q,w,a)}}; pDV=function(q,a,w){var G=q.U.get(a),k=q.W.getStartTime(a),b=q.W.getDuration(a);q.L=!1;q.X=a;var O=k,e;((e=G==null?void 0:G.V)!=null?e:[q.cpn]).forEach(function(N,Y){var P;Y=(P=G==null?void 0:G.U[Y])!=null?P:b;w>=O&&wk?Isc(q,b,q.U.get(b)):b===k&&Isc(q,b,q.U.get(b),G-q.W.getStartTime(b))})}; XDm=function(q,a,w,G){a!==q.I8&&(q.aW.d8("ssevt",{tag:q.V===0?"sstd-cr":q.V===1?"sstd-tm":q.V===2?"sstd-poll":q.V===3?"sstd-poll100":"sstd-unknown",ad:q.cpn!==a,cpn:a,st:w.toFixed(3),late:Math.round(q.isSeeking?0:(G-w)*1E3)}),q.I8=a)}; udJ=function(q){var a=g.V(q.split("."));q=a.next().value;a=a.next().value;return[Number(q),a]}; oQl=function(q,a,w,G){w=a+"."+w;q.D.has(a)?q.D.get(a).push(w):q.D.set(a,[w]);q.V===1&&Srl(q.Y,G,w).then(function(k){var b=g.V(k);k=b.next().value;b=b.next().value;b=g.V(udJ(b));b.next();b=b.next().value;XDm(q,b,k,MOm(q.Y))}); q.V===0&&(q.oG.Md("transitiondetector",w),a=(G+q.aW.g$())*1E3,q.oG.N9([new g.Xo(a,a+5E3,{id:w,namespace:"transitiondetector",priority:9})]))}; tOJ=function(q,a,w,G,k){this.loader=q;this.policy=a;this.schedule=w;this.y8=G;this.J=k;this.F9=NaN;this.U=this.X=this.Y=null;this.V=this.D=this.L=this.startTimeSecs=NaN;this.W=!1;this.S=NaN}; vQ_=function(q,a,w,G,k,b){return a.bD&&a.JS&&w===3?new tOJ(q,a,G,k,b):null}; zfm=function(q,a){if(q.policy.ZK){var w=a.info.J2,G=tj(q.schedule);a=a.index.lc();w=Math.max(1,G/w);q.S=Math.round(Math.max(((w-1)*a+q.policy.h8)/w,a-q.policy.FB)*1E3)}}; DHK=function(q,a){var w=Date.now()/1E3,G=w-q.startTimeSecs,k=w-q.L,b=k>=q.policy.l_,O=!1;if(b){var e=0;!isNaN(a)&&a>q.D&&(e=a-q.D,q.D=a);e/k=q.policy.FB&&!q.W;if(!b&&!w&&icc(q,a))return NaN;w&&(q.W=!0);a:{G=O;w=(0,g.Zj)()/1E3-(q.y8.CO()||0)-q.X.V-q.policy.h8;b=q.U.startTime;w=b+w;if(G){if(isNaN(a)){DK(q,NaN,"n",a);b=NaN;break a}G=a-q.policy.ag;G0&&(e.headers=N);b&&(e.onFinish=b);return Object.keys(e).length>1? e:null}; ODG=function(q,a,w,G,k,b,O,e){ac()&&w.token&&(q=ye(q,{ctt:w.token,cttype:w.M3,mdx_environment:w.mdxEnvironment}));G.T("net_pings_low_priority")&&(a||(a={}),a.priority="low");b||e&&G.T("nwl_skip_retry")?(a==null?a={}:G4l(q,G.T("html5_assert_cpn_with_regex")),O?X3().sendAndWrite(q,a):X3().sendThenWrite(q,a,e)):a?(G4l(q,G.T("html5_assert_cpn_with_regex")),aX_(q,a)):g.re(q,k)}; lZm=function(q){for(var a=[],w=0;w0&&w>0&&!q.U&&q.W<1E7)try{q.Y=q.D({sampleInterval:a,maxBufferSize:w});var G;(G=q.Y)==null||G.addEventListener("samplebufferfull",function(){return g.h(function(k){if(k.U==1)return g.n(k,q.stop(),2);YTy(q);g.Jm(k)})})}catch(k){q.U=N6j(k.message)}}; Pic=function(q,a){var w,G;return!!((w=window.h5vcc)==null?0:(G=w.settings)==null?0:G.set(q,a))}; dTG=function(){var q,a,w,G=(q=window.h5vcc)==null?void 0:(a=q.settings)==null?void 0:(w=a.getPersistentSettingAsString)==null?void 0:w.call(a,"cpu_usage_tracker_intervals");if(G!=null){var k;q=(k=JSON.parse(G))!=null?k:[];k=q.filter(function(Y){return Y.type==="total"}).map(function(Y){return Y.seconds}); a=g.V(KXJ);for(w=a.next();!w.done;w=a.next())w=w.value,k.indexOf(w)===-1&&q.push({type:"total",seconds:w});var b,O;(b=window.h5vcc)==null||(O=b.settings)==null||O.set("cpu_usage_tracker_intervals_enabled",1);var e,N;(e=window.h5vcc)==null||(N=e.settings)==null||N.set("cpu_usage_tracker_intervals",JSON.stringify(q))}}; T6c=function(){var q=window.H5vccPlatformService,a="";if(q&&q.has("dev.cobalt.coat.clientloginfo")&&(q=q.open("dev.cobalt.coat.clientloginfo",function(){}))){var w=q.send(new ArrayBuffer(0)); w&&(a=String.fromCharCode.apply(String,g.Tf(new Uint8Array(w))));q.close()}return a}; g.gk=function(q){g.c.call(this);var a=this;this.provider=q;this.logger=new g.Zw("qoe");this.V=new Map;this.sequenceNumber=1;this.UK=NaN;this.xw="N";this.S=this.uL=this.OG=this.F9=this.U=0;this.Ck=this.L7=this.L=this.le="";this.OQ=this.Tl=NaN;this.Ai=0;this.Nh=-1;this.L0=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.OA=this.isEmbargoed=this.f7=this.isOffline=this.isBuffering=!1;this.C0=[];this.J=null;this.VN=this.Y=this.IW=this.X=!1;this.W=-1;this.A2=!1;this.h8=new g.o1(this.Kt,750,this);this.Ij= this.adCpn=this.jt=this.contentCpn="";this.adFormat=void 0;this.M9=0;this.BT=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.RA=new Set(["gd","pw","gp","gm"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.uF=!1;this.N1=NaN;this.EK=0;this.yN=!1;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.w$=!1;this.aA=new Set;this.qh={Ec:function(G){a.Ec(G)}, im8:function(){return a.D}, yV:function(){return a.contentCpn}, aGh:function(){return a.jt}, reportStats:function(){a.reportStats()}, KzW:function(){return a.V.get("cat")||[]}, U8:function(G){return a.V.get(G)||[]}, Zm9:function(){return a.V}, KF8:function(){return 0}, PRl:function(){return{adCpn:a.adCpn,Ij:a.Ij,adFormat:a.adFormat}}}; this.y7=this.provider.V7.T("html5_qoe_relaxed_reporting");var w=g.Wo(this.provider.V7.experiments,"html5_qoe_proto_mock_length");w&&!y$.length&&(y$=lZm(w));g.p(this,this.h8);try{navigator.getBattery().then(function(G){a.J=G})}catch(G){}g.q_(this,0,"vps",["N"]); q.V7.TZ()&&(this.EK=(0,g.Zj)(),this.N1=g.NL(function(){var G=(0,g.Zj)(),k=G-a.EK;k>500&&a.d8("vmlock",{diff:k.toFixed()});a.EK=G},250)); this.provider.videoData.rh&&(this.remoteControlMode=$Tf[this.provider.videoData.rh]||0);this.provider.videoData.wl&&(w=NZm(this.provider.videoData.wl),w==null?0:w.length)&&(this.remoteConnectedDevices=w);q.V7.TZ()&&(this.h2=new qTl,g.p(this,this.h2));w=g.Wo(q.V7.experiments,"html5_js_self_profiler_sample_interval_ms");q=g.Wo(q.V7.experiments,"html5_js_self_profiler_max_samples");w>0&&q>0&&(this.St=new R4(w,q),g.p(this,this.St))}; aO=function(q,a,w){var G=q.V.get(a);G?G.push(w):q.V.set(a,[w])}; g.q_=function(q,a,w,G){aO(q,w,a.toFixed(3)+":"+G.join(":"))}; s$l=function(q,a){var w=q.adCpn||q.provider.videoData.clientPlaybackNonce,G=q.provider.getCurrentTime(w);g.q_(q,a,"cmt",[G.toFixed(3)]);w=G=q.provider.Ye(w);if((!q.D||q.provider.V7.T("html5_shorts_gapless_no_gllat")&&AF(q.provider.videoData)?0:w*1E3>q.D.A3+100)&&q.D){var k=q.D;w=k.isAd;G=G*1E3-k.A3;q.v4=a*1E3-k.bu7-G-k.iul;k=(0,g.Zj)()-G;a=q.v4;G=q.provider.videoData;var b=G.isAd();if(w||b){b=(w?"ad":"video")+"_to_"+(b?"ad":"video");var O={};G.L&&(O.cttAuthInfo={token:G.L,videoId:G.videoId});O.startTime= k-a;Jf(b,O);g.VI({targetVideoId:G.videoId,targetCpn:G.clientPlaybackNonce},b);E3("pbs",k,b)}else k=q.provider.aW.FF(),k.L!==G.clientPlaybackNonce?(k.D=G.clientPlaybackNonce,k.U=a):G.tK()||g.Qa(new g.UH("CSI timing logged before gllat",{cpn:G.clientPlaybackNonce}));q.d8("gllat",{l:q.v4.toFixed(),prev_ad:+w});delete q.D}}; Gx=function(q,a){a=a===void 0?NaN:a;a=a>=0?a:g.wk(q.provider);var w=q.provider.aW.Xh(),G=w.M$-(q.Tl||0);G>0&&g.q_(q,a,"bwm",[G,(w.ZN-(q.OQ||0)).toFixed(3)]);isNaN(q.Tl)&&w.M$&&q.isOffline&&q.Ec(!1);q.Tl=w.M$;q.OQ=w.ZN;isNaN(w.bandwidthEstimate)||g.q_(q,a,"bwe",[w.bandwidthEstimate.toFixed(0)]);q.provider.V7.TZ()&&Object.keys(w.V).length!==0&&q.d8("bwinfo",w.V);if(q.provider.V7.TZ()||q.provider.V7.T("html5_log_meminfo"))G=Rf_(),Object.values(G).some(function(b){return b!==void 0})&&q.d8("meminfo", G); if(q.provider.V7.TZ()){var k;(G=(k=q.h2)==null?void 0:gUc(k))&&Object.values(G).some(function(b){return b!=null})&&q.d8("cpuinfo",G)}q.St&&q.d8("jsprof",q.St.flush()); q.J&&g.q_(q,a,"bat",[q.J.level,q.J.charging?"1":"0"]);k=q.provider.aW.getVisibilityState();q.Nh!==k&&(g.q_(q,a,"vis",[k]),q.Nh=k);s$l(q,a);(k=FXl(q.provider))&&k!==q.Ai&&(g.q_(q,a,"conn",[k]),q.Ai=k);Cif(q,a,w)}; ZDN=function(q){var a=q.provider.aW.Xh(),w=g.wk(q.provider);Cif(q,w,a);var G=a.W;a=a.Y;isNaN(G)||(q.provider.V7.T("html5_unified_live_latency_reporting")&&!isNaN(a)&&a?g.q_(q,w,"e2el",[G.toFixed(3),a.toFixed(3)]):g.q_(q,w,"e2el",[G.toFixed(3)]))}; Cif=function(q,a,w){if(!isNaN(w.Ke)){var G=w.Ke;w.U96E3&&(new g.o1(q.reportStats,0,q)).start()}}; Jcf=function(q){q.provider.videoData.qM&&kV(q,"prefetch");q.provider.videoData.w$&&q.d8("reload",{r:q.provider.videoData.reloadReason,ct:q.provider.videoData.w$});q.provider.videoData.IW&&kV(q,"monitor");q.provider.videoData.isLivePlayback&&kV(q,"live");FI&&kV(q,"streaming");q.provider.videoData.rh&&q.d8("ctrl",{mode:q.provider.videoData.rh},!0);if(q.provider.videoData.wl){var a=q.provider.videoData.wl.replace(/,/g,"_");q.d8("ytp",{type:a},!0)}q.provider.videoData.Ru&&(a=q.provider.videoData.Ru.replace(/,/g, "."),q.d8("ytrexp",{ids:a},!0));a=q.provider.videoData;var w=q.provider.V7.T("enable_white_noise")||q.provider.V7.T("enable_webgl_noop"),G=g.Ur(a)||g.Rp(a)||g.yq(a)||g.qT(a);(w||G)&&(w=(0,g.bA)())&&q.V.set("gpu",[w]);YU(q.provider.videoData)&&g.q_(q,g.wk(q.provider),"dt",["1"]);a.cotn&&!YU(a)&&q.Ec(!0);q.provider.V7.TZ()&&(a=(0,g.Zj)()-q.provider.V7.Th,q.d8("playerage",{secs:Math.pow(1.6,Math.round(Math.log(a/1E3)/Math.log(1.6))).toFixed()}));q.Y=!0;q.UK=g.NL(function(){q.reportStats()},1E4)}; Q$l=function(q,a,w){var G=g.wk(q.provider);mT_(q,G,a,0,w);Gx(q,G);VwN(q)}; mT_=function(q,a,w,G,k){var b=q.provider.V7.V.cbrver;q.provider.V7.V.cbr==="Chrome"&&/^96[.]/.test(b)&&w==="net.badstatus"&&/rc\.500/.test(k)&&AcJ(q,3);q.provider.V7.T("html5_use_ump")&&/b248180278/.test(k)&&AcJ(q,4);b=q.provider.getCurrentTime(q.adCpn||q.provider.videoData.clientPlaybackNonce);G=G===1?"fatal":"";w=[w,G,b.toFixed(3)];G&&(k+=";a6s."+uq());k&&w.push(xTc(k));g.q_(q,a,"error",w);q.Y=!0}; LXc=function(q,a){var w=g.wk(q.provider);if(!q.provider.V7.experiments.Zh("html5_refactor_sabr_video_format_selection_logging")||a.V.id!==q.le){var G=[a.V.id,a.U,q.le,a.reason];a.token&&G.push(a.token);g.q_(q,w,"vfs",G);q.le=a.V.id;G=q.provider.aW.getPlayerSize();if(G.width>0&&G.height>0){G=[Math.round(G.width),Math.round(G.height)];var k=g.CA();k>1&&G.push(k);g.q_(q,w,"view",G)}q.IW||(q.provider.V7.TZ()&&kV(q,"rqs2"),q.provider.videoData.V&&Si(q.provider.videoData.V)&&q.V.set("preload",["1"]));q.IW= !0;q.Y=!0}a.reason==="m"&&++q.M9===100&&AcJ(q,2);g.q_(q,w,"vps",[q.xw]);q.y7||q.reportStats(w)}; B6U=function(q){q.W>=0||(q.provider.V7.tp||q.provider.aW.getVisibilityState()!==3?q.W=g.wk(q.provider):q.A2=!0)}; rcl=function(q,a,w){var G=g.wk(q.provider);g.q_(q,G,"vfi",[a==="A"?"":""+(w!=null?w:0),a])}; nUj=function(q,a,w){if(q.provider.V7.experiments.Zh("html5_refactor_sabr_audio_format_selection_logging")){a=w.V;var G=[a.audio&&a.video?a.vZ?a.vZ:"":a.id];a.Pq&&a.Pq.id&&G.push(a.Pq.id);a=G.join(";");a!==q.L&&(G=[a,q.L,w.reason],w.token&&G.push(w.token),g.q_(q,g.wk(q.provider),"afs",G),q.L=a)}else w.V.id!==q.L&&(G=[w.V.id,q.L,w.reason],w.token&&G.push(w.token),g.q_(q,a,"afs",G),q.L=w.V.id)}; kV=function(q,a){aO(q,"cat",a)}; MwU=function(q,a,w,G,k){var b=g.wk(q.provider);a!==1&&a!==3&&a!==5||g.q_(q,b,"vps",[q.xw]);aO(q,"xvt","t."+b.toFixed(3)+";m."+k.toFixed(3)+";g.2;tt."+a+";np.0;c."+w+";d."+G)}; AcJ=function(q,a){q.VN||(aO(q,"fcnz",""+a),q.VN=!0)}; xTc=function(q){/[^a-zA-Z0-9;.!_-]/.test(q)&&(q=q.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return q}; g.lA=function(q,a,w,G,k,b,O,e,N,Y){e=e===void 0?!1:e;g.c.call(this);var P=this;this.aW=q;this.schedule=a;this.policy=w;this.X9=G;this.y7=N;this.aA=Y;this.w8=null;this.le=this.St=this.Tl=this.UK=0;this.OE=this.tX=this.isSuspended=!1;this.BT="";this.RA={};this.yN=NaN;this.uF=0;this.S=null;this.N1=this.L7=!1;this.jP=0;this.IW=!1;this.EK=this.VN=0;this.OQ=null;this.cI=function(){return P.aW.cI()}; this.timing=new i0f(this.aA);this.J=new vy(this.schedule,this.policy);this.Ai=new g.o1(this.j4,0,this);this.Ck=new g.o1(this.j4,this.policy.OQ,this);this.X2=new g.o1(this.j4,1E3,this);this.C0=new g.o1(this.j4,void 0,this);this.h2=new g.o1(function(){P.isSuspended||P.j4()},1E4,this); this.Nh=new g.o1(this.rS9,250,this);this.L=this.currentTime=NaN;this.MS=new fz(5);this.f7=this.timestampOffset=NaN;this.logger=new g.Zw("dash");this.h8=Infinity;this.qh={J5l:function(){return P.vH}, FFB:function(){return P.W}, getAudioTrack:function(){return P.audioTrack}, s47:function(){return P.videoTrack}, getManifest:function(){return P.X9}, P6Q:function(){return P.U}, j4:function(){P.j4()}, F6:function(){P.UK=0;P.F6()}, Iv9:function(d){return OO(P,P.videoTrack,P.w8.U,d)}}; q=N&&N.iW();N&&(o9V(N,this.X9,this.policy),this.f7=Date.now());this.V=new ln(this,this.J,w,this.X9,k,q);w=m5V(this.V,b,O&&O.id);this.audioTrack=new SA(this,this.policy,w.audio,this.timing);this.videoTrack=new SA(this,this.policy,w.video,this.timing);this.videoTrack.Y.jt=this.audioTrack.Jk();this.A2={updateend:this.b3,error:this.xB9};g.p(this,this.Ai);g.p(this,this.Ck);g.p(this,this.X2);g.p(this,this.C0);g.p(this,this.h2);w=this.policy.iS&&this.policy.OT?!rIc(this.videoTrack.V.info):!1;this.L0=pw_({Oj:this.policy.X.Oj|| w,OT:this.policy.OT&&!w,sE:this.policy.sE});this.X=vQ_(this,this.policy,this.L0,this.schedule,this.MS,function(d,T){return hPV(P,d,T)}); this.W=new z3(this,this.X9,this.policy,this.videoTrack,this.audioTrack,e);this.policy.h2&&this.policy.U&&(this.jt=new d5j(function(d,T){P.d8(d,T)})); this.vH=new yf(this,this.X9,this.videoTrack,this.audioTrack,this.policy);e=this.policy.oy?this.aW.getVideoData().D9:null;this.D=new kw(this,this.policy,this.videoTrack,this.audioTrack,this.RA,this.W,this.timing,this.J,this.schedule,this.X9,this.V,this.X,w,e);g.p(this,this.D);this.Y=new NC(this,this.policy,this.videoTrack,this.audioTrack,this.X9,k,xQ(this.aW.getVideoData()),O==null?void 0:O.id);g.p(this,this.Y);YVl(this.Y,b);this.U=new dHV(this.aW,this,this.policy,this.audioTrack,this.videoTrack,this.X9, this.schedule,this.V,this.Y,this.timing,this.W,this.jt);g.p(this,this.U);this.F9=this.aW.n0.UU.HY;this.policy.D||STc(this);if(this.policy.E3){var K;this.OA=new cFJ(this.videoTrack.V.index,(K=this.aW.getVideoData().clientPlaybackNonce)!=null?K:"",this.aW,this.policy.OA);this.policy.OA===3&&(this.w$=new g.o1(this.Xu,200,this),this.w$.start(),g.p(this,this.w$))}this.logger.debug("Created")}; STc=function(q){var a,w;if((a=q.F9)==null?0:(w=a.pC)==null?0:w.itagDenylist){var G;q.bB((G=q.F9)==null?void 0:G.pC.itagDenylist)}var k;if((k=q.F9)==null?0:k.playbackStartPolicy){var b,O;wr(q.policy,(b=q.F9)==null?void 0:b.playbackStartPolicy,3,(O=q.F9)==null?void 0:O.YE())}if(q.policy.Y2){a=q.M_();var e;(w=a?(e=q.F9)==null?void 0:e.Sf.get(a):void 0)&&q.U.HM(w)}if(!q.X9.J){var N;e=(N=q.F9)==null?void 0:N.uu;(e==null?0:e.CD)&&(e==null?0:e.mO)&&q.X9.pk&&Ww(q.X9,e.CD,e.mO)}var Y;((Y=q.F9)==null?0:Y.e9)&& (N=q.F9.e9.get(q.M_()||""))&&q.X9&&N.formatId&&(q=q.X9.W.get(vG(N.formatId)))&&(q.info.debugInfo=N.debugInfo)}; fZf=function(q,a){var w=vG(g.WY(a.V.info,q.X9.pk)),G,k=((G=q.y7)==null?void 0:G.zS(w))||[];if(k.length===0)return q.d8("ombmsi",{}),!1;k=new bj(k);if(G=!q.policy.F9||isFinite(q.getCurrentTime())||q.aW.E9()){a:{G=q.getCurrentTime();k=g.V(k.sK);for(var b=k.next();!b.done;b=k.next())if(b=b.value,b.type===3&&G>=b.D&&G<=b.L){G=!0;break a}G=!1}G=!G}if(G)return q.d8("ostmf",{ct:q.getCurrentTime(),a:a.V.info.t$()}),!1;(q=q.y7)!=null&&(q.wG.get(w).Gb=!0);return!0}; HDU=function(q){if(!q.X9.pk)return!0;var a=q.aW.getVideoData();if(q.aW.S_())return q.d8("ombpa",{}),!1;var w,G;if(!!((w=q.F9)==null?0:(G=w.uu)==null?0:G.VoQ)!==q.X9.pT)return q.d8("ombplmm",{}),!1;w=a.uF||a.liveUtcStartSeconds||a.C0;if(q.X9.pT&&w)return q.d8("ombplst",{}),!1;if(q.X9.J)return q.d8("ombab",{}),!1;w=Date.now();return Dw(q.X9)&&!isNaN(q.f7)&&w-q.f7>q.policy.Hr*1E3?(q.d8("ombttl",{}),!1):q.X9.cJ&&q.X9.Y||!q.policy.Ly&&q.X9.isPremiere||pc(a)!==0&&!q.policy.V||a.T("html5_disable_onesie_media_for_mosaic")&& NT(a)||a.fT()&&!a.T("html5_enable_onesie_media_for_lifa")&&a.isDaiEnabled()&&a.enableServerStitchedDai||a.T("html5_disable_onesie_media_for_lifa_eligible")&&ew(a)?!1:!0}; ccJ=function(q,a){var w=a.V,G=q.X9.pk;if(HDU(q))if(q.y7&&q.y7.wG.has(vG(g.WY(w.info,G)))){if(G=vG(g.WY(w.info,G)),fZf(q,a)){var k=new bj(q.y7.zS(G)),b=function(O){try{if(O.ir())q.handleError(O.Ne(),O.C6()),zi(a,O),lj(O.info)&&Oy(q.D,a,w,!0),q.j4();else if(gMG(q.D,O)){var e;(e=q.W)==null||eoc(e,O.info,q.S);q.j4()}}catch(N){O=dl(N),q.handleError(O.errorCode,O.details,O.severity),q.xL()}}; w.W=!0;Os(k)&&(cH(a,new qd(q.policy,G,k,q.y7,b)),vF(q.timing))}}else q.d8("ombfmt",{})}; pE_=function(q,a){a=a||q.videoTrack&&q.videoTrack.U&&q.videoTrack.U.startTime||q.getCurrentTime();var w=lr,G=q.videoTrack,k=q.V;a=k.nextVideo&&k.nextVideo.index.uT(a)||0;k.jt!==a&&(k.EK={},k.jt=a,eA(k,k.V));a=!k.V.isLocked()&&k.J>-1&&(0,g.Zj)()-k.Ja.V&&a.reason==="b";G||k||w?(q.aW.Uw({reattachOnConstraint:G?"u":k?"drm":"perf",lo:a.U,up:a.V}),q.policy.hJ||(q.Y.V.U=!1)):(q.policy.hJ&&(q.Y.V.U=!1),ir(q))}}else if(!QaG(q.V,a)&&q.videoTrack){q.logger.debug(function(){return"Setting constraint: r="+a.reason+" u="+a.V}); w=q.V.V;vUc(q,x5c(q.V,a));pE_(q);G=a.isLocked()&&a.reason==="m"&&q.V.UK;k=q.policy.Vm&&a.reason==="l"&&Dd(q.videoTrack);w=w.V>a.V&&a.reason==="b";var b=q.V.A2&&!dD();G||k||w||b?q.aW.Uw({reattachOnConstraint:G?"u":k?"drm":b?"codec":"perf"}):ir(q)}}; iDl=function(q,a,w){if((!q.w8||Fb(q.w8)&&!q.policy.oP)&&!q.vH.isSeeking()&&(q.policy.V||Dd(a)&&a.V.cH()&&q.V.F9)){var G=q.getCurrentTime()+Vif(q.J,a,w);q.logger.debug(function(){return"Clearing back to "+G.toFixed(3)}); LI_(a,G)}}; vUc=function(q,a){a&&(q.logger.debug(function(){return"Logging new format: "+gD(a.video.info)}),WXU(q.aW,new af(a.video,a.reason))); if(q.V.St){var w=nDV(q.V,"a");q.aW.Xl(new af(w.audio,w.reason))}}; ir=function(q){g.tD(q.Ai)}; w8_=function(q){q.policy.OQ&&q.policy.sE&&Math.min(xiN(q.videoTrack),xiN(q.audioTrack))*1E3>q.policy.Ci?g.tD(q.Ck):q.j4()}; DTl=function(q,a){var w=(0,g.Zj)()-a,G=un(q.audioTrack,!0)*1E3,k=un(q.videoTrack,!0)*1E3;q.logger.debug(function(){return"Appends paused for "+w}); if(q.policy.W&&(q.d8("apdpe",{dur:w.toFixed(),abuf:G.toFixed(),vbuf:k.toFixed()}),a4(q.policy))){var b=Wy(q.J);q.d8("sdps",{ct:a,ah:G.toFixed(),vh:k.toFixed(),mr:Dz(q.J,q.OE,b),bw:b.toFixed(),js:q.isSeeking(),re:+q.OE,ps:(q.policy.Rl||"").toString(),rn:(q.policy.IL||"").toString()})}}; RPm=function(q){if(S1N(q.videoTrack))return q.logger.debug("Pausing appends for server-selectable format"),"ssf";if(q.policy.le&&qC(q.videoTrack)&&qC(q.audioTrack))return"updateEnd";if(WH(q.audioTrack)||WH(q.videoTrack)&&q.videoTrack.V.info.K7!=="f")return"";if(q.vH.isSeeking()){var a=q.J;var w=q.videoTrack;var G=q.audioTrack;if(a.policy.V){var k=a.policy.BQ;a4(a.policy)&&(k=Dz(a,!1,Wy(a)));a=k;w=un(G,!0)>=a&&un(w,!0)>=a}else w.W.length||G.W.length?(k=w.V.info.J2+G.V.info.J2,k=10*(1-Wy(a)/k),a=Math.max(k, a.policy.BQ),w=un(G,!0)>=a&&un(w,!0)>=a):w=!0;if(!w)return"abr";w=q.videoTrack;if(w.W.length>0&&w.Y.U.length===1&&wmc(w.Y).info.S360);G=a4(q.policy)&&q.policy.i5;if(!q.OE||!G&&w)return"";w=q.policy.AJ;a4(q.policy)&&(w=Dz(q.J,q.OE,Wy(q.J)));w=rjV(q.videoTrack,q.getCurrentTime(),w)||rjV(q.audioTrack,q.getCurrentTime(), w);return a4(q.policy)?w?"mbnm":"":(q.videoTrack.W.length>0||q.audioTrack.W.length>0||br(q.D,q.videoTrack,q.audioTrack)||br(q.D,q.audioTrack,q.videoTrack))&&w?"nord":""}; ycl=function(q){if(q.X){var a=q.X.j4(q.audioTrack,O2(q.w8.U.sB()));a&&q.aW.seekTo(a,{gR:!0,e1:"pollSubsegmentReadahead",RP:!0})}}; bmU=function(q,a,w){if(q.policy.le&&qC(a))return!1;if(w.Ic())return!0;if(!w.FA())return!1;var G=eF(a);if(!G||G.info.type===6)return!1;var k;if(q.policy.MA||((k=q.W)==null?0:Koy(k,a,G.info.Dh)))q.le=0;else return q.vH.isSeeking()&&ir(q),q.le=q.le||(0,g.Zj)(),!1;if(!OO(q,a,w,G.info))return!1;if(q.X9.U&&G.info.U===0){if(k=qIj(a,w,G)){var b=HH(a);q.d8("initchg",{it:G.info.V.info.id,sr:!!b&&b.V===G.info.V,ty:G.info.type,seg:G.info.Dh})}b=g.vY(G.info.V.info);q.policy.rz&&b&&!k&&ahl(G)}b=q.X&&!!q.X.Y&&a.V.info.audio; k=q.X9.isManifestless||G.D;if(!(q.X9.U&&G.info.U!==0||k&&!b)&&g_U(q,a,w,G))return!0;if(b)return!1;b=G3(q,a);b=q.getCurrentTime()+b;if(G.info.D>b)return q.policy.V&&az_(q,a),q.policy.wi&&SlN(a.Y,b,!1),!1;wyU(q,a);var O;q.policy.tp&&w===((O=q.w8)==null?void 0:O.V)&&q.IW&&(w.GT()===0?(q.IW=!1,q.policy.tp=!1):q.VN=w.GT());if(!GdJ(q,w,G,a))return!1;q.policy.le&&G.info.Dw()?(q.aW.B().TZ()&&q.d8("eosl",{ls:G.info.c5()}),G.isLocked=!0):(a.Lv(G),rw_(q.V,G.info),q.logger.debug(function(){return"Appended "+ G.info.c5()+", buffered: "+wD(w.sB())})); k&&kdy(q,G.info.V.BA);return!0}; az_=function(q,a){a===q.videoTrack?q.St=q.St||(0,g.Zj)():q.Tl=q.Tl||(0,g.Zj)()}; wyU=function(q,a){a===q.videoTrack?q.St=0:q.Tl=0}; GdJ=function(q,a,w,G){var k=q.policy.Ck?(0,g.Zj)():0,b=w.D&&w.info.V.V||void 0,O=w.U;w.D&&(O=Oml(q,w,O)||O);var e=Gp(O);O=q.policy.Ck?(0,g.Zj)():0;a=lzf(q,a,e,w.info,b);(G=G.J)!=null&&(b=w.info,k=O-k,O=(0,g.Zj)()-O,!G.U||C4j(G.U,b)&&G.U.Dh===b.Dh||G.flush(),G.Y+=k,G.W+=O,k=1,!G.U&&b.U&&(k=2),Ti(G,k,a),O=Math.ceil(b.U/1024),k===2&&G.V.add(O),G.V.add(Math.ceil((b.U+b.W)/1024)-O),G.U=b);q.EK=0;if(a===0)return q.L7&&(q.logger.debug("Retry succeed, back to normal append logic."),q.L7=!1,q.N1=!1),q.uF= 0,!0;if(a===2||a===5)return eXJ(q,"checked",a,w.info),!1;if(a===1){if(!q.L7)return q.logger.debug("QuotaExceeded, retrying."),q.L7=!0,!1;if(!q.N1)return q.N1=!0,q.aW.seekTo(q.getCurrentTime(),{e1:"quotaExceeded",RP:!0}),!1;w.info.iy()?(k=q.policy,k.L7=Math.floor(k.L7*.8),k.y7=Math.floor(k.y7*.8)):(k=q.policy,k.VN=Math.floor(k.VN*.8),k.y7=Math.floor(k.y7*.8));q.policy.V?Gi(q.Y.V,w.info.V,!1):YO(q.V,w.info.V)}q.aW.Uw({reattachOnAppend:a});return!1}; Oml=function(q,a,w){var G;if(G=q.policy.Lx&&q.w8&&!q.w8.S&&!q.aW.nh())a=a.info.V.info,G=a.O3()&&X5(a)&&a.video&&a.video.width<3840&&a.video.width>a.video.height;if(G&&(q.w8.S=!0,F5('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return w=gxK(w),q.policy.W&&q.d8("sp4k",{s:!!w}),w}; eXJ=function(q,a,w,G){var k="fmt.unplayable",b=1;w===5||w===3?(k="fmt.unparseable",q.policy.V?!G.V.info.video||kO(q.Y.V).size>0||Gi(q.Y.V,G.V,!1):!G.V.info.video||kO(q.V.D).size>0||YO(q.V,G.V)):w===2&&(q.uF<15?(q.uF++,k="html5.invalidstate",b=0):k="fmt.unplayable");G=Gm(G);var O;G.mrs=(O=q.w8)==null?void 0:Vy(O);G.origin=a;G.reason=w;G.trg="appenderr";q.handleError(k,G,b)}; FIc=function(q,a,w,G,k){var b=q.X9;var O=q.policy.V,e=!1,N=-1,Y;for(Y in b.V){var P=yz(b.V[Y].info.mimeType)||b.V[Y].info.iy();if(G===P)if(P=b.V[Y].index,P.PF(a.Dh)){e=P;var K=a,d=e.tG(K.Dh);d&&d.startTime!==K.startTime?(e.segments=[],e.G9(K),e=!0):e=!1;e?N=a.Dh:!a.pending&&O&&(K=P.getDuration(a.Dh),K!==a.duration&&(b.publish("clienttemp","mfldurUpdate",{itag:b.V[Y].info.itag,seg:a.Dh,od:K,nd:a.duration},!1),P.G9(a),e=!0))}else P.G9(a),e=!0}N>=0&&(O={},b.publish("clienttemp","resetMflIndex",(O[G? "v":"a"]=N,O),!1));b=e;pXc(q.vH,a,G,b);if(q.policy.h2&&q.policy.U&&(N=a.QL||null)){var T;O=(T=q.U)==null?void 0:rFK(T).requestNumber;var F;(F=q.jt)==null||TKj(F,N,O,a.Dh)}q.W.x7(a,w,G,k);a.Dh===q.X9.cJ&&b&&tw(q.X9)&&a.startTime>tw(q.X9)&&(q.X9.jt=a.startTime+(isNaN(q.timestampOffset)?0:q.timestampOffset),q.vH.isSeeking()&&q.vH.targetTime5)return q.EK= 0,q.aW.Uw({initSegStuck:1,as:G.info.c5()}),!0}else q.EK=0,q.OQ=G;q.policy.UZ&&(w.abort(),(O=a.J)!=null&&(Ti(O,4),O.flush()));k=lzf(q,w,b,N,k);var Y;(Y=a.J)==null||U5J(Y,k,N);if(k!==0)return NLK(q,k,G),!0;G.info.iy()?qsy(q.timing):gDG(q.timing);q.logger.debug(function(){return"Appended init for "+G.info.V.info.id}); kdy(q,G.info.V.BA);return w.vI()}; qIj=function(q,a,w){if(a.il()==null){q=HH(q);if(!(a=!q||q.V!==w.info.V)){a:if(q=q.J,w=w.info.J,q.length!==w.length)w=!1;else{for(a=0;a1)return 6;O.EK=new g.o1(function(){var e=eF(O);q.t2()||e==null||!e.isLocked?q.aW.B().TZ()&&q.d8("eosl",{delayA:e==null?void 0:e.info.c5()}):YIc(O)?(q.aW.B().TZ()&&q.d8("eosl",{dunlock:e==null?void 0:e.info.c5()}),Pk_(q,O===q.audioTrack)):(q.d8("nue",{ls:e.info.c5()}),e.info.F9+=1,q.w8&&q.F6())},1E4,q); q.aW.B().TZ()&&q.d8("eosl",{delayS:G.c5()});O.EK.start()}q.policy.wB&&(G==null?void 0:G.V)instanceof N5&&G.Dw()&&q.d8("poseos",{itag:G.V.info.itag,seg:G.Dh,lseg:G.V.index.P5(),es:G.V.index.W});a.appendBuffer(w,G,k)}catch(e){if(e instanceof DOMException){if(e.code===11)return 2;if(e.code===12)return 5;if(e.code===22||e.message.indexOf("Not enough storage")===0)return a=Object.assign({name:"QuotaExceededError",buffered:wD(a.sB()).replace(/,/g,"_"),vheap:of(q.videoTrack),aheap:of(q.audioTrack),message:g.xe(e.message, 3),track:q.w8?a===q.w8.U?"v":"a":"u"},Rf_()),q.handleError("player.exception",a),1;g.mQ(e)}return 4}return q.w8.A$()?3:0}; lW=function(q,a,w){XEf(q,w.e1||"unknown");q.aW.seekTo(a,w)}; kdy=function(q,a){a&&q.aW.l7(new JL(a.key,a.type))}; xO=function(q,a){q.aW.PZ(a)}; G3=function(q,a){if(q.policy.F9&&q.L7&&!q.OE)return q.policy.Iz;if(q.L7&&!q.OE)return 3;if(q.isSuspended)return 1;var w;if((w=q.w8)==null?0:w.w8&&w.w8.streaming===!1)return 4;w=(a.V.info.audio?q.policy.VN:q.policy.L7)/(a.J2*q.policy.qZ);if(q.policy.H1>0&&q.w8&&Fb(q.w8)&&(a=a.V.info.video?q.w8.U:q.w8.V)&&!a.vI()){a=a.sB();var G=GL(a,q.getCurrentTime());G>=0&&(a=q.getCurrentTime()-a.start(G),w+=Math.max(0,Math.min(a-q.policy.H1,q.policy.Wr)))}q.policy.y7>0&&(w=Math.min(w,q.policy.y7));return w}; CNG=function(q,a){return(G3(q,a)+q.policy.sZ)*a.J2}; dsV=function(q){q.BT&&!q.isSuspended&&vm(q.schedule)&&(KEU(q,q.BT),q.BT="")}; KEU=function(q,a){t0(a,"cms",function(w){q.policy.W&&q.d8("pathprobe",w)},function(w){q.aW.handleError(w)})}; TLj=function(q,a){if(q.w8&&q.w8.Y&&!q.w8.A$()&&(a.Ke=un(q.videoTrack),a.U=un(q.audioTrack),q.policy.W)){var w=of(q.videoTrack),G=of(q.audioTrack),k=wD(q.w8.U.sB(),"_",5),b=wD(q.w8.V.sB(),"_",5);Object.assign(a.V,{lvq:w,laq:G,lvb:k,lab:b})}a.bandwidthEstimate=zd(q.J);var O;(O=q.audioTrack.J)==null||O.flush();var e;(e=q.videoTrack.J)==null||e.flush();q.logger.debug(function(){return YG(a.V)})}; $s_=function(q,a){q.S=a;q.W&&(q.W.W=a);q.S.a6(q.videoTrack.V.info.O3());q.D.U=q.S;q.policy.U&&(q.U.S=q.S)}; FEJ=function(q,a){if(q.w8&&q.w8.U){if(q.policy.YB){var w=cjG(q.audioTrack);if(w&&w.t$()){var G=q.aW;if(G.AC&&(G.AC.V=w,w=G.nk,w.qoe)){w=w.qoe;G=G.AC;var k=g.wk(w.provider);nUj(w,k,G)}}}q.policy.qo&&(w=cjG(q.videoTrack))&&w.iy()&&(G=q.aW,G.AN&&(G.AN.V=w,w=G.nk,w.qoe&&LXc(w.qoe,G.AN)));a-=isNaN(q.timestampOffset)?0:q.timestampOffset;q.getCurrentTime()!==a&&q.resume();q.vH.isSeeking()&&q.w8&&!q.w8.A$()&&(G=q.getCurrentTime()<=a&&a=a&&hPV(q,G.startTime,!1)}); return w&&w.startTimeq.getCurrentTime())return w.start/1E3;return Infinity}; VOc=function(q){if(q.aW.getVideoData().isLivePlayback)return!1;var a=q.aW.Z0();if(!a)return!1;a=a.getDuration();if(q.w8&&q.w8.V&&q.w8.U){var w=q.getCurrentTime(),G=q.w8.V.sB();q=q.w8.U.sB();G=G?bw(G,w):w;w=q?bw(q,w):w;w=Math.min(G,w);a=isNaN(w)?!1:w>=a-.01}else a=!1;return a}; NLK=function(q,a,w){q.policy.oX&&AF(q.aW.getVideoData())?(q.aW.FP()||eXJ(q,"sepInit",a,w.info),nwc(q.aW,"sie")):eXJ(q,"sepInit",a,w.info)}; GuJ=function(q){return q.aW.Em()0){var G=w.V.shift();hLJ(w,G.info)}w.V.length>0&&(G=w.V[0].time-(0,g.Zj)(),w.U.start(Math.max(0,G)))}},0); g.p(this,this.U);a.subscribe("widevine_set_need_key_info",this.Y,this)}; hLJ=function(q,a){a:{var w=a.cryptoPeriodIndex;if(isNaN(w)&&q.W.size>0)w=!0;else{for(var G=g.V(q.W.values()),k=G.next();!k.done;k=G.next())if(k.value.cryptoPeriodIndex===w){w=!0;break a}w=!1}}q.publish("log_qoe",{wvagt:"reqnews",canskip:w});w||q.publish("rotated_need_key_info_ready",a)}; Syc=function(){var q={};var a=q.url;var w=q.interval;q=q.retries;this.url=a;this.interval=w;this.retries=q}; fKm=function(q,a){this.statusCode=q;this.message=a;this.U=this.heartbeatParams=this.errorMessage=null;this.V={};this.nextFairplayKeyId=null}; HCl=function(q,a,w){w=w===void 0?"":w;g.c.call(this);this.message=q;this.requestNumber=a;this.timer=w;this.onError=this.onSuccess=null;this.V=new g.h1(5E3,2E4,.2)}; crU=function(q,a,w){q.onSuccess=a;q.onError=w}; UCK=function(q,a,w,G){var k={timeout:3E4,onSuccess:function(b){if(!q.t2()){E3("drm_net_r",void 0,q.timer);var O=b.status==="LICENSE_STATUS_OK"?0:9999,e=null;if(b.license)try{e=LQ(b.license)}catch(F){g.mQ(F)}if(O!==0||e){e=new fKm(O,e);O!==0&&b.reason&&(e.errorMessage=b.reason);if(b.authorizedFormats){O={};for(var N=[],Y={},P=g.V(b.authorizedFormats),K=P.next();!K.done;K=P.next())if(K=K.value,K.trackType&&K.keyId){var d=pdj[K.trackType];if(d){d==="HD"&&b.isHd720&&(d="HD720");K.isHdr&&(d+="HDR");O[d]|| (N.push(d),O[d]=!0);var T=null;try{T=LQ(K.keyId)}catch(F){g.mQ(F)}T&&(Y[g.AH(T,4)]=d)}}e.U=N;e.V=Y}b.nextFairplayKeyId&&(e.nextFairplayKeyId=b.nextFairplayKeyId);b.sabrLicenseConstraint&&(e.sabrLicenseConstraint=LQ(b.sabrLicenseConstraint));b=e}else b=null;if(b)q.onSuccess(b,q.requestNumber);else q.onError(q,"drm.net","t.p;p.i")}}, onError:function(b){if(!q.t2())if(b&&b.error)b=b.error,q.onError(q,"drm.net.badstatus","t.r;p.i;c."+b.code+";s."+b.status,b.code);else q.onError(q,"drm.net.badstatus","t.r;p.i;c.n")}, onTimeout:function(){q.onError(q,"drm.net","rt.req."+q.requestNumber)}}; G&&(k.Sz="Bearer "+G);g.I5(w,"player/get_drm_license",a,k)}; Xdl=function(q,a,w,G){g.ya.call(this);this.videoData=q;this.V7=a;this.S=w;this.sessionId=G;this.D={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.F9=this.UK=!1;this.W=null;this.y7=[];this.Y=[];this.authorizedFormats=[];this.X=!1;this.V={};this.status="";this.L=NaN;this.U=q.D;this.cryptoPeriodIndex=w.cryptoPeriodIndex;q={};Object.assign(q,this.V7.V);q.cpn=this.videoData.clientPlaybackNonce;this.videoData.f7&&(q.vvt=this.videoData.f7,this.videoData.mdxEnvironment&&(q.mdx_environment= this.videoData.mdxEnvironment));this.V7.y7&&(q.authuser=this.V7.y7);this.V7.pageId&&(q.pageid=this.V7.pageId);isNaN(this.cryptoPeriodIndex)||(q.cpi=this.cryptoPeriodIndex.toString());var k=(k=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.cL()))?k[1]:"";k==="ATV"&&(q.cdt=k);this.D=q;this.D.session_id=G;this.J=!0;this.U.flavor==="widevine"&&(this.D.hdr="1");this.U.flavor==="playready"&&(a=Number(Cz(a.experiments,"playready_first_play_expiration")),!isNaN(a)&&a>=0&&(this.D.mfpe=""+a),this.J=!1);a="";g.Ni(this.U)? eE(this.U)?(G=w.U)&&(a="https://www.youtube.com/api/drm/fps?ek="+JVj(G)):(a=w.initData.subarray(4),a=new Uint16Array(a.buffer,a.byteOffset,a.byteLength/2),a=String.fromCharCode.apply(null,a).replace("skd://","https://")):a=this.U.U;this.baseUrl=a;this.fairplayKeyId=V6(this.baseUrl,"ek")||"";if(a=V6(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(a);this.y7=w.O3?[g.AH(w.initData,4)]:w.W;K6(this,{sessioninit:w.cryptoPeriodIndex});this.status="in"}; uMJ=function(q,a){K6(q,{createkeysession:1});q.status="gr";E3("drm_gk_s",void 0,q.videoData.F9);q.url=j4J(q);try{q.W=a.createSession(q.S,function(w){K6(q,{m:w})})}catch(w){a="t.g"; w instanceof DOMException&&(a+=";c."+w.code);q.publish("licenseerror","drm.unavailable",1,a,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}q.W&&(owV(q.W,function(w,G){IKl(q,w,G)},function(w,G,k){if(!q.t2()){G=void 0; var b=1;g.Ni(q.U)&&g.b0(q.V7)&&q.V7.T("html5_enable_safari_fairplay")&&k===1212433232&&(G="ERROR_HDCP",b=q.V7.T("html5_safari_fairplay_ignore_hdcp")?0:b);q.error("drm.keyerror",b,w,G)}},function(){q.t2()||(K6(q,{onkyadd:1}),q.F9||(q.publish("sessionready"),q.F9=!0))},function(w){q.fb(w)}),g.p(q,q.W))}; j4J=function(q){var a=q.baseUrl;$wV(a)||q.error("drm.net",2,"t.x");if(!V6(a,"fexp")){var w=["23898307","23914062","23916106","23883098"].filter(function(k){return q.V7.experiments.experiments[k]}); w.length>0&&(q.D.fexp=w.join())}w=g.V(Object.keys(q.D));for(var G=w.next();!G.done;G=w.next())G=G.value,a=urV(a,G,q.D[G]);return a}; IKl=function(q,a,w){if(!q.t2())if(a){K6(q,{onkmtyp:w});q.status="km";switch(w){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":tDN(q,a);return;default:q.publish("ctmp","message_type",{t:w,l:a.byteLength})}q.UK||(E3("drm_gk_f",void 0,q.videoData.F9),q.UK=!0,q.publish("newsession",q));if(bE(q.U)&&(a=vwN(a),!a))return;a=new HCl(a,++q.requestNumber,q.videoData.F9);crU(a,function(G){zLJ(q,G)},function(G,k,b){if(!q.t2()){var O=0; G.V.U>=3&&(O=1,k="drm.net.retryexhausted");K6(q,{onlcsrqerr:k,info:b});q.error(k,O,b);q.shouldRetry(Kf(O),G)&&iCc(q,G)}}); g.p(q,a);WbN(q,a)}else q.error("drm.unavailable",1,"km.empty")}; tDN=function(q,a){K6(q,{sdpvrq:1});q.L=Date.now();if(q.U.flavor!=="widevine")q.error("drm.provision",1,"e.flavor;f."+q.U.flavor+";l."+a.byteLength);else{var w={cpn:q.videoData.clientPlaybackNonce};Object.assign(w,q.V7.V);w=g.sk("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",w);a={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null, a)}),responseType:"arraybuffer"};g.JG(w,a,3,500).then(Rk(function(G){G=G.xhr;if(!q.t2()){G=new Uint8Array(G.response);var k=String.fromCharCode.apply(null,G);try{var b=JSON.parse(k)}catch(O){}b&&b.signedResponse?(q.publish("ctmp","drminfo",{provisioning:1}),b=(Date.now()-q.L)/1E3,q.L=NaN,q.publish("ctmp","provs",{et:b.toFixed(3)}),q.W&&q.W.update(G)):(b=b&&b.error&&b.error.message,G="e.parse",b&&(G+=";m."+b),q.error("drm.provision",1,G))}}),Rk(function(G){q.t2()||q.error("drm.provision",1,"e."+G.errorCode+ ";c."+(G.xhr&&G.xhr.status))}))}}; dk=function(q){var a;if(a=q.J&&q.W!=null)q=q.W,a=!(!q.V||!q.V.keyStatuses);return a}; WbN=function(q,a){q.status="km";E3("drm_net_s",void 0,q.videoData.F9);var w=new g.o5(q.V7.xE),G={context:g.b$(w.config_||g.GZ())};G.drmSystem=DCU[q.U.flavor];G.videoId=q.videoData.videoId;G.cpn=q.videoData.clientPlaybackNonce;G.sessionId=q.sessionId;G.licenseRequest=g.AH(a.message);G.drmParams=q.videoData.drmParams;isNaN(q.cryptoPeriodIndex)||(G.isKeyRotated=!0,G.cryptoPeriodIndex=q.cryptoPeriodIndex);var k,b,O=!!((k=q.videoData.U)==null?0:(b=k.video)==null?0:b.isHdr());G.drmVideoFeature=O?"DRM_VIDEO_FEATURE_PREFER_HDR": "DRM_VIDEO_FEATURE_SDR";if(G.context&&G.context.client){if(k=q.V7.V)G.context.client.deviceMake=k.cbrand,G.context.client.deviceModel=k.cmodel,G.context.client.browserName=k.cbr,G.context.client.browserVersion=k.cbrver,G.context.client.osName=k.cos,G.context.client.osVersion=k.cosver;G.context.user=G.context.user||{};G.context.request=G.context.request||{};q.videoData.f7&&(G.context.user.credentialTransferTokens=[{token:q.videoData.f7,scope:"VIDEO"}]);G.context.request.mdxEnvironment=q.videoData.mdxEnvironment|| G.context.request.mdxEnvironment;q.videoData.L0&&(G.context.user.kidsParent={oauthToken:q.videoData.L0});g.Ni(q.U)&&(G.fairplayKeyId=g.AH(mWV(q.fairplayKeyId)));g.B8(q.V7,g.li(q.videoData)).then(function(e){UCK(a,G,w,e);q.status="rs"})}else q.error("drm.net",2,"t.r;ic.0")}; zLJ=function(q,a){if(!q.t2())if(K6(q,{onlcsrsp:1}),q.status="rr",a.statusCode!==0)q.error("drm.auth",1,"t.f;c."+a.statusCode,a.errorMessage||void 0);else{E3("drm_kr_s",void 0,q.videoData.F9);if(a.heartbeatParams&&a.heartbeatParams.url&&q.videoData.T("outertube_streaming_data_always_use_staging_license_service")){var w=q.U.U.match(/(.*)youtube.com/g);w&&(a.heartbeatParams.url=w[0]+a.heartbeatParams.url)}a.heartbeatParams&&q.publish("newlicense",a.heartbeatParams);a.U&&(q.Y=a.U,q.videoData.FX||q.publish("newlicense", new Syc),q.videoData.FX=!0,q.X=In(q.Y,function(G){return G.includes("HDR")})); a.V&&(q.V7.T("html5_enable_vp9_fairplay")&&eE(q.U)?(w=g.AH(mWV(q.fairplayKeyId),4),q.V[w]={type:a.V[w],status:"unknown"}):q.V=gn(a.V,function(G){return{type:G,status:"unknown"}})); lE(q.U)&&(a.message=X0K(g.AH(a.message)));q.W&&(K6(q,{updtks:1}),q.status="ku",q.W.update(a.message).then(function(){E3("drm_kr_f",void 0,q.videoData.F9);dk(q)||(K6(q,{ksApiUnsup:1}),q.publish("keystatuseschange",q))},function(G){G="msuf.req."+q.requestNumber+";msg."+g.xe(G.message,3); q.error("drm.keyerror",1,G)})); g.Ni(q.U)&&q.publish("fairplay_next_need_key_info",q.baseUrl,a.nextFairplayKeyId);q.V7.T("html5_enable_vp9_fairplay")&&eE(q.U)&&q.publish("qualitychange",RLK(q.Y));a.sabrLicenseConstraint&&q.publish("sabrlicenseconstraint",a.sabrLicenseConstraint)}}; iCc=function(q,a){var w=a.V.getValue();w=new g.o1(function(){WbN(q,a)},w); g.p(q,w);w.start();g.Sz(a.V);K6(q,{rtyrq:1})}; yrU=function(q,a){for(var w=[],G=g.V(Object.keys(q.V)),k=G.next();!k.done;k=G.next())k=k.value,w.push(k+"_"+q.V[k].type+"_"+q.V[k].status);return w.join(a)}; qOm=function(q){var a={};a[q.status]=dk(q)?yrU(q,"."):q.Y.join(".");return a}; gVU=function(q,a,w){var G={};G.isHdr=a.includes("HDR");switch(a.replace("HDR","").replace("720","")){case "AUDIO":G.trackType=1;break;case "SD":G.trackType=2;break;case "HD":G.trackType=3;break;case "UHD1":G.trackType=4;break;case "UHD2":G.trackType=5;break;default:G.trackType=0}!G.trackType||w[a]||dk(q)&&!Tx(q,a)||(q.authorizedFormats.push(G),w[a]=!0)}; Tx=function(q,a){for(var w in q.V)if(q.V[w].status==="usable"&&q.V[w].type===a)return!0;return!1}; aIJ=function(q,a){for(var w in q.V)if(q.V[w].type===a)return q.V[w].status}; K6=function(q,a){var w=w===void 0?!1:w;YG(a);(w||q.V7.TZ())&&q.publish("ctmp","drmlog",a)}; w7c=function(q){var a=q[0];q[0]=q[3];q[3]=a;a=q[1];q[1]=q[2];q[2]=a;a=q[4];q[4]=q[5];q[5]=a;a=q[6];q[6]=q[7];q[7]=a}; RLK=function(q){return g.Vx(q,"UHD2")||g.Vx(q,"UHD2HDR")?"highres":g.Vx(q,"UHD1")||g.Vx(q,"UHD1HDR")?"hd2160":g.Vx(q,"HD")||g.Vx(q,"HDHDR")?"hd1080":g.Vx(q,"HD720")||g.Vx(q,"HD720HDR")?"hd720":"large"}; vwN=function(q){for(var a="",w=0;w'.charCodeAt(G);q=q.W.createSession("video/mp4",a,w);return new $V(null,null,null,null,q)}; YOG=function(q,a){var w=q.L[a.sessionId];!w&&q.Y&&(w=q.Y,q.Y=null,w.sessionId=a.sessionId,q.L[a.sessionId]=w);return w}; lIf=function(q,a){var w=q.subarray(4);w=new Uint16Array(w.buffer,w.byteOffset,w.byteLength/2);w=String.fromCharCode.apply(null,w).match(/ek=([0-9a-f]+)/)[1];for(var G="",k=0;k19.2999?(q=w.eh,w=w.El,w>=q&&(w=q* .75),a=(q-w)*.5,w=new YV(a,q,q-a-w,this)):w=null;break a;case "widevine":w=new P7(a,this,q);break a;default:w=null}if(this.D=w)g.p(this,this.D),this.D.subscribe("rotated_need_key_info_ready",this.NF,this),this.D.subscribe("log_qoe",this.Qp,this);Pm(this.V7.experiments);this.Qp({cks:this.V.getInfo()})}; K0c=function(q){var a=O6G(q.Y);a?a.then(Rk(function(){Tkj(q)}),Rk(function(w){if(!q.t2()){g.mQ(w); var G="t.a";w instanceof DOMException&&(G+=";n."+w.name+";m."+w.message);q.publish("licenseerror","drm.unavailable",1,G,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(q.Qp({mdkrdy:1}),q.J=!0); q.F9&&(a=O6G(q.F9))}; sON=function(q,a,w){q.Tl=!0;w=new JL(a,w);q.V7.T("html5_eme_loader_sync")&&(q.L.get(a)||q.L.set(a,w));$_N(q,w)}; $_N=function(q,a){if(!q.t2()){q.Qp({onInitData:1});if(q.V7.T("html5_eme_loader_sync")&&q.videoData.W&&q.videoData.W.V){var w=q.X.get(a.initData);a=q.L.get(a.initData);if(!w||!a)return;a=w;w=a.initData;q.L.remove(w);q.X.remove(w)}q.Qp({initd:a.initData.length,ct:a.contentType});if(q.V.flavor==="widevine")if(q.f7&&!q.videoData.isLivePlayback)C6(q);else{if(!(q.V7.T("vp9_drm_live")&&q.videoData.isLivePlayback&&a.O3)){q.f7=!0;w=a.cryptoPeriodIndex;var G=a.V;WoU(a);a.O3||(G&&a.V!==G?q.publish("ctmp","cpsmm", {emsg:G,pssh:a.V}):w&&a.cryptoPeriodIndex!==w&&q.publish("ctmp","cpimm",{emsg:w,pssh:a.cryptoPeriodIndex}));q.publish("widevine_set_need_key_info",a)}}else q.NF(a)}}; Tkj=function(q){if(!q.t2())if(q.V7.T("html5_drm_set_server_cert")||eE(q.V)){var a=q.Y.setServerCertificate();a?a.then(Rk(function(w){q.V7.TZ()&&q.publish("ctmp","ssc",{success:w})}),Rk(function(w){q.publish("ctmp","ssce",{n:w.name, m:w.message})})).then(Rk(function(){F0N(q)})):F0N(q)}else F0N(q)}; F0N=function(q){q.t2()||(q.J=!0,q.Qp({onmdkrdy:1}),C6(q))}; CAf=function(q){return q.V.flavor==="widevine"&&q.videoData.T("html5_drm_cpi_license_key")}; C6=function(q){if(q.Tl&&q.J&&!q.jt){for(;q.W.length;){var a=q.W[0],w=CAf(q)?D5y(a):g.AH(a.initData);if(eE(q.V)&&!a.U)q.W.shift();else{if(q.U.get(w))if(q.V.flavor!=="fairplay"||eE(q.V)){q.W.shift();continue}else q.U.delete(w);WoU(a);break}}q.W.length&&q.createSession(q.W[0])}}; Z6V=function(q){var a,w;g.h(function(G){if(G.U==1){var k;if(k=g.py()){var b;k=!((b=q.Y.U)==null||!b.getMetrics)}return k?g.n(G,q.Y.getMetrics(),2):G.return()}a=G.V;if(!a)return G.return();iF(a)||(a=g.Nj(a));w=/^[A-Za-z0-9_-]+={0,3}$/;w.test(a)||(a=g.xe(a,void 0,!0));q.publish("ctmp","drm",{metrics:a});g.Jm(G)})}; EVf=function(){var q=Mtc();return!(!q||q==="visible")}; JPN=function(q){var a=Vxf();a&&document.addEventListener(a,q,!1)}; m_m=function(q){var a=Vxf();a&&document.removeEventListener(a,q,!1)}; Vxf=function(){if(document.visibilityState)var q="visibilitychange";else{if(!document[lM+"VisibilityState"])return"";q=lM+"visibilitychange"}return q}; QOG=function(q){g.c.call(this);var a=this;this.aW=q;this.ob=0;this.L=this.U=this.D=!1;this.Y=0;this.cT=this.aW.B();this.videoData=this.aW.getVideoData();this.W=g.Wo(this.cT.experiments,"html5_delayed_retry_count");this.V=new g.o1(function(){a.aW.Uq()},g.Wo(this.cT.experiments,"html5_delayed_retry_delay_ms")); g.p(this,this.V)}; rPU=function(q,a,w){var G=q.videoData.U,k=q.videoData.Y,b=q.cT.T("html5_disable_codec_fallback_for_drm")&&q.videoData.YD();AF(q.aW.getVideoData())&&q.cT.T("html5_gapless_fallback_on_qoe_restart")&&nwc(q.aW,"pe");if((a==="progressive.net.retryexhausted"||a==="fmt.unplayable"||a==="fmt.decode")&&!q.aW.KE.D&&G&&G.itag==="22")return q.aW.KE.D=!0,q.q9("qoe.restart",{reason:"fmt.unplayable.22"}),q.aW.zk(),!0;var O=!1;if(q.videoData.isExternallyHostedPodcast){if(O=q.videoData.Xm7)w.mimeType=O.type,q.d8("3pp", {url:O.url});w.ns="3pp";q.aW.q_(a,1,"VIDEO_UNAVAILABLE",YG((new g.PY(a,w,1)).details));return!0}var e=q.ob+3E4<(0,g.Zj)()||q.V.isActive();if(q.cT.T("html5_empty_src")&&q.videoData.isAd()&&a==="fmt.unplayable"&&/Empty src/.test(""+w.msg))return w.origin="emptysrc",q.q9("auth",w),!0;e||APl(q.aW.Gj())||(w.nonfg="paused",e=!0,q.aW.pauseVideo());(a==="fmt.decode"||a==="fmt.unplayable")&&(k==null?0:u4(k)||t8(k))&&(wkK(q.cT.D,k.K7),w.acfallexp=k.K7,O=e=!0);!e&&q.W>0&&(q.V.start(),e=!0,w.delayed="1",--q.W); k=q.aW.loader;e||!((G==null?0:IK(G))||(G==null?0:X5(G)))||b||(wkK(q.cT.D,G.K7),O=e=!0,w.cfallexp=G.K7);if(!e)return x__(q,w);b=!1;q.D?q.ob=(0,g.Zj)():b=q.D=!0;e=q.videoData;if(e.A2){e=e.A2.LI();var N=Date.now()/1E3+1800;e=e6048E5&&SOl(q,"signature");return!1}; SOl=function(q,a){try{a={detail:"pr."+a},g.FY(q.cT)&&q.cT.T("html5_reload_by_kabuki_app")?q.aW.q_("qoe.restart",1,void 0,YG(a),"7"):(q.q9("qoe.restart",a),window.location.reload())}catch(w){}}; H6K=function(q,a){var w=q.cT.D;w.X=!1;w.U=!0;q.q9("qoe.restart",{e:a===void 0?"fmt.noneavailable":a,detail:"hdr"});q.aW.Uq(!0)}; cPf=function(q,a,w,G,k,b){this.videoData=q;this.V=a;this.reason=w;this.U=G;this.token=k;this.videoId=b}; ZI=function(q,a,w){this.V7=q;this.M7=a;this.aW=w;this.S=this.L=this.V=this.Y=this.X=this.U=0;this.D=!1;this.J=g.Wo(this.V7.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.W=new Map}; p7l=function(q,a,w){!q.V7.T("html5_tv_ignore_capable_constraint")&&g.Nh(q.V7)&&(w=w.compose(q.g6(a)));return w}; U_G=function(q){if(q.aW.Gj().isInline())return dM;var a;q.T("html5_exponential_memory_for_sticky")?a=z8(q.V7.QE,"sticky-lifetime")<.5?"auto":BX[T1()]:a=BX[T1()];return g.Av("auto",a,!1,"s")}; jOm=function(q,a){var w,G=X7l(q,(w=a.V)==null?void 0:w.videoInfos);w=q.aW.getPlaybackRate();return w>1&&G?(q=yBV(q.V7.D,a.V.videoInfos,w),new Qo(0,q,!0,"o")):new Qo(0,0,!1,"o")}; X7l=function(q,a){return a&&g.Nh(q.V7)?a.some(function(w){return w.video.fps>32}):!1}; oVl=function(q,a){if(q.T("html5_disable_ustreamer_constraint_for_sabr")&&rM(a.videoData))return dM;var w=q.aW.Bb();q.T("html5_use_video_quality_cap_for_ustreamer_constraint")&&w&&w.Of>0&&Lx(a.videoData.AT)&&(q=w.Of,a.videoData.AT=new Qo(0,q,!1,"u"));return a.videoData.AT}; IIf=function(q,a){var w;a:if((w=a.V)&&w.videoInfos.length){for(var G=g.V(w.videoInfos),k=G.next();!k.done;k=G.next()){k=k.value;var b=void 0;if((b=k.U)==null?0:b.smooth){w=k.video.qualityOrdinal;break a}}w=w.videoInfos[0].video.qualityOrdinal}else w=0;dAU()&&!g.Nh(q.V7)&&X5(a.V.videoInfos[0])&&(w=Math.min(w,g.SG.large));G=g.Wo(q.V7.experiments,"html5_chipset_soft_cap");G>0&&(w=Math.min(w,G));if(G=g.Wo(q.V7.experiments,"html5_max_vertical_resolution")){k=4320;for(b=0;bG&&(k=Math.min(k,O.video.qualityOrdinal))}if(k<4320){for(O=b=0;O32){k=!0;break a}}k=!1}k&&(w=Math.min(w,G));(G=g.Wo(q.V7.experiments,"html5_live_quality_cap"))&&a.videoData.isLivePlayback&&(w=Math.min(w,G));w=uKm(q,a,w);q=g.Wo(q.V7.experiments,"html5_byterate_soft_cap");return new Qo(0,w===4320?0:w,!1,"d",q)}; vVl=function(q){var a,w,G,k;return g.h(function(b){switch(b.U){case 1:return q.V.V&&typeof((a=navigator.mediaCapabilities)==null?void 0:a.decodingInfo)==="function"?g.n(b,Promise.resolve(),2):b.return(Promise.resolve());case 2:w=g.V(q.V.videoInfos),G=w.next();case 3:if(G.done){b.Gl(0);break}k=G.value;return g.n(b,hcf(k),4);case 4:G=w.next(),b.Gl(3)}})}; i6U=function(q,a){if(!a.videoData.U||q.T("html5_disable_performance_downgrade"))return!1;Date.now()-q.X>6E4&&(q.U=0);q.U++;q.X=Date.now();if(q.U!==4)return!1;zWc(q,a.videoData.U);return!0}; D_j=function(q,a,w,G){if(!a||!w||!a.videoData.U)return!1;var k=g.Wo(q.V7.experiments,"html5_df_downgrade_thresh"),b=q.T("html5_log_media_perf_info");if(!((0,g.Zj)()-q.Y<5E3?0:b||k>0))return!1;var O=((0,g.Zj)()-q.Y)/1E3;q.Y=(0,g.Zj)();w=w.getVideoPlaybackQuality();if(!w)return!1;var e=w.droppedVideoFrames-q.L,N=w.totalVideoFrames-q.S;q.L=w.droppedVideoFrames;q.S=w.totalVideoFrames;var Y=w.displayCompositedVideoFrames===0?0:w.displayCompositedVideoFrames||-1;b&&q.V7.TZ()&&q.aW.d8("ddf",{dr:w.droppedVideoFrames, de:w.totalVideoFrames,comp:Y});if(G)return q.V=0,!1;if((N-e)/O>q.J||!k||g.Nh(q.V7))return!1;q.V=(N>60?e/N:0)>k?q.V+1:0;if(q.V!==3)return!1;zWc(q,a.videoData.U);q.aW.d8("dfd",Object.assign({dr:w.droppedVideoFrames,de:w.totalVideoFrames},W0c()));return!0}; zWc=function(q,a){var w=a.K7,G=a.video.fps,k=a.video.qualityOrdinal-1,b=q.W;a=""+w+(G>49?"p60":G>32?"p48":"");w=gR(w,G,b);k>0&&(w=Math.min(w,k));if(!EO.has(a)&&Fq().includes(a)){var O=w;w=sl();+w[a]>0&&(O=Math.min(+w[a],O));w[a]!==O&&(w[a]=O,g.AE("yt-player-performance-cap",w,2592E3))}else if(EO.has(a)||b==null){a:{O=O===void 0?!0:O;G=Fq().slice();if(O){if(G.includes(a))break a;G.push(a)}else{if(!G.includes(a))break a;G.splice(G.indexOf(a),1)}g.AE("yt-player-performance-cap-active-set",G,2592E3)}qi.set(a, w)}else EO.add(a),b==null||b.set(a,w);q.aW.cC()}; RWc=function(q,a){if(!a.V.V)return q.D?new Qo(0,360,!1,"b"):dM;for(var w=!1,G=!1,k=g.V(a.V.videoInfos),b=k.next();!b.done;b=k.next())IK(b.value)?w=!0:G=!0;w=w&&G;G=0;k=g.Wo(q.V7.experiments,"html5_performance_cap_floor");k=q.V7.U?240:k;a=g.V(a.V.videoInfos);for(b=a.next();!b.done;b=a.next()){var O=b.value;if(!w||!IK(O))if(b=gR(O.K7,O.video.fps,q.W),O=O.video.qualityOrdinal,Math.max(b,k)>=O){G=O;break}}return new Qo(0,G,!1,"b")}; yPV=function(q,a){var w=q.aW.Gj();return w.isInline()&&!a.Ci?new Qo(0,480,!1,"v"):rM(a)?dM:w.isBackground()&&s9()/1E3>60&&!g.Nh(q.V7)?new Qo(0,360,!1,"v"):dM}; qBm=function(q,a,w){if(q.V7.experiments.Zh("html5_disable_client_autonav_cap_for_onesie")&&a.fetchType==="onesie"||g.Nh(q.V7)&&(T1(-1)>=1080||a.osid))return dM;var G=g.Wo(q.V7.experiments,"html5_autonav_quality_cap"),k=g.Wo(q.V7.experiments,"html5_autonav_cap_idle_secs");return G&&a.isAutonav&&s9()/1E3>k?(w&&(G=uKm(q,w,G)),new Qo(0,G,!1,"e")):dM}; uKm=function(q,a,w){if(q.T("html5_optimality_defaults_chooses_next_higher")&&w)for(q=a.V.videoInfos,a=1;a=0||(q.provider.aW.getVisibilityState()===3?q.D=!0:(q.V=g.wk(q.provider),q.delay.start()))}; wPc=function(q){if(!(q.U<0)){var a=g.wk(q.provider),w=a-q.Y;q.Y=a;q.playerState.state===8?q.playTimeSecs+=w:q.playerState.isBuffering()&&!g.v(q.playerState,16)&&(q.rebufferTimeSecs+=w)}}; GQf=function(q){var a;switch((a=q.V7.playerCanaryStage)==null?void 0:a.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"}}; kQj=function(q){this.provider=q;this.X=!1;this.V=0;this.Y=-1;this.qT=NaN;this.W=0;this.segments=[];this.L=this.D=0;this.previouslyEnded=!1;this.J=this.provider.aW.getVolume();this.S=this.provider.aW.isMuted()?1:0;this.U=JP(this.provider)}; m0=function(q){q.U.startTime=q.W;q.U.endTime=q.V;var a=!1;q.segments.length&&g.s6(q.segments).isEmpty()?(q.segments[q.segments.length-1].previouslyEnded&&(q.U.previouslyEnded=!0),q.segments[q.segments.length-1]=q.U,a=!0):q.segments.length&&q.U.isEmpty()||(q.segments.push(q.U),a=!0);a?q.U.endTime===0&&(q.previouslyEnded=!1):q.U.previouslyEnded&&(q.previouslyEnded=!0);q.D+=q.V-q.W;q.U=JP(q.provider);q.U.previouslyEnded=q.previouslyEnded;q.previouslyEnded=!1;q.W=q.V}; Ohc=function(q){bhc(q);q.L=g.NL(function(){q.update()},100); q.qT=g.wk(q.provider);q.U=JP(q.provider)}; bhc=function(q){g.Pr(q.L);q.L=NaN}; ltf=function(q,a,w){w-=q.qT;return a===q.V&&w>.5}; e5_=function(q,a,w,G){this.V7=a;this.Ck=w;this.segments=[];this.experimentIds=[];this.A2=this.N1=this.isFinal=this.delayThresholdMet=this.yN=this.Nh=this.autoplay=this.autonav=!1;this.Ai="yt";this.L=[];this.X=this.J=null;this.sendVisitorIdHeader=this.h2=!1;this.S=this.pageId="";this.D=w==="watchtime";this.W=w==="playback";this.jt=w==="atr";this.ke=w==="engage";this.sendVisitorIdHeader=!1;this.uri=this.jt?"/api/stats/"+w:"//"+a.oP+"/api/stats/"+w;G&&(this.N1=G.fs,G.rtn&&(this.X=G.rtn),this.D?(this.playerState= G.state,G.rti>0&&(this.J=G.rti)):(this.Th=G.mos,this.Q0=G.volume,G.at&&(this.adType=G.at)),G.autonav&&(this.autonav=G.autonav),G.inview!=null&&(this.L0=G.inview),G.size&&(this.OQ=G.size),G.playerwidth&&(this.QE=G.playerwidth),G.playerheight&&(this.rz=G.playerheight));this.RA=g.$I(a.V);this.S=Cz(a.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.S==="all"||this.S==="once")this.w$=g.$I(a.yN);this.E3=a.Ai;this.experimentIds=iWl(a.experiments);this.St=a.aA;this.Ai=a.F9;this.region=a.region; this.userAge=a.userAge;this.IW=a.J4;this.C0=s9();this.sendVisitorIdHeader=a.sendVisitorIdHeader;this.f7=a.T("vss_pings_using_networkless")||a.T("kevlar_woffle");this.XN=a.T("vss_final_ping_send_and_write");this.EK=a.T("vss_use_send_and_write");this.pageId=a.pageId;this.nu=a.T("vss_playback_use_send_and_write");a.livingRoomAppMode&&(this.livingRoomAppMode=a.livingRoomAppMode);this.tp=a.Y&&a.T("embeds_append_synth_ch_headers");g.yw(a)&&(this.Tl=a.jt);g.GV(g.l0(a))&&this.L.push(1);this.accessToken=g.li(q); q.qZ[this.Ck]?this.Y=q.qZ[this.Ck]:q.qZ.playback&&(this.Y=q.qZ.playback);this.adFormat=q.adFormat;this.adQueryId=q.adQueryId;this.autoplay=vBl(q);this.W&&(this.Nh=q.NT&&G4(q)==="adunit"?!0:!1);this.autonav=q.isAutonav||this.autonav;this.contentVideoId=bi(q);this.clientPlaybackNonce=q.clientPlaybackNonce;this.yN=q.J8;q.L&&(this.UK=q.L,this.uF=q.aP);q.mdxEnvironment&&(this.mdxEnvironment=q.mdxEnvironment);this.V=q.RA;this.OA=q.OA;q.U&&(this.aA=q.U.itag,q.Y&&q.Y.itag!==this.aA&&(this.VN=q.Y.itag));q.V&& Si(q.V)&&(this.offlineDownloadUserChoice="1");this.eventLabel=G4(q);this.A2=q.nu?!1:q.Q0;this.M9=q.wB;if(a=uN(q))this.Ku=a;this.JS=q.kN;this.partnerId=q.partnerId;this.eventId=q.eventId;this.playlistId=q.Y0||q.playlistId;this.jk=q.jk;this.rh=q.rh;this.wl=q.wl;this.L6=q.L6;this.subscribed=q.subscribed;this.videoId=q.videoId;this.videoMetadata=q.videoMetadata;this.visitorData=q.visitorData;this.osid=q.osid;this.iS=q.iS;this.referrer=q.referrer;this.Y2=q.Ht||q.Y2;this.BT=q.u8;this.Iz=q.Iz;this.userGenderAge= q.userGenderAge;this.Kb=q.Kb;this.embedsRct=q.embedsRct;this.embedsRctn=q.embedsRctn;g.yw(this.V7)&&q.mutedAutoplay&&(q.mutedAutoplayDurationMode===2&&q.limitedPlaybackDurationInSeconds===0&&q.endSeconds===0?this.L.push(7):this.L.push(2));q.isEmbedsShortsMode(new g.t7(this.QE,this.rz),!!this.playlistId)&&this.L.push(3);g.CD(q)&&this.L.push(4);this.le=q.iP;q.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=q.compositeLiveIngestionOffsetToken)}; Nzc=function(q,a){var w=q.sendVisitorIdHeader?q.visitorData:void 0;return g.B8(q.V7,q.accessToken).then(function(G){return bD_(q.uri,q.V7,q.pageId,w,G,a,q.tp)})}; Kpm=function(q,a){return function(){q.V7.T("html5_simplify_pings")?(q.V=q.L7,q.h8=a(),q.C0=0,q.send()):Nzc(q).then(function(w){var G=YBm(q);G.cmt=G.len;G.lact="0";var k=a().toFixed(3);G.rt=Number(k).toString();G=g.sk(q.uri,G);q.V7.T("vss_through_gel_double")&&P_m(G);q.f7?(w==null&&(w={}),q.EK?X3().sendAndWrite(G,w):X3().sendThenWrite(G,w)):w?g.Cy(G,w):g.re(G)})}}; YBm=function(q){var a={ns:q.Ai,el:q.eventLabel,cpn:q.clientPlaybackNonce,ver:2,cmt:q.U(q.V),fmt:q.aA,fs:q.N1?"1":"0",rt:q.U(q.h8),adformat:q.adFormat,content_v:q.contentVideoId,euri:q.E3,lact:q.C0,live:q.Ku,cl:(790967629).toString(),mos:q.Th,state:q.playerState,volume:q.Q0};q.subscribed&&(a.subscribed="1");Object.assign(a,q.RA);q.S==="all"?Object.assign(a,q.w$):q.S==="once"&&q.W&&Object.assign(a,q.w$);q.autoplay&&(a.autoplay="1");q.Nh&&(a.sautoplay="1");q.yN&&(a.dni="1");!q.D&&q.Tl&&(a.epm=dJy[q.Tl]); q.isFinal&&(a["final"]="1");q.A2&&(a.splay="1");q.OA&&(a.delay=q.OA);q.St&&(a.hl=q.St);q.region&&(a.cr=q.region);q.userGenderAge&&(a.uga=q.userGenderAge);q.userAge!==void 0&&q.IW&&(a.uga=q.IW+q.userAge);q.L7!==void 0&&(a.len=q.U(q.L7));!q.D&&q.experimentIds.length>0&&(a.fexp=q.experimentIds.toString());q.X!==null&&(a.rtn=q.U(q.X));q.Y2&&(a.feature=q.Y2);q.rh&&(a.ctrl=q.rh);q.wl&&(a.ytr=q.wl);q.VN&&(a.afmt=q.VN);q.offlineDownloadUserChoice&&(a.ODUC=q.offlineDownloadUserChoice);q.F9&&(a.lio=q.U(q.F9)); q.D?(a.idpj=q.M9,a.ldpj=q.JS,q.delayThresholdMet&&(a.dtm="1"),q.J!=null&&(a.rti=q.U(q.J)),q.Kb&&(a.ald=q.Kb),q.compositeLiveIngestionOffsetToken&&(a.clio=q.compositeLiveIngestionOffsetToken)):q.adType!==void 0&&(a.at=q.adType);q.OQ&&(q.W||q.D)&&(a.size=q.OQ);q.W&&q.L.length&&(a.pbstyle=q.L.join(","));q.L0!=null&&(q.W||q.D)&&(a.inview=q.U(q.L0));q.D&&(a.volume=QF(q,g.sd(q.segments,function(G){return G.volume})),a.st=QF(q,g.sd(q.segments,function(G){return G.startTime})),a.et=QF(q,g.sd(q.segments,function(G){return G.endTime})), In(q.segments,function(G){return G.playbackRate!==1})&&(a.rate=QF(q,g.sd(q.segments,function(G){return G.playbackRate}))),In(q.segments,function(G){return G.V!=="-"})&&(a.als=g.sd(q.segments,function(G){return G.V}).join(",")),In(q.segments,function(G){return G.previouslyEnded})&&(a.pe=g.sd(q.segments,function(G){return""+ +G.previouslyEnded}).join(","))); a.muted=QF(q,g.sd(q.segments,function(G){return G.muted?1:0})); In(q.segments,function(G){return G.visibilityState!==0})&&(a.vis=QF(q,g.sd(q.segments,function(G){return G.visibilityState}))); In(q.segments,function(G){return G.connectionType!==0})&&(a.conn=QF(q,g.sd(q.segments,function(G){return G.connectionType}))); In(q.segments,function(G){return G.U!==0})&&(a.blo=QF(q,g.sd(q.segments,function(G){return G.U}))); In(q.segments,function(G){return!!G.W})&&(a.blo=g.sd(q.segments,function(G){return G.W}).join(",")); In(q.segments,function(G){return!!G.compositeLiveStatusToken})&&(a.cbs=g.sd(q.segments,function(G){return G.compositeLiveStatusToken}).join(",")); In(q.segments,function(G){return G.Y!=="-"})&&(a.cc=g.sd(q.segments,function(G){return G.Y}).join(",")); In(q.segments,function(G){return G.clipId!=="-"})&&(a.clipid=g.sd(q.segments,function(G){return G.clipId}).join(",")); if(In(q.segments,function(G){return!!G.audioId})){var w="au"; q.W&&(w="au_d");a[w]=g.sd(q.segments,function(G){return G.audioId}).join(",")}ac()&&q.UK&&(a.ctt=q.UK,a.cttype=q.uF,a.mdx_environment=q.mdxEnvironment); q.ke&&(a.etype=q.y7!==void 0?q.y7:0);q.BT&&(a.uoo=q.BT);q.livingRoomAppMode&&q.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(a.clram=Tzc[q.livingRoomAppMode]||q.livingRoomAppMode);q.Y?$Jm(q,a):(a.docid=q.videoId,a.referrer=q.referrer,a.ei=q.eventId,a.of=q.iS,a.osid=q.osid,a.vm=q.videoMetadata,q.adQueryId&&(a.aqi=q.adQueryId),q.autonav&&(a.autonav="1"),q.playlistId&&(a.list=q.playlistId),q.L6&&(a.ssrt="1"),q.Iz&&(a.upt=q.Iz));q.W&&(q.embedsRct&&(a.rct=q.embedsRct),q.embedsRctn&&(a.rctn= q.embedsRctn),q.compositeLiveIngestionOffsetToken&&(a.clio=q.compositeLiveIngestionOffsetToken));q.le&&(a.host_cpn=q.le);return a}; $Jm=function(q,a){if(a&&q.Y){var w=new Set(["q","feature","mos"]),G=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),k=new Set(["aqi","autonav","list","ssrt","upt"]);q.Y.ns==="3pp"&&(a.ns="3pp");for(var b=g.V(Object.keys(q.Y)),O=b.next();!O.done;O=b.next())O=O.value,G.has(O)||w.has(O)||k.has(O)&&!q.Y[O]||(a[O]=q.Y[O])}}; QF=function(q,a){return g.sd(a,q.U).join(",")}; P_m=function(q){q.indexOf("watchtime")!==-1&&g.aw("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:q}})}; szl=function(q,a){q.attestationResponse&&Nzc(q).then(function(w){w=w||{};w.method="POST";w.postParams={atr:q.attestationResponse};q.f7?q.EK?X3().sendAndWrite(a,w):X3().sendThenWrite(a,w):g.Cy(a,w)})}; AP=function(q){g.c.call(this);this.provider=q;this.L="paused";this.D=NaN;this.X=[10,10,10,40];this.J=this.S=0;this.UK=this.jt=this.y7=this.F9=this.W=!1;this.U=this.Y=NaN;this.logger=new g.Zw("vss");this.V=new kQj(q)}; V5U=function(q){if(!q.W){q.provider.videoData.Kc===16623&&g.Qa(Error("Playback for EmbedPage"));var a=xV(q,"playback");q.X=FpU(q);Ohc(q.V);a.X=L6(q);q.U>0&&(a.V-=q.U);a.send();if(q.provider.videoData.wi){a=q.provider.V7;var w=q.provider.videoData,G={html5:"1",video_id:w.videoId,cpn:w.clientPlaybackNonce,ei:w.eventId,ptk:w.wi,oid:w.vB,ptchn:w.Go,pltype:w.LA,content_v:bi(w)};w.DX&&Object.assign(G,{m:w.DX});a=g.sk(a.pE+"ptracking",G);C_c(q,a)}q.provider.videoData.OA||(ZhK(q),EkK(q));q.W=!0;q=q.V;q.V= q.Ye();q.qT=g.wk(q.provider);!(q.W===0&&q.V<5)&&q.V-q.W>2&&(q.W=q.V);q.X=!0}}; FpU=function(q){var a=q.provider.videoData.wB,w=q.provider.videoData.kN,G=[10+a,10,10,40+w-a,40],k,b=(k=q.provider.videoData.getPlayerResponse())==null?void 0:k.playbackTracking,O=b==null?void 0:b.videostatsScheduledFlushWalltimeSeconds;k=b==null?void 0:b.videostatsDefaultFlushIntervalSeconds;if(!(O&&O.length>0&&k))return q.logger.info("Missing valid scheduled pings config "+O+" "+k),G;a=[O[0]+a].concat(g.Tf(O.slice(1).map(function(e,N){return e-O[N]})),[k+w-a, k]);return a.some(function(e){return e<0})?(q.logger.V(347111855,"Neg vss scheduled pings "+O+" "+k),G):a}; L6=function(q,a){a=a===void 0?NaN:a;var w=g.wk(q.provider);a=isNaN(a)?w:a;a=Math.ceil(a);var G=q.X[q.S];q.S+11E3;!(b.length>1)&&b[0].isEmpty()||e||(O.X=L6(q,k));O.send();q.J++}},(k-w)*1E3); return q.Y=k}; B7=function(q){g.Yn(q.D);q.D=NaN}; JsV=function(q){q.V.update();q=q.V;q.segments.length&&q.V===q.W||m0(q);var a=q.segments;q.segments=[];return a}; xV=function(q,a){var w=Qzc(q.provider);Object.assign(w,{state:q.L});a=new e5_(q.provider.videoData,q.provider.V7,a,w);a.V=q.provider.aW.Ye();w=q.provider.videoData.clientPlaybackNonce;a.V=q.provider.aW.Ak(w);q.provider.videoData.isLivePlayback||(a.L7=q.provider.aW.getDuration(w));q.provider.videoData.V&&(w=q.provider.videoData.V.OB(a.V))&&(a.F9=w-a.V,q.provider.V7.T("html5_disable_live_dvr_shrink_for_cdm_vss")&&BD(q.provider.videoData)&&(a.V+=q.provider.aW.g$(),a.F9-=q.provider.aW.g$()));a.h8=g.wk(q.provider); a.segments=[JP(q.provider)];return a}; mJf=function(q,a){var w=xV(q,"watchtime");Asy(q)&&(w.delayThresholdMet=!0,q.y7=!0);if(q.U>0){for(var G=g.V(a),k=G.next();!k.done;k=G.next())k=k.value,k.startTime-=q.U,k.endTime-=q.U;w.V-=q.U}else w.V=q.V.V;w.segments=a;return w}; rk=function(q,a){var w=xJf(q,!isNaN(q.Y));a&&(q.Y=NaN);return w}; xJf=function(q,a){var w=mJf(q,JsV(q));!isNaN(q.Y)&&a&&(w.J=q.Y);return w}; Asy=function(q){var a;if(a=q.provider.videoData.isLoaded()&&q.provider.videoData.OA&&q.W&&!q.y7)a=q.V,a=a.D+a.Ye()-a.W>=q.provider.videoData.OA;return!!a}; ZhK=function(q){q.provider.videoData.youtubeRemarketingUrl&&!q.jt&&(C_c(q,q.provider.videoData.youtubeRemarketingUrl),q.jt=!0)}; EkK=function(q){q.provider.videoData.googleRemarketingUrl&&!q.UK&&(C_c(q,q.provider.videoData.googleRemarketingUrl),q.UK=!0)}; LpV=function(q){if(!q.t2()&&q.W){q.L="paused";var a=rk(q);a.isFinal=!0;a.send();q.dispose()}}; Bzm=function(q,a){if(!q.t2())if(g.v(a.state,2)||g.v(a.state,512)){if(q.L="paused",g.Ox(a,2)||g.Ox(a,512))g.Ox(a,2)&&(q.V.previouslyEnded=!0),q.W&&(B7(q),rk(q).send(),q.Y=NaN)}else if(g.v(a.state,8)){q.L="playing";var w=q.W&&isNaN(q.D)?L6(q):NaN;if(!isNaN(w)&&(bc(a,64)<0||bc(a,512)<0)){var G=xJf(q,!1);G.X=w;G.send()}g.Ox(a,16)&&a.state.seekSource===58&&(q.V.previouslyEnded=!0)}else q.L="paused"}; rsj=function(q,a,w){if(!q.F9){w||(w=xV(q,"atr"));w.attestationResponse=a;try{w.send()}catch(G){if(G.message!=="Unknown Error")throw G;}q.F9=!0}}; C_c=function(q,a){var w=q.provider.V7;g.B8(q.provider.V7,g.li(q.provider.videoData)).then(function(G){var k=q.provider.V7.pageId,b=q.provider.V7.sendVisitorIdHeader?q.provider.videoData.visitorData:void 0,O=q.provider.V7.T("vss_pings_using_networkless")||q.provider.V7.T("kevlar_woffle"),e=q.provider.V7.T("allow_skip_networkless");G=bD_(a,w,k,b,G);ODG(a,G,{token:q.provider.videoData.L,M3:q.provider.videoData.aP,mdxEnvironment:q.provider.videoData.mdxEnvironment},w,void 0,O&&!e,!1,!0)})}; nkc=function(){this.endTime=this.startTime=-1;this.Y="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.U=0;this.compositeLiveStatusToken=this.W=void 0;this.volume=this.connectionType=0;this.muted=!1;this.V=this.clipId="-";this.previouslyEnded=!1}; n6=function(q,a,w){this.videoData=q;this.V7=a;this.aW=w;this.V=void 0}; g.wk=function(q){return M5m(q)()}; M5m=function(q){if(!q.V){var a=g.Yc(function(G){var k=(0,g.Zj)();G&&k<=631152E6&&(q.aW.d8("ytnerror",{issue:28799967,value:""+k}),k=(new Date).getTime()+2);return k},q.V7.T("html5_validate_yt_now")),w=a(); q.V=function(){return Math.round(a()-w)/1E3}; q.aW.Xv()}return q.V}; Qzc=function(q){var a=q.aW.Eb()||{};a.fs=q.aW.UE();a.volume=q.aW.getVolume();a.muted=q.aW.isMuted()?1:0;a.mos=a.muted;a.clipid=q.aW.n$();var w;a.playerheight=((w=q.aW.getPlayerSize())==null?void 0:w.height)||0;var G;a.playerwidth=((G=q.aW.getPlayerSize())==null?void 0:G.width)||0;q=q.videoData;w={};q.U&&(w.fmt=q.U.itag,q.Y&&(q.Ck?q.Y.itag!==q.U.itag:q.Y.itag!=q.U.itag)&&(w.afmt=q.Y.itag));w.ei=q.eventId;w.list=q.playlistId;w.cpn=q.clientPlaybackNonce;q.videoId&&(w.v=q.videoId);q.CF&&(w.infringe=1); (q.nu?0:q.Q0)&&(w.splay=1);(G=uN(q))&&(w.live=G);q.NT&&(w.sautoplay=1);q.BH&&(w.autoplay=1);q.jk&&(w.sdetail=q.jk);q.partnerId&&(w.partnerid=q.partnerId);q.osid&&(w.osid=q.osid);q.zW&&(w.cc=g.EZV(q.zW));return Object.assign(a,w)}; FXl=function(q){var a=xlN();if(a)return h5V[a]||h5V.other;if(g.Nh(q.V7)){q=navigator.userAgent;if(/[Ww]ireless[)]/.test(q))return 3;if(/[Ww]ired[)]/.test(q))return 30}return 0}; JP=function(q){var a=new nkc,w;a.Y=((w=Qzc(q).cc)==null?void 0:w.toString())||"-";a.playbackRate=q.aW.getPlaybackRate();w=q.aW.getVisibilityState();w!==0&&(a.visibilityState=w);q.V7.BT&&(a.U=1);a.W=q.videoData.N$;a.compositeLiveStatusToken=q.videoData.compositeLiveStatusToken;w=q.aW.getAudioTrack();w.Pq&&w.Pq.id&&w.Pq.id!=="und"&&(a.audioId=w.Pq.id);a.connectionType=FXl(q);a.volume=q.aW.getVolume();a.muted=q.aW.isMuted();a.clipId=q.aW.n$()||"-";a.V=q.videoData.Rl||"-";return a}; g.M_=function(q,a){g.c.call(this);var w=this;this.provider=q;this.W=new Map;this.xw=new g.rD;this.qh={lGK:function(){return w.qoe}, mj7:function(){return w.V}, YbT:function(){return w.U}}; this.provider.videoData.PN()&&!this.provider.videoData.m7&&(this.V=new AP(this.provider),this.V.U=0,g.p(this,this.V),this.qoe=new g.gk(this.provider,a),g.p(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.I8=this.provider.videoData.clientPlaybackNonce)&&this.W.set(this.I8,this.V));if(q.V7.playerCanaryState==="canary"||q.V7.playerCanaryState==="holdback")this.U=new VF(this.provider),g.p(this,this.U)}; SBl=function(q){q.U&&atK(q.U);q.qoe&&B6U(q.qoe)}; ftJ=function(q){if(q.qoe){q=q.qoe;for(var a=q.provider.videoData,w=q.provider.V7,G=g.V(w.pF),k=G.next();!k.done;k=G.next())kV(q,k.value);if(q.provider.T("html5_enable_qoe_cat_list"))for(G=g.V(a.oP),k=G.next();!k.done;k=G.next())kV(q,k.value);else a.pF&&kV(q,q.provider.videoData.pF);a.pk()&&(G=a.V,fc(a)&&kV(q,"manifestless"),G&&vw(G)&&kV(q,"live-segment-"+vw(G).toFixed(1)));rM(a)?kV(q,"sabr"):q.m_(pc(a));if(ew(a)||a.fT())a.fT()&&kV(q,"ssa"),kV(q,"lifa");BD(a)&&kV(q,"cdm");a.gatewayExperimentGroup&& (G=a.gatewayExperimentGroup,G==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?G="spkadtrt":G==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(G="spkadctrl"),kV(q,G));w.F9!=="yt"&&q.V.set("len",[a.lengthSeconds.toFixed(2)]);a.cotn&&!YU(a)&&q.Ec(!0);w.TZ()&&(a=T6c())&&q.d8("cblt",{m:a});if(w.T("html5_log_screen_diagonal")){w=q.d8;var b;a=((b=window.H5vccScreen)==null?0:b.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;w.call(q,"cbltdiag",{v:a})}}}; Hhj=function(q,a){q.V&&(q=q.V,a===58?q.V.update():q.W&&(B7(q),rk(q).send(),q.Y=NaN))}; csc=function(q,a){if(g.Ox(a,1024)||g.Ox(a,512)||g.Ox(a,4)){if(q.U){var w=q.U;w.U>=0||(w.V=-1,w.delay.stop())}q.qoe&&(w=q.qoe,w.X||(w.W=-1))}if(q.provider.videoData.enableServerStitchedDai&&q.I8){var G;(G=q.W.get(q.I8))==null||Bzm(G,a)}else q.V&&Bzm(q.V,a);if(q.qoe){G=q.qoe;w=a.state;var k=g.wk(G.provider),b=G.getPlayerState(w),O=w.seekSource||void 0;if(b!==G.xw){G.y7||k= 10&&G.playTimeSecs<=180&&(G.V.set("qoealert",["1"]),G.OA=!0)),b!=="B"||G.xw!=="PL"&&G.xw!=="PB"||(G.isBuffering=!0),G.U=k);G.xw==="PL"&&(b==="B"||b==="S")||G.provider.V7.TZ()?Gx(G,k):(G.uF||b!=="PL"||(G.uF=!0,Cif(G,k,G.provider.aW.Xh())),s$l(G,k));b==="PL"&&g.tD(G.h8);var e=[b];b==="S"&&O&&e.push("ss."+O);g.q_(G,k,"vps",e);G.xw=b;G.F9=k;G.U=k;G.Y=!0}b=w.lT;g.v(w,128)&&b&&(b.D3=b.D3||"",mT_(G,k,b.errorCode,b.wH,b.D3));(g.v(w,2)||g.v(w,128))&&G.reportStats(k);w.isPlaying()&&!G.X&&(G.W>=0&&G.V.set("user_intent", [G.W.toString()]),G.X=!0);VwN(G)}q.U&&(q=q.U,wPc(q),q.playerState=a.state,q.U>=0&&g.Ox(a,16)&&q.seekCount++,a.state.isError()&&q.send())}; pPV=function(q){q.U&&q.U.send();if(q.qoe){var a=q.qoe;if(a.Y){a.xw==="PL"&&(a.xw="N");var w=g.wk(a.provider);g.q_(a,w,"vps",[a.xw]);a.X||(a.W>=0&&a.V.set("user_intent",[a.W.toString()]),a.X=!0);a.provider.V7.TZ()&&a.d8("finalized",{});a.f7=!0;a.reportStats(w)}}if(q.provider.videoData.enableServerStitchedDai)for(a=g.V(q.W.values()),w=a.next();!w.done;w=a.next())LpV(w.value);else q.V&&LpV(q.V);q.dispose()}; UJm=function(q,a,w){switch(a){case "M":var G;(G=q.qoe)==null||rcl(G,a,w);break;case "A":var k;(k=q.qoe)==null||rcl(k,a)}}; XPm=function(q,a){q.V&&rsj(q.V,a)}; jzJ=function(q){if(!q.V)return null;var a=xV(q.V,"atr");return function(w){q.V&&rsj(q.V,w,a)}}; okl=function(q,a,w,G){w.adFormat=w.tp;var k=a.aW;a=new AP(new n6(w,a.V7,{getDuration:function(){return w.lengthSeconds}, getCurrentTime:function(){return k.getCurrentTime()}, Ye:function(){return k.Ye()}, Ak:function(){return k.Ak()}, Xh:function(){return k.Xh()}, getPlayerSize:function(){return k.getPlayerSize()}, getAudioTrack:function(){return w.getAudioTrack()}, getPlaybackRate:function(){return k.getPlaybackRate()}, w6:function(){return k.w6()}, getVisibilityState:function(){return k.getVisibilityState()}, FF:function(){return k.FF()}, Eb:function(){return k.Eb()}, getVolume:function(){return k.getVolume()}, isMuted:function(){return k.isMuted()}, UE:function(){return k.UE()}, n$:function(){return k.n$()}, getProximaLatencyPreference:function(){return k.getProximaLatencyPreference()}, Xv:function(){k.Xv()}, d8:function(b,O){k.d8(b,O)}, gq:function(){return k.gq()}, g$:function(){return k.g$()}})); a.U=G;g.p(q,a);return a}; Itm=function(){this.Ke=0;this.Y=this.W=this.ZN=this.M$=this.U=NaN;this.V={};this.bandwidthEstimate=NaN}; uhU=function(){this.V=g.j7;this.array=[]}; vkj=function(q,a,w){var G=[];for(a=t5m(q,a);aw)break}return G}; z5l=function(q,a){var w=[];q=g.V(q.array);for(var G=q.next();!G.done&&!(G=G.value,G.contains(a)&&w.push(G),G.start>a);G=q.next());return w}; ih_=function(q){return q.array.slice(t5m(q,0x7ffffffffffff),q.array.length)}; t5m=function(q,a){q=IB(q.array,function(w){return a-w.start||1}); return q<0?-(q+1):q}; WpG=function(q,a){var w=NaN;q=g.V(q.array);for(var G=q.next();!G.done;G=q.next())if(G=G.value,G.contains(a)&&(isNaN(w)||G.enda&&(isNaN(w)||G.startq.mediaTime+q.D&&a1)q.Y=!0;if((k===void 0?0:k)||isNaN(q.U))q.U=a;if(q.V)a!==q.mediaTime&&(q.V=!1);else if(a>0&&q.mediaTime===a){k=1500;if(q.V7.T("html5_buffer_underrun_transition_fix")){k=g.Wo(q.V7.experiments,"html5_min_playback_advance_for_steady_state_secs");var b=g.Wo(q.V7.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");k=k>0&&b>0&&Math.abs(a-q.U)(G||!q.Y?k:400)}q.mediaTime=a;q.W=w;return!1}; boU=function(q,a){this.videoData=q;this.V=a}; Oo_=function(q,a,w){return a.Bo(w).then(function(){return AG(new boU(a,a.W))},function(G){G instanceof Error&&g.Qa(G); var k=$G('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),b=F5('audio/mp4; codecs="mp4a.40.2"'),O=k||b,e=a.isLivePlayback&&!g.Vw(q.D,!0);G="fmt.noneavailable";e?G="html5.unsupportedlive":O||(G="html5.missingapi");O=e||!O?2:1;k={buildRej:"1",a:a.nS(),d:!!a.Ai,drm:a.YD(),f18:a.Th.indexOf("itag=18")>=0,c18:k};a.V&&(a.YD()?(k.f142=!!a.V.V["142"],k.f149=!!a.V.V["149"],k.f279=!!a.V.V["279"]):(k.f133=!!a.V.V["133"],k.f140=!!a.V.V["140"],k.f242=!!a.V.V["242"]),k.cAAC=b,k.cAVC=F5('video/mp4; codecs="avc1.42001E"'), k.cVP9=F5('video/webm; codecs="vp9"'));a.D&&(k.drmsys=a.D.keySystem,b=0,a.D.V&&(b=Object.keys(a.D.V).length),k.drmst=b);return new g.PY(G,k,O)})}; f6=function(q){this.data=window.Float32Array?new Float32Array(q):Array(q);this.U=this.V=q-1}; lUc=function(q){return q.data[q.V]||0}; eMc=function(q){this.D=q;this.W=this.U=0;this.Y=new f6(50)}; c7=function(q,a,w){g.ya.call(this);this.videoData=q;this.experiments=a;this.D=w;this.U=[];this.UH=0;this.W=!0;this.Y=!1;this.L=0;w=new NPl;q.latencyClass==="ULTRALOW"&&(w.L=!1);q.IW?w.W=3:g.WD(q)&&(w.W=2);q.latencyClass==="NORMAL"&&(w.D=!0);w.F9=rM(q)&&a.Zh("html5_refactor_decouple_liveness");g.Wo(a,"html5_low_latency_adaptive_liveness_adjustment_segments")===0&&g.Wo(a,"html5_low_latency_max_allowable_liveness_drift_chunks")===0||q.latencyClass!=="LOW"&&q.latencyClass!=="ULTRALOW"||(w.D=!0);var G= g.Wo(a,"html5_liveness_drift_proxima_override");if(pc(q)!==0&&G){w.V=G;var k;((k=q.V)==null?0:Y2l(k))&&w.V--}rM(q)&&a.Zh("html5_sabr_parse_live_metadata_playback_boundaries")&&(w.UK=!0);if(g.Hr("trident/")||g.Hr("edge/"))k=g.Wo(a,"html5_platform_minimum_readahead_seconds")||3,w.Y=Math.max(w.Y,k);g.Wo(a,"html5_minimum_readahead_seconds")&&(w.Y=g.Wo(a,"html5_minimum_readahead_seconds"));g.Wo(a,"html5_maximum_readahead_seconds")&&(w.J=g.Wo(a,"html5_maximum_readahead_seconds"));a.Zh("html5_force_adaptive_readahead")&& (w.L=!0);if(k=g.Wo(a,"html5_liveness_drift_chunk_override"))w.V=k;HD(q)&&(w.V=(w.V+1)/5,q.latencyClass==="LOW"&&(w.V*=2));!rM(q)||q.latencyClass!=="ULTRALOW"&&q.latencyClass!=="LOW"||(w.S=g.Wo(a,"html5_low_latency_adaptive_liveness_adjustment_segments")||1,w.X=g.Wo(a,"html5_low_latency_max_allowable_liveness_drift_chunks")||10);this.policy=w;this.X=this.policy.W!==1;this.V=H7(this,YCj(this,isNaN(q.liveChunkReadahead)?3:q.liveChunkReadahead,q))}; PBl=function(q,a){if(a)return a=q.videoData,a=YCj(q,isNaN(a.liveChunkReadahead)?3:a.liveChunkReadahead,a),H7(q,a);if(q.U.length){if(Math.min.apply(null,q.U)>1)return H7(q,q.V-1);if(q.policy.L)return H7(q,q.V+1)}return q.V}; Kdl=function(q,a){if(!q.U.length)return!1;var w=q.V;q.V=PBl(q,a===void 0?!1:a);if(a=w!==q.V)q.U=[],q.UH=0;return a}; UO=function(q,a){return a>=q.HQ()-p6(q)}; dgj=function(q,a,w){a=UO(q,a);w||a?a&&(q.W=!0):q.W=!1;q.X=q.policy.W===2||q.policy.W===3&&q.W}; TPy=function(q,a){a=UO(q,a);q.Y!==a&&q.publish("livestatusshift",a);q.Y=a}; p6=function(q){var a=q.policy.V;q.Y||(a=Math.max(a-1,0));return a*XK(q)}; YCj=function(q,a,w){w.IW&&a--;HD(w)&&(a=1);if(pc(w)!==0&&(q=g.Wo(q.experiments,"html5_live_chunk_readahead_proxima_override"))){a=q;var G;((G=w.V)==null?0:Y2l(G))&&a++}return a}; XK=function(q){return q.videoData.V?vw(q.videoData.V)||5:5}; H7=function(q,a){a=Math.max(Math.max(1,Math.ceil(q.policy.Y/XK(q))),a);return Math.min(Math.min(8,Math.floor(q.policy.J/XK(q))),a)}; NPl=function(){this.Y=0;this.J=Infinity;this.L=!0;this.U=this.V=2;this.W=1;this.D=!1;this.X=10;this.UK=!1;this.S=1;this.F9=!1}; IO=function(q){g.c.call(this);this.aW=q;this.V=0;this.U=null;this.L=this.Y=0;this.W={};this.V7=this.aW.B();this.D=new g.o1(this.j4,1E3,this);this.A2=jx(this,"html5_seek_timeout_delay_ms");this.y7=jx(this,"html5_long_rebuffer_threshold_ms");this.h2=jx(this,"html5_seek_set_cmt_delay_ms","html5_seek_set_cmt_cfl");this.EK=jx(this,"html5_seek_jiggle_cmt_delay_ms","html5_seek_jiggle_cmt_cfl");this.Tl=jx(this,"html5_seek_new_elem_delay_ms","html5_seek_new_elem_cfl");this.yN=jx(this,"html5_unreported_seek_reseek_delay_ms", "html5_unreported_seek_reseek_cfl");this.F9=jx(this,"html5_long_rebuffer_jiggle_cmt_delay_ms","html5_long_rebuffer_jiggle_cmt_cfl");this.UK=new oO(2E4);this.L7=jx(this,"html5_seek_new_elem_shorts_delay_ms","html5_seek_new_elem_shorts_cfl");this.St=jx(this,"html5_seek_new_media_source_shorts_reuse_delay_ms","html5_seek_new_media_source_shorts_reuse_cfl");this.le=jx(this,"html5_seek_new_media_element_shorts_reuse_delay_ms","html5_seek_new_media_element_shorts_reuse_cfl");this.f7=jx(this,"html5_reseek_after_time_jump_delay_ms", "html5_reseek_after_time_jump_cfl");this.S=jx(this,"html5_gapless_handoff_close_end_long_rebuffer_delay_ms","html5_gapless_handoff_close_end_long_rebuffer_cfl");this.J=jx(this,"html5_gapless_slow_seek_delay_ms","html5_gapless_slow_seek_cfl");this.BT=jx(this,"html5_shorts_gapless_ad_slow_start_delay_ms","html5_shorts_gapless_ad_slow_start_cfl");this.IW=jx(this,"html5_shorts_gapless_slow_start_delay_ms","html5_shorts_gapless_slow_start_cfl");this.X=jx(this,"html5_ads_preroll_lock_timeout_delay_ms", "html5_ads_preroll_lock_timeout_cfl");this.VN=new oO(g.Wo(this.V7.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.V7.T("html5_report_slow_ads_as_error"));this.OA=new oO(g.Wo(this.V7.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.V7.T("html5_skip_slow_buffering_ad"));this.uF=jx(this,"html5_slow_start_timeout_delay_ms");this.jt=jx(this,"html5_slow_start_no_media_source_delay_ms","html5_slow_start_no_media_source_cfl");g.p(this,this.D)}; jx=function(q,a,w){w=w===void 0?null:w;var G=G===void 0?0:G;return new oO(g.Wo(q.V7.experiments,a)||G,w?q.V7.T(w):!1)}; $g_=function(q,a){q.V=a}; uA=function(q,a,w,G,k,b,O,e){a?a.test(w)?(q.q9(k,a,O),a.L||b()):(!a.U||a.Y?w=!1:(w=(0,g.Zj)(),G?a.V||(a.V=w):a.V=0,b=!G&&w-a.U>3E4,w=a.V&&w-a.V>1E3||b?a.Y=!0:!1),w&&(e=Object.assign({},q.Kk(a),e),e.wn=O,e.we=k,e.wsuc=G,q.aW.d8("workaroundReport",e),G&&(a.reset(),q.W[k]=!1))):q.aW.q_("auth",2,"BROWSER_OR_EXTENSION_ERROR",YG({source:"watchdog",name:O}))}; oO=function(q,a){this.L=a===void 0?!1:a;this.V=this.U=this.W=this.startTimestamp=0;this.Y=!1;this.D=Math.ceil(q/1E3)}; ZoU=function(q){g.c.call(this);var a=this;this.aW=q;this.S=this.V=this.loader=this.mediaElement=this.playbackData=null;this.W=0;this.D=this.y7=this.Y=null;this.f7=!1;this.uF=0;this.UK=!1;this.timestampOffset=0;this.J=!0;this.St=0;this.h2=this.w$=!1;this.X=0;this.IW=!1;this.jt=0;this.V7=this.aW.B();this.videoData=this.aW.getVideoData();this.policy=new sEJ;this.F9=new IO(this.aW);this.VN=this.le=this.Tl=this.L=this.U=NaN;this.L7=new g.o1(function(){FdJ(a,!1)},2E3); this.yN=new g.o1(function(){tP(a)}); this.A2=new g.o1(function(){CBl(a,{})}); this.OA=NaN;this.EK=new g.o1(function(){var w=a.V7.QE;w.V+=1E4/36E5;w.V-w.W>1/6&&(r9l(w),w.W=w.V);a.EK.start()},1E4); g.p(this,this.F9);g.p(this,this.L7);g.p(this,this.A2);g.p(this,this.yN);g.p(this,this.EK)}; JqJ=function(q,a){q.playbackData=a;q.videoData.isLivePlayback&&(q.S=new eMc(function(){a:{if(q.playbackData&&q.playbackData.V.V){if(fc(q.videoData)&&q.loader){var G=q.loader.MS.CO()||0;break a}if(q.videoData.V){G=q.videoData.V.f7;break a}}G=0}return G}),q.V=new c7(q.videoData,q.V7.experiments,function(){return q.K0(!0)})); if(v7(q.aW)){var w;(w=q.videoData.RE)!=null&&w.iX||(a=EqU(q),a.PV?(rM(q.videoData)&&q.Qz(a.PV,a.startSeconds),q.W=a.startSeconds):a.startSeconds>0&&q.seekTo(a.startSeconds,{e1:"seektimeline_startPlayback",seekSource:15}));q.J=!1}else VWG(q)||(q.W=q.W||q.videoData.startSeconds||0,q.videoData.isLivePlayback||(a=q.aW.videoData.K0(),q.W>a&&(q.T("html5_sabr_log_invalid_sabr_current_time")&&q.aW.d8("invalidSabrCmtStart",{rt:q.W,mst:a}),q.T("html5_sabr_vod_invalid_start_time_fallback")&&(q.W=0))))}; QEj=function(q,a){(q.loader=a)?mgU(q,!0):zx(q)}; Aqc=function(q,a){g.tD(q.F9.D);q.T("html5_exponential_memory_for_sticky")&&(a.state.isPlaying()?g.tD(q.EK):q.EK.stop());if(q.mediaElement)if(a.oldState.state===8&&cz(a.state)&&a.state.isBuffering()){a=q.mediaElement.getCurrentTime();var w=q.mediaElement.xe();var G=q.T("manifestless_post_live_ufph")||q.T("manifestless_post_live")?GL(w,Math.max(a-3.5,0)):GL(w,a-3.5);G>=0&&a>w.end(G)-1.1&&G+10?(iA(q.aW,q.getCurrentTime()+q.videoData.limitedPlaybackDurationInSeconds),q.h2=!0):q.videoData.isLivePlayback&&q.videoData.endSeconds>0&&(iA(q.aW,q.getCurrentTime()+q.videoData.endSeconds),q.h2=!0))}; LdG=function(q,a){var w=q.getCurrentTime(),G=q.isAtLiveHead(w);if(q.S&&G){var k=q.S;if(k.V&&!(w>=k.U&&w50&&k.U.shift())),k=q.V,dgj(k,w,a===void 0?!0:a),TPy(k,w),a&&FdJ(q,!0));G!==q.w$&&(a=q.getCurrentTime()-q.VN<=500,w=q.uF>=1E3,a||w||(a=q.aW.nk,a.qoe&&(a=a.qoe,w=g.wk(a.provider), g.q_(a,w,"lh",[G?"1":"0"])),q.w$=G,q.uF++,q.VN=q.getCurrentTime()))}; FdJ=function(q,a){if(q.V){var w=q.V;var G=q.getCurrentTime(),k=w.HQ();var b=w.policy.U;w.Y||(b=Math.max(b-1,0));b*=XK(w);G>=k-b||!w.dF()?w=Gw+1&&a0&&AB(q.mediaElement)>0&&(q.U=W7(q,q.U,!1)),a=q.T("html5_pseudogapless_shorts_seek_to_next_start")&&(a==null?void 0:a.seekSource)===60,!q.mediaElement||!fUf(q,a))q.yN.start(750);else if(!isNaN(q.U)&&isFinite(q.U)&&(a=q.le-(q.U-q.timestampOffset),!(a===0||Math.abs(a)<.005)))if(a=q.mediaElement.getCurrentTime()-q.U,Math.abs(a)<=q.St||Math.abs(a)<.005)Hol(q);else{if(q.videoData.JP)q.videoData.JP= !1;else if(!SO(q.videoData)&&q.U>=q.K0()-.1){q.U=q.K0();q.Y.resolve(q.K0());q.V7.TZ()&&q.aW.d8("setEndedInSeek",{tgt:""+q.U,maxst:""+q.K0()});q.aW.Np();return}try{var w=q.U-q.timestampOffset;q.mediaElement.seekTo(w);q.F9.V=w;q.le=w;q.W=q.U;q.UK=!1}catch(G){}}}; fUf=function(q,a){a=a===void 0?!1:a;if(!q.mediaElement||q.mediaElement.rl()===0||q.mediaElement.hasError())return!1;var w=q.mediaElement.getCurrentTime()>0;return q.videoData.W&&q.videoData.W.V||q.videoData.isLivePlayback||!q.videoData.YD()?q.U>=0&&!a&&(a=q.mediaElement.C$(),a.length||!w)?kj(a,q.U-q.timestampOffset):w:w}; Hol=function(q){q.Y&&(q.Y.resolve(q.mediaElement.getCurrentTime()),q.F9.U=null)}; hMm=function(q,a){q.D&&(q.D.resolve(a),q.aW.l1(),q.V7.TZ()||SCy(q))&&(a=q.Kk(),a["native"]=""+ +q.UK,a.otgt=""+(q.U+q.timestampOffset),q.aW.d8("seekEnd",a));zx(q)}; zx=function(q){q.U=NaN;q.L=NaN;q.le=NaN;q.Y=null;q.y7=null;q.D=null;q.f7=!1;q.UK=!1;q.St=0;q.L7.stop();q.A2.stop()}; p1m=function(q,a){var w=q.mediaElement,G=a.type;switch(G){case "seeking":var k=w.getCurrentTime()+q.timestampOffset;if(!q.Y||q.UK&&k!==q.U){q.Y=new m5;q.Y.then(function(O){hMm(q,O)},function(){zx(q)}); if(q.videoData.isAd()){var b;ajN({adCpn:q.videoData.clientPlaybackNonce,contentCpn:(b=q.videoData.iP)!=null?b:""},a.V)}q.le=k;$g_(q.F9,w.getCurrentTime());q.seekTo(k,{seekSource:104,e1:"seektimeline_mediaElementEvent"});q.UK=!0}break;case "seeked":Hol(q);break;case "loadedmetadata":v7(q.aW)||cqG(q);tP(q);break;case "progress":tP(q);break;case "pause":q.X=q.getCurrentTime()}q.X&&((G==="play"||G==="playing"||G==="timeupdate"||G==="progress")&&q.getCurrentTime()-q.X>10&&(q.T("html5_sky_skip_pause_jump")? q.aW.d8("skipPauseJump",{evt:G,cmt:q.getCurrentTime(),lpt:q.X}):q.seekTo(q.X,{e1:"pauseJump"})),G!=="pause"&&G!=="play"&&G!=="playing"&&G!=="progress"&&(q.X=0))}; Ugl=function(q){return(Ds(q.videoData)||!!q.videoData.liveUtcStartSeconds)&&(!!q.videoData.liveUtcStartSeconds||VWG(q))&&!!q.videoData.V}; VWG=function(q){return!!q.videoData.startSeconds&&isFinite(q.videoData.startSeconds)&&q.videoData.startSeconds>1E9}; EqU=function(q){var a=0,w=NaN,G="";if(!q.J)return{startSeconds:a,PV:w,source:G};q.videoData.y7?a=q.videoData.jt:SO(q.videoData)&&(a=Infinity);if(g.WD(q.videoData))return{startSeconds:a,PV:w,source:G};q.videoData.startSeconds?(G="ss",a=q.videoData.startSeconds):q.videoData.C0&&(G="stss",a=q.videoData.C0);q.videoData.liveUtcStartSeconds&&(w=q.videoData.liveUtcStartSeconds);if(isFinite(a)&&(a>q.K0()||aq.K0()||w 0?(G.onesie="0",q.handleError(new g.PY("html5.missingapi",G)),!1):!0}; ioN=function(q){var a=gL();a0(a,q);return g.X2(a,hSc())}; tWj=function(q,a){var w,G,k,b,O,e,N,Y,P,K,d,T,F,J,Q,B,L,M,H,X,D,z,Oj,$l,ey,Nm;return g.h(function(a_){if(a_.U==1)return a.fetchType="onesie",w=Ytc(a,q.getPlayerSize(),q.getVisibilityState()),G=new I4(q,w),g.n(a_,G.fetch(),2);k=a_.V;b={player_response:k};a.loading=!1;O=q.n0.UU;if(G.Ff){e=g.V(G.Ff.entries());for(N=e.next();!N.done;N=e.next())Y=N.value,P=g.V(Y),K=P.next().value,d=P.next().value,T=K,F=d,O.V.set(T,F,180),T===a.videoId&&(J=F.iW(),a.GX=J);O.HY=G}Q=g.V(G.Gu.entries());for(B=Q.next();!B.done;B= Q.next())L=B.value,M=g.V(L),H=M.next().value,X=M.next().value,D=H,z=X,O.U.set(D,z,180);g.Fd(a,b,!0);if(a.loading||$Q(a))return a_.return(Promise.resolve());O.V.removeAll();O.U.removeAll();a.GX=[];Oj={};$l="onesie.response";ey=0;a.errorCode?($l="auth",Oj.ec=a.errorCode,Oj.ed=a.errorDetail,Oj.es=a.Dl||"",ey=2):(Oj.successButUnplayable="1",Oj.disposed=""+ +a.t2(),Oj.afmts=""+ +/adaptiveFormats/.test(k),Oj.cpn=a.clientPlaybackNonce);Nm=new g.PY($l,Oj,ey);return a_.return(Promise.reject(Nm))})}; IUj=function(q,a){var w,G,k,b,O,e,N,Y,P,K,d;return g.h(function(T){switch(T.U){case 1:w=a.isAd(),G=!w,k=w?1:3,b=0;case 2:if(!(b0)){T.Gl(5);break}return g.n(T,cO(5E3),6);case 6:O=new g.UH("Retrying OnePlatform request",{attempt:b}),g.Qa(O);case 5:return g.ml(T,7),g.n(T,Wdm(q,a),9);case 9:return T.return();case 7:e=g.rc(T);N=dl(e);Y=N.errorCode;P=q.B();K=P.T("html5_use_network_error_code_enums")?401:"401";G&&Y==="manifest.net.badstatus"&&N.details.rc===K&&(G=!1,b===k-1&&(k+= 1));if(b===k-1)return d=Dg_(w,N.details),d.details.backend="op",d.details.originec=Y,T.return(Promise.reject(d));if(Y==="auth"||Y==="manifest.net.retryexhausted")return T.return(Promise.reject(N));q.handleError(N);if(Kf(N.severity)){T.Gl(4);break}case 3:b++;T.Gl(2);break;case 4:return T.return(Promise.reject(Dg_(w,{backend:"op"})))}})}; Wdm=function(q,a){function w($l){$l.readyState===2&&q.A8("ps_c")} var G,k,b,O,e,N,Y,P,K,d,T,F,J,Q,B,L,M,H,X,D,z,Oj;return g.h(function($l){switch($l.U){case 1:a.fetchType="gp";G=q.B();k=g.B8(G,g.li(a));if(!k.V){b=k.getValue();$l.Gl(2);break}return g.n($l,k.V,3);case 3:b=$l.V;case 2:return O=b,e=ioN(O),N=Ytc(a,q.getPlayerSize(),q.getVisibilityState()),Y=g.vA(RMf),P=g.li(a),K=(0,g.Zj)(),d=!1,T="empty",F=0,q.A8("psns"),J={z5:w},g.n($l,g.Bt(e,N,Y,void 0,J),4);case 4:Q=$l.V;q.A8("psnr");if(a.t2())return $l.return();Q?"error"in Q&&Q.error?(d=!0,T="esf:"+Q.error.message, F=Q.error.code):Q.errorMetadata&&(d=!0,T="its",F=Q.errorMetadata.status):d=!0;if(d)return B=0,L=((0,g.Zj)()-K).toFixed(),M={},M=G.T("html5_use_network_error_code_enums")?{backend:"op",rc:F,rt:L,reason:T,has_kpt:a.L0?"1":"0",has_mdx_env:a.mdxEnvironment?"1":"0",has_omit_key_flag:g.UL("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:G.pageId?"1":"0",has_token:P?"1":"0",has_vvt:a.f7?"1":"0",is_mdx:a.isMdxPlayback?"1":"0",mdx_ctrl:a.rh||"",token_eq:P===g.li(a)?"1":"0"}:{backend:"op", rc:""+F,rt:L,reason:T,has_kpt:a.L0?"1":"0",has_mdx_env:a.mdxEnvironment?"1":"0",has_omit_key_flag:g.UL("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:G.pageId?"1":"0",has_token:P?"1":"0",has_vvt:a.f7?"1":"0",is_mdx:a.isMdxPlayback?"1":"0",mdx_ctrl:a.rh||"",token_eq:P===g.li(a)?"1":"0"},H="manifest.net.connect",F===429?(H="auth",B=2):F>200&&(H="manifest.net.badstatus",F===400&&(B=2)),$l.return(Promise.reject(new g.PY(H,M,B)));a.loading=!1;g.Fd(a,{raw_player_response:Q},!0); X=Q;g.kM(a.B())&&X&&X.trackingParams&&b5(X.trackingParams);if(a.errorCode)return D={ec:a.errorCode,ed:a.errorDetail,es:a.Dl||""},$l.return(Promise.reject(new g.PY("auth",D,2)));if(!a.loading&&!$Q(a))return z=a.isAd()?"auth":"manifest.net.retryexhausted",Oj=a.isAd()?2:1,$l.return(Promise.reject(new g.PY(z,{successButUnplayable:"1",hasMedia:g.vD(a)?"1":"0"},Oj)));g.Jm($l)}})}; oqc=function(q,a,w){function G(F){F=dl(F);if(Kf(F.severity))return Promise.reject(F);q.handleError(F);return!1} function k(){return!0} var b,O,e,N,Y,P,K,d,T;return g.h(function(F){switch(F.U){case 1:var J=q.B();q.getPlayerSize();q.getVisibilityState();q.isFullscreen();if(a.partnerId===38&&J.playerStyle==="books")J=a.videoId.indexOf(":"),J=g.sk("//play.google.com/books/volumes/"+a.videoId.slice(0,J)+"/content/media",{aid:a.videoId.slice(J+1),sig:a.wJe});else if(a.partnerId===30&&J.playerStyle==="docs")J=g.sk("https://docs.google.com/get_video_info",{docid:a.videoId,authuser:a.xv,authkey:a.ASe,eurl:J.Ai});else if(a.partnerId===33&& J.playerStyle==="google-live")J=g.sk("//google-liveplayer.appspot.com/get_video_info",{key:a.videoId});else throw Error("getVideoInfoUrl for invalid namespace: "+J.F9);b=J;e=(O=a.isAd())?1:3;N=0;case 2:if(!(N0)){F.Gl(5);break}return g.n(F,cO(5E3),6);case 6:P={playerretry:N,playerretrysrc:w},O||(P.recover="embedded"),Y=qL(b,P);case 5:return g.n(F,yqc(a,Y).then(k,G),7);case 7:if(K=F.V)return F.return();N++;F.Gl(2);break;case 4:d=O?"auth":"manifest.net.retryexhausted";T= O?2:1;if(!O&&Math.random()<1E-4)try{g.Qa(new g.UH("b/152131571",btoa(b)))}catch(Q){}return F.return(Promise.reject(new g.PY(d,{backend:"gvi"},T)))}})}; yqc=function(q,a){function w(Q){return G(Q.xhr)} function G(Q){if(!q.t2()){Q=Q?Q.status:-1;var B=0,L=((0,g.Zj)()-P).toFixed();L=k.T("html5_use_network_error_code_enums")?{backend:"gvi",rc:Q,rt:L}:{backend:"gvi",rc:""+Q,rt:L};var M="manifest.net.connect";Q===429?(M="auth",B=2):Q>200&&(M="manifest.net.badstatus",Q===400&&(B=2));return Promise.reject(new g.PY(M,L,B))}} var k,b,O,e,N,Y,P,K,d,T,F,J;return g.h(function(Q){if(Q.U==1){q.fetchType="gvi";k=q.B();var B={};q.aL&&(B.ytrext=q.aL);(e=g.KH(B)?void 0:B)?(b={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:e},O=qL(a,{action_display_post:1})):(b={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},O=a);N={};k.sendVisitorIdHeader&&q.visitorData&&(N["X-Goog-Visitor-Id"]=q.visitorData);(Y=Cz(k.experiments,"debug_sherlog_username"))&&(N["X-Youtube-Sherlog-Username"]=Y);Object.keys(N).length> 0&&(b.headers=N);P=(0,g.Zj)();return g.n(Q,hw(Vb,O,b).then(void 0,w),2)}K=Q.V;if(!K||!K.responseText)return Q.return(G(K));q.loading=!1;d=Wn(K.responseText);g.Fd(q,d,!0);if(q.errorCode)return T={ec:q.errorCode,ed:q.errorDetail,es:q.Dl||""},Q.return(Promise.reject(new g.PY("auth",T,2)));if(!q.loading&&!$Q(q))return F=q.isAd()?"auth":"manifest.net.retryexhausted",J=q.isAd()?2:1,Q.return(Promise.reject(new g.PY(F,{successButUnplayable:"1"},J)));g.Jm(Q)})}; Dg_=function(q,a){return new g.PY(q?"auth":"manifest.net.retryexhausted",a,q?2:1)}; gz=function(q,a,w){w=w===void 0?!1:w;var G,k,b,O;g.h(function(e){if(e.U==1){G=q.B();if(w&&(!g.Jd(G)||G4(a)!=="embedded")||a.Vf||G4(a)!=="adunit"&&(g.Nh(G)||P8(G)||g.BA(G)||g.VG(G)||g.b0(G)||s1(G)==="WEB_CREATOR"))return e.return();k=g.B8(G,g.li(a));return k.V?g.n(e,k.V,3):(b=k.getValue(),e.Gl(2))}e.U!=2&&(b=e.V);O=b;return e.return(qol(q,a,O))})}; qol=function(q,a,w){var G,k,b,O,e;return g.h(function(N){if(N.U==1){g.ml(N,2);G=ioN(w);var Y=a.B();g.hE();var P={context:g.Vk(a),videoId:a.videoId,racyCheckOk:a.racyCheckOk,contentCheckOk:a.contentCheckOk,autonavState:"STATE_NONE"};G4(a)==="adunit"&&(P.isAdPlayback=!0);Y.embedConfig&&(P.serializedThirdPartyEmbedConfig=Y.embedConfig);Y.rF&&(P.showContentOwnerOnly=!0);a.DW&&(P.showShortsOnly=!0);g.S2(0,141)&&(P.autonavState=g.S2(0,140)?"STATE_OFF":"STATE_ON");if(g.Zg(Y)){var K=g.S2(0,65);K=K!=null? !K:!1;var d=!!g.xt("yt-player-sticky-caption");P.captionsRequested=K&&d}var T;if(Y=(T=Y.getWebPlayerContextConfig())==null?void 0:T.encryptedHostFlags)P.playbackContext={encryptedHostFlags:Y};k=P;b=g.vA(gzN);q.A8("wn_s");return g.n(N,g.Bt(G,k,b),4)}if(N.U!=2)return O=N.V,q.A8("wn_r"),!O||"error"in O&&O.error||(e=O,g.kM(a.B())&&e.trackingParams&&b5(e.trackingParams),g.Fd(a,{raw_watch_next_response:O},!1)),g.xl(N,0);g.rc(N);g.Jm(N)})}; aEj=function(q){q.A8("vir");q.A8("ps_s");Af("vir",void 0,"video_to_ad");var a=zMl(q);a.then(function(){q.A8("virc");Af("virc",void 0,"video_to_ad");q.A8("ps_r");Af("ps_r",void 0,"video_to_ad")},function(){q.A8("virc"); Af("virc",void 0,"video_to_ad")}); return a}; g.GQ=function(q,a,w,G,k,b,O,e,N,Y){N=N===void 0?new g.TO(q):N;Y=Y===void 0?!0:Y;g.ya.call(this);var P=this;this.V7=q;this.playerType=a;this.ji=w;this.M7=G;this.getVisibilityState=b;this.visibility=O;this.n0=e;this.videoData=N;this.E1=Y;this.logger=new g.Zw("VideoPlayer");this.BN=null;this.Jg=new FK;this.fm=null;this.uG=!0;this.w8=this.loader=null;this.Lb=[];this.Ug=new qJ;this.WJ=this.uS=null;this.d9=new qJ;this.qd=null;this.c$=this.CU=!1;this.Q9=NaN;this.Z5=!1;this.playerState=new g.rD;this.o7=[]; this.SQ=new g.Ee;this.qy=new QOG(this);this.mediaElement=null;this.dn=new g.o1(this.ey7,15E3,this);this.bv=this.pX=!1;this.SX=NaN;this.Sy=!1;this.r_=0;this.wc=!1;this.s8=NaN;this.ib=new DI(new Map([["bufferhealth",function(){return xgJ(P.D0)}], ["bandwidth",function(){return P.hk()}], ["networkactivity",function(){return P.V7.schedule.y7}], ["livelatency",function(){return P.isAtLiveHead()&&P.isPlaying()?wfl(P):NaN}], ["rawlivelatency",function(){return wfl(P)}]])); this.ob=0;this.loop=!1;this.playbackRate=1;this.Gr=0;this.D0=new ZoU(this);this.mD=!1;this.y9=[];this.Y1=this.Bf=0;this.ev=this.Gq=!1;this.ZN=this.M$=0;this.PX=new g.o1(this.gC,0,this);this.cO=!1;this.T0=null;this.lh8=[this.SQ,this.PX,this.dn,this.ib];this.FJ=this.AN=this.AC=null;this.wx=function(){var K=P.nk;K.provider.V7.tp||K.provider.aW.getVisibilityState()===3||(K.provider.V7.tp=!0);K.YZ();if(K.U){var d=K.U;d.D&&d.V<0&&d.provider.aW.getVisibilityState()!==3&&atK(d)}K.qoe&&(K=K.qoe,K.A2&&K.W< 0&&K.provider.V7.tp&&B6U(K),K.Y&&Gx(K));P.loader&&az(P);P.V7.uR&&!P.videoData.backgroundable&&P.mediaElement&&!P.yT()&&(P.isBackground()&&P.mediaElement.yl()?(P.d8("bgmobile",{suspend:1}),P.MX(!0,!0)):P.isBackground()||wz(P)&&P.d8("bgmobile",{resume:1}))}; this.qh={fb:function(K){P.fb(K)}, cbT:function(K){P.BN=K}, LFB:function(){return P.nk}, jD:function(){return P.w8}, Zb9:function(){return P.VB}, BF7:function(){return P.aC}, kH8:function(){}, B:function(){return P.V7}, Z0:function(){return P.mediaElement}, bv7:function(K){P.gV(K)}, Sbh:function(){return P.M7}}; this.logger.debug(function(){return"creating, type "+a}); this.DC=new kgf(this.V7);this.KE=new ZI(this.V7,this.M7,this);this.oG=new g.hP(this,function(K,d){K!==g.oM("endcr")||g.v(P.playerState,32)||P.Np();k(K,d,P.playerType);if(K===g.oM("transitiondetector")&&(K=P.loader)!=null&&(K=K.OA)!=null){var T=g.V(udJ(d.id));T.next();T=T.next().value;XDm(K,T,d.start/1E3-K.aW.g$(),MOm(K.Y))}}); g.p(this,this.oG);g.p(this,this.D0);GTl(this,N);this.videoData.subscribe("dataupdated",this.Tz8,this);this.videoData.subscribe("dataloaded",this.RC,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.d8,this);this.videoData.subscribe("ctmpstr",this.qP,this);!this.nk||this.nk.t2();this.nk=new g.M_(new n6(this.videoData,this.V7,this));JPN(this.wx);this.visibility.subscribe("visibilitystatechange",this.wx);this.VB=new g.o1(this.mj,g.Wo(this.V7.experiments, "html5_player_att_initial_delay_ms")||4500,this);this.aC=new g.o1(this.mj,g.Wo(this.V7.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.RZ=new g.iX(this.l09,350,this);g.p(this,this.RZ)}; GTl=function(q,a){if(q.playerType===2||q.V7.Qr)a.Mx=!0;var w=QPl(a.tp,a.zC,q.V7.Y,q.V7.S);w&&(a.adFormat=w);q.playerType===2&&(a.BH=!0);if(q.isFullscreen()||q.V7.Y)w=g.xt("yt-player-autonavstate"),a.autonavState=w||(q.V7.Y?2:q.videoData.autonavState);a.endSeconds&&a.endSeconds>a.startSeconds&&iA(q,a.endSeconds)}; kTf=function(q){var a=q.videoData;aEj(q).then(void 0,function(w){q.videoData!==a||a.t2()||(w=dl(w),w.errorCode==="auth"&&q.videoData.errorDetail?q.q_(w.errorCode,2,unescape(q.videoData.errorReason),YG(w.details),q.videoData.errorDetail,q.videoData.Dl||void 0):q.handleError(w))})}; lEf=function(q){if(!g.v(q.playerState,128))if(q.videoData.isLoaded(),q.logger.debug("finished loading playback data"),q.Lb=g.nw(q.videoData.J),g.vD(q.videoData)){q.ji.tick("bpd_s");kk(q).then(function(){q.ji.tick("bpd_c");if(!q.t2()){q.CU&&(q.UQ(hB(hB(q.playerState,512),1)),wz(q));var G=q.videoData;G.endSeconds&&G.endSeconds>G.startSeconds&&iA(q,G.endSeconds);q.Ug.finished=!0;b_(q,"dataloaded");q.d9.Ab()&&bXK(q);gkN(q.KE,q.WJ)}}); q.T("html5_log_media_perf_info")&&q.d8("loudness",{v:q.videoData.E3.toFixed(3)},!0);var a,w=(a=q.mediaElement)==null?void 0:a.cq();if(w&&"disablePictureInPicture"in w&&q.V7.d2)try{w.disablePictureInPicture=q.V7.ZO&&!q.videoData.backgroundable}catch(G){g.Qa(G)}OXl(q);q.T("html5_enable_new_audio_settings_menu")&&(q.FJ=new Nq_(q.videoData))}else b_(q,"dataloaded")}; kk=function(q){OB(q);q.WJ=null;var a=Oo_(q.V7,q.videoData,q.yT());q.uS=a;q.uS.then(function(w){ee_(q,w)},function(w){q.t2()||(w=dl(w),q.visibility.isBackground()?(l_(q,"vp_none_avail"),q.uS=null,q.Ug.reset()):(q.Ug.finished=!0,q.q_(w.errorCode,w.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",YG(w.details))))}); return a}; ee_=function(q,a){if(!q.t2()&&!a.videoData.t2()){q.logger.debug("finished building playback data");q.WJ=a;JqJ(q.D0,q.WJ);if(q.videoData.isLivePlayback){var w=NmK(q.n0.UU,q.videoData.videoId)||q.loader&&!isNaN(q.loader.f7);w=q.T("html5_onesie_live")&&w;v7(q)||q.videoData.uF>0&&!fc(q.videoData)||w||q.seekTo(q.K0(),{e1:"videoplayer_playbackData",seekSource:18})}if(q.videoData.W.V){if(qtf(q.videoData)){q.q_("fmt.missing",2,"BROWSER_OR_EXTENSION_ERROR",YG({missabrurl:1}));return}q.loader?g.Qa(Error("Duplicated Loader")): (w=g.Wo(q.V7.experiments,"html5_onesie_defer_content_loader_ms"))&&q.S_()&&NmK(q.n0.UU,q.videoData.f8W)?g.ee(function(){q.t2()||q.loader||Yo_(q)},w):Yo_(q)}else!q.videoData.W.V&&YU(q.videoData)&&q.PZ(new mO(q.videoData.videoId||"",4)); q.Zt();vVl(a).then(function(){var G={};q.cC(G);q.V7.TZ()&&q.T("html5_log_media_perf_info")&&q.d8("av1Info",G);az(q)})}}; bXK=function(q){q.t2();q.logger.debug("try finish readying playback");if(q.d9.finished)q.logger.debug("already finished readying");else if(q.Ug.finished)if(g.v(q.playerState,128))q.logger.debug("cannot finish readying because of error");else if(q.Lb.length)q.logger.debug(function(){return"cannot finish readying because of pending preroll: "+q.Lb}); else if(q.oG.started||R5V(q.oG),q.Rg())q.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{q.loader&&(q.c$=kmV(q.loader.timing));q.d9.finished||(q.d9.finished=!0);var a=q.T("html5_onesie_live")&&q.loader&&!isNaN(q.loader.f7);!q.videoData.isLivePlayback||q.videoData.uF>0&&!fc(q.videoData)||a||v7(q)||(q.logger.debug("seek to head for live"),q.seekTo(Infinity,{e1:"videoplayer_readying",seekSource:18}),q.isBackground()&&(q.bv=!0));ftJ(q.nk);q.logger.debug("finished readying playback"); q.publish("playbackready");mu("pl_c",q.ji.timerName)||(q.ji.tick("pl_c"),Af("pl_c",void 0,"video_to_ad"));mu("pbr",q.ji.timerName)||(q.ji.tick("pbr"),Af("pbr",void 0,"video_to_ad"))}else q.logger.debug("playback data not loaded")}; iA=function(q,a){q.fm&&PsN(q);q.fm=new g.Xo(a*1E3,0x7ffffffffffff);q.fm.namespace="endcr";q.addCueRange(q.fm)}; PsN=function(q){q.removeCueRange(q.fm);q.fm=null}; KiV=function(q,a,w,G,k){var b=q.nk,O=q.videoData;O.U=w;var e=g.e5(q);w=new cPf(O,w,a,e?e.itag:"",G);q.V7.experiments.Zh("html5_refactor_sabr_video_format_selection_logging")?(w.videoId=k,q.AN=w):b.qoe&&LXc(b.qoe,w);k=q.KE;k.U=0;k.V=0;q.publish("internalvideoformatchange",O,a==="m")}; g.e5=function(q){var a=NJ(q);return Lx(a)||!q.WJ?null:g.Z7(q.WJ.V.videoInfos,function(w){return a.Y(w)})}; NJ=function(q){if(q.WJ){var a=q.KE;var w=q.WJ;q=q.LS();var G=U_G(a);if(Lx(G)){if(G=a.g6(w).compose(IIf(a,w)).compose(txV(a,w)).compose(yPV(a,w.videoData)).compose(qBm(a,w.videoData,w)).compose(RWc(a,w)).compose(jOm(a,w)),Lx(q)||a.T("html5_apply_pbr_cap_for_drm"))G=G.compose(oVl(a,w))}else a.T("html5_perf_cap_override_sticky")&&(G=G.compose(RWc(a,w))),a.T("html5_ustreamer_cap_override_sticky")&&(G=G.compose(oVl(a,w)));G=G.compose(jOm(a,w));a=w.videoData.oy.compose(G).compose(w.videoData.lP).compose(q)}else a= dM;return a}; Yrc=function(q){var a=q.KE;q=q.videoData;var w=yPV(a,q);a.T("html5_disable_client_autonav_cap_for_onesie")||w.compose(qBm(a,q));return w}; az=function(q){if(q.videoData.W&&q.videoData.W.V){var a=NJ(q);q.loader&&zPy(q.loader,a)}}; dVl=function(q){var a;return!!(q.T("html5_native_audio_track_switching")&&g.Ph&&((a=q.videoData.U)==null?0:i4(a)))}; Tmc=function(q){if(!dVl(q))return!1;var a;q=(a=q.mediaElement)==null?void 0:a.audioTracks();return!!(q&&q.length>1)}; s3K=function(q){var a=$VN(q);if(a)return q.videoData.getAvailableAudioTracks().find(function(w){return w.Pq.getName()===a})}; $VN=function(q){var a;if(q=(a=q.mediaElement)==null?void 0:a.audioTracks())for(a=0;a0&&(a.eG=w.g9));a.Vm=w.J4;a.yp=aW(G,{},w.W||void 0,Lc(w));a.IW=xQ(w)&&(g.BA(G)||g.VG(G));rM(w)&&(a.D=!0,a.N$=G.T("html5_estimate_live_partial_slice_duration"),a.JS=!0,G.T("html5_sabr_report_partial_segment_estimated_duration")&&(a.gi=!0),a.V=!0,a.WM=G.T("html5_sabr_enable_live_clock_offset"),a.i5= G.T("html5_disable_client_resume_policy_for_sabr"),a.nx=G.T("html5_trigger_loader_when_idle_network"),a.Le=G.T("html5_sabr_parse_live_metadata_playback_boundaries"),a.Y2=G.T("html5_consume_onesie_next_request_policy_for_sabr"),a.k6=G.T("html5_sabr_report_next_ad_break_time"),a.IH=G.T("html5_log_high_res_buffer_timeline")&&G.TZ(),a.wi=G.T("html5_remove_stuck_slices_beyond_max_buffer_limits"),a.rk=G.T("html5_gapless_sabr_btl_last_slice")&&AF(w),a.ll=G.T("html5_reset_last_appended_slice_on_seek")&&AF(w), fc(w)?(a.NA=!0,a.vC=G.T("html5_disable_variability_tracker_for_live"),a.A2=!0,G.T("html5_simplified_backup_timeout_sabr_live")&&(a.KF=!0,a.XN=a.Kb)):a.L0=G.T("html5_probe_request_on_sabr_request_progress"),a.TB=G.T("html5_serve_start_seconds_seek_for_post_live_sabr"),a.QE=G.T("html5_flush_index_on_updated_timestamp_offset"),a.J=rM(w),a.S7=G.T("html5_ignore_partial_segment_from_live_readahead"),G.T("html5_include_partial_segment_for_jumbo_ll")&&HD(w)&&(a.S7=!1),a.wB=G.T("html5_use_non_active_broadcast_for_post_live"), a.f7=G.T("html5_use_centralized_player_time"),a.N1=G.T("html5_log_centralized_player_time"),a.EM=G.T("html5_consume_onesie_sabr_seek"),a.F9=G.T("html5_enable_sabr_seek_loader_refactor"),a.Iz=g.Wo(G.experiments,"html5_sabr_quota_exceeded_retry_buffer_health_secs"),a.Nu=G.T("html5_update_segment_start_time_from_media_header"),w.enableServerStitchedDai&&(a.U=!0,a.AT=G.T("html5_reset_server_stitch_state_for_non_sabr_seek"),a.MA=G.T("html5_remove_ssdai_append_pause")&&!w.fT(),a.E3=G.T("html5_ssdai_log_ssevt_in_loader")|| G.T("html5_ssdai_log_ssevt_in_loader_200ms")||G.T("html5_ssdai_log_ssevt_in_loader_timers")||G.T("html5_ssdai_log_ssevt_in_loader_cuerange"),G.T("html5_ssdai_log_ssevt_in_loader_timers")?a.OA=1:G.T("html5_ssdai_log_ssevt_in_loader_200ms")?a.OA=3:G.T("html5_ssdai_log_ssevt_in_loader_cuerange")&&(a.OA=0)),a.A5=G.TZ()||w.fT());a.RA=g.Dvm(w);og(G.D,Ig.BITRATE)&&(a.J2=NaN);if(e=g.Wo(G.experiments,"html5_request_size_max_kb"))a.Tl=e*1024;G.D.W?a.PQ="; "+Ig.EXPERIMENTAL.name+"=allowed":G.T("html5_enable_cobalt_tunnel_mode")&& g.py()&&(e=Ig.TUNNELMODE,a.PQ="; "+e.name+"="+e.valid);w=w.serverPlaybackStartConfig;(w==null?0:w.enable)&&(w==null?0:w.playbackStartPolicy)&&(a.gT=!0,wr(a,w.playbackStartPolicy,2));w=FiV(q);q.Jg.removeAll();a:{e=q.n0.UU;if(G=q.videoData.videoId)if(k=e.V.get(G)){e.V.remove(G);e=k;break a}e=void 0}q.loader=new g.lA(q,q.V7.schedule,a,q.videoData.V,q.videoData.W,NJ(q),w,q.videoData.enableServerStitchedDai,e,q.videoData.F9);a=q.videoData.T("html5_disable_preload_for_ssdai_with_preroll")&&q.videoData.isLivePlayback&& q.S_()?!0:q.CU&&g.Nh(q.V7)&&q.videoData.isLivePlayback;q.loader.initialize(q.getCurrentTime(),NJ(q),a);q.videoData.probeUrl&&(q.loader.BT=q.videoData.probeUrl);if(q.Lb.length||q.CU)q.videoData.cotn||Yk(q,!1);QEj(q.D0,q.loader);q.T0&&($s_(q.loader,new g.ex(q.T0)),q.d8("sdai",{sdl:1}));g.T4(q.videoData)&&(q=q.loader,q.policy.PM=q.policy.GW)}; OB=function(q){q.loader&&(q.loader.dispose(),q.loader=null,QEj(q.D0,null));q.Vp()?Cs_(q):q.EE()}; Cs_=function(q){if(q.w8)if(q.logger.debug("release media source"),q.HP(),q.w8.D)try{q.V7.TZ()&&q.d8("rms",{l:"vprms",sr:q.Vp(),rs:Vy(q.w8)});q.w8.clear();var a;(a=q.mediaElement)!=null&&(a.U=q.w8);q.w8=null}catch(w){a=new g.UH("Error while clearing Media Source in VideoPlayer: "+w.name+", "+w.message),a=dl(a),q.handleError(a),q.EE()}else q.EE()}; ZXU=function(q,a){a=a===void 0?!1:a;if(q.w8)return q.w8.W;q.logger.debug("update media source");a:{a=a===void 0?!1:a;try{g.py()&&q.videoData.ra()&&IRc(q.mediaElement);var w=q.mediaElement.jD(q.xA(),q.S9())}catch(k){if(rPU(q.qy,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",k);q.q_("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}q.Df(w,!1,!1,a)}var G;return((G=q.jD())==null?void 0:G.W)||null}; Ezm=function(q,a){a=a===void 0?!1:a;if(q.loader){q.videoData.enableServerStitchedDai&&rrJ(q.loader);var w=q.getCurrentTime()-q.g$();q.loader.seek(w,{Zk:a}).AK(function(){})}else Yo_(q)}; JAj=function(q,a,w,G){w=w===void 0?!1:w;G=G===void 0?!1:G;if(q.w8&&(!a||q.w8===a)){q.logger.debug("media source opened");var k=q.getDuration();!k&&fc(q.videoData)&&(k=25200);if(q.w8.isView){var b=k;q.logger.debug(function(){return"Set media source duration to "+b+", video duration "+k}); b>q.w8.getDuration()&&VMG(q,b)}else VMG(q,k);ue_(q.loader,q.w8,w,G);q.publish("mediasourceattached")}}; VMG=function(q,a){if(q.w8){q.w8.SD(a);var w;(w=q.loader)!=null&&w.policy.f7&&(w.L=a)}}; WXU=function(q,a){KiV(q,a.reason,a.V.info,a.token,a.videoId)}; b_=function(q,a){q.publish("internalvideodatachange",a===void 0?"dataupdated":a,q.videoData)}; mVl=function(q){for(var a=g.V("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),w=a.next();!w.done;w=a.next())q.SQ.C(q.mediaElement,w.value,q.gV,q);q.V7.u9&&q.mediaElement.GB()&&(q.SQ.C(q.mediaElement,"webkitplaybacktargetavailabilitychanged",q.kll,q),q.SQ.C(q.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",q.b7B,q))}; AAl=function(q){g.Pr(q.Q9);Q3c(q)||(q.Q9=g.NL(function(){return Q3c(q)},100))}; Q3c=function(q){var a=q.mediaElement;a&&q.pX&&!q.videoData.UK&&!mu("vfp",q.ji.timerName)&&a.rl()>=2&&!a.isEnded()&&lw(a.xe())&&q.ji.tick("vfp");return(a=q.mediaElement)&&!q.videoData.UK&&a.getDuration()>0&&(a.isPaused()&&a.rl()>=2&&lw(a.xe())&&(mu("pbp",q.ji.timerName)||q.ji.tick("pbp"),!q.videoData.sj||q.Z5||a.isSeeking()||(q.Z5=!0,q.publish("onPlaybackPauseAtStart"))),a=a.getCurrentTime(),Sx(q.DC,a))?(q.kM(),!0):!1}; Liy=function(q){q.nk.onProgress();if(SO(q.videoData)&&Date.now()>q.Gr+6283){if(q.T("html5_unified_live_latency_reporting")){var a=q.nk;a.qoe&&ZDN(a.qoe)}else!q.isAtLiveHead()||q.videoData.V&&Ia(q.videoData.V)||(a=q.nk,a.qoe&&ZDN(a.qoe));q.T("html5_alc_live_log_rawlat")?(a=q.videoData,a=g.lt(a.B())?!0:g.FY(a.B())?a.drmProduct==="6":!1):a=g.lt(q.V7);var w=q.T("html5_always_log_rawlat");(a||w)&&q.d8("rawlat",{l:yF(q.ib,"rawlivelatency").toFixed(3)});q.Gr=Date.now()}q.videoData.U&&i4(q.videoData.U)&& (a=q.T2())&&a.videoHeight!==q.Y1&&(q.Y1=a.videoHeight,KiV(q,"a",xVm(q,q.videoData.A2)))}; xVm=function(q,a){if(a.V.video.quality==="auto"&&i4(a.getInfo())&&q.videoData.Nh)for(var w=g.V(q.videoData.Nh),G=w.next();!G.done;G=w.next())if(G=G.value,G.getHeight()===q.Y1&&G.V.video.quality!=="auto")return G.getInfo();return a.getInfo()}; wfl=function(q){if(!SO(q.videoData))return NaN;var a=0;q.loader&&q.videoData.V&&(a=fc(q.videoData)?q.loader.MS.CO()||0:q.videoData.V.f7);return(0,g.Zj)()/1E3-q.OB()-a}; rAf=function(q){q.mediaElement&&q.mediaElement.yT()&&(q.s8=(0,g.Zj)());q.V7.Kb?g.ee(function(){BmV(q)},0):BmV(q)}; BmV=function(q){var a;if((a=q.w8)==null||!a.Eo()){if(q.mediaElement)try{q.qd=q.mediaElement.playVideo()}catch(G){l_(q,"err."+G)}if(q.qd){var w=q.qd;w.then(void 0,function(G){q.logger.debug(function(){return"playMediaElement failed: "+G}); if(!g.v(q.playerState,4)&&!g.v(q.playerState,256)&&q.qd===w)if(G&&G.name==="AbortError"&&G.message&&G.message.includes("load"))q.logger.debug(function(){return"ignore play media element failure: "+G.message}); else{var k="promise";G&&G.name&&(k+=";m."+G.name);l_(q,k);q.mD=!0;q.videoData.nu=!0}})}}}; l_=function(q,a){g.v(q.playerState,128)||(q.UQ(fW(q.playerState,1028,9)),q.d8("dompaused",{r:a}),q.publish("onAutoplayBlocked"))}; wz=function(q,a){a=a===void 0?!1:a;if(!q.mediaElement||!q.videoData.W)return!1;var w=a;w=w===void 0?!1:w;var G=null;var k;if((k=q.videoData.W)==null?0:k.V){G=ZXU(q,w);var b;(b=q.loader)==null||b.resume()}else OB(q),q.videoData.A2&&(G=q.videoData.A2.gw());k=q.mediaElement.yl();w=!1;k&&k.equals(G)||(nzf(q,G),w=!0);g.v(q.playerState,2)||(G=q.D0,a=a===void 0?!1:a,G.D||!(G.W>0)||G.mediaElement&&G.mediaElement.getCurrentTime()>0||(a={e1:"seektimeline_resumeTime",Zk:a},G.videoData.UK||(a.seekSource=15), G.seekTo(G.W,a)));a:{a=w;if(rM(q.videoData)){if(!q.videoData.YD())break a}else if(!g.op(q.videoData))break a;if(q.mediaElement)if((G=q.videoData.D)&&q.mediaElement.GB()){k=q.mediaElement.cq();if(q.BN)if(k!==q.BN.element)PP(q);else if(a&&G.flavor==="fairplay"&&!UF())PP(q);else break a;if(q.T("html5_report_error_for_unsupported_tvos_widevine")&&UF()&&G.flavor==="widevine")q.q_("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.unspttvoswidevine");else{q.BN=new d_N(k,q.videoData,q.V7);q.BN.subscribe("licenseerror", q.h9,q);q.BN.subscribe("qualitychange",q.El2,q);q.BN.subscribe("heartbeatparams",q.Wk,q);q.BN.subscribe("keystatuseschange",q.fb,q);q.BN.subscribe("ctmp",q.d8,q);a=g.V(q.Jg.keys);for(G=a.next();!G.done;G=a.next())G=q.Jg.get(G.value),q.BN.l7(G);q.T("html5_eme_loader_sync")||q.Jg.removeAll()}}else q.q_("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.updatedrm")}return w}; nzf=function(q,a){q.ji.tick("vta");Af("vta",void 0,"video_to_ad");q.getCurrentTime()>0&&BPl(q.D0,q.getCurrentTime());q.mediaElement.activate(a);q.w8&&iM(4);!q.videoData.UK&&q.playerState.isOrWillBePlaying()&&q.dn.start();if(dVl(q)){var w;if(a=(w=q.mediaElement)==null?void 0:w.audioTracks())a.onchange=function(){q.publish("internalaudioformatchange",q.videoData,!0)}}}; PP=function(q){q.BN&&(q.BN.dispose(),q.BN=null)}; MMc=function(q){var a=a===void 0?!1:a;q.logger.debug("reattachVideoSource");q.mediaElement&&(q.w8?(PP(q),q.EE(),ZXU(q,a)):(q.videoData.A2&&q.videoData.A2.xa(),q.mediaElement.stopVideo()),q.playVideo())}; he_=function(q,a){q.V7.T("html5_log_rebuffer_reason")&&(a={r:a,lact:s9()},q.mediaElement&&(a.bh=xj(q.mediaElement)),q.d8("bufreason",a))}; Sol=function(q,a){if(q.V7.TZ()&&q.mediaElement){var w=q.mediaElement.Kk();w.omt=(q.mediaElement.getCurrentTime()+q.g$()).toFixed(3);w.ps=q.playerState.state.toString(16);w.rt=(g.wk(q.nk.provider)*1E3).toFixed();w.e=a;q.y9[q.Bf++%5]=w}try{if(a==="timeupdate"||a==="progress")return}catch(G){}q.logger.debug(function(){return"video element event "+a})}; fEl=function(q){if(q.V7.TZ()){q.y9.sort(function(G,k){return+G.rt-+k.rt}); for(var a=g.V(q.y9),w=a.next();!w.done;w=a.next())w=w.value,q.d8("vpe",Object.assign({t:w.rt},w));q.y9=[];q.Bf=0}}; HXl=function(q){if(g.Hr("cobalt")&&g.Hr("nintendo switch")){var a=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;q.d8("nxdock",{d:a})}}; Yk=function(q,a){var w;(w=q.loader)==null||UTj(w,a)}; OXl=function(q){sT(q.videoData,"html5_set_debugging_opt_in")&&(q=g.hE(),g.S2(0,183)||(H5(183,!0),q.save()))}; nwc=function(q,a){q.n0.Qm()||(q.d8("sgap",{f:a}),q.n0.clearQueue(!1,a==="pe"))}; v7=function(q){return q.T("html5_disable_video_player_initiated_seeks")&&rM(q.videoData)}; cAy=function(q){Km.call(this,q);var a=this;this.events=new g.Ee(q);g.p(this,this.events);mX(this.api,"isLifaAdPlaying",function(){return a.api.isLifaAdPlaying()}); this.events.C(q,"serverstitchedvideochange",function(){var w;(w=a.api.getVideoData())!=null&&w.fT()&&(a.api.isLifaAdPlaying()?(a.playbackRate=a.api.getPlaybackRate(),a.api.setPlaybackRate(1)):a.api.setPlaybackRate(a.playbackRate))}); this.playbackRate=1}; Kh=function(q){EI.call(this,"Bucle",g.Lm.pG);this.j=q;var a=q.T("delhi_modern_web_player_icons")?{G:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{G:"path",Z:{d:"M17.29 1.29C17.11 1.46 17.01 1.70 17.00 1.94C16.98 2.19 17.06 2.43 17.22 2.63L17.29 2.70L18.58 4H7C5.67 4 4.40 4.52 3.46 5.46C2.52 6.40 2 7.67 2 9V13C2 13.26 2.10 13.51 2.29 13.70C2.48 13.89 2.73 14 3 14C3.26 14 3.51 13.89 3.70 13.70C3.89 13.51 4 13.26 4 13V9C4 8.20 4.31 7.44 4.87 6.87C5.44 6.31 6.20 6 7 6H18.58L17.29 7.29C17.11 7.48 17.01 7.73 17.01 7.99C17.01 8.25 17.11 8.50 17.30 8.69C17.49 8.88 17.74 8.98 18.00 8.98C18.26 8.98 18.51 8.88 18.70 8.70L22.41 5L18.70 1.29L18.63 1.22C18.43 1.06 18.19 .98 17.94 1.00C17.70 1.01 17.46 1.11 17.29 1.29ZM21 10C20.73 10 20.48 10.10 20.29 10.29C20.10 10.48 20 10.73 20 11V15C20 15.79 19.68 16.55 19.12 17.12C18.55 17.68 17.79 18 17 18H5.41L6.70 16.70C6.80 16.61 6.87 16.50 6.93 16.38C6.98 16.26 7.01 16.12 7.01 15.99C7.01 15.86 6.98 15.73 6.93 15.60C6.88 15.48 6.81 15.37 6.71 15.28C6.62 15.18 6.51 15.11 6.39 15.06C6.26 15.01 6.13 14.98 6.00 14.98C5.87 14.98 5.73 15.01 5.61 15.06C5.49 15.12 5.38 15.19 5.29 15.29L1.58 19L5.29 22.70L5.36 22.77C5.56 22.92 5.80 23.00 6.04 22.99C6.29 22.98 6.52 22.87 6.70 22.70C6.87 22.52 6.98 22.29 6.99 22.04C7.00 21.80 6.92 21.56 6.77 21.36L6.70 21.29L5.41 20H17C18.32 20 19.59 19.47 20.53 18.53C21.47 17.59 22 16.32 22 15V11C22 10.73 21.89 10.48 21.70 10.29C21.51 10.10 21.26 10 21 10Z", fill:"white"}}]}:Bgc();this.setIcon(a);this.subscribe("select",this.U,this);q.createClientVe(this.element,this,28661);this.C(q,"settingsMenuVisibilityChanged",this.V);this.listen("click",this.logClick);this.C(q,"onLoopChange",this.onLoopChange);Vf(this,q.getLoopVideo());q.cW().Qa(this)}; pf_=function(q){Km.call(this,q);var a=this;q.addEventListener("settingsMenuInitialized",function(){a.menuItem||(a.menuItem=new Kh(a.api),g.p(a,a.menuItem))}); q.addEventListener("videodatachange",function(w,G){w=a.api.getPresentingPlayerType()===2;var k;(k=a.menuItem)==null||k.Ji(!G.isLivePlayback&&!w)})}; UV_=function(q){Km.call(this,q);var a=this;this.events=new g.Ee(q);g.p(this,this.events);mX(this.api,"seekToChapterWithAnimation",function(w){a.seekToChapterWithAnimation(w)}); mX(this.api,"seekToTimeWithAnimation",function(w,G){a.seekToTimeWithAnimation(w,G)}); mX(this.api,"renderChapterSeekingAnimation",function(w,G,k){a.api.renderChapterSeekingAnimation(w,G,k)}); mX(this.api,"setMacroMarkers",function(w){a.setMacroMarkers(q,w)}); mX(this.api,"changeMarkerVisibility",function(w,G,k){a.changeMarkerVisibility(w,G,k)}); mX(this.api,"isSameMarkerTypeVisible",function(w){return a.isSameMarkerTypeVisible(w)})}; Xfl=function(q,a,w){var G=q.api.getCurrentTime()*1E30&&k>0&&(w.width+=k,g.IR(a.element,"width",w.width+"px")));q.size=w}}; g.BP=function(q,a){var w=q.V[q.V.length-1];w!==a&&(q.V.push(a),ZEc(q,w,a))}; g.rz=function(q){if(!(q.V.length<=1)){var a=q.V.pop(),w=q.V[0];q.V=[w];ZEc(q,a,w,!0)}}; ZEc=function(q,a,w,G){ELU(q);a&&(a.unsubscribe("size-change",q.B_,q),a.unsubscribe("back",q.Iw,q));w.subscribe("size-change",q.B_,q);w.subscribe("back",q.Iw,q);if(q.Fw){g.gU(w.element,G?"ytp-panel-animate-back":"ytp-panel-animate-forward");w.HT(q.element);w.focus();q.element.scrollLeft=0;q.element.scrollTop=0;var k=q.size;CRm(q);g.qz(q.element,k);q.L=new g.o1(function(){Vfm(q,a,w,G)},20,q); q.L.start()}else w.HT(q.element),a&&a.detach()}; Vfm=function(q,a,w,G){q.L.dispose();q.L=null;g.gU(q.element,"ytp-popup-animating");G?(g.gU(a.element,"ytp-panel-animate-forward"),g.wU(w.element,"ytp-panel-animate-back")):(g.gU(a.element,"ytp-panel-animate-back"),g.wU(w.element,"ytp-panel-animate-forward"));g.qz(q.element,q.size);q.X=new g.o1(function(){g.wU(q.element,"ytp-popup-animating");a.detach();g.GM(a.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);q.X.dispose();q.X=null},250,q); q.X.start()}; ELU=function(q){q.L&&g.vv(q.L);q.X&&g.vv(q.X)}; nh=function(q){g.Lh.call(this,q,"ytp-shopping-product-menu");this.aN=new g.As(this.j);g.p(this,this.aN);this.hide();g.BP(this,this.aN);g.DZ(this.j,this.element,4)}; mpV=function(q,a,w){var G,k=a==null?void 0:(G=a.text)==null?void 0:G.simpleText;k&&(w=Jgj(q,w,k,a==null?void 0:a.icon,a==null?void 0:a.secondaryIcon),a.navigationEndpoint&&w.listen("click",function(){q.j.zl("innertubeCommand",a.navigationEndpoint);q.hide()},q))}; QJj=function(q,a,w){var G,k=a==null?void 0:(G=a.text)==null?void 0:G.simpleText;k&&Jgj(q,w,k,a==null?void 0:a.icon).listen("click",function(){var b;(a==null?void 0:(b=a.icon)==null?void 0:b.iconType)==="HIDE"?q.j.publish("featuredproductdismissed"):a.serviceEndpoint&&q.j.zl("innertubeCommand",a.serviceEndpoint);q.hide()},q)}; Jgj=function(q,a,w,G,k){a=new g.e1(g.Ns({},[],!1,!!k),a,w);k&&a.updateValue("secondaryIcon",Ag_(k));a.setIcon(Ag_(G));g.p(q,a);q.aN.Qa(a,!0);return a}; Ag_=function(q){if(!q)return null;switch(q.iconType){case "ACCOUNT_CIRCLE":return{G:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{G:"path",Z:{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{G:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{G:"path",Z:{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 $Rm();case "HIDE":return{G:"svg",Z:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{G:"g",K:[{G:"path",Z:{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 sE()}}; MJ=function(q){mp.call(this,q,!1,!0);this.isCounterfactual=this.U=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.S=!0;this.overflowButton=new g.u({G:"button",vT:["ytp-featured-product-overflow-icon","ytp-button"],Z:{"aria-haspopup":"true"}});this.overflowButton.hide();g.p(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.u({G:"img",N:"ytp-suggested-action-badge-img",Z:{src:"{{url}}"}}); this.thumbnailImage.hide();g.p(this,this.thumbnailImage);this.thumbnailIcon=new g.u({G:"div",N:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.p(this,this.thumbnailIcon);this.banner=new g.u({G:"a",N:"ytp-suggested-action-container",K:[this.thumbnailImage,this.thumbnailIcon,{G:"div",N:"ytp-suggested-action-details",K:[{G:"text",N:"ytp-suggested-action-title",ue:"{{title}}"},{G:"text",N:"ytp-suggested-action-subtitle",ue:"{{subtitle}}"},{G:"text",N:"ytp-suggested-action-metadata-text", ue:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.p(this,this.banner);this.banner.HT(this.W.element);this.C(this.j,"videodatachange",this.onVideoDataChange);this.C(this.j,g.oM("suggested_action_view_model"),this.fZl);this.C(this.j,g.IM("suggested_action_view_model"),this.HkW);this.C(this.overflowButton.element,"click",this.A1);this.C(q,"featuredproductdismissed",this.oM);this.j.createServerVe(this.banner.element,this.banner,!0)}; xpj=function(q){q.isInitialized&&(q.enabled=q.isVisible,q.UK=q.isVisible,Js(q),q.zg(),q.thumbnailImage.Ji(q.isVisible),q.shouldHideDismissButton||q.dismissButton.Ji(q.isVisible),q.shouldShowOverflowButton&&q.overflowButton.Ji(q.isVisible))}; hs=function(){MJ.apply(this,arguments)}; LDJ=function(q){Km.call(this,q);this.V=new hs(this.api);g.p(this,this.V);g.DZ(this.api,this.V.element,4)}; S5=function(q){Km.call(this,q);var a=this;this.V=!0;var w=new g.Ee(q);g.p(this,w);w.C(q,"internalaudioformatchange",function(G,k){BuV(a,G,k)}); w.C(q,"videoplayerreset",function(){rgy(a)}); w.C(q,"videodatachange",function(G,k){a.onVideoDataChange(G,k)})}; BuV=function(q,a,w){if(w){var G="";nLm(q,a)&&(G=a,q.api.B().h2=a);if(G&&Mfm(q,G)){nRK(q.api,G);var k;jZ(r8(q.api.B(),(k=q.api.getVideoData())==null?void 0:g.li(k)),function(b){hBl(q,G,b)})}}}; rgy=function(q){var a;if((a=Zl())==null?0:a.size){var w;jZ(r8(q.api.B(),(w=q.api.getVideoData())==null?void 0:g.li(w)),function(G){(G=SDl(G))&&Mfm(q,G)&&(q.api.B().h2=G)})}}; hBl=function(q,a,w){SDl(w)!==a&&(f0N([{settingItemId:fh(w),settingOptionValue:{stringValue:a}}]),jZ(q.e2(),function(G){$9V(G,fh(w),{stringValue:a})}))}; HEV=function(q,a){ok(jZ(jZ(q.e2(),function(w){return d9K(w,[fh(a)])}),function(w){if(w){w=g.V(w); for(var G=w.next();!G.done;G=w.next()){var k=G.value;G=k.key;k=k.value;G&&k&&(f0N([{settingItemId:G,settingOptionValue:k}]),rgy(q))}}}),function(){q.V=!0})}; nLm=function(q,a){q=q.api.getAvailableAudioTracks();q=g.V(q);for(var w=q.next();!w.done;w=q.next())if(w=w.value,w.getLanguageInfo().getId()===a)return w;return null}; SDl=function(q){q=fh(q);var a=Zl();q=a?a.get(q):void 0;return q&&q.stringValue?q.stringValue:""}; fh=function(q){var a=(484).toString();q&&(a=(483).toString());return a}; Mfm=function(q,a){var w;return a.split(".")[0]!==""&&((w=q.api.getVideoData())==null?void 0:!NT(w))}; f0N=function(q){var a=Zl();a||(a=new Map);q=g.V(q);for(var w=q.next();!w.done;w=q.next())w=w.value,a.set(w.settingItemId,w.settingOptionValue);a=JSON.stringify(Object.fromEntries(a));g.AE("yt-player-user-settings",a,2592E3)}; g.HP=function(q,a,w,G,k,b,O){g.e1.call(this,g.Ns({"aria-haspopup":"true"}),a,q);this.Wq=G;this.J=!1;this.W=null;this.options={};this.U=new g.As(w,void 0,q,k,b,O);g.p(this,this.U);this.listen("keydown",this.zi);this.listen("click",this.open)}; cgU=function(q){if(q.W){var a=q.options[q.W];a.element.getAttribute("aria-checked");a.element.setAttribute("aria-checked","false");q.W=null}}; pjJ=function(q,a){g.HP.call(this,"Temporizador de suspensi\u00f3n",g.Lm.SLEEP_TIMER,q,a);this.j=q;this.S={};this.L=this.kp("Off");this.X=this.V="";q.T("web_settings_menu_icons")&&(a=q.T("delhi_modern_web_player_icons")?{G:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{G:"path",Z:{d:"M12.33 1.00C12.22 1.00 12.11 1.00 12 1C5.92 1 1 5.92 1 12C1 18.07 5.92 23 12 23C13.90 23.00 15.78 22.50 17.44 21.55C19.10 20.61 20.48 19.25 21.46 17.61L21.64 17.29C22.06 16.52 21.21 15.73 20.35 15.88C18.76 16.15 17.12 15.94 15.66 15.27C14.19 14.59 12.97 13.49 12.14 12.11C11.31 10.73 10.91 9.13 11.01 7.52C11.11 5.91 11.69 4.37 12.67 3.09L12.89 2.83C13.45 2.16 13.20 1.03 12.33 1.00ZM15.56 2.60C15.45 2.84 15.43 3.11 15.51 3.36C15.59 3.61 15.77 3.82 16.01 3.94C16.91 4.39 17.73 4.99 18.44 5.71L18.73 6.03L18.80 6.10C18.99 6.27 19.22 6.36 19.47 6.37C19.72 6.37 19.96 6.28 20.15 6.12C20.33 5.95 20.45 5.72 20.48 5.48C20.51 5.23 20.44 4.98 20.29 4.78L20.23 4.70L19.87 4.31C19.01 3.43 18.01 2.70 16.90 2.15C16.67 2.03 16.39 2.01 16.14 2.10C15.89 2.18 15.68 2.36 15.56 2.60M10.24 3.17C9.42 4.64 8.99 6.31 9 8C9 13.42 13.32 17.84 18.71 17.99C17.86 18.93 16.83 19.69 15.67 20.21C14.52 20.73 13.26 21.00 12 21C9.76 21.00 7.60 20.17 5.95 18.67C4.29 17.17 3.25 15.10 3.03 12.88C2.81 10.65 3.43 8.43 4.76 6.63C6.09 4.84 8.05 3.60 10.24 3.17M21.16 7.88C20.93 7.96 20.73 8.12 20.61 8.34C20.49 8.55 20.45 8.81 20.50 9.05L20.53 9.15L20.66 9.56C20.93 10.53 21.04 11.54 20.98 12.55C20.97 12.81 21.06 13.06 21.23 13.26C21.41 13.45 21.65 13.57 21.92 13.59C22.18 13.60 22.44 13.52 22.63 13.34C22.83 13.17 22.95 12.93 22.97 12.67C23.05 11.44 22.92 10.20 22.58 9.02L22.43 8.51L22.39 8.42C22.29 8.19 22.11 8.01 21.88 7.91C21.65 7.81 21.40 7.80 21.16 7.88Z", fill:"white"}}]}:{G:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{G:"path",Z:{d:"M16.67,4.31C19.3,5.92,21,8.83,21,12c0,4.96-4.04,9-9,9c-2.61,0-5.04-1.12-6.72-3.02C5.52,17.99,5.76,18,6,18 c6.07,0,11-4.93,11-11C17,6.08,16.89,5.18,16.67,4.31 M14.89,2.43C15.59,3.8,16,5.35,16,7c0,5.52-4.48,10-10,10 c-1,0-1.97-0.15-2.89-0.43C4.77,19.79,8.13,22,12,22c5.52,0,10-4.48,10-10C22,7.48,19,3.67,14.89,2.43L14.89,2.43z M12,6H6v1h4.5 L6,10.99v0.05V12h6v-1H7.5L12,7.01V6.98V6L12,6z",fill:"#fff"}}]},this.setIcon(a)); this.Y=new g.u({G:"div",vT:["ytp-menuitem-label-wrapper"],K:[{G:"div",ue:"Final del v\u00eddeo"},{G:"div",vT:["ytp-menuitem-sublabel"],ue:"{{content}}"}]});g.p(this,this.Y);this.listen("click",this.onClick);this.C(q,"videodatachange",this.onVideoDataChange);this.C(q,"presentingplayerstatechange",this.NB);this.C(q,"settingsMenuVisibilityChanged",this.ZE);q.createClientVe(this.element,this,218889);this.NB();this.j.zl("onSleepTimerFeatureAvailable")}; UpJ=function(q){var a="Off 10 15 20 30 45 60".split(" "),w;((w=q.j.getVideoData())==null?0:w.isLivePlayback)||a.push("End of video");w=q.j.getPlaylist();var G;w&&((G=w.listId)==null?void 0:G.type)!=="RD"&&a.push("End of playlist");q.VV(g.sd(a,q.kp));q.S=g.D7(a,q.kp,q);a=q.kp("End of video");q.options[a]&&g.lk(q.options[a],q.Y)}; XjG=function(q,a){var w=q.S[a],G=w==="End of video"||w==="End of playlist";w==="Off"&&(q.V="");q.j.getPlayerState()!==0&&q.j.getPlayerState()!==5||!G?(q.L=a,g.HP.prototype.r4.call(q,a),q.sP(a),q.j.zl("onSleepTimerSettingsChanged",w)):q.j.zl("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"El v\u00eddeo ya ha acabado"}}}}})}; cP=function(q){Km.call(this,q);var a=this;q.addEventListener("settingsMenuInitialized",function(){a.menuItem||(a.menuItem=new pjJ(a.api,a.api.cW()),g.p(a,a.menuItem))}); q.addEventListener("openSettingsMenuItem",function(w){if(w==="menu_item_sleep_timer"){if(!a.menuItem){var G;(G=a.api.cW())==null||G.kF()}a.menuItem.open()}}); mX(q,"resetSleepTimerMenuSettings",function(){a.resetSleepTimerMenuSettings()}); mX(q,"setSleepTimerTimeLeft",function(w){a.setSleepTimerTimeLeft(w)}); mX(q,"setVideoTimeLeft",function(w){a.setVideoTimeLeft(w)})}; jJJ=function(q){Km.call(this,q);var a=this;this.events=new g.Ee(q);g.p(this,this.events);this.events.C(q,"onSnackbarMessage",function(w){switch(w){case 1:w=a.api.getPlayerStateObject(),w.isBuffering()&&(a.api.T("html5_disable_snackbar_message_checking_on_seeking_to_play")||g.v(w,8)&&g.v(w,16))&&a.api.zl("innertubeCommand",{openPopupAction:{popup:{notificationActionRenderer:{responseText:{runs:[{text:"\u00bfEl v\u00eddeo se interrumpe?"}]},actionButton:{buttonRenderer:{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT", text:{runs:[{text:"Saber por qu\u00e9"}]},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.UB=function(q,a,w,G,k){a=a===void 0?!1:a;G=G===void 0?!1:G;k=k===void 0?!1:k;g.ya.call(this);this.J=k;this.X=!1;this.Y=new EH(this);this.D=this.L=null;this.W=this.U=!1;g.p(this,this.Y);this.target=q;this.V=a;this.S=w||q;this.X=G;a&&(g.NP&&this.target.setAttribute("draggable","true"),k||(this.target.style.touchAction="none"));ph(this)}; Xh=function(q){g.JE(q.Y,!q.V)}; ph=function(q){q.D=null;q.L=null;q.C(j5("over"),q.fg);q.C("touchstart",q.pR);q.V&&q.C(j5("down"),q.ttK)}; oL_=function(q,a){for(var w=0;wP.start&&w>=5;J+=B}k=J.substr(0,4)+" "+J.substr(4,4)+" "+J.substr(8,4)+" "+(J.substr(12,4)+" "+J.substr(16,4))}else k="";O={video_id_and_cpn:String(a.videoId)+" / "+k,codecs:"",dims_and_frames:"",bandwidth_kbps:O.toFixed(0)+" Kbps",buffer_health_seconds:N.toFixed(2)+ " s",date:""+(new Date).toString(),drm_style:Y?"":"display:none",drm:Y,debug_info:w,extra_debug_info:"",bandwidth_style:d,network_activity_style:d,network_activity_bytes:e.toFixed(0)+" KB",shader_info:K,shader_info_style:K?"":"display:none",playback_categories:""};e=G.clientWidth+"x"+G.clientHeight+(P>1?"*"+P.toFixed(2):"");N="-";b.totalVideoFrames&&(N=(b.droppedVideoFrames||0)+" dropped of "+b.totalVideoFrames);O.dims_and_frames=e+" / "+N;q=q.getVolume();e=ikJ(a);var M;if((M=a.Y)==null?0:M.audio.U)M= "VB";else{var H;M=((H=a.Y)==null?0:H.audio.V)?"DRC":Math.round(q*e)+"%"}H=Math.round(q)+"% / "+M;M=a.E3.toFixed(1);isFinite(Number(M))&&(H+=" (content loudness "+M+"dB)");O.volume=H;O.resolution=G.videoWidth+"x"+G.videoHeight;if(G=a.U){if(H=G.video)M=H.fps,M>1&&(O.resolution+="@"+M),(M=b.xm)&&M.video&&(O.resolution+=" / "+M.video.width+"x"+M.video.height,M.video.fps>1&&(O.resolution+="@"+M.video.fps)),O.codecs=zBK(G),!a.Y||G.audio&&G.video?G.vZ&&(O.codecs+=" / "+G.vZ+"A"):O.codecs+=" / "+zBK(a.Y), H.V||H.primaries?(M=H.V||"unknown",M==="smpte2084"?M+=" (PQ)":M==="arib-std-b67"&&(M+=" (HLG)"),O.color=M+" / "+(H.primaries||"unknown"),O.color_style=""):O.color_style="display:none";if(G.debugInfo)for(O.fmt_debug_info="",G=g.V(G.debugInfo),H=G.next();!H.done;H=G.next())H=H.value,O.fmt_debug_info+=H.label+":"+H.text+" ";O.fmt_debug_info_style=O.fmt_debug_info&&O.fmt_debug_info.length>0?"":"display:none"}G=a.isLivePlayback;H=a.pT;O.live_mode_style=G||H?"":"display:none";O.live_latency_style=G?"": "display:none";if(H)O.live_mode="Post-Live"+(fc(a)?" Manifestless":"");else if(G){H=b.V$;O.live_latency_secs=H.toFixed(2)+"s";G=fc(a)?"Manifestless, ":"";a.y7&&(G+="Windowed, ");M="Uncertain";if(H>=0&&H<120)if(a.latencyClass&&a.latencyClass!=="UNKNOWN")switch(a.latencyClass){case "NORMAL":M="Optimized for Normal Latency";break;case "LOW":M="Optimized for Low Latency";break;case "ULTRALOW":M="Optimized for Ultra Low Latency";break;default:M="Unknown Latency Setting"}else M=a.isLowLatencyLiveStream? "Optimized for Low Latency":"Optimized for Smooth Streaming";G+=M;(H=b.KJ)&&(G+=", seq "+H.sequence);O.live_mode=G}!b.isGapless||AF(a)&&b.Qm||(O.playback_categories+="Gapless ");O.playback_categories_style=O.playback_categories?"":"display:none";O.bandwidth_samples=b.rA;O.network_activity_samples=b.xn;O.live_latency_samples=b.Oe;O.buffer_health_samples=b.UH;b=g.T4(a);if(a.cotn||b)O.cotn_and_local_media=(a.cotn?a.cotn:"null")+" / "+b;O.cotn_and_local_media_style=O.cotn_and_local_media?"":"display:none"; sT(a,"web_player_release_debug")?(O.release_name=l[40],O.release_style=""):O.release_style="display:none";O.debug_info&&T.length>0&&O.debug_info.length+T.length<=60?O.debug_info+=" "+T:O.extra_debug_info=T;O.extra_debug_info_style=O.extra_debug_info&&O.extra_debug_info.length>0?"":"display:none";return O}; zBK=function(q){var a=/codecs="([^"]*)"/.exec(q.mimeType);return a&&a[1]?a[1]+" ("+q.itag+")":q.itag}; i_=function(q,a,w,G,k){g.u.call(this,{G:"div",N:"ytp-horizonchart"});this.X=a;this.sampleCount=w;this.Y=G;this.L=k;this.index=0;this.heightPx=-1;this.W=this.U=null;this.V=Math.round(q/w);this.element.style.width=this.V*this.sampleCount+"px";this.element.style.height=this.X+"em"}; WP=function(q,a){if(q.heightPx===-1){var w=null;try{w=g.dp("CANVAS"),q.U=w.getContext("2d")}catch(e){}if(q.U){var G=q.V*q.sampleCount;q.W=w;q.W.width=G;q.W.style.width=G+"px";q.element.appendChild(q.W)}else for(q.sampleCount=Math.floor(q.sampleCount/4),q.V*=4,w=0;w1?2:1,q.W.height=q.heightPx*w,q.W.style.height= q.heightPx+"px",q.U.scale(1,w)));a=g.V(a);for(G=a.next();!G.done;G=a.next()){w=q;var k=q.index,b=G.value;for(G=0;G+20&&g.sN(a.U.element);G.classList.add("ytp-timely-actions-overlay");a.U.element.appendChild(G)}); g.p(this,this.U);this.T("web_player_overlay_positioned_layout")?this.events.C(q,"basechromeinitialized",function(){a.api.kL(a.U.element,4,!0);a.U.element.setAttribute("data-overlay-order","10")}):g.DZ(this.api,this.U.element,4)}; NOl=function(q){q.timelyActions&&(q.Y=q.timelyActions.reduce(function(a,w){if(w.cueRangeId===void 0)return a;a[w.cueRangeId]=0;return a},{}))}; qg=function(q,a){if(q.timelyActions){q=g.V(q.timelyActions);for(var w=q.next();!w.done;w=q.next())if(w=w.value,w.cueRangeId===a)return w}}; YSf=function(q,a){if((q=qg(q,a))&&q.onCueRangeExit)return BC(q.onCueRangeExit)}; bUy=function(q,a){return q.W===void 0?!1:a.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(a.seekLengthMilliseconds)===5E3?q.W===72:a.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(a.seekLengthMilliseconds)===1E4?q.W===74:a.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(a.seekLengthMilliseconds)===5E3?q.W===71:a.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(a.seekLengthMilliseconds)===1E4?q.W===73:!1}; PeN=function(q,a){var w=Number(a==null?void 0:a.maxVisibleDurationMilliseconds);w&&(gP(q),q.UK=setTimeout(function(){if(q.V!==void 0&&(a==null?void 0:a.cueRangeId)===q.V){q.J=!1;var G=YSf(q,q.V);G&&q.api.zl("innertubeCommand",G)}},w))}; gP=function(q){q.UK&&clearTimeout(q.UK);q.UK=void 0;q.J=!1}; OUU=function(q){if(q=q.getWatchNextResponse()){var a,w;q=(a=q.playerOverlays)==null?void 0:(w=a.playerOverlayRenderer)==null?void 0:w.timelyActionsOverlayViewModel;a=g.I(q,KPj);if(a!=null&&a.timelyActions)return a==null?void 0:a.timelyActions.map(function(G){return g.I(G,dNU)}).filter(function(G){return!!G})}}; TOj=function(q){Km.call(this,q);var a=this;Qk(this.api,"getPlaybackRate",function(){return a.api.getPlaybackRate()}); Qk(this.api,"setPlaybackRate",function(w){typeof w==="number"&&a.api.setPlaybackRate(w)})}; aE=function(q,a,w,G){EI.call(this,"VOICE_BOOST",g.Lm.Jt);this.V=!1;this.j=q;this.Wq=q.cW();this.Y=a;this.W=w;this.hasVoiceBoostAudioTrack=G;this.C(q,"videodatachange",this.U);this.setIcon(mRc());this.subscribe("select",this.L,this);this.U()}; wP=function(q){Km.call(this,q);var a=this;this.events=new g.Ee(q);g.p(this,this.events);this.events.C(q,"settingsMenuInitialized",function(){$NV(a)}); mX(this.api,"getVoiceBoostUserPreference",function(){return a.getVoiceBoostUserPreference()}); mX(this.api,"setVoiceBoostUserPreference",function(G){a.setVoiceBoostUserPreference(G)}); mX(this.api,"hasVoiceBoostAudioTrack",function(){return a.hasVoiceBoostAudioTrack()}); var w;this.V=(w=aoy())!=null?w:0;this.updateEnvironmentData()}; $NV=function(q){q.menuItem||(q.menuItem=new aE(q.api,function(a){q.setVoiceBoostUserPreference(a)},function(){return q.getVoiceBoostUserPreference()},function(){return q.hasVoiceBoostAudioTrack()}),g.p(q,q.menuItem))}; sQN=function(q){q=q.Do();if(!q)return!1;q=g.RI(q).exp||"";return q.includes("xpv")||q.includes("xpe")}; FPJ=function(q){q=g.V(g.Gg(q,!0));for(var a=q.next();!a.done;a=q.next())if(sQN(a.value))return!0;return!1}; Cey=function(q,a){q=g.V(g.Gg(q,!0));for(var w=q.next();!w.done;w=q.next())if(w=w.value,sQN(w)){var G={potc:"1",pot:a};w.url&&(w.url=ye(w.url,G))}}; ZUc=function(q){return g.h(function(a){if(a.U==1)return g.ml(a,2),g.n(a,q,4);if(a.U!=2)return g.xl(a,0);g.rc(a);g.Jm(a)})}; bB=function(q){Km.call(this,q);var a=this;this.useLivingRoomPoToken=!1;this.D=new g.Y8;this.V=!1;this.ji=null;this.S=!1;this.Y=null;this.L=!1;var w=q.B().getWebPlayerContextConfig();this.events=new g.Ee(q);g.p(this,this.events);this.events.C(q,"spsumpreject",function(G,k,b){a.L=k;G&&a.S&&!a.Y&&(a.T("html5_generate_content_po_token")&&b?a.Ez(b):a.T("html5_generate_session_po_token")&&EiJ(a));a.Y||a.api.d8("stp",{s:+a.S,b:+a.L})}); this.events.C(q,"poTokenVideoBindingChange",function(G){a.Ez(G)}); this.useLivingRoomPoToken=!(w==null||!w.useLivingRoomPoToken);q.addEventListener("csiinitialized",function(){a.ji=q.FF();var G=(a.T("html5_generate_session_po_token")||a.T("html5_generate_content_po_token"))&&!a.useLivingRoomPoToken;try{if(a.T("html5_use_shared_owl_instance"))V$V(a);else if(G){a.ji.IG("pot_isc");var k=g.Wo(a.api.B().experiments,"html5_webpo_kaios_defer_timeout_ms");k?(a.W=c4(),g.ee(function(){kq(a)},k)):a.T("html5_webpo_idle_priority_job")?(a.W=c4(),g.uM(g.v5(),function(){kq(a)})): kq(a)}}catch(b){b instanceof Error&&g.Qa(b)}}); q.addEventListener("trackListLoaded",this.lM.bind(this));q.Ih(this)}; JuG=function(q){var a=Cz(q.experiments,"html5_web_po_request_key");return a?a:g.Nh(q)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; mNc=function(q){var a=new a3j,w={},G=(w["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",w);return new sZ(a,q,function(){return G})}; QQm=function(q){return new FS(q)}; OC=function(q,a){q.T("html5_webpo_bge_ctmp")&&q.api.d8(a,{hwpo:!!q.U,hwpor:q.V})}; V$V=function(q){var a,w;g.h(function(G){if(G.U==1)return OC(q,"swpo_i"),q.W=c4(),lB(q),g.n(G,yR(),2);if(G.U!=3)return a=G.V,OC(q,"swpo_co"),g.n(G,Mc_(a),3);w=G.V;q.T("html5_web_po_token_disable_caching")||w.bk(150);q.U=w;OC(q,"swpo_cc");ZUc(w.Dx()).then(function(){q.V=!0;q.D.resolve();OC(q,"swpo_re")}); g.ee(function(){kq(q);OC(q,"swpo_si")},0); g.Jm(G)})}; LPJ=function(q){var a=q.api.B(),w=mNc(JuG(a)),G=w.Rv.bind(w);w.Rv=function(e){var N;return g.h(function(Y){if(Y.U==1)return g.n(Y,G(e),2);N=Y.V;q.api.d8("itr",{});return Y.return(N)})}; try{var k=QQm({HY:w,lq:{maxAttempts:5},g5:{Z9:"CLEn",disable:a.experiments.Zh("html5_web_po_disable_remote_logging")||Aul.includes(g.Nr(a.pE)||""),MG:zbc(a.experiments),hW:a.experiments.Zh("wpo_gel_strz")?function(e){var N=xNK.get(e);N||(N=new PYy(e),N=new g.pT(N),xNK.set(e,N));return N}:void 0, LQT:q.T("wpo_dis_lfdms")?0:1E3},jrT:g.Qa});var b=new f1({IA:k,HY:w,onError:g.Qa});ZUc(b.Dx()).then(function(){q.V=!0;q.D.resolve()}); q.T("html5_web_po_token_disable_caching")||b.bk(150);g.p(q,k);g.p(q,b);q.U=b}catch(e){g.Qa(e);var O;(O=k)==null||O.dispose()}}; kq=function(q){var a=q.api.B();q.ji.IG("pot_ist");q.U||LPJ(q);q.T("html5_bandaid_attach_content_po_token")||(q.T("html5_generate_session_po_token")&&(lB(q),EiJ(q)),a=g.Wo(a.experiments,"html5_session_po_token_interval_time_ms")||0,a>0&&(q.X=g.NL(function(){lB(q)},a)),q.S=!0)}; lB=function(q){var a,w,G,k;g.h(function(b){if(!q.T("html5_generate_session_po_token")||q.useLivingRoomPoToken)return b.return();a=q.api.B();w=g.UL("EOM_VISITOR_DATA")||g.UL("VISITOR_DATA");G=a.CF?a.datasyncId:w;k=Cz(a.experiments,"html5_mock_content_binding_for_session_token")||a.livingRoomPoTokenId||G;a.nu=eW(q,k);g.Jm(b)})}; eW=function(q,a){if(!q.U){if(q.W)try{return q.W(a)}catch(b){g.Qa(b)}return""}try{q.ji.IG(q.V?"pot_cms":"pot_csms");var w={bu:!0,h3:!0,l5:a};q.T("html5_web_po_token_disable_caching")||(w.Ik={qw:a,Pt:!0,HO:!0});var G=q.U.nQ(w);q.ji.IG(q.V?"pot_cmf":"pot_csmf");if(q.V){var k;(k=q.Y)==null||k.resolve();q.Y=null;q.L&&(q.L=!1,q.api.app.xT().qr(!1))}return G}catch(b){return g.Qa(b),""}}; EiJ=function(q){q.U&&(q.Y=new m5,q.D.promise.then(function(){q.ji.IG("pot_if");lB(q)}))}; g.Ng=function(q,a,w){g.kX(q.element,"ytp-suggestion-set",!!a.videoId);var G=a.playlistId;w=a.Wm(w?w:"mqdefault.jpg");var k=null,b=null;a instanceof W8&&(a.lengthText?(k=a.lengthText||null,b=a.VH||null):a.lengthSeconds&&(k=g.$m(a.lengthSeconds),b=g.$m(a.lengthSeconds,!0)));var O=!!G;G=O&&zu(G).type==="RD";var e=a instanceof W8?a.isLivePlayback:null,N=a instanceof W8?a.isUpcoming:null,Y=a.author,P=a.shortViewCount,K=a.publishedTimeText,d=[],T=[];Y&&d.push(Y);P&&(d.push(P),T.push(P));K&&T.push(K);w= {title:a.title,author:Y,author_and_views:d.join(" \u2022 "),aria_label:a.ariaLabel||g.gZ("Ver $TITLE",{TITLE:a.title}),duration:k,timestamp:b,url:a.La(),is_live:e,is_upcoming:N,is_list:O,is_mix:G,background:w?"background-image: url("+w+")":"",views_and_publish_time:T.join(" \u2022 "),autoplayAlternativeHeader:a.mf};a instanceof i0&&(w.playlist_length=a.playlistLength);q.update(w)}; g.Yq=function(q){var a=q.B(),w=g.se||g.Du?{style:"will-change: opacity"}:void 0,G=a.Y,k=["ytp-modern-videowall-still"];a.U&&k.push("ytp-videowall-show-text");g.u.call(this,{G:"a",vT:k,Z:{href:"{{url}}",target:G?a.J:"","aria-label":"{{aria_label}}","data-is-live":"{{is_live}}","data-is-list":"{{is_list}}","data-is-mix":"{{is_mix}}"},K:[{G:"div",N:"ytp-modern-videowall-still-image",Z:{style:"{{background}}"},K:[{G:"span",N:"ytp-modern-videowall-still-info-duration",ue:"{{duration}}"}]},{G:"span",N:"ytp-modern-videowall-still-info", Z:{"aria-hidden":"true"},K:[{G:"span",N:"ytp-modern-videowall-still-info-bg",K:[{G:"span",N:"ytp-modern-videowall-still-info-content",Z:w,K:[{G:"span",N:"ytp-modern-videowall-still-info-title",ue:"{{title}}"},{G:"span",N:"ytp-modern-videowall-still-info-author",ue:"{{author_and_views}}"},{G:"span",N:"ytp-modern-videowall-still-info-live",ue:"En directo"}]}]}]},{G:"span",vT:["ytp-modern-videowall-still-listlabel-regular","ytp-modern-videowall-still-listlabel"],Z:{"aria-hidden":"true"},K:[{G:"span", N:"ytp-modern-videowall-still-listlabel-icon"},"Lista de reproducci\u00f3n",{G:"span",N:"ytp-modern-videowall-still-listlabel-length",K:[" (",{G:"span",ue:"{{playlist_length}}"},")"]}]},{G:"span",vT:["ytp-modern-videowall-still-listlabel-mix","ytp-modern-videowall-still-listlabel"],Z:{"aria-hidden":"true"},K:[{G:"span",N:"ytp-modern-videowall-still-listlabel-mix-icon"},"Mix",{G:"span",N:"ytp-modern-videowall-still-listlabel-length",ue:" (50+)"}]}]});this.suggestion=null;this.U=G;this.api=q;this.V= new g.Ee(this);g.p(this,this.V);this.listen("click",this.onClick);this.listen("keypress",this.onKeyPress);this.V.C(q,"videodatachange",this.onVideoDataChange);q.createServerVe(this.element,this);this.onVideoDataChange()}; g.BOc=function(q,a){if(q.suggestion!==a){q.suggestion=a;var w=q.api.B();g.Ng(q,a,"hqdefault.jpg");if(g.yw(w)&&!q.api.T("web_player_log_click_before_generating_ve_conversion_params")){w=a.La();var G={};g.xU(q.api,"addEmbedsConversionTrackingParams",[G]);w=g.sk(w,G);q.updateValue("url",w)}(a=(a=a.sessionData)&&a.itct)&&q.api.setTrackingParams(q.element,a)}}; niK=function(q,a){g.u.call(this,{G:"div",vT:["ytp-fullscreen-grid"],K:[{G:"div",N:"ytp-fullscreen-grid-hover-overlay",Z:{title:"{{title}}","aria-keyshortcuts":"v","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-fullscreen-grid","data-tooltip-offset-y":"-20"},K:[{G:"div",N:"ytp-fullscreen-grid-hover-overlay-chevron",K:[{G:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{G:"g",Z:{filter:"url(#filter0_d_3104_799356)"},K:[{G:"path",Z:{d:"M5.29 15.20C4.92 14.84 4.90 14.26 5.22 13.86L5.29 13.79L11.99 7.08L18.70 13.79C19.09 14.18 19.09 14.81 18.70 15.20C18.31 15.59 17.68 15.59 17.29 15.20L11.99 9.91L6.70 15.20L6.63 15.27C6.23 15.59 5.65 15.57 5.29 15.20Z", fill:"white"}}]},{G:"defs",K:[{G:"filter",Z:{"color-interpolation-filters":"sRGB",filterUnits:"userSpaceOnUse",height:"26",width:"26",x:"-1",y:"-1"},K:[{G:"feFlood",Z:{"flood-opacity":"0",result:"BackgroundImageFix"}},{G:"feColorMatrix",Z:{"in":"SourceAlpha",result:"hardAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}},{G:"feOffset"},{G:"feGaussianBlur",Z:{stdDeviation:"0.5"}},{G:"feComposite",Z:{in2:"hardAlpha",operator:"out"}},{G:"feColorMatrix",Z:{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.8 0"}}, {G:"feBlend",Z:{in2:"BackgroundImageFix",mode:"normal",result:"effect1_dropShadow_3104_799356"}},{G:"feBlend",Z:{"in":"SourceGraphic",in2:"effect1_dropShadow_3104_799356",mode:"normal",result:"shape"}}]}]}]}]}]},{G:"div",N:"ytp-fullscreen-grid-main-content",K:[{G:"div",N:"ytp-fullscreen-grid-header",K:[{G:"div",N:"ytp-fullscreen-grid-header-buttons",K:[{G:"button",vT:["ytp-grid-replay-button","ytp-button"],Z:{title:"Ver de nuevo","aria-keyshortcuts":"r","aria-label":"Ver de nuevo","data-title-no-tooltip":"Ver de nuevo"}, K:[rEl()]},{G:"button",N:"ytp-fullscreen-grid-header-button",Z:{"aria-label":"{{ariaLabel}}"}}]},{G:"button",vT:["ytp-grid-menu-close","ytp-button"],Z:{"aria-label":"Cerrar"},K:[g.Pe()]}]},{G:"div",N:"ytp-fullscreen-grid-stills-container"}]}]});var w=this;this.player=q;this.stills=[];this.videoData=null;this.currentState=0;this.X=this.oW("ytp-fullscreen-grid-main-content");this.L=this.oW("ytp-fullscreen-grid-header");q=this.oW("ytp-fullscreen-grid-header-buttons");this.W=this.oW("ytp-grid-menu-close"); this.U=this.oW("ytp-grid-replay-button");this.V=this.oW("ytp-fullscreen-grid-header-button");this.J=this.oW("ytp-fullscreen-grid-stills-container");this.Y=new g.Ee(this);g.p(this,this.Y);this.S=a;if(this.L&&this.X&&q&&this.J&&this.V&&this.W){if(a=this.oW("ytp-fullscreen-grid-hover-overlay"))this.C(a,"click",this.Zc),Xe(this.player,a,this);this.U&&(this.C(this.U,"click",function(G){w.GF(G)}),Xe(this.player,this.U,this)); this.V&&this.C(this.V,"click",this.Zc);this.W&&this.C(this.W,"click",this.Zc);if(a=this.player.getVideoData(1))this.videoData=a,rum(this);this.player.createClientVe(this.L,this,223051);this.Y.C(this.player,"videodatachange",this.onVideoDataChange);this.Y.C(this.player,"presentingplayerstatechange",this.fE)}}; rum=function(q){var a=q.player.getPlayerStateObject();g.kX(q.player.getRootNode(),"ytp-grid-ended-state",g.v(a,2))}; dP=function(q){Km.call(this,q);var a=this;this.X=this.V=this.U=0;this.L=null;this.Y=0;this.isEnded=!1;this.S=null;var w=new g.Ee(q);g.p(this,w);this.UK=this.api.T("web_player_imax_theater_mode");this.W=this.api.T("web_player_enable_fullscreen_grid_components");w.C(q,"fullscreentoggled",function(){P1(a)}); w.C(q,"autohideupdate",function(G){G&&a.U===2&&Ko(a,1)}); w.C(q,"videodatachange",function(){if(a.W){var G=a.api.getVideoData(1);a.videoData!==G&&a.U===2&&Ko(a,1);a.videoData=G}},this); w.C(q,"sizestylechange",function(){a.W&&P1(a)}); mX(this.api,"setFullscreenQuickActions",function(G){a.setFullscreenQuickActions(G)}); mX(this.api,"setPlayerOverlayVideoDetailsRenderer",function(G){a.setPlayerOverlayVideoDetailsRenderer(G)}); this.W&&M$J(this,w,q)}; M$J=function(q,a,w){a.C(w,"keyboardserviceglobalkeydown",function(G,k){q.W&&G.keyCode===86&&!G.repeat&&q.U!==0&&(k&&(k.w1=!0),h4V(q,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS"))}); a.C(q.api.getRootNode(),"wheel",function(G){if(!q.S){var k;if(q.W&&(k=q.D)!=null&&k.element&&q.U!==0&&Tg(q))if(g.gU(q.api.getRootNode(),"ytp-grid-scrolling"),q.Y===0&&(q.Y=window.innerHeight),q.U===1)q.Y!==0&&(q.V+=G.deltaY/q.Y,q.V=Math.min(Math.max(q.V,0),.85),$q(q),SSU(q,Math.abs(q.V)>=.85));else if(q.U===2){k=G.deltaY<0;var b,O=((b=q.D)==null?void 0:b.element.scrollTop)===0;k&&O?q.Y!==0&&(q.V+=G.deltaY/q.Y,$q(q),SSU(q,Math.abs(q.V)>=.85)):q.V!==0&&(q.V=0,$q(q))}}},{passive:!0}); a.C(w,"standardControlsInitialized",function(){if(!q.D){q.D=new niK(q.api,q.F9.bind(q));g.p(q,q.D);var G=q.api.getRootNode().querySelector(".ytp-chrome-bottom");G&&G.parentNode&&G.parentNode.insertBefore(q.D.element,G.nextSibling)}}); a.C(w,"presentingplayerstatechange",function(){sC(q)}); a.C(w,"autonavvisibility",function(){sC(q)}); q.api.Gj().subscribe("visibilitystatechange",function(){sC(q)}); f5G(q,q.U)}; SSU=function(q,a){q.L&&clearTimeout(q.L);a?HUm(q):q.L=window.setTimeout(function(){HUm(q)},150)}; HUm=function(q){q.L&&(clearTimeout(q.L),q.L=null);q.Y=0;q.W&&q.U!==0&&(Math.abs(q.V)>=.15&&h4V(q,"INTERACTION_LOGGING_GESTURE_TYPE_SCROLL_BEGAN_DRAGGING"),q.V=0,$q(q),g.wU(q.api.getRootNode(),"ytp-grid-scrolling"))}; h4V=function(q,a){q.W&&(a==="INTERACTION_LOGGING_GESTURE_TYPE_SCROLL_BEGAN_DRAGGING"&&(q.S&&clearTimeout(q.S),q.S=window.setTimeout(function(){q.S=null},1E3)),q.U===1?Ko(q,2):Ko(q,1))}; Tg=function(q){return q.api.isFullscreen()||q.UK&&q.api.Tn()}; P1=function(q){var a=Tg(q);g.kX(q.api.getRootNode(),"ytp-full-bleed-player",a);q.J&&g.aT(q.J,a);q.playerOverlayVideoDetailsRenderer&&g.aT(q.playerOverlayVideoDetailsRenderer,a);q.W&&sC(q)}; sC=function(q){if(q.W){var a;if(q.api.getPresentingPlayerType()===2||q.api.YW()||((a=g.MT(q.api))==null?0:a.Ev())||q.api.isMinimized())Ko(q,0);else{if(a=g.v(q.api.getPlayerStateObject(),2))Ko(q,2);else if(q.isEnded&&!a){var w=Tg(q)?1:0;q.isEnded=a;Ko(q,w)}else Tg(q)?q.U!==2&&Ko(q,1):Ko(q,0);q.isEnded=a}}}; Ko=function(q,a){q.U=a;var w;(w=q.D)==null||w.gG(a);q.V=0;$q(q);f5G(q,a)}; f5G=function(q,a){q=q.api.getRootNode();g.kX(q,"ytp-fullscreen-grid-peaking",a===1);g.kX(q,"ytp-fullscreen-grid-active",a===2)}; $q=function(q){requestAnimationFrame(function(){var a=q.V-q.X,w=a;q.V!==0&&(w=Math.max(-.01,Math.min(a,.01)));q.X+=w;q.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage",""+q.X.toString());q.X!==q.V&&$q(q)})}; cuG=function(q){Km.call(this,q);var a=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.Ee(q);g.p(this,this.events);this.events.C(q,"heartbeatRequest",function(w){if(a.freePreviewUsageDetails.length||a.freePreviewWatchedDuration!==null)w.heartbeatRequestParams||(w.heartbeatRequestParams={}),w.heartbeatRequestParams.unpluggedParams||(w.heartbeatRequestParams.unpluggedParams={}),a.freePreviewUsageDetails.length>0?w.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= a.freePreviewUsageDetails:w.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+a.freePreviewWatchedDuration}}); mX(q,"setFreePreviewWatchedDuration",function(w){a.freePreviewWatchedDuration=w}); mX(q,"setFreePreviewUsageDetails",function(w){a.freePreviewUsageDetails=w})}; F_=function(q){g.c.call(this);this.features=[];var a=this.V,w=new o0(q),G=new dL(q),k=new sB(q),b=new bB(q);var O=g.lt(q.B())?void 0:new fm(q);var e=new $k(q),N=new RBf(q),Y=new TOj(q),P=new j1(q);var K=g.lt(q.B())?new cuG(q):void 0;var d;var T=(d=q.B().getWebPlayerContextConfig())!=null&&d.cinematicSettingsAvailable?new nm(q):void 0;d=new XD(q);var F=q.T("enable_courses_player_overlay_purchase")?new eZK(q):void 0;var J=g.Zg(q.B())?new k1m(q):void 0;var Q=new Hy(q);var B=q.B().Y?new y6J(q):void 0; var L=g.yw(q.B())?new R7y(q):void 0;var M=q.T("web_player_move_autonav_toggle")&&q.B().RA?new I6J(q):void 0;var H=g.Zg(q.B())?new UV_(q):void 0;var X=q.T("web_enable_speedmaster")&&g.Zg(q.B())?new u_(q):void 0;var D=q.B().hJ?void 0:new kbK(q);var z=q.T("report_pml_debug_signal")?new USU(q):void 0;var Oj=new qDl(q),$l=new EB(q);var ey=g.BA(q.B())?new $pG(q):void 0;var Nm=navigator.mediaSession&&window.MediaMetadata&&q.B().L6?new dz(q):void 0;var a_=q.T("html5_enable_drc")&&!q.B().L?new S1(q):void 0; var BJ=new $_(q);var WJ=g.Zg(q.B())?new LDJ(q):void 0;var gy=q.T("html5_enable_d6de4")?new Fh(q):void 0;var F8=g.Zg(q.B())&&q.T("web_sleep_timer")?new cP(q):void 0;var eK=g.yw(q.B())?new gdK(q):void 0;var Mm=new S5(q),O7=new iOc(q),cR=new cAy(q);var uV=q.T("enable_sabr_snackbar_message")?new jJJ(q):void 0;var lb=q.T("web_enable_timely_actions")?new e4j(q):void 0;var r=new Ms(q);var o6=g.Zg(q.B())?new dP(q):void 0;var hl=q.T("html5_enable_voice_boost")?new wP(q):void 0;var Gf=q.T("web_player_loop_settings_menu")&& q.B().sj?new pf_(q):void 0;var Al=g.lt(q.B())?void 0:new IEN(q);var m=q.T("web_player_playable_sequences_refactor")?new YDJ(q):void 0;var wc=q.T("html5_enable_audio_quality_setting")&&q.T("html5_enable_audio_quality_setting_feature")?new Cm(q):void 0;q=q.T("html5_ypc_clickwrap_module_refactor")?new gLJ(q):void 0;a.call(this,w,G,k,b,O,e,N,Y,P,K,T,d,F,J,Q,B,L,M,H,X,D,z,Oj,$l,ey,void 0,Nm,a_,BJ,void 0,WJ,gy,F8,eK,void 0,Mm,O7,cR,void 0,uV,lb,r,o6,hl,void 0,Gf,void 0,Al,m,wc,q)}; pg_=function(){this.U=this.V=NaN}; UNU=function(q,a){this.V7=q;this.timerName="";this.W=!1;this.U=NaN;this.Y=new pg_;this.V=a||null;this.W=!1}; XgU=function(q,a,w){var G=g.kM(a.cT)&&!a.cT.L;if(a.cT.BQ&&(g8(a.cT)||a.cT.f7==="shortspage"||Ad(a.cT)||G)&&!q.W){q.W=!0;q.L=a.clientPlaybackNonce;g.UL("TIMING_ACTION")||p_("TIMING_ACTION",q.V7.csiPageType);q.V7.csiServiceName&&p_("CSI_SERVICE_NAME",q.V7.csiServiceName);if(q.V){G=q.V.FF();for(var k=g.V(Object.keys(G)),b=k.next();!b.done;b=k.next())b=b.value,E3(b,G[b],q.timerName);G=g.tK(u4f)(q.V.jU);g.VI(G,q.timerName);G=q.V;G.V={};G.jU={}}g.VI({playerInfo:{visibilityState:g.tK(Ijm)()},playerType:"LATENCY_PLAYER_HTML5"}, q.timerName);q.D!==a.clientPlaybackNonce||Number.isNaN(q.U)||(mu("_start",q.timerName)?w=g.tK($4)("_start",q.timerName)+q.U:g.Qa(new g.UH("attempted to log gapless pbs before CSI timeline started",{cpn:a.clientPlaybackNonce})));w&&!mu("pbs",q.timerName)&&Co(q,w)}}; Co=function(q,a,w){E3("pbs",a!=null?a:(0,g.Zj)(),w!=null?w:q.timerName)}; ZU=function(q){g3y();qb_();q.timerName=""}; jQf=function(q){if(q.V){var a=q.V;a.V={};a.jU={}}q.W=!1;q.D=void 0;q.U=NaN}; oiG=function(q,a){g.ya.call(this);this.cT=q;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.V=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.S={};this.U=0;if(q=a.session_data)this.sessionData=ze(q,"&");this.index=Math.max(0,Number(a.index)||0);this.loop=!!a.loop;this.startSeconds=Number(a.startSeconds)||0;this.title=a.playlist_title||"";this.description=a.playlist_description||"";this.author= a.author||a.playlist_author||"";a.video_id&&(this.items[this.index]=a);if(q=a.api)typeof q==="string"&&q.length===16?a.list="PL"+q:a.playlist=q;if(q=a.list)switch(a.listType){case "user_uploads":this.listId=new v8("UU","PLAYER_"+q);break;default:var w=a.playlist_length;w&&(this.length=Number(w)||0);this.listId=zu(q);if(q=a.video)this.items=q.slice(0),this.loaded=!0}else if(a.playlist){q=a.playlist.toString().split(",");this.index>0&&(this.items=[]);q=g.V(q);for(w=q.next();!w.done;w=q.next())(w=w.value)&& this.items.push({video_id:w});this.length=this.items.length;if(q=a.video)this.items=q.slice(0),this.loaded=!0}this.setShuffle(!!a.shuffle);if(q=a.suggestedQuality)this.quality=q;this.S=ov(a,"playlist_");this.W=(a=a.thumbnail_ids)?a.split(","):[]}; I5l=function(q){return!!(q.playlist||q.list||q.api)}; uym=function(q){var a=q.index+1;return a>=q.length?0:a}; t$f=function(q){var a=q.index-1;return a<0?q.length-1:a}; g.EC=function(q,a,w,G){a=a!==void 0?a:q.index;a=q.items&&a in q.items?q.items[q.order[a]]:null;var k=null;a&&(w&&(a.autoplay="1"),G&&(a.autonav="1"),k=new g.TO(q.cT,a),g.p(q,k),k.rk=!0,k.startSeconds=q.startSeconds||k.clipStart||0,q.listId&&(k.playlistId=q.listId.toString()));return k}; vic=function(q,a){q.index=g.X1(a,0,q.length-1);q.startSeconds=0}; z4j=function(q,a){if(a.video&&a.video.length){q.title=a.title||"";q.description=a.description;q.views=a.views;q.likes=a.likes;q.dislikes=a.dislikes;q.author=a.author||"";var w=a.loop;w&&(q.loop=w);w=g.EC(q);q.items=[];for(var G=g.V(a.video),k=G.next();!k.done;k=G.next())if(k=k.value)k.video_id=k.encrypted_id,q.items.push(k);q.length=q.items.length;(a=a.index)?q.index=a:q.findIndex(w);q.setShuffle(!1);q.loaded=!0;q.U++;q.V&&q.V()}}; DNc=function(q,a){var w,G,k,b,O,e,N;return g.h(function(Y){if(Y.U==1){w=g.X2();var P=q.B(),K={context:g.Vk(q),playbackContext:{contentPlaybackContext:{ancestorOrigins:P.ancestorOrigins}}},d=P.getWebPlayerContextConfig();if(d==null?0:d.encryptedHostFlags)K.playbackContext.contentPlaybackContext.encryptedHostFlags=d.encryptedHostFlags;if(d==null?0:d.hideInfo)K.playerParams={showinfo:!1};d=P.embedConfig;var T=q.v1;var F=a.docid||a.video_id||a.videoId||a.id;if(!F){F=a.raw_embedded_player_response;if(!F){var J= a.embedded_player_response;J&&(F=JSON.parse(J))}if(F){var Q,B,L,M,H,X;F=((X=g.I((Q=F)==null?void 0:(B=Q.embedPreview)==null?void 0:(L=B.thumbnailPreviewRenderer)==null?void 0:(M=L.playButton)==null?void 0:(H=M.buttonRenderer)==null?void 0:H.navigationEndpoint,g.Er))==null?void 0:X.videoId)||null}else F=null}Q=(Q=F)?Q:void 0;B=q.playlistId?q.playlistId:a.list;L=a.listType;if(B){var D;L==="user_uploads"?D={username:B}:D={playlistId:B};iUK(d,T,Q,a,D,P.experiments);K.playlistRequest=D}else a.playlist? (D={templistVideoIds:a.playlist.toString().split(",")},iUK(d,T,Q,a,D,P.experiments),K.playlistRequest=D):Q&&(D={videoId:Q},T&&P.T("embeds_enable_per_video_embed_config")?D.serializedThirdPartyEmbedConfig=T:d&&(D.serializedThirdPartyEmbedConfig=d),K.singleVideoRequest=D);G=K;k=g.vA(WP_);g.ml(Y,2);return g.n(Y,g.Bt(w,G,k),4)}if(Y.U!=2)return b=Y.V,O=q.B(),a.raw_embedded_player_response=b,O.jt=wg(a,g.yw(O)),O.W=O.jt==="EMBEDDED_PLAYER_MODE_PFL",b&&(e=b,e.trackingParams&&b5(e.trackingParams)),Y.return(new g.TO(O, a));N=g.rc(Y);N instanceof Error||(N=Error("b259802748"));g.mQ(N);return Y.return(q)})}; iUK=function(q,a,w,G,k,b){G.index&&(k.playlistIndex=String(Number(G.index)+1));k.videoId=w?w:"";a&&b.Zh("embeds_enable_per_video_embed_config")?k.serializedThirdPartyEmbedConfig=a:q&&(k.serializedThirdPartyEmbedConfig=q)}; g.Jq=function(q,a){Vl.get(q);Vl.set(q,a)}; g.md=function(q){g.ya.call(this);this.loaded=!1;this.player=q}; R4m=function(){this.U=[];this.V=[]}; g.Gg=function(q,a){return a?q.V.concat(q.U):q.V}; g.Ql=function(q,a){switch(a.kind){case "asr":yum(a,q.U);break;default:yum(a,q.V)}}; yum=function(q,a){g.Z7(a,function(w){return q.equals(w)})||a.push(q)}; g.Aq=function(q){g.c.call(this);this.MB=q;this.U=new R4m;this.W=null;this.D=[];this.S=[]}; g.xq=function(q,a,w){g.Aq.call(this,q);this.videoData=a;this.audioTrack=w;this.V=null;this.Y=!1;this.D=a.Ol;this.S=a.xb;this.Y=g.kU(a)}; g.q$l=function(q,a){var w;return q.B().T("safari_live_drm_captions_fix")&&((w=q.getVideoData())==null?0:w.YD())?!1:g.lt(q.B())&&!a.isManifestless}; g.Lo=function(q,a){return yz(q.info.mimeType)?a?q.info.itag===a:!0:!1}; g.gCm=function(q,a){if(q.V!=null&&g.q$l(a,q.V)&&q.V.V.rawcc!=null)return!0;if(!q.pk())return!1;a=!!q.V&&q.V.isManifestless&&Object.values(q.V.V).some(function(w){return g.Lo(w,"386")}); q=!!q.V&&!q.V.isManifestless&&g.PwG(q.V);return a||q}; g.B1=function(q,a,w,G,k,b){g.Aq.call(this,q);this.videoId=w;this.Ln=k;this.eventId=b;this.L={};this.V=null;q=G||g.RI(a).hl||"";q=q.split("_").join("-");this.Y=ye(a,{hl:q})}; ayJ=function(q,a){g.c.call(this);var w=this;this.j=q;this.Y=a;this.jU={};this.V={};this.U=null;this.W=new Set;this.D=new g.Ee(this);this.qh={hhl:function(){return w.Y}}; this.L=this.j.T("web_player_defer_modules");this.KT=new Map;g.p(this,this.D);this.D.C(q,"videodatachange",this.onVideoDataChange)}; wKV=function(q,a){q.U=a}; g.rP=function(q){return q.KT.get("captions")}; NNj=function(q,a){switch(a){case "ad":return GI_(q);case "annotations_module":return q.j.isEmbedsShortsMode()?q=!1:(a=q.j,q=a.B(),a=a.getVideoData(),q=q.W||a.XG||q.controlsType==="3"?!1:q.L7.isEmpty()&&q.playerStyle!=="annotation-editor"&&q.playerStyle!=="live-dashboard"?!!a.Tl||!!g.a$(a)||!!g.w6(a):!0),q;case "asmjs":return kIK(q);case "creatorendscreen":return b9l(q);case "embed":return g.yw(q.j.B());case "endscreen":return g.O9V(q);case "heartbeat":return q.d1();case "kids":return P8(q.j.B()); case "remote":return q.j.B().bD;case "miniplayer":return q.j.B().showMiniplayerUiWhenMinimized;case "offline":return q.j.B().qM;case "captions":return lyl(q);case "unplugged":return g.b0(q.j.B());case "ux":return q.j.B().A2;case "webgl":return eqc(q);case "ypc":return q.oF();case "ypc_clickwrap":return yhm(q.j.getVideoData());case "yto":return q.j.T("web_player_playable_sequences_refactor")?!1:!!q.j.getVideoData().J.includes("yto");default:return g.mQ(Error("Module descriptor "+a+" does not match")), !1}}; no=function(q,a,w,G,k){var b;w=w===void 0?!1:w;G=G===void 0?!1:G;var O=q.KT.get(a);if(!O||G)if(k||(k=function(){no(q,a,w,G)}),b||(b=function(){q.j.fu(a)}),O=O||Y$_(q,a,NNj(q,a),k,b))q.KT.set(a,O),O.create(),q.j.publish("modulecreated",a),w&&q.j.pu("onApiChange")}; KR_=function(q){var a=a===void 0?!1:a;var w,G,k,b,O;return g.h(function(e){if(e.U==1)return(w=q.KT.get("asmjs"))&&!a?e.return(w):(G=Vl.get("asmjs"))!=null?(k=G,e.Gl(2)):g.n(e,new Promise(function(N,Y){P7j(q,"asmjs",function(){var P=Vl.get("asmjs");P?N(P):Y("cannot load module asmjs")},Y)}),3); e.U!=2&&(k=e.V);b=k;if(!b)return e.return(Promise.reject("cannot load module asmjs"));O=new b(q.j);q.KT.set("asmjs",O);O.create();return e.return(O)})}; $nf=function(q){dnl(q)&&q.gW();TN_(q)&&(no(q,"captions",!0),no(q,"endscreen"),q.fh(),no(q,"creatorendscreen",!0))}; TN_=function(q){var a=q.j.getVideoData(),w=q.L&&!a.isInlinePlaybackNoAd;q.j.T("html5_defer_modules_on_ads_only")&&!a.isAd()&&(w=!1);return w}; dnl=function(q){q=q.j.getVideoData();var a;if(a=q.T("web_player_defer_ad")){if(g.Vx(q.J,"ad")||SmN(q)||q.enableServerStitchedDai)q=!1;else{a=q.playerResponse;q=q.startSeconds;var w=a==null?void 0:a.adPlacements;if(a=w){a=Number.MAX_VALUE;w=g.V(w);for(var G=w.next();!G.done;G=w.next())if(G=G.value.adPlacementRenderer){var k=void 0,b=(k=G.config)==null?void 0:k.adPlacementConfig;k=void 0;if(((k=b)==null?void 0:k.kind)==="AD_PLACEMENT_KIND_MILLISECONDS"){var O=k=void 0;b=Number((k=b)==null?void 0:(O= k.adTimeOffset)==null?void 0:O.offsetStartMilliseconds)||0;O=k=void 0;G=Number(((k=G.renderer)==null?void 0:(O=k.adBreakServiceRenderer)==null?void 0:O.prefetchMilliseconds)||0);G=b-G;G=11;q=q.api.B().X&&UC;return!(!a&&!q)}; RE=function(q,a){return!q.api.isInline()&&!cbJ(q,C2(a))&&g.sx(a)}; H9_=function(q){q.y0.Cb();if(q.XO&&q.wW)q.wW=!1;else if(!q.api.B().Tl&&!q.jj()){var a=q.api.getPlayerStateObject();g.v(a,2)&&g.I$(q.api)||q.Y5(a);!q.api.B().VN||a.isCued()||g.v(a,1024)?q.lN():q.EY.isActive()?(q.Na(),q.EY.stop()):q.EY.start()}}; UnU=function(q,a){var w;if((w=q.api.getVideoData())==null?0:w.mutedAutoplay){var G,k;if((G=a.target)==null?0:(k=G.className)==null?0:k.includes("ytp-info-panel"))return!1}return g.sx(a)&&q.api.isMutedByMutedAutoplay()?(q.api.unMute(),q.api.getPresentingPlayerType()===2&&q.api.playVideo(),a=q.api.getPlayerStateObject(),!g.v(a,4)||g.v(a,8)||g.v(a,2)||q.lN(),!0):!1}; XKl=function(q,a,w){q.api.isFullscreen()?w<1-a&&q.api.toggleFullscreen():w>1+a&&q.api.toggleFullscreen()}; fyy=function(q){var a=cr()&&Se()>=67&&!q.api.B().X;q=q.api.B().disableOrganicUi;return!g.Hr("tizen")&&!Wm&&!a&&!q}; g.yl=function(q){g.u.call(this,{G:"div",K:[{G:"div",N:"ytp-bezel-text-wrapper",K:[{G:"div",N:"ytp-bezel-text",ue:"{{title}}"}]},{G:"div",N:"ytp-bezel",Z:{role:"status","aria-label":"{{label}}"},K:[{G:"div",N:"ytp-bezel-icon",ue:"{{icon}}"}]}]});this.j=q;this.U=new g.o1(this.show,10,this);q=this.j.T("delhi_modern_web_player")?1E3:500;this.V=new g.o1(this.hide,q,this);g.p(this,this.U);g.p(this,this.V);this.hide()}; gm=function(q,a,w){if(a<=0){w=Jy();a="silenciado";var G=0}else w=w?{G:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{G:"path",dG:!0,Z:{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"}}]}:{G:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{G:"path",dG:!0,Z:{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"}}]},G=Math.floor(a),a=G+"volumen";qV(q,w,a,G+"%")}; j8l=function(q,a){a=a?{G:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{G:"path",dG:!0,N:"ytp-svg-fill",Z:{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"}}]}:Tgm();var w=q.j.getPlaybackRate(),G=g.gZ("Velocidad: $RATE",{RATE:String(w)});qV(q,a,G,w+"x")}; oCl=function(q,a){a=a?"Subt\u00edtulos activados":"Subt\u00edtulos desactivados";qV(q,tZN(q.j),a)}; qV=function(q,a,w,G){G=G===void 0?"":G;q.updateValue("label",w===void 0?"":w);q.updateValue("icon",a);g.zE(q.V);q.U.start();q.updateValue("title",G);g.kX(q.element,"ytp-bezel-text-hide",!G)}; Iyj=function(q,a){g.u.call(this,{G:"button",vT:["ytp-button","ytp-cards-button"],Z:{"aria-label":"Mostrar tarjetas","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.yw(q.B()))},K:[{G:"span",N:"ytp-cards-button-icon-default",K:[{G:"div",N:"ytp-cards-button-icon",K:[q.B().T("player_new_info_card_format")?FBy():{G:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{G:"path",dG:!0,N:"ytp-svg-fill",Z:{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"}}]}]}, {G:"div",N:"ytp-cards-button-title",ue:"Informaci\u00f3n"}]},{G:"span",N:"ytp-cards-button-icon-shopping",K:[{G:"div",N:"ytp-cards-button-icon",K:[{G:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{G:"path",N:"ytp-svg-shadow",Z:{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"}},{G:"path",N:"ytp-svg-fill",Z:{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"}},{G:"path",N:"ytp-svg-shadow-fill",Z:{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"}}]}]},{G:"div", N:"ytp-cards-button-title",ue:"Shopping"}]}]});this.j=q;this.U=a;this.V=null;this.fade=new g.zs(this,250,!0,100);g.p(this,this.fade);g.kX(this.U,"ytp-show-cards-title",g.yw(q.B()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.onHover);this.W8(!0)}; ufN=function(q,a){g.u.call(this,{G:"div",N:"ytp-cards-teaser",K:[{G:"div",N:"ytp-cards-teaser-box"},{G:"div",N:"ytp-cards-teaser-text",K:q.B().T("player_new_info_card_format")?[{G:"button",N:"ytp-cards-teaser-info-icon",Z:{"aria-label":"Mostrar tarjetas","aria-haspopup":"true"},K:[FBy()]},{G:"img",N:"ytp-cards-teaser-channel-avatar",Z:{alt:"","aria-hidden":"true"}},{G:"span",N:"ytp-cards-teaser-label",ue:"{{text}}"},{G:"button",N:"ytp-cards-teaser-close-button",Z:{"aria-label":"Cerrar"},K:[g.Pe()]}]: [{G:"span",N:"ytp-cards-teaser-label",ue:"{{text}}"}]}]});var w=this;this.j=q;this.PH=a;this.fade=new g.zs(this,250,!1,250);this.V=null;this.X=new g.o1(this.kZ7,300,this);this.L=new g.o1(this.gl9,2E3,this);this.Y=[];this.U=null;this.S=new g.o1(function(){w.element.style.margin="0"},250); this.onClickCommand=this.W=null;g.p(this,this.fade);g.p(this,this.X);g.p(this,this.L);g.p(this,this.S);q.B().T("player_new_info_card_format")?(g.gU(q.getRootNode(),"ytp-cards-teaser-dismissible"),this.C(this.oW("ytp-cards-teaser-close-button"),"click",this.J1),this.C(this.oW("ytp-cards-teaser-info-icon"),"click",this.En),this.C(this.oW("ytp-cards-teaser-label"),"click",this.En)):this.listen("click",this.En);this.C(a.element,"mouseover",this.SJ);this.C(a.element,"mouseout",this.Cw);this.C(q,"cardsteasershow", this.HTT);this.C(q,"cardsteaserhide",this.DZ);this.C(q,"cardstatechange",this.Qb);this.C(q,"presentingplayerstatechange",this.Qb);this.C(q,"appresize",this.E4);this.C(q,"onShowControls",this.E4);this.C(q,"onHideControls",this.kf);this.listen("mouseenter",this.r7)}; tjy=function(q){g.u.call(this,{G:"button",vT:[a3.BUTTON,a3.TITLE_NOTIFICATIONS],Z:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},K:[{G:"div",N:a3.TITLE_NOTIFICATIONS_ON,Z:{title:"Dejar de recibir notificaciones cada vez que haya un v\u00eddeo nuevo","aria-label":"Notificaciones de suscripciones activadas"},K:[g.$p()]},{G:"div",N:a3.TITLE_NOTIFICATIONS_OFF,Z:{title:"Recibir una notificaci\u00f3n cada vez que haya un v\u00eddeo nuevo","aria-label":"Notificaciones de suscripciones activadas"}, K:[{G:"svg",Z:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},K:[{G:"path",Z:{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=q;this.V=!1;q.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Recibir una notificaci\u00f3n cada vez que haya un v\u00eddeo nuevo")}; vCl=function(q,a){q.V=a;q.element.classList.toggle(a3.NOTIFICATIONS_ENABLED,q.V);var w=q.api.getVideoData();w?(a=a?w.Hr:w.GW)?(q=q.api.e2())?Ls(q,a):g.mQ(Error("No innertube service available when updating notification preferences.")):g.mQ(Error("No update preferences command available.")):g.mQ(Error("No video data when updating notification preferences."))}; i9G=function(q,a,w){var G=G===void 0?800:G;var k=k===void 0?600:k;var b=document.location.protocol;q=oAK(b+"//"+q+"/signin?context=popup","feature",a,"next",b+"//"+location.hostname+"/post_login");zqj(q,w,G,k)}; zqj=function(q,a,w,G){w=w===void 0?800:w;G=G===void 0?600:G;if(q=g.TR(window,q,"loginPopup","width="+w+",height="+G+",resizable=yes,scrollbars=yes"))Kjm(function(){a()}),q.moveTo((screen.width-w)/2,(screen.height-G)/2)}; g.wm=function(q,a,w,G,k,b,O,e,N,Y,P,K){q=q.charAt(0)+q.substring(1).toLowerCase();w=w.charAt(0)+w.substring(1).toLowerCase();if(a==="0"||a==="-1")a=null;if(G==="0"||G==="-1")G=null;var d=P.B(),T=d.userDisplayName&&g.kM(d);g.u.call(this,{G:"div",vT:["ytp-button","ytp-sb"],K:[{G:"div",N:"ytp-sb-subscribe",Z:T?{title:P.B().T("player_tooltip_data_title_killswitch")?g.gZ("Suscribirse como $USER_NAME",{USER_NAME:d.userDisplayName}):"","data-tooltip-title":g.gZ("Suscribirse como $USER_NAME",{USER_NAME:d.userDisplayName}), "aria-label":"Suscribirse al canal","data-tooltip-image":xM(d),"data-tooltip-opaque":String(g.yw(d)),tabindex:"0",role:"button"}:{"aria-label":"Suscribirse al canal"},K:[{G:"div",N:"ytp-sb-text",K:[{G:"div",N:"ytp-sb-icon"},q]},a?{G:"div",N:"ytp-sb-count",ue:a}:""]},{G:"div",N:"ytp-sb-unsubscribe",Z:T?{title:P.T("player_tooltip_data_title_killswitch")?g.gZ("Te has suscrito como $USER_NAME",{USER_NAME:d.userDisplayName}):"","data-tooltip-title":g.gZ("Te has suscrito como $USER_NAME",{USER_NAME:d.userDisplayName}), "aria-label":"Anular suscripci\u00f3n al canal","data-tooltip-image":xM(d),"data-tooltip-opaque":String(g.yw(d)),tabindex:"0",role:"button"}:{"aria-label":"Anular suscripci\u00f3n al canal"},K:[{G:"div",N:"ytp-sb-text",K:[{G:"div",N:"ytp-sb-icon"},w]},G?{G:"div",N:"ytp-sb-count",ue:G}:""]}],Z:{"aria-live":"polite"}});var F=this;this.channelId=O;this.j=P;this.W=K;var J=this.oW("ytp-sb-subscribe"),Q=this.oW("ytp-sb-unsubscribe");b&&g.gU(this.element,"ytp-sb-classic");if(k){e?this.V():this.U();var B= function(){if(d.y7){var M=F.channelId;if(N||Y){var H={c:M};var X;g.Nq.isInitialized()&&(X=oPV(H));H=X||"";if(X=P.getVideoData())if(X=X.subscribeCommand){var D=P.e2();D?(Ls(D,X,{botguardResponse:H,feature:N}),P.zl("SUBSCRIBE",M)):g.mQ(Error("No innertube service available when updating subscriptions."))}else g.mQ(Error("No subscribe command in videoData."));else g.mQ(Error("No video data available when updating subscription."))}Q.focus();Q.removeAttribute("aria-hidden");J.setAttribute("aria-hidden", "true")}else i9G(g.Tu(F.j.B()),"sb_button",F.Y)},L=function(){var M=F.channelId; if(N||Y){var H=P.getVideoData();Ls(P.e2(),H.unsubscribeCommand,{feature:N});P.zl("UNSUBSCRIBE",M)}J.focus();J.removeAttribute("aria-hidden");Q.setAttribute("aria-hidden","true")}; this.C(J,"click",B);this.C(Q,"click",L);this.C(J,"keypress",function(M){M.keyCode===13&&B(M)}); this.C(Q,"keypress",function(M){M.keyCode===13&&L(M)}); this.C(P,"SUBSCRIBE",this.V);this.C(P,"UNSUBSCRIBE",this.U);this.W&&T&&(LwJ(P),Xe(P,J,this),Xe(P,Q,this))}else g.gU(J,"ytp-sb-disabled"),g.gU(Q,"ytp-sb-disabled")}; Rql=function(q){g.u.call(this,{G:"div",N:"ytp-title-channel",K:[{G:"div",N:"ytp-title-beacon"},{G:"a",N:"ytp-title-channel-logo",Z:{href:"{{channelLink}}",target:q.B().J,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{G:"div",N:"ytp-title-expanded-overlay",Z:{"aria-hidden":"{{flyoutUnfocusable}}"},K:[{G:"div",N:"ytp-title-expanded-heading",K:[{G:"div",N:"ytp-title-expanded-title",K:[{G:"a",ue:"{{expandedTitle}}",Z:{href:"{{channelTitleLink}}",target:q.B().J,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{G:"div",N:"ytp-title-expanded-subtitle",ue:"{{expandedSubtitle}}",Z:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var a=this;this.api=q;this.channel=this.oW("ytp-title-channel");this.U=this.oW("ytp-title-channel-logo");this.channelName=this.oW("ytp-title-expanded-title");this.L=this.oW("ytp-title-expanded-overlay");this.W=this.V=this.subscribeButton=null;this.Y=!1;q.createClientVe(this.U,this,36925);q.createClientVe(this.channelName,this, 37220);g.yw(this.api.B())&&WRG(this);this.C(q,"videodatachange",this.NB);this.C(q,"videoplayerreset",this.NB);this.C(this.channelName,"click",function(w){a.api.logClick(a.channelName);g.TR(window,DnN(a));w.preventDefault()}); this.C(this.U,"click",this.r2e);this.NB()}; ybj=function(q){if(!q.api.B().w$){var a=q.api.getVideoData(),w=new g.wm("Suscribirme",null,"Suscrito",null,!0,!1,a.Am,a.subscribed,"channel_avatar",null,q.api,!0);q.api.createServerVe(w.element,q);var G;q.api.setTrackingParams(w.element,((G=a.subscribeButtonRenderer)==null?void 0:G.trackingParams)||null);q.C(w.element,"click",function(){q.api.logClick(w.element)}); q.subscribeButton=w;g.p(q,q.subscribeButton);q.subscribeButton.HT(q.L);q.subscribeButton.hide();var k=new tjy(q.api);q.V=k;g.p(q,k);k.HT(q.L);k.hide();q.C(q.api,"SUBSCRIBE",function(){a.sT&&(k.show(),q.api.logVisibility(k.element,!0))}); q.C(q.api,"UNSUBSCRIBE",function(){a.sT&&(k.hide(),q.api.logVisibility(k.element,!1),vCl(k,!1))})}}; WRG=function(q){var a=q.api.B();ybj(q);q.updateValue("flyoutUnfocusable","true");q.updateValue("channelTitleFocusable","-1");q.updateValue("shouldHideExpandedTitleForA11y","true");q.updateValue("shouldHideExpandedSubtitleForA11y","true");a.U||a.le||(q.C(q.channel,"mouseenter",q.fl),q.C(q.channel,"mouseleave",q.EL),q.C(q.channel,"focusin",q.fl),q.C(q.channel,"focusout",function(w){q.channel.contains(w.relatedTarget)||q.EL()})); q.W=new g.o1(function(){q.isExpanded()&&(q.api.logVisibility(q.channelName,!1),q.subscribeButton&&(q.subscribeButton.hide(),q.api.logVisibility(q.subscribeButton.element,!1)),q.V&&(q.V.hide(),q.api.logVisibility(q.V.element,!1)),q.channel.classList.remove("ytp-title-expanded"),q.channel.classList.add("ytp-title-show-collapsed"))},500); g.p(q,q.W);q.C(q.channel,qJl,function(){gyc(q)}); q.C(q.api,"onHideControls",q.Lq);q.C(q.api,"appresize",q.Lq);q.C(q.api,"fullscreentoggled",q.Lq)}; gyc=function(q){q.channel.classList.remove("ytp-title-show-collapsed");q.channel.classList.remove("ytp-title-show-expanded")}; akc=function(q){var a=q.api.getPlayerSize();return g.yw(q.api.B())&&a.width>=524}; DnN=function(q){var a=q.api.B(),w=q.api.getVideoData(),G=g.LA(a)+w.VN;g.CD(w)&&(G="https://music.youtube.com"+w.VN);if(!g.yw(a))return G;a={};g.xU(q.api,"addEmbedsConversionTrackingParams",[a]);return g.sk(G,a)}; GT=function(q){var a=g.Ns({"aria-haspopup":"true"});g.e1.call(this,a,q);this.listen("keydown",this.V)}; kz=function(q,a){q.element.setAttribute("aria-haspopup",String(a))}; w_N=function(q,a){g.u.call(this,{G:"div",N:"ytp-user-info-panel",Z:{"aria-label":"Informaci\u00f3n del usuario"},K:q.B().y7&&!q.T("embeds_web_always_enable_signed_out_state")?[{G:"div",N:"ytp-user-info-panel-icon",ue:"{{icon}}"},{G:"div",N:"ytp-user-info-panel-content",K:[{G:"div",N:"ytp-user-info-panel-info",Z:{tabIndex:"{{userInfoFocusable}}",role:"text"},ue:"{{watchingAsUsername}}"},{G:"div",N:"ytp-user-info-panel-info",Z:{tabIndex:"{{userInfoFocusable2}}",role:"text"},ue:"{{watchingAsEmail}}"}]}]: [{G:"div",N:"ytp-user-info-panel-icon",ue:"{{icon}}"},{G:"div",N:"ytp-user-info-panel-content",K:[{G:"div",K:[{G:"text",Z:{tabIndex:"{{userInfoFocusable}}"},ue:"Sesi\u00f3n cerrada"}]},{G:"div",N:"ytp-user-info-panel-login",K:[{G:"a",Z:{tabIndex:"{{userInfoFocusable2}}",role:"button"},ue:q.B().w$?"":"Inicia sesi\u00f3n en YouTube"}]}]}]});this.MB=q;this.V=a;q.B().y7||q.B().w$||this.C(this.oW("ytp-user-info-panel-login"),"click",this.aJ);this.closeButton=new g.u({G:"button",vT:["ytp-collapse","ytp-button"], Z:{title:"Cerrar"},K:[g.V0()]});this.closeButton.HT(this.element);g.p(this,this.closeButton);this.C(window,"blur",this.hide);this.C(document,"click",this.Vg);this.NB()}; b4K=function(q,a,w){g.As.call(this,q);this.Wq=a;this.tS=w;this.getVideoUrl=new GT(6);this.b9=new GT(5);this.T8=new GT(4);this.Kk=new GT(3);this.hV=new g.e1(g.Ns({href:"{{href}}",target:this.j.B().J},void 0,!0),2,"Solucionar un problema de reproducci\u00f3n");this.showVideoInfo=new g.e1(g.Ns(),1,"Estad\u00edsticas para nerds");this.Gp=new g.Gs({G:"div",vT:["ytp-copytext","ytp-no-contextmenu"],Z:{draggable:"false",tabindex:"1"},ue:"{{text}}"});this.wE=new QM(this.j,this.Gp);this.x5=this.kV=null;g.yw(this.j.B())&& (this.closeButton=new g.u({G:"button",vT:["ytp-collapse","ytp-button"],Z:{title:"Cerrar"},K:[g.V0()]}),g.p(this,this.closeButton),this.closeButton.HT(this.element),this.closeButton.listen("click",this.h0,this));g.yw(this.j.B())&&(this.hm=new g.e1(g.Ns(),8,"Cuenta"),g.p(this,this.hm),this.Qa(this.hm,!0),this.hm.listen("click",this.QAt,this),q.createClientVe(this.hm.element,this.hm,137682));this.j.B().sj&&(this.DD=new EI("Bucle",7),g.p(this,this.DD),this.Qa(this.DD,!0),this.DD.listen("click",this.XqT, this),q.createClientVe(this.DD.element,this.DD,28661));g.p(this,this.getVideoUrl);this.Qa(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.LMK,this);q.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.p(this,this.b9);this.Qa(this.b9,!0);this.b9.listen("click",this.D17,this);q.createClientVe(this.b9.element,this.b9,28660);g.p(this,this.T8);this.Qa(this.T8,!0);this.T8.listen("click",this.vl8,this);q.createClientVe(this.T8.element,this.T8,28658);g.p(this,this.Kk);this.Qa(this.Kk, !0);this.Kk.listen("click",this.ikT,this);g.p(this,this.hV);this.Qa(this.hV,!0);this.hV.listen("click",this.SQG,this);g.p(this,this.showVideoInfo);this.Qa(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.yS9,this);g.p(this,this.Gp);this.Gp.listen("click",this.d1T,this);g.p(this,this.wE);a=document.queryCommandSupported&&document.queryCommandSupported("copy");zNf("Chromium")>=43&&(a=!0);zNf("Firefox")<=40&&(a=!1);a&&(this.kV=new g.u({G:"textarea",N:"ytp-html5-clipboard",Z:{readonly:"", tabindex:"-1"}}),g.p(this,this.kV),this.kV.HT(this.element));var G;(G=this.hm)==null||G.setIcon(JEf());var k;(k=this.DD)==null||k.setIcon(Bgc());this.Kk.setIcon({G:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{G:"path",Z:{"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.hV.setIcon($Rm());this.showVideoInfo.setIcon(stG());this.C(q,"onLoopChange",this.onLoopChange);this.C(q,"videodatachange",this.onVideoDataChange);GF_(this);kFj(this,this.j.getVideoData())}; bs=function(q,a){var w=!1;if(q.kV){var G=q.kV.element;G.value=a;G.select();try{w=document.execCommand("copy")}catch(k){}}w?q.Wq.DZ():(q.Gp.z0(a,"text"),g.BP(q.Wq,q.wE),x_(q.Gp.element),q.kV&&(q.kV=null,GF_(q)));return w}; kFj=function(q,a){var w=q.j.B(),G=q.j.getPresentingPlayerType()===2,k=!G||a.isListed;k=!w.UK&&!!a.videoId&&k;w.playerStyle!=="play"?w="https://support.google.com/youtube/?p=report_playback":(w={contact_type:"playbackissue",html5:1,ei:a.eventId,v:a.videoId,p:"movies_playback"},a.U&&(w.fmt=a.U.itag),a.clientPlaybackNonce&&(w.cpn=a.clientPlaybackNonce),a.partnerId&&(w.partnerid=a.partnerId),w=g.sk("//support.google.com/googleplay/",w));q.T8.Ji(k&&a.allowEmbed);q.getVideoUrl.Ji(k);q.b9.Ji(k&&!a.isLivePlayback); q.hV.z0(w,"href");var b;(b=q.DD)==null||b.Ji(!a.isLivePlayback&&!G);var O;(O=q.hm)==null||O.Ji(!G)}; GF_=function(q){var a=!!q.kV;g.lk(q.Kk,a?"Copiar informaci\u00f3n de depuraci\u00f3n":"Obtener informaci\u00f3n de depuraci\u00f3n");kz(q.Kk,!a);g.lk(q.T8,a?"Copiar c\u00f3digo de inserci\u00f3n":"Obtener c\u00f3digo de inserci\u00f3n");kz(q.T8,!a);g.lk(q.getVideoUrl,a?"Copiar URL del v\u00eddeo":"Obtener URL de v\u00eddeo");kz(q.getVideoUrl,!a);g.lk(q.b9,a?"Copiar la URL del v\u00eddeo a partir del minuto actual":"Obtener URL de v\u00eddeo en el minuto actual");kz(q.b9,!a);q.T8.setIcon(a?KBN():null); q.getVideoUrl.setIcon(a?dC():null);q.b9.setIcon(a?dC():null)}; O4_=function(q){return g.yw(q.j.B())?q.hm:q.DD}; ehm=function(q,a){g.Lh.call(this,q);this.tS=a;this.Y=new g.Ee(this);this.F9=new g.o1(this.pN7,1E3,this);this.UK=this.W=null;g.p(this,this.Y);g.p(this,this.F9);a=this.j.B();q.createClientVe(this.element,this,28656);g.gU(this.element,"ytp-contextmenu");this.j.B().experiments.Zh("delhi_modern_web_player")&&g.Zg(a)&&g.gU(this.element,"ytp-delhi-modern-contextmenu");lkl(this);this.hide()}; lkl=function(q){g.JE(q.Y);var a=q.j.B();a.playerStyle==="gvn"||a.U||a.le||(a=q.j.mQ(),q.Y.C(a,"contextmenu",q.FMK),q.Y.C(a,"touchstart",q.onTouchStart,null,!0),q.Y.C(a,"touchmove",q.NE,null,!0),q.Y.C(a,"touchend",q.NE,null,!0))}; N$j=function(q){q.j.isFullscreen()?g.DZ(q.j,q.element,10):q.HT(k_(q).body)}; Oo=function(q,a,w){w=w===void 0?240:w;g.u.call(this,{G:"button",vT:["ytp-button","ytp-copylink-button"],Z:{title:q.T("player_tooltip_data_title_killswitch")?"{{title-attr}}":"","data-tooltip-title":"{{tooltip-title}}","data-tooltip-opaque":String(g.yw(q.B()))},K:[{G:"div",N:"ytp-copylink-icon",ue:"{{icon}}"},{G:"div",N:"ytp-copylink-title",ue:"Copiar enlace",Z:{"aria-hidden":"true"}}]});this.api=q;this.V=a;this.U=w;this.visible=!1;this.tooltip=this.V.gz();a=q.B();this.tooltip.element.setAttribute("aria-live", "polite");g.kX(this.element,"ytp-show-copylink-title",g.yw(a));q.createClientVe(this.element,this,86570);this.listen("click",this.onClick);this.C(q,"videodatachange",this.NB);this.C(q,"videoplayerreset",this.NB);this.C(q,"appresize",this.NB);this.NB();this.addOnDisposeCallback(g.UT(this.tooltip,this.element))}; YJf=function(q){var a=q.api.B(),w=q.api.getVideoData(),G=q.api.mQ().getPlayerSize().width;a=a.W;return!!w.videoId&&G>=q.U&&w.N5&&!w.J8&&!q.api.isEmbedsShortsMode()&&!a}; PTG=function(q){q.updateValue("icon",eV());if(q.api.B().U)q.tooltip.c8(q.element,"Se ha copiado el enlace en el portapapeles.");else{q.updateValue("title-attr","Se ha copiado el enlace en el portapapeles.");q.updateValue("tooltip-title","Se ha copiado el enlace en el portapapeles.");q.tooltip.Fm();q.tooltip.c8(q.element);var a=q.listen("mouseleave",function(){q.v5(a);q.NB();q.tooltip.qQ()})}}; KFc=function(q,a){return g.h(function(w){if(w.U==1)return g.ml(w,2),g.n(w,navigator.clipboard.writeText(a),4);if(w.U!=2)return w.return(!0);g.rc(w);var G=w.return,k=!1,b=g.dp("TEXTAREA");b.value=a;b.setAttribute("readonly","");var O=q.api.getRootNode();O.appendChild(b);if(X4){var e=window.getSelection();e.removeAllRanges();var N=document.createRange();N.selectNodeContents(b);e.addRange(N);b.setSelectionRange(0,a.length)}else b.select();try{k=document.execCommand("copy")}catch(Y){}O.removeChild(b); return G.call(w,k)})}; d6c=function(q){g.u.call(this,{G:"div",N:"ytp-doubletap-ui-legacy",K:[{G:"div",N:"ytp-doubletap-fast-forward-ve"},{G:"div",N:"ytp-doubletap-rewind-ve"},{G:"div",N:"ytp-doubletap-static-circle",K:[{G:"div",N:"ytp-doubletap-ripple"}]},{G:"div",N:"ytp-doubletap-overlay-a11y"},{G:"div",N:"ytp-doubletap-seek-info-container",K:[{G:"div",N:"ytp-doubletap-arrows-container",K:[{G:"span",N:"ytp-doubletap-base-arrow"},{G:"span",N:"ytp-doubletap-base-arrow"},{G:"span",N:"ytp-doubletap-base-arrow"}]},{G:"div", N:"ytp-doubletap-tooltip",K:[{G:"div",N:"ytp-seek-icon-text-container",K:[{G:"div",N:"ytp-seek-icon",ue:"{{seekIcon}}"},{G:"div",N:"ytp-chapter-seek-text-legacy",ue:"{{seekText}}"}]},{G:"div",N:"ytp-doubletap-tooltip-label",ue:"{{seekTime}}"}]}]}]});this.j=q;this.Y=new g.o1(this.show,10,this);this.U=new g.o1(this.hide,700,this);this.X=this.W=0;this.F9=this.L=!1;this.V=this.oW("ytp-doubletap-static-circle");g.p(this,this.Y);g.p(this,this.U);this.hide();this.S=this.oW("ytp-doubletap-fast-forward-ve"); this.J=this.oW("ytp-doubletap-rewind-ve");this.j.createClientVe(this.S,this,28240);this.j.createClientVe(this.J,this,28239);this.j.logVisibility(this.S,!0);this.j.logVisibility(this.J,!0);this.L=q.T("web_show_cumulative_seek_time");this.F9=q.T("web_center_static_circles")}; T$f=function(q,a){a=g.gZ("$TOTAL_SEEK_TIME\u00a0segundos",{TOTAL_SEEK_TIME:a.toString()});q.updateValue("seekTime",a)}; $6U=function(q){mp.call(this,q,!1,!0);this.jt=[];this.N1=[];this.element.setAttribute("data-overlay-order","9");this.S=!0;this.badge.element.classList.add("ytp-featured-product");this.f7=new g.u({G:"div",N:"ytp-featured-product-open-in-new"});g.p(this,this.f7);this.countdownTimer=new g.u({G:"text",N:"ytp-featured-product-countdown",ue:"{{content}}"});this.countdownTimer.hide();g.p(this,this.countdownTimer);this.U=new g.u({G:"div",N:"ytp-featured-product-trending",K:[{G:"div",N:"ytp-featured-product-trending-icon"}, {G:"text",N:"ytp-featured-product-trending-text",ue:"{{trendingOffer}}"}]});this.U.hide();g.p(this,this.U);this.overflowButton=new g.u({G:"button",vT:["ytp-featured-product-overflow-icon","ytp-button"],Z:{"aria-haspopup":"true"}});this.overflowButton.hide();g.p(this,this.overflowButton);this.X=new g.u({G:"text",N:"ytp-featured-product-exclusive-countdown",ue:"{{content}}",Z:{id:"exclusiveCountdown","aria-hidden":"true"}});this.X.hide();g.p(this,this.X);this.L=new g.u({G:"div",N:"ytp-featured-product-exclusive-container", Z:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"},K:[{G:"div",N:"ytp-featured-product-exclusive-badge-container",K:[{G:"div",N:"ytp-featured-product-exclusive-badge",K:[{G:"text",N:"ytp-featured-product-exclusive-badge-text",ue:"{{exclusive}}",Z:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.X]});this.L.hide();g.p(this,this.L);this.banner=new g.u({G:"a",N:"ytp-featured-product-container",K:[{G:"div",N:"ytp-featured-product-thumbnail",K:[{G:"img",Z:{src:"{{thumbnail}}"}},this.f7]},{G:"div", N:"ytp-featured-product-details",K:[{G:"text",N:"ytp-featured-product-title",ue:"{{title}}"},this.j.T("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{G:"div",N:"ytp-featured-product-price-container",Z:{"aria-label":"{{priceA11yText}}"},K:[{G:"text",N:"ytp-featured-product-price-when-promotion-text-enabled",ue:"{{price}}",Z:{"aria-hidden":"true"}},{G:"text",N:"ytp-featured-product-promotion-text",ue:"{{promotionText}}",Z:{"aria-hidden":"true"}}]}:{G:"div",Z:{"aria-label":"{{priceA11yText}}"}, K:[{G:"text",N:"ytp-featured-product-price",ue:"{{price}}",Z:{"aria-hidden":"true"}},{G:"text",N:"ytp-featured-product-sales-original-price",ue:"{{salesOriginalPrice}}",Z:{"aria-hidden":"true"}},{G:"text",N:"ytp-featured-product-price-drop-reference-price",ue:"{{priceDropReferencePrice}}",Z:{"aria-hidden":"true"}}]},this.j.T("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{G:"div",N:"ytp-featured-product-when-promotion-text-enabled",K:[{G:"text",N:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled", ue:"{{affiliateDisclaimer}}"},this.U,{G:"text",N:"ytp-featured-product-vendor-when-promotion-text-enabled",ue:"{{vendor}}"}]}:{G:"div",K:[{G:"text",N:"ytp-featured-product-affiliate-disclaimer",ue:"{{affiliateDisclaimer}}"},this.j.T("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.L:null,this.U,{G:"text",N:"ytp-featured-product-vendor",ue:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.p(this,this.banner);this.banner.HT(this.W.element);this.C(this.j,g.oM("featured_product"), this.rp7);this.C(this.j,g.IM("featured_product"),this.wu);this.C(this.j,"videodatachange",this.onVideoDataChange);this.C(this.overflowButton.element,"click",this.Up);this.C(q,"featuredproductdismissed",this.oM)}; sVJ=function(q){var a,w;q=(a=q.V)==null?void 0:(w=a.bannerData)==null?void 0:w.itemData;var G,k,b;return(q==null||!q.affiliateDisclaimer)&&(q==null?0:(G=q.exclusivesData)==null?0:G.exclusiveOfferLabelText)&&(q==null?0:(k=q.exclusivesData)==null?0:k.expirationTimestampMs)&&(q==null?0:(b=q.exclusivesData)==null?0:b.exclusiveOfferCountdownText)?!0:!1}; CTj=function(q){var a,w,G,k,b=(a=q.V)==null?void 0:(w=a.bannerData)==null?void 0:(G=w.itemData)==null?void 0:(k=G.exclusivesData)==null?void 0:k.expirationTimestampMs;a=(Number(b)-Date.now())/1E3;if(a>0){if(a<604800){var O,e,N,Y;w=(O=q.V)==null?void 0:(e=O.bannerData)==null?void 0:(N=e.itemData)==null?void 0:(Y=N.exclusivesData)==null?void 0:Y.exclusiveOfferCountdownText;if(w!==void 0)for(O=Date.now(),e=g.V(w),N=e.next();!N.done;N=e.next())if(N=N.value,N!==void 0&&N.text!==void 0&&(Y=Number(N.textDisplayStartTimestampMs), !isNaN(Y)&&O>=Y)){N.insertCountdown?(a=N.text.replace(/\$0/,String(Wc({seconds:a}))),q.X.z0(a)):q.X.z0(N.text);q.X.show();break}}var P,K,d,T;q.L.update({exclusive:(P=q.V)==null?void 0:(K=P.bannerData)==null?void 0:(d=K.itemData)==null?void 0:(T=d.exclusivesData)==null?void 0:T.exclusiveOfferLabelText});q.L.show();ls(q);var F;(F=q.Ck)==null||F.start()}else FFm(q)}; FFm=function(q){var a;(a=q.Ck)==null||a.stop();q.X.hide();q.L.hide();eM(q)}; Z4G=function(q){var a,w,G=(a=q.V)==null?void 0:(w=a.bannerData)==null?void 0:w.itemData;return q.j.T("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(G==null||!G.priceReplacementText)&&(G==null?0:G.promotionText)?G==null?void 0:G.promotionText.content:null}; Eyl=function(q){var a,w,G=(a=q.V)==null?void 0:(w=a.bannerData)==null?void 0:w.itemData,k,b;if(!(G!=null&&G.priceReplacementText||q.j.T("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(G==null?0:(k=G.dealsData)==null?0:(b=k.sales)==null?0:b.originalPrice)){var O,e;return G==null?void 0:(O=G.dealsData)==null?void 0:(e=O.sales)==null?void 0:e.originalPrice}return null}; Vp_=function(q){var a,w,G=(a=q.V)==null?void 0:(w=a.bannerData)==null?void 0:w.itemData,k,b,O,e;if(!((G==null?0:G.priceReplacementText)||q.j.T("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(G==null?0:(k=G.dealsData)==null?0:(b=k.sales)==null?0:b.originalPrice))&&(G==null?0:(O=G.dealsData)==null?0:(e=O.priceDrop)==null?0:e.referencePrice)){var N,Y;return G==null?void 0:(N=G.dealsData)==null?void 0:(Y=N.priceDrop)==null?void 0:Y.referencePrice}return null}; JSc=function(q){var a,w,G=(a=q.V)==null?void 0:(w=a.bannerData)==null?void 0:w.itemData;if(G==null?0:G.priceReplacementText)return G==null?void 0:G.priceReplacementText;if((G==null?0:G.promotionText)&&q.j.T("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var k;return(G==null?void 0:G.price)+" "+(G==null?void 0:(k=G.promotionText)==null?void 0:k.content)}var b,O;if(G==null?0:(b=G.dealsData)==null?0:(O=b.sales)==null?0:O.originalPrice){var e,N;return G==null?void 0:(e=G.dealsData)== null?void 0:(N=e.sales)==null?void 0:N.salesPriceAccessibilityLabel}var Y,P;if(G==null?0:(Y=G.dealsData)==null?0:(P=Y.priceDrop)==null?0:P.referencePrice){var K,d;return(G==null?void 0:G.price)+" "+(G==null?void 0:(K=G.dealsData)==null?void 0:(d=K.priceDrop)==null?void 0:d.referencePrice)}return G==null?void 0:G.price}; m6j=function(q){if(q.j.T("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var a,w,G;return q.U.Fw?null:(a=q.V)==null?void 0:(w=a.bannerData)==null?void 0:(G=w.itemData)==null?void 0:G.vendorName}var k,b,O,e,N,Y;return q.U.Fw||q.L.Fw||((k=q.V)==null?0:(b=k.bannerData)==null?0:(O=b.itemData)==null?0:O.affiliateDisclaimer)?null:(e=q.V)==null?void 0:(N=e.bannerData)==null?void 0:(Y=N.itemData)==null?void 0:Y.vendorName}; ASG=function(q,a){NV(q);if(a){var w=g.mh.getState().entities;w=vV(w,"featuredProductsEntity",a);if(w!=null&&w.productsData){a=[];w=g.V(w.productsData);for(var G=w.next();!G.done;G=w.next()){G=G.value;var k=void 0;if((k=G)!=null&&k.identifier&&G.featuredSegments){q.jt.push(G);var b=void 0;k=g.V((b=G)==null?void 0:b.featuredSegments);for(b=k.next();!b.done;b=k.next()){var O=b.value;b=QVU(O.startTimeSec);b!==void 0&&(O=QVU(O.endTimeSec),a.push(new g.Xo(b*1E3,O===void 0?0x7ffffffffffff:O*1E3,{id:G.identifier, namespace:"featured_product"})))}}}q.j.N9(a)}}}; eM=function(q){if(q.trendingOfferEntityKey){var a=g.mh.getState().entities;if(a=vV(a,"trendingOfferEntity",q.trendingOfferEntityKey)){var w,G,k;a.encodedSkuId!==((w=q.V)==null?void 0:(G=w.bannerData)==null?void 0:(k=G.itemData)==null?void 0:k.encodedOfferSkuId)?ls(q):(q.U.update({trendingOffer:a.shortLabel+" \u2022 "+a.countLabel}),q.U.show(),q.banner.update({vendor:m6j(q)}))}else ls(q)}else ls(q)}; ls=function(q){q.U.hide();q.banner.update({vendor:m6j(q)})}; NV=function(q){q.jt=[];q.wu();q.j.XC("featured_product")}; x6j=function(q){var a,w,G,k,b=(a=q.V)==null?void 0:(w=a.bannerData)==null?void 0:(G=w.itemData)==null?void 0:(k=G.hiddenProductOptions)==null?void 0:k.dropTimestampMs;a=(Number(b)-Date.now())/1E3;q.countdownTimer.z0(Wc({seconds:a}));if(a>0){var O;(O=q.yN)==null||O.start()}}; LFm=function(q){var a;(a=q.yN)==null||a.stop();q.countdownTimer.hide()}; QVU=function(q){if(q!==void 0&&q.trim()!==""&&(q=Math.trunc(Number(q.trim())),!(isNaN(q)||q<0)))return q}; hhf=function(q,a,w){g.u.call(this,{G:"div",vT:["ytp-info-panel-action-item"],K:[{G:"div",N:"ytp-info-panel-action-item-disclaimer",ue:"{{disclaimer}}"},{G:"a",vT:["ytp-info-panel-action-item-button","ytp-button"],Z:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},K:[{G:"div",N:"ytp-info-panel-action-item-icon",ue:"{{icon}}"},{G:"div",N:"ytp-info-panel-action-item-label",ue:"{{label}}"}]}]});this.j=q;this.V=w;this.disclaimer=this.oW("ytp-info-panel-action-item-disclaimer");this.button= this.oW("ytp-info-panel-action-item-button");this.PN=!1;this.j.createServerVe(this.element,this,!0);this.listen("click",this.onClick);q="";w=g.I(a==null?void 0:a.onTap,xf);var G=g.I(w,g.Be);this.PN=!1;G?(q=G.url||"",q.startsWith("//")&&(q="https:"+q),this.PN=!0,g.NO(this.button,g.OX(q))):(G=g.I(w,B$G))&&!this.V?((q=G.phoneNumbers)&&q.length>0?(q="sms:"+q[0],G.messageText&&(q+="?&body="+encodeURI(G.messageText))):q="",this.PN=!0,g.NO(this.button,g.OX(q,[rSU]))):(w=g.I(w,nyj))&&!this.V&&(q=w.phoneNumber? "tel:"+w.phoneNumber:"",this.PN=!0,g.NO(this.button,g.OX(q,[Mp_])));var k;if(w=(k=a.disclaimerText)==null?void 0:k.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var b;this.update({label:(b=a.bodyText)==null?void 0:b.content,icon:sE(),disclaimer:w})}else{this.disclaimer.style.display="none";var O;this.update({label:(O=a.bodyText)==null?void 0:O.content,icon:sE()})}this.j.setTrackingParams(this.element,a.trackingParams||null);this.PN&&(this.U={externalLinkData:{url:q}})}; SJJ=function(q,a){var w=ql();g.Gd.call(this,q,{G:"div",N:"ytp-info-panel-detail-skrim",K:[{G:"div",N:"ytp-info-panel-detail",Z:{role:"dialog",id:w},K:[{G:"div",N:"ytp-info-panel-detail-header",K:[{G:"div",N:"ytp-info-panel-detail-title",ue:"{{title}}"},{G:"button",vT:["ytp-info-panel-detail-close","ytp-button"],Z:{"aria-label":"Cerrar"},K:[g.Pe()]}]},{G:"div",N:"ytp-info-panel-detail-body",ue:"{{body}}"},{G:"div",N:"ytp-info-panel-detail-items"}]}]},250);this.V=a;this.items=this.oW("ytp-info-panel-detail-items"); this.W=new g.Ee(this);this.itemData=[];this.Y=w;this.C(this.oW("ytp-info-panel-detail-close"),"click",this.DZ);this.C(this.oW("ytp-info-panel-detail-skrim"),"click",this.DZ);this.C(this.oW("ytp-info-panel-detail"),"click",function(G){G.stopPropagation()}); g.p(this,this.W);this.j.createServerVe(this.element,this,!0);this.C(q,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",q.getVideoData());this.hide()}; fkj=function(q,a){q=g.V(q.itemData);for(var w=q.next();!w.done;w=q.next())w=w.value,w.j.logVisibility(w.element,a)}; p_c=function(q,a){g.u.call(this,{G:"div",N:"ytp-info-panel-preview",Z:{"aria-live":"assertive","aria-atomic":"true","aria-owns":a.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.yw(q.B()))},K:[{G:"div",N:"ytp-info-panel-preview-text",ue:"{{text}}"},{G:"div",N:"ytp-info-panel-preview-chevron",ue:"{{chevron}}"}]});var w=this;this.j=q;this.xw=this.V=this.videoId=null;this.W=this.showControls=this.U=!1;this.C(this.element,"click",function(){q.logClick(w.element);q.jj();bk(a)}); this.fade=new g.zs(this,250,!1,100);g.p(this,this.fade);this.j.createServerVe(this.element,this,!0);this.C(q,"videodatachange",this.onVideoDataChange);this.C(q,"presentingplayerstatechange",this.uZ);this.C(this.j,"paidcontentoverlayvisibilitychange",this.US);this.C(this.j,"infopaneldetailvisibilitychange",this.US);var G=q.getVideoData()||{};H4K(G)&&cSl(this,G);this.C(q,"onShowControls",this.Op);this.C(q,"onHideControls",this.d0)}; cSl=function(q,a){if(!a.Ku||!q.j.Rg()){var w=a.u2||1E4,G=H4K(a);q.V?a.videoId&&a.videoId!==q.videoId&&(g.zE(q.V),q.videoId=a.videoId,G?(U6_(q,w,a),q.kF()):(q.DZ(),q.V.dispose(),q.V=null)):G&&(a.videoId&&(q.videoId=a.videoId),U6_(q,w,a),q.kF())}}; H4K=function(q){var a,w,G,k;return!!((a=q.rz)==null?0:(w=a.title)==null?0:w.content)||!!((G=q.rz)==null?0:(k=G.bodyText)==null?0:k.content)}; U6_=function(q,a,w){q.V&&q.V.dispose();q.V=new g.o1(q.OO7,a,q);g.p(q,q.V);var G;a=((G=w.rz)==null?void 0:G.trackingParams)||null;q.j.setTrackingParams(q.element,a);var k;var b,O;if(w==null?0:(b=w.rz)==null?0:(O=b.title)==null?0:O.content){var e;G=(k=w.rz)==null?void 0:(e=k.title)==null?void 0:e.content;var N,Y;if((N=w.rz)==null?0:(Y=N.bodyText)==null?0:Y.content)G+=" \u2022 ";k=G}else k="";var P,K;w=((P=w.rz)==null?void 0:(K=P.bodyText)==null?void 0:K.content)||"";q.update({text:k+w,chevron:g.Yp()})}; X_l=function(q,a){q.V&&(g.v(a,8)?(q.U=!0,q.kF(),q.V.start()):(g.v(a,2)||g.v(a,64))&&q.videoId&&(q.videoId=null))}; Yz=function(q){var a=null;try{a=q.toLocaleString("es",{style:"percent"})}catch(w){a=q.toLocaleString(void 0,{style:"percent"})}return a}; Pf=function(q,a){var w=0;q=g.V(q);for(var G=q.next();!(G.done||G.value.startTime>a);G=q.next())w++;return w===0?w:w-1}; jVc=function(q,a){for(var w=0,G=g.V(q),k=G.next();!k.done;k=G.next()){k=k.value;if(a=k.timeRangeStartMillis&&a2147483647?"0":String(q)}; dm=function(q,a,w){var G=q.api.getCurrentTime(),k=zhm(q,G);q=zhm(q,G+a);return{startMediaTimeMs:k,endMediaTimeMs:q,seekSource:w}}; i4y=function(q){var a,w=(a=q.api.getVideoData())==null?void 0:a.fT();return q.api.getPresentingPlayerType(w)!==2}; KX=function(q,a){q.W.zT=a;g.kX(q.api.getRootNode(),"ytp-probably-keyboard-focus",a);g.kX(q.contextMenu.element,"ytp-probably-keyboard-focus",a)}; $z=function(q,a,w,G){var k=g.rP(q.api.Hq());if(k&&k.loaded){var b=q.api.getSubtitlesUserSettings();k=void 0;for(var O=0;O0?a[0]:null;var w=g.lh("ytp-chrome-bottom"),G=g.lh("ytp-ad-module");q.Y=!(w==null||!w.contains(a));q.S=!(G==null||!G.contains(a));q.J=!(a==null||!a.hasAttribute("data-tooltip-target-fixed"));return a}; kWc=function(q,a,w){if(!q.L){if(a){q.tooltipRenderer=a;a=q.tooltipRenderer.text;var G=!1,k;(a==null?0:(k=a.runs)==null?0:k.length)&&a.runs[0].text&&(q.update({title:a.runs[0].text.toString()}),G=!0);g.aT(q.title,G);a=q.tooltipRenderer.detailsText;k=!1;var b;if((a==null?0:(b=a.runs)==null?0:b.length)&&a.runs[0].text){G=a.runs[0].text.toString();b=G.indexOf("$TARGET_ICON");if(b>-1)if(q.tooltipRenderer.targetId){a=[];G=G.split("$TARGET_ICON");var O=new g.gC({G:"span",N:"ytp-promotooltip-details-icon", K:[wxJ[q.tooltipRenderer.targetId]]});g.p(q,O);for(var e=[],N=g.V(G),Y=N.next();!Y.done;Y=N.next())Y=new g.gC({G:"span",N:"ytp-promotooltip-details-component",ue:Y.value}),g.p(q,Y),e.push(Y);G.length===2?(a.push(e[0].element),a.push(O.element),a.push(e[1].element)):G.length===1&&(b===0?(a.push(O.element),a.push(e[0].element)):(a.push(e[0].element),a.push(O.element)));b=a.length?a:null}else b=null;else b=G;if(b){if(typeof b!=="string")for(g.sN(q.details),k=g.V(b),b=k.next();!b.done;b=k.next())q.details.appendChild(b.value); else q.update({details:b});k=!0}}g.aT(q.details,k);k=q.tooltipRenderer.acceptButton;b=!1;var P,K,d;((P=g.I(k,g.e9))==null?0:(K=P.text)==null?0:(d=K.runs)==null?0:d.length)&&g.I(k,g.e9).text.runs[0].text&&(q.update({acceptButtonText:g.I(k,g.e9).text.runs[0].text.toString()}),b=!0);g.aT(q.acceptButton,b);P=q.tooltipRenderer.dismissButton;K=!1;var T,F,J;((T=g.I(P,g.e9))==null?0:(F=T.text)==null?0:(J=F.runs)==null?0:J.length)&&g.I(P,g.e9).text.runs[0].text&&(q.update({dismissButtonText:g.I(P,g.e9).text.runs[0].text.toString()}), K=!0);g.aT(q.dismissButton,K)}w&&(q.W=w);q.V=aYG(q);q.X=!1;q.j.B().T("web_player_hide_nitrate_promo_tooltip")||q.Ji(!0);GWf(q);q.Fw&&!q.F9&&(q.F9=!0,q.qh.U6(0));q.U&&q.j.logVisibility(q.element,q.Fw)}}; CX=function(q){q.Ji(!1);q.U&&q.j.logVisibility(q.element,q.Fw)}; bvV=function(q){var a,w,G,k=((a=g.I(q.acceptButton,g.e9))==null?void 0:(w=a.text)==null?void 0:(G=w.runs)==null?void 0:G.length)&&!!g.I(q.acceptButton,g.e9).text.runs[0].text,b,O,e;a=((b=g.I(q.dismissButton,g.e9))==null?void 0:(O=b.text)==null?void 0:(e=O.runs)==null?void 0:e.length)&&!!g.I(q.dismissButton,g.e9).text.runs[0].text;return k||a}; GWf=function(q){var a;if(!(a=!q.V)){a=q.V;var w=window.getComputedStyle(a);a=w.display==="none"||w.visibility==="hidden"||a.getAttribute("aria-hidden")==="true"}if(a||q.j.isMinimized())q.Ji(!1);else if(a=g.gh(q.V),a.width&&a.height){q.j.xt(q.element,q.V);var G=q.j.mQ().getPlayerSize().height;w=g.gh(q.oW("ytp-promotooltip-container")).height;q.Y?q.element.style.top=G-w-a.height-12+"px":q.J||(G=q.j.f3().height-w-a.height-12,q.element.style.top=G+"px");G=q.oW("ytp-promotooltip-pointer");var k=g.yD(q.V, q.j.getRootNode()),b=Number(q.element.style.left.replace(/[^\d\.]/g,""));q=q.j.isFullscreen()?18:12;G.style.left=k.x-b+a.width/2-q+"px";G.style.top=w+"px"}else q.Ji(!1)}; ZE=function(q){g.u.call(this,{G:"button",vT:["ytp-replay-button","ytp-button"],Z:{title:q.T("player_tooltip_data_title_killswitch")?"Ver de nuevo":"","data-tooltip-title":"Ver de nuevo"},K:[g.ZJ()]});this.j=q;this.C(q,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.gG(q.getPlayerStateObject());Xe(this.j,this.element,this)}; Eo=function(q,a){a=a===void 0?240:a;g.u.call(this,{G:"button",vT:["ytp-button","ytp-search-button"],Z:{title:q.T("player_tooltip_data_title_killswitch")?"Buscar":"","data-tooltip-title":"Buscar","data-tooltip-opaque":String(g.yw(q.B()))},K:[{G:"div",N:"ytp-search-icon",ue:"{{icon}}"},{G:"div",N:"ytp-search-title",ue:"Buscar"}]});this.api=q;this.U=a;this.visible=!1;this.updateValue("icon",{G:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},K:[{G:"path",N:"ytp-svg-fill",Z:{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"}}]}); q.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.V();this.C(q,"appresize",this.V);this.C(q,"videodatachange",this.V);Xe(q,this.element,this)}; VQ=function(q){g.u.call(this,{G:"div",N:"ytp-seek-overlay",K:[{G:"div",vT:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-back"],K:[{G:"div",vT:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],K:[{G:"svg",Z:{viewBox:"0 0 22 32",width:"22",height:"24"},K:[{G:"path",Z:{d:"M 18 4 L 6 16 L 18 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]},{G:"div",N:"ytp-seek-overlay-duration",ue:"{{durationBack}}"}]},{G:"div",vT:["ytp-seek-overlay-animation", "ytp-seek-overlay-animation-forward"],K:[{G:"div",N:"ytp-seek-overlay-duration",ue:"{{durationForward}}"},{G:"div",vT:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],K:[{G:"svg",Z:{viewBox:"0 0 22 32",width:"22",height:"24"},K:[{G:"path",Z:{d:"M 4 4 L 16 16 L 4 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]}]},{G:"div",N:"ytp-seek-overlay-message",K:[{G:"div",N:"ytp-seek-overlay-message-icon",ue:"{{icon}}"},{G:"div",N:"ytp-seek-overlay-message-text", ue:"{{text}}"}]}]});var a=this;this.j=q;this.X=0;this.V="hidden";this.S=this.oW("ytp-seek-overlay-animation-back");this.J=this.oW("ytp-seek-overlay-animation-forward");this.F9=this.oW("ytp-seek-overlay-message");this.L=new g.o1(function(){OvV(a)},g.Wo(this.j.B().experiments,"web_player_seek_overlay_linger_duration")||1E3); g.p(this,this.L);this.j.createClientVe(this.J,this,28240);this.j.createClientVe(this.S,this,28239);this.j.logVisibility(this.J,!0);this.j.logVisibility(this.S,!0);this.hide()}; lYU=function(q,a){q.W=q.Y.animate([{offset:0,opacity:a,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:1}],{duration:200,fill:"forwards"});q.W.addEventListener("finish",function(){q.W=void 0;q.L.start();q.V="lingering"})}; eKN=function(q,a,w,G){w=w===void 0?!1:w;G=G===void 0?!1:G;var k=[];k.push({offset:0,transform:"translateX("+(q.U===-1?20:-20)+"px)",opacity:w?"0":"1"});w&&k.push({offset:.5,opacity:"1"});k.push({offset:1,transform:"translateX(0)"});w=a.animate(k,{duration:400,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"});a=a.querySelector("path");k=[];k.push({offset:0,d:q.U===-1?'path("M 18 4 L 18 16 L 18 28")':'path("M 4 4 L 4 16 L 4 28")'});G&&k.push({offset:.8,filter:"drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.8))"}); q={offset:1,d:q.U===-1?'path("M 18 4 L 6 16 L 18 28")':'path("M 4 4 L 16 16 L 4 28")'};G&&(q.filter="drop-shadow(0 0 0.5px rgba(0, 0, 0, 0))");k.push(q);a.animate(k,{duration:333,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)",fill:"forwards"});return w}; NGj=function(q){var a=q.Y.querySelector(".ytp-seek-overlay-arrow-persistent").cloneNode(!0);a.classList.add("ytp-seek-overlay-arrow-additional");a.classList.remove("ytp-seek-overlay-arrow-persistent");q.Y.appendChild(a);eKN(q,a,!0,!0).addEventListener("finish",function(){a.remove()})}; OvV=function(q,a,w){w=w===void 0?!0:w;q.W=q.Y.animate([{offset:0,opacity:a===void 0?1:a},{offset:1,opacity:0}],{duration:200,fill:"forwards",easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"});w&&(q.W.addEventListener("finish",function(){q.W=void 0;YMG(q);q.hide()}),q.V="fading-out")}; PKl=function(q){var a=Number(getComputedStyle(q.Y).opacity),w;(w=q.W)==null||w.cancel();q.W=void 0;return a}; YMG=function(q){q.X=0;q.V="hidden";q.U=void 0;q.Y=void 0;q.L.stop();q.W=void 0}; K3y=function(q,a,w){q.updateValue("text",a);if(w){a:{switch(w){case "PREMIUM_STANDALONE":a=AEm();break a;case "PREMIUM_STANDALONE_CAIRO":a=xRl();break a}a=void 0}q.updateValue("icon",a)}a=g.V(q.F9.getAnimations());for(w=a.next();!w.done;w=a.next())w.value.cancel();q.F9.animate([{opacity:0,offset:0},{offset:.3,opacity:1},{offset:.7,opacity:1},{offset:1,opacity:0}],{duration:1400}).addEventListener("finish",function(){q.updateValue("text","");q.updateValue("icon","")})}; JA=function(q,a,w,G){G=G===void 0?240:G;g.u.call(this,{G:"button",vT:["ytp-button","ytp-share-button"],Z:{title:q.T("player_tooltip_data_title_killswitch")?"Compartir":"","data-tooltip-title":"Compartir","aria-haspopup":"true","aria-owns":w.element.id,"data-tooltip-opaque":String(g.yw(q.B()))},K:[{G:"div",N:"ytp-share-icon",ue:"{{icon}}"},{G:"div",N:"ytp-share-title",ue:"Compartir"}]});this.api=q;this.V=a;this.U=w;this.W=G;this.visible=!1;this.tooltip=this.V.gz();q.createClientVe(this.element,this, 28664);this.listen("click",this.onClick);this.C(q,"videodatachange",this.NB);this.C(q,"videoplayerreset",this.NB);this.C(q,"appresize",this.NB);this.C(q,"presentingplayerstatechange",this.NB);this.NB();this.addOnDisposeCallback(g.UT(this.tooltip,this.element))}; dym=function(q){var a=q.api.B(),w=q.api.getVideoData(),G=g.yw(a)&&g.vE(q.api)&&g.v(q.api.getPlayerStateObject(),128);a=a.W||a.disableSharing&&q.api.getPresentingPlayerType()!==2||!w.showShareButton||w.N5||G||w.J8||!1;G=q.api.mQ().getPlayerSize().width;return!!w.videoId&&G>=q.W&&!a}; TGU=function(q,a){a.name!=="InvalidStateError"&&a.name!=="AbortError"&&(a.name==="NotAllowedError"?(q.V.jj(),bk(q.U,q.element,!1)):g.mQ(a))}; sCU=function(q,a){var w=ql(),G=q.B();w={G:"div",N:"ytp-share-panel",Z:{id:ql(),role:"dialog","aria-labelledby":w},K:[{G:"div",N:"ytp-share-panel-inner-content",K:[{G:"div",N:"ytp-share-panel-title",Z:{id:w},ue:"Compartir"},{G:"a",vT:["ytp-share-panel-link","ytp-no-contextmenu"],Z:{href:"{{link}}",target:G.J,title:"Enlace de v\u00eddeo compartido","aria-label":"{{shareLinkWithUrl}}"},ue:"{{linkText}}"},{G:"label",N:"ytp-share-panel-include-playlist",K:[{G:"input",N:"ytp-share-panel-include-playlist-checkbox", Z:{type:"checkbox",checked:"true"}},"Incluir lista de reproducci\u00f3n"]},{G:"div",N:"ytp-share-panel-loading-spinner",K:[A0()]},{G:"div",N:"ytp-share-panel-service-buttons",ue:"{{buttons}}"},{G:"div",N:"ytp-share-panel-error",ue:"Se ha producido un error al recuperar la informaci\u00f3n de uso compartido. Vuelve a intentarlo m\u00e1s tarde."}]},{G:"button",vT:["ytp-share-panel-close","ytp-button"],Z:{title:"Cerrar"},K:[g.Pe()]}]};g.Gd.call(this,q,w,250);var k=this;this.moreButton=null;this.api= q;this.tooltip=a.gz();this.W=[];this.L=this.oW("ytp-share-panel-inner-content");this.closeButton=this.oW("ytp-share-panel-close");this.C(this.closeButton,"click",this.DZ);this.addOnDisposeCallback(g.UT(this.tooltip,this.closeButton));this.Y=this.oW("ytp-share-panel-include-playlist-checkbox");this.C(this.Y,"click",this.NB);this.V=this.oW("ytp-share-panel-link");this.addOnDisposeCallback(g.UT(this.tooltip,this.V));this.api.createClientVe(this.V,this,164503);this.C(this.V,"click",function(b){b.preventDefault(); k.api.logClick(k.V);var O=k.api.getVideoUrl(!0,!0,!1,!1);O=$yl(k,O);g.mE(O,k.api,b)&&k.api.zl("SHARE_CLICKED")}); this.listen("click",this.oJ);this.C(q,"videoplayerreset",this.hide);this.C(q,"fullscreentoggled",this.onFullscreenToggled);this.C(q,"onLoopRangeChange",this.WQh);this.hide()}; ZvU=function(q,a){F3f(q);for(var w=a.links||a.shareTargets,G=0,k={},b=0;b0&&!D&&!H?(M.length===2&&(M=["noreferrer"]),g.TR(T,J,d,M[0]),T=WLc()):(Q=L.join(","),HS()&&T.navigator&&T.navigator.standalone&&d&&d!="_self"?(Q=g.dp("A"),g.NO(Q,J),Q.target=d,B&&(Q.rel="noreferrer"),((F=F.attributionsrc)||F==="")&&Q.setAttribute("attributionsrc",F),F=document.createEvent("MouseEvent"), F.initMouseEvent("click",!0,!0,T,1),Q.dispatchEvent(F),T=WLc()):B?(T=g.TR(T,"",d,Q),F=g.GR(J),T&&(T.opener=null,F===""&&(F="javascript:''"),F='',F=KS(F),(J=T.document)&&J.write&&(J.write(dj(F)),J.close()))):((T=g.TR(T,J,d,Q))&&F.noopener&&(T.opener=null),T&&F.noreferrer&&(T.opener=null)));T&&(T.opener||(T.opener=window),T.focus());K.preventDefault()}}}(k)); k.Cs.addOnDisposeCallback(g.UT(q.tooltip,k.Cs.element));e==="Facebook"?q.api.createClientVe(k.Cs.element,k.Cs,164504):e==="Twitter"&&q.api.createClientVe(k.Cs.element,k.Cs,164505);q.C(k.Cs.element,"click",function(P){return function(){q.api.logClick(P.Cs.element)}}(k)); q.api.logVisibility(k.Cs.element,!0);q.W.push(k.Cs);G++}}var N=a.more||a.moreLink,Y=new g.u({G:"a",vT:["ytp-share-panel-service-button","ytp-button"],K:[{G:"span",N:"ytp-share-panel-service-button-more",K:[{G:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},K:[{G:"rect",Z:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{G:"path",Z:{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"}}]}]}],Z:{href:N,target:"_blank",title:"M\u00e1s"}});Y.listen("click",function(P){var K=N;q.api.logClick(q.moreButton.element);K=$yl(q,K);g.mE(K,q.api,P)&&q.api.zl("SHARE_CLICKED")}); Y.addOnDisposeCallback(g.UT(q.tooltip,Y.element));q.api.createClientVe(Y.element,Y,164506);q.C(Y.element,"click",function(){q.api.logClick(Y.element)}); q.api.logVisibility(Y.element,!0);q.W.push(Y);q.moreButton=Y;q.updateValue("buttons",q.W)}; $yl=function(q,a){var w={};g.yw(q.api.B())&&(g.xU(q.api,"addEmbedsConversionTrackingParams",[w]),a=g.sk(a,w));return a}; F3f=function(q){for(var a=g.V(q.W),w=a.next();!w.done;w=a.next())w=w.value,w.detach(),g.wB(w);q.W=[]}; mi=function(q){return q===void 0||q.startSec===void 0||q.endSec===void 0?!1:!0}; EuK=function(q,a){q.startSec+=a;q.endSec+=a}; JiJ=function(q){mp.call(this,q);this.U=this.V=this.isContentForward=this.X=!1;this.element.setAttribute("data-overlay-order","8");Vhy(this);this.C(this.j,"changeProductsInVideoVisibility",this.Dhe);this.C(this.j,"videodatachange",this.onVideoDataChange)}; myN=function(q){q.L&&q.EK.element.removeChild(q.L.element);q.L=void 0}; Aic=function(q,a){return a.map(function(w){var G,k;if((w=(G=g.I(w,QCm))==null?void 0:(k=G.thumbnail)==null?void 0:k.thumbnails)&&w.length!==0)return w[0].url}).filter(function(w){return w!==void 0}).map(function(w){w=new g.u({G:"img", N:"ytp-suggested-action-product-thumbnail",Z:{alt:"",src:w}});g.p(q,w);return w})}; xy_=function(q,a){q.isContentForward=a;g.kX(q.badge.element,"ytp-suggested-action-badge-content-forward",a)}; QQ=function(q){var a=q.isContentForward&&!q.cV();g.kX(q.badge.element,"ytp-suggested-action-badge-preview-collapsed",a&&q.V);g.kX(q.badge.element,"ytp-suggested-action-badge-preview-expanded",a&&q.U)}; AA=function(q,a,w){return new g.Xo(q*1E3,a*1E3,{priority:9,namespace:w})}; L3G=function(q){q.j.XC("shopping_overlay_visible");q.j.XC("shopping_overlay_preview_collapsed");q.j.XC("shopping_overlay_preview_expanded");q.j.XC("shopping_overlay_expanded")}; Vhy=function(q){q.C(q.j,g.oM("shopping_overlay_visible"),function(){q.wx(!0)}); q.C(q.j,g.IM("shopping_overlay_visible"),function(){q.wx(!1)}); q.C(q.j,g.oM("shopping_overlay_expanded"),function(){q.UK=!0;Js(q)}); q.C(q.j,g.IM("shopping_overlay_expanded"),function(){q.UK=!1;Js(q)}); q.C(q.j,g.oM("shopping_overlay_preview_collapsed"),function(){q.V=!0;QQ(q)}); q.C(q.j,g.IM("shopping_overlay_preview_collapsed"),function(){q.V=!1;QQ(q)}); q.C(q.j,g.oM("shopping_overlay_preview_expanded"),function(){q.U=!0;QQ(q)}); q.C(q.j,g.IM("shopping_overlay_preview_expanded"),function(){q.U=!1;QQ(q)})}; nuc=function(q){g.u.call(this,{G:"div",N:"ytp-shorts-title-channel",K:[{G:"a",N:"ytp-shorts-title-channel-logo",Z:{href:"{{channelLink}}",target:q.B().J,"aria-label":"{{channelLogoLabel}}"}},{G:"div",N:"ytp-shorts-title-expanded-heading",K:[{G:"div",N:"ytp-shorts-title-expanded-title",K:[{G:"a",ue:"{{expandedTitle}}",Z:{href:"{{channelTitleLink}}",target:q.B().J,tabIndex:"0"}}]}]}]});var a=this;this.api=q;this.V=this.oW("ytp-shorts-title-channel-logo");this.channelName=this.oW("ytp-shorts-title-expanded-title"); this.subscribeButton=null;q.createClientVe(this.V,this,36925);this.C(this.V,"click",function(w){a.api.logClick(a.V);g.TR(window,BGN(a));w.preventDefault()}); q.createClientVe(this.channelName,this,37220);this.C(this.channelName,"click",function(w){a.api.logClick(a.channelName);g.TR(window,BGN(a));w.preventDefault()}); rif(this);this.C(q,"videodatachange",this.NB);this.C(q,"videoplayerreset",this.NB);this.NB()}; rif=function(q){if(!q.api.B().w$){var a=q.api.getVideoData(),w=new g.wm("Suscribirme",null,"Suscrito",null,!0,!1,a.Am,a.subscribed,"channel_avatar",null,q.api,!0);q.api.createServerVe(w.element,q);var G;q.api.setTrackingParams(w.element,((G=a.subscribeButtonRenderer)==null?void 0:G.trackingParams)||null);q.C(w.element,"click",function(){q.api.logClick(w.element)}); q.subscribeButton=w;g.p(q,q.subscribeButton);q.subscribeButton.HT(q.element)}}; BGN=function(q){var a=q.api.B(),w=q.api.getVideoData();w=g.LA(a)+w.VN;if(!g.yw(a))return w;a={};g.xU(q.api,"addEmbedsConversionTrackingParams",[a]);return g.sk(w,a)}; xz=function(q){g.Gd.call(this,q,{G:"button",vT:["ytp-skip-intro-button","ytp-popup","ytp-button"],K:[{G:"div",N:"ytp-skip-intro-button-text",ue:"Saltar introducci\u00f3n"}]},100);var a=this;this.W=!1;this.V=new g.o1(function(){a.hide()},5E3); this.QE=this.Vm=NaN;g.p(this,this.V);this.X=function(){a.show()}; this.L=function(){a.hide()}; this.Y=function(){var w=a.j.getCurrentTime();w>a.Vm/1E3&&w0?{G:"svg",Z:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},K:[{G:"path",vT:["ytp-circle-arrow","ytp-svg-fill"],Z:{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"}}, {G:"text",vT:["ytp-jump-button-text","ytp-svg-fill"],Z:{x:"7.05",y:"15.05"}}]}:{G:"svg",Z:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},K:[{G:"path",vT:["ytp-circle-arrow","ytp-svg-fill"],Z:{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"}}, {G:"text",vT:["ytp-jump-button-text","ytp-svg-fill"],Z:{x:"6.5",y:"15"}}]}]});var w=this;this.j=q;this.V=a;this.U=new g.o1(function(){w.W?(w.W=!1,w.U.start()):w.element.classList.remove("ytp-jump-spin","backwards")},250); this.W=!1;(a=a>0)?this.j.createClientVe(this.element,this,36843):this.j.createClientVe(this.element,this,36844);var G=g.gZ(a?"Avanzar $SECONDS segundos. (\u2192)":"Retroceder $SECONDS segundos. (\u2190)",{SECONDS:Math.abs(this.V).toString()});this.j.T("player_tooltip_data_title_killswitch")?this.update({title:G,"data-title-no-tooltip":G,"aria-keyshortcuts":a?"\u2192":"\u2190"}):this.update({"tooltip-title":G,"data-title-no-tooltip":G,"aria-keyshortcuts":a?"\u2192":"\u2190"});this.Y=this.element.querySelector(".ytp-jump-button-text"); this.Y.textContent=Math.abs(this.V).toString();this.listen("click",this.onClick,this);Xe(q,this.element,this)}; Uyf=function(q,a){a?q.element.classList.add("ytp-jump-button-enabled"):q.element.classList.remove("ytp-jump-button-enabled");q.j.logVisibility(q.element,a);q.j.Fm()}; SM=function(q,a){Bf.call(this,q,a,"timedMarkerCueRange","Ver momentos clave");this.C(q,g.IM("timedMarkerCueRange"),this.EQ);this.C(q,"updatemarkervisibility",this.updateVideoData)}; XxK=function(q){var a,w=(a=q.j.getVideoData())==null?void 0:a.h2;if(w)for(q=q.Y.St,w=g.V(w),a=w.next();!a.done;a=w.next())if(a=q[a.value]){var G=void 0,k=void 0,b=void 0;if(((G=a.onTap)==null?void 0:(k=G.innertubeCommand)==null?void 0:(b=k.changeEngagementPanelVisibilityAction)==null?void 0:b.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return a}}; fX=function(q){var a=q.T("web_enable_pip_on_miniplayer");g.u.call(this,{G:"button",vT:["ytp-miniplayer-button","ytp-button"],Z:{title:q.T("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-keyshortcuts":"i","data-priority":"7","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},K:["{{icon}}"]});this.j=q;this.visible=!1;this.listen("click",this.onClick);this.C(q,"fullscreentoggled",this.NB);this.j.T("player_tooltip_data_title_killswitch")? this.update({title:g.jw(q,"Minirreproductor","i"),"data-title-no-tooltip":"Minirreproductor",icon:jCU(this,a)}):this.update({"tooltip-title":g.jw(q,"Minirreproductor","i"),"data-title-no-tooltip":"Minirreproductor",icon:jCU(this,a)});Xe(q,this.element,this);q.createClientVe(this.element,this,62946);this.NB()}; jCU=function(q,a){return q.j.T("delhi_modern_web_player_icons")?{G:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{G:"path",Z:{d:"M21.20 3.01C21.66 3.05 22.08 3.26 22.41 3.58C22.73 3.91 22.94 4.33 22.98 4.79L23 5V19C23.00 19.49 22.81 19.97 22.48 20.34C22.15 20.70 21.69 20.93 21.20 20.99L21 21H3L2.79 20.99C2.30 20.93 1.84 20.70 1.51 20.34C1.18 19.97 .99 19.49 1 19V13H3V19H21V5H11V3H21L21.20 3.01ZM1.29 3.29C1.10 3.48 1.00 3.73 1.00 4C1.00 4.26 1.10 4.51 1.29 4.70L5.58 9H3C2.73 9 2.48 9.10 2.29 9.29C2.10 9.48 2 9.73 2 10C2 10.26 2.10 10.51 2.29 10.70C2.48 10.89 2.73 11 3 11H9V5C9 4.73 8.89 4.48 8.70 4.29C8.51 4.10 8.26 4 8 4C7.73 4 7.48 4.10 7.29 4.29C7.10 4.48 7 4.73 7 5V7.58L2.70 3.29C2.51 3.10 2.26 3.00 2 3.00C1.73 3.00 1.48 3.10 1.29 3.29ZM19.10 11.00L19 11H12L11.89 11.00C11.66 11.02 11.45 11.13 11.29 11.29C11.13 11.45 11.02 11.66 11.00 11.89L11 12V17C10.99 17.24 11.09 17.48 11.25 17.67C11.42 17.85 11.65 17.96 11.89 17.99L12 18H19L19.10 17.99C19.34 17.96 19.57 17.85 19.74 17.67C19.90 17.48 20.00 17.24 20 17V12L19.99 11.89C19.97 11.66 19.87 11.45 19.70 11.29C19.54 11.13 19.33 11.02 19.10 11.00ZM13 16V13H18V16H13Z", fill:"white"}}]}:a?{G:"svg",Z:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 -960 960 960",width:"100%"},K:[{G:"g",Z:{transform:"translate(96, -96) scale(0.8)"},K:[{G:"path",dG:!0,Z:{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"}}]}]}:Qtf()}; Hf=function(q,a,w,G,k,b){b=b===void 0?!1:b;var O={G:"div",vT:["ytp-input-slider-section"],K:[{G:"input",N:"ytp-input-slider",Z:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};k&&O.K.unshift(k);b&&O.vT.push("ytp-vertical-slider");g.u.call(this,O);this.Y=q;this.L=a;this.S=w;this.initialValue=G;this.header=k;this.U=this.oW("ytp-input-slider");this.V=G?G:q;this.init();this.C(this.U,"input",this.W);this.C(this.U,"keydown", this.X)}; cf=function(q,a){q.V=a;q.updateValue("slidervalue",q.V);q.U.valueAsNumber=q.V;oul(q,a)}; oul=function(q,a){q.U.style.setProperty("--yt-slider-shape-gradient-percent",(a-q.Y)/(q.L-q.Y)*100+"%")}; pX=function(q){var a=q.isMuted()?0:q.getVolume();Hf.call(this,0,100,1,a,void 0,!0);this.j=q;this.F9=fn(this.y7,10,this);this.J=!1;this.C(q,"onVolumeChange",this.onVolumeChange);this.C(this.element,"wheel",this.UK)}; IYm=function(q,a){g.u.call(this,{G:"div",Z:{tabindex:"0",title:q.T("player_tooltip_data_title_killswitch")?"Volumen":"","data-tooltip-title":"Volumen","data-tooltip-offset-y":"-120"},vT:["ytp-volume-popover"]});var w=this;this.isVisible=!1;this.tooltip=a.gz();this.U=new pX(q);g.p(this,this.U);this.U.HT(this.element);this.V=new g.o1(function(){Uo(w,!1)},300); this.listen("mouseenter",function(){w.V.stop()}); this.listen("mouseleave",function(){w.V.start()}); this.listen("focus",function(){w.V.stop()}); this.C(this.U.U,"focus",function(){w.V.stop()}); this.listen("focusout",function(){w.V.start();w.element.dispatchEvent(new Event("blur"))}); this.addOnDisposeCallback(g.UT(a.gz(),this.element));g.p(this,this.V)}; Uo=function(q,a){q.element.classList.toggle("ytp-volume-popover-hovering",a);q.isVisible=a;(q=q.element.closest(".ytp-chrome-bottom"))&&q.classList.toggle("ytp-volume-popover-showing",a)}; X7=function(q,a,w){w=w===void 0?!1:w;var G=q.B().EK?{"aria-keyshortcuts":"m","aria-label":"{{aria-label}}","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-priority":"{{dataPriority}}","data-tooltip-offset-y":"{{dataTooltipOffsetY}}","data-tooltip-title":"{{tooltip-title}}",title:q.T("player_tooltip_data_title_killswitch")?"{{title}}":""}:{"aria-disabled":"true","aria-haspopup":"true"};G=q.T("delhi_modern_web_player")?{G:"div",N:"ytp-mute-button",K:[{G:"button",Z:G,vT:["ytp-volume-icon", "ytp-button"],ue:"{{icon}}"}]}:{G:"button",vT:["ytp-mute-button","ytp-button"],Z:G,K:[{G:"div",N:"ytp-volume-icon",ue:"{{icon}}"}]};g.u.call(this,G);this.j=q;this.L7=w;this.U=null;this.X=this.y7=this.J=this.S=NaN;this.f7=this.F9=null;this.L=[];this.Y=[];this.visible=!1;this.W=this.V=this.UK=null;q.T("delhi_modern_web_player")&&this.update({"data-priority":4});w=this.j.B();this.updateValue("icon",Jy());this.tooltip=a.gz();this.updateValue("dataTooltipOffsetY",0);this.W=g.lh("ytp-volume-icon",this.element); G=this.j.T("delhi_modern_web_player_icons")?{G:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{G:"path",vT:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],Z:{d:"M 11.60 2.08 L 11.48 2.14 L 3.91 6.68 C 3.02 7.21 2.28 7.97 1.77 8.87 C 1.26 9.77 1.00 10.79 1 11.83 V 12.16 L 1.01 12.56 C 1.07 13.52 1.37 14.46 1.87 15.29 C 2.38 16.12 3.08 16.81 3.91 17.31 L 11.48 21.85 C 11.63 21.94 11.80 21.99 11.98 21.99 C 12.16 22.00 12.33 21.95 12.49 21.87 C 12.64 21.78 12.77 21.65 12.86 21.50 C 12.95 21.35 13 21.17 13 21 V 3 C 12.99 2.83 12.95 2.67 12.87 2.52 C 12.80 2.37 12.68 2.25 12.54 2.16 C 12.41 2.07 12.25 2.01 12.08 2.00 C 11.92 1.98 11.75 2.01 11.60 2.08 Z", fill:"#fff"}},{G:"path",N:"ytp-svg-volume-animation-small-ripple",Z:{d:" M 15.53 7.05 C 15.35 7.22 15.25 7.45 15.24 7.70 C 15.23 7.95 15.31 8.19 15.46 8.38 L 15.53 8.46 L 15.70 8.64 C 16.09 9.06 16.39 9.55 16.61 10.08 L 16.70 10.31 C 16.90 10.85 17 11.42 17 12 L 16.99 12.24 C 16.96 12.73 16.87 13.22 16.70 13.68 L 16.61 13.91 C 16.36 14.51 15.99 15.07 15.53 15.53 C 15.35 15.72 15.25 15.97 15.26 16.23 C 15.26 16.49 15.37 16.74 15.55 16.92 C 15.73 17.11 15.98 17.21 16.24 17.22 C 16.50 17.22 16.76 17.12 16.95 16.95 C 17.6 16.29 18.11 15.52 18.46 14.67 L 18.59 14.35 C 18.82 13.71 18.95 13.03 18.99 12.34 L 19 12 C 18.99 11.19 18.86 10.39 18.59 9.64 L 18.46 9.32 C 18.15 8.57 17.72 7.89 17.18 7.3 L 16.95 7.05 L 16.87 6.98 C 16.68 6.82 16.43 6.74 16.19 6.75 C 15.94 6.77 15.71 6.87 15.53 7.05", fill:"#fff"}},{G:"path",N:"ytp-svg-volume-animation-big-ripple",Z:{d:"M18.36 4.22C18.18 4.39 18.08 4.62 18.07 4.87C18.05 5.12 18.13 5.36 18.29 5.56L18.36 5.63L18.66 5.95C19.36 6.72 19.91 7.60 20.31 8.55L20.47 8.96C20.82 9.94 21 10.96 21 11.99L20.98 12.44C20.94 13.32 20.77 14.19 20.47 15.03L20.31 15.44C19.86 16.53 19.19 17.52 18.36 18.36C18.17 18.55 18.07 18.80 18.07 19.07C18.07 19.33 18.17 19.59 18.36 19.77C18.55 19.96 18.80 20.07 19.07 20.07C19.33 20.07 19.59 19.96 19.77 19.77C20.79 18.75 21.61 17.54 22.16 16.20L22.35 15.70C22.72 14.68 22.93 13.62 22.98 12.54L23 12C22.99 10.73 22.78 9.48 22.35 8.29L22.16 7.79C21.67 6.62 20.99 5.54 20.15 4.61L19.77 4.22L19.70 4.15C19.51 3.99 19.26 3.91 19.02 3.93C18.77 3.94 18.53 4.04 18.36 4.22 Z", fill:"#fff"}}]}:{G:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{G:"defs",K:[{G:"clipPath",Z:{id:"ytp-svg-volume-animation-mask"},K:[{G:"path",Z:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{G:"path",Z:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{G:"path",N:"ytp-svg-volume-animation-mover",Z:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{G:"clipPath",Z:{id:"ytp-svg-volume-animation-slash-mask"},K:[{G:"path",N:"ytp-svg-volume-animation-mover", Z:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{G:"path",dG:!0,vT:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],Z:{"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"}},{G:"path",dG:!0,vT:["ytp-svg-fill","ytp-svg-volume-animation-hider"],Z:{"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"}}]};this.U=new g.gC(G);g.p(this,this.U);this.F9=this.U.oW("ytp-svg-volume-animation-speaker");this.f7=this.F9.getAttribute("d");this.L=g.bh("ytp-svg-volume-animation-mover",this.U.element);this.j.T("delhi_modern_web_player_icons");this.Y=g.bh("ytp-svg-volume-animation-hider",this.U.element);this.j.T("delhi_modern_web_player_icons");this.EK=new Rz;g.p(this,this.EK);this.jt=new Rz;g.p(this,this.jt);this.C(q,"appresize",this.z_);this.C(q,"onVolumeChange",this.onVolumeChange);q.T("delhi_modern_web_player")? this.listen("click",this.XN2):this.listen("click",this.L2);w.EK?(q.T("delhi_modern_web_player")&&!q.T("delhi_modern_web_player_horizontal_volume_controls")&&(this.V=new IYm(q,a),this.V.HT(this.element),g.p(this,this.V),this.C(this.W,"mouseover",this.AD),this.C(this.W,"focus",this.AD),this.C(this.W,"mouseout",this.j0),this.C(this.W,"blur",this.j0)),w=q.T("delhi_modern_web_player")?this.W:this.element,this.addOnDisposeCallback(g.UT(a.gz(),w))):uOl(this);this.message=null;q.createClientVe(this.element, this,28662);this.z_(q.mQ().getPlayerSize());this.setVolume(q.getVolume(),q.isMuted())}; thN=function(q,a){if(q.j.B().EK){var w=g.jw(q.j,"Silenciar","m"),G=g.jw(q.j,"Activar sonido","m");w=a?G:w;q.j.B().T("player_tooltip_data_title_killswitch")?q.updateValue("title",w):q.update({"tooltip-title":w,"aria-label":w});q.update({"data-title-no-tooltip":a?"Activar sonido":"Silenciar"});q.tooltip.Fm()}}; ivc=function(q,a){q.S=a;var w=q.f7;q.j.T("delhi_modern_web_player_icons")?q.U.oW("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(a+") translate(-22,-12)")):a&&(w+=a5c(vuN,zKf,a));q.F9.setAttribute("d",w)}; W3J=function(q,a){var w;a===1?w=q.j.T("delhi_modern_web_player_icons")?{G:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{G:"path",Z:{d:"M11.60 2.08L11.48 2.14L3.91 6.68C3.02 7.21 2.28 7.97 1.77 8.87C1.26 9.77 1.00 10.79 1 11.83V12.16L1.01 12.56C1.07 13.52 1.37 14.46 1.87 15.29C2.38 16.12 3.08 16.81 3.91 17.31L11.48 21.85C11.63 21.94 11.80 21.99 11.98 21.99C12.16 22.00 12.33 21.95 12.49 21.87C12.64 21.78 12.77 21.65 12.86 21.50C12.95 21.35 13 21.17 13 21V3C12.99 2.83 12.95 2.67 12.87 2.52C12.80 2.37 12.68 2.25 12.54 2.16C12.41 2.07 12.25 2.01 12.08 2.00C11.92 1.98 11.75 2.01 11.60 2.08ZM4.94 8.4V8.40L11 4.76V19.23L4.94 15.6C4.38 15.26 3.92 14.80 3.58 14.25C3.24 13.70 3.05 13.07 3.00 12.43L3 12.17V11.83C2.99 11.14 3.17 10.46 3.51 9.86C3.85 9.25 4.34 8.75 4.94 8.4ZM21.29 8.29L19 10.58L16.70 8.29L16.63 8.22C16.43 8.07 16.19 7.99 15.95 8.00C15.70 8.01 15.47 8.12 15.29 8.29C15.12 8.47 15.01 8.70 15.00 8.95C14.99 9.19 15.07 9.43 15.22 9.63L15.29 9.70L17.58 12L15.29 14.29C15.19 14.38 15.12 14.49 15.06 14.61C15.01 14.73 14.98 14.87 14.98 15.00C14.98 15.13 15.01 15.26 15.06 15.39C15.11 15.51 15.18 15.62 15.28 15.71C15.37 15.81 15.48 15.88 15.60 15.93C15.73 15.98 15.86 16.01 15.99 16.01C16.12 16.01 16.26 15.98 16.38 15.93C16.50 15.87 16.61 15.80 16.70 15.70L19 13.41L21.29 15.70L21.36 15.77C21.56 15.93 21.80 16.01 22.05 15.99C22.29 15.98 22.53 15.88 22.70 15.70C22.88 15.53 22.98 15.29 22.99 15.05C23.00 14.80 22.93 14.56 22.77 14.36L22.70 14.29L20.41 12L22.70 9.70C22.80 9.61 22.87 9.50 22.93 9.38C22.98 9.26 23.01 9.12 23.01 8.99C23.01 8.86 22.98 8.73 22.93 8.60C22.88 8.48 22.81 8.37 22.71 8.28C22.62 8.18 22.51 8.11 22.39 8.06C22.26 8.01 22.13 7.98 22.00 7.98C21.87 7.98 21.73 8.01 21.61 8.06C21.49 8.12 21.38 8.19 21.29 8.29Z", fill:"white"}}]}:Jy():w=q.U;q.y7=a;if(q.j.T("delhi_modern_web_player_icons"))q.U.oW("ytp-svg-volume-animation-small-ripple").setAttribute("transform","translate(18, 12) scale("+(1-a+") translate(-18,-12)")),q.U.oW("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(q.S-a+") translate(-22, -12)"));else{for(var G=20*a,k=0;k=3&&q.j.getPresentingPlayerType()!==2}; aFf=function(q){var a=tc(q.j.Hq());return a?q.V?a.HI():a.IE():!1}; yiK=function(q){var a={duration:null,preview:null,text:null,title:null,"tooltip-title":null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},w=q.playlist!=null&&q.playlist.HI();w=g.vE(q.j)&&(!q.V||w);var G=q.V&&g.R$(q.j),k=aFf(q),b=q.V&&q.j.getPresentingPlayerType()===5,O=g.jw(q.j,"Siguiente","SHIFT+n"),e=g.jw(q.j,"Anterior","SHIFT+p");if(b)a.title="Iniciar v\u00eddeo",a["tooltip-title"]="Iniciar v\u00eddeo";else if(q.W)a.title="Ver de nuevo",a["tooltip-title"]="Ver de nuevo";else if(w){var N= null;q.playlist&&(N=g.EC(q.playlist,q.V?uym(q.playlist):t$f(q.playlist)));if(N){if(N.videoId){var Y=q.playlist.listId;a.url=q.j.B().getVideoUrl(N.videoId,Y?Y.toString():void 0)}a.text=N.title;a.duration=N.lengthText?N.lengthText:N.lengthSeconds?g.$m(N.lengthSeconds):null;a.preview=N.Wm("mqdefault.jpg")}q.V?(a.title=O,a["tooltip-title"]=O,a["data-title-no-tooltip"]="Siguiente",a["aria-keyshortcuts"]="SHIFT+n"):(a.title=e,a["tooltip-title"]=e,a["data-title-no-tooltip"]="Anterior",a["aria-keyshortcuts"]= "SHIFT+p")}else if(G){if(e=(N=q.videoData)==null?void 0:g.Vq(N))a.url=e.La(),a.text=e.title,a.duration=e.lengthText?e.lengthText:e.lengthSeconds?g.$m(e.lengthSeconds):null,a.preview=e.Wm("mqdefault.jpg");a.title=O;a["tooltip-title"]=O;a["data-title-no-tooltip"]="Siguiente";a["aria-keyshortcuts"]="SHIFT+n"}a.disabled=!G&&!w&&!k&&!b;q.update(a);q.X=!!a.url;G||w||q.W||k||b?q.U||(q.U=g.UT(q.tooltip,q.element),q.L=q.listen("click",q.onClick,q)):q.U&&(q.U(),q.U=null,q.v5(q.L),q.L=null);q.tooltip.Fm();g.kX(q.element, "ytp-playlist-ui",q.V&&(w||q.j.T("web_hide_next_button")))}; RKj=function(q,a){return q?a?{G:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{G:"path",Z:{d:"M20 20C20.26 20 20.51 19.89 20.70 19.70C20.89 19.51 21 19.26 21 19V5C21 4.73 20.89 4.48 20.70 4.29C20.51 4.10 20.26 4 20 4C19.73 4 19.48 4.10 19.29 4.29C19.10 4.48 19 4.73 19 5V19C19 19.26 19.10 19.51 19.29 19.70C19.48 19.89 19.73 20 20 20ZM5.04 19.77L18 12L5.04 4.22C4.84 4.10 4.60 4.03 4.36 4.03C4.12 4.03 3.89 4.09 3.68 4.21C3.47 4.32 3.30 4.49 3.18 4.70C3.06 4.91 2.99 5.14 3 5.38V18.61C2.99 18.85 3.06 19.08 3.18 19.29C3.30 19.50 3.47 19.67 3.68 19.79C3.89 19.90 4.12 19.96 4.36 19.96C4.60 19.96 4.84 19.89 5.04 19.77Z", fill:"white"}}]}:Ts():a?{G:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{G:"path",Z:{d:"M4 4C3.73 4 3.48 4.10 3.29 4.29C3.10 4.48 3 4.73 3 5V19C3 19.26 3.10 19.51 3.29 19.70C3.48 19.89 3.73 20 4 20C4.26 20 4.51 19.89 4.70 19.70C4.89 19.51 5 19.26 5 19V5C5 4.73 4.89 4.48 4.70 4.29C4.51 4.10 4.26 4 4 4ZM18.95 4.23L6 12.00L18.95 19.77C19.15 19.89 19.39 19.96 19.63 19.96C19.87 19.97 20.10 19.91 20.31 19.79C20.52 19.67 20.69 19.50 20.81 19.29C20.93 19.09 21.00 18.85 21 18.61V5.38C20.99 5.14 20.93 4.91 20.81 4.70C20.69 4.50 20.52 4.33 20.31 4.21C20.10 4.09 19.87 4.03 19.63 4.03C19.39 4.04 19.15 4.10 18.95 4.23Z", fill:"white"}}]}:LBy()}; Gc_=function(q,a){g.u.call(this,{G:"div",N:"ytp-fine-scrubbing",K:[{G:"div",N:"ytp-fine-scrubbing-draggable",K:[{G:"div",N:"ytp-fine-scrubbing-thumbnails",Z:{tabindex:"0",role:"slider",type:"range","aria-label":"Haz clic o despl\u00e1zate por el panel para hacer b\u00fasquedas precisas.","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]},{G:"div",Z:{"aria-hidden":"true"},N:"ytp-fine-scrubbing-cursor"},{G:"div",N:"ytp-fine-scrubbing-seek-time", Z:{"aria-hidden":"true"},ue:"{{seekTime}}"},{G:"div",N:"ytp-fine-scrubbing-play",K:[q.T("delhi_modern_web_player_icons")?CP():Fa()],Z:{title:"Reproducir desde esta posici\u00f3n",role:"button"}},{G:"div",N:"ytp-fine-scrubbing-dismiss",K:[g.Pe()],Z:{title:"Salir de la b\u00fasqueda precisa",role:"button"}}]});var w=this;this.api=q;this.L=this.oW("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.oW("ytp-fine-scrubbing-dismiss");this.y7=this.oW("ytp-fine-scrubbing-draggable");this.playButton= this.oW("ytp-fine-scrubbing-play");this.thumbnails=[];this.U=[];this.L7=this.V=0;this.EK=void 0;this.F9=NaN;this.Tl=this.J=this.W=this.S=0;this.Y=[];this.interval=this.frameCount=0;this.X=160;this.scale=1;this.le=0;this.isEnabled=this.f7=!1;wqG(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.UT(a,this.dismissButton));this.addOnDisposeCallback(g.UT(a,this.playButton));this.jt=new g.UB(this.y7,!0);this.jt.subscribe("dragstart",this.nR,this);this.jt.subscribe("dragmove",this.Xs,this);this.jt.subscribe("dragend", this.GU,this);this.C(q,"SEEK_COMPLETE",this.jp);q.T("web_fix_fine_scrubbing_false_play")&&this.C(q,"rootnodemousedown",function(G){w.UK=G}); this.L.addEventListener("keydown",function(){}); g.p(this,this.jt);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.L,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}; wqG=function(q,a){var w=g.$m(a),G=g.gZ("Ir al momento $PROGRESS",{PROGRESS:g.$m(a,!0)});q.update({ariamin:0,ariamax:Math.floor(q.api.getDuration()),arianow:Math.floor(a),arianowtext:G,seekTime:w})}; kcU=function(q){q.F9=NaN;q.J=0;q.S=q.W}; lFV=function(q){var a=q.api.Oq();if(a){var w=90*q.scale,G=Or(a,160*q.scale);if(a=a.levels[G]){q.X=a.width;if(!q.Y.length){G=[];for(var k=lN(a,a.Za()),b=a.columns*a.rows,O=a.frameCount,e=0;e<=k;e++)for(var N=Oq.Y.length;)G= void 0,(G=q.thumbnails.pop())==null||G.dispose();for(;q.thumbnails.lengthw.length;)G=void 0,(G=q.U.pop())==null||G.dispose(); for(;q.U.length-w?-a/w*q.interval*.5:-(a+w/2)/w*q.interval}; elV=function(q){return-((q.L.offsetWidth||(q.frameCount-1)*q.X*q.scale)-q.V/2)}; bdV=function(){g.u.call(this,{G:"div",N:"ytp-fine-scrubbing-thumbnail"})}; Odc=function(){g.u.call(this,{G:"div",N:"ytp-fine-scrubbing-chapter-title",K:[{G:"div",N:"ytp-fine-scrubbing-chapter-title-content",ue:"{{chapterTitle}}"}]})}; YvK=function(q){g.u.call(this,{G:"div",N:"ytp-heat-map-chapter",K:[{G:"svg",N:"ytp-heat-map-svg",Z:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},K:[{G:"defs",K:[{G:"clipPath",Z:{id:"{{id}}"},K:[{G:"path",N:"ytp-heat-map-path",Z:{d:"",fill:"white"}}]},{G:"linearGradient",Z:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},K:[{G:"stop",Z:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{G:"stop",Z:{offset:"100%", "stop-color":"white","stop-opacity":"0"}}]}]},{G:"rect",N:"ytp-heat-map-graph",Z:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{G:"rect",N:"ytp-heat-map-hover",Z:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{G:"rect",N:"ytp-heat-map-play",Z:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{G:"path",N:"ytp-modern-heat-map",Z:{d:"",fill:"url(#ytp-heat-map-gradient-def)",height:"100%", stroke:"white","stroke-opacity":"0.7","stroke-width":"2px",width:"100%",x:"0",y:"0"}}]}]});this.api=q;this.S=this.oW("ytp-heat-map-svg");this.L=this.oW("ytp-heat-map-path");this.Y=this.oW("ytp-heat-map-graph");this.X=this.oW("ytp-heat-map-play");this.V=this.oW("ytp-heat-map-hover");this.W=this.oW("ytp-modern-heat-map");this.PN=!1;this.U=60;q=""+g.lV(this);this.update({id:q});q="url(#"+q+")";this.Y.setAttribute("clip-path",q);this.X.setAttribute("clip-path",q);this.V.setAttribute("clip-path",q)}; P8j=function(q,a){a>0&&(q.U=a,q.S.style.height=q.U+"px")}; us=function(){g.u.call(this,{G:"div",N:"ytp-chapter-hover-container",K:[{G:"div",N:"ytp-progress-bar-padding"},{G:"div",N:"ytp-progress-list",K:[{G:"div",vT:["ytp-play-progress","ytp-swatch-background-color"]},{G:"div",N:"ytp-progress-linear-live-buffer"},{G:"div",N:"ytp-load-progress"},{G:"div",N:"ytp-hover-progress"},{G:"div",N:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.U=this.oW("ytp-progress-list");this.L=this.oW("ytp-progress-linear-live-buffer"); this.Y=this.oW("ytp-ad-progress-list");this.X=this.oW("ytp-load-progress");this.S=this.oW("ytp-play-progress");this.W=this.oW("ytp-hover-progress");this.V=this.oW("ytp-chapter-hover-container")}; tA=function(q,a){g.IR(q.V,"width",a)}; KMj=function(q,a){g.IR(q.V,"margin-right",a+"px")}; d1l=function(){this.U=this.position=this.W=this.V=this.Y=this.width=NaN}; TEl=function(){g.u.call(this,{G:"div",N:"ytp-timed-marker"});this.V=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; g.zT=function(q,a){g.Gs.call(this,{G:"div",N:"ytp-progress-bar-container",Z:{"aria-disabled":"true"},K:[{G:"div",vT:["ytp-heat-map-container"],K:[{G:"div",N:"ytp-heat-map-edu"}]},{G:"div",vT:["ytp-progress-bar"],Z:{tabindex:"0",role:"slider","aria-label":"Control deslizante","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},K:[{G:"div",N:"ytp-chapters-container"},{G:"div",N:"ytp-timed-markers-container"},{G:"div",N:"ytp-clip-start-exclude"}, {G:"div",N:"ytp-clip-end-exclude"},{G:"div",N:"ytp-scrubber-container",K:[{G:"div",vT:["ytp-scrubber-button","ytp-swatch-background-color"],K:[{G:"div",N:"ytp-scrubber-pull-indicator"},{G:"img",vT:["ytp-decorated-scrubber-button"]}]}]}]},{G:"div",vT:["ytp-fine-scrubbing-container"],K:[{G:"div",N:"ytp-fine-scrubbing-edu"}]},{G:"div",N:"ytp-bound-time-left",ue:"{{boundTimeLeft}}"},{G:"div",N:"ytp-bound-time-right",ue:"{{boundTimeRight}}"},{G:"div",N:"ytp-clip-start",Z:{title:"{{clipstarttitle}}"},ue:"{{clipstarticon}}"}, {G:"div",N:"ytp-clip-end",Z:{title:"{{clipendtitle}}"},ue:"{{clipendicon}}"}]});this.api=q;this.Q0=!1;this.E3=this.ym=this.h2=this.L=this.qM=0;this.ke=null;this.tp=!1;this.le={};this.Ai={};this.clipEnd=Infinity;this.N1=this.oW("ytp-clip-end");this.C0=new g.UB(this.N1,!0);this.h8=this.oW("ytp-clip-end-exclude");this.aA=this.oW("ytp-clip-start-exclude");this.clipStart=0;this.Ck=this.oW("ytp-clip-start");this.RA=new g.UB(this.Ck,!0);this.F9=this.OA=0;this.progressBar=this.oW("ytp-progress-bar");this.yN= {};this.St={};this.BT=this.oW("ytp-chapters-container");this.Vm=this.oW("ytp-timed-markers-container");this.V=[];this.X=[];this.nu={};this.VT=null;this.f7=-1;this.uF=this.EK=0;this.rz=this.S=null;this.Th=this.oW("ytp-scrubber-button");this.y7=this.oW("ytp-decorated-scrubber-button");this.pF=this.oW("ytp-scrubber-container");this.VN=new g.Is;this.Nh=0;this.eG=new d1l;this.W=new Qc(0,0);this.Rr=null;this.J=this.Ku=!1;this.J4=null;this.UK=this.oW("ytp-heat-map-container");this.JS=this.oW("ytp-heat-map-edu"); this.Y=[];this.heatMarkersDecorations=[];this.IW=this.oW("ytp-fine-scrubbing-container");this.M9=this.oW("ytp-fine-scrubbing-edu");this.U=void 0;this.L7=this.QE=this.Tl=!1;this.tooltip=a.gz();this.addOnDisposeCallback(g.UT(this.tooltip,this.N1));g.p(this,this.C0);this.C0.subscribe("hoverstart",this.Vs,this);this.C0.subscribe("hoverend",this.rI,this);this.C(this.N1,"click",this.lz);this.addOnDisposeCallback(g.UT(this.tooltip,this.Ck));g.p(this,this.RA);this.RA.subscribe("hoverstart",this.Vs,this); this.RA.subscribe("hoverend",this.rI,this);this.C(this.Ck,"click",this.lz);$1_(this);this.C(q,"resize",this.sA);this.C(q,"presentingplayerstatechange",this.B9);this.C(q,"videodatachange",this.jR);this.C(q,"videoplayerreset",this.ZS);this.C(q,"cuerangesadded",this.um7);this.C(q,"cuerangesremoved",this.pJl);this.C(q,"onLoopRangeChange",this.ZR);this.C(q,"innertubeCommand",this.onClickCommand);this.C(q,"onRetroModeChanged",this.Z0K);this.C(q,g.oM("timedMarkerCueRange"),this.vwG);this.C(q,"updatemarkervisibility", this.Yi);this.C(q,"serverstitchedvideochange",this.WsQ);this.updateVideoData(q.getVideoData(),!0);this.ZR(q.getLoopRange());vf(this)&&!this.U&&(this.U=new Gc_(this.api,this.tooltip),q=g.RR(this.element).x||0,this.U.sA(q,this.L),this.U.HT(this.IW),g.p(this,this.U),this.C(this.U.dismissButton,"click",this.Rz),this.C(this.U.playButton,"click",this.Ll),this.C(this.U.element,"dblclick",this.Ll));this.api.createClientVe(this.UK,this,139609,!0);this.api.createClientVe(this.JS,this,140127,!0);this.api.createClientVe(this.M9, this,151179,!0);this.api.createClientVe(this.progressBar,this,38856,!0)}; $1_=function(q){if(q.V.length===0){var a=new us;q.V.push(a);g.p(q,a);a.HT(q.BT,0)}for(;q.V.length>1;)q.V.pop().dispose();tA(q.V[0],"100%");q.V[0].startTime=0;q.V[0].title=""}; sDm=function(q){var a=a===void 0?NaN:a;var w=new YvK(q.api);q.Y.push(w);g.p(q,w);w.HT(q.UK);a>=0&&(w.element.style.width=a+"px")}; FMj=function(q){for(;q.X.length;)q.X.pop().dispose()}; Zdc=function(q){var a,w,G,k,b;return(b=g.I((k=g.I((a=q.getWatchNextResponse())==null?void 0:(w=a.playerOverlays)==null?void 0:(G=w.playerOverlayRenderer)==null?void 0:G.decoratedPlayerBarRenderer,Dg))==null?void 0:k.playerBar,C8f))==null?void 0:b.chapters}; ESV=function(q){for(var a=q.V,w=[],G=0;G=O&&J<=P&&b.push(d)}N>0&&(q.UK.style.height=N+"px");O=q.Y[G];P=b;d=k;F=N;J=G===0;J=J===void 0?!1:J;P8j(O,F);K=P;T=O.U;J=J===void 0?!1:J;var Q=1E3/K.length,B=[];B.push({x:0,y:100});for(var L=0;L0&&(w=b[b.length-1])}g.is(q);e=[];a=g.V(a.heatMarkersDecorations||[]);for(k=a.next();!k.done;k=a.next())if(k=g.I(k.value,LMj))N=k.label,G=w=Y=void 0,e.push({visibleTimeRangeStartMillis:(Y=k.visibleTimeRangeStartMillis)!=null?Y:-1,visibleTimeRangeEndMillis:(w=k.visibleTimeRangeEndMillis)!=null?w:-1,decorationTimeMillis:(G=k.decorationTimeMillis)!=null?G:NaN,label:N?g.OE(N):""});q.heatMarkersDecorations=e}}; m1y=function(q,a){q.X.push(a);g.p(q,a);a.HT(q.Vm,q.Vm.children.length)}; QDl=function(q,a){a=g.V(a);for(var w=a.next();!w.done;w=a.next()){w=w.value;var G=Wf(q,w.timeRangeStartMillis/(q.W.V*1E3),DE(q)),k=q.api.T("delhi_modern_web_player")?.667:.6;g.IR(w.element,"transform","translateX("+G+"px) scaleX("+k+")")}}; VaG=function(q,a){var w=0,G=!1;a=g.V(a);for(var k=a.next();!k.done;k=a.next()){k=k.value;if(g.I(k,r_V)){k=g.I(k,r_V);var b={startTime:NaN,title:null,onActiveCommand:void 0},O=k.title;b.title=O?g.OE(O):"";O=k.timeRangeStartMillis;O!=null&&(b.startTime=O);b.onActiveCommand=k.onActiveCommand;k=b;w===0&&k.startTime!==0&&(q.V[w].startTime=0,q.V[w].title="",q.V[w].onActiveCommand=k.onActiveCommand,w++,G=!0);q.V.length<=w&&(b=new us,q.V.push(b),g.p(q,b),b.HT(q.BT,q.BT.children.length));q.V[w].startTime= k.startTime;q.V[w].title=k.title?k.title:"";q.V[w].onActiveCommand=k.onActiveCommand;q.V[w].index=G?w-1:w}w++}for(;w=0;G--)if(q.V[G].width>0){KMj(q.V[G],0);var k=Math.floor(q.V[G].width);q.V[G].width=k;tA(q.V[G],k+"px");break}q.V[w].width=0;tA(q.V[w],"0")}else w===q.V.length-1?(G=Math.floor(q.V[w].width+a),q.V[w].width=G,tA(q.V[w],G+"px")):(a=q.V[w].width+a,G=Math.round(a),a-=G,q.V[w].width=G,tA(q.V[w],G+"px"));w=0;if(q.Y.length===q.V.length)for(a=0;a< q.Y.length;a++)G=q.V[a].width,q.Y[a].element.style.width=G+"px",q.Y[a].element.style.left=w+"px",w+=G+yQ(q);q.api.T("delhi_modern_web_player")&&(q.V.length===1?q.V[0].U.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(q.V[0].U.classList.remove("ytp-progress-bar-end"),q.V[0].U.classList.add("ytp-progress-bar-start"),q.V[q.V.length-1].U.classList.add("ytp-progress-bar-end")))}; nSc=function(q,a){var w=0,G=!1,k=q.V.length,b=q.W.V*1E3;b===0&&(b=q.api.getProgressState().seekableEnd*1E3);if(b>0&&q.L>0){for(var O=q.L-yQ(q)*q.EK,e=q.uF===0?3:O*q.uF,N=g.V(q.V),Y=N.next();!Y.done;Y=N.next())Y.value.width=0;for(;w1);Y=(b===0?0:N/b*O)+q.V[w].width;if(Y>e)q.V[w].width=Y;else{q.V[w].width=0;var P=q,K=w,d=P.V[K-1];d!==void 0&&d.width>0? d.width+=Y:Kq.uF&&(q.uF=N/b),G=!0)}w++}}return G}; R3=function(q){if(q.L){var a=q.api.getProgressState(),w=q.api.getVideoData();if(!(w&&w.enableServerStitchedDai&&w.Le)||isFinite(a.current)){var G;if(((G=q.api.getVideoData())==null?0:Fe(G))&&a.airingStart&&a.airingEnd)var k=qp(q,a.airingStart,a.airingEnd);else if(q.api.getPresentingPlayerType()===2){var b,O,e;k=(w=(k=q.api.getVideoData())==null?void 0:(b=k.getPlayerResponse())==null?void 0:(O=b.playerConfig)==null?void 0:(e=O.webPlayerConfig)==null?void 0:e.skippableAdProgressBarDuration)?qp(q,a.seekableStart, w/1E3):qp(q,a.seekableStart,a.seekableEnd)}else k=qp(q,a.seekableStart,a.seekableEnd);b=AI(k,a.loaded,0);a=AI(k,a.current,0);O=q.W.U!==k.U||q.W.V!==k.V;q.W=k;gu(q,a,b);O&&Maj(q);hlm(q)}}}; qp=function(q,a,w){return SvJ(q)?new Qc(Math.max(a,q.Rr.startTimeMs/1E3),Math.min(w,q.Rr.endTimeMs/1E3)):new Qc(a,w)}; HdG=function(q,a){var w,G,k;a=g.I((w=a.getWatchNextResponse())==null?void 0:(G=w.playerOverlays)==null?void 0:(k=G.playerOverlayRenderer)==null?void 0:k.decoratedPlayerBarRenderer,Dg);if(a==null?0:a.progressColor)for(w=0;w1){w=aJ(q,a.W,!0);for(var G=0,k=0;k0&&(G+=q.V[k].width,G+=yQ(q));w=(q.V[w].startTime+(a.W-G)/q.V[w].width*((w===q.V.length-1?q.W.V*1E3:q.V[w+1].startTime)-q.V[w].startTime))/1E3||0}return w}; pqK=function(q,a){if(a<0)return"0";q=Math.floor(Math.min(a,q.api.getDuration())*1E3);return q>2147483647?"0":String(q)}; GG=function(q,a,w,G,k){a=pqK(q,a);w=pqK(q,w);q=q.progressBar.visualElement;G={seekData:{startMediaTimeMs:a,endMediaTimeMs:w,seekSource:G}};(a=g.$f())&&WC(a,q,k,G)}; U1m=function(q,a,w){if(w>=q.V.length)return!1;var G=q.L-yQ(q)*q.EK;return Math.abs(a-q.V[w].startTime/1E3)/q.W.V*G<4}; Maj=function(q){q.Th.style.removeProperty("height");for(var a=g.V(Object.keys(q.le)),w=a.next();!w.done;w=a.next())Xql(q,w.value);kL(q);gu(q,q.F9,q.OA)}; DE=function(q){var a=q.VN.x;a=g.X1(a,0,q.L);q.eG.update(a,q.L);return q.eG}; OD=function(q){return(q.J?135:90)-bR(q)}; bR=function(q){var a=48,w=q.api.B();q.api.T("delhi_modern_web_player")?a=q.api.getPlayerSize().width<=528?64:q.J?96:72:q.J?a=54:g.yw(w)&&!w.U&&(a=40);return a}; gu=function(q,a,w){q.F9=a;q.OA=w;var G=DE(q),k=q.W.V,b=e9K(q.W,q.F9),O=g.gZ("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.$m(b,!0),DURATION:g.$m(k,!0)}),e=Pf(q.V,b*1E3);e=q.V[e].title;q.update({ariamin:Math.floor(q.W.U),ariamax:Math.floor(k),arianow:Math.floor(b),arianowtext:e?e+" "+O:O});k=q.clipStart;b=q.clipEnd;q.Rr&&q.api.getPresentingPlayerType()!==2&&(k=q.Rr.startTimeMs/1E3,b=q.Rr.endTimeMs/1E3);k=AI(q.W,k,0);e=AI(q.W,b,1);O=q.api.getVideoData();b=g.X1(a,k,e);w=(O==null?0:g.T4(O))?1:g.X1(w, k,e);a=Wf(q,a,G);g.IR(q.pF,"transform","translateX("+a+"px)");q.api.T("delhi_modern_web_player")&&q.api.T("delhi_modern_web_player_cutout")&&jDl(q,a);lR(q,G,k,b,"PLAY_PROGRESS");(O==null?0:Fe(O))?(a=q.api.getProgressState().seekableEnd)&&lR(q,G,b,AI(q.W,a),"LIVE_BUFFER"):lR(q,G,k,w,"LOAD_PROGRESS");if(q.api.T("web_player_heat_map_played_bar")){var N;(N=q.Y[0])!=null&&N.X.setAttribute("width",(b*100).toFixed(2)+"%")}}; jDl=function(q,a){q.api.getPresentingPlayerType()!==1?q.BT.style.removeProperty("clip-path"):(a||(a=Wf(q,q.F9,DE(q))),q.BT.style.clipPath='path("'+(q.tp?oSU(q,8,a,q.J?50:36,0,6):oSU(q,4,a,q.J?34:24,2,3))+'")')}; oSU=function(q,a,w,G,k,b){var O=w-G/2;w+=G/2;a+=k;return"M 0 "+k+" L 0 "+(a+" L ")+(O+" "+a+" C ")+(O+b+" "+a+" "+(O+b)+" "+k+" "+O+" "+k+" L 0 ")+(k+" M ")+(w+" "+k+" L ")+(q.L+" "+k+" L ")+(q.L+" "+a+" L ")+(w+" "+a+" C ")+(w-b+" "+a+" "+(w-b)+" "+k+" "+w+" "+k)}; lR=function(q,a,w,G,k){var b=q.V.length,O=a.V-q.EK*yQ(q),e=w*O;w=aJ(q,e);var N=G*O;O=aJ(q,N);k==="HOVER_PROGRESS"&&(O=aJ(q,a.V*G,!0),N=a.V*G-IFj(q,a.V*G)*yQ(q));G=Math.max(e-uCl(q,w),0);for(e=w;e=q.V.length)return q.L;for(var w=0,G=0;G0||q.h8.clientWidth>0?(b=a.clientWidth/w,q=-1*q.aA.clientWidth/w):(b/=w,q=-1*q.V[k].element.offsetLeft/w),g.IR(a,"background-size",b+"px"),g.IR(a,"background-position-x",q+"px"))}; ef=function(q,a,w,G,k){k||q.api.B().U?a.style.width=w+"px":g.IR(a,"transform","scalex("+(G?w/G:0)+")")}; aJ=function(q,a,w){var G=0;(w===void 0?0:w)&&(a-=IFj(q,a)*yQ(q));w=g.V(q.V);for(var k=w.next();!k.done;k=w.next()){k=k.value;if(a>k.width)a-=k.width;else break;G++}return G===q.V.length?G-1:G}; Wf=function(q,a,w){var G=a*q.W.V*1E3;for(var k=-1,b=g.V(q.V),O=b.next();!O.done;O=b.next())O=O.value,G>O.startTime&&O.width>0&&k++;G=k<0?0:k;k=w.V-yQ(q)*q.EK;return a*k+yQ(q)*G+w.Y}; IFj=function(q,a){for(var w=q.V.length,G=0,k=g.V(q.V),b=k.next();!b.done;b=k.next())if(b=b.value,b.width!==0)if(a>b.width)a-=b.width,a-=yQ(q),G++;else break;return G===w?w-1:G}; g.zlc=function(q,a,w,G){var k=q.L!==w,b=q.J!==G;q.qM=a;q.L=w;q.J=G;vf(q)&&(a=q.U)!=null&&(a.scale=G?1.5:1);Maj(q);q.V.length===1&&(q.V[0].width=w||0);k&&g.is(q);q.U&&b&&vf(q)&&(q.U.isEnabled&&(w=q.J?135:90,G=w-bR(q),q.IW.style.height=w+"px",g.IR(q.UK,"transform","translateY("+-G+"px)"),g.IR(q.progressBar,"transform","translateY("+-G+"px)")),lFV(q.U))}; kL=function(q){var a=!!q.Rr&&q.api.getPresentingPlayerType()!==2,w=q.clipStart,G=q.clipEnd,k=!0,b=!0;a&&q.Rr?(w=q.Rr.startTimeMs/1E3,G=q.Rr.endTimeMs/1E3):(k=w>q.W.U,b=q.W.V>0&&Gq.F9);g.kX(q.Th,"ytp-scrubber-button-hover",w===G&&q.V.length>1);if(q.api.T("web_player_heat_map_played_bar")){var b;(b=q.Y[0])!=null&&b.V.setAttribute("width",(a.U*100).toFixed(2)+"%")}}}; Xql=function(q,a){var w=q.le[a];a=q.Ai[a];var G=DE(q),k=AI(q.W,w.start/1E3,0),b=VRV(w,q.J)/G.width;var O=AI(q.W,w.end/1E3,1);b!==Number.POSITIVE_INFINITY&&(k=g.X1(k,0,O-b));O=Math.min(O,k+b);w.color&&(a.style.background=w.color);w=k;a.style.left=Math.max(w*G.V+G.Y,0)+"px";ef(q,a,g.X1((O-w)*G.V+G.Y,0,G.width),G.width,!0)}; idK=function(q,a){var w=a.getId();q.le[w]===a&&(g.Cn(q.Ai[w]),delete q.le[w],delete q.Ai[w])}; vf=function(q){var a=g.Zg(q.api.B())&&(q.api.T("web_shorts_pip")||q.api.T("web_watch_pip")),w;return!((w=q.api.getVideoData())==null?0:w.isLivePlayback)&&!q.api.isMinimized()&&!q.api.isInline()&&(!q.api.zn()||!a)}; Np=function(q){q.U&&(q.U.disable(),q.h2=0,q.UK.style.removeProperty("transform"),q.progressBar.style.removeProperty("transform"),q.IW.style.removeProperty("height"),q.element.parentElement&&q.element.parentElement.style.removeProperty("height"))}; WMJ=function(q,a){var w=a/OD(q)*bR(q);g.IR(q.progressBar,"transform","translateY("+-a+"px)");g.IR(q.UK,"transform","translateY("+-a+"px)");g.IR(q.IW,"transform","translateY("+w+"px)");q.IW.style.height=a+w+"px";q.element.parentElement&&(q.element.parentElement.style.height=bR(q)-w+"px")}; D1K=function(q,a){a?q.S||(q.element.removeAttribute("aria-disabled"),q.S=new g.UB(q.progressBar,!0),q.api.T("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&q.S.subscribe("hoverstart",q.t1t,q),q.S.subscribe("hovermove",q.egh,q),q.S.subscribe("hoverend",q.EFl,q),q.S.subscribe("dragstart",q.p5K,q),q.S.subscribe("dragmove",q.X59,q),q.S.subscribe("dragend",q.TG9,q),q.api&&q.api.T("delhi_modern_web_player")&&q.api.T("delhi_modern_web_player_cutout")&&(q.rz=new g.UB(q.progressBar, !0),q.rz.subscribe("hoverstart",function(){q.tp=!0;jDl(q)},q),q.rz.subscribe("hoverend",function(){q.tp=!1; jDl(q)},q)),q.J4=q.listen("keydown",q.H0)):q.S&&(q.element.setAttribute("aria-disabled","true"),q.v5(q.J4),q.S.cancel(),q.S.dispose(),q.S=null)}; yQ=function(q){return q.api.T("delhi_modern_web_player")?4:q.J?3:2}; SvJ=function(q){var a;return!((a=q.Rr)==null||!a.postId)&&q.api.getPresentingPlayerType()!==2}; YL=function(q,a){g.u.call(this,{G:"button",vT:["ytp-remote-button","ytp-button"],Z:{title:q.T("player_tooltip_data_title_killswitch")?"Ver en la televisi\u00f3n":"","data-tooltip-title":"Ver en la televisi\u00f3n","aria-haspopup":"true","data-priority":"10"},ue:"{{icon}}"});this.j=q;this.Wq=a;this.V=null;this.C(q,"onMdxReceiversChange",this.NB);this.C(q,"presentingplayerstatechange",this.NB);this.C(q,"appresize",this.NB);q.createClientVe(this.element,this,139118);this.NB();this.listen("click",this.U, this);Xe(q,this.element,this)}; Pj=function(q,a){g.u.call(this,{G:"button",vT:["ytp-button","ytp-settings-button"],Z:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":ql(),title:q.T("player_tooltip_data_title_killswitch")?"Configuraci\u00f3n":"","data-tooltip-title":"Configuraci\u00f3n","data-tooltip-target-id":"ytp-settings-button"},K:[q.T("delhi_modern_web_player_icons")?{G:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{G:"path",Z:{d:"M12.84 1H11.15C10.72 .99 10.30 1.14 9.95 1.40C9.60 1.66 9.35 2.02 9.23 2.44L9.19 2.61C9.11 3.00 8.96 3.38 8.73 3.71C8.51 4.04 8.22 4.33 7.89 4.55L7.75 4.64C7.37 4.85 6.96 4.98 6.53 5.02C6.11 5.06 5.68 5.01 5.27 4.87C4.86 4.73 4.42 4.73 4.00 4.86C3.59 5.00 3.23 5.26 2.99 5.62L2.89 5.77L2.05 7.23C1.82 7.63 1.73 8.10 1.81 8.55C1.88 9.01 2.12 9.43 2.47 9.73L2.58 9.84C3.15 10.39 3.50 11.15 3.50 12L3.49 12.16C3.47 12.56 3.37 12.95 3.19 13.31C3.01 13.67 2.77 13.99 2.47 14.26C2.12 14.56 1.88 14.98 1.81 15.43C1.73 15.89 1.82 16.36 2.05 16.76L2.89 18.22L2.99 18.37C3.24 18.73 3.59 18.99 4.01 19.13C4.42 19.26 4.86 19.26 5.27 19.12L5.42 19.07C5.81 18.96 6.21 18.93 6.61 18.98C7.01 19.03 7.40 19.15 7.75 19.36L7.89 19.44C8.22 19.66 8.51 19.95 8.73 20.28C8.96 20.61 9.11 20.99 9.19 21.38C9.28 21.84 9.52 22.24 9.88 22.54C10.24 22.83 10.69 23.00 11.15 23H12.84C13.30 23.00 13.75 22.83 14.11 22.54C14.47 22.24 14.71 21.84 14.80 21.38C14.89 20.96 15.06 20.56 15.31 20.21C15.55 19.86 15.88 19.57 16.25 19.36L16.39 19.28C16.75 19.10 17.14 18.99 17.54 18.96C17.94 18.94 18.34 18.99 18.72 19.12L18.89 19.17C19.31 19.27 19.75 19.24 20.15 19.07C20.55 18.90 20.88 18.60 21.10 18.23L21.95 16.76C22.18 16.36 22.26 15.89 22.19 15.43C22.11 14.98 21.88 14.56 21.53 14.26C21.23 13.99 20.98 13.67 20.80 13.31C20.63 12.95 20.52 12.56 20.50 12.16L20.50 12C20.50 11.57 20.59 11.14 20.77 10.75C20.94 10.36 21.20 10.01 21.53 9.73C21.88 9.43 22.11 9.01 22.19 8.55C22.26 8.10 22.18 7.63 21.95 7.23L21.10 5.76C20.88 5.39 20.55 5.09 20.15 4.92C19.76 4.75 19.31 4.72 18.89 4.82L18.72 4.87C18.34 5.00 17.94 5.05 17.54 5.03C17.14 5.00 16.75 4.89 16.4 4.71L16.25 4.63C15.88 4.42 15.56 4.13 15.31 3.78C15.06 3.43 14.89 3.03 14.80 2.61C14.71 2.15 14.47 1.74 14.11 1.45C13.75 1.16 13.30 .99 12.84 1ZM11.15 3H12.84C12.98 3.70 13.26 4.36 13.68 4.94C14.09 5.52 14.63 6.01 15.25 6.37C15.87 6.72 16.55 6.94 17.26 7.01C17.97 7.08 18.69 6.99 19.37 6.76L20.21 8.23C19.67 8.69 19.24 9.27 18.94 9.92C18.65 10.57 18.50 11.28 18.5 12C18.50 12.71 18.65 13.42 18.95 14.07C19.24 14.72 19.67 15.29 20.21 15.76L19.37 17.23C18.69 16.99 17.97 16.91 17.26 16.98C16.55 17.05 15.86 17.27 15.25 17.63C14.63 17.98 14.09 18.47 13.68 19.05C13.26 19.63 12.98 20.29 12.84 21H11.15C11.01 20.29 10.73 19.63 10.31 19.05C9.90 18.47 9.36 17.98 8.75 17.62C8.13 17.27 7.44 17.05 6.73 16.98C6.02 16.91 5.30 16.99 4.62 17.23L3.78 15.76C4.32 15.29 4.75 14.71 5.05 14.06C5.34 13.41 5.49 12.71 5.5 12C5.50 11.28 5.34 10.57 5.05 9.92C4.75 9.27 4.32 8.69 3.78 8.23L4.62 6.76C5.30 7.00 6.02 7.08 6.73 7.01C7.44 6.94 8.13 6.72 8.75 6.37C9.36 6.01 9.90 5.52 10.31 4.94C10.73 4.36 11.01 3.70 11.15 3ZM12.00 8C10.94 8 9.92 8.42 9.17 9.17C8.42 9.92 8.00 10.93 8.00 12C8.00 13.06 8.42 14.07 9.17 14.82C9.92 15.57 10.94 16 12.00 16C13.06 16 14.08 15.57 14.83 14.82C15.58 14.07 16.00 13.06 16.00 12C16.00 10.93 15.58 9.92 14.83 9.17C14.08 8.42 13.06 8 12.00 8ZM12.00 10H12L12.20 10.01C12.69 10.06 13.15 10.29 13.48 10.65C13.81 11.02 14.00 11.50 14 12L13.99 12.20C13.95 12.58 13.80 12.95 13.55 13.25C13.31 13.55 12.98 13.78 12.62 13.90C12.25 14.02 11.85 14.03 11.48 13.93C11.11 13.83 10.77 13.62 10.51 13.34C10.25 13.05 10.08 12.69 10.02 12.31C9.96 11.93 10.01 11.54 10.17 11.18C10.32 10.83 10.58 10.53 10.91 10.32C11.23 10.11 11.61 10.00 12 10", fill:"white"}}]}:g.EE()]});this.j=q;this.Wq=a;this.U=!0;this.listen("click",this.W);this.C(q,"onPlaybackQualityChange",this.updateBadge);this.C(q,"videodatachange",this.updateBadge);this.C(q,"webglsettingschanged",this.updateBadge);this.C(q,"appresize",this.V);Xe(q,this.element,this);this.j.createClientVe(this.element,this,28663);this.updateBadge();this.V(q.mQ().getPlayerSize())}; Rlm=function(q,a){q.U=!!a;q.V(q.j.mQ().getPlayerSize())}; KE=function(q,a){EI.call(this,"Anotaciones",g.Lm.P2);this.j=q;this.Wq=a;this.V=!1;q.T("web_settings_menu_icons")&&(a=q.T("delhi_modern_web_player_icons")?{G:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{G:"path",Z:{d:"M9.65 6.00L9.5 6H2.5L2.34 6.00C1.97 6.04 1.63 6.21 1.38 6.49C1.13 6.77 1.00 7.12 1 7.5V13.5L1.00 13.65C1.04 14.02 1.21 14.36 1.49 14.61C1.77 14.86 2.12 15 2.5 15H4.5L3.81 17.75C3.77 17.89 3.77 18.03 3.79 18.17C3.82 18.31 3.87 18.45 3.95 18.56C4.03 18.68 4.14 18.78 4.26 18.85C4.38 18.92 4.51 18.97 4.66 18.99L4.78 19H8.55L8.72 18.98C8.88 18.95 9.04 18.89 9.17 18.79C9.30 18.68 9.40 18.55 9.47 18.40L9.52 18.24L10.62 13.96C10.84 13.11 10.96 12.24 10.99 11.36L11 10.98V7.5C11 7.12 10.86 6.77 10.61 6.49C10.36 6.21 10.02 6.04 9.65 6.00ZM21.65 6.00L21.5 6H14.5L14.34 6.00C13.97 6.04 13.63 6.21 13.38 6.49C13.13 6.77 13 7.12 13 7.5V13.5L13.00 13.65C13.04 14.02 13.21 14.36 13.49 14.61C13.77 14.86 14.12 15 14.5 15H16.5L15.81 17.75C15.77 17.89 15.77 18.03 15.79 18.17C15.82 18.31 15.87 18.44 15.95 18.56C16.03 18.68 16.14 18.78 16.26 18.85C16.38 18.92 16.51 18.97 16.66 18.99L16.78 19H20.55L20.72 18.98C20.88 18.95 21.04 18.89 21.17 18.79C21.30 18.68 21.40 18.55 21.47 18.40L21.52 18.24L22.62 13.96C22.84 13.11 22.96 12.24 22.99 11.36L23 10.98V7.5C23 7.12 22.86 6.77 22.61 6.49C22.36 6.21 22.02 6.04 21.65 6.00ZM3 13V8H9V10.98C9.00 11.71 8.91 12.44 8.76 13.16L8.68 13.47L7.78 17H6.06L6.44 15.48L7.06 13H3ZM15 13V8H21V10.98C21 11.71 20.91 12.44 20.76 13.16L20.68 13.47L19.78 17H18.06L18.44 15.48L19.06 13H15Z", fill:"white"}}]}:{G:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{G:"path",Z:{d:"M17.5,7c1.93,0,3.5,1.57,3.5,3.5c0,1-0.53,4.5-0.85,6.5h-2.02l0.24-1.89l0.14-1.09l-1.1-0.03C15.5,13.94,14,12.4,14,10.5 C14,8.57,15.57,7,17.5,7 M6.5,7C8.43,7,10,8.57,10,10.5c0,1-0.53,4.5-0.85,6.5H7.13l0.24-1.89l0.14-1.09l-1.1-0.03 C4.5,13.94,3,12.4,3,10.5C3,8.57,4.57,7,6.5,7 M17.5,6C15.01,6,13,8.01,13,10.5c0,2.44,1.95,4.42,4.38,4.49L17,18h4c0,0,1-6,1-7.5 C22,8.01,19.99,6,17.5,6L17.5,6z M6.5,6C4.01,6,2,8.01,2,10.5c0,2.44,1.95,4.42,4.38,4.49L6,18h4c0,0,1-6,1-7.5 C11,8.01,8.99,6,6.5,6L6.5,6z", fill:"white"}}]},this.setIcon(a));this.C(q,"videodatachange",this.NB);this.C(q,"onApiChange",this.NB);this.subscribe("select",this.onSelect,this);this.NB()}; du=function(q,a){g.HP.call(this,"Pista de audio",g.Lm.AUDIO,q,a);this.j=q;this.tracks={};g.gU(this.element,"ytp-audio-menu-item");this.countLabel=new g.u({G:"div",K:[{G:"span",ue:"Pista de audio"},{G:"span",N:"ytp-menuitem-label-count",ue:"{{content}}"}]});q.T("web_settings_menu_icons")&&(a=q.T("delhi_modern_web_player_icons")?{G:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{G:"path",Z:{d:"M19.4 .2C19.29 .27 19.20 .37 19.13 .49C19.07 .60 19.02 .72 19.01 .85C18.99 .98 18.99 1.12 19.03 1.24C19.06 1.37 19.12 1.49 19.2 1.6L20.8 .4C20.64 .18 20.40 .04 20.14 .01C19.87 -0.02 19.61 .04 19.4 .2ZM20.8 .4L20 1L19.2 1.59C20.37 3.16 21.00 5.06 21.00 7.01C20.99 8.97 20.35 10.87 19.17 12.42C19.01 12.64 18.94 12.90 18.98 13.16C19.02 13.43 19.16 13.66 19.37 13.83C19.58 13.99 19.84 14.05 20.11 14.02C20.37 13.98 20.61 13.84 20.77 13.63C22.21 11.73 22.99 9.41 23 7.02C23.00 4.63 22.23 2.31 20.8 .4ZM10 2C8.67 2 7.40 2.52 6.46 3.46C5.52 4.40 5 5.67 5 7C5 8.32 5.52 9.59 6.46 10.53C7.40 11.47 8.67 12 10 12C11.32 12 12.59 11.47 13.53 10.53C14.47 9.59 15 8.32 15 7C15 5.67 14.47 4.40 13.53 3.46C12.59 2.52 11.32 2 10 2ZM16.17 2.29C15.97 2.48 15.86 2.73 15.86 2.99C15.85 3.26 15.95 3.51 16.14 3.71C16.98 4.58 17.44 5.68 17.49 6.80L17.5 7.02C17.49 8.22 17.01 9.40 16.10 10.32C15.92 10.51 15.83 10.77 15.83 11.03C15.84 11.29 15.95 11.53 16.13 11.71C16.32 11.90 16.57 12.00 16.83 12.00C17.09 12.00 17.34 11.90 17.53 11.72C18.78 10.44 19.49 8.77 19.5 7.03L19.49 6.71C19.42 5.09 18.74 3.53 17.58 2.32C17.49 2.23 17.38 2.15 17.26 2.10C17.14 2.05 17.01 2.02 16.88 2.01C16.75 2.01 16.62 2.03 16.49 2.08C16.37 2.13 16.26 2.20 16.17 2.29ZM10 4C10.39 4 10.78 4.07 11.14 4.22C11.51 4.37 11.84 4.60 12.12 4.87C12.39 5.15 12.62 5.48 12.77 5.85C12.92 6.21 13 6.60 13 7C13 7.39 12.92 7.78 12.77 8.14C12.62 8.51 12.39 8.84 12.12 9.12C11.84 9.39 11.51 9.62 11.14 9.77C10.78 9.92 10.39 10 10 10C9.20 10 8.44 9.68 7.87 9.12C7.31 8.55 7 7.79 7 7C7 6.20 7.31 5.44 7.87 4.87C8.44 4.31 9.20 4 10 4ZM10.39 13.01L10 13C8.01 12.99 6.10 13.73 4.63 15.06L4.34 15.34C3.60 16.08 3.01 16.96 2.60 17.93C2.20 18.90 1.99 19.94 2 21C2 21.26 2.10 21.51 2.29 21.70C2.48 21.89 2.73 22 3 22C3.26 22 3.51 21.89 3.70 21.70C3.89 21.51 4 21.26 4 21C4.00 19.40 4.63 17.88 5.75 16.75L5.97 16.55C7.07 15.55 8.51 15 10 15L10.29 15.00C11.78 15.08 13.18 15.70 14.24 16.75L14.44 16.97C15.44 18.07 16 19.51 16 21C16 21.26 16.10 21.51 16.29 21.70C16.48 21.89 16.73 22 17 22C17.26 22 17.51 21.89 17.70 21.70C17.89 21.51 18 21.26 18 21C18.00 19.01 17.26 17.10 15.93 15.63L15.65 15.34C14.25 13.93 12.37 13.10 10.39 13.01Z", fill:"white"}}]}:mRc(),this.setIcon(a));g.p(this,this.countLabel);g.lk(this,this.countLabel);this.C(q,"videodatachange",this.NB);this.C(q,"onPlaybackAudioChange",this.NB);this.NB()}; y_c=function(q,a){g.e1.call(this,g.Ns({"aria-haspopup":"true"},["ytp-audio-menu-item"]),g.Lm.zq);this.j=q;this.Wq=a;g.gU(this.element,"ytp-audio-menu-item");this.V=new g.As(q,void 0,"Audio");this.countLabel=new g.u({G:"div",K:[{G:"span",ue:"Audio"},{G:"span",N:"ytp-menuitem-label-count",ue:"{{content}}"}]});q.T("web_settings_menu_icons")&&this.setIcon({G:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{G:"path",Z:{d:"M17.5,12c0,2.14-1.5,3.92-3.5,4.38v-1.04c1.44-0.43,2.5-1.76,2.5-3.34c0-1.58-1.06-2.9-2.5-3.34V7.62 C16,8.08,17.5,9.86,17.5,12z M12,4.07v15.86L6.16,15H3V9h3.16L12,4.07z M11,6.22L6.52,10H4v4h2.52L11,17.78V6.22z M21,12 c0,4.08-3.05,7.44-7,7.93v-1.01c3.39-0.49,6-3.4,6-6.92s-2.61-6.43-6-6.92V4.07C17.95,4.56,21,7.92,21,12z", fill:"white"}}]});this.C(q,"settingsMenuInitialized",this.Bn);this.C(q,"videodatachange",this.Bn);g.p(this,this.countLabel);g.lk(this,this.countLabel);this.Wq.Qa(this);this.listen("keydown",this.RJ);this.listen("click",this.open)}; TG=function(q,a){EI.call(this,"Reproducci\u00f3n autom\u00e1tica",g.Lm.ZF);this.j=q;this.Wq=a;this.V=!1;this.W=[];this.C(q,"presentingplayerstatechange",this.U);this.subscribe("select",this.onSelect,this);q.createClientVe(this.element,this,113682);this.U()}; qGy=function(q,a){g.e1.call(this,g.Ns({"aria-haspopup":"false"}),0,"M\u00e1s opciones");this.j=q;this.Wq=a;this.C(this.element,"click",this.onClick);this.Wq.Qa(this)}; gal=function(q,a){var w;g.Zg(q.B())&&(w={G:"div",N:"ytp-panel-footer-content",K:[{G:"span",ue:"Ajusta la calidad de descarga desde tu "},{G:"a",N:"ytp-panel-footer-content-link",ue:"Configuraci\u00f3n",Z:{href:"/account_downloads"}}]});g.HP.call(this,"Calidad",g.Lm.bZ,q,a,void 0,void 0,w);this.j=q;this.y7={};this.S={};this.Y={};this.jt=new Set;this.V=this.L=!1;this.X="unknown";this.F9="";this.UK=new g.c0;g.p(this,this.UK);this.L=this.j.T("web_player_use_new_api_for_quality_pullback");this.V=this.j.T("web_player_enable_premium_hbr_playback_cap"); q.T("web_settings_menu_icons")&&(a=q.T("delhi_modern_web_player_icons")?{G:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{G:"path",Z:{d:"M9 3C8.11 2.99 7.25 3.29 6.54 3.83C5.84 4.38 5.34 5.14 5.12 6H3C2.73 6 2.48 6.10 2.29 6.29C2.10 6.48 2 6.73 2 7C2 7.26 2.10 7.51 2.29 7.70C2.48 7.89 2.73 8 3 8H5.12C5.34 8.85 5.84 9.61 6.55 10.16C7.25 10.70 8.11 10.99 9 10.99C9.88 10.99 10.74 10.70 11.44 10.16C12.15 9.61 12.65 8.85 12.87 8H21C21.26 8 21.51 7.89 21.70 7.70C21.89 7.51 22 7.26 22 7C22 6.73 21.89 6.48 21.70 6.29C21.51 6.10 21.26 6 21 6H12.87C12.65 5.14 12.15 4.38 11.45 3.83C10.74 3.29 9.88 2.99 9 3ZM9 5C9.53 5 10.03 5.21 10.41 5.58C10.78 5.96 11 6.46 11 7C11 7.53 10.78 8.03 10.41 8.41C10.03 8.78 9.53 9 9 9C8.46 9 7.96 8.78 7.58 8.41C7.21 8.03 7 7.53 7 7C7 6.46 7.21 5.96 7.58 5.58C7.96 5.21 8.46 5 9 5ZM15 13C14.11 12.99 13.25 13.29 12.54 13.83C11.84 14.38 11.34 15.14 11.12 16H3C2.73 16 2.48 16.10 2.29 16.29C2.10 16.48 2 16.73 2 17C2 17.26 2.10 17.51 2.29 17.70C2.48 17.89 2.73 18 3 18H11.12C11.34 18.85 11.84 19.61 12.55 20.16C13.25 20.70 14.11 20.99 15 20.99C15.88 20.99 16.74 20.70 17.44 20.16C18.15 19.61 18.65 18.85 18.87 18H21C21.26 18 21.51 17.89 21.70 17.70C21.89 17.51 22 17.26 22 17C22 16.73 21.89 16.48 21.70 16.29C21.51 16.10 21.26 16 21 16H18.87C18.65 15.14 18.15 14.38 17.45 13.83C16.74 13.29 15.88 12.99 15 13ZM15 15C15.53 15 16.03 15.21 16.41 15.58C16.78 15.96 17 16.46 17 17C17 17.53 16.78 18.03 16.41 18.41C16.03 18.78 15.53 19 15 19C14.46 19 13.96 18.78 13.58 18.41C13.21 18.03 13 17.53 13 17C13 16.46 13.21 15.96 13.58 15.58C13.96 15.21 14.46 15 15 15Z", fill:"white"}}]}:{G:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{G:"path",Z:{d:"M15,17h6v1h-6V17z M11,17H3v1h8v2h1v-2v-1v-2h-1V17z M14,8h1V6V5V3h-1v2H3v1h11V8z M18,5v1h3V5H18z M6,14h1v-2v-1V9H6v2H3v1 h3V14z M10,12h11v-1H10V12z",fill:"white"}}]},this.setIcon(a));g.gU(this.U.element,"ytp-quality-menu");this.C(q,"videodatachange",this.hP);this.C(q,"videoplayerreset",this.hP);this.C(q,"onPlaybackQualityChange",this.sX);this.hP();q.createClientVe(this.element,this,137721)}; wuG=function(q,a,w){var G=q.y7[a],k=g.SG[a];return arG(q,G?G.qualityLabel:k?k+"p":"Autom\u00e1tica",a,w)}; GqN=function(q,a,w,G,k){var b=(a=q.V?q.Y[a]:q.S[a])&&a.quality,O=a&&a.qualityLabel;O=O?O:"Autom\u00e1tica";G&&(O="("+O);q=arG(q,O,b||"",k);G&&q.K.push(")");(G=(G=a&&a.paygatedQualityDetails)&&G.paygatedIndicatorText)&&w&&q.K.push({G:"div",N:"ytp-premium-label",ue:G});return q}; arG=function(q,a,w,G){a={G:"span",vT:G,K:[a]};var k;G="ytp-swatch-color";if(q.L||q.V)G="ytp-swatch-color-white";w==="highres"?k="8K":w==="hd2880"?k="5K":w==="hd2160"?k="4K":w.indexOf("hd")===0&&w!=="hd720"&&(k="HD");k&&(a.K.push(" "),a.K.push({G:"sup",N:G,ue:k}));return a}; $L=function(q){Hf.call(this,q.getAvailablePlaybackRates()[0],q.getAvailablePlaybackRates()[q.getAvailablePlaybackRates().length-1],.05,q.getPlaybackRate(),{G:"div",N:"ytp-speedslider-indicator-container",K:[{G:"div",N:"ytp-speedslider-badge"},{G:"p",N:"ytp-speedslider-text"}]});this.j=q;this.F9=fn(this.y7,50,this);g.gU(this.U,"ytp-speedslider");this.J=this.oW("ytp-speedslider-text");this.UK=this.oW("ytp-speedslider-badge");kqN(this);this.C(this.U,"change",this.jt)}; kqN=function(q){q.J.textContent=q.V.toFixed(2)+"x";var a=q.V>2&&q.j.T("enable_web_premium_varispeed");q.UK.classList.toggle("ytp-speedslider-premium-badge",a);q.UK.setAttribute("aria-label",a?"Premium":"")}; sD=function(q,a,w,G,k,b,O){g.u.call(this,{G:"div",N:"ytp-slider-section",Z:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},K:[{G:"div",N:"ytp-slider",K:[{G:"div",N:"ytp-slider-handle"}]}]});this.S=q;this.J=a;this.U=w;this.W=G;this.F9=k;this.f7=b;this.range=this.W-this.U;this.EK=this.oW("ytp-slider-section");this.Y=this.oW("ytp-slider");this.UK=this.oW("ytp-slider-handle");this.X=new g.UB(this.Y, !0);this.V=O?O:w;g.p(this,this.X);this.X.subscribe("dragmove",this.v0,this);this.C(this.element,"keydown",this.LG);this.C(this.element,"wheel",this.iZ);this.init()}; FG=function(q){sD.call(this,.05,.05,q.getAvailablePlaybackRates()[0],q.getAvailablePlaybackRates()[q.getAvailablePlaybackRates().length-1],150,20,q.getPlaybackRate());this.j=q;this.L=g.dp("P");this.jt=fn(this.y7,50,this);g.gU(this.Y,"ytp-speedslider");g.gU(this.L,"ytp-speedslider-text");q=this.L;var a=this.Y;a.parentNode&&a.parentNode.insertBefore(q,a.nextSibling);buV(this);this.C(this.j,"onPlaybackRateChange",this.updateValues)}; buV=function(q){q.L.textContent=Ouc(q,q.V)+"x"}; Ouc=function(q,a){q=Number(g.X1(a,q.U,q.W).toFixed(2));a=Math.floor((q+.001)*100%5+2E-15);var w=q;a!==0&&(w=q-a*.01);return Number(w.toFixed(2))}; lrl=function(q){g.Gs.call(this,{G:"div",N:"ytp-speedslider-component"});q.T("web_settings_use_input_slider")?this.V=new $L(q):this.V=new FG(q);g.p(this,this.V);this.element.appendChild(this.V.element)}; eyV=function(q){var a=new lrl(q);QM.call(this,q,a,"Personalizada");g.p(this,a)}; YGl=function(q,a){var w=new eyV(q);g.HP.call(this,"Velocidad de reproducci\u00f3n",g.Lm.CG,q,a,CE(q)?void 0:"Personalizada",CE(q)?void 0:function(){g.BP(a,w)}); var G=this;this.Y=!1;g.p(this,w);this.S=new $L(q);g.p(this,this.S);if(q.T("web_settings_menu_icons")){var k=q.T("delhi_modern_web_player_icons")?{G:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{G:"path",Z:{d:"M9.80 1.22C8.59 1.46 7.44 1.91 6.38 2.54L5.93 2.82L5.85 2.88C5.66 3.04 5.53 3.26 5.49 3.51C5.45 3.75 5.51 4.00 5.65 4.21C5.78 4.41 5.99 4.56 6.23 4.62C6.47 4.69 6.72 4.66 6.94 4.54L7.03 4.49L7.40 4.26C8.27 3.74 9.21 3.38 10.20 3.18C10.46 3.12 10.69 2.97 10.84 2.75C10.98 2.53 11.04 2.26 10.98 2.00C10.93 1.74 10.77 1.51 10.55 1.36C10.33 1.22 10.06 1.16 9.80 1.22M13.02 2.00C12.99 2.13 12.99 2.26 13.02 2.39C13.04 2.52 13.09 2.64 13.16 2.75C13.24 2.86 13.33 2.95 13.44 3.03C13.55 3.10 13.67 3.15 13.80 3.18L14.20 1.22C14.07 1.19 13.94 1.19 13.81 1.22C13.68 1.24 13.56 1.29 13.45 1.36C13.34 1.44 13.24 1.53 13.17 1.64C13.09 1.75 13.04 1.87 13.02 2.00ZM14.20 1.22L14.00 2.20L13.80 3.18C15.77 3.58 17.54 4.63 18.85 6.15C20.15 7.68 20.90 9.60 20.99 11.61L21.00 12.00C21.00 14.07 20.28 16.08 18.96 17.69C17.65 19.30 15.82 20.40 13.79 20.82L13.99 21.8L14.19 22.78C16.59 22.29 18.77 21.01 20.36 19.14C21.96 17.27 22.88 14.93 22.99 12.47L23.00 12.00C23.00 9.46 22.12 7.00 20.52 5.04C18.91 3.08 16.68 1.73 14.20 1.22ZM2.88 5.85L2.82 5.93L2.54 6.38C1.91 7.44 1.46 8.59 1.22 9.80C1.19 9.93 1.19 10.06 1.21 10.19C1.24 10.32 1.29 10.44 1.36 10.55C1.51 10.77 1.74 10.93 2 10.98C2.25 11.04 2.53 10.98 2.75 10.84C2.97 10.69 3.12 10.46 3.18 10.20C3.38 9.21 3.74 8.27 4.26 7.40L4.49 7.03L4.54 6.95C4.65 6.73 4.68 6.47 4.62 6.23C4.56 5.99 4.41 5.78 4.20 5.65C4.00 5.51 3.75 5.46 3.50 5.49C3.26 5.53 3.03 5.66 2.88 5.85ZM17 12.00L9 7.2V16.8L17 12.00ZM2 13.01C1.87 13.04 1.74 13.09 1.64 13.16C1.53 13.23 1.43 13.33 1.36 13.44C1.29 13.55 1.24 13.67 1.21 13.80C1.19 13.93 1.19 14.06 1.22 14.19C1.46 15.40 1.91 16.55 2.54 17.61L2.82 18.06L2.88 18.14C3.03 18.33 3.26 18.46 3.50 18.50C3.75 18.53 4.00 18.48 4.20 18.34C4.41 18.21 4.56 18.00 4.62 17.76C4.68 17.52 4.65 17.27 4.54 17.05L4.49 16.96L4.26 16.59C3.74 15.72 3.38 14.78 3.18 13.79C3.15 13.66 3.10 13.54 3.02 13.43C2.95 13.32 2.86 13.23 2.75 13.15C2.64 13.08 2.51 13.03 2.39 13.01C2.26 12.98 2.12 12.98 2 13.01ZM5.65 19.79C5.51 19.99 5.46 20.24 5.49 20.49C5.53 20.73 5.66 20.95 5.85 21.11L5.93 21.17L6.38 21.45C7.44 22.08 8.59 22.53 9.80 22.77C10.06 22.83 10.33 22.77 10.55 22.63C10.77 22.48 10.93 22.25 10.98 21.99C11.03 21.73 10.98 21.46 10.84 21.24C10.69 21.02 10.46 20.87 10.20 20.81C9.21 20.61 8.27 20.25 7.40 19.73L7.03 19.50L6.94 19.45C6.72 19.34 6.47 19.31 6.23 19.37C5.99 19.43 5.78 19.58 5.65 19.79ZM14.19 22.78L13.79 20.82C13.66 20.84 13.54 20.89 13.43 20.97C13.32 21.04 13.23 21.13 13.15 21.24C13.08 21.35 13.03 21.48 13.01 21.60C12.98 21.73 12.98 21.87 13.01 22C13.04 22.12 13.09 22.25 13.16 22.35C13.23 22.46 13.33 22.56 13.44 22.63C13.55 22.70 13.67 22.75 13.80 22.78C13.93 22.80 14.06 22.80 14.19 22.78Z", fill:"white"}}]}:{G:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{G:"path",Z:{d:"M10,8v8l6-4L10,8L10,8z M6.3,5L5.7,4.2C7.2,3,9,2.2,11,2l0.1,1C9.3,3.2,7.7,3.9,6.3,5z M5,6.3L4.2,5.7C3,7.2,2.2,9,2,11 l1,.1C3.2,9.3,3.9,7.7,5,6.3z M5,17.7c-1.1-1.4-1.8-3.1-2-4.8L2,13c0.2,2,1,3.8,2.2,5.4L5,17.7z M11.1,21c-1.8-0.2-3.4-0.9-4.8-2 l-0.6,.8C7.2,21,9,21.8,11,22L11.1,21z M22,12c0-5.2-3.9-9.4-9-10l-0.1,1c4.6,.5,8.1,4.3,8.1,9s-3.5,8.5-8.1,9l0.1,1 C18.2,21.5,22,17.2,22,12z", fill:"white"}}]};this.setIcon(k)}this.j=q;this.Y=!1;this.UK=null;CE(q)?(this.V=g.gZ("Personalizada ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.j.getPlaybackRate().toString()}),this.X=this.j.getPlaybackRate()):this.X=this.V=null;Nsf(q)?this.L=Z0(4):this.L=null;this.F9=this.j.getAvailablePlaybackRates();this.C(q,"presentingplayerstatechange",this.NB);var b;((b=this.j.getVideoData())==null?0:b.fT())&&this.C(q,"serverstitchedvideochange",this.NB);this.C(this.S.U,"change",function(){G.Y=!0;G.NB()}); this.NB()}; PSl=function(q,a){var w=Z0(a);q.V&&(q.Y||a===q.X)?(q.sP(q.V),q.z0(a.toString())):q.sP(w)}; d3V=function(q){var a=q.F9.map(Z0);q.L&&a.push(q.L);q.VV(a);q.V=null;q.X=null;a=q.j.getPlaybackRate();CE(q.j)&&K6U(q,a);!q.F9.includes(a)||q.Y?q.sP(q.V):q.sP(Z0(a))}; K6U=function(q,a){q.X=a;q.V=g.gZ("Personalizada ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:a.toString()});a=q.F9.map(Z0);a.unshift(q.V);q.L&&a.push(q.L);q.VV(a)}; TsK=function(q,a,w,G){w=new g.e1({G:"div",vT:["ytp-menuitem"],Z:{tabindex:"0",role:"menuitemradio","aria-checked":G?"true":"false"},K:[{G:"div",vT:["ytp-menuitem-label"],K:[{G:"div",vT:["ytp-menuitem-container-with-badge"],K:[{G:"div",ue:"{{label}}"},{G:"div",vT:["ytp-menuitem-premium-badge"]}]}]}]},w,q.I_(a));w.listen("click",function(){q.Ho(a)}); return w}; Z0=function(q){return q.toString()}; CE=function(q){return q.T("web_settings_menu_surface_custom_playback")}; Nsf=function(q){return q.T("enable_web_premium_varispeed_upsell")&&q.getAvailablePlaybackRates()[q.getAvailablePlaybackRates().length-1]<=2}; $3G=function(q){return q.T("web_settings_menu_surface_custom_playback")&&q.T("web_settings_use_input_slider")}; F6U=function(q,a,w,G){var k=new g.As(a,void 0,"Anulaci\u00f3n de v\u00eddeo");g.HP.call(this,G.text||"",q,a,w,"Anulaci\u00f3n de v\u00eddeo",function(){g.BP(w,k)}); var b=this;g.gU(this.element,"ytp-subtitles-options-menu-item");this.setting=G.option.toString();q=G.options;this.settings=g.D7(q,this.Kw,this);this.L=k;g.p(this,this.L);a=new g.e1({G:"div",N:"ytp-menuitemtitle",ue:"Permite un estilo de subt\u00edtulos diferente al del especificado en el v\u00eddeo."},0);g.p(this,a);this.L.Qa(a,!0);this.Y=new g.e1({G:"div",N:"ytp-menuitem",Z:{role:"menuitemradio",tabindex:"0"},K:[{G:"div",N:"ytp-menuitem-label",ue:"Activado"}]},-1);g.p(this,this.Y);this.L.Qa(this.Y, !0);this.C(this.Y.element,"click",function(){sic(b,!0)}); this.V=new g.e1({G:"div",N:"ytp-menuitem",Z:{role:"menuitemradio",tabindex:"0"},K:[{G:"div",N:"ytp-menuitem-label",ue:"No"}]},-2);g.p(this,this.V);this.L.Qa(this.V,!0);this.C(this.V.element,"click",function(){sic(b,!1)}); this.VV(g.sd(q,this.Kw))}; sic=function(q,a){q.publish("settingChange",q.setting+"Override",!a);q.Wq.Iw()}; ED=function(q,a){g.As.call(this,q,void 0,"Opciones");var w=this;this.dJ={};for(var G=0;G=0);if(!(a<0||a===q.Y)){q.Y=a;a=243*q.scale;var w=141*q.scale,G=RRc(q.U,q.Y,a);SMl(q.bg,G,a,w,!0);q.UK.start()}}; val=function(q){var a=q.V;q.type===3&&q.y7.stop();q.api.removeEventListener("appresize",q.F9);q.S||(q.env.T("player_tooltip_data_title_killswitch")?a.setAttribute("title",q.W):a.setAttribute("data-tooltip-title",q.W));q.W="";q.V=null;q.update({keyBoardShortcut:"",keyBoardShortcutTitle:""});q.wrapper.style.width=""}; iuf=function(q){g.u.call(this,{G:"button",vT:["ytp-watch-later-button","ytp-button"],Z:{title:q.T("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.yw(q.B()))},K:[{G:"div",N:"ytp-watch-later-icon",ue:"{{icon}}"},{G:"div",N:"ytp-watch-later-title",ue:"Ver m\u00e1s tarde"}]});this.j=q;this.icon=null;this.visible=this.isRequestPending=this.V=!1;LwJ(q);q.createClientVe(this.element,this,28665); this.listen("click",this.onClick,this);this.C(q,"videoplayerreset",this.onReset);this.C(q,"appresize",this.RL);this.C(q,"videodatachange",this.RL);this.C(q,"presentingplayerstatechange",this.RL);this.RL();q=this.j.B();var a=g.xt("yt-player-watch-later-pending");q.Y&&a?(y3c(),zyc(this)):this.NB(2);g.kX(this.element,"ytp-show-watch-later-title",g.yw(q));Xe(this.j,this.element,this)}; W6K=function(q){var a=q.j.getPlayerSize(),w=q.j.B(),G=q.j.getVideoData(),k=g.yw(w)&&g.vE(q.j)&&g.v(q.j.getPlayerStateObject(),128),b=w.W;return w.ke&&a.width>=240&&!G.isAd()&&G.ke&&!k&&!G.J8&&!q.j.isEmbedsShortsMode()&&!b}; D3c=function(q,a){i9G(g.Tu(q.j.B()),"wl_button",function(){y3c({videoId:a});window.location.reload()})}; zyc=function(q){if(!q.isRequestPending){q.isRequestPending=!0;q.NB(3);var a=q.j.getVideoData();a=q.V?a.removeFromWatchLaterCommand:a.addToWatchLaterCommand;var w=q.j.e2(),G=q.V?function(){q.V=!1;q.isRequestPending=!1;q.NB(2);q.j.B().S&&q.j.zl("WATCH_LATER_VIDEO_REMOVED")}:function(){q.V=!0; q.isRequestPending=!1;q.NB(1);q.j.B().U&&q.j.c8(q.element);q.j.B().S&&q.j.zl("WATCH_LATER_VIDEO_ADDED")}; Ls(w,a).then(G,function(){q.isRequestPending=!1;q.NB(4,"Se ha producido un error. Vuelve a intentarlo m\u00e1s tarde.");q.j.B().S&&q.j.zl("WATCH_LATER_ERROR","Se ha producido un error. Vuelve a intentarlo m\u00e1s tarde.")})}}; Rym=function(q,a){if(a!==q.icon){switch(a){case 3:var w=A0();break;case 1:w=eV();break;case 2:w={G:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{G:"path",dG:!0,N:"ytp-svg-fill",Z:{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:w={G:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{G:"path", dG:!0,Z:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}q.updateValue("icon",w);q.icon=a}}; yJl=function(){g.W1.apply(this,arguments);this.bH=(this.wp=g.yw(this.api.B()))&&(this.api.B().U||zn()||tG());this.vD=48;this.LY=69;this.PA=this.Eq=null;this.qp=[];this.eL=this.va=this.Tw=this.ql=this.tS=null;this.MN=[];this.contextMenu=this.NH=this.overflowButton=this.j2=this.PH=this.searchButton=this.copyLinkButton=this.shareButton=this.jH=this.HH=this.title=this.channelAvatar=this.Pe=this.tooltip=null;this.UL=!1;this.Ga=this.JE=this.uc=this.W7=null;this.gwt=this.XP=this.Nw=!1}; qWy=function(q){var a=q.api.B(),w=g.v(q.api.getPlayerStateObject(),128);return a.Y&&w&&!q.api.isFullscreen()}; g2V=function(q){if(q.Ev()&&!q.api.isEmbedsShortsMode()&&q.j2){var a=q.api.T("web_player_hide_overflow_button_if_empty_menu");!q.jH||a&&!W6K(q.jH)||D6G(q.j2,q.jH);!q.shareButton||a&&!dym(q.shareButton)||D6G(q.j2,q.shareButton);!q.copyLinkButton||a&&!YJf(q.copyLinkButton)||D6G(q.j2,q.copyLinkButton)}else{a=q.api.B().getWebPlayerContextConfig();if(q.j2){for(var w=q.j2,G=g.V(w.actionButtons),k=G.next();!k.done;k=G.next())k.value.detach();w.actionButtons=[]}q.searchButton&&!g.ZM(q.HH.element,q.searchButton.element)&& q.searchButton.HT(q.HH.element);!q.jH||(a==null?0:a.hideTopWatchNextButton)||g.ZM(q.HH.element,q.jH.element)||q.jH.HT(q.HH.element);!q.shareButton||(a==null?0:a.hideTopShareButton)||g.ZM(q.HH.element,q.shareButton.element)||q.shareButton.HT(q.HH.element);q.copyLinkButton&&!g.ZM(q.HH.element,q.copyLinkButton.element)&&q.copyLinkButton.HT(q.HH.element)}}; aCV=function(q,a,w){a=w?a.lastElementChild:a.firstElementChild;for(var G=null;a;){if(va(a,"display")!=="none"&&a.getAttribute("aria-hidden")!=="true"){var k=void 0;a.tabIndex>=0?k=a:k=aCV(q,a,w);k&&(G?w?k.tabIndex>G.tabIndex&&(G=k):k.tabIndexG/1E3+1)return{msg:"in-the-past"};if(b.isLivePlayback&&!isFinite(G))return{msg:"live-infinite"};(G=a.Z0())&&G.isView()&&(G=G.mediaElement);if(G&&G.ek().length>12&&g.op(k))return{msg:"played-ranges"};if(!k.W)return null;if(!O)return{msg:"no-pvd-formats"};if(!k.W.V||!O.V)return{msg:"non-dash"};G=O.videoInfos[0];var e=k.W.videoInfos[0];q.F9&&AF(b)&&(G=a.xA(), e=w.xA());if(!G||!e)return{msg:"no-video-info"};if(q.L&&(IK(G)||IK(e)))return{msg:"av1"};a=q.Y&&b.tK()&&dD();if(e.containerType!==G.containerType)if(a)b.d8("sgap",{ierr:"container"});else return{msg:"container"};if(q.D&&!a&&(e.K7!==G.K7||e.K7===""||G.K7===""))return{msg:"codec"};if(q.X&&e.video&&G.video&&Math.abs(e.video.width/e.video.height-G.video.width/G.video.height)>.01)return{msg:"ratio"};if(g.op(b)&&g.op(k))return{msg:"content-protection"};O=O.V[0];k=k.W.V[0];w=O.audio;var N=k.audio;if(w.sampleRate!== N.sampleRate&&!g.se)if(a)b.d8("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:O.itag,cr:w.sampleRate,ni:k.itag,nr:N.sampleRate};return(w.numChannels||2)!==(N.numChannels||2)?{msg:"channel-count"}:q.S&&b.tK()&&G.video.fps!==e.video.fps?{msg:"fps"}:null}; bqy=function(q,a,w){var G=q.getVideoData(),k=a.getVideoData();if(!G.B().supportsGaplessShorts())return{nq:"env"};if((!w.J||G.BH&&!G.isAd()||k.BH&&!k.isAd())&&(!w.U||G.BH&&!G.isAd()||k.BH)&&(!w.W||k.BH&&!k.isAd()||G.BH)&&(G.BH||k.BH))return{nq:"autoplay"};if(G.endSeconds>0)return{nq:"endcr"};if(!G.X)return{nq:"client"};if(!q.Qm())return{nq:"no-empty"};q=kam(w,q,a,Infinity);return q!=null?{nq:q.msg}:null}; pE=function(q){g.c.call(this);this.app=q;this.D=this.Y=this.U=this.V=null;this.W=1;this.events=new g.Ee(this);this.events.C(this.app.MB,g.IM("gaplessshortslooprange"),this.S);g.p(this,this.events)}; OqG=function(){this.V=this.X=this.W=this.U=this.J=this.L=this.F9=this.S=this.D=this.Y=!1}; lCy=function(q){var a=new OqG;a.Y=q.T("h5_gapless_support_types_diff");a.S=q.T("h5_gapless_error_on_fps_diff");a.F9=q.T("html5_gapless_use_format_info_fix");a.L=q.T("html5_gapless_disable_on_av1")&&!q.T("html5_gapless_enable_on_av1");a.D=q.T("html5_gapless_check_codec_diff_strictly");a.J=q.T("html5_gapless_on_ad_autoplay");a.X=q.T("html5_gapless_disable_diff_aspect_radio");a.U=q.T("html5_gapless_ad_autoplay_on_ad_to_video_only");a.V=q.T("html5_pseudogapless_shorts_seek_to_next_start");a.W=q.T("html5_gapless_ad_autoplay_on_video_to_ad_only"); return a}; g.UD=function(q,a,w,G){G=G===void 0?!1:G;Qy.call(this);this.mediaElement=q;this.start=a;this.end=w;this.V=G}; eQV=function(q,a,w,G,k,b){b=b===void 0?0:b;g.c.call(this);var O=this;this.policy=q;this.V=a;this.U=w;this.n0=k;this.D=b;this.Y=this.W=null;this.currentVideoDuration=this.L=-1;this.X=!1;this.h5=new m5;this.JZ=G-a.g$()*1E3;this.h5.then(void 0,function(){}); this.timeout=new g.o1(function(){O.KO("timeout")},1E4); g.p(this,this.timeout);this.S=isFinite(G)||this.n0.B().experiments.Zh("html5_pseudogapless_shorts")&&AF(a.getVideoData());this.status={status:0,error:null}}; YW_=function(q){var a,w,G,k,b,O,e,N,Y;return g.h(function(P){if(P.U==1){if(q.t2())return P.return(Promise.reject(Error(q.status.error||"disposed")));q.timeout.start();return g.n(P,q.h5,2)}a=q.V.Z0();if(a.isEnded())return q.KO("ended_in_finishTransition"),P.return(Promise.reject(Error(q.status.error||"")));if(!q.Y||!Fb(q.Y))return q.KO("next_mse_closed"),P.return(Promise.reject(Error(q.status.error||"")));if(q.U.jD()!==q.Y)return q.KO("next_mse_mismatch"),P.return(Promise.reject(Error(q.status.error|| "")));w=XG(q);G=w.LX;k=w.Cf;b=w.C_;q.V.Ha(!1,!0);O=No_(a,G,b,!q.U.getVideoData().isAd());q.U.setMediaElement(O);(e=q.V.Dk())&&q.U.gJ(e.OG,e.uL);q.S&&(q.policy.V||q.U.seekTo(q.U.getCurrentTime()+.001,{gR:!0,N3:3,e1:"gapless_pseudo"}),O.play(),AG());N=a.Kk();N.cpn=q.V.getVideoData().clientPlaybackNonce;N.st=""+G;N.et=""+b;q.U.d8("gapless",N);q.V.d8("gaplessTo",{cpn:q.U.getVideoData().clientPlaybackNonce});Y=q.V.getPlayerType()===q.U.getPlayerType();q.V.tV(k,!0,!1,Y,q.U.getVideoData().clientPlaybackNonce); q.U.tV(q.U.getCurrentTime(),!0,!0,Y,q.V.getVideoData().clientPlaybackNonce);q.U.Zg();g.VP(function(){!q.U.getVideoData().UK&&q.U.getPlayerState().isOrWillBePlaying()&&q.U.kM()}); jf(q,6);q.dispose();return P.return(Promise.resolve())})}; Tom=function(q){if(q.U.getVideoData().W){var a=q.n0.B().T("html5_gapless_suspend_next_loader")&&q.D===1;q.U.Df(q.Y,a,PCl(q));jf(q,3);KgG(q);var w=dBU(q);a=w.F7;w=w.VJ;a.subscribe("updateend",q.b_,q);w.subscribe("updateend",q.b_,q);q.b_(a);q.b_(w)}}; KgG=function(q){q.V.unsubscribe("internalvideodatachange",q.HF,q);q.U.unsubscribe("internalvideodatachange",q.HF,q);q.n0.B().T("html5_gapless_use_format_info_fix")&&(q.V.unsubscribe("internalvideoformatchange",q.HF,q),q.U.unsubscribe("internalvideoformatchange",q.HF,q));q.V.unsubscribe("mediasourceattached",q.HF,q);q.U.unsubscribe("statechange",q.To,q)}; No_=function(q,a,w,G){q=q.isView()?q.mediaElement:q;return new g.UD(q,a,w,G)}; jf=function(q,a){a<=q.status.status||(q.status={status:a,error:null},a===5&&q.h5.resolve())}; PCl=function(q){return q.n0.B().T("html5_gapless_no_clear_buffer_timeline")&&q.D===1&&rM(q.V.getVideoData())}; XG=function(q){var a=q.V.Z0();a=a.isView()?a.start:0;var w=q.V.getVideoData().isLivePlayback?Infinity:q.V.R_(!0);w=Math.min(q.JZ/1E3,w)+a;var G=q.S?100:0;q=w-q.U.Ye()+G;return{Sx:a,LX:q,Cf:w,C_:Infinity}}; dBU=function(q){return{F7:q.W.V.VL,VJ:q.W.U.VL}}; oJ=function(q){g.c.call(this);var a=this;this.app=q;this.L=this.U=this.V=null;this.S=!1;this.W=this.Y=null;this.D=lCy(this.app.B());this.X=function(){g.VP(function(){$Bm(a)})}}; syc=function(q,a,w,G,k){G=G===void 0?0:G;k=k===void 0?0:k;q.Qm()||IJ(q);q.Y=new m5;q.V=a;var b=w,O=k===0;O=O===void 0?!0:O;var e=q.app.xT(),N=e.getVideoData().isLivePlayback?Infinity:e.R_(!0)*1E3;b>N&&(b=N-200,q.S=!0);O&&e.getCurrentTime()>=b/1E3?q.X():(q.U=e,O&&(O=b,b=q.U,q.app.MB.addEventListener(g.oM("vqueued"),q.X),O=isFinite(O)||O/1E3>b.getDuration()?O:0x8000000000000,q.L=new g.Xo(O,0x8000000000000,{namespace:"vqueued"}),b.addCueRange(q.L)));O=G/=1E3;b=a.getVideoData().V;G&&b&&q.U&&(e=G,N=0, a.getVideoData().isLivePlayback&&(O=Math.min(w/1E3,q.U.R_(!0)),N=Math.max(0,O-q.U.getCurrentTime()),e=Math.min(G,a.R_()+N)),O=hbV(b,e)||G,O!==G&&q.V.d8("qvaln",{st:G,at:O,rm:N,ct:e}));a=O;G=q.V;G.getVideoData().qM=!0;G.getVideoData().X=!0;G.TH(!0);b={};q.U&&(b=q.U.cI(),O=q.U.getVideoData().clientPlaybackNonce,b={crt:(b*1E3).toFixed(),cpn:O});G.d8("queued",b);a!==0&&G.seekTo(a+.01,{gR:!0,N3:3,e1:"videoqueuer_queued"});q.W=new eQV(q.D,q.app.xT(),q.V,w,q.app,k);w=q.W;w.status.status!==Infinity&&(jf(w, 1),w.V.subscribe("internalvideodatachange",w.HF,w),w.U.subscribe("internalvideodatachange",w.HF,w),w.n0.B().T("html5_gapless_use_format_info_fix")&&(w.V.subscribe("internalvideoformatchange",w.HF,w),w.U.subscribe("internalvideoformatchange",w.HF,w)),w.V.subscribe("mediasourceattached",w.HF,w),w.U.subscribe("statechange",w.To,w),w.V.subscribe("newelementrequired",w.qE,w),w.HF());return q.Y}; $Bm=function(q){var a,w,G,k,b,O,e;g.h(function(N){switch(N.U){case 1:if(q.t2()||!q.Y||!q.V)return N.return();q.S&&q.app.xT().Np(!0,!1);a=null;if(!q.W){N.Gl(2);break}g.ml(N,3);return g.n(N,YW_(q.W),5);case 5:g.xl(N,2);break;case 3:a=w=g.rc(N);case 2:if(!q.V)return N.return();Fgf.WL("vqsp",function(){q.app.Rk(q.V)}); if(!q.V)return N.return();G=q.V.Z0();q.app.B().T("html5_gapless_seek_on_negative_time")&&G&&G.getCurrentTime()<-.01&&q.V.seekTo(0);Fgf.WL("vqpv",function(){q.app.playVideo()}); a&&(q.V?(k=a?a.message:"forced",(b=q.U)==null||b.d8("gapfulfbk",{r:k}),q.V.iH(k)):(O=q.U)==null||O.d8("gapsp",{}));e=q.Y;IJ(q);e&&e.resolve();return N.return(Promise.resolve())}})}; IJ=function(q,a){a=a===void 0?!1:a;if(q.U){if(q.L){var w=q.U;q.app.MB.removeEventListener(g.oM("vqueued"),q.X);w.removeCueRange(q.L)}q.U=null;q.L=null}q.W&&(q.W.status.status!==6&&(w=q.W,w.status.status!==Infinity&&w.D!==1&&w.KO("Canceled")),q.W=null);q.Y=null;q.V&&!a&&q.V!==q.app.UA()&&q.V!==q.app.xT()&&q.V.dispose();q.V&&a&&q.V.EE();q.V=null;q.S=!1}; CCN=function(q){var a;return((a=q.W)==null?void 0:a.currentVideoDuration)||-1}; Zql=function(q,a,w){if(q.Qm())return"qie";if(q.V==null||q.V.t2()||q.V.getVideoData()==null)return"qpd";if(a.videoId!==q.V.M_())return"vinm";if(CCN(q)<=0)return"ivd";if(w!==1)return"upt";if((w=q.W)==null)q=void 0;else if(w.getStatus().status!==5)q="niss";else if(kam(w.policy,w.V,w.U,w.JZ)!=null)q="pge";else{a=dBU(w);q=a.F7;var G=a.VJ;a=g.Wo(w.n0.B().experiments,"html5_shorts_gapless_next_buffer_in_seconds");var k=w.L+a;w.n0.B().experiments.Zh("html5_pseudogapless_shorts")&&(k=XG(w).LX+a);w=kj(G.sB(), k);q=kj(q.sB(),k);q=!(a>0)||w&&q?null:"neb"}return q!=null?q:null}; E2y=function(){g.ya.call(this);var q=this;this.fullscreen=0;this.Y=this.W=this.pictureInPicture=this.V=this.U=this.inline=!1;this.D=function(){q.wx()}; JPN(this.D);this.L=this.getVisibilityState(this.yT(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.zn(),this.yK(),this.iY(),this.Tn())}; APl=function(q){return!(q.isMinimized()||q.isInline()||q.isBackground()||q.zn()||q.yK()||q.iY()||q.Tn())}; g.uR=function(q){g.c.call(this);this.V7=q;this.videoData=this.playerState=null}; zG=function(q,a){g.c.call(this);var w=this;this.data=[];this.W=q||NaN;this.U=a||null;this.V=new g.o1(function(){tg(w);vj(w)}); g.p(this,this.V)}; r6j=function(q){tg(q);return q.data.map(function(a){return a.value})}; tg=function(q){var a=(0,g.Zj)();q.data.forEach(function(w){w.expire0));q.TZ()&& dTG();Error.stackTraceLimit=50;var k=g.Wo(a,"html5_idle_rate_limit_ms");k&&Object.defineProperty(window,"requestIdleCallback",{value:function(b){return window.setTimeout(b,k)}}); gby(q.D);usl(w("html5_use_ump_request_slicer"));C5c(w("html5_record_now"));w("html5_disable_streaming_xhr")&&(FI=!1);w("html5_byterate_constraints")&&(xd=!0);w("html5_use_non_active_broadcast_for_post_live")&&(dK=!0);w("html5_enable_encrypted_av1")&&(oK=!0);ipc(g.Wo(q.experiments,"html5_sticky_duration_mos"))}; Lgj=function(q,a){return q.slice(a.length).replace(/_[a-z]/g,function(w){return w.toUpperCase().replace("_","")}).replace("Dot",".")}; BoK=function(q){var a={},w=Object.keys(q.experiments.flags);w=g.V(w);for(var G=w.next();!G.done;G=w.next())if(G=G.value,G.startsWith("cobalt_h5vcc"))if(G.startsWith("cobalt_h5vcc_string")){var k=Lgj(G,"cobalt_h5vcc_string");G=Cz(q.experiments,G);k&&G&&(a[k]=Pic(k,G))}else G.startsWith("cobalt_h5vcc")&&(k=Lgj(G,"cobalt_h5vcc"),G=g.Wo(q.experiments,G),k&&G&&(a[k]=Pic(k,G)));return a}; n2j=function(q,a,w,G){G=G===void 0?0:G;g.wL.call(this,w.jF());var k=this;this.T0=q;this.videoData=a;this.duration=G;this.V=this.startTimeSecs=0;this.U=new rCl(function(b,O){return void k.d8(b,O)})}; rCl=function(q){this.d8=q;this.V={}}; MqN=function(q,a,w){q.V[a]||(q.d8("huli-sdai-err",w),q.V[a]=!0)}; hQG=function(q){this.end=this.start=q}; g.yK=function(){this.V=new Map;this.W=new Map;this.U=new Map}; SWU=function(q){var a=this;this.V7=q;this.V=[];this.W=new Map;this.Y=new Map;this.U=new Map;this.qh={fI:function(){return a.W}, SEK:function(){return a.Y}}; this.D=this.V7.T("html5_huli_ssdai_deprecate_playback_timeline_id")}; HqU=function(q,a){g.iV(q.V,a,function(w,G){return w.YF===G.YF?w.durationMs-G.durationMs:w.YF-G.YF}); q.W.set(a.cpn,a);a.iK&&!q.D&&q.Y.set(a.iK,a);a.JK&&fCj(q,a.JK,a)}; cCl=function(q,a){for(var w=[],G=g.V(q.V),k=G.next();!k.done;k=G.next())k=k.value,a(k)||w.push(k);if(q.V7.T("html5_sstm_fixes"))for(G=g.V(q.V),k=G.next();!k.done;k=G.next())k=k.value,a(k)&&(q.W.delete(k.cpn),k.iK&&q.Y.delete(k.iK));q.V=w}; pMG=function(q,a){a=g.oB(q.V,{uw:a},function(w,G){return w.uw-G.uw}); return a>=0?q.V[a]:null}; UBf=function(q,a){var w=q.V.indexOf(a);w>=0&&q.V.splice(w,1);q.W.delete(a.cpn);a.iK&&q.Y.delete(a.iK)}; fCj=function(q,a,w){var G=q.U.get(a);G?(G.push(w),g.vR(G,function(k,b){return k.YF-b.YF})):q.U.set(a,[w])}; g.qN=function(q,a,w,G){g.c.call(this);var k=this;this.api=q;this.V7=a;this.playback=w;this.app=G;this.UK=new g.yK;this.U=new Map;this.f7=new Map;this.jt=null;this.VN=NaN;this.h2=this.IW=null;this.BT=new g.o1(function(){XMm(k,k.VN,k.IW||void 0)}); this.events=new g.Ee(this);this.le=15E3;this.X=new g.o1(function(){k.S=!0;k.playback.ED(k.le);jyf(k);if(k.playback.getVideoData().fT()){var b;k.QN({togab:(b=k.L)==null?void 0:b.identifier})}k.Xb(!1)},this.le); this.S=!1;this.D=new Map;this.L7=[];this.L=null;this.OQ=new Set;this.J=[];this.St=[];this.N1=[];this.yN=[];this.EK=new Set;this.iI=0;this.F9=!1;this.w$=new Set;this.Ai=new Set;this.Ck=new Set;this.A2=new Set;this.uF=this.yv=0;this.YU=this.OA=!1;this.PJ=this.Y="";this.y7=null;this.logger=new g.Zw("dai");this.qh={hrT:function(){return k.U}, fI:function(){return k.V.qh.fI()}, zh2:function(){return k.Y}, pMe:function(b){k.onCueRangeEnter(k.U.get(b))}, nXW:function(b){k.onCueRangeExit(k.U.get(b))}, qm7:function(b,O){k.U.set(b,O)}, ybK:function(b){k.PJ=b}, i6:function(){return k.i6()}, CR2:function(b){return k.V.U.get(b)}, A7e:function(){return k.y7}, xT8:function(){return k.V.V}}; this.playback.getPlayerType();this.V=new SWU(this.V7);this.playback.u0(this);this.Tl=this.V7.TZ();g.p(this,this.BT);g.p(this,this.events);g.p(this,this.X);this.events.C(this.api,g.oM("serverstitchedcuerange"),this.onCueRangeEnter);this.events.C(this.api,g.IM("serverstitchedcuerange"),this.onCueRangeExit);RJ(this.app.vQ(),this.playback,!1)}; v2_=function(q,a,w,G,k,b,O,e){var N=o2V(q,b,b+k);q.S&&q.QN({adaftto:1});w||q.QN({missadcon:1,enter:b,len:k,aid:e});q.W&&!q.W.wj&&(q.W.wj=e);q.YU&&q.QN({adfbk:1,enter:b,len:k,aid:e});var Y=q.playback;b>O&&gO(q,{reason:"enterTime_greater_than_return",YF:b,uw:O});var P=Y.B5()*1E3;bY&&gO(q,{reason:"parent_return_greater_than_content_duration",uw:O,CNe:Y});(Y=pMG(q.V,b))&&Y.uw>b&&ICU(q,a.video_id||"", b,O,Y);if(N&&Y)for(P=0;P=0)for(var k=a*1E3,b=G;b<=G+1&&b=O.YF-w*1E3&&k<=O.uw+w*1E3)return{yh:O,yn:a}}return{yh:void 0,yn:a}}; RQy=function(q,a){var w="";(a=Wgl(q,a))&&(w=a.getId());return w?q.V.lK({cpn:w}):void 0}; Wgl=function(q,a){if(q.PJ){var w=q.U.get(q.PJ);if(w&&w.start-200<=a&&w.end+200>=a)return w}q=g.V(q.U.values());for(w=q.next();!w.done;w=q.next())if(w=w.value,w.start<=a&&w.end>=a)return w}; XMm=function(q,a,w){var G=q.h2||q.app.xT().getPlayerState();Gb(q,!0);q.playback.seekTo(a,w);q=q.app.xT();a=q.getPlayerState();G.isOrWillBePlaying()&&!a.isOrWillBePlaying()?q.playVideo():G.isPaused()&&!a.isPaused()&&q.pauseVideo()}; Gb=function(q,a){q.VN=NaN;q.IW=null;q.BT.stop();q.jt&&a&&q.jt.EH();q.h2=null;q.jt=null}; GoN=function(q){var a=a===void 0?-1:a;var w=w===void 0?Infinity:w;afK(q,a,w);for(var G=g.V(q.U.values()),k=G.next();!k.done;k=G.next())k=k.value,k.start>=a&&k.end<=w&&(q.playback.removeCueRange(k),q.U.delete(k.getId()),q.QN({rmAdCR:1}));G=wO(q,a/1E3);a=G.yh;G=G.yn;a&&(G=G*1E3-a.YF,wil(q,a,G,a.YF+G),G=q.U.get(a.cpn))&&(G.start=a.YF,G.end=a.YF+a.durationMs);if(a=wO(q,w/1E3).yh){var b;G="playback_timelinePlaybackId_"+a.iK+"_video_id_"+((b=a.videoData)==null?void 0:b.videoId)+"_durationMs_"+a.durationMs+ "_enterTimeMs_"+a.YF+"_parentReturnTimeMs_"+a.uw;q.vW("Invalid_clearEndTimeMs_"+w+"_that_falls_during_"+G+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; koc=function(q){q.UK.clearAll();q.U.clear();q.V.clear();q.D.clear();q.L7=[];q.L=null;q.OQ.clear();q.V7.experiments.Zh("html5_ssdai_log_missing_ad_config_reason")&&q.EK.clear();q.J=[];q.St=[];q.N1=[];q.yN=[];q.w$.clear();q.Ai.clear();q.Ck.clear();q.A2.clear();q.S=!1;q.iI=0;q.F9=!1;q.yv=0;q.uF=0;q.OA=!1;q.YU=!1;q.Y="";VqN(q.app.vQ());RJ(q.app.vQ(),q.playback,!1);q.f7.clear();q.X.isActive()&&aQ(q)}; wil=function(q,a,w,G){a.durationMs=w;a.uw=G;(G=q.f7.get(a.cpn))?G.SD(w/1E3):q.QN({nop_d:a.cpn})}; afK=function(q,a,w){cCl(q.V,function(G){return G.YF>=a&&G.uw<=w})}; lfl=function(q,a,w,G,k,b){if(!q.YU)if(g.bYc(q,w))q.QN({gdu:"undec",seg:w,itag:k});else if(a=OYV(q,a,w,G,b),!(q.playback.getVideoData().fT()&&(a==null?0:a.Cn)))return a}; OYV=function(q,a,w,G,k){var b=q.D.get(w);if(!b){if(b=eJU(q,a))return b;a=q.Sn(w-1,G!=null?G:2);if(k)return q.QN({misscue:k,sq:w,type:G,prevsstate:a==null?void 0:a.Kx,prevrecord:q.D.has(w-1)}),q.D.get(w-1);if((a==null?void 0:a.Kx)===2)return q.QN({adnf:1,sq:w,type:G,prevrecord:q.D.has(w-1)}),q.D.get(w-1)}return b}; eJU=function(q,a){a+=q.ZJ();if(q.playback.getVideoData().fT())a:{var w=1;w=w===void 0?0:w;var G=a*1E3;q=g.V(q.V.V);for(var k=q.next();!k.done;k=q.next()){k=k.value;var b=k.Jw?k.Jw*1E3:k.YF;if(G>=k.YF-w*1E3&&G<=b+k.durationMs+w*1E3){G={yh:k,yn:a};break a}}G={yh:void 0,yn:a}}else G=wO(q,a),((w=G)==null?0:w.yh)||(G=wO(q,a,1));var O;return(O=G)==null?void 0:O.yh}; NAl=function(q,a){a=a===void 0?"":a;var w=nz(a)||void 0;if(!a||!w){var G;q.QN({adcfg:(G=a)==null?void 0:G.length,dcfg:w==null?void 0:w.length})}return w}; Yay=function(q){for(var a=g.V(q.U.values()),w=a.next();!w.done;w=a.next())q.playback.removeCueRange(w.value);q.U.clear();q.UK.clearAll()}; PJN=function(q,a,w,G,k,b,O){if(a&&w){q.PJ=w.cpn;q.lW(w.cpn,w.startTimeSecs||k);iqK(q,w);var e=zQl(q,"a2a",w);q.QN(e);q.yv++;q.playback.lS(a,w,G||0,k||0,!!b,!!O)}else q.QN({misspbkonadtrans:1,enter:(w==null?void 0:w.cpn)||"",exit:(a==null?void 0:a.cpn)||"",seek:b,skip:O})}; ki=function(q,a,w){if(w===void 0||!w){w=g.V(q.L7);for(var G=w.next();!G.done;G=w.next()){G=G.value;if(a>=G.start&&a<=G.end)return;if(a===G.end+1){G.end+=1;return}}q.L7.push(new hQG(a))}}; g.bYc=function(q,a){q=g.V(q.L7);for(var w=q.next();!w.done;w=q.next())if(w=w.value,a>=w.start&&a<=w.end)return!0;return!1}; K7m=function(q,a,w){var G;if(G=q.playback.getVideoData().fT())G=(G=q.V.lK({cpn:a}))&&G.JK?(q=q.V.U.get(G==null?void 0:G.JK))&&q.slice(-1)[0].cpn===a:!1;return G&&w===2?1E3:0}; ICU=function(q,a,w,G,k){var b;a={reason:"overlapping_playbacks",wht:a,YF:w,uw:G,TF8:k.iK,XM2:((b=k.videoData)==null?void 0:b.videoId)||"",tmG:k.durationMs,EX9:k.YF,erh:k.uw};gO(q,a)}; gO=function(q,a,w){q.playback.er(a,w)}; daK=function(q,a){var w=[];q=q.V.U.get(a);if(!q)return[];q=g.V(q);for(a=q.next();!a.done;a=q.next())a=a.value,a.cpn&&w.push(a.cpn);return w}; TAc=function(q,a,w){var G=0;q=q.V.U.get(w);if(!q)return-1;q=g.V(q);for(w=q.next();!w.done;w=q.next()){if(w.value.cpn===a)return G;G++}return-1}; $ac=function(q,a){var w=0;q=q.V.U.get(a);if(!q)return 0;q=g.V(q);for(a=q.next();!a.done;a=q.next())a=a.value,a.durationMs!==0&&a.uw!==a.YF&&w++;return w}; s7c=function(q,a,w){var G=!1;if(w=q.V.U.get(w)){w=g.V(w);for(var k=w.next();!k.done;k=w.next())k=k.value,k.durationMs!==0&&k.uw!==k.YF&&(k=k.cpn,a===k&&(G=!0),G&&!q.Ai.has(k)&&(q.QN({decoratedAd:k}),q.Ai.add(k)))}}; jyf=function(q){q.Tl&&q.QN({adf:"0_"+((new Date).getTime()/1E3-q.uF)+"_isTimeout_"+q.S})}; o2V=function(q,a,w){if(q.J.length)for(var G=g.V(q.J),k=G.next(),b={};!k.done;b={f$:void 0},k=G.next()){b.f$=k.value;k=b.f$.startSecs*1E3;var O=b.f$.LT*1E3+k;if(a>k&&ak&&w0?q:0}else q.i6().videoData.RA=q.playback.getCurrentTime()}; CJm=function(q){q.A2.add(q.Y);q.Y="";q.F9=!1}; Q7l=function(q,a,w,G){g.c.call(this);var k=this;this.api=q;this.V7=a;this.V=w;this.app=G;this.D=new Map;this.U=[];this.W=this.X=null;this.F9=NaN;this.L=this.Y=this.J=null;this.S=new g.o1(function(){may(k,k.F9,k.J||void 0)}); this.UK=[];this.y7=new g.o1(function(){var b=k.UK.pop();if(b){var O=b.iK,e=b.playerVars;b=b.playerType;e&&(e.prefer_gapless=!0,k.api.preloadVideoByPlayerVars(e,b,NaN,"",O),k.UK.length&&g.tD(k.y7,4500))}}); this.events=new g.Ee(this);this.qh={ItB:function(){return k.U}}; this.V.getPlayerType();g.p(this,this.S);g.p(this,this.y7);g.p(this,this.events);this.events.C(this.api,g.oM("childplayback"),this.onCueRangeEnter);this.events.C(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.C(this.api,"presentingplayerstatechange",this.fE)}; BAy=function(q,a,w,G,k,b){var O=a.cpn,e=a.docid||a.video_id||a.videoId||a.id,N=q.V;b=b===void 0?k+G:b;if(k>b)return OS(q,"enterAfterReturn enterTimeMs="+k+" is greater than parentReturnTimeMs="+b.toFixed(3),O,e),"";var Y=N.B5()*1E3;if(kY)return N="returnAfterDuration parentReturnTimeMs="+b.toFixed(3)+" is greater than parentDurationMs="+Y+". And timestampOffset in seconds is "+ N.g$(),OS(q,N,O,e),"";Y=null;for(var P=g.V(q.U),K=P.next();!K.done;K=P.next()){K=K.value;if(k>=K.YF&&kK.YF)return OS(q,"overlappingReturn",O,e),"";if(b===K.YF)return OS(q,"outOfOrder",O,e),"";k===K.uw&&(Y=K)}O="cs_childplayback_"+ATJ++;e={nW:le(G,!0),JZ:Infinity,target:null};var d={iK:O,playerVars:a,playerType:w,durationMs:G,YF:k,uw:b,ox:e};q.U=q.U.concat(d).sort(function(J,Q){return J.YF-Q.YF}); Y?xam(q,Y,{nW:le(Y.durationMs,!0),JZ:Y.ox.JZ,target:d}):(a={nW:le(k,!1),JZ:k,target:d},q.D.set(a.nW,a),N.addCueRange(a.nW));a=!0;if(q.V===q.app.xT()&&(N=N.getCurrentTime()*1E3,N>=d.YF&&Na)break;if(b>a)return{yh:G,yn:a-k};w=b-G.uw/1E3}return{yh:null,yn:a-w}}; may=function(q,a,w){w=w===void 0?{}:w;var G=q.L||q.app.xT().getPlayerState();Yi(q,!0);a=isFinite(a)?a:q.V.HQ();var k=hJK(q,a);a=k.yn;var b=(k=k.yh)&&!e$(q,k)||!k&&q.V!==q.app.xT(),O=a*1E3;O=q.W&&q.W.start<=O&&O<=q.W.end;!b&&O||NN(q);k?L7m(q,k,a,w,G):SaN(q,a,w,G)}; SaN=function(q,a,w,G){var k=q.V;k!==q.app.xT()&&q.app.nP();k.seekTo(a,Object.assign({},{e1:"application_timelinemanager"},w));ffy(q,G)}; L7m=function(q,a,w,G,k){var b=e$(q,a);if(!b){a.playerVars.prefer_gapless=!0;var O=new g.TO(q.V7,a.playerVars);O.iK=a.iK;q.api.Jb(O,a.playerType)}O=q.app.xT();b||O.addCueRange(a.ox.nW);O.seekTo(w,Object.assign({},{e1:"application_timelinemanager"},G));ffy(q,k)}; ffy=function(q,a){q=q.app.xT();var w=q.getPlayerState();a.isOrWillBePlaying()&&!w.isOrWillBePlaying()?q.playVideo():a.isPaused()&&!w.isPaused()&&q.pauseVideo()}; Yi=function(q,a){q.F9=NaN;q.J=null;q.S.stop();q.Y&&a&&q.Y.EH();q.L=null;q.Y=null}; e$=function(q,a){q=q.app.xT();return!!q&&q.getVideoData().iK===a.iK}; HYG=function(q){var a=q.U.find(function(k){return e$(q,k)}); if(a){var w=q.app.xT();NN(q);var G=new g.rD(8);a=MPj(q,a)/1E3;SaN(q,a,{},G);w.d8("forceParentTransition",{childPlayback:1});q.V.d8("forceParentTransition",{parentPlayback:1})}}; piJ=function(q,a,w){a=a===void 0?-1:a;w=w===void 0?Infinity:w;for(var G=a,k=w,b=g.V(q.D),O=b.next();!O.done;O=b.next()){var e=g.V(O.value);O=e.next().value;e=e.next().value;e.JZ>=G&&e.target&&e.target.uw<=k&&(q.V.removeCueRange(O),q.D.delete(O))}G=a;k=w;b=[];O=g.V(q.U);for(e=O.next();!e.done;e=O.next())if(e=e.value,e.YF>=G&&e.uw<=k){var N=q;N.X===e&&NN(N);e$(N,e)&&N.app.nP()}else b.push(e);q.U=b;G=hJK(q,a/1E3);a=G.yh;G=G.yn;a&&(G*=1E3,cTl(q,a,G,a.uw===a.YF+a.durationMs?a.YF+G:a.uw));(a=hJK(q,w/1E3).yh)&& OS(q,"Invalid clearEndTimeMs="+w+" that falls during playback={timelinePlaybackId="+(a.iK+" video_id="+a.playerVars.video_id+" durationMs="+a.durationMs+" enterTimeMs="+a.YF+" parentReturnTimeMs="+a.uw+"}.Child playbacks can only have duration updated not their start."))}; cTl=function(q,a,w,G){a.durationMs=w;a.uw=G;G={nW:le(w,!0),JZ:w,target:null};xam(q,a,G);e$(q,a)&&q.app.xT().getCurrentTime()*1E3>w&&(a=MPj(q,a)/1E3,w=q.app.xT().getPlayerState(),SaN(q,a,{},w))}; OS=function(q,a,w,G){q.V.d8("timelineerror",{e:a,cpn:w?w:void 0,videoId:G?G:void 0})}; Xim=function(q){q&&q!=="web"&&UaU.includes(q)}; Pg=function(){g.c.call(this);this.V=new zG(5,null);g.p(this,this.V);this.U=new zG(15,null);g.p(this,this.U)}; NmK=function(q,a){return a?!!q.V.get(a):!1}; j7V=function(q,a){q.dataset.version=a}; umK=function(q){g.u.call(this,{G:"div",vT:["html5-video-player"],Z:{tabindex:q.B().disableOrganicUi?"":"-1",id:q.webPlayerContextConfig.rootElementId},K:[{G:"div",N:g.El.VIDEO_CONTAINER,Z:{"data-layer":"0"}}]});var a=this;this.app=q;this.ul=this.oW(g.El.VIDEO_CONTAINER);this.UG=new g.Xr(0,0,0,0);this.Va=null;this.HE=new g.Xr(0,0,0,0);this.Rc=this.MD=this.lU=NaN;this.E8=this.Ys=this.rP=this.yF=!1;this.lk=NaN;this.qD=!1;this.Dp=null;this.dP=function(){a.element.focus({preventScroll:!0})}; this.BZ=function(){a.app.MB.publish("playerUnderlayVisibilityChange","visible");a.Va.classList.remove(g.El.VIDEO_CONTAINER_TRANSITIONING);a.Va.removeEventListener(By,a.BZ);a.Va.removeEventListener("transitioncancel",a.BZ)}; this.tF=this.Ow=!1;var w=this.element.addEventListener,G=this.element.removeEventListener;this.addEventListener=function(b,O,e){w.apply(a.element,[b,O,e])}; this.removeEventListener=function(b,O,e){G.apply(a.element,[b,O,e])}; var k=q.B();k.transparentBackground&&this.Zv("ytp-transparent");k.controlsType==="0"&&this.Zv("ytp-hide-controls");g.gU(this.element,"ytp-exp-bottom-control-flexbox");g.gU(this.element,"ytp-modern-caption");k.T("enable_new_paid_product_placement")&&!g.Jd(k)&&g.gU(this.element,"ytp-exp-ppp-update");g.gU(this.element,"ytp-livebadge-color");if(k.T("delhi_modern_web_player"))switch(g.gU(this.element,"ytp-delhi-modern"),k.T("delhi_modern_web_player_icons")&&g.gU(this.element,"ytp-delhi-modern-icons"), k.T("delhi_modern_web_player_horizontal_volume_controls")&&g.gU(this.element,"ytp-delhi-horizontal-volume-controls"),Cz(k.experiments,"delhi_modern_web_player_blending_mode")){case "luminosity":g.gU(this.element,"ytp-delhi-modern-with-luminosity");break;case "difference":g.gU(this.element,"ytp-delhi-modern-with-difference");break;case "exclusion":g.gU(this.element,"ytp-delhi-modern-with-exclusion")}j7V(this.element,oHJ(q));this.a$=!1;this.O$=new g.t7(NaN,NaN);Ify(this);this.C(q.MB,"onMutedAutoplayChange", this.onMutedAutoplayChange);q=g.Wo(k.experiments,"html5_android_mweb_resize_delay");q>0&&(this.hB=new g.o1(function(){return void a.resize()},q),g.p(this,this.hB))}; Ify=function(q){function a(O){q.Va&&KU(q);dO(q)!==q.qD&&q.resize();q.app.B().T("web_enable_smart_zoom")&&q.zQ&&(O.state.isPaused()?q.zQ.pause():g.Ox(O,8)&&q.zQ.playState==="paused"&&q.zQ.play())} function w(O,e){q.jR(O,e)} function G(O){O.getVideoData()&&q.updateVideoData(O.getVideoData())} function k(){q.HE=new g.Xr(0,0,0,0);q.UG=new g.Xr(0,0,0,0)} var b=q.app.MB;b.addEventListener("initializingmode",k);b.addEventListener("videoplayerreset",G);b.addEventListener("videodatachange",w);b.addEventListener("presentingplayerstatechange",a);q.addOnDisposeCallback(function(){b.removeEventListener("initializingmode",k);b.removeEventListener("videoplayerreset",G);b.removeEventListener("videodatachange",w);b.removeEventListener("presentingplayerstatechange",a)})}; vHf=function(q){var a=q.app.xT();if(a=a?a.getVideoData():null){if(g.Rp(a)||g.yq(a)||g.qT(a))return 16/9;if(Qq(a)&&a.W.V)return q=a.W.videoInfos[0].video,tPy(q.width,q.height)}return(q=q.Va)?tPy(q.videoWidth,q.videoHeight):16/9}; zJf=function(q,a,w,G){var k=w,b=tPy(a.width,a.height);q.yF?k=wb?{width:a.width,height:a.width/k,aspectRatio:k}:kk?q.width=q.height*w:wN;if(dO(q)){var Y=vHf(q);var P=isNaN(Y)||g.jI||Ke&&g.Ph||N;X4&&!g.UX(601)?Y=k.aspectRatio:P=P||b.controlsType==="3";P?N?(P=b.T("place_shrunken_video_on_left_of_player")?16:q.getPlayerSize().width-a.width-16,Y=Math.max((q.getPlayerSize().height-a.height)/2,0),P=new g.Xr(P,Y,a.width, a.height),q.Va.style.setProperty("border-radius","12px")):P=new g.Xr(0,0,a.width,a.height):(w=k.aspectRatio/Y,P=new g.Xr((a.width-k.width/w)/2,(a.height-k.height)/2,k.width/w,k.height),w===1&&g.Ph&&(Y=P.width-a.height*Y,Y>0&&(P.width+=Y,P.height+=Y)));g.kX(q.element,"ytp-fit-cover-video",Math.max(P.width-k.width,P.height-k.height)<1);if(e||q.a$)q.Va.style.display="";q.qD=!0}else{P=-a.height;X4?P*=window.devicePixelRatio:g.mv&&(P-=window.screen.height);P=new g.Xr(0,P,a.width,a.height);if(e||q.a$)q.Va.style.display= "none";q.qD=!1}jU(q.HE,P)||(q.HE=P,g.b0(b)?(q.Va.style.setProperty("width",P.width+"px","important"),q.Va.style.setProperty("height",P.height+"px","important")):g.qz(q.Va,P.getSize()),G=new g.Is(P.left,P.top),g.Wa(q.Va,Math.round(G.x),Math.round(G.y)),G=!0);a=new g.Xr((a.width-k.width)/2,(a.height-k.height)/2,k.width,k.height);jU(q.UG,a)||(q.UG=a,G=!0);g.IR(q.Va,"transform",w===1?"":"scaleX("+w+")");O&&N!==q.Ys&&(N&&(q.Va.addEventListener(By,q.BZ),q.Va.addEventListener("transitioncancel",q.BZ),q.Va.classList.add(g.El.VIDEO_CONTAINER_TRANSITIONING)), q.Ys=N,q.app.MB.publish("playerUnderlayVisibilityChange",q.Ys?"transitioning":"hidden"));return G}; Dac=function(q){q.Ow=!q.Ow;q.tF=!0;q.element.classList.toggle("ytp-retro-player",q.Ow);q.resize();q.tF=!1;q.app.MB.zl("onRetroModeChanged",q.Ow)}; RJ_=function(){this.csn=g.$f();this.clientPlaybackNonce=null;this.elements=new Set;this.W=new Set;this.V=new Set;this.U=new Set}; yTl=function(q){if(q.csn!==g.$f())if(q.csn==="UNDEFINED_CSN")q.csn=g.$f();else{var a=g.$f(),w=g.TX();if(a&&w){q.csn=a;for(var G=g.V(q.elements),k=G.next();!k.done;k=G.next())(k=k.value.visualElement)&&k.isClientVe()&&a&&w&&(g.dF("combine_ve_grafts")?kd(wq(),k,w):g.tK(g.cC)(void 0,a,w,k))}if(a)for(q=g.V(q.V),w=q.next();!w.done;w=q.next())(w=w.value.visualElement)&&w.isClientVe()&&g.tW(a,w)}}; g.Tb=function(q,a,w,G){g.c.call(this);var k=this;this.logger=new g.Zw("App");this.hg=this.cQ=!1;this.vE={};this.H_=[];this.e0=!1;this.sy=null;this.intentionalPlayback=!1;this.zm=!0;this.On=!1;this.YM=this.mE=this.fz=null;this.Yn=!0;this.mediaElement=this.Rr=null;this.hq=NaN;this.Oc=!1;this.lw=this.KZ=this.z4=this.screenLayer=this.playlist=null;this.Cq=[];this.pz=0;this.qh={vQ:function(){return k.Ra}, C6t:function(){return k.z4}}; this.logger.debug("constructor begin");if(!w)throw Error("b/179532961");this.lH=(a==null?void 0:a.args)||{};this.webPlayerContextConfig=w;aHy();a=this.lH;this.V7=new KA(a,w,w.canaryState,G,this);g.p(this,this.V7);xBU(this.V7);w=BoK(this.V7);this.V7.TZ()&&this.QR("h5vcc",w);this.V7.experiments.Zh("jspb_serialize_with_worker")&&H_y();this.V7.experiments.Zh("gzip_gel_with_worker")&&LaG();this.V7.U&&!qnm&&(window.addEventListener(iE?"touchstart":"click",Gay,{capture:!0,passive:!0}),qnm=!0);this.T("html5_onesie")&& (this.b7=new KC(this.V7),g.p(this,this.b7));this.U0=DS(g8(this.V7)&&!0,a.enablesizebutton);this.uU=DS(!1,a.player_wide);this.visibility=new E2y;g.p(this,this.visibility);this.T("web_log_theater_mode_visibility")&&this.X6(DS(!1,a.player_wide));this.cQ=DS(!1,a.external_list);this.events=new g.Ee(this);g.p(this,this.events);this.T("start_client_gcf")&&(E9(Q9(),{Qo:a5,FZ:RsG()}),this.CV=Q9().resolve(a5),gXy(this.CV));this.QNW=new LD;g.p(this,this.QNW);this.Mj=new RJ_;w=new BE;this.MB=new g.o$(this,w); g.p(this,this.MB);this.template=new umK(this);g.p(this,this.template);this.appState=1;this.wh=goU(this);g.p(this,w);w={};this.Jr=(w.internalvideodatachange=this.ZU,w.playbackready=this.Cet,w.playbackstarted=this.SKW,w.statechange=this.A28,w);this.bj=new F_(this.MB);this.AS=a_V(this);w=this.V7.L;!1!==w&&this.QR("badps",{hbp:w,hostname:window.location.hostname,ps:this.V7.playerStyle});this.ji=new UNU(this.V7,this.AS);this.MB.publish("csiinitialized");(this.webPlayerContextConfig.wasmModuleUrl||kIK(this.AS))&& w6K(this);w=10;g.Nh(this.V7)&&(w=3);EV(this.V7)&&(w=g.Wo(this.V7.experiments,"tvhtml5_unplugged_preload_cache_size"));this.Ra=new g.Wj(this.MB,w);w=GlK(this);this.Ra.I7(w);klf(this);w={};this.VI=(w.airplayactivechange=this.srT,w.airplayavailabilitychange=this.m1t,w.beginseeking=this.JiT,w.sabrCaptionsDataLoaded=this.YQ7,w.endseeking=this.V1t,w.internalAbandon=this.F69,w.internalaudioformatchange=this.KMK,w.internalvideodatachange=this.Rgt,w.internalvideoformatchange=this.vFG,w.liveviewshift=this.Uh7, w.playbackstalledatstart=this.H02,w.progresssync=this.y8K,w.onAbnormalityDetected=this.B$e,w.onSnackbarMessage=this.jah,w.onLoadProgress=this.dhT,w.SEEK_COMPLETE=this.c8Q,w.SEEK_TO=this.G07,w.onVideoProgress=this.L6G,w.onLoadedMetadata=this.O02,w.onAutoplayBlocked=this.IZl,w.onPlaybackPauseAtStart=this.W67,w.playbackready=this.qQ7,w.statechange=this.jB,w.newelementrequired=this.fJ,w.heartbeatparams=this.a0K,w.videoelementevent=this.i0l,w.drmoutputrestricted=this.ril,w.signatureexpired=this.f0G,w.nonfatalerror= this.u3e,w.reloadplayer=this.oFT,w);this.FT=new g.Ee(this);g.p(this,this.FT);this.UU=new Pg;g.p(this,this.UU);this.j9=this.hX=-1;this.Cy=new g.o1(this.template.resize,16,this.template);g.p(this,this.Cy);this.T0=new Q7l(this.MB,this.V7,this.UA(),this);this.uD=new oJ(this);g.p(this,this.uD);this.zw=new pE(this);g.p(this,this.zw);Xim(this.V7.V.c);this.events.C(this.MB,g.oM("appapi"),this.hGK);this.events.C(this.MB,g.IM("appapi"),this.PeG);this.events.C(this.MB,g.oM("appprogressboundary"),this.nFQ);this.events.C(this.MB, g.IM("applooprange"),this.BE);this.events.C(this.MB,"presentingplayerstatechange",this.fE);this.events.C(this.MB,"resize",this.A8t);this.template.HT(GY(document,q));this.events.C(this.MB,"offlineslatestatechange",this.x1t);this.events.C(this.MB,"sabrCaptionsTrackChanged",this.aot);this.events.C(this.MB,"sabrCaptionsBufferedRangesUpdated",this.V4B);this.AS.j.B().qM&&no(this.AS,"offline");this.V7.A2&&g.Jq("ux",g.Hj);q=g.Wo(this.V7.experiments,"html5_defer_fetch_att_ms");this.x_=new g.o1(this.fel,q, this);g.p(this,this.x_);this.UB().PN()&&(g.B5()&&this.UB().J.push("remote"),bRj(this));this.ji.tick("fs");ORy(this);this.V7.A2&&no(this.AS,"ux",!0);g.yw(this.AS.j.B())&&no(this.AS,"embed");this.T("web_player_sentinel_is_uniplayer")||g.Qa(new g.UH("Player experiment flags missing","web_player_sentinel_is_uniplayer"));q=this.T("web_player_sentinel_yt_experiments_sync");w=g.dF("web_player_sentinel_yt_experiments_sync");q!==w&&g.Qa(new g.UH("b/195699950",{yt:q,player:w}));this.dM=l_J(this);if(q=g.Wo(this.V7.experiments, "html5_block_pip_safari_delay"))this.Mv=new g.o1(this.OJ,q,this),g.p(this,this.Mv);xn=this.V7.Ck;this.MB.publish("applicationInitialized");this.logger.debug("constructor end")}; l_J=function(q){function a(w){w.stack&&w.stack.indexOf("player")!==-1&&q.xT().wZ(w)} AW.subscribe("handleError",a);II.push(a);return function(){AW.unsubscribe("handleError",a);var w=II.indexOf(a);w!==-1&&II.splice(w,1)}}; GlK=function(q){var a=new g.TO(q.V7,q.lH);q.MB.publish("initialvideodatacreated",a);return $i(q,1,a,!1)}; klf=function(q){var a=q.UA();a.setPlaybackRate(q.V7.Y?1:ekK(q,Number(g.xt("yt-player-playback-rate"))||1));a.Ie(q.Jr,q);a.nZ()}; a_V=function(q){var a="",w=oHJ(q);w.indexOf("//")===0&&(w=q.V7.protocol+":"+w);var G=w.lastIndexOf("/base.js");G!==-1&&(a=w.substring(0,G+1));if(w=Error().stack)if(w=w.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))w=w[1],w.includes(a)||g.Qa(Error("Player module URL mismatch: "+(w+" vs "+a+".")));a=new ayJ(q.MB,a);w={};wKV(a,(w.destroyed=function(){q.onApiChange()},w)); return a}; goU=function(q){if(q.V7.storeUserVolume){q=g.xt("yt-player-volume")||{};var a=q.volume;q={volume:isNaN(a)?100:g.X1(Math.floor(a),0,100),muted:!!q.muted}}else q={volume:100,muted:q.V7.mute};return q}; sS=function(q){q.mediaElement=q.V7.deviceIsAudioOnly?new g.zQ(g.dp("AUDIO")):cj.pop()||new g.zQ(g.dp("VIDEO"));g.p(q,q.mediaElement);q.xT().setMediaElement(q.mediaElement);try{q.V7.Nh?(q.KZ&&q.events.v5(q.KZ),q.KZ=q.events.C(q.mediaElement,"volumechange",q.wqe)):(q.mediaElement.pZ(q.wh.muted),q.mediaElement.setVolume(q.wh.volume/100))}catch(k){q.KO("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(k&&typeof k==="object"&&"message"in k&&typeof k.message==="string"&&k.message.replace(/[;:,]/g, "_")));return}g.JE(q.FT);Nfm(q);var a=q.template,w=q.mediaElement.cq();a.Va=w;a.E8=!1;a.Va.parentNode||Fr(a.ul,a.Va,0);a.HE=new g.Xr(0,0,0,0);W7y(a);KU(a);w=a.Va;g.gU(w,"video-stream");g.gU(w,g.El.MAIN_VIDEO);var G=a.app.B();G.PQ&&w.setAttribute("data-no-fullscreen","true");G.T("html5_local_playsinline")?"playsInline"in Tt()&&(w.playsInline=!0):G.OM&&(w.setAttribute("webkit-playsinline",""),w.setAttribute("playsinline",""));G.bN&&a.Va&&a.C(w,"click",w.play,w);try{q.mediaElement.activate()}catch(k){q.KO("html5.missingapi", 2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(k&&typeof k==="object"&&"message"in k&&typeof k.message==="string"&&k.message.replace(/[;:,]/g,"_")))}}; PDm=function(q){if(!YnN(q)){var a=q.UA().Z0();a&&(a=a.U$(),a instanceof Promise&&a.catch(function(){})); Fy(q,pW(q.getPlayerStateObject()))}}; Nfm=function(q){var a=q.mediaElement;Cf()?q.FT.C(a,"webkitpresentationmodechanged",q.U9Q):window.document.pictureInPictureEnabled&&(q.FT.C(a,"enterpictureinpicture",function(){q.wJ(!0)}),q.FT.C(a,"leavepictureinpicture",function(){q.wJ(!1)})); Ic&&(q.FT.C(a,"webkitbeginfullscreen",function(){q.gk(3)}),q.FT.C(a,"webkitendfullscreen",function(){q.gk(0)}))}; K8j=function(q,a){var w=a.getPlayerType(),G=q.Ra.W[w]||null;a!==q.UA()&&a!==G&&(G==null||G.dispose(),q.Ra.W[w]=a)}; dUc=function(q,a){a=a===void 0?!0:a;q.logger.debug("start clear presenting player");var w;if(w=q.lw){w=q.lw;var G=q.mediaElement;w=!!G&&G===w.mediaElement}w&&(q.Ha(),sS(q));w=q.xT();w.Ha(!a);w.KP(q.VI,q);w.getPlayerType()!==1&&w.dispose();a=q.Ra;a.U=a.V;D0(a);q.logger.debug("finish clear presenting player")}; g.Tf_=function(q,a,w,G){var k=q.ji;a===2&&(k=new UNU(q.V7));return new g.GQ(q.V7,a,k,q.template,function(b,O,e){q.MB.publish(b,O,e)},function(){return q.MB.getVisibilityState()},q.visibility,q,w,G)}; $i=function(q,a,w,G,k){q=g.Tf_(q,a,w,k);q=new g.wL(q);G&&q.nZ();return q}; CU=function(q,a){return q.aG(a)?q.UA():a}; Z5=function(q,a){var w=q.xT();return a===q.UA()&&q.aG(a)&&q.aG(w)?w:a}; F8y=function(q){q.logger.debug("start application playback");if(q.UA().getPlayerState().isError())q.logger.debug("start application playback done, player in error state");else{var a=ES(q);q.UB().isLoaded();a&&q.wF(6);$UN(q);dnl(q.AS)||sFN(q)}}; sFN=function(q){if(!ES(q)){var a=hq(q.AS);a&&!a.created&&GI_(q.AS)&&(q.logger.debug("reload ad module"),a.create())}}; $UN=function(q){q.logger.debug("start presenter playback");var a=q.getVideoData(),w=q.AS;dnl(w)||w.gW();!Bm&&w.j.T("html5_allow_asmjs")&&Z9l(w);no(w,"embed");no(w,"kids");no(w,"remote");no(w,"miniplayer");no(w,"offline");no(w,"unplugged");no(w,"ypc",!1,!0);w.j.T("html5_ypc_clickwrap_module_refactor")||no(w,"ypc_clickwrap",!1,!0);no(w,"yto",!1,!0);no(w,"webgl",!1,!0);TN_(w)||(no(w,"captions",!0),no(w,"endscreen"),w.fh(),no(w,"creatorendscreen",!0));w.gE();w.j.publish("modulesCreated");q.MB.publish("videoready", a)}; V8=function(q){q=q.UB();q.PN();return OT(q)}; ORy=function(q){q.logger.debug("start prepare initial playback");q.sL();var a=q.lH;sS(q);q.events.C(window,"resize",q.zgT);var w=q.UB();q.MB.pu("onVolumeChange",q.wh);if(a&&I5l(a)){var G=sV(q.V7);G&&!q.cQ&&(a.fetch=0);var k=g.yw(q.V7);k&&!q.cQ&&(a.fetch=0);Ju(q,a);g.yw(q.V7)&&q.ji.tick("ep_pr_s");if(!G||q.cQ)if(k&&!q.cQ)CDc(q);else if(!w.PN())q.playlist.onReady(function(){mP(q)})}q.Rk(q.UA(),!1,!0); g.v(q.UA().getPlayerState(),128)||(a=AyJ(!q.V7.deviceIsAudioOnly),a==="fmt.noneavailable"?q.KO("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):a==="html5.missingapi"?q.KO(a,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):w&&w.PN()&&V8(q)&&(q.V7.Q0||q.V7.VT)?Q8(q):w.Qu?q.MB.mutedAutoplay({durationMode:w.mutedAutoplayDurationMode}):g.xt("yt-player-playback-on-reload")?(g.aw("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!q.V7.y7}),g.AE("yt-player-playback-on-reload",!1), Q8(q)):Ad(q.V7)||ZRG(q),g.Zg(q.V7)||s1(q.V7)==="MWEB"?(g.uM(g.v5(),function(){Au(q)}),g.uM(g.v5(),function(){Q5c()})):(Au(q),Q5c()),q.logger.debug("finish prepare initial playback"))}; Au=function(q){if(!q.T("use_rta_for_player"))if(q.T("fetch_att_independently"))g.tD(q.x_);else{var a=q.getVideoData().botguardData;a&&g.Kx(a,q.V7,q.getVideoData().qj||"")}}; ZRG=function(q){q.logger.debug("start initialize to CUED mode");q.MB.publish("initializingmode");q.wF(2);no(q.AS,"remote");no(q.AS,"miniplayer");q.logger.debug("initialized to CUED mode")}; Q8=function(q){q.logger.debug("start initialize application playback");var a=q.UA();if(g.v(a.getPlayerState(),128))return!1;a=a.getVideoData();V8(q)&&q.V7.VT&&(cj.length&&q.hg?(xi(q,{muted:!1,volume:q.wh.volume},!1),LU(q,!1)):cj.length||q.wh.muted||(xi(q,{muted:!0,volume:q.wh.volume},!1),LU(q,!0)));V8(q)&&g.yw(q.V7)&&a.mutedAutoplay&&(xi(q,{muted:!0,volume:q.wh.volume},!1),LU(q,!0));a.E5&&xi(q,{muted:!0,volume:q.wh.volume},!1);Eom(q,1,a,!1);var w=q.UA();q.MB.publish("initializingmode");q.Rk(w);q.wF(3); var G;if(!(G=!q.V7.Q_)){if(G=q.lw){G=q.lw;var k=q.mediaElement;G=!!k&&k===G.mediaElement}G=G&&q.e0}G&&(q.Ha(),sS(q),w.setMediaElement(q.mediaElement));w.N7();if(g.v(w.getPlayerState(),128))return!1;a.sj||Fy(q,3);return q.e0=!0}; ES=function(q){q=tc(q.AS);return!!q&&q.loaded}; Vol=function(q,a){if(!q.Rr)return!1;var w=q.Rr.startTimeMs*.001-1,G=q.Rr.endTimeMs*.001;q.Rr.type==="repeatChapter"&&G--;return Math.abs(a-w)<=1E-6||Math.abs(a-G)<=1E-6||a>=w&&a<=G}; JRc=function(q){var a=q.xT();AF(a.getVideoData())&&!a.PY()&&(a=Bg(q)*1E3-q.getVideoData().LN,q.T("html5_gapless_new_slr")?(q=q.zw,rO(q.app,"gaplessshortslooprange"),a=new g.Xo(0,a,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(q=q.app.xT())&&q.addCueRange(a)):q.setLoopRange({startTimeMs:0,endTimeMs:a,type:"shortsLoop"}))}; mUj=function(q){var a=q.UA();if(!(g.v(a.getPlayerState(),64)&&q.UB().isLivePlayback&&q.Rr.startTimeMs<5E3)){if(q.Rr.type==="repeatChapter"){var w,G=(w=ZOc(q.Hq()))==null?void 0:w.Gg(),k;w=(k=q.getVideoData())==null?void 0:k.VT;G instanceof g.W1&&w&&(k=w[Pf(w,q.Rr.startTimeMs)],G.renderChapterSeekingAnimation(0,k.title));isNaN(Number(q.Rr.loopCount))?q.Rr.loopCount=0:q.Rr.loopCount++;q.Rr.loopCount===1&&q.MB.zl("innertubeCommand",q.getVideoData().Del)}G={e1:"application_loopRangeStart"};if(q.Rr.type=== "clips"||q.Rr.type==="shortsLoop")G.seekSource=58;a.seekTo(q.Rr.startTimeMs*.001,G)}}; ekK=function(q,a){var w=q.MB.getAvailablePlaybackRates();a=Number(a.toFixed(2));q=w[0];w=w[w.length-1];a<=q?a=q:a>=w?a=w:(q=Math.floor(a*100+.001)%5,a=q===0?a:Math.floor((a-q*.01)*100+.001)/100);return a}; Bg=function(q,a){a=q.lK({playerType:a});if(!a)return q.Ra.V.R_();a=CU(q,a);return nU(q,a.R_(),a)}; nU=function(q,a,w){if(q.aG(w)&&(w=w.getVideoData(),!MN(q))){q=q.T0;for(var G=g.V(q.U),k=G.next();!k.done;k=G.next())if(k=k.value,w.iK===k.iK){a+=k.YF/1E3;break}G=a;q=g.V(q.U);for(k=q.next();!k.done;k=q.next()){k=k.value;if(w.iK===k.iK)break;var b=k.YF/1E3;if(b1&&(k=!1);q.Oc&&k===a||(G=G.lock(k?"portrait":"landscape"),G!=null&&G.catch(function(){}),q.Oc=!0)}else q.Oc&&(q.Oc=!1,G.unlock())}; cg=function(q,a,w){q.MB.publish(a,w);var G=g.Nh(q.V7)||g.b0(q.V7)||g.BA(q.V7);if(w&&G){switch(a){case "cuerangemarkersupdated":var k="onCueRangeMarkersUpdated";break;case "cuerangesadded":k="onCueRangesAdded";break;case "cuerangesremoved":k="onCueRangesRemoved"}k&&q.MB.zl(k,w.map(function(b){return{getId:function(){return this.id}, end:b.end,id:b.getId(),namespace:b.namespace==="ad"?"ad":"",start:b.start,style:b.style,visible:b.visible,markerPositionMs:b.markerPositionMs}}))}}; pU=function(q,a,w,G,k,b){w=w===void 0?!0:w;var O=q.lK({playerType:k});if(!O||(O.getPlayerType()!==2||q.aG(O))&&!g.WD(O.getVideoData())){var e=q.Ra.Gn;e?e.seekTo(a,{SO:!w,SI:G,e1:"application",seekSource:b}):(O&&O===q.UA()&&q.Rr&&!Vol(q,a)&&q.setLoopRange(null),q.seekTo(a,w,G,k,b))}}; X6N=function(q,a,w,G){w&&(q.Ha(),sS(q));w=q.xT();w.Ts(a);var k=q.getVideoData(),b={};b.video_id=k.videoId;b.adformat=k.adFormat;k.isLivePlayback||(b.start=w.getCurrentTime(),b.resume="1");k.isLivePlayback&&fc(k)&&g.lt(q.V7)&&(b.live_utc_start=w.OB(),b.resume="1");k.f7&&(b.vvt=k.f7);k.L&&(b.vss_credentials_token=k.L,b.vss_credentials_token_type=k.aP);k.oauthToken&&(b.oauth_token=k.oauthToken);b.autoplay=1;b.reload_count=k.w$+1;b.reload_reason=a;k.u8&&(b.unplugged_partner_opt_out=k.u8);k.hJ&&(b.ypc_is_premiere_trailer= k.hJ);k.playerParams&&(b.player_params=k.playerParams);q.loadVideoByPlayerVars(b,void 0,!0,void 0,void 0,G);a==="signature"&&q.z4&&sFN(q)}; jFN=function(q,a){q.UB().autonavState=a;g.AE("yt-player-autonavstate",a);q.MB.publish("autonavchange",a)}; ooG=function(q){var a=q.getVideoData().CF,w=q.V7.BT,G=q.isInline()&&!q.getVideoData().fL,k=q.mediaElement;a||w||G?k.IC():(k.UC(),xi(q,q.wh))}; hu=function(q){var a=hq(q.Hq());a&&a.created&&(q.logger.debug("reset ad module"),a.destroy())}; MN=function(q){return q.getVideoData().enableServerStitchedDai&&!!q.z4}; I_j=function(q,a){a.bounds=q.getBoundingClientRect();for(var w=g.V(["display","opacity","visibility","zIndex"]),G=w.next();!G.done;G=w.next())G=G.value,a[G]=va(q,G);a.hidden=!!q.hidden}; oHJ=function(q){var a=q.webPlayerContextConfig.trustedJsUrl;return a?Fg(a).toString():q.webPlayerContextConfig.jsUrl}; uzG=function(q,a){var w=q.lK({playerType:1});if(w){if(w.getVideoData().clientPlaybackNonce===a)return w;if((q=q.uD.V)&&q.getVideoData().clientPlaybackNonce===a)return q}return null}; w6K=function(q){function a(G){return jZ(ECG(q.AS),function(k){return k.pB(G)})} q.ji.tick("wasm_s");var w=C3c(q.webPlayerContextConfig.wasmModuleUrl,kIK(q.AS)?a:void 0,q.QR.bind(q));w==null||jZ(w,function(G){q.ji.tick(G.V?"wasm_fa":"wasm_fw")},function(){q.ji.tick("wasm_ferr")}); WTU(q.V7,w)}; toJ=function(q){return q.name==="TypeError"&&q.stack.includes("/s/player/")&&Se()<=105}; voV=function(q){return q.isTimeout?"NO_BID":"ERR_BID"}; zky=function(){var q=null;xAm().then(function(a){return q=a},function(a){return q=voV(a)}); return q}; iRJ=function(){var q=cO(1E3,"NO_BID");return g.ht(I9l([xAm(),q]).AK(voV),function(){q.cancel()})}; US=function(q){return q.RA?g.S2(g.hE(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; Xy=function(q){this.player=q;this.W=this.V=1}; RkJ=function(q,a,w,G,k,b){a.client||(a.client={});q.player.B().T("h5_remove_url_for_get_ad_break")||(a.client.originalUrl=w);var O=gF(w),e=g.Nr(w)?!1:!0;(O||e)&&typeof Intl!=="undefined"&&(a.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);e=g.Nr(w)?!1:!0;if(O||e||G!==""){var N={};w=ix(bO(G)).split("&");var Y=new Map;w.forEach(function(P){P=P.split("=");P.length>1&&Y.set(P[0].toString(),decodeURIComponent(P[1].toString()))}); Y.has("bid")&&(N.bid=Y.get("bid"));N.params=[];W8c.forEach(function(P){Y.has(P)&&(P={key:P,value:Y.get(P)},N.params.push(P))}); DUm(q,N);a.adSignalsInfo=N}a.client.unpluggedAppInfo||(a.client.unpluggedAppInfo={});a.client.unpluggedAppInfo.enableFilterMode=!1;w=k.V.cosver;w!=null&&w!=="cosver"&&(a.client.osVersion=w);w=k.V.cplatform;w!=null&&w!=="cplatform"&&w!==""&&(a.client.platform=w);w=k.V.cmodel;w!=null&&w!=="cmodel"&&(a.client.deviceModel=w);w=k.V.cplayer;w!=null&&w!=="cplayer"&&(a.client.playerType=w);w=k.V.cbrand;w!=null&&w!=="cbrand"&&(a.client.deviceMake=w);a.user||(a.user={});a.user.lockedSafetyMode=!1;(k.T("embeds_web_enable_iframe_api_send_full_embed_url")|| k.T("embeds_enable_autoplay_and_visibility_signals"))&&g.kM(k)&&btl(a,b,q.player.getPlayerState(1))}; ghJ=function(q,a){var w=!1;if(a==="")return w;a.split(",").forEach(function(G){var k={},b={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},O="ACTIVE";G[0]==="!"&&(G=G.substring(1),O="INACTIVE");G=G.split("-");G.length<3||(G[0]in yRc&&(b.clientName=yRc[G[0]]),G[1]in qcy&&(b.platform=qcy[G[1]]),b.applicationState=O,b.clientVersion=G.length>2?G[2]:"",k.remoteClient=b,q.remoteContexts?q.remoteContexts.push(k):q.remoteContexts=[k],w=!0)}); return w}; wWV=function(q){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in a4V))return!1;q=q.split(RegExp("[:&]"));var a=a4V.FLAG_AUTO_CAPTIONS_DEFAULT_ON,w="f"+(1+Math.floor(a/31)).toString();a=1<=2?O[1]:"";var e=kPc.test(a),N=bLl.exec(a);N=N!=null&&N.length>=2?N[1]:"";var Y=OLK.exec(a);Y=Y!=null&&Y.length>=2&&!Number.isNaN(Number(Y[1]))?Number(Y[1]):1;var P=l4V.exec(a);P=P!=null&&P.length>=2?P[1]:"0";var K=N2(q.player.B().pE),d=q.player.getVideoData(1),T=g.IA(d.L7,!0),F="BISCOTTI_ID"in w?w.BISCOTTI_ID:"";RkJ(q,T,a,F.toString(),q.player.B(), d);d={splay:!1,lactMilliseconds:w.LACT.toString(),playerHeightPixels:Math.trunc(w.P_H),playerWidthPixels:Math.trunc(w.P_W),vis:Math.trunc(w.VIS),signatureTimestamp:20305,autonavState:US(q.player.B())};G&&(G={},ghJ(G,w.YT_REMOTE)&&(d.mdxContext=G));if(G=eay.includes(K)?void 0:g.rF("PREF")){for(var J=G.split(RegExp("[:&]")),Q=0,B=J.length;Q1&&L[1].toUpperCase()==="TRUE"){T.user.lockedSafetyMode=!0;break}}d.autoCaptionsDefaultOn= wWV(G)}a=NTK.exec(a);(a=a!=null&&a.length>=2?a[1]:"")&&N&&(T.user.credentialTransferTokens=[{token:a,scope:"VIDEO"}]);a={contentPlaybackContext:d};O={adBlock:Math.trunc(w.AD_BLOCK),params:O,breakIndex:Y,breakPositionMs:P,clientPlaybackNonce:w.CPN,topLevelDomain:K,isProxyAdTagRequest:e,context:T,adSignalsInfoString:ix(bO(F.toString())),overridePlaybackContext:a};k!==void 0&&(O.cueProcessedMs=Math.round(k).toString());N&&(O.videoId=N);w.LIVE_TARGETING_CONTEXT&&(O.liveTargetingParams=w.LIVE_TARGETING_CONTEXT); w.AD_BREAK_LENGTH&&(O.breakLengthMs=Math.trunc(w.AD_BREAK_LENGTH*1E3).toString());b&&(O.driftFromHeadMs=b.toString());O.currentMediaTimeMs=Math.round(q.player.getCurrentTime(1)*1E3);(q=q.player.getGetAdBreakContext())&&(O.getAdBreakContext=q);return O}; PgG=function(){Xy.apply(this,arguments)}; KHl=function(q,a,w,G,k){var b=w.Qv;var O=w.nW;var e=q.player.B().gT,N=0;w.cueProcessedMs&&O&&!b&&(w=O.end-O.start,w>0&&(N=Math.floor(w/1E3)));var Y={AD_BLOCK:k,AD_BREAK_LENGTH:b?b.LT:N,AUTONAV_STATE:US(q.player.B()),CA_TYPE:"image",CPN:q.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:q.player.YK()*1E3,LACT:s9(),LIVE_INDEX:b?q.W++:1,LIVE_TARGETING_CONTEXT:b&&b.context?b.context:"",MIDROLL_POS:O?Math.round(O.start/1E3):0,MIDROLL_POS_MS:O?Math.round(O.start):0,VIS:q.player.getVisibilityState(), P_H:q.player.mQ().uM().height,P_W:q.player.mQ().uM().width,YT_REMOTE:e?e.join(","):""},P=kn(Gn);Object.keys(P).forEach(function(K){P[K]!=null&&(Y[K.toUpperCase()]=P[K].toString())}); G!==""&&(Y.BISCOTTI_ID=G);G={};wF(a)&&(G.sts="20305",(q=q.player.B().forcedExperiments)&&(G.forced_experiments=q));return qL(g.AD(a,Y),G)}; d$l=function(q,a){var w=q.player.B(),G,k=(G=q.player.getVideoData(1))==null?void 0:G.oauthToken;return g.B8(w,k).then(function(b){if(b&&ac()){var O=gL();a0(O,b)}return g.Bt(q.player.e2(O),a,"/youtubei/v1/player/ad_break").then(function(e){return e})})}; TTc=function(q){this.p7=q}; $$l=function(q){this.j=q}; sHU=function(q){this.p7=q}; CgK=function(q){g.c.call(this);this.V=q;this.GK=FHj(this)}; FHj=function(q){var a=new AN_(q.V.S1);g.p(q,a);q=[new TTc(q.V.p7),new $$l(q.V.j),new sHU(q.V.p7),new d5(q.V.L3,q.V.IP),new $W,new CG(q.V.s3,q.V.QV,q.V.p7),new Tv,new KG];q=g.V(q);for(var w=q.next();!w.done;w=q.next())x9V(a,w.value);q=g.V(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(w=q.next();!w.done;w=q.next())s4(a,w.value,function(){}); return a}; j$=function(q){var a=q.n7,w=q.Q7;q=q.VE;var G=new uvN,k={S2:new mlm(a.get(),w),Q7:w};return{lF:new MS(w,q,a,k),context:k,bT:G}}; oQ=function(q,a,w,G,k){g.c.call(this);this.U=a;this.RW=w;this.n7=G;this.wz=k;this.listeners=[];var b=new EH(this);g.p(this,b);b.C(q,"internalAbandon",this.pq7);this.addOnDisposeCallback(function(){g.JE(b)})}; IQ=function(q){this.j=q;this.adVideoId=this.V=this.videoId=this.adCpn=this.contentCpn=null;this.D=!0;this.U=this.W=!1;this.adFormat=null;this.Y="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; ZLc=function(q){q.contentCpn=null;q.adCpn=null;q.videoId=null;q.adVideoId=null;q.adFormat=null;q.Y="AD_PLACEMENT_KIND_UNKNOWN";q.actionType="unknown_type";q.W=!1;q.U=!1}; EhN=function(q,a){q=g.V(a);for(a=q.next();!a.done;a=q.next())if((a=a.value.renderer)&&(a.instreamVideoAdRenderer||a.linearAdSequenceRenderer||a.sandwichedLinearAdRenderer||a.instreamSurveyAdRenderer)){E3("ad_i");g.VI({isMonetized:!0});break}}; VBV=function(q){var a;(a=q.j.getVideoData(1))!=null&&a.UK&&(q.U=!1,a={},q.V&&q.videoId&&(a.cttAuthInfo={token:q.V,videoId:q.videoId}),Jf("video_to_ad",a))}; Fp=function(q){q.U=!1;var a={};q.V&&q.videoId&&(a.cttAuthInfo={token:q.V,videoId:q.videoId});Jf("ad_to_video",a);JUN(q)}; JUN=function(q){if(q.W)if(q.Y==="AD_PLACEMENT_KIND_START"&&q.actionType==="video_to_ad")F2("video_to_ad");else{var a={adBreakType:iw(q.Y),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:q.videoStreamType};q.actionType==="ad_to_video"?(q.contentCpn&&(a.targetCpn=q.contentCpn),q.videoId&&(a.targetVideoId=q.videoId)):(q.adCpn&&(a.targetCpn=q.adCpn),q.adVideoId&&(a.targetVideoId=q.adVideoId));q.adFormat&&(a.adType=q.adFormat);q.contentCpn&& (a.clientPlaybackNonce=q.contentCpn);q.videoId&&(a.videoId=q.videoId);q.adCpn&&(a.adClientPlaybackNonce=q.adCpn);q.adVideoId&&(a.adVideoId=q.adVideoId);g.VI(a,q.actionType);q.j.B().experiments.Zh("html5_ads_csi_qoes")&&(a=q.j.cI(q.actionType==="ad_to_video"?1:2),a=(0,g.Zj)()-1E3*a,QI("qoes",a,q.actionType))}}; ue=function(q){g.c.call(this);this.j=q;this.V=new Map;this.U=new EH(this);g.p(this,this.U);this.U.C(this.j,g.oM("ad"),this.onCueRangeEnter,this);this.U.C(this.j,g.IM("ad"),this.onCueRangeExit,this)}; m$l=function(q,a,w,G,k,b,O){g.Xo.call(this,a,w,{id:q,namespace:"ad",priority:k,visible:G,associatedClipId:b,markerPositionMs:O})}; tu=function(q){this.j=q}; QHU=function(q,a){q.j.cueVideoByPlayerVars(a,2)}; vg=function(q){this.j=q}; zb=function(q){this.j=q;g.Wo(this.j.B().experiments,"tv_pacf_logging_sample_rate")}; AUl=function(q){return Mh(q,"html5_ssap_play_cached_preroll")}; eG=function(q,a){a=a===void 0?!1:a;return q.j.B().T("html5_ssap_force_ads_ctmp")?!0:(a||q.j.B().TZ())&&q.j.B().T("html5_ssap_pacf_qoe_ctmp")}; ie=function(q){var a;return(a=q.j.getVideoData(1)==null?void 0:!1)!=null?a:!1}; Mh=function(q,a){return q.j.B().T(a)}; x$J=function(q){return q.j.B().T("substitute_ad_cpn_macro_in_ssdai")}; iU=function(q){var a,w,G;return((a=q.j.getVideoData(1).getPlayerResponse())==null?void 0:(w=a.playerConfig)==null?void 0:(G=w.daiConfig)==null?void 0:G.enableServerStitchedDai)||!1}; c4y=function(q){return q.j.B().T("html5_enable_vod_slar_with_notify_pacf")}; LHc=function(q){return q.j.B().T("html5_recognize_predict_start_cue_point")}; xB=function(q){return q.j.B().experiments.Zh("enable_desktop_player_underlay")}; BTK=function(q){return q.j.B().experiments.Zh("html5_load_empty_player_in_media_break_sub_lra")}; Of=function(q){return q.j.B().experiments.Zh("html5_load_ads_instead_of_cue")}; l3=function(q){return q.j.B().experiments.Zh("html5_preload_ads")}; rUG=function(q){return q.j.B().experiments.Zh("should_ignore_cuepoints_during_lifa_preroll")}; A6=function(q){return q.j.B().experiments.Zh("enable_ads_control_flow_deterministic_id_generation")}; nhy=function(q){return q.j.B().experiments.Zh("enable_desktop_discovery_video_abandon_pings")||g.FY(q.j.B())}; MBj=function(q){return q.j.B().experiments.Zh("enable_progres_commands_lr_feeds")}; W9=function(q){return q.j.B().experiments.Zh("html5_cuepoint_identifier_logging")}; uTm=function(q){q=q.j.getVideoData(1);return!!q&&q.T("html5_preload_first_vod_video_ad")&&!q.isDaiEnabled()&&!q.isLivePlayback}; haj=function(q){return q.j.B().experiments.Zh("html5_ssdai_enable_media_end_cue_range")}; ScK=function(q){switch(q){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}}; f4l=function(){g.ya.call(this);var q=this;this.V={};this.addOnDisposeCallback(function(){for(var a=g.V(Object.keys(q.V)),w=a.next();!w.done;w=a.next())delete q.V[w.value]})}; Wg=function(){if(HLj===null){HLj=new f4l;ZD(z$).U="b";var q=ZD(z$),a=Xc(q)=="h"||Xc(q)=="b",w=!(wY(),!1);a&&w&&(q.D=!0,q.L=new Nbf)}return HLj}; cUf=function(q,a,w){q.V[a]=w}; pWN=function(q){switch(q){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}}; D5=function(q,a,w){this.RW=q;this.j=a;this.Q7=w;this.U=new Set;this.V=new Map;Wg().subscribe("adactiveviewmeasurable",this.tT,this);Wg().subscribe("adfullyviewableaudiblehalfdurationimpression",this.pg,this);Wg().subscribe("adviewableimpression",this.Ei,this);Wg().subscribe("adaudioaudible",this.Lg,this);Wg().subscribe("adaudiomeasurable",this.DA,this)}; y8=function(q,a,w){var G=w.zH,k=w.Ac,b=w.listener,O=w.aT;w=w.z8===void 0?!1:w.z8;if(q.V.has(a))Gj("Unexpected registration of layout in LidarApi");else{if(O){if(q.U.has(O))return;q.U.add(O)}q.V.set(a,b);Q2(wY().H5,"fmd",1);ZbU(ZD(z$),G);var e=w?a:void 0;cUf(Wg(),a,{sC:function(){if(!k)return{};var N=q.j.getPresentingPlayerType(!0),Y;return(Y=q.j.getVideoData(N))!=null&&Y.isAd()?{currentTime:q.RW.get().getCurrentTimeSec(N,!1,e),duration:k,isPlaying:RQ(q.RW.get(),N).isPlaying(),isVpaid:!1,isYouTube:!0, volume:q.RW.get().isMuted()?0:q.RW.get().getVolume()/100}:{}}})}}; qn=function(q,a){q.V.has(a)?(q.V.delete(a),delete Wg().V[a]):Gj("Unexpected unregistration of layout in LidarApi")}; U$y=function(q,a){if(q.j.isLifaAdPlaying()){var w=q.j.f3(!0,!0);q.rJ(a,w.width*.5*1.1,w.height*.25*1.1,w.width*.5*.9,w.height*.5*.9)}}; ohf=function(q,a,w){var G={};XWV(q,G,a,w);jHm(G);G.LACT=gN(function(){return s9().toString()}); G.VIS=gN(function(){return q.getVisibilityState().toString()}); G.SDKV="h.3.0";G.VOL=gN(function(){return q.isMuted()?"0":Math.round(q.getVolume()).toString()}); G.VED="";return G}; I4l=function(q,a){var w={};if(a||!q||!q.kind)return w;if(q.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||q.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!q.adTimeOffset||!q.adTimeOffset.offsetStartMilliseconds)return g.mQ(Error("malformed AdPlacementConfig")),w;w.MIDROLL_POS=gN(nn(Math.round(h7(q.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else w.MIDROLL_POS=gN(nn("0"));return w}; gN=function(q){return{toString:function(){return q()}}}; uBm=function(q,a,w){function G(e,N){(N=w[N])&&(b[e]=N)} function k(e,N){(N=w[N])&&(b[e]=O(N))} if(!w||g.KH(w))return q;var b=Object.assign({},q),O=a?encodeURIComponent:function(e){return e}; k("DV_VIEWABILITY","doubleVerifyViewability");k("IAS_VIEWABILITY","integralAdsViewability");k("MOAT_INIT","moatInit");k("MOAT_VIEWABILITY","moatViewability");G("GOOGLE_VIEWABILITY","googleViewability");G("VIEWABILITY","viewability");return b}; XWV=function(q,a,w,G){a.CPN=gN(function(){var k;(k=q.getVideoData(1))?k=k.clientPlaybackNonce:(g.Qa(Error("Video data is null.")),k=null);return k}); a.AD_MT=gN(function(){if(G!=null)var k=G;else{var b=w;q.B().T("html5_ssap_use_cpn_to_get_time")||(b=void 0);if(q.B().T("enable_h5_shorts_ad_fill_ad_mt_macro")||q.B().T("enable_desktop_discovery_pings_ad_mt_macro")||g.FY(q.B())){var O=q.getPresentingPlayerType(!0),e;k=((e=q.getVideoData(O))==null?0:e.isAd())?tBc(q,O,b):0}else k=tBc(q,2,b)}return vhf(k)}); a.MT=gN(function(){return vhf(q.getCurrentTime(1,!1))}); a.P_H=gN(function(){return q.mQ().uM().height.toString()}); a.P_W=gN(function(){return q.mQ().uM().width.toString()}); a.PV_H=gN(function(){return q.mQ().getVideoContentRect().height.toString()}); a.PV_W=gN(function(){return q.mQ().getVideoContentRect().width.toString()})}; vhf=function(q){return Math.round(Math.max(0,q*1E3)).toString()}; jHm=function(q){q.CONN=gN(nn("0"));q.WT=gN(function(){return Date.now().toString()})}; tBc=function(q,a,w){return w!==void 0?q.getCurrentTime(a,!1,w):q.getCurrentTime(a,!1)}; zam=function(){}; iLG=function(q,a,w,G,k){var b,O,e,N,Y,P,K,d,T,F,J,Q,B;g.h(function(L){switch(L.U){case 1:b=!!a.scrubReferrer;O=g.AD(a.baseUrl,uBm(w,b,G));e={};if(!a.headers){L.Gl(2);break}N=q.Y();if(!N.V){Y=N.getValue();L.Gl(3);break}return g.n(L,N.V,4);case 4:Y=L.V;case 3:P=Y;K=g.V(a.headers);for(d=K.next();!d.done;d=K.next())switch(T=d.value,T.headerType){case "VISITOR_ID":g.UL("VISITOR_DATA")&&(e["X-Goog-Visitor-Id"]=g.UL("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.UL("EOM_VISITOR_DATA")&&(e["X-Goog-EOM-Visitor-Id"]= g.UL("EOM_VISITOR_DATA"));break;case "USER_AUTH":P&&(e.Authorization="Bearer "+P);break;case "PLUS_PAGE_ID":(F=q.D())&&(e["X-Goog-PageId"]=F);break;case "AUTH_USER":J=q.V();!P&&J&&(e["X-Goog-AuthUser"]=J);break;case "DATASYNC_ID":if(Q=void 0,(Q=q.W())==null?0:Q.Zh("enable_datasync_id_header_in_web_vss_pings"))B=q.U(),gF(O)&&g.UL("LOGGED_IN")&&B&&(e["X-YouTube-DataSync-Id"]=B)}"X-Goog-EOM-Visitor-Id"in e&&"X-Goog-Visitor-Id"in e&&delete e["X-Goog-Visitor-Id"];case 2:g.re(O,void 0,b,Object.keys(e).length!== 0?e:void 0,"",!0,k),g.Jm(L)}})}; WHl=function(q,a,w,G,k){this.Y=q;this.D=a;this.V=w;this.U=G;this.W=k}; D$c=function(q,a){this.V=q;this.Q7=a}; a8=function(q,a,w,G,k,b,O){var e=e===void 0?new WHl(function(){var N=q.B(),Y=q.getVideoData(1);return g.B8(N,Y?g.li(Y):"")},function(){return q.B().pageId},function(){return q.B().y7},function(){var N; return(N=q.B().datasyncId)!=null?N:""},function(){return q.B().experiments}):e; this.j=q;this.U=a;this.q1=w;this.n7=G;this.lF=k;this.Q7=b;this.bT=O;this.Y=e;this.E6=null;this.V=new Map;this.W=new D$c(e,this.Q7)}; yUf=function(q,a,w,G,k){var b=kR(q.U.get(),w);b?(w=Kt(q,Ral(b),b,void 0,void 0,G),a.hasOwnProperty("baseUrl")?q.Y.send(a,w):q.W.send(a,w,{},k)):Gj("Trying to ping from an unknown layout",void 0,void 0,{layoutId:w})}; hYJ=function(q,a,w,G,k,b){G=G===void 0?[]:G;var O=kR(q.U.get(),a);if(O){var e=q.q1.get().SG(a,w),N=Kt(q,Ral(O),O,k,b);G.forEach(function(Y,P){Y.baseUrl&&(q.W.send(Y.baseUrl,N,e,Y.attributionSrcMode),Y.serializedAdPingMetadata&&q.lF.Cm("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,O,new djc(Y,P),void 0,void 0,O.adLayoutLoggingData))})}else Gj("Trying to track from an unknown layout.",void 0,void 0,{layoutId:a, trackingType:w})}; bf=function(q,a){q.j.sendVideoStatsEngageEvent(a,void 0,2)}; A9=function(q,a){g.aw("adsClientStateChange",a)}; qj8=function(q,a){q.V.has(a.hd())?Gj("Trying to register an existing AdErrorInfoSupplier."):q.V.set(a.hd(),a)}; gl8=function(q,a){q.V.delete(a.hd())||Gj("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; Bk=function(q,a,w){typeof w==="string"?q.j.getVideoData(1).qP(a,w):q.j.getVideoData(1).d8(a,w)}; Ral=function(q){var a=oZ(q.clientMetadata,"metadata_type_ad_placement_config");q=oZ(q.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:a,t3:q}}; Kt=function(q,a,w,G,k,b){var O=w?acB(q):{},e=w?wJV(q,w.layoutId):{},N=GfK(q),Y,P=k!=null?k:(Y=uw(q.n7.get(),2))==null?void 0:Y.clientPlaybackNonce;k=void 0;if(w){var K;if((K=q.bT.V.get(w.layoutId))==null?0:K.z8)k=w.layoutId}K={};q=Object.assign({},ohf(q.j,k,G),I4l(a.adPlacementConfig,(w==null?void 0:w.renderingContent)!==void 0),e,O,N,(K.FINAL=gN(function(){return"1"}),K.AD_CPN=gN(function(){return P||""}),K)); (w==null?void 0:w.renderingContent)!==void 0||(q.SLOT_POS=gN(function(){return(a.t3||0).toString()})); w={};b=Object.assign({},q,b);q=g.V(Object.values(kf6));for(G=q.next();!G.done;G=q.next())G=G.value,O=b[G],O!=null&&O.toString()!=null&&(w[G]=O.toString());return w}; acB=function(q){var a={},w,G=(w=q.E6)==null?void 0:w.Uj/1E3;G!=null&&(a.SURVEY_ELAPSED_MS=gN(function(){return Math.round(G*1E3).toString()})); a.SURVEY_LOCAL_TIME_EPOCH_S=gN(function(){return Math.round(Date.now()/1E3).toString()}); return a}; wJV=function(q,a){q=q.V.get(a);if(!q)return{};q=q.Nv();if(!q)return{};a={};return a.YT_ERROR_CODE=q.BV.toString(),a.ERRORCODE=q.C5.toString(),a.ERROR_MSG=q.errorMessage,a}; GfK=function(q){var a={},w=q.j.getVideoData(1);a.ASR=gN(function(){var G;return(G=w==null?void 0:w.rF)!=null?G:null}); a.EI=gN(function(){var G;return(G=w==null?void 0:w.eventId)!=null?G:null}); return a}; wN=function(q,a,w){g.c.call(this);this.j=q;this.xX=a;this.Q7=w;this.listeners=[];this.iU=null;this.ZT=new Map;a=new g.Ee(this);g.p(this,a);a.C(q,"videodatachange",this.e97);a.C(q,"serverstitchedvideochange",this.uCQ);this.oz=uw(this)}; uw=function(q,a){var w=q.j.getVideoData(a);return w?q.Bo(w,a||q.j.getPresentingPlayerType(!0)):null}; bKR=function(q,a,w){var G=q.Bo(a,w);q.oz=G;q.listeners.forEach(function(k){k.CX(G)})}; OKw=function(q){switch(q){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}}; GI=function(q,a,w){g.c.call(this);this.j=q;this.n7=a;this.Q7=w;this.listeners=[];this.b2=[];this.V=function(){Gj("Called 'doUnlockPreroll' before it's initialized.")}; a=new EH(this);w=new g.Ee(this);g.p(this,w);g.p(this,a);a.C(q,"progresssync",this.M1l);a.C(q,"presentingplayerstatechange",this.Qae);a.C(q,"fullscreentoggled",this.onFullscreenToggled);a.C(q,"onVolumeChange",this.onVolumeChange);a.C(q,"minimized",this.jG);a.C(q,"overlayvisibilitychange",this.lD);a.C(q,"shortsadswipe",this.Nz);a.C(q,"resize",this.sA);w.C(q,g.oM("appad"),this.Tg)}; kC=function(q){ie(q.Q7.get())||q.V()}; lcy=function(q,a){q.b2=q.b2.filter(function(w){return w!==a})}; b7=function(q,a,w){return q.getCurrentTimeSec(a,w)}; O$=function(q,a){var w;a=(w=q.n7.get().ZT.get(a))!=null?w:null;if(a===null)return Gj("Expected ad video start time on playback timeline"),0;q=q.j.getCurrentTime(2,!0);return q0){var b=a.end.toString();k.forEach(function(O){(O=O.config&&O.config.adPlacementConfig)&&O.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&O.adTimeOffset&&O.adTimeOffset.offsetEndMilliseconds==="-1"&&O.adTimeOffset.offsetEndMilliseconds!==b&&(O.adTimeOffset.offsetEndMilliseconds=b)}); G.map(function(O){return g.I(O,P9)}).forEach(function(O){var e; (O=O==null?void 0:(e=O.slotEntryTrigger)==null?void 0:e.mediaTimeRangeTrigger)&&O.offsetEndMilliseconds==="-1"&&(O.offsetEndMilliseconds=b)})}return{x6:k, adSlots:G,P_:!1,ssdaiAdsConfig:q.ssdaiAdsConfig}}; PK=function(q){g.c.call(this);this.j=q;this.listeners=[];this.V=new EH(this);g.p(this,this.V);this.V.C(this.j,"aduxclicked",this.onAdUxClicked);this.V.C(this.j,"aduxmouseover",this.zr);this.V.C(this.j,"aduxmouseout",this.Aq);this.V.C(this.j,"muteadaccepted",this.gTW)}; Kll=function(q,a,w){a=g.sd(a,function(G){return new X5U(G,w,G.id)}); q.j.zl("onAdUxUpdate",a)}; K9=function(q,a){q=g.V(q.listeners);for(var w=q.next();!w.done;w=q.next())a(w.value)}; dN=function(q,a){this.U=q;this.W=a===void 0?!1:a;this.V={}}; dm8=function(q,a){var w=q.startSecs+q.LT;w=w<=0?null:w;if(w===null)return null;switch(q.event){case "start":case "continue":case "stop":break;case "predictStart":if(a)break;return null;default:return null}a=Math.max(q.startSecs,0);return{KV:new FN(a,w),TL:new lp(a,w-a,q.context,q.identifier,q.event,q.V)}}; Tcl=function(){this.V=[]}; M3G=function(q,a,w){var G=g.oB(q.V,a);if(G>=0)return a;a=-G-1;return a>=q.V.length||q.V[a]>w?null:q.V[a]}; TI=function(q,a,w){g.c.call(this);this.j=q;this.Q7=a;this.p7=w;this.listeners=[];this.Y=!1;this.CZ=[];this.V=null;this.D=new dN(this,LHc(a.get()));this.W=new Tcl;this.U=null}; $m7=function(q,a){q.CZ.push(a);for(var w=!1,G=g.V(q.listeners),k=G.next();!k.done;k=G.next())w=k.value.Dn(a)||w;q.Y=w;W9(q.Q7.get())&&Bk(q.p7.get(),"onci","cpi."+a.identifier+";cpe."+a.event+";cps."+a.startSecs+";cbi."+w)}; FlV=function(q,a){A9(q.p7.get(),{cuepointTrigger:{event:s_c(a.event),cuepointId:a.identifier,totalCueDurationMs:a.LT*1E3,playheadTimeMs:a.V,cueStartTimeMs:a.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:q.j.getVideoData(1).clientPlaybackNonce}})}; s_c=function(q){switch(q){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 Y1(q,"Unexpected cuepoint event")}}; $C=function(q){this.j=q}; s$=function(q){this.j=q}; CGJ=function(q){switch(q){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:Y1(q,"unknown transitionReason")}}; Ff=function(){g.c.apply(this,arguments);this.Ky8=new Map}; ZKR=function(q){this.j=q}; Ell=function(q,a,w,G,k){g.c.call(this);var b=this,O=Qg(function(){return new Qd(b.Q7)}); g.p(this,O);var e=Qg(function(){return new xR(O,b.Q7)}); g.p(this,e);var N=Qg(function(){return new wt}); g.p(this,N);var Y=Qg(function(){return new gt(q)}); g.p(this,Y);var P=Qg(function(){return new LO(O,e,b.Q7)}); g.p(this,P);var K=Qg(function(){return new h6}); g.p(this,K);this.F3=Qg(function(){return new PK(a)}); g.p(this,this.F3);this.Lk=Qg(function(){return new xP(k)}); g.p(this,this.Lk);this.j1=Qg(function(){return new IQ(a)}); g.p(this,this.j1);this.ya=Qg(function(){return new ue(a)}); g.p(this,this.ya);this.oa=Qg(function(){return new tu(a)}); g.p(this,this.oa);this.S1=Qg(function(){return new vg(a)}); g.p(this,this.S1);this.Q7=Qg(function(){return new zb(a)}); g.p(this,this.Q7);var d=Qg(function(){return new YC(G)}); g.p(this,d);var T=Qg(function(){return new D8(b.Q7)}); g.p(this,T);this.TN=Qg(function(){return new $C(a)}); g.p(this,this.TN);this.m1=Qg(function(){return new r3}); g.p(this,this.m1);this.n7=Qg(function(){return new wN(a,K,b.Q7)}); g.p(this,this.n7);var F=j$({n7:this.n7,Q7:this.Q7,VE:T}),J=F.context,Q=F.bT;this.lF=F.lF;this.wz=Qg(function(){return new TI(a,b.Q7,b.p7)}); g.p(this,this.wz);this.W5=Qg(function(){return new s$(a)}); g.p(this,this.W5);this.RW=Qg(function(){return new GI(a,b.n7,b.Q7)}); g.p(this,this.RW);this.d4=Qg(function(){return new Ff}); g.p(this,this.d4);F=Qg(function(){return new uU(O,P,e,b.Q7,T,"SLOT_TYPE_ABOVE_FEED",b.RW,b.Xm,b.gx)}); g.p(this,F);this.by=Qg(function(){return new np(b.Q7)}); this.q1=Qg(function(){return new D5(b.RW,a,b.Q7)}); g.p(this,this.q1);this.p7=Qg(function(){return new a8(a,N,b.q1,b.n7,b.lF,b.Q7,Q)}); g.p(this,this.p7);this.Tj=new yC(RN,C9,function(L,M,H,X){return Ah(e.get(),L,M,H,X)},Y,P,e,T,this.Q7,this.n7); g.p(this,this.Tj);this.oA=new qS(Y,F,w,this.Q7,q,this.n7,this.RW,this.j1);g.p(this,this.oA);var B=new oQ(a,this.oA,this.RW,this.n7,this.wz);this.LO=Qg(function(){return B}); this.eX=B;this.Xm=new zK(Y,P,this.LO,this.wz,this.RW,this.Q7,this.p7,this.W5);g.p(this,this.Xm);this.w4=new ak(Y,P,this.ya,this.LO,J);g.p(this,this.w4);this.cN=new YB(this.Q7,Y,P,F,this.n7,this.w4,w,this.oa);g.p(this,this.cN);this.Vi=Qg(function(){return new Db(d,e,T,b.Q7,b.p7,b.RW,b.W5)}); g.p(this,this.Vi);this.yE=Qg(function(){return new RM}); g.p(this,this.yE);this.a8=new NS(q,this.F3,this.Q7);g.p(this,this.a8);this.zZ=new YR(q);g.p(this,this.zZ);this.O9=new Pc(q);g.p(this,this.O9);this.TA=new dt(q,this.LO,J);g.p(this,this.TA);this.hp=new T2(q,this.ya,this.RW,this.n7,J);g.p(this,this.hp);this.Ui=new $R(q,this.n7);g.p(this,this.Ui);this.gx=new Z6(q,this.wz,this.RW,this.p7,this.LO,this.Xm);g.p(this,this.gx);this.Gh=new FQ(q);g.p(this,this.Gh);this.HN=new mw(q);g.p(this,this.HN);this.ET=new CO(q);g.p(this,this.ET);this.Rj=new J6(q);g.p(this, this.Rj);this.HN=new mw(q);g.p(this,this.HN);this.U3=Qg(function(){return new bZ}); g.p(this,this.U3);this.XS=Qg(function(){return new Ot(b.RW)}); g.p(this,this.XS);this.ez=Qg(function(){return new qEG(b.F3,b.p7,q,N,b.q1)}); g.p(this,this.ez);this.rT=Qg(function(){return new Hb(b.cN,Y,O)}); g.p(this,this.rT);this.WW=Qg(function(){return new Uu(b.Q7,b.p7,b.Gh,b.q1)}); g.p(this,this.WW);this.e7=Qg(function(){return new Hk(q,b.HN,b.Gh,b.n7,b.W5,b.RW,b.d4,b.p7,K,b.wz,b.q1,b.by,b.oa,b.ya,b.j1,b.S1,b.Lk,b.TN,b.Q7,N,J,Q)}); g.p(this,this.e7);this.mV=Qg(function(){return new dlJ(b.RW,b.p7,b.Lk,b.Q7,b.q1,b.n7)}); g.p(this,this.mV);this.bW=Qg(function(){return new wVJ(b.F3,b.RW,b.p7,N,b.q1,b.O9,b.Rj,b.Lk,b.Q7,w)}); g.p(this,this.bW);this.O2=Qg(function(){return new gpj(b.F3,b.p7,N)}); g.p(this,this.O2);this.CR=new Nn(q,this.m1,O);g.p(this,this.CR);this.t4={KC:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.cN],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Xm],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Tj],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.oA],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.w4]]),H3:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Vi],["SLOT_TYPE_ABOVE_FEED",this.yE],["SLOT_TYPE_FORECASTING",this.yE], ["SLOT_TYPE_IN_PLAYER",this.yE],["SLOT_TYPE_PLAYER_BYTES",this.yE],["SLOT_TYPE_PLAYER_UNDERLAY",this.yE],["SLOT_TYPE_PLAYBACK_TRACKING",this.yE],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.yE]]),V_:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.a8],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.a8],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.zZ],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.zZ],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.zZ],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.zZ],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.zZ],["TRIGGER_TYPE_SLOT_ID_EXITED",this.zZ],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.zZ],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.zZ],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.zZ],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.zZ],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.zZ],["TRIGGER_TYPE_CLOSE_REQUESTED",this.O9],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.TA],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.hp],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.hp],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.hp],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.hp],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.hp],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.hp],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.hp],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Ui],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Ui],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Gh],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.TA],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.ET],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.Rj],["TRIGGER_TYPE_AD_BREAK_STARTED",this.HN],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.gx],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.gx],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.gx],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.gx],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.gx]]),hH:new Map([["SLOT_TYPE_ABOVE_FEED",this.U3], ["SLOT_TYPE_AD_BREAK_REQUEST",this.U3],["SLOT_TYPE_FORECASTING",this.U3],["SLOT_TYPE_IN_PLAYER",this.U3],["SLOT_TYPE_PLAYER_BYTES",this.XS],["SLOT_TYPE_PLAYER_UNDERLAY",this.U3],["SLOT_TYPE_PLAYBACK_TRACKING",this.U3],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.U3]]),KU:new Map([["SLOT_TYPE_ABOVE_FEED",this.ez],["SLOT_TYPE_AD_BREAK_REQUEST",this.rT],["SLOT_TYPE_FORECASTING",this.WW],["SLOT_TYPE_PLAYER_BYTES",this.e7],["SLOT_TYPE_PLAYBACK_TRACKING",this.mV],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.mV],["SLOT_TYPE_IN_PLAYER",this.bW],["SLOT_TYPE_PLAYER_UNDERLAY",this.O2]])};this.listeners=[N.get()];this.eg={cN:this.cN,QV:this.Q7.get(),PT:this.Lk.get(),Vo:this.RW.get(),oA:this.oA,wR:O.get(),fQ:this.m1.get(),IP:this.a8,L3:N.get(),s3:this.n7.get()}}; VyK=function(q,a,w,G,k){g.c.call(this);var b=this,O=Qg(function(){return new Qd(b.Q7)}); g.p(this,O);var e=Qg(function(){return new xR(O,b.Q7)}); g.p(this,e);var N=Qg(function(){return new wt}); g.p(this,N);var Y=Qg(function(){return new gt(q)}); g.p(this,Y);var P=Qg(function(){return new LO(O,e,b.Q7)}); g.p(this,P);var K=Qg(function(){return new h6}); g.p(this,K);this.F3=Qg(function(){return new PK(a)}); g.p(this,this.F3);this.Lk=Qg(function(){return new xP(k)}); g.p(this,this.Lk);this.j1=Qg(function(){return new IQ(a)}); g.p(this,this.j1);this.ya=Qg(function(){return new ue(a)}); g.p(this,this.ya);this.oa=Qg(function(){return new tu(a)}); g.p(this,this.oa);this.S1=Qg(function(){return new vg(a)}); g.p(this,this.S1);this.Q7=Qg(function(){return new zb(a)}); g.p(this,this.Q7);var d=Qg(function(){return new YC(G)}); g.p(this,d);var T=Qg(function(){return new D8(b.Q7)}); g.p(this,T);var F=Qg(function(){return new uU(O,P,e,b.Q7,T,null,null,b.Xm,b.gx)}); g.p(this,F);this.TN=Qg(function(){return new $C(a)}); g.p(this,this.TN);this.m1=Qg(function(){return new r3}); g.p(this,this.m1);this.n7=Qg(function(){return new wN(a,K,b.Q7)}); g.p(this,this.n7);var J=j$({n7:this.n7,Q7:this.Q7,VE:T}),Q=J.context,B=J.bT;this.lF=J.lF;this.wz=Qg(function(){return new TI(a,b.Q7,b.p7)}); this.RW=Qg(function(){return new GI(a,b.n7,b.Q7)}); g.p(this,this.RW);this.d4=Qg(function(){return new Ff}); g.p(this,this.d4);this.q1=Qg(function(){return new D5(b.RW,a,b.Q7)}); g.p(this,this.q1);this.p7=Qg(function(){return new a8(a,N,b.q1,b.n7,b.lF,b.Q7,B)}); g.p(this,this.p7);this.by=Qg(function(){return new np(b.Q7)}); g.p(this,this.by);this.Tj=new yC(RN,C9,function(M,H,X,D){return Ah(e.get(),M,H,X,D)},Y,P,e,T,this.Q7,this.n7); g.p(this,this.Tj);this.oA=new qS(Y,F,w,this.Q7,q,this.n7,this.RW,this.j1);g.p(this,this.oA);var L=new oQ(a,this.oA,this.RW,this.n7,this.wz);this.LO=Qg(function(){return L}); this.eX=L;this.Xm=new zK(Y,P,this.LO,this.wz,this.RW,this.Q7,this.p7);g.p(this,this.Xm);this.w4=new ak(Y,P,this.ya,this.LO,Q);g.p(this,this.w4);this.cN=new YB(this.Q7,Y,P,F,this.n7,this.w4,w,this.oa);g.p(this,this.cN);this.Vi=Qg(function(){return new Db(d,e,T,b.Q7,b.p7,b.RW)}); g.p(this,this.Vi);this.yE=Qg(function(){return new RM}); g.p(this,this.yE);this.a8=new NS(q,this.F3,this.Q7);g.p(this,this.a8);this.zZ=new YR(q);g.p(this,this.zZ);this.O9=new Pc(q);g.p(this,this.O9);this.TA=new dt(q,this.LO,Q);g.p(this,this.TA);this.hp=new T2(q,this.ya,this.RW,this.n7,Q);g.p(this,this.hp);this.Gh=new FQ(q);g.p(this,this.Gh);this.ET=new CO(q);g.p(this,this.ET);this.Rj=new J6(q);g.p(this,this.Rj);this.W5=Qg(function(){return new s$(a)}); g.p(this,this.W5);this.HN=new mw(q);g.p(this,this.HN);this.gx=new Z6(q,this.wz,this.RW,this.p7,this.LO,this.Xm);g.p(this,this.gx);this.U3=Qg(function(){return new bZ}); g.p(this,this.U3);this.XS=Qg(function(){return new Ot(b.RW)}); g.p(this,this.XS);this.rT=Qg(function(){return new Hb(b.cN,Y,O)}); g.p(this,this.rT);this.WW=Qg(function(){return new Uu(b.Q7,b.p7,b.Gh,b.q1)}); g.p(this,this.WW);this.bW=Qg(function(){return new Gpf(b.F3,b.RW,b.p7,N,b.q1,b.O9,b.Rj,b.Lk,b.Q7,w)}); g.p(this,this.bW);this.e7=Qg(function(){return new ck(q,b.HN,b.Gh,b.p7,b.q1,b.by,b.oa,b.n7,b.RW,b.d4,b.ya,b.j1,b.S1,b.Lk,b.TN,b.Q7,b.W5,Q,B)}); g.p(this,this.e7);this.CR=new Nn(q,this.m1,O);g.p(this,this.CR);this.t4={KC:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.cN],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Xm],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Tj],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.oA],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.w4]]),H3:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Vi],["SLOT_TYPE_FORECASTING",this.yE],["SLOT_TYPE_IN_PLAYER",this.yE], ["SLOT_TYPE_PLAYER_BYTES",this.yE]]),V_:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.a8],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.zZ],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.zZ],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.zZ],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.zZ],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.zZ],["TRIGGER_TYPE_SLOT_ID_EXITED",this.zZ],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.zZ],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.zZ],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.zZ], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.zZ],["TRIGGER_TYPE_CLOSE_REQUESTED",this.O9],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.TA],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.hp],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.hp],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.hp],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Gh],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.TA],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.ET],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.Rj],["TRIGGER_TYPE_AD_BREAK_STARTED",this.HN],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.gx],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.gx],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.gx],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.gx],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.gx]]),hH:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.U3],["SLOT_TYPE_FORECASTING",this.U3],["SLOT_TYPE_IN_PLAYER",this.U3],["SLOT_TYPE_PLAYER_BYTES",this.XS]]), KU:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.rT],["SLOT_TYPE_FORECASTING",this.WW],["SLOT_TYPE_IN_PLAYER",this.bW],["SLOT_TYPE_PLAYER_BYTES",this.e7]])};this.listeners=[N.get()];this.eg={cN:this.cN,QV:this.Q7.get(),PT:this.Lk.get(),Vo:this.RW.get(),oA:this.oA,wR:O.get(),fQ:this.m1.get(),IP:this.a8,L3:N.get(),s3:this.n7.get()}}; JmV=function(q,a,w,G,k){g.c.call(this);var b=this,O=Qg(function(){return new Qd(b.Q7)}); g.p(this,O);var e=Qg(function(){return new xR(O,b.Q7)}); g.p(this,e);var N=Qg(function(){return new wt}); g.p(this,N);var Y=Qg(function(){return new gt(q)}); g.p(this,Y);var P=Qg(function(){return new LO(O,e,b.Q7)}); g.p(this,P);var K=Qg(function(){return new h6}); g.p(this,K);this.F3=Qg(function(){return new PK(a)}); g.p(this,this.F3);this.Lk=Qg(function(){return new xP(k)}); g.p(this,this.Lk);this.j1=Qg(function(){return new IQ(a)}); g.p(this,this.j1);this.ya=Qg(function(){return new ue(a)}); g.p(this,this.ya);this.oa=Qg(function(){return new tu(a)}); g.p(this,this.oa);this.S1=Qg(function(){return new vg(a)}); g.p(this,this.S1);this.Q7=Qg(function(){return new zb(a)}); g.p(this,this.Q7);var d=Qg(function(){return new YC(G)}); g.p(this,d);var T=Qg(function(){return new D8(b.Q7)}); g.p(this,T);var F=Qg(function(){return new uU(O,P,e,b.Q7,T,null,null,null,null)}); g.p(this,F);this.TN=Qg(function(){return new $C(a)}); g.p(this,this.TN);this.n7=Qg(function(){return new wN(a,K,b.Q7)}); g.p(this,this.n7);var J=j$({n7:this.n7,Q7:this.Q7,VE:T}),Q=J.context,B=J.bT;this.lF=J.lF;this.RW=Qg(function(){return new GI(a,b.n7,b.Q7)}); g.p(this,this.RW);this.d4=Qg(function(){return new Ff}); g.p(this,this.d4);this.q1=Qg(function(){return new D5(b.RW,a,b.Q7)}); g.p(this,this.q1);this.p7=Qg(function(){return new a8(a,N,b.q1,b.n7,b.lF,b.Q7,B)}); g.p(this,this.p7);this.by=Qg(function(){return new np(b.Q7)}); g.p(this,this.by);this.Tj=new yC(RN,C9,function(M,H,X,D){return Ah(e.get(),M,H,X,D)},Y,P,e,T,this.Q7,this.n7); g.p(this,this.Tj);this.oA=new qS(Y,F,w,this.Q7,q,this.n7,this.RW,this.j1);g.p(this,this.oA);var L=new oQ(a,this.oA,this.RW,this.n7);this.LO=Qg(function(){return L}); this.eX=L;this.w4=new ak(Y,P,this.ya,this.LO,Q);g.p(this,this.w4);this.cN=new YB(this.Q7,Y,P,F,this.n7,this.w4,w,this.oa);g.p(this,this.cN);this.Vi=Qg(function(){return new Db(d,e,T,b.Q7,b.p7,b.RW)}); g.p(this,this.Vi);this.yE=Qg(function(){return new RM}); g.p(this,this.yE);this.a8=new NS(q,this.F3,this.Q7);g.p(this,this.a8);this.zZ=new YR(q);g.p(this,this.zZ);this.TA=new dt(q,this.LO,Q);g.p(this,this.TA);this.hp=new T2(q,this.ya,this.RW,this.n7,Q);g.p(this,this.hp);this.Gh=new FQ(q);g.p(this,this.Gh);this.ET=new CO(q);g.p(this,this.ET);this.W5=Qg(function(){return new s$(a)}); g.p(this,this.W5);this.HN=new mw(q);g.p(this,this.HN);this.U3=Qg(function(){return new bZ}); g.p(this,this.U3);this.XS=Qg(function(){return new Ot(b.RW)}); g.p(this,this.XS);this.rT=Qg(function(){return new Hb(b.cN,Y,O)}); g.p(this,this.rT);this.WW=Qg(function(){return new Uu(b.Q7,b.p7,b.Gh,b.q1)}); g.p(this,this.WW);this.SB=Qg(function(){return new Kxy(b.F3,b.RW,b.p7,N,w,b.Q7)}); g.p(this,this.SB);this.e7=Qg(function(){return new ck(q,b.HN,b.Gh,b.p7,b.q1,b.by,b.oa,b.n7,b.RW,b.d4,b.ya,b.j1,b.S1,b.Lk,b.TN,b.Q7,b.W5,Q,B)}); g.p(this,this.e7);this.t4={KC:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.cN],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Tj],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.oA],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.w4]]),H3:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Vi],["SLOT_TYPE_FORECASTING",this.yE],["SLOT_TYPE_IN_PLAYER",this.yE],["SLOT_TYPE_PLAYER_BYTES",this.yE]]),V_:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.a8],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.zZ],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.zZ],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.zZ],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.zZ],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.zZ],["TRIGGER_TYPE_SLOT_ID_EXITED",this.zZ],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.zZ],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.zZ],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.zZ],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.TA],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.hp],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.hp],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Gh],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.TA],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.ET],["TRIGGER_TYPE_AD_BREAK_STARTED",this.HN]]),hH:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.U3],["SLOT_TYPE_ABOVE_FEED",this.U3],["SLOT_TYPE_FORECASTING",this.U3],["SLOT_TYPE_IN_PLAYER",this.U3],["SLOT_TYPE_PLAYER_BYTES",this.XS]]),KU:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.rT],["SLOT_TYPE_FORECASTING",this.WW],["SLOT_TYPE_IN_PLAYER", this.SB],["SLOT_TYPE_PLAYER_BYTES",this.e7]])};this.listeners=[N.get()];this.eg={cN:this.cN,QV:this.Q7.get(),PT:this.Lk.get(),Vo:this.RW.get(),oA:this.oA,wR:O.get(),fQ:null,IP:this.a8,L3:N.get(),s3:this.n7.get()}}; mmK=function(q,a,w,G,k){g.c.call(this);var b=this,O=Qg(function(){return new Qd(b.Q7)}); g.p(this,O);var e=Qg(function(){return new xR(O,b.Q7)}); g.p(this,e);var N=Qg(function(){return new wt}); g.p(this,N);var Y=Qg(function(){return new gt(q)}); g.p(this,Y);var P=Qg(function(){return new LO(O,e,b.Q7)}); g.p(this,P);var K=Qg(function(){return new h6}); g.p(this,K);this.cF=Qg(function(){return new ZKR(a)}); g.p(this,this.cF);this.F3=Qg(function(){return new PK(a)}); g.p(this,this.F3);this.Lk=Qg(function(){return new xP(k)}); g.p(this,this.Lk);this.j1=Qg(function(){return new IQ(a)}); g.p(this,this.j1);this.ya=Qg(function(){return new ue(a)}); g.p(this,this.ya);this.oa=Qg(function(){return new tu(a)}); g.p(this,this.oa);this.S1=Qg(function(){return new vg(a)}); g.p(this,this.S1);this.Q7=Qg(function(){return new zb(a)}); g.p(this,this.Q7);var d=Qg(function(){return new YC(G)}); g.p(this,d);var T=Qg(function(){return new D8(b.Q7)}); g.p(this,T);var F=Qg(function(){return new uU(O,P,e,b.Q7,T,null,null,null,null)}); g.p(this,F);this.TN=Qg(function(){return new $C(a)}); g.p(this,this.TN);this.n7=Qg(function(){return new wN(a,K,b.Q7)}); g.p(this,this.n7);var J=j$({n7:this.n7,Q7:this.Q7,VE:T}),Q=J.context,B=J.bT;this.lF=J.lF;this.RW=Qg(function(){return new GI(a,b.n7,b.Q7)}); g.p(this,this.RW);this.d4=Qg(function(){return new Ff}); g.p(this,this.d4);this.q1=Qg(function(){return new D5(b.RW,a,b.Q7)}); g.p(this,this.q1);this.p7=Qg(function(){return new a8(a,N,b.q1,b.n7,b.lF,b.Q7,B)}); g.p(this,this.p7);this.by=Qg(function(){return new np(b.Q7)}); g.p(this,this.by);this.Tj=new yC(jZV,C9,function(M,H,X,D){return Ywm(e.get(),M,H,X,D)},Y,P,e,T,this.Q7,this.n7); g.p(this,this.Tj);this.oA=new qS(Y,F,w,this.Q7,q,this.n7,this.RW,this.j1);g.p(this,this.oA);var L=new oQ(a,this.oA,this.RW,this.n7);this.LO=Qg(function(){return L}); this.eX=L;this.w4=new ak(Y,P,this.ya,this.LO,Q);g.p(this,this.w4);this.cN=new YB(this.Q7,Y,P,F,this.n7,this.w4,w,this.oa);g.p(this,this.cN);this.Vi=Qg(function(){return new Db(d,e,T,b.Q7,b.p7,b.RW)}); g.p(this,this.Vi);this.yE=Qg(function(){return new RM}); g.p(this,this.yE);this.a8=new NS(q,this.F3,this.Q7);g.p(this,this.a8);this.zZ=new YR(q);g.p(this,this.zZ);this.TA=new dt(q,this.LO,Q);g.p(this,this.TA);this.hp=new T2(q,this.ya,this.RW,this.n7,Q);g.p(this,this.hp);this.Gh=new FQ(q);g.p(this,this.Gh);this.ET=new CO(q);g.p(this,this.ET);this.W5=Qg(function(){return new s$(a)}); g.p(this,this.W5);this.HN=new mw(q);g.p(this,this.HN);this.U3=Qg(function(){return new bZ}); g.p(this,this.U3);this.XS=Qg(function(){return new Ot(b.RW)}); g.p(this,this.XS);this.rT=Qg(function(){return new Hb(b.cN,Y,O)}); g.p(this,this.rT);this.WW=Qg(function(){return new Uu(b.Q7,b.p7,b.Gh,b.q1)}); g.p(this,this.WW);this.e7=Qg(function(){return new ck(q,b.HN,b.Gh,b.p7,b.q1,b.by,b.oa,b.n7,b.RW,b.d4,b.ya,b.j1,b.S1,b.Lk,b.TN,b.Q7,b.W5,Q,B)}); g.p(this,this.e7);this.Tq=Qg(function(){return new bZj(b.F3,b.RW,b.p7,N,b.cF,w,b.n7)}); g.p(this,this.Tq);this.t4={KC:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.cN],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Tj],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.oA],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.w4]]),H3:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Vi],["SLOT_TYPE_FORECASTING",this.yE],["SLOT_TYPE_IN_PLAYER",this.yE],["SLOT_TYPE_PLAYER_BYTES",this.yE]]),V_:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.a8],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.zZ],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.zZ],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.zZ],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.zZ],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.zZ],["TRIGGER_TYPE_SLOT_ID_EXITED",this.zZ],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.zZ],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.zZ],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.zZ],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.TA],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.hp],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.hp],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Gh],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.TA],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.ET],["TRIGGER_TYPE_AD_BREAK_STARTED",this.HN]]),hH:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.U3],["SLOT_TYPE_FORECASTING",this.U3],["SLOT_TYPE_IN_PLAYER",this.U3],["SLOT_TYPE_PLAYER_BYTES",this.XS]]),KU:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.rT],["SLOT_TYPE_FORECASTING",this.WW],["SLOT_TYPE_IN_PLAYER",this.Tq],["SLOT_TYPE_PLAYER_BYTES", this.e7]])};this.listeners=[N.get()];this.eg={cN:this.cN,QV:this.Q7.get(),PT:this.Lk.get(),Vo:this.RW.get(),oA:this.oA,wR:O.get(),fQ:null,IP:this.a8,L3:N.get(),s3:this.n7.get()}}; Q_7=function(q,a,w,G,k){g.c.call(this);var b=this,O=Qg(function(){return new Qd(b.Q7)}); g.p(this,O);var e=Qg(function(){return new xR(O,b.Q7)}); g.p(this,e);var N=Qg(function(){return new wt}); g.p(this,N);var Y=Qg(function(){return new gt(q)}); g.p(this,Y);var P=Qg(function(){return new LO(O,e,b.Q7)}); g.p(this,P);var K=Qg(function(){return new h6}); g.p(this,K);this.cF=Qg(function(){return new ZKR(a)}); g.p(this,this.cF);this.F3=Qg(function(){return new PK(a)}); g.p(this,this.F3);this.Lk=Qg(function(){return new xP(k)}); g.p(this,this.Lk);this.j1=Qg(function(){return new IQ(a)}); g.p(this,this.j1);this.ya=Qg(function(){return new ue(a)}); g.p(this,this.ya);this.oa=Qg(function(){return new tu(a)}); g.p(this,this.oa);this.S1=Qg(function(){return new vg(a)}); g.p(this,this.S1);this.Q7=Qg(function(){return new zb(a)}); g.p(this,this.Q7);var d=Qg(function(){return new YC(G)}); g.p(this,d);var T=Qg(function(){return new D8(b.Q7)}); g.p(this,T);this.TN=Qg(function(){return new $C(a)}); g.p(this,this.TN);this.n7=Qg(function(){return new wN(a,K,b.Q7)}); g.p(this,this.n7);var F=j$({n7:this.n7,Q7:this.Q7,VE:T}),J=F.context,Q=F.bT;this.lF=F.lF;this.wz=Qg(function(){return new TI(a,b.Q7,b.p7)}); g.p(this,this.wz);this.W5=Qg(function(){return new s$(a)}); g.p(this,this.W5);this.RW=Qg(function(){return new GI(a,b.n7,b.Q7)}); g.p(this,this.RW);this.d4=Qg(function(){return new Ff}); g.p(this,this.d4);F=Qg(function(){return new uU(O,P,e,b.Q7,T,null,b.RW,b.Xm,b.gx,3)}); g.p(this,F);this.by=Qg(function(){return new np(b.Q7)}); this.q1=Qg(function(){return new D5(b.RW,a,b.Q7)}); g.p(this,this.q1);this.p7=Qg(function(){return new a8(a,N,b.q1,b.n7,b.lF,b.Q7,Q)}); g.p(this,this.p7);this.oA=new qS(Y,F,w,this.Q7,q,this.n7,this.RW,this.j1);g.p(this,this.oA);var B=new oQ(a,this.oA,this.RW,this.n7,this.wz);this.LO=Qg(function(){return B}); this.eX=B;this.Tj=new yC(orc,C9,function(L,M,H,X){return Ywm(e.get(),L,M,H,X)},Y,P,e,T,this.Q7,this.n7); g.p(this,this.Tj);this.Xm=new zK(Y,P,this.LO,this.wz,this.RW,this.Q7,this.p7,this.W5);g.p(this,this.Xm);this.w4=new ak(Y,P,this.ya,this.LO,J);g.p(this,this.w4);this.cN=new YB(this.Q7,Y,P,F,this.n7,this.w4,w,this.oa);g.p(this,this.cN);this.Vi=Qg(function(){return new Db(d,e,T,b.Q7,b.p7,b.RW,b.W5)}); g.p(this,this.Vi);this.yE=Qg(function(){return new RM}); g.p(this,this.yE);this.a8=new NS(q,this.F3,this.Q7);g.p(this,this.a8);this.zZ=new YR(q);g.p(this,this.zZ);this.TA=new dt(q,this.LO,J);g.p(this,this.TA);this.hp=new T2(q,this.ya,this.RW,this.n7,J);g.p(this,this.hp);this.Ui=new $R(q,this.n7);g.p(this,this.Ui);this.gx=new Z6(q,this.wz,this.RW,this.p7,this.LO,this.Xm);g.p(this,this.gx);this.Gh=new FQ(q);g.p(this,this.Gh);this.ET=new CO(q);g.p(this,this.ET);this.HN=new mw(q);g.p(this,this.HN);this.U3=Qg(function(){return new bZ}); g.p(this,this.U3);this.XS=Qg(function(){return new Ot(b.RW)}); g.p(this,this.XS);this.rT=Qg(function(){return new Hb(b.cN,Y,O)}); g.p(this,this.rT);this.WW=Qg(function(){return new Uu(b.Q7,b.p7,b.Gh,b.q1)}); g.p(this,this.WW);this.e7=Qg(function(){return new Hk(q,b.HN,b.Gh,b.n7,b.W5,b.RW,b.d4,b.p7,K,b.wz,b.q1,b.by,b.oa,b.ya,b.j1,b.S1,b.Lk,b.TN,b.Q7,N,J,Q)}); g.p(this,this.e7);this.bW=Qg(function(){return new OZV(b.F3,b.RW,b.p7,N,b.cF,w,b.Q7,b.n7)}); g.p(this,this.bW);this.t4={KC:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.cN],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Xm],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Tj],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.oA],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.w4]]),H3:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Vi],["SLOT_TYPE_FORECASTING",this.yE],["SLOT_TYPE_IN_PLAYER",this.yE],["SLOT_TYPE_PLAYER_BYTES",this.yE]]),V_:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.a8],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.zZ],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.zZ],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.zZ],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.zZ],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.zZ],["TRIGGER_TYPE_SLOT_ID_EXITED",this.zZ],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.zZ],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.zZ],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.zZ],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.TA],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.hp],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.hp],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Ui],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Ui],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Gh],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.TA],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.ET],["TRIGGER_TYPE_AD_BREAK_STARTED",this.HN],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.gx],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", this.gx],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.gx],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.gx],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.gx]]),hH:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.U3],["SLOT_TYPE_FORECASTING",this.U3],["SLOT_TYPE_IN_PLAYER",this.U3],["SLOT_TYPE_PLAYER_BYTES",this.XS]]),KU:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.rT],["SLOT_TYPE_FORECASTING",this.WW],["SLOT_TYPE_PLAYER_BYTES",this.e7],["SLOT_TYPE_IN_PLAYER",this.bW]])};this.listeners=[N.get()]; this.eg={cN:this.cN,QV:this.Q7.get(),PT:this.Lk.get(),Vo:this.RW.get(),oA:this.oA,wR:O.get(),fQ:null,IP:this.a8,L3:N.get(),s3:this.n7.get()}}; xmc=function(q,a,w,G){function k(){return b.U} g.c.call(this);var b=this;q.B().experiments.Zh("html5_dispose_of_manager_before_dependency")?(this.V=Amw(k,q,a,w,G),this.U=(new A3(this.V)).W(),g.p(this,this.U),g.p(this,this.V)):(this.V=Amw(k,q,a,w,G),g.p(this,this.V),this.U=(new A3(this.V)).W(),g.p(this,this.U))}; Zy=function(q){return q.V.eg}; Amw=function(q,a,w,G,k){try{var b=a.B();if(g.Zg(b))var O=new Ell(q,a,w,G,k);else if(g.Jd(b))O=new VyK(q,a,w,G,k);else if(P8(b))O=new JmV(q,a,w,G,k);else if(g.BA(b))O=new mmK(q,a,w,G,k);else if(g.b0(b))O=new Q_7(q,a,w,G,k);else throw new TypeError("Unknown web interface");return O}catch(e){return O=a.B(),Gj("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:O.V.cplatform,interface:O.V.c,uk9:O.V.cver,Ov7:O.V.ctheme,d$Q:O.V.cplayer,m$Q:O.playerStyle}),new YjR(q,a,w,G,k)}}; Llc=function(q){He.call(this,q)}; Bc7=function(q,a,w,G,k){uv.call(this,q,{G:"div",N:"ytp-ad-timed-pie-countdown-container",K:[{G:"svg",N:"ytp-ad-timed-pie-countdown",Z:{viewBox:"0 0 20 20"},K:[{G:"circle",N:"ytp-ad-timed-pie-countdown-background",Z:{r:"10",cx:"10",cy:"10"}},{G:"circle",N:"ytp-ad-timed-pie-countdown-inner",Z:{r:"5",cx:"10",cy:"10"}},{G:"circle",N:"ytp-ad-timed-pie-countdown-outer",Z:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",a,w,G,k);this.Y=this.oW("ytp-ad-timed-pie-countdown-container");this.W=this.oW("ytp-ad-timed-pie-countdown-inner"); this.L=this.oW("ytp-ad-timed-pie-countdown-outer");this.U=Math.ceil(2*Math.PI*5);this.hide()}; rmI=function(q,a,w,G,k,b){kp.call(this,q,{G:"div",N:"ytp-ad-action-interstitial",Z:{tabindex:"0"},K:[{G:"div",N:"ytp-ad-action-interstitial-background-container"},{G:"div",N:"ytp-ad-action-interstitial-slot",K:[{G:"div",N:"ytp-ad-action-interstitial-instream-info"},{G:"div",N:"ytp-ad-action-interstitial-card",K:[{G:"div",N:"ytp-ad-action-interstitial-image-container"},{G:"div",N:"ytp-ad-action-interstitial-headline-container"},{G:"div",N:"ytp-ad-action-interstitial-description-container"},{G:"div", N:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",a,w,G);this.W6=k;this.YH=b;this.navigationEndpoint=this.V=this.skipButton=this.U=this.actionButton=null;this.Tl=this.oW("ytp-ad-action-interstitial-instream-info");this.L7=this.oW("ytp-ad-action-interstitial-image-container");this.J=new Ml(this.api,this.layoutId,this.interactionLoggingClientData,this.PT,"ytp-ad-action-interstitial-image");g.p(this,this.J);this.J.HT(this.L7);this.f7=this.oW("ytp-ad-action-interstitial-headline-container"); this.L=new ox(this.api,this.layoutId,this.interactionLoggingClientData,this.PT,"ytp-ad-action-interstitial-headline");g.p(this,this.L);this.L.HT(this.f7);this.UK=this.oW("ytp-ad-action-interstitial-description-container");this.W=new ox(this.api,this.layoutId,this.interactionLoggingClientData,this.PT,"ytp-ad-action-interstitial-description");g.p(this,this.W);this.W.HT(this.UK);this.BT=this.oW("ytp-ad-action-interstitial-background-container");this.le=new Ml(this.api,this.layoutId,this.interactionLoggingClientData, this.PT,"ytp-ad-action-interstitial-background",!0);g.p(this,this.le);this.le.HT(this.BT);this.h2=this.oW("ytp-ad-action-interstitial-action-button-container");this.slot=this.oW("ytp-ad-action-interstitial-slot");this.ly=this.oW("ytp-ad-action-interstitial-card");this.Y=new EH;g.p(this,this.Y);this.hide()}; nl7=function(q){var a=g.lh("html5-video-player");a&&g.kX(a,"ytp-ad-display-override",q)}; fcw=function(q,a,w,G){kp.call(this,q,{G:"div",N:"ytp-ad-overlay-slot",K:[{G:"div",N:"ytp-ad-overlay-container"}]},"invideo-overlay",a,w,G);this.J=[];this.BT=this.f7=this.Y=this.h2=this.Tl=null;this.le=!1;this.L=null;this.UK=0;q=this.oW("ytp-ad-overlay-container");this.L7=new y0(q,45E3,6E3,.3,.4);g.p(this,this.L7);this.W=MyV(this);g.p(this,this.W);this.W.HT(q);this.U=hNw(this);g.p(this,this.U);this.U.HT(q);this.V=SjK(this);g.p(this,this.V);this.V.HT(q);this.hide()}; MyV=function(q){var a=new g.Gs({G:"div",N:"ytp-ad-text-overlay",K:[{G:"div",N:"ytp-ad-overlay-ad-info-button-container"},{G:"div",N:"ytp-ad-overlay-close-container",K:[{G:"button",N:"ytp-ad-overlay-close-button",K:[mx(HKl)]}]},{G:"div",N:"ytp-ad-overlay-title",ue:"{{title}}"},{G:"div",N:"ytp-ad-overlay-desc",ue:"{{description}}"},{G:"div",vT:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],ue:"{{displayUrl}}"}]});q.C(a.oW("ytp-ad-overlay-title"),"click",function(w){E$(q,a.element,w)}); q.C(a.oW("ytp-ad-overlay-link"),"click",function(w){E$(q,a.element,w)}); q.C(a.oW("ytp-ad-overlay-close-container"),"click",q.If);a.hide();return a}; hNw=function(q){var a=new g.Gs({G:"div",vT:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],K:[{G:"div",N:"ytp-ad-overlay-ad-info-button-container"},{G:"div",N:"ytp-ad-overlay-close-container",K:[{G:"button",N:"ytp-ad-overlay-close-button",K:[mx(HKl)]}]},{G:"div",N:"ytp-ad-overlay-text-image",K:[{G:"img",Z:{src:"{{imageUrl}}"}}]},{G:"div",N:"ytp-ad-overlay-title",ue:"{{title}}"},{G:"div",N:"ytp-ad-overlay-desc",ue:"{{description}}"},{G:"div",vT:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], ue:"{{displayUrl}}"}]});q.C(a.oW("ytp-ad-overlay-title"),"click",function(w){E$(q,a.element,w)}); q.C(a.oW("ytp-ad-overlay-link"),"click",function(w){E$(q,a.element,w)}); q.C(a.oW("ytp-ad-overlay-close-container"),"click",q.If);q.C(a.oW("ytp-ad-overlay-text-image"),"click",q.R97);a.hide();return a}; SjK=function(q){var a=new g.Gs({G:"div",N:"ytp-ad-image-overlay",K:[{G:"div",N:"ytp-ad-overlay-ad-info-button-container"},{G:"div",N:"ytp-ad-overlay-close-container",K:[{G:"button",N:"ytp-ad-overlay-close-button",K:[mx(HKl)]}]},{G:"div",N:"ytp-ad-overlay-image",K:[{G:"img",Z:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});q.C(a.oW("ytp-ad-overlay-image"),"click",function(w){E$(q,a.element,w)}); q.C(a.oW("ytp-ad-overlay-close-container"),"click",q.If);a.hide();return a}; cmJ=function(q,a){if(a){var w=g.I(a,Om)||null;w==null?g.mQ(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(a=g.lh("video-ads ytp-ad-module")||null,a==null?g.mQ(Error("Could not locate the root ads container element to attach the ad info dialog.")):(q.f7=new g.Gs({G:"div",N:"ytp-ad-overlay-ad-info-dialog-container"}),g.p(q,q.f7),q.f7.HT(a),a=new jV(q.api,q.layoutId,q.interactionLoggingClientData,q.PT,q.f7.element,!1),g.p(q,a),a.init(D1("ad-info-hover-text-button"),w,q.macros), q.L?(a.HT(q.L,0),a.subscribe("f",q.N8T,q),a.subscribe("e",q.vk,q),q.C(q.L,"click",q.wTe),q.C(g.lh("ytp-ad-button",a.element),"click",function(){var G;if(g.I((G=g.I(w.button,g.e9))==null?void 0:G.serviceEndpoint,DRJ))q.le=q.api.getPlayerState(1)===2,q.api.pauseVideo();else q.api.onAdUxClicked("ad-info-hover-text-button",q.layoutId)}),q.BT=a):g.mQ(Error("Ad info button container within overlay ad was not present."))))}else g.Qa(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; UmV=function(q,a){if(pJJ(q,VS)||q.api.isMinimized())return!1;var w=bv(a.title),G=bv(a.description);if(g.rn(w)||g.rn(G))return!1;q.createServerVe(q.W.element,a.trackingParams||null);q.W.updateValue("title",bv(a.title));q.W.updateValue("description",bv(a.description));q.W.updateValue("displayUrl",bv(a.displayUrl));a.navigationEndpoint&&g.Me(q.J,a.navigationEndpoint);q.W.show();q.L7.start();q.logVisibility(q.W.element,!0);q.C(q.W.element,"mouseover",function(){q.UK++}); return!0}; XJl=function(q,a){if(pJJ(q,VS)||q.api.isMinimized())return!1;var w=bv(a.title),G=bv(a.description);if(g.rn(w)||g.rn(G))return!1;q.createServerVe(q.U.element,a.trackingParams||null);q.U.updateValue("title",bv(a.title));q.U.updateValue("description",bv(a.description));q.U.updateValue("displayUrl",bv(a.displayUrl));q.U.updateValue("imageUrl",O2K(a.image));a.navigationEndpoint&&g.Me(q.J,a.navigationEndpoint);q.h2=a.imageNavigationEndpoint||null;q.U.show();q.L7.start();q.logVisibility(q.U.element,!0); q.C(q.U.element,"mouseover",function(){q.UK++}); return!0}; j_K=function(q,a){if(q.api.isMinimized())return!1;var w=lnK(a.image),G=w;w.width0?(a=new xm(q.api,q.V), a.HT(q.playerOverlay),g.p(q,a)):(q=Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(a)),g.mQ(q))}}else g.mQ(Error("addCommonComponents() needs to be called before starting countdown."))}; yme=function(q){function a(w){return{toString:function(){return w()}}} q.macros.SURVEY_LOCAL_TIME_EPOCH_S=a(function(){var w=new Date;return(Math.round(w.valueOf()/1E3)+-1*w.getTimezoneOffset()*60).toString()}); q.macros.SURVEY_ELAPSED_MS=a(function(){return(Date.now()-q.W).toString()})}; q6V=function(q,a,w,G,k){Ab.call(this,q,a,w,G,"survey-question-multi-select");this.UK=k;this.noneOfTheAbove=null;this.submitEndpoints=[];this.L=null;this.hide()}; gcw=function(q,a,w){q.noneOfTheAbove=new zNJ(q.api,q.layoutId,q.interactionLoggingClientData,q.PT);q.noneOfTheAbove.HT(q.answers);q.noneOfTheAbove.init(D1("survey-none-of-the-above"),a,w)}; wRI=function(q){q.U.forEach(function(a){a.V.toggleButton(!1)}); a7w(q,!0)}; a7w=function(q,a){var w=q.Y;q=GJe(q);a=a===void 0?!1:a;w.V&&(q?w.V.hide():w.V.show(),a&&w.V instanceof Nk&&!w.V.Y&&bIy(w.V,!1));w.U&&(q?w.U.show():w.U.hide())}; GJe=function(q){return q.U.some(function(a){return a.V.isToggled()})||q.noneOfTheAbove.button.isToggled()}; xC=function(q,a,w,G,k){Ab.call(this,q,a,w,G,"survey-question-single-select",function(O){b.api.B().T("supports_multi_step_on_desktop")&&k([O])}); var b=this;this.hide()}; L9=function(q,a,w,G){kp.call(this,q,{G:"div",N:"ytp-ad-survey",K:[{G:"div",N:"ytp-ad-survey-questions"}]},"survey",a,w,G);this.questions=[];this.U=[];this.conditioningRules=[];this.V=0;this.L=this.oW("ytp-ad-survey-questions");this.api.B().T("fix_survey_color_contrast_on_destop")&&this.oW("ytp-ad-survey").classList.add("color-contrast-fix");this.api.B().T("web_enable_speedmaster")&&this.oW("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; Owy=function(q,a){var w=q.U[a],G;(G=q.W)==null||G.dispose();g.I(w,kB)?kJe(q,g.I(w,kB),q.macros):g.I(w,GK)&&bwB(q,g.I(w,GK),q.macros);q.V=a}; kJe=function(q,a,w){var G=new xC(q.api,q.layoutId,q.interactionLoggingClientData,q.PT,q.Y.bind(q));G.HT(q.L);G.init(D1("survey-question-single-select"),a,w);q.api.B().T("supports_multi_step_on_desktop")?q.W=G:q.questions.push(G);g.p(q,G)}; bwB=function(q,a,w){var G=new q6V(q.api,q.layoutId,q.interactionLoggingClientData,q.PT,q.Y.bind(q));G.HT(q.L);G.init(D1("survey-question-multi-select"),a,w);q.api.B().T("supports_multi_step_on_desktop")?q.W=G:q.questions.push(G);g.p(q,G)}; BK=function(q,a,w,G){kp.call(this,q,{G:"div",N:"ytp-ad-survey-interstitial",K:[{G:"div",N:"ytp-ad-survey-interstitial-contents",K:[{G:"div",N:"ytp-ad-survey-interstitial-logo",K:[{G:"div",N:"ytp-ad-survey-interstitial-logo-image"}]},{G:"div",N:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",a,w,G);this.V=this.actionButton=null;this.interstitial=this.oW("ytp-ad-survey-interstitial");this.U=this.oW("ytp-ad-survey-interstitial-contents");this.text=this.oW("ytp-ad-survey-interstitial-text"); this.logoImage=this.oW("ytp-ad-survey-interstitial-logo-image");this.transition=new g.zs(this,500,!1,300);g.p(this,this.transition)}; l7y=function(q,a){a=a&&nP(a)||"";if(g.rn(a))g.Qa(Error("Found ThumbnailDetails without valid image URL"));else{var w=q.style;q=q.style.cssText;var G=document.implementation.createHTMLDocument("").createElement("DIV");G.style.cssText=q;q=f3j(G.style);w.cssText=[q,'background-image:url("'+a+'");'].join("")}}; eIw=function(q){var a=g.lh("html5-video-player");a&&g.kX(a,"ytp-ad-display-override",q)}; rN=function(q,a,w,G,k,b){b=b===void 0?0:b;uv.call(this,q,{G:"div",N:"ytp-preview-ad",K:[{G:"div",N:"ytp-preview-ad__text"}]},"preview-ad",a,w,G,k);var O=this;this.UK=b;this.U=0;this.Y=-1;this.W=this.oW("ytp-preview-ad__text");switch(this.UK){case 1:this.W.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.zs(this,400,!1,100,function(){O.hide()}); g.p(this,this.transition);this.hide()}; n9=function(q,a,w,G){kp.call(this,q,{G:"img",N:"ytp-ad-avatar"},"ad-avatar",a,w,G);this.hide()}; Ny7=function(q){switch(q.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}}; Mn=function(q,a,w,G,k,b){k=k===void 0?!1:k;b=b===void 0?!1:b;kp.call(this,q,{G:"button",N:"ytp-ad-button-vm"},"ad-button",a,w,G);this.buttonText=this.buttonIcon=null;this.hide();this.V=k;this.U=b}; Y6c=function(q,a,w,G,k){uv.call(this,q,{G:"div",vT:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],K:[{G:"div",N:"ytp-ad-avatar-lockup-card__avatar_and_text_container",K:[{G:"div",N:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",a,w,G,k);this.startMilliseconds=0;this.adAvatar=new n9(this.api,this.layoutId,this.interactionLoggingClientData,this.PT);g.p(this,this.adAvatar);Fr(this.element,this.adAvatar.element,0);this.headline=new Ex(this.api,this.layoutId, this.interactionLoggingClientData,this.PT);g.p(this,this.headline);this.headline.HT(this.oW("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new Ex(this.api,this.layoutId,this.interactionLoggingClientData,this.PT);g.p(this,this.description);this.description.HT(this.oW("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new Mn(this.api, this.layoutId,this.interactionLoggingClientData,this.PT);g.p(this,this.adButton);this.adButton.HT(this.element);this.hide()}; Sj=function(q,a,w,G){kp.call(this,q,{G:"button",N:"ytp-skip-ad-button",K:[{G:"div",N:"ytp-skip-ad-button__text"}]},"skip-button",a,w,G);var k=this;this.U=!1;this.Y=this.oW("ytp-skip-ad-button__text");this.transition=new g.zs(this,500,!1,100,function(){k.hide()}); g.p(this,this.transition);this.V=new y0(this.element,15E3,5E3,.5,.5,!0);g.p(this,this.V);this.hide()}; PV6=function(q,a,w,G,k){uv.call(this,q,{G:"div",N:"ytp-skip-ad"},"skip-ad",a,w,G,k);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.W=new Sj(this.api,this.layoutId,this.interactionLoggingClientData,this.PT);g.p(this,this.W);this.W.HT(this.element);this.hide()}; f9=function(q,a,w,G){kp.call(this,q,{G:"div",N:"ytp-visit-advertiser-link"},"visit-advertiser-link",a,w,G);this.hide()}; HK=function(q,a,w,G,k){kp.call(this,q,{G:"div",N:"ytp-ad-player-overlay-layout",K:[{G:"div",N:"ytp-ad-player-overlay-layout__player-card-container"},{G:"div",N:"ytp-ad-player-overlay-layout__ad-info-container"},{G:"div",N:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{G:"div",N:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",a,w,G);this.U=k;this.f7=this.oW("ytp-ad-player-overlay-layout__player-card-container");this.V=this.oW("ytp-ad-player-overlay-layout__ad-info-container"); this.J=this.oW("ytp-ad-player-overlay-layout__skip-or-preview-container");this.UK=this.oW("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}; KUB=function(q,a,w,G){kp.call(this,q,{G:"div",N:"ytp-ad-grid-card-text",K:[{G:"div",N:"ytp-ad-grid-card-text__metadata",K:[{G:"div",N:"ytp-ad-grid-card-text__metadata__headline"},{G:"div",N:"ytp-ad-grid-card-text__metadata__description",K:[{G:"div",N:"ytp-ad-grid-card-text__metadata__description__line"},{G:"div",N:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{G:"div",N:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",a,w,G);this.headline=new Ex(this.api,this.layoutId,this.interactionLoggingClientData, this.PT);g.p(this,this.headline);this.headline.HT(this.oW("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new Mn(this.api,this.layoutId,this.interactionLoggingClientData,this.PT,!0);g.p(this,this.moreInfoButton);this.moreInfoButton.HT(this.oW("ytp-ad-grid-card-text__button"))}; cK=function(q,a,w,G){kp.call(this,q,{G:"div",N:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",a,w,G);this.V=[]}; p9=function(q,a,w,G,k,b,O){uv.call(this,q,b,O,a,w,G,k);this.playerProgressOffsetMs=0;this.U=!1}; deV=function(q){var a=g.lh("html5-video-player");a&&g.kX(a,"ytp-ad-display-override",q)}; Ty6=function(q,a,w,G,k){p9.call(this,q,a,w,G,k,{G:"div",N:"ytp-display-underlay-text-grid-cards",K:[{G:"div",N:"ytp-display-underlay-text-grid-cards__content_container",K:[{G:"div",N:"ytp-display-underlay-text-grid-cards__content_container__header",K:[{G:"div",N:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{G:"div",N:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{G:"div",N:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"}, {G:"div",N:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new cK(this.api,this.layoutId,this.interactionLoggingClientData,this.PT);g.p(this,this.adGridCardCollection);this.adGridCardCollection.HT(this.oW("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new Mn(this.api,this.layoutId,this.interactionLoggingClientData,this.PT);g.p(this,this.adButton);this.adButton.HT(this.oW("ytp-display-underlay-text-grid-cards__content_container__ad_button")); this.W=this.oW("ytp-display-underlay-text-grid-cards__content_container");this.Y=this.oW("ytp-display-underlay-text-grid-cards__content_container__header")}; U$=function(q,a,w,G){kp.call(this,q,{G:"div",N:"ytp-ad-details-line"},"ad-details-line",a,w,G);this.V=[];this.hide()}; Xf=function(q,a,w,G){kp.call(this,q,{G:"div",N:"ytp-image-background",K:[{G:"img",N:"ytp-image-background-image"}]},"image-background",a,w,G);this.hide()}; $eK=function(q,a,w,G,k){uv.call(this,q,{G:"svg",N:"ytp-timed-pie-countdown",Z:{viewBox:"0 0 20 20"},K:[{G:"circle",N:"ytp-timed-pie-countdown__background",Z:{r:"10",cx:"10",cy:"10"}},{G:"circle",N:"ytp-timed-pie-countdown__inner",Z:{r:"5",cx:"10",cy:"10"}},{G:"circle",N:"ytp-timed-pie-countdown__outer",Z:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",a,w,G,k);this.W=this.oW("ytp-timed-pie-countdown__inner");this.U=Math.ceil(2*Math.PI*5);this.hide()}; jj=function(q,a,w,G){kp.call(this,q,{G:"div",N:"ytp-video-interstitial-buttoned-centered-layout",Z:{tabindex:"0"},K:[{G:"div",N:"ytp-video-interstitial-buttoned-centered-layout__content",K:[{G:"div",N:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{G:"div",N:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",K:[{G:"div",N:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{G:"div",N:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, {G:"div",N:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{G:"div",N:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{G:"div",N:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",a,w,G);this.U=null;this.Y=this.oW("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.W=new EH;g.p(this,this.W);this.hide()}; sBV=function(q){var a=g.lh("html5-video-player");a&&g.kX(a,"ytp-ad-display-override",q)}; FUx=function(q){if(!q.adAvatar||!g.I(q.adAvatar,o8))return g.mQ(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!q.headline)return g.mQ(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!q.adBadge||!g.I(q.adBadge,I8))return g.mQ(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!q.adButton||!g.I(q.adButton,u7))return g.mQ(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!q.adInfoRenderer|| !g.I(q.adInfoRenderer,Om))return g.mQ(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;q=q.durationMilliseconds||0;return typeof q!=="number"||q<=0?(g.mQ(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+q)),!1):!0}; tb=function(q,a){a=a===void 0?2:a;g.ya.call(this);this.api=q;this.V=null;this.Ia=new EH(this);g.p(this,this.Ia);this.U=OIV;this.Ia.C(this.api,"presentingplayerstatechange",this.f8);this.V=this.Ia.C(this.api,"progresssync",this.EQ);this.zY=a;this.zY===1&&this.EQ()}; vK=function(q,a,w){He.call(this,q);this.api=q;this.PT=a;this.components={};q=new g.u({G:"div",vT:["video-ads","ytp-ad-module"]});g.p(this,q);Wm&&g.gU(q.element,"ytp-ads-tiny-mode");this.Y=new eb(q.element);g.p(this,this.Y);g.DZ(this.api,q.element,4);xB(w)&&(w=new g.u({G:"div",vT:["ytp-ad-underlay"]}),g.p(this,w),this.U=new eb(w.element),g.p(this,this.U),g.DZ(this.api,w.element,0));g.p(this,fnV())}; CVR=function(q,a){q=g.dn(q.components,a.id,null);q==null&&g.Qa(Error("Component not found for element id: "+a.id));return q||null}; ZwJ=function(q){g.md.call(this,q);var a=this;this.U=null;this.created=!1;this.W=q.B().T("h5_use_refactored_get_ad_break")?new PgG(this.player):new Xy(this.player);this.Y=function(){if(a.U!=null)return a.U;var G=new CgK({IP:Zy(a.V).IP,s3:Zy(a.V).s3,j:a.player,QV:Zy(a.V).QV,p7:a.V.V.p7,L3:Zy(a.V).L3,S1:a.V.V.S1});a.U=G.GK;return a.U}; this.V=new xmc(this.player,this,this.W,this.Y);g.p(this,this.V);var w=q.B();!e7(w)||g.b0(w)||P8(w)||(g.p(this,new vK(q,Zy(this.V).PT,Zy(this.V).QV)),g.p(this,new Llc(q)))}; EcI=function(q){q.created!==q.loaded&&Gj("Created and loaded are out of sync")}; meK=function(q){g.md.prototype.load.call(q);var a=Zy(q.V).QV;try{q.player.getRootNode().classList.add("ad-created")}catch(N){Gj(N instanceof Error?N:String(N))}var w=q.player.getVideoData(1),G=w&&w.videoId||"",k=w&&w.getPlayerResponse()||{},b=(k&&k.adPlacements||[]).map(function(N){return N.adPlacementRenderer}),O=((k==null?void 0:k.adSlots)||[]).map(function(N){return g.I(N,P9)}); k=k.playerConfig&&k.playerConfig.daiConfig&&k.playerConfig.daiConfig.enableDai||!1;w&&w.pk();b=VKy(b,O,a,Zy(q.V).wR);O=w&&w.clientPlaybackNonce||"";w=w&&w.Jo||!1;if(eG(a,!0)&&w){var e;a={};(e=q.player.getVideoData())==null||e.d8("p_cpb",(a.cc=O,a))}e=1E3*q.player.getDuration(1);JlB(q);q.V.V.eX.Xa(O,e,w,b.a7,b.MF,b.a7,k,G)}; JlB=function(q){var a,w;if(w=(a=q.player.getVideoData(1))==null||!a.Jo)a=q.player.B(),w=e7(a)&&!g.lt(a)&&a.playerStyle==="desktop-polymer";w&&(q=q.player.getInternalApi(),q.addEventListener("updateKevlarOrC3Companion",$Fl),q.addEventListener("updateEngagementPanelAction",swm),q.addEventListener("changeEngagementPanelVisibility",FJj),window.addEventListener("yt-navigate-start",ZIJ))}; zI=function(q,a){a===q.AO&&(q.AO=void 0)}; QBy=function(q){var a=Zy(q.V).oA,w=a.Y().Wu("SLOT_TYPE_PLAYER_BYTES",1);a=uw(a.n7.get(),1).clientPlaybackNonce;var G=!1;w=g.V(w);for(var k=w.next();!k.done;k=w.next()){k=k.value;var b=k.slotType==="SLOT_TYPE_PLAYER_BYTES"&&k.slotEntryTrigger instanceof RX?k.slotEntryTrigger.ma:void 0;b&&b===a&&(G&&Gj("More than 1 preroll playerBytes slot detected",k),G=!0)}G||kC(Zy(q.V).Vo)}; AlR=function(q){if(ie(Zy(q.V).QV))return!0;var a="";q=g.V(Zy(q.V).L3.a_.keys());for(var w=q.next();!w.done;w=q.next()){w=w.value;if(w.slotType==="SLOT_TYPE_PLAYER_BYTES"&&w.kT==="core")return!0;a+=w.slotType+" "}Math.random()<.01&&Gj("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:a});return!1}; xey=function(q){q=g.V(Zy(q.V).L3.a_.values());for(var a=q.next();!a.done;a=q.next())if(a.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; jeG=function(q,a,w,G,k,b,O){w=w===void 0?[]:w;G=G===void 0?"":G;k=k===void 0?"":k;var e=Zy(q.V).QV,N=q.player.getVideoData(1);N&&N.getPlayerResponse();N&&N.pk();w=VKy(a,w,e,Zy(q.V).wR);vvm(Zy(q.V).cN,G,w.a7,w.MF,a,k,b,O)}; VKy=function(q,a,w,G){a={a7:[],MF:a};q=g.V(q);for(var k=q.next();!k.done;k=q.next())if((k=k.value)&&k.renderer!=null){var b=k.renderer;if(!w.j.B().T("html5_enable_vod_lasr_with_notify_pacf")){var O=void 0,e=void 0,N=void 0,Y=void 0,P=G;g.I((Y=b.sandwichedLinearAdRenderer)==null?void 0:Y.adVideoStart,IN)?(O=g.I((N=b.sandwichedLinearAdRenderer)==null?void 0:N.adVideoStart,IN),O=Opm(O,P),g.rI(b.sandwichedLinearAdRenderer.adVideoStart,IN,O)):g.I((e=b.linearAdSequenceRenderer)==null?void 0:e.adStart,IN)&& (N=g.I((O=b.linearAdSequenceRenderer)==null?void 0:O.adStart,IN),O=Opm(N,P),g.rI(b.linearAdSequenceRenderer.adStart,IN,O))}a.a7.push(k)}return a}; g.i7=function(q){if(typeof DOMParser!="undefined")return A7(new DOMParser,rty(q),"application/xml");throw Error("Your browser does not support loading xml documents");}; g.WK=function(q){g.c.call(this);this.callback=q;this.V=new $X(0,0,.4,0,.2,1,1,1);this.delay=new g.jd(this.next,window,this);g.p(this,this.delay)}; g.LUy=function(q){var a=q.B();return a.h8&&!a.W&&g.yw(a)?q.isEmbedsShortsMode()?(q=q.f3(),Math.min(q.width,q.height)>=315):!q.Ev():!1}; g.Dy=function(q){g.u.call(this,{G:"div",N:"ytp-more-videos-view",Z:{tabIndex:"-1"}});var a=this;this.api=q;this.U=!0;this.W=new g.Ee(this);this.V=[];this.suggestionData=[];this.columns=this.containerWidth=this.S=this.Y=this.scrollPosition=0;this.title=new g.u({G:"h2",N:"ytp-related-title",ue:"{{title}}"});this.previous=new g.u({G:"button",vT:["ytp-button","ytp-previous"],Z:{"aria-label":"Mostrar v\u00eddeos sugeridos previamente"},K:[g.Nl()]});this.X=new g.WK(function(w){a.suggestions.element.scrollLeft= -w}); this.next=new g.u({G:"button",vT:["ytp-button","ytp-next"],Z:{"aria-label":"Mostrar m\u00e1s v\u00eddeos sugeridos"},K:[g.Yp()]});g.p(this,this.W);this.L=q.B().Y;g.p(this,this.title);this.title.HT(this.element);this.suggestions=new g.u({G:"div",N:"ytp-suggestions"});g.p(this,this.suggestions);this.suggestions.HT(this.element);g.p(this,this.previous);this.previous.HT(this.element);this.previous.listen("click",this.Hi,this);g.p(this,this.X);Byl(this);g.p(this,this.next);this.next.HT(this.element);this.next.listen("click", this.jw,this);this.W.C(this.api,"appresize",this.sA);this.W.C(this.api,"fullscreentoggled",this.TC);this.W.C(this.api,"videodatachange",this.onVideoDataChange);this.sA(this.api.mQ().getPlayerSize());this.onVideoDataChange()}; Byl=function(q){for(var a={VK:0};a.VK<16;a={VK:a.VK},++a.VK){var w=new g.u({G:"a",N:"ytp-suggestion-link",Z:{href:"{{link}}",target:q.api.B().J,"aria-label":"{{aria_label}}"},K:[{G:"div",N:"ytp-suggestion-image"},{G:"div",N:"ytp-suggestion-overlay",Z:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},K:[{G:"div",N:"ytp-suggestion-title",ue:"{{title}}"},{G:"div",N:"ytp-suggestion-author",ue:"{{author_and_views}}"},{G:"div",Z:{"data-is-live":"{{is_live}}"},N:"ytp-suggestion-duration", ue:"{{duration}}"}]}]});g.p(q,w);var G=w.oW("ytp-suggestion-link");g.IR(G,"transitionDelay",a.VK/20+"s");q.W.C(G,"click",function(k){return function(b){var O=k.VK;if(q.U){var e=q.suggestionData[O],N=e.sessionData;q.L&&q.api.T("web_player_log_click_before_generating_ve_conversion_params")?(q.api.logClick(q.V[O].element),O=e.La(),e={},g.z4(q.api,e),O=g.sk(O,e),g.mE(O,q.api,b)):g.J0(b,q.api,q.L,N||void 0)&&q.api.Fj(e.videoId,N,e.playlistId)}else b.preventDefault(),document.activeElement.blur()}}(a)); w.HT(q.suggestions.element);q.V.push(w);q.api.createServerVe(w.element,w)}}; rlc=function(q){if(q.api.B().T("web_player_log_click_before_generating_ve_conversion_params"))for(var a=Math.floor(-q.scrollPosition/(q.Y+8)),w=Math.min(a+q.columns,q.suggestionData.length)-1;a<=w;a++)q.api.logVisibility(q.V[a].element,!0)}; g.R8=function(q){var a=q.api.o8()?32:16;a=q.S/2+a;q.next.element.style.bottom=a+"px";q.previous.element.style.bottom=a+"px";a=q.scrollPosition;var w=q.containerWidth-q.suggestionData.length*(q.Y+8);g.kX(q.element,"ytp-scroll-min",a>=0);g.kX(q.element,"ytp-scroll-max",a<=w)}; MKx=function(q){for(var a=q.suggestionData.length,w=0;w>>0)+"_",k=0;return a}); PJ("Symbol.iterator",function(q){if(q)return q;q=Symbol("Symbol.iterator");for(var a="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),w=0;w0&&w>0;)if(G[--w]!=a[--k])return!1;return k<=0}}); PJ("Array.prototype.find",function(q){return q?q:function(a,w){return PGG(this,a,w).xH}}); PJ("Array.prototype.entries",function(q){return q?q:function(){return uG(this,function(a,w){return[a,w]})}}); PJ("Array.prototype.keys",function(q){return q?q:function(){return uG(this,function(a){return a})}}); PJ("String.prototype.startsWith",function(q){return q?q:function(a,w){var G=o_(this,a,"startsWith");a+="";var k=G.length,b=a.length;w=Math.max(0,Math.min(w|0,G.length));for(var O=0;O=b}}); PJ("Number.isFinite",function(q){return q?q:function(a){return typeof a!=="number"?!1:!isNaN(a)&&a!==Infinity&&a!==-Infinity}}); PJ("String.prototype.repeat",function(q){return q?q:function(a){var w=o_(this,null,"repeat");if(a<0||a>1342177279)throw new RangeError("Invalid count value");a|=0;for(var G="";a;)if(a&1&&(G+=w),a>>>=1)w+=w;return G}}); PJ("Object.entries",function(q){return q?q:function(a){var w=[],G;for(G in a)FU(a,G)&&w.push([G,a[G]]);return w}}); PJ("Array.from",function(q){return q?q:function(a,w,G){w=w!=null?w:function(e){return e}; var k=[],b=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];if(typeof b=="function"){a=b.call(a);for(var O=0;!(b=a.next()).done;)k.push(w.call(G,b.value,O++))}else for(b=a.length,O=0;O>>0;if(a===0)return 32;var w=0;(a&4294901760)===0&&(a<<=16,w+=16);(a&4278190080)===0&&(a<<=8,w+=8);(a&4026531840)===0&&(a<<=4,w+=4);(a&3221225472)===0&&(a<<=2,w+=2);(a&2147483648)===0&&w++;return w}}); PJ("Number.isNaN",function(q){return q?q:function(a){return typeof a==="number"&&isNaN(a)}}); PJ("Array.prototype.values",function(q){return q?q:function(){return uG(this,function(a,w){return w})}}); PJ("Array.prototype.fill",function(q){return q?q:function(a,w,G){var k=this.length||0;w<0&&(w=Math.max(0,k+w));if(G==null||G>k)G=k;G=Number(G);G<0&&(G=Math.max(0,k+G));for(w=Number(w||0);w0&&w?w.repeat(Math.ceil(a/w.length)).substring(0,a):"")+G}}); PJ("Array.prototype.findIndex",function(q){return q?q:function(a,w){return PGG(this,a,w).Jd}}); PJ("Promise.prototype.finally",function(q){return q?q:function(a){return this.then(function(w){return Promise.resolve(a()).then(function(){return w})},function(w){return Promise.resolve(a()).then(function(){throw w; })})}}); PJ("Math.imul",function(q){return q?q:function(a,w){a=Number(a);w=Number(w);var G=a&65535,k=w&65535;return G*k+((a>>>16&65535)*k+G*(w>>>16&65535)<<16>>>0)|0}}); PJ("Math.sign",function(q){return q?q:function(a){a=Number(a);return a===0||isNaN(a)?a:a>0?1:-1}}); PJ("WeakSet",function(q){function a(w){this.V=new WeakMap;if(w){w=g.V(w);for(var G;!(G=w.next()).done;)this.add(G.value)}} if(function(){if(!q||!Object.seal)return!1;try{var w=Object.seal({}),G=Object.seal({}),k=new q([w]);if(!k.has(w)||k.has(G))return!1;k.delete(w);k.add(G);return!k.has(w)&&k.has(G)}catch(b){return!1}}())return q; a.prototype.add=function(w){this.V.set(w,!0);return this}; a.prototype.has=function(w){return this.V.has(w)}; a.prototype.delete=function(w){return this.V.delete(w)}; return a}); PJ("AggregateError",function(q){function a(w,G){G=Error(G);"stack"in G&&(this.stack=G.stack);this.errors=w;this.message=G.message} if(q)return q;g.Z(a,Error);a.prototype.name="AggregateError";return a}); PJ("Array.prototype.copyWithin",function(q){function a(w){w=Number(w);return w===Infinity||w===-Infinity?w:w|0} return q?q:function(w,G,k){var b=this.length;w=a(w);G=a(G);k=k===void 0?b:a(k);w=w<0?Math.max(b+w,0):Math.min(w,b);G=G<0?Math.max(b+G,0):Math.min(G,b);k=k<0?Math.max(b+k,0):Math.min(k,b);if(wG;)--k in this?this[--w]=this[k]:delete this[--w];return this}}); PJ("Int8Array.prototype.copyWithin",vJ);PJ("Uint8Array.prototype.copyWithin",vJ);PJ("Uint8ClampedArray.prototype.copyWithin",vJ);PJ("Int16Array.prototype.copyWithin",vJ);PJ("Uint16Array.prototype.copyWithin",vJ);PJ("Int32Array.prototype.copyWithin",vJ);PJ("Uint32Array.prototype.copyWithin",vJ);PJ("Float32Array.prototype.copyWithin",vJ);PJ("Float64Array.prototype.copyWithin",vJ);PJ("Array.prototype.at",function(q){return q?q:iG}); PJ("Int8Array.prototype.at",Dc);PJ("Uint8Array.prototype.at",Dc);PJ("Uint8ClampedArray.prototype.at",Dc);PJ("Int16Array.prototype.at",Dc);PJ("Uint16Array.prototype.at",Dc);PJ("Int32Array.prototype.at",Dc);PJ("Uint32Array.prototype.at",Dc);PJ("Float32Array.prototype.at",Dc);PJ("Float64Array.prototype.at",Dc);PJ("String.prototype.at",function(q){return q?q:iG}); PJ("Array.prototype.findLastIndex",function(q){return q?q:function(a,w){return Klm(this,a,w).Jd}}); PJ("Int8Array.prototype.findLastIndex",R_);PJ("Uint8Array.prototype.findLastIndex",R_);PJ("Uint8ClampedArray.prototype.findLastIndex",R_);PJ("Int16Array.prototype.findLastIndex",R_);PJ("Uint16Array.prototype.findLastIndex",R_);PJ("Int32Array.prototype.findLastIndex",R_);PJ("Uint32Array.prototype.findLastIndex",R_);PJ("Float32Array.prototype.findLastIndex",R_);PJ("Float64Array.prototype.findLastIndex",R_);PJ("Number.parseInt",function(q){return q||parseInt});var tt,O6,Tcm;tt=tt||{};g.yV=this||self;O6="closure_uid_"+(Math.random()*1E9>>>0);Tcm=0;g.TJ($c,Error);$c.prototype.name="CustomError";var ncV;var Vyy,CQ,In;Vyy=Array.prototype.indexOf?function(q,a){return Array.prototype.indexOf.call(q,a,void 0)}:function(q,a){if(typeof q==="string")return typeof a!=="string"||a.length!=1?-1:q.indexOf(a,0); for(var w=0;w=0;w--)if(w in q&&q[w]===a)return w;return-1}; g.WR=Array.prototype.forEach?function(q,a,w){Array.prototype.forEach.call(q,a,w)}:function(q,a,w){for(var G=q.length,k=typeof q==="string"?q.split(""):q,b=0;b=.3:this.EB>=.5};var LH={yKW:0,Iwe:1},xPl={NONE:0,bF7:1,dXG:2};var HKm="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");CH.prototype.getValue=function(){return this.U}; g.Z(Zi,CH);Zi.prototype.W=function(q){this.U===null&&g.YI(this.Y,q)&&(this.U=q)}; g.Z(E7,CH);E7.prototype.W=function(q){this.U===null&&typeof q==="number"&&(this.U=q)}; g.Z(V2,CH);V2.prototype.W=function(q){this.U===null&&typeof q==="string"&&(this.U=q)};JV.prototype.disable=function(){this.U=!1}; JV.prototype.enable=function(){this.U=!0}; JV.prototype.isEnabled=function(){return this.U}; JV.prototype.reset=function(){this.V={};this.U=!0;this.W={}};var to=document,rp=window;var XRU=GJ(1,!0),pH=GJ(610401301,!1);GJ(899588437,!1);var jBl=GJ(772657768,!1),ocK=GJ(513659523,!1),I7c=GJ(568333945,XRU),CKy=GJ(1331761403,!1);GJ(651175828,!1);GJ(722764542,!1);GJ(748402145,!1);GJ(748402146,!1);var E1V=GJ(748402147,XRU);GJ(333098724,!1);GJ(2147483644,!1);GJ(2147483645,!1);GJ(2147483646,XRU);GJ(2147483647,!0);var U7=!!g.aB("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var SX=String.prototype.trim?function(q){return q.trim()}:function(q){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(q)[1]},Owc=/&/g,l7c=//g,Nyc=/"/g,Y6l=/'/g,PVj=/\x00/g,bw_=/[\x00&<>"']/;var XE,u8J=g.yV.navigator;XE=u8J?u8J.userAgentData||null:null;var iKy=globalThis.trustedTypes,Di;y2.prototype.toString=function(){return this.V+""};wj.prototype.toString=function(){return this.V}; var RNf=new wj("about:invalid#zClosurez");var Mp_=b1("tel"),rSU=b1("sms"),Dm_=[b1("data"),b1("http"),b1("https"),b1("mailto"),b1("ftp"),new k1(function(q){return/^[^:]*([/?#]|$)/.test(q)})],ymm=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;PS.prototype.toString=function(){return this.V+""};sX.prototype.toString=function(){return this.V+""};V_.prototype.toString=function(){return this.V};var m_={};g.tKI=String.prototype.repeat?function(q,a){return q.repeat(a)}:function(q,a){return Array(a+1).join(q)};pS[" "]=function(){};var uh,Ke,p6N,vcU,zIe,iwU,iE,Wm,WUR;g.Du=vL();g.eL=olj();g.jI=ub("Edge");g.mv=g.jI||g.eL;uh=ub("Gecko")&&!(hV(g.cL(),"WebKit")&&!ub("Edge"))&&!(ub("Trident")||ub("MSIE"))&&!ub("Edge");g.NP=hV(g.cL(),"WebKit")&&!ub("Edge");Ke=cS();p6N=FUV();g.vr=sBG();vcU=fS();zIe=ub("iPad");iwU=ub("iPod");iE=HS();Wm=hV(g.cL(),"KaiOS"); a:{var DeJ="",RII=function(){var q=g.cL();if(uh)return/rv:([^\);]+)(\)|;)/.exec(q);if(g.jI)return/Edge\/([\d\.]+)/.exec(q);if(g.eL)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(q);if(g.NP)return/WebKit\/(\S+)/.exec(q);if(g.Du)return/(?:Version)[ \/]?(\S+)/.exec(q)}(); RII&&(DeJ=RII?RII[1]:"");if(g.eL){var yS,yll=g.yV.document;yS=yll?yll.documentMode:void 0;if(yS!=null&&yS>parseFloat(DeJ)){WUR=String(yS);break a}}WUR=DeJ}var VKc=WUR,Zwf={};var Ic,uO;g.Yx=zB();Ic=fS()||ub("iPod");uO=ub("iPad");g.RW=uUm();g.se=ib();g.Ph=WL()&&!HS();var n0G=!g.eL&&!WL();g.C=g.Is.prototype;g.C.clone=function(){return new g.Is(this.x,this.y)}; g.C.equals=function(q){return q instanceof g.Is&&u1(this,q)}; g.C.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; g.C.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; g.C.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; g.C.scale=function(q,a){this.x*=q;this.y*=typeof a==="number"?a:q;return this};g.C=g.t7.prototype;g.C.clone=function(){return new g.t7(this.width,this.height)}; g.C.aspectRatio=function(){return this.width/this.height}; g.C.isEmpty=function(){return!zR(this)}; g.C.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.C.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.C.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.C.scale=function(q,a){this.width*=q;this.height*=typeof a==="number"?a:q;return this};WS.prototype.toString=function(){return this.V}; var i1={};new WS(i1,"");var QBc=/^[a-z][a-z\d-]*$/i,AlJ="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),LUc="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),rll=["action","formaction","href"];var MKV={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};g.C=y_.prototype;g.C.cq=function(q){return GY(this.V,q)}; g.C.getElementsByTagName=function(q,a){return(a||this.V).getElementsByTagName(String(q))}; g.C.oW=function(q){return g.lh(q,this.V)}; g.C.setProperties=eU;g.C.createElement=function(q){return Pa(this.V,q)}; g.C.appendChild=g.$A;g.C.append=function(q,a){Hwf(qP(q),q,arguments,1)}; g.C.canHaveChildren=function(q){if(q.nodeType!=1)return!1;switch(q.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0}; g.C.removeNode=g.Cn;g.C.getChildren=function(q){return q.children!=void 0?q.children:Array.prototype.filter.call(q.childNodes,function(a){return a.nodeType==1})}; g.C.contains=g.ZM;xA.prototype.now=function(){return 0}; xA.prototype.U=function(){return 0}; xA.prototype.W=function(){return 0}; xA.prototype.V=function(){return 0};g.Z(Ba,xA);Ba.prototype.now=function(){return Ln()&&rp.performance.now?rp.performance.now():xA.prototype.now.call(this)}; Ba.prototype.U=function(){return Ln()&&rp.performance.memory?rp.performance.memory.totalJSHeapSize||0:xA.prototype.U.call(this)}; Ba.prototype.W=function(){return Ln()&&rp.performance.memory?rp.performance.memory.usedJSHeapSize||0:xA.prototype.W.call(this)}; Ba.prototype.V=function(){return Ln()&&rp.performance.memory?rp.performance.memory.jsHeapSizeLimit||0:xA.prototype.V.call(this)};var LGc=function(){if(!g.yV.addEventListener||!Object.defineProperty)return!1;var q=!1,a=Object.defineProperty({},"passive",{get:function(){q=!0}}); try{var w=function(){}; g.yV.addEventListener("test",w,a);g.yV.removeEventListener("test",w,a)}catch(G){}return q}();var qJl=XRl("AnimationEnd"),By=XRl("TransitionEnd");g.C=Ha.prototype;g.C.getHeight=function(){return this.bottom-this.top}; g.C.clone=function(){return new Ha(this.top,this.right,this.bottom,this.left)}; g.C.contains=function(q){return this&&q?q instanceof Ha?q.left>=this.left&&q.right<=this.right&&q.top>=this.top&&q.bottom<=this.bottom:q.x>=this.left&&q.x<=this.right&&q.y>=this.top&&q.y<=this.bottom:!1}; g.C.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.C.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.C.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.C.scale=function(q,a){a=typeof a==="number"?a:q;this.left*=q;this.right*=q;this.top*=a;this.bottom*=a;return this};g.C=g.Xr.prototype;g.C.clone=function(){return new g.Xr(this.left,this.top,this.width,this.height)}; g.C.contains=function(q){return q instanceof g.Is?q.x>=this.left&&q.x<=this.left+this.width&&q.y>=this.top&&q.y<=this.top+this.height:this.left<=q.left&&this.left+this.width>=q.left+q.width&&this.top<=q.top&&this.top+this.height>=q.top+q.height}; g.C.getSize=function(){return new g.t7(this.width,this.height)}; g.C.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.C.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.C.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.C.scale=function(q,a){a=typeof a==="number"?a:q;this.left*=q;this.width*=q;this.top*=a;this.height*=a;return this};var ocy={};var iwl=hM(function(){var q=!1;try{var a=Object.defineProperty({},"passive",{get:function(){q=!0}}); g.yV.addEventListener("test",null,a)}catch(w){}return q});WUJ.prototype.isVisible=function(){return ke(to)===1};var Iif=Od(function(q){return typeof q==="number"}),iF=Od(function(q){return typeof q==="string"}),uEj=Od(function(q){return typeof q==="boolean"}),Hc=Od(function(q){return q!=null&&typeof q==="object"&&typeof q.then==="function"}),J3m=Od(function(q){return typeof q==="function"}),q7J=Od(function(q){return!!q&&(typeof q==="object"||typeof q==="function")});var ylm={za2:"allow-forms",ZWQ:"allow-modals",BtB:"allow-orientation-lock",s88:"allow-pointer-lock",Ksl:"allow-popups",I87:"allow-popups-to-escape-sandbox",J48:"allow-presentation",r4T:"allow-same-origin",V2e:"allow-scripts",a98:"allow-top-navigation",FqG:"allow-top-navigation-by-user-activation"},wLy=hM(function(){return q7f()});var bHm=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");KQ.prototype.Do=function(q,a,w){q=q+"//"+a+w;var G=Nnm(this)-w.length;if(G<0)return"";this.V.sort(function(Y,P){return Y-P}); w=null;a="";for(var k=0;k=N.length){G-=N.length;q+=N;a=this.W;break}w=w==null?b:w}}G="";w!=null&&(G=""+a+"trn="+w);return q+G};Ed.prototype.setInterval=function(q,a){return rp.setInterval(q,a)}; Ed.prototype.clearInterval=function(q){rp.clearInterval(q)}; Ed.prototype.setTimeout=function(q,a){return rp.setTimeout(q,a)}; Ed.prototype.clearTimeout=function(q){rp.clearTimeout(q)};var Y6=void 0,NM,o1V=typeof TextDecoder!=="undefined",EIj,ZHf=typeof String.prototype.isWellFormed==="function",CbK=typeof TextEncoder!=="undefined";var AVf={},BU=null,xWm=uh||g.NP||typeof g.yV.btoa=="function";var cVc=typeof Uint8Array!=="undefined",MXl=!g.eL&&typeof btoa==="function",h3V=/[-_.]/g,rVj={"-":"+",_:"/",".":"="},nQ={};rh.prototype.isEmpty=function(){return this.V==null}; rh.prototype.sizeBytes=function(){var q=hH(this);return q?q.length:0}; var HHf;var pLV=void 0;var pQ=typeof Symbol==="function"&&typeof Symbol()==="symbol",gIc=cU("jas",void 0,!0),FJ=cU(void 0,"1oa"),M0=cU(void 0,Symbol()),aiI=cU(void 0,"0ub"),K_l=cU(void 0,"0ubs"),K4m=cU(void 0,"0ubsb"),J7m=cU(void 0,"0actk"),B3=cU("m_m","eM8",!0),$OJ=cU(void 0,"vps"),wLK=cU();Math.max.apply(Math,g.Tf(Object.values({dyB:1,Uyl:2,FnT:4,ID9:8,Zd8:16,Sk7:32,WPW:64,jO2:128,aOh:256,id7:512,UXT:1024,HFT:2048,Am7:4096})));var XLl={Ea:{value:0,configurable:!0,writable:!0,enumerable:!1}},UWU=Object.defineProperties,Ud=pQ?gIc:"Ea",GU,GBJ=[];j0(GBJ,7);GU=Object.freeze(GBJ);var ra={},IT={},n1J=Object.freeze({}),vU={};var RT=typeof g.yV.BigInt==="function"&&typeof g.yV.BigInt(0)==="bigint";var pi=Od(function(q){return RT?q>=kB8&&q<=bHl:q[0]==="-"?tXy(q,OH6):tXy(q,liR)}),OH6=Number.MIN_SAFE_INTEGER.toString(),kB8=RT?BigInt(Number.MIN_SAFE_INTEGER):void 0,liR=Number.MAX_SAFE_INTEGER.toString(),bHl=RT?BigInt(Number.MAX_SAFE_INTEGER):void 0;var c7c=typeof Uint8Array.prototype.slice==="function",q0=0,aL=0,dPG;var ZL=typeof BigInt==="function"?BigInt.asIntN:void 0,OSj=typeof BigInt==="function"?BigInt.asUintN:void 0,mC=Number.isSafeInteger,P3=Number.isFinite,Qt=Math.trunc,DWf=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var ss_={};var e3y={Nxe:!0};var H3;var F_y,C1J;var SXj=yN(0),hY={};j8.prototype.init=function(q,a,w,G){var k=G===void 0?{}:G;G=k.hC===void 0?!1:k.hC;k=k.n9===void 0?!1:k.n9;this.hC=G;this.n9=k;q&&(q=XJ(q,this.n9),this.U=q.buffer,this.D=q.V,this.Y=a||0,this.W=w!==void 0?this.Y+w:this.U.length,this.V=this.Y)}; j8.prototype.free=function(){this.clear();W$.length<100&&W$.push(this)}; j8.prototype.clear=function(){this.U=null;this.D=!1;this.V=this.W=this.Y=0;this.hC=!1}; j8.prototype.reset=function(){this.V=this.Y}; var W$=[];D$.prototype.free=function(){this.V.clear();this.U=this.W=-1;Rj.length<100&&Rj.push(this)}; D$.prototype.reset=function(){this.V.reset();this.Y=this.V.V;this.U=this.W=-1}; var Rj=[];var u1c,v1l;TN.prototype.length=function(){return this.V.length}; TN.prototype.end=function(){var q=this.V;this.V=[];return q};var m1=Vn(),Nnl=Vn(),Y7e=Vn(),PbK=Vn(),K9y=Vn(),dWI=Vn(),Tne=Vn(),$W7=Vn(),s6c=Vn(),F9K=Vn(),Cbw=Vn();Jx.prototype.toJSON=function(){return oL(this)}; Jx.prototype.m$=function(q){return JSON.stringify(oL(this,q))}; Jx.prototype.clone=function(){var q=this.r8,a=q[Ud]|0;return v3(this,q,a)?zD(this,q,!0):new this.constructor(tn(q,a,!1))}; Jx.prototype[B3]=ra;Jx.prototype.toString=function(){return this.r8.toString()};var wal=Ax(function(q,a,w,G,k){if(q.U!==2)return!1;qM(q,Cl(a,G,w),k);return!0},aMy),GYc=Ax(function(q,a,w,G,k){if(q.U!==2)return!1; qM(q,Cl(a,G,w),k);return!0},aMy),HI=Symbol(),nb=Symbol(),Sc=Symbol(),NpV=Symbol(),OnK=Symbol(),x6,Lb;var ZHJ=tx(function(q,a,w){if(q.U!==1)return!1;i2(a,w,zU(q.V));return!0},WI,s6c),EI6=tx(function(q,a,w){if(q.U!==1)return!1; q=zU(q.V);i2(a,w,q===0?void 0:q);return!0},WI,s6c),VXc=tx(function(q,a,w,G){if(q.U!==1)return!1; $N(a,w,G,zU(q.V));return!0},WI,s6c),JV6=tx(function(q,a,w){if(q.U!==0)return!1; i2(a,w,Ij(q.V));return!0},DB,Tne),mWx=tx(function(q,a,w){if(q.U!==0)return!1; q=Ij(q.V);i2(a,w,q===0?void 0:q);return!0},DB,Tne),Q6U=tx(function(q,a,w,G){if(q.U!==0)return!1; $N(a,w,G,Ij(q.V));return!0},DB,Tne),AVJ=tx(function(q,a,w){if(q.U!==0)return!1; i2(a,w,uQ(q.V));return!0},Rb,PbK),xWe=tx(function(q,a,w){if(q.U!==0)return!1; q=uQ(q.V);i2(a,w,q===0?void 0:q);return!0},Rb,PbK),L9V=tx(function(q,a,w,G){if(q.U!==0)return!1; $N(a,w,G,uQ(q.V));return!0},Rb,PbK),Bnc=tx(function(q,a,w){if(q.U!==1)return!1; i2(a,w,v$(q.V));return!0},function(q,a,w){y7m(q,w,lvj(a))},$W7),rV6=vI(function(q,a,w){if(q.U!==1&&q.U!==2)return!1; a=YN(a,a[Ud]|0,w);if(q.U==2)for(w=uQ(q.V)>>>0,w=q.V.V+w;q.V.V>>0);return!0},function(q,a,w){a=$0(a); a!=null&&a!=null&&(ZB(q,w,0),sK(q.V,a))},K9y),ky=tx(function(q,a,w){if(q.U!==0)return!1; i2(a,w,uQ(q.V));return!0},function(q,a,w){a=TD(a); a!=null&&(a=parseInt(a,10),ZB(q,w,0),iSm(q.V,a))},Cbw);Chc.prototype.register=function(){pS(this)};g.Z(gY,Jx);gY.prototype.W=EA_([0,EI6,mWx,-2,xWe]);var L4J={Hs9:1,IJ:2,gK7:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};rMc.prototype.Fy=function(q){if(typeof q==="string"&&q.length!=0){var a=this.H5;if(a.U){q=q.split("&");for(var w=q.length-1;w>=0;w--){var G=q[w].split("="),k=decodeURIComponent(G[0]);G.length>1?(G=decodeURIComponent(G[1]),G=/^[0-9]+$/g.exec(G)?parseInt(G,10):G):G=1;(k=a.V[k])&&k.W(G)}}}};var bT=null;var Ok=g.yV.performance,pLx=!!(Ok&&Ok.mark&&Ok.measure&&Ok.clearMarks),k$=hM(function(){var q;if(q=pLx){var a=a===void 0?window:a;if(bT===null){bT="";try{q="";try{q=a.top.location.hash}catch(G){q=a.location.hash}if(q){var w=q.match(/\bdeid=([\d,]+)/);bT=w?w[1]:""}}catch(G){}}a=bT;q=!!a.indexOf&&a.indexOf("1337")>=0}return q}); b6.prototype.disable=function(){this.V=!1;this.events!==this.U.google_js_reporting_queue&&(k$()&&g.WR(this.events,Hnc),this.events.length=0)}; b6.prototype.start=function(q,a){if(!this.V)return null;var w=SNG()||hml();q=new fMc(q,a,w);a="goog_"+q.label+"_"+q.uniqueId+"_start";Ok&&k$()&&Ok.mark(a);return q}; b6.prototype.end=function(q){if(this.V&&typeof q.value==="number"){var a=SNG()||hml();q.duration=a-q.value;a="goog_"+q.label+"_"+q.uniqueId+"_end";Ok&&k$()&&Ok.mark(a);!this.V||this.events.length>2048||this.events.push(q)}};var cMc=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),Ek=/#|$/,IMl=/[?&]($|#)/;tUU.prototype.EO=function(q,a,w,G,k){k=k||this.d3;try{var b=new KQ;b.V.push(1);b.U[1]=dh("context",q);a.error&&a.meta&&a.id||(a=new x$(L3(a)));if(a.msg){var O=a.msg.substring(0,512);b.V.push(2);b.U[2]=dh("msg",O)}var e=a.meta||{};if(this.s4)try{this.s4(e)}catch(T){}if(G)try{G(e)}catch(T){}G=[e];b.V.push(3);b.U[3]=G;var N=liJ();if(N.U){var Y=N.U.url||"";b.V.push(4);b.U[4]=dh("top",Y)}var P={url:N.V.url||""};if(N.V.url){var K=g.es(N.V.url);var d=l6(K[1],null,K[3],K[4])}else d="";Y=[P,{url:d}];b.V.push(5); b.U[5]=Y;nAG(this.V,k,b,w)}catch(T){try{nAG(this.V,k,{context:"ecmserr",rctx:q,msg:L3(T),url:N&&N.V.url},w)}catch(F){}}return this.yj}; g.Z(x$,MUm);var Q6,Ao,mG=new b6;Q6=new function(){var q="https:";rp&&rp.location&&rp.location.protocol==="http:"&&(q="http:");this.U=q;this.V=.01}; Ao=new tUU;rp&&rp.document&&(rp.document.readyState=="complete"?zmc():mG.V&&G5(rp,"load",function(){zmc()}));var DPc=Date.now(),f3=-1,ho=-1,blJ,Hl=-1,Ss=!1;cl.prototype.equals=function(q,a){return!!q&&(!(a===void 0?0:a)||this.volume==q.volume)&&this.W==q.W&&pn(this.V,q.V)&&!0};p3.prototype.cq=function(){return this.X}; p3.prototype.equals=function(q,a){return this.Y.equals(q.Y,a===void 0?!1:a)&&this.X==q.X&&pn(this.W,q.W)&&pn(this.L,q.L)&&this.V==q.V&&this.D==q.D&&this.U==q.U&&this.S==q.S};var UW8={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},vQ={At:"start",dX:"firstquartile",Xr:"midpoint",zU:"thirdquartile",COMPLETE:"complete",ERROR:"error",TU:"metric",PAUSE:"pause",P0:"resume",xG:"skip",KG:"viewable_impression",lZ:"mute",B0:"unmute",un:"fullscreen",UN:"exitfullscreen",K4:"bufferstart",mx:"bufferfinish",Wi:"fully_viewable_audible_half_duration_impression",Ep:"measurable_impression",bX:"abandon",Fg:"engagedview",q8:"impression",rM:"creativeview",LOADED:"loaded", Let:"progress",CLOSE:"close",Oa7:"collapse",UQB:"overlay_resize",dQT:"overlay_unmeasurable_impression",Os2:"overlay_unviewable_impression",Weh:"overlay_viewable_immediate_impression",uV8:"overlay_viewable_end_of_session_impression",VM:"custom_metric_viewable",C4:"audio_audible",AR:"audio_measurable",SC:"audio_impression"},sbc="start firstquartile midpoint thirdquartile resume loaded".split(" "),F1j=["start","firstquartile","midpoint","thirdquartile"],l$y=["abandon"],dX={UNKNOWN:-1,At:0,dX:1,Xr:2, zU:3,COMPLETE:4,TU:5,PAUSE:6,P0:7,xG:8,KG:9,lZ:10,B0:11,un:12,UN:13,Wi:14,Ep:15,bX:16,Fg:17,q8:18,rM:19,LOADED:20,VM:21,K4:22,mx:23,SC:27,AR:28,C4:29};var yMl={gDe:"addEventListener",uS7:"getMaxSize",W7t:"getScreenSize",qTQ:"getState",QOe:"getVersion",MD7:"removeEventListener",O3G:"isViewable"};bQm.prototype.update=function(q){q&&q.document&&(this.X=Uk(!1,q,this.isMobileDevice),this.V=Uk(!0,q,this.isMobileDevice),lDG(this,q),OQ_(this,q))};z7.prototype.cancel=function(){VN().clearTimeout(this.V);this.V=null}; z7.prototype.schedule=function(){var q=this,a=VN(),w=wY().V.V;this.V=a.setTimeout(an(w,rY(143,function(){q.U++;q.W.sample()})),RmV())};g.C=i6.prototype;g.C.l8=function(){return!1}; g.C.initialize=function(){return this.isInitialized=!0}; g.C.gK=function(){return this.V.f7}; g.C.P7=function(){return this.V.F9}; g.C.fail=function(q,a){if(!this.F9||(a===void 0?0:a))this.F9=!0,this.f7=q,this.S=0,this.V!=this||D9(this)}; g.C.getName=function(){return this.V.Tl}; g.C.v3=function(){return this.V.EW()}; g.C.EW=function(){return{}}; g.C.ej=function(){return this.V.S}; g.C.i$=function(){var q=u6();q.V=Uk(!0,this.W,q.isMobileDevice)}; g.C.vn=function(){OQ_(u6(),this.W)}; g.C.Aj=function(){return this.Y.V}; g.C.sample=function(){}; g.C.isActive=function(){return this.V.L}; g.C.BP=function(q){var a=this.V;this.V=q.ej()>=this.S?q:this;a!==this.V?(this.L=this.V.L,D9(this)):this.L!==this.V.L&&(this.L=this.V.L,D9(this))}; g.C.Ml=function(q){if(q.U===this.V){var a=!this.Y.equals(q,this.J);this.Y=q;a&&Ydj(this)}}; g.C.lR=function(){return this.J}; g.C.dispose=function(){this.jt=!0}; g.C.t2=function(){return this.jt};g.C=Rn.prototype;g.C.observe=function(){return!0}; g.C.unobserve=function(){}; g.C.rJ=function(q){this.D=q}; g.C.dispose=function(){if(!this.t2()){var q=this.U;g.mU(q.D,this);q.J&&this.lR()&&Nhc(q);this.unobserve();this.y7=!0}}; g.C.t2=function(){return this.y7}; g.C.v3=function(){return this.U.v3()}; g.C.ej=function(){return this.U.ej()}; g.C.gK=function(){return this.U.gK()}; g.C.P7=function(){return this.U.P7()}; g.C.BP=function(){}; g.C.Ml=function(){this.JO()}; g.C.lR=function(){return this.jt};g.C=y6.prototype;g.C.ej=function(){return this.V.ej()}; g.C.gK=function(){return this.V.gK()}; g.C.P7=function(){return this.V.P7()}; g.C.create=function(q,a,w){var G=null;this.V&&(G=this.Wo(q,a,w),Wl(this.V,G));return G}; g.C.Lw=function(){return this.MO()}; g.C.MO=function(){return!1}; g.C.init=function(q){return this.V.initialize()?(Wl(this.V,this),this.Y=q,!0):!1}; g.C.BP=function(q){q.ej()==0&&this.Y(q.gK(),this)}; g.C.Ml=function(){}; g.C.lR=function(){return!1}; g.C.dispose=function(){this.D=!0}; g.C.t2=function(){return this.D}; g.C.v3=function(){return{}};qQ.prototype.add=function(q,a,w){++this.W;q=new KtG(q,a,w);this.V.push(new KtG(q.U,q.V,q.W+this.W/4096));this.U=!0;return this};FtU.prototype.toString=function(){var q="//pagead2.googlesyndication.com//pagead/gen_204",a=ad(this.V);a.length>0&&(q+="?"+a);return q};g.c.prototype.PM=!1;g.c.prototype.t2=function(){return this.PM}; g.c.prototype.dispose=function(){this.PM||(this.PM=!0,this.qB())}; g.c.prototype[Symbol.dispose]=function(){this.dispose()}; g.c.prototype.addOnDisposeCallback=function(q,a){this.PM?a!==void 0?q.call(a):q():(this.EM||(this.EM=[]),a&&(q=q.bind(a)),this.EM.push(q))}; g.c.prototype.qB=function(){if(this.EM)for(;this.EM.length;)this.EM.shift()()};var XLU=[0,JV6,nIK,-1];kY.prototype.update=function(q,a,w){q&&(this.V+=a,this.U+=a,this.Y+=a,this.W=Math.max(this.W,this.Y));if(w===void 0?!q:w)this.Y=0};var JHc=[1,.75,.5,.3,0];ba.prototype.update=function(q,a,w,G,k,b){b=b===void 0?!0:b;a=k?Math.min(q,a):a;for(k=0;k0&&a>=O;O=!(q>0&&q>=O)||w;this.V[k].update(b&&e,G,!b||O)}};PQ.prototype.update=function(q,a,w,G){this.X=this.X!=-1?Math.min(this.X,a.EB):a.EB;this.UK=Math.max(this.UK,a.EB);this.y7=this.y7!=-1?Math.min(this.y7,a.bO):a.bO;this.f7=Math.max(this.f7,a.bO);this.IW.update(a.bO,w.bO,a.V,q,G);this.L7+=q;a.EB===0&&(this.Tl+=q);this.U.update(a.EB,w.EB,a.V,q,G);w=G||w.xZ!=a.xZ?w.isVisible()&&a.isVisible():w.isVisible();a=!a.isVisible()||a.V;this.St.update(w,q,a)}; PQ.prototype.Ps=function(){return this.St.W>=this.BT};if(to&&to.URL){var j6V=to.URL,oIV;if(oIV=!!j6V){var IiJ;a:{if(j6V){var uE6=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var OJ=uE6.exec(decodeURIComponent(j6V));if(OJ){IiJ=OJ[1]&&OJ[1].length>1?OJ[1].substring(1):"true";break a}}catch(q){}}IiJ=""}oIV=IiJ.length>0}Ao.yj=!oIV};var tXK=new Ha(0,0,0,0);var Bam=new Ha(0,0,0,0);g.Z(sA,g.c);g.C=sA.prototype; g.C.qB=function(){if(this.dl.V){if(this.WY.bU){var q=this.dl.V;typeof q.removeEventListener==="function"&&q.removeEventListener("mouseover",this.WY.bU,wh());this.WY.bU=null}this.WY.gU&&(q=this.dl.V,typeof q.removeEventListener==="function"&&q.removeEventListener("mouseout",this.WY.gU,wh()),this.WY.gU=null)}this.H8&&this.H8.dispose();this.e4&&this.e4.dispose();delete this.Q5;delete this.eP;delete this.W2;delete this.dl.Vn;delete this.dl.V;delete this.WY;delete this.H8;delete this.e4;delete this.H5; g.c.prototype.qB.call(this)}; g.C.LU=function(){return this.e4?this.e4.V:this.position}; g.C.Fy=function(q){wY().Fy(q)}; g.C.lR=function(){return!1}; g.C.F$=function(){return new PQ}; g.C.iD=function(){return this.Q5}; g.C.nI=function(q){return hic(this,q,1E4)}; g.C.NB=function(q,a,w,G,k,b,O){this.P3||(this.KK&&(q=this.WD(q,w,k,O),G=G&&this.ow.EB>=(this.xZ()?.3:.5),this.mH(b,q,G),this.qT=a,q.EB>0&&-1===this.Xn&&(this.Xn=a),this.PO==-1&&this.Ps()&&(this.PO=a),this.Lz==-2&&(this.Lz=Tr(this.LU())?q.EB:-1),this.ow=q),this.eP(this))}; g.C.mH=function(q,a,w){this.iD().update(q,a,this.ow,w)}; g.C.VG=function(){return new RB}; g.C.WD=function(q,a,w,G){w=this.VG();w.V=a;a=VN().U;a=ke(to)===0?-1:a.isVisible()?0:1;w.U=a;w.EB=this.XJ(q);w.xZ=this.xZ();w.bO=G;return w}; g.C.XJ=function(q){return this.opacity===0&&AV(this.H5,"opac")===1?0:q}; g.C.xZ=function(){return!1}; g.C.Gw=function(){return this.Ns||this.kR}; g.C.fg=function(){Mr()}; g.C.bY=function(){Mr()}; g.C.BC=function(){return 0}; g.C.Ps=function(){return this.Q5.Ps()}; g.C.sW=function(){var q=this.KK;q=(this.hasCompleted||this.t2())&&!q;var a=wY().U!==2||this.zPt;return this.P3||a&&q?2:this.Ps()?4:3}; g.C.SU=function(){return 0};g.C$.prototype.next=function(){return g.lT}; g.lT={done:!0,value:void 0};g.C$.prototype.Vh=function(){return this};g.Z(U0J,RB);var ep=jLV([void 0,1,2,3,4,8,16]),N6=jLV([void 0,4,8,16]),vIJ={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:xY("p0",N6),p1:xY("p1",N6),p2:xY("p2",N6),p3:xY("p3",N6),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:Ak("mtos1",[0,2,4],!1,N6),mtos2:Ak("mtos2",[0,2,4],!1,N6),mtos3:Ak("mtos3",[0,2,4],!1,N6),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:xY("a0",N6),a1:xY("a1",N6),a2:xY("a2",N6),a3:xY("a3",N6),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:xY("c0",N6),c1:xY("c1",N6),c2:xY("c2",N6),c3:xY("c3",N6),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:xY("qmtos",ep),qnc:xY("qnc",ep),qmv:xY("qmv",ep),qnv:xY("qnv",ep), 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:xY("ss0",N6),ss1:xY("ss1",N6),ss2:xY("ss2",N6),ss3:xY("ss3",N6),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"},z3w=Object.assign({},vIJ,{avid:nn("audio"),avas:"avas",vs:"vs"}),iHl={atos:"atos",avt:Ak("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(q,a){return function(w){return w[q]===void 0&&a!==void 0?a:w[q]}}("ss",0), t:"t"};n$.prototype.getValue=function(){return this.U}; n$.prototype.update=function(q,a){q>=32||(this.V&1<=.5;on(a.volume)&&(this.Y=this.Y!=-1?Math.min(this.Y,a.volume):a.volume,this.L=Math.max(this.L,a.volume));b&&(this.jt+=q,this.J+=k?q:0);this.V.update(a.EB,w.EB,a.V,q,G,k);this.W.update(!0,q);this.D.update(k,q);this.F9.update(w.fullscreen,q);this.VN.update(k&&!b,q);q=Math.floor(a.mediaTime/1E3);this.EK.update(q,a.isVisible());this.h2.update(q,a.EB>=1);this.A2.update(q, Qi(a))}};zi_.prototype.U=function(q){this.W||(this.V(q)?(q=kNV(this.J,this.Y,q),this.D|=q,q=q==0):q=!1,this.W=q)};g.Z(Sk,zi_);Sk.prototype.V=function(){return!0}; Sk.prototype.L=function(){return!1}; Sk.prototype.getId=function(){var q=this,a=PL(vQ,function(w){return w==q.Y}); return dX[a].toString()}; Sk.prototype.toString=function(){var q="";this.L()&&(q+="c");this.W&&(q+="s");this.D>0&&(q+=":"+this.D);return this.getId()+q};g.Z(f$,Sk);f$.prototype.U=function(q,a){a=a===void 0?null:a;a!=null&&this.X.push(a);Sk.prototype.U.call(this,q)};g.Z(cQ,iiG);cQ.prototype.U=function(){return null}; cQ.prototype.W=function(){return[]};g.Z(p$,Rn);g.C=p$.prototype;g.C.yB=function(){if(this.element){var q=this.element,a=this.U.V.W;try{try{var w=wUN(q.getBoundingClientRect())}catch(Y){w=new Ha(0,0,0,0)}var G=w.right-w.left,k=w.bottom-w.top,b=tKN(q,a),O=b.x,e=b.y;var N=new Ha(Math.round(e),Math.round(O+G),Math.round(e+k),Math.round(O))}catch(Y){N=tXK.clone()}this.W=N;this.V=PFU(this,this.W)}}; g.C.UJ=function(){this.L=this.U.Y.V}; g.C.gr=function(q){var a=AV(this.H5,"od")==1;return LCj(q,this.L,this.element,a)}; g.C.dE=function(){this.timestamp=Mr()}; g.C.JO=function(){this.dE();this.yB();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var q=this.element;var a=new g.t7(q.videoWidth,q.videoHeight);q=this.V;var w=ca(q),G=q.getHeight(),k=a.width;a=a.height;k<=0||a<=0||w<=0||G<=0||(k/=a,a=w/G,q=q.clone(),k>a?(w/=k,G=(G-w)/2,G>0&&(G=q.top+G,q.top=Math.round(G),q.bottom=Math.round(G+w))):(G*=k,w=Math.round((w-G)/2),w>0&&(w=q.left+w,q.left=Math.round(w),q.right=Math.round(w+G))));this.V=q}this.UJ(); q=this.V;w=this.L;q=q.left<=w.right&&w.left<=q.right&&q.top<=w.bottom&&w.top<=q.bottom?new Ha(Math.max(q.top,w.top),Math.min(q.right,w.right),Math.min(q.bottom,w.bottom),Math.max(q.left,w.left)):new Ha(0,0,0,0);w=q.top>=q.bottom||q.left>=q.right?new Ha(0,0,0,0):q;q=this.U.Y;a=k=G=0;if((this.V.bottom-this.V.top)*(this.V.right-this.V.left)>0)if(this.gr(w))w=new Ha(0,0,0,0);else{G=u6().Y;a=new Ha(0,G.height,G.width,0);var b;G=$Y(w,(b=this.D)!=null?b:this.V);k=$Y(w,u6().V);a=$Y(w,a)}b=w.top>=w.bottom|| w.left>=w.right?new Ha(0,0,0,0):UN(w,-this.V.left,-this.V.top);vl()||(k=G=0);this.J=new p3(q,this.element,this.V,b,G,k,this.timestamp,a)}; g.C.getName=function(){return this.U.getName()};var W9R=new Ha(0,0,0,0);g.Z(UA,p$);g.C=UA.prototype;g.C.observe=function(){this.Y();return!0}; g.C.Ml=function(){p$.prototype.JO.call(this)}; g.C.dE=function(){}; g.C.yB=function(){}; g.C.JO=function(){this.Y();p$.prototype.JO.call(this)}; g.C.BP=function(q){q=q.isActive();q!==this.S&&(q?this.Y():(u6().V=new Ha(0,0,0,0),this.V=new Ha(0,0,0,0),this.L=new Ha(0,0,0,0),this.timestamp=-1));this.S=q};var Yy={},kUm=(Yy.firstquartile=0,Yy.midpoint=1,Yy.thirdquartile=2,Yy.complete=3,Yy);g.Z(jk,sA);g.C=jk.prototype;g.C.lR=function(){return!0}; g.C.Zl=function(){return this.LF==2}; g.C.nI=function(q){return hic(this,q,Math.max(1E4,this.W/3))}; g.C.NB=function(q,a,w,G,k,b,O){var e=this,N=this.X(this)||{};g.FE(N,k);this.W=N.duration||this.W;this.J=N.isVpaid||this.J;this.Tl=N.isYouTube||this.Tl;VN();this.IW=!1;k=D0c(this,a);WCc(this)===1&&(b=k);sA.prototype.NB.call(this,q,a,w,G,N,b,O);this.Sj&&this.Sj.W&&g.WR(this.L,function(Y){Y.U(e)})}; g.C.mH=function(q,a,w){sA.prototype.mH.call(this,q,a,w);ua(this).update(q,a,this.ow,w);this.BT=Qi(this.ow)&&Qi(a);this.f7==-1&&this.h2&&(this.f7=this.iD().W.V);this.h$.W=0;q=this.Ps();a.isVisible()&&rB(this.h$,"vs");q&&rB(this.h$,"vw");on(a.volume)&&rB(this.h$,"am");Qi(a)?rB(this.h$,"a"):rB(this.h$,"mut");this.OI&&rB(this.h$,"f");a.U!=-1&&(rB(this.h$,"bm"),a.U==1&&(rB(this.h$,"b"),Qi(a)&&rB(this.h$,"umutb")));Qi(a)&&a.isVisible()&&rB(this.h$,"avs");this.BT&&q&&rB(this.h$,"avw");a.EB>0&&rB(this.h$, "pv");tk(this,this.iD().W.V,!0)&&rB(this.h$,"gdr");NQ(this.iD().U,1)>=2E3&&rB(this.h$,"pmx");this.IW&&rB(this.h$,"tvoff")}; g.C.F$=function(){return new MQ}; g.C.iD=function(){return this.Q5}; g.C.VG=function(){return new U0J}; g.C.WD=function(q,a,w,G){q=sA.prototype.WD.call(this,q,a,w,G===void 0?-1:G);q.fullscreen=this.OI;q.paused=this.Zl();q.volume=w.volume;on(q.volume)||(this.OA++,a=this.ow,on(a.volume)&&(q.volume=a.volume));w=w.currentTime;q.mediaTime=w!==void 0&&w>=0?w:-1;return q}; g.C.XJ=function(q){return u6(),this.OI?1:sA.prototype.XJ.call(this,q)}; g.C.BC=function(){return 1}; g.C.getDuration=function(){return this.W}; g.C.sW=function(){return this.P3?2:ync(this)?5:this.Ps()?4:3}; g.C.SU=function(){return this.VN?this.iD().D.W>=2E3?4:3:2}; g.C.rJ=function(q){this.e4&&this.e4.rJ(q)};var DWJ=g.Kw();$uU.prototype.reset=function(){this.V=[];this.U=[]}; var Rd=ZD($uU);g.Z(gX,y6);g.C=gX.prototype;g.C.getName=function(){return(this.U?this.U:this.V).getName()}; g.C.v3=function(){return(this.U?this.U:this.V).v3()}; g.C.ej=function(){return(this.U?this.U:this.V).ej()}; g.C.init=function(q){var a=!1;(0,g.WR)(this.W,function(w){w.initialize()&&(a=!0)}); a&&(this.Y=q,Wl(this.V,this));return a}; g.C.dispose=function(){(0,g.WR)(this.W,function(q){q.dispose()}); y6.prototype.dispose.call(this)}; g.C.Lw=function(){return In(this.W,function(q){return q.l8()})}; g.C.MO=function(){return In(this.W,function(q){return q.l8()})}; g.C.Wo=function(q,a,w){return new p$(q,this.V,a,w)}; g.C.Ml=function(q){this.U=q.U};var QjJ={threshold:[0,.3,.5,.75,1]};g.Z(aq,p$);g.C=aq.prototype;g.C.observe=function(){var q=this;this.UK||(this.UK=Mr());if(W4y(298,function(){return AYG(q)}))return!0; this.U.fail("msf");return!1}; g.C.unobserve=function(){if(this.Y&&this.element)try{this.Y.unobserve(this.element),this.S?(this.S.unobserve(this.element),this.S=null):this.X&&(this.X.disconnect(),this.X=null)}catch(q){}}; g.C.JO=function(){var q=wX(this);q.length>0&&G$(this,q);p$.prototype.JO.call(this)}; g.C.yB=function(){}; g.C.gr=function(){return!1}; g.C.UJ=function(){}; g.C.v3=function(){var q={};return Object.assign(this.U.v3(),(q.niot_obs=this.UK,q.niot_cbk=this.F9,q))}; g.C.getName=function(){return"nio"};g.Z(kT,y6);kT.prototype.getName=function(){return"nio"}; kT.prototype.MO=function(){return!u6().U&&this.V.V.W.IntersectionObserver!=null}; kT.prototype.Wo=function(q,a,w){return new aq(q,this.V,a,w)};g.Z(bu,i6);bu.prototype.Aj=function(){return u6().V}; bu.prototype.l8=function(){var q=LAJ();this.S!==q&&(this.V!=this&&q>this.V.S&&(this.V=this,D9(this)),this.S=q);return q==2};OQ.prototype.sample=function(){NE(this,yi(),!1)}; OQ.prototype.Y=function(){var q=vl(),a=Mr();q?(Ss||(f3=a,g.WR(Rd.V,function(w){var G=w.iD();G.le=hk(G,a,w.LF!=1)})),Ss=!0):(this.X=hvc(this,a),Ss=!1,blJ=a,g.WR(Rd.V,function(w){w.KK&&(w.iD().S=a)})); NE(this,yi(),!q)}; var lu=ZD(OQ);var f$c=null,S_="",hp=!1;var p$y=cYm().n6,K7=cYm().M5;var jjG={JK7:"visible",t29:"audible",DZW:"time",pF2:"timetype"},oNm={visible:function(q){return/^(100|[0-9]{1,2})$/.test(q)}, audible:function(q){return q=="0"||q=="1"}, timetype:function(q){return q=="mtos"||q=="tos"}, time:function(q){return/^(100|[0-9]{1,2})%$/.test(q)||/^([0-9])+ms$/.test(q)}}; X$l.prototype.setTime=function(q,a,w){a=="ms"?(this.W=q,this.Y=-1):(this.W=-1,this.Y=q);this.D=w===void 0?"tos":w;return this};g.Z(sQ,Sk);sQ.prototype.getId=function(){return this.X}; sQ.prototype.L=function(){return!0}; sQ.prototype.V=function(q){var a=q.iD(),w=q.getDuration();return In(this.S,function(G){if(G.V!=void 0)var k=uJc(G,a);else b:{switch(G.D){case "mtos":k=G.U?a.D.W:a.W.V;break b;case "tos":k=G.U?a.D.V:a.W.V;break b}k=0}k==0?G=!1:(G=G.W!=-1?G.W:w!==void 0&&w>0?G.Y*w:-1,G=G!=-1&&k>=G);return G})};g.Z(Fc,ILm);Fc.prototype.V=function(q){var a=new o0m;a.V=BQ(q,vIJ);a.U=BQ(q,iHl);return a};g.Z(C7,Sk);C7.prototype.V=function(q){return ync(q)};g.Z(ZA,iiG);g.Z(EQ,Sk);EQ.prototype.V=function(q){return q.iD().Ps()};g.Z(VR,f$);VR.prototype.V=function(q){var a=g.Vx(this.X,AV(wY().H5,"ovms"));return!q.P3&&(q.LF!=0||a)};g.Z(Jp,ZA);Jp.prototype.U=function(){return new VR(this.V)}; Jp.prototype.W=function(){return[new EQ("viewable_impression",this.V),new C7(this.V)]};g.Z(mc,UA);mc.prototype.Y=function(){var q=g.aB("ima.admob.getViewability"),a=AV(this.H5,"queryid");typeof q==="function"&&a&&q(a)}; mc.prototype.getName=function(){return"gsv"};g.Z(QR,y6);QR.prototype.getName=function(){return"gsv"}; QR.prototype.MO=function(){var q=u6();wY();return q.U&&!1}; QR.prototype.Wo=function(q,a,w){return new mc(this.V,a,w)};g.Z(Ap,UA);Ap.prototype.Y=function(){var q=this,a=g.aB("ima.bridge.getNativeViewability"),w=AV(this.H5,"queryid");typeof a==="function"&&w&&a(w,function(G){g.KH(G)&&q.X++;var k=G.opt_nativeViewVisibleBounds||{},b=G.opt_nativeViewHidden;q.V=G5U(G.opt_nativeViewBounds||{});var O=q.U.Y;O.V=b?W9R.clone():G5U(k);q.timestamp=G.opt_nativeTime||-1;u6().V=O.V;G=G.opt_nativeVolume;G!==void 0&&(O.volume=G)})}; Ap.prototype.getName=function(){return"nis"};g.Z(xT,y6);xT.prototype.getName=function(){return"nis"}; xT.prototype.MO=function(){var q=u6();wY();return q.U&&!1}; xT.prototype.Wo=function(q,a,w){return new Ap(this.V,a,w)};g.Z(L7,i6);g.C=L7.prototype;g.C.l8=function(){return this.U.Kd!=null}; g.C.EW=function(){var q={};this.EK&&(q.mraid=this.EK);this.y7&&(q.mlc=1);q.mtop=this.U.c$7;this.X&&(q.mse=this.X);this.L7&&(q.msc=1);q.mcp=this.U.compatibility;return q}; g.C.Mp=function(q){var a=g.XU.apply(1,arguments);try{return this.U.Kd[q].apply(this.U.Kd,a)}catch(w){n3(538,w,.01,function(G){G.method=q})}}; g.C.initialize=function(){var q=this;if(this.isInitialized)return!this.P7();this.isInitialized=!0;if(this.U.compatibility===2)return this.X="ng",this.fail("w"),!1;if(this.U.compatibility===1)return this.X="mm",this.fail("w"),!1;u6().S=!0;this.W.document.readyState&&this.W.document.readyState=="complete"?ilm(this):dB(this.W,"load",function(){VN().setTimeout(rY(292,function(){return ilm(q)}),100)},292); return!0}; g.C.i$=function(){var q=u6(),a=qKj(this,"getMaxSize");q.V=new Ha(0,a.width,a.height,0)}; g.C.vn=function(){u6().Y=qKj(this,"getScreenSize")}; g.C.dispose=function(){DuU(this);i6.prototype.dispose.call(this)};var QRN=new function(q,a){this.key=q;this.defaultValue=a===void 0?!1:a;this.valueType="boolean"}("45378663");g.C=rX.prototype;g.C.D7=function(q){Fw(q,!1);Zlm(q)}; g.C.oI=function(){}; g.C.NK=function(q,a,w,G){var k=this;q=new jk(rp,q,w?a:-1,7,this.PD(),this.k0());q.JL=G;cmf(q.H5);Q2(q.H5,"queryid",q.JL);q.Fy("");Hij(q,function(){return k.VQ.apply(k,g.Tf(g.XU.apply(0,arguments)))},function(){return k.Fp.apply(k,g.Tf(g.XU.apply(0,arguments)))}); (G=ZD(qE).V)&&MnU(q,G);this.W&&(q.rJ(this.W),this.W=null);q.dl.Vn&&ZD(BbU);return q}; g.C.BP=function(q){switch(q.ej()){case 0:if(q=ZD(qE).V)q=q.V,g.mU(q.D,this),q.J&&this.lR()&&Nhc(q);ME();break;case 2:e_()}}; g.C.Ml=function(){}; g.C.lR=function(){return!1}; g.C.Fp=function(q,a){q.P3=!0;switch(q.BC()){case 1:bbJ(q,a);break;case 2:this.Ya(q)}}; g.C.o0=function(q){var a=q.X(q);a&&(a=a.volume,q.VN=on(a)&&a>0);a$m(q,0);return zr(q,"start",vl())}; g.C.Zf=function(q,a,w){NE(lu,[q],!vl());return this.mX(q,a,w)}; g.C.mX=function(q,a,w){return zr(q,w,vl())}; g.C.u4=function(q){return oq(q,"firstquartile",1)}; g.C.qs=function(q){q.h2=!0;return oq(q,"midpoint",2)}; g.C.YR=function(q){return oq(q,"thirdquartile",3)}; g.C.Ua=function(q){var a=oq(q,"complete",4);od(q);return a}; g.C.dD=function(q){q.LF=3;return zr(q,"error",vl())}; g.C.XI=function(q,a,w){a=vl();if(q.Zl()&&!a){var G=q.iD(),k=Mr();G.S=k}NE(lu,[q],!a);q.Zl()&&(q.LF=1);return zr(q,w,a)}; g.C.yw=function(q,a){a=this.Zf(q,a||{},"skip");od(q);return a}; g.C.Wy=function(q,a){Fw(q,!0);return this.Zf(q,a||{},"fullscreen")}; g.C.Oa=function(q,a){Fw(q,!1);return this.Zf(q,a||{},"exitfullscreen")}; g.C.zO=function(q,a,w){a=q.iD();var G=Mr();a.le=hk(a,G,q.LF!=1);NE(lu,[q],!vl());q.LF==1&&(q.LF=2);return zr(q,w,vl())}; g.C.Qw=function(q){NE(lu,[q],!vl());return q.U()}; g.C.TV=function(q){NE(lu,[q],!vl());this.je(q);od(q);return q.U()}; g.C.VQ=function(){}; g.C.Ya=function(){}; g.C.je=function(){}; g.C.DR=function(){}; g.C.x4=function(){}; g.C.k0=function(){this.V||(this.V=this.x4());return this.V==null?new cQ:new Jp(this.V)}; g.C.PD=function(){return new Fc};g.Z(Iq,Sk);Iq.prototype.V=function(q){return q.SU()==4};g.Z(uu,f$);uu.prototype.V=function(q){q=q.SU();return q==3||q==4};g.Z(tp,ZA);tp.prototype.U=function(){return new uu(this.V)}; tp.prototype.W=function(){return[new Iq(this.V)]};g.Z(vN,ILm);vN.prototype.V=function(q){q&&(q.e===28&&(q=Object.assign({},q,{avas:3})),q.vs===4||q.vs===5)&&(q=Object.assign({},q,{vs:3}));var a=new o0m;a.V=BQ(q,z3w);a.U=BQ(q,iHl);return a};NxG.prototype.U=function(){return g.aB(this.V)};g.Z(z$,rX);g.C=z$.prototype;g.C.oI=function(q,a){var w=this,G=ZD(qE);if(G.V!=null)switch(G.V.getName()){case "nis":var k=dMK(this,q,a);break;case "gsv":k=K1y(this,q,a);break;case "exc":k=TxK(this,q)}k||(a.opt_overlayAdElement?k=void 0:a.opt_adElement&&(k=lBc(this,q,a.opt_adElement,a.opt_osdId)));k&&k.BC()==1&&(k.X==g.MP&&(k.X=function(b){return w.DR(b)}),P2K(this,k,a)); return k}; g.C.DR=function(q){q.U=0;q.jt=0;if(q.Y=="h"||q.Y=="n"){wY();q.A2&&(wY(),Xc(this)!="h"&&Xc(this));var a=g.aB("ima.common.getVideoMetadata");if(typeof a==="function")try{var w=a(q.JL)}catch(k){q.U|=4}else q.U|=2}else if(q.Y=="b")if(a=g.aB("ytads.bulleit.getVideoMetadata"),typeof a==="function")try{w=a(q.JL)}catch(k){q.U|=4}else q.U|=2;else if(q.Y=="ml")if(a=g.aB("ima.common.getVideoMetadata"),typeof a==="function")try{w=a(q.JL)}catch(k){q.U|=4}else q.U|=2;else q.U|=1;q.U||(w===void 0?q.U|=8:w===null? q.U|=16:g.KH(w)?q.U|=32:w.errorCode!=null&&(q.jt=w.errorCode,q.U|=64));w==null&&(w={});a=w;q.S=0;for(var G in UW8)a[G]==null&&(q.S|=UW8[G]);erc(a,"currentTime");erc(a,"duration");on(w.volume)&&on()&&(w.volume*=NaN);return w}; g.C.x4=function(){wY();Xc(this)!="h"&&Xc(this);var q=$Mf(this);return q!=null?new NxG(q):null}; g.C.Ya=function(q){!q.V&&q.P3&&j_(this,q,"overlay_unmeasurable_impression")&&(q.V=!0)}; g.C.je=function(q){q.Fn&&(q.Ps()?j_(this,q,"overlay_viewable_end_of_session_impression"):j_(this,q,"overlay_unviewable_impression"),q.Fn=!1)}; g.C.VQ=function(){}; g.C.NK=function(q,a,w,G){if(AMG()){var k=AV(wY().H5,"mm"),b={};(k=(b[G7.xi]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",b[G7.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",b)[k])&&ZbU(this,k);this.Y==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&n3(1044,Error())}q=rX.prototype.NK.call(this,q,a,w,G);this.D&&(a=this.L,q.D==null&&(q.D=new cnl),a.V[q.JL]=q.D,q.D.D=DWJ);return q}; g.C.D7=function(q){q&&q.BC()==1&&this.D&&delete this.L.V[q.JL];return rX.prototype.D7.call(this,q)}; g.C.k0=function(){this.V||(this.V=this.x4());return this.V==null?new cQ:this.Y==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new tp(this.V):new Jp(this.V)}; g.C.PD=function(){return this.Y==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new vN:new Fc}; g.C.rJ=function(q,a,w,G,k){a=new Ha(w,a+G,w+k,a);(q=DO(Rd,q))?q.rJ(a):this.W=a}; var R3J=Bl(193,Vcc,void 0,Obc);g.qe("Goog_AdSense_Lidar_sendVastEvent",R3J);var yVw=rY(194,function(q,a){a=a===void 0?{}:a;q=C2c(ZD(z$),q,a);return E6m(q)}); g.qe("Goog_AdSense_Lidar_getViewability",yVw);var qXU=Bl(195,function(){return $Wc()}); g.qe("Goog_AdSense_Lidar_getUrlSignalsArray",qXU);var g17=rY(196,function(){return JSON.stringify($Wc())}); g.qe("Goog_AdSense_Lidar_getUrlSignalsList",g17);var Qbj=g.sj(["//ep2.adtrafficquality.google/sodar/",""]),Axy=g.sj(["//tpc.googlesyndication.com/sodar/",""]);g.Z(DA,Error);g.Z(qo,g.c);qo.prototype.Dx=function(){return this.wpc.f()}; qo.prototype.bk=function(q){this.wpc.c(q)}; qo.prototype.OU=function(q){return this.wpc.m(rxl(q))}; qo.prototype.nQ=function(q){return this.wpc.mws(rxl(q))}; g.Z(Rq,g.c);Rq.prototype.snapshot=function(q){return this.IA.s(Object.assign({},q.l5&&{c:q.l5},q.Qj&&{s:q.Qj},q.Yh!==void 0&&{p:q.Yh}))}; Rq.prototype.FM=function(q){this.IA.e(q)}; Rq.prototype.Q1=function(){return this.IA.l()};g.Z(au,g.c);au.prototype.share=function(){if(this.t2())throw Error("E:AD");this.U++;return this}; au.prototype.dispose=function(){--this.U||g.c.prototype.dispose.call(this)};Hbl.prototype.My=function(q,a){this.V.My("/client_streamz/bg/frs",q,a)}; cxN.prototype.My=function(q,a,w,G,k,b){this.V.My("/client_streamz/bg/wrl",q,a,w,G,k,b)}; pIl.prototype.N_=function(q,a){this.V.Ig("/client_streamz/bg/ec",q,a)}; UMj.prototype.My=function(q,a,w){this.V.My("/client_streamz/bg/el",q,a,w)}; XIJ.prototype.N_=function(q,a){this.V.Ig("/client_streamz/bg/cec",q,a)}; jbl.prototype.N_=function(q,a){this.V.Ig("/client_streamz/bg/po/csc",q,a)}; o6j.prototype.N_=function(q,a){this.V.Ig("/client_streamz/bg/po/ctav",q,a)}; IBm.prototype.N_=function(q,a){this.V.Ig("/client_streamz/bg/po/cwsc",q,a)};g.Z(u$c,Jx);g.Z(kF,Jx);var P2=[1,2,3];var avR=[0,P2,fiV,L9V,h3x];var wSK=[0,g$,[0,ZHJ,JV6]];g.Z(bL,Jx);var YF=[1,2,3];var GRB=[0,YF,Q6U,VXc,w$,wSK];g.Z(Oh,Jx);var kRU=[0,g$,avR,GRB];var bSU=[0,q6];g.Z(lL,Jx);var OS6=[0,q6,-1,MXU];var lv6=[0,q6,-1,AVJ,MXU];g.Z(ez,Jx);var YPN=[1,2,3];var epR=[0,YPN,w$,OS6,w$,lv6,w$,bSU];g.Z(No,Jx);No.prototype.Lm=function(){var q=Og(this,3,x0,3,!0);tH(q);return q[void 0]};No.prototype.W=EA_([0,q6,epR,S7x,g$,kRU,Bnc,rV6]);g.Z(v6l,Jx);g.C=KV.prototype;g.C.isEnabled=function(){if(!g.yV.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{pQ:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.C.set=function(q,a,w){var G=!1;if(typeof w==="object"){var k=w.PyW;G=w.secure||!1;var b=w.domain||void 0;var O=w.path||void 0;var e=w.pQ}if(/[;=\s]/.test(q))throw Error('Invalid cookie name "'+q+'"');if(/[;\r\n]/.test(a))throw Error('Invalid cookie value "'+a+'"');e===void 0&&(e=-1);w=b?";domain="+b:"";O=O?";path="+O:"";G=G?";secure":"";e=e<0?"":e==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+e*1E3)).toUTCString();this.V.cookie=q+"="+a+w+O+e+G+(k!=null?";samesite="+ k:"")}; g.C.get=function(q,a){for(var w=q+"=",G=(this.V.cookie||"").split(";"),k=0,b;k=0;a--)this.remove(q[a])}; var Ly=new KV(typeof document=="undefined"?null:document);Ty.prototype.compress=function(q){var a,w,G,k;return g.h(function(b){switch(b.U){case 1:return a=new CompressionStream("gzip"),w=(new Response(a.readable)).arrayBuffer(),G=a.writable.getWriter(),g.n(b,G.write((new TextEncoder).encode(q)),2);case 2:return g.n(b,G.close(),3);case 3:return k=Uint8Array,g.n(b,w,4);case 4:return b.return(new k(b.V))}})}; Ty.prototype.isSupported=function(q){return q<1024?!1:typeof CompressionStream!=="undefined"};g.Z($F,Jx);sh.prototype.setInterval=function(q){this.intervalMs=q;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()}; sh.prototype.start=function(){var q=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){q.tick()},this.intervalMs),this.U=this.V())}; sh.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)}; sh.prototype.tick=function(){var q=this;if(this.enabled){var a=Math.max(this.V()-this.U,0);a0?w:void 0));w=aj(w,4,da(k>0?k:void 0));w=aj(w,5,da(b>0?b:void 0));k=w.r8;b=k[Ud]|0;w=uF(w,b)?w:v3(w,k,b)?zD(w,k):new w.constructor(tn(k,b,!0));AY(O,Z3,10,w)}O=this.V.clone();w=Date.now().toString();O=aj(O,4,Jn(w));q=xN(O,LV,3,q.slice());G&&(O=new Fk,G=aj(O,13,da(G)),O=new CV, G=AY(O,Fk,2,G),O=new xF,G=AY(O,CV,1,G),G=pl(G,2,9),AY(q,xF,18,G));a&&fl(q,14,a);return q};g.h1.prototype.U=0;g.h1.prototype.reset=function(){this.V=this.W=this.Y;this.U=0}; g.h1.prototype.getValue=function(){return this.W};g.Z(yn,Jx);var Njw=qr(yn);g.Z(F4f,Jx);var P_;P_=new Chc;g.Z(c2,g.c);g.C=c2.prototype;g.C.qB=function(){H2(this);this.U.stop();this.EK.stop();g.c.prototype.qB.call(this)}; g.C.dispatch=function(q){if(q instanceof LV)this.log(q);else try{var a=new LV,w=q.m$();var G=H$(a,8,w);this.log(G)}catch(k){pV(this,4,1)}}; g.C.log=function(q){pV(this,2,1);if(this.L7){q=q.clone();var a=this.St++;q=fl(q,21,a);this.componentId&&H$(q,26,this.componentId);a=q;var w=qu(a,1);var G=G===void 0?!1:G;var k=typeof w;G=w==null?w:k==="bigint"?String(ZL(64,w)):Ki(w)?k==="string"?sz(w):G?Ez(w):Vt(w):void 0;G==null&&(G=Date.now(),G=Number.isFinite(G)?G.toString():"0",aj(a,1,Jn(G)));G=qu(a,15);G!=null&&(typeof G==="bigint"?pi(G)?G=Number(G):(G=ZL(64,G),G=pi(G)?Number(G):String(G)):G=Ki(G)?typeof G==="number"?Vt(G):sz(G):void 0);G!=null|| fl(a,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(G=this.experimentIds.clone(),AY(a,$F,16,G));pV(this,1,1);a=this.V.length-1E3+1;a>0&&(this.V.splice(0,a),this.Y+=a,pV(this,3,a));this.V.push(q);this.Ax||this.U.enabled||this.U.start()}}; g.C.flush=function(q,a){var w=this;if(this.V.length===0)q&&q();else if(this.f7&&this.F9)this.W.U=3,sn_(this);else{var G=Date.now();if(this.le>G&&this.jt0&&(w.jt=Date.now(),w.le=w.jt+d);d=dy(M0);var J;pQ&&d&&((J=T.r8[d])==null?void 0:J[175237375])!=null&&HU(aiI,3);a:{var Q=Q===void 0?!1:Q;if(dy(wLK)&&dy(M0)&&void 0===wLK){J=T.r8;d=J[M0];if(!d)break a;if(d=d.TM)try{d(J,175237375,e3y);break a}catch(B){mt(B)}}Q&&(Q=T.r8, (J=dy(M0))&&J in Q&&(Q=Q[J])&&delete Q[175237375])}Q=P_.V?P_.U(T,P_.V,175237375,P_.W):P_.U(T,175237375,null,P_.W);if(Q=Q===null?void 0:Q)Q=B$(Q,1,-1),Q!==-1&&(w.D=new g.h1(Q<1?1:Q,3E5,.1),w.U.setInterval(w.D.getValue()))}}q&&q();w.L=0},P=function(d,T){var F=Q1(b,LV,3); var J=Number(fvm(b,14));g.Sz(w.D);w.U.setInterval(w.D.getValue());d===401&&O&&(w.Tl=O);J&&(w.Y+=J);T===void 0&&(T=w.isRetryable(d));T&&(w.V=F.concat(w.V),w.Ax||w.U.enabled||w.U.start());pV(w,7,1);a&&a("net-send-failed",d);++w.L},K=function(){w.network&&w.network.send(N,Y,P)}; e?e.then(function(d){pV(w,5,k);N.requestHeaders["Content-Encoding"]="gzip";N.requestHeaders["Content-Type"]="application/binary";N.body=d;N.Du=2;K()},function(){pV(w,6,k); K()}):K()}}}}; g.C.isRetryable=function(q){return 500<=q&&q<600||q===401||q===0};Uh.prototype.send=function(q,a,w){var G=this,k,b,O,e,N,Y,P,K,d,T;return g.h(function(F){switch(F.U){case 1:return b=(k=G.r0?new AbortController:void 0)?setTimeout(function(){k.abort()},q.timeoutMillis):void 0,g.ml(F,2,3),O=Object.assign({},{method:q.requestType, headers:Object.assign({},q.requestHeaders)},q.body&&{body:q.body},q.withCredentials&&{credentials:"include"},{signal:q.timeoutMillis&&k?k.signal:null}),g.n(F,fetch(q.url,O),5);case 5:e=F.V;if(e.status!==200){(N=w)==null||N(e.status);F.Gl(3);break}if((Y=a)==null){F.Gl(7);break}return g.n(F,e.text(),8);case 8:Y(F.V);case 7:case 3:g.Sy(F);clearTimeout(b);g.HJ(F,0);break;case 2:P=g.rc(F);switch((K=P)==null?void 0:K.name){case "AbortError":(d=w)==null||d(408);break;default:(T=w)==null||T(400)}F.Gl(3)}})}; Uh.prototype.yA=function(){return 4};g.Z(Xk,g.c);Xk.prototype.rW=function(){this.D=!0;return this}; Xk.prototype.build=function(){this.network||(this.network=new Uh);var q=new c2({logSource:this.logSource,Xe:this.Xe?this.Xe:G7y,sessionIndex:this.sessionIndex,Q8e:this.W3,b6:this.Y,Ax:!1,rW:this.D,Iu:this.Iu,network:this.network});g.p(this,q);if(this.U){var a=this.U,w=Mo(q.W);H$(w,7,a)}q.X=new Ty;this.componentId&&(q.componentId=this.componentId);this.Cg&&(q.Cg=this.Cg);this.pageId&&(q.pageId=this.pageId);this.V&&((w=this.V)?(q.experimentIds||(q.experimentIds=new $F),a=q.experimentIds,w=w.m$(),H$(a, 4,w)):q.experimentIds&&aj(q.experimentIds,4));this.W&&(q.f7=q.F9);P6l(q.W);this.network.O6&&this.network.O6(this.logSource);this.network.ufG&&this.network.ufG(q);return q};g.Z(jz,g.c);jz.prototype.flush=function(q){q=q||[];if(q.length){for(var a=new v6l,w=[],G=0;G-1?(a=q[O],w||(a.rj=!1)):(a=new QnU(a,this.src,b,!!G,k),a.rj=w,q.push(a));return a}; g.C.remove=function(q,a,w,G){q=q.toString();if(!(q in this.listeners))return!1;var k=this.listeners[q];a=Ru(k,a,w,G);return a>-1?(iL(k[a]),g.Jl(k,a),k.length==0&&(delete this.listeners[q],this.V--),!0):!1}; g.C.removeAll=function(q){q=q&&q.toString();var a=0,w;for(w in this.listeners)if(!q||w==q){for(var G=this.listeners[w],k=0;k-1?q[k]:null}; g.C.hasListener=function(q,a){var w=q!==void 0,G=w?q.toString():"",k=a!==void 0;return g.a6(this.listeners,function(b){for(var O=0;O>>0);g.TJ(g.PO,g.c);g.PO.prototype[Joc]=!0;g.C=g.PO.prototype;g.C.addEventListener=function(q,a,w,G){g.qI(this,q,a,w,G)}; g.C.removeEventListener=function(q,a,w,G){Ms_(this,q,a,w,G)}; g.C.dispatchEvent=function(q){var a=this.C2;if(a){var w=[];for(var G=1;a;a=a.C2)w.push(a),++G}a=this.Fu;G=q.type||q;if(typeof q==="string")q=new g.t1(q,a);else if(q instanceof g.t1)q.target=q.target||a;else{var k=q;q=new g.t1(G,a);g.FE(q,k)}k=!0;var b;if(w)for(b=w.length-1;!q.U&&b>=0;b--){var O=q.currentTarget=w[b];k=KT(O,G,!0,q)&&k}q.U||(O=q.currentTarget=a,k=KT(O,G,!0,q)&&k,q.U||(k=KT(O,G,!1,q)&&k));if(w)for(b=0;!q.U&&b0){this.U--;var q=this.V;this.V=q.next;q.next=null}else q=this.W();return q};var $E;Fj.prototype.add=function(q,a){var w=plm.get();w.set(q,a);this.U?this.U.next=w:this.V=w;this.U=w}; Fj.prototype.remove=function(){var q=null;this.V&&(q=this.V,this.V=this.V.next,this.V||(this.U=null),q.next=null);return q}; var plm=new dH(function(){return new CT},function(q){return q.reset()}); CT.prototype.set=function(q,a){this.V=q;this.scope=a;this.next=null}; CT.prototype.reset=function(){this.next=this.scope=this.V=null};var ZG,Eq=!1,H3_=new Fj;Urj.prototype.reset=function(){this.context=this.U=this.W=this.V=null;this.Y=!1}; var Xlj=new dH(function(){return new Urj},function(q){q.reset()}); g.LT.prototype.then=function(q,a,w){return WGm(this,T_(typeof q==="function"?q:null),T_(typeof a==="function"?a:null),w)}; g.LT.prototype.$goog_Thenable=!0;g.C=g.LT.prototype;g.C.finally=function(q){var a=this;q=T_(q);return new g.LT(function(w,G){uRc(a,function(k){q();w(k)},function(k){q(); G(k)})})}; g.C.AK=function(q,a){return WGm(this,null,T_(q),a)}; g.C.catch=g.LT.prototype.AK;g.C.cancel=function(q){if(this.V==0){var a=new SY(q);g.VP(function(){tsN(this,a)},this)}}; g.C.IyK=function(q){this.V=0;Jt(this,2,q)}; g.C.J$t=function(q){this.V=0;Jt(this,3,q)}; g.C.lj=function(){for(var q;q=v$U(this);)z$l(this,q,this.V,this.X);this.L=!1}; var qAK=mt;g.TJ(SY,$c);SY.prototype.name="cancel";g.TJ(g.fT,g.PO);g.C=g.fT.prototype;g.C.enabled=!1;g.C.bK=null;g.C.setInterval=function(q){this.AL=q;this.bK&&this.enabled?(this.stop(),this.start()):this.bK&&this.stop()}; g.C.kN7=function(){if(this.enabled){var q=g.Kw()-this.Kn;q>0&&q0&&(this.getStatus(),this.L=setTimeout(this.Mc.bind(this), this.F9)),this.getStatus(),this.J=!0,this.V.send(q),this.J=!1}catch(O){this.getStatus(),TBG(this,O)}}; g.C.Mc=function(){typeof tt!="undefined"&&this.V&&(this.Y="Timed out after "+this.F9+"ms, aborting",this.U=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.C.abort=function(q){this.V&&this.W&&(this.getStatus(),this.W=!1,this.D=!0,this.V.abort(),this.D=!1,this.U=q||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),uy(this))}; g.C.qB=function(){this.V&&(this.W&&(this.W=!1,this.D=!0,this.V.abort(),this.D=!1),uy(this,!0));g.Il.mG.qB.call(this)}; g.C.LJ=function(){this.t2()||(this.y7||this.J||this.D?$QG(this):this.gFh())}; g.C.gFh=function(){$QG(this)}; g.C.isActive=function(){return!!this.V}; g.C.isComplete=function(){return g.vO(this)==4}; g.C.getStatus=function(){try{return g.vO(this)>2?this.V.status:-1}catch(q){return-1}}; g.C.getResponseHeader=function(q){if(this.V&&this.isComplete())return q=this.V.getResponseHeader(q),q===null?void 0:q}; g.C.getLastError=function(){return typeof this.Y==="string"?this.Y:String(this.Y)};Rl.prototype.send=function(q,a,w){a=a===void 0?function(){}:a; w=w===void 0?function(){}:w; Kyc(q.url,function(G){G=G.target;z_(G)?a(g.iy(G)):w(G.getStatus())},q.requestType,q.body,q.requestHeaders,q.timeoutMillis,q.withCredentials)}; Rl.prototype.yA=function(){return 1};qA.prototype.done=function(){this.logger.u7(this.event,yP()-this.startTime)}; g.Z(gV,au);g.Z(wV,gV);g.C=wV.prototype;g.C.iA=function(){}; g.C.oH=function(){}; g.C.u7=function(){}; g.C.vW=function(){}; g.C.q$=function(){}; g.C.vU=function(q,a,w,G){return G}; g.C.UR=function(){}; g.C.V5=function(){}; g.C.FD=function(){}; g.Z(Gw,gV);g.C=Gw.prototype;g.C.update=function(q){this.logger.dispose();this.logger=q}; g.C.oH=function(q){this.logger.oH(q)}; g.C.u7=function(q,a){this.logger.u7(q,a)}; g.C.vW=function(q){this.logger.vW(q)}; g.C.q$=function(){this.logger.q$()}; g.C.vU=function(q,a,w,G){return this.logger.vU(q,a,w,G)}; g.C.UR=function(q){this.logger.UR(q)}; g.C.V5=function(q){this.logger.V5(q)}; g.C.FD=function(q){this.logger.FD(q)}; g.C.iA=function(q){this.logger.iA(q)}; g.Z(Z$m,g.c);g.Z(k8,gV);g.C=k8.prototype;g.C.iA=function(q){this.metrics.fyt.My(q,this.Z9)}; g.C.oH=function(q){this.metrics.eventCount.N_(q,this.Z9)}; g.C.u7=function(q,a){this.metrics.nM.My(a,q,this.Z9)}; g.C.vW=function(q){this.metrics.errorCount.N_(q,this.Z9)}; g.C.vU=function(q,a,w,G){function k(e){if(!b.t2()){var N=yP()-O;b.metrics.iWQ.My(N,q,w,e,a,b.Z9)}} var b=this,O=yP();G.then(function(){return void k(0)},function(e){return void k(e instanceof Uq?e.code:-1)}); return G}; g.C.UR=function(q){this.metrics.Ls9.N_(q,this.Z9)}; g.C.V5=function(q){this.metrics.t0.N_(q,this.Z9)}; g.C.FD=function(q){this.metrics.vDh.N_(q,this.Z9)}; g.Z(bl,k8);bl.prototype.q$=function(){EYc(this.V)};g.Z(OZ,Jx);g.Z(ll,Jx);g.Z(et,Jx);var fOl=qr(et),mQl=function(q){return Od(function(a){return a instanceof q&&!uF(a)})}(et); et.messageId="bfkj";g.Z(Vkj,Jx);g.Z(g9,Jx);g.Z(NA,Jx);var Qdl=qr(NA);g.Z(P4,g.c);P4.prototype.snapshot=function(q){if(this.t2())throw Error("Already disposed");this.logger.oH("n");var a=this.logger.share();return this.W.then(function(w){var G=w.jV;return new Promise(function(k){var b=new qA(a,"n");G(function(O){b.done();a.iA(O.length);a.q$();a.dispose();k(O)},[q.l5, q.Qj,q.eC,q.Yh])})})}; P4.prototype.uh=function(q){var a=this;if(this.t2())throw Error("Already disposed");this.logger.oH("n");var w=ao(this.logger,function(){return a.Y([q.l5,q.Qj,q.eC,q.Yh])},"n"); this.logger.iA(w.length);this.logger.q$();return w}; P4.prototype.FM=function(q){this.W.then(function(a){var w;(w=a.x97)==null||w(q)})}; P4.prototype.Q1=function(){return this.logger.share()};g.Z(Tw,Jx);g.Z($8,Jx);sZ.prototype.Rv=function(q){return UQm(this,q,new wV,0)};g.Z(FS,g.c);FS.prototype.snapshot=function(q){var a=this;return g.h(function(w){switch(w.U){case 1:if(a.t2())throw Error("Already disposed");if(a.U||a.X){w.Gl(2);break}return g.n(w,a.D.promise,2);case 2:if(!a.U){w.Gl(4);break}return g.n(w,a.U.snapshot(q),5);case 5:return w.return(w.V);case 4:throw a.X;}})}; FS.prototype.FM=function(q){var a,w;(a=this.U)==null||(w=a.FM)==null||w.call(a,q)}; FS.prototype.handleError=function(q){if(!this.t2()){this.X=q;this.D.resolve();var a,w;(w=(a=this.options).jrT)==null||w.call(a,q)}}; FS.prototype.Q1=function(){return this.logger.share()}; var oYN={jN7:432E5,T3:3E5,h6:10,A0:1E4,hQ:3E4,rD:3E4,QGT:6E4,eS:1E3,Eh:6E4,TD:6E5,XQ:.25,tQ:2,maxAttempts:10};var K_c,RUm=(K_c=Math.imul)!=null?K_c:function(q,a){return q*a|0},Vr=[196, 200,224,18];J$.prototype.m$=function(){return String(this.V)+","+this.U.join()}; J$.prototype.gt=function(q,a){var w=void 0;if(this.U[this.V]!==q){var G=this.U.indexOf(q);G!==-1?(this.U.splice(G,1),G0;)a[w++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(q%62),q=Math.floor(q/62);return a.join("")}};g.Z(Qr,g.c);Qr.prototype.nQ=function(q,a){var w=this.OU(q);a==null||a(w);return ao(this.logger,function(){return g.AH(w,2)},this.U)}; g.Z(L1,Qr);L1.prototype.OU=function(q,a){var w=this;this.logger.oH(this.V);++this.D>=this.L&&this.W.resolve();var G=q();q=ao(this.logger,function(){return w.Y(G)},"C"); if(q===void 0)throw new DA(17,"YNJ:Undefined");if(!(q instanceof Uint8Array))throw new DA(18,"ODM:Invalid");a==null||a(q);return q}; g.Z(B4,Qr);B4.prototype.OU=function(){return this.Y}; g.Z(rV,Qr);rV.prototype.OU=function(){var q=this;return ao(this.logger,function(){return LQ(q.Y)},"d")}; rV.prototype.nQ=function(){return this.Y}; g.Z(n1,Qr);n1.prototype.OU=function(){if(this.Y)return this.Y;this.Y=YQV(this,function(q){return"_"+NXU(q)}); return YQV(this,function(q){return q})}; g.Z(h$,Qr);h$.prototype.OU=function(){var q=Math.floor(Date.now()/1E3),a=[Math.random()*255,Math.random()*255],w=a.concat([this.Y&255,this.clientState],[q>>24&255,q>>16&255,q>>8&255,q&255]);q=new Uint8Array(2+w.length);q[0]=34;q[1]=w.length;q.set(w,2);w=q.subarray(2);for(var G=a=a.length;G150))try{this.cache=new k$f(q,this.logger)}catch(a){this.reportError(new DA(22,"GBJ:init",a))}}; g.C.reportError=function(q){this.logger.vW(q.code);this.onError(q);return q}; var dEl=function(q){return Od(function(a){if(!q7J(a))return!1;for(var w=g.V(Object.entries(q)),G=w.next();!G.done;G=w.next()){var k=g.V(G.value);G=k.next().value;k=k.next().value;if(!(G in a)){if(k.Qkl===!0)continue;return!1}if(!k(a[G]))return!1}return!0})}({IA:function(q){return Od(function(a){return a instanceof q})}(FS)},"");var zEf=(new Date).getTime();g.Z(p1,Jx);var dOx=qr(p1);Jpy.prototype.getMetadata=function(){return this.metadata};UZ.prototype.getMetadata=function(){return this.metadata}; UZ.prototype.getStatus=function(){return this.status};XS.prototype.X=function(q,a){a=a===void 0?{}:a;return new Jpy(q,this,a)}; XS.prototype.getName=function(){return this.name};var TjB=new XS("/google.internal.waa.v1.Waa/Create",Tw,p1,function(q){return q.m$()},dOx);g.Z(jt,Jx);var ckV=new XS("/google.internal.waa.v1.Waa/GenerateIT",$8,jt,function(q){return q.m$()},qr(jt));var qhl=new Set(["SAPISIDHASH","APISIDHASH"]);g.Z(oo,Jx);oo.prototype.getValue=function(){var q=qu(this,2);if(Array.isArray(q)||q instanceof Jx)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return e8(this,2)};g.Z(Io,Jx);Io.prototype.getMessage=function(){return nl(this,2)}; var BXK=qr(Io);ul.prototype.sb=function(q,a){q=="data"?this.W.push(a):q=="metadata"?this.D.push(a):q=="status"?this.L.push(a):q=="end"?this.Y.push(a):q=="error"&&this.U.push(a);return this}; ul.prototype.removeListener=function(q,a){q=="data"?W4(this.W,a):q=="metadata"?W4(this.D,a):q=="status"?W4(this.L,a):q=="end"?W4(this.Y,a):q=="error"&&W4(this.U,a);return this}; ul.prototype.cancel=function(){this.V.abort()}; ul.prototype.cancel=ul.prototype.cancel;ul.prototype.removeListener=ul.prototype.removeListener;ul.prototype.on=ul.prototype.sb;g.Z(QqN,Error);g.TJ(g.DX,YAc);g.DX.prototype.V=function(){var q=new Ro(this.Y,this.W);this.U&&q.setCredentialsMode(this.U);return q}; g.DX.prototype.setCredentialsMode=function(q){this.U=q}; g.TJ(Ro,g.PO);g.C=Ro.prototype;g.C.open=function(q,a){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.UK=q;this.F9=a;this.readyState=1;yr(this)}; g.C.send=function(q){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");if(this.S.signal.aborted)throw this.abort(),Error("Request was aborted.");this.V=!0;var a={headers:this.J,method:this.UK,credentials:this.D,cache:void 0,signal:this.S.signal};q&&(a.body=q);(this.y7||g.yV).fetch(new Request(this.F9,a)).then(this.rC.bind(this),this.vv.bind(this))}; g.C.abort=function(){this.response=this.responseText="";this.J=new Headers;this.status=0;this.S.abort();this.W&&this.W.cancel("Request was aborted.").catch(function(){}); this.readyState>=1&&this.V&&this.readyState!=4&&(this.V=!1,qb(this));this.readyState=0}; g.C.rC=function(q){if(this.V&&(this.Y=q,this.U||(this.status=this.Y.status,this.statusText=this.Y.statusText,this.U=q.headers,this.readyState=2,yr(this)),this.V&&(this.readyState=3,yr(this),this.V)))if(this.responseType==="arraybuffer")q.arrayBuffer().then(this.IY.bind(this),this.vv.bind(this));else if(typeof g.yV.ReadableStream!=="undefined"&&"body"in q){this.W=q.body.getReader();if(this.L){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response= []}else this.response=this.responseText="",this.X=new TextDecoder;rpK(this)}else q.text().then(this.J_.bind(this),this.vv.bind(this))}; g.C.P9=function(q){if(this.V){if(this.L&&q.value)this.response.push(q.value);else if(!this.L){var a=q.value?q.value:new Uint8Array(0);if(a=this.X.decode(a,{stream:!q.done}))this.response=this.responseText+=a}q.done?qb(this):yr(this);this.readyState==3&&rpK(this)}}; g.C.J_=function(q){this.V&&(this.response=this.responseText=q,qb(this))}; g.C.IY=function(q){this.V&&(this.response=q,qb(this))}; g.C.vv=function(){this.V&&qb(this)}; g.C.setRequestHeader=function(q,a){this.J.append(q,a)}; g.C.getResponseHeader=function(q){return this.U?this.U.get(q.toLowerCase())||"":""}; g.C.getAllResponseHeaders=function(){if(!this.U)return"";for(var q=[],a=this.U.entries(),w=a.next();!w.done;)w=w.value,q.push(w[0]+": "+w[1]),w=a.next();return q.join("\r\n")}; g.C.setCredentialsMode=function(q){this.D=q}; Object.defineProperty(Ro.prototype,"withCredentials",{get:function(){return this.D==="include"}, set:function(q){this.setCredentialsMode(q?"include":"same-origin")}});g.g_.prototype.toString=function(){var q=[],a=this.D;a&&q.push(lX(a,$OR,!0),":");var w=this.V;if(w||a=="file")q.push("//"),(a=this.S)&&q.push(lX(a,$OR,!0),"@"),q.push(g.x1(w).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),w=this.W,w!=null&&q.push(":",String(w));if(w=this.U)this.V&&w.charAt(0)!="/"&&q.push("/"),q.push(lX(w,w.charAt(0)=="/"?ssB:F_K,!0));(w=this.Y.toString())&&q.push("?",w);(w=this.L)&&q.push("#",lX(w,C1R));return q.join("")}; g.g_.prototype.resolve=function(q){var a=this.clone(),w=!!q.D;w?g.a1(a,q.D):w=!!q.S;w?a.S=q.S:w=!!q.V;w?g.w_(a,q.V):w=q.W!=null;var G=q.U;if(w)g.GE(a,q.W);else if(w=!!q.U){if(G.charAt(0)!="/")if(this.V&&!this.U)G="/"+G;else{var k=a.U.lastIndexOf("/");k!=-1&&(G=a.U.slice(0,k+1)+G)}k=G;if(k==".."||k==".")G="";else if(g.nH(k,"./")||g.nH(k,"/.")){G=BL(k,"/");k=k.split("/");for(var b=[],O=0;O1||b.length==1&&b[0]!="")&&b.pop(), G&&O==k.length&&b.push("")):(b.push(e),G=!0)}G=b.join("/")}else G=k}w?a.U=G:w=q.Y.toString()!=="";w?ks(a,q.Y.clone()):w=!!q.L;w&&(a.L=q.L);return a}; g.g_.prototype.clone=function(){return new g.g_(this)}; var $OR=/[#\/\?@]/g,F_K=/[#\?:]/g,ssB=/[#\?]/g,fAK=/[#\?@]/g,C1R=/#/g;g.C=O5.prototype;g.C.add=function(q,a){Ys(this);this.W=null;q=Pv(this,q);var w=this.V.get(q);w||this.V.set(q,w=[]);w.push(a);this.U=this.U+1;return this}; g.C.remove=function(q){Ys(this);q=Pv(this,q);return this.V.has(q)?(this.W=null,this.U=this.U-this.V.get(q).length,this.V.delete(q)):!1}; g.C.clear=function(){this.V=this.W=null;this.U=0}; g.C.isEmpty=function(){Ys(this);return this.U==0}; g.C.forEach=function(q,a){Ys(this);this.V.forEach(function(w,G){w.forEach(function(k){q.call(a,k,G,this)},this)},this)}; g.C.SH=function(){Ys(this);for(var q=Array.from(this.V.values()),a=Array.from(this.V.keys()),w=[],G=0;G0?String(q[0]):a}; g.C.toString=function(){if(this.W)return this.W;if(!this.V)return"";for(var q=[],a=Array.from(this.V.keys()),w=0;w>>3;b.W!=1&&b.W!=2&&b.W!=15&&$s(b,O,e,"unexpected tag");b.V=1;b.U=0;b.Y=0} function w(N){b.Y++;b.Y==5&&N&240&&$s(b,O,e,"message length too long");b.U|=(N&127)<<(b.Y-1)*7;N&128||(b.V=2,b.S=0,typeof Uint8Array!=="undefined"?b.D=new Uint8Array(b.U):b.D=Array(b.U),b.U==0&&k())} function G(N){b.D[b.S++]=N;b.S==b.U&&k()} function k(){if(b.W<15){var N={};N[b.W]=b.D;b.X.push(N)}b.V=0} for(var b=this,O=q instanceof Array?q:new Uint8Array(q),e=0;e0?q:null};s5.prototype.isInputValid=function(){return this.V===null}; s5.prototype.Jp=function(){return this.V}; s5.prototype.Nq=function(){return!1}; s5.prototype.parse=function(q){this.V!==null&&IAU(this,q,"stream already broken");var a=null;try{var w=this.W;w.W||oTV(w,q,"stream already broken");w.V+=q;var G=Math.floor(w.V.length/4);if(G==0)var k=null;else{try{var b=Bnl(w.V.slice(0,G*4))}catch(O){oTV(w,w.V,O.message)}w.U+=G*4;w.V=w.V.slice(G*4);k=b}a=k===null?null:this.Y.parse(k)}catch(O){IAU(this,q,O.message)}this.U+=q.length;return a};var E1x={INIT:0,WA:1,NL:2,sz:3,JW:4,I1:5,STRING:6,lm:7,JD:8,Y_:9,GE:10,fN:11,fA:12,jl:13,HB:14,Ro:15,FL:16,Ur:17,dA:18,w0:19,ML:20};g.C=CJ.prototype;g.C.isInputValid=function(){return this.D!=3}; g.C.Jp=function(){return this.J}; g.C.done=function(){return this.D===2}; g.C.Nq=function(){return!1}; g.C.parse=function(q){function a(){for(;d0;)if(F=q[d++], b.S===4?b.S=0:b.S++,!F)break a;if(F==='"'&&!b.X){b.V=G();break}if(F==="\\"&&!b.X&&(b.X=!0,F=q[d++],!F))break;if(b.X)if(b.X=!1,F==="u"&&(b.S=1),F=q[d++])continue;else break;e.lastIndex=d;F=e.exec(q);if(!F){d=q.length+1;break}d=F.index+1;F=q[F.index];if(!F)break}b.W+=d-J;continue;case N.Y_:if(!F)continue;F==="r"?b.V=N.GE:ZH(b,q,d);continue;case N.GE:if(!F)continue;F==="u"?b.V=N.fN:ZH(b,q,d);continue;case N.fN:if(!F)continue;F==="e"?b.V=G():ZH(b,q,d);continue;case N.fA:if(!F)continue;F==="a"?b.V=N.jl: ZH(b,q,d);continue;case N.jl:if(!F)continue;F==="l"?b.V=N.HB:ZH(b,q,d);continue;case N.HB:if(!F)continue;F==="s"?b.V=N.Ro:ZH(b,q,d);continue;case N.Ro:if(!F)continue;F==="e"?b.V=G():ZH(b,q,d);continue;case N.FL:if(!F)continue;F==="u"?b.V=N.Ur:ZH(b,q,d);continue;case N.Ur:if(!F)continue;F==="l"?b.V=N.dA:ZH(b,q,d);continue;case N.dA:if(!F)continue;F==="l"?b.V=G():ZH(b,q,d);continue;case N.w0:F==="."?b.V=N.ML:ZH(b,q,d);continue;case N.ML:if("0123456789.eE+-".indexOf(F)!==-1)continue;else d--,b.W--,b.V= G();continue;default:ZH(b,q,d)}}} function G(){var F=O.pop();return F!=null?F:N.WA} function k(F){b.U>1||(F||(F=K===-1?b.Y+q.substring(P,d):q.substring(K,d)),b.F9?b.L.push(F):b.L.push(JSON.parse(F)),K=d)} for(var b=this,O=b.UK,e=b.y7,N=E1x,Y=q.length,P=0,K=-1,d=0;d0?(T=b.L,b.L=[],T):null}return null};E5.prototype.isInputValid=function(){return this.D===null}; E5.prototype.Jp=function(){return this.D}; E5.prototype.Nq=function(){return!1}; E5.prototype.parse=function(q){function a(N){b.U=6;b.D="The stream is broken @"+b.V+"/"+O+". Error: "+N+". With input:\n";throw Error(b.D);} function w(){b.W=new CJ({m57:!0,Oh:!0})} function G(N){if(N)for(var Y=0;Y1)&&a("extra status: "+N);b.L=!0;var Y={};Y[2]=N[0];b.Y.push(Y)}} for(var b=this,O=0;O0?(q=b.Y,b.Y=[],q):null};VO.prototype.Hu=function(){return this.V}; VO.prototype.getStatus=function(){return this.D}; VO.prototype.F9=function(q){q=q.target;try{if(q==this.V)a:{var a=g.vO(this.V),w=this.V.U,G=this.V.getStatus(),k=g.iy(this.V);q=[];if(g.WO(this.V)instanceof Array){var b=g.WO(this.V);b.length>0&&b[0]instanceof Uint8Array&&(this.J=!0,q=b)}if(!(a<3||a==3&&!k&&q.length==0))if(G=G==200||G==206,a==4&&(w==8?JD(this,7):w==7?JD(this,8):G||JD(this,3)),this.U||(this.U=uc_(this.V),this.U==null&&JD(this,5)),this.D>2)mY(this);else{if(q.length>this.W){var O=q.length;w=[];try{if(this.U.Nq())for(var e=0;ethis.W){e=k.slice(this.W);this.W=k.length;try{var Y=this.U.parse(e);Y!=null&&this.Y&&this.Y(Y)}catch(P){JD(this,5);mY(this);break a}}a==4?(k.length!= 0||this.J?JD(this,2):JD(this,4),mY(this)):JD(this,1)}}}catch(P){JD(this,6),mY(this)}};g.C=t_U.prototype;g.C.sb=function(q,a){var w=this.U[q];w||(w=[],this.U[q]=w);w.push(a);return this}; g.C.addListener=function(q,a){this.sb(q,a);return this}; g.C.removeListener=function(q,a){var w=this.U[q];w&&g.mU(w,a);(q=this.V[q])&&g.mU(q,a);return this}; g.C.once=function(q,a){var w=this.V[q];w||(w=[],this.V[q]=w);w.push(a);return this}; g.C.uwG=function(q){var a=this.U.data;a&&vTJ(q,a);(a=this.V.data)&&vTJ(q,a);this.V.data=[]}; g.C.fo2=function(){switch(this.W.getStatus()){case 1:QO(this,"readable");break;case 5:case 6:case 4:case 7:case 3:QO(this,"error");break;case 8:QO(this,"close");break;case 2:QO(this,"end")}};zGJ.prototype.serverStreaming=function(q,a,w,G){var k=this,b=q.substring(0,q.length-G.name.length);return gFc(function(O){var e=O.M0,N=O.getMetadata(),Y=DEG(k,!1);N=RGy(k,N,Y,b+e.getName());var P=ypf(Y,e.U,!0);O=e.V(O.Lj);Y.send(N,"POST",O);return P},this.ih).call(this,G.X(a,w))};a3j.prototype.create=function(q,a,w){var G=this.V,k=this.U+"/$rpc/google.internal.waa.v1.Waa/Create";a=a||{};w=w===void 0?{}:w;return pQV(G,k,q,a,TjB,w)};var w2l="://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(" "),GyK=/\bocr\b/;var bVm=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;Object.assign({},{attributes:{},handleError:function(q){throw q;}},{YE7:!0, GkB:!0,ftT:!1,jH2:ocK,HbQ:I7c,Rr2:!1,KXT:!1,c5T:!0,vX7:jBl,oX9:!1,gXt:!1,fv2:!1});var LJ=null,r_=!1,su_=1,dof=Symbol("SIGNAL"),K4={version:0,cOK:0,YY:!1,producers:void 0,q7:void 0,gs:void 0,Gt:void 0,uv:!1,nf:!1,lx:!1,kind:"unknown",Ut:function(){return!1}, dS:function(){}, MR:function(){}, u18:function(){}};var d$=Symbol("UNSET"),TF=Symbol("COMPUTING"),$y=Symbol("ERRORED");Object.assign({},K4,{value:d$,YY:!0,error:null,Fh:xs,kind:"computed",Ut:function(q){return q.value===d$||q.value===TF}, dS:function(q){if(q.value===TF)throw Error("");var a=q.value;q.value=TF;var w=edl(q),G=!1;try{var k=q.xf();Bv(null);G=a!==d$&&a!==$y&&k!==$y&&q.Fh(a,k)}catch(b){k=$y,q.error=b}finally{Yhm(q,w)}G?q.value=a:(q.value=k,q.version++)}});var KLJ=Object.assign({},K4,{Fh:xs,value:void 0,kind:"signal"});Object.assign({},K4,{value:d$,YY:!0,error:null,Fh:xs,kind:"linkedSignal",Ut:function(q){return q.value===d$||q.value===TF}, dS:function(q){if(q.value===TF)throw Error("");var a=q.value;q.value=TF;var w=edl(q);try{var G=q.source();var k=q.xf(G,a===d$||a===$y?void 0:{source:q.HO8,value:a});q.HO8=G}catch(b){k=$y,q.error=b}finally{Yhm(q,w)}a!==d$&&k!==$y&&q.Fh(a,k)?q.value=a:(q.value=k,q.version++)}});Object.assign({},K4,{lx:!0,nf:!1,MR:function(q){q.schedule!==null&&q.schedule(q.Vae)}, J7B:!1,at7:function(){}});g.Z(Sd,g.PO);Sd.prototype.dispose=function(){window.removeEventListener("offline",this.W);window.removeEventListener("online",this.W);this.BF.FS(this.D);delete Sd.instance}; Sd.prototype.GA=function(){return this.V}; Sd.prototype.j4=function(){var q=this;this.D=this.BF.gh(function(){var a;return g.h(function(w){if(w.U==1)return q.V?((a=window.navigator)==null?0:a.onLine)?w.Gl(3):g.n(w,hD(q),3):g.n(w,hD(q),3);q.j4();g.Jm(w)})},3E4)};g.Z(CLm,Jx);var Vmw=Znm(CLm,[0,ky,XLU,AVJ,ky,-2,AVJ,JV6]);Hv.prototype.set=function(q,a){a=a===void 0?!0:a;0<=q&&q<52&&Number.isInteger(q)&&this.data[q]!==a&&(this.data[q]=a,this.V=-1)}; Hv.prototype.get=function(q){return!!this.data[q]};var pJ;g.TJ(g.jd,g.c);g.C=g.jd.prototype;g.C.start=function(){this.stop();this.Y=!1;var q=EFf(this),a=Vzl(this);q&&!a&&this.U.mozRequestAnimationFrame?(this.V=g.qI(this.U,"MozBeforePaint",this.W),this.U.mozRequestAnimationFrame(null),this.Y=!0):this.V=q&&a?q.call(this.U,this.W):this.U.setTimeout(jBm(this.W),20)}; g.C.stop=function(){if(this.isActive()){var q=EFf(this),a=Vzl(this);q&&!a&&this.U.mozRequestAnimationFrame?G_(this.V):q&&a?a.call(this.U,this.V):this.U.clearTimeout(this.V)}this.V=null}; g.C.isActive=function(){return this.V!=null}; g.C.Nc=function(){this.Y&&this.V&&G_(this.V);this.V=null;this.L.call(this.D,g.Kw())}; g.C.qB=function(){this.stop();g.jd.mG.qB.call(this)};g.TJ(g.o1,g.c);g.C=g.o1.prototype;g.C.NO=0;g.C.qB=function(){g.o1.mG.qB.call(this);this.stop();delete this.V;delete this.U}; g.C.start=function(q){this.stop();this.NO=g.HO(this.W,q!==void 0?q:this.AL)}; g.C.stop=function(){this.isActive()&&g.yV.clearTimeout(this.NO);this.NO=0}; g.C.isActive=function(){return this.NO!=0}; g.C.tD=function(){this.NO=0;this.V&&this.V.call(this.U)};g.Z(g.iX,g.c);g.C=g.iX.prototype;g.C.qq=function(q){this.W=arguments;this.bK||this.U?this.V=!0:Wv(this)}; g.C.stop=function(){this.bK&&(g.yV.clearTimeout(this.bK),this.bK=null,this.V=!1,this.W=null)}; g.C.pause=function(){this.U++}; g.C.resume=function(){this.U--;this.U||!this.V||this.bK||(this.V=!1,Wv(this))}; g.C.qB=function(){g.c.prototype.qB.call(this);this.stop()};g.DH.prototype[Symbol.iterator]=function(){return this}; g.DH.prototype.next=function(){var q=this.V.next();return{value:q.done?void 0:this.U.call(void 0,q.value),done:q.done}};g.TJ(g.b9,g.PO);g.C=g.b9.prototype;g.C.isPlaying=function(){return this.V==1}; g.C.isPaused=function(){return this.V==-1}; g.C.nX=function(){this.Ld("begin")}; g.C.Km=function(){this.Ld("end")}; g.C.onFinish=function(){this.Ld("finish")}; g.C.onStop=function(){this.Ld("stop")}; g.C.Ld=function(q){this.dispatchEvent(q)};var J7e=hM(function(){var q=g.dp("DIV"),a=g.NP?"-webkit":uh?"-moz":null,w="transition:opacity 1s linear;";a&&(w+=a+"-transition:opacity 1s linear;");a=Bym({style:w});if(q.nodeType===1&&/^(script|style)$/i.test(q.tagName))throw Error("");q.innerHTML=dj(a);return g.tM(q.firstChild,"transition")!=""});g.TJ(O8,g.b9);g.C=O8.prototype;g.C.play=function(){if(this.isPlaying())return!1;this.nX();this.Ld("play");this.startTime=g.Kw();this.V=1;if(J7e())return g.IR(this.U,this.L),this.W=g.HO(this.m9e,void 0,this),!0;this.HX(!1);return!1}; g.C.m9e=function(){g.gh(this.U);QuV(this.U,this.X);g.IR(this.U,this.Y);this.W=g.HO((0,g.Ne)(this.HX,this,!1),this.D*1E3)}; g.C.stop=function(){this.isPlaying()&&this.HX(!0)}; g.C.HX=function(q){g.IR(this.U,"transition","");g.yV.clearTimeout(this.W);g.IR(this.U,this.Y);this.endTime=g.Kw();this.V=0;if(q)this.onStop();else this.onFinish();this.Km()}; g.C.qB=function(){this.stop();O8.mG.qB.call(this)}; g.C.pause=function(){};var xol={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,"var":!0};l9("Element","attributes")||l9("Node","attributes");l9("Element","innerHTML")||l9("HTMLElement","innerHTML");l9("Node","nodeName");l9("Node","nodeType");l9("Node","parentNode");l9("Node","childNodes");l9("HTMLElement","style")||l9("Element","style");l9("HTMLStyleElement","sheet");var hdc=B9f("getPropertyValue"),Shy=B9f("setProperty");l9("Element","namespaceURI")||l9("Node","namespaceURI");var Mzm={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var p2V,ncx,c1_,HVG,Uom;p2V=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]");ncx=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.mOw=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.NG=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]");c1_=/^http:\/\/.*/;g.QsU=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");HVG=/\s+/;Uom=/[\d\u06f0-\u06f9]/;PB.prototype.Vh=function(){return new Ka(this.U())}; PB.prototype[Symbol.iterator]=function(){return new dU(this.U())}; PB.prototype.V=function(){return new dU(this.U())}; g.Z(Ka,g.C$);Ka.prototype.next=function(){return this.U.next()}; Ka.prototype[Symbol.iterator]=function(){return new dU(this.U)}; Ka.prototype.V=function(){return new dU(this.U)}; g.Z(dU,PB);dU.prototype.next=function(){return this.W.next()};$X.prototype.clone=function(){return new $X(this.V,this.X,this.W,this.D,this.Y,this.L,this.U,this.S)}; $X.prototype.equals=function(q){return this.V==q.V&&this.X==q.X&&this.W==q.W&&this.D==q.D&&this.Y==q.Y&&this.L==q.L&&this.U==q.U&&this.S==q.S};FN.prototype.clone=function(){return new FN(this.start,this.end)};(function(){if(p6N){var q=/Windows NT ([0-9.]+)/;return(q=q.exec(g.cL()))?q[1]:"0"}return Ke?(q=/1[0|1][_.][0-9_.]+/,(q=q.exec(g.cL()))?q[0].replace(/_/g,"."):"10"):g.vr?(q=/Android\s+([^\);]+)(\)|;)/,(q=q.exec(g.cL()))?q[1]:""):vcU||zIe||iwU?(q=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(q=q.exec(g.cL()))?q[1].replace(/_/g,"."):""):""})();var jul=function(){if(g.Yx)return Ca(/Firefox\/([0-9.]+)/);if(g.eL||g.jI||g.Du)return VKc;if(g.se){if(HS()||cS()){var q=Ca(/CriOS\/([0-9.]+)/);if(q)return q}return Ca(/Chrome\/([0-9.]+)/)}if(g.Ph&&!HS())return Ca(/Version\/([0-9.]+)/);if(Ic||uO){if(q=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.cL()))return q[1]+"."+q[2]}else if(g.RW)return(q=Ca(/Android\s+([0-9.]+)/))?q:Ca(/Version\/([0-9.]+)/);return""}();g.TJ(g.E8,g.c);g.C=g.E8.prototype;g.C.subscribe=function(q,a,w){var G=this.U[q];G||(G=this.U[q]=[]);var k=this.L;this.V[k]=q;this.V[k+1]=a;this.V[k+2]=w;this.L=k+3;G.push(k);return k}; g.C.unsubscribe=function(q,a,w){if(q=this.U[q]){var G=this.V;if(q=q.find(function(k){return G[k+1]==a&&G[k+2]==w}))return this.A4(q)}return!1}; g.C.A4=function(q){var a=this.V[q];if(a){var w=this.U[a];this.Y!=0?(this.W.push(q),this.V[q+1]=function(){}):(w&&g.mU(w,q),delete this.V[q],delete this.V[q+1],delete this.V[q+2])}return!!a}; g.C.publish=function(q,a){var w=this.U[q];if(w){var G=Array(arguments.length-1),k=arguments.length,b;for(b=1;b0&&this.Y==0)for(;w=this.W.pop();)this.A4(w)}}return b!=0}return!1}; g.C.clear=function(q){if(q){var a=this.U[q];a&&(a.forEach(this.A4,this),delete this.U[q])}else this.V.length=0,this.U={}}; g.C.qB=function(){g.E8.mG.qB.call(this);this.clear();this.W.length=0};g.Vp.prototype.set=function(q,a){a===void 0?this.V.remove(q):this.V.set(q,g.Xj(a))}; g.Vp.prototype.get=function(q){try{var a=this.V.get(q)}catch(w){return}if(a!==null)try{return JSON.parse(a)}catch(w){throw"Storage: Invalid value was encountered";}}; g.Vp.prototype.remove=function(q){this.V.remove(q)};g.TJ(JX,g.Vp);JX.prototype.set=function(q,a){JX.mG.set.call(this,q,ukU(a))}; JX.prototype.U=function(q){q=JX.mG.get.call(this,q);if(q===void 0||q instanceof Object)return q;throw"Storage: Invalid value was encountered";}; JX.prototype.get=function(q){if(q=this.U(q)){if(q=q.data,q===void 0)throw"Storage: Invalid value was encountered";}else q=void 0;return q};g.TJ(ma,JX);ma.prototype.set=function(q,a,w){if(a=ukU(a)){if(w){if(w=w.length)return g.lT;var k=w.key(a++);if(q)return g.my(k);k=w.getItem(k);if(typeof k!=="string")throw"Storage mechanism: Invalid value was encountered";return g.my(k)}; return G}; g.C.clear=function(){La(this);this.V.clear()}; g.C.key=function(q){La(this);return this.V.key(q)};g.TJ(BB,xX);g.TJ(zdy,xX);g.TJ(rU,AX);rU.prototype.set=function(q,a){this.U.set(this.V+q,a)}; rU.prototype.get=function(q){return this.U.get(this.V+q)}; rU.prototype.remove=function(q){this.U.remove(this.V+q)}; rU.prototype.Vh=function(q){var a=this.U[Symbol.iterator](),w=this,G=new g.C$;G.next=function(){var k=a.next();if(k.done)return k;for(k=k.value;k.slice(0,w.V.length)!=w.V;){k=a.next();if(k.done)return k;k=k.value}return g.my(q?k.slice(w.V.length):w.U.get(k))}; return G};MG.prototype.getValue=function(){return this.U}; MG.prototype.clone=function(){return new MG(this.V,this.U)};g.C=hX.prototype;g.C.gt=function(q,a){var w=this.V;w.push(new MG(q,a));q=w.length-1;a=this.V;for(w=a[q];q>0;){var G=q-1>>1;if(a[G].V>w.V)a[q]=a[G],q=G;else break}a[q]=w}; g.C.remove=function(){var q=this.V,a=q.length,w=q[0];if(!(a<=0)){if(a==1)q.length=0;else{q[0]=q.pop();q=0;a=this.V;for(var G=a.length,k=a[q];q>1;){var b=q*2+1,O=q*2+2;b=Ok.V)break;a[q]=a[b];q=b}a[q]=k}return w.getValue()}}; g.C.ip=function(){for(var q=this.V,a=[],w=q.length,G=0;G>>16&65535|0;for(var b;w!==0;){b=w>2E3?2E3:w;w-=b;do k=k+a[G++]|0,q=q+k|0;while(--b);k%=65521;q%=65521}return k|q<<16|0};for(var eu={},sJ,r78=[],Fu=0;Fu<256;Fu++){sJ=Fu;for(var n1R=0;n1R<8;n1R++)sJ=sJ&1?3988292384^sJ>>>1:sJ>>>1;r78[Fu]=sJ}eu=function(q,a,w,G){w=G+w;for(q^=-1;G>>8^r78[(q^a[G])&255];return q^-1};var yp={};yp={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 tX=[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],i9=[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],CyJ=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],lGj=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],w0=Array(576);cB(w0);var Ge=Array(60);cB(Ge);var zM=Array(512);cB(zM);var u9=Array(256);cB(u9);var vB=Array(29);cB(vB);var WB=Array(30);cB(WB);var $IN,sll,F$G,THc=!1;var d0;d0=[new K_(0,0,0,0,function(q,a){var w=65535;for(w>q.gy-5&&(w=q.gy-5);;){if(q.ZZ<=1){NX(q);if(q.ZZ===0&&a===0)return 1;if(q.ZZ===0)break}q.fk+=q.ZZ;q.ZZ=0;var G=q.WI+w;if(q.fk===0||q.fk>=G)if(q.ZZ=q.fk-G,q.fk=G,kg(q,!1),q.nT.Zo===0)return 1;if(q.fk-q.WI>=q.WQ-262&&(kg(q,!1),q.nT.Zo===0))return 1}q.gt=0;if(a===4)return kg(q,!0),q.nT.Zo===0?3:4;q.fk>q.WI&&kg(q,!1);return 1}), new K_(4,4,8,4,Yg),new K_(4,5,16,8,Yg),new K_(4,6,32,32,Yg),new K_(4,4,16,16,Pn),new K_(8,16,32,32,Pn),new K_(8,16,128,128,Pn),new K_(8,32,128,256,Pn),new K_(32,128,258,1024,Pn),new K_(32,258,258,4096,Pn)];var dIG={};dIG=function(){this.input=null;this.i_=this.o_=this.i7=0;this.output=null;this.g1=this.Zo=this.P4=0;this.msg="";this.state=null;this.BD=2;this.G4=0};var ZTy=Object.prototype.toString; Te.prototype.push=function(q,a){var w=this.nT,G=this.options.chunkSize;if(this.ended)return!1;var k=a===~~a?a:a===!0?4:0;typeof q==="string"?w.input=Dol(q):ZTy.call(q)==="[object ArrayBuffer]"?w.input=new Uint8Array(q):w.input=q;w.i7=0;w.o_=w.input.length;do{w.Zo===0&&(w.output=new HB.gB(G),w.P4=0,w.Zo=G);q=K$V(w,k);if(q!==1&&q!==0)return this.Km(q),this.ended=!0,!1;if(w.Zo===0||w.o_===0&&(k===4||k===2))if(this.options.to==="string"){var b=HB.q3(w.output,w.P4);a=b;b=b.length;if(b<65537&&(a.subarray&& BjK||!a.subarray))a=String.fromCharCode.apply(null,HB.q3(a,b));else{for(var O="",e=0;e0||w.Zo===0)&&q!==1);if(k===4)return(w=this.nT)&&w.state?(G=w.state.status,G!==42&&G!==69&&G!==73&&G!==91&&G!==103&&G!==113&&G!==666?q=qX(w,-2):(w.state=null,q=G===113?qX(w,-3):0)):q=-2,this.Km(q),this.ended=!0,q===0;k===2&&(this.Km(0),w.Zo=0);return!0}; Te.prototype.Km=function(q){q===0&&(this.result=this.options.to==="string"?this.chunks.join(""):HB.yq(this.chunks));this.chunks=[];this.err=q;this.msg=this.nT.msg};var sL="@@redux/INIT"+$g(),AtN="@@redux/REPLACE"+$g();var xIJ=typeof Symbol==="function"&&Symbol.observable||"@@observable";var MmB=[0,HHJ,-3,GF];g.Z(nEj,Jx);var igK=Znm(nEj,[0,ky,cVy,q6,HHJ,q6,-1,GF,HHJ,GF,-1,ky,GF,cVy,g$,MmB,q6,-1,GF]);var MYN=-1380760879;var DRJ=new g.Ze("adInfoDialogEndpoint");var BWV=new g.Ze("adPingingEndpoint");var yIc=new g.Ze("crossDeviceProgressCommand");var SQ=new g.Ze("actionCompanionAdRenderer");var zk=new g.Ze("adActionInterstitialRenderer");var hpU=new g.Ze("adDurationRemainingRenderer");var Om=new g.Ze("adHoverTextButtonRenderer");var i2U=new g.Ze("adInfoDialogRenderer");var IN=new g.Ze("adMessageRenderer");var lU=new g.Ze("adPreviewRenderer");var HZ=new g.Ze("adsEngagementPanelRenderer");var AON=new g.Ze("dismissablePanelTextPortraitImageRenderer");var mjK=new g.Ze("adsEngagementPanelSectionListViewModel");var SX6=new g.Ze("flyoutCtaRenderer");var fr=new g.Ze("imageCompanionAdRenderer");var tQ=new g.Ze("instreamAdPlayerOverlayRenderer");var DmB=new g.Ze("instreamSurveyAdBackgroundImageRenderer");var bU=new g.Ze("instreamSurveyAdPlayerOverlayRenderer");var z0=new g.Ze("instreamSurveyAdRenderer"),kB=new g.Ze("instreamSurveyAdSingleSelectQuestionRenderer"),GK=new g.Ze("instreamSurveyAdMultiSelectQuestionRenderer"),C4=new g.Ze("instreamSurveyAdAnswerRenderer"),fvl=new g.Ze("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var tz=new g.Ze("instreamVideoAdRenderer");var HSB=new g.Ze("textOverlayAdContentRenderer"),c7y=new g.Ze("enhancedTextOverlayAdContentRenderer"),pSU=new g.Ze("imageOverlayAdContentRenderer");var vb=new g.Ze("playerOverlayLayoutRenderer");var Wb=new g.Ze("videoInterstitialButtonedCenteredLayoutRenderer");var nvl=new g.Ze("aboveFeedAdLayoutRenderer");var Mrm=new g.Ze("belowPlayerAdLayoutRenderer");var rOU=new g.Ze("inPlayerAdLayoutRenderer");var Dq=new g.Ze("playerBytesAdLayoutRenderer");var wS=new g.Ze("playerBytesSequenceItemAdLayoutRenderer");var aN=new g.Ze("playerUnderlayAdLayoutRenderer");var vZ=new g.Ze("adIntroRenderer");var IP=new g.Ze("playerBytesSequentialLayoutRenderer");var Y4_=new g.Ze("slidingTextPlayerOverlayRenderer");var im=new g.Ze("surveyTextInterstitialRenderer");var RP=new g.Ze("videoAdTrackingRenderer");var Ev_=new g.Ze("videoInterstitialCenteredLayoutViewModel");var UOl=new g.Ze("simpleAdBadgeRenderer");var h9=new g.Ze("skipAdRenderer"),XS8=new g.Ze("skipButtonRenderer");var P9=new g.Ze("adSlotRenderer");var qv=new g.Ze("squeezebackPlayerSidePanelRenderer");var jsR=new g.Ze("timedPieCountdownRenderer");var o8=new g.Ze("adAvatarViewModel");var I8=new g.Ze("adBadgeViewModel");var u7=new g.Ze("adButtonViewModel");var o1x=new g.Ze("adDetailsLineViewModel");var Iv8=new g.Ze("adDisclosureBannerViewModel");var u1y=new g.Ze("adPodIndexViewModel");var tmI=new g.Ze("imageBackgroundViewModel");var v1U=new g.Ze("adGridCardCollectionViewModel");var zpl=new g.Ze("adGridCardTextViewModel");var iSl=new g.Ze("adPreviewViewModel");var W_B=new g.Ze("playerAdAvatarLockupCardButtonedViewModel");var DOe=new g.Ze("skipAdButtonViewModel");var RpK=new g.Ze("skipAdViewModel");var y7l=new g.Ze("timedPieCountdownViewModel");var qNR=new g.Ze("visitAdvertiserLinkViewModel");var cZ=new g.Ze("bannerImageLayoutViewModel");var pr=new g.Ze("topBannerImageTextIconButtonedLayoutViewModel");var Ui=new g.Ze("adsEngagementPanelLayoutViewModel");var gS=new g.Ze("displayUnderlayTextGridCardsLayoutViewModel");g.zO=new g.Ze("browseEndpoint");var gAe=new g.Ze("confirmDialogEndpoint");var l5y=new g.Ze("commandContext");var eul=new g.Ze("rawColdConfigGroup");var lSm=new g.Ze("rawHotConfigGroup");g.eg=new g.Ze("commandExecutorCommand");g.Z(SqN,Jx);var Xkf={B27:0,uxW:1,H67:32,pCl:61,lJT:67,ev7:103,EAW:86,jE7:42,RvT:60,qw7:62,D5t:73,vA7:76,Td7:88,XCQ:90,MHT:99,GSK:98,nAe:100,LX8:102,NdQ:41,wC2:69,gAB:70,kS7:71,zue:2,Z32:27,ANDROID:3,OE8:54,uFT:14,jw7:91,Wqe:55,qqT:24,QwB:20,yLh:18,Yq7:21,cLB:104,RFG:30,LqW:29,DM8:28,aJK:101,paG:34,HE7:36,oLW:38,IOS:5,PO7:15,K7B:92,xXW:40,ST8:25,AJ2:17,zl8:19,ZF7:64,Blh:66,sOG:26,JJh:22,rJl:33,VR7:68,aDt:35,mXl:53,IOK:37,CO7:39,M_K:7,N2Q:57,wFT:43,k8B:59,g27:93,vLQ:74,bd7:75,h0T:85,P9t:65,C9e:80,SMQ:8,n2K:10, z0B:58,AG9:63,xZ7:72,iEW:23,P5e:11,x58:13,FPT:12,ll8:16,fJt:56,tH9:31,xyW:77,yJQ:84,i69:87,YTt:89,oE2:94,euT:95};g.Z(EL,Jx);EL.prototype.V2=function(){return nl(this,3)}; EL.prototype.W9=function(){return nl(this,5)}; EL.prototype.ju=function(q){return H$(this,5,q)};g.Z(Ve,Jx);g.Z(fGl,Jx);g.Z(JK,Jx);g.C=JK.prototype;g.C.getDeviceId=function(){return nl(this,6)}; g.C.wK=function(q){var a=Og(this,9,TD,3,!0);tH(a,q);return a[q]}; g.C.getPlayerType=function(){return Mu(this,36)}; g.C.setHomeGroupInfo=function(q){return AY(this,fGl,81,q)}; g.C.clearLocationPlayabilityToken=function(){return aj(this,89)};g.Z(mj,Jx);mj.prototype.getValue=function(){return nl(this,sg(this,byJ,2))}; var byJ=[2,3,4,5,6];g.Z(Qe,Jx);Qe.prototype.setTrackingParams=function(q){return aj(this,1,j6G(q,!1))};g.Z(AK,Jx);g.Z(xg,Jx);xg.prototype.wK=function(q){var a=Og(this,5,$0,3,!0);tH(a,q);return a[q]};g.Z(L_,Jx);L_.prototype.getToken=function(){return S8(this,2)}; L_.prototype.setToken=function(q){return H$(this,2,q)};g.Z(Bn,Jx);Bn.prototype.setSafetyMode=function(q){return pl(this,5,q)};g.Z(r0,Jx);r0.prototype.dN=function(q){return AY(this,JK,1,q)};var Nv=new g.Ze("thumbnailLandscapePortraitRenderer");g.aMK=new g.Ze("changeEngagementPanelVisibilityAction");var Qwm=new g.Ze("continuationCommand");g.waU=new g.Ze("openPopupAction");g.Zk=new g.Ze("webCommandMetadata");var $vc=new g.Ze("metadataBadgeRenderer");var mFc=new g.Ze("signalServiceEndpoint");var xf=new g.Ze("innertubeCommand");var ljU=new g.Ze("loggingDirectives");var Z1V={hR7:"EMBEDDED_PLAYER_MODE_UNKNOWN",g3t:"EMBEDDED_PLAYER_MODE_DEFAULT",baQ:"EMBEDDED_PLAYER_MODE_PFP",kgl:"EMBEDDED_PLAYER_MODE_PFL"};var jNV=new g.Ze("channelThumbnailEndpoint");var X9y=new g.Ze("embeddedPlayerErrorMessageRenderer");var Hk_=new g.Ze("embeddedPlayerOverlayVideoDetailsRenderer"),oBc=new g.Ze("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),INl=new g.Ze("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var Krf=new g.Ze("embedsInfoPanelRenderer");var GY7=new g.Ze("feedbackEndpoint");var kYx=new g.Ze("callToActionButtonViewModel");var bnc=new g.Ze("interactionLoggingCommandMetadata");var TUy={ca7:"WEB_DISPLAY_MODE_UNKNOWN",QEK:"WEB_DISPLAY_MODE_BROWSER",oA7:"WEB_DISPLAY_MODE_MINIMAL_UI",YwB:"WEB_DISPLAY_MODE_STANDALONE",ya7:"WEB_DISPLAY_MODE_FULLSCREEN"};g.Z(n_,Jx);n_.prototype.getPlayerType=function(){return Mu(this,7)}; n_.prototype.M_=function(){return nl(this,19)}; n_.prototype.setVideoId=function(q){return H$(this,19,q)};g.Z(MX,Jx);g.Z(hK,Jx);g.Z(Su,Jx); var Onw=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353, 354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520,522,523,524,525];var lMK=new g.Ze("loggingContext");g.Z(f_,Jx);g.Z(Hn,Jx);Hn.prototype.M_=function(){return S8(this,sg(this,gI,1))}; Hn.prototype.setVideoId=function(q){return TU(this,1,gI,An(q))}; Hn.prototype.getPlaylistId=function(){return S8(this,sg(this,gI,2))}; var gI=[1,2];g.Z(HTJ,Jx);var JF=new g.Ze("changeKeyedMarkersVisibilityCommand");var emU=new g.Ze("changeMarkersVisibilityCommand");var FrN=new g.Ze("loadMarkersCommand");var Npx=new g.Ze("suggestedActionDataViewModel");var dNU=new g.Ze("timelyActionViewModel");var KPj=new g.Ze("timelyActionsOverlayViewModel");var QCm=new g.Ze("productListItemRenderer");var YNR=new g.Ze("shoppingOverlayRenderer");var chm=new g.Ze("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var Phx=new g.Ze("adFeedbackEndpoint");var K4l=new g.Ze("menuEndpoint");var nyj=new g.Ze("phoneDialerEndpoint");var B$G=new g.Ze("sendSmsEndpoint");var fNl=new g.Ze("copyTextEndpoint");var dPV=new g.Ze("shareEndpoint"),TpJ=new g.Ze("shareEntityEndpoint"),$Py=new g.Ze("shareEntityServiceEndpoint"),sRK=new g.Ze("webPlayerShareEntityServiceEndpoint");g.Be=new g.Ze("urlEndpoint");g.Er=new g.Ze("watchEndpoint");var F4J=new g.Ze("watchPlaylistEndpoint");g.Ch7=new g.Ze("offlineOrchestrationActionCommand");var WiJ=new g.Ze("compositeVideoOverlayRenderer");var Zne=new g.Ze("miniplayerRenderer");var hFV=new g.Ze("paidContentOverlayRenderer");var EAB=new g.Ze("playerMutedAutoplayOverlayRenderer"),VUU=new g.Ze("playerMutedAutoplayEndScreenRenderer");var rzj=new g.Ze("unserializedPlayerResponse"),JMc=new g.Ze("unserializedPlayerResponse");var mPc=new g.Ze("playlistEditEndpoint");var EJ;g.e9=new g.Ze("buttonRenderer");EJ=new g.Ze("toggleButtonRenderer");var JOj=new g.Ze("counterfactualRenderer");var QRI=new g.Ze("resolveUrlCommandMetadata");var AMV=new g.Ze("modifyChannelNotificationPreferenceEndpoint");var L2N=new g.Ze("pingingEndpoint");var xPc=new g.Ze("unsubscribeEndpoint");g.iN=new g.Ze("subscribeButtonRenderer");var L4R=new g.Ze("subscribeEndpoint");var Oxf=new g.Ze("buttonViewModel");var Qem=new g.Ze("qrCodeRenderer");var obG={H3W:"LIVING_ROOM_APP_MODE_UNSPECIFIED",GYh:"LIVING_ROOM_APP_MODE_MAIN",cml:"LIVING_ROOM_APP_MODE_KIDS",fDK:"LIVING_ROOM_APP_MODE_MUSIC",jg9:"LIVING_ROOM_APP_MODE_UNPLUGGED",YkQ:"LIVING_ROOM_APP_MODE_GAMING"};var NSN=new g.Ze("autoplaySwitchButtonRenderer");var Dg,C8f,czG,r_V;Dg=new g.Ze("decoratedPlayerBarRenderer");C8f=new g.Ze("chapteredPlayerBarRenderer");czG=new g.Ze("multiMarkersPlayerBarRenderer");r_V=new g.Ze("chapterRenderer");g.J_l=new g.Ze("markerRenderer");var fFm=new g.Ze("decoratedPlayheadRenderer");var dvm=new g.Ze("desktopOverlayConfigRenderer");var xjV=new g.Ze("engagementPanelSectionListRenderer");var PUm=new g.Ze("gatedActionsOverlayViewModel");var x1y=new g.Ze("heatMarkerRenderer");var A_c=new g.Ze("heatmapRenderer");var sNJ=new g.Ze("watchToWatchTransitionRenderer");var p9G=new g.Ze("playlistPanelRenderer");var Bpw=new g.Ze("productUpsellSuggestedActionViewModel");var rM7=new g.Ze("suggestedActionTimeRangeTrigger"),nAV=new g.Ze("suggestedActionsRenderer"),MUe=new g.Ze("suggestedActionRenderer");var LMj=new g.Ze("timedMarkerDecorationRenderer");var cQU=new g.Ze("cipher");var nZU=new g.Ze("playerVars");var hmU=new g.Ze("playerVars");var V7=g.yV.window,SNV,fM7,cn=(V7==null?void 0:(SNV=V7.yt)==null?void 0:SNV.config_)||(V7==null?void 0:(fM7=V7.ytcfg)==null?void 0:fM7.data_)||{};g.qe("yt.config_",cn);var II=[];var vEU=/^[\w.]*$/,oEm={q:!0,search_query:!0},jlK=String(ze);var Gn=new function(){var q=window.document;this.V=window;this.U=q}; g.qe("yt.ads_.signals_.getAdSignalsString",function(q){return ix(bO(q))});g.Kw();var iTG="XMLHttpRequest"in g.yV?function(){return new XMLHttpRequest}:null;var Hny="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.Tf(Hny);var ytU={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"},NVc="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.Tf(Hny)),b1f=!1,w4c=FL;g.Z(EF,$c);mk.prototype.then=function(q,a,w){return this.V?this.V.then(q,a,w):this.W===1&&q?(q=q.call(w,this.U))&&typeof q.then==="function"?q:AG(q):this.W===2&&a?(q=a.call(w,this.U))&&typeof q.then==="function"?q:Qb(q):this}; mk.prototype.getValue=function(){return this.U}; mk.prototype.$goog_Thenable=!0;var xn=!1;var X4=Ic||uO;var FnJ=/^([0-9\.]+):([0-9\.]+)$/;g.Z(bM,$c);bM.prototype.name="BiscottiError";g.Z(kt,$c);kt.prototype.name="BiscottiMissingError";var Vtm={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},OH=null;var a7K=g.sj(["data-"]),n8l={};var cM7=0,lM=g.NP?"webkit":uh?"moz":g.eL?"ms":g.Du?"o":"",paI=g.aB("ytDomDomGetNextId")||function(){return++cM7}; g.qe("ytDomDomGetNextId",paI);var fXl={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};dg.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; dg.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; dg.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var TV=g.yV.ytEventsEventsListeners||{};g.qe("ytEventsEventsListeners",TV);var p4m=g.yV.ytEventsEventsCounter||{count:0};g.qe("ytEventsEventsCounter",p4m);var o8G=hM(function(){var q=!1;try{var a=Object.defineProperty({},"passive",{get:function(){q=!0}}); window.addEventListener("test",null,a)}catch(w){}return q}),UAU=hM(function(){var q=!1; try{var a=Object.defineProperty({},"capture",{get:function(){q=!0}}); window.addEventListener("test",null,a)}catch(w){}return q});var JS;JS=window;g.Zj=JS.ytcsi&&JS.ytcsi.now?JS.ytcsi.now:JS.performance&&JS.performance.timing&&JS.performance.now&&JS.performance.timing.navigationStart?function(){return JS.performance.timing.navigationStart+JS.performance.now()}:function(){return(new Date).getTime()};g.TJ(Zn,g.c);Zn.prototype.J=function(q){q.V===void 0&&H1_(q);var a=q.V;q.U===void 0&&H1_(q);this.V=new g.Is(a,q.U)}; Zn.prototype.LU=function(){return this.V||new g.Is}; Zn.prototype.F9=function(){if(this.V){var q=(0,g.Zj)();if(this.Y!=0){var a=this.L,w=this.V,G=a.x-w.x;a=a.y-w.y;G=Math.sqrt(G*G+a*a)/(q-this.Y);this.U[this.W]=Math.abs((G-this.D)/this.D)>.5?1:0;for(w=a=0;w<4;w++)a+=this.U[w]||0;a>=3&&this.X();this.D=G}this.Y=q;this.L=this.V;this.W=(this.W+1)%4}}; Zn.prototype.qB=function(){g.Pr(this.S);g.sH(this.UK)};g.Z(EH,g.c);EH.prototype.C=function(q,a,w,G,k){w=g.tK((0,g.Ne)(w,G||this.yN));w={target:q,name:a,callback:w};var b;k&&o8G()&&(b={passive:!0});q.addEventListener(a,w.callback,b);this.X.push(w);return w}; EH.prototype.v5=function(q){for(var a=0;a=X.fd)||Q.V.version>=D||Q.V.objectStoreNames.contains(H)||L.push(H)}N=L;if(N.length===0){J.Gl(5);break}Y=Object.keys(w.options.Bs); P=e.objectStoreNames();if(w.Dw.options.version+1)throw d.close(),w.W=!1,B__(w,T);return J.return(d);case 8:throw a(), K instanceof Error&&!g.dF("ytidb_async_stack_killswitch")&&(K.stack=K.stack+"\n"+O.substring(O.indexOf("\n")+1)),KI(K,w.name,"",(F=w.options.version)!=null?F:-1);}})} function a(){w.V===G&&(w.V=void 0)} var w=this;if(!this.W)throw B__(this);if(this.V)return this.V;var G,k={blocking:function(b){b.close()}, closed:a,N49:a,upgrade:this.options.upgrade};return this.V=G=q()};var pI=new Hh("YtIdbMeta",{Bs:{databases:{fd:1}},upgrade:function(q,a){a(1)&&g.J2(q,"databases",{keyPath:"actualName"})}});var Iw,ow=new function(){}(new function(){});new g.Y8;g.Z(vh,Hh);vh.prototype.U=function(q,a,w){w=w===void 0?{}:w;return(this.options.shared?pvm:cDj)(q,a,Object.assign({},w))}; vh.prototype.delete=function(q){q=q===void 0?{}:q;return(this.options.shared?osm:Ubl)(this.name,q)};var zmy={},u0K=g.zA("ytGcfConfig",{Bs:(zmy.coldConfigStore={fd:1},zmy.hotConfigStore={fd:1},zmy),shared:!1,upgrade:function(q,a){a(1)&&(g.Bh(g.J2(q,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.Bh(g.J2(q,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.Z(Wh,g.c);Wh.prototype.qB=function(){for(var q=g.V(this.U),a=q.next();!a.done;a=q.next()){var w=this.V;a=w.indexOf(a.value);a>=0&&w.splice(a,1)}this.U.length=0;g.c.prototype.qB.call(this)};a5.prototype.ju=function(q){this.hotHashData=q;g.qe("yt.gcf.config.hotHashData",this.hotHashData||null)};var in6=typeof TextEncoder!=="undefined"?new TextEncoder:null,hTl=in6?function(q){return in6.encode(q)}:function(q){q=g.QN(q); for(var a=new Uint8Array(q.length),w=0;w=a?!1:!0}; g.C.AM=function(){var q=this;if(!QL(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.kD.MW("QUEUED",this.xW).then(function(a){a&&!q.PE(a,q.qf)?q.BF.gh(function(){return g.h(function(w){if(w.U==1)return a.id===void 0?w.Gl(2):g.n(w,q.kD.Dr(a.id,q.xW),2);q.AM();g.Jm(w)})}):q.fW.GA()&&q.xg()})};var LB;var POK={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135, mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28, nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42, assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225, liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73, visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88, spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153, vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136, mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167, kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387, transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189, ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258, ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221, accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245, musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270, yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296, notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478, tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340, iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361, mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380, mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400, clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420, mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16, mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443, cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464, startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489, keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515, adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525};var DP7={},RTU=g.zA("ServiceWorkerLogsDatabase",{Bs:(DP7.SWHealthLog={fd:1},DP7),shared:!0,upgrade:function(q,a){a(1)&&g.Bh(g.J2(q,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var nB={},Gel=0;var MY;SC.prototype.requestComplete=function(q,a){a&&(this.U=!0);q=this.removeParams(q);this.V.get(q)||this.V.set(q,a)}; SC.prototype.isEndpointCFR=function(q){q=this.removeParams(q);return(q=this.V.get(q))?!1:q===!1&&this.U?!0:null}; SC.prototype.removeParams=function(q){return q.split("?")[0]}; SC.prototype.removeParams=SC.prototype.removeParams;SC.prototype.isEndpointCFR=SC.prototype.isEndpointCFR;SC.prototype.requestComplete=SC.prototype.requestComplete;SC.getInstance=fB;g.Z(H0,g.PO);g.C=H0.prototype;g.C.GA=function(){return this.V.GA()}; g.C.jX=function(q){this.V.V=q}; g.C.lQ=function(){var q=window.navigator.onLine;return q===void 0?!0:q}; g.C.jS=function(){this.U=!0}; g.C.listen=function(q,a){return this.V.listen(q,a)}; g.C.Ky=function(q){q=hD(this.V,q);q.then(function(a){g.dF("use_cfr_monitor")&&fB().requestComplete("generate_204",a)}); return q}; H0.prototype.sendNetworkCheckRequest=H0.prototype.Ky;H0.prototype.listen=H0.prototype.listen;H0.prototype.enableErrorFlushing=H0.prototype.jS;H0.prototype.getWindowStatus=H0.prototype.lQ;H0.prototype.networkStatusHint=H0.prototype.jX;H0.prototype.isNetworkAvailable=H0.prototype.GA;H0.getInstance=O_c;g.Z(g.c0,g.PO);g.c0.prototype.GA=function(){var q=g.aB("yt.networkStatusManager.instance.isNetworkAvailable");return q?q.bind(this.U)():!0}; g.c0.prototype.jX=function(q){var a=g.aB("yt.networkStatusManager.instance.networkStatusHint").bind(this.U);a&&a(q)}; g.c0.prototype.Ky=function(q){var a=this,w;return g.h(function(G){w=g.aB("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(a.U);return g.dF("skip_network_check_if_cfr")&&fB().isEndpointCFR("generate_204")?G.return(new Promise(function(k){var b;a.jX(((b=window.navigator)==null?void 0:b.onLine)||!0);k(a.GA())})):w?G.return(w(q)):G.return(!0)})};var pB;g.Z(Ub,Aa);Ub.prototype.writeThenSend=function(q,a){a||(a={});a=jC(q,a);g.j2()||(this.V=!1);Aa.prototype.writeThenSend.call(this,q,a)}; Ub.prototype.sendThenWrite=function(q,a,w){a||(a={});a=jC(q,a);g.j2()||(this.V=!1);Aa.prototype.sendThenWrite.call(this,q,a,w)}; Ub.prototype.sendAndWrite=function(q,a){a||(a={});a=jC(q,a);g.j2()||(this.V=!1);Aa.prototype.sendAndWrite.call(this,q,a)}; Ub.prototype.awaitInitialization=function(){return this.W.promise};var Pxl=g.yV.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.qe("ytNetworklessLoggingInitializationOptions",Pxl);g.o5.prototype.isReady=function(){!this.config_&&lWK()&&(this.config_=g.GZ());return!!this.config_};var Rmx,ta,zZ;Rmx=g.yV.ytPubsubPubsubInstance||new g.E8;ta=g.yV.ytPubsubPubsubSubscribedKeys||{};zZ=g.yV.ytPubsubPubsubTopicToKeys||{};g.v0=g.yV.ytPubsubPubsubIsSynchronous||{};g.E8.prototype.subscribe=g.E8.prototype.subscribe;g.E8.prototype.unsubscribeByKey=g.E8.prototype.A4;g.E8.prototype.publish=g.E8.prototype.publish;g.E8.prototype.clear=g.E8.prototype.clear;g.qe("ytPubsubPubsubInstance",Rmx);g.qe("ytPubsubPubsubTopicToKeys",zZ);g.qe("ytPubsubPubsubIsSynchronous",g.v0); g.qe("ytPubsubPubsubSubscribedKeys",ta);var FjV={};g.Z(lz,g.c);lz.prototype.append=function(q){if(!this.U)throw Error("This does not support the append operation");q=q.cq();this.cq().appendChild(q)}; g.Z(eb,lz);eb.prototype.cq=function(){return this.V};g.Z(N9,g.c);N9.prototype.onTouchStart=function(q){this.X=!0;this.U=q.touches.length;this.V.isActive()&&(this.V.stop(),this.D=!0);q=q.touches;this.L=Egf(this,q)||q.length!=1;var a=q.item(0);this.L||!a?this.J=this.S=Infinity:(this.S=a.clientX,this.J=a.clientY);for(a=this.W.length=0;a=0)}if(a||q&&Math.pow(q.clientX-this.S,2)+Math.pow(q.clientY-this.J,2)>25)this.Y=!0}; N9.prototype.onTouchEnd=function(q){var a=q.changedTouches;a&&this.X&&this.U==1&&!this.Y&&!this.D&&!this.L&&Egf(this,a)&&(this.F9=q,this.V.start());this.U=q.touches.length;this.U===0&&(this.Y=this.X=!1,this.W.length=0);this.D=!1};var Y5=Date.now().toString();var $5={};var V9=Symbol("injectionDeps");FF.prototype.toString=function(){return"InjectionToken("+this.name+")"}; mXf.prototype.resolve=function(q){return q instanceof C5?JN(this,q.key,[],!0):JN(this,q,[])};var m2;var AN=window;var rW=g.dF("web_enable_lifecycle_monitoring")&&x5()!==0,ngU=g.dF("web_enable_lifecycle_monitoring");Ljy.prototype.cancel=function(){for(var q=g.V(this.V),a=q.next();!a.done;a=q.next())a=a.value,a.jobId===void 0||a.R7||this.scheduler.FS(a.jobId),a.R7=!0;this.U.resolve()};g.C=n5.prototype;g.C.install=function(q){this.plugins.push(q);return this}; g.C.uninstall=function(){var q=this;g.XU.apply(0,arguments).forEach(function(a){a=q.plugins.indexOf(a);a>-1&&q.plugins.splice(a,1)})}; g.C.transition=function(q,a){var w=this;rW&&AKc(this.state);var G=this.transitions.find(function(b){return Array.isArray(b.from)?b.from.find(function(O){return O===w.state&&b.to===q}):b.from===w.state&&b.to===q}); if(G){this.U&&(B0V(this.U),this.U=void 0);Mu_(this,q,a);this.state=q;rW&&L5(this.state);G=G.action.bind(this);var k=this.plugins.filter(function(b){return b[q]}).map(function(b){return b[q]}); G(rKc(this,k),a)}else throw Error("no transition specified from "+this.state+" to "+q);}; g.C.khQ=function(q){var a=g.XU.apply(1,arguments);g.v5();for(var w=g.V(q),G=w.next(),k={};!G.done;k={jd:void 0},G=w.next())k.jd=G.value,gsl(function(b){return function(){hN(b.jd.name);f5(function(){return b.jd.callback.apply(b.jd,g.Tf(a))}); Sb(b.jd.name)}}(k))}; g.C.gW7=function(q){var a=g.XU.apply(1,arguments),w,G,k,b;return g.h(function(O){O.U==1&&(g.v5(),w=g.V(q),G=w.next(),k={});if(O.U!=3){if(G.done)return O.Gl(0);k.Ix=G.value;k.Co=void 0;b=function(e){return function(){hN(e.Ix.name);var N=f5(function(){return e.Ix.callback.apply(e.Ix,g.Tf(a))}); Hc(N)?e.Co=g.dF("web_lifecycle_error_handling_killswitch")?N.then(function(){Sb(e.Ix.name)}):N.then(function(){Sb(e.Ix.name)},function(Y){xX_(Y); Sb(e.Ix.name)}):Sb(e.Ix.name)}}(k); gsl(b);return k.Co?g.n(O,k.Co,3):O.Gl(3)}k={Ix:void 0,Co:void 0};G=w.next();return O.Gl(2)})}; g.C.Kj=function(q){var a=g.XU.apply(1,arguments),w=this,G=q.map(function(k){return{QW:function(){hN(k.name);f5(function(){return k.callback.apply(k,g.Tf(a))}); Sb(k.name)}, priority:M9(w,k)}}); G.length&&(this.U=new Ljy(G))}; g.bG.Object.defineProperties(n5.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var cp;g.Z(Hp,n5);Hp.prototype.D=function(q,a){var w=this;this.V=g.uM(0,function(){w.currentState==="application_navigating"&&w.transition("none")},5E3); q(a==null?void 0:a.event)}; Hp.prototype.L=function(q,a){this.V&&(g.fJ.FS(this.V),this.V=null);q(a==null?void 0:a.event)};var eR=[];g.qe("yt.logging.transport.getScrapedGelPayloads",function(){return eR});p5.prototype.storePayload=function(q,a){q=U9(q);this.store[q]?this.store[q].push(a):(this.U={},this.store[q]=[a]);this.V++;g.dF("more_accurate_gel_parser")&&(a=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(a));return q}; p5.prototype.smartExtractMatchingEntries=function(q){if(!q.keys.length)return[];for(var a=jb(this,q.keys.splice(0,1)[0]),w=[],G=0;G=0){G=!1;break a}}G=!0}G&&(a=BC(a))&&this.Im(a)}}; g.C.Ot=function(q){return q}; g.C.onTouchStart=function(q){this.y7.onTouchStart(q)}; g.C.onTouchMove=function(q){this.y7.onTouchMove(q)}; g.C.onTouchEnd=function(q){if(this.y7)this.y7.onTouchEnd(q)}; g.C.Im=function(q){this.layoutId?this.PT.executeCommand(q,this.layoutId):(q=new g.UH("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.mQ(q))}; g.C.createServerVe=function(q,a){this.api.createServerVe(q,this);this.api.setTrackingParams(q,a)}; g.C.logVisibility=function(q,a){this.api.hasVe(q)&&this.api.logVisibility(q,a,this.interactionLoggingClientData)}; g.C.qB=function(){this.clear(null);this.v5(this.IW);for(var q=g.V(this.jt),a=q.next();!a.done;a=q.next())this.v5(a.value);g.Gs.prototype.qB.call(this)};g.Z(Q0,kp); Q0.prototype.init=function(q,a,w){kp.prototype.init.call(this,q,a,w);this.V=a;if(a.text==null&&a.icon==null)g.Qa(Error("ButtonRenderer did not have text or an icon set."));else{switch(a.style||null){case "STYLE_UNKNOWN":q="ytp-ad-button-link";break;default:q=null}q!=null&&g.gU(this.element,q);a.text!=null&&(q=g.OE(a.text),g.rn(q)||(this.element.setAttribute("aria-label",q),this.W=new g.Gs({G:"span",N:"ytp-ad-button-text",ue:q}),g.p(this,this.W),this.W.HT(this.element)));a.accessibilityData&&a.accessibilityData.accessibilityData&& a.accessibilityData.accessibilityData.label&&!g.rn(a.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",a.accessibilityData.accessibilityData.label);a.icon!=null&&(a=mx(a.icon,this.Y),a!=null&&(this.U=new g.Gs({G:"span",N:"ytp-ad-button-icon",K:[a]}),g.p(this,this.U)),this.L?Fr(this.element,this.U.element,0):this.U.HT(this.element))}}; Q0.prototype.clear=function(){this.hide()}; Q0.prototype.onClick=function(q){kp.prototype.onClick.call(this,q);q=g.V(SHm(this));for(var a=q.next();!a.done;a=q.next())a=a.value,this.layoutId?this.PT.executeCommand(a,this.layoutId):g.mQ(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.Z(Ay,g.c);Ay.prototype.qB=function(){this.U&&g.sH(this.U);this.V.clear();xp=null;g.c.prototype.qB.call(this)}; Ay.prototype.register=function(q,a){a&&this.V.set(q,a)}; var xp=null;g.Z(rC,kp); rC.prototype.init=function(q,a,w){kp.prototype.init.call(this,q,a,w);q=a.hoverText||null;a=a.button&&g.I(a.button,g.e9)||null;a==null?g.mQ(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new Q0(this.api,this.layoutId,this.interactionLoggingClientData,this.PT,void 0,void 0,void 0,void 0,this.W),g.p(this,this.button),this.button.init(D1("button"),a,this.macros),q&&this.button.element.setAttribute("aria-label",g.OE(q)),this.button.HT(this.element),this.J&&!g.qG(this.button.element, "ytp-ad-clickable")&&g.gU(this.button.element,"ytp-ad-clickable"),this.W&&g.gU(this.button.element,"ytp-ad-hover-text-button--clean-player"),q&&(this.U=new g.Gs({G:"div",N:"ytp-ad-hover-text-container"}),this.L&&(a=new g.Gs({G:"div",N:"ytp-ad-hover-text-callout"}),a.HT(this.U.element),g.p(this,a)),g.p(this,this.U),this.U.HT(this.element),a=LP(q),Fr(this.U.element,a,0)),this.show())}; rC.prototype.hide=function(){this.button&&this.button.hide();this.U&&this.U.hide();kp.prototype.hide.call(this)}; rC.prototype.show=function(){this.button&&this.button.show();kp.prototype.show.call(this)};g.Z(Ml,kp); Ml.prototype.init=function(q,a,w){kp.prototype.init.call(this,q,a,w);w=(q=a.thumbnail)&&nP(q)||"";g.rn(w)?Math.random()<.01&&g.Qa(Error("Found AdImage without valid image URL")):(this.V?g.IR(this.element,"backgroundImage","url("+w+")"):eU(this.element,{src:w}),eU(this.element,{alt:q&&q.accessibility&&q.accessibility.label||""}),a&&a.adRendererCommands&&a.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; Ml.prototype.clear=function(){this.hide()};g.Z(hy,kp);g.C=hy.prototype;g.C.hide=function(){kp.prototype.hide.call(this);this.W&&this.W.focus()}; g.C.show=function(){this.W=document.activeElement;kp.prototype.show.call(this);this.Y.focus()}; g.C.init=function(q,a,w){kp.prototype.init.call(this,q,a,w);this.U=a;a.dialogMessages||a.title!=null?a.confirmLabel==null?g.mQ(Error("ConfirmDialogRenderer.confirmLabel was not set.")):a.cancelLabel==null?g.mQ(Error("ConfirmDialogRenderer.cancelLabel was not set.")):p5j(this,a):g.mQ(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.C.clear=function(){g.JE(this.V);this.hide()}; g.C.sO=function(){this.hide()}; g.C.RD=function(){var q=this.U.cancelEndpoint;q&&(this.layoutId?this.PT.executeCommand(q,this.layoutId):g.mQ(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.C.mY=function(){var q=this.U.confirmNavigationEndpoint||this.U.confirmEndpoint;q&&(this.layoutId?this.PT.executeCommand(q,this.layoutId):g.mQ(Error("Missing layoutId for confirm dialog.")));this.hide()};g.Z(SV,kp);g.C=SV.prototype; g.C.init=function(q,a,w){kp.prototype.init.call(this,q,a,w);this.W=a;if(a.defaultText==null&&a.defaultIcon==null)g.mQ(Error("ToggleButtonRenderer must have either text or icon set."));else if(a.defaultIcon==null&&a.toggledIcon!=null)g.mQ(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(a.style){switch(a.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":q="ytp-ad-toggle-button-default-style";break;default:q=null}q!=null&&g.gU(this.Y,q)}q={};a.defaultText? (w=g.OE(a.defaultText),g.rn(w)||(q.buttonText=w,this.api.B().experiments.Zh("a11y_h5_associate_survey_question")||this.V.setAttribute("aria-label",w),this.api.B().experiments.Zh("fix_h5_toggle_button_a11y")&&this.U.setAttribute("aria-label",w))):g.aT(this.f7,!1);a.defaultTooltip&&(q.tooltipText=a.defaultTooltip,this.V.hasAttribute("aria-label")||this.U.setAttribute("aria-label",a.defaultTooltip));a.defaultIcon?(w=mx(a.defaultIcon),this.updateValue("untoggledIconTemplateSpec",w),a.toggledIcon?(this.UK= !0,w=mx(a.toggledIcon),this.updateValue("toggledIconTemplateSpec",w)):(g.aT(this.J,!0),g.aT(this.L,!1)),g.aT(this.V,!1)):g.aT(this.U,!1);g.KH(q)||this.update(q);a.isToggled&&(g.gU(this.Y,"ytp-ad-toggle-button-toggled"),this.toggleButton(a.isToggled));fP(this);this.C(this.element,"change",this.EX);this.show()}}; g.C.onClick=function(q){this.jt.length>0&&(this.toggleButton(!this.isToggled()),this.EX());kp.prototype.onClick.call(this,q)}; g.C.EX=function(){g.kX(this.Y,"ytp-ad-toggle-button-toggled",this.isToggled());for(var q=g.V(URJ(this,this.isToggled())),a=q.next();!a.done;a=q.next())a=a.value,this.layoutId?this.PT.executeCommand(a,this.layoutId):g.mQ(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);fP(this)}; g.C.clear=function(){this.hide()}; g.C.toggleButton=function(q){g.kX(this.Y,"ytp-ad-toggle-button-toggled",q);this.V.checked=q;fP(this)}; g.C.isToggled=function(){return this.V.checked};g.Z(He,EH);He.prototype.D=function(q){if(Array.isArray(q)){q=g.V(q);for(var a=q.next();!a.done;a=q.next())a=a.value,a instanceof X5U&&this.W(a)}};g.Z(ce,kp);g.C=ce.prototype;g.C.init=function(q,a,w){kp.prototype.init.call(this,q,a,w);a.reasons?a.confirmLabel==null?g.mQ(Error("AdFeedbackRenderer.confirmLabel was not set.")):(a.cancelLabel==null&&g.Qa(Error("AdFeedbackRenderer.cancelLabel was not set.")),a.title==null&&g.Qa(Error("AdFeedbackRenderer.title was not set.")),utl(this,a)):g.mQ(Error("AdFeedbackRenderer.reasons were not set."))}; g.C.clear=function(){Ft(this.L);Ft(this.J);this.Y.length=0;this.hide()}; g.C.hide=function(){this.V&&this.V.hide();this.U&&this.U.hide();kp.prototype.hide.call(this);this.W&&this.W.focus()}; g.C.show=function(){this.V&&this.V.show();this.U&&this.U.show();this.W=document.activeElement;kp.prototype.show.call(this);this.L.focus()}; g.C.aZ=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.C.Ewl=function(){this.hide()}; pP.prototype.cq=function(){return this.V.element}; pP.prototype.getCommand=function(){return this.U}; pP.prototype.isChecked=function(){return this.W.checked};g.Z(UE,hy);UE.prototype.sO=function(q){hy.prototype.sO.call(this,q);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; UE.prototype.RD=function(q){hy.prototype.RD.call(this,q);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; UE.prototype.mY=function(q){hy.prototype.mY.call(this,q);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.Z(Xa,kp);g.C=Xa.prototype; g.C.init=function(q,a,w){kp.prototype.init.call(this,q,a,w);this.L=a;if(a.dialogMessage==null&&a.title==null)g.mQ(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{a.confirmLabel==null&&g.Qa(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(q=a.closeOverlayRenderer&&g.I(a.closeOverlayRenderer,g.e9)||null)this.V=new Q0(this.api,this.layoutId,this.interactionLoggingClientData,this.PT,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), g.p(this,this.V),this.V.init(D1("button"),q,this.macros),this.V.HT(this.element);a.title&&(q=g.OE(a.title),this.updateValue("title",q));if(a.adReasons)for(q=a.adReasons,w=0;w=this.L7?(this.UK.hide(),this.le=!0,this.publish("i")):this.W&&this.W.isTemplated()&&(q=Math.max(0,Math.ceil((this.L7-q)/1E3)),q!=this.h2&&(Ix(this.W,{TIME_REMAINING:String(q)}),this.h2=q)))}};g.Z(DJ,uv);g.C=DJ.prototype; g.C.init=function(q,a,w){uv.prototype.init.call(this,q,a,w);if(a.image&&a.image.thumbnail)if(a.headline)if(a.description)if((q=a.actionButton&&g.I(a.actionButton,g.e9))&&q.navigationEndpoint){var G=this.api.getVideoData(2);if(G!=null)if(a.image&&a.image.thumbnail){var k=a.image.thumbnail.thumbnails;k!=null&&k.length>0&&g.rn(g.nS(k[0].url))&&(k[0].url=G.profilePicture)}else g.Qa(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.W.init(D1("ad-image"),a.image,w);this.L.init(D1("ad-text"), a.headline,w);this.Y.init(D1("ad-text"),a.description,w);this.U.init(D1("button"),q,w);w=X0(this.U.element);U5(this.U.element,w+" This link opens in new tab");this.UK=q.navigationEndpoint;this.api.jg()||this.show();this.api.addEventListener("playerUnderlayVisibilityChange",this.T_.bind(this));this.f7=a.startMs||0;ty(this)}else g.mQ(Error("FlyoutCtaRenderer has no valid action button."));else g.mQ(Error("FlyoutCtaRenderer has no description AdText."));else g.mQ(Error("FlyoutCtaRenderer has no headline AdText.")); else g.Qa(Error("FlyoutCtaRenderer has no image."))}; g.C.onClick=function(q){uv.prototype.onClick.call(this,q);this.api.pauseVideo();!g.ZM(this.U.element,q.target)&&this.UK&&(this.layoutId?this.PT.executeCommand(this.UK,this.layoutId):g.mQ(Error("Missing layoutId for flyout cta.")))}; g.C.lr=function(){if(this.V){var q=this.V.getProgressState();(q&&q.current||this.L7)&&1E3*q.current>=this.f7&&(ve(this),g.wU(this.element,"ytp-flyout-cta-inactive"),this.U.element.removeAttribute("tabIndex"))}}; g.C.hZ=function(){this.clear()}; g.C.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.T_.bind(this))}; g.C.show=function(){this.U&&this.U.show();uv.prototype.show.call(this)}; g.C.hide=function(){this.U&&this.U.hide();uv.prototype.hide.call(this)}; g.C.T_=function(q){q=="hidden"?this.show():this.hide()};g.Z(Rx,kp);g.C=Rx.prototype; g.C.init=function(q,a,w){kp.prototype.init.call(this,q,a,w);this.V=a;if(this.V.rectangle)for(q=this.V.likeButton&&g.I(this.V.likeButton,EJ),a=this.V.dislikeButton&&g.I(this.V.dislikeButton,EJ),this.W.init(D1("toggle-button"),q,w),this.U.init(D1("toggle-button"),a,w),this.C(this.element,"change",this.XR),this.Y.show(100),this.show(),w=g.V(this.V&&this.V.impressionCommands||[]),q=w.next();!q.done;q=w.next())q=q.value,this.layoutId?this.PT.executeCommand(q,this.layoutId):g.mQ(Error("Missing layoutId for instream user sentiment."))}; g.C.clear=function(){this.hide()}; g.C.hide=function(){this.W.hide();this.U.hide();kp.prototype.hide.call(this)}; g.C.show=function(){this.W.show();this.U.show();kp.prototype.show.call(this)}; g.C.XR=function(){mo_(this.element,"ytp-ad-instream-user-sentiment-selected");this.V.postMessageAction&&this.api.zl("onYtShowToast",this.V.postMessageAction);this.Y.hide()}; g.C.onClick=function(q){this.jt.length>0&&this.XR();kp.prototype.onClick.call(this,q)};g.Z(y0,g.c);g.C=y0.prototype;g.C.qB=function(){this.reset();g.c.prototype.qB.call(this)}; g.C.reset=function(){g.JE(this.Y);this.L=!1;this.V&&this.V.stop();this.D.stop();this.W&&(this.W=!1,this.X.play())}; g.C.start=function(){this.reset();this.Y.C(this.U,"mouseover",this.l$,this);this.Y.C(this.U,"mouseout",this.nw,this);this.F9&&(this.Y.C(this.U,"focusin",this.l$,this),this.Y.C(this.U,"focusout",this.nw,this));this.V?this.V.start():(this.L=this.W=!0,g.IR(this.U,{opacity:this.J}))}; g.C.l$=function(){this.W&&(this.W=!1,this.X.play());this.D.stop();this.V&&this.V.stop()}; g.C.nw=function(){this.L?this.D.start():this.V&&this.V.start()}; g.C.zE=function(){this.W||(this.W=!0,this.S.play(),this.L=!0)};var why=[new qk("b.f_",!1,0),new qk("j.s_",!1,2),new qk("r.s_",!1,4),new qk("e.h_",!1,6),new qk("i.s_",!0,8),new qk("s.t_",!1,10),new qk("p.h_",!1,12),new qk("s.i_",!1,14),new qk("f.i_",!1,16),new qk("a.b_",!1,18),new qk("a.o_",!1),new qk("g.o_",!1,22),new qk("p.i_",!1,24),new qk("p.m_",!1),new qk("n.k_",!0,20),new qk("i.f_",!1),new qk("a.s_",!0),new qk("m.c_",!1),new qk("n.h_",!1,26),new qk("o.p_",!1),new qk("m.p_",!0,28),new qk("o.a_",!1),new qk("d.p_",!1),new qk("e.i_",!1)].reduce(function(q,a){q[a.U]= a;return q},{});g.Z(lc,uv);g.C=lc.prototype; g.C.init=function(q,a,w){uv.prototype.init.call(this,q,a,w);this.UK=a;(this.f7=kAc(this))&&g.Qa(Error("hasAdControlInClickCommands_ is true."));if(!a||g.KH(a))g.mQ(Error("SkipButtonRenderer was not specified or empty."));else if(!a.message||g.KH(a.message))g.mQ(Error("SkipButtonRenderer.message was not specified or empty."));else if(q=this.L?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"},a=mx(q),a==null?g.mQ(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+q.iconType+".")): (this.api.B().T("disable_touch_events_on_skip_button")&&(a.Z=Object.assign({},a.Z,{"aria-hidden":"true",kkK:"false"})),this.W=new g.Gs({G:"button",vT:[this.L?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],K:[{G:"span",N:this.L?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",K:[a]}]}),g.p(this,this.W),this.W.HT(this.Y.element),this.U=new ox(this.api,this.layoutId,this.interactionLoggingClientData,this.PT,"ytp-ad-skip-button-text"),this.L&&this.U.element.classList.add("ytp-ad-skip-button-text-centered"), this.U.init(D1("ad-text"),this.UK.message,w),g.p(this,this.U),Fr(this.W.element,this.U.element,0)),!this.api.B().T("disable_touch_events_on_skip_button")){var G=G===void 0?null:G;w=this.api.B();!(this.jt.length>0)&&w.U&&(Wm?0:"ontouchstart"in document.documentElement&&(RIN()||lF()))&&(this.v5(this.IW),G&&this.v5(G),this.jt=[this.C(this.element,"touchstart",this.onTouchStart,this),this.C(this.element,"touchmove",this.onTouchMove,this),this.C(this.element,"touchend",this.onTouchEnd,this)])}}; g.C.clear=function(){this.L7.reset();this.hide()}; g.C.hide=function(){this.Y.hide();this.U&&this.U.hide();ve(this);uv.prototype.hide.call(this)}; g.C.onClick=function(q){if(this.W!=null){if(q){var a=q||window.event;a.returnValue=!1;a.preventDefault&&a.preventDefault()}var w;if(g7G(q,{contentCpn:((w=this.api.getVideoData(1))==null?void 0:w.clientPlaybackNonce)||""})===0)this.api.zl("onAbnormalityDetected");else if(uv.prototype.onClick.call(this,q),this.publish("j"),this.api.zl("onAdSkip"),this.le||!this.f7)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; g.C.Ot=function(q){if(!this.le)return this.f7&&Gj("SkipButton click commands not pruned while ALC exist"),q;var a,w=(a=g.I(q,g.eg))==null?void 0:a.commands;if(!w)return q;q=[];for(a=0;a=this.L&&bIy(this,!0)};g.Z(Ym,Q0);Ym.prototype.init=function(q,a,w){Q0.prototype.init.call(this,q,a,w);q=!1;a.text!=null&&(q=g.OE(a.text),q=!g.rn(q));q?a.navigationEndpoint==null?g.Qa(Error("No visit advertiser clickthrough provided in renderer,")):a.style!=="STYLE_UNKNOWN"?g.Qa(Error("Button style was not a link-style type in renderer,")):this.show():g.Qa(Error("No visit advertiser text was present in the renderer."))};g.Z(PA,kp); PA.prototype.init=function(q,a,w){kp.prototype.init.call(this,q,a,w);q=a.text;g.rn(bv(q))?g.Qa(Error("SimpleAdBadgeRenderer has invalid or empty text")):(q&&q.text&&(a=q.text,this.W&&!this.U&&(a=this.api.B(),a=q.text+" "+(a&&a.U?"\u2022":"\u00b7")),a={text:a,isTemplated:q.isTemplated},q.style&&(a.style=q.style),q.targetId&&(a.targetId=q.targetId),q=new ox(this.api,this.layoutId,this.interactionLoggingClientData,this.PT),q.init(D1("simple-ad-badge"),a,w),q.HT(this.element),g.p(this,q)),this.show())}; PA.prototype.clear=function(){this.hide()};g.Z(Kj,R9);g.Z(dQ,g.ya);g.C=dQ.prototype;g.C.zt=function(){return this.durationMs}; g.C.stop=function(){this.V&&this.Ia.v5(this.V)}; g.C.EQ=function(q){this.U={seekableStart:0,seekableEnd:this.durationMs/1E3,current:q.current};this.publish("h")}; g.C.getProgressState=function(){return this.U}; g.C.w7=function(q){g.Ox(q,2)&&this.publish("g")};g.Z(Tj,g.ya);g.C=Tj.prototype;g.C.zt=function(){return this.durationMs}; g.C.start=function(){this.V||(this.V=!0,this.timer.start())}; g.C.stop=function(){this.V&&(this.V=!1,this.timer.stop())}; g.C.EQ=function(){this.Uj+=100;var q=!1;this.Uj>this.durationMs&&(this.Uj=this.durationMs,this.timer.stop(),q=!0);this.U={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.Uj/1E3};this.publish("h");q&&this.publish("g")}; g.C.getProgressState=function(){return this.U};g.Z(F9,uv);g.C=F9.prototype;g.C.init=function(q,a,w){uv.prototype.init.call(this,q,a,w);var G;if(a==null?0:(G=a.templatedCountdown)==null?0:G.templatedAdText){q=a.templatedCountdown.templatedAdText;if(!q.isTemplated){g.Qa(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.U=new ox(this.api,this.layoutId,this.interactionLoggingClientData,this.PT);this.U.init(D1("ad-text"),q,{});this.U.HT(this.element);g.p(this,this.U)}this.show()}; g.C.clear=function(){this.hide()}; g.C.hide=function(){ve(this);uv.prototype.hide.call(this)}; g.C.hZ=function(){this.hide()}; g.C.lr=function(){if(this.V!=null){var q=this.V.getProgressState();if(q!=null&&q.current!=null&&this.U){var a=this.V instanceof dQ?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:q.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.V instanceof Tj?q.seekableEnd:this.api.getDuration(2,!1);q=q.current;var w,G,k=((w=this.api.getVideoData())==null?0:(G=w.fT)==null?0:G.call(w))?Math.max(a-q,0):a-q;Ix(this.U,{FORMATTED_AD_DURATION_REMAINING:String(g.$m(k)), TIME_REMAINING:String(Math.ceil(k))})}}}; g.C.show=function(){ty(this);uv.prototype.show.call(this)};g.Z(Cj,ox);Cj.prototype.onClick=function(q){ox.prototype.onClick.call(this,q);this.api.onAdUxClicked(this.componentType)};g.Z(Ex,kp);Ex.prototype.init=function(q,a){kp.prototype.init.call(this,q,a,{});if(q=a.content){g.EN(this.element,q);var w,G;a=((w=a.interaction)==null?void 0:(G=w.accessibility)==null?void 0:G.label)||q;this.element.setAttribute("aria-label",a)}else g.mQ(Error("AdSimpleAttributedString does not have text content"))}; Ex.prototype.clear=function(){this.hide()}; Ex.prototype.onClick=function(q){kp.prototype.onClick.call(this,q)};g.Z(Vc,kp); Vc.prototype.init=function(q,a){kp.prototype.init.call(this,q,a,{});(q=a.label)&&q.content&&!g.rn(q.content)?(this.adBadgeText.init(D1("ad-simple-attributed-string"),new ZR(q)),(a=a.adPodIndex)&&a.content&&!g.rn(a.content)&&(this.V=new Ex(this.api,this.layoutId,this.interactionLoggingClientData,this.PT),this.V.HT(this.element),g.p(this,this.V),this.V.element.classList.add("ytp-ad-badge__pod-index"),this.V.init(D1("ad-simple-attributed-string"),new ZR(a))),this.element.classList.add(this.U?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.mQ(Error("No label is returned in AdBadgeViewModel."))}; Vc.prototype.show=function(){this.adBadgeText.show();var q;(q=this.V)==null||q.show();kp.prototype.show.call(this)}; Vc.prototype.hide=function(){this.adBadgeText.hide();var q;(q=this.V)==null||q.hide();kp.prototype.hide.call(this)};g.Z(JI,kp);JI.prototype.init=function(q,a){kp.prototype.init.call(this,q,a,{});(q=a.adPodIndex)&&q.content&&!g.rn(q.content)&&(this.V=new Ex(this.api,this.layoutId,this.interactionLoggingClientData,this.PT),this.V.HT(this.element),g.p(this,this.V),this.V.init(D1("ad-simple-attributed-string"),new ZR(q)),a.visibilityCondition==="AD_POD_INDEX_VISIBILITY_CONDITION_AUTOHIDE"&&this.element.classList.add("ytp-ad-pod-index--autohide"));this.element.classList.add("ytp-ad-pod-index--stark");this.show()}; JI.prototype.show=function(){var q;(q=this.V)==null||q.show();kp.prototype.show.call(this)}; JI.prototype.hide=function(){var q;(q=this.V)==null||q.hide();kp.prototype.hide.call(this)};g.Z(mz,kp); mz.prototype.init=function(q,a){kp.prototype.init.call(this,q,a,{});if(a!=null&&a.text){var w;if(((w=a.text)==null?0:w.content)&&!g.rn(a.text.content)){this.V=new g.Gs({G:"div",N:"ytp-ad-disclosure-banner__text",ue:a.text.content});g.p(this,this.V);this.V.HT(this.element);var G,k;q=((G=a.interaction)==null?void 0:(k=G.accessibility)==null?void 0:k.label)||a.text.content;this.element.setAttribute("aria-label",q);var b;if((b=a.interaction)==null?0:b.onTap)this.U=new g.Gs({G:"div",N:"ytp-ad-disclosure-banner__chevron",K:[g.Yp()]}), g.p(this,this.U),this.U.HT(this.element),this.api.B().T("enable_ad_disclosure_banner_a11y_fix")&&(cv(this.element),this.element.setAttribute("tabindex","0"));this.show()}}else g.mQ(Error("No banner text found in AdDisclosureBanner."))}; mz.prototype.clear=function(){this.hide()};g.Z(xm,g.Gs);xm.prototype.EQ=function(){var q=this.U.getProgressState(),a=q.seekableEnd;this.api.getPresentingPlayerType()===2&&(a=this.W?this.W/1E3:q.seekableEnd);this.progressBar.style.width=AI(new Qc(q.seekableStart,a),q.current,0)*100+"%"}; xm.prototype.onStateChange=function(){g.b0(this.api.B())||(this.api.getPresentingPlayerType()===2?this.V===-1&&(this.show(),this.V=this.U.subscribe("h",this.EQ,this),this.EQ()):this.V!==-1&&(this.hide(),this.U.A4(this.V),this.V=-1))};g.Z(Lj,kp); Lj.prototype.init=function(q,a,w,G){kp.prototype.init.call(this,q,a,w);if(a.skipOrPreviewRenderer){if(q=g.I(a.skipOrPreviewRenderer,h9))w=new Nk(this.api,this.layoutId,this.interactionLoggingClientData,this.PT,this.U,this.J),w.HT(this.Tl),w.init(D1("skip-button"),q,this.macros),g.p(this,w);if(q=g.I(a.skipOrPreviewRenderer,h9))var k=q.skipOffsetMilliseconds}a.brandInteractionRenderer&&(q=a.brandInteractionRenderer.brandInteractionRenderer,w=new Rx(this.api,this.layoutId,this.interactionLoggingClientData,this.PT), w.HT(this.f7),w.init(D1("instream-user-sentiment"),q,this.macros),g.p(this,w));if(q=g.I(a,SX6))if(q=g.I(q,SX6))w=new DJ(this.api,this.layoutId,this.interactionLoggingClientData,this.PT,this.U,!!a.showWithoutLinkedMediaLayout),g.p(this,w),w.HT(this.L),w.init(D1("flyout-cta"),q,this.macros);G=G&&G.videoAdDurationSeconds;a.adBadgeRenderer&&(w=a.adBadgeRenderer,q=g.I(w,I8),q!=null?(w=new Vc(this.api,this.layoutId,this.interactionLoggingClientData,this.PT,!1),g.p(this,w),w.HT(this.V),w.init(D1("ad-badge"), q,this.macros),this.W=w.element):(q=w.simpleAdBadgeRenderer,q==null&&(q={text:{text:"Anuncio",isTemplated:!1}}),w=new PA(this.api,this.layoutId,this.interactionLoggingClientData,this.PT,!0),g.p(this,w),w.HT(this.V),w.init(D1("simple-ad-badge"),q,this.macros)));a.adPodIndex&&(q=g.I(a.adPodIndex,u1y),q!=null&&(w=new JI(this.api,this.layoutId,this.interactionLoggingClientData,this.PT),g.p(this,w),w.HT(this.V),w.init(D1("ad-pod-index"),q)));a.adDurationRemaining&&!a.showWithoutLinkedMediaLayout&&(q=a.adDurationRemaining.adDurationRemainingRenderer, q==null&&(q={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),G=new F9(this.api,this.layoutId,this.interactionLoggingClientData,this.PT,this.U,G,!1),g.p(this,G),G.HT(this.V),G.init(D1("ad-duration-remaining"),q,this.macros));a.adInfoRenderer&&(G=g.I(a.adInfoRenderer,Om))&&(q=new jV(this.api,this.layoutId,this.interactionLoggingClientData,this.PT,this.element,void 0,!1),g.p(this,q),this.W!==null?this.V.insertBefore(q.element,this.W.nextSibling):q.HT(this.V), q.init(D1("ad-info-hover-text-button"),G,this.macros));a.visitAdvertiserRenderer&&(q=g.I(a.visitAdvertiserRenderer,g.e9))&&(w=NwV(this)&&this.Y?this.Y:this.V)&&(G=new Ym(this.api,this.layoutId,this.interactionLoggingClientData,this.PT),g.p(this,G),G.HT(w),G.init(D1("visit-advertiser"),q,this.macros),cv(G.element),q=X0(G.element),U5(G.element,q+" This link opens in new tab"));!(G=this.api.B())||g.Gu(G)||g.yw(G)||G.controlsType!="3"&&!G.disableOrganicUi||(k=new xm(this.api,this.U,k,!1),k.HT(this.L7), g.p(this,k));a.adDisclosureBannerRenderer&&(a=g.I(a.adDisclosureBannerRenderer,Iv8))&&(k=new mz(this.api,this.layoutId,this.interactionLoggingClientData,this.PT),k.HT(this.UK),k.init(D1("ad-disclosure-banner"),a),g.p(this,k));this.api.B().T("enable_updated_html5_player_focus_style")&&g.gU(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()}; Lj.prototype.clear=function(){this.hide()};g.nj.prototype.flush=function(q,a){q=q===void 0?[]:q;a=a===void 0?!1:a;if(g.dF("enable_client_streamz_web")){q=g.V(q);for(var w=q.next();!w.done;w=q.next())w=W1m(w.value),this.V&&AY(w,ez,2,this.V),w={serializedIncrementBatch:g.AH(w.W())},g.aw("streamzIncremented",w,{sendIsolatedPayload:a})}}; g.Z(PYy,g.nj);var xNK=new Map;Mk.prototype.set=function(q,a,w){w=w!==void 0?Date.now()+w:void 0;this.V.set(q,a,w)}; Mk.prototype.get=function(q){return this.V.get(q)}; Mk.prototype.remove=function(q){this.V.remove(q)};var dFV=null;var cA=null,pj=null,Ux=null,CYm=null;g.qe("yt.www.ads.eventcache.getLastCompanionData",function(){return cA}); g.qe("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.qe("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return pj}); g.qe("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return Ux}); g.qe("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return CYm});var E7_=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);X9.prototype.handleResponse=function(q,a){if(!a)throw Error("request needs to be passed into ConsistencyService");var w,G;a=((w=a.F1.context)==null?void 0:(G=w.request)==null?void 0:G.consistencyTokenJars)||[];var k;(q=(k=q.responseContext)==null?void 0:k.consistencyTokenJar)&&this.replace(a,q)}; X9.prototype.replace=function(q,a){q=g.V(q);for(var w=q.next();!w.done;w=q.next())delete this.V[w.value.encryptedTokenJarContents];J2j(this,a)};var G58=window.location.hostname.split(".").slice(-2).join("."),r$;oA.getInstance=function(){r$=g.aB("yt.clientLocationService.instance");r$||(r$=new oA,g.qe("yt.clientLocationService.instance",r$));return r$}; g.C=oA.prototype; g.C.setLocationOnInnerTubeContext=function(q){q.client||(q.client={});if(this.V)q.client.locationInfo||(q.client.locationInfo={}),q.client.locationInfo.latitudeE7=Math.floor(this.V.coords.latitude*1E7),q.client.locationInfo.longitudeE7=Math.floor(this.V.coords.longitude*1E7),q.client.locationInfo.horizontalAccuracyMeters=Math.round(this.V.coords.accuracy),q.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.W||this.locationPlayabilityToken)q.client.locationPlayabilityToken=this.W|| this.locationPlayabilityToken}; g.C.handleResponse=function(q){var a;q=(a=q.responseContext)==null?void 0:a.locationPlayabilityToken;q!==void 0&&(this.locationPlayabilityToken=q,this.V=void 0,g.UL("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=jg(this))&&this.localStorage.set("yt-location-playability-token",q,15552E3):g.Br("YT_CL",JSON.stringify({loctok:q}),15552E3,G58,!0))}; g.C.clearLocationPlayabilityToken=function(q){q==="TVHTML5"?(this.localStorage=jg(this))&&this.localStorage.remove("yt-location-playability-token"):g.ny("YT_CL");this.W=void 0;this.U!==-1&&(clearTimeout(this.U),this.U=-1)}; g.C.getCurrentPositionFromGeolocation=function(){var q=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var a=!1,w=1E4;g.UL("INNERTUBE_CLIENT_NAME")==="MWEB"&&(a=!0,w=15E3);return new Promise(function(G,k){navigator.geolocation.getCurrentPosition(function(b){q.V=b;G(b)},function(b){k(b)},{enableHighAccuracy:a, maximumAge:0,timeout:w})})}; g.C.createUnpluggedLocationInfo=function(q){var a={};q=q.coords;if(q==null?0:q.latitude)a.latitudeE7=Math.floor(q.latitude*1E7);if(q==null?0:q.longitude)a.longitudeE7=Math.floor(q.longitude*1E7);if(q==null?0:q.accuracy)a.locationRadiusMeters=Math.round(q.accuracy);return a}; g.C.createLocationInfo=function(q){var a={};q=q.coords;if(q==null?0:q.latitude)a.latitudeE7=Math.floor(q.latitude*1E7);if(q==null?0:q.longitude)a.longitudeE7=Math.floor(q.longitude*1E7);return a};g.C=LJN.prototype;g.C.contains=function(q){return Object.prototype.hasOwnProperty.call(this.V,q)}; g.C.get=function(q){if(this.contains(q))return this.V[q]}; g.C.set=function(q,a){this.V[q]=a}; g.C.SH=function(){return Object.keys(this.V)}; g.C.remove=function(q){delete this.V[q]};uc.prototype.getModuleId=function(q){return q.serviceId.getModuleId()}; uc.prototype.get=function(q){a:{var a=this.mappings.get(q.toString());switch(a.type){case "mapping":q=a.value;break a;case "factory":a=a.value();this.mappings.set(q.toString(),{type:"mapping",value:a});q=a;break a;default:q=Y1(a)}}return q}; uc.prototype.registerService=function(q,a){this.mappings.set(q.toString(),{type:"mapping",value:a});return q}; new uc;var n4={},Bw_=(n4.WEB_UNPLUGGED="^unplugged/",n4.WEB_UNPLUGGED_ONBOARDING="^unplugged/",n4.WEB_UNPLUGGED_OPS="^unplugged/",n4.WEB_UNPLUGGED_PUBLIC="^unplugged/",n4.WEB_CREATOR="^creator/",n4.WEB_KIDS="^kids/",n4.WEB_EXPERIMENTS="^experiments/",n4.WEB_MUSIC="^music/",n4.WEB_REMIX="^music/",n4.WEB_MUSIC_EMBEDDED_PLAYER="^music/",n4.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",n4);zj.prototype.D=function(q,a,w){a=a===void 0?{}:a;w=w===void 0?Ob:w;var G={context:g.IA(q.clickTrackingParams,!1,this.Y)};var k=this.U(q);if(k){this.V(G,k,a);var b;a=g.vA(this.W());(k=(b=g.I(q.commandMetadata,g.Zk))==null?void 0:b.apiUrl)&&(a=k);b=KnK(ML(a));q=Object.assign({},{command:q},void 0);G={input:b,lI:hG(b),F1:G,config:q};G.config.Sh?G.config.Sh.identity=w:G.config.Sh={identity:w};return G}w=new g.UH("Error: Failed to create Request from Command.",q);g.mQ(w)}; g.bG.Object.defineProperties(zj.prototype,{Y:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.Z(ic,zj);g.Z(WA,ic);WA.prototype.D=function(){return{input:"/getDatasyncIdsEndpoint",lI:hG("/getDatasyncIdsEndpoint","GET"),F1:{}}}; WA.prototype.W=function(){return[]}; WA.prototype.U=function(){}; WA.prototype.V=function(){};var k5R={},eDf=(k5R.GET_DATASYNC_IDS=tI(WA),k5R);var M6={},bQe=(M6["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",M6["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",M6["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",M6["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",M6["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",M6["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",M6["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", M6["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",M6["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",M6["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",M6["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",M6["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",M6["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",M6["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",M6["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", M6["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",M6["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",M6["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",M6["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",M6["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",M6["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",M6["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", M6["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",M6.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",M6["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",M6["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",M6["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",M6["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",M6["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",M6["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", M6["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",M6["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",M6["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",M6["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",M6["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",M6["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",M6["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",M6["dialog.copyright_strikes"]= "LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",M6["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",M6["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",M6.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",M6["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",M6["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",M6["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",M6["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",M6["owner.asset_groups"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",M6["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",M6["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",M6["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",M6["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",M6["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",M6["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",M6["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",M6["owner.delivery"]= "LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",M6["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",M6["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",M6["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",M6["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",M6["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",M6["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",M6["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",M6["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", M6["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",M6["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",M6["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",M6["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",M6["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",M6["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",M6["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",M6["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",M6["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", M6["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",M6["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",M6["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",M6["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",M6["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",M6["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",M6["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",M6["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS", M6),hS={},HIl=(hS.auto_search="LATENCY_ACTION_AUTO_SEARCH",hS.ad_to_ad="LATENCY_ACTION_AD_TO_AD",hS.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",hS.app_startup="LATENCY_ACTION_APP_STARTUP",hS.browse="LATENCY_ACTION_BROWSE",hS.cast_splash="LATENCY_ACTION_CAST_SPLASH",hS.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",hS.channels="LATENCY_ACTION_CHANNELS",hS.chips="LATENCY_ACTION_CHIPS",hS.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",hS.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK", hS.editor="LATENCY_ACTION_EDITOR",hS.embed="LATENCY_ACTION_EMBED",hS.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",hS.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",hS.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",hS.explore="LATENCY_ACTION_EXPLORE",hS.favorites="LATENCY_ACTION_FAVORITES",hS.home="LATENCY_ACTION_HOME",hS.inboarding="LATENCY_ACTION_INBOARDING",hS.landing="LATENCY_ACTION_LANDING",hS.learning="LATENCY_ACTION_LEARNING", hS.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",hS.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",hS.library="LATENCY_ACTION_LIBRARY",hS.live="LATENCY_ACTION_LIVE",hS.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",hS.management="LATENCY_ACTION_MANAGEMENT",hS.mini_app="LATENCY_ACTION_MINI_APP_PLAY",hS.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",hS.onboarding="LATENCY_ACTION_ONBOARDING",hS.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS", hS.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",hS.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",hS.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",hS.prebuffer="LATENCY_ACTION_PREBUFFER",hS.prefetch="LATENCY_ACTION_PREFETCH",hS.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",hS.profile_switcher="LATENCY_ACTION_LOGIN",hS.projects="LATENCY_ACTION_PROJECTS",hS.reel_watch="LATENCY_ACTION_REEL_WATCH",hS.results="LATENCY_ACTION_RESULTS",hS.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE", hS.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",hS.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",hS.review="LATENCY_ACTION_REVIEW",hS.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",hS.search_ui="LATENCY_ACTION_SEARCH_UI",hS.search_suggest="LATENCY_ACTION_SUGGEST",hS.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",hS.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",hS.seek="LATENCY_ACTION_PLAYER_SEEK",hS.settings="LATENCY_ACTION_SETTINGS",hS.store="LATENCY_ACTION_STORE", hS.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",hS.tenx="LATENCY_ACTION_TENX",hS.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",hS.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",hS.watch="LATENCY_ACTION_WATCH",hS.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",hS["watch,watch7"]="LATENCY_ACTION_WATCH",hS["watch,watch7_html5"]="LATENCY_ACTION_WATCH",hS["watch,watch7ad"]="LATENCY_ACTION_WATCH",hS["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",hS.wn_comments="LATENCY_ACTION_LOAD_COMMENTS", hS.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",hS.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",hS.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",hS.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",hS.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",hS.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",hS.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",hS);Object.assign(HIl,bQe);g.Z(k4,l$);var DFG=new eC("aft-recorded",k4);var OQB=g.yV.ytLoggingGelSequenceIdObj_||{};g.qe("ytLoggingGelSequenceIdObj_",OQB);var lq=g.yV.ytLoggingLatencyUsageStats_||{};g.qe("ytLoggingLatencyUsageStats_",lq);bq.prototype.tick=function(q,a,w,G){e3(this,"tick_"+q+"_"+a)||g.aw("latencyActionTicked",{tickName:q,clientActionNonce:a},{timestamp:w,cttAuthInfo:G})}; bq.prototype.info=function(q,a,w){var G=Object.keys(q).join("");e3(this,"info_"+G+"_"+a)||(q=Object.assign({},q),q.clientActionNonce=a,g.aw("latencyActionInfo",q,{cttAuthInfo:w}))}; bq.prototype.jspbInfo=function(q,a,w){for(var G="",k=0;k=k.length?(a.append(k),q-=k.length):q?(a.append(new Uint8Array(k.buffer,k.byteOffset,q)),w.append(new Uint8Array(k.buffer,k.byteOffset+q,k.length-q)),q=0):w.append(k);return{DK:a,xK:w}}; yI.prototype.isFocused=function(q){return q>=this.W&&q=64&&(this.L.set(q.subarray(0,64-this.U),this.U),a=64-this.U,this.U=0,q9c(this,this.L,0));for(;a+64<=w;a+=64)q9c(this,q,a);a=this.start&&(q=2&&w.ssdaiAdsConfig&&Gj("Unexpected ad placement renderers length",q.slot,null,{length:G.length});var k;((k=w.adSlots)==null?0:k.some(function(b){var O,e;return((O=g.I(b,P9))==null?void 0:(e=O.adSlotMetadata)==null?void 0:e.slotType)==="SLOT_TYPE_PLAYER_BYTES"}))||G.some(function(b){var O,e,N,Y; return!!((O=b.renderer)==null?0:(e=O.linearAdSequenceRenderer)==null?0:(N=e.linearAds)==null?0:N.length)||!((Y=b.renderer)==null||!Y.instreamVideoAdRenderer)})||JWm(q)})}; ut.prototype.Y4=function(){l1l(this.V)};t3.prototype.d6=function(){var q=this;OF_(this.U,function(){var a=oZ(q.slot.clientMetadata,"metadata_type_ad_break_request_data");return a.cueProcessedMs?q.V.get().fetch({Vd:a.getAdBreakUrl,AI:new g.Xo(a.uN,a.Og),cueProcessedMs:a.cueProcessedMs}):q.V.get().fetch({Vd:a.getAdBreakUrl,AI:new g.Xo(a.uN,a.Og)})})}; t3.prototype.Y4=function(){l1l(this.U)};vT.prototype.d6=function(){var q=this.slot.clientMetadata,a,w=(a=this.slot.fulfilledLayout)!=null?a:oZ(q,"metadata_type_fulfilled_layout");XpU(this.callback,this.slot,w)}; vT.prototype.Y4=function(){aM(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")};WT.prototype.build=function(q,a){return a.fulfilledLayout||zS(a,{FC:["metadata_type_fulfilled_layout"]})?new vT(q,a):this.W(q,a)};g.Z(Db,WT); Db.prototype.W=function(q,a){if(zS(a,{FC:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new ut(q,a,this.V,this.U,this.VE,this.Q7,this.p7,this.RW,this.W5);if(zS(a,{FC:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new t3(q,a,this.V,this.U,this.VE,this.Q7);throw new W("Unsupported slot with type: "+a.slotType+" and client metadata: "+IZ(a.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.Z(RM,WT);RM.prototype.W=function(q,a){throw new W("Unsupported slot with type: "+a.slotType+" and client metadata: "+IZ(a.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.C=mwc.prototype;g.C.bF=function(){return this.slot}; g.C.g8=function(){return this.layout}; g.C.init=function(){}; g.C.release=function(){}; g.C.startRendering=function(q){if(q.layoutId!==this.layout.layoutId)this.callback.BJ(this.slot,q,new Xv("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 a=oZ(q.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.Bq(this.slot,q),IQc(this.W, this.slot,a)):Gj("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,q)}}; g.C.m6=function(q,a){q.layoutId!==this.layout.layoutId?this.callback.BJ(this.slot,q,new Xv("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.G0(this.slot,q,a),AWU(this),xwl(this))};g.Z(wZ,g.ya);g.C=wZ.prototype;g.C.bF=function(){return this.U.slot}; g.C.g8=function(){return this.U.layout}; g.C.init=function(){this.W.get().addListener(this)}; g.C.release=function(){this.W.get().removeListener(this);this.dispose()}; g.C.pH=function(){}; g.C.LH=function(){}; g.C.vu=function(){}; g.C.Hv=function(){}; g.C.startRendering=function(q){var a=this;am(this.U,q,function(){return void a.f9()})}; g.C.f9=function(){this.W.get().f9(this.V)}; g.C.m6=function(q,a){var w=this;am(this.U,q,function(){var G=w.W.get();Kll(G,w.V,3);w.V=[];w.callback.G0(w.slot,q,a)})}; g.C.qB=function(){this.W.t2()||this.W.get().removeListener(this);g.ya.prototype.qB.call(this)}; g.bG.Object.defineProperties(wZ.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.U.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.U.layout}}});YJ.prototype.SG=function(q,a){a=a===void 0?!1:a;var w=(this.W.get(q)||[]).concat();if(a=a&&nfG(q)){var G=this.W.get(a);G&&w.push.apply(w,g.Tf(G))}dZ(this,q,w);this.V.add(q);a&&this.V.add(a)}; YJ.prototype.xl=function(q,a){a=a===void 0?!1:a;if(!this.V.has(q)){var w=a&&nfG(q);w&&(a=!this.V.has(w));this.SG(q,a)}};g.Z(S_J,R9);g.Z(Zo,wZ);g.C=Zo.prototype;g.C.V0=function(q,a){Ou("ads-engagement-panel-layout",q,this.L.get().a_,this.p7.get(),this.Y,this.D,this.bF(),this.g8(),a)}; g.C.startRendering=function(q){kJ(this.C7,this.bF(),this.g8(),g.I(this.g8().renderingContent,Ui),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(a,w,G,k,b){return new S_J(a,w,G,k,b)},this.V); wZ.prototype.startRendering.call(this,q)}; g.C.Bq=function(q,a){this.D===a.layoutId&&(this.Y===null?this.Y=this.p7.get().OP():Gj("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.C.G0=function(){}; g.C.MH=function(){}; g.C.D8=function(){}; g.C.Hm=function(){}; g.C.vJ=function(){}; g.C.Lu=function(){}; g.C.iT=function(){}; g.C.LW=function(){}; g.C.Zy=function(){}; g.C.Uv=function(){}; g.C.Xf=function(){}; g.C.qB=function(){qh(this.r$(),this);wZ.prototype.qB.call(this)};g.Z(HFJ,R9);g.Z(Eu,wZ);g.C=Eu.prototype;g.C.V0=function(q,a){Ou("banner-image",q,this.L.get().a_,this.p7.get(),this.Y,this.D,this.bF(),this.g8(),a)}; g.C.startRendering=function(q){kJ(this.C7,this.bF(),this.g8(),g.I(this.g8().renderingContent,cZ),this.callback,"metadata_type_banner_image_layout_view_model",function(a,w,G,k,b){return new HFJ(a,w,G,k,b)},this.V); wZ.prototype.startRendering.call(this,q)}; g.C.Bq=function(q,a){this.D===a.layoutId&&(this.Y===null?this.Y=this.p7.get().OP():Gj("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.C.G0=function(){}; g.C.MH=function(){}; g.C.D8=function(){}; g.C.Hm=function(){}; g.C.vJ=function(){}; g.C.Lu=function(){}; g.C.iT=function(){}; g.C.LW=function(){}; g.C.Zy=function(){}; g.C.Uv=function(){}; g.C.Xf=function(){}; g.C.qB=function(){qh(this.r$(),this);wZ.prototype.qB.call(this)};g.Z(VY,R9);g.Z(JQ,wZ);g.C=JQ.prototype;g.C.V0=function(q,a){Ou("action-companion",q,this.L.get().a_,this.p7.get(),this.Y,this.D,this.bF(),this.g8(),a)}; g.C.startRendering=function(q){kJ(this.C7,this.bF(),this.g8(),g.I(this.g8().renderingContent,SQ),this.callback,"metadata_type_action_companion_ad_renderer",function(a,w,G,k,b){return new VY(a,w,G,k,b)},this.V); wZ.prototype.startRendering.call(this,q)}; g.C.Bq=function(q,a){a.layoutId===this.layout.layoutId?this.C7.xl("impression"):this.D===a.layoutId&&(this.Y===null?this.Y=this.p7.get().OP():Gj("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.C.G0=function(){}; g.C.MH=function(){}; g.C.D8=function(){}; g.C.Hm=function(){}; g.C.vJ=function(){}; g.C.Lu=function(){}; g.C.iT=function(){}; g.C.LW=function(){}; g.C.Zy=function(){}; g.C.Uv=function(){}; g.C.Xf=function(){}; g.C.qB=function(){qh(this.r$(),this);wZ.prototype.qB.call(this)};g.Z(Uwf,R9);g.Z(mZ,wZ);g.C=mZ.prototype;g.C.V0=function(q,a){Ou("image-companion",q,this.L.get().a_,this.p7.get(),this.Y,this.D,this.bF(),this.g8(),a)}; g.C.startRendering=function(q){kJ(this.C7,this.bF(),this.g8(),g.I(this.g8().renderingContent,fr),this.callback,"metadata_type_image_companion_ad_renderer",function(a,w,G,k,b){return new Uwf(a,w,G,k,b)},this.V); wZ.prototype.startRendering.call(this,q)}; g.C.Bq=function(q,a){a.layoutId===this.layout.layoutId?this.C7.xl("impression"):this.D===a.layoutId&&(this.Y===null?this.Y=this.p7.get().OP():Gj("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.C.G0=function(){}; g.C.MH=function(){}; g.C.D8=function(){}; g.C.Hm=function(){}; g.C.vJ=function(){}; g.C.Lu=function(){}; g.C.iT=function(){}; g.C.LW=function(){}; g.C.Zy=function(){}; g.C.Uv=function(){}; g.C.Xf=function(){}; g.C.qB=function(){qh(this.r$(),this);wZ.prototype.qB.call(this)};g.Z(j9_,R9);g.Z(QY,wZ);g.C=QY.prototype;g.C.V0=function(q,a){Ou("shopping-companion",q,this.L.get().a_,this.p7.get(),this.Y,this.D,this.bF(),this.g8(),a)}; g.C.startRendering=function(q){kJ(this.C7,this.bF(),this.g8(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(a,w,G,k,b){return new j9_(a,w,G,k,b)},this.V); wZ.prototype.startRendering.call(this,q)}; g.C.Bq=function(q,a){a.layoutId===this.layout.layoutId?this.C7.xl("impression"):this.D===a.layoutId&&(this.Y===null?this.Y=this.p7.get().OP():Gj("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.C.G0=function(){}; g.C.MH=function(){}; g.C.D8=function(){}; g.C.Hm=function(){}; g.C.vJ=function(){}; g.C.Lu=function(){}; g.C.iT=function(){}; g.C.LW=function(){}; g.C.Zy=function(){}; g.C.Uv=function(){}; g.C.Xf=function(){}; g.C.qB=function(){qh(this.r$(),this);wZ.prototype.qB.call(this)};g.Z(xJ,wZ);g.C=xJ.prototype;g.C.startRendering=function(q){kJ(this.C7,this.bF(),this.g8(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(a,w,G,k,b){return new VY(a,w,G,k,b)},this.V); wZ.prototype.startRendering.call(this,q)}; g.C.Bq=function(){}; g.C.G0=function(){}; g.C.MH=function(){}; g.C.D8=function(){}; g.C.Hm=function(){}; g.C.vJ=function(){}; g.C.Lu=function(){}; g.C.iT=function(){}; g.C.LW=function(){}; g.C.Zy=function(){}; g.C.Uv=function(){}; g.C.Xf=function(){}; g.C.qB=function(){qh(this.r$(),this);wZ.prototype.qB.call(this)}; g.C.V0=function(){};g.C=zYm.prototype;g.C.bF=function(){return this.slot}; g.C.g8=function(){return this.layout}; g.C.init=function(){this.RW.get().addListener(this);this.RW.get().b2.push(this);var q=oZ(this.layout.clientMetadata,"metadata_type_video_length_seconds"),a=oZ(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");lf(this.layout.d$)&&y8(this.q1.get(),this.layout.layoutId,{zH:a,Ac:q,listener:this})}; g.C.release=function(){this.RW.get().removeListener(this);lcy(this.RW.get(),this);lf(this.layout.d$)&&qn(this.q1.get(),this.layout.layoutId)}; g.C.startRendering=function(q){this.callback.Bq(this.slot,q)}; g.C.m6=function(q,a){nhy(this.Q7.get())&&!this.V&&(this.C7.xl("abandon"),this.V=!0);this.callback.G0(this.slot,q,a)}; g.C.Tg=function(q){switch(q.id){case "part2viewed":this.C7.xl("start");this.C7.xl("impression");break;case "videoplaytime25":this.C7.xl("first_quartile");break;case "videoplaytime50":this.C7.xl("midpoint");break;case "videoplaytime75":this.C7.xl("third_quartile");break;case "videoplaytime100":nhy(this.Q7.get())?this.V||(this.C7.xl("complete"),this.V=!0):this.C7.xl("complete");Ct(this.C7)&&$J(this.C7,Infinity,!0);MBj(this.Q7.get())&&AQ(this.U,Infinity,!0);break;case "engagedview":Ct(this.C7)||this.C7.xl("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:Gj("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.C.onVolumeChange=function(){}; g.C.Ba=function(){}; g.C.jG=function(){}; g.C.lD=function(){}; g.C.onFullscreenToggled=function(){}; g.C.nO=function(){}; g.C.XF=function(){}; g.C.Kz=function(q){MBj(this.Q7.get())&&AQ(this.U,q*1E3,!1);Ct(this.C7)&&$J(this.C7,q*1E3,!1)}; g.C.Nz=function(){}; g.C.tT=function(){this.C7.xl("active_view_measurable")}; g.C.Ei=function(){this.C7.xl("active_view_viewable")}; g.C.pg=function(){this.C7.xl("active_view_fully_viewable_audible_half_duration")}; g.C.DA=function(){this.C7.xl("audio_measurable")}; g.C.Lg=function(){this.C7.xl("audio_audible")};g.Z(Lt,wZ);g.C=Lt.prototype;g.C.init=function(){wZ.prototype.init.call(this);var q=oZ(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),a={adsClientData:this.layout.Xw};this.V.push(new Kj(q,this.layout.layoutId,oZ(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),a,!0))}; g.C.cM=function(){this.Y||this.RW.get().resumeVideo(1)}; g.C.startRendering=function(q){wZ.prototype.startRendering.call(this,q);l7(this.RW.get(),"ad-showing");this.callback.Bq(this.slot,q);this.D.AO=this}; g.C.m6=function(q,a){wZ.prototype.m6.call(this,q,a);ej(this.RW.get(),"ad-showing");zI(this.D,this)}; g.C.V0=function(q){switch(q){case "ad-info-icon-button":(this.Y=this.RW.get().Zl(1))||this.RW.get().pauseVideo();break;case "visit-advertiser":this.RW.get().pauseVideo()}}; g.C.qB=function(){wZ.prototype.qB.call(this)};g.Z(Bb,R9);g.Z(rZ,wZ);g.C=rZ.prototype;g.C.startRendering=function(q){kJ(this.C7,this.bF(),this.g8(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(a,w,G,k,b){return new Bb(a,w,G,k,b)},this.V); wZ.prototype.startRendering.call(this,q)}; g.C.Bq=function(){}; g.C.G0=function(){}; g.C.MH=function(){}; g.C.D8=function(){}; g.C.Hm=function(){}; g.C.vJ=function(){}; g.C.Lu=function(){}; g.C.iT=function(){}; g.C.LW=function(){}; g.C.Zy=function(){}; g.C.Uv=function(){}; g.C.Xf=function(){}; g.C.qB=function(){qh(this.r$(),this);wZ.prototype.qB.call(this)}; g.C.V0=function(){};g.Z(nt,R9);g.Z(Mf,wZ);Mf.prototype.init=function(){wZ.prototype.init.call(this);this.V.push(new nt(g.I(this.layout.renderingContent,gS),this.layout.layoutId,{adsClientData:this.layout.Xw}))}; Mf.prototype.V0=function(){G2(this.Y.get(),this.D)&&bf(this.p7.get(),3)}; Mf.prototype.startRendering=function(q){wZ.prototype.startRendering.call(this,q);this.callback.Bq(this.slot,q)}; Mf.prototype.qB=function(){wZ.prototype.qB.call(this)};g.Z(hQ,R9);g.Z(SH,wZ);SH.prototype.init=function(){wZ.prototype.init.call(this);var q=g.I(this.layout.renderingContent,zk)||oZ(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),a=Gk(this.C7);this.V.push(new hQ(q,a,this.layout.layoutId,{adsClientData:this.layout.Xw},!0,!0))}; SH.prototype.startRendering=function(q){wZ.prototype.startRendering.call(this,q);this.callback.Bq(this.slot,q)}; SH.prototype.V0=function(q,a){if(a===this.layout.layoutId)switch(q){case "skip-button":var w;(q=(w=oZ(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:w.current)&&q.VP(this.bF(),this.layout)}}; SH.prototype.qB=function(){wZ.prototype.qB.call(this)};Hb.prototype.build=function(q,a,w,G){if(ft(G,{FC:["metadata_type_ad_break_response_data"],CT:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new mwc(q,w,G,this.U,this.W,this.V);throw new Xv("Unsupported layout with type: "+G.layoutType+" and client metadata: "+IZ(G.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.Z(Dwy,R9);g.Z(cb,wZ);g.C=cb.prototype;g.C.V0=function(q,a){Ou("ads-engagement-panel",q,this.L.get().a_,this.p7.get(),this.Y,this.D,this.bF(),this.g8(),a)}; g.C.startRendering=function(q){kJ(this.C7,this.bF(),this.g8(),g.I(this.g8().renderingContent,HZ),this.callback,"metadata_type_ads_engagement_panel_renderer",function(a,w,G,k,b){return new Dwy(a,w,G,k,b)},this.V); wZ.prototype.startRendering.call(this,q)}; g.C.Bq=function(q,a){a.layoutId===this.layout.layoutId?this.C7.xl("impression"):this.D===a.layoutId&&(this.Y===null?this.Y=this.p7.get().OP():Gj("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.C.G0=function(){}; g.C.MH=function(){}; g.C.D8=function(){}; g.C.Hm=function(){}; g.C.vJ=function(){}; g.C.Lu=function(){}; g.C.iT=function(){}; g.C.LW=function(){}; g.C.Zy=function(){}; g.C.Uv=function(){}; g.C.Xf=function(){}; g.C.qB=function(){qh(this.r$(),this);wZ.prototype.qB.call(this)};g.Z(pt,wZ);g.C=pt.prototype;g.C.V0=function(q,a){Ou("top-banner-image-text-icon-buttoned",q,this.L.get().a_,this.p7.get(),this.Y,this.D,this.bF(),this.g8(),a)}; g.C.startRendering=function(q){kJ(this.C7,this.bF(),this.g8(),g.I(this.g8().renderingContent,pr),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(a,w,G,k,b){return new Bb(a,w,G,k,b)},this.V); wZ.prototype.startRendering.call(this,q)}; g.C.Bq=function(q,a){this.D===a.layoutId&&(this.Y===null?this.Y=this.p7.get().OP():Gj("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.C.G0=function(){}; g.C.MH=function(){}; g.C.D8=function(){}; g.C.Hm=function(){}; g.C.vJ=function(){}; g.C.Lu=function(){}; g.C.iT=function(){}; g.C.LW=function(){}; g.C.Zy=function(){}; g.C.Uv=function(){}; g.C.Xf=function(){}; g.C.qB=function(){qh(this.r$(),this);wZ.prototype.qB.call(this)};qEG.prototype.build=function(q,a,w,G){if(ft(G,RYj())||g.I(G.renderingContent,HZ)!==void 0)return new cb(q,w,G,this.F3,this.p7,this.r$,this.q1,this.V);if(ft(G,pCf())||g.I(G.renderingContent,SQ)!==void 0)return new JQ(q,w,G,this.F3,this.p7,this.r$,this.q1,this.V);if(ft(G,XCl())||g.I(G.renderingContent,fr)!==void 0)return new mZ(q,w,G,this.F3,this.p7,this.r$,this.q1,this.V);if(ft(G,ofl()))return new QY(q,w,G,this.F3,this.p7,this.r$,this.q1,this.V);if(ft(G,vfK()))return new xJ(q,w,G,this.F3,this.p7,this.r$, this.q1,this.V);if(ft(G,cWV())||g.I(G.renderingContent,cZ)!==void 0)return new Eu(q,w,G,this.F3,this.p7,this.r$,this.q1,this.V);if(ft(G,yWN())||g.I(G.renderingContent,pr)!==void 0)return new pt(q,w,G,this.F3,this.p7,this.r$,this.q1,this.V);if(ft(G,iFy()))return new rZ(q,w,G,this.F3,this.p7,this.r$,this.q1,this.V);if(ft(G,f1l())||g.I(G.renderingContent,Ui)!==void 0)return new Zo(q,w,G,this.F3,this.p7,this.r$,this.q1,this.V);throw new Xv("Unsupported layout with type: "+G.layoutType+" and client metadata: "+ IZ(G.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};gpj.prototype.build=function(q,a,w,G){if(ft(G,{FC:["metadata_type_linked_player_bytes_layout_id"],CT:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new Mf(q,w,G,this.F3,this.p7,this.V);throw new Xv("Unsupported layout with type: "+G.layoutType+" and client metadata: "+IZ(G.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.C=aJj.prototype;g.C.bF=function(){return this.slot}; g.C.g8=function(){return this.layout}; g.C.init=function(){}; g.C.release=function(){}; g.C.startRendering=function(q){q.layoutId!==this.layout.layoutId?this.callback.BJ(this.slot,q,new Xv("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.Bq(this.slot,q),this.C7.xl("impression"),C8(this.nE,q,"normal"))}; g.C.m6=function(q,a){q.layoutId!==this.layout.layoutId?this.callback.BJ(this.slot,q,new Xv("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.G0(this.slot,q,a)};g.C=Gsy.prototype;g.C.bF=function(){return this.slot}; g.C.g8=function(){return this.layout}; g.C.init=function(){}; g.C.release=function(){}; g.C.startRendering=function(q){q.layoutId!==this.layout.layoutId?this.callback.BJ(this.slot,q,new Xv("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.Bq(this.slot,q),this.C7.xl("impression"),C8(this.nE,q,"normal"))}; g.C.m6=function(q,a){q.layoutId!==this.layout.layoutId?this.callback.BJ(this.slot,q,new Xv("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.G0(this.slot,q,a)};Uu.prototype.build=function(q,a,w,G){if(!this.Q7.get().j.B().T("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(ft(G,wey()))return new aJj(q,w,G,this.p7,this.nE)}else if(ft(G,{FC:[],CT:["LAYOUT_TYPE_FORECASTING"]}))return new Gsy(q,w,G,this.p7,this.nE);throw new Xv("Unsupported layout with type: "+G.layoutType+" and client metadata: "+IZ(G.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.Z(OPl,R9);g.Z(XZ,wZ);g.C=XZ.prototype;g.C.init=function(){wZ.prototype.init.call(this);var q=g.I(this.layout.renderingContent,vb)||oZ(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),a={adsClientData:this.layout.Xw};this.V.push(new OPl(q,oZ(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,a))}; g.C.cM=function(){this.Y||this.RW.get().resumeVideo(2)}; g.C.startRendering=function(q){wZ.prototype.startRendering.call(this,q);this.callback.Bq(this.slot,q);this.D.AO=this}; g.C.m6=function(q,a){wZ.prototype.m6.call(this,q,a);zI(this.D,this)}; g.C.V0=function(q,a){if(!Mh(this.Q7.get(),"stop_handling_click_for_non_rendering_overlay_layout")||a===this.layout.layoutId){if(G2(this.L.get(),this.X))switch(q){case "visit-advertiser-link":bf(this.p7.get(),3)}switch(q){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.Y||this.RW.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.Y=this.RW.get().Zl(2))||this.RW.get().pauseVideo();break; case "visit-advertiser-link":this.RW.get().pauseVideo();lJl(this).bz();break;case "skip-button":if(q=lJl(this),this.layout.renderingContent&&!co(this.layout.clientMetadata,"metadata_type_dai")||!q||!q.Pv){var w;(q=(w=oZ(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:w.current)&&q.VP(this.bF(),this.layout)}else Gj("Requesting to skip by LegacyPlayerBytes when components enabled"),q.Nr(this.bF(),this.layout)}}}; g.C.qB=function(){wZ.prototype.qB.call(this)};g.Z(jH,wZ);g.C=jH.prototype;g.C.init=function(){wZ.prototype.init.call(this);var q=g.I(this.layout.renderingContent,tQ)||oZ(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),a={adsClientData:this.layout.Xw},w;(w=!!this.layout.renderingContent)||(w=om(this),w=!(w&&w.Pv));this.V.push(new Kj(q,this.layout.layoutId,oZ(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),a,w))}; g.C.cM=function(){this.Y||this.RW.get().resumeVideo(2)}; g.C.startRendering=function(q){wZ.prototype.startRendering.call(this,q);this.callback.Bq(this.slot,q);this.D.AO=this}; g.C.m6=function(q,a){wZ.prototype.m6.call(this,q,a);zI(this.D,this)}; g.C.V0=function(q,a){if(!this.Q7||!Mh(this.Q7.get(),"stop_handling_click_for_non_rendering_overlay_layout")||a===this.layout.layoutId){if(G2(this.L.get(),this.X))switch(q){case "visit-advertiser":bf(this.p7.get(),3)}switch(q){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.Y||this.RW.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.Y=this.RW.get().Zl(2))||this.RW.get().pauseVideo();break; case "visit-advertiser":this.RW.get().pauseVideo();om(this).bz();break;case "skip-button":if(q=om(this),this.layout.renderingContent&&!co(this.layout.clientMetadata,"metadata_type_dai")||!q||!q.Pv){var w;(q=(w=oZ(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:w.current)&&q.VP(this.bF(),this.layout)}else Gj("Requesting to skip by LegacyPlayerBytes"),q.Nr(this.bF(),this.layout)}}}; g.C.qB=function(){wZ.prototype.qB.call(this)};g.Z(NCK,R9);g.Z(Im,wZ);g.C=Im.prototype;g.C.startRendering=function(q){var a=this;am(this.U,q,function(){a.V.push(new NCK(oZ(a.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),q.layoutId,q.Xw));a.f9();a.callback.Bq(a.slot,q);g.v(RQ(a.RW.get(),1),512)&&a.callback.BJ(a.bF(),a.g8(),new Xv("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.C.XF=function(){}; g.C.nO=function(q){if(q.state.isError()){var a;this.callback.BJ(this.bF(),this.g8(),new Xv("A player error happened during adNotify",{playerErrorCode:(a=q.state.lT)==null?void 0:a.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; g.C.onFullscreenToggled=function(){}; g.C.jG=function(){}; g.C.lD=function(){}; g.C.Ba=function(){}; g.C.onVolumeChange=function(){}; g.C.Tg=function(){}; g.C.Nz=function(){}; g.C.V0=function(){};g.Z(PvN,R9);g.Z(uf,wZ);uf.prototype.init=function(){wZ.prototype.init.call(this);var q=g.I(this.layout.renderingContent,Wb),a=Gk(this.C7);this.V.push(new PvN(q,a,this.layout.layoutId,{adsClientData:this.layout.Xw}))}; uf.prototype.startRendering=function(q){wZ.prototype.startRendering.call(this,q);this.callback.Bq(this.slot,q)}; uf.prototype.V0=function(q,a){if(a===this.layout.layoutId)switch(q){case "skip-button":var w;(q=(w=oZ(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:w.current)&&q.VP(this.bF(),this.layout)}}; uf.prototype.qB=function(){wZ.prototype.qB.call(this)};Kxy.prototype.build=function(q,a,w,G){if(q=Do(q,w,G,this.F3,this.RW,this.p7,this.U,this.V,this.Q7))return q;throw new Xv("Unsupported layout with type: "+G.layoutType+" and client metadata: "+IZ(G.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.C=q4.prototype;g.C.bF=function(){return this.slot}; g.C.g8=function(){return this.layout}; g.C.init=function(){this.RW.get().addListener(this);this.RW.get().b2.push(this);if(this.layout.renderingContent){var q=this.n7.get();q=uw(q,1).zG/1E3}else q=oZ(this.layout.clientMetadata,"metadata_type_video_length_seconds");var a=g.I(this.layout.renderingContent,RP),w=a?eH(a.pings):oZ(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");a=a?rWl(a.pings):oZ(this.layout.clientMetadata,"metadata_type_active_view_identifier");lf(this.layout.d$)&&y8(this.q1.get(),this.layout.layoutId, {zH:w,Ac:q,listener:this,aT:a})}; g.C.release=function(){this.RW.get().removeListener(this);lcy(this.RW.get(),this);lf(this.layout.d$)&&qn(this.q1.get(),this.layout.layoutId)}; g.C.startRendering=function(q){this.callback.Bq(this.slot,q)}; g.C.m6=function(q,a){gl(this,"abandon");this.callback.G0(this.slot,q,a)}; g.C.Tg=function(q){switch(q.id){case "part2viewed":this.C7.xl("start");this.C7.xl("impression");break;case "videoplaytime25":this.C7.xl("first_quartile");break;case "videoplaytime50":this.C7.xl("midpoint");break;case "videoplaytime75":this.C7.xl("third_quartile");break;case "videoplaytime100":gl(this,"complete");Ct(this.C7)&&$J(this.C7,Infinity,!0);break;case "engagedview":Ct(this.C7)||this.C7.xl("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:Gj("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.C.onVolumeChange=function(){}; g.C.Ba=function(){}; g.C.jG=function(){}; g.C.lD=function(){}; g.C.onFullscreenToggled=function(){}; g.C.nO=function(q){this.V||(g.Ox(q,4)&&!g.Ox(q,2)?Tk(this.C7,"pause"):bc(q,4)<0&&!(bc(q,2)<0)&&Tk(this.C7,"resume"))}; g.C.XF=function(){}; g.C.Kz=function(q){Ct(this.C7)&&$J(this.C7,q*1E3,!1)}; g.C.Nz=function(){gl(this,"swipe")}; g.C.tT=function(){this.C7.xl("active_view_measurable")}; g.C.Ei=function(){this.C7.xl("active_view_viewable")}; g.C.pg=function(){this.C7.xl("active_view_fully_viewable_audible_half_duration")}; g.C.DA=function(){this.C7.xl("audio_measurable")}; g.C.Lg=function(){this.C7.xl("audio_audible")};dlJ.prototype.build=function(q,a,w,G){if(w.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.I(G.renderingContent,RP)!==void 0)return new q4(q,w,G,this.RW,this.p7,this.Q7,this.q1,this.n7);a=["metadata_type_ad_placement_config"];for(var k=g.V(Pb()),b=k.next();!b.done;b=k.next())a.push(b.value);if(ft(G,{FC:a,CT:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return w.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new q4(q,w,G,this.RW,this.p7,this.Q7,this.q1,this.n7):new zYm(q,w,G,this.RW,this.p7, this.Lk,this.Q7,this.q1);throw new Xv("Unsupported layout with type: "+G.layoutType+" and client metadata: "+IZ(G.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var kG={contentCpn:"",l2:new Map};mlm.prototype.QN=function(q,a){var w={};a=Object.assign({},a,(w.cc=this.s3.yV(),w));this.s3.j.d8(q,a)};var xzy,p4; xzy={UMK:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",XaQ:"AUTHENTICATION_MALFORMED",nL2:"AUTHENTICATION_MISSING",Nhh:"BAD_REQUEST",CMe:"CAST_SESSION_DEVICE_MISMATCHED",SqG:"CAST_SESSION_VIDEO_MISMATCHED",ALW:"CAST_TOKEN_EXPIRED",zF2:"CAST_TOKEN_FAILED",ZEh:"CAST_TOKEN_MALFORMED",Bh9:"CGI_PARAMS_MALFORMED",swB:"CGI_PARAMS_MISSING",ia8:"DEVICE_FALLBACK",AK8:"GENERIC_WITH_LINK_AND_CPN",zRT:"ERROR_HDCP",Za8:"LICENSE",s_T:"VIDEO_UNAVAILABLE",V7Q:"FORMAT_UNAVAILABLE",OFW:"GEO_FAILURE", DXT:"HTML5_AUDIO_RENDERER_ERROR",pWG:"GENERIC_WITHOUT_LINK",t7Q:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",EET:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",el7:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",Tl2:"HTML5_SPS_UMP_STATUS_REJECTED",hl2:"INVALID_DRM_MESSAGE",pc8:"PURCHASE_NOT_FOUND",tDG:"PURCHASE_REFUNDED",Nyh:"RENTAL_EXPIRED",xQK:"RETRYABLE_ERROR",KeW:"SERVER_ERROR",W12:"SIGNATURE_EXPIRED",G89:"STOPPED_BY_ANOTHER_PLAYBACK",fl7:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",jPW:"STREAMING_NOT_ALLOWED", Hde:"STREAM_LICENSE_NOT_FOUND",E2t:"TOO_MANY_REQUESTS",e0W:"TOO_MANY_REQUESTS_WITH_LINK",T28:"TOO_MANY_STREAMS_PER_ENTITLEMENT",XF7:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",JGe:"VIDEO_FORBIDDEN",rGT:"VIDEO_NOT_FOUND",hF7:"BROWSER_OR_EXTENSION_ERROR"};p4={}; g.uB=(p4.ALREADY_PINNED_ON_A_DEVICE="Ya has descargado este v\u00eddeo en el n\u00famero m\u00e1ximo de dispositivos que permite el propietario de los derechos de autor. Tienes que eliminarlo de otro dispositivo para poder verlo en este.",p4.DEVICE_FALLBACK="Este v\u00eddeo no est\u00e1 disponible en este dispositivo.",p4.GENERIC_WITH_LINK_AND_CPN="Se ha producido un error. Vuelve a intentarlo m\u00e1s tarde. (ID de reproducci\u00f3n: $CPN) $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK",p4.LICENSE= "Se ha producido un error de licencia con este v\u00eddeo.",p4.VIDEO_UNAVAILABLE="El v\u00eddeo no est\u00e1 disponible",p4.FORMAT_UNAVAILABLE="Este v\u00eddeo no est\u00e1 disponible en esa calidad. Vuelve a intentarlo.",p4.GEO_FAILURE="Este v\u00eddeo no est\u00e1 disponible en tu pa\u00eds.",p4.HTML5_AUDIO_RENDERER_ERROR="No se ha podido procesar el audio. Reinicia tu ordenador.",p4.GENERIC_WITHOUT_LINK="Se ha producido un error. Vuelve a intentarlo m\u00e1s tarde.",p4.HTML5_NO_AVAILABLE_FORMATS_FALLBACK= "No se admite este formato de v\u00eddeo.",p4.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="Tu navegador no reconoce ninguno de los formatos de v\u00eddeo disponibles por el momento. $BEGIN_LINKHaz clic aqu\u00ed para consultar las preguntas frecuentes sobre el v\u00eddeo HTML5$END_LINK.",p4.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Este navegador no puede reproducir este v\u00eddeo. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK",p4.HTML5_SPS_UMP_STATUS_REJECTED="Se ha producido un error. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK", p4.INVALID_DRM_MESSAGE="El mensaje espec\u00edfico del sistema DRM no es v\u00e1lido.",p4.PURCHASE_NOT_FOUND="Este v\u00eddeo es de pago.",p4.PURCHASE_REFUNDED="Te hemos devuelto el importe de este v\u00eddeo.",p4.RENTAL_EXPIRED="El periodo de alquiler de este v\u00eddeo ha finalizado.",p4.CAST_SESSION_DEVICE_MISMATCHED="El dispositivo de la transmisi\u00f3n no coincide con el solicitado.",p4.CAST_SESSION_VIDEO_MISMATCHED="El v\u00eddeo de la transmisi\u00f3n no coincide con el solicitado.",p4.CAST_TOKEN_FAILED= "La transmisi\u00f3n no est\u00e1 disponible. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde.",p4.CAST_TOKEN_EXPIRED="La transmisi\u00f3n ha caducado. Actualiza la p\u00e1gina.",p4.CAST_TOKEN_MALFORMED="La transmisi\u00f3n no es v\u00e1lida. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde.",p4.SERVER_ERROR="Se ha producido un error en el servidor interno. Vuelve a intentarlo m\u00e1s tarde.",p4.STOPPED_BY_ANOTHER_PLAYBACK="Tu cuenta est\u00e1 reproduciendo este v\u00eddeo en otra ubicaci\u00f3n. Vuelve a cargar esta p\u00e1gina para reanudar la reproducci\u00f3n.", p4.STREAM_LICENSE_NOT_FOUND="Se ha interrumpido la reproducci\u00f3n del v\u00eddeo. Vuelve a intentarlo.",p4.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="En un periodo de 24 horas se han utilizado demasiados dispositivos o direcciones IP.",p4.STREAMING_NOT_ALLOWED="No se permite la reproducci\u00f3n porque el v\u00eddeo est\u00e1 fijado a otro dispositivo.",p4.RETRYABLE_ERROR="Se ha producido un error temporal en el servidor. Vuelve a intentarlo m\u00e1s tarde.",p4.TOO_MANY_REQUESTS="Inicia sesi\u00f3n para ver este v\u00eddeo.", p4.TOO_MANY_REQUESTS_WITH_LINK="Haz clic en $BEGIN_LINKeste enlace$END_LINK para ver este v\u00eddeo en YouTube.",p4.TOO_MANY_STREAMS_PER_USER="Se ha detenido la reproducci\u00f3n porque se est\u00e1n viendo demasiados v\u00eddeos de la misma cuenta.",p4.TOO_MANY_STREAMS_PER_ENTITLEMENT="Se ha detenido la reproducci\u00f3n porque el v\u00eddeo se ha visto en demasiados dispositivos.",p4.UNSUPPORTED_DEVICE="La reproducci\u00f3n no es compatible con este dispositivo.",p4.VIDEO_FORBIDDEN="El acceso a este v\u00eddeo est\u00e1 prohibido.", p4.VIDEO_NOT_FOUND="No es posible encontrar este v\u00eddeo.",p4.BROWSER_OR_EXTENSION_ERROR="Se ha producido un error. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK",p4);var Lt6;var Bh8=g.cL(),rHl=Bh8.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!rHl||rHl.length<2)Lt6=void 0;else{var neU=Bh8.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);Lt6=neU&&neU.length===6?Number(neU[5].replace("_",".")):0}var DU=Lt6,UC=DU>=0;g.Z(g.Ee,EH);g.Ee.prototype.C=function(q,a,w,G,k){return EH.prototype.C.call(this,q,a,w,G,k)};var UJ={},Us=(UJ.FAIRPLAY="fairplay",UJ.PLAYREADY="playready",UJ.WIDEVINE="widevine",UJ.CLEARKEY=null,UJ.FLASHACCESS=null,UJ.UNKNOWN=null,UJ.WIDEVINE_CLASSIC=null,UJ);Vz.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var Xu={},Ig=(Xu.WIDTH={name:"width",video:!0,valid:640,tZ:99999},Xu.HEIGHT={name:"height",video:!0,valid:360,tZ:99999},Xu.FRAMERATE={name:"framerate",video:!0,valid:30,tZ:9999},Xu.BITRATE={name:"bitrate",video:!0,valid:3E5,tZ:2E9},Xu.EOTF={name:"eotf",video:!0,valid:"bt709",tZ:"catavision"},Xu.CHANNELS={name:"channels",video:!1,valid:2,tZ:99},Xu.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",tZ:"invalidformat"},Xu.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", tZ:"nope"},Xu.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",tZ:"av99.0.05M.08"},Xu.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",tZ:"invalid"},Xu.TUNNELMODE={name:"tunnelmode",video:!0,valid:"true",tZ:"false"},Xu);var M07=["h","H"],h0R=["9","("],Sdy=["9h","(h"],fD6=["8","*"],HQ6=["a","A"],cHx=["o","O"],pUx=["m","M"],UzV=["mac3","MAC3"],XUU=["meac3","MEAC3"],jp={},pzU=(jp.h=M07,jp.H=M07,jp["9"]=h0R,jp["("]=h0R,jp["9h"]=Sdy,jp["(h"]=Sdy,jp["8"]=fD6,jp["*"]=fD6,jp.a=HQ6,jp.A=HQ6,jp.o=cHx,jp.O=cHx,jp.m=pUx,jp.M=pUx,jp.mac3=UzV,jp.MAC3=UzV,jp.meac3=XUU,jp.MEAC3=XUU,jp),jTU=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),JQc=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var R={},pf=(R["0"]="f",R["160"]="h",R["133"]="h",R["134"]="h",R["135"]="h",R["136"]="h",R["137"]="h",R["264"]="h",R["266"]="h",R["138"]="h",R["298"]="h",R["299"]="h",R["304"]="h",R["305"]="h",R["214"]="h",R["216"]="h",R["374"]="h",R["375"]="h",R["140"]="a",R["141"]="a",R["327"]="sa",R["258"]="m",R["380"]="mac3",R["328"]="meac3",R["161"]="H",R["142"]="H",R["143"]="H",R["144"]="H",R["222"]="H",R["223"]="H",R["145"]="H",R["224"]="H",R["225"]="H",R["146"]="H",R["226"]="H",R["227"]="H",R["147"]="H",R["384"]= "H",R["376"]="H",R["385"]="H",R["377"]="H",R["149"]="A",R["261"]="M",R["381"]="MAC3",R["329"]="MEAC3",R["598"]="9",R["278"]="9",R["242"]="9",R["243"]="9",R["244"]="9",R["775"]="9",R["776"]="9",R["777"]="9",R["778"]="9",R["779"]="9",R["780"]="9",R["781"]="9",R["782"]="9",R["783"]="9",R["247"]="9",R["248"]="9",R["353"]="9",R["355"]="9",R["356"]="9",R["271"]="9",R["577"]="9",R["313"]="9",R["579"]="9",R["272"]="9",R["302"]="9",R["303"]="9",R["407"]="9",R["408"]="9",R["308"]="9",R["315"]="9",R["330"]= "9h",R["331"]="9h",R["332"]="9h",R["333"]="9h",R["334"]="9h",R["335"]="9h",R["336"]="9h",R["337"]="9h",R["338"]="so",R["600"]="o",R["250"]="o",R["251"]="o",R["774"]="o",R["194"]="*",R["195"]="*",R["220"]="*",R["221"]="*",R["196"]="*",R["197"]="*",R["279"]="(",R["280"]="(",R["317"]="(",R["318"]="(",R["273"]="(",R["274"]="(",R["357"]="(",R["358"]="(",R["275"]="(",R["359"]="(",R["360"]="(",R["276"]="(",R["583"]="(",R["584"]="(",R["314"]="(",R["585"]="(",R["561"]="(",R["277"]="(",R["361"]="(h",R["362"]= "(h",R["363"]="(h",R["364"]="(h",R["365"]="(h",R["366"]="(h",R["591"]="(h",R["592"]="(h",R["367"]="(h",R["586"]="(h",R["587"]="(h",R["368"]="(h",R["588"]="(h",R["562"]="(h",R["409"]="(",R["410"]="(",R["411"]="(",R["412"]="(",R["557"]="(",R["558"]="(",R["394"]="1",R["395"]="1",R["396"]="1",R["397"]="1",R["398"]="1",R["399"]="1",R["720"]="1",R["721"]="1",R["400"]="1",R["401"]="1",R["571"]="1",R["402"]="1",R["694"]="1h",R["695"]="1h",R["696"]="1h",R["697"]="1h",R["698"]="1h",R["699"]="1h",R["700"]="1h", R["701"]="1h",R["702"]="1h",R["703"]="1h",R["386"]="3",R["387"]="w",R["406"]="6",R["787"]="1",R["788"]="1",R["548"]="1e",R["549"]="1e",R["550"]="1e",R["551"]="1e",R["809"]="1e",R["810"]="1e",R["552"]="1e",R["811"]="1e",R["812"]="1e",R["553"]="1e",R["813"]="1e",R["814"]="1e",R["554"]="1e",R["815"]="1e",R["816"]="1e",R["555"]="1e",R["817"]="1e",R["818"]="1e",R["572"]="1e",R["556"]="1e",R["645"]="(",R["646"]="(",R["647"]="(",R["648"]="(",R["649"]="(",R["650"]="(",R["651"]="(",R["652"]="(",R["653"]="(", R["654"]="(",R["655"]="(",R["656"]="(",R["657"]="(",R["658"]="(",R["659"]="(",R["660"]="(",R["661"]="(",R["662"]="(",R["663"]="(",R["664"]="(",R["665"]="(",R["666"]="(",R["667"]="(",R["668"]="(",R["669"]="(",R["670"]="(",R["671"]="(",R["672"]="(",R["673"]="(",R["674"]="(h",R["675"]="(h",R["676"]="(h",R["677"]="(h",R["678"]="(h",R["679"]="(h",R["680"]="(h",R["681"]="(h",R["682"]="(h",R["683"]="(h",R["684"]="(h",R["685"]="(h",R["686"]="(h",R["687"]="(h",R["688"]="A",R["689"]="A",R["690"]="A",R["691"]= "MEAC3",R["773"]="i",R["806"]="I",R["805"]="I",R["829"]="9",R["830"]="9",R["831"]="9",R["832"]="9",R["833"]="9",R["834"]="9",R["835"]="9",R["836"]="9",R["892"]="9",R["893"]="9",R["837"]="9",R["838"]="9",R["839"]="9",R["840"]="9",R["841"]="(",R["842"]="(",R["843"]="(",R["844"]="(",R["845"]="(",R["846"]="(",R["847"]="(",R["848"]="(",R["894"]="(",R["895"]="(",R["849"]="(",R["850"]="(",R["851"]="(",R["852"]="(",R["865"]="9",R["866"]="9",R["867"]="9",R["868"]="9",R["869"]="9",R["870"]="9",R["871"]="9", R["872"]="9",R["896"]="9",R["897"]="9",R["873"]="9",R["874"]="9",R["875"]="9",R["876"]="9",R["877"]="(",R["878"]="(",R["879"]="(",R["880"]="(",R["881"]="(",R["882"]="(",R["883"]="(",R["884"]="(",R["898"]="(",R["899"]="(",R["885"]="(",R["886"]="(",R["887"]="(",R["888"]="(",R);var oV={},F5m=(oV.STEREO_LAYOUT_UNKNOWN=0,oV.STEREO_LAYOUT_LEFT_RIGHT=1,oV.STEREO_LAYOUT_TOP_BOTTOM=2,oV);var UxV={Th2:0,EL9:1,eFt:2,0:"AUDIO_QUALITY_SETTING_UNKNOWN",1:"AUDIO_QUALITY_SETTING_HIGHER_QUALITY",2:"AUDIO_QUALITY_SETTING_NORMAL_QUALITY"};var IV,BX,uT,ZWl;IV={};g.SG=(IV.auto=0,IV.tiny=144,IV.light=144,IV.small=240,IV.medium=360,IV.large=480,IV.hd720=720,IV.hd1080=1080,IV.hd1440=1440,IV.hd2160=2160,IV.hd2880=2880,IV.highres=4320,IV);BX={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};uT={}; ZWl=(uT.QUALITY_ORDINAL_UNKNOWN=0,uT.QUALITY_ORDINAL_144P_SAVER=124,uT.QUALITY_ORDINAL_144P=144,uT.QUALITY_ORDINAL_240P_SAVER=220,uT.QUALITY_ORDINAL_240P=240,uT.QUALITY_ORDINAL_360P_SAVER=340,uT.QUALITY_ORDINAL_360P=360,uT.QUALITY_ORDINAL_480P=480,uT.QUALITY_ORDINAL_608P_SAVER=588,uT.QUALITY_ORDINAL_608P=608,uT.QUALITY_ORDINAL_720P=720,uT.QUALITY_ORDINAL_720P_ENHANCED=740,uT.QUALITY_ORDINAL_1080P=1080,uT.QUALITY_ORDINAL_1080P_ENHANCED=1100,uT.QUALITY_ORDINAL_1440P=1440,uT.QUALITY_ORDINAL_2160P=2160, uT.QUALITY_ORDINAL_HIGHRES=9999,uT);var HY="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");ff.prototype.isHdr=function(){return this.V==="smpte2084"||this.V==="arib-std-b67"};Ue.prototype.O3=function(){return this.containerType===2}; Ue.prototype.isEncrypted=function(){return!!this.vN}; Ue.prototype.t$=function(){return!!this.audio}; Ue.prototype.iy=function(){return!!this.video}; var oK=!1;g.Z(Yj,g.ya);g.C=Yj.prototype;g.C.appendBuffer=function(q,a,w){if(this.VL.Qy()!==this.appendWindowStart+this.start||this.VL.Ch()!==this.appendWindowEnd+this.start||this.VL.g$()!==this.timestampOffset+this.start)this.VL.supports(1),this.VL.Sv(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.VL.u5(this.timestampOffset+this.start);this.VL.appendBuffer(q,a,w)}; g.C.abort=function(){this.VL.abort()}; g.C.remove=function(q,a){this.VL.remove(q+this.start,a+this.start)}; g.C.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.C.clear=function(){this.VL.clear()}; g.C.Sv=function(q,a){this.appendWindowStart=q;this.appendWindowEnd=a}; g.C.Yk=function(){return this.timestampOffset+this.start}; g.C.Qy=function(){return this.appendWindowStart}; g.C.Ch=function(){return this.appendWindowEnd}; g.C.u5=function(q){this.timestampOffset=q}; g.C.g$=function(){return this.timestampOffset}; g.C.sB=function(q){q=this.VL.sB(q===void 0?!1:q);return N7(q,this.start,this.end)}; g.C.vI=function(){return this.VL.vI()}; g.C.GT=function(){return this.VL.GT()}; g.C.Eo=function(){return this.VL.Eo()}; g.C.Ic=function(){return this.VL.Ic()}; g.C.WP=function(){this.VL.WP()}; g.C.BY=function(q){return this.VL.BY(q)}; g.C.il=function(){return this.VL.il()}; g.C.Kh=function(){return this.VL.Kh()}; g.C.zy=function(q,a,w){this.VL.zy(q,a,w)}; g.C.Zj=function(q,a,w){this.VL.Zj(q,a,w)}; g.C.Ss=function(q,a){return this.VL.Ss(q,a)}; g.C.supports=function(q){return this.VL.supports(q)}; g.C.JX=function(){return this.VL.JX()}; g.C.isView=function(){return!0}; g.C.FA=function(){return this.VL.FA()?this.isActive:!1}; g.C.isLocked=function(){return this.B8&&!this.isActive}; g.C.Kk=function(q){q=this.VL.Kk(q);q.vw=this.start+"-"+this.end;return q}; g.C.I2=function(){return this.VL.I2()}; g.C.RB=function(){return this.VL.RB()}; g.C.Oy=function(){return this.VL.Oy()}; g.C.qB=function(){this.VL.KP(this.Od);g.ya.prototype.qB.call(this)};var Mt=!1;g.Z(KW,g.ya);g.C=KW.prototype;g.C.appendBuffer=function(q,a,w){this.eb=!1;w&&(this.Qe=w);if(q.length){var G;((G=this.M1)==null?0:G.appendBuffer)?this.M1.appendBuffer(q):this.M1?this.M1.append(q):this.pW&&this.pW.webkitSourceAppend(this.id,q)}a&&(a.isEncrypted()&&(this.cG=this.Qe),a.type===3&&(this.Ap=a),this.qt.push(a.c5()),this.qt.length>4&&this.qt.shift());this.jO&&(this.jO.length>=2||q.length>1048576?delete this.jO:this.jO.push(q))}; g.C.abort=function(){try{this.M1?this.M1.abort():this.pW&&this.pW.webkitSourceAbort(this.id)}catch(a){if(ACy){var q=new g.UH("Error while abort the source buffer: "+a.name+", "+a.message);g.mQ(q)}}this.Qe=this.Ap=null}; g.C.remove=function(q,a,w){this.eb=!1;var G;if((G=this.M1)==null?0:G.remove)w&&w({b:wD(this.sB()),s:q,e:a}),this.M1.remove(q,a)}; g.C.removeAll=function(){this.remove(this.Qy(),this.Ch())}; g.C.clear=function(){this.Eo()||(this.abort(),this.removeAll(),this.cG=this.Qe=this.Ap=null,this.appendWindowStart=this.timestampOffset=0,this.QB=aY([],[]),this.eb=!1,this.jO=Pz?[]:void 0,this.qC=!0)}; g.C.Qy=function(){if(Mt&&this.iy)return this.appendWindowStart;var q;return((q=this.M1)==null?void 0:q.appendWindowStart)||0}; g.C.Ch=function(){var q;return((q=this.M1)==null?void 0:q.appendWindowEnd)||0}; g.C.Sv=function(q,a){this.M1&&(Mt&&this.iy?(this.appendWindowStart=q,this.M1.appendWindowEnd=a):q>this.Qy()?(this.M1.appendWindowEnd=a,this.M1.appendWindowStart=q):(this.M1.appendWindowStart=q,this.M1.appendWindowEnd=a))}; g.C.Yk=function(){return this.timestampOffset}; g.C.u5=function(q){Mt?this.timestampOffset=q:this.supports(1)&&(this.M1.timestampOffset=q)}; g.C.g$=function(){return Mt?this.timestampOffset:this.supports(1)?this.M1.timestampOffset:0}; g.C.sB=function(q){if(q===void 0?0:q)return this.eb||this.vI()||(this.QB=this.sB(!1),this.eb=!0),this.QB;try{return this.M1?this.M1.buffered:this.pW?this.pW.webkitSourceBuffered(this.id):aY([0],[Infinity])}catch(a){return aY([],[])}}; g.C.vI=function(){var q;return((q=this.M1)==null?void 0:q.updating)||!1}; g.C.Eo=function(){return this.qC}; g.C.Ic=function(){return!this.qC&&this.vI()}; g.C.WP=function(){this.qC=!1}; g.C.BY=function(q){var a=q==null?void 0:q.K7;q=q==null?void 0:q.containerType;return!a&&!q||a===this.K7&&q===this.containerType}; g.C.il=function(){return this.Qe}; g.C.Kh=function(){return this.cG}; g.C.Ss=function(q,a){return this.containerType!==q||this.K7!==a}; g.C.zy=function(q,a,w){if(this.containerType!==q||w&&this.Ss(q,w))this.supports(4),dD()&&this.M1.changeType(a),w&&(this.K7=w);this.containerType=q}; g.C.Zj=function(q,a,w){this.containerType&&this.Ss(q,a)&&dD()&&this.M1.changeType(w);this.containerType=q;this.K7=a}; g.C.JX=function(){return this.Ap}; g.C.isView=function(){return!1}; g.C.supports=function(q){switch(q){case 1:var a;return((a=this.M1)==null?void 0:a.timestampOffset)!==void 0;case 0:var w;return!((w=this.M1)==null||!w.appendBuffer);case 2:var G;return!((G=this.M1)==null||!G.remove);case 3:var k,b;return!!(((k=this.M1)==null?0:k.addEventListener)&&((b=this.M1)==null?0:b.removeEventListener));case 4:return!(!this.M1||!this.M1.changeType);default:return!1}}; g.C.FA=function(){return!this.vI()}; g.C.isLocked=function(){return!1}; g.C.Kk=function(q){q.to=this.g$();q.up=this.vI();var a,w=((a=this.M1)==null?void 0:a.appendWindowStart)||0,G;a=((G=this.M1)==null?void 0:G.appendWindowEnd)||Infinity;q.aw=w.toFixed(3)+"-"+a.toFixed(3);return q}; g.C.GT=function(){var q;return((q=this.M1)==null?void 0:q.writeHead)||0}; g.C.I2=function(){for(var q={},a=0;a=7&&(!a||((G=this.aW)==null?0:G.T("mweb_ios_allow_playback_workaround_when_ready")))&&QxN(this,function(){g.ee(function(){u9y(q,q.getCurrentTime(),0)},500)})}return a}; g.C.seekTo=function(q){this.rl()>0&&(UC&&DU<4&&(q=Math.max(.1,q)),this.setCurrentTime(q))}; g.C.MX=function(){if(!this.U&&this.w8)if(this.w8.D)try{var q;Zh(this,{l:"mer",sr:(q=this.aW)==null?void 0:q.Vp(),rs:Vy(this.w8)});this.w8.clear();this.U=this.w8;this.w8=void 0}catch(a){q=new g.UH("Error while clearing Media Source in MediaElement: "+a.name+", "+a.message),g.mQ(q),this.stopVideo()}else this.stopVideo()}; g.C.stopVideo=function(){var q=this;if(!this.U){var a;(a=this.w8)==null||jAl(a);if(JCU){if(!this.W){var w=new m5;w.then(void 0,function(){}); this.W=w;mBf&&this.pause();g.ee(function(){q.W===w&&(LW(q),w.resolve())},200)}}else LW(this)}}; g.C.oO=function(){var q=this.xe();return lw(q)&&this.getDuration()?bw(q,this.getCurrentTime()):0}; g.C.pS=function(){var q=this.getDuration();return q===Infinity?1:q?this.oO()/q:0}; g.C.Kk=function(){try{var q=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:wD(this.ek(),",",3),vbu:wD(this.xe()),vbs:wD(this.C$()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.rl(),vns:""+this.aI(),vec:""+this.Ne(),vemsg:this.Jp(),vvol:""+this.getVolume(),vdom:""+ +this.JA(),vsrc:""+ +!!this.dh(),vw:""+q.width,vh:""+q.height}}catch(a){return{}}}; g.C.hasError=function(){return this.Ne()>0}; g.C.addEventListener=function(q,a){this.Y.listen(q,a,!1,this);this.QD(q)}; g.C.removeEventListener=function(q,a){this.Y.v5(q,a,!1,this)}; g.C.dispatchEvent=function(q){if(this.W&&q.type==="pause")return!1;if(Qyy){var a,w=((a=q.V)==null?void 0:a.timeStamp)||Infinity;a=w>performance.now()?w-Date.now()+performance.now():w;w=this.U||this.w8;if((w==null?0:w.Eo())||a<=((w==null?void 0:w.L)||0)){var G;Zh(this,{l:"mede",sr:(G=this.aW)==null?void 0:G.Vp(),et:q.type});return!1}if(this.TT)return Zh(this,{l:"medes",et:q.type}),w&&q.type==="seeking"&&(w.L=performance.now(),this.TT=!1),!1}return this.Y.dispatchEvent(q)}; g.C.UC=function(){this.L=!1}; g.C.IC=function(){this.L=!0;this.pZ(!0)}; g.C.jx=function(){this.L&&!this.VA()&&this.pZ(!0)}; g.C.equals=function(q){return!!q&&q.cq()===this.cq()}; g.C.qB=function(){this.X&&this.removeEventListener("volumechange",this.jx);JCU&&LW(this);g.c.prototype.qB.call(this)}; var JCU=!1,mBf=!1,Qyy=!1,zcN=!1;g.C=g.rD.prototype;g.C.isPaused=function(){return g.v(this,4)}; g.C.isPlaying=function(){return g.v(this,8)&&!g.v(this,512)&&!g.v(this,64)&&!g.v(this,2)}; g.C.isOrWillBePlaying=function(){return g.v(this,8)&&!g.v(this,2)&&!g.v(this,1024)}; g.C.isCued=function(){return g.v(this,64)&&!g.v(this,8)&&!g.v(this,4)}; g.C.isBuffering=function(){return g.v(this,1)&&!g.v(this,2)}; g.C.isError=function(){return g.v(this,128)}; g.C.isSuspended=function(){return g.v(this,512)}; g.C.xV=function(){return g.v(this,64)&&g.v(this,4)}; g.C.toString=function(){return"PSt."+this.state.toString(16)}; var tS={},v_=(tS.BUFFERING="buffering-mode",tS.CUED="cued-mode",tS.ENDED="ended-mode",tS.PAUSED="paused-mode",tS.PLAYING="playing-mode",tS.SEEKING="seeking-mode",tS.UNSTARTED="unstarted-mode",tS);g.Z(Xb,g.c);g.C=Xb.prototype;g.C.Xj=function(){return this.W}; g.C.bF=function(){return this.slot}; g.C.g8=function(){return this.layout}; g.C.init=function(){var q=oZ(this.layout.clientMetadata,"metadata_type_video_length_seconds"),a=oZ(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");lf(this.layout.d$)&&y8(this.q1.get(),this.layout.layoutId,{zH:a,Ac:q,listener:this,z8:this.jo()});qj8(this.p7.get(),this);q=this.bT;a=this.layout.layoutId;var w={z8:this.jo()};q.V.set(a,w);this.X$()}; g.C.W4=function(){}; g.C.release=function(){lf(this.layout.d$)&&qn(this.q1.get(),this.layout.layoutId);gl8(this.p7.get(),this);this.bT.V.delete(this.layout.layoutId);this.Kg()}; g.C.Fk=function(){}; g.C.Yx=function(){}; g.C.startRendering=function(q){l4(jN(this));if(oY(this,q)){var a=this.V;eG(a.params.S2.Q7.get(),!0)&&Jym(a,"p_sr",{});IY(this);this.YN(q);this.jo()||this.Z$(!1)}}; g.C.Bq=function(q,a){if(a.layoutId===this.layout.layoutId){this.mM="rendering";this.U=this.RW.get().isMuted()||this.RW.get().getVolume()===0;this.xl("impression");this.xl("start");if(this.RW.get().isMuted()){Wz(this,"mute");var w;q=((w=U2(this))==null?void 0:w.muteCommands)||[];Lp(this.Lk.get(),q,this.layout.layoutId)}if(this.RW.get().isFullscreen()){this.SG("fullscreen");var G;w=((G=U2(this))==null?void 0:G.fullscreenCommands)||[];Lp(this.Lk.get(),w,this.layout.layoutId)}this.jo()||(G=this.j1.get(), G.W&&!G.U&&(G.D=!1,G.U=!0,G.actionType!=="ad_to_video"&&(Af("pbs",void 0,G.actionType),g.dF("finalize_all_timelines")&&a2l(G.actionType))));this.Pc(1);this.yX(a);var k;a=((k=U2(this))==null?void 0:k.impressionCommands)||[];Lp(this.Lk.get(),a,this.layout.layoutId)}}; g.C.ER=function(q,a,w){this.X={BV:3,C5:q==="load_timeout"?402:400,errorMessage:a.message};this.xl("error");var G;q=((G=U2(this))==null?void 0:G.errorCommands)||[];Lp(this.Lk.get(),q,this.layout.layoutId);this.jo()||this.yx.BJ(this.slot,this.layout,a,w)}; g.C.s0=function(){if(this.mM==="rendering"){Wz(this,"pause");var q,a=((q=U2(this))==null?void 0:q.pauseCommands)||[];Lp(this.Lk.get(),a,this.layout.layoutId);this.Pc(2)}}; g.C.mN=function(){if(this.mM==="rendering"){Wz(this,"resume");var q,a=((q=U2(this))==null?void 0:q.resumeCommands)||[];Lp(this.Lk.get(),a,this.layout.layoutId)}}; g.C.vz=function(q,a){a=a===void 0?!1:a;if(this.mM==="rendering"){var w={currentTimeSec:q,flush:a};N4(this.V,"p_ip",w);$J(this.C7,q*1E3,a);this.U||$J(this.C7,q*1E3,a===void 0?!1:a);var G=this.bC();if(G){G/=1E3;if(q>=G*.25||a)this.xl("first_quartile"),N4(this.V,"p_fq",w);if(q>=G*.5||a)this.xl("midpoint"),N4(this.V,"p_sq",w);if(q>=G*.75||a)this.xl("third_quartile"),N4(this.V,"p_tq",w);this.Q7.get().j.B().experiments.Zh("enable_progress_command_flush_on_kabuki")?AQ(this.Y,q*1E3,a):AQ(this.Y,q*1E3,q3J(this)? a:!1)}}}; g.C.yV=function(){var q;return((q=uw(this.n7.get(),1))==null?void 0:q.clientPlaybackNonce)||""}; g.C.eN=function(q,a){q.layoutId!==this.layout.layoutId?this.yx.BJ(this.slot,q,new Xv("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"):a()}; g.C.G0=function(q,a,w){if(a.layoutId===this.layout.layoutId)switch(this.mM="not_rendering",this.layoutExitReason=void 0,this.jo()||(q=w!=="normal"||this.position+1===this.L)&&this.Z$(q),this.BO(w),this.Pc(0),w){case "abandoned":if(FZ(this.C7,"impression")){var G,k=((G=U2(this))==null?void 0:G.abandonCommands)||[];Lp(this.Lk.get(),k,this.layout.layoutId)}break;case "normal":G=((k=U2(this))==null?void 0:k.completeCommands)||[];Lp(this.Lk.get(),G,this.layout.layoutId);break;case "skipped":var b;G=((b= U2(this))==null?void 0:b.skipCommands)||[];Lp(this.Lk.get(),G,this.layout.layoutId)}}; g.C.hd=function(){return this.layout.layoutId}; g.C.Nv=function(){return this.X}; g.C.tT=function(){if(this.mM==="rendering"){this.C7.xl("active_view_measurable");var q,a=((q=U2(this))==null?void 0:q.activeViewMeasurableCommands)||[];Lp(this.Lk.get(),a,this.layout.layoutId)}}; g.C.pg=function(){if(this.mM==="rendering"){this.C7.xl("active_view_fully_viewable_audible_half_duration");var q,a=((q=U2(this))==null?void 0:q.activeViewFullyViewableAudibleHalfDurationCommands)||[];Lp(this.Lk.get(),a,this.layout.layoutId)}}; g.C.Ei=function(){if(this.mM==="rendering"){this.C7.xl("active_view_viewable");var q,a=((q=U2(this))==null?void 0:q.activeViewViewableCommands)||[];Lp(this.Lk.get(),a,this.layout.layoutId)}}; g.C.Lg=function(){if(this.mM==="rendering"){this.C7.xl("audio_audible");var q,a=((q=U2(this))==null?void 0:q.activeViewAudioAudibleCommands)||[];Lp(this.Lk.get(),a,this.layout.layoutId)}}; g.C.DA=function(){if(this.mM==="rendering"){this.C7.xl("audio_measurable");var q,a=((q=U2(this))==null?void 0:q.activeViewAudioMeasurableCommands)||[];Lp(this.Lk.get(),a,this.layout.layoutId)}}; g.C.Z$=function(q){this.j1.get().Z$(oZ(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,q,this.position,this.L,!1)}; g.C.onFullscreenToggled=function(q){if(this.mM==="rendering")if(q){this.SG("fullscreen");var a,w=((a=U2(this))==null?void 0:a.fullscreenCommands)||[];Lp(this.Lk.get(),w,this.layout.layoutId)}else this.SG("end_fullscreen"),a=((w=U2(this))==null?void 0:w.endFullscreenCommands)||[],Lp(this.Lk.get(),a,this.layout.layoutId)}; g.C.onVolumeChange=function(){if(this.mM==="rendering")if(this.RW.get().isMuted()){Wz(this,"mute");var q,a=((q=U2(this))==null?void 0:q.muteCommands)||[];Lp(this.Lk.get(),a,this.layout.layoutId)}else Wz(this,"unmute"),q=((a=U2(this))==null?void 0:a.unmuteCommands)||[],Lp(this.Lk.get(),q,this.layout.layoutId)}; g.C.jG=function(){}; g.C.lD=function(){}; g.C.Ba=function(){}; g.C.Tg=function(){}; g.C.Nz=function(){}; g.C.SG=function(q){this.C7.SG(q,!this.U)}; g.C.xl=function(q){this.C7.xl(q,!this.U)}; g.C.jo=function(){var q=oZ(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return q===void 0?(Gj("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.Q7.get().jo(q)};g.Z(gv,Xb);g.C=gv.prototype;g.C.X$=function(){}; g.C.Kg=function(){var q=this.p7.get();q.E6===this&&(q.E6=null);this.timer.stop()}; g.C.Fk=function(){this.timer.stop();Xb.prototype.s0.call(this)}; g.C.Yx=function(){wv(this);Xb.prototype.mN.call(this)}; g.C.bC=function(){return oZ(this.g8().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.C.m6=function(q,a){var w=this;this.eN(q,function(){w.mM!=="rendering_stop_requested"&&(w.mM="rendering_stop_requested",w.layoutExitReason=a,tB(w,a),w.timer.stop())})}; g.C.EQ=function(){var q=Date.now(),a=q-this.RQ;this.RQ=q;this.Uj+=a;this.Uj>=this.bC()?this.KI():(this.vz(this.Uj/1E3),aX(this,this.Uj))}; g.C.BO=function(){}; g.C.XF=function(){}; g.Z(GH,gv);g.C=GH.prototype;g.C.nO=function(q){if(this.mM!=="not_rendering"){q=vz(this,q);var a=this.RW.get().getPresentingPlayerType()===2;this.mM==="rendering_start_requested"?a&&Rm(q)&&this.YI():a?g.Ox(q,2)?Gj("Receive player ended event during MediaBreak",this.bF(),this.g8()):zL(this,q):this.zp()}}; g.C.YN=function(){Rcm(this);NcI(this.RW.get());this.p7.get().E6=this;mu("pbp")||mu("pbs")||Af("pbp");mu("pbp","watch")||mu("pbs","watch")||Af("pbp",void 0,"watch");this.YI()}; g.C.yX=function(q){this.j1.get();var a=oZ(q.clientMetadata,"metadata_type_ad_placement_config").kind,w=this.position===0;q=oZ(q.clientMetadata,"metadata_type_linked_in_player_layout_type");q={adBreakType:iw(a),adType:Y3_(q)};var G=void 0;w?a!=="AD_PLACEMENT_KIND_START"&&(G="video_to_ad"):G="ad_to_ad";E3("ad_mbs",void 0,G);g.VI(q,G);wv(this)}; g.C.zp=function(){this.ws()}; g.C.KI=function(){apG(this);this.ws()}; g.Z(kb,gv);g.C=kb.prototype;g.C.nO=function(q){this.mM!=="not_rendering"&&(q=vz(this,q),zL(this,q))}; g.C.YN=function(){Gj("Not used in SSAP")}; g.C.yX=function(){wv(this)}; g.C.zp=function(){Gj("Not used in SSAP")}; g.C.KI=function(){apG(this);this.yx.G7(this.bF(),this.g8(),"normal")}; g.Z(b3,kb);b3.prototype.m6=function(q,a){var w=this;this.eN(q,function(){wl(w.W,a)&&(w.mM="rendering_stop_requested",w.layoutExitReason=a,tB(w,a),w.timer.stop())})}; b3.prototype.startRendering=function(q){l4(jN(this));oY(this,q)&&(IY(this),this.p7.get().E6=this)};g.Z(ev,Xb);g.C=ev.prototype;g.C.zp=function(){this.ws()}; g.C.nO=function(q){if(this.mM!=="not_rendering"){q=vz(this,q);var a=this.RW.get().getPresentingPlayerType()===2;this.mM==="rendering_start_requested"?a&&Rm(q)&&this.YI():!a||g.Ox(q,2)?this.ws():zL(this,q)}}; g.C.X$=function(){oZ(this.g8().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=oZ(this.g8().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; g.C.Kg=function(){oZ(this.g8().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.UP){var q=this.context.S2,a=this.UP,w=this.g8().layoutId;if(eG(q.Q7.get(),!0)){var G={};q.QN("mccru",(G.cid=a,G.p_ac=w,G))}this.ya.get().removeCueRange(this.UP)}this.UP=void 0;var k;(k=this.oV)==null||k.dispose();this.w5&&this.w5.dispose()}; g.C.YN=function(q){var a=Of(this.Q7.get()),w=l3(this.Q7.get());if(a&&w&&!this.jo()){w=oZ(q.clientMetadata,"metadata_type_preload_player_vars");var G=this.Q7.get();G=g.Wo(G.j.B().experiments,"html5_preload_wait_time_secs");w&&this.w5&&this.w5.start(G*1E3)}kzm(this,q);Rcm(this);a?(w=this.oa.get(),q=oZ(q.clientMetadata,"metadata_type_player_vars"),w.j.loadVideoByPlayerVars(q,!1,2)):QHU(this.oa.get(),oZ(q.clientMetadata,"metadata_type_player_vars"));var k;(k=this.oV)==null||k.start();a||this.oa.get().j.playVideo(2)}; g.C.yX=function(){var q;(q=this.oV)==null||q.stop();this.vG();(this.adCpn=DkJ(this))||Gj("Media layout confirmed started, but ad CPN not set.");this.S1.get().DN("onAdStart",this.adCpn);this.nN=Date.now()}; g.C.bC=function(){var q;return(q=uw(this.n7.get(),2))==null?void 0:q.zG}; g.C.bz=function(){this.C7.SG("clickthrough")}; g.C.m6=function(q,a){var w=this;this.eN(q,function(){if(w.mM!=="rendering_stop_requested"){w.mM="rendering_stop_requested";w.layoutExitReason=a;tB(w,a);var G;(G=w.oV)==null||G.stop();w.w5&&w.w5.stop();bsK(w)}})}; g.C.onCueRangeEnter=function(q){if(q!==this.UP)Gj("Received CueRangeEnter signal for unknown layout.",this.bF(),this.g8(),{cueRangeId:q});else{var a=this.context.S2,w=this.g8().layoutId;if(eG(a.Q7.get(),!0)){var G={};a.QN("mccre",(G.cid=q,G.p_ac=w,G))}this.ya.get().removeCueRange(this.UP);this.UP=void 0;Mh(this.context.Q7.get(),"html5_ssap_flush_at_stop_rendering")&&this.jo()||(q=oZ(this.g8().clientMetadata,"metadata_type_video_length_seconds"),this.vz(q,!0),this.xl("complete"))}}; g.C.BO=function(q){q!=="abandoned"&&this.S1.get().DN("onAdComplete");this.S1.get().DN("onAdEnd",this.adCpn)}; g.C.vG=function(){this.UP="adcompletioncuerange:"+this.g8().layoutId;this.ya.get().addCueRange(this.UP,0x7ffffffffffff,0x8000000000000,!1,this,2,2);var q=this.context.S2,a=this.UP,w=this.g8().layoutId;if(eG(q.Q7.get(),!0)){var G={};q.QN("mccr",(G.cid=a,G.p_ac=w,G))}}; g.C.onCueRangeExit=function(){}; g.C.XF=function(q){this.mM==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&q>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.RW.get().gF(!0),this.vz(q))}; g.C.vz=function(q,a){Xb.prototype.vz.call(this,q,a===void 0?!1:a);a=Date.now()-this.nN;var w=q*1E3,G={contentCpn:this.yV(),adCpn:DkJ(this)};if(q-this.z$>=5){var k=a=2||(this.xF.m6(this.layout,a),q=Mh(this.params.context.Q7.get(),"html5_ssap_pass_transition_reason")&&a==="abandoned",this.Nn()&&!q&&(Mh(this.params.context.Q7.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(a)||Gj("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:a})),this.W5.get().finishSegmentByCpn(this.layout.layoutId, uw(this.n7.get(),1).clientPlaybackNonce,RY(a,this.params.context.Q7))),this.RW.get().removeListener(this),this.kP()&&Gt(this.xF.Xj())&&this.Xk.G0(this.slot,this.layout,this.xF.Xj().V))}; g.C.Sd=function(q,a,w){EpN({cpn:q,s3:this.n7.get(),h7:!0});this.g8().layoutId!==q||Mh(this.params.context.Q7.get(),"html5_ssap_pass_transition_reason")&&w===5||(this.xF.Xj().currentState<2&&(q=yy(w,this.params.context.Q7),q==="error"?this.Xk.BJ(this.slot,this.layout,new Xv("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:w},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):C8(this.Gh, this.layout,q)),Mh(this.params.context.Q7.get(),"html5_ssap_exit_without_waiting_for_transition")||this.Xk.G0(this.slot,this.layout,this.xF.Xj().V))};g.Z(dv,g.c);g.C=dv.prototype;g.C.bF=function(){return this.slot}; g.C.g8=function(){return this.layout}; g.C.CX=function(){}; g.C.Cu=function(){return this.xD[this.fK]}; g.C.Qi=function(){return this.fK}; g.C.Fk=function(q,a){var w=this.Cu();a.layoutId!==$b(w,q,a)?Gj("pauseLayout for a PlayerBytes layout that is not currently active",q,a):w.Fk()}; g.C.Yx=function(q,a){var w=this.Cu();a.layoutId!==$b(w,q,a)?Gj("resumeLayout for a PlayerBytes layout that is not currently active",q,a):w.Yx()}; g.C.Nr=function(q,a){var w=this.Cu();$ZN(this,q,a);sSj(w,q,a)&&this.kI(w.bF(),w.g8(),"skipped")}; g.C.VP=function(q,a){var w=this.Cu();FuN(this);CqU(w,q,a)&&(q=Zsc(this,w,q,a),q!==void 0&&(this.jo()?Gj("Should not happen. Should delete"):V3V(this,w.bF(),w.g8(),q)))}; g.C.nJ=function(q,a){var w=Object.assign({},TH(this),{layoutId:a.layoutId}),G=w.layoutId,k=w.h7;if(w.z8){var b={};Oe(w.s3,"wrse",(b.ec=G,b.is=k,b.ctp=b4(G),b))}YP(this.Qx,q,a)}; g.C.Bq=function(q,a){var w;(w=this.Cu())==null||w.Bq(q,a)}; g.C.G0=function(q,a,w){a.layoutId===this.g8().layoutId&&(this.kZ=!1,qh(this.r$(),this));var G;(G=this.Cu())==null||G.G0(q,a,w)}; g.C.XF=function(q){var a;(a=this.Cu())==null||a.XF(q)}; g.C.RI=function(q,a,w){this.Qi()===-1&&(this.callback.Bq(this.slot,this.layout),this.fK++);var G=this.Cu();G?(G.ER(q,a,w),this.jo()&&this.callback.BJ(this.slot,this.layout,a,w)):Gj("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.Qi()),layoutId:this.g8().layoutId})}; g.C.onFullscreenToggled=function(q){var a;(a=this.Cu())==null||a.onFullscreenToggled(q)}; g.C.jG=function(q){var a;(a=this.Cu())==null||a.jG(q)}; g.C.Ba=function(q){var a;(a=this.Cu())==null||a.Ba(q)}; g.C.onVolumeChange=function(){var q;(q=this.Cu())==null||q.onVolumeChange()}; g.C.nY=function(q,a,w){PT(this.Qx,q,a,w)}; g.C.R6=function(q){q.startRendering(q.g8())}; g.C.init=function(){var q=oZ(this.g8().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");q&&(q.current=this);if(this.xD.length<1)throw new W("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.xD.length)});if(q=oZ(this.g8().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))q.current=this;q=g.V(this.xD);for(var a=q.next();!a.done;a=q.next())a=a.value,a.init(),jGJ(this.Qx,this.slot,a.g8()),o5j(this.Qx,this.slot,a.g8()); if(this.jo())for(this.n7.get().addListener(this),TCc(TJf(this),this.n7.get()),q=TJf(this),q=g.V(q),a=q.next();!a.done;a=q.next())this.md(a.value)}; g.C.md=function(q){var a=oZ(q.clientMetadata,"metadata_type_player_vars");a?(q.layoutType!=="LAYOUT_TYPE_MEDIA"&&Gj("Non-video ad contains playerVars",this.slot,q),this.oa.get().addPlayerResponseForAssociation({playerVars:a})):(q=PqU(q),this.oa.get().addPlayerResponseForAssociation({hU:q}))}; g.C.release=function(){var q=oZ(this.g8().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");q&&(q.current=null);if(q=oZ(this.g8().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))q.current=null;q=g.V(this.xD);for(var a=q.next();!a.done;a=q.next())a=a.value,IVj(this.Qx,this.slot,a.g8()),a.release();this.jo()&&(this.n7.get().removeListener(this),$lV())}; g.C.eN=function(q){return q.layoutId!==this.g8().layoutId?(this.callback.BJ(this.bF(),q,new Xv("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.g8().layoutId+("and LayoutType: "+this.g8().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; g.C.bP=function(){this.RW.get().addListener(this);yJ(this.r$(),this)}; g.C.nO=function(q){if(q.state.isError()){var a,w;this.RI((a=q.state.lT)==null?void 0:a.errorCode,new Xv("There was a player error during this media layout.",{playerErrorCode:(w=q.state.lT)==null?void 0:w.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(a=this.Cu())&&a.nO(q)}; g.C.jo=function(){var q=oZ(this.bF().clientMetadata,"metadata_type_eligible_for_ssap");return q===void 0?(Gj("Expected SSAP eligibility in PlayerBytes slots",this.bF(),this.g8()),!1):this.Q7.get().jo(q)}; g.C.lD=function(){}; g.C.MH=function(){}; g.C.D8=function(){}; g.C.Hm=function(){}; g.C.vJ=function(){}; g.C.Lu=function(){}; g.C.iT=function(){}; g.C.LW=function(){}; g.C.Zy=function(){}; g.C.Uv=function(){}; g.C.Xf=function(){}; g.C.Tg=function(){}; g.C.Nz=function(){}; g.Z(Za,dv);g.C=Za.prototype;g.C.ME=function(q,a,w){this.kI(q,a,w)}; g.C.lf=function(q,a){this.kI(q,a,"error")}; g.C.kI=function(q,a,w){var G=this;E4f(this,q,a,w,function(){sf(G,G.Qi()+1)})}; g.C.startRendering=function(q){this.eN(q)&&(this.bP(),VBV(this.j1.get()),BTK(this.Q7.get())||NcI(this.RW.get()),this.Qi()===-1&&sf(this,this.Qi()+1))}; g.C.m6=function(q,a){var w=this;this.kZ=!0;this.Qi()===this.xD.length?this.callback.G0(this.slot,this.layout,a):(q=this.Cu(),q.m6(q.g8(),a),this.iG=function(){w.callback.G0(w.slot,w.layout,a)}); this.RW.get().j.nP();QHU(this.oa.get(),{});q=RQ(this.RW.get(),1);q.isPaused()&&!g.v(q,2)&&this.RW.get().playVideo();this.RW.get().removeListener(this);this.kZ&&Jff(this)}; g.C.Sd=function(){}; g.C.CQ=function(){}; g.C.G7=function(){}; g.Z(Ef,dv);g.C=Ef.prototype;g.C.ME=function(q,a,w){q=Object.assign({},TH(this),{layoutId:a.layoutId,layoutExitReason:w});a=q.layoutId;w=q.layoutExitReason;var G={};Oe(q.s3,"prse",(G.xc=a,G.ler=w,G.ctp=b4(a),G))}; g.C.lf=function(){Gj("onSubLayoutError in SSAP")}; g.C.kI=function(){Gj("exitSubLayoutAndPlayNext in SSAP")}; g.C.Cu=function(){return this.HJ}; g.C.Qi=function(){var q=this;return this.xD.findIndex(function(a){var w;return a.g8().layoutId===((w=q.HJ)==null?void 0:w.g8().layoutId)})}; g.C.R6=function(q){wQ(this.HJ===void 0,"replacing another adapter");this.HJ=q;q.startRendering(q.g8())}; g.C.nY=function(q,a,w){PT(this.Qx,q,a,w);var G;wQ(a.layoutId===((G=this.HJ)==null?void 0:G.g8().layoutId),"currentAdapter does not match exiting layout",{slot:q?"slot: "+q.slotType:"",subLayout:aA(a)})&&(this.HJ=void 0)}; g.C.release=function(){dv.prototype.release.call(this);wQ(this.HJ===void 0,"currentAdapter is still active during release");this.HJ=void 0}; g.C.Nn=function(){return this.RW.get().getPresentingPlayerType()===2}; g.C.m6=function(q,a){function w(){VZ(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(a)||Gj("Composite stopRendering: Unexpected layout exit reason",this.slot,q,{layoutExitReason:a}))} function G(){this.HJ&&J9(this,this.HJ,a);if(this.Nn()&&(!VZ(this)||a!=="abandoned")){w.call(this);var b;var O=((b=this.n7.get().j.getVideoData())==null?void 0:b.clientPlaybackNonce)||"";b=uw(this.n7.get(),1).clientPlaybackNonce;this.W5.get().finishSegmentByCpn(O,b,RY(a,this.Q7))}mZf(this,a)} function k(){if(this.HJ){var b=this.HJ;b.Xj().currentState<2&&b.m6(b.g8(),a);b=VZ(this)&&a==="abandoned";this.Nn()&&!b&&(w.call(this),this.W5.get().finishSegmentByCpn(this.HJ.g8().layoutId,uw(this.n7.get(),1).clientPlaybackNonce,RY(a,this.Q7)))}} wQ(q.layoutId===this.g8().layoutId,"StopRendering for wrong layout")&&wl(this.Fb.U,a)&&(this.kP()?G.call(this):k.call(this))}; g.C.G0=function(q,a,w){dv.prototype.G0.call(this,q,a,w);a.layoutId===this.g8().layoutId&&this.RW.get().removeListener(this)}; g.C.yV=function(){return uw(this.n7.get(),1).clientPlaybackNonce}; g.C.Sd=function(q,a,w){EpN(Object.assign({},TH(this),{cpn:q}));if(!VZ(this)||w!==5)if(this.kP()){if(this.HJ&&this.HJ.g8().layoutId!==a){var G=this.HJ.g8().layoutId;G!==q&&Gj("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:G,exitingCpn:q,enteringCpn:a});q=yy(w,this.Q7);J9(this,this.HJ,q)}else this.HJ&&Gj("onClipExited: active layout is entering again");a===this.yV()&&Afl(this,w)}else{if(this.HJ&&this.HJ.g8().layoutId===q)QSG(this,this.HJ,w);else{var k;Gj("Exiting cpn does not match active cpn", this.slot,(G=this.HJ)==null?void 0:G.g8(),{exitingCpn:q,transitionReason:w,activeCpn:(k=this.HJ)==null?void 0:k.g8().layoutId})}a===this.yV()&&(this.HJ!==void 0&&(Gj("active adapter is not properly exited",this.slot,this.layout,{activeLayout:aA(this.HJ.g8())}),QSG(this,this.HJ,w)),Afl(this,w),mZf(this,this.Fb.U.V))}}; g.C.kP=function(){return Mh(this.Q7.get(),"html5_ssap_exit_without_waiting_for_transition")}; g.C.startRendering=function(q){this.eN(q)&&(q=this.Fb,wQ(q.V===1,"tickStartRendering: state is not initial"),q.V=2,this.bP())}; g.C.CQ=function(q){ZPV(Object.assign({},TH(this),{cpn:q}));var a=this.xD.find(function(w){return w.g8().layoutId===q}); a?(this.Fb.V!==2&&(bpN(this.HN,this.slot.slotId),wQ(this.Fb.V===2,"Expect started"),this.callback.Bq(this.slot,this.layout)),this.R6(a),YP(this.Qx,this.slot,a.g8())):xZV(this,q)}; g.C.Nr=function(q,a){$ZN(this,q,a);var w=this.Cu();w?sSj(w,q,a)&&Luc(this,"skipped"):BJK(this,"onSkipRequested")}; g.C.VP=function(q,a){var w;a:{if(w=this.Cu()){if(FuN(this),CqU(w,q,a)&&(q=Zsc(this,w,q,a),q!==void 0)){w={Vt:w,lyT:this.xD[q]};break a}}else BJK(this,"SkipWithAdPodSkip");w=void 0}if(q=w)w=q.Vt,a=q.lyT,q=w.g8().layoutId,this.kP()?J9(this,w,"skipped"):w.m6(w.g8(),"skipped"),w=a.g8().layoutId,this.W5.get().finishSegmentByCpn(q,w,RY("skipped",this.Q7))}; g.C.nJ=function(){Gj("Not used in html5_ssap_fix_layout_exit")}; g.C.nO=function(q){var a;(a=this.Cu())==null||a.nO(q)}; g.C.RI=function(){Gj("Not used in html5_ssap_fix_layout_exit")}; g.C.G7=function(q,a,w){var G;if(((G=this.Cu())==null?void 0:G.g8().layoutId)!==a.layoutId)return void Gj("requestToExitSubLayout: wrong layout");Luc(this,w)};g.Z(mT,g.c);g.C=mT.prototype;g.C.bF=function(){return this.xF.bF()}; g.C.g8=function(){return this.xF.g8()}; g.C.init=function(){var q=oZ(this.g8().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");q&&(q.current=this);this.X$()}; g.C.X$=function(){this.xF.init()}; g.C.release=function(){var q=oZ(this.g8().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");q&&(q.current=null);this.Kg()}; g.C.Kg=function(){this.xF.release()}; g.C.Fk=function(){this.xF.Fk()}; g.C.Yx=function(){this.xF.Yx()}; g.C.Nr=function(q,a){Gj("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.bF(),this.g8(),{requestingSlot:q,requestingLayout:a})}; g.C.startRendering=function(q){q.layoutId!==this.g8().layoutId?this.callback.BJ(this.bF(),q,new Xv("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.g8().layoutId+("and LayoutType: "+this.g8().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.RW.get().addListener(this),yJ(this.r$(),this),VBV(this.j1.get()),BTK(this.Q7.get())||NcI(this.RW.get()),this.xF.startRendering(q))}; g.C.m6=function(q,a){this.kZ=!0;this.xF.m6(q,a);this.RW.get().j.nP();QHU(this.oa.get(),{});q=RQ(this.RW.get(),1);q.isPaused()&&!g.v(q,2)&&this.RW.get().playVideo();this.RW.get().removeListener(this);this.kZ&&this.xF.zp()}; g.C.Bq=function(q,a){this.xF.Bq(q,a)}; g.C.G0=function(q,a,w){a.layoutId===this.g8().layoutId&&(this.kZ=!1,qh(this.r$(),this));this.xF.G0(q,a,w);a.layoutId===this.g8().layoutId&&Fp(this.j1.get())}; g.C.XF=function(q){this.xF.XF(q)}; g.C.nO=function(q){if(q.state.isError()){var a,w;this.RI((a=q.state.lT)==null?void 0:a.errorCode,new Xv("There was a player error during this media layout.",{playerErrorCode:(w=q.state.lT)==null?void 0:w.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.xF.nO(q)}; g.C.RI=function(q,a,w){this.xF.ER(q,a,w)}; g.C.onFullscreenToggled=function(q){this.xF.onFullscreenToggled(q)}; g.C.jG=function(q){this.xF.jG(q)}; g.C.Ba=function(q){this.xF.Ba(q)}; g.C.onVolumeChange=function(){this.xF.onVolumeChange()}; g.C.lD=function(){}; g.C.MH=function(){}; g.C.D8=function(){}; g.C.Hm=function(){}; g.C.vJ=function(){}; g.C.Lu=function(){}; g.C.iT=function(){}; g.C.LW=function(){}; g.C.Zy=function(){}; g.C.Uv=function(){}; g.C.Xf=function(){}; g.C.Tg=function(){}; g.C.Nz=function(){};g.C=QZ.prototype;g.C.bF=function(){return this.slot}; g.C.g8=function(){return this.layout}; g.C.init=function(){this.wz.get().addListener(this);this.RW.get().addListener(this);var q=oZ(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var a=oZ(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.Y){var w=this.wz.get().CZ.slice(-1)[0];w!==void 0&&(q=w.startSecs*1E3,a=(w.startSecs+w.LT)*1E3)}this.W4(q,a);var G;w=(G=this.n7.get().oz)==null?void 0:G.clientPlaybackNonce;G=this.layout.Xw.adClientDataEntry;A9(this.p7.get(),{daiStateTrigger:{filledAdsDurationMs:a-q,contentCpn:w, adClientData:G}});var k=this.wz.get();k=M3G(k.W,q,a);k!==null&&(A9(this.p7.get(),{daiStateTrigger:{filledAdsDurationMs:k-q,contentCpn:w,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:G}}),this.W5.get().uC(k,a))}; g.C.release=function(){this.Kg();this.wz.get().removeListener(this);this.RW.get().removeListener(this)}; g.C.startRendering=function(){this.YN();this.callback.Bq(this.slot,this.layout)}; g.C.m6=function(q,a){this.jY(a);this.driftRecoveryMs!==null&&(xb(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(hwj(this)-oZ(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.RW.get().j.YK()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.G0(this.slot,this.layout,a)}; g.C.Dn=function(){return!1}; g.C.IQ=function(q){var a=oZ(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),w=oZ(this.layout.clientMetadata,"metadata_type_layout_exit_ms");q*=1E3;if(a<=q&&q0&&Kp(this.V(),a)}; g.C.D8=function(q){this.D.delete(q.slotId);for(var a=[],w=g.V(this.iF.values()),G=w.next();!G.done;G=w.next()){G=G.value;var k=G.trigger;k instanceof BZ&&k.triggeringSlotId===q.slotId&&a.push(G)}a.length>0&&Kp(this.V(),a)}; g.C.Hm=function(q){for(var a=[],w=g.V(this.iF.values()),G=w.next();!G.done;G=w.next()){G=G.value;var k=G.trigger;k instanceof PZ&&k.slotType===q.slotType&&k.V!==q.slotId&&a.push(G)}a.length>0&&Kp(this.V(),a)}; g.C.vJ=function(q){this.W.add(q.slotId);for(var a=[],w=g.V(this.iF.values()),G=w.next();!G.done;G=w.next())G=G.value,G.trigger instanceof si&&q.slotId===G.trigger.triggeringSlotId&&a.push(G);a.length>0&&Kp(this.V(),a)}; g.C.Lu=function(q){this.W.delete(q.slotId);this.Y.add(q.slotId);for(var a=[],w=g.V(this.iF.values()),G=w.next();!G.done;G=w.next())if(G=G.value,G.trigger instanceof FP)q.slotId===G.trigger.triggeringSlotId&&a.push(G);else if(G.trigger instanceof gi){var k=G.trigger;q.slotId===k.slotId&&this.U.has(k.triggeringLayoutId)&&a.push(G)}a.length>0&&Kp(this.V(),a)}; g.C.iT=function(q){for(var a=[],w=g.V(this.iF.values()),G=w.next();!G.done;G=w.next())G=G.value,G.trigger instanceof Cr&&q.slotId===G.trigger.triggeringSlotId&&a.push(G);a.length>0&&Kp(this.V(),a)}; g.C.LW=function(q){for(var a=[],w=g.V(this.iF.values()),G=w.next();!G.done;G=w.next())G=G.value,G.trigger instanceof Zq&&q.slotId===G.trigger.triggeringSlotId&&a.push(G);a.length>0&&Kp(this.V(),a)}; g.C.Zy=function(q,a){this.L.add(a.layoutId)}; g.C.Uv=function(q,a){this.L.delete(a.layoutId)}; g.C.Bq=function(q,a){this.U.add(a.layoutId);for(var w=[],G=g.V(this.iF.values()),k=G.next();!k.done;k=G.next())if(k=k.value,k.trigger instanceof aP)a.layoutId===k.trigger.triggeringLayoutId&&w.push(k);else if(k.trigger instanceof YZ){var b=k.trigger;q.slotType===b.slotType&&a.layoutType===b.layoutType&&a.layoutId!==b.V&&w.push(k)}else k.trigger instanceof gi&&(b=k.trigger,a.layoutId===b.triggeringLayoutId&&this.Y.has(b.slotId)&&w.push(k));w.length>0&&Kp(this.V(),w)}; g.C.G0=function(q,a,w){this.U.delete(a.layoutId);q=[];for(var G=g.V(this.iF.values()),k=G.next();!k.done;k=G.next())if(k=k.value,k.trigger instanceof G0&&a.layoutId===k.trigger.triggeringLayoutId&&q.push(k),k.trigger instanceof wi){var b=k.trigger;a.layoutId===b.triggeringLayoutId&&b.V.includes(w)&&q.push(k)}q.length>0&&Kp(this.V(),q)}; g.C.Xf=function(){}; g.C.Xa=function(){this.Y.clear()}; g.C.MQ=function(){};g.Z(Pc,g.c);Pc.prototype.lO=function(q,a,w,G){if(this.iF.has(a.triggerId))throw new W("Tried to register duplicate trigger for slot.");if(!(a instanceof yZ))throw new W("Incorrect TriggerType: Tried to register trigger of type "+a.triggerType+" in CloseRequestedTriggerAdapter");this.iF.set(a.triggerId,new Mc(q,a,w,G))}; Pc.prototype.PW=function(q){this.iF.delete(q.triggerId)};g.Z(dt,g.c);dt.prototype.lO=function(q,a,w,G){if(this.iF.has(a.triggerId))throw new W("Tried to register duplicate trigger for slot.");if(!(a instanceof RX||a instanceof di))throw new W("Incorrect TriggerType: Tried to register trigger of type "+a.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.iF.set(a.triggerId,new Mc(q,a,w,G))}; dt.prototype.PW=function(q){this.iF.delete(q.triggerId)}; dt.prototype.Xa=function(q){for(var a=[],w=a.push,G=w.apply,k=[],b=g.V(this.iF.values()),O=b.next();!O.done;O=b.next())O=O.value,O.trigger instanceof RX&&O.trigger.ma===q&&k.push(O);G.call(w,a,g.Tf(k));w=a.push;G=w.apply;k=[];b=g.V(this.iF.values());for(O=b.next();!O.done;O=b.next())O=O.value,O.trigger instanceof di&&O.trigger.V!==q&&k.push(O);G.call(w,a,g.Tf(k));a.length&&Kp(this.V(),a)}; dt.prototype.MQ=function(q){for(var a=[],w=a.push,G=w.apply,k=[],b=g.V(this.iF.values()),O=b.next();!O.done;O=b.next()){O=O.value;var e=O.trigger;e instanceof di&&e.V===q&&k.push(O)}G.call(w,a,g.Tf(k));a.length&&Kp(this.V(),a)};g.Z(T2,g.c);g.C=T2.prototype;g.C.lO=function(q,a,w,G){if(this.iF.has(a.triggerId))throw new W("Tried to register duplicate trigger for slot.");var k="adtriggercuerange:"+a.triggerId;if(a instanceof eQ)WqG(this,q,a,w,G,k,a.V.start,a.V.end,a.ma,a.visible);else if(a instanceof qc)WqG(this,q,a,w,G,k,0x7ffffffffffff,0x8000000000000,a.ma,a.visible);else throw new W("Incorrect TriggerType: Tried to register trigger of type "+a.triggerType+" in CueRangeTriggerAdapter");}; g.C.PW=function(q){var a=this.iF.get(q.triggerId);a&&this.ya.get().removeCueRange(a.cueRangeId);this.iF.delete(q.triggerId)}; g.C.onCueRangeEnter=function(q){var a=DDJ(this,q);if(a&&(a=this.iF.get(a)))if(g.v(RQ(this.RW.get()),32))this.V.add(a.cueRangeId);else{var w=a==null?void 0:a.pK.trigger;if(w instanceof eQ||w instanceof qc){if(eG(this.context.Q7.get())){var G=a.pK.slot,k=a.pK.layout,b={};this.context.S2.QN("cre",(b.ca=a.pK.category,b.tt=w.triggerType,b.st=G.slotType,b.lt=k==null?void 0:k.layoutType,b.cid=q,b))}Kp(this.U(),[a.pK])}}}; g.C.onCueRangeExit=function(q){(q=DDJ(this,q))&&(q=this.iF.get(q))&&this.V.delete(q.cueRangeId)}; g.C.nO=function(q){if(bc(q,16)<0){q=g.V(this.V);for(var a=q.next();!a.done;a=q.next())this.onCueRangeEnter(a.value,!0);this.V.clear()}}; g.C.MH=function(){}; g.C.D8=function(){}; g.C.Hm=function(){}; g.C.vJ=function(){}; g.C.Lu=function(){}; g.C.iT=function(){}; g.C.LW=function(){}; g.C.Zy=function(){}; g.C.Uv=function(){}; g.C.Bq=function(){}; g.C.G0=function(){}; g.C.Xf=function(){}; g.C.XF=function(){}; g.C.onFullscreenToggled=function(){}; g.C.jG=function(){}; g.C.lD=function(){}; g.C.Ba=function(){}; g.C.onVolumeChange=function(){}; g.C.Tg=function(){}; g.C.Nz=function(){};g.Z($R,g.c);g.C=$R.prototype; g.C.lO=function(q,a,w,G){if(this.U.has(a.triggerId)||this.W.has(a.triggerId))throw new W("Tried to re-register the trigger.");q=new Mc(q,a,w,G);if(q.trigger instanceof lm)this.U.set(q.trigger.triggerId,q);else if(q.trigger instanceof kZ)this.W.set(q.trigger.triggerId,q);else throw new W("Incorrect TriggerType: Tried to register trigger of type "+q.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.U.has(q.trigger.triggerId)&&q.slot.slotId===this.V&&Kp(this.Y(),[q])}; g.C.PW=function(q){this.U.delete(q.triggerId);this.W.delete(q.triggerId)}; g.C.CX=function(q){q=q.slotId;if(this.V!==q){var a=[];this.V!=null&&a.push.apply(a,g.Tf(R8_(this.W,this.V)));q!=null&&a.push.apply(a,g.Tf(R8_(this.U,q)));this.V=q;a.length&&Kp(this.Y(),a)}}; g.C.Sd=function(){}; g.C.CQ=function(){};g.Z(FQ,g.c);g.C=FQ.prototype;g.C.lO=function(q,a,w,G){if(this.iF.has(a.triggerId))throw new W("Tried to register duplicate trigger for slot.");if(!(a instanceof Kr))throw new W("Incorrect TriggerType: Tried to register trigger of type "+a.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.iF.set(a.triggerId,new Mc(q,a,w,G))}; g.C.PW=function(q){this.iF.delete(q.triggerId)}; g.C.Bq=function(){}; g.C.G0=function(){}; g.C.MH=function(){}; g.C.D8=function(){}; g.C.Hm=function(){}; g.C.vJ=function(){}; g.C.Lu=function(){}; g.C.iT=function(){}; g.C.LW=function(){}; g.C.Zy=function(){}; g.C.Uv=function(){}; g.C.Xf=function(){};g.Z(CO,g.c);g.C=CO.prototype;g.C.Xf=function(q,a){for(var w=[],G=g.V(this.iF.values()),k=G.next();!k.done;k=G.next()){k=k.value;var b=k.trigger;b.opportunityType===q&&(b.associatedSlotId&&b.associatedSlotId!==a||w.push(k))}w.length&&Kp(this.V(),w)}; g.C.lO=function(q,a,w,G){if(this.iF.has(a.triggerId))throw new W("Tried to register duplicate trigger for slot.");if(!(a instanceof bFV))throw new W("Incorrect TriggerType: Tried to register trigger of type "+a.triggerType+" in OpportunityEventTriggerAdapter");this.iF.set(a.triggerId,new Mc(q,a,w,G))}; g.C.PW=function(q){this.iF.delete(q.triggerId)}; g.C.MH=function(){}; g.C.D8=function(){}; g.C.Hm=function(){}; g.C.vJ=function(){}; g.C.Lu=function(){}; g.C.iT=function(){}; g.C.LW=function(){}; g.C.Zy=function(){}; g.C.Uv=function(){}; g.C.Bq=function(){}; g.C.G0=function(){};g.Z(Z6,g.c);g.C=Z6.prototype;g.C.lO=function(q,a,w,G){q=new Mc(q,a,w,G);if(a instanceof bm||a instanceof Nc||a instanceof Oi||a instanceof T0||a instanceof lQU){if(this.iF.has(a.triggerId))throw new W("Tried to register duplicate trigger for slot.");this.iF.set(a.triggerId,q)}else throw new W("Incorrect TriggerType: Tried to register trigger of type "+a.triggerType+" in PrefetchTriggerAdapter");}; g.C.PW=function(q){this.iF.delete(q.triggerId)}; g.C.MH=function(q){var a=q.slotFulfillmentTriggers.find(function(w){return w instanceof bm}); a&&(Et(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",a.breakDurationMs,new Set([q.slotId]),!0),Bk(this.p7.get(),"ads_css","sid."+q.slotId+";bd."+a.breakDurationMs))}; g.C.D8=function(){}; g.C.Hm=function(){}; g.C.vJ=function(){}; g.C.Lu=function(){}; g.C.iT=function(){}; g.C.LW=function(){}; g.C.Zy=function(){}; g.C.Uv=function(){}; g.C.Bq=function(){}; g.C.G0=function(){}; g.C.Xf=function(){}; g.C.Dn=function(q){var a=this;if(!this.V)return Gj("Unexpected cue break before fetch instructions are available"),!1;this.U&&this.U.stop();this.D&&g.tD(this.D);var w=abl(this,q);if(!w){var G=qwK(this),k=this.X!==void 0&&Date.now()<=this.X+1E4;Bk(this.p7.get(),"ads_ncfs","cid."+q.identifier+";cd."+q.LT.toFixed(3)+";ccs."+k+";cfa."+this.Y+";bdc."+G.length+";"+G.slice(0,6).map(function(b){return";bd."+b}).join("")); return k?(DN(this.Xm,this.V,q),!0):!1}(G=oZ(w.slot.clientMetadata,"metadata_type_triggering_cue_point"))?G.current=q:Gj("Expected triggering cue point ref to be available",w.slot);(new g.o1(function(){var b=w.trigger,O=w.slot;Et(a,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",b.breakDurationMs,new Set,!0);Et(a,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",b.breakDurationMs,new Set,!1);for(var e=0,N=g.V(a.iF.values()),Y=N.next();!Y.done;Y=N.next()){Y=Y.value;var P=Y.trigger; Y.slot.slotId===O.slotId&&(a.iF.delete(P.triggerId),e++)}Bk(a.p7.get(),"ads_csf","sid."+O.slotId+";bd."+b.breakDurationMs+";dt."+e)},10)).start(); return!0}; g.C.IQ=function(){}; g.C.Xa=function(q){var a=this;this.Y=!1;this.X=Date.now();if(this.V&&this.V.contentCpn!==q)Gj("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:q,fetchInstructionsCpn:this.V.contentCpn}),Vd(this);else{this.W=new g.o1(function(){if(a.Y)delete a.W;else{var G=a.RW.get().getGetAdBreakContext(),k;if(Number(G==null?void 0:(k=G.livePlaybackPosition)==null?void 0:k.utcTimeMillis)>0)delete a.W,gPG(a);else{var b;(b=a.W)==null||b.start()}}},200); var w;(w=this.W)==null||w.start()}}; g.C.MQ=function(q){this.V&&this.V.contentCpn!==q&&Gj("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:q,fetchInstructionsCpn:this.V.contentCpn},!0);Vd(this)}; g.C.Fv=function(q){var a=this;if(this.V)Gj("Unexpected multiple fetch instructions for the current content");else{this.V=q;q=GSj(q);this.U=new g.o1(function(){gPG(a)},q?q:6E5); this.U.start();this.D=new g.o1(function(){a.V&&(a.U&&(a.U.stop(),a.U.start()),y4l(a,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},wTG(this.V)); q=this.RW.get().getCurrentTimeSec(1,!1);for(var w=g.V(this.wz.get().CZ),G=w.next();!G.done;G=w.next())G=G.value,Bk(this.p7.get(),"nocache","ct."+Date.now()+";cmt."+q+";d."+G.LT.toFixed(3)+";tw."+(G.startSecs-q)+";cid."+G.identifier+";")}}; g.C.qB=function(){g.c.prototype.qB.call(this);Vd(this)};g.Z(J6,g.c);g.C=J6.prototype;g.C.lO=function(q,a,w,G){if(this.iF.has(a.triggerId))throw new W("Tried to register duplicate trigger for slot.");if(!(a instanceof nr))throw new W("Incorrect TriggerType: Tried to register trigger of type "+a.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.iF.set(a.triggerId,new Mc(q,a,w,G));q=this.V.has(a.triggeringLayoutId)?this.V.get(a.triggeringLayoutId):new Set;q.add(a);this.V.set(a.triggeringLayoutId,q)}; g.C.PW=function(q){this.iF.delete(q.triggerId);if(!(q instanceof nr))throw new W("Incorrect TriggerType: Tried to unregister trigger of type "+q.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var a=this.U.get(q.triggerId);a&&(a.dispose(),this.U.delete(q.triggerId));if(a=this.V.get(q.triggeringLayoutId))a.delete(q),a.size===0&&this.V.delete(q.triggeringLayoutId)}; g.C.MH=function(){}; g.C.D8=function(){}; g.C.Hm=function(){}; g.C.vJ=function(){}; g.C.Lu=function(){}; g.C.iT=function(){}; g.C.LW=function(){}; g.C.Zy=function(){}; g.C.Uv=function(){}; g.C.Xf=function(){}; g.C.Bq=function(q,a){var w=this;if(this.V.has(a.layoutId)){q=this.V.get(a.layoutId);q=g.V(q);var G=q.next();for(a={};!G.done;a={l0:void 0},G=q.next())a.l0=G.value,G=new g.o1(function(k){return function(){var b=w.iF.get(k.l0.triggerId);Kp(w.W(),[b])}}(a),a.l0.durationMs),G.start(),this.U.set(a.l0.triggerId,G)}}; g.C.G0=function(){};g.Z(mw,g.c);mw.prototype.lO=function(q,a,w,G){if(this.iF.has(a.triggerId))throw new W("Tried to register duplicate trigger for slot.");if(!(a instanceof Wk))throw new W("Incorrect TriggerType: Tried to register trigger of type "+a.triggerType+" in VideoTransitionTriggerAdapter.");this.iF.set(a.triggerId,new Mc(q,a,w,G))}; mw.prototype.PW=function(q){this.iF.delete(q.triggerId)};LO.prototype.Sa=function(q){return q.kind==="AD_PLACEMENT_KIND_START"};g.Z(nO,g.c);g.C=nO.prototype;g.C.logEvent=function(q){this.Cm(q)}; g.C.Ka=function(q,a,w){this.Cm(q,void 0,void 0,void 0,a,void 0,void 0,void 0,a.adSlotLoggingData,void 0,void 0,w)}; g.C.Bm=function(q,a,w,G){this.Cm(q,void 0,void 0,void 0,a,w?w:void 0,void 0,void 0,a.adSlotLoggingData,w?w.adLayoutLoggingData:void 0,void 0,G);a=Q9().resolve(ZV(a5))==null?void 0:we();q=a==null?void 0:a.adsSeenHotConfig;a=a==null?void 0:a.adsHotConfig;(q==null?0:q.logOnAdsSeen)&&(a==null?0:a.webEnablePremiumAdsSeenLogging)&&CtV(this,w?w:void 0,G)}; g.C.vX=function(q,a,w,G){Mh(this.Q7.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+q,"trigger:",w,"slot:",a,"layout:",G);zC(this.V.get())&&this.Cm(q,void 0,void 0,void 0,a,G?G:void 0,void 0,w,a.adSlotLoggingData,G?G.adLayoutLoggingData:void 0)}; g.C.YO=function(q,a,w,G,k){this.Cm(q,a,w,G,void 0,void 0,void 0,void 0,void 0,void 0,void 0,k)}; g.C.Jm=function(q,a,w,G){this.Cm("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,w,G,void 0,void 0,w.adSlotLoggingData,G?G.adLayoutLoggingData:void 0,{errorType:q,errorMessage:a})}; g.C.Cm=function(q,a,w,G,k,b,O,e,N,Y,P,K){var d=this;K=K===void 0?0:K;Mh(this.Q7.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+q,"slot:",k,"layout:",b,"ping:",O,"Opportunity:",{opportunityType:a,associatedSlotId:w,X3Q:G,MaK:e,adSlotLoggingData:N,adLayoutLoggingData:Y});try{var T=function(){if(!d.Q7.get().j.B().T("html5_disable_client_tmp_logs")&&q!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){q||Gj("Empty PACF event type",k,b);var F=zC(d.V.get()),J={eventType:q,eventOrder:++d.eventCount},Q={}; k&&(Q.slotData=vo(F,k));b&&(Q.layoutData=H5G(F,b));O&&(Q.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:O.V.serializedAdPingMetadata,pingIndex:O.index});e&&(Q.triggerData=t4(e.trigger,e.category));a&&(Q.opportunityData=cNf(F,a,w,G));F={organicPlaybackContext:{contentCpn:uw(d.n7.get(),1).clientPlaybackNonce}};F.organicPlaybackContext.isLivePlayback=uw(d.n7.get(),1).pk;var B;F.organicPlaybackContext.isMdxPlayback=(B=uw(d.n7.get(),1))==null?void 0:B.isMdxPlayback; var L;if((L=uw(d.n7.get(),1))==null?0:L.daiEnabled)F.organicPlaybackContext.isDaiContent=!0;var M;if(B=(M=uw(d.n7.get(),2))==null?void 0:M.clientPlaybackNonce)F.adVideoPlaybackContext={adVideoCpn:B};F&&(Q.externalContext=F);J.adClientData=Q;N&&(J.serializedSlotAdServingData=N.serializedSlotAdServingDataEntry);Y&&(J.serializedAdServingData=Y.serializedAdServingDataEntry);P&&(J.errorInfo=P);g.aw("adsClientStateChange",{adsClientEvent:J})}}; K&&K>0?g.uM(g.v5(),function(){return T()},K):T()}catch(F){Mh(this.Q7.get(),"html5_log_pacf_logging_errors")&&g.uM(g.v5(),function(){Gj(F instanceof Error?F:String(F),k,b,{pacf_message:"exception during pacf logging"})})}};var ID8=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.Z(MS,nO);g.C=MS.prototype; g.C.Ka=function(q,a,w){nO.prototype.Ka.call(this,q,a,w);eG(this.Q7.get())&&(w={},this.context.S2.QN("pacf",(w.et=q,w.st=a.slotType,w.si=a.slotId,w)))}; g.C.Bm=function(q,a,w,G){var k=ID8.has(q);nO.prototype.Bm.call(this,q,a,w,G);eG(this.Q7.get(),k)&&(G={},this.context.S2.QN("pacf",(G.et=q,G.st=a.slotType,G.si=a.slotId,G.lt=w==null?void 0:w.layoutType,G.li=w==null?void 0:w.layoutId,G.p_ac=w==null?void 0:w.layoutId,G)))}; g.C.YO=function(q,a,w,G,k){nO.prototype.YO.call(this,q,a,w,G,k);eG(this.Q7.get())&&(w={},this.context.S2.QN("pacf",(w.et=q,w.ot=a,w.ss=G==null?void 0:G.length,w)))}; g.C.vX=function(q,a,w,G){nO.prototype.vX.call(this,q,a,w,G);if(eG(this.Q7.get())){var k={};this.context.S2.QN("pacf",(k.et=q,k.tt=w.trigger.triggerType,k.tc=w.category,k.st=a.slotType,k.si=a.slotId,k.lt=G==null?void 0:G.layoutType,k.li=G==null?void 0:G.layoutId,k.p_ac=G==null?void 0:G.layoutId,k))}}; g.C.Jm=function(q,a,w,G){nO.prototype.Jm.call(this,q,a,w,G);if(eG(this.Q7.get(),!0)){var k={};this.context.S2.QN("perror",(k.ert=q,k.erm=a,k.st=w.slotType,k.si=w.slotId,k.lt=G==null?void 0:G.layoutType,k.li=G==null?void 0:G.layoutId,k.p_ac=G==null?void 0:G.layoutId,k))}}; g.C.Cm=function(q,a,w,G,k,b,O,e,N,Y,P){var K=this.Q7.get();g.Nh(K.j.B())?(K=this.Q7.get(),K=g.Wo(K.j.B().experiments,"H5_async_logging_delay_ms")):K=void 0;nO.prototype.Cm.call(this,q,a,w,G,k,b,O,e,N,Y,P,K)};h6.prototype.clear=function(){this.V.clear()};SZ.prototype.state=function(){return this.V==="fulfilled"?{state:"fulfilled",value:this.result}:this.V==="rejected"?{state:"rejected",reason:this.error}:{state:"pending"}}; SZ.prototype.Y=function(q){Hc(q)||fO(q)?jZ(cc(q),this.Y.bind(this),this.reject.bind(this)):(this.V="fulfilled",this.result=q,XQ(this))}; SZ.prototype.reject=function(q){this.V="rejected";this.error=q;XQ(this)}; var fO=Od(function(q){return q7J(q)?q instanceof SZ:!1});Object.freeze({xlG:function(q){var a=z2(q);return jZ(vc(a,function(w){return a[w].V==="rejected"}),function(w){return Number.isNaN(w)?a.map(function(G){return G.state().value}):a[w]})}, CW2:function(q){var a=z2(q);return jZ(vc(a),function(){return a.map(function(w){return w.state()})})}, SmG:function(q){var a=z2(q);return jZ(vc(a,function(w){return a[w].V==="fulfilled"}),function(w){return Number.isNaN(w)?pO(new AggregateError(a.map(function(G){return G.state().reason}))):a[w].state().value})}, AbQ:function(q){var a=z2(q);return jZ(vc(a,function(){return!0}),function(w){return a[w]})}});var iZ=window.Sw9||"es";yd.prototype.dN=function(q){this.client=q}; yd.prototype.V=function(){this.clear();this.csn=g.$f()}; yd.prototype.clear=function(){this.W.clear();this.U.clear();this.Y.clear();this.csn=null};gq.prototype.dN=function(q){g.tK(qq().dN).bind(qq())(q)}; gq.prototype.clear=function(){g.tK(qq().clear).bind(qq())()};g.C=ag.prototype;g.C.dN=function(q){this.client=q}; g.C.bx=function(q,a){var w=this;a=a===void 0?{}:a;g.tK(function(){var G,k,b,O=((G=g.I(q==null?void 0:q.commandMetadata,g.Zk))==null?void 0:G.rootVe)||((k=g.I(q==null?void 0:q.commandMetadata,bnc))==null?void 0:(b=k.screenVisualElement)==null?void 0:b.uiType);if(O){G=g.I(q==null?void 0:q.commandMetadata,QRI);if(G==null?0:G.parentTrackingParams){var e=g.KF(G.parentTrackingParams);if(G.parentCsn)var N=G.parentCsn}else a.clickedVisualElement?e=a.clickedVisualElement:q.clickTrackingParams&&(e=g.KF(q.clickTrackingParams)); a:{G=g.I(q,g.Er);k=g.I(q,F4J);if(G){if(k=QMy(G,"VIDEO")){G={token:k,videoId:G.videoId};break a}}else if(k&&(G=QMy(k,"PLAYLIST"))){G={token:G,playlistId:k.playlistId};break a}G=void 0}a=Object.assign({},{cttAuthInfo:G,parentCsn:N},a);if(g.dF("expectation_logging")){var Y;a.loggingExpectations=((Y=g.I(q==null?void 0:q.commandMetadata,bnc))==null?void 0:Y.loggingExpectations)||void 0}G1(w,O,e,a)}else g.Qa(new g.UH("Error: Trying to create a new screen without a rootVeType",q))})()}; g.C.clickCommand=function(q,a,w){q=q.clickTrackingParams;w=w===void 0?0:w;q?(w=g.$f(w===void 0?0:w))?(o9(this.client,w,g.KF(q),a),a=!0):a=!1:a=!1;return a}; g.C.stateChanged=function(q,a,w){this.visualElementStateChanged(g.KF(q),a,w===void 0?0:w)}; g.C.visualElementStateChanged=function(q,a,w){w=w===void 0?0:w;w===0&&this.U.has(w)?this.S.push([q,a]):nPy(this,q,a,w)};l5.prototype.fetch=function(q,a,w){var G=this,k=SwU(q,a,w);return new Promise(function(b,O){function e(){if(w==null?0:w.Hs)try{var Y=G.handleResponse(q,k.status,k.response,w);b(Y)}catch(P){O(P)}else b(G.handleResponse(q,k.status,k.response,w))} k.onerror=e;k.onload=e;var N;k.send((N=a.body)!=null?N:null)})}; l5.prototype.handleResponse=function(q,a,w,G){w=w.replace(")]}'","");try{var k=JSON.parse(w)}catch(b){g.Qa(new g.UH("JSON parsing failed after XHR fetch",q,a,w));if((G==null?0:G.Hs)&&w)throw new g.ct(1,"JSON parsing failed after XHR fetch");k={}}a!==200&&(g.Qa(new g.UH("XHR API fetch failed",q,a,w)),k=Object.assign({},k,{errorMetadata:{status:a}}));return k};ei.getInstance=function(){var q=g.aB("ytglobal.storage_");q||(q=new ei,g.qe("ytglobal.storage_",q));return q}; ei.prototype.estimate=function(){var q,a,w;return g.h(function(G){q=navigator;return((a=q.storage)==null?0:a.estimate)?G.return(q.storage.estimate()):((w=q.webkitTemporaryStorage)==null?0:w.queryUsageAndQuota)?G.return(fbj()):G.return()})}; g.qe("ytglobal.storageClass_",ei);qF.prototype.vW=function(q){this.handleError(q)}; qF.prototype.logEvent=function(q,a){switch(q){case "IDB_DATA_CORRUPTED":g.dF("idb_data_corrupted_killswitch")||this.V("idbDataCorrupted",a);break;case "IDB_UNEXPECTEDLY_CLOSED":this.V("idbUnexpectedlyClosed",a);break;case "IS_SUPPORTED_COMPLETED":g.dF("idb_is_supported_completed_killswitch")||this.V("idbIsSupportedCompleted",a);break;case "QUOTA_EXCEEDED":c3U(this,a);break;case "TRANSACTION_ENDED":this.W&&Math.random()<=.1&&this.V("idbTransactionEnded",a);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":q= Object.assign({},a,{hasWindowUnloaded:this.U}),this.V("idbTransactionAborted",q)}};var zF={},jP_=g.zA("yt-player-local-media",{Bs:(zF.index={fd:2},zF.media={fd:2},zF.captions={fd:5},zF),shared:!1,upgrade:function(q,a){a(2)&&(g.J2(q,"index"),g.J2(q,"media"));a(5)&&g.J2(q,"captions");a(6)&&(mJ(q,"metadata"),mJ(q,"playerdata"))}, version:5});var uxB={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},iT;a:{var W_=g.cL();W_=W_.toLowerCase();if(g.nH(W_,"android")){var t0U=W_.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(t0U){var vee=parseFloat(t0U[1]);if(vee<100){iT=vee;break a}}var z0e=W_.match("("+Object.keys(uxB).join("|")+")");iT=z0e?uxB[z0e[0]]:0}else iT=void 0}var w8=iT,av=w8>=0;var k4l=window;var pTU=hM(function(){var q,a;return(a=(q=window).matchMedia)==null?void 0:a.call(q,"(prefers-reduced-motion: reduce)").matches});var Yd;g.Nq=new Ps;Yd=0;var FI=t7l()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.jI?!0:!1;var dq={B1:function(q,a){var w=q[0];q[0]=q[a%q[l[5]]];q[a%q[l[5]]]=w}, vy:function(q){q[l[80]]()}, b4:function(q,a){q[l[4]](0,a)}};var H8c={SPG:"adunit",RR8:"detailpage",McW:"editpage",wQ8:"embedded",QgB:"leanback",RwB:"previewpage",vUh:"profilepage",mL:"unplugged",fme:"playlistoverview",cGG:"sponsorshipsoffer",UZW:"shortspage",Gjh:"handlesclaiming",nEK:"immersivelivepage",GgG:"creatormusic",lOG:"immersivelivepreviewpage",kA8:"admintoolyurt",F1K:"shortsaudiopivot",qj9:"consumption"};var zSl=2592E3;var Dk,iQc,ru;Dk={};g.El=(Dk.STOP_EVENT_PROPAGATION="html5-stop-propagation",Dk.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",Dk.IV_DRAWER_OPEN="ytp-iv-drawer-open",Dk.MAIN_VIDEO="html5-main-video",Dk.VIDEO_CONTAINER="html5-video-container",Dk.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",Dk.HOUSE_BRAND="house-brand",Dk);iQc={};ru=(iQc.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",iQc.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",iQc);var Gkm={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var loV={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},e2G={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"},$Tf={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var Oky={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.mf.prototype.getLanguageInfo=function(){return this.Pq}; g.mf.prototype.getXtags=function(){if(!this.xtags){var q=this.id.split(";");q.length>1&&(this.xtags=q[1])}return this.xtags}; g.mf.prototype.toString=function(){return this.Pq.name}; g.mf.prototype.getLanguageInfo=g.mf.prototype.getLanguageInfo;Qo.prototype.equals=function(q){return this.U===q.U&&this.V===q.V&&this.W===q.W&&this.reason===q.reason&&(!xd||this.J2===q.J2)}; Qo.prototype.isLocked=function(){return this.W&&!!this.U&&this.U===this.V}; Qo.prototype.compose=function(q){if(q.W&&Lx(q))return dM;if(q.W||Lx(this))return q;if(this.W||Lx(q))return this;var a=this.U&&q.U?Math.max(this.U,q.U):this.U||q.U,w=this.V&&q.V?Math.min(this.V,q.V):this.V||q.V;a=Math.min(a,w);var G=0;xd&&(G=this.J2!==0&&q.J2!==0?Math.min(this.J2,q.J2):this.J2===0?q.J2:this.J2);return xd&&a===this.U&&w===this.V&&G===this.J2||!xd&&a===this.U&&w===this.V?this:xd?new Qo(a,w,!1,w===this.V&&G===this.J2?this.reason:q.reason,G):new Qo(a,w,!1,w===this.V?this.reason:q.reason)}; Qo.prototype.Y=function(q){return!q.video||xd&&this.J2!==0&&this.J2=0}; g.C.DG=function(){var q=this.segments[this.segments.length-1];return q?q.endTime:NaN}; g.C.B5=function(){return this.segments[0].startTime}; g.C.PP=function(){return this.segments.length}; g.C.Re=function(){return 0}; g.C.uT=function(q){return(q=this.p$(q))?q.Dh:-1}; g.C.uH=function(q){return(q=this.tG(q))?q.sourceURL:""}; g.C.getStartTime=function(q){return(q=this.tG(q))?q.startTime:0}; g.C.BR=function(q){return this.getStartTime(q)+this.getDuration(q)}; g.C.QA=qm(1);g.C.isLoaded=function(){return this.segments.length>0}; g.C.tG=function(q){if(this.V&&this.V.Dh===q)return this.V;q=g.oB(this.segments,new Rg(q,0,0,0,""),function(a,w){return a.Dh-w.Dh}); return this.V=q>=0?this.segments[q]:null}; g.C.p$=function(q){if(this.V&&this.V.startTime<=q&&q=0?this.segments[q]:this.segments[Math.max(0,-q-2)]}; g.C.append=function(q){if(q.length)if(q=g.nw(q),this.segments.length){var a=this.segments.length?g.s6(this.segments).endTime:0,w=q[0].Dh-this.P5();w>1&&JmG(this.segments);for(w=w>0?0:-w+1;wq.Dh&&this.index.l9()<=q.Dh+1}; g.C.update=function(q,a,w){this.index.append(q);pbN(this.index,w);q=this.index;q.U=a;q.W="update"}; g.C.cH=function(){return this.Rt()?!0:zh.prototype.cH.call(this)}; g.C.Su=function(q,a){var w=this.index.uH(q),G=this.index.getStartTime(q),k=this.index.getDuration(q),b;a?k=b=0:b=this.info.J2>0?this.info.J2*k:1E3;return new bj([new ys(3,this,void 0,"liveCreateRequestInfoForSegment",q,G,k,0,b,!a)],w)}; g.C.rq=function(){return this.Rt()?0:this.initRange.length}; g.C.Bk=function(){return!1};Kg.prototype.update=function(q){var a=void 0;this.U&&(a=this.U);var w=new Kg,G=Array.from(q.getElementsByTagName("S"));if(G.length){var k=+YD(q,"timescale")||1,b=(+G[0].getAttribute("t")||0)/k,O=+YD(q,"startNumber")||0;w.Y=b;var e=a?a.startSecs+a.LT:0,N=Date.parse(MGl(YD(q,"yt:segmentIngestTime")))/1E3;w.D=q.parentElement.tagName==="SegmentTemplate";w.D&&(w.X=YD(q,"media"));q=a?O-a.Dh:1;w.L=q>0?0:-q+1;q=g.V(G);for(G=q.next();!G.done;G=q.next()){G=G.value;for(var Y=+G.getAttribute("d")/k,P=(+G.getAttribute("yt:sid")|| 0)/k,K=+G.getAttribute("r")||0,d=0;d<=K;d++)if(a&&O<=a.Dh)O++;else{var T=new r8K(O,e,Y,N+P,b);w.V.push(T);var F=G;var J=k,Q=T.startSecs;T=F.getAttribute("yt:cuepointTimeOffset");var B=F.getAttribute("yt:cuepointDuration");if(T&&B){T=Number(T);Q=-T/J+Q;J=Number(B)/J;B=F.getAttribute("yt:cuepointContext")||null;var L=F.getAttribute("yt:cuepointIdentifier")||"";F=F.getAttribute("yt:cuepointEvent")||"";F=new lp(Q,J,B,L,Dz7[F]||"unknown",T)}else F=null;F&&w.W.push(F);O++;e+=Y;b+=Y;N+=Y+P}}w.V.length&& (w.U=g.s6(w.V))}this.L=w.L;this.U=w.U||this.U;g.Me(this.V,w.V);g.Me(this.W,w.W);this.D=w.D;this.X=w.X;this.Y===-1&&(this.Y=w.getStreamTimeOffset())}; Kg.prototype.getStreamTimeOffset=function(){return this.Y===-1?0:this.Y};g.Z(Tm,g.yo);g.C=Tm.prototype;g.C.lc=function(){return this.jZ}; g.C.PF=function(q,a){q=$D(this,q);return q>=0&&(a||!this.segments[q].pending)}; g.C.l9=function(){return this.j_?this.segments.length?this.p$(this.B5()).Dh:-1:g.yo.prototype.l9.call(this)}; g.C.B5=function(){if(this.pT)return 0;if(!this.j_)return g.yo.prototype.B5.call(this);if(!this.segments.length)return 0;var q=Math.max(g.s6(this.segments).endTime-this.Gf,0);return this.cJ>0&&this.p$(q).Dh0)return this.Dm/1E3;if(!this.segments.length)return g.yo.prototype.DG.call(this);var q=this.P5();if(!this.j_||q<=this.segments[this.segments.length-1].Dh)q=this.segments[this.segments.length-1];else{var a=this.segments[this.segments.length-1];q=new Rg(q,Math.max(0,a.startTime-(a.Dh-q)*this.jZ),this.jZ,0,"sq/"+q,void 0,void 0,!0)}return this.pT?Math.min(this.Gf,q.endTime):q.endTime}; g.C.PP=function(){return this.j_?this.segments.length?this.P5()-this.l9()+1:0:g.yo.prototype.PP.call(this)}; g.C.P5=function(){var q=Math.min(this.YL,Math.max(g.yo.prototype.P5.call(this),this.rd)),a=this.Gf*1E3;a=this.Dm>0&&this.Dm0&&this.rd>0&&!a&&(a=this.p$(this.Gf))&&(q=Math.min(a.Dh-1,q));return q}; g.C.vY=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.C.G9=function(q){var a=$D(this,q.Dh);if(a>=0)this.segments[a]=q;else if(this.segments.splice(-(a+1),0,q),this.M4&&q.Dh%(300/this.jZ)===0){var w=this.segments[0].Dh,G=Math.floor(this.M4/this.jZ);q=q.Dh-G;a=-(a+1)-G;a>0&&q>w&&(this.segments=this.segments.slice(a))}}; g.C.H7=function(){return this.rd}; g.C.Ux=function(q){return dK?!this.U&&q>=0&&this.P5()<=q:g.yo.prototype.Ux.call(this,q)}; g.C.p$=function(q){if(!this.j_)return g.yo.prototype.p$.call(this,q);if(!this.segments.length)return null;var a=this.segments[this.segments.length-1];if(q=a.endTime)a=a.Dh+Math.floor((q-a.endTime)/this.jZ+1);else{a=IB(this.segments,function(G){return q=G.endTime?1:0}); if(a>=0)return this.segments[a];var w=-(a+1);a=this.segments[w-1];w=this.segments[w];a=Math.floor((q-a.endTime)/((w.startTime-a.endTime)/(w.Dh-a.Dh-1))+1)+a.Dh}return this.tG(a)}; g.C.tG=function(q){if(!this.j_)return g.yo.prototype.tG.call(this,q);if(!this.segments.length)return null;var a=$D(this,q);if(a>=0)return this.segments[a];var w=-(a+1);a=this.jZ;if(w===0)var G=Math.max(0,this.segments[0].startTime-(this.segments[0].Dh-q)*a);else w===this.segments.length?(G=this.segments[this.segments.length-1],G=G.endTime+(q-G.Dh-1)*a):(G=this.segments[w-1],a=this.segments[w],a=(a.startTime-G.endTime)/(a.Dh-G.Dh-1),G=G.endTime+(q-G.Dh-1)*a);return new Rg(q,G,a,0,"sq/"+q,void 0,void 0, !0)}; var dK=!1;g.Z(FH,N5);g.C=FH.prototype;g.C.YJ=function(){return!0}; g.C.cH=function(){return!0}; g.C.Cv=function(q){return this.Sk()&&q.W&&!q.Y||!q.V.index.Ux(q.Dh)}; g.C.tE=function(){}; g.C.tb=function(q,a){return typeof q!=="number"||isFinite(q)?N5.prototype.tb.call(this,q,a===void 0?!1:a):new bj([new ys(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.Ca,void 0,this.Ca*this.info.J2)],"")}; g.C.Su=function(q,a){var w=w===void 0?!1:w;if(this.index.PF(q))return N5.prototype.Su.call(this,q,a);var G=this.index.getStartTime(q),k=Math.round(this.Ca*this.info.J2),b=this.Ca;a&&(b=k=0);return new bj([new ys(w?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",q,G,b,void 0,k,!a)],q>=0?"sq/"+q:"")};g.Z(Cg,zh);g.C=Cg.prototype;g.C.eD=function(){return!1}; g.C.Sk=function(){return!1}; g.C.YJ=function(){return!1}; g.C.tE=function(){return new bj([new ys(1,this,void 0,"otfInit")],this.D)}; g.C.zd=function(){return null}; g.C.ww=function(q){this.Cv(q);return XYU(this,wK(q),!1)}; g.C.tb=function(q,a){a=a===void 0?!1:a;q=this.index.uT(q);a&&(q=Math.min(this.index.P5(),q+1));return XYU(this,q,!0)}; g.C.D6=function(q){q.info.type===1&&(this.V||(this.V=kv(q.U)),q.V&&q.V.uri==="http://youtube.com/streaming/otf/durations/112015"&&jKc(this,q.V))}; g.C.Cv=function(q){return q.W===0?!0:this.index.P5()>q.Dh&&this.index.l9()<=q.Dh+1}; g.C.rq=function(){return 0}; g.C.Bk=function(){return!1};g.Zw.prototype.info=function(){}; g.Zw.prototype.debug=function(){}; g.Zw.prototype.V=function(q){Es.apply(null,[5,this.tag,q].concat(g.Tf(g.XU.apply(1,arguments))))}; var u5K=new Map,zVm=new Map,tGK=new function(){var q=this;this.V=new Map;this.qh={sH9:function(){return q.V}}};g.C=g.Bw.prototype;g.C.PF=function(q){return q<=this.P5()}; g.C.Re=function(q){return this.offsets[q]}; g.C.getStartTime=function(q){return this.startTicks[q]/this.V}; g.C.BR=function(q){return this.getStartTime(q)+this.getDuration(q)}; g.C.QA=qm(0);g.C.OB=function(){return NaN}; g.C.getDuration=function(q){q=this.Ri(q);return q>=0?q/this.V:-1}; g.C.Ri=function(q){return q+1=0}; g.C.DG=function(){return this.U?this.startTicks[this.count]/this.V:NaN}; g.C.B5=function(){return 0}; g.C.PP=function(){return this.count}; g.C.uH=function(){return""}; g.C.uT=function(q){q=g.oB(this.startTicks.subarray(0,this.count),q*this.V);return q>=0?q:Math.max(0,-q-2)}; g.C.isLoaded=function(){return this.P5()>=0}; g.C.Tu=function(q,a){if(q>=this.P5())return 0;var w=0;for(a=this.getStartTime(q)+a;qthis.getStartTime(q);q++)w=Math.max(w,wzc(this,q)/this.getDuration(q));return w}; g.C.resize=function(q){q+=2;var a=this.offsets;this.offsets=new Float64Array(q+1);var w=this.startTicks;this.startTicks=new Float64Array(q+1);for(q=0;q0&&q&&(w=w.range.end+1,q=Math.min(q,this.info.contentLength-w),q>0&&G.push(new ys(4,this,Dm(w,q),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,a)));return new bj(G)}; g.C.D6=function(q){if(q.info.type===1){if(this.V)return;this.V=kv(q.U)}else if(q.info.type===2){if(this.D||this.index.P5()>=0)return;if(g.vY(this.info)){var a=this.index,w=g.Jw(q);q=q.info.range.start;var G=g.PG(w,0,1936286840);w=R2j(G);a.V=w.timescale;var k=w.Yv;a.offsets[0]=w.CM+q+G.size;a.startTicks[0]=k;a.U=!0;q=w.L1.length;for(G=0;G0&&q===b[0].yS)for(q=0;q=a+w)break}k.length||(q=new g.UH("b189619593",""+q,""+a,""+w),g.mQ(q));return new bj(k)}; g.C.M6=function(q){for(var a=this.fZ(q.info),w=q.info.range.start+q.info.U,G=[],k=0;k=this.index.Re(w+1);)w++;return this.TP(w,a,q.W).sK}; g.C.Cv=function(q){q.Dw();return this.cH()?!0:q.range.end+1this.info.contentLength&&(a=new ip(a.start,this.info.contentLength-1)),new bj([new ys(4,q.V,a,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,q.clipId)]);q.type===4&&(q=this.fZ(q),q=q[q.length-1]);var w=0,G=q.range.start+q.U+q.W;q.type===3&&(q.Dw(),w=q.Dh,G===q.range.end+1&&(w+=1));return this.TP(w,G,a)}; g.C.ww=function(){return null}; g.C.tb=function(q,a){a=a===void 0?!1:a;q=this.index.uT(q);a&&(q=Math.min(this.index.P5(),q+1));return this.TP(q,this.index.Re(q),0,void 0)}; g.C.eD=function(){return!0}; g.C.Sk=function(){return!0}; g.C.YJ=function(){return!1}; g.C.rq=function(){return this.indexRange.length+this.initRange.length}; g.C.Bk=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var y7={},Cwy=(y7.COLOR_PRIMARIES_BT709="bt709",y7.COLOR_PRIMARIES_BT2020="bt2020",y7.COLOR_PRIMARIES_UNKNOWN=null,y7.COLOR_PRIMARIES_UNSPECIFIED=null,y7),qy={},kL_=(qy.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",qy.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",qy.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",qy.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",qy.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,qy.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,qy);g.M5.prototype.getName=function(){return this.name}; g.M5.prototype.getId=function(){return this.id}; g.M5.prototype.getIsDefault=function(){return this.isDefault}; g.M5.prototype.toString=function(){return this.name}; g.M5.prototype.getName=g.M5.prototype.getName;g.M5.prototype.getId=g.M5.prototype.getId;g.M5.prototype.getIsDefault=g.M5.prototype.getIsDefault;var ebc=/action_display_post/;var NDl,fg,Hw;g.Z(cw,g.ya);g.C=cw.prototype;g.C.isLoading=function(){return this.state===1}; g.C.ir=function(){return this.state===3}; g.C.k4T=function(q){var a=q.getElementsByTagName("Representation");if(q.getElementsByTagName("SegmentList").length>0||q.getElementsByTagName("SegmentTemplate").length>0){this.pk=this.U=!0;this.timeline||(this.timeline=new Sec);pYJ(this.timeline,q);this.publish("refresh");for(q=0;q=0?P=WG(d):K=K+"?range="+d}N.call(e,new Rg(Y.Dh,Y.startSecs,Y.LT,Y.V,K,P,Y.U))}G=k}w.update(G,this.isLive,this.le)}U4G(this.timeline);return!0}this.duration=nGl(YD(q,"mediaPresentationDuration")); a:{for(q=0;q0))return this.K0()-q}}q=this.V;for(var a in q){var w=q[a].index;if(w.isLoaded()&&!yz(q[a].info.mimeType))return w.B5()}return 0}; g.C.getStreamTimeOffset=function(){return this.X}; g.C.OB=function(q){for(var a in this.V){var w=this.V[a].index;if(w.isLoaded()){var G=w.uT(q),k=w.OB(G);if(k)return k+q-w.getStartTime(G)}}return NaN}; var Ra=null,R0e,yW=!((R0e=navigator.mediaCapabilities)==null||!R0e.decodingInfo),ABf={commentary:1,alternate:2,dub:3,main:4};var EO=new Set,qi=new Map;wR.prototype.clone=function(q){return new wR(this.flavor,q,this.U,this.experiments)}; wR.prototype.Kk=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; wR.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 yHy={},Kz=(yHy.playready=["com.youtube.playready","com.microsoft.playready"],yHy.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],yHy),gG={},DCU=(gG.widevine="DRM_SYSTEM_WIDEVINE",gG.fairplay="DRM_SYSTEM_FAIRPLAY",gG.playready="DRM_SYSTEM_PLAYREADY",gG),aC={},qz8=(aC.widevine=1,aC.fairplay=2,aC.playready=3,aC);var $x;g.Z(dR,g.c); dR.prototype.initialize=function(q,a){for(var w=this,G=g.V(Object.keys(q)),k=G.next();!k.done;k=G.next()){k=g.V(q[k.value]);for(var b=k.next();!b.done;b=k.next())if(b=b.value,b.vN)for(var O=g.V(Object.keys(b.vN)),e=O.next();!e.done;e=O.next()){var N=e.value;e=N;N=Kz[N];!N&&this.T("html5_enable_vp9_fairplay")&&e==="fairplay"&&(N=["com.youtube.fairplay.sbdl"]);if(N){N=g.V(N);for(var Y=N.next();!Y.done;Y=N.next())Y=Y.value,this.W[Y]=this.W[Y]||new wR(e,Y,b.vN[e],this.cT.experiments),this.V[e]=this.V[e]|| {},this.V[e][b.mimeType]=!0}}}UF()&&(this.W["com.youtube.fairplay"]=new wR("fairplay","com.youtube.fairplay","",this.cT.experiments),this.T("html5_enable_vp9_fairplay")||(this.V.fairplay=this.V.fairplay||{},this.V.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.V.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.U=U7l(a,this.useCobaltWidevine,this.T("html5_enable_safari_fairplay")&&!0,this.T("html5_enable_vp9_fairplay")).filter(function(P){return!!w.W[P]})}; dR.prototype.T=function(q){return this.cT.experiments.Zh(q)};var g08={"":"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"};tNV.prototype.T=function(q){return this.experiments.Zh(q)};var pkU={RED:"red",b6T:"white"};vjj.prototype.Zh=function(q){q=this.flags[q];JSON.stringify(q);return q==="true"};var W5c=Promise.resolve(),qfl=window.queueMicrotask?window.queueMicrotask.bind(window):D7m;Zu.prototype.canPlayType=function(q,a){q=q.canPlayType?q.canPlayType(a):!1;X4?q=q||aLU[a]:w8===2.2?q=q||w3e[a]:cr()&&(q=q||GDJ[a]);return!!q}; Zu.prototype.isTypeSupported=function(q){return this.J?window.cast.receiver.platform.canDisplayType(q):F5(q)}; var w3e={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},GDJ={"application/x-mpegURL":"maybe"},aLU={"application/x-mpegURL":"maybe"};g.Z(Jj,g.ya);Jj.prototype.add=function(q,a){if(!this.items[q]&&(a.dH||a.fY||a.z3)){var w=this.items,G=a;Object.isFrozen&&!Object.isFrozen(a)&&(G=Object.create(a),Object.freeze(G));w[q]=G;this.publish("vast_info_card_add",q)}}; Jj.prototype.remove=function(q){var a=this.get(q);delete this.items[q];return a}; Jj.prototype.get=function(q){return this.items[q]||null}; Jj.prototype.isEmpty=function(){return g.KH(this.items)};mI.prototype.encrypt=function(q){this.V.exports.AES128CTRCipher_encrypt(this.cipher,q.byteOffset,q.byteLength);return q}; mI.prototype.t2=function(){return this.cipher===0}; mI.prototype.dispose=function(){this.V.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};Aj.prototype.My=function(q,a){a=a===void 0?1:a;this.ri+=a;this.U+=q;q/=a;for(var w=0;w0)G+="."+Qw[k].toFixed(0)+"_"+w.V[k].toFixed(0);else break;w=G}w&&(q[a]=w)}this.V=new GHK;return q}; g.C.toString=function(){return""};g.C=Nvc.prototype;g.C.isActive=function(){return!1}; g.C.M2=function(){}; g.C.jQ=function(){}; g.C.td=function(){}; g.C.WL=function(q,a){a()}; g.C.oi=function(){return{}}; g.C.toString=function(){return""};var kDe=new Nvc,biK=!!+Xg("html5_enable_profiler"),OiV=!!+Xg("html5_onesie_enable_profiler"),wG=biK||OiV?new b8f:kDe,Fgf=biK?wG:kDe,Lz=OiV?wG:kDe;$xU.prototype.emscripten_notify_memory_growth=function(){};g.C=xx.prototype;g.C.malloc=function(q){return this.exports.malloc(q)}; g.C.free=function(q){this.exports.free(q)}; g.C.realloc=function(q,a){return this.exports.realloc(q,a)}; g.C.qg=function(q){if(q.buffer!==this.exports.memory.buffer){var a=this.malloc(q.byteLength);a=new Uint8Array(this.exports.memory.buffer,a,q.byteLength);a.set(q);return a}}; g.C.Mt=function(q){if(q.buffer===this.exports.memory.buffer){var a=q.slice();this.free(q.byteOffset);return a}}; var Yfm=new function(){this.W=this.Y="WebAssembly"in window},Bm="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly); Lz.M2(xx,{qg:function(q){return{profile:"copyj2w",ri:q===void 0?0:Math.ceil(q.byteLength/16)}}, Mt:function(q){return{profile:"copyw2j",ri:q===void 0?0:Math.ceil(q.byteLength/16)}}});rR.prototype.encrypt=function(q,a){try{return this.V.Mt(Z8c(this,q,a))}catch(w){g.Qa(Error("ocwce: wasm encrypt failed: "+w))}}; rR.prototype.t2=function(){return this.W}; rR.prototype.dispose=function(){this.t2()||(g.wB(this.U),this.V.free(this.Y.byteOffset),this.W=!0)};g.Z(Ebl,g.c);g.Z(J9f,g.c);var Mi;hj.prototype.add=function(q){if(this.pos+20>this.data.length){var a=new Uint8Array(this.data.length*2);a.set(this.data);this.data=a}for(;q>31;)this.data[this.pos++]=Mi[(q&31)+32],q>>=5;this.data[this.pos++]=Mi[q|0]}; hj.prototype.m$=function(){return g.Nj(this.data.subarray(0,this.pos))}; hj.prototype.reset=function(){this.pos=0};fz.prototype.bM=function(q,a){var w=Math.pow(this.alpha,q);this.V=a*(1-w)+w*this.V;this.U+=q}; fz.prototype.CO=function(){return this.V/(1-Math.pow(this.alpha,this.U))};Hm.prototype.bM=function(q,a){for(var w=0;w<10;w++){var G=this.V[w],k=G+(w===0?q:0),b=1*Math.pow(2,w);if(k<=b)break;G=Math.min(1,(k-b*.5)/G);for(k=0;k<16;k++)b=this.values[w*16+k]*G,this.values[(w+1)*16+k]+=b,this.V[w+1]+=b,this.values[w*16+k]-=b,this.V[w]-=b}G=w=0;k=8192;a>8192&&(w=Math.ceil(Math.log(a/8192)/Math.log(2)),G=8192*Math.pow(2,w-1),k=G*2);w+2>16?this.values[15]+=q:(a=(a-G)/(k-G),this.values[w]+=q*(1-a),this.values[w+1]+=q*a);this.V[0]+=q}; Hm.prototype.CO=function(){var q=q===void 0?this.U:q;var a=a===void 0?.02:a;var w=w===void 0?.98:w;for(var G=this.W,k=0;k<16;k++)G[k]=this.values[k];k=this.V[0];for(var b=1;b<11;b++){var O=this.V[b];if(O===0)break;for(var e=Math.min(1,(q-k)/O),N=0;N<16;N++)G[N]+=this.values[b*16+N]*e;k+=O*e;if(e<1)break}for(b=q=O=0;b<16;b++){e=O+G[b]/k;q+=Math.max(0,Math.min(e,w)-Math.max(O,a))*(b>0?8192*Math.pow(2,b-1):0);if(e>w)break;O=e}return q/(w-a)};cm.prototype.bM=function(q,a){q=Math.min(this.V,Math.max(1,Math.round(q*this.resolution)));q+this.U>=this.V&&(this.W=!0);for(;q--;)this.values[this.U]=a,this.U=(this.U+1)%this.V;this.YY=!0}; cm.prototype.percentile=function(q){var a=this;if(!this.W&&this.U===0)return 0;this.YY&&(g.vR(this.D,function(w,G){return a.values[w]-a.values[G]}),this.YY=!1); return this.values[this.D[Math.round(q*((this.W?this.V:this.U)-1))]]||0}; cm.prototype.CO=function(){return this.L?(this.percentile(this.Y-this.L)+this.percentile(this.Y)+this.percentile(this.Y+this.L))/3:this.percentile(this.Y)};g.Z(pz,g.c);pz.prototype.St=function(){var q;(q=this.Tl)==null||q.start();if(vm(this)&&this.policy.S){var a;(a=this.n0)==null||a.Qn()}};BvK.prototype.T=function(q){return this.experiments.Zh(q)};g.Z(nbG,g.c);var c9N="blogger ads-preview gac books docs duo flix google-live google-one play play-ads shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),upl={GnK:"caoe",f92:"capsv",kn8:"cbrand",bEh:"cbr",PM7:"cbrver",Kq8:"cchip",Uze:"ccappver",dz2:"ccrv",rK8:"cfrmver",Nl9:"c",kjG:"cver",gEK:"ctheme",wW7:"cplayer",wIh:"cmodel",MI:"cnetwork",Fee:"cos",OS_VERSION:"cosver",yZ9:"cplatform",kRQ:"crqyear"};g.Z(KA,g.c);g.C=KA.prototype;g.C.T=function(q){return this.experiments.Zh(q)}; g.C.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.C.getVideoUrl=function(q,a,w,G,k,b,O){a={list:a};w&&(k?a.time_continue=w:a.t=w);w=O?"music.youtube.com":g.Tu(this);k=w==="www.youtube.com";!b&&G&&k?b="https://youtu.be/"+q:g.b0(this)?(b="https://"+w+"/fire",a.v=q):(b&&k?(b=this.protocol+"://"+w+"/shorts/"+q,G&&(a.feature="share")):(b=this.protocol+"://"+w+"/watch",a.v=q),X4&&(q=ctJ())&&(a.ebc=q));return g.sk(b,a)}; g.C.getVideoEmbedCode=function(q,a,w,G){a="https://"+g.Tu(this)+"/embed/"+a;G&&(a=g.sk(a,{list:G}));G=w.width;w=w.height;a=rj(a);q=rj(q!=null?q:"YouTube video player");return'')}; g.C.supportsGaplessAudio=function(){return g.se&&!X4&&Se()>=74||g.Yx&&g.UX(68)?!0:!1}; g.C.supportsGaplessShorts=function(){return!this.T("html5_enable_short_gapless")||this.le||g.Ph?!1:!0}; g.C.getPlayerType=function(){return this.V.cplayer}; g.C.TZ=function(){return this.E3}; var i8y=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],Ial=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],vbm=[19];var GW={},y9K=(GW["140"]={numChannels:2},GW["141"]={numChannels:2},GW["251"]={audioSampleRate:48E3,numChannels:2},GW["774"]={audioSampleRate:48E3,numChannels:2},GW["380"]={numChannels:6},GW["328"]={numChannels:6},GW["773"]={},GW),ku={},Dxl=(ku["1"]='video/mp4; codecs="av01.0.08M.08"',ku["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',ku["1e"]='video/mp4; codecs="av01.0.08M.08"',ku["9"]='video/webm; codecs="vp9"',ku["("]='video/webm; codecs="vp9"',ku["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"', ku.h='video/mp4; codecs="avc1.64001e"',ku.H='video/mp4; codecs="avc1.64001e"',ku.o='audio/webm; codecs="opus"',ku.a='audio/mp4; codecs="mp4a.40.2"',ku.ah='audio/mp4; codecs="mp4a.40.2"',ku.mac3='audio/mp4; codecs="ac-3"; channels=6',ku.meac3='audio/mp4; codecs="ec-3"; channels=6',ku.i='audio/mp4; codecs="iamf.001.001.Opus"',ku),bK={},ROc=(bK["337"]={width:3840,height:2160,bitrate:3E7,fps:30},bK["336"]={width:2560,height:1440,bitrate:15E6,fps:30},bK["335"]={width:1920,height:1080,bitrate:75E5,fps:30}, bK["702"]={width:7680,height:4320,bitrate:4E7,fps:60},bK["701"]={width:3840,height:2160,bitrate:2E7,fps:60},bK["700"]={width:2560,height:1440,bitrate:1E7,fps:60},bK["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},bK["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},bK["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},bK["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"}, bK["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},bK["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},bK["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},bK["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},bK["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},bK["315"]={width:3840,height:2160,bitrate:2E7,fps:60},bK["308"]={width:2560, height:1440,bitrate:1E7,fps:60},bK["303"]={width:1920,height:1080,bitrate:5E6,fps:60},bK["302"]={width:1280,height:720,bitrate:25E5,fps:60},bK["299"]={width:1920,height:1080,bitrate:75E5,fps:60},bK["298"]={width:1280,height:720,bitrate:35E5,fps:60},bK["571"]={width:7680,height:4320,bitrate:3E7,fps:60},bK["401"]={width:3840,height:2160,bitrate:15E6,fps:60},bK["400"]={width:2560,height:1440,bitrate:75E5,fps:60},bK["399"]={width:1920,height:1080,bitrate:2E6,fps:60},bK["398"]={width:1280,height:720,bitrate:1E6, fps:60},bK["397"]={width:854,height:480,bitrate:4E5,fps:30},bK["396"]={width:640,height:360,bitrate:25E4,fps:30},bK["787"]={width:1080,height:608,bitrate:2E5,fps:30},bK["788"]={width:1080,height:608,bitrate:4E5,fps:30},bK["572"]={width:7680,height:4320,bitrate:3E7,fps:60},bK["555"]={width:3840,height:2160,bitrate:15E6,fps:60},bK["554"]={width:2560,height:1440,bitrate:75E5,fps:60},bK["553"]={width:1920,height:1080,bitrate:2E6,fps:60},bK["552"]={width:1280,height:720,bitrate:1E6,fps:60},bK["551"]={width:854, height:480,bitrate:4E5,fps:30},bK["550"]={width:640,height:360,bitrate:25E4,fps:30},bK["313"]={width:3840,height:2160,bitrate:8E6,fps:30},bK["271"]={width:2560,height:1440,bitrate:4E6,fps:30},bK["248"]={width:1920,height:1080,bitrate:2E6,fps:30},bK["247"]={width:1280,height:720,bitrate:15E5,fps:30},bK["244"]={width:854,height:480,bitrate:52E4,fps:30},bK["243"]={width:640,height:360,bitrate:28E4,fps:30},bK["137"]={width:1920,height:1080,bitrate:4E6,fps:30},bK["136"]={width:1280,height:720,bitrate:3E6, fps:30},bK["135"]={width:854,height:480,bitrate:1E6,fps:30},bK["385"]={width:1920,height:1080,bitrate:6503313,fps:60},bK["376"]={width:1280,height:720,bitrate:5706960,fps:60},bK["384"]={width:1280,height:720,bitrate:3660979,fps:60},bK["225"]={width:1280,height:720,bitrate:5805E3,fps:30},bK["224"]={width:1280,height:720,bitrate:453E4,fps:30},bK["145"]={width:1280,height:720,bitrate:2682052,fps:30},bK);g.C=M2.prototype;g.C.getInfo=function(){return this.V}; g.C.gw=function(){return null}; g.C.LI=function(){var q=this.gw();return q?(q=g.RI(q.GZ),Number(q.expire)):NaN}; g.C.xa=function(){}; g.C.getHeight=function(){return this.V.video.height};wZ_.prototype.build=function(){brN(this);var q=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],a={};a:if(this.V)var w=this.V;else{w="";for(var G=g.V(this.W),k=G.next();!k.done;k=G.next())if(k=k.value,k.Pq){if(k.Pq.getIsDefault()){w=k.Pq.getId();break a}w||(w=k.Pq.getId())}}G=g.V(this.W);for(k=G.next();!k.done;k=G.next())if(k=k.value,this.L||!k.Pq||k.Pq.getId()===w)a[k.itag]||(a[k.itag]=[]),a[k.itag].push(k);w=g.V(this.U);for(G=w.next();!G.done;G=w.next())if(G=G.value,k=a[G.V]){k=g.V(k);for(var b=k.next();!b.done;b= k.next()){var O=q,e=O.push;b=b.value;var N="#EXT-X-MEDIA:TYPE=AUDIO,",Y="YES",P="audio";if(b.Pq){P=b.Pq;var K=P.getId().split(".")[0];K&&(N+='LANGUAGE="'+K+'",');(this.V?this.V===P.getId():P.getIsDefault())||(Y="NO");P=P.getName()}K="";G!==null&&(K=G.itag.toString());K=S6(this,b.url,K);N=N+('NAME="'+P+'",DEFAULT='+(Y+',AUTOSELECT=YES,GROUP-ID="'))+(k0V(b,G)+'",URI="'+(K+'"'));e.call(O,N)}}w=g.V(this.D);for(G=w.next();!G.done;G=w.next())G=G.value,k=lL8,G=(O=G.Pq)?'#EXT-X-MEDIA:URI="'+S6(this,G.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+k+'",LANGUAGE="'+O.getId()+'",NAME="'+O.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,G&&q.push(G);w=this.D.length>0?lL8:void 0;G=g.V(this.U);for(k=G.next();!k.done;k=G.next())k=k.value,e=a[k.V],O=void 0,((O=e)==null?void 0:O.length)>0&&(O=k,e=e[0],e="#EXT-X-STREAM-INF:BANDWIDTH="+(O.bitrate+e.bitrate)+',CODECS="'+(O.codecs+","+e.codecs+'",RESOLUTION=')+(O.width+"x"+O.height+',AUDIO="')+(k0V(e,O)+'",')+(w?'SUBTITLES="'+w+'",':"")+"CLOSED-CAPTIONS=NONE",O.fps>1&&(e+= ",FRAME-RATE="+O.fps),O.mR&&(e+=",VIDEO-RANGE="+O.mR),q.push(e),q.push(S6(this,k.url,"")));return q.join("\n")}; var lL8="text";g.Z(fA,M2);fA.prototype.LI=function(){return this.expiration}; fA.prototype.gw=function(){if(!this.GZ||this.GZ.t2()){var q=this.U.build();q="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(q);this.GZ=new TL(q)}return this.GZ};g.Z(H8,M2);H8.prototype.gw=function(){return new TL(this.U.Do())}; H8.prototype.xa=function(){this.U=WX(this.U)};g.Z(c8,M2);c8.prototype.gw=function(){return new TL(this.U)};var OM={},$cG=(OM.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",OM.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",OM.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",OM.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_MISSING_REFERRER="embedder.identity.missing.referrer",OM);g.C=g.pA.prototype;g.C.getId=function(){return this.id}; g.C.getName=function(){return this.name}; g.C.isServable=function(){return this.V}; g.C.Do=function(){return this.url}; g.C.getXtags=function(){return this.xtags}; g.C.toString=function(){return this.languageCode+": "+g.UV(this)+" - "+this.vssId+" - "+(this.captionId||"")}; g.C.equals=function(q){return q?this.toString()===q.toString():!1}; g.C.PN=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var VQJ={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},Jz_={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},mcc=/^(\d*)_((\d*)_?(\d*))$/;var Azl={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},xcf={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var lK={},eiw=(lK.ALWAYS=1,lK.BY_REQUEST=3,lK.UNKNOWN=void 0,lK),eh={},NaJ=(eh.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",eh.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",eh.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",eh.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",eh);var f2V; f2V=function(q){for(var a=Object.keys(q),w={},G=0;GG-a?-1:q}; g.C.Za=function(){return this.U.P5()}; g.C.LR=function(){return this.U.l9()}; g.C.N6=function(q){this.U=q};g.Z(Kc,YQ);Kc.prototype.U=function(q,a){return YQ.prototype.U.call(this,"$N|"+q,a)}; Kc.prototype.D=function(q,a,w){return new PD(q,a,w,this.isLive)};g.Z(g.TO,g.ya);g.C=g.TO.prototype; g.C.setData=function(q){q=q||{};var a=q.errordetail;a!=null&&(this.errorDetail=a);var w=q.errorcode;w!=null?this.errorCode=w:q.status==="fail"&&(this.errorCode="auth");var G=q.reason;G!=null&&(this.errorReason=G);var k=q.subreason;k!=null&&(this.Dl=k);this.clientPlaybackNonce||(this.clientPlaybackNonce=q.cpn||(this.cT.TZ()?"r"+g.K5(15):g.K5(16)));this.IW=DS(this.cT.IW,q.livemonitor);GKK(this,q);var b=q.raw_player_response;if(b)this.uA=b;else{var O=q.player_response;O&&(b=JSON.parse(O))}b&&(this.playerResponse= b);if(this.playerResponse){var e=this.playerResponse.annotations;if(e)for(var N=g.V(e),Y=N.next();!Y.done;Y=N.next()){var P=Y.value.playerAnnotationsUrlsRenderer;if(P){P.adsOnly&&(this.VO=!0);var K=P.loadPolicy;K&&(this.annotationsLoadPolicy=eiw[K]);var d=P.invideoUrl;d&&(this.Tl=pp(d));break}}var T=this.playerResponse.attestation;T&&Bic(this,T);var F=this.playerResponse.cotn;F&&(this.cotn=F);var J=this.playerResponse.heartbeatParams;if(J){this.Y7=!0;var Q=J.heartbeatToken;Q&&(this.drmSessionId=J.drmSessionId|| "",this.heartbeatToken=Q,this.Xc=Number(J.intervalMilliseconds),this.Dg=Number(J.maxRetries),this.Ly=!!J.softFailOnError,this.qJ=!!J.useInnertubeHeartbeatsForDrm);this.heartbeatServerData=J.heartbeatServerData;var B;this.mP=!((B=J.heartbeatAttestationConfig)==null||!B.requiresAttestation)}var L=this.playerResponse.messages;L&&hRV(this,L);var M=this.playerResponse.overlay;if(M){var H=M.playerControlsOverlayRenderer;if(H)if(fqj(this,H.controlBgHtml),H.mutedAutoplay){var X=g.I(H.mutedAutoplay,EAB);if(X&& X.endScreen){var D=g.I(X.endScreen,VUU);D&&D.text&&(this.Yz=g.OE(D.text))}}else this.mutedAutoplay=!1}var z=this.playerResponse.playabilityStatus;if(z){var Oj=z.backgroundability;Oj&&Oj.backgroundabilityRenderer.backgroundable&&(this.backgroundable=!0);var $l,ey;if(($l=z.offlineability)==null?0:(ey=$l.offlineabilityRenderer)==null?0:ey.offlineable)this.offlineable=!0;var Nm=z.contextParams;Nm&&(this.contextParams=Nm);var a_=z.pictureInPicture;a_&&a_.pictureInPictureRenderer.playableInPip&&(this.pipable= !0);z.playableInEmbed&&(this.allowEmbed=!0);var BJ=z.ypcClickwrap;if(BJ){var WJ=BJ.playerLegacyDesktopYpcClickwrapRenderer,gy=BJ.ypcRentalActivationRenderer;if(WJ)this.ag=WJ.durationMessage||"",this.Ku=!0;else if(gy){var F8=gy.durationMessage;this.ag=F8?g.OE(F8):"";this.Ku=!0}}var eK=z.errorScreen;if(eK){if(eK.playerLegacyDesktopYpcTrailerRenderer){var Mm=eK.playerLegacyDesktopYpcTrailerRenderer;this.A5=Mm.trailerVideoId||"";var O7=eK.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var cR=O7&&O7.ypcTrailerRenderer}else if(eK.playerLegacyDesktopYpcOfferRenderer)Mm= eK.playerLegacyDesktopYpcOfferRenderer;else if(eK.ypcTrailerRenderer){cR=eK.ypcTrailerRenderer;var uV=cR.fullVideoMessage;this.uR=uV?g.OE(uV):"";var lb,r;this.A5=((lb=g.I(cR,JMc))==null?void 0:(r=lb.videoDetails)==null?void 0:r.videoId)||""}Mm&&(this.WM=Mm.itemTitle||"",Mm.itemUrl&&(this.nx=Mm.itemUrl),Mm.itemBuyUrl&&(this.Lx=Mm.itemBuyUrl),this.Xi=Mm.itemThumbnail||"",this.Mu=Mm.offerHeadline||"",this.Qr=Mm.offerDescription||"",this.FB=Mm.offerId||"",this.l_=Mm.offerButtonText||"",this.sZ=Mm.offerButtonFormattedText|| null,this.t5=Mm.overlayDurationMsec||NaN,this.uR=Mm.fullVideoMessage||"",this.PQ=!0);if(cR){var o6=g.I(cR,JMc);if(o6)this.Uk={raw_player_response:o6};else{var hl=g.I(cR,hmU);this.Uk=hl?Wn(hl):null}this.PQ=!0}}}var Gf=this.playerResponse.playbackTracking;if(Gf){var Al=q,m=u0(Gf.googleRemarketingUrl);m&&(this.googleRemarketingUrl=m);var wc=u0(Gf.youtubeRemarketingUrl);wc&&(this.youtubeRemarketingUrl=wc);var MW={},em=u0(Gf.ptrackingUrl);if(em){var jK=td(em),zf=jK.oid;zf&&(this.vB=zf);var wy=jK.pltype; wy&&(this.LA=wy);var as=jK.ptchn;as&&(this.Go=as);var I6=jK.ptk;I6&&(this.wi=encodeURIComponent(I6));var A=jK.m;A&&(this.DX=A)}var E=u0(Gf.qoeUrl);if(E){for(var x=g.RI(E),S=g.V(Object.keys(x)),U=S.next();!U.done;U=S.next()){var KK=U.value,t=x[KK];x[KK]=Array.isArray(t)?t.join(","):t}this.XE=x;var y=x.cat;y&&(this.T("html5_enable_qoe_cat_list")?this.oP=this.oP.concat(y.split(",")):this.pF=y);var f=x.live;f&&(this.Ox=f);var fK=x.drm_product;fK&&(this.drmProduct=fK)}var I_=u0(Gf.videostatsPlaybackUrl); if(I_){var lG=td(I_),PR=lG.adformat;if(PR){Al.adformat=PR;var hm=this.B(),Am=QPl(PR,this.zC,hm.Y,hm.S);Am&&(this.adFormat=Am)}var aR=lG.aqi;aR&&(Al.ad_query_id=aR);var Qx=lG.autoplay;Qx&&(this.BH=Qx=="1",this.NT=Qx=="1");var pw=lG.autonav;pw&&(this.isAutonav=pw=="1");var LK=lG.delay;LK&&(this.OA=h7(LK));var JM=lG.ei;JM&&(this.eventId=JM);var nK=nz(lG.adcontext);if(nK)try{var SK=Vmw(nK);SK&&(this.GL=SK)}catch($kJ){g.Qa(Error("Malformed adContext"))}if(nK||PR)this.BH=!0;var xc=lG.feature;xc&&(this.Y2= xc);var eX=lG.list;eX&&(this.playlistId=eX);var Lw=lG.of;Lw&&(this.iS=Lw);var gx=lG.osid;gx&&(this.osid=gx);var GB=lG.referrer;GB&&(this.referrer=GB);var tl=lG.sdetail;tl&&(this.jk=tl);var fw=lG.ssrt;fw&&(this.L6=fw=="1");var LS=lG.subscribed;LS&&(this.subscribed=LS=="1");var WU=lG.uga;WU&&(this.userGenderAge=WU);var Fi=lG.upt;Fi&&(this.Iz=Fi);var Uz=lG.vm;Uz&&(this.videoMetadata=Uz);MW.playback=lG}var ab=u0(Gf.videostatsWatchtimeUrl);if(ab){var wx=td(ab),e0=wx.ald;e0&&(this.Kb=e0);MW.watchtime=wx}var m4= u0(Gf.atrUrl);if(m4){var cI=td(m4);MW.atr=cI}var DD=u0(Gf.engageUrl);if(DD){var pb=td(DD);MW.engage=pb}this.qZ=MW;if(Gf.promotedPlaybackTracking){var wp=Gf.promotedPlaybackTracking;wp.startUrls&&(this.k6=wp.startUrls);wp.firstQuartileUrls&&(this.K5=wp.firstQuartileUrls);wp.secondQuartileUrls&&(this.IF=wp.secondQuartileUrls);wp.thirdQuartileUrls&&(this.Vu=wp.thirdQuartileUrls);wp.completeUrls&&(this.s6=wp.completeUrls);wp.engagedViewUrls&&(wp.engagedViewUrls.length>1&&g.Qa(new g.UH("There are more than one engaged_view_urls.")), this.m4=wp.engagedViewUrls[0])}}var Ci=this.playerResponse.playerCueRanges;Ci&&Ci.length>0&&(this.cueRanges=Ci);var Xi=this.playerResponse.playerCueRangeSet;Xi&&g.Cc(this,Xi);a:{var Eg=this.playerResponse.adPlacements;if(Eg)for(var GN=g.V(Eg),V1=GN.next();!V1.done;V1=GN.next()){var k6=void 0,b2=void 0,OK=(k6=V1.value.adPlacementRenderer)==null?void 0:(b2=k6.renderer)==null?void 0:b2.videoAdTrackingRenderer;if(OK){var l2=OK;break a}}l2=null}var JY=l2;Gf&&Gf.promotedPlaybackTracking&&JY&&g.Qa(new g.UH("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer")); var Nz;if(!(Nz=JY))a:{for(var ec=g.V(this.playerResponse.adSlots||[]),ZO=ec.next();!ZO.done;ZO=ec.next()){var EA=g.I(ZO.value,P9);if(EA===void 0||!hxj(EA))break;var HN=void 0,X$=(HN=EA.fulfillmentContent)==null?void 0:HN.fulfilledLayout,jc=g.I(X$,wS);if(jc&&y5(jc)){Nz=!0;break a}}Nz=!1}Nz&&(this.II=!0);var ob=this.playerResponse.playerAds;if(ob)for(var by=q,cN=g.V(ob),Z9=cN.next();!Z9.done;Z9=cN.next()){var p7=Z9.value;if(p7){var Oq=p7.playerLegacyDesktopWatchAdsRenderer;if(Oq){var Ib=Oq.playerAdParams; if(Ib){Ib.autoplay=="1"&&(this.NT=this.BH=!0);this.rF=Ib.encodedAdSafetyReason||null;Ib.showContentThumbnail!==void 0&&(this.ZO=!!Ib.showContentThumbnail);by.enabled_engage_types=Ib.enabledEngageTypes;break}}}}var QD=this.playerResponse.playerConfig;if(QD){var mA=QD.manifestlessWindowedLiveConfig;if(mA){var ju=Number(mA.minDvrSequence),ly=Number(mA.maxDvrSequence),Vi=Number(mA.minDvrMediaTimeMs),eY=Number(mA.maxDvrMediaTimeMs),UQ=Number(mA.startWalltimeMs);ju&&(this.cJ=ju);Vi&&(this.jt=Vi/1E3,this.T("html5_sabr_parse_live_metadata_playback_boundaries")&& rM(this)&&(this.i5=Vi/1E3));ly&&(this.YL=ly);eY&&(this.yN=eY/1E3,this.T("html5_sabr_parse_live_metadata_playback_boundaries")&&rM(this)&&(this.zj=eY/1E3));UQ&&(this.N1=UQ/1E3);(ju||Vi)&&(ly||eY)&&(this.allowLiveDvr=this.isLivePlayback=this.y7=!0,this.pT=!1)}var Jk=QD.daiConfig;if(Jk){if(Jk.enableDai){this.aG=!0;var k3=Jk.enableServerStitchedDai;k3&&(this.enableServerStitchedDai=k3);var zt=Jk.enablePreroll;zt&&(this.Le=zt)}var PE;if(Jk.daiType==="DAI_TYPE_SS_DISABLED"||((PE=Jk.debugInfo)==null?0:PE.isDisabledUnpluggedChannel))this.Qf= !0;Jk.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(this.tN=!0);Jk.allowUstreamerRequestAdconfig&&(this.ll=!0)}var YE=QD.audioConfig;if(YE){var oI=YE.loudnessDb;oI!=null&&(this.E3=oI);var CkG=YE.trackAbsoluteLoudnessLkfs;CkG!=null&&(this.As=CkG);var ZmU=YE.loudnessTargetLkfs;ZmU!=null&&(this.loudnessTargetLkfs=ZmU);YE.audioMuted&&(this.CF=!0);YE.muteOnStart&&(this.E5=!0);var Ei=YE.loudnessNormalizationConfig;if(Ei){Ei.applyStatefulNormalization&&(this.applyStatefulNormalization=!0);Ei.preserveStatefulLoudnessTarget&& (this.preserveStatefulLoudnessTarget=!0);var E_y=Ei.minimumLoudnessTargetLkfs;E_y!=null&&(this.minimumLoudnessTargetLkfs=E_y);var V1y=Ei.maxStatefulTimeThresholdSec;V1y!=null&&(this.maxStatefulTimeThresholdSec=V1y)}YE.playAudioOnly&&(this.XN=!0)}var rHm=QD.playbackEndConfig;if(rHm){var J0_=rHm.endSeconds,msJ=rHm.limitedPlaybackDurationInSeconds;this.mutedAutoplay&&(J0_&&(this.endSeconds=J0_),msJ&&(this.limitedPlaybackDurationInSeconds=msJ))}var Ar=QD.fairPlayConfig;if(Ar){var Q0l=Ar.certificate;Q0l&& (this.le=nz(Q0l));var A0V=Number(Ar.keyRotationPeriodMs);A0V>0&&(this.eh=A0V);var xsU=Number(Ar.keyPrefetchMarginMs);xsU>0&&(this.El=xsU)}var BV=QD.playbackStartConfig;if(BV){this.Q_=Number(BV.startSeconds);var LEc=BV.liveUtcStartSeconds,BLJ=!!this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0;LEc&&!BLJ&&(this.liveUtcStartSeconds=Number(LEc));var nel=BV.startPosition;if(nel){var r0l=nel.utcTimeMillis;r0l&&!BLJ&&(this.liveUtcStartSeconds=Number(r0l)*.001);var n_V=nel.streamTimeMillis;n_V&&(this.C0= Number(n_V)*.001)}this.progressBarStartPosition=BV.progressBarStartPosition;this.progressBarEndPosition=BV.progressBarEndPosition}else{var M0c=QD.skippableSegmentsConfig;if(M0c){var M1f=M0c.introSkipDurationMs;M1f&&(this.OM=Number(M1f)/1E3);var hXj=M0c.outroSkipDurationMs;hXj&&(this.hf=Number(hXj)/1E3)}}var h0J=QD.skippableIntroConfig;if(h0J){var SIJ=Number(h0J.startMs),fz_=Number(h0J.endMs);isNaN(SIJ)||isNaN(fz_)||(this.Vm=SIJ,this.QE=fz_)}var Hml=QD.streamSelectionConfig;Hml&&(this.OQ=Number(Hml.maxBitrate)); var c0f=QD.vrConfig;c0f&&(this.G5=c0f.partialSpherical=="1");var V5=QD.webDrmConfig;if(V5){V5.skipWidevine&&(this.pN=!0);var pyK=V5.widevineServiceCert;pyK&&(this.KF=nz(pyK));V5.useCobaltWidevine&&(this.useCobaltWidevine=!0);V5.startWithNoQualityConstraint&&(this.J4=!0)}var I1=QD.mediaCommonConfig;if(I1){var xw=I1.dynamicReadaheadConfig;if(xw){this.maxReadAheadMediaTimeMs=xw.maxReadAheadMediaTimeMs||NaN;this.minReadAheadMediaTimeMs=xw.minReadAheadMediaTimeMs||NaN;this.readAheadGrowthRateMs=xw.readAheadGrowthRateMs|| NaN;var Usl,Xyy=I1==null?void 0:(Usl=I1.mediaUstreamerRequestConfig)==null?void 0:Usl.videoPlaybackUstreamerConfig;Xyy&&(this.D9=nz(Xyy));var Sdc=I1==null?void 0:I1.sabrContextUpdates;if(Sdc&&Sdc.length>0)for(var j0G=g.V(Sdc),fDj=j0G.next();!fDj.done;fDj=j0G.next()){var yL=fDj.value;if(yL.type&&yL.value){var HyK={type:yL.type,scope:yL.scope,value:nz(yL.value)||void 0,sendByDefault:yL.sendByDefault};this.sabrContextUpdates.set(yL.type,HyK)}}}var o_U=I1.serverPlaybackStartConfig;o_U&&(this.serverPlaybackStartConfig= o_U);I1.useServerDrivenAbr&&(this.bD=!0);var Izf=I1.requestPipeliningConfig;Izf&&(this.requestPipeliningConfig=Izf)}var uDG=QD.inlinePlaybackConfig;uDG&&(this.fL=!!uDG.showAudioControls);var LC=QD.embeddedPlayerConfig;if(LC){this.embeddedPlayerConfig=LC;var HQj=LC.embeddedPlayerMode;if(HQj){var t1y=this.B();t1y.jt=HQj;t1y.W=HQj==="EMBEDDED_PLAYER_MODE_PFL"}var v_c=LC.permissions;v_c&&(this.allowImaMonetization=!!v_c.allowImaMonetization)}var Bd=QD.webPlayerConfig;Bd&&(Bd.gatewayExperimentGroup&&(this.gatewayExperimentGroup= Bd.gatewayExperimentGroup),Bd.isProximaEligible&&(this.isProximaLatencyEligible=!0))}var uX=this.playerResponse.streamingData;if(uX){var cHV=uX.formats;if(cHV){for(var Jz=[],zXU=g.V(cHV),pUV=zXU.next();!pUV.done;pUV=zXU.next()){var UzG=pUV.value;Jz.push(UzG.itag+"/"+UzG.width+"x"+UzG.height)}this.Us=Jz.join(",");Jz=[];for(var imc=g.V(cHV),XUl=imc.next();!XUl.done;XUl=imc.next()){var mm=XUl.value,Q5={itag:mm.itag,type:mm.mimeType,quality:mm.quality},WEm=mm.url;WEm&&(Q5.url=WEm);var rr=Dl(mm),cGI=rr.XX, prK=rr.f5,ULc=rr.s;rr.W$&&(Q5.url=cGI,Q5.sp=prK,Q5.s=ULc);Jz.push(g.$$(Q5))}this.Th=Jz.join(",")}var jTl=uX.hlsFormats;if(jTl){var DsV=QD||null,nC={};if(DsV){var oeK=DsV.audioPairingConfig;if(oeK&&oeK.pairs)for(var RXc=g.V(oeK.pairs),IDU=RXc.next();!IDU.done;IDU=RXc.next()){var y0U=IDU.value,ux_=y0U.videoItag;nC[ux_]||(nC[ux_]=[]);nC[ux_].push(y0U.audioItag)}}for(var qUG={},gKK=g.V(jTl),t0l=gKK.next();!t0l.done;t0l=gKK.next()){var axV=t0l.value;qUG[axV.itag]=axV.bitrate}for(var wFJ=[],G3_=g.V(jTl), vem=G3_.next();!vem.done;vem=G3_.next()){var zN=vem.value,m$={itag:zN.itag,type:zN.mimeType,url:zN.url,bitrate:zN.bitrate,width:zN.width,height:zN.height,fps:zN.fps},MC=zN.audioTrack;if(MC){var k3c=MC.displayName;k3c&&(m$.name=k3c,m$.audio_track_id=MC.id,MC.audioIsDefault&&(m$.is_default="1"))}if(zN.drmFamilies){for(var bNy=[],ONy=g.V(zN.drmFamilies),z0m=ONy.next();!z0m.done;z0m=ONy.next())bNy.push(Us[z0m.value]);m$.drm_families=bNy.join(",")}var hr=nC[zN.itag];if(hr&&hr.length){m$.audio_itag=hr.join(","); var lxV=qUG[hr[0]];lxV&&(m$.bitrate+=lxV)}var e6m=bWJ(zN);e6m&&(m$.eotf=e6m);zN.audioChannels&&(m$.audio_channels=zN.audioChannels);wFJ.push(g.$$(m$))}this.hlsFormats=wFJ.join(",")}var iQl=uX.licenseInfos;if(iQl&&iQl.length>0){for(var N7l={},YUV=g.V(iQl),Wtc=YUV.next();!Wtc.done;Wtc=YUV.next()){var PWc=Wtc.value,KWy=PWc.drmFamily,ddl=PWc.url;KWy&&ddl&&(N7l[Us[KWy]]=ddl)}this.vN=N7l}var T7f=uX.drmParams;T7f&&(this.drmParams=T7f);var $dl=uX.dashManifestUrl;$dl&&(this.Ai=g.sk($dl,{cpn:this.clientPlaybackNonce})); var s2j=uX.hlsManifestUrl;s2j&&(this.hlsvp=s2j);var FWJ=uX.probeUrl;FWJ&&(this.probeUrl=pp(g.sk(FWJ,{cpn:this.clientPlaybackNonce})));var CWm=uX.serverAbrStreamingUrl;CWm&&(this.gT=new g.u5(CWm,!0))}var ZNy=this.playerResponse.trackingParams;ZNy&&(this.L7=ZNy);var EX=this.playerResponse.videoDetails;if(EX){var QP=q,Dzc=EX.videoId;Dzc&&(this.videoId=Dzc,QP.video_id||(QP.video_id=Dzc));var R0m=EX.title;R0m&&(this.title=R0m,QP.title||(QP.title=R0m));var yHc=EX.lengthSeconds;yHc&&(this.lengthSeconds= Number(yHc),QP.length_seconds||(QP.length_seconds=yHc));var EK_=EX.keywords;EK_&&(this.keywords=lNG(EK_));var qzU=EX.channelId;qzU&&(this.Am=qzU,QP.ucid||(QP.ucid=qzU));var VFl=EX.viewCount;VFl&&(this.rawViewCount=Number(VFl));var g0U=EX.author;g0U&&(this.author=g0U,QP.author||(QP.author=g0U));var J5f=EX.shortDescription;J5f&&(this.shortDescription=J5f);var mdj=EX.isCrawlable;mdj&&(this.isListed=mdj);var Q2m=EX.musicVideoType;Q2m&&(this.musicVideoType=Q2m);var aLl=EX.isLive;aLl!=null&&(this.isLivePlayback= aLl);if(aLl||EX.isUpcoming)this.isPremiere=!EX.isLiveContent;var A5G=EX.thumbnail;A5G&&(this.S=Iv(A5G));var xdU=EX.isExternallyHostedPodcast;xdU&&(this.isExternallyHostedPodcast=xdU);var w3m=EX.viewerLivestreamJoinPosition;if(w3m==null?0:w3m.utcTimeMillis)this.Gd=h7(w3m.utcTimeMillis);var LWl=QD||null,GDf=q;EX.isLiveDefaultBroadcast&&(this.isLiveDefaultBroadcast=!0);EX.isUpcoming&&(this.isUpcoming=!0);if(EX.isPostLiveDvr){this.pT=!0;var B7f=EX.latencyClass;B7f&&(this.latencyClass=NaJ[B7f]||"UNKNOWN"); EX.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0)}else{var kDm=!1;this.IW?(this.allowLiveDvr=E1()?!0:uO&&DU<5?!1:!0,this.isLivePlayback=!0):EX.isLive?(GDf.livestream="1",this.allowLiveDvr=EX.isLiveDvrEnabled?E1()?!0:uO&&DU<5?!1:!0:!1,this.partnerId=27,kDm=!0):EX.isUpcoming&&(kDm=!0);if(EX.isLive||this.IW){EX.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0);var r5G=EX.latencyClass;r5G&&(this.latencyClass=NaJ[r5G]||"UNKNOWN");var nKm=EX.liveChunkReadahead;nKm&&(this.liveChunkReadahead= nKm);var rd=LWl&&LWl.livePlayerConfig;if(rd){rd.hasSubfragmentedFmp4&&(this.hasSubfragmentedFmp4=!0);rd.hasSubfragmentedWebm&&(this.x$=!0);rd.defraggedFromSubfragments&&(this.defraggedFromSubfragments=!0);var MFG=rd.liveExperimentalContentId;MFG&&(this.liveExperimentalContentId=Number(MFG));var h6G=rd.isLiveHeadPlayable;this.T("html5_live_head_playable")&&h6G!=null&&(this.isLiveHeadPlayable=h6G)}}kDm&&(this.isLivePlayback=!0,GDf.adformat&&GDf.adformat.split("_")[1]!=="8"||this.J.push("heartbeat"))}var SU_= EX.isPrivate;SU_!==void 0&&(this.isPrivate=DS(this.isPrivate,SU_))}if(z){var fxU=EX||null,HNJ=!1,nZ=z.errorScreen;HNJ=nZ&&(nZ.playerLegacyDesktopYpcOfferRenderer||nZ.playerLegacyDesktopYpcTrailerRenderer||nZ.ypcTrailerRenderer)?!0:fxU&&fxU.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(z.status);if(!HNJ){this.errorCode=sPl(z.errorCode)||"auth";var SD=nZ&&nZ.playerErrorMessageRenderer;if(SD){this.playerErrorMessageRenderer=SD;var c5J=SD.reason;c5J&&(this.errorReason=g.OE(c5J)); var biy=SD.subreason;biy&&(this.Dl=g.OE(biy),this.TB=biy)}else this.errorReason=z.reason||null;var OiG=z.status;if(OiG==="LOGIN_REQUIRED")this.errorDetail="1";else if(OiG==="CONTENT_CHECK_REQUIRED")this.errorDetail="2";else if(OiG==="AGE_CHECK_REQUIRED"){var pFm=z.errorScreen,Ud_=pFm&&pFm.playerKavRenderer;this.errorDetail=Ud_&&Ud_.kavUrl?"4":"3"}else this.errorDetail=z.isBlockedInRestrictedMode?"5":"0"}}var XFK=this.playerResponse.interstitialPods;XFK&&MQj(this,XFK);this.Tl&&this.eventId&&(this.Tl= qL(this.Tl,{ei:this.eventId}));var lLU=this.playerResponse.captions;if(lLU&&lLU.playerCaptionsTracklistRenderer)a:{var At=lLU.playerCaptionsTracklistRenderer;this.captionTracks=[];if(At.captionTracks)for(var j2J=g.V(At.captionTracks),eiK=j2J.next();!eiK.done;eiK=j2J.next()){var xE=eiK.value,oKm=bkm(xE.baseUrl);if(!oKm)break a;var Naf={is_translateable:!!xE.isTranslatable,languageCode:xE.languageCode,languageName:xE.name&&g.OE(xE.name),url:oKm,vss_id:xE.vssId,kind:xE.kind};Naf.name=xE.trackName;Naf.displayName= xE.name&&g.OE(xE.name);this.captionTracks.push(new g.pA(Naf))}this.jT=At.audioTracks||[];this.Mq=At.defaultAudioTrackIndex||0;this.Ol=[];if(At.translationLanguages)for(var Ixl=g.V(At.translationLanguages),Yzm=Ixl.next();!Yzm.done;Yzm=Ixl.next()){var Mj=Yzm.value,q9={};q9.languageCode=Mj.languageCode;q9.languageName=g.OE(Mj.languageName);if(Mj.translationSourceTrackIndices){q9.translationSourceTrackIndices=[];for(var uWc=g.V(Mj.translationSourceTrackIndices),PI_=uWc.next();!PI_.done;PI_=uWc.next())q9.translationSourceTrackIndices.push(PI_.value)}if(Mj.excludeAudioTrackIndices){q9.excludeAudioTrackIndices= [];for(var tFG=g.V(Mj.excludeAudioTrackIndices),KCc=tFG.next();!KCc.done;KCc=tFG.next())q9.excludeAudioTrackIndices.push(KCc.value)}this.Ol.push(q9)}this.xb=[];if(At.defaultTranslationSourceTrackIndices)for(var vKf=g.V(At.defaultTranslationSourceTrackIndices),d0f=vKf.next();!d0f.done;d0f=vKf.next())this.xb.push(d0f.value);this.di=!!At.contribute&&!!At.contribute.captionsMetadataRenderer}(this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.Q_=Number(this.clipConfig.startTimeMs)* .001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&SiU(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var z6j;this.compositeLiveIngestionOffsetToken=(z6j=this.playerResponse.playbackTracking)==null?void 0:z6j.compositeLiveIngestionOffsetToken;var iNG;this.compositeLiveStatusToken=(iNG=this.playerResponse.playbackTracking)==null?void 0: iNG.compositeLiveStatusToken;this.T("html5_fill_default_mosaic_audio_track_id")&&NT(this)&&(this.cT.h2=WrU(this));if(this.T("html5_enable_player_response_driven_playback_rate_clamping")){var WWc,Ddl,R6G=(WWc=this.playerResponse.playerConfig)==null?void 0:(Ddl=WWc.granularVariableSpeedConfig)==null?void 0:Ddl.minimumPlaybackRate,y5K,qp_,gO_=(y5K=this.playerResponse.playerConfig)==null?void 0:(qp_=y5K.granularVariableSpeedConfig)==null?void 0:qp_.maximumPlaybackRate;R6G&&gO_&&(this.oo=R6G/100,this.yd= gO_/100)}}sr(this,q);q.queue_info&&(this.queueInfo=q.queue_info);var adc=q.hlsdvr;adc!=null&&(this.allowLiveDvr=Number(adc)===1?E1()?!0:uO&&DU<5?!1:!0:!1);this.adQueryId=q.ad_query_id||null;this.rF||(this.rF=q.encoded_ad_safety_reason||null);this.CF=DS(this.CF,q.infringe||q.muted);this.ASe=q.authkey;this.xv=q.authuser;this.mutedAutoplay=DS(this.mutedAutoplay,q&&q.playmuted);this.mutedAutoplayDurationMode=yb(this.mutedAutoplayDurationMode,q&&q.muted_autoplay_duration_mode);this.Qu=DS(this.Qu,q&&q.mutedautoplay); var fC=q.length_seconds;fC&&(this.lengthSeconds=typeof fC==="string"?h7(fC):fC);if(this.isAd()||this.rk||!g.GV(g.l0(this.cT)))this.endSeconds=yb(this.endSeconds,this.hf||q.end||q.endSeconds);else{var XrB=g.l0(this.cT),Hd=this.lengthSeconds;switch(XrB){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":Hd>30?this.limitedPlaybackDurationInSeconds=30:Hd<30&&Hd>10&&(this.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":this.limitedPlaybackDurationInSeconds= Hd*.2}}this.L7=qR(this.L7,q.itct);this.oX=DS(this.oX,q.is_live_destination);this.isLivePlayback=DS(this.isLivePlayback,q.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&&this.pk();q.isUpcoming&&(this.isUpcoming=DS(this.isUpcoming,q.isUpcoming));this.pT=DS(this.pT,q.post_live_playback);this.y7&&(this.pT=!1);this.isMdxPlayback=DS(this.isMdxPlayback,q.mdx);var cd=q.mdx_control_mode;cd&&(this.mdxControlMode=typeof cd==="number"?cd:h7(cd));this.isInlinePlaybackNoAd=DS(this.isInlinePlaybackNoAd, q.is_inline_playback_no_ad);this.w$=yb(this.w$,q.reload_count);this.reloadReason=qR(this.reloadReason,q.reload_reason);this.ZO=DS(this.ZO,q.show_content_thumbnail);this.cycToken=q.cyc||null;var wH_=ov(q);Object.keys(wH_).length>0&&(this.S=wH_);this.f7=qR(this.f7,q.vvt);this.mdxEnvironment=qR(this.mdxEnvironment,q.mdx_environment);q.source_container_playlist_id&&(this.sourceContainerPlaylistId=q.source_container_playlist_id);q.serialized_mdx_metadata&&(this.serializedMdxMetadata=q.serialized_mdx_metadata); this.wJe=q.osig;this.eventId||(this.eventId=q.eventid);this.osid||(this.osid=q.osid);this.playlistId=qR(this.playlistId,q.list);q.index&&(this.playlistIndex=this.playlistIndex===void 0?yb(0,q.index):yb(this.playlistIndex,q.index));this.Wt=q.pyv_view_beacon_url;this.yU=q.pyv_quartile25_beacon_url;this.ou=q.pyv_quartile50_beacon_url;this.jz=q.pyv_quartile75_beacon_url;this.QU=q.pyv_quartile100_beacon_url;var GiN=q.session_data;!this.Ht&&GiN&&(this.Ht=ze(GiN,"&").feature);this.isFling=yb(this.isFling? 1:0,q.is_fling)===1;this.vnd=yb(this.vnd,q.vnd);this.forceAdsUrl=qR(this.forceAdsUrl,q.force_ads_url);this.rh=qR(this.rh,q.ctrl);this.wl=qR(this.wl,q.ytr);this.NS=q.ytrcc;this.Ru=q.ytrexp;this.aL=q.ytrext;this.tp=qR(this.tp,q.adformat);this.zC=qR(this.zC,q.attrib);this.slotPosition=yb(this.slotPosition,q.slot_pos);this.breakType=q.break_type;this.L6=DS(this.L6,q.ssrt);this.videoId=at(q)||this.videoId;this.L=qR(this.L,q.vss_credentials_token);this.aP=qR(this.aP,q.vss_credentials_token_type);this.XN= DS(this.XN,q.audio_only);this.St=DS(this.St,q.aac_high);this.UZ=DS(this.UZ,q.prefer_low_quality_audio);this.Ci=DS(this.Ci,q.uncap_inline_quality);this.T("html5_enable_qoe_cat_list")?q.qoe_cat&&(this.oP=this.oP.concat(q.qoe_cat.split(","))):this.pF=qR(this.pF,q.qoe_cat);this.iV=DS(this.iV,q.download_media);var kij=q.prefer_gapless;this.X=kij!=null?DS(this.X,kij):this.X?this.X:this.cT.preferGapless&&this.cT.supportsGaplessShorts();lbl(this.playerResponse)&&this.J.push("ad");var bec=q.adaptive_fmts; bec&&(this.adaptiveFormats=bec,this.d8("adpfmts",{},!0));var Oem=q.allow_embed;Oem&&(this.allowEmbed=Number(Oem)===1);var ldf=q.backgroundable;ldf&&(this.backgroundable=Number(ldf)===1);var enm=q.autonav;enm&&(this.isAutonav=Number(enm)===1);var N1f=q.autoplay;N1f&&(this.BH=this.NT=Number(N1f)===1);var Ypj=q.iv_load_policy;Ypj&&(this.annotationsLoadPolicy=Rc(this.annotationsLoadPolicy,Ypj,e6));var Pnc=q.cc_lang_pref;Pnc&&(this.captionsLanguagePreference=qR(Pnc,this.captionsLanguagePreference));var KOJ= q.cc_load_policy;KOJ&&(this.Nu=Rc(this.Nu,KOJ,e6));var dtc;this.deviceCaptionsOn=(dtc=q.device_captions_on)!=null?dtc:void 0;var T1J;this.OF=(T1J=q.device_captions_lang_pref)!=null?T1J:"";var $tN;this.ZQ=($tN=q.viewer_selected_caption_langs)!=null?$tN:[];var sfl=q.cached_load;sfl&&(this.Jo=DS(this.Jo,sfl));if(q.dash==="0"||q.dash===0||q.dash===!1)this.Br=!0;var FOK=q.dashmpd;FOK&&(this.Ai=g.sk(FOK,{cpn:this.clientPlaybackNonce}));var Cnm=q.delay;Cnm&&(this.OA=h7(Cnm));var TaG=this.hf||q.end;if(this.Ck? TaG!=null:TaG!=void 0)this.clipEnd=yb(this.clipEnd,TaG);var Zej=q.fmt_list;Zej&&(this.Us=Zej);q.heartbeat_preroll&&this.J.push("heartbeat");this.wB=-Math.floor(Math.random()*10);this.kN=-Math.floor(Math.random()*40);var EOU=q.is_listed;EOU&&(this.isListed=DS(this.isListed,EOU));var VAl=q.is_private;VAl&&(this.isPrivate=DS(this.isPrivate,VAl));var JLj=q.is_dni;JLj&&(this.J8=DS(this.J8,JLj));var mtG=q.dni_color;mtG&&(this.kA=qR(this.kA,mtG));var Qfc=q.pipable;Qfc&&(this.pipable=DS(this.pipable,Qfc)); this.wA=(this.po=this.pipable&&this.cT.VO)&&!this.cT.showMiniplayerButton;var AL_=q.paid_content_overlay_duration_ms;AL_&&(this.paidContentOverlayDurationMs=h7(AL_));var xtN=q.paid_content_overlay_text;xtN&&(this.paidContentOverlayText=xtN);var LOy=q.url_encoded_fmt_stream_map;LOy&&(this.Th=LOy);var B1l=q.hls_formats;B1l&&(this.hlsFormats=B1l);var rLj=q.hlsvp;rLj&&(this.hlsvp=rLj);var pC=q.live_start_walltime;pC&&(this.Y3W=typeof pC==="number"?pC:h7(pC));var Uy=q.live_manifest_duration;Uy&&(this.lV= typeof Uy==="number"?Uy:h7(Uy));var nON=q.player_params;nON&&(this.playerParams=nON);var MAN=q.partnerid;MAN&&(this.partnerId=yb(this.partnerId,MAN));var hny=q.probe_url;hny&&(this.probeUrl=pp(g.sk(hny,{cpn:this.clientPlaybackNonce})));var $0f=q.pyv_billable_url;$0f&&dwK($0f)&&(this.m4=$0f);var sLf=q.pyv_conv_url;sLf&&dwK(sLf)&&(this.qF=sLf);eFy(this,q);this.startSeconds>0?this.T("html5_log_start_seconds_inconsistency")&&this.startSeconds!==(this.Q_||this.OM||q.start||q.startSeconds)&&this.d8("lss", {css:this.startSeconds,pcss:this.Q_,iss:this.OM,ps:q.start||void 0,pss:q.startSeconds||void 0}):this.uF=this.startSeconds=yb(this.startSeconds,this.Q_||this.OM||q.start||q.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var SpV=q.live_utc_start;if(SpV!=null)this.liveUtcStartSeconds=Number(SpV);else{var FCm=this.startSeconds;FCm&&isFinite(FCm)&&FCm>1E9&&(this.liveUtcStartSeconds=this.startSeconds)}}if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var fdf=q.utc_start_millis; fdf&&(this.liveUtcStartSeconds=Number(fdf)*.001)}var Hey=q.stream_time_start_millis;Hey&&(this.C0=Number(Hey)*.001);var CIJ=this.OM||q.start;(this.Ck?CIJ==null||Number(q.resume)===1:CIJ==void 0||q.resume=="1")||this.isLivePlayback||(this.clipStart=yb(this.clipStart,CIJ));var cLm=q.url_encoded_third_party_media;cLm&&(this.m7=De(cLm));var ZiG=q.ypc_offer_button_formatted_text;if(ZiG){var pHc=JSON.parse(ZiG);this.sZ=pHc!=null?pHc:null;this.rE=ZiG}var UtN=q.ypc_offer_button_text;UtN&&(this.l_=UtN);var XHj= q.ypc_offer_description;XHj&&(this.Qr=XHj);var jfj=q.ypc_offer_headline;jfj&&(this.Mu=jfj);var oOG=q.ypc_full_video_message;oOG&&(this.uR=oOG);var Idl=q.ypc_offer_id;Idl&&(this.FB=Idl);var uVc=q.ypc_buy_url;uVc&&(this.Lx=uVc);var tA_=q.ypc_item_thumbnail;tA_&&(this.Xi=tA_);var vOl=q.ypc_item_title;vOl&&(this.WM=vOl);var znK=q.ypc_item_url;znK&&(this.nx=znK);var iem=q.ypc_vid;iem&&(this.A5=iem);q.ypc_overlay_timeout&&(this.t5=Number(q.ypc_overlay_timeout));var WON=q.ypc_trailer_player_vars;WON&&(this.Uk= Wn(WON));var Dt_=q.ypc_original_itct;Dt_&&(this.B2=Dt_);this.Am=qR(this.Am,q.ucid);this.KS=q.storyboard_spec||null;this.MA=q.live_storyboard_spec||null;this.Nx=q.iv_endscreen_url||null;this.PQ=DS(this.PQ,q.ypc_module);this.Ku=DS(this.Ku,q.ypc_clickwrap_module);this.PQ&&this.J.push("ypc");this.Ku&&this.J.push("ypc_clickwrap");this.pA={video_id:q.video_id,eventid:q.eventid,cbrand:q.cbrand,cbr:q.cbr,cbrver:q.cbrver,c:q.c,cver:q.cver,ctheme:q.ctheme,cplayer:q.cplayer,cmodel:q.cmodel,cnetwork:q.cnetwork, cos:q.cos,cosver:q.cosver,cplatform:q.cplatform,user_age:q.user_age,user_display_image:q.user_display_image,user_display_name:q.user_display_name,user_gender:q.user_gender,csi_page_type:q.csi_page_type,csi_service_name:q.csi_service_name,enablecsi:q.enablecsi,enabled_engage_types:q.enabled_engage_types};kKG(this,q);var Rnm=q.cotn;Rnm&&(this.cotn=Rnm);if(EB_(this))hF(this)&&(this.isLivePlayback&&this.Ai&&(this.eG=!0),this.le&&(this.u9=!0));else if(V9m(this))this.eG=!0;else{var yLc,qyV,gwy=((yLc=this.playerResponse)== null?void 0:(qyV=yLc.streamingData)==null?void 0:qyV.adaptiveFormats)||[];if(gwy.length>0)var Az=Zkf(this,gwy);else{this.T("html5_log_pafmtstr_ctmp")&&this.d8("pafmtstr",{s:this.adaptiveFormats.substring(0,50)});var aKy=this.adaptiveFormats;if(aKy&&!hF(this)){this.cT.D.W&&(yW=!0);var hO=Xd(aKy),E0U=this.vN,wdc=this.lengthSeconds,jcl=this.isLivePlayback,xZ=this.pT,Sr=this.cT,ony=EjJ(hO);if(jcl||xZ){var G9j=Sr==null?void 0:Sr.experiments,HQ=new cw("",G9j,!0);HQ.pk=!0;HQ.isManifestless=!0;HQ.U=!xZ;HQ.isLive= !xZ;HQ.pT=xZ;for(var k9m=g.V(hO),Vnm=k9m.next();!Vnm.done;Vnm=k9m.next()){var fZ=Vnm.value,bCm=jS(fZ,E0U),gW=oa(fZ.url,fZ.sp,fZ.s),OCN=gW.get("id");OCN&&OCN.includes("%7E")&&(HQ.J=!0);var lKc=void 0,ISc=(lKc=G9j)==null?void 0:lKc.Zh("html5_max_known_end_time_rebase"),uLc=Number(fZ.target_duration_sec)||5,teR=Number(fZ.max_dvr_duration_sec)||14400,eLU=Number(gW.get("mindsq")||gW.get("min_sq")||"0"),NrU=Number(gW.get("maxdsq")||gW.get("max_sq")||"0")||Infinity;HQ.cJ=HQ.cJ||eLU;HQ.YL=HQ.YL||NrU;var vnI= !yz(bCm.mimeType);gW&&SS(HQ,new FH(gW,bCm,{Ca:uLc,j_:vnI,Gf:teR,cJ:eLU,YL:NrU,M4:300,pT:xZ,P8:ISc}))}var Yym=HQ}else{if(ony==="FORMAT_STREAM_TYPE_OTF"){var XM=wdc;XM=XM===void 0?0:XM;var HV=new cw("",Sr==null?void 0:Sr.experiments,!1);HV.duration=XM||0;for(var Prm=g.V(hO),Jnl=Prm.next();!Jnl.done;Jnl=Prm.next()){var cV=Jnl.value,m0N=jS(cV,E0U,HV.duration),QLm=oa(cV.url,cV.sp,cV.s);if(QLm)if(m0N.streamType==="FORMAT_STREAM_TYPE_OTF")SS(HV,new Cg(QLm,m0N,"sq/0"));else{var zuV=WG(cV.init),iye=WG(cV.index); SS(HV,new ng(QLm,m0N,zuV,iye))}}HV.isOtf=!0;var Kbj=HV}else{var jD=wdc;jD=jD===void 0?0:jD;var o4=new cw("",Sr==null?void 0:Sr.experiments,!1);o4.duration=jD||0;for(var dC_=g.V(hO),AnV=dC_.next();!AnV.done;AnV=dC_.next()){var pZ=AnV.value,Wkw=jS(pZ,E0U,o4.duration),DLJ=WG(pZ.init),Ruw=WG(pZ.index),Trj=oa(pZ.url,pZ.sp,pZ.s);Trj&&SS(o4,new ng(Trj,Wkw,DLJ,Ruw))}Kbj=o4}Yym=Kbj}var $Cm=Yym;if(hO.length>0){var s4K=hO[0];if(this.B().playerStyle==="hangouts-meet"&&s4K.url){var yGB=g.RI(s4K.url);this.Ja=this.Ja|| Number(yGB.expire)}}var qH7=this.isLivePlayback&&!this.pT&&!this.y7&&!this.isPremiere;this.T("html5_live_head_playable")&&(!SO(this)&&qH7&&this.d8("missingLiveHeadPlayable",{}),this.cT.F9==="yt"&&($Cm.Tl=!0));Az=$Cm}else Az=null;this.d8("pafmts",{isManifestFilled:!!Az})}if(Az){cD(this,Az);var Fbf=!0}else Fbf=!1;Fbf?this.enableServerStitchedDai=this.enableServerStitchedDai&&fc(this):this.Ai&&(this.cT.F9==="yt"&&this.pk()&&this.T("drm_manifestless_unplugged")&&this.T("html5_deprecate_manifestful_fallback")? this.d8("deprecateMflFallback",{}):this.eG=!0)}var x0_=q.adpings;x0_&&(this.IH=x0_?Wn(x0_):null);var Crf=q.feature;Crf&&(this.Y2=Crf);var ZCj=q.referrer;ZCj&&(this.referrer=ZCj);this.clientScreenNonce=qR(this.clientScreenNonce,q.csn);this.Kc=yb(this.Kc,q.root_ve_type);this.YB=yb(this.YB,q.kids_age_up_mode);this.Ck||q.kids_app_info==void 0||(this.kidsAppInfo=q.kids_app_info);this.Ck&&q.kids_app_info!=null&&(this.kidsAppInfo=q.kids_app_info);this.AP=DS(this.AP,q.upg_content_filter_mode);this.unpluggedFilterModeType= yb(this.unpluggedFilterModeType,q.unplugged_filter_mode_type);var Ewf=q.unplugged_location_info;Ewf&&(this.aA=Ewf);var VDN=q.unplugged_partner_opt_out;VDN&&(this.u8=qR("",VDN));this.Vf=DS(this.Vf,q.disable_watch_next);this.qS=qR(this.qS,q.internal_ip_override);this.yf=!!q.is_yto_interstitial;(this.interstitials.length||this.yf)&&this.J.push("yto");var Jrj=q.XV;Jrj&&(this.XV=Jrj);this.F9=qR(this.F9,q.csi_timer);q.watchUrl&&(this.watchUrl=q.watchUrl);var aG=q.watch_endpoint;this.T("html5_attach_watch_endpoint_ustreamer_config")&& aG&&Zrl(this,aG);if(aG==null?0:aG.ustreamerConfig)this.f6=nz(aG.ustreamerConfig);var mCm,Q4c,Arf=aG==null?void 0:(mCm=aG.loggingContext)==null?void 0:(Q4c=mCm.qoeLoggingContext)==null?void 0:Q4c.serializedContextData;Arf&&(this.Tt2=Arf);g.yw(this.cT)&&this.cT.KF&&(this.embedsRct=qR(this.embedsRct,q.rct),this.embedsRctn=qR(this.embedsRctn,q.rctn));q.embed_config&&(this.v1=q.embed_config);this.sj=this.sj||!!q.pause_at_start;q.default_active_source_video_id&&(this.defaultActiveSourceVideoId=q.default_active_source_video_id)}; g.C.B=function(){return this.cT}; g.C.T=function(q){return this.cT.T(q)}; g.C.zN=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.C.hasSupportedAudio51Tracks=function(){var q;return!((q=this.JS)==null||!q.VN)}; g.C.getUserAudio51Preference=function(){var q=1;EV(this.cT)&&this.T("html5_ytv_surround_toggle_default_off")?q=0:g.FY(this.cT)&&this.isLivePlayback&&this.YD()&&(q=0);var a;return(a=g.xt("yt-player-audio51"))!=null?a:q}; g.C.dV=function(){this.t2()||(this.V.U||this.V.unsubscribe("refresh",this.dV,this),this.cw(-1))}; g.C.cw=function(q){if(!this.isLivePlayback||!this.D||this.D.flavor!=="fairplay"){var a=JBK(this.V,this.qo);if(a.length>0){for(var w=g.V(a),G=w.next();!G.done;G=w.next())G=G.value,G.startSecs=Math.max(G.startSecs,this.B5()),this.T("html5_cuepoint_identifier_logging")&&G.event==="start"&&this.d8("cuepoint",{pubCue:G.identifier,segNum:q});this.publish("cuepointupdated",a,q);this.qo+=a.length;if(fc(this)&&this.cT.TZ())for(a=g.V(a),w=a.next();!w.done;w=a.next())w=w.value,this.d8("cuepoint",{segNum:q,event:w.event, startSecs:w.startSecs,id:w.identifier.slice(-16)}),w.event==="start"&&(w=w.startSecs,this.qO.start=this.RA,this.qO.end=w+3)}}}; g.C.Ag=function(){this.t2()||(this.loading=!1,this.publish("dataloaded"))}; g.C.YD=function(){return this.Ul!==void 0?this.Ul:this.Ul=!!this.vN||!!this.V&&cX(this.V)}; g.C.Bo=function(q){var a=this;if(this.t2())return Qb();this.Nh=this.A2=this.W=null;sT(this,"html5_high_res_logging_always")&&(this.cT.E3=!0);return QN_(this,q).then(void 0,function(){return xvy(a,q)}).then(void 0,function(){return Lrc(a)}).then(void 0,function(){return rhN(a)})}; g.C.FO=function(q){this.W=q;AhV(this,this.W.getAvailableAudioTracks());if(this.W){q=g.V(this.W.videoInfos);for(var a=q.next();!a.done;a=q.next()){a=a.value;var w=a.containerType;w!==0&&(this.uV[w]=a.id)}}q=this.getAvailableAudioTracks();q=q.concat(this.S7);for(a=0;a0?this.W.getAvailableAudioTracks():this.AJ||[]:[]}; g.C.getAudioTrack=function(){var q=this;if(this.Y&&!i4(this.Y)){var a=g.Z7(this.getAvailableAudioTracks(),function(k){return k.id===q.Y.id}),w; if(!a&&((w=this.Y.Pq)==null?0:w.id)){var G=this.Y.Pq.id;a=g.Z7(this.getAvailableAudioTracks(),function(k){return k.Pq.id===G}); this.d8("nat",{id:this.Y.id,track:!!a})}return a||this.S7}if(this.AJ){if(!this.vC)for(a=g.V(this.AJ),w=a.next();!w.done;w=a.next())if(w=w.value,w.Pq.getIsDefault()){this.vC=w;break}return this.vC||this.S7}return this.S7}; g.C.getPlayerResponse=function(){return this.playerResponse}; g.C.getWatchNextResponse=function(){return this.EK}; g.C.getHeartbeatResponse=function(){return this.Os}; g.C.La=function(){return this.watchUrl?this.watchUrl:this.cT.getVideoUrl(this.videoId)}; g.C.ra=function(){return!!this.V&&(K5y(this.V)||d7G(this.V)||TDc(this.V))}; g.C.getEmbeddedPlayerResponse=function(){return this.Eq}; g.C.tK=function(){return(this.eventLabel||this.cT.f7)==="shortspage"}; g.C.isAd=function(){return!!this.adFormat}; g.C.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; g.C.fT=function(){var q,a,w;return this.isDaiEnabled()&&this.enableServerStitchedDai&&!!((q=this.playerResponse)==null?0:(a=q.playerConfig)==null?0:(w=a.daiConfig)==null?0:w.ssaEnabledPlayback)}; g.C.d1=function(){return this.Y7}; g.C.oF=function(){return this.PQ||this.hJ}; g.C.Po=function(){return sT(this,"html5_samsung_vp9_live")}; g.C.d8=function(q,a,w){this.publish("ctmp",q,a,w)}; g.C.qP=function(q,a,w){this.publish("ctmpstr",q,a,w)}; g.C.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; g.C.getGetAdBreakContext=function(q,a){q=q===void 0?NaN:q;a=a===void 0?NaN:a;var w={isSabr:rM(this)},G,k=(G=this.getHeartbeatResponse())==null?void 0:G.adBreakHeartbeatParams;k&&(w.adBreakHeartbeatParams=k);if(this.T("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.V&&!isNaN(q)&&!isNaN(a)){a=q-a;for(var b in this.V.V)if(G=this.V.V[b],G.info.iy()||G.info.t$())if(G=G.index,G.isLoaded()){b=G.uT(a);G=G.OB(b)+a-G.getStartTime(b);this.d8("gabc",{t:q.toFixed(3),mt:a.toFixed(3),sg:b,igt:G.toFixed(3)}); w.livePlaybackPosition={utcTimeMillis:""+(G*1E3).toFixed(0)};break}}return w}; g.C.isEmbedsShortsMode=function(q,a){if(!g.yw(this.cT)||(this.cT.jt||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||a)return!1;var w,G;return!!(((w=this.embeddedPlayerConfig)==null?0:(G=w.embeddedPlayerFlags)==null?0:G.isShortsExperienceEligible)&&q.width<=q.height)}; g.C.qB=function(){g.ya.prototype.qB.call(this);this.IH=null;delete this.Py;delete this.accountLinkingConfig;delete this.V;this.W=this.Os=this.playerResponse=this.EK=null;this.Th=this.adaptiveFormats="";delete this.botguardData;this.h2=this.suggestions=this.a4=null;this.sabrContextUpdates.clear()};var l6_={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},e7f={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},bO_={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},wc_={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"},k2j={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},G2c={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"},OOK={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.Z(Jc,g.c);g.C=Jc.prototype;g.C.handleExternalCall=function(q,a,w){var G=this.state.X[q],k=this.state.S[q],b=G;if(k)if(w&&fp(w,AHU))b=k;else if(!G)throw Error('API call from an untrusted origin: "'+w+'"');this.logApiCall(q,w);if(b){w=!1;G=g.V(a);for(k=G.next();!k.done;k=G.next())if(String(k.value).includes("javascript:")){w=!0;break}w&&g.Qa(Error('Dangerous call to "'+q+'" with ['+a+"]."));return b.apply(this,a)}throw Error('Unknown API method: "'+q+'".');}; g.C.logApiCall=function(q,a,w){var G=this.app.B();G.i5&&!this.state.J.has(q)&&(this.state.J.add(q),g.aw("webPlayerApiCalled",{callerUrl:G.loaderUrl,methodName:q,origin:a||void 0,playerStyle:G.playerStyle||void 0,embeddedPlayerMode:G.jt,errorCode:w}))}; g.C.publish=function(q){var a=g.XU.apply(1,arguments);this.state.W.publish.apply(this.state.W,[q].concat(g.Tf(a)));if(q==="videodatachange"||q==="resize"||q==="cardstatechange")this.state.U.publish.apply(this.state.U,[q].concat(g.Tf(a))),this.state.Y.publish.apply(this.state.Y,[q].concat(g.Tf(a)))}; g.C.zl=function(q){var a=g.XU.apply(1,arguments);this.state.W.publish.apply(this.state.W,[q].concat(g.Tf(a)));this.state.U.publish.apply(this.state.U,[q].concat(g.Tf(a)))}; g.C.WN=function(q){var a=g.XU.apply(1,arguments);this.state.W.publish.apply(this.state.W,[q].concat(g.Tf(a)));this.state.U.publish.apply(this.state.U,[q].concat(g.Tf(a)));this.state.Y.publish.apply(this.state.Y,[q].concat(g.Tf(a)))}; g.C.pu=function(q){var a=g.XU.apply(1,arguments);this.state.W.publish.apply(this.state.W,[q].concat(g.Tf(a)));this.state.U.publish.apply(this.state.U,[q].concat(g.Tf(a)));this.state.Y.publish.apply(this.state.Y,[q].concat(g.Tf(a)));this.state.D.publish.apply(this.state.D,[q].concat(g.Tf(a)))}; g.C.T=function(q){return this.app.B().T(q)}; g.C.qB=function(){if(this.state.element){var q=this.state.element,a;for(a in this.state.V)this.state.V.hasOwnProperty(a)&&(q[a]=null);this.state.element=null}g.c.prototype.qB.call(this)};g.Z(LD,g.E8);LD.prototype.publish=function(q){var a=g.XU.apply(1,arguments);if(this.D.has(q))return this.D.get(q).push(a),!0;var w=!1;try{for(a=[a],this.D.set(q,a);a.length;)w=g.E8.prototype.publish.call.apply(g.E8.prototype.publish,[this,q].concat(g.Tf(a.shift())))}finally{this.D.delete(q)}return w};g.Z(BE,g.c);BE.prototype.qB=function(){this.D.dispose();this.Y.dispose();this.U.dispose();this.W.dispose();this.J=this.V=this.S=this.X=this.L=void 0};var $S_=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.Z(nD,Jc);g.C=nD.prototype;g.C.getApiInterface=function(){return Array.from(this.state.L)}; g.C.Yf=function(q,a){this.state.D.subscribe(q,a)}; g.C.LGh=function(q,a){this.state.D.unsubscribe(q,a)}; g.C.getPlayerState=function(q){return QFj(this.app,q)}; g.C.jq=function(){return QFj(this.app)}; g.C.zLT=function(q,a,w){Sw(this)&&(fU(this.app,!0,1),pU(this.app,q,a,w,1))}; g.C.getCurrentTime=function(q,a,w){var G=this.getPlayerState(q);if(this.app.getAppState()===2&&G===5){var k;return((k=this.app.getVideoData())==null?void 0:k.startSeconds)||0}return this.T("web_player_max_seekable_on_ended")&&G===0?Bg(this.app,q):q?this.app.getCurrentTime(q,a,w):this.app.getCurrentTime(q)}; g.C.FH=function(){return this.app.getCurrentTime(1)}; g.C.Q2=function(){var q=this.app.OB(1);return isNaN(q)?this.getCurrentTime(1):q}; g.C.O7=function(){return this.app.getDuration(1)}; g.C.WV=function(q,a){q=g.X1(Math.floor(q),0,100);isFinite(q)&&xi(this.app,{volume:q,muted:this.isMuted()},a)}; g.C.qvW=function(q){this.WV(q,!1)}; g.C.iB=function(q){xi(this.app,{muted:!0,volume:this.getVolume()},q)}; g.C.eGe=function(){this.iB(!1)}; g.C.wb=function(q){hc(this.app)&&!this.T("embeds_enable_emc3ds_muted_autoplay")||xi(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},q)}; g.C.K$7=function(){hc(this.app)&&this.T("embeds_enable_emc3ds_muted_autoplay")||this.wb(!1)}; g.C.getPlayerMode=function(){var q={};this.app.getVideoData().J8&&(q.pfp={enableIma:this.app.UB().allowImaMonetization,autoplay:OT(this.app.UB()),mutedAutoplay:this.app.UB().mutedAutoplay});return q}; g.C.s_=function(){var q=this.app.getPresentingPlayerType();if(q===2&&!this.app.aG()){var a=hq(this.app.Hq());if(!(AlR(a)||g.yw(this.app.B())&&g.v(this.app.xT().getPlayerState(),1024))||xey(a))return}(a=this.app.vQ().Gn)?a.playVideo():this.app.playVideo(q)}; g.C.sAh=function(){fU(this.app,!0,1);this.s_()}; g.C.pauseVideo=function(q){var a=this.app.getPresentingPlayerType();if(a!==2||this.app.aG()||AlR(hq(this.app.Hq()))){var w=this.app.vQ().Gn;w?w.pauseVideo():this.app.pauseVideo(a,q)}}; g.C.pH8=function(){var q=this.app,a=!1;q.V7.N1&&(q.MB.publish("pageTransition"),a=!0);q.stopVideo(a)}; g.C.clearVideo=function(){}; g.C.getAvailablePlaybackRates=function(){var q=this.app.B();if(q.enableSpeedOptions){if(["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(q.Y?q.ancestorOrigins[0]:window.location.origin)||q.vC)return yMU;if(q.T("html5_enable_player_response_driven_playback_rate_clamping")){q=this.app.getVideoData();var a=q.oo,w=q.yd;return aDK.filter(function(G){return G>=a&&G<=w})}return q.supportsVarispeedExtendedFeatures?qdB:q.T("web_remix_allow_up_to_3x_playback_rate")&& g.BA(q)?ge8:B_}return[1]}; g.C.getPlaybackQuality=function(q){return(q=this.app.RN(q))?q.getPlaybackQuality():"unknown"}; g.C.F$e=function(){}; g.C.getAvailableQualityLevels=function(q){return(q=this.app.RN(q))?(q=g.sd(q.e_(),function(a){return a.quality}),q.length&&(q[0]==="auto"&&q.shift(),q=q.concat(["auto"])),q):[]}; g.C.JQ=function(){return this.getAvailableQualityLevels(1)}; g.C.Lt=function(){return this.BS()}; g.C.DS=function(){return 1}; g.C.getVideoLoadedFraction=function(q){return this.app.getVideoLoadedFraction(q)}; g.C.BS=function(){return this.getVideoLoadedFraction()}; g.C.eq=function(){return 0}; g.C.getSize=function(){var q=this.app.mQ().getPlayerSize();return{width:q.width,height:q.height}}; g.C.setSize=function(){this.app.mQ().resize()}; g.C.loadVideoById=function(q,a,w,G){if(!q)return!1;q=r6(q,a,w);return this.app.loadVideoByPlayerVars(q,G)}; g.C.VtB=function(q,a,w){q=this.loadVideoById(q,a,w,1);fU(this.app,q,1)}; g.C.cueVideoById=function(q,a,w,G){q=r6(q,a,w);this.app.cueVideoByPlayerVars(q,G)}; g.C.J0=function(q,a,w){this.cueVideoById(q,a,w,1)}; g.C.loadVideoByUrl=function(q,a,w,G){q=Ttm(q,a,w);return this.app.loadVideoByPlayerVars(q,G)}; g.C.UBl=function(q,a,w){q=this.loadVideoByUrl(q,a,w,1);fU(this.app,q,1)}; g.C.cueVideoByUrl=function(q,a,w,G){q=Ttm(q,a,w);this.app.cueVideoByPlayerVars(q,G)}; g.C.a9=function(q,a,w){this.cueVideoByUrl(q,a,w,1)}; g.C.XH=function(){var q=this.app.B();if(q.UK)return"";var a=this.app.UB(),w=void 0;a.isLivePlayback||(w=Math.floor(this.app.getCurrentTime(1)));return q.getVideoUrl(a.videoId,this.getPlaylistId()||void 0,w)}; g.C.dC=function(){return this.app.getDebugText()}; g.C.getVideoEmbedCode=function(){var q=this.app.B();if(q.UK)return"";var a=this.app.UB();return q.getVideoEmbedCode(a.isPrivate?"":a.title,this.app.UB().videoId,this.app.mQ().getPlayerSize(),this.getPlaylistId()||void 0)}; g.C.Qt=function(q,a,w){return hkl(this.app,q,a,w)}; g.C.removeCueRange=function(q){return this.app.Md(q)}; g.C.loadPlaylist=function(q,a,w,G){this.app.loadPlaylist(q,a,w,G)}; g.C.Jh=function(q,a,w,G){this.loadPlaylist(q,a,w,G);fU(this.app,!0,1)}; g.C.cuePlaylist=function(q,a,w,G){this.app.cuePlaylist(q,a,w,G)}; g.C.nextVideo=function(q,a){this.app.nextVideo(q,a)}; g.C.T89=function(){this.nextVideo();fU(this.app,!0,1)}; g.C.previousVideo=function(q){this.app.previousVideo(q)}; g.C.uNl=function(){this.previousVideo();fU(this.app,!0,1)}; g.C.playVideoAt=function(q){this.app.playVideoAt(q)}; g.C.Bz2=function(q){this.playVideoAt(q);fU(this.app,!0,1)}; g.C.setShuffle=function(q){var a=this.app.getPlaylist();a&&a.setShuffle(q)}; g.C.setLoop=function(q){var a=this.app.getPlaylist();a&&(a.loop=q)}; g.C.RY=function(){var q=this.app.getPlaylist();if(!q)return null;for(var a=[],w=0;w=400)if(q=this.UB(),this.j.B().T("client_respect_autoplay_switch_button_renderer"))q=!!q.autoplaySwitchButtonRenderer;else{var a,w,G,k;q=!!((a=q.getWatchNextResponse())==null?0:(w=a.contents)==null?0:(G=w.twoColumnWatchNextResults)==null?0:(k=G.autoplay)==null?0:k.autoplay)!==!1}if(q)this.V||(this.V=!0,this.Ji(this.V),this.j.B().T("web_player_autonav_toggle_always_listen")||XcN(this), a=this.UB(),this.wg(a.autonavState),this.j.logVisibility(this.element,this.V));else if(this.V=!1,this.Ji(this.V),!this.j.B().T("web_player_autonav_toggle_always_listen"))for(this.j.B().T("web_player_autonav_toggle_always_listen"),a=g.V(this.U),w=a.next();!w.done;w=a.next())this.v5(w.value)}; g.C.wg=function(q){oRK(this)?this.isChecked=q!==1:((q=q!==1)||(g.hE(),q=g.dF("web_autonav_allow_off_by_default")&&!g.S2(0,141)&&g.UL("AUTONAV_OFF_BY_DEFAULT")?!1:!g.S2(0,140)),this.isChecked=q);jkU(this)}; g.C.onClick=function(){this.isChecked=!this.isChecked;this.j.hM(this.isChecked?2:1);jkU(this);if(oRK(this)){var q=this.UB().autoplaySwitchButtonRenderer;this.isChecked&&(q==null?0:q.onEnabledCommand)?this.j.zl("innertubeCommand",q.onEnabledCommand):!this.isChecked&&(q==null?0:q.onDisabledCommand)&&this.j.zl("innertubeCommand",q.onDisabledCommand)}this.j.logClick(this.element)}; g.C.getValue=function(){return this.isChecked}; g.C.UB=function(){return this.j.getVideoData(1)};g.Z(I6J,Km);g.Z(EI,g.e1);EI.prototype.onClick=function(){this.enabled&&(Vf(this,!this.checked),this.publish("select",this.checked))}; EI.prototype.getValue=function(){return this.checked}; EI.prototype.setEnabled=function(q){(this.enabled=q)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var Qf=["en-CA","en","es-MX","fr-CA"];g.Z(rL,EI);rL.prototype.NB=function(q){q?this.V||(this.Wq.Qa(this),this.V=!0):this.V&&(this.Wq.Ov(this),this.V=!1);this.V&&Vf(this,UhV())}; rL.prototype.Y=function(){g.wU(this.element,"ytp-menuitem-highlight-transition-enabled")}; rL.prototype.W=function(q){var a=UhV();q!==a&&(a=g.hE(),H5(190,q),H5(192,!0),a.save(),this.j.zl("cinematicSettingsToggleChange",q))}; rL.prototype.qB=function(){this.V&&this.Wq.Ov(this);EI.prototype.qB.call(this)};g.Z(nm,Km);nm.prototype.updateCinematicSettings=function(q){this.V=q;var a;(a=this.menuItem)==null||a.NB(q);this.api.publish("onCinematicSettingsVisibilityChange",q)};g.Z(iOc,Km);g.Z(Ms,Km);Ms.prototype.setCreatorEndscreenVisibility=function(q){var a;(a=c1(this.api.Hq()))==null||a.Ji(q)}; Ms.prototype.V=function(q){function a(G){G==="creatorendscreen"&&(G=c1(w.api.Hq()))&&G.VZ2(w.hideButton)} var w=this;this.hideButton=q;this.events.C(this.api,"modulecreated",a);a("creatorendscreen")};g.Z(h0,EI);h0.prototype.Y=function(q){this.W(q?1:0)}; h0.prototype.U=function(){var q=this.hasDrcAudioTrack(),a=this.V()===1&&q;Vf(this,a);this.setEnabled(q)}; h0.prototype.qB=function(){this.Wq.Ov(this);EI.prototype.qB.call(this)};g.Z(S1,Km);S1.prototype.getDrcUserPreference=function(){return this.V}; S1.prototype.setDrcUserPreference=function(q){g.AE("yt-player-drc-pref",q,31536E3);q!==this.V&&(this.V=q,this.updateEnvironmentData(),this.U()&&this.api.zk())}; S1.prototype.updateEnvironmentData=function(){this.api.B().XN=this.V===1}; S1.prototype.U=function(){var q,a,w=(q=this.api.getVideoData())==null?void 0:(a=q.W)==null?void 0:a.V;if(!w)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.T("mta_drc_mutual_exclusion_removal")){var G,k,b=(G=this.api.Tp())==null?void 0:(k=G.Pq)==null?void 0:k.id;return In(w,function(O){var e;return O.audio.V&&((e=O.Pq)==null?void 0:e.id)===b})}return In(w,function(O){var e; return((e=O.audio)==null?void 0:e.V)===!0})};g.Z(fm,Km);fm.prototype.onVideoDataChange=function(){var q=this,a=this.api.getVideoData();this.api.XC("embargo",1);var w=a==null?void 0:a.Fq.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(w==null?0:w.length)?DSm(this,w.filter(function(G){return Wwc(q,G)})):(a==null?0:a.cueRanges)&&DSm(this,a.cueRanges.filter(function(G){return Wwc(q,G)}))}; fm.prototype.U=function(q){return q.embargo!==void 0}; fm.prototype.qB=function(){Km.prototype.qB.call(this);this.V={}};g.Z(Hy,Km); Hy.prototype.addEmbedsConversionTrackingParams=function(q){var a=this.api.B(),w=a.widgetReferrer,G=a.Ai,k=this.V,b="",O=a.getWebPlayerContextConfig();O&&(b=O.embedsIframeOriginParam||"");w.length>0&&(q.embeds_widget_referrer=w);G.length>0&&(q.embeds_referring_euri=G);a.Y&&b.length>0&&(q.embeds_referring_origin=b);O&&O.embedsFeature&&(q.feature=O.embedsFeature);k.length>0&&(a.T("embeds_web_enable_lite_experiment_control_arm_logging")?k.unshift(28572):g.GV(g.l0(a))&&k.unshift(159628),a=k.join(","),a= g.py()?a:g.xe(a,4),q.source_ve_path=a);this.V.length=0};g.Z(R7y,Km);g.Z(y6J,Km);g.Z(cy,g.c);cy.prototype.qB=function(){g.c.prototype.qB.call(this);this.V=null;this.U&&this.U.disconnect()};g.Z(gdK,Km);g.Z(pm,g.u);pm.prototype.show=function(){g.u.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; pm.prototype.stopTimer=function(){this.V&&(this.V.dispose(),this.V=null)}; pm.prototype.onVideoDataChange=function(q){var a,w,G=(a=this.api.getVideoData())==null?void 0:(w=a.getPlayerResponse())==null?void 0:w.playabilityStatus;G&&(a=alG(G),g.v(this.api.getPlayerStateObject(),128)||q==="dataloaderror"||!a?(this.U=0,this.stopTimer(),this.hide()):(q=(a.remainingTimeSecs||0)*1E3,q>0&&(this.show(),this.updateValue("label",D6(a.label)),G1l(this,q))))}; pm.prototype.qB=function(){this.stopTimer();g.u.prototype.qB.call(this)};g.Z(k1m,Km);g.Z(UI,g.u);UI.prototype.onClick=function(){this.MB.logClick(this.element);this.MB.zl("onFullerscreenEduClicked")}; UI.prototype.NB=function(){this.MB.isFullscreen()?this.V?this.fade.hide():this.fade.show():this.hide();this.MB.logVisibility(this.element,this.MB.isFullscreen()&&!this.V)};g.Z(XD,Km);XD.prototype.updateFullerscreenEduButtonSubtleModeState=function(q){var a;(a=this.V)!=null&&(g.kX(a.element,"ytp-fullerscreen-edu-button-subtle",q),q&&!a.U&&(a.MB.T("player_tooltip_data_title_killswitch")?a.element.setAttribute("title","Desliza hacia abajo para ver m\u00e1s detalles"):a.element.setAttribute("data-tooltip-title","Desliza hacia abajo para ver m\u00e1s detalles"),Xe(a.MB,a.element,a),a.U=!0))}; XD.prototype.updateFullerscreenEduButtonVisibility=function(q){var a;(a=this.V)!=null&&(a.V=q,a.NB())};g.Z(bxl,g.u);g.Z(eZK,Km);g.Z(j1,Km);j1.prototype.getSphericalProperties=function(){var q=g.ii(this.api.Hq());return q?q.getSphericalProperties():{}}; j1.prototype.setSphericalProperties=function(q){if(q){var a=g.ii(this.api.Hq());a&&a.setSphericalProperties(q,!0)}};g.Z(o0,Km);g.C=o0.prototype;g.C.createClientVe=function(q,a,w,G){this.api.createClientVe(q,a,w,G===void 0?!1:G)}; g.C.createServerVe=function(q,a,w){this.api.createServerVe(q,a,w===void 0?!1:w)}; g.C.setTrackingParams=function(q,a){this.api.setTrackingParams(q,a)}; g.C.logClick=function(q,a){this.api.logClick(q,a)}; g.C.logVisibility=function(q,a,w){this.api.logVisibility(q,a,w)}; g.C.hasVe=function(q){return this.api.hasVe(q)}; g.C.destroyVe=function(q){this.api.destroyVe(q)};Nq_.prototype.YV=function(){for(var q=this.U,a={},w=g.V(I0),G=w.next();!G.done;G=w.next())if(G=G.value,this.V[G]){q=uk[G].vR(q,this.videoData);for(var k=g.V(I0),b=k.next();!b.done;b=k.next())b=b.value,a[b]!==void 0||In(q,uk[b].C9)||(a[b]=uk[G].mW)}else a[G]=1;q=g.V(I0);for(w=q.next();!w.done;w=q.next())w=w.value,a[w]===void 0&&(a[w]=0)}; var I0=[0,1,2],Yu={},uk=(Yu[0]={mW:2,C9:$qy,vR:Ylj},Yu[1]={mW:3,C9:P5G,vR:KfN},Yu[2]={mW:4,C9:dqK,vR:TqJ},Yu);var Ff_=!1;vy.prototype.setPlaybackRate=function(q){this.playbackRate=Math.max(1,q)}; vy.prototype.getPlaybackRate=function(){return this.playbackRate};R0.prototype.Db=function(q){var a=g.WY(q.info.V.info,this.X9.pk),w=q.info.Dh+this.Y,G=q.info.startTime*1E3;if(this.policy.A2)try{G=this.policy.A2?g.QW(q)*1E3:q.info.startTime*1E3}catch(O){Math.random()>.99&&this.logger&&(G=kv(q.U).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:q.info.c5(),encodedDataView:g.AH(G,4)})),G=q.info.startTime*1E3}var k=q.info.clipId,b=this.policy.A2?g.RVl(q)*1E3:q.info.duration*1E3;this.policy.A2&&(G<0||b<0)&&(this.logger&&(this.logger({missingSegInfo:q.info.c5(), startTimeMs:G,durationMs:b}),this.policy.OM||(G<0&&(G=q.info.startTime*1E3),b<0&&(b=q.info.duration*1E3))),this.policy.OM&&(G<0&&(G=q.info.startTime*1E3),b<0&&(b=q.info.duration*1E3)));return{formatId:a,Dh:w,startTimeMs:G,clipId:k,o9:b}}; R0.prototype.u5=function(q){this.timestampOffset=q};yf.prototype.seek=function(q,a){q!==this.targetTime&&(this.seekCount=0);this.targetTime=q;var w=this.videoTrack.U,G=this.audioTrack.U,k=this.audioTrack.M1,b=Hxc(this,this.videoTrack,q,this.videoTrack.M1,a);a=Hxc(this,this.audioTrack,this.policy.JS?q:b,k,a);q=Math.max(q,b,a);this.Y=!0;this.X9.isManifestless&&(ndN(this,this.videoTrack,w),ndN(this,this.audioTrack,G));return q}; yf.prototype.isSeeking=function(){return this.Y}; yf.prototype.rO=function(q){this.U=q}; var flV=2/24;var Uqm=0;g.C=Nd.prototype;g.C.RM=function(){this.J=this.now();A9l(this.f0,this.J);this.Yl.RM()}; g.C.rp=function(q,a){var w=this.policy.U?(0,g.Zj)():0;YK(this,q,a);q-this.L<10&&this.U>0||this.jh(q,a);this.Yl.rp(q,a);this.policy.U&&(q=(0,g.Zj)()-w,this.yN+=q,this.IW=Math.max(q,this.IW))}; g.C.jh=function(q,a){var w=(q-this.L)/1E3,G=a-this.W;this.wd||(IW(this.f0,w,G),this.XT(w,G));this.L=q;this.W=a}; g.C.Vx=function(){this.jt&&XXU(this);this.Yl.Vx()}; g.C.I4=function(q){this.jt||(this.jt=this.D-this.N1+q,this.Ai=this.D,this.OQ=this.X)}; g.C.tH=function(q,a){q=q===void 0?this.X:q;a=a===void 0?this.D:a;this.U>0||(this.S=q,this.U=a,this.F9=this.isActive=!0)}; g.C.rH=function(){return this.jZ||2}; g.C.yI=function(){}; g.C.Ws=function(){var q,a={rn:this.requestNumber,rt:(this.X-this.V).toFixed(),lb:this.D,stall:(1E3*this.Y).toFixed(),ht:(this.J-this.V).toFixed(),elt:(this.S-this.V).toFixed(),elb:this.U,d:(q=this.f7)==null?void 0:q.m$()};this.url&&sgj(a,this.url);this.policy.U&&(a.mph=this.IW.toFixed(),a.tph=this.yN.toFixed());a.ulb=this.EK;a.ult=this.UK;return a}; g.C.now=function(){return(0,g.Zj)()}; g.C.deactivate=function(){this.isActive&&(this.isActive=!1)};g.Z(KN,Nd);g.C=KN.prototype;g.C.Ws=function(){var q=Nd.prototype.Ws.call(this);q.pb=this.Dc;q.pt=(1E3*this.VN).toFixed();q.se=this.Ck;return q}; g.C.PC=function(){var q=this.Yl;this.A2||(this.A2=q.PC?q.PC():1);return this.A2}; g.C.OO=function(){return this.Ek?this.PC()!==1:!1}; g.C.Cz=function(q,a,w){if(!this.w$){this.w$=!0;if(!this.wd){YK(this,q,a);this.jh(q,a);var G=this.PC();this.Ck=w;if(!this.wd)if(G===2){G=q-this.S0)||d7(this,G,a),this.U>0&&jE(this.f0,a,this.Y));q=(q-this.V)/ 1E3||.01;this.policy.S&&!(this.U>0)||XI(this.f0,q,this.W,odJ(this),this.i9)}this.deactivate()}}; g.C.fP=function(q,a,w){w&&(this.A2=2);q<0&&this.jZ&&(q=this.jZ);a?this.St+=q:this.le+=q}; g.C.rH=function(){return this.le||this.St||Nd.prototype.rH.call(this)}; g.C.jh=function(q,a){var w=(q-this.L)/1E3,G=a-this.W,k=this.PC();this.isActive?k===1&&((G>0||this.policy.D)&&(w>.2||G<1024)?(this.Y+=w,G>0&&w>.2&&d7(this,this.eR?w:.05,G),this.OA=!0):G>0&&(d7(this,w,G),this.OA=!0)):a&&a>=this.policy.V&&this.tH(q,a);Nd.prototype.jh.call(this,q,a)}; g.C.eM=function(q){if(!this.wd){YK(this,q,this.D);var a=(q-this.V)/1E3;this.PC()!==2&&this.U>0&&(this.Y+=(q-this.L)/1E3,jE(this.f0,this.W,this.Y));XI(this.f0,a,this.W,odJ(this),this.i9,!0);q=(q-this.L)/1E3;IW(this.f0,q,0);this.XT(q,0)}}; g.C.tH=function(q,a){q=q===void 0?this.X:q;a=a===void 0?this.D:a;if(!(this.U>0)&&(Nd.prototype.tH.call(this,q,a),this.PC()===1)){a=(this.J-this.V)/1E3;var w=(q-this.J)/1E3;this.Ek&&T3(this,this.now());this.uF||this.wd||(this.jZ&&(w=Math.max(0,w-this.jZ)),q=this.f0,q.S.bM(1,a),q.f7.bM(1,w))}}; g.C.hj=function(){this.Ek&&T3(this,this.now());return this.Tl}; g.C.AE=function(){var q;if(q=this.W>this.Pk)q=(q=this.W)?q>=this.policy.V:!1;return q}; g.C.O8=function(){return this.h2}; g.C.cL=function(q){q=q===void 0?this.now():q;if(this.Ek){T3(this,q);if(this.A2?this.OO():this.y7!==this.L7){var a=this.L7;if(q0?w+q:w+Math.max(q,a)}; g.C.Z7=function(){return this.now()-this.S}; g.C.FW=function(){return(this.W-this.U)*1E3/this.Z7()||0}; g.C.xS=function(){return this.S};$K.prototype.feed=function(q){qj(this.V,q);this.j4()}; $K.prototype.j4=function(){if(this.Y){if(!this.V.totalLength)return;var q=this.V.split(this.W-this.U),a=q.DK;q=q.xK;if(!this.Yl.I4(this.Y,a,this.U,this.W))return;this.U+=a.totalLength;this.V=q;this.U===this.W&&(this.Y=this.W=this.U=void 0)}for(;;){var w=0;q=g.V(vdf(this.V,w));a=q.next().value;w=q.next().value;w=g.V(vdf(this.V,w));q=w.next().value;w=w.next().value;if(a<0||q<0)break;if(!(w+q<=this.V.totalLength)){if(!(this.Yl.I4&&w+1<=this.V.totalLength))break;w=this.V.split(w).xK;this.Yl.I4(a,w,0, q)&&(this.Y=a,this.U=w.totalLength,this.W=q,this.V=new yI([]));break}q=this.V.split(w).xK.split(q);w=q.xK;this.Yl.sI(a,q.DK);this.V=w}}; $K.prototype.dispose=function(){this.V=new yI};g.C=sU.prototype;g.C.xj=function(){return 0}; g.C.H7=function(){return null}; g.C.tj=function(){return null}; g.C.Ab=function(){return this.state>=1}; g.C.isComplete=function(){return this.state>=3}; g.C.ir=function(){return this.state===5}; g.C.onStateChange=function(){}; g.C.gG=function(q){var a=this.state;this.state=q;this.onStateChange(a);this.callback&&this.callback(this,a)}; g.C.xJ=function(q){q&&this.state=this.xhr.HEADERS_RECEIVED}; g.C.getResponseHeader=function(q){try{return this.xhr.getResponseHeader(q)}catch(a){return""}}; g.C.Y$=function(){return+this.getResponseHeader("content-length")}; g.C.Hc=function(){return this.U}; g.C.ZA=function(){return this.status>=200&&this.status<300&&!!this.U}; g.C.Nj=function(){return this.V.totalLength>0}; g.C.Wz=function(){var q=this.V;this.V=new yI;return q}; g.C.WE=function(){return this.V}; g.C.abort=function(){this.t2=!0;this.xhr.abort()}; g.C.CP=function(){return!0}; g.C.py=function(){return this.W}; g.C.Jp=function(){return""};g.C=Dq_.prototype;g.C.getResponseHeader=function(q){return q==="content-type"?this.V.get("type"):""}; g.C.abort=function(){}; g.C.Nl=function(){return!0}; g.C.Y$=function(){return this.range.length}; g.C.Hc=function(){return this.loaded}; g.C.ZA=function(){return!!this.loaded}; g.C.Nj=function(){return!!this.U.totalLength}; g.C.Wz=function(){var q=this.U;this.U=new yI;return q}; g.C.WE=function(){return this.U}; g.C.CP=function(){return!0}; g.C.py=function(){return!!this.error}; g.C.Jp=function(){return this.error};g.C=yvl.prototype;g.C.start=function(q){var a={credentials:"include",cache:"no-store"};Object.assign(a,this.X);this.Y&&(a.signal=this.Y.signal);q=new Request(q,a);fetch(q).then(this.J,this.onError).then(void 0,gw)}; g.C.onDone=function(){this.t2()||this.Yl.Vx()}; g.C.getResponseHeader=function(q){return this.responseHeaders?this.responseHeaders.get(q):null}; g.C.Nl=function(){return!!this.responseHeaders}; g.C.Hc=function(){return this.U}; g.C.Y$=function(){return+this.getResponseHeader("content-length")}; g.C.ZA=function(){return this.status>=200&&this.status<300&&!!this.U}; g.C.Nj=function(){return!!this.V.totalLength}; g.C.Wz=function(){var q=this.V;this.V=new yI;return q}; g.C.WE=function(){return this.V}; g.C.t2=function(){return this.D}; g.C.abort=function(){this.W&&this.W.cancel().catch(function(){}); this.Y&&this.Y.abort();this.D=!0}; g.C.CP=function(){return!0}; g.C.py=function(){return this.L}; g.C.Jp=function(){return this.errorMessage};g.C=qYl.prototype;g.C.onDone=function(){if(!this.t2){this.status=this.xhr.status;try{this.response=this.xhr.response,this.U=this.response.byteLength}catch(q){}this.V=!0;this.Yl.Vx()}}; g.C.z5=function(){this.xhr.readyState===2&&this.Yl.RM()}; g.C.onProgress=function(q){this.t2||(this.status=this.xhr.status,this.V||(this.U=q.loaded),this.Yl.rp((0,g.Zj)(),q.loaded))}; g.C.Nl=function(){return this.xhr.readyState>=2}; g.C.getResponseHeader=function(q){try{return this.xhr.getResponseHeader(q)}catch(a){return g.Qa(Error("Could not read XHR header "+q)),""}}; g.C.Y$=function(){return+this.getResponseHeader("content-length")}; g.C.Hc=function(){return this.U}; g.C.ZA=function(){return this.status>=200&&this.status<300&&this.V&&!!this.U}; g.C.Nj=function(){return this.V&&!!this.response&&!!this.response.byteLength}; g.C.Wz=function(){var q=this.response;this.response=void 0;return new yI([new Uint8Array(q)])}; g.C.WE=function(){return new yI([new Uint8Array(this.response)])}; g.C.abort=function(){this.t2=!0;this.xhr.abort()}; g.C.CP=function(){return!1}; g.C.py=function(){return!1}; g.C.Jp=function(){return""};g.Z(Zx,g.c);Zx.prototype.kK=function(){if(!this.kW.length)return[];var q=this.kW;this.kW=[];this.W=g.s6(q).info;return q}; Zx.prototype.Wg=function(){return this.kW}; Zx.prototype.qB=function(){g.c.prototype.qB.call(this);this.V=null;this.kW.length=0;this.sK.length=0;this.W=null};g.Z(VB,g.c);g.C=VB.prototype; g.C.eL9=function(){if(!this.t2()){var q=(0,g.Zj)(),a=!1;if(this.policy.KF){q=q-(this.timing.U>0?this.timing.S:this.timing.V)-this.timing.rH()*1E3;var w=UY(J5(this),!1);q>=2E3*w?a=!0:q>=this.policy.Kb*w&&(this.V=this.policy.mP)}else if(this.timing.U>0){if(this.D){this.policy.L0&&(this.V=0);return}var G=this.timing.O8();this.timing.cL();var k=this.timing.O8();k-G>=this.policy.XN*.8?(this.V++,this.logger.debug(function(){return"Mispredicted by "+(k-G).toFixed(0)}),a=this.V>=5):this.V=0}else{var b=q- this.timing.hj(); this.policy.mP&&b>0&&(this.V+=1);a=UY(J5(this),!1)*this.policy.Vu;(a=b>a*1E3)&&this.logger.debug(function(){return"Elbow late by "+b.toFixed(3)})}this.V>0&&this.Yl.tA(); a?this.sU():this.U.start()}}; g.C.sU=function(){this.Y=!0;this.Yl.m8();this.lastError="net.timeout";QB(this)}; g.C.canRetry=function(q){var a=J5(this);q=q?this.policy.Xi:this.policy.PM;return a.timedOut0&&(a=bH(a.V,0),q.ubyte=a,w===1&&a===0&&(q.b248180278=!0))}this.eZ&&(q.rc=this.policy.UM?this.eZ:this.eZ.toString());this.policy.C0&&this.gQ&&(q.tr=this.gQ);q.itag=this.info.sK[0].V.info.itag;q.ml=""+ +this.info.sK[0].V.cH();q.sq=""+this.info.sK[0].Dh;this.Yw&&(q.ifi=""+ +i5(this.info.GZ.U));this.eZ!==410&&this.eZ!==500&&this.eZ!==503||(q.fmt_unav="true");var G;(w=this.errorMessage||((G=this.xhr)==null?void 0: G.Jp()))&&(q.msg=w);this.iq&&(q.smb="1");this.info.isDecorated()&&(q.sdai="1");return q}; g.C.HS=function(){return IlV(this.timing)}; g.C.Jp=function(){return this.xhr.Jp()||""}; g.C.AE=function(){return this.isComplete()||this.timing.AE()}; g.C.rp=function(){!this.t2()&&this.xhr&&(this.eZ=this.xhr.status,this.policy.uV&&this.ut&&this.vc(!1),this.kU()?this.xJ(2):!this.Yo&&this.AE()&&(this.xJ(),this.Yo=!0))}; g.C.RM=function(){if(!this.t2()&&this.xhr){if(!this.y8&&this.xhr.Nl()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var q=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.y8=((0,g.Zj)()-q)/1E3}this.xhr.Nl()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.As&&!quV()&&g.AE("yt-player-headers-readable",!0,2592E3);q=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var a=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),w;(w=this.Wd)==null||w.stop();this.rd=q||this.rd; this.Dm=a||this.Dm}}; g.C.Vx=function(){var q=this.xhr;if(!this.t2()&&q){this.eZ=q.status;q=this.XW(q);if(this.policy.C0){var a;(a=this.Wd)==null||a.stop()}q===5?QB(this.t8):this.gG(q);this.t8.U.stop()}}; g.C.XW=function(q){var a=this;htm(this);if(A5(this.t8,this.xhr.status,this.yc?this.timing.F9||this.NJ:this.xhr.ZA(),!1,this.ZV))return 5;var w="";xK(this.t8,this.xhr)&&(w=b0G(this.t8,this.xhr));if(w)return p0(J5(this.t8)),this.info.fF(this.Yw,w),3;w=q.Hc();if(this.SR){this.vc(!0);htm(this);if(A5(this.t8,this.xhr.status,this.timing.F9||this.NJ,!1,this.ZV))return 5;if(!this.FG){if(this.NJ)return p0(J5(this.t8)),3;this.t8.lastError="net.closed";return 5}}else{if(A5(this.t8,this.xhr.status,this.xhr.ZA(), !1,this.ZV))return 5;var G=this.info.W;if(G&&G!==w||q.py())return this.t8.lastError="net.closed",5;this.vc(!0)}G=zZV(this)?q.getResponseHeader("X-Bandwidth-Est"):0;if(q=zZV(this)?q.getResponseHeader("X-Bandwidth-Est3"):0)this.Se=!0,this.policy.Lo&&(G=q);Ghm(this.t8,w,G?Number(G):0,this.info.sK[0].type===5);this.logger.debug(function(){var k=a.timing;return"Succeeded, rtpd="+(k.VN*1E3+k.V-Date.now()).toFixed(0)}); return 4}; g.C.canRetry=function(){this.t2();var q=this.info.isDecorated();return this.t8.canRetry(q)}; g.C.onStateChange=function(){this.isComplete()&&(this.policy.g9?this.m8():this.timing.deactivate())}; g.C.sU=function(){this.t8.sU()}; g.C.tA=function(){this.callback&&this.callback(this,this.state)}; g.C.t7=function(){return this.t8.t7()}; g.C.dispose=function(){sU.prototype.dispose.call(this);this.t8.dispose();var q;(q=this.Wd)==null||q.dispose();this.policy.g9||this.m8()}; g.C.m8=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.C.kK=function(){if(!this.Wg().length)return[];this.nH=!0;return this.ut.kK()}; g.C.kU=function(){if(this.state<1)return!1;if(this.ut&&this.ut.kW.length)return!0;var q;return((q=this.xhr)==null?0:q.Nj())?!0:!1}; g.C.Wg=function(){this.vc(!1);return this.ut?this.ut.Wg():[]}; g.C.vc=function(q){try{if(q||this.xhr.Nl()&&this.xhr.Nj()&&!xK(this.t8,this.xhr)&&!this.It)this.ut||(this.ut=new Zx(this.policy,this.info.sK)),this.xhr.Nj()&&(this.SR?this.SR.feed(this.xhr.Wz()):EU(this.ut,this.xhr.Wz(),q&&!this.xhr.Nj()))}catch(a){this.SR?rel(this,a):g.Qa(a)}}; g.C.sI=function(q,a){switch(q){case 21:q=a.split(1).xK;n9j(this,q);break;case 22:this.FG=!0;EU(this.ut,new yI([]),!0);break;case 43:if(q=ZQ(new dd(a),1))this.info.fF(this.Yw,q),this.NJ=!0;break;case 45:a=M4(new dd(a));q=a.wO;a=a.gO;q&&a&&(this.Il=q/a);break;case 44:this.R1=mkU(new dd(a));var w,G,k;!this.timing.F9&&((w=this.R1)==null?void 0:w.action)===4&&((G=this.R1)==null?0:(k=G.wS)==null?0:k.yc)&&(this.yc=this.R1.wS.yc);break;case 53:this.policy.C0&&(q=EmG(new dd(a)).YX)&&(this.Wd||(this.YX=q,this.Wd= new g.o1(this.p_,q,this)),this.Wd.start());break;case 60:this.pC=nf(new dd(a));break;case 58:if(q=R1J(new dd(a)))this.bR=q,q.bR===3&&(this.ZV=!0)}}; g.C.I4=function(q,a,w,G){w||this.timing.I4(G);if(q!==21)return!1;if(q=this.policy.uV)if(q*=this.info.sK[0].V.info.J2,a.totalLength+w!==G&&a.totalLength0)return!1;if(!this.xhr.Nl())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.SR)var q=!this.info.W;else this.xhr.Y$()?q=!1:(q=this.xhr.getResponseHeader("content-type"),q=q==="audio/mp4"||q==="video/mp4"||q==="video/webm");if(!q)return!1;if(isNaN(this.info.qe)){q=this.xhr.getResponseHeader("x-head-seqnum");var a=this.timing.policy.X?1:0;if(!q)this.logger.debug("No x-head-seqnum, cannot tell if head segment."); else if(Number(q)>this.info.sK[0].Dh+a)return!1}return!0}; g.C.qa=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.C.H7=function(){this.xhr&&(this.rd=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.rd}; g.C.tj=function(){this.xhr&&(this.Dm=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.Dm}; g.C.Ne=function(){return this.t8.Ne()}; g.C.p_=function(){if(!this.t2()&&this.xhr){this.gQ="heartbeat";var q=this.t8;q.V+=2;this.tA()}};g.Z(fN,Nd);g.C=fN.prototype;g.C.jh=function(q,a){var w=(q-this.L)/1E3,G=a-this.W;this.U>0?G>0&&(this.y7&&(w>.2||G<1024?(this.Y+=w,w>.2&&SYj(this,.05,G)):SYj(this,w,G)),this.L7&&(this.Tl+=G,this.le+=w)):a>this.policy.V&&this.tH(q,a);Nd.prototype.jh.call(this,q,a)}; g.C.Cz=function(q,a){YK(this,q,a);this.jh(q,a);this.y7&&(a=this.W*this.snapshot.stall+this.W/this.snapshot.byterate,this.U>0&&jE(this.f0,this.Tl,this.Y),q=(q-this.V)/1E3||.01,this.policy.S&&!(this.U>0)||XI(this.f0,q,this.W,a,!1))}; g.C.eM=function(q){YK(this,q,this.D);var a=(q-this.L)/1E3;IW(this.f0,a,0);this.XT(a,0);!this.y7&&this.U>0||(a=this.W*this.snapshot.stall+this.W/this.snapshot.byterate,this.U>0&&(this.Y+=(q-this.L)/1E3,jE(this.f0,this.Tl,this.Y)),XI(this.f0,(q-this.V)/1E3||.01,this.W,a,!1,!0))}; g.C.F8=function(q){q=q.OL||2147483647;(q&2)!==2&&(this.L7=!1);(q&1)===1&&(this.y7=!0)}; g.C.Af=function(q){q=q.OL||2147483647;(q&2)===2&&(this.L7=!1);(q&1)===1&&(this.y7=!1)}; g.C.xS=function(){return this.S}; g.C.Z7=function(){var q=this.L7?this.now()-this.L:0;return Math.max(this.le*1E3+q,1)}; g.C.FW=function(){return this.Tl*1E3/this.Z7()}; g.C.tH=function(q,a){q=q===void 0?this.X:q;a=a===void 0?this.D:a;this.U>0||(Nd.prototype.tH.call(this,q,a),a=this.f0,q=(q-this.J)/1E3,a.S.bM(1,(this.J-this.V)/1E3),a.f7.bM(1,q))}; g.C.yI=function(q){this.St=q}; g.C.Ws=function(){var q=Nd.prototype.Ws.call(this);q.rbw=this.FW();q.rbe=+this.L7;q.gbe=+this.y7;q.ackt=(this.St-this.V).toFixed();return q}; g.C.cL=function(){}; g.C.O8=function(){return NaN}; g.C.hj=function(){return this.V+this.snapshot.delay*1E3};HF.prototype.sI=function(q,a){switch(q){case 20:q=new dd(a);q={Vr:sR(q,1),videoId:ZQ(q,2),itag:sR(q,3),lmt:sR(q,4),xtags:ZQ(q,5),iL:sR(q,6),AG:FT(q,8),Ny:sR(q,9),QH9:sR(q,10),startMs:sR(q,11),durationMs:sR(q,12),fv:sR(q,14),timeRange:ER(q,15,SEj),x3:sR(q,16),Tx:sR(q,17),clipId:ZQ(q,1E3)};this.jA(q);break;case 21:this.GO(a,!1);break;case 22:this.jm(a);break;case 31:q=mK(a,Kz_);this.YP(q);break;case 52:q=mK(a,Vgm);this.ZB(q);break;default:this.VX(q,a)}}; HF.prototype.jA=function(){}; HF.prototype.VX=function(){};g.Z(cF,HF);g.C=cF.prototype; g.C.VX=function(q,a){switch(q){case 35:this.HM(a);break;case 44:this.m2(a);break;case 43:this.n2(a);break;case 53:this.eA(a);break;case 55:q=new dd(a);ER(q,1,AIN);ER(q,2,BQj);break;case 56:this.BU();break;case 57:this.Mr(a);break;case 42:this.O_(a);break;case 45:this.RH(a);break;case 59:this.sx(a);break;case 51:this.Jf(a);break;case 49:this.F8(a);break;case 50:this.Af(a);break;case 47:this.KQ(a);break;case 58:this.j8(a);break;case 61:this.Yl.rG.yI((0,g.Zj)());break;case 66:this.J7(a);break;case 46:this.zX(a); break;case 67:this.onSnackbarMessage(a);break;case 69:this.mF(a)}}; g.C.Jf=function(q){q=new dd(q);q={ub2:JO(q,1,xG),OU9:JO(q,2,xG)};this.Yl.Jf(q)}; g.C.sx=function(q){var a=new dd(q);q=VH(a,1);var w=VH(a,2);a=VH(a,3);this.Yl.sx(q,w,a)}; g.C.RH=function(q){q=M4(new dd(q));this.Yl.RH(q)}; g.C.KQ=function(q){q=mK(q,$kf);this.Yl.KQ(q)}; g.C.O_=function(q){q=new dd(q);q={videoId:ZQ(q,1),formatId:ER(q,2,xG),endTimeMs:sR(q,3),DTT:sR(q,4),mimeType:ZQ(q,5),Ed:ER(q,6,Ojm),indexRange:ER(q,7,Ojm),TI:ER(q,8,lR_)};this.Yl.O_(q)}; g.C.Mr=function(q){q=BQj(new dd(q));this.Yl.Mr(q)}; g.C.BU=function(){this.Yl.BU()}; g.C.HM=function(q){q=dkK(new dd(q));this.Yl.HM(q)}; g.C.eA=function(q){q=EmG(new dd(q));this.Yl.eA(q)}; g.C.m2=function(q){q=mkU(new dd(q));this.Yl.m2(q)}; g.C.n2=function(q){q={redirectUrl:ZQ(new dd(q),1)};this.Yl.n2(q)}; g.C.GO=function(q){var a=bH(q,0);if(q.totalLength!==1){q=q.split(1).xK;var w=this.U[a]||null;w&&uW(this.Yl.Ze,a,w,q)}}; g.C.jm=function(q){q=bH(q,0);var a=this.U[q]||null;a&&this.Yl.jm(q,a)}; g.C.ZB=function(q){this.Yl.ZB(q)}; g.C.jA=function(q){var a=q.Vr,w=q.AG,G=q.iL,k=q.Tx,b=q.x3,O=q.Ny,e=q.startMs,N=q.durationMs,Y=q.timeRange,P=q.fv,K=q.clipId,d=vG(q);q=jTU.has(pf[""+q.itag]);this.U[a]=d;this.Yl.fP(d,q,{Vr:a,AG:!!w,iL:G!=null?G:-1,Ny:O!=null?O:-1,startMs:e!=null?e:-1,durationMs:N!=null?N:-1,fv:P,Tx:k,x3:b,clipId:K,timeRange:Y})}; g.C.F8=function(q){q={OL:sR(new dd(q),1)};this.Yl.F8(q)}; g.C.Af=function(q){q={OL:sR(new dd(q),1)};this.Yl.Af(q)}; g.C.YP=function(q){this.Yl.YP(q)}; g.C.j8=function(q){q=R1J(new dd(q));this.Yl.j8(q)}; g.C.J7=function(q){q={KD:ER(new dd(q),1,CcU)};this.Yl.J7(q)}; g.C.onSnackbarMessage=function(q){q=sR(new dd(q),1);this.Yl.onSnackbarMessage(q)}; g.C.mF=function(q){q={x0:JO(new dd(q),1,bjc)};this.Yl.mF(q)}; g.C.zX=function(q){q=new dd(q);q={reloadPlaybackParams:ER(q,1,Dly),iX:FT(q,2)};this.Yl.zX(q)};g.Z(pN,g.c);g.C=pN.prototype;g.C.iW=function(){return Array.from(this.wG.keys())}; g.C.Lv=function(q){q=this.wG.get(q);var a=q.kW;q.OH+=a.totalLength;q.kW=new yI;return a}; g.C.A$=function(q){return this.wG.get(q).A$}; g.C.bl=function(q){return this.wG.get(q).bl}; g.C.fP=function(q,a,w){this.wG.get(q)||UKG(this,q,a);a=this.wG.get(q);this.X9?(q=jrl(this,q,w),XGy(this,w.Vr,a,q)):(w.AG?a.pn=w.fv:a.TX.push(w),a.hF.push(w))}; g.C.zS=function(q){var a;return((a=this.wG.get(q))==null?void 0:a.sK)||[]}; g.C.xJ=function(){for(var q=g.V(this.wG.values()),a=q.next();!a.done;a=q.next())if(a=a.value,a.Uu){if(a.onProgress)a.onProgress();a.Uu=!1}}; g.C.jm=function(q,a){this.logger.debug(function(){return"[onMediaEnd] formatId: "+a}); var w=this.wG.get(a);UU?w&&!w.A$&&(w.Ej.get(q)?w.Ej.get(q).CS=!0:w.Ej.set(q,{data:new yI,Ko:0,CS:!0}),w.bl=!0):w&&!w.bl&&(w.bl=!0)}; g.C.kK=function(q){if(UU){var a=this.wG.get(q);if(a)for(var w=g.V(a.Ej),G=w.next();!G.done;G=w.next()){var k=g.V(G.value);G=k.next().value;k=k.next().value;var b=a.Gc.get(G);if(q5(b[0])){if(!k.CS)continue;var O=k.data,e=0,N=[];b=g.V(b);for(var Y=b.next();!Y.done;Y=b.next()){Y=Y.value;var P=Y.W,K=gd(O,e,P);e+=P;N.push(new VW(Y,K))}a.Yt.push.apply(a.Yt,g.Tf(N))}else if(k.data.totalLength>0||!b[0].range&&k.CS)O=void 0,e=b[0],N=k.Ko,b=k.data,e.range||(O=k.CS),O=new VW(QKG(e,e.U+N,b.totalLength,O),b), k.Ko+=O.info.W,a.Yt.push(O);a.Ej.get(G).data=new yI;k.CS&&a.Ej.delete(G)}q=this.wG.get(q);if(!q)return[];a=q.Yt;q.Yt=[];w=g.V(a);for(G=w.next();!G.done;G=w.next())q.OH+=G.value.info.W;return a||[]}w=(a=this.wG.get(q))==null?void 0:a.ut;if(!w)return[];this.vc(q,w);return w.kK()}; g.C.kU=function(q){if(UU)return I2(this,q);var a,w,G;return!!((w=(a=this.wG.get(q))==null?void 0:a.ut)==null?0:(G=w.Wg())==null?0:G.length)||I2(this,q)}; g.C.vc=function(q,a){for(;I2(this,q);){var w=this.Lv(q);var G=q;G=this.wG.get(G).A$&&!o2(this,G);EU(a,w,G&&pGc(this,q))}}; g.C.qB=function(){g.c.prototype.qB.call(this);for(var q=g.V(this.wG.keys()),a=q.next();!a.done;a=q.next())XW(this,a.value);var w;if((w=this.S4)==null?0:w.BW)for(q=g.V(this.wG.values()),a=q.next();!a.done;a=q.next())a=a.value,a.Ej.clear(),a.Gc.clear(),a.Yt.length=0,a.sK.length=0,a.hF.length=0,a.TX.length=0;this.wG.clear()}; var UU=!1;g.Z(t5,g.c);g.C=t5.prototype;g.C.rp=function(){!this.t2()&&this.xhr&&(this.vc(!1),Wd(this.Yl,this))}; g.C.RM=function(){}; g.C.Vx=function(){if(!this.t2()&&this.xhr){var q=this.XW();q===5?QB(this.t8):this.gG(q);this.t8.U.stop();var a;(a=this.Pg)==null||a.stop()}}; g.C.XW=function(){var q="";xK(this.t8,this.xhr)&&(q=b0G(this.t8,this.xhr));if(q)return this.info.GZ.fF(this.Yw,q),3;this.vc(!0);if(A5(this.t8,this.xhr.status,this.xhr.ZA(),this.info.kY(),this.ZV))return 5;if(this.gS)return 3;Ghm(this.t8,this.xhr.Hc(),0,this.kY());this.policy.Nh&&LhK(this.Yl);return 4}; g.C.vc=function(q){var a=this.xhr;if((q||!xK(this.t8,this.xhr))&&a.Nj()){q=a.Wz();var w=q.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+w}); this.SR.feed(q)}}; g.C.sI=function(q,a){this.xhr.CP()&&q===21&&v9l(this);this.kQ.sI(q,a)}; g.C.I4=function(q,a,w,G){w||(this.rG.I4(G),this.policy.KS&&q===21&&v9l(this));if(q!==21)return!1;this.rG.F9=!0;q=a.totalLength;w||(this.Zq=bH(a,0),a=a.split(1).xK);var k=this.policy.dw,b=this.kQ.U[this.Zq],O=this.X9.W.get(b);if(k&&O&&(k*=O.info.J2,q+w!==G&&q0){this.policy.KF&&this.t8.U.stop();q=this.rG.Z7();a=this.rG.FW();var w=ztG(this,q);if(!(a>w.fX||w.wU>0&&this.info.zI()>w.wU)){this.fq=(0,g.Zj)();var G;(G=this.Pg)==null||G.stop();this.policy.Nh&&(G=this.Yl,q={I5:Math.round(a*q/1E3),jN:q},G.policy.Nh&&(G.f7=q,G.X1++));this.sU()}}}}; g.C.sU=function(){this.t8.sU()}; g.C.m2=function(q){this.Yl.m2(q,this.YE())}; g.C.n2=function(q){this.gS=!0;this.info.GZ.fF(this.Yw,q.redirectUrl)}; g.C.F8=function(q){this.rG instanceof fN&&this.rG.F8(q)}; g.C.Af=function(q){this.rG instanceof fN&&this.rG.Af(q)}; g.C.O_=function(q){var a=q.formatId,w=vG({itag:a.itag,lmt:a.lmt,xtags:a.xtags}),G,k,b=new ip(((G=q.Ed)==null?void 0:G.first)||0,((k=q.Ed)==null?void 0:k.Az)||0),O,e;G=new ip(((O=q.indexRange)==null?void 0:O.first)||0,((e=q.indexRange)==null?void 0:e.Az)||0);this.X9.W.get(w)||(w=q.TI||{},w.mimeType=q.mimeType,w.itag=a.itag,w.lastModified=""+(a.lmt||0),w.xtags=a.xtags,q=this.X9,a=oa(""),w=XH(w,null),SS(q,new ng(a,w,b,G)))}; g.C.RH=function(q){this.Yl.RH(q,this.YE())}; g.C.onSnackbarMessage=function(q){if(this.policy.qS)this.Yl.onSnackbarMessage(q)}; g.C.mF=function(q){this.policy.BT&&this.Yl.mF(q,this.YE())}; g.C.YP=function(q){this.Z3=q;this.Wf=(0,g.Zj)();this.Yl.YP(q)}; g.C.sx=function(q,a,w){this.Yl.sx(q,a,w)}; g.C.Mr=function(q){q.scope===2&&(this.NP=q);this.Yl.Mr(q)}; g.C.BU=function(){this.k_=!0;this.Yl.BU()}; g.C.Jf=function(q){this.policy.t5&&this.Yl.Jf(q)}; g.C.KQ=function(q){this.Yl.KQ(q,this.YE())}; g.C.j8=function(q){q.bR===3&&(this.ZV=!0);this.Yl.j8(q)}; g.C.J7=function(q){this.Yl.J7(q)}; g.C.zX=function(q){this.Yl.zX(q)}; g.C.canRetry=function(){this.t2();return this.t8.canRetry(!1)}; g.C.dispose=function(){if(!this.t2()){g.c.prototype.dispose.call(this);this.t8.dispose();var q;(q=this.Pg)==null||q.dispose();this.gG(-1);this.m8()}}; g.C.gG=function(q){this.state=q;Wd(this.Yl,this)}; g.C.kY=function(){return this.info.kY()}; g.C.oC=function(){return this.k_}; g.C.uJ=function(){return this.NP}; g.C.fP=function(q,a,w){w.clipId&&(this.clipId=w.clipId);this.policy.U&&!a&&(this.wk=w.Ny);this.Ze.fP(q,a,w);if(this.policy.sT&&this.Z3&&this.rG instanceof KN){var G=this.Z3.CD;this.rG.fP(w.durationMs/1E3,a,G>0&&w.Ny+1>=G)}this.Ze.wG.get(q).Gb=!0}; g.C.jm=function(q,a){this.Ze.jm(q,a)}; g.C.ZB=function(q){this.requestIdentifier=q}; g.C.kK=function(q){return this.Ze.kK(q)}; g.C.zS=function(q){return this.Ze.zS(q)}; g.C.kU=function(q){return this.Ze.kU(q)}; g.C.iW=function(){return this.Ze.iW()}; g.C.PC=function(){return 1}; g.C.YE=function(){return this.rG.requestNumber}; g.C.Uy=function(){return this.requestIdentifier}; g.C.Do=function(){return this.Yw.Do()}; g.C.Bl=function(){this.m8()}; g.C.m8=function(){this.rG.deactivate();var q;(q=this.xhr)==null||q.abort()}; g.C.isComplete=function(){return this.state>=3}; g.C.xo=function(){return this.state===3}; g.C.ir=function(){return this.state===5}; g.C.S0=function(){return this.state===4}; g.C.G$=function(){return this.isComplete()}; g.C.Ab=function(){return this.state>=1}; g.C.t7=function(){return this.policy.L0?this.t8.t7():0}; g.C.tA=function(){this.policy.L0&&Wd(this.Yl,this)}; g.C.CI=function(){return C0G(this.info)}; g.C.Ne=function(){return this.t8.Ne()}; g.C.C6=function(){var q=O0m(this.t8);Object.assign(q,EMN(this.info));q.req="sabr";q.rn=this.YE();var a;if((a=this.xhr)==null?0:a.status)q.rc=this.policy.UM?this.xhr.status:this.xhr.status.toString();var w;(a=(w=this.xhr)==null?void 0:w.Jp())&&(q.msg=a);this.fq&&(w=ztG(this,this.fq-this.rG.xS()),q.letm=w.S6,q.mrbps=w.fX,q.mram=w.wU);return q};i0f.prototype.tick=function(q,a){this.ticks[q]=a?window.performance.timing.navigationStart+a:(0,g.Zj)()};g.Z(z3,g.ya);g.C=z3.prototype; g.C.x7=function(q,a,w,G){if(this.policy.uR&&this.policy.U){var k=q.QL||null;k?(NKG(this,q.Dh,yB(this,q.startTime,q.Dh),{QL:k,Dh:q.Dh,wm:!!a,iy:w},this.W),G&&this.W&&this.W.B4(q.Dh,q.startTime,this.U,(a==null?void 0:a.V)||[],(a==null?void 0:a.U)||[],(a==null?void 0:a.Y)||[],w,(a==null?void 0:a.Kx)||0,(a==null?void 0:a.W)||void 0)):this.U===1&&WF(this,5,"noad")}else{var b=!1;this.policy.U&&(b=w?this.jt===q.Dh:this.y7===q.Dh);if(this.W&&G&&!b){G=[];b=[];var O=[],e=void 0,N=0;a&&(G=a.V,b=a.U,O=a.Y,e= a.W,N=a.Kx,this.d8("sdai",{sq:q.Dh,ssvicpns:G.join("."),ssvid:b.join(".")}));this.policy.U&&(w?this.jt=q.Dh:this.y7=q.Dh);this.W.B4(q.Dh,q.startTime,this.U,G,b,O,w,N,e)}this.policy.U?w&&(this.U===1&&WF(this,5,"noad"),q.Dh!==((k=this.V)==null?void 0:k.Dh)&&(Ogl(this,q,a,w),isNaN(q.startTime)||lwJ(this,q.Dh,yB(this,q.startTime,q.Dh),!!a,this.W))):w&&Ogl(this,q,a)}}; g.C.Hk=function(q,a,w){var G=this.videoTrack.V.index.P5()<=a;this.V={QL:q,Dh:a,wm:w};G&&iW(this,q,a)}; g.C.Xz=function(){this.W&&this.W.Xz()}; g.C.d8=function(q,a,w){(q!=="sdai"||this.policy.A5||(w===void 0?0:w))&&this.loader.d8(q,a)}; g.C.Zm=function(q,a){var w=this.videoTrack.V.index.uT(q);if(w>=0){var G;var k=((G=a.T0.Sn(w,2))==null?void 0:G.cY)||"";if(this.policy.U||k)return a.Dv(q,w),Dx(this.loader,q,q,w),this.d8("sdai",{cmskpad:1,t:q.toFixed(3),sq:w}),!0}this.d8("sdai",{cmskpad:0,t:q.toFixed(3),sq:w});return!1};g.C=d5j.prototype;g.C.iN=function(q,a,w){q=q||this.V;this.U.has(q)||(this.d8("sldai",{setadconfig:"noentry",cid:q}),this.U.set(q,{event:"unknown",startTimeSecs:0,LT:0,KR:[],o2:Date.now(),cU:-1,dk:6}));var G=this.U.get(q);G?a?(G.dk=6,G.KR.push(w),G.xq=a):G.dk=2:this.d8("sldai",{setadconfig:"notfound",cid:q})}; g.C.mF=function(q,a,w,G){var k;if(!((((k=q.x0)==null?void 0:k.length)||0)<=0)&&(q=q.x0[0],q.QL)){var b;k=-(((b=q.QL)==null?void 0:b.mS)||0);q.timeRange&&(k+=(q.timeRange.startTicks||0)/(q.timeRange.timescale||1)-a);var O,e,N,Y,P;a=new lp(k,((O=q.QL)==null?void 0:O.xHG)||0,((e=q.QL)==null?void 0:e.FQ)||"",((N=q.QL)==null?void 0:N.identifier)||"",sam(((Y=q.QL)==null?void 0:Y.event)||0),(((P=q.QL)==null?void 0:P.mS)||0)*1E3);TKj(this,a,w,q.Ny||0,G)}}; g.C.Dv=function(q,a){this.bq(q);var w=this.U.get(this.V);w?(this.d8("ssskipad",{cid:this.V,sn:a,mt:q.toFixed(3)}),w.c6=a):this.d8("ssskipadfail",{cid:this.V,sn:a,mt:q.toFixed(3)})}; g.C.Z_=function(){for(var q=g.V(this.U.values()),a=q.next();!a.done;a=q.next())a.value.c6=NaN}; g.C.bq=function(q,a){a&&(this.W=a);if(this.V&&(a=this.U.get(this.V))&&a.startTimeSecs<=q&&q<=a.startTimeSecs+a.LT)return;this.V="";a=g.V(this.U.entries());for(var w=a.next();!w.done;w=a.next()){var G=g.V(w.value);w=G.next().value;G=G.next().value;var k=void 0,b=void 0,O=void 0;if(((k=G)==null?void 0:k.startTimeSecs)<=q&&q<=((b=G)==null?void 0:b.startTimeSecs)+((O=G)==null?void 0:O.LT)){this.V=w;break}}};g.Z(w1,g.c);w1.prototype.cC=function(q,a,w){w=w===void 0?{}:w;this.policy.yp=aW(q,w,this.Y,a===void 0?!1:a)};ln.prototype.bB=function(q){var a=this;if(this.policy.FX){var w=new Set(q);w.size===this.f7.size&&[].concat(g.Tf(w)).every(function(G){return a.f7.has(G)})||(this.loader.d8("lwnmow",{itagDenylist:[].concat(g.Tf(q)).join(",")}),this.loader.JT(!!w.size),this.J=-1,this.f7=w,eA(this,this.V),this.Tl=!0)}}; ln.prototype.cC=function(q,a,w){w=w===void 0?{}:w;var G=this.policy.yp;this.D.cC(q,a===void 0?!1:a,w);if(G!==this.policy.yp){eA(this,this.V);Nt(this);var k,b;G>this.policy.yp&&((k=this.W)==null?0:IK(k.info))&&((b=this.nextVideo)==null||!IK(b.info))&&(this.F9=!0)}};d1.prototype.u5=function(q){this.timestampOffset=q;this.flush()}; d1.prototype.flush=function(){if(this.V.pos>0){var q={a:this.track.t$(),u:this.V.m$(),pd:Math.round(this.Y),ad:Math.round(this.W)},a=this.U;if(a){var w=a.V.info;q.itag=w.itag;w.V&&(q.xtags=w.V);q.sq=a.Dh;q.st=a.startTime;q.sd=a.duration;this.track.policy.K5&&(q.si=a.c5());a.Y&&(q.esl=a.U+a.W);a.Dw()&&(q.eos=1)}isNaN(this.timestampOffset)||(q.to=this.timestampOffset);var G;if(a=(G=this.track.M1)==null?void 0:G.Kk({})){for(var k in a)this.L[k]!==a[k]&&(q["sb_"+k]=a[k]);this.L=a}this.track.d8("sbu", q);this.V.reset();this.buffered=[];this.D=this.W=this.Y=0;this.timestampOffset=this.U=void 0}};$O.prototype.dispose=function(){this.UK=!0}; $O.prototype.t2=function(){return this.UK}; g.Z(VE,Error);QE.prototype.skip=function(q){this.offset+=q}; QE.prototype.Re=function(){return this.offset};g.C=auy.prototype;g.C.kS=function(){return this.U}; g.C.vM=function(){return this.U.length?this.U[this.U.length-1]:null}; g.C.xL=function(){this.U=[];r1(this);Le(this)}; g.C.Lv=function(q){this.le=this.U.shift().info;q.info.equals(this.le)}; g.C.zS=function(){return g.sd(this.U,function(q){return q.info})}; g.C.t$=function(){return!!this.D.info.audio}; g.C.isDrm=function(){return!!this.D.info.vN}; g.C.getDuration=function(){return this.D.index.DG()};g.Z(qd,sU);g.C=qd.prototype;g.C.onStateChange=function(){this.t2()&&(jF(this.Ze,this.formatId),this.V.dispose())}; g.C.C6=function(){var q=cef(this.Ze,this.formatId),a;var w=((a=this.Ze.wG.get(this.formatId))==null?void 0:a.bytesReceived)||0;var G;a=((G=this.Ze.wG.get(this.formatId))==null?void 0:G.OH)||0;return{expected:q,received:w,bytesShifted:a,sliceLength:o2(this.Ze,this.formatId),isAnyMediaEndReceived:this.Ze.bl(this.formatId)}}; g.C.HS=function(){return 0}; g.C.AE=function(){return!0}; g.C.kK=function(){return this.Ze.kK(this.formatId)}; g.C.Wg=function(){return[]}; g.C.kU=function(){return this.Ze.kU(this.formatId)}; g.C.Ne=function(){return this.lastError}; g.C.t7=function(){return 0};g.Z(SA,g.c);g.C=SA.prototype;g.C.t$=function(){return!!this.V.info.audio}; g.C.vM=function(){return this.Y.vM()}; g.C.Lv=function(q){this.Y.Lv(q);var a;(a=this.S)!=null&&(a.D.add(q.info.Dh),a.V=Qgm(a,a.uK,a.wy,q,a.V),a.W=q,a.L=(0,g.Zj)());this.J2=Math.max(this.J2,q.info.V.info.J2||0)}; g.C.getDuration=function(){return this.V.index.DG()}; g.C.xL=function(){a2(this);this.Y.xL()}; g.C.Jk=function(){return this.Y}; g.C.isRequestPending=function(q){return this.W.length?q===this.W[this.W.length-1].info.sK[0].Dh:!1}; g.C.u5=function(q){var a;(a=this.S)==null||a.u5(q);var w;(w=this.J)==null||w.u5(q)}; g.C.d8=function(q,a){this.loader.d8(q,a)}; g.C.cI=function(){return this.loader.cI()}; g.C.dispose=function(){var q;(q=this.J)==null||q.flush();g.c.prototype.dispose.call(this)};g.Z(G9,g.c);G9.prototype.W=function(){this.U++>15||(this.V=!this.V,new uIU(this.loader,this.policy,this.f0,this.GZ,this.V),this.delay.start())}; g.C=uIU.prototype;g.C.RM=function(){}; g.C.rp=function(){}; g.C.Vx=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.Hc()===this.size)this.loader.d8("rqs",this.getInfo());else{var q="net.connect";this.xhr.status>200?q="net.badstatus":this.xhr.Nl()&&(q="net.closed");this.onError(q)}}; g.C.onError=function(q){var a=this;this.loader.handleError(q,this.getInfo());t0("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(w){a.loader.d8("pathprobe",w)},function(w){a.loader.handleError(w.errorCode,w.details)})}; g.C.getInfo=function(){var q=this.timing.Ws();q.shost=vX(this.location.hL);q.pb=this.size;return q};g.Z(kw,g.c); kw.prototype.X=function(q,a){if(q.X){this.X9.isLive?(q=this.X9.cJ&&this.X9.Y?q.V.Su(this.X9.cJ,!1):q.V.tb(Infinity),q.qe=this.qe):q=q.V.Su(0,!1);if(this.F9){var w=this.F9;q.qe===0&&(q.D=w.S)}else q.D=this.J;return q}w=q.U;if(!w.V.cH())return w.V.eD()?(q=ik(this.D,q.V.info.J2,a.V.info.J2,0),q=w.V.zd(w,q)):q=w.V.ww(w),q;var G=w.L-this.loader.getCurrentTime(),k=!w.range||w.W===0&&w.U===0?0:w.range.length-(w.U+w.W),b=w.V;this.UO(q,G)&&k===0&&(this.X9.isManifestless?b=q.V:(b=w.startTime+s0c,w.W&&(b+=w.duration), kK(q,b),w=q.U,b=w.V));b.eD()?(k=this.W,a=ik(this.D,b.info.J2,a.V.info.J2,G,k.Y.length>0&&k.S===0&&this.loader.OE),G=Dd(q),q=w.V.zd(w,a),(a=q.W)&&q.sK.length>1&&(G||q.GZ.W||q.sK[0].V!==w.V?q=w.V.zd(w,q.sK[0].W):(G=q.sK[q.sK.length-1],b=G.W/a,!G.Y&&b<.4&&(q=w.V.zd(w,a-G.W))))):(w.Dh<0&&(a=Gm(w),a.pr=""+q.W.length,this.loader.isSeeking()&&(a.sk="1"),a.snss=w.X,this.loader.d8("nosq",a)),q=b.ww(w));if(this.policy.jt)for(w=g.V(q.sK),a=w.next();!a.done;a=w.next())a.value.type=6;return q}; kw.prototype.UO=function(q,a){if(!Dd(q)||!q.V.cH())return!1;var w=this.W.Tl||BRm(q)||a<=this.policy.IF||this.W.F9;this.logger.debug(function(){return"ready to adapt: "+w+", upgrade pending: "+BRm(q)+", health: "+a}); return w}; kw.prototype.qB=function(){g.c.prototype.qB.call(this)}; var s0c=2/24;g.Z(NC,g.c);NC.prototype.k7=function(q,a,w){var G;var k=((G=this.U)==null?void 0:G.reason)==="m"?"m":this.U&&egc(this,this.U)?this.U.reason:"a";this.loader.k7(new af(q,k,w));lr(this.loader,a,q,!0)}; NC.prototype.xQ=function(q,a){for(var w=g.V(this.jt),G=w.next();!G.done;G=w.next())if(G.value.id===q)return this.D=this.X9.V[q],Md(this.S4)&&(this.F9=!0),q=new af(this.D,a?"t":"m"),a&&(this.X=!0),q;this.W=[];return null}; NC.prototype.cC=function(q,a,w){w=w===void 0?{}:w;this.V.cC(q,a===void 0?!1:a,w)};Pd.prototype.setData=function(q,a,w){var G=this;w=w===void 0?{}:w;if(a==null?0:a.w$)this.sD=tlc(this,a,w),q.Vv=this.GZ.Vv();if(this.kY())return!0;this.data=q;this.V=svl(q,function(k,b){var O;(O=G.Yl)==null||O.QN(k,b)},a==null?void 0:a.W); if(!this.V)return!1;this.U=g.oe(this.V,gml);return!0}; Pd.prototype.kY=function(){return this.requestType===1}; Pd.prototype.zI=function(){var q;return((q=this.Yl)==null?void 0:q.zI())||0}; Pd.prototype.isDecorated=function(){var q;return!((q=this.data)==null||!q.xU)};V6c.prototype.encrypt=function(q){(0,g.Zj)();return this.V.V?LvN(this,q,this.iv):(new g.kW(this.V.U)).encrypt(q,this.iv)}; V6c.prototype.decrypt=function(q,a){(0,g.Zj)();return this.V.V?LvN(this,q,a):(new g.kW(this.V.U)).decrypt(q,a)};g.Z(KC,g.c);KC.prototype.W=function(q,a){if(a){a=a instanceof g.u5?a:dr(this,a);var w;((w=this.V.get(q))==null?void 0:vX(w.location))!==vX(a)&&this.V.set(q,new SVc(a,q))}else this.V.delete(q)}; KC.prototype.load=function(){var q=this,a,w,G,k,b,O,e,N,Y,P;return g.h(function(K){switch(K.U){case 1:a=q.V.get(0);g.ml(K,2);var d;if(d=a&&!q.U)d=vX(a.location),d=q.U===mW(d);if(d){K.Gl(4);break}return g.n(K,M6y(q,q.U?2:0),5);case 5:if(w=K.V)q.W(0,w),i5(w)&&q.W(1,WX(w));case 4:g.xl(K,3);break;case 2:G=g.rc(K);g.Qa(G);if(!q.U){K.Gl(3);break}q.U=!1;return g.n(K,q.load(),7);case 7:return K.return();case 3:if(!q.V7.experiments.Zh("html5_onesie_probe_ec_hosts")){K.Gl(0);break}g.ml(K,9);k=q;b=k.W;O=3;return g.n(K, M6y(q,1),11);case 11:return b.call(k,O,K.V),e=q,N=e.W,Y=4,g.n(K,M6y(q,2),12);case 12:N.call(e,Y,K.V);g.xl(K,0);break;case 9:P=g.rc(K),g.Qa(P),g.Jm(K)}})}; KC.prototype.X=function(){var q=this,a,w;return g.h(function(G){g.tD(q.S);a=g.Wo(q.V7.experiments,"html5_onesie_prewarm_max_lact_ms");if(s9()>=a)return G.return();(w=q.V.get(0))&&nMj(q,w);g.Jm(G)})}; var B8m={isT:0,By2:1,TyK:2,mQQ:3,Hae:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};fgJ.prototype.decrypt=function(q){var a=this,w,G,k,b,O,e;return g.h(function(N){switch(N.U){case 1:if(a.V.length&&!a.V[0].isEncrypted)return N.return();a.U=!0;a.NQ.A8("omd_s");w=new Uint8Array(16);w5()?G=new g.bP(q):k=new g.kW(q);case 2:if(!a.V.length||!a.V[0].isEncrypted){N.Gl(4);break}b=a.V.shift();if(!G){O=k.decrypt(Gp(b.buffer),w);N.Gl(5);break}return g.n(N,G.decrypt(Gp(b.buffer),w),6);case 6:O=N.V;case 5:e=O;for(var Y=0;Y=4)){var a=Q$(this),w=this.xhr;a.rc=w.status;q&&(a.ab=!0);if(w.Jp()){var G="onesie.net";a.msg=w.Jp()}else w.status>=400?G="onesie.net.badstatus":w.ZA()?this.oR||(G="onesie.response.noplayerresponse"):G=w.status===204?"onesie.net.nocontent":"onesie.net.connect";G?this.fail(new g.PY(G,a)):(this.A8("or_fs"),this.rG.Cz((0,g.Zj)(),w.Hc(),0),this.gG(4),this.Ls&&this.d8("rqs",a));this.Ls&&this.d8("ombre", "ok."+ +!G);this.AV=!1;Jr(this);Wvc(this.NQ);if(!this.hc){this.du.stop();var k;(k=this.mK)==null||k.stop()}var b;if(q=(b=this.I3)==null?void 0:hgl(b))for(b=0;b1E3){var q;(q=this.rG)==null||q.eM((0,g.Zj)());q=Q$(this);if(this.V7.TZ()&&this.xhr instanceof FW){var a=this.xhr;q.xrs=a.xhr.readyState;q.xpb=a.V.totalLength;q.xdc=a.Y}this.fail(new g.PY("net.timeout",q))}}else(0,g.Zj)()-this.rG.V>1E4&&((a=this.rG)==null||a.eM((0,g.Zj)()),this.eF());this.isComplete()||this.HD.start()}}; g.C.eF=function(){this.logger.info("Onesie request timed out");this.AV=!1;if(!Jr(this)){var q=Q$(this);q.timeout="1";this.fail(new g.PY("onesie.request",q))}}; g.C.fail=function(q){var a=this;q=dl(q);this.QK?this.aW.q9(q):(this.h5.reject(q),this.QK=!0);Wvc(this.NQ);this.hc||this.du.stop();this.A8("or_fe");var w,G;(w=this.I3)==null||(G=hgl(w))==null||G.forEach(function(k){a.d8("pathprobe",k)}); this.gG(5);this.dispose()}; g.C.isComplete=function(){return this.state>=3}; g.C.S0=function(){return this.state===4}; g.C.G$=function(q){var a,w;return this.isComplete()||!!((a=this.Ff)==null?0:(w=a.get(q))==null?0:w.V)}; g.C.xo=function(){return!1}; g.C.ir=function(){return this.state===5}; g.C.notifySubscribers=function(q){for(var a=0;a102400&&!this.N2&&(this.A8("or100k"),this.N2=!0);if(q.Nj()){var a=q.Wz(),w=a.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+w}); this.Ls&&this.d8("ombrss","len."+w);this.SR.feed(a)}if(this.Ff)for(var G=g.V(this.Ff.keys()),k=G.next();!k.done;k=G.next()){var b=k.value;q=void 0;(q=this.Ff.get(b))==null||q.xJ();this.notifySubscribers(b)}}catch(O){this.fail(O)}}; g.C.YE=function(){return this.rG.requestNumber}; g.C.Uy=function(q){return this.vx.get(q)};g.Z(dHV,g.c);g.C=dHV.prototype;g.C.yz=function(q,a){this.UK=void 0;LhK(this);xHN(this,q,a)}; g.C.aQ=function(q){if(this.V.length===0)return!1;var a=this.V[0];return a instanceof I4?q===this.loader.getCurrentTime()*1E3:!(a instanceof t5&&ZAU(a.info))&&Math.abs(a.CI()-q)<50}; g.C.HM=function(q){this.U=q;this.UK=(0,g.Zj)()+(q.backoffTimeMs||0)}; g.C.m2=function(q,a){if(q.action===void 0){var w=this.aW.E9();w!==void 0&&this.loader.aM(w)}else if(q.action!==0||!this.St)if(q.action===0&&this.policy.Ki&&(q.action=2),q.vg==="sabr.malformed_config"&&this.policy.m7>0&&this.A2++0&&(q.action=2),w={},w.reason=q.vg,w.action=q.action,w.rn=a,q.action){case 1:this.policy.U&&this.S&&this.S.R3(void 0, void 0,w);break;case 0:this.St=!0;this.videoData.fT()&&this.policy.U&&this.S&&this.S.R3(void 0,void 0,w,!1);this.loader.JI(w);break;case 2:Fml(q.vg)!=="sabr.config"&&delete w.reason;this.loader.handleError(Fml(q.vg),w,1);break;case 3:this.policy.w$&&((q=this.X9.S)!=null&&(q.S=!0),this.loader.handleError("sabr.hostfallback",w))}}; g.C.Mr=function(q){q&&(this.loader.d8("sabrctxt",{onsbrctxt:q.type,scp:q.scope,dflt:q.sendByDefault}),q.type&&q.sendByDefault&&this.videoData.BT.add(q.type),q.scope!==2&&(q.type&&this.videoData.sabrContextUpdates.set(q.type,q),this.aW.Mr(q)))}; g.C.BU=function(){}; g.C.RH=function(q,a){if(q.wO!==void 0&&q.gO){var w=q.wO/q.gO;this.audioTrack.X=!1;this.videoTrack.X=!1;if(this.policy.F9||this.policy.EM||this.policy.RE)this.loader.vH.V=!1;var G=this.loader.RP(w,1);this.policy.h2&&this.policy.U&&this.loader.bq(G,a);this.aW.getCurrentTime()!==w&&(a={e1:"sabr_seek",Zk:!0,o6:!0},q.seekSource&&(a.seekSource=q.seekSource),lW(this.loader,w+.1,a))}}; g.C.onSnackbarMessage=function(q){this.aW.publish("onSnackbarMessage",q)}; g.C.mF=function(q,a){this.policy.BT&&this.J&&this.loader.mF(q,a)}; g.C.YP=function(q){q.CD&&q.mO&&Ww(this.X9,q.CD,q.mO);this.policy.Le&&(q.wI&&q.gI&&(this.X9.i5=q.wI/q.gI),q.Rq&&q.vl&&(this.X9.zj=q.Rq/q.vl));Ds(this.videoData)&&!this.videoData.y7&&q.mO&&this.loader.RP(q.mO,1E3);q.Js!=null&&this.aW.m_(q.Js);this.policy.WM&&q.qU&&(q=((0,g.Zj)()-q.qU)/1E3,this.loader.MS.bM(1,q))}; g.C.j8=function(q){this.loader.j8(q)}; g.C.H4=function(q){return this.videoData.BT.has(q)}; g.C.sx=function(q,a,w){this.policy.W&&this.loader.d8("sabrctxtplc",{start:q?q.join("_"):"",stop:a?a.join("_"):"",discard:w?w.join("_"):""});if(q){q=g.V(q);for(var G=q.next();!G.done;G=q.next())this.videoData.BT.add(G.value)}if(a)for(a=g.V(a),q=a.next();!q.done;q=a.next())q=q.value,this.videoData.BT.has(q)&&this.videoData.BT.delete(q);if(w)for(w=g.V(w),a=w.next();!a.done;a=w.next())if(a=a.value,this.videoData.sabrContextUpdates.has(a)&&(this.videoData.sabrContextUpdates.delete(a),a===3&&(this.videoData.Wr= "")),this.policy.J&&this.V.length)for(q=g.V(this.V),G=q.next();!G.done;G=q.next())if(G=G.value,!(G instanceof I4)){var k=void 0;((k=G.NP)==null?void 0:k.type)===a&&(G.NP=void 0)}}; g.C.Jf=function(){}; g.C.IK=function(q){this.X=q}; g.C.AF=function(q){this.L=q}; g.C.KQ=function(q,a){wr(this.policy,q,4,a)}; g.C.J7=function(q){if(q==null?0:q.KD)if(q=q.KD.cS){q=g.V(q);for(var a=q.next();!a.done;a=q.next())if(a=a.value,a.formatId){var w=this.X9.W.get(vG(a.formatId));w&&w.info&&(w.info.debugInfo=a.debugInfo)}}}; g.C.zX=function(q){this.aW.publish("reloadplayer",q)}; g.C.M_=function(){return this.aW.M_()||""}; g.C.zI=function(){var q=un(this.audioTrack,!0)*1E3,a=un(this.videoTrack,!0)*1E3;return Math.min(q,a)}; g.C.QN=function(q,a){this.loader.d8(q,a)}; g.C.Ii=function(q){vUc(this.loader,BK_(this.BT,q))}; g.C.qB=function(){g.c.prototype.qB.call(this);this.U=void 0;xHN(this,!0,"i");this.V=[]};cFJ.prototype.Ib=function(){this.isSeeking=!0;this.V===1&&fsj(this.Y);this.V===0&&this.oG.XC("transitiondetector");this.L=!1};tOJ.prototype.j4=function(q,a){if(this.Y)return DHK(this,a);if(a=eF(q)){var w=a.V;w&&w.W&&w.V&&(q=q.W.length?q.W[0]:null)&&q.state>=2&&!q.ir()&&q.info.qe===0&&(this.Y=q,this.X=w,this.U=a.info,this.L=this.startTimeSecs=Date.now()/1E3,this.D=this.U.startTime)}return NaN}; tOJ.prototype.clear=function(){this.U=this.X=this.Y=null;this.V=this.D=this.L=this.startTimeSecs=NaN;this.W=!1};g.Z(qTl,g.c);qTl.prototype.qB=function(){aZG(this);g.c.prototype.qB.call(this)};var wEN=/[?&]cpn=/;g.Z(R4,g.c);R4.prototype.flush=function(){var q={};this.U&&(q.pe=this.U);this.V.length>0&&(q.pt=this.V.join("."));this.V=[];return q}; R4.prototype.stop=function(){var q=this,a,w,G;return g.h(function(k){if(k.U==1)return g.ml(k,2),g.n(k,(a=q.Y)==null?void 0:a.stop(),4);if(k.U!=2)return(w=k.V)&&q.logTrace(w),g.xl(k,0);G=g.rc(k);q.U=N6j(G.message);g.Jm(k)})}; R4.prototype.logTrace=function(q){this.encoder.reset();this.encoder.add(1);this.encoder.add(q.resources.length);for(var a=g.V(q.resources),w=a.next();!w.done;w=a.next()){w=w.value.replace("https://www.youtube.com/s/","");this.encoder.add(w.length);for(var G=0;G=0?q:g.wk(this.provider),this.y7?Yze.has(this.xw)&&(this.V.size||(this.xw==="PL"?q>=this.U+30:q<=this.F9+30||q>=this.U+1200&&q<=this.F9+86400))&&(g.q_(this,q,"vps",[this.xw]),this.U=q):["PL","B","S"].indexOf(this.xw)>-1&&(this.V.size||q>=this.U+30)&&(g.q_(this,q,"vps",[this.xw]),this.U=q),this.V.size)){this.sequenceNumber===7E3&&g.Qa(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){Gx(this,q);var a=this.provider.aW.gq(); a=g.V(a);for(var w=a.next();!w.done;w=a.next())w=w.value,this.d8(w.key,w.value);a=q;w=this.provider.aW.w6();var G=w.droppedVideoFrames||0,k=w.totalVideoFrames||0,b=G-this.OG,O=k&&!this.uL;G>w.totalVideoFrames||b>5E3?Q$l(this,"html5.badframedropcount","df."+G+";tf."+w.totalVideoFrames):(b>0||O)&&g.q_(this,a,"df",[b]);this.OG=G;this.uL=k;this.S>0&&(g.q_(this,q,"glf",[this.S]),this.S=0);wG.isActive()&&(q=wG.oi(),Object.keys(q).length>0&&this.d8("profile",q));this.yN&&kV(this,"lwnmow");this.provider.V7.TZ()&& this.provider.T("html5_record_now")&&this.d8("now",{wt:(0,g.Zj)()});q={};this.provider.videoData.U&&(q.fmt=this.provider.videoData.U.itag,(a=this.provider.videoData.Y)&&a.itag!==q.fmt&&(q.afmt=a.itag));q.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(q.adcpn=this.adCpn);this.Ij&&(q.addocid=this.Ij);this.contentCpn&&(q.ccpn=this.contentCpn);this.jt&&(q.cdocid=this.jt);this.provider.videoData.cotn&&(q.cotn=this.provider.videoData.cotn);q.el=G4(this.provider.videoData);q.content_v=bi(this.provider.videoData); q.ns=this.provider.V7.F9;q.fexp=iWl(this.provider.V7.experiments).toString();q.cl=(790967629).toString();(a=this.provider.videoData.adFormat||this.adFormat)&&(q.adformat=a);(a=uN(this.provider.videoData))&&(q.live=a);this.provider.videoData.YD()&&(q.drm=1,this.provider.videoData.D&&(q.drm_system=qz8[this.provider.videoData.D.flavor]||0),this.provider.videoData.drmProduct&&(q.drm_product=this.provider.videoData.drmProduct));ac()&&this.provider.videoData.L&&(q.ctt=this.provider.videoData.L,q.cttype= this.provider.videoData.aP,this.provider.videoData.mdxEnvironment&&(q.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(q.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.Vb&&(q.dai_fallback="1")):this.provider.videoData.iK?q.dai="cs":this.provider.videoData.Qf&&(q.dai="disabled");q.seq=this.sequenceNumber++;if(this.provider.videoData.XE){if(a=this.provider.videoData.XE,q&&a)for(a.ns==="3pp"&&(q.ns="3pp"),this.RA.has(a.ns)&& kV(this,"hbps"),a.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=a.shbpslc),this.provider.V7.experiments.Zh("html5_use_server_qoe_el_value")&&this.BT.delete("el"),w=g.V(Object.keys(a)),G=w.next();!G.done;G=w.next())G=G.value,this.BT.has(G)||(q[G]=a[G])}else q.event="streamingstats",q.docid=this.provider.videoData.videoId,q.ei=this.provider.videoData.eventId;this.isEmbargoed&&(q.embargoed="1");Object.assign(q,this.provider.V7.V);if(a=q.seq)a={cpn:this.provider.videoData.clientPlaybackNonce, sequenceNumber:+a,serializedWatchEndpointLoggingContext:this.provider.videoData.Tt2},this.serializedHouseBrandPlayerServiceLoggingContext&&(a.serializedHouseBrandPlayerServiceLoggingContext=LQ(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0),this.provider.videoData.playerResponseCpn&&(a.playerResponseCpn=this.provider.videoData.playerResponseCpn),y$.length&&(a.decoderInfo=y$),this.remoteControlMode&&(a.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(a.remoteConnectedDevices= this.remoteConnectedDevices),a=g.oe(a,Gjc),a=g.AH(a,4),this.V.set("qclc",[a]);q=g.sk("//"+this.provider.V7.oP+"/api/stats/qoe",q);w=a="";G=g.V(this.V.entries());for(k=G.next();!k.done;k=G.next())b=g.V(k.value),k=b.next().value,b=b.next().value,O=void 0,(O=b)!=null&&O.join&&(k="&"+k+"="+b.join(","),k.length>100?w+=k:a+=k);EUl(this,q+a,w.replace(/ /g,"%20"))}this.V.clear()}}; g.C.JT=function(q){this.yN=q}; g.C.mA=function(){if(this.provider.videoData.D){var q=this.provider.videoData.D;kV(this,"eme-"+(q.keySystemAccess?"final":kx(q)?"ms":lE(q)?"ytfp":O1(q)?"safarifp":"nonfinal"))}}; g.C.TY=qm(53);g.C.nF=function(q){this.isEmbargoed=q}; g.C.h4=qm(30);g.C.Pm=qm(36);g.C.onPlaybackRateChange=function(q){var a=g.wk(this.provider);q&&q!==this.L0&&(g.q_(this,a,"rate",[q]),this.L0=q);this.y7||this.reportStats(a)}; g.C.mq=qm(24);g.C.getPlayerState=function(q){if(g.v(q,128))return"ER";if(g.v(q,2048))return"B";if(g.v(q,512))return"SU";if(g.v(q,16)||g.v(q,32))return"S";if(q.isOrWillBePlaying()&&g.v(q,64))return"B";var a=PIB[pW(q)];g.Nh(this.provider.V7)&&a==="B"&&this.provider.aW.getVisibilityState()===3&&(a="SU");a==="B"&&g.v(q,4)&&(a="PB");return a}; g.C.MK=function(q){var a=g.wk(this.provider);g.q_(this,a,"vfi",[q===0?"":""+q,q===0?"A":"M"])}; g.C.qB=function(){g.c.prototype.qB.call(this);g.Pr(this.UK);g.Pr(this.N1)}; g.C.Ec=function(q){this.isOffline=q;g.q_(this,g.wk(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.C.d8=function(q,a,w){var G=this.C0.indexOf(q)!==-1;G||this.C0.push(q);if(!w||!G){var k=typeof a!=="string"?YG(a):a;k=xTc(k);if(!w&&!/^t[.]/.test(k)){var b=g.wk(this.provider)*1E3;k="t."+b.toFixed()+";"+k}aO(this,"ctmp",q+":"+k);this.logger.debug(function(){return"ctmp "+q+" "+k}); VwN(this);return b}}; g.C.e8=function(q,a,w){this.D={bu7:Number(this.d8("glrem",{nst:q.toFixed(),rem:a.toFixed(),ca:+w})),A3:q,iul:a,isAd:w}}; g.C.Wh=function(q,a,w){g.q_(this,g.wk(this.provider),"ad_playback",[q,a,w])}; g.C.EU=function(q,a){var w=g.wk(this.provider)*1E3;aO(this,"daism","t."+w.toFixed(0)+";smw."+(q*1E3).toFixed(0)+";smo."+(a*1E3).toFixed(0))}; g.C.resume=function(){var q=this;isNaN(this.UK)?Jcf(this):this.UK=g.NL(function(){q.reportStats()},1E4)}; var Cv={},PIB=(Cv[5]="N",Cv[-1]="N",Cv[3]="B",Cv[0]="EN",Cv[2]="PA",Cv[1]="PL",Cv[-1E3]="ER",Cv[1E3]="N",Cv),Yze=new Set(["PL","B","S"]),y$=[];g.Z(g.lA,g.c);g.C=g.lA.prototype;g.C.initialize=function(q,a,w){this.logger.debug(function(){return"Initialized, t="+q}); q=q||0;this.policy.V||(a=nDV(this.V),WXU(this.aW,new af(a.video,a.reason)),this.aW.Xl(new af(a.audio,a.reason)));this.policy.V&&Rjy(this);this.X9.isManifestless&&kuG(this.D);this.X&&zfm(this.X,this.videoTrack.V);a=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var G=!this.X9.isManifestless;this.policy.TB&&(G=G||this.X9.pT);if(!this.policy.f7||this.policy.N1)this.currentTime=G?q:a;this.policy.F9&&this.seek(this.getCurrentTime(),{}).AK(function(){}); if(this.policy.V){var k;((k=this.F9)==null?0:Khl(k,this.M_()||""))&&HDU(this)&&fZf(this,this.videoTrack)&&fZf(this,this.audioTrack)&&(BMJ(this.U,this.F9),this.policy.D&&STc(this))}else this.y7&&(ccJ(this,this.videoTrack),ccJ(this,this.audioTrack),H0m(this.y7),delete this.y7);w?(UTj(this,!1),g.tD(this.X2)):(w=this.getCurrentTime()===0,Oy(this.D,this.videoTrack,this.videoTrack.V,w),Oy(this.D,this.audioTrack,this.audioTrack.V,w),this.policy.V&&spy(this.U,!0),this.policy.F9||this.seek(this.getCurrentTime(), {}).AK(function(){}),this.timing.tick("gv")); (this.X9.cJ||this.X9.YL||this.X9.jt||this.X9.yN||this.X9.N1)&&this.aW.Ta(this.X9)}; g.C.resume=function(){if(this.isSuspended||this.OE){this.logger.debug("Resumed.");this.tX=this.OE=this.isSuspended=!1;try{this.j4()}catch(q){g.mQ(q)}}}; g.C.PY=function(){return!this.policy.M9}; g.C.HP=function(q,a){q=q===void 0?!1:q;a=a===void 0?!1:a;this.logger.debug("detaching media source");IZf(this);this.aW.Vp()&&(this.L=NaN);q?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.EK&&this.d8("loader",{setsmb:1}),this.policy.jt=!0,this.xL()):(UTj(this,!1),a||this.xL())}; g.C.setAudioTrack=function(q,a,w){w=w===void 0?!1:w;if(!this.t2()){var G=!isNaN(a);w&&G&&(this.audioTrack.UK=Date.now(),this.policy.tp&&(this.IW=!0));if(this.policy.V){var k=this.Y.xQ(q.id,G);this.logger.debug(function(){return"Logging new audio format: "+k.V.info.id}); this.aW.Xl(k)}else{var b=Lol(this.V,q.id,G);this.logger.debug(function(){return"Logging new audio format: "+b.audio.info.id}); this.aW.Xl(new af(b.audio,b.reason))}G?(this.yN=Date.now(),w=this.audioTrack.V.index.uT(a),this.d8("setAudio",{id:q.id,cmt:a,sq:w}),w>=0&&(q=this.policy.Qf?w+1:w,this.policy.V&&this.yz(!0,"mosaic"),tL(this.audioTrack,q,NaN,NaN),!this.policy.QE&&this.X9.isLive&&ij(this.X9,q,!1))):this.aW.Uw()}}; g.C.setPlaybackRate=function(q){q!==this.J.getPlaybackRate()&&this.J.setPlaybackRate(q)}; g.C.eO=function(q){var a=this.U.X;this.U.IK(q);this.d8("scfidc",{curr:vG(a),"new":vG(q)});q&&vG(q)!==vG(a)&&(this.yz(!0,"caption change"),this.j4())}; g.C.EG=function(q){this.U.AF(q)}; g.C.k7=function(q){var a=q.V.info.t$();this.logger.debug(function(){return"New "+(a?"audio":"video")+" format from SABR: "+gD(q.V.info)}); a?this.aW.Xl(q):WXU(this.aW,q)}; g.C.Ii=function(q){gK(q.sK[q.sK.length-1])&&vUc(this,BK_(this.V,q.sK[0].V))}; g.C.g2=function(){return this.aW.g2()}; g.C.dc=function(){return this.aW.dc()}; g.C.j8=function(q){this.aW.B().TZ()&&this.d8("sps",{status:q.bR||""});if(q.bR===1)this.aW.videoData.dw=0;else if(q.bR===2||q.bR===3){var a=!1;if(q.bR===3){a=this.aW.Em();var w;this.h8=(w=q.RL7)!=null?w:Infinity;this.aW.videoData.dw=a+1;(a=GuJ(this))&&this.qr(!0)}this.aW.MV(!0,a)}}; g.C.xp=function(){return this.aW.xp()}; g.C.Me=function(){return this.aW.Me()}; g.C.gP=function(q){this.aW.gP(q)}; g.C.rS9=function(){var q,a=(q=this.aW.Z0())==null?void 0:q.getCurrentTime();a?this.aW.d8("rms",{cta:a}):g.tD(this.Nh)}; g.C.j4=function(){twN(this);if(this.w8&&Fb(this.w8)&&!this.w8.vI()&&(!this.policy.f7||isFinite(this.getCurrentTime()))){var q=HH(this.videoTrack);q=this.policy.GX&&q&&q.Dw();this.X9.isManifestless&&this.X9.Y&&uj(this.X9)?(this.L=uj(this.X9),this.w8.SD(this.L)):Dw(this.X9)&&!q?isNaN(this.L)?(this.L=this.getCurrentTime()+3600,this.w8.SD(this.L)):this.L<=this.getCurrentTime()+1800&&(this.L=Math.max(this.L+1800,this.getCurrentTime()+3600),this.w8.SD(this.L)):this.w8.isView||(q=Math.max(this.audioTrack.getDuration(), this.videoTrack.getDuration()),(!isFinite(this.L)||this.L!==q)&&q>0&&(this.w8.SD(q),this.L=q))}if(!this.t2())if(Ia(this.X9)&&this.X9.ir()){var a=this.X9;this.handleError("manifest.net.retryexhausted",a.h2?{rc:a.eZ}:{rc:a.eZ.toString()},1)}else if(this.policy.V)a:{try{mHc(this.U);this.X9.isManifestless&&this.policy.D&&bW(this.vH);var w;((w=this.w8)==null?0:E2(w))&&this.F6();spy(this.U)}catch(O){g.Qa(O);a=O;if(a.message.includes("changeType")){this.d8("ctype",{exp:a.name,msg:a.message,s:a.stack});break a}this.handleError("fmt.unplayable", {exp:a.name,msg:a.message,s:a.stack,trg:"sabrslicerqt"},1)}dsV(this);g.tD(this.h2)}else if(!this.X9.U||!MEj(this.videoTrack)&&!MEj(this.audioTrack)||(this.videoTrack.D||this.audioTrack.D)&&this.policy.uF?w=!1:(this.xL(),this.aW.seekTo(Infinity,{e1:"checkLoaderTracksSync",RP:!0}),w=!0),!w){twN(this);this.X9.isManifestless&&(hjK(this.videoTrack),hjK(this.audioTrack),bW(this.vH),(w=eF(this.videoTrack))&&w.V&&(w=w.V.W&&!this.policy.OT,this.d8(w===this.policy.X.Oj?"strm":"strmbug",{strm:w,sfmp4:this.policy.X.Oj, dfs:this.policy.OT},!0)));if(this.w8)this.F6();else if(this.policy.Y){var G;w=!1;if(this.policy.jT){var k;q=g.V([this.videoTrack,this.audioTrack]);for(k=q.next();!k.done;k=q.next()){var b=k.value;for(k=eF(b);k&&b.vM()!==HH(b);k=eF(b))b.Lv(k);w=w||!!k}}else(a=eF(this.videoTrack))&&this.videoTrack.Lv(a),(G=eF(this.audioTrack))&&this.audioTrack.Lv(G);jA(this.videoTrack)&&jA(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(a||G||w)&&ir(this)}pE_(this);Oy(this.D,this.videoTrack, this.videoTrack.V,!1);Oy(this.D,this.audioTrack,this.audioTrack.V,!1);this.policy.JP||iDl(this,this.videoTrack,this.audioTrack);izl(this.D,this.videoTrack,this.audioTrack);izl(this.D,this.audioTrack,this.videoTrack);dsV(this);this.X&&(a=this.X,a.Y?(G=a.L+a.policy.l_,a.W||(G=Math.min(G,a.startTimeSecs+a.policy.FB)),a=Math.max(0,G*1E3-Date.now())):a=NaN,isNaN(a)||g.tD(this.C0,a));g.tD(this.h2)}}; g.C.JI=function(q){this.aW.JI(q)}; g.C.F6=function(){var q=this;if(this.w8){var a=this.w8.V,w=this.w8.U;Lbj(this,this.audioTrack);Lbj(this,this.videoTrack);var G=RPm(this);if(G){if(this.policy.sE){if(!a.il()){var k=eF(this.audioTrack);if(k){if(!OO(this,this.audioTrack,a,k.info))return;g_U(this,this.audioTrack,a,k)}}if(!w.il()&&(k=eF(this.videoTrack))){if(!OO(this,this.videoTrack,w,k.info))return;g_U(this,this.videoTrack,w,k)}}this.UK||(this.UK=(0,g.Zj)(),this.logger.debug(function(){return"Appends pause start "+q.UK+" reason "+G}), this.policy.W&&this.d8("apdps",{r:G}))}else if(this.UK&&(DTl(this,this.UK),this.UK=0),ycl(this),k=!1,bmU(this,this.videoTrack,w)&&(k=!0,RtU(this.timing),awl(this.timing)),this.w8&&!this.w8.A$()&&(bmU(this,this.audioTrack,a)&&(k=!0,yem(this.timing),wwl(this.timing)),!this.t2()&&this.w8))!this.policy.M9&&jA(this.videoTrack)&&jA(this.audioTrack)&&Fb(this.w8)&&!this.w8.vI()&&(w=!1,w=HH(this.audioTrack).V,w=w===this.X9.V[w.info.id])&&(this.logger.debug("Setting EOS"),Ukc(this.w8),xxV(this.schedule),this.T6("e")), k&&!this.w8.isAsync()&&ir(this)}}; g.C.T6=function(q){if(this.policy.E5&&this.X9.isManifestless){var a=this.videoTrack.V;if(a){var w=a.index.P5(),G=-1,k=-1;a.index instanceof Tm&&(G=a.index.H7(),k=a.index.DG());this.aW.T6(q,w,G,k)}}}; g.C.b3=function(q){var a,w=q===((a=this.w8)==null?void 0:a.V)?this.audioTrack:this.videoTrack,G;if((G=eF(w))==null?0:G.isLocked){if(this.aW.B().TZ()){var k;this.d8("eosl",{ounlock:(k=eF(w))==null?void 0:k.info.c5()})}var b;Pk_(this,q===((b=this.w8)==null?void 0:b.V))}var O;if(this.policy.tp&&q===((O=this.w8)==null?void 0:O.V)&&this.VN){a=this.VN-this.getCurrentTime();var e;this.aW.d8("asl",{l:a,xtag:(e=HH(this.audioTrack))==null?void 0:e.V.info.V});this.IW=!1;this.VN=0}q.Eo()&&q.sB().length===0&& (q.WP(),this.w8&&!this.w8.Eo()&&(this.aW.B().TZ()&&this.aW.d8("rms",{ld:"seek"}),this.w8.L=performance.now(),this.aW.EC(),this.aW.B().TZ()&&g.tD(this.Nh)));var N;(N=w.J)!=null&&Ti(N,0);this.policy.OQ?w8_(this):this.j4()}; g.C.xB9=function(q){if(this.w8){var a=HH(q===this.w8.V?this.audioTrack:this.videoTrack);if(q=q.Oy())for(var w=0;w5&&e.F9.shift();a=a.Dh;var N;if((N=this.aW.getVideoData())==null?0:N.enableServerStitchedDai)N=pmU(this.audioTrack,a),w=pmU(this.videoTrack,a),N!==0&&w!==0&&N!==w&&this.handleError("ssdai.avsync",{sq:a,a:N,v:w},0)}}; g.C.Hk=function(q,a,w,G){q.info.video&&this.W.Hk(a,w,G)}; g.C.bB=function(q){this.V.bB(q)}; g.C.Mo=qm(12);g.C.Xu=function(){if(g.v(this.aW.getPlayerState(),8)){var q,a,w=(a=(q=this.aW.Z0())==null?void 0:q.getCurrentTime())!=null?a:this.aW.getCurrentTime(),G;(G=this.OA)==null||UHN(G,w)}var k;(k=this.w$)==null||g.tD(k)}; g.C.Fd=function(){return this.videoTrack.X||this.audioTrack.X}; g.C.seek=function(q,a){if(this.t2())return nT();if(this.Fd())return nT("seeking to head");if(this.policy.F9&&!isFinite(q))return hZc(this.vH),g.rH(Infinity);twN(this);Rjy(this);this.policy.V||pE_(this,q);this.w8&&this.w8.V&&this.w8.U&&!this.aW.getVideoData().tC&&(this.w8.V.isLocked()||this.w8.U.isLocked())&&this.aW.Uw({reattachOnLockedBuffer:1,vsb:""+this.w8.U.isLocked(),asb:""+this.w8.V.isLocked()});var w=this.getCurrentTime(),G=this.vH.seek(q,a);if(!this.policy.f7||this.policy.N1)this.currentTime= G;qt(this.W,q,w,this.policy.AT&&!a.Zk);ir(this);return g.rH(G)}; g.C.aQ=function(q){return this.policy.V&&this.U.aQ(q)}; g.C.H4=function(q){return this.U.H4(q)}; g.C.yz=function(q,a){this.U.yz(q,a)}; g.C.getCurrentTime=function(){if(this.policy.f7){var q=this.g$()||0;return this.aW.getCurrentTime(!0)-q}return this.currentTime}; g.C.S9=function(){return this.audioTrack.V.info}; g.C.xA=function(){return this.videoTrack.V.info}; g.C.lC=function(){return this.audioTrack.V.info.K7}; g.C.Mk=function(){return this.videoTrack.V.info.K7}; g.C.qB=function(){try{this.HP(),a2(this.audioTrack),a2(this.videoTrack),Rf(this.audioTrack),Rf(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.c.prototype.qB.call(this)}catch(q){g.mQ(q)}}; g.C.handleError=function(q,a,w){w=w===void 0?0:w;var G=Kf(w);q==="fmt.unplayable"&&this.X9.isLive&&(this.policy.sE=!1,zm(this.X9));a=new g.PY(q,a,w);g.lV(this);YG(a.details);this.aW.handleError(a);q!=="html5.invalidstate"&&a.errorCode!=="fmt.unplayable"&&q!=="fmt.unparseable"&&G&&this.dispose()}; g.C.Kk=function(){var q=HH(this.audioTrack),a=HH(this.videoTrack);q={lct:this.getCurrentTime().toFixed(3),lsk:this.vH.isSeeking(),lmf:this.V.V.isLocked(),lbw:uE(this.schedule).toFixed(3),lhd:oW(this.schedule).toFixed(3),lst:((this.schedule.X.CO()||0)*1E9).toFixed(3),laa:q?q.c5():"",lva:a?a.c5():"",lar:this.audioTrack.U?this.audioTrack.U.c5():"",lvr:this.videoTrack.U?this.videoTrack.U.c5():"",laq:""+of(this.audioTrack),lvq:""+of(this.videoTrack)};this.w8&&!this.w8.A$()&&this.w8.V&&this.w8.U&&(q.lab= wD(this.w8.V.sB()),q.lvb=wD(this.w8.U.sB()));this.UK&&(q.lapt=((0,g.Zj)()-this.UK).toFixed(0),q.lapr=RPm(this));this.Tl&&(q.lapmabht=((0,g.Zj)()-this.Tl).toFixed(0),q.lapmabh=G3(this,this.audioTrack).toFixed(0));this.St&&(q.lapmvbht=((0,g.Zj)()-this.St).toFixed(0),q.lapmvbh=G3(this,this.videoTrack).toFixed(0));this.le&&(q.lapsdai=((0,g.Zj)()-this.le).toFixed(0));return q}; g.C.xL=function(){try{this.policy.V&&this.U.yz(!1,"pending"),this.audioTrack.xL(),this.videoTrack.xL()}catch(q){g.mQ(q)}this.policy.Y=""}; g.C.hk=function(){return zd(this.J)}; g.C.d8=function(q,a,w){this.aW.d8(q,a,w===void 0?!1:w)}; g.C.M_=function(){return this.aW.M_()}; g.C.RP=function(q,a){q/=a;isNaN(this.timestampOffset)&&BrU(this,q-Math.min(q,this.policy.Fq));return(q-this.timestampOffset)*a}; g.C.g$=function(){return this.timestampOffset}; g.C.isSeeking=function(){return this.vH.isSeeking()}; g.C.Xz=function(){this.W.Xz()}; g.C.cC=function(q,a,w){a=a===void 0?!1:a;w=w===void 0?{}:w;this.policy.V?this.Y.cC(q,a,w):this.V.cC(q,a,w)}; g.C.Zm=function(q,a){if(this.policy.U&&this.policy.z9&&this.isSeeking())return this.d8("sdai",{ignoreSkip:"1",t:q.toFixed(3)}),!1;if(this.S&&this.W.Zm(q,this.S)){if(this.policy.h2&&this.policy.U){var w=this.videoTrack.V.index.uT(q),G;(G=this.jt)==null||G.Dv(q,w)}BrU(this,this.timestampOffset-a);ir(this);this.policy.U&&(zm(this.X9),Rf(this.audioTrack),Rf(this.videoTrack),this.xL());return!0}a=this.videoTrack.V.index.uT(q);this.handleError("ad.skipfailed",{dec:!!this.S,t:q.toFixed(3),sq:a});return!1}; g.C.getManifest=function(){return this.X9}; g.C.isOffline=function(){return!!this.aW.getVideoData().cotn}; g.C.X8=function(q,a){this.aW.X8(q,a)}; g.C.Qz=function(q){if(this.policy.V)this.U.yz(!0,"utc"),this.j4();else{var a=this.aW.getVideoData().D9;if(a){var w=this.D;w.EP=q;w.D9=a;eD(this)}}}; g.C.aM=function(q){this.videoTrack.X=!1;this.audioTrack.X=!1;this.vH.V=!1;this.aW.aM(q)}; g.C.rO=function(q){this.vH.rO(q-this.g$())}; g.C.nK=function(){this.aW.nK()}; g.C.qr=function(q){q!==this.policy.J4&&((this.policy.J4=q)||this.j4())}; g.C.Uw=function(q){this.aW.Uw(q)}; g.C.JT=function(q){this.aW.JT(q)}; g.C.iN=function(q,a,w){var G;(G=this.jt)==null||G.iN(q,a,w)}; g.C.bq=function(q,a){var w;(w=this.jt)==null||w.bq(q,a)}; g.C.Em=function(){return this.aW.Em()}; g.C.mF=function(q,a){if(this.policy.BT){var w;(w=this.jt)==null||w.mF(q,this.timestampOffset,a,this.S||void 0)}};g.C=g.ex.prototype;g.C.Nk=function(q,a,w,G,k,b){return this.T0.Nk(q,a,w,G,k,b)}; g.C.Yy=function(q,a,w,G,k,b){return this.T0.Yy(q,a,w,G,k,b)}; g.C.QG=function(q){return this.T0.QG(q)}; g.C.jK=function(q){this.T0.jK(q)}; g.C.R3=function(q,a,w,G){return this.T0.R3(q,a,w,G)}; g.C.Xz=function(){this.T0.Xz()}; g.C.Dv=function(q,a){this.T0.Dv(q,a)}; g.C.Z_=function(){this.T0.Z_()}; g.C.c7=qm(56);g.C.fF=function(q,a,w){this.T0.fF(q,a,w)}; g.C.IM=qm(59);g.C.B4=function(q,a,w,G,k,b,O,e,N){this.T0.B4(q,a,w,G,k,b,O,e,N)}; g.C.a6=function(q){this.T0.a6(q)}; g.C.Gk=function(q){return this.T0.Gk(q)}; g.C.GV=function(q){return this.T0.GV(q)}; g.C.F0=function(q){return this.T0.F0(q)};g.Z(N_,g.ya);g.Z(YV,N_);YV.prototype.L=function(q,a){if(q&&a){var w=Number(V6(q,"cpi"))*1+1;isNaN(w)||w<=0||wthis.W&&(this.W=w,g.KH(this.V)||(this.V={},this.Y.stop(),this.U.stop())),this.V[a]=q,g.tD(this.U))}}; YV.prototype.D=function(){for(var q=g.V(Object.keys(this.V)),a=q.next();!a.done;a=q.next()){var w=a.value;a=this.publish;for(var G=this.W,k=g.es(this.V[w]),b=[],O=g.V(k[6].split("&")),e=O.next();!e.done;e=O.next())e=e.value,e.indexOf("cpi=")===0?b.push("cpi="+G.toString()):e.indexOf("ek=")===0?b.push("ek="+g.x1(w)):b.push(e);k[6]="?"+b.join("&");w="skd://"+k.slice(2).join("");k=w.length*2;G=new Uint8Array(k+4);G[0]=k%256;G[1]=(k-G[0])/256;for(k=0;k0)for(var w=g.V(this.V),G=w.next();!G.done;G=w.next())if(a===G.value.info.cryptoPeriodIndex){a=!0;break a}a=!1}if(!a){a=(0,g.Zj)();a:{w=q.cryptoPeriodIndex;if(!isNaN(w)){G=g.V(this.W.values());for(var k=G.next();!k.done;k=G.next())if(Math.abs(k.value.cryptoPeriodIndex-w)<=1){w=!0;break a}}w=!1}w?(w=q.V,w=Math.max(0,Math.random()*((isNaN(w)?120:w)-30))*1E3):w=0;this.publish("log_qoe",{wvagt:"delay."+w,cpi:q.cryptoPeriodIndex,reqlen:this.V.length}); w<=0?hLJ(this,q):(this.V.push({time:a+w,info:q}),g.tD(this.U,w))}}; P7.prototype.qB=function(){this.V=[];N_.prototype.qB.call(this)};var ZY={},pdj=(ZY.DRM_TRACK_TYPE_AUDIO="AUDIO",ZY.DRM_TRACK_TYPE_SD="SD",ZY.DRM_TRACK_TYPE_HD="HD",ZY.DRM_TRACK_TYPE_UHD1="UHD1",ZY);g.Z(HCl,g.c);g.Z(Xdl,g.ya);g.C=Xdl.prototype;g.C.fb=function(q){var a=this;if(!(this.t2()||q.size<=0)){var w={};q.forEach(function(G,k){var b=bE(a.U)?k:G;k=new Uint8Array(bE(a.U)?G:k);bE(a.U)&&w7c(k);G=g.AH(k,4);w7c(k);k=g.AH(k,4);a.V[G]?a.V[G].status=b:a.V[k]?a.V[k].status=b:a.V[G]={type:"",status:b};gVU(a,a.V[G].type,w)}); yrU(this,",");K6(this,{onkeystatuschange:1});this.status="kc";this.publish("keystatuseschange",this)}}; g.C.error=function(q,a,w,G){this.t2()||(this.publish("licenseerror",q,a,w,G),q==="drm.provision"&&(q=(Date.now()-this.L)/1E3,this.L=NaN,this.publish("ctmp","provf",{et:q.toFixed(3)})));Kf(a)&&this.dispose()}; g.C.shouldRetry=function(q,a){return!q&&this.requestNumber===a.requestNumber}; g.C.qB=function(){this.V={};g.ya.prototype.qB.call(this)}; g.C.Kk=function(){var q={ctype:this.S.contentType||"",length:this.S.initData.length,requestedKeyIds:this.y7,cryptoPeriodIndex:this.cryptoPeriodIndex};this.W&&(q.keyStatuses=this.V);return q}; g.C.getInfo=function(){var q=this.Y.join();if(dk(this)){var a=new Set,w;for(w in this.V)this.V[w].status!=="usable"&&a.add(this.V[w].type);q+="/UKS."+Array.from(a)}return q+="/"+this.cryptoPeriodIndex}; g.C.Do=function(){return this.url};g.Z($V,g.c);g.C=$V.prototype;g.C.h1=function(q){if(this.D){var a=q.messageType||"license-request";this.D(new Uint8Array(q.message),a)}}; g.C.fb=function(){this.X&&this.X(this.V.keyStatuses)}; g.C.onClosed=function(){this.t2()||g.Hr("xboxone")&&this.W&&this.W("closedShouldNotRetry")}; g.C.GG=function(q){this.D&&this.D(q.message,"license-request")}; g.C.cf=function(q){if(this.W){if(this.U){var a=this.U.error.code;q=this.U.error.systemCode}else a=q.errorCode,q=q.systemCode;this.W("t.prefixedKeyError;c."+a+";sc."+q,a,q)}}; g.C.Ym=function(){this.L&&this.L()}; g.C.update=function(q){var a=this;if(this.V)return this.V.update(q).then(null,Rk(function(w){kxU(a,"t.update",w)})); this.U?this.U.update(q):this.element.addKey?this.element.addKey(this.S.keySystem,q,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.S.keySystem,q,this.initData,this.sessionId);return AG()}; g.C.qB=function(){this.V&&(this.J?this.V.close().catch(g.Qa):this.V.close());this.element=null;g.c.prototype.qB.call(this)};g.Z(sO,g.c);g.C=sO.prototype;g.C.setServerCertificate=function(){return this.U.setServerCertificate?this.V.flavor==="widevine"&&this.V.KF?this.U.setServerCertificate(this.V.KF):eE(this.V)&&this.V.le?this.U.setServerCertificate(this.V.le):null:null}; g.C.createSession=function(q,a){var w=q.initData;if(this.V.keySystemAccess){a&&a("createsession");var G=this.U.createSession();lE(this.V)?w=lIf(w,this.V.le):eE(this.V)&&(w=MDV(w)||new Uint8Array(0));a&&a("genreq");q=G.generateRequest(q.contentType,w);var k=new $V(null,null,null,G,null,this.X);q.then(function(){a&&a("genreqsuccess")},Rk(function(O){kxU(k,"t.generateRequest",O)})); return k}if(kx(this.V))return Nkl(this,w);if(O1(this.V))return eWj(this,w);if((G=this.element)==null?0:G.generateKeyRequest)this.element.generateKeyRequest(this.V.keySystem,w);else{var b;(b=this.element)==null||b.webkitGenerateKeyRequest(this.V.keySystem,w)}return this.Y=new $V(this.element,this.V,w,null,null,this.X)}; g.C.Cr=function(q){var a=YOG(this,q);a&&a.GG(q)}; g.C.x9=function(q){var a=YOG(this,q);a&&a.cf(q)}; g.C.Pj=function(q){var a=YOG(this,q);a&&a.Ym(q)}; g.C.getMetrics=function(){var q=null;if(this.U&&this.U.getMetrics)try{q=this.U.getMetrics()}catch(a){}return q}; g.C.qB=function(){this.W=this.U=null;var q;(q=this.Y)==null||q.dispose();q=g.V(Object.values(this.L));for(var a=q.next();!a.done;a=q.next())a.value.dispose();this.L={};g.c.prototype.qB.call(this);delete this.element};g.C=FK.prototype;g.C.get=function(q){q=this.findIndex(q);return q!==-1?this.values[q]:null}; g.C.remove=function(q){q=this.findIndex(q);q!==-1&&(this.keys.splice(q,1),this.values.splice(q,1))}; g.C.removeAll=function(){this.keys=[];this.values=[]}; g.C.set=function(q,a){var w=this.findIndex(q);w!==-1?this.values[w]=a:(this.keys.push(q),this.values.push(a))}; g.C.findIndex=function(q){return g.E6(this.keys,function(a){return g.zJ(q,a)})};g.Z(d_N,g.ya);g.C=d_N.prototype;g.C.GZe=function(q){this.Qp({onecpt:1});q.initData&&sON(this,new Uint8Array(q.initData),q.initDataType)}; g.C.hy2=function(q){this.Qp({onndky:1});sON(this,q.initData,q.contentType)}; g.C.l7=function(q){this.Qp({onneedkeyinfo:1});this.V7.T("html5_eme_loader_sync")&&(this.X.get(q.initData)||this.X.set(q.initData,q));$_N(this,q)}; g.C.NF=function(q){this.W.push(q);C6(this)}; g.C.createSession=function(q){var a=CAf(this)?D5y(q):g.AH(q.initData);this.U.get(a);this.jt=!0;q=new Xdl(this.videoData,this.V7,q,this.drmSessionId);this.U.set(a,q);q.subscribe("ctmp",this.J3,this);q.subscribe("keystatuseschange",this.fb,this);q.subscribe("licenseerror",this.h9,this);q.subscribe("newlicense",this.Qs,this);q.subscribe("newsession",this.ys,this);q.subscribe("sessionready",this.TG,this);q.subscribe("fairplay_next_need_key_info",this.OS,this);this.V7.T("html5_enable_vp9_fairplay")&&q.subscribe("qualitychange", this.Je,this);q.subscribe("sabrlicenseconstraint",this.Fy9,this);uMJ(q,this.Y)}; g.C.Qs=function(q){this.t2()||(this.Qp({onnelcswhb:1}),q&&!this.heartbeatParams&&(this.heartbeatParams=q,this.publish("heartbeatparams",q)))}; g.C.ys=function(){this.t2()||(this.Qp({newlcssn:1}),this.W.shift(),this.jt=!1,C6(this))}; g.C.TG=function(){if(kx(this.V)&&(this.Qp({onsnrdy:1}),this.L7--,this.L7===0)){var q=this.F9,a,w;(a=q.element)==null||(w=a.msSetMediaKeys)==null||w.call(a,q.W)}}; g.C.fb=function(q){if(!this.t2()){this.EK||(this.EK=!0,this.V7.TZ()&&Z6V(this));this.Qp({onksch:1});var a=this.Je;if(!dk(q)&&g.jI&&q.U.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var w="large";else{w=[];var G=!0;if(dk(q))for(var k=g.V(Object.keys(q.V)),b=k.next();!b.done;b=k.next())b=b.value,q.V[b].status==="usable"&&w.push(q.V[b].type),q.V[b].status!=="unknown"&&(G=!1);if(!dk(q)||G)w=q.Y;w=RLK(w)}a.call(this,w);if(!dk(q))for(a={},w=g.V(q.Y),G=w.next();!G.done;G=w.next())gVU(q, G.value,a);this.videoData.authorizedFormats=q.authorizedFormats;this.publish("keystatuseschange",q)}}; g.C.J3=function(q,a){this.t2()||this.publish("ctmp",q,a)}; g.C.OS=function(q,a){this.t2()||this.publish("fairplay_next_need_key_info",q,a)}; g.C.h9=function(q,a,w,G){this.t2()||(this.videoData.T("html5_log_drm_metrics_on_error")&&Z6V(this),this.publish("licenseerror",q,a,w,G))}; g.C.LS=function(){return this.S}; g.C.Je=function(q){var a=g.Av("auto",q,!1,"l");if(this.videoData.J4){if(this.S.equals(a))return}else if(YuU(this.S,q))return;this.S=a;this.publish("qualitychange");this.Qp({updtlq:q})}; g.C.Fy9=function(q){this.videoData.sabrLicenseConstraint=q}; g.C.qB=function(){this.V.keySystemAccess&&this.element&&(this.y7?this.element.setMediaKeys(null).catch(g.Qa):this.element.setMediaKeys(null));this.element=null;this.W=[];for(var q=g.V(this.U.values()),a=q.next();!a.done;a=q.next())a=a.value,a.unsubscribe("ctmp",this.J3,this),a.unsubscribe("keystatuseschange",this.fb,this),a.unsubscribe("licenseerror",this.h9,this),a.unsubscribe("newlicense",this.Qs,this),a.unsubscribe("newsession",this.ys,this),a.unsubscribe("sessionready",this.TG,this),a.unsubscribe("fairplay_next_need_key_info", this.OS,this),this.V7.T("html5_enable_vp9_fairplay")&&a.unsubscribe("qualitychange",this.Je,this),a.dispose();this.U.clear();this.L.removeAll();this.X.removeAll();this.heartbeatParams=null;g.ya.prototype.qB.call(this)}; g.C.Kk=function(){for(var q={systemInfo:this.V.Kk(),sessions:[]},a=g.V(this.U.values()),w=a.next();!w.done;w=a.next())q.sessions.push(w.value.Kk());return q}; g.C.getInfo=function(){return this.U.size<=0?"no session":""+this.U.values().next().value.getInfo()+(this.D?"/KR":"")}; g.C.Qp=function(q,a){a=a===void 0?!1:a;this.t2()||(YG(q),(this.V7.TZ()||a)&&this.publish("ctmp","drmlog",q))};g.Z(QOG,g.c);g.C=QOG.prototype;g.C.nh=function(){return!!this.ob}; g.C.s9=function(){return this.U}; g.C.handleError=function(q){var a=this;nVc(this,q);if((q.errorCode!=="html5.invalidstate"&&q.errorCode!=="fmt.unplayable"&&q.errorCode!=="fmt.unparseable"||!rPU(this,q.errorCode,q.details))&&!fIK(this,q)){if(this.cT.F9!=="yt"&&hWf(this,q)&&this.videoData.Ja&&(0,g.Zj)()/1E3>this.videoData.Ja&&this.cT.F9==="hm"){var w=Object.assign({e:q.errorCode},q.details);w.stalesigexp="1";w.expire=this.videoData.Ja;w.init=this.videoData.DP/1E3;w.now=(0,g.Zj)()/1E3;w.systelapsed=((0,g.Zj)()-this.videoData.DP)/1E3; q=new g.PY(q.errorCode,w,2);this.aW.q_(q.errorCode,2,"SIGNATURE_EXPIRED",YG(q.details))}if(Kf(q.severity)){var G;w=(G=this.aW.loader)==null?void 0:G.V.V;if(this.cT.T("html5_use_network_error_code_enums"))if(Mxl(q)&&w&&w.isLocked())var k="FORMAT_UNAVAILABLE";else if(this.cT.L||q.errorCode!=="auth"||q.details.rc!==429)q.errorCode==="ump.spsrejectfailure"&&(k="HTML5_SPS_UMP_STATUS_REJECTED");else{k="TOO_MANY_REQUESTS";var b="6"}else Mxl(q)&&w&&w.isLocked()?k="FORMAT_UNAVAILABLE":this.cT.L||q.errorCode!== "auth"||q.details.rc!=="429"?q.errorCode==="ump.spsrejectfailure"&&(k="HTML5_SPS_UMP_STATUS_REJECTED"):(k="TOO_MANY_REQUESTS",b="6");this.aW.q_(q.errorCode,q.severity,k,YG(q.details),b)}else this.aW.publish("nonfatalerror",q),G=/^pp/.test(this.videoData.clientPlaybackNonce),this.q9(q.errorCode,q.details),G&&q.errorCode==="manifest.net.connect"&&(q="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.Zj)(),t0(q,"manifest",function(O){a.L=!0;a.d8("pathprobe",O)}, function(O){a.q9(O.errorCode,O.details)}))}}; g.C.d8=function(q,a){this.aW.nk.d8(q,a)}; g.C.q9=function(q,a){a=YG(a);this.aW.nk.q9(q,a)};ZI.prototype.wq=function(q){var a=U_G(this);if(!q)return{An:dM,Z1:dM,O0:dM,tR:dM,F_:dM,qb:dM,fp:a};var w=dM;if(Lx(a)||this.T("html5_perf_cap_override_sticky"))w=RWc(this,q);return{An:w,Z1:txV(this,q),O0:IIf(this,q),tR:yPV(this,q.videoData),F_:qBm(this,q.videoData,q),qb:jOm(this,q),fp:a}}; ZI.prototype.g6=function(q){if(g.Nh(this.V7)&&og(this.V7.D,Ig.HEIGHT))var a=q.V.videoInfos[0].video.qualityOrdinal;else{var w=this.AX(!!q.V.V);xQ(q.videoData)||YU(q.videoData);q=q.V.videoInfos;if(q.length){var G=g.Wo(this.V7.experiments,"html5_override_oversend_fraction")||.85,k=q[0].video;k.projectionType!=="MESH"&&k.projectionType!=="EQUIRECTANGULAR"&&k.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||av||(G=.45);k=g.Wo(this.V7.experiments,"html5_viewport_undersend_maximum");for(var b=0;b< q.length;b++){a=q[b];var O=a.video;if(w===null||O.width*G=0,stateAtSend:a,joinLatencySecs:b,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:G,playerCanaryStage:k,isAd:this.provider.videoData.isAd(),liveMode:w,hasDrm:!!g.op(this.provider.videoData),isGapless:this.provider.videoData.X,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:rM(this.provider.videoData)};q||g.aw("html5PlayerHealthEvent",a);this.W=!0;this.dispose()}}; VF.prototype.qB=function(){this.W||this.send();window.removeEventListener("error",this.Sg);window.removeEventListener("unhandledrejection",this.Sg);g.c.prototype.qB.call(this)}; var KC7=/\bnet\b/;kQj.prototype.update=function(){if(this.X){var q=this.Ye()||0,a=g.wk(this.provider);q>=this.provider.aW.getDuration()-.1&&(this.previouslyEnded=!0);if(q!==this.V||ltf(this,q,a)){var w;if(!(w=qa-this.qT+2||ltf(this,q,a))){w=this.provider.aW.getVolume();var G=w!==this.J,k=this.provider.aW.isMuted()?1:0;k!==this.S?(this.S=k,w=!0):(!G||this.Y>=0||(this.J=w,this.Y=a),w=a-this.Y,this.Y>=0&&w>2?(this.Y=-1,w=!0):w=!1)}w&&(m0(this),this.W=q);this.qT=a;this.V=q}}}; kQj.prototype.Ye=function(){var q=this.provider.aW.Ye();return this.provider.V7.T("html5_disable_live_dvr_shrink_for_cdm_vss")&&BD(this.provider.videoData)?q+this.provider.aW.g$():q};e5_.prototype.send=function(q){var a=this;if(!this.h2){var w=YBm(this),G=g.sk(this.uri,w);this.V7.T("vss_through_gel_double")&&P_m(G);this.jt&&!this.V7.T("html5_simplify_pings")?szl(this,G):Nzc(this,q).then(function(k){a.jt&&(k=k||{},k.method="POST",k.postParams={atr:a.attestationResponse});ODG(G,k,{token:a.UK,M3:a.uF,mdxEnvironment:a.mdxEnvironment},a.V7,q,a.f7,a.isFinal&&a.XN||a.EK||a.W&&a.nu)}); this.h2=!0}}; e5_.prototype.U=function(q){q===void 0&&(q=NaN);return Number(q.toFixed(3)).toString()}; var EM={},Tzc=(EM.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,EM.LIVING_ROOM_APP_MODE_MAIN=1,EM.LIVING_ROOM_APP_MODE_KIDS=2,EM.LIVING_ROOM_APP_MODE_MUSIC=3,EM.LIVING_ROOM_APP_MODE_UNPLUGGED=4,EM.LIVING_ROOM_APP_MODE_GAMING=5,EM),VA={},dJy=(VA.EMBEDDED_PLAYER_MODE_UNKNOWN=0,VA.EMBEDDED_PLAYER_MODE_DEFAULT=1,VA.EMBEDDED_PLAYER_MODE_PFP=2,VA.EMBEDDED_PLAYER_MODE_PFL=3,VA);g.Z(AP,g.c);AP.prototype.onProgress=function(){this.V.update();Asy(this)&&(ZhK(this),EkK(this))}; AP.prototype.qB=function(){g.c.prototype.qB.call(this);B7(this);bhc(this.V)}; AP.prototype.Kk=function(){return YBm(xV(this,"playback"))}; AP.prototype.OP=function(q){var a=xV(this,"engage");a.y7=q;return Kpm(a,M5m(this.provider))};nkc.prototype.isEmpty=function(){return this.endTime===this.startTime};n6.prototype.T=function(q){return this.V7.T(q)}; n6.prototype.getCurrentTime=function(){return this.aW.getCurrentTime()}; n6.prototype.Ye=function(){return this.aW.Ye()}; var h5V={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.Z(g.M_,g.c);g.C=g.M_.prototype;g.C.onProgress=function(){if(this.provider.videoData.enableServerStitchedDai&&this.I8){var q;(q=this.W.get(this.I8))==null||q.onProgress()}else if(this.V)this.V.onProgress()}; g.C.nF=function(q){this.qoe&&this.qoe.nF(q)}; g.C.h4=qm(29);g.C.Pm=qm(35);g.C.EU=function(q,a){this.qoe&&this.qoe.EU(q,a)}; g.C.YZ=function(){if(this.provider.videoData.enableServerStitchedDai&&this.I8){var q;(q=this.W.get(this.I8))!=null&&m0(q.V)}else this.V&&m0(this.V.V)}; g.C.q9=function(q,a){this.qoe&&Q$l(this.qoe,q,a);if(this.U)this.U.onError(q)}; g.C.MK=function(q){var a;(a=this.qoe)==null||a.MK(q)}; g.C.onPlaybackRateChange=function(q){if(this.qoe)this.qoe.onPlaybackRateChange(q);this.V&&m0(this.V.V)}; g.C.TY=qm(52);g.C.d8=function(q,a,w){this.qoe&&this.qoe.d8(q,a,w)}; g.C.e8=function(q,a,w){this.qoe&&this.qoe.e8(q,a,w)}; g.C.m_=function(q){var a;(a=this.qoe)==null||a.m_(q)}; g.C.Ta=function(q){var a;(a=this.qoe)==null||a.Ta(q)}; g.C.T6=function(q,a,w,G){var k;(k=this.qoe)==null||k.T6(q,a,w,G)}; g.C.JT=function(q){this.qoe&&this.qoe.JT(q)}; g.C.Wh=function(q,a,w){this.qoe&&this.qoe.Wh(q,a,w)}; g.C.mq=qm(23);g.C.v7=function(){if(this.qoe)return this.qoe.v7()}; g.C.Kk=function(){if(this.provider.videoData.enableServerStitchedDai&&this.I8){var q,a;return(a=(q=this.W.get(this.I8))==null?void 0:q.Kk())!=null?a:{}}return this.V?this.V.Kk():{}}; g.C.Dk=function(){var q;return(q=this.qoe)==null?void 0:q.Dk()}; g.C.gJ=function(q,a){var w;(w=this.qoe)==null||w.gJ(q,a)}; g.C.OP=function(q){return this.V?this.V.OP(q):function(){}}; g.C.getVideoData=function(){return this.provider.videoData}; g.C.resume=function(){this.qoe&&this.qoe.resume()};g.Z(g.hP,g.c);g.C=g.hP.prototype;g.C.N9=function(q,a){this.sync();a&&this.V.array.length>=2E3&&this.fS("captions",1E4);a=this.V;if(q.length>1&&q.length>a.array.length)a.array=a.array.concat(q),a.array.sort(a.V);else{q=g.V(q);for(var w=q.next();!w.done;w=q.next())w=w.value,!a.array.length||a.V(w,a.array[a.array.length-1])>0?a.array.push(w):g.iV(a.array,w,a.V)}this.W=NaN;this.sync()}; g.C.kE=function(q){q.length>1E4&&g.Qa(new g.UH("Over 10k cueRanges removal occurs with a sample: ",q[0]));if(!this.t2()){var a=new Set(q);this.U=this.U.filter(function(w){return!a.has(w)}); DJj(this.V,a);this.sync()}}; g.C.Md=function(q,a){if(!this.t2()){var w=this.Me().find(function(G){return G.id===a&&G.namespace===q}); w&&this.kE([w])}}; g.C.fS=function(q,a){var w=(isNaN(this.W)?aUN(this):this.W)-a;a=this.Me().filter(function(G){return G.namespace===q&&G.endthis.V,b=g.v(w,8)&&g.v(w,16),O=this.aW.Gj().isBackground()||w.isSuspended();uA(this,this.A2,b&&!O,k,"qoe.slowseek",function(){},"timeout"); var e=isFinite(this.V);e=b&&e&&vmm(a,this.V);var N=!G||Math.abs(G-this.V)>10,Y=this.V7.T("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),P=G===0&&this.U&&[11,10].includes(this.U);uA(this,this.h2,e&&N&&!O&&(!Y||!P),k,"qoe.slowseek",function(){a.seekTo(q.V)},"set_cmt"); N=e&&kj(a.xe(),this.V);var K=this.aW.loader;e=!K||K.PY();var d=function(){a.seekTo(q.V+.001)}; uA(this,this.EK,N&&e&&!O,k,"qoe.slowseek",d,"jiggle_cmt");e=function(){return q.aW.Uq()}; uA(this,this.Tl,N&&!O,k,"qoe.slowseek",e,"new_elem");var T=cz(w);P=w.isBuffering();var F=a.xe(),J=GL(F,G),Q=J>=0&&F.end(J)>G+5;N=T&&P&&Q;Y=this.aW.getVideoData();uA(this,this.L7,G<.002&&this.V<.002&&b&&g.Nh(this.V7)&&g.kU(Y)&&!O,k,"qoe.slowseek",e,"slow_seek_shorts");uA(this,this.J,Y.tK()&&b&&!O&&!Y.UK,k,"qoe.slowseek",e,"slow_seek_gapless_shorts");uA(this,this.F9,N&&!O,T&&!P,"qoe.longrebuffer",d,"jiggle_cmt");uA(this,this.UK,N&&!O,T&&!P,"qoe.longrebuffer",e,"new_elem_nnr");if(K){var B=K.getCurrentTime(); b=a.ek();b=fRl(b,B);b=!K.isSeeking()&&G===b;uA(this,this.yN,T&&P&&b&&!O,T&&!P&&!b,"qoe.longrebuffer",function(){a.seekTo(B)},"seek_to_loader")}b={}; d=GL(F,Math.max(G-3.5,0));var L=d>=0&&G>F.end(d)-1.1,M=d>=0&&d+1=0&&L&&M<11;b.close2edge=L;b.gapsize=M;b.buflen=F.length;this.U&&(b.seekSour=this.U);uA(this,this.y7,T&&P&&!O,T&&!P,"qoe.longrebuffer",function(){},"timeout",b); b=w.isSuspended();b=this.aW.S_()&&!b;uA(this,this.X,b,!b,"qoe.start15s",function(){q.aW.fu("ad")},"ads_preroll_timeout"); b=this.V7.experiments.Zh("html5_use_playback_rate_in_skip_slow_ad")?this.aW.getPlaybackRate()*1E3:1E3;J=G-this.Y5;uA(this,this.St,g.kU(Y)&&K,T&&!P,"qoe.longrebuffer",function(){q.aW.Uw()},"reset_media_source"); uA(this,this.le,g.kU(Y)&&K,T&&!P,"qoe.longrebuffer",e,"reset_media_element");this.Y===0&&(this.L=G);K=P&&this.V===0&&G>1&&G===this.L;uA(this,this.f7,g.kU(Y)&&K,T&&!P,"qoe.slowseek",function(){a.seekTo(0)},"reseek_after_time_jump"); O=w.isOrWillBePlaying()&&!O;Q=this.aW.R_()-G<6&&!Q&&this.aW.gp();uA(this,this.S,Y.tK()&&O&&P&&Q,T&&!P,"qoe.longrebuffer",function(){q.aW.Uq(!1,!0)},"handoff_end_long_buffer_reload"); O=this.U===104||this.aW.cO;w=AF(Y)&&Y.isAd()&&!Y.UK&&O&&(P||g.v(w,8)&&g.v(w,16));uA(this,this.BT,w,k,"qoe.start15s",e,"gapless_ad_slow_start");w=AF(Y)&&!Y.UK&&O&&N;uA(this,this.IW,w,k,"qoe.longrebuffer",e,"gapless_slow_start");this.Y=G;this.D.start()}}; IO.prototype.q9=function(q,a,w){a=this.Kk(a);a.wn=w;a.wdup=this.W[q]?"1":"0";this.aW.q9(new g.PY(q,a));this.W[q]=!0}; IO.prototype.Kk=function(q){q=Object.assign(this.aW.Kk(!0),q.Kk());this.V&&(q.stt=this.V.toFixed(3));this.aW.getVideoData().isLivePlayback&&(q.ct=this.aW.getCurrentTime().toFixed(3),q.to=this.aW.g$().toFixed(3));delete q.uga;delete q.euri;delete q.referrer;delete q.fexp;delete q.vm;return q}; oO.prototype.reset=function(){this.V=this.U=this.W=this.startTimestamp=0;this.Y=!1}; oO.prototype.test=function(q){if(!this.D||this.U)return!1;if(!q)return this.reset(),!1;q=(0,g.Zj)();if(!this.startTimestamp)this.startTimestamp=q,this.W=0;else if(this.W>=this.D)return this.U=q,!0;this.W+=1;return!1}; oO.prototype.Kk=function(){var q={},a=(0,g.Zj)();this.startTimestamp&&(q.wsd=(a-this.startTimestamp).toFixed());this.U&&(q.wtd=(a-this.U).toFixed());this.V&&(q.wssd=(a-this.V).toFixed());return q};g.Z(ZoU,g.c);g.C=ZoU.prototype;g.C.setMediaElement=function(q){(this.mediaElement=q)?(this.mediaElement&&(this.D||this.W||!this.mediaElement.vL()||this.seekTo(.01,{e1:"seektimeline_setupMediaElement"})),tP(this)):zx(this)}; g.C.getCurrentTime=function(q){q=q===void 0?!1:q;if(v7(this.aW)){if(this.T("html5_use_centralized_player_time")&&!q&&!isNaN(this.L))return this.L;if(!isNaN(this.U))return this.U}else{if(this.T("html5_use_centralized_player_time")&&!q&&!isNaN(this.L)&&isFinite(this.L))return this.L;if(!isNaN(this.U)&&isFinite(this.U))return this.U}return this.mediaElement&&fUf(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.W||0}; g.C.E9=function(){return this.BT}; g.C.Ye=function(){return this.getCurrentTime()-this.g$()}; g.C.HQ=function(){return this.V?this.V.HQ():Infinity}; g.C.isAtLiveHead=function(q){if(!this.V)return!1;q===void 0&&(q=this.getCurrentTime());return UO(this.V,q)}; g.C.dF=function(){return!!this.V&&this.V.dF()}; g.C.seekTo=function(q,a){var w=a===void 0?{}:a;a=w.SO===void 0?!1:w.SO;var G=w.SI===void 0?0:w.SI;var k=w.gR===void 0?!1:w.gR;var b=w.N3===void 0?0:w.N3;var O=w.e1===void 0?"":w.e1;var e=w.seekSource===void 0?void 0:w.seekSource;var N=w.RP===void 0?!1:w.RP;var Y=w.Zk===void 0?!1:w.Zk;w=w.o6===void 0?!1:w.o6;N&&(q+=this.g$());rM(this.videoData)&&e===29&&(this.BT=void 0);N=q=this.K0())||!g.WD(this.videoData),J||(Q={st:Q,mst:this.K0()},this.V&&this.T("html5_high_res_seek_logging")&&(Q.ht=this.V.HQ(),Q.adft=p6(this.V)),this.aW.d8("seeknotallowed",Q)),Q=J));if(!Q)return this.Y&&(this.Y=null,MWj(this)),g.rH(this.getCurrentTime());Q=.005;Y&&this.T("html5_sabr_seek_no_shift_tolerance")&&(Q=0);if(Math.abs(q-this.U)<=Q&&this.f7)return this.D;O&&(Q=q,(this.V7.TZ()||this.T("html5_log_seek_reasons"))&& this.aW.d8("seekreason",{reason:O,tgt:Q}));e&&(this.F9.U=e);this.f7&&zx(this);this.D||(this.D=new m5);q&&!isFinite(q)&&mgU(this,!1);(O=w||N)||(O=q,O=!(this.videoData.isLivePlayback&&this.videoData.W&&!this.videoData.W.V&&!(this.mediaElement&&this.mediaElement.rl()>0&&AB(this.mediaElement)>0)||fc(this.videoData)&&this.B5()===this.K0(!1)?0:isFinite(O)||!fc(this.videoData)));O||(q=W7(this,q,k));q&&!isFinite(q)&&mgU(this,!1);this.T("html5_use_centralized_player_time")?this.L=q:this.U=this.W=q;this.St= b;this.X=0;this.V&&(k=this.V,b=q,dgj(k,b,!1),TPy(k,b));k=this.aW;b=q;O={SO:a,seekSource:e};k.D0.W=b;w=k.DC;w.mediaTime=b;w.V=!0;O.SO&&k.wv(O);O=b>k.videoData.endSeconds&&b>k.videoData.limitedPlaybackDurationInSeconds;k.fm&&O&&isFinite(b)&&PsN(k);ba.start&&PsN(this.aW);return this.D}; g.C.K0=function(q){if(!this.videoData.isLivePlayback)return this.aW.videoData.K0();var a;return Fe(this.videoData)&&((a=this.mediaElement)==null?0:a.isPaused())&&this.videoData.V?(q=this.getCurrentTime(),RFN(this.OB(q)*1E3)+q):this.T("html5_sabr_parse_live_metadata_playback_boundaries")&&rM(this.videoData)&&this.videoData.V?q?this.videoData.V.UK||0:this.videoData.V.zj||0:fc(this.videoData)&&this.videoData.y7&&this.videoData.V?this.videoData.V.K0()+this.timestampOffset:this.videoData.W&&this.videoData.W.V? !q&&this.V?this.V.HQ():this.aW.videoData.K0()+this.timestampOffset:this.mediaElement?UF()?RFN(this.mediaElement.ol().getTime()):AB(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.C.B5=function(){if(this.T("html5_sabr_parse_live_metadata_playback_boundaries")&&rM(this.videoData)){var q;return((q=this.videoData.V)==null?void 0:q.i5)||0}q=this.videoData?this.videoData.B5()+this.timestampOffset:this.timestampOffset;if(Fe(this.videoData)&&this.videoData.V){var a,w=Number((a=this.videoData.progressBarStartPosition)==null?void 0:a.utcTimeMillis)/1E3;a=this.getCurrentTime();a=this.OB(a)-a;if(!isNaN(w)&&!isNaN(a))return Math.max(q,w-a)}return q}; g.C.EC=function(){this.D||this.seekTo(this.W,{e1:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.C.Fd=function(){return this.f7&&!isFinite(this.U)}; g.C.qB=function(){QEj(this,null);this.F9.dispose();g.c.prototype.qB.call(this)}; g.C.Kk=function(){var q={};this.loader&&Object.assign(q,this.loader.Kk());this.mediaElement&&Object.assign(q,this.mediaElement.Kk());return q}; g.C.wP=function(q){this.timestampOffset=q}; g.C.getStreamTimeOffset=function(){return fc(this.videoData)?0:this.videoData.V?this.videoData.V.getStreamTimeOffset():0}; g.C.g$=function(){return this.timestampOffset}; g.C.OB=function(q){return this.videoData&&this.videoData.V?this.videoData.V.OB(q-this.timestampOffset):NaN}; g.C.pS=function(){if(!this.mediaElement)return 0;if(Ds(this.videoData)){var q=this.mediaElement,a=q.xe();q=(lw(a)&&q.getDuration()?a.end(a.length-1):0)+this.timestampOffset-this.B5();a=this.K0()-this.B5();return Math.max(0,Math.min(1,q/a))}return this.mediaElement.pS()}; g.C.Xl=function(q){this.S&&(this.S.V=q)}; g.C.Qz=function(q,a){this.aW.d8("requestUtcSeek",{time:q});rM(this.videoData)&&(this.BT=q);var w;(w=this.loader)==null||w.Qz(q);a&&(this.jt=a)}; g.C.aM=function(q){rM(this.videoData)&&(this.BT=void 0);if(this.jt)this.aW.d8("utcSeekingFallback",{source:"streamTime",timeSeconds:this.jt}),this.aW.seekTo(this.jt,{e1:"utcSeekingFallback_streamTime"}),this.jt=0;else{var a=this.getCurrentTime();isNaN(a)||(q=this.OB(a)-q,a-=q,this.aW.d8("utcSeekingFallback",{source:"estimate",timeSeconds:a}),this.aW.seekTo(a,{e1:"utcSeekingFallback_estimate"}))}}; g.C.nK=function(){this.jt=0}; g.C.T=function(q){return this.V7&&this.V7.T(q)};g.Z(DI,g.c);DI.prototype.start=function(){this.U.start()}; DI.prototype.stop=function(){this.U.stop()}; DI.prototype.clear=function(){for(var q=g.V(this.V.values()),a=q.next();!a.done;a=q.next())a.value.clear()}; DI.prototype.sample=function(){for(var q=g.V(this.W),a=q.next();!a.done;a=q.next()){var w=g.V(a.value);a=w.next().value;w=w.next().value;this.V.has(a)||this.V.set(a,new jEK(d0J.has(a)));this.V.get(a).update(w())}this.U.start()}; var d0J=new Set(["networkactivity"]);jEK.prototype.update=function(q){this.U?(this.buffer.add(q-this.V||0),this.V=q):this.buffer.add(q)}; jEK.prototype.clear=function(){this.buffer.clear();this.V=0};qJ.prototype.Ab=function(){return this.started}; qJ.prototype.start=function(){this.started=!0}; qJ.prototype.reset=function(){this.finished=this.started=!1};var vqK=!1;g.Z(g.GQ,g.ya);g.C=g.GQ.prototype;g.C.qB=function(){this.logger.debug("dispose");g.Pr(this.Q9);m_m(this.wx);this.visibility.unsubscribe("visibilitystatechange",this.wx);pPV(this.nk);g.wB(this.nk);OB(this);g.fJ.FS(this.SX);this.Ha();this.WJ=null;g.wB(this.videoData);g.wB(this.qy);g.wB(this.VB);g.wB(this.aC);g.Gr(this.lh8);this.fm=null;g.ya.prototype.qB.call(this)}; g.C.Wh=function(q,a,w,G,k){if(this.V7.T("html5_log_ad_playback_docid")){var b=this.nk;if(b.qoe){b=b.qoe;var O=this.V7.F9||"yt";g.q_(b,g.wk(b.provider),"ad_playback",[q,a,w,k,O])}}else this.nk.Wh(q,a,w);this.T("html5_log_media_perf_info")&&this.d8("adloudness",{ld:G.toFixed(3),cpn:q})}; g.C.lC=function(){var q;return(q=this.loader)==null?void 0:q.lC()}; g.C.Mk=function(){var q;return(q=this.loader)==null?void 0:q.Mk()}; g.C.xA=function(){var q;return(q=this.loader)==null?void 0:q.xA()}; g.C.S9=function(){var q;return(q=this.loader)==null?void 0:q.S9()}; g.C.YD=function(){return this.videoData.YD()}; g.C.Vp=function(){return this.T("html5_not_reset_media_source")&&!this.YD()&&!this.videoData.isLivePlayback&&g.kU(this.videoData)&&!this.V7.supportsGaplessShorts()}; g.C.nZ=function(){this.videoData.X&&(this.videoData.kx=this.videoData.kx||this.n0.xT().lC(),this.videoData.bN=this.videoData.bN||this.n0.xT().Mk());if(Uvl(this.videoData)||!$U(this.videoData)){var q=this.videoData.errorDetail;this.q_(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),q,q,this.videoData.Dl||void 0)}this.T("html5_generate_content_po_token")&&this.Ez();this.T("html5_enable_d6de4")&&this.gN()}; g.C.getVideoData=function(){return this.videoData}; g.C.B=function(){return this.V7}; g.C.wq=function(){return this.KE.wq(this.WJ)}; g.C.Gj=function(){return this.visibility}; g.C.T2=function(){return this.mediaElement&&this.mediaElement.GB()?this.mediaElement.cq():null}; g.C.Z0=function(){return this.mediaElement}; g.C.dR=function(){if(this.videoData.errorCode)return!1;this.B().L&&this.B().houseBrandUserStatus&&this.d8("hbut",{status:this.B().houseBrandUserStatus},!0);if(this.videoData.PN())return!0;this.q_("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.C.TH=function(q){(q=q===void 0?!1:q)||SBl(this.nk);this.CU=q;!this.dR()||this.Ug.Ab()?g.Nh(this.V7)&&this.videoData.isLivePlayback&&this.Ug.Ab()&&!this.Ug.finished&&!this.CU&&this.RC():(this.Ug.start(),q=this.nk,g.wk(q.provider),q.qoe&&Jcf(q.qoe),this.RC())}; g.C.RC=function(){if(this.videoData.isLoaded()){var q=this.qy;g.Wo(q.cT.experiments,"html5_player_min_build_cl")>0&&g.Wo(q.cT.experiments,"html5_player_min_build_cl")>790967629&&SOl(q,"oldplayer");lEf(this)}else this.videoData.eG||this.videoData.u9?this.CU&&g.Nh(this.V7)&&this.videoData.isLivePlayback||(this.videoData.eG?Jhc(this.videoData):(q=this.nk,q.qoe&&(q=q.qoe,kV(q,"protected"),q.provider.videoData.D?q.mA():q.provider.videoData.subscribe("dataloaded",q.mA,q)),CUl(this.videoData))):!this.videoData.loading&& this.E1&&kTf(this)}; g.C.u0=function(q){this.T0=q;this.loader&&($s_(this.loader,new g.ex(q)),this.d8("sdai",{sdsstm:1}))}; g.C.iN=function(q,a,w){var G;(G=this.loader)==null||G.iN(q,a,w)}; g.C.NZ=qm(8);g.C.isFullscreen=function(){return this.visibility.isFullscreen()}; g.C.isBackground=function(){return this.visibility.isBackground()}; g.C.zk=function(){var q=this;this.logger.debug("Updating for format change");kk(this).then(function(){return wz(q)}); this.playerState.isOrWillBePlaying()&&this.playVideo()}; g.C.N7=function(){this.logger.debug("start readying playback");this.mediaElement&&this.mediaElement.activate();this.TH();this.dR()&&!g.v(this.playerState,128)&&(this.d9.Ab()||(this.d9.start(),this.videoData.sj?this.UQ(hB(this.playerState,4)):this.UQ(hB(hB(this.playerState,8),1))),bXK(this))}; g.C.Ve=function(){return this.Ug.finished}; g.C.sendAbandonmentPing=function(){g.v(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.mj(!0),pPV(this.nk),g.wB(this.nk),g.fJ.FS(this.SX))}; g.C.Np=function(q,a,w){q=q===void 0?!0:q;(a===void 0||a)&&this.mediaElement&&this.mediaElement.pause();q&&w&&this.loader&&fc(this.videoData)&&this.loader.T6(w);this.UQ(q?new g.rD(14):new g.rD)}; g.C.w9=function(){this.nk.YZ()}; g.C.q_=function(q,a,w,G,k,b){this.logger.debug(function(){return"set player error: ec="+q+", detail="+k}); var O,e;g.YI(xzy,w)?O=w:w?e=w:O="GENERIC_WITHOUT_LINK";G=(G||"")+(";a6s."+uq());if(q==="auth"||q==="drm.auth"||q==="heartbeat.stop")w&&(G+=";r."+w.replaceAll(" ","_")),b&&(G+="sr."+b.replaceAll(" ","_"));a={errorCode:q,errorDetail:k,errorMessage:e||g.uB[O]||"",Yj:O,Dl:b||"",D3:G,wH:a,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=q;b_(this,"dataloaderror");this.UQ(M7(this.playerState,128,a));g.fJ.FS(this.SX);OB(this);this.MX()}; g.C.fu=function(q){this.Lb=this.Lb.filter(function(a){return q!==a}); this.logger.debug(function(){return"set preroll ready for "+q}); this.d9.Ab()&&bXK(this)}; g.C.Rg=function(){var q;(q=!!this.Lb.length)||(q=this.oG.V.array[0],q=!!q&&q.start<=-0x8000000000000);return q}; g.C.dF=function(){return this.D0.dF()}; g.C.isPlaying=function(){return this.playerState.isPlaying()}; g.C.xV=function(){return this.playerState.xV()&&this.videoData.sj}; g.C.getPlayerState=function(){return this.playerState}; g.C.eO=function(q){var a;(a=this.loader)==null||a.eO(q)}; g.C.EG=function(q){var a;(a=this.loader)==null||a.EG(q)}; g.C.getPlayerType=function(){return this.playerType}; g.C.getPreferredQuality=function(){if(this.WJ){var q=this.WJ;q=q.videoData.oy.compose(q.videoData.lP);q=rq(q)}else q="auto";return q}; g.C.Aa=qm(16);g.C.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.C.setMediaElement=function(q){this.logger.debug("set media element");if(this.mediaElement&&q.cq()===this.mediaElement.cq()&&(q.isView()||this.mediaElement.isView())){if(q.isView()||!this.mediaElement.isView())this.Yg(),this.mediaElement=q,this.mediaElement.aW=this,mVl(this),this.D0.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.Ha();if(!this.playerState.isError()){var a=SN(this.playerState,512);g.v(a,8)&&!g.v(a,2)&&(a=hB(a,1));q.isView()&&(a=SN(a,64));this.UQ(a)}this.mediaElement= q;this.mediaElement.aW=this;!g.Nh(this.V7)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);mVl(this);this.D0.setMediaElement(this.mediaElement);this.T("html5_prewarm_media_source")&&!this.qy.nh()&&omN(this.mediaElement)}}; g.C.Ha=function(q,a,w){q=q===void 0?!1:q;a=a===void 0?!1:a;w=w===void 0?!1:w;this.logger.debug("remove media element");if(this.mediaElement){var G=this.getCurrentTime();G>0&&(this.D0.W=G);this.D0.setMediaElement(null);!q&&this.Vp()?Cs_(this):this.EE(w);this.loader&&(ir(this.loader),Yk(this,a));this.dn.stop();if(this.mediaElement&&(!this.d9.Ab()&&!this.S_()||this.playerState.isError()||g.v(this.playerState,2)||this.UQ(hB(this.playerState,512)),this.mediaElement)){this.Yg();if(q||!this.mediaElement.isView())this.ji.z6("mesv_s"), this.mediaElement.stopVideo(),PP(this);this.mediaElement=this.mediaElement.aW=null}}}; g.C.playVideo=function(q,a){q=q===void 0?!1:q;a=a===void 0?!1:a;var w=this,G,k,b,O,e,N;return g.h(function(Y){if(Y.U==1){w.logger.debug("start play video");var P=window.google_image_requests;P&&P.length>10&&(window.google_image_requests=P.slice(-10));if(g.v(w.playerState,128))return Y.return();if(w.qy.s9())return w.publish("signatureexpired"),Y.return();w.mediaElement&&SBl(w.nk);w.N7();(g.v(w.playerState,64)||q)&&w.UQ(hB(w.playerState,8));return w.d9.finished&&w.mediaElement?w.WJ||!w.uS?Y.Gl(2):g.n(Y, w.uS,3):Y.return()}if(Y.U!=2&&g.v(w.playerState,128))return Y.return();if(!w.videoData.W)return w.videoData.isLivePlayback&&!g.Vw(w.V7.D,!0)?(G="html5.unsupportedlive",k=2):(G=w.videoData.YD()?"fmt.unplayable":"fmt.noneavailable",k=1),g.Qa(Error("selectableFormats")),w.q_(G,k,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.selectableFormats"),Y.return();if(w.yT()&&w.videoData.W.V)return w.logger.debug("rebuild playbackData for airplay"),Y.return(kk(w));if(v7(w))P=w.D0,SO(P.videoData)&&!P.isAtLiveHead(P.getCurrentTime())&& P.dF()&&P.aW.seekTo(Infinity,{e1:"seektimeline_peggedToLive",seekSource:34});else if(SO(w.videoData)&&(b=w.getCurrentTime()O;if(!e||!O){k&&e&&(b=Math.max(b,k));var N;k=X7l(a,(N=G.V)==null?void 0:N.videoInfos);N=a.aW.getPlaybackRate();N>1&&k&&(N=yBV(a.V7.D,G.V.videoInfos,N),q.V!==0&&N=480;if(a.T("html5_exponential_memory_for_sticky")){Y=a.V7.QE;P=1;var K=K===void 0?!1:K;Mvl(Y,"sticky-lifetime");Y.values["sticky-lifetime"]&&Y.Tf["sticky-lifetime"]||(Y.values["sticky-lifetime"]=0,Y.Tf["sticky-lifetime"]=0);K&&z8(Y,"sticky-lifetime")>.0625&&(P=Y.Tf["sticky-lifetime"]*2);Y.values["sticky-lifetime"]+=1*Math.pow(2, Y.V/P);Y.Tf["sticky-lifetime"]=P;Y.Y.start()}if(a.T("html5_perf_cap_override_sticky")){K=a.W;a=a.T("html5_perserve_av1_perf_cap");a=a===void 0?!1:a;if(a===void 0?0:a){Y=sl();P=g.V(Object.keys(Y));for(q=P.next();!q.done;q=P.next())q=q.value,q.indexOf("1")!==0&&delete Y[q];g.AE("yt-player-performance-cap",Y,2592E3)}else g.L2("yt-player-performance-cap");RS_(a);if(a){a=g.V(qi.keys());for(Y=a.next();!Y.done;Y=a.next())Y=Y.value,Y.startsWith("1")||qi.delete(Y);a=g.V(EO.values());for(Y=a.next();!Y.done;Y= a.next())Y=Y.value,Y.startsWith("1")||EO.delete(Y);a=g.V(K.keys());for(Y=a.next();!Y.done;Y=a.next())Y=Y.value,Y.startsWith("1")||K.delete(Y)}else qi.clear(),EO.clear(),K.clear()}}}}this.loader&&(a=this.loader,w=w||"",a.policy.V?bn(a.Y.V,w):bn(a.V.D,w));this.Zt()}; g.C.getUserPlaybackQualityPreference=function(){return this.videoData.W&&!this.videoData.W.V?rq(this.videoData.oy):BX[T1()]}; g.C.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()}; g.C.setUserAudio51Preference=function(q,a){this.getUserAudio51Preference()!==q&&(this.d8("toggle51",{pref:q}),g.AE("yt-player-audio51",q,a?31536E3:2592E3),this.zk())}; g.C.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()}; g.C.setProximaLatencyPreference=function(q){var a=this.getProximaLatencyPreference();this.d8("proxima",{pref:q});g.AE("yt-player-proxima-pref",q,31536E3);a!==q&&(q=this.D0,q.IW=!0,q.aW.seekTo(Infinity,{e1:"seektimeline_proximaSeekToHead",seekSource:34}))}; g.C.getProximaLatencyPreference=function(){var q;return(q=$d())!=null?q:0}; g.C.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; g.C.Ez=function(){this.videoData.videoId?this.n0.Ez(this.videoData):this.d8("povid",{})}; g.C.gN=function(){this.videoData.videoId?this.n0.gN(this.videoData):this.d8("piavid",{})}; g.C.Zt=function(){if(!this.t2()&&!g.v(this.playerState,128)&&this.videoData.W){if(this.videoData.W.V)az(this);else{var q=NJ(this),a=this.videoData;a:{var w=this.videoData.Nh;if(q.V){for(var G=g.V(w),k=G.next();!k.done;k=G.next()){k=k.value;var b=k.getInfo(),O=g.SG[b.video.quality];if((!q.W||b.video.quality!=="auto")&&O<=q.V){w=k;break a}}w=w[w.length-1]}else w=w[0]}a.A2=w;KiV(this,q.reason,xVm(this,this.videoData.A2))}if(this.T("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.D0.J= !1,this.playVideo()}}; g.C.Da=function(q,a){if(this.t2()||g.v(this.playerState,128))return!1;var w,G=!((w=this.videoData.W)==null||!w.V);w=G&&a?this.getCurrentTime()-this.g$():NaN;if(this.V7.experiments.Zh("html5_record_audio_format_intent")){var k=this.nk;if(k.qoe){k=k.qoe;var b=[q.Pq.id,isNaN(w)?"m":"t"];g.q_(k,g.wk(k.provider),"afi",b)}}if(G)return a&&(G=xgJ(this.D0),this.d8("aswh",{id:q.id,xtags:q.xtags,bh:G.toFixed(3)})),this.loader.setAudioTrack(q,w,a),!0;if(Tmc(this)){a:{a=this.mediaElement.audioTracks();for(G=0;G< a.length;++G)if(w=a[G],w.label===q.Pq.getName()){if(w.enabled){a=!1;break a}a=w.enabled=!0;break a}a=void 0}a&&this.d8("hlsaudio",{id:q.id})}else{a:if(a=this.videoData,a.Y&&!i4(a.Y)||q===a.vC||!a.Nh||a.Nh.length<=0)a=!1;else{G=g.V(a.Nh);for(w=G.next();!w.done;w=G.next()){w=w.value;if(!(w instanceof fA)){a=!1;break a}k=q.Pq.getId();w.U&&(G0V(w.U,k),w.GZ=null)}a.vC=q;a=!0}a&&wz(this)&&(this.publish("internalaudioformatchange",this.videoData,!0),this.d8("hlsaudio",{id:q.id}))}return!0}; g.C.getAvailableAudioTracks=function(){return this.videoData.getAvailableAudioTracks()}; g.C.getAudioTrack=function(){if(Tmc(this)){var q=s3K(this);if(q)return q}return this.videoData.getAudioTrack()}; g.C.Tp=function(){return this.videoData.Y}; g.C.YV=function(){this.FJ&&this.FJ.YV()}; g.C.Qn=function(){if(this.videoData.T("html5_trigger_loader_when_idle_network")&&!this.videoData.pk()&&rM(this.videoData)){var q;(q=this.loader)!=null&&q.j4()}}; g.C.t9=function(){if(AF(this.videoData)&&this.videoData.T("html5_gapless_append_early")){var q;(q=this.loader)!=null&&q.j4()}}; g.C.onPlayerRequestSent=function(q){this.n0.onPlayerRequestSent(q)}; g.C.HP=function(q){q=q===void 0?!1:q;if(this.loader){var a=this.loader,w=a.HP;var G=this.videoData;G=G.T("html5_ssdai_use_post_for_media")&&G.enableServerStitchedDai?!1:fc(G)&&G.aG&&!G.isAd();w.call(a,G,q)}}; g.C.EE=function(q){q=q===void 0?!1:q;this.w8&&(this.logger.debug("remove media source"),jAl(this.w8),this.HP(q),this.w8.dispose(),this.w8=null)}; g.C.jD=function(){return this.w8}; g.C.Df=function(q,a,w,G){function k(O){try{JAj(b,O,a,w)}catch(e){g.Qa(e),b.handleError(new g.PY("fmt.unplayable",{msi:"1",ename:e&&typeof e==="object"&&"name"in e?String(e.name):void 0,trg:"setmediasrc"},1))}} var b=this;a=a===void 0?!1:a;w=w===void 0?!1:w;Ezm(this,G===void 0?!1:G);this.w8=q;this.Vp()&&Vy(this.w8)==="open"?k(this.w8):cIV(this.w8,k)}; g.C.l7=function(q){this.logger.debug("onNeedKeyInfo");this.Jg.set(q.initData,q);this.BN&&(this.BN.l7(q),this.T("html5_eme_loader_sync")||this.Jg.remove(q.initData))}; g.C.gP=function(q){this.videoData.AT=g.Av("auto",q,!1,"u");az(this)}; g.C.Xl=function(q){var a=q.reason,w=q.V.info,G=q.token,k=q.videoId,b=this.nk,O=this.videoData;if(w!==O.Y){var e=!O.Y;O.Y=w;a!=="m"&&a!=="t"&&(a=e?"i":"a");var N=a==="m"||a==="t";this.V7.experiments.Zh("html5_refactor_sabr_audio_format_selection_logging")?this.AC=new cPf(O,w,a,"",G,k):(a=new cPf(O,w,a,"",G),b.qoe&&(b=b.qoe,w=g.wk(b.provider),nUj(b,w,a)));this.publish("internalaudioformatchange",O,!e&&N)}this.D0.Xl(q.V.index)}; g.C.PZ=function(q){this.publish("localmediachange",q)}; g.C.cC=function(q){q=q===void 0?{}:q;var a;(a=this.loader)==null||a.cC(this.V7,Lc(this.videoData),q)}; g.C.s9=function(){return this.qy.s9()}; g.C.Ts=function(q){this.q9(new g.PY("staleconfig",{reason:q}))}; g.C.handleError=function(q){this.qy.handleError(q)}; g.C.nh=function(){return this.qy.nh()}; g.C.aM=function(q){this.D0.aM(q)}; g.C.Uq=function(q,a){q=q===void 0?!1:q;a=a===void 0?!1:a;var w=this,G,k,b;return g.h(function(O){if(O.U==1){w.loader&&w.loader.Xz();w.loader&&w.loader.t2()&&OB(w);if(w.T("html5_enable_vp9_fairplay")&&w.YD()&&(G=w.videoData.V)!=null)for(var e in G.V)G.V.hasOwnProperty(e)&&(G.V[e].V=null,G.V[e].W=!1);w.UQ(hB(w.playerState,2048));w.publish("newelementrequired");return q?g.n(O,kk(w),2):O.Gl(2)}w.videoData.pk()&&((k=w.loader)==null?0:k.f7)&&!v7(w)&&((b=w.isAtLiveHead())&&SO(w.videoData)?w.seekTo(Infinity, {e1:"videoPlayer_getNewElement"}):w.videoData.pT&&w.loader&&(e=w.loader,e.X9.pk&&(e.X9.pT||e.X9.Y||e.X9.isPremiere?(e.seek(0,{e1:"loader_resetSqless"}),e.videoTrack.X=!0,e.audioTrack.X=!0,e.videoTrack.D=!0,e.audioTrack.D=!0):Dw(e.X9)&&eD(e))));a&&w.seekTo(0,{seekSource:105});g.v(w.playerState,8)&&w.playVideo();g.Jm(O)})}; g.C.Tm=function(q){this.d8("hgte",{ne:+q});this.videoData.X=!1;q&&this.Uq();this.loader&&oUV(this.loader)}; g.C.iH=function(q){this.d8("newelem",{r:q});this.Uq()}; g.C.pauseVideo=function(q){q=q===void 0?!1:q;if((g.v(this.playerState,64)||g.v(this.playerState,2))&&!q)if(g.v(this.playerState,8))this.UQ(fW(this.playerState,4,8));else if(this.xV())wz(this);else return;g.v(this.playerState,128)||(q?this.UQ(hB(this.playerState,256)):this.UQ(fW(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.WD(this.videoData)&&this.loader&&Yk(this,!1)}; g.C.stopVideo=function(){this.pauseVideo();this.loader&&(Yk(this,!1),this.loader.xL())}; g.C.MX=function(q,a){q=q===void 0?!1:q;a=a===void 0?!1:a;if(this.Vp()&&a){var w;(w=this.mediaElement)==null||w.MX()}else{var G;(G=this.mediaElement)==null||G.stopVideo()}PP(this);OB(this);g.v(this.playerState,128)||(q?this.UQ(SN(SN(hB(this.playerState,4),8),16)):this.UQ(M7(this.playerState)));this.videoData.videoId&&this.V7.L7.remove(this.videoData.videoId)}; g.C.seekTo=function(q,a){a=a===void 0?{}:a;this.logger.debug(function(){return"SeekTo "+q+", "+JSON.stringify(a)}); g.v(this.playerState,2)&&wz(this);a.ph7&&this.UQ(hB(this.playerState,2048));a.seekSource!==58&&a.seekSource!==60||!this.T("html5_update_vss_during_gapless_seeking")||Hhj(this.nk,a.seekSource);this.D0.seekTo(q,a);this.oG.sync()}; g.C.wv=function(q){this.ji.Y.U=(0,g.Zj)();g.v(this.playerState,32)||(this.UQ(hB(this.playerState,32,q==null?void 0:q.seekSource)),g.v(this.playerState,8)&&this.pauseVideo(!0),this.publish("beginseeking"));this.EQ()}; g.C.EH=function(q){q=q==null?void 0:q.seekSource;g.v(this.playerState,32)?(this.UQ(fW(this.playerState,16,32,q)),this.publish("endseeking")):g.v(this.playerState,2)||this.UQ(hB(this.playerState,16,q));q=this.ji.Y;var a=this.videoData,w=this.playerState.isPaused();if(a.clientPlaybackNonce&&!isNaN(q.V)){if(Math.random()<.01){w=w?"pbp":"pbs";var G={startTime:q.V};a.L&&(G.cttAuthInfo={token:a.L,videoId:a.videoId});Jf("seek",G);g.VI({clientPlaybackNonce:a.clientPlaybackNonce},"seek");isNaN(q.U)||E3("pl_ss", q.U,"seek");E3(w,(0,g.Zj)(),"seek")}q.reset()}}; g.C.Ib=function(q){this.EH(q)}; g.C.l1=function(){this.publish("SEEK_COMPLETE")}; g.C.Mr=function(q){var a=this.n0,w=this.videoData.clientPlaybackNonce,G=this.playerType;if(q.scope===4){var k=q.type;if(k){var b=a.UA(),O=b.getVideoData().clientPlaybackNonce;G===1&&(O=w);if(G=uzG(a,O)){if(w=G.getVideoData())q.writePolicy===2&&w.sabrContextUpdates.has(k)||(q.sendByDefault&&w.BT.add(k),w.sabrContextUpdates.set(k,q)),a.T("html5_enable_t1_enf_on_sabr")&&(q=k===5,k=lbl(w.playerResponse),q?(q=k?1:0,gQ(q,"m.p_",{}),p_("MBSTAT",q)):q=1,q===0&&a.MB.zl("onAbnormalityDetected"))}else b.d8("scuset", {ncpf:"1",ccpn:O,crcpn:w})}else g.Qa(Error("b/380308491: contextUpdateType is undefined"))}}; g.C.Cl=function(){if(this.playerType===2)return this.n0.Cl("")}; g.C.getCurrentTime=function(q){return this.D0.getCurrentTime(q===void 0?!1:q)}; g.C.E9=function(){return this.D0.E9()}; g.C.Ye=function(){return this.D0.Ye()}; g.C.Ak=function(){return this.Ye()}; g.C.HQ=function(){return this.D0.HQ()}; g.C.getPlaylistSequenceForTime=function(q){return this.videoData.getPlaylistSequenceForTime(q-this.g$())}; g.C.oO=function(){var q=NaN;this.mediaElement&&(q=this.mediaElement.oO());return q>=0?q:this.getCurrentTime()}; g.C.OB=function(){var q;return((q=this.videoData.V)==null?0:q.OB)?this.videoData.V.OB(this.getCurrentTime()-this.g$()):this.mediaElement&&(q=this.mediaElement.ol())&&(q=q.getTime(),!isNaN(q))?q/1E3+this.getCurrentTime():NaN}; g.C.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.g$():this.K0()?this.K0():0}; g.C.Xh=function(){var q=new Itm;if(this.loader){var a=this.V7.schedule,w=this.V7.TZ();w=w===void 0?!1:w;q.M$=a.y7;q.ZN=a.le;q.bandwidthEstimate=tj(a);if(w){w=(a.S.CO()*1E3).toFixed();var G=(a.f7.CO()*1E3).toFixed(),k=oW(a).toFixed(2),b=((a.X.CO()||0)*1E9).toFixed(2),O=a.W.CO().toFixed(0),e=a.EK.CO().toFixed(0),N=a.J.percentile(.5).toFixed(2),Y=a.J.percentile(.92).toFixed(2),P=a.J.percentile(.96).toFixed(2),K=a.J.percentile(.98).toFixed(2);a.V?a.V.reset():a.V=new hj;a.V.add(a.jt);a.V.add(a.interruptions.length); for(var d=0,T=a.interruptions.length-1;T>=0;T--){var F=a.interruptions[T];a.V.add(F-d);d=F}d=0;for(T=a.Y.length-1;T>=0;T--){F=a.Y[T];var J=F.stamp/36E5;a.V.add(J-d);d=J;a.V.add(F.net/1E3);a.V.add(F.max)}a=a.V.m$();q.V={ttr:w,ttm:G,d:k,st:b,bw:O,abw:e,v50:N,v92:Y,v96:P,v98:K,"int":a}}TLj(this.loader,q)}else this.mediaElement&&(q.Ke=xj(this.mediaElement));q.M$=this.M$;q.ZN=this.ZN;q.W=this.isAtLiveHead()&&this.isPlaying()?wfl(this):NaN;a=this.D0;a=a.V?p6(a.V):0;q.Y=a;return q}; g.C.X8=function(q,a){this.ZN+=q;this.M$+=a}; g.C.pS=function(){return this.mediaElement?g.WD(this.videoData)?1:Ds(this.videoData)?this.isAtLiveHead()||this.dF()?1:this.D0.pS():this.mediaElement.pS():0}; g.C.Ad=function(){var q=this.ib,a=yF(q,"bandwidth"),w=yF(q,"bufferhealth"),G=yF(q,"livelatency"),k=yF(q,"networkactivity"),b=RO(q,"bandwidth"),O=RO(q,"bufferhealth"),e=RO(q,"livelatency");q=RO(q,"networkactivity");var N=this.w6(),Y=N.droppedVideoFrames;N=N.totalVideoFrames;var P=this.getCurrentTime();if(this.BN){var K="IT/"+(this.BN.V.getInfo()+"/"+rq(this.LS()));K+="/"+this.BN.getInfo()}else K="";var d=this.isGapless(),T=this.Qm(),F=this.v7(),J=g.e5(this),Q=this.getPlayerState(),B=this.getPlaylistSequenceForTime(this.getCurrentTime()); a:{var L=0;var M="";if(this.T0){if(this.T0.YU){M="D,";break a}L=this.T0.yv;M=this.T0.PJ.substring(0,4)}L>0?(L="AD"+L+", ",M&&(L+=M+", "),M=L):M=""}return{rA:b,UH:O,currentTime:P,BA:K,droppedVideoFrames:Y,isGapless:d,Qm:T,v4:F,IR:a,Jz:w,V$:G,aq:k,Oe:e,xn:q,xm:J,playerState:Q,KJ:B,wQ:M,totalVideoFrames:N}}; g.C.Kk=function(q){var a={};if(q===void 0?0:q){Object.assign(a,this.nk.Kk());this.mediaElement&&(Object.assign(a,this.mediaElement.Kk()),q=this.w6(),a.dvf=q.droppedVideoFrames,a.tvf=q.totalVideoFrames);this.loader&&Object.assign(a,this.loader.Kk());this.BN&&(a.drm=JSON.stringify(this.BN.Kk()));a.state=this.playerState.state.toString(16);g.v(this.playerState,128)&&(a.debug_error=JSON.stringify(this.playerState.lT));this.Rg()&&(a.prerolls=this.Lb.join(","));this.videoData.OQ&&(a.ismb=this.videoData.OQ); this.videoData.latencyClass!=="UNKNOWN"&&(a.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(a.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)a.is_mosaic=1;this.videoData.cotn&&(a.is_offline=1,a.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(a.playerResponseCpn=this.videoData.playerResponseCpn);this.n0.isOrchestrationLeader()&&(a.leader=1);this.videoData.isLivePlayback&& (this.videoData.V&&vw(this.videoData.V)&&(a.segduration=vw(this.videoData.V)),q=this.D0,a.lat=q.S?lUc(q.S.Y):0,a.liveutcstart=this.videoData.liveUtcStartSeconds);a.relative_loudness=this.videoData.E3.toFixed(3);if(q=g.e5(this))a.optimal_format=q.video.qualityLabel;a.user_qual=T1();a.release_version=l[40]}a.debug_videoId=this.videoData.videoId;return a}; g.C.addCueRange=function(q){this.Bh([q])}; g.C.removeCueRange=function(q){this.oG.kE([q])}; g.C.Nm=function(){var q=this.oG;if(q.aW.B().T("html5_sort_cueranges_on_update")&&!(q.Me().length<=0||q.t2())){var a=q.V;a.array.sort(a.V)}q.sync()}; g.C.fS=function(q,a){return this.oG.fS(q,a)}; g.C.Bh=function(q,a){this.oG.N9(q,a)}; g.C.Iy=function(q){this.oG.kE(q)}; g.C.Me=function(){return this.oG.Me()||[]}; g.C.mp=function(){return this.wc}; g.C.yT=function(){return this.visibility.yT()}; g.C.WC=function(){this.mediaElement&&this.mediaElement.WC()}; g.C.Tz8=function(){b_(this)}; g.C.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.C.Yg=function(){g.JE(this.SQ)}; g.C.l09=function(){this.EQ();this.publish("onLoadProgress",this.pS())}; g.C.gV=function(q){var a=q.target.dh();if(this.mediaElement&&this.mediaElement.dh()&&this.mediaElement.dh()===a){Sol(this,q.type);switch(q.type){case "error":var w=Bz(this.mediaElement)||"",G=this.mediaElement.Jp();if(w==="capability.changed"){this.T("html5_restart_on_capability_change")?(this.d8("capchg",{msg:G}),this.Uq(!0)):kk(this);return}if(this.mediaElement.hasError()&&rPU(this.qy,w,{msg:G,trg:"elementevt"}))return;if(this.isBackground()&&this.mediaElement.Ne()===4){this.MX();l_(this,"unplayable"); return}break;case "durationchange":w=this.mediaElement.getDuration();isFinite(w)&&(!this.w8||w>0)&&w!==1&&this.SD(w);break;case "ratechange":this.loader&&this.loader.setPlaybackRate(this.mediaElement.getPlaybackRate());R5V(this.oG);this.nk.onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":HXl(this);this.publish("onLoadedMetadata");AAl(this);w=this.OB();this.videoData.Gd&&(this.videoData.Gd=w);break;case "loadstart":AAl(this);break;case "progress":case "suspend":this.RZ.qq(); break;case "playing":this.ji.z6("plev");this.bv&&!v7(this)&&(this.bv=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{e1:"videoplayer_onPlaying"})));break;case "timeupdate":w=this.mediaElement&&!this.mediaElement.getCurrentTime();G=this.mediaElement&&this.mediaElement.rl()===0;if(w&&(!this.pX||G))return;this.pX=this.pX||!!this.mediaElement.getCurrentTime();Q3c(this);this.EQ();if(!this.mediaElement||this.mediaElement.dh()!==a)return;this.publish("onVideoProgress", this.getCurrentTime());break;case "waiting":if(this.mediaElement.ek().length>0&&this.mediaElement.xe().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.loader)return;this.T("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.rl()>2||!this.mediaElement.isSeeking()&&kj(this.mediaElement.xe(),this.mediaElement.getCurrentTime()))&&(w=this.mediaElement.Kk(),w.bh=xj(this.mediaElement).toFixed(3),this.d8("uwe",w));break;case "resize":HXl(this); this.videoData.U&&this.videoData.U.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.mD&&g.v(this.playerState,8)&&!g.v(this.playerState,1024)&&this.getCurrentTime()===0&&g.Ph){l_(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.dh()===a){p1m(this.D0,q);this.publish("videoelementevent",q);a=this.playerState;G=this.DC;var k=this.mediaElement;w=this.videoData.clientPlaybackNonce;if(!g.v(a,128)){var b=a.state; k=k?k:q.target;var O=k.getCurrentTime();if(!g.v(a,64)||q.type!=="ended"&&q.type!=="pause"){var e=k.getDuration();e=k.isEnded()||O>1&&Math.abs(O-e)<1.1;var N=q.type==="pause"&&k.isEnded();O=q.type==="ended"||q.type==="waiting"||q.type==="timeupdate"&&!g.v(a,4)&&!Sx(G,O);if(N||e&&O)k.aI()>0&&k.dh()&&(b=14);else switch(q.type){case "error":Bz(k)&&(b|=128);break;case "pause":g.v(a,256)?(b^=256)||(b=64):g.v(a,32)||g.v(a,2)||g.v(a,4)||(b=4,g.v(a,1)&&g.v(a,8)&&(b|=1));break;case "playing":O=b;b=(b|8)&-1093; O&4?(b|=1,nW(G,k,!0)):Sx(G,k.getCurrentTime())&&(b&=-2);g.v(a,1)&&nW(G,k)&&(b|=1);break;case "seeking":b|=16;g.v(a,8)&&(b|=1);b&=-3;break;case "seeked":b&=-17;nW(G,k,!0);break;case "waiting":g.v(a,2)||(b|=1);nW(G,k);break;case "timeupdate":O=g.v(a,16),e=g.v(a,4),(g.v(a,8)||O)&&!e&&Sx(G,k.getCurrentTime())&&(b=8),nW(G,k)&&(b|=1)}}G=b;b=null;G&128&&(b=q.target,k=Bz(b),O=1,k?(k==="capability.changed"&&(O=2),e="GENERIC_WITHOUT_LINK",N=b.Kk(),N.mediaElem="1",N.trg="melem",/AUDIO_RENDERER/.test(b.Jp())&& (e="HTML5_AUDIO_RENDERER_ERROR"),b={errorCode:k,errorMessage:g.uB[e]||"",Yj:e,D3:YG(N),wH:O,cpn:a.lT?a.lT.cpn:""}):b=null,b&&(b.cpn=w));a=M7(a,G,b)}!g.v(this.playerState,1)&&g.v(a,1)&&he_(this,"evt"+q.type);this.UQ(a)}}}; g.C.kll=function(q){q=q.V.availability==="available";q!==this.wc&&(this.wc=q,this.publish("airplayavailabilitychange"))}; g.C.b7B=function(){var q=(0,g.Zj)(),a=this.mediaElement.yT();this.d8("airplay",{ia:a});!a&&!isNaN(this.s8)&&q-this.s8<2E3||(this.s8=q,a!==this.yT()&&(q=this.visibility,q.V!==a&&(q.V=a,q.wx()),this.d8("airplay",{rbld:a}),this.zk()),this.publish("airplayactivechange"))}; g.C.Xb=function(q){if(this.loader){var a=this.loader,w=a.W,G=a.getCurrentTime(),k=Date.now()-w.J;w.J=NaN;w.d8("sdai",{adfetchdone:q,d:k});q&&!isNaN(w.X)&&w.U!==3&&Dx(w.loader,G,w.X,w.L);w.policy.U?w.D=NaN:w.Y=NaN;WF(w,4,w.U===3?"adfps":"adf");ir(a)}}; g.C.kM=function(){g.Pr(this.Q9);this.dn.stop();this.videoData.UK=!0;this.V7.RE=!0;this.V7.uF=0;var q=this.qy;if(q.videoData.U){var a=q.cT.D,w=q.videoData.U.K7;a.Y.has(w)&&(a.Y.delete(w),a.U=!0)}q.V.stop();this.Tb();g.v(this.playerState,8)&&this.UQ(SN(this.playerState,65));this.CU=!1;q=this.nk;q.V&&V5U(q.V);q.U&&(q=q.U,a=g.wk(q.provider),q.V<0&&(q.V=a,q.delay.start()),q.U=a,q.Y=a);g.tD(this.VB);this.publish("playbackstarted");(q=g.aB("yt.scheduler.instance.clearPriorityThreshold"))?q():iM(0)}; g.C.Tb=function(){var q=this.n0.UB(),a={},w={};!mu("pbs",this.ji.timerName)&&NZ.measure&&NZ.getEntriesByName&&(NZ.getEntriesByName("mark_nr")[0]?w0f("mark_nr"):w0f());q.videoId&&(a.videoId=q.videoId);q.clientPlaybackNonce&&!this.T("web_player_early_cpn")&&(a.clientPlaybackNonce=q.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(w.isPausedOnLoad=!0);w.itag=q.U?Number(q.U.itag):-1;q.qM&&(w.preloadType=String(this.c$?2:1));a.liveStreamMode=g08[uN(q)];a.playerInfo=w;this.ji.infoGel(a); if(this.loader){q=this.loader.timing;window&&window.performance&&window.performance.getEntriesByName&&(q.W&&(a=window.performance.getEntriesByName(q.W),a.length&&(a=a[0],q.tick("vri",a.fetchStart),q.tick("vdns",a.domainLookupEnd),q.tick("vreq",a.requestStart),q.tick("vrc",a.responseEnd))),q.U&&(a=window.performance.getEntriesByName(q.U),a.length&&(a=a[0],q.tick("ari",a.fetchStart),q.tick("adns",a.domainLookupEnd),q.tick("areq",a.requestStart),q.tick("arc",a.responseEnd))));q=q.ticks;for(var G in q)q.hasOwnProperty(G)&& this.ji.tick(G,q[G])}}; g.C.EQ=function(q){var a=this;q=q===void 0?!1:q;if(this.mediaElement&&this.videoData){LdG(this.D0,this.isPlaying());var w=this.getCurrentTime();if(this.loader&&(g.v(this.playerState,4)&&g.WD(this.videoData)||g.v(this.playerState,32)&&rM(this.videoData)||FEJ(this.loader,w),this.T("html5_log_centralized_player_time")&&Math.abs(this.getCurrentTime()-this.loader.currentTime)>10)){var G;this.d8("sabrSeekRefactorCmt",{cmt:this.getCurrentTime(),loaderCmt:(G=this.loader)==null?void 0:G.currentTime},!0)}w> 5&&(this.D0.W=w);(G=g.zV())?g.fJ.FS(this.SX):g.Yn(this.SX);var k=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!k||Fe(this.videoData))&&!g.v(this.playerState,128)){var b=function(){if(a.mediaElement&&!g.v(a.playerState,128)){a.V7.TZ()&&Sol(a,"pfx");var O=a.getCurrentTime();a.T("html5_buffer_underrun_transition_fix")&&(O-=a.g$());var e=xj(a.mediaElement),N=g.v(a.playerState,8),Y=Sx(a.DC,O),P=ij_(a.DC,O,(0,g.Zj)(),e);N&&Y?a.UQ(SN(a.playerState,1)):N&&P?(N=a.getDuration(),Y=SO(a.videoData), N&&Math.abs(N-O)<1.1?(a.d8("setended",{ct:O,bh:e,dur:N,live:Y}),a.mediaElement.w2()?(a.logger.debug("seek to 0 because of looping"),a.seekTo(0,{e1:"videoplayer_loop",seekSource:37})):a.Np()):(a.playerState.isBuffering()||he_(a,"progress_fix"),a.UQ(hB(a.playerState,1)))):(N&&!Y&&!P&&O>0&&(N=(Date.now()-a.ob)/1E3,Y=a.getDuration(),O>Y-1&&a.d8("misspg",{t:O.toFixed(2),d:Y.toFixed(2),r:N.toFixed(2),bh:e.toFixed(2)})),a.playerState.isPaused()&&a.playerState.isBuffering()&&xj(a.mediaElement)>5&&a.UQ(SN(a.playerState, 1)));a.EQ()}}; this.mediaElement.ek().length===0?this.SX=G?g.fJ.gh(b,100):g.ee(b,100):this.SX=G?g.fJ.gh(b,500):g.ee(b,500)}this.videoData.RA=w;!q&&this.isPlaying()&&Liy(this);D_j(this.KE,this.WJ,this.Z0(),this.isBackground())&&az(this);this.publish("progresssync",q);k&&Fe(this.videoData)&&this.publish("onVideoProgress",this.getCurrentTime())}}; g.C.gC=function(){this.q_("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.C.v7=function(){return this.nk.v7()}; g.C.hk=function(){return this.loader?this.loader.hk():tj(this.V7.schedule,!0)}; g.C.UQ=function(q){if(!g.Hz(this.playerState,q)){this.logger.debug(function(){return"Setting state "+q.toString()}); var a=new g.km(q,this.playerState);this.playerState=q;fEl(this);var w=!this.o7.length;this.o7.push(a);var G=this.mediaElement&&this.mediaElement.isSeeking();g.Ox(a,1)&&this.loader&&XEf(this.loader);G=a.oldState.state===8&&!G;g.Ox(a,1)&&G&&g.v(this.playerState,8)&&!g.v(this.playerState,64)&&this.loader&&(j$G(this.loader),this.mediaElement&&xj(this.mediaElement)>=5&&i6U(this.KE,this.WJ)&&az(this));(G=g.Wo(this.V7.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.v(q,1)&&(g.v(q,8)||g.v(q, 16))?this.PX.start(G):this.PX.stop();(bc(a,8)<0||g.Ox(a,1024))&&this.dn.stop();!g.Ox(a,8)||this.videoData.UK||g.v(a.state,1024)||this.dn.start();g.v(a.state,8)&&bc(a,16)<0&&!g.v(a.state,32)&&!g.v(a.state,2)&&this.playVideo();g.v(a.state,2)&&Ds(this.videoData)&&(this.SD(this.getCurrentTime()),this.EQ(!0));g.Ox(a,2)&&(this.mj(!0),this.V7.TZ()&&this.T("html5_sabr_parse_live_metadata_playback_boundaries")&&rM(this.videoData)&&this.videoData.V&&(G={minst:""+this.videoData.V.i5,cminst:""+(this.videoData.V.B5()+ this.g$()),maxst:""+this.videoData.V.zj,hts:""+this.videoData.V.UK,cmaxst:""+(this.videoData.V.K0()+this.g$())},this.d8("sabrSeekableBoundaries",G)));g.Ox(a,128)&&this.MX();this.videoData.V&&this.videoData.isLivePlayback&&!this.Gq&&(bc(a,8)<0?njc(this.videoData.V):g.Ox(a,8)&&this.videoData.V.resume());Aqc(this.D0,a);csc(this.nk,a);if(w&&!this.t2())try{for(var k=g.V(this.o7),b=k.next();!b.done;b=k.next()){var O=b.value;ysG(this.oG,O);this.publish("statechange",O)}}finally{this.o7.length=0}}}; g.C.Xv=function(){this.ji.tick("qoes")}; g.C.EC=function(){this.D0.EC()}; g.C.h9=function(q,a,w,G){a:{var k=this.qy;G=G===void 0?"LICENSE":G;w=w.substring(0,256);var b=Kf(a);q==="drm.keyerror"&&this.BN&&this.BN.U.keys.length>1&&k.Y<96&&(q="drm.sessionlimitexhausted",b=!1);var O=k.cT.experiments.Zh("html5_retry_on_drm_unavailable"),e=k.cT.experiments.Zh("html5_retry_on_drm_key_error"),N=/^(closedShouldNotRetry|t\.prefixedKeyError)(.*)/;if(O&&q==="drm.unavailable"||e&&q==="drm.keyerror"&&!w.match(N))k.q9("qoe.restart",{retryOnDrmError:1,e:q,detail:w}),k.aW.Uq(!0);else{if(b)if(k.videoData.U&& k.videoData.U.video.isHdr())H6K(k,q);else{if(k.aW.q_(q,a,G,w),x__(k,{detail:w}))break a}else k.q9(q,{detail:w});q==="drm.sessionlimitexhausted"&&(k.d8("retrydrm",{sessionLimitExhausted:1}),k.Y++,MMc(k.aW))}}}; g.C.El2=function(){var q=this,a=g.Wo(this.V7.experiments,"html5_license_constraint_delay"),w=iO();a&&w?(a=new g.o1(function(){q.Zt();b_(q)},a),g.p(this,a),a.start()):(this.Zt(),b_(this))}; g.C.Wk=function(q){this.publish("heartbeatparams",q)}; g.C.fb=function(q){this.d8("keystatuses",qOm(q));var a="auto",w=!1;this.videoData.U&&(a=this.videoData.U.video.quality,w=this.videoData.U.video.isHdr());a:{switch(a){case "highres":case "hd2880":a="UHD2";break;case "hd2160":case "hd1440":a="UHD1";break;case "hd1080":case "hd720":a="HD";break;case "large":case "medium":case "small":case "light":case "tiny":a="SD";break;default:a="";break a}w&&(a+="HDR")}a=dk(q)?Tx(q,a):q.Y.includes(a);if(this.T("html5_enable_vp9_fairplay")){if(w)if(q.X){var G;if((G= this.BN)==null?0:eE(G.V))if((w=this.BN)==null)w=0;else{for(var k=G=void 0,b=g.V(w.U.values()),O=b.next();!O.done;O=b.next())O=O.value,G||(G=aIJ(O,"SD")),k||(k=aIJ(O,"AUDIO"));w.Qp({sd:G,audio:k});w=G==="output-restricted"||k==="output-restricted"}else w=!a;if(w){this.d8("drm",{dshdr:1});H6K(this.qy);return}}else{this.videoData.Ki||(this.videoData.Ki=!0,this.d8("drm",{dphdr:1}),this.Uq(!0));return}var e;if((e=this.BN)==null?0:eE(e.V))return}else if(e=q.X&&a,w&&!e){H6K(this.qy);return}a||Tx(q,"AUDIO")&& Tx(q,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"),q=qOm(q),this.ev?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.T("html5_report_fatal_drm_restricted_error_killswitch")||this.q_("drm.keyerror",2,void 0,"info."+q)):(this.ev=!0,this.q9(new g.PY("qoe.restart",Object.assign({},{retrydrm:1},q))),az(this),MMc(this)))}; g.C.ey7=function(){if(!this.videoData.UK&&this.mediaElement&&!this.isBackground()){var q="0";this.mediaElement.rl()>0&&xj(this.mediaElement)>=5&&this.videoData.W&&this.videoData.W.V&&(this.UQ(hB(this.playerState,1)),he_(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),q="1");fEl(this);var a=this.videoData.W;q={restartmsg:q,mfmt:!Qq(this.videoData),mdrm:!(!(a&&a.videoInfos&&a.videoInfos.length&&a.videoInfos[0].vN)||this.BN),mfmtinfo:!this.videoData.U,prerolls:this.Rg()?this.Lb.join(","): "0"};if(this.BN){a=this.BN;if(a.U.size<=0){var w="ns;";a.J||(w+="nr;");a=w+="ql."+a.W.length}else a=qOm(a.U.values().next().value),a=YG(a);q.drmp=a}var G;Object.assign(q,((G=this.loader)==null?void 0:G.Kk())||{});var k;Object.assign(q,((k=this.mediaElement)==null?void 0:k.Kk())||{});this.nk.q9("qoe.start15s",YG(q));this.publish("loadsofttimeout")}}; g.C.SD=function(q){this.videoData.lengthSeconds!==q&&(this.videoData.lengthSeconds=q,b_(this))}; g.C.mj=function(q,a){var w=this;q=q===void 0?!1:q;if(!this.Sy)if(mu("att_s","player_att")||Af("att_s",void 0,"player_att"),this.T("use_rta_for_player"))(function(){var k,b,O,e;return g.h(function(N){switch(N.U){case 1:if(!(k=q)){N.Gl(2);break}return g.n(N,g.MCf(),3);case 3:k=!N.V;case 2:if(k)return N.return();g.ml(N,4);b=jzJ(w.nk);if(!b)throw Error();O={};return g.n(N,g.n3l((O.cpn=w.videoData.clientPlaybackNonce,O.encryptedVideoId=w.videoData.videoId||"",O),3E4),6);case 6:e=N.V;if(w.Sy)throw Error(); if(!e.challenge)throw g.Qa(Error("Not sending attestation ping; no attestation challenge string")),Error();w.Sy=!0;var Y=[e.challenge];e.error?Y.push("r1c="+e.error):e.webResponse&&Y.push("r1a="+e.webResponse);var P;((P=e.adblockReporting)==null?void 0:P.reportingStatus)!==void 0&&Y.push("r6a="+e.adblockReporting.reportingStatus);var K;((K=e.adblockReporting)==null?void 0:K.broadSpectrumDetectionResult)!==void 0&&Y.push("r6b="+e.adblockReporting.broadSpectrumDetectionResult);b(Y.join("&"));Af("att_f", void 0,"player_att");g.xl(N,0);break;case 4:g.rc(N),Af("att_e",void 0,"player_att"),g.Jm(N)}})})().then(function(){a==null||a()}); else{var G=new g.IbK(this.videoData);if("c1a"in G.Qh&&!g.Nq.isInitialized()){Af("att_wb",void 0,"player_att");this.r_===2&&Math.random()<.01&&g.Qa(Error("Botguard not available after 2 attempts"));if(q)return;if(this.r_<5){g.tD(this.aC);this.r_++;return}}(G=g.uoJ(G))?(Af("att_f",void 0,"player_att"),XPm(this.nk,G),this.Sy=!0):Af("att_e",void 0,"player_att")}}; g.C.R_=function(q){q=q===void 0?!1:q;return SO(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.dF()||g.WD(this.videoData))?this.getCurrentTime():this.K0(q)}; g.C.pm=function(){return this.B5()}; g.C.K0=function(q){return this.D0.K0(q===void 0?!1:q)}; g.C.B5=function(){return this.D0.B5()}; g.C.g$=function(){return this.D0?this.D0.g$():0}; g.C.getStreamTimeOffset=function(){return this.D0?this.D0.getStreamTimeOffset():0}; g.C.ZJ=function(){var q=0;this.V7.T("web_player_ss_media_time_offset")&&(q=this.getStreamTimeOffset()===0?this.g$():this.getStreamTimeOffset());return q}; g.C.setPlaybackRate=function(q){var a;this.playbackRate!==q&&X7l(this.KE,(a=this.videoData.W)==null?void 0:a.videoInfos)&&(this.playbackRate=q,az(this));this.playbackRate=q;this.mediaElement&&this.mediaElement.setPlaybackRate(q)}; g.C.getPlaybackRate=function(){return this.playbackRate}; g.C.getPlaybackQuality=function(){var q="unknown";if(this.videoData.U&&(q=this.videoData.U.video.quality,q==="auto"&&this.mediaElement)){var a=this.T2();a&&a.videoHeight>0&&(q=h8(a.videoWidth,a.videoHeight))}return q}; g.C.isHdr=function(){return!!(this.videoData.U&&this.videoData.U.video&&this.videoData.U.video.isHdr())}; g.C.sendVideoStatsEngageEvent=function(q,a){var w=this.nk;w.V?(w=xV(w.V,"engage"),w.y7=q,w.send(a)):a&&a()}; g.C.OP=function(q){return this.nk.OP(q)}; g.C.isAtLiveHead=function(q,a){a=a===void 0?!1:a;return SO(this.videoData)&&(this.uG||a)?this.D0.isAtLiveHead(q):!1}; g.C.YK=function(){var q=this.K0(),a=this.getCurrentTime(),w;(w=!SO(this.videoData))||(w=this.D0,w=!(w.V&&w.V.W));return w||this.dF()||isNaN(q)||isNaN(a)?0:Math.max(0,q-a)}; g.C.b0=function(q){(this.uG=q)||this.dn.stop();this.videoData.V&&(q?this.videoData.V.resume():njc(this.videoData.V));if(this.loader){var a=this.videoData.T("html5_disable_preload_for_ssdai_with_preroll")&&this.S_()&&this.videoData.isLivePlayback;q&&!a?this.loader.resume():Yk(this,!0)}g.v(this.playerState,2)||q?g.v(this.playerState,512)&&q&&this.UQ(SN(this.playerState,512)):this.UQ(hB(this.playerState,512));a=this.nk;a.qoe&&(a=a.qoe,g.q_(a,g.wk(a.provider),"stream",[q?"A":"I"]))}; g.C.wZ=function(q){this.nk.q9("player.exception",YG({n:q.name,m:q.message}))}; g.C.mq=qm(22);g.C.TY=qm(51);g.C.nF=function(q){this.nk.nF(q)}; g.C.m_=function(q){this.nk.m_(q)}; g.C.JT=function(q){this.nk.JT(q)}; g.C.h4=qm(28);g.C.Pm=qm(34);g.C.Ta=function(q){this.nk.Ta(q)}; g.C.T6=function(q,a,w,G){this.nk.T6(q,a,w,G)}; g.C.dZ=function(){this.d8("hidden",{},!0)}; g.C.w6=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.C.PY=function(){return this.loader?this.loader.PY():!0}; g.C.setLoop=function(q){this.loop=q;this.mediaElement&&!g.Nh(this.V7)&&this.mediaElement.setLoop(q)}; g.C.w2=function(){return this.mediaElement&&!g.Nh(this.V7)?this.mediaElement.w2():this.loop}; g.C.wP=function(q){this.d8("timestamp",{o:q.toString()});this.D0.wP(q)}; g.C.A8=function(q){this.ji.tick(q)}; g.C.IG=function(q){return this.ji.IG(q)}; g.C.z6=function(q){this.ji.z6(q)}; g.C.d8=function(q,a,w){this.nk.d8(q,a,w===void 0?!1:w)}; g.C.qP=function(q,a,w){this.nk.d8(q,a,w===void 0?!1:w)}; g.C.q9=function(q){this.nk.q9(q.errorCode,YG(q.details));q=q.errorCode;if(this.videoData.isLivePlayback&&(q==="qoe.longrebuffer"||q==="qoe.slowseek")||q==="qoe.restart"){q=this.loader?Exm(this.loader.videoTrack):{};var a,w;this.d8("lasoe",Object.assign(this.loader?Exm(this.loader.audioTrack):{},(a=this.w8)==null?void 0:(w=a.V)==null?void 0:w.I2()));var G,k;this.d8("lvsoe",Object.assign(q,(G=this.w8)==null?void 0:(k=G.U)==null?void 0:k.I2()))}if(this.T("html5_log_centralized_player_time")){var b;this.d8("sabrSeekRefactorCmt", {cmt:this.getCurrentTime(),loaderCmt:(b=this.loader)==null?void 0:b.currentTime})}}; g.C.e8=function(q,a,w){this.nk.e8(q,a,w)}; g.C.lS=function(q,a,w,G,k,b,O,e){var N;if((N=this.videoData.V)!=null&&N.isLive){var Y=a.playerType===2?a:q,P=q.videoData.videoId,K=a.videoData.videoId;if(P&&K){N=this.nk;if(N.qoe){var d=N.qoe,T=q.cpn,F=a.cpn,J=Y.videoData.tp,Q=d.provider.videoData.clientPlaybackNonce,B=d.provider.videoData.videoId,L=F!==Q&&K!==B;Q=T!==Q&&P!==B;d.reportStats();d.adCpn&&d.adCpn!==T||(d.adCpn=Q?T:"",d.Ij=Q?P:"",d.adFormat=Q?J:void 0,MwU(d,b?4:k?2:0,F,K,G),d.reportStats(),d.adCpn=L?F:"",d.Ij=L?K:"",d.adFormat=L?J:void 0, MwU(d,b?5:k?3:1,T,P,w),d.reportStats())}w=q.cpn;if(N.W.has(w)){if(k=N.W.get(w),rk(k,!0).send(),B7(k),w!==N.provider.videoData.clientPlaybackNonce){LpV(k);var M;(M=N.V)==null||JsV(M);N.W.delete(w)}}else N.I8=N.provider.videoData.clientPlaybackNonce,N.I8&&N.V&&(N.W.set(N.I8,N.V),rk(N.V).send(),B7(N.V));M=a.cpn;Y=Y.videoData;G-=this.ZJ();if(N.W.has(M)){G=N.W.get(M);var H=G.W&&isNaN(G.D)?L6(G):NaN;G=xJf(G,!1);isNaN(H)||(G.X=H);G.send()}else G=okl(N,N.provider,Y,G),N.W.set(M,G),Bzm(G,new g.km(hB(new g.rD, 8),new g.rD)),V5U(G),(H=N.V)==null||B7(H);N.I8=M;if(this.T("html5_unify_csi_server_stitched_transition_logging")){if(N=this.ji,H=a.cpn,G=this.videoData.clientPlaybackNonce,a=a.videoData,q=(q.cpn===G?"video":"ad")+"_to_"+(H===G?"video":"ad"),q!=="video_to_ad"){G=q==="ad_to_video"?void 0:a;Y=G==null?void 0:G.hU;M={};if(a==null?0:a.L)M.cttAuthInfo={token:a.L,videoId:a.videoId};O&&(M.startTime=O);Jf(q,M);var X,D,z;O={targetVideoId:(X=a==null?void 0:a.videoId)!=null?X:"empty_video",targetCpn:H,adVideoId:(D= G==null?void 0:G.videoId)!=null?D:"empty_video",adClientPlaybackNonce:(z=Y==null?void 0:Y.cpn)!=null?z:G==null?void 0:G.clientPlaybackNonce};Y&&(O.adBreakType=Y.adBreakType,O.adType=Y.adType);g.VI(O,q);Co(N,e,q)}}else X=this.ji,z=this.videoData.clientPlaybackNonce,D=a.videoData,z=(q.cpn===z?"video":"ad")+"_to_"+(a.cpn===z?"video":"ad"),q={},D.L&&(q.cttAuthInfo={token:D.L,videoId:D.videoId}),O&&(q.startTime=O),Jf(z,q),g.VI({targetVideoId:D.videoId,targetCpn:a.cpn,isSsdai:!0},z),O||Co(X,e,z)}}else this.logger.V(360717806, "SSTEvent for nonSS")}; g.C.gq=function(){var q=this.n0,a=q.Cq;q.Cq=[];return a}; g.C.JI=function(q){this.videoData.ZK=!0;this.q9(new g.PY("sabr.fallback",q));this.Uq(!0)}; g.C.EF=function(q,a){this.videoData.Vb=!0;if(a===void 0||a)this.q9(new g.PY("qoe.restart",q)),this.Uq(!0)}; g.C.ED=function(q){this.d8("sdai",{aftimeout:q});this.q9(new g.PY("ad.fetchtimeout",{timeout:q}))}; g.C.er=function(q,a){this.d8("timelineerror",q);q=new g.PY("dai.timelineerror",q);a?this.q_("dai.timelineerror",1,"RETRYABLE_ERROR",YG(q.details)):this.q9(q)}; g.C.cI=function(){return g.wk(this.nk.provider)}; g.C.getPlayerSize=function(){return this.M7.getPlayerSize()}; g.C.uM=function(){return this.M7.uM()}; g.C.FF=function(){return this.ji}; g.C.Eb=function(){return this.n0.Eb()}; g.C.getVolume=function(){return this.n0.getVolume()}; g.C.UE=function(){return this.n0.UE()}; g.C.isMuted=function(){return this.n0.isMuted()}; g.C.n$=function(){return this.n0.n$()}; g.C.V1=function(){this.Gq=!0}; g.C.T=function(q){return this.V7.T(q)}; g.C.tV=function(q,a,w,G,k){this.d8("xvt",{m:q,g:a?1:0,tt:w?1:0,np:G?1:0,c:k})}; g.C.Sr=function(){var q;(q=this.loader)==null||q.resume()}; g.C.S_=function(){return g.Vx(this.Lb,"ad")}; g.C.Zm=function(){var q=this.getCurrentTime(),a=q-this.g$();var w=this.mediaElement?O2(this.mediaElement.xe()):0;w=Math.floor(Math.max(w-a,0))+100;var G;return((G=this.loader)==null?0:G.Zm(a,w))?(this.d8("sdai",{skipad:1,ct:a.toFixed(3),adj:w.toFixed(3)}),rM(this.videoData)&&this.loader.seek(a+w,{seekSource:89,e1:"videoplayer_skipServerStitchedAd"}),X1m(this.D0,q),!0):!1}; g.C.TZ=function(){return this.V7.TZ()}; g.C.g2=function(){if(this.T("html5_generate_content_po_token"))return this.videoData.z9||"";this.n0.K1();return this.V7.nu||""}; g.C.dc=function(){if(this.videoData.videoId)return this.videoData.ST}; g.C.M_=function(){return this.videoData.videoId}; g.C.xp=function(){return this.n0.b7}; g.C.fC=function(){return this.CU}; g.C.gp=function(){return this.n0.gp()}; g.C.Qz=function(q,a,w){this.UQ(hB(this.playerState,16,w));this.D0.Qz(q,a)}; g.C.prefetchKeyPlay=function(){}; g.C.nK=function(){this.D0.nK()}; g.C.MV=function(q,a){var w=this.T("html5_generate_content_po_token")?this.videoData:void 0;this.n0.MV(q,a,w)}; g.C.gJ=function(q,a){this.nk.gJ(q,a)}; g.C.Dk=function(){return this.nk.Dk()}; g.C.Em=function(){return this.videoData.dw}; g.C.Qm=function(){return this.n0.Qm()}; g.C.FP=function(){return this.n0.FP(this)}; g.C.Zg=function(){this.cO=!0}; g.C.qr=function(q){var a;(a=this.loader)==null||a.qr(q)};g.Z(cAy,Km);g.Z(Kh,EI);Kh.prototype.V=function(q){q&&Vf(this,this.j.getLoopVideo());this.j.logVisibility(this.element,q)}; Kh.prototype.logClick=function(){this.j.logClick(this.element)}; Kh.prototype.onLoopChange=function(q){Vf(this,q)}; Kh.prototype.U=function(q){this.j.setLoopVideo(q)};g.Z(pf_,Km);g.Z(UV_,Km);g.C=UV_.prototype;g.C.seekToChapterWithAnimation=function(q){var a=this;if(g.MT(this.api)&&!(q<0)){var w=this.api.getVideoData(),G=w.VT;if(G&&q=0)return;a=~a;g.U6(this.items,a,0,q);Fr(this.menuItems.element,q.element,a)}q.subscribe("size-change",this.Rs,this);this.menuItems.publish("size-change")}; g.C.Ov=function(q){q.unsubscribe("size-change",this.Rs,this);this.t2()||(g.mU(this.items,q),this.menuItems.element.removeChild(q.element),this.menuItems.publish("size-change"))}; g.C.Rs=function(){this.menuItems.publish("size-change")}; g.C.focus=function(){for(var q=0,a=0;a1&&g.rz(this)}; g.C.B_=function(){ELU(this);this.Fw&&(CRm(this),g.qz(this.element,this.size))}; g.C.Iw=function(){var q=this.V.pop();ZEc(this,q,this.V[this.V.length-1],!0)}; g.C.SE=function(q){if(!q.defaultPrevented)switch(q.keyCode){case 27:this.DZ();q.preventDefault();break;case 37:this.V.length>1&&this.Iw();q.preventDefault();break;case 39:q.preventDefault()}}; g.C.focus=function(){this.V.length&&this.V[this.V.length-1].focus()}; g.C.qB=function(){g.Gd.prototype.qB.call(this);this.L&&this.L.dispose();this.X&&this.X.dispose()};g.Z(nh,g.Lh);nh.prototype.open=function(q,a){this.initialize(q.items)&&this.kF(a,!!a)}; nh.prototype.initialize=function(q){g.xk(this.aN);if(q===void 0||q.length===0)return!1;var a=q.length;q=g.V(q);for(var w=q.next();!w.done;w=q.next())this.Qa(w.value,a--);return!0}; nh.prototype.Qa=function(q,a){q.menuNavigationItemRenderer?mpV(this,q.menuNavigationItemRenderer,a):q.menuServiceItemRenderer&&QJj(this,q.menuServiceItemRenderer,a)};g.Z(MJ,mp);g.C=MJ.prototype;g.C.PU=function(q){q.target!==this.dismissButton.element&&q.target!==this.overflowButton.element&&(this.yH(),this.onClickCommand&&this.j.zl("innertubeCommand",this.onClickCommand))}; g.C.oM=function(){this.enabled=!1;this.J.hide()}; g.C.bI=function(){return!!this.V&&this.enabled}; g.C.onVideoDataChange=function(q,a){this.zF(a);if(this.V){this.Bx();a:if(!this.isCounterfactual){var w,G,k;this.banner.update({title:(w=this.V)==null?void 0:w.title,subtitle:(G=this.V)==null?void 0:G.subtitle,metadata:(k=this.V)==null?void 0:k.metadataText});var b;this.onClickCommand=g.I((b=this.V)==null?void 0:b.onTap,xf);var O;if(q=g.I((O=this.V)==null?void 0:O.onOverflow,xf))this.X=g.I(q,K4l);var e;if((e=this.V)==null?0:e.thumbnailImage){var N,Y;O=((N=this.V)==null?void 0:(Y=N.thumbnailImage)== null?void 0:Y.sources)||[];if(O.length===0)break a;this.thumbnailImage.update({url:O[0].url})}else{var P;if((P=this.V)==null?0:P.thumbnailIconName){var K;this.thumbnailIcon.update({icon:(K=this.V)==null?void 0:K.thumbnailIconName})}}var d;this.shouldShowOverflowButton=!((d=this.V)==null||!d.shouldShowOverflowButton);var T;this.shouldHideDismissButton=!((T=this.V)==null||!T.shouldHideDismissButton)}var F;this.banner.element.setAttribute("aria-label",((F=this.V)==null?void 0:F.a11yLabel)||"");var J; this.St=(J=this.V)==null?void 0:J.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;xpj(this)}}; g.C.fZl=function(){this.isVisible=!0;xpj(this)}; g.C.HkW=function(){this.isVisible=!1;xpj(this)}; g.C.qm=function(){mp.prototype.qm.call(this);this.U&&this.j.logVisibility(this.banner.element,this.isVisible)}; g.C.yH=function(){mp.prototype.yH.call(this,!1);this.U&&this.j.logClick(this.banner.element)}; g.C.A1=function(q){this.L||(this.L=new nh(this.j),g.p(this,this.L));var a,w;if((a=this.X)==null?0:(w=a.menu)==null?0:w.menuRenderer)this.L.open(this.X.menu.menuRenderer,q.target),q.preventDefault()}; g.C.zF=function(){}; g.C.Bx=function(){}; g.C.qB=function(){this.j.XC("suggested_action_view_model");mp.prototype.qB.call(this)};g.Z(hs,MJ); hs.prototype.zF=function(q){var a,w,G;this.productUpsellSuggestedActionViewModel=g.I((a=q.getWatchNextResponse())==null?void 0:(w=a.playerOverlays)==null?void 0:(G=w.playerOverlayRenderer)==null?void 0:G.suggestedActionViewModel,Bpw);var k;if((k=this.productUpsellSuggestedActionViewModel)==null?0:k.content){var b;this.V=g.I((b=this.productUpsellSuggestedActionViewModel)==null?void 0:b.content,Npx)}var O,e;if(this.U=!!((O=this.productUpsellSuggestedActionViewModel)==null?0:(e=O.loggingDirectives)==null? 0:e.trackingParams)){var N,Y;this.j.setTrackingParams(this.banner.element,((N=this.productUpsellSuggestedActionViewModel)==null?void 0:(Y=N.loggingDirectives)==null?void 0:Y.trackingParams)||null)}var P;this.isCounterfactual=!((P=this.productUpsellSuggestedActionViewModel)==null||!P.isCounterfactualServing)}; hs.prototype.Bx=function(){var q=[],a,w=g.V(((a=this.productUpsellSuggestedActionViewModel)==null?void 0:a.ranges)||[]);for(a=w.next();!a.done;a=w.next()){var G=a.value;G&&(a=Number(G.startTimeMilliseconds),G=Number(G.endTimeMilliseconds),isNaN(a)||isNaN(G)||q.push(new g.Xo(a,G,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.j.N9(q)};g.Z(LDJ,Km);g.Z(S5,Km);S5.prototype.onVideoDataChange=function(q,a){var w=this;if(!NT(a)&&(q==="newdata"&&rgy(this),this.V&&q==="dataloaded")){this.V=!1;var G;ok(jZ(r8(this.api.B(),(G=this.api.getVideoData())==null?void 0:g.li(G)),function(k){HEV(w,k)}),function(){w.V=!0})}}; S5.prototype.e2=function(){var q=this;if(g.Nh(this.api.B())){var a,w=g.B8(this.api.B(),(a=this.api.getVideoData())==null?void 0:g.li(a));return jZ(cc(w),function(G){var k=gL();a0(k,G);return q.api.e2(k)})}return cc(this.api.e2())};g.Z(g.HP,g.e1);g.C=g.HP.prototype;g.C.open=function(){g.BP(this.Wq,this.U)}; g.C.sP=function(q){cgU(this);var a=this.options[q];a&&(a.element.setAttribute("aria-checked","true"),this.z0(this.I_(q)),this.W=q)}; g.C.VV=function(q){g.xk(this.U);for(var a={},w=!1,G=0;G=0?this.V.playbackRate:1}catch(q){return 1}}; g.C.setPlaybackRate=function(q){this.getPlaybackRate()!==q&&(this.V.playbackRate=q);return q}; g.C.w2=function(){return this.V.loop}; g.C.setLoop=function(q){this.V.loop=q}; g.C.canPlayType=function(q,a){return this.V.canPlayType(q,a)}; g.C.isPaused=function(){return this.V.paused}; g.C.isSeeking=function(){return this.V.seeking}; g.C.isEnded=function(){return this.V.ended}; g.C.VA=function(){return this.V.muted}; g.C.pZ=function(q){ZT();this.V.muted=q}; g.C.ek=function(){return this.V.played||aY([],[])}; g.C.xe=function(){try{var q=this.V.buffered}catch(a){}return q||aY([],[])}; g.C.C$=function(){return this.V.seekable||aY([],[])}; g.C.ol=function(){var q=this.V;return q.getStartDate?q.getStartDate():null}; g.C.getCurrentTime=function(){return this.V.currentTime}; g.C.setCurrentTime=function(q){this.V.currentTime=q}; g.C.getDuration=function(){return this.V.duration}; g.C.load=function(){var q=this.V.playbackRate;try{this.V.load()}catch(a){}this.V.playbackRate=q}; g.C.pause=function(){this.V.pause()}; g.C.play=function(){var q=this.V.play();if(!q||!q.then)return null;q.then(void 0,function(){}); return q}; g.C.rl=function(){return this.V.readyState}; g.C.aI=function(){return this.V.networkState}; g.C.Ne=function(){return this.V.error?this.V.error.code:null}; g.C.Jp=function(){return this.V.error?this.V.error.message:""}; g.C.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.V instanceof window.HTMLVideoElement&&this.V.getVideoPlaybackQuality)return this.V.getVideoPlaybackQuality();if(this.V){var q=this.V,a=q.webkitDroppedFrameCount;if(q=q.webkitDecodedFrameCount)return{droppedVideoFrames:a||0,totalVideoFrames:q}}return{}}; g.C.yT=function(){return!!this.V.webkitCurrentPlaybackTargetIsWireless}; g.C.WC=function(){return!!this.V.webkitShowPlaybackTargetPicker()}; g.C.togglePictureInPicture=function(){var q=this.V,a=window.document;window.document.pictureInPictureEnabled?this.V!==a.pictureInPictureElement?q.requestPictureInPicture():a.exitPictureInPicture():Cf()&&q.webkitSetPresentationMode(q.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.C.LU=function(){var q=this.V;return new g.Is(q.offsetLeft,q.offsetTop)}; g.C.getSize=function(){return g.gh(this.V)}; g.C.setSize=function(q){g.qz(this.V,q)}; g.C.getVolume=function(){return this.V.volume}; g.C.setVolume=function(q){ZT();this.V.volume=q}; g.C.QD=function(q){this.D[q]||(this.V.addEventListener(q,this.listener),this.D[q]=this.listener)}; g.C.setAttribute=function(q,a){this.V.setAttribute(q,a)}; g.C.removeAttribute=function(q){this.V.removeAttribute(q)}; g.C.hasAttribute=function(q){return this.V.hasAttribute(q)}; g.C.HA=qm(61);g.C.DH=qm(63);g.C.p5=qm(65);g.C.qk=qm(67);g.C.U$=function(){return K2(this.V)}; g.C.Zv=function(q){g.gU(this.V,q)}; g.C.nD=function(q){return g.tM(this.V,q)}; g.C.JA=function(){return g.ZM(document.body,this.V)}; g.C.audioTracks=function(){var q=this.V;if("audioTracks"in q)return q.audioTracks}; g.C.qB=function(){for(var q=g.V(Object.keys(this.D)),a=q.next();!a.done;a=q.next())a=a.value,this.V.removeEventListener(a,this.D[a]);Qy.prototype.qB.call(this)}; g.C.Zr=function(q){this.V.disableRemotePlayback=q};g.Z(i_,g.u);g.Z(Dt,g.u);Dt.prototype.show=function(){g.u.prototype.show.call(this);this.NB();this.MB.T("html5_enable_moving_s4n_window")&&g.Nh(this.MB.B())&&this.S()}; Dt.prototype.hide=function(){g.u.prototype.hide.call(this);this.delay.stop();this.Y.stop()}; Dt.prototype.NB=function(){var q=(0,g.Zj)(),a=iE_(this.MB);WP(this.V,a.bandwidth_samples);WP(this.X,a.network_activity_samples);WP(this.W,a.live_latency_samples);WP(this.U,a.buffer_health_samples);var w={};a=g.V(Object.entries(a));for(var G=a.next();!G.done;G=a.next()){var k=g.V(G.value);G=k.next().value;k=k.next().value;this.J[G]!==k&&(w[G]=" "+String(k));this.J[G]=k}this.update(w);q=(0,g.Zj)()-q>25?5E3:500;this.delay.start(q)}; Dt.prototype.S=function(){this.L?(this.position+=1,this.position>15&&(this.L=!1)):(--this.position,this.position<=0&&(this.L=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.Y.start(2E4)};g.Z(RBf,Km);g.Z(Rz,g.c);Rz.prototype.V=function(){var q=(0,g.Zj)()-this.startTime;q=qthis.Y[q])&&(this.V=q,this.QH())}; g.C.onCueRangeExit=function(q){var a=YSf(this,q);a&&this.V===q&&this.api.zl("innertubeCommand",a);gP(this);this.V=void 0}; g.C.Ib=function(q){this.W=q}; g.C.l1=function(){this.QH();this.W=void 0}; g.C.QH=function(){if(this.V!==void 0){var q=(q=qg(this,this.V))&&q.onCueRangeEnter?BC(q.onCueRangeEnter):void 0;var a=qg(this,this.V);a:if(a&&a.additionalTrigger){var w=g.V(a.additionalTrigger);for(var G=w.next();!G.done;G=w.next())if(G=G.value,G.type){var k=void 0,b=void 0;if((k=this.jt[G.type])==null?0:k((b=G.args)!=null?b:{})){w=!0;break a}}w=!1}else w=!0;q&&w&&(this.api.zl("innertubeCommand",q),PeN(this,a),this.Y[this.V]!==void 0&&this.Y[this.V]++,this.J=!0)}}; g.C.qB=function(){this.timelyActions=this.W=this.V=this.videoId=void 0;this.Y={};this.kE();gP(this);Km.prototype.qB.call(this)};g.Z(TOj,Km);g.Z(aE,EI);aE.prototype.L=function(q){this.Y(q?2:1)}; aE.prototype.U=function(){var q=this.j.getPresentingPlayerType();q===2||q===3?(this.V=!1,this.Wq.Ov(this)):this.V||(q=this.hasVoiceBoostAudioTrack(),this.setEnabled(q),q=this.W()===2&&q,Vf(this,q),this.Wq.Qa(this),this.V=!0)}; aE.prototype.qB=function(){this.Wq.Ov(this);EI.prototype.qB.call(this)};g.Z(wP,Km);wP.prototype.getVoiceBoostUserPreference=function(){return this.V}; wP.prototype.setVoiceBoostUserPreference=function(q){this.api.d8("vb_set",{pref:q});g.AE("yt-player-voice-boost",q);q!==this.V&&(this.V=q,this.updateEnvironmentData(),this.hasVoiceBoostAudioTrack()&&this.api.zk())}; wP.prototype.hasVoiceBoostAudioTrack=function(){var q,a,w=(q=this.api.getVideoData())==null?void 0:(a=q.W)==null?void 0:a.V;return w?In(w,function(G){var k;return((k=G.audio)==null?void 0:k.U)===!0}):!1}; wP.prototype.updateEnvironmentData=function(){this.api.B().Y2=this.V};var Aul=["www.youtube-nocookie.com","www.youtubeeducation.com"];g.Z(bB,Km);bB.prototype.qB=function(){this.X&&(g.Pr(this.X),this.X=void 0);Km.prototype.qB.call(this)}; bB.prototype.K1=function(){(this.U?!this.V:this.W)&&lB(this)}; bB.prototype.lM=function(q,a,w){var G=this;if(FPJ(q)){var k=w||"";if(this.V)a=eW(this,k),Cey(q,a);else{var b=new g.Y8;a.push(b.promise);this.D.promise.then(function(){var O=eW(G,k);Cey(q,O);b.resolve()})}}}; bB.prototype.Ez=function(q){var a=this;if(this.U||this.W)q.z9=eW(this,q.videoId),this.V||(this.Y=new m5,this.D.promise.then(function(){a.ji.IG("pot_if");q.z9=eW(a,q.videoId)}))};g.Z(g.Yq,g.u);g.Yq.prototype.select=function(){this.api.Fj(this.suggestion.videoId,this.suggestion.sessionData,this.suggestion.playlistId,void 0,void 0,this.suggestion.L$||void 0)&&this.api.logClick(this.element)}; g.Yq.prototype.onClick=function(q){if(g.yw(this.api.B())&&this.api.T("web_player_log_click_before_generating_ve_conversion_params")){this.api.logClick(this.element);var a=this.suggestion.La(),w={};g.z4(this.api,w);a=g.sk(a,w);g.mE(a,this.api,q)}else g.J0(q,this.api,this.U,this.suggestion.sessionData||void 0)&&this.select()}; g.Yq.prototype.onKeyPress=function(q){switch(q.keyCode){case 13:case 32:q.defaultPrevented||(this.select(),q.preventDefault())}}; g.Yq.prototype.onVideoDataChange=function(){var q=this.api.getVideoData(),a=this.api.B();this.U=q.J8?!1:a.Y};g.Z(niK,g.u);g.C=niK.prototype;g.C.qB=function(){this.hide();g.JE(this.Y);g.Gr(this.stills);this.stills.length=0;this.U&&this.U.removeEventListener("click",this.GF);this.W&&this.W.removeEventListener("click",this.Zc);this.V&&this.V.removeEventListener("click",this.Zc);g.u.prototype.qB.call(this)}; g.C.Zc=function(q){this.S&&this.S(q)}; g.C.onVideoDataChange=function(){this.videoData=this.player.getVideoData(1);var q,a,w,G,k;var b=(((q=this.videoData)==null?0:(a=q.suggestions)==null?0:a.length)?(w=this.videoData)==null?void 0:w.suggestions:((G=this.videoData)==null?0:g.Vq(G))?[(k=this.videoData)==null?void 0:g.Vq(k)]:[]).slice(0,18);if((q=this.J)&&this.X&&this.L)if(g.sN(q),b.length)for(this.stills.length>b.length&&g.Gr(this.stills.splice(b.length)),this.stills.length=b.length,a=0;a=0;q--)this.features[q].dispose();this.features.length=0;g.c.prototype.qB.call(this)};pg_.prototype.reset=function(){this.V=this.U=NaN};g.C=UNU.prototype;g.C.reset=function(){F2(this.timerName)}; g.C.tick=function(q,a){E3(q,a,this.timerName)}; g.C.IG=function(q){return QI(q,void 0,this.timerName)}; g.C.z6=function(q){g.qx(q,void 0,this.timerName)}; g.C.infoGel=function(q){g.VI(q,this.timerName)};g.Z(oiG,g.ya);g.C=oiG.prototype;g.C.HI=function(q){return this.loop||!!q||this.index+1=0}; g.C.setShuffle=function(q){this.shuffle=q;q=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var a=0;a0)||po(this,1,!0)}; g.C.Pn=function(){this.L=!0;this.V.v5(this.D);this.D=this.V.C(document,"mouseup",this.mZ)}; g.C.mZ=function(){this.L=!1;po(this,8,!1);this.V.v5(this.D);this.D=this.V.C(this.target,"mousedown",this.Pn)}; g.C.xd=function(q){if(q=(q=q.changedTouches)&&q[0])this.jt=q.identifier,this.V.v5(this.S),this.S=this.V.C(this.target,"touchend",this.Kr,void 0,!0),po(this,1024,!0)}; g.C.Kr=function(q){if(q=q.changedTouches)for(var a=0;a1280||k>720)if(a=G.Wm("maxresdefault.jpg"))break;if(b>640||k>480)if(a=G.Wm("maxresdefault.jpg"))break;if(b>320||k>180)if(a=G.Wm("sddefault.jpg")||G.Wm("hqdefault.jpg")||G.Wm("mqdefault.jpg"))break;if(a=G.Wm("default.jpg"))break}g.Jd(q)&&(q=new Image,q.addEventListener("load", function(){l2V()}),q.src=a?a:"",this.api.FF().tick("ftr")); this.Y.style.backgroundImage=a?"url("+a+")":""};g.Z(g.oE,g.u);g.oE.prototype.resize=function(){}; g.oE.prototype.U=function(q){var a=this;this.W=!1;LRl(this);var w=q.Yj,G=this.api.B();w!=="GENERIC_WITHOUT_LINK"||G.L?w==="TOO_MANY_REQUESTS"?(G=this.api.getVideoData(),this.z0(tq(this,"TOO_MANY_REQUESTS_WITH_LINK",G.La(),void 0,void 0,void 0,!1))):w!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||G.L?this.api.B().T("html5_enable_bandaid_error_screen")&&w==="HTML5_SPS_UMP_STATUS_REJECTED"&&!G.L?(G=G.hostLanguage,q="//support.google.com/youtube?p=videoError",G&&(q=g.sk(q,{hl:G})),this.z0(tq(this,"HTML5_SPS_UMP_STATUS_REJECTED", q))):this.api.B().T("enable_adb_handling_in_sabr")&&w==="BROWSER_OR_EXTENSION_ERROR"&&!G.L?(G=G.hostLanguage,q="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",G&&(q=g.sk(q,{hl:G})),this.z0(tq(this,"BROWSER_OR_EXTENSION_ERROR",q))):this.z0(g.IE(q.errorMessage)):this.z0(tq(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(q=G.hostLanguage,w="//support.google.com/youtube/?p=player_error1",q&&(w=g.sk(w, {hl:q})),this.z0(tq(this,"GENERIC_WITH_LINK_AND_CPN",w,!0)),G.N1&&!G.Y&&xnV(this,function(b){if(g.J0(b,a.api,!sV(a.api.B()))){b={as3:!1,html5:!0,player:!0,cpn:a.api.getVideoData().clientPlaybackNonce};var O=a.api;O.WN("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:b});O.isFullscreen()&&O.toggleFullscreen()}})); if(this.W){var k=this.oW("ytp-error-link");k&&(this.api.createClientVe(k,this,216104),this.api.logVisibility(k,!0),xnV(this,function(){a.api.logClick(k)}))}}; var Abl=/([^<>]+)<\/a>/;g.Z(BNf,g.u);BNf.prototype.kL=function(q,a,w){w=w===void 0?!1:w;switch(a){case 1:v1(this,q,this.W,w);break;case 2:v1(this,q,this.Y,w);break;case 3:v1(this,q,this.V,w);break;case 4:v1(this,q,this.U,w)}};g.Z(rbm,g.u);g.C=rbm.prototype;g.C.onClick=function(q){this.innertubeCommand?(this.j.zl("innertubeCommand",this.innertubeCommand),q.preventDefault()):g.J0(q,this.j,!0);this.j.logClick(this.element)}; g.C.onVideoDataChange=function(q,a){MjJ(this,a);this.xw&&hqU(this,this.xw)}; g.C.IS=function(q){var a=this.j.getVideoData();this.videoId!==a.videoId&&MjJ(this,a);this.V&&hqU(this,q.state);this.xw=q.state}; g.C.kF=function(){this.fade.show();this.j.publish("paidcontentoverlayvisibilitychange",!0);this.j.logVisibility(this.element,!0)}; g.C.DZ=function(){this.fade.hide();this.j.publish("paidcontentoverlayvisibilitychange",!1);this.j.logVisibility(this.element,!1)};g.Z(zg,g.u);zg.prototype.hide=function(){this.V.stop();this.message.style.display="none";g.u.prototype.hide.call(this)}; zg.prototype.onStateChange=function(q){this.gG(q.state)}; zg.prototype.gG=function(q){if(g.v(q,128)||this.api.fC())var a=!1;else{var w;a=this.api.T("web_watch_enable_multiview_manager")&&((w=this.api.getVideoData())==null?0:NT(w))?!1:g.v(q,16)||g.v(q,1)?!0:!1}a?this.V.start():this.hide()}; zg.prototype.U=function(){this.message.style.display="block"};g.Z(iB,g.Gd);iB.prototype.onMutedAutoplayChange=function(q){this.W&&(q?(S$U(this),this.kF()):(this.V&&this.logClick(),this.DZ()))}; iB.prototype.fE=function(q){this.api.isMutedByMutedAutoplay()&&g.Ox(q,2)&&this.DZ()}; iB.prototype.onClick=function(){this.api.unMute();this.logClick()}; iB.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.Z(g.W1,g.Ee);g.C=g.W1.prototype;g.C.init=function(){var q=this.api,a=q.getPlayerStateObject();this.nL=q.getPlayerSize();this.UQ(a);this.BM();this.sA();this.api.publish("basechromeinitialized",this);this.yG()&&this.api.publish("standardControlsInitialized")}; g.C.onVideoDataChange=function(q,a){var w=this.ye!==a.videoId;if(w||q==="newdata")q=this.api,q.isFullscreen()||(this.nL=q.getPlayerSize());w&&(this.ye=a.videoId,w=this.y0,w.f7=3E3,po(w,512,!0),this.BM());this.api.T("web_render_jump_buttons")&&a.showSeekingControls&&(this.dQ=572)}; g.C.Zkl=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; g.C.lL=function(){var q=this.api.aO()&&this.api.Ew(),a=this.api.CL();return this.Nw||q||this.Ma||a}; g.C.JH=function(){var q=!this.lL();g.kX(this.api.getRootNode(),"ytp-menu-shown",!q)}; g.C.UF=function(q){try{if(!g.ZM(this.api.getRootNode(),q))return!1}catch(a){return!1}for(;q&&!pRK(q);)q=q===this.api.getRootNode()?null:q.parentElement||null;return!!q}; g.C.CC=function(q){var a=this.api.getRootNode();g.kX(a,"ytp-autohide",q);g.kX(a,"ytp-autohide-active",!0);this.ZW.start(q?250:100);q&&(this.XO=!1,g.wU(a,"ytp-touch-mode"));this.wW=!q;this.api.JM(!q);this.api.T("delhi_modern_web_player")&&this.api.publish("autohideupdate",q)}; g.C.BG=function(){var q=this.api.getRootNode();g.kX(q,"ytp-autohide-active",!1)}; g.C.r87=function(){this.kh=!0}; g.C.J87=function(q){if(this.api.B().T("player_doubletap_to_seek")||this.api.B().X)this.kh=!1,this.bb&&this.v5(this.bb),this.bA===0&&RE(this,q)?(this.Na(),this.eU.start(),this.bb=this.C(this.api.mQ(),"touchmove",this.r87,void 0,!0)):this.eU.stop();pKc(this)&&RE(this,q)&&!this.api.B().X&&H9_(this);var a=this.Ae.j7();if(!g.yw(this.api.B())&&iE&&UnU(this,q))a&&q.preventDefault();else if(this.XO=!0,g.gU(this.api.getRootNode(),"ytp-touch-mode"),this.y0.Cb(),this.api.B().T("player_doubletap_to_seek")||this.api.B().X)if(a= this.api.getPlayerStateObject(),!(!this.api.zN()||g.v(a,2)&&g.I$(this.api)||g.v(a,64))){a=Date.now()-this.B$;this.bA+=1;if(a<=350){this.ZC=!0;a=this.api.getPlayerSize().width/3;var w=this.api.getRootNode().getBoundingClientRect(),G=q.targetTouches[0].clientX-w.left;w=q.targetTouches[0].clientY-w.top;var k=(this.bA-1)*10;G>0&&Ga*2&&G=650,G=q.width<528;this.y0.resize();if(this.api.T("web_player_use_screen_width_for_big_mode")){var k,b=q.width>=((k=g.Wo(this.api.B().experiments,"web_player_big_mode_screen_width_cutoff"))!=null?k:2E3);g.kX(a,"ytp-big-mode",b)}g.kX(a,"ytp-fullscreen",this.api.isFullscreen());g.kX(a,"ytp-large-width-mode",w);this.api.T("delhi_modern_web_player")?g.kX(a,"ytp-xsmall-width-mode",G):g.kX(a,"ytp-small-mode",this.Ev()); g.kX(a,"ytp-tiny-mode",this.SK());g.kX(a,"ytp-big-mode",this.o8());this.Dy&&this.Dy.resize(q)}; g.C.fE=function(q){this.UQ(q.state);this.BM()}; g.C.tW=qm(3);g.C.Kl=function(){var q=!!this.ye&&!this.api.YW()&&!this.x8,a=this.api.getPresentingPlayerType()===2,w=this.api.B();if(a)return w=hq(this.api.Hq()),q&&(w&&w.player?q=(q=w.player.getVideoData(2))?q.isListed&&!g.lt(w.player.B()):!1:(Gj("showInfoBarDuringAd: this is null"),q=!1)),q;a=w.T("web_player_imax_theater_mode")&&this.api.Tn();return q&&(w.WF||a||this.api.isFullscreen()||w.hJ)}; g.C.BM=function(){var q=this.Kl();this.Cd!==q&&(this.Cd=q,g.kX(this.api.getRootNode(),"ytp-hide-info-bar",!q))}; g.C.UQ=function(q){var a=q.isCued()||this.api.Rg()&&this.api.getPresentingPlayerType()!==3;a!==this.isCued&&(this.isCued=a,this.P6&&this.v5(this.P6),this.P6=this.C(this.api.mQ(),"touchstart",this.J87,void 0,a));var w=this.y0,G=q.isPlaying()&&!g.v(q,32)||this.api.r6();po(w,128,!G);w=this.y0;G=this.api.getPresentingPlayerType()===3;po(w,256,G);w=this.api.getRootNode();g.v(q,2)?G=[v_.ENDED]:(G=[],g.v(q,8)?G.push(v_.PLAYING):g.v(q,4)&&G.push(v_.PAUSED),g.v(q,1)&&!g.v(q,32)&&G.push(v_.BUFFERING),g.v(q, 32)&&G.push(v_.SEEKING),g.v(q,64)&&G.push(v_.UNSTARTED));g.zJ(this.kq,G)||(g.GM(w,this.kq),this.kq=G,g.ah(w,G));G=this.api.B();var k=g.v(q,2);a:{var b=this.api.B();var O=b.controlsType;switch(O){case "2":case "0":b=!1;break a}b=O==="3"&&!g.v(q,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:xey(hq(this.api.Hq())))||this.api.CL()||g.yw(b)&&this.api.getPresentingPlayerType()===2?!1:!0}g.kX(w,"ytp-hide-controls",!b);g.kX(w,"ytp-native-controls",G.controlsType==="3"&&!a&&!k&&!this.Ma);g.v(q, 128)&&!g.yw(G)?(this.Dy||(this.Dy=new g.oE(this.api),g.p(this,this.Dy),g.DZ(this.api,this.Dy.element,4)),this.Dy.U(q.lT),this.Dy.show()):this.Dy&&(this.Dy.dispose(),this.Dy=null)}; g.C.jj=function(){return this.api.aO()&&this.api.Ew()?(this.api.LZ(!1,!1),!0):this.api.YW()?(g.ui(this.api,!0),!0):!1}; g.C.onMutedAutoplayChange=function(q){this.Ma=q;this.JH()}; g.C.o8=function(){return!1}; g.C.Ev=function(){return!this.o8()&&(this.api.getPlayerSize().width=0&&a.left>=0&&a.bottom>a.top&&a.right>a.left?a:null;a=this.size;q=q.clone();a=a.clone();G&&(O=a,k=5,(k&65)==65&&(q.x=G.right)&&(k&=-2),(k&132)==132&&(q.y=G.bottom)&&(k&=-5),q.xG.right&&(O.width=Math.min(G.right-q.x,b+O.width-G.left),O.width=Math.max(O.width,0))),q.x+O.width>G.right&&k&1&&(q.x=Math.max(G.right-O.width,G.left)),q.yG.bottom&&(O.height=Math.min(G.bottom-q.y,b+O.height-G.top),O.height=Math.max(O.height,0))),q.y+O.height>G.bottom&&k&4&&(q.y=Math.max(G.bottom-O.height,G.top)));G=new g.Xr(0,0,0,0);G.left=q.x;G.top=q.y;G.width= a.width;G.height=a.height;g.Wa(this.element,new g.Is(G.left,G.top));g.JE(this.Y);this.Y.C(k_(this),"contextmenu",this.yi7);this.Y.C(this.j,"fullscreentoggled",this.onFullscreenToggled);this.Y.C(this.j,"pageTransition",this.Fr)}; g.C.yi7=function(q){if(!q.defaultPrevented){var a=C2(q);g.ZM(this.element,a)||this.DZ();this.j.B().disableNativeContextMenu&&q.preventDefault()}}; g.C.onFullscreenToggled=function(){this.DZ();N$j(this)}; g.C.Fr=function(){this.DZ()};g.Z(Oo,g.u);Oo.prototype.onClick=function(){var q=this,a,w,G,k;return g.h(function(b){if(b.U==1)return a=q.api.B(),w=q.api.getVideoData(),G=q.api.getPlaylistId(),k=a.getVideoUrl(w.videoId,G,void 0,!0),g.n(b,KFc(q,k),2);b.V&&PTG(q);q.api.logClick(q.element);g.Jm(b)})}; Oo.prototype.NB=function(){this.updateValue("icon",{G:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{G:"path",dG:!0,N:"ytp-svg-fill",Z:{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 enlace");this.updateValue("tooltip-title","Copiar enlace");this.visible=YJf(this); g.kX(this.element,"ytp-copylink-button-visible",this.visible);this.Ji(this.visible);this.tooltip.Fm();this.api.logVisibility(this.element,this.visible&&this.D)}; Oo.prototype.Si=function(q){g.u.prototype.Si.call(this,q);this.api.logVisibility(this.element,this.visible&&q)}; Oo.prototype.qB=function(){g.u.prototype.qB.call(this);g.wU(this.element,"ytp-copylink-button-visible")};g.Z(d6c,g.u);g.C=d6c.prototype;g.C.show=function(){g.u.prototype.show.call(this);g.tD(this.U)}; g.C.hide=function(){this.Y.stop();this.W=0;this.oW("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.wU(this.element,"ytp-chapter-seek");g.wU(this.element,"ytp-time-seeking");g.u.prototype.hide.call(this)}; g.C.c_=function(q,a,w,G){this.W=q===this.X?this.W+G:G;this.X=q;var k=q===-1?this.J:this.S;k&&this.j.logClick(k);this.L?this.U.stop():g.zE(this.U);this.Y.start();this.element.setAttribute("data-side",q===-1?"back":"forward");var b=3*this.j.mQ().getPlayerSize().height;k=this.j.mQ().getPlayerSize();k=k.width/3-3*k.height;this.V.style.width=b+"px";this.V.style.height=b+"px";q===1?(this.V.style.left="",this.V.style.right=k+"px"):q===-1&&(this.V.style.right="",this.V.style.left=k+"px");var O=b*2.5;b=O/ 2;var e=this.oW("ytp-doubletap-ripple");e.style.width=O+"px";e.style.height=O+"px";q===1?(q=this.j.mQ().getPlayerSize().width-a+Math.abs(k),e.style.left="",e.style.right=q-b+"px"):q===-1&&(q=Math.abs(k)+a,e.style.right="",e.style.left=q-b+"px");e.style.top="calc((33% + "+Math.round(w)+"px) - "+b+"px)";if(w=this.oW("ytp-doubletap-ripple"))w.classList.remove("ytp-doubletap-ripple"),w.classList.add("ytp-doubletap-ripple");T$f(this,this.L?this.W:G)}; g.C.Tk=function(q,a,w){if(w=w===void 0?null:w){var G=q===-1?this.J.visualElement:this.S.visualElement;w={seekData:w};var k=g.$f();k&&WC(k,G,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",w)}this.W=q===this.X?this.W+a:a;this.X=q;G=this.j.mQ().getPlayerSize();this.L?this.U.stop():g.zE(this.U);this.Y.start();this.element.setAttribute("data-side",q===-1?"back":"forward");g.gU(this.element,"ytp-time-seeking");this.V.style.width="110px";this.V.style.height="110px";w=G.width*.1-15;q===1?this.F9?(this.V.style.right= w+"px",this.V.style.left=""):(this.V.style.right="",this.V.style.left=G.width*.8-30+"px"):q===-1&&(this.F9?(this.V.style.right="",this.V.style.left=w+"px"):(this.V.style.right="",this.V.style.left=G.width*.1-15+"px"));this.V.style.top=G.height*.5+15+"px";T$f(this,this.L?this.W:a)}; g.C.bS=function(q,a,w){w=w===void 0?null:w;g.zE(this.U);this.Y.start();switch(q){case -1:q="back";break;case 1:q="forward";break;default:q=""}this.element.setAttribute("data-side",q);this.V.style.width="0";this.V.style.height="0";g.gU(this.element,"ytp-chapter-seek");this.updateValue("seekText",a);this.updateValue("seekTime","");a=this.oW("ytp-seek-icon");if(w){a:if(w){switch(w){case "PREMIUM_STANDALONE":w=AEm();break a;case "PREMIUM_STANDALONE_CAIRO":w=xRl();break a}w=void 0}else w=null;this.updateValue("seekIcon", w);a.style.display="inline-block"}else a.style.display="none"};g.Z($6U,mp);g.C=$6U.prototype;g.C.Up=function(q){this.L7||(this.L7=new nh(this.j),g.p(this,this.L7));var a,w;if((a=this.OA)==null?0:(w=a.menu)==null?0:w.menuRenderer)this.L7.open(this.OA.menu.menuRenderer,q.target),q.preventDefault()}; g.C.bI=function(){return!!this.V}; g.C.cV=function(){return!!this.V}; g.C.PU=function(q){q.target===this.overflowButton.element?q.preventDefault():(this.OQ&&this.j.zl("innertubeCommand",this.OQ),this.yH(!1))}; g.C.oM=function(){this.yH(!0);var q,a;((q=this.V)==null?0:(a=q.bannerData)==null?0:a.dismissedStatusKey)&&this.N1.push(this.V.bannerData.dismissedStatusKey);this.wu()}; g.C.gg=function(){this.wu();NV(this)}; g.C.rp7=function(q){var a=this,w;if(q.id!==((w=this.V)==null?void 0:w.identifier)){this.wu();w=g.V(this.jt);for(var G=w.next();!G.done;G=w.next()){var k=G.value,b=void 0,O=void 0;if((G=(b=k)==null?void 0:(O=b.bannerData)==null?void 0:O.itemData)&&k.identifier===q.id){O=b=void 0;var e=((b=k)==null?void 0:(O=b.bannerData)==null?void 0:O.dismissedStatusKey)||"";if(this.N1.includes(e))return;this.V=k;this.banner.element.setAttribute("aria-label",G.accessibilityLabel||"");G.trackingParams&&(this.Y=!0, this.j.setTrackingParams(this.badge.element,G.trackingParams));this.show();this.J.show();Js(this);this.f7.Ji(!G.stayInApp);LFm(this);FFm(this);eM(this);this.OQ=g.I(G.onTapCommand,xf);if(k=g.I(G.menuOnTap,xf))this.OA=g.I(k,K4l);k=void 0;this.banner.update({thumbnail:(k=(G.thumbnailSources||[])[0])==null?void 0:k.url,title:G.productTitle,price:G.priceReplacementText?G.priceReplacementText:G.price,salesOriginalPrice:Eyl(this),priceDropReferencePrice:Vp_(this),promotionText:Z4G(this),priceA11yText:JSc(this), affiliateDisclaimer:G.affiliateDisclaimer,vendor:m6j(this)});e=O=b=k=void 0;((k=G)==null?0:(b=k.hiddenProductOptions)==null?0:b.showDropCountdown)&&((O=G)==null?0:(e=O.hiddenProductOptions)==null?0:e.dropTimestampMs)&&(this.yN=new g.o1(function(){x6j(a)},1E3),this.f7.hide(),this.countdownTimer.show(),x6j(this)); this.j.T("web_player_enable_featured_product_banner_exclusives_on_desktop")&&sVJ(this)&&(this.Ck=new g.o1(function(){CTj(a)},1E3),CTj(this))}}this.j.getRootNode()&&g.gU(this.j.getRootNode(),"ytp-featured-product-shown")}}; g.C.wu=function(){this.V&&(this.V=void 0,this.zg(),this.j.getRootNode()&&g.wU(this.j.getRootNode(),"ytp-featured-product-shown"))}; g.C.onVideoDataChange=function(q,a){var w=this;q==="dataloaded"&&NV(this);var G,k,b;q=g.I((G=a.getWatchNextResponse())==null?void 0:(k=G.playerOverlays)==null?void 0:(b=k.playerOverlayRenderer)==null?void 0:b.productsInVideoOverlayRenderer,YNR);this.overflowButton.show();this.dismissButton.hide();var O=q==null?void 0:q.featuredProductsEntityKey;this.trendingOfferEntityKey=q==null?void 0:q.trendingOfferEntityKey;this.jt.length||(ASG(this,O),eM(this));var e;(e=this.L0)==null||e.call(this);this.L0=g.mh.subscribe(function(){ASG(w, O);eM(w)})}; g.C.qB=function(){NV(this);LFm(this);FFm(this);mp.prototype.qB.call(this)};g.Z(hhf,g.u);hhf.prototype.onClick=function(){this.j.logClick(this.element,this.U)};g.Z(SJJ,g.Gd);g.C=SJJ.prototype;g.C.show=function(){g.Gd.prototype.show.call(this);this.j.publish("infopaneldetailvisibilitychange",!0);this.j.logVisibility(this.element,!0);fkj(this,!0)}; g.C.hide=function(){g.Gd.prototype.hide.call(this);this.j.publish("infopaneldetailvisibilitychange",!1);this.j.logVisibility(this.element,!1);fkj(this,!1)}; g.C.getId=function(){return this.Y}; g.C.MZ=function(){return this.itemData.length}; g.C.onVideoDataChange=function(q,a){if(a){var w,G,k,b;this.update({title:((w=a.BQ)==null?void 0:(G=w.title)==null?void 0:G.content)||"",body:((k=a.BQ)==null?void 0:(b=k.bodyText)==null?void 0:b.content)||""});var O;q=((O=a.BQ)==null?void 0:O.trackingParams)||null;this.j.setTrackingParams(this.element,q);O=g.V(this.itemData);for(q=O.next();!q.done;q=O.next())q.value.dispose();this.itemData=[];var e;if((e=a.BQ)==null?0:e.ctaButtons)for(a=g.V(a.BQ.ctaButtons),e=a.next();!e.done;e=a.next())if(e=g.I(e.value, kYx))e=new hhf(this.j,e,this.V),e.PN&&(this.itemData.push(e),e.HT(this.items))}}; g.C.qB=function(){this.hide();g.Gd.prototype.qB.call(this)};g.Z(p_c,g.u);g.C=p_c.prototype;g.C.onVideoDataChange=function(q,a){cSl(this,a);this.xw&&X_l(this,this.xw)}; g.C.uZ=function(q){var a=this.j.getVideoData();this.videoId!==a.videoId&&cSl(this,a);X_l(this,q.state);this.xw=q.state}; g.C.US=function(q){(this.W=q)?this.hide():this.V&&this.show()}; g.C.Op=function(){this.U||this.kF();this.showControls=!0}; g.C.d0=function(){this.U||this.DZ();this.showControls=!1}; g.C.kF=function(){var q,a=(q=this.j)==null?void 0:q.getPlayerSize();q=a.width<380;var w;a=a.height<(((w=this.j)==null?0:w.isEmbedsShortsMode())?400:280);var G,k;(((G=this.j)==null?0:G.getPlayerStateObject().isCued())||((k=this.j)==null?0:g.v(k.getPlayerStateObject(),1024)))&&q&&a||!this.V||this.W||(this.fade.show(),this.j.publish("infopanelpreviewvisibilitychange",!0),this.j.logVisibility(this.element,!0))}; g.C.DZ=function(){this.V&&!this.W&&(this.fade.hide(),this.j.publish("infopanelpreviewvisibilitychange",!1),this.j.logVisibility(this.element,!1))}; g.C.OO7=function(){this.U=!1;this.showControls||this.DZ()};var FCe={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(FCe).reduce(function(q,a){q[FCe[a]]=a;return q},{}); var CIR={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(CIR).reduce(function(q,a){q[CIR[a]]=a;return q},{}); var ZiV={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(ZiV).reduce(function(q,a){q[ZiV[a]]=a;return q},{});var E08,Vne;E08=[{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"}];Vne=[{option:0,text:Yz(0)},{option:.25,text:Yz(.25)},{option:.5,text:Yz(.5)},{option:.75,text:Yz(.75)},{option:1,text:Yz(1)}]; g.TT=[{option:"fontFamily",text:"Conjunto de fuentes",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:"Casual"},{option:6,text:"Cursiva"},{option:7,text:"Versalitas"}]},{option:"color",text:"Color de fuente",options:E08},{option:"fontSizeIncrement",text:"Tama\u00f1o de fuente",options:[{option:-2,text:Yz(.5)},{option:-1,text:Yz(.75)},{option:0,text:Yz(1)},{option:1, text:Yz(1.5)},{option:2,text:Yz(2)},{option:3,text:Yz(3)},{option:4,text:Yz(4)}]},{option:"background",text:"Color de fondo",options:E08},{option:"backgroundOpacity",text:"Opacidad del fondo",options:Vne},{option:"windowColor",text:"Color de la ventana",options:E08},{option:"windowOpacity",text:"Opacidad de la ventana",options:Vne},{option:"charEdgeStyle",text:"Estilo del borde de los caracteres",options:[{option:0,text:"Ninguno"},{option:4,text:"Sombra paralela"},{option:1,text:"Relieve"},{option:2, text:"Hundido"},{option:3,text:"Contorno"}]},{option:"textOpacity",text:"Opacidad de la fuente",options:[{option:.25,text:Yz(.25)},{option:.5,text:Yz(.5)},{option:.75,text:Yz(.75)},{option:1,text:Yz(1)}]}];var JnU=[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.Z(vyN,g.Ee);g.C=vyN.prototype; g.C.aR=function(q){q.repeat||(this.W.Ay=!1);var a=!1,w=q.keyCode,G=C2(q),k=!q.altKey&&!q.ctrlKey&&!q.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||JnU.includes(w)),b=!1,O=!1,e=this.api.B();q.defaultPrevented?(k=!1,O=!0):e.JS&&!this.api.isMutedByEmbedsMutedAutoplay()&&(k=!1);if(w===9)a=!0;else{if(G)switch(w){case 32:case 13:if(G.tagName==="BUTTON"||G.tagName==="A"||G.tagName==="INPUT")a=!0,k=!1;else if(k){var N=G.getAttribute("role");!N||N!=="option"&&N!=="button"&&N.indexOf("menuitem")!==0|| (a=!0,G.click(),b=!0)}break;case 37:case 39:case 36:case 35:a=G.getAttribute("role")==="slider";break;case 38:case 40:N=G.getAttribute("role"),G=w===38?G.previousSibling:G.nextSibling,N==="slider"?a=!0:k&&(N==="option"?(G&&G.getAttribute("role")==="option"&&G.focus(),b=a=!0):N&&N.indexOf("menuitem")===0&&(G&&G.hasAttribute("role")&&G.getAttribute("role").indexOf("menuitem")===0&&G.focus(),b=a=!0))}if(k&&!b)switch(w){case 38:b=Math.min(this.api.getVolume()+5,100);gm(this.tS,b,!1);this.api.setVolume(b); O=b=!0;break;case 40:b=Math.max(this.api.getVolume()-5,0);gm(this.tS,b,!0);this.api.setVolume(b);O=b=!0;break;case 36:this.api.zN()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),O=b=!0);break;case 35:this.api.zN()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),O=b=!0)}}a&&KX(this,!0);(a||O)&&this.y0.Cb();(b||k&&this.handleGlobalKeyDown(w,q.shiftKey,q.ctrlKey,q.altKey,q.metaKey,q.key,q.code,q.repeat))&&q.preventDefault();e.S&&(q={keyCode:q.keyCode, altKey:q.altKey,ctrlKey:q.ctrlKey,metaKey:q.metaKey,shiftKey:q.shiftKey,handled:q.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.pu("onKeyPress",q))}; g.C.FU=function(q){var a=q.keyCode;(!this.api.T("web_player_spacebar_control_bugfix")||this.api.T("web_player_spacebar_control_bugfix")&&!this.W.zT)&&this.handleGlobalKeyUp(a,q.shiftKey,q.ctrlKey,q.altKey,q.metaKey,q.key,q.code)&&q.preventDefault()}; g.C.handleGlobalKeyUp=function(q,a,w,G,k,b,O){this.api.publish("keyboardserviceglobalkeyup",{keyCode:q,shiftKey:a,ctrlKey:w,altKey:G,metaKey:k,key:b,code:O});a=!1;if(this.W.Ay)return a;(b=g.ii(this.api.Hq()))&&(b=b.Eg)&&b.Fw&&(b.r3(q),a=!0);switch(q){case 9:KX(this,!0);a=!0;break;case 32:if(this.api.T("web_speedmaster_spacebar_control")&&(!this.api.T("web_player_spacebar_control_bugfix")&&!this.W.zT||this.api.T("web_player_spacebar_control_bugfix"))&&!this.api.B().JS){var e,N;q=(e=this.progressBar)== null?void 0:(N=e.U)==null?void 0:N.isEnabled;a=this.lN(q)}break;case 39:(Ke?G:w)&&!k&&this.api.zN()&&this.api.T("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(),e=(e=this.api.getVideoData())?e.VT:[],N=oyU(e,this.api.getCurrentTime()*1E3),N!==-1&&this.V!=null&&(this.V.bS(1,e[N].title),this.api.seekTo(e[N].startTime/1E3,void 0,void 0,void 0,52),a=!0))}return a}; g.C.handleGlobalKeyDown=function(q,a,w,G,k,b,O,e){e||(this.W.Ay=!1);var N=!1,Y=this.api.B();if(Y.JS&&!this.api.isMutedByEmbedsMutedAutoplay())return N;var P=g.ii(this.api.Hq());if(P&&(P=P.Eg)&&P.Fw)switch(q){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:N=P.Jj(q)}Y.L||N||(N=b||String.fromCharCode(q).toLowerCase(),this.U+=N,"awesome".indexOf(this.U)===0||this.api.T("web_player_rtr_ctrls")&&"bday".indexOf(this.U)===0?(N=!0,4===this.U.length&&this.U==="bday"&&this.api.T("web_player_rtr_ctrls")&& (Dac(this.D),this.y0.Cb()),7===this.U.length&&this.U==="awesome"&&mo_(this.api.getRootNode(),"ytp-color-party")):(this.U=N,N="awesome".indexOf(this.U)===0||"bday".indexOf(this.U)===0));if(!N&&(!this.api.isMutedByEmbedsMutedAutoplay()||JnU.includes(q))){var K=this.api.getVideoData(),d,T;P=(d=this.progressBar)==null?void 0:(T=d.U)==null?void 0:T.isEnabled;d=K?K.VT:[];T=Ke?G:w;switch(q){case 80:a&&!Y.Tl&&(qV(this.tS,LBy(),"Anterior"),this.api.previousVideo(),N=!0);break;case 78:a&&!Y.Tl&&(qV(this.tS, Ts(),"Siguiente"),this.api.nextVideo(),N=!0);break;case 74:this.api.zN()&&(this.api.startSeekCsiAction(),this.V?this.api.T("enable_key_press_seek_logging")?(N=dm(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),this.V.Tk(-1,10,N)):this.V.Tk(-1,10):qV(this.tS,{G:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{G:"path",dG:!0,N:"ytp-svg-fill",Z:{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),N=!0);break;case 76:this.api.zN()&&(this.api.startSeekCsiAction(),this.V?this.api.T("enable_key_press_seek_logging")?(N=dm(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),this.V.Tk(1,10,N)):this.V.Tk(1,10):qV(this.tS,{G:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{G:"path",dG:!0,N:"ytp-svg-fill",Z:{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),N=!0);break;case 37:this.api.zN()&&(this.api.startSeekCsiAction(),T?(T=Ikl(d,this.api.getCurrentTime()*1E3),T!==-1&&this.V!=null&&(this.V.bS(-1,d[T].title),this.api.seekTo(d[T].startTime/1E3,void 0,void 0,void 0,53),N=!0)):(this.V?this.api.T("enable_key_press_seek_logging")?(N=dm(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"),this.V.Tk(-1,5,N)):this.V.Tk(-1,5):qV(this.tS,{G:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36", width:"100%"},K:[{G:"path",dG:!0,N:"ytp-svg-fill",Z:{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),N=!0));break;case 39:this.api.zN()&&(this.api.startSeekCsiAction(),T?this.api.T("web_enable_keyboard_shortcut_for_timely_actions")||(T=oyU(d,this.api.getCurrentTime()*1E3),T!==-1&&this.V!=null&&(this.V.bS(1,d[T].title),this.api.seekTo(d[T].startTime/1E3,void 0,void 0,void 0,52),N=!0)):(this.V!=null?this.api.T("enable_key_press_seek_logging")?(N=dm(this,5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),this.V.Tk(1,5,N)):this.V.Tk(1, 5):qV(this.tS,{G:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{G:"path",dG:!0,N:"ytp-svg-fill",Z:{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),N=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),gm(this.tS,this.api.getVolume(),!1)):(this.api.mute(),gm(this.tS,0,!0));N=!0;break;case 32:N=this.api.T("web_speedmaster_spacebar_control")?!this.api.B().Tl:this.lN(P);break;case 75:N=this.lN(P);break;case 190:a?Y.enableSpeedOptions&&i4y(this)&&(N=this.api.getPlaybackRate(),this.api.setPlaybackRate(N+.25,!0),j8l(this.tS,!1),N=!0):this.api.zN()&&(this.step(1),N=!0);break;case 188:a? Y.enableSpeedOptions&&i4y(this)&&(N=this.api.getPlaybackRate(),this.api.setPlaybackRate(N-.25,!0),j8l(this.tS,!0),N=!0):this.api.zN()&&(this.step(-1),N=!0);break;case 70:uQU(this.api)&&(this.api.toggleFullscreen().catch(function(){}),N=!0); break;case 27:P?(this.progressBar.Rz(),N=!0):this.L()&&(N=!0)}if(Y.controlsType!=="3")switch(q){case 67:g.rP(this.api.Hq())&&(Y=this.api.getOption("captions","track"),this.api.toggleSubtitles(),oCl(this.tS,!Y||Y&&!Y.displayName),N=!0);break;case 79:$z(this,"textOpacity");break;case 87:$z(this,"windowOpacity");break;case 187:case 61:$z(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:$z(this,"fontSizeIncrement",!0,!0)}var F;a||w||G||(q>=48&&q<=57?F=q-48:q>=96&&q<=105&&(F=q-96));F!=null&&this.api.zN()&& !this.api.T("web_player_disable_keyboard_seek_percent")&&(this.api.startSeekCsiAction(),Y=this.api.getProgressState(),this.api.seekTo(F/10*(Y.seekableEnd-Y.seekableStart)+Y.seekableStart,void 0,void 0,void 0,81),N=!0);N&&this.y0.Cb()}this.W.w1=!1;this.api.publish("keyboardserviceglobalkeydown",{keyCode:q,shiftKey:a,ctrlKey:w,altKey:G,metaKey:k,key:b,code:O,repeat:e},this.W);this.W.w1&&(N=!0,this.y0.Cb());return N}; g.C.step=function(q){this.api.zN();if(this.api.getPlayerStateObject().isPaused()){var a=this.api.getVideoData().U;a&&(a=a.video)&&this.api.seekBy(q/(a.fps||30),void 0,void 0,q>0?77:78)}}; g.C.lN=function(q){if(!this.api.B().Tl){var a;var w,G=(a=this.api.getVideoData())==null?void 0:(w=a.getPlayerResponse())==null?void 0:w.playabilityStatus;if(G){var k;a=((k=g.I(G.miniplayer,Zne))==null?void 0:k.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else a=!1;a&&this.api.zl("onExpandMiniplayer");q?this.progressBar.Ll():(q=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.tS.Y5(q),q?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.C.qB=function(){g.zE(this.Y);g.Ee.prototype.qB.call(this)};g.Z(so,g.u);so.prototype.NB=function(){var q=this.j.B(),a=q.W||this.j.T("web_player_hide_overflow_button_if_empty_menu")&&this.j2.isEmpty();q=g.yw(q)&&g.vE(this.j)&&g.v(this.j.getPlayerStateObject(),128);var w=this.j.getPlayerSize();this.visible=this.j.Ev()&&!q&&w.width>=240&&!this.j.getVideoData().J8&&!a&&!this.j.isEmbedsShortsMode();g.kX(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.j.Fm();this.j.logVisibility(this.element,this.visible&&this.D)}; so.prototype.Si=function(q){g.u.prototype.Si.call(this,q);this.j.logVisibility(this.element,this.visible&&q)}; so.prototype.qB=function(){g.u.prototype.qB.call(this);g.wU(this.element,"ytp-overflow-button-visible")};g.Z(WFl,g.Gd);g.C=WFl.prototype;g.C.W0=function(q){q=C2(q);g.ZM(this.element,q)&&(g.ZM(this.V,q)||g.ZM(this.closeButton,q)||bk(this))}; g.C.DZ=function(){g.Gd.prototype.DZ.call(this);this.j.qQ(this.element)}; g.C.show=function(){this.Fw&&this.j.publish("OVERFLOW_PANEL_OPENED");g.Gd.prototype.show.call(this);this.element.setAttribute("aria-modal","true");RhN(this,!0)}; g.C.hide=function(){g.Gd.prototype.hide.call(this);this.element.removeAttribute("aria-modal");RhN(this,!1)}; g.C.onFullscreenToggled=function(q){!q&&this.j7()&&bk(this)}; g.C.isEmpty=function(){return this.actionButtons.length===0}; g.C.focus=function(){for(var q=g.V(this.actionButtons),a=q.next();!a.done;a=q.next())if(a=a.value,a.Fw){a.focus();break}};g.Z(ySU,g.u);ySU.prototype.onClick=function(q){g.J0(q,this.api)&&this.api.playVideoAt(this.index)};g.Z(qMN,g.Gd);g.C=qMN.prototype;g.C.show=function(){g.Gd.prototype.show.call(this);this.V.C(this.api,"videodatachange",this.eW);this.V.C(this.api,"onPlaylistUpdate",this.eW);this.eW()}; g.C.hide=function(){g.Gd.prototype.hide.call(this);g.JE(this.V);this.updatePlaylist(null)}; g.C.eW=function(){this.updatePlaylist(this.api.getPlaylist());this.api.B().W&&(this.oW("ytp-playlist-menu-title-name").removeAttribute("href"),this.W&&(this.v5(this.W),this.W=null))}; g.C.xs=function(){var q=this.playlist,a=q.author,w=a?"de $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",G={CURRENT_POSITION:String(q.index+1),PLAYLIST_LENGTH:String(q.length)};a&&(G.AUTHOR=a);this.update({title:q.title,subtitle:g.gZ(w,G),playlisturl:this.api.getVideoUrl(!0)});a=q.U;if(a===this.Y)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[q.index];else{w=g.V(this.playlistData);for(G=w.next();!G.done;G=w.next())G.value.dispose(); w=q.length;this.playlistData=[];for(G=0;G=this.U&&!q.W&&!a.isAd()&&!this.api.isEmbedsShortsMode()}else q=!1;this.visible=q;this.Ji(this.visible);g.kX(this.element,"ytp-search-button-visible",this.visible);g.kX(this.element,"ytp-show-search-title",!this.api.Ev());this.api.logVisibility(this.element,this.visible&&this.D)}; Eo.prototype.Si=function(q){g.u.prototype.Si.call(this,q);this.api.logVisibility(this.element,this.visible&&q)};g.Z(VQ,g.u); VQ.prototype.trigger=function(q,a,w,G){this.show();if(this.U&&q!==this.U){var k=1;this.W&&(k=PKl(this));OvV(this,k,!1);YMG(this)}this.U=q;this.Y=this.U===-1?this.S:this.J;q="";a?(this.X+=a,q=(this.U===-1?"\u2212":"+")+" "+this.X):this.X=0;this.updateValue(this.U===-1?"durationBack":"durationForward",q);if(this.V==="hidden"||this.V==="fading-out")a=0,this.V==="fading-out"&&(a=PKl(this),NGj(this)),lYU(this,a),this.V!=="fading-out"&&eKN(this,this.Y.querySelector(".ytp-seek-overlay-arrow-persistent")),this.V= "fading-in";else if(this.V==="fading-in"||this.V==="lingering")a=this.Y.querySelector(".ytp-seek-overlay-duration"),q=g.Wo(this.j.B().experiments,"web_player_seek_overlay_duration_bump_scale")||.9,a.animate([{offset:0,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",transform:"scale(1)"},{offset:.64,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",transform:"scale("+q+")"},{offset:1,transform:"scale(1)"}],{duration:184}),NGj(this),this.V==="lingering"&&(this.L.stop(),this.L.start());w&&K3y(this,w,G)}; VQ.prototype.c_=function(q,a,w,G){this.trigger(q,G)}; VQ.prototype.Tk=function(q,a,w){this.trigger(q,a);w&&(q=q===-1?this.J.visualElement:this.S.visualElement,w={seekData:w},(a=g.$f())&&WC(a,q,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",w))}; VQ.prototype.bS=function(q,a,w){this.trigger(q,void 0,a,w)};g.Z(JA,g.u);JA.prototype.onClick=function(){var q=this,a=this.api.B(),w=this.api.getVideoData(this.api.getPresentingPlayerType()),G=this.api.getPlaylistId();a=this.api.T("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):a.getVideoUrl(w.videoId,G,void 0,!0);if(navigator.share)try{var k=navigator.share({title:w.title,url:a});k instanceof Promise&&k.catch(function(b){TGU(q,b)})}catch(b){b instanceof Error&&TGU(this,b)}else this.V.jj(),bk(this.U,this.element,!1); this.api.logClick(this.element)}; JA.prototype.NB=function(){var q=this.api.B(),a=this.api.isEmbedsShortsMode();g.kX(this.element,"ytp-show-share-title",g.yw(q)&&!a);this.V.o8()&&a?(q=(this.api.mQ().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.IR(this.element,"right",q+"px")):a&&g.IR(this.element,"right","0px");this.updateValue("icon",{G:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{G:"path",dG:!0,N:"ytp-svg-fill",Z:{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=dym(this);g.kX(this.element,"ytp-share-button-visible",this.visible);this.Ji(this.visible);this.tooltip.Fm();this.api.logVisibility(this.element,dym(this)&&this.D)}; JA.prototype.Si=function(q){g.u.prototype.Si.call(this,q);this.api.logVisibility(this.element,this.visible&&q)}; JA.prototype.qB=function(){g.u.prototype.qB.call(this);g.wU(this.element,"ytp-share-button-visible")};g.Z(sCU,g.Gd);g.C=sCU.prototype;g.C.oJ=function(q){q=C2(q);g.ZM(this.L,q)||g.ZM(this.closeButton,q)||bk(this)}; g.C.DZ=function(){g.Gd.prototype.DZ.call(this);this.tooltip.qQ(this.element);this.api.logVisibility(this.V,!1);for(var q=g.V(this.W),a=q.next();!a.done;a=q.next())a=a.value,this.api.hasVe(a.element)&&this.api.logVisibility(a.element,!1)}; g.C.show=function(){var q=this.Fw;g.Gd.prototype.show.call(this);this.NB();q||this.api.zl("onSharePanelOpened")}; g.C.WQh=function(){this.Fw&&this.NB()}; g.C.NB=function(){var q=this;g.gU(this.element,"ytp-share-panel-loading");g.wU(this.element,"ytp-share-panel-fail");var a=this.api.getVideoData(),w=this.api.getPlaylistId()&&this.Y.checked;a.getSharePanelCommand&&Ls(this.api.e2(),a.getSharePanelCommand,{includeListId:w}).then(function(G){q.t2()||(g.wU(q.element,"ytp-share-panel-loading"),ZvU(q,G))}); a=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",a);this.updateValue("linkText",a);this.updateValue("shareLinkWithUrl",g.gZ("Compartir enlace: $URL",{URL:a}));x_(this.V);this.api.logVisibility(this.V,!0)}; g.C.onFullscreenToggled=function(q){!q&&this.j7()&&bk(this)}; g.C.focus=function(){this.V.focus()}; g.C.qB=function(){g.Gd.prototype.qB.call(this);F3f(this)};g.Z(JiJ,mp);g.C=JiJ.prototype;g.C.qB=function(){L3G(this);mp.prototype.qB.call(this)}; g.C.PU=function(q){q.target!==this.dismissButton.element&&(this.yH(!1),this.j.zl("innertubeCommand",this.onClickCommand))}; g.C.oM=function(){this.A2=!0;this.yH(!0);this.zg()}; g.C.Dhe=function(q){this.X=q;this.zg()}; g.C.onVideoDataChange=function(q,a){if(q=!!a.videoId&&this.videoId!==a.videoId)this.videoId=a.videoId,this.A2=!1,this.y7=!0,this.S=this.UK=!1,L3G(this),xy_(this,!1),this.U=this.V=!1,QQ(this),myN(this);if(q||!a.videoId)this.F9=this.Y=!1;var w,G;if(a==null?0:(w=a.getPlayerResponse())==null?0:(G=w.videoDetails)==null?0:G.isLiveContent)this.wx(!1);else{var k,b,O;a=g.I((k=a.getWatchNextResponse())==null?void 0:(b=k.playerOverlays)==null?void 0:(O=b.playerOverlayRenderer)==null?void 0:O.productsInVideoOverlayRenderer, YNR);this.X=this.enabled=!1;if(a){if(k=a==null?void 0:a.featuredProductsEntityKey){b=g.mh.getState().entities;var e;if((e=vV(b,"featuredProductsEntity",k))==null?0:e.productsData){this.wx(!1);return}}if(!a.text||!a.onClickCommand||!a.timing){this.wx(!1);return}this.enabled=!0;if(!this.Y){var N;e=(N=a.badgeInteractionLogging)==null?void 0:N.trackingParams;(this.Y=!!e)&&this.j.setTrackingParams(this.badge.element,e||null)}if(!this.F9){var Y;if(this.F9=!((Y=a.dismissButton)==null||!Y.trackingParams)){var P; this.j.setTrackingParams(this.dismissButton.element,((P=a.dismissButton)==null?void 0:P.trackingParams)||null)}}a.isContentForward&&(N=a.productsData,xy_(this,!0),myN(this),N=Aic(this,N),Y=[],N.length>0&&Y.push(N[0]),N.length>1&&(P=new g.u({G:"div",N:"ytp-suggested-action-more-products-icon"}),g.p(this,P),Y.push(P),Y.push.apply(Y,g.Tf(N.slice(1)))),this.L=new g.u({G:"div",K:Y,N:"ytp-suggested-action-content-forward-container"}),g.p(this,this.L),this.EK.element.append(this.L.element));this.text=g.OE(a.text); var K;if(N=(K=a.dismissButton)==null?void 0:K.a11yLabel)this.St=g.OE(N);this.onClickCommand=a.onClickCommand;this.timing=a.timing;this.N9()}sJU(this);Js(this);this.zg()}}; g.C.bI=function(){return!this.X&&this.enabled&&!this.A2&&!this.j.Ev()&&!this.uF&&(this.S||this.y7)}; g.C.Mm=function(q){mp.prototype.Mm.call(this,q);if(this.V||this.U)this.timing&&mi(this.timing.preview)&&(this.V=!1,QQ(this),this.U=!1,QQ(this),this.j.XC("shopping_overlay_preview_collapsed"),this.j.XC("shopping_overlay_preview_expanded"),q=AA(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),mi(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.j.XC("shopping_overlay_expanded"),q.end=this.timing.expanded.endSec*1E3),this.j.N9([q])), this.UK=!0,Js(this);QQ(this)}; g.C.wx=function(q){(this.S=q)?(VM(this),Js(this,!1)):(L3G(this),this.Tl.start());this.zg()}; g.C.N9=function(q){var a=this.timing;q=(q===void 0?0:q)+this.j.getCurrentTime();var w=[],G=a.visible,k=a.preview;a=a.expanded;mi(G)&&(EuK(G,q),w.push(AA(G.startSec,G.endSec,"shopping_overlay_visible")));mi(k)&&(EuK(k,q),G=k.startSec+1,w.push(AA(k.startSec,G,"shopping_overlay_preview_collapsed")),w.push(AA(G,k.endSec,"shopping_overlay_preview_expanded")));mi(a)&&(EuK(a,q),w.push(AA(a.startSec,a.endSec,"shopping_overlay_expanded")));this.j.N9(w)}; g.C.zg=function(){mp.prototype.zg.call(this);this.j.getRootNode()&&g.kX(this.j.getRootNode(),"ytp-shopping-pill-shown",this.bI())};g.Z(nuc,g.u); nuc.prototype.NB=function(){var q=this.api.B();this.Ji(g.yw(q)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.Fw);var a=this.api.getVideoData(),w=!1;this.api.getPresentingPlayerType()===2?w=!!a.videoId&&!!a.isListed&&!!a.author&&!!a.VN&&!!a.profilePicture:g.yw(q)&&(w=!!a.videoId&&!!a.VN&&!!a.profilePicture&&!a.J8&&!q.W&&!(q.X&&this.api.getPlayerSize().width<200));var G=a.profilePicture;q=g.yw(q)?a.expandedTitle:a.author;G=G===void 0? "":G;q=q===void 0?"":q;w?(this.U!==G&&(this.V.style.backgroundImage="url("+G+")",this.U=G),this.updateValue("channelLogoLabel",g.gZ("Foto de $CHANNEL_NAME",{CHANNEL_NAME:q})),g.gU(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.wU(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.V,w&&this.D);this.api.logVisibility(this.channelName,w&&this.D);this.subscribeButton&&(this.subscribeButton.channelId=a.Am);this.updateValue("expandedTitle",a.expandedTitle)};g.Z(xz,g.Gd);xz.prototype.show=function(){g.Gd.prototype.show.call(this);this.V.start()}; xz.prototype.hide=function(){g.Gd.prototype.hide.call(this);this.V.stop()}; xz.prototype.jR=function(q,a){q==="dataloaded"&&((this.Vm=a.Vm,this.QE=a.QE,isNaN(this.Vm)||isNaN(this.QE))?this.W&&(this.j.XC("intro"),this.j.removeEventListener(g.oM("intro"),this.X),this.j.removeEventListener(g.IM("intro"),this.L),this.j.removeEventListener("onShowControls",this.Y),this.hide(),this.W=!1):(this.j.addEventListener(g.oM("intro"),this.X),this.j.addEventListener(g.IM("intro"),this.L),this.j.addEventListener("onShowControls",this.Y),q=new g.Xo(this.Vm,this.QE,{priority:9,namespace:"intro"}), this.j.N9([q]),this.W=!0))};g.Z(LX,g.u);LX.prototype.onClick=function(){this.j.WC()}; LX.prototype.NB=function(){var q=!0;g.yw(this.j.B())&&(q=q&&this.j.mQ().getPlayerSize().width>=480);this.Ji(q);q=this.updateValue;var a=this.j.T("delhi_modern_web_player_icons"),w=a?{G:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{G:"path",Z:{d:"M23 17V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V17C0.99 17.49 1.18 17.97 1.51 18.34C1.84 18.70 2.30 18.93 2.79 18.99L3 19H5.93L7.65 17H3V5H21V17H16.35L18.06 19H21L21.20 18.99C21.69 18.93 22.15 18.70 22.48 18.34C22.81 17.97 23.00 17.49 23 17ZM17.29 21.17L12 15L6.70 21.17C6.64 21.24 6.60 21.33 6.59 21.43C6.57 21.52 6.59 21.62 6.63 21.70C6.67 21.79 6.73 21.86 6.81 21.92C6.89 21.97 6.99 22 7.08 22H16.91C17.00 22 17.10 21.97 17.18 21.92C17.26 21.86 17.32 21.79 17.36 21.70C17.40 21.62 17.42 21.52 17.40 21.43C17.39 21.33 17.35 21.24 17.29 21.17Z", fill:"white"}}]}:{G:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{G:"path",dG:!0,Z:{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"}}]};a=a?{G:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{G:"path",Z:{d:"M23 17V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V17C0.99 17.49 1.18 17.97 1.51 18.34C1.84 18.70 2.30 18.93 2.79 18.99L3 19H5.93L7.65 17H3V5H21V17H16.35L18.06 19H21L21.20 18.99C21.69 18.93 22.15 18.70 22.48 18.34C22.81 17.97 23.00 17.49 23 17ZM17.29 21.17L12 15L6.70 21.17C6.64 21.24 6.60 21.33 6.59 21.43C6.57 21.52 6.59 21.62 6.63 21.70C6.67 21.79 6.73 21.86 6.81 21.92C6.89 21.97 6.99 22 7.08 22H16.91C17.00 22 17.10 21.97 17.18 21.92C17.26 21.86 17.32 21.79 17.36 21.70C17.40 21.62 17.42 21.52 17.40 21.43C17.39 21.33 17.35 21.24 17.29 21.17Z", fill:"white"}}]}:{G:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{G:"path",dG:!0,N:"ytp-svg-fill",Z:{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"}}]};q.call(this,"icon",this.j.yT()?w:a)};g.Z(hKc,g.u);hKc.prototype.qB=function(){this.V=null;g.u.prototype.qB.call(this)};g.Z(Bf,g.u);Bf.prototype.onClick=function(){this.j.zl("innertubeCommand",this.U)}; Bf.prototype.J=function(){if(this.j.T("delhi_modern_web_player")){var q=this.j.getPlayerSize();q.width&&(this.element.style.maxWidth=q.width*.25+"px")}}; Bf.prototype.UK=function(q){q!==this.X&&(this.update({chapterTitle:q,ariaLabel:q}),this.X=q);q?this.show():this.hide()}; Bf.prototype.F9=function(){this.V.disabled=this.U==null;g.kX(this.V,"ytp-chapter-container-disabled",this.V.disabled);this.EQ()};g.Z(rm,Bf);rm.prototype.onClickCommand=function(q){g.I(q,JF)&&this.EQ()}; rm.prototype.updateVideoData=function(q,a){var w,G,k;q=g.I((w=a.getWatchNextResponse())==null?void 0:(G=w.playerOverlays)==null?void 0:(k=G.playerOverlayRenderer)==null?void 0:k.decoratedPlayerBarRenderer,Dg);w=g.I(q==null?void 0:q.playerBarActionButton,g.e9);if(this.j.T("web_player_updated_entrypoint")){this.S=D6(w==null?void 0:w.text);var b;G=(b=w==null?void 0:w.tooltip)!=null?b:"Ver cap\u00edtulo";this.L.setAttribute("title",G)}this.U=w==null?void 0:w.command;Bf.prototype.F9.call(this)}; rm.prototype.EQ=function(){var q=this.S,a=this.Y.V,w,G=((w=this.j.getLoopRange())==null?void 0:w.type)==="clips";if(a.length>1&&!G){q=this.j.getProgressState().current*1E3;w=Pf(a,q);q=a[w].title||"Cap\u00edtulos";if(w!==this.currentIndex||this.W)this.j.zl("innertubeCommand",a[w].onActiveCommand),this.currentIndex=w;this.W=!1}else this.W=!0;Bf.prototype.UK.call(this,q)};g.Z(nX,g.Gs);nX.prototype.U=function(){var q;(q=this.element.parentElement)==null||q.classList.contains("ytp-right-controls-left");(this.V=!this.V)?this.publish("small-mode-expand-right-bottom-controls"):this.publish("small-mode-collapse-right-bottom-controls")}; nX.prototype.isExpanded=function(){return this.V};g.Z(MV,g.u);MV.prototype.W=function(q){g.v(q.state,32)?fYU(this,this.api.Oq()):this.Fw&&(g.v(q.state,16)||g.v(q.state,1))||this.fade.hide()}; MV.prototype.onProgress=function(){var q=this.api.getPlayerStateObject();(g.v(q,32)||g.v(q,16))&&Hvc(this)}; MV.prototype.Y=function(){this.frameIndex=NaN;Hvc(this)}; MV.prototype.hide=function(){this.V&&fYU(this,null);g.u.prototype.hide.call(this)};g.Z(ciy,g.u);g.C=ciy.prototype;g.C.onClick=function(){var q=this;if(this.j.B().VN||this.j.B().X){this.j.logClick(this.element);try{this.j.toggleFullscreen().catch(function(a){q.k$(a)})}catch(a){this.k$(a)}}else bk(this.message,this.element,!0)}; g.C.k$=function(q){String(q).includes("fullscreen error")?g.Qa(q):g.mQ(q);this.u1()}; g.C.u1=function(){this.disable();this.message.kF(this.element,!0)}; g.C.TC=function(){P5()===this.j.getRootNode()?this.W.start():(this.W.stop(),this.message&&this.message.hide())}; g.C.nV=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var q=window.screen.width*.9,a=window.screen.height*.9,w=Math.max(window.outerWidth,window.innerWidth),G=Math.max(window.outerHeight,window.innerHeight);if(w>G!==q>a){var k=w;w=G;G=k}q>w&&a>G&&this.u1()}}; g.C.disable=function(){var q=this;if(!this.message){var a=(e2(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null?"La pantalla completa no est\u00e1 disponible. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK":"Tu navegador no es compatible con la pantalla completa. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.Gd(this.j,{G:"div",vT:["ytp-popup","ytp-generic-popup"],Z:{role:"alert",tabindex:"0"}, K:[a[0],{G:"a",Z:{href:"https://support.google.com/youtube/answer/6276924",target:this.j.B().J},ue:a[2]},a[4]]},100,!0);this.message.hide();g.p(this,this.message);this.message.subscribe("show",function(w){q.U.Jx(q.message,w)}); g.DZ(this.j,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.V)();this.V=null}}; g.C.NB=function(){var q=uQU(this.j),a=this.j.B().X&&this.j.getPlayerSize().width<250;this.Ji(q&&!a);var w;((w=this.j.B())==null?0:w.T("embeds_use_parent_visibility_in_ve_logging"))?this.j.logVisibility(this.element,this.Fw&&this.D):this.j.logVisibility(this.element,this.Fw)}; g.C.gk=function(q){if(q){var a=g.jw(this.j,"Salir del modo de pantalla completa","f");this.update({"data-title-no-tooltip":"Salir del modo de pantalla completa"});document.activeElement===this.element&&this.j.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(w){g.Qa(w)})}else a=g.jw(this.j,"Pantalla completa","f"),this.update({"data-title-no-tooltip":"Pantalla completa"}); q=pxm(this,q);a=this.message?null:a;this.j.B().T("player_tooltip_data_title_killswitch")?this.update({title:a,icon:q}):this.update({"tooltip-title":a,"aria-label":a,icon:q});this.U.gz().Fm()}; g.C.qB=function(){this.message||((0,this.V)(),this.V=null);g.u.prototype.qB.call(this)}; g.C.Si=function(q){g.u.prototype.Si.call(this,q);var a;((a=this.j.B())==null?0:a.T("embeds_use_parent_visibility_in_ve_logging"))&&this.j.logVisibility(this.element,this.Fw&&q)};g.Z(hA,g.u);hA.prototype.onClick=function(){this.j.logClick(this.element);this.j.seekBy(this.V,!0);var q=this.V>0?1:-1,a=Math.abs(this.V),w=this.j.Gg().ql;w&&w.Tk(q,a);this.U.isActive()?this.W=!0:(q=["ytp-jump-spin"],this.V<0&&q.push("backwards"),this.element.classList.add.apply(this.element.classList,g.Tf(q)),g.tD(this.U))};g.Z(SM,Bf);SM.prototype.onClickCommand=function(q){g.I(q,emU)&&this.EQ()}; SM.prototype.updateVideoData=function(){var q,a;this.U=(q=XxK(this))==null?void 0:(a=q.onTap)==null?void 0:a.innertubeCommand;Bf.prototype.F9.call(this)}; SM.prototype.EQ=function(){var q="",a=this.Y.X,w,G=(w=XxK(this))==null?void 0:w.headerTitle;w=G?g.OE(G):"";var k;G=((k=this.j.getLoopRange())==null?void 0:k.type)==="clips";a.length>1&&!G&&(q=this.j.getProgressState().current*1E3,k=jVc(a,q),q=k!=null?a[k].title:w,k!=null&&k!==this.currentIndex&&(this.j.zl("innertubeCommand",a[k].onActiveCommand),this.currentIndex=k));Bf.prototype.UK.call(this,q)};g.Z(fX,g.u);fX.prototype.onClick=function(){this.j.zl("onCollapseMiniplayer");this.j.logClick(this.element)}; fX.prototype.NB=function(){this.visible=!this.j.isFullscreen();this.Ji(this.visible);this.j.logVisibility(this.element,this.visible&&this.D)}; fX.prototype.Si=function(q){g.u.prototype.Si.call(this,q);this.j.logVisibility(this.element,this.visible&&q)};g.Z(Hf,g.u);Hf.prototype.init=function(){this.updateValue("minvalue",this.Y);this.updateValue("maxvalue",this.L);this.updateValue("stepvalue",this.S);this.updateValue("slidervalue",this.V);oul(this,this.V)}; Hf.prototype.W=function(){cf(this,Number(this.U.value));this.U.focus()}; Hf.prototype.X=function(q){if(!q.defaultPrevented){switch(q.code){case "ArrowDown":q=-this.S;break;case "ArrowUp":q=this.S;break;default:return}cf(this,Math.min(this.L,Math.max(Number((this.V+q).toFixed(2)),this.Y)))}};g.Z(pX,Hf);pX.prototype.onVolumeChange=function(q){if(this.J)this.J=!1;else{var a=q.volume;a===0||q.muted?cf(this,0):cf(this,a)}}; pX.prototype.W=function(){Hf.prototype.W.call(this);this.F9(this.V)}; pX.prototype.UK=function(q){var a=-q.deltaY;a=q.deltaMode===WheelEvent.DOM_DELTA_LINE||q.deltaMode===WheelEvent.DOM_DELTA_PAGE?g.X1(this.V+a,0,100):g.X1(this.V+g.X1(a/10,-10,10),0,100);a===0?cf(this,0):cf(this,a);this.F9(a);q.preventDefault();q.stopPropagation()}; pX.prototype.y7=function(q,a){this.J=!0;q===0||a?this.j.mute():(this.j.isMuted()&&this.j.unMute(),this.j.setVolume(q))};g.Z(IYm,g.u);g.Z(X7,g.u);g.C=X7.prototype;g.C.AD=function(){if(!this.j.RO()){this.updateValue("dataTooltipOffsetY",-120);var q;(q=this.V)!=null&&Uo(q,!0);var a;(a=this.V)!=null&&a.V.stop()}}; g.C.j0=function(){var q;(q=this.V)!=null&&q.V.start()}; g.C.z_=function(q){this.visible=q.width>=300||this.L7;this.Ji(this.visible);this.j.logVisibility(this.element,this.visible&&this.D)}; g.C.L2=function(){this.j.B().EK?this.j.isMuted()?this.j.unMute():this.j.mute():bk(this.message,this.element,!0);this.j.logClick(this.element)}; g.C.XN2=function(q){if(this.j.B().EK&&this.V)if(q.target===this.W){var a;if(!this.j.RO()||((a=this.V)==null?0:a.isVisible))this.L2();else{var w;(w=this.V)!=null&&Uo(w,!0)}}else{var G;(G=this.V)!=null&&Uo(G,!0)}else this.L2()}; g.C.onVolumeChange=function(q){this.setVolume(q.volume,q.muted)}; g.C.setVolume=function(q,a){var w=this,G=a?0:q/100;q=G===0?1:q>50?1:0;if(this.J!==q){var k=this.S;isNaN(k)?ivc(this,q):giK(this.EK,function(O){ivc(w,k+(w.J-k)*O)},250); this.J=q}G=G===0?1:0;if(this.X!==G){var b=this.y7;isNaN(b)?W3J(this,G):giK(this.jt,function(O){W3J(w,b+(w.X-b)*O)},250); this.X=G}thN(this,a)}; g.C.Si=function(q){g.u.prototype.Si.call(this,q);this.j.logVisibility(this.element,this.visible&&q)}; var vuN=["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"],zKf=["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.Z(g.jM,g.u);g.C=g.jM.prototype;g.C.onStateChange=function(q){this.gG(q.state);var a;((a=this.j.B())==null?0:a.T("embeds_use_parent_visibility_in_ve_logging"))&&this.j.logVisibility(this.element,this.Fw&&this.D)}; g.C.gG=function(q){var a=g.WD(this.j.getVideoData()),w=!1;q.isOrWillBePlaying()?q=a?4:2:g.v(q,2)?(q=3,w=a):q=1;this.element.disabled=w;if(this.V!==q){a=null;switch(q){case 2:a=g.jw(this.j,"Pausa","k");this.update({"data-title-no-tooltip":"Pausa"});break;case 3:a="Ver de nuevo";this.update({"data-title-no-tooltip":"Ver de nuevo"});break;case 1:a=g.jw(this.j,"Bot\u00f3n de reproducci\u00f3n","k");this.update({"data-title-no-tooltip":"Bot\u00f3n de reproducci\u00f3n"});break;case 4:a="Detener reproducci\u00f3n en directo", this.update({"data-title-no-tooltip":"Detener reproducci\u00f3n en directo"})}q===3?this.j.B().T("player_tooltip_data_title_killswitch")?this.update({title:a,icon:Dym(this,q)}):this.update({"tooltip-title":a,icon:Dym(this,q)}):(this.j.T("player_tooltip_data_title_killswitch")?this.update({title:a}):this.update({"tooltip-title":a}),(a=Dym(this,q))&&this.V&&this.V!==3?wgN(this.transition,this.element,a):this.updateValue("icon",a));this.tooltip.Fm();this.V=q}}; g.C.onVideoDataChange=function(){g.kX(this.element,"ytp-play-button-playlist",g.vE(this.j))}; g.C.lN=function(q){this.j.logClick(this.element);if(this.j.getPlayerStateObject().isOrWillBePlaying())this.j.pauseVideo();else{if(this.j.isMinimized()&&this.j.getPlayerStateObject().isCued()){var a={},w;if((w=this.j.getVideoData())==null?0:w.L)a.cttAuthInfo={token:this.j.getVideoData().L,videoId:this.j.getVideoData().videoId};Jf("direct_playback",a);this.j.FF().timerName="direct_playback"}this.j.playVideo()}this.j.isMinimized()&&(q==null?void 0:q.type)==="click"&&this.element.blur()}; g.C.Si=function(q){g.u.prototype.Si.call(this,q);var a;((a=this.j.B())==null?0:a.T("embeds_use_parent_visibility_in_ve_logging"))&&this.j.logVisibility(this.element,this.Fw&&q)};g.Z(g.o3,g.u);g.C=g.o3.prototype;g.C.onVideoDataChange=function(){qv_(this);this.Y&&(this.v5(this.Y),this.Y=null);this.videoData=this.j.getVideoData(1);if(this.playlist=this.j.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.Y=this.C(this.j,"progresssync",this.YG);this.W=gSj(this);yiK(this);this.Te(this.j.mQ().getPlayerSize())}; g.C.Te=function(q){q=q===void 0?this.j.mQ().getPlayerSize():q;var a,w=((a=this.j.getLoopRange())==null?void 0:a.type)==="clips";a=g.vE(this.j)||this.V&&g.R$(this.j)&&!this.j.T("web_hide_next_button")||aFf(this);var G=!this.V&&q.width<400;q=this.j.T("delhi_modern_web_player_horizontal_volume_controls")&&q.width<640;w=a&&!w&&!G&&!q;this.Ji(w);this.j.logVisibility(this.element,w)}; g.C.onClick=function(q){this.j.logClick(this.element);var a=!0;this.X?a=g.J0(q,this.j):q.preventDefault();a&&(this.V&&this.j.getPresentingPlayerType()===5?this.j.publish("ytoprerollinternstitialnext"):this.V?(ZU(this.j.FF()),this.j.publish("playlistnextbuttonclicked",this.element),this.j.nextVideo(!0)):this.W?this.j.seekTo(0):(ZU(this.j.FF()),this.j.publish("playlistprevbuttonclicked",this.element),this.j.previousVideo(!0)))}; g.C.YG=function(){var q=gSj(this);q!==this.W&&(this.W=q,yiK(this))}; g.C.qB=function(){this.U&&(this.U(),this.U=null);qv_(this);g.u.prototype.qB.call(this)};g.Z(Gc_,g.u);g.C=Gc_.prototype;g.C.fG=function(q){this.nR(q.pageX);this.Xs(q.pageX+q.deltaX);kcU(this)}; g.C.nR=function(q){this.F9=q-this.L7}; g.C.Xs=function(q){q-=this.L7;!isNaN(this.F9)&&this.thumbnails.length>0&&(this.J=q-this.F9,this.thumbnails.length>0&&this.J!==0&&(this.W=this.S+this.J,q=NEc(this,this.W),this.W<=this.V/2&&this.W>=elV(this)?(this.api.seekTo(q,!1,void 0,void 0,25),g.IR(this.y7,"transform","translateX("+(this.W-this.V/2)+"px)"),wqG(this,q)):this.W=this.S))}; g.C.GU=function(){this.UK&&(this.UK.d5=!0);var q=(0,g.Zj)()-this.le<300;if(Math.abs(this.J)<5&&!q){this.le=(0,g.Zj)();q=this.F9+this.J;var a=this.V/2-q;this.nR(q);this.Xs(q+a);kcU(this);this.api.logClick(this.L)}kcU(this)}; g.C.jp=function(){I3(this,this.api.getCurrentTime())}; g.C.play=function(q){this.api.seekTo(NEc(this,this.W),void 0,void 0,void 0,26);this.api.playVideo();q&&this.api.logClick(this.playButton)}; g.C.onExit=function(q){this.api.seekTo(this.Tl,void 0,void 0,void 0,63);this.api.playVideo();q&&this.api.logClick(this.dismissButton)}; g.C.sA=function(q,a){this.L7=q;this.V=a;I3(this,this.api.getCurrentTime())}; g.C.enable=function(){this.isEnabled||(this.isEnabled=!0,this.Tl=this.api.getCurrentTime(),wqG(this,this.Tl),g.kX(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.EK=this.C(this.element,"wheel",this.fG),this.logVisibility(this.isEnabled))}; g.C.disable=function(){this.isEnabled=!1;this.hide();g.kX(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.EK&&this.v5(this.EK);this.logVisibility(this.isEnabled)}; g.C.reset=function(){this.disable();this.Y=[];this.f7=!1}; g.C.logVisibility=function(q){this.api.logVisibility(this.element,q);this.api.logVisibility(this.L,q);this.api.logVisibility(this.dismissButton,q);this.api.logVisibility(this.playButton,q)}; g.C.qB=function(){for(;this.U.length;){var q=void 0;(q=this.U.pop())==null||q.dispose()}g.u.prototype.qB.call(this)}; g.Z(bdV,g.u);g.Z(Odc,g.u);g.Z(YvK,g.u);g.Z(us,g.u);us.prototype.cq=function(q){return q==="PLAY_PROGRESS"?this.S:q==="LOAD_PROGRESS"?this.X:q==="LIVE_BUFFER"?this.L:this.W};d1l.prototype.update=function(q,a,w,G){w=w===void 0?0:w;this.width=a;this.Y=w;this.V=a-w-(G===void 0?0:G);this.position=g.X1(q,w,w+this.V);this.W=this.position-w;this.U=this.W/this.V};g.Z(TEl,g.u);g.Z(g.zT,g.Gs);g.C=g.zT.prototype; g.C.Yi=function(){var q=!1,a=this.api.getVideoData();if(!a)return q;this.api.XC("timedMarkerCueRange");FMj(this);for(var w=g.V(a.h2),G=w.next();!G.done;G=w.next()){G=G.value;var k=void 0,b=(k=this.St[G])==null?void 0:k.markerType,O=void 0;k=(O=this.St[G])==null?void 0:O.markers;if(!k)break;if(b==="MARKER_TYPE_TIMESTAMPS"){q=g.V(k);for(b=q.next();!b.done;b=q.next()){O=b.value;b=new TEl;var e=void 0;b.title=((e=O.title)==null?void 0:e.simpleText)||"";b.timeRangeStartMillis=Number(O.startMillis);b.V= Number(O.durationMillis);var N=e=void 0;b.onActiveCommand=(N=(e=O.onActive)==null?void 0:e.innertubeCommand)!=null?N:void 0;m1y(this,b)}QDl(this,this.X);q=this.X;b=this.nu;O=[];e=null;for(N=0;NY&&(e.end=Y);Y=uuf(Y,Y+K);O.push(Y);e=Y;b[Y.id]=q[N].onActiveCommand}}this.api.N9(O);a:{q=g.V(k);for(k=q.next();!k.done;k=q.next())if(k.value.sourceType==="SOURCE_TYPE_SMART_SKIP"){q= !1;break a}q=!0}q&&(this.VT=this.St[G]);q=!0}else if(b==="MARKER_TYPE_HEATMAP"){G=this.St[G];P=Y=b=N=e=O=void 0;if(G&&G.markers){k=(b=(P=G.markersMetadata)==null?void 0:(Y=P.heatmapMetadata)==null?void 0:Y.minHeightDp)!=null?b:0;b=(O=(N=G.markersMetadata)==null?void 0:(e=N.heatmapMetadata)==null?void 0:e.maxHeightDp)!=null?O:60;O=this.V.length;e=null;for(N=0;N=P&&F<=K&&Y.push(T)}b>0&&(this.UK.style.height=b+"px");P=this.Y[N];K=Y;T=k;var J=b,Q=N===0;Q=Q===void 0?!1:Q;P8j(P,J);d=K;F=P.U;Q=Q===void 0?!1:Q;var B=1E3/d.length,L=[];L.push({x:0,y:100});for(var M=0;M0&&(e=Y[Y.length-1])}g.is(this)}b=void 0;k=[];if(G=(b=G.markersDecoration)==null?void 0:b.timedMarkerDecorations)for(G=g.V(G),b=G.next();!b.done;b=G.next())b=b.value,N=e=O=void 0,k.push({visibleTimeRangeStartMillis:(O=b.visibleTimeRangeStartMillis)!= null?O:-1,visibleTimeRangeEndMillis:(e=b.visibleTimeRangeEndMillis)!=null?e:-1,decorationTimeMillis:(N=b.decorationTimeMillis)!=null?N:NaN,label:b.label?g.OE(b.label):""});G=k;this.heatMarkersDecorations=G}}a.D$=this.X;g.kX(this.element,"ytp-timed-markers-enabled",q);return q}; g.C.sA=function(){g.is(this);R3(this);QDl(this,this.X);if(this.U){var q=g.RR(this.element).x||0;this.U.sA(q,this.L)}}; g.C.Z0K=function(){var q=this.api.getVideoData();q&&HdG(this,q)}; g.C.onClickCommand=function(q){if(q=g.I(q,JF)){var a=q.key;q.isVisible&&a&&BEf(this,a)}}; g.C.vwG=function(q){this.api.zl("innertubeCommand",this.nu[q.id])}; g.C.EQ=function(){R3(this);var q=this.api.getCurrentTime();(qthis.clipEnd)&&this.lz()}; g.C.H0=function(q){if(!q.defaultPrevented){var a=!1;switch(q.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);a=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);a=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);a=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);a=!0;break;case 38:this.api.T("enable_key_press_seek_logging")&&GG(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);a=!0;break;case 40:this.api.T("enable_key_press_seek_logging")&&GG(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),a=!0}a&&q.preventDefault()}}; g.C.jR=function(q,a){this.updateVideoData(a,q==="newdata")}; g.C.ZS=function(){this.jR("newdata",this.api.getVideoData())}; g.C.updateVideoData=function(q,a){a=a===void 0?!1:a;var w=!!q&&q.PN();w&&(Fe(q)||SvJ(this)?this.Ku=!1:this.Ku=q.allowLiveDvr,g.kX(this.api.getRootNode(),"ytp-enable-live-buffer",!(q==null||!Fe(q))),HdG(this,q));D1K(this,this.api.zN());if(a){if(w){a=q.clipEnd;this.clipStart=q.clipStart;this.clipEnd=a;kL(this);for(gu(this,this.F9,this.OA);this.Y.length>0;)this.Y.pop().dispose();this.heatMarkersDecorations=[];this.yN={};var G;(G=this.U)==null||G.reset();Np(this);g.kX(this.api.getRootNode(),"ytp-fine-scrubbing-exp", vf(this))}else this.lz();this.Wa()}if(q){var k;G=((k=this.Rr)==null?void 0:k.type)==="clips";if(k=!q.isLivePlayback){k=this.api.getVideoData();a=g.Rv(k);w=Zdc(k);var b;k=a!=null||w!=null&&w.length>0||((b=k.NA)==null?void 0:b.length)>0}if(k&&!G){b=this.api.getVideoData();G=g.Rv(b);k=!1;if(G==null?0:G.markersMap){k=this.api.getVideoData();var O;k.H1=((O=G.visibleOnLoad)==null?void 0:O.key)||k.H1;O=g.V(G.markersMap);for(G=O.next();!G.done;G=O.next())G=G.value,G.key&&G.value&&(this.yN[G.key]=G.value, G.value.onChapterRepeat&&(k.Del=G.value.onChapterRepeat));k.H1!=null&&BEf(this,k.H1);k=!0}var e;if(((e=b.NA)==null?void 0:e.length)>0){e=g.mh.getState().entities;O=g.V(b.NA);for(G=O.next();!G.done;G=O.next()){G=G.value;w=void 0;a=(w=vV(e,"macroMarkersListEntity",G))==null?void 0:w.markersList;var N=w=void 0;if(((w=a)==null?void 0:w.markerType)==="MARKER_TYPE_TIMESTAMPS"||((N=a)==null?void 0:N.markerType)==="MARKER_TYPE_HEATMAP")this.St[G]=a}k=this.Yi()||k}!k&&(e=Zdc(b))&&(VaG(this,e),b.VT=this.V, ESV(this));c_J(this,null);q.gM&&this.Y.length===0&&(q=q.gM,e=q.key,q.isVisible&&e&&BEf(this,e))}else $1_(this),FMj(this)}R3(this)}; g.C.B9=function(q){this.S&&!g.v(q.state,32)&&this.api.getPresentingPlayerType()!==3&&this.S.cancel();var a;((a=this.U)==null?0:a.isEnabled)&&g.v(q.state,8)&&this.api.pauseVideo();q=this.api.getPresentingPlayerType()===2||!this.api.zN()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.kX(this.Th,"ytp-hide-scrubber-button",q)}; g.C.ZR=function(q){var a=!!this.Rr!==!!q,w=this.Rr;this.Rr=q;c_J(this,w);(q==null?void 0:q.type)!=="clips"&&q||(q?(this.updateValue("clipstarticon",Z2j()),this.updateValue("clipendicon",Z2j()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",PMV()),this.updateValue("clipendicon",YHm()),this.updateValue("clipstarttitle","Ver v\u00eddeo completo"),this.updateValue("clipendtitle","Ver v\u00eddeo completo")),a&&(this.updateVideoData(this.api.getVideoData(), !0),g.is(this)),kL(this));gu(this,this.F9,this.OA)}; g.C.t1t=function(){this.api.publish("progressBarHoverStart")}; g.C.egh=function(q,a,w){var G=g.RR(this.element),k=DE(this).V,b=w?w.getAttribute("data-tooltip"):void 0,O=w?w.getAttribute("data-position"):void 0,e=w?w.getAttribute("data-offset-y"):void 0;e=e?Number(e):0;O&&(q=AI(this.W,Number(w.getAttribute("data-position")),0)*k+g.RR(this.progressBar).x);this.VN.x=q-G.x;this.VN.y=a-G.y;q=DE(this);w=wu(this,q);a=0;var N;if((N=this.api.getVideoData())==null?0:Fe(N))(N=this.api.getProgressState().seekableEnd)&&w>N&&(w=N,q.position=AI(this.W,N)*DE(this).V),a=this.W.U; SvJ(this)&&(a=this.W.U);N=b||g.$m(this.Ku?w-this.W.V:w-a);a=q.position+this.qM;w-=this.api.g$();var Y;if((Y=this.U)==null||!Y.isEnabled)if(this.api.Oq()){if(this.V.length>1){Y=aJ(this,this.VN.x,!0);if(!this.Rr)for(G=0;G1)for(G=0;G0)for(Y=this.VN.x,G=g.V(this.X),k=G.next();!k.done;k=G.next())k=k.value,O=Wf(this,k.timeRangeStartMillis/ (this.W.V*1E3),DE(this)),g.kX(k.element,"ytp-timed-marker-hover",O<=Y&&O+6>=Y);G=this.tooltip.scale;Y=this.api.T("delhi_modern_web_player")?67:45;e=(isNaN(e)?0:e)-Y*G;this.api.T("web_key_moments_markers")?this.VT?(Y=jVc(this.X,w*1E3),Y=Y!=null?this.X[Y].title:""):(Y=Pf(this.V,w*1E3),Y=this.V[Y].title):(Y=Pf(this.V,w*1E3),Y=this.V[Y].title);Y||(e+=16*G);this.tooltip.scale===.6&&(g.Zg(this.api.B())?(e=this.api.mQ().getPlayerSize().height-225,G=this.api.T("delhi_modern_web_player")?70:110,e=Y?e+G:e+ G+16):e=Y?110:126);G=Pf(this.V,w*1E3);this.f7=U1m(this,w,G)?G:U1m(this,w,G+1)?G+1:-1;g.kX(this.api.getRootNode(),"ytp-progress-bar-snap",this.f7!==-1&&this.V.length>1);G=!1;k=g.V(this.heatMarkersDecorations);for(O=k.next();!O.done;O=k.next()){O=O.value;var P=w*1E3;P>=O.visibleTimeRangeStartMillis&&P<=O.visibleTimeRangeEndMillis&&(Y=O.label,N=g.$m(O.decorationTimeMillis/1E3),this.api.T("web_heat_marker_use_current_time")&&(N=g.$m(wu(this,q))),G=!0)}this.QE!==G&&(this.QE=G,this.api.logVisibility(this.JS, this.QE));g.kX(this.api.getRootNode(),"ytp-progress-bar-decoration",G);G=160*this.tooltip.scale*2;k=Y.length*(this.J?8.55:5.7);k=k<=G?k:G;O=k<160*this.tooltip.scale;G=3;!O&&k/2>q.position&&(G=1);!O&&k/2>this.L-q.position&&(G=2);this.api.B().X&&(e-=10);this.Y.length&&this.Y[0].PN&&(e-=14*(this.J?2:1),this.Tl||(this.Tl=!0,this.api.logVisibility(this.UK,this.Tl)));var K;if(vf(this)&&(((K=this.U)==null?0:K.isEnabled)||this.h2>0)){var d;e-=((d=this.U)==null?0:d.isEnabled)?OD(this):this.h2}K=void 0;vf(this)&& !this.api.T("web_player_hide_fine_scrubbing_edu")&&(K="Arrastra hacia arriba para b\u00fasquedas m\u00e1s precisas",this.L7||(this.L7=!0,this.api.logVisibility(this.M9,this.L7)));this.tooltip.jL(a,w,N,!!b,e,Y,G,K)}else this.tooltip.jL(a,w,N,!!b,e);g.gU(this.api.getRootNode(),"ytp-progress-bar-hover");hlm(this)}; g.C.EFl=function(){this.Wa();g.wU(this.api.getRootNode(),"ytp-progress-bar-hover");this.Tl&&(this.Tl=!1,this.api.logVisibility(this.UK,this.Tl));this.L7&&(this.L7=!1,this.api.logVisibility(this.M9,this.L7));this.api.T("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&this.api.publish("progressBarHoverEnd")}; g.C.p5K=function(q,a){var w=g.RR(this.element);this.Nh=q-w.x;vf(this)&&this.U&&(this.U.f7?I3(this.U,this.api.getCurrentTime()):lFV(this.U),this.U.show(),g.kX(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.U.isEnabled));this.ke&&(this.ke.dispose(),this.ke=null);this.ym=a;this.E3=this.api.getCurrentTime();this.V.length>1&&this.f7!==-1?this.api.seekTo(this.V[this.f7].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(wu(this,DE(this)),!1,void 0,void 0,7);g.gU(this.element,"ytp-drag");(this.Q0= this.api.getPlayerStateObject().isOrWillBePlaying())&&this.api.pauseVideo()}; g.C.TG9=function(){if(vf(this)&&this.U){var q=OD(this);this.h2>=q*.5?(this.U.enable(),I3(this.U,this.api.getCurrentTime()),WMJ(this,q)):Np(this)}if(g.v(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var a;if((a=this.U)==null?0:a.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.V.length>1&&this.f7!==-1)this.api.T("html5_enable_progress_bar_slide_seek_logging")&&GG(this,this.E3,this.V[this.f7].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.V[this.f7].startTime/1E3,void 0,void 0,void 0,7);else{q=wu(this,DE(this));this.api.T("html5_enable_progress_bar_slide_seek_logging")&&GG(this,this.E3,q,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(q,void 0,void 0,void 0,7);a=g.V(this.heatMarkersDecorations);for(var w=a.next();!w.done;w=a.next())w=w.value,q*1E3>=w.visibleTimeRangeStartMillis&&q*1E3<=w.visibleTimeRangeEndMillis&& this.api.logClick(this.JS)}g.wU(this.element,"ytp-drag");this.jt&&(this.y7.src=this.jt);this.Q0&&!g.v(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.C.X59=function(q,a){var w=this,G=DE(this),k=wu(this,G);this.api.mQ().Ow||(G.position>this.Nh+2?this.OQ&&(this.y7.src=this.OQ):G.position1);this.Ji(q&&this.j.mQ().getPlayerSize().width>=400);this.j.logVisibility(this.element,this.Fw);var a=1;q&&this.isActive()&&(a=2);if(this.V!==a){this.V=a;q=this.j.T("delhi_modern_web_player_icons");switch(a){case 1:this.updateValue("icon",q?{G:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{G:"path",Z:{d:"M21 3H3C2.46 3 1.96 3.21 1.58 3.58C1.21 3.96 1 4.46 1 5V8C1.68 8.00 2.34 8.05 3 8.15V5H21V19H13.84C13.94 19.65 13.99 20.31 14 21H21C21.53 21 22.03 20.78 22.41 20.41C22.78 20.03 23 19.53 23 19V5C23 4.46 22.78 3.96 22.41 3.58C22.03 3.21 21.53 3 21 3ZM1 10V12C2.18 12 3.35 12.23 4.44 12.68C5.53 13.13 6.52 13.80 7.36 14.63C8.19 15.47 8.86 16.46 9.31 17.55C9.76 18.64 10 19.81 10 21H12C12 18.08 10.84 15.28 8.77 13.22C6.71 11.15 3.91 10 1 10ZM1 14V16C1.65 16 2.30 16.12 2.91 16.38C3.52 16.63 4.07 17.00 4.53 17.46C4.99 17.92 5.36 18.48 5.61 19.08C5.87 19.69 6 20.34 6 21H8C8 19.14 7.26 17.36 5.94 16.05C4.63 14.73 2.85 14 1 14ZM1 18V21H4C3.99 20.20 3.68 19.44 3.12 18.87C2.55 18.31 1.79 18.00 1 18Z", fill:"white"}}]}:{G:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{G:"path",dG:!0,Z:{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", q?{G:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{G:"path",Z:{d:"M21.20 3.01C21.69 3.06 22.15 3.29 22.48 3.65C22.81 4.02 23.00 4.50 23 5V19L22.99 19.20C22.94 19.66 22.73 20.08 22.41 20.41C22.08 20.73 21.66 20.94 21.20 20.98L21 21H14C13.99 20.31 13.94 19.65 13.84 19H21V5H3V8.15C2.34 8.05 1.68 8.00 1 8V5C0.99 4.50 1.18 4.02 1.51 3.65C1.84 3.29 2.30 3.06 2.79 3.01L3 3H21L21.20 3.01ZM19 17V7H5V8.62C6.95 9.26 8.73 10.35 10.19 11.80C11.64 13.26 12.73 15.04 13.37 17H19ZM1 10V12C2.18 12 3.35 12.23 4.44 12.68C5.53 13.13 6.52 13.80 7.36 14.63C8.19 15.47 8.86 16.46 9.31 17.55C9.76 18.64 10 19.81 10 21H12C12 18.08 10.84 15.28 8.77 13.22C6.71 11.15 3.91 10 1 10ZM1 14V16C1.65 16 2.30 16.12 2.91 16.38C3.52 16.63 4.07 17.00 4.53 17.46C4.99 17.92 5.36 18.48 5.61 19.08C5.87 19.69 6 20.34 6 21H8C8 19.14 7.26 17.36 5.94 16.05C4.63 14.73 2.85 14 1 14ZM1 18V21H4C3.99 20.20 3.68 19.44 3.12 18.87C2.55 18.31 1.79 18.00 1 18Z", fill:"white"}}]}:g.eAJ())}g.kX(this.element,"ytp-remote-button-active",this.isActive())}}; YL.prototype.U=function(){if(this.j.getOption("remote","quickCast"))this.j.setOption("remote","quickCast",!0);else{var q=this.Wq,a=this.element;if(q.j7())q.DZ();else{q.initialize();a:{var w=g.V(q.aN.items);for(var G=w.next();!G.done;G=w.next())if(G=G.value,G.priority===1){w=G;break a}w=null}w&&(w.open(),q.kF(a));q.kF(a)}}this.j.logClick(this.element)};g.Z(Pj,g.u);Pj.prototype.V=function(q){var a=this.j.B(),w=400;this.j.T("web_player_small_hbp_settings_menu")&&a.L?w=300:a.X&&(w=200);q=this.U&&q.width>=w;this.Ji(q);this.j.T("embeds_use_parent_visibility_in_ve_logging")?this.j.logVisibility(this.element,q&&this.D):this.j.logVisibility(this.element,q)}; Pj.prototype.W=function(){if(this.Wq.Fw)this.Wq.DZ();else{var q=g.rP(this.j.Hq());q&&!q.loaded&&(q.KW("tracklist",{includeAsr:!0}).length||q.load());this.j.logClick(this.element);this.Wq.kF(this.element)}}; Pj.prototype.updateBadge=function(){var q=this.j.isHdr(),a=this.j.getPresentingPlayerType(),w=a!==2&&a!==3,G=g.WE(this.j),k=w&&!!g.ii(this.j.Hq());a=k&&G.displayMode===1;G=k&&G.displayMode===2;w=(k=a||G)||!w?null:this.j.getPlaybackQuality();g.kX(this.element,"ytp-hdr-quality-badge",q);g.kX(this.element,"ytp-hd-quality-badge",!q&&(w==="hd1080"||w==="hd1440"));g.kX(this.element,"ytp-4k-quality-badge",!q&&w==="hd2160");g.kX(this.element,"ytp-5k-quality-badge",!q&&w==="hd2880");g.kX(this.element,"ytp-8k-quality-badge", !q&&w==="highres");g.kX(this.element,"ytp-3d-badge-grey",!q&&k&&a);g.kX(this.element,"ytp-3d-badge",!q&&k&&G)};g.Z(KE,EI);KE.prototype.isLoaded=function(){var q=g.H1(this.j.Hq());return q!==void 0&&q.loaded}; KE.prototype.NB=function(){g.H1(this.j.Hq())!==void 0&&this.j.getPresentingPlayerType()!==3?this.V||(this.Wq.Qa(this),this.V=!0):this.V&&(this.Wq.Ov(this),this.V=!1);Vf(this,this.isLoaded())}; KE.prototype.onSelect=function(q){this.isLoaded();q?this.j.loadModule("annotations_module"):this.j.unloadModule("annotations_module");this.j.publish("annotationvisibility",q)}; KE.prototype.qB=function(){this.V&&this.Wq.Ov(this);EI.prototype.qB.call(this)};g.Z(du,g.HP);du.prototype.NB=function(){var q=this.j.getAvailableAudioTracks();q.length>1?(this.VV(g.sd(q,this.V)),this.tracks=g.D7(q,this.V,this),this.countLabel.z0(q.length?" ("+q.length+")":""),this.publish("size-change"),this.sP(this.V(this.j.getAudioTrack())),this.enable(!0)):this.enable(!1)}; du.prototype.r4=function(q){g.HP.prototype.r4.call(this,q);this.j.setAudioTrack(this.tracks[q]);this.Wq.Iw()}; du.prototype.V=function(q){return q.toString()};g.Z(y_c,g.e1);g.C=y_c.prototype;g.C.open=function(){g.BP(this.Wq,this.V)}; g.C.Bn=function(){this.V.MZ()>0||this.j.getPresentingPlayerType()===2?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")}; g.C.RJ=function(q){q.defaultPrevented||(this.open(),q.preventDefault())}; g.C.Qa=function(q){this.V.Qa(q)}; g.C.Ov=function(q){this.V.Ov(q)};g.Z(TG,EI); TG.prototype.U=function(){var q=this.j.getPresentingPlayerType();if(q!==2&&q!==3&&g.R$(this.j))this.V||(this.Wq.Qa(this),this.V=!0,this.W.push(this.C(this.j,"videodatachange",this.U)),this.W.push(this.C(this.j,"videoplayerreset",this.U)),this.W.push(this.C(this.j,"onPlaylistUpdate",this.U)),this.W.push(this.C(this.j,"autonavchange",this.Y)),q=this.j.getVideoData(),this.Y(q.autonavState),this.j.logVisibility(this.element,this.V));else if(this.V){this.Wq.Ov(this);this.V=!1;q=g.V(this.W);for(var a=q.next();!a.done;a= q.next())this.v5(a.value)}}; TG.prototype.Y=function(q){Vf(this,q!==1)}; TG.prototype.onSelect=function(q){this.j.hM(q?2:1);this.V&&(this.j.logVisibility(this.element,this.V),this.j.logClick(this.element))}; TG.prototype.qB=function(){this.V&&this.Wq.Ov(this);EI.prototype.qB.call(this)};g.Z(qGy,g.e1);qGy.prototype.onClick=function(q){q.preventDefault();var a,w;(a=g.MT(this.j))==null||(w=a.cW())==null||w.DZ();var G,k;(G=g.MT(this.j))==null||(k=G.j$())==null||k.kF(q.target)};g.Z(gal,g.HP);g.C=gal.prototype; g.C.hP=function(){var q=this.j.getPresentingPlayerType();if(q!==2&&q!==3){this.y7=this.j.e_();var a=this.j.getAvailableQualityLevels();if(this.V){this.Y={};q=g.xU(this.j,"getAvailableQualityData",[]);q=g.V(q);for(var w=q.next();!w.done;w=q.next())w=w.value,this.Y[w.qualityLabel]=w;q=Object.keys(this.Y);a[a.length-1]==="auto"&&q.push("auto");this.jt=new Set(a)}else if(this.L){w=g.xU(this.j,"getAvailableQualityData",[]);q=[];w=g.V(w);for(var G=w.next();!G.done;G=w.next())G=G.value,this.S[G.quality]= G,G.quality&&q.push(G.quality);a[a.length-1]==="auto"&&q.push("auto")}else q=a;g.Btm(this.j)&&this.j.nS()&&q.unshift("missing-qualities");a=this.j.app.xT();w=a.getVideoData();if(!w.U||!w.U.video||w.U.video.qualityOrdinal<1080||w.zs)a=!1;else{G=/^qsa/.test(w.clientPlaybackNonce);var k="r";w.U.id.indexOf(";")>=0&&(G=/^[a-p]/.test(w.clientPlaybackNonce),k="x");G?(a.d8("iqss",{trigger:k},!0),a=!0):a=!1}a&&q.unshift("inline-survey");this.VV(q);a=this.j.getVideoData().cotn?!0:!1;w=this.UK.GA();w=!g.Zg(this.j.B())|| !(a===void 0?0:a)||!(w===void 0||w);a=this.U;w=w===void 0?!1:w;a.QQ&&g.kX(a.oW("ytp-panel-footer"),"ytp-panel-hide-footer",w===void 0?!1:w);if(q.length){this.sX();this.enable(!0);return}}this.enable(!1)}; g.C.sX=function(){if(this.V){var q=this.j.getPreferredQuality();this.jt.has(q)&&(this.X=this.j.getPlaybackQuality(),this.F9=this.j.getPlaybackQualityLabel(),q==="auto"?(this.sP(q),this.z0(this.I_(q))):this.sP(this.F9))}else q=this.j.getPreferredQuality(),this.options[q]&&(this.X=this.j.getPlaybackQuality(),this.sP(q),q==="auto"&&this.z0(this.I_(q)))}; g.C.r4=function(q){if(q!=="missing-qualities"){g.HP.prototype.r4.call(this,q);var a=this.V?this.Y[q]:this.S[q];var w=a==null?void 0:a.quality,G=a==null?void 0:a.formatId,k=a==null?void 0:a.paygatedQualityDetails;a=k==null?void 0:k.endpoint;if(k){var b;k=(b=this.options[q])==null?void 0:b.element;this.j.logClick(k)}if(this.V){var O,e;if((O=g.I(a,g.waU))==null?0:(e=O.popup)==null?0:e.notificationActionRenderer)this.j.zl("innertubeCommand",a);else if(a){this.j.zl("innertubeCommand",a);return}G?this.j.setPlaybackQuality(w, G):this.j.setPlaybackQuality(w)}else{if(this.L){var N,Y;if((N=g.I(a,g.waU))==null?0:(Y=N.popup)==null?0:Y.notificationActionRenderer)this.j.zl("innertubeCommand",a);else if(a){this.j.zl("innertubeCommand",a);return}}this.j.setPlaybackQuality(q)}this.Wq.DZ();this.hP()}}; g.C.open=function(){for(var q=g.V(Object.values(this.options)),a=q.next();!a.done;a=q.next()){a=a.value;var w=void 0;this.j.hasVe((w=a)==null?void 0:w.element)&&(w=void 0,this.j.logVisibility((w=a)==null?void 0:w.element,!0))}g.HP.prototype.open.call(this);this.j.logClick(this.element)}; g.C.dK=function(q,a,w){var G=this;if(q==="missing-qualities")return new g.e1({G:"a",vT:["ytp-menuitem"],Z:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.j.B().J,tabindex:"0",role:"menuitemradio"},K:[{G:"div",vT:["ytp-menuitem-label"],ue:"{{label}}"}]},a,this.I_(q));if(q!=="inline-survey"){var k,b=(k=this.V?this.Y[q]:this.S[q])==null?void 0:k.paygatedQualityDetails;k=b==null?void 0:b.veType;b=b==null?void 0:b.trackingParams;a=g.HP.prototype.dK.call(this,q,a,w);b?(this.j.createServerVe(a.element, this,!0),this.j.setTrackingParams(a.element,b)):k&&this.j.createClientVe(a.element,this,k,!0);return a}q=[{G:"span",ue:"\u00bfSe ve bien?"}];w=g.V([!0,!1]);b=w.next();for(k={};!b.done;k={Pu:void 0},b=w.next())k.Pu=b.value,b=new g.u({G:"span",N:"ytp-menuitem-inline-survey-response",K:[k.Pu?CMG():dRV()],Z:{tabindex:"0",role:"button"}}),b.listen("click",function(O){return function(){var e=G.j.app.xT();e.d8("iqsr",{tu:O.Pu});e.getVideoData().zs=!0;G.Wq.DZ();G.hP()}}(k)),q.push(b); return new g.e1({G:"div",N:"ytp-menuitem",Z:{"aria-disabled":"true"},K:[{G:"div",vT:["ytp-menuitem-label"],K:q}]},a)}; g.C.I_=function(q,a){a=a===void 0?!1:a;if(q==="missing-qualities")return{G:"div",ue:"\u00bfFalta alguna opci\u00f3n?"};if(q==="inline-survey")return"";var w=this.L||this.V?[GqN(this,q,a,!1)]:[wuG(this,q)];var G=this.j.getPreferredQuality();a||G!=="auto"||q!=="auto"||(w.push(" "),this.V?w.push(GqN(this,this.F9,a,!0,["ytp-menu-label-secondary"])):this.L?w.push(GqN(this,this.X,a,!0,["ytp-menu-label-secondary"])):w.push(wuG(this,this.X,["ytp-menu-label-secondary"])));return{G:"div",K:w}};g.Z($L,Hf);$L.prototype.W=function(){Hf.prototype.W.call(this);this.J&&kqN(this)}; $L.prototype.jt=function(){this.F9()}; $L.prototype.y7=function(){this.j.setPlaybackRate(this.V,!0)}; $L.prototype.X=function(q){Hf.prototype.X.call(this,q);this.F9();kqN(this);q.preventDefault()};g.Z(sD,g.u);g.C=sD.prototype;g.C.init=function(){this.u_(this.V);this.updateValue("minvalue",this.U);this.updateValue("maxvalue",this.W)}; g.C.LG=function(q){if(!q.defaultPrevented){switch(q.keyCode){case 37:case 40:var a=-this.S;break;case 39:case 38:a=this.S;break;default:return}this.u_(this.V+a);q.preventDefault()}}; g.C.iZ=function(q){var a=this.V;a+=(q.deltaX||-q.deltaY)<0?-this.J:this.J;this.u_(a);q.preventDefault()}; g.C.v0=function(q){q=(q-g.RR(this.Y).x)/this.F9*this.range+this.U;this.u_(q)}; g.C.u_=function(q,a){a=a===void 0?"":a;q=g.X1(q,this.U,this.W);a===""&&(a=q.toString());this.updateValue("valuenow",q);this.updateValue("valuetext",a);this.UK.style.left=(q-this.U)/this.range*(this.F9-this.f7)+"px";this.V=q}; g.C.focus=function(){this.EK.focus()};g.Z(FG,sD);FG.prototype.y7=function(){this.j.setPlaybackRate(this.V,!0)}; FG.prototype.u_=function(q){sD.prototype.u_.call(this,q,Ouc(this,q).toString());this.L&&(buV(this),this.jt())}; FG.prototype.updateValues=function(){var q=this.j.getPlaybackRate();Ouc(this,this.V)!==q&&(this.u_(q),buV(this))};g.Z(lrl,g.Gs);lrl.prototype.focus=function(){this.V.focus()};g.Z(eyV,QM);g.Z(YGl,g.HP);g.C=YGl.prototype;g.C.I_=function(q){return q==="1"?"Normal":q.toLocaleString()}; g.C.NB=function(){var q,a=(q=this.j.getVideoData())==null?void 0:q.fT();q=this.j.getPresentingPlayerType(a);this.enable(q!==2&&q!==3);d3V(this)}; g.C.VV=function(q){g.HP.prototype.VV.call(this,q);this.S&&this.S.U.focus()}; g.C.Bz=function(q){g.HP.prototype.Bz.call(this,q);q?(this.UK=this.C(this.j,"onPlaybackRateChange",this.onPlaybackRateChange),d3V(this),PSl(this,this.j.getPlaybackRate())):(this.v5(this.UK),this.UK=null)}; g.C.onPlaybackRateChange=function(q){var a=this.j.getPlaybackRate();!this.Y&&this.F9.includes(a)||K6U(this,a);PSl(this,q)}; g.C.dK=function(q,a,w){return q===this.V&&$3G(this.j)?g.HP.prototype.dK.call(this,q,a,w,{G:"div",N:"ytp-speed-slider-menu-footer",K:[this.S]}):q===this.L&&Nsf(this.j)?TsK(this,q,a,w):g.HP.prototype.dK.call(this,q,a,w)}; g.C.r4=function(q){g.HP.prototype.r4.call(this,q);q===this.V?this.j.setPlaybackRate(this.X,!0):this.j.setPlaybackRate(Number(q),!0);$3G(this.j)&&q===this.V||this.Wq.Iw()}; g.C.Ho=function(q){var a=q===this.V;this.Y=!1;a&&CE(this.j)&&!$3G(this.j)?(q=new eyV(this.j),g.BP(this.Wq,q)):g.HP.prototype.Ho.call(this,q)};g.Z(F6U,g.HP);g.C=F6U.prototype;g.C.sP=function(q){g.HP.prototype.sP.call(this,q)}; g.C.Kw=function(q){return q.option.toString()}; g.C.getOption=function(q){return this.settings[q]}; g.C.I_=function(q){return this.getOption(q).text||""}; g.C.r4=function(q){g.HP.prototype.r4.call(this,q);this.publish("settingChange",this.setting,this.settings[q].option)};g.Z(ED,g.As);ED.prototype.iM=function(q){for(var a=g.V(Object.keys(q)),w=a.next();!w.done;w=a.next()){var G=w.value;if(w=this.dJ[G]){var k=q[G].toString();G=!!q[G+"Override"];w.options[k]&&(w.sP(k),w.Y.element.setAttribute("aria-checked",String(!G)),w.V.element.setAttribute("aria-checked",String(G)))}}}; ED.prototype.tJ=function(q,a){this.publish("settingChange",q,a)};g.Z(VK,g.HP);VK.prototype.V=function(q){return q.languageCode}; VK.prototype.I_=function(q){return this.languages[q].languageName||""}; VK.prototype.r4=function(q){this.publish("select",q);this.j.logClick(this.element);g.rz(this.Wq)};g.Z(EaK,g.HP);g.C=EaK.prototype;g.C.Pr=function(q){return g.KH(q)?"__off__":q.displayName}; g.C.I_=function(q){return q==="__off__"?"Desactivados":q==="__translate__"?"Traducir autom\u00e1ticamente":q==="__contribute__"?"A\u00f1adir subt\u00edtulos":q==="__correction__"?"Sugerir correcciones en los subt\u00edtulos":(q==="__off__"?{}:this.tracks[q]).displayName}; g.C.r4=function(q){if(q==="__translate__")this.V.open();else if(q==="__contribute__"){this.j.pauseVideo();this.j.isFullscreen()&&this.j.toggleFullscreen();var a=g.PX(this.j.B(),this.j.getVideoData());g.HA(a)}else if(q==="__correction__"){this.j.pauseVideo();this.j.isFullscreen()&&this.j.toggleFullscreen();var w=VJm(this);Jg(this,w);g.HP.prototype.r4.call(this,this.Pr(w));var G,k;w=(a=this.j.getVideoData().getPlayerResponse())==null?void 0:(G=a.captions)==null?void 0:(k=G.playerCaptionsTracklistRenderer)== null?void 0:k.openTranscriptCommand;this.j.zl("innertubeCommand",w);this.Wq.Iw();this.Y&&this.j.logClick(this.Y)}else{if(q==="__correction__"){this.j.pauseVideo();this.j.isFullscreen()&&this.j.toggleFullscreen();a=VJm(this);Jg(this,a);g.HP.prototype.r4.call(this,this.Pr(a));var b,O;a=(w=this.j.getVideoData().getPlayerResponse())==null?void 0:(b=w.captions)==null?void 0:(O=b.playerCaptionsTracklistRenderer)==null?void 0:O.openTranscriptCommand;this.j.zl("innertubeCommand",a)}else this.j.logClick(this.element), Jg(this,q==="__off__"?{}:this.tracks[q]),g.HP.prototype.r4.call(this,q);this.Wq.Iw()}}; g.C.NB=function(){var q=this.j.getOptions();q=q&&q.indexOf("captions")!==-1;var a=this.j.getVideoData(),w=a&&a.di,G,k=!((G=this.j.getVideoData())==null||!g.T4(G));G={};if(q||w){var b;if(q){var O=this.j.getOption("captions","track");G=this.j.getOption("captions","tracklist",{includeAsr:!0});var e=k?[]:this.j.getOption("captions","translationLanguages");this.tracks=g.D7(G,this.Pr,this);k=g.sd(G,this.Pr);var N,Y;VJm(this)&&((b=a.getPlayerResponse())==null?0:(N=b.captions)==null?0:(Y=N.playerCaptionsTracklistRenderer)== null?0:Y.openTranscriptCommand)&&k.push("__correction__");if(e.length&&!g.KH(O)){if((b=O.translationLanguage)&&b.languageName){var P=b.languageName;b=e.findIndex(function(K){return K.languageName===P}); rmN(e,b)}CSV(this.V,e);k.push("__translate__")}b=this.Pr(O)}else this.tracks={},k=[],b="__off__";k.unshift("__off__");this.tracks.__off__={};w&&k.unshift("__contribute__");this.tracks[b]||(this.tracks[b]=O,k.push(b));this.VV(k);this.sP(b);O&&O.translationLanguage?this.V.sP(this.V.V(O.translationLanguage)):cgU(this.V);q&&this.L.iM(this.j.getSubtitlesUserSettings());this.countLabel.z0(G&&G.length?" ("+G.length+")":"");this.publish("size-change");this.j.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.C.DY=function(q){var a=this.j.getOption("captions","track");a=g.$I(a);a.translationLanguage=this.V.languages[q];Jg(this,a)}; g.C.tJ=function(q,a){if(q==="reset")this.j.resetSubtitlesUserSettings();else{var w={};w[q]=a;this.j.updateSubtitlesUserSettings(w)}ZuK(this,!0);this.X.start();this.L.iM(this.j.getSubtitlesUserSettings())}; g.C.qB2=function(q){q||g.zE(this.X)}; g.C.qB=function(){g.zE(this.X);g.HP.prototype.qB.call(this)}; g.C.open=function(){g.HP.prototype.open.call(this);this.options.__correction__&&!this.Y&&(this.Y=this.options.__correction__.element,this.j.createClientVe(this.Y,this,167341),this.j.logVisibility(this.Y,!0))};g.Z(JJc,g.Lh);g.C=JJc.prototype; g.C.initialize=function(){if(!this.isInitialized){var q=this.j.B();this.isInitialized=!0;try{this.Ou=new gal(this.j,this)}catch(w){g.Qa(Error("QualityMenuItem creation failed"))}g.p(this,this.Ou);var a=new EaK(this.j,this);g.p(this,a);q.W||(a=new KE(this.j,this),g.p(this,a));q.enableSpeedOptions&&(a=new YGl(this.j,this),g.p(this,a));(g.yw(q)||q.L)&&(q.U||q.le)&&(a=new qGy(this.j,this),g.p(this,a));q.RA&&!q.T("web_player_move_autonav_toggle")&&(a=new TG(this.j,this),g.p(this,a));q.T("html5_enable_new_audio_settings_menu")&& (this.CN=new y_c(this.j,this),g.p(this,this.CN));q=new du(this.j,this);g.p(this,q);this.j.publish("settingsMenuInitialized");Rlm(this.settingsButton,this.aN.MZ())}}; g.C.Qa=function(q){this.initialize();this.aN.Qa(q);Rlm(this.settingsButton,this.aN.MZ())}; g.C.Ov=function(q){this.Fw&&this.aN.MZ()<=1&&this.hide();this.aN.Ov(q);Rlm(this.settingsButton,this.aN.MZ())}; g.C.kF=function(q){this.initialize();this.aN.MZ()>0&&g.Lh.prototype.kF.call(this,q)}; g.C.DZ=function(){this.V9?this.V9=!1:g.Lh.prototype.DZ.call(this)}; g.C.show=function(){g.Lh.prototype.show.call(this);g.gU(this.j.getRootNode(),"ytp-settings-shown")}; g.C.hide=function(){g.Lh.prototype.hide.call(this);g.wU(this.j.getRootNode(),"ytp-settings-shown")}; g.C.wx=function(q){this.j.logVisibility(this.element,q);this.j.publish("settingsMenuVisibilityChanged",q)};g.Z(AJm,g.u);g.C=AJm.prototype;g.C.onClick=function(){if(mD(this)&&(this.j.toggleSubtitles(),this.j.logClick(this.element),!this.isEnabled())){var q=!1,a=g.S2(g.hE(),65);g.Zg(this.j.B())&&a!=null&&(q=!a);q&&this.j.B().T("web_player_nitrate_promo_tooltip")&&this.j.publish("showpromotooltip",this.element)}}; g.C.D9K=function(q){var a,w;(a=g.MT(this.j))==null||(w=a.cW())==null||w.kF(q)}; g.C.isEnabled=function(){var q=this.j.getOption("captions","track");return!(!q||!q.displayName)}; g.C.NB=function(){var q=mD(this),a=300;this.j.B().X&&(a=480);this.j.T("delhi_modern_web_player_icons")&&this.updateValue("icon",Qil(this));if(this.j.B().L){this.updateValue("title",g.jw(this.j,"Subt\u00edtulos","c"));this.update({"tooltip-title":g.jw(this.j,"Subt\u00edtulos","c")});this.update({"data-title-no-tooltip":"Subt\u00edtulos"});var w=q}else{if(q)(w=this.oW("ytp-subtitles-button-icon"))==null||w.setAttribute("fill-opacity","1"),this.j.B().T("player_tooltip_data_title_killswitch")?this.updateValue("title", g.jw(this.j,"Subt\u00edtulos","c")):this.update({"tooltip-title":g.jw(this.j,"Subt\u00edtulos","c")}),this.update({"data-title-no-tooltip":"Subt\u00edtulos"});else{if(this.j.T("delhi_modern_web_player_icons")){var G;(G=this.oW("ytp-subtitles-button-icon"))==null||G.getElementsByTagName("svg")[0].setAttribute("fill-opacity","0.3")}else{var k;(k=this.oW("ytp-subtitles-button-icon"))==null||k.setAttribute("fill-opacity","0.3")}this.updateValue("title","Subt\u00edtulos no disponibles");this.update({"tooltip-title":"Subt\u00edtulos no disponibles"}); this.update({"data-title-no-tooltip":"Subt\u00edtulos no disponibles"})}w=!0}this.tooltip.Fm();w=w&&this.j.mQ().getPlayerSize().width>=a;this.Ji(w);this.j.T("embeds_use_parent_visibility_in_ve_logging")?this.j.logVisibility(this.element,w&&this.D):this.j.logVisibility(this.element,w);q?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)}; g.C.Si=function(q){g.u.prototype.Si.call(this,q);this.j.B().T("embeds_use_parent_visibility_in_ve_logging")&&this.j.logVisibility(this.element,this.Fw&&q)};g.Z(g.QK,g.u);g.C=g.QK.prototype;g.C.canShowCountdown=function(){return!xL(this)&&!Ag(this)}; g.C.EQ=function(){var q=this.api.mQ().getPlayerSize().width,a=this.J;this.api.B().X&&(a=400);a=q>=a&&(!Ag(this)||!g.v(this.api.getPlayerStateObject(),64));this.Ji(a);g.kX(this.element,"ytp-time-display-allow-autohide",a&&q<400);q=this.api.getProgressState();if(a){var w=this.api.getPresentingPlayerType();a=this.api.getCurrentTime(w,!1);this.U&&(a-=q.airingStart);xL(this)&&(a-=this.Rr.startTimeMs/1E3);this.canShowCountdown()&&this.W&&(a-=this.api.getDuration(w,!1));var G=g.$m(a);this.Y!==G&&(this.updateValue("currenttime", G),this.Y=G);w=xL(this)?(this.Rr.endTimeMs-this.Rr.startTimeMs)/1E3:this.api.getDuration(w,!1);G=g.$m(w);this.L!==G&&(this.updateValue("duration",G),this.L=G,a&&(a=g.gZ("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.$m(a,!0),DURATION:g.$m(w,!0)}),this.updateValue("timeDisplayAriaLabel",a)))}x3f(this,q.isAtLiveHead);L6N(this,this.api.getLoopRange())}; g.C.onLoopRangeChange=function(q){var a=this.Rr!==q;this.Rr=q;a&&(this.EQ(),BsK(this))}; g.C.nw8=function(){this.api.setLoopRange(null)}; g.C.Okt=function(){this.W=!this.W;this.EQ()}; g.C.onVideoDataChange=function(q,a,w){this.updateVideoData((this.api.B().T("enable_topsoil_wta_for_halftime")||this.api.B().T("enable_topsoil_wta_for_halftime_live_infra"))&&w===2?this.api.getVideoData(1):a);this.EQ();BsK(this)}; g.C.updateVideoData=function(q){this.Jy=q.isLivePlayback&&!q.IW;this.U=Fe(q);this.isPremiere=q.isPremiere;g.kX(this.element,"ytp-live",Ag(this));this.api.T("delhi_modern_web_player")&&this.oW("ytp-time-wrapper").classList.toggle("ytp-time-wrapper-delhi",this.canShowCountdown())}; g.C.onClick=function(q){q.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.C.qB=function(){this.V&&this.V();g.u.prototype.qB.call(this)};g.Z(naV,g.u);g.C=naV.prototype;g.C.TC=function(){var q=this.api.o8();this.W!==q&&(this.W=q,rJf(this,this.api.getVolume(),this.api.isMuted()))}; g.C.tv=function(q){this.Ji(q.width>=350)}; g.C.oU=function(q){if(!q.defaultPrevented){var a=q.keyCode,w=null;a===37?w=this.volume-5:a===39?w=this.volume+5:a===36?w=0:a===35&&(w=100);w!==null&&(w=g.X1(w,0,100),w===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(w)),q.preventDefault())}}; g.C.QM=function(q){var a=q.deltaX||-q.deltaY;q.deltaMode?this.api.setVolume(this.volume+(a<0?-10:10)):this.api.setVolume(this.volume+g.X1(a/10,-10,10));q.preventDefault()}; g.C.YBB=function(){LE(this,this.V,!0,this.U,this.api.RO());this.J=this.volume;this.api.isMuted()&&this.api.unMute()}; g.C.yM=function(q){var a=this.W?78:52,w=this.W?18:12;q-=g.RR(this.S).x;this.api.setVolume(g.X1((q-w/2)/(a-w),0,1)*100)}; g.C.ow7=function(){LE(this,this.V,!1,this.U,this.api.RO());this.volume===0&&(this.api.mute(),this.api.setVolume(this.J))}; g.C.onVolumeChange=function(q){rJf(this,q.volume,q.muted)}; g.C.Gv=function(){LE(this,this.V,this.isDragging,this.U,this.api.RO())}; g.C.qB=function(){g.u.prototype.qB.call(this);g.wU(this.X,"ytp-volume-slider-active")};g.Z(Bj,g.u); Bj.prototype.onVideoDataChange=function(){var q=this.api.B();this.sA();this.visible=!!this.api.getVideoData().videoId&&!this.api.getVideoData(1).J8;this.Ji(this.visible);this.api.logVisibility(this.element,this.visible&&this.D);if(this.visible){var a=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",a)}q.W&&(this.V&&(this.v5(this.V),this.V=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.gU(this.element,"no-link")); a=this.api.B();q=this.api.getVideoData();var w="";a.W||(a=g.Tu(a),a.indexOf("www.")===0&&(a=a.substring(4)),w=g.CD(q)?"Ver en YouTube Music":a==="youtube.com"?"Ver en YouTube":g.gZ("Ver en $WEBSITE",{WEBSITE:a}));this.api.T("player_tooltip_data_title_killswitch")?this.updateValue("title",w):this.updateValue("tooltip-title",w)}; Bj.prototype.onClick=function(q){this.api.T("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var a=this.api.B(),w=this.api.getVideoUrl(!g.sx(q),!1,!0,!0);if(g.yw(a)){var G={};g.yw(a)&&g.xU(this.api,"addEmbedsConversionTrackingParams",[G]);w=g.sk(w,G)}g.mE(w,this.api,q);this.api.T("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; Bj.prototype.sA=function(){var q={G:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},K:[{G:"path",dG:!0,N:"ytp-svg-fill",Z:{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 "}}]}, a=28666,w=this.api.getVideoData();this.api.isEmbedsShortsMode()?q={G:"svg",Z:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},K:[{G:"path",Z:{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.CD(w)&&(q={G:"svg",Z:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},K:[{G:"path",Z:{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"}},{G:"path",Z:{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"}},{G:"path",Z:{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"}},{G:"path",Z:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{G:"path",Z:{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"}},{G:"path",Z:{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"}},{G:"path",Z:{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"}},{G:"path",Z:{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"}},{G:"path",Z:{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"}},{G:"path",Z:{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"}},{G:"path",Z:{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"}},{G:"path",Z:{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"}}]},a=216163);g.CD(w)?g.gU(this.element,"ytp-youtube-music-button"):g.wU(this.element,"ytp-youtube-music-button");q.Z=Object.assign({},q.Z,{"aria-hidden":"true"});this.updateValue("logoSvg",q);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,a,!0)}; Bj.prototype.Si=function(q){g.u.prototype.Si.call(this,q);this.api.logVisibility(this.element,this.visible&&q)};g.Z(SGc,g.Ee);g.C=SGc.prototype;g.C.onProgress=function(){if(this.j.T("web_player_max_seekable_on_ended")||!g.v(this.j.getPlayerStateObject(),2))this.progressBar.EQ(),this.EK.EQ()}; g.C.CC=function(){this.I6();if(this.y0.U)this.onProgress();else this.progressBar.Wa()}; g.C.Yu=function(){this.onProgress();this.J.start()}; g.C.I6=function(){var q;if(q=!this.j.B().U){q=this.progressBar;var a=2*g.CA()*q.L,w=q.W;q=(w.V-w.U)*1E3/q.api.getPlaybackRate()/a<300}q=q&&this.j.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;a=!q;this.y0.U||(q=a=!1);a?this.y7||(this.y7=this.C(this.j,"progresssync",this.onProgress)):this.y7&&(this.v5(this.y7),this.y7=null);q?this.J.isActive()||this.J.start():this.J.stop()}; g.C.sA=function(){var q=this.j.o8(),a=this.j.mQ().getPlayerSize(),w=this.j.mQ().Ow,G=Huf(this),k=cJJ(this),b=Math.max(a.width-G*2,100);if(this.OA!==a.width||this.VN!==q||this.j.T("web_player_rtr_ctrls")&&this.YM!==w)this.OA=a.width,this.VN=q,this.YM=w,this.U.element.style.width=k+"px",this.U.element.style.left=G+"px",g.zlc(this.progressBar,G,k,q),this.j.gz().Ef=k;w=this.Y;b=Math.min(570*(q?1.5:1),b);q=Math.min(413*(q?1.5:1),Math.round((a.height-puV(this))*.82));w.maxWidth=b;w.maxHeight=q;w.B_();this.I6(); this.uF&&Mh_(this.IW,a.height)}; g.C.onVideoDataChange=function(){var q=this.j.getVideoData();this.St.style.background=q.J8?q.kA:"";this.UK&&Uyf(this.UK,q.showSeekingControls);this.F9&&Uyf(this.F9,q.showSeekingControls)}; g.C.cq=function(){return this.U.element};g.Z(U3K,mp);g.C=U3K.prototype;g.C.PU=function(q){q.target!==this.dismissButton.element&&(this.onClickCommand&&this.j.zl("innertubeCommand",this.onClickCommand),this.oM())}; g.C.oM=function(){this.enabled=!1;this.J.hide()}; g.C.onVideoDataChange=function(q,a){q==="dataloaded"&&XuV(this);q=[];var w,G,k,b;if(a=(b=g.I((w=a.getWatchNextResponse())==null?void 0:(G=w.playerOverlays)==null?void 0:(k=G.playerOverlayRenderer)==null?void 0:k.suggestedActionsRenderer,nAV))==null?void 0:b.suggestedActions)for(w=g.V(a),G=w.next();!G.done;G=w.next())(G=g.I(G.value,MUe))&&g.I(G.trigger,rM7)&&q.push(G);if(q.length!==0){w=[];q=g.V(q);for(G=q.next();!G.done;G=q.next())if(G=G.value,k=g.I(G.trigger,rM7))b=(b=G.title)?g.OE(b):"View Chapters", a=k.timeRangeStartMillis,k=k.timeRangeEndMillis,a!=null&&k!=null&&G.tapCommand&&(w.push(new g.Xo(a,k,{priority:9,namespace:"suggested_action_button_visible",id:b})),this.suggestedActions[b]=G.tapCommand);this.j.N9(w)}}; g.C.bI=function(){return this.enabled}; g.C.wx=function(){this.enabled?this.Tl.start():VM(this);this.zg()}; g.C.qB=function(){XuV(this);mp.prototype.qB.call(this)};var Ai={},Mp=(Ai.CHANNEL_NAME="ytp-title-channel-name",Ai.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",Ai.LINK="ytp-title-link",Ai.SESSIONLINK="yt-uix-sessionlink",Ai.SUBTEXT="ytp-title-subtext",Ai.TEXT="ytp-title-text",Ai.TITLE="ytp-title",Ai);g.Z(hg,g.u);hg.prototype.onClick=function(q){this.api.logClick(this.element);var a=this.api.B(),w=this.api.getVideoUrl(!g.sx(q),!1,!0);g.yw(a)&&(a={},g.xU(this.api,"addEmbedsConversionTrackingParams",[a]),w=g.sk(w,a));g.mE(w,this.api,q)}; hg.prototype.NB=function(){var q=this.api.getVideoData(),a=this.api.B();this.updateValue("title",q.title);var w={G:"a",N:Mp.CHANNEL_NAME,Z:{href:"{{channelLink}}",target:"_blank"},ue:"{{channelName}}"};this.api.B().W&&(w={G:"span",N:Mp.CHANNEL_NAME,ue:"{{channelName}}",Z:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",w);jiy(this);this.api.getPresentingPlayerType()===2&&(w=this.api.getVideoData(),w.videoId&&w.isListed&&w.author&&w.VN&&w.profilePicture?(this.updateValue("channelLink", w.VN),this.updateValue("channelName",w.author),this.updateValue("channelTitleFocusable","0")):jiy(this));w=a.externalFullscreen||!this.api.isFullscreen()&&a.hJ;g.kX(this.link,Mp.FULLERSCREEN_LINK,w);a.UK||!q.videoId||w||q.J8||a.W?this.V&&(this.updateValue("url",null),this.v5(this.V),this.V=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.V||(this.V=this.C(this.link,"click",this.onClick)));a.W&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.yw(a)?q.expandedTitle: q.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.Z(g.Sf,g.u);g.C=g.Sf.prototype;g.C.setEnabled=function(q){if(this.type!=null)if(q)switch(this.type){case 3:case 2:fE(this);this.fade.show();break;default:this.fade.show()}else this.fade.hide();this.X=q}; g.C.jL=function(q,a,w,G,k,b,O,e){if(!this.jt||this.env.X){this.type===3&&this.Wa();this.type!==1&&(g.yO(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.X&&this.fade.show(),this.U&&this.U.dispose(),(this.U=this.api.Oq())&&this.U.subscribe("l",this.uf,this));if(e){var N=g.gh(this.bg).height||141;this.f7.style.bottom=N+2+"px"}else this.f7.style.display="none";this.env.T("delhi_modern_web_player")?(this.update({pillTimeStamp:w,pillTitle:b!=null?b:"",eduText:e!=null?e:""}),g.gU(this.element,"ytp-tooltip-progress-bar-style")): (this.update({text:w,title:b!=null?b:"",eduText:e!=null?e:""}),g.kX(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!b));this.api.isInline()&&g.gU(this.bottomText,"ytp-modern-tooltip-text");g.kX(this.element,"ytp-text-detail",!!G);w=-1;this.U&&(w=Or(this.U,243*this.scale),this.env.T("web_l3_storyboard")&&this.U.levels.length===4&&(w=this.U.levels.length-1),w=aNJ(this.U,w,a));tJl(this,w);if(O)switch(a=g.gh(this.element).width,O){case 1:this.title.style.right="0";this.title.style.textAlign= "left";break;case 2:this.title.style.right=a+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=a/2+"px",this.title.style.textAlign="center"}uny(this,!!G,q,k)}}; g.C.bJ=function(){this.type===1&&this.Wa()}; g.C.c8=function(q,a){if(this.type)if(this.type===3)this.Wa();else return;oaK(this,q,3,a)}; g.C.Fm=function(){this.V&&!this.S&&(this.env.T("player_tooltip_data_title_killswitch")?this.V.hasAttribute("title")&&(this.W=this.V.getAttribute("title")||"",this.V.removeAttribute("title"),this.X&&fE(this)):this.V.hasAttribute("data-tooltip-title")&&(this.W=this.V.getAttribute("data-tooltip-title")||"",this.V.removeAttribute("data-tooltip-title"),this.X&&fE(this)))}; g.C.uf=function(q,a){q<=this.Y&&this.Y<=a&&(q=this.Y,this.Y=NaN,tJl(this,q))}; g.C.I0=function(){qmV(this.U,this.Y,243*this.scale)}; g.C.Wa=function(){switch(this.type){case 2:var q=this.V;q.removeEventListener("mouseout",this.J);q.addEventListener("mouseover",this.L);q.removeEventListener("blur",this.J);q.addEventListener("focus",this.L);val(this);break;case 3:val(this);break;case 1:this.U&&(this.U.unsubscribe("l",this.uf,this),this.U=null),this.api.removeEventListener("videoready",this.F9),this.UK.stop()}this.type=null;this.X&&this.fade.hide()}; g.C.qQ=function(){if(this.V)for(var q=0;q=0;a--)if(this.qp[a]===q){this.qp.splice(a,1);break}po(this.y0,64,this.qp.length>0)}; g.C.lL=function(){this.api.aO()&&this.api.Ew();return!!this.PA||qWy(this)||g.W1.prototype.lL.call(this)}; g.C.JH=function(){var q=!this.lL(),a=q&&this.api.aO()&&!g.v(this.api.getPlayerStateObject(),2)&&!this.api.getVideoData().J8&&!this.api.B().W&&!this.api.isEmbedsShortsMode(),w=this.wp&&g.vE(this.api)&&g.v(this.api.getPlayerStateObject(),128);q||w?(this.eL.show(),this.Tw.show()):(this.eL.hide(),this.Tw.hide(),this.api.qQ(this.va.element));a?this.PH.kF():this.PH.DZ();this.NH&&fr_(this.NH,this.gwt||!q);this.api.T("web_player_hide_overflow_button_if_empty_menu")&&g2V(this);g.W1.prototype.JH.call(this)}; g.C.xt=function(q,a,w,G,k){q.style.left="";q.style.top="";q.style.bottom="";var b=g.gh(q),O=G||this.NH&&g.ZM(this.NH.cq(),a),e=G=null;w!=null&&O||(G=g.gh(a),e=g.yD(a,this.api.getRootNode()),w==null&&(w=e.x+G.width/2));w-=b.width/2;O?(a=this.NH,G=Huf(a),e=cJJ(a),O=this.api.mQ().getPlayerSize().height,w=g.X1(w,G,G+e-b.width),b=O-puV(a)-b.height):g.ZM(this.va.element,a)?(a=this.api.mQ().getPlayerSize().width,w=g.X1(w,12,a-b.width-12),b=this.o8()?this.LY:this.vD,this.api.B().playerStyle==="gvn"&&(b+= 20),this.wp&&(b-=this.o8()?26:18)):(a=this.api.mQ().getPlayerSize(),w=g.X1(w,12,a.width-b.width-12),b=e.y>(a.height-G.height)/2?e.y-b.height-12:e.y+G.height+12);q.style.top=b+(k||0)+"px";q.style.left=w+"px"}; g.C.CC=function(q){q&&(this.api.qQ(this.va.element),this.NH&&this.api.qQ(this.NH.cq()));this.bH&&(g.kX(this.contextMenu.element,"ytp-autohide",q),g.kX(this.contextMenu.element,"ytp-autohide-active",!0));g.W1.prototype.CC.call(this,q)}; g.C.BG=function(){g.W1.prototype.BG.call(this);this.bH&&(g.kX(this.contextMenu.element,"ytp-autohide-active",!1),this.bH&&(this.contextMenu.hide(),this.j2&&this.j2.hide()))}; g.C.f3=function(q,a){var w=this.api.mQ().getPlayerSize();w=new g.Xr(0,0,w.width,w.height);if(q||this.y0.U&&!this.lL()){if(this.api.B().WF||a)q=this.o8()?this.LY:this.vD,w.top+=q,w.height-=q;this.NH&&(w.height-=puV(this.NH))}return w}; g.C.TC=function(q){var a=this.api.getRootNode();q?a.parentElement?(a.setAttribute("aria-label","Reproductor de v\u00eddeo de YouTube a pantalla completa"),this.api.B().externalFullscreen||(a.parentElement.insertBefore(this.W7.element,a),a.parentElement.insertBefore(this.uc.element,a.nextSibling))):g.mQ(Error("Player not in DOM.")):(a.setAttribute("aria-label","Reproductor de v\u00eddeo de YouTube"),this.W7.detach(),this.uc.detach());this.sA();this.BM()}; g.C.o8=function(){if(this.api.T("web_player_use_screen_width_for_big_mode")){var q;return this.api.mQ().getPlayerSize().width>=((q=g.Wo(this.api.B().experiments,"web_player_big_mode_screen_width_cutoff"))!=null?q:2E3)}q=this.api.B();return this.api.isFullscreen()&&!q.X||!1}; g.C.showControls=function(q){this.Nw=!q;this.JH()}; g.C.sA=function(){var q=this.o8();this.tooltip.scale=q?1.5:1;this.contextMenu&&g.kX(this.contextMenu.element,"ytp-big-mode",q);this.JH();this.api.T("web_player_hide_overflow_button_if_empty_menu")||g2V(this);this.BM();var a=this.api.isEmbedsShortsMode();a&&q?(q=(this.api.mQ().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.IR(this.va.element,"padding-left",q+"px"),g.IR(this.va.element,"padding-right",q+"px")):a&&(g.IR(this.va.element,"padding-left",""),g.IR(this.va.element,"padding-right", ""));g.W1.prototype.sA.call(this)}; g.C.Kl=function(){if(qWy(this)&&!g.vE(this.api))return!1;var q=this.api.getVideoData();return!g.yw(this.api.B())||this.api.getPresentingPlayerType()===2||!this.Eq||((q=this.Eq||q.Eq)?(q=q.embedPreview)?(q=q.thumbnailPreviewRenderer,q=q.videoDetails&&g.I(q.videoDetails,Hk_)||null):q=null:q=null,q&&q.collapsedRenderer&&q.expandedRenderer)?g.W1.prototype.Kl.call(this):!1}; g.C.BM=function(){g.W1.prototype.BM.call(this);this.api.logVisibility(this.title.element,!!this.Cd);this.Pe&&this.Pe.Si(!!this.Cd);this.channelAvatar.Si(!!this.Cd);this.overflowButton&&this.overflowButton.Si(this.Ev()&&!!this.Cd);this.shareButton&&this.shareButton.Si(!this.Ev()&&!!this.Cd);this.jH&&this.jH.Si(!this.Ev()&&!!this.Cd);this.searchButton&&this.searchButton.Si(!this.Ev()&&!!this.Cd);this.copyLinkButton&&this.copyLinkButton.Si(!this.Ev()&&!!this.Cd);if(!this.Cd){this.api.qQ(this.va.element); for(var q=0;q5&&a.d8("glrs",{cmt:w});a.seekTo(0,{seekSource:58});a.d8("glrre",{cmt:w})}}; pE.prototype.qB=function(){this.V=null;g.c.prototype.qB.call(this)};g.Z(g.UD,Qy);g.C=g.UD.prototype;g.C.isView=function(){return!0}; g.C.vL=function(){var q=this.mediaElement.getCurrentTime();if(q1;kj(q.sB(),G-.01)&&!k&&(jf(this,4),w.isActive=!1,w.B8=w.B8||w.isActive,(this.D===1?this.V:this.U).d8("sbh",{}),a.isActive=!0,a.B8=a.B8||a.isActive,this.D!==0&&(this.V.getVideoData().tC=!0));q=this.Y.U;if(this.Y.V.isActive&&q.isActive&&(jf(this,5),this.D!==0)){q=this.U.xA();w=this.V.xA(); this.V.d8("sbs",{citag:w==null?void 0:w.itag,nitag:q==null?void 0:q.itag});this.U.d8("gitags",{pitag:w==null?void 0:w.itag,citag:q==null?void 0:q.itag});var b;(b=this.U)==null||b.t9()}}}; g.C.qE=function(){this.gp()&&this.KO("player-reload-after-handoff")}; g.C.KO=function(q,a){a=a===void 0?{}:a;if(!this.t2()&&this.status.status!==6){var w=this.status.status>=4&&q!=="player-reload-after-handoff";this.status={status:Infinity,error:q};if(this.V&&this.U){var G=this.U.getVideoData().clientPlaybackNonce;this.V.q9(new g.PY("dai.transitionfailure",Object.assign(a,{cpn:G,transitionTimeMs:this.JZ,msg:q})));this.V.Tm(w)}this.h5.reject(q);this.dispose()}}; g.C.gp=function(){return this.status.status>=4&&this.status.status<6}; g.C.qB=function(){KgG(this);this.V.unsubscribe("newelementrequired",this.qE,this);if(this.W){var q=this.W.U;this.W.V.VL.unsubscribe("updateend",this.b_,this);q.VL.unsubscribe("updateend",this.b_,this)}g.c.prototype.qB.call(this)}; g.C.To=function(q){g.Ox(q,128)&&this.KO("player-error-event")};g.Z(oJ,g.c);oJ.prototype.clearQueue=function(q,a){q=q===void 0?!1:q;a=a===void 0?!1:a;this.Y&&this.Y.reject("Queue cleared");this.app.B().T("html5_gapless_fallback_on_qoe_restart_v2")||a&&this.U&&this.U.Tm(!1);IJ(this,q)}; oJ.prototype.Qm=function(){return!this.V}; oJ.prototype.gp=function(){var q;return((q=this.W)==null?void 0:q.gp())||!1}; oJ.prototype.qB=function(){IJ(this);g.c.prototype.qB.call(this)};g.Z(E2y,g.ya);g.C=E2y.prototype;g.C.getVisibilityState=function(q,a,w,G,k,b,O,e){return q?4:EVf()?3:a?2:w?1:G?5:k?7:b?8:O?9:e?10:0}; g.C.gk=function(q){this.fullscreen!==q&&(this.fullscreen=q,this.wx())}; g.C.setMinimized=function(q){this.U!==q&&(this.U=q,this.wx())}; g.C.setInline=function(q){this.inline!==q&&(this.inline=q,this.wx())}; g.C.wJ=function(q){this.pictureInPicture!==q&&(this.pictureInPicture=q,this.wx())}; g.C.setSqueezeback=function(q){this.W!==q&&(this.W=q,this.wx())}; g.C.X6=function(q){this.Y!==q&&(this.Y=q,this.wx())}; g.C.yT=function(){return this.V}; g.C.UE=function(){return this.fullscreen!==0}; g.C.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; g.C.j5=function(){return this.fullscreen}; g.C.isMinimized=function(){return this.U}; g.C.isInline=function(){return this.inline}; g.C.isBackground=function(){return EVf()}; g.C.zn=function(){return this.pictureInPicture}; g.C.yK=function(){return!1}; g.C.iY=function(){return this.W}; g.C.Tn=function(){return this.Y}; g.C.wx=function(){this.publish("visibilitychange");var q=this.getVisibilityState(this.yT(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.zn(),this.yK(),this.iY(),this.Tn());q!==this.L&&this.publish("visibilitystatechange");this.L=q}; g.C.qB=function(){m_m(this.D);g.ya.prototype.qB.call(this)};g.Z(g.uR,g.c);g.C=g.uR.prototype;g.C.qB=function(){this.videoData=this.playerState=null;g.c.prototype.qB.call(this)}; g.C.addCueRange=function(){}; g.C.Bh=function(){}; g.C.Tb=function(){}; g.C.dR=function(){return!1}; g.C.NR=function(){return!1}; g.C.YZ=function(){}; g.C.EF=function(){}; g.C.fS=function(){return[]}; g.C.YV=function(){}; g.C.EH=function(){}; g.C.getAudioTrack=function(){return this.getVideoData().S7}; g.C.Tp=function(){return null}; g.C.getAvailableAudioTracks=function(){return[]}; g.C.e_=function(){return[]}; g.C.R4=function(){return[]}; g.C.jc=function(){return""}; g.C.Me=function(){return[]}; g.C.lC=function(){}; g.C.Ye=function(){return 0}; g.C.getCurrentTime=function(){return 0}; g.C.Mk=function(){}; g.C.xA=function(){}; g.C.Kk=function(){return{}}; g.C.getDuration=function(){return 0}; g.C.HQ=function(){return 0}; g.C.OB=function(){return 0}; g.C.mp=function(){return!1}; g.C.YK=function(){return 0}; g.C.oO=function(){return 0}; g.C.NZ=qm(7);g.C.cI=function(){return 0}; g.C.w2=function(){return!1}; g.C.R_=function(){return 0}; g.C.Z0=function(){return null}; g.C.jD=function(){return null}; g.C.B5=function(){return 0}; g.C.pm=function(){return 0}; g.C.Uq=function(){return g.h(function(q){g.Jm(q)})}; g.C.Aa=qm(15);g.C.getPlaybackQuality=function(){return"auto"}; g.C.getPlaybackRate=function(){return 1}; g.C.getPlayerState=function(){this.playerState||(this.playerState=new g.rD);return this.playerState}; g.C.getPlayerType=function(){return 0}; g.C.getPlaylistSequenceForTime=function(){return null}; g.C.OP=function(){return function(){}}; g.C.g2=function(){return""}; g.C.getPreferredQuality=function(){return"unknown"}; g.C.Dk=function(){}; g.C.getProximaLatencyPreference=function(){return 0}; g.C.qn=function(){return dM}; g.C.Oq=function(){return null}; g.C.getStoryboardFormat=function(){return null}; g.C.getStreamTimeOffset=function(){return 0}; g.C.ZJ=function(){return 0}; g.C.g$=function(){return 0}; g.C.Ad=function(){return{rA:[],UH:[],currentTime:0,BA:"",droppedVideoFrames:0,isGapless:!1,Qm:!0,v4:0,IR:0,Jz:0,V$:0,aq:0,Oe:[],xn:[],xm:null,playerState:this.getPlayerState(),KJ:null,wQ:"",totalVideoFrames:0}}; g.C.getUserAudio51Preference=function(){return 0}; g.C.getUserPlaybackQualityPreference=function(){return""}; g.C.getVideoData=function(){this.videoData||(this.videoData=new g.TO(this.V7),g.p(this,this.videoData));return this.videoData}; g.C.jF=function(){return null}; g.C.T2=function(){return null}; g.C.M_=function(){}; g.C.getVideoLoadedFraction=function(){return 0}; g.C.Xb=function(){}; g.C.handleError=function(){}; g.C.Tm=function(){}; g.C.iH=function(){}; g.C.K6=qm(40);g.C.Rg=function(){return!1}; g.C.hasSupportedAudio51Tracks=function(){return!1}; g.C.S_=function(){return!1}; g.C.yT=function(){return!1}; g.C.isAtLiveHead=function(){return!1}; g.C.PY=function(){return!0}; g.C.isGapless=function(){return!1}; g.C.isHdr=function(){return!1}; g.C.xV=function(){return!1}; g.C.Ve=function(){return!1}; g.C.fC=function(){return!1}; g.C.isProximaLatencyEligible=function(){return!1}; g.C.Qm=function(){return!0}; g.C.H4=function(){return!1}; g.C.s9=function(){return!1}; g.C.dZ=function(){}; g.C.qr=function(){}; g.C.t9=function(){}; g.C.Qn=function(){}; g.C.kM=function(){}; g.C.Nm=function(){}; g.C.wZ=function(){}; g.C.TY=qm(50);g.C.mq=qm(21);g.C.Zg=function(){}; g.C.pauseVideo=function(){}; g.C.prefetchKeyPlay=function(){}; g.C.playVideo=function(){return g.h(function(q){return q.return()})}; g.C.Wh=function(){}; g.C.h4=qm(27);g.C.Pm=qm(33);g.C.tV=function(){}; g.C.d8=function(){}; g.C.nF=function(){}; g.C.EU=function(){}; g.C.e8=function(){}; g.C.q9=function(){}; g.C.ED=function(){}; g.C.er=function(){}; g.C.lS=function(){}; g.C.oK=function(){}; g.C.Ts=function(){}; g.C.MX=function(){}; g.C.removeCueRange=function(){}; g.C.Iy=function(){}; g.C.XC=function(){return[]}; g.C.EE=function(){}; g.C.Ha=function(){}; g.C.Yg=function(){}; g.C.pj=function(){}; g.C.Sr=function(){}; g.C.Qz=function(){}; g.C.seekTo=function(){}; g.C.sendAbandonmentPing=function(){}; g.C.sendVideoStatsEngageEvent=function(){}; g.C.Np=function(){}; g.C.setLoop=function(){}; g.C.V1=function(){}; g.C.setMediaElement=function(){}; g.C.Df=function(){}; g.C.setPlaybackRate=function(){}; g.C.q_=function(){}; g.C.gJ=function(){}; g.C.fu=function(){}; g.C.setProximaLatencyPreference=function(){}; g.C.EG=function(){}; g.C.eO=function(){}; g.C.iN=function(){}; g.C.nZ=function(){}; g.C.u0=function(){}; g.C.setUserAudio51Preference=function(){}; g.C.qN=function(){}; g.C.Vp=function(){return!1}; g.C.WC=function(){}; g.C.Zm=function(){return!1}; g.C.TH=function(){}; g.C.N7=function(){}; g.C.wv=function(){}; g.C.stopVideo=function(){}; g.C.subscribe=function(){return NaN}; g.C.Ie=function(){}; g.C.togglePictureInPicture=function(){}; g.C.Bd=function(){return 0}; g.C.unsubscribe=function(){return!1}; g.C.KP=function(){}; g.C.Da=function(){return!1}; g.C.Zt=function(){}; g.C.b0=function(){}; g.C.zk=function(){};g.Z(zG,g.c);g.C=zG.prototype;g.C.get=function(q){tg(this);var a=this.data.find(function(w){return w.key===q}); return a?a.value:null}; g.C.set=function(q,a,w){this.remove(q,!0);tg(this);q={key:q,value:a,expire:Infinity};w&&isFinite(w)&&(w*=1E3,q.expire=(0,g.Zj)()+w);for(this.data.push(q);this.data.length>this.W;)(w=this.data.shift())&&iR(this,w,!0);vj(this)}; g.C.remove=function(q,a){a=a===void 0?!1:a;var w=this.data.find(function(G){return G.key===q}); w&&(iR(this,w,a),g.BR(this.data,function(G){return G.key===q}),vj(this))}; g.C.removeAll=function(q){if(q=q===void 0?!1:q)for(var a=g.V(this.data),w=a.next();!w.done;w=a.next())iR(this,w.value,q);this.data=[];vj(this)}; g.C.qB=function(){var q=this;g.c.prototype.qB.call(this);this.data.forEach(function(a){iR(q,a,!0)}); this.data=[]};g.Z(g.Wj,g.c);g.C=g.Wj.prototype;g.C.qB=function(){for(var q=g.V(Object.values(this.W)),a=q.next();!a.done;a=q.next())a.value.dispose();VqN(this);this.V.dispose();g.c.prototype.qB.call(this)}; g.C.RN=function(q){return q?q===1?this.S:this.U.getVideoData().enableServerStitchedDai&&q===2?this.U.getVideoData().Le?this.W[2]||this.U:this.U:this.W[q]||null:this.U}; g.C.lK=function(q){var a=q.cpn;q=q.playerType;if(a)a:{q=g.V(Object.values(this.W));for(var w=q.next();!w.done;w=q.next())if(w=w.value,w.jc()===a){a=w;break a}a=this.L[a]||null}else a=q?this.RN(q):this.U;return a}; g.C.UA=function(){return this.S}; g.C.I7=function(q){this.S=q}; g.C.xT=function(){return this.U}; g.C.Rk=function(q){this.U=q;D0(this)}; g.C.uq=qm(46);g.C.kC=qm(48);g.Z(n2j,g.wL);g.C=n2j.prototype;g.C.In=function(){}; g.C.jc=function(){return this.videoData.clientPlaybackNonce}; g.C.getVideoData=function(){if(g.wL.prototype.getVideoData.call(this).T("html5_huli_ssdai_use_playback_state")){var q=gHK(this.T0,g.wL.prototype.getCurrentTime.call(this))||g.wL.prototype.getVideoData.call(this);this.videoData.clientPlaybackNonce!==q.clientPlaybackNonce&&MqN(this.U,"cpn",{cpn:this.videoData.clientPlaybackNonce,ref:q.clientPlaybackNonce});return this.videoData}return gHK(this.T0,g.wL.prototype.getCurrentTime.call(this))||g.wL.prototype.getVideoData.call(this)}; g.C.getCurrentTime=function(q){var a=g.wL.prototype.getCurrentTime.call(this);if(g.wL.prototype.getVideoData.call(this).T("html5_huli_ssdai_use_playback_state")){this.V===0?q||(a-=this.startTimeSecs):q&&(a=this.V);var w=q?this.T0.iI||g.wL.prototype.getCurrentTime.call(this):DBm(this.T0,g.wL.prototype.getCurrentTime.call(this));a!==w&&MqN(this.U,"time"+(q!=null?q:!1),{time:a,ref:w,ct:q!=null?q:!1})}else a=q?this.T0.iI||a:DBm(this.T0,a);return a}; g.C.getDuration=function(){if(g.wL.prototype.getVideoData.call(this).T("html5_huli_ssdai_use_playback_state")){var q=yCU(this.T0,g.wL.prototype.getCurrentTime.call(this));this.duration!==q&&MqN(this.U,"duration",{dur:this.duration,ref:q});return this.duration}return yCU(this.T0,g.wL.prototype.getCurrentTime.call(this))}; g.C.SD=function(q){this.duration=q};g.yK.prototype.Sn=function(q,a){if(a===1)return this.V.get(q);if(a===2)return this.W.get(q);if(a===3)return this.U.get(q)}; g.yK.prototype.IM=qm(58);g.yK.prototype.B4=function(q,a,w,G){w={cY:G,Kx:w};a?this.W.set(q,w):this.V.set(q,w)}; g.yK.prototype.clearAll=function(){this.V.clear();this.W.clear();this.U.clear()}; SWU.prototype.clear=function(){this.V=[];this.W.clear();this.Y.clear();this.U.clear()}; SWU.prototype.lK=function(q){var a=q.cpn;q=q.iK;if(a&&(a=this.W.get(a))||q&&(a=(this.D?this.W:this.Y).get(q)))return a}; g.Z(g.qN,g.c);g.C=g.qN.prototype;g.C.onCueRangeEnter=function(q){var a=q.getId();this.QN({oncueEnter:1,cpn:a,start:q.start,end:q.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.Ye()||0).toFixed(3)});var w=this.V.lK({cpn:a});this.QN({enterAdCueRange:1});var G=this.PJ||this.i6().cpn,k;G=(k=this.V.lK({cpn:G}))!=null?k:this.i6();w&&(k=this.playback.getCurrentTime(),w.startTimeSecs=q.start/1E3,w={GI:G,yD:w,ov:k},EHU(this,a,q.start/1E3,k),ZY_(this,w))}; g.C.lW=function(q,a){if(q===this.playback.jc())RJ(this.app.vQ(),this.playback,!1);else{var w=this.f7.get(q);w?(w.V=0,w.startTimeSecs=a,RJ(this.app.vQ(),w,!0)):this.QN({nop_s:q})}}; g.C.onCueRangeExit=function(q){for(var a=this.playback.getCurrentTime()*1E3,w=q.getId(),G=g.V(this.U.values()),k=G.next();!k.done;k=G.next())if(k=k.value,k.getId()!==w&&a>=k.start&&a<=k.end)return;if(w=this.V.lK({cpn:w}))a=this.playback.getCurrentTime(),G=this.i6(),G.startTimeSecs=q.end/1E3,w={GI:w,yD:G,ov:a},EHU(this,this.playback.jc(),q.end/1E3,a),ZY_(this,w)}; g.C.i6=function(){return{cpn:this.playback.jc(),durationMs:0,YF:0,playerType:1,uw:0,videoData:this.playback.getVideoData(),errorCount:0,JK:""}}; g.C.seekTo=function(q,a,w,G){q=q===void 0?0:q;a=a===void 0?{}:a;w=w===void 0?!1:w;G=G===void 0?null:G;be(this,this.PJ);if(this.playback.getVideoData().fT()&&q<=this.iI)this.playback.pauseVideo(),this.iI=0,VPy(this,q);else if(this.F9=!0,w)XMm(this,q,a);else{w=this.app.xT();var k=w===this.jt?this.h2:null;Gb(this,!1);this.VN=q;this.IW=a;G!=null&&this.BT.start(G);w&&(this.h2=k||w.getPlayerState(),w.wv(a),this.jt=w)}}; g.C.qB=function(){Gb(this,!1);GoN(this);koc(this);g.c.prototype.qB.call(this)}; g.C.a6=function(q){this.OA=q;this.QN({swebm:q})}; g.C.fF=function(q,a,w){if(w&&a){var G=this.D.get(q);if(G){G.locations||(G.locations=new Map);var k=Number(a.split(";")[0]);w=new g.u5(w);this.QN({hdlredir:1,itag:a,seg:q,hostport:vX(w)});G.locations.set(k,w)}}}; g.C.Yy=function(q,a,w,G,k,b){var O=G===3,e=lfl(this,q,a,G,w,b);if(!e){ki(this,a,O);var N=g.bYc(this,a)?"undec":"ncp";this.QN({gvprp:N,mt:q,seg:a,tt:G,itag:w,ce:b});return null}O||this.D.set(a,e);b=e.JK;var Y;G=((Y=this.Sn(a-1,G,k))==null?void 0:Y.cY)||"";G===""&&this.QN({eds:1});Y=NAl(this,e.ssdaiAdsConfig);k=this.playback.getVideoData();var P;O=((P=k.U)==null?void 0:P.containerType)||0;P=k.uV[O];e=e.tO&&a>=e.tO?e.tO:void 0;P={P1:b?daK(this,b):[],adsConfig:Y,cY:G,HV:e,Uf:h7(P.split(";")[0]),dL:P.split(";")[1]|| ""};e={xU:P};this.Tl&&(q={gvprpro:"v",sq:a,mt:q.toFixed(3),itag:w,acpns:((N=P.P1)==null?void 0:N.join("_"))||"none",abid:b},this.QN(q));return e}; g.C.QG=function(q){a:{if(!this.YU){var a=eJU(this,q);if(!(this.playback.getVideoData().fT()&&(a==null?0:a.Cn)))break a}a=void 0}var w=a;if(!w)return this.QN({gvprp:"ncp",mt:q}),null;a=w.JK;var G=NAl(this,w.ssdaiAdsConfig);w=w.tO&&w.f1&&q>=w.f1?w.tO:void 0;var k=this.playback.getVideoData(),b,O=((b=k.U)==null?void 0:b.containerType)||0;b=k.uV[O];b={P1:a?daK(this,a):[],adsConfig:G,HV:w,Uf:h7(b.split(";")[0]),dL:b.split(";")[1]||""};var e;q={gvprpro:"v",mt:q.toFixed(3),acpns:((e=b.P1)==null?void 0:e.join("_"))|| "none",abid:a};this.QN(q);return b}; g.C.Nk=function(q,a,w,G,k,b){var O=Number(w.split(";")[0]),e=G===3;q=lfl(this,q,a,G,w,b);this.QN({gdu:1,seg:a,itag:O,pb:""+!!q});if(!q)return ki(this,a,e),null;q.locations||(q.locations=new Map);if(!q.locations.has(O)){var N,Y;b=(N=q.videoData.getPlayerResponse())==null?void 0:(Y=N.streamingData)==null?void 0:Y.adaptiveFormats;if(!b)return this.QN({gdu:"noadpfmts",seg:a,itag:O}),ki(this,a,e),null;N=b.find(function(d){return d.itag===O}); if(!N||!N.url){var P=q.videoData.videoId;q=[];var K=g.V(b);for(G=K.next();!G.done;G=K.next())q.push(G.value.itag);this.QN({gdu:"nofmt",seg:a,vid:P,itag:O,fullitag:w,itags:q.join(",")});ki(this,a,e);return null}q.locations.set(O,new g.u5(N.url,!0))}b=q.locations.get(O);if(!b)return this.QN({gdu:"nourl",seg:a,itag:O}),ki(this,a,e),null;b=new HG(b);this.OA&&(b.get("dvc")?this.QN({dvc:b.get("dvc")||""}):b.set("dvc","webm"));(G=(K=this.Sn(a-1,G,k))==null?void 0:K.cY)&&b.set("daistate",G);q.tO&&a>=q.tO&& b.set("skipsq",""+q.tO);(K=this.playback.getVideoData().clientPlaybackNonce)&&b.set("cpn",K);K=[];q.JK&&(K=daK(this,q.JK),K.length>0&&b.set("acpns",K.join(",")));e||this.D.set(a,q);e=null;e=b.get("aids");G=b.Do();(G==null?void 0:G.length)>2048&&this.QN({urltoolong:1,sq:a,itag:O,len:G.length});this.Tl&&(G&&(b=q.cpn,k=q.JK,s7c(this,b,k),k&&!this.Ck.has(k)&&(b=TAc(this,b,k),N=$ac(this,k),this.QN({iofa:b}),this.QN({noawnzd:N-b}),this.QN({acpns:K.join("."),aids:(P=e)==null?void 0:P.replace(/,/g,".")}), this.Ck.add(k))),this.QN({gdu:"v",seg:a,itag:w,ast:q.YF.toFixed(3),alen:q.durationMs.toFixed(3),acpn:q.cpn,avid:q.videoData.videoId}));return G}; g.C.Dv=function(q,a,w){w=w===void 0?!1:w;var G=OYV(this,q,a);if(G){var k=void 0,b=G.JK;if(b){this.QN({skipadonsq:a,sts:w,abid:b,acpn:G.cpn,avid:G.videoData.videoId});w=this.V.U.get(b);if(!w)return;w=g.V(w);for(b=w.next();!b.done;b=w.next())b=b.value,b.tO=a,b.f1=q,b.YF>G.YF&&(k=b)}be(this,this.PJ);this.Y=G.cpn;Yay(this);q=this.playback.getCurrentTime();PJN(this,G,k,q,q,!1,!0);CJm(this)}}; g.C.Z_=function(){for(var q=g.V(this.V.V),a=q.next();!a.done;a=q.next())a=a.value,a.tO=NaN,a.f1=NaN;Yay(this);this.QN({rsac:"resetSkipAd",sac:this.Y});this.A2.delete(this.Y);this.Y=""}; g.C.Sn=function(q,a,w){return this.UK.Sn(q,a,w)}; g.C.IM=qm(57); g.C.B4=function(q,a,w,G,k,b,O,e,N){G.length>0&&this.QN({onssinfo:1,sq:q,start:a.toFixed(3),cpns:G.join(","),ds:k.join(","),isVideo:O?1:0});N&&this.UK.B4(q,O,e,N);if(O){if(G.length&&k.length)for(this.A2.has(G[0])&&this.QN({skipfail:1,sq:q,acpn:G[0]}),q=a+this.ZJ(),w=0;w0&&(this.yv=0,this.PJ="",this.V7.T("html5_huli_ssdai_use_playback_state")&&this.lW(this.playback.jc(),0),this.api.publish("serverstitchedvideochange"));this.playback.EF(w,G);return!0}; g.C.Xz=function(){this.QN({rstdaist:1});this.UK.clearAll()}; g.C.G6=function(q){var a;if(q!==((a=this.L)==null?void 0:a.identifier))this.QN({ignorenoad:q});else{this.OQ.add(q);this.QN({noadrcv:q});var w;((w=this.L)==null?void 0:w.identifier)===q&&aQ(this)}}; g.C.Gk=function(q){if(this.YU)return this.QN({dai_disabled:q.event}),!1;if(this.playback.getVideoData().fT()&&(q.event==="continue"||q.event==="stop"))return!1;var a=hq(this.api.Hq());if(a=a?a.Gk(q):!1)this.W={S3:q.identifier,gj:q.startSecs};else if(this.W&&this.W.S3===q.identifier&&q.startSecs>this.W.gj+1){this.QN({cueStChg:q.identifier,oldSt:this.W.gj.toFixed(3),newSt:q.startSecs.toFixed(3),abid:this.W.wj});if(this.W.wj){var w=q.startSecs-this.W.gj,G=this.V.U.get(this.W.wj);if(G){G=g.V(G);for(var k= G.next();!k.done;k=G.next())k=k.value,k.YF>=0&&(k.YF+=w*1E3,this.V7.T("html5_ssdai_update_timeline_on_start_time_change")&&(k.uw+=w*1E3),this.QN({newApEt:k.YF,newApPrt:k.uw,acpn:k.cpn}))}}this.W.gj=q.startSecs}this.V7.T("html5_ssdai_log_missing_ad_config_reason")&&(a?this.EK.add(q.identifier):this.EK.has(q.identifier)&&this.EK.delete(q.identifier));return a}; g.C.GV=function(q){var a="";q?q.event==="unknown"?a="unknown":this.EK.has(q.identifier)?this.W&&this.W.S3===q.identifier?this.W.S3===q.identifier?a="pending":In(this.St,function(w){return w.identifier===q.identifier})||(a="noAdsAdded"):a="wrongAdBreakInfo":a="unscheduled":a="noCuepoint"; return a}; g.C.F0=function(q){return this.YU?!1:!!eJU(this,q)}; g.C.Gy=function(q){var a=this;if(this.V7.T("html5_lifa_ignore_multiple_skips")&&this.y7)return this.QN({ufs_ad:this.Y,ufs_cur:this.PJ,ufs_cont:this.i6().cpn}),!1;be(this,this.PJ);this.playback.pauseVideo();var w=this.playback.getCurrentTime(),G=this.V.lK({cpn:this.PJ});if(!G)return this.QN({skipFail:w}),!1;this.Y=this.PJ;this.F9=!1;F7m(this,G.JK);JTG(this,G,this.i6(),q);VPy(this,w,{seekSource:89,e1:"lifa_skip"});this.y7||(this.y7=this.events.C(this.api,"progresssync",function(){Co(a.api.FF(),(0,g.Zj)(), "ad_to_video");a.y7&&(a.events.v5(a.y7),a.y7=null)})); return!0}; g.C.QN=function(q,a){((a===void 0?0:a)||this.Tl||this.playback.getVideoData().fT())&&this.playback.d8("sdai",q)}; var u6l=0;g.Z(Q7l,g.c);g.C=Q7l.prototype;g.C.onCueRangeEnter=function(q){if(this.V===this.app.xT()){var a=this.D.get(q);a?nHG(this,a.target,a.JZ,q):this.q9("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:q.toString()})}else if(a=this.U.find(function(k){return k.ox.nW===q})){var w=a.ox,G=w.target; w=w.JZ;G?nHG(this,G,w,q):rTV(this,a.uw,w,q)}}; g.C.onQueuedVideoLoaded=function(){var q=this.X;NN(this);if(q){if(!e$(this,q)){var a=this.app.xT();this.q9("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:a==null?void 0:a.getVideoData().clientPlaybackNonce,ccpn:""+q.playerVars.cpn})}this.app.xT().addCueRange(q.ox.nW)}}; g.C.seekTo=function(q,a,w,G){q=q===void 0?0:q;a=a===void 0?{}:a;G=G===void 0?null:G;if(w===void 0?0:w)may(this,q,a);else{w=this.app.xT()||null;var k=w===this.Y?this.L:null;Yi(this,!1);this.F9=q;this.J=a;G!=null&&this.S.start(G);w&&(this.L=k||w.getPlayerState(),w.wv(),this.Y=w)}}; g.C.fE=function(q){g.Ox(q,128)&&HYG(this)}; g.C.isManifestless=function(){return fc(this.V.getVideoData())}; g.C.qB=function(){Yi(this,!1);piJ(this);g.c.prototype.qB.call(this)}; g.C.q9=function(q,a){this.V.q9(new g.PY(q,a))}; var ATJ=0;var UaU="MWEB TVHTML5 TVHTML5_AUDIO TVHTML5_CAST TVHTML5_KIDS TVHTML5_FOR_KIDS TVHTML5_SIMPLY TVHTML5_SIMPLY_EMBEDDED_PLAYER TVHTML5_UNPLUGGED TVHTML5_VR TV_UNPLUGGED_CAST WEB WEB_CREATOR WEB_EMBEDDED_PLAYER WEB_EXPERIMENTS WEB_GAMING WEB_HEROES WEB_KIDS WEB_LIVE_STREAMING WEB_MUSIC WEB_MUSIC_ANALYTICS WEB_MUSIC_INTEGRATIONS WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.Z(Pg,g.c);Pg.prototype.Bb=function(q){if(q)return this.U.get(q)}; Pg.prototype.qB=function(){this.V.removeAll();this.U.removeAll();g.c.prototype.qB.call(this)};g.m0I=hM(function(){var q=window.AudioContext||window.webkitAudioContext;try{return new q}catch(a){return a.name}});g.Z(umK,g.u);g.C=umK.prototype;g.C.Zv=function(){g.ah(this.element,g.XU.apply(0,arguments))}; g.C.Ha=function(){this.Va&&(this.Va.removeEventListener("focus",this.dP),g.Cn(this.Va),this.Va=null)}; g.C.sL=function(){this.t2();var q=this.app.B();q.Q_||this.Zv("tag-pool-enabled");q.L&&this.Zv(g.El.HOUSE_BRAND);q.playerStyle==="gvn"&&(this.Zv("ytp-gvn"),this.element.style.backgroundColor="transparent");q.N1&&(this.lk=g.i$("yt-dom-content-change",this.resize,this));this.C(window,"orientationchange",this.resize,this);this.C(window,"resize",this.resize,this)}; g.C.JM=function(q){g.Gu(this.app.B());this.E8=!q;KU(this)}; g.C.resize=function(){if(this.Va){var q=this.uM();if(!q.isEmpty()){var a=g.Wo(this.app.B().experiments,"html5_android_mweb_resize_delay")>0,w=this.app.MB.isFullscreen();if(a&&w&&cr()){var G;(G=this.hB)==null||G.start()}a=!g.vS(q,this.UG.getSize());w=W7y(this);a&&(this.UG.width=q.width,this.UG.height=q.height);q=this.app.B();(w||a||this.tF||q.N1)&&this.app.MB.publish("resize",this.getPlayerSize())}}}; g.C.jR=function(q,a){this.updateVideoData(a)}; g.C.updateVideoData=function(q){if(this.Va){var a=this.app.B();X4&&(this.Va.setAttribute("x-webkit-airplay","allow"),q.title?this.Va.setAttribute("title",q.title):this.Va.removeAttribute("title"));this.Va.setAttribute("controlslist","nodownload");a.a4&&q.videoId&&(this.Va.poster=q.Wm("default.jpg"))}a=g.tF(q,"yt:bgcolor");this.ul.style.backgroundColor=a?a:"";this.lU=gg(g.tF(q,"yt:stretch"));this.MD=gg(g.tF(q,"yt:crop"),!0);g.kX(this.element,"ytp-dni",q.J8);this.app.B().T("delhi_modern_web_player")&& (q=this.app.MB.isHdr()||this.app.B().T("delhi_modern_web_player_disable_frosted_glass")?"none":"initial",this.element.style.setProperty("--yt-frosted-glass-backdrop-filter-override",q));this.resize()}; g.C.setGlobalCrop=function(q){this.Rc=gg(q,!0);this.resize()}; g.C.setCenterCrop=function(q){this.yF=q;this.resize()}; g.C.gk=function(){}; g.C.getPlayerSize=function(){var q=this.app.B(),a=this.app.MB.isFullscreen(),w=q.externalFullscreen&&g.yw(q);if(a&&cr()&&!w)return new g.t7(window.outerWidth,window.outerHeight);w=!isNaN(this.O$.width)&&!isNaN(this.O$.height);var G=this.app.B().T("kevlar_player_enable_squeezeback_fullscreen_sizing")||this.app.B().T("web_watch_enable_fs_squeezeback_panels");if(a&&!w&&G)return new g.t7(this.element.clientWidth,this.element.clientHeight);if(a||q.Ja){if(window.matchMedia){q="(width: "+window.innerWidth+ "px) and (height: "+window.innerHeight+"px)";this.Dp&&this.Dp.media===q||(this.Dp=window.matchMedia(q));var k=this.Dp&&this.Dp.matches}if(k)return new g.t7(window.innerWidth,window.innerHeight)}else if(w)return this.O$.clone();return new g.t7(this.element.clientWidth,this.element.clientHeight)}; g.C.uM=function(){var q=this.app.B().T("enable_desktop_player_underlay"),a=this.getPlayerSize(),w=g.Wo(this.app.B().experiments,"player_underlay_min_player_width");return q&&this.rP&&a.width>w?(q=g.Wo(this.app.B().experiments,"player_underlay_video_width_fraction"),new g.t7(Math.min(a.height*this.getVideoAspectRatio(),a.width*q),Math.min(a.height,a.width*q/this.getVideoAspectRatio()))):a}; g.C.getVideoAspectRatio=function(){return isNaN(this.lU)?vHf(this):this.lU}; g.C.getVideoContentRect=function(q){var a=this.uM();q=zJf(this,a,this.getVideoAspectRatio(),q);return new g.Xr((a.width-q.width)/2,(a.height-q.height)/2,q.width,q.height)}; g.C.gF=function(q){this.rP=q;this.resize()}; g.C.jg=function(){return this.Ys}; g.C.onMutedAutoplayChange=function(){KU(this)}; g.C.setInternalSize=function(q){g.vS(this.O$,q)||(this.O$=q,this.resize())}; g.C.qB=function(){this.lk&&g.W0(this.lk);this.Ha();g.u.prototype.qB.call(this)};g.C=RJ_.prototype;g.C.click=function(q,a){this.elements.has(q);this.V.has(q);var w=g.$f();w&&q.visualElement&&g.id(w,q.visualElement,a)}; g.C.createClientVe=function(q,a,w,G){var k=this;G=G===void 0?!1:G;this.elements.has(q);this.elements.add(q);w=TFc(w);q.visualElement=w;var b=g.$f(),O=g.TX();b&&O&&(g.dF("combine_ve_grafts")?kd(wq(),w,O):g.tK(g.cC)(void 0,b,O,w));a.addOnDisposeCallback(function(){k.elements.has(q)&&k.destroyVe(q)}); G&&this.U.add(q)}; g.C.createServerVe=function(q,a,w){var G=this;w=w===void 0?!1:w;this.elements.has(q);this.elements.add(q);a.addOnDisposeCallback(function(){G.destroyVe(q)}); w&&this.U.add(q)}; g.C.destroyVe=function(q){this.elements.has(q);this.elements.delete(q);this.W.delete(q);this.V.delete(q);this.U.delete(q)}; g.C.bx=function(q,a){this.clientPlaybackNonce!==a&&(this.clientPlaybackNonce=a,G1(wq(),q),yTl(this))}; g.C.setTrackingParams=function(q,a){this.elements.has(q);a&&(q.visualElement=g.KF(a))}; g.C.Ji=function(q,a,w){this.elements.has(q);a?this.V.add(q):this.V.delete(q);var G=g.$f(),k=q.visualElement;this.U.has(q)?G&&k&&(a?g.vC(G,[k]):g.zX(G,[k])):a&&!this.W.has(q)&&(G&&k&&g.tW(G,k,void 0,w),this.W.add(q))}; g.C.hasVe=function(q){return this.elements.has(q)};g.Z(g.Tb,g.c);g.Tb.create=function(q,a,w,G){try{var k=typeof q==="string"?q:"player"+g.lV(q),b=xu[k];if(b){try{b.dispose()}catch(e){g.mQ(e)}xu[k]=null}var O=new g.Tb(q,a,w,G);O.addOnDisposeCallback(function(){xu[k]=null;O.dM&&O.dM()}); return xu[k]=O}catch(e){throw g.mQ(e),(e&&e instanceof Error?e:Error(String(e))).stack;}}; g.C=g.Tb.prototype;g.C.Gj=function(){return this.visibility}; g.C.I7=function(q){var a=this.UA();if(q!==a){q.getVideoData().autonavState=a.getVideoData().autonavState;a.KP(this.Jr,this);var w=a.getPlaybackRate();a.dispose();this.Ra.I7(q);q.setPlaybackRate(w);q.Ie(this.Jr,this);bRj(this)}}; g.C.e2=function(){this.sy||(this.sy=g.X2(gL(),hSc()));return this.sy}; g.C.Ha=function(q){if(this.mediaElement){this.KZ&&(this.events.v5(this.KZ),this.KZ=null);g.JE(this.FT);this.xT().Ha(!0,!1,q);this.template.Ha();try{this.T("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.Nd()}catch(a){g.Qa(a)}this.mediaElement=null}}; g.C.Rk=function(q,a,w){w=w===void 0?!1:w;if(q!==this.xT()){this.logger.debug(function(){return"start set presenting player, type "+q.getPlayerType()+", vid "+q.getVideoData().videoId}); var G=null;w||(w=this.xT(),G=w.getPlayerState(),this.logger.debug("set presenting player, destroy modules"),Mg(this.AS,3),cg(this,"cuerangesremoved",w.Me()),this.uD&&!q.isGapless()&&w.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo(),w=q.Vp()&&w.Vp(),this.ji.z6("iv_s"),dUc(this,w));q.getPlayerType()===1&&this.I7(q);K8j(this,q);this.Ra.Rk(q);this.mediaElement&&q.setMediaElement(this.mediaElement);q.Ie(this.VI,this);q.s9()?X6N(this,"setPresenting",!1):(this.jR("newdata",q,q.getVideoData()), G&&!g.Hz(G,q.getPlayerState())&&this.jB(new g.km(q.getPlayerState(),G)),a=a&&q.getPlayerType()===1,q.Ve()&&!a&&this.jR("dataloaded",q,q.getVideoData()),(a=(a=q.getVideoData().U)&&a.video)&&this.MB.pu("onPlaybackQualityChange",a.quality),cg(this,"cuerangesadded",q.Me()),a=q.getPlayerState(),g.v(a,2)?PDm(this):g.v(a,8)?q.playVideo():q.xV()&&q.pauseVideo(),a=this.UA(),q.getPlayerType()===2&&(q.getVideoData().iP=a.getVideoData().clientPlaybackNonce),q.getPlayerType()!==2||this.aG()||(G=q.getVideoData(), a.Wh(G.clientPlaybackNonce,G.tp||"",G.breakType||0,G.E3,G.videoId||"")),this.logger.debug("finish set presenting player"))}}; g.C.nP=function(){if(this.UA()!==this.xT()){var q=this.xT();this.logger.debug(function(){return"release presenting player, type "+q.getPlayerType()+", vid "+q.getVideoData().videoId}); this.Rk(this.UA())}}; g.C.vQ=function(){return this.Ra}; g.C.lK=function(q){return this.Ra.lK(q)}; g.C.RN=function(q){return this.Ra.RN(q)}; g.C.UA=function(){return this.Ra.UA()}; g.C.xT=function(){return this.Ra.xT()}; g.C.hx=qm(44);g.C.Cet=function(){ES(this)||(this.logger.debug("application playback ready"),this.wF(5))}; g.C.qQ7=function(){if(!ES(this)){this.logger.debug("playback ready");HRc(this);var q=this.xT(),a=q.getPlayerState();q.xV()?this.pauseVideo():a.isOrWillBePlaying()&&this.playVideo()}}; g.C.canPlayType=function(q){return $G(q)}; g.C.B=function(){return this.V7}; g.C.getVideoData=function(){return this.xT().getVideoData()}; g.C.Mo=qm(11);g.C.UB=function(){return this.UA().getVideoData()}; g.C.getVideoLoadedFraction=function(q){return(q=this.lK({playerType:q}))?q.getVideoLoadedFraction():this.Ra.V.getVideoLoadedFraction()}; g.C.mQ=function(){return this.template}; g.C.Hq=function(){return this.AS}; g.C.FF=function(){return this.ji}; g.C.dB=function(q,a,w){(a=this.lK({playerType:a===void 0?1:a}))&&a.Np(q,void 0,w)}; g.C.Eb=function(){var q=this.AS.Eb();this.MB.publish("videoStatsPingCreated",q);return q}; g.C.getVolume=function(){return Math.round(this.MB.getVolume())}; g.C.isMuted=function(){return this.MB.isMuted()}; g.C.n$=function(){if(this.UA()===this.xT()&&this.Rr)return this.Rr.postId}; g.C.fel=function(){var q=this;this.T("use_rta_for_player")||(g.Nh(this.V7)?g.B8(this.V7,g.li(this.getVideoData())).then(function(a){a0(gL(),a);dSK(q.getVideoData(),q.V7,q.e2())}):dSK(this.getVideoData(),this.V7,this.e2()))}; g.C.Ez=function(q){this.MB.publish("poTokenVideoBindingChange",q)}; g.C.gN=function(q){this.MB.publish("d6de4videobindingchange",q)}; g.C.K1=function(){this.IZ&&this.IZ.K1()}; g.C.Ih=function(q){this.IZ=q}; g.C.Rm=function(q){if(q===1){this.ji.tick("vr");var a=this.xT();a.Tb();XgU(this.ji,a.getVideoData(),f_G(this));$nf(this.AS)}a=this.V7;if(Ad(a)&&a.S||g.b0(a)){var w;(((w=this.xT().getVideoData())==null?0:w.enableServerStitchedDai)||!this.aG())&&this.MB.pu("onAdStateChange",q)}}; g.C.setLoopVideo=function(q){var a=this.xT();a===this.UA()&&a.w2()!==q&&(a.setLoop(q),this.MB.zl("onLoopChange",q))}; g.C.getLoopVideo=function(){return this.xT().w2()}; g.C.setLoopRange=function(q){var a=!1;!!this.Rr!==!!q?a=!0:this.Rr&&q&&(a=this.Rr.startTimeMs!==q.startTimeMs||this.Rr.endTimeMs!==q.endTimeMs||this.Rr.postId!==q.postId||this.Rr.type!==q.type);if(a){a=this.xT();AF(a.getVideoData())&&a.d8("slr",{et:(q==null?void 0:q.endTimeMs)||-1});a=this.UA();a.XC("applooprange");if(q){var w=new g.Xo(q.startTimeMs,q.endTimeMs,{id:"looprange",namespace:"applooprange"});a.addCueRange(w)}else{this.UB().clipConfig=void 0;var G;((w=this.Rr)==null?void 0:w.type)!=="repeatChapter"|| isNaN(Number((G=this.Rr)==null?void 0:G.loopCount))||(w={loopCount:String(this.Rr.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.aw("repeatChapterLoopEvent",w))}this.Rr=q;this.MB.zl("onLoopRangeChange",q||void 0);this.UA()===this.xT()&&(this.BE(),a.YZ())}}; g.C.getLoopRange=function(){return this.Rr}; g.C.BE=function(){var q="",a=this.UA();this.Rr?a!==this.xT()?q="pnea":Vol(this,a.getCurrentTime())&&(this.Rr.loopCount=0,q="ilr"):q="nlr";var w=this.xT();if(AF(w.getVideoData()))if(this.T("html5_gapless_log_loop_range_info")){var G,k;w.d8("slrre",{rej:q,ct:a.getCurrentTime(),lst:(G=this.Rr)==null?void 0:G.startTimeMs,let:(k=this.Rr)==null?void 0:k.endTimeMs})}else w.d8("slrre",{});q||mUj(this)}; g.C.setPlaybackRate=function(q,a){if(!isNaN(q)){q=ekK(this,q);var w=this.UA();w.getPlaybackRate()!==q&&(w.setPlaybackRate(q),a&&!this.V7.Y&&g.AE("yt-player-playback-rate",q),this.MB.pu("onPlaybackRateChange",q))}}; g.C.getCurrentTime=function(q,a){a=a===void 0?!0:a;var w=this.Ra.Gn;if(w)return w.getCurrentTime();var G=q===2&&this.getVideoData().enableServerStitchedDai;w=null;G?w=this.xT():w=this.lK({playerType:q});return w?G&&this.z4?(q=this.Ra.X)?q.getCurrentTime(a):w.getCurrentTime():a?(a=Z5(this,w),nU(this,a.getCurrentTime(),a)):w.getCurrentTime():this.Ra.V.getCurrentTime()}; g.C.oO=function(){var q=this.lK({playerType:void 0});if(!q)return this.Ra.V.oO();q=Z5(this,q);return nU(this,q.oO(),q)}; g.C.getDuration=function(q,a){a=a===void 0?!0:a;var w=this.Ra.Gn;if(w)return w.getDuration();w=this.getVideoData();var G=q===2&&w.enableServerStitchedDai,k=null;G?k=this.xT():k=this.lK({playerType:q});if(!k)return this.Ra.V.getDuration();if(w.hasProgressBarBoundaries()&&!G){var b,O=Number((b=w.progressBarStartPosition)==null?void 0:b.utcTimeMillis),e;b=Number((e=w.progressBarEndPosition)==null?void 0:e.utcTimeMillis);if(!isNaN(O)&&!isNaN(b))return(b-O)/1E3}if(AF(w)&&!w.isLivePlayback)return Bg(this, q);if(a)return q=CU(this,k),nU(this,q.getDuration(),q);if(G&&this.z4){if(this.T("html5_huli_ssdai_use_playback_state"))return q=this.Ra,q=q.Y===q.X?q.Y:null,(q==null?void 0:q.getDuration())||0;var N;return((N=this.Ra.X)==null?void 0:N.getDuration())||0}return k.getDuration()}; g.C.OB=function(q){var a=this.lK({playerType:q});return a?this.aG(a)?(a=CU(this,a),a.OB()-a.getCurrentTime()+this.getCurrentTime(q)):a.OB():this.Ra.V.OB()}; g.C.finishSegmentByCpn=function(){return[]}; g.C.sL=function(){this.template.sL();var q=this.MB;q.state.element=this.template.element;var a=q.state.element,w;for(w in q.state.V)q.state.V.hasOwnProperty(w)&&(a[w]=q.state.V[w]);(q=hCG(this.template.element))&&this.events.C(this.template,q,this.onFullscreenChange)}; g.C.getDebugText=function(q){var a=this.UA().Kk(q),w=this.xT();if(w!==this.UA()){w=w.Kk(q);for(var G=g.V(Object.keys(w)),k=G.next();!k.done;k=G.next())k=k.value,a["ad"+k]=w[k];if(q){w=a;G={};if(k=GY(document,"movie_player"))G.bounds=k.getBoundingClientRect(),G["class"]=k.className;k={};var b=g.lh("video-ads");b?(I_j(b,k),k.html=b.outerHTML):k.missing=1;b={};var O=g.lh("videoAdUiSkipContainer"),e=g.lh("ytp-ad-skip-button-container"),N=g.lh("ytp-skip-ad-button"),Y=O||e||N;Y?(I_j(Y,b),b.ima=O?1:0,b.bulleit= e?1:0,b.component=N?1:0):b.missing=1;G=JSON.stringify({player:G,videoAds:k,skipButton:b});w.ad_skipBtnDbgInfo=G}}q&&this.mediaElement&&(a["0sz"]=""+(+zR(this.mediaElement.getSize())===0),a.op=this.mediaElement.nD("opacity"),w=this.mediaElement.LU().y+this.mediaElement.getSize().height,a.yof=""+(+w<=0),a.dis=this.mediaElement.nD("display"));q&&((q=(0,g.bA)())&&(a.gpu=q),(q=this.V7.playerStyle)&&(a.ps=q),this.V7.le&&(a.webview=1),(q=this.webPlayerContextConfig.jsUrl)&&(a.js=q));a.debug_playbackQuality= this.MB.getPlaybackQuality(1);a.debug_date=(new Date).toString();a.origin=window.origin;a.timestamp=Date.now();delete a.uga;delete a.q;return JSON.stringify(a,null,2)}; g.C.getFeedbackProductData=function(){var q={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.B().experiments.experimentIds.join(", "),player_release:l[40]},a=this.getPlayerStateObject().lT;a&&(q.player_error_code=a.errorCode,q.player_error_details=JSON.stringify(a.errorDetail));return q}; g.C.getPresentingPlayerType=function(q){if(this.appState===1)return 1;if(ES(this))return 3;var a;return q&&((a=this.z4)==null?0:qay(a,this.getCurrentTime()))?2:this.xT().getPlayerType()}; g.C.CL=function(){return!1}; g.C.getPlayerStateObject=function(q){var a=this.Ra.Gn;return a?a.getPlayerState():this.lK({playerType:q}).getPlayerState()}; g.C.getAppState=function(){return this.appState}; g.C.i0l=function(q){switch(q.type){case "loadedmetadata":this.Cy.start();q=g.V(this.H_);for(var a=q.next();!a.done;a=q.next())a=a.value,SnV(this,a.id,a.GAQ,a.c4t,void 0,!1);this.H_=[];break;case "loadstart":this.ji.z6("gv");break;case "progress":case "timeupdate":O2(q.target.xe())>=2&&this.ji.z6("l2s");break;case "playing":g.mv&&this.Cy.start();if(g.Nh(this.V7))q=!1;else{a=g.ii(this.Hq());q=this.mediaElement.nD("display")==="none"||zR(this.mediaElement.getSize())===0;var w=dO(this.template),G=this.xT().getVideoData(), k=g.BA(this.V7);G=xQ(G);a=!w||a||k||G||this.V7.BT;q=q&&!a}q&&(q=this.xT(),q.dZ(),this.getVideoData().w$||(this.getVideoData().w$=1,this.fJ(),q.playVideo()))}}; g.C.dhT=function(q){this.MB.WN("onLoadProgress",q)}; g.C.H02=function(){this.MB.publish("playbackstalledatstart")}; g.C.YQ7=function(q,a){this.MB.publish("sabrCaptionsDataLoaded",q,a)}; g.C.aot=function(q){this.xT().eO(q)}; g.C.V4B=function(q){this.xT().EG(q)}; g.C.L6G=function(q){q=Z5(this,this.xT());q=nU(this,q.getCurrentTime(),q);this.MB.pu("onVideoProgress",q);this.V7.UM&&rRm(this,this.visibility.zn())&&this.pauseVideo()}; g.C.IZl=function(){this.MB.pu("onAutoplayBlocked");var q=this.xT().getVideoData();q&&(q.ey=!0);this.T("embeds_enable_autoplay_and_visibility_signals")&&g.yw(this.V7)&&(q={autoplayBrowserPolicy:Vo(),autoplayIntended:Jv(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.aw("embedsAutoplayStatusChanged",q))}; g.C.y8K=function(){this.MB.publish("progresssync")}; g.C.W67=function(){this.MB.WN("onPlaybackPauseAtStart")}; g.C.A28=function(q){if(this.getPresentingPlayerType()===1){g.Ox(q,1)&&!g.v(q.state,64)&&this.UB().isLivePlayback&&this.UA().isAtLiveHead()&&this.MB.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.Ox(q,2)){if(this.Rr&&this.Rr.endTimeMs>=(this.getDuration()-1)*1E3){mUj(this);return}PDm(this)}if(g.v(q.state,128)){var a=q.state;this.cancelPlayback(5);a=a.lT;JSON.stringify({errorData:a,debugInfo:this.getDebugText(!0)});this.MB.pu("onError",A6V(a.errorCode));this.MB.WN("onDetailedError",{errorCode:a.errorCode, errorDetail:a.errorDetail,message:a.errorMessage,messageKey:a.Yj,cpn:a.cpn});(0,g.Zj)()-this.V7.Th>6048E5&&this.MB.WN("onReloadRequired")}a={};if(q.state.isPlaying()&&!q.state.isBuffering()&&!mu("pbresume","ad_to_video")&&mu("_start","ad_to_video")){var w=this.getVideoData();a.clientPlaybackNonce=w.clientPlaybackNonce;w.videoId&&(a.videoId=w.videoId);g.VI(a,"ad_to_video");E3("pbresume",void 0,"ad_to_video");$nf(this.AS)}this.MB.publish("applicationplayerstatechange",q)}}; g.C.jB=function(q){this.Ra.Gn||this.MB.publish("presentingplayerstatechange",q)}; g.C.fE=function(q){Fy(this,pW(q.state));g.v(q.state,1024)&&this.MB.isMutedByMutedAutoplay()&&(xi(this,{muted:!1,volume:this.wh.volume},!1),LU(this,!1))}; g.C.onPlayerRequestSent=function(q){this.MB.zl("onPlayerRequestSent",q)}; g.C.ZU=function(q,a){q==="newdata"&&bRj(this);this.MB.publish("applicationvideodatachange",q,a)}; g.C.KMK=function(q,a){this.T("html5_afmt_change_update_volume")&&HRc(this);this.MB.WN("onPlaybackAudioChange",this.MB.getAudioTrack().Pq.name);this.MB.publish("internalaudioformatchange",this.MB.getAudioTrack().Pq.id,a)}; g.C.vFG=function(q){var a=this.xT().getVideoData();q===a&&this.MB.pu("onPlaybackQualityChange",q.U.video.quality)}; g.C.Wb=function(){var q=this.Ra.W[2]||null;q&&(q=q.getVideoData(),this.xT().d8("ssdai",{cleanaply:1,acpn:q==null?void 0:q.clientPlaybackNonce,avid:q.videoId,isDai:this.UB().enableServerStitchedDai?1:0}),delete this.Ra.W[2])}; g.C.Rgt=function(q,a){this.jR(q,this.xT(),a)}; g.C.jR=function(q,a,w){this.logger.debug(function(){return"on video data change "+q+", player type "+a.getPlayerType()+", vid "+w.videoId}); this.V7.TZ()&&a.d8("vdc",{type:q,vid:w.videoId||"",cpn:w.clientPlaybackNonce||""});a===this.UA()&&(this.V7.ym=w.oauthToken);a===this.UA()&&(this.getVideoData().enableServerStitchedDai&&!this.z4?(this.UA().d8("sdai",{initSstm:1}),this.z4=new g.qN(this.MB,this.V7,this.UA(),this)):!this.getVideoData().enableServerStitchedDai&&this.z4&&(this.z4.dispose(),this.z4=null));if(q==="newdata")this.logger.debug("new video data, destroy modules"),Mg(this.AS,2),this.MB.publish("videoplayerreset",a);else{if(!this.mediaElement)return; q==="dataloaded"&&(this.UA()===this.xT()?(YM(w.cT,w.pA),F8y(this)):$UN(this));a.getPlayerType()===1&&(this.V7.EK&&ooG(this),this.getVideoData().isLivePlayback&&!this.V7.IH&&this.KO("html5.unsupportedlive",2,"DEVICE_FALLBACK"),w.isLoaded()&&((SmN(w)||this.getVideoData().IH)&&this.MB.publish("legacyadtrackingpingchange",this.getVideoData()),w.hasProgressBarBoundaries()&&ARN(this)));this.MB.publish("videodatachange",q,w,a.getPlayerType())}this.MB.pu("onVideoDataChange",{type:q,playertype:a.getPlayerType()}); this.BE();var G=w.Kc;G?this.Mj.bx(G,w.clientPlaybackNonce):yTl(this.Mj)}; g.C.pY=function(){Ju(this,null);this.MB.WN("onPlaylistUpdate")}; g.C.nFQ=function(q){delete this.vE[q.getId()];this.UA().removeCueRange(q);a:{q=this.getVideoData();var a,w,G,k,b,O,e,N,Y,P,K=((a=q.EK)==null?void 0:(w=a.contents)==null?void 0:(G=w.singleColumnWatchNextResults)==null?void 0:(k=G.autoplay)==null?void 0:(b=k.autoplay)==null?void 0:b.sets)||((O=q.EK)==null?void 0:(e=O.contents)==null?void 0:(N=e.twoColumnWatchNextResults)==null?void 0:(Y=N.autoplay)==null?void 0:(P=Y.autoplay)==null?void 0:P.sets);if(K)for(a=g.V(K),w=a.next();!w.done;w=a.next())if(w= w.value,k=G=void 0,w=w.autoplayVideo||((G=w.autoplayVideoRenderer)==null?void 0:(k=G.autoplayEndpointRenderer)==null?void 0:k.endpoint),G=g.I(w,g.Er),b=k=void 0,w!=null&&((k=G)==null?void 0:k.videoId)===q.videoId&&((b=G)==null?0:b.continuePlayback)){q=w;break a}q=null}(a=g.I(q,g.Er))&&this.MB.zl("onPlayVideo",{sessionData:{autonav:"1",itct:q==null?void 0:q.clickTrackingParams},videoId:a.videoId,watchEndpoint:a})}; g.C.wF=function(q){var a=this;q!==this.appState&&(this.logger.debug(function(){return"app state change "+a.appState+" -> "+q}),q===2&&this.getPresentingPlayerType()===1&&(Fy(this,-1),Fy(this,5)),this.appState=q,this.MB.publish("appstatechange",q))}; g.C.KO=function(q,a,w,G,k){this.UA().q_(q,a,w,G,k)}; g.C.kX=qm(13);g.C.isAtLiveHead=function(q,a){a=a===void 0?!1:a;var w=this.lK({playerType:q});if(!w)return this.Ra.V.isAtLiveHead();q=CU(this,w);w=Z5(this,w);return q!==w?q.isAtLiveHead(nU(this,w.getCurrentTime(),w),!0):q.isAtLiveHead(void 0,a)}; g.C.YK=function(){var q=this.lK({playerType:void 0});return q?CU(this,q).YK():this.Ra.V.YK()}; g.C.seekTo=function(q,a,w,G,k){a=a!==!1;if(G=this.lK({playerType:G}))this.appState===2&&Q8(this),this.aG(G)?MN(this)?this.z4.seekTo(q,{seekSource:k},a,w):this.T0.seekTo(q,{seekSource:k},a,w):G.seekTo(q,{SO:!a,SI:w,e1:"application",seekSource:k})}; g.C.seekBy=function(q,a,w,G){this.seekTo(this.getCurrentTime()+q,a,w,G)}; g.C.c8Q=function(){this.MB.pu("SEEK_COMPLETE")}; g.C.B$e=function(){this.MB.zl("onAbnormalityDetected")}; g.C.jah=function(q){this.MB.zl("onSnackbarMessage",q)}; g.C.G07=function(q){var a=this.xT(),w=a.getVideoData();if(this.appState===1||this.appState===2)w.startSeconds=q;this.appState===2?g.v(a.getPlayerState(),512)||Q8(this):this.MB.pu("SEEK_TO",q)}; g.C.srT=function(){this.MB.publish("airplayactivechange")}; g.C.m1t=function(){this.MB.publish("airplayavailabilitychange")}; g.C.showAirplayPicker=function(){this.xT().WC()}; g.C.JiT=function(){this.MB.publish("beginseeking")}; g.C.V1t=function(){this.MB.publish("endseeking")}; g.C.getStoryboardFormat=function(q){return(q=this.lK({playerType:q}))?CU(this,q).getStoryboardFormat():this.Ra.V.getStoryboardFormat()}; g.C.Oq=function(q){return(q=this.lK({playerType:q}))?CU(this,q).getVideoData().Oq():this.Ra.V.Oq()}; g.C.aG=function(q){q=(q||this.xT()).getVideoData();if(MN(this))q=q===this.z4.playback.getVideoData();else a:{var a=this.T0;if(q===a.V.getVideoData()&&a.U.length)q=!0;else{a=g.V(a.U);for(var w=a.next();!w.done;w=a.next())if(q.iK===w.value.iK){q=!0;break a}q=!1}}return q}; g.C.jb=function(q,a,w,G,k,b,O,e){this.logger.debug(function(){return"Adding video to timeline id="+q.video_id+"\n lengthMs="+G+" enterTimeMs="+k}); var N="",Y=MN(this);this.xT().d8("appattl",{sstm:this.z4?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:Y});Y?(w=v2_(this.z4,q,a,w,G,k,b,O),N=(w==null?void 0:w.iK)||"",(this.T("html5_ssdai_new_decoration_logic")||this.UA().getVideoData().ll)&&this.UA().iN(e||"",a,(w==null?void 0:w.clientPlaybackNonce)||"")):N=BAy(this.T0,q,w,G,k,b);this.logger.debug(function(){return"Video added to timeline id="+q.video_id+" timelinePlaybackId="+N}); return N}; g.C.Zb=function(q,a,w,G,k,b,O){if(MN(this)){var e,N=(e=this.z4)==null?void 0:v2_(e,q,a,w,G,k,b,O);this.logger.debug(function(){return"Remaining video added to timeline id="+q.video_id+" timelinePlaybackId="+((N==null?void 0:N.iK)||"")})}}; g.C.G6=function(q){(this.T("html5_ssdai_new_decoration_logic")||this.UA().getVideoData().ll)&&this.UA().iN(q,"","");var a;(a=this.z4)==null||a.G6(q)}; g.C.uC=function(q,a){q=q===void 0?-1:q;a=a===void 0?Infinity:a;MN(this)||piJ(this.T0,q,a)}; g.C.k5=function(q,a,w){if(MN(this)){var G=this.z4,k=G.V.lK({iK:q});k?(w===void 0&&(w=k.uw),wil(G,k,a,w)):G.vW("Invalid_timelinePlaybackId_"+q+"_specified")}else{G=this.T0;k=null;for(var b=g.V(G.U),O=b.next();!O.done;O=b.next())if(O=O.value,O.iK===q){k=O;break}k?(w===void 0&&(w=k.uw),cTl(G,k,a,w)):OS(G,"InvalidTimelinePlaybackId timelinePlaybackId="+q)}}; g.C.enqueueVideoByPlayerVars=function(q,a,w,G){w=w===void 0?Infinity:w;G=G===void 0?"":G;this.aG();q=new g.TO(this.V7,q);G&&(q.iK=G);xUV(this,q,a,w)}; g.C.queueNextVideo=function(q,a,w,G,k){w=w===void 0?NaN:w;q=this.preloadVideoByPlayerVars(q,a===void 0?1:a,w,G===void 0?"":G,k===void 0?"":k);a=this.xT();q&&(this.T("html5_check_queue_on_data_loaded")?this.B().supportsGaplessShorts()&&a.getVideoData().X&&(w=this.zw,G=this.uD.D,w.Y!==q&&(w.U=a,w.Y=q,w.W=1,w.V=q.getVideoData(),w.D=G,w.V.isLoaded()?w.L():w.V.subscribe("dataloaded",w.L,w))):(w=bqy(a,q,this.uD.D),w!=null?(a.d8("sgap",w),a.getVideoData().X&&a.Tm(!1)):(q=q.getVideoData(),a=this.zw,a.V!== q&&(a.V=q,a.W=1,q.isLoaded()?a.X():a.V.subscribe("dataloaded",a.X,a)))))}; g.C.MC=function(q,a,w,G){var k=this;w=w===void 0?0:w;G=G===void 0?0:G;CU(this,this.xT()).V1();syc(this.uD,q,a,w,G).then(function(){k.MB.WN("onQueuedVideoLoaded")},function(){})}; g.C.Qm=function(){return this.uD.Qm()}; g.C.FP=function(q){var a=this.uD.V;return a?a.NR(q):!1}; g.C.clearQueue=function(q,a){q=q===void 0?!1:q;a=a===void 0?!1:a;this.logger.debug("Clearing queue");this.uD.clearQueue(q,a)}; g.C.loadVideoByPlayerVars=function(q,a,w,G,k,b){a=a===void 0?1:a;var O=this.UA();if(a===2&&this.UB().enableServerStitchedDai&&O&&!O.S_())return O.d8("lvonss",{vid:(q==null?void 0:q.videoId)||"",ptype:a}),!1;var e=!1;O=new g.TO(this.V7,q);O.RE=b;g.Jd(this.V7)&&!O.BH&&ZU(this.ji);var N;b=this.ji;var Y=(N=O.F9)!=null?N:"";b.timerName=Y;this.ji.IG("pl_i");this.T("web_player_early_cpn")&&O.clientPlaybackNonce&&this.ji.infoGel({clientPlaybackNonce:O.clientPlaybackNonce});NtN(O).supportsVp9Encoding===!1&& this.xT().d8("noVp9enc",{});if(this.B().supportsGaplessShorts()){N=Zql(this.uD,O,a);if(N==null){Fy(this,-1);var P;((P=this.uD.V)==null?0:P.getVideoData().isAd())||hu(this);q=this.uD;q.app.B().T("html5_gapless_new_slr")?rO(q.app,"gaplessshortslooprange"):q.app.setLoopRange(null);q.app.getVideoData().JP=!0;var K;(K=q.V)==null||K.Sr();var d;(d=q.V)==null||d.oK();w={e1:"gapless_to_next_video",seekSource:60,o6:q.D.V};G=g.Wo(q.app.B().experiments,"html5_gapless_seek_offset");k=CCN(q);if(q.D.V){var T;O= ((T=q.W)==null?void 0:XG(T))||{};T=O.Sx;O=O.LX;O!=null&&T!=null&&(k=O-T+.001)}var F;(F=q.app.xT())==null||F.seekTo(k+G,w);if(!q.app.getPlayerStateObject(a).isPlaying()){var J;(J=q.app.xT())==null||J.playVideo(!0)}var Q;(Q=q.app.xT())==null||Q.Yg();q.X();return!0}F=this.T("html5_shorts_gapless_preload_fallback");J=this.uD.V;F&&J&&!J.t2()&&(Q=J.getVideoData(),this.Ra.D.set(S$(a,Q),J,3600));this.uD.clearQueue(F);this.xT().d8("sgap",{f:N})}if(k){for(;O.XV.length&&O.XV[0].isExpired();)O.XV.shift();F=O.XV.length- 1;e=F>0&&k.U(O.XV[F])&&k.U(O.XV[F-1]);O.XV.push(k)}w||(q&&I5l(q)?(sV(this.V7)&&!this.cQ&&(q.fetch=0),Ju(this,q)):this.playlist&&Ju(this,null),q&&(this.cQ=DS(!1,q.external_list)));this.MB.publish("loadvideo");F=this.Jb(O,a,G);e&&this.KO("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+O.XV.join()).replace(/[;:,]/g,"_"));return F}; g.C.preloadVideoByPlayerVars=function(q,a,w,G,k){a=a===void 0?1:a;w=w===void 0?NaN:w;G=G===void 0?"":G;k=k===void 0?"":k;var b=Bfl(a,q,k),O=this.Ra.D.get(b)||null;if(O)return this.logger.debug(function(){return"already preloaded "+b}),this.T("html5_return_playback_if_already_preloaded")?O:null; q=new g.TO(this.V7,q);k&&(q.iK=k);return L8l(this,q,a,w,G)}; g.C.setMinimized=function(q){this.visibility.setMinimized(q);(q=C7N(this.AS))&&(this.isMinimized()?q.load():q.unload());this.MB.publish("minimized")}; g.C.setInline=function(q){this.visibility.setInline(q)}; g.C.setInlinePreview=function(q){this.visibility.setInline(q)}; g.C.wJ=function(q){noc(this,q)||this.visibility.wJ(q)}; g.C.setSqueezeback=function(q){this.visibility.setSqueezeback(q)}; g.C.OJ=function(){var q,a=(q=this.mediaElement)==null?void 0:q.cq();a&&(this.V7.N$&&ok(Ut(function(){return document.exitFullscreen()}),function(){}),ok(Ut(function(){return K2(a)}),function(){}))}; g.C.U9Q=function(){this.mediaElement.cq();this.mediaElement.cq().webkitPresentationMode==="picture-in-picture"?this.wJ(!0):this.wJ(!1)}; g.C.togglePictureInPicture=function(){this.xT().togglePictureInPicture()}; g.C.Jb=function(q,a,w){a=a===void 0?1:a;this.logger.debug(function(){return"start load video, id "+q.videoId+", type "+a}); mu("_start",this.ji.timerName)||g.tK(dJ)(void 0,this.ji.timerName);var G=!1,k=Eom(this,a,q,!1);k?(G=!0,q.dispose()):(k=$i(this,a,q,!0,w),(this.T("html5_onesie")||this.T("html5_load_before_stop"))&&k.dR()&&k.TH(),this.Cy.stop(),a===1&&a!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,a),this.Rk(k));k===this.UA()&&(this.V7.ym=q.oauthToken);if(!k.dR())return!1;if(k===this.UA())return this.wF(1),w=Q8(this),G&&this.T("html5_player_preload_ad_fix")&&k.getPlayerType()===1&& k.Ve()&&this.jR("dataloaded",k,k.getVideoData()),w;k.N7();return!0}; g.C.cueVideoByPlayerVars=function(q,a){var w=this;a=a===void 0?1:a;var G=this.UA();if(this.UB().enableServerStitchedDai&&G&&!G.S_()&&q&&Object.keys(q).length>0)G.d8("qvonss",{vid:(q==null?void 0:q.videoId)||"",ptype:a});else if(q&&I5l(q))if(this.zm=!0,Ju(this,q),(q=g.EC(this.playlist))&&q.PN())Hg(this,q,a);else this.playlist.onReady(function(){mP(w)}); else{a||(a=this.getPresentingPlayerType());a===1&&this.pY();G=new g.TO(this.V7,q);var k=g.yw(this.V7)&&!this.V7.UK&&a===1&&!G.isAd()&&!G.tp;this.MB.publish("cuevideo");k?(this.xT().getVideoData().loading=!0,DNc(G,q?q:{}).then(function(b){Hg(w,b,a)}),G.dispose()):Hg(this,G,a)}}; g.C.Fj=function(q,a,w,G,k,b,O){if(!q&&!w)throw Error("Playback source is invalid");if(g8(this.V7)||g.lt(this.V7))return a=a||{},a.lact=s9(),a.vis=this.MB.getVisibilityState(),this.MB.zl("onPlayVideo",{videoId:q,watchEndpoint:b,sessionData:a,listId:w}),!1;jQf(this.ji);this.ji.reset();q={video_id:q};G&&(q.autoplay="1");G&&(q.autonav="1");b&&(q.player_params=b.playerParams);O&&(q.oauth_token=O);w?(q.list=w,this.loadPlaylist(q)):this.loadVideoByPlayerVars(q,1);return!0}; g.C.cuePlaylist=function(q,a,w,G){this.zm=!0;MoN(this,q,a,w,G)}; g.C.loadPlaylist=function(q,a,w,G){this.zm=!1;MoN(this,q,a,w,G)}; g.C.oB=function(){return this.MB.isMutedByMutedAutoplay()?!1:this.Ra.Gn?!0:!(!this.playlist||!this.playlist.HI())}; g.C.Rx=qm(5); g.C.nextVideo=function(q,a){var w=g.Vq(this.UA().getVideoData());g.R$(this.MB)&&w?this.Fj(w.videoId,a?w.aB:w.sessionData,w.playlistId,a,void 0,w.Bt||void 0):this.cQ?this.MB.WN("onPlaylistNext"):this.getPresentingPlayerType()===3?tc(this.AS).nextVideo():!this.playlist||sV(this.V7)&&!this.MB.isFullscreen()||(this.playlist.HI(q)&&vic(this.playlist,uym(this.playlist)),this.playlist.loaded?(q=a&&this.V7.T("html5_player_autonav_logging"),a&&this.MB.publish("playlistautonextvideo"),this.Jb(g.EC(this.playlist,void 0, a,q),1)):this.zm=!1)}; g.C.previousVideo=function(q){this.cQ?this.MB.WN("onPlaylistPrevious"):this.getPresentingPlayerType()===3?tc(this.AS).jr():!this.playlist||sV(this.V7)&&!this.MB.isFullscreen()||(this.playlist.IE(q)&&vic(this.playlist,t$f(this.playlist)),this.playlist.loaded?this.Jb(g.EC(this.playlist),1):this.zm=!1)}; g.C.playVideoAt=function(q){this.cQ?this.MB.WN("onPlaylistIndex",q):this.playlist&&(this.playlist.loaded?this.Jb(g.EC(this.playlist,q),1):this.zm=!1,vic(this.playlist,q))}; g.C.getPlaylist=function(){return this.playlist}; g.C.pD=qm(19);g.C.Md=function(q){this.H_=g.L$(this.H_,function(b){return b.id!==q}); for(var a=this.UA(),w=a.Me(),G=0;G0&&(N=Math.floor(Y/1E3))}N=a?a.LT:N;var P={AD_BLOCK:this.V++,AD_BREAK_LENGTH:N,AUTONAV_STATE:US(this.player.B()),CA_TYPE:"image",CPN:e.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.YK()*1E3,LACT:s9(),LIVE_INDEX:a?this.W++:1,LIVE_TARGETING_CONTEXT:a&&a.context?a.context:"",MIDROLL_POS:b? Math.round(b.start/1E3):0,MIDROLL_POS_MS:b?Math.round(b.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.mQ().uM().height,P_W:this.player.mQ().uM().width,YT_REMOTE:k?k.join(","):""},K=kn(Gn);Object.keys(K).forEach(function(T){K[T]!=null&&(P[T.toUpperCase()]=K[T].toString())}); w!==""&&(P.BISCOTTI_ID=w);w={};wF(q)&&(w.sts="20305",(a=this.player.B().forcedExperiments)&&(w.forced_experiments=a));var d=qL(g.AD(q,P),w);return d.split("?").length!==2?nT(Error("Invalid AdBreakInfo URL")):g.B8(this.player.B(),e==null?void 0:e.oauthToken).then(function(T){if(T&&ac()){var F=gL();a0(F,T)}T=G.player.e2(F);F=Ycc(G,d,P,e.isMdxPlayback,O);return g.Bt(T,F,"/youtubei/v1/player/ad_break").then(function(J){return J})})}; Xy.prototype.reset=function(){this.W=this.V=1};g.Z(PgG,Xy); PgG.prototype.U=function(q,a,w){a=a===void 0?{}:a;var G=a.Qv;var k=a.nW;var b=a.cueProcessedMs;w=w===void 0?"":w;a=this.V;this.V++;var O=this.player.B().T("h5_disable_macro_substitution_in_get_ad_break")?q:KHl(this,q,{Qv:G,nW:k,cueProcessedMs:b},w,a);if(O.split("?").length!==2)return Math.random()<.1&&g.Qa(Error("Invalid AdBreakInfo URL")),nT(Error("Invalid AdBreakInfo URL"));var e=this.player.getVideoData(1).isMdxPlayback,N=w;w=GPN.exec(O);w=w!=null&&w.length>=2?w[1]:"";q=kPc.test(O);var Y=bLl.exec(O); Y=Y!=null&&Y.length>=2?Y[1]:"";var P=OLK.exec(O);P=P!=null&&P.length>=2&&!Number.isNaN(Number(P[1]))?Number(P[1]):1;var K=l4V.exec(O);K=K!=null&&K.length>=2?K[1]:"0";var d=N2(this.player.B().pE),T=g.IA(this.player.getVideoData(1).L7,!0);RkJ(this,T,O,N===""?"":N,this.player.B(),this.player.getVideoData(1));N={splay:!1,lactMilliseconds:String(s9()),playerHeightPixels:Math.trunc(this.player.mQ().uM().height),playerWidthPixels:Math.trunc(this.player.mQ().uM().width),vis:Math.trunc(this.player.getVisibilityState()), signatureTimestamp:20305,autonavState:US(this.player.B())};if(e){e={};var F=this.player.B().gT;ghJ(e,F?F.join(","):"")&&(N.mdxContext=e)}if(e=eay.includes(d)?void 0:g.rF("PREF")){F=e.split(RegExp("[:&]"));for(var J=0,Q=F.length;J1&&B[1].toUpperCase()==="TRUE"){T.user.lockedSafetyMode=!0;break}}N.autoCaptionsDefaultOn=wWV(e)}O=NTK.exec(O);(O=O!=null&&O.length>=2?O[1]:"")&&Y&&(T.user.credentialTransferTokens= [{token:O,scope:"VIDEO"}]);O={contentPlaybackContext:N};N=this.player.getVideoData(1).getGetAdBreakContext();e=this.player.getVideoData(1).clientPlaybackNonce;F=b!==void 0?Math.round(b).toString():void 0;J=(G==null?0:G.context)?G.context:void 0;Q=0;b&&k&&!G&&(k=k.end-k.start,k>0&&(Q=Math.floor(k/1E3)));G=(G=Math.trunc((G?G.LT:Q)*1E3))?String(G):void 0;k=this.player.YK()*1E3;k=Number.isNaN(k)?0:Math.trunc(k);a={adBlock:a,params:w,breakIndex:P,breakPositionMs:K,clientPlaybackNonce:e,topLevelDomain:d, isProxyAdTagRequest:q,context:T,overridePlaybackContext:O,cueProcessedMs:F,videoId:Y?Y:void 0,liveTargetingParams:J,breakLengthMs:G,driftFromHeadMs:k?String(k):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:N?N:void 0};return d$l(this,a)};var Anx={wcW:"replaceUrlMacros",rmG:"onAboutThisAdPopupClosed",KPK:"executeCommand"};TTc.prototype.Lm=function(){return"adPingingEndpoint"}; TTc.prototype.nU=function(q,a,w){yUf(this.p7.get(),q,a,w)};$$l.prototype.Lm=function(){return"changeEngagementPanelVisibilityAction"}; $$l.prototype.nU=function(q){this.j.zl("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:q})};sHU.prototype.Lm=function(){return"loggingUrls"}; sHU.prototype.nU=function(q,a,w){q=g.V(q);for(var G=q.next();!G.done;G=q.next())G=G.value,yUf(this.p7.get(),G.baseUrl,a,w,G.attributionSrcMode)};g.Z(CgK,g.c);g.Z(oQ,g.c);g.C=oQ.prototype;g.C.addListener=function(q){this.listeners.push(q)}; g.C.removeListener=function(q){this.listeners=this.listeners.filter(function(a){return a!==q})}; g.C.Xa=function(q,a,w,G,k,b,O,e){if(q==="")Gj("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(q!==this.V||w){this.V=q;this.RW.get().Xa(q,a,w,G,k,b,O,e);this.n7.get().Xa(q,a,w,G,k,b,O,e);var N;(N=this.wz)==null||N.get().Xa(q,a,w,G,k,b,O,e);this.U.Xa(q,a,w,G,k,b,O,e);N=g.V(this.listeners);for(var Y=N.next();!Y.done;Y=N.next())Y.value.Xa(q,a,w,G,k,b,O,e)}else Gj("Duplicate content video loaded signal")}; g.C.pq7=function(){this.V&&this.MQ(this.V)}; g.C.MQ=function(q){this.V=void 0;for(var a=g.V(this.listeners),w=a.next();!w.done;w=a.next())w.value.MQ(q)};IQ.prototype.Z$=function(q,a,w,G,k){ZLc(this);this.D=!a&&w===0;var b=this.j.getVideoData(1),O=this.j.getVideoData(2);b&&(this.contentCpn=b.clientPlaybackNonce,this.videoId=b.videoId,this.V=b.L);O&&(this.adCpn=O.clientPlaybackNonce,this.adVideoId=O.videoId,this.adFormat=O.adFormat);this.Y=q;G<=0?(ZLc(this),this.D=!a&&w===0):(this.actionType=this.D?a?"unknown_type":"video_to_ad":a?"ad_to_video":"ad_to_ad",this.videoStreamType=k?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& (this.W=!0,mu("_start",this.actionType)&&JUN(this)))}; IQ.prototype.reset=function(){return new IQ(this.j)};g.Z(ue,g.c);ue.prototype.addCueRange=function(q,a,w,G,k,b,O,e,N){b=b===void 0?3:b;O=O===void 0?1:O;this.V.has(q)?Gj("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:q}):(q=new m$l(q,a,w,G,b,e,N),this.V.set(q.id,{nW:q,listener:k,zY:O}),this.j.N9([q],O))}; ue.prototype.removeCueRange=function(q){var a=this.V.get(q);a?(this.j.kE([a.nW],a.zY),this.V.delete(a.nW.id)):Gj("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:q})}; ue.prototype.onCueRangeEnter=function(q){if(this.V.has(q.id))this.V.get(q.id).listener.onCueRangeEnter(q.id)}; ue.prototype.onCueRangeExit=function(q){if(this.V.has(q.id))this.V.get(q.id).listener.onCueRangeExit(q.id)}; g.Z(m$l,g.Xo);tu.prototype.addPlayerResponseForAssociation=function(q){this.j.addPlayerResponseForAssociation(q)};vg.prototype.Rm=function(q){this.j.Rm(q)}; vg.prototype.DN=function(q){var a=g.XU.apply(1,arguments);q==="onAdStart"||q==="onAdEnd"?this.j.pu.apply(this.j,[q].concat(g.Tf(a))):this.j.zl.apply(this.j,[q].concat(g.Tf(a)))};zb.prototype.jo=function(q){return q&&ie(this)};var HLj=null;g.Z(f4l,g.ya);f4l.prototype.sC=function(q){return this.V.hasOwnProperty(q)?this.V[q].sC():{}}; g.qe("ytads.bulleit.getVideoMetadata",function(q){return Wg().sC(q)}); g.qe("ytads.bulleit.triggerExternalActivityEvent",function(q,a,w){var G=Wg();w=ScK(w);w!==null&&G.publish(w,{queryId:q,viewabilityString:a})});g.C=D5.prototype;g.C.SG=function(q,a){if(!this.V.has(q))return{};if(a==="seek"){a=!1;a=a===void 0?!1:a;var w=ZD(z$).oI(q,{});w?od(w):a&&(q=ZD(z$).NK(null,Mr(),!1,q),q.LF=3,V8l([q]));return{}}a=pWN(a);if(a===null)return{};var G=this.j.T2();if(!G)return{};var k=this.j.getPresentingPlayerType(!0);if((w=this.j.getVideoData(k))==null||!w.isAd())return{};w={opt_adElement:G,opt_fullscreen:this.RW.get().isFullscreen()};return Vcc(a,q,w)}; g.C.rJ=function(q,a,w,G,k){this.V.has(q)&&(G<=0||k<=0||ZD(z$).rJ(q,a,w,G,k))}; g.C.tT=function(q){var a;(a=this.V.get(q.queryId))==null||a.tT()}; g.C.pg=function(q){var a;(a=this.V.get(q.queryId))==null||a.pg()}; g.C.Ei=function(q){var a;(a=this.V.get(q.queryId))==null||a.Ei()}; g.C.Lg=function(q){var a;(a=this.V.get(q.queryId))==null||a.Lg()}; g.C.DA=function(q){var a;(a=this.V.get(q.queryId))==null||a.DA()};zam.prototype.send=function(q,a,w,G){try{iLG(this,q,a,w,G===void 0?!1:G)}catch(k){}};g.Z(WHl,zam);D$c.prototype.send=function(q,a,w,G){var k=!1;try{if(G==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||G==="ATTRIBUTION_SRC_MODE_XHR_OPTION")k=!0,q=keG(q);G=k;var b=g.es(q);if(b[1]==="https")var O=q;else b[1]="https",O=l6("https",b[2],b[3],b[4],b[5],b[6],b[7]);var e=kyy(O);b=[];var N=tYm(O)&&this.Q7.get().j.B().experiments.Zh("add_auth_headers_to_remarketing_google_dot_com_ping");if(wF(O)||N)b.push({headerType:"USER_AUTH"}),b.push({headerType:"PLUS_PAGE_ID"}),b.push({headerType:"VISITOR_ID"}),b.push({headerType:"EOM_VISITOR_ID"}), b.push({headerType:"AUTH_USER"}),b.push({headerType:"DATASYNC_ID"});this.V.send({baseUrl:O,scrubReferrer:e,headers:b},a,w,G)}catch(Y){}};a8.prototype.OP=function(){return this.j.OP(1)};g.Z(wN,g.c);g.C=wN.prototype;g.C.yV=function(){return this.j.getVideoData(1).clientPlaybackNonce}; g.C.addListener=function(q){this.listeners.push(q)}; g.C.removeListener=function(q){this.listeners=this.listeners.filter(function(a){return a!==q})}; g.C.Xa=function(){this.ZT.clear();this.iU=null;this.xX.get().clear()}; g.C.MQ=function(){}; g.C.e97=function(q,a,w,G,k){a.videoId==="nPpU29QrbiU"&&this.j.d8("ads_ssm_vdc_s",{pt:w,dvt:q});iU(this.Q7.get())&&q!=="dataloaded"||bKR(this,a,w);if(ie(this.Q7.get())&&q==="newdata"&&k!==void 0){q=this.yV();var b=a.clientPlaybackNonce,O={};Oe(this,"rte",(O.ec=b,O.xc=G==null?void 0:G.clientPlaybackNonce,O.tr=k,O.pt=w,O.ia=b!==q,O.ctp=b4(b),O));a=a.clientPlaybackNonce;G=G==null?void 0:G.clientPlaybackNonce;k=OKw(k);if(k!==1)if(G!==void 0)for(w=g.V(this.listeners),q=w.next();!q.done;q=w.next())q.value.Sd(G, a,k);else Gj("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:a,transitionReason:String(k)});k=g.V(this.listeners);for(G=k.next();!G.done;G=k.next())G.value.CQ(a)}}; g.C.uCQ=function(q,a){q!==void 0&&(this.iU=q,a===void 0?Gj("Expected ad video start time on SS video changed"):this.ZT.set(q,a));var w=this.j.getPresentingPlayerType(!0),G=this.j.getVideoData(w),k;q===void 0?k=null:k=this.xX.get().V.get(q)||null;this.j.getVideoData(1).d8("ads_ssvc",{pt:w,cpn:G==null?void 0:G.clientPlaybackNonce,crtt:this.j.getCurrentTime(1,!1),atlh:this.j.isAtLiveHead(),adstt:a,pid:q,slid:k==null?void 0:k.layoutId});G?bKR(this,G,w):Gj("Expected video data on server stitched video changed", void 0,void 0,{cpn:this.j.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:q})}; g.C.Bo=function(q,a){var w=q.author,G=q.clientPlaybackNonce,k=q.isListed,b=q.iK,O=q.title,e=q.rh,N=q.wl,Y=q.isMdxPlayback,P=q.aP,K=q.mdxEnvironment,d=q.isAutonav,T=q.NT,F=q.BH,J=q.Jo,Q=q.videoId||"",B=q.profilePicture||"",L=q.Am||"",M=q.tK()||!1,H=q.fT()||!1;q=q.NS||void 0;b=this.xX.get().V.get(b)||{layoutId:null,slotId:null};var X=this.j.getVideoData(1),D=X.pk();X=X.getPlayerResponse();a=1E3*this.j.getDuration(a);var z=1E3*this.j.getDuration(1),Oj,$l,ey=(X==null?void 0:(Oj=X.playerConfig)==null? void 0:($l=Oj.daiConfig)==null?void 0:$l.enableDai)||!1,Nm,a_;Oj=(X==null?void 0:(Nm=X.playerConfig)==null?void 0:(a_=Nm.daiConfig)==null?void 0:a_.enablePreroll)||!1;return Object.assign({},b,{videoId:Q,author:w,clientPlaybackNonce:G,zG:a,CE:z,daiEnabled:ey,AU:Oj,isListed:k,pk:D,profilePicture:B,title:O,Am:L,rh:e,wl:N,NS:q,isMdxPlayback:Y,aP:P,mdxEnvironment:K,isAutonav:d,NT:T,BH:F,Jo:J,tK:M,fT:H})}; g.C.qB=function(){this.listeners.length=0;this.oz=null;g.c.prototype.qB.call(this)};g.Z(GI,g.c);g.C=GI.prototype;g.C.Xa=function(){var q=this;ie(this.Q7.get())||(this.V=SU(function(){q.j.t2()||q.j.fu("ad",1)}))}; g.C.MQ=function(){}; g.C.addListener=function(q){this.listeners.push(q)}; g.C.removeListener=function(q){this.listeners=this.listeners.filter(function(a){return a!==q})}; g.C.Kz=function(){}; g.C.playVideo=function(){this.j.playVideo()}; g.C.pauseVideo=function(){this.j.pauseVideo()}; g.C.resumeVideo=function(q){this.Zl(q)&&this.j.playVideo()}; g.C.Zl=function(q){return this.j.getPlayerState(q)===2}; g.C.getCurrentTimeSec=function(q,a,w){var G=this.n7.get().iU;if(q===2&&!a&&G!==null)return O$(this,G);Mh(this.Q7.get(),"html5_ssap_use_cpn_to_get_time")||(w=void 0);return w!==void 0?this.j.getCurrentTime(q,a,w):this.j.getCurrentTime(q,a)}; g.C.getVolume=function(){return this.j.getVolume()}; g.C.isMuted=function(){return this.j.isMuted()}; g.C.getPresentingPlayerType=function(){return this.j.getPresentingPlayerType(!0)}; g.C.getPlayerState=function(q){return this.j.getPlayerState(q)}; g.C.getGetAdBreakContext=function(){return this.j.getGetAdBreakContext()}; g.C.isFullscreen=function(){return this.j.isFullscreen()}; g.C.isAtLiveHead=function(){return this.j.isAtLiveHead()}; g.C.gF=function(q){this.j.gF(q)}; g.C.M1l=function(){var q=this.j.getPresentingPlayerType(!0),a=this.getCurrentTimeSec(q,!1);if(q===2){q=g.V(this.listeners);for(var w=q.next();!w.done;w=q.next())w.value.XF(a)}else if(q===1)for(q=g.V(this.b2),w=q.next();!w.done;w=q.next())w.value.Kz(a)}; g.C.Qae=function(q){for(var a=g.V(this.listeners),w=a.next();!w.done;w=a.next())w.value.nO(q,this.getPresentingPlayerType())}; g.C.onFullscreenToggled=function(q){for(var a=g.V(this.listeners),w=a.next();!w.done;w=a.next())w.value.onFullscreenToggled(q)}; g.C.onVolumeChange=function(){for(var q=g.V(this.listeners),a=q.next();!a.done;a=q.next())a.value.onVolumeChange()}; g.C.jG=function(){for(var q=this.j.isMinimized(),a=g.V(this.listeners),w=a.next();!w.done;w=a.next())w.value.jG(q)}; g.C.lD=function(q){for(var a=g.V(this.listeners),w=a.next();!w.done;w=a.next())w.value.lD(q)}; g.C.sA=function(){for(var q=this.j.mQ().uM(),a=g.V(this.listeners),w=a.next();!w.done;w=a.next())w.value.Ba(q)}; g.C.Tg=function(q){for(var a=g.V(this.listeners),w=a.next();!w.done;w=a.next())w.value.Tg(q)}; g.C.Nz=function(){for(var q=g.V(this.listeners),a=q.next();!a.done;a=q.next())a.value.Nz()};g.Z(YjR,g.c);g.Z(Nn,g.c);Nn.prototype.qB=function(){this.m1.t2()||this.m1.get().removeListener(this);g.c.prototype.qB.call(this)};YC.prototype.fetch=function(q){var a=q.AI;return this.V.fetch(q.Vd,{Qv:q.Qv===void 0?void 0:q.Qv,nW:a,cueProcessedMs:q.cueProcessedMs===void 0?0:q.cueProcessedMs}).then(function(w){return PGV(w,a)})};g.Z(PK,g.c);g.C=PK.prototype;g.C.addListener=function(q){this.listeners.push(q)}; g.C.removeListener=function(q){this.listeners=this.listeners.filter(function(a){return a!==q})}; g.C.f9=function(q){Kll(this,q,1)}; g.C.onAdUxClicked=function(q,a){K9(this,function(w){w.V0(q,a)})}; g.C.zr=function(q){K9(this,function(a){a.LH(q)})}; g.C.Aq=function(q){K9(this,function(a){a.vu(q)})}; g.C.gTW=function(q){K9(this,function(a){a.Hv(q)})};dN.prototype.reduce=function(q){switch(q.event){case "unknown":return}var a=q.identifier;var w=this.V[a];w?a=w:(w={xB:null,rr:-Infinity},a=this.V[a]=w);w=q.startSecs+q.V/1E3;if(!(w=this.V.startSecs&&w.startSecs<=this.V.startSecs+this.V.LT)){var G=void 0;if(W9(this.Q7.get())&&w.identifier!==((G=this.V)==null?void 0:G.identifier)){var k=G=void 0,b=void 0,O=void 0;Bk(this.p7.get(),"ocud","ccpi."+w.identifier+";ccpe."+w.event+";ccps."+w.startSecs+";\n ccpd."+w.LT+";pcpi."+((G=this.V)==null?void 0:G.identifier)+ ";pcpe."+((k=this.V)==null?void 0:k.event)+";\n pcps."+((b=this.V)==null?void 0:b.startSecs)+";pcpd."+((O=this.V)==null?void 0:O.LT)+";")}G=void 0;w.identifier!==((G=this.V)==null?void 0:G.identifier)&&Gj("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.V=w,$m7(this,w)}}; g.C.qB=function(){this.U!=null&&(this.U.unsubscribe("cuepointupdated",this.Jq,this),this.U=null);this.listeners.length=0;this.CZ.length=0;g.c.prototype.qB.call(this)};g.C=s$.prototype;g.C.jb=function(q,a,w,G,k,b,O,e){return this.j.jb(q,a,w,G,k,b,O,e)}; g.C.uC=function(q,a){this.j.uC(q,a)}; g.C.k5=function(q,a,w){this.j.k5(q,a,w)}; g.C.G6=function(q){this.j.G6(q)}; g.C.Zb=function(q,a,w,G,k,b,O,e){this.j.Zb(q,a,w,G,k,b,O,e)}; g.C.Zm=function(q){return this.j.Zm(q)}; g.C.finishSegmentByCpn=function(q,a,w){w=CGJ(w);this.j.finishSegmentByCpn(q,a,w)};g.Z(Ff,g.c);g.Z(Ell,g.c);g.Z(VyK,g.c);g.Z(JmV,g.c);g.Z(mmK,g.c);g.Z(Q_7,g.c);g.Z(xmc,g.c);xmc.prototype.W=function(){return this.U};g.Z(Llc,He); Llc.prototype.W=function(q){var a=q.content;if(a.componentType==="shopping-companion")switch(q.actionType){case 1:case 2:q=this.V.getVideoData(1);this.V.zl("updateKevlarOrC3Companion",{contentVideoId:q&&q.videoId,shoppingCompanionCarouselRenderer:a.renderer,layoutId:a.layoutId,macros:a.macros,onLayoutVisibleCallback:a.V,interactionLoggingClientData:a.interactionLoggingClientData});break;case 3:this.V.zl("updateKevlarOrC3Companion",{})}else if(a.componentType==="action-companion")switch(q.actionType){case 1:case 2:q=this.V.getVideoData(1); this.V.zl("updateKevlarOrC3Companion",{contentVideoId:q&&q.videoId,actionCompanionAdRenderer:a.renderer,layoutId:a.layoutId,macros:a.macros,onLayoutVisibleCallback:a.V,interactionLoggingClientData:a.interactionLoggingClientData});break;case 3:a.renderer&&(a=this.V.getVideoData(1),this.V.zl("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId})),this.V.zl("updateKevlarOrC3Companion",{})}else if(a.componentType==="image-companion")switch(q.actionType){case 1:case 2:q=this.V.getVideoData(1);this.V.zl("updateKevlarOrC3Companion", {contentVideoId:q&&q.videoId,imageCompanionAdRenderer:a.renderer,layoutId:a.layoutId,macros:a.macros,onLayoutVisibleCallback:a.V,interactionLoggingClientData:a.interactionLoggingClientData});break;case 3:a=this.V.getVideoData(1),this.V.zl("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId}),this.V.zl("updateKevlarOrC3Companion",{})}else if(a.componentType==="top-banner-image-text-icon-buttoned")switch(q.actionType){case 1:case 2:q=this.V.getVideoData(1);this.V.zl("updateKevlarOrC3Companion", {contentVideoId:q&&q.videoId,topBannerImageTextIconButtonedLayoutViewModel:a.renderer,layoutId:a.layoutId,macros:a.macros,onLayoutVisibleCallback:a.V,interactionLoggingClientData:a.interactionLoggingClientData});break;case 3:a.renderer&&(a=this.V.getVideoData(1),this.V.zl("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId})),this.V.zl("updateKevlarOrC3Companion",{})}else if(a.componentType==="banner-image")switch(q.actionType){case 1:case 2:q=this.V.getVideoData(1);this.V.zl("updateKevlarOrC3Companion", {contentVideoId:q&&q.videoId,bannerImageLayoutViewModel:a.renderer,layoutId:a.layoutId,macros:a.macros,onLayoutVisibleCallback:a.V,interactionLoggingClientData:a.interactionLoggingClientData});break;case 3:a=this.V.getVideoData(1),this.V.zl("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId}),this.V.zl("updateKevlarOrC3Companion",{})}else if(a.componentType==="ads-engagement-panel")switch(a=a.renderer,q.actionType){case 1:case 2:this.V.zl("updateEngagementPanelAction",a.addAction);this.V.zl("changeEngagementPanelVisibility", a.expandAction);break;case 3:this.V.zl("changeEngagementPanelVisibility",a.hideAction),this.V.zl("updateEngagementPanelAction",a.removeAction)}else if(a.componentType==="ads-engagement-panel-layout"){var w=a.renderer;switch(q.actionType){case 1:case 2:this.V.zl("updateEngagementPanelAction",{action:BC(w.addAction),layoutId:a.layoutId,onLayoutVisibleCallback:a.V,interactionLoggingClientData:a.interactionLoggingClientData});this.V.zl("changeEngagementPanelVisibility",BC(w.expandAction));break;case 3:this.V.zl("changeEngagementPanelVisibility", BC(w.hideAction)),this.V.zl("updateEngagementPanelAction",{action:BC(w.removeAction)})}}};g.Z(Bc7,uv);g.C=Bc7.prototype;g.C.init=function(q,a,w){uv.prototype.init.call(this,q,a,w);g.IR(this.W,"stroke-dasharray","0 "+this.U);this.W.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.L.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.Y.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; g.C.clear=function(){this.hide()}; g.C.hide=function(){ve(this);uv.prototype.hide.call(this)}; g.C.show=function(){ty(this);uv.prototype.show.call(this)}; g.C.hZ=function(){this.hide()}; g.C.lr=function(){if(this.V){var q=this.V.getProgressState();q!=null&&q.current!=null&&g.IR(this.W,"stroke-dasharray",q.current/q.seekableEnd*this.U+" "+this.U)}};g.Z(rmI,kp);g.C=rmI.prototype; g.C.init=function(q,a,w){kp.prototype.init.call(this,q,a,w);if(a.image&&a.image.thumbnail)if(a.headline)if(a.description)if(a.backgroundImage&&a.backgroundImage.thumbnail)if(a.actionButton&&g.I(a.actionButton,g.e9))if(q=a.durationMilliseconds||0,typeof q!=="number"||q<=0)g.mQ(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+q));else if(a.navigationEndpoint){var G=this.api.getVideoData(2);if(G!=null){var k=a.image.thumbnail.thumbnails;k!=null&& k.length>0&&g.rn(g.nS(k[0].url))&&(k[0].url=G.profilePicture,g.rn(g.nS(G.profilePicture))&&oGj("VideoPlayer",239976093,"Expected non-empty profile picture."));k=a.backgroundImage.thumbnail.thumbnails;k!=null&&k.length>0&&g.rn(g.nS(k[0].url))&&(k[0].url=G.Wm());k=a.headline;k!=null&&g.rn(g.nS(k.text))&&(k.text=G.author)}this.J.init(D1("ad-image"),a.image,w);this.L.init(D1("ad-text"),a.headline,w);this.W.init(D1("ad-text"),a.description,w);this.le.init(D1("ad-image"),a.backgroundImage,w);G=["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.L.element.classList.add("ytp-ad-action-interstitial-headline-light");this.W.element.classList.add("ytp-ad-action-interstitial-description-light");G.push("ytp-ad-action-interstitial-action-button-dark");this.api.B().U&&(G.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),G.push("ytp-ad-action-interstitial-action-button-dark"));this.api.B().T("enable_unified_action_endcap_on_web")&& !this.api.B().U&&(G.push("ytp-ad-action-interstitial-action-button-unified"),this.h2.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.J.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.BT.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.ly.classList.add("ytp-ad-action-interstitial-card-unified"),this.UK.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.W.element.classList.add("ytp-ad-action-interstitial-description-unified"), this.f7.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.L.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.L7.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.Tl.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new Q0(this.api,this.layoutId,this.interactionLoggingClientData,this.PT,G);g.p(this,this.actionButton);this.actionButton.HT(this.h2); this.actionButton.init(D1("button"),g.I(a.actionButton,g.e9),w);cv(this.actionButton.element);G=X0(this.actionButton.element);U5(this.actionButton.element,G+" This link opens in new tab");this.navigationEndpoint=a.navigationEndpoint;this.Y.C(this.L7,"click",this.cR,this);this.Y.C(this.UK,"click",this.cR,this);!this.api.B().T("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.B().U||this.Y.C(this.f7,"click",this.cR,this);this.V=this.W6?new dQ(this.api,q):new Tj(q);g.p(this,this.V);if(a.skipButton){(q= g.I(a.skipButton,XS8))&&this.V&&(this.skipButton=new lc(this.api,this.layoutId,this.interactionLoggingClientData,this.PT,this.V,this.YH),g.p(this,this.skipButton),this.skipButton.HT(this.element),this.skipButton.init(D1("skip-button"),q,w));if(w=a.adBadgeRenderer)if(w=g.I(w,UOl))q=new PA(this.api,this.layoutId,this.interactionLoggingClientData,this.PT,!0,!0),q.HT(this.Tl),q.init(D1("simple-ad-badge"),w,this.macros),g.p(this,q);if(w=a.adInfoRenderer)if(w=g.I(w,Om))q=new jV(this.api,this.layoutId,this.interactionLoggingClientData, this.PT,this.element,void 0,!0),q.HT(this.Tl),q.init(D1("ad-info-hover-text-button"),w,this.macros),g.p(this,q)}else a.nonskippableOverlayRenderer&&(q=g.I(a.nonskippableOverlayRenderer,lU))&&this.V&&(this.U=new We(this.api,this.layoutId,this.interactionLoggingClientData,this.PT,this.V,!1),g.p(this,this.U),this.U.HT(this.element),this.U.init(D1("ad-preview"),q,w));a.countdownRenderer&&(a=a.countdownRenderer,g.I(a,jsR)&&this.V&&(w=new Bc7(this.api,this.layoutId,this.interactionLoggingClientData,this.PT, this.V),g.p(this,w),w.HT(this.element),w.init(D1("timed-pie-countdown"),g.I(a,jsR),this.macros)));this.show();this.element.focus()}else g.mQ(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.mQ(Error("AdActionInterstitialRenderer has no button."));else g.mQ(Error("AdActionInterstitialRenderer has no background AdImage."));else g.mQ(Error("AdActionInterstitialRenderer has no description AdText."));else g.mQ(Error("AdActionInterstitialRenderer has no headline AdText."));else g.mQ(Error("AdActionInterstitialRenderer has no image."))}; g.C.clear=function(){g.JE(this.Y);this.hide()}; g.C.show=function(){nl7(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.U&&this.U.show();kp.prototype.show.call(this)}; g.C.hide=function(){nl7(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.U&&this.U.hide();kp.prototype.hide.call(this)}; g.C.cR=function(){this.navigationEndpoint&&(this.layoutId?this.PT.executeCommand(this.navigationEndpoint,this.layoutId):g.mQ(Error("Missing layoutId for ad action interstitial.")))};var HKl={iconType:"CLOSE"},VS=new g.t7(320,63);g.Z(fcw,kp);g.C=fcw.prototype; g.C.init=function(q,a,w){kp.prototype.init.call(this,q,a,w);this.Y=a;this.J=g.nw(this.Y.onClickCommands||[]);this.Tl=this.Y.onErrorCommand||null;if(q=this.Y.contentSupportedRenderer)q=this.Y.contentSupportedRenderer,a=this.Y.adInfoRenderer||null,g.I(q,HSB)?(this.L=g.lh("ytp-ad-overlay-ad-info-button-container",this.W.element),cmJ(this,a),q=UmV(this,g.I(q,HSB))):g.I(q,c7y)?(this.L=g.lh("ytp-ad-overlay-ad-info-button-container",this.U.element),cmJ(this,a),q=XJl(this,g.I(q,c7y))):g.I(q,pSU)?(this.L= g.lh("ytp-ad-overlay-ad-info-button-container",this.V.element),cmJ(this,a),q=j_K(this,g.I(q,pSU))):(g.mQ(Error("InvideoOverlayAdRenderer content could not be initialized.")),q=!1);q&&(this.show(),ol6(this,!0))}; g.C.clear=function(){ol6(this,!1);this.L7.reset();this.UK=0;this.W.hide();this.logVisibility(this.W.element,!1);this.U.hide();this.logVisibility(this.U.element,!1);this.V.hide();this.logVisibility(this.V.element,!1);this.hide();this.dispose()}; g.C.R97=function(){this.h2&&(this.layoutId?this.PT.executeCommand(this.h2,this.layoutId):g.mQ(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.C.If=function(){a:{if(this.Y&&this.Y.closeButton&&this.Y.closeButton.buttonRenderer){var q=this.Y.closeButton.buttonRenderer;if(q.serviceEndpoint){q=[q.serviceEndpoint];break a}}q=[]}q=g.V(q);for(var a=q.next();!a.done;a=q.next())a=a.value,this.layoutId?this.PT.executeCommand(a,this.layoutId):g.mQ(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; g.C.N8T=function(){this.le||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.C.vk=function(){this.le||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.vk("invideo-overlay")}; g.C.wTe=function(q){q.target===this.L&&g.lh("ytp-ad-button",this.BT.element).click()};g.Z(Icl,uv);g.C=Icl.prototype;g.C.init=function(q,a,w){uv.prototype.init.call(this,q,a,w);q=a.durationMs;this.W=q==null||q===0?0:q+this.V.getProgressState().current*1E3;if(a.text)var G=a.text.templatedAdText;else a.staticMessage&&(G=a.staticMessage);this.messageText.init(D1("ad-text"),G,w);this.messageText.HT(this.U.element);this.Y.show(100);this.show()}; g.C.clear=function(){this.hide()}; g.C.hide=function(){uUe(this,!1);uv.prototype.hide.call(this);this.U.hide();this.messageText.hide();ve(this)}; g.C.show=function(){uUe(this,!0);uv.prototype.show.call(this);ty(this);this.U.show();this.messageText.show()}; g.C.hZ=function(){this.hide()}; g.C.lr=function(){if(this.V!=null){var q=this.V.getProgressState();q!=null&&q.current!=null&&(q=1E3*q.current,!this.UK&&q>=this.W?(this.Y.hide(),this.UK=!0):this.messageText&&this.messageText.isTemplated()&&(q=Math.max(0,Math.ceil((this.W-q)/1E3)),q!==this.L&&(Ix(this.messageText,{TIME_REMAINING:String(q)}),this.L=q)))}};g.Z(tyc,kp);g.C=tyc.prototype; g.C.init=function(q,a,w){kp.prototype.init.call(this,q,a,{});a.image&&a.image.thumbnail?a.headline?a.description?a.actionButton&&g.I(a.actionButton,g.e9)?(this.W.init(D1("ad-image"),a.image,w),this.U.init(D1("ad-text"),a.headline,w),this.Y.init(D1("ad-text"),a.description,w),this.actionButton=new Q0(this.api,this.layoutId,this.interactionLoggingClientData,this.PT,["ytp-ad-underlay-action-button"]),a.backgroundColor&&g.IR(this.element,"background-color",g.rQ(a.backgroundColor)),g.p(this,this.actionButton), this.actionButton.HT(this.L),this.actionButton.init(D1("button"),g.I(a.actionButton,g.e9),w),q=g.Wo(this.api.B().experiments,"player_underlay_video_width_fraction"),this.api.B().T("place_shrunken_video_on_left_of_player")?(a=this.V,g.wU(a,"ytp-ad-underlay-left-container"),g.gU(a,"ytp-ad-underlay-right-container"),g.IR(this.V,"margin-left",Math.round((q+.02)*100)+"%")):(a=this.V,g.wU(a,"ytp-ad-underlay-right-container"),g.gU(a,"ytp-ad-underlay-left-container")),g.IR(this.V,"width",Math.round((1-q- .04)*100)+"%"),this.api.jg()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.nA.bind(this)),this.api.addEventListener("resize",this.XZ.bind(this))):g.mQ(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.mQ(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.mQ(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.mQ(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.C.show=function(){vly(!0);this.actionButton&&this.actionButton.show();kp.prototype.show.call(this)}; g.C.hide=function(){vly(!1);this.actionButton&&this.actionButton.hide();kp.prototype.hide.call(this)}; g.C.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.nA.bind(this));this.api.removeEventListener("resize",this.XZ.bind(this));this.hide()}; g.C.onClick=function(q){kp.prototype.onClick.call(this,q);this.actionButton&&g.ZM(this.actionButton.element,q.target)&&this.api.pauseVideo()}; g.C.nA=function(q){q==="transitioning"?(this.V.classList.remove("ytp-ad-underlay-clickable"),this.show()):q==="visible"?this.V.classList.add("ytp-ad-underlay-clickable"):q==="hidden"&&(this.hide(),this.V.classList.remove("ytp-ad-underlay-clickable"))}; g.C.XZ=function(q){q.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):q.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.IR(this.U.element,"font-size",q.width/40+"px")};g.Z(Jb,kp); Jb.prototype.init=function(q,a,w){kp.prototype.init.call(this,q,a,w);a.toggledLoggingParams&&(this.toggledLoggingParams=a.toggledLoggingParams);a.answer&&g.I(a.answer,g.e9)?(q=new Q0(this.api,this.layoutId,this.interactionLoggingClientData,this.PT,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),q.HT(this.answer),q.init(D1("ytp-ad-survey-answer-button"),g.I(a.answer,g.e9),w),q.show()):a.answer&&g.I(a.answer,EJ)&&(this.V=new SV(this.api,this.layoutId,this.interactionLoggingClientData,this.PT, ["ytp-ad-survey-answer-toggle-button"]),this.V.HT(this.answer),g.p(this,this.V),this.V.init(D1("survey-answer-button"),g.I(a.answer,EJ),w));this.show()}; Jb.prototype.Im=function(q){this.layoutId?BT(this.PT,q,this.layoutId,this.macros):(q=new g.UH("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.mQ(q))}; Jb.prototype.onClick=function(q){kp.prototype.onClick.call(this,q);if(this.api.B().T("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; Jb.prototype.clear=function(){this.hide()};g.Z(zNJ,kp);zNJ.prototype.init=function(q,a,w){kp.prototype.init.call(this,q,a,w);a.answer&&g.I(a.answer,EJ)&&(this.button=new SV(this.api,this.layoutId,this.interactionLoggingClientData,this.PT,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.HT(this.V),this.button.init(D1("survey-none-of-the-above-button"),g.I(a.answer,EJ),w));this.show()};g.Z(mR,Q0);mR.prototype.init=function(q,a,w){Q0.prototype.init.call(this,q,a,w);q=!1;a.text&&(a=g.OE(a.text),q=!g.rn(a));q||g.Qa(Error("No submit text was present in the renderer."))}; mR.prototype.onClick=function(q){this.publish("l");Q0.prototype.onClick.call(this,q)};g.Z(QS,kp); QS.prototype.init=function(q,a,w){kp.prototype.init.call(this,q,a,w);if(q=a.skipOrPreviewRenderer)g.I(q,h9)?(q=g.I(q,h9),w=new Nk(this.api,this.layoutId,this.interactionLoggingClientData,this.PT,this.Y,!0),w.HT(this.skipOrPreview),w.init(D1("skip-button"),q,this.macros),g.p(this,w),this.V=w):g.I(q,lU)&&(q=g.I(q,lU),w=new We(this.api,this.layoutId,this.interactionLoggingClientData,this.PT,this.Y,!1),w.HT(this.skipOrPreview),w.init(D1("ad-preview"),q,this.macros),w.UK.show(100),w.show(),g.p(this,w), this.V=w);this.V==null&&(q=Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(a)),g.mQ(q));a.submitButton&&(q=a.submitButton,g.I(q,g.e9)&&(q=g.I(q,g.e9),w=new mR(this.api,this.layoutId,this.interactionLoggingClientData,this.PT),w.HT(this.submitButton),w.init(D1("survey-submit"),q,this.macros),g.p(this,w),this.U=w));if(q=a.adBadgeRenderer)q=g.I(q,UOl),w=new PA(this.api,this.layoutId,this.interactionLoggingClientData,this.PT,!0,!0,!0),w.HT(this.W),w.init(D1("simple-ad-badge"), q,this.macros),this.adBadge=w.element,g.p(this,w);if(q=a.adDurationRemaining)q=g.I(q,hpU),w=new F9(this.api,this.layoutId,this.interactionLoggingClientData,this.PT,this.Y,void 0,!0),w.HT(this.W),w.init(D1("ad-duration-remaining"),q,this.macros),g.p(this,w);(a=a.adInfoRenderer)&&g.I(a,Om)&&(q=new jV(this.api,this.layoutId,this.interactionLoggingClientData,this.PT,this.element,void 0,!0),g.p(this,q),this.adBadge!==void 0?this.W.insertBefore(q.element,this.adBadge.nextSibling):q.HT(this.W),q.init(D1("ad-info-hover-text-button"), g.I(a,Om),this.macros));this.show()}; QS.prototype.clear=function(){this.hide()};g.Z(Ab,kp);Ab.prototype.init=function(q,a,w){kp.prototype.init.call(this,q,a,w);yme(this)}; Ab.prototype.show=function(){this.W=Date.now();kp.prototype.show.call(this)}; Ab.prototype.YQ=function(){};g.Z(q6V,Ab);g.C=q6V.prototype;g.C.init=function(q,a,w){var G=this;Ab.prototype.init.call(this,q,a,w);a.questionText&&iKK(this,a.questionText);a.answers&&a.answers.forEach(function(k,b){g.I(k,C4)&&Wlw(G,g.I(k,C4),w,b)}); this.L=new Set(this.U.map(function(k){return k.V.V})); (q=a.noneOfTheAbove)&&(q=g.I(q,fvl))&&gcw(this,q,w);a.surveyAdQuestionCommon&&RNJ(this,a.surveyAdQuestionCommon);a.submitEndpoints&&(this.submitEndpoints=a.submitEndpoints);this.C(this.element,"change",this.onChange);this.show()}; g.C.YQ=function(){a7w(this,!1);this.Y.U.subscribe("l",this.jAQ,this)}; g.C.onChange=function(q){q.target===this.noneOfTheAbove.button.V?wRI(this):this.L.has(q.target)&&(this.noneOfTheAbove.button.toggleButton(!1),a7w(this,!0))}; g.C.jAQ=function(){var q=[],a=this.U.reduce(function(k,b,O){var e=b.toggledLoggingParams;b.V&&b.V.isToggled()&&e&&(k.push(e),q.push(O));return k},[]).join("&"),w=this.submitEndpoints.map(function(k){if(!k.loggingUrls)return k; k=g.s7(k);k.loggingUrls=k.loggingUrls.map(function(b){b.baseUrl&&(b.baseUrl=FR(b.baseUrl,a));return b}); return k}); if(w){w=g.V(w);for(var G=w.next();!G.done;G=w.next())G=G.value,this.layoutId?BT(this.PT,G,this.layoutId,this.macros):g.mQ(Error("Missing layoutId for multi_select_question."))}this.api.B().T("supports_multi_step_on_desktop")&&this.UK(q)}; g.C.clear=function(){this.api.B().T("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.Z(xC,Ab);xC.prototype.init=function(q,a,w){var G=this;Ab.prototype.init.call(this,q,a,w);a.questionText&&iKK(this,a.questionText);a.answers&&a.answers.forEach(function(k,b){g.I(k,C4)&&Wlw(G,g.I(k,C4),w,b)}); a.surveyAdQuestionCommon?RNJ(this,a.surveyAdQuestionCommon):gw(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(a)));this.show()}; xC.prototype.clear=function(){this.api.B().T("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.Z(L9,kp);L9.prototype.init=function(q,a,w){var G=this;kp.prototype.init.call(this,q,a,w);if(this.api.B().T("supports_multi_step_on_desktop")){var k;this.conditioningRules=(k=a.conditioningRules)!=null?k:[];var b;this.U=(b=a.questions)!=null?b:[];var O;((O=a.questions)==null?0:O.length)&&Owy(this,0)}else(a.questions||[]).forEach(function(e){g.I(e,kB)?kJe(G,g.I(e,kB),w):g.I(e,GK)&&bwB(G,g.I(e,GK),w)}); this.show()}; L9.prototype.clear=function(){this.api.B().T("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; L9.prototype.Y=function(q){var a=this;if(this.api.B().T("supports_multi_step_on_desktop")){var w;if((w=this.conditioningRules)==null?0:w.length){var G;if(q.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(k){return k.questionIndex===a.V})==null)g.mQ(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(function(k){if(k.questionIndex===a.V)switch(k.condition){case "CONDITION_ALL_OF":var b;if((b=k.answerIndices)==null?0:b.every(function(e){return q.includes(e)}))G=k.nextQuestionIndex; break;case "CONDITION_ANY_OF":var O;if((O=k.answerIndices)==null?0:O.some(function(e){return q.includes(e)}))G=k.nextQuestionIndex; break;default:g.mQ(Error("Expected specified condition in survey conditioning rules."))}}),G!=null)Owy(this,G); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.mQ(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.Z(BK,kp); BK.prototype.init=function(q,a,w){var G=this;kp.prototype.init.call(this,q,a,w);q=a.timeoutSeconds||0;if(typeof q!=="number"||q<0)g.mQ(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+q));else if(a.timeoutCommands)if(a.text)if(a.ctaButton&&g.I(a.ctaButton,g.e9))if(a.brandImage)if(a.backgroundImage&&g.I(a.backgroundImage,Nv)&&g.I(a.backgroundImage,Nv).landscape){this.layoutId||g.mQ(Error("Missing layoutId for survey interstitial."));l7y(this.interstitial,g.I(a.backgroundImage, Nv).landscape);l7y(this.logoImage,a.brandImage);g.EN(this.text,g.OE(a.text));var k=["ytp-ad-survey-interstitial-action-button"];k.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new Q0(this.api,this.layoutId,this.interactionLoggingClientData,this.PT,k);g.p(this,this.actionButton);this.actionButton.HT(this.U);this.actionButton.init(D1("button"),g.I(a.ctaButton,g.e9),w);this.actionButton.show();this.V=new dQ(this.api,q*1E3);this.V.subscribe("g",function(){G.transition.hide()}); g.p(this,this.V);this.C(this.element,"click",function(b){var O=b.target===G.interstitial;b=G.actionButton.element.contains(b.target);if(O||b)if(G.transition.hide(),O)G.api.onAdUxClicked(G.componentType,G.layoutId)}); this.transition.show(100)}else g.mQ(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.mQ(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.mQ(Error("SurveyTextInterstitialRenderer has no button."));else g.mQ(Error("SurveyTextInterstitialRenderer has no text."));else g.mQ(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; BK.prototype.clear=function(){this.hide()}; BK.prototype.show=function(){eIw(!0);kp.prototype.show.call(this)}; BK.prototype.hide=function(){eIw(!1);kp.prototype.hide.call(this)};g.Z(rN,uv);g.C=rN.prototype; g.C.init=function(q,a){uv.prototype.init.call(this,q,a,{});if(a.durationMilliseconds){if(a.durationMilliseconds<0){g.mQ(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+a.durationMilliseconds));return}this.U=a.durationMilliseconds}else this.U=this.V.zt();var w;if((w=a.previewText)==null||!w.text||g.rn(a.previewText.text))g.mQ(Error("No text is returned for AdPreview."));else{this.L=a.previewText;a.previewText.isTemplated||g.EN(this.W,a.previewText.text);var G; if(((G=this.api.getVideoData(1))==null?0:G.ZO)&&a.previewImage){var k,b;(q=((b=eT(((k=a.previewImage)==null?void 0:k.sources)||[],52,!1))==null?void 0:b.url)||"")&&q.length?(this.previewImage=new g.Gs({G:"img",N:"ytp-preview-ad__image",Z:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",q),g.p(this,this.previewImage),this.previewImage.HT(this.element)):g.mQ(Error("Failed to get imageUrl in AdPreview."))}else this.W.classList.add("ytp-preview-ad__text--padding--wide")}}; g.C.clear=function(){this.hide()}; g.C.hide=function(){ve(this);uv.prototype.hide.call(this)}; g.C.show=function(){ty(this);uv.prototype.show.call(this)}; g.C.hZ=function(){this.hide()}; g.C.lr=function(){if(this.V){var q=this.V.getProgressState();if(q!=null&&q.current)if(q=1E3*q.current,q>=this.U)this.transition.hide();else{var a;if((a=this.L)==null?0:a.isTemplated)if(a=Math.max(0,Math.ceil((this.U-q)/1E3)),a!==this.Y){var w,G;(q=(w=this.L)==null?void 0:(G=w.text)==null?void 0:G.replace("{TIME_REMAINING}",String(a)))&&g.EN(this.W,q);this.Y=a}}}};g.Z(n9,kp); n9.prototype.init=function(q,a){kp.prototype.init.call(this,q,a,{});var w,G;if((q=((G=eT(((w=a.image)==null?void 0:w.sources)||[],Ny7(a),!0))==null?void 0:G.url)||"")&&q.length){w=this.oW("ytp-ad-avatar");w.src=q;var k,b;if(G=(k=a.interaction)==null?void 0:(b=k.accessibility)==null?void 0:b.label)w.alt=G;switch(a.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(a.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.mQ(Error("Failed to get imageUrl in AdAvatar."))}; n9.prototype.clear=function(){this.hide()}; n9.prototype.onClick=function(q){kp.prototype.onClick.call(this,q)};g.Z(Mn,kp); Mn.prototype.init=function(q,a){kp.prototype.init.call(this,q,a,{});var w;q=(w=a.label)==null?void 0:w.content;if((w=q!=null&&!g.rn(q))||a.iconImage){w&&(this.buttonText=new g.Gs({G:"span",N:"ytp-ad-button-vm__text",ue:q}),g.p(this,this.buttonText),this.buttonText.HT(this.element));var G,k,b=((G=a.interaction)==null?0:(k=G.accessibility)==null?0:k.label)||w?q:"";b&&U5(this.element,b+" This link opens in new tab");cv(this.element);if(a.iconImage){G=void 0;if(a.iconImage){a:{k=a.iconImage;if(k.sources)for(k= g.V(k.sources),q=k.next();!q.done;q=k.next())if(q=q.value,b=void 0,(b=q.clientResource)==null?0:b.imageName){k=q;break a}k=void 0}if(k){var O;G={iconType:(O=k.clientResource)==null?void 0:O.imageName}}}O=mx(G,!1,this.U);O!=null&&(this.buttonIcon=new g.Gs({G:"span",N:"ytp-ad-button-vm__icon",K:[O]}),g.p(this,this.buttonIcon),a.iconLeading?(Fr(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):w?(this.buttonIcon.HT(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): (this.buttonIcon.HT(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(a.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.api.T("delhi_modern_web_player")?this.element.classList.add("ytp-ad-button-vm--style-filled-white"):this.element.classList.add(this.V?"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(a.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.Qa(Error("AdButton does not have label or an icon."))}; Mn.prototype.clear=function(){this.hide()}; Mn.prototype.onClick=function(q){kp.prototype.onClick.call(this,q)};g.Z(Y6c,uv);g.C=Y6c.prototype; g.C.init=function(q,a){uv.prototype.init.call(this,q,a,{});if(q=g.I(a.avatar,o8)){var w=a.headline;if(w){var G=a.description;if(G){var k=g.I(a.button,u7);k?(this.adAvatar.init(D1("ad-avatar"),q),this.headline.init(D1("ad-simple-attributed-string"),new ZR(w)),this.description.init(D1("ad-simple-attributed-string"),new ZR(G)),w.content&&w.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"),this.adButton.init(D1("ad-button"),k), this.startMilliseconds=a.startMs||0,this.api.jg()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.MU.bind(this)),ty(this)):g.mQ(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.mQ(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.mQ(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.mQ(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; g.C.lr=function(){if(this.V){var q=this.V.getProgressState();q&&q.current&&1E3*q.current>=this.startMilliseconds&&(ve(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.C.hZ=function(){this.clear()}; g.C.onClick=function(q){this.api.pauseVideo();uv.prototype.onClick.call(this,q)}; g.C.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.MU.bind(this))}; g.C.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();uv.prototype.show.call(this)}; g.C.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();uv.prototype.hide.call(this)}; g.C.MU=function(q){q==="hidden"?this.show():this.hide()};g.Z(Sj,kp);g.C=Sj.prototype; g.C.init=function(q,a){kp.prototype.init.call(this,q,a,{});if(!a.label||g.rn(a.label))g.mQ(Error("No label is returned for SkipAdButton."));else if(g.EN(this.Y,a.label),q=mx({iconType:"SKIP_NEXT_NEW"}),q==null)g.mQ(Error("Unable to retrieve icon for SkipAdButton"));else if(this.W=new g.Gs({G:"span",N:"ytp-skip-ad-button__icon",K:[q]}),g.p(this,this.W),this.W.HT(this.element),this.api.B().experiments.Zh("enable_skip_to_next_messaging")&&(a=g.nS(a.targetId)))this.U=!0,this.element.setAttribute("data-tooltip-target-id",a), this.element.setAttribute("data-tooltip-target-fixed","")}; g.C.onClick=function(q){q&&q.preventDefault();var a,w;g7G(q,{contentCpn:(w=(a=this.api.getVideoData(1))==null?void 0:a.clientPlaybackNonce)!=null?w:""})===0?this.api.zl("onAbnormalityDetected"):(kp.prototype.onClick.call(this,q),this.api.zl("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; g.C.clear=function(){this.V.reset();this.hide()}; g.C.hide=function(){kp.prototype.hide.call(this)}; g.C.show=function(){this.V.start();kp.prototype.show.call(this);this.U&&this.api.B().experiments.Zh("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.Z(PV6,uv);g.C=PV6.prototype; g.C.init=function(q,a){uv.prototype.init.call(this,q,a,{});q=g.I(a.preskipState,iSl);var w;if((w=this.api.getVideoData())==null?0:w.isDaiEnabled()){if(!q){g.mQ(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.U=new rN(this.api,this.layoutId,this.interactionLoggingClientData,this.PT,this.V);g.p(this,this.U);this.U.HT(this.element);var G;(G=this.U)==null||G.init(D1("preview-ad"),q);(w=this.U)!=null&&(w.transition.show(100),w.show())}(w=g.I(a.skippableState,DOe))?(a.skipOffsetMilliseconds!= null?this.skipOffsetMilliseconds=a.skipOffsetMilliseconds:(g.Qa(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.W.init(D1("skip-button"),w),this.show()):g.mQ(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; g.C.show=function(){ty(this);uv.prototype.show.call(this)}; g.C.hide=function(){!this.isSkippable&&this.U?this.U.hide():this.W&&this.W.hide();ve(this);uv.prototype.hide.call(this)}; g.C.clear=function(){var q;(q=this.U)==null||q.clear();this.W&&this.W.clear();ve(this);uv.prototype.hide.call(this)}; g.C.hZ=function(){this.hide()}; g.C.lr=function(){if(1E3*this.V.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var q;(q=this.U)!=null&&q.transition.hide();(q=this.W)!=null&&(q.transition.show(),q.show())}};g.Z(f9,kp); f9.prototype.init=function(q,a){kp.prototype.init.call(this,q,a,{});if(a.label){var w;((w=a.label)==null?0:w.content)&&!g.rn(a.label.content)&&(this.linkText=new g.Gs({G:"span",N:"ytp-visit-advertiser-link__text",ue:a.label.content}),g.p(this,this.linkText),this.linkText.HT(this.element));var G,k;if((G=a.interaction)==null?0:(k=G.accessibility)==null?0:k.label)U5(this.element,a.interaction.accessibility.label+" This link opens in new tab");else{var b;((b=a.label)==null?0:b.content)&&!g.rn(a.label.content)&&U5(this.element, a.label.content+" This link opens in new tab")}cv(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.mQ(Error("No label found in VisitAdvertiserLink."))}; f9.prototype.onClick=function(q){kp.prototype.onClick.call(this,q);this.api.onAdUxClicked(this.componentType,this.layoutId)}; f9.prototype.clear=function(){this.hide()};g.Z(HK,kp); HK.prototype.init=function(q,a,w,G){kp.prototype.init.call(this,q,a,{});if(a.skipOrPreview){w=a.skipOrPreview;q=g.I(w,RpK);w=g.I(w,iSl);if(q)this.Dv=new PV6(this.api,this.layoutId,this.interactionLoggingClientData,this.PT,this.U),g.p(this,this.Dv),this.Dv.HT(this.J),this.Dv.init(D1("skip-ad"),q);else{var k;w&&((k=this.api.getVideoData())==null?0:k.isDaiEnabled())&&(this.Y=new rN(this.api,this.layoutId,this.interactionLoggingClientData,this.PT,this.U,1),g.p(this,this.Y),this.Y.HT(this.J),this.Y.init(D1("ad-preview"), w),k=this.Y,k.transition.show(100),k.show())}if(k=g.I(a.skipOrPreview,RpK))var b=k.skipOffsetMilliseconds}a.playerAdCard&&(k=g.I(a.playerAdCard,W_B))&&(this.playerAdCard=new Y6c(this.api,this.layoutId,this.interactionLoggingClientData,this.PT,this.U),g.p(this,this.playerAdCard),this.playerAdCard.HT(this.f7),this.playerAdCard.init(D1("ad-avatar-lockup-card"),k));a.adBadgeRenderer&&((k=g.I(a.adBadgeRenderer,I8))?(this.W=new Vc(this.api,this.layoutId,this.interactionLoggingClientData,this.PT,!0),g.p(this, this.W),this.W.HT(this.V),this.W.init(D1("ad-badge"),k)):g.mQ(Error("AdBadgeViewModel is not found in player overlay layout.")));a.adPodIndex&&(k=g.I(a.adPodIndex,u1y))&&(this.adPodIndex=new JI(this.api,this.layoutId,this.interactionLoggingClientData,this.PT),g.p(this,this.adPodIndex),this.adPodIndex.HT(this.V),this.adPodIndex.init(D1("ad-pod-index"),k));a.adInfoRenderer&&((k=g.I(a.adInfoRenderer,Om))?(this.adInfoButton=new jV(this.api,this.layoutId,this.interactionLoggingClientData,this.PT,this.element, void 0,!0),g.p(this,this.adInfoButton),this.W!==void 0?this.V.insertBefore(this.adInfoButton.element,this.W.element.nextSibling):this.adInfoButton.HT(this.V),this.adInfoButton.init(D1("ad-info-hover-text-button"),k,this.macros)):g.Qa(Error("AdInfoRenderer is not found in player overlay layout.")));var O;k=(O=this.api.getVideoData())==null?void 0:O.isDaiEnabled();a.adDurationRemaining&&k&&(O=g.I(a.adDurationRemaining,hpU))&&(this.adDurationRemaining=new F9(this.api,this.layoutId,this.interactionLoggingClientData, this.PT,this.U,G.videoAdDurationSeconds,!0),g.p(this,this.adDurationRemaining),this.adPodIndex!==void 0?this.V.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adDurationRemaining.HT(this.V),this.adDurationRemaining.init(D1("ad-duration-remaining"),O,this.macros),this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));a.visitAdvertiserLink&&(G=g.I(a.visitAdvertiserLink,qNR))&&(this.visitAdvertiserLink=new f9(this.api,this.layoutId, this.interactionLoggingClientData,this.PT),g.p(this,this.visitAdvertiserLink),this.visitAdvertiserLink.HT(this.V),this.visitAdvertiserLink.init(D1("visit-advertiser-link"),G));a.adDisclosureBanner&&(a=g.I(a.adDisclosureBanner,Iv8))&&(this.adDisclosureBanner=new mz(this.api,this.layoutId,this.interactionLoggingClientData,this.PT),g.p(this,this.adDisclosureBanner),this.adDisclosureBanner.HT(this.UK),this.adDisclosureBanner.init(D1("ad-disclosure-banner"),a));this.L=new xm(this.api,this.U,b,!0);g.p(this, this.L);g.DZ(this.api,this.L.element,4);this.show()}; HK.prototype.clear=function(){this.hide()};g.Z(KUB,kp);g.C=KUB.prototype; g.C.init=function(q,a){kp.prototype.init.call(this,q,a,{});if(a!=null&&a.title)if(q=a.title)if(this.headline.init(D1("ad-simple-attributed-string"),new ZR(q)),q=g.I(a.moreInfoButton,u7)){if(this.moreInfoButton.init(D1("ad-button"),q),a.descriptions)a.descriptions.length>0&&(q=a.descriptions[0])&&(this.V=new Ex(this.api,this.layoutId,this.interactionLoggingClientData,this.PT),g.p(this,this.V),this.V.HT(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.V.init(D1("ad-simple-attributed-string"), new ZR(q))),a.descriptions.length>1&&(a=a.descriptions[1])&&(this.U=new Ex(this.api,this.layoutId,this.interactionLoggingClientData,this.PT),g.p(this,this.U),this.U.HT(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.U.init(D1("ad-simple-attributed-string"),new ZR(a)))}else g.mQ(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.mQ(Error("No headline found in AdGridCardText."));else g.mQ(Error("No headline found in AdGridCardText."))}; g.C.onClick=function(q){kp.prototype.onClick.call(this,q);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.C.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var q;(q=this.V)==null||q.clear();var a;(a=this.U)==null||a.clear()}; g.C.hide=function(){this.headline.hide();this.moreInfoButton.hide();var q;(q=this.V)==null||q.hide();var a;(a=this.U)==null||a.hide();kp.prototype.hide.call(this)}; g.C.show=function(){kp.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var q;(q=this.V)==null||q.show();var a;(a=this.U)==null||a.show()};g.Z(cK,kp);cK.prototype.init=function(q,a){kp.prototype.init.call(this,q,a,{});if(a!=null&&a.gridCards)if(a.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.mQ(Error("Only single column style is currently supported in AdGridCardCollection."));else for(q=g.V(a.gridCards),a=q.next();!a.done;a=q.next()){if(a=g.I(a.value,zpl)){var w=new KUB(this.api,this.layoutId,this.interactionLoggingClientData,this.PT);g.p(this,w);w.HT(this.element);w.init(D1("ad-grid-card-text"),a);this.V.push(w)}}else g.mQ(Error("No grid cards found in AdGridCardCollection."))}; cK.prototype.show=function(){for(var q=g.V(this.V),a=q.next();!a.done;a=q.next())a.value.show();kp.prototype.show.call(this)}; cK.prototype.clear=function(){this.hide();for(var q=g.V(this.V),a=q.next();!a.done;a=q.next())a.value.clear()}; cK.prototype.hide=function(){for(var q=g.V(this.V),a=q.next();!a.done;a=q.next())a.value.hide();kp.prototype.hide.call(this)};g.Z(p9,uv);g.C=p9.prototype;g.C.init=function(q,a,w,G,k){k=k===void 0?0:k;uv.prototype.init.call(this,q,a,w,G);this.playerProgressOffsetMs=k;ty(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.Ud.bind(this));this.api.addEventListener("resize",this.NU.bind(this));this.api.jg()?(this.U=!0,this.api.gF(!0),this.show()):this.hide()}; g.C.lr=function(){if(this.V){var q=this.V.getProgressState();q&&q.current&&!this.U&&1E3*q.current>=this.playerProgressOffsetMs&&(this.U=!0,this.api.gF(!0),this.show())}}; g.C.hZ=function(){this.U&&this.api.gF(!1);this.hide()}; g.C.clear=function(){this.api.gF(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.Ud.bind(this));this.api.removeEventListener("resize",this.NU.bind(this));ve(this);this.hide()}; g.C.hide=function(){deV(!1);uv.prototype.hide.call(this)}; g.C.show=function(){deV(!0);uv.prototype.show.call(this)};g.Z(Ty6,p9);g.C=Ty6.prototype; g.C.init=function(q,a,w,G){if(a!=null&&a.adGridCardCollection)if(a!=null&&a.adButton){var k=Number(a.playerProgressOffsetMs||"0");isNaN(k)?p9.prototype.init.call(this,q,a,w,G):p9.prototype.init.call(this,q,a,w,G,k);q=a.headline;w=g.I(a.adAvatar,o8);q&&w?(this.headline=new Ex(this.api,this.layoutId,this.interactionLoggingClientData,this.PT),g.p(this,this.headline),this.headline.HT(this.oW("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(D1("ad-simple-attributed-string"),new ZR(q)), this.adAvatar=new n9(this.api,this.layoutId,this.interactionLoggingClientData,this.PT),g.p(this,this.adAvatar),this.adAvatar.HT(this.oW("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(D1("ad-avatar"),w)):this.Y.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");q=g.I(a.adGridCardCollection,v1U);this.adGridCardCollection.init(D1("ad-grid-card-collection"),q);a=g.I(a.adButton,u7);this.adButton.init(D1("ad-button"),a); this.hide()}else g.mQ(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.mQ(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; g.C.onClick=function(q){(this.adButton&&g.ZM(this.adButton.element,q.target)||this.adAvatar&&g.ZM(this.adAvatar.element,q.target))&&this.api.pauseVideo();p9.prototype.onClick.call(this,q);this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.C.NU=function(){}; g.C.clear=function(){this.hide();var q;(q=this.headline)==null||q.clear();var a;(a=this.adAvatar)==null||a.clear();this.adGridCardCollection.clear();this.adButton.clear();p9.prototype.clear.call(this)}; g.C.show=function(){var q;(q=this.headline)==null||q.show();var a;(a=this.adAvatar)==null||a.show();this.adGridCardCollection.show();this.adButton.show();p9.prototype.show.call(this)}; g.C.hide=function(){var q;(q=this.headline)==null||q.hide();var a;(a=this.adAvatar)==null||a.hide();this.adGridCardCollection.hide();this.adButton.hide();p9.prototype.hide.call(this)}; g.C.Ud=function(q){q==="transitioning"?(this.W.classList.remove("ytp-ad-underlay-clickable"),this.show()):q==="visible"?this.W.classList.add("ytp-ad-underlay-clickable"):q==="hidden"&&(this.hide(),this.W.classList.remove("ytp-ad-underlay-clickable"))};g.Z(U$,kp); U$.prototype.init=function(q,a){kp.prototype.init.call(this,q,a,{});if(a.attributes===void 0)g.mQ(Error("No attributes found in AdDetailsLineViewModel."));else if(a.style===void 0)g.mQ(Error("No style found in AdDetailsLineViewModel."));else{q=g.V(a.attributes);for(var w=q.next();!w.done;w=q.next())if(w=w.value,w.text!==void 0){w=w.text;var G=a.style,k=new Ex(this.api,this.layoutId,this.interactionLoggingClientData,this.PT);g.p(this,k);k.HT(this.element);a:switch(G){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":G="ytp-ad-details-line__text--style-responsive"; break a;default:G="ytp-ad-details-line__text--style-standard"}k.element.classList.add(G);k.init(D1("ad-simple-attributed-string"),new ZR(w));this.V.push(k)}this.show()}}; U$.prototype.show=function(){this.V.forEach(function(q){q.show()}); kp.prototype.show.call(this)}; U$.prototype.clear=function(){this.hide()}; U$.prototype.hide=function(){this.V.forEach(function(q){q.hide()}); kp.prototype.hide.call(this)};g.Z(Xf,kp);Xf.prototype.init=function(q,a){kp.prototype.init.call(this,q,a,{});var w,G;(q=((G=eT(((w=a.image)==null?void 0:w.sources)||[]))==null?void 0:G.url)||"")&&q.length?(w=this.oW("ytp-image-background-image"),g.IR(w,"backgroundImage","url("+q+")"),a.blurLevel!==void 0&&g.IR(w,"filter","blur("+a.blurLevel+"px)"),a.gradient!==void 0&&(a=new g.u({G:"div",vT:["ytp-image-background--gradient-vertical"]}),g.p(this,a),a.HT(this.element)),this.show()):g.mQ(Error("Failed to get imageUrl in ImageBackground."))}; Xf.prototype.clear=function(){this.hide()};g.Z($eK,uv);g.C=$eK.prototype;g.C.init=function(q,a){uv.prototype.init.call(this,q,a,{});g.IR(this.W,"stroke-dasharray","0 "+this.U);this.show()}; g.C.clear=function(){this.hide()}; g.C.hide=function(){ve(this);uv.prototype.hide.call(this)}; g.C.show=function(){ty(this);uv.prototype.show.call(this)}; g.C.hZ=function(){this.hide()}; g.C.lr=function(){if(this.V){var q=this.V.getProgressState();q!=null&&q.current!=null&&g.IR(this.W,"stroke-dasharray",q.current/q.seekableEnd*this.U+" "+this.U)}};g.Z(jj,kp); jj.prototype.init=function(q,a){kp.prototype.init.call(this,q,a,{});if(FUx(a)){this.adAvatar=new n9(this.api,this.layoutId,this.interactionLoggingClientData,this.PT);g.p(this,this.adAvatar);this.adAvatar.HT(this.oW("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(D1("ad-avatar"),g.I(a.adAvatar,o8));this.headline=new Ex(this.api,this.layoutId,this.interactionLoggingClientData,this.PT);g.p(this,this.headline);this.headline.HT(this.oW("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(D1("ad-simple-attributed-string"),new ZR(a.headline));if(q=g.I(a.adDetailsLine,o1x))this.detailsLine=new U$(this.api,this.layoutId,this.interactionLoggingClientData,this.PT),g.p(this,this.detailsLine),this.detailsLine.HT(this.oW("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(D1("ad-details-line"),q);this.adButton=new Mn(this.api,this.layoutId,this.interactionLoggingClientData,this.PT,!0);g.p(this,this.adButton); this.adButton.HT(this.oW("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(D1("ad-button"),g.I(a.adButton,u7));this.adBadge=new Vc(this.api,this.layoutId,this.interactionLoggingClientData,this.PT,!0);g.p(this,this.adBadge);this.adBadge.HT(this.Y);this.adBadge.init(D1("ad-badge"),g.I(a.adBadge,I8));this.adInfoButton=new jV(this.api,this.layoutId,this.interactionLoggingClientData,this.PT,this.element,void 0,!0);g.p(this,this.adInfoButton);this.adInfoButton.HT(this.Y); this.adInfoButton.init(D1("ad-info-hover-text-button"),g.I(a.adInfoRenderer,Om),this.macros);if(q=g.I(a.skipAdButton,DOe))this.skipAdButton=new Sj(this.api,this.layoutId,this.interactionLoggingClientData,this.PT),g.p(this,this.skipAdButton),this.skipAdButton.HT(this.element),this.skipAdButton.init(D1("skip-button"),q);this.U=new Tj(a.durationMilliseconds);g.p(this,this.U);if(q=g.I(a.countdownViewModel,y7l))this.V=new $eK(this.api,this.layoutId,this.interactionLoggingClientData,this.PT,this.U),g.p(this, this.V),this.V.HT(this.oW("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.V.init(D1("timed-pie-countdown"),q);if(a=g.I(a.imageBackground,tmI))this.imageBackground=new Xf(this.api,this.layoutId,this.interactionLoggingClientData,this.PT),g.p(this,this.imageBackground),this.imageBackground.HT(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init(D1("image-background"), a);this.show();this.element.focus()}}; jj.prototype.clear=function(){g.JE(this.W);this.hide()}; jj.prototype.show=function(){sBV(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();kp.prototype.show.call(this)}; jj.prototype.hide=function(){sBV(!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.V&&this.V.hide();this.imageBackground&&this.imageBackground.hide();kp.prototype.hide.call(this)};g.Z(tb,g.ya);g.C=tb.prototype;g.C.zt=function(){return 1E3*this.api.getDuration(this.zY,!1)}; g.C.stop=function(){this.V&&this.Ia.v5(this.V)}; g.C.EQ=function(){var q=this.api.getProgressState(this.zY);this.U={seekableStart:q.seekableStart,seekableEnd:q.seekableEnd,current:this.api.getCurrentTime(this.zY,!1)};this.publish("h")}; g.C.getProgressState=function(){return this.U}; g.C.f8=function(q){g.Ox(q,2)&&this.publish("g")};var x0B="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.Z(vK,He); vK.prototype.W=function(q){var a=q.id,w=q.content,G=w.componentType;if(!x0B.includes(G))switch(q.actionType){case 1:q=this.api;var k=this.PT,b=w.layoutId,O=w.interactionLoggingClientData,e=w instanceof hQ?w.W6:!1,N=w instanceof hQ||w instanceof Kj?w.YH:!1;O=O===void 0?{}:O;e=e===void 0?!1:e;N=N===void 0?!1:N;switch(G){case "invideo-overlay":q=new fcw(q,b,O,k);break;case "player-overlay":q=new Lj(q,b,O,k,new tb(q),N);break;case "player-overlay-layout":q=new HK(q,b,O,k,new tb(q));break;case "survey":q= new L9(q,b,O,k);break;case "ad-action-interstitial":q=new rmI(q,b,O,k,e,N);break;case "video-interstitial-buttoned-centered":q=new jj(q,b,O,k);break;case "survey-interstitial":q=new BK(q,b,O,k);break;case "ad-message":q=new Icl(q,b,O,k,new tb(q,1));break;case "player-underlay":q=new tyc(q,b,O,k);break;case "display-underlay-text-grid-cards":q=new Ty6(q,b,O,k,new tb(q));break;default:q=null}if(!q){g.Qa(Error("No UI component returned from ComponentFactory for type: "+G));break}g.NW(this.components, a)?g.Qa(Error("Ad UI component already registered: "+a)):this.components[a]=q;q.bind(w);w instanceof nt?this.U?this.U.append(q.Xy):g.Qa(Error("Underlay view was not created but UnderlayRenderer was created")):this.Y.append(q.Xy);break;case 2:a=CVR(this,q);if(a==null)break;a.bind(w);break;case 3:w=CVR(this,q),w!=null&&(g.wB(w),g.NW(this.components,a)?(w=this.components,a in w&&delete w[a]):g.Qa(Error("Ad UI component does not exist: "+a)))}}; vK.prototype.qB=function(){g.Gr(Object.values(this.components));this.components={};He.prototype.qB.call(this)};g.Z(ZwJ,g.md);g.C=ZwJ.prototype;g.C.create=function(){try{EcI(this),this.load(),this.created=!0,EcI(this)}catch(q){Gj(q instanceof Error?q:String(q))}}; g.C.load=function(){try{meK(this)}finally{ie(Zy(this.V).QV)&&this.player.fu("ad",1)}}; g.C.destroy=function(){var q=this.player.getVideoData(1);this.V.V.eX.MQ(q&&q.clientPlaybackNonce||"");this.unload();this.created=!1}; g.C.unload=function(){g.md.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(a){Gj(a instanceof Error?a:String(a))}if(this.U!=null){var q=this.U;this.U=null;q.dispose()}this.W.reset()}; g.C.AZ=function(){return!1}; g.C.getAdState=function(){return-1}; g.C.getOptions=function(){return Object.values(Anx)}; g.C.KW=function(q,a){a=a===void 0?{}:a;switch(q){case "replaceUrlMacros":return q=a,q.url?(a=ohf(this.player),Object.assign(a,q.Bd7),q=g.AD(q.url,a)):q=null,q;case "onAboutThisAdPopupClosed":this.cM(a);break;case "executeCommand":q=a;q.command&&q.layoutId&&this.executeCommand(q);break;default:return null}}; g.C.Gk=function(q){var a;return!((a=this.V.V.wz)==null||!a.get().Gk(q))}; g.C.cM=function(q){q.isMuted&&m9G(Zy(this.V).L3,Zy(this.V).IP,q.layoutId);this.AO&&this.AO.cM()}; g.C.executeCommand=function(q){Zy(this.V).PT.executeCommand(q.command,q.layoutId)};g.qe("yt.player.Application.create",g.Tb.create);g.qe("yt.player.Application.createAlternate",g.Tb.create);Mey(Z1(),QLl);var LC6=g.aB("ytcsi.tick");LC6&&LC6("pe");g.Jq("ad",ZwJ);g.Z(g.WK,g.c);g.WK.prototype.start=function(q,a,w){this.config={from:q,to:a,duration:w,startTime:(0,g.Zj)()};this.next()}; g.WK.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.WK.prototype.next=function(){if(this.config){var q=this.config,a=q.from,w=q.to,G=q.duration;q=q.startTime;var k=(0,g.Zj)()-q;q=this.V;G=X2c(q,k/G);if(G==0)q=q.X;else if(G==1)q=q.S;else{k=os(q.X,q.D,G);var b=os(q.D,q.L,G);q=os(q.L,q.S,G);k=os(k,b,G);b=os(b,q,G);q=os(k,b,G)}q=g.X1(q,0,1);this.callback(a+(w-a)*q);q<1&&this.delay.start()}};g.Z(g.Dy,g.u);g.C=g.Dy.prototype;g.C.hasSuggestions=function(){return this.suggestionData.length>0}; g.C.jw=function(){this.U&&this.scrollTo(this.scrollPosition-this.containerWidth)}; g.C.show=function(){g.u.prototype.show.call(this);rlc(this)}; g.C.Hi=function(){this.U&&this.scrollTo(this.scrollPosition+this.containerWidth)}; g.C.TC=function(){this.sA(this.api.mQ().getPlayerSize())}; g.C.sA=function(q){var a=this.api.isEmbedsShortsMode()?.5625:16/9,w=this.api.o8();q=q.width-(w?112:58);w=Math.ceil(q/(w?320:192));var G=(q-w*8)/w;a=Math.floor(G/a);for(var k=g.V(this.V),b=k.next();!b.done;b=k.next())b=b.value.oW("ytp-suggestion-image"),b.style.width=G+"px",b.style.height=a+"px";this.suggestions.element.style.height=a+"px";this.Y=G;this.S=a;this.containerWidth=q;this.columns=w;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.R8(this)}; g.C.onVideoDataChange=function(){var q=this.api.B(),a=this.api.getVideoData();this.L=a.J8?!1:q.Y;this.suggestionData=a.suggestions?g.L$(a.suggestions,function(w){return w&&!w.playlistId}):[]; MKx(this);a.J8?this.title.update({title:g.gZ("M\u00e1s v\u00eddeos de $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:a.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"M\u00e1s Shorts":"M\u00e1s v\u00eddeos"})}; g.C.scrollTo=function(q){q=g.X1(q,this.containerWidth-this.suggestionData.length*(this.Y+8),0);this.X.start(this.scrollPosition,q,1E3);this.scrollPosition=q;g.R8(this);rlc(this)};})(_yt_player);