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 N3,N_H,yn_,YJ,w5F,An0,JnF,T_P,lE,p59,FH,oP,bE,CE5,rn9,$3E,IP,zs,Y9F,MM_,l1J,FF3,D1,V0,fM,tn,uE,q3,S9s,Z1,Q0,mF,bM_,h50,cnJ,NM,w5,ks3,B_P,Cq,r5,$w,PEM,d30,I1n,vJP,z5J,iME,D31,gJ1,FF,VME,ow,f1F,ZM0,b_,x3s,jPP,c_,nJn,P_,Iw,VT,fq,tV,u_,QPF,m39,qM,xw,ZZ,HMM,KF_,WFF,OM0,nq,R50,QT,mf,H_,GsM,U3M,W_,sPJ,a1M,yh,eX5,JO,N5P,yVM,AO,w_5,Ews,AVs,Fo,T50,p__,lZn,hO,M01,rV9,SkM,bqM,cV_,kR,Bm,Pm,IN,dr,B5F,P_n,vm,z7,gr,Vh,zXH,ff,tO,u7,qd,iqM,jE,nf,mW,Hm,Wm,fZs,G7,aN,Ng,t0F,e4,uFJ,qk_,yF,US,wa,Er,ZqF, AK,JK,jw0,pm,Cm,ra,Qw3,bc,mMn,HqH,Kf5,nw_,oF,lc,$b,WfF,OqE,GwM,UM9,LfE,cW,kb,BW,sw3,aZE,PW,wm_,Tr9,ej9,AO5,ERF,yO5,NrH,JO9,pmH,C75,da,$dJ,vW,rOH,ME9,Dd,ic,lyJ,fm,tK,qg,uc,j4,xb,WW,nm,mC,HW,SSH,RF,oRM,Gy,Ur,en,Nq,yH,Lm,aF,sr,EW,AQ,Tx,bfE,Ek,JQ,pB,QF,Km,rP,cO9,$f,Tw,Yf,Mq,lV,FX,Sn,oL,bV,k7_,hQ,BrH,cy,XmM,XX,By,Py,dP,IL,vy,zx,P79,Iy9,D8,vR9,zj1,gP,VH,uV,DdF,qq,gRs,Z8,fyM,xf,uo5,jn,nB,QH,qS9,mD,Zf9,Hy,xdH,jN0,KB,nRM,Wy,OW,Gx,UW,md9,aL,WW_,QNP,e$,yZ,wG,RjM,EK,TJ,G7M,LWJ,sN5,Jt,py,Cy,rG,$x,Yx,Mm,efn,Nas, yKP,wW0,lx,EbJ,AK_,FZ,S$,oA,bx,TaE,rK_,$gP,M4F,Yr_,lds,SrF,BP,XZ,PP,dG,IA,zJ,ix,cK5,gG,fy,tt,ux,Zs,xx,kyM,j$,ny,mr,XW0,Pc_,HP,WP,OK,GJ,UK,sK,aA,V43,fds,t45,utJ,eU,NP,qr9,ZmH,xg5,yM,wi,EA,Aa,TM,C9,$Y,SU,ha,jF5,nbE,IB,QF9,ta,u8,KC1,UgJ,RfP,sF5,xY,jU,OA,NPJ,wyH,yQ1,GM,L9,Ef9,UA,yp,ZA,TPM,AQn,JL,TN,qP,pg,Cg,rs,JQ1,$v,CV5,lQ,rQM,FS,Sv,oC,bQ,$qM,YWP,MnH,cC,l8M,FDs,SWH,PC,ofF,bBE,hA3,kxH,cQH,XS,ds,IC,BPF,XyM,PV9,vC,dqM,zN,pW5,JK0,iQ,DH,Vp,fg,zAJ,tL,uQ,ZH,iBF,DqP,xv,uXs,Ox,Vn3,tn_,Kg,HC,Lg,sx,qWM,yb,ZB0, wR,E0,xqn,nfE,pY,mqJ,rR,$T,HB9,KD1,FK,oD,GxM,LD5,sLs,ho,a8J,bB,wP1,M0,OB5,ya0,ytH,eS0,NG9,w4_,NiF,cc,Uqn,XK,AaJ,TiJ,Jan,p4n,C8s,dR,raM,vc,$P_,lAM,Fcs,z8,iB,D9,q0,oY5,Z9,xT,j9,b9J,hmF,mV,caM,Hc,KY,X45,dPE,vY0,IAH,zm_,O0,U0,et,yX,wq,E5,Af,Ta,gY5,VUF,Jf,fAM,pw,Cw,Nv,rq,$s,Ys,tUH,AV,Mv,uw5,Fa,St,xPJ,o7,bq,hf,jBn,nYP,QB_,mPJ,cn,ks,Bn,Xa,O90,Wc_,Rm0,GMM,UP5,Pn,LcM,H9P,dq,sBE,aA9,I7,Nss,yL1,wCn,EvP,ALP,za,TsM,JL9,pCs,CQP,Yx_,rL9,DV,gq,VX,fw,tf,uq,qv,ZV,lHH,QX,nw,jt,mG,F_M,Hn,Sx3,ovM,bg3,hR0,Kw,O5,BsM,Wn, XCF,R7,PQ_,Ga,U5,Lw,s5,a7,ee,igM,d8n,EJ,zRJ,Ah,vvn,wS,Nk,IHn,yP,Jh,gv9,Cc,pc,lX,FL,ok,tvn,Se,cN,uSM,ku,VvM,x80,jCH,nvJ,PN,dS,Ik,QC3,vN,z3,iX,D7,m8M,gS,uX,qk,Hg5,K_J,Z7,W_P,U85,GNH,L_3,sCH,aHM,OgJ,NR1,xu,je,nc,yoM,mM,QP,wcP,ET0,AoM,OJ,TRM,Rk,G3,Jo1,UJ,CBF,Lc,pc_,ro_,$0s,Y0M,sJ,ak,eb,NL,y1,wn,E7,M9s,Ar,T0,Jr,l93,S09,oT0,Co,$n,rn,ML,lM,FR,htn,co5,Sb,op,bM,BR3,Xc5,I9J,PBF,vT5,gTP,hr,D0_,ztE,cQ,kn,V9n,BQ,f9n,PQ,uKn,t9H,q0s,ZYP,z0,iM,x0P,jDJ,nT9,D5,gn,QDF,V1,m05,HYE,WV_,U05,fo,LVH,sDn,a9_,eO_,NqP,qL,yfM, wnJ,Es5,HQ,mR,Q1,AfF,Tq5,Jfs,Ko,WQ,O7,CqH,s7,ap,e2,NW,yC,wm,$v1,Y55,Mt1,Eb,CK,rm,lG,F0,bG,FGE,osn,S5J,bwP,hOM,zu,cfP,kan,iG,Bq_,XnP,PqH,dv3,fK,gm,tp,uG,qW,IV9,vs0,zO9,ZR,x0,iwF,j2,Dvn,gsF,Vt3,nK,fV5,QC,mw,tt9,uaM,q51,Zws,xvM,j70,He,KK,We,Rd,mv0,Gu,Ub,Hws,Q7J,Ob,KGM,LK,sb,ad,Ne,eg,WGn,Ow_,RO1,yn,UvJ,w6,s7_,aV5,e1P,NS5,yhn,wNJ,EuM,Ah0,Te,Jq,pG,Jh_,TS9,pNM,CXH,r6,rh5,$V,$ks,YJs,YV,Me,l6,MeM,FA,Sg,l7_,oZ,b6,hq,cf,kV,Bf,XA,Pf,FM9,SJ5,ouJ,bcF,d6,h1E,k3_,chn,vf,ze,XNn,BS1,I7J,ic_,z1M,i6,Dk5,guP,Ve9,te5, f7E,uLJ,Df,qJJ,Zc_,Vn,xkM,jkH,nu1,Qks,fG,mkH,tq,HcM,u6,qe,WM5,Zf,Ocs,xV,jg,R15,G3P,nG,mi,LM9,Hf,Uk_,sk9,a7M,eE3,yrH,KG,wQ_,RZ,Ge,Ars,Tn3,CME,rr5,Uo,LG,so,aZ,ea,NH,yx,wN,EH,A7,T1,J7,pk,l5M,MbM,FR3,on_,S70,hEF,Y73,boH,$LP,Ck,rN,k00,BnJ,XQE,lf,Fb,Sa,$D,dLn,o1,crH,vn5,zEs,I5J,bf,h7,cB,kD,io5,PM0,DLs,BB,gn5,VbH,f5E,tb5,uR_,xLM,jpn,nn1,QpM,dN,HoF,KRP,OoP,REn,DS,ULJ,gN,z1,spM,LRJ,NmM,fk,uf,weM,E0H,Ap0,Tm_,peM,xD,ZS,CGs,JpM,$W1,M2F,lRP,Sb1,kuE,HB,Bm0,mI,WB,Xe0,OH,G1,sH,PGE,dW5,IR1,A4,v01,zG5,ln,iKM,g0H,FM, V2E,fRJ,xW3,t2H,h4,cD,k1,XM,PD,HKn,de,Ir,vD,Ww1,ge,OKM,RGM,VE,UWH,t4,un,qA,Z6,Lw5,x1,ni,QE,m7,HD,sdn,WD,O2,Rr,GY,U2,Li,aRF,exE,N69,yq1,wfJ,EVs,s2,Aq1,AT,T61,Jq5,pfP,Tz,pb,Cb,rx,My,lg,Fg,rq5,bg,hT,cz,$eM,YoP,kr,Mg5,lfJ,Xg,B6H,XfF,P6F,Pz,deE,IfM,iG0,IG,gVH,Des,zz,ffM,tgH,uAM,DO,gx,qoJ,V2,fb,tT,ug,qy,ZO,xr,jC,nb,Q2,Kb,Wz,Oa,RG,ZG5,xe_,jZ0,Ua,sa,nV_,yN,w2,E8,AE,Tk,pp,Cp,Ki0,r2,$3,Y3,OGE,Wi5,QZH,Fj,l4,LiM,SH,d2,BL,Iy,vL,afM,y7n,i4,A7E,wBE,ED0,J73,YH3,pBE,r7H,$HM,g2,DJ,Ma9,fp,tE,u4,lSn,QN,FI1,mH,HL,WL, SH3,Ry,Gk,oDs,U8,Lp,hhs,eu,yf,w9,EF,A2,Th,J2,pO,CO,r9,k1n,$h,lY,MI,XB9,vD1,dH0,ISJ,zhn,ik5,gDE,VaE,DHM,taP,oz,bY,kh,ubn,qH1,cE,BE,xH5,j1n,HkP,mH1,Iz,vE,zh,iY,Dw,Vf,WI5,OkM,Rh5,ju,nO,G1F,UH5,LIP,WE,OF,Rz,s1_,aS5,NeJ,wD3,sF,E10,N7,az,Em,Ag,Jg,A4E,lC,F6,S1,ov,hg,cV,BV,r4J,$AM,PV,Y2F,M6M,Iv,l6P,F73,vV,zv,S2s,o10,hTF,VK,kY0,BeF,Dm,XD3,Pn1,I65,dAH,q7,c4M,zT0,iiE,m1,nl,DA1,g11,HV,Kl,V6_,f6H,Rv,t6P,uM5,q2P,ZiE,av,xAn,jrJ,n15,QrH,mAF,Hi9,K73,W7M,N9,OiE,wo,GY1,UAH,L7n,srJ,a69,EE,ro,NxE,Ern,$p,AT5,JTE,e89,pzH, CgM,rT0,yTJ,wz_,Ax,Ti,C6,TxM,p6,Jx,$yF,YaM,MCs,lO5,FyH,Sa5,kzn,or_,FG,S7,bt,PgE,vrF,IO9,oe,Ie,z8J,it,ibM,grP,tx,Dyn,nrP,VCJ,jG5,xp,QG5,Ky_,j7,Zx,my5,HbF,Wy0,QJ,R8P,GzH,Uys,Lyn,sGn,aO1,eg1,Ob1,yEJ,wLM,E3M,T2_,AE3,pL0,Wi,C49,OE,Re,Gi,rEF,$Rn,sE,ae,MH5,Y8J,eS,lJJ,S83,bp5,o3s,hgF,B20,cE_,$5,la,M6,XLF,Y5,hl,cX,k5,P45,dR0,Xd,v3n,Iu,dW,z_,ia,Dc,zgJ,gW,fE,ip_,ua,Zc,x5,DR5,g3M,VHE,fJM,jS,Q7,tHH,mq,HX,KE,q8P,WX,OC,ZpM,G_,sC,LE,UC,au,eP,n3J,Op3,Gk3,WHF,KHF,RgM,wI,TO,aJ9,UR5,LH_,sy_,jys,pEP,SP,J29,$I5,T99,yu, ot,rI,lA,CYn,pQ,mR_,QyM,Hpn,A0,A2_,kg,ohs,B7,hP0,c2M,khF,P7,B9s,XEs,PYM,IwE,vhs,v7,iO1,zO,DI1,gh5,fw0,tu1,DL,ucP,ZO1,gI,xI5,Vu,fQ,r0,HO_,Gh3,jP,L65,eb_,Qu,yg9,wV5,E$5,AgP,at,T0M,LQ,dy3,GO,s$,U$,mj,JZ,TV,CT,$l,pV5,Yl,lj,F3,CC5,rgM,bj,YmP,M1s,lmM,F19,Sm5,o$M,bl5,hb0,cgH,kv5,Bq,B00,X3,d1,XV1,PCJ,d7E,IM,Im3,v$H,Dh,g1,Vv,zb_,fT,iln,uj,g$F,D73,Zh,xl,jY,nT,V1M,Qv,mk,fmE,t1M,Hq,KT,x7M,u6F,Zln,qm0,Wq,OZ,RM,jv5,n$5,Qvn,GV,HlP,Ol5,W1n,UZ,LT,sZ,aM,eQ,yd,wh,Ez,AF,TF,JF,pR,RbE,GvM,U7F,CR,rh,$N,YN,lp,SQ,am_,svJ, bp,eW9,hF,c2,kN,B2,XD,I4,v2,zF,ip,DY,gh,Vd,fR,tF,up,qE,wiJ,xN,nR,Ep5,Qd,Ton,Jxs,pi5,rxJ,YE0,R4,M7M,Uz,GF,SE9,opM,b65,sz,a4,cx5,NY,yQ,ly,Fm,BoM,SZ,og,by,Xin,hy,ki9,cw,ki,d9M,PtF,Bw,Xm,Pw,dz,vw,vp0,zW1,iy,Dn,VQ,fV,i6H,gz,V7F,fxH,t7F,uGs,qEE,Z60,x90,uy,ty,gp9,Qe3,qY,H6M,KKM,QQ,WK9,xi,jZ,O6E,mo,Gi5,LKM,Hw,KV,se1,Ww,el0,Oq,TWJ,E5M,NWH,wX5,yln,GH,Uq,LV,sq,ag,ey,Nf,wv,pX_,$6H,T$,G00,JC,YC9,lc_,C2,Mf,rv,YC,$C,o59,SCM,Fq5,bE1,lI,hln,XXH,FI,oR,d6_,bI,hC,c8,kC,Icn,B8,v53,zl_,P8,z$,iI,DK,gv,Ve,f2,tC,uI,qf,ZK, xC,jy,n2,iEP,D6E,Qe,mX,H8,K2,W8,Ol,g5H,VSH,ER,pj,ud5,qC_,Cj,rL,SA,oo,x69,cM,X8,juF,Qu0,n50,m69,HE0,Kq_,WqE,OE_,Rln,U6P,G__,LqP,ekM,y0H,acP,dL,Io,Egs,w7_,vM,zj,iZ,A00,DX,gL,Vg,J0P,p7J,fj,TIH,t5,$iE,uZ,qD,ZX,xd,jA,nj,Qg,HM,Kj,WM,OR,Ro,Gj,UR,Lj,sR,ao,eR,NT,yS,wK,EP,Aw,TQ,Jw,px,Cx,rK,$q,Yq,MT,ll,FP,SR,os,bl,hw,cp,kq,Bp,XP,Pp,dK,Is,vp,zQ,il,Db,gK,VS,fx,tw,ul,qT,Zb,xq,jR,nx,QS,mZ,Hp,Kx,Wp,OP,Rs,GQ,UP,Lx,sP,as,Nx,yk,MP9,wX,U,EG,eK,A6,T5,J6,Fj0,Cn,ogJ,pn,bQ3,$2,hkJ,Mx,rX,lF,F2,SK,bF,kO3,BI0,X7F,PA5,va,z5, X2,iF,IL3,vg9,zkM,iQJ,c0s,DiE,o_,gg1,VPM,gX,qx,Vk,ca,fL5,h6,DF,fn,ZF,uV_,k2,Ba,uF,t6,q$J,x2,jK,nn,Qk,ZQM,m$,Ha,Kn,Wa,OG,xi5,jt3,Qts,mi1,UG,Ln,sG,a_,Rk5,Ui9,stE,aLF,NG,N1s,yZH,JA,wqE,pv,Cv,rF,$Q,YQ,MG,Eln,T15,JZ_,AZ5,pqM,CjJ,o0,bv,ct,Bt,X1,Pt,dF,rZH,I0,vt,hA,Dk,gF,V6,fv,$uH,iv,MY5,tA,lh_,Fk0,uv,SZ9,qG,Zk,ol9,bT9,xQ,h9J,cZF,jO,kVH,B1J,XqJ,PjM,nv,Q6,duE,IhF,mx,Ht,Kv,vl_,Wt,Op,R0,GW,z9H,Up,Lv,iTE,sp,DuH,a0,glH,VYE,fh5,tYn,u3E,qZM,ec,ZTM,xu3,jMH,N5,nl1,yI,QMM,wp,muP,Eg,HT5,Kkn,AG,rp,WkM,$6,Y6,OTs,M5,R9M, l$,Fe,Sc,GV3,UuH,b$,hG,sMJ,c3,ahJ,e3_,LkP,Nh1,yF5,w2J,B3,ENE,Xe,P3,dp,I2,AF5,v3,zS,Dr,Thn,gp,VI,JF5,tG,Zr,u$,QI,mu,p20,H3,Kd,W3,Og,Cp5,GS,Ug,rFM,sg,a2,jc,ei,N$,yc,$EM,wO,E3,AX,Yz3,T6,JX,ph,Ch,rO,YH,Zo,xH,ji,MQ9,lYH,FQs,Sz5,HI,nh,Kh,WI,oN3,bR9,h30,O3,R8,G6,cF5,kF9,ma,BhH,X2_,U3,Pp1,Lh,s3,ep,Nb,yO,wY,EV,Tp,J_,CL,rY,$z,Yz,pL,vNM,z3M,li,Fl,Sp,iR5,bi,gN_,h_,cd,VQ5,kz,Bd,Xl,dY,fYH,Pd,IV,vd,zp,tQn,gY,qzH,ZRE,xE9,VO,fL,j45,nNJ,Q4_,t_,HR_,oV,mE9,KQJ,ui,WQ1,qb,ORM,Zu,R3s,GFP,UE9,LQJ,s4M,xz,eK5,aYE,jp,m5,Nz_, Hd,yyE,KL,wwF,Ei5,Wd,Ay5,Tz_,Jy3,pwP,OV,Cy5,RV,$Y0,UV,LL,MZ1,Yq0,lnM,FoE,Sq5,aV,em,Np,oiE,bV3,hK_,cy5,kH_,Bzn,XwM,PyP,dY5,InP,wy,E_,Ac,vi_,zKs,TK,Jc,iVJ,pt,Ct,$A,DY_,YA,Mp,lR,giM,Fv,VZn,Sm,fn0,oX,tZ5,umM,bR,qq5,ZVn,xYs,hc,ch,kA,Bh,Xv,jgH,niM,Ph,dy,IX,Qg3,vh,zK,iR,Dp,gy,mY9,HVE,VV,ft,KoM,tc,uR,qp,Zp,ngH,WoH,OVE,xA,RK9,GHM,UYH,jm,nt,QV,mz,Hh,Kt,Wh,O_,RX,GK,U_,LoF,sg9,wj,E1,an3,Ae,bS,M2,ACM,Yl9,TvE,MyE,FXJ,Sl5,lK_,oCJ,b2n,hd1,DC,BvM,PIP,IKJ,vCF,zdM,fN,te,DfF,gCn,uIH,uS,qlH,VyM,q2,ZC,xt,jj,xfF,QR5,jR5, KX5,sRM,LX_,WXH,aKM,Qw,Rds,O2M,y5M,A5E,Edn,CZH,TL9,m9,Hr,lX_,O1,Fbs,kj5,c55,h40,od5,PZH,XMn,bj_,ijP,z49,DD5,s1,fXJ,gdM,VAF,SRM,tAP,u8s,RQ,U1,IX1,dDs,vds,qR_,GR,BL5,xD5,nd5,mDH,Kb9,R43,Gj1,Lb9,sos,eaM,aXP,AwM,ywF,NKE,TK9,Cl1,rwP,$Ts,YP5,Cs,X8J,FZ1,MRM,YF,bxF,lP,cw5,kQ9,ha9,F7,BKP,Sw,oc,lv,bP,k$s,hH,cu,kF,XpH,Pls,Bu,dTE,IbM,vqM,X7,Pu,d$,Ic,vu,zB,iP,Dz,g$,zan,ix_,V8,DTJ,fs,QO,tH,uP,VR0,gq5,qC,fb9,tRs,Zz,xF,uP_,jw,qP3,Zx0,dfJ,oq1,xT_,ns,F1,G5,aQ,js5,nq5,ml,MA5,KN,QsF,r$,$F,NC,ew,nN,w$,Wb5,UDJ,y8,r5E, Jw3,mTP,e49,G$0,Hu,SP5,Vw,KZ9,Hx_,Z29,Ojn,WZ5,ppF,JH,$D1,YR9,wMF,Hjn,Qo5,H2_,nC9,tyJ,fK3,i2H,ZjH,Uf5,wp1,J5s,pME,AH,TB,EU,EqH,jon,RaF,Oxs,Ks,Wu,OU,Rc,GB,sU,Nc,yA,wQ,A$,Tm,UU,Ls,Ej,UT9,GQs,J$,CA,LZs,ssP,rQ,$B,YB,Mc,lm,FB,Sq,ox,y65,h$,bm,waF,es0,NXH,E2M,c1,kB,A60,TX5,B1,J6_,Cl,CF5,pa5,$xH,MK0,lF0,YGJ,F$E,bnJ,zm,im,hs9,c65,DM,gQ,k55,BXM,XaF,PFH,fA,um,qc,IF9,v2P,DxF,VK_,fF3,g20,jq,QA,nA,tK5,u25,ZM,qGM,Zn3,xx0,j_M,xB,Hn_,K$0,W$0,mx0,Q_1,n29,OnM,RsE,zs1,G5H,in9,Ux0,L$J,NFM,s_J,aFs,eeP,EQ5,yA1,wts,AAF,TF_, H1,CvE,JA9,rAs,ptJ,$G1,Yp9,MO3,lkJ,Fx1,Sp0,oQJ,bv0,heP,cAM,kW1,BFM,KA,Pv5,dGM,IkJ,XtM,vQP,zeE,gQ9,Oj,Uj,sj,VO_,ax,ed,Na,qpP,xG0,ZvH,nQ9,GWs,C_,wD,j0E,u1_,tO5,fk9,p_,Ef,Ji,lN,F9,s0_,Sd,oh,Ma,yGP,ak_,e0P,w33,bN,hi,AGH,kE,B$,X9,P$,dD,Ih,v$,Tps,JGE,zD,iN,gD,C$9,rGJ,De,Vo,McP,lrJ,f_,Fu5,qa,SgJ,Ze,jd,o69,xE,n_,bd0,mh,cG5,kS0,K_,W$,L_,X3F,Rh,sf,el,P$P,w4,Uf,ah,d59,EM,Irs,Ad,v6F,Of,GD,BpM,NZ,T4,z03,idM,Jd,D5M,p1,C1,r4,$a,g6M,MZ,Ya,lH,Fs,Vc1,frP,Sl,oi,bH,hd,cx,tcn,ka,Bx,ueP,qg9,Xs,Px,d4,x5_,Zd_,Ii,j25,n6H, Q2n,vx,m50,HdE,Ku0,Wu5,Od1,z4,iH,D$,g4,R03,GS9,f1,U55,td,uH,Lu1,s29,qZ,arE,ez9,EHH,AXE,NOJ,yX5,wI1,xa,jl,n1,Qt,TO9,JXF,mv,pIJ,rXP,CUJ,OM,Wx,Y3P,Mi3,lo0,Fa5,Ri,S31,UM,L1,oH5,hz0,cXP,ai,wt,PUn,Ov0,Ai,Ios,vHs,zzn,ihP,D$_,yo,eI,gHM,TE,Jm,tiF,uQH,q35,pC,nHE,ZhM,x$5,m$F,Hh9,CC,KaJ,Q8E,Wa9,rt,$_,Y_,Oh_,Rz9,MX,l2,G6J,Fu,U$M,SI,Eh,cU,LaE,ReH,Q0F,k_,BU,PU,dt,II,vU,zE,Xu,gt,aoM,tm,ey0,NYJ,y__,wd1,Ezn,u2,TYn,qX,pd9,ZT,r_0,$b5,Cis,J_J,YVF,MpP,lu1,ms,F5n,SV1,bLF,HU,Lx3,WU,c_5,BY3,rD,XdJ,Pi1,RI,IuP,TD,dbF,mG5,KxM, WxH,hyn,GE,Uh,LC,vzE,zy1,sh,iLE,eV,N_,yy,ww,EI,Db0,AR,TX,gz5,VpP,JR,pa,Ca,rw,Yj,M_,tps,fuJ,ld,ulP,ZL_,Fn,xb0,qV5,fa,gw,tR,q_,ZW,nC,jV1,OLM,dX,Vy,Qy,L5F,auM,kj,Wg,cg,OI,UI,DW,La,EAP,sI,aK,Ac5,Ty9,Jcs,phM,ex,CRn,rcJ,NO,$pE,S_5,Fz_,Y__,lpJ,MmP,y3,oAM,w8,btF,hcs,kKE,Byn,XhF,zc5,p3,C3,gA3,r8,$K,VmM,uv5,q_J,Zt5,xp9,YK,jXP,QXF,mp0,PH,sX9,Ot3,Rcn,eQ0,d8,NjM,wrF,yen,Et0,vH,DG,AeM,If,g8,V3,TjP,prM,$2n,qO,Q3,On,Un,PSJ,d2H,e5,af,wd,Es,ICH,iNE,zQF,D25,TC,AY,VjM,fC9,tjM,q1M,gt0,CX,u4s,ZNM,x29,YI,MK,ntJ,u0,pX,rd, S15,Je1,ces,hY,yG,I$,Rf,VG,tY,uk,eq1,aC0,Gr,Zi,xI,N$9,j5,yH_,wuE,L3,vtP,md,W95,NK,EFs,Mj5,Y1M,CS0,HF,WF,lzs,MwH,SUP,oF5,Us,a$,eX,LX,yL,wZ,bsM,Ec,cH0,Au,B$E,pD,kBH,CD,rZ,Izs,$S,is5,DCH,lh,gF1,fzP,Iq,z9,ih,gZ,tw5,VL,fD,Zq,xS,jX,nD,u7M,QL,m3,jcn,Hb,KD,nFF,Qcs,Wb,mC3,HsH,Kln,WlM,Oc,Rq,Osn,GBs,LD,sc,Nw,y9,UCM,w3,Ei,Az,Tc,Jz,LlJ,sc0,p5,azP,eBM,C5,y$0,NQn,w1F,r3,A$3,EBP,$8,TQ5,Y8,Mw,J$M,Cm3,r$E,l3,FC,S3,$cE,oE,Mq5,hz,lMM,F4s,b3,c0,k8,B0,hBF,km0,SjM,c$M,BQ9,oB_,bAP,X13,PmM,d3,dcM,vBJ,Dc1,Vq5,gB_,f5,V9,qw, tqM,Z2,x8,j3,qjH,n5,ZAH,uBn,Q9,nBP,mA,H0,Qx5,K5,mc_,Wzs,Lz3,K4n,HAM,OA0,W4M,RBs,Oi,Gm0,Ucn,aMM,Ui,L5,si,NDF,EE5,N4,yW,wB,TD1,Ai_,aE,Ji5,p$M,CNE,$a_,EY,ciM,pP,CP,Ie9,v0,zvJ,i_s,Da_,gE9,VdM,$X,fes,YX,M4,lO,td0,oO,u9M,qfF,bO,hI,Z_P,xan,jh5,nE9,Qh9,cT,Sr,maM,kX,KhJ,Wh5,O__,BT,Rv5,GDs,UaH,LhM,sh5,aeH,e_9,N4H,yds,wx5,Xy,AdM,PT,T4J,IO,px3,iO,EaM,dB,D0,gB,VW,fP,tI,uO,CHH,q4,rd_,xX,FvE,b1s,h_E,cdE,k4J,QW,B4M,oaM,l$M,XxM,jr,PH0,I$9,Z0,nP,YME,MlH,mU,vaJ,z_M,SMF,$Z5,i1n,KP,DZP,WT,OY,gaJ,RO,tl1,VlM,f$_,Gg,usF, UY,LP,sY,aO,qM5,Z10,xZ0,eL,na0,QiJ,NN,mZs,yU,wA,H1P,KvE,Wv_,O1n,R_5,G4F,enn,Lv5,zBM,AW,ym3,wU5,si_,a$3,UZP,pr,pU0,JW,Tb,Nt5,rm5,JmE,Ttn,AmM,E_M,rA,$X1,IE,$e,Ye,MN,Yh3,lz,MIE,Fz,lT0,u3,FsH,SL,i3,g3,IMJ,hW,ke,bC3,hnM,Bl,Pl,cl,bz,Il,ol,ShM,o_H,vl,cms,kEn,zg,Jds,zc,zb,Bt3,Xz,XUF,P2M,dX5,ITM,iz,DU,gA,znM,iC_,DXJ,g_H,VI0,dZ1,fr,tW,uz,VU,tIM,xcs,jxF,qN,uus,qhF,ZC9,xXP,ZU,jI0,xe,n_0,mXs,jL,HCJ,Kss,QU,WsF,nr,Oe,GEJ,Rnn,sI5,LsH,aTJ,e$E,UX5,Rl,OC5,Nw0,Ym,yR1,AR5,wg5,Ej5,ls,H_M,Tw3,JR1,pgP,Cd0,rRn,FE,SD,o9,$_5, bs,hJ,YI1,cO,MVH,lWM,km,FTM,SI5,oj9,baF,BO,w$s,XE,kX5,PO,cRs,dE,BwP,yiM,er,XgH,I9,zG,IW1,d_5,qo,xm,Zj,z$F,nH,ia_,D_9,QB,mp,tV5,VVH,unM,qI9,Za_,x_P,jK1,QKE,m_n,HaE,nj1,KH,vO,WTH,gj1,OaM,fW5,WO,GXM,KT3,HO,U_E,OB,aW_,wHP,R9,eLH,EKP,y3_,A30,LTs,GG,T8H,sKn,ef,a9,$O5,r35,Yn5,MxF,lG9,C0E,F05,Sn0,UB,oK3,b35,hL5,c3H,XH9,B83,kr5,yD,P0M,IG9,vKs,zL5,i35,Aj,Tt,vT,DO3,gKM,Vxs,ur0,tx0,fGF,qnn,xOn,jf9,Z3n,sB,mL,Qf1,mOM,H3P,L0n,O35,RLM,Gr1,sfJ,eHH,C21,wg,W01,K0_,aG1,tz,UOn,Ee,D2,N85,AYE,EI9,Td0,JYs,pFn,CkE,dO0,Wl, Hl,yY1,rY_,wF5,$KJ,QIF,Ys5,pH_,J3n,NdF,Kr,CW,rg,li5,$4,Fd5,Ss5,oIE,bXM,hHF,kCE,BdM,Iis,XFM,dKs,vIs,Mt,gIJ,iXF,DK0,t53,uU3,qsM,ZXH,xK1,Y4,j$E,fiE,zHn,lw,nIM,PkP,Q$J,F$,HXJ,KdJ,Wdn,mK5,Sf,GCJ,RHn,sO5,LU_,UKE,a09,eY3,oU,NAJ,yW5,Een,AWH,wl5,TA1,$N0,pl3,Cz5,rWF,Yen,MLs,lU_,Se1,FLM,oeM,br5,hY5,kbM,Xl9,BAM,PzF,cW0,dNH,ve3,zYn,DN1,VL5,irM,cG,fUs,tLE,IU9,uzE,geH,k4,qe3,ZrF,xNM,jlM,neF,Ql9,mN_,KL5,OrE,RY9,Gbn,UNH,LLJ,X$,slJ,PG,eM_,NE_,wO5,zt,AJn,TEJ,JJ1,pO3,rJs,CsP,MD0,ljH,iw,gg,$oM,YB3,FpH,fW,om5,SBJ,bHn, hM3,cJ5,XOs,kGH,Ijn,tj,BEs,vmn,uw,gmJ,Z3,x4,VD5,qt,fjH,jf,qBn,uE9,iHn,DoJ,ZHs,xoF,j9P,zMJ,nmH,nW,Q9s,tD5,EmE,VD,HHs,mS,Kpn,WpE,OH9,RMs,GGE,Uo3,Lp0,s9P,aj5,e63,HG,Ng9,yj0,E4s,Aj5,Tgn,wG1,JjJ,pG1,CwM,rj0,$t5,Ov,YvM,RU,IYn,Mf3,l3J,Gt,FSJ,Sv5,LW,h6E,cjE,aU,Bg_,XGM,ktM,bW5,ek,Uv,o4F,wk,y_,PwE,Ed,NJ,z69,g40,f39,tf3,qvP,I3_,Vfn,ZWF,v4E,xt5,jUM,C$,Av,QU5,n4M,Jv,KS1,WSP,DtP,iWF,HWM,OWM,u$_,dt1,rk,$7,Y7,R6E,MJ,eiM,LS1,NkF,sUF,Ut5,yvF,Gt3,Tk9,wsn,lr,Jv5,Crs,$Jn,Yd9,Mk5,Sd_,br,o7H,lNE,p$,cvH,ko_,Xx,R$P,Fx,Bk9, Xs3,dJM,Prn,INF,hi_,cs,v7M,ziP,i$F,g7E,DJ9,nK3,Vk9,hv,fNJ,uxP,tk1,Z$n,qdP,rvH,jY1,xJs,k7,Sk,n7F,dk,mJs,H$H,KP9,WPP,O$3,Ps,JW3,FP5,RiM,M53,To,Go5,UJ3,LP5,sYM,aN5,IY,vs,NHP,y9M,wo_,eNM,EPP,zo,po3,TH1,J9s,CJn,ir,r9F,$l0,YN5,DN,MB9,FmF,SNE,oP0,gk,lv9,V_,f$,bZ9,hNM,qJ,tv,ur,c95,ZN,kf9,BHH,Xos,dl5,PJ5,Hs,vP0,zNs,IvH,iZE,K$,DlM,Ws,gPE,Od,VB0,fvn,ZZ_,qN5,nPM,tB_,xl5,RY,u_M,j3_,Q31,ml3,HZH,Km1,Ud,WmF,aY,L$,OZ0,eB,Nl,GfM,wH,EN,UlP,ym,Lm5,A9,av5,s3M,J9,pZ,CZ,yk_,eZM,NCM,rH,w6M,JkP,Ak5,EyJ,TC_,$P,Con,YL0,Mzn, YP,lDE,F25,rk0,$hH,bJ0,hZ_,ck0,kP_,BC1,F_,IDH,zZ0,SB,PoH,dh5,gy1,lJ,o3,bJ,X65,vy5,VzF,h9,co,fD9,tzM,uhH,kP,qL9,ZJ3,xhs,jmH,ny9,Qm5,mh9,W29,HJ5,OJJ,RZH,Uh0,L25,Vm,wK0,aDM,eVM,EM5,AUJ,yUs,smE,TT_,pK_,JU5,CbM,FYP,t9,bUM,kTs,cUs,hVP,M89,lts,rUE,$V5,SDF,uJ,ql,XKJ,hu,Xu0,PbM,xP,nZ,It3,dVF,oMH,zV3,iUM,DV3,Qm,gME,Gf,ft5,t8H,uqM,ZU_,qDF,xVn,UN,LZ,j53,mVF,HUn,ez,Q5_,KYE,WYH,nM9,Nh,EL,OUH,RVF,wC,GTF,UVP,LYJ,s5M,er1,atM,wR5,E9s,NlH,Tln,JP5,yP0,Jk,pJ,pRM,rPH,CJ,CKM,$sP,Mo5,Y4P,lgs,rC,F8M,S4P,o90,$y,Yy,hrJ,b73, cPs,kIM,XRF,Bl1,PKJ,ds0,Ig1,v9J,zrH,Ds0,lo,Mh,Fh,g9n,VoF,i7P,Z7M,xsH,jjE,ms5,Qj5,n99,H70,K89,Sz,om,W8_,O71,Rrn,GIP,L8J,sjF,hk,agJ,bo,ky,UsF,e7s,NV1,yMF,wvH,ELH,Xh,AME,TVH,C9E,P6,rM1,pv3,dC,Im,$r5,Yy3,l_5,Sy_,MTE,FOM,zP,oLP,h7J,cM1,BVM,Xv5,io,DD,P9M,be_,vLF,I_9,dr5,gC,Vs,ie3,z7M,fJ,tk,Dr5,uo,gL5,VTP,f_E,qh,tT9,ZD,u5M,jz,nJ,xrM,ja1,nLn,mr0,HeM,KO5,QaE,Oe3,WO5,R7M,LOM,H6,a_0,san,Gd5,Ur9,eUM,NMM,KJ,W6,ysE,wj5,EW5,AsM,TMP,Js0,CWn,rs9,bF0,MW9,lIs,$ns,cs_,sL,e8,PW1,wT,ED,dnF,kA_,LJ,JU,TT,NV,pU,zUH,Dn5,iFM, CU,yq,UL,vW1,AU,BM5,IIs,VWE,OL,rT,fIM,tW9,am,XjE,$M,YM,upJ,MV,lb,Fq,qO3,ZFM,jHn,nWJ,xn0,S8,mnH,QHH,o5,HF5,bb,hU,KgE,WgJ,OFP,RUn,GAF,Lg9,aI5,sHH,UnH,cK,e2E,yB0,N7F,kM,BK,w90,ABs,T7s,Xq,EZ0,JBM,p9E,CeM,rB_,$SP,Y6J,MsP,dT,I5,FNE,lB_,S6M,vK,zT,oZH,bSF,cB3,h2F,kLP,Dt,B7s,X9M,Vq,Pe5,dSM,IB3,vZ5,z25,iSn,gZ_,VsP,fBM,DS3,ts5,ui0,q6E,ZSs,xSM,jS5,nZH,QSE,Zt,mS3,HSP,KNM,R29,sS9,USH,OS9,nU,GLM,WNM,LNP,Qq,eIM,aBF,mY,Nfn,yNM,wJE,bw,Eo3,CT9,rNE,$FJ,HK,YX5,WK,Nt,MhP,OD,lEs,KU,FBM,SX9,BfJ,sD,a5,Ns,yi,PTE,XJn,ooE,wl, dF0,IE5,zI3,E4,i0s,DFE,goH,eo,fEF,VhM,AP,cNs,UD,th5,uW_,qXF,Z09,b0E,hIE,LU,xFE,mF_,H0n,WB0,QTH,G21,XC,P0,LH,sTs,aE9,LBM,ep5,KB5,UFH,jTF,NuP,RI5,yb9,O0n,dA,v_1,mtE,TI,Mo,no_,EOH,pZ9,p7,C5_,rb3,Tu1,rl,$Bn,YTM,wZP,MFE,JbE,laF,$9,C7,Fn5,oOE,ST_,JP,hpF,lK,cb5,Y9,FO,Ms,So,b$P,kls,P5E,XZE,IaJ,vOJ,dBH,bK,oj,iIM,DB3,gOP,nO5,qTF,ZI5,tFE,HIF,fan,k9,OI0,KnM,RpM,GlM,UBs,XO,PR,aaE,sb_,Ln3,Ij,jbJ,Dg,NJn,iK,dl,wY5,TJs,J80,mBs,EUF,f7,pY5,xBH,eJH,vR,CL3,BR,r8M,$zJ,Yw3,qs,Zg,y89,MJ3,x9,jo,lQH,zI,Wn9,FJ9,SwH,oU0,A8M, bzM,gl,hJM,Vi,Ju,c8F,BJM,n7,Qi,XYH,PL_,dzn,uK,tP,IQ1,Bu0,vU1,zJs,izF,Dz1,gU_,m8,HR,tJF,Zz3,jWF,fQH,RJP,Gn9,UzE,LJ5,sWs,aQF,euJ,ySH,NUM,K7,WR,O4,wkM,EkM,ASE,nL,TUM,Rj,JS_,GI,U4,k6,L7,R_,pkH,MC,lbF,Cu9,Wr,rSH,ii,Du,Q8,$QE,Yt_,MN3,ll_,FtH,s4,okJ,b8s,aj,Nr,ya,hu9,BU_,Xks,wV,PuP,cSJ,kq5,dQ5,Il0,vk9,zuE,i8M,Ey,gk5,YZ1,kQ,Gp,VN5,fl0,sV,DQ5,zW,tN0,uNs,qts,AM,Mb,xQ9,jn_,Td,JM,nk_,pe,QnH,eT,mQF,H8_,uDE,Ce,rV,KtE,$L,YL,Wt_,Mr,O85,l9,F5,RuM,Gq5,ryP,ST,UQ3,snP,Lt9,oa,alE,b9,hM,ewM,Nbs,yDM,wSM,Ec5,ADP,Tb3,pSF, kL,JDM,CD_,rD5,$1P,YuH,SuE,MGF,lPP,FeE,b4M,cD9,kUn,BbH,hw9,Bv,XSH,PD3,d1J,IPJ,vcF,Pv,zw5,dV,Ia,vv,i4M,D1M,VGH,fP5,tGM,ukH,Z4E,qu0,x1M,zd,i9,Q6F,j6E,nc0,D_,m1M,H4M,gV,Va,KeP,fe,We1,tM,O4P,u9,qr,Rw3,Z_,xL,GU1,U13,jT,ne,LeM,Qa,s6J,aPn,Wv,eo1,Nc5,y1H,A11,EGP,Oy,Tcn,J15,pAM,cCF,wA3,r1_,$j5,M_9,e5P,r_;N3=function(e){return function(){return e5P[e].apply(this,arguments)}}; g.w_=function(e,N){return e5P[e]=N}; N_H=function(e){var N=0;return function(){return N=this.length))return this[e]}; q3=function(e){return e?e:uE}; S9s=function(e,N,y){e instanceof String&&(e=String(e));for(var w=e.length-1;w>=0;w--){var E=e[w];if(N.call(y,E,w,e))return{WZ:w,gM:E}}return{WZ:-1,gM:void 0}}; Z1=function(e){return e?e:function(N,y){return S9s(this,N,y).WZ}}; g.jM=function(e,N,y){e=e.split(".");y=y||g.xJ;for(var w;e.length&&(w=e.shift());)e.length||N===void 0?y[w]&&y[w]!==Object.prototype[w]?y=y[w]:y=y[w]={}:y[w]=N}; Q0=function(e,N){var y=g.nM("CLOSURE_FLAGS");e=y&&y[e];return e!=null?e:N}; g.nM=function(e,N){e=e.split(".");N=N||g.xJ;for(var y=0;y2){var w=Array.prototype.slice.call(arguments,2);return function(){var E=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(E,w);return e.apply(N,E)}}return function(){return e.apply(N,arguments)}}; g.Gs=function(e,N,y){g.Gs=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?bM_:h50;return g.Gs.apply(null,arguments)}; g.LM=function(e,N){var y=Array.prototype.slice.call(arguments,1);return function(){var w=y.slice();w.push.apply(w,arguments);return e.apply(this,w)}}; g.s9=function(){return Date.now()}; cnJ=function(e){return e}; g.e0=function(e,N){function y(){} y.prototype=N.prototype;e.cw=N.prototype;e.prototype=new y;e.prototype.constructor=e;e.tA=function(w,E,A){for(var T=Array(arguments.length-2),p=2;pN&&y.push(Tw(w,1))}); return y}; g.JV=function(e){e&&typeof e.dispose=="function"&&e.dispose()}; g.pq=function(e){for(var N=0,y=arguments.length;N>6|192;else{if(A>=55296&&A<=57343){if(A<=56319&&E=56320&&T<=57343){A=(A-55296)*1024+ T-56320+65536;w[y++]=A>>18|240;w[y++]=A>>12&63|128;w[y++]=A>>6&63|128;w[y++]=A&63|128;continue}else E--}if(N)throw Error("Found an unpaired surrogate");A=65533}w[y++]=A>>12|224;w[y++]=A>>6&63|128}w[y++]=A&63|128}}e=y===w.length?w:w.subarray(0,y)}return e}; b_=function(e){g.xJ.setTimeout(function(){throw e;},0)}; x3s=function(e){return Array.prototype.map.call(e,function(N){N=N.toString(16);return N.length>1?N:"0"+N}).join("")}; jPP=function(e){for(var N=[],y=0;y>6|192:((E&64512)==55296&&w+1>18|240,N[y++]=E>>12&63|128):N[y++]=E>>12|224,N[y++]=E>>6&63|128),N[y++]=E&63|128)}return N}; c_=function(e,N){return e.lastIndexOf(N,0)==0}; nJn=function(e,N){var y=e.length-N.length;return y>=0&&e.indexOf(N,y)==y}; g.kw=function(e){return/^[\s\xa0]*$/.test(e)}; g.B_=function(e,N){return e.indexOf(N)!=-1}; P_=function(e,N){return g.B_(e.toLowerCase(),N.toLowerCase())}; g.v_=function(e,N){var y=0;e=d5(String(e)).split(".");N=d5(String(N)).split(".");for(var w=Math.max(e.length,N.length),E=0;y==0&&EN?1:0}; g.zw=function(){var e=g.xJ.navigator;return e&&(e=e.userAgent)?e:""}; VT=function(e){return i_||DZ?g5?g5.brands.some(function(N){return(N=N.brand)&&g.B_(N,e)}):!1:!1}; fq=function(e){return g.B_(g.zw(),e)}; tV=function(){return i_||DZ?!!g5&&g5.brands.length>0:!1}; u_=function(){return tV()?!1:fq("Opera")}; QPF=function(){return tV()?!1:fq("Trident")||fq("MSIE")}; m39=function(){return tV()?VT("Microsoft Edge"):fq("Edg/")}; qM=function(){return fq("Firefox")||fq("FxiOS")}; xw=function(){return fq("Safari")&&!(ZZ()||(tV()?0:fq("Coast"))||u_()||(tV()?0:fq("Edge"))||m39()||(tV()?VT("Opera"):fq("OPR"))||qM()||fq("Silk")||fq("Android"))}; ZZ=function(){return tV()?VT("Chromium"):(fq("Chrome")||fq("CriOS"))&&!(tV()?0:fq("Edge"))||fq("Silk")}; HMM=function(){return fq("Android")&&!(ZZ()||qM()||u_()||fq("Silk"))}; KF_=function(e){var N={};e.forEach(function(y){N[y[0]]=y[1]}); return function(y){return N[y.find(function(w){return w in N})]||""}}; WFF=function(e){var N=g.zw();if(e==="Internet Explorer"){if(QPF())if((e=/rv: *([\d\.]*)/.exec(N))&&e[1])N=e[1];else{e="";var y=/MSIE +([\d\.]+)/.exec(N);if(y&&y[1])if(N=/Trident\/(\d.\d)/.exec(N),y[1]=="7.0")if(N&&N[1])switch(N[1]){case "4.0":e="8.0";break;case "5.0":e="9.0";break;case "6.0":e="10.0";break;case "7.0":e="11.0"}else e="7.0";else e=y[1];N=e}else N="";return N}var w=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");y=[];for(var E;E=w.exec(N);)y.push([E[1],E[2],E[3]||void 0]); N=KF_(y);switch(e){case "Opera":if(u_())return N(["Version","Opera"]);if(tV()?VT("Opera"):fq("OPR"))return N(["OPR"]);break;case "Microsoft Edge":if(tV()?0:fq("Edge"))return N(["Edge"]);if(m39())return N(["Edg"]);break;case "Chromium":if(ZZ())return N(["Chrome","CriOS","HeadlessChrome"])}return e==="Firefox"&&qM()||e==="Safari"&&xw()||e==="Android Browser"&&HMM()||e==="Silk"&&fq("Silk")?(N=y[2])&&N[1]||"":""}; OM0=function(e){if(tV()&&e!=="Silk"){var N=g5.brands.find(function(y){return y.brand===e}); if(!N||!N.version)return NaN;N=N.version.split(".")}else{N=WFF(e);if(N==="")return NaN;N=N.split(".")}return N.length===0?NaN:Number(N[0])}; nq=function(){return i_||DZ?!!g5&&!!g5.platform:!1}; R50=function(){return nq()?g5.platform==="Android":fq("Android")}; QT=function(){return fq("iPhone")&&!fq("iPod")&&!fq("iPad")}; mf=function(){return QT()||fq("iPad")||fq("iPod")}; H_=function(){return nq()?g5.platform==="macOS":fq("Macintosh")}; GsM=function(){return nq()?g5.platform==="Windows":fq("Windows")}; g.Kq=function(e){return e[e.length-1]}; U3M=function(e,N){var y=e.length,w=typeof e==="string"?e.split(""):e;for(--y;y>=0;--y)y in w&&N.call(void 0,w[y],y,e)}; g.Ok=function(e,N,y){N=W_(e,N,y);return N<0?null:typeof e==="string"?e.charAt(N):e[N]}; W_=function(e,N,y){for(var w=e.length,E=typeof e==="string"?e.split(""):e,A=0;A=0;w--)if(w in E&&N.call(y,E[w],w,e))return w;return-1}; g.Gw=function(e,N){return LF3(e,N)>=0}; sPJ=function(e){if(!Array.isArray(e))for(var N=e.length-1;N>=0;N--)delete e[N];e.length=0}; g.Lq=function(e,N){N=LF3(e,N);var y;(y=N>=0)&&g.Uk(e,N);return y}; g.Uk=function(e,N){return Array.prototype.splice.call(e,N,1).length==1}; g.sk=function(e,N){N=W_(e,N);N>=0&&g.Uk(e,N)}; a1M=function(e,N){var y=0;U3M(e,function(w,E){N.call(void 0,w,E,e)&&g.Uk(e,E)&&y++})}; g.aw=function(e){return Array.prototype.concat.apply([],arguments)}; g.eE=function(e){var N=e.length;if(N>0){for(var y=Array(N),w=0;w>>1),C=void 0;y?C=N.call(void 0,e[p],p,e):C=N(w,e[p]);C>0?E=p+1:(A=p,T=!C)}return T?E:-E-1}; g.pf=function(e,N){e.sort(N||AO)}; yVM=function(e,N){var y=AO;g.pf(e,function(w,E){return y(N(w),N(E))})}; g.Cf=function(e,N,y){if(!g.KM(e)||!g.KM(N)||e.length!=N.length)return!1;var w=e.length;y=y||w_5;for(var E=0;EN?1:e=0})}; g.oN=function(e,N){N===void 0&&(N=0);rV9();N=$Ms[N];for(var y=Array(Math.floor(e.length/3)),w=N[64]||"",E=0,A=0;E>2];T=N[(T&3)<<4|p>>4];p=N[(p&15)<<2|C>>6];C=N[C&63];y[A++]=""+r+T+p+C}r=0;C=w;switch(e.length-E){case 2:r=e[E+1],C=N[(r&15)<<2]||w;case 1:e=e[E],y[A]=""+N[e>>2]+N[(e&3)<<4|r>>4]+C+w}return y.join("")}; g.b7=function(e,N){if(YkF&&!N)e=g.xJ.btoa(e);else{for(var y=[],w=0,E=0;E255&&(y[w++]=A&255,A>>=8);y[w++]=A}e=g.oN(y,N)}return e}; lZn=function(e){var N=[];M01(e,function(y){N.push(y)}); return N}; hO=function(e){var N=e.length,y=N*3/4;y%3?y=Math.floor(y):g.B_("=.",e[N-1])&&(y=g.B_("=.",e[N-2])?y-2:y-1);var w=new Uint8Array(y),E=0;M01(e,function(A){w[E++]=A}); return E!==y?w.subarray(0,E):w}; M01=function(e,N){function y(C){for(;w>4);T!=64&&(N(A<<4&240|T>>2),p!=64&&N(T<<6&192|p))}}; rV9=function(){if(!cm){cm={};for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),N=["+/=","+/","-_=","-_.","-_"],y=0;y<5;y++){var w=e.concat(N[y].split(""));$Ms[y]=w;for(var E=0;E=e.length)throw Error();}; mW=function(e){var N=cnJ(Qh);return N?e[N]:void 0}; Hm=function(e){e.Amh=!0;return e}; Wm=function(e){var N=e;if(DM_(N)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(N))throw Error(String(N));}else if(gwM(N)&&!Number.isSafeInteger(N))throw Error(String(N));return Kf?BigInt(e):e=V0M(e)?e?"1":"0":DM_(e)?e.trim()||"0":String(e)}; fZs=function(e,N){if(e.length>N.length)return!1;if(e.lengthE)return!1;if(w>>0;OS=N;RN=(e-N)/4294967296>>>0}; aN=function(e){if(e<0){G7(0-e);var N=g.c(US(OS,RN));e=N.next().value;N=N.next().value;OS=e>>>0;RN=N>>>0}else G7(e)}; Ng=function(e,N){var y=N*4294967296+(e>>>0);return Number.isSafeInteger(y)?y:e4(e,N)}; t0F=function(e,N){var y=N&2147483648;y&&(e=~e+1>>>0,N=~N>>>0,e==0&&(N=N+1>>>0));e=Ng(e,N);return typeof e==="number"?y?-e:e:y?"-"+e:e}; e4=function(e,N){N>>>=0;e>>>=0;if(N<=2097151)var y=""+(4294967296*N+e);else tO()?y=""+(BigInt(N)<>>24|N<<8)&16777215,N=N>>16&65535,e=(e&16777215)+y*6777216+N*6710656,y+=N*8147497,N*=2,e>=1E7&&(y+=e/1E7>>>0,e%=1E7),y>=1E7&&(N+=y/1E7>>>0,y%=1E7),y=N+uFJ(y)+uFJ(e));return y}; uFJ=function(e){e=String(e);return"0000000".slice(e.length)+e}; qk_=function(){var e=OS,N=RN;N&2147483648?tO()?e=""+(BigInt(N|0)<>>0)):(N=g.c(US(e,N)),e=N.next().value,N=N.next().value,e="-"+e4(e,N)):e=e4(e,N);return e}; yF=function(e){if(e.length<16)aN(Number(e));else if(tO())e=BigInt(e),OS=Number(e&BigInt(4294967295))>>>0,RN=Number(e>>BigInt(32)&BigInt(4294967295));else{var N=+(e[0]==="-");RN=OS=0;for(var y=e.length,w=0+N,E=(y-N)%6+N;E<=y;w=E,E+=6)w=Number(e.slice(w,E)),RN*=1E6,OS=OS*1E6+w,OS>=4294967296&&(RN+=Math.trunc(OS/4294967296),RN>>>=0,OS>>>=0);N&&(N=g.c(US(OS,RN)),e=N.next().value,N=N.next().value,OS=e,RN=N)}}; US=function(e,N){N=~N;e?e=~e+1:N+=1;return[e,N]}; wa=function(e,N){throw Error(N===void 0?"unexpected value "+e+"!":N);}; Er=function(e){if(e!=null&&typeof e!=="number")throw Error("Value of float/double field must be a number, found "+typeof e+": "+e);return e}; ZqF=function(e){return e.displayName||e.name||"unknown type name"}; AK=function(e){if(e!=null&&typeof e!=="boolean")throw Error("Expected boolean but got "+mF(e)+": "+e);return e}; JK=function(e){switch(typeof e){case "bigint":return!0;case "number":return Ty(e);case "string":return xMM.test(e);default:return!1}}; jw0=function(e){if(typeof e!=="number")throw vm("int32");if(!Ty(e))throw vm("int32");return e|0}; pm=function(e){return e==null?e:jw0(e)}; Cm=function(e){if(e==null)return e;if(typeof e==="string"&&e)e=+e;else if(typeof e!=="number")return;return Ty(e)?e|0:void 0}; ra=function(e){if(e==null)return e;if(typeof e==="string"&&e)e=+e;else if(typeof e!=="number")return;return Ty(e)?e>>>0:void 0}; Qw3=function(e){var N=0;N=N===void 0?0:N;if(!JK(e))throw vm("int64");var y=typeof e;switch(N){case 4096:switch(y){case "string":return $b(e);case "bigint":return String(Yb(64,e));default:return lc(e)}case 8192:switch(y){case "string":return N=Ft(Number(e)),S4(N)?e=Wm(N):(N=e.indexOf("."),N!==-1&&(e=e.substring(0,N)),e=tO()?Wm(Yb(64,BigInt(e))):Wm(nw_(e))),e;case "bigint":return Wm(Yb(64,e));default:return S4(e)?Wm(oF(e)):Wm(lc(e))}case 0:switch(y){case "string":return $b(e);case "bigint":return Wm(Yb(64, e));default:return oF(e)}default:return wa(N,"Unknown format requested type for int64")}}; bc=function(e){return e==null?e:Qw3(e)}; mMn=function(e){if(e[0]==="-")return!1;var N=e.length;return N<20?!0:N===20&&Number(e.substring(0,6))<184467}; HqH=function(e){var N=e.length;return e[0]==="-"?N<20?!0:N===20&&Number(e.substring(0,7))>-922337:N<19?!0:N===19&&Number(e.substring(0,6))<922337}; Kf5=function(e){if(e<0){aN(e);var N=e4(OS,RN);e=Number(N);return S4(e)?e:N}N=String(e);if(mMn(N))return N;aN(e);return Ng(OS,RN)}; nw_=function(e){if(HqH(e))return e;yF(e);return qk_()}; oF=function(e){JK(e);e=Ft(e);S4(e)||(aN(e),e=t0F(OS,RN));return e}; lc=function(e){JK(e);e=Ft(e);if(S4(e))e=String(e);else{var N=String(e);HqH(N)?e=N:(aN(e),e=qk_())}return e}; $b=function(e){JK(e);var N=Ft(Number(e));if(S4(N))return String(N);N=e.indexOf(".");N!==-1&&(e=e.substring(0,N));return nw_(e)}; WfF=function(e){if(e==null)return e;if(typeof e==="bigint")return hK(e)?e=Number(e):(e=Yb(64,e),e=hK(e)?Number(e):String(e)),e;if(JK(e))return typeof e==="number"?oF(e):$b(e)}; OqE=function(e){if(e==null)return e;var N=typeof e;if(N==="bigint")return String(Yb(64,e));if(JK(e)){if(N==="string")return $b(e);if(N==="number")return oF(e)}}; GwM=function(e){if(e==null)return e;var N=typeof e;if(N==="bigint")return String(RX_(64,e));if(JK(e)){if(N==="string")return JK(e),N=Ft(Number(e)),S4(N)&&N>=0?e=String(N):(N=e.indexOf("."),N!==-1&&(e=e.substring(0,N)),mMn(e)||(yF(e),e=e4(OS,RN))),e;if(N==="number")return JK(e),e=Ft(e),e>=0&&S4(e)?e:Kf5(e)}}; UM9=function(e){if(e==null||typeof e=="string"||kR(e)||e instanceof Bm)return e}; LfE=function(e){if(typeof e!=="string")throw Error();return e}; cW=function(e){if(e!=null&&typeof e!=="string")throw Error();return e}; kb=function(e){return e==null||typeof e==="string"?e:void 0}; BW=function(e,N){if(!(e instanceof N))throw Error("Expected instanceof "+ZqF(N)+" but got "+(e&&ZqF(e.constructor)));return e}; sw3=function(e,N,y){if(e!=null&&typeof e==="object"&&e.Av===Xt)return e;if(Array.isArray(e)){var w=e[Dy]|0,E=w;E===0&&(E|=y&32);E|=y&2;E!==w&&Vh(e,E);return new N(e)}}; aZE=function(e){return e}; PW=function(e){return e}; wm_=function(e,N,y,w){return ej9(e,N,y,w,NrH,yO5)}; Tr9=function(e,N,y,w){return ej9(e,N,y,w,ERF,AO5)}; ej9=function(e,N,y,w,E,A){if(!y.length&&!w)return 0;for(var T=0,p=0,C=0,r=0,Y=0,M=y.length-1;M>=0;M--){var l=y[M];w&&M===y.length-1&&l===w||(r++,l!=null&&C++)}if(w)for(var F in w)M=+F,isNaN(M)||(Y+=JO9(M),p++,M>T&&(T=M));r=E(r,C)+A(p,T,Y);F=C;M=p;l=T;for(var S=Y,k=y.length-1;k>=0;k--){var X=y[k];if(!(X==null||w&&k===y.length-1&&X===w)){X=k-N;var d=E(X,F)+A(M,l,S);d=1024||(M--,F++,S-=v.length,T=E(w,F)+A(M,l,S),T1?e-1:0)}; ERF=function(e,N){return(e>1?e-1:0)+(e-N)*4}; yO5=function(e,N){return e==0?0:9*Math.max(1<<32-Math.clz32(e+e/2-1),4)<=N?e==0?0:e<4?100+(e-1)*16:e<6?148+(e-4)*16:e<12?244+(e-6)*16:e<22?436+(e-12)*19:e<44?820+(e-22)*17:52+32*e:40+4*N}; NrH=function(e){return 40+4*e}; JO9=function(e){return e>=100?e>=1E4?Math.ceil(Math.log10(1+e)):e<1E3?3:4:e<10?1:2}; pmH=function(e,N,y){var w=u7(e),E=w.length,A=N&256?w[E-1]:void 0;E+=A?-1:0;for(N=N&512?1:0;N0;y=N-1)if(p=e[y],p==null)N--,E=!0;else if(y-=A,y>=T)E=void 0,((E=w)!=null?E:w={})[y]=p,N--,E=!0;else break;E&&(e.length=N);w&&e.push(w)}return e}; ME9=function(e){switch(typeof e){case "boolean":return zy||(zy=[0,void 0,!0]);case "number":return e>0?void 0:e===0?YSs||(YSs=[0,void 0]):[-e,void 0];case "string":return[0,e];case "object":return e}}; Dd=function(e,N,y){e=ic(e,N[0],N[1],y?1:2);N!==zy&&y&&gr(e,16384);return e}; ic=function(e,N,y,w){if(e==null){var E=96;y?(e=[y],E|=512):e=[];N&&(E=E&-33521665|(N&1023)<<15)}else{if(!Array.isArray(e))throw Error("narr");E=e[Dy]|0;if(E&2048)throw Error("farr");if(E&64)return e;w===1||w===2||(E|=64);if(y&&(E|=512,y!==e[0]))throw Error("mid");a:{y=e;if(w=y.length){var A=w-1;if(qd(y[A])){E|=256;N=A-(E&512?0:-1);if(N>=1024)throw Error("pvtlmt");E=E&-33521665|(N&1023)<<15;break a}}if(N){N=Math.max(N,w-(E&512?0:-1));if(N>1024)throw Error("spvt");E=E&-33521665|(N&1023)<<15}}}Vh(e, E);return e}; lyJ=function(e,N,y){y=y===void 0?ff:y;if(e!=null){if(kw9&&e instanceof Uint8Array)return N?e:new Uint8Array(e);if(Array.isArray(e)){var w=e[Dy]|0;if(w&2)return e;N&&(N=w===0||!!(w&32)&&!(w&64||!(w&16)));return N?(Vh(e,(w|34)&-12293),e):da(e,lyJ,w&4?ff:y,!0,!0)}e.Av===Xt&&(y=e.wT,w=y[Dy]|0,e=w&2?e:new e.constructor(fm(y,w,!0)));return e}}; fm=function(e,N,y){var w=y||N&2?ff:zXH,E=!!(N&32);e=pmH(e,N,function(A){return lyJ(A,E,w)}); gr(e,32|(y?2:0));return e}; tK=function(e){var N=e.wT,y=N[Dy]|0;return y&2?new e.constructor(fm(N,y,!1)):e}; qg=function(e,N){e=e.wT;return uc(e,e[Dy]|0,N)}; uc=function(e,N,y,w){if(y===-1)return null;var E=y+(N&512?0:-1),A=e.length-1;if(E>=A&&N&256)return e[A][y];if(w&&N&256&&(N=e[A][y],N!=null)){if(e[E]!=null&&Zd!=null){var T;e=(T=FW5)!=null?T:FW5={};T=e[Zd]||0;T>=4||(e[Zd]=T+1,T=Error(),P_n(T,"incident"),b_(T))}return N}if(E<=A)return e[E]}; j4=function(e,N,y){var w=e.wT,E=w[Dy]|0;jE(E);xb(w,E,N,y);return e}; xb=function(e,N,y,w){var E=N&512?0:-1,A=y+E,T=e.length-1;if(A>=T&&N&256)return e[T][y]=w,N;if(A<=T)return e[A]=w,N&256&&(e=e[T],y in e&&delete e[y]),N;w!==void 0&&(T=N>>15&1023||536870912,y>=T?w!=null&&(A={},e[T+E]=(A[y]=w,A),N|=256,Vh(e,N)):e[A]=w);return N}; WW=function(e,N,y,w,E,A){var T=e.wT;e=T[Dy]|0;w=2&e?1:w;A=!!A;E=nm(T,e,N,E);var p=E[Dy]|0;if(!(4&p)){4&p&&(E=u7(E),p=QF(p,e),e=xb(T,e,N,E));for(var C=0,r=0;C "+e)}; cy=function(e){if(typeof e==="string")return{buffer:cV_(e),zv:!1};if(Array.isArray(e))return{buffer:new Uint8Array(e),zv:!1};if(e.constructor===Uint8Array)return{buffer:e,zv:!1};if(e.constructor===ArrayBuffer)return{buffer:new Uint8Array(e),zv:!1};if(e.constructor===Bm)return{buffer:dr(e)||new Uint8Array(0),zv:!0};if(e instanceof Uint8Array)return{buffer:new Uint8Array(e.buffer,e.byteOffset,e.byteLength),zv:!1};throw Error("Type not convertible to a Uint8Array, expected a Uint8Array, an ArrayBuffer, a base64 encoded string, a ByteString or an Array of numbers"); }; XmM=function(e,N){this.N=null;this.L=!1;this.J=this.K=this.j=0;this.init(e,void 0,void 0,N)}; XX=function(e){var N=0,y=0,w=0,E=e.N,A=e.J;do{var T=E[A++];N|=(T&127)<32&&(y|=(T&127)>>4);for(w=3;w<32&&T&128;w+=7)T=E[A++],y|=(T&127)<>>0,y>>>0);throw hQ();}; By=function(e,N){e.J=N;if(N>e.K)throw BrH(e.K,N);}; Py=function(e){var N=e.N,y=e.J,w=N[y++],E=w&127;if(w&128&&(w=N[y++],E|=(w&127)<<7,w&128&&(w=N[y++],E|=(w&127)<<14,w&128&&(w=N[y++],E|=(w&127)<<21,w&128&&(w=N[y++],E|=w<<28,w&128&&N[y++]&128&&N[y++]&128&&N[y++]&128&&N[y++]&128&&N[y++]&128)))))throw hQ();By(e,y);return E}; dP=function(e){var N=e.N,y=e.J,w=N[y+0],E=N[y+1],A=N[y+2];N=N[y+3];By(e,e.J+4);return(w<<0|E<<8|A<<16|N<<24)>>>0}; IL=function(e){var N=dP(e);e=dP(e);return Ng(N,e)}; vy=function(e){var N=dP(e),y=dP(e);e=(y>>31)*2+1;var w=y>>>20&2047;N=4294967296*(y&1048575)+N;return w==2047?N?NaN:e*Infinity:w==0?e*4.9E-324*N:e*Math.pow(2,w-1075)*(N+4503599627370496)}; zx=function(e){for(var N=0,y=e.J,w=y+10,E=e.N;ye.K)throw BrH(N,e.K-y);e.J=w;return y}; Iy9=function(e,N){if(N==0)return Pm();var y=P79(e,N);e.oR&&e.L?y=e.N.subarray(y,y+N):(e=e.N,N=y+N,y=y===N?new Uint8Array(0):ddF?e.slice(y,N):new Uint8Array(e.subarray(y,N)));return y.length==0?Pm():new Bm(y,Xo)}; D8=function(e,N){if(iV.length){var y=iV.pop();y.init(e,void 0,void 0,N);e=y}else e=new XmM(e,N);this.J=e;this.K=this.J.J;this.N=this.j=-1;vR9(this,N)}; vR9=function(e,N){N=N===void 0?{}:N;e.AI=N.AI===void 0?!1:N.AI}; zj1=function(e){var N=e.J;if(N.J==N.K)return!1;e.K=e.J.J;var y=Py(e.J)>>>0;N=y>>>3;y&=7;if(!(y>=0&&y<=5))throw k7_(y,e.K);if(N<1)throw Error("Invalid field number: "+N+" (at position "+e.K+")");e.j=N;e.N=y;return!0}; gP=function(e){switch(e.N){case 0:e.N!=0?gP(e):zx(e.J);break;case 1:e=e.J;By(e,e.J+8);break;case 2:if(e.N!=2)gP(e);else{var N=Py(e.J)>>>0;e=e.J;By(e,e.J+N)}break;case 5:e=e.J;By(e,e.J+4);break;case 3:N=e.j;do{if(!zj1(e))throw Error("Unmatched start-group tag: stream EOF");if(e.N==4){if(e.j!=N)throw Error("Unmatched end-group tag");break}gP(e)}while(1);break;default:throw k7_(e.N,e.K);}}; VH=function(e,N,y){var w=e.J.K,E=Py(e.J)>>>0,A=e.J.J+E,T=A-w;T<=0&&(e.J.K=A,y(N,e,void 0,void 0,void 0),T=A-e.J.J);if(T)throw Error("Message parsing ended unexpectedly. Expected to read "+(E+" bytes, instead read "+(E-T)+" bytes, either the data ended unexpectedly or the message misreported its own length"));e.J.J=A;e.J.K=w}; uV=function(e){var N=Py(e.J)>>>0;e=e.J;var y=P79(e,N);e=e.N;if(ifP){var w=e,E;(E=fB)||(E=fB=new TextDecoder("utf-8",{fatal:!0}));N=y+N;w=y===0&&N===w.length?w:w.subarray(y,N);try{var A=E.decode(w)}catch(r){if(tQ===void 0){try{E.decode(new Uint8Array([128]))}catch(Y){}try{E.decode(new Uint8Array([97])),tQ=!0}catch(Y){tQ=!1}}!tQ&&(fB=void 0);throw r;}}else{A=y;N=A+N;y=[];for(var T=null,p,C;A=N?ow():(C=e[A++],p<194||(C&192)!==128?(A--,ow()):y.push((p&31)<<6|C&63)): p<240?A>=N-1?ow():(C=e[A++],(C&192)!==128||p===224&&C<160||p===237&&C>=160||((E=e[A++])&192)!==128?(A--,ow()):y.push((p&15)<<12|(C&63)<<6|E&63)):p<=244?A>=N-2?ow():(C=e[A++],(C&192)!==128||(p<<28)+(C-144)>>30!==0||((E=e[A++])&192)!==128||((w=e[A++])&192)!==128?(A--,ow()):(p=(p&7)<<18|(C&63)<<12|(E&63)<<6|w&63,p-=65536,y.push((p>>10&1023)+55296,(p&1023)+56320))):ow(),y.length>=8192&&(T=f1F(T,y),y.length=0);A=f1F(T,y)}return A}; DdF=function(e){var N=Py(e.J)>>>0;return Iy9(e.J,N)}; qq=function(e,N,y){this.wT=ic(e,N,y)}; gRs=function(e,N){if(N==null||N=="")return new e;N=JSON.parse(N);if(!Array.isArray(N))throw Error("dnarr");gr(N,32);return new e(N)}; Z8=function(e,N){this.N=e>>>0;this.J=N>>>0}; fyM=function(e){if(!e)return VEJ||(VEJ=new Z8(0,0));if(!/^\d+$/.test(e))return null;yF(e);return new Z8(OS,RN)}; xf=function(e,N){this.N=e>>>0;this.J=N>>>0}; uo5=function(e){if(!e)return tEE||(tEE=new xf(0,0));if(!/^-?\d+$/.test(e))return null;yF(e);return new xf(OS,RN)}; jn=function(){this.J=[]}; nB=function(e,N,y){for(;y>0||N>127;)e.J.push(N&127|128),N=(N>>>7|y<<25)>>>0,y>>>=7;e.J.push(N)}; QH=function(e,N){for(;N>127;)e.J.push(N&127|128),N>>>=7;e.J.push(N)}; qS9=function(e,N){if(N>=0)QH(e,N);else{for(var y=0;y<9;y++)e.J.push(N&127|128),N>>=7;e.J.push(1)}}; mD=function(e,N){e.J.push(N>>>0&255);e.J.push(N>>>8&255);e.J.push(N>>>16&255);e.J.push(N>>>24&255)}; Zf9=function(){this.K=[];this.N=0;this.J=new jn}; Hy=function(e,N){N.length!==0&&(e.K.push(N),e.N+=N.length)}; xdH=function(e,N){KB(e,N,2);N=e.J.end();Hy(e,N);N.push(e.N);return N}; jN0=function(e,N){var y=N.pop();for(y=e.N+e.J.length()-y;y>127;)N.push(y&127|128),y>>>=7,e.N++;N.push(y);e.N++}; KB=function(e,N,y){QH(e.J,N*8+y)}; nRM=function(e,N,y){if(y!=null){switch(typeof y){case "string":fyM(y)}KB(e,N,1);switch(typeof y){case "number":e=e.J;G7(y);mD(e,OS);mD(e,RN);break;case "bigint":y=BigInt.asUintN(64,y);y=new Z8(Number(y&BigInt(4294967295)),Number(y>>BigInt(32)));e=e.J;N=y.J;mD(e,y.N);mD(e,N);break;default:y=fyM(y),e=e.J,N=y.J,mD(e,y.N),mD(e,N)}}}; Wy=function(e,N,y){KB(e,N,2);QH(e.J,y.length);Hy(e,e.J.end());Hy(e,y)}; OW=function(){function e(){throw Error();} Object.setPrototypeOf(e,e.prototype);return e}; Gx=function(e,N,y){this.kd=e;this.K5=N;e=cnJ(RL);this.J=!!e&&y===e||!1}; UW=function(e,N){var y=y===void 0?RL:y;return new Gx(e,N,y)}; md9=function(e,N,y,w,E){N=QNP(N,w);N!=null&&(y=xdH(e,y),E(N,e),jN0(e,y))}; aL=function(e,N,y,w){var E=w[e];if(E)return E;E={};E.hJh=w;E.Op=ME9(w[0]);var A=w[1],T=1;A&&A.constructor===Object&&(E.extensions=A,A=w[++T],typeof A==="function"&&(E.g5=!0,LB!=null||(LB=A),sW!=null||(sW=w[T+1]),A=w[T+=2]));for(var p={};A&&Array.isArray(A)&&A.length&&typeof A[0]==="number"&&A[0]>0;){for(var C=0;C>BigInt(32)));nB(e.J,y.N,y.J);break;default:y=uo5(N),nB(e.J,y.N,y.J)}}}; Mm=function(e,N,y){N=Cm(N);N!=null&&N!=null&&(KB(e,y,0),qS9(e.J,N))}; efn=function(e,N,y){N=N==null||typeof N==="boolean"?N:typeof N==="number"?!!N:void 0;N!=null&&(KB(e,y,0),e.J.J.push(N?1:0))}; Nas=function(e,N,y){N=kb(N);N!=null&&Wy(e,y,ZM0(N))}; yKP=function(e,N,y,w,E){N=QNP(N,w);N!=null&&(y=xdH(e,y),E(N,e),jN0(e,y))}; wW0=function(e){return function(){var N=new Zf9;LWJ(this.wT,N,aL(At,EK,TJ,e));Hy(N,N.J.end());for(var y=new Uint8Array(N.N),w=N.K,E=w.length,A=0,T=0;T>>31)&4294967295;M=E[0];var S=E[1],k=E[2],X=E[3],d=E[4];for(F=0;F<80;F++){if(F<40)if(F<20){var v=X^S&(k^X);var V=1518500249}else v=S^k^X,V=1859775393;else F<60?(v=S&k|X&(S|k),V=2400959708):(v=S^k^X,V=3395469782);v=((M<<5|M>>>27)&4294967295)+v+d+V+l[F]&4294967295;d=X;X=k;k=(S<<30|S>>>2)&4294967295;S=M;M=v}E[0]=E[0]+M&4294967295;E[1]=E[1]+S&4294967295;E[2]= E[2]+k&4294967295;E[3]=E[3]+X&4294967295;E[4]=E[4]+d&4294967295} function y(M,l){if(typeof M==="string"){M=unescape(encodeURIComponent(M));for(var F=[],S=0,k=M.length;S=56;F--)A[F]=l&255,l>>>=8;N(A);for(F=l=0;F<5;F++)for(var S=24;S>=0;S-=8)M[l++]=E[F]>>S&255;return M} for(var E=[],A=[],T=[],p=[128],C=1;C<64;++C)p[C]=0;var r,Y;e();return{reset:e,update:y,digest:w,zG:function(){for(var M=w(),l="",F=0;F4);E++)N[WP(e[E])]||(y+="\nInner error "+w++ +": ",e[E].stack&&e[E].stack.indexOf(e[E].toString())==0||(y+=typeof e[E]==="string"?e[E]:e[E].message+"\n"),y+=HP(e[E],N));E")!=-1&&(e=e.replace(zfn,">")),e.indexOf('"')!=-1&&(e=e.replace(im_,""")),e.indexOf("'")!=-1&&(e=e.replace(DgP,"'")),e.indexOf("\x00")!=-1&&(e=e.replace(gbM,"�")));return e}; g.Ly=function(e){return e==null?"":String(e)}; sK=function(e){for(var N=0,y=0;y>>0;return N}; aA=function(e){var N=Number(e);return N==0&&g.kw(e)?NaN:N}; V43=function(e){return String(e).replace(/\-([a-z])/g,function(N,y){return y.toUpperCase()})}; fds=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; t45=function(e){return e.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(N,y,w){return y+w.toUpperCase()})}; utJ=function(e){var N=1;e=e.split(":");for(var y=[];N>0&&e.length;)y.push(e.shift()),N--;e.length&&y.push(e.join(":"));return y}; eU=function(e){this.J=e||{cookie:""}}; NP=function(e){e=(e.J.cookie||"").split(";");for(var N=[],y=[],w,E,A=0;A/g,">").replace(/"/g,""").replace(/'/g,"'");return tt(e)}; KC1=function(e){var N=u8("");return tt(e.map(function(y){return ux(u8(y))}).join(ux(N).toString()))}; UgJ=function(e){var N;if(!WC1.test("div"))throw Error("");if(OmJ.indexOf("DIV")!==-1)throw Error("");var y="":(e=KC1(N.map(function(w){return w instanceof fy?w:u8(String(w))})),y+=">"+e.toString()+""); return tt(y)}; RfP=function(e){for(var N="",y=Object.keys(e),w=0;w2&&Ef9(E,T,w,2);return T}; Ef9=function(e,N,y,w){function E(p){p&&N.appendChild(typeof p==="string"?e.createTextNode(p):p)} for(;w0)E(A);else{a:{if(A&&typeof A.length=="number"){if(g.W5(A)){var T=typeof A.item=="function"||typeof A.item=="string";break a}if(typeof A==="function"){T=typeof A.item=="function";break a}}T=!1}g.$R(T?g.eE(A):A,E)}}}; g.sA=function(e){return UA(document,e)}; UA=function(e,N){N=String(N);e.contentType==="application/xhtml+xml"&&(N=N.toLowerCase());return e.createElement(N)}; g.aB=function(e){return document.createTextNode(String(e))}; g.ev=function(e,N){e.appendChild(N)}; g.N8=function(e){for(var N;N=e.firstChild;)e.removeChild(N)}; yp=function(e,N,y){e.insertBefore(N,e.childNodes[y]||null)}; g.ws=function(e){return e&&e.parentNode?e.parentNode.removeChild(e):null}; g.Ex=function(e,N){if(!e||!N)return!1;if(e.contains&&N.nodeType==1)return e==N||e.contains(N);if(typeof e.compareDocumentPosition!="undefined")return e==N||!!(e.compareDocumentPosition(N)&16);for(;N&&e!=N;)N=N.parentNode;return N==e}; ZA=function(e){return e.nodeType==9?e:e.ownerDocument||e.document}; g.AL=function(e,N){if("textContent"in e)e.textContent=N;else if(e.nodeType==3)e.data=String(N);else if(e.firstChild&&e.firstChild.nodeType==3){for(;e.lastChild!=e.firstChild;)e.removeChild(e.lastChild);e.firstChild.data=String(N)}else g.N8(e),e.appendChild(ZA(e).createTextNode(String(N)))}; TPM=function(e){return e.tagName=="A"&&e.hasAttribute("href")||e.tagName=="INPUT"||e.tagName=="TEXTAREA"||e.tagName=="SELECT"||e.tagName=="BUTTON"?!e.disabled&&(!e.hasAttribute("tabindex")||AQn(e)):e.hasAttribute("tabindex")&&AQn(e)}; AQn=function(e){e=e.tabIndex;return typeof e==="number"&&e>=0&&e<32768}; JL=function(e,N,y){if(!N&&!y)return null;var w=N?String(N).toUpperCase():null;return TN(e,function(E){return(!w||E.nodeName==w)&&(!y||typeof E.className==="string"&&g.Gw(E.className.split(/\s+/),y))},!0)}; TN=function(e,N,y){e&&!y&&(e=e.parentNode);for(y=0;e;){if(N(e))return e;e=e.parentNode;y++}return null}; qP=function(e){this.J=e||g.xJ.document||document}; pg=function(e){this.wT=ic(e)}; Cg=function(e){this.wT=ic(e)}; rs=function(e){this.wT=ic(e)}; JQ1=function(e,N){pB(e,Cg,1,N)}; $v=function(e){this.wT=ic(e)}; CV5=function(e,N){N=N===void 0?pyM:N;if(!Yv){var y;e=(y=e.navigator)==null?void 0:y.userAgentData;if(!e||typeof e.getHighEntropyValues!=="function"||e.brands&&typeof e.brands.map!=="function")return Promise.reject(Error("UACH unavailable"));y=(e.brands||[]).map(function(E){var A=new Cg;A=Sn(A,1,E.brand);return Sn(A,2,E.version)}); JQ1(j4(M8,2,AK(e.mobile)),y);Yv=e.getHighEntropyValues(N)}var w=new Set(N);return Yv.then(function(E){var A=M8.clone();w.has("platform")&&Sn(A,3,E.platform);w.has("platformVersion")&&Sn(A,4,E.platformVersion);w.has("architecture")&&Sn(A,5,E.architecture);w.has("model")&&Sn(A,6,E.model);w.has("uaFullVersion")&&Sn(A,7,E.uaFullVersion);return A}).catch(function(){return M8.clone()})}; lQ=function(e){this.wT=ic(e)}; rQM=function(e){this.wT=ic(e)}; FS=function(e){this.wT=ic(e,4)}; Sv=function(e){this.wT=ic(e,36)}; oC=function(e){this.wT=ic(e,19)}; bQ=function(e,N){this.Ru=N=N===void 0?!1:N;this.uach=this.locale=null;this.N=0;this.isFinal=!1;this.J=new oC;Number.isInteger(e)&&this.J.NC(e);N||(this.locale=document.documentElement.getAttribute("lang"));$qM(this,new lQ)}; $qM=function(e,N){JQ(e.J,lQ,1,N);lV(N,1)||bV(N,1,1);e.Ru||(N=cC(e),Mq(N,5)||Sn(N,5,e.locale));e.uach&&(N=cC(e),Tx(N,rs,9)||JQ(N,rs,9,e.uach))}; YWP=function(e,N){e.N=N}; MnH=function(e){var N=N===void 0?pyM:N;var y=e.Ru?void 0:GM();y?CV5(y,N).then(function(w){e.uach=w;w=cC(e);JQ(w,rs,9,e.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)}; cC=function(e){e=Tx(e.J,lQ,1);var N=Tx(e,$v,11);N||(N=new $v,JQ(e,$v,11,N));return N}; l8M=function(e){return g.RB?"webkit"+e:e.toLowerCase()}; g.kv=function(e,N,y,w){this.j=e;this.L=N;this.J=this.K=e;this.Z=y||0;this.G=w||2}; g.BC=function(e){e.J=Math.min(e.L,e.J*e.G);e.K=Math.min(e.L,e.J+(e.Z?Math.round(e.Z*(Math.random()-.5)*2*e.J):0));e.N++}; FDs=function(e){this.wT=ic(e,8)}; SWH=function(e){this.wT=ic(e)}; PC=function(e){g.x.call(this);var N=this;this.componentId="";this.J=[];this.aq="";this.pageId=null;this.Zl=this.qg=-1;this.G=this.experimentIds=null;this.Ng=this.Kh=this.Z=this.j=0;this.Et=1;this.timeoutMillis=0;this.l9=!1;this.logSource=e.logSource;this.VO=e.VO||function(){}; this.K=new bQ(e.logSource,e.Ru);this.network=e.network||null;this.z5=e.z5||null;this.U=e.QxG||null;this.sessionIndex=e.sessionIndex||null;this.k0=e.k0||!1;this.logger=null;this.withCredentials=!e.Uc;this.Ru=e.Ru||!1;this.D=!this.Ru&&!!GM()&&!!GM().navigator&&GM().navigator.sendBeacon!==void 0;this.Rq=typeof URLSearchParams!=="undefined"&&!!(new URL(XS())).searchParams&&!!(new URL(XS())).searchParams.set;var y=bV(new lQ,1,1);$qM(this.K,y);this.L=new g.kv(1E4,3E5,.1);e=ofF(this,e.kG);this.N=new EA(this.L.getValue(), e);this.i9=new EA(6E5,e);this.k0||this.i9.start();this.Ru||(document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&N.P6()}),document.addEventListener("pagehide",this.P6.bind(this)))}; ofF=function(e,N){return e.Rq?N?function(){N().then(function(){e.flush()})}:function(){e.flush()}:function(){}}; bBE=function(e){e.U||(e.U=XS());try{return(new URL(e.U)).toString()}catch(N){return(new URL(e.U,GM().location.origin)).toString()}}; hA3=function(e,N,y){y=y===void 0?e.VO():y;var w={},E=new URL(bBE(e));y&&(w.Authorization=y);e.sessionIndex&&(w["X-Goog-AuthUser"]=e.sessionIndex,E.searchParams.set("authuser",e.sessionIndex));e.pageId&&(Object.defineProperty(w,"X-Goog-PageId",{value:e.pageId}),E.searchParams.set("pageId",e.pageId));return{url:E.toString(),body:N,Pa:1,requestHeaders:w,requestType:"POST",withCredentials:e.withCredentials,timeoutMillis:e.timeoutMillis}}; kxH=function(e){cQH(e,function(N,y){N=new URL(N);N.searchParams.set("format","json");var w=!1;try{w=GM().navigator.sendBeacon(N.toString(),y.jY())}catch(E){}w||(e.D=!1);return w})}; cQH=function(e,N){if(e.J.length!==0){var y=new URL(bBE(e));y.searchParams.delete("format");var w=e.VO();w&&y.searchParams.set("auth",w);y.searchParams.set("authuser",e.sessionIndex||"0");for(w=0;w<10&&e.J.length;++w){var E=e.J.slice(0,32),A=e.K.build(E,e.j,e.Z,e.z5,e.Kh,e.Ng);if(!N(y.toString(),A)){++e.Z;break}e.j=0;e.Z=0;e.Kh=0;e.Ng=0;e.J=e.J.slice(E.length)}e.N.enabled&&e.N.stop()}}; XS=function(){return"https://play.google.com/log?format=json&hasfast=true"}; ds=function(){this.kF=typeof AbortController!=="undefined"}; IC=function(e,N){g.x.call(this);this.logSource=e;this.sessionIndex=N;this.g1="https://play.google.com/log?format=json&hasfast=true";this.N=null;this.j=!1;this.network=null;this.componentId="";this.J=this.z5=null;this.K=!1;this.pageId=null}; BPF=function(e,N){e.N=N;return e}; XyM=function(e,N){e.network=N;return e}; PV9=function(e,N){e.J=N}; vC=function(e,N,y,w,E,A,T){e=e===void 0?-1:e;N=N===void 0?"":N;y=y===void 0?"":y;w=w===void 0?!1:w;E=E===void 0?"":E;g.x.call(this);this.logSource=e;this.componentId=N;A?N=A:(e=new IC(e,"0"),e.componentId=N,g.Q(this,e),y!==""&&(e.g1=y),w&&(e.j=!0),E&&BPF(e,E),T&&XyM(e,T),N=e.build());this.J=N}; dqM=function(e){this.J=e}; zN=function(e,N,y){this.N=e;this.j=N;this.fields=y||[];this.J=new Map}; pW5=function(e){return e.fields.map(function(N){return N.fieldType})}; JK0=function(e){return e.fields.map(function(N){return N.fieldName})}; iQ=function(e,N){zN.call(this,e,3,N)}; DH=function(e,N){zN.call(this,e,2,N)}; g.gs=function(e,N){this.type=e;this.currentTarget=this.target=N;this.defaultPrevented=this.N=!1}; Vp=function(e,N){g.gs.call(this,e?e.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.J=null;e&&this.init(e,N)}; fg=function(e){return!(!e||!e[I80])}; zAJ=function(e,N,y,w,E){this.listener=e;this.proxy=null;this.src=N;this.type=y;this.capture=!!w;this.bB=E;this.key=++vfM;this.removed=this.sj=!1}; tL=function(e){e.removed=!0;e.listener=null;e.proxy=null;e.src=null;e.bB=null}; uQ=function(e){this.src=e;this.listeners={};this.J=0}; g.q8=function(e,N){var y=N.type;y in e.listeners&&g.Lq(e.listeners[y],N)&&(tL(N),e.listeners[y].length==0&&(delete e.listeners[y],e.J--))}; ZH=function(e,N,y,w){for(var E=0;E1)));T=T.next)E||(A=T);E&&(y.J==0&&w==1?a8J(y,N):(A?(w=A,w.next==y.j&&(y.j=w),w.next=w.next.next):eS0(y),NG9(y,E,3,N)))}e.K=null}else M0(e,3,N)}; bB=function(e,N){e.N||e.J!=2&&e.J!=3||ytH(e);e.j?e.j.next=N:e.N=N;e.j=N}; wP1=function(e,N,y,w){var E=FK(null,null,null);E.J=new g.lB(function(A,T){E.K=N?function(p){try{var C=N.call(w,p);A(C)}catch(r){T(r)}}:A; E.N=y?function(p){try{var C=y.call(w,p);C===void 0&&p instanceof cc?T(p):A(C)}catch(r){T(r)}}:T}); E.J.K=e;bB(e,E);return E.J}; M0=function(e,N,y){e.J==0&&(e===y&&(N=3,y=new TypeError("Promise cannot resolve to itself")),e.J=1,OB5(y,e.mSg,e.nxg,e)||(e.G=y,e.J=N,e.K=null,ytH(e),N!=3||y instanceof cc||NiF(e,y)))}; OB5=function(e,N,y,w){if(e instanceof g.lB)return sLs(e,N,y,w),!0;if(e)try{var E=!!e.$goog_Thenable}catch(T){E=!1}else E=!1;if(E)return e.then(N,y,w),!0;if(g.W5(e))try{var A=e.then;if(typeof A==="function")return ya0(e,A,N,y,w),!0}catch(T){return y.call(w,T),!0}return!1}; ya0=function(e,N,y,w,E){function A(C){p||(p=!0,w.call(E,C))} function T(C){p||(p=!0,y.call(E,C))} var p=!1;try{N.call(e,T,A)}catch(C){A(C)}}; ytH=function(e){e.Z||(e.Z=!0,g.Jo(e.Mi,e))}; eS0=function(e){var N=null;e.N&&(N=e.N,e.N=N.next,N.next=null);e.N||(e.j=null);return N}; NG9=function(e,N,y,w){if(y==3&&N.N&&!N.j)for(;e&&e.L;e=e.K)e.L=!1;if(N.J)N.J.K=null,w4_(N,y,w);else try{N.j?N.K.call(N.context):w4_(N,y,w)}catch(E){EY1.call(null,E)}qWM(WDP,N)}; w4_=function(e,N,y){N==2?e.K.call(e.context,y):e.N&&e.N.call(e.context,y)}; NiF=function(e,N){e.L=!0;g.Jo(function(){e.L&&EY1.call(null,N)})}; cc=function(e){FF.call(this,e)}; Uqn=function(e,N,y){this.promise=e;this.resolve=N;this.reject=y}; g.kT=function(e,N){g.Ux.call(this);this.uR=e||1;this.LH=N||g.xJ;this.jM=(0,g.Gs)(this.dSh,this);this.fK=g.s9()}; g.Bc=function(e,N,y){if(typeof e==="function")y&&(e=(0,g.Gs)(e,y));else if(e&&typeof e.handleEvent=="function")e=(0,g.Gs)(e.handleEvent,e);else throw Error("Invalid listener argument");return Number(N)>2147483647?-1:g.xJ.setTimeout(e,N||0)}; XK=function(e,N){var y=null;return(new g.lB(function(w,E){y=g.Bc(function(){w(N)},e); y==-1&&E(Error("Failed to schedule timer."))})).On(function(w){g.xJ.clearTimeout(y); throw w;})}; g.Pc=function(e){g.x.call(this);this.G=e;this.j=0;this.K=100;this.L=!1;this.N=new Map;this.Z=new Set;this.flushInterval=3E4;this.J=new g.kT(this.flushInterval);this.J.listen("tick",this.uW,!1,this);g.Q(this,this.J)}; AaJ=function(e){e.J.enabled||e.J.start();e.j++;e.j>=e.K&&e.uW()}; TiJ=function(e,N){return e.Z.has(N)?void 0:e.N.get(N)}; Jan=function(e){for(var N=0;N=0){var A=e[y].substring(0,w);E=e[y].substring(w+1)}else A=e[y];N(A,E?GJ(E):"")}}}; xT=function(e,N){if(!N)return e;var y=e.indexOf("#");y<0&&(y=e.length);var w=e.indexOf("?");if(w<0||w>y){w=y;var E=""}else E=e.substring(w+1,y);e=[e.slice(0,w),E,e.slice(y)];y=e[1];e[1]=N?y?y+"&"+N:N:y;return e[0]+(e[1]?"?"+e[1]:"")+e[2]}; j9=function(e,N,y){if(Array.isArray(N))for(var w=0;w=0&&Ny)E=y;w+=N.length+1;return GJ(e.slice(w,E!==-1?E:0))}; KY=function(e,N){for(var y=e.search(kM5),w=0,E,A=[];(E=caM(e,w,N,y))>=0;)A.push(e.substring(w,E)),w=Math.min(e.indexOf("&",E)+1||y,y);A.push(e.slice(w));return A.join("").replace(Bi_,"$1")}; X45=function(e,N,y){return mV(KY(e,N),N,y)}; g.Wc=function(e){g.Ux.call(this);this.headers=new Map;this.i9=e||null;this.K=!1;this.J=null;this.U="";this.N=0;this.j="";this.L=this.qg=this.D=this.Kh=!1;this.Ng=0;this.Z=null;this.l9="";this.G=!1}; dPE=function(e,N,y,w,E,A,T){var p=new g.Wc;P89.push(p);N&&p.listen("complete",N);p.TT("ready",p.YF);A&&(p.Ng=Math.max(0,A));T&&(p.G=T);p.send(e,y,w,E)}; vY0=function(e,N){e.K=!1;e.J&&(e.L=!0,e.J.abort(),e.L=!1);e.j=N;e.N=5;IAH(e);O0(e)}; IAH=function(e){e.Kh||(e.Kh=!0,e.dispatchEvent("complete"),e.dispatchEvent("error"))}; zm_=function(e){if(e.K&&typeof RD!="undefined")if(e.D&&g.G8(e)==4)setTimeout(e.ZO.bind(e),0);else if(e.dispatchEvent("readystatechange"),e.isComplete()){e.getStatus();e.K=!1;try{if(U0(e))e.dispatchEvent("complete"),e.dispatchEvent("success");else{e.N=6;try{var N=g.G8(e)>2?e.J.statusText:""}catch(y){N=""}e.j=N+" ["+e.getStatus()+"]";IAH(e)}}finally{O0(e)}}}; O0=function(e,N){if(e.J){e.Z&&(clearTimeout(e.Z),e.Z=null);var y=e.J;e.J=null;N||e.dispatchEvent("ready");try{y.onreadystatechange=null}catch(w){}}}; U0=function(e){var N=e.getStatus();a:switch(N){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var y=!0;break a;default:y=!1}if(!y){if(N=N===0)e=g.to(1,String(e.U)),!e&&g.xJ.self&&g.xJ.self.location&&(e=g.xJ.self.location.protocol.slice(0,-1)),N=!i9E.test(e?e.toLowerCase():"");y=N}return y}; g.G8=function(e){return e.J?e.J.readyState:0}; g.LY=function(e){try{return e.J?e.J.responseText:""}catch(N){return""}}; g.s0=function(e){try{if(!e.J)return null;if("response"in e.J)return e.J.response;switch(e.l9){case "":case "text":return e.J.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in e.J)return e.J.mozResponseArrayBuffer}return null}catch(N){return null}}; g.DP1=function(e){var N={};e=(e.J&&g.G8(e)>=2?e.J.getAllResponseHeaders()||"":"").split("\r\n");for(var y=0;y0&&p>=N,g1:e.g1,e4:e.e4,gj:e.gj};w=w===void 0?[]:w;return new Cw(e,w)}; Fa=function(e){function N(S,k,X,d){Promise.resolve().then(function(){C.done();p.DU();p.dispose();T.resolve({yv:S,IM1:k,aDs:X,izP:d})})} function y(S,k,X,d){if(!w.logger.Ss()){var v="k";k?v="h":X&&(v="u");v!=="k"?d!==0&&(w.logger.pm(v),w.logger.WJ(v,S)):w.N<=0?(w.logger.pm(v),w.logger.WJ(v,S),w.N=Math.floor(Math.random()*200)):w.N--}} g.x.call(this);var w=this;this.N=Math.floor(Math.random()*200);this.J=new Mv;if("challenge"in e&&qAM(e.challenge)){var E=Mq(e.challenge,4);var A=Mq(e.challenge,5);Mq(e.challenge,7)&&(this.J=Z9F(Mq(e.challenge,7)))}else E=e.program,A=e.globalName;this.addOnDisposeCallback(function(){var S,k,X;return g.f(function(d){if(d.J==1)return g.D(d,w.K,2);S=d.N;k=S.IM1;(X=k)==null||X();g.hn(d)})}); this.logger=uw5(e.EW||{},this.J,e.Uh);g.Q(this,this.logger);var T=new g.lq;this.K=T.promise;this.logger.pm("t");var p=this.logger.share(),C=new yX(p,"t");if(!g.xJ[A])throw this.logger.iR(25),Error("EGOU");if(!g.xJ[A].a)throw this.logger.iR(26),Error("ELIU");try{var r=g.xJ[A].a;A=[];for(var Y=[],M=ks3(this.J),l=0;l>1,N),I7(e,e.length>>1)]}; yL1=function(e){var N=g.c(Nss(e,vn));e=N.next().value;N=N.next().value;return e.toString(16)+N.toString(16)}; wCn=function(e,N){var y=Nss(N);e=new Uint32Array(e.buffer);N=e[0];var w=g.c(y);y=w.next().value;w=w.next().value;for(var E=1;E>>8|T<<24,T+=A|0,T^=p+38293,A=A<<3|A>>>29,A^=T,C=C>>>8|C<<24,C+=p|0,C^=r+38293,p=p<<3|p>>>29,p^=C;A=[A,T];e[E]^=A[0];E+1=y?(globalThis.sessionStorage.removeItem(e),["e"]):["a",new Uint8Array(w.buffer,N+4)]}; za=function(e,N,y){y=y===void 0?[]:y;this.maxItems=e;this.J=N===void 0?0:N;this.N=y}; TsM=function(e){var N=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!N)return new za(e);var y=N.split(",");if(y.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new za(e);N=y.slice(1);N.length===1&&N[0]===""&&(N=[]);y=Number(y[0]);return isNaN(y)||y<0||y>N.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new za(e)):new za(e,y,N)}; JL9=function(e,N){this.logger=N;try{var y=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(w){y=!1}y&&(this.index=TsM(e))}; pCs=function(e,N,y,w,E){var A=e.index?E5(e.logger,function(){return EvP(e.index,yL1(N),y,w,E)},"W"):"u"; e.logger.sx(A)}; CQP=function(e,N,y){var w=g.c(e.index?E5(e.logger,function(){return ALP(yL1(N),y)},"R"):["u"]),E=w.next().value; w=w.next().value;e.logger.Qz(E);return w}; Yx_=function(e){function N(){y-=w;y-=E;y^=E>>>13;w-=E;w-=y;w^=y<<8;E-=y;E-=w;E^=w>>>13;y-=w;y-=E;y^=E>>>12;w-=E;w-=y;w^=y<<16;E-=y;E-=w;E^=w>>>5;y-=w;y-=E;y^=E>>>3;w-=E;w-=y;w^=y<<10;E-=y;E-=w;E^=w>>>15} e=rL9(e);for(var y=2654435769,w=2654435769,E=314159265,A=e.length,T=A,p=0;T>=12;T-=12,p+=12)y+=DV(e,p),w+=DV(e,p+4),E+=DV(e,p+8),N();E+=A;switch(T){case 11:E+=e[p+10]<<24;case 10:E+=e[p+9]<<16;case 9:E+=e[p+8]<<8;case 8:w+=e[p+7]<<24;case 7:w+=e[p+6]<<16;case 6:w+=e[p+5]<<8;case 5:w+=e[p+4];case 4:y+=e[p+3]<<24;case 3:y+=e[p+2]<<16;case 2:y+=e[p+1]<<8;case 1:y+=e[p+0]}N();return $8E.toString(E)}; rL9=function(e){for(var N=[],y=0;y>7,e.error.code]);w.set(y,4);return w}; QX=function(){var e=0,N;return function(y){N||(N=new Af);var w=new nw(N,e,1),E=fw(w,function(){return jt(y)},!0); w.dispose();e++;return E}}; nw=function(e,N,y){gq.call(this,e);this.j=N;this.clientState=y;this.J="S";this.K="q"}; jt=function(e){return globalThis.TextEncoder?(new TextEncoder).encode(e):g.hV(e)}; mG=function(e,N,y){g.x.call(this);var w=this;this.logger=e;this.onError=N;this.state=y;this.G=0;this.N=void 0;this.addOnDisposeCallback(function(){w.J&&(w.J.dispose(),w.J=void 0)})}; F_M=function(e,N){N=N instanceof St?N:new St(5,"TVD:error",N);return e.reportError(N)}; Hn=function(e,N,y){try{if(e.Ss())throw new St(21,"BNT:disposed");if(!e.J&&e.N)throw e.N;var w,E;return(E=(w=Sx3(e,N,y))!=null?w:ovM(e,N,y))!=null?E:bg3(e,N,y)}catch(A){if(!N.Dw)throw F_M(e,A);return hR0(e,y,A)}}; Sx3=function(e,N,y){var w;return(w=e.J)==null?void 0:fw(w,function(){return Kw(e,N)},y,function(E){var A; if(e.J instanceof tf&&((A=N.h1)==null?0:A.W4))try{var T;(T=e.cache)==null||pCs(T,Kw(e,N),E,N.h1.Lk,e.U-120)}catch(p){e.reportError(new St(24,"ELX:write",p))}})}; ovM=function(e,N,y){var w;if((w=N.h1)!=null&&w.Xa)try{var E,A=(E=e.cache)==null?void 0:CQP(E,Kw(e,N),N.h1.Lk);return A?y?E5(e.logger,function(){return g.oN(A,2)},"a"):A:void 0}catch(T){e.reportError(new St(23,"RXO:read",T))}}; bg3=function(e,N,y){var w={stack:[],error:void 0,hasError:!1};try{if(!N.Ic)throw new St(29,"SDF:notready");return fw(NM(w,new nw(e.logger,e.G,e.state)),function(){return Kw(e,N)},y)}catch(E){w.error=E,w.hasError=!0}finally{w5(w)}}; hR0=function(e,N,y){var w={stack:[],error:void 0,hasError:!1};try{var E=F_M(e,y);return fw(NM(w,new ZV(e.logger,E)),function(){return[]},N)}catch(A){w.error=A,w.hasError=!0}finally{w5(w)}}; Kw=function(e,N){return N.OU?N.OU:N.qX?E5(e.logger,function(){return N.OU=jt(N.qX)},"c"):[]}; O5=function(e){var N;mG.call(this,e.f$.lC(),(N=e.onError)!=null?N:function(){},0); var y=this;this.L=0;this.j=new g.lq;this.K=!1;this.f$=e.f$;this.Gq=e.Gq;this.T3=Object.assign({},cL3,e.T3||{});e.Ao&&(this.logger instanceof Cw||this.logger instanceof Ta)&&this.logger.zf(e.Ao);this.XV=e.XV||!1;if(kN0(e)){var w=this.f$;this.Z=function(){return O90(w).catch(function(T){T=y.reportError(new St(y.K?20:32,"TRG:Disposed",T));y.N=T;var p;(p=y.J)==null||p.dispose();y.J=void 0;y.j.reject(T)})}; Rm0(w,function(){return void Wn(y)}); w.U===2&&Wn(this)}else this.Z=e.nyt,Wn(this);var E=this.logger.share();E.pm("o");var A=new yX(E,"o");this.j.promise.then(function(){A.done();E.DU();E.dispose()},function(){return void E.dispose()}); this.addOnDisposeCallback(function(){y.K||(y.N?y.logger.DU():(y.N=y.reportError(new St(32,"TNP:Disposed")),y.logger.DU(),y.j.reject(y.N)));y.logger.dispose()})}; BsM=function(e,N){N=N instanceof St?N:N instanceof dR?new St(11,"EBH:Error",N):new St(12,"BSO:Unknown",N);return e.reportError(N)}; Wn=function(e){var N,y,w,E,A,T,p,C,r,Y,M,l,F,S,k;return g.f(function(X){switch(X.J){case 1:N=void 0;e.L++;y=new g.lq;e.f$ instanceof Xa&&e.f$.j.push(y.promise);if(!e.XV){X.u9(2);break}w=new g.lq;setTimeout(function(){return void w.resolve()}); return g.D(X,w.promise,2);case 2:return E=e.logger.share(),g.c5(X,4,5),e.state=5,A={},T=[],g.D(X,dq(e.f$.snapshot({qX:A,PH:T}),e.T3.kSB,function(){return Promise.reject(new St(15,"MDA:Timeout"))}),7); case 7:p=X.N;if(e.Ss())throw new St(e.K?20:32,"MDA:Disposed");C=T[0];e.state=6;return g.D(X,dq(E.S3("g",1,e.Gq.BU(p)),e.T3.JQ,function(){return Promise.reject(new St(10,"BWB:Timeout"))}),8); case 8:r=X.N;if(e.Ss())throw new St(e.K?20:32,"BWB:Disposed");e.state=7;N=E5(E,function(){var v=XCF(e,r,y,C);v.N.promise.then(function(){return void e.Z()}).catch(function(){}); return v},"i"); case 5:g.P5(X);E.dispose();g.d_(X,6);break;case 4:Y=g.XH(X);(M=N)==null||M.dispose();if(!e.N){l=BsM(e,Y);y.resolve();var d;if(d=e.f$ instanceof Xa&&e.L<2)a:if(Y instanceof St)d=Y.code!==32&&Y.code!==20&&Y.code!==10;else{if(Y instanceof dR)switch(Y.code){case 2:case 13:case 14:case 4:break;default:d=!1;break a}d=!0}if(d)return F=(1+Math.random()*.25)*(e.K?6E4:1E3),S=setTimeout(function(){return void e.Z()},F),e.addOnDisposeCallback(function(){return void clearTimeout(S)}),X.return(); e.N=l}E.iR(e.K?13:14);e.j.reject(e.N);return X.return();case 6:e.state=8,e.L=0,(k=e.J)==null||k.dispose(),e.J=N,e.K=!0,e.j.resolve(),g.hn(X)}})}; XCF=function(e,N,y,w){var E=Yf(N,2)*1E3;if(E<=0)throw new St(31,"TTM:Invalid");if(Mq(N,4))return new qv(e.logger,Mq(N,4),E);if(!Yf(N,3))return new uq(e.logger,IN(RF(N,1)),E);if(!w)throw new St(4,"PMD:Undefined");w=w(IN(RF(N,1)));if(!(w instanceof Function))throw new St(16,"APF:Failed");e.U=Math.floor((Date.now()+E)/1E3);e=new tf(e.logger,w,Yf(N,3),E);e.addOnDisposeCallback(function(){return void y.resolve()}); return e}; R7=function(e){this.wT=ic(e)}; PQ_=function(e,N,y){this.EK=e;this.Uo=N;this.metadata=y}; Ga=function(e,N){N=N===void 0?{}:N;this.lMs=e;this.metadata=N;this.status=null}; U5=function(e,N,y,w,E){this.name=e;this.methodType="unary";this.requestType=N;this.responseType=y;this.J=w;this.N=E}; Lw=function(e){this.wT=ic(e)}; s5=function(e){this.wT=ic(e)}; a7=function(e){this.wT=ic(e)}; ee=function(e,N){this.G=e.TTP;this.U=N;this.J=e.xhr;this.K=[];this.L=[];this.Z=[];this.j=[];this.N=[];this.G&&d8n(this)}; igM=function(e,N){var y=new IHn;g.jv(e.J,"complete",function(){if(U0(e.J)){var w=g.LY(e.J);if(N&&e.J.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");w=atob(w)}try{var E=e.U(w)}catch(p){Nk(e,yP(new dR(13,"Error when deserializing response data; error: "+p+(", response: "+w)),y));return}w=p4n(e.J.getStatus());wS(e,EJ(e));w==0?vvn(e,E):Nk(e,yP(new dR(w,"Xhr succeeded but the status code is not 200"),y))}else{w=g.LY(e.J);E=EJ(e);if(w){var A=zRJ(e, w);w=A.code;var T=A.details;A=A.metadata}else w=2,T="Rpc failed due to xhr error. uri: "+String(e.J.U)+", error code: "+e.J.N+", error: "+e.J.getLastError(),A=E;wS(e,E);Nk(e,yP(new dR(w,T,A),y))}})}; d8n=function(e){e.G.BF("data",function(N){if("1"in N){var y=N["1"];try{var w=e.U(y)}catch(E){Nk(e,new dR(13,"Error when deserializing response data; error: "+E+(", response: "+y)))}w&&vvn(e,w)}if("2"in N)for(N=zRJ(e,N["2"]),y=0;y-1&&e.splice(N,1)}; vvn=function(e,N){for(var y=0;y>4&15).toString(16)+(e&15).toString(16)}; Se=function(e,N){this.N=this.J=null;this.K=e||null;this.j=!!N}; cN=function(e){e.J||(e.J=new Map,e.N=0,e.K&&Z9(e.K,function(N,y){e.add(GJ(N),y)}))}; uSM=function(e,N){cN(e);N=ku(e,N);return e.J.has(N)}; g.qxH=function(e,N,y){e.remove(N);y.length>0&&(e.K=null,e.J.set(ku(e,N),g.eE(y)),e.N=e.N+y.length)}; ku=function(e,N){N=String(N);e.j&&(N=N.toLowerCase());return N}; VvM=function(e,N){N&&!e.j&&(cN(e),e.K=null,e.J.forEach(function(y,w){var E=w.toLowerCase();w!=E&&(this.remove(w),g.qxH(this,E,y))},e)); e.j=N}; g.Zg5=function(e){var N="";g.oB(e,function(y,w){N+=w;N+=":";N+=y;N+="\r\n"}); return N}; g.BN=function(e,N,y){if(g.v4(y))return e;y=g.Zg5(y);if(typeof e==="string")return mV(e,g.RA(N),y);g.bX(e,N,y);return e}; g.XL=function(e){g.x.call(this);this.N=e;this.J={}}; x80=function(e,N,y,w,E,A){if(Array.isArray(y))for(var T=0;T0&&(N[E]=w)},e); return N}; l93=function(e){e=Jr(e);var N=[];g.oB(e,function(y,w){w in Object.prototype||typeof y!="undefined"&&N.push([w,":",y].join(""))}); return N}; S09=function(e){E7(e,"od",FVM);E7(e,"opac",po).J=!0;E7(e,"sbeos",po).J=!0;E7(e,"prf",po).J=!0;E7(e,"mwt",po).J=!0;E7(e,"iogeo",po)}; oT0=function(){this.J=this.Gl=null}; Co=function(){}; $n=function(){if(!rn())throw Error();}; rn=function(){return!(!Yn||!Yn.performance)}; ML=function(e){return e?e.passive&&bY_()?e:e.capture||!1:!1}; lM=function(e,N,y,w){return e.addEventListener?(e.addEventListener(N,y,ML(w)),!0):!1}; FR=function(e){return e.prerendering?3:{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[e.visibilityState||e.webkitVisibilityState||e.mozVisibilityState||""]||0}; htn=function(){}; co5=function(){return(i_||DZ)&&g5?g5.mobile:!Sb()&&(fq("iPod")||fq("iPhone")||fq("Android")||fq("IEMobile"))}; Sb=function(){return(i_||DZ)&&g5?!g5.mobile&&(fq("iPad")||fq("Android")||fq("Silk")):fq("iPad")||fq("Android")&&!fq("Mobile")||fq("Silk")}; op=function(e){try{return!!e&&e.location.href!=null&&T50(e,"foo")}catch(N){return!1}}; bM=function(e,N){if(e)for(var y in e)Object.prototype.hasOwnProperty.call(e,y)&&N(e[y],y,e)}; BR3=function(){var e=[];bM(k83,function(N){e.push(N)}); return e}; Xc5=function(e){var N,y;return(y=(N=/https?:\/\/[^\/]+/.exec(e))==null?void 0:N[0])!=null?y:""}; I9J=function(){var e=PBF("IFRAME"),N={};g.$R(d0s(),function(y){e.sandbox&&e.sandbox.supports&&e.sandbox.supports(y)&&(N[y]=!0)}); return N}; PBF=function(e,N){N=N===void 0?document:N;return N.createElement(String(e).toLowerCase())}; vT5=function(e){for(var N=e;e&&e!=e.parent;)e=e.parent,op(e)&&(N=e);return N}; gTP=function(e){e=e||hr();for(var N=new ztE(g.xJ.location.href,!1),y=null,w=e.length-1,E=w;E>=0;--E){var A=e[E];!y&&iY5.test(A.url)&&(y=A);if(A.url&&!A.OI){N=A;break}}E=null;A=e.length&&e[w].url;N.depth!=0&&A&&(E=e[w]);return new D0_(N,E,y)}; hr=function(){var e=g.xJ,N=[],y=null;do{var w=e;if(op(w)){var E=w.location.href;y=w.document&&w.document.referrer||null}else E=y,y=null;N.push(new ztE(E||""));try{e=w.parent}catch(A){e=null}}while(e&&w!=e);w=0;for(e=N.length-1;w<=e;++w)N[w].depth=e-w;w=g.xJ;if(w.location&&w.location.ancestorOrigins&&w.location.ancestorOrigins.length==N.length-1)for(e=1;eN&&(N=y.length);return 3997-N-e.K.length-1}; PQ=function(e,N){this.J=e;this.depth=N}; uKn=function(){function e(p,C){return p==null?C:p} var N=hr(),y=Math.max(N.length-1,0),w=gTP(N);N=w.J;var E=w.N,A=w.K,T=[];A&&T.push(new PQ([A.url,A.OI?2:0],e(A.depth,1)));E&&E!=A&&T.push(new PQ([E.url,2],0));N.url&&N!=A&&T.push(new PQ([N.url,0],e(N.depth,y)));w=g.dn(T,function(p,C){return T.slice(0,T.length-C)}); !N.url||(A||E)&&N!=A||(E=Xc5(N.url))&&w.push([new PQ([E,1],e(N.depth,y))]);w.push([]);return g.dn(w,function(p){return t9H(y,p)})}; t9H=function(e,N){g.Ip(N,function(E){return E.depth>=0}); var y=vQ(N,function(E,A){return Math.max(E,A.depth)},-1),w=Ews(y+2); w[0]=e;g.$R(N,function(E){return w[E.depth+1]=E.J}); return w}; q0s=function(){var e=e===void 0?uKn():e;return e.map(function(N){return BQ(N)})}; ZYP=function(e){var N=!1;N=N===void 0?!1:N;Yn.google_image_requests||(Yn.google_image_requests=[]);var y=PBF("IMG",Yn.document);N&&(y.attributionSrc="");y.src=e;Yn.google_image_requests.push(y)}; z0=function(e){var N="GS";if(e.GS&&e.hasOwnProperty(N))return e.GS;var y=new e;e.GS=y;e.hasOwnProperty(N);return y}; iM=function(){this.N=new htn;this.J=rn()?new $n:new Co}; x0P=function(){D5();var e=Yn.document;return!!(e&&e.body&&e.body.getBoundingClientRect&&typeof Yn.setInterval==="function"&&typeof Yn.clearInterval==="function"&&typeof Yn.setTimeout==="function"&&typeof Yn.clearTimeout==="function")}; jDJ=function(){D5();return q0s()}; nT9=function(){}; D5=function(){var e=z0(nT9);if(!e.J){if(!Yn)throw Error("Context has not been set and window is undefined.");e.J=z0(iM)}return e.J}; gn=function(e){this.wT=ic(e)}; QDF=function(e){this.K=e;this.J=-1;this.N=this.j=0}; V1=function(e,N){return function(){var y=g.iE.apply(0,arguments);if(e.J>-1)return N.apply(null,g.B(y));try{return e.J=e.K.J.now(),N.apply(null,g.B(y))}finally{e.j+=e.K.J.now()-e.J,e.J=-1,e.N+=1}}}; m05=function(e,N){this.N=e;this.K=N;this.J=new QDF(e)}; HYE=function(){this.J={}}; WV_=function(){var e=fo().flags,N=KV0;e=e.J[N.key];if(N.valueType==="proto"){try{var y=JSON.parse(e);if(Array.isArray(y))return y}catch(w){}return N.defaultValue}return typeof e===typeof N.defaultValue?e:N.defaultValue}; U05=function(){this.K=void 0;this.N=this.Z=0;this.L=-1;this.RJ=new wn;E7(this.RJ,"mv",OY0).J=!0;E7(this.RJ,"omid",po);E7(this.RJ,"epoh",po).J=!0;E7(this.RJ,"epph",po).J=!0;E7(this.RJ,"umt",po).J=!0;E7(this.RJ,"phel",po).J=!0;E7(this.RJ,"phell",po).J=!0;E7(this.RJ,"oseid",RtH).J=!0;var e=this.RJ;e.J.sloi||(e.J.sloi=new NL);e.J.sloi.J=!0;E7(this.RJ,"mm",tr);E7(this.RJ,"ovms",G8H).J=!0;E7(this.RJ,"xdi",po).J=!0;E7(this.RJ,"amp",po).J=!0;E7(this.RJ,"prf",po).J=!0;E7(this.RJ,"gtx",po).J=!0;E7(this.RJ, "mvp_lv",po).J=!0;E7(this.RJ,"ssmol",po).J=!0;E7(this.RJ,"fmd",po).J=!0;E7(this.RJ,"gen204simple",po);this.J=new m05(D5(),this.RJ);this.j=!1;this.flags=new HYE}; fo=function(){return z0(U05)}; LVH=function(e,N,y,w){if(Math.random()<(w||e.J))try{if(y instanceof cQ)var E=y;else E=new cQ,bM(y,function(T,p){var C=E,r=C.j++;T=kn(p,T);C.J.push(r);C.N[r]=T}); var A=E.nC(e.N,"pagead2.googlesyndication.com","/pagead/gen_204?id="+N+"&");A&&(D5(),ZYP(A))}catch(T){}}; sDn=function(e,N,y){y=y===void 0?{}:y;this.error=e;this.context=N.context;this.msg=N.message||"";this.id=N.id||"jserror";this.meta=y}; a9_=function(){var e=e===void 0?g.xJ:e;return(e=e.performance)&&e.now&&e.timing?Math.floor(e.now()+e.timing.navigationStart):g.s9()}; eO_=function(){var e=e===void 0?g.xJ:e;return(e=e.performance)&&e.now?e.now():null}; NqP=function(e,N,y){this.label=e;this.type=N;this.value=y;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; qL=function(){var e=window;this.events=[];this.N=e||g.xJ;var N=null;e&&(e.google_js_reporting_queue=e.google_js_reporting_queue||[],this.events=e.google_js_reporting_queue,N=e.google_measure_js_timing);this.J=uM()||(N!=null?N:Math.random()<1)}; yfM=function(e){e&&Z5&&uM()&&(Z5.clearMarks("goog_"+e.label+"_"+e.uniqueId+"_start"),Z5.clearMarks("goog_"+e.label+"_"+e.uniqueId+"_end"))}; wnJ=function(){var e=xn;this.J=jb;this.J6="jserror";this.Hx=!0;this.Kb=null;this.N=this.YY;this.g7=e===void 0?null:e}; Es5=function(e,N,y){var w=no;return V1(fo().J.J,function(){try{if(w.g7&&w.g7.J){var E=w.g7.start(e.toString(),3);var A=N();w.g7.end(E)}else A=N()}catch(p){var T=w.Hx;try{yfM(E),T=w.N(e,new Q1(mR(p)),void 0,y)}catch(C){w.YY(217,C)}if(!T)throw p;}return A})()}; HQ=function(e,N,y,w){return V1(fo().J.J,function(){var E=g.iE.apply(0,arguments);return Es5(e,function(){return N.apply(y,E)},w)})}; mR=function(e){var N=e.toString();e.name&&N.indexOf(e.name)==-1&&(N+=": "+e.name);e.message&&N.indexOf(e.message)==-1&&(N+=": "+e.message);if(e.stack)a:{e=e.stack;var y=N;try{e.indexOf(y)==-1&&(e=y+"\n"+e);for(var w;e!=w;)w=e,e=e.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");N=e.replace(/\n */g,"\n");break a}catch(E){N=y;break a}N=void 0}return N}; Q1=function(e){sDn.call(this,Error(e),{message:e})}; AfF=function(){Yn&&typeof Yn.google_measure_js_timing!="undefined"&&(Yn.google_measure_js_timing||xn.disable())}; Tq5=function(e){no.Kb=function(N){g.$R(e,function(y){y(N)})}}; Jfs=function(e,N){return Es5(e,N)}; Ko=function(e,N){return HQ(e,N)}; WQ=function(e,N,y,w){no.YY(e,N,y,w)}; O7=function(){return Date.now()-pnE}; CqH=function(){var e=fo().K,N=Rp>=0?O7()-Rp:-1,y=G0?O7()-U7:-1,w=Lo>=0?O7()-Lo:-1;if(e==947190542)return 100;if(e==79463069)return 200;e=[2E3,4E3];var E=[250,500,1E3];WQ(637,Error(),.001);var A=N;y!=-1&&y1500&&w<4E3?500:T}; s7=function(e,N,y,w){this.top=e;this.right=N;this.bottom=y;this.left=w}; ap=function(e){return e.right-e.left}; e2=function(e,N){return e==N?!0:e&&N?e.top==N.top&&e.right==N.right&&e.bottom==N.bottom&&e.left==N.left:!1}; NW=function(e,N,y){N instanceof g.ri?(e.left+=N.x,e.right+=N.x,e.top+=N.y,e.bottom+=N.y):(e.left+=N,e.right+=N,typeof y==="number"&&(e.top+=y,e.bottom+=y));return e}; yC=function(e,N,y){var w=new s7(0,0,0,0);this.time=e;this.volume=null;this.K=N;this.J=w;this.N=y}; wm=function(e,N,y,w,E,A,T,p){this.j=e;this.G=N;this.K=y;this.Z=w;this.J=E;this.L=A;this.N=T;this.U=p}; $v1=function(e){var N=e!==e.top,y=e.top===vT5(e),w=-1,E=0;if(N&&y&&e.top.mraid){w=3;var A=e.top.mraid}else w=(A=e.mraid)?N?y?2:1:0:-1;A&&(A.IS_GMA_SDK||(E=2),jF5(rfE,function(T){return typeof A[T]==="function"})||(E=1)); return{x7:A,compatibility:E,Fyh:w}}; Y55=function(){var e=window.document;return e&&typeof e.elementFromPoint==="function"}; Mt1=function(e,N,y){e&&N!==null&&N!=N.top&&(N=N.top);try{return(y===void 0?0:y)?(new g.l8(N.innerWidth,N.innerHeight)).round():NPJ(N||window).round()}catch(w){return new g.l8(-12245933,-12245933)}}; Eb=function(e,N,y){try{e&&(N=N.top);var w=Mt1(e,N,y),E=w.height,A=w.width;if(A===-12245933)return new s7(A,A,A,A);var T=wyH(xY(N.document).J),p=T.x,C=T.y;return new s7(C,p+A,C+E,p)}catch(r){return new s7(-12245933,-12245933,-12245933,-12245933)}}; g.pK=function(e,N,y,w){this.left=e;this.top=N;this.width=y;this.height=w}; CK=function(e,N){return e==N?!0:e&&N?e.left==N.left&&e.width==N.width&&e.top==N.top&&e.height==N.height:!1}; g.$0=function(e,N,y){if(typeof N==="string")(N=rm(e,N))&&(e.style[N]=y);else for(var w in N){y=e;var E=N[w],A=rm(y,w);A&&(y.style[A]=E)}}; rm=function(e,N){var y=lV9[N];if(!y){var w=V43(N);y=w;e.style[w]===void 0&&(w=(g.RB?"Webkit":Y0?"Moz":null)+t45(w),e.style[w]!==void 0&&(y=w));lV9[N]=y}return y}; g.MW=function(e,N){var y=e.style[V43(N)];return typeof y!=="undefined"?y:e.style[rm(e,N)]||""}; lG=function(e,N){var y=ZA(e);return y.defaultView&&y.defaultView.getComputedStyle&&(e=y.defaultView.getComputedStyle(e,null))?e[N]||e.getPropertyValue(N)||"":""}; F0=function(e,N){return lG(e,N)||(e.currentStyle?e.currentStyle[N]:null)||e.style&&e.style[N]}; g.od=function(e,N,y){if(N instanceof g.ri){var w=N.x;N=N.y}else w=N,N=y;e.style.left=g.S2(w,!1);e.style.top=g.S2(N,!1)}; bG=function(e){try{return e.getBoundingClientRect()}catch(N){return{left:0,top:0,right:0,bottom:0}}}; FGE=function(e){var N=ZA(e),y=F0(e,"position"),w=y=="fixed"||y=="absolute";for(e=e.parentNode;e&&e!=N;e=e.parentNode)if(e.nodeType==11&&e.host&&(e=e.host),y=F0(e,"position"),w=w&&y=="static"&&e!=N.documentElement&&e!=N.body,!w&&(e.scrollWidth>e.clientWidth||e.scrollHeight>e.clientHeight||y=="fixed"||y=="absolute"||y=="relative"))return e;return null}; g.hp=function(e){var N=ZA(e),y=new g.ri(0,0);if(e==(N?ZA(N):document).documentElement)return y;e=bG(e);N=wyH(xY(N).J);y.x=e.left+N.x;y.y=e.top+N.y;return y}; osn=function(e,N){var y=new g.ri(0,0),w=GM(ZA(e));if(!T50(w,"parent"))return y;do{var E=w==N?g.hp(e):S5J(e);y.x+=E.x;y.y+=E.y}while(w&&w!=N&&w!=w.parent&&(e=w.frameElement)&&(w=w.parent));return y}; g.ce=function(e,N){e=bwP(e);N=bwP(N);return new g.ri(e.x-N.x,e.y-N.y)}; S5J=function(e){e=bG(e);return new g.ri(e.left,e.top)}; bwP=function(e){if(e.nodeType==1)return S5J(e);e=e.changedTouches?e.changedTouches[0]:e;return new g.ri(e.clientX,e.clientY)}; g.k0=function(e,N,y){if(N instanceof g.l8)y=N.height,N=N.width;else if(y==void 0)throw Error("missing height argument");e.style.width=g.S2(N,!0);e.style.height=g.S2(y,!0)}; g.S2=function(e,N){typeof e=="number"&&(e=(N?Math.round(e):e)+"px");return e}; g.Be=function(e){var N=hOM;if(F0(e,"display")!="none")return N(e);var y=e.style,w=y.display,E=y.visibility,A=y.position;y.visibility="hidden";y.position="absolute";y.display="inline";e=N(e);y.display=w;y.position=A;y.visibility=E;return e}; hOM=function(e){var N=e.offsetWidth,y=e.offsetHeight,w=g.RB&&!N&&!y;return(N===void 0||w)&&e.getBoundingClientRect?(e=bG(e),new g.l8(e.right-e.left,e.bottom-e.top)):new g.l8(N,y)}; g.X0=function(e,N){e.style.display=N?"":"none"}; zu=function(e,N){N=Math.pow(10,N);return Math.floor(e*N)/N}; cfP=function(e){return new s7(e.top,e.right,e.bottom,e.left)}; kan=function(e){var N=e.top||0,y=e.left||0;return new s7(N,y+(e.width||0),N+(e.height||0),y)}; iG=function(e){return e!=null&&e>=0&&e<=1}; Bq_=function(){var e=g.zw();return e?DR("AmazonWebAppPlatform;Android TV;Apple TV;AppleTV;BRAVIA;BeyondTV;Freebox;GoogleTV;HbbTV;LongTV;MiBOX;MiTV;NetCast.TV;Netcast;Opera TV;PANASONIC;POV_TV;SMART-TV;SMART_TV;SWTV;Smart TV;SmartTV;TV Store;UnionTV;WebOS".split(";"),function(N){return P_(e,N)})||P_(e,"OMI/")&&!P_(e,"XiaoMi/")?!0:P_(e,"Presto")&&P_(e,"Linux")&&!P_(e,"X11")&&!P_(e,"Android")&&!P_(e,"Mobi"):!1}; XnP=function(){this.K=!op(Yn.top);this.isMobileDevice=Sb()||co5();var e=hr();this.domain=e.length>0&&e[e.length-1]!=null&&e[e.length-1].url!=null?g.uB(e[e.length-1].url)||"":"";this.J=new s7(0,0,0,0);this.j=new g.l8(0,0);this.L=new g.l8(0,0);this.G=new s7(0,0,0,0);this.frameOffset=new g.ri(0,0);this.Z=0;this.U=!1;this.N=!(!Yn||!$v1(Yn).x7);this.update(Yn)}; PqH=function(e,N){N&&N.screen&&(e.j=new g.l8(N.screen.width,N.screen.height))}; dv3=function(e,N){a:{var y=e.J?new g.l8(ap(e.J),e.J.getHeight()):new g.l8(0,0);N=N===void 0?Yn:N;N!==null&&N!=N.top&&(N=N.top);var w=0,E=0;try{var A=N.document,T=A.body,p=A.documentElement;if(A.compatMode=="CSS1Compat"&&p.scrollHeight)w=p.scrollHeight!=y.height?p.scrollHeight:p.offsetHeight,E=p.scrollWidth!=y.width?p.scrollWidth:p.offsetWidth;else{var C=p.scrollHeight,r=p.scrollWidth,Y=p.offsetHeight,M=p.offsetWidth;p.clientHeight!=Y&&(C=T.scrollHeight,r=T.scrollWidth,Y=T.offsetHeight,M=T.offsetWidth); C>y.height?C>Y?(w=C,E=r):(w=Y,E=M):C0||e.U)return!0;e=D5().N.isVisible();var N=FR(VC)===0;return e||N}; gm=function(){return z0(XnP)}; tp=function(e){this.K=e;this.N=0;this.J=null}; uG=function(e,N,y){this.K=e;this.Zl=y===void 0?"na":y;this.L=[];this.isInitialized=!1;this.j=new yC(-1,!0,this);this.J=this;this.U=N;this.Ng=this.D=!1;this.i9="uk";this.l9=!1;this.Z=!0}; qW=function(e,N){g.Gw(e.L,N)||(e.L.push(N),N.mC(e.J),N.h$(e.j),N.xb()&&(e.D=!0))}; IV9=function(e){e=e.J;e.aQ();e.z1();var N=gm();N.G=Eb(!1,e.K,N.isMobileDevice);dv3(gm(),e.K);e.j.J=e.WW()}; vs0=function(e){e.D=e.L.length?DR(e.L,function(N){return N.xb()}):!1}; zO9=function(e){var N=g.eE(e.L);g.$R(N,function(y){y.h$(e.j)})}; ZR=function(e){var N=g.eE(e.L);g.$R(N,function(y){y.mC(e.J)}); e.J!=e||zO9(e)}; x0=function(e,N,y,w){this.element=e;this.J=new s7(0,0,0,0);this.K=null;this.Z=new s7(0,0,0,0);this.N=N;this.RJ=y;this.l9=w;this.qg=!1;this.timestamp=-1;this.D=new wm(N.j,this.element,this.J,new s7(0,0,0,0),0,0,O7(),0);this.L=void 0}; iwF=function(e,N){return e.L?new s7(Math.max(N.top+e.L.top,N.top),Math.min(N.left+e.L.right,N.right),Math.min(N.top+e.L.bottom,N.bottom),Math.max(N.left+e.L.left,N.left)):N.clone()}; j2=function(e){this.L=!1;this.J=e;this.j=function(){}}; Dvn=function(e,N,y){this.K=y===void 0?0:y;this.N=e;this.J=N==null?"":N}; gsF=function(e){switch(Math.trunc(e.K)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; Vt3=function(e,N){return e.KN.K?!1:e.NN.N?!1:typeof e.Jtypeof N.J?!1:e.J0?w[y]-w[y-1]:w[y]})}; LK=function(){this.N=new KK;this.Zl=this.aq=0;this.Bk=new He;this.Kh=this.G=-1;this.VB=1E3;this.Dl=new KK([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.i9=this.qg=-1}; sb=function(e,N){return mv0(e.N,N===void 0?!0:N)}; ad=function(e,N,y,w){var E=E===void 0?!1:E;y=HQ(w,y);lM(e,N,y,{capture:E})}; Ne=function(e,N){N=eg(N);return N===0?0:eg(e)/N}; eg=function(e){return Math.max(e.bottom-e.top,0)*Math.max(e.right-e.left,0)}; WGn=function(e,N){if(!e||!N)return!1;for(var y=0;e!==null&&y++<100;){if(e===N)return!0;try{if(e=e.parentElement||e){var w=ZA(e),E=w&&GM(w),A=E&&E.frameElement;A&&(e=A)}}catch(T){break}}return!1}; Ow_=function(e,N,y){if(!e||!N)return!1;N=NW(e.clone(),-N.left,-N.top);e=(N.left+N.right)/2;N=(N.top+N.bottom)/2;op(window.top)&&window.top&&window.top.document&&(window=window.top);if(!Y55())return!1;e=window.document.elementFromPoint(e,N);if(!e)return!1;N=(N=(N=ZA(y))&&N.defaultView&&N.defaultView.frameElement)&&WGn(N,e);var w=e===y;e=!w&&e&&TN(e,function(E){return E===y}); return!(N||w||e)}; RO1=function(e,N,y,w){return gm().K?!1:ap(e)<=0||e.getHeight()<=0?!0:y&&w?Jfs(208,function(){return Ow_(e,N,y)}):!1}; yn=function(e,N,y){g.x.call(this);this.position=GaM.clone();this.j4=this.FQ();this.He=-2;this.timeCreated=Date.now();this.gp=-1;this.Qy=N;this.eP=null;this.jS=!1;this.mQ=null;this.opacity=-1;this.requestSource=y;this.TQG=!1;this.Xf=function(){}; this.Ah=function(){}; this.Ho=new oT0;this.Ho.Gl=e;this.Ho.J=e;this.zl=!1;this.B5={pF:null,sI:null};this.u7=!0;this.cK=null;this.Iw=this.Ug1=!1;fo().Z++;this.Cw=this.wc();this.Bh=-1;this.vG=null;this.hasCompleted=this.n1k=!1;this.RJ=new wn;S09(this.RJ);UvJ(this);this.requestSource==1?Ar(this.RJ,"od",1):Ar(this.RJ,"od",0)}; UvJ=function(e){e=e.Ho.Gl;var N;if(N=e&&e.getAttribute)N=/-[a-z]/.test("googleAvInapp")?!1:LG1&&e.dataset?"googleAvInapp"in e.dataset:e.hasAttribute?e.hasAttribute("data-"+fds()):!!e.getAttribute("data-"+fds());N&&(gm().N=!0)}; w6=function(e,N){N!=e.Iw&&(e.Iw=N,e=gm(),N?e.Z++:e.Z>0&&e.Z--)}; s7_=function(e,N){if(e.vG){if(N.getName()===e.vG.getName())return;e.vG.dispose();e.vG=null}N=N.create(e.Ho.J,e.RJ,e.xb());if(N=N!=null&&N.observe()?N:null)e.vG=N}; aV5=function(e,N,y){if(!e.eP||e.Qy==-1||N.N===-1||e.eP.N===-1)return 0;e=N.N-e.eP.N;return e>y?0:e}; e1P=function(e,N,y){if(e.vG){e.vG.n2();var w=e.vG.D,E=w.j,A=E.J;if(w.Z!=null){var T=w.K;e.mQ=new g.ri(T.left-A.left,T.top-A.top)}A=e.iC()?Math.max(w.J,w.L):w.J;T={};E.volume!==null&&(T.volume=E.volume);E=e.TC(w);e.eP=w;e.GZ(A,N,y,!1,T,E,w.U)}}; NS5=function(e){if(e.jS&&e.cK){var N=T0(e.RJ,"od")==1,y=gm().J,w=e.cK,E=e.vG?e.vG.getName():"ns",A=e.mQ,T=new g.l8(ap(y),y.getHeight());y=e.iC();e={ATk:E,mQ:A,NzP:T,iC:y,UQ:e.Cw.UQ,DSg:N};if(N=w.N){N.n2();E=N.D;A=E.j.J;var p=T=null;E.Z!=null&&A&&(T=E.K,T=new g.ri(T.left-A.left,T.top-A.top),p=new g.l8(A.right-A.left,A.bottom-A.top));E=y?Math.max(E.J,E.L):E.J;y={ATk:N.getName(),mQ:T,NzP:p,iC:y,DSg:!1,UQ:E}}else y=null;y&&j70(w,e,y)}}; yhn=function(e,N,y){N&&(e.Xf=N);y&&(e.Ah=y)}; g.Eo=function(){}; g.Aq=function(e){return{value:e,done:!1}}; wNJ=function(){this.j=this.J=this.K=this.N=this.L=0}; EuM=function(e){var N={};var y=g.s9()-e.L;N=(N.ptlt=y,N);(y=e.N)&&(N.pnk=y);(y=e.K)&&(N.pnc=y);(y=e.j)&&(N.pnmm=y);(e=e.J)&&(N.pns=e);return N}; Ah0=function(){sJ.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; Te=function(e){return iG(e.volume)&&e.volume>0}; Jq=function(e,N,y,w){y=y===void 0?!0:y;w=w===void 0?function(){return!0}:w; return function(E){var A=E[e];if(Array.isArray(A)&&w(E))return TS9(A,N,y)}}; pG=function(e,N){return function(y){return N(y)?y[e]:void 0}}; Jh_=function(e){return function(N){for(var y=0;y0?A[E-1]+1:0,w+1).reduce(function(T,p){return T+p},0)})}; pNM=function(){this.N=this.J=""}; CXH=function(){}; r6=function(e,N){var y={};if(e!==void 0)if(N!=null)for(var w in N){var E=N[w];w in Object.prototype||E!=null&&(y[w]=typeof E==="function"?E(e):e[E])}else g.VM(y,e);return mw(QC(new nK,y))}; rh5=function(){var e={};this.N=(e.vs=[1,0],e.vw=[0,1],e.am=[2,2],e.a=[4,4],e.f=[8,8],e.bm=[16,16],e.b=[32,32],e.avw=[0,64],e.avs=[64,0],e.pv=[256,256],e.gdr=[0,512],e.p=[0,1024],e.r=[0,2048],e.m=[0,4096],e.um=[0,8192],e.ef=[0,16384],e.s=[0,32768],e.pmx=[0,16777216],e.mut=[33554432,33554432],e.umutb=[67108864,67108864],e.tvoff=[134217728,134217728],e);this.J={};for(var N in this.N)this.N[N][1]>0&&(this.J[N]=0);this.K=0}; $V=function(e,N){var y=e.N[N],w=y[1];e.K+=y[0];w>0&&e.J[N]==0&&(e.J[N]=1)}; $ks=function(e){var N=g.Xw(e.N),y=0,w;for(w in e.J)g.Gw(N,w)&&e.J[w]==1&&(y+=e.N[w][1],e.J[w]=2);return y}; YJs=function(e){var N=0,y;for(y in e.J){var w=e.J[y];if(w==1||w==2)N+=e.N[y][1]}return N}; YV=function(){this.J=this.N=0}; Me=function(){LK.call(this);this.K=new He;this.Et=this.D=this.l9=0;this.U=-1;this.Kx=new He;this.L=new He;this.J=new KK;this.Z=this.j=-1;this.Ng=new He;this.VB=2E3;this.Rq=new YV;this.Ut=new YV;this.Wk=new YV}; l6=function(e,N,y){var w=e.Et;G0||y||e.U==-1||(w+=N-e.U);return w}; MeM=function(){this.K=!1}; FA=function(e,N){this.K=!1;this.j=e;this.D=N;this.L=0}; Sg=function(e,N){FA.call(this,e,N);this.G=[]}; l7_=function(){}; oZ=function(){}; b6=function(e,N,y,w){x0.call(this,e,N,y,w)}; hq=function(e,N,y){x0.call(this,null,e,N,y);this.U=e.isActive();this.G=0}; cf=function(e){return[e.top,e.left,e.bottom,e.right]}; kV=function(e,N,y,w,E,A){A=A===void 0?new oZ:A;yn.call(this,N,y,w);this.x5=E;this.f3=0;this.HI={};this.fN=new rh5;this.Ts={};this.a$="";this.Wk=null;this.dT=!1;this.J=[];this.rS=A.N();this.Z=A.K();this.j=null;this.K=-1;this.Zl=this.D=void 0;this.Kh=this.Ng=0;this.i9=-1;this.VB=this.Ut=!1;this.l9=this.U=this.N=this.JU=this.a9=0;new KK;this.Rq=this.Et=0;this.Bk=-1;this.I1=0;this.G=g.CY;this.qg=[this.FQ()];this.Y_=2;this.AN={};this.AN.pause="p";this.AN.resume="r";this.AN.skip="s";this.AN.mute="m";this.AN.unmute= "um";this.AN.exitfullscreen="ef";this.L=null;this.Dl=this.Kx=!1;this.SR=Math.floor(Date.now()/1E3-1704067200);this.aq=0}; Bf=function(e){e.hasCompleted=!0;e.I1!=0&&(e.I1=3)}; XA=function(e){return e===void 0?e:Number(e)?zu(e,3):0}; Pf=function(e,N){return e.qg[N!=null&&NMath.max(1E4,e.K/3)?0:N);var y=e.G(e)||{};y=y.currentTime!==void 0?y.currentTime:e.Ng;var w=y-e.Ng,E=0;w>=0?(e.Kh+=N,e.Rq+=Math.max(N-w,0),E=Math.min(w,e.Kh)):e.Et+=Math.abs(w);w!=0&&(e.Kh=0);e.Bk==-1&&w>0&&(e.Bk=Lo>=0?O7()-Lo:-1);e.Ng=y;return E}; ouJ=function(e,N){DR(e.Z,function(y){return y.j==N.j})||e.Z.push(N)}; bcF=function(e){var N=Rd(e.Xe().J,1);return d6(e,N)}; d6=function(e,N,y){return N>=15E3?!0:e.Ut?(y===void 0?0:y)?!0:e.K>0?N>=e.K/2:e.i9>0?N>=e.i9:!1:!1}; h1E=function(e){var N=zu(e.Cw.UQ,2),y=e.fN.K,w=e.Cw,E=Pf(e),A=XA(E.j),T=XA(E.Z),p=XA(w.volume),C=zu(E.G,2),r=zu(E.Kh,2),Y=zu(w.UQ,2),M=zu(E.qg,2),l=zu(E.i9,2);w=zu(w.wk,2);var F=e.wD().clone().round();e=e.vG&&e.vG.K?(e.vG?e.vG.K:null).clone().round():null;E=sb(E,!1);return{J1k:N,ju:y,us:A,FE:T,HC:p,y8:C,Ne:r,UQ:Y,ai:M,Ky:l,wk:w,position:F,g$:e,Ri:E}}; k3_=function(e,N){chn(e.J,N,function(){return{J1k:0,ju:void 0,us:-1,FE:-1,HC:-1,y8:-1,Ne:-1,UQ:-1,ai:-1,Ky:-1,wk:-1,position:void 0,g$:void 0,Ri:[]}}); e.J[N]=h1E(e)}; chn=function(e,N,y){for(var w=e.length;w0?1:0;M.atos= We(r.J);M.ssb=We(r.Dl,!1);M.amtos=mv0(r.J,!1);M.uac=e.a9;M.vpt=r.K.J;Y=="nio"&&(M.nio=1,M.avms="nio");M.gmm="4";M.gdr=d6(e,r.K.J,!0)?1:0;M.efpf=e.Y_;if(Y=="gsv"||Y=="nis")Y=e.vG,Y.G>0&&(M.nnut=Y.G);M.tcm=FM9(e);M.nmt=e.Et;M.bt=e.Rq;M.pst=e.Bk;M.vpaid=e.D;M.dur=e.K;M.vmtime=e.Ng;M.is=e.fN.K;e.J.length>=1&&(M.i0=e.J[0].ju,M.a0=[e.J[0].HC],M.c0=[e.J[0].UQ],M.ss0=[e.J[0].wk],Y=e.J[0].position,A=e.J[0].g$,M.p0=Y?cf(Y):void 0,Y&&A&&!e2(A,Y)&&(M.cp0=cf(A)));e.J.length>=2&&(M.i1=e.J[1].ju,M.a1=ze(e.J[1].us, e.J[1].HC,e.J[1].FE),M.c1=ze(e.J[1].y8,e.J[1].UQ,e.J[1].Ne),M.ss1=ze(e.J[1].ai,e.J[1].wk,e.J[1].Ky),Y=e.J[1].position,A=e.J[1].g$,M.p1=Y?cf(Y):void 0,Y&&A&&!e2(A,Y)&&(M.cp1=cf(A)),M.mtos1=e.J[1].Ri);e.J.length>=3&&(M.i2=e.J[2].ju,M.a2=ze(e.J[2].us,e.J[2].HC,e.J[2].FE),M.c2=ze(e.J[2].y8,e.J[2].UQ,e.J[2].Ne),M.ss2=ze(e.J[2].ai,e.J[2].wk,e.J[2].Ky),Y=e.J[2].position,A=e.J[2].g$,M.p2=Y?cf(Y):void 0,Y&&A&&!e2(A,Y)&&(M.cp2=cf(A)),M.mtos2=e.J[2].Ri);e.J.length>=4&&(M.i3=e.J[3].ju,M.a3=ze(e.J[3].us,e.J[3].HC, e.J[3].FE),M.c3=ze(e.J[3].y8,e.J[3].UQ,e.J[3].Ne),M.ss3=ze(e.J[3].ai,e.J[3].wk,e.J[3].Ky),Y=e.J[3].position,A=e.J[3].g$,M.p3=Y?cf(Y):void 0,Y&&A&&!e2(A,Y)&&(M.cp3=cf(A)),M.mtos3=e.J[3].Ri);M.cs=YJs(e.fN);N&&(M.ic=$ks(e.fN),M.dvpt=r.K.N,M.dvs=Ub(r.N,.5),M.dfvs=Ub(r.N,1),M.davs=Ub(r.J,.5),M.dafvs=Ub(r.J,1),y&&(r.K.N=0,Hws(r.N),Hws(r.J)),e.RN()&&(M.dtos=r.l9,M.dav=r.D,M.dtoss=e.f3+1,y&&(r.l9=0,r.D=0,e.f3++)),M.dat=r.L.N,M.dft=r.Ng.N,y&&(r.L.N=0,r.Ng.N=0));M.ps=[p.L.width,p.L.height];M.bs=[ap(p.J),p.J.getHeight()]; M.scs=[p.j.width,p.j.height];M.dom=p.domain;e.JU&&(M.vds=e.JU);if(e.Z.length>0||e.rS)N=g.eE(e.Z),e.rS&&N.push(e.rS),M.pings=g.dn(N,function(l){return l.toString()}); N=g.dn(g.CG(e.Z,function(l){return l.Z()}),function(l){return l.getId()}); eX5(N);M.ces=N;e.N&&(M.vmer=e.N);e.U&&(M.vmmk=e.U);e.l9&&(M.vmiec=e.l9);M.avms=e.vG?e.vG.getName():"ns";e.vG&&g.VM(M,e.vG.t$());w?(M.c=zu(e.Cw.UQ,2),M.ss=zu(e.Cw.wk,2)):M.tth=O7()-dkM;M.mc=zu(r.Kh,2);M.nc=zu(r.G,2);M.mv=XA(r.Z);M.nv=XA(r.j);M.lte=zu(e.He,2);w=Pf(e,E);sb(r);M.qmtos=sb(w);M.qnc=zu(w.G,2);M.qmv=XA(w.Z);M.qnv=XA(w.j);M.qas=w.j>0?1:0;M.qi=e.a$;M.avms||(M.avms="geo");M.psm=r.Rq.J;M.psv=r.Rq.getValue();M.psfv=r.Ut.getValue();M.psa=r.Wk.getValue();C=l93(C.RJ);C.length&&(M.veid=C);e.L&&g.VM(M, EuM(e.L));M.avas=e.Xw();M.vs=e.Vu();M.co=I7J(e);M.tm=r.aq;M.tu=r.Zl;return M}; BS1=function(e,N){if(g.Gw(vu5,N))return!0;var y=e.HI[N];return y!==void 0?(e.HI[N]=!0,!y):!1}; I7J=function(e){var N=e.aq.toString(10).padStart(2,"0");N=""+e.SR+N;e.aq<99&&e.aq++;return N}; ic_=function(){this.J={};var e=GM();i6(this,e,document);var N=z1M();try{if("1"==N){for(var y=e.parent;y!=e.top;y=y.parent)i6(this,y,y.document);i6(this,e.top,e.top.document)}}catch(w){}}; z1M=function(){var e=document.documentElement;try{if(!op(GM().top))return"2";var N=[],y=GM(e.ownerDocument);for(e=y;e!=y.top;e=e.parent)if(e.frameElement)N.push(e.frameElement);else break;return N&&N.length!=0?"1":"0"}catch(w){return"2"}}; i6=function(e,N,y){ad(y,"mousedown",function(){return Dk5(e)},301); ad(N,"scroll",function(){return guP(e)},302); ad(y,"touchmove",function(){return Ve9(e)},303); ad(y,"mousemove",function(){return f7E(e)},304); ad(y,"keydown",function(){return te5(e)},305)}; Dk5=function(e){g.oB(e.J,function(N){N.K>1E5||++N.K})}; guP=function(e){g.oB(e.J,function(N){N.J>1E5||++N.J})}; Ve9=function(e){g.oB(e.J,function(N){N.J>1E5||++N.J})}; te5=function(e){g.oB(e.J,function(N){N.N>1E5||++N.N})}; f7E=function(e){g.oB(e.J,function(N){N.j>1E5||++N.j})}; uLJ=function(){this.J=[];this.N=[]}; Df=function(e,N){return g.Ok(e.J,function(y){return y.a$==N})}; qJJ=function(e,N){return N?g.Ok(e.J,function(y){return y.Ho.Gl==N}):null}; Zc_=function(e,N){return g.Ok(e.N,function(y){return y.TJ()==2&&y.a$==N})}; Vn=function(){var e=g6;return e.J.length==0?e.N:e.N.length==0?e.J:g.aw(e.N,e.J)}; xkM=function(e,N){e=N.TJ()==1?e.J:e.N;var y=W_(e,function(w){return w==N}); return y!=-1?(e.splice(y,1),N.vG&&N.vG.unobserve(),N.dispose(),!0):!1}; jkH=function(e){var N=g6;if(xkM(N,e)){switch(e.TJ()){case 0:var y=function(){return null}; case 2:y=function(){return Zc_(N,e.a$)}; break;case 1:y=function(){return Df(N,e.a$)}}for(var w=y();w;w=y())xkM(N,w)}}; nu1=function(e){var N=g6;e=g.CG(e,function(y){return!qJJ(N,y.Ho.Gl)}); N.J.push.apply(N.J,g.B(e))}; Qks=function(e){var N=[];g.$R(e,function(y){DR(g6.J,function(w){return w.Ho.Gl===y.Ho.Gl&&w.a$===y.a$})||(g6.J.push(y),N.push(y))})}; fG=function(){this.J=this.N=null}; mkH=function(e,N){function y(w,E){N(w,E)} if(e.N==null)return!1;e.J=g.Ok(e.N,function(w){return w!=null&&w.SG()}); e.J&&(e.J.init(y)?IV9(e.J.J):N(e.J.J.SU(),e.J));return e.J!=null}; tq=function(e){e=HcM(e);j2.call(this,e.length?e[e.length-1]:new uG(Yn,0));this.K=e;this.N=null}; HcM=function(e){if(!e.length)return[];e=(0,g.CG)(e,function(y){return y!=null&&y.TM()}); for(var N=1;Ny.time?N:y},e[0])}; xV=function(e){e=e===void 0?Yn:e;j2.call(this,new uG(e,2))}; jg=function(){var e=R15();uG.call(this,Yn.top,e,"geo")}; R15=function(){fo();var e=gm();return e.K||e.N?0:2}; G3P=function(){}; nG=function(){this.done=!1;this.J={bO:0,E9:0,F_s:0,vt:0,s1:-1,pY:0,Dn:0,Fu:0,q4P:0};this.L=null;this.Z=!1;this.K=null;this.G=0;this.N=new tp(this)}; mi=function(){var e=Qn;e.Z||(e.Z=!0,Uk_(e,function(){return e.j.apply(e,g.B(g.iE.apply(0,arguments)))}),e.j())}; LM9=function(){z0(G3P);var e=z0(fG);e.J!=null&&e.J.J?IV9(e.J.J):gm().update(Yn)}; Hf=function(e,N,y){if(!e.done&&(e.N.cancel(),N.length!=0)){e.K=null;try{LM9();var w=O7();fo().L=w;if(z0(fG).J!=null)for(var E=0;E=0?O7()-Rp:-1,p=O7();E.J.s1==-1&&(T=p);var C=gm(),r=fo(),Y=Jr(r.RJ),M=Vn();try{if(M.length>0){var l=C.J;l&&(Y.bs=[ap(l),l.getHeight()]);var F=C.L;F&&(Y.ps=[F.width,F.height]);Yn.screen&&(Y.scs=[Yn.screen.width,Yn.screen.height])}else Y.url=encodeURIComponent(Yn.location.href.substring(0,512)),A.referrer&&(Y.referrer=encodeURIComponent(A.referrer.substring(0,512))); Y.tt=T;Y.pt=Rp;Y.bin=r.N;Yn.google_osd_load_pub_page_exp!==void 0&&(Y.olpp=Yn.google_osd_load_pub_page_exp);Y.deb=[1,E.J.bO,E.J.E9,E.J.vt,E.J.s1,0,E.N.N,E.J.pY,E.J.Dn,E.J.Fu,E.J.q4P,-1].join(";");Y.tvt=a7M(E,p);C.N&&(Y.inapp=1);if(Yn!==null&&Yn!=Yn.top){M.length>0&&(Y.iframe_loc=encodeURIComponent(Yn.location.href.substring(0,512)));var S=C.G;Y.is=[ap(S),S.getHeight()]}}catch(k){Y.error=1}Qn.K=Y}l=g.DA(Qn.K);F=fo().J;T0(F.K,"prf")==1?(S=new gn,E=F.J,A=0,E.J>-1&&(A=E.K.J.now()-E.J),S=Gy(S,1,Er(E.j+ A),0),E=F.J,S=Gy(S,5,pm(E.J>-1?E.N+1:E.N),0),S=Gy(S,2,bc(F.N.J.K()),"0"),S=Gy(S,3,bc(F.N.J.N()),"0"),F=Gy(S,4,bc(F.N.J.J()),"0"),S={},F=(S.pf=g.oN(F.J()),S)):F={};g.VM(l,F);g.VM(N,w,y,l,e())}])}; yrH=function(){var e=Nnn||Yn;if(!e)return"";var N=[];if(!e.location||!e.location.href)return"";N.push("url="+encodeURIComponent(e.location.href.substring(0,512)));e.document&&e.document.referrer&&N.push("referrer="+encodeURIComponent(e.document.referrer.substring(0,512)));return N.join("&")}; KG=function(){var e="youtube.player.web_20250209_00_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20250209_00_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20250209_00_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20250209_00_RC00".match(/_(\d{8})_\d+_RC\d+$/),N;if(((N=e)==null?void 0:N.length)==2)return e[1];e="youtube.player.web_20250209_00_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var y;return((y=e)==null?void 0:y.length)==3?"20"+e[1]+e[2]:null}; wQ_=function(){return"av.default_js".includes("ima_html5_sdk")?{Om:"ima",Ae:null}:"av.default_js".includes("ima_native_sdk")?{Om:"nima",Ae:null}:"av.default_js".includes("admob-native-video-javascript")?{Om:"an",Ae:null}:"youtube.player.web_20250209_00_RC00".includes("cast_js_sdk")?{Om:"cast",Ae:KG()}:"youtube.player.web_20250209_00_RC00".includes("youtube.player.web")?{Om:"yw",Ae:KG()}:"youtube.player.web_20250209_00_RC00".includes("outstream_web_client")?{Om:"out",Ae:KG()}:"youtube.player.web_20250209_00_RC00".includes("drx_rewarded_web")? {Om:"r",Ae:KG()}:"youtube.player.web_20250209_00_RC00".includes("gam_native_web_video")?{Om:"n",Ae:KG()}:"youtube.player.web_20250209_00_RC00".includes("admob_interstitial_video")?{Om:"int",Ae:KG()}:{Om:"j",Ae:null}}; RZ=function(e,N){var y={sv:"966"};Wf!==null&&(y.v=Wf);y.cb=EnJ;y.nas=g6.J.length;y.msg=e;N!==void 0&&(e=Ars(N))&&(y.e=Oo[e]);return y}; Ge=function(e){return c_(e,"custom_metric_viewable")}; Ars=function(e){var N=Ge(e)?"custom_metric_viewable":e.toLowerCase();return IB(IZ,function(y){return y==N})}; Tn3=function(){this.J=void 0;this.N=!1;this.K=0;this.j=-1;this.L="tos"}; CME=function(e){try{var N=e.split(",");return N.length>g.Xw(Jr9).length?null:vQ(N,function(y,w){w=w.toLowerCase().split("=");if(w.length!=2||pQ0[w[0]]===void 0||!pQ0[w[0]](w[1]))throw Error("Entry ("+w[0]+", "+w[1]+") is invalid.");y[w[0]]=w[1];return y},{})}catch(y){return null}}; rr5=function(e,N){if(e.J==void 0)return 0;switch(e.L){case "mtos":return e.N?Gu(N.J,e.J):Gu(N.N,e.J);case "tos":return e.N?Rd(N.J,e.J):Rd(N.N,e.J)}return 0}; Uo=function(e,N,y,w){FA.call(this,N,w);this.G=e;this.U=y}; LG=function(){}; so=function(e){FA.call(this,"fully_viewable_audible_half_duration_impression",e)}; aZ=function(e){this.J=e}; ea=function(e,N){FA.call(this,e,N)}; NH=function(e){Sg.call(this,"measurable_impression",e)}; yx=function(){aZ.apply(this,arguments)}; wN=function(e,N,y){hq.call(this,e,N,y)}; EH=function(e){e=e===void 0?Yn:e;j2.call(this,new uG(e,2))}; A7=function(e,N,y){hq.call(this,e,N,y)}; T1=function(e){e=e===void 0?Yn:e;j2.call(this,new uG(e,2))}; J7=function(){uG.call(this,Yn,2,"mraid");this.Rq=0;this.Kh=this.qg=!1;this.G=null;this.N=$v1(this.K);this.j.J=new s7(0,0,0,0);this.aq=!1}; pk=function(e,N,y){e.w6("addEventListener",N,y)}; l5M=function(e){fo().j=!!e.w6("isViewable");pk(e,"viewableChange",$LP);e.w6("getState")==="loading"?pk(e,"ready",Y73):MbM(e)}; MbM=function(e){typeof e.N.x7.AFMA_LIDAR==="string"?(e.qg=!0,FR3(e)):(e.N.compatibility=3,e.G="nc",e.hA("w"))}; FR3=function(e){e.Kh=!1;var N=T0(fo().RJ,"rmmt")==1,y=!!e.w6("isViewable");(N?!y:1)&&D5().setTimeout(Ko(524,function(){e.Kh||(S70(e),WQ(540,Error()),e.G="mt",e.hA("w"))}),500); on_(e);pk(e,e.N.x7.AFMA_LIDAR,boH)}; on_=function(e){var N=T0(fo().RJ,"sneio")==1,y=e.N.x7.AFMA_LIDAR_EXP_1!==void 0,w=e.N.x7.AFMA_LIDAR_EXP_2!==void 0;(N=N&&w)&&(e.N.x7.AFMA_LIDAR_EXP_2=!0);y&&(e.N.x7.AFMA_LIDAR_EXP_1=!N)}; S70=function(e){e.w6("removeEventListener",e.N.x7.AFMA_LIDAR,boH);e.qg=!1}; hEF=function(e,N){if(e.w6("getState")==="loading")return new g.l8(-1,-1);N=e.w6(N);if(!N)return new g.l8(-1,-1);e=parseInt(N.width,10);N=parseInt(N.height,10);return isNaN(e)||isNaN(N)?new g.l8(-1,-1):new g.l8(e,N)}; Y73=function(){try{var e=z0(J7);e.w6("removeEventListener","ready",Y73);MbM(e)}catch(N){WQ(541,N)}}; boH=function(e,N){try{var y=z0(J7);y.Kh=!0;var w=e?new s7(e.y,e.x+e.width,e.y+e.height,e.x):new s7(0,0,0,0);var E=O7(),A=fK();var T=new yC(E,A,y);T.J=w;T.volume=N;y.h$(T)}catch(p){WQ(542,p)}}; $LP=function(e){var N=fo(),y=z0(J7);e&&!N.j&&(N.j=!0,y.aq=!0,y.G&&y.hA("w",!0))}; Ck=function(){this.isInitialized=!1;this.J=this.N=null;var e={};this.G=(e.start=this.cWB,e.firstquartile=this.uhh,e.midpoint=this.ihq,e.thirdquartile=this.al9,e.complete=this.AWh,e.error=this.hGt,e.pause=this.lx,e.resume=this.nt,e.skip=this.zGk,e.viewable_impression=this.H2,e.mute=this.sD,e.unmute=this.sD,e.fullscreen=this.xgk,e.exitfullscreen=this.llP,e.fully_viewable_audible_half_duration_impression=this.H2,e.measurable_impression=this.H2,e.abandon=this.lx,e.engagedview=this.H2,e.impression=this.H2, e.creativeview=this.H2,e.progress=this.sD,e.custom_metric_viewable=this.H2,e.bufferstart=this.lx,e.bufferfinish=this.nt,e.audio_measurable=this.H2,e.audio_audible=this.H2,e);e={};this.U=(e.overlay_resize=this.yWG,e.abandon=this.YH,e.close=this.YH,e.collapse=this.YH,e.overlay_unmeasurable_impression=function(N){return vf(N,"overlay_unmeasurable_impression",fK())},e.overlay_viewable_immediate_impression=function(N){return vf(N,"overlay_viewable_immediate_impression",fK())},e.overlay_unviewable_impression= function(N){return vf(N,"overlay_unviewable_impression",fK())},e.overlay_viewable_end_of_session_impression=function(N){return vf(N,"overlay_viewable_end_of_session_impression",fK())},e); fo().N=3;crH(this);this.K=null}; rN=function(e,N,y,w){e=e.o3(null,w,!0,N);e.j=y;nu1([e]);return e}; k00=function(e,N,y){Y0M(N);var w=e.J;g.$R(N,function(E){var A=g.dn(E.criteria,function(T){var p=CME(T);if(p==null)T=null;else if(T=new Tn3,p.visible!=null&&(T.J=p.visible/100),p.audible!=null&&(T.N=p.audible==1),p.time!=null){var C=p.timetype=="mtos"?"mtos":"tos",r=nJn(p.time,"%")?"%":"ms";p=parseInt(p.time,10);r=="%"&&(p/=100);T.setTime(p,r,C)}return T}); DR(A,function(T){return T==null})||ouJ(y,new Uo(E.id,E.event,A,w))})}; BnJ=function(){var e=[],N=fo();e.push(z0(jg));T0(N.RJ,"mvp_lv")&&e.push(z0(J7));N=[new EH,new T1];N.push(new tq(e));N.push(new xV(Yn));return N}; XQE=function(e){if(!e.isInitialized){e.isInitialized=!0;try{var N=O7(),y=fo(),w=gm();Rp=N;y.K=79463069;e.N!=="o"&&(Nnn=vT5(Yn));if(x0P()){Qn.J.E9=0;Qn.J.s1=O7()-N;var E=BnJ(),A=z0(fG);A.N=E;mkH(A,function(){$D()})?Qn.done||(sk9(),qW(A.J.J,e),mi()):w.K?$D():mi()}else YD=!0}catch(T){throw g6.reset(),T; }}}; lf=function(e){Qn.N.cancel();MH=e;Qn.done=!0}; Fb=function(e){if(e.N)return e.N;var N=z0(fG).J;if(N)switch(N.getName()){case "nis":e.N="n";break;case "gsv":e.N="m"}e.N||(e.N="h");return e.N}; Sa=function(e,N,y){if(e.J==null)return N.JU|=4,!1;e=PM0(e.J,y,N);N.JU|=e;return e==0}; $D=function(){var e=[new xV(Yn)],N=z0(fG);N.N=e;mkH(N,function(){lf("i")})?Qn.done||(sk9(),mi()):lf("i")}; dLn=function(e,N){if(!e.dT){var y=vf(e,"start",fK());y=e.x5.J(y).J;var w={id:"lidarv"};w.r=N;w.sv="966";Wf!==null&&(w.v=Wf);Z9(y,function(E,A){return w[E]=E=="mtos"||E=="tos"?A:encodeURIComponent(A)}); N=yrH();Z9(N,function(E,A){return w[E]=encodeURIComponent(A)}); N="//pagead2.googlesyndication.com/pagead/gen_204?"+mw(QC(new nK,w));Zws(N);e.dT=!0}}; o1=function(e,N,y){Hf(Qn,[e],!fK());k3_(e,y);y!=4&&chn(e.qg,y,e.FQ);return vf(e,N,fK())}; crH=function(e){eE3(function(){var N=I5J();e.N!=null&&(N.sdk=e.N);var y=z0(fG);y.J!=null&&(N.avms=y.J.getName());return N})}; vn5=function(e,N,y,w){var E=qJJ(g6,y);E!==null&&E.a$!==N&&(e.yC(E),E=null);E||(N=e.o3(y,O7(),!1,N),g6.N.length==0&&(fo().K=79463069),Qks([N]),E=N,E.j=Fb(e),w&&(E.Wk=w));return E}; zEs=function(e,N){var y=e[N];y!==void 0&&y>0&&(e[N]=Math.floor(y*1E3))}; I5J=function(){var e=gm(),N={},y={},w={};return Object.assign({},(N.sv="966",N),Wf!==null&&(y.v=Wf,y),(w["if"]=e.K?"1":"0",w.nas=String(g6.J.length),w))}; bf=function(e){FA.call(this,"audio_audible",e)}; h7=function(e){Sg.call(this,"audio_measurable",e)}; cB=function(){aZ.apply(this,arguments)}; kD=function(){}; io5=function(e){this.J=e}; PM0=function(e,N,y){e=e.N();if(typeof e==="function"){var w={};var E={};w=Object.assign({},Wf!==null&&(w.v=Wf,w),(E.sv="966",E.cb=EnJ,E.e=DLs(N),E));E=vf(y,N,fK());g.VM(w,E);y.Ts[N]=E;w=y.TJ()==2?q51(w).join("&"):y.x5.J(w).J;try{return e(y.a$,w,N),0}catch(A){return 2}}else return 1}; DLs=function(e){var N=Ge(e)?"custom_metric_viewable":e;e=IB(IZ,function(y){return y==N}); return Oo[e]}; BB=function(){Ck.call(this);this.Z=null;this.L=!1;this.j="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; gn5=function(e,N,y){y=y.opt_configurable_tracking_events;e.J!=null&&Array.isArray(y)&&k00(e,y,N)}; VbH=function(e,N,y){var w=Df(g6,N);w||(w=y.opt_nativeTime||-1,w=rN(e,N,Fb(e),w),y.opt_osdId&&(w.Wk=y.opt_osdId));return w}; f5E=function(e,N,y){var w=Df(g6,N);w||(w=rN(e,N,"n",y.opt_nativeTime||-1));return w}; tb5=function(e,N){var y=Df(g6,N);y||(y=rN(e,N,"h",-1));return y}; uR_=function(e){fo();switch(Fb(e)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; xLM=function(e,N,y,w){y=y===void 0?{}:y;var E={};g.VM(E,{opt_adElement:void 0,opt_fullscreen:void 0},y);var A=e.qD(N,y);y=A?A.x5:e.IK();if(E.opt_bounds)return y.J(RZ("ol",w));if(w!==void 0)if(Ars(w)!==void 0)if(YD)e=RZ("ue",w);else if(XQE(e),MH=="i")e=RZ("i",w),e["if"]=0;else if(N=e.qD(N,E)){b:{MH=="i"&&(N.zl=!0);A=E.opt_fullscreen;A!==void 0&&w6(N,!!A);var T;if(A=!gm().N)(A=P_(g.zw(),"CrKey")&&!(P_(g.zw(),"CrKey")&&P_(g.zw(),"SmartSpeaker"))||P_(g.zw(),"PlayStation")||P_(g.zw(),"Roku")||Bq_()||P_(g.zw(), "Xbox"))||(A=g.zw(),A=P_(A,"AppleTV")||P_(A,"Apple TV")||P_(A,"CFNetwork")||P_(A,"tvOS")),A||(A=g.zw(),A=P_(A,"sdk_google_atv_x86")||P_(A,"Android TV")),A=!A;A&&(D5(),A=FR(VC)===0);if(T=A){switch(N.TJ()){case 1:dLn(N,"pv");break;case 2:e.BT(N)}lf("pv")}A=w.toLowerCase();if(T=!T)T=T0(fo().RJ,"ssmol")&&A==="loaded"?!1:g.Gw(q7s,A);if(T&&N.I1==0){MH!="i"&&(Qn.done=!1);T=E!==void 0?E.opt_nativeTime:void 0;Lo=T=typeof T==="number"?T:O7();N.jS=!0;var p=fK();N.I1=1;N.HI={};N.HI.start=!1;N.HI.firstquartile= !1;N.HI.midpoint=!1;N.HI.thirdquartile=!1;N.HI.complete=!1;N.HI.resume=!1;N.HI.pause=!1;N.HI.skip=!1;N.HI.mute=!1;N.HI.unmute=!1;N.HI.viewable_impression=!1;N.HI.measurable_impression=!1;N.HI.fully_viewable_audible_half_duration_impression=!1;N.HI.fullscreen=!1;N.HI.exitfullscreen=!1;N.f3=0;p||(N.Xe().U=T);Hf(Qn,[N],!p)}(T=N.AN[A])&&$V(N.fN,T);T0(fo().RJ,"fmd")||g.Gw(ZoH,A)&&N.rS&&N.rS.N(N,null);switch(N.TJ()){case 1:var C=Ge(A)?e.G.custom_metric_viewable:e.G[A];break;case 2:C=e.U[A]}if(C&&(w=C.call(e, N,E,w),T0(fo().RJ,"fmd")&&g.Gw(ZoH,A)&&N.rS&&N.rS.N(N,null),w!==void 0)){E=RZ(void 0,A);g.VM(E,w);w=E;break b}w=void 0}N.I1==3&&e.yC(N);e=w}else e=RZ("nf",w);else e=void 0;else YD?e=RZ("ue"):A?(e=RZ(),g.VM(e,XNn(A,!0,!1,!1))):e=RZ("nf");return typeof e==="string"?y.J():y.J(e)}; jpn=function(e,N){N&&(e.j=N)}; nn1=function(e){var N={};return N.viewability=e.J,N.googleViewability=e.N,N}; QpM=function(e,N,y){y=y===void 0?{}:y;e=xLM(z0(BB),N,y,e);return nn1(e)}; dN=function(e){var N=g.iE.apply(1,arguments).filter(function(w){return w}).join("&"); if(!N)return e;var y=e.match(/[?&]adurl=/);return y?e.slice(0,y.index+1)+N+"&"+e.slice(y.index+1):e+(e.indexOf("?")===-1?"?":"&")+N}; HoF=function(e){var N=e.url;e=e.Gnt;this.J=N;this.G=e;e=/[?&]dsh=1(&|$)/.test(N);this.L=!e&&/[?&]ae=1(&|$)/.test(N);this.Z=!e&&/[?&]ae=2(&|$)/.test(N);if((this.N=/[?&]adurl=([^&]*)/.exec(N))&&this.N[1]){try{var y=decodeURIComponent(this.N[1])}catch(w){y=null}this.K=y}this.j=(new Date).getTime()-mLJ}; KRP=function(e){e=e.G;if(!e)return"";var N="";e.platform&&(N+="&uap="+encodeURIComponent(e.platform));e.platformVersion&&(N+="&uapv="+encodeURIComponent(e.platformVersion));e.uaFullVersion&&(N+="&uafv="+encodeURIComponent(e.uaFullVersion));e.architecture&&(N+="&uaa="+encodeURIComponent(e.architecture));e.model&&(N+="&uam="+encodeURIComponent(e.model));e.bitness&&(N+="&uab="+encodeURIComponent(e.bitness));e.fullVersionList&&(N+="&uafvl="+encodeURIComponent(e.fullVersionList.map(function(y){return encodeURIComponent(y.brand)+ ";"+encodeURIComponent(y.version)}).join("|"))); typeof e.wow64!=="undefined"&&(N+="&uaw="+Number(e.wow64));return N.substring(1)}; OoP=function(e,N,y,w,E){var A=window,T=y?"//pagead2.googlesyndication.com/bg/"+UK(y)+".js":"";y=A.document;var p={};N&&(p._scs_=N);p._bgu_=T;p._bgp_=w;p._li_="v_h.3.0.0.0";E&&(p._upb_=E);(N=A.GoogleTyFxhY)&&typeof N.push=="function"||(N=A.GoogleTyFxhY=[]);N.push(p);N=xY(y).createElement("SCRIPT");N.type="text/javascript";N.async=!0;e=sF5(WRE,UK(e)+".js");g.QZ(N,e);(A=(A.GoogleTyFxhYEET||{})[N.src])?A():y.getElementsByTagName("head")[0].appendChild(N)}; REn=function(){try{var e,N;return!!((e=window)==null?0:(N=e.top)==null?0:N.location.href)&&!1}catch(y){return!0}}; DS=function(){var e=G00();e=e===void 0?"bevasrsg":e;return new Promise(function(N){var y=window===window.top?window:REn()?window:window.top,w=y[e],E;((E=w)==null?0:E.bevasrs)?N(new z1(w.bevasrs)):(w||(w={},w=(w.nqfbel=[],w),y[e]=w),w.nqfbel.push(function(A){N(new z1(A))}))})}; ULJ=function(e){var N={c:e.qX,e:e.OU,mc:e.Ic,me:e.Dw};e.h1&&(N.co={c:e.h1.Lk,a:e.h1.Xa,s:e.h1.W4});return N}; gN=function(e){g.x.call(this);this.wpc=e}; z1=function(e){g.x.call(this);var N=this;this.f$=e;this.K="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.J=void 0;this.oH=this.f$.p;this.j=this.hd.bind(this);this.addOnDisposeCallback(function(){return void LRJ(N)})}; spM=function(e){var N;return g.f(function(y){if(y.J==1){if(!e.f$.wpc)throw new St(30,"NWA");return e.N?y.return(e.N):g.D(y,e.f$.wpc(),2)}N=y.N;e.N=new gN(N);return y.return(e.N)})}; LRJ=function(e){e.J!==void 0&&(e.K.forEach(function(N){var y;(y=e.J)==null||y.removeEventListener(N,e.j)}),e.J=void 0)}; NmM=function(e){if(g.kw(g.Ly(e)))return!1;if(e.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&")>=0)return!0;try{var N=new g.rS(e)}catch(y){return g.Ok(a5_,function(w){return e.search(w)>0})!=null}return N.Z.match(eGE)?!0:g.Ok(a5_,function(y){return e.match(y)!=null})!=null}; g.Vx=function(e,N){return e.replace(yps,function(y,w){try{var E=g.zM(N,w);if(E==null||E.toString()==null)return y;E=E.toString();if(E==""||!g.kw(g.Ly(E)))return encodeURIComponent(E).replace(/%2C/g,",")}catch(A){}return y})}; fk=function(e,N){return Object.is(e,N)}; uf=function(e){var N=t7;t7=e;return N}; weM=function(e){if(e.Qh!==void 0){var N=qH;qH=!0;try{for(var y=g.c(e.Qh),w=y.next();!w.done;w=y.next()){var E=w.value;E.s0||(e=void 0,E.s0=!0,weM(E),(e=E.LD)==null||e.call(E,E))}}finally{qH=N}}}; E0H=function(){var e;return((e=t7)==null?void 0:e.UN)!==!1}; Ap0=function(e){e&&(e.rF=0);return uf(e)}; Tm_=function(e,N){uf(N);if(e&&e.TI!==void 0&&e.Ap!==void 0&&e.dO!==void 0){if(ZS(e))for(N=e.rF;Ne.rF;)e.TI.pop(),e.dO.pop(),e.Ap.pop()}}; peM=function(e,N,y){JpM(e);if(e.Qh.length===0&&e.TI!==void 0)for(var w=0;w0}; CGs=function(e){e.TI!=null||(e.TI=[]);e.Ap!=null||(e.Ap=[]);e.dO!=null||(e.dO=[])}; JpM=function(e){e.Qh!=null||(e.Qh=[]);e.n_!=null||(e.n_=[])}; $W1=function(e){function N(){if(qH)throw Error("");if(t7!==null){var w=t7.rF++;CGs(t7);w0?" "+N:N))}}; g.Ci=function(e,N){if(e.classList)Array.prototype.forEach.call(N,function(E){g.pi(e,E)}); else{var y={};Array.prototype.forEach.call(A4(e),function(E){y[E]=!0}); Array.prototype.forEach.call(N,function(E){y[E]=!0}); N="";for(var w in y)N+=N.length>0?" "+w:w;g.TY(e,N)}}; g.re=function(e,N){e.classList?e.classList.remove(N):g.J4(e,N)&&g.TY(e,Array.prototype.filter.call(A4(e),function(y){return y!=N}).join(" "))}; g.$1=function(e,N){e.classList?Array.prototype.forEach.call(N,function(y){g.re(e,y)}):g.TY(e,Array.prototype.filter.call(A4(e),function(y){return!g.Gw(N,y)}).join(" "))}; g.Y1=function(e,N,y){y?g.pi(e,N):g.re(e,N)}; v01=function(e,N){var y=!g.J4(e,N);g.Y1(e,N,y)}; g.MA=function(){g.Ux.call(this);this.J=0;this.endTime=this.startTime=null}; zG5=function(e,N){Array.isArray(N)||(N=[N]);N=N.map(function(y){return typeof y==="string"?y:y.property+" "+y.duration+"s "+y.timing+" "+y.delay+"s"}); g.$0(e,"transition",N.join(","))}; ln=function(e,N,y,w,E){g.MA.call(this);this.N=e;this.L=N;this.Z=y;this.j=w;this.G=Array.isArray(E)?E:[E]}; iKM=function(e,N,y,w){return new ln(e,N,{opacity:y},{opacity:w},{property:"opacity",duration:N,timing:"ease-in",delay:0})}; g0H=function(e){e=d5(e);if(e=="")return null;var N=String(e.slice(0,4)).toLowerCase();if(("url("1||e&&e.split(")"),null;if(e.indexOf("(")>0){if(/"|'/.test(e))return null;N=/([\-\w]+)\(/g;for(var y;y=N.exec(e);)if(!(y[1].toLowerCase()in DWs))return null}return e}; FM=function(e,N){e=g.xJ[e];return e&&e.prototype?(N=Object.getOwnPropertyDescriptor(e.prototype,N))&&N.get||null:null}; V2E=function(e){var N=g.xJ.CSSStyleDeclaration;return N&&N.prototype&&N.prototype[e]||null}; fRJ=function(e,N,y,w){if(e)return e.apply(N,w);if(g.S6&&document.documentMode<10){if(!N[y].call)throw Error("IE Clobbering detected");}else if(typeof N[y]!="function")throw Error("Clobbering detected");return N[y].apply(N,w)}; xW3=function(e){if(!e)return"";var N=document.createElement("div").style;t2H(e).forEach(function(y){var w=g.RB&&y in u0M?y:y.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");c_(w,"--")||c_(w,"var")||(y=fRJ(qbP,e,e.getPropertyValue?"getPropertyValue":"getAttribute",[y])||"",y=g0H(y),y!=null&&fRJ(ZK5,N,N.setProperty?"setProperty":"setAttribute",[w,y]))}); return N.cssText||""}; t2H=function(e){g.KM(e)?e=g.eE(e):(e=g.Xw(e),g.Lq(e,"cssText"));return e}; g.bn=function(e){var N,y=N=0,w=!1;e=e.split(jdE);for(var E=0;E.4?-1:1;return(N==0?null:N)==-1?"rtl":"ltr"}; g.BD=function(e){if(e instanceof h4||e instanceof cD||e instanceof k1)return e;if(typeof e.next=="function")return new h4(function(){return e}); if(typeof e[Symbol.iterator]=="function")return new h4(function(){return e[Symbol.iterator]()}); if(typeof e.SW=="function")return new h4(function(){return e.SW()}); throw Error("Not an iterator or iterable.");}; h4=function(e){this.N=e}; cD=function(e){this.N=e}; k1=function(e){h4.call(this,function(){return e}); this.K=e}; XM=function(e,N,y,w,E,A,T,p){this.J=e;this.G=N;this.K=y;this.L=w;this.j=E;this.Z=A;this.N=T;this.U=p}; PD=function(e,N){if(N==0)return e.J;if(N==1)return e.N;var y=C9(e.J,e.K,N),w=C9(e.K,e.j,N);e=C9(e.j,e.N,N);y=C9(y,w,N);w=C9(w,e,N);return C9(y,w,N)}; HKn=function(e,N){var y=(N-e.J)/(e.N-e.J);if(y<=0)return 0;if(y>=1)return 1;for(var w=0,E=1,A=0,T=0;T<8;T++){A=PD(e,y);var p=(PD(e,y+1E-6)-A)/1E-6;if(Math.abs(A-N)<1E-6)return y;if(Math.abs(p)<1E-6)break;else A1E-6&&T<8;T++)A=0}; g.zY=function(e){g.x.call(this);this.Z=1;this.K=[];this.j=0;this.J=[];this.N={};this.G=!!e}; Ww1=function(e,N,y){g.Jo(function(){e.apply(N,y)})}; g.D6=function(e){this.J=e}; ge=function(e){this.J=e}; OKM=function(e){this.data=e}; RGM=function(e){return e===void 0||e instanceof OKM?e:new OKM(e)}; VE=function(e){this.J=e}; g.Gu5=function(e){var N=e.creation;e=e.expiration;return!!e&&eg.s9()}; g.fi=function(e){this.J=e}; UWH=function(){}; t4=function(){}; un=function(e){this.J=e;this.N=null}; qA=function(e){if(e.J==null)throw Error("Storage mechanism: Storage unavailable");var N;((N=e.N)!=null?N:e.isAvailable())||b_(Error("Storage mechanism: Storage unavailable"))}; Z6=function(){var e=null;try{e=g.xJ.localStorage||null}catch(N){}un.call(this,e)}; Lw5=function(){var e=null;try{e=g.xJ.sessionStorage||null}catch(N){}un.call(this,e)}; x1=function(e,N){this.N=e;this.J=N+"::"}; g.j6=function(e){var N=new Z6;return N.isAvailable()?e?new x1(N,e):N:null}; ni=function(e,N){this.J=e;this.N=N}; QE=function(e){this.J=[];if(e)a:{if(e instanceof QE){var N=e.Nk();e=e.WP();if(this.J.length<=0){for(var y=this.J,w=0;w>>6:(A<65536?p[y++]=224|A>>>12:(p[y++]=240|A>>>18,p[y++]=128|A>>>12&63),p[y++]=128|A>>> 6&63),p[y++]=128|A&63);return p}; WD=function(e){for(var N=e.length;--N>=0;)e[N]=0}; O2=function(e,N,y,w,E){this.Cg=e;this.Dh=N;this.I5=y;this.LY=w;this.lgZ=E;this.xe=e&&e.length}; Rr=function(e,N){this.gY=e;this.Hg=0;this.yE=N}; GY=function(e,N){e.Xr[e.pending++]=N&255;e.Xr[e.pending++]=N>>>8&255}; U2=function(e,N,y){e.m3>16-y?(e.EP|=N<>16-e.m3,e.m3+=y-16):(e.EP|=N<>>=1,y<<=1;while(--N>0);return y>>>1}; exE=function(e,N,y){var w=Array(16),E=0,A;for(A=1;A<=15;A++)w[A]=E=E+y[A-1]<<1;for(y=0;y<=N;y++)E=e[y*2+1],E!==0&&(e[y*2]=aRF(w[E]++,E))}; N69=function(e){var N;for(N=0;N<286;N++)e.EH[N*2]=0;for(N=0;N<30;N++)e.Uz[N*2]=0;for(N=0;N<19;N++)e.bR[N*2]=0;e.EH[512]=1;e.Ud=e.UD=0;e.s$=e.matches=0}; yq1=function(e){e.m3>8?GY(e,e.EP):e.m3>0&&(e.Xr[e.pending++]=e.EP);e.EP=0;e.m3=0}; wfJ=function(e,N,y){yq1(e);GY(e,y);GY(e,~y);Ki.mT(e.Xr,e.window,N,y,e.pending);e.pending+=y}; EVs=function(e,N,y,w){var E=N*2,A=y*2;return e[E]>>7)];Li(e,T,y);p=wx[T];p!==0&&(E-=Ea[T],U2(e,E,p))}}while(w>1;T>=1;T--)s2(e,y,T);C=A;do T=e.Qj[1],e.Qj[1]=e.Qj[e.yH--],s2(e,y,1),w=e.Qj[1],e.Qj[--e.XX]=T,e.Qj[--e.XX]=w,y[C*2]=y[T*2]+y[w*2],e.depth[C]=(e.depth[T]>=e.depth[w]?e.depth[T]:e.depth[w])+1,y[T*2+1]=y[w*2+1]=C,e.Qj[1]=C++,s2(e,y,1);while(e.yH>= 2);e.Qj[--e.XX]=e.Qj[1];T=N.gY;C=N.Hg;w=N.yE.Cg;E=N.yE.xe;A=N.yE.Dh;var r=N.yE.I5,Y=N.yE.lgZ,M,l=0;for(M=0;M<=15;M++)e.Mx[M]=0;T[e.Qj[e.XX]*2+1]=0;for(N=e.XX+1;N<573;N++){var F=e.Qj[N];M=T[T[F*2+1]*2+1]+1;M>Y&&(M=Y,l++);T[F*2+1]=M;if(!(F>C)){e.Mx[M]++;var S=0;F>=r&&(S=A[F-r]);var k=T[F*2];e.Ud+=k*(M+S);E&&(e.UD+=k*(w[F*2+1]+S))}}if(l!==0){do{for(M=Y-1;e.Mx[M]===0;)M--;e.Mx[M]--;e.Mx[M+1]+=2;e.Mx[Y]--;l-=2}while(l>0);for(M=Y;M!==0;M--)for(F=e.Mx[M];F!==0;)w=e.Qj[--N],w>C||(T[w*2+1]!==M&&(e.Ud+=(M- T[w*2+1])*T[w*2],T[w*2+1]=M),F--)}exE(y,p,e.Mx)}; T61=function(e,N,y){var w,E=-1,A=N[1],T=0,p=7,C=4;A===0&&(p=138,C=3);N[(y+1)*2+1]=65535;for(w=0;w<=y;w++){var r=A;A=N[(w+1)*2+1];++T>>=1)if(N&1&&e.EH[y*2]!==0)return 0;if(e.EH[18]!==0||e.EH[20]!==0||e.EH[26]!==0)return 1;for(y=32;y<256;y++)if(e.EH[y*2]!==0)return 1;return 0}; Tz=function(e,N,y){e.Xr[e.JV+e.s$*2]=N>>>8&255;e.Xr[e.JV+e.s$*2+1]=N&255;e.Xr[e.dg+e.s$]=y&255;e.s$++;N===0?e.EH[y*2]++:(e.matches++,N--,e.EH[(ar[y]+256+1)*2]++,e.Uz[(N<256?y2[N]:y2[256+(N>>>7)])*2]++);return e.s$===e.H3-1}; pb=function(e,N){e.msg=JT[N];return N}; Cb=function(e){for(var N=e.length;--N>=0;)e[N]=0}; rx=function(e){var N=e.state,y=N.pending;y>e.qP&&(y=e.qP);y!==0&&(Ki.mT(e.output,N.Xr,N.yM,y,e.UW),e.UW+=y,N.yM+=y,e.JY+=y,e.qP-=y,N.pending-=y,N.pending===0&&(N.yM=0))}; My=function(e,N){var y=e.En>=0?e.En:-1,w=e.zW-e.En,E=0;if(e.level>0){e.I2.K3===2&&(e.I2.K3=pfP(e));AT(e,e.XQ);AT(e,e.u1);T61(e,e.EH,e.XQ.Hg);T61(e,e.Uz,e.u1.Hg);AT(e,e.fD);for(E=18;E>=3&&e.bR[C6M[E]*2+1]===0;E--);e.Ud+=3*(E+1)+5+5+4;var A=e.Ud+3+7>>>3;var T=e.UD+3+7>>>3;T<=A&&(A=T)}else A=T=w+5;if(w+4<=A&&y!==-1)U2(e,N?1:0,3),wfJ(e,y,w);else if(e.strategy===4||T===A)U2(e,2+(N?1:0),3),Aq1(e,$r,Yr);else{U2(e,4+(N?1:0),3);y=e.XQ.Hg+1;w=e.u1.Hg+1;E+=1;U2(e,y-257,5);U2(e,w-1,5);U2(e,E-4,4);for(A=0;A>>8&255;e.Xr[e.pending++]=N&255}; rq5=function(e,N){var y=e.T8,w=e.zW,E=e.Kc,A=e.DQ,T=e.zW>e.r4-262?e.zW-(e.r4-262):0,p=e.window,C=e.GE,r=e.O0,Y=e.zW+258,M=p[w+E-1],l=p[w+E];e.Kc>=e.Qu&&(y>>=2);A>e.MU&&(A=e.MU);do{var F=N;if(p[F+E]===l&&p[F+E-1]===M&&p[F]===p[w]&&p[++F]===p[w+1]){w+=2;for(F++;p[++w]===p[++F]&&p[++w]===p[++F]&&p[++w]===p[++F]&&p[++w]===p[++F]&&p[++w]===p[++F]&&p[++w]===p[++F]&&p[++w]===p[++F]&&p[++w]===p[++F]&&wE){e.Le=N;E=F;if(F>=A)break;M=p[w+E-1];l=p[w+E]}}}while((N=r[N&C])>T&&--y!== 0);return E<=e.MU?E:e.MU}; bg=function(e){var N=e.r4,y;do{var w=e.ES-e.MU-e.zW;if(e.zW>=N+(N-262)){Ki.mT(e.window,e.window,N,N,0);e.Le-=N;e.zW-=N;e.En-=N;var E=y=e.zQ;do{var A=e.head[--E];e.head[E]=A>=N?A-N:0}while(--y);E=y=N;do A=e.O0[--E],e.O0[E]=A>=N?A-N:0;while(--y);w+=N}if(e.I2.o$===0)break;E=e.I2;y=e.window;A=e.zW+e.MU;var T=E.o$;T>w&&(T=w);T===0?y=0:(E.o$-=T,Ki.mT(y,E.input,E.FY,T,A),E.state.wrap===1?E.Z_=SC(E.Z_,y,T,A):E.state.wrap===2&&(E.Z_=oG(E.Z_,y,T,A)),E.FY+=T,E.jx+=T,y=T);e.MU+=y;if(e.MU+e.J1>=3)for(w=e.zW-e.J1, e.NP=e.window[w],e.NP=(e.NP<=3&&(e.NP=(e.NP<=3)if(y=Tz(e,e.zW-e.Le,e.C$-3),e.MU-=e.C$,e.C$<=e.mf&&e.MU>=3){e.C$--;do e.zW++,e.NP=(e.NP<=3&&(e.NP=(e.NP<4096)&&(e.C$=2));if(e.Kc>=3&&e.C$<=e.Kc){w=e.zW+e.MU-3;y=Tz(e,e.zW-1-e.uD,e.Kc-3);e.MU-=e.Kc-1;e.Kc-=2;do++e.zW<=w&&(e.NP=(e.NP<=3&&e.zW>0&&(w=e.zW-1,y=A[w],y===A[++w]&&y===A[++w]&&y===A[++w])){for(E=e.zW+258;y===A[++w]&&y===A[++w]&&y===A[++w]&&y===A[++w]&&y===A[++w]&&y===A[++w]&&y===A[++w]&&y===A[++w]&&we.MU&&(e.C$=e.MU)}e.C$>=3?(y=Tz(e,1,e.C$-3),e.MU-=e.C$,e.zW+=e.C$,e.C$=0):(y=Tz(e,0,e.window[e.zW]),e.MU--,e.zW++);if(y&&(My(e,!1),e.I2.qP===0))return 1}e.J1=0;return N=== 4?(My(e,!0),e.I2.qP===0?3:4):e.s$&&(My(e,!1),e.I2.qP===0)?1:2}; YoP=function(e,N){for(var y;;){if(e.MU===0&&(bg(e),e.MU===0)){if(N===0)return 1;break}e.C$=0;y=Tz(e,0,e.window[e.zW]);e.MU--;e.zW++;if(y&&(My(e,!1),e.I2.qP===0))return 1}e.J1=0;return N===4?(My(e,!0),e.I2.qP===0?3:4):e.s$&&(My(e,!1),e.I2.qP===0)?1:2}; kr=function(e,N,y,w,E){this.vn=e;this.hyW=N;this.LoP=y;this.AM9=w;this.func=E}; Mg5=function(){this.I2=null;this.status=0;this.Xr=null;this.wrap=this.pending=this.yM=this.jz=0;this.cG=null;this.tx=0;this.method=8;this.iy=-1;this.GE=this.RB=this.r4=0;this.window=null;this.ES=0;this.head=this.O0=null;this.DQ=this.Qu=this.strategy=this.level=this.mf=this.T8=this.Kc=this.MU=this.Le=this.zW=this.eJ=this.uD=this.C$=this.En=this.iY=this.uY=this.eH=this.zQ=this.NP=0;this.EH=new Ki.Xb(1146);this.Uz=new Ki.Xb(122);this.bR=new Ki.Xb(78);Cb(this.EH);Cb(this.Uz);Cb(this.bR);this.fD=this.u1= this.XQ=null;this.Mx=new Ki.Xb(16);this.Qj=new Ki.Xb(573);Cb(this.Qj);this.XX=this.yH=0;this.depth=new Ki.Xb(573);Cb(this.depth);this.m3=this.EP=this.J1=this.matches=this.UD=this.Ud=this.JV=this.s$=this.H3=this.dg=0}; lfJ=function(e,N){if(!e||!e.state||N>5||N<0)return e?pb(e,-2):-2;var y=e.state;if(!e.output||!e.input&&e.o$!==0||y.status===666&&N!==4)return pb(e,e.qP===0?-5:-2);y.I2=e;var w=y.iy;y.iy=N;if(y.status===42)if(y.wrap===2)e.Z_=0,lg(y,31),lg(y,139),lg(y,8),y.cG?(lg(y,(y.cG.text?1:0)+(y.cG.xl?2:0)+(y.cG.extra?4:0)+(y.cG.name?8:0)+(y.cG.comment?16:0)),lg(y,y.cG.time&255),lg(y,y.cG.time>>8&255),lg(y,y.cG.time>>16&255),lg(y,y.cG.time>>24&255),lg(y,y.level===9?2:y.strategy>=2||y.level<2?4:0),lg(y,y.cG.os& 255),y.cG.extra&&y.cG.extra.length&&(lg(y,y.cG.extra.length&255),lg(y,y.cG.extra.length>>8&255)),y.cG.xl&&(e.Z_=oG(e.Z_,y.Xr,y.pending,0)),y.tx=0,y.status=69):(lg(y,0),lg(y,0),lg(y,0),lg(y,0),lg(y,0),lg(y,y.level===9?2:y.strategy>=2||y.level<2?4:0),lg(y,3),y.status=113);else{var E=8+(y.RB-8<<4)<<8;E|=(y.strategy>=2||y.level<2?0:y.level<6?1:y.level===6?2:3)<<6;y.zW!==0&&(E|=32);y.status=113;Fg(y,E+(31-E%31));y.zW!==0&&(Fg(y,e.Z_>>>16),Fg(y,e.Z_&65535));e.Z_=1}if(y.status===69)if(y.cG.extra){for(E= y.pending;y.tx<(y.cG.extra.length&65535)&&(y.pending!==y.jz||(y.cG.xl&&y.pending>E&&(e.Z_=oG(e.Z_,y.Xr,y.pending-E,E)),rx(e),E=y.pending,y.pending!==y.jz));)lg(y,y.cG.extra[y.tx]&255),y.tx++;y.cG.xl&&y.pending>E&&(e.Z_=oG(e.Z_,y.Xr,y.pending-E,E));y.tx===y.cG.extra.length&&(y.tx=0,y.status=73)}else y.status=73;if(y.status===73)if(y.cG.name){E=y.pending;do{if(y.pending===y.jz&&(y.cG.xl&&y.pending>E&&(e.Z_=oG(e.Z_,y.Xr,y.pending-E,E)),rx(e),E=y.pending,y.pending===y.jz)){var A=1;break}A=y.txE&&(e.Z_=oG(e.Z_,y.Xr,y.pending-E,E));A===0&&(y.tx=0,y.status=91)}else y.status=91;if(y.status===91)if(y.cG.comment){E=y.pending;do{if(y.pending===y.jz&&(y.cG.xl&&y.pending>E&&(e.Z_=oG(e.Z_,y.Xr,y.pending-E,E)),rx(e),E=y.pending,y.pending===y.jz)){A=1;break}A=y.txE&&(e.Z_=oG(e.Z_,y.Xr,y.pending-E,E));A===0&&(y.status=103)}else y.status= 103;y.status===103&&(y.cG.xl?(y.pending+2>y.jz&&rx(e),y.pending+2<=y.jz&&(lg(y,e.Z_&255),lg(y,e.Z_>>8&255),e.Z_=0,y.status=113)):y.status=113);if(y.pending!==0){if(rx(e),e.qP===0)return y.iy=-1,0}else if(e.o$===0&&(N<<1)-(N>4?9:0)<=(w<<1)-(w>4?9:0)&&N!==4)return pb(e,-5);if(y.status===666&&e.o$!==0)return pb(e,-5);if(e.o$!==0||y.MU!==0||N!==0&&y.status!==666){w=y.strategy===2?YoP(y,N):y.strategy===3?$eM(y,N):Bz[y.level].func(y,N);if(w===3||w===4)y.status=666;if(w===1||w===3)return e.qP===0&&(y.iy= -1),0;if(w===2&&(N===1?(U2(y,2,3),Li(y,256,$r),y.m3===16?(GY(y,y.EP),y.EP=0,y.m3=0):y.m3>=8&&(y.Xr[y.pending++]=y.EP&255,y.EP>>=8,y.m3-=8)):N!==5&&(U2(y,0,3),wfJ(y,0,0),N===3&&(Cb(y.head),y.MU===0&&(y.zW=0,y.En=0,y.J1=0))),rx(e),e.qP===0))return y.iy=-1,0}if(N!==4)return 0;if(y.wrap<=0)return 1;y.wrap===2?(lg(y,e.Z_&255),lg(y,e.Z_>>8&255),lg(y,e.Z_>>16&255),lg(y,e.Z_>>24&255),lg(y,e.jx&255),lg(y,e.jx>>8&255),lg(y,e.jx>>16&255),lg(y,e.jx>>24&255)):(Fg(y,e.Z_>>>16),Fg(y,e.Z_&65535));rx(e);y.wrap>0&& (y.wrap=-y.wrap);return y.pending!==0?0:1}; Xg=function(e){if(!(this instanceof Xg))return new Xg(e);e=this.options=Ki.assign({level:-1,method:8,chunkSize:16384,oM:15,zyl:8,strategy:0,ZF:""},e||{});e.raw&&e.oM>0?e.oM=-e.oM:e.Vf&&e.oM>0&&e.oM<16&&(e.oM+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.I2=new Fi0;this.I2.qP=0;var N=this.I2;var y=e.level,w=e.method,E=e.oM,A=e.zyl,T=e.strategy;if(N){var p=1;y===-1&&(y=6);E<0?(p=0,E=-E):E>15&&(p=2,E-=16);if(A<1||A>9||w!==8||E<8||E>15||y<0||y>9||T<0||T>4)N=pb(N,-2);else{E===8&&(E=9); var C=new Mg5;N.state=C;C.I2=N;C.wrap=p;C.cG=null;C.RB=E;C.r4=1<>=7;A<30;A++)for(Ea[A]=T<<7,E=0;E<1<=r.r4&&(N===0&&(Cb(r.head),r.zW=0,r.En=0,r.J1=0),y=new Ki.iV(r.r4),Ki.mT(y,A,T-r.r4,r.r4,0),A=y,T=r.r4);y=e.o$;w=e.FY;E=e.input;e.o$=T;e.FY=0;e.input=A;for(bg(r);r.MU>=3;){A=r.zW;T=r.MU-2;do r.NP=(r.NP<0||((((0,y[-2505-new Date("1969-12-31T13:17:19.000-10:00")/1E3])(y[72],y[49]),y[56])(y[20],y[41]),y[64])((0,y[56])(y[69],y[2]),y[65],(0,y[42])(y[1],y[62]),y[new Date("1970-01-01T01:15:49.000+01:15")/1E3])&(0,y[5])(y[39]),0))&&((((0,y[41])(y[72],(0,y[48])(),y[40]),y[41])(y[24],(0,y[new Date("1969-12-31T17:45:48.000-06:15")/ 1E3])(),y[5]),y[68])(y[72]),(0,y[61])(y[32],y[73]),(0,y[61])(y[24],y[2]),y[61])(y[32],y[57]),y[30]!=4&&(y[18]===-3?(0,y[68])(y[71]):(0,y[70])(y[36],y[72]))}catch(w){(0,y[41])(y[24],(0,y[27])(),y[5]),(0,y[23])((0,y[8])(y[34]),y[68],y[24]),(0,y[41])(y[24],(0,y[48])(),y[40]),(0,y[61])(y[62],y[6]),((0,y[41])(y[24],(0,y[27])(),y[5]),y[41])(y[32],(0,y[49])(),y[5])}finally{y[19]!=10&&((((0,y[38])(y[24],y[25]),y[31])(y[72],y[28]),y[17])(y[43],y[62]),y[70])(y[45],y[24]),y[11]>=-6&&((0,y[60])((0,y[38])(y[34], y[21]),(0,y[new Date("1970-01-01T11:30:45.000+11:30")/1E3])(y[16],y[40]),y[7],(0,y[7])((0,y[7])((0,y[1])(y[6],y[46]),y[54],y[23],y[16]),y[15],y[56],y[35]),y[52],y[46]),1)||(((((0,y[66])((0,y[28])(y[65],y[43]),y[48],y[57],(0,y[41])(),y[49]),y[51])(y[65],y[71]),y[58])(y[18],y[37]),y[58])(y[57],y[0]),y[19])(y[26],y[55]),y[34]!==1&&(((0,y[58])(y[27],y[42]),y[69])(y[66],y[12]),"4")||((0,y[50])(y[56]),y[36])(y[10]),y[0]<-2&&((0,y[36])(y[47]),y[52])((0,y[25])(y[19],y[63]),y[23],y[17])}}catch(w){return"NsJ3mTvHwC8oZ0B3uL-_w8_"+ e}return N.join("")}; tgH=function(e){return e,"Content-Transfer-Encoding"[11+!!e]}; g.ig=function(e){this.name=e}; uAM=function(e){this.wT=ic(e)}; DO=function(e){this.wT=ic(e)}; gx=function(e){this.wT=ic(e)}; qoJ=function(e){this.wT=ic(e)}; V2=function(e){this.wT=ic(e)}; fb=function(e){this.wT=ic(e)}; tT=function(e){this.wT=ic(e)}; ug=function(e){this.wT=ic(e)}; qy=function(e){this.wT=ic(e)}; ZO=function(e){this.wT=ic(e)}; xr=function(e){this.wT=ic(e)}; jC=function(e){this.wT=ic(e)}; nb=function(e){this.wT=ic(e)}; Q2=function(e){this.wT=ic(e)}; Kb=function(e){this.wT=ic(e)}; Wz=function(e){this.wT=ic(e,500)}; Oa=function(e){this.wT=ic(e)}; RG=function(e){this.wT=ic(e)}; ZG5=function(e){this.wT=ic(e)}; xe_=function(){return g.nM("yt.ads.biscotti.lastId_")||""}; jZ0=function(e){g.jM("yt.ads.biscotti.lastId_",e)}; Ua=function(){var e=arguments,N=Gz;e.length>1?N[e[0]]=e[1]:e.length===1&&Object.assign(N,e[0])}; g.Lb=function(e,N){return e in Gz?Gz[e]:N}; sa=function(e){var N=Gz.EXPERIMENT_FLAGS;return N?N[e]:void 0}; nV_=function(e){aG.forEach(function(N){return N(e)})}; g.NR=function(e){return e&&window.yterr?function(){try{return e.apply(this,arguments)}catch(N){g.eH(N)}}:e}; g.eH=function(e){var N=g.nM("yt.logging.errors.log");N?N(e,"ERROR",void 0,void 0,void 0,void 0,void 0):(N=g.Lb("ERRORS",[]),N.push([e,"ERROR",void 0,void 0,void 0,void 0,void 0]),Ua("ERRORS",N));nV_(e)}; yN=function(e,N,y,w,E){var A=g.nM("yt.logging.errors.log");A?A(e,"WARNING",N,y,w,void 0,E):(A=g.Lb("ERRORS",[]),A.push([e,"WARNING",N,y,w,void 0,E]),Ua("ERRORS",A))}; w2=function(e,N){N=e.split(N);for(var y={},w=0,E=N.length;w1?e[1]:e[0])):{}}; pp=function(e,N){return Ki0(e,N||{},!0)}; Cp=function(e,N){return Ki0(e,N||{},!1)}; Ki0=function(e,N,y){var w=e.split("#",2);e=w[0];w=w.length>1?"#"+w[1]:"";var E=e.split("?",2);e=E[0];E=AE(E[1]||"");for(var A in N)if(y||!g.P4(E,A))E[A]=N[A];return g.Qb(e,E)+w}; r2=function(e){if(!N)var N=window.location.href;var y=g.to(1,e),w=g.uB(e);y&&w?(e=e.match(fY),N=N.match(fY),e=e[3]==N[3]&&e[1]==N[1]&&e[4]==N[4]):e=w?g.uB(N)===w&&(Number(g.to(4,N))||null)===(Number(g.to(4,e))||null):!0;return e}; $3=function(e){e||(e=document.location.href);e=g.to(1,e);return e!==null&&e==="https"}; Y3=function(e){e=Wi5(e);return e===null?!1:e[0]==="com"&&e[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; OGE=function(e){e=Wi5(e);return e===null?!1:e[1]==="google"?!0:e[2]==="google"?e[0]==="au"&&e[1]==="com"?!0:e[0]==="uk"&&e[1]==="co"?!0:!1:!1}; Wi5=function(e){e=g.uB(e);return e!==null?e.split(".").reverse():null}; QZH=function(e){return e&&e.match(Rx0)?e:GJ(e)}; Fj=function(e){var N=MR;e=e===void 0?xe_():e;var y=Object,w=y.assign,E=l4(N);var A=N.J;try{var T=A.screenX;var p=A.screenY}catch(d){}try{var C=A.outerWidth;var r=A.outerHeight}catch(d){}try{var Y=A.innerWidth;var M=A.innerHeight}catch(d){}try{var l=A.screenLeft;var F=A.screenTop}catch(d){}try{Y=A.innerWidth,M=A.innerHeight}catch(d){}try{var S=A.screen.availWidth;var k=A.screen.availTop}catch(d){}A=[l,F,T,p,S,k,C,r,Y,M];T=Mt1(!1,N.J.top);p={};var X=X===void 0?g.xJ:X;C=new WB;"SVGElement"in X&&"createElementNS"in X.document&&C.set(0);r=I9J();r["allow-top-navigation-by-user-activation"]&&C.set(1);r["allow-popups-to-escape-sandbox"]&&C.set(2);X.crypto&&X.crypto.subtle&&C.set(3);"TextDecoder"in X&&"TextEncoder"in X&&C.set(4);X=Xe0(C);N=(p.bc=X,p.bih=T.height,p.biw=T.width,p.brdim=A.join(),p.vis=FR(N.N),p.wgl=!!Yn.WebGLRenderingContext,p);y=w.call(y,E,N);y.ca_type="image";e&&(y.bid=e);return y}; l4=function(e){var N={};N.dt=GeJ;N.flash="0";a:{try{var y=e.J.top.location.href}catch(Y){e=2;break a}e=y?y===e.N.location.href?0:1:2}N=(N.frm=e,N);try{N.u_tz=-(new Date).getTimezoneOffset();var w=w===void 0?Yn:w;try{var E=w.history.length}catch(Y){E=0}N.u_his=E;var A;N.u_h=(A=Yn.screen)==null?void 0:A.height;var T;N.u_w=(T=Yn.screen)==null?void 0:T.width;var p;N.u_ah=(p=Yn.screen)==null?void 0:p.availHeight;var C;N.u_aw=(C=Yn.screen)==null?void 0:C.availWidth;var r;N.u_cd=(r=Yn.screen)==null?void 0: r.colorDepth}catch(Y){}return N}; LiM=function(){if(!Ue0)return null;var e=Ue0();return"open"in e?e:null}; g.oy=function(e){switch(SH(e)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; SH=function(e){return e&&"status"in e?e.status:-1}; g.b4=function(e,N){typeof e==="function"&&(e=g.NR(e));return window.setTimeout(e,N)}; g.hE=function(e,N){typeof e==="function"&&(e=g.NR(e));return window.setInterval(e,N)}; g.cL=function(e){window.clearTimeout(e)}; g.k3=function(e){window.clearInterval(e)}; g.Xj=function(e){e=BL(e);return typeof e==="string"&&e==="false"?!1:!!e}; g.PL=function(e,N){e=BL(e);return e===void 0&&N!==void 0?N:Number(e||0)}; d2=function(){return g.Lb("EXPERIMENTS_TOKEN","")}; BL=function(e){return g.Lb("EXPERIMENT_FLAGS",{})[e]}; Iy=function(){for(var e=[],N=g.Lb("EXPERIMENTS_FORCED_FLAGS",{}),y=g.c(Object.keys(N)),w=y.next();!w.done;w=y.next())w=w.value,e.push({key:w,value:String(N[w])});y=g.Lb("EXPERIMENT_FLAGS",{});w=g.c(Object.keys(y));for(var E=w.next();!E.done;E=w.next())E=E.value,E.startsWith("force_")&&N[E]===void 0&&e.push({key:E,value:String(y[E])});return e}; vL=function(e,N,y,w,E,A,T,p){function C(){(r&&"readyState"in r?r.readyState:0)===4&&N&&g.NR(N)(r)} y=y===void 0?"GET":y;w=w===void 0?"":w;p=p===void 0?!1:p;var r=LiM();if(!r)return null;"onloadend"in r?r.addEventListener("loadend",C,!1):r.onreadystatechange=C;g.Xj("debug_forward_web_query_parameters")&&(e=sZE(e,window.location.search));r.open(y,e,!0);A&&(r.responseType=A);T&&(r.withCredentials=!0);y=y==="POST"&&(window.FormData===void 0||!(w instanceof FormData));if(E=afM(e,E))for(var Y in E)r.setRequestHeader(Y,E[Y]),"content-type"===Y.toLowerCase()&&(y=!1);y&&r.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");if(p&&"setAttributionReporting"in XMLHttpRequest.prototype){e={eventSourceEligible:!0,triggerEligible:!1};try{r.setAttributionReporting(e)}catch(M){yN(M)}}r.send(w);return r}; afM=function(e,N){N=N===void 0?{}:N;var y=r2(e),w=g.Lb("INNERTUBE_CLIENT_NAME"),E=g.Xj("web_ajax_ignore_global_headers_if_set"),A;for(A in eh3){var T=g.Lb(eh3[A]),p=A==="X-Goog-AuthUser"||A==="X-Goog-PageId";A!=="X-Goog-Visitor-Id"||T||(T=g.Lb("VISITOR_DATA"));var C;if(!(C=!T)){if(!(C=y||(g.uB(e)?!1:!0))){C=e;var r;if(r=g.Xj("add_auth_headers_to_remarketing_google_dot_com_ping")&&A==="Authorization"&&(w==="TVHTML5"||w==="TVHTML5_UNPLUGGED"||w==="TVHTML5_SIMPLY")&&OGE(C))C=D9(g.to(5,C))||"",C=C.split("/"), C="/"+(C.length>1?C[1]:""),r=C==="/pagead";C=r?!0:!1}C=!C}C||E&&N[A]!==void 0||w==="TVHTML5_UNPLUGGED"&&p||(N[A]=T)}"X-Goog-EOM-Visitor-Id"in N&&"X-Goog-Visitor-Id"in N&&delete N["X-Goog-Visitor-Id"];if(y||!g.uB(e))N["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(y||!g.uB(e)){try{var Y=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(M){}Y&&(N["X-YouTube-Time-Zone"]=Y)}document.location.hostname.endsWith("youtubeeducation.com")||!y&&g.uB(e)||(N["X-YouTube-Ad-Signals"]= E8(Fj()));return N}; y7n=function(e,N){var y=g.uB(e);g.Xj("debug_handle_relative_url_for_query_forward_killswitch")||!y&&r2(e)&&(y=document.location.hostname);var w=D9(g.to(5,e));w=(y=y&&(y.endsWith("youtube.com")||y.endsWith("youtube-nocookie.com")))&&w&&w.startsWith("/api/");if(!y||w)return e;var E=AE(N),A={};g.$R(NN9,function(T){E[T]&&(A[T]=E[T])}); return Cp(e,A)}; i4=function(e,N){N.method="POST";N.postParams||(N.postParams={});return g.zk(e,N)}; A7E=function(e,N){if(window.fetch&&N.format!=="XML"){var y={method:N.method||"GET",credentials:"same-origin"};N.headers&&(y.headers=N.headers);N.priority&&(y.priority=N.priority);e=wBE(e,N);var w=ED0(e,N);w&&(y.body=w);N.withCredentials&&(y.credentials="include");var E=N.context||g.xJ,A=!1,T;fetch(e,y).then(function(p){if(!A){A=!0;T&&g.cL(T);var C=p.ok,r=function(Y){Y=Y||{};C?N.onSuccess&&N.onSuccess.call(E,Y,p):N.onError&&N.onError.call(E,Y,p);N.onFinish&&N.onFinish.call(E,Y,p)}; (N.format||"JSON")==="JSON"&&(C||p.status>=400&&p.status<500)?p.json().then(r,function(){r(null)}):r(null)}}).catch(function(){N.onError&&N.onError.call(E,{},{})}); e=N.timeout||0;N.onFetchTimeout&&e>0&&(T=g.b4(function(){A||(A=!0,g.cL(T),N.onFetchTimeout.call(N.context||g.xJ))},e))}else g.zk(e,N)}; g.zk=function(e,N){var y=N.format||"JSON";e=wBE(e,N);var w=ED0(e,N),E=!1,A=TNP(e,function(C){if(!E){E=!0;p&&g.cL(p);var r=g.oy(C),Y=null,M=400<=C.status&&C.status<500,l=500<=C.status&&C.status<600;if(r||M||l)Y=J73(e,y,C,N.convertToSafeHtml);r&&(r=pBE(y,C,Y));Y=Y||{};M=N.context||g.xJ;r?N.onSuccess&&N.onSuccess.call(M,C,Y):N.onError&&N.onError.call(M,C,Y);N.onFinish&&N.onFinish.call(M,C,Y)}},N.method,w,N.headers,N.responseType,N.withCredentials); w=N.timeout||0;if(N.onTimeout&&w>0){var T=N.onTimeout;var p=g.b4(function(){E||(E=!0,A.abort(),g.cL(p),T.call(N.context||g.xJ,A))},w)}return A}; wBE=function(e,N){N.includeDomain&&(e=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+e);var y=g.Lb("XSRF_FIELD_NAME");if(N=N.urlParams)N[y]&&delete N[y],e=pp(e,N);return e}; ED0=function(e,N){var y=g.Lb("XSRF_FIELD_NAME"),w=g.Lb("XSRF_TOKEN"),E=N.postBody||"",A=N.postParams,T=g.Lb("XSRF_FIELD_NAME"),p;N.headers&&(p=N.headers["Content-Type"]);N.excludeXsrf||g.uB(e)&&!N.withCredentials&&g.uB(e)!==document.location.hostname||N.method!=="POST"||p&&p!=="application/x-www-form-urlencoded"||N.postParams&&N.postParams[T]||(A||(A={}),A[y]=w);(g.Xj("ajax_parse_query_data_only_when_filled")&&A&&Object.keys(A).length>0||A)&&typeof E==="string"&&(E=AE(E),g.VM(E,A),E=N.postBodyFormat&& N.postBodyFormat==="JSON"?JSON.stringify(E):g.nY(E));A=E||A&&!g.v4(A);!Cf1&&A&&N.method!=="POST"&&(Cf1=!0,g.eH(Error("AJAX request with postData should use POST")));return E}; J73=function(e,N,y,w){var E=null;switch(N){case "JSON":try{var A=y.responseText}catch(T){throw w=Error("Error reading responseText"),w.params=e,yN(w),T;}e=y.getResponseHeader("Content-Type")||"";A&&e.indexOf("json")>=0&&(A.substring(0,5)===")]}'\n"&&(A=A.substring(5)),E=JSON.parse(A));break;case "XML":if(e=(e=y.responseXML)?r7H(e):null)E={},g.$R(e.getElementsByTagName("*"),function(T){E[T.tagName]=$HM(T)})}w&&YH3(E); return E}; YH3=function(e){if(g.W5(e))for(var N in e)N==="html_content"||nJn(N,"_html")?e[N]=tt(e[N]):YH3(e[N])}; pBE=function(e,N,y){if(N&&N.status===204)return!0;switch(e){case "JSON":return!!y;case "XML":return Number(y&&y.return_code)===0;case "RAW":return!0;default:return!!y}}; r7H=function(e){return e?(e=("responseXML"in e?e.responseXML:e).getElementsByTagName("root"))&&e.length>0?e[0]:null:null}; $HM=function(e){var N="";g.$R(e.childNodes,function(y){N+=y.nodeValue}); return N}; g2=function(e,N){var y=g.DA(N),w;return(new g.lB(function(E,A){y.onSuccess=function(T){g.oy(T)?E(new Ma9(T)):A(new DJ("Request failed, status="+SH(T),"net.badstatus",T))}; y.onError=function(T){A(new DJ("Unknown request error","net.unknown",T))}; y.onTimeout=function(T){A(new DJ("Request timed out","net.timeout",T))}; w=g.zk(e,y)})).On(function(E){if(E instanceof cc){var A; (A=w)==null||A.abort()}return oD(E)})}; g.VN=function(e,N,y,w){function E(p,C,r){return p.On(function(Y){if(C<=0||SH(Y.xhr)===403)return oD(new DJ("Request retried too many times","net.retryexhausted",Y.xhr,Y));Y=Math.pow(2,y-C+1)*r;var M=T>0?Math.min(T,Y):Y;return A(r).then(function(){return E(g2(e,N),C-1,M)})})} function A(p){return new g.lB(function(C){setTimeout(C,p)})} var T=T===void 0?-1:T;return E(g2(e,N),y-1,w)}; DJ=function(e,N,y){FF.call(this,e+", errorCode="+N);this.errorCode=N;this.xhr=y;this.name="PromiseAjaxError"}; Ma9=function(e){this.xhr=e}; fp=function(e){this.J=e===void 0?null:e;this.K=0;this.N=null}; tE=function(e){var N=new fp;e=e===void 0?null:e;N.K=2;N.N=e===void 0?null:e;return N}; u4=function(e){var N=new fp;e=e===void 0?null:e;N.K=1;N.N=e===void 0?null:e;return N}; g.x3=function(e,N,y,w,E){qR||ZJ.set(""+e,N,{B3:y,path:"/",domain:w===void 0?"youtube.com":w,secure:E===void 0?!1:E})}; g.jH=function(e,N){if(!qR)return ZJ.get(""+e,N)}; g.np=function(e,N,y){qR||ZJ.remove(""+e,N===void 0?"/":N,y===void 0?"youtube.com":y)}; lSn=function(){if(g.Xj("embeds_web_enable_cookie_detection_fix")){if(!g.xJ.navigator.cookieEnabled)return!1}else if(!ZJ.isEnabled())return!1;if(!ZJ.isEmpty())return!0;g.Xj("embeds_web_enable_cookie_detection_fix")?ZJ.set("TESTCOOKIESENABLED","1",{B3:60,SXt:"none",secure:!0}):ZJ.set("TESTCOOKIESENABLED","1",{B3:60});if(ZJ.get("TESTCOOKIESENABLED")!=="1")return!1;ZJ.remove("TESTCOOKIESENABLED");return!0}; g.m=function(e,N){if(e)return e[N.name]}; QN=function(e){var N=g.Lb("INNERTUBE_HOST_OVERRIDE");N&&(e=String(N)+String(q0(e)));return e}; FI1=function(e){var N={};g.Xj("json_condensed_response")&&(N.prettyPrint="false");return e=Cp(e,N)}; mH=function(e,N){var y=y===void 0?{}:y;e={method:N===void 0?"POST":N,mode:r2(e)?"same-origin":"cors",credentials:r2(e)?"same-origin":"include"};N={};for(var w=g.c(Object.keys(y)),E=w.next();!E.done;E=w.next())E=E.value,y[E]&&(N[E]=y[E]);Object.keys(N).length>0&&(e.headers=N);return e}; HL=function(){var e=/Chrome\/(\d+)/.exec(g.zw());return e?parseFloat(e[1]):NaN}; WL=function(){return g.Kp("android")&&g.Kp("chrome")&&!(g.Kp("trident/")||g.Kp("edge/"))&&!g.Kp("cobalt")}; SH3=function(){return g.Kp("armv7")||g.Kp("aarch64")||g.Kp("android")}; g.O8=function(){return g.Kp("cobalt")}; Ry=function(){return g.Kp("cobalt")&&g.Kp("appletv")}; Gk=function(){return g.Kp("(ps3; leanback shell)")||g.Kp("ps3")&&g.O8()}; oDs=function(){return g.Kp("(ps4; leanback shell)")||g.Kp("ps4")&&g.O8()}; g.bkn=function(){return g.O8()&&(g.Kp("ps4 vr")||g.Kp("ps4 pro vr"))}; U8=function(){var e=/WebKit\/([0-9]+)/.exec(g.zw());return!!(e&&parseInt(e[1],10)>=600)}; Lp=function(){var e=/WebKit\/([0-9]+)/.exec(g.zw());return!!(e&&parseInt(e[1],10)>=602)}; hhs=function(){return g.Kp("iemobile")||g.Kp("windows phone")&&g.Kp("edge")}; eu=function(){return(s8||ay)&&g.Kp("applewebkit")&&!g.Kp("version")&&(!g.Kp("safari")||g.Kp("gsa/"))}; yf=function(){return g.NI&&g.Kp("version/")}; w9=function(){return g.Kp("smart-tv")&&g.Kp("samsung")}; g.Kp=function(e){var N=g.zw();return N?N.toLowerCase().indexOf(e)>=0:!1}; EF=function(){return qr9()||eu()||yf()?!0:g.Lb("EOM_VISITOR_DATA")?!1:!0}; A2=function(e,N){return N===void 0||N===null?e:N==="1"||N===!0||N===1||N==="True"?!0:!1}; Th=function(e,N,y){for(var w in y)if(y[w]==N)return y[w];return e}; J2=function(e,N){return N===void 0||N===null?e:Number(N)}; pO=function(e,N){return N===void 0||N===null?e:N.toString()}; CO=function(e,N){if(N){if(e==="fullwidth")return Infinity;if(e==="fullheight")return 0}return e&&(N=e.match(c7_))&&(e=Number(N[2]),N=Number(N[1]),!isNaN(e)&&!isNaN(N)&&e>0)?N/e:NaN}; r9=function(e){var N=e.docid||e.video_id||e.videoId||e.id;if(N)return N;N=e.raw_player_response;N||(e=e.player_response)&&(N=JSON.parse(e));return N&&N.videoDetails&&N.videoDetails.videoId||null}; k1n=function(e){return $h(e,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; g.Yh=function(e){return e==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||e==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; $h=function(e,N){N=(N===void 0?0:N)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(N="EMBEDDED_PLAYER_MODE_PFL");var y=e.raw_embedded_player_response;if(!y&&(e=e.embedded_player_response))try{y=JSON.parse(e)}catch(w){return N}return y?Th(N,y.embeddedPlayerMode,BNs):N}; lY=function(e){FF.call(this,e.message||e.description||e.name);this.isMissing=e instanceof MI;this.isTimeout=e instanceof DJ&&e.errorCode=="net.timeout";this.isCanceled=e instanceof cc}; MI=function(){FF.call(this,"Biscotti ID is missing from server")}; XB9=function(){if(g.Xj("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!EF())return Error("User has not consented - not fetching biscotti id.");var e=g.Lb("PLAYER_VARS",{});if(g.zM(e,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(k1n(e))return Error("Biscotti id fetching has been disabled for pfl.")}; vD1=function(){var e=XB9();if(e!==void 0)return oD(e);Fc||(Fc=g2("//googleads.g.doubleclick.net/pagead/id",PfJ).then(dH0).On(function(N){return ISJ(2,N)})); return Fc}; dH0=function(e){e=e.xhr.responseText;if(!c_(e,")]}'"))throw new MI;e=JSON.parse(e.substr(4));if((e.type||1)>1)throw new MI;e=e.id;jZ0(e);Fc=u4(e);zhn(18E5,2);return e}; ISJ=function(e,N){N=new lY(N);jZ0("");Fc=tE(N);e>0&&zhn(12E4,e-1);throw N;}; zhn=function(e,N){g.b4(function(){g2("//googleads.g.doubleclick.net/pagead/id",PfJ).then(dH0,function(y){return ISJ(N,y)}).On(g.CY)},e)}; ik5=function(){try{var e=g.nM("yt.ads.biscotti.getId_");return e?e():vD1()}catch(N){return oD(N)}}; gDE=function(e){e&&(e.dataset?e.dataset[DHM()]="true":XW0(e))}; VaE=function(e){return e?e.dataset?e.dataset[DHM()]:e.getAttribute("data-loaded"):null}; DHM=function(){return fS1.loaded||(fS1.loaded="loaded".replace(/\-([a-z])/g,function(e,N){return N.toUpperCase()}))}; taP=function(){var e=document;if("visibilityState"in e)return e.visibilityState;var N=Su+"VisibilityState";if(N in e)return e[N]}; oz=function(e,N){var y;DR(e,function(w){y=N[w];return!!y}); return y}; bY=function(e){if(e.requestFullscreen)e=e.requestFullscreen(void 0);else if(e.webkitRequestFullscreen)e=e.webkitRequestFullscreen();else if(e.mozRequestFullScreen)e=e.mozRequestFullScreen();else if(e.msRequestFullscreen)e=e.msRequestFullscreen();else if(e.webkitEnterFullscreen)e=e.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return e instanceof Promise?e:Promise.resolve()}; kh=function(e){var N;g.h2()?cE()==e&&(N=document):N=e;return N&&(e=oz(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],N))?(N=e.call(N),N instanceof Promise?N:Promise.resolve()):Promise.resolve()}; ubn=function(e){return g.Ok(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(N){return"on"+N.toLowerCase()in e})}; qH1=function(){var e=document;return g.Ok(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(N){return"on"+N.toLowerCase()in e})}; g.h2=function(){return!!oz(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; cE=function(e){e=e===void 0?!1:e;var N=oz(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(e)for(;N&&N.shadowRoot;)N=N.shadowRoot.fullscreenElement;return N?N:null}; BE=function(e){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(e=e||window.event){this.event=e;for(var N in e)N in Zks||(this[N]=e[N]);this.scale=e.scale;this.rotation=e.rotation;var y=e.target||e.srcElement;y&&y.nodeType==3&&(y=y.parentNode);this.target=y;var w=e.relatedTarget; if(w)try{w=w.nodeName?w:null}catch(E){w=null}else this.type=="mouseover"?w=e.fromElement:this.type=="mouseout"&&(w=e.toElement);this.relatedTarget=w;this.clientX=e.clientX!=void 0?e.clientX:e.pageX;this.clientY=e.clientY!=void 0?e.clientY:e.pageY;this.keyCode=e.keyCode?e.keyCode:e.which;this.charCode=e.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=e.altKey;this.ctrlKey=e.ctrlKey;this.shiftKey=e.shiftKey;this.metaKey=e.metaKey;this.J=e.pageX;this.N=e.pageY}}catch(E){}}; xH5=function(e){if(document.body&&document.documentElement){var N=document.body.scrollTop+document.documentElement.scrollTop;e.J=e.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);e.N=e.clientY+N}}; j1n=function(e,N,y,w){w=w===void 0?{}:w;e.addEventListener&&(N!="mouseenter"||"onmouseenter"in document?N!="mouseleave"||"onmouseenter"in document?N=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(N="MozMousePixelScroll"):N="mouseout":N="mouseover");return IB(Xc,function(E){var A=typeof E[4]==="boolean"&&E[4]==!!w,T=g.W5(E[4])&&g.W5(w)&&g.i8(E[4],w);return!!E.length&&E[0]==e&&E[1]==N&&E[2]==y&&(A||T)})}; g.PE=function(e,N,y,w){w=w===void 0?{}:w;if(!e||!e.addEventListener&&!e.attachEvent)return"";var E=j1n(e,N,y,w);if(E)return E;E=++nD0.count+"";var A=!(N!="mouseenter"&&N!="mouseleave"||!e.addEventListener||"onmouseenter"in document);var T=A?function(p){p=new BE(p);if(!TN(p.relatedTarget,function(C){return C==e},!0))return p.currentTarget=e,p.type=N,y.call(e,p)}:function(p){p=new BE(p); p.currentTarget=e;return y.call(e,p)}; T=g.NR(T);e.addEventListener?(N=="mouseenter"&&A?N="mouseover":N=="mouseleave"&&A?N="mouseout":N=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(N="MozMousePixelScroll"),Q19()||typeof w==="boolean"?e.addEventListener(N,T,w):e.addEventListener(N,T,!!w.capture)):e.attachEvent("on"+N,T);Xc[E]=[e,N,y,T,w];return E}; HkP=function(e){return mH1(e,function(N){return g.J4(N,"ytp-ad-has-logging-urls")})}; mH1=function(e,N){var y=document.body||document;return g.PE(y,"click",function(w){var E=TN(w.target,function(A){return A===y||N(A)},!0); E&&E!==y&&!E.disabled&&(w.currentTarget=E,e.call(E,w))})}; g.d9=function(e){e&&(typeof e=="string"&&(e=[e]),g.$R(e,function(N){if(N in Xc){var y=Xc[N],w=y[0],E=y[1],A=y[3];y=y[4];w.removeEventListener?Q19()||typeof y==="boolean"?w.removeEventListener(E,A,y):w.removeEventListener(E,A,!!y.capture):w.detachEvent&&w.detachEvent("on"+E,A);delete Xc[N]}}))}; Iz=function(e){for(var N in Xc)Xc[N][0]==e&&g.d9(N)}; vE=function(e){e=e||window.event;var N;e.composedPath&&typeof e.composedPath==="function"?N=e.composedPath():N=e.path;N&&N.length?e=N[0]:(e=e||window.event,e=e.target||e.srcElement,e.nodeType==3&&(e=e.parentNode));return e}; zh=function(e){this.G=e;this.J=null;this.j=0;this.Z=null;this.L=0;this.N=[];for(e=0;e<4;e++)this.N.push(0);this.K=0;this.Kh=g.PE(window,"mousemove",(0,g.Gs)(this.D,this));this.U=g.hE((0,g.Gs)(this.Ng,this),25)}; iY=function(e){g.x.call(this);this.G=[];this.a9=e||this}; Dw=function(e,N,y,w){for(var E=0;E0?y:0;y=w?Date.now()+w*1E3:0;if((w=w?(0,g.fO)():t2())&&window.JSON){typeof N!=="string"&&(N=JSON.stringify(N,void 0));try{w.set(e,N,y)}catch(E){w.remove(e)}}}; g.qI=function(e){var N=t2(),y=(0,g.fO)();if(!N&&!y||!window.JSON)return null;try{var w=N.get(e)}catch(E){}if(typeof w!=="string")try{w=y.get(e)}catch(E){}if(typeof w!=="string")return null;try{w=JSON.parse(w,void 0)}catch(E){}return w}; OkM=function(){var e=(0,g.fO)();if(e&&(e=e.N("yt-player-quality")))return e.creation}; g.Zw=function(e){try{var N=t2(),y=(0,g.fO)();N&&N.remove(e);y&&y.remove(e)}catch(w){}}; g.xh=function(){return g.qI("yt-remote-session-screen-id")}; Rh5=function(e){var N=this;this.N=void 0;this.J=!1;e.addEventListener("beforeinstallprompt",function(y){y.preventDefault();N.N=y}); e.addEventListener("appinstalled",function(){N.J=!0},{once:!0})}; ju=function(){if(!g.xJ.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.xJ.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.xJ.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.xJ.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.xJ.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(e){return"WEB_DISPLAY_MODE_UNKNOWN"}}; nO=function(){this.TY=!0}; G1F=function(){nO.instance||(nO.instance=new nO);return nO.instance}; UH5=function(e){switch(e){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}}; LIP=function(){this.J=g.Lb("ALT_PREF_COOKIE_NAME","PREF");this.N=g.Lb("ALT_PREF_COOKIE_DOMAIN","youtube.com");var e=g.jH(this.J);e&&this.parse(e)}; g.m6=function(){Qf||(Qf=new LIP);return Qf}; g.HE=function(e,N){return!!((s1_("f"+(Math.floor(N/31)+1))||0)&1<0;)switch(e=Y$.shift(),e.type){case "ERROR":pl.iR(e.payload);break;case "EVENT":pl.logEvent(e.eventType,e.payload)}}; lC=function(e){M7||(pl?pl.iR(e):(Y$.push({type:"ERROR",payload:e}),Y$.length>10&&Y$.shift()))}; F6=function(e,N){M7||(pl?pl.logEvent(e,N):(Y$.push({type:"EVENT",eventType:e,payload:N}),Y$.length>10&&Y$.shift()))}; S1=function(e){if(e.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; ov=function(e){return e.substr(0,e.indexOf(":"))||e}; g.bC=function(e,N,y,w,E){N=N===void 0?{}:N;y=y===void 0?Tes[e]:y;w=w===void 0?J4_[e]:w;E=E===void 0?pD0[e]:E;g.Gh.call(this,y,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:e},N));this.type=e;this.message=y;this.level=w;this.J=E;Object.setPrototypeOf(this,g.bC.prototype)}; hg=function(e,N){g.bC.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:N,foundObjectStores:e},Tes.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,hg.prototype)}; cV=function(e,N){var y=Error.call(this);this.message=y.message;"stack"in y&&(this.stack=y.stack);this.index=e;this.objectStore=N;Object.setPrototypeOf(this,cV.prototype)}; BV=function(e,N,y,w){N=ov(N);var E=e instanceof Error?e:Error("Unexpected error: "+e);if(E instanceof g.bC)return E;e={objectStoreNames:y,dbName:N,dbVersion:w};if(E.name==="QuotaExceededError")return new g.bC("QUOTA_EXCEEDED",e);if(g.k$&&E.name==="UnknownError")return new g.bC("QUOTA_MAYBE_EXCEEDED",e);if(E instanceof cV)return new g.bC("MISSING_INDEX",Object.assign({},e,{objectStore:E.objectStore,index:E.index}));if(E.name==="InvalidStateError"&&Cn3.some(function(A){return E.message.includes(A)}))return new g.bC("EXECUTE_TRANSACTION_ON_CLOSED_DB", e); if(E.name==="AbortError")return new g.bC("UNKNOWN_ABORT",e,E.message);E.args=[Object.assign({},e,{name:"IdbError",bE:E.name})];E.level="WARNING";return E}; g.X6=function(e,N,y){var w=Jg();return new g.bC("IDB_NOT_SUPPORTED",{context:{caller:e,publicName:N,version:y,hasSucceededOnce:w==null?void 0:w.hasSucceededOnce}})}; r4J=function(e){if(!e)throw Error();throw e;}; $AM=function(e){return e}; PV=function(e){this.J=e}; g.d0=function(e){function N(E){if(w.state.status==="PENDING"){w.state={status:"REJECTED",reason:E};E=g.c(w.N);for(var A=E.next();!A.done;A=E.next())A=A.value,A()}} function y(E){if(w.state.status==="PENDING"){w.state={status:"FULFILLED",value:E};E=g.c(w.J);for(var A=E.next();!A.done;A=E.next())A=A.value,A()}} var w=this;this.state={status:"PENDING"};this.J=[];this.N=[];e=e.J;try{e(y,N)}catch(E){N(E)}}; Y2F=function(e,N,y,w,E){try{if(e.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var A=y(e.state.value);A instanceof g.d0?Iv(e,N,A,w,E):w(A)}catch(T){E(T)}}; M6M=function(e,N,y,w,E){try{if(e.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var A=y(e.state.reason);A instanceof g.d0?Iv(e,N,A,w,E):w(A)}catch(T){E(T)}}; Iv=function(e,N,y,w,E){N===y?E(new TypeError("Circular promise chain detected.")):y.then(function(A){A instanceof g.d0?Iv(e,N,A,w,E):w(A)},function(A){E(A)})}; l6P=function(e,N,y){function w(){y(e.error);A()} function E(){N(e.result);A()} function A(){try{e.removeEventListener("success",E),e.removeEventListener("error",w)}catch(T){}} e.addEventListener("success",E);e.addEventListener("error",w)}; F73=function(e){return new Promise(function(N,y){l6P(e,N,y)})}; vV=function(e){return new g.d0(new PV(function(N,y){l6P(e,N,y)}))}; zv=function(e,N){return new g.d0(new PV(function(y,w){function E(){var A=e?N(e):null;A?A.then(function(T){e=T;E()},w):y()} E()}))}; S2s=function(e,N){this.request=e;this.cursor=N}; o10=function(e){return vV(e).then(function(N){return N?new S2s(e,N):null})}; g.biM=function(e){e.cursor.continue(void 0);return o10(e.request)}; hTF=function(e,N){this.J=e;this.options=N;this.transactionCount=0;this.K=Math.round((0,g.iC)());this.N=!1}; g.g0=function(e,N,y){e=e.J.createObjectStore(N,y);return new Dm(e)}; VK=function(e,N){e.J.objectStoreNames.contains(N)&&e.J.deleteObjectStore(N)}; g.uC=function(e,N,y){return g.fl(e,[N],{mode:"readwrite",Lx:!0},function(w){return g.tg(w.objectStore(N),y)})}; g.fl=function(e,N,y,w){var E,A,T,p,C,r,Y,M,l,F,S,k;return g.f(function(X){switch(X.J){case 1:var d={mode:"readonly",Lx:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof y==="string"?d.mode=y:Object.assign(d,y);E=d;e.transactionCount++;A=E.Lx?3:1;T=0;case 2:if(p){X.u9(4);break}T++;C=Math.round((0,g.iC)());g.c5(X,5);r=e.J.transaction(N,E.mode);d=new q7(r);d=c4M(d,w);return g.D(X,d,7);case 7:return Y=X.N,M=Math.round((0,g.iC)()),kY0(e,C,M,T,void 0,N.join(),E),X.return(Y);case 5:l=g.XH(X);F=Math.round((0,g.iC)()); S=BV(l,e.J.name,N.join(),e.J.version);if((k=S instanceof g.bC&&!S.J)||T>=A)kY0(e,C,F,T,S,N.join(),E),p=S;X.u9(2);break;case 4:return X.return(Promise.reject(p))}})}; kY0=function(e,N,y,w,E,A,T){N=y-N;E?(E instanceof g.bC&&(E.type==="QUOTA_EXCEEDED"||E.type==="QUOTA_MAYBE_EXCEEDED")&&F6("QUOTA_EXCEEDED",{dbName:ov(e.J.name),objectStoreNames:A,transactionCount:e.transactionCount,transactionMode:T.mode}),E instanceof g.bC&&E.type==="UNKNOWN_ABORT"&&(y-=e.K,y<0&&y>=2147483648&&(y=0),F6("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:A,transactionDuration:N,transactionCount:e.transactionCount,dbDuration:y}),e.N=!0),BeF(e,!1,w,A,N,T.tag),lC(E)):BeF(e,!0,w,A,N, T.tag)}; BeF=function(e,N,y,w,E,A){F6("TRANSACTION_ENDED",{objectStoreNames:w,connectionHasUnknownAbortedTransaction:e.N,duration:E,isSuccessful:N,tryCount:y,tag:A===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":A})}; Dm=function(e){this.J=e}; g.Zm=function(e,N,y){e.J.createIndex(N,y,{unique:!1})}; XD3=function(e,N){return g.x$(e,{query:N},function(y){return y.delete().then(function(){return g.j1(y)})}).then(function(){})}; Pn1=function(e,N,y){var w=[];return g.x$(e,{query:N},function(E){if(!(y!==void 0&&w.length>=y))return w.push(E.getValue()),g.j1(E)}).then(function(){return w})}; I65=function(e){return"getAllKeys"in IDBObjectStore.prototype?vV(e.J.getAllKeys(void 0,void 0)):dAH(e)}; dAH=function(e){var N=[];return g.v1F(e,{query:void 0},function(y){N.push(y.cursor.primaryKey);return g.biM(y)}).then(function(){return N})}; g.tg=function(e,N,y){return vV(e.J.put(N,y))}; g.x$=function(e,N,y){e=e.J.openCursor(N.query,N.direction);return nl(e).then(function(w){return zv(w,y)})}; g.v1F=function(e,N,y){var w=N.query;N=N.direction;e="openKeyCursor"in IDBObjectStore.prototype?e.J.openKeyCursor(w,N):e.J.openCursor(w,N);return o10(e).then(function(E){return zv(E,y)})}; q7=function(e){var N=this;this.J=e;this.K=new Map;this.N=!1;this.done=new Promise(function(y,w){N.J.addEventListener("complete",function(){y()}); N.J.addEventListener("error",function(E){E.currentTarget===E.target&&w(N.J.error)}); N.J.addEventListener("abort",function(){var E=N.J.error;if(E)w(E);else if(!N.N){E=g.bC;for(var A=N.J.objectStoreNames,T=[],p=0;p=y))return w.push(E.getValue()),g.j1(E)}).then(function(){return w})}; g.QK=function(e,N,y){e=e.J.openCursor(N.query===void 0?null:N.query,N.direction===void 0?"next":N.direction);return nl(e).then(function(w){return zv(w,y)})}; m1=function(e,N){this.request=e;this.cursor=N}; nl=function(e){return vV(e).then(function(N){return N?new m1(e,N):null})}; g.j1=function(e){e.cursor.continue(void 0);return nl(e.request)}; DA1=function(e,N,y){return new Promise(function(w,E){function A(){l||(l=new hTF(T.result,{closed:M}));return l} var T=N!==void 0?self.indexedDB.open(e,N):self.indexedDB.open(e);var p=y.blocked,C=y.blocking,r=y.cT1,Y=y.upgrade,M=y.closed,l;T.addEventListener("upgradeneeded",function(F){try{if(F.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(T.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");F.dataLoss&&F.dataLoss!=="none"&&F6("IDB_DATA_CORRUPTED",{reason:F.dataLossMessage||"unknown reason",dbName:ov(e)});var S=A(),k=new q7(T.transaction); Y&&Y(S,function(X){return F.oldVersion=X},k); k.done.catch(function(X){E(X)})}catch(X){E(X)}}); T.addEventListener("success",function(){var F=T.result;C&&F.addEventListener("versionchange",function(){C(A())}); F.addEventListener("close",function(){F6("IDB_UNEXPECTEDLY_CLOSED",{dbName:ov(e),dbVersion:F.version});r&&r()}); w(A())}); T.addEventListener("error",function(){E(T.error)}); p&&T.addEventListener("blocked",function(){p()})})}; g11=function(e,N,y){y=y===void 0?{}:y;return DA1(e,N,y)}; HV=function(e,N){N=N===void 0?{}:N;var y,w,E,A;return g.f(function(T){if(T.J==1)return g.c5(T,2),y=self.indexedDB.deleteDatabase(e),w=N,(E=w.blocked)&&y.addEventListener("blocked",function(){E()}),g.D(T,F73(y),4); if(T.J!=2)return g.B5(T,0);A=g.XH(T);throw BV(A,e,"",-1);})}; Kl=function(e,N){this.name=e;this.options=N;this.K=!0;this.L=this.j=0}; V6_=function(e,N){return new g.bC("INCOMPATIBLE_DB_VERSION",{dbName:e.name,oldVersion:e.options.version,newVersion:N})}; g.WV=function(e,N){if(!N)throw g.X6("openWithToken",ov(e.name));return e.open()}; f6H=function(e,N){var y;return g.f(function(w){if(w.J==1)return g.D(w,g.WV(Om,N),2);y=w.N;return w.return(g.fl(y,["databases"],{Lx:!0,mode:"readwrite"},function(E){var A=E.objectStore("databases");return A.get(e.actualName).then(function(T){if(T?e.actualName!==T.actualName||e.publicName!==T.publicName||e.userIdentifier!==T.userIdentifier:1)return g.tg(A,e).then(function(){})})}))})}; Rv=function(e,N){var y;return g.f(function(w){if(w.J==1)return e?g.D(w,g.WV(Om,N),2):w.return();y=w.N;return w.return(y.delete("databases",e))})}; t6P=function(e,N){var y,w;return g.f(function(E){return E.J==1?(y=[],g.D(E,g.WV(Om,N),2)):E.J!=3?(w=E.N,g.D(E,g.fl(w,["databases"],{Lx:!0,mode:"readonly"},function(A){y.length=0;return g.x$(A.objectStore("databases"),{},function(T){e(T.getValue())&&y.push(T.getValue());return g.j1(T)})}),3)):E.return(y)})}; uM5=function(e,N){return t6P(function(y){return y.publicName===e&&y.userIdentifier!==void 0},N)}; q2P=function(){var e,N,y,w;return g.f(function(E){switch(E.J){case 1:e=Jg();if((N=e)==null?0:N.hasSucceededOnce)return E.return(!0);if(Gv&&U8()&&!Lp()||g.Um)return E.return(!1);try{if(y=self,!(y.indexedDB&&y.IDBIndex&&y.IDBKeyRange&&y.IDBObjectStore))return E.return(!1)}catch(A){return E.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return E.return(!1);g.c5(E,2);w={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.D(E,f6H(w,Ll),4);case 4:return g.D(E,Rv("yt-idb-test-do-not-use",Ll),5);case 5:return E.return(!0);case 2:return g.XH(E),E.return(!1)}})}; ZiE=function(){if(sm!==void 0)return sm;M7=!0;return sm=q2P().then(function(e){M7=!1;var N;if((N=Tv())!=null&&N.J){var y;N={hasSucceededOnce:((y=Jg())==null?void 0:y.hasSucceededOnce)||e};var w;(w=Tv())==null||w.set("LAST_RESULT_ENTRY_KEY",N,2592E3,!0)}return e})}; av=function(){return g.nM("ytglobal.idbToken_")||void 0}; g.e7=function(){var e=av();return e?Promise.resolve(e):ZiE().then(function(N){(N=N?Ll:void 0)&&g.jM("ytglobal.idbToken_",N);return N})}; xAn=function(e){if(!g.LO())throw e=new g.bC("AUTH_INVALID",{dbName:e}),lC(e),e;var N=g.UF();return{actualName:e+":"+N,publicName:e,userIdentifier:N}}; jrJ=function(e,N,y,w){var E,A,T,p,C,r;return g.f(function(Y){switch(Y.J){case 1:return A=(E=Error().stack)!=null?E:"",g.D(Y,g.e7(),2);case 2:T=Y.N;if(!T)throw p=g.X6("openDbImpl",e,N),g.Xj("ytidb_async_stack_killswitch")||(p.stack=p.stack+"\n"+A.substring(A.indexOf("\n")+1)),lC(p),p;S1(e);C=y?{actualName:e,publicName:e,userIdentifier:void 0}:xAn(e);g.c5(Y,3);return g.D(Y,f6H(C,T),5);case 5:return g.D(Y,g11(C.actualName,N,w),6);case 6:return Y.return(Y.N);case 3:return r=g.XH(Y),g.c5(Y,7),g.D(Y,Rv(C.actualName, T),9);case 9:g.B5(Y,8);break;case 7:g.XH(Y);case 8:throw r;}})}; n15=function(e,N,y){y=y===void 0?{}:y;return jrJ(e,N,!1,y)}; QrH=function(e,N,y){y=y===void 0?{}:y;return jrJ(e,N,!0,y)}; mAF=function(e,N){N=N===void 0?{}:N;var y,w;return g.f(function(E){if(E.J==1)return g.D(E,g.e7(),2);if(E.J!=3){y=E.N;if(!y)return E.return();S1(e);w=xAn(e);return g.D(E,HV(w.actualName,N),3)}return g.D(E,Rv(w.actualName,y),0)})}; Hi9=function(e,N,y){e=e.map(function(w){return g.f(function(E){return E.J==1?g.D(E,HV(w.actualName,N),2):g.D(E,Rv(w.actualName,y),0)})}); return Promise.all(e).then(function(){})}; K73=function(e){var N=N===void 0?{}:N;var y,w;return g.f(function(E){if(E.J==1)return g.D(E,g.e7(),2);if(E.J!=3){y=E.N;if(!y)return E.return();S1(e);return g.D(E,uM5(e,y),3)}w=E.N;return g.D(E,Hi9(w,N,y),0)})}; W7M=function(e,N){N=N===void 0?{}:N;var y;return g.f(function(w){if(w.J==1)return g.D(w,g.e7(),2);if(w.J!=3){y=w.N;if(!y)return w.return();S1(e);return g.D(w,HV(e,N),3)}return g.D(w,Rv(e,y),0)})}; N9=function(e,N){Kl.call(this,e,N);this.options=N;S1(e)}; OiE=function(e,N){var y;return function(){y||(y=new N9(e,N));return y}}; g.yJ=function(e,N){return OiE(e,N)}; wo=function(e){return g.WV(RTH(),e)}; GY1=function(e,N,y,w){var E,A,T;return g.f(function(p){switch(p.J){case 1:return E={config:e,hashData:N,timestamp:w!==void 0?w:(0,g.iC)()},g.D(p,wo(y),2);case 2:return A=p.N,g.D(p,A.clear("hotConfigStore"),3);case 3:return g.D(p,g.uC(A,"hotConfigStore",E),4);case 4:return T=p.N,p.return(T)}})}; UAH=function(e,N,y,w,E){var A,T,p;return g.f(function(C){switch(C.J){case 1:return A={config:e,hashData:N,configData:y,timestamp:E!==void 0?E:(0,g.iC)()},g.D(C,wo(w),2);case 2:return T=C.N,g.D(C,T.clear("coldConfigStore"),3);case 3:return g.D(C,g.uC(T,"coldConfigStore",A),4);case 4:return p=C.N,C.return(p)}})}; L7n=function(e){var N,y;return g.f(function(w){return w.J==1?g.D(w,wo(e),2):w.J!=3?(N=w.N,y=void 0,g.D(w,g.fl(N,["coldConfigStore"],{mode:"readwrite",Lx:!0},function(E){return g.QK(E.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(A){y=A.getValue()})}),3)):w.return(y)})}; srJ=function(e){var N,y;return g.f(function(w){return w.J==1?g.D(w,wo(e),2):w.J!=3?(N=w.N,y=void 0,g.D(w,g.fl(N,["hotConfigStore"],{mode:"readwrite",Lx:!0},function(E){return g.QK(E.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(A){y=A.getValue()})}),3)):w.return(y)})}; a69=function(){return g.f(function(e){return g.D(e,K73("ytGcfConfig"),0)})}; EE=function(){g.x.call(this);this.N=[];this.J=[];var e=g.nM("yt.gcf.config.hotUpdateCallbacks");e?(this.N=[].concat(g.B(e)),this.J=e):(this.J=[],g.jM("yt.gcf.config.hotUpdateCallbacks",this.J))}; ro=function(){var e=this;this.L=!1;this.K=this.j=0;this.Z=new EE;this.lk={bIs:function(){e.L=!0}, tIh:function(){return e.J}, O2h:function(N){Ax(e,N)}, K2:function(N){e.K2(N)}, ty1:function(N){Ti(e,N)}, l_:function(){return e.coldHashData}, Sk:function(){return e.hotHashData}, dxg:function(){return e.N}, ubW:function(){return Jx()}, imP:function(){return p6()}, xxB:function(){return g.nM("yt.gcf.config.coldHashData")}, ypZ:function(){return g.nM("yt.gcf.config.hotHashData")}, T1k:function(){e89(e)}, sNk:function(){e.K2(void 0);C6(e);delete ro.instance}, b2W:function(N){e.K=N}, Om1:function(){return e.K}}}; NxE=function(){if(!ro.instance){var e=new ro;ro.instance=e}return ro.instance}; Ern=function(e){var N;g.f(function(y){if(y.J==1)return g.Xj("start_client_gcf")||g.Xj("delete_gcf_config_db")?g.Xj("start_client_gcf")?g.D(y,g.e7(),3):y.u9(2):y.return();y.J!=2&&((N=y.N)&&g.LO()&&!g.Xj("delete_gcf_config_db")?(e.L=!0,e89(e)):(yTJ(e),wz_(e)));return g.Xj("delete_gcf_config_db")?g.D(y,a69(),0):y.u9(0)})}; $p=function(){var e;return(e=p6())!=null?e:g.Lb("RAW_HOT_CONFIG_GROUP")}; AT5=function(e){var N,y,w,E,A,T;return g.f(function(p){switch(p.J){case 1:if(e.N)return p.return(p6());if(!e.L)return N=g.X6("getHotConfig IDB not initialized"),yN(N),p.return(Promise.reject(N));y=av();w=g.Lb("TIME_CREATED_MS");if(!y){E=g.X6("getHotConfig token error");yN(E);p.u9(2);break}return g.D(p,srJ(y),3);case 3:if((A=p.N)&&A.timestamp>w)return Ax(e,A.config),e.K2(A.hashData),p.return(p6());case 2:wz_(e);if(!(y&&e.N&&e.hotHashData)){p.u9(4);break}return g.D(p,GY1(e.N,e.hotHashData,y,w),4);case 4:return e.N? p.return(p6()):(T=new g.Gh("Config not available in ytConfig"),yN(T),p.return(Promise.reject(T)))}})}; JTE=function(e){var N,y,w,E,A,T;return g.f(function(p){switch(p.J){case 1:if(e.J)return p.return(Jx());if(!e.L)return N=g.X6("getColdConfig IDB not initialized"),yN(N),p.return(Promise.reject(N));y=av();w=g.Lb("TIME_CREATED_MS");if(!y){E=g.X6("getColdConfig");yN(E);p.u9(2);break}return g.D(p,L7n(y),3);case 3:if((A=p.N)&&A.timestamp>w)return Ti(e,A.config),TxM(e,A.configData),C6(e,A.hashData),p.return(Jx());case 2:yTJ(e);if(!(y&&e.J&&e.coldHashData&&e.configData)){p.u9(4);break}return g.D(p,UAH(e.J, e.coldHashData,e.configData,y,w),4);case 4:return e.J?p.return(Jx()):(T=new g.Gh("Config not available in ytConfig"),yN(T),p.return(Promise.reject(T)))}})}; e89=function(e){if(!e.N||!e.J){if(!av()){var N=g.X6("scheduleGetConfigs");yN(N)}e.j||(e.j=g.Kk.kB(function(){return g.f(function(y){switch(y.J){case 1:return g.c5(y,2),g.D(y,AT5(e),4);case 4:g.B5(y,3);break;case 2:g.XH(y);case 3:return g.c5(y,5),g.D(y,JTE(e),7);case 7:g.B5(y,6);break;case 5:g.XH(y);case 6:e.j&&(e.j=0),g.hn(y)}})},100))}}; pzH=function(e,N,y){var w,E,A;return g.f(function(T){switch(T.J){case 1:if(!g.Xj("start_client_gcf")){T.u9(0);break}y&&Ax(e,y);e.K2(N);w=av();if(!w){T.u9(3);break}if(y){T.u9(4);break}return g.D(T,srJ(w),5);case 5:E=T.N,y=(A=E)==null?void 0:A.config;case 4:return g.D(T,GY1(y,N,w),3);case 3:if(y)for(var p=y,C=g.c(e.Z.J),r=C.next();!r.done;r=C.next())r=r.value,r(p);g.hn(T)}})}; CgM=function(e,N,y){var w,E,A,T;return g.f(function(p){if(p.J==1){if(!g.Xj("start_client_gcf"))return p.u9(0);C6(e,N);return(w=av())?y?p.u9(4):g.D(p,L7n(w),5):p.u9(0)}p.J!=4&&(E=p.N,y=(A=E)==null?void 0:A.config);if(!y)return p.u9(0);T=y.configData;return g.D(p,UAH(y,N,T,w),0)})}; rT0=function(){var e=NxE(),N=(0,g.iC)()-e.K;if(!(e.K!==0&&N0&&(N.request={internalExperimentFlags:y});YaM(e,void 0,N);MCs(void 0,N);lO5(void 0,N);FyH(e,void 0,N);Sa5(void 0,N);g.Xj("start_client_gcf")&&or_(void 0,N);g.Lb("DELEGATED_SESSION_ID")&& !g.Xj("pageid_as_header_web")&&(N.user={onBehalfOfUser:g.Lb("DELEGATED_SESSION_ID")});!g.Xj("fill_delegate_context_in_gel_killswitch")&&(e=g.Lb("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(N.user=Object.assign({},N.user,{serializedDelegationContext:e}));e=g.Lb("INNERTUBE_CONTEXT");var w;if(g.Xj("enable_persistent_device_token")&&(e==null?0:(w=e.client)==null?0:w.rolloutToken)){var E;N.client.rolloutToken=e==null?void 0:(E=e.client)==null?void 0:E.rolloutToken}w=Object;E=w.assign;e=N.client; y={};for(var A=g.c(Object.entries(AE(g.Lb("DEVICE","")))),T=A.next();!T.done;T=A.next()){var p=g.c(T.value);T=p.next().value;p=p.next().value;T==="cbrand"?y.deviceMake=p:T==="cmodel"?y.deviceModel=p:T==="cbr"?y.browserName=p:T==="cbrver"?y.browserVersion=p:T==="cos"?y.osName=p:T==="cosver"?y.osVersion=p:T==="cplatform"&&(y.platform=p)}N.client=E.call(w,e,y);return N}; YaM=function(e,N,y){e=e.pp;if(e==="WEB"||e==="MWEB"||e===1||e===2)if(N){y=Tx(N,gx,96)||new gx;var w=ju();w=Object.keys(bb5).indexOf(w);w=w===-1?null:w;w!==null&&bV(y,3,w);JQ(N,gx,96,y)}else y&&(y.client.mainAppWebInfo=(w=y.client.mainAppWebInfo)!=null?w:{},y.client.mainAppWebInfo.webDisplayMode=ju())}; MCs=function(e,N){var y=g.nM("yt.embedded_player.embed_url");y&&(e?(N=Tx(e,qy,7)||new qy,Sn(N,4,y),JQ(e,qy,7,N)):N&&(N.thirdParty={embedUrl:y}))}; lO5=function(e,N){var y;if(g.Xj("web_log_memory_total_kbytes")&&((y=g.xJ.navigator)==null?0:y.deviceMemory)){var w;y=(w=g.xJ.navigator)==null?void 0:w.deviceMemory;e?j4(e,95,bc(y*1E6)):N&&(N.client.memoryTotalKbytes=""+y*1E6)}}; FyH=function(e,N,y){if(e.appInstallData)if(N){var w;y=(w=Tx(N,DO,62))!=null?w:new DO;Sn(y,6,e.appInstallData);JQ(N,DO,62,y)}else y&&(y.client.configInfo=y.client.configInfo||{},y.client.configInfo.appInstallData=e.appInstallData)}; Sa5=function(e,N){var y=NeJ();y&&(e?bV(e,61,h85[y]):N&&(N.client.connectionType=y));g.Xj("web_log_effective_connection_type")&&(y=wD3())&&(e?bV(e,94,cTJ[y]):N&&(N.client.effectiveConnectionType=y))}; kzn=function(e,N,y){y=y===void 0?{}:y;var w={};g.Lb("EOM_VISITOR_DATA")?w={"X-Goog-EOM-Visitor-Id":g.Lb("EOM_VISITOR_DATA")}:w={"X-Goog-Visitor-Id":y.visitorData||g.Lb("VISITOR_DATA","")};if(N&&N.includes("www.youtube-nocookie.com"))return w;N=y.DG||g.Lb("AUTHORIZATION");N||(e?N="Bearer "+g.nM("gapi.auth.getToken")().access_token:(e=G1F().PQ(lt),g.Xj("pageid_as_header_web")||delete e["X-Goog-PageId"],w=Object.assign({},w,e)));N&&(w.Authorization=N);return w}; or_=function(e,N){var y=rT0();if(y){var w=y.coldConfigData,E=y.coldHashData;y=y.hotHashData;if(e){var A;N=(A=Tx(e,DO,62))!=null?A:new DO;w=Sn(N,1,w);Sn(w,3,E).K2(y);JQ(e,DO,62,N)}else N&&(N.client.configInfo=N.client.configInfo||{},w&&(N.client.configInfo.coldConfigData=w),E&&(N.client.configInfo.coldHashData=E),y&&(N.client.configInfo.hotHashData=y))}}; FG=function(e,N){this.version=e;this.args=N}; S7=function(e,N){this.topic=e;this.J=N}; bt=function(e,N){var y=oe();y&&y.publish.call(y,e.toString(),e,N)}; PgE=function(e){var N=BxM,y=oe();if(!y)return 0;var w=y.subscribe(N.toString(),function(E,A){var T=g.nM("ytPubsub2Pubsub2SkipSubKey");T&&T==w||(T=function(){if(hx[w])try{if(A&&N instanceof S7&&N!=E)try{var p=N.J,C=A;if(!C.args||!C.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!p.Hy){var r=new p;p.Hy=r.version}var Y=p.Hy}catch(M){}if(!Y||C.version!=Y)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{A=Reflect.construct(p, g.eE(C.args))}catch(M){throw M.message="yt.pubsub2.Data.deserialize(): "+M.message,M;}}catch(M){throw M.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+N.toString()+": "+M.message,M;}e.call(window,A)}catch(M){g.eH(M)}},XzH[N.toString()]?g.w0()?g.Kk.kB(T):g.b4(T,0):T())}); hx[w]=!0;Pi[N.toString()]||(Pi[N.toString()]=[]);Pi[N.toString()].push(w);return w}; vrF=function(){var e=dy3,N=PgE(function(y){e.apply(void 0,arguments);IO9(N)}); return N}; IO9=function(e){var N=oe();N&&(typeof e==="number"&&(e=[e]),g.$R(e,function(y){N.unsubscribeByKey(y);delete hx[y]}))}; oe=function(){return g.nM("ytPubsub2Pubsub2Instance")}; Ie=function(e,N,y){y=y===void 0?{sampleRate:.1}:y;Math.random()fOJ||T=ZbH&&(q9++,g.Xj("abandon_compression_after_N_slow_zips")?ut===g.PL("compression_disable_point")&&q9>xyP&&(VJ=!1):VJ=!1);jG5(N);w.headers||(w.headers={});w.headers["Content-Encoding"]="gzip";w.postBody=e;w.postParams=void 0;E(y,w)}; nrP=function(e){var N=N===void 0?!1:N;var y=y===void 0?!1:y;var w=(0,g.iC)(),E={startTime:w,ticks:{},infos:{}},A=N?g.nM("yt.logging.gzipForFetch",!1):!0;if(VJ&&A){if(!e.body)return e;try{var T=y?e.body:typeof e.body==="string"?e.body:JSON.stringify(e.body);A=T;if(!y&&typeof T==="string"){var p=VCJ(T);if(p!=null&&(p>fOJ||p=ZbH)if(q9++,g.Xj("abandon_compression_after_N_slow_zips")||g.Xj("abandon_compression_after_N_slow_zips_lr")){N=q9/ut;var r=xyP/g.PL("compression_disable_point");ut>0&&ut%g.PL("compression_disable_point")===0&&N>=r&&(VJ=!1)}else VJ=!1;jG5(E)}}e.headers=Object.assign({},{"Content-Encoding":"gzip"},e.headers||{});e.body=A;return e}catch(Y){return yN(Y),e}}else return e}; VCJ=function(e){try{return(new Blob(e.split(""))).size}catch(N){return yN(N),null}}; jG5=function(e){g.Xj("gel_compression_csi_killswitch")||!g.Xj("log_gel_compression_latency")&&!g.Xj("log_gel_compression_latency_lr")||Ie("gel_compression",e,{sampleRate:.1})}; xp=function(e){var N=this;this.V7=this.J=!1;this.potentialEsfErrorCounter=this.N=0;this.handleError=function(){}; this.nW=function(){}; this.now=Date.now;this.KV=!1;this.lk={j7B:function(Y){N.fq=Y}, H2P:function(){N.Ml()}, Ha:function(){N.dU()}, kf:function(Y){return g.f(function(M){return g.D(M,N.kf(Y),0)})}, Vx:function(Y,M){return N.Vx(Y,M)}, Is:function(){N.Is()}}; var y;this.oP=(y=e.oP)!=null?y:100;var w;this.UK=(w=e.UK)!=null?w:1;var E;this.HD=(E=e.HD)!=null?E:2592E6;var A;this.SA=(A=e.SA)!=null?A:12E4;var T;this.XC=(T=e.XC)!=null?T:5E3;var p;this.fq=(p=e.fq)!=null?p:void 0;this.Rz=!!e.Rz;var C;this.kV=(C=e.kV)!=null?C:.1;var r;this.CP=(r=e.CP)!=null?r:10;e.handleError&&(this.handleError=e.handleError);e.nW&&(this.nW=e.nW);e.KV&&(this.KV=e.KV);e.V7&&(this.V7=e.V7);this.gP=e.gP;this.hx=e.hx;this.kp=e.kp;this.nN=e.nN;this.sendFn=e.sendFn;this.f4=e.f4;this.fF= e.fF;Zx(this)&&(!this.gP||this.gP("networkless_logging"))&&QG5(this)}; QG5=function(e){Zx(e)&&!e.KV&&(e.J=!0,e.Rz&&Math.random()<=e.kV&&e.kp.mU(e.fq),e.Is(),e.nN.E4()&&e.Ml(),e.nN.listen(e.f4,e.Ml.bind(e)),e.nN.listen(e.fF,e.dU.bind(e)))}; Ky_=function(e,N){if(!Zx(e))throw Error("IndexedDB is not supported: updateRequestHandlers");var y=N.options.onError?N.options.onError:function(){}; N.options.onError=function(E,A){var T,p,C,r;return g.f(function(Y){switch(Y.J){case 1:T=my5(A);(p=HbF(A))&&e.gP&&e.gP("web_enable_error_204")&&e.handleError(Error("Request failed due to compression"),N.url,A);if(!(e.gP&&e.gP("nwl_consider_error_code")&&T||e.gP&&!e.gP("nwl_consider_error_code")&&e.potentialEsfErrorCounter<=e.CP)){Y.u9(2);break}if(!e.nN.K0){Y.u9(3);break}return g.D(Y,e.nN.K0(),3);case 3:if(e.nN.E4()){Y.u9(2);break}y(E,A);if(!e.gP||!e.gP("nwl_consider_error_code")||((C=N)==null?void 0: C.id)===void 0){Y.u9(6);break}return g.D(Y,e.kp.VK(N.id,e.fq,!1),6);case 6:return Y.return();case 2:if(e.gP&&e.gP("nwl_consider_error_code")&&!T&&e.potentialEsfErrorCounter>e.CP)return Y.return();e.potentialEsfErrorCounter++;if(((r=N)==null?void 0:r.id)===void 0){Y.u9(8);break}return N.sendCount=400&&e<=599?!1:!0}; HbF=function(e){var N;e=e==null?void 0:(N=e.error)==null?void 0:N.code;return!(e!==400&&e!==415)}; Wy0=function(){if(n6)return n6();var e={};n6=g.yJ("LogsDatabaseV2",{Ed:(e.LogsRequestsStore={Bs:2},e),shared:!1,upgrade:function(N,y,w){y(2)&&g.g0(N,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});y(3);y(5)&&(w=w.objectStore("LogsRequestsStore"),w.J.indexNames.contains("newRequest")&&w.J.deleteIndex("newRequest"),g.Zm(w,"newRequestV2",["status","interface","timestamp"]));y(7)&&VK(N,"sapisid");y(9)&&VK(N,"SWHealthLog")}, version:9});return n6()}; QJ=function(e){return g.WV(Wy0(),e)}; R8P=function(e,N){var y,w,E,A;return g.f(function(T){if(T.J==1)return y={startTime:(0,g.iC)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.D(T,QJ(N),2);if(T.J!=3)return w=T.N,E=Object.assign({},e,{options:JSON.parse(JSON.stringify(e.options)),interface:g.Lb("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.D(T,g.uC(w,"LogsRequestsStore",E),3);A=T.N;y.ticks.tc=(0,g.iC)();Ob1(y);return T.return(A)})}; GzH=function(e,N){var y,w,E,A,T,p,C,r;return g.f(function(Y){if(Y.J==1)return y={startTime:(0,g.iC)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.D(Y,QJ(N),2);if(Y.J!=3)return w=Y.N,E=g.Lb("INNERTUBE_CONTEXT_CLIENT_NAME",0),A=[e,E,0],T=[e,E,(0,g.iC)()],p=IDBKeyRange.bound(A,T),C="prev",g.Xj("use_fifo_for_networkless")&&(C="next"),r=void 0,g.D(Y,g.fl(w,["LogsRequestsStore"],{mode:"readwrite",Lx:!0},function(M){return g.QK(M.objectStore("LogsRequestsStore").index("newRequestV2"), {query:p,direction:C},function(l){l.getValue()&&(r=l.getValue(),e==="NEW"&&(r.status="QUEUED",l.update(r)))})}),3); y.ticks.tc=(0,g.iC)();Ob1(y);return Y.return(r)})}; Uys=function(e,N){var y;return g.f(function(w){if(w.J==1)return g.D(w,QJ(N),2);y=w.N;return w.return(g.fl(y,["LogsRequestsStore"],{mode:"readwrite",Lx:!0},function(E){var A=E.objectStore("LogsRequestsStore");return A.get(e).then(function(T){if(T)return T.status="QUEUED",g.tg(A,T).then(function(){return T})})}))})}; Lyn=function(e,N,y,w){y=y===void 0?!0:y;var E;return g.f(function(A){if(A.J==1)return g.D(A,QJ(N),2);E=A.N;return A.return(g.fl(E,["LogsRequestsStore"],{mode:"readwrite",Lx:!0},function(T){var p=T.objectStore("LogsRequestsStore");return p.get(e).then(function(C){return C?(C.status="NEW",y&&(C.sendCount+=1),w!==void 0&&(C.options.compress=w),g.tg(p,C).then(function(){return C})):g.d0.resolve(void 0)})}))})}; sGn=function(e,N){var y;return g.f(function(w){if(w.J==1)return g.D(w,QJ(N),2);y=w.N;return w.return(y.delete("LogsRequestsStore",e))})}; aO1=function(e){var N,y;return g.f(function(w){if(w.J==1)return g.D(w,QJ(e),2);N=w.N;y=(0,g.iC)()-2592E6;return g.D(w,g.fl(N,["LogsRequestsStore"],{mode:"readwrite",Lx:!0},function(E){return g.x$(E.objectStore("LogsRequestsStore"),{},function(A){if(A.getValue().timestamp<=y)return A.delete().then(function(){return g.j1(A)})})}),0)})}; eg1=function(){g.f(function(e){return g.D(e,K73("LogsDatabaseV2"),0)})}; Ob1=function(e){g.Xj("nwl_csi_killswitch")||Ie("networkless_performance",e,{sampleRate:1})}; yEJ=function(e){return g.WV(N2F(),e)}; wLM=function(e){var N,y;g.f(function(w){if(w.J==1)return g.D(w,yEJ(e),2);N=w.N;y=(0,g.iC)()-2592E6;return g.D(w,g.fl(N,["SWHealthLog"],{mode:"readwrite",Lx:!0},function(E){return g.x$(E.objectStore("SWHealthLog"),{},function(A){if(A.getValue().timestamp<=y)return A.delete().then(function(){return g.j1(A)})})}),0)})}; E3M=function(e){var N;return g.f(function(y){if(y.J==1)return g.D(y,yEJ(e),2);N=y.N;return g.D(y,N.clear("SWHealthLog"),0)})}; g.mK=function(e,N,y,w,E,A,T){E=E===void 0?"":E;A=A===void 0?!1:A;T=T===void 0?!1:T;if(e)if(y&&!g.O8())yN(new g.Gh("Legacy referrer-scrubbed ping detected")),e&&AE3(e,void 0,{scrubReferrer:!0});else if(E)vL(e,N,"POST",E,w);else if(g.Lb("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||w||T)vL(e,N,"GET","",w,void 0,A,T);else{b:{try{var p=new HoF({url:e});if(p.L?typeof p.K!=="string"||p.K.length===0?0:{version:3,cL:p.K,Sq:dN(p.J,"act=1","ri=1",KRP(p))}:p.Z&&{version:4,cL:dN(p.J,"dct=1","suid="+p.j,""),Sq:dN(p.J, "act=1","ri=1","suid="+p.j)}){var C=D9(g.to(5,e));var r=!(!C||!C.endsWith("/aclk")||Hc(e,"ri")!=="1");break b}}catch(Y){}r=!1}r?T2_(e)?(N&&N(),y=!0):y=!1:y=!1;y||AE3(e,N)}}; T2_=function(e,N){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(e,N===void 0?"":N))return!0}catch(y){}return!1}; AE3=function(e,N,y){y=y===void 0?{}:y;var w=new Image,E=""+JEs++;Hi[E]=w;w.onload=w.onerror=function(){N&&Hi[E]&&N();delete Hi[E]}; y.scrubReferrer&&(w.referrerPolicy="no-referrer");w.src=e}; pL0=function(e){var N;return((N=document.featurePolicy)==null?0:N.allowedFeatures().includes("attribution-reporting"))?e+"&nis=6":e+"&nis=5"}; Wi=function(){K6||(K6=new Ag("yt.offline"));return K6}; C49=function(e){if(g.Xj("offline_error_handling")){var N=Wi().get("errors",!0)||{};N[e.message]={name:e.name,stack:e.stack};e.level&&(N[e.message].level=e.level);Wi().set("errors",N,2592E3,!0)}}; OE=function(){this.J=new Map;this.N=!1}; Re=function(){if(!OE.instance){var e=g.nM("yt.networkRequestMonitor.instance")||new OE;g.jM("yt.networkRequestMonitor.instance",e);OE.instance=e}return OE.instance}; Gi=function(){g.Ux.call(this);var e=this;this.N=!1;this.J=Bm0();this.J.listen("networkstatus-online",function(){if(e.N&&g.Xj("offline_error_handling")){var N=Wi().get("errors",!0);if(N){for(var y in N)if(N[y]){var w=new g.Gh(y,"sent via offline_errors");w.name=N[y].name;w.stack=N[y].stack;w.level=N[y].level;g.eH(w)}Wi().set("errors",{},2592E3,!0)}}})}; rEF=function(){if(!Gi.instance){var e=g.nM("yt.networkStatusManager.instance")||new Gi;g.jM("yt.networkStatusManager.instance",e);Gi.instance=e}return Gi.instance}; g.UE=function(e){e=e===void 0?{}:e;g.Ux.call(this);var N=this;this.J=this.j=0;this.N=rEF();var y=g.nM("yt.networkStatusManager.instance.listen").bind(this.N);y&&(e.rateLimit?(this.rateLimit=e.rateLimit,y("networkstatus-online",function(){$Rn(N,"publicytnetworkstatus-online")}),y("networkstatus-offline",function(){$Rn(N,"publicytnetworkstatus-offline")})):(y("networkstatus-online",function(){N.dispatchEvent("publicytnetworkstatus-online")}),y("networkstatus-offline",function(){N.dispatchEvent("publicytnetworkstatus-offline")})))}; $Rn=function(e,N){e.rateLimit?e.J?(g.Kk.Zx(e.j),e.j=g.Kk.kB(function(){e.K!==N&&(e.dispatchEvent(N),e.K=N,e.J=(0,g.iC)())},e.rateLimit-((0,g.iC)()-e.J))):(e.dispatchEvent(N),e.K=N,e.J=(0,g.iC)()):e.dispatchEvent(N)}; sE=function(){var e=xp.call;L6||(L6=new g.UE({RaP:!0,Tfq:!0}));e.call(xp,this,{kp:{mU:aO1,jU:sGn,HW:GzH,bxP:Uys,VK:Lyn,set:R8P},nN:L6,handleError:function(N,y,w){var E,A=w==null?void 0:(E=w.error)==null?void 0:E.code;if(A===400||A===415){var T;yN(new g.Gh(N.message,y,w==null?void 0:(T=w.error)==null?void 0:T.code),void 0,void 0,void 0,!0)}else g.eH(N)}, nW:yN,sendFn:Y8J,now:g.iC,BB:C49,hx:g.yK(),f4:"publicytnetworkstatus-online",fF:"publicytnetworkstatus-offline",Rz:!0,kV:.1,CP:g.PL("potential_esf_error_limit",10),gP:g.Xj,KV:!(g.LO()&&g.uB(document.location.toString())!=="www.youtube-nocookie.com")});this.K=new g.lq;g.Xj("networkless_immediately_drop_all_requests")&&eg1();W7M("LogsDatabaseV2")}; ae=function(){var e=g.nM("yt.networklessRequestController.instance");e||(e=new sE,g.jM("yt.networklessRequestController.instance",e),g.Xj("networkless_logging")&&g.e7().then(function(N){e.fq=N;QG5(e);e.K.resolve();e.Rz&&Math.random()<=e.kV&&e.fq&&wLM(e.fq);g.Xj("networkless_immediately_drop_sw_health_store")&&MH5(e)})); return e}; MH5=function(e){var N;g.f(function(y){if(!e.fq)throw N=g.X6("clearSWHealthLogsDb"),N;return y.return(E3M(e.fq).catch(function(w){e.handleError(w)}))})}; Y8J=function(e,N,y,w){w=w===void 0?!1:w;N=g.Xj("web_fp_via_jspb")?Object.assign({},N):N;g.Xj("use_cfr_monitor")&&lJJ(e,N);if(g.Xj("use_request_time_ms_header"))N.headers&&r2(e)&&(N.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.iC)())));else{var E;if((E=N.postParams)==null?0:E.requestTimeMs)N.postParams.requestTimeMs=Math.round((0,g.iC)())}y&&Object.keys(N).length===0?g.mK(e):N.compress?N.postBody?(typeof N.postBody!=="string"&&(N.postBody=JSON.stringify(N.postBody)),tx(e,N.postBody, N,g.zk,w)):tx(e,JSON.stringify(N.postParams),N,i4,w):g.zk(e,N)}; eS=function(e,N){g.Xj("use_event_time_ms_header")&&r2(e)&&(N.headers||(N.headers={}),N.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.iC)())));return N}; lJJ=function(e,N){var y=N.onError?N.onError:function(){}; N.onError=function(E,A){Re().requestComplete(e,!1);y(E,A)}; var w=N.onSuccess?N.onSuccess:function(){}; N.onSuccess=function(E,A){Re().requestComplete(e,!0);w(E,A)}}; g.N6=function(e){this.config_=null;e?this.config_=e:$yF()&&(this.config_=g.Yp())}; g.y7=function(e,N,y,w){function E(r){try{if((r===void 0?0:r)&&w.retry&&!w.networklessOptions.bypassNetworkless)A.method="POST",w.networklessOptions.writeThenSend?ae().writeThenSend(C,A):ae().sendAndWrite(C,A);else if(w.compress){var Y=!w.networklessOptions.writeThenSend;if(A.postBody){var M=A.postBody;typeof M!=="string"&&(M=JSON.stringify(A.postBody));tx(C,M,A,g.zk,Y)}else tx(C,JSON.stringify(A.postParams),A,i4,Y)}else g.Xj("web_all_payloads_via_jspb")?g.zk(C,A):i4(C,A)}catch(l){if(l.name==="InvalidAccessError")yN(Error("An extension is blocking network request.")); else throw l;}} !g.Lb("VISITOR_DATA")&&N!=="visitor_id"&&Math.random()<.01&&yN(new g.Gh("Missing VISITOR_DATA when sending innertube request.",N,y,w));if(!e.isReady())throw e=new g.Gh("innertube xhrclient not ready",N,y,w),g.eH(e),e;var A={headers:w.headers||{},method:"POST",postParams:y,postBody:w.postBody,postBodyFormat:w.postBodyFormat||"JSON",onTimeout:function(){w.onTimeout()}, onFetchTimeout:w.onTimeout,onSuccess:function(r,Y){if(w.onSuccess)w.onSuccess(Y)}, onFetchSuccess:function(r){if(w.onSuccess)w.onSuccess(r)}, onError:function(r,Y){if(w.onError)w.onError(Y)}, onFetchError:function(r){if(w.onError)w.onError(r)}, timeout:w.timeout,withCredentials:!0,compress:w.compress};A.headers["Content-Type"]||(A.headers["Content-Type"]="application/json");y="";var T=e.config_.Bj;T&&(y=T);T=e.config_.mp||!1;var p=kzn(T,y,w);Object.assign(A.headers,p);A.headers.Authorization&&!y&&T&&(A.headers["x-origin"]=window.location.origin);var C=pp(""+y+("/youtubei/"+e.config_.innertubeApiVersion+"/"+N),{alt:"json"});g.nM("ytNetworklessLoggingInitializationOptions")&&FH9.isNwlInitialized?ZiE().then(function(r){E(r)}):E(!1)}; g.Jl=function(e,N,y){var w=g.wW();if(w&&N){var E=w.subscribe(e,function(){function A(){EC[E]&&N.apply&&typeof N.apply=="function"&&N.apply(y||window,T)} var T=arguments;try{g.Al[e]?A():g.b4(A,0)}catch(p){g.eH(p)}},y); EC[E]=!0;T_[e]||(T_[e]=[]);T_[e].push(E);return E}return 0}; S83=function(e){var N=g.Jl("LOGGED_IN",function(y){e.apply(void 0,arguments);g.pE(N)})}; g.pE=function(e){var N=g.wW();N&&(typeof e==="number"?e=[e]:typeof e==="string"&&(e=[parseInt(e,10)]),g.$R(e,function(y){N.unsubscribeByKey(y);delete EC[y]}))}; g.CE=function(e,N){var y=g.wW();return y?y.publish.apply(y,arguments):!1}; bp5=function(e){var N=g.wW();if(N)if(N.clear(e),e)o3s(e);else for(var y in T_)o3s(y)}; g.wW=function(){return g.xJ.ytPubsubPubsubInstance}; o3s=function(e){T_[e]&&(e=T_[e],g.$R(e,function(N){EC[N]&&delete EC[N]}),e.length=0)}; g.rW=function(e,N,y){hgF(e,N,y===void 0?null:y)}; hgF=function(e,N,y){y=y===void 0?null:y;var w=cE_(e),E=document.getElementById(w),A=E&&VaE(E),T=E&&!A;A?N&&N():(N&&(A=g.Jl(w,N),N=""+g.RP(N),kk9[N]=A),T||(E=B20(e,w,function(){VaE(E)||(gDE(E),g.CE(w),g.b4(function(){bp5(w)},0))},y)))}; B20=function(e,N,y,w){w=w===void 0?null:w;var E=g.sA("SCRIPT");E.id=N;E.onload=function(){y&&setTimeout(y,0)}; E.onreadystatechange=function(){switch(E.readyState){case "loaded":case "complete":E.onload()}}; w&&E.setAttribute("nonce",w);g.QZ(E,g.vz(e));e=document.getElementsByTagName("head")[0]||document.body;e.insertBefore(E,e.firstChild);return E}; cE_=function(e){var N=document.createElement("a");g.VZ(N,e);e=N.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+sK(e)}; $5=function(e,N){if(e===N)e=!0;else if(Array.isArray(e)&&Array.isArray(N))e=g.Cf(e,N,$5);else if(g.W5(e)&&g.W5(N))a:if(g.Xw(e).length!=g.Xw(N).length)e=!1;else{for(var y in e)if(!$5(e[y],N[y])){e=!1;break a}e=!0}else e=!1;return e}; la=function(e){var N=g.iE.apply(1,arguments);if(!Y5(e)||N.some(function(w){return!Y5(w)}))throw Error("Only objects may be merged."); N=g.c(N);for(var y=N.next();!y.done;y=N.next())M6(e,y.value)}; M6=function(e,N){for(var y in N)if(Y5(N[y])){if(y in e&&!Y5(e[y]))throw Error("Cannot merge an object into a non-object.");y in e||(e[y]={});M6(e[y],N[y])}else if(hl(N[y])){if(y in e&&!hl(e[y]))throw Error("Cannot merge an array into a non-array.");y in e||(e[y]=[]);XLF(e[y],N[y])}else e[y]=N[y];return e}; XLF=function(e,N){N=g.c(N);for(var y=N.next();!y.done;y=N.next())y=y.value,Y5(y)?e.push(M6({},y)):hl(y)?e.push(XLF([],y)):e.push(y);return e}; Y5=function(e){return typeof e==="object"&&!Array.isArray(e)}; hl=function(e){return typeof e==="object"&&Array.isArray(e)}; cX=function(e){g.x.call(this);this.N=e}; k5=function(e){cX.call(this,!0);this.J=e}; P45=function(e,N){g.x.call(this);var y=this;this.K=[];this.G=!1;this.N=0;this.L=this.Z=this.j=!1;this.Ng=null;var w=(0,g.Gs)(e,N);this.J=new g.e6(function(){return w(y.Ng)},300); g.Q(this,this.J);this.D=this.U=Infinity}; dR0=function(e,N){if(!N)return!1;for(var y=0;y-1)throw Error("Deps cycle for: "+N);if(e.N.has(N))return e.N.get(N);if(!e.J.has(N)){if(w)return;throw Error("No provider for: "+N);}w=e.J.get(N);y.push(N);if(w.aB!==void 0)var E=w.aB;else if(w.IWl)E=w[V7]?ip_(e,w[V7],y):[],E=w.IWl.apply(w,g.B(E));else if(w.SB){E=w.SB;var A=E[V7]?ip_(e,E[V7],y):[];E=new (Function.prototype.bind.apply(E,[null].concat(g.B(A))))}else throw Error("Could not resolve providers for: "+N);y.pop();w.doZ||e.N.set(N,E); return E}; ip_=function(e,N,y){return N?N.map(function(w){return w instanceof Dc?fE(e,w.key,y,!0):fE(e,w,y)}):[]}; ua=function(){tl||(tl=new zgJ);return tl}; Zc=function(){var e,N;return"h5vcc"in q6&&((e=q6.h5vcc.traceEvent)==null?0:e.traceBegin)&&((N=q6.h5vcc.traceEvent)==null?0:N.traceEnd)?1:"performance"in q6&&q6.performance.mark&&q6.performance.measure?2:0}; x5=function(e){var N=Zc();switch(N){case 1:q6.h5vcc.traceEvent.traceBegin("YTLR",e);break;case 2:q6.performance.mark(e+"-start");break;case 0:break;default:wa(N,"unknown trace type")}}; DR5=function(e){var N=Zc();switch(N){case 1:q6.h5vcc.traceEvent.traceEnd("YTLR",e);break;case 2:N=e+"-start";var y=e+"-end";q6.performance.mark(y);q6.performance.measure(e,N,y);break;case 0:break;default:wa(N,"unknown trace type")}}; g3M=function(e){var N,y;(y=(N=window).onerror)==null||y.call(N,e.message,"",0,0,e)}; VHE=function(e){var N=this;var y=y===void 0?0:y;var w=w===void 0?g.yK():w;this.K=y;this.scheduler=w;this.N=new g.lq;this.J=e;for(e={Ol:0};e.Ol=1E3?E():w>=e?CQ||(CQ=rI(function(){E();CQ=void 0},0)):A-p>=10&&(UR5(N,y.tier),T.j=A)}; KHF=function(e,N){if(e.endpoint==="log_event"){g.Xj("more_accurate_gel_parser")&&eP().storePayload({isJspb:!1},e.payload);yu(e);var y=wI(e),w=new Map;w.set(y,[e.payload]);var E=QyM(e.payload)||"";N&&(J0=new N);return new g.lB(function(A,T){J0&&J0.isReady()?LH_(w,J0,A,T,{bypassNetworkless:!0},!0,A0(E)):A()})}}; RgM=function(e,N,y){if(N.endpoint==="log_event"){yu(void 0,N);var w=wI(N,!0),E=new Map;E.set(w,[vW(N.payload)]);y&&(J0=new y);return new g.lB(function(A){J0&&J0.isReady()?sy_(E,J0,A,{bypassNetworkless:!0},!0,A0(e)):A()})}}; wI=function(e,N){var y="";if(e.dangerousLogToVisitorSession)y="visitorOnlyApprovedKey";else if(e.cttAuthInfo){if(N===void 0?0:N){N=e.cttAuthInfo.token;y=e.cttAuthInfo;var w=new RG;y.videoId?w.setVideoId(y.videoId):y.playlistId&&en(w,2,$g,cW(y.playlistId));Yg[N]=w}else N=e.cttAuthInfo,y={},N.videoId?y.videoId=N.videoId:N.playlistId&&(y.playlistId=N.playlistId),Mi[e.cttAuthInfo.token]=y;y=e.cttAuthInfo.token}return y}; TO=function(e,N,y){e=e===void 0?{}:e;N=N===void 0?!1:N;new g.lB(function(w,E){var A=pQ(N,y),T=A.K;A.K=!1;lA(A.N);lA(A.J);A.J=0;J0&&J0.isReady()?y===void 0&&g.Xj("enable_web_tiered_gel")?aJ9(w,E,e,N,300,T):aJ9(w,E,e,N,y,T):(UR5(N,y),w())})}; aJ9=function(e,N,y,w,E,A){var T=J0;y=y===void 0?{}:y;w=w===void 0?!1:w;E=E===void 0?200:E;A=A===void 0?!1:A;var p=new Map,C=new Map,r={isJspb:w,cttAuthInfo:void 0,tier:E},Y={isJspb:w,cttAuthInfo:void 0};if(w){N=g.c(Object.keys(E$));for(E=N.next();!E.done;E=N.next())E=E.value,C=g.Xj("enable_web_tiered_gel")?eP().smartExtractMatchingEntries({keys:[r,Y],sizeLimit:1E3}):eP().extractMatchingEntries({isJspb:!0,cttAuthInfo:E}),C.length>0&&p.set(E,C),(g.Xj("web_fp_via_jspb_and_json")&&y.writeThenSend||!g.Xj("web_fp_via_jspb_and_json"))&& delete E$[E];sy_(p,T,e,y,!1,A)}else{p=g.c(Object.keys(E$));for(r=p.next();!r.done;r=p.next())r=r.value,Y=g.Xj("enable_web_tiered_gel")?eP().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:r,tier:E},{isJspb:!1,cttAuthInfo:r}],sizeLimit:1E3}):eP().extractMatchingEntries({isJspb:!1,cttAuthInfo:r}),Y.length>0&&C.set(r,Y),(g.Xj("web_fp_via_jspb_and_json")&&y.writeThenSend||!g.Xj("web_fp_via_jspb_and_json"))&&delete E$[r];LH_(C,T,e,N,y,!1,A)}}; UR5=function(e,N){function y(){TO({writeThenSend:!0},e,N)} e=e===void 0?!1:e;N=N===void 0?200:N;var w=pQ(e,N),E=w===eP3||w===N9P?5E3:y2s;g.Xj("web_gel_timeout_cap")&&!w.J&&(E=rI(function(){y()},E),w.J=E); lA(w.N);E=g.Lb("LOGGING_BATCH_TIMEOUT",g.PL("web_gel_debounce_ms",1E4));g.Xj("shorten_initial_gel_batch_timeout")&&FV&&(E=wE5);E=rI(function(){g.PL("gel_min_batch_size")>0?eP().getSequenceCount({cttAuthInfo:void 0,isJspb:e,tier:N})>=Eh5&&y():y()},E); w.N=E}; LH_=function(e,N,y,w,E,A,T){E=E===void 0?{}:E;var p=Math.round((0,g.iC)()),C=e.size,r=A2_(T);e=g.c(e);var Y=e.next();for(T={};!Y.done;T={JS:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,sG:void 0,cq:void 0},Y=e.next()){var M=g.c(Y.value);Y=M.next().value;M=M.next().value;T.batchRequest=g.gi({context:g.M9(N.config_||g.Yp())});if(!g.KM(M)&&!g.Xj("throw_err_when_logevent_malformed_killswitch")){w();break}T.batchRequest.events=M;(M=Mi[Y])&&T99(T.batchRequest,Y,M);delete Mi[Y];T.dangerousLogToVisitorSession= Y==="visitorOnlyApprovedKey";J29(T.batchRequest,p,T.dangerousLogToVisitorSession);pEP(E);T.sG=function(l){g.Xj("start_client_gcf")&&g.Kk.kB(function(){return g.f(function(F){return g.D(F,CYn(l),0)})}); C--;C||y()}; T.JS=0;T.cq=function(l){return function(){l.JS++;if(E.bypassNetworkless&&l.JS===1)try{g.y7(N,r,l.batchRequest,SP({writeThenSend:!0},l.dangerousLogToVisitorSession,l.sG,l.cq,A)),FV=!1}catch(F){g.eH(F),w()}C--;C||y()}}(T); try{g.y7(N,r,T.batchRequest,SP(E,T.dangerousLogToVisitorSession,T.sG,T.cq,A)),FV=!1}catch(l){g.eH(l),w()}}}; sy_=function(e,N,y,w,E,A){w=w===void 0?{}:w;var T=Math.round((0,g.iC)()),p={value:e.size},C=new Map([].concat(g.B(e)));C=g.c(C);for(var r=C.next();!r.done;r=C.next()){var Y=g.c(r.value).next().value,M=e.get(Y);r=new ZG5;var l=N.config_||g.Yp(),F=new jC,S=new V2;Sn(S,1,l.Ji);Sn(S,2,l.Ff);bV(S,16,l.EC);Sn(S,17,l.innertubeContextClientVersion);if(l.LM){var k=l.LM,X=new DO;k.coldConfigData&&Sn(X,1,k.coldConfigData);k.appInstallData&&Sn(X,6,k.appInstallData);k.coldHashData&&Sn(X,3,k.coldHashData);k.hotHashData&& X.K2(k.hotHashData);JQ(S,DO,62,X)}(k=g.xJ.devicePixelRatio)&&k!=1&&j4(S,65,Er(k));k=d2();k!==""&&Sn(S,54,k);k=Iy();if(k.length>0){X=new ug;for(var d=0;d65535&&(e=1);Ua("BATCH_CLIENT_COUNTER",e);return e}; T99=function(e,N,y){if(y.videoId)var w="VIDEO";else if(y.playlistId)w="PLAYLIST";else return;e.credentialTransferTokenTargetId=y;e.context=e.context||{};e.context.user=e.context.user||{};e.context.user.credentialTransferTokens=[{token:N,scope:w}]}; yu=function(e,N){if(!g.nM("yt.logging.transport.enableScrapingForTest")){var y=BL("il_payload_scraping");if((y!==void 0?String(y):"")==="enable_il_payload_scraping")h0=[],g.jM("yt.logging.transport.enableScrapingForTest",!0),g.jM("yt.logging.transport.scrapedPayloadsForTesting",h0),g.jM("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.jM("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.jM("yt.logging.transport.scrapeClientEvent",!0);else return}y=g.nM("yt.logging.transport.scrapedPayloadsForTesting");var w=g.nM("yt.logging.transport.payloadToScrape");N&&(N=N.payload,(N=g.nM("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(N)())&&y.push(N));N=g.nM("yt.logging.transport.scrapeClientEvent");if(w&&w.length>=1)for(var E=0;E0&&DI1(e,N,A)}else DI1(e,N)}; DI1=function(e,N,y){e=gh5(e);N=N?g.nY(N):"";y=y||5;EF()&&g.x3(e,N,y)}; gh5=function(e){for(var N=g.c(Vus),y=N.next();!y.done;y=N.next())e=KY(e,y.value);return"ST-"+sK(e).toString(36)}; fw0=function(e){if(e.name==="JavaException")return!0;e=e.stack;return e.includes("chrome://")||e.includes("chrome-extension://")||e.includes("moz-extension://")}; tu1=function(){this.QY=[];this.Tr=[]}; DL=function(){if(!iA){var e=iA=new tu1;e.Tr.length=0;e.QY.length=0;ucP(e,qF3)}return iA}; ucP=function(e,N){N.Tr&&e.Tr.push.apply(e.Tr,N.Tr);N.QY&&e.QY.push.apply(e.QY,N.QY)}; ZO1=function(e){function N(){return e.charCodeAt(w++)} var y=e.length,w=0;do{var E=gI(N);if(E===Infinity)break;var A=E>>3;switch(E&7){case 0:E=gI(N);if(A===2)return E;break;case 1:if(A===2)return;w+=8;break;case 2:E=gI(N);if(A===2)return e.substr(w,E);w+=E;break;case 5:if(A===2)return;w+=4;break;default:return}}while(w500));w++);w=E}else if(typeof e==="object")for(E in e){if(e[E]){var A=E;var T=e[E],p=N,C=y;A=typeof T!=="string"||A!=="clickTrackingParams"&&A!=="trackingParams"?0:(T=ZO1(atob(T.replace(/-/g,"+").replace(/_/g,"/"))))?Vu(A+".ve",T,p,C):0;w+=A;w+=Vu(E,e[E],N,y);if(w>500)break}}else y[N]=fQ(e),w+=y[N].length;else y[N]=fQ(e),w+=y[N].length;return w}; Vu=function(e,N,y,w){y+="."+e;e=fQ(N);w[y]=e;return y.length+e.length}; fQ=function(e){try{return(typeof e==="string"?e:String(JSON.stringify(e))).substr(0,500)}catch(N){return"unable to serialize "+typeof e+" ("+N.message+")"}}; r0=function(e){g.t0(e)}; g.uA=function(e){g.t0(e,"WARNING")}; g.t0=function(e,N){var y=y===void 0?{}:y;y.name=g.Lb("INNERTUBE_CONTEXT_CLIENT_NAME",1);y.version=g.Lb("INNERTUBE_CONTEXT_CLIENT_VERSION");N=N===void 0?"ERROR":N;var w=!1;N=N===void 0?"ERROR":N;w=w===void 0?!1:w;if(e){e.hasOwnProperty("level")&&e.level&&(N=e.level);if(g.Xj("console_log_js_exceptions")){var E=[];E.push("Name: "+e.name);E.push("Message: "+e.message);e.hasOwnProperty("params")&&E.push("Error Params: "+JSON.stringify(e.params));e.hasOwnProperty("args")&&E.push("Error args: "+JSON.stringify(e.args)); E.push("File name: "+e.fileName);E.push("Stacktrace: "+e.stack);window.console.log(E.join("\n"),e)}if(!(jz5>=5)){E=nhM;var A=Pc_(e),T=A.message||"Unknown Error",p=A.name||"UnknownError",C=A.stack||e.N||"Not available";if(C.startsWith(p+": "+T)){var r=C.split("\n");r.shift();C=r.join("\n")}r=A.lineNumber||"Not available";A=A.fileName||"Not available";var Y=0;if(e.hasOwnProperty("args")&&e.args&&e.args.length)for(var M=0;M=500);M++);else if(e.hasOwnProperty("params")&& e.params){var l=e.params;if(typeof e.params==="object")for(M in l){if(l[M]){var F="params."+M,S=fQ(l[M]);y[F]=S;Y+=F.length+S.length;if(Y>500)break}}else y.params=fQ(l)}if(E.length)for(M=0;M=500);M++);navigator.vendor&&!y.hasOwnProperty("vendor")&&(y["device.vendor"]=navigator.vendor);y={message:T,name:p,lineNumber:r,fileName:A,stack:C,params:y,sampleWeight:1};E=Number(e.columnNumber);isNaN(E)||(y.lineNumber=y.lineNumber+":"+E);if(e.level==="IGNORED")e= 0;else a:{e=DL();E=g.c(e.Tr);for(T=E.next();!T.done;T=E.next())if(T=T.value,y.message&&y.message.match(T.LI)){e=T.weight;break a}e=g.c(e.QY);for(E=e.next();!E.done;E=e.next())if(E=E.value,E.callback(y)){e=E.weight;break a}e=1}y.sampleWeight=e;e=g.c(Qz1);for(E=e.next();!E.done;E=e.next())if(E=E.value,E.lE[y.name])for(p=g.c(E.lE[y.name]),T=p.next();!T.done;T=p.next())if(M=T.value,T=y.message.match(M.Jo)){y.params["params.error.original"]=T[0];p=M.groups;M={};for(r=0;r1E3&&g.uA(new g.Gh("IL Attach cache exceeded limit"))}p= GO(y,N);H7.has(p)?U$(y,N):W7.set(p,!0)}}w=w.filter(function(Y){Y.csn!==N?(Y.csn=N,Y=!0):Y=!1;return Y}); y={csn:N,parentVe:y.getAsJson(),childVes:g.dn(w,function(Y){return Y.getAsJson()})}; N==="UNDEFINED_CSN"?LQ("visualElementAttached",A,y):e?kg("visualElementAttached",y,e,A):g.$$("visualElementAttached",y,A)}; wV5=function(e,N,y,w,E){s$(y,N);w=mj({cttAuthInfo:v7(N)||void 0},N);y={csn:N,ve:y.getAsJson(),eventType:1};E&&(y.clientData=E);N==="UNDEFINED_CSN"?LQ("visualElementShown",w,y):e?kg("visualElementShown",y,e,w):g.$$("visualElementShown",y,w)}; E$5=function(e,N,y,w){var E=(w=w===void 0?!1:w)?16:8;w=mj({cttAuthInfo:v7(N)||void 0,endOfSequence:w},N);y={csn:N,ve:y.getAsJson(),eventType:E};N==="UNDEFINED_CSN"?LQ("visualElementHidden",w,y):e?kg("visualElementHidden",y,e,w):g.$$("visualElementHidden",y,w)}; AgP=function(e,N,y,w,E){at(e,N,y,void 0,w,E)}; at=function(e,N,y,w,E){s$(y,N);w=w||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var A=mj({cttAuthInfo:v7(N)||void 0},N);y={csn:N,ve:y.getAsJson(),gestureType:w};E&&(y.clientData=E);N==="UNDEFINED_CSN"?LQ("visualElementGestured",A,y):e?kg("visualElementGestured",y,e,A):g.$$("visualElementGestured",y,A)}; T0M=function(){var e=Xd(16);for(var N=[],y=0;y0&&y.push(g.sA("BR"));y.push(g.aB(A))}):y.push(g.aB(w))}return y}; Yl=function(e,N,y,w){if(y==="child"){g.N8(N);var E;w===void 0?E=void 0:E=!Array.isArray(w)||w&&typeof w.S==="string"?[w]:w;y=pV5(e,E);y=g.c(y);for(e=y.next();!e.done;e=y.next())N.appendChild(e.value)}else y==="style"?g.$0(N,"cssText",w?w:""):w===null||w===void 0?N.removeAttribute(y):(e=w.toString(),y==="href"&&(e=g.vP(g.Ds(e))),N.setAttribute(y,e))}; g.W=function(e){g.r1.call(this,e);this.Og=!0;this.L=!1;this.listeners=[]}; g.Mu=function(e){g.W.call(this,e);this.Et=new g.pT;g.Q(this,this.Et)}; lj=function(e,N,y,w,E,A,T){T=T===void 0?null:T;g.Mu.call(this,N);this.api=e;this.macros={};this.componentType=y;this.G=this.U=null;this.Kx=T;this.layoutId=w;this.interactionLoggingClientData=E;this.Y1=A;this.Wk=null;this.sE=new k5(this.element);g.Q(this,this.sE);this.Dl=this.Y(this.element,"click",this.onClick);this.l9=[];this.qg=new P45(this.onClick,this);g.Q(this,this.qg);this.dT=!1;this.Rq=this.Ng=null}; F3=function(e,N){e=e===void 0?null:e;N=N===void 0?null:N;if(e==null)return g.uA(Error("Got null or undefined adText object")),"";var y=g.Ly(e.text);if(!e.isTemplated)return y;if(N==null)return g.uA(Error("Missing required parameters for a templated message")),y;e=g.c(Object.entries(N));for(N=e.next();!N.done;N=e.next()){var w=g.c(N.value);N=w.next().value;w=w.next().value;y=y.replace("{"+N+"}",w)}return y}; CC5=function(e){e=e===void 0?null:e;return e!=null&&(e=e.thumbnail,e!=null&&e.thumbnails!=null&&e.thumbnails.length!=0&&e.thumbnails[0].url!=null)?g.Ly(e.thumbnails[0].url):""}; rgM=function(e){e=e===void 0?null:e;return e!=null&&(e=e.thumbnail,e!=null&&e.thumbnails!=null&&e.thumbnails.length!=0&&e.thumbnails[0].width!=null&&e.thumbnails[0].height!=null)?new g.l8(e.thumbnails[0].width||0,e.thumbnails[0].height||0):new g.l8(0,0)}; g.SY=function(e){if(e.simpleText)return e.simpleText;if(e.runs){var N=[];e=g.c(e.runs);for(var y=e.next();!y.done;y=e.next())y=y.value,y.text&&N.push(y.text);return N.join("")}return""}; g.oM=function(e){if(e.simpleText)return e=document.createTextNode(e.simpleText),e;var N=[];if(e.runs)for(var y=0;y1){for(var N=[e[0]],y=1;y0&&(this.J=new g.e6(this.s9,N,this),g.Q(this,this.J));this.L=new g.e6(this.s9,y,this);g.Q(this,this.L);this.U=iKM(this.N,E,1,w);g.Q(this,this.U);this.G=iKM(this.N,0,w,1);g.Q(this,this.G);this.j=new iY;g.Q(this,this.j)}; pR=function(e,N,y){this.N=e;this.isAsync=N;this.J=y}; RbE=function(e){switch(e){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:wa(e,"unknown result type")}}; GvM=function(e,N){var y=1;e.isTrusted===!1&&(y=0);Ua("ISDSTAT",y);CR(y,"i.s_",{triggerContext:"sk",metadata:N});return y}; U7F=function(e,N){var y=[];N?N.isTrusted===!0?y.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):N.isTrusted===!1?y.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):y.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):y.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");CR(0,"a.s_",{metadata:e,states:y});Ua("ASDSTAT",0)}; CR=function(e,N,y){N=L1s[N];var w,E,A={detected:e===0,source:""+N.N+((w=y.triggerContext)!=null?w:"")+((E=y.XN)!=null?E:""),detectionStates:y.states,durationMs:y.nA};y.metadata&&(A.contentCpn=y.metadata.contentCpn,A.adCpn=y.metadata.adCpn);g.$$("biscottiBasedDetection",A);N.J!==void 0&&(y=Number(g.Lb("CATSTAT",0)),N.J!==void 0?(N=N.J,e=RbE(e),e=y&~(3<0}; SQ=function(e,N,y,w,E,A){sZ.call(this,e,{S:"div",B:"ytp-ad-skip-button-slot"},"skip-button",N,y,w,E);var T=this;this.Kh=null;this.i9=!1;this.Bk=A;this.Z=this.api.X().experiments.gP("enable_modern_skip_button_on_web");this.Ut=!1;this.K=new g.Mu({S:"span",dP:["ytp-ad-skip-button-container"]});this.Z&&this.K.element.classList.add("ytp-ad-skip-button-container-detached");this.api.T("enable_ad_pod_index_autohide")&&this.K.element.classList.add("ytp-ad-skip-button-container--clean-player");g.Q(this,this.K); this.K.yB(this.element);this.N=this.j=null;this.VB=new g.NE(this.K,500,!1,100,function(){return T.hide()}); g.Q(this,this.VB);this.aq=new JF(this.K.element,15E3,5E3,.5,.5,this.Z);g.Q(this,this.aq);this.hide()}; am_=function(e){e=e.Kh&&e.Kh.adRendererCommands;return(e&&e.clickCommand&&g.m(e.clickCommand,g.o4)&&g.m(e.clickCommand,g.o4).commands||[]).some(function(N){return N.adLifecycleCommand?svJ(N.adLifecycleCommand):!1})}; svJ=function(e){return e.action==="END_LINEAR_AD"||e.action==="END_LINEAR_AD_PLACEMENT"}; bp=function(e,N,y,w,E,A){sZ.call(this,e,{S:"div",B:"ytp-ad-skip-ad-slot"},"skip-ad",N,y,w,E);this.Kh=A;this.j=!1;this.Z=0;this.K=this.N=null;this.hide()}; eW9=function(e,N){e.j||(e.j=!0,e.N&&(N?e.N.i9.hide():e.N.hide()),N?(e=e.K,e.VB.show(),e.show()):e.K.show())}; hF=function(e,N,y,w){Vv.call(this,e,N,y,w,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; c2=function(e,N,y,w,E,A,T){A=A===void 0?!1:A;T=T===void 0?!1:T;lj.call(this,e,{S:"span",B:"ytp-ad-simple-ad-badge"},"simple-ad-badge",N,y,w);this.K=E;this.J=this.hW("ytp-ad-simple-ad-badge");(this.N=A)&&this.J.classList.add("ytp-ad-simple-ad-badge--clean-player");T&&this.J.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}; kN=function(e,N,y,w,E){E=E===void 0?!1:E;JZ.call(this,"player-overlay",e,{},N,w);this.videoAdDurationSeconds=y;this.interactionLoggingClientData=w;this.uC=E}; B2=function(e,N){g.pT.call(this);this.api=e;this.durationMs=N;this.J=null;this.bB=new iY(this);g.Q(this,this.bB);this.N=NoP;this.bB.Y(this.api,"presentingplayerstatechange",this.HO);this.J=this.bB.Y(this.api,"onAdPlaybackProgress",this.HY)}; XD=function(e){g.pT.call(this);this.J=!1;this.Cj=0;this.bB=new iY(this);g.Q(this,this.bB);this.durationMs=e;this.D_=new g.kT(100);g.Q(this,this.D_);this.bB.Y(this.D_,"tick",this.HY);this.N={seekableStart:0,seekableEnd:e/1E3,current:0};this.start()}; g.P2=function(e,N){var y=Math.abs(Math.floor(e)),w=Math.floor(y/86400),E=Math.floor(y%86400/3600),A=Math.floor(y%3600/60);y=Math.floor(y%60);if(N){N="";w>0&&(N+=" "+w+" Dias");if(w>0||E>0)N+=" "+E+" Horas";N+=" "+A+" Minutos";N+=" "+y+" Segundos";w=N.trim()}else{N="";w>0&&(N+=w+":",E<10&&(N+="0"));if(w>0||E>0)N+=E+":",A<10&&(N+="0");N+=A+":";y<10&&(N+="0");w=N+y}return e>=0?w:"-"+w}; g.dh=function(e){return(!("button"in e)||typeof e.button!=="number"||e.button===0)&&!("shiftKey"in e&&e.shiftKey)&&!("altKey"in e&&e.altKey)&&!("metaKey"in e&&e.metaKey)&&!("ctrlKey"in e&&e.ctrlKey)}; I4=function(e,N,y,w,E,A,T){sZ.call(this,e,{S:"span",B:T?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",N,y,w,E);this.videoAdDurationSeconds=A;this.N=null;this.api.T("clean_player_style_fix_on_web")&&this.element.classList.add("ytp-ad-duration-remaining--clean-player-with-light-shadow");T&&this.api.X().N&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),this.api.T("clean_player_style_fix_on_web")&&(this.element.classList.add("ytp-ad-duration-remaining--mweb-light"), Gv&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios")));this.hide()}; v2=function(e,N,y,w){UZ.call(this,e,N,y,w,"ytp-video-ad-top-bar-title","ad-title");e.T("enable_ad_pod_index_autohide")&&this.element.classList.add("ytp-video-ad-top-bar-title--clean-player")}; zF=function(e){this.content=e.content;if(e.commandRuns){e=g.c(e.commandRuns);for(var N=e.next();!N.done;N=e.next())N=N.value,this.loggingDirectives=g.m(N,yxH),N.onTap&&(this.interaction={onTap:N.onTap})}}; ip=function(e,N,y,w){lj.call(this,e,{S:"div",B:"ad-simple-attributed-string"},"ad-simple-attributed-string",N,y,w);this.hide()}; DY=function(e,N,y,w,E){lj.call(this,e,{S:"span",B:E?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",N,y,w);this.N=E;this.adBadgeText=new ip(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1);this.adBadgeText.yB(this.element);g.Q(this,this.adBadgeText);E?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),this.api.T("clean_player_style_fix_on_web")&&(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player-with-light-shadow"),Gv&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios"))): this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; gh=function(e,N,y,w,E){lj.call(this,e,{S:"span",B:"ytp-ad-pod-index"},"ad-pod-index",N,y,w);this.N=E;this.api.X().N&&(this.element.classList.add("ytp-ad-pod-index--mweb"),this.api.T("clean_player_style_fix_on_web")&&(this.element.classList.add("ytp-ad-pod-index--mweb-light"),Gv&&this.element.classList.add("ytp-ad-pod-index--mweb-ios")));this.hide()}; Vd=function(e,N,y,w){lj.call(this,e,{S:"div",B:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",N,y,w);this.hide()}; fR=function(e,N){this.N=e;this.J=N}; tF=function(e,N,y){if(!e.getLength())return y!=null?y:Infinity;e=(N-e.N)/e.getLength();return g.Ja(e,0,1)}; up=function(e,N,y,w){w=w===void 0?!1:w;g.Mu.call(this,{S:"div",B:"ytp-ad-persistent-progress-bar-container",W:[{S:"div",B:"ytp-ad-persistent-progress-bar"}]});this.api=e;this.N=N;this.K=y;w&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.Q(this,this.N);this.progressBar=this.hW("ytp-ad-persistent-progress-bar");this.J=-1;this.Y(e,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; qE=function(e,N,y,w,E,A){lj.call(this,e,{S:"div",B:"ytp-ad-player-overlay",W:[{S:"div",B:"ytp-ad-player-overlay-flyout-cta"},{S:"div",B:"ytp-ad-player-overlay-instream-info"},{S:"div",B:"ytp-ad-player-overlay-skip-or-preview"},{S:"div",B:"ytp-ad-player-overlay-progress-bar"},{S:"div",B:"ytp-ad-player-overlay-instream-user-sentiment"},{S:"div",B:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",N,y,w);this.Kh=A;this.Z=this.hW("ytp-ad-player-overlay-flyout-cta");this.Z.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.J=this.hW("ytp-ad-player-overlay-instream-info");this.j=null;wiJ(this)&&(e=L9("div"),g.pi(e,"ytp-ad-player-overlay-top-bar-gradients"),this.api.T("disable_ad_preview_for_instream_ads")&&g.pi(e,"ytp-ad-player-overlay-top-bar-gradients--clean-player"),N=this.J,N.parentNode&&N.parentNode.insertBefore(e,N),(N=this.api.getVideoData(2))&&N.isListed&&N.title&&(y=new v2(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1),y.yB(e),y.init(TV("ad-title"),{text:N.title},this.macros),g.Q(this, y)),this.j=e);this.K=null;this.D=this.hW("ytp-ad-player-overlay-skip-or-preview");this.Zl=this.hW("ytp-ad-player-overlay-progress-bar");this.aq=this.hW("ytp-ad-player-overlay-instream-user-sentiment");this.i9=this.hW("ytp-ad-player-overlay-ad-disclosure-banner");this.N=E;g.Q(this,this.N);this.hide()}; wiJ=function(e){e=e.api.X();return g.ZY(e)&&e.N}; xN=function(e,N,y){var w={};N&&(w.v=N);y&&(w.list=y);e={name:e,locale:void 0,feature:void 0};for(var E in w)e[E]=w[E];w=g.Qb("/sharing_services",e);g.mK(w)}; g.jQ=function(e){e&=16777215;var N=[(e&16711680)>>16,(e&65280)>>8,e&255];e=N[0];var y=N[1];N=N[2];e=Number(e);y=Number(y);N=Number(N);if(e!=(e&255)||y!=(y&255)||N!=(N&255))throw Error('"('+e+","+y+","+N+'") is not a valid RGB color');y=e<<16|y<<8|N;return e<16?"#"+(16777216|y).toString(16).slice(1):"#"+y.toString(16)}; nR=function(e){this.J=new VE(e)}; Ep5=function(){var e=!1;try{e=!!window.sessionStorage.getItem("session_logininfo")}catch(N){e=!0}return(g.Lb("INNERTUBE_CLIENT_NAME")==="WEB"||g.Lb("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&e}; Qd=function(e){if(g.Lb("LOGGED_IN",!0)&&Ep5()){var N=g.Lb("VALID_SESSION_TEMPDATA_DOMAINS",[]);var y=g.uB(window.location.href);y&&N.push(y);y=g.uB(e);g.Gw(N,y)||!y&&c_(e,"/")?(N=q0(e),(N=oY5(N))?(N=gh5(N),N=(N=g.jH(N)||null)?AE(N):{}):N=null):N=null;N==null&&(N={});y=N;var w=void 0;Ep5()?(w||(w=g.Lb("LOGIN_INFO")),w?(y.session_logininfo=w,y=!0):y=!1):y=!1;y&&zO(e,N)}}; g.AxM=function(e){var N=N===void 0?{}:N;var y=y===void 0?"":y;var w=w===void 0?window:w;e=g.Qb(e,N);Qd(e);y=g.Ds(e+y);w=w.location;y=gG(y);y!==void 0&&(w.href=y)}; g.mQ=function(e,N,y){N=N===void 0?{}:N;y=y===void 0?!1:y;var w=g.Lb("EVENT_ID");w&&(N.ei||(N.ei=w));N&&zO(e,N);y||(Qd(e),g.AxM(e))}; g.H2=function(e,N,y,w,E){E=E===void 0?!1:E;y&&zO(e,y);y=g.Ds(e);var A=g.vP(y);e!=A&&yN(Error("Unsafe window.open URL: "+e));e=A;N=N||sK(e).toString(36);try{if(E){E=e;E=pL0(E);Qd(E);g.qm(window,E,N,"attributionsrc");return}}catch(T){g.eH(T)}Qd(e);g.qm(window,y,N,w)}; Ton=function(e){KR=e}; Jxs=function(e){W2=e}; pi5=function(e){Oz=e}; rxJ=function(){Ct0=Oz=W2=KR=null}; YE0=function(){var e=e===void 0?window.location.href:e;if(g.Xj("kevlar_disable_theme_param"))return null;var N=D9(g.to(5,e));if(g.Xj("enable_dark_theme_only_on_shorts")&&N!=null&&N.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var y=g.JE(e).theme;return $90.get(y)||null}catch(w){}return null}; R4=function(){this.J={};if(this.N=lSn()){var e=g.jH("CONSISTENCY");e&&M7M(this,{encryptedTokenJarContents:e})}}; M7M=function(e,N){if(N.encryptedTokenJarContents&&(e.J[N.encryptedTokenJarContents]=N,typeof N.expirationSeconds==="string")){var y=Number(N.expirationSeconds);setTimeout(function(){delete e.J[N.encryptedTokenJarContents]},y*1E3); e.N&&g.x3("CONSISTENCY",N.encryptedTokenJarContents,y,void 0,!0)}}; Uz=function(){this.N=-1;var e=g.Lb("LOCATION_PLAYABILITY_TOKEN");g.Lb("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=GF(this))&&(e=this.localStorage.get("yt-location-playability-token"));e&&(this.locationPlayabilityToken=e,this.J=void 0)}; GF=function(e){return e.localStorage===void 0?new Ag("yt-client-location"):e.localStorage}; g.LR=function(e,N,y){N=N===void 0?!1:N;y=y===void 0?!1:y;var w=g.Lb("INNERTUBE_CONTEXT");if(!w)return g.t0(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};w=g.gi(w);g.Xj("web_no_tracking_params_in_shell_killswitch")||delete w.clickTracking;w.client||(w.client={});var E=w.client;E.clientName==="MWEB"&&E.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(E.clientFormFactor=g.Lb("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");E.screenWidthPoints=window.innerWidth;E.screenHeightPoints= window.innerHeight;E.screenPixelDensity=Math.round(window.devicePixelRatio||1);E.screenDensityFloat=window.devicePixelRatio||1;E.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var A=A===void 0?!1:A;g.m6();var T="USER_INTERFACE_THEME_LIGHT";g.HE(0,165)?T="USER_INTERFACE_THEME_DARK":g.HE(0,174)?T="USER_INTERFACE_THEME_LIGHT":!g.Xj("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& (T="USER_INTERFACE_THEME_DARK");A=A?T:YE0()||T;E.userInterfaceTheme=A;if(!N){if(A=NeJ())E.connectionType=A;g.Xj("web_log_effective_connection_type")&&(A=wD3())&&(w.client.effectiveConnectionType=A)}var p;if(g.Xj("web_log_memory_total_kbytes")&&((p=g.xJ.navigator)==null?0:p.deviceMemory)){var C;p=(C=g.xJ.navigator)==null?void 0:C.deviceMemory;w.client.memoryTotalKbytes=""+p*1E6}g.Xj("web_gcf_hashes_innertube")&&(A=rT0())&&(C=A.coldConfigData,p=A.coldHashData,A=A.hotHashData,w.client.configInfo=w.client.configInfo|| {},C&&(w.client.configInfo.coldConfigData=C),p&&(w.client.configInfo.coldHashData=p),A&&(w.client.configInfo.hotHashData=A));C=g.JE(g.xJ.location.href);!g.Xj("web_populate_internal_geo_killswitch")&&C.internalcountrycode&&(E.internalGeo=C.internalcountrycode);E.clientName==="MWEB"||E.clientName==="WEB"?(E.mainAppWebInfo={graftUrl:g.xJ.location.href},g.Xj("kevlar_woffle")&&Rh5.instance&&(C=Rh5.instance,E.mainAppWebInfo.pwaInstallabilityStatus=!C.J&&C.N?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": "PWA_INSTALLABILITY_STATUS_UNKNOWN"),E.mainAppWebInfo.webDisplayMode=ju(),E.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):E.clientName==="TVHTML5"&&(!g.Xj("web_lr_app_quality_killswitch")&&(C=g.Lb("LIVING_ROOM_APP_QUALITY"))&&(E.tvAppInfo=Object.assign(E.tvAppInfo||{},{appQuality:C})),C=g.Lb("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(E.tvAppInfo=Object.assign(E.tvAppInfo||{},{certificationScope:C}));if(!g.Xj("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== "undefined")try{var r=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(Z){}r=void 0}r&&(E.timeZone=r)}(r=d2())?E.experimentsToken=r:delete E.experimentsToken;r=Iy();R4.instance||(R4.instance=new R4);w.request=Object.assign({},w.request,{internalExperimentFlags:r,consistencyTokenJars:g.B4(R4.instance.J)});!g.Xj("web_prequest_context_killswitch")&&(r=g.Lb("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(w.request.externalPrequestContext=r);E=g.m6();r=g.HE(0,58);E=E.get("gsml","");w.user=Object.assign({}, w.user);r&&(w.user.enableSafetyMode=r);E&&(w.user.lockedSafetyMode=!0);g.Xj("warm_op_csn_cleanup")?y&&(N=g.It())&&(w.clientScreenNonce=N):!N&&(N=g.It())&&(w.clientScreenNonce=N);e&&(w.clickTracking={clickTrackingParams:e});if(e=g.nM("yt.mdx.remote.remoteClient_"))w.remoteClient=e;Uz.getInstance().setLocationOnInnerTubeContext(w);try{var Y=Fj(),M=Y.bid;delete Y.bid;w.adSignalsInfo={params:[],bid:M};for(var l=g.c(Object.entries(Y)),F=l.next();!F.done;F=l.next()){var S=g.c(F.value),k=S.next().value, X=S.next().value;Y=k;M=X;e=void 0;(e=w.adSignalsInfo.params)==null||e.push({key:Y,value:""+M})}var d,v;if(((d=w.client)==null?void 0:d.clientName)==="TVHTML5"||((v=w.client)==null?void 0:v.clientName)==="TVHTML5_UNPLUGGED"){var V=g.Lb("INNERTUBE_CONTEXT");V.adSignalsInfo&&(w.adSignalsInfo.advertisingId=V.adSignalsInfo.advertisingId,w.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",w.adSignalsInfo.limitAdTracking=V.adSignalsInfo.limitAdTracking)}}catch(Z){g.t0(Z)}return w}; SE9=function(e,N){if(!e)return!1;var y,w=(y=g.m(e,lx0))==null?void 0:y.signal;if(w&&N.D6)return!!N.D6[w];var E;if((y=(E=g.m(e,FKP))==null?void 0:E.request)&&N.ea)return!!N.ea[y];for(var A in e)if(N.BX[A])return!0;return!1}; opM=function(e){var N={"Content-Type":"application/json"};g.Lb("EOM_VISITOR_DATA")?N["X-Goog-EOM-Visitor-Id"]=g.Lb("EOM_VISITOR_DATA"):g.Lb("VISITOR_DATA")&&(N["X-Goog-Visitor-Id"]=g.Lb("VISITOR_DATA"));N["X-Youtube-Bootstrap-Logged-In"]=g.Lb("LOGGED_IN",!1);g.Lb("DEBUG_SETTINGS_METADATA")&&(N["X-Debug-Settings-Metadata"]=g.Lb("DEBUG_SETTINGS_METADATA"));e!=="cors"&&((e=g.Lb("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(N["X-Youtube-Client-Name"]=e),(e=g.Lb("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(N["X-Youtube-Client-Version"]= e),(e=g.Lb("CHROME_CONNECTED_HEADER"))&&(N["X-Youtube-Chrome-Connected"]=e),(e=g.Lb("DOMAIN_ADMIN_STATE"))&&(N["X-Youtube-Domain-Admin-State"]=e),g.Lb("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(e=g.Lb("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(N["X-YouTube-Lava-Device-Context"]=e));return N}; b65=function(){this.J={}}; sz=function(){this.mappings=new b65}; a4=function(e){return function(){return new e}}; cx5=function(e){var N=N===void 0?"UNKNOWN_INTERFACE":N;if(e.length===1)return e[0];var y=hWs[N];if(y){y=new RegExp(y);for(var w=g.c(e),E=w.next();!E.done;E=w.next())if(E=E.value,y.exec(E))return E}var A=[];Object.entries(hWs).forEach(function(T){var p=g.c(T);T=p.next().value;p=p.next().value;N!==T&&A.push(p)}); y=new RegExp(A.join("|"));e.sort(function(T,p){return T.length-p.length}); w=g.c(e);for(E=w.next();!E.done;E=w.next())if(E=E.value,!y.exec(E))return E;return e[0]}; g.eZ=function(e){return"/youtubei/v1/"+cx5(e)}; NY=function(){}; yQ=function(){}; ly=function(){}; Fm=function(e){return g.nM("ytcsi."+(e||"")+"data_")||ki9(e)}; BoM=function(){var e=Fm();e.info||(e.info={});return e.info}; SZ=function(e){e=Fm(e);e.metadata||(e.metadata={});return e.metadata}; og=function(e){e=Fm(e);e.tick||(e.tick={});return e.tick}; by=function(e){e=Fm(e);if(e.gel){var N=e.gel;N.gelInfos||(N.gelInfos={});N.gelTicks||(N.gelTicks={})}else e.gel={gelTicks:{},gelInfos:{}};return e.gel}; Xin=function(e){e=by(e);e.gelInfos||(e.gelInfos={});return e.gelInfos}; hy=function(e){var N=Fm(e).nonce;N||(N=g.PX(16),Fm(e).nonce=N);return N}; ki9=function(e){var N={tick:{},info:{}};g.jM("ytcsi."+(e||"")+"data_",N);return N}; cw=function(){var e=g.nM("ytcsi.debug");e||(e=[],g.jM("ytcsi.debug",e),g.jM("ytcsi.reference",{}));return e}; ki=function(e){e=e||"";var N=PtF();if(N[e])return N[e];var y=cw(),w={timerName:e,info:{},tick:{},span:{},jspbInfo:[]};y.push(w);return N[e]=w}; d9M=function(e){e=e||"";var N=PtF();N[e]&&delete N[e];var y=cw(),w={timerName:e,info:{},tick:{},span:{},jspbInfo:[]};y.push(w);N[e]=w}; PtF=function(){var e=g.nM("ytcsi.reference");if(e)return e;cw();return g.nM("ytcsi.reference")}; Bw=function(e){return IxJ[e]||"LATENCY_ACTION_UNKNOWN"}; Xm=function(e,N){FG.call(this,1,arguments);this.D_=N}; Pw=function(){this.J=0}; dz=function(){Pw.instance||(Pw.instance=new Pw);return Pw.instance}; vw=function(e,N){Ig[N]=Ig[N]||{count:0};var y=Ig[N];y.count++;y.time=(0,g.iC)();e.J||(e.J=g.e1(0,function(){var w=(0,g.iC)(),E;for(E in Ig)Ig[E]&&w-Ig[E].time>6E4&&delete Ig[E];e&&(e.J=0)},5E3)); return y.count>5?(y.count===6&&Math.random()*1E5<1&&(y=new g.Gh("CSI data exceeded logging limit with key",N.split("_")),N.indexOf("plev")>=0||g.uA(y)),!0):!1}; vp0=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; zW1=function(){var e;if(g.Xj("csi_use_performance_navigation_timing")||g.Xj("csi_use_performance_navigation_timing_tvhtml5")){var N,y,w,E=zH==null?void 0:(e=zH.getEntriesByType)==null?void 0:(N=e.call(zH,"navigation"))==null?void 0:(y=N[0])==null?void 0:(w=y.toJSON)==null?void 0:w.call(y);E?(E.requestStart=iy(E.requestStart),E.responseEnd=iy(E.responseEnd),E.redirectStart=iy(E.redirectStart),E.redirectEnd=iy(E.redirectEnd),E.domainLookupEnd=iy(E.domainLookupEnd),E.connectStart=iy(E.connectStart), E.connectEnd=iy(E.connectEnd),E.responseStart=iy(E.responseStart),E.secureConnectionStart=iy(E.secureConnectionStart),E.domainLookupStart=iy(E.domainLookupStart),E.isPerformanceNavigationTiming=!0,e=E):e=zH.timing}else e=g.Xj("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(zH.timing)):zH.timing;return e}; iy=function(e){return Math.round(Dn()+e)}; Dn=function(){return(g.Xj("csi_use_time_origin")||g.Xj("csi_use_time_origin_tvhtml5"))&&zH.timeOrigin?Math.floor(zH.timeOrigin):zH.timing.navigationStart}; VQ=function(e,N){gz("_start",e,N)}; fV=function(e,N){if(!g.Xj("web_csi_action_sampling_enabled")||!Fm(N).actionDisabled){var y=ki(N||"");la(y.info,e);e.loadType&&(y=e.loadType,SZ(N).loadType=y);la(Xin(N),e);y=hy(N);N=Fm(N).cttAuthInfo;dz().info(e,y,N)}}; i6H=function(){var e,N,y,w;return((w=ua().resolve(new Dc(ro))==null?void 0:(e=$p())==null?void 0:(N=e.loggingHotConfig)==null?void 0:(y=N.csiConfig)==null?void 0:y.debugTicks)!=null?w:[]).map(function(E){return Object.values(E)[0]})}; gz=function(e,N,y){if(!g.Xj("web_csi_action_sampling_enabled")||!Fm(y).actionDisabled){var w=hy(y),E;if(E=g.Xj("web_csi_debug_sample_enabled")&&w){(ua().resolve(new Dc(ro))==null?0:$p())&&!D99&&(D99=!0,gz("gcfl",(0,g.iC)(),y));var A,T,p;E=(ua().resolve(new Dc(ro))==null?void 0:(A=$p())==null?void 0:(T=A.loggingHotConfig)==null?void 0:(p=T.csiConfig)==null?void 0:p.debugSampleWeight)||0;if(A=E!==0)b:{A=i6H();if(A.length>0)for(T=0;Ty.duration?w:y},{duration:0}))&&N.startTime>0&&N.responseEnd>0&&(gz("wffs",iy(N.startTime)),gz("wffe",iy(N.responseEnd)))}; Z60=function(e,N,y){zH&&zH.measure&&(e.startsWith("measure_")||(e="measure_"+e),y?zH.measure(e,N,y):N?zH.measure(e,N):zH.measure(e))}; x90=function(e){var N=ty("aft",e);if(N)return N;N=g.Lb((e||"")+"TIMING_AFT_KEYS",["ol"]);for(var y=N.length,w=0;w0&&fV(N);N={isNavigation:!0,actionType:Bw(g.Lb("TIMING_ACTION"))};var y=g.Lb("PREVIOUS_ACTION");y&&(N.previousAction=Bw(y));if(y=g.Lb("CLIENT_PROTOCOL"))N.httpProtocol=y;if(y=g.Lb("CLIENT_TRANSPORT"))N.transportProtocol=y;(y=g.It())&&y!=="UNDEFINED_CSN"&&(N.clientScreenNonce=y);y=fxH();if(y===1||y===-1)N.isVisible= !0;y=SZ().loadType==="cold";var w=BoM();y||(y=w.yt_lt==="cold");if(y){N.loadType="cold";y=BoM();w=zW1();var E=Dn(),A=g.Lb("CSI_START_TIMESTAMP_MILLIS",0);A>0&&!g.Xj("embeds_web_enable_csi_start_override_killswitch")&&(E=A);E&&(gz("srt",w.responseStart),y.prerender!==1&&VQ(E));y=Qe3();y>0&&gz("fpt",y);y=zW1();y.isPerformanceNavigationTiming&&fV({performanceNavigationTiming:!0},void 0);gz("nreqs",y.requestStart,void 0);gz("nress",y.responseStart,void 0);gz("nrese",y.responseEnd,void 0);y.redirectEnd- y.redirectStart>0&&(gz("nrs",y.redirectStart,void 0),gz("nre",y.redirectEnd,void 0));y.domainLookupEnd-y.domainLookupStart>0&&(gz("ndnss",y.domainLookupStart,void 0),gz("ndnse",y.domainLookupEnd,void 0));y.connectEnd-y.connectStart>0&&(gz("ntcps",y.connectStart,void 0),gz("ntcpe",y.connectEnd,void 0));y.secureConnectionStart>=Dn()&&y.connectEnd-y.secureConnectionStart>0&&(gz("nstcps",y.secureConnectionStart,void 0),gz("ntcpe",y.connectEnd,void 0));zH&&"getEntriesByType"in zH&&qEE();y=[];if(document.querySelector&& zH&&zH.getEntriesByName)for(var T in Zn)Zn.hasOwnProperty(T)&&(w=Zn[T],uGs(T,w)&&y.push(w));if(y.length>0)for(N.resourceInfo=[],T=g.c(y),y=T.next();!y.done;y=T.next())N.resourceInfo.push({resourceCache:y.value})}fV(N);N=by();N.preLoggedGelInfos||(N.preLoggedGelInfos=[]);T=N.preLoggedGelInfos;N=Xin();y=void 0;for(w=0;w-1&&(delete h["@type"],O=h);k&&e.N.has(k)&&e.N.delete(k);((aP=N.config)==null?0:aP.urB)&&jZ(N.config.urB);if(O||(XF=e.K)==null||!XF.xTP(N.input,N.Yi)){v5.u9(15);break}return g.D(v5,e.K.SdP(N.input,N.Yi),16);case 16:O=v5.N;case 15:return TWJ(e,O,N),((Yw=N.config)==null?0:Yw.g9W)&&jZ(N.config.g9W),w(),v5.return(O|| void 0)}})}; NWH=function(e,N){a:{e=e.c6;var y,w=(y=g.m(N,lx0))==null?void 0:y.signal;if(w&&e.D6&&(y=e.D6[w])){var E=y();break a}var A;if((y=(A=g.m(N,FKP))==null?void 0:A.request)&&e.ea&&(A=e.ea[y])){E=A();break a}for(E in N)if(e.BX[E]&&(N=e.BX[E])){E=N();break a}E=void 0}if(E!==void 0)return Promise.resolve(E)}; wX5=function(e,N,y){var w,E,A,T,p,C,r;return g.f(function(Y){if(Y.J==1){A=((w=N)==null?void 0:(E=w.dE)==null?void 0:E.identity)||lt;C=(T=N)==null?void 0:(p=T.dE)==null?void 0:p.sessionIndex;var M=g.S9(e.J.PQ(A,{sessionIndex:C}));return g.D(Y,M,2)}r=Y.N;return Y.return(Promise.resolve(Object.assign({},opM(y),r)))})}; yln=function(e,N,y){var w,E=(N==null?void 0:(w=N.dE)==null?void 0:w.identity)||lt,A;N=N==null?void 0:(A=N.dE)==null?void 0:A.sessionIndex;e=e.J.PQ(E,{sessionIndex:N});return Object.assign({},opM(y),e)}; GH=function(){}; Uq=function(){}; LV=function(e){this.Z=e}; sq=function(){}; ag=function(){}; ey=function(){}; Nf=function(){}; g.ye=function(e,N){var y=g.iE.apply(2,arguments);e=e===void 0?0:e;g.Gh.call(this,N,y);this.errorType=e;Object.setPrototypeOf(this,this.constructor.prototype)}; wv=function(e,N,y){this.J=e;this.N=N;this.K=y}; pX_=function(e,N,y){if(e.J){var w=D9(g.to(5,KY(N,"key")))||"/UNKNOWN_PATH";e.J.start(w)}e=y;g.Xj("wug_networking_gzip_request")&&(e=nrP(y));return new window.Request(N,e)}; g.AC=function(e,N){if(!El){var y=ua();gW(y,{ZT:CaM,SB:wv});var w={BX:{feedbackEndpoint:a4(sq),modifyChannelNotificationPreferenceEndpoint:a4(ag),playlistEditEndpoint:a4(ey),shareEntityEndpoint:a4(LV),subscribeEndpoint:a4(GH),unsubscribeEndpoint:a4(Uq),webPlayerShareEntityServiceEndpoint:a4(Nf)}},E=Uz.getInstance(),A={};E&&(A.client_location=E);e===void 0&&(e=G1F());N===void 0&&(N=y.resolve(CaM));el0(w,N,e,A);gW(y,{ZT:rlJ,aB:Ww.instance});El=y.resolve(rlJ)}return El}; $6H=function(e){var N=new Ys;if(e.interpreterJavascript){var y=iG0(e.interpreterJavascript);y=j$(y).toString();var w=new rq;Sn(w,6,y);JQ(N,rq,1,w)}else e.interpreterUrl&&(y=IG(e.interpreterUrl),y=dG(y).toString(),w=new $s,Sn(w,4,y),JQ(N,$s,2,w));e.interpreterHash&&oL(N,3,e.interpreterHash);e.program&&oL(N,4,e.program);e.globalName&&oL(N,5,e.globalName);e.clientExperimentsStateBlob&&oL(N,7,e.clientExperimentsStateBlob);return N}; T$=function(e){var N={};e=e.split("&");e=g.c(e);for(var y=e.next();!y.done;y=e.next())y=y.value.split("="),y.length===2&&(N[y[0]]=y[1]);return N}; G00=function(){if(g.Xj("bg_st_hr"))return"havuokmhhs-0";var e,N=((e=performance)==null?void 0:e.timeOrigin)||0;return"havuokmhhs-"+Math.floor(N)}; JC=function(e){this.J=e}; YC9=function(){return new Promise(function(e){var N=window.top;N.ntpevasrs!==void 0?e(new JC(N.ntpevasrs)):(N.ntpqfbel===void 0&&(N.ntpqfbel=[]),N.ntpqfbel.push(function(y){e(new JC(y))}))})}; lc_=function(){if(!g.Xj("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.Xj("disable_biscotti_fetch_entirely_for_all_web_clients")&&EF()){var e=g.Lb("PLAYER_VARS",{});if(g.zM(e,"privembed",!1)!="1"&&!k1n(e)){var N=function(){p2=!0;"google_ad_status"in window?Ua("DCLKSTAT",1):Ua("DCLKSTAT",2)}; try{g.rW("//static.doubleclick.net/instream/ad_status.js",N)}catch(y){}MS5.push(g.Kk.kB(function(){if(!(p2||"google_ad_status"in window)){try{if(N){var y=""+g.RP(N),w=kk9[y];w&&g.pE(w)}}catch(E){}p2=!0;Ua("DCLKSTAT",3)}},5E3))}}}; C2=function(){var e=Number(g.Lb("DCLKSTAT",0));return isNaN(e)?0:e}; Mf=function(e,N,y){var w=this;this.network=e;this.options=N;this.N=y;this.J=null;if(N.ESB){var E=new g.lq;this.J=E.promise;g.xJ.ytAtRC&&az(function(){var A,T;return g.f(function(p){if(p.J==1){if(!g.xJ.ytAtRC)return p.return();A=rv(null);return g.D(p,$C(w,A),2)}T=p.N;g.xJ.ytAtRC&&g.xJ.ytAtRC(JSON.stringify(T));g.hn(p)})},2); YC9().then(function(A){var T,p,C,r;return g.f(function(Y){if(Y.J==1)return A.bindInnertubeChallengeFetcher(function(M){return $C(w,rv(M))}),g.D(Y,DS(),2); T=Y.N;p=A.getLatestChallengeResponse();C=p.challenge;if(!C)throw Error("BGE_MACIL");r={challenge:C,rK:T$(C),f$:T,bgChallenge:new Ys};E.resolve(r);A.registerChallengeFetchedCallback(function(M){M=M.challenge;if(!M)throw Error("BGE_MACR");M={challenge:M,rK:T$(M),f$:T,bgChallenge:new Ys};w.J=Promise.resolve(M)}); g.hn(Y)})})}else N.preload&&Fq5(this,new Promise(function(A){g.e1(0,function(){A(YC(w))},0)}))}; rv=function(e){var N={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};e&&(N.interpreterHash=e);return N}; YC=function(e,N){N=N===void 0?0:N;var y,w,E,A,T,p,C,r,Y,M,l,F;return g.f(function(S){switch(S.J){case 1:y=rv(bq().J);if(g.Xj("att_fet_ks"))return g.c5(S,7),g.D(S,$C(e,y),9);g.c5(S,4);return g.D(S,SCM(e,y),6);case 6:T=S.N;E=T.yuW;A=T.zZB;w=T;g.B5(S,3);break;case 4:return g.XH(S),g.uA(Error("Failed to fetch attestation challenge after "+(N+" attempts; not retrying for 24h."))),lI(e,864E5),S.return({challenge:"",rK:{},f$:void 0,bgChallenge:void 0});case 9:w=S.N;if(!w)throw Error("Fetching Attestation challenge returned falsy"); if(!w.challenge)throw Error("Missing Attestation challenge");E=w.challenge;A=T$(E);if("c1a"in A&&(!w.bgChallenge||!w.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.B5(S,3);break;case 7:p=g.XH(S);g.uA(p);N++;if(N>=5)return g.uA(Error("Failed to fetch attestation challenge after "+(N+" attempts; not retrying for 24h."))),lI(e,864E5),S.return({challenge:"",rK:{},f$:void 0,bgChallenge:void 0});C=1E3*Math.pow(2,N-1)+Math.random()*1E3;return S.return(new Promise(function(k){g.e1(0, function(){k(YC(e,N))},C)})); case 3:r=Number(A.t)||7200;lI(e,r*1E3);Y=void 0;if(!("c1a"in A&&w.bgChallenge)){S.u9(10);break}M=$6H(w.bgChallenge);g.c5(S,11);return g.D(S,hf(bq(),M),13);case 13:g.B5(S,12);break;case 11:return l=g.XH(S),g.uA(l),S.return({challenge:E,rK:A,f$:Y,bgChallenge:M});case 12:return g.c5(S,14),Y=new Fa({challenge:M,EW:{vI:"aGIf"}}),g.D(S,Y.oH,16);case 16:g.B5(S,10);break;case 14:F=g.XH(S),g.uA(F),Y=void 0;case 10:return S.return({challenge:E,rK:A,f$:Y,bgChallenge:M})}})}; $C=function(e,N){var y;return g.f(function(w){y=e.N;if(!y||y.E4())return w.return($C(e.network,N));KV("att_pna",void 0,"attestation_challenge_fetch");return w.return(new Promise(function(E){y.TT("publicytnetworkstatus-online",function(){$C(e.network,N).then(E)})}))})}; o59=function(e){if(!e)throw Error("Fetching Attestation challenge returned falsy");if(!e.challenge)throw Error("Missing Attestation challenge");var N=e.challenge,y=T$(N);if("c1a"in y&&(!e.bgChallenge||!e.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},e,{yuW:N,zZB:y})}; SCM=function(e,N){var y,w,E,A,T;return g.f(function(p){switch(p.J){case 1:y=void 0,w=0,E={};case 2:if(!(w<5)){p.u9(4);break}if(!(w>0)){p.u9(5);break}E.KD=1E3*Math.pow(2,w-1)+Math.random()*1E3;return g.D(p,new Promise(function(C){return function(r){g.e1(0,function(){r(void 0)},C.KD)}}(E)),5); case 5:return g.c5(p,7),g.D(p,$C(e,N),9);case 9:return A=p.N,p.return(o59(A));case 7:y=T=g.XH(p),T instanceof Error&&g.uA(T);case 8:w++;E={KD:void 0};p.u9(2);break;case 4:throw y;}})}; Fq5=function(e,N){e.J=N}; bE1=function(e){var N,y,w;return g.f(function(E){if(E.J==1)return g.D(E,Promise.race([e.J,null]),2);N=E.N;var A=YC(e);e.J=A;(y=N)==null||(w=y.f$)==null||w.dispose();g.hn(E)})}; lI=function(e,N){function y(){var E;return g.f(function(A){E=w-Date.now();return E<1E3?g.D(A,bE1(e),0):(az(y,0,Math.min(E,6E4)),A.u9(0))})} var w=Date.now()+N;y()}; hln=function(e,N){return new Promise(function(y){g.e1(0,function(){y(N())},e)})}; g.cl0=function(e,N){var y;return g.f(function(w){var E=g.nM("yt.aba.att");return(y=E?E:Mf.instance!==void 0?Mf.instance.K.bind(Mf.instance):null)?w.return(y("ENGAGEMENT_TYPE_PLAYBACK",e,N)):w.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; g.k_n=function(){var e;return(e=(e=g.nM("yt.aba.att2"))?e:Mf.instance!==void 0?Mf.instance.j.bind(Mf.instance):null)?e():Promise.resolve(!1)}; XXH=function(e,N){var y=g.nM("ytDebugData.callbacks");y||(y={},g.jM("ytDebugData.callbacks",y));if(g.Xj("web_dd_iu")||BW0.includes(e))y[e]=N}; FI=function(){var e=PaE;var N=N===void 0?[]:N;var y=y===void 0?[]:y;N=XfF.apply(null,[P6F.apply(null,g.B(N))].concat(g.B(y)));this.store=IfM(e,void 0,N)}; g.Sy=function(e,N,y){for(var w=Object.assign({},e),E=g.c(Object.keys(N)),A=E.next();!A.done;A=E.next()){A=A.value;var T=e[A],p=N[A];if(p===void 0)delete w[A];else if(T===void 0)w[A]=p;else if(Array.isArray(p)&&Array.isArray(T))w[A]=y?[].concat(g.B(T),g.B(p)):p;else if(!Array.isArray(p)&&g.W5(p)&&!Array.isArray(T)&&g.W5(T))w[A]=g.Sy(T,p,y);else if(typeof p===typeof T)w[A]=p;else return N=new g.Gh("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:A,XFh:T,updateValue:p}),g.t0(N), e}return w}; oR=function(e){var N=this;e=e===void 0?[]:e;this.SV=[];this.Po=this.Hp=0;this.z2=void 0;this.totalLength=0;e.forEach(function(y){N.append(y)})}; d6_=function(e,N){return e.SV.length===0?!1:(e=e.SV[e.SV.length-1])&&e.buffer===N.buffer&&e.byteOffset+e.length===N.byteOffset}; bI=function(e,N){N=g.c(N.SV);for(var y=N.next();!y.done;y=N.next())e.append(y.value)}; hC=function(e,N,y){return e.split(N).h3.split(y).aA}; c8=function(e){e.z2=void 0;e.Hp=0;e.Po=0}; kC=function(e,N,y){e.isFocused(N);return N-e.Po+y<=e.SV[e.Hp].length}; Icn=function(e){if(!e.z2){var N=e.SV[e.Hp];e.z2=new DataView(N.buffer,N.byteOffset,N.length)}return e.z2}; B8=function(e,N,y){e=e.YX(N===void 0?0:N,y===void 0?-1:y);N=new Uint8Array(e.length);try{N.set(e)}catch(w){for(y=0;y>10;A=56320|A&1023}dv[E++]=A}}A=String.fromCharCode.apply(String,dv); E<1024&&(A=A.substring(0,E));y.push(A)}return y.join("")}; z$=function(e,N){var y;if((y=v8)==null?0:y.encodeInto)return N=v8.encodeInto(e,N),N.read>6|192:((E&64512)===55296&&w+1>18|240,N[y++]=E>>12&63|128):N[y++]=E>>12|224,N[y++]=E>>6&63|128),N[y++]=E&63|128)}return y}; iI=function(e){if(v8)return v8.encode(e);var N=new Uint8Array(Math.ceil(e.length*1.2)),y=z$(e,N);N.lengthy&&(N=N.subarray(0,y));return N}; DK=function(e){this.J=e;this.pos=0;this.N=-1}; gv=function(e){var N=e.J.getUint8(e.pos);++e.pos;if(N<128)return N;for(var y=N&127,w=1;N>=128;)N=e.J.getUint8(e.pos),++e.pos,w*=128,y+=(N&127)*w;return y}; Ve=function(e,N){var y=e.N;for(e.N=-1;e.J.b8(e.pos,1);){y<0&&(y=gv(e));var w=y>>3,E=y&7;if(w===N)return!0;if(w>N){e.N=y;break}y=-1;switch(E){case 0:gv(e);break;case 1:e.pos+=8;break;case 2:w=gv(e);e.pos+=w;break;case 5:e.pos+=4}}return!1}; f2=function(e,N){if(Ve(e,N))return gv(e)}; tC=function(e,N){if(Ve(e,N))return!!gv(e)}; uI=function(e,N){if(Ve(e,N)){N=gv(e);var y=e.J.YX(e.pos,N);e.pos+=N;return y}}; qf=function(e,N){if(e=uI(e,N))return g.IR(e)}; ZK=function(e,N,y){if(e=uI(e,N))return y(new DK(new oR([e])))}; xC=function(e,N){for(var y=[];Ve(e,N);)y.push(gv(e));return y.length?y:void 0}; jy=function(e,N,y){for(var w=[],E;E=uI(e,N);)w.push(y(new DK(new oR([E]))));return w.length?w:void 0}; n2=function(e,N){e=e instanceof Uint8Array?new oR([e]):e;return N(new DK(e))}; iEP=function(e,N,y){if(N&&y&&y.buffer===N.exports.memory.buffer){var w=N.realloc(y.byteOffset,e);if(w)return new Uint8Array(N.exports.memory.buffer,w,e)}e=N?new Uint8Array(N.exports.memory.buffer,N.malloc(e),e):new Uint8Array(e);y&&e.set(y);return e}; D6E=function(e,N){this.uB=N;this.pos=0;this.N=[];this.J=iEP(e===void 0?4096:e,N);this.view=new DataView(this.J.buffer,this.J.byteOffset,this.J.byteLength)}; Qe=function(e,N){N=e.pos+N;if(!(e.J.length>=N)){for(var y=e.J.length*2;y268435455){Qe(e,4);for(var y=N&1073741823,w=0;w<4;w++)e.view.setUint8(e.pos,y&127|128),y>>=7,e.pos+=1;N=Math.floor(N/268435456)}for(Qe(e,4);N>127;)e.view.setUint8(e.pos,N&127|128),N>>=7,e.pos+=1;e.view.setUint8(e.pos,N);e.pos+=1}; H8=function(e,N,y){y!==void 0&&(mX(e,N*8),mX(e,y))}; K2=function(e,N,y){y!==void 0&&H8(e,N,y?1:0)}; W8=function(e,N,y){y!==void 0&&(mX(e,N*8+2),N=y.length,mX(e,N),Qe(e,N),e.J.set(y,e.pos),e.pos+=N)}; Ol=function(e,N,y){y!==void 0&&(g5H(e,N,Math.ceil(Math.log2(y.length*4+2)/7)),Qe(e,y.length*1.2),N=z$(y,e.J.subarray(e.pos)),e.pos+N>e.J.length&&(Qe(e,N),N=z$(y,e.J.subarray(e.pos))),e.pos+=N,VSH(e))}; g5H=function(e,N,y){y=y===void 0?2:y;mX(e,N*8+2);e.N.push(e.pos);e.N.push(y);e.pos+=y}; VSH=function(e){for(var N=e.N.pop(),y=e.N.pop(),w=e.pos-y-N;N--;){var E=N?128:0;e.view.setUint8(y++,w&127|E);w>>=7}}; ER=function(e,N,y,w,E){y&&(g5H(e,N,E===void 0?3:E),w(e,y),VSH(e))}; g.A5=function(e,N,y){y=new D6E(4096,y);N(y,e);return new Uint8Array(y.J.buffer,y.J.byteOffset,y.pos)}; g.Tj=function(e){var N=new DK(new oR([hO(decodeURIComponent(e))]));e=qf(N,2);N=f2(N,4);var y=fcM[N];if(typeof y==="undefined")throw e=new g.Gh("Failed to recognize field number",{name:"EntityKeyHelperError",viP:N}),g.t0(e),e;return{Xu:N,entityType:y,entityId:e}}; g.J5=function(e,N){var y=new D6E;W8(y,2,iI(e));e=tSJ[N];if(typeof e==="undefined")throw N=new g.Gh("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:N}),g.t0(N),N;H8(y,4,e);H8(y,5,1);N=new Uint8Array(y.J.buffer,y.J.byteOffset,y.pos);return encodeURIComponent(g.oN(N))}; pj=function(e,N,y,w){if(w===void 0)return w=Object.assign({},e[N]||{}),y=(delete w[y],w),w={},Object.assign({},e,(w[N]=y,w));var E={},A={};return Object.assign({},e,(A[N]=Object.assign({},e[N],(E[y]=w,E)),A))}; ud5=function(e,N,y,w,E){var A=e[N];if(A==null||!A[y])return e;w=g.Sy(A[y],w,E==="REPEATED_FIELDS_MERGE_OPTION_APPEND");E={};A={};return Object.assign({},e,(A[N]=Object.assign({},e[N],(E[y]=w,E)),A))}; qC_=function(e,N){e=e===void 0?{}:e;switch(N.type){case "ENTITY_LOADED":return N.payload.reduce(function(w,E){var A,T=(A=E.options)==null?void 0:A.persistenceOption;if(T&&T!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&T!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return w;if(!E.entityKey)return g.t0(Error("Missing entity key")),w;if(E.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!E.payload)return g.t0(new g.Gh("REPLACE entity mutation is missing a payload",{entityKey:E.entityKey})),w;var p=g.kY(E.payload); return pj(w,p,E.entityKey,E.payload[p])}if(E.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{E=E.entityKey;try{var C=g.Tj(E).entityType;p=pj(w,C,E);break a}catch(M){if(M instanceof Error){g.t0(new g.Gh("Failed to deserialize entity key",{entityKey:E,jb:M.message}));p=w;break a}throw M;}p=void 0}return p}if(E.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!E.payload)return g.t0(new g.Gh("UPDATE entity mutation is missing a payload",{entityKey:E.entityKey})),w;p=g.kY(E.payload);var r,Y;return ud5(w,p,E.entityKey, E.payload[p],(r=E.fieldMask)==null?void 0:(Y=r.mergeOptions)==null?void 0:Y.repeatedFieldsMergeOption)}return w},e); case "REPLACE_ENTITY":var y=N.payload;return pj(e,y.entityType,y.key,y.Ys);case "REPLACE_ENTITIES":return Object.keys(N.payload).reduce(function(w,E){var A=N.payload[E];return Object.keys(A).reduce(function(T,p){return pj(T,E,p,A[p])},w)},e); case "UPDATE_ENTITY":return y=N.payload,ud5(e,y.entityType,y.key,y.Ys,y.ZIk);default:return e}}; Cj=function(e,N,y){return e[N]?e[N][y]||null:null}; rL=function(e){return window.Int32Array?new Int32Array(e):Array(e)}; SA=function(e){g.x.call(this);this.counter=[0,0,0,0];this.N=new Uint8Array(16);this.J=16;if(!ZE1){var N,y=new Uint8Array(256),w=new Uint8Array(256);var E=1;for(N=0;N<256;N++)y[E]=N,w[N]=E,E^=E<<1^(E>>7&&283);$d=new Uint8Array(256);Yd=rL(256);MD=rL(256);lZ=rL(256);F8=rL(256);for(var A=0;A<256;A++){E=A?w[255^y[A]]:0;E^=E<<1^E<<2^E<<3^E<<4;E=E&255^E>>>8^99;$d[A]=E;N=E<<1^(E>>7&&283);var T=N^E;Yd[A]=N<<24|E<<16|E<<8|T;MD[A]=T<<24|Yd[A]>>>8;lZ[A]=E<<24|MD[A]>>>8;F8[A]=E<<24|lZ[A]>>>8}ZE1=!0}E=rL(44);for(y= 0;y<4;y++)E[y]=e[4*y]<<24|e[4*y+1]<<16|e[4*y+2]<<8|e[4*y+3];for(w=1;y<44;y++)e=E[y-1],y%4||(e=($d[e>>16&255]^w)<<24|$d[e>>8&255]<<16|$d[e&255]<<8|$d[e>>>24],w=w<<1^(w>>7&&283)),E[y]=E[y-4]^e;this.key=E}; oo=function(e,N){for(var y=0;y<4;y++)e.counter[y]=N[y*4]<<24|N[y*4+1]<<16|N[y*4+2]<<8|N[y*4+3];e.J=16}; x69=function(e){for(var N=e.key,y=e.counter[0]^N[0],w=e.counter[1]^N[1],E=e.counter[2]^N[2],A=e.counter[3]^N[3],T=3;T>=0&&!(e.counter[T]=-~e.counter[T]);T--);for(var p,C,r=4;r<40;)T=Yd[y>>>24]^MD[w>>16&255]^lZ[E>>8&255]^F8[A&255]^N[r++],p=Yd[w>>>24]^MD[E>>16&255]^lZ[A>>8&255]^F8[y&255]^N[r++],C=Yd[E>>>24]^MD[A>>16&255]^lZ[y>>8&255]^F8[w&255]^N[r++],A=Yd[A>>>24]^MD[y>>16&255]^lZ[w>>8&255]^F8[E&255]^N[r++],y=T,w=p,E=C;e=e.N;T=N[40];e[0]=$d[y>>>24]^T>>>24;e[1]=$d[w>>16&255]^T>>16&255;e[2]=$d[E>>8&255]^ T>>8&255;e[3]=$d[A&255]^T&255;T=N[41];e[4]=$d[w>>>24]^T>>>24;e[5]=$d[E>>16&255]^T>>16&255;e[6]=$d[A>>8&255]^T>>8&255;e[7]=$d[y&255]^T&255;T=N[42];e[8]=$d[E>>>24]^T>>>24;e[9]=$d[A>>16&255]^T>>16&255;e[10]=$d[y>>8&255]^T>>8&255;e[11]=$d[w&255]^T&255;T=N[43];e[12]=$d[A>>>24]^T>>>24;e[13]=$d[y>>16&255]^T>>16&255;e[14]=$d[w>>8&255]^T>>8&255;e[15]=$d[E&255]^T&255}; cM=function(){if(!bZ&&!g.Um){if(h5)return h5;var e;h5=(e=window.crypto)==null?void 0:e.subtle;var N,y,w;if(((N=h5)==null?0:N.importKey)&&((y=h5)==null?0:y.sign)&&((w=h5)==null?0:w.encrypt))return h5;h5=void 0}}; g.kd=function(e){this.j=e}; g.BM=function(e){this.N=e}; X8=function(e){this.L=new Uint8Array(64);this.K=new Uint8Array(64);this.j=0;this.Z=new Uint8Array(64);this.N=0;this.L.set(e);this.K.set(e);for(e=0;e<64;e++)this.L[e]^=92,this.K[e]^=54;this.reset()}; juF=function(e,N,y){for(var w=e.G,E=e.J[0],A=e.J[1],T=e.J[2],p=e.J[3],C=e.J[4],r=e.J[5],Y=e.J[6],M=e.J[7],l,F,S,k=0;k<64;)k<16?(w[k]=S=N[y]<<24|N[y+1]<<16|N[y+2]<<8|N[y+3],y+=4):(l=w[k-2],F=w[k-15],S=w[k-7]+w[k-16]+((l>>>17|l<<15)^(l>>>19|l<<13)^l>>>10)+((F>>>7|F<<25)^(F>>>18|F<<14)^F>>>3),w[k]=S),l=M+PM[k]+S+((C>>>6|C<<26)^(C>>>11|C<<21)^(C>>>25|C<<7))+(C&r^~C&Y),F=((E>>>2|E<<30)^(E>>>13|E<<19)^(E>>>22|E<<10))+(E&A^E&T^A&T),M=l+F,p+=l,k++,k<16?(w[k]=S=N[y]<<24|N[y+1]<<16|N[y+2]<<8|N[y+3],y+=4):(l= w[k-2],F=w[k-15],S=w[k-7]+w[k-16]+((l>>>17|l<<15)^(l>>>19|l<<13)^l>>>10)+((F>>>7|F<<25)^(F>>>18|F<<14)^F>>>3),w[k]=S),l=Y+PM[k]+S+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+(p&C^~p&r),F=((M>>>2|M<<30)^(M>>>13|M<<19)^(M>>>22|M<<10))+(M&E^M&A^E&A),Y=l+F,T+=l,k++,k<16?(w[k]=S=N[y]<<24|N[y+1]<<16|N[y+2]<<8|N[y+3],y+=4):(l=w[k-2],F=w[k-15],S=w[k-7]+w[k-16]+((l>>>17|l<<15)^(l>>>19|l<<13)^l>>>10)+((F>>>7|F<<25)^(F>>>18|F<<14)^F>>>3),w[k]=S),l=r+PM[k]+S+((T>>>6|T<<26)^(T>>>11|T<<21)^(T>>>25|T<<7))+(T&p^ ~T&C),F=((Y>>>2|Y<<30)^(Y>>>13|Y<<19)^(Y>>>22|Y<<10))+(Y&M^Y&E^M&E),r=l+F,A+=l,k++,k<16?(w[k]=S=N[y]<<24|N[y+1]<<16|N[y+2]<<8|N[y+3],y+=4):(l=w[k-2],F=w[k-15],S=w[k-7]+w[k-16]+((l>>>17|l<<15)^(l>>>19|l<<13)^l>>>10)+((F>>>7|F<<25)^(F>>>18|F<<14)^F>>>3),w[k]=S),l=C+PM[k]+S+((A>>>6|A<<26)^(A>>>11|A<<21)^(A>>>25|A<<7))+(A&T^~A&p),F=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&Y^r&M^Y&M),S=M,M=p,p=S,S=Y,Y=T,T=S,S=r,r=A,A=S,C=E+l,E=l+F,k++;e.J[0]=E+e.J[0]|0;e.J[1]=A+e.J[1]|0;e.J[2]=T+e.J[2]|0;e.J[3]= p+e.J[3]|0;e.J[4]=C+e.J[4]|0;e.J[5]=r+e.J[5]|0;e.J[6]=Y+e.J[6]|0;e.J[7]=M+e.J[7]|0}; Qu0=function(e){var N=new Uint8Array(32),y=64-e.N;e.N>55&&(y+=64);var w=new Uint8Array(y);w[0]=128;for(var E=e.j*8,A=1;A<9;A++){var T=E%256;w[y-A]=T;E=(E-T)/256}e.update(w);for(y=0;y<8;y++)N[y*4]=e.J[y]>>>24,N[y*4+1]=e.J[y]>>>16&255,N[y*4+2]=e.J[y]>>>8&255,N[y*4+3]=e.J[y]&255;n50(e);return N}; n50=function(e){e.J=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];e.G=[];e.G.length=64;e.j=0;e.N=0}; m69=function(e){this.J=e}; HE0=function(e,N,y){e=new X8(e.J);e.update(N);e.update(y);N=Qu0(e);e.update(e.L);e.update(N);N=Qu0(e);e.reset();return N}; Kq_=function(e){this.N=e}; WqE=function(e,N,y,w){var E,A,T;return g.f(function(p){switch(p.J){case 1:if(e.J){p.u9(2);break}return g.D(p,w.importKey("raw",e.N,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:e.J=p.N;case 2:return E=new Uint8Array(N.length+y.length),E.set(N),E.set(y,N.length),A={name:"HMAC",hash:"SHA-256"},g.D(p,w.sign(A,e.J,E),4);case 4:return T=p.N,p.return(new Uint8Array(T))}})}; OE_=function(e,N,y){e.K||(e.K=new m69(e.N));return HE0(e.K,N,y)}; Rln=function(e,N,y){var w,E;return g.f(function(A){if(A.J==1){w=cM();if(!w)return A.return(OE_(e,N,y));g.c5(A,3);return g.D(A,WqE(e,N,y,w),5)}if(A.J!=3)return A.return(A.N);E=g.XH(A);g.uA(E);bZ=!0;return A.return(OE_(e,N,y))})}; U6P=function(e){for(var N="",y=0;y=1?e[e.length-1]:null;for(var w=g.c(e),E=w.next();!E.done;E=w.next())if(E=E.value,E.width&&E.height&&(y&&E.width>=N||!y&&E.height>=N))return E;for(N=e.length-1;N>=0;N--)if(y&&e[N].width||!y&&e[N].height)return e[N];return e[0]}; Io=function(){this.state=1;this.f$=null}; Egs=function(e,N,y,w,E,A){var T=T===void 0?"trayride":T;y?(e.IJ(2),g.rW(y,function(){if(window[T])w7_(e,w,T,E);else{e.IJ(3);var p=cE_(y),C=document.getElementById(p);C&&(bp5(p),C.parentNode.removeChild(C));g.uA(new g.Gh("Unable to load Botguard","from "+y))}},A)):N?(A=g.sA("SCRIPT"),N instanceof xx?(A.textContent=j$(N),ny(A)):A.textContent=N,A.nonce=Zs(document),document.head.appendChild(A),document.head.removeChild(A),window[T]?w7_(e,w,T,E):(e.IJ(4),g.uA(new g.Gh("Unable to load Botguard from JS")))): g.uA(new g.Gh("Unable to load VM; no url or JS provided"))}; w7_=function(e,N,y,w){e.IJ(5);try{var E=new Fa({program:N,globalName:y,EW:{disable:!g.Xj("att_web_record_metrics"),vI:"aGIf"}});E.oH.then(function(){e.IJ(6);w&&w(N)}); e.yN(E)}catch(A){e.IJ(7),A instanceof Error&&g.uA(A)}}; vM=function(){var e=g.nM("yt.abuse.playerAttLoader");return e&&["bgvma","bgvmb","bgvmc"].every(function(N){return N in e})?e:null}; zj=function(){Io.apply(this,arguments)}; iZ=function(){}; A00=function(e,N,y){for(var w=!1,E=g.c(e.R$.entries()),A=E.next();!A.done;A=E.next())A=g.c(A.value).next().value,A.slotType==="SLOT_TYPE_PLAYER_BYTES"&&A.Xh==="core"&&(w=!0);if(w){a:if(!y){e=g.c(e.R$.entries());for(y=e.next();!y.done;y=e.next())if(w=g.c(y.value),y=w.next().value,w=w.next().value,y.slotType==="SLOT_TYPE_IN_PLAYER"&&y.Xh==="core"){y=w.layoutId;break a}y=void 0}y?N.oG(y):YN("No triggering layout ID available when attempting to mute.")}}; DX=function(e,N){this.D3=e;this.iL=N}; gL=function(){}; Vg=function(){}; J0P=function(e){g.x.call(this);var N=this;this.Vi=e;this.J=new Map;fj(this,"commandExecutorCommand",function(y,w,E){TIH(N,y.commands,w,E)}); fj(this,"clickTrackingParams",function(){})}; p7J=function(e,N){fj(e,N.jh(),function(y,w,E){N.A$(y,w,E)})}; fj=function(e,N,y){e.Ss();e.J.get(N)&&g.t0(Error("Extension name "+N+" already registered"));e.J.set(N,y)}; TIH=function(e,N,y,w){N=N===void 0?[]:N;e.Ss();var E=[],A=[];N=g.c(N);for(var T=N.next();!T.done;T=N.next())T=T.value,g.m(T,CAs)||g.m(T,r0J)?E.push(T):A.push(T);E=g.c(E);for(N=E.next();!N.done;N=E.next())t5(e,N.value,y,w);A=g.c(A);for(E=A.next();!E.done;E=A.next())t5(e,E.value,y,w)}; t5=function(e,N,y,w){e.Ss();N.loggingUrls&&$iE(e,"loggingUrls",N.loggingUrls,y,w);N=g.c(Object.entries(N));for(var E=N.next();!E.done;E=N.next()){var A=g.c(E.value);E=A.next().value;A=A.next().value;E==="openPopupAction"?e.Vi.get().gS("innertubeCommand",{openPopupAction:A}):E==="confirmDialogEndpoint"?e.Vi.get().gS("innertubeCommand",{confirmDialogEndpoint:A}):Y$P.hasOwnProperty(E)||$iE(e,E,A,y,w)}}; $iE=function(e,N,y,w,E){if((e=e.J.get(N))&&typeof e==="function")try{e(y,w,E)}catch(A){g.t0(A)}else N=new g.Gh("Unhandled field",N),g.uA(N)}; uZ=function(e,N,y){this.zo=e;this.J=N;this.Pk=y}; qD=function(e){this.value=e}; ZX=function(e){this.value=e}; xd=function(e){this.value=e}; jA=function(e){this.value=e}; nj=function(e){this.value=e}; Qg=function(e){this.value=e}; HM=function(e){this.value=e}; Kj=function(){qD.apply(this,arguments)}; WM=function(e){this.value=e}; OR=function(e){this.value=e}; Ro=function(e){this.value=e}; Gj=function(e){this.value=e}; UR=function(e){this.value=e}; Lj=function(e){this.value=e}; sR=function(e){this.value=e}; ao=function(e){this.value=e}; eR=function(e){this.value=e}; NT=function(e){this.value=e}; yS=function(){qD.apply(this,arguments)}; wK=function(e){this.value=e}; EP=function(e){this.value=e}; Aw=function(e){this.value=e}; TQ=function(e){this.value=e}; Jw=function(e){this.value=e}; px=function(e){this.value=e}; Cx=function(e){this.value=e}; rK=function(e){this.value=e}; $q=function(e){this.value=e}; Yq=function(e){this.value=e}; MT=function(e){this.value=e}; ll=function(e){this.value=e}; FP=function(e){this.value=e}; SR=function(e){this.value=e}; os=function(e){this.value=e}; bl=function(e){this.value=e}; hw=function(e){this.value=e}; cp=function(e){this.value=e}; kq=function(e){this.value=e}; Bp=function(e){this.value=e}; XP=function(e){this.value=e}; Pp=function(e){this.value=e}; dK=function(e){this.value=e}; Is=function(e){this.value=e}; vp=function(e){this.value=e}; zQ=function(e){this.value=e}; il=function(e){this.value=e}; Db=function(e){this.value=e}; gK=function(e){this.value=e}; VS=function(e){this.value=e}; fx=function(e){this.value=e}; tw=function(e){this.value=e}; ul=function(e){this.value=e}; qT=function(e){this.value=e}; Zb=function(e){this.value=e}; xq=function(e){this.value=e}; jR=function(e){this.value=e}; nx=function(e){this.value=e}; QS=function(){qD.apply(this,arguments)}; mZ=function(e){this.value=e}; Hp=function(){qD.apply(this,arguments)}; Kx=function(){qD.apply(this,arguments)}; Wp=function(){qD.apply(this,arguments)}; OP=function(){qD.apply(this,arguments)}; Rs=function(){qD.apply(this,arguments)}; GQ=function(e){this.value=e}; UP=function(e){this.value=e}; Lx=function(e){this.value=e}; sP=function(e){this.value=e}; as=function(e){this.value=e}; Nx=function(e,N,y){if(y&&!y.includes(e.layoutType))return!1;N=g.c(N);for(y=N.next();!y.done;y=N.next())if(!eK(e.clientMetadata,y.value))return!1;return!0}; yk=function(){return""}; MP9=function(e,N){switch(e){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 N(e),8}}; wX=function(e,N,y,w){w=w===void 0?!1:w;FF.call(this,e);this.ol=y;this.S$=w;this.args=[];N&&this.args.push(N)}; U=function(e,N,y,w){w=w===void 0?!1:w;FF.call(this,e);this.ol=y;this.S$=w;this.args=[];N&&this.args.push(N)}; EG=function(e){var N=new Map;e.forEach(function(y){N.set(y.getType(),y)}); this.J=N}; eK=function(e,N){return e.J.has(N)}; A6=function(e,N){e=e.J.get(N);if(e!==void 0)return e.get()}; T5=function(e){return Array.from(e.J.keys())}; J6=function(e,N,y){if(y&&y!==e.slotType)return!1;N=g.c(N);for(y=N.next();!y.done;y=N.next())if(!eK(e.clientMetadata,y.value))return!1;return!0}; Fj0=function(e){var N;return((N=lLH.get(e))==null?void 0:N.JN)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; Cn=function(e,N){var y={type:N.slotType,controlFlowManagerLayer:S$H.get(N.Xh)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};N.slotEntryTrigger&&(y.entryTriggerType=N.slotEntryTrigger.triggerType);N.slotPhysicalPosition!==1&&(y.slotPhysicalPosition=N.slotPhysicalPosition);if(e){y.debugData={slotId:N.slotId};if(e=N.slotEntryTrigger)y.debugData.slotEntryTriggerData=pn(e);e=N.slotFulfillmentTriggers;y.debugData.fulfillmentTriggerData=[];e=g.c(e);for(var w=e.next();!w.done;w=e.next())y.debugData.fulfillmentTriggerData.push(pn(w.value)); N=N.slotExpirationTriggers;y.debugData.expirationTriggerData=[];N=g.c(N);for(e=N.next();!e.done;e=N.next())y.debugData.expirationTriggerData.push(pn(e.value))}return y}; ogJ=function(e,N){var y={type:N.layoutType,controlFlowManagerLayer:S$H.get(N.Xh)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};e&&(y.debugData={layoutId:N.layoutId});return y}; pn=function(e,N){var y={type:e.triggerType};N!=null&&(y.category=N);e.triggeringSlotId!=null&&(y.triggerSourceData||(y.triggerSourceData={}),y.triggerSourceData.associatedSlotId=e.triggeringSlotId);e.triggeringLayoutId!=null&&(y.triggerSourceData||(y.triggerSourceData={}),y.triggerSourceData.associatedLayoutId=e.triggeringLayoutId);return y}; bQ3=function(e,N,y,w){N={opportunityType:N};e&&(w||y)&&(w=g.dn(w||[],function(E){return Cn(e,E)}),N.debugData=Object.assign({},y&&y.length>0?{associatedSlotId:y}:{},w.length>0?{slots:w}:{})); return N}; $2=function(e,N){return function(y){return hkJ(rX(e),N.slotId,N.slotType,N.slotPhysicalPosition,N.Xh,N.slotEntryTrigger,N.slotFulfillmentTriggers,N.slotExpirationTriggers,y.layoutId,y.layoutType,y.Xh)}}; hkJ=function(e,N,y,w,E,A,T,p,C,r,Y){return{adClientDataEntry:{slotData:Cn(e,{slotId:N,slotType:y,slotPhysicalPosition:w,Xh:E,slotEntryTrigger:A,slotFulfillmentTriggers:T,slotExpirationTriggers:p,clientMetadata:new EG([])}),layoutData:ogJ(e,{layoutId:C,layoutType:r,Xh:Y,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],E2:[],tM:new Map,clientMetadata:new EG([]),o9:{}})}}}; Mx=function(e){this.wP=e;e=Math.random();var N=this.wP.get();N=g.Y2(N.C.X().experiments,"html5_debug_data_log_probability");N=Number.isFinite(N)&&N>=0&&N<=1?N:0;this.J=e1){g.uA(new g.Gh("Exit already started",{current:e.currentState}));var y=!1}else y=!0;if(!y)return!1;e.currentState=2;e.J=N;return!0}; Sc=function(e){if(e.currentState!==2)return!1;e.currentState=3;return!0}; GV3=function(e,N){var y=new Map;e=g.c(e);for(var w=e.next();!w.done;w=e.next()){w=w.value;if(w.layoutType==="LAYOUT_TYPE_MEDIA")var E="v";else w.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(E=A6(w.clientMetadata,"metadata_type_linked_in_player_layout_type"),E=E==="LAYOUT_TYPE_ENDCAP"||E==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":E==="LAYOUT_TYPE_SURVEY"?"s":E==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):E="u";y.set(w.layoutId,E);if(E==="u"){var A={};E=N;w=(A.c=w.layoutId,A);E.C.Fh("uct",w)}}e= N.YI();o2={contentCpn:e,YS:y};w={};y=(w.ct=y.size,w.c=e,w);N.C.Fh("acc",y)}; UuH=function(){o2={contentCpn:"",YS:new Map}}; b$=function(e){var N;return(N=o2.YS.get(e))!=null?N:"u"}; hG=function(e,N,y){e.C.Fh(N,y);LkP(e)}; sMJ=function(e){var N=e.layoutId,y=e.dS;if(e.OR){var w={};hG(e.zo,"slso",(w.ec=N,w.is=y,w.ctp=b$(N),w))}}; c3=function(e){var N=e.layoutId,y=e.dS;if(e.OR){var w={};hG(e.zo,"slse",(w.ec=N,w.is=y,w.ctp=b$(N),w))}}; ahJ=function(e){var N=e.layoutId,y=e.dS,w=e.zo;e.OR&&(e={},hG(w,"sleo",(e.xc=N,e.is=y,e.ctp=b$(N),e)),LkP(w))}; e3_=function(e){var N=e.cpn,y=e.zo;e=e.dS;var w=y.YI(),E={};hG(y,"ce",(E.ec=N,E.ia=N!==w,E.r=o2.YS.has(N),E.is=e,E.ctp=b$(N),E))}; LkP=function(e){if(e.YI()!==o2.contentCpn){var N={};N=(N.c=o2.contentCpn,N);e.C.Fh("ccm",N)}}; Nh1=function(e){var N=e.cpn,y=e.zo;e=e.dS;var w=y.YI(),E={};hG(y,"cx",(E.xc=N,E.ia=N!==w,E.r=o2.YS.has(N),E.is=e,E.ctp=b$(N),E))}; yF5=function(e){this.params=e;this.J=new Set}; w2J=function(e,N,y){if(!e.J.has(N)){e.J.add(N);var w={};e.params.OP.g4(N,Object.assign({},y,(w.p_ac=e.params.adCpn,w.p_isv=e.params.WPq&&e.params.gx,w)))}}; B3=function(e,N,y){if(k6(e.params.OP.wP.get(),!0)){var w=y.flush,E={};w2J(e,N,(E.cts=y.currentTimeSec,E.f=w,E))}}; ENE=function(e,N){this.zo=e;this.wP=N}; Xe=function(e){var N=[];if(e){e=g.c(Object.entries(e));for(var y=e.next();!y.done;y=e.next()){var w=g.c(y.value);y=w.next().value;w=w.next().value;w!==void 0&&(w=typeof w==="boolean"?""+ +w:(""+w).replace(/[:,=]/g,"_"),N.push(y+"."+w))}}return N.join(";")}; P3=function(e,N,y){N=N===void 0?{}:N;this.errorCode=e;this.details=N;this.severity=y===void 0?0:y}; dp=function(e){return e===1||e===2}; I2=function(e,N){N=N===void 0?0:N;if(e instanceof P3)return e;e=e&&e instanceof Error?e:Error(""+e);dp(N)?g.t0(e):g.uA(e);return new P3(N===1?"player.fatalexception":"player.exception",{name:""+e.name,message:""+e.message},N)}; AF5=function(e,N){function y(){var w=g.iE.apply(0,arguments);e.removeEventListener("playing",y);N.apply(null,g.B(w))} e.addEventListener("playing",y)}; v3=function(){var e=g.nM("yt.player.utils.videoElement_");e||(e=g.sA("VIDEO"),g.jM("yt.player.utils.videoElement_",e));return e}; zS=function(e){var N=v3();return!!(N&&N.canPlayType&&N.canPlayType(e))}; Dr=function(e){if(/opus/.test(e)&&g.i$&&!vD("38")&&!g.O8())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(e);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(e);if(/webm/.test(e)&&!oDs())return!1;e==='audio/mp4; codecs="mp4a.40.2"'&&(e='video/mp4; codecs="avc1.4d401f"');return!!zS(e)}; Thn=function(e){try{var N=Dr('video/mp4; codecs="avc1.42001E"')||Dr('video/webm; codecs="vp9"');return(Dr('audio/mp4; codecs="mp4a.40.2"')||Dr('audio/webm; codecs="opus"'))&&(N||!e)||zS('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(y){return"html5.missingapi"}}; gp=function(){var e=v3();return!(!e.webkitSupportsPresentationMode||typeof e.webkitSetPresentationMode!=="function")}; VI=function(){var e=v3();try{var N=e.muted;e.muted=!N;return e.muted!==N}catch(y){}return!1}; JF5=function(){var e;return((e=navigator.connection)==null?void 0:e.type)||""}; g.fd=function(){iY.apply(this,arguments)}; tG=function(e,N,y,w,E,A,T){this.sampleRate=e===void 0?0:e;this.numChannels=N===void 0?0:N;this.spatialAudioType=y===void 0?"SPATIAL_AUDIO_TYPE_NONE":y;this.J=w===void 0?!1:w;this.K=E===void 0?0:E;this.N=A===void 0?0:A;this.audioQuality=T===void 0?"AUDIO_QUALITY_UNKNOWN":T}; Zr=function(e,N,y,w,E,A,T,p,C){this.width=e;this.height=N;this.quality=A||u$(e,N);this.J=g.q5[this.quality];this.fps=y||0;this.stereoLayout=!E||w!=null&&w!=="UNKNOWN"&&w!=="RECTANGULAR"?0:E;this.projectionType=w?w==="EQUIRECTANGULAR"&&E===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":w:"UNKNOWN";(e=T)||(e=g.q5[this.quality],e===0?e="Autom\u00e1tico":(N=this.fps,y=this.projectionType,e=e.toString()+(y==="EQUIRECTANGULAR"||y==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||y==="MESH"?"s":"p")+(N>55?"60":N>49?"50":N> 39?"48":"")));this.qualityLabel=e;this.N=p||"";this.primaries=C||""}; u$=function(e,N){var y=Math.max(e,N);e=Math.min(e,N);N=x6[0];for(var w=0;w=Math.floor(A*16/9)*1.3||e>=A*1.3)return N;N=E}return"tiny"}; QI=function(e,N,y){y=y===void 0?{}:y;this.id=e;this.mimeType=N;y.JM>0||(y.JM=16E3);Object.assign(this,y);e=g.c(this.id.split(";"));this.itag=e.next().value;this.J=e.next().value;this.containerType=jc(N);this.Iq=nd[this.itag]||""}; mu=function(e){return e.Iq==="9"||e.Iq==="("||e.Iq==="9h"||e.Iq==="(h"}; p20=function(e){return e.Iq==="H"||e.Iq==="h"}; H3=function(e){return e.Iq==="9h"||e.Iq==="(h"}; Kd=function(e){return e.Iq==="1"||e.Iq==="1h"}; W3=function(e){return e.Iq==="mac3"||e.Iq==="meac3"||e.Iq==="m"||e.Iq==="i"}; Og=function(e){return e.Iq==="MAC3"||e.Iq==="MEAC3"||e.Iq==="M"||e.Iq==="I"}; g.R2=function(e){return e.containerType===1}; Cp5=function(e){return e.Iq==="("||e.Iq==="(h"||e.Iq==="H"}; GS=function(e){return e.mimeType==="application/x-mpegURL"}; Ug=function(e){e=e.mimeType;return e.includes("vtt")||e.includes("text/mp4")}; g.Ld=function(e,N){return{itag:+e.itag,lmt:N?0:e.lastModified,xtags:e.J||""}}; rFM=function(e){var N=navigator.mediaCapabilities;if(N==null||!N.decodingInfo||e.Iq==="f")return Promise.resolve();var y={type:e.audio&&e.video?"file":"media-source"};e.video&&(y.video={contentType:e.mimeType,width:e.video.width||640,height:e.video.height||360,bitrate:e.JM*8||1E6,framerate:e.video.fps||30});e.audio&&(y.audio={contentType:e.mimeType,channels:""+(e.audio.numChannels||2),bitrate:e.JM*8||128E3,samplerate:e.audio.sampleRate||44100});return N.decodingInfo(y).then(function(w){e.N=w})}; sg=function(e){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(e)}; a2=function(e){return/(vp9|vp09|vp8|avc1|av01)/.test(e)}; jc=function(e){return e.indexOf("/mp4")>=0?1:e.indexOf("/webm")>=0?2:e.indexOf("/x-flv")>=0?3:e.indexOf("/vtt")>=0?4:0}; ei=function(e,N,y,w,E,A){var T=new tG;N in g.q5||(N="small");N==="light"&&(N="tiny");w&&E?(E=Number(E),w=Number(w)):(E=g.q5[N],w=Math.round(E*16/9));A=new Zr(w,E,0,null,void 0,N,A);e=unescape(e.replace(/"/g,'"'));return new QI(y,e,{audio:T,video:A})}; N$=function(e){var N="id="+e.id;e.video&&(N+=", res="+e.video.qualityLabel);var y,w;return N+", byterate=("+((y=e.RX)==null?void 0:y.toFixed(0))+", "+((w=e.JM)==null?void 0:w.toFixed(0))+")"}; yc=function(e,N){return{start:function(y){return e[y]}, end:function(y){return N[y]}, length:e.length}}; $EM=function(e,N,y){for(var w=[],E=[],A=0;A=N)return y}catch(w){}return-1}; AX=function(e,N){return E3(e,N)>=0}; Yz3=function(e,N){if(!e)return NaN;N=E3(e,N);return N>=0?e.start(N):NaN}; T6=function(e,N){if(!e)return NaN;N=E3(e,N);return N>=0?e.end(N):NaN}; JX=function(e){return e&&e.length?e.end(e.length-1):NaN}; ph=function(e,N){e=T6(e,N);return e>=0?e-N:0}; Ch=function(e,N,y){for(var w=[],E=[],A=0;Ay||(w.push(Math.max(N,e.start(A))-N),E.push(Math.min(y,e.end(A))-N));return yc(w,E)}; rO=function(e,N,y,w){g.pT.call(this);var E=this;this.KC=e;this.start=N;this.end=y;this.isActive=w;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.t8={error:function(){!E.Ss()&&E.isActive&&E.publish("error",E)}, updateend:function(){!E.Ss()&&E.isActive&&E.publish("updateend",E)}}; this.KC.H_(this.t8);this.MC=this.isActive}; YH=function(e,N,y,w,E,A){g.pT.call(this);var T=this;this.TW=e;this.gQ=N;this.id=y;this.containerType=w;this.Iq=E;this.gx=A;this.Pe=this.R6=this.lP=null;this.KU=!1;this.appendWindowStart=this.timestampOffset=0;this.yc=yc([],[]);this.Yn=!1;this.Su=[];this.aH=$H?[]:void 0;this.bB=function(C){return T.publish(C.type,T)}; var p;if((p=this.TW)==null?0:p.addEventListener)this.TW.addEventListener("updateend",this.bB),this.TW.addEventListener("error",this.bB)}; Zo=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; xH=function(e,N){this.yl=e;this.J=N===void 0?!1:N;this.N=!1}; ji=function(e,N,y){y=y===void 0?!1:y;g.x.call(this);this.mediaElement=e;this.TZ=N;this.isView=y;this.Z=0;this.j=!1;this.L=!0;this.D=0;this.callback=null;this.U=!1;this.TZ||(this.gQ=this.mediaElement.ut());this.events=new g.fd(this);g.Q(this,this.events);this.K=new xH(this.TZ?window.URL.createObjectURL(this.TZ):this.gQ.webkitMediaSourceURL,!0);e=this.TZ||this.gQ;Dw(this.events,e,["sourceopen","webkitsourceopen"],this.Mpq);Dw(this.events,e,["sourceclose","webkitsourceclose"],this.Vpq);this.G={updateend:this.G6}}; MQ9=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; lYH=function(e,N){nh(e)?g.Jo(function(){N(e)}):e.callback=N}; FQs=function(e,N,y){if(Qc){var w;ma(e.mediaElement,{l:"mswssb",sr:(w=e.mediaElement.JW)==null?void 0:w.fO()},!1);N.H_(e.G,e);y.H_(e.G,e)}e.J=N;e.N=y;g.Q(e,N);g.Q(e,y)}; Sz5=function(e,N,y,w){w=N.mimeType+(w===void 0?"":w);var E=y.mimeType;N=N.Iq;y=y.Iq;var A;e.Ng=(A=e.TZ)==null?void 0:A.addSourceBuffer(E);var T;e.Kh=w.split(";")[0]==="fakesb"?void 0:(T=e.TZ)==null?void 0:T.addSourceBuffer(w);e.gQ&&(e.gQ.webkitSourceAddId("0",E),e.gQ.webkitSourceAddId("1",w));A=new YH(e.Ng,e.gQ,"0",jc(E),y,!1);w=new YH(e.Kh,e.gQ,"1",jc(w),N,!0);FQs(e,A,w)}; HI=function(e){return!!e.J||!!e.N}; nh=function(e){try{return Kh(e)==="open"}catch(N){return!1}}; Kh=function(e){if(e.TZ)return e.TZ.readyState;switch(e.gQ.webkitSourceState){case e.gQ.SOURCE_OPEN:return"open";case e.gQ.SOURCE_ENDED:return"ended";default:return"closed"}}; WI=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; oN3=function(e){nh(e)&&(e.TZ?e.TZ.endOfStream():e.gQ.webkitSourceEndOfStream(e.gQ.EOS_NO_ERROR))}; bR9=function(e,N,y,w){if(!e.J||!e.N)return null;var E=e.J.isView()?e.J.KC:e.J,A=e.N.isView()?e.N.KC:e.N,T=new ji(e.mediaElement,e.TZ,!0);T.K=e.K;FQs(T,new rO(E,N,y,w),new rO(A,N,y,w));nh(e)||e.J.lZ(e.J.w7());return T}; h30=function(e){var N;(N=e.J)==null||N.IC();var y;(y=e.N)==null||y.IC();e.L=!1}; O3=function(){var e=this;this.oD=this.nG=VME;this.promise=new g.lB(function(N,y){e.nG=N;e.oD=y})}; R8=function(){g.x.call(this);this.CM=!1;this.yl=null;this.G=this.Z=!1;this.j=new g.Ux;this.JW=null;g.Q(this,this.j)}; G6=function(e){e=e.Gz();return e.length<1?NaN:e.end(e.length-1)}; cF5=function(e){!e.N&&MQ9()&&(e.K?e.K.then(function(){return cF5(e)}):e.cI()||(e.N=e.E$()))}; kF9=function(e){e.N&&(e.N.dispose(),e.N=void 0)}; ma=function(e,N,y){var w;((w=e.JW)==null?0:w.B9())&&e.JW.Fh("rms",N,y===void 0?!1:y)}; BhH=function(e,N,y){e.isPaused()||e.getCurrentTime()>N||y>10||(e.play(),g.b4(function(){BhH(e,e.getCurrentTime(),y+1)},500))}; X2_=function(e,N){e.yl&&e.yl.Bw(N)||(e.yl&&e.yl.dispose(),e.yl=N)}; U3=function(e){return ph(e.O4(),e.getCurrentTime())}; Pp1=function(e,N){if(e.Rl()===0||e.hasError())return!1;var y=e.getCurrentTime()>0;return N>=0&&(e=e.Gz(),e.length||!y)?AX(e,N):y}; Lh=function(e){e.cI()&&(e.JW&&e.JW.d6("rs_s"),Gv&&e.getCurrentTime()>0&&e.seekTo(0),e.Wu(),e.load(),X2_(e,null));delete e.K}; s3=function(e){switch(e.pw()){case 2:return"progressive.net.retryexhausted";case 3:return e=e.Cq(),(e==null?0:e.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||dEJ&&(e==null?0:e.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.a8=function(e,N,y){this.qS=N===void 0?null:N;this.seekSource=y===void 0?null:y;this.state=e||64}; ep=function(e,N,y){y=y===void 0?!1:y;return IYn(e,N.getCurrentTime(),(0,g.iC)(),U3(N),y)}; Nb=function(e,N,y,w){if(!(N===e.state&&y===e.qS&&w===e.seekSource||N!==void 0&&(N&128&&!y||N&2&&N&16))){var E;if(E=N)E=N||e.state,E=!!(E&16||E&32);e=new g.a8(N,y,E?w?w:e.seekSource:null)}return e}; yO=function(e,N,y){return Nb(e,e.state|N,null,y===void 0?null:y)}; wY=function(e,N){return Nb(e,e.state&~N,null,null)}; EV=function(e,N,y,w){return Nb(e,(e.state|N)&~y,null,w===void 0?null:w)}; g.G=function(e,N){return!!(e.state&N)}; g.A_=function(e,N){return N.state===e.state&&N.qS===e.qS}; Tp=function(e){return e.isPlaying()&&!g.G(e,16)&&!g.G(e,32)}; J_=function(e){return g.G(e,128)?-1:g.G(e,2)?0:g.G(e,2048)?3:g.G(e,64)?-1:g.G(e,1)&&!g.G(e,32)?3:g.G(e,8)?1:g.G(e,4)?2:-1}; CL=function(e,N,y,w,E,A,T,p,C,r,Y,M,l,F,S,k,X){g.x.call(this);var d=this;this.oY=e;this.slot=N;this.layout=y;this.Pk=w;this.AM=E;this.Hk=A;this.zZ=T;this.d7=p;this.P9=C;this.qA=r;this.position=M;this.Z=l;this.wP=F;this.Pi=S;this.Kw=k;this.context=X;this.l6=!0;this.L=!1;this.Dg="not_rendering";this.N=!1;this.K=new l$;e=A6(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.vk=new I0(y.tM,this.Pk,e,y.layoutId);var v;e=((v=pL(this))==null?void 0:v.progressCommands)||[];this.j=new PjM(C, e,y.layoutId,function(){return d.Zj()}); this.J=new yF5({adCpn:this.layout.layoutId,OP:X.OP,WPq:this.Pi,gx:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})}; rY=function(e){return{layoutId:e.rb(),dS:e.Pi,zo:e.Hk.get(),OR:e.HE()}}; $z=function(e,N){return N.layoutId!==e.layout.layoutId?(e.oY.xz(e.slot,N,new wX("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+e.layout.layoutId+("and LayoutType: "+e.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; Yz=function(e){e.Dg="rendering_start_requested";e.qA(-1)}; pL=function(e){return A6(e.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; vNM=function(e){YN("Received layout exit signal when not in layout exit flow.",e.slot,e.layout)}; z3M=function(e){var N;return((N=Mb(e.Hk.get(),2))==null?void 0:N.clientPlaybackNonce)||""}; li=function(e,N){switch(N){case "normal":e.eR("complete");break;case "skipped":e.eR("skip");break;case "abandoned":V6(e.vk,"impression")&&e.eR("abandon")}}; Fl=function(e,N){e.L||(N=new g.ME(N.state,new g.a8),e.L=!0);return N}; Sp=function(e,N){$6(N)?e.qA(1):g.FD(N,4)&&!g.FD(N,2)&&e.Jh();lp(N,4)<0&&!(lp(N,2)<0)&&e.N9()}; iR5=function(e){e.position===0&&(e.d7.get(),e=A6(e.layout.clientMetadata,"metadata_type_ad_placement_config").kind,e={adBreakType:oV(e)},jZ("ad_bl"),g.nV(e))}; bi=function(e,N){Dk(e.vk,N,!e.N)}; gN_=function(e){var N;return(((N=pL(e))==null?void 0:N.progressCommands)||[]).findIndex(function(y){return!!g.m(y==null?void 0:y.command,DEE)})!==-1}; h_=function(e,N){var y=A6(e.clientMetadata,"metadata_type_eligible_for_ssap");return y===void 0?(YN("Expected SSAP eligibility in PlayerBytes factory",e),!1):N.HE(y)}; cd=function(e,N){if(!R_(N.get(),"html5_ssap_pass_transition_reason"))return 3;switch(e){case "skipped":case "muted":case "user_input_submitted":return 3;case "normal":return 2;case "error":return YN("Unexpected error from cPACF during rendering"),6;case "abandoned":return 5;case "user_cancelled":case "unknown":return YN("Unexpected layout exit reason",void 0,void 0,{layoutExitReason:e}),3;default:wa(e,"unknown layoutExitReason")}}; VQ5=function(e){YN("getExitReason: unexpected reason",void 0,void 0,{reason:e})}; kz=function(e,N){if(R_(N.get(),"html5_ssap_pass_transition_reason"))switch(e){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return VQ5(e),"abandoned";case 3:case 1:return VQ5(e),"error";default:wa(e,"unexpected transition reason")}else switch(e){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return YN("getExitReason: unexpected reason",void 0,void 0,{reason:e}),"error";default:wa(e,"unexpected transition reason")}}; Bd=function(e,N,y){mo(e,y)||KV(e,N,y);mo(e,"video_to_ad")||KV(e,N,"video_to_ad");mo(e,"ad_to_video")||KV(e,N,"ad_to_video");mo(e,"ad_to_ad")||KV(e,N,"ad_to_ad")}; Xl=function(e,N,y,w,E,A,T,p,C,r,Y,M,l,F,S,k,X,d){CL.call(this,e,N,y,w,E,A,T,p,r,Y,M,l,F,S,k,X,d);var v=this;this.Vi=C;this.nz=M;this.Ex=!0;this.Lp=this.Cj=0;this.b1=$T(function(){sMJ(rY(v));v.oY.Ql(v.slot,v.layout)}); this.vC=$T(function(){ahJ(rY(v));v.Dg!=="rendering_stop_requested"&&v.nz(v);v.layoutExitReason?v.oY.aJ(v.slot,v.layout,v.layoutExitReason):vNM(v)}); this.D_=new g.kT(200);this.D_.listen("tick",function(){v.HY()}); g.Q(this,this.D_)}; dY=function(e){e.Lp=Date.now();Pd(e,e.Cj);e.D_.start()}; fYH=function(e){e.Cj=e.Zj();e.bV(e.Cj/1E3,!0);Pd(e,e.Cj)}; Pd=function(e,N){N={current:N/1E3,duration:e.Zj()/1E3};e.Vi.get().gS("onAdPlaybackProgress",N)}; IV=function(e){Xl.call(this,e.oY,e.slot,e.Ww,e.Pk,e.AM,e.Hk,e.zZ,e.d7,e.Vi,e.P9,e.qA,e.nz,e.xo,e.G3,e.wP,e.Pi,e.Kw,e.context)}; vd=function(e){Xl.call(this,e.oY,e.slot,e.Ww,e.Pk,e.AM,e.Hk,e.zZ,e.d7,e.Vi,e.P9,e.qA,e.nz,e.xo,e.G3,e.wP,e.Pi,e.Kw,e.context)}; zp=function(){vd.apply(this,arguments)}; tQn=function(e){return h_(e.slot,e.wP.get())?new zp(e):new IV(e)}; gY=function(e){CL.call(this,e.callback,e.slot,e.Ww,e.Pk,e.AM,e.Hk,e.zZ,e.d7,e.P9,e.qA,e.nz,e.xo,e.G3,e.wP,e.Pi,e.Kw,e.context);var N=this;this.adCpn="";this.U9=0;this.w5=!1;this.sC=0;this.b1=$T(function(){sMJ(rY(N));N.oY.Ql(N.slot,N.layout)}); this.vC=$T(function(){ahJ(rY(N));N.Dg!=="rendering_stop_requested"&&N.nz(N);N.layoutExitReason?N.oY.aJ(N.slot,N.layout,N.layoutExitReason):vNM(N)}); this.If=e.If;this.s2=e.s2;this.oJ=e.oJ;this.Vi=e.Vi;this.DM=e.DM;this.nz=e.nz;if(!this.HE()){R_(this.wP.get(),"html5_disable_media_load_timeout")||(this.qe=new g.e6(function(){N.GP("load_timeout",new wX("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); e=ii(this.wP.get());var y=Du(this.wP.get());e&&y&&(this.oE=new g.e6(function(){var w=A6(N.layout.clientMetadata,"metadata_type_preload_player_vars");w&&N.s2.get().C.preloadVideoByPlayerVars(w,2,300)}))}}; qzH=function(e,N){var y=A6(N.clientMetadata,"metadata_type_ad_video_id"),w=A6(N.clientMetadata,"metadata_type_legacy_info_card_vast_extension");y&&w&&e.DM.get().C.X().aq.add(y,{Ns:w});(N=A6(N.clientMetadata,"metadata_type_sodar_extension_data"))&&xi5(e.If.get(),N);uDE(e.zZ.get(),!1)}; ZRE=function(e){uDE(e.zZ.get(),!0);var N;((N=e.shrunkenPlayerBytesConfig)==null?0:N.shouldRequestShrunkenPlayerBytes)&&e.zZ.get().c7(!1)}; xE9=function(e){var N=A6(e.W9().clientMetadata,"metadata_type_player_bytes_slot_metadata");N===void 0&&YN("PlayerBytesSlotMetadata is not filled",e.W9(),e.mP());return(N==null?void 0:N.dD)===!0}; VO=function(){gY.apply(this,arguments)}; fL=function(){VO.apply(this,arguments)}; j45=function(e){return tQn(Object.assign({},e,{oY:e.callback,qA:function(){}}))}; nNJ=function(e){return new gY(Object.assign({},e,{qA:function(N){e.Vi.get().gS("onAdIntroStateChange",N)}}))}; Q4_=function(e){function N(y){e.Vi.get().rO(y)} return h_(e.slot,e.wP.get())?new fL(Object.assign({},e,{qA:N})):new gY(Object.assign({},e,{qA:N}))}; t_=function(e){for(var N=e.Ww,y=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],w=g.c(vt()),E=w.next();!E.done;E=w.next())y.push(E.value);if(Up(N,{xO:y,K$:["LAYOUT_TYPE_MEDIA_BREAK"]}))return j45(e);N=e.Ww;y=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];w=g.c(vt());for(E=w.next();!E.done;E=w.next())y.push(E.value);if(Up(N,{xO:y,K$:["LAYOUT_TYPE_MEDIA"]}))return eK(e.Ww.clientMetadata,"metadata_type_ad_intro")?nNJ(e):Q4_(e)}; HR_=function(e){var N=A6(e.clientMetadata,"metadata_type_ad_placement_config").kind,y=A6(e.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:e.layoutId,adType:mE9(y),adBreakType:oV(N)}}; oV=function(e){switch(e){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"}}; mE9=function(e){switch(e){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; KQJ=function(e){try{return new ui(e.lX,e.slot,e.layout,e.EQ,e.T9,e.Hk,e.xk,e.s2,e.Jz,e.zZ,e.hUg,e)}catch(N){}}; ui=function(e,N,y,w,E,A,T,p,C,r,Y,M){g.x.call(this);this.lX=e;this.slot=N;this.layout=y;this.EQ=w;this.T9=E;this.Hk=A;this.xk=T;this.s2=p;this.Jz=C;this.zZ=r;this.params=M;this.l6=!0;e=t_(Y);if(!e)throw Error("Invalid params for sublayout");this.DB=e}; WQ1=function(){this.J=1;this.N=new l$}; qb=function(e,N,y,w,E,A,T,p,C,r,Y,M,l){g.x.call(this);this.callback=e;this.Hk=N;this.xk=y;this.s2=w;this.zZ=E;this.d7=A;this.Tc=T;this.slot=p;this.layout=C;this.EQ=r;this.Mr=Y;this.Jz=M;this.wP=l;this.l6=!0;this.u8=!1;this.bv=[];this.PC=-1;this.fp=!1;this.Uf=new WQ1}; ORM=function(e){var N;return(N=e.layout.Cm)!=null?N:A6(e.layout.clientMetadata,"metadata_type_sub_layouts")}; Zu=function(e){return{zo:e.Hk.get(),dS:!1,OR:e.HE()}}; R3s=function(e,N,y){if(e.nE()===e.bv.length-1){var w,E;YN("Unexpected skip requested during the last sublayout",(w=e.jV())==null?void 0:w.W9(),(E=e.jV())==null?void 0:E.mP(),{requestingSlot:N,requestingLayout:y})}}; GFP=function(e,N,y){return y.layoutId!==xz(e,N,y)?(YN("onSkipRequested for a PlayerBytes layout that is not currently active",e.W9(),e.mP()),!1):!0}; UE9=function(e){e.nE()===e.bv.length-1&&YN("Unexpected skip with target requested during the last sublayout")}; LQJ=function(e,N,y){return y.renderingContent===void 0&&y.layoutId!==xz(e,N,y)?(YN("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",e.W9(),e.mP(),{requestingSlot:N,requestingLayout:y}),!1):!0}; s4M=function(e,N,y,w){var E=A6(N.mP().clientMetadata,"metadata_type_ad_pod_skip_target");if(E&&E>0&&E0)){YN("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",e.slot,e.layout,{indexToPlay:N,layoutId:e.layout.layoutId});break a}e.PC=N;N=e.jV();if(e.nE()>0&&!e.HE()){var y=e.d7.get();y.N=!1;var w={};y.J&&y.videoId&&(w.cttAuthInfo={token:y.J,videoId:y.videoId});QQ("ad_to_ad",w)}e.Xl(N)}}; m5=function(e){qb.call(this,e.lX,e.Hk,e.xk,e.s2,e.zZ,e.d7,e.Tc,e.slot,e.layout,e.EQ,e.Mr,e.Jz,e.wP)}; Nz_=function(e){(e=e.jV())&&e.Ek()}; Hd=function(e){qb.call(this,e.lX,e.Hk,e.xk,e.s2,e.zZ,e.d7,e.Tc,e.slot,e.layout,e.EQ,e.Mr,e.Jz,e.wP);this.G9=void 0}; yyE=function(e,N){e.O8()&&!Sc(e.Uf.N)||e.callback.aJ(e.slot,e.layout,N)}; KL=function(e){return R_(e.wP.get(),"html5_ssap_pass_transition_reason")}; wwF=function(e,N,y){N.FF().currentState<2&&(y=kz(y,e.wP),N.fC(N.mP(),y));y=N.FF().J;e.XO(e.slot,N.mP(),y)}; Ei5=function(e,N){if(e.Uf.N.currentState<2){var y=kz(N,e.wP);y==="error"?e.callback.xz(e.slot,e.layout,new wX("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:N},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):QO(e.Mr,e.layout,y)}}; Wd=function(e,N,y){N.FF().currentState>=2||(N.fC(N.mP(),y),Sc(N.FF())&&(z5(e.Tc,e.slot,N.mP(),y),e.G9=void 0))}; Ay5=function(e,N){e.Uf.J===2&&N!==e.YI()&&YN("onClipEntered: unknown cpn",e.slot,e.layout,{cpn:N})}; Tz_=function(e,N){var y=e.jV();if(y){var w=y.mP().layoutId,E=e.nE()+1;e.O8()?Wd(e,y,N):y.fC(y.mP(),N);E>=0&&EE&&T.mX(Y,E-w);return Y}; FoE=function(e,N,y){var w=A6(N.clientMetadata,"metadata_type_sodar_extension_data");if(w)try{xi5(y,w)}catch(E){YN("Unexpected error when loading Sodar",e,N,{error:E})}}; Sq5=function(e,N,y,w,E,A,T){aV(e,N,new g.ME(y,new g.a8),w,E,T,!1,A)}; aV=function(e,N,y,w,E,A,T,p){T=T===void 0?!0:T;$6(y)&&Y6(E,0,null)&&(!V6(e,"impression")&&p&&p(),e.eR("impression"));V6(e,"impression")&&(g.FD(y,4)&&!g.FD(y,2)&&e.wz("pause"),lp(y,4)<0&&!(lp(y,2)<0)&&e.wz("resume"),g.FD(y,16)&&E>=.5&&e.wz("seek"),T&&g.FD(y,2)&&em(e,y.state,N,w,E,A))}; em=function(e,N,y,w,E,A,T,p){V6(e,"impression")&&(A?(A=E-w,A=A>=-1&&A<=2):A=Math.abs(w-E)<=1,Np(e,N,A?w:E,y,w,T,p&&A),A&&e.eR("complete"))}; Np=function(e,N,y,w,E,A,T){gF(e,y*1E3,T);E<=0||y<=0||(N==null?0:g.G(N,16))||(N==null?0:g.G(N,32))||(Y6(y,E*.25,w)&&(A&&!V6(e,"first_quartile")&&A("first"),e.eR("first_quartile")),Y6(y,E*.5,w)&&(A&&!V6(e,"midpoint")&&A("second"),e.eR("midpoint")),Y6(y,E*.75,w)&&(A&&!V6(e,"third_quartile")&&A("third"),e.eR("third_quartile")))}; oiE=function(e,N){V6(e,"impression")&&e.wz(N?"fullscreen":"end_fullscreen")}; bV3=function(e){V6(e,"impression")&&e.wz("clickthrough")}; hK_=function(e){e.wz("active_view_measurable")}; cy5=function(e){V6(e,"impression")&&!V6(e,"seek")&&e.wz("active_view_fully_viewable_audible_half_duration")}; kH_=function(e){V6(e,"impression")&&!V6(e,"seek")&&e.wz("active_view_viewable")}; Bzn=function(e){V6(e,"impression")&&!V6(e,"seek")&&e.wz("audio_audible")}; XwM=function(e){V6(e,"impression")&&!V6(e,"seek")&&e.wz("audio_measurable")}; PyP=function(e,N,y,w,E,A,T,p,C,r,Y,M){this.callback=e;this.slot=N;this.layout=y;this.xk=w;this.vk=E;this.zZ=A;this.hf=T;this.AM=p;this.If=C;this.wP=r;this.Pk=Y;this.Hk=M;this.Ex=!0;this.FS=this.Dg=null;this.adCpn=void 0;this.J=!1}; dY5=function(e,N,y){var w;sV(e.Pk.get(),"ads_qua","cpn."+A6(e.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((w=Mb(e.Hk.get(),2))==null?void 0:w.clientPlaybackNonce)+";qt."+N+";clr."+y)}; InP=function(e,N){var y,w;sV(e.Pk.get(),"ads_imp","cpn."+A6(e.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((y=Mb(e.Hk.get(),2))==null?void 0:y.clientPlaybackNonce)+";clr."+N+";skp."+!!g.m((w=A6(e.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:w.skipOrPreviewRenderer,yV))}; wy=function(e){return e.wP.get().C.X().experiments.gP("increase_completion_ping_firing_window")&&Mb(e.Hk.get(),1).Au}; E_=function(e){return{enterMs:A6(e.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:A6(e.clientMetadata,"metadata_type_layout_exit_ms")}}; Ac=function(e,N,y,w,E,A,T,p,C,r,Y,M,l,F){RV.call(this,e,N,y,w,E,T,p,C,r,M);this.hf=A;this.If=Y;this.AM=l;this.wP=F;this.FS=this.Dg=null}; vi_=function(e,N){var y;sV(e.Pk.get(),"ads_imp","acpn."+((y=Mb(e.Hk.get(),2))==null?void 0:y.clientPlaybackNonce)+";clr."+N)}; zKs=function(e,N,y){var w;sV(e.Pk.get(),"ads_qua","cpn."+A6(e.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((w=Mb(e.Hk.get(),2))==null?void 0:w.clientPlaybackNonce)+";qt."+N+";clr."+y)}; TK=function(e,N,y,w,E,A,T,p,C,r,Y,M,l,F,S,k,X,d,v,V,Z){this.Jz=e;this.EQ=N;this.Mr=y;this.Hk=w;this.xk=E;this.zZ=A;this.Pk=T;this.hf=p;this.p$=C;this.AM=r;this.If=Y;this.s2=M;this.oJ=l;this.d7=F;this.Vi=S;this.P9=k;this.DM=X;this.wP=d;this.J=v;this.context=V;this.Kw=Z}; Jc=function(e,N,y,w,E,A,T,p,C,r,Y,M,l,F,S,k,X,d){this.Jz=e;this.EQ=N;this.Mr=y;this.Pk=w;this.AM=E;this.If=A;this.s2=T;this.Hk=p;this.zZ=C;this.oJ=r;this.d7=Y;this.Vi=M;this.P9=l;this.DM=F;this.wP=S;this.xk=k;this.context=X;this.Kw=d}; iVJ=function(e,N,y,w){JZ.call(this,"survey-interstitial",e,N,y,w)}; pt=function(e,N,y,w,E){bv.call(this,y,e,N,w);this.Pk=E;e=A6(N.clientMetadata,"metadata_type_ad_placement_config");this.vk=new I0(N.tM,E,e,N.layoutId)}; Ct=function(e){return Math.round(e.width)+"x"+Math.round(e.height)}; $A=function(e,N,y){y=y===void 0?ry:y;y.widthe.width*e.height*.2)return{J0:3,U6:501,errorMessage:"ad("+Ct(y)+") to container("+Ct(e)+") ratio exceeds limit."};if(y.height>e.height/3-N)return{J0:3,U6:501,errorMessage:"ad("+Ct(y)+") covers container("+Ct(e)+") center."}}; DY_=function(e,N){var y=A6(e.clientMetadata,"metadata_type_ad_placement_config");return new I0(e.tM,N,y,e.layoutId)}; YA=function(e){return A6(e.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")}; Mp=function(e,N,y,w){JZ.call(this,"invideo-overlay",e,N,y,w);this.interactionLoggingClientData=w}; lR=function(e,N,y,w,E,A,T,p,C,r,Y,M){bv.call(this,A,e,N,E);this.Pk=y;this.j=T;this.zZ=p;this.P9=C;this.wP=r;this.Z=Y;this.L=M;this.vk=DY_(N,y)}; giM=function(){var e=["metadata_type_invideo_overlay_ad_renderer"];vt().forEach(function(N){e.push(N)}); return{xO:e,K$:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; Fv=function(e,N,y,w,E,A,T,p,C,r,Y,M,l){bv.call(this,A,e,N,E);this.Pk=y;this.j=T;this.U=p;this.zZ=C;this.P9=r;this.wP=Y;this.Z=M;this.L=l;this.vk=DY_(N,y)}; VZn=function(){for(var e=["metadata_type_invideo_overlay_ad_renderer"],N=g.c(vt()),y=N.next();!y.done;y=N.next())e.push(y.value);return{xO:e,K$:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; Sm=function(e){this.zZ=e;this.J=!1}; fn0=function(e,N,y){JZ.call(this,"survey",e,{},N,y)}; oX=function(e,N,y,w,E,A,T){bv.call(this,y,e,N,w);this.j=E;this.zZ=A;this.wP=T}; tZ5=function(e,N,y,w,E,A,T,p,C,r){this.q7=e;this.zZ=N;this.Pk=y;this.j=w;this.AM=E;this.N=A;this.K=T;this.P9=p;this.wP=C;this.J=r}; umM=function(e,N,y,w,E,A,T,p,C,r){this.q7=e;this.zZ=N;this.Pk=y;this.j=w;this.AM=E;this.N=A;this.K=T;this.P9=p;this.wP=C;this.J=r}; bR=function(e,N,y,w,E,A,T,p,C,r){yI.call(this,e,N,y,w,E,A,T,C);this.Hs=p;this.Hk=r}; qq5=function(){var e=QMM();e.xO.push("metadata_type_ad_info_ad_metadata");return e}; ZVn=function(e,N,y,w,E,A,T){this.q7=e;this.zZ=N;this.Pk=y;this.N=w;this.Hs=E;this.J=A;this.Hk=T}; xYs=function(e,N,y,w,E,A,T,p){this.q7=e;this.zZ=N;this.Pk=y;this.N=w;this.Hs=E;this.J=A;this.wP=T;this.Hk=p}; hc=function(e,N){this.slotId=N;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=e(this.triggerType)}; ch=function(e,N){this.adPodIndex=e;this.J=N.length;this.adBreakLengthSeconds=N.reduce(function(w,E){return w+E},0); var y=0;for(e+=1;e0}; wj=function(e){return!!(e.GZ9&&e.slot&&e.layout)}; E1=function(e){var N,y=(N=e.config)==null?void 0:N.adPlacementConfig;e=e.renderer;return!(!y||y.kind==null||!e)}; an3=function(e){if(!U_(e.adLayoutMetadata))return!1;e=e.renderingContent;return g.m(e,pd)||g.m(e,Cd)||g.m(e,TS)||g.m(e,JG)?!0:!1}; Ae=function(e){return e.playerVars!==void 0&&e.pings!==void 0&&e.externalVideoId!==void 0}; bS=function(e){if(!U_(e.adLayoutMetadata))return!1;e=e.renderingContent;var N=g.m(e,TR);return N?M2(N):(N=g.m(e,lS))?Ae(N):(N=g.m(e,F4))?N.playerVars!==void 0:(N=g.m(e,pd))?N.durationMilliseconds!==void 0:g.m(e,Sj)||g.m(e,oQ)?!0:!1}; M2=function(e){e=(e.sequentialLayouts||[]).map(function(N){return g.m(N,he)}); return e.length>0&&e.every(bS)}; ACM=function(e){if(!U_(e.adLayoutMetadata))return!1;if(g.m(e.renderingContent,edF)||g.m(e.renderingContent,Nv1))return!0;var N=g.m(e.renderingContent,cr);return g.m(e.renderingContent,kt)||g.m(N==null?void 0:N.sidePanel,yCH)||g.m(N==null?void 0:N.sidePanel,w8P)||g.m(N==null?void 0:N.sidePanel,ECE)?!0:!1}; Yl9=function(e){var N;(N=!e)||(N=e.adSlotMetadata,N=!((N==null?void 0:N.slotId)!==void 0&&(N==null?void 0:N.slotType)!==void 0));if(N||!(TvE(e)||e.slotEntryTrigger&&e.slotFulfillmentTriggers&&e.slotExpirationTriggers))return!1;var y;e=(y=e.fulfillmentContent)==null?void 0:y.fulfilledLayout;return(y=g.m(e,he))?bS(y):(y=g.m(e,Br))?ACM(y):(y=g.m(e,JCH))?an3(y):(y=g.m(e,p89))?LoF(y):(y=g.m(e,CI5))?U_(y.adLayoutMetadata)?g.m(y.renderingContent,Lt)?!0:!1:!1:(e=g.m(e,rCF))?U_(e.adLayoutMetadata)?g.m(e.renderingContent, $fn)?!0:!1:!1:!1}; TvE=function(e){var N;e=g.m((N=e.fulfillmentContent)==null?void 0:N.fulfilledLayout,Br);var y;return e&&((y=e.adLayoutMetadata)==null?void 0:y.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&e.layoutExitNormalTriggers===void 0}; MyE=function(e){var N;return(e==null?void 0:(N=e.adSlotMetadata)==null?void 0:N.slotType)==="SLOT_TYPE_IN_PLAYER"}; FXJ=function(e,N){var y;if((y=e.questions)==null||!y.length||!e.playbackCommands||(N===void 0||!N)&&e.questions.length!==1)return!1;e=g.c(e.questions);for(N=e.next();!N.done;N=e.next()){N=N.value;var w=y=void 0,E=((y=g.m(N,X4))==null?void 0:y.surveyAdQuestionCommon)||((w=g.m(N,Pr))==null?void 0:w.surveyAdQuestionCommon);if(!lK_(E))return!1}return!0}; Sl5=function(e){e=((e==null?void 0:e.playerOverlay)||{}).instreamSurveyAdRenderer;var N;if(e)if(e.playbackCommands&&e.questions&&e.questions.length===1){var y,w=((N=g.m(e.questions[0],X4))==null?void 0:N.surveyAdQuestionCommon)||((y=g.m(e.questions[0],Pr))==null?void 0:y.surveyAdQuestionCommon);N=lK_(w)}else N=!1;else N=!1;return N}; lK_=function(e){if(!e)return!1;e=g.m(e.instreamAdPlayerOverlay,dj);var N=g.m(e==null?void 0:e.skipOrPreviewRenderer,yV),y=g.m(e==null?void 0:e.adInfoRenderer,IQ);return(g.m(e==null?void 0:e.skipOrPreviewRenderer,vr)||N)&&y?!0:!1}; oCJ=function(e){return e.linearAds!=null&&U_(e.adLayoutMetadata)}; b2n=function(e){return e.linearAd!=null&&e.adVideoStart!=null}; hd1=function(e){if(isNaN(Number(e.timeoutSeconds))||!e.text||!e.ctaButton||!g.m(e.ctaButton,g.zR)||!e.brandImage)return!1;var N;return e.backgroundImage&&g.m(e.backgroundImage,iS)&&((N=g.m(e.backgroundImage,iS))==null?0:N.landscape)?!0:!1}; DC=function(e,N,y,w,E,A,T){g.x.call(this);this.wP=e;this.J=N;this.K=w;this.Hk=E;this.j=A;this.N=T}; BvM=function(e,N,y){var w,E=((w=y.adSlots)!=null?w:[]).map(function(p){return g.m(p,gj)}); if(y.V5)if(A6(N.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))lv(e.J.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},N.slotId); else{if(e.wP.get().C.X().T("h5_check_forecasting_renderer_for_throttled_midroll")){var A=y.aX.filter(function(p){var C;return((C=p.renderer)==null?void 0:C.clientForecastingAdRenderer)!=null}); A.length!==0?cCF(e.N,A,E,N.slotId,y.ssdaiAdsConfig):lv(e.J.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},N.slotId)}else lv(e.J.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},N.slotId); k$s(e.j,N)}else{var T;w={MY:Math.round(((A=A6(N.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:A.MY)||0),VH:(T=A6(N.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:T.VH};cCF(e.N,y.aX,E,N.slotId,y.ssdaiAdsConfig,w)}}; PIP=function(e,N,y,w,E,A,T){var p=Mb(e.Hk.get(),1);lv(e.J.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return X8J(e.K.get(),y,w,E,p.clientPlaybackNonce,p.LO,p.daiEnabled,p,A,T)},N)}; IKJ=function(e,N,y,w,E,A,T){N=dfJ(N,A,Number(w.prefetchMilliseconds)||0,T);e=N instanceof U?N:Vw(e,w,E,N,y);return e instanceof U?e:[e]}; vCF=function(e,N,y,w,E){var A=F1(e.N.get(),"SLOT_TYPE_AD_BREAK_REQUEST");w=[new qT({getAdBreakUrl:w.getAdBreakUrl,MY:0,VH:0}),new Lx(!0)];e=N.pauseDurationMs?N.lactThresholdMs?{slotId:A,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new Kt(e.J,A),slotFulfillmentTriggers:[new niM(e.J)],slotExpirationTriggers:[new Zp(e.J,E),new QV(e.J,A)],Xh:"core",clientMetadata:new EG(w),adSlotLoggingData:y}:new U("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new U("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return e instanceof U?e:[e]}; zdM=function(e){var N,y;return((N=e.renderer)==null?void 0:(y=N.adBreakServiceRenderer)==null?void 0:y.getAdBreakUrl)!==void 0}; fN=function(e,N,y){if(e.beforeContentVideoIdStartedTrigger)e=e.beforeContentVideoIdStartedTrigger?new kA(yk,N,e.id):new U("Not able to create BeforeContentVideoIdStartedTrigger");else{if(e.layoutIdExitedTrigger){var w;N=(w=e.layoutIdExitedTrigger)!=null&&w.triggeringLayoutId?new vh(yk,e.layoutIdExitedTrigger.triggeringLayoutId,e.id):new U("Not able to create LayoutIdExitedTrigger")}else{if(e.layoutExitedForReasonTrigger){var E,A;((E=e.layoutExitedForReasonTrigger)==null?0:E.triggeringLayoutId)&&((A= e.layoutExitedForReasonTrigger)==null?0:A.layoutExitReason)?(N=Qg3(e.layoutExitedForReasonTrigger.layoutExitReason),e=N instanceof U?N:new IX(yk,e.layoutExitedForReasonTrigger.triggeringLayoutId,[N],e.id)):e=new U("Not able to create LayoutIdExitedForReasonTrigger")}else{if(e.onLayoutSelfExitRequestedTrigger){var T;N=(T=e.onLayoutSelfExitRequestedTrigger)!=null&&T.triggeringLayoutId?new qp(yk,e.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,e.id):new U("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(e.onNewPlaybackAfterContentVideoIdTrigger)e= e.onNewPlaybackAfterContentVideoIdTrigger?new Zp(yk,N,e.id):new U("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(e.skipRequestedTrigger){var p;N=(p=e.skipRequestedTrigger)!=null&&p.triggeringLayoutId?new jm(yk,e.skipRequestedTrigger.triggeringLayoutId,e.id):new U("Not able to create SkipRequestedTrigger")}else if(e.slotIdEnteredTrigger){var C;N=(C=e.slotIdEnteredTrigger)!=null&&C.triggeringSlotId?new nt(yk,e.slotIdEnteredTrigger.triggeringSlotId,e.id):new U("Not able to create SlotIdEnteredTrigger")}else if(e.slotIdExitedTrigger){var r; N=(r=e.slotIdExitedTrigger)!=null&&r.triggeringSlotId?new QV(yk,e.slotIdExitedTrigger.triggeringSlotId,e.id):new U("Not able to create SkipRequestedTrigger")}else if(e.surveySubmittedTrigger){var Y;N=(Y=e.surveySubmittedTrigger)!=null&&Y.triggeringLayoutId?new O_(yk,e.surveySubmittedTrigger.triggeringLayoutId,e.id):new U("Not able to create SurveySubmittedTrigger")}else{if(e.mediaResumedTrigger)e=e.mediaResumedTrigger&&e.id?new mY9(e.id):new U("Not able to create MediaResumedTrigger");else{if(e.closeRequestedTrigger){var M; N=(M=e.closeRequestedTrigger)!=null&&M.triggeringLayoutId?new Bh(yk,e.closeRequestedTrigger.triggeringLayoutId,e.id):new U("Not able to create CloseRequestedTrigger")}else if(e.slotIdScheduledTrigger){var l;N=(l=e.slotIdScheduledTrigger)!=null&&l.triggeringSlotId?new Kt(yk,e.slotIdScheduledTrigger.triggeringSlotId,e.id):new U("Not able to create SlotIdScheduledTrigger")}else{if(e.mediaTimeRangeTrigger){var F;w=Number((F=e.mediaTimeRangeTrigger)==null?void 0:F.offsetStartMilliseconds);var S;T=Number((S= e.mediaTimeRangeTrigger)==null?void 0:S.offsetEndMilliseconds);isFinite(w)&&isFinite(T)?(S=T,S===-1&&(S=y),y=w>S?new U("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:w,offsetEndMs:S},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",S===y&&w-500<=S):new de(w,S),e=y instanceof U?y:new VV(yk,N,y,!1,e.id)):e=new U("Not able to create MediaTimeRangeTrigger")}else if(e.contentVideoIdEndedTrigger)e=e.contentVideoIdEndedTrigger?new Xv(yk,N,!1,e.id):new U("Not able to create ContentVideoIdEndedTrigger"); else{if(e.layoutIdEnteredTrigger){var k;N=(k=e.layoutIdEnteredTrigger)!=null&&k.triggeringLayoutId?new dy(yk,e.layoutIdEnteredTrigger.triggeringLayoutId,e.id):new U("Not able to create LayoutIdEnteredTrigger")}else if(e.timeRelativeToLayoutEnterTrigger){var X;N=(X=e.timeRelativeToLayoutEnterTrigger)!=null&&X.triggeringLayoutId?new RX(yk,Number(e.timeRelativeToLayoutEnterTrigger.durationMs),e.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,e.id):new U("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(e.onDifferentLayoutIdEnteredTrigger){var d; N=(d=e.onDifferentLayoutIdEnteredTrigger)!=null&&d.triggeringLayoutId&&e.onDifferentLayoutIdEnteredTrigger.slotType&&e.onDifferentLayoutIdEnteredTrigger.layoutType?new tc(yk,e.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,e.onDifferentLayoutIdEnteredTrigger.slotType,e.onDifferentLayoutIdEnteredTrigger.layoutType,e.id):new U("Not able to create CloseRequestedTrigger")}else{if(e.liveStreamBreakStartedTrigger)e=e.liveStreamBreakStartedTrigger&&e.id?new gy(yk,e.id):new U("Not able to create LiveStreamBreakStartedTrigger"); else if(e.liveStreamBreakEndedTrigger)e=e.liveStreamBreakEndedTrigger&&e.id?new zK(yk,e.id):new U("Not able to create LiveStreamBreakEndedTrigger");else{if(e.liveStreamBreakScheduledDurationMatchedTrigger){var v;N=(v=e.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&v.breakDurationMs?new iR(Number(e.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,e.id):new U("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(e.liveStreamBreakScheduledDurationNotMatchedTrigger){var V; N=(V=e.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&V.breakDurationMs?new Dp(Number(e.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,e.id):new U("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(e.newSlotScheduledWithBreakDurationTrigger){var Z;N=(Z=e.newSlotScheduledWithBreakDurationTrigger)!=null&&Z.breakDurationMs?new ft(Number(e.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,e.id):new U("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else N= e.prefetchCacheExpiredTrigger?new xA(yk,e.id):new U("Not able to convert an AdsControlflowTrigger.");e=N}N=e}e=N}N=e}e=N}N=e}e=N}N=e}e=N}N=e}e=N}return e}; te=function(e,N){N.J>=2&&(e.slot_pos=N.adPodIndex);e.autoplay="1"}; DfF=function(e,N,y,w,E,A,T,p){return N===null?new U("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:N,ActionCompanionAdRenderer:w}):[i2H(e,N,T,A,function(C){var r=C.slotId;C=p(C);var Y=w.adLayoutLoggingData,M=new EG([new ZX(w),new Lj(E)]);r=G5(y.N.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",r);var l={layoutId:r,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Xh:"core"};return{layoutId:r,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",tM:new Map, layoutExitNormalTriggers:[new Zp(y.J,T)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],E2:[],Xh:"core",clientMetadata:M,o9:C(l),adLayoutLoggingData:Y}})]}; gCn=function(e,N,y,w,E,A,T,p){return N===null?new U("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:N,TopBannerImageTextIconButtonedLayoutViewModel:w}):[i2H(e,N,T,A,function(C){var r=C.slotId;C=p(C);var Y=w.adLayoutLoggingData,M=new EG([new xd(w),new Lj(E)]);r=G5(y.N.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",r);var l={layoutId:r,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Xh:"core"};return{layoutId:r,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", tM:new Map,layoutExitNormalTriggers:[new Zp(y.J,T)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],E2:[],Xh:"core",clientMetadata:M,o9:C(l),adLayoutLoggingData:Y}})]}; uIH=function(e,N,y,w,E,A){if(!A)for(N=g.c(N),A=N.next();!A.done;A=N.next())A=A.value,uS(e,A.renderer,A.config.adPlacementConfig.kind);e=Array.from(e.values()).filter(function(Y){return VyM(Y)}); N=[];A=g.c(e);for(var T=A.next(),p={};!T.done;p={H5:void 0},T=A.next()){p.H5=T.value;T=g.c(p.H5.sZ);for(var C=T.next(),r={};!C.done;r={GN:void 0},C=T.next())r.GN=C.value,C=function(Y,M){return function(l){return Y.GN.Qc(l,M.H5.instreamVideoAdRenderer.elementId,Y.GN.Dz)}}(r,p),r.GN.isContentVideoCompanion?N.push(fK3(y,w,E,p.H5.instreamVideoAdRenderer.elementId,r.GN.associatedCompositePlayerBytesLayoutId,r.GN.adSlotLoggingData,C)):e.length>1?N.push(tyJ(y,w,E,p.H5.instreamVideoAdRenderer.elementId,r.GN.adSlotLoggingData, function(Y,M){return function(l){return Y.GN.Qc(l,M.H5.instreamVideoAdRenderer.elementId,Y.GN.Dz,Y.GN.associatedCompositePlayerBytesLayoutId)}}(r,p))):N.push(tyJ(y,w,E,p.H5.instreamVideoAdRenderer.elementId,r.GN.adSlotLoggingData,C))}return N}; uS=function(e,N,y){if(N=qlH(N)){N=g.c(N);for(var w=N.next();!w.done;w=N.next())if((w=w.value)&&w.externalVideoId){var E=q2(e,w.externalVideoId);E.instreamVideoAdRenderer||(E.instreamVideoAdRenderer=w,E.b$=y)}else YN("InstreamVideoAdRenderer without externalVideoId")}}; qlH=function(e){var N=[],y=e.sandwichedLinearAdRenderer&&e.sandwichedLinearAdRenderer.linearAd&&g.m(e.sandwichedLinearAdRenderer.linearAd,lS);if(y)return N.push(y),N;if(e.instreamVideoAdRenderer)return N.push(e.instreamVideoAdRenderer),N;if(e.linearAdSequenceRenderer&&e.linearAdSequenceRenderer.linearAds){e=g.c(e.linearAdSequenceRenderer.linearAds);for(y=e.next();!y.done;y=e.next())y=y.value,g.m(y,lS)&&N.push(g.m(y,lS));return N}return null}; VyM=function(e){if(e.instreamVideoAdRenderer===void 0)return YN("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var N=g.c(e.sZ),y=N.next();!y.done;y=N.next()){y=y.value;if(y.Qc===void 0)return!1;if(y.Dz===void 0)return YN("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(e.b$===void 0||y.H8===void 0||e.b$!==y.H8&&y.H8!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(e.instreamVideoAdRenderer.elementId===void 0)return YN("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:e.b$,"matching APSR kind":y.H8}),!1}return!0}; q2=function(e,N){e.has(N)||e.set(N,{instreamVideoAdRenderer:void 0,b$:void 0,adVideoId:N,sZ:[]});return e.get(N)}; ZC=function(e,N,y,w,E,A,T,p,C){E?q2(e,E).sZ.push({jpW:N,H8:y,isContentVideoCompanion:w,Dz:T,associatedCompositePlayerBytesLayoutId:A,adSlotLoggingData:p,Qc:C}):YN("Companion AdPlacementSupportedRenderer without adVideoId")}; xt=function(e){var N=0;e=g.c(e.questions);for(var y=e.next();!y.done;y=e.next())if(y=y.value,y=g.m(y,X4)||g.m(y,Pr)){var w=void 0;N+=((w=y.surveyAdQuestionCommon)==null?void 0:w.durationMilliseconds)||0}return N}; jj=function(e){var N,y,w,E,A=((y=g.m((N=e.questions)==null?void 0:N[0],X4))==null?void 0:y.surveyAdQuestionCommon)||((E=g.m((w=e.questions)==null?void 0:w[0],Pr))==null?void 0:E.surveyAdQuestionCommon),T;N=[].concat(g.B(((T=e.playbackCommands)==null?void 0:T.instreamAdCompleteCommands)||[]),g.B((A==null?void 0:A.timeoutCommands)||[]));var p,C,r,Y,M,l,F,S,k,X,d,v,V,Z,n,R,O,E9,Jn,eM;return{impressionCommands:(p=e.playbackCommands)==null?void 0:p.impressionCommands,errorCommands:(C=e.playbackCommands)== null?void 0:C.errorCommands,muteCommands:(r=e.playbackCommands)==null?void 0:r.muteCommands,unmuteCommands:(Y=e.playbackCommands)==null?void 0:Y.unmuteCommands,pauseCommands:(M=e.playbackCommands)==null?void 0:M.pauseCommands,rewindCommands:(l=e.playbackCommands)==null?void 0:l.rewindCommands,resumeCommands:(F=e.playbackCommands)==null?void 0:F.resumeCommands,skipCommands:(S=e.playbackCommands)==null?void 0:S.skipCommands,progressCommands:(k=e.playbackCommands)==null?void 0:k.progressCommands,ceZ:(X= e.playbackCommands)==null?void 0:X.clickthroughCommands,fullscreenCommands:(d=e.playbackCommands)==null?void 0:d.fullscreenCommands,activeViewViewableCommands:(v=e.playbackCommands)==null?void 0:v.activeViewViewableCommands,activeViewMeasurableCommands:(V=e.playbackCommands)==null?void 0:V.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(Z=e.playbackCommands)==null?void 0:Z.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(n=e.playbackCommands)== null?void 0:(R=n.activeViewTracking)==null?void 0:R.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(O=e.playbackCommands)==null?void 0:(E9=O.activeViewTracking)==null?void 0:E9.activeViewAudioMeasurableCommands,endFullscreenCommands:(Jn=e.playbackCommands)==null?void 0:Jn.endFullscreenCommands,abandonCommands:(eM=e.playbackCommands)==null?void 0:eM.abandonCommands,completeCommands:N}}; xfF=function(e,N,y,w,E,A,T){return function(p,C){return Z29(e,C.slotId,p,A,function(r,Y){var M=C.layoutId;r=T(r);return nN(N,M,Y,E,r,"LAYOUT_TYPE_SURVEY",[new MT(y),w],y.adLayoutLoggingData)})}}; QR5=function(e,N,y,w,E,A,T){if(!jR5(e))return new U("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:e});var p=e.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[nC9(A,N,y,w,function(C){var r=C.slotId;C=T(C);r=G5(E.N.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",r);var Y={layoutId:r,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Xh:"core"},M=new vh(E.J,w);return{layoutId:r,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",tM:new Map,layoutExitNormalTriggers:[M], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],E2:[],Xh:"core",clientMetadata:new EG([new ll(p)]),o9:C(Y)}})]}; jR5=function(e){e=g.m(e==null?void 0:e.additionalPlayerOverlay,mfF);if(!e)return!1;var N=e.slidingMessages;return e.title&&N&&N.length!==0?!0:!1}; KX5=function(e,N,y,w,E){var A;if((A=e.playerOverlay)==null||!A.instreamSurveyAdRenderer)return function(){return[]}; if(!Sl5(e))return function(){return new U("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:e})}; var T=e.playerOverlay.instreamSurveyAdRenderer,p=xt(T);return p<=0?function(){return new U("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:T})}:function(C,r){var Y=H2_(C,y,w,function(M){var l=M.slotId; M=r(M);var F=jj(T);l=G5(E.N.get(),"LAYOUT_TYPE_SURVEY",l);var S={layoutId:l,layoutType:"LAYOUT_TYPE_SURVEY",Xh:"core"},k=new vh(E.J,w),X=new jm(E.J,l),d=new O_(E.J,l),v=new OVE(E.J);return{layoutId:l,layoutType:"LAYOUT_TYPE_SURVEY",tM:new Map,layoutExitNormalTriggers:[k,v],layoutExitSkipTriggers:[X],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[d],E2:[],Xh:"core",clientMetadata:new EG([new Yq(T),new Lj(N),new jR(p/1E3),new Hp(F)]),o9:M(S),adLayoutLoggingData:T.adLayoutLoggingData}}); C=QR5(e,y,Y.slotId,w,E,C,r);return C instanceof U?C:[Y].concat(g.B(C))}}; sRM=function(e,N,y,w,E,A,T){T=T===void 0?!1:T;var p=[];try{var C=[];if(y.renderer.linearAdSequenceRenderer)var r=function(k){k=WXH(k.slotId,y,N,E(k),w,A,T);C=k.iN9;return k.h5}; else if(y.renderer.instreamVideoAdRenderer)r=function(k){var X=k.slotId;k=E(k);var d=T,v=y.config.adPlacementConfig,V=O2M(v),Z=V.Db,n=V.t6;V=y.renderer.instreamVideoAdRenderer;var R;if(V==null?0:(R=V.playerOverlay)==null?0:R.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var O=Qw(V,d);R=Math.min(Z+O.videoLengthSeconds*1E3,n);d=new ch(0,[O.videoLengthSeconds]);n=O.videoLengthSeconds;var E9=O.playerVars,Jn=O.instreamAdPlayerOverlayRenderer,eM=O.playerOverlayLayoutRenderer, H=O.adVideoId,a=Rds(y),h=O.tM;O=O.Gn;var K=V==null?void 0:V.adLayoutLoggingData;V=V==null?void 0:V.sodarExtensionData;X=G5(N.N.get(),"LAYOUT_TYPE_MEDIA",X);var aP={layoutId:X,layoutType:"LAYOUT_TYPE_MEDIA",Xh:"core"};return{layoutId:X,layoutType:"LAYOUT_TYPE_MEDIA",tM:h,layoutExitNormalTriggers:[new zK(N.J)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],E2:[],Xh:"core",clientMetadata:new EG([new wK(w),new Pp(n),new dK(E9),new zQ(Z),new il(R),Jn&&new EP(Jn), eM&&new Aw(eM),new Lj(v),new yS(H),new sR(d),new tw(a),V&&new vp(V),new cp({current:null}),new gK({}),new OP(O)].filter(G$0)),o9:k(aP),adLayoutLoggingData:K}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var Y=Uf5(e,w,y.adSlotLoggingData,r);p.push(Y);for(var M=g.c(C),l=M.next();!l.done;l=M.next()){var F=l.value,S=F(e,E);if(S instanceof U)return S;p.push.apply(p,g.B(S))}}catch(k){return new U(k,{errorMessage:k.message,AdPlacementRenderer:y,numberOfSurveyRenderers:LX_(y)})}return p}; LX_=function(e){e=(e.renderer.linearAdSequenceRenderer||{}).linearAds;return e!=null&&e.length?e.filter(function(N){var y,w;return((y=g.m(N,lS))==null?void 0:(w=y.playerOverlay)==null?void 0:w.instreamSurveyAdRenderer)!=null}).length:0}; WXH=function(e,N,y,w,E,A,T){var p=N.config.adPlacementConfig,C=O2M(p),r=C.Db,Y=C.t6;C=(N.renderer.linearAdSequenceRenderer||{}).linearAds;if(C==null||!C.length)throw new TypeError("Expected linear ads");var M=[],l={St:r,xo:0,lWh:M};C=C.map(function(S){return aKM(e,S,l,y,w,p,E,Y,T)}).map(function(S,k){k=new ch(k,M); return S(k)}); var F=C.map(function(S){return S.l2}); return{h5:e49(y,e,r,F,p,Rds(N),w,Y,A),iN9:C.map(function(S){return S.xSs})}}; aKM=function(e,N,y,w,E,A,T,p,C){var r=Qw(g.m(N,lS),C),Y=y.St,M=y.xo,l=Math.min(Y+r.videoLengthSeconds*1E3,p);y.St=l;y.xo++;y.lWh.push(r.videoLengthSeconds);var F,S,k=(F=g.m(N,lS))==null?void 0:(S=F.playerOverlay)==null?void 0:S.instreamSurveyAdRenderer;if(r.adVideoId==="nPpU29QrbiU"&&k==null)throw new TypeError("Survey slate media has no survey overlay");return function(X){te(r.playerVars,X);var d,v,V=r.videoLengthSeconds,Z=r.playerVars,n=r.tM,R=r.Gn,O=r.instreamAdPlayerOverlayRenderer,E9=r.playerOverlayLayoutRenderer, Jn=r.adVideoId,eM=(d=g.m(N,lS))==null?void 0:d.adLayoutLoggingData;d=(v=g.m(N,lS))==null?void 0:v.sodarExtensionData;v=G5(w.N.get(),"LAYOUT_TYPE_MEDIA",e);var H={layoutId:v,layoutType:"LAYOUT_TYPE_MEDIA",Xh:"adapter"};X={layoutId:v,layoutType:"LAYOUT_TYPE_MEDIA",tM:n,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],E2:[],Xh:"adapter",clientMetadata:new EG([new wK(T),new Pp(V),new dK(Z),new zQ(Y),new il(l),new Db(M),new cp({current:null}), O&&new EP(O),E9&&new Aw(E9),new Lj(A),new yS(Jn),new sR(X),d&&new vp(d),k&&new Wp(k),new gK({}),new OP(R)].filter(G$0)),o9:E(H),adLayoutLoggingData:eM};V=KX5(g.m(N,lS),A,T,X.layoutId,w);return{l2:X,xSs:V}}}; Qw=function(e,N){if(!e)throw new TypeError("Expected instream video ad renderer");if(!e.playerVars)throw new TypeError("Expected player vars in url encoded string");var y=AE(e.playerVars),w=Number(y.length_seconds);if(isNaN(w))throw new TypeError("Expected valid length seconds in player vars");var E=Number(e.trimmedMaxNonSkippableAdDurationMs);w=isNaN(E)?w:Math.min(w,E/1E3);E=e.playerOverlay||{};E=E.instreamAdPlayerOverlayRenderer===void 0?null:E.instreamAdPlayerOverlayRenderer;var A=e.playerOverlay|| {};A=A.playerOverlayLayoutRenderer===void 0?null:A.playerOverlayLayoutRenderer;var T=y.video_id;T||(T=(T=e.externalVideoId)?T:void 0);if(!T)throw new TypeError("Expected valid video id in IVAR");if(N&&w===0){var p;N=(p=NLM[T])!=null?p:w}else N=w;return{playerVars:y,videoLengthSeconds:N,instreamAdPlayerOverlayRenderer:E,playerOverlayLayoutRenderer:A,adVideoId:T,tM:e.pings?dF(e.pings):new Map,Gn:Pt(e.pings)}}; Rds=function(e){e=Number(e.driftRecoveryMs);return isNaN(e)||e<=0?null:e}; O2M=function(e){var N=e.adTimeOffset||{};e=N.offsetEndMilliseconds;N=Number(N.offsetStartMilliseconds);if(isNaN(N))throw new TypeError("Expected valid start offset");e=Number(e);if(isNaN(e))throw new TypeError("Expected valid end offset");return{Db:N,t6:e}}; y5M=function(e){var N,y=(N=A6(e.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:N.current;if(!y)return null;N=A6(e.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var w=e.layoutId,E=A6(e.clientMetadata,"metadata_type_content_cpn"),A=A6(e.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),T=A6(e.clientMetadata,"metadata_type_player_underlay_renderer"),p=A6(e.clientMetadata,"metadata_type_ad_placement_config"),C=A6(e.clientMetadata,"metadata_type_video_length_seconds"); var r=eK(e.clientMetadata,"metadata_type_layout_enter_ms")&&eK(e.clientMetadata,"metadata_type_layout_exit_ms")?(A6(e.clientMetadata,"metadata_type_layout_exit_ms")-A6(e.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{rL:w,contentCpn:E,cT:y,FO:N,instreamAdPlayerOverlayRenderer:A,instreamAdPlayerUnderlayRenderer:T,adPlacementConfig:p,videoLengthSeconds:C,wF:r,inPlayerLayoutId:A6(e.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:A6(e.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; A5E=function(e,N,y,w,E,A,T,p,C,r,Y,M,l,F,S){w=F1(w,"SLOT_TYPE_PLAYER_BYTES");e=wMF(E,e,T,y,w,C,r);if(e instanceof U)return e;var k;r=(k=A6(e.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:k.layoutId;if(!r)return new U("Invalid adNotify layout");N=Edn(r,E,A,y,p,N,C,Y,M,l,F,S,T);return N instanceof U?N:[e].concat(g.B(N))}; Edn=function(e,N,y,w,E,A,T,p,C,r,Y,M,l){y=TL9(N,y,w,A,T,p,C,r,Y,M,l);if(y instanceof U)return y;e=J5s(N,e,T,E,y);return e instanceof U?e:[].concat(g.B(e.n$),[e.iz])}; CZH=function(e,N,y,w,E,A,T,p,C,r,Y,M,l,F){N=TL9(e,N,y,E,A,p,C,r,Y,M,l,F);if(N instanceof U)return N;e=pME(e,y,A,T,w,p.Cx,N);return e instanceof U?e:e.n$.concat(e.iz)}; TL9=function(e,N,y,w,E,A,T,p,C,r,Y,M){var l=m9(w,y,r);return l instanceof wX?new U(l):r.C.X().experiments.gP("html5_refactor_in_player_slot_generation")?function(F){var S=new ch(0,[l.Je]);F=r5E(N,l.layoutId,l.XF,y,Hr(l.playerVars,l.uu,A,C,S),l.Je,E,S,T(F),p.get(l.XF.externalVideoId),M);S=[];if(l.XF.playerOverlay.instreamAdPlayerOverlayRenderer){var k=y5M(F);if(!k)return YN("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,F),{layout:F,n$:[]}; S=[$D1(e,k.contentCpn,k.rL,function(d){return KN(N,d.slotId,"core",k,$2(Y,d))},k.inPlayerSlotId)].concat(g.B(S)); if(k.instreamAdPlayerUnderlayRenderer&&Wr(r)){var X=k.instreamAdPlayerUnderlayRenderer;S=[YR9(e,k.contentCpn,k.rL,function(d){return MA5(N,d.slotId,X,k.adPlacementConfig,k.rL,$2(Y,d))})].concat(g.B(S))}}return{layout:F, n$:S}}:function(F){var S=new ch(0,[l.Je]); return{layout:r5E(N,l.layoutId,l.XF,y,Hr(l.playerVars,l.uu,A,C,S),l.Je,E,S,T(F),p.get(l.XF.externalVideoId),M),n$:[]}}}; m9=function(e,N,y){if(!e.playerVars)return new wX("No playerVars available in InstreamVideoAdRenderer.");var w,E;if(e.elementId==null||e.playerVars==null||e.playerOverlay==null||((w=e.playerOverlay)==null?void 0:w.instreamAdPlayerOverlayRenderer)==null&&((E=e.playerOverlay)==null?void 0:E.playerOverlayLayoutRenderer)==null||e.pings==null||e.externalVideoId==null)return new wX("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:e});w=AE(e.playerVars);E=Number(w.length_seconds); isNaN(E)&&(E=0,YN("Expected valid length seconds in player vars but got NaN"));if(y.HE(N.kind==="AD_PLACEMENT_KIND_START")){if(e.layoutId===void 0)return new wX("Expected server generated layout ID in instreamVideoAdRenderer");N=e.layoutId}else N=e.elementId;return{layoutId:N,XF:e,playerVars:w,uu:e.playerVars,Je:E}}; Hr=function(e,N,y,w,E){e.iv_load_policy=w;N=AE(N);if(N.cta_conversion_urls)try{e.cta_conversion_urls=JSON.parse(N.cta_conversion_urls)}catch(A){YN(A)}y.S_&&(e.ctrl=y.S_);y.N2&&(e.ytr=y.N2);y.Ez&&(e.ytrcc=y.Ez);y.isMdxPlayback&&(e.mdx="1");e.vvt&&(e.vss_credentials_token=e.vvt,y.zN&&(e.vss_credentials_token_type=y.zN),y.mdxEnvironment&&(e.mdx_environment=y.mdxEnvironment));te(e,E);return e}; lX_=function(e){var N=new Map;e=g.c(e);for(var y=e.next();!y.done;y=e.next())(y=y.value.renderer.remoteSlotsRenderer)&&y.hostElementId&&N.set(y.hostElementId,y);return N}; O1=function(e){return e.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; Fbs=function(e){return e!=null}; kj5=function(e,N,y,w,E,A,T,p,C,r,Y,M,l,F){for(var S=[],k=g.c(e),X=k.next();!X.done;X=k.next())if(X=X.value,!TvE(X)&&!MyE(X)){var d=O1(X)&&!!X.slotEntryTrigger.beforeContentVideoIdStartedTrigger,v=C.HE(d),V=SRM(X,r,w,y.LO,v);if(V instanceof U)return V;var Z=void 0,n={slotId:X.adSlotMetadata.slotId,slotType:X.adSlotMetadata.slotType,slotPhysicalPosition:(Z=X.adSlotMetadata.slotPhysicalPosition)!=null?Z:1,Xh:"core",slotEntryTrigger:V.slotEntryTrigger,slotFulfillmentTriggers:V.slotFulfillmentTriggers, slotExpirationTriggers:V.slotExpirationTriggers},R=g.m(X.fulfillmentContent.fulfilledLayout,he);if(R){if(!bS(R))return new U("Invalid PlayerBytesAdLayoutRenderer");Z=M&&!(O1(X)&&X.slotEntryTrigger.beforeContentVideoIdStartedTrigger);V=V.slotFulfillmentTriggers.some(function(O){return O instanceof iR}); v=Z?od5(n,X.adSlotMetadata.triggerEvent,R,y,w,A,r,e,v,l,V,F):bj_(n,X.adSlotMetadata.triggerEvent,R,N,y,w,E,A,T,p,C,r,e,Y,v,X.adSlotMetadata.triggeringSourceLayoutId);if(v instanceof U)return v;V=[];O1(X)&&V.push(new sP({dD:O1(X)&&!!X.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));Z&&V.push(new gK({}));y.Cx&&V.push(new Kx({}));V.push(new UP(d));X=Object.assign({},n,{clientMetadata:new EG(V),fulfilledLayout:v.layout,adSlotLoggingData:X.adSlotMetadata.adSlotLoggingData});S.push.apply(S,g.B(v.n$)); S.push(X)}else if(d=g.m(X.fulfillmentContent.fulfilledLayout,Br)){if(!ACM(d))return new U("Invalid PlayerUnderlayAdLayoutRenderer");d=h40(d,w,y.LO,A,n,X.adSlotMetadata.triggerEvent,X.adSlotMetadata.triggeringSourceLayoutId);if(d instanceof U)return d;X=Object.assign({},n,{clientMetadata:new EG([]),fulfilledLayout:d,adSlotLoggingData:X.adSlotMetadata.adSlotLoggingData});S.push(X)}else if(d=g.m(X.fulfillmentContent.fulfilledLayout,p89)){if(!LoF(d))return new U("Invalid AboveFeedAdLayoutRenderer");d= c55(d,w,y.LO,A,n,X.adSlotMetadata.triggerEvent,X.adSlotMetadata.triggeringSourceLayoutId);if(d instanceof U)return d;X=Object.assign({},n,{clientMetadata:new EG([]),fulfilledLayout:d,adSlotLoggingData:X.adSlotMetadata.adSlotLoggingData});S.push(X)}else if(d=g.m(X.fulfillmentContent.fulfilledLayout,CI5)){if(!U_(d.adLayoutMetadata)||!g.m(d.renderingContent,Lt))return new U("Invalid BelowPlayerAdLayoutRenderer");d=c55(d,w,y.LO,A,n,X.adSlotMetadata.triggerEvent,X.adSlotMetadata.triggeringSourceLayoutId); if(d instanceof U)return d;X=Object.assign({},n,{clientMetadata:new EG([]),fulfilledLayout:d,adSlotLoggingData:X.adSlotMetadata.adSlotLoggingData});S.push(X)}else return new U("Unable to retrieve a client slot ["+n.slotType+"] from a given AdSlotRenderer")}return S}; c55=function(e,N,y,w,E,A,T){var p={layoutId:e.adLayoutMetadata.layoutId,layoutType:e.adLayoutMetadata.layoutType,Xh:"core"};N=RQ(e,N,y);if(N instanceof U)return N;y=[];y.push(new Lj(GR(A)));A==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&T!==void 0&&y.push(new FP(T));return Object.assign({},p,{renderingContent:e.renderingContent,tM:new Map([["impression",BL5(e)]])},N,{o9:$2(w,E)(p),clientMetadata:new EG(y),adLayoutLoggingData:e.adLayoutMetadata.adLayoutLoggingData})}; h40=function(e,N,y,w,E,A,T){if(e.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(T=g.m(e.renderingContent,cr))if(T=g.m(T.sidePanel,w8P)){var p={layoutId:e.adLayoutMetadata.layoutId,layoutType:e.adLayoutMetadata.layoutType,Xh:"core"};N=RQ(e,N,y);e=N instanceof U?N:Object.assign({},p,{renderingContent:e.renderingContent,tM:new Map([["impression",T.impressionPings||[]],["resume",T.resumePings||[]]])},N,{o9:$2(w,E)(p),clientMetadata:new EG([new Lj(GR(A))]),adLayoutLoggingData:e.adLayoutMetadata.adLayoutLoggingData})}else e= new U("DismissablePanelTextPortraitImageRenderer is missing");else e=new U("SqueezebackPlayerSidePanelRenderer is missing");else e.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.m(e.renderingContent,edF)?(T={layoutId:e.adLayoutMetadata.layoutId,layoutType:e.adLayoutMetadata.layoutType,Xh:"core"},N=RQ(e,N,y),e=N instanceof U?N:Object.assign({},T,{renderingContent:e.renderingContent,tM:new Map},N,{o9:$2(w,E)(T),clientMetadata:new EG([new Lj(GR(A))]),adLayoutLoggingData:e.adLayoutMetadata.adLayoutLoggingData})): e=new U("CounterfactualRenderer is missing"):e.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?e=new U("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):e.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?e=new U("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):e.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.m(e.renderingContent,kt)?(A={layoutId:e.adLayoutMetadata.layoutId,layoutType:e.adLayoutMetadata.layoutType, Xh:"core"},N=RQ(e,N,y),e=N instanceof U?N:T?Object.assign({},A,{renderingContent:e.renderingContent,tM:new Map},N,{o9:$2(w,E)(A),clientMetadata:new EG([new FP(T)]),adLayoutLoggingData:e.adLayoutMetadata.adLayoutLoggingData}):new U("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):e=new U("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):e.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.m(e.renderingContent,Nv1)? (A={layoutId:e.adLayoutMetadata.layoutId,layoutType:e.adLayoutMetadata.layoutType,Xh:"core"},N=RQ(e,N,y),e=N instanceof U?N:Object.assign({},A,{renderingContent:e.renderingContent,tM:new Map([])},N,{o9:$2(w,E)(A),adLayoutLoggingData:e.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new EG([])})):e=new U("AdsEngagementPanelSectionListViewModel is missing"):e=new U("LayoutType ["+e.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return e}; od5=function(e,N,y,w,E,A,T,p,C,r,Y,M){if((M==null?void 0:M.MY)===void 0||(M==null?void 0:M.VH)===void 0)return new U("Cached ad break range from cue point is missing");var l=RQ(y,E,w.LO);if(l instanceof U)return l;l={layoutExitMuteTriggers:[],layoutExitNormalTriggers:l.layoutExitNormalTriggers,layoutExitSkipTriggers:[],E2:[],layoutExitUserInputSubmittedTriggers:[]};if(g.m(y.renderingContent,lS))return e=XMn(e,N,y,l,E,A,p,C,w.LO,T,M.MY,M.VH),e instanceof U?e:e.V6===void 0?new U("Expecting associatedInPlayerSlot for single DAI media layout"): {layout:e.layout,n$:[e.V6]};var F=g.m(y.renderingContent,TR);if(F){if(!U_(y.adLayoutMetadata))return new U("Invalid ad layout metadata");if(!M2(F))return new U("Invalid sequential layout");F=F.sequentialLayouts.map(function(S){return S.playerBytesAdLayoutRenderer}); e=PZH(e,N,y,l,F,E,w,A,T,C,p,r,M.MY,M.VH,Y);return e instanceof U?e:{layout:e.mF,n$:e.n$}}return new U("Not able to convert a sequential layout")}; PZH=function(e,N,y,w,E,A,T,p,C,r,Y,M,l,F,S){var k=dDs(E,l,F);if(k instanceof U)return k;var X=[],d=[];k=g.c(k);for(var v=k.next();!v.done;v=k.next()){var V=v.value;v=e;var Z=E[V.xo],n=V,R=N;V=A;var O=T,E9=p,Jn=C,eM=r,H=Y,a=U1(Z);if(a instanceof U)v=a;else{var h={layoutId:Z.adLayoutMetadata.layoutId,layoutType:Z.adLayoutMetadata.layoutType,Xh:"adapter"};n=IX1(R,Z,n,V);n instanceof U?v=n:(v=Object.assign({},h,LN,{tM:a,renderingContent:Z.renderingContent,clientMetadata:new EG(n),o9:$2(E9,v)(h),adLayoutLoggingData:Z.adLayoutMetadata.adLayoutLoggingData}), v=(Z=s1(H,v,V,O.LO,E9,Jn,eM,void 0,!0))?Z instanceof U?Z:{layout:v,V6:Z}:new U("Expecting associatedInPlayerSlot"))}if(v instanceof U)return v;X.push(v.layout);d.push(v.V6)}E={layoutId:y.adLayoutMetadata.layoutId,layoutType:y.adLayoutMetadata.layoutType,Xh:"core"};N=[new tw(Number(y.driftRecoveryMs)),new zQ(l),new il(F),new Lj(GR(N)),new GQ(M),new gK({})];S&&N.push(new as({}));return{mF:Object.assign({},E,w,{Cm:X,tM:new Map,clientMetadata:new EG(N),o9:$2(p,e)(E)}),n$:d}}; XMn=function(e,N,y,w,E,A,T,p,C,r,Y,M){if(!bS(y))return new U("Invalid PlayerBytesAdLayoutRenderer");var l=U1(y);if(l instanceof U)return l;var F={layoutId:y.adLayoutMetadata.layoutId,layoutType:y.adLayoutMetadata.layoutType,Xh:"core"},S=g.m(y.renderingContent,lS);if(!S)return new U("Invalid rendering content for DAI media layout");S=Qw(S,!1);Y={xV:S,xo:0,St:Y,rp:Math.min(Y+S.videoLengthSeconds*1E3,M),Fi:new ch(0,[S.videoLengthSeconds])};var k;M=(k=Number(y.driftRecoveryMs))!=null?k:void 0;N=IX1(N, y,Y,E,M);if(N instanceof U)return N;e=Object.assign({},F,w,{tM:l,renderingContent:y.renderingContent,clientMetadata:new EG(N),o9:$2(A,e)(F),adLayoutLoggingData:y.adLayoutMetadata.adLayoutLoggingData});return(E=s1(T,e,E,C,A,r,p,void 0,!0))?E instanceof U?E:{layout:e,V6:E}:new U("Expecting associatedInPlayerSlot")}; bj_=function(e,N,y,w,E,A,T,p,C,r,Y,M,l,F,S,k){var X=RQ(y,A,E.LO);if(X instanceof U)return X;if(g.m(y.renderingContent,lS)){C=vds([y],E,C);if(C instanceof U)return C;if(C.length!==1)return new U("Only expected one media layout.");e=z49(e,N,y,X,C[0],void 0,"core",w,A,T,p,r,l,F,S,E.LO,M,void 0,k);return e instanceof U?e:{layout:e.layout,n$:e.V6?[e.V6]:[]}}var d=g.m(y.renderingContent,TR);if(d){if(!U_(y.adLayoutMetadata))return new U("Invalid ad layout metadata");if(!M2(d))return new U("Invalid sequential layout"); d=d.sequentialLayouts.map(function(v){return v.playerBytesAdLayoutRenderer}); e=ijP(e,N,y.adLayoutMetadata,X,d,w,A,E,C,T,p,r,Y,M,S,l,F,k);return e instanceof U?e:{layout:e.mF,n$:e.n$}}return new U("Not able to convert a sequential layout")}; ijP=function(e,N,y,w,E,A,T,p,C,r,Y,M,l,F,S,k,X,d){var v=new NT({current:null}),V=vds(E,p,C);if(V instanceof U)return V;C=[];for(var Z=[],n=void 0,R=0;R0&&(R.push(d),R.push(new eR(n.adPodSkipTarget)));(A=r.get(n.externalVideoId))&&R.push(new xq(A));A=R}else A=new U("Invalid vod media renderer")}if(A instanceof U)return A;e=Object.assign({},T,w,{tM:V,renderingContent:y.renderingContent,clientMetadata:new EG(A),o9:$2(Y,e)(T),adLayoutLoggingData:y.adLayoutMetadata.adLayoutLoggingData});y=g.m(y.renderingContent,lS);if(!y||!Ae(y))return new U("Invalid meida renderer");M=q2(M,y.externalVideoId);M.instreamVideoAdRenderer=y;M.b$="AD_PLACEMENT_KIND_START";return F?(C=s1(l,e,C,k,Y,X,S,d,!1),C instanceof U?C:VAF(e.layoutId,l)&&C?{layout:Object.assign({},e,{clientMetadata:new EG(A.concat(new px(C)))})}:{layout:e,V6:C}): {layout:e}}; DD5=function(e,N,y,w,E){if(!bS(N))return new U("Invalid PlayerBytesAdLayoutRenderer");var A=g.m(N.renderingContent,pd);if(!A||A.durationMilliseconds===void 0)return new U("Invalid endcap renderer");var T={layoutId:N.adLayoutMetadata.layoutId,layoutType:N.adLayoutMetadata.layoutType,Xh:"adapter"};w=[new nx(A.durationMilliseconds),new Hp({impressionCommands:void 0,abandonCommands:A.abandonCommands?[{commandExecutorCommand:A.abandonCommands}]:void 0,completeCommands:A.completionCommands}),new Lj(w), new os("LAYOUT_TYPE_ENDCAP")];if(E){w.push(new ao(E.Fi.adPodIndex-1));w.push(new Db(E.Fi.adPodIndex));var p;w.push(new eR((p=E.adPodSkipTarget)!=null?p:-1))}return Object.assign({},T,LN,{renderingContent:N.renderingContent,clientMetadata:new EG(w),tM:A.skipPings?new Map([["skip",A.skipPings]]):new Map,o9:$2(y,e)(T),adLayoutLoggingData:N.adLayoutMetadata.adLayoutLoggingData})}; s1=function(e,N,y,w,E,A,T,p,C){e=e.filter(function(Y){return Y.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&Y.adSlotMetadata.triggeringSourceLayoutId===N.layoutId}); if(e.length!==0){if(e.length!==1)return new U("Invalid InPlayer slot association for the given PlayerBytes layout");e=e[0];T=SRM(e,A,y,w,T);if(T instanceof U)return T;var r;A={slotId:e.adSlotMetadata.slotId,slotType:e.adSlotMetadata.slotType,slotPhysicalPosition:(r=e.adSlotMetadata.slotPhysicalPosition)!=null?r:1,Xh:"core",slotEntryTrigger:T.slotEntryTrigger,slotFulfillmentTriggers:T.slotFulfillmentTriggers,slotExpirationTriggers:T.slotExpirationTriggers};r=g.m(e.fulfillmentContent.fulfilledLayout, JCH);if(!r||!an3(r))return new U("Invalid InPlayerAdLayoutRenderer");T={layoutId:r.adLayoutMetadata.layoutId,layoutType:r.adLayoutMetadata.layoutType,Xh:"core"};y=RQ(r,y,w);if(y instanceof U)return y;w=[];C&&w.push(new gK({}));if(r.adLayoutMetadata.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")w.push.apply(w,g.B(fXJ(e.adSlotMetadata.triggerEvent,N)));else if(r.adLayoutMetadata.layoutType==="LAYOUT_TYPE_ENDCAP")w.push(new Lj(GR(e.adSlotMetadata.triggerEvent))),p&&w.push(p);else return new U("Not able to parse an SDF InPlayer layout"); E=Object.assign({},T,y,{renderingContent:r.renderingContent,tM:new Map,o9:$2(E,A)(T),clientMetadata:new EG(w),adLayoutLoggingData:r.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},A,{fulfilledLayout:E,clientMetadata:new EG([])})}}; fXJ=function(e,N){var y=[];y.push(new Lj(GR(e)));y.push(new FP(N.layoutId));(e=A6(N.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&y.push(new cp(e));(e=A6(N.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&y.push(new NT(e));(e=A6(N.clientMetadata,"metadata_type_remote_slots_data"))&&y.push(new xq(e));(e=A6(N.clientMetadata,"metadata_type_ad_next_params"))&&y.push(new Qg(e));(e=A6(N.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&y.push(new HM(e));(e= A6(N.clientMetadata,"metadata_type_ad_pod_info"))&&y.push(new sR(e));(N=A6(N.clientMetadata,"metadata_type_ad_video_id"))&&y.push(new yS(N));return y}; gdM=function(e,N,y,w,E,A){function T(r){return aQ(N,r)} var p=w.Zd.inPlayerSlotId,C={layoutId:w.Zd.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",Xh:"core"};y={slotId:p,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Xh:"core",slotEntryTrigger:new dy(T,e),slotFulfillmentTriggers:[new nt(T,p)],slotExpirationTriggers:[new QV(T,p),new Zp(T,y)]};e=Object.assign({},C,{layoutExitNormalTriggers:[new vh(T,e)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],E2:[],tM:new Map,clientMetadata:new EG([new rK(w.Zd), new Lj(w.adPlacementConfig),E]),o9:$2(A,y)(C),adLayoutLoggingData:w.Zd.adLayoutLoggingData});return Object.assign({},y,{clientMetadata:new EG([new ul(e)])})}; VAF=function(e,N){N=g.c(N);for(var y=N.next();!y.done;y=N.next())if(y=y.value,y.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var w=g.m(y.fulfillmentContent.fulfilledLayout,Br);if(w&&(w=g.m(w.renderingContent,cr))&&w.associatedPlayerBytesLayoutId===e)return y}}; SRM=function(e,N,y,w,E){var A=tAP(fN(e.slotEntryTrigger,y,w),E,e,N);if(A instanceof U)return A;for(var T=[],p=g.c(e.slotFulfillmentTriggers),C=p.next();!C.done;C=p.next()){C=fN(C.value,y,w);if(C instanceof U)return C;T.push(C)}T=u8s(T,E,e,N);N=[];e=g.c(e.slotExpirationTriggers);for(E=e.next();!E.done;E=e.next()){E=fN(E.value,y,w);if(E instanceof U)return E;N.push(E)}return{slotEntryTrigger:A,slotFulfillmentTriggers:T,slotExpirationTriggers:N}}; tAP=function(e,N,y,w){return N&&y.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&e instanceof kA?new hc(function(E){return aQ(w,E)},y.adSlotMetadata.slotId):e}; u8s=function(e,N,y,w){return N&&y.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?e.map(function(E){return E instanceof nt?new Kt(function(A){return aQ(w,A)},y.adSlotMetadata.slotId):E}):e}; RQ=function(e,N,y){for(var w=[],E=g.c(e.layoutExitNormalTriggers||[]),A=E.next();!A.done;A=E.next()){A=fN(A.value,N,y);if(A instanceof U)return A;w.push(A)}E=[];A=g.c(e.layoutExitSkipTriggers||[]);for(var T=A.next();!T.done;T=A.next()){T=fN(T.value,N,y);if(T instanceof U)return T;E.push(T)}A=[];T=g.c(e.layoutExitMuteTriggers||[]);for(var p=T.next();!p.done;p=T.next()){p=fN(p.value,N,y);if(p instanceof U)return p;A.push(p)}T=[];e=g.c(e.layoutExitUserInputSubmittedTriggers||[]);for(p=e.next();!p.done;p= e.next()){p=fN(p.value,N,y);if(p instanceof U)return p;T.push(p)}return{layoutExitNormalTriggers:w,layoutExitSkipTriggers:E,layoutExitMuteTriggers:A,layoutExitUserInputSubmittedTriggers:T,E2:[]}}; U1=function(e){var N=g.m(e.renderingContent,lS);if(N==null?0:N.pings)return dF(N.pings);e=g.m(e.renderingContent,pd);return(e==null?0:e.skipPings)?new Map([["skip",e.skipPings]]):new Map}; IX1=function(e,N,y,w,E){N=g.m(N.renderingContent,lS);if(!N)return new U("Invalid rendering content for DAI media layout");e=[new wK(w),new Pp(y.xV.videoLengthSeconds),new dK(y.xV.playerVars),new zQ(y.St),new il(y.rp),new Db(y.xo),new Lj(GR(e)),new yS(y.xV.adVideoId),new sR(y.Fi),N.sodarExtensionData&&new vp(N.sodarExtensionData),new cp({current:null}),new gK({}),new OP(Pt(N.pings))].filter(Fbs);E!==void 0&&e.push(new tw(E));return e}; dDs=function(e,N,y){e=e.map(function(C){return Qw(g.m(C.renderingContent,lS),!1)}); var w=e.map(function(C){return C.videoLengthSeconds}),E=w.map(function(C,r){return new ch(r,w)}),A=N,T=y,p=[]; e.forEach(function(C,r){T=Math.min(A+C.videoLengthSeconds*1E3,y);te(C.playerVars,E[r]);p.push({xV:C,St:A,rp:T,xo:r,Fi:E[r]});A=T}); return p}; vds=function(e,N,y){for(var w=[],E=g.c(e),A=E.next();!A.done;A=E.next())if(A=g.m(A.value.renderingContent,lS)){if(!Ae(A))return new U("Invalid vod media renderer");w.push(qR_(A))}E=w.map(function(M){return M.Je}); A=[];for(var T=0,p=0;p0?eM:-1;else if(h=g.m(a,pd)){a=R43(e,N,y,h,A,k,p,O,eM);if(a instanceof U){F= a;break a}a=a(l);X.push(a.Ww);d=[].concat(g.B(a.Tq),g.B(d));v=[].concat(g.B(a.rN),g.B(v));a.V6&&(Jn=[a.V6].concat(g.B(Jn)))}else if(h=g.m(a,Sj)){if(F===void 0){F=new U("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:h});break a}a=Lb9(e,N,y,A,h,R,p,F,k,R_(Y,"supports_multi_step_on_desktop"));if(a instanceof U){F=a;break a}a=a(l);X.push(a.Ww);a.V6&&Jn.push(a.V6);d=[].concat(g.B(a.Tq),g.B(d));v=[].concat(g.B(a.rN),g.B(v));V=[].concat(g.B(a.JO),g.B(V)); Z=[].concat(g.B(a.FX),g.B(Z));n=[R].concat(g.B(n))}else if(a=g.m(a,oQ)){a=sos(e,N,y,A,a,R,p,k);if(a instanceof U){F=a;break a}a=a(l);X.push(a.Ww);a.V6&&Jn.push(a.V6);v=[].concat(g.B(a.rN),g.B(v))}else{F=new U("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}F={Cm:X,layoutExitSkipTriggers:d,layoutExitUserInputSubmittedTriggers:V,E2:Z,layoutExitMuteTriggers:v,sL:n,n$:Jn}}}else a:if(k=TK9(w,y,Y),k instanceof U)F=k;else{X=0;d=[];v=[];V=[];Z=[];n=[];R=[];O=new kq({current:null});E9=new NT({current:null}); Jn=!1;H=[];eM=-1;S=g.c(w);for(a=S.next();!a.done;a=S.next())if(a=a.value,g.m(a,F4)){a=Gj1(N,y,g.m(a,F4),p);if(a instanceof U){F=a;break a}a=a(l);d.push(a.Ww);v=[].concat(g.B(a.Tq),g.B(v));V=[].concat(g.B(a.rN),g.B(V));a.V6&&(H=[a.V6].concat(g.B(H)))}else if(g.m(a,lS)){eM=m9(g.m(a,lS),y,Y);if(eM instanceof wX){F=new U(eM);break a}a=new ch(X,k);a=Jw3(N,eM.layoutId,eM.XF,y,Hr(eM.playerVars,eM.uu,T,r,a),eM.Je,A,a,p(l),E9,C.get(eM.XF.externalVideoId),void 0,M);X++;d.push(a.Ww);v=[].concat(g.B(a.Tq),g.B(v)); V=[].concat(g.B(a.rN),g.B(V));Jn||(R.push(E9),Jn=!0);eM=(eM=eM.XF.adPodSkipTarget)&&eM>0?eM:-1}else if(g.m(a,pd)){a=R43(e,N,y,g.m(a,pd),A,X,p,E9,eM);if(a instanceof U){F=a;break a}a=a(l);d.push(a.Ww);v=[].concat(g.B(a.Tq),g.B(v));V=[].concat(g.B(a.rN),g.B(V));a.V6&&(H=[a.V6].concat(g.B(H)))}else if(g.m(a,Sj)){if(F===void 0){F=new U("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.m(a,Sj)});break a}a=Lb9(e,N,y,A,g.m(a,Sj),O,p,F,X,R_(Y,"supports_multi_step_on_desktop")); if(a instanceof U){F=a;break a}a=a(l);d.push(a.Ww);a.V6&&H.push(a.V6);v=[].concat(g.B(a.Tq),g.B(v));V=[].concat(g.B(a.rN),g.B(V));Z=[].concat(g.B(a.JO),g.B(Z));n=[].concat(g.B(a.FX),g.B(n));R=[O].concat(g.B(R))}else if(g.m(a,oQ)){a=sos(e,N,y,A,g.m(a,oQ),O,p,X);if(a instanceof U){F=a;break a}a=a(l);d.push(a.Ww);a.V6&&H.push(a.V6);V=[].concat(g.B(a.rN),g.B(V))}else{F=new U("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}F={Cm:d,layoutExitSkipTriggers:v,layoutExitUserInputSubmittedTriggers:Z, E2:n,layoutExitMuteTriggers:V,sL:R,n$:H}}F instanceof U?l=F:(n=l.slotId,k=F.Cm,X=F.layoutExitSkipTriggers,d=F.layoutExitMuteTriggers,v=F.layoutExitUserInputSubmittedTriggers,V=F.sL,l=p(l),Z=E?E.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",n=E?E.layoutId:G5(N.N.get(),Z,n),R={layoutId:n,layoutType:Z,Xh:"core"},l={layout:{layoutId:n,layoutType:Z,tM:new Map,layoutExitNormalTriggers:[new qp(N.J,n)],layoutExitSkipTriggers:X,layoutExitMuteTriggers:d,layoutExitUserInputSubmittedTriggers:v,E2:[],Xh:"core", clientMetadata:new EG([new Bp(k)].concat(g.B(V))),o9:l(R)},n$:F.n$});return l}}; TK9=function(e,N,y){var w=[];e=g.c(e);for(var E=e.next();!E.done;E=e.next())if(E=E.value,g.m(E,lS)){E=m9(g.m(E,lS),N,y);if(E instanceof wX)return new U(E);w.push(E.Je)}return w}; Cl1=function(e,N,y,w,E,A,T,p){if(!FXJ(y,p===void 0?!1:p))return new U("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:y});var C=xt(y);if(C<=0)return new U("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:y});var r=new kq({current:null}),Y=xfF(e,N,y,r,w,A,T);return ppF(e,w,A,C,E,function(M,l){var F=M.slotId,S=jj(y);M=T(M);var k,X=(k=w$(N,w,y.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?k: G5(N.N.get(),"LAYOUT_TYPE_MEDIA_BREAK",F);F={layoutId:X,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Xh:"core"};k=Y(X,l);var d=A6(k.clientMetadata,"metadata_type_fulfilled_layout");d||YN("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");S=[new Lj(w),new nx(C),new Hp(S),r];d&&S.push(new os(d.layoutType));return{ixP:{layoutId:X,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",tM:new Map,layoutExitNormalTriggers:[new qp(N.J,X)],layoutExitSkipTriggers:[new jm(N.J, l.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new O_(N.J,l.layoutId)],E2:[],Xh:"core",clientMetadata:new EG(S),o9:M(F)},P9s:k}})}; rwP=function(e){if(!b2n(e))return!1;var N=g.m(e.adVideoStart,ps);return N?g.m(e.linearAd,lS)&&wj(N)?!0:(YN("Invalid Sandwich with notify"),!1):!1}; $Ts=function(e){if(e.linearAds==null)return!1;e=g.m(e.adStart,ps);return e?wj(e)?!0:(YN("Invalid LASR with notify"),!1):!1}; YP5=function(e){if(!oCJ(e))return!1;e=g.m(e.adStart,ps);return e?wj(e)?!0:(YN("Invalid LASR with notify"),!1):!1}; Cs=function(e,N,y,w,E,A,T,p,C,r){this.j=e;this.N=N;this.J=y;this.wP=w;this.yT=E;this.K=A;this.zZ=T;this.Gx=p;this.VT=C;this.loadPolicy=r===void 0?1:r}; X8J=function(e,N,y,w,E,A,T,p,C,r){var Y=[];if(N.length===0&&w.length===0&&y.length===0)return Y;N=N.filter(E1);var M=y.filter(Yl9),l=w.filter(E1),F=new Map,S=lX_(N),k=y.some(function(h){var K;return(h==null?void 0:(K=h.adSlotMetadata)==null?void 0:K.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),X=y.some(function(h){var K; return(h==null?void 0:(K=h.adSlotMetadata)==null?void 0:K.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),d=y.some(function(h){var K; return(h==null?void 0:(K=h.adSlotMetadata)==null?void 0:K.slotType)==="SLOT_TYPE_IN_PLAYER"}); y=y.some(function(h){var K,aP;return(h==null?void 0:(K=h.adSlotMetadata)==null?void 0:K.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(h==null?void 0:(aP=h.adSlotMetadata)==null?void 0:aP.slotType)==="SLOT_TYPE_ABOVE_FEED"}); if(k||X||d||y)r=kj5(M,N,p,E,S,e.yT.get(),e.loadPolicy,F,e.wP.get(),e.j.get(),d,T,C,r),r instanceof U?YN(r,void 0,void 0,{contentCpn:E}):Y.push.apply(Y,g.B(r));r=g.c(N);for(y=r.next();!y.done;y=r.next())y=y.value,X=MRM(e,F,y,E,A,T,k,p,S,C,M),X instanceof U?YN(X,void 0,void 0,{renderer:y.renderer,config:y.config.adPlacementConfig,kind:y.config.adPlacementConfig.kind,contentCpn:E,daiEnabled:T}):Y.push.apply(Y,g.B(X));lbF(e.wP.get())||(A=FZ1(e,l,E,p,S,F),Y.push.apply(Y,g.B(A)));if(e.K===null||T&&!p.mB){var v, V,Z;e=p.Cx&&N.length===1&&((v=N[0].config)==null?void 0:(V=v.adPlacementConfig)==null?void 0:V.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((Z=N[0].renderer)==null?void 0:Z.adBreakServiceRenderer);if(!Y.length&&!e){var n,R,O,E9;YN("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":N.length,contentCpn:E,"first APR kind":(n=N[0])==null?void 0:(R=n.config)==null?void 0:(O=R.adPlacementConfig)==null?void 0:O.kind,renderer:(E9=N[0])==null?void 0:E9.renderer})}return Y}v= w.filter(E1);Y.push.apply(Y,g.B(uIH(F,v,e.N.get(),e.K,E,k)));if(!Y.length){var Jn,eM,H,a;YN("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":N.length,contentCpn:E,daiEnabled:T.toString(),"first APR kind":(Jn=N[0])==null?void 0:(eM=Jn.config)==null?void 0:(H=eM.adPlacementConfig)==null?void 0:H.kind,renderer:(a=N[0])==null?void 0:a.renderer})}return Y}; FZ1=function(e,N,y,w,E,A){function T(l){return $2(e.yT.get(),l)} var p=[];N=g.c(N);for(var C=N.next();!C.done;C=N.next()){C=C.value;var r=C.renderer,Y=r.sandwichedLinearAdRenderer,M=r.linearAdSequenceRenderer;Y&&rwP(Y)?(YN("Found AdNotify with SandwichedLinearAdRenderer"),M=g.m(Y.adVideoStart,ps),Y=g.m(Y.linearAd,lS),uS(A,r,C.config.adPlacementConfig.kind),r=void 0,M=Edn((r=M)==null?void 0:r.layout.layoutId,e.N.get(),e.J.get(),C.config.adPlacementConfig,C.adSlotLoggingData,Y,y,w,T,E,e.loadPolicy,e.wP.get(),e.yT.get()),M instanceof U?YN(M):p.push.apply(p,g.B(M))): M&&(!M.adLayoutMetadata&&$Ts(M)||M.adLayoutMetadata&&YP5(M))&&(YN("Found AdNotify with LinearAdSequenceRenderer"),uS(A,r,C.config.adPlacementConfig.kind),r=void 0,Y=aXP((r=g.m(M.adStart,ps))==null?void 0:r.layout.layoutId,e.N.get(),e.J.get(),C.config.adPlacementConfig,C.adSlotLoggingData,M.linearAds,U_(M.adLayoutMetadata)?M.adLayoutMetadata:void 0,y,w,T,E,e.loadPolicy,e.wP.get()),Y instanceof U?YN(Y):p.push.apply(p,g.B(Y)))}return p}; MRM=function(e,N,y,w,E,A,T,p,C,r,Y){function M(d){return $2(e.yT.get(),d)} var l=y.renderer,F=y.config.adPlacementConfig,S=F.kind,k=y.adSlotLoggingData,X=p.mB&&S==="AD_PLACEMENT_KIND_START";X=A&&!X;if(l.adsEngagementPanelRenderer!=null)return ZC(N,y.elementId,S,l.adsEngagementPanelRenderer.isContentVideoEngagementPanel,l.adsEngagementPanelRenderer.adVideoId,l.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,F,k,function(d,v,V,Z){var n=e.J.get(),R=d.slotId,O=l.adsEngagementPanelRenderer;d=$2(e.yT.get(),d);return r$(n,R,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new jA(O),v,V,O.impressionPings,d,l.adsEngagementPanelRenderer.adLayoutLoggingData,Z)}),[]; if(l.adsEngagementPanelLayoutViewModel)return ZC(N,y.elementId,S,l.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,l.adsEngagementPanelLayoutViewModel.adVideoId,l.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,F,k,function(d,v,V,Z){var n=e.J.get(),R=d.slotId,O=l.adsEngagementPanelLayoutViewModel;d=$2(e.yT.get(),d);return $F(n,R,"LAYOUT_TYPE_PANEL",new nj(O),v,V,d,l.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,Z)}),[]; if(l.actionCompanionAdRenderer!=null){if(l.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return DfF(e.N.get(),e.K,e.J.get(),l.actionCompanionAdRenderer,F,k,w,M);ZC(N,y.elementId,S,l.actionCompanionAdRenderer.isContentVideoCompanion,l.actionCompanionAdRenderer.adVideoId,l.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,F,k,function(d,v,V,Z){var n=e.J.get(),R=d.slotId,O=l.actionCompanionAdRenderer;d=$2(e.yT.get(),d);return r$(n,R,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new ZX(O),v,V,O.impressionPings,d,l.actionCompanionAdRenderer.adLayoutLoggingData,Z)})}else if(l.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(l.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return gCn(e.N.get(),e.K,e.J.get(),l.topBannerImageTextIconButtonedLayoutViewModel,F,k,w,M); ZC(N,y.elementId,S,l.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,l.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,l.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,F,k,function(d,v,V,Z){var n=e.J.get(),R=d.slotId,O=l.topBannerImageTextIconButtonedLayoutViewModel;d=$2(e.yT.get(),d);return $F(n,R,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new xd(O),v,V,d,l.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,Z)})}else if(l.imageCompanionAdRenderer)ZC(N, y.elementId,S,l.imageCompanionAdRenderer.isContentVideoCompanion,l.imageCompanionAdRenderer.adVideoId,l.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,F,k,function(d,v,V,Z){var n=e.J.get(),R=d.slotId,O=l.imageCompanionAdRenderer; d=$2(e.yT.get(),d);return r$(n,R,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new WM(O),v,V,O.impressionPings,d,l.imageCompanionAdRenderer.adLayoutLoggingData,Z)}); else if(l.bannerImageLayoutViewModel)ZC(N,y.elementId,S,l.bannerImageLayoutViewModel.isContentVideoCompanion,l.bannerImageLayoutViewModel.adVideoId,l.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,F,k,function(d,v,V,Z){var n=e.J.get(),R=d.slotId,O=l.bannerImageLayoutViewModel;d=$2(e.yT.get(),d);return $F(n,R,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new OR(O),v,V,d,l.bannerImageLayoutViewModel.adLayoutLoggingData,Z)}); else if(l.shoppingCompanionCarouselRenderer)ZC(N,y.elementId,S,l.shoppingCompanionCarouselRenderer.isContentVideoCompanion,l.shoppingCompanionCarouselRenderer.adVideoId,l.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,F,k,function(d,v,V,Z){var n=e.J.get(),R=d.slotId,O=l.shoppingCompanionCarouselRenderer;d=$2(e.yT.get(),d);return r$(n,R,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new Ro(O),v,V,O.impressionPings,d,l.shoppingCompanionCarouselRenderer.adLayoutLoggingData,Z)}); else if(l.adBreakServiceRenderer){if(!zdM(y))return[];if(S==="AD_PLACEMENT_KIND_PAUSE")return vCF(e.N.get(),F,k,y.renderer.adBreakServiceRenderer,w);if(S!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&S!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return IKJ(e.N.get(),F,k,y.renderer.adBreakServiceRenderer,w,E,A);p.Cx||YN("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:S,adPlacementConfig:F,daiEnabledForContentVideo:String(A),isServedFromLiveInfra:String(p.Cx),clientPlaybackNonce:p.clientPlaybackNonce}); if(S==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!e.zZ)return new U("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!e.VT)return new U("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");e.VT.R0({adPlacementRenderer:y,contentCpn:w,LO:E});E=e.zZ.get().getCurrentTimeSec(1,!1);return SP5(e.N.get(),y.renderer.adBreakServiceRenderer,F,E,w,k,A)}if(!e.Gx)return new U("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface"); e.Gx.R0({adPlacementRenderer:y,contentCpn:w,LO:E})}else{if(l.clientForecastingAdRenderer)return nd5(e.N.get(),e.J.get(),F,k,l.clientForecastingAdRenderer,w,E,M);if(l.invideoOverlayAdRenderer)return Kb9(e.N.get(),e.J.get(),F,k,l.invideoOverlayAdRenderer,w,E,M);if(l.instreamAdPlayerOverlayRenderer)return mDH(e.N.get(),e.J.get(),F,k,l.instreamAdPlayerOverlayRenderer,w,M);if((l.linearAdSequenceRenderer||l.instreamVideoAdRenderer)&&X)return sRM(e.N.get(),e.J.get(),y,w,M,r,!e.wP.get().C.X().T("html5_override_ad_video_length_killswitch")); if(l.linearAdSequenceRenderer&&!X){if(T)return[];uS(N,l,S);if(l.linearAdSequenceRenderer.adLayoutMetadata){if(!oCJ(l.linearAdSequenceRenderer))return new U("Received invalid LinearAdSequenceRenderer.")}else if(l.linearAdSequenceRenderer.linearAds==null)return new U("Received invalid LinearAdSequenceRenderer.");if(g.m(l.linearAdSequenceRenderer.adStart,ps)){YN("Found AdNotify in LinearAdSequenceRenderer");y=g.m(l.linearAdSequenceRenderer.adStart,ps);if(!sg9(y))return new U("Invalid AdMessageRenderer."); A=l.linearAdSequenceRenderer.linearAds;return eaM(e.j.get(),e.N.get(),e.J.get(),e.yT.get(),F,k,y,U_(l.linearAdSequenceRenderer.adLayoutMetadata)?l.linearAdSequenceRenderer.adLayoutMetadata:void 0,A,w,E,p,M,C,e.loadPolicy,e.wP.get())}return AwM(e.N.get(),e.J.get(),F,k,l.linearAdSequenceRenderer.linearAds,U_(l.linearAdSequenceRenderer.adLayoutMetadata)?l.linearAdSequenceRenderer.adLayoutMetadata:void 0,w,E,p,M,C,e.loadPolicy,e.wP.get(),Y)}if(!l.remoteSlotsRenderer||A){if(l.instreamVideoAdRenderer&& !X){if(T)return[];uS(N,l,S);return CZH(e.N.get(),e.J.get(),F,k,l.instreamVideoAdRenderer,w,E,p,M,C,e.loadPolicy,e.wP.get(),e.yT.get(),Y)}if(l.instreamSurveyAdRenderer)return Cl1(e.N.get(),e.J.get(),l.instreamSurveyAdRenderer,F,k,w,M,R_(e.wP.get(),"supports_multi_step_on_desktop"));if(l.sandwichedLinearAdRenderer!=null)return b2n(l.sandwichedLinearAdRenderer)?g.m(l.sandwichedLinearAdRenderer.adVideoStart,ps)?(YN("Found AdNotify in SandwichedLinearAdRenderer"),y=g.m(l.sandwichedLinearAdRenderer.adVideoStart, ps),sg9(y)?(A=g.m(l.sandwichedLinearAdRenderer.linearAd,lS))?A5E(y,A,F,e.j.get(),e.N.get(),e.J.get(),e.yT.get(),k,w,E,p,M,C,e.loadPolicy,e.wP.get()):new U("Missing IVAR from Sandwich"):new U("Invalid AdMessageRenderer.")):AwM(e.N.get(),e.J.get(),F,k,[l.sandwichedLinearAdRenderer.adVideoStart,l.sandwichedLinearAdRenderer.linearAd],void 0,w,E,p,M,C,e.loadPolicy,e.wP.get()):new U("Received invalid SandwichedLinearAdRenderer.");if(l.videoAdTrackingRenderer!=null)return p=R_(e.wP.get(),"enable_h5_shorts_ad_terminal_events")&& p.e_,xD5(e.N.get(),e.J.get(),l.videoAdTrackingRenderer,F,k,w,E,p,M)}}return[]}; YF=function(e,N,y,w,E,A,T,p){g.x.call(this);var C=this;this.N=e;this.K=N;this.p$=w;this.zZ=E;this.wP=A;this.Pk=T;this.xk=p;this.J=null;y.get().addListener(this);this.addOnDisposeCallback(function(){y.Ss()||y.get().removeListener(C)}); w.get().addListener(this);this.addOnDisposeCallback(function(){w.Ss()||w.get().removeListener(C)})}; bxF=function(e,N,y){var w=e.zZ.get().getCurrentTimeSec(1,!1);e.wP.get().C.X().B9()&&sV(e.Pk.get(),"sdai","onopp.1;evt."+y.event+";start."+y.startSecs.toFixed(3)+";d."+y.Vj.toFixed(3));lv(e.N.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var E=e.K.get(),A=N.adPlacementRenderer.renderer.adBreakServiceRenderer,T=N.contentCpn,p=N.adPlacementRenderer.adSlotLoggingData,C=MC(e.wP.get()),r=e.Pk;if(E.wP.get().C.X().experiments.gP("enable_smearing_expansion_dai")){var Y=g.Y2(E.wP.get().C.X().experiments, "max_prefetch_window_sec_for_livestream_optimization");var M=g.Y2(E.wP.get().C.X().experiments,"min_prefetch_offset_sec_for_livestream_optimization");C={OT:oq1(y),hC:!1,cueProcessedMs:w*1E3};var l=y.startSecs+y.Vj;if(w===0)C.zJ=new de(0,l*1E3);else{M=y.startSecs-M;var F=M-w;C.zJ=F<=0?new de(M*1E3,l*1E3):new de(Math.floor(w+Math.random()*Math.min(F,Y))*1E3,l*1E3)}Y=C}else Y={OT:oq1(y),hC:!1},l=y.startSecs+y.Vj,y.startSecs<=w?C=new de((y.startSecs-4)*1E3,l*1E3):(M=Math.max(0,y.startSecs-w-10),C=new de(Math.floor(w+ Math.random()*(C?w===0?0:Math.min(M,5):M))*1E3,l*1E3)),Y.zJ=C;E=Vw(E,A,T,Y,p,[new XP(y)]);r.get().C.Z6(Y.zJ.start/1E3-w,y.startSecs-w);return[E]})}; lP=function(e){var N,y=(N=A6(e.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:N.current;if(!y)return null;N=A6(e.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var w=e.layoutId,E=A6(e.clientMetadata,"metadata_type_content_cpn"),A=A6(e.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),T=A6(e.clientMetadata,"metadata_type_player_overlay_layout_renderer"),p=A6(e.clientMetadata,"metadata_type_player_underlay_renderer"),C=A6(e.clientMetadata, "metadata_type_ad_placement_config"),r=A6(e.clientMetadata,"metadata_type_video_length_seconds");var Y=eK(e.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?A6(e.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):eK(e.clientMetadata,"metadata_type_layout_enter_ms")&&eK(e.clientMetadata,"metadata_type_layout_exit_ms")?(A6(e.clientMetadata,"metadata_type_layout_exit_ms")-A6(e.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{rL:w,contentCpn:E,cT:y,FO:N,instreamAdPlayerOverlayRenderer:A, playerOverlayLayoutRenderer:T,instreamAdPlayerUnderlayRenderer:p,adPlacementConfig:C,videoLengthSeconds:r,wF:Y,inPlayerLayoutId:A6(e.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:A6(e.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; cw5=function(e,N){return ha9(e,N)}; kQ9=function(e,N){N=ha9(e,N);if(!N)return null;var y;N.wF=(y=A6(e.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:y.adBreakRemainingLengthSeconds;return N}; ha9=function(e,N){var y,w=(y=A6(e.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:y.current;if(!w)return null;y=xu3(e,N);return{wy:ZTM(e,N),adPlacementConfig:A6(e.clientMetadata,"metadata_type_ad_placement_config"),Oh:y,contentCpn:A6(e.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:A6(e.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:A6(e.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:A6(e.clientMetadata, "metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,wF:void 0,cT:w,rL:e.layoutId,videoLengthSeconds:A6(e.clientMetadata,"metadata_type_video_length_seconds")}}; F7=function(e,N,y,w,E,A,T,p,C){g.x.call(this);this.j=e;this.Z=N;this.L=y;this.K=w;this.J=E;this.N=A;this.yT=T;this.wP=p;this.Hk=C;this.l6=!0}; BKP=function(e,N,y){return YR9(e.J.get(),N.contentCpn,N.rL,function(w){return MA5(e.N.get(),w.slotId,y,N.adPlacementConfig,N.rL,$2(e.yT.get(),w))})}; Sw=function(e,N,y,w,E,A,T,p){g.x.call(this);this.N=e;this.J=N;this.K=y;this.wP=w;this.j=E;this.Hk=A;this.zZ=T;this.d7=p}; oc=function(e){g.x.call(this);this.J=e}; lv=function(e,N,y,w){e.J().sX(N,w);y=y();e=e.J();e.H9.RR("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",N,w,y);N=g.c(y);for(y=N.next();!y.done;y=N.next())a:{w=e;y=y.value;w.H9.S1("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",y);w.H9.S1("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",y);try{var E=w.J;if(g.kw(y.slotId))throw new U("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(ca(E,y))throw new U("Duplicate registration for slot.",{slotId:y.slotId,slotEntryTriggerType:y.slotEntryTrigger.triggerType}, "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!E.V2.Fs.has(y.slotType))throw new U("No fulfillment adapter factory registered for slot of type: "+y.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!E.V2.hc.has(y.slotType))throw new U("No SlotAdapterFactory registered for slot of type: "+y.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");ZF(E,"TRIGGER_CATEGORY_SLOT_ENTRY",y.slotEntryTrigger?[y.slotEntryTrigger]:[]);ZF(E,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", y.slotFulfillmentTriggers);ZF(E,"TRIGGER_CATEGORY_SLOT_EXPIRATION",y.slotExpirationTriggers);var A=w.J,T=y.slotType+"_"+y.slotPhysicalPosition,p=Vk(A,T);if(ca(A,y))throw new U("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");p.set(y.slotId,new VPM(y));A.J.set(T,p)}catch(E9){E9 instanceof U&&E9.ol?(w.H9.a8("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",E9.ol,y),YN(E9,y,void 0,void 0,E9.S$)):(w.H9.a8("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", y),YN(E9,y));break a}ca(w.J,y).Z=!0;try{var C=w.J,r=ca(C,y),Y=y.slotEntryTrigger,M=C.V2.ym.get(Y.triggerType);M&&(M.jw("TRIGGER_CATEGORY_SLOT_ENTRY",Y,y,null),r.qg.set(Y.triggerId,M));for(var l=g.c(y.slotFulfillmentTriggers),F=l.next();!F.done;F=l.next()){var S=F.value,k=C.V2.ym.get(S.triggerType);k&&(k.jw("TRIGGER_CATEGORY_SLOT_FULFILLMENT",S,y,null),r.Ng.set(S.triggerId,k))}for(var X=g.c(y.slotExpirationTriggers),d=X.next();!d.done;d=X.next()){var v=d.value,V=C.V2.ym.get(v.triggerType);V&&(V.jw("TRIGGER_CATEGORY_SLOT_EXPIRATION", v,y,null),r.D.set(v.triggerId,V))}var Z=C.V2.Fs.get(y.slotType).get().build(C.K,y);r.G=Z;var n=C.V2.hc.get(y.slotType).get().build(C.L,y);n.init();r.N=n}catch(E9){E9 instanceof U&&E9.ol?(w.H9.a8("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",E9.ol,y),YN(E9,y,void 0,void 0,E9.S$)):(w.H9.a8("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",y),YN(E9,y));o_(w,y,!0);break a}w.H9.S1("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",y);w.J.JT(y);for(var R=g.c(w.N),O=R.next();!O.done;O= R.next())O.value.JT(y);X2(w,y)}}; bP=function(e,N,y,w,E){g.x.call(this);var A=this;this.N=e;this.K=N;this.oJ=y;this.context=E;this.J=new Map;w.get().addListener(this);this.addOnDisposeCallback(function(){w.Ss()||w.get().removeListener(A)})}; k$s=function(e,N){var y=0x8000000000000;var w=0;for(var E=g.c(N.slotFulfillmentTriggers),A=E.next();!A.done;A=E.next())A=A.value,A instanceof VV?(y=Math.min(y,A.J.start),w=Math.max(w,A.J.end)):YN("Found unexpected fulfillment trigger for throttled slot.",N,null,{fulfillmentTrigger:A});w=new de(y,w);y="throttledadcuerange:"+N.slotId;e.J.set(y,N);e.oJ.get().addCueRange(y,w.start,w.end,!1,e);k6(e.context.wP.get())&&(N=w.start,w=w.end,E={},e.context.OP.g4("tcrr",(E.cid=y,E.sm=N,E.em=w,E)))}; hH=function(){g.x.apply(this,arguments);this.l6=!0;this.R$=new Map;this.J=new Map}; cu=function(e,N){e=g.c(e.R$.values());for(var y=e.next();!y.done;y=e.next())if(y.value.layoutId===N)return!0;return!1}; kF=function(e,N){e=g.c(e.J.values());for(var y=e.next();!y.done;y=e.next()){y=g.c(y.value);for(var w=y.next();!w.done;w=y.next())if(w=w.value,w.layoutId===N)return w}YN("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.kw(N)),layoutId:N})}; XpH=function(){this.J=new Map}; Pls=function(e,N){this.callback=e;this.slot=N}; Bu=function(){}; dTE=function(e,N,y){this.callback=e;this.slot=N;this.zZ=y}; IbM=function(e,N,y){this.callback=e;this.slot=N;this.zZ=y;this.N=!1;this.J=0}; vqM=function(e,N,y){this.callback=e;this.slot=N;this.zZ=y}; X7=function(e){this.zZ=e}; Pu=function(e){g.x.call(this);this.ri=e;this.Zg=new Map}; d$=function(e,N){for(var y=[],w=g.c(e.Zg.values()),E=w.next();!E.done;E=w.next()){E=E.value;var A=E.trigger;A instanceof O_&&A.triggeringLayoutId===N&&y.push(E)}y.length?iF(e.ri(),y):YN("Survey is submitted but no registered triggers can be activated.")}; Ic=function(e,N,y){Pu.call(this,e);var w=this;this.wP=y;N.get().addListener(this);this.addOnDisposeCallback(function(){N.Ss()||N.get().removeListener(w)})}; vu=function(e){g.x.call(this);this.J=e;this.l6=!0;this.Zg=new Map;this.L=new Set;this.K=new Set;this.j=new Set;this.Z=new Set;this.N=new Set}; zB=function(e){g.x.call(this);this.J=e;this.Zg=new Map}; iP=function(e,N){for(var y=[],w=g.c(e.Zg.values()),E=w.next();!E.done;E=w.next())E=E.value,E.trigger.J===N.layoutId&&y.push(E);y.length&&iF(e.J(),y)}; Dz=function(e,N,y){g.x.call(this);var w=this;this.J=e;this.context=y;this.Zg=new Map;N.get().addListener(this);this.addOnDisposeCallback(function(){N.Ss()||N.get().removeListener(w)})}; g$=function(e,N,y,w,E){g.x.call(this);var A=this;this.N=e;this.oJ=N;this.zZ=y;this.Hk=w;this.context=E;this.l6=!0;this.Zg=new Map;this.J=new Set;y.get().addListener(this);this.addOnDisposeCallback(function(){y.Ss()||y.get().removeListener(A)})}; zan=function(e,N,y,w,E,A,T,p,C,r){if(Mb(e.Hk.get(),1).clientPlaybackNonce!==C)throw new U("Cannot register CueRange-based trigger for different content CPN",{trigger:y});e.Zg.set(y.triggerId,{md:new GK(N,y,w,E),cueRangeId:A});e.oJ.get().addCueRange(A,T,p,r,e);k6(e.context.wP.get())&&(C={},e.context.OP.g4("crr",(C.ca=N,C.tt=y.triggerType,C.st=w.slotType,C.lt=E==null?void 0:E.layoutType,C.cid=A,C.sm=T,C.em=p,C)))}; ix_=function(e,N){e=g.c(e.Zg.entries());for(var y=e.next();!y.done;y=e.next()){var w=g.c(y.value);y=w.next().value;w=w.next().value;if(N===w.cueRangeId)return y}return""}; V8=function(e,N){g.x.call(this);var y=this;this.j=e;this.N=new Map;this.K=new Map;this.J=null;N.get().addListener(this);this.addOnDisposeCallback(function(){N.Ss()||N.get().removeListener(y)}); var w;this.J=((w=N.get().nk)==null?void 0:w.slotId)||null}; DTJ=function(e,N){var y=[];e=g.c(e.values());for(var w=e.next();!w.done;w=e.next())w=w.value,w.slot.slotId===N&&y.push(w);return y}; fs=function(e){g.x.call(this);this.J=e;this.l6=!0;this.Zg=new Map}; QO=function(e,N,y){N=N.layoutId;for(var w=[],E=g.c(e.Zg.values()),A=E.next();!A.done;A=E.next())if(A=A.value,A.trigger instanceof qp){var T;if(T=A.trigger.layoutId===N){T=y;var p=diM.get(A.category);T=p?p===T:!1}T&&w.push(A)}w.length&&iF(e.J(),w)}; tH=function(e){g.x.call(this);this.J=e;this.l6=!0;this.Zg=new Map}; uP=function(e,N,y,w,E){g.x.call(this);var A=this;this.L=e;this.p$=N;this.zZ=y;this.Pk=w;this.J=null;this.l6=!0;this.Zg=new Map;this.K=new Map;N.get().addListener(this);this.addOnDisposeCallback(function(){N.Ss()||N.get().removeListener(A)}); E.get().addListener(this);this.addOnDisposeCallback(function(){E.Ss()||E.get().removeListener(A)})}; VR0=function(e){e.J&&(e.N&&(e.N.stop(),e.N.start()),gq5(e,"TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED"))}; gq5=function(e,N){for(var y=[],w=g.c(e.Zg.values()),E=w.next();!E.done;E=w.next())E=E.value,E.trigger.triggerType===N&&y.push(E);y.length>0&&iF(e.L(),y)}; qC=function(e,N,y,w,E){E=E===void 0?!0:E;for(var A=[],T=g.c(e.Zg.values()),p=T.next();!p.done;p=T.next()){p=p.value;var C=p.trigger;if(C.triggerType===N){if(C instanceof iR||C instanceof Dp||C instanceof ft){if(E&&C.breakDurationMs!==y)continue;if(!E&&C.breakDurationMs===y)continue;if(w.has(C.triggerId))continue}A.push(p)}}A.length>0&&iF(e.L(),A)}; fb9=function(e){e=e.adPlacementRenderer.config.adPlacementConfig;if(!e.prefetchModeConfig||!e.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;e=Number(e.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(e)||e<=0?0:Math.floor(Math.random()*e)}; tRs=function(e){e=e.adPlacementRenderer.config.adPlacementConfig;if(e.prefetchModeConfig&&e.prefetchModeConfig.cacheFetchRefreshDurationMs&&(e=Number(e.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(e)||e<=0)))return e}; Zz=function(e){e.J=null;e.Zg.clear();e.K.clear();e.N&&e.N.stop();e.j&&e.j.stop()}; xF=function(e){g.x.call(this);this.K=e;this.l6=!0;this.Zg=new Map;this.J=new Map;this.N=new Map}; uP_=function(e,N){var y=[];if(N=e.J.get(N.layoutId)){N=g.c(N);for(var w=N.next();!w.done;w=N.next())(w=e.N.get(w.value.triggerId))&&y.push(w)}return y}; jw=function(e){g.x.call(this);this.J=e;this.Zg=new Map}; qP3=function(e,N){for(var y=[],w=g.c(e.Zg.values()),E=w.next();!E.done;E=w.next())E=E.value,E.trigger instanceof hc&&E.trigger.slotId===N&&y.push(E);y.length>=1&&iF(e.J(),y)}; Zx0=function(e,N){var y={slotId:F1(N,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],Xh:"surface",clientMetadata:new EG([])},w=Object,E=w.assign;N=G5(N,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",y.slotId);N={layoutId:N,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",tM:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],E2:[],Xh:"surface", clientMetadata:new EG([]),o9:hkJ(!1,y.slotId,y.slotType,y.slotPhysicalPosition,y.Xh,y.slotEntryTrigger,y.slotFulfillmentTriggers,y.slotExpirationTriggers,N,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return E.call(w,{},e,{GZ9:!0,slot:y,layout:N})}; dfJ=function(e,N,y,w){var E=e.kind;w=w?!1:!e.hideCueRangeMarker;switch(E){case "AD_PLACEMENT_KIND_START":return w={OT:new de(-0x8000000000000,-0x8000000000000),hC:w},y!=null&&(w.zJ=new de(-0x8000000000000,-0x8000000000000)),w;case "AD_PLACEMENT_KIND_END":return w={OT:new de(0x7ffffffffffff,0x8000000000000),hC:w},y!=null&&(w.zJ=new de(Math.max(0,N-y),0x8000000000000)),w;case "AD_PLACEMENT_KIND_MILLISECONDS":E=e.adTimeOffset;E.offsetStartMilliseconds||YN("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); E.offsetEndMilliseconds||YN("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");e=Number(E.offsetStartMilliseconds);E=Number(E.offsetEndMilliseconds);E===-1&&(E=N);if(Number.isNaN(e)||Number.isNaN(E)||e>E)return new U("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:e,offsetEndMs:E},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",E===N&&e-500<=E);w={OT:new de(e,E),hC:w};if(y!=null){e=Math.max(0,e-y);if(e===E)return w;w.zJ=new de(e,E)}return w; default:return new U("AdPlacementKind not supported in convertToRange.",{kind:E,adPlacementConfig:e})}}; oq1=function(e){var N=e.startSecs*1E3;return new de(N,N+e.Vj*1E3)}; xT_=function(e){if(!e||!e.adPlacements&&!e.adSlots)return!1;for(var N=g.c(e.adPlacements||[]),y=N.next();!y.done;y=N.next())if(y=y.value)if(y=y.adPlacementRenderer,y!=null&&(y.config&&y.config.adPlacementConfig&&y.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;e=g.c(e.adSlots||[]);for(N=e.next();!N.done;N=e.next()){var w=y=void 0;if(((y=g.m(N.value,gj))==null?void 0:(w=y.adSlotMetadata)==null?void 0:w.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; ns=function(e){this.wP=e;this.N=new Map;this.J=new Map;this.K=new Map}; F1=function(e,N){if(Q8(e.wP.get())){var y=e.N.get(N)||0;y++;e.N.set(N,y);return N+"_"+y}return g.PX(16)}; G5=function(e,N,y){if(Q8(e.wP.get())){var w=e.J.get(N)||0;w++;e.J.set(N,w);return y+"_"+N+"_"+w}return g.PX(16)}; aQ=function(e,N){if(Q8(e.wP.get())){var y=e.K.get(N)||0;y++;e.K.set(N,y);return N+"_"+y}return g.PX(16)}; js5=function(e){var N=[new FP(e.rL),new hw(e.cT),new Lj(e.adPlacementConfig),new Pp(e.videoLengthSeconds),new jR(e.wF)];e.instreamAdPlayerOverlayRenderer&&N.push(new EP(e.instreamAdPlayerOverlayRenderer));e.playerOverlayLayoutRenderer&&N.push(new Aw(e.playerOverlayLayoutRenderer));e.FO&&N.push(new NT(e.FO));return N}; nq5=function(e,N,y,w,E,A){e=y.inPlayerLayoutId?y.inPlayerLayoutId:G5(A,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",e);var T,p,C=y.instreamAdPlayerOverlayRenderer?(T=y.instreamAdPlayerOverlayRenderer)==null?void 0:T.adLayoutLoggingData:(p=y.playerOverlayLayoutRenderer)==null?void 0:p.adLayoutLoggingData;T={layoutId:e,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Xh:N};return{layoutId:e,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",tM:new Map,layoutExitNormalTriggers:[new vh(function(r){return aQ(A, r)},y.rL)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],E2:[],Xh:N,clientMetadata:w,o9:E(T),adLayoutLoggingData:C}}; ml=function(e,N){var y=this;this.N=e;this.wP=N;this.J=function(w){return aQ(y.N.get(),w)}}; MA5=function(e,N,y,w,E,A){y=new EG([new TQ(y),new Lj(w)]);N=G5(e.N.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",N);w={layoutId:N,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Xh:"core"};return{layoutId:N,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",tM:new Map,layoutExitNormalTriggers:[new vh(function(T){return aQ(e.N.get(),T)},E)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],E2:[],Xh:"core",clientMetadata:y,o9:A(w),adLayoutLoggingData:void 0}}; KN=function(e,N,y,w,E){var A=js5(w);return nq5(N,y,w,new EG(A),E,e.N.get())}; QsF=function(e,N,y,w,E){var A=js5(w);A.push(new Gj(w.wy));A.push(new UR(w.Oh));return nq5(N,y,w,new EG(A),E,e.N.get())}; r$=function(e,N,y,w,E,A,T,p,C,r){N=G5(e.N.get(),y,N);var Y={layoutId:N,layoutType:y,Xh:"core"},M=new Map;T&&M.set("impression",T);T=[new tc(e.J,E,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];r&&T.push(new IX(e.J,r,["normal"]));return{layoutId:N,layoutType:y,tM:M,layoutExitNormalTriggers:T,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],E2:[],Xh:"core",clientMetadata:new EG([w,new Lj(A),new FP(E)]),o9:p(Y),adLayoutLoggingData:C}}; $F=function(e,N,y,w,E,A,T,p,C){N=G5(e.N.get(),y,N);var r={layoutId:N,layoutType:y,Xh:"core"},Y=[new tc(e.J,E,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];C&&Y.push(new IX(e.J,C,["normal"]));return{layoutId:N,layoutType:y,tM:new Map,layoutExitNormalTriggers:Y,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],E2:[],Xh:"core",clientMetadata:new EG([w,new Lj(A),new FP(E)]),o9:T(r),adLayoutLoggingData:p}}; NC=function(e,N,y){var w=[];w.push(new uR(e.J,y));N&&w.push(N);return w}; ew=function(e,N,y,w,E,A,T){var p={layoutId:N,layoutType:y,Xh:"core"};return{layoutId:N,layoutType:y,tM:new Map,layoutExitNormalTriggers:T,layoutExitSkipTriggers:[new Bh(e.J,N)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],E2:[],Xh:"core",clientMetadata:new EG([new Kj(w),new Lj(E)]),o9:A(p),adLayoutLoggingData:w.adLayoutLoggingData}}; nN=function(e,N,y,w,E,A,T,p){var C={layoutId:N,layoutType:A,Xh:"core"};return{layoutId:N,layoutType:A,tM:new Map,layoutExitNormalTriggers:[new vh(e.J,y)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],E2:[],Xh:"core",clientMetadata:new EG([new Lj(w)].concat(g.B(T))),o9:E(C),adLayoutLoggingData:p}}; w$=function(e,N,y,w){if(e.wP.get().HE(N.kind==="AD_PLACEMENT_KIND_START"))if(y===void 0)YN("Expected SSAP layout ID in renderer",void 0,void 0,{caller:w});else return y}; Wb5=function(e,N,y,w,E,A,T,p,C,r,Y,M,l){e=y8(e,N,y,E,A,T,p,C,M,w$(e,y,w.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),l);N=e.sL;y=new SR(e.wV);w=e.layoutExitSkipTriggers;r>0&&(N.push(y),N.push(new eR(r)),w=[]);N.push(new ao(Y));return{Ww:{layoutId:e.layoutId,layoutType:e.layoutType,tM:e.tM,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],E2:[],Xh:e.Xh,clientMetadata:new EG(N),o9:e.o9,adLayoutLoggingData:e.adLayoutLoggingData}, Tq:w,rN:e.layoutExitMuteTriggers,JO:e.layoutExitUserInputSubmittedTriggers,FX:e.E2,V6:e.V6}}; UDJ=function(e,N,y,w,E,A,T,p,C,r){N=y8(e,N,y,w,A,new Map,T,function(Y){return p(Y,C)},void 0,w$(e,y,E.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey")); e=new O_(e.J,N.wV);y=new SR(N.wV);r=new ao(r);return{Ww:{layoutId:N.layoutId,layoutType:N.layoutType,tM:N.tM,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],E2:[],Xh:N.Xh,clientMetadata:new EG([].concat(g.B(N.sL),[y,r])),o9:N.o9,adLayoutLoggingData:N.adLayoutLoggingData},Tq:N.layoutExitSkipTriggers,rN:N.layoutExitMuteTriggers,JO:[].concat(g.B(N.layoutExitUserInputSubmittedTriggers),[e]),FX:N.E2,V6:N.V6}}; y8=function(e,N,y,w,E,A,T,p,C,r,Y){N=r!=null?r:G5(e.N.get(),"LAYOUT_TYPE_MEDIA_BREAK",N);r={layoutId:N,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Xh:"adapter"};p=p(N);var M=A6(p.clientMetadata,"metadata_type_fulfilled_layout");M||YN("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var l=M?M.layoutId:"";y=[new Lj(y),new nx(w),new Hp(E)];M&&y.push(new os(M.layoutType));Y&&y.push(new Db(Y));return{layoutId:N,layoutType:"LAYOUT_TYPE_MEDIA_BREAK", tM:A,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new jm(e.J,l)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],E2:[],Xh:"adapter",sL:y,o9:T(r),adLayoutLoggingData:C,V6:p,wV:l}}; r5E=function(e,N,y,w,E,A,T,p,C,r,Y){e=mTP(e,N,"core",y,w,E,A,T,p,C,r,void 0,Y);return{layoutId:e.layoutId,layoutType:e.layoutType,tM:e.tM,layoutExitNormalTriggers:e.layoutExitNormalTriggers,layoutExitSkipTriggers:e.layoutExitSkipTriggers,layoutExitMuteTriggers:e.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:e.layoutExitUserInputSubmittedTriggers,E2:e.E2,Xh:e.Xh,clientMetadata:new EG(e.dY),o9:e.o9,adLayoutLoggingData:e.adLayoutLoggingData}}; Jw3=function(e,N,y,w,E,A,T,p,C,r,Y,M,l){N=mTP(e,N,"adapter",y,w,E,A,T,p,C,Y,M,l);w=N.layoutExitSkipTriggers;E=N.dY;y.adPodSkipTarget&&y.adPodSkipTarget>0&&(E.push(r),E.push(new eR(y.adPodSkipTarget)),w=[]);E.push(new ao(p.adPodIndex));y.isCritical&&(w=[new IX(e.J,N.layoutId,["error"])].concat(g.B(w)));return{Ww:{layoutId:N.layoutId,layoutType:N.layoutType,tM:N.tM,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],E2:[],Xh:N.Xh,clientMetadata:new EG(E), o9:N.o9,adLayoutLoggingData:N.adLayoutLoggingData},Tq:w,rN:N.layoutExitMuteTriggers,JO:N.layoutExitUserInputSubmittedTriggers,FX:N.E2}}; mTP=function(e,N,y,w,E,A,T,p,C,r,Y,M,l){var F={layoutId:N,layoutType:"LAYOUT_TYPE_MEDIA",Xh:y};E=[new Lj(E),new sR(C),new yS(w.externalVideoId),new wK(p),new Hp({impressionCommands:w.impressionCommands,abandonCommands:w.onAbandonCommands,completeCommands:w.completeCommands,progressCommands:w.adVideoProgressCommands}),new dK(A),new cp({current:null}),new Pp(T)];(A=w.playerOverlay.instreamAdPlayerOverlayRenderer)&&E.push(new EP(A));(T=w.playerOverlay.playerOverlayLayoutRenderer)&&E.push(new Aw(T)); M&&E.push(new Is(M));(M=w.playerUnderlay)&&E.push(new TQ(M));p=F1(e.N.get(),"SLOT_TYPE_IN_PLAYER");M=(M=A?A.elementId:T==null?void 0:T.layoutId)?M:G5(e.N.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",p);E.push(new SR(M));E.push(new bl(p));E.push(new Db(C.adPodIndex));w.adNextParams&&E.push(new Qg(w.adNextParams));w.shrunkenPlayerBytesConfig&&E.push(new Cx(w.shrunkenPlayerBytesConfig));w.clickthroughEndpoint&&E.push(new HM(w.clickthroughEndpoint));w.legacyInfoCardVastExtension&&E.push(new QS(w.legacyInfoCardVastExtension)); w.sodarExtensionData&&E.push(new vp(w.sodarExtensionData));Y&&E.push(new xq(Y));E.push(new OP(Pt(w.pings)));C=dF(w.pings);if(l){a:{l=g.c(l);for(Y=l.next();!Y.done;Y=l.next())if(Y=Y.value,Y.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(A=g.m(Y.fulfillmentContent.fulfilledLayout,Br))&&(A=g.m(A.renderingContent,cr))&&A.associatedPlayerBytesLayoutId===N){l=Y;break a}l=void 0}l&&E.push(new Jw(l))}return{layoutId:N,layoutType:"LAYOUT_TYPE_MEDIA",tM:C,layoutExitNormalTriggers:[new qp(e.J,N)],layoutExitSkipTriggers:w.skipOffsetMilliseconds? [new jm(e.J,M)]:[],layoutExitMuteTriggers:[new jm(e.J,M)],layoutExitUserInputSubmittedTriggers:[],E2:[],Xh:y,dY:E,o9:r(F),adLayoutLoggingData:w.adLayoutLoggingData}}; e49=function(e,N,y,w,E,A,T,p,C){w.every(function(Y){return Nx(Y,[],["LAYOUT_TYPE_MEDIA"])})||YN("Unexpect subLayout type for DAI composite layout"); N=G5(e.N.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",N);var r={layoutId:N,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Xh:"core"};return{layoutId:N,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",tM:new Map,layoutExitNormalTriggers:[new zK(e.J)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],E2:[],Xh:"core",clientMetadata:new EG([new zQ(y),new il(p),new Bp(w),new Lj(E),new tw(A),new gK({}),new GQ(C)]),o9:T(r)}}; G$0=function(e){return e!=null}; Hu=function(e,N,y){var w=this;this.N=e;this.K=N;this.wP=y;this.J=function(E){return aQ(w.N.get(),E)}}; SP5=function(e,N,y,w,E,A,T){if(!y.prefetchModeConfig)return new U("AdPlacementConfig for Live Prefetch is missing prefetch_config");y=y.prefetchModeConfig;w*=1E3;var p=[];if(!y.breakLengthMs)return new U("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var C=g.c(y.breakLengthMs),r=C.next();!r.done;r=C.next())if(r=r.value,Number(r)>0){var Y=w+Number(y.startTimeOffsetMs),M=Y+Number(y.cacheFetchSmearingDurationMs);r={OT:new de(M,M+Number(r)),hC:!1,zJ:new de(Math.floor(Y+Math.random()* Number(y.cacheFetchSmearingDurationMs)),M),cueProcessedMs:w?w:Y};Y=[];Y.push(new as({}));M=[];M.push(new xA(e.J));M.push(new jgH(e.J));T&&Y.push(new gK({}));p.push(Vw(e,N,E,r,A,Y,M))}return p}; Vw=function(e,N,y,w,E,A,T){A=A===void 0?[]:A;T=T===void 0?[]:T;var p=F1(e.N.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),C=[];T=g.c(T);for(var r=T.next();!r.done;r=T.next())C.push(r.value);w.zJ&&w.zJ.start!==w.OT.start&&C.push(new VV(e.J,y,new de(w.zJ.start,w.OT.start),!1));C.push(new VV(e.J,y,new de(w.OT.start,w.OT.end),w.hC));w={getAdBreakUrl:N.getAdBreakUrl,MY:w.OT.start,VH:w.OT.end,cueProcessedMs:w.cueProcessedMs};N=new Hh(e.J,p);A=[new qT(w)].concat(g.B(A));return{slotId:p,slotType:"SLOT_TYPE_AD_BREAK_REQUEST", slotPhysicalPosition:1,slotEntryTrigger:N,slotFulfillmentTriggers:C,slotExpirationTriggers:[new Zp(e.J,y),new QV(e.J,p),new mz(e.J,p)],Xh:"core",clientMetadata:new EG(A),adSlotLoggingData:E}}; KZ9=function(e,N,y){var w=[];y=g.c(y);for(var E=y.next();!E.done;E=y.next())w.push(Hx_(e,N,E.value));return w}; Hx_=function(e,N,y){return y.triggeringSlotId!=null&&y.triggeringSlotId===e?y.clone(N):y}; Z29=function(e,N,y,w,E){return WZ5(e,N,y,w,E)}; Ojn=function(e,N,y,w){var E=F1(e.N.get(),"SLOT_TYPE_IN_PLAYER");return WZ5(e,E,N,y,w)}; WZ5=function(e,N,y,w,E){var A=new dy(e.J,y),T=[new nt(e.J,N)];e=[new QV(e.J,N),new Zp(e.J,w)];return{slotId:N,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:A,slotFulfillmentTriggers:T,slotExpirationTriggers:e,Xh:"core",clientMetadata:new EG([new ul(E({slotId:N,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Xh:"core",slotEntryTrigger:A,slotFulfillmentTriggers:T,slotExpirationTriggers:e},y))]),adSlotLoggingData:void 0}}; ppF=function(e,N,y,w,E,A){var T=F1(e.N.get(),"SLOT_TYPE_PLAYER_BYTES"),p=F1(e.N.get(),"SLOT_TYPE_IN_PLAYER"),C=G5(e.N.get(),"LAYOUT_TYPE_SURVEY",p);w=Ks(e,N,y,w);var r=[new nt(e.J,T)];y=[new QV(e.J,T),new Zp(e.J,y),new Bh(e.J,C)];if(w instanceof U)return w;p=A({slotId:T,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Xh:"core",slotEntryTrigger:w,slotFulfillmentTriggers:r,slotExpirationTriggers:y},{slotId:p,layoutId:C});A=p.ixP;p=p.P9s;return[{slotId:T,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:AH(e,N,T,w),slotFulfillmentTriggers:TB(e,N,T,r),slotExpirationTriggers:y,Xh:"core",clientMetadata:new EG([new ul(A),new UP(JH(N)),new sP({dD:e.dD(N)})]),adSlotLoggingData:E},p]}; JH=function(e){return e.kind==="AD_PLACEMENT_KIND_START"}; $D1=function(e,N,y,w,E){E=E?E:F1(e.N.get(),"SLOT_TYPE_IN_PLAYER");y=new dy(e.J,y);var A=[new nt(e.J,E)];e=[new Zp(e.J,N),new QV(e.J,E)];return{slotId:E,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:y,slotFulfillmentTriggers:A,slotExpirationTriggers:e,Xh:"core",clientMetadata:new EG([new ul(w({slotId:E,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Xh:"core",slotEntryTrigger:y,slotFulfillmentTriggers:A,slotExpirationTriggers:e}))])}}; YR9=function(e,N,y,w){var E=F1(e.N.get(),"SLOT_TYPE_PLAYER_UNDERLAY");y=new dy(e.J,y);var A=[new nt(e.J,E)];e=[new Zp(e.J,N),new QV(e.J,E)];return{slotId:E,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:y,slotFulfillmentTriggers:A,slotExpirationTriggers:e,Xh:"core",clientMetadata:new EG([new ul(w({slotId:E,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,Xh:"core",slotEntryTrigger:y,slotFulfillmentTriggers:A,slotExpirationTriggers:e}))])}}; wMF=function(e,N,y,w,E,A,T){var p=F1(e.N.get(),"SLOT_TYPE_IN_PLAYER"),C=G5(e.N.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",p);w=Oxs(e,w,A,T,C);if(w instanceof U)return w;T=[new nt(e.J,p)];E=[new Zp(e.J,A),new nt(e.J,E),new Wh(e.J,E)];y=$2(y,{slotId:p,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Xh:"core",slotEntryTrigger:w,slotFulfillmentTriggers:T,slotExpirationTriggers:E});e=e.K.get();A={layoutId:C,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Xh:"core"};N={layoutId:C,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", tM:new Map,layoutExitNormalTriggers:[new RK9(e.J,C,N.durationMs)],layoutExitSkipTriggers:[new UYH(e.J,C,N.durationMs)],E2:[new GHM(e.J,C)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xh:"core",clientMetadata:new EG([new mZ(N)]),o9:y(A)};return{slotId:p,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Xh:"core",slotEntryTrigger:w,slotFulfillmentTriggers:T,slotExpirationTriggers:E,clientMetadata:new EG([new ul(N)])}}; Hjn=function(e,N,y,w,E,A){N=Ks(e,N,y,w);if(N instanceof U)return N;var T=N instanceof VV?new KoM(e.J,y,N.J):null;w=F1(e.N.get(),"SLOT_TYPE_IN_PLAYER");var p=[new nt(e.J,w)];e=[new Zp(e.J,y),new QV(e.J,w)];A=A({slotId:w,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Xh:"core",slotEntryTrigger:N,slotFulfillmentTriggers:p,slotExpirationTriggers:e},T);return A instanceof wX?new U(A):{slotId:w,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:N,slotFulfillmentTriggers:p,slotExpirationTriggers:e, Xh:"core",clientMetadata:new EG([new ul(A)]),adSlotLoggingData:E}}; Qo5=function(e,N,y,w){var E=F1(e.N.get(),"SLOT_TYPE_IN_PLAYER"),A=new kA(e.J,N),T=[new Kt(e.J,E)];e=[new Zp(e.J,N),new QV(e.J,E)];return{slotId:E,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:A,slotFulfillmentTriggers:T,slotExpirationTriggers:e,Xh:"core",clientMetadata:new EG([new ul(w({slotId:E,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Xh:"core",slotEntryTrigger:A,slotFulfillmentTriggers:T,slotExpirationTriggers:e}))]),adSlotLoggingData:y}}; H2_=function(e,N,y,w){var E=F1(e.N.get(),"SLOT_TYPE_IN_PLAYER");y=new dy(e.J,y);var A=[new nt(e.J,E)],T=[new QV(e.J,E),new Zp(e.J,N)];A={slotId:E,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Xh:"core",slotEntryTrigger:y,slotFulfillmentTriggers:A,slotExpirationTriggers:T};return{slotId:E,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:y,slotFulfillmentTriggers:[new nt(e.J,E)],slotExpirationTriggers:[new Zp(e.J,N),new QV(e.J,E)],Xh:"core",clientMetadata:new EG([new ul(w(A))])}}; nC9=function(e,N,y,w,E){var A=F1(e.N.get(),"SLOT_TYPE_IN_PLAYER");y=new Ph(e.J,w,y);w=[new nt(e.J,A)];e=[new Zp(e.J,N)];return{slotId:A,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:y,slotFulfillmentTriggers:w,slotExpirationTriggers:e,Xh:"core",clientMetadata:new EG([new ul(E({slotId:A,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Xh:"core",slotEntryTrigger:y,slotFulfillmentTriggers:w,slotExpirationTriggers:e}))])}}; tyJ=function(e,N,y,w,E,A){var T=F1(e.N.get(),N);return Wu(e,T,N,new dy(e.J,w),[new Zp(e.J,y),new QV(e.J,T),new IX(e.J,w,["error"])],E,A)}; fK3=function(e,N,y,w,E,A,T){var p=F1(e.N.get(),N);return Wu(e,p,N,new IX(e.J,E,["normal"]),[new Zp(e.J,y),new QV(e.J,p),new IX(e.J,w,["error"])],A,T)}; i2H=function(e,N,y,w,E){var A=F1(e.N.get(),N);return Wu(e,A,N,new kA(e.J,y),[new Zp(e.J,y),new QV(e.J,A)],w,E)}; ZjH=function(e,N,y,w,E){y=y?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var A=F1(e.N.get(),y);N=new kA(e.J,N);var T=[new nt(e.J,A)];e=[new QV(e.J,A)];return{slotId:A,slotType:y,slotPhysicalPosition:1,slotEntryTrigger:N,slotFulfillmentTriggers:T,slotExpirationTriggers:e,Xh:"core",clientMetadata:new EG([new ul(E({slotId:A,slotType:y,slotPhysicalPosition:1,Xh:"core",slotEntryTrigger:N,slotFulfillmentTriggers:T,slotExpirationTriggers:e}))]),adSlotLoggingData:w}}; Uf5=function(e,N,y,w){var E=F1(e.N.get(),"SLOT_TYPE_PLAYER_BYTES"),A=new gy(e.J),T=[new Kt(e.J,E)];e=[new Zp(e.J,N)];return{slotId:E,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:A,slotFulfillmentTriggers:T,slotExpirationTriggers:e,Xh:"core",clientMetadata:new EG([new ul(w({slotId:E,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Xh:"core",slotEntryTrigger:A,slotFulfillmentTriggers:T,slotExpirationTriggers:e})),new gK({})]),adSlotLoggingData:y}}; wp1=function(e,N){return lbF(e.wP.get())?new IX(e.J,N,["normal","error","skipped"]):new IX(e.J,N,["normal"])}; J5s=function(e,N,y,w,E){N=wp1(e,N);e=EU(e,N,y);E=E({slotId:e.slotId,slotType:e.slotType,slotPhysicalPosition:e.slotPhysicalPosition,slotEntryTrigger:e.slotEntryTrigger,slotFulfillmentTriggers:e.slotFulfillmentTriggers,slotExpirationTriggers:e.slotExpirationTriggers,Xh:e.Xh});return E instanceof U?E:{iz:Object.assign({},e,{clientMetadata:new EG([new ul(E.layout)]),adSlotLoggingData:w}),n$:E.n$}}; pME=function(e,N,y,w,E,A,T){y=EqH(e,N,y,w);if(y instanceof U)return y;T=T({slotId:y.slotId,slotType:y.slotType,slotPhysicalPosition:y.slotPhysicalPosition,slotEntryTrigger:y.slotEntryTrigger,slotFulfillmentTriggers:y.slotFulfillmentTriggers,slotExpirationTriggers:y.slotExpirationTriggers,Xh:y.Xh});if(T instanceof U)return T;w=[new UP(JH(N)),new ul(T.layout),new sP({dD:e.dD(N)})];A&&w.push(new Kx({}));return{iz:{slotId:y.slotId,slotType:y.slotType,slotPhysicalPosition:y.slotPhysicalPosition,slotEntryTrigger:AH(e, N,y.slotId,y.slotEntryTrigger),slotFulfillmentTriggers:TB(e,N,y.slotId,y.slotFulfillmentTriggers),slotExpirationTriggers:y.slotExpirationTriggers,Xh:y.Xh,clientMetadata:new EG(w),adSlotLoggingData:E},n$:T.n$}}; AH=function(e,N,y,w){return e.wP.get().HE(JH(N))?new hc(e.J,y):w}; TB=function(e,N,y,w){return e.wP.get().HE(JH(N))?[new Kt(e.J,y)]:w}; EU=function(e,N,y){var w=F1(e.N.get(),"SLOT_TYPE_PLAYER_BYTES"),E=[new nt(e.J,w)];e=[new QV(e.J,w),new Zp(e.J,y)];return{slotId:w,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:N,slotFulfillmentTriggers:E,slotExpirationTriggers:e,Xh:"core"}}; EqH=function(e,N,y,w){N=Ks(e,N,y,w);return N instanceof U?N:EU(e,N,y)}; jon=function(e,N,y,w,E,A){var T=F1(e.N.get(),"SLOT_TYPE_FORECASTING");N=Ks(e,N,y,w);if(N instanceof U)return N;w=[new nt(e.J,T)];e=[new QV(e.J,T),new Zp(e.J,y)];return{slotId:T,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:N,slotFulfillmentTriggers:w,slotExpirationTriggers:e,Xh:"core",clientMetadata:new EG([new ul(A({slotId:T,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,Xh:"core",slotEntryTrigger:N,slotFulfillmentTriggers:w,slotExpirationTriggers:e}))]),adSlotLoggingData:E}}; RaF=function(e,N,y,w,E){var A=!N.hideCueRangeMarker;switch(N.kind){case "AD_PLACEMENT_KIND_START":return new kA(e.J,y);case "AD_PLACEMENT_KIND_MILLISECONDS":return e=dfJ(N,w),e instanceof U?e:E(e.OT,A);case "AD_PLACEMENT_KIND_END":return new Xv(e.J,y,A);default:return new U("Cannot construct entry trigger",{kind:N.kind})}}; Oxs=function(e,N,y,w,E){return RaF(e,N,y,w,function(A,T){return new HVE(e.J,y,A,T,E)})}; Ks=function(e,N,y,w){return RaF(e,N,y,w,function(E,A){return new VV(e.J,y,E,A)})}; Wu=function(e,N,y,w,E,A,T){e=[new Kt(e.J,N)];return{slotId:N,slotType:y,slotPhysicalPosition:1,slotEntryTrigger:w,slotFulfillmentTriggers:e,slotExpirationTriggers:E,Xh:"core",clientMetadata:new EG([new ul(T({slotId:N,slotType:y,slotPhysicalPosition:1,Xh:"core",slotEntryTrigger:w,slotFulfillmentTriggers:e,slotExpirationTriggers:E}))]),adSlotLoggingData:A}}; OU=function(e,N){g.x.call(this);this.wP=e;this.J=N;this.eventCount=0}; Rc=function(e,N,y,w){OU.call(this,e,N);this.wP=e;this.Hk=y;this.context=w}; GB=function(){this.J=new Map}; sU=function(e,N){var y=this;this.currentState="wait";this.onSuccess=[];this.onFailure=[];this.currentState=e;this.result=N.result;this.error=N.error;N.promise&&N.promise.then(function(w){UU(y,w)},function(w){Ls(y,w)})}; Nc=function(e){if(ac(e)){if(e instanceof sU)return e;if(eq(e))return new sU("wait",{promise:e})}return new sU("done",{result:e})}; yA=function(e){return new sU("fail",{error:e})}; wQ=function(e){try{return Nc(e())}catch(N){return yA(N)}}; A$=function(e,N){var y=new sU("wait",{});e.onSuccess.push(function(w){try{var E=N(w);UU(y,E)}catch(A){Ls(y,A)}}); e.onFailure.push(function(w){Ls(y,w)}); Ej(e);return y}; Tm=function(e,N){var y=new sU("wait",{});e.onSuccess.push(function(w){UU(y,w)}); e.onFailure.push(function(w){try{var E=N(w);UU(y,E)}catch(A){Ls(y,A)}}); Ej(e);return y}; UU=function(e,N){if(ac(N)){if(eq(N)){N.then(function(y){UU(e,y)},function(y){Ls(e,y)}); return}if(N instanceof sU){A$(N,function(y){UU(e,y)}); Tm(N,function(y){Ls(e,y)}); return}}e.currentState="done";e.result=N;Ej(e)}; Ls=function(e,N){e.currentState="fail";e.error=N;Ej(e)}; Ej=function(e){if(e.currentState==="done"){var N=e.onSuccess;e.onSuccess=[];e.onFailure=[];N=g.c(N);for(var y=N.next();!y.done;y=N.next())y=y.value,y(e.result)}else if(e.currentState==="fail")for(N=e.onFailure,e.onSuccess=[],e.onFailure=[],N=g.c(N),y=N.next();!y.done;y=N.next())y=y.value,y(e.error)}; UT9=function(e){return function(){return GQs(e.apply(this,g.iE.apply(0,arguments)))}}; GQs=function(e){return wQ(function(){return J$(e,e.next())})}; J$=function(e,N){return N.done?Nc(N.value):Tm(A$(N.value.jk,function(y){return J$(e,e.next(y))}),function(y){return J$(e,e.throw(y))})}; CA=function(e){var N=e.hours||0;var y=e.minutes||0,w=e.seconds||0;N=w+y*60+N*3600+(e.days||0)*86400+(e.weeks||0)*604800+(e.months||0)*2629800+(e.years||0)*31557600;N<=0?N={hours:0,minutes:0,seconds:0}:(e=N,N=Math.floor(e/3600),e%=3600,y=Math.floor(e/60),w=Math.floor(e%60),N={hours:N,minutes:y,seconds:w});var E=N.hours===void 0?0:N.hours;y=N.minutes===void 0?0:N.minutes;e=N.seconds===void 0?0:N.seconds;w=E>0;N=[];if(w){E=(new Intl.NumberFormat("en-u-nu-latn")).format(E);var A=["fr"],T="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(" "); E="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(pA)?E.replace(",","\u00a0"):A.includes(pA)?E.replace(",","\u202f"):T.includes(pA)?E.replace(",","."):E;N.push(E)}w=w===void 0?!1:w;y=(["af","be","lt"].includes(pA)||w)&&y<10?LZs().format(y):(new Intl.NumberFormat("en-u-nu-latn")).format(y);N.push(y);y=LZs().format(e);N.push(y);y=":";"da fi id si sr sr-Latn".split(" ").includes(pA)&&(y=".");return N.join(y)}; LZs=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; ssP=function(e,N){var y,w;e=((y=e.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(w=y.videoAuthorizationToken)==null?void 0:w.credentialTransferTokens)||[];for(y=0;yN;e=y}else e=!1;return e}; F$E=function(e){e=e.split("");dQ.Te(e,26);dQ.gh(e,64);dQ.Te(e,43);dQ.gh(e,57);dQ.nU(e,2);dQ.gh(e,77);dQ.nU(e,2);dQ.Te(e,41);dQ.gh(e,20);return e.join("")}; g.Ix=function(e,N){return e.qg+"timedtext_video?ref=player&v="+N.videoId}; g.SG1=function(e){var N=this;this.videoData=e;e={};this.J=(e.c1a=function(){var y=[];if(g.XB.isInitialized()){var w="";N.videoData&&N.videoData.VY&&(w=N.videoData.VY+("&r1b="+N.videoData.clientPlaybackNonce));var E={};w=(E.atr_challenge=w,E);KV("bg_v",void 0,"player_att");(w=lF0(w))?(KV("bg_s",void 0,"player_att"),y.push("r1a="+w)):(KV("bg_e",void 0,"player_att"),y.push("r1c=2"))}else KV("bg_e",void 0,"player_att"),window.trayride||window.botguard?y.push("r1c=1"):y.push("r1c=4");y.push("r1d="+g.XB.getState()); return y.join("&")},e.c6a=function(y){return"r6a="+(Number(y.c)^C2())},e.c6b=function(y){return"r6b="+(Number(y.c)^Number(g.Lb("CATSTAT",0)))},e); this.videoData&&this.videoData.VY?this.rK=AE(this.videoData.VY):this.rK={}}; g.o20=function(e){if(e.videoData&&e.videoData.VY){for(var N=[e.videoData.VY],y=g.c(Object.keys(e.J)),w=y.next();!w.done;w=y.next())w=w.value,e.rK[w]&&e.J[w]&&(w=e.J[w](e.rK))&&N.push(w);return N.join("&")}return null}; g.v1=function(e,N){MK0(e,{pwq:g.Y2(N.experiments,"bg_vm_reinit_threshold"),cspNonce:N.cspNonce})}; bnJ=function(){var e=XMLHttpRequest.prototype.fetch;return!!e&&e.length===3}; zm=function(e){e=e===void 0?2592E3:e;if(e>0&&!(OkM()>(0,g.iC)()-e*1E3))return 0;e=g.qI("yt-player-quality");if(typeof e==="string"){if(e=g.q5[e],e>0)return e}else if(e instanceof Object)return e.quality;return 0}; im=function(){var e=g.qI("yt-player-proxima-pref");return e==null?null:e}; hs9=function(){var e=g.qI("yt-player-quality");if(e instanceof Object&&e.quality&&e.previousQuality){if(e.quality>e.previousQuality)return 1;if(e.quality0&&N[0]?e.getAutoplayPolicy(N[0]):e.getAutoplayPolicy("mediaelement");if(dx3[y])return dx3[y]}}catch(w){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; qc=function(e){return e.UY||e.IV||e.mutedAutoplay}; IF9=function(e,N){return qc(e)?N!==1&&N!==2&&N!==0?"AUTOPLAY_STATUS_UNAVAILABLE":e.TH?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; v2P=function(e,N,y){var w=N.X();e.thirdParty||(e.thirdParty={});w.ancestorOrigins&&(e.thirdParty.embeddedPlayerContext=Object.assign({},e.thirdParty.embeddedPlayerContext,{ancestorOrigins:w.ancestorOrigins}));w.T("embeds_enable_autoplay_and_visibility_signals")&&(w.y_!=null&&(e.thirdParty.embeddedPlayerContext=Object.assign({},e.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(w.y_)})),w.zg&&(e.thirdParty.embeddedPlayerContext=Object.assign({},e.thirdParty.embeddedPlayerContext,{visibilityFractionSource:w.zg})), e.thirdParty.embeddedPlayerContext=Object.assign({},e.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:um(),autoplayIntended:qc(N),autoplayStatus:IF9(N,y)}))}; DxF=function(e,N){ER(e,2,N.IS,ZM,3);ER(e,3,N.N0,zs1,3);W8(e,4,N.onesieUstreamerConfig);W8(e,9,N.eL);ER(e,10,N.v4,xB,3);ER(e,15,N.reloadPlaybackParams,in9,3)}; VK_=function(e,N){ER(e,1,N.formatId,jq,3);H8(e,2,N.startTimeMs);H8(e,3,N.durationMs);H8(e,4,N.qO);H8(e,5,N.wQ);ER(e,9,N.qmB,g20,3);ER(e,11,N.vyG,nA,1);ER(e,12,N.A9,nA,1)}; fF3=function(e,N){Ol(e,1,N.videoId);H8(e,2,N.lmt)}; g20=function(e,N){if(N.B0)for(var y=0;y>31));H8(e,16,N.Vsq);H8(e,17,N.detailedNetworkType);H8(e,18,N.eq);H8(e,19,N.Wa);H8(e,21,N.wf1);H8(e,23,N.Cr);H8(e,28,N.Sb);H8(e,29,N.C6s);H8(e,34,N.visibility);y=N.playbackRate;if(y!==void 0){var w=new ArrayBuffer(4);(new Float32Array(w))[0]=y;y=(new Uint32Array(w))[0];if(y!==void 0)for(mX(e,285),Qe(e,4),w=0;w<4;)e.view.setUint8(e.pos,y&255),y>>=8,e.pos+=1,w+=1}H8(e,36,N.rr); ER(e,38,N.mediaCapabilities,qGM,3);H8(e,39,N.RUW);H8(e,40,N.qz);H8(e,44,N.playerState);K2(e,46,N.CY);H8(e,48,N.XY);H8(e,50,N.rE);H8(e,51,N.Ka);H8(e,54,N.ue);K2(e,56,N.dUP);H8(e,57,N.Qv);K2(e,58,N.RY);H8(e,59,N.G4);H8(e,60,N.pG);K2(e,61,N.isPrefetch);H8(e,62,N.RW);W8(e,63,N.sabrLicenseConstraint);H8(e,64,N.QqG);H8(e,66,N.Msq);H8(e,67,N.rmG);H8(e,68,N.qgt);Ol(e,69,N.audioTrackId);K2(e,71,N.Td);ER(e,72,N.Qfl,u25,1);H8(e,74,N.mV);H8(e,75,N.nf)}; qGM=function(e,N){if(N.videoFormatCapabilities)for(var y=0;y>31));Ol(e,2,N.message)}; W$0=function(e,N){H8(e,1,N.clientState);ER(e,2,N.TSt,Hn_,1)}; mx0=function(e,N){W8(e,1,N.Cmg);ER(e,2,N.RZh,K$0,3);ER(e,3,N.coldStartInfo,W$0,3)}; Q_1=function(e,N){H8(e,1,N.type);W8(e,2,N.value)}; n29=function(e,N){Ol(e,1,N.hl);Ol(e,12,N.deviceMake);Ol(e,13,N.deviceModel);H8(e,16,N.clientName);Ol(e,17,N.clientVersion);Ol(e,18,N.osName);Ol(e,19,N.osVersion)}; OnM=function(e,N){Ol(e,1,N.name);Ol(e,2,N.value)}; RsE=function(e,N){Ol(e,1,N.url);if(N.QU)for(var y=0;y1&&(this.L=e[1]==="2")}; Oj=function(e,N,y,w,E){this.N=e;this.J=N;this.K=y;this.reason=w;this.JM=E===void 0?0:E}; g.Rx=function(e,N,y,w){return new Oj(g.q5[e]||0,g.q5[N]||0,y,w)}; Uj=function(e){if(Gm&&e.JM)return!1;var N=g.q5.auto;return e.N===N&&e.J===N}; sj=function(e){return LA[e.J||e.N]||"auto"}; VO_=function(e,N){N=g.q5[N];return e.N<=N&&(!e.J||e.J>=N)}; ax=function(e){return"["+e.N+"-"+e.J+", override: "+(e.K+", reason: "+e.reason+"]")}; ed=function(e,N,y){this.videoInfos=e;this.J=N;this.audioTracks=[];if(this.J){e=new Set;y==null||y({ainfolen:this.J.length});N=g.c(this.J);for(var w=N.next();!w.done;w=N.next())if(w=w.value,!w.Vl||e.has(w.Vl.id)){var E=void 0,A=void 0,T=void 0;(T=y)==null||T({atkerr:!!w.Vl,itag:w.itag,xtag:w.J,lang:((E=w.Vl)==null?void 0:E.name)||"",langid:((A=w.Vl)==null?void 0:A.id)||""})}else E=new g.W1(w.id,w.Vl),e.add(w.Vl.id),this.audioTracks.push(E);y==null||y({atklen:this.audioTracks.length})}}; Na=function(){g.x.apply(this,arguments);this.J=null}; qpP=function(e,N,y,w,E,A,T){if(e.J)return e.J;var p={},C=new Set,r={};if(yo(w)){for(var Y in w.J)w.J.hasOwnProperty(Y)&&(e=w.J[Y],r[e.info.Iq]=[e.info]);return r}Y=fk9(N,w,p);A&&E({aftsrt:wD(Y)});for(var M={},l=g.c(Object.keys(Y)),F=l.next();!F.done;F=l.next()){F=F.value;for(var S=g.c(Y[F]),k=S.next();!k.done;k=S.next()){k=k.value;var X=k.itag,d=void 0,v=F+"_"+(((d=k.video)==null?void 0:d.fps)||0);M.hasOwnProperty(v)?M[v]===!0?r[F].push(k):p[X]=M[v]:(d=Ef(N,k,y,w.isLive,C),d!==!0?(T.add(F),p[X]=d, d==="disablevp9hfr"&&(M[v]="disablevp9hfr")):(r[F]=r[F]||[],r[F].push(k),M[v]=!0))}}A&&E({bfflt:wD(r)});for(var V in r)r.hasOwnProperty(V)&&(w=V,r[w]&&r[w][0].gx()&&(r[w]=r[w],r[w]=tO5(N,r[w],p),r[w]=u1_(r[w],p)));A&&Object.keys(p).length>0&&(N.FZ?E({rjr:Xe(p)}):E(p));N=g.c(C.values());for(w=N.next();!w.done;w=N.next())(w=y.N.get(w.value))&&--w.Yr;A&&E({aftflt:wD(r)});e.J=g.b8(r,function(Z){return!!Z.length}); return e.J}; xG0=function(e,N,y,w,E,A,T,p){p=p===void 0?!1:p;if(N.CC&&T&&T.length>1&&!(N.G4>0||N.U)){for(var C=N.N||!!E,r=C&&N.pX?A:void 0,Y=fk9(N,w),M=[],l=[],F={},S=0;S0&&l&&E&&(Y=[T,y],X=E.concat(l).filter(function(d){return d})); if(X.length&&!N.RY){Ji(X,Y);if(C){C=[];N=g.c(X);for(w=N.next();!w.done;w=N.next())C.push(w.value.itag);A({hbdfmt:C.join(".")})}return u4(new ed(X,e,r))}X=ReH(N);X=g.Ok(X,p);if(!X){if(M[T])return A=M[T],Ji(A),u4(new ed(A,e,r));C&&A({novideo:1});return tE()}N.U2&&(X==="1"||X==="1h")&&M[y]&&(T=p_(M[X]),Y=p_(M[y]),Y>T?X=y:Y===T&&GWs(M[y])&&(X=y));X==="9"&&M.h&&p_(M.h)>p_(M["9"])&&(X="h");N.SR&&w.isLive&&X==="("&&M.H&&p_(M["("])<1440&&(X="H");C&&A({vfmly:C_(X)});N=M[X];if(!N.length)return C&&A({novfmly:C_(X)}), tE();Ji(N);return u4(new ed(N,e,r))}; nQ9=function(e,N){var y=!(!e.m&&!e.M),w=!(!e.mac3&&!e.MAC3),E=!(!e.meac3&&!e.MEAC3);e=!(!e.i&&!e.I);N.jp=e;return y||w||E||e}; GWs=function(e){e=g.c(e);for(var N=e.next();!N.done;N=e.next())if(N=N.value,N.itag&&UGP.has(N.itag))return!0;return!1}; C_=function(e){switch(e){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return e}}; wD=function(e){var N=[],y;for(y in e)if(e.hasOwnProperty(y)){var w=y;N.push(C_(w));w=g.c(e[w]);for(var E=w.next();!E.done;E=w.next())N.push(E.value.itag)}return N.join(".")}; j0E=function(e,N,y,w,E,A){var T={},p={};g.oB(N,function(C,r){C=C.filter(function(Y){var M=Y.itag;if(!Y.BG)return p[M]="noenc",!1;if(A.Y_&&Y.Iq==="(h"&&A.a9)return p[M]="lichdr",!1;if(Y.Iq==="("||Y.Iq==="(h"){if(e.j&&y&&y.flavor==="widevine"){var l=Y.mimeType+"; experimental=allowed";(l=!!Y.BG[y.flavor]&&!!y.J[l])||(p[M]=Y.BG[y.flavor]?"unspt":"noflv");return l}if(!rD(e,$E.CRYPTOBLOCKFORMAT)&&!e.Rq||e.qg)return p[M]=e.qg?"disvp":"vpsub",!1}return y&&Y.BG[y.flavor]&&y.J[Y.mimeType]?!0:(p[M]=y?Y.BG[y.flavor]? "unspt":"noflv":"nosys",!1)}); C.length&&(T[r]=C)}); w&&Object.entries(p).length&&(A.FZ?E({rjr:Xe(p)}):E(p));return T}; u1_=function(e,N){var y=vQ(e,function(w,E){return E.video.fps>32?Math.min(w,E.video.width):w},Infinity); y32||w.video.widthe.Z)return"max"+e.Z;if(e.Dl&&N.Iq==="h"&&N.video&&N.video.J>1080)return"blkhigh264";if(N.Iq==="(h"&&!y.Z)return"enchdr";if((w===void 0?0:w)&&Og(N)&&!e.Et)return"blk51live";if((N.Iq==="MAC3"||N.Iq==="mac3")&&!e.j)return"blkac3";if((N.Iq==="MEAC3"||N.Iq==="meac3")&&!e.L)return"blkeac3";if((N.Iq==="M"||N.Iq==="m")&&!e.Kh)return"blkaac51";if((N.Iq=== "so"||N.Iq==="sa")&&!e.qg)return"blkamb";if(!e.Y_&&N.BG&&N.BG.fairplay&&(N.Iq==="("||N.Iq==="(h"||N.Iq==="A"||N.Iq==="MEAC3"))return"cbc";if((N.Iq==="i"||N.Iq==="I")&&!e.Xz)return"blkiamf";if(N.itag==="774"&&!e.i9)return"blkouh";var A,T;if(e.Ut&&(N.Iq==="1"||N.Iq==="1h")&&((A=N.video)==null?0:A.J)&&((T=N.video)==null?void 0:T.J)>e.Ut)return"av1cap";if((w=y.N.get(N.Iq))&&w.Yr>0)return E.add(N.Iq),"byerr";var p;if((p=N.video)==null?0:p.fps>32){if(!y.i9&&!rD(y,$E.FRAMERATE))return"capHfr";if(e.VB&&N.video.J>= 4320)return"blk8khfr";if(mu(N)){if(e.DD&&N.BG&&N.video.J>=1440)return"disablevp9hfr";if(e.im&&g.Kp("appletv5")&&N.BG)return"atv5sfr"}}if(e.JM&&N.JM>e.JM)return"ratecap";e=Lx3(y,N);return e!==!0?e:!0}; Ji=function(e,N){N=N===void 0?[]:N;g.pf(e,function(y,w){var E=w.JM-y.JM;if(!y.gx()||!w.gx())return E;var A=w.video.height*w.video.width-y.video.height*y.video.width;!A&&N&&N.length>0&&(y=N.indexOf(y.Iq)+1,w=N.indexOf(w.Iq)+1,A=y===0||w===0?w||-1:y-w);A||(A=E);return A})}; g.YE=function(e,N){this.N=e;this.j=N===void 0?!1:N;this.K=this.path=this.scheme="";this.J={};this.url=""}; lN=function(e){Ma(e);return e.K}; F9=function(e){return e.N?e.N.startsWith("local"):e.scheme==="local"}; s0_=function(e){Ma(e);return g.c4(e.J,function(N){return N!==null})}; Sd=function(e){Ma(e);var N=decodeURIComponent(e.get("mn")||"").split(",");return e.path==="/videoplayback"&&N.length>1&&!!N[1]}; oh=function(e,N){N=N===void 0?!1:N;Ma(e);if(e.path!=="/videoplayback"){var y=e.clone();y.set("playerfallback","1");return y}var w=e.nC();y=new g.rS(w);var E=e.get("fvip"),A=decodeURIComponent(e.get("mn")||"").split(",");if(E&&A&&A.length>1&&A[1])return w=y.J,e=w.replace(/^[^.]*/,""),g.Yu(y,(w.indexOf("rr")===0?"rr":"r")+E+"---"+A[1]+e),y=new g.YE(y.toString()),y.set("fallback_count","1"),y;if(N)return y=e.clone(),y.set("fallback_count","1"),y;E=y.J.match("\\.a1\\.googlevideo\\.com$");y.J.match("\\.googlevideo\\.com$")? (g.Yu(y,"redirector.googlevideo.com"),w=y.toString()):y.J.match("rr?[1-9].*\\.c\\.youtube\\.com$")?(g.Yu(y,"www.youtube.com"),w=y.toString()):(y=aLF(w),a_(y)&&(w=y));y=new g.YE(w);y.set("cmo=pf","1");E&&y.set("cmo=td","a1.googlevideo.com");return y}; Ma=function(e){if(e.N){if(!a_(e.N)&&!e.N.startsWith("local"))throw new g.Gh("Untrusted URL",e.N);var N=g.hh(e.N);e.scheme=N.L;e.K=N.J+(N.K!=null?":"+N.K:"");var y=N.N;if(y.startsWith("/videoplayback"))e.path="/videoplayback",y=y.slice(14);else if(y.startsWith("/initplayback"))e.path="/initplayback",y=y.slice(13);else if(y.startsWith("/api/manifest")){var w=y.indexOf("/",12),E=y.indexOf("/",w+1);w>0&&E>0?(e.path=y.slice(0,E),y=y.slice(E+1)):(e.path=y,y="")}else e.path=y,y="";w=e.J;e.J=ak_(y);Object.assign(e.J, e0P(N.j.toString()));Object.assign(e.J,w);e.J.file==="index.m3u8"&&(delete e.J.file,e.path+="/file/index.m3u8");e.N="";e.url="";e.j&&(N=tgH(),Ma(e),y=e.J[N]||null)&&(y=Np0[0](y),e.set(N,y),e.j||tgH(""))}}; yGP=function(e){Ma(e);var N=e.scheme+(e.scheme?"://":"//")+e.K+e.path;if(s0_(e)){var y=[];g.oB(e.J,function(w,E){w!==null&&y.push(E+"="+w)}); N+="?"+y.join("&")}return N}; ak_=function(e){e=e.split("/");var N=0;e[0]||N++;for(var y={};N0?w33(N,w.slice(0,E),w.slice(E+1)):w&&(N[w]="")}return N}; w33=function(e,N,y){if(N==="cmo"){var w;(w=y.indexOf("="))>=0?(N="cmo="+y.slice(0,w),y=y.slice(w+1)):(w=y.indexOf("%3D"))>=0&&(N="cmo="+y.slice(0,w),y=y.slice(w+3))}e[N]=y}; bN=function(e){var N=g.m(e,E6n)||e.signatureCipher;e={jQ:!1,Uv:"",xm:"",s:""};if(!N)return e;N=AE(N);e.jQ=!0;e.Uv=N.url;e.xm=N.sp;e.s=N.s;return e}; hi=function(e,N,y,w,E,A,T,p,C,r){this.Ch=e;this.startTime=N;this.duration=y;this.ingestionTime=w;this.sourceURL=E;this.Re=C;this.J=r;this.endTime=N+y;this.N=T||0;this.range=A||null;this.pending=p||!1;this.Re=C||null}; g.c$=function(){this.segments=[];this.J=null;this.N=!0;this.K=""}; AGH=function(e,N){if(N>e.vY())e.segments=[];else{var y=W_(e.segments,function(w){return w.Ch>=N},e); y>0&&e.segments.splice(0,y)}}; kE=function(e,N,y,w,E){E=E===void 0?!1:E;this.data=e;this.offset=N;this.size=y;this.type=w;this.J=(this.N=E)?0:8;this.dataOffset=this.offset+this.J}; B$=function(e){var N=e.data.getUint8(e.offset+e.J);e.J+=1;return N}; X9=function(e){var N=e.data.getUint16(e.offset+e.J);e.J+=2;return N}; P$=function(e){var N=e.data.getInt32(e.offset+e.J);e.J+=4;return N}; dD=function(e){var N=e.data.getUint32(e.offset+e.J);e.J+=4;return N}; Ih=function(e){var N=e.data;var y=e.offset+e.J;N=N.getUint32(y)*4294967296+N.getUint32(y+4);e.J+=8;return N}; v$=function(e,N){N=N===void 0?NaN:N;if(isNaN(N))var y=e.size;else for(y=e.J;y1?Math.ceil(E*N):Math.floor(E*N))}e.skip(1);y=B$(e)<<16|X9(e);if(y&256){w=y&1;E=y&4;var A=y&512,T=y&1024,p=y&2048;y=dD(e);w&&e.skip(4);E&&e.skip(4);w=(A?4:0)+(T?4:0)+(p?4:0);for(E=0;E1?Math.ceil(T*N):Math.floor(T*N)),e.skip(w)}}}; qa=function(e){e=new DataView(e.buffer,e.byteOffset,e.byteLength);return(e=g.ti(e,0,1836476516))?g.uN(e):NaN}; SgJ=function(e){var N=g.ti(e,0,1937011556);if(!N)return null;N=Ze(e,N.dataOffset+8,1635148593)||Ze(e,N.dataOffset+8,1635135537);if(!N)return null;var y=Ze(e,N.dataOffset+78,1936995172),w=Ze(e,N.dataOffset+78,1937126244);if(!w)return null;N=null;if(y)switch(y.skip(4),B$(y)){default:N=0;break;case 1:N=2;break;case 2:N=1;break;case 3:N=255}var E=y=null,A=null;if(w=Ze(e,w.dataOffset,1886547818)){var T=Ze(e,w.dataOffset,1886546020),p=Ze(e,w.dataOffset,2037673328);if(!p&&(p=Ze(e,w.dataOffset,1836279920), !p))return null;T&&(T.skip(4),y=P$(T)/65536,A=P$(T)/65536,E=P$(T)/65536);e=Tps(p);e=new DataView(e.buffer,e.byteOffset+8,e.byteLength-8);return new lrJ(N,y,A,E,e)}return null}; Ze=function(e,N,y){for(;xE(e,N);){var w=jd(e,N);if(w.type===y)return w;N+=w.size}return null}; g.ti=function(e,N,y){for(;xE(e,N);){var w=jd(e,N);if(w.type===y)return w;N=n_(w.type)?N+8:N+w.size}return null}; g.Qo=function(e){if(e.data.getUint8(e.dataOffset)){var N=e.data;e=e.dataOffset+4;N=N.getUint32(e)*4294967296+N.getUint32(e+4)}else N=e.data.getUint32(e.dataOffset+4);return N}; jd=function(e,N){var y=e.getUint32(N),w=e.getUint32(N+4);return new kE(e,N,y,w)}; g.uN=function(e){var N=e.data.getUint8(e.dataOffset)?20:12;return e.data.getUint32(e.dataOffset+N)}; o69=function(e){e=new kE(e.data,e.offset,e.size,e.type,e.N);var N=B$(e);e.skip(7);var y=dD(e);if(N===0){N=dD(e);var w=dD(e)}else N=Ih(e),w=Ih(e);e.skip(2);for(var E=X9(e),A=[],T=[],p=0;p122)return!1}return!0}; n_=function(e){return e===1701082227||e===1836019558||e===1836019574||e===1835297121||e===1835626086||e===1937007212||e===1953653094||e===1953653099||e===1836475768}; bd0=function(e){e.skip(4);return{dGh:v$(e,0),value:v$(e,0),timescale:dD(e),QNq:dD(e),oi9:dD(e),id:dD(e),YA:v$(e),offset:e.offset}}; g.h05=function(e){var N=Ze(e,0,1701671783);if(!N)return null;var y=bd0(N),w=y.dGh;y=f_(y.YA);if(e=Ze(e,N.offset+N.size,1701671783))if(e=bd0(e),e=f_(e.YA),y&&e){N=g.c(Object.keys(e));for(var E=N.next();!E.done;E=N.next())E=E.value,y[E]=e[E]}return y?new gD(y,w):null}; mh=function(e,N){for(var y=Ze(e,0,N);y;){var w=y;w.type=1936419184;w.data.setUint32(w.offset+4,1936419184);y=Ze(e,y.offset+y.size,N)}}; g.H$=function(e,N){for(var y=0,w=[];xE(e,y);){var E=jd(e,y);E.type===N&&w.push(E);y=n_(E.type)?y+8:y+E.size}return w}; cG5=function(e,N){var y=g.ti(e,0,1937011556),w=g.ti(e,0,1953654136);if(!y||!w||e.getUint32(y.offset+12)>=2)return null;var E=new DataView(N.buffer,N.byteOffset,N.length),A=g.ti(E,0,1937011556);if(!A)return null;N=E.getUint32(A.dataOffset+8);w=E.getUint32(A.dataOffset+12);if(w!==1701733217&&w!==1701733238)return null;w=new JGE(e.byteLength+N);zD(w,e,0,y.offset+12);w.data.setInt32(w.offset,2);w.offset+=4;zD(w,e,y.offset+16,y.size-16);zD(w,E,E.byteOffset+A.dataOffset+8,N);zD(w,e,y.offset+y.size,e.byteLength- (y.offset+y.size));y=g.c([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(E=y.next();!E.done;E=y.next())E=g.ti(e,0,E.value),w.data.setUint32(E.offset,E.size+N);e=g.ti(w.data,0,1953654136);w.data.setUint32(e.offset+16,2);return w.data}; kS0=function(e){var N=g.ti(e,0,1937011556);if(!N)return null;var y=e.getUint32(N.dataOffset+12);if(y!==1701733217&&y!==1701733238)return null;N=Ze(e,N.offset+24+(y===1701733217?28:78),1936289382);if(!N)return null;y=Ze(e,N.offset+8,1935894637);if(!y||e.getUint32(y.offset+12)!==1667392371)return null;N=Ze(e,N.offset+8,1935894633);if(!N)return null;N=Ze(e,N.offset+8,1952804451);if(!N)return null;y=new Uint8Array(16);for(var w=0;w<16;w++)y[w]=e.getInt8(N.offset+16+w);return y}; K_=function(e,N){this.J=e;this.pos=0;this.start=N||0}; W$=function(e){return e.pos>=e.J.byteLength}; L_=function(e,N,y){var w=new K_(y);if(!Of(w,e))return!1;w=Rh(w);if(!GD(w,N))return!1;for(e=0;N;)N>>>=8,e++;N=w.start+w.pos;var E=Uf(w,!0);w=e+(w.start+w.pos-N)+E;w=w>9?BpM(w-9,8):BpM(w-2,1);e=N-e;y.setUint8(e++,236);for(N=0;Ny;E++)y=y*256+w4(e),w*=128;return N?y-w:y}; ah=function(e){var N=Uf(e,!0);e.pos+=N}; d59=function(e){if(!GD(e,440786851,!0))return null;var N=e.pos;Uf(e,!1);var y=Uf(e,!0)+e.pos-N;e.pos=N+y;if(!GD(e,408125543,!1))return null;Uf(e,!0);if(!GD(e,357149030,!0))return null;var w=e.pos;Uf(e,!1);var E=Uf(e,!0)+e.pos-w;e.pos=w+E;if(!GD(e,374648427,!0))return null;var A=e.pos;Uf(e,!1);var T=Uf(e,!0)+e.pos-A,p=new Uint8Array(y+12+E+T),C=new DataView(p.buffer);p.set(new Uint8Array(e.J.buffer,e.J.byteOffset+N,y));C.setUint32(y,408125543);C.setUint32(y+4,33554431);C.setUint32(y+8,4294967295); p.set(new Uint8Array(e.J.buffer,e.J.byteOffset+w,E),y+12);p.set(new Uint8Array(e.J.buffer,e.J.byteOffset+A,T),y+12+E);return p}; EM=function(e){var N=e.pos;e.pos=0;var y=1E6;Of(e,[408125543,357149030,2807729])&&(y=sf(e));e.pos=N;return y}; Irs=function(e,N){var y=e.pos;e.pos=0;if(e.J.getUint8(e.pos)!==160&&!Ad(e)||!GD(e,160))return e.pos=y,NaN;Uf(e,!0);var w=e.pos;if(!GD(e,161))return e.pos=y,NaN;Uf(e,!0);w4(e);var E=w4(e)<<8|w4(e);e.pos=w;if(!GD(e,155))return e.pos=y,NaN;w=sf(e);e.pos=y;return(E+w)*N/1E9}; Ad=function(e){if(!v6F(e)||!GD(e,524531317))return!1;Uf(e,!0);return!0}; v6F=function(e){if(e.qk()){if(!GD(e,408125543))return!1;Uf(e,!0)}return!0}; Of=function(e,N){for(var y=0;y0){var w=e0P(N.substring(y+1));g.oB(w,function(E,A){this.set(A,E)},e); N=N.substring(0,y)}N=ak_(N);g.oB(N,function(E,A){this.set(A,E)},e)}; idM=function(e){var N=e.tA.nC(),y=[];g.oB(e.J,function(E,A){y.push(A+"="+E)}); if(!y.length)return N;var w=y.join("&");e=s0_(e.tA)?"&":"?";return N+e+w}; Jd=function(e,N){var y=new g.YE(N);(N=y.get("req_id"))&&e.set("req_id",N);g.oB(e.J,function(w,E){y.set(E,null)}); return y}; D5M=function(){this.j=this.N=this.J=this.timedOut=this.started=this.L=this.K=0}; p1=function(e){e.L=(0,g.iC)();e.started=0;e.timedOut=0;e.J=0}; C1=function(e,N){var y=e.started+e.J*4;N&&(y+=e.N);y=Math.max(0,y-3);return Math.pow(1.6,y)}; r4=function(e,N){e[N]||(e[N]=new D5M);return e[N]}; $a=function(e){this.D=this.G=this.L=this.N=0;this.U=this.Z=!1;this.J=e;this.K=e.clone()}; g6M=function(e,N,y){if(F9(e.J))return!1;var w=r4(y,lN(e.J));if(w.timedOut<1&&w.J<1)return!1;w=w.timedOut+w.J;e=Ya(e,N);y=r4(y,lN(e));return y.timedOut+y.J+01?N=N.Z3:(y=r4(y,lH(e,e.q2(N,y),N)),N=Math.max(e.L,y.timedOut)+N.hH*(e.N-e.L)+.25*e.G,N=N>3?1E3*Math.pow(1.6,N-3):0);return N===0?!0:e.D+N<(0,g.iC)()}; Vc1=function(e,N,y){e.J.set(N,y);e.K.set(N,y);e.j&&e.j.set(N,y)}; frP=function(e,N,y,w,E){++e.N;N&&++e.L;lN(y.tA).startsWith("redirector.")&&(e.J=e.K.clone(),delete e.j,w.DE&&delete E[lN(e.J)])}; Sl=function(e){return e?(e.itag||"")+";"+(e.lmt||0)+";"+(e.xtags||""):""}; oi=function(e,N,y,w){this.initRange=y;this.indexRange=w;this.J=null;this.K=!1;this.Z=0;this.j=this.d0=this.N=null;this.info=N;this.yl=new $a(e)}; bH=function(e,N){this.start=e;this.end=N;this.length=N-e+1}; hd=function(e){e=e.split("-");var N=Number(e[0]),y=Number(e[1]);if(!isNaN(N)&&!isNaN(y)&&e.length===2&&(e=new bH(N,y),!isNaN(e.start)&&!isNaN(e.end)&&!isNaN(e.length)&&e.length>0))return e}; cx=function(e,N){return new bH(e,e+N-1)}; tcn=function(e){return e.end==null?{start:String(e.start)}:{start:String(e.start),end:String(e.end)}}; ka=function(e){if(!e)return new bH(0,0);var N=Number(e.start);e=Number(e.end);if(!isNaN(N)&&!isNaN(e)&&(N=new bH(N,e),N.length>0))return N}; Bx=function(e,N,y,w,E,A,T,p,C,r,Y,M){w=w===void 0?"":w;this.type=e;this.J=N;this.range=y;this.source=w;this.KO=Y;this.clipId=M===void 0?"":M;this.G=[];this.L="";this.Ch=-1;this.U=this.D=0;this.L=w;this.Ch=E>=0?E:-1;this.startTime=A||0;this.duration=T||0;this.N=p||0;this.K=C>=0?C:this.range?this.range.length:NaN;this.j=this.range?this.N+this.K===this.range.length:r===void 0?!!this.K:r;this.range?(this.o2=this.startTime+this.duration*this.N/this.range.length,this.Z=this.duration*this.K/this.range.length, this.XT=this.o2+this.Z):ueP(this)}; ueP=function(e){e.o2=e.startTime;e.Z=e.duration;e.XT=e.o2+e.Z}; qg9=function(e,N,y){var w=!(!N||N.J!==e.J||N.type!==e.type||N.Ch!==e.Ch);return y?w&&!!N&&(e.range&&N.range?N.range.end===e.range.end:N.range===e.range)&&N.N+N.K===e.N+e.K:w}; Xs=function(e){return e.type===1||e.type===2}; Px=function(e){return e.type===3||e.type===6}; d4=function(e,N){return e.J===N.J?e.range&&N.range?e.range.start+e.N+e.K===N.range.start+N.N:e.Ch===N.Ch?e.N+e.K===N.N:e.Ch+1===N.Ch&&N.N===0&&e.j:!1}; x5_=function(e,N){return e.Ch!==N.Ch&&N.Ch!==e.Ch+1||e.type!==N.type?!1:d4(e,N)?!0:Math.abs(e.o2-N.o2)<=1E-6&&e.Ch===N.Ch?!1:Zd_(e,N)}; Zd_=function(e,N){return d4(e,N)||Math.abs(e.XT-N.o2)<=1E-6||e.Ch+1===N.Ch&&N.N===0&&e.j?!0:!1}; Ii=function(e){return e.Ch+(e.j?1:0)}; j25=function(e){e.length===1||g.Ip(e,function(y){return!!y.range}); for(var N=1;N=N.range.start+N.N&&e.range.start+e.N+e.K<=N.range.start+N.N+N.K:e.Ch===N.Ch&&e.N>=N.N&&(e.N+e.K<=N.N+N.K||N.j)}; Od1=function(e,N){return e.J!==N.J?!1:e.type===4&&N.type===3&&e.J.Yz()?(e=e.J.y5(e),DR(e,function(y){return Od1(y,N)})):e.Ch===N.Ch&&!!N.K&&N.N+N.K>e.N&&N.N+N.K<=e.N+e.K}; z4=function(e,N){var y=N.Ch;e.L="updateWithSegmentInfo";e.Ch=y;if(e.startTime!==N.startTime||e.duration!==N.duration)e.startTime=N.startTime+e.D,e.duration=N.duration,ueP(e)}; iH=function(e,N){var y=this;this.QB=e;this.j=this.J=null;this.L=this.Hf=NaN;this.q2=this.requestId=null;this.lk={UxB:function(){return y.range}}; this.yl=e[0].J.yl;this.N=N||"";this.QB[0].range&&this.QB[0].K>0&&(n6H(e)?(this.range=j25(e),this.K=this.range.length):(this.range=this.QB[this.QB.length-1].range,this.K=Q2n(e)))}; D$=function(e){return!Xs(e.QB[e.QB.length-1])}; g4=function(e){return e.QB[e.QB.length-1].type===4}; g.Vt=function(e,N,y){y=e.q2===null?e.yl.q2(N,y,e.QB[0].type):e.q2;if(e.J){N=y?oh(e.J,N.DN):e.J;var w=new T4(N);w.get("alr")||w.set("alr","yes");e.N&&z03(w,e.N)}else/http[s]?:\/\//.test(e.N)?w=new T4(new g.YE(e.N)):(w=MZ(e.yl,y,N),e.N&&z03(w,e.N));(N=e.range)?w.set("range",N.toString()):e.QB[0].J.SJ()&&e.QB.length===1&&e.QB[0].N&&w.set("range",e.QB[0].N+"-");e.requestId&&w.set("req_id",e.requestId);isNaN(e.Hf)||w.set("headm",e.Hf.toString());isNaN(e.L)||w.set("mffa",e.L+"ms");e.urlParams&&g.oB(e.urlParams, function(E,A){w.set(A,E)}); return w}; R03=function(e){if(e.range)return e.K;e=e.QB[0];return Math.round(e.Z*e.J.info.JM)}; GS9=function(e,N){return Math.max(0,e.QB[0].o2-N)}; f1=function(e,N,y,w,E,A){A=A===void 0?0:A;oi.call(this,e,N,w,void 0);this.L=y;this.j1=A;this.index=E||new g.c$}; U55=function(e,N,y,w,E){this.Ch=e;this.startSecs=N;this.Vj=y;this.J=w||NaN;this.N=E||NaN}; td=function(e,N,y){for(;e;e=e.parentNode)if(e.attributes&&(!y||e.nodeName===y)){var w=e.getAttribute(N);if(w)return w}return""}; uH=function(e,N){for(;e;e=e.parentNode){var y=e.getElementsByTagName(N);if(y.length>0)return y[0]}return null}; Lu1=function(e){if(!e)return 0;var N=e.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return N?(Number(N[2])|0)*3600+(Number(N[4])|0)*60+(Number(N[6])|0):Number(e)|0}; s29=function(e){return e.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?e+"Z":e}; qZ=function(){this.J=[];this.N=null;this.Z=0;this.K=[];this.L=!1;this.G="";this.j=-1}; arE=function(e){var N=e.K;e.K=[];return N}; ez9=function(){this.j=[];this.J=null;this.N={};this.K={}}; EHH=function(e,N){var y=[];N=Array.from(N.getElementsByTagName("SegmentTimeline"));N=g.c(N);for(var w=N.next();!w.done;w=N.next()){w=w.value;var E=w.parentNode.parentNode,A=null;E.nodeName==="Period"?A=NOJ(e):E.nodeName==="AdaptationSet"?(E=E.getAttribute("id")||E.getAttribute("mimetype")||"",A=yX5(e,E)):E.nodeName==="Representation"&&(E=E.getAttribute("id")||"",A=wI1(e,E));if(A==null)return;A.update(w);g.Nd(y,arE(A))}g.Nd(e.j,y);yVM(e.j,function(T){return T.startSecs*1E3+T.J})}; AXE=function(e){e.J&&(e.J.J=[]);g.oB(e.N,function(N){N.J=[]}); g.oB(e.K,function(N){N.J=[]})}; NOJ=function(e){e.J||(e.J=new qZ);return e.J}; yX5=function(e,N){e.N[N]||(e.N[N]=new qZ);return e.N[N]}; wI1=function(e,N){e.K[N]||(e.K[N]=new qZ);return e.K[N]}; xa=function(e){var N=e===void 0?{}:e;e=N.j1===void 0?0:N.j1;var y=N.mA===void 0?!1:N.mA;var w=N.pI===void 0?0:N.pI;var E=N.L$===void 0?0:N.L$;var A=N.ZK===void 0?Infinity:N.ZK;var T=N.TR===void 0?0:N.TR;var p=N.Ta===void 0?!1:N.Ta;N=N.Ym===void 0?!1:N.Ym;g.c$.call(this);this.M3=this.B2=-1;this.eV=e;this.pI=w;this.mA=y;this.L$=E;this.ZK=A;this.TR=T;((this.Ta=p)||isFinite(A)&&this.ZK>0)&&y&&Z$&&(this.N=!1,this.K="postLive");this.Ym=N}; jl=function(e,N){return JO(e.segments,function(y){return N-y.Ch})}; n1=function(e,N,y){y=y===void 0?{}:y;f1.call(this,e,N,"",void 0,void 0,y.j1||0);this.index=new xa(y)}; Qt=function(e,N,y){oi.call(this,e,N);this.L=y;e=this.index=new g.c$;e.N=!1;e.K="d"}; TO9=function(e,N,y){var w=e.index.tK(N),E=e.index.getStartTime(N),A=e.index.getDuration(N);y?A=y=0:y=e.info.JM*A;return new iH([new Bx(3,e,void 0,"otfCreateRequestInfoForSegment",N,E,A,0,y)],w)}; JXF=function(e,N){if(!e.index.isLoaded()){var y=[],w=N.j;N=N.L.split(",").filter(function(Y){return Y.length>0}); for(var E=0,A=0,T=0,p=/^(\d+)/,C=/r=(\d+)/,r=0;r0&&(N-=e.timestampOffset);var y=g.K1(e)+N;CUJ(e,y);e.timestampOffset=N}; CUJ=function(e,N){g.R2(e.info.J.info)||e.info.J.info.lm();e.K=N;if(g.R2(e.info.J.info)){var y=e.iB();e=e.info.J.J;for(var w=NaN,E=NaN,A=0;xE(y,A);){var T=jd(y,A);isNaN(w)&&(T.type===1936286840?w=T.data.getUint32(T.dataOffset+8):T.type===1836476516&&(w=g.uN(T)));if(T.type===1952867444){!w&&e&&(w=qa(e));var p=g.Qo(T);isNaN(E)&&(E=Math.round(N*w)-p);var C=T;p+=E;if(C.data.getUint8(C.dataOffset)){var r=C.data;C=C.dataOffset+4;r.setUint32(C,Math.floor(p/4294967296));r.setUint32(C+4,p&4294967295)}else C.data.setUint32(C.dataOffset+ 4,p)}A=n_(T.type)?A+8:A+T.size}return!0}y=new K_(e.iB());e=e.L?y:new K_(new DataView(e.info.J.J.buffer));w=EM(e);e=y.pos;y.pos=0;if(Ad(y)&&GD(y,231))if(E=Uf(y,!0),N=Math.floor(N*1E9/w),Math.ceil(Math.log(N)/Math.log(2)/8)>E)N=!1;else{for(w=E-1;w>=0;w--)y.J.setUint8(y.pos+w,N&255),N>>>=8;y.pos=e;N=!0}else N=!1;return N}; OM=function(e,N){N=N===void 0?!1:N;var y=Wx(e);e=N?0:e.info.Z;return y||e}; Wx=function(e){g.R2(e.info.J.info)||e.info.J.info.lm();if(e.N&&e.info.type===6)return e.N.j1;if(g.R2(e.info.J.info)){var N=e.iB();var y=0;N=g.H$(N,1936286840);N=g.c(N);for(var w=N.next();!w.done;w=N.next())w=o69(w.value),y+=w.vx[0]/w.timescale;y=y||NaN;if(!(y>=0))a:{y=e.iB();N=e.info.J.J;for(var E=w=0,A=0;xE(y,w);){var T=jd(y,w);if(T.type===1836476516)E=g.uN(T);else if(T.type===1836019558){!E&&N&&(E=qa(N));if(!E){y=NaN;break a}var p=Ze(T.data,T.dataOffset,1953653094),C=p;p=E;var r=Ze(C.data,C.dataOffset, 1952868452);C=Ze(C.data,C.dataOffset,1953658222);var Y=P$(r);P$(r);Y&2&&P$(r);r=Y&8?P$(r):0;var M=P$(C),l=M&1;Y=M&4;var F=M&256,S=M&512,k=M&1024;M&=2048;var X=dD(C);l&&P$(C);Y&&P$(C);for(var d=l=0;d2048?"":N.indexOf("https://")===0?N:""}; ai=function(e,N,y){N.match(BO_);return e(N,y).then(function(w){var E=g.k69(w.xhr);return E?ai(e,E,y):w.xhr})}; wt=function(e,N,y){e=e===void 0?"":e;N=N===void 0?null:N;y=y===void 0?!1:y;g.pT.call(this);var w=this;this.sourceUrl=e;this.isLivePlayback=y;this.Wk=this.duration=0;this.isPremiere=this.Ta=this.j=this.isLiveHeadPlayable=this.isLive=this.N=!1;this.ZK=this.L$=0;this.isOtf=this.Cx=!1;this.Et=(0,g.iC)();this.Ng=Infinity;this.J={};this.K=new Map;this.state=this.Ie=0;this.timeline=null;this.isManifestless=!1;this.qg=[];this.Z=null;this.l9=0;this.L="";this.i9=NaN;this.aq=this.pX=this.timestampOffset=this.G= 0;this.zg=this.gf=NaN;this.PY=0;this.Bk=this.D=!1;this.Rq=[];this.Zl={};this.Kh=NaN;this.lk={bzh:function(p){eI(w,p)}}; var E;this.Ut=(E=N)==null?void 0:E.gP("html5_use_network_error_code_enums");XI5=!!N&&N.gP("html5_modern_vp9_mime_type");var A;NX=!((A=N)==null||!A.gP("html5_enable_flush_during_seek"))&&g.O8();var T;yY=!((T=N)==null||!T.gP("html5_enable_reset_audio_decoder"))&&g.O8()}; PUn=function(e){return g.c4(e.J,function(N){return!!N.info.video&&N.info.video.J>=2160})}; Ov0=function(e){return g.c4(e.J,function(N){return!!N.info.video&&N.info.video.isHdr()})}; Ai=function(e){return g.c4(e.J,function(N){return!!N.info.BG})}; g.d$F=function(e){return g.c4(e.J,function(N){return Ug(N.info)})}; Ios=function(e){return g.c4(e.J,function(N){return N.info.video?N.info.video.projectionType==="EQUIRECTANGULAR":!1})}; vHs=function(e){return g.c4(e.J,function(N){return N.info.video?N.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; zzn=function(e){return g.c4(e.J,function(N){return N.info.video?N.info.video.projectionType==="MESH":!1})}; ihP=function(e){return g.c4(e.J,function(N){return N.info.video?N.info.video.stereoLayout===1:!1})}; D$_=function(e){return jF5(e.J,function(N){return N.info.video?N.ix():!0})}; yo=function(e){return g.c4(e.J,function(N){return F9(N.yl.J)})}; eI=function(e,N){e.J[N.info.id]=N;e.K.set(Sl(g.Ld(N.info,e.Cx)),N)}; gHM=function(e,N){return Sl({itag:N.itag,lmt:e.Cx?0:N.lmt||0,xtags:N.xtags})}; TE=function(e,N,y){y=y===void 0?0:y;var w=e.mimeType||"",E=e.itag;var A=e.xtags;E=E?E.toString():"";A&&(E+=";"+A);A=E;if(a2(w)){var T=e.width||640;E=e.height||360;var p=e.fps,C=e.qualityLabel,r=e.colorInfo,Y=e.projectionType,M;e.stereoLayout&&(M=Vis[e.stereoLayout]);var l=hz0(e)||void 0;if(r==null?0:r.primaries)var F=fon[r.primaries]||void 0;T=new Zr(T,E,p,Y,M,void 0,C,l,F);w=Eh(w,T,nd[e.itag||""]);NX&&(w+="; enableflushduringseek=true");yY&&(w+="; enableresetaudiodecoder=true")}var S;if(sg(w)){var k= e.audioSampleRate;M=e.audioTrack;k=new tG(k?+k:void 0,e.audioChannels,e.spatialAudioType,e.isDrc,e.loudnessDb,e.trackAbsoluteLoudnessLkfs,e.audioQuality||"AUDIO_QUALITY_UNKNOWN");M&&(F=M.displayName,E=M.id,M=M.audioIsDefault,F&&(S=new g.sM(F,E||"",!!M)))}var X;e.captionTrack&&(C=e.captionTrack,M=C.displayName,F=C.vssId,E=C.languageCode,p=C.kind,C=C.id,M&&F&&E&&(X=new oH5(M,F,E,p,e.xtags,C)));M=Number(e.bitrate)/8;F=Number(e.contentLength);E=Number(e.lastModified);C=e.drmFamilies;p=e.type;y=y&&F?F/ y:0;e=Number(e.approxDurationMs);if(N&&C){var d={};C=g.c(C);for(r=C.next();!r.done;r=C.next())(r=Am[r.value])&&(d[r]=N[r])}return new QI(A,w,{audio:k,video:T,Vl:S,BG:d,JM:M,RX:y,contentLength:F,lastModified:E,captionTrack:X,streamType:p,approxDurationMs:e})}; Jm=function(e,N,y){y=y===void 0?0:y;var w=e.type;var E=e.itag;var A=e.xtags;A&&(E=e.itag+";"+A);if(a2(w)){var T=(e.size||"640x360").split("x");T=new Zr(+T[0],+T[1],+e.fps,e.projection_type,+e.stereo_layout,void 0,e.quality_label,e.eotf,e.primaries);w=Eh(w,T,nd[e.itag]);NX&&(w+="; enableflushduringseek=true");yY&&(w+="; enableresetaudiodecoder=true")}var p;if(sg(w)){var C=new tG(+e.audio_sample_rate||void 0,+e.audio_channels||0,e.spatial_audio_type,!!e.drc);e.name&&(p=new g.sM(e.name,e.audio_track_id, e.isDefault==="1"))}var r;e.caption_display_name&&e.caption_vss_id&&e.caption_language_code&&(r=new oH5(e.caption_display_name,e.caption_vss_id,e.caption_language_code,e.caption_kind,e.xtags,e.caption_id));A=Number(e.bitrate)/8;var Y=Number(e.clen),M=Number(e.lmt);y=y&&Y?Y/y:0;if(N&&e.drm_families){var l={};for(var F=g.c(e.drm_families.split(",")),S=F.next();!S.done;S=F.next())S=S.value,l[S]=N[S]}return new QI(E,w,{audio:C,video:T,Vl:p,BG:l,JM:A,RX:y,contentLength:Y,lastModified:M,captionTrack:r, streamType:e.stream_type,approxDurationMs:Number(e.approx_duration_ms)})}; tiF=function(e){return DR(e,function(N){return"FORMAT_STREAM_TYPE_OTF"===N.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; uQH=function(e){return DR(e,function(N){return"FORMAT_STREAM_TYPE_OTF"===N.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; q35=function(e,N){return e.timeline?yh(e.timeline.j,N):e.qg.length?yh(e.qg,N):[]}; pC=function(e,N,y){N=N===void 0?"":N;y=y===void 0?"":y;e=new g.YE(e,!0);e.set("alr","yes");y&&(y=F$E(decodeURIComponent(y)),e.set(N,encodeURIComponent(y)));return e}; nHE=function(e,N){var y=td(N,"id");y=y.replace(":",";");var w=td(N,"mimeType"),E=td(N,"codecs");w=E?w+'; codecs="'+E+'"':w;E=Number(td(N,"bandwidth"))/8;var A=Number(uH(N,"BaseURL").getAttribute(e.L+":contentLength")),T=e.duration&&A?A/e.duration:0;if(a2(w)){var p=Number(td(N,"width"));var C=Number(td(N,"height")),r=Number(td(N,"frameRate")),Y=ZhM(td(N,e.L+":projectionType"));a:switch(td(N,e.L+":stereoLayout")){case "layout_left_right":var M=1;break a;case "layout_top_bottom":M=2;break a;default:M= 0}p=new Zr(p,C,r,Y,M)}if(sg(w)){var l=Number(td(N,"audioSamplingRate"));var F=Number(td(N.getElementsByTagName("AudioChannelConfiguration")[0],"value"));C=x$5(td(N,e.L+":spatialAudioType"));l=new tG(l,F,C);a:{F=td(N,"lang")||"und";if(C=uH(N,"Role"))if(Y=td(C,"value")||"",g.P4(j8J,Y)){C=F+"."+j8J[Y];r=Y==="main";e=td(N,e.L+":langName")||F+" - "+Y;F=new g.sM(e,C,r);break a}F=void 0}}if(N=uH(N,"ContentProtection"))if(N.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var S={};for(N= N.firstChild;N!=null;N=N.nextSibling)N instanceof Element&&/SystemURL/.test(N.nodeName)&&(e=N.getAttribute("type"),C=N.textContent,e&&C&&(S[e]=C.trim()))}else S=void 0;return new QI(y,w,{audio:l,video:p,Vl:F,BG:S,JM:E,RX:T,contentLength:A})}; ZhM=function(e){switch(e){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"}}; x$5=function(e){switch(e){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"}}; m$F=function(e,N){N=N===void 0?"":N;e.state=1;e.Et=(0,g.iC)();return cXP(N||e.sourceUrl).then(function(y){if(!e.Ss()){e.Ie=y.status;y=y.responseText;var w=new DOMParser;y=OK(w,gVH(y),"text/xml").getElementsByTagName("MPD")[0];e.Ng=Lu1(td(y,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(y.attributes){w=g.c(y.attributes);for(var E=w.next();!E.done;E=w.next())if(E=E.value,E.value==="http://youtube.com/yt/2012/10/10"){w=E.name.split(":")[1];break b}}w=""}e.L=w;e.isLive=e.Ng=e.Ng}; KaJ=function(e){e.Z&&e.Z.stop()}; Q8E=function(e){var N=e.Ng;isFinite(N)&&(CC(e)?e.refresh():(N=Math.max(0,e.Et+N-(0,g.iC)()),e.Z||(e.Z=new g.e6(e.refresh,N,e),g.Q(e,e.Z)),e.Z.start(N)))}; Wa9=function(e){e=e.J;for(var N in e){var y=e[N].index;if(y.isLoaded())return y.vY()+1}return 0}; rt=function(e){return e.pX?e.pX-(e.G||e.timestampOffset):0}; $_=function(e){return e.aq?e.aq-(e.G||e.timestampOffset):0}; Y_=function(e){if(!isNaN(e.i9))return e.i9;var N=e.J,y;for(y in N){var w=N[y].index;if(w.isLoaded()&&!Ug(N[y].info)){N=0;for(y=w.Jx();y<=w.vY();y++)N+=w.getDuration(y);N/=w.Tz();N=Math.round(N/.5)*.5;w.Tz()>10&&(e.i9=N);return N}if(e.isLive&&(w=N[y],w.j1))return w.j1}return NaN}; Oh_=function(e,N){e=QF9(e.J,function(w){return w.index.isLoaded()}); if(!e)return NaN;e=e.index;var y=e.zI(N);return e.getStartTime(y)===N?N:y=0&&E.segments.splice(A,1)}}}; G6J=function(e){for(var N in e.J)Ug(e.J[N].info)||AGH(e.J[N].index,Infinity)}; Fu=function(e,N,y){for(var w in e.J){var E=e.J[w].index,A=N,T=y;E.mA&&(A&&(E.B2=Math.max(E.B2,A)),T&&(E.M3=Math.max(E.M3||0,T)))}y&&(e.Kh=y/1E3)}; U$M=function(e){e.aq=0;e.pX=0;e.PY=0}; SI=function(e){return e.Bk&&e.isManifestless?e.isLiveHeadPlayable:e.isLive}; Eh=function(e,N,y){oI===null&&(oI=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(XI5&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return oI||y!=="9"&&y!=="("?oI||y!=="9h"&&y!=="(h"||(e='video/webm; codecs="vp9.2"'):e='video/webm; codecs="vp9"',e;if(!oI&&!b2||e!=='video/webm; codecs="vp9"'&&e!=='video/webm; codecs="vp9.2"')return e; y="00";var w="08",E="01",A="01",T="01";e==='video/webm; codecs="vp9.2"'&&(y="02",w="10",N.primaries==="bt2020"&&(T=E="09"),N.N==="smpte2084"&&(A="16"),N.N==="arib-std-b67"&&(A="18"));return'video/webm; codecs="'+["vp09",y,"51",w,"01",E,A,T,"00"].join(".")+'"'}; cU=function(e,N,y){e=""+e+(N>49?"p60":N>32?"p48":"");N=DM()[e];if(N!=null&&N>0)return N;N=hm.get(e);if(N!=null&&N>0)return N;y=y==null?void 0:y.get(e);return y!=null&&y>0?y:8192}; LaE=function(e){this.Ot=e;this.LX=this.RY=this.Zl=this.L=this.j=this.Kh=this.dT=this.Wk=this.qg=!1;this.G=this.Z=0;this.Dl=!1;this.l9=!0;this.VB=!1;this.G4=0;this.Ej=this.Rq=!1;this.U2=!0;this.Bk=this.Et=!1;this.J={};this.PY=this.disableAv1=this.a9=this.jp=this.Kx=this.SR=this.N=this.U=!1;this.YO=this.Ot.T("html5_disable_aac_preference");this.jn=Infinity;this.aq=0;this.pX=this.Ot.B9();this.Y_=this.Ot.experiments.gP("html5_enable_vp9_fairplay");this.jN=this.Ot.T("html5_force_av1_for_testing");this.Ut= g.Y2(this.Ot.experiments,"html5_av1_ordinal_cap");this.DD=this.Ot.T("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.CC=this.Ot.T("html5_account_onesie_format_selection_during_format_filter");this.JM=g.Y2(this.Ot.experiments,"html5_max_byterate");this.D=this.Ot.T("html5_sunset_aac_high_codec_family");this.i9=this.Ot.T("html5_sunset_aac_high_codec_family");this.Xz=this.Ot.T("html5_enable_iamf_audio");this.NK=this.Ot.experiments.gP("html5_allow_capability_merge");this.FZ=this.Ot.T("html5_log_format_filter_rejection_reason_as_string"); this.im=this.Ot.T("html5_prefer_vp9_sfr")}; ReH=function(e){if(e.Wk)return["f"];var N="9h 9 h 8 (h ( H *".split(" ");e.Rq&&(N.unshift("1"),N.unshift("1h"));e.RY&&N.unshift("h");e.Ng&&(N=(s8_[e.Ng]||[e.Ng]).concat(N));return N}; Q0F=function(e){var N=["o","a","A"];e.aq===1&&(e.Kh&&(N=["m","M"].concat(N)),e.j&&(N=["mac3","MAC3"].concat(N)),e.L&&(N=["meac3","MEAC3"].concat(N)),e.Xz&&(N=["i","I"].concat(N)));e.qg&&(N=["so","sa"].concat(N));!e.LX||e.Zl||e.K||e.YO||N.unshift("a");e.dT&&!e.D&&N.unshift("ah");e.K&&(N=(s8_[e.K]||[e.K]).concat(N));return N}; k_=function(e,N,y,w){N=N===void 0?{}:N;if(w===void 0?0:w)return N.disabled=1,0;if(rD(e.L,$E.AV1_CODECS)&&rD(e.L,$E.HEIGHT)&&rD(e.L,$E.BITRATE))return N.isCapabilityUsable=1,8192;try{var E=PFH();if(E)return N.localPref=E}catch(p){}w=1080;E=navigator.hardwareConcurrency;E<=2&&(w=480);N.coreCount=E;if(E=g.Y2(e.experiments,"html5_default_av1_threshold"))w=N["default"]=E;!e.T("html5_disable_av1_arm_check")&&SH3()&&(N.isArm=1,w=240);if(e=e.L.Kh)N.mcap=e,w=Math.max(w,e);if(y){var A,T;if(e=(A=y.videoInfos.find(function(p){return Kd(p)}))== null?void 0:(T=A.N)==null?void 0:T.powerEfficient)w=8192,N.isEfficient=1; y=y.videoInfos[0].video;A=Math.min(cU("1",y.fps),cU("1",30));N.perfCap=A;w=Math.min(w,A);y.isHdr()&&!e&&(N.hdr=1,w*=.75)}else y=cU("1",30),N.perfCap30=y,w=Math.min(w,y),y=cU("1",60),N.perfCap60=y,w=Math.min(w,y);return N.av1Threshold=w}; BU=function(e,N,y,w){this.flavor=e;this.keySystem=N;this.N=y;this.experiments=w;this.J={};this.Ut=this.keySystemAccess=null;this.zd=this.c5=-1;this.Tg=null;this.K=!!w&&w.gP("edge_nonprefixed_eme");w&&w.gP("html5_enable_vp9_fairplay")}; PU=function(e){return e.K?!1:!e.keySystemAccess&&!!Xu()&&e.keySystem==="com.microsoft.playready"}; dt=function(e){return e.keySystem==="com.microsoft.playready"}; II=function(e){return!e.keySystemAccess&&!!Xu()&&e.keySystem==="com.apple.fps.1_0"}; vU=function(e){return e.keySystem==="com.youtube.fairplay"}; zE=function(e){return e.keySystem==="com.youtube.fairplay.sbdl"}; g.i2=function(e){return e.flavor==="fairplay"}; Xu=function(){var e=window,N=e.MSMediaKeys;U8()&&!N&&(N=e.WebKitMediaKeys);return N&&N.isTypeSupported?N:null}; gt=function(e){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.i$&&!g.O8())return vD("45");if(g.Um||g.S6)return e.gP("edge_nonprefixed_eme");if(g.DT)return vD("47");if(g.k$){if(e.gP("html5_enable_safari_fairplay"))return!1;if(e=g.Y2(e,"html5_safari_desktop_eme_min_version"))return vD(e)}return!0}; aoM=function(e,N,y,w){var E=Ry(),A=(y=E||y&&U8())?["com.youtube.fairplay"]:["com.widevine.alpha"];N&&A.unshift("com.youtube.widevine.l3");E&&w&&A.unshift("com.youtube.fairplay.sbdl");return y?A:e?[].concat(g.B(A),g.B(VY.playready)):[].concat(g.B(VY.playready),g.B(A))}; tm=function(){this.N=this.XA=0;this.J=Array.from({length:fC.length}).fill(0)}; ey0=function(){}; NYJ=function(){this.startTimeMs=(0,g.iC)();this.J=!1}; y__=function(){this.J=new ey0}; wd1=function(e,N,y,w){w=w===void 0?1:w;y>=0&&(N in e.J||(e.J[N]=new tm),e.J[N].jW(y,w))}; Ezn=function(e,N,y,w,E){var A=(0,g.iC)(),T=E?E(N):void 0,p;E=(p=T==null?void 0:T.XA)!=null?p:1;if(E!==0){var C;p=(C=T==null?void 0:T.profile)!=null?C:y;wd1(e,p,A-w,E)}return N}; u2=function(e,N,y,w,E){if(N&&typeof N==="object"){var A=function(T){return Ezn(e,T,y,w,E)}; if(eq(N))return N.then(A);if(A__(N))return A$(N,A)}return Ezn(e,N,y,w,E)}; TYn=function(){}; qX=function(e,N,y,w,E){w=w===void 0?!1:w;g.x.call(this);this.Ot=N;this.useCobaltWidevine=w;this.Fh=E;this.N=[];this.K={};this.J={};this.callback=null;this.L=!1;this.j=[];this.initialize(e,!y)}; pd9=function(e,N){e.callback=N;e.j=[];gt(e.Ot.experiments)?ZT(e):J_J(e)}; ZT=function(e){if(!e.Ss())if(e.N.length===0)e.callback(e.j);else{var N=e.N[0],y=e.K[N],w=Cis(e,y);if(x_&&x_.keySystem===N&&x_.Ass===JSON.stringify(w))e.Fh("remksa",{re:!0}),r_0(e,y,x_.keySystemAccess);else{var E,A;e.Fh("remksa",{re:!1,ok:(A=(E=x_)==null?void 0:E.keySystem)!=null?A:""});x_=void 0;(jI.isActive()?jI.le("emereq",function(){return navigator.requestMediaKeySystemAccess(N,w)}):navigator.requestMediaKeySystemAccess(N,w)).then($B(function(T){r_0(e,y,T,w)}),$B(function(){e.L=!e.L&&e.K[e.N[0]].flavor=== "widevine"; e.L||e.N.shift();ZT(e)}))}}}; r_0=function(e,N,y,w){if(!e.Ss()){w&&(x_={keySystem:N.keySystem,keySystemAccess:y,Ass:JSON.stringify(w)});N.keySystemAccess=y;if(dt(N)){y=v3();w=g.c(Object.keys(e.J[N.flavor]));for(var E=w.next();!E.done;E=w.next())E=E.value,N.J[E]=!!y.canPlayType(E)}else{y=N.keySystemAccess.getConfiguration();if(y.audioCapabilities)for(w=g.c(y.audioCapabilities),E=w.next();!E.done;E=w.next())$b5(e,N,E.value);if(y.videoCapabilities)for(y=g.c(y.videoCapabilities),w=y.next();!w.done;w=y.next())$b5(e,N,w.value)}e.j.push(N); e.useCobaltWidevine||e.T("html5_enable_vp9_fairplay")&&zE(N)?(e.N.shift(),ZT(e)):e.callback(e.j)}}; $b5=function(e,N,y){e.T("log_robustness_for_drm")?N.J[y.contentType]=y.robustness||!0:N.J[y.contentType]=!0}; Cis=function(e,N){var y={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(e.T("html5_enable_vp9_fairplay")&&vU(N))return y.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),y.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[y];dt(N)&&(y.initDataTypes=["keyids","cenc"]);for(var w=g.c(Object.keys(e.J[N.flavor])),E=w.next();!E.done;E=w.next()){E=E.value;var A=E.indexOf("audio/")===0,T=A?y.audioCapabilities:y.videoCapabilities;N.flavor!== "widevine"||e.L?T.push({contentType:E}):A?T.push({contentType:E,robustness:"SW_SECURE_CRYPTO"}):(g.i$&&g.Kp("windows nt")&&!e.T("html5_drm_enable_moho")||T.push({contentType:E,robustness:"HW_SECURE_ALL"}),A=E,e.T("html5_enable_cobalt_experimental_vp9_decoder")&&E.includes("vp09")&&(A=E+"; experimental=allowed"),T.push({contentType:A,robustness:"SW_SECURE_DECODE"}),nC(e.Ot)==="MWEB"&&(yf()||WL())&&(e.Fh("swcrypto",{}),T.push({contentType:E,robustness:"SW_SECURE_CRYPTO"})))}return[y]}; J_J=function(e){if(Xu()&&(g.k$||s8&&e.T("html5_drm_support_ios_mweb")))e.j.push(new BU("fairplay","com.apple.fps.1_0","",e.Ot.experiments));else{var N=YVF(),y=g.Ok(e.N,function(w){var E=e.K[w],A=!1,T=!1,p;for(p in e.J[E.flavor])N(p,w)&&(E.J[p]=!0,A=A||p.indexOf("audio/")===0,T=T||p.indexOf("video/")===0);return A&&T}); y&&e.j.push(e.K[y]);e.N=[]}e.callback(e.j)}; YVF=function(){var e=Xu();if(e){var N=e.isTypeSupported;return function(w,E){return N(E,w)}}var y=v3(); return y&&(y.addKey||y.webkitAddKey)?function(w,E){return!!y.canPlayType(w,E)}:function(){return!1}}; MpP=function(e){this.experiments=e;this.J=2048;this.j=0;this.Kh=(this.D=this.T("html5_streaming_resilience"))?.5:.25;var N=N===void 0?0:N;this.K=g.Y2(this.experiments,"html5_media_time_weight_prop")||N;this.L=this.T("html5_app_limited_aware_bwe");this.l9=g.Y2(this.experiments,"html5_sabr_timeout_penalty_factor")||1;this.qg=(this.Z=this.experiments.gP("html5_consider_end_stall"))&&QY;this.N=this.experiments.gP("html5_measure_max_progress_handling");this.Ng=this.T("html5_treat_requests_pre_elbow_as_metadata"); this.G=this.T("html5_media_time_weight")||!!this.K;this.U=g.Y2(this.experiments,"html5_streaming_fallback_byterate");this.T("html5_sabr_live_audio_early_return_fix")&&QY&&(this.J=65536)}; lu1=function(e,N){this.J=void 0;this.experimentIds=e?e.split(","):[];this.flags=w2(N||"","&");e={};N=g.c(this.experimentIds);for(var y=N.next();!y.done;y=N.next())e[y.value]=!0;this.experiments=e}; g.Y2=function(e,N){e=e.flags[N];JSON.stringify(e);return Number(e)||0}; ms=function(e,N){return(e=e.flags[N])?e.toString():""}; F5n=function(e){if(e=e.flags.html5_web_po_experiment_ids)if(e=e.replace(/\[ *(.*?) *\]/,"$1"))return e.split(",").map(Number);return[]}; SV1=function(e){if(e.J)return e.J;if(e.experimentIds.length<=1)return e.J=e.experimentIds,e.J;var N=[].concat(g.B(e.experimentIds)).map(function(w){return Number(w)}); N.sort();for(var y=N.length-1;y>0;--y)N[y]-=N[y-1];e.J=N.map(function(w){return w.toString()}); e.J.unshift("v1");return e.J}; bLF=function(e){return oz5.then(e)}; HU=function(e,N,y){this.experiments=e;this.i9=N;this.Rq=y===void 0?!1:y;this.Ng=!!g.nM("cast.receiver.platform.canDisplayType");this.U={};this.G=!1;this.N=new Map;this.Z=!0;this.K=this.j=!1;this.J=new Map;this.Kh=0;this.qg=this.experiments.gP("html5_disable_vp9_encrypted");e=g.nM("cast.receiver.platform.getValue");this.l9=g.Y2(this.experiments,"html5_kaios_max_resolution");this.L=!this.Ng&&e&&e("max-video-resolution-vpx")||null;hyn(this)}; Lx3=function(e,N,y){y=y===void 0?1:y;var w=N.itag;if(w==="0")return!0;var E=N.mimeType;if(N.lm()&&Ry()&&e.experiments.gP("html5_appletv_disable_vp9"))return"dwebm";if(Kd(N)&&e.G)return"dav1";if(N.video&&(N.video.isHdr()||N.video.primaries==="bt2020")&&!(rD(e,$E.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(w==="338"&&!(g.i$?vD(53):g.DT&&vD(64)))return"dopus"; var A;if(e.l9&&KC&&((A=N.video)==null?void 0:A.J)>e.l9)return"kaios";A=y;A=A===void 0?1:A;y={};N.video&&(N.video.width&&(y[$E.WIDTH.name]=N.video.width),N.video.height&&(y[$E.HEIGHT.name]=N.video.height),N.video.fps&&(y[$E.FRAMERATE.name]=N.video.fps*A),N.video.N&&(y[$E.EOTF.name]=N.video.N),N.JM&&(y[$E.BITRATE.name]=N.JM*8*A),N.Iq==="("&&(y[$E.CRYPTOBLOCKFORMAT.name]="subsample"),N.video.projectionType==="EQUIRECTANGULAR"||N.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||N.video.projectionType=== "MESH")&&(y[$E.DECODETOTEXTURE.name]="true");N.audio&&N.audio.numChannels&&(y[$E.CHANNELS.name]=N.audio.numChannels);e.j&&mu(N)&&(y[$E.EXPERIMENTAL.name]="allowed");A=g.c(Object.keys($E));for(var T=A.next();!T.done;T=A.next()){T=$E[T.value];var p;if(p=y[T.name])if(p=!(T===$E.EOTF&&N.mimeType.indexOf("vp09.02")>0)){p=T;var C=N;p=!(e.experiments.gP("html5_ignore_h264_framerate_cap")&&p===$E.FRAMERATE&&p20(C))}if(p)if(rD(e,T))if(e.L){if(e.L[T.name]1080&&N.BG&&(E+="; hdcp=2.2");return w==="227"?"hqcenc":w!=="585"&&w!=="588"&&w!=="583"&&w!=="586"&&w!=="584"&&w!=="587"&&w!=="591"&&w!=="592"||e.experiments.gP("html5_enable_new_hvc_enc")?e.isTypeSupported(E)?!0:"tpus":"newhvc"}; WU=function(){var e=WL()&&!vD(29),N=g.Kp("google tv")&&g.Kp("chrome")&&!vD(30);return e||N?!1:MQ9()}; c_5=function(e,N,y){var w=480;N=g.c(N);for(var E=N.next();!E.done;E=N.next()){E=E.value;var A=E.video.J;A<=1080&&A>w&&Lx3(e,E,y)===!0&&(w=A)}return w}; g.Oh=function(e,N){N=N===void 0?!1:N;return WU()&&e.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!N&&e.canPlayType(v3(),"application/x-mpegURL")?!0:!1}; BY3=function(e){kp3(function(){for(var N=g.c(Object.keys($E)),y=N.next();!y.done;y=N.next())rD(e,$E[y.value])})}; rD=function(e,N){N.name in e.U||(e.U[N.name]=XdJ(e,N));return e.U[N.name]}; XdJ=function(e,N){if(e.L)return!!e.L[N.name];if(N===$E.BITRATE&&e.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!e.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(N===$E.AV1_CODECS)return e.isTypeSupported("video/mp4; codecs="+N.valid)&&!e.isTypeSupported("video/mp4; codecs="+N.jL);if(N.video){var y='video/webm; codecs="vp9"';e.isTypeSupported(y)||(y='video/mp4; codecs="avc1.4d401e"')}else y='audio/webm; codecs="opus"', e.isTypeSupported(y)||(y='audio/mp4; codecs="mp4a.40.2"');return e.isTypeSupported(y+"; "+N.name+"="+N.valid)&&!e.isTypeSupported(y+"; "+N.name+"="+N.jL)}; Pi1=function(e){e.j||(e.j=!0,RI(e))}; RI=function(e){e.K=!0;e.experiments.gP("html5_ssap_update_capabilities_on_change")&&dbF(e)}; IuP=function(e,N){var y=0;e.N.has(N)&&(y=e.N.get(N).sM);e.N.set(N,{sM:y+1,Yr:Math.pow(2,y+1)});RI(e)}; TD=function(e){for(var N=[],y=g.c(e.J.keys()),w=y.next();!w.done;w=y.next()){w=w.value;var E=e.J.get(w);N.push(w+"_"+E.maxWidth+"_"+E.maxHeight)}return N.join(".")}; dbF=function(e){e.D=[];for(var N=g.c(e.J.values()),y=N.next();!y.done;y=N.next()){y=y.value;var w=y.Iq;e.experiments.gP("html5_ssap_force_mp4_aac")&&w!=="a"&&w!=="h"||e.N.has(w)||(!e.G||w!=="1"&&w!=="1h")&&e.D.push(y)}}; mG5=function(e,N){for(var y=new Map,w=g.c(e.J.keys()),E=w.next();!E.done;E=w.next()){E=E.value;var A=E.split("_")[0];N.has(A)||y.set(E,e.J.get(E))}e.J=y}; KxM=function(e,N,y){var w,E=((w=y.video)==null?void 0:w.fps)||0;w=N+"_"+E;var A=!!y.audio,T={itag:y.itag,Iq:N,qG:A};if(A)T.numChannels=y.audio.numChannels;else{var p=y.video;T.maxWidth=p==null?void 0:p.width;T.maxHeight=p==null?void 0:p.height;T.maxFramerate=E;rD(e,$E.BITRATE)&&(T.maxBitrateBps=y.JM*8);T.Oa=p==null?void 0:p.isHdr()}p=e.J.get(w);p?A||(y=Math.max(p.maxWidth||0,p.maxHeight||0)>Math.max(T.maxWidth||0,T.maxHeight||0)?p:T,N={itag:y.itag,Iq:N,qG:A,maxWidth:Math.max(p.maxWidth||0,T.maxWidth|| 0),maxHeight:Math.max(p.maxHeight||0,T.maxHeight||0),maxFramerate:E,Oa:y.Oa},rD(e,$E.BITRATE)&&(N.maxBitrateBps=y.maxBitrateBps),e.J.set(w,N)):e.J.set(w,T)}; WxH=function(e,N,y){var w,E=((w=y.video)==null?void 0:w.fps)||0;w=N+"_"+E;var A=!!y.audio,T=e.J.get(w);a:{var p=e.J.get(w),C=!!y.audio;if(p){if(C){var r=!1;break a}var Y;if(!C&&((r=y.video)==null?0:r.height)&&p.maxHeight&&p.maxHeight>=((Y=y.video)==null?void 0:Y.height)){r=!1;break a}}r=!0}r&&(r=y.itag,N=T?T:{itag:r,Iq:N,qG:A},A?N.numChannels=y.audio.numChannels:(A=y.video,N.maxWidth=A==null?void 0:A.width,N.maxHeight=A==null?void 0:A.height,N.maxFramerate=E,rD(e,$E.BITRATE)&&(N.maxBitrateBps=y.JM* 8),N.Oa=A==null?void 0:A.isHdr()),e.J.set(w,N))}; hyn=function(e){var N;(N=navigator.mediaCapabilities)!=null&&N.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(y){y.smooth&&y.powerEfficient&&(e.Kh=2160)})}; GE=function(){g.pT.call(this);this.items={}}; Uh=function(){g.kd.apply(this,arguments)}; LC=function(){g.BM.apply(this,arguments)}; vzE=function(e,N,y){this.encryptedClientKey=N;this.L=y;this.J=new Uint8Array(e.buffer,0,16);this.K=new Uint8Array(e.buffer,16)}; zy1=function(e){e.N||(e.N=new Uh(e.J));return e.N}; sh=function(e){try{return hO(e)}catch(N){return null}}; iLE=function(e,N){if(!N&&e)try{N=JSON.parse(e)}catch(E){}if(N){e=N.clientKey?sh(N.clientKey):null;var y=N.encryptedClientKey?sh(N.encryptedClientKey):null,w=N.keyExpiresInSeconds?Number(N.keyExpiresInSeconds)*1E3+(0,g.iC)():null;e&&y&&w&&(this.J=new vzE(e,y,w));N.onesieUstreamerConfig&&(this.onesieUstreamerConfig=sh(N.onesieUstreamerConfig)||void 0);this.baseUrl=N.baseUrl}}; eV=function(){this.data=new Uint8Array(2048);this.pos=0;aI||(aI=iI("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))}; N_=function(e,N){e.add(N==null||isNaN(N)?0:N+1)}; yy=function(e){this.J=this.N=0;this.alpha=Math.exp(Math.log(.5)/e)}; ww=function(e){this.N=e===void 0?15:e;this.values=new Float64Array(176);this.J=new Float64Array(11);this.K=new Float64Array(16)}; EI=function(e,N,y,w){y=y===void 0?.5:y;w=w===void 0?0:w;this.resolution=N;this.N=0;this.K=!1;this.s0=!0;this.J=Math.round(e*this.resolution);this.values=Array(this.J);for(e=0;e0)N=e.byterate,this.Ng=!0;else{var w; y=(((w=navigator.connection)==null?void 0:w.downlink)||0)*64*1024;y>0&&(N=y,this.Ng=!0)}this.K.Kj(this.policy.Z,N);e.delay>0&&this.U.Kj(1,Math.min(e.delay,2));e.stall>0&&this.G.Kj(1,e.stall);e.init>0&&(this.aq=Math.min(e.init,this.aq));e.interruptions&&(this.j=this.j.concat(e.interruptions),this.j.length>16&&this.j.pop());this.Kh=(0,g.iC)();this.policy.G>0&&(this.Zl=new g.e6(this.Bk,this.policy.G,this),g.Q(this,this.Zl),this.Zl.start())}; TX=function(e,N,y,w){e.K.Kj(w===void 0?N:w,y/N);e.Z=(0,g.iC)()}; gz5=function(e){e.L||(e.L=(0,g.iC)());e.policy.D&&(e.Z=(0,g.iC)())}; VpP=function(e,N){if(e.L){var y=N-e.L;if(y<6E4){if(y>1E3){var w=e.interruptions;w.push(Math.ceil(y));w.sort(function(E,A){return A-E}); w.length>16&&w.pop()}e.l9+=y}}e.L=N}; JR=function(e,N,y,w,E,A){A=A===void 0?!1:A;e.Rq.Kj(N,y/N);e.Z=(0,g.iC)();E||e.D.Kj(1,N-w);A||(e.L=0);e.Kh>-1&&(0,g.iC)()-e.Kh>3E4&&fuJ(e)}; pa=function(e,N,y){N=Math.max(N,e.N.J);e.G.Kj(1,y/N)}; Ca=function(e){e=e.U.AT()+e.i9.AT()||0;e=isNaN(e)?.5:e;return e=Math.min(e,5)}; rw=function(e,N,y){isNaN(y)||(e.qg+=y);isNaN(N)||(e.Et+=N)}; Yj=function(e){e=e.K.AT();return e>0?e:1}; M_=function(e,N,y){N=N===void 0?!1:N;y=y===void 0?1048576:y;var w=Yj(e);w=1/((e.G.AT()||0)*e.policy.Ng+1/w);var E=e.Rq.AT();E=E>0?E:1;var A=Math.max(w,E);e.policy.L>0&&E=4E3}; ulP=function(e){this.experiments=e;this.J=17;this.K=13E4;this.Z=.5;this.N=!1;this.Kh=this.T("html5_use_histogram_for_bandwidth");this.j=!1;this.L=g.Y2(this.experiments,"html5_auxiliary_estimate_weight");this.Ng=g.Y2(this.experiments,"html5_stall_factor")||1;this.G=g.Y2(this.experiments,"html5_check_for_idle_network_interval_ms");this.U=this.experiments.gP("html5_trigger_loader_when_idle_network");this.D=this.experiments.gP("html5_sabr_fetch_on_idle_network_preloaded_players")}; ZL_=function(e,N){e=e===void 0?{}:e;N=N===void 0?{}:N;g.x.call(this);var y=this;this.values=e;this.lY=N;this.N={};this.K=this.J=0;this.j=new g.e6(function(){qV5(y)},1E4); g.Q(this,this.j)}; Fn=function(e,N){xb0(e,N);return e.values[N]&&e.lY[N]?e.values[N]/Math.pow(2,e.J/e.lY[N]):0}; xb0=function(e,N){e.values[N]||(N=c65(),e.values=N.values||{},e.lY=N.halfLives||{},e.N=N.values?Object.assign({},N.values):{})}; qV5=function(e){var N=c65();if(N.values){N=N.values;for(var y={},w=g.c(Object.keys(e.values)),E=w.next();!E.done;E=w.next())E=E.value,N[E]&&e.N[E]&&(e.values[E]+=N[E]-e.N[E]),y[E]=Fn(e,E);e.N=y}N=e.lY;y={};y.values=e.N;y.halfLives=N;g.uY("yt-player-memory",y,2592E3)}; fa=function(e,N,y,w,E){g.x.call(this);this.webPlayerContextConfig=N;this.Z3=w;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.MX=this.Xz=this.Ut=this.YB=this.userDisplayName=this.userDisplayImage=this.j_="";this.J={};this.FZ={};this.controlsType="0";this.CC=NaN;this.a9=!1;this.Fr=(0,g.iC)();this.pX=0;this.rk=this.Mk=!1;this.Ci=!0;this.preferGapless=this.al=this.sY=this.K=this.Sw=this.WE=!1;this.Cl=[];this.Js=!1;e=e?g.DA(e):{};N&&N.csiPageType&&(this.csiPageType=N.csiPageType);N&&N.csiServiceName&& (this.csiServiceName=N.csiServiceName);N&&N.preferGapless&&(this.preferGapless=N.preferGapless);this.experiments=new lu1(N?N.serializedExperimentIds:e.fexp,N?N.serializedExperimentFlags:e.fflags);this.forcedExperiments=N?N.serializedForcedExperimentIds:pO("",e.forced_experiments)||void 0;this.cspNonce=(N==null?0:N.cspNonce)?N.cspNonce:pO("",e.csp_nonce);this.T("web_player_deprecated_uvr_killswitch");try{var A=document.location.toString()}catch(O){A=""}this.im=A;this.ancestorOrigins=(w=window.location.ancestorOrigins)? Array.from(w):[];this.j=A2(!1,N?N.isEmbed:e.is_embed);if(N&&N.device){if(w=N.device,w.androidOsExperience&&(this.J.caoe=""+w.androidOsExperience),w.androidPlayServicesVersion&&(this.J.capsv=""+w.androidPlayServicesVersion),w.brand&&(this.J.cbrand=w.brand),w.browser&&(this.J.cbr=w.browser),w.browserVersion&&(this.J.cbrver=w.browserVersion),w.cobaltReleaseVehicle&&(this.J.ccrv=""+w.cobaltReleaseVehicle),this.J.c=w.interfaceName||"WEB",this.J.cver=w.interfaceVersion||"html5",w.interfaceTheme&&(this.J.ctheme= w.interfaceTheme),this.J.cplayer=w.interfacePlayerType||"UNIPLAYER",w.model&&(this.J.cmodel=w.model),w.network&&(this.J.cnetwork=w.network),w.os&&(this.J.cos=w.os),w.osVersion&&(this.J.cosver=w.osVersion),w.platform&&(this.J.cplatform=w.platform),A=ms(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),A==="all"||A==="once")w.chipset&&(this.FZ.cchip=w.chipset),w.cobaltAppVersion&&(this.FZ.ccappver=w.cobaltAppVersion),w.firmwareVersion&&(this.FZ.cfrmver=w.firmwareVersion),w.deviceYear&&(this.FZ.crqyear= w.deviceYear)}else this.J.c=e.c||"web",this.J.cver=e.cver||"html5",this.J.cplayer="UNIPLAYER";this.loaderUrl=N?this.j||jV1(this)&&N.loaderUrl?N.loaderUrl||"":this.im:this.j||jV1(this)&&e.loaderUrl?pO("",e.loaderUrl):this.im;this.j&&g.jM("yt.embedded_player.embed_url",this.loaderUrl);this.G=Ln(this.loaderUrl,nzs);w=this.loaderUrl;var T=T===void 0?!1:T;this.Ip=UG(Ln(w,QVH),w,T,"Trusted Ad Domain URL");this.LX=A2(!1,e.privembed);this.protocol=this.im.indexOf("http:")===0?"http":"https";this.qg=sG((N? N.customBaseYoutubeUrl:e.BASE_YT_URL)||"")||sG(this.im)||this.protocol+"://www.youtube.com/";T=N?N.eventLabel:e.el;w="detailpage";T==="adunit"?w=this.j?"embedded":"detailpage":T==="embedded"||this.G?w=Th(w,T,mb5):T&&(w="embedded");this.Rq=w;v3n();T=null;w=N?N.playerStyle:e.ps;A=g.Gw(HL9,w);!w||A&&!this.G||(T=w);this.playerStyle=T;this.Z=g.Gw(HL9,this.playerStyle);this.houseBrandUserStatus=N==null?void 0:N.houseBrandUserStatus;this.Kh=this.Z&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard"; this.gf=!this.Kh;this.Zl=A2(!1,e.disableplaybackui);this.disablePaidContentOverlay=A2(!1,N==null?void 0:N.disablePaidContentOverlay);this.disableSeek=A2(!1,N==null?void 0:N.disableSeek);this.enableSpeedOptions=(N==null?void 0:N.enableSpeedOptions)||(v3().defaultPlaybackRate?SV||g.NI||KC?g.DT&&vD("20")||g.i$&&vD("4")||g.oK&&vD("11")||Lp():!(g.oK&&!g.Kp("chrome")||SV||g.Kp("android")||g.Kp("silk")):!1);this.IY=A2(!1,e.enable_faster_speeds);var p;this.supportsVarispeedExtendedFeatures=(p=N==null?void 0: N.supportsVarispeedExtendedFeatures)!=null?p:!1;this.N=A2(this.playerStyle==="blazer",e.is_html5_mobile_device||N&&N.isMobileDevice);this.Bk=eu()||yf();this.v2=this.T("mweb_allow_background_playback")?!1:this.N&&!this.Z;this.Et=VI();this.E0=g.bd;var C;this.Tg=!!(N==null?0:(C=N.embedsHostFlags)==null?0:C.optOutApiDeprecation);var r;this.sR=!!(N==null?0:(r=N.embedsHostFlags)==null?0:r.allowPfpImaIntegration);this.uo=this.T("embeds_web_enable_ve_conversion_logging_tracking_no_allow_list");var Y;N?N.hideInfo!== void 0&&(Y=!N.hideInfo):Y=e.showinfo;this.d2=g.hR(this)&&!this.Tg||A2(!cg(this)&&!kj(this)&&!this.Z,Y);this.Hc=N?!!N.mobileIphoneSupportsInlinePlayback:A2(!1,e.playsinline);p=this.N&&Bg&&Xn!=null&&Xn>0&&Xn<=2.3;C=N?N.useNativeControls:e.use_native_controls;this.U=g.hR(this)&&this.N;r=this.N&&!this.U;C=g.Pg(this)||!p&&A2(r,C)?"3":"1";this.disableOrganicUi=!(N==null||!N.disableOrganicUi);r=N?N.controlsType:e.controls;this.controlsType=this.disableOrganicUi?"0":r!=="0"&&r!==0?C:"0";this.zx=this.N;this.color= Th("red",N?N.progressBarColor:e.color,K5M);this.hp=this.controlsType==="3";this.PY=!this.j;this.RO=(C=!this.PY&&!kj(this)&&!this.Kh&&!this.Z&&!cg(this))&&!this.hp&&this.controlsType==="1";this.jp=g.dw(this)&&C&&this.controlsType==="0"&&!this.RO&&!(N==null?0:N.embedsEnableEmc3ds);this.Yb=this.TV=p;this.U2=(this.controlsType==="3"||this.N||A2(!1,e.use_media_volume))&&!this.U;this.Ps=s8&&!g.SE(601)?!1:!0;this.Em=this.j||!1;this.VB=kj(this)?"":(this.loaderUrl||e.post_message_origin||"").substring(0,128); this.widgetReferrer=pO("",N?N.widgetReferrer:e.widget_referrer);var M;N?N.disableCastApi&&(M=!1):M=e.enablecastapi;M=!this.G||A2(!0,M);p=!0;N&&N.disableMdxCast&&(p=!1);this.bb=this.T("enable_cast_for_web_unplugged")&&g.IK(this)&&p||g.ZY(this)&&p||M&&p&&this.controlsType==="1"&&!this.N&&(kj(this)||g.dw(this)||g.vg(this));this.nm=!!window.document.pictureInPictureEnabled||gp();M=N?!!N.supportsAutoplayOverride:A2(!1,e.autoplayoverride);this.CN=!(this.N&&!g.hR(this))&&!g.Kp("nintendo wiiu")||M;this.Pf= (N?!!N.enableMutedAutoplay:A2(!1,e.mutedautoplay))&&!1;M=(kj(this)||cg(this))&&this.playerStyle==="blazer";this.ll=N?!!N.disableFullscreen:!A2(!0,e.fs);p=g.Yh(g.zX(this))&&g.hR(this);this.Y_=!this.ll&&(M||g.h2())&&!p;M=WL()&&vD(58)&&!yf();p=Gv||typeof MediaSource==="undefined";this.Fo=this.T("uniplayer_block_pip")&&(M||p)||this.T("html5_disable_pip_with_standard_api");M=g.hR(this)&&!this.Tg;var l;N?N.disableRelatedVideos!==void 0&&(l=!N.disableRelatedVideos):l=e.rel;this.NK=M||A2(!this.Z,l);this.Sz= A2(!1,N?N.enableContentOwnerRelatedVideos:e.co_rel);this.D=yf()&&Xn>0&&Xn<=4.4?"_top":"_blank";this.Rx=g.vg(this);this.yh=A2(this.playerStyle==="blazer",N?N.enableCsiLogging:e.enablecsi);switch(this.playerStyle){case "blogger":l="bl";break;case "gmail":l="gm";break;case "gac":l="ga";break;case "books":l="gb";break;case "docs":case "flix":l="gd";break;case "duo":l="gu";break;case "google-live":l="gl";break;case "google-one":l="go";break;case "play":l="gp";break;case "chat":l="hc";break;case "hangouts-meet":l= "hm";break;case "photos-edu":case "picasaweb":l="pw";break;default:l="yt"}this.Ng=l;this.l9=pO("",N?N.authorizedUserIndex:e.authuser);this.jn=g.hR(this)&&(this.LX||!lSn()||this.Bk);var F;N?N.disableWatchLater!==void 0&&(F=!N.disableWatchLater):F=e.showwatchlater;this.DD=((l=!this.jn)||!!this.l9&&l)&&A2(!this.Kh,this.G?F:void 0);this.jN=N?N.isMobileDevice||!!N.disableKeyboardControls:A2(!1,e.disablekb);this.loop=A2(!1,e.loop);this.pageId=pO("",N?N.initialDelegatedSessionId:e.pageid);this.m4=A2(!0, e.canplaylive);this.Kx=A2(!1,e.livemonitor);this.disableSharing=A2(this.Z,N?N.disableSharing:e.ss);(F=N&&this.T("fill_video_container_size_override_from_wpcc")?N.videoContainerOverride:e.video_container_override)?(l=F.split("x"),l.length!==2?F=null:(F=Number(l[0]),l=Number(l[1]),F=isNaN(F)||isNaN(l)||F*l<=0?null:new g.l8(F,l))):F=null;this.Zc=F;this.mute=N?!!N.startMuted:A2(!1,e.mute);this.storeUserVolume=!this.mute&&A2(this.controlsType!=="0",N?N.storeUserVolume:e.store_user_volume);F=N?N.annotationsLoadPolicy: e.iv_load_policy;this.annotationsLoadPolicy=this.controlsType==="3"?3:Th(void 0,F,id);this.captionsLanguagePreference=N?N.captionsLanguagePreference||"":pO("",e.cc_lang_pref);F=Th(2,N?N.captionsLanguageLoadPolicy:e.cc_load_policy,id);this.controlsType==="3"&&F===2&&(F=3);this.dT=F;this.SR=N?N.hl||"en_US":pO("en_US",e.hl);this.region=N?N.contentRegion||"US":pO("US",e.cr);this.hostLanguage=N?N.hostLanguage||"en":pO("en",e.host_language);this.Qk=!this.LX&&Math.random()=480;this.schedule=new AR(p,new MpP(this.experiments),E);g.Q(this,this.schedule);var S;this.enableSafetyMode= (S=N==null?void 0:N.initialEnableSafetyMode)!=null?S:A2(!1,e.enable_safety_mode);E=this.Zl?!1:kj(this)&&this.playerStyle!=="blazer";var k;N?N.disableAutonav!=null&&(k=!N.disableAutonav):k=e.allow_autonav;this.YO=A2(E,!this.Kh&&k);this.sendVisitorIdHeader=N?!!N.sendVisitorIdHeader:A2(!1,e.send_visitor_id_header);var X;this.playerStyle==="docs"&&(N?X=N.disableNativeContextMenu:X=e.disable_native_context_menu);this.disableNativeContextMenu=A2(!1,X);this.pz=dX(this)&&this.T("enable_skip_intro_button"); this.embedConfig=pO("",N?N.serializedEmbedConfig:e.embed_config);this.i9=$h(e,g.hR(this));this.K=this.i9==="EMBEDDED_PLAYER_MODE_PFL";this.embedsErrorLinks=!(N==null||!N.embedsErrorLinks);this.ul=A2(!1,e.full_window);var d;this.Dl=!((d=this.webPlayerContextConfig)==null?0:d.chromeless);var v;this.livingRoomAppMode=Th("LIVING_ROOM_APP_MODE_UNSPECIFIED",e.living_room_app_mode||(N==null?void 0:(v=N.device)==null?void 0:v.livingRoomAppMode),Ryn);var V;k=J2(NaN,N==null?void 0:(V=N.device)==null?void 0: V.deviceYear);isNaN(k)||(this.deviceYear=k);this.transparentBackground=N?!!N.transparentBackground:A2(!1,e.transparent_background);this.showMiniplayerButton=N?!!N.showMiniplayerButton:A2(!1,e.show_miniplayer_button);var Z;g.hR(this)&&!(N==null?0:(Z=N.embedsHostFlags)==null?0:Z.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=N?!!N.externalFullscreen:A2(!1,e.external_fullscreen);this.showMiniplayerUiWhenMinimized=N?!!N.showMiniplayerUiWhenMinimized:A2(!1,e.use_miniplayer_ui); var n;this.Ci=(n=e.show_loop_video_toggle)!=null?n:!0;this.jI=Math.random()<1E-4;this.ub=e.onesie_hot_config||(N==null?0:N.onesieHotConfig)?new iLE(e.onesie_hot_config,N==null?void 0:N.onesieHotConfig):void 0;this.isTectonic=N?!!N.isTectonic:!!e.isTectonic;this.playerCanaryState=y;this.playerCanaryStage=N==null?void 0:N.canaryStage;this.UY=new ZL_;g.Q(this,this.UY);this.Sw=A2(!1,e.force_gvi);this.datasyncId=(N==null?void 0:N.datasyncId)||g.Lb("DATASYNC_ID");this.il=g.Lb("LOGGED_IN",!1);this.vp=(N== null?void 0:N.allowWoffleManagement)||!1;this.xX=Infinity;this.ib=NaN;this.livingRoomPoTokenId=N==null?void 0:N.livingRoomPoTokenId;this.T("html5_high_res_logging_always")?this.sY=!0:this.sY=Math.random()*100=0&&e0&&e.jI&&(w.sort(),g.uA(new g.Gh("Player client parameters changed after startup",w)));e.userAge=J2(e.userAge,N.user_age);e.j_=pO(e.j_,N.user_display_email);e.userDisplayImage=pO(e.userDisplayImage,N.user_display_image);g.eO(e.userDisplayImage)||(e.userDisplayImage= "");e.userDisplayName=pO(e.userDisplayName,N.user_display_name);e.YB=pO(e.YB,N.user_gender);e.csiPageType=pO(e.csiPageType,N.csi_page_type);e.csiServiceName=pO(e.csiServiceName,N.csi_service_name);e.yh=A2(e.yh,N.enablecsi);e.pageId=pO(e.pageId,N.pageid);if(y=N.enabled_engage_types)e.enabledEngageTypes=new Set(y.split(","));N.living_room_session_po_token&&(e.NG=N.living_room_session_po_token.toString())}; tR=function(e,N){return!e.Z&&WL()&&vD(55)&&e.controlsType==="3"&&!N}; g.ud=function(e){e=DW(e.qg);return e==="www.youtube-nocookie.com"?"www.youtube.com":e}; q_=function(e,N,y){return e.protocol+"://i1.ytimg.com/vi/"+N+"/"+(y||"hqdefault.jpg")}; ZW=function(e){return kj(e)&&!g.IK(e)}; g.Pg=function(e){return e.T("html5_local_playsinline")?s8&&!g.SE(602)&&!("playsInline"in v3()):s8&&!e.Hc||g.Kp("nintendo wiiu")?!0:!1}; nC=function(e){return e.J.c}; g.I_=function(e){return/^TVHTML5/.test(nC(e))}; g.xj=function(e){return nC(e)==="TVHTML5"}; jV1=function(e){return nC(e)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; OLM=function(e){return e.J.cmodel==="CHROMECAST ULTRA/STEAK"||e.J.cmodel==="CHROMECAST/STEAK"}; g.jV=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; dX=function(e){return/web/i.test(nC(e))}; g.na=function(e){return nC(e).toUpperCase()==="WEB"}; Vy=function(e){return nC(e)==="WEB_KIDS"}; g.IK=function(e){return nC(e)==="WEB_UNPLUGGED"}; Qy=function(e){return nC(e)==="TVHTML5_UNPLUGGED"}; g.Pa=function(e){return g.IK(e)||nC(e)==="TV_UNPLUGGED_CAST"||Qy(e)}; g.ZY=function(e){return nC(e)==="WEB_REMIX"}; g.mT=function(e){return nC(e)==="WEB_EMBEDDED_PLAYER"}; g.Ka=function(e){return(e.deviceIsAudioOnly||!g.i$||Gv||e.controlsType==="3"?!1:g.NI?e.j&&g.SE(51):!0)||(e.deviceIsAudioOnly||!g.DT||Gv||e.controlsType==="3"?!1:g.NI?e.j&&g.SE(48):g.SE(38))||(e.deviceIsAudioOnly||!g.oK||Gv||e.controlsType==="3"?!1:g.NI?e.j&&g.SE(37):g.SE(27))||!e.deviceIsAudioOnly&&g.Hg&&!hhs()&&g.SE(11)||!e.deviceIsAudioOnly&&g.k$&&g.SE("604.4")}; L5F=function(e){if(g.dw(e)&&Bg)return!1;if(g.DT){if(!g.SE(47)||!g.SE(52)&&g.SE(51))return!1}else if(g.k$)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; auM=function(e,N){return e.enabledEngageTypes.has(N.toString())||sV5.includes(N)}; kj=function(e){return e.Rq==="detailpage"}; g.dw=function(e){return e.Rq==="embedded"}; Wg=function(e){return e.Rq==="leanback"}; cg=function(e){return e.Rq==="adunit"||e.playerStyle==="gvn"}; g.vg=function(e){return e.Rq==="profilepage"}; g.hR=function(e){return e.j&&g.dw(e)&&!cg(e)&&!e.Z}; OI=function(e){if(!e.userDisplayImage)return"";var N=e.userDisplayImage.split("/");if(N.length===5)return e=N[N.length-1].split("="),e[1]="s20-c",N[N.length-1]=e.join("="),N.join("/");if(N.length===8)return N.splice(7,0,"s20-c"),N.join("/");if(N.length===9)return N[7]+="-s20-c",N.join("/");g.uA(new g.Gh("Profile image not a FIFE URL.",e.userDisplayImage));return e.userDisplayImage}; g.RK=function(e){var N=g.ud(e);ec0.includes(N)&&(N="www.youtube.com");return e.protocol+"://"+N}; g.GX=function(e,N){N=N===void 0?"":N;if(e.Z3){var y=new O3,w,E=e.Z3();E.signedOut?w="":E.token?w=E.token:E.pendingResult.then(function(A){E.signedOut?y.resolve(""):y.resolve(A.token)},function(A){g.uA(new g.Gh("b189348328_oauth_callback_failed",{error:A})); y.resolve(N)}); return w!==void 0?u4(w):new fp(y)}return u4(N)}; UI=function(e,N){N=N===void 0?"":N;return e.il?Nc(!0):Tm(A$(Nc(g.GX(e,N)),function(y){return Nc(!!y)}),function(){return Nc(!1)})}; DW=function(e){var N=g.uB(e);return(e=Number(g.to(4,e))||null)?N+":"+e:N}; La=function(e,N){N=N===void 0?!1:N;var y=nd[e],w=Ny1[y],E=ycJ[e];if(!E||!w)return null;N=new Zr(N?E.height:E.width,N?E.width:E.height,E.fps);w=Eh(w,N,y);return new QI(e,w,{video:N,JM:E.bitrate/8})}; EAP=function(e){var N=Ny1[nd[e]],y=whM[e];return y&&N?new QI(e,N,{audio:new tG(y.audioSampleRate,y.numChannels)}):null}; sI=function(e){this.J=e}; aK=function(e,N,y,w){if(y)return tE();y={};var E=v3();N=g.c(N);for(var A=N.next();!A.done;A=N.next())if(A=A.value,e.canPlayType(E,A.getInfo().mimeType)||w){var T=A.J.video.quality;if(!y[T]||y[T].getInfo().lm())y[T]=A}e=[];y.auto&&e.push(y.auto);w=g.c(x6);for(E=w.next();!E.done;E=w.next())(E=y[E.value])&&e.push(E);return e.length?u4(e):tE()}; Ac5=function(e){this.itag=e.itag;this.url=e.url;this.codecs=e.codecs;this.width=e.width;this.height=e.height;this.fps=e.fps;this.bitrate=e.bitrate;var N;this.N=((N=e.audioItag)==null?void 0:N.split(","))||[];this.kW=e.kW;this.BG=e.BG||"";this.Vl=e.Vl;this.audioChannels=e.audioChannels;this.J=""}; Ty9=function(e,N,y,w){N=N===void 0?!1:N;y=y===void 0?!0:y;w=w===void 0?{}:w;var E={};e=g.c(e);for(var A=e.next();!A.done;A=e.next()){A=A.value;if(N&&MediaSource&&MediaSource.isTypeSupported){var T=A.type;A.audio_channels&&(T=T+"; channels="+A.audio_channels);if(!MediaSource.isTypeSupported(T)){w[A.itag]="tpus";continue}}if(y||!A.drm_families||A.eotf!=="smpte2084"&&A.eotf!=="arib-std-b67"){T=void 0;var p={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},C=A.type.match(/codecs="([^"]*)"/); C=C?C[1]:"";A.audio_track_id&&(T=new g.sM(A.name,A.audio_track_id,!!A.is_default));var r=A.eotf;A=new Ac5({itag:A.itag,url:A.url,codecs:C,width:Number(A.width),height:Number(A.height),fps:Number(A.fps),bitrate:Number(A.bitrate),audioItag:A.audio_itag,kW:r?p[r]:void 0,BG:A.drm_families,Vl:T,audioChannels:Number(A.audio_channels)});E[A.itag]=E[A.itag]||[];E[A.itag].push(A)}else w[A.itag]="enchdr"}return E}; Jcs=function(e,N,y,w,E){this.K=e;this.N=N;this.L=y;this.cpn=w;this.Z=E;this.j=0;this.J=""}; phM=function(e,N){e.K.some(function(y){var w;return((w=y.Vl)==null?void 0:w.getId())===N}); e.J=N}; ex=function(e,N,y){e.cpn&&(N=g.Qb(N,{cpn:e.cpn}));y&&(N=g.Qb(N,{paired:y}));return N}; CRn=function(e,N){e=e.itag.toString();N!==null&&(e+=N.itag.toString());return e}; rcJ=function(e){for(var N=[],y=[],w=g.c(e.N),E=w.next();!E.done;E=w.next())E=E.value,E.bitrate<=e.j?N.push(E):y.push(E);N.sort(function(A,T){return T.bitrate-A.bitrate}); y.sort(function(A,T){return A.bitrate-T.bitrate}); e.N=N.concat(y)}; NO=function(e,N,y){this.J=e;this.N=N;this.expiration=y;this.yl=null}; $pE=function(e,N){if(!(Gv||U8()||Ry()))return null;e=Ty9(N,e.T("html5_filter_fmp4_in_hls"));if(!e)return null;N=[];for(var y={},w=g.c(Object.keys(e)),E=w.next();!E.done;E=w.next()){E=g.c(e[E.value]);for(var A=E.next();!A.done;A=E.next()){var T=A.value;T.Vl&&(A=T.Vl.getId(),y[A]||(T=new g.W1(A,T.Vl),y[A]=T,N.push(T)))}}return N.length>0?N:null}; S_5=function(e,N,y,w,E,A,T){if(!(Gv||U8()||Ry()))return tE();var p={},C=Y__(y),r=Ty9(y,e.T("html5_filter_fmp4_in_hls"),e.L.Z,p);if(!r)return T({noplst:1}),tE();MmP(r);y={};var Y=(y.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",y),M;y=[];var l=[],F=[],S=null,k="";w=w&&w.match(/hls_timedtext_playlist/)?new Ac5({itag:"0",url:w,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,Vl:new g.sM("English","en",!1)}):null;for(var X=g.c(Object.keys(r)),d=X.next();!d.done;d=X.next())if(d=d.value,!e.T("html5_disable_drm_hfr_1080")|| d!=="383"&&d!=="373"){d=g.c(r[d]);for(var v=d.next();!v.done;v=d.next())if(v=v.value,v.width){for(var V=g.c(v.N),Z=V.next();!Z.done;Z=V.next())if(Z=Z.value,r[Z]){v.J=Z;break}v.J||(v.J=lpJ(r,v));if(V=r[v.J])if(y.push(v),v.BG==="fairplay"&&(M=Y),Z="",v.kW==="PQ"?Z="smpte2084":v.kW==="HLG"&&(Z="arib-std-b67"),Z&&(k=Z),F.push(Fz_(V,[v],w,A,v.itag,v.width,v.height,v.fps,C,void 0,void 0,M,Z)),!S||v.width*v.height*v.fps>S.width*S.height*S.fps)S=v}else l.push(v)}else p[d]="disdrmhfr";F.reduce(function(n, R){return R.getInfo().isEncrypted()&&n},!0)&&(M=Y); E=Math.max(E,0);Y=S||{};r=Y.fps===void 0?0:Y.fps;S=Y.width===void 0?0:Y.width;Y=Y.height===void 0?0:Y.height;X=e.T("html5_native_audio_track_switching");F.push(Fz_(l,y,w,A,"93",S,Y,r,C,"auto",E,M,k,X));Object.entries(p).length&&T(p);return aK(e.L,F,tR(e,N),!1)}; Fz_=function(e,N,y,w,E,A,T,p,C,r,Y,M,l,F){for(var S=0,k="",X=g.c(e),d=X.next();!d.done;d=X.next())d=d.value,k||(k=d.itag),d.audioChannels&&d.audioChannels>S&&(S=d.audioChannels,k=d.itag);E=new QI(E,"application/x-mpegURL",{audio:new tG(0,S),video:new Zr(A,T,p,null,void 0,r,void 0,l),BG:M,ZZ:k});e=new Jcs(e,N,y?[y]:[],w,!!F);e.j=Y?Y:1369843;return new NO(E,e,C)}; Y__=function(e){e=g.c(e);for(var N=e.next();!N.done;N=e.next())if(N=N.value,N.url&&(N=N.url.split("expire/"),!(N.length<=1)))return+N[1].split("/")[0];return NaN}; lpJ=function(e,N){for(var y=g.c(Object.keys(e)),w=y.next();!w.done;w=y.next()){w=w.value;var E=e[w][0];if(!E.width&&E.BG===N.BG&&!E.audioChannels)return w}return""}; MmP=function(e){for(var N=new Set,y=g.c(Object.values(e)),w=y.next();!w.done;w=y.next())w=w.value,w.length&&(w=w[0],w.height&&w.codecs.startsWith("vp09")&&N.add(w.height));y=[];if(N.size){w=g.c(Object.keys(e));for(var E=w.next();!E.done;E=w.next())if(E=E.value,e[E].length){var A=e[E][0];A.height&&N.has(A.height)&&!A.codecs.startsWith("vp09")&&y.push(E)}}N=g.c(y);for(y=N.next();!y.done;y=N.next())delete e[y.value]}; y3=function(e,N){this.J=e;this.N=N}; oAM=function(e,N,y,w){var E=[];y=g.c(y);for(var A=y.next();!A.done;A=y.next()){var T=A.value;if(T.url){A=new g.YE(T.url,!0);if(T.s){var p=A,C=T.sp,r=F$E(decodeURIComponent(T.s));p.set(C,encodeURIComponent(r))}p=g.c(Object.keys(w));for(C=p.next();!C.done;C=p.next())C=C.value,A.set(C,w[C]);T=ei(T.type,T.quality,T.itag,T.width,T.height);E.push(new y3(T,A))}}return aK(e.L,E,tR(e,N),!1)}; w8=function(e,N){this.J=e;this.N=N}; btF=function(e,N,y){var w=[];y=g.c(y);for(var E=y.next();!E.done;E=y.next())if((E=E.value)&&E.url){var A=ei(E.type,"medium","0");w.push(new w8(A,E.url))}return aK(e.L,w,tR(e,N),!1)}; hcs=function(e,N){var y=[],w=ei(N.type,"auto",N.itag);y.push(new w8(w,N.url));return aK(e.L,y,!1,!0)}; kKE=function(e){return e&&cc5[e]?cc5[e]:null}; Byn=function(e){if(e=e.commonConfig)this.url=e.url,this.urlQueryOverride=e.urlQueryOverride,e.ustreamerConfig&&(this.eL=sh(e.ustreamerConfig)||void 0)}; XhF=function(e,N){var y;if(N=N==null?void 0:(y=N.watchEndpointSupportedOnesieConfig)==null?void 0:y.html5PlaybackOnesieConfig)e.K4=new Byn(N)}; g.En=function(e){e=e===void 0?{}:e;this.languageCode=e.languageCode||"";this.languageName=e.languageName||null;this.kind=e.kind||"";this.name=e.name===void 0?null:e.name;this.displayName=e.displayName||null;this.id=e.id||null;this.J=e.is_servable||!1;this.isTranslateable=e.is_translateable||!1;this.url=e.url||null;this.vssId=e.vss_id||"";this.isDefault=e.is_default||!1;this.translationLanguage=e.translationLanguage||null;this.xtags=e.xtags||"";this.captionId=e.captionId||""}; g.Tr=function(e){var N={languageCode:e.languageCode,languageName:e.languageName,displayName:g.A3(e),kind:e.kind,name:e.name,id:e.id,is_servable:e.J,is_default:e.isDefault,is_translateable:e.isTranslateable,vss_id:e.vssId};e.xtags&&(N.xtags=e.xtags);e.captionId&&(N.captionId=e.captionId);e.translationLanguage&&(N.translationLanguage=e.translationLanguage);return N}; g.J3=function(e){return e.translationLanguage?e.translationLanguage.languageCode:e.languageCode}; g.PRs=function(e){var N=e.vssId;e.translationLanguage&&N&&(N="t"+N+"."+g.J3(e));return N}; g.A3=function(e){var N=[];if(e.displayName)N.push(e.displayName);else{var y=e.languageName||"";N.push(y);e.kind==="asr"&&y.indexOf("(")===-1&&N.push(" (Legendas autom\u00e1ticas)");e.name&&N.push(" - "+e.name)}e.translationLanguage&&N.push(" >> "+e.translationLanguage.languageName);return N.join("")}; zc5=function(e,N,y,w){e||(e=N&&dp0.hasOwnProperty(N)&&IpP.hasOwnProperty(N)?IpP[N]+"_"+dp0[N]:void 0);N=e;if(!N)return null;e=N.match(vA0);if(!e||e.length!==5)return null;if(e=N.match(vA0)){var E=Number(e[3]),A=[7,8,10,5,6];e=!(Number(e[1])===1&&E===8)&&A.indexOf(E)>=0}else e=!1;return y||w||e?N:null}; p3=function(e,N){for(var y={},w=g.c(Object.keys(itE)),E=w.next();!E.done;E=w.next()){E=E.value;var A=N?N+E:E;A=e[A+"_webp"]||e[A];g.eO(A)&&(y[itE[E]]=A)}return y}; C3=function(e){var N={};if(!e||!e.thumbnails)return N;e=e.thumbnails.filter(function(p){return!!p.url}); e.sort(function(p,C){return p.width-C.width||p.height-C.height}); for(var y=g.c(Object.keys(Dps)),w=y.next();!w.done;w=y.next()){var E=Number(w.value);w=Dps[E];for(var A=g.c(e),T=A.next();!T.done;T=A.next())if(T=T.value,T.width>=E){E=gA3(T.url);g.eO(E)&&(N[w]=E);break}}(e=e.pop())&&e.width>=1280&&(e=gA3(e.url),g.eO(e)&&(N["maxresdefault.jpg"]=e));return N}; gA3=function(e){return e.startsWith("//")?"https:"+e:e}; r8=function(e){return e&&e.baseUrl||""}; $K=function(e){e=g.JE(e);for(var N=g.c(Object.keys(e)),y=N.next();!y.done;y=N.next()){y=y.value;var w=e[y];e[y]=Array.isArray(w)?w[0]:w}return e}; VmM=function(e,N){e.botguardData=N.playerAttestationRenderer.botguardData;N=N.playerAttestationRenderer.challenge;N!=null&&(e.VY=N)}; uv5=function(e,N){N=g.c(N);for(var y=N.next();!y.done;y=N.next()){y=y.value;var w=y.interstitials.map(function(T){var p=g.m(T,fpn);if(p)return{is_yto_interstitial:!0,raw_player_response:p};if(T=g.m(T,tm5))return Object.assign({is_yto_interstitial:!0},AE(T))}); w=g.c(w);for(var E=w.next();!E.done;E=w.next())switch(E=E.value,y.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":e.interstitials=e.interstitials.concat({time:0,playerVars:E,UR:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":e.interstitials=e.interstitials.concat({time:0x7ffffffffffff,playerVars:E,UR:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var A=Number(y.podConfig.timeToInsertAtMillis);e.interstitials=e.interstitials.concat({time:A,playerVars:E, UR:A===0?5:7})}}}; q_J=function(e,N){if(N=N.find(function(y){return!(!y||!y.tooltipRenderer)}))e.tooltipRenderer=N.tooltipRenderer}; Zt5=function(e,N){N.subscribeCommand&&(e.subscribeCommand=N.subscribeCommand);N.unsubscribeCommand&&(e.unsubscribeCommand=N.unsubscribeCommand);N.addToWatchLaterCommand&&(e.addToWatchLaterCommand=N.addToWatchLaterCommand);N.removeFromWatchLaterCommand&&(e.removeFromWatchLaterCommand=N.removeFromWatchLaterCommand);N.getSharePanelCommand&&(e.getSharePanelCommand=N.getSharePanelCommand)}; xp9=function(e,N){N!=null?(e.yy=N,e.hs=!0):(e.yy="",e.hs=!1)}; YK=function(e,N){this.type=e||"";this.id=N||""}; g.MO=function(e){return new YK(e.substring(0,2),e.substring(2))}; g.l0=function(e,N){this.Ot=e;this.author="";this.AV=null;this.playlistLength=0;this.J=this.sessionData=null;this.D={};this.title="";if(N){this.author=N.author||N.playlist_author||"";this.title=N.playlist_title||"";if(e=N.session_data)this.sessionData=w2(e,"&");var y;this.J=((y=N.thumbnail_ids)==null?void 0:y.split(",")[0])||null;this.D=p3(N,"playlist_");this.videoId=N.video_id||void 0;if(y=N.list)switch(N.listType){case "user_uploads":this.playlistId=(new YK("UU","PLAYER_"+y)).toString();break;default:if(e= N.playlist_length)this.playlistLength=Number(e)||0;this.playlistId=g.MO(y).toString();if(N=N.video)this.videoId=(N[0]||null).video_id||void 0}else N.playlist&&(this.playlistLength=N.playlist.toString().split(",").length)}}; g.Fr=function(e,N){this.Ot=e;this.B1=this.author="";this.AV=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.El=this.lengthText="";this.sessionData=null;this.D={};this.title="";if(N){this.ariaLabel=N.aria_label||void 0;this.author=N.author||"";this.B1=N.B1||"";if(e=N.endscreen_autoplay_session_data)this.AV=w2(e,"&");this.hV=N.hV;this.isLivePlayback=N.live_playback==="1";this.isUpcoming=!!N.isUpcoming;if(e=N.length_seconds)this.lengthSeconds=typeof e==="string"?Number(e):e;this.lengthText= N.lengthText||"";this.El=N.El||"";this.publishedTimeText=N.publishedTimeText||void 0;if(e=N.session_data)this.sessionData=w2(e,"&");this.shortViewCount=N.short_view_count_text||void 0;this.D=p3(N);this.title=N.title||"";this.videoId=N.docid||N.video_id||N.videoId||N.id||void 0;this.watchUrl=N.watchUrl||void 0}}; jXP=function(e){var N,y,w=(N=e.getWatchNextResponse())==null?void 0:(y=N.contents)==null?void 0:y.twoColumnWatchNextResults,E,A,T,p,C;e=(E=e.getWatchNextResponse())==null?void 0:(A=E.playerOverlays)==null?void 0:(T=A.playerOverlayRenderer)==null?void 0:(p=T.endScreen)==null?void 0:(C=p.watchNextEndScreenRenderer)==null?void 0:C.results;if(!e){var r,Y;e=w==null?void 0:(r=w.endScreen)==null?void 0:(Y=r.endScreen)==null?void 0:Y.results}return e}; g.of=function(e){var N,y,w;e=g.m((N=e.getWatchNextResponse())==null?void 0:(y=N.playerOverlays)==null?void 0:(w=y.playerOverlayRenderer)==null?void 0:w.decoratedPlayerBarRenderer,Sx);return g.m(e==null?void 0:e.playerBar,nAE)}; QXF=function(e){this.J=e.playback_progress_0s_url;this.K=e.playback_progress_2s_url;this.N=e.playback_progress_10s_url}; mp0=function(){if(b0===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(N){}a:{try{var e=!!self.localStorage}catch(N){e=!1}if(e&&(e=g.j6(g.UF()+"::yt-player"))){b0=new nR(e);break a}b0=void 0}}return b0}; g.h3=function(){var e=mp0();if(!e)return{};try{var N=e.get("yt-player-lv");return JSON.parse(N||"{}")}catch(y){return{}}}; g.HtM=function(e){var N=mp0();N&&(e=JSON.stringify(e),N.set("yt-player-lv",e))}; g.cH=function(e){return g.h3()[e]||0}; g.kK=function(e,N){var y=g.h3();N!==y[e]&&(N!==0?y[e]=N:delete y[e],g.HtM(y))}; g.BH=function(e){return g.f(function(N){return N.return(g.WV(KzP(),e))})}; PH=function(e,N,y,w,E,A,T,p){var C,r,Y,M,l,F;return g.f(function(S){switch(S.J){case 1:return C=g.cH(e),C===4?S.return(4):g.D(S,g.e7(),2);case 2:r=S.N;if(!r)throw g.X6("wiac");if(!p||T===void 0){S.u9(3);break}return g.D(S,Wzs(p,T),4);case 4:T=S.N;case 3:return Y=y.lastModified||"0",g.D(S,g.BH(r),5);case 5:return M=S.N,g.c5(S,6),Xr++,g.D(S,g.fl(M,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",Lx:!0},function(k){if(A!==void 0&&T!==void 0){var X=""+e+"|"+N.id+"|"+Y+"|"+String(A).padStart(10, "0");X=g.tg(k.objectStore("media"),T,X)}else X=g.d0.resolve(void 0);var d=Ot3(e,N.gx()),v=Ot3(e,!N.gx()),V={fmts:Rcn(w),format:y||{}};d=g.tg(k.objectStore("index"),V,d);var Z=w.downloadedEndTime===-1;V=Z?k.objectStore("index").get(v):g.d0.resolve(void 0);var n={fmts:"music",format:{}};k=Z&&E&&!N.gx()?g.tg(k.objectStore("index"),n,v):g.d0.resolve(void 0);return g.d0.all([k,V,X,d]).then(function(R){R=g.c(R);R.next();R=R.next().value;Xr--;var O=g.cH(e);if(O!==4&&Z&&E||R!==void 0&&g.GKM(R.fmts))O=1,g.kK(e, O);return O})}),8); case 8:return S.return(S.N);case 6:l=g.XH(S);Xr--;F=g.cH(e);if(F===4)return S.return(F);g.kK(e,4);throw l;}})}; g.Up5=function(e){var N,y;return g.f(function(w){if(w.J==1)return g.D(w,g.e7(),2);if(w.J!=3){N=w.N;if(!N)throw g.X6("ri");return g.D(w,g.BH(N),3)}y=w.N;return w.return(g.fl(y,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(E){var A=IDBKeyRange.bound(e+"|",e+"~");return E.objectStore("index").getAll(A).then(function(T){return T.map(function(p){return p?p.format:{}})})}))})}; sX9=function(e,N,y,w,E){var A,T,p;return g.f(function(C){if(C.J==1)return g.D(C,g.e7(),2);if(C.J!=3){A=C.N;if(!A)throw g.X6("rc");return g.D(C,g.BH(A),3)}T=C.N;p=g.fl(T,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(r){var Y=""+e+"|"+N+"|"+y+"|"+String(w).padStart(10,"0");return r.objectStore("media").get(Y)}); return E?C.return(p.then(function(r){if(r===void 0)throw Error("No data from indexDb");return Lz3(E,r)}).catch(function(r){throw new g.Gh("Error while reading chunk: "+r.name+", "+r.message); })):C.return(p)})}; g.GKM=function(e){return e?e==="music"?!0:e.includes("dlt=-1")||!e.includes("dlt="):!1}; Ot3=function(e,N){return""+e+"|"+(N?"v":"a")}; Rcn=function(e){var N={};return E8((N.dlt=e.downloadedEndTime.toString(),N.mket=e.maxKnownEndTime.toString(),N.avbr=e.averageByteRate.toString(),N))}; eQ0=function(e){var N={},y={};e=g.c(e);for(var w=e.next();!w.done;w=e.next()){var E=w.value,A=E.split("|");E.match(g.apE)?(w=Number(A.pop()),isNaN(w)?y[E]="?":(A=A.join("|"),(E=N[A])?(A=E[E.length-1],w===A.end+1?A.end=w:E.push({start:w,end:w})):N[A]=[{start:w,end:w}])):y[E]="?"}e=g.c(Object.keys(N));for(w=e.next();!w.done;w=e.next())w=w.value,y[w]=N[w].map(function(T){return T.start+"-"+T.end}).join(","); return y}; d8=function(e){g.pT.call(this);this.J=null;this.K=new m7;this.J=null;this.Z=new Set;this.crossOrigin=e||""}; NjM=function(e,N,y){for(y=If(e,y);y>=0;){var w=e.levels[y];if(w.isLoaded(vH(w,N))&&(w=g.zr(w,N)))return w;y--}return g.zr(e.levels[0],N)}; wrF=function(e,N,y){y=If(e,y);for(var w,E;y>=0;y--)if(w=e.levels[y],E=vH(w,N),!w.isLoaded(E)){w=e;var A=y,T=A+"-"+E;w.Z.has(T)||(w.Z.add(T),w.K.enqueue(A,{qV:A,gC:E}))}yen(e)}; yen=function(e){if(!e.J&&!e.K.isEmpty()){var N=e.K.remove();e.J=Et0(e,N)}}; Et0=function(e,N){var y=document.createElement("img");e.crossOrigin&&(y.crossOrigin=e.crossOrigin);y.src=e.levels[N.qV].nC(N.gC);y.onload=function(){var w=N.qV,E=N.gC;e.J!==null&&(e.J.onload=null,e.J=null);w=e.levels[w];w.loaded.add(E);yen(e);var A=w.columns*w.rows;E*=A;w=Math.min(E+A-1,w.VC()-1);E=[E,w];e.publish("l",E[0],E[1])}; return y}; g.i0=function(e,N,y,w){this.level=e;this.j=N;this.loaded=new Set;this.level=e;this.j=N;e=y.split("#");this.width=Math.floor(Number(e[0]));this.height=Math.floor(Number(e[1]));this.frameCount=Math.floor(Number(e[2]));this.columns=Math.floor(Number(e[3]));this.rows=Math.floor(Number(e[4]));this.J=Math.floor(Number(e[5]));this.K=e[6];this.signature=e[7];this.videoLength=w}; vH=function(e,N){return Math.floor(N/(e.columns*e.rows))}; g.zr=function(e,N){N>=e.T_()&&e.La();var y=vH(e,N),w=e.columns*e.rows,E=N%w;N=E%e.columns;E=Math.floor(E/e.columns);var A=e.La()+1-w*y;if(A1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; AeM=function(e,N,y){return(e=e.levels[N])?e.P8(y):-1}; If=function(e,N){var y=e.j.get(N);if(y)return y;y=e.levels.length;for(var w=0;w=N)return e.j.set(N,w),w;e.j.set(N,y-1);return y-1}; g8=function(e,N,y,w){y=y.split("#");y=[y[1],y[2],0,y[3],y[4],-1,y[0],""].join("#");g.i0.call(this,e,N,y,0);this.N=null;this.L=w?2:0}; V3=function(e,N,y,w){DG.call(this,e,0,void 0,N,!(w===void 0||!w));for(e=0;e(y!=null?y:50)&&(y=lCM.shift())&&jx.delete(y),y=E),E!==y&&e.kN("ssei","dcpn_"+E+"_"+y+"_"+e.clientPlaybackNonce),y)}; qO=function(e,N){var y=N.raw_watch_next_response;if(!y){var w=N.watch_next_response;w&&(y=JSON.parse(w))}if(y){e.Zl=y;var E=e.Zl.playerCueRangeSet;E&&g.n3(e,E);var A=e.Zl.playerOverlays;if(A){var T=A.playerOverlayRenderer;if(T){var p=T.autonavToggle;p&&(e.autoplaySwitchButtonRenderer=g.m(p,F9M),e.T("web_player_autonav_use_server_provided_state")&&Q3(e)&&(e.autonavState=e.autoplaySwitchButtonRenderer.enabled?2:1));var C=T.videoDetails;if(C){var r=C.embeddedPlayerOverlayVideoDetailsRenderer;var Y=C.playerOverlayVideoDetailsRenderer; Y&&(Y.title&&(N.title=g.SY(Y.title)),Y.subtitle&&(N.subtitle=g.SY(Y.subtitle)))}g.dw(e.Ot)&&(e.DD=!!T.addToMenu);S15(e,T.shareButton);T.startPosition&&T.endPosition&&(e.progressBarStartPosition=T.startPosition,e.progressBarEndPosition=T.endPosition);var M=T.gatedActionsOverlayRenderer;M&&(e.t7=g.m(M,otM));var l,F,S,k=g.m((l=e.getWatchNextResponse())==null?void 0:(F=l.playerOverlays)==null?void 0:(S=F.playerOverlayRenderer)==null?void 0:S.infoPanel,bNM);if(k){e.gI=Number(k==null?void 0:k.durationMs)|| NaN;if(k==null?0:k.infoPanelOverviewViewModel)e.Fr=k==null?void 0:k.infoPanelOverviewViewModel;if(k==null?0:k.infoPanelDetailsViewModel)e.ib=k==null?void 0:k.infoPanelDetailsViewModel}e.showSeekingControls=!!T.showSeekingControls}}var X,d,v=(X=e.getWatchNextResponse())==null?void 0:(d=X.contents)==null?void 0:d.twoColumnWatchNextResults;if(v){var V=v.desktopOverlay&&g.m(v.desktopOverlay,hQE);V&&(V.suppressShareButton&&(e.showShareButton=!1),V.suppressWatchLaterButton&&(e.DD=!1))}r&&ces(e,N,r);var Z= J2(0,N.autoplay_count),n=e.getWatchNextResponse(),R,O=(R=n.contents)==null?void 0:R.twoColumnWatchNextResults,E9,Jn,eM,H=(E9=n.playerOverlays)==null?void 0:(Jn=E9.playerOverlayRenderer)==null?void 0:(eM=Jn.autoplay)==null?void 0:eM.playerOverlayAutoplayRenderer,a=jXP(e),h,K=(h=n.contents)==null?void 0:h.singleColumnWatchNextResults;if(K){var aP;if(((aP=K.autoplay)==null?0:aP.autoplay)&&!K.playlist){var XF=K.autoplay.autoplay.sets,Yw={},v5=new g.Fr(e.X()),U9=null,yT;if(XF){for(var S0=g.c(XF),P=S0.next();!P.done;P= S0.next()){var I=P.value.autoplayVideoRenderer;if(I&&I.compactVideoRenderer){U9=I.compactVideoRenderer;break}}if(yT=XF[0].autoplayVideo){var z=yT.clickTrackingParams;z&&(Yw.itct=z);Yw.autonav="1";Yw.playnext=String(Z)}}else Yw.feature="related-auto";var t=g.m(yT,g.m0);if(U9){v5.videoId=U9.videoId;var q=U9.shortBylineText;q&&(v5.author=g.SY(q));var y0=U9.title;y0&&(v5.title=g.SY(y0))}else t!=null&&t.videoId&&(v5.videoId=t.videoId);v5.AV=Yw;e.suggestions=[];e.t4=v5}}if(a){for(var An=[],Ts=g.c(a),u= Ts.next();!u.done;u=Ts.next()){var $J=u.value,SM=void 0,CM=null;if($J.endScreenVideoRenderer){var g_=$J.endScreenVideoRenderer,MM=g_.title;CM=new g.Fr(e.X());CM.videoId=g_.videoId;CM.lengthSeconds=g_.lengthInSeconds||0;var j0=g_.publishedTimeText;j0&&(CM.publishedTimeText=g.SY(j0));var YR=g_.shortBylineText;YR&&(CM.author=g.SY(YR));var H5=g_.shortViewCountText;H5&&(CM.shortViewCount=g.SY(H5));if(MM){CM.title=g.SY(MM);var Zy=MM.accessibility;if(Zy){var CB=Zy.accessibilityData;CB&&CB.label&&(CM.ariaLabel= CB.label)}}var VF=g_.navigationEndpoint;if(VF){SM=VF.clickTrackingParams;var K9=g.m(VF,g.m0),YY=g.m(VF,g.qu);K9?CM.hV=K9:YY!=null&&(CM.watchUrl=YY.url)}var ng=g_.thumbnailOverlays;if(ng)for(var xR=g.c(ng),Qp=xR.next();!Qp.done;Qp=xR.next()){var hL=Qp.value.thumbnailOverlayTimeStatusRenderer;if(hL)if(hL.style==="LIVE"){CM.isLivePlayback=!0;break}else if(hL.style==="UPCOMING"){CM.isUpcoming=!0;break}}CM.D=C3(g_.thumbnail)}else if($J.endScreenPlaylistRenderer){var MP=$J.endScreenPlaylistRenderer,gR= MP.navigationEndpoint;if(!gR)continue;var Mg=g.m(gR,g.m0);if(!Mg)continue;var Vb=Mg.videoId;CM=new g.l0(e.X());CM.playlistId=MP.playlistId;CM.playlistLength=Number(MP.videoCount)||0;CM.J=Vb||null;CM.videoId=Vb;var VP=MP.title;VP&&(CM.title=g.SY(VP));var fc=MP.shortBylineText;fc&&(CM.author=g.SY(fc));SM=gR.clickTrackingParams;CM.D=C3(MP.thumbnail)}CM&&(SM&&(CM.sessionData={itct:SM}),An.push(CM))}e.suggestions=An}if(H){e.P0=!!H.preferImmediateRedirect;e.NG=e.NG||!!H.webShowNewAutonavCountdown;e.Sw= e.Sw||!!H.webShowBigThumbnailEndscreen;if(e.NG||e.Sw){var iq=O||null,Lf=new g.Fr(e.X());Lf.videoId=H.videoId;var m_=H.videoTitle;if(m_){Lf.title=g.SY(m_);var wr=m_.accessibility;if(wr){var Xb=wr.accessibilityData;Xb&&Xb.label&&(Lf.ariaLabel=Xb.label)}}var my=H.byline;my&&(Lf.author=g.SY(my));var Md=H.publishedTimeText;Md&&(Lf.publishedTimeText=g.SY(Md));var M$=H.shortViewCountText;M$&&(Lf.shortViewCount=g.SY(M$));var lU=H.thumbnailOverlays;if(lU)for(var FQ=g.c(lU),wz=FQ.next();!wz.done;wz=FQ.next()){var Ap= wz.value.thumbnailOverlayTimeStatusRenderer;if(Ap)if(Ap.style==="LIVE"){Lf.isLivePlayback=!0;break}else if(Ap.style==="UPCOMING"){Lf.isUpcoming=!0;break}else if(Ap.style==="DEFAULT"&&Ap.text){Lf.lengthText=g.SY(Ap.text);var Eq=Ap.text.accessibility;if(Eq){var Ay=Eq.accessibilityData;Ay&&Ay.label&&(Lf.El=Ay.label||"")}break}}Lf.D=C3(H.background);var Si=H.nextButton;if(Si){var o8=Si.buttonRenderer;if(o8){var bU=o8.navigationEndpoint;if(bU){var hX=g.m(bU,g.m0);hX&&(Lf.hV=hX)}}}if(H.topBadges){var cI= H.topBadges[0];if(cI){var kH=g.m(cI,kRF);kH&&kH.style==="BADGE_STYLE_TYPE_PREMIUM"&&(Lf.Qeg=!0)}}var zC=H.alternativeTitle;zC&&(Lf.B1=g.SY(zC));var PB={autonav:"1",playnext:String(Z)};Lf.playlistId&&(PB.autoplay="1");if(iq){var ik,W4,TH,BI,Jy=(ik=iq.autoplay)==null?void 0:(W4=ik.autoplay)==null?void 0:(TH=W4.sets)==null?void 0:(BI=TH[0])==null?void 0:BI.autoplayVideo;if(Jy){var XQ=Jy.clickTrackingParams;XQ&&(PB.itct=XQ);var pV=g.m(Jy,g.m0);pV&&(Lf.FD=pV)}}else if(H){var PI,dO,I8,vI=(PI=H.nextButton)== null?void 0:(dO=PI.buttonRenderer)==null?void 0:(I8=dO.navigationEndpoint)==null?void 0:I8.clickTrackingParams;vI&&(PB.itct=vI)}PB.itct||(PB.feature="related-auto");Lf.AV=PB;e.suggestions||(e.suggestions=[]);e.t4=Lf}H.countDownSecs!=null&&(e.DE=H.countDownSecs*1E3);H.countDownSecsForFullscreen!=null&&(e.NJ=H.countDownSecsForFullscreen>=0?H.countDownSecsForFullscreen*1E3:-1);e.T("web_autonav_color_transition")&&H.watchToWatchTransitionRenderer&&(e.watchToWatchTransitionRenderer=g.m(H.watchToWatchTransitionRenderer, BjM))}var CV=jXP(e);if(CV){var z6,Di,iU,rz=CV==null?void 0:(z6=CV[0])==null?void 0:(Di=z6.endScreenVideoRenderer)==null?void 0:(iU=Di.navigationEndpoint)==null?void 0:iU.clickTrackingParams,Do=g.HH(e);rz&&Do&&(Do.sessionData={itct:rz})}e.Zl.currentVideoThumbnail&&(e.D=C3(e.Zl.currentVideoThumbnail));var gO,I1,kf,vB,$i,ci=(gO=e.Zl)==null?void 0:(I1=gO.contents)==null?void 0:(kf=I1.twoColumnWatchNextResults)==null?void 0:(vB=kf.results)==null?void 0:($i=vB.results)==null?void 0:$i.contents;if(ci&&ci[1]){var kp, Bi,Vc,Tu,XG=(kp=ci[1].videoSecondaryInfoRenderer)==null?void 0:(Bi=kp.owner)==null?void 0:(Vc=Bi.videoOwnerRenderer)==null?void 0:(Tu=Vc.thumbnail)==null?void 0:Tu.thumbnails;XG&&XG.length&&(e.profilePicture=XG[XG.length-1].url)}var gd=r9(N),fh,th=(fh=e.getWatchNextResponse())==null?void 0:fh.onResponseReceivedEndpoints;if(th)for(var tX=g.c(th),Yi=tX.next();!Yi.done;Yi=tX.next()){var MY=Yi.value;g.m(MY,K3)&&(e.lF=g.m(MY,K3));var Jp=g.m(MY,XrP),uU=void 0;if((uU=Jp)==null?0:uU.entityKeys)e.Tv=Jp.entityKeys|| [],Jp.visibleOnLoadKeys&&(e.visibleOnLoadKeys=Jp.visibleOnLoadKeys)}if(e.T("web_key_moments_markers")){var fX=g.WH.getState().entities,q$=g.J5("visibility_override","markersVisibilityOverrideEntity");var Hz=Cj(fX,"markersVisibilityOverrideEntity",q$);e.Dl=(Hz==null?void 0:Hz.videoId)===(e.videoId||gd)&&(Hz==null?0:Hz.visibilityOverrideMarkersKey)?Hz.visibilityOverrideMarkersKey:e.visibleOnLoadKeys;e.visibleOnLoadKeys=[].concat(g.B(e.Dl))}}}; Q3=function(e){var N;return((N=e.autoplaySwitchButtonRenderer)==null?void 0:N.enabled)!==void 0}; On=function(e){return!!(e.K&&e.K.videoInfos&&e.K.videoInfos.length)}; g.sn=function(e){var N=e.U;e.T("html5_gapless_unlimit_format_selection")&&Rf(e)&&(N=!1);var y=!!e.J&&e.J.Cx,w=e.Ot,E=e.wg(),A=Gr(e),T=e.dT,p=N,C=e.isOtf();N=e.Ej();var r=e.Kx,Y=e.getUserAudio51Preference(),M=Un(e),l=new LaE(w);if(w.B9()||w.T("html5_logging_format_selection"))l.N=!0;l.Wk=A;l.dT=T&&w.G;l.aq=Y;g.Kp("windows nt 5.1")&&!g.DT&&(l.RY=!0);if(A=E)A=g.Ka(w)?L5F(w):!1;A&&(l.qg=!0);p&&(l.RY=!0,l.LX=!0);C&&!w.T("html5_otf_prefer_vp9")&&(l.RY=!0);w.playerStyle==="picasaweb"&&(C&&(l.RY=!1),l.l9= !1);r&&(l.RY=!0);rD(w.L,$E.CHANNELS)&&(w.T("html5_enable_aac51")&&(l.Kh=!0),w.T("html5_enable_ac3")&&(l.j=!0),w.T("html5_enable_eac3")&&(l.L=!0),w.T("html5_enable_ac3_gapless")&&(l.Zl=!0));w.T("html5_block_8k_hfr")&&(l.VB=!0);l.Z=g.Y2(w.experiments,"html5_max_selectable_quality_ordinal");l.G=g.Y2(w.experiments,"html5_min_selectable_quality_ordinal");KC&&(l.jn=480);if(y||E)l.l9=!1;l.Dl=!1;l.disableAv1=M;y=k_(w,l.J,void 0,l.disableAv1);y>0&&y<2160&&(Zo()||w.T("html5_format_hybridization"))&&(l.J.supportsChangeType= +Zo(),l.G4=y);y>=2160&&(l.Rq=!0);PFH()&&(l.J.serveVp9OverAv1IfHigherRes=0,l.U2=!1);l.Ej=N;l.Bk=g.Um||w9()&&!N?!1:!0;l.U=w.T("html5_format_hybridization");l.SR=w.T("html5_disable_encrypted_vp9_live_non_2k_4k");L3(e)&&(l.PY=e.T("html5_prefer_language_over_codec"));Ry()&&e.playerResponse&&e.playerResponse.playerConfig&&e.playerResponse.playerConfig.webPlayerConfig&&e.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(l.j=!0,l.L=!0);e.U&&e.isAd()&&(e.VE&&(l.Ng=e.VE),e.g6&&(l.K= e.g6));l.Et=e.isLivePlayback&&e.RV()&&e.Ot.T("html5_drm_live_audio_51");l.a9=e.yJ;return e.sY=l}; Un=function(e){return e.Ot.T("html5_disable_av1")||e.T("html5_gapless_shorts_disable_av1")&&Rf(e)?!0:!1}; PSJ=function(e){jZ("drm_pb_s",void 0,e.Et);e.Ut||e.J&&Ai(e.J);var N={};e.J&&(N=qpP(e.h4,g.sn(e),e.Ot.L,e.J,function(y){return e.publish("ctmp","fmtflt",y)},!0,new Set)); N=new qX(N,e.Ot,e.oI,e.useCobaltWidevine?Ry()?af(e):!1:!1,function(y,w){e.Fh(y,w)}); g.Q(e,N);e.Qk=!1;e.loading=!0;pd9(N,function(y){jZ("drm_pb_f",void 0,e.Et);for(var w=g.c(y),E=w.next();!E.done;E=w.next())switch(E=E.value,E.flavor){case "fairplay":E.Ut=e.Ut;E.c5=e.c5;E.zd=e.zd;break;case "widevine":E.Tg=e.Tg}e.uo=y;if(e.uo.length>0&&(e.L=e.uo[0],e.Ot.B9())){y={};w=g.c(Object.entries(e.L.J));for(E=w.next();!E.done;E=w.next()){var A=g.c(E.value);E=A.next().value;A=A.next().value;var T="unk";(E=E.match(/(.*)codecs="(.*)"/))&&(T=E[2]);y[T]=A}e.Fh("drmProbe",y)}e.V0()})}; d2H=function(e,N){if(N.length===0||e5(e))return null;NK(e,"html5_enable_cobalt_experimental_vp9_decoder")&&(b2=!0);var y=e.BG;var w=e.lengthSeconds,E=e.isLivePlayback,A=e.Ta,T=e.Ot,p=uQH(N);if(E||A){T=T.experiments;w=new wt("",T,!0);w.N=!A;w.Cx=!0;w.isManifestless=!0;w.isLive=!A;w.Ta=A;N=g.c(N);for(E=N.next();!E.done;E=N.next()){var C=E.value;E=TE(C,y);p=bN(C);p=pC(p.Uv||C.url||"",p.xm,p.s);var r=p.get("id");r&&r.includes("%7E")&&(w.D=!0);var Y=void 0;r=(Y=T)==null?void 0:Y.gP("html5_max_known_end_time_rebase"); Y=Number(C.targetDurationSec||5);C=Number(C.maxDvrDurationSec||14400);var M=Number(p.get("mindsq")||p.get("min_sq")||"0"),l=Number(p.get("maxdsq")||p.get("max_sq")||"0")||Infinity;w.L$=w.L$||M;w.ZK=w.ZK||l;var F=!Ug(E);p&&eI(w,new n1(p,E,{j1:Y,mA:F,pI:C,L$:M,ZK:l,TR:300,Ta:A,Ym:r}))}y=w}else if(p==="FORMAT_STREAM_TYPE_OTF"){w=w===void 0?0:w;A=new wt("",T.experiments,!1);A.duration=w||0;T=g.c(N);for(w=T.next();!w.done;w=T.next())w=w.value,N=TE(w,y,A.duration),E=bN(w),(E=pC(E.Uv||w.url||"",E.xm,E.s))&& (N.streamType==="FORMAT_STREAM_TYPE_OTF"?eI(A,new Qt(E,N,"sq/0")):eI(A,new L1(E,N,ka(w.initRange),ka(w.indexRange))));A.isOtf=!0;y=A}else{w=w===void 0?0:w;A=new wt("",T.experiments,!1);A.duration=w||0;T=g.c(N);for(w=T.next();!w.done;w=T.next())p=w.value,w=TE(p,y,A.duration),N=ka(p.initRange),E=ka(p.indexRange),r=bN(p),(p=pC(r.Uv||p.url||"",r.xm,r.s))&&eI(A,new L1(p,w,N,E));y=A}A=e.isLivePlayback&&!e.Ta&&!e.Rq&&!e.isPremiere;e.T("html5_live_head_playable")&&(!yG(e)&&A&&e.Fh("missingLiveHeadPlayable", {}),e.Ot.Ng==="yt"&&(y.Bk=!0));return y}; e5=function(e){return Ry()?!af(e):U8()?!(!e.Ut||!e.T("html5_enable_safari_fairplay")&&WU()):!1}; af=function(e){return e.T("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; g.n3=function(e,N){N=g.c(N);for(var y=N.next();!y.done;y=N.next())if(y=y.value,y.cueRangeSetIdentifier){var w=void 0;e.pT.set(y.cueRangeSetIdentifier,(w=y.playerCueRanges)!=null?w:[])}}; wd=function(e){return!(!e.J||!e.J.isManifestless)}; Es=function(e){return e.LX?e.isLowLatencyLiveStream&&e.J!=null&&Y_(e.J)>=5:e.isLowLatencyLiveStream&&e.J!=void 0&&Y_(e.J)>=5}; ICH=function(e){return Ry()&&af(e)?!1:e5(e)&&(g.Pa(e.Ot)?!e.isLivePlayback:e.hlsvp)||!WU()||e.uf?!0:!1}; iNE=function(e){e.loading=!0;e.AA=!1;if(vtP(e))g.Up5(e.videoId).then(function(w){zQF(e,w)}).then(function(){e.V0()}); else{a_(e.U2)||g.uA(new g.Gh("DASH MPD Origin invalid: ",e.U2));var N=e.U2,y=g.Y2(e.Ot.experiments,"dash_manifest_version")||4;N=g.Qb(N,{mpd_version:y});e.isLowLatencyLiveStream&&e.latencyClass!=="NORMAL"||(N=g.Qb(N,{pacing:0}));Hh9(N,e.Ot.experiments,e.isLivePlayback).then(function(w){e.Ss()||(AY(e,w,!0),jZ("mrc",void 0,e.Et),e.V0())},function(w){e.Ss()||(e.loading=!1,e.publish("dataloaderror",new P3("manifest.net.retryexhausted",{backend:"manifest", rc:w.status},1)))}); jZ("mrs",void 0,e.Et)}}; zQF=function(e,N){var y=N.map(function(C){return C.itag}),w; if((w=e.playerResponse)!=null&&w.streamingData){w=[];if(e.T("html5_offline_always_use_local_formats")){y=0;for(var E=g.c(N),A=E.next();!A.done;A=E.next()){A=A.value;var T=Object.assign({},A);T.signatureCipher="";w.push(T);T=g.c(e.playerResponse.streamingData.adaptiveFormats);for(var p=T.next();!p.done;p=T.next())if(p=p.value,A.itag===p.itag&&A.xtags===p.xtags){y+=1;break}}yY&&(Y=F.getInfo().audio.numChannels)}Y>2&&e.Fh("hlschl",{mn:Y});var X;((X=e.sY)==null?0:X.N)&&e.Fh("hlsfmtaf",{itags:M.join(".")});var d;if(e.T("html5_enable_vp9_fairplay")&&((d=e.L)==null?0:zE(d)))for(e.Fh("drm",{sbdlfbk:1}),Y=g.c(e.uo),M=Y.next();!M.done;M=Y.next())if(M=M.value,vU(M)){e.L=M;break}CX(e,r)})}return tE()}; tjM=function(e){if(e.isExternallyHostedPodcast&&e.Rx){var N=pX(e.Rx);if(!N[0])return tE();e.H$=N[0];return hcs(e.Ot,N[0]).then(function(y){CX(e,y)})}return e.rk&&e.O9?btF(e.Ot,e.isAd(),e.rk).then(function(y){CX(e,y)}):tE()}; q1M=function(e){if(e.isExternallyHostedPodcast)return tE();var N=pX(e.Rx,e.zT);if(e.hlsvp){var y=TjP(e.hlsvp,e.clientPlaybackNonce,e.CC);N.push(y)}return oAM(e.Ot,e.isAd(),N,u4s(e)).then(function(w){CX(e,w)})}; gt0=function(e,N){e.K=N;if(e.K){N=g.c(e.K.videoInfos);for(var y=N.next();!y.done;y=N.next()){y=y.value;var w=y.containerType;w!==0&&(e.w$[w]=y.id)}}rd(e);if(e.L&&e.K&&e.K.videoInfos&&!(e.K.videoInfos.length<=0)&&(N=GS(e.K.videoInfos[0]),e.L.flavor==="fairplay"!==N))for(y=g.c(e.uo),w=y.next();!w.done;w=y.next())if(w=w.value,N===(w.flavor==="fairplay")){e.L=w;break}}; CX=function(e,N){e.jp=N;gt0(e,new ed(g.dn(e.jp,function(y){return y.getInfo()})))}; u4s=function(e){var N={cpn:e.clientPlaybackNonce,c:e.Ot.J.c,cver:e.Ot.J.cver};e.HJ&&(N.ptk=e.HJ,N.oid=e.iF,N.ptchn=e.xT,N.pltype=e.d_,e.ir&&(N.m=e.ir));return N}; g.$I=function(e){return e5(e)&&e.Ut?(e={},e.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",e):e.N&&e.N.BG||null}; ZNM=function(e){var N=YI(e);return N&&N.text?g.SY(N.text):e.paidContentOverlayText}; x29=function(e){var N=YI(e);return N&&N.durationMs?aA(N.durationMs):e.paidContentOverlayDurationMs}; YI=function(e){var N,y,w;return e.playerResponse&&e.playerResponse.paidContentOverlay&&e.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.m((N=e.Zl)==null?void 0:(y=N.playerOverlays)==null?void 0:(w=y.playerOverlayRenderer)==null?void 0:w.playerDisclosure,jQs)||null}; MK=function(e){var N="";if(e.Ob)return e.Ob;e.isLivePlayback&&(N=e.allowLiveDvr?"dvr":e.isPremiere?"lp":e.Rq?"window":"live");e.Ta&&(N="post");return N}; g.lk=function(e,N){return typeof e.keywords[N]!=="string"?null:e.keywords[N]}; ntJ=function(e){return!!e.vp||!!e.aF||!!e.dJ||!!e.Ry||e.N8||e.G.focEnabled||e.G.rmktEnabled}; g.FU=function(e){return!!(e.U2||e.Rx||e.rk||e.hlsvp||e.jJ())}; u0=function(e){if(e.T("html5_onesie")&&e.errorCode)return!1;var N=g.Gw(e.l9,"ypc");e.ypcPreview&&(N=!1);return e.WG()&&!e.loading&&(g.FU(e)||g.Gw(e.l9,"heartbeat")||N)}; pX=function(e,N){e=Tk(e);var y={};if(N){N=g.c(N.split(","));for(var w=N.next();!w.done;w=N.next())(w=w.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(y[w[1]]={width:w[2],height:w[3]})}N=g.c(e);for(w=N.next();!w.done;w=N.next()){w=w.value;var E=y[w.itag];E&&(w.width=E.width,w.height=E.height)}return e}; rd=function(e){var N=e.getAvailableAudioTracks();N=N.concat(e.il);for(var y=0;y0:N||e.adFormat!=="17_8"||e.isAutonav||g.mT(e.Ot)||e.rq?e.im?!1:e.Ot.CN||e.Ot.Pf||!g.hR(e.Ot)?!N&&I$(e)==="adunit"&&e.vp?!1:!0:!1:!1:(e.im?0:e.UY)&&g.hR(e.Ot)?!0:!1;e.T("html5_log_detailpage_autoplay")&&I$(e)==="detailpage"&&e.Fh("autoplay_info",{autoplay:e.IV,autonav:e.isAutonav,wasDompaused:e.im,result:N});return N}; g.qK=function(e){return e.oauthToken||e.Ot.MX}; eq1=function(e){if(e.T("html5_stateful_audio_normalization")){var N=1,y=g.Y2(e.Ot.experiments,"html5_default_ad_gain");y&&e.isAd()&&(N=y);var w;if(y=((w=e.j)==null?void 0:w.audio.N)||e.F1){w=(0,g.iC)();e.DN=2;var E=w-e.Ot.ib<=e.maxStatefulTimeThresholdSec*1E3;e.applyStatefulNormalization&&E?e.DN=4:E||(e.Ot.xX=Infinity,e.Ot.ib=NaN);E=(e.DN===4?g.Ja(e.Ot.xX,e.minimumLoudnessTargetLkfs,e.loudnessTargetLkfs):e.loudnessTargetLkfs)-y;if(e.DN!==4){var A,T,p,C,r=((A=e.playerResponse)==null?void 0:(T=A.playerConfig)== null?void 0:(p=T.audioConfig)==null?void 0:(C=p.loudnessNormalizationConfig)==null?void 0:C.statelessLoudnessAdjustmentGain)||0;E+=r}E=Math.min(E,0);e.preserveStatefulLoudnessTarget&&(e.Ot.xX=y+E,e.Ot.ib=w);e=Math.min(1,Math.pow(10,E/20))||N}else e=aC0(e)}else e=aC0(e);return e}; aC0=function(e){var N=1,y=g.Y2(e.Ot.experiments,"html5_default_ad_gain");y&&e.isAd()&&(N=y);var w;if(y=((w=e.j)==null?void 0:w.audio.K)||e.Fo)e.DN=1;return Math.min(1,Math.pow(10,-y/20))||N}; Gr=function(e){var N=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],y=nC(e.Ot)==="TVHTML5_SIMPLY"&&e.Ot.J.ctheme==="MUSIC";e.CN||!g.ZY(e.Ot)&&!y||!N.includes(e.musicVideoType)&&!e.isExternallyHostedPodcast||(e.CN=!0);if(N=g.O8())N=/Starboard\/([0-9]+)/.exec(g.zw()),N=(N?parseInt(N[1],10):NaN)<10;y=e.Ot;y=(nC(y)==="TVHTML5_CAST"||nC(y)==="TVHTML5"&&(y.J.cver.startsWith("6.20130725")||y.J.cver.startsWith("6.20130726")))&&e.Ot.J.ctheme==="MUSIC";var w;if(w=!e.CN)y||(y=e.Ot,y=nC(y)=== "TVHTML5"&&y.J.cver.startsWith("7")),w=y;w&&!N&&(N=e.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",y=(e.T("cast_prefer_audio_only_for_atv_and_uploads")||e.T("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&e.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",N||y||e.isExternallyHostedPodcast)&&(e.CN=!0);return e.Ot.deviceIsAudioOnly||e.CN&&e.Ot.G}; Zi=function(e){var N,y,w;return!!((N=e.playerResponse)==null?0:(y=N.playerConfig)==null?0:(w=y.mediaCommonConfig)==null?0:w.splitScreenEligible)}; xI=function(e){var N;return!((N=e.playerResponse)==null||!N.compositePlayabilityStatus)}; N$9=function(e){return isNaN(e)?0:Math.max((Date.now()-e)/1E3-30,0)}; j5=function(e){return!(!e.Ci||!e.Ot.G)&&e.jJ()}; yH_=function(e){return e.enablePreroll&&e.enableServerStitchedDai}; wuE=function(e){return e.T("html5_enable_sabr_from_watch_server")&&e.xw&&!e.kX}; L3=function(e){var N=e.T("html5_enable_sabr_on_drive")&&e.Ot.Ng==="gd";if(e.JD)return e.T("html5_enable_sabr_from_watch_server")&&e.Fh("fds",{fds:!0},!0),!1;if(e.Ot.Ng!=="yt"&&!N)return e.T("html5_enable_sabr_from_watch_server")&&e.Fh("dsvn",{ns:e.Ot.Ng},!0),!1;if(e.cotn||!e.J||e.J.isOtf||e.KA&&!e.T("html5_enable_sabr_csdai"))return!1;if(e.T("html5_use_sabr_requests_for_debugging"))return!0;if(e.T("html5_enable_sabr_from_watch_server")){N=e.xw&&!!e.kX;e.Fh("esfw",{usbc:e.xw,hsu:!!e.kX},!0);if(!e.T("html5_combine_client_check_for_sabr"))return N; if(N)return!0;e.kN("sabr","esfc")}var y=!e.J.Cx&&!e.RV();N=y&&QY&&e.T("html5_enable_sabr_vod_streaming_xhr");y=y&&!QY&&e.T("html5_enable_sabr_vod_non_streaming_xhr");var w=g.nX(e),E=e.T("html5_enable_sabr_drm_vod_streaming_xhr")&&QY&&e.RV()&&!e.J.Cx&&(e.ub==="1"?!1:!0);(N=N||y||w||E)&&!e.kX&&e.Fh("sabr",{loc:"m"},!0);return N&&!!e.kX}; g.nX=function(e){var N;if(!(N=QY&&e.Cx()&&e.RV()&&(e.ub==="1"?!1:!0)&&e.T("html5_sabr_live_drm_streaming_xhr"))){N=e.Cx()&&!e.RV()&&QY;var y=e.Cx()&&e.latencyClass!=="ULTRALOW"&&!e.isLowLatencyLiveStream&&e.T("html5_sabr_live_normal_latency_streaming_xhr"),w=e.isLowLatencyLiveStream&&e.T("html5_sabr_live_low_latency_streaming_xhr"),E=e.latencyClass==="ULTRALOW"&&e.T("html5_sabr_live_ultra_low_latency_streaming_xhr");N=N&&(y||w||E)}y=N;N=e.enableServerStitchedDai&&y&&e.T("html5_enable_sabr_ssdai_streaming_xhr"); y=!e.enableServerStitchedDai&&y;w=e.Cx()&&!QY&&e.T("html5_enable_sabr_live_non_streaming_xhr");e=QY&&(e.Au()||Zi(e)&&e.T("html5_enable_sabr_for_lifa_eligible_streams"));return N||y||w||e}; g.xK=function(e){return e.po&&L3(e)}; vtP=function(e){var N;if(N=!!e.cotn)N=e.videoId,N=!!N&&g.cH(N)===1;return N&&!e.Ci}; g.QG=function(e){if(!e.J||!e.N||!e.j)return!1;var N=e.J.J,y=!!N[e.N.id]&&F9(N[e.N.id].yl.J);N=!!N[e.j.id]&&F9(N[e.j.id].yl.J);return(e.N.itag==="0"||y)&&N}; md=function(e){return e.Vp?["OK","LIVE_STREAM_OFFLINE"].includes(e.Vp.status):!0}; W95=function(e){return(e=e.Ps)&&e.showError?e.showError:!1}; NK=function(e,N){return e.T(N)?!0:(e.fflags||"").includes(N+"=true")}; EFs=function(e){return e.T("html5_heartbeat_iff_heartbeat_params_filled")}; Mj5=function(e,N){N.inlineMetricEnabled&&(e.inlineMetricEnabled=!0);N.playback_progress_0s_url&&(e.Ry=new QXF(N));if(N=N.video_masthead_ad_quartile_urls)e.aF=N.quartile_0_url,e.r_=N.quartile_25_url,e.LA=N.quartile_50_url,e.g_=N.quartile_75_url,e.ZG=N.quartile_100_url,e.dJ=N.quartile_0_urls,e.vV=N.quartile_25_urls,e.Vw=N.quartile_50_urls,e.Qw=N.quartile_75_urls,e.Ub=N.quartile_100_urls}; Y1M=function(e){var N={};e=g.c(e);for(var y=e.next();!y.done;y=e.next()){y=y.value;var w=y.split("=");w.length===2?N[w[0]]=w[1]:N[y]=!0}return N}; CS0=function(e){if(e){if(stE(e))return e;e=aLF(e);if(stE(e,!0))return e}return""}; g.AHF=function(e){return e.captionsLanguagePreference||e.Ot.captionsLanguagePreference||g.lk(e,"yt:cc_default_lang")||e.Ot.SR}; HF=function(e){return!(!e.isLivePlayback||!e.hasProgressBarBoundaries())}; g.HH=function(e){var N;return e.t4||((N=e.suggestions)==null?void 0:N[0])||null}; g.KX=function(e){return e.hs&&(e.T("embeds_enable_pfp_always_unbranded")||e.Ot.sR)}; WF=function(e,N){e.T("html5_log_autoplay_src")&&Rf(e)&&e.Fh("apsrc",{src:N})}; g.Os=function(e){var N,y;return!!((N=e.embeddedPlayerConfig)==null?0:(y=N.embeddedPlayerFlags)==null?0:y.enableMusicUx)}; g.GC=function(e){var N=e.X(),y=g.R$(N),w=N.VB;(N.T("embeds_web_enable_iframe_api_send_full_embed_url")||N.T("embeds_web_enable_rcat_validation_in_havs")||N.T("embeds_enable_autoplay_and_visibility_signals"))&&g.dw(N)&&(w&&(y.thirdParty=Object.assign({},y.thirdParty,{embedUrl:w})),v2P(y,e));if(w=e.i9)y.clickTracking={clickTrackingParams:w};w=y.client||{};var E="EMBED",A=I$(e);A==="leanback"?E="WATCH":N.T("gvi_channel_client_screen")&&A==="profilepage"?E="CHANNEL":e.Kx?E="LIVE_MONITOR":A==="detailpage"? E="WATCH_FULL_SCREEN":A==="adunit"?E="ADUNIT":A==="sponsorshipsoffer"&&(E="UNKNOWN");w.clientScreen=E;if(N=e.kidsAppInfo)w.kidsAppInfo=JSON.parse(N);(E=e.IY)&&!N&&(w.kidsAppInfo={contentSettings:{ageUpMode:T$s[E]}});if(N=e.uV)w.unpluggedAppInfo={enableFilterMode:!0};(E=e.unpluggedFilterModeType)&&!N&&(w.unpluggedAppInfo={filterModeType:JH_[E]});if(N=e.Ng)w.unpluggedLocationInfo=N;y.client=w;w=y.request||{};e.NK&&(w.isPrefetch=!0);if(N=e.mdxEnvironment)w.mdxEnvironment=N;if(N=e.mdxControlMode)w.mdxControlMode= pu0[N];y.request=w;w=y.user||{};if(N=e.Kh)w.credentialTransferTokens=[{token:N,scope:"VIDEO"}];if(N=e.a9)w.delegatePurchases={oauthToken:N},w.kidsParent={oauthToken:N};y.user=w;if(w=e.contextParams)y.activePlayers=[{playerContextParams:w}];if(e=e.clientScreenNonce)y.clientScreenNonce=e;return y}; g.R$=function(e){var N=g.LR(),y=N.client||{};if(e.forcedExperiments){var w=e.forcedExperiments.split(","),E=[];w=g.c(w);for(var A=w.next();!A.done;A=w.next())E.push(Number(A.value));y.experimentIds=E}if(E=e.homeGroupInfo)y.homeGroupInfo=JSON.parse(E);if(E=e.getPlayerType())y.playerType=E;if(E=e.J.ctheme)y.theme=E;if(E=e.livingRoomAppMode)y.tvAppInfo=Object.assign({},y.tvAppInfo,{livingRoomAppMode:E});E=e.deviceYear;e.T("html5_propagate_device_year")&&E&&(y.tvAppInfo=Object.assign({},y.tvAppInfo,{deviceYear:E})); if(E=e.livingRoomPoTokenId)y.tvAppInfo=Object.assign({},y.tvAppInfo,{livingRoomPoTokenId:E});N.client=y;y=N.user||{};e.enableSafetyMode&&(y=Object.assign({},y,{enableSafetyMode:!0}));e.pageId&&(y=Object.assign({},y,{onBehalfOfUser:e.pageId}));N.user=y;y=e.VB;e.T("embeds_web_enable_iframe_api_send_full_embed_url")||e.T("embeds_web_enable_rcat_validation_in_havs")||e.T("embeds_enable_autoplay_and_visibility_signals")||!y||(N.thirdParty={embedUrl:y});return N}; lzs=function(e,N,y){var w=e.videoId,E=g.GC(e),A=e.X(),T={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(z_()),referer:document.location.toString(),signatureTimestamp:20129};g.m6();e.isAutonav&&(T.autonav=!0);g.HE(0,141)&&(T.autonavState=g.HE(0,140)?"STATE_OFF":"STATE_ON");T.autoCaptionsDefaultOn=g.HE(0,66);uk(e)&&(T.autoplay=!0);A.G&&e.cycToken&&(T.cycToken=e.cycToken);A.enablePrivacyFilter&&(T.enablePrivacyFilter=!0);e.isFling&&(T.fling=!0);var p=e.forceAdsUrl;if(p){var C={},r=[];p=p.split(","); p=g.c(p);for(var Y=p.next();!Y.done;Y=p.next()){Y=Y.value;var M=Y.split("|");M.length!==3||Y.includes("=")||(M[0]="breaktype="+M[0],M[1]="offset="+M[1],M[2]="url="+M[2]);Y={adtype:"video_ad"};M=g.c(M);for(var l=M.next();!l.done;l=M.next()){var F=g.c(l.value.split("="));l=F.next().value;F=An0(F);Y[l]=F.join("=")}M=Y.url;l=Y.presetad;F=Y.viralresponseurl;var S=Number(Y.campaignid);if(Y.adtype==="in_display_ad")M&&(C.url=M),l&&(C.presetAd=l),F&&(C.viralAdResponseUrl=F),S&&(C.viralCampaignId=String(S)); else if(Y.adtype==="video_ad"){var k={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(Y.offset)||0)}};if(Y=CP9[Y.breaktype])k.breakType=Y;M&&(k.url=M);l&&(k.presetAd=l);F&&(k.viralAdResponseUrl=F);S&&(k.viralCampaignId=String(S));r.push(k)}}T.forceAdParameters={videoAds:r,inDisplayAd:C}}e.isInlinePlaybackNoAd&&(T.isInlinePlaybackNoAd=!0);e.isLivingRoomDeeplink&&(T.isLivingRoomDeeplink=!0);C=e.AU;if(C!=null){C={startWalltime:String(C)};if(r=e.yh)C.manifestDuration=String(r||14400);T.liveContext= C}if(e.mutedAutoplay&&(T.mutedAutoplay=!0,e.T("embeds_enable_full_length_inline_muted_autoplay"))){C=A.getWebPlayerContextConfig();var X,d;(C==null?0:(X=C.embedsHostFlags)==null?0:X.allowMutedAutoplayDurationMode)&&(C==null?0:(d=C.embedsHostFlags)==null?0:d.allowMutedAutoplayDurationMode.includes(rHn[e.mutedAutoplayDurationMode]))&&(T.mutedAutoplayDurationMode=rHn[e.mutedAutoplayDurationMode])}if(e.im?0:e.UY)T.splay=!0;X=e.vnd;X===5&&(T.vnd=X);X={};if(d=e.isMdxPlayback)X.triggeredByMdx=d;if(d=e.Ez)X.skippableAdsSupported= d.split(",").includes("ska");if(r=e.N2){d=e.Dy;C=[];r=g.c(zeE(r));for(p=r.next();!p.done;p=r.next()){p=p.value;Y=p.platform;p={applicationState:p.Rm?"INACTIVE":"ACTIVE",clientFormFactor:$Cn[Y]||"UNKNOWN_FORM_FACTOR",clientName:DGF[p.y$]||"UNKNOWN_INTERFACE",clientVersion:p.deviceVersion||"",platform:YU0[Y]||"UNKNOWN_PLATFORM"};Y={};if(d){M=void 0;try{M=JSON.parse(d)}catch(v){g.uA(v)}M&&(Y={params:[{key:"ms",value:M.ms}]},M.advertising_id&&(Y.advertisingId=M.advertising_id),M.limit_ad_tracking!==void 0&& M.limit_ad_tracking!==null&&(Y.limitAdTracking=M.limit_ad_tracking),p.osName=M.os_name,p.userAgent=M.user_agent,p.windowHeightPoints=M.window_height_points,p.windowWidthPoints=M.window_width_points)}C.push({adSignalsInfo:Y,remoteClient:p})}X.remoteContexts=C}d=e.sourceContainerPlaylistId;C=e.serializedMdxMetadata;if(d||C)r={},d&&(r.mdxPlaybackContainerInfo={sourceContainerPlaylistId:d}),C&&(r.serializedMdxMetadata=C),X.mdxPlaybackSourceContext=r;T.mdxContext=X;X=N.width;X>0&&(T.playerWidthPixels= Math.round(X));if(N=N.height)T.playerHeightPixels=Math.round(N);y!==0&&(T.vis=y);if(y=A.widgetReferrer)T.widgetReferrer=y.substring(0,128);g.hR(A)&&T&&(T.ancestorOrigins=A.ancestorOrigins);e.defaultActiveSourceVideoId&&(T.compositeVideoContext={defaultActiveSourceVideoId:e.defaultActiveSourceVideoId});if(A=A.getWebPlayerContextConfig())T.encryptedHostFlags=A.encryptedHostFlags;w={videoId:w,context:E,playbackContext:{contentPlaybackContext:T}};e.reloadPlaybackParams&&(w.playbackContext.reloadPlaybackContext= {reloadPlaybackParams:e.reloadPlaybackParams});e.contentCheckOk&&(w.contentCheckOk=!0);if(E=e.clientPlaybackNonce)w.cpn=E;if(E=e.playerParams)w.params=E;if(E=e.playlistId)w.playlistId=E;e.racyCheckOk&&(w.racyCheckOk=!0);E=e.X();if(T=E.embedConfig)w.serializedThirdPartyEmbedConfig=T;w.captionParams={};T=g.HE(g.m6(),65);e.deviceCaptionsOn!=null?w.captionParams.deviceCaptionsOn=e.deviceCaptionsOn:g.na(E)&&(w.captionParams.deviceCaptionsOn=T!=null?!T:!1);e.p5&&(w.captionParams.deviceCaptionsLangPref= e.p5);e.zk.length?w.captionParams.viewerSelectedCaptionLangs=e.zk:g.na(E)&&(T=g.VA(),T==null?0:T.length)&&(w.captionParams.viewerSelectedCaptionLangs=T);T=e.fetchType==="onesie"&&e.T("html5_onesie_attach_po_token");A=e.fetchType!=="onesie"&&e.T("html5_non_onesie_attach_po_token");if(T||A)T=e.X(),T.NG&&(w.serviceIntegrityDimensions={},w.serviceIntegrityDimensions.poToken=T.NG);E.T("fetch_att_independently")&&(w.attestationRequest={omitBotguardData:!0});if(E.T("html5_enable_sabr_from_watch_server")|| E.T("html5_report_supports_vp9_encoding"))w.playbackContext||(w.playbackContext={}),w.playbackContext.devicePlaybackCapabilities=MwH(e);return w}; MwH=function(e){var N=!(e==null?0:e.Ej())&&(e==null?void 0:e.Cx())&&w9(),y;if(y=e==null?0:e.T("html5_report_supports_vp9_encoding")){if(e==null)y=0;else{y=g.sn(e);e=e.X().L;var w=La("243");y=w?Ef(y,w,e,!0)===!0:!1}y=y&&!N}return{supportsVp9Encoding:!!y,supportXhr:QY}}; SUP=function(e,N){var y,w,E;return g.f(function(A){if(A.J==1)return y={context:g.R$(e.X()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:e.videoId,cpn:e.clientPlaybackNonce}}]},w=g.eZ(FlE),g.D(A,g.Rg(N,y,w),2);E=A.N;return A.return(E)})}; oF5=function(e,N,y){var w=g.Y2(N.experiments,"bg_vm_reinit_threshold");(!P1||(0,g.iC)()-P1>w)&&SUP(e,y).then(function(E){E&&(E=E.botguardData)&&g.v1(E,N)},function(E){e.Ss()||(E=I2(E),e.Fh("attf",E.details))})}; Us=function(e,N){g.x.call(this);this.app=e;this.state=N}; a$=function(e,N,y){e.state.J.hasOwnProperty(N)||LX(e,N,y);e.state.G[N]=function(){return y.apply(e,g.iE.apply(0,arguments))}; e.state.Z.add(N)}; eX=function(e,N,y){e.state.J.hasOwnProperty(N)||LX(e,N,y);e.app.X().G&&(e.state.U[N]=function(){return y.apply(e,g.iE.apply(0,arguments))},e.state.Z.add(N))}; LX=function(e,N,y){e.state.J[N]=function(){return y.apply(e,g.iE.apply(0,arguments))}}; g.NU=function(e,N,y){return e.state.J[N].apply(e.state.J,g.B(y))}; yL=function(){g.zY.call(this);this.L=new Map}; wZ=function(){g.x.apply(this,arguments);this.element=null;this.Z=new Set;this.G={};this.U={};this.J={};this.D=new Set;this.K=new yL;this.N=new yL;this.j=new yL;this.L=new yL}; bsM=function(e,N,y){typeof e==="string"&&(e={mediaContentUrl:e,startSeconds:N,suggestedQuality:y});a:{if((N=e.mediaContentUrl)&&(N=/\/([ve]|embed)\/([^#?]+)/.exec(N))&&N[2]){N=N[2];break a}N=null}e.videoId=N;return Ec(e)}; Ec=function(e,N,y){if(typeof e==="string")return{videoId:e,startSeconds:N,suggestedQuality:y};N={};y=g.c(hqH);for(var w=y.next();!w.done;w=y.next())w=w.value,e[w]&&(N[w]=e[w]);return N}; cH0=function(e,N,y,w){if(g.W5(e)&&!Array.isArray(e)){N="playlist list listType index startSeconds suggestedQuality".split(" ");y={};for(w=0;w32&&w.push("hfr");N.isHdr()&&w.push("hdr");N.primaries==="bt2020"&&w.push("wcg");y.video_quality_features=w}}if(e=e.getPlaylistId())y.list=e;return y}; CD=function(){Au.apply(this,arguments)}; rZ=function(e,N){var y={};if(e.app.X().Kh){e=g.c(PP1);for(var w=e.next();!w.done;w=e.next())w=w.value,N.hasOwnProperty(w)&&(y[w]=N[w]);if(N=y.qoe_cat)e="",typeof N==="string"&&N.length>0&&(e=N.split(",").filter(function(E){return dCP.includes(E)}).join(",")),y.qoe_cat=e; Izs(y)}else for(e=g.c(vF5),w=e.next();!w.done;w=e.next())w=w.value,N.hasOwnProperty(w)&&(y[w]=N[w]);return y}; Izs=function(e){var N=e.raw_player_response;if(!N){var y=e.player_response;y&&(N=JSON.parse(y))}delete e.player_response;delete e.raw_player_response;if(N){e.raw_player_response={streamingData:N.streamingData};var w;if((w=N.playbackTracking)==null?0:w.qoeUrl)e.raw_player_response=Object.assign({},e.raw_player_response,{playbackTracking:{qoeUrl:N.playbackTracking.qoeUrl}});var E;if((E=N.videoDetails)==null?0:E.videoId)e.raw_player_response=Object.assign({},e.raw_player_response,{videoDetails:{videoId:N.videoDetails.videoId}})}}; $S=function(e,N,y){var w=e.app.OY(y);if(!w)return 0;e=w-e.app.getCurrentTime(y);return N-e}; is5=function(e){var N=N===void 0?5:N;return e?zq9[e]||N:N}; g.YS=function(){CD.apply(this,arguments)}; DCH=function(e){LX(e,"getInternalApiInterface",e.getInternalApiInterface);LX(e,"addEventListener",e.lO);LX(e,"removeEventListener",e.koP);LX(e,"cueVideoByPlayerVars",e.b2);LX(e,"loadVideoByPlayerVars",e.Fo9);LX(e,"preloadVideoByPlayerVars",e.n9t);LX(e,"getAdState",e.getAdState);LX(e,"sendAbandonmentPing",e.sendAbandonmentPing);LX(e,"setLoopRange",e.setLoopRange);LX(e,"getLoopRange",e.getLoopRange);LX(e,"setAutonavState",e.setAutonavState);LX(e,"seekTo",e.PPl);LX(e,"seekBy",e.Ris);LX(e,"seekToLiveHead", e.seekToLiveHead);LX(e,"requestSeekToWallTimeSeconds",e.requestSeekToWallTimeSeconds);LX(e,"seekToStreamTime",e.seekToStreamTime);LX(e,"startSeekCsiAction",e.startSeekCsiAction);LX(e,"getStreamTimeOffset",e.getStreamTimeOffset);LX(e,"getVideoData",e.mJ);LX(e,"setInlinePreview",e.setInlinePreview);LX(e,"getAppState",e.getAppState);LX(e,"updateLastActiveTime",e.updateLastActiveTime);LX(e,"setBlackout",e.setBlackout);LX(e,"setUserEngagement",e.setUserEngagement);LX(e,"updateSubtitlesUserSettings",e.updateSubtitlesUserSettings); LX(e,"getPresentingPlayerType",e.kU);LX(e,"canPlayType",e.canPlayType);LX(e,"updatePlaylist",e.updatePlaylist);LX(e,"updateVideoData",e.updateVideoData);LX(e,"updateEnvironmentData",e.updateEnvironmentData);LX(e,"sendVideoStatsEngageEvent",e.GoG);LX(e,"productsInVideoVisibilityUpdated",e.productsInVideoVisibilityUpdated);LX(e,"setSafetyMode",e.setSafetyMode);LX(e,"isAtLiveHead",function(N){return e.isAtLiveHead(void 0,N)}); LX(e,"getVideoAspectRatio",e.getVideoAspectRatio);LX(e,"getPreferredQuality",e.getPreferredQuality);LX(e,"getPlaybackQualityLabel",e.getPlaybackQualityLabel);LX(e,"setPlaybackQualityRange",e.UGq);LX(e,"onAdUxClicked",e.onAdUxClicked);LX(e,"getFeedbackProductData",e.getFeedbackProductData);LX(e,"getStoryboardFrame",e.getStoryboardFrame);LX(e,"getStoryboardFrameIndex",e.getStoryboardFrameIndex);LX(e,"getStoryboardLevel",e.getStoryboardLevel);LX(e,"getNumberOfStoryboardLevels",e.getNumberOfStoryboardLevels); LX(e,"getCaptionWindowContainerId",e.getCaptionWindowContainerId);LX(e,"getAvailableQualityLabels",e.getAvailableQualityLabels);LX(e,"addCueRange",e.addCueRange);LX(e,"addUtcCueRange",e.addUtcCueRange);LX(e,"showAirplayPicker",e.showAirplayPicker);LX(e,"dispatchReduxAction",e.dispatchReduxAction);LX(e,"getPlayerResponse",e.Pn);LX(e,"getWatchNextResponse",e.Wn);LX(e,"getHeartbeatResponse",e.cn);LX(e,"getCurrentTime",e.u_);LX(e,"getDuration",e.cW);LX(e,"getPlayerState",e.getPlayerState);LX(e,"getPlayerStateObject", e.Zo);LX(e,"getVideoLoadedFraction",e.getVideoLoadedFraction);LX(e,"getProgressState",e.getProgressState);LX(e,"getVolume",e.getVolume);LX(e,"setVolume",e.O3);LX(e,"isMuted",e.isMuted);LX(e,"mute",e.Cy);LX(e,"unMute",e.YZ);LX(e,"loadModule",e.loadModule);LX(e,"unloadModule",e.unloadModule);LX(e,"getOption",e.o_);LX(e,"getOptions",e.getOptions);LX(e,"setOption",e.setOption);LX(e,"loadVideoById",e.z8);LX(e,"loadVideoByUrl",e.cA);LX(e,"playVideo",e.yK);LX(e,"loadPlaylist",e.loadPlaylist);LX(e,"nextVideo", e.nextVideo);LX(e,"previousVideo",e.previousVideo);LX(e,"playVideoAt",e.playVideoAt);LX(e,"getDebugText",e.getDebugText);LX(e,"getWebPlayerContextConfig",e.getWebPlayerContextConfig);LX(e,"notifyShortsAdSwipeEvent",e.notifyShortsAdSwipeEvent);LX(e,"getVideoContentRect",e.getVideoContentRect);LX(e,"setSqueezeback",e.setSqueezeback);LX(e,"toggleSubtitlesOn",e.toggleSubtitlesOn);LX(e,"isSubtitlesOn",e.isSubtitlesOn);LX(e,"reportPlaybackIssue",e.reportPlaybackIssue);LX(e,"setAutonav",e.setAutonav);LX(e, "isNotServable",e.isNotServable);LX(e,"channelSubscribed",e.channelSubscribed);LX(e,"channelUnsubscribed",e.channelUnsubscribed);LX(e,"togglePictureInPicture",e.togglePictureInPicture);LX(e,"supportsGaplessAudio",e.supportsGaplessAudio);LX(e,"supportsGaplessShorts",e.supportsGaplessShorts);LX(e,"enqueueVideoByPlayerVars",function(N){return void e.enqueueVideoByPlayerVars(N)}); LX(e,"clearQueue",e.clearQueue);LX(e,"getAudioTrack",e.b_);LX(e,"setAudioTrack",e.ozG);LX(e,"getAvailableAudioTracks",e.OB);LX(e,"getMaxPlaybackQuality",e.getMaxPlaybackQuality);LX(e,"getUserPlaybackQualityPreference",e.getUserPlaybackQualityPreference);LX(e,"getSubtitlesUserSettings",e.getSubtitlesUserSettings);LX(e,"resetSubtitlesUserSettings",e.resetSubtitlesUserSettings);LX(e,"setMinimized",e.setMinimized);LX(e,"setOverlayVisibility",e.setOverlayVisibility);LX(e,"confirmYpcRental",e.confirmYpcRental); LX(e,"queueNextVideo",e.queueNextVideo);LX(e,"handleExternalCall",e.handleExternalCall);LX(e,"logApiCall",e.logApiCall);LX(e,"isExternalMethodAvailable",e.isExternalMethodAvailable);LX(e,"setScreenLayer",e.setScreenLayer);LX(e,"getCurrentPlaylistSequence",e.getCurrentPlaylistSequence);LX(e,"getPlaylistSequenceForTime",e.getPlaylistSequenceForTime);LX(e,"shouldSendVisibilityState",e.shouldSendVisibilityState);LX(e,"syncVolume",e.syncVolume);LX(e,"highlightSettingsMenuItem",e.highlightSettingsMenuItem); LX(e,"openSettingsMenuItem",e.openSettingsMenuItem);LX(e,"getEmbeddedPlayerResponse",e.getEmbeddedPlayerResponse);LX(e,"getVisibilityState",e.getVisibilityState);LX(e,"isMutedByMutedAutoplay",e.isMutedByMutedAutoplay);e.T("embeds_enable_emc3ds_muted_autoplay")&&LX(e,"isMutedByEmbedsMutedAutoplay",e.isMutedByEmbedsMutedAutoplay);LX(e,"setGlobalCrop",e.setGlobalCrop);LX(e,"setInternalSize",e.setInternalSize);LX(e,"setFauxFullscreen",e.setFauxFullscreen);LX(e,"setAppFullscreen",e.setAppFullscreen)}; lh=function(e,N,y){e=g.MU(e.Rf(),N);return y?(y.addOnDisposeCallback(e),null):e}; g.FT=function(e,N,y){return e.app.X().jN?N:g.SO("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:N,SHORTCUT:y})}; gF1=function(e){e.Rf().element.setAttribute("aria-live","polite")}; g.SX=function(e,N){g.YS.call(this,e,N);DCH(this);eX(this,"addEventListener",this.xF);eX(this,"removeEventListener",this.tVG);eX(this,"cueVideoByPlayerVars",this.wr);eX(this,"loadVideoByPlayerVars",this.JM1);eX(this,"preloadVideoByPlayerVars",this.YYP);eX(this,"loadVideoById",this.z8);eX(this,"loadVideoByUrl",this.cA);eX(this,"playVideo",this.yK);eX(this,"loadPlaylist",this.loadPlaylist);eX(this,"nextVideo",this.nextVideo);eX(this,"previousVideo",this.previousVideo);eX(this,"playVideoAt",this.playVideoAt); eX(this,"getVideoData",this.eK);eX(this,"seekBy",this.CPt);eX(this,"seekTo",this.Lis);eX(this,"showControls",this.showControls);eX(this,"hideControls",this.hideControls);eX(this,"cancelPlayback",this.cancelPlayback);eX(this,"getProgressState",this.getProgressState);eX(this,"isInline",this.isInline);eX(this,"setInline",this.setInline);eX(this,"setLoopVideo",this.setLoopVideo);eX(this,"getLoopVideo",this.getLoopVideo);eX(this,"getVideoContentRect",this.getVideoContentRect);eX(this,"getVideoStats",this.Xv); eX(this,"getCurrentTime",this.i_);eX(this,"getDuration",this.cW);eX(this,"getPlayerState",this.LB);eX(this,"getVideoLoadedFraction",this.nB);eX(this,"mute",this.Cy);eX(this,"unMute",this.YZ);eX(this,"setVolume",this.O3);eX(this,"loadModule",this.loadModule);eX(this,"unloadModule",this.unloadModule);eX(this,"getOption",this.o_);eX(this,"getOptions",this.getOptions);eX(this,"setOption",this.setOption);eX(this,"addCueRange",this.addCueRange);eX(this,"getDebugText",this.getDebugText);eX(this,"getStoryboardFormat", this.getStoryboardFormat);eX(this,"toggleFullscreen",this.toggleFullscreen);eX(this,"isFullscreen",this.isFullscreen);eX(this,"getPlayerSize",this.getPlayerSize);eX(this,"toggleSubtitles",this.toggleSubtitles);eX(this,"setCenterCrop",this.setCenterCrop);eX(this,"setFauxFullscreen",this.setFauxFullscreen);eX(this,"setSizeStyle",this.setSizeStyle);eX(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);eX(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);B$E(this)}; g.oq=function(e){e=e.jR();var N=e.x9.get("endscreen");return N&&N.Ac()?!0:e.qC()}; g.bh=function(e,N){e.getPresentingPlayerType()===3?e.publish("mdxautoplaycancel"):e.Mg("onAutonavCancelled",N)}; g.cb=function(e){var N=hu(e.jR());return e.app.nj&&!e.isFullscreen()||e.getPresentingPlayerType()===3&&N&&N.gk()&&N.GJ()||!!e.getPlaylist()}; g.kS=function(e,N){g.NU(e,"addEmbedsConversionTrackingParams",[N])}; g.XT=function(e){return(e=g.Bb(e.jR()))?e.fM():{}}; g.Vw5=function(e){e=(e=e.getVideoData())&&e.N;return!!e&&!(!e.audio||!e.video)&&e.mimeType!=="application/x-mpegURL"}; g.Pb=function(e,N,y){e=e.Fz().element;var w=JO(e.children,function(E){E=Number(E.getAttribute("data-layer"));return y-E||1}); w<0&&(w=-(w+1));yp(e,N,w);N.setAttribute("data-layer",String(y))}; g.dZ=function(e){var N=e.X();if(!N.YO)return!1;var y=e.getVideoData();if(!y||e.getPresentingPlayerType()===3)return!1;var w=(!y.isLiveDefaultBroadcast||N.T("allow_poltergust_autoplay"))&&!HF(y);w=y.isLivePlayback&&(!N.T("allow_live_autoplay")||!w);var E=y.isLivePlayback&&N.T("allow_live_autoplay_on_mweb");e=e.getPlaylist();e=!!e&&e.gk();var A=y.Zl&&y.Zl.playerOverlays||null;A=!!(A&&A.playerOverlayRenderer&&A.playerOverlayRenderer.autoplay);A=y.hs&&A;return!y.ypcPreview&&(!w||E)&&!g.Gw(y.l9,"ypc")&& !e&&(!g.hR(N)||A)}; fzP=function(e){e=e.app.nh();if(!e)return!1;var N=e.getVideoData();if(!N.N||!N.N.video||N.N.video.J<1080||N.wA)return!1;var y=/^qsa/.test(N.clientPlaybackNonce),w="r";N.N.id.indexOf(";")>=0&&(y=/^[a-p]/.test(N.clientPlaybackNonce),w="x");return y?(e.Fh("iqss",{trigger:w},!0),!0):!1}; Iq=function(){nO.apply(this,arguments);this.requestHeaders={}}; z9=function(){vb||(vb=new Iq);return vb}; ih=function(e,N){N?e.requestHeaders.Authorization="Bearer "+N:delete e.requestHeaders.Authorization}; g.Dq=function(e,N,y,w){w=w===void 0?!1:w;g.Mu.call(this,N);var E=this;this.C=e;this.l9=w;this.U=new g.fd(this);this.Ng=new g.NE(this,y,!0,void 0,void 0,function(){E.h6()}); g.Q(this,this.U);g.Q(this,this.Ng)}; gZ=function(e){var N=e.C.getRootNode();return e.C.T("web_enable_auto_pip")||e.C.T("web_enable_pip_on_miniplayer")||e.C.T("web_shorts_pip")?ZA(N):document}; tw5=function(e){e.N&&(document.activeElement&&g.Ex(e.element,document.activeElement)&&e.N.focus(),e.N.setAttribute("aria-expanded","false"),e.N=void 0);g.g9(e.U);e.D=void 0}; VL=function(e,N,y){e.e1()?e.rT():e.WY(N,y)}; fD=function(e,N,y,w){w=new g.W({S:"div",dP:["ytp-linked-account-popup-button"],b9:w,V:{role:"button",tabindex:"0"}});N=new g.W({S:"div",B:"ytp-linked-account-popup",V:{role:"dialog","aria-modal":"true",tabindex:"-1"},W:[{S:"div",B:"ytp-linked-account-popup-title",b9:N},{S:"div",B:"ytp-linked-account-popup-description",b9:y},{S:"div",B:"ytp-linked-account-popup-buttons",W:[w]}]});g.Dq.call(this,e,{S:"div",B:"ytp-linked-account-popup-container",W:[N]},100);var E=this;this.dialog=N;g.Q(this,this.dialog); w.listen("click",function(){E.rT()}); g.Q(this,w);g.Pb(this.C,this.element,4);this.hide()}; g.uh=function(e,N,y,w){g.Mu.call(this,e);this.priority=N;y&&g.tu(this,y);w&&this.Ja(w)}; g.qU=function(e,N,y,w){e=e===void 0?{}:e;N=N===void 0?[]:N;y=y===void 0?!1:y;w=w===void 0?!1:w;N.push("ytp-menuitem");var E=e;"role"in E||(E.role="menuitem");y||(E=e,"tabindex"in E||(E.tabindex="0"));e={S:y?"a":"div",dP:N,V:e,W:[{S:"div",B:"ytp-menuitem-icon",b9:"{{icon}}"},{S:"div",B:"ytp-menuitem-label",b9:"{{label}}"},{S:"div",B:"ytp-menuitem-content",b9:"{{content}}"}]};w&&e.W.push({S:"div",B:"ytp-menuitem-secondary-icon",b9:"{{secondaryIcon}}"});return e}; g.tu=function(e,N){e.updateValue("label",N)}; Zq=function(e){g.uh.call(this,g.qU({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var N=this;this.C=e;this.N=this.J=!1;this.x_=e.X6();e.createServerVe(this.element,this,!0);this.Y(this.C,"settingsMenuVisibilityChanged",function(y){N.nx(y)}); this.Y(this.C,"videodatachange",this.j);this.listen("click",this.onClick);this.j()}; xS=function(e){return e?g.SY(e):""}; jX=function(e){g.x.call(this);this.api=e}; nD=function(e){jX.call(this,e);var N=this;LX(e,"setAccountLinkState",function(y){N.setAccountLinkState(y)}); LX(e,"updateAccountLinkingConfig",function(y){N.updateAccountLinkingConfig(y)}); e.addEventListener("videodatachange",function(y,w){N.onVideoDataChange(w)}); e.addEventListener("settingsMenuInitialized",function(){N.menuItem=new Zq(N.api);g.Q(N,N.menuItem)})}; u7M=function(e){this.api=e;this.J={}}; QL=function(e,N,y,w){N in e.J||(y=new g.wF(y,w,{id:N,priority:2,namespace:"appad"}),e.api.wx([y],1),e.J[N]=y)}; m3=function(e){jX.call(this,e);var N=this;this.events=new g.fd(this);g.Q(this,this.events);this.J=new u7M(this.api);this.events.Y(this.api,"legacyadtrackingpingreset",function(){N.J.J={}}); this.events.Y(this.api,"legacyadtrackingpingchange",function(y){var w=N.J;QL(w,"part2viewed",1,0x8000000000000);QL(w,"engagedview",Math.max(1,y.Y_*1E3),0x8000000000000);if(!y.isLivePlayback){var E=y.lengthSeconds*1E3;Rf(y)&&w.api.T("html5_shorts_gapless_ads_duration_fix")&&(E=w.api.getProgressState().seekableEnd*1E3-y.WD);QL(w,"videoplaytime25",E*.25,E);QL(w,"videoplaytime50",E*.5,E);QL(w,"videoplaytime75",E*.75,E);QL(w,"videoplaytime100",E,0x8000000000000);QL(w,"conversionview",E,0x8000000000000); QL(w,"videoplaybackstart",1,E);QL(w,"videoplayback2s",2E3,E);QL(w,"videoplayback10s",1E4,E)}}); this.events.Y(this.api,g.AA("appad"),this.N);this.events.Y(this.api,g.TW("appad"),this.N)}; jcn=function(e,N,y){if(!(y in N))return!1;N=N[y];Array.isArray(N)||(N=[N]);N=g.c(N);for(y=N.next();!y.done;y=N.next()){y=y.value;var w={CPN:e.api.getVideoData().clientPlaybackNonce};y=g.Vx(y,w);w=void 0;w=w===void 0?!1:w;(w=UG(Ln(y,qUE),y,w,"Active View 3rd Party Integration URL"))||(w=void 0,w=w===void 0?!1:w,w=UG(Ln(y,Zs_),y,w,"Google/YouTube Brand Lift URL"));w||(w=void 0,w=w===void 0?!1:w,w=UG(Ln(y,xCE),y,w,"Nielsen OCR URL"));g.mK(y,void 0,w)}return!0}; Hb=function(e,N){nFF(e,N).then(function(y){g.mK(N,void 0,void 0,y)})}; KD=function(e,N){N.forEach(function(y){Hb(e,y)})}; nFF=function(e,N){return g.I_(e.api.X())&&Y3(N)&&$3(N)?g.GX(e.api.X(),g.qK(e.api.getVideoData())).then(function(y){var w;y&&(w={Authorization:"Bearer "+y});return w},void 0):u4()}; Qcs=function(e){jX.call(this,e);this.events=new g.fd(e);g.Q(this,this.events);this.events.Y(e,"videoready",function(N){if(e.getPresentingPlayerType()===1){var y,w,E={playerDebugData:{pmlSignal:!!((y=N.getPlayerResponse())==null?0:(w=y.adPlacements)==null?0:w.some(function(A){var T;return A==null?void 0:(T=A.adPlacementRenderer)==null?void 0:T.renderer})), contentCpn:N.clientPlaybackNonce}};g.$$("adsClientStateChange",E)}})}; Wb=function(e){g.W.call(this,{S:"button",dP:["ytp-button"],V:{title:"{{title}}","aria-label":"{{label}}","data-priority":"2","data-tooltip-target-id":"ytp-autonav-toggle-button"},W:[{S:"div",B:"ytp-autonav-toggle-button-container",W:[{S:"div",B:"ytp-autonav-toggle-button",V:{"aria-checked":"true"}}]}]});this.C=e;this.N=[];this.J=!1;this.isChecked=!0;e.createClientVe(this.element,this,113681);this.Y(e,"presentingplayerstatechange",this.BV);this.listen("click",this.onClick);this.C.X().T("web_player_autonav_toggle_always_listen")&& mC3(this);lh(e,this.element,this);this.BV()}; mC3=function(e){e.N.push(e.Y(e.C,"videodatachange",e.BV));e.N.push(e.Y(e.C,"videoplayerreset",e.BV));e.N.push(e.Y(e.C,"onPlaylistUpdate",e.BV));e.N.push(e.Y(e.C,"autonavchange",e.oQ))}; HsH=function(e){e.isChecked=e.isChecked;e.hW("ytp-autonav-toggle-button").setAttribute("aria-checked",String(e.isChecked));var N=e.isChecked?"A reprodu\u00e7\u00e3o autom\u00e1tica est\u00e1 ativada":"A reprodu\u00e7\u00e3o autom\u00e1tica est\u00e1 desativada";e.updateValue("title",N);e.updateValue("label",N);e.C.xp()}; Kln=function(e){return e.C.X().T("web_player_autonav_use_server_provided_state")&&Q3(e.M7())}; WlM=function(e){jX.call(this,e);var N=this;this.events=new g.fd(e);g.Q(this,this.events);this.events.Y(e,"standardControlsInitialized",function(){var y=new Wb(e);g.Q(N,y);e.Bv(y,"RIGHT_CONTROLS_LEFT")})}; Oc=function(e,N){g.uh.call(this,g.qU({role:"menuitemcheckbox","aria-checked":"false"}),N,e,{S:"div",B:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; Rq=function(e,N){e.checked=N;e.element.setAttribute("aria-checked",String(e.checked))}; Osn=function(e){var N=!e.X().ll&&e.getPresentingPlayerType()!==3;return e.isFullscreen()||N}; g.G9=function(e,N,y,w){var E=e.currentTarget;if((y===void 0||!y)&&g.dh(e))return e.preventDefault(),!0;N.pauseVideo();e=E.getAttribute("href");g.mQ(e,w,!0);return!1}; g.Uc=function(e,N,y){if(ZW(N.X())&&N.getPresentingPlayerType()!==2){if(g.dh(y))return N.isFullscreen()&&!N.X().externalFullscreen&&N.toggleFullscreen(),y.preventDefault(),!0}else{var w=g.dh(y);w&&N.pauseVideo();g.mQ(e,void 0,!0);w&&(g.H2(e),y.preventDefault())}return!1}; GBs=function(){var e=RqJ.includes("pt-BR")?{S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{S:"path",Az:!0,V:{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"}}]}:{S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{S:"path",Az:!0,V:{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"}}]};e.B="ytp-subtitles-button-icon";return e}; LD=function(){return{S:"div",B:"ytp-spinner-container",W:[{S:"div",B:"ytp-spinner-rotator",W:[{S:"div",B:"ytp-spinner-left",W:[{S:"div",B:"ytp-spinner-circle"}]},{S:"div",B:"ytp-spinner-right",W:[{S:"div",B:"ytp-spinner-circle"}]}]}]}}; sc=function(e){if(document.createRange){var N=document.createRange();N&&(N.selectNodeContents(e),e=window.getSelection())&&(e.removeAllRanges(),e.addRange(N))}}; Nw=function(e){var N=e.T("web_player_use_cinematic_label_2")?"Ambiente integrado":"Ilumina\u00e7\u00e3o cinematogr\u00e1fica";Oc.call(this,N,g.aq.Nq);var y=this;this.C=e;this.J=!1;this.N=new g.e6(function(){g.re(y.element,"ytp-menuitem-highlighted")},0); this.x_=e.X6();this.setIcon({S:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{S:"path",V:{d:"M21 7v10H3V7h18m1-1H2v12h20V6zM11.5 2v3h1V2h-1zm1 17h-1v3h1v-3zM3.79 3 6 5.21l.71-.71L4.5 2.29 3.79 3zm2.92 16.5L6 18.79 3.79 21l.71.71 2.21-2.21zM19.5 2.29 17.29 4.5l.71.71L20.21 3l-.71-.71zm0 19.42.71-.71L18 18.79l-.71.71 2.21 2.21z",fill:"white"}}]});this.subscribe("select",this.K,this);this.listen(e3,this.j);g.Q(this,this.N)}; y9=function(e){jX.call(this,e);var N=this;this.J=!1;e.addEventListener("settingsMenuInitialized",function(){UCM(N)}); e.addEventListener("highlightSettingsMenu",function(y){UCM(N);var w=N.menuItem;y==="menu_item_cinematic_lighting"&&(g.pi(w.element,"ytp-menuitem-highlighted"),g.pi(w.element,"ytp-menuitem-highlight-transition-enabled"),w.N.start())}); LX(e,"updateCinematicSettings",function(y){N.updateCinematicSettings(y)})}; UCM=function(e){e.menuItem||(e.menuItem=new Nw(e.api),g.Q(e,e.menuItem),e.menuItem.GZ(e.J))}; w3=function(e){jX.call(this,e);var N=this;this.events=new g.fd(e);g.Q(this,this.events);this.events.Y(e,"applicationvideodatachange",function(y,w){N.qQ(y,w)})}; Ei=function(e){jX.call(this,e);this.events=new g.fd(e);g.Q(this,this.events);LX(e,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));LX(e,"setCreatorEndscreenHideButton",this.J.bind(this))}; Az=function(e,N,y,w){Oc.call(this,"Volume est\u00e1vel",g.aq.M$);g.pi(this.element,"ytp-drc-menu-item");this.x_=e.X6();this.j=N;this.J=y;this.hasDrcAudioTrack=w;e.addEventListener("videodatachange",this.N.bind(this));e.T("mta_drc_mutual_exclusion_removal")&&this.Y(e,"onPlaybackAudioChange",this.N);e=this.J()===1&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());this.setIcon({S:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{S:"path",V:{d:"M7 13H5v-2h2v2zm3-4H8v6h2V9zm3-3h-2v12h2V6zm3 2h-2v8h2V8zm3 2h-2v4h2v-4zm-7-7c-4.96 0-9 4.04-9 9s4.04 9 9 9 9-4.04 9-9-4.04-9-9-9m0-1c5.52 0 10 4.48 10 10s-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2z", fill:"white"}}]});this.subscribe("select",this.K,this);Rq(this,e);this.x_.Gi(this)}; Tc=function(e){jX.call(this,e);var N=this;this.events=new g.fd(e);g.Q(this,this.events);e.T("html5_show_drc_toggle")&&e.addEventListener("settingsMenuInitialized",function(){N.menuItem||(N.menuItem=new Az(N.api,N.setDrcUserPreference.bind(N),N.getDrcUserPreference.bind(N),N.N.bind(N)),g.Q(N,N.menuItem))}); LX(this.api,"setDrcUserPreference",function(w){N.setDrcUserPreference(w)}); LX(this.api,"getDrcUserPreference",function(){return N.getDrcUserPreference()}); LX(this.api,"hasDrcAudioTrack",function(){return N.N()}); var y;this.J=(y=g.qI("yt-player-drc-pref"))!=null?y:1;this.updateEnvironmentData()}; Jz=function(e){jX.call(this,e);var N=this;this.J={};this.events=new g.fd(e);g.Q(this,this.events);this.events.Y(e,"videodatachange",function(){N.onVideoDataChange()}); this.events.Y(e,g.AA("embargo"),function(y){N.api.bI(!0);var w,E=(w=N.J[y.id])!=null?w:[];w=g.c(E);for(E=w.next();!E.done;E=w.next()){var A=E.value;N.api.hideControls();N.api.MP("auth",2,"This video isn't available in your current playback area",Xe({embargoed:1,id:y.id,idx:y.N,start:y.start}));E=void 0;(A=(E=A.embargo)==null?void 0:E.onTrigger)&&N.api.Mg("innertubeCommand",A)}})}; LlJ=function(e,N){var y;return(y=N.onEnter)==null?void 0:y.some(e.N)}; sc0=function(e,N){N=g.c(N);for(var y=N.next();!y.done;y=N.next()){y=y.value;var w=void 0,E=Number((w=y.playbackPosition)==null?void 0:w.utcTimeMillis)/1E3,A=void 0;w=E+Number((A=y.duration)==null?void 0:A.seconds);A="embargo_"+E;e.api.addUtcCueRange(A,E,w,"embargo",!1);y.onEnter&&(e.J[A]=y.onEnter.filter(e.N))}}; p5=function(e){jX.call(this,e);var N=this;this.J=[];this.events=new g.fd(e);g.Q(this,this.events);LX(e,"addEmbedsConversionTrackingParams",function(y){N.api.X().uo&&N.addEmbedsConversionTrackingParams(y)}); this.events.Y(e,"veClickLogged",function(y){N.api.hasVe(y)&&(y=Tw(y.visualElement.getAsJspb(),2),N.J.push(y))})}; azP=function(e){jX.call(this,e);LX(e,"isEmbedsShortsMode",function(){return e.isEmbedsShortsMode()})}; eBM=function(e){jX.call(this,e);var N=this;this.events=new g.fd(e);g.Q(this,this.events);this.events.Y(e,"initialvideodatacreated",function(y){ox(Sq(),16623);N.J=g.It();var w=e.X().CN&&!y.im;if(tY(y)&&w){ox(Sq(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(y.getWatchNextResponse()){var E,A=(E=y.getWatchNextResponse())==null?void 0:E.trackingParams;A&&h$(A)}if(y.getPlayerResponse()){var T;(y=(T=y.getPlayerResponse())==null?void 0:T.trackingParams)&&h$(y)}}else ox(Sq(), 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),y.getEmbeddedPlayerResponse()&&(T=(A=y.getEmbeddedPlayerResponse())==null?void 0:A.trackingParams)&&h$(T)}); this.events.Y(e,"loadvideo",function(){ox(Sq(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:N.J})}); this.events.Y(e,"cuevideo",function(){ox(Sq(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:N.J})}); this.events.Y(e,"largeplaybuttonclicked",function(y){ox(Sq(),27240,y.visualElement)}); this.events.Y(e,"playlistnextbuttonclicked",function(y){ox(Sq(),27240,y.visualElement)}); this.events.Y(e,"playlistprevbuttonclicked",function(y){ox(Sq(),27240,y.visualElement)}); this.events.Y(e,"playlistautonextvideo",function(){ox(Sq(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; C5=function(e,N){g.x.call(this);var y=this;this.J=null;this.K=N;N=[];for(var w=0;w<=100;w++)N.push(w/100);N={threshold:N,trackVisibility:!0,delay:1E3};(this.N=window.IntersectionObserver?new IntersectionObserver(function(E){E=E[E.length-1];typeof E.isVisible==="undefined"?document.visibilityState==="visible"&&E.isIntersecting&&E.intersectionRatio>0?y.J=E.intersectionRatio:document.visibilityState==="hidden"?y.J=0:y.J=null:y.J=E.isVisible?E.intersectionRatio:0;typeof y.K==="function"&&y.K(y.J)},N): null)&&this.N.observe(e)}; y$0=function(e){jX.call(this,e);var N=this;this.events=new g.fd(e);g.Q(this,this.events);this.events.Y(e,"applicationInitialized",function(){NQn(N)})}; NQn=function(e){var N=e.api.getRootNode(),y=N;if(!e.api.T("embeds_emc3ds_inview_ks")){var w;y=e.api.getWebPlayerContextConfig().embedsEnableEmc3ds?((w=N.parentElement)==null?void 0:w.parentElement)||N:N}e.J=new C5(y,function(E){E!=null&&(e.api.X().y_=E,e.api.X().zg="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")}); g.Q(e,e.J);e.events.Y(e.api,"videoStatsPingCreated",function(E){var A=e.J;A=A.J==null?null:Math.round(A.J*100)/100;E.inview=A!=null?A:void 0;A=e.api.getPlayerSize();if(A.height>0&&A.width>0){A=[Math.round(A.width),Math.round(A.height)];var T=g.jV();T>1&&A.push(T);A=A.join(":")}else A=void 0;E.size=A})}; w1F=function(e){var N;return((N=((e==null?void 0:e.messageRenderers)||[]).find(function(y){return!!y.timeCounterRenderer}))==null?void 0:N.timeCounterRenderer)||null}; r3=function(e){g.W.call(this,{S:"div",dP:["ytp-player-content","ytp-iv-player-content"],W:[{S:"div",B:"ytp-free-preview-countdown-timer",W:[{S:"span",b9:"{{label}}"},{S:"span",B:"ytp-free-preview-countdown-timer-separator",b9:"\u2022"},{S:"span",b9:"{{duration}}"}]}]});this.api=e;this.J=null;this.K=this.N=0;this.Y(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; A$3=function(e,N){e.J||(e.N=N,e.K=(0,g.iC)(),e.J=new g.a1(function(){EBP(e)},null),EBP(e))}; EBP=function(e){var N=Math,y=N.round,w=Math.min((0,g.iC)()-e.K,e.N);N=y.call(N,(e.N-w)/1E3);e.updateValue("duration",CA({seconds:N}));N<=0&&e.J?$8(e):e.J&&e.J.start()}; $8=function(e){e.J&&(e.J.dispose(),e.J=null)}; TQ5=function(e){jX.call(this,e);var N=this;this.events=new g.fd(e);g.Q(this,this.events);this.events.Y(e,"basechromeinitialized",function(){N.J=new r3(e);g.Q(N,N.J);g.Pb(e,N.J.element,4);N.J.hide()})}; Y8=function(e){g.W.call(this,{S:"button",dP:["ytp-fullerscreen-edu-button","ytp-button"],W:[{S:"div",dP:["ytp-fullerscreen-edu-text"],b9:"Role para ver detalhes"},{S:"div",dP:["ytp-fullerscreen-edu-chevron"],W:[{S:"svg",V:{height:"100%",viewBox:"0 0 24 24",width:"100%"},W:[{S:"path",V:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],V:{"data-priority":"1"}});this.Lh=e;this.J=new g.NE(this,250,void 0,100);this.K=this.N=!1;e.createClientVe(this.element,this,61214);g.Q(this, this.J);this.Y(e,"fullscreentoggled",this.GZ);this.Y(e,"presentingplayerstatechange",this.GZ);this.listen("click",this.onClick);this.GZ()}; Mw=function(e){jX.call(this,e);var N=this;this.events=new g.fd(e);g.Q(this,this.events);LX(this.api,"updateFullerscreenEduButtonSubtleModeState",function(w){N.updateFullerscreenEduButtonSubtleModeState(w)}); LX(this.api,"updateFullerscreenEduButtonVisibility",function(w){N.updateFullerscreenEduButtonVisibility(w)}); var y=e.X();e.T("external_fullscreen_with_edu")&&y.externalFullscreen&&ZW(y)&&y.controlsType==="1"&&this.events.Y(e,"standardControlsInitialized",function(){N.J=new Y8(e);g.Q(N,N.J);e.Bv(N.J)})}; J$M=function(e){g.W.call(this,{S:"div",B:"ytp-gated-actions-overlay",W:[{S:"div",B:"ytp-gated-actions-overlay-background",W:[{S:"div",B:"ytp-gated-actions-overlay-background-overlay"}]},{S:"button",dP:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],V:{"aria-label":"Fechar"},W:[g.kl()]},{S:"div",B:"ytp-gated-actions-overlay-bar",W:[{S:"div",B:"ytp-gated-actions-overlay-text-container",W:[{S:"div",B:"ytp-gated-actions-overlay-title",b9:"{{title}}"},{S:"div",B:"ytp-gated-actions-overlay-subtitle", b9:"{{subtitle}}"}]},{S:"div",B:"ytp-gated-actions-overlay-button-container"}]}]});var N=this;this.api=e;this.background=this.hW("ytp-gated-actions-overlay-background");this.N=this.hW("ytp-gated-actions-overlay-button-container");this.J=[];this.Y(this.hW("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){N.api.Mg("onCloseMiniplayer")}); this.hide()}; Cm3=function(e,N){var y=0;y=0;for(var w={};y E&&(E=p.width,A="url("+p.url+")")}y.background.style.backgroundImage=A;Cm3(y,w.actionButtons||[]);y.show()}else y.hide()}); g.Pb(this.api,this.J.element,4)}; l3=function(e){jX.call(this,e);var N=this;eX(this.api,"getSphericalProperties",function(){return N.getSphericalProperties()}); eX(this.api,"setSphericalProperties",function(){N.setSphericalProperties.apply(N,g.B(g.iE.apply(0,arguments)))}); a$(this.api,"getSphericalProperties",function(){return N.api.getPresentingPlayerType()===2?{}:N.getSphericalProperties()}); a$(this.api,"setSphericalProperties",function(){var y=g.iE.apply(0,arguments);N.api.getPresentingPlayerType()!==2&&N.setSphericalProperties.apply(N,g.B(y))})}; FC=function(e){jX.call(this,e);LX(e,"createClientVe",this.createClientVe.bind(this));LX(e,"createServerVe",this.createServerVe.bind(this));LX(e,"destroyVe",this.destroyVe.bind(this));LX(e,"hasVe",this.hasVe.bind(this));LX(e,"logClick",this.logClick.bind(this));LX(e,"logVisibility",this.logVisibility.bind(this));LX(e,"setTrackingParams",this.setTrackingParams.bind(this))}; S3=function(e,N,y,w){function E(T){var p=!(T.status!==204&&T.status!==200&&!T.response),C;T={succ:""+ +p,rc:T.status,lb:((C=T.response)==null?void 0:C.byteLength)||0,rt:((0,g.iC)()-A).toFixed(),shost:g.uB(e),trigger:N};$cE(T,e);y&&y(T);w&&!p&&w(new P3("pathprobe.net",T))} var A=(0,g.iC)();g.zk(e,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:E,onTimeout:E})}; $cE=function(e,N){var y;((y=window.performance)==null?0:y.getEntriesByName)&&(N=performance.getEntriesByName(N))&&N.length&&(N=N[0],e.pedns=(N.domainLookupEnd-N.startTime).toFixed(),e.pecon=(N.connectEnd-N.domainLookupEnd).toFixed(),e.perqs=(N.requestStart-N.connectEnd).toFixed(),Yj5&&(e.perqsa=N.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; oE=function(e,N){this.bk=e;this.policy=N;this.playbackRate=1}; Mq5=function(e,N){var y=Math.min(2.5,Ca(e.bk));e=b3(e);return N-y*e}; hz=function(e,N,y,w,E){E=E===void 0?!1:E;if(e.policy.nm)return Math.ceil(e.policy.nm*N);e.policy.Ci&&(w=Math.abs(w));w/=e.playbackRate;var A=1/M_(e.bk);y=Math.max(.9*(w-3),Ca(e.bk)+e.bk.N.J*A)/A*.8/(N+y);y=Math.min(y,w);e.policy.bb>0&&E&&(y=Math.max(y,e.policy.bb));return lMM(e,y,N)}; lMM=function(e,N,y){return Math.ceil(Math.max(Math.max(e.policy.ib,e.policy.Tv*y),Math.min(Math.min(e.policy.Et,31*y),Math.ceil(N*y))))||e.policy.ib}; F4s=function(e,N,y){y=hz(e,N.J.info.JM,y.J.info.JM,0);var w=Ca(e.bk)+y/M_(e.bk);return Math.max(w,w+e.policy.bf-y/N.J.info.JM)}; b3=function(e){return M_(e.bk,!e.policy.Lm,e.policy.qZ)}; c0=function(e){return b3(e)/e.playbackRate}; k8=function(e,N,y){var w=e.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],E=e.policy.playbackStartPolicy.startMinReadaheadPolicy||[];e=Infinity;N=g.c(N&&w.length>0?w:E);for(w=N.next();!w.done;w=N.next())w=w.value,E=w.minReadaheadMs||0,y<(w.minBandwidthBytesPerSec||0)||e>E&&(e=E);return e0&&(this.N=y.t4)}; hBF=function(e,N,y,w,E){if(!w.info.j){if(y.length===0)y.push(w);else{var A;(e=(A=y.pop())==null?void 0:g.Hx(A,w))?y.push(e):y.push(w)}return E}var T;(y=(T=y.pop())==null?void 0:g.Hx(T,w))||(y=w);if(e.policy.LX&&y.info.N)return e.logger&&e.logger({incompleteSegment:y.info.O2()}),E;T=e.Y0(y);w=T.formatId;E=T.Ch;y=T.clipId;A=T.PL;T=T.startTimeMs;if(!e.policy.Pf&&e.policy.N&&e.Yk){var p=XC(e.Yk,y);T+=p}w={clipId:y,formatId:w,startTimeMs:T,durationMs:A,qO:E,wQ:E,Nl:T,JC:A};E=SjM(N,w.startTimeMs);(y=E>= 0?N[E]:null)&&oB_(e,y,w)?w=y:(E+=1,N.splice(E,0,w));y=0;for(A=E+1;A=r+T.N?T=!0:Y+T.N=0?e:-e-2}; c$M=function(e,N){if(e.TW){var y=e.TW.Ju();if(y.length!==0){if(e.K&&N){var w=e.K,E=w.info.o2;!AX(y,E)&&w.info.Z>0&&(0,g.iC)()-e.Z<5E3&&(e.logger&&e.logger({dend:w.info.O2()}),y=$EM(y,E,E+.01))}e.policy.Hc&&e.logger&&e.logger({cbri:""+e.J});w=[];for(var A=E=0;E=T){var Y=0;if(e.Yk){var M=P0(e.Yk,C*1E3);M&&(Y=M.N3/1E3)}M=Object.assign({},e.gT[A]);var l=e.rP.K.get(Sl(e.gT[A].formatId)), F=Math.max(C,T);T=l.index.zI(F+e.N/1E3-Y);C=l.index.getStartTime(T)+Y;var S=T+ +(Math.abs(C-F)>e.N/1E3);F=S+e.j;S=(l.index.getStartTime(S)+Y)*1E3;A!==e.J||N?(M.qO=F,M.startTimeMs=S):(e.logger&&e.logger({pEvict:"1",og:M.startTimeMs,adj:C*1E3}),M.qO=T+e.j,M.startTimeMs=C*1E3);M.Nl=M.startTimeMs;T=void 0;C=((T=e.K)==null?void 0:T.info.duration)||11;A===e.J&&pe.N/1E3);T=C+e.j;Y=(l.index.vU(C)+Y)*1E3;M.wQ=T;M.durationMs=Y-M.startTimeMs;M.JC=M.durationMs;M.qO<=M.wQ&&w.push(M)}re.N)return!1;if(bAP(e,N.formatId,y.formatId))return N.durationMs=Math.max(w,E)-N.startTimeMs,N.JC=N.durationMs,N.wQ=Math.max(N.wQ,y.wQ),!0;if(Math.abs(N.startTimeMs-y.startTimeMs)<=e.N){if(N.durationMs>y.durationMs+e.N){e=N.formatId;var A=N.qO,T=N.wQ;N.formatId=y.formatId;N.durationMs=y.durationMs;N.qO=y.qO;N.JC=y.durationMs;N.wQ=y.wQ;y.formatId=e;y.startTimeMs=E;y.Nl=E;y.durationMs=w-E;y.JC=y.durationMs; y.qO=A;y.wQ=T;return!1}N.formatId=y.formatId;return!0}w>y.startTimeMs&&(N.durationMs=y.startTimeMs-N.startTimeMs,N.JC=N.durationMs,N.clipId===y.clipId&&(N.wQ=y.qO-1));return!1}; bAP=function(e,N,y){return N.itag!==y.itag||N.xtags!==y.xtags?!1:e.rP.Cx||N.lmt===y.lmt}; X13=function(e,N,y){if(e.logger){for(var w=[],E=0;E=0&&i3(e.audioTrack,e.J)>=0&&A?((e.videoTrack.L||e.audioTrack.L)&&e.tW.Fh("iterativeSeeking",{status:"done",count:e.seekCount}),e.videoTrack.L=!1,e.audioTrack.L=!1):w&&g.Jo(function(){if(e.N||!e.policy.SR)V9(e);else{var T=N.startTime,p=N.duration;if(!e.policy.Z){var C=y?e.videoTrack.L:e.audioTrack.L,r=e.videoTrack.Z!==-1&&e.audioTrack.Z!==-1,Y=e.J>=T&&e.J432E3&&U$M(e.rP);e.K&&(E=e.K,e.K=0);g.Jo(function(){e.policy.Z||f5(e,E,102)}); e.tW.Fh("initManifestlessSync",{st:E,ost:E+e.tW.w7(),a:e.audioTrack.Z,v:e.videoTrack.Z});e.j&&(e.j.resolve(E+.1),e.j=null);e.policy.Z&&f5(e,E,102)}}}; qw=function(e,N){var y=this;this.qU=e;this.requestNumber=++fM1;this.J=this.now();this.D=this.Ng=NaN;this.G=this.J;this.K=this.Xz=this.L=0;this.Z=this.J;this.Zl=this.U=this.l9=this.jn=this.FZ=this.i9=this.N=this.j=0;this.Kh=this.isActive=!1;this.SR=this.Dl=0;this.lk={iIh:function(){return y.UT}}; this.bk=N.bk;this.snapshot=tps(this.bk);this.policy=this.bk.N;this.Vm=!!N.Vm;this.fd=N.fd;this.J3=N.J3||0;this.eV=N.eV||0;N.CU&&(this.Rq=new eV);var w;this.UT=(w=N.UT)!=null?w:!1;this.Vm||gz5(this.bk)}; tqM=function(e){e.l9=Math.max(e.l9,e.L-e.FZ);e.U=Math.max(e.U,e.G-e.jn);e.i9=0}; Z2=function(e,N,y){VpP(e.bk,N);e.Rq&&(e.Rq.add(Math.ceil(N)-Math.ceil(e.G)),e.Rq.add(Math.max(0,Math.ceil(y/1024)-Math.ceil(e.L/1024))));var w=N-e.G,E=y-e.L;e.Xz=E;e.Zl=Math.max(e.Zl,E/(w+.01)*1E3);e.G=N;e.L=y;e.i9&&y>e.i9&&tqM(e)}; x8=function(e,N){e.url=N;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; j3=function(e,N){qw.call(this,e,N);this.a9=this.Y_=!1;this.Et=this.qg=Infinity;this.Bk=NaN;this.dT=!1;this.VB=NaN;this.pX=this.aq=this.Wk=0;this.lw=N.lw||1;this.bx=N.bx||this.lw;this.F6=N.F6;this.Ch=N.Ch;this.Hf=N.Hf;uBn(this);this.n4(this.J);this.Kx=(this.VB-this.J)/1E3}; qjH=function(e){var N=e.aq||e.Wk;return N?e.snapshot.delay+Math.min(e.eV,(e.D-e.Ng)/1E3)+N:e.Kx}; n5=function(e,N,y){if(!e.Vm){N=Math.max(N,.01);var w=e.J3?Math.max(N,y/e.J3):N,E=e.bk.N.K;E&&(w=N,e.J3&&(w=Math.max(N,y/e.J3*E)));TX(e.bk,N,y,w)}}; ZAH=function(e){return(e.Z-e.J)/1E3}; uBn=function(e){e.Bk=e.J+e.snapshot.delay*1E3;e.dT=!1}; Q9=function(e,N){if(e.F6&&e.Ch!==void 0&&e.Hf!==void 0){var y=Math,w=y.min,E=e.qg;var A=e.F6;var T=e.J;if(xcs(A,e.Ch))A=N;else{var p=0;A.Z0&&(p=.2);A=T+(A.eV+p)*1E3}e.qg=w.call(y,E,A);y=Math;w=y.min;E=e.Et;A=e.F6;T=e.J;p=jxF(A,e.Ch,e.Hf);p!==2&&(N=p?N:T+A.eV*1E3,A.Z0&&(N+=A.eV*1E3));e.Et=w.call(y,E,N);e.qg<=e.J?uBn(e):(e.Bk=e.qg,e.dT=!0)}}; nBP=function(e,N){if(e.b8(N,1)){var y=e.getUint8(N);y=y<128?1:y<192?2:y<224?3:y<240?4:5}else y=0;if(y<1||!e.b8(N,y))return[-1,N];if(y===1)e=e.getUint8(N++);else if(y===2)y=e.getUint8(N++),e=e.getUint8(N++),e=(y&63)+64*e;else if(y===3){y=e.getUint8(N++);var w=e.getUint8(N++);e=e.getUint8(N++);e=(y&31)+32*(w+256*e)}else if(y===4){y=e.getUint8(N++);w=e.getUint8(N++);var E=e.getUint8(N++);e=e.getUint8(N++);e=(y&15)+16*(w+256*(E+256*e))}else y=N+1,e.focus(y),kC(e,y,4)?e=Icn(e).getUint32(y-e.Po,!0):(w= e.getUint8(y+2)+256*e.getUint8(y+3),e=e.getUint8(y)+256*(e.getUint8(y+1)+256*w)),N+=5;return[e,N]}; mA=function(e){this.qU=e;this.J=new oR}; H0=function(e,N){this.info=e;this.callback=N;this.state=1;this.kP=this.WM=!1;this.To=null}; Qx5=function(e){return g.Ip(e.info.QB,function(N){return N.type===3})}; K5=function(e,N,y,w){var E=this;w=w===void 0?{}:w;this.policy=N;this.qU=y;this.status=0;this.J=new oR;this.N=0;this.Ss=this.j=this.K=!1;this.xhr=new XMLHttpRequest;this.xhr.open(w.method||"GET",e);if(w.headers)for(e=w.headers,N=g.c(Object.keys(e)),y=N.next();!y.done;y=N.next())y=y.value,this.xhr.setRequestHeader(y,e[y]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return E.Mc()}; this.xhr.onload=function(){return E.onDone()}; this.xhr.onerror=function(){return E.onError()}; this.xhr.fetch(function(A){E.J.append(A);E.N+=A.length;A=(0,g.iC)();E.qU.X_(A,E.N)},function(){},w.body||null)}; mc_=function(e,N){this.N=(new TextEncoder).encode(e);this.J=(new TextEncoder).encode(N)}; Wzs=function(e,N){var y,w,E;return g.f(function(A){if(A.J==1){if(!N)return A.return(N);y=W0.X0();w=new g.kd(e.N);return g.D(A,w.encrypt(N,e.J),2)}E=A.N;W0.x$("woe",y,Math.ceil(N.byteLength/16));return A.return(E)})}; Lz3=function(e,N){var y,w,E;return g.f(function(A){if(A.J==1){if(!N)return A.return(N);y=W0.X0();w=new g.kd(e.N);return g.D(A,w.decrypt(N,e.J),2)}E=A.N;W0.x$("wod",y,Math.ceil(N.byteLength/16));return A.return(E)})}; K4n=function(e,N){var y=this;this.J=e;this.qU=N;this.loaded=this.status=0;this.error="";e=hd(this.J.get("range")||"");if(!e)throw Error("bad range");this.range=e;this.N=new oR;HAM(this).then(function(){y.qU.c_()},function(w){y.error=""+w||"unknown_err"; y.qU.c_()})}; HAM=function(e){var N,y,w,E,A,T,p,C,r,Y,M,l,F,S,k;return g.f(function(X){if(X.J==1){e.status=200;N=e.J.get("docid");y=GJ(e.J.get("fmtid")||"");w=e.J.get("lmt")||"0";E=+(e.J.get("csz")||0);if(!N||!y||!E)throw Error("Invalid local URL");e.J.get("ck")&&e.J.get("civ")&&(A=new mc_(e.J.get("ck"),e.J.get("civ")));T=e.range;p=Math.floor(T.start/E);C=Math.floor(T.end/E);r=p}if(X.J!=5)return r<=C?g.D(X,sX9(N,y,w,r,A),5):X.u9(0);Y=X.N;if(Y===void 0)throw Error("invariant: data is undefined");M=r*E;l=(r+1)*E; F=Math.max(0,T.start-M);S=Math.min(T.end+1,l)-(F+M);k=new Uint8Array(Y.buffer,F,S);e.N.append(k);e.loaded+=S;e.loaded0&&(E.J=Math.min(E.J+T,10),E.N=A);E.J>0?(E.J--,E=!0):E=!1;if(E)typeof w==="function"&&(w=w()),console.log("plyr."+N,w);else{var p;w=((p=evM.get(N))!=null?p:0)+1;evM.set(N,w);w%100===1&&console.warn("plyr","plyr."+N+" is chatty, dropping logs.")}}}; aMM=function(){this.J=10;this.N=Date.now()}; Ui=function(e,N){g.x.call(this);var y=this;this.policy=e;this.QB=N;this.N=0;this.J=null;this.QT=[];this.K=null;this.lk={Lz:function(){return y.QB}}; this.QB.length===1||g.Ip(this.QB,function(w){return!!w.range})}; L5=function(e,N,y){e.J&&(bI(e.J,N),N=e.J,e.J=null);for(var w=0,E=0,A=g.c(e.QB),T=A.next();!T.done;T=A.next())if(T=T.value,T.range&&w+T.K<=e.N)w+=T.K;else{N.getLength();if(Xs(T)&&!y&&e.N+N.getLength()-E=400?(e.lastError="net.badstatus",!0):(E===void 0?0:E)?(e.lastError="ump.spsrejectfailure",!0):y||w!==void 0&&w?!1:(e.lastError=N===204?"net.nocontent":"net.connect",!0)}; wB=function(e,N){if(e.policy.w$)return!1;var y=N.getResponseHeader("content-type"),w=N.rG();e=!w||w<=e.policy.g6;return(!N.zE()||!y||y.indexOf("text/plain")!==-1)&&e}; TD1=function(e,N){var y="";N=N.xJ();N.getLength()<=e.policy.g6&&(y=Ai_(e,N.YX()));return y}; Ai_=function(e,N){var y=P8(N);return a_(y)?(e.logger.debug(function(){return"Redirecting to "+y}),y):""}; aE=function(e){return r4(e.K,lN(e.R2.tA))}; Ji5=function(e){var N=e.timing.gL();N.shost=lN(e.R2.tA);return N}; p$M=function(e,N){return(e==null?void 0:e.maxWidth)>(N==null?void 0:N.maxWidth)||(e==null?void 0:e.maxHeight)>(N==null?void 0:N.maxHeight)}; CNE=function(e,N){for(var y=g.c(N.keys()),w=y.next();!w.done;w=y.next())if(w=N.get(w.value),w.length!==0){g.pf(w,function(p,C){return C.maxFramerate-p.maxFramerate}); for(var E=[w[0]],A=0,T=1;Te.J||y.push(w)}return y}; EY=function(e,N,y){var w=Yfn[e]||[];y.T("html5_shorts_onesie_mismatched_fix")&&(w=Md0[e]||[]);N.push.apply(N,g.B(w));y.T("html5_early_media_for_drm")&&N.push.apply(N,g.B(leF[e]||[]))}; ciM=function(e,N){var y=g.sn(e),w=e.X(),E=w.L;w=w.T("html5_shorts_onesie_mismatched_fix");var A=e.e_();if(w){if(!E.K){if(A&&AI)return AI;if(Tg)return Tg}}else if(Tg&&!E.K)return Tg;var T=[],p=[],C={},r=JI.concat(Fh3);w&&(r=JI.concat(Sf0));e.T("html5_early_media_for_drm")&&(r=r.concat(oEn),e.T("allow_vp9_1080p_mq_enc")&&r.push(b_P));var Y=[].concat(g.B(hv_));if(y.D)for(var M=0;My.G4)){var k=g.Y2(e.X().experiments,"html5_drm_byterate_soft_cap");k>0&&Cp5(S)&&S.JM>k||(M?(T.push(F),EY(F,T,e)):(S=Ef(y,S,E),S===!0?(M=!0,T.push(F),EY(F,T,e)):C[F]=S))}}}Y=g.c(Y);for(r=Y.next();!r.done;r=Y.next())for(r=g.c(r.value),M=r.next();!M.done;M=r.next())if(M= M.value,(l=EAP(M))&&l.audio&&(e.T("html5_onesie_51_audio")||!W3(l)&&!Og(l)))if(l=Ef(y,l,E),l===!0){p.push(M);EY(M,p,e);break}else C[M]=l;y.N&&N("orfmts",C);if(w)return E.K&&(E.K=!1,AI=Tg=void 0),A?AI={video:T,audio:p}:Tg={video:T,audio:p};Tg={video:T,audio:p};E.K=!1;return Tg}; g.X$J=function(e,N,y){var w=y.L,E=[],A=[],T=y.T("html5_shorts_onesie_mismatched_fix");e=e.e_();var p=JI.concat(Fh3);T&&(p=JI.concat(Sf0));y.T("html5_early_media_for_drm")&&(p=p.concat(oEn),y.T("allow_vp9_1080p_mq_enc")&&p.push(b_P));var C=[].concat(g.B(hv_));if(N.D)for(var r=0;r0&&Cp5(M)&&M.JM>l)&&Ef(N,M,w)===!0){E.push({videoCodec:kD3[nd[Y]],maxWidth:M.video.width,maxHeight:M.video.height,maxFramerate:M.video.fps});break}}}}T=g.c(C);for(e=T.next();!e.done;e=T.next())for(e=g.c(e.value),C=e.next();!C.done;C=e.next())if(C=C.value,(p=EAP(C))&&p.audio&&(y.T("html5_onesie_51_audio")||!W3(p)&&!Og(p))&&Ef(N,p,w)=== !0){A.push({audioCodec:BD0[nd[C]],numChannels:p.audio.numChannels});break}return{videoFormatCapabilities:E,audioFormatCapabilities:A}}; pP=function(e){var N={},y=e.JW,w=e.Ot,E=y.getVideoData(),A=zm(0),T=y.getPlayerSize(),p=y.getVisibilityState();A&&(N.Vsq=A,N.lastManualDirection=hs9(),A=OkM()||0,A>0&&(A=(w.T("html5_use_date_now_for_local_storage")?Date.now():(0,g.iC)())-A,w.T("html5_use_date_now_for_local_storage")?A>0&&(N.timeSinceLastManualFormatSelectionMs=A):N.timeSinceLastManualFormatSelectionMs=A));N.wf1=zm();A=w.T("html5_use_streamer_bandwidth_for_low_latency_live")&&E.isLowLatencyLiveStream;if(w.schedule.Ng&&!A){var C;A=w.T("html5_disable_bandwidth_cofactors_for_sabr_live")? !((C=e.qK)==null||!C.Lm):!1;N.Cr=M_(w.schedule,!A)}C=g.jV();var r=g.q5.medium,Y=Math.floor(r*16/9);A=E.e_()?r:Y;r=E.e_()?Y:r;N.eq=Math.max(T.width*C,A);N.Wa=Math.max(T.height*C,r);N.visibility=p;N.RUW=z_();N.rr=y.wS()*1E3;T=e.JW.mH(!0);var M,l,F,S,k,X;N.Qfl={defaultPolicy:(T==null?void 0:(M=T.xs)==null?void 0:M.J)||0,smooth:(T==null?void 0:(l=T.JT9)==null?void 0:l.J)||0,visibility:(T==null?void 0:(F=T.kIh)==null?void 0:F.J)||0,BL:(T==null?void 0:(S=T.m8)==null?void 0:S.J)||0,performance:(T==null? void 0:(k=T.FC)==null?void 0:k.J)||0,speed:(T==null?void 0:(X=T.tZG)==null?void 0:X.J)||0};w.T("html5_enable_sabr_drm_hd720p")&&e.sabrLicenseConstraint&&(N.sabrLicenseConstraint=e.sabrLicenseConstraint);if(w.T("html5_onesie_media_capabilities")||w.T("html5_enable_server_format_filter"))N.qz=3;w.T("html5_onesie_audio_only_playback")&&Gr(E)&&(N.qz=1);var d;((d=e.qK)==null?0:d.zg)&&E.Cx()&&e.E1B&&(N.qz=N.qz===void 0?7:N.qz|4);M=E.sY?E.sY:g.sn(E);w.T("html5_onesie_media_capabilities")&&(N.mediaCapabilities= g.X$J(E,M,w));var v;if((v=e.qK)==null?0:v.J&&v.DD){F=w.L;v=[];l=[];S=new Map;w.T("html5_ssap_update_capabilities_on_change")?(F.D||dbF(F),k=F.D||[]):k=Array.from(F.J.values());k=g.c(k);for(X=k.next();!X.done;X=k.next())d=X.value,d.qG?l.push({audioCodec:BD0[d.Iq],numChannels:d.numChannels,spatialCapabilityBitmask:PNM[d.Iq]}):(T=kD3[d.Iq],X={videoCodec:T,maxWidth:d.maxWidth||0,maxHeight:d.maxHeight||0,maxFramerate:d.maxFramerate||0,is10BitSupported:d.Oa||!1},d.maxBitrateBps&&(X.maxBitrateBps=d.maxBitrateBps, p=La(d.itag),C=void 0,((C=p)==null?0:C.video)&&Ef(M,p,F)===!0&&(p=p.JM*8,p>X.maxBitrateBps&&(X.maxBitrateBps=p))),d=T+"_"+d.Oa,T=S.get(d)||[],T.push(X),S.set(d,T));v=CNE(v,S);F={};w.T("html5_ssff_denylist_opus_low")&&(F={itagDenylist:[249,350]});N.mediaCapabilities={videoFormatCapabilities:v,audioFormatCapabilities:l,hdrModeBitmask:3,perPlaybackAttributes:F}}var V;if((V=e.qK)==null?0:V.J){N.RY=M.RY;var Z;N.G4=(Z=e.qK)==null?void 0:Z.G4}w.Js&&(N.CY=w.Js);N.Sb=e.F7;N.mV=e.mV;N.nf=e.nf;N.XY=e.XY;if(w.T("html5_fix_time_since_last_seek_reporting")? e.Vy!==void 0:e.Vy)N.C6s=(0,g.iC)()-e.Vy;e.isPrefetch&&w.T("html5_report_prefetch_requests")&&(N.isPrefetch=!0);QY||(N.dUP=!0);V=Ca(w.schedule)*1E3;V>0&&(N.Qv=V);var n;((n=e.qK)==null?0:n.e$)&&e.pG&&e.pG0?R:w.schedule.interruptions[0]||0);var O;if((O=e.qK)==null?0:O.Xz)N.Td=e.Td;var E9;((E9=e.qK)==null?0:E9.o4)&&E.E0&&(N.audioTrackId=E.E0);var Jn;if((Jn=e.qK)==null?0:Jn.p5)if(e=JF5())N.detailedNetworkType=daM[e]||daM.other;return N}; CP=function(e,N,y,w,E,A,T){var p={};N&&(p.tC=N);if(!e)return p;p.playbackCookie=y==null?void 0:y.playbackCookie;E&&(p.PS=E);p.Ds=[];p.Y6=[];if(T==null?0:T.size)for(N=g.c(T.values()),y=N.next();!y.done;y=N.next())p.Y6.push(y.value);if((g.xK(e)||e.zy)&&e.sabrContextUpdates.size>0)for(N=g.c(e.sabrContextUpdates.values()),y=N.next();!y.done;y=N.next())Ie9(p,y.value,w);L3(e)&&!g.xK(e)&&e.T("html5_enable_sabr_request_pipelining")&&A&&Ie9(p,A,w);e.wh&&(p.DGP=e.wh);w=e.X().J;p.clientInfo={clientName:vEH[w.c.toUpperCase()]|| 0};w.cbrand&&(p.clientInfo.deviceMake=w.cbrand);w.cmodel&&(p.clientInfo.deviceModel=w.cmodel);w.cver&&(p.clientInfo.clientVersion=w.cver);w.cos&&(p.clientInfo.osName=w.cos);w.cosver&&(p.clientInfo.osVersion=w.cosver);w=e.X();w.T("html5_sabr_enable_server_xtag_selection")&&w.SR&&(p.clientInfo.hl=w.SR);e.eL&&(p.eL=e.eL);return p}; Ie9=function(e,N,y){var w=N.type||0;(y==null?0:y.has(w))?e.Y6.push(N):e.Ds.push(w)}; v0=function(e,N,y,w,E,A){var T=A===void 0?{}:A;var p=T.zt===void 0?[]:T.zt;var C=T.a4===void 0?!1:T.a4;var r=T.Ze===void 0?0:T.Ze;var Y=T.poToken===void 0?"":T.poToken;var M=T.lz===void 0?void 0:T.lz;var l=T.Tt===void 0?"":T.Tt;var F=T.Q2===void 0?0:T.Q2;var S=T.E_===void 0?new Uint8Array(0):T.E_;var k=T.dM===void 0?!1:T.dM;A=T.Fb===void 0?0:T.Fb;T=T.tC===void 0?void 0:T.tC;H0.call(this,N,E);var X=this;this.policy=e;this.logger=new g.RE("dash/request");this.pW=this.Ie=0;this.sK=!1;this.M3=this.B2= null;this.lj=!1;this.E_=this.Q2=null;this.n0=this.b3=!1;this.Q7=null;this.Fb=this.Mo=0;this.ZP=!1;this.lk={IJ:function(v){X.IJ(v)}, vbW:function(){return X.To}, lvt:function(v){X.To=v}, hI9:function(v){X.Ie=v}, AfP:function(v){X.r7.lastError=v}, PM:function(){return X.xhr}}; this.timing=new j3(this,y);this.a4=C;this.Q2=F;this.E_=S;this.R2=g.Vt(this.info,this.policy,w);this.R2.set("rn",this.YK().toString());this.R2.set("rbuf",(r*1E3).toFixed().toString());this.a4&&this.R2.set("smb","1");this.policy.Zc&&Y&&this.R2.set("pot",Y);l&&this.R2.set("bbs",l);this.policy.useUmp&&!F9(this.R2.tA)&&(this.uI=new mA(this),this.R2.set("ump","1"),this.R2.set("srfvp","1"));if(e=this.policy.oS?this.policy.m5&&!isNaN(this.info.Hf)&&this.info.Hf>this.policy.Qw?!1:!0:!1)N=null,this.policy.zM&& this.policy.o1?N=[1]:k&&(N=[]),N!=null&&(this.policy.Ly&&N.push(2),this.R2.set("defsel",N.join(",")));this.r7=new si(this,this.policy,this.R2,this.info.yl,this.timing,this.logger,w,M);this.zt=p||null;this.kP=zvJ(this);NDF(this.r7);w=void 0;if(this.policy.bA||this.uI||this.policy.aq)w={method:"POST"},p=(0,g.rB)([120,0]),M={},this.policy.zT&&T&&(T=CP(void 0,T),M.v4=T),this.policy.Ry&&this.E_&&(M.videoPlaybackUstreamerConfig=this.E_),this.policy.aq&&(T=this.info.j)&&Object.assign(M,T),Object.keys(M).length> 0?w.body=g.A5(M,g.m4):w.body=p;if(this.Q2&&this.E_){this.R2.set("iwts","1");w={method:"POST"};T={XY:this.Q2*1E3};var d;p=(d=this.info.j)==null?void 0:d.Ag;d=g.A5({IS:T,Ag:p||void 0,videoPlaybackUstreamerConfig:this.E_},g.m4);w.body=d}try{this.xhr=Oi(this.R2,this.policy.U,this.timing,e,w),this.r7.N.start(),A&&(this.n9=new g.e6(this.G8,A,this),this.n9.start(A+(this.timing.bk.U.AT()||0)*1E3)),this.policy.ir&&x8(this.timing,this.nC()),this.logger.debug(function(){return"Sent, itag="+X.R2.get("itag")+ " seg="+X.info.QB[0].Ch+" range="+X.R2.get("range")+" time="+Math.round(X.info.QB[0].o2)+"-"+Math.round(g.Kq(X.info.QB).XT)+" rtp="+(X.timing.KM()-Date.now()).toFixed(0)}),g.Jo(function(){})}catch(v){i_s(this,v,!0)}}; zvJ=function(e){if(!(g4(e.info)&&e.info.UT()&&e.policy.WE&&e.zt)||e.info.yl.N>=2||zm()>0||!XaF())return!1;var N=e.R2.get("aitags");if(!N)return!1;N=GJ(N).split(",");for(var y=[],w=g.c(e.zt),E=w.next();!E.done;E=w.next())E=E.value,g.Gw(N,E)&&y.push(E);if(!y.length)return!1;e.R2.set("altitags",g.RA(y.join(",")));return!0}; i_s=function(e,N,y){y=y===void 0?!1:y;g.t0(N);e.r7.lastError="player.exception";e.errorMessage=N.name+"_"+N.message;y?g.Jo(function(){N4(e.r7)}):N4(e.r7)}; Da_=function(e,N){e.timing.Kh=!0;e.xhr.zE()&&e.timing.Kd();if(e.policy.CC){var y;(y=e.n9)==null||y.stop()}L5(e.To,N,!1)}; gE9=function(e,N){e.info=N;if(e.To){var y=e.To;N=N.QB;(N.length!==y.QB.length||N.length0){N=g.c(N.QB);for(var y=N.next();!y.done;y=N.next()){var w=void 0;e+=((w=y.value.range)==null?void 0:w.length)||0}return e}if(N.Yf.length>0)for(y=g.c(N.Yf),w=y.next();!w.done;w=y.next())e+=w.value.kS||0;return e+N.TU}; bO=function(e,N){if(Fy){var y=0;e=e.XZ.get(N);if(e==null||!e.Vs)return 0;e=g.c(e.Vs.values());for(N=e.next();!N.done;N=e.next())y+=N.value.data.getLength();return y}return((y=e.XZ.get(N))==null?void 0:y.QT.getLength())||0}; hI=function(e,N){e=e.XZ.get(N);if(Fy){if(e==null||!e.CT)return!1;N=e.Vs.size>0;return e.MZ.length>0||N}return!(e==null||!e.CT)&&!(e==null||!e.QT.getLength())}; Z_P=function(e,N){var y=e.XZ.get(N),w=qfF(e,N),E=!w&&!!y.bytesReceived;if(Fy){var A;if((A=e.rP)==null?0:A.Cx){e=g.c(y.Vs.values());for(N=e.next();!N.done;N=e.next())if(!N.value.aL)return!1;return E}}else if(A=e.i8(N),E&&e.J&&A!==void 0)return A;return(E||y.bytesReceived===w)&&y.ex+bO(e,N)===y.bytesReceived}; xan=function(e,N,y){e.XZ.set(N,{QT:new oR,ex:0,bytesReceived:0,TU:0,PT:!1,u6:!1,i8:!1,qG:y,kD:[],QB:[],Yf:[],CT:!1,Vs:new Map,lW:new Map,MZ:[]});e.logger.debug(function(){return"[initStream] formatId: "+N})}; jh5=function(e,N,y,w){y.QB.push.apply(y.QB,g.B(w));if(Fy){y.lW.has(N)||y.lW.set(N,[]);var E;(E=y.lW.get(N)).push.apply(E,g.B(w))}else if(y.To)for(e=g.c(w),N=e.next();!N.done;N=e.next())y.To.QB.push(N.value);else{y.To=new Ui(e.qK,[].concat(g.B(y.QB)));var A;((A=e.qK)==null?0:A.zx)&&g.Q(e,y.To)}}; nE9=function(e,N,y){var w,E=(w=e.rP)==null?void 0:w.K.get(N);if(!E)return[];if(y.qk){var A;return((A=E.p_(0,y.clipId))==null?void 0:A.QB)||[]}if(E.I8()){var T=y.startMs,p=y.durationMs,C=1E3,r;if(((r=e.qK)==null?0:r.J)&&y.timeRange){var Y;T=(Y=y.timeRange.startTicks)!=null?Y:-1;var M;p=(M=y.timeRange.fV)!=null?M:-1;var l;C=(l=y.timeRange.timescale)!=null?l:-1}if(y.RH<0||y.ZN<0||p<0||T<0||y.kS<0||C<0)return oO(e,N),[];e=cx(y.RH,y.kS);N=y.Br||0;return[new Bx(3,E,e,"makeSliceInfosMediaBytes",y.ZN-1,T/ C,p/C,N,e.length-N,void 0,y.KO,y.clipId)]}if(y.ZN<0)return oO(e,N),[];var F;return((F=e.rP)==null?0:F.Cx)?(N=E.j1,r=N*E.info.JM,Y=((T=e.qK)==null?0:T.LX)?y.Br:void 0,((C=e.qK)==null?0:C.mL)&&y.timeRange&&!Y&&(p=y.timeRange.startTicks/y.timeRange.timescale),[new Bx(3,E,void 0,"makeSliceInfosMediaBytes",y.ZN,p,N,Y,r,!0,y.KO,y.clipId)]):[]}; Qh9=function(e,N,y){e.rP=N;e.qK=y;N=g.c(e.XZ);for(y=N.next();!y.done;y=N.next()){var w=g.c(y.value);y=w.next().value;w=w.next().value;for(var E=g.c(w.kD),A=E.next();!A.done;A=E.next()){A=A.value;var T=nE9(e,y,A);jh5(e,A.mj,w,T)}}}; cT=function(e,N,y,w){e.logger.debug(function(){return"[addStreamData] formatId: "+y+",headerId: "+N+" bytes: "+w.getLength()}); (e=e.XZ.get(y))&&!e.u6&&(Fy?(e.Vs.has(N)||e.Vs.set(N,{data:new oR,M8:0,aL:!1}),bI(e.Vs.get(N).data,w)):bI(e.QT,w),e.bytesReceived+=w.getLength(),e.PT=!0)}; Sr=function(e,N){e.logger.debug(function(){return"[closeStream] formatId: "+N}); var y=e.XZ.get(N);y&&!y.u6&&(y.u6=!0,y.FI&&y.FI(),maM(e)&&e.j.FG())}; maM=function(e){e=g.c(e.XZ.values());for(var N=e.next();!N.done;N=e.next())if(!N.value.u6)return!1;return!0}; kX=function(e,N,y,w,E,A,T,p){g.x.call(this);this.policy=e;this.info=N;this.rP=y;this.qU=E;this.Eo=p;this.logger=new g.RE("sabr");this.uI=new mA(this);this.VP=new M4(this);this.uP=new lO(this);this.state=1;this.vD=!1;this.X$=0;this.clipId="";this.qF=this.d4=-1;this.Gj=0;this.NH=-1;this.ZP=this.Mv=!1;this.l4=0;this.Q3=!1;this.policy.gI?this.Aa=new $X(this,A):this.Aa=new j3(this,A);this.R2=this.policy.Xz?N.Na:H_M(N,this.policy,w);this.R2.set("rn",""+this.YK());this.R2.set("alr","yes");Qh9(this.uP,y, e);this.r7=new si(this,this.policy,this.R2,N.yl,this.Aa,this.logger,w,T,this.policy.enableServerDrivenRequestCancellation);NDF(this.r7);var C;if((C=this.policy)==null?0:C.zx)g.Q(this,this.uP),g.Q(this,this.r7);e=N.N;N={method:"POST",body:e};e&&(this.Gj=e.length);try{this.xhr=Oi(this.R2,this.policy.U,this.Aa,QY,N),this.policy.ir&&x8(this.Aa,this.nC()),this.r7.N.start()}catch(r){g.uA(r)}}; KhJ=function(e){e.policy.dJ&&e.FU&&!e.Q3?e.Q3=!0:e.Aa.Kd()}; Wh5=function(e,N){var y=-1,w=-1,E=-1,A;if((A=e.Y5)==null?0:A.items)for(e=g.c(e.Y5.items),A=e.next();!A.done;A=e.next())A=A.value,N=p,C=e.rP.isManifestless&&e.policy.lr, T){var r;if(((r=e.J)==null?void 0:r.Re.event)==="predictStart"&&e.J.Che.L&&(e.L=NaN,e.G=NaN);if(e.J&&e.J.Ch===N)if(w=e.J,!e.policy.IF||E&&w){var T=w.Re;A=E.Wi(T);T.event==="predictStart"&&(e.Kh=N);e.Fh("sdai",{onqevt:T.event,sq:N,mt:y,gab:A,cst:T.startSecs,cueid:e.policy.tX&&(A||T.event==="start")?T.identifier:void 0});if(A)if(T.event!=="predictStart")T.event==="start"&&e.Kh===N-1&&e.Fh("sdai",{gabonstart:N}), w.Y$?dB(e,4,"cue"):(e.L=N,e.G=y,e.Fh("sdai",{joinad:e.N,sg:e.L,st:e.G.toFixed(3)}),e.D=Date.now(),dB(e,2,"join"),E.lh(w.Re));else{var p=N+Math.max(Math.ceil(-T.J/5E3),1);A=Math.floor(y-T.J/1E3);e.policy.L?e.K=A:e.j=p;e.Fh("sdai",{onpred:y,estsq:p,estmt:A.toFixed(3)});vT(e.tW,A,A,p);e.D=Date.now();dB(e,3,"predict");E.lh(w.Re)}else e.N===1?((p=e.Z)==null?0:p.hI(y))?(vT(e.tW,y,y,N),dB(e,4,"sk2had")):dB(e,5,"nogab"):T.event==="predictStart"&&(e.policy.L&&e.K>0?(y=Math.floor(y-T.J/1E3),e.K!==y&&e.Fh("sdai", {updateSt:y,old:e.K}),e.K=y):e.j>0&&(y=N+Math.max(Math.ceil(-T.J/5E3),1),e.j!==y&&(e.Fh("sdai",{updateSt:y,old:e.j}),e.j=y)));var C,r;if(e.Au&&T.event==="start"&&((C=e.J)==null?void 0:C.Re.event)!=="predictStart"&&((r=e.J)==null?void 0:r.Ch)===N-1){var Y;e.Fh("sdai",{ovlpst:(Y=e.J)==null?void 0:Y.Re.event,sq:N})}}else e.Fh("sdai",{nulldec:1,sq:N,mt:y.toFixed(3),evt:(w==null?void 0:(T=w.Re)==null?void 0:T.event)||"none"});else e.N===1&&dB(e,5,"noad")}; px3=function(e,N,y){if(e.N===1||e.N===2)return!1;if(e.N!==0&&N===e.audioTrack){if(e.policy.L)return Jds(e.videoTrack,y)||Jds(e.videoTrack,y+1);e=zg(e.videoTrack);if(y>(e?e.Ch:-1))return!1}return!0}; iO=function(e,N,y){return(y<0||y===e.L)&&!isNaN(e.G)?e.G:N}; EaM=function(e,N){if(e.J){var y=e.J.Re.Vj-(N.startTime+e.U-e.J.Re.startSecs);y<=0||(y=new iN(e.J.Re.startSecs-(isNaN(e.U)?0:e.U),y,e.J.Re.context,e.J.Re.identifier,"stop",e.J.Re.J+N.duration*1E3),e.Fh("cuepointdiscontinuity",{segNum:N.Ch}),PT(e,y,N.Ch))}}; dB=function(e,N,y){e.N!==N&&(e.Fh("sdai",{setsst:N,old:e.N,r:y}),e.N=N)}; D0=function(e,N,y,w){(w===void 0?0:w)?dB(e,1,"seek"):N>0&&Math.abs(N-y)>=5&&e.N===4&&dB(e,5,"sk2t."+N.toFixed(2)+";ct."+y.toFixed(2))}; gB=function(e,N,y){this.audio=e;this.video=N;this.reason=y}; VW=function(e,N,y){this.J=e;this.reason=N;this.token=y;this.videoId=void 0}; fP=function(e,N,y){g.x.call(this);this.policy=e;this.j=N;this.Fh=y;this.K=new Map;this.L=0;this.Z=!1;this.J="";this.N=!1}; tI=function(e,N,y){if(y===void 0?0:y)e.Z=!0;++e.L;y=6E4*Math.pow(2,e.L);y=(0,g.iC)()+y;e.K.set(N.info.id,y)}; uO=function(e){for(var N=g.c(e.K.entries()),y=N.next();!y.done;y=N.next()){var w=g.c(y.value);y=w.next().value;w=w.next().value;w<(0,g.iC)()&&e.K.delete(y)}return e.K}; CHH=function(e){return e.Z&&uO(e).size>0}; q4=function(e,N){e.J!==N&&(e.J=N,e.N=!0)}; rd_=function(e,N){var y;N&&(y=g.Ok(e.j.J,function(E){return E.id===N})); if(!y&&(y=g.Ok(e.j.J,function(E){var A;return!((A=E.Vl)==null||!A.isDefault)}),N)){var w; e.Fh("iaf",{id:N,sid:(w=y)==null?void 0:w.id})}return y}; xX=function(e,N,y,w,E,A){var T=this;A=A===void 0?[]:A;this.tW=e;this.qg=N;this.policy=y;this.rP=w;this.Z=E;this.VB=A;this.logger=new g.RE("dash/abr");this.J=f3;this.K=this.G=null;this.D=-1;this.aq=!1;this.nextVideo=this.N=null;this.j=[];this.Et=new Set;this.Rq={};this.Ut=new yy(1);this.U=0;this.Bk=this.Kh=this.Ng=!1;this.l9=0;this.Wk=!1;this.i9=new Set;this.Zl=!1;this.lk={QP:function(){Z0(T)}}; this.L=new fP(this.policy,E,function(p,C){T.tW.Fh(p,C)})}; FvE=function(e,N,y){jr(e,N);N=rd_(e.L,y);y||N||(N=$Z5(e));N=N||e.Z.J[0];e.N=e.rP.J[N.id];Z0(e);e.G=e.N;YME(e);MlH(e);e.K=e.nextVideo;e.G=e.N;return l$M(e)}; b1s=function(e,N){if(SMF(e,N))return null;if(N.reason==="m"&&N.isLocked())return e.logger.debug(function(){return"User sets constraint to: "+ax(N)}),jr(e,N),e.U=e.j.length-1,Z0(e),nP(e),e.Kh=e.Kh||e.K!==e.nextVideo,e.K=e.nextVideo,new gB(e.N,e.K,N.reason); N.reason==="r"&&(e.D=-1);jr(e,N);nP(e);if(N.reason==="r"&&e.nextVideo===e.K)return new gB(e.N,e.nextVideo,N.reason);oaM(e);return null}; h_E=function(e,N,y){e.N=e.rP.J[N];e.G=e.N;return new gB(e.G,e.K,y?"t":"m")}; cdE=function(e,N){if(N.info.video){if(e.K!==N)return e.K=N,l$M(e)}else e.Bk=e.G!==N,e.G=N;return null}; k4J=function(e,N){if(N.J.info.video&&N.j){var y=(N.N+N.K)/N.duration,w=N.J.info.JM;y&&w&&(e.Ut.Kj(1,y/w),e.policy.K&&y/w>1.5&&e.tW.Fh("overshoot",{sq:N.Ch,br:y,max:w}))}}; QW=function(e,N,y){tI(e.L,N,y===void 0?!1:y);e.D=-1;jr(e,e.J)}; B4M=function(e,N){return new gB(e.G,e.K,N||e.J.reason)}; oaM=function(e){if(e.K&&e.nextVideo&&mU(e,e.K.info)e.policy.G4,p=E<=e.policy.G4?Kd(w):mu(w);if(!A||T||p)y[E]=w}return y}; jr=function(e,N){e.J=N;var y=e.Z.videoInfos;if(!e.J.isLocked()){var w=(0,g.iC)();y=g.CG(y,function(p){if(p.JM>this.policy.JM)return!1;var C=this.rP.J[p.id];return uO(this.L).get(p.id)>w?!1:C.yl.N>4||C.Z>4?(this.logger.debug(function(){return"Remove "+N$(p)+"; 4 load failures"}),!1):this.i9.has(+p.itag)?!1:!0},e); CHH(e.L)&&(y=g.CG(y,function(p){return p.video.width<=854&&p.video.height<=480}))}y.length||(y=e.Z.videoInfos); var E=y;e.policy.Yb&&(E=PH0(e,E,N));E=g.CG(E,N.j,N);if(e.J.isLocked()&&e.L.J){var A=g.Ok(y,function(p){return p.id===e.L.J}); A?E=[A]:q4(e.L,"")}e.policy.Yb||(E=PH0(e,E,N));E.length||(E=[y[0]]);E.sort(function(p,C){return mU(e,p)-mU(e,C)}); N={};for(y=1;yN.lK.video.width?(g.Uk(E,y),y--):mU(e,N.gi)*e.policy.D>mU(e,N.lK)&&(g.Uk(E,y-1),y--);var T=E[E.length-1];e.Wk=!!e.K&&!!e.K.info&&e.K.info.Iq!==T.Iq;e.logger.debug(function(){return"Constraint: "+ax(e.J)+", "+E.length+" fmts selectable, max selectable fmt: "+N$(T)}); e.j=E;e.Et.clear();N=!1;for(y=0;y=1080&&(N=!0);dZ1(e.policy,T,e.rP.Cx)}; PH0=function(e,N,y){var w=y.reason==="m"||y.reason==="s";e.policy.s6&&HT&&g.k$&&(!w||y.J<1080)&&(N=N.filter(function(r){return r.video&&(!r.N||r.N.powerEfficient)})); if(N.length>0)if(Zo()){var E=XxM(e,N);N=N.filter(function(r){return!!r&&!!r.video&&r.Iq===E[r.video.J].Iq})}else{var A,T,p=(A=N[0])==null?void 0:(T=A.video)==null?void 0:T.J; if(p){y=N.filter(function(r){return!!r&&!!r.video&&r.video.J===p}); var C=XxM(e,y)[p].Iq;N=N.filter(function(r){return!!r&&!!r.video&&r.Iq===C})}}return N}; I$9=function(e,N){for(var y=0;y+1w}; Z0=function(e){if(!e.N||!e.policy.j&&!e.N.info.Vl){var N=e.Z.J;e.N&&(N=N.filter(function(w){return w.audio.J===e.N.info.audio.J}),N.length||(N=e.Z.J)); e.N=e.rP.J[N[0].id];if(N.length>1){if(e.policy.RO){if(e.policy.dT)return;var y=g.Ok(N,function(w){return w.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}); y&&(e.N=e.rP.J[y.id])}y=!1;if(y=e.policy.NK?!0:e.J.isLocked()?e.J.J<240:I$9(e,e.N))e.N=e.rP.J[g.Kq(N).id]}}}; nP=function(e){if(!e.nextVideo||!e.policy.j)if(e.J.isLocked())e.nextVideo=e.J.J<=360?e.rP.J[e.j[0].id]:e.rP.J[g.Kq(e.j).id],e.logger.debug(function(){return"Select max fmt: "+N$(e.nextVideo.info)}); else{for(var N=Math.min(e.U,e.j.length-1),y=c0(e.qg),w=mU(e,e.N.info),E=y/e.policy.Ng-w;N>0&&!(mU(e,e.j[N])<=E);N--);for(var A=y/e.policy.D-w;N=A);N++);e.nextVideo=e.rP.J[e.j[N].id];e.U!==N&&e.logger.info(function(){return"Adapt to: "+N$(e.nextVideo.info)+", bandwidth: "+y.toFixed(0)+", bandwidth to downgrade: "+E.toFixed(0)+", bandwidth to upgrade: "+A.toFixed(0)+", constraint: "+ax(e.J)}); e.U=N}}; YME=function(e){var N=e.policy.Ng,y=c0(e.qg),w=y/N-mU(e,e.N.info);N=g.Rw(e.j,function(E){return mU(this,E)A?E=0:w[T]>e.buffered[T]&&(T===A-1?E=2:T===A-2&&w[T+1]>e.buffered[T+1]&&(E=3))}e.J.add(N<<3|(y&&4)|E);N=Math.ceil(e.track.wS()*1E3);e.J.add(N-e.L);e.L=N;if(E===1)for(e.J.add(A),T=N=0;T=2&&e.J.add(w[A- 1]-e.buffered[A-1]);y&&e.J.add(y);e.buffered=w}; OY=function(e,N,y){var w=this;this.policy=e;this.J=N;this.l9=y;this.j=this.N=0;this.lP=null;this.Ng=new Set;this.D=[];this.indexRange=this.initRange=null;this.U=new O3;this.Kh=this.qg=!1;this.lk={nb9:function(){return w.K}, K4W:function(){return w.chunkSize}, DT1:function(){return w.G}, IS1:function(){return w.Z}}; (N=gaJ(this))?(this.chunkSize=N.csz,this.K=Math.floor(N.clen/N.csz),this.G=N.ck,this.Z=N.civ):(this.chunkSize=e.cC,this.K=0,this.G=g.PX(16),this.Z=g.PX(16));this.L=new Uint8Array(this.chunkSize);this.G&&this.Z&&(this.crypto=new mc_(this.G,this.Z))}; gaJ=function(e){if(e.policy.Rx&&e.policy.Rv)for(var N=g.c(e.policy.Rx),y=N.next(),w={};!y.done;w={oK:void 0,sN:void 0},y=N.next())if(y=g.JE(y.value),w.oK=+y.clen,w.sN=+y.csz,w.oK>0&&w.sN>0&&e.policy.j===y.docid&&e.J.info.id===y.fmtid&&e.J.info.lastModified===+y.lmt)return e={},e.clen=w.oK,e.csz=w.sN,e.ck=y.ck,e.civ=y.civ,e}; RO=function(e){return!!e.lP&&e.lP.eY()}; tl1=function(e,N){if(!RO(e)&&!e.Ss()){if(!(e.qg||(e.qg=!0,e.K>0))){var y=Gg(e);y=PH(e.policy.j,e.J.info,UY(e),y,e.policy.VB);LP(e,y)}if(N.info.type===1){if(e.lP){sY(e,Error("Woffle: Expect INIT slices to always start us off"));return}e.initRange=cx(0,N.J.getLength())}else if(N.info.type===2)e.lP&&e.lP.type===1||sY(e,Error("Woffle: Index before init")),e.indexRange=cx(e.initRange.end+1,N.J.getLength());else if(N.info.type===3){if(!e.lP){sY(e,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(e.lP.type===3&&!d4(e.lP,N.info)&&(e.D=[],N.info.Ch!==Ii(e.lP)||N.info.N!==0))return;if(N.info.j){y=g.c(e.D);for(var w=y.next();!w.done;w=y.next())VlM(e,w.value);e.D=[]}else{e.D.push(N);e.lP=N.info;return}}else{sY(e,Error("Woffle: Unexpected slice type"));return}e.lP=N.info;VlM(e,N);f$_(e)}}; VlM=function(e,N){var y=0,w=N.J.YX();if(e.j=w.length)return;if(y<0)throw Error("Missing data");e.j=e.K;e.N=0}for(E={};y0){var T=w.getUint32(y+28);A+=T*16+4}var p=w.getUint32(y+A-4);try{var C=jiM(N.subarray(y+A,y+A+p));if(C!==null){var r=C;break a}}catch(Y){}}y+=E}r=null;break a}catch(Y){r=null;break a}r=void 0}if(r!=null)for(N=ra(qg(r,7)),N==null||e.lm||(e.cryptoPeriodIndex=N),N=ra(qg(r,10)),N!=null&&N>0&&!e.lm&&(e.J=N),r=WW(r, 2,SSH,void 0===hjM?2:4),r=g.c(r),N=r.next();!N.done;N=r.next())e.K.push(g.oN(IN(N.value),4))}; QiJ=function(e){return isNaN(e.cryptoPeriodIndex)?g.oN(e.initData):""+e.cryptoPeriodIndex}; NN=function(e,N,y){var w=y===void 0?{}:y;y=w.videoDuration===void 0?0:w.videoDuration;var E=w.R3===void 0?void 0:w.R3;w=w.RA===void 0?!1:w.RA;this.videoId=e;this.status=N;this.videoDuration=y;this.R3=E;this.RA=w}; mZs=function(e,N,y,w,E){this.videoId=e;this.GF=N;this.N=y;this.bytesDownloaded=w;this.J=E}; yU=function(e){this.J=e;this.offset=0}; wA=function(e){if(e.offset>=e.J.getLength())throw Error();return e.J.getUint8(e.offset++)}; H1P=function(e,N){N=N===void 0?!1:N;var y=wA(e);if(y===1){N=-1;for(y=0;y<7;y++){var w=wA(e);N===-1&&w!==255&&(N=0);N>-1&&(N=N*256+w)}return N}w=128;for(var E=0;E<6&&w>y;E++)y=y*256+wA(e),w*=128;return N?y:y-w}; KvE=function(e){try{var N=H1P(e,!0),y=H1P(e,!1);return{id:N,size:y}}catch(w){return{id:-1,size:-1}}}; Wv_=function(e){for(var N=new yU(e),y=-1,w=0,E=0;!w||!E;){var A=KvE(N),T=A.id;A=A.size;if(T<0)return;if(T===176){if(A!==2)return;w=N.mN()}else if(T===186){if(A!==2)return;E=N.mN()}T===374648427?y=N.mN()+A:T!==408125543&&T!==174&&T!==224&&N.skip(A)}N=B8(e,0,y);y=new DataView(N.buffer);y.setUint16(w,3840);y.setUint16(E,2160);w=new oR([N]);bI(w,e);return w}; O1n=function(e,N,y){var w=this;this.tW=e;this.policy=N;this.Z=y;this.logger=new g.RE("dash");this.N=[];this.J=null;this.qg=-1;this.D=0;this.i9=NaN;this.Ng=0;this.K=NaN;this.U=this.aq=0;this.Wk=-1;this.Rq=this.L=this.j=this.l9=null;this.Ut=this.Bk=NaN;this.G=this.Kh=this.Et=this.VB=null;this.Dl=!1;this.Zl=this.timestampOffset=0;this.lk={BW:function(){return w.N}}; if(this.policy.j){var E=this.Z,A=this.policy.j;this.policy.VB&&e.Fh("atv",{ap:this.policy.VB});this.G=new OY(this.policy,E,function(T,p,C){Ee(e,new NN(w.policy.j,2,{R3:new mZs(A,T,E.info,p,C)}))}); this.G.U.promise.then(function(T){w.G=null;T===1?Ee(e,new NN(w.policy.j,T)):w.tW.Fh("offlineerr",{status:T.toString()})},function(T){var p=(T.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); T instanceof aO&&!T.J?(w.logger.info(function(){return"Assertion failed: "+p}),w.tW.Fh("offlinenwerr",{em:p}),AW(w),Ee(e,new NN(w.policy.j,4))):(w.logger.info(function(){return"Failed to write to disk: "+p}),w.tW.Fh("dldbwerr",{em:p}),AW(w),Ee(e,new NN(w.policy.j,4,{RA:!0})))})}}; R_5=function(e){return e.N.length?e.N[0]:null}; G4F=function(e,N){return e.N.some(function(y){return y.info.Ch===N})}; enn=function(e,N,y,w){w=w===void 0?0:w;if(e.L){var E=e.L.N+e.L.K;if(y.info.N>0)if(y.info.Ch===e.L.Ch&&y.info.N=0&&e.L.Ch>=0&&!d4(e.L,y.info))throw new g.Gh("improper_continuation",e.L.O2(),y.info.O2());x5_(e.L,y.info)||Tb(e,"d")}else if(y.info.N>0)throw new g.Gh("continuation_of_null",y.info.O2());e.L=y.info;e.Z=y.info.J;if(y.info.N===0){if(e.J)if(!e.tW.isOffline()||e.policy.il)e.tW.Fh("slice_not_fully_processed",{buffered:e.J.info.O2(), push:y.info.O2()});else throw new g.Gh("slice_not_fully_processed",e.J.info.O2(),y.info.O2());JW(e);e.aq=w}else{if(e.aq&&w&&e.aq!==w)throw e=new g.Gh("lmt_mismatch",y.info.Ch,e.aq,w),e.level="WARNING",e;!y.info.J.I8()&&e.j&&(w=y.info,E=e.j.d4,w.L="updateWithEmsg",w.Ch=E)}if(e.J){w=g.Hx(e.J,y);if(!w)throw new g.Gh("failed_to_merge",e.J.info.O2(),y.info.O2());e.J=w}else e.J=y;a:{y=g.R2(e.J.info.J.info);if(e.J.info.type!==3){if(!e.J.info.j)break a;e.J.info.type===6?UZP(e,N,e.J):Lv5(e,e.J);e.J=null}for(;e.J;){w= e.J.J.getLength();if(e.qg<=0&&e.D===0){var A=e.J.J,T=-1;E=-1;if(y){for(var p=0;p+80))break;if(M!==408125543)if(M===524531317)p=!0,Y>=0&&(E=A.mN()+Y,C=!0);else{if(p&&(M===160||M===163)&&(T<0&&(T=r),C))break;M===163&&(T=Math.max(0,T),E=A.mN()+Y);if(M===160){T<0&&(E=T=A.mN()+Y);break}A.skip(Y)}}T<0&&(E=-1)}if(T< 0)break;e.qg=T;e.D=E-T}if(e.qg>w)break;e.qg?(w=si_(e,e.qg),w.L&&a$3(e,w),UZP(e,N,w),pr(e,w),e.qg=0):e.D&&(w=si_(e,e.D<0?Infinity:e.D),e.D-=w.J.getLength(),pr(e,w))}}e.J&&e.J.info.j&&(pr(e,e.J),e.J=null)}; Lv5=function(e,N){!N.info.J.I8()&&N.info.N===0&&(g.R2(N.info.J.info)||N.info.J.info.lm())&&lo0(N);if(N.info.type===1)try{a$3(e,N),Nt5(e,N)}catch(E){g.t0(E);var y=vx(N.info);y.hms="1";e.tW.handleError("fmt.unparseable",y||{},1)}y=N.info.J;y.Gm(N);e.G&&tl1(e.G,N);if(y.Yz()&&e.policy.J)a:{e=e.tW.rP;N=N.info.clipId;y=g.Ld(y.info,e.Cx);if(N){var w=gHM(e,y);if(e.Zl[w])break a;e.Zl[w]=N}e.Rq.push(y)}}; zBM=function(e,N,y){if(e.N.length!==0&&(y||e.N.some(function(A){return A.info.o2=rA(T)+p):N=e.getDuration()>=T.getDuration(),N=!N;N&&E_M(y)&&(N=e.l9,Cr?(p=Y3P(y),T=1/p,p=rA(e,p),N=rA(N)+T-p):N=N.getDuration()- e.getDuration(),N=1+N/y.info.duration,Fu5(y.iB(),N))}else{T=!1;e.j||(lo0(y),y.N&&(e.j=y.N,T=!0,A=y.info,w=y.N.d4,A.L="updateWithEmsg",A.Ch=w,A=y.N,A.eY&&(w=e.Z.index,w.N=!A.eY,w.K="emsg"),A=y.info.J.info,w=y.iB(),g.R2(A)?mh(w,1701671783):A.lm()&&L_([408125543],307544935,w)));a:if((A=OM(y,e.policy.pX))&&Mi3(y))p=AmM(e,y),e.U+=p,A-=p,e.Ng+=A,e.K=e.policy.yh?e.K+A:NaN;else{if(e.policy.wh){if(w=C=e.tW.Kz(g.K1(y),1),e.K>=0&&y.info.type!==6){if(e.policy.yh&&isNaN(e.Bk)){g.uA(new g.Gh("Missing duration while processing previous chunk", y.info.O2()));e.tW.isOffline()&&!e.policy.il||Ttn(e,y,w);Tb(e,"m");break a}var r=C-e.K,Y=r-e.U,M=y.info.Ch,l=e.Rq?e.Rq.Ch:-1,F=e.Ut,S=e.Bk,k=e.policy.Wy&&r>e.policy.Wy,X=Math.abs(Y)>10,d=Math.abs(e.K-w)<1E-7;if(Math.abs(Y)>1E-4){e.Zl+=1;var v=(E=e.j)==null?void 0:Vo(E);E={audio:""+ +e.qG(),sq:M.toFixed(),sliceStart:C,lastSq:l.toFixed(),lastSliceStart:F,lastSliceDuration:S,totalDrift:(r*1E3).toFixed(),segDrift:(Y*1E3).toFixed(),skipRewrite:""+ +(k||X)};if(v==null?0:v.length)E.adCpn=v[0];e.tW.handleError("qoe.avsync", E);e.Wk=M}k||X||d||(w=e.K);E=AmM(e,y,C);A-=E;e.U=r+E;e.policy.K&&(Y&&!d||E)&&(r=(p=e.j)==null?void 0:Vo(p),e.tW.Fh("discontinuityRewrite",{adCpn:(r==null?0:r.length)?r.join("."):"",itag:y.info.J.info.itag,sq:y.info.Ch,originalStartTime:C,rewrittenStartTime:w,startTimeAdjustment:w-C,segDrift:(Y*1E3).toFixed(),originalDuration:A+E,rewrittenDuration:A,durationAdjustment:E}))}}else w=isNaN(e.K)?y.info.startTime:e.K;Ttn(e,y,w)&&(e.Ng+=A,e.K=w+A,e.policy.Xm&&e.Zl>=e.policy.Xm&&(e.Zl=0,e.tW.P_({resetForRewrites:"count"})))}e.Rq= y.info;e.Bk=Wx(y);y.K>=0&&(e.Ut=y.K);if(T&&e.j){T=JmE(e,!0);z4(y.info,T);e.J&&z4(e.J.info,T);N=g.c(N);for(p=N.next();!p.done;p=N.next())p=p.value,E=void 0,e.policy.Z&&p.Ch!==((E=e.j)==null?void 0:E.d4)||z4(p,T);(y.info.j||e.J&&e.J.info.j)&&y.info.type!==6||(e.Kh=T,e.policy.Ut?(N=pU0(e.j),e.tW.Q8(e.Z,T,N)):(N=e.tW,N.rP.isManifestless&&C21(N,T,null,!!e.Z.info.video)),e.policy.NG||rm5(e))}}Nt5(e,y);e.timestampOffset&&rXP(y,e.timestampOffset)}; pr=function(e,N){if(N.info.j){e.VB=N.info;if(e.j){var y=e.j,w=JmE(e,!1);y=pU0(y);e.tW.Q8(e.Z,w,y);e.Kh||e.policy.NG||rm5(e);e.Kh=null}JW(e)}e.G&&tl1(e.G,N);if(w=e.SL())if(w=g.Hx(w,N,e.policy.Mk)){e.N.pop();e.N.push(w);return}e.N.push(N)}; pU0=function(e){if(e.Y$()){var N=e.data["Stitched-Video-Id"]?e.data["Stitched-Video-Id"].split(",").slice(0,-1):[],y=Vo(e),w=[];if(e.data["Stitched-Video-Duration-Us"])for(var E=g.c(e.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),A=E.next();!A.done;A=E.next())w.push((Number(A.value)||0)/1E6);E=[];if(e.data["Stitched-Video-Start-Frame-Index"]){A=g.c(e.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var T=A.next();!T.done;T=A.next())E.push(Number(T.value)||0)}E=[]; if(e.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(A=g.c(e.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),T=A.next();!T.done;T=A.next())E.push((Number(T.value)||0)/1E6);e=new xZ0(N,y,w,E,g.$5_(e),g.Yg0(e))}else e=null;return e}; JW=function(e){e.J=null;e.qg=-1;e.D=0;e.j=null;e.i9=NaN;e.Ng=0;e.Kh=null}; Tb=function(e,N){N={rst4disc:N,cd:e.U.toFixed(3),sq:e.Rq?e.Rq.Ch:-1};e.K=NaN;e.U=0;e.Wk=-1;e.Rq=null;e.Ut=NaN;e.Bk=NaN;e.Et=null;e.tW.Fh("mdstm",N)}; Nt5=function(e,N){if(e.Z.info.BG){if(N.info.J.info.lm()){var y=new K_(N.iB());if(Of(y,[408125543,374648427,174,28032,25152,20533,18402])){var w=Uf(y,!0);y=w!==16?null:NZ(y,w)}else y=null;w="webm"}else N.info.G=qM5(N.iB()),y=Z10(N.info.G),w="cenc";y&&y.length&&(y=new eL(y,w),e.policy.d$&&g.R2(N.info.J.info)&&(w=kS0(N.iB()))&&(y.N=w),y.lm=N.info.J.info.lm(),N.N&&N.N.cryptoPeriodIndex&&(y.cryptoPeriodIndex=N.N.cryptoPeriodIndex),N.N&&N.N.N&&(y.J=N.N.N),e.tW.VQ(y))}}; rm5=function(e){var N=e.j,y=C$9(N);y&&(y.startSecs+=e.i9,e.tW.Ya(e.Z,y,N.d4,N.Y$()))}; JmE=function(e,N){var y,w=e.j;if(y=C$9(w))y.startSecs+=e.i9;var E=e.i9;e=N?w.j1:e.Ng;var A=w.Y$()?2:1;return new hi(w.d4,E,e,w.ingestionTime,"sq/"+w.d4,void 0,void 0,N,y,A)}; Ttn=function(e,N,y){if(!CUJ(N,y))return N=vx(N.info),N.smst="1",e.tW.handleError("fmt.unparseable",N||{},1),!1;isNaN(e.i9)&&(e.i9=y);return!0}; AmM=function(e,N,y){var w=0;if(N.info.J.info.lm()&&!Mi3(N))return 0;if(e.l9&&!e.qG()){var E=0;y&&g.R2(N.info.J.info)?E=y-e.K:N.info.J.info.lm()&&(E=e.U);var A=N.info.Ch;y=OM(N,e.policy.pX);var T=e.l9;var p=T.Wk;T=T.U;var C=Math.abs(T-E)>.02;if((A===p||A>p&&A>e.Wk)&&C){w=Math.max(.95,Math.min(1.05,(y-(T-E))/y));if(g.R2(N.info.J.info))Fu5(N.iB(),w);else if(N.info.J.info.lm()&&(A=E-T,!g.R2(N.info.J.info)&&(N.info.J.info.lm(),w=new K_(N.iB()),p=N.L?w:new K_(new DataView(N.info.J.J.buffer)),OM(N,!0)))){var r= A*1E3,Y=EM(p);p=w.pos;w.pos=0;if(w.J.getUint8(w.pos)===160||Ad(w))if(GD(w,160))if(Uf(w,!0),GD(w,155)){if(A=w.pos,C=Uf(w,!0),w.pos=A,r=r*1E9/Y,Y=sf(w),r=Y+Math.max(-Y*.7,Math.min(Y,r)),r=Math.sign(r)*Math.floor(Math.abs(r)),!(Math.ceil(Math.log(r)/Math.log(2)/8)>C)){w.pos=A+1;for(A=C-1;A>=0;A--)w.J.setUint8(w.pos+A,r&255),r>>>=8;w.pos=p}}else w.pos=p;else w.pos=p;else w.pos=p}w=OM(N,e.policy.pX);w=y-w}w&&N.info.J.info.lm()&&e.tW.Fh("webmDurationAdjustment",{durationAdjustment:w,videoDrift:E+w,audioDrift:T})}return w}; E_M=function(e){return e.info.J.I8()&&e.info.Ch===e.info.J.index.vY()}; rA=function(e,N){N=(N=N===void 0?0:N)?Math.round(e.timestampOffset*N)/N:e.timestampOffset;e.Z.j&&N&&(N+=e.Z.j.J);return N+e.getDuration()}; $X1=function(e,N){N<0||(e.N.forEach(function(y){rXP(y,N)}),e.timestampOffset=N)}; IE=function(e,N,y,w,E){H0.call(this,y,E);var A=this;this.policy=e;this.formatId=N;this.uP=w;this.lastError=null;this.FI=function(){A.Ss()||(A.uP.XZ.has(A.formatId)?(A.isComplete()||A.J.start(),hI(A.uP,A.formatId)&&A.Wg(2),A.uP.u6(A.formatId)&&(Z_P(A.uP,A.formatId)?A.IJ(4):(A.lastError="net.closed",A.IJ(5)))):(A.lastError="player.exception",A.IJ(5)))}; this.J=new g.e6(function(){A.isComplete()||(A.lastError="net.timeout",A.IJ(5))},this.policy.zk); this.J.start();td0(this.uP,this.formatId,this.FI);g.Jo(this.FI)}; $e=function(e,N,y,w){g.x.call(this);var E=this;this.tW=e;this.policy=N;this.J=y;this.timing=w;this.logger=new g.RE("dash");this.K=[];this.qg=[];this.N=this.TW=null;this.aq=!1;this.Zl=this.Et=0;this.Z=-1;this.Kh=!1;this.i9=-1;this.l9=this.Rq=null;this.Ng=NaN;this.lk={tG:function(){return E.j}, Eb1:function(){return E.K}, Jps:function(){return E.U}}; this.j=new O1n(e,N,y);this.policy.J&&(this.U=new B0(this.j,this.tW.getManifest(),this.policy,function(A){E.policy.d1&&E.Fh("buftl",A)})); this.policy.Dl&&(this.D=new KP(this));this.JM=y.info.JM;this.G=this.policy.qg?!1:y.by();this.isManifestless=y.by();this.L=this.G;g.Q(this,this.Rq)}; Ye=function(e,N,y){y=y===void 0?!1:y;N&&Cr&&$X1(e.j,N.dc());if(!y){var w;(w=e.U)==null||PmM(w)}e.TW=N;(N=e.U)!=null&&(N.TW=e.TW)}; MN=function(e){var N=e.TW&&e.TW.mM();if(e.policy.YN){if((e=e.U)==null)e=void 0;else{var y;e=(y=e.K)==null?void 0:y.info}return e||null}return N}; Yh3=function(e){for(var N={},y=0;y4&&e.qg.shift()}; MIE=function(e,N){if(N.bZ()){var y=N.O$();y=g.c(y);for(var w=y.next();!w.done;w=y.next())w=w.value,e.policy.K&&N instanceof IE&&e.Fh("omblss",{s:w.info.O2()}),Fz(e,N.info.QB,w,N.zm())}}; Fz=function(e,N,y,w){w=w===void 0?0:w;isNaN(e.Ng)||(e.Fh("aswm",{sq:N[0].Ch,id:N[0].J.info.itag,xtag:N[0].J.info.J,ep:Date.now()-e.Ng}),e.Ng=NaN);switch(y.info.type){case 1:case 2:lT0(e,y);break;case 4:var E=y.info.J,A=E.Hb(y),T;((T=e.N)==null?0:T.type===4)&&Wu5(y.info,e.N)&&(e.N=E.y5(e.N).pop());y=g.c(A);for(E=y.next();!E.done;E=y.next())Fz(e,N,E.value,w);break;case 3:y.info.J.info.video?(E=e.timing,E.l9||(E.l9=(0,g.iC)(),Bd("fvb_r",E.l9,E.J))):(E=e.timing,E.Z||(E.Z=(0,g.iC)(),Bd("fab_r",E.Z,E.J))); enn(e.j,N,y,w);e.policy.J&&FsH(e);break;case 6:enn(e.j,N,y,w),e.N=y.info}}; lT0=function(e,N){if(N.info.type===1)if(N.info.J.info.video){var y=e.timing;y.Rq||(y.Rq=(0,g.iC)(),Bd("vis_r",y.Rq,y.J))}else y=e.timing,y.U||(y.U=(0,g.iC)(),Bd("ais_r",y.U,y.J));Lv5(e.j,N);e=e.tW;e.videoTrack.J.Yz()&&e.audioTrack.J.Yz()&&e.policy.J&&!e.rP.Cx&&(N=e.audioTrack.getDuration(),y=e.videoTrack.getDuration(),Math.abs(N-y)>1&&e.Fh("trBug",{af:""+g.Ld(e.audioTrack.J.info,!1),vf:""+g.Ld(e.videoTrack.J.info,!1),a:""+N,v:""+y}))}; u3=function(e){return R_5(e.j)}; FsH=function(e){e.K.length?e.N=g.Kq(g.Kq(e.K).info.QB):e.j.N.length?e.N=e.j.SL().info:e.N=MN(e)}; SL=function(e,N){var y={gT:[],kK:[]},w;if((e=e.U)==null)e=void 0;else{X13(e,e.gT,"og");c$M(e,N);X13(e,e.gT,"trim");var E=BQ9(e);N=E.gT;E=E.Ki;for(var A=[],T=0;T0){var l=E3(M,C);l>=0&&(Y=(M.end(l)-C+.1)*1E3)}A.push({formatId:g.Ld(p.info.J.info,e.rP.Cx), KO:p.info.KO,sequenceNumber:p.info.Ch+e.j,mZ:r,wC:p.info.K,Nm:Y})}e={gT:N,kK:A}}return(w=e)!=null?w:y}; i3=function(e,N,y){y=y===void 0?!1:y;if(e.TW){var w=e.TW.Ju(),E=T6(w,N),A=NaN,T=MN(e);T&&(A=T6(w,T.J.index.getStartTime(T.Ch)));if(E===A&&e.N&&e.N.K&&ShM(ol(e),0))return N}e=o_H(e,N,y);return e>=0?e:NaN}; g3=function(e,N,y){e.J.Yz();var w=o_H(e,N);if(w>=0)return w;var E;(E=e.U)==null||km0(E,N,y);y=Math;w=y.min;E=e.j;if(E.G)if(E=E.G,E.lP&&E.lP.type===3)E=E.lP.startTime;else if(E.K>0){var A=E.J.index;A=g.T7(A.offsets.subarray(0,A.count),E.K*E.chunkSize);E=E.J.index.getStartTime(A>=0?A:Math.max(0,-A-2))}else E=0;else E=Infinity;N=w.call(y,N,E);if(e.policy.N){var T,p;y=(T=e.tW.bP())==null?void 0:(p=P0(T,N))==null?void 0:p.clipId;e.N=e.J.Od(N,void 0,y).QB[0]}else e.N=e.policy.qg?null:e.J.Od(N).QB[0];bz(e)&& (e.TW&&e.TW.abort(),e.policy.Vp&&(T=e.U)!=null&&(T.K=void 0));e.Zl=0;return e.N?e.N.startTime:N}; IMJ=function(e){e.G=!0;e.L=!0;e.Z=-1;g3(e,Infinity)}; hW=function(e){for(var N=0,y=g.c(e.K),w=y.next();!w.done;w=y.next())N+=R03(w.value.info);return N+=ym3(e.j)}; ke=function(e,N){N=N===void 0?!1:N;var y=e.tW.getCurrentTime(),w=e.j.SL(),E=(w==null?void 0:w.info.XT)||0;e.policy.ll&&(w==null?0:w.info.J.by())&&!w.info.j&&(E=w.info.o2);if(e.policy.N&&w&&w.info.clipId){var A,T=(((A=e.tW.bP())==null?void 0:XC(A,w.info.clipId))||0)/1E3;E+=T}if(!e.TW)return e.policy.J&&N&&!isNaN(y)&&w?E-y:0;if((A=MN(e))&&cl(e,A))return A.XT;T=e.TW.Ju(!0);if(N&&w)return A=0,e.policy.J&&(A=ph(T,E+.02)),A+E-y;E=ph(T,y);e.policy.NJ&&A&&(N=E3(T,y),T=E3(T,A.o2-.02),N===T&&(y=A.XT-y,e.policy.K&& y>E+.02&&e.Fh("abh",{bh:E,bhtls:y}),E=Math.max(E,y)));return E}; bC3=function(e){var N=MN(e);return N?N.XT-e.tW.getCurrentTime():0}; hnM=function(e,N){if(e.K.length){if(e.K[0].info.QB[0].startTime<=N)return;zc(e)}for(var y=e.j,w=y.N.length-1;w>=0;w--)y.N[w].info.startTime>N&&y.N.pop();FsH(e);e.N&&N=0;T--){var p=E.N[T];p.info.Ch>=N&&(E.N.pop(),E.K-=OM(p,E.policy.pX),A=p.info)}A&&(E.L=E.N.length>0?E.N[E.N.length-1].info:E.Et,E.N.length!==0||E.L||Tb(E,"r"));E.tW.Fh("mdstm",{rollbk:1,itag:A?A.J.info.itag:"",popped:A?A.Ch:-1,sq:N,lastslc:E.L?E.L.Ch:-1,lastfraget:E.K.toFixed(3)});if(e.policy.J)return e.N=null,!0;w>y?g3(e,w):e.N=e.J.Tn(N-1,!1).QB[0]}catch(C){return N=I2(C),N.details.reason="rollbkerr", e.tW.handleError(N.errorCode,N.details,N.severity),!1}return!0}; Pl=function(e,N){var y;for(y=0;y0?y||N.Ch>=e.i9:y}; Il=function(e){var N;return bz(e)||cl(e,(N=e.j.SL())==null?void 0:N.info)}; ol=function(e){var N=[],y=MN(e);y&&N.push(y);N=g.aw(N,e.j.Lz());y=g.c(e.K);for(var w=y.next();!w.done;w=y.next()){w=w.value;for(var E=g.c(w.info.QB),A=E.next(),T={};!A.done;T={UJ:void 0},A=E.next())T.UJ=A.value,w.WM&&(N=g.CG(N,function(p){return function(C){return!Wu5(C,p.UJ)}}(T))),(Px(T.UJ)||T.UJ.type===4)&&N.push(T.UJ)}e.N&&!qg9(e.N,g.Kq(N),e.N.J.I8())&&N.push(e.N); return N}; ShM=function(e,N){if(!e.length)return!1;for(N+=1;N=N){N=A;break a}}N=E}return N<0?NaN:ShM(e,y?N:0)?e[N].startTime:NaN}; vl=function(e){return!(!e.N||e.N.J===e.J)}; cms=function(e){return vl(e)&&e.J.Yz()&&e.N.J.info.JMN&&w.XT1080&&!e.wE&&(e.Zl=36700160,e.Kx=5242880,e.Et=Math.max(4194304,e.Et),e.wE=!0);N.video.J>2160&&!e.qE&&(e.Zl=104857600,e.JM=13107200,e.qE=!0);g.Y2(e.Ot.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?N.isEncrypted()&&g.O8()&&g.Kp("samsung")&&(g.Kp("kant")||g.Kp("muse"))&&(e.JM=g.Y2(e.Ot.experiments,"html5_samsung_kant_limit_max_bitrate")):N.isEncrypted()&&g.O8()&&g.Kp("kant")&&(e.JM=1310720);e.gf!==0&&N.isEncrypted()&&(e.JM=e.gf);e.Ip!==0&&N.isEncrypted()&& y&&(e.JM=e.Ip);N.JM&&(e.qZ=Math.max(e.ib,Math.min(e.Et,5*N.JM)))}; fr=function(e){return e.J&&e.MX&&e.playbackStartPolicy}; tW=function(e){return e.N||e.J&&e.DD}; uz=function(e,N,y,w){e.MX&&(e.playbackStartPolicy=N,e.SP=y,e.hK=w)}; VU=function(e,N,y){y=y===void 0?0:y;return g.Y2(e.Ot.experiments,N)||y}; tIM=function(e){var N=e===void 0?{}:e;e=N.o1;var y=N.Z0;var w=N.eV;var E=N.vY;N=N.IX;this.o1=e;this.Z0=y;this.eV=w;this.vY=E;this.IX=N}; xcs=function(e,N){if(N<0)return!0;var y=e.vY();return N0)return 2;if(N<0)return 1;y=e.vY();return N(0,g.iC)()?0:1}; ZU=function(e,N,y,w,E,A,T,p,C,r,Y,M,l,F){F=F===void 0?null:F;g.x.call(this);var S=this;this.tW=e;this.policy=N;this.videoTrack=y;this.audioTrack=w;this.j=E;this.J=A;this.timing=T;this.L=p;this.schedule=C;this.rP=r;this.K=Y;this.Ng=M;this.dM=l;this.E_=F;this.Kh=!1;this.Tt="";this.F6=null;this.Hf=NaN;this.qg=!1;this.N=null;this.Q2=this.D=NaN;this.Fb=this.Z=0;this.logger=new g.RE("dash");this.lk={xY:function(k,X){return S.xY(k,X)}}; this.policy.Kk>0&&(this.Tt=g.PX(this.policy.Kk));this.policy.fl&&(this.U=new qN(this.tW,this.policy,this.schedule),g.Q(this,this.U))}; jI0=function(e,N,y){var w=N.N?N.N.J.yl:N.J.yl;var E=e.j,A;(A=!e.policy.Vz)||(A=lN(w.J)===lN(w.K));A?w=!1:(E=r4(E,lN(w.K)),A=6E4*Math.pow(E.j,1.6),(0,g.iC)()=E.j?(E.Fh("sdai",{haltrq:A+1,est:E.j}),w=!1):w=E.N!==2;if(!w||!Fs(N.N?N.N.J.yl:N.J.yl,e.policy,e.j,e.tW.kL())||e.tW.isSuspended&&(!ld(e.schedule)||e.tW.cU))return!1;if(e.policy.j&&Xr>=5)return g.NA(e.tW.Pg),!1;if(e.rP.isManifestless){if(N.K.length>0&&N.N&&N.N.Ch===-1||N.K.length>=e.policy.R7||!e.policy.X1&&N.K.length>0&&!e.policy.U.Z0)return!1;if(N.G)return!e.rP.isLive||!isNaN(e.Hf)}if(dX5(N))return e.logger.debug("Pending request with server-selectable format found"), !1;if(!N.N){if(!N.J.Yz())return!1;g3(N,e.tW.getCurrentTime())}if(u3(N)&&(N.SL()!==u3(N)||e.tW.isSuspended))return!1;E=(w=e.policy.WV)&&!N.K.length&&ke(N,!0)=e.policy.vy)return!1;w=N.N;if(!w)return!0;w.type===4&&w.J.Yz()&&(N.N=g.Kq(w.J.y5(w)),w=N.N);if(!w.eY()&&!w.J.L2(w))return!1;A=e.rP.Ta||e.rP.j;if(e.rP.isManifestless&&A){A=N.J.index.vY();var T=y.J.index.vY(); A=Math.min(A,T);if(N.J.index.Ms()>0&&A>0&&w.Ch>=A)return N.i9=A,y.i9=A,!1}if(w.J.info.audio&&w.type===4||w.eY())return!1;A=!N.L&&!y.L;if(E=!E)E=w.XT,E=!!(y.N&&!cl(y,y.N)&&y.N.XTn_0(e,N)?(n_0(e,N),!1):(e=N.TW)&&e.isLocked()?!1:!0}; n_0=function(e,N){var y=e.J;y=y.J?y.J.Re:null;if(e.policy.i9&&y)return y.startSecs+y.Vj+15;N=D2(e.tW,N);e.policy.Y_>0&&(y=((0,g.iC)()-e.tW.Vy)/1E3,N=Math.min(N,e.policy.Y_+e.policy.vp*y));y=e.tW.getCurrentTime()+N;return e.policy.Oz&&(N=QIF(e.tW)+e.policy.Oz,N=0||N.yl.JK("defrag")==="1"||N.yl.JK("otf")==="1"){N=null;break a}E=cx(0,4096)}E=new iH([new Bx(5,w.J,E,"createProbeRequestInfo"+w.L,w.Ch)],N.N);E.q2=y;E.J=N.J;N=E}N&&jL(e,N)}}; jL=function(e,N){e.tW.Dr(N);var y=R03(N),w=e.tW.ND();y={bk:e.schedule,lw:y,bx:Mq5(e.L,y),UT:Xs(N.QB[0]),Vm:F9(N.yl.J),CU:e.policy.K,fd:function(T,p){e.tW.Gt(T,p)}}; if(e.schedule.N.G){var E,A;y.J3=(((E=e.videoTrack.J)==null?void 0:E.info.JM)||0)+(((A=e.audioTrack.J)==null?void 0:A.info.JM)||0)}e.F6&&(y.Ch=N.QB[0].Ch,y.Hf=N.Hf,y.F6=e.F6);w={Ze:GS9(N,e.tW.getCurrentTime()),zt:e.policy.WE&&g4(N)&&N.QB[0].J.info.video?z_M(e.K):void 0,a4:e.policy.i9,poToken:e.tW.rf(),lz:e.tW.HZ(),Tt:e.Tt,Q2:isNaN(e.Q2)?null:e.Q2,E_:e.E_,dM:e.dM,Fb:e.Fb,tC:w};return new v0(e.policy,N,y,e.j,function(T,p){try{a:{var C=T.info.QB[0].J,r=C.info.video?e.videoTrack:e.audioTrack;if(!(T.state>= 2)||T.isComplete()||T.qY()||!(!e.tW.TZ||e.tW.isSuspended||ke(r)>3)){var Y=ZC9(T,e.policy,e.j);Y===1&&(e.qg=!0);mXs(e,T,Y);if(T.isComplete()||T.Ss()&&p<3){if(e.policy.K){var M=T.timing.gL();M.rst=T.state;M.strm=T.xhr.zE();M.cncl=T.xhr&&T.r7.j?1:0;e.tW.Fh("rqs",M)}T.sK&&e.tW.Fh("sbwe3",{},!0)}if(!e.Ss()&&T.state>=2){yds(e.timing,T,C);var l=e.tW;e.Q2&&T.Q7&&l&&(e.Q2=NaN,e.tW.xD(T.Q7),e.tW.WC(),e.tW.Fh("cabrUtcSeek",{mediaTimeSeconds:T.Q7}));T.dj&&e.Q2&&T.dj&&!T.dj.action&&(e.tW.ou(e.Q2),e.Q2=NaN,e.tW.Fh("cabrUtcSeekFallback", {targetUtcTimeSeconds:e.Q2}));T.RS&&e.tW.DI(T.RS);e.policy.CC&&(e.Fb=T.Fb);if(T.state===3){Pl(r,T);g4(T.info)&&nr(e,r,C,!0);if(e.N){var F=T.info.zz();F&&e.N.Xo(T.info.QB[0].Ch,C.info.id,F)}e.tW.Ga()}else if(T.isComplete()&&T.info.QB[0].type===5){if(T.state!==4)T.Q_()&&e.tW.handleError(T.pw(),T.Cz());else{var S=(T.info.QB[0].J.info.video?e.videoTrack:e.audioTrack).K[0]||null;S&&S instanceof v0&&S.qY()&&S.Py(!0)}T.dispose()}else{T.Q_()||HCJ(e,T);var k;((k=T.zR)==null?0:k.itagDenylist)&&e.tW.gF(T.zR.itagDenylist); if(T.state===4)QU(e,T),e.J&&T4J(e.J,T.info,e.N);else if(e.policy.oS&&T.bZ()&&!T.isComplete()&&!QU(e,T)&&!T.Q_())break a;T.Q_()&&(Kss(e,T),isNaN(e.Q2)||(e.tW.ou(e.Q2),e.Q2=NaN));e.policy.FZ&&!T.isComplete()?mL(e.tW):e.tW.Ga();var X=xXP(T,e.policy,e.j);mXs(e,T,X)}}}}}catch(d){p=e.Kh?1:0,e.Kh=!0,T=dp(p),p=I2(d,p),e.tW.handleError(p.errorCode,p.details,p.severity),T||e.tW.w4()}},w)}; HCJ=function(e,N){if(N.kP&&N.state>=2&&N.state!==3){var y=N.xhr.getResponseHeader("X-Response-Itag");if(y){e.logger.debug(function(){return"Applying streamer-selected format "+y}); var w=vaJ(e.K,y),E=N.info.K;E&&(E-=w.f1(),w.K=!0,N.info.QB[0].J.K=!1,gE9(N,w.p_(E)),Hl(e.tW,e.videoTrack,w),ITM(e.videoTrack,w),e.tW.k5(w.info.video.quality),(E=N.zm())&&w.info.lastModified&&w.info.lastModified!==+E&&Pl(e.videoTrack,N))}else N.kP=!1}}; Kss=function(e,N){var y=N.info.QB[0].J,w=N.pw();if(F9(y.yl.J)){var E=g.b7(N.Cq(),3);e.tW.Fh("dldbrerr",{em:E||"none"})}E=N.info.QB[0].Ch;var A=iO(e.J,N.info.QB[0].o2,E);w==="net.badstatus"&&(e.Z+=1);if(N.canRetry()&&Kr(e.tW)){if(!(N.info.yl.N>=e.policy.lV&&e.N&&N.info.isDecorated()&&w==="net.badstatus"&&e.N.Ok(A,E))){E=(y.info.video&&y.yl.N>1||N.Ie===410||N.Ie===500||N.Ie===503)&&!(uO(e.K.L).size>0)&&!F9(y.yl.J);A=N.Cz();var T=y.info.video?e.videoTrack:e.audioTrack;E&&(A.stun="1");e.tW.handleError(w, A);e.Ss()||(E&&(e.logger.debug(function(){return"Stunning format "+y.info.id}),QW(e.K,y)),Pl(T,N),e.tW.Ga())}}else T=1,e.N&&N.info.isDecorated()&&w==="net.badstatus"&&e.N.Ok(A,E)&&(T=0),e.rP.isLive&&N.pw()==="net.badstatus"&&e.Z<=e.policy.Fo*2?(G6J(e.rP),e.rP.Ta||e.rP.isPremiere?tz(e.tW,0,{BY:"badStatusWorkaround"}):e.rP.j?tz(e.tW,e.rP.aq,{BY:"badStatusWorkaround", Kz:!0}):Wl(e.tW)):e.tW.handleError(w,N.Cz(),T)}; QU=function(e,N){if(e.policy.useUmp&&N.Ss())return!1;try{var y=N.info.QB[0].J,w=y.info.video?e.videoTrack:e.audioTrack;if(e.rP.isManifestless&&w){e.Z=0;w.G&&(N.Ss(),N.isComplete()||N.bZ(),w.G=!1);N.W6()&&e.tW.eE.Kj(1,N.W6());var E=N.Ms(),A=N.CR();Fu(e.rP,E,A)}if(N.info.UT()&&!D$(N.info))for(var T=g.c(N.O$()),p=T.next();!p.done;p=T.next())lT0(w,p.value);for(e.tW.getCurrentTime();w.K.length&&w.K[0].state===4;){var C=w.K.shift();MIE(w,C);w.Et=C.yu()}w.K.length&&MIE(w,w.K[0]);var r=!!u3(w);r&&N instanceof IE&&(y.info.qG()?GDs(e.timing):Rv5(e.timing));return r}catch(Y){N=N.Cz();N.origin="hrhs";a:{e=e.tW;y=Y;if(y instanceof Error){N.msg||(N.msg=""+y.message);N.name||(N.name=""+y.name);if(y instanceof g.Gh&&y.args)for(w=g.c(Object.entries(y.args)),E=w.next();!E.done;E=w.next())A=g.c(E.value),E=A.next().value,A=A.next().value,N["arg"+E]=""+A;g.uA(y);if(y.level==="WARNING"){e.JW.P_(N);break a}}e.handleError("fmt.unplayable",N,1)}return!1}}; WsF=function(e){var N=e.videoTrack.J.index;e.F6=new tIM({o1:e.policy.o1,Z0:e.policy.U.Z0,eV:N.Mz(),vY:function(){return N.vY()}, IX:function(){return N.IX()}})}; nr=function(e,N,y,w){if(!(y.Yz()||y.hw()||y.K||!Fs(y.yl,e.policy,e.j)||y.info.Iq==="f"||e.policy.J)){if(w){w=e.L;var E=y.info;w=lMM(w,E.video?w.policy.e0:w.policy.Li,E.JM)}else w=0;w=y.p_(w);e=jL(e,w);D$(w)&&lz(N,e);y.K=!0}}; Oe=function(e,N,y,w,E,A,T,p){g.x.call(this);var C=this;this.tW=e;this.qK=N;this.videoTrack=y;this.audioTrack=w;this.rP=E;this.D=A;this.isAudioOnly=T;this.G=p;this.N=f3;this.qg=!1;this.logger=new g.RE("sabr");this.U=this.Kh=this.Ng=!1;this.videoInfos=this.L=this.D.videoInfos;this.K=this.l9=this.D.J;this.J=new fP(N,A,function(r,Y){C.tW.Fh(r,Y)}); this.qK.Sw||OC5(this);this.isAudioOnly&&Rnn(this,this.rP.J["0"])}; GEJ=function(e,N){var y=[];N=g.c(N);for(var w=N.next();!w.done;w=N.next())y.push(g.Ld(w.value,e.rP.Cx));return y}; Rnn=function(e,N,y){N!==e.j&&(e.j&&(e.qg=!0),e.j=N,e.vr(N,e.videoTrack,y))}; sI5=function(e,N){e.logger.debug("setConstraint: "+ax(N));tW(e.qK)&&(e.Kh=N.reason==="m"||N.reason==="l"?!0:!1);N.reason==="m"?N.isLocked()&&UX5(e,N.J):LsH(e,N)?Rl(e,N.N,N.J):e.videoInfos=e.L;e.N=N}; LsH=function(e,N){return e.qK.Z2&&N.reason==="b"||e.qK.hv?!1:e.qK.XR?!0:N.reason==="l"||N.reason==="b"||N.reason==="o"}; aTJ=function(e,N){return N.isLocked()&&e.J.N||e.N===void 0?!1:N.Bw(e.N)}; e$E=function(e,N){var y,w=(y=e.j)==null?void 0:y.info.video.J;return e.qg?!0:e.j?N!==w?!0:!e.J.N||e.qK.kX&&e.J.J===e.j.info.itag?!1:!0:!1}; UX5=function(e,N){var y=e.J.J;if(y){e.videoInfos=e.L;var w=g.Ok(e.videoInfos,function(E){return E.id===y}); w&&w.video.J===N?e.videoInfos=[w]:(w=e.videoInfos.map(function(E){return E.id}),e.tW.Fh("sabrpf",{pfid:""+y, vfids:""+w.join(".")}),Rl(e,N,N),q4(e.J,""))}else Rl(e,N,N)}; Rl=function(e,N,y){e.videoInfos=e.L;e.videoInfos=g.CG(e.videoInfos,function(w){return w.video.J>=N&&w.video.J<=y})}; OC5=function(e){var N=rd_(e.J,e.G);N&&(e.K=[N])}; Nw0=function(e,N,y){if(e.qK.Sw){if(e.G){var w=g.CG(e.K,function(E){return E.id===e.G}); return Ym(w,y).includes(N)}w=g.CG(e.K,function(E){var A;return!((A=E.Vl)==null||!A.isDefault)}); if(w.length>0)return Ym(w,y).includes(N)}return Ym(e.K,y).includes(N)}; Ym=function(e,N){return e.map(function(y){return Sl(g.Ld(y,N))})}; yR1=function(e){var N;if((N=e.N)==null?0:N.isLocked())return e.videoInfos;var y=uO(e.J);N=g.CG(e.videoInfos,function(w){return w.JM>e.qK.JM?!1:!y.has(w.id)}); CHH(e.J)&&(N=g.CG(N,function(w){return w.video.width<=854&&w.video.height<=480})); return N}; AR5=function(e,N,y,w){var E=e.rP,A=e.JW.getVideoData(),T=g.xK(A),p=e.sJ,C=pP({Ot:A.X(),JW:e.JW,F7:e.F7,qK:e.qK,Vy:e.Vy,pG:e.pG,rE:e.rE,Ka:e.Ka,ue:e.ue,isPrefetch:e.isPrefetch,RW:e.RW,sabrLicenseConstraint:A.sabrLicenseConstraint,XY:e.XY,Td:e.Td,mV:e.mV,nf:e.nf,E1B:!!p}),r=CP(A,e.tC,e.nextRequestPolicy,e.UH,e.PS,e.qXP,e.J5);w&&y&&(w=r.Y6?r.Y6.map(function(k){return k.type}):[],y("ssap",{stmctxt:w.join("_"), unsntctxt:r.Ds?r.Ds.join("_"):""}));w=e.DT;var Y=e.pH;if(Y===void 0&&w===void 0){var M;Y=wg5(E.Cx,(M=e.Zn)==null?void 0:M.video);var l;w=wg5(E.Cx,(l=e.Zn)==null?void 0:l.audio)}if(A.E_)var F=A.E_;A={IS:C,kK:e.kK,DT:w,pH:Y,sJ:p,videoPlaybackUstreamerConfig:F,v4:r};e.Ag&&(A.Ag=e.Ag);if(T&&N){T=new Map;var S=g.c(E.Rq);for(p=S.next();!p.done;p=S.next())p=p.value,(C=E.Zl[gHM(E,p)]||"")?(T.has(C)||T.set(C,[]),T.get(C).push(p)):y&&y("ssap",{nocid4fmt:(p.itag||"")+"_"+(p.lmt||0)+"_"+(p.xtags||"")});E=new Map; S=g.c(e.gT);for(p=S.next();!p.done;p=S.next())p=p.value,C=p.startTimeMs||0,r=void 0,M=(r=N)==null?void 0:P0(r,C),r=M.clipId,M=M.N3,r?(E.has(r)||(l=T.get(r)||[],E.set(r,{clipId:r,gT:[],xL:l})),M!==0&&(p.startTimeMs=C-M),E.get(r).gT.push(p)):y&&(r=void 0,y("ssap",{nocid4range:"1",fmt:((r=p.formatId)==null?void 0:r.itag)||"",st:C.toFixed(3),d:(p.durationMs||0).toFixed(3),timeline:Mo(N)}));A.iW=[];E=g.c(E.entries());for(T=E.next();!T.done;T=E.next())T=g.c(T.value),T.next(),T=T.next().value,A.iW.push(T); if(e.gT.length&&!A.iW.length){y&&y("ssap",{nobfrange:"1",br:Ej5(e.gT),timeline:Mo(N)});return}e.g8&&(A.g8=e.g8);e.Wz&&(A.Wz=e.Wz)}else A.gT=e.gT,A.xL=E.Rq,T&&((S=e.gT)==null?void 0:S.length)>0&&!N&&y&&y("ssap",{bldmistlm:"1"});return A}; wg5=function(e,N){return N?[g.Ld(N.info,e)]:[]}; Ej5=function(e){var N="";e=g.c(e);for(var y=e.next();!y.done;y=e.next()){y=y.value;var w=void 0,E=void 0,A=void 0;N+="fmt."+(((w=y.formatId)==null?void 0:w.itag)||"")+"_"+(((E=y.formatId)==null?void 0:E.lmt)||0)+"_"+(((A=y.formatId)==null?void 0:A.xtags)||"")+";st."+(y.startTimeMs||0).toFixed(3)+";d."+(y.durationMs||0).toFixed(3)+";"}return N}; ls=function(e,N,y){var w=this;this.requestType=e;this.yl=N;this.qU=y;this.N=null;this.lk={xYZ:function(){var E;return(E=w.data)==null?void 0:E.isPrefetch}, PS:function(){var E;return(E=w.data)==null?void 0:E.PS}}}; H_M=function(e,N,y){N=MZ(e.yl,Tw3(e,N,y),N);e.aN()&&N.set("probe","1");return N}; Tw3=function(e,N,y){e.q2===void 0&&(e.q2=e.yl.q2(N,y));return e.q2}; JR1=function(e){var N,y;return((N=e.J)==null?void 0:(y=N.IS)==null?void 0:y.Sb)||0}; pgP=function(e){var N,y;return!!((N=e.J)==null?0:(y=N.IS)==null?0:y.XY)}; Cd0=function(e){var N={},y=[],w=[];if(!e.data)return N;for(var E=0;E0;C--)y.push(p)}y.length!==T?N.error=!0:(A=y.slice(-A),y.length=E,IW1(N,y,A));break;case 1:IW1(N,is,Dj);break;case 0:xm(N, N.J&7);y=qo(N,16);E=qo(N,16);(y^E)!==65535&&(N.error=!0);N.output.set(N.data.subarray(N.N,N.N+y),N.K);N.N+=y;N.K+=y;break;default:N.error=!0}e.K>e.output.length&&(e.output=new Uint8Array(e.K*2),e.K=0,e.N=0,e.j=!1,e.J=0,e.register=0)}e.output.length!==e.K&&(e.output=e.output.subarray(0,e.K));return e.error?new Uint8Array(0):e.output}; IW1=function(e,N,y){N=Zj(N);y=Zj(y);for(var w=e.data,E=e.output,A=e.K,T=e.register,p=e.J,C=e.N;;){if(p<15){if(C>w.length){e.error=!0;break}T|=(w[C+1]<<8)+w[C]<>=7;r<0;)r=N[(T&1)-r],T>>=1;else T>>=r&15;p-=r&15;r>>=4;if(r<256)E[A++]=r;else if(e.register=T,e.J=p,e.N=C,r>256){T=VB[r];T+=qo(e,gE[r]);C=d_5(e,y);p=tJ[C];p+=qo(e,fH[C]);if(vj9&&Ty.length&&(e.error=!0);e.register|=(y[w+1]<<8)+y[w]<=0)return xm(e,y&15),y>>4;for(xm(e,7);y<0;)y=N[qo(e,1)-y];return y>>4}; qo=function(e,N){for(;e.J=e.data.length)return e.error=!0,0;e.register|=e.data[e.N++]<>=N;e.J-=N;return y}; xm=function(e,N){e.J-=N;e.register>>=N}; Zj=function(e){for(var N=[],y=g.c(e),w=y.next();!w.done;w=y.next())w=w.value,N[w]||(N[w]=0),N[w]++;var E=N[0]=0;y=[];var A=0;w=0;for(var T=1;T7&&(A+=N[T]);for(E=1;E>C&1;p=A<<4|T;if(T<=7)for(C=1<<7-T;C--;)w[C<>=7;T--;){w[C]||(w[C]=-N,N+=2);var r=E&1;E>>=1;C=r-w[C]}w[C]=p}}return w}; z$F=function(e){var N,y,w,E,A,T,p;return g.f(function(C){switch(C.J){case 1:if(!("DecompressionStream"in window))return C.return(g.jD(new g.us(e)));N=new DecompressionStream("gzip");y=N.writable.getWriter();y.write(e);y.close();w=N.readable.getReader();E=new oR([]);case 2:return g.D(C,w.read(),5);case 5:A=C.N;T=A.value;if(p=A.done){C.u9(4);break}E.append(T);C.u9(2);break;case 4:return C.return(E.YX())}})}; nH=function(e,N){this.J=e;this.uB=N}; ia_=function(e){return Tm(Tm(wQ(function(){return A$(e.uB,function(N){return e.Ln(e.J,N)})}),function(){return e.r5(e.J)}),function(){return e.ZJ(e.J)})}; D_9=function(e,N){return ia_(new nH(e,N))}; QB=function(e){YX.call(this,"onesie");this.cY=e;this.J={};this.K=!0;this.j=null;this.queue=new I9(this);this.L={};this.Z=UT9(function(N,y){var w=this;return function A(){var T,p,C,r,Y,M,l,F,S,k,X,d,v,V,Z,n,R,O,E9,Jn;return MM_(A,function(eM){switch(eM.J){case 1:g.kJ(eM,2);w.cY.Ii();T=function(H){return function(a){throw{name:H,message:a};}}; p=N.YX();g.c5(eM,4,5);if(!y){eM.u9(7);break}return CE5(eM,Tm(gj1(w.cY,p,w.iv),T("DecryptError")).wait(),8);case 8:C=eM.N;case 7:if(!w.cY.enableCompression){eM.u9(9);break}return CE5(eM,Tm(D_9((M=C)!=null?M:p,w.cY.X().AA),T("DecompressError")).wait(),10);case 10:r=eM.N;case 9:Y=n2((F=(l=r)!=null?l:C)!=null?F:p,G5H);case 5:g.P5(eM,0,2);if(k=(S=w.cY.X())==null?void 0:S.uB)((X=C)==null?void 0:X.buffer)===k.exports.memory.buffer&&k.free(C.byteOffset),((d=r)==null?void 0:d.buffer)===k.exports.memory.buffer&& k.free(r.byteOffset);g.d_(eM,6);break;case 4:throw V=v=g.XH(eM),new P3("onesie.response.parse",{name:(O=V.name)!=null?O:"unknown",message:(E9=V.message)!=null?E9:"unknown",wasm:((Z=w.cY.X())==null?0:Z.uB)?((n=w.cY.X())==null?0:(R=n.uB)==null?0:R.Um)?"1js":"1":"0",enc:w.K,gz:w.cY.enableCompression,webcrypto:!!cM()});case 6:return VVH(Y),Jn=g.IR(Y.body),eM.return(Jn);case 2:g.P5(eM),g.d_(eM,0)}})}()})}; mp=function(e){var N=e.queue;N.J.length&&N.J[0].isEncrypted&&!N.N&&(N.J.length=0);N=g.c(Object.keys(e.J));for(var y=N.next();!y.done;y=N.next()){y=y.value;var w=e.J[y];if(!w.bj){var E=e.queue;E.J.push({videoId:w.videoId,formatId:y,isEncrypted:!1});E.N||zG(E)}}}; tV5=function(e,N){var y=N.getLength(),w=!1;switch(e.j){case 0:e.cY.T("html5_future_onesie_ump_handler_on_player_response")?Tm(A$(e.Z(N,e.K),function(E){fW5(e.cY,E)}),function(E){e.cY.hA(E)}):e.Ii(N,e.K).then(function(E){fW5(e.cY,E)},function(E){e.cY.hA(E)}); break;case 2:e.lB("ormk");N=N.YX();e.queue.decrypt(N);break;default:w=!0}e.cY.gK&&e.cY.Fh("ombup","id.11;pt."+e.j+";len."+y+(w?";ignored.1":""));e.j=null}; VVH=function(e){if(e.e7!==1)throw new P3("onesie.response.badproxystatus",{st:e.e7,webcrypto:!!cM(),textencoder:!!g.xJ.TextEncoder});if(e.cj!==200)throw new P3("onesie.response.badstatus",{st:e.cj});}; unM=function(e){return new Promise(function(N){setTimeout(N,e)})}; qI9=function(e,N){var y=e.X();y=e.NK&&y.T("html5_onesie_preload_use_content_owner");var w=e.K4,E=ms(N.ph.experiments,"debug_bandaid_hostname");if(E)N=XE(N,E);else if((y===void 0?0:y)&&(w==null?0:w.url)&&!N.N){var A=lN(new g.YE(w.url));N=XE(N,A)}else N=(A=N.J.get(0))==null?void 0:A.location.clone();if(N&&e.videoId){A=sh(e.videoId);e=[];if(A)for(A=g.c(A),y=A.next();!y.done;y=A.next())e.push(y.value.toString(16).padStart(2,"0"));N.set("id",e.join(""));return N}}; Za_=function(e,N,y){y=y===void 0?0:y;var w,E;return g.f(function(A){if(A.J==1)return w=[],w.push(N.load()),y>0&&w.push(unM(y)),g.D(A,Promise.race(w),2);E=qI9(e,N);return A.return(E)})}; x_P=function(e,N,y,w){w=w===void 0?!1:w;e.set("cpn",N.clientPlaybackNonce);e.set("opr","1");var E=N.X();e.set("por","1");cM()||e.set("onem","1");N.startSeconds>0&&e.set("osts",""+N.startSeconds);w||(E.T("html5_onesie_disable_partial_segments")&&e.set("oses","1"),N=E.T("html5_gapless_onesie_no_media_bytes")&&Rf(N)&&N.NK,y&&!N?(N=y.audio,e.set("pvi",y.video.join(",")),E.T("html5_onesie_disable_audio_bytes")||e.set("pai",N.join(",")),QY||e.set("osh","1")):(e.set("oad","0"),e.set("ovd","0"),e.set("oaad", "0"),e.set("oavd","0")))}; jK1=function(e,N,y,w,E){E=E===void 0?!1:E;var A="https://youtubei.googleapis.com/youtubei/"+N.xI.innertubeApiVersion+"/player",T=[{name:"Content-Type",value:"application/json"}];w&&T.push({name:"Authorization",value:"Bearer "+w});T.push({name:"User-Agent",value:g.zw()});g.Lb("EOM_VISITOR_DATA")?T.push({name:"X-Goog-EOM-Visitor-Id",value:g.Lb("EOM_VISITOR_DATA")}):(y=y.visitorData||g.Lb("VISITOR_DATA"))&&T.push({name:"X-Goog-Visitor-Id",value:y});(y=g.Lb("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&T.push({name:"X-YouTube-Lava-Device-Context", value:y});(N=ms(N.experiments,"debug_sherlog_username"))&&T.push({name:"X-Youtube-Sherlog-Username",value:N});e=iI(JSON.stringify(e));return{url:A,QU:T,postBody:e,VNk:E,n8:E}}; QKE=function(e,N,y,w,E,A){var T=g.A5(e,RsE,e.n8?void 0:y.uB),p={encryptedClientKey:N.J.encryptedClientKey,Dq:!0,M_:!0,zF:nj1(y,!!e.n8),dw:y.experiments.gP("html5_use_jsonformatter_to_parse_player_response")};if(e.n8)p.Y4q=T;else{e=N.encrypt(T);var C;if(((C=y.uB)==null?void 0:C.exports.memory.buffer)===T.buffer&&e.byteOffset!==T.byteOffset){var r;(r=y.uB)==null||r.free(T.byteOffset)}var Y;e=((Y=y.uB)==null?void 0:Y.F4(e))||e;T=p.IW=e;(0,g.iC)();T=HE0(new m69(N.J.K),T,N.iv);p.y4=T;p.iv=N.iv}N=w.getVideoData(); y=pP({Ot:y,JW:w,F7:N.startSeconds*1E3});E={N0:p,IS:y,onesieUstreamerConfig:E,eL:A,v4:CP(N)};N.reloadPlaybackParams&&(E.reloadPlaybackParams=N.reloadPlaybackParams);return E}; m_n=function(e,N,y){var w,E,A;return g.f(function(T){if(T.J==1)return w=g.A5(N,RsE),g.D(T,SI5(y,w),2);if(T.J!=3)return E=T.N,g.D(T,oj9(y,E),3);A=T.N;return T.return({IW:E,encryptedClientKey:y.J.encryptedClientKey,iv:y.iv,y4:A,Dq:!0,M_:!0,zF:nj1(e,!!N.n8),dw:e.experiments.gP("html5_use_jsonformatter_to_parse_player_response")})})}; HaE=function(e,N,y,w,E,A){var T,p,C,r;return g.f(function(Y){if(Y.J==1)return g.D(Y,m_n(y,e,N),2);T=Y.N;p=w.getVideoData();C=pP({Ot:y,JW:w,F7:p.startSeconds*1E3});r={N0:T,IS:C,onesieUstreamerConfig:E,eL:A,v4:CP(p)};p.reloadPlaybackParams&&(r.reloadPlaybackParams=p.reloadPlaybackParams);return Y.return(r)})}; nj1=function(e,N){e=M_(e.schedule,!0);N=N||!!cM()&&e>1572864;return"DecompressionStream"in window||!N}; KH=function(e,N){g.x.call(this);var y=this;this.JW=e;this.playerRequest=N;this.ph=this.JW.X();this.videoData=this.JW.getVideoData();this.logger=new g.RE("onesie");this.gK=this.ph.B9();this.Fx=this.ph.ub;this.p8=new km(this.Fx.J,this.ph.AA,rRn(this.ph));this.xhr=null;this.state=1;this.P7=new O3;this.h8=!1;this.playerResponse="";this.uI=new mA(this);this.NA=new QB(this);this.nH=this.ph.T("html5_onesie_check_timeout");this.ZY=new g.e6(this.Ba,500,this);this.OJ=new g.e6(this.n1,1E4,this);this.fP=new g.e6(function(){if(!y.isComplete()){var w= HO(y);y.hA(new P3("net.timeout",w))}},g.Y2(this.ph.experiments,"html5_onesie_request_timeout_ms")); this.Wd=new g.e6(this.uz9,2E3,this);this.Jc="";this.oA=this.UC=!1;this.Uk=this.JW.HZ();this.t9="";this.vS=this.T("html5_onesie_wait_for_media_availability");this.enableCompression=this.UI=this.Ke=!1;this.dR=[];this.qF=this.d4=-1;g.Q(this.videoData,this);g.Q(this,this.ZY);g.Q(this,this.OJ);g.Q(this,this.Wd);g.Q(this,this.p8);e=WU();QY&&e&&!this.ph.T("html5_disable_onesie_media_bytes")&&(this.ZM=new Map);this.uH=new Map;this.MV=new Map;this.oa=new Map;this.H6=new Map}; vO=function(e,N){var y;return(y=e.ZM)==null?void 0:y.get(N)}; WTH=function(e,N,y){var w;return g.f(function(E){if(E.J==1)return e.lB("oprd_s"),KT3(e)?g.D(E,baF(e.p8,N,y),3):(w=e.p8.decrypt(N,y),E.u9(2));E.J!=2&&(w=E.N);e.lB("oprd_c");return E.return(w)})}; gj1=function(e,N,y){e.lB("oprd_s");N=FTM(e.p8).encrypt(N,y);A$(N,function(){e.lB("oprd_c")}); return N}; OaM=function(e){return e.T("html5_onesie_host_probing")||e.gK?QY:!1}; fW5=function(e,N){e.lB("oprr");e.playerResponse=N;e.UI||(e.vS=!1);WO(e)}; WO=function(e){if(!e.playerResponse)return!1;if(e.Ke)return!0;var N=e.videoData.T("html5_onesie_audio_only_playback")&&Gr(e.videoData);if(e.ZM&&e.vS){if(!e.ZM.has(e.Jc))return!1;var y=e.ZM.get(e.Jc),w;if(w=y){w=!1;for(var E=g.c(y.XZ.keys()),A=E.next();!A.done;A=E.next())if(A=y.XZ.get(A.value))for(var T=g.c(A.Yf),p=T.next();!p.done;p=T.next())p.value.kS>0&&(A.qG?w=!0:N=!0);w=!(N&&w)}if(w)return!1}e.lB("ofr");e.P7.resolve(e.playerResponse);if(!e.nH){var C;(C=e.fP)==null||C.start();e.OJ.start()}return e.Ke= !0}; GXM=function(e){if(e.ZM&&!e.T("html5_onesie_media_capabilities")){e.lB("ogsf_s");var N=ciM(e.JW.getVideoData(),function(w,E){e.Fh(w,E)}),y=R$P(e.JW); N.video=$a_(y,N.video);e.lB("ogsf_c");if(N.video.length)return N;e.Fh("ombspf","l."+y.N+";u."+y.J+";o."+y.K+";r."+y.reason)}}; KT3=function(e,N){return e.T("html5_onesie_sync_request_encryption")||(N==null?0:N.n8)||g.mT(e.ph)&&e.T("html5_embed_onesie_use_sync_encryption")?!1:!!cM()}; HO=function(e){if(!e.Aa)return{};var N=e.Aa.gL(),y;N.d=(y=e.Aa.Rq)==null?void 0:y.jY();N.shost=e.Na;N.ty="o";return N}; U_E=function(e,N){var y,w;(w=(e=(y=e.ZM)==null?void 0:y.get(N))==null)||(N=e.K?!1:e.K=!0,w=!N);return!w}; OB=function(e,N,y,w,E,A,T,p,C,r,Y){g.x.call(this);var M=this;this.JW=e;this.tW=N;this.policy=y;this.audioTrack=w;this.videoTrack=E;this.rP=A;this.bk=T;this.Wk=p;this.K=C;this.timing=r;this.D=Y;this.J=[];this.Z={};this.Et=this.Bk=!1;this.UH=new Set;this.L=this.Zl=this.Ng=this.ue=0;this.j=null;this.qg={gT:[],kK:[]};this.l9={gT:[],kK:[]};this.G=null;this.aq=[];this.lk={e4t:function(){return M.J}, w7P:function(){return M.Z}, zJZ:function(){M.J.length=0}, R4g:function(){return M.UH}, cph:function(){return M.Ng}, qfP:function(l){M.Ng=l}, ucq:function(l){M.L=l}, b7:function(l){M.G=l}}; this.videoData=this.JW.getVideoData();this.policy.fl&&(this.Rq=new qN(this.tW,this.policy,this.bk),g.Q(this,this.Rq))}; aW_=function(e,N){N=N===void 0?!1:N;if(LTs(e,N)){e.policy.G&&e.tW.Fh("sabrcrq",{create:1});var y=new ls(0,e.rP.U,e);e.policy.Fr>0&&e.L++;N=sKn(e,y,N);e.J.push(N);var w;(w=e.Rq)==null||uus(w,e.rP.U)}}; wHP=function(e,N){var y=R9(e);if(e.policy.Gg){var w=e.qg;var E=e.l9}else w=GG(e,e.audioTrack),E=GG(e,e.videoTrack);var A=[].concat(g.B(w.gT),g.B(E.gT));eLH(e)&&A.push.apply(A,g.B(e.aq));var T=[].concat(g.B(w.kK),g.B(E.kK)),p=e.tW.ND(),C,r,Y=e.JW,M=e.rP,l=e.N,F=e.UH,S=e.policy,k=e.tW.Vy,X=QIF(e.tW)*1E3,d=(C=e.i9)==null?void 0:C.rE;C=(r=e.i9)==null?void 0:r.Ka;var v;r=Number((v=e.K.j)==null?void 0:v.info.itag)||0;var V;v=Number((V=e.K.Z)==null?void 0:V.info.itag)||0;N={JW:Y,rP:M,gT:A,kK:T,F7:y,nextRequestPolicy:l, UH:F,qK:S,Vy:k,pG:X,rE:d,Ka:C,ue:e.ue,isPrefetch:N||e.tW.isSuspended,g8:r,Wz:v,tC:p,J5:e.JW.VF()};y=e.tW.rf();A=sh(y);y&&(N.PS=A);if(y=e.JW.F2())N.XY=y*1E3;var Z;y=e.K;A=y.Ng;if((y.qK.N&&y.qK.D7||((Z=y.qK)==null?0:Z.J&&Z.DD))&&!A)for(Z=g.c(y.K),T=Z.next();!T.done;T=Z.next())if(T.value.Vl){A=!0;break}Z=tW(y.qK)&&!A?[]:GEJ(y,y.K);N.DT=Z;Z=e.K;tW(Z.qK)&&!Z.Kh?Z=[]:(y=yR1(Z),y.length===0&&(y=Z.L),Z=GEJ(Z,y));N.pH=Z;N.sJ=eLH(e)?[e.G]:void 0;e.policy.TH&&(N.mV=N85(e.tW,e.audioTrack),N.nf=N85(e.tW,e.videoTrack)); if(e.policy.L){w=y3_(e,w.gT,E.gT);var n;if(E=(n=e.j)==null?void 0:n.cM(w))N.Ag=E}e.policy.Kh&&e.J.length>0&&e.J[0].aK()&&(N.qXP=e.J[0].xH());return N}; R9=function(e){var N,y=e.policy.Z&&((N=e.tW)==null?void 0:N.u$());N=e.tW.getCurrentTime()||0;N=EKP(e,N);var w=e.tW.w7()||0;N+=w;w=hY(e.videoData)||g.bk(e.videoData);var E=0;y?(w&&(E=Number.MAX_SAFE_INTEGER),e.videoData.Rq&&(E=Math.ceil(e.videoData.aq*1E3))):E=Math.ceil(N*1E3);return Math.min(Number.MAX_SAFE_INTEGER,E)}; eLH=function(e){return e.policy.zg&&e.videoData.Cx()&&!!e.G}; EKP=function(e,N){if(e.tW.isSeeking())return N;var y=e.JW.LC();if(!y)return N;y=y.O4();if(y.length===0||AX(y,N))return N;if(!iz(e.videoTrack,N)&&!iz(e.audioTrack,N))return e.tW.Fh("sundrn",{b:0,lt:N}),N;for(var w=N,E=Infinity,A=0;AN)){var T=N-y.end(A);T=20)?(e.tW.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),N):w}; y3_=function(e,N,y){var w=e.tW.getCurrentTime()||0;N=A30(e,N,w);e=A30(e,y,w);return Math.min(N,e)}; A30=function(e,N,y){e=e.tW.w7()||0;N=g.c(N);for(var w=N.next();!w.done;w=N.next()){var E=w.value;w=E.startTimeMs?E.startTimeMs/1E3-e:0;E=w+(E.durationMs?E.durationMs/1E3:0);if(w<=y&&y<=E)return E}return y}; LTs=function(e,N){if(e.policy.Fr>0){var y=Math.floor((0,g.iC)()/1E4);if(y===e.Zl){if(e.L>=e.policy.Fr){if(e.L===e.policy.Fr){var w={reason:"toomanyrequests"};w.limit=e.L;e.tW.handleError("player.exception",w);e.L+=1}return!1}}else e.Zl=y,e.L=0}N=!N&&!ld(e.bk)&&!e.policy.Js;if(e.tW.isSuspended&&(e.tW.cU||N))return!1;if(e.Kh&&(0,g.iC)()0&&(!e.policy.Kh||e.J.length!==1||!e.J[0].aK()))return!1;var E;if((E=e.rP.U)==null||!Fs(E,e.policy,e.Z,e.tW.kL()))return!1; E=e.policy.wA&&e.policy.N&&e.tW.bP();if(Il(e.audioTrack)&&Il(e.videoTrack)&&!E)return!1;if(e.policy.N&&e.U&&!e.tW.bP())return e.g4("ssap",{pauseontlm:1}),!1;if(UB(e,e.audioTrack)&&UB(e,e.videoTrack))return e.policy.K&&e.tW.Fh("sabrHeap",{a:""+hW(e.audioTrack),v:""+hW(e.videoTrack)}),!1;if(E=e.policy.L)E=!1,e.D.N===2?E=!0:e.D.N===3&&(R9(e),e.tW.w7(),N=y3_(e,SL(e.audioTrack,e.tW.isSeeking()).gT,SL(e.videoTrack,e.tW.isSeeking()).gT),y=e.D,N>=y.K?(y.Fh("sdai",{haltrq:N,est:y.K}),N=!0):N=!1,N&&(E=!0)), E&&e.policy.G&&e.tW.Fh("sabrcrq",{waitad:1});if(E)return!1;e.policy.Gg&&(e.qg=GG(e,e.audioTrack),e.l9=GG(e,e.videoTrack));if(!e.N)return e.policy.G&&e.tW.Fh("sabrcrq",{nopolicy:1}),!0;if(e.JW.F2())return e.policy.G&&e.tW.Fh("sabrcrq",{utc:1}),!0;if(e.K.U)return e.policy.G&&e.tW.Fh("sabrcrq",{audio:1}),!0;if(!e.N.targetAudioReadaheadMs||!e.N.targetVideoReadaheadMs)return e.policy.G&&e.tW.Fh("sabrcrq",{noreadahead:1}),!0;if(e.policy.Z&&e.tW.u$())return e.policy.G&&e.tW.Fh("sabrcrq",{seekToHead:1}), !0;E=Math.min(D2(e.tW,e.audioTrack)*1E3,e.N.targetAudioReadaheadMs);N=Math.min(D2(e.tW,e.videoTrack)*1E3,e.N.targetVideoReadaheadMs);var A=Math.min(E,N);y=ke(e.audioTrack,!0)*1E3;var T=ke(e.videoTrack,!0)*1E3;if(e.policy.Gg){var p=e.JW.getCurrentTime()*1E3;var C=T8H(e.qg.gT,p);p=T8H(e.l9.gT,p)}else C=y,p=T;var r=CN||w>=0&&E.qO>w+1)break;y=Math.max(y,E.startTimeMs+E.durationMs);w=Math.max(w,E.wQ)}return Math.max(0,y-N)}; sKn=function(e,N,y){var w={bk:e.bk,fd:function(C,r){e.JW.Gt(C,r)}, UT:e.policy.v2,CU:e.policy.K};e.bk.N.G&&(w.J3=(e.videoTrack.J.info.JM||0)+(e.audioTrack.J.info.JM||0));e.policy.y_&&(w.eV=e.audioTrack.J.index.Mz(),w.UT=!1);var E=Tw3(N,e.policy,e.Z)?2:1;E!==e.Ng&&(e.Ng=E,C0E(e));y=wHP(e,y);if((e.policy.N||e.policy.Kh)&&e.policy.K&&y.UH){for(var A=E="",T=g.c(y.UH),p=T.next();!p.done;p=T.next())p=p.value,e.videoData.sabrContextUpdates.has(p)?E+="_"+p:A+="_"+p;e.tW.Fh("sabrbldrqs",{ctxts:E,misctxts:A})}N.setData(y,e.tW.bP(),e.policy,e.Z)||!e.policy.N&&!e.policy.Kh|| e.tW.handleError("player.exception",{reason:"buildsabrrequestdatafailed"},1);w=new kX(e.policy,N,e.rP,e.Z,e,w,e.tW.HZ(),e.policy.Pf?e.tW.bP():void 0);BT(e.timing);e.policy.G&&e.tW.Fh("sabrcrq",{rn:w.YK(),probe:N.aN()});return w}; ef=function(e,N){if(N.Ss()||e.Ss())e.policy.uo||(e.policy.Z?sB(e.tW):e.tW.Ga());else{if(e.policy.K&&N.isComplete()&&N instanceof kX){var y=e.tW,w=y.Fh,E,A,T=Object.assign(N.Aa.gL(),{rst:N.state,strm:N.xhr.zE(),d:(E=N.Aa.Rq)==null?void 0:E.jY(),cncl:N.xhr&&N.r7.j?1:0,rqb:N.Gj,cwt:N.l4,swt:(A=N.FU)==null?void 0:A.C7});E=Object.assign(Cd0(N.info),T);w.call(y,"rqs",E)}if(N.isComplete()&&N.aN()&&N instanceof kX)e.policy.jn?N.Mn()?(N.dispose(),e.J.length===0?e.tW.Ga():(e=e.J[0],e instanceof kX&&e.qY()&& e.Py(!1))):N.Q_()&&e.tW.handleError(N.pw(),N.Cz()):(N.dispose(),e.tW.Ga());else{if(N.V4())N instanceof kX&&yds(e.timing,N),C0E(e),a9(e);else if(N.Q_())y=e.JW.F2(),N instanceof kX&&pgP(N.info)&&y&&e.tW.ou(y),N instanceof KH?e.J.pop():(y=1,N.canRetry()&&Kr(e.tW)&&(r35(e,N),y=0),e.tW.handleError(N.pw(),N.Cz(),y));else{if(e.tW.isSuspended&&!N.isComplete())return;a9(e)}N.Ss()||N instanceof KH||(N.isComplete()?y=xXP(N,e.policy,e.Z):(y=ZC9(N,e.policy,e.Z),y===1&&(e.Bk=!0)),y!==0&&(w=new ls(1,N.info.yl), w.q2=y===2,sKn(e,w)));e.policy.FZ&&!N.isComplete()?mL(e.tW):e.tW.Ga()}}}; a9=function(e){for(;e.J.length&&e.J[0].U1(e.vE());){var N=e.J.shift();$O5(e,N);if(e.policy.L){var y=e;if(!y.policy.Ut&&N.U1(y.vE())){var w=N.YK();if(y.Ut!==w){var E=N.Ue();N=E.d4;var A=E.qF;E=E.isDecorated;!y.j||A<0||(y.Ut=w,w=iO(y.D,A/1E3,N),A=y.tW.w7()||0,IO(y.D,N,w-A,E,y.j))}}}}e.J.length&&$O5(e,e.J[0])}; $O5=function(e,N){var y=new Set(N.Np(e.vE()));y=g.c(y);for(var w=y.next();!w.done;w=y.next()){var E=w.value;if(!(w=!(N instanceof KH))){w=e.K;var A=w.rP.Cx,T=Ym(w.videoInfos,A);w=Nw0(w,E,A)||T.includes(E)}if(w&&(w=N.Lz(E,e.vE()),A=e.policy.zg&&Ug(w[0].J.info),(!(!A&&e.policy.jE&&w.length>0&&(w[0].J.info.qG()?ke(e.audioTrack):ke(e.videoTrack))>3)||N.isComplete())&&N.bZ(E,e.vE()))){E=N.O$(E,e.vE());if(e.policy.N){T=w[0].J.info;var p=e.tW.bP();if(p&&T){var C=N.xv();p.api.T("html5_ssap_set_format_info_on_video_data")&& C===dA(p)&&(T.qG()?p.playback.getVideoData().j=T:p.playback.getVideoData().N=T);if(p=Nt(p.timeline,C))if(p=p[0].getVideoData())T.qG()?p.j=T:p.N=T}}E=g.c(E);for(T=E.next();!T.done;T=E.next())if(T=T.value,e.policy.K&&N instanceof KH&&e.tW.Fh("omblss",{s:T.info.O2()}),A)p=e,p.videoData.Cx()&&p.G&&Sl(p.G)===Sl(g.Ld(T.info.J.info,p.rP.Cx))&&p.JW.publish("sabrCaptionsDataLoaded",T,p.Fy.bind(p));else{p=T.info.J.info.qG();var r=T.info.J;if(p){C=void 0;var Y=e.K,M=(C=N.hG(e.vE()))==null?void 0:C.token;Y.U= !1;r!==Y.Z&&(Y.Z=r,Y.vr(r,Y.audioTrack,M))}else C=void 0,Rnn(e.K,r,(C=N.hG(e.vE()))==null?void 0:C.token);C=p?e.audioTrack:e.videoTrack;N instanceof KH&&(C.G=!1,N instanceof KH&&(p?GDs(e.timing):Rv5(e.timing)));try{Fz(C,w,T)}catch(l){T=I2(l),e.tW.handleError(T.errorCode,T.details,T.severity),C.w4(),e.Fc(!1,"pushSlice"),sB(e.tW)}}}}}; r35=function(e,N){e.policy.Kh?e.J.splice(e.J.indexOf(N)).forEach(function(y){y.dispose()}):(e.J.pop(),N==null||N.dispose())}; Yn5=function(e,N,y){for(var w=[],E=0;E0)for(var N=g.c(e.videoData.sabrContextUpdates.keys()),y=N.next();!y.done;y=N.next()){y=y.value;var w=void 0;((w=e.videoData.sabrContextUpdates.get(y))==null?0:w.sendByDefault)&&e.UH.add(y)}if(e.policy.Kh&&e.J.length)for(N=g.c(e.J),y=N.next();!y.done;y=N.next())(y=y.value.xH())&&y.type&&y.sendByDefault&&e.UH.add(y.type)}; F05=function(e){e.policy.PY&&(e.i9=void 0,e.ue=0)}; Sn0=function(e,N){if(N.Q_()||N.Ss()){var y=e.tW,w=y.Fh,E=N.state;e=e.vE();var A,T;if((N=(A=N.ZM)==null?void 0:A.get(e))==null)N=void 0;else{A=0;e=N.Np();for(var p=0;p=e.policy.xw,T=!1;if(A){var p=0;!isNaN(N)&&N>e.L&&(p=N-e.L,e.L=N);p/E=e.policy.Tg&&!e.K;if(!A&&!y&&kr5(e,N))return NaN;y&&(e.K=!0);a:{w=T;y=(0,g.iC)()/1E3-(e.pW.AT()||0)-e.G.J-e.policy.U2;A=e.N.startTime;y=A+y;if(w){if(isNaN(N)){yD(e,NaN,"n",N);A=NaN;break a}w=N-e.policy.rk;w=A.o2&&w<=A.XT){w=!0;break a}w=!1}w=!w}if(w)return e.Fh("ostmf",{ct:e.getCurrentTime(),a:N.J.info.qG()}),!1;(e=e.Kh)!=null&&(e.XZ.get(y).CT=!0);return!0}; zL5=function(e){if(!e.rP.Cx)return!0;var N=e.JW.getVideoData();if(N.T("html5_skip_live_preroll_onesie")&&e.JW.wq()||N.T("html5_skip_live_preroll_onesie_post_live")&&e.JW.wq()&&(N.Ta||N.isPremiere))return e.Fh("ombpa",{}),!1;var y,w;if(e.policy.SE&&!!((y=e.Ng)==null?0:(w=y.Oo)==null?0:w.E9Z)!==e.rP.Ta)return e.Fh("ombplmm",{}),!1;y=N.Xz||N.liveUtcStartSeconds||N.jN;if(e.rP.Ta&&y)return e.Fh("ombplst",{}),!1;if(e.rP.D)return e.Fh("ombab",{}),!1;y=Date.now();return SI(e.rP)&&!isNaN(e.qg)&&y-e.qg>e.policy.xn* 1E3?(e.Fh("ombttl",{}),!1):e.rP.L$&&e.rP.j||!e.policy.tD&&e.rP.isPremiere||!(TC(N)===0||e.policy.J&&N.T("html5_enable_onesie_media_for_sabr_proxima_optin"))||N.T("html5_disable_onesie_media_for_mosaic")&&xI(N)||N.T("html5_disable_onesie_media_for_ssdai")&&N.isDaiEnabled()&&N.enableServerStitchedDai?!1:!0}; i35=function(e,N){var y=N.J,w=e.rP.Cx;if(zL5(e))if(e.Kh&&e.Kh.XZ.has(Sl(g.Ld(y.info,w)))){if(w=Sl(g.Ld(y.info,w)),vKs(e,N)){var E=new iH(e.Kh.Lz(w)),A=function(T){try{if(T.Q_())e.handleError(T.pw(),T.Cz()),Pl(N,T),g4(T.info)&&nr(e.L,N,y,!0),e.Ga();else if(QU(e.L,T)){var p;(p=e.j)==null||T4J(p,T.info,e.U);e.Ga()}}catch(C){T=I2(C),e.handleError(T.errorCode,T.details,T.severity),e.w4()}}; y.K=!0;D$(E)&&(lz(N,new IE(e.policy,w,E,e.Kh,A)),BT(e.timing))}}else e.Fh("ombfmt",{})}; Aj=function(e,N){N=N||e.videoTrack&&e.videoTrack.N&&e.videoTrack.N.startTime||e.getCurrentTime();var y=Hl,w=e.videoTrack,E=e.J;N=E.nextVideo&&E.nextVideo.index.zI(N)||0;E.l9!==N&&(E.Rq={},E.l9=N,jr(E,E.J));N=!E.J.isLocked()&&E.D>-1&&(0,g.iC)()-E.DN.J&&N.reason==="b";w||E||y?(e.JW.P_({reattachOnConstraint:w?"u":E?"drm":"perf",lo:N.N,up:N.J}),e.policy.kX||(e.N.J.N=!1)):(e.policy.kX&&(e.N.J.N=!1),sB(e))}}else if(!SMF(e.J,N)&&e.videoTrack){e.logger.debug(function(){return"Setting constraint: r="+N.reason+" u="+N.J}); y=e.J.J;Z3n(e,b1s(e.J,N));Aj(e);w=N.isLocked()&&N.reason==="m"&&e.J.Kh;E=e.policy.AA&&N.reason==="l"&&vl(e.videoTrack);y=y.J>N.J&&N.reason==="b";var A=e.J.Wk&&!Zo();w||E||y||A?e.JW.P_({reattachOnConstraint:w?"u":E?"drm":A?"codec":"perf"}):sB(e)}}; jf9=function(e,N,y){if((!e.TZ||nh(e.TZ)&&!e.policy.sR)&&!e.jZ.isSeeking()&&(e.policy.J||vl(N)&&N.J.Yz()&&e.J.Ng)){var w=e.getCurrentTime()+F4s(e.D,N,y);e.logger.debug(function(){return"Clearing back to "+w.toFixed(3)}); hnM(N,w)}}; Z3n=function(e,N){N&&(e.logger.debug(function(){return"Logging new format: "+N$(N.video.info)}),nK3(e.JW,new VW(N.video,N.reason))); if(e.J.Bk){var y=B4M(e.J,"a");e.JW.wJ(new VW(y.audio,y.reason))}}; sB=function(e){g.NA(e.dT)}; mL=function(e){e.policy.FZ&&e.policy.oS&&Math.min(bC3(e.videoTrack),bC3(e.audioTrack))*1E3>e.policy.aT?g.NA(e.a9):e.Ga()}; Qf1=function(e,N){var y=(0,g.iC)()-N,w=ke(e.audioTrack,!0)*1E3,E=ke(e.videoTrack,!0)*1E3;e.logger.debug(function(){return"Appends paused for "+y}); if(e.policy.K&&(e.Fh("apdpe",{dur:y.toFixed(),abuf:w.toFixed(),vbuf:E.toFixed()}),fr(e.policy))){var A=c0(e.D);e.Fh("sdps",{ct:N,ah:w.toFixed(),vh:E.toFixed(),mr:k8(e.D,e.Sh,A),bw:A.toFixed(),js:e.isSeeking(),re:+e.Sh,ps:(e.policy.SP||"").toString(),rn:(e.policy.hK||"").toString()})}}; mOM=function(e){if(e.policy.N&&DU(e.videoTrack)&&DU(e.audioTrack))return"ssap";if(dX5(e.videoTrack))return e.logger.debug("Pausing appends for server-selectable format"),"ssf";if(e.policy.Bk&&gA(e.videoTrack)&&gA(e.audioTrack))return"updateEnd";if(Il(e.audioTrack)||Il(e.videoTrack)&&e.videoTrack.J.info.Iq!=="f")return"";if(e.jZ.isSeeking()){var N=e.D;var y=e.videoTrack;var w=e.audioTrack;if(N.policy.J){var E=N.policy.xI;fr(N.policy)&&(E=k8(N,!1,c0(N)));N=E;y=ke(w,!0)>=N&&ke(y,!0)>=N}else y.K.length|| w.K.length?(E=y.J.info.JM+w.J.info.JM,E=10*(1-c0(N)/E),N=Math.max(E,N.policy.xI),y=ke(w,!0)>=N&&ke(y,!0)>=N):y=!0;if(!y)return"abr";y=e.videoTrack;if(y.K.length>0&&y.j.N.length===1&&R_5(y.j).info.Z360);w=fr(e.policy)&&e.policy.Em;if(!e.Sh||!w&&y)return"";y=e.policy.ul;fr(e.policy)&&(y=k8(e.D,e.Sh,c0(e.D)));y=kEn(e.videoTrack, e.getCurrentTime(),y)||kEn(e.audioTrack,e.getCurrentTime(),y);return fr(e.policy)?y?"mbnm":"":(e.videoTrack.K.length>0||e.audioTrack.K.length>0||xe(e.L,e.videoTrack,e.audioTrack)||xe(e.L,e.audioTrack,e.videoTrack))&&y?"nord":""}; H3P=function(e){if(e.G){var N=e.G.Ga(e.audioTrack,JX(e.TZ.N.Ju()));N&&e.JW.seekTo(N,{l8:!0,BY:"pollSubsegmentReadahead",Kz:!0})}}; L0n=function(e,N,y){if(e.policy.Bk&&gA(N))return!1;if(y.j9())return!0;if(!y.Fw())return!1;var w=u3(N);if(!w||w.info.type===6)return!1;var E=e.policy.JX;if(E&&!w.info.j){var A=w.info.o2-e.getCurrentTime();if(w.info.ZA)return e.policy.J&&O35(e,N),e.policy.c5&&zBM(N.j,A,!1),!1;RLM(e,N);var p;e.policy.UY&&y===((p=e.TZ)==null?void 0:p.J)&&e.Ut&&(y.AK()===0?(e.Ut=!1,e.policy.UY=!1):e.VB=y.AK());if(!Gr1(e,y,w,N))return!1;e.policy.Bk&&w.info.eY()?(e.JW.X().B9()&&e.Fh("eosl",{ls:w.info.O2()}), w.isLocked=!0):(N.Of(w),k4J(e.J,w.info),e.logger.debug(function(){return"Appended "+w.info.O2()+", buffered: "+wO(y.Ju())})); E&&UOn(e,w.info.J.d0);return!0}; O35=function(e,N){N===e.videoTrack?e.aq=e.aq||(0,g.iC)():e.i9=e.i9||(0,g.iC)()}; RLM=function(e,N){N===e.videoTrack?e.aq=0:e.i9=0}; Gr1=function(e,N,y,w){var E=e.policy.Dl?(0,g.iC)():0,A=y.L&&y.info.J.J||void 0,T=y.J;y.L&&(T=sfJ(e,y,T)||T);var p=T.YX();T=e.policy.Dl?(0,g.iC)():0;N=aG1(e,N,p,y.info,A);(w=w.D)!=null&&(A=y.info,E=T-E,T=(0,g.iC)()-T,!w.N||x5_(w.N,A)&&w.N.Ch===A.Ch||w.flush(),w.j+=E,w.K+=T,E=1,!w.N&&A.N&&(E=2),WT(w,E,N),T=Math.ceil(A.N/1024),E===2&&w.J.add(T),w.J.add(Math.ceil((A.N+A.K)/1024)-T),w.N=A);e.l9=0;if(N===0)return e.Zl&&(e.logger.debug("Retry succeed, back to normal append logic."),e.Zl=!1,e.Kx=!1),e.Dl= 0,!0;if(N===2||N===5)return eHH(e,"checked",N,y.info),!1;if(N===1){if(!e.Zl)return e.logger.debug("QuotaExceeded, retrying."),e.Zl=!0,!1;if(!e.Kx)return e.Kx=!0,e.JW.seekTo(e.getCurrentTime(),{BY:"quotaExceeded",Kz:!0}),!1;y.info.gx()?(E=e.policy,E.Zl=Math.floor(E.Zl*.8),E.l9=Math.floor(E.l9*.8)):(E=e.policy,E.Kx=Math.floor(E.Kx*.8),E.l9=Math.floor(E.l9*.8));e.policy.J?tI(e.N.J,y.info.J,!1):QW(e.J,y.info.J)}e.JW.P_({reattachOnAppend:N});return!1}; sfJ=function(e,N,y){var w;if(w=e.policy.hN&&e.TZ&&!e.TZ.U&&!e.JW.PU())N=N.info.J.info,w=N.lm()&&mu(N)&&N.video&&N.video.width<3840&&N.video.width>N.video.height;if(w&&(e.TZ.U=!0,Dr('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return y=Wv_(y),e.policy.K&&e.Fh("sp4k",{s:!!y}),y}; eHH=function(e,N,y,w){var E="fmt.unplayable",A=1;y===5||y===3?(E="fmt.unparseable",e.policy.J?!w.J.info.video||uO(e.N.J).size>0||tI(e.N.J,w.J,!1):!w.J.info.video||uO(e.J.L).size>0||QW(e.J,w.J)):y===2&&(e.Dl<15?(e.Dl++,E="html5.invalidstate",A=0):E="fmt.unplayable");w=vx(w);var T;w.mrs=(T=e.TZ)==null?void 0:Kh(T);w.origin=N;w.reason=y;e.handleError(E,w,A)}; C21=function(e,N,y,w,E){var A=e.rP;var T=e.policy.J,p=!1,C=-1,r;for(r in A.J){var Y=Ug(A.J[r].info)||A.J[r].info.gx();if(w===Y)if(Y=A.J[r].index,Y.VI(N.Ch)){p=Y;var M=N,l=p.o8(M.Ch);l&&l.startTime!==M.startTime?(p.segments=[],p.Co(M),p=!0):p=!1;p?C=N.Ch:!N.pending&&T&&(M=Y.getDuration(N.Ch),M!==N.duration&&(A.publish("clienttemp","mfldurUpdate",{itag:A.J[r].info.itag,seg:N.Ch,od:M,nd:N.duration},!1),Y.Co(N),p=!0))}else Y.Co(N),p=!0}C>=0&&(T={},A.publish("clienttemp","resetMflIndex",(T[w?"v":"a"]= C,T),!1));A=p;Vq5(e.jZ,N,w,A);e.j.Q8(N,y,w,E);N.Ch===e.rP.L$&&A&&$_(e.rP)&&N.startTime>$_(e.rP)&&(e.rP.aq=N.startTime+(isNaN(e.timestampOffset)?0:e.timestampOffset),e.jZ.isSeeking()&&e.jZ.J 5)return e.l9=0,e.JW.P_({initSegStuck:1,as:w.info.O2()}),!0}else e.l9=0,e.Y_=w;e.policy.zA&&(y.abort(),(T=N.D)!=null&&(WT(T,4),T.flush()));E=aG1(e,y,A,C,E);var r;(r=N.D)==null||DZP(r,E,C);if(E!==0)return NdF(e,E,w),!0;w.info.gx()?sh5(e.timing):aeH(e.timing);e.logger.debug(function(){return"Appended init for "+w.info.J.info.id}); UOn(e,w.info.J.d0);return y.Vh()}; K0_=function(e,N,y){if(N.QO()==null){e=MN(e);if(!(N=!e||e.J!==y.info.J)){a:if(e=e.G,y=y.info.G,e.length!==y.length)y=!1;else{for(N=0;N1)return 6;C.Rq=new g.e6(function(){var Y=u3(C);e.Ss()||Y==null||!Y.isLocked?e.JW.X().B9()&&e.Fh("eosl",{delayA:Y==null?void 0:Y.info.O2()}):yY1(C)?(e.JW.X().B9()&&e.Fh("eosl",{dunlock:Y==null?void 0:Y.info.O2()}),wF5(e, C===e.audioTrack)):(e.Fh("nue",{ls:Y.info.O2()}),Y.info.U+=1,e.TZ&&e.bu())},1E4,e); e.JW.X().B9()&&e.Fh("eosl",{delayS:w.O2()});C.Rq.start()}if(e.policy.Sy&&(w==null?0:w.eY())){var r;if((r=C.l9)==null?0:r.isActive())g.yE(C.l9),e.Fh("sbac",{as:w.O2()});C.l9=new g.e6(function(){e.Fh("sbum5s",{as:w.O2()})},5E3,e); C.l9.start()}e.policy.U8&&(w==null?void 0:w.J)instanceof f1&&w.eY()&&e.Fh("poseos",{itag:w.J.info.itag,seg:w.Ch,lseg:w.J.index.vY(),es:w.J.index.K});N.appendBuffer(y,w,E)}catch(Y){if(Y instanceof DOMException){if(Y.code===11)return 2;if(Y.code===12)return 5;if(Y.code===22||Y.message.indexOf("Not enough storage")===0)return N=Object.assign({name:"QuotaExceededError",buffered:wO(N.Ju()).replace(/,/g,"_"),vheap:hW(e.videoTrack),aheap:hW(e.audioTrack),message:g.b7(Y.message,3),track:e.TZ?N===e.TZ.N?"v": "a":"u"},P0M()),e.handleError("player.exception",N),1;g.t0(Y)}return 4}return e.TZ.u6()?3:0}; tz=function(e,N,y){e.JW.seekTo(N,y)}; UOn=function(e,N){N&&e.JW.VQ(new eL(N.key,N.type))}; Ee=function(e,N){e.JW.Me(N)}; D2=function(e,N){if(e.Zl&&!e.Sh)return 3;if(e.isSuspended)return 1;var y;if((y=e.TZ)==null?0:y.TZ&&y.TZ.streaming===!1)return 4;y=(N.J.info.audio?e.policy.Kx:e.policy.Zl)/(N.JM*e.policy.Qk);if(e.policy.J4>0&&e.TZ&&nh(e.TZ)&&(N=N.J.info.video?e.TZ.N:e.TZ.J)&&!N.Vh()){N=N.Ju();var w=E3(N,e.getCurrentTime());w>=0&&(N=e.getCurrentTime()-N.start(w),y+=Math.max(0,Math.min(N-e.policy.J4,e.policy.KT)))}e.policy.l9>0&&(y=Math.min(y,e.policy.l9));return y}; N85=function(e,N){return(D2(e,N)+e.policy.zy)*N.JM}; AYE=function(e){e.Wk&&!e.isSuspended&&ld(e.schedule)&&(EI9(e,e.Wk),e.Wk="")}; EI9=function(e,N){S3(N,"cms",function(y){e.policy.K&&e.Fh("pathprobe",y)},function(y){e.JW.handleError(y)})}; Td0=function(e,N){if(e.TZ&&e.TZ.j&&!e.TZ.u6()&&(N.Ze=ke(e.videoTrack),N.N=ke(e.audioTrack),e.policy.K)){var y=hW(e.videoTrack),w=hW(e.audioTrack),E=wO(e.TZ.N.Ju(),"_",5),A=wO(e.TZ.J.Ju(),"_",5);Object.assign(N.J,{lvq:y,laq:w,lvb:E,lab:A})}N.bandwidthEstimate=b3(e.D);var T;(T=e.audioTrack.D)==null||T.flush();var p;(p=e.videoTrack.D)==null||p.flush();e.logger.debug(function(){return Xe(N.J)})}; JYs=function(e,N){e.U=N;e.j&&(e.j.Z=N);e.U.aZ(e.videoTrack.J.info.lm());e.L.N=e.U;e.policy.L&&(e.K.j=e.U)}; pFn=function(e,N){if(e.TZ&&e.TZ.N){if(e.policy.q6){var y=DXJ(e.audioTrack);if(y&&y.qG()){var w=e.JW;w.Tk&&(w.Tk.J=y,w.Eg(w.Tk.videoId).e3(w.Tk))}}e.policy.Ob&&(y=DXJ(e.videoTrack))&&y.gx()&&(w=e.JW,w.WK&&(w.WK.J=y,w.Eg(w.WK.videoId).sW(w.WK)));N-=isNaN(e.timestampOffset)?0:e.timestampOffset;e.getCurrentTime()!==N&&e.resume();e.jZ.isSeeking()&&e.TZ&&!e.TZ.u6()&&(y=e.getCurrentTime()<=N&&N=N&&dO0(e,w.startTime,!1)}); return y&&y.startTimee.getCurrentTime())return y.start/1E3;return Infinity}; Ys5=function(e){var N=MN(e.videoTrack),y=MN(e.audioTrack);return N&&!iC_(e.videoTrack)?N.startTime:y&&!iC_(e.audioTrack)?y.startTime:NaN}; pH_=function(e){if(e.JW.getVideoData().isLivePlayback)return!1;var N=e.JW.LC();if(!N)return!1;N=N.getDuration();return J3n(e,N)}; J3n=function(e,N){if(!e.TZ||!e.TZ.J||!e.TZ.N)return!1;var y=e.getCurrentTime(),w=e.TZ.J.Ju();e=e.TZ.N.Ju();w=w?T6(w,y):y;y=e?T6(e,y):y;y=Math.min(w,y);return isNaN(y)?!1:y>=N-.01}; NdF=function(e,N,y){e.policy.wW&&Rf(e.JW.getVideoData())?(e.JW.uS()||eHH(e,"sepInit",N,y.info),M53(e.JW,"sie")):eHH(e,"sepInit",N,y.info)}; Kr=function(e){return e.JW.kL()0){var E=w.J.shift();Fd5(w,E.info)}w.J.length>0&&(E=w.J[0].time-(0,g.iC)(),w.N.start(Math.max(0,E)))}},0); g.Q(this,this.N);N.subscribe("widevine_set_need_key_info",this.L,this)}; Fd5=function(e,N){a:{var y=N.cryptoPeriodIndex;if(isNaN(y)&&e.K.size>0)y=!0;else{for(var w=g.c(e.K.values()),E=w.next();!E.done;E=w.next())if(E.value.cryptoPeriodIndex===y){y=!0;break a}y=!1}}e.publish("log_qoe",{wvagt:"reqnews",canskip:y});y||e.publish("rotated_need_key_info_ready",N)}; Ss5=function(){var e={};var N=e.url;var y=e.interval;e=e.retries;this.url=N;this.interval=y;this.retries=e}; oIE=function(e,N){this.statusCode=e;this.message=N;this.N=this.heartbeatParams=this.errorMessage=null;this.J={};this.nextFairplayKeyId=null}; bXM=function(e,N,y){y=y===void 0?"":y;g.x.call(this);this.message=e;this.requestNumber=N;this.D_=y;this.onError=this.onSuccess=null;this.J=new g.kv(5E3,2E4,.2)}; hHF=function(e,N,y){e.onSuccess=N;e.onError=y}; kCE=function(e,N,y,w){var E={timeout:3E4,onSuccess:function(A){if(!e.Ss()){jZ("drm_net_r",void 0,e.D_);var T=A.status==="LICENSE_STATUS_OK"?0:9999,p=null;if(A.license)try{p=hO(A.license)}catch(S){g.t0(S)}if(T!==0||p){p=new oIE(T,p);T!==0&&A.reason&&(p.errorMessage=A.reason);if(A.authorizedFormats){T={};for(var C=[],r={},Y=g.c(A.authorizedFormats),M=Y.next();!M.done;M=Y.next())if(M=M.value,M.trackType&&M.keyId){var l=cY3[M.trackType];if(l){l==="HD"&&A.isHd720&&(l="HD720");M.isHdr&&(l+="HDR");T[l]|| (C.push(l),T[l]=!0);var F=null;try{F=hO(M.keyId)}catch(S){g.t0(S)}F&&(r[g.oN(F,4)]=l)}}p.N=C;p.J=r}A.nextFairplayKeyId&&(p.nextFairplayKeyId=A.nextFairplayKeyId);A.sabrLicenseConstraint&&(p.sabrLicenseConstraint=hO(A.sabrLicenseConstraint));A=p}else A=null;if(A)e.onSuccess(A,e.requestNumber);else e.onError(e,"drm.net","t.p;p.i")}}, onError:function(A){if(!e.Ss())if(A&&A.error)A=A.error,e.onError(e,"drm.net.badstatus","t.r;p.i;c."+A.code+";s."+A.status,A.code);else e.onError(e,"drm.net.badstatus","t.r;p.i;c.n")}, onTimeout:function(){e.onError(e,"drm.net","rt.req."+e.requestNumber)}}; w&&(E.DG="Bearer "+w);g.y7(y,"player/get_drm_license",N,E)}; BdM=function(e,N,y,w){g.pT.call(this);this.videoData=e;this.ph=N;this.D=y;this.sessionId=w;this.L={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.G=this.Kh=!1;this.K=null;this.l9=[];this.j=[];this.U=!1;this.J={};this.qg=NaN;this.status="";this.Z=NaN;this.N=e.L;this.cryptoPeriodIndex=y.cryptoPeriodIndex;e={};Object.assign(e,this.ph.J);e.cpn=this.videoData.clientPlaybackNonce;this.videoData.Kh&&(e.vvt=this.videoData.Kh,this.videoData.mdxEnvironment&&(e.mdx_environment=this.videoData.mdxEnvironment)); this.ph.l9&&(e.authuser=this.ph.l9);this.ph.pageId&&(e.pageid=this.ph.pageId);isNaN(this.cryptoPeriodIndex)||(e.cpi=this.cryptoPeriodIndex.toString());var E=(E=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.zw()))?E[1]:"";E==="ATV"&&(e.cdt=E);this.L=e;this.L.session_id=w;this.Ng=!0;this.N.flavor==="widevine"&&(this.L.hdr="1");this.N.flavor==="playready"&&(N=Number(ms(N.experiments,"playready_first_play_expiration")),!isNaN(N)&&N>=0&&(this.L.mfpe=""+N),this.Ng=!1);N="";g.i2(this.N)?zE(this.N)?(w=y.N)&&(N="https://www.youtube.com/api/drm/fps?ek="+ x3s(w)):(N=y.initData.subarray(4),N=new Uint16Array(N.buffer,N.byteOffset,N.byteLength/2),N=String.fromCharCode.apply(null,N).replace("skd://","https://")):N=this.N.N;this.baseUrl=N;this.fairplayKeyId=Hc(this.baseUrl,"ek")||"";if(N=Hc(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(N);this.i9=this.videoData.T("html5_use_drm_retry");this.l9=y.lm?[g.oN(y.initData,4)]:y.K;Y4(this,{sessioninit:y.cryptoPeriodIndex});this.status="in"}; Iis=function(e,N){Y4(e,{createkeysession:1});e.status="gr";jZ("drm_gk_s",void 0,e.videoData.Et);e.url=XFM(e);try{e.K=N.createSession(e.D,function(y){Y4(e,{m:y})})}catch(y){N="t.g"; y instanceof DOMException&&(N+=";c."+y.code);e.publish("licenseerror","drm.unavailable",1,N,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}e.K&&(PkP(e.K,function(y,w){dKs(e,y,w)},function(y,w,E){if(!e.Ss()){w=void 0; var A=1;g.i2(e.N)&&g.IK(e.ph)&&e.ph.T("html5_enable_safari_fairplay")&&E===1212433232&&(w="ERROR_HDCP",A=e.ph.T("html5_safari_fairplay_ignore_hdcp")?0:A);e.error("drm.keyerror",A,y,w)}},function(){e.Ss()||(Y4(e,{onkyadd:1}),e.G||(e.publish("sessionready"),e.G=!0))},function(y){e.Nx(y)}),g.Q(e,e.K))}; XFM=function(e){var N=e.baseUrl;Ui9(N)||e.error("drm.net",2,"t.x");if(!Hc(N,"fexp")){var y=["23898307","23914062","23916106","23883098"].filter(function(E){return e.ph.experiments.experiments[E]}); y.length>0&&(e.L.fexp=y.join())}y=g.c(Object.keys(e.L));for(var w=y.next();!w.done;w=y.next())w=w.value,N=X45(N,w,e.L[w]);return N}; dKs=function(e,N,y){if(!e.Ss())if(N){Y4(e,{onkmtyp:y});e.status="km";switch(y){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":vIs(e,N);return;default:e.publish("ctmp","message_type",{t:y,l:N.byteLength})}e.Kh||(jZ("drm_gk_f",void 0,e.videoData.Et),e.Kh=!0,e.publish("newsession",e));if(dt(e.N)&&(N=zHn(N),!N))return;N=new bXM(N,++e.requestNumber,e.videoData.Et);hHF(N,function(w){iXF(e,w)},function(w,E,A){if(!e.Ss()){var T=0,p; (p=w.J.N>=3)||(p=e.i9&&(0,g.iC)()-e.qg>36E4);p&&(T=1,E="drm.net.retryexhausted");Y4(e,{onlcsrqerr:E,info:A});e.error(E,T,A);e.shouldRetry(dp(T),w)&&DK0(e,w)}}); g.Q(e,N);gIJ(e,N)}else e.error("drm.unavailable",1,"km.empty")}; vIs=function(e,N){Y4(e,{sdpvrq:1});e.Z=Date.now();if(e.N.flavor!=="widevine")e.error("drm.provision",1,"e.flavor;f."+e.N.flavor+";l."+N.byteLength);else{var y={cpn:e.videoData.clientPlaybackNonce};Object.assign(y,e.ph.J);y=g.Qb("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",y);N={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null, N)}),responseType:"arraybuffer"};g.VN(y,N,3,500).then($B(function(w){w=w.xhr;if(!e.Ss()){w=new Uint8Array(w.response);var E=String.fromCharCode.apply(null,w);try{var A=JSON.parse(E)}catch(T){}A&&A.signedResponse?(e.publish("ctmp","drminfo",{provisioning:1}),A=(Date.now()-e.Z)/1E3,e.Z=NaN,e.publish("ctmp","provs",{et:A.toFixed(3)}),e.K&&e.K.update(w)):(A=A&&A.error&&A.error.message,w="e.parse",A&&(w+=";m."+A),e.error("drm.provision",1,w))}}),$B(function(w){e.Ss()||e.error("drm.provision",1,"e."+w.errorCode+ ";c."+(w.xhr&&w.xhr.status))}))}}; Mt=function(e){var N;if(N=e.Ng&&e.K!=null)e=e.K,N=!(!e.J||!e.J.keyStatuses);return N}; gIJ=function(e,N){e.status="km";jZ("drm_net_s",void 0,e.videoData.Et);var y=new g.N6(e.ph.xI),w={context:g.M9(y.config_||g.Yp())};w.drmSystem=V5H[e.N.flavor];w.videoId=e.videoData.videoId;w.cpn=e.videoData.clientPlaybackNonce;w.sessionId=e.sessionId;w.licenseRequest=g.oN(N.message);w.drmParams=e.videoData.drmParams;isNaN(e.cryptoPeriodIndex)||(w.isKeyRotated=!0,w.cryptoPeriodIndex=e.cryptoPeriodIndex);var E,A,T=!!((E=e.videoData.N)==null?0:(A=E.video)==null?0:A.isHdr());w.drmVideoFeature=T?"DRM_VIDEO_FEATURE_PREFER_HDR": "DRM_VIDEO_FEATURE_SDR";if(w.context&&w.context.client){if(E=e.ph.J)w.context.client.deviceMake=E.cbrand,w.context.client.deviceModel=E.cmodel,w.context.client.browserName=E.cbr,w.context.client.browserVersion=E.cbrver,w.context.client.osName=E.cos,w.context.client.osVersion=E.cosver;w.context.user=w.context.user||{};w.context.request=w.context.request||{};e.videoData.Kh&&(w.context.user.credentialTransferTokens=[{token:e.videoData.Kh,scope:"VIDEO"}]);w.context.request.mdxEnvironment=e.videoData.mdxEnvironment|| w.context.request.mdxEnvironment;e.videoData.a9&&(w.context.user.kidsParent={oauthToken:e.videoData.a9});g.i2(e.N)&&(w.fairplayKeyId=g.oN(jPP(e.fairplayKeyId)));g.GX(e.ph,g.qK(e.videoData)).then(function(p){kCE(N,w,y,p);e.status="rs"})}else e.error("drm.net",2,"t.r;ic.0")}; iXF=function(e,N){if(!e.Ss())if(Y4(e,{onlcsrsp:1}),e.status="rr",N.statusCode!==0)e.error("drm.auth",1,"t.f;c."+N.statusCode,N.errorMessage||void 0);else{jZ("drm_kr_s",void 0,e.videoData.Et);if(N.heartbeatParams&&N.heartbeatParams.url&&e.videoData.T("outertube_streaming_data_always_use_staging_license_service")){var y=e.N.N.match(/(.*)youtube.com/g);y&&(N.heartbeatParams.url=y[0]+N.heartbeatParams.url)}N.heartbeatParams&&e.publish("newlicense",N.heartbeatParams);N.N&&(e.j=N.N,e.videoData.i$||e.publish("newlicense", new Ss5),e.videoData.i$=!0,e.U=DR(e.j,function(w){return w.includes("HDR")})); N.J&&(e.ph.T("html5_enable_vp9_fairplay")&&zE(e.N)?(y=g.oN(jPP(e.fairplayKeyId),4),e.J[y]={type:N.J[y],status:"unknown"}):e.J=ha(N.J,function(w){return{type:w,status:"unknown"}})); vU(e.N)&&(N.message=zl_(g.oN(N.message)));e.K&&(Y4(e,{updtks:1}),e.status="ku",e.K.update(N.message).then(function(){jZ("drm_kr_f",void 0,e.videoData.Et);Mt(e)||(Y4(e,{ksApiUnsup:1}),e.publish("keystatuseschange",e))},function(w){w="msuf.req."+e.requestNumber+";msg."+g.b7(w.message,3); e.error("drm.keyerror",1,w)})); e.G&&(e.qg=(0,g.iC)());g.i2(e.N)&&e.publish("fairplay_next_need_key_info",e.baseUrl,N.nextFairplayKeyId);e.ph.T("html5_enable_vp9_fairplay")&&zE(e.N)&&e.publish("qualitychange",fiE(e.j));N.sabrLicenseConstraint&&e.publish("sabrlicenseconstraint",N.sabrLicenseConstraint)}}; DK0=function(e,N){var y=N.J.getValue();y=new g.e6(function(){gIJ(e,N)},y); g.Q(e,y);y.start();g.BC(N.J);Y4(e,{rtyrq:1})}; t53=function(e,N){for(var y=[],w=g.c(Object.keys(e.J)),E=w.next();!E.done;E=w.next())E=E.value,y.push(E+"_"+e.J[E].type+"_"+e.J[E].status);return y.join(N)}; uU3=function(e){var N={};N[e.status]=Mt(e)?t53(e,"."):e.j.join(".");return N}; qsM=function(e,N){switch(e){case "highres":case "hd2880":e="UHD2";break;case "hd2160":case "hd1440":e="UHD1";break;case "hd1080":case "hd720":e="HD";break;case "large":case "medium":case "small":case "light":case "tiny":e="SD";break;default:return""}N&&(e+="HDR");return e}; ZXH=function(e,N){for(var y in e.J)if(e.J[y].status==="usable"&&e.J[y].type===N)return!0;return!1}; xK1=function(e,N){for(var y in e.J)if(e.J[y].type===N)return e.J[y].status}; Y4=function(e,N){var y=y===void 0?!1:y;Xe(N);(y||e.ph.B9())&&e.publish("ctmp","drmlog",N)}; j$E=function(e){var N=e[0];e[0]=e[3];e[3]=N;N=e[1];e[1]=e[2];e[2]=N;N=e[4];e[4]=e[5];e[5]=N;N=e[6];e[6]=e[7];e[7]=N}; fiE=function(e){return g.Gw(e,"UHD2")||g.Gw(e,"UHD2HDR")?"highres":g.Gw(e,"UHD1")||g.Gw(e,"UHD1HDR")?"hd2160":g.Gw(e,"HD")||g.Gw(e,"HDHDR")?"hd1080":g.Gw(e,"HD720")||g.Gw(e,"HD720HDR")?"hd720":"large"}; zHn=function(e){for(var N="",y=0;y'.charCodeAt(w);e=e.K.createSession("video/mp4",N,y);return new lw(null,null,null,null,e)}; Wdn=function(e,N){var y=e.Z[N.sessionId];!y&&e.j&&(y=e.j,e.j=null,y.sessionId=N.sessionId,e.Z[N.sessionId]=y);return y}; mK5=function(e,N){var y=e.subarray(4);y=new Uint16Array(y.buffer,y.byteOffset,y.byteLength/2);y=String.fromCharCode.apply(null,y).match(/ek=([0-9a-f]+)/)[1];for(var w="",E=0;E=0&&e.push(w);e=parseFloat(e.join("."))}else e=NaN;e>19.2999?(e=y.c5,y=y.zd,y>=e&&(y=e*.75),N=(e-y)*.5,y=new rg(N,e,e-N-y,this)):y=null;break a;case "widevine":y=new $4(N,this,e);break a;default:y=null}if(this.L=y)g.Q(this,this.L),this.L.subscribe("rotated_need_key_info_ready",this.ej,this),this.L.subscribe("log_qoe",this.T4,this);gt(this.ph.experiments);this.T4({cks:this.J.getInfo()})}; RHn=function(e){var N=e.j.wU();N?N.then($B(function(){UKE(e)}),$B(function(y){if(!e.Ss()){g.t0(y); var w="t.a";y instanceof DOMException&&(w+=";n."+y.name+";m."+y.message);e.publish("licenseerror","drm.unavailable",1,w,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(e.T4({mdkrdy:1}),e.D=!0); e.Ng&&(N=e.Ng.wU())}; sO5=function(e,N,y){e.Zl=!0;y=new eL(N,y);e.ph.T("html5_eme_loader_sync")&&(e.Z.get(N)||e.Z.set(N,y));LU_(e,y)}; LU_=function(e,N){if(!e.Ss()){e.T4({onInitData:1});if(e.ph.T("html5_eme_loader_sync")&&e.videoData.K&&e.videoData.K.J){var y=e.G.get(N.initData);N=e.Z.get(N.initData);if(!y||!N)return;N=y;y=N.initData;e.Z.remove(y);e.G.remove(y)}e.T4({initd:N.initData.length,ct:N.contentType});if(e.J.flavor==="widevine")if(e.i9&&!e.videoData.isLivePlayback)oU(e);else{if(!(e.ph.T("vp9_drm_live")&&e.videoData.isLivePlayback&&N.lm)){e.i9=!0;y=N.cryptoPeriodIndex;var w=N.J;na0(N);N.lm||(w&&N.J!==w?e.publish("ctmp","cpsmm", {emsg:w,pssh:N.J}):y&&N.cryptoPeriodIndex!==y&&e.publish("ctmp","cpimm",{emsg:y,pssh:N.cryptoPeriodIndex}));e.publish("widevine_set_need_key_info",N)}}else e.ej(N)}}; UKE=function(e){if(!e.Ss())if(e.ph.T("html5_drm_set_server_cert")||zE(e.J)){var N=e.j.setServerCertificate();N?N.then($B(function(y){e.ph.B9()&&e.publish("ctmp","ssc",{success:y})}),$B(function(y){e.publish("ctmp","ssce",{n:y.name, m:y.message})})).then($B(function(){a09(e)})):a09(e)}else a09(e)}; a09=function(e){e.Ss()||(e.D=!0,e.T4({onmdkrdy:1}),oU(e))}; eY3=function(e){return e.J.flavor==="widevine"&&e.videoData.T("html5_drm_cpi_license_key")}; oU=function(e){if((e.Zl||e.ph.T("html5_widevine_use_fake_pssh"))&&e.D&&!e.l9){for(;e.K.length;){var N=e.K[0],y=eY3(e)?QiJ(N):g.oN(N.initData);if(zE(e.J)&&!N.N)e.K.shift();else{if(e.N.get(y))if(e.J.flavor!=="fairplay"||zE(e.J)){e.K.shift();continue}else e.N.delete(y);na0(N);break}}e.K.length&&e.createSession(e.K[0])}}; NAJ=function(e){var N;if(N=g.O8()){var y;N=!((y=e.j.N)==null||!y.getMetrics)}N&&(N=e.j.getMetrics())&&(N=g.IR(N),e.publish("ctmp","drm",{metrics:N}))}; yW5=function(){var e=taP();return!(!e||e==="visible")}; Een=function(e){var N=wl5();N&&document.addEventListener(N,e,!1)}; AWH=function(e){var N=wl5();N&&document.removeEventListener(N,e,!1)}; wl5=function(){if(document.visibilityState)var e="visibilitychange";else{if(!document[Su+"VisibilityState"])return"";e=Su+"visibilitychange"}return e}; TA1=function(e){g.x.call(this);var N=this;this.JW=e;this.P3=0;this.Z=this.N=this.L=!1;this.j=0;this.Ot=this.JW.X();this.videoData=this.JW.getVideoData();this.K=g.Y2(this.Ot.experiments,"html5_delayed_retry_count");this.J=new g.e6(function(){N.JW.hT()},g.Y2(this.Ot.experiments,"html5_delayed_retry_delay_ms")); g.Q(this,this.J)}; $N0=function(e,N,y){var w=e.videoData.N,E=e.videoData.j;Rf(e.JW.getVideoData())&&e.Ot.T("html5_gapless_fallback_on_qoe_restart")&&M53(e.JW,"pe");if((N==="progressive.net.retryexhausted"||N==="fmt.unplayable"||N==="fmt.decode")&&!e.JW.NO.L&&w&&w.itag==="22")return e.JW.NO.L=!0,e.Qi("qoe.restart",{reason:"fmt.unplayable.22"}),e.JW.TE(),!0;var A=!1;if(e.videoData.isExternallyHostedPodcast){if(A=e.videoData.H$)y.mimeType=A.type,e.Fh("3pp",{url:A.url});y.ns="3pp";e.JW.MP(N,1,"VIDEO_UNAVAILABLE",Xe((new P3(N, y,1)).details));return!0}var T=e.P3+3E4<(0,g.iC)()||e.J.isActive();if(e.Ot.T("html5_empty_src")&&e.videoData.isAd()&&N==="fmt.unplayable"&&/Empty src/.test(""+y.msg))return y.origin="emptysrc",e.Qi("auth",y),!0;T||bw(e.JW.UP())||(y.nonfg="paused",T=!0,e.JW.pauseVideo());(N==="fmt.decode"||N==="fmt.unplayable")&&(E==null?0:W3(E)||Og(E))&&(IuP(e.Ot.L,E.Iq),y.acfallexp=E.Iq,A=T=!0);!T&&e.K>0&&(e.J.start(),T=!0,y.delayed="1",--e.K);E=e.JW.tW;!T&&((w==null?0:Kd(w))||(w==null?0:mu(w)))&&(IuP(e.Ot.L,w.Iq), A=T=!0,y.cfallexp=w.Iq);if(e.Ot.T("html5_ssap_ignore_decode_error_for_next_video")&&g.xK(e.videoData)&&N==="fmt.unplayable"&&y.cid&&y.ccid&&bw(e.JW.UP())){if(y.cid!==y.ccid)return y.ignerr="1",e.Qi("ssap.transitionfailure",y),!0;e.Qi("ssap.transitionfailure",y);if(JW3(e.JW,N))return!0}if(!T)return pl3(e,y);if(e.Ot.T("html5_ssap_skip_decoding_clip_with_incompatible_codec")&&g.xK(e.videoData)&&N==="fmt.unplayable"&&y.cid&&y.ccid&&y.cid!==y.ccid&&bw(e.JW.UP())&&(e.Qi("ssap.transitionfailure",y),JW3(e.JW, N)))return!0;T=!1;e.L?e.P3=(0,g.iC)():T=e.L=!0;var p=e.videoData;if(p.VB){p=p.VB.a_();var C=Date.now()/1E3+1800;p=p6048E5&&FLM(e,"signature");return!1}; FLM=function(e,N){try{window.location.reload(),e.Qi("qoe.restart",{detail:"pr."+N})}catch(y){}}; oeM=function(e,N){N=N===void 0?"fmt.noneavailable":N;var y=e.Ot.L;y.Z=!1;RI(y);e.Qi("qoe.restart",{e:N,detail:"hdr"});e.JW.hT(!0)}; br5=function(e,N,y,w,E,A){this.videoData=e;this.J=N;this.reason=y;this.N=w;this.token=E;this.videoId=A}; hY5=function(e,N,y){this.ph=e;this.m7=N;this.JW=y;this.U=this.Z=this.J=this.j=this.G=this.N=0;this.L=!1;this.D=g.Y2(this.ph.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.K=new Map}; kbM=function(e,N,y){!e.ph.T("html5_tv_ignore_capable_constraint")&&g.I_(e.ph)&&(y=y.compose(cW0(e,N)));return y}; Xl9=function(e,N){var y,w=BAM(e,(y=N.J)==null?void 0:y.videoInfos);y=e.JW.getPlaybackRate();return y>1&&w?(e=c_5(e.ph.L,N.J.videoInfos,y),new Oj(0,e,!0,"o")):new Oj(0,0,!1,"o")}; BAM=function(e,N){return N&&g.I_(e.ph)?N.some(function(y){return y.video.fps>32}):!1}; PzF=function(e,N){var y=e.JW.g0();e.T("html5_use_video_quality_cap_for_ustreamer_constraint")&&y&&y.Sv>0&&Uj(N.videoData.By)&&(e=y.Sv,N.videoData.By=new Oj(0,e,!1,"u"));return N.videoData.By}; cW0=function(e,N){if(g.I_(e.ph)&&rD(e.ph.L,$E.HEIGHT))var y=N.J.videoInfos[0].video.J;else{var w=!!N.J.J;var E;g.Pg(e.ph)&&(E=window.screen&&window.screen.width?new g.l8(window.screen.width,window.screen.height):null);E||(E=e.ph.Zc?e.ph.Zc.clone():e.m7.aV());(s8||HT||w)&&E.scale(g.jV());w=E;Gr(N.videoData)||j5(N.videoData);N=N.J.videoInfos;if(N.length){E=g.Y2(e.ph.experiments,"html5_override_oversend_fraction")||.85;var A=N[0].video;A.projectionType!=="MESH"&&A.projectionType!=="EQUIRECTANGULAR"&& A.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||Bg||(E=.45);e=g.Y2(e.ph.experiments,"html5_viewport_undersend_maximum");for(A=0;A0&&(y=Math.min(y,w));if(w=g.Y2(e.ph.experiments,"html5_max_vertical_resolution")){e=4320;for(E=0;E w&&(e=Math.min(e,A.video.J));if(e<4320){for(E=w=0;E32){E=!0;break a}}E=!1}E&&(y=Math.min(y,w));(w=g.Y2(e.ph.experiments,"html5_live_quality_cap"))&&N.videoData.isLivePlayback&&(y=Math.min(y,w));y=IU9(e,N,y);e=g.Y2(e.ph.experiments,"html5_byterate_soft_cap");return new Oj(0,y===4320?0:y,!1,"d",e)}; zYn=function(e){var N,y,w,E;return g.f(function(A){switch(A.J){case 1:return e.J.J&&typeof((N=navigator.mediaCapabilities)==null?void 0:N.decodingInfo)==="function"?g.D(A,Promise.resolve(),2):A.return(Promise.resolve());case 2:y=g.c(e.J.videoInfos),w=y.next();case 3:if(w.done){A.u9(0);break}E=w.value;return g.D(A,rFM(E),4);case 4:w=y.next(),A.u9(3)}})}; DN1=function(e,N){if(!N.videoData.N||e.T("html5_disable_performance_downgrade"))return!1;Date.now()-e.G>6E4&&(e.N=0);e.N++;e.G=Date.now();if(e.N!==4)return!1;irM(e,N.videoData.N);return!0}; VL5=function(e,N,y,w){if(!N||!y||!N.videoData.N)return!1;var E=g.Y2(e.ph.experiments,"html5_df_downgrade_thresh"),A=e.T("html5_log_media_perf_info");if(!((0,g.iC)()-e.j<5E3?0:A||E>0))return!1;var T=((0,g.iC)()-e.j)/1E3;e.j=(0,g.iC)();y=y.getVideoPlaybackQuality();if(!y)return!1;var p=y.droppedVideoFrames-e.Z,C=y.totalVideoFrames-e.U;e.Z=y.droppedVideoFrames;e.U=y.totalVideoFrames;var r=y.displayCompositedVideoFrames===0?0:y.displayCompositedVideoFrames||-1;A&&e.ph.B9()&&e.JW.Fh("ddf",{dr:y.droppedVideoFrames, de:y.totalVideoFrames,comp:r});if(w)return e.J=0,!1;if((C-p)/T>e.D||!E||g.I_(e.ph))return!1;e.J=(C>60?p/C:0)>E?e.J+1:0;if(e.J!==3)return!1;irM(e,N.videoData.N);e.JW.Fh("dfd",Object.assign({dr:y.droppedVideoFrames,de:y.totalVideoFrames},geH()));return!0}; irM=function(e,N){var y=N.Iq,w=N.video.fps,E=N.video.J-1,A=e.K;N=""+y+(w>49?"p60":w>32?"p48":"");y=cU(y,w,A);E>0&&(y=Math.min(y,E));if(!hj.has(N)&&gQ().includes(N)){var T=y;y=DM();+y[N]>0&&(T=Math.min(+y[N],T));y[N]!==T&&(y[N]=T,g.uY("yt-player-performance-cap",y,2592E3))}else if(hj.has(N)||A==null){a:{T=T===void 0?!0:T;w=gQ().slice();if(T){if(w.includes(N))break a;w.push(N)}else{if(!w.includes(N))break a;w.splice(w.indexOf(N),1)}g.uY("yt-player-performance-cap-active-set",w,2592E3)}hm.set(N,y)}else hj.add(N), A==null||A.set(N,y);e.JW.mK()}; cG=function(e,N){if(!N.J.J)return e.L?new Oj(0,360,!1,"b"):f3;for(var y=!1,w=!1,E=g.c(N.J.videoInfos),A=E.next();!A.done;A=E.next())Kd(A.value)?y=!0:w=!0;y=y&&w;w=0;E=g.Y2(e.ph.experiments,"html5_performance_cap_floor");E=e.ph.N?240:E;N=g.c(N.J.videoInfos);for(A=N.next();!A.done;A=N.next()){var T=A.value;if(!y||!Kd(T))if(A=cU(T.Iq,T.video.fps,e.K),T=T.video.J,Math.max(A,E)>=T){w=T;break}}return new Oj(0,w,!1,"b")}; fUs=function(e,N){var y=e.JW.UP();return y.isInline()&&!N.xn?new Oj(0,480,!1,"v"):y.isBackground()&&z_()/1E3>60&&!g.I_(e.ph)?new Oj(0,360,!1,"v"):f3}; tLE=function(e,N,y){if(e.ph.experiments.gP("html5_disable_client_autonav_cap_for_onesie")&&N.fetchType==="onesie"||g.I_(e.ph)&&(zm(-1)>=1080||N.osid))return f3;var w=g.Y2(e.ph.experiments,"html5_autonav_quality_cap"),E=g.Y2(e.ph.experiments,"html5_autonav_cap_idle_secs");return w&&N.isAutonav&&z_()/1E3>E?(y&&(w=IU9(e,y,w)),new Oj(0,w,!1,"e")):f3}; IU9=function(e,N,y){if(e.T("html5_optimality_defaults_chooses_next_higher")&&y)for(e=N.J.videoInfos,N=1;N=0||(e.provider.JW.getVisibilityState()===3?e.L=!0:(e.J=g.BG(e.provider),e.delay.start()))}; ZrF=function(e){if(!(e.N<0)){var N=g.BG(e.provider),y=N-e.j;e.j=N;e.playerState.state===8?e.playTimeSecs+=y:e.playerState.isBuffering()&&!g.G(e.playerState,16)&&(e.rebufferTimeSecs+=y)}}; xNM=function(e){var N;switch((N=e.ph.playerCanaryStage)==null?void 0:N.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"}}; jlM=function(e){return window.PressureObserver&&new window.PressureObserver(e)}; neF=function(e,N){N=N===void 0?jlM:N;g.x.call(this);var y=this;if(this.L=e)try{this.J=N(function(A){y.N=A.at(-1)}); var w;this.K=(w=this.J)==null?void 0:w.observe("cpu",{sampleInterval:2E3}).catch(function(A){A instanceof DOMException&&(y.j=A)})}catch(A){A instanceof DOMException&&(this.j=A)}else{this.J=N(function(A){y.N=A.at(-1)}); var E;this.K=(E=this.J)==null?void 0:E.observe("cpu",{sampleInterval:2E3})}}; Ql9=function(e){var N={},y=window.h5vcc;N.hwConcurrency=navigator.hardwareConcurrency;e.j&&(N.cpe=e.j.message);e.N&&(N.cpt=e.N.time,N.cps=e.N.state);if(y==null?0:y.cVal)N.cb2s=y.cVal.getValue("CPU.Total.Usage.IntervalSeconds.2"),N.cb5s=y.cVal.getValue("CPU.Total.Usage.IntervalSeconds.5"),N.cb30s=y.cVal.getValue("CPU.Total.Usage.IntervalSeconds.30");return N}; mN_=function(e){var N;g.f(function(y){switch(y.J){case 1:if(!e.L)return g.D(y,e.K,3);g.c5(y,4);return g.D(y,e.K,6);case 6:g.B5(y,3);break;case 4:g.XH(y);y.u9(3);break;case 3:(N=e.J)==null||N.disconnect(),g.hn(y)}})}; KL5=function(e,N){N?Hr0.test(e):(e=g.JE(e),Object.keys(e).includes("cpn"))}; OrE=function(e,N,y,w,E,A,T){var p={format:"RAW"},C={};if(r2(e)&&$3()){if(T){var r;((r=WL_.uaChPolyfill)==null?void 0:r.state.type)!==2?T=null:(T=WL_.uaChPolyfill.state.data.values,T={"Synth-Sec-CH-UA-Arch":T.architecture,"Synth-Sec-CH-UA-Model":T.model,"Synth-Sec-CH-UA-Platform":T.platform,"Synth-Sec-CH-UA-Platform-Version":T.platformVersion,"Synth-Sec-CH-UA-Full-Version":T.uaFullVersion});C=Object.assign(C,T);p.withCredentials=!0}(T=g.Lb("EOM_VISITOR_DATA"))?C["X-Goog-EOM-Visitor-Id"]=T:w?C["X-Goog-Visitor-Id"]= w:g.Lb("VISITOR_DATA")&&(C["X-Goog-Visitor-Id"]=g.Lb("VISITOR_DATA"));y&&(C["X-Goog-PageId"]=y);(w=N.l9)&&!Qy(N)&&(C["X-Goog-AuthUser"]=w);E&&(C.Authorization="Bearer "+E);N.T("enable_datasync_id_header_in_web_vss_pings")&&N.il&&N.datasyncId&&(C["X-YouTube-DataSync-Id"]=N.datasyncId);T||C["X-Goog-Visitor-Id"]||E||y||w?p.withCredentials=!0:N.T("html5_send_cpn_with_options")&&Hr0.test(e)&&(p.withCredentials=!0)}Object.keys(C).length>0&&(p.headers=C);A&&(p.onFinish=A);return Object.keys(p).length>1? p:null}; RY9=function(e,N,y,w,E,A,T,p){$3()&&y.token&&(e=pp(e,{ctt:y.token,cttype:y.p7,mdx_environment:y.mdxEnvironment}));w.T("net_pings_low_priority")&&(N||(N={}),N.priority="low");A||p&&w.T("nwl_skip_retry")?(N==null?N={}:KL5(e,w.T("html5_assert_cpn_with_regex")),T?ae().sendAndWrite(e,N):ae().sendThenWrite(e,N,p)):N?(KL5(e,w.T("html5_assert_cpn_with_regex")),w.T("net_pings_use_fetch")?A7E(e,N):g.zk(e,N)):g.mK(e,E)}; Gbn=function(e){for(var N=[],y=0;y0&&y>0&&!e.N&&e.K<1E7)try{e.j=e.L({sampleInterval:N,maxBufferSize:y});var w;(w=e.j)==null||w.addEventListener("samplebufferfull",function(){return g.f(function(E){if(E.J==1)return g.D(E,e.stop(),2);slJ(e);g.hn(E)})})}catch(E){e.N=LLJ(E.message)}}; PG=function(e,N){var y,w;return!!((y=window.h5vcc)==null?0:(w=y.settings)==null?0:w.set(e,N))}; eM_=function(){var e,N,y,w=(e=window.h5vcc)==null?void 0:(N=e.settings)==null?void 0:(y=N.getPersistentSettingAsString)==null?void 0:y.call(N,"cpu_usage_tracker_intervals");if(w!=null){var E;e=(E=JSON.parse(w))!=null?E:[];E=e.filter(function(r){return r.type==="total"}).map(function(r){return r.seconds}); N=g.c(aU5);for(y=N.next();!y.done;y=N.next())y=y.value,E.indexOf(y)===-1&&e.push({type:"total",seconds:y});var A,T;(A=window.h5vcc)==null||(T=A.settings)==null||T.set("cpu_usage_tracker_intervals_enabled",1);var p,C;(p=window.h5vcc)==null||(C=p.settings)==null||C.set("cpu_usage_tracker_intervals",JSON.stringify(e))}}; NE_=function(){var e=window.H5vccPlatformService,N="";if(e&&e.has("dev.cobalt.coat.clientloginfo")&&(e=e.open("dev.cobalt.coat.clientloginfo",function(){}))){var y=e.send(new ArrayBuffer(0)); y&&(N=String.fromCharCode.apply(String,g.B(new Uint8Array(y))));e.close()}return N}; g.vG=function(e,N){g.x.call(this);var y=this;this.provider=e;this.logger=new g.RE("qoe");this.J={};this.sequenceNumber=1;this.Z=NaN;this.k9="N";this.D=this.OD=this.ql=this.SR=this.L=0;this.pX=this.aq=this.G=this.Et="";this.jn=this.Zl=NaN;this.FZ=0;this.LX=-1;this.PY=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.Kx=this.isEmbargoed=this.i9=this.isOffline=this.isBuffering=!1;this.CC=[];this.Kh=null;this.Dl=this.K=this.VB=this.U=!1;this.N=-1;this.Wk=!1;this.U2=new g.e6(this.flB,750,this);this.Ng= this.adCpn=this.qg=this.contentCpn="";this.adFormat=void 0;this.YO=0;this.NK=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.jp=new Set(["gd"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.a9=!1;this.Xz=NaN;this.Rq=0;this.dT=!1;this.l9=0;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.Y_=!1;this.lk={nP:function(E){y.nP(E)}, PeG:function(){return y.j}, YI:function(){return y.contentCpn}, jSk:function(){return y.qg}, reportStats:function(){y.reportStats()}, NLh:function(){return y.J.cat}, JK:function(E){return y.J[E]}, NSG:function(){return y.l9}}; var w=g.Y2(this.provider.ph.experiments,"html5_qoe_proto_mock_length");w&&!dg.length&&(dg=Gbn(w));g.Q(this,this.U2);try{navigator.getBattery().then(function(E){y.Kh=E})}catch(E){}g.IU(this,0,"vps",["N"]); e.ph.B9()&&(this.Rq=(0,g.iC)(),this.Xz=g.hE(function(){var E=(0,g.iC)(),A=E-y.Rq;A>500&&y.Fh("vmlock",{diff:A.toFixed()});y.Rq=E},250)); e.JW.bP()&&N&&(this.l9=N-Math.round(g.BG(e)*1E3));this.provider.videoData.S_&&(this.remoteControlMode=yJF[this.provider.videoData.S_]||0);this.provider.videoData.N2&&(N=gQ9(this.provider.videoData.N2),N==null?0:N.length)&&(this.remoteConnectedDevices=N);if(e.ph.B9()||e.T("html5_log_cpu_info"))this.Ut=new neF(e.T("html5_catch_cpu_info_errors")),g.Q(this,this.Ut);N=g.Y2(e.ph.experiments,"html5_js_self_profiler_sample_interval_ms");e=g.Y2(e.ph.experiments,"html5_js_self_profiler_max_samples");N>0&&e> 0&&(this.Bk=new X$(N,e),g.Q(this,this.Bk))}; g.IU=function(e,N,y,w){var E=e.J[y];E||(E=[],e.J[y]=E);E.push(N.toFixed(3)+":"+w.join(":"))}; wO5=function(e,N){var y=e.adCpn||e.provider.videoData.clientPlaybackNonce,w=e.provider.getCurrentTime(y);g.IU(e,N,"cmt",[w.toFixed(3)]);w=e.provider.eN(y);if(e.j&&w*1E3>e.j.Ij+100&&e.j){var E=e.j;y=E.isAd;w=w*1E3-E.Ij;e.dI=N*1E3-E.ys9-w-E.JsB;E=(0,g.iC)()-w;N=e.dI;w=e.provider.videoData;var A=w.isAd();if(y||A){A=(y?"ad":"video")+"_to_"+(A?"ad":"video");var T={};w.Z&&(T.cttAuthInfo={token:w.Z,videoId:w.videoId});T.startTime=E-N;QQ(A,T);g.nV({targetVideoId:w.videoId,targetCpn:w.clientPlaybackNonce}, A);jZ("pbs",E,A)}else E=e.provider.JW.s4(),E.Z!==w.clientPlaybackNonce?(E.L=w.clientPlaybackNonce,E.N=N):w.e_()||g.uA(new g.Gh("CSI timing logged before gllat",{cpn:w.clientPlaybackNonce}));e.Fh("gllat",{l:e.dI.toFixed(),prev_ad:+y});delete e.j}}; zt=function(e,N){N=N===void 0?NaN:N;N=N>=0?N:g.BG(e.provider);var y=e.provider.JW.gG(),w=y.xS-(e.Zl||0);w>0&&g.IU(e,N,"bwm",[w,(y.RM-(e.jn||0)).toFixed(3)]);isNaN(e.Zl)&&y.xS&&e.isOffline&&e.nP(!1);e.Zl=y.xS;e.jn=y.RM;isNaN(y.bandwidthEstimate)||g.IU(e,N,"bwe",[y.bandwidthEstimate.toFixed(0)]);e.provider.ph.B9()&&Object.keys(y.J).length!==0&&e.Fh("bwinfo",y.J);if(e.provider.ph.B9()||e.provider.ph.T("html5_log_meminfo"))w=P0M(),Object.values(w).some(function(A){return A!==void 0})&&e.Fh("meminfo", w); if(e.provider.ph.B9()||e.provider.ph.T("html5_log_cpu_info")){var E;(w=(E=e.Ut)==null?void 0:Ql9(E))&&Object.values(w).some(function(A){return A!=null})&&e.Fh("cpuinfo",w)}e.Bk&&e.Fh("jsprof",e.Bk.flush()); e.Kh&&g.IU(e,N,"bat",[e.Kh.level,e.Kh.charging?"1":"0"]);E=e.provider.JW.getVisibilityState();e.LX!==E&&(g.IU(e,N,"vis",[E]),e.LX=E);wO5(e,N);(E=EmE(e.provider))&&E!==e.FZ&&(g.IU(e,N,"conn",[E]),e.FZ=E);AJn(e,N,y)}; AJn=function(e,N,y){if(!isNaN(y.Ze)){var w=y.Ze;y.N96E3&&(new g.e6(e.reportStats,0,e)).start()}; pO3=function(e){e.provider.videoData.NK&&iw(e,"prefetch");e.provider.videoData.jn&&e.Fh("reload",{r:e.provider.videoData.reloadReason,ct:e.provider.videoData.jn});e.provider.videoData.Kx&&iw(e,"monitor");e.provider.videoData.isLivePlayback&&iw(e,"live");QY&&iw(e,"streaming");e.provider.videoData.S_&&e.Fh("ctrl",{mode:e.provider.videoData.S_},!0);if(e.provider.videoData.N2){var N=e.provider.videoData.N2.replace(/,/g,"_");e.Fh("ytp",{type:N},!0)}e.provider.videoData.JF&&(N=e.provider.videoData.JF.replace(/,/g, "."),e.Fh("ytrexp",{ids:N},!0));var y=e.provider.videoData;N=e.provider.ph.T("enable_white_noise")||e.provider.ph.T("enable_webgl_noop");y=g.JY(y)||g.cF(y)||g.kI(y)||g.BF(y);(N||y)&&(N=(0,g.D3)())&&(e.J.gpu=[N]);j5(e.provider.videoData)&&g.IU(e,g.BG(e.provider),"dt",["1"]);e.provider.ph.B9()&&(N=(0,g.iC)()-e.provider.ph.Fr,e.Fh("playerage",{secs:Math.pow(1.6,Math.round(Math.log(N/1E3)/Math.log(1.6))).toFixed()}));e.K=!0;e.Z=g.hE(function(){e.reportStats()},1E4)}; rJs=function(e,N,y){var w=g.BG(e.provider);CsP(e,w,N,0,y);zt(e,w);JJ1(e)}; CsP=function(e,N,y,w,E){var A=e.provider.ph.J.cbrver;e.provider.ph.J.cbr==="Chrome"&&/^96[.]/.test(A)&&y==="net.badstatus"&&/rc\.500/.test(E)&&$oM(e,3);e.provider.ph.T("html5_use_ump")&&/b248180278/.test(E)&&$oM(e,4);A=e.provider.getCurrentTime(e.adCpn||e.provider.videoData.clientPlaybackNonce);w=w===1?"fatal":"";y=[y,w,A.toFixed(3)];w&&(E+=";a6s."+C2());E&&y.push(YB3(E));g.IU(e,N,"error",y);e.K=!0}; MD0=function(e){e.N>=0||(e.provider.ph.WE||e.provider.JW.getVisibilityState()!==3?e.N=g.BG(e.provider):e.Wk=!0)}; ljH=function(e,N,y,w){if(y!==e.k9){N=10&&e.playTimeSecs<=180&&(e.J.qoealert=["1"],e.Kx=!0)),y!=="B"||e.k9!=="PL"&&e.k9!=="PB"||(e.isBuffering=!0),e.L=N);e.k9==="PL"&&(y==="B"||y==="S")||e.provider.ph.B9()?zt(e,N):(e.a9||y!=="PL"||(e.a9=!0,AJn(e,N,e.provider.JW.gG())),wO5(e,N));y==="PL"&&g.NA(e.U2);var E=[y];y==="S"&&w&&E.push("ss."+w);g.IU(e,N,"vps",E);e.k9=y; e.SR=N;e.L=N;e.K=!0}}; iw=function(e,N){var y=e.J.cat||[];y.push(N);e.J.cat=y}; gg=function(e,N,y,w,E,A){var T=g.BG(e.provider);y!==1&&y!==3&&y!==5||g.IU(e,T,"vps",[e.k9]);var p=e.J.xvt||[];p.push("t."+T.toFixed(3)+";m."+A.toFixed(3)+";g."+N+";tt."+y+";np.0;c."+w+";d."+E);e.J.xvt=p}; $oM=function(e,N){if(!e.Dl){var y=e.J.fcnz;y||(y=[],e.J.fcnz=y);y.push(String(N));e.Dl=!0}}; YB3=function(e){/[^a-zA-Z0-9;.!_-]/.test(e)&&(e=e.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return e}; FpH=function(e){this.provider=e;this.G=!1;this.J=0;this.j=-1;this.Qy=NaN;this.K=0;this.segments=[];this.Z=this.L=0;this.previouslyEnded=!1;this.D=this.provider.JW.getVolume();this.U=this.provider.JW.isMuted()?1:0;this.N=VD(this.provider)}; fW=function(e){e.N.startTime=e.K;e.N.endTime=e.J;var N=!1;e.segments.length&&g.Kq(e.segments).isEmpty()?(e.segments[e.segments.length-1].previouslyEnded&&(e.N.previouslyEnded=!0),e.segments[e.segments.length-1]=e.N,N=!0):e.segments.length&&e.N.isEmpty()||(e.segments.push(e.N),N=!0);N?e.N.endTime===0&&(e.previouslyEnded=!1):e.N.previouslyEnded&&(e.previouslyEnded=!0);e.L+=e.J-e.K;e.N=VD(e.provider);e.N.previouslyEnded=e.previouslyEnded;e.previouslyEnded=!1;e.K=e.J}; om5=function(e){SBJ(e);e.Z=g.hE(function(){e.update()},100); e.Qy=g.BG(e.provider);e.N=VD(e.provider)}; SBJ=function(e){g.k3(e.Z);e.Z=NaN}; bHn=function(e,N,y){y-=e.Qy;return N===e.J&&y>.5}; hM3=function(e,N,y,w){this.ph=N;this.pX=y;this.segments=[];this.experimentIds=[];this.Bk=this.SR=this.isFinal=this.delayThresholdMet=this.a9=this.LX=this.autoplay=this.autonav=!1;this.FZ="yt";this.Z=[];this.G=this.D=null;this.sendVisitorIdHeader=this.Wk=!1;this.U=this.pageId="";this.L=y==="watchtime";this.K=y==="playback";this.qg=y==="atr";this.UY=y==="engage";this.sendVisitorIdHeader=!1;this.uri=this.qg?"/api/stats/"+y:"//"+N.Li+"/api/stats/"+y;w&&(this.SR=w.fs,w.rtn&&(this.G=w.rtn),this.L?(this.playerState= w.state,w.rti>0&&(this.D=w.rti)):(this.WE=w.mos,this.NG=w.volume,w.at&&(this.adType=w.at)),w.autonav&&(this.autonav=w.autonav),w.inview!=null&&(this.PY=w.inview),w.size&&(this.jn=w.size),w.playerwidth&&(this.playerWidth=w.playerwidth),w.playerheight&&(this.playerHeight=w.playerheight));this.jp=g.DA(N.J);this.U=ms(N.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.U==="all"||this.U==="once")this.dT=g.DA(N.FZ);this.im=N.VB;this.experimentIds=SV1(N.experiments);this.Et=N.SR;this.FZ=N.Ng;this.region= N.region;this.userAge=N.userAge;this.VB=N.YB;this.CC=z_();this.sendVisitorIdHeader=N.sendVisitorIdHeader;this.l9=N.T("vss_pings_using_networkless")||N.T("kevlar_woffle");this.sY=N.T("vss_final_ping_send_and_write");this.i9=N.T("vss_use_send_and_write");this.pageId=N.pageId;this.Fr=N.T("vss_playback_use_send_and_write");N.livingRoomAppMode&&(this.livingRoomAppMode=N.livingRoomAppMode);this.jN=N.j&&N.T("embeds_append_synth_ch_headers");g.hR(N)&&(this.aq=N.i9);g.Yh(g.zX(N))&&this.Z.push(1);this.accessToken= g.qK(e);e.sR[this.pX]?this.j=e.sR[this.pX]:e.sR.playback&&(this.j=e.sR.playback);this.adFormat=e.adFormat;this.adQueryId=e.adQueryId;this.autoplay=uk(e);this.K&&(this.LX=(e.T("html5_enable_log_server_autoplay")||e.T("enable_cleanup_masthead_autoplay_hack_fix"))&&e.rq&&I$(e)==="adunit"?!0:!1);this.autonav=e.isAutonav||this.autonav;this.contentVideoId=VG(e);this.clientPlaybackNonce=e.clientPlaybackNonce;this.a9=e.hs;e.Z&&(this.Ng=e.Z,this.Kx=e.zN);e.mdxEnvironment&&(this.mdxEnvironment=e.mdxEnvironment); this.J=e.Bk;this.Y_=e.Y_;e.N&&(this.NK=e.N.itag,e.j&&e.j.itag!==this.NK&&(this.Dl=e.j.itag));e.J&&yo(e.J)&&(this.offlineDownloadUserChoice="1");this.eventLabel=I$(e);this.Bk=e.im?!1:e.UY;this.YO=e.Sz;if(N=MK(e))this.Js=N;this.DD=e.vy;this.partnerId=e.partnerId;this.eventId=e.eventId;this.playlistId=e.Yq||e.playlistId;this.NB=e.NB;this.S_=e.S_;this.N2=e.N2;this.jI=e.jI;this.subscribed=e.subscribed;this.videoId=e.videoId;this.videoMetadata=e.videoMetadata;this.visitorData=e.visitorData;this.osid=e.osid; this.cV=e.cV;this.referrer=e.referrer;this.v2=e.Im||e.v2;this.Ut=e.gW;this.lV=e.lV;this.userGenderAge=e.userGenderAge;this.J4=e.J4;this.embedsRct=e.embedsRct;this.embedsRctn=e.embedsRctn;g.hR(this.ph)&&e.mutedAutoplay&&(e.T("embeds_enable_full_length_inline_muted_autoplay")&&e.mutedAutoplayDurationMode===2&&e.limitedPlaybackDurationInSeconds===0&&e.endSeconds===0?this.Z.push(7):this.Z.push(2));e.isEmbedsShortsMode(new g.l8(this.playerWidth,this.playerHeight),!!this.playlistId)&&this.Z.push(3);g.Os(e)&& this.Z.push(4);this.Zl=e.hK;e.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=e.compositeLiveIngestionOffsetToken)}; cJ5=function(e,N){var y=e.sendVisitorIdHeader?e.visitorData:void 0;return g.GX(e.ph,e.accessToken).then(function(w){return OrE(e.uri,e.ph,e.pageId,y,w,N,e.jN)})}; XOs=function(e,N){return function(){e.ph.T("html5_simplify_pings")?(e.J=e.Rq,e.U2=N(),e.CC=0,e.send()):cJ5(e).then(function(y){var w=kGH(e);w.cmt=w.len;w.lact="0";var E=N().toFixed(3);w.rt=Number(E).toString();w=g.Qb(e.uri,w);e.ph.T("vss_through_gel_double")&&BEs(w);e.l9?(y==null&&(y={}),e.i9?ae().sendAndWrite(w,y):ae().sendThenWrite(w,y)):y?g.zk(w,y):g.mK(w)})}}; kGH=function(e){var N={ns:e.FZ,el:e.eventLabel,cpn:e.clientPlaybackNonce,ver:2,cmt:e.N(e.J),fmt:e.NK,fs:e.SR?"1":"0",rt:e.N(e.U2),adformat:e.adFormat,content_v:e.contentVideoId,euri:e.im,lact:e.CC,live:e.Js,cl:(725027312).toString(),mos:e.WE,state:e.playerState,volume:e.NG};e.subscribed&&(N.subscribed="1");Object.assign(N,e.jp);e.U==="all"?Object.assign(N,e.dT):e.U==="once"&&e.K&&Object.assign(N,e.dT);e.autoplay&&(N.autoplay="1");e.LX&&(N.sautoplay="1");e.a9&&(N.dni="1");!e.L&&e.aq&&(N.epm=Ps5[e.aq]); e.isFinal&&(N["final"]="1");e.Bk&&(N.splay="1");e.Y_&&(N.delay=e.Y_);e.Et&&(N.hl=e.Et);e.region&&(N.cr=e.region);e.userGenderAge&&(N.uga=e.userGenderAge);e.userAge!==void 0&&e.VB&&(N.uga=e.VB+e.userAge);e.Rq!==void 0&&(N.len=e.N(e.Rq));!e.L&&e.experimentIds.length>0&&(N.fexp=e.experimentIds.toString());e.G!==null&&(N.rtn=e.N(e.G));e.v2&&(N.feature=e.v2);e.S_&&(N.ctrl=e.S_);e.N2&&(N.ytr=e.N2);e.Dl&&(N.afmt=e.Dl);e.offlineDownloadUserChoice&&(N.ODUC=e.offlineDownloadUserChoice);e.Xz&&(N.lio=e.N(e.Xz)); e.L?(N.idpj=e.YO,N.ldpj=e.DD,e.delayThresholdMet&&(N.dtm="1"),e.D!=null&&(N.rti=e.N(e.D)),e.J4&&(N.ald=e.J4),e.compositeLiveIngestionOffsetToken&&(N.clio=e.compositeLiveIngestionOffsetToken)):e.adType!==void 0&&(N.at=e.adType);e.jn&&(e.K||e.L)&&(N.size=e.jn);e.K&&e.Z.length&&(N.pbstyle=e.Z.join(","));e.PY!=null&&(e.K||e.L)&&(N.inview=e.N(e.PY));e.L&&(N.volume=tj(e,g.dn(e.segments,function(w){return w.volume})),N.st=tj(e,g.dn(e.segments,function(w){return w.startTime})),N.et=tj(e,g.dn(e.segments,function(w){return w.endTime})), DR(e.segments,function(w){return w.playbackRate!==1})&&(N.rate=tj(e,g.dn(e.segments,function(w){return w.playbackRate}))),DR(e.segments,function(w){return w.J!=="-"})&&(N.als=g.dn(e.segments,function(w){return w.J}).join(",")),DR(e.segments,function(w){return w.previouslyEnded})&&(N.pe=g.dn(e.segments,function(w){return""+ +w.previouslyEnded}).join(","))); N.muted=tj(e,g.dn(e.segments,function(w){return w.muted?1:0})); DR(e.segments,function(w){return w.visibilityState!==0})&&(N.vis=tj(e,g.dn(e.segments,function(w){return w.visibilityState}))); DR(e.segments,function(w){return w.connectionType!==0})&&(N.conn=tj(e,g.dn(e.segments,function(w){return w.connectionType}))); DR(e.segments,function(w){return w.N!==0})&&(N.blo=tj(e,g.dn(e.segments,function(w){return w.N}))); DR(e.segments,function(w){return!!w.K})&&(N.blo=g.dn(e.segments,function(w){return w.K}).join(",")); DR(e.segments,function(w){return!!w.compositeLiveStatusToken})&&(N.cbs=g.dn(e.segments,function(w){return w.compositeLiveStatusToken}).join(",")); DR(e.segments,function(w){return w.L!=="-"})&&(N.cc=g.dn(e.segments,function(w){return w.L}).join(",")); DR(e.segments,function(w){return w.clipId!=="-"})&&(N.clipid=g.dn(e.segments,function(w){return w.clipId}).join(",")); if(DR(e.segments,function(w){return!!w.j})){var y="au"; e.K&&(y="au_d");N[y]=g.dn(e.segments,function(w){return w.j}).join(",")}$3()&&e.Ng&&(N.ctt=e.Ng,N.cttype=e.Kx,N.mdx_environment=e.mdxEnvironment); e.UY&&(N.etype=e.Kh!==void 0?e.Kh:0);e.Ut&&(N.uoo=e.Ut);e.livingRoomAppMode&&e.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(N.clram=dos[e.livingRoomAppMode]||e.livingRoomAppMode);e.j?Ijn(e,N):(N.docid=e.videoId,N.referrer=e.referrer,N.ei=e.eventId,N.of=e.cV,N.osid=e.osid,N.vm=e.videoMetadata,e.adQueryId&&(N.aqi=e.adQueryId),e.autonav&&(N.autonav="1"),e.playlistId&&(N.list=e.playlistId),e.jI&&(N.ssrt="1"),e.lV&&(N.upt=e.lV));e.K&&(e.embedsRct&&(N.rct=e.embedsRct),e.embedsRctn&&(N.rctn= e.embedsRctn),e.compositeLiveIngestionOffsetToken&&(N.clio=e.compositeLiveIngestionOffsetToken));e.Zl&&(N.host_cpn=e.Zl);return N}; Ijn=function(e,N){if(N&&e.j){var y=new Set(["q","feature","mos"]),w=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),E=new Set(["aqi","autonav","list","ssrt","upt"]);e.j.ns==="3pp"&&(N.ns="3pp");for(var A=g.c(Object.keys(e.j)),T=A.next();!T.done;T=A.next())T=T.value,w.has(T)||y.has(T)||E.has(T)&&!e.j[T]||(N[T]=e.j[T])}}; tj=function(e,N){return g.dn(N,e.N).join(",")}; BEs=function(e){e.indexOf("watchtime")!==-1&&g.$$("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:e}})}; vmn=function(e,N){e.attestationResponse&&cJ5(e).then(function(y){y=y||{};y.method="POST";y.postParams={atr:e.attestationResponse};e.l9?e.i9?ae().sendAndWrite(N,y):ae().sendThenWrite(N,y):g.zk(N,y)})}; uw=function(e){g.x.call(this);this.provider=e;this.Z="paused";this.L=NaN;this.G=[10,10,10,40];this.D=this.U=0;this.Kh=this.l9=this.qg=this.Ng=this.K=!1;this.N=this.j=NaN;this.J=new FpH(e)}; gmJ=function(e){if(!e.K){e.provider.videoData.VM===16623&&g.uA(Error("Playback for EmbedPage"));var N=qt(e,"playback");a:{if(e.provider.ph.T("web_player_use_server_vss_schedule")){var y,w=(y=e.provider.videoData.getPlayerResponse())==null?void 0:y.playbackTracking,E=w==null?void 0:w.videostatsScheduledFlushWalltimeSeconds;w=w==null?void 0:w.videostatsDefaultFlushIntervalSeconds;if(E&&E.length>0&&w){y=[];var A=e.provider.videoData.Sz,T=e.provider.videoData.vy,p=-A;E=g.c(E);for(var C=E.next();!C.done;C= E.next())C=C.value,y.push(C-p),p=C;y.push(w+T-A);y.push(w);e.G=y;break a}}e.G=[10+e.provider.videoData.Sz,10,10,40+e.provider.videoData.vy-e.provider.videoData.Sz,40]}om5(e.J);N.G=Z3(e);e.N>0&&(N.J-=e.N);N.send();e.provider.videoData.HJ&&(N=e.provider.ph,w=e.provider.videoData,y={html5:"1",video_id:w.videoId,cpn:w.clientPlaybackNonce,ei:w.eventId,ptk:w.HJ,oid:w.iF,ptchn:w.xT,pltype:w.d_,content_v:VG(w)},w.ir&&Object.assign(y,{m:w.ir}),N=g.Qb(N.qg+"ptracking",y),zMJ(e,N));e.provider.videoData.Y_|| (iHn(e),DoJ(e),e.Y7());e.K=!0;N=e.J;N.J=N.provider.JW.eN();N.Qy=g.BG(N.provider);!(N.K===0&&N.J<5)&&N.J-N.K>2&&(N.K=N.J);N.G=!0;e.provider.ph.T("html5_log_vss_details")&&e.provider.JW.Fh("vssinit",{})}}; Z3=function(e,N){N=N===void 0?NaN:N;var y=g.BG(e.provider);N=isNaN(N)?y:N;N=Math.ceil(N);var w=e.G[e.U];e.U+11E3;!(A.length>1)&&A[0].isEmpty()||p||(T.G=Z3(e,E));T.send();e.D++}},(E-y)*1E3); return e.j=E}; x4=function(e){g.cL(e.L);e.L=NaN}; VD5=function(e){e.J.update();e=e.J;e.segments.length&&e.J===e.K||fW(e);var N=e.segments;e.segments=[];return N}; qt=function(e,N){var y=tD5(e.provider);Object.assign(y,{state:e.Z});N=new hM3(e.provider.videoData,e.provider.ph,N,y);N.J=e.provider.JW.eN();y=e.provider.videoData.clientPlaybackNonce;N.J=e.provider.JW.UV(y);e.provider.videoData.isLivePlayback||(N.Rq=e.provider.JW.getDuration(y));e.provider.videoData.J&&(y=e.provider.videoData.J.OY(N.J))&&(N.Xz=y-N.J);N.U2=g.BG(e.provider);N.segments=[VD(e.provider)];return N}; fjH=function(e,N){var y=qt(e,"watchtime");uE9(e)&&(y.delayThresholdMet=!0,e.qg=!0);if(e.N>0){for(var w=g.c(N),E=w.next();!E.done;E=w.next())E=E.value,E.startTime-=e.N,E.endTime-=e.N;y.J-=e.N}else y.J=e.J.K1();y.segments=N;return y}; jf=function(e,N){var y=qBn(e,!isNaN(e.j));N&&(e.j=NaN);return y}; qBn=function(e,N){var y=fjH(e,VD5(e));!isNaN(e.j)&&N&&(y.D=e.j);return y}; uE9=function(e){var N;if(N=e.provider.videoData.isLoaded()&&e.provider.videoData.Y_&&e.K&&!e.qg)N=e.J,N=N.L+N.provider.JW.eN()-N.K>=e.provider.videoData.Y_;return!!N}; iHn=function(e){e.provider.videoData.youtubeRemarketingUrl&&!e.l9&&(zMJ(e,e.provider.videoData.youtubeRemarketingUrl),e.l9=!0)}; DoJ=function(e){e.provider.videoData.googleRemarketingUrl&&!e.Kh&&(zMJ(e,e.provider.videoData.googleRemarketingUrl),e.Kh=!0)}; ZHs=function(e){e.provider.ph.T("html5_log_vss_details")&&e.provider.JW.Fh("vssfi",{});if(!e.Ss()&&e.K){e.Z="paused";var N=jf(e);N.isFinal=!0;N.send();e.dispose()}}; xoF=function(e,N){if(!e.Ss())if(g.G(N.state,2)||g.G(N.state,512)){if(e.Z="paused",g.FD(N,2)||g.FD(N,512))g.FD(N,2)&&(e.J.previouslyEnded=!0),e.K&&(x4(e),jf(e).send(),e.j=NaN)}else if(g.G(N.state,8)){e.Z="playing";var y=e.K&&isNaN(e.L)?Z3(e):NaN;!isNaN(y)&&(lp(N,64)<0||lp(N,512)<0)&&(e=qBn(e,!1),e.G=y,e.send())}else e.Z="paused"}; j9P=function(e,N,y){if(!e.Ng){y||(y=qt(e,"atr"));y.attestationResponse=N;try{y.send()}catch(w){if(w.message!=="Unknown Error")throw w;}e.Ng=!0}}; zMJ=function(e,N){var y=e.provider.ph;g.GX(e.provider.ph,g.qK(e.provider.videoData)).then(function(w){var E=e.provider.ph.pageId,A=e.provider.ph.sendVisitorIdHeader?e.provider.videoData.visitorData:void 0,T=e.provider.ph.T("vss_pings_using_networkless")||e.provider.ph.T("kevlar_woffle"),p=e.provider.ph.T("allow_skip_networkless");w=OrE(N,y,E,A,w);RY9(N,w,{token:e.provider.videoData.Z,p7:e.provider.videoData.zN,mdxEnvironment:e.provider.videoData.mdxEnvironment},y,void 0,T&&!p,!1,!0)})}; nmH=function(){this.endTime=this.startTime=-1;this.L="-";this.playbackRate=1;this.visibilityState=0;this.j="";this.N=0;this.compositeLiveStatusToken=this.K=void 0;this.volume=this.connectionType=0;this.muted=!1;this.J=this.clipId="-";this.previouslyEnded=!1}; nW=function(e,N,y){this.videoData=e;this.ph=N;this.JW=y;this.J=void 0}; g.BG=function(e){return Q9s(e)()}; Q9s=function(e){if(!e.J){var N=g.LM(function(w){var E=(0,g.iC)();w&&E<=631152E6&&(e.JW.Fh("ytnerror",{issue:28799967,value:""+E}),E=(new Date).getTime()+2);return E},e.ph.T("html5_validate_yt_now")),y=N(); e.J=function(){return Math.round(N()-y)/1E3}; e.JW.Vt()}return e.J}; tD5=function(e){var N=e.JW.Am()||{};N.fs=e.JW.Xi();N.volume=e.JW.getVolume();N.muted=e.JW.isMuted()?1:0;N.mos=N.muted;N.clipid=e.JW.yG();var y;N.playerheight=((y=e.JW.getPlayerSize())==null?void 0:y.height)||0;var w;N.playerwidth=((w=e.JW.getPlayerSize())==null?void 0:w.width)||0;e=e.videoData;y={};e.N&&(y.fmt=e.N.itag,e.j&&(e.LX?e.j.itag!==e.N.itag:e.j.itag!=e.N.itag)&&(y.afmt=e.j.itag));y.ei=e.eventId;y.list=e.playlistId;y.cpn=e.clientPlaybackNonce;e.videoId&&(y.v=e.videoId);e.xI&&(y.infringe=1); (e.im?0:e.UY)&&(y.splay=1);(w=MK(e))&&(y.live=w);e.rq&&(y.sautoplay=1);e.IV&&(y.autoplay=1);e.NB&&(y.sdetail=e.NB);e.partnerId&&(y.partnerid=e.partnerId);e.osid&&(y.osid=e.osid);e.hX&&(y.cc=g.PRs(e.hX));return Object.assign(N,y)}; EmE=function(e){var N=JF5();if(N)return moP[N]||moP.other;if(g.I_(e.ph)){e=navigator.userAgent;if(/[Ww]ireless[)]/.test(e))return 3;if(/[Ww]ired[)]/.test(e))return 30}return 0}; VD=function(e){var N=new nmH,y;N.L=((y=tD5(e).cc)==null?void 0:y.toString())||"-";N.playbackRate=e.JW.getPlaybackRate();y=e.JW.getVisibilityState();y!==0&&(N.visibilityState=y);e.ph.a9&&(N.N=1);N.K=e.videoData.Xm;N.compositeLiveStatusToken=e.videoData.compositeLiveStatusToken;y=e.JW.getAudioTrack();y.Vl&&y.Vl.id&&y.Vl.id!=="und"&&(N.j=y.Vl.id);N.connectionType=EmE(e);N.volume=e.JW.getVolume();N.muted=e.JW.isMuted();N.clipId=e.JW.yG()||"-";N.J=e.videoData.X1||"-";return N}; g.QD=function(e,N){g.x.call(this);var y=this;this.provider=e;this.j=!1;this.K=new Map;this.k9=new g.a8;this.lk={Y0s:function(){return y.qoe}, Jm9:function(){return y.J}, z4t:function(){return y.N}}; this.provider.videoData.WG()&&!this.provider.videoData.rk&&(this.J=new uw(this.provider),this.J.N=this.provider.videoData.YO/1E3,g.Q(this,this.J),this.qoe=new g.vG(this.provider,N),g.Q(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.b6=this.provider.videoData.clientPlaybackNonce)&&this.K.set(this.b6,this.J));if(e.ph.playerCanaryState==="canary"||e.ph.playerCanaryState==="holdback")this.N=new k4(this.provider),g.Q(this,this.N)}; HHs=function(e){return!!e.J&&!!e.qoe}; mS=function(e){e.N&&qe3(e.N);e.qoe&&MD0(e.qoe)}; Kpn=function(e){if(e.qoe){e=e.qoe;for(var N=e.provider.videoData,y=e.provider.ph,w=g.c(y.Cl),E=w.next();!E.done;E=w.next())iw(e,E.value);if(e.provider.T("html5_enable_qoe_cat_list"))for(w=g.c(N.Em),E=w.next();!E.done;E=w.next())iw(e,E.value);else N.Cl&&iw(e,e.provider.videoData.Cl);N.Cx()&&(w=N.J,wd(N)&&iw(e,"manifestless"),w&&Y_(w)&&iw(e,"live-segment-"+Y_(w).toFixed(1)));L3(N)?iw(e,"sabr"):e.LG(TC(N));if(Zi(N)||N.Au())N.Au()&&iw(e,"ssa"),iw(e,"lifa");N.gatewayExperimentGroup&&(w=N.gatewayExperimentGroup, w==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?w="spkadtrt":w==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(w="spkadctrl"),iw(e,w));y.Ng!=="yt"&&(e.J.len=[N.lengthSeconds.toFixed(2)]);N.cotn&&!j5(N)&&e.nP(!0);y.B9()&&(N=NE_())&&e.Fh("cblt",{m:N});if(y.T("html5_log_screen_diagonal")){y=e.Fh;var A;N=((A=window.H5vccScreen)==null?0:A.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;y.call(e,"cbltdiag",{v:N})}}}; WpE=function(e){if(e.provider.JW.bP()){if(e.j)return;e.j=!0}e.J&&gmJ(e.J);if(e.N){e=e.N;var N=g.BG(e.provider);e.J<0&&(e.J=N,e.delay.start());e.N=N;e.j=N}}; OH9=function(e,N){e.J&&(e=e.J,N===58?e.J.update():e.K&&(x4(e),jf(e).send(),e.j=NaN))}; RMs=function(e,N){if(g.FD(N,1024)||g.FD(N,512)||g.FD(N,4)){if(e.N){var y=e.N;y.N>=0||(y.J=-1,y.delay.stop())}e.qoe&&(y=e.qoe,y.U||(y.N=-1))}if(e.provider.videoData.enableServerStitchedDai&&e.b6){var w;(w=e.K.get(e.b6))==null||xoF(w,N)}else e.J&&xoF(e.J,N);if(e.qoe){w=e.qoe;y=N.state;var E=g.BG(w.provider),A=w.getPlayerState(y);ljH(w,E,A,y.seekSource||void 0);A=y.qS;g.G(y,128)&&A&&(A.Hu=A.Hu||"",CsP(w,E,A.errorCode,A.l5,A.Hu));(g.G(y,2)||g.G(y,128))&&w.reportStats(E);y.isPlaying()&&!w.U&&(w.N>=0&& (w.J.user_intent=[w.N.toString()]),w.U=!0);JJ1(w)}e.N&&(w=e.N,ZrF(w),w.playerState=N.state,w.N>=0&&g.FD(N,16)&&w.seekCount++,N.state.isError()&&w.send());e.provider.JW.bP()&&(e.k9=N.state)}; GGE=function(e){if(e.provider.videoData.enableServerStitchedDai&&e.b6){var N;(N=e.K.get(e.b6))!=null&&fW(N.J)}else e.J&&fW(e.J.J)}; Uo3=function(e){e.N&&e.N.send();if(e.qoe){var N=e.qoe;if(N.K){N.k9==="PL"&&(N.k9="N");var y=g.BG(N.provider);g.IU(N,y,"vps",[N.k9]);N.U||(N.N>=0&&(N.J.user_intent=[N.N.toString()]),N.U=!0);N.provider.ph.B9()&&N.Fh("finalized",{});N.i9=!0;N.reportStats(y)}}if(e.provider.videoData.enableServerStitchedDai)for(N=g.c(e.K.values()),y=N.next();!y.done;y=N.next())ZHs(y.value);else e.J&&ZHs(e.J);e.dispose()}; Lp0=function(e,N){e.J&&j9P(e.J,N)}; s9P=function(e){if(!e.J)return null;var N=qt(e.J,"atr");return function(y){e.J&&j9P(e.J,y,N)}}; aj5=function(e,N,y,w){y.adFormat=y.FZ;var E=N.JW;N=new uw(new nW(y,N.ph,{getDuration:function(){return y.lengthSeconds}, getCurrentTime:function(){return E.getCurrentTime()}, eN:function(){return E.eN()}, UV:function(){return E.UV()}, bP:function(){return E.bP()}, gG:function(){return E.gG()}, getPlayerSize:function(){return E.getPlayerSize()}, getAudioTrack:function(){return y.getAudioTrack()}, getPlaybackRate:function(){return E.getPlaybackRate()}, DR:function(){return E.DR()}, getVisibilityState:function(){return E.getVisibilityState()}, s4:function(){return E.s4()}, Am:function(){return E.Am()}, getVolume:function(){return E.getVolume()}, isMuted:function(){return E.isMuted()}, Xi:function(){return E.Xi()}, yG:function(){return E.yG()}, getProximaLatencyPreference:function(){return E.getProximaLatencyPreference()}, Vt:function(){E.Vt()}, Fh:function(A,T){E.Fh(A,T)}, Yj:function(){return E.Yj()}})); N.N=w;g.Q(e,N);return N}; e63=function(){this.Ze=0;this.K=this.RM=this.xS=this.N=NaN;this.J={};this.bandwidthEstimate=NaN}; HG=function(e,N,y){g.x.call(this);var w=this;this.ph=e;this.JW=N;this.N=y;this.J=new Map;this.b6="";this.lk={Nk:function(){return Array.from(w.J.keys())}}}; Ng9=function(e,N){e.J.has(N)&&(Uo3(e.J.get(N)),e.J.delete(N))}; yj0=function(){this.J=g.Ep;this.array=[]}; E4s=function(e,N,y){var w=[];for(N=wG1(e,N);Ny)break}return w}; Aj5=function(e,N){var y=[];e=g.c(e.array);for(var w=e.next();!w.done&&!(w=w.value,w.contains(N)&&y.push(w),w.start>N);w=e.next());return y}; Tgn=function(e){return e.array.slice(wG1(e,0x7ffffffffffff),e.array.length)}; wG1=function(e,N){e=JO(e.array,function(y){return N-y.start||1}); return e<0?-(e+1):e}; JjJ=function(e,N){var y=NaN;e=g.c(e.array);for(var w=e.next();!w.done;w=e.next())if(w=w.value,w.contains(N)&&(isNaN(y)||w.endN&&(isNaN(y)||w.starte.mediaTime+e.L&&N1)e.j=!0;if((E===void 0?0:E)||isNaN(e.N))e.N=N;if(e.J)N!==e.mediaTime&&(e.J=!1);else if(N>0&&e.mediaTime===N){E=1500;if(e.ph.T("html5_buffer_underrun_transition_fix")){E=g.Y2(e.ph.experiments,"html5_min_playback_advance_for_steady_state_secs");var A=g.Y2(e.ph.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");E=E>0&&A>0&&Math.abs(N-e.N)(w||!e.j?E:400)}e.mediaTime=N;e.K=y;return!1}; Mf3=function(e,N){this.videoData=e;this.J=N}; l3J=function(e,N,y){return N.v8(y).then(function(){return u4(new Mf3(N,N.K))},function(w){w instanceof Error&&g.uA(w); var E=zS('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),A=Dr('audio/mp4; codecs="mp4a.40.2"'),T=E||A,p=N.isLivePlayback&&!g.Oh(e.L,!0);w="fmt.noneavailable";p?w="html5.unsupportedlive":T||(w="html5.missingapi");T=p||!T?2:1;E={buildRej:"1",a:N.jJ(),d:!!N.U2,drm:N.RV(),f18:N.Rx.indexOf("itag=18")>=0,c18:E};N.J&&(N.RV()?(E.f142=!!N.J.J["142"],E.f149=!!N.J.J["149"],E.f279=!!N.J.J["279"]):(E.f133=!!N.J.J["133"],E.f140=!!N.J.J["140"],E.f242=!!N.J.J["242"]),E.cAAC=A,E.cAVC=Dr('video/mp4; codecs="avc1.42001E"'), E.cVP9=Dr('video/webm; codecs="vp9"'));N.L&&(E.drmsys=N.L.keySystem,A=0,N.L.J&&(A=Object.keys(N.L.J).length),E.drmst=A);return new P3(w,E,T)})}; Gt=function(e){this.data=window.Float32Array?new Float32Array(e):Array(e);this.N=this.J=e-1}; FSJ=function(e){return e.data[e.J]||0}; Sv5=function(e){this.L=e;this.K=this.N=0;this.j=new Gt(50)}; LW=function(e,N,y){g.pT.call(this);this.videoData=e;this.experiments=N;this.Z=y;this.N=[];this.j=0;this.K=!0;this.L=!1;this.G=0;y=new o4F;e.latencyClass==="ULTRALOW"&&(y.j=!1);e.Kx?y.N=3:g.bk(e)&&(y.N=2);e.latencyClass==="NORMAL"&&(y.Z=!0);var w=g.Y2(N,"html5_liveness_drift_proxima_override");if(TC(e)!==0&&w){y.J=w;var E;((E=e.J)==null?0:PUn(E))&&y.J--}L3(e)&&N.gP("html5_sabr_parse_live_metadata_playback_boundaries")&&(y.D=!0);if(g.Kp("trident/")||g.Kp("edge/"))E=g.Y2(N,"html5_platform_minimum_readahead_seconds")|| 3,y.K=Math.max(y.K,E);g.Y2(N,"html5_minimum_readahead_seconds")&&(y.K=g.Y2(N,"html5_minimum_readahead_seconds"));g.Y2(N,"html5_maximum_readahead_seconds")&&(y.U=g.Y2(N,"html5_maximum_readahead_seconds"));N.gP("html5_force_adaptive_readahead")&&(y.j=!0);if(E=g.Y2(N,"html5_liveness_drift_chunk_override"))y.J=E;Es(e)&&(y.J=(y.J+1)/5,e.latencyClass==="LOW"&&(y.J*=2));if(e.latencyClass==="ULTRALOW"||e.latencyClass==="LOW")y.L=g.Y2(N,"html5_low_latency_adaptive_liveness_adjustment_segments")||1,y.G=g.Y2(N, "html5_low_latency_max_allowable_liveness_drift_chunks")||10;this.policy=y;this.U=this.policy.N!==1;this.J=Uv(this,bW5(this,isNaN(e.liveChunkReadahead)?3:e.liveChunkReadahead,e))}; h6E=function(e,N){if(N)return N=e.videoData,N=bW5(e,isNaN(N.liveChunkReadahead)?3:N.liveChunkReadahead,N),Uv(e,N);if(e.N.length){if(Math.min.apply(null,e.N)>1)return Uv(e,e.J-1);if(e.policy.j)return Uv(e,e.J+1)}return e.J}; cjE=function(e,N){if(!e.N.length)return!1;var y=e.J;e.J=h6E(e,N===void 0?!1:N);if(N=y!==e.J)e.N=[],e.j=0;return N}; aU=function(e,N){return N>=e.Un()-ktM(e)}; Bg_=function(e,N,y){N=aU(e,N);y||N?N&&(e.K=!0):e.K=!1;e.U=e.policy.N===2||e.policy.N===3&&e.K}; XGM=function(e,N){N=aU(e,N);e.L!==N&&e.publish("livestatusshift",N);e.L=N}; ktM=function(e){var N=e.policy.J;e.L||(N=Math.max(N-1,0));return N*ek(e)}; bW5=function(e,N,y){y.Kx&&N--;Es(y)&&(N=1);if(TC(y)!==0&&(e=g.Y2(e.experiments,"html5_live_chunk_readahead_proxima_override"))){N=e;var w;((w=y.J)==null?0:PUn(w))&&N++}return N}; ek=function(e){return e.videoData.J?Y_(e.videoData.J)||5:5}; Uv=function(e,N){N=Math.max(Math.max(1,Math.ceil(e.policy.K/ek(e))),N);return Math.min(Math.min(8,Math.floor(e.policy.U/ek(e))),N)}; o4F=function(){this.K=0;this.U=Infinity;this.j=!0;this.J=2;this.N=1;this.Z=!1;this.G=10;this.D=!1;this.L=1}; wk=function(e){g.x.call(this);this.JW=e;this.J=0;this.N=null;this.Z=this.j=0;this.K={};this.ph=this.JW.X();this.L=new g.e6(this.Ga,1E3,this);this.Dl=new NJ({delayMs:g.Y2(this.ph.experiments,"html5_seek_timeout_delay_ms")});this.i9=new NJ({delayMs:g.Y2(this.ph.experiments,"html5_long_rebuffer_threshold_ms")});this.Kx=y_(this,"html5_seek_set_cmt");this.Et=y_(this,"html5_seek_jiggle_cmt");this.Wk=y_(this,"html5_seek_new_elem");this.Xz=y_(this,"html5_unreported_seek_reseek");this.qg=y_(this,"html5_long_rebuffer_jiggle_cmt"); this.Rq=y_(this,"html5_long_rebuffer_ssap_clip_not_match");this.l9=new NJ({delayMs:2E4});this.Bk=y_(this,"html5_seek_new_elem_shorts");this.VB=y_(this,"html5_seek_new_media_source_shorts_reuse");this.Ut=y_(this,"html5_seek_new_media_element_shorts_reuse");this.Zl=y_(this,"html5_reseek_after_time_jump");this.U=y_(this,"html5_gapless_handoff_close_end_long_rebuffer");this.Ng=y_(this,"html5_gapless_slow_seek");this.D=y_(this,"html5_gapless_slice_append_stuck");this.Kh=y_(this,"html5_gapless_slow_start"); this.G=y_(this,"html5_ads_preroll_lock_timeout");this.Y_=y_(this,"html5_ssap_ad_longrebuffer_new_element");this.a9=new NJ({delayMs:g.Y2(this.ph.experiments,"html5_skip_slow_ad_delay_ms")||5E3,tO:!this.ph.T("html5_report_slow_ads_as_error")});this.dT=new NJ({delayMs:g.Y2(this.ph.experiments,"html5_skip_slow_ad_delay_ms")||5E3,tO:!this.ph.T("html5_skip_slow_buffering_ad")});this.SR=new NJ({delayMs:g.Y2(this.ph.experiments,"html5_slow_start_timeout_delay_ms")});this.aq=y_(this,"html5_slow_start_no_media_source"); g.Q(this,this.L)}; y_=function(e,N){var y=g.Y2(e.ph.experiments,N+"_delay_ms");e=e.ph.T(N+"_cfl");return new NJ({delayMs:y,tO:e})}; PwE=function(e,N){e.J=N}; Ed=function(e,N,y,w,E,A,T,p){N.test(y)?(e.Qi(E,N,T),N.tO||A()):(N.vu&&N.N&&!N.j?(y=(0,g.iC)(),w?N.J||(N.J=y):N.J=0,A=!w&&y-N.N>N.vu,y=N.J&&y-N.J>N.EE||A?N.j=!0:!1):y=!1,y&&(p=Object.assign({},e.N7(N),p),p.wn=T,p.we=E,p.wsuc=w,e.JW.Fh("workaroundReport",p),w&&(N.reset(),e.K[E]=!1)))}; NJ=function(e){var N=e===void 0?{}:e;e=N.delayMs===void 0?0:N.delayMs;var y=N.EE===void 0?1E3:N.EE;var w=N.vu===void 0?3E4:N.vu;N=N.tO===void 0?!1:N.tO;this.J=this.N=this.K=this.startTimestamp=0;this.j=!1;this.L=Math.ceil(e/1E3);this.EE=y;this.vu=w;this.tO=N}; z69=function(e){g.x.call(this);var N=this;this.JW=e;this.Z=this.J=this.tW=this.mediaElement=this.playbackData=null;this.j=0;this.L=this.Ng=this.K=null;this.Kh=!1;this.a9=0;this.U=!1;this.timestampOffset=0;this.G=!0;this.Et=0;this.Wk=this.SR=!1;this.D=0;this.VB=!1;this.qg=0;this.ph=this.JW.X();this.videoData=this.JW.getVideoData();this.policy=new dt1;this.l9=new wk(this.JW);this.Dl=this.Zl=this.aq=this.N=NaN;this.Rq=new g.e6(function(){I3_(N,!1)},2E3); this.dT=new g.e6(function(){Av(N)}); this.Bk=new g.e6(function(){N.Kh=!0;v4E(N,{})}); this.Kx=NaN;this.i9=new g.e6(function(){var y=N.ph.UY;y.J+=1E4/36E5;y.J-y.K>1/6&&(qV5(y),y.K=y.J);N.i9.start()},1E4); g.Q(this,this.l9);g.Q(this,this.Rq);g.Q(this,this.Bk);g.Q(this,this.dT);g.Q(this,this.i9)}; g40=function(e,N){e.playbackData=N;e.videoData.isLivePlayback&&(e.Z=new Sv5(function(){a:{if(e.playbackData&&e.playbackData.J.J){if(wd(e.videoData)&&e.tW){var y=e.tW.eE.AT()||0;break a}if(e.videoData.J){y=e.videoData.J.l9;break a}}y=0}return y}),e.J=new LW(e.videoData,e.ph.experiments,function(){return e.ra(!0)})); To(e.JW)?(N=iWF(e),N.vl?(e.T("html5_sabr_enable_utc_seek_requests")&&L3(e.videoData)&&e.j0(N.vl,N.startSeconds),e.j=N.startSeconds):N.startSeconds>0&&e.seekTo(N.startSeconds,{BY:"seektimeline_startPlayback",seekSource:15}),e.G=!1):DtP(e)||(e.j=e.j||(g.xK(e.videoData)?0:e.videoData.startSeconds)||0)}; f39=function(e,N){(e.tW=N)?Vfn(e,!0):Jv(e)}; tf3=function(e,N){g.NA(e.l9.L);e.T("html5_exponential_memory_for_sticky")&&(N.state.isPlaying()?g.NA(e.i9):e.i9.stop());if(e.mediaElement)if(N.oldState.state===8&&Tp(N.state)&&N.state.isBuffering()){N=e.mediaElement.getCurrentTime();var y=e.mediaElement.O4();var w=e.T("manifestless_post_live_ufph")||e.T("manifestless_post_live")?E3(y,Math.max(N-3.5,0)):E3(y,N-3.5);w>=0&&N>y.end(w)-1.1&&w+10?(p$(e.JW,e.getCurrentTime()+e.videoData.limitedPlaybackDurationInSeconds),e.Wk=!0):e.videoData.isLivePlayback&&e.videoData.endSeconds>0&&(p$(e.JW,e.getCurrentTime()+e.videoData.endSeconds),e.Wk=!0))}; qvP=function(e,N){var y=e.getCurrentTime(),w=e.isAtLiveHead(y);if(e.Z&&w){var E=e.Z;if(E.J&&!(y>=E.N&&y50&&E.N.shift())),E=e.J,Bg_(E,y,N===void 0?!0:N),XGM(E,y),N&&I3_(e,!0));w!==e.SR&&(N=e.getCurrentTime()-e.Dl<=500,y=e.a9>=1E3,N||y||(N=e.JW.Eg(),N.qoe&&(N=N.qoe,y=g.BG(N.provider), g.IU(N,y,"lh",[w?"1":"0"])),e.SR=w,e.a9++,e.Dl=e.getCurrentTime()))}; I3_=function(e,N){if(e.J){var y=e.J;var w=e.getCurrentTime();!aU(y,w)&&y.eg()?(y.policy.Z&&(y.policy.J=Math.max(y.policy.J+y.policy.L,y.policy.G)),y=Infinity):y=w0&&G6(e.mediaElement)>0&&(e.N=C$(e,e.N,!1)),!e.mediaElement||!QU5(e))e.dT.start(750);else if(!isNaN(e.N)&&isFinite(e.N)){var N=e.Zl-(e.N-e.timestampOffset);if(!(N===0||e.T("html5_enable_new_seek_timeline_logic")&&Math.abs(N)<.005))if(N=e.mediaElement.getCurrentTime()-e.N,Math.abs(N)<=e.Et||e.T("html5_enable_new_seek_timeline_logic")&&Math.abs(N)<.005)e.K&&e.K.resolve(e.mediaElement.getCurrentTime()); else{if(e.videoData.cC)e.videoData.cC=!1;else if(!yG(e.videoData)&&e.N>=e.ra()-.1){e.N=e.ra();e.K.resolve(e.ra());e.JW.U7();return}try{var y=e.N-e.timestampOffset;e.mediaElement.seekTo(y);e.l9.J=y;e.Zl=y;e.j=e.N;e.T("html5_enable_new_seek_timeline_logic")&&(e.U=!1)}catch(w){}}}}; QU5=function(e){if(!e.mediaElement||e.mediaElement.Rl()===0||e.mediaElement.hasError())return!1;var N=e.mediaElement.getCurrentTime()>0;if(!(e.videoData.K&&e.videoData.K.J||e.videoData.isLivePlayback)&&e.videoData.RV())return N;if(e.N>=0){var y=e.mediaElement.Gz();if(y.length||!N)return AX(y,e.N-e.timestampOffset)}return N}; n4M=function(e,N){e.L&&(e.L.resolve(N),e.JW.Qt(),e.ph.B9()&&(N=e.N7(),N["native"]=""+ +e.U,N.otgt=""+(e.N+e.timestampOffset),e.JW.Fh("seekEnd",N)));Jv(e)}; Jv=function(e){e.N=NaN;e.Zl=NaN;e.K=null;e.Ng=null;e.L=null;e.Kh=!1;e.U=!1;e.Et=0;e.Rq.stop();e.Bk.stop()}; KS1=function(e,N,y){var w=e.mediaElement,E=N.type;switch(E){case "seeking":var A=w.getCurrentTime()+e.timestampOffset;if(!e.K||e.U&&A!==e.N){var T=!!e.K;e.K=new O3;e.T("html5_enable_new_seek_timeline_logic")&&e.K.then(function(C){n4M(e,C)},function(){Jv(e)}); if(e.videoData.isAd()){var p;U7F({adCpn:e.videoData.clientPlaybackNonce,contentCpn:(p=e.videoData.hK)!=null?p:""},N.J)}e.Zl=A;PwE(e.l9,w.getCurrentTime());e.seekTo(A,{seekSource:104,BY:"seektimeline_mediaElementEvent"});y&&mtE(y,A*1E3,!!T);e.U=!0}break;case "seeked":e.K&&e.K.resolve(e.mediaElement.getCurrentTime());break;case "loadedmetadata":To(e.JW)||HWM(e);Av(e);break;case "progress":Av(e);break;case "pause":e.D=e.getCurrentTime()}e.D&&((E==="play"||E==="playing"||E==="timeupdate"||E==="progress")&& e.getCurrentTime()-e.D>10&&(e.T("html5_enable_new_media_element_puase_jump")?(e.JW.Qi(new P3("qoe.restart",{reason:"pauseJump"})),e.JW.hT()):e.seekTo(e.D,{BY:"pauseJump"})),E!=="pause"&&E!=="play"&&E!=="playing"&&E!=="progress"&&(e.D=0))}; WSP=function(e){return(hY(e.videoData)||!!e.videoData.liveUtcStartSeconds)&&(!!e.videoData.liveUtcStartSeconds||DtP(e))&&!!e.videoData.J}; DtP=function(e){return!!e.videoData.startSeconds&&isFinite(e.videoData.startSeconds)&&e.videoData.startSeconds>1E9}; iWF=function(e){var N=0,y=NaN,w="";if(!e.G)return{startSeconds:N,vl:y,source:w};e.videoData.Rq?N=e.videoData.aq:yG(e.videoData)&&(N=Infinity);if(g.bk(e.videoData))return{startSeconds:N,vl:y,source:w};e.videoData.startSeconds?(w="ss",N=e.videoData.startSeconds):e.videoData.jN&&(w="stss",N=e.videoData.jN);e.videoData.liveUtcStartSeconds&&(y=e.videoData.liveUtcStartSeconds);if(isFinite(N)&&(N>e.ra()||Ne.ra()||y 0?(w.onesie="0",e.handleError(new P3("html5.missingapi",w)),!1):!0}; NkF=function(e){var N=z9();ih(N,e);return g.AC(N,A60())}; sUF=function(e,N){var y,w,E,A,T,p,C,r,Y,M,l,F,S,k,X,d,v,V,Z,n,R,O,E9,Jn,eM,H;return g.f(function(a){if(a.J==1)return N.fetchType="onesie",y=lzs(N,e.getPlayerSize(),e.getVisibilityState()),w=new KH(e,y),g.D(a,w.fetch(),2);E=a.N;A={player_response:E};N.loading=!1;T=e.nX.Bi;if(w.ZM){p=g.c(w.ZM.entries());for(C=p.next();!C.done;C=p.next())r=C.value,Y=g.c(r),M=Y.next().value,l=Y.next().value,F=M,S=l,T.J.set(F,S,180),F===N.videoId&&(k=S.Np(),N.yw=k);T.Gq=w}X=g.c(w.uH.entries());for(d=X.next();!d.done;d= X.next())v=d.value,V=g.c(v),Z=V.next().value,n=V.next().value,R=Z,O=n,T.N.set(R,O,180);g.ZG(N,A,!0);if(N.loading||u0(N))return a.return(Promise.resolve());T.J.removeAll();T.N.removeAll();N.yw=[];E9={};Jn="onesie.response";eM=0;N.errorCode?(Jn="auth",E9.ec=N.errorCode,E9.ed=N.errorDetail,E9.es=N.Qm||"",eM=2):(E9.successButUnplayable="1",E9.disposed=""+ +N.Ss(),E9.afmts=""+ +/adaptiveFormats/.test(E),E9.cpn=N.clientPlaybackNonce);H=new P3(Jn,E9,eM);return a.return(Promise.reject(H))})}; Ut5=function(e,N){var y,w,E,A,T,p,C,r,Y,M,l;return g.f(function(F){switch(F.J){case 1:y=N.isAd(),w=!y,E=y?1:3,A=0;case 2:if(!(A0)){F.u9(5);break}return g.D(F,XK(5E3),6);case 6:T=new g.Gh("Retrying OnePlatform request",{attempt:A}),g.uA(T);case 5:return g.c5(F,7),g.D(F,yvF(e,N),9);case 9:return F.return();case 7:p=g.XH(F);C=I2(p);r=C.errorCode;Y=e.X();M=Y.T("html5_use_network_error_code_enums")?401:"401";w&&r==="manifest.net.badstatus"&&C.details.rc===M&&(w=!1,A===E-1&&(E+= 1));if(A===E-1)return l=wsn(y,C.details),l.details.backend="op",l.details.originec=r,F.return(Promise.reject(l));if(r==="auth"||r==="manifest.net.retryexhausted")return F.return(Promise.reject(C));e.handleError(C);if(dp(C.severity)){F.u9(4);break}case 3:A++;F.u9(2);break;case 4:return F.return(Promise.reject(wsn(y,{backend:"op"})))}})}; yvF=function(e,N){function y(Jn){Jn.readyState===2&&e.lB("ps_c")} var w,E,A,T,p,C,r,Y,M,l,F,S,k,X,d,v,V,Z,n,R,O,E9;return g.f(function(Jn){switch(Jn.J){case 1:N.fetchType="gp";w=e.X();E=g.GX(w,g.qK(N));if(!E.J){A=E.getValue();Jn.u9(2);break}return g.D(Jn,E.J,3);case 3:A=Jn.N;case 2:return T=A,p=NkF(T),C=lzs(N,e.getPlayerSize(),e.getVisibilityState()),r=g.eZ(E7P),Y=g.qK(N),M=(0,g.iC)(),l=!1,F="empty",S=0,e.lB("psns"),k={Mc:y},g.D(Jn,g.Rg(p,C,r,void 0,k),4);case 4:X=Jn.N;e.lB("psnr");if(N.Ss())return Jn.return();X?"error"in X&&X.error?(l=!0,F="esf:"+X.error.message, S=X.error.code):X.errorMetadata&&(l=!0,F="its",S=X.errorMetadata.status):l=!0;if(l)return d=0,v=((0,g.iC)()-M).toFixed(),V={},V=w.T("html5_use_network_error_code_enums")?{backend:"op",rc:S,rt:v,reason:F,has_kpt:N.a9?"1":"0",has_mdx_env:N.mdxEnvironment?"1":"0",has_omit_key_flag:g.Lb("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:w.pageId?"1":"0",has_token:Y?"1":"0",has_vvt:N.Kh?"1":"0",is_mdx:N.isMdxPlayback?"1":"0",mdx_ctrl:N.S_||"",token_eq:Y===g.qK(N)?"1":"0"}:{backend:"op", rc:""+S,rt:v,reason:F,has_kpt:N.a9?"1":"0",has_mdx_env:N.mdxEnvironment?"1":"0",has_omit_key_flag:g.Lb("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:w.pageId?"1":"0",has_token:Y?"1":"0",has_vvt:N.Kh?"1":"0",is_mdx:N.isMdxPlayback?"1":"0",mdx_ctrl:N.S_||"",token_eq:Y===g.qK(N)?"1":"0"},Z="manifest.net.connect",S===429?(Z="auth",d=2):S>200&&(Z="manifest.net.badstatus",S===400&&(d=2)),Jn.return(Promise.reject(new P3(Z,V,d)));N.loading=!1;g.ZG(N,{raw_player_response:X},!0); n=X;g.dw(N.X())&&n&&n.trackingParams&&h$(n.trackingParams);if(N.errorCode)return R={ec:N.errorCode,ed:N.errorDetail,es:N.Qm||""},Jn.return(Promise.reject(new P3("auth",R,2)));if(!N.loading&&!u0(N))return O=N.isAd()?"auth":"manifest.net.retryexhausted",E9=N.isAd()?2:1,Jn.return(Promise.reject(new P3(O,{successButUnplayable:"1",hasMedia:g.FU(N)?"1":"0"},E9)));g.hn(Jn)}})}; Gt3=function(e,N,y){function w(S){S=I2(S);if(dp(S.severity))return Promise.reject(S);e.handleError(S);return!1} function E(){return!0} var A,T,p,C,r,Y,M,l,F;return g.f(function(S){switch(S.J){case 1:var k=e.X(),X=e.getPlayerSize(),d=e.getVisibilityState();e.isFullscreen();var v=window.location.search;if(N.partnerId===38&&k.playerStyle==="books")v=N.videoId.indexOf(":"),v=g.Qb("//play.google.com/books/volumes/"+N.videoId.slice(0,v)+"/content/media",{aid:N.videoId.slice(v+1),sig:N.lM});else if(N.partnerId===30&&k.playerStyle==="docs")v=g.Qb("https://docs.google.com/get_video_info",{docid:N.videoId,authuser:N.Fn,authkey:N.qq,eurl:k.VB}); else if(N.partnerId===33&&k.playerStyle==="google-live")v=g.Qb("//google-liveplayer.appspot.com/get_video_info",{key:N.videoId});else{k.Ng!=="yt"&&g.t0(Error("getVideoInfoUrl for invalid namespace: "+k.Ng));var V={html5:"1",video_id:N.videoId,cpn:N.clientPlaybackNonce,eurl:k.VB,ps:k.playerStyle,el:I$(N),hl:k.SR,list:N.playlistId,agcid:N.YU,aqi:N.adQueryId,sts:20129,lact:z_()};Object.assign(V,k.J);k.forcedExperiments&&(V.forced_experiments=k.forcedExperiments);N.Kh?(V.vvt=N.Kh,N.mdxEnvironment&&(V.mdx_environment= N.mdxEnvironment)):g.qK(N)&&(V.access_token=g.qK(N));N.adFormat&&(V.adformat=N.adFormat);N.slotPosition>=0&&(V.slot_pos=N.slotPosition);N.breakType&&(V.break_type=N.breakType);N.M6!==null&&(V.ad_id=N.M6);N.sb!==null&&(V.ad_sys=N.sb);N.Rv!==null&&(V.encoded_ad_playback_context=N.Rv);k.captionsLanguagePreference&&(V.cc_lang_pref=k.captionsLanguagePreference);k.dT&&k.dT!==2&&(V.cc_load_policy=k.dT);var Z=g.HE(g.m6(),65);g.na(k)&&Z!=null&&!Z&&(V.device_captions_on="1");k.mute&&(V.mute=k.mute);N.annotationsLoadPolicy&& k.annotationsLoadPolicy!==2&&(V.iv_load_policy=N.annotationsLoadPolicy);N.yO&&(V.endscreen_ad_tracking=N.yO);(Z=k.aq.get(N.videoId))&&Z.Ge&&(V.ic_track=Z.Ge);N.i9&&(V.itct=N.i9);uk(N)&&(V.autoplay="1");N.mutedAutoplay&&(V.mutedautoplay=N.mutedAutoplay);N.isAutonav&&(V.autonav="1");N.o4&&(V.noiba="1");N.isMdxPlayback&&(V.mdx="1",V.ytr=N.N2);N.mdxControlMode&&(V.mdx_control_mode=N.mdxControlMode);N.Ez&&(V.ytrcc=N.Ez);N.wW&&(V.utpsa="1");N.isFling&&(V.is_fling="1");N.isInlinePlaybackNoAd&&(V.mute="1"); N.vnd&&(V.vnd=N.vnd);N.forceAdsUrl&&(Z=N.forceAdsUrl.split("|").length===3,V.force_ad_params=Z?N.forceAdsUrl:"||"+N.forceAdsUrl);N.NK&&(V.preload=N.NK);X.width&&(V.width=X.width);X.height&&(V.height=X.height);(N.im?0:N.UY)&&(V.splay="1");N.ypcPreview&&(V.ypc_preview="1");VG(N)&&(V.content_v=VG(N));N.Kx&&(V.livemonitor=1);k.l9&&(V.authuser=k.l9);k.pageId&&(V.pageid=k.pageId);k.Ut&&(V.ei=k.Ut);k.j&&(V.iframe="1");N.contentCheckOk&&(V.cco="1");N.racyCheckOk&&(V.rco="1");k.G&&N.AU&&(V.live_start_walltime= N.AU);k.G&&N.yh&&(V.live_manifest_duration=N.yh);k.G&&N.playerParams&&(V.player_params=N.playerParams);k.G&&N.cycToken&&(V.cyc=N.cycToken);k.G&&N.bf&&(V.tkn=N.bf);d!==0&&(V.vis=d);k.enableSafetyMode&&(V.enable_safety_mode="1");N.a9&&(V.kpt=N.a9);N.IY&&(V.kids_age_up_mode=N.IY);N.kidsAppInfo&&(V.kids_app_info=N.kidsAppInfo);N.uV&&(V.upg_content_filter_mode="1");k.widgetReferrer&&(V.widget_referrer=k.widgetReferrer.substring(0,128));N.Ng?(X=N.Ng.latitudeE7!=null&&N.Ng.longitudeE7!=null?N.Ng.latitudeE7+ ","+N.Ng.longitudeE7:",",X+=","+(N.Ng.clientPermissionState||0)+","+(N.Ng.locationRadiusMeters||"")+","+(N.Ng.locationOverrideToken||"")):X=null;X&&(V.uloc=X);N.Li&&(V.internalipoverride=N.Li);k.embedConfig&&(V.embed_config=k.embedConfig);k.Sz&&(V.co_rel="1");k.ancestorOrigins.length>0&&(V.ancestor_origins=Array.from(k.ancestorOrigins).join(","));k.homeGroupInfo!==void 0&&(V.home_group_info=k.homeGroupInfo);k.livingRoomAppMode!==void 0&&(V.living_room_app_mode=k.livingRoomAppMode);k.enablePrivacyFilter&& (V.enable_privacy_filter="1");N.isLivingRoomDeeplink&&(V.is_living_room_deeplink="1");N.qE&&N.Oz&&(V.clip=N.qE,V.clipt=N.Oz);N.lr&&(V.disable_watch_next="1");N.Zc&&(V.forced_by_var="1");for(var n in V)!Av0.has(n)&&V[n]&&String(V[n]).length>512&&(g.uA(Error("GVI param too long: "+n)),V[n]="");n=k.qg;g.IK(k)&&(n=sG(n.replace(/\b(?:www|web)([.-])/,"tv$1"))||k.qg);k=g.Qb(n+"get_video_info",V);v&&(k=y7n(k,v));v=k}A=v;p=(T=N.isAd())?1:3;C=0;case 2:if(!(C0)){S.u9(5);break}return g.D(S, XK(5E3),6);case 6:Y={playerretry:C,playerretrysrc:y},T||(Y.recover="embedded"),r=Cp(A,Y);case 5:return g.D(S,Tk9(N,r).then(E,w),7);case 7:if(M=S.N)return S.return();C++;S.u9(2);break;case 4:l=T?"auth":"manifest.net.retryexhausted";F=T?2:1;if(!T&&Math.random()<1E-4)try{g.uA(new g.Gh("b/152131571",btoa(A)))}catch(R){}return S.return(Promise.reject(new P3(l,{backend:"gvi"},F)))}})}; Tk9=function(e,N){function y(X){return w(X.xhr)} function w(X){if(!e.Ss()){X=X?X.status:-1;var d=0,v=((0,g.iC)()-Y).toFixed();v=E.T("html5_use_network_error_code_enums")?{backend:"gvi",rc:X,rt:v}:{backend:"gvi",rc:""+X,rt:v};var V="manifest.net.connect";X===429?(V="auth",d=2):X>200&&(V="manifest.net.badstatus",X===400&&(d=2));return Promise.reject(new P3(V,v,d))}} var E,A,T,p,C,r,Y,M,l,F,S,k;return g.f(function(X){if(X.J==1){e.fetchType="gvi";E=e.X();var d={};e.Dy&&(d.ytrext=e.Dy);(p=g.v4(d)?void 0:d)?(A={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:p},T=Cp(N,{action_display_post:1})):(A={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},T=N);C={};E.sendVisitorIdHeader&&e.visitorData&&(C["X-Goog-Visitor-Id"]=e.visitorData);(r=ms(E.experiments,"debug_sherlog_username"))&&(C["X-Youtube-Sherlog-Username"]=r);Object.keys(C).length> 0&&(A.headers=C);Y=(0,g.iC)();return g.D(X,ai(g2,T,A).then(void 0,y),2)}M=X.N;if(!M||!M.responseText)return X.return(w(M));e.loading=!1;l=AE(M.responseText);g.ZG(e,l,!0);if(e.errorCode)return F={ec:e.errorCode,ed:e.errorDetail,es:e.Qm||""},X.return(Promise.reject(new P3("auth",F,2)));if(!e.loading&&!u0(e))return S=e.isAd()?"auth":"manifest.net.retryexhausted",k=e.isAd()?2:1,X.return(Promise.reject(new P3(S,{successButUnplayable:"1"},k)));g.hn(X)})}; wsn=function(e,N){return new P3(e?"auth":"manifest.net.retryexhausted",N,e?2:1)}; lr=function(e,N,y){y=y===void 0?!1:y;var w,E,A,T;g.f(function(p){if(p.J==1){w=e.X();if(y&&(!g.mT(w)||I$(N)!=="embedded")||N.lr||I$(N)!=="adunit"&&(g.I_(w)||Vy(w)||g.ZY(w)||g.IK(w)||nC(w)==="WEB_CREATOR"))return p.return();E=g.GX(w,g.qK(N));return E.J?g.D(p,E.J,3):(A=E.getValue(),p.u9(2))}p.J!=2&&(A=p.N);T=A;return p.return(Jv5(e,N,T))})}; Jv5=function(e,N,y){var w,E,A,T,p;return g.f(function(C){if(C.J==1){g.c5(C,2);w=NkF(y);var r=N.X();g.m6();var Y={context:g.GC(N),videoId:N.videoId,racyCheckOk:N.racyCheckOk,contentCheckOk:N.contentCheckOk,autonavState:"STATE_NONE"};I$(N)==="adunit"&&(Y.isAdPlayback=!0);r.embedConfig&&(Y.serializedThirdPartyEmbedConfig=r.embedConfig);r.Sz&&(Y.showContentOwnerOnly=!0);N.PB&&(Y.showShortsOnly=!0);g.HE(0,141)&&(Y.autonavState=g.HE(0,140)?"STATE_OFF":"STATE_ON");if(g.na(r)){var M=g.HE(0,65);M=M!=null? !M:!1;var l=!!g.qI("yt-player-sticky-caption");Y.captionsRequested=M&&l}var F;if(r=(F=r.getWebPlayerContextConfig())==null?void 0:F.encryptedHostFlags)Y.playbackContext={encryptedHostFlags:r};E=Y;A=g.eZ(ps_);e.lB("wn_s");return g.D(C,g.Rg(w,E,A),4)}if(C.J!=2)return T=C.N,e.lB("wn_r"),!T||"error"in T&&T.error||(p=T,g.dw(N.X())&&p.trackingParams&&h$(p.trackingParams),g.ZG(N,{raw_watch_next_response:T},!1)),g.B5(C,0);g.XH(C);g.hn(C)})}; Crs=function(e){e.lB("vir");e.lB("ps_s");KV("vir",void 0,"video_to_ad");var N=eiM(e);N.then(function(){e.lB("virc");KV("virc",void 0,"video_to_ad");e.lB("ps_r");KV("ps_r",void 0,"video_to_ad")},function(){e.lB("virc"); KV("virc",void 0,"video_to_ad")}); return N}; g.oY=function(e,N,y,w,E,A,T,p,C,r){C=C===void 0?new g.t3(e):C;r=r===void 0?!0:r;g.pT.call(this);var Y=this;this.ph=e;this.playerType=N;this.R9=y;this.m7=w;this.getVisibilityState=A;this.visibility=T;this.nX=p;this.videoData=C;this.Tu=r;this.logger=new g.RE("VideoPlayer");this.BC=new YvM(this.ph);this.FT=null;this.K8=new Sf;this.F_=null;this.NO=new hY5(this.ph,this.m7,this);this.fn=!0;this.TZ=this.tW=null;this.wL=[];this.eh=new MJ;this.yj=this.lQ=null;this.vF=new MJ;this.iE=null;this.uj=this.So=!1; this.yx=NaN;this.NI=!1;this.playerState=new g.a8;this.dV=[];this.N6=new g.fd;this.Bc=new TA1(this);this.mediaElement=null;this.X2=new g.e6(this.ZXh,15E3,this);this.NR=this.Hr=!1;this.Si=NaN;this.Yg=!1;this.qh=0;this.qL=!1;this.Ux=NaN;this.Wx=new rk(new Map([["bufferhealth",function(){return u$_(Y.ZB)}], ["bandwidth",function(){return Y.Xx()}], ["networkactivity",function(){return Y.ph.schedule.qg}], ["livelatency",function(){return Y.isAtLiveHead()&&Y.isPlaying()?rvH(Y):NaN}], ["rawlivelatency",function(){return rvH(Y)}]])); this.P3=0;this.loop=!1;this.playbackRate=1;this.F8=0;this.ZB=new z69(this);this.Jk=!1;this.S5=[];this.Cp=this.Kt=0;this.Dm=this.xq=!1;this.RM=this.xS=0;this.l1=-1;this.Qa="";this.QS=new g.e6(this.M4,0,this);this.RP=!1;this.k_=this.Yk=null;this.HxP=[this.N6,this.QS,this.X2,this.Wx];this.WK=this.Tk=null;this.iP=function(){var M=Y.Eg();M.provider.ph.WE||M.provider.JW.getVisibilityState()===3||(M.provider.ph.WE=!0);GGE(M);if(M.N){var l=M.N;l.L&&l.J<0&&l.provider.JW.getVisibilityState()!==3&&qe3(l)}M.qoe&& (M=M.qoe,M.Wk&&M.N<0&&M.provider.ph.WE&&MD0(M),M.K&&zt(M));Y.tW&&Fx(Y);Y.ph.v2&&!Y.videoData.backgroundable&&Y.mediaElement&&!Y.ox()&&(Y.isBackground()&&Y.mediaElement.Sd()?(Y.Fh("bgmobile",{suspend:1}),Y.wK(!0,!0)):Y.isBackground()||Sk(Y)&&Y.Fh("bgmobile",{resume:1}))}; this.lk={Nx:function(M){Y.Nx(M)}, w1P:function(M){Y.FT=M}, rph:function(){return Y.RE}, LW:function(){return Y.Ce}, E$:function(){return Y.TZ}, sps:function(){return Y.ON}, p71:function(){return Y.A_}, BSl:function(){}, X:function(){return Y.ph}, LC:function(){return Y.mediaElement}, mYt:function(M){Y.KP(M)}, DxP:function(){return Y.m7}}; this.logger.debug(function(){return"creating, type "+N}); this.yb=new g.KW(function(){return Y.getCurrentTime()},function(){return Y.getPlaybackRate()},function(){return Y.getPlayerState()},function(M,l){M!==g.AA("endcr")||g.G(Y.playerState,32)||Y.U7(); E(M,l,Y.playerType)},function(M,l){g.xK(Y.videoData)&&Y.Fh(M,l)}); g.Q(this,this.yb);g.Q(this,this.ZB);$Jn(this,C);this.videoData.subscribe("dataupdated",this.wEG,this);this.videoData.subscribe("dataloaded",this.rU,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.Fh,this);this.videoData.subscribe("ctmpstr",this.kN,this);this.qs();Een(this.iP);this.visibility.subscribe("visibilitystatechange",this.iP);this.ON=new g.e6(this.kZ,g.Y2(this.ph.experiments,"html5_player_att_initial_delay_ms")||4500,this);this.A_= new g.e6(this.kZ,g.Y2(this.ph.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.xi=new g.WG(this)}; $Jn=function(e,N){if(e.playerType===2||e.ph.Ip)N.O9=!0;var y=zc5(N.FZ,N.mL,e.ph.j,e.ph.G);y&&(N.adFormat=y);e.playerType===2&&(N.IV=!0);if(e.isFullscreen()||e.ph.j)y=g.qI("yt-player-autonavstate"),N.autonavState=y||(e.ph.j?2:e.videoData.autonavState);N.endSeconds&&N.endSeconds>N.startSeconds&&p$(e,N.endSeconds)}; Yd9=function(e){Uo3(e.RE);g.JV(e.RE);for(var N=e.Ce,y=g.c(N.J.values()),w=y.next();!w.done;w=y.next())Uo3(w.value);N.J.clear();g.JV(e.Ce)}; Mk5=function(e){var N=e.videoData;Crs(e).then(void 0,function(y){e.videoData!==N||N.Ss()||(y=I2(y),y.errorCode==="auth"&&e.videoData.errorDetail?e.MP(y.errorCode,2,unescape(e.videoData.errorReason),Xe(y.details),e.videoData.errorDetail,e.videoData.Qm||void 0):e.handleError(y))})}; Sd_=function(e){if(!g.G(e.playerState,128))if(e.videoData.isLoaded(),e.logger.debug("finished loading playback data"),e.wL=g.eE(e.videoData.l9),g.FU(e.videoData)){e.R9.tick("bpd_s");br(e).then(function(){e.R9.tick("bpd_c");if(!e.Ss()){e.So&&(e.zi(yO(yO(e.playerState,512),1)),Sk(e));var w=e.videoData;w.endSeconds&&w.endSeconds>w.startSeconds&&p$(e,w.endSeconds);e.eh.finished=!0;hv(e,"dataloaded");e.vF.C9()&&lNE(e);uzE(e.NO,e.yj)}}); e.T("html5_log_media_perf_info")&&e.Fh("loudness",{v:e.videoData.Fo.toFixed(3)},!0);var N,y=(N=e.mediaElement)==null?void 0:N.ut();y&&"disablePictureInPicture"in y&&e.T("html5_disable_pip_with_standard_api")&&(y.disablePictureInPicture=e.ph.Fo&&!e.videoData.backgroundable);FP5(e)}else hv(e,"dataloaded")}; br=function(e){cs(e);e.yj=null;var N=l3J(e.ph,e.videoData,e.ox());e.lQ=N;e.lQ.then(function(y){o7H(e,y)},function(y){e.Ss()||(y=I2(y),e.visibility.isBackground()?(k7(e,"vp_none_avail"),e.lQ=null,e.eh.reset()):(e.eh.finished=!0,e.MP(y.errorCode,y.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",Xe(y.details))))}); return N}; o7H=function(e,N){if(!e.Ss()&&!N.videoData.Ss()){e.logger.debug("finished building playback data");e.yj=N;g40(e.ZB,e.yj);if(e.videoData.isLivePlayback){var y=b$P(e.nX.Bi,e.videoData.videoId)||e.tW&&!isNaN(e.tW.qg);y=e.T("html5_onesie_live")&&y;To(e)||e.videoData.Xz>0&&!wd(e.videoData)||y||e.seekTo(e.ra(),{BY:"videoplayer_playbackData",seekSource:18})}if(e.videoData.K.J){if(e.T("html5_sabr_report_missing_url_as_error")&&wuE(e.videoData)){e.handleError(new P3("fmt.missing",{missabrurl:"1"},2));return}e.tW? g.uA(Error("Duplicated Loader")):(y=g.Y2(e.ph.experiments,"html5_onesie_defer_content_loader_ms"))&&e.wq()&&b$P(e.nX.Bi,e.videoData.uM)?g.b4(function(){e.Ss()||e.tW||hi_(e)},y):hi_(e)}else!e.videoData.K.J&&j5(e.videoData)&&e.Me(new NN(e.videoData.videoId||"",4)); e.yq();zYn(N).then(function(){var w={};e.mK(w);e.ph.B9()&&e.T("html5_log_media_perf_info")&&e.Fh("av1Info",w);Fx(e)})}}; lNE=function(e){e.Ss();e.logger.debug("try finish readying playback");if(e.vF.finished)e.logger.debug("already finished readying");else if(e.eh.finished)if(g.G(e.playerState,128))e.logger.debug("cannot finish readying because of error");else if(e.wL.length)e.logger.debug(function(){return"cannot finish readying because of pending preroll: "+e.wL}); else if(e.yb.started||CwM(e.yb),e.V_())e.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{e.tW&&(e.uj=wx5(e.tW.timing));e.vF.finished||(e.vF.finished=!0);var N=e.T("html5_onesie_live")&&e.tW&&!isNaN(e.tW.qg);!e.videoData.isLivePlayback||e.videoData.Xz>0&&!wd(e.videoData)||N||To(e)||(e.logger.debug("seek to head for live"),e.seekTo(Infinity,{BY:"videoplayer_readying",seekSource:18}),e.isBackground()&&(e.NR=!0));Kpn(e.Eg());e.logger.debug("finished readying playback"); e.publish("playbackready",e);mo("pl_c",e.R9.timerName)||(e.R9.tick("pl_c"),KV("pl_c",void 0,"video_to_ad"));mo("pbr",e.R9.timerName)||(e.R9.tick("pbr"),KV("pbr",void 0,"video_to_ad"))}else e.logger.debug("playback data not loaded")}; p$=function(e,N){e.F_&&cvH(e);e.F_=new g.wF(N*1E3,0x7ffffffffffff);e.F_.namespace="endcr";e.addCueRange(e.F_)}; cvH=function(e){e.removeCueRange(e.F_);e.F_=null}; ko_=function(e,N,y,w,E){var A=e.Eg(E),T=g.xK(e.videoData)?A.getVideoData():e.videoData;T.N=y;var p=g.Bs(e);y=new br5(T,y,N,p?p.itag:"",w);e.ph.experiments.gP("html5_refactor_sabr_video_format_selection_logging")?(y.videoId=E,e.WK=y):A.sW(y);E=e.NO;E.N=0;E.J=0;e.publish("internalvideoformatchange",T,N==="m")}; g.Bs=function(e){var N=Xx(e);return Uj(N)||!e.yj?null:g.Ok(e.yj.J.videoInfos,function(y){return N.j(y)})}; Xx=function(e){if(e.yj){var N=e.NO;var y=e.yj;e=e.De();if(N.JW.UP().isInline())var w=f3;else N.T("html5_exponential_memory_for_sticky")?w=Fn(N.ph.UY,"sticky-lifetime")<.5?"auto":LA[zm()]:w=LA[zm()],w=g.Rx("auto",w,!1,"s");if(Uj(w)){if(w=cW0(N,y).compose(dNH(N,y)).compose(ve3(N,y)).compose(fUs(N,y.videoData)).compose(tLE(N,y.videoData,y)).compose(cG(N,y)).compose(Xl9(N,y)),Uj(e)||N.T("html5_apply_pbr_cap_for_drm"))w=w.compose(PzF(N,y))}else N.T("html5_perf_cap_override_sticky")&&(w=w.compose(cG(N, y))),N.T("html5_ustreamer_cap_override_sticky")&&(w=w.compose(PzF(N,y)));w=w.compose(Xl9(N,y));N=y.videoData.E8.compose(w).compose(y.videoData.Pl).compose(e)}else N=f3;return N}; R$P=function(e){var N=e.NO;e=e.videoData;var y=fUs(N,e);N.T("html5_disable_client_autonav_cap_for_onesie")||y.compose(tLE(N,e));return y}; Fx=function(e){if(e.videoData.K&&e.videoData.K.J){var N=Xx(e);e.tW&&xOn(e.tW,N)}}; Bk9=function(e){var N;return!!(e.T("html5_native_audio_track_switching")&&g.k$&&((N=e.videoData.N)==null?0:GS(N)))}; Xs3=function(e){if(!Bk9(e))return!1;var N;e=(N=e.mediaElement)==null?void 0:N.audioTracks();return!!(e&&e.length>1)}; dJM=function(e){var N=Prn(e);if(N)return e.videoData.getAvailableAudioTracks().find(function(y){return y.Vl.getName()===N})}; Prn=function(e){var N;if(e=(N=e.mediaElement)==null?void 0:N.audioTracks())for(N=0;N0&&(N.Rx=w.Wy)); N.AA=w.xX;N.G4=k_(y,{},w.K||void 0,Un(w));N.VB=Gr(w)&&g.ZY(y);N.gW=y.T("html5_catch_errors_for_rollback");L3(w)&&(y.T("html5_sabr_allow_video_keyframe_without_audio")&&(N.jp=!0),y.T("html5_sabr_report_partial_segment_estimated_duration")&&(N.P5=!0),N.J=!0,N.E0=y.T("html5_sabr_enable_utc_seek_requests"),N.TV=y.T("html5_sabr_enable_live_clock_offset"),N.Em=y.T("html5_disable_client_resume_policy_for_sabr"),N.uV=y.T("html5_trigger_loader_when_idle_network"),N.fk=y.T("html5_sabr_parse_live_metadata_playback_boundaries"), N.j$=y.T("html5_enable_platform_backpressure_with_sabr"),N.pz=y.T("html5_consume_onesie_next_request_policy_for_sabr"),N.e$=y.T("html5_sabr_report_next_ad_break_time"),N.d1=y.T("html5_log_high_res_buffer_timeline"),N.c5=y.T("html5_remove_stuck_slices_beyond_max_buffer_limits"),N.YN=y.T("html5_gapless_sabr_btl_last_slice")&&Rf(w),N.Vp=y.T("html5_reset_last_appended_slice_on_seek")&&Rf(w),wd(w)?(N.zd=!0,N.v2=y.T("html5_disable_variability_tracker_for_live"),N.Wk=y.T("html5_sabr_use_accurate_slice_info_params"), y.T("html5_simplified_backup_timeout_sabr_live")&&(N.al=!0,N.sY=N.a7)):N.jn=y.T("html5_probe_request_on_sabr_request_progress"),N.A4=y.T("html5_serve_start_seconds_seek_for_post_live_sabr"),N.im=y.T("html5_flush_index_on_updated_timestamp_offset"),N.Kh=y.T("html5_enable_sabr_request_pipelining")&&!g.xK(w),N.ll=y.T("html5_ignore_partial_segment_from_live_readahead"),N.U8=y.T("html5_use_non_active_broadcast_for_post_live"),N.Rq=y.T("html5_use_centralized_player_time"),N.YB=y.T("html5_consume_onesie_sabr_seek"), N.qg=y.T("html5_enable_sabr_seek_loader_refactor"),N.mL=y.T("html5_update_segment_start_time_from_media_header"),w.enableServerStitchedDai&&(N.L=!0,N.NB=y.T("html5_reset_server_stitch_state_for_non_sabr_seek"),N.yO=y.T("html5_remove_ssdai_append_pause"),N.Ut=y.T("html5_consume_ssdai_info_with_streaming"),N.xX=y.T("html5_process_all_cuepoints")));N.Z=N.J&&y.T("html5_sabr_live");rD(y.L,$E.BITRATE)&&(N.JM=NaN);if(p=g.Y2(y.experiments,"html5_request_size_max_kb"))N.Et=p*1024;y.L.j?N.jN="; "+$E.EXPERIMENTAL.name+ "=allowed":y.T("html5_enable_cobalt_tunnel_mode")&&(N.jN="; tunnelmode=true");p=w.serverPlaybackStartConfig;(p==null?0:p.enable)&&(p==null?0:p.playbackStartPolicy)&&(N.MX=!0,uz(N,p.playbackStartPolicy,2));p=INF(e);e.K8.removeAll();a:{y=e.nX.Bi;if(w=e.videoData.videoId)if(E=y.J.get(w)){y.J.remove(w);y=E;break a}y=void 0}e.tW=new g.Ev(e,e.ph.schedule,N,e.videoData.J,e.videoData.K,Xx(e),p,e.videoData.enableServerStitchedDai,y,e.videoData.Et);N=e.videoData.T("html5_disable_preload_for_ssdai_with_preroll")&& e.videoData.isLivePlayback&&e.wq()?!0:e.So&&g.I_(e.ph)&&e.videoData.isLivePlayback;e.tW.initialize(e.getCurrentTime(),Xx(e),N);e.videoData.probeUrl&&(e.tW.Wk=e.videoData.probeUrl);if(e.wL.length||e.So)e.videoData.cotn||Ps(e,!1);f39(e.ZB,e.tW);e.Yk&&(JYs(e.tW,new g.pW(e.Yk)),e.T("html5_check_decorator_on_cuepoint")&&e.Fh("sdai",{sdl:1}));e.k_&&(e.tW.Mf(e.k_),e.ZB.G=!1);g.QG(e.videoData)&&(e=e.tW,e.policy.Fo=e.policy.lf)}; cs=function(e){e.tW&&(e.tW.dispose(),e.tW=null,f39(e.ZB,null));e.fO()?v7M(e):e.IN()}; v7M=function(e){if(e.TZ)if(e.logger.debug("release media source"),e.wb(),e.TZ.L)try{e.ph.B9()&&e.Fh("rms",{l:"vprms",sr:e.fO(),rs:Kh(e.TZ)});e.TZ.clear();var N;(N=e.mediaElement)!=null&&(N.N=e.TZ);e.TZ=null}catch(y){N=new g.Gh("Error while clearing Media Source in VideoPlayer: "+y.name+", "+y.message),N=I2(N),e.handleError(N),e.IN()}else e.IN()}; ziP=function(e,N){N=N===void 0?!1:N;if(e.TZ)return e.TZ.K;e.logger.debug("update media source");a:{N=N===void 0?!1:N;try{g.O8()&&e.videoData.wg()&&kF9(e.mediaElement);var y=e.mediaElement.E$(e.fI(),e.QF())}catch(E){if($N0(e.Bc,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",E);e.MP("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}e.KH(y,!1,!1,N)}var w;return((w=e.E$())==null?void 0:w.K)||null}; i$F=function(e,N){N=N===void 0?!1:N;if(e.tW){var y=e.getCurrentTime()-e.w7();e.tW.seek(y,{CI:N}).On(function(){})}else hi_(e)}; g7E=function(e,N,y,w){y=y===void 0?!1:y;w=w===void 0?!1:w;if(e.TZ&&(!N||e.TZ===N)){e.logger.debug("media source opened");var E=e.getDuration();!E&&wd(e.videoData)&&(E=25200);if(e.TZ.isView){var A=E;e.logger.debug(function(){return"Set media source duration to "+A+", video duration "+E}); A>e.TZ.getDuration()&&DJ9(e,A)}else DJ9(e,E);ur0(e.tW,e.TZ,y,w);e.publish("mediasourceattached")}}; DJ9=function(e,N){if(e.TZ){e.TZ.zV(N);var y;(y=e.tW)!=null&&y.policy.Rq&&(y.Z=N)}}; nK3=function(e,N){ko_(e,N.reason,N.J.info,N.token,N.videoId)}; Vk9=function(e,N){e.ph.experiments.gP("enable_adb_handling_in_sabr")&&(e.pauseVideo(!0),e.jT(),N&&e.MP("sabr.config",1,"BROWSER_OR_EXTENSION_ERROR"))}; hv=function(e,N){e.publish("internalvideodatachange",N===void 0?"dataupdated":N,e,e.videoData)}; fNJ=function(e){for(var N=g.c("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),y=N.next();!y.done;y=N.next())e.N6.Y(e.mediaElement,y.value,e.KP,e);e.ph.Gg&&e.mediaElement.pk()&&(e.N6.Y(e.mediaElement,"webkitplaybacktargetavailabilitychanged",e.mUt,e),e.N6.Y(e.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",e.n_B,e))}; uxP=function(e){g.k3(e.yx);tk1(e)||(e.yx=g.hE(function(){return tk1(e)},100))}; tk1=function(e){var N=e.mediaElement;N&&e.Hr&&!e.videoData.qg&&!mo("vfp",e.R9.timerName)&&N.Rl()>=2&&!N.isEnded()&&JX(N.O4())>0&&e.R9.tick("vfp");return(N=e.mediaElement)&&!e.videoData.qg&&N.getDuration()>0&&(N.isPaused()&&N.Rl()>=2&&JX(N.O4())>0&&(mo("pbp",e.R9.timerName)||e.R9.tick("pbp"),!e.videoData.zx||e.NI||N.isSeeking()||(e.NI=!0,e.publish("onPlaybackPauseAtStart"))),N=N.getCurrentTime(),RU(e.BC,N))?(e.oi(),!0):!1}; Z$n=function(e){e.Eg().FI();if(yG(e.videoData)&&Date.now()>e.F8+6283){if(!(!e.isAtLiveHead()||e.videoData.J&&CC(e.videoData.J))){var N=e.Eg();if(N.qoe){N=N.qoe;var y=N.provider.JW.gG(),w=g.BG(N.provider);AJn(N,w,y);y=y.K;isNaN(y)||g.IU(N,w,"e2el",[y.toFixed(3)])}}e.T("html5_alc_live_log_rawlat")?(N=e.videoData,N=g.Pa(N.X())?!0:g.xj(N.X())?N.ub==="6":!1):N=g.Pa(e.ph);N&&e.Fh("rawlat",{l:Y7(e.Wx,"rawlivelatency").toFixed(3)});e.F8=Date.now()}e.videoData.N&&GS(e.videoData.N)&&(N=e.K_())&&N.videoHeight!== e.Cp&&(e.Cp=N.videoHeight,ko_(e,"a",qdP(e,e.videoData.VB)))}; qdP=function(e,N){if(N.J.video.quality==="auto"&&GS(N.getInfo())&&e.videoData.jp)for(var y=g.c(e.videoData.jp),w=y.next();!w.done;w=y.next())if(w=w.value,w.getHeight()===e.Cp&&w.J.video.quality!=="auto")return w.getInfo();return N.getInfo()}; rvH=function(e){if(!yG(e.videoData))return NaN;var N=0;e.tW&&e.videoData.J&&(N=wd(e.videoData)?e.tW.eE.AT()||0:e.videoData.J.l9);return(0,g.iC)()/1E3-e.OY()-N}; jY1=function(e){e.mediaElement&&e.mediaElement.ox()&&(e.Ux=(0,g.iC)());e.ph.E0?g.b4(function(){xJs(e)},0):xJs(e)}; xJs=function(e){var N;if((N=e.TZ)==null||!N.QI()){if(e.mediaElement)try{e.iE=e.mediaElement.playVideo()}catch(w){k7(e,"err."+w)}if(e.iE){var y=e.iE;y.then(void 0,function(w){e.logger.debug(function(){return"playMediaElement failed: "+w}); if(!g.G(e.playerState,4)&&!g.G(e.playerState,256)&&e.iE===y)if(w&&w.name==="AbortError"&&w.message&&w.message.includes("load"))e.logger.debug(function(){return"ignore play media element failure: "+w.message}); else{var E="promise";w&&w.name&&(E+=";m."+w.name);k7(e,E);e.Jk=!0;e.videoData.im=!0}})}}}; k7=function(e,N){g.G(e.playerState,128)||(e.zi(EV(e.playerState,1028,9)),e.Fh("dompaused",{r:N}),e.publish("onAutoplayBlocked"))}; Sk=function(e,N){N=N===void 0?!1:N;if(!e.mediaElement||!e.videoData.K)return!1;var y=N;y=y===void 0?!1:y;var w=null;var E;if((E=e.videoData.K)==null?0:E.J){w=ziP(e,y);var A;(A=e.tW)==null||A.resume()}else cs(e),e.videoData.VB&&(w=e.videoData.VB.Eb());E=e.mediaElement.Sd();y=!1;E&&E.Bw(w)||(n7F(e,w),y=!0);g.G(e.playerState,2)||(w=e.ZB,N=N===void 0?!1:N,w.L||!(w.j>0)||w.mediaElement&&w.mediaElement.getCurrentTime()>0||(N={BY:"seektimeline_resumeTime",CI:N},w.videoData.qg||(N.seekSource=15),w.seekTo(w.j, N)));a:{N=y;if(L3(e.videoData)){if(!e.videoData.RV())break a}else if(!g.$I(e.videoData))break a;if(e.mediaElement)if((w=e.videoData.L)&&e.mediaElement.pk()){E=e.mediaElement.ut();if(e.FT)if(E!==e.FT.element)dk(e);else if(N&&w.flavor==="fairplay"&&!Ry())dk(e);else break a;if(e.T("html5_report_error_for_unsupported_tvos_widevine")&&Ry()&&w.flavor==="widevine")e.MP("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.unspttvoswidevine");else{e.FT=new GCJ(E,e.videoData,e.ph);e.FT.subscribe("licenseerror", e.V8,e);e.FT.subscribe("qualitychange",e.Ck9,e);e.FT.subscribe("heartbeatparams",e.pu,e);e.FT.subscribe("keystatuseschange",e.Nx,e);e.FT.subscribe("ctmp",e.Fh,e);e.T("html5_widevine_use_fake_pssh")&&!e.videoData.isLivePlayback&&w.flavor==="widevine"&&e.FT.VQ(new eL(QY5,"cenc",!1));N=g.c(e.K8.keys);for(w=N.next();!w.done;w=N.next())w=e.K8.get(w.value),e.FT.VQ(w);e.T("html5_eme_loader_sync")||e.K8.removeAll()}}else e.MP("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1")}return y}; n7F=function(e,N){e.R9.tick("vta");KV("vta",void 0,"video_to_ad");e.getCurrentTime()>0&&ZWF(e.ZB,e.getCurrentTime());e.mediaElement.activate(N);e.TZ&&Em(0,4);!e.videoData.qg&&e.playerState.isOrWillBePlaying()&&e.X2.start();if(Bk9(e)){var y;if(N=(y=e.mediaElement)==null?void 0:y.audioTracks())N.onchange=function(){e.publish("internalaudioformatchange",e.videoData,!0)}}}; dk=function(e){e.FT&&(e.FT.dispose(),e.FT=null)}; mJs=function(e){var N=N===void 0?!1:N;e.logger.debug("reattachVideoSource");e.mediaElement&&(e.TZ?(dk(e),e.IN(),ziP(e,N)):(e.videoData.VB&&e.videoData.VB.tj(),e.mediaElement.stopVideo()),e.playVideo())}; H$H=function(e,N){e.ph.T("html5_log_rebuffer_reason")&&(N={r:N,lact:z_()},e.mediaElement&&(N.bh=U3(e.mediaElement)),e.Fh("bufreason",N))}; KP9=function(e,N){if(e.ph.B9()&&e.mediaElement){var y=e.mediaElement.N7();y.omt=(e.mediaElement.getCurrentTime()+e.w7()).toFixed(3);y.ps=e.playerState.state.toString(16);y.rt=(g.BG(e.Eg().provider)*1E3).toFixed();y.e=N;e.S5[e.Kt++%5]=y}try{if(N==="timeupdate"||N==="progress")return}catch(w){}e.logger.debug(function(){return"video element event "+N})}; WPP=function(e){if(e.ph.B9()){e.S5.sort(function(w,E){return+w.rt-+E.rt}); for(var N=g.c(e.S5),y=N.next();!y.done;y=N.next())y=y.value,e.Fh("vpe",Object.assign({t:y.rt},y));e.S5=[];e.Kt=0}}; O$3=function(e){if(g.Kp("cobalt")&&g.Kp("nintendo switch")){var N=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;e.Fh("nxdock",{d:N})}}; Ps=function(e,N){var y;(y=e.tW)==null||Tt(y,N)}; JW3=function(e,N){return g.xK(e.videoData)&&e.k_?e.k_.handleError(N,void 0):!1}; FP5=function(e){NK(e.videoData,"html5_set_debugging_opt_in")&&(e=g.m6(),g.HE(0,183)||(WE(183,!0),e.save()))}; RiM=function(e){return g.xK(e.videoData)&&e.k_?LH(e.k_):e.videoData.ra()}; M53=function(e,N){e.nX.xB()||(e.Fh("sgap",{f:N}),e.nX.clearQueue(!1,N==="pe"))}; To=function(e){return e.T("html5_disable_video_player_initiated_seeks")&&L3(e.videoData)}; Go5=function(e){jX.call(this,e);var N=this;this.events=new g.fd(e);g.Q(this,this.events);LX(this.api,"isLifaAdPlaying",function(){return N.api.isLifaAdPlaying()}); this.events.Y(e,"serverstitchedvideochange",function(){N.api.isLifaAdPlaying()?(N.playbackRate=N.api.getPlaybackRate(),N.api.setPlaybackRate(1)):N.api.setPlaybackRate(N.playbackRate)}); this.playbackRate=1}; UJ3=function(e){jX.call(this,e);var N=this;this.events=new g.fd(e);g.Q(this,this.events);LX(this.api,"seekToChapterWithAnimation",function(y){N.seekToChapterWithAnimation(y)}); LX(this.api,"seekToTimeWithAnimation",function(y,w){N.seekToTimeWithAnimation(y,w)}); LX(this.api,"renderChapterSeekingAnimation",function(y,w,E){N.api.renderChapterSeekingAnimation(y,w,E)}); LX(this.api,"setMacroMarkers",function(y){N.setMacroMarkers(e,y)}); LX(this.api,"changeMarkerVisibility",function(y,w,E){N.changeMarkerVisibility(y,w,E)}); LX(this.api,"isSameMarkerTypeVisible",function(y){return N.isSameMarkerTypeVisible(y)})}; LP5=function(e,N,y){var w=e.api.getCurrentTime()*1E30&&E>0&&(y.width+=E,g.$0(N.element,"width",y.width+"px")));e.size=y}}; g.Q_=function(e,N){var y=e.J[e.J.length-1];y!==N&&(e.J.push(N),Xos(e,y,N))}; g.mP=function(e){if(!(e.J.length<=1)){var N=e.J.pop(),y=e.J[0];e.J=[y];Xos(e,N,y,!0)}}; Xos=function(e,N,y,w){PJ5(e);N&&(N.unsubscribe("size-change",e.FR,e),N.unsubscribe("back",e.z4,e));y.subscribe("size-change",e.FR,e);y.subscribe("back",e.z4,e);if(e.Og){g.pi(y.element,w?"ytp-panel-animate-back":"ytp-panel-animate-forward");y.yB(e.element);y.focus();e.element.scrollLeft=0;e.element.scrollTop=0;var E=e.size;BHH(e);g.k0(e.element,E);e.Z=new g.e6(function(){dl5(e,N,y,w)},20,e); e.Z.start()}else y.yB(e.element),N&&N.detach()}; dl5=function(e,N,y,w){e.Z.dispose();e.Z=null;g.pi(e.element,"ytp-popup-animating");w?(g.pi(N.element,"ytp-panel-animate-forward"),g.re(y.element,"ytp-panel-animate-back")):(g.pi(N.element,"ytp-panel-animate-back"),g.re(y.element,"ytp-panel-animate-forward"));g.k0(e.element,e.size);e.G=new g.e6(function(){g.re(e.element,"ytp-popup-animating");N.detach();g.$1(N.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);e.G.dispose();e.G=null},250,e); e.G.start()}; PJ5=function(e){e.Z&&g.yE(e.Z);e.G&&g.yE(e.G)}; Hs=function(e){g.n$.call(this,e,"ytp-shopping-product-menu");this.z9=new g.x7(this.C);g.Q(this,this.z9);this.hide();g.Q_(this,this.z9);g.Pb(this.C,this.element,4)}; vP0=function(e,N,y){var w,E=N==null?void 0:(w=N.text)==null?void 0:w.simpleText;E&&(y=IvH(e,y,E,N==null?void 0:N.icon,N==null?void 0:N.secondaryIcon),N.navigationEndpoint&&y.listen("click",function(){e.C.Mg("innertubeCommand",N.navigationEndpoint);e.hide()},e))}; zNs=function(e,N,y){var w,E=N==null?void 0:(w=N.text)==null?void 0:w.simpleText;E&&IvH(e,y,E,N==null?void 0:N.icon).listen("click",function(){var A;(N==null?void 0:(A=N.icon)==null?void 0:A.iconType)==="HIDE"?e.C.publish("featuredproductdismissed"):N.serviceEndpoint&&e.C.Mg("innertubeCommand",N.serviceEndpoint);e.hide()},e)}; IvH=function(e,N,y,w,E){N=new g.uh(g.qU({},[],!1,!!E),N,y);E&&N.updateValue("secondaryIcon",iZE(E));N.setIcon(iZE(w));g.Q(e,N);e.z9.Gi(N,!0);return N}; iZE=function(e){if(!e)return null;switch(e.iconType){case "ACCOUNT_CIRCLE":return{S:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{S:"path",V:{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{S:"svg",V:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{S:"path",V:{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 bl5();case "HIDE":return{S:"svg",V:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{S:"g",W:[{S:"path",V:{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 d1()}}; K$=function(e){qJ.call(this,e,!1,!0);this.isCounterfactual=this.N=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.U=!0;this.overflowButton=new g.W({S:"button",dP:["ytp-featured-product-overflow-icon","ytp-button"],V:{"aria-haspopup":"true"}});this.overflowButton.hide();g.Q(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.W({S:"img",B:"ytp-suggested-action-badge-img",V:{src:"{{url}}"}}); this.thumbnailImage.hide();g.Q(this,this.thumbnailImage);this.thumbnailIcon=new g.W({S:"div",B:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.Q(this,this.thumbnailIcon);this.banner=new g.W({S:"a",B:"ytp-suggested-action-container",W:[this.thumbnailImage,this.thumbnailIcon,{S:"div",B:"ytp-suggested-action-details",W:[{S:"text",B:"ytp-suggested-action-title",b9:"{{title}}"},{S:"text",B:"ytp-suggested-action-subtitle",b9:"{{subtitle}}"},{S:"text",B:"ytp-suggested-action-metadata-text", b9:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.Q(this,this.banner);this.banner.yB(this.K.element);this.Y(this.C,"videodatachange",this.onVideoDataChange);this.Y(this.C,g.AA("suggested_action_view_model"),this.uZZ);this.Y(this.C,g.TW("suggested_action_view_model"),this.iXP);this.Y(this.overflowButton.element,"click",this.WO);this.Y(e,"featuredproductdismissed",this.UA);this.C.createServerVe(this.banner.element,this.banner,!0)}; DlM=function(e){e.isInitialized&&(e.enabled=e.isVisible,e.Kh=e.isVisible,ur(e),e.xK(),e.thumbnailImage.KX(e.isVisible),e.shouldHideDismissButton||e.dismissButton.KX(e.isVisible),e.shouldShowOverflowButton&&e.overflowButton.KX(e.isVisible))}; Ws=function(){K$.apply(this,arguments)}; gPE=function(e){jX.call(this,e);this.J=new Ws(this.api);g.Q(this,this.J);g.Pb(this.api,this.J.element,4)}; Od=function(e){jX.call(this,e);var N=this;this.J="";this.K=!0;this.N=this.api.T("html5_enable_audio_track_stickiness_phase_two");var y=new g.fd(e);g.Q(this,y);y.Y(e,"internalaudioformatchange",function(w,E){VB0(N,w,E)}); y.Y(e,"videoplayerreset",function(){fvn(N)}); y.Y(e,"videodatachange",function(w,E){N.onVideoDataChange(w,E)})}; VB0=function(e,N,y){if(y){var w="";tB_(e,N)&&(w=N,e.N||(e.J=N),e.api.T("html5_sabr_enable_server_xtag_selection")&&(y=e.api.getVideoData(void 0,!0)))&&(y.E0=N);if(e.N&&w&&u_M(e,w)){var E;A$(UI(e.api.X(),(E=e.api.getVideoData())==null?void 0:g.qK(E)),function(A){qN5(e,w,A)})}}}; fvn=function(e){if(e.J)ZZ_(e);else{var N;if(e.N&&((N=fA())==null?0:N.size)){var y;A$(UI(e.api.X(),(y=e.api.getVideoData())==null?void 0:g.qK(y)),function(w){if((w=xl5(w))&&u_M(e,w)){var E=e.api.getVideoData(void 0,!0);E&&(E.E0=w)}})}}}; ZZ_=function(e){var N=e.api.getVideoData(void 0,!0);N&&(N.E0=e.J)}; qN5=function(e,N,y){xl5(y)!==N&&(j3_([{settingItemId:RY(y),settingOptionValue:{stringValue:N}}]),A$(e.WI(),function(w){y0H(w,RY(y),{stringValue:N})}))}; nPM=function(e,N){Tm(A$(A$(e.WI(),function(y){return ekM(y,[RY(N)])}),function(y){if(y){y=g.c(y); for(var w=y.next();!w.done;w=y.next()){var E=w.value;w=E.key;E=E.value;w&&E&&j3_([{settingItemId:w,settingOptionValue:E}])}}}),function(){e.K=!0})}; tB_=function(e,N){e=e.api.getAvailableAudioTracks();e=g.c(e);for(var y=e.next();!y.done;y=e.next())if(y=y.value,y.getLanguageInfo().getId()===N)return y;return null}; xl5=function(e){e=RY(e);var N=fA();e=N?N.get(e):void 0;return e&&e.stringValue?e.stringValue:""}; RY=function(e){var N=(484).toString();e&&(N=(483).toString());return N}; u_M=function(e,N){var y;return N.split(".")[0]!==""&&((y=e.api.getVideoData())==null?void 0:!xI(y))}; j3_=function(e){var N=fA();N||(N=new Map);e=g.c(e);for(var y=e.next();!y.done;y=e.next())y=y.value,N.set(y.settingItemId,y.settingOptionValue);N=JSON.stringify(Object.fromEntries(N));g.uY("yt-player-user-settings",N,2592E3)}; g.Go=function(e,N,y,w,E,A,T){g.uh.call(this,g.qU({"aria-haspopup":"true"}),N,e);this.x_=w;this.U=!1;this.K=null;this.options={};this.N=new g.x7(y,void 0,e,E,A,T);g.Q(this,this.N);this.listen("keydown",this.vO);this.listen("click",this.open)}; Q31=function(e){if(e.K){var N=e.options[e.K];N.element.getAttribute("aria-checked");N.element.setAttribute("aria-checked","false");e.K=null}}; ml3=function(e,N){g.Go.call(this,"Timer de suspens\u00e3o",g.aq.SLEEP_TIMER,e,N);this.C=e;this.D={};this.Z=this.Rw("Off");this.G=this.J="";e.T("web_settings_menu_icons")&&this.setIcon({S:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{S:"path",V:{d:"M16.67,4.31C19.3,5.92,21,8.83,21,12c0,4.96-4.04,9-9,9c-2.61,0-5.04-1.12-6.72-3.02C5.52,17.99,5.76,18,6,18 c6.07,0,11-4.93,11-11C17,6.08,16.89,5.18,16.67,4.31 M14.89,2.43C15.59,3.8,16,5.35,16,7c0,5.52-4.48,10-10,10 c-1,0-1.97-0.15-2.89-0.43C4.77,19.79,8.13,22,12,22c5.52,0,10-4.48,10-10C22,7.48,19,3.67,14.89,2.43L14.89,2.43z M12,6H6v1h4.5 L6,10.99v0.05V12h6v-1H7.5L12,7.01V6.98V6L12,6z", fill:"#fff"}}]});this.j=new g.W({S:"div",dP:["ytp-menuitem-label-wrapper"],W:[{S:"div",b9:"Fim do v\u00eddeo"},{S:"div",dP:["ytp-menuitem-sublabel"],b9:"{{content}}"}]});g.Q(this,this.j);this.listen("click",this.onClick);this.Y(e,"videodatachange",this.onVideoDataChange);this.Y(e,"presentingplayerstatechange",this.GZ);this.Y(e,"settingsMenuVisibilityChanged",this.XGs);e.createClientVe(this.element,this,218889);this.GZ();this.C.Mg("onSleepTimerFeatureAvailable")}; HZH=function(e){var N="Off 10 15 20 30 45 60".split(" "),y;((y=e.C.getVideoData())==null?0:y.isLivePlayback)||N.push("End of video");y=e.C.getPlaylist();var w;y&&((w=y.listId)==null?void 0:w.type)!=="RD"&&N.push("End of playlist");e.Pc(g.dn(N,e.Rw));e.D=g.l7(N,e.Rw,e);N=e.Rw("End of video");e.options[N]&&g.tu(e.options[N],e.j)}; Km1=function(e,N){var y=e.D[N],w=y==="End of video"||y==="End of playlist";y==="Off"&&(e.J="");e.C.getPlayerState()!==0&&e.C.getPlayerState()!==5||!w?(e.Z=N,g.Go.prototype.dQ.call(e,N),e.BI(N),e.C.Mg("onSleepTimerSettingsChanged",y)):e.C.Mg("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"O v\u00eddeo j\u00e1 terminou"}}}}})}; Ud=function(e){jX.call(this,e);var N=this;e.addEventListener("settingsMenuInitialized",function(){N.menuItem||(N.menuItem=new ml3(N.api,N.api.X6()),g.Q(N,N.menuItem))}); e.addEventListener("openSettingsMenuItem",function(y){if(y==="menu_item_sleep_timer"){if(!N.menuItem){var w;(w=N.api.X6())==null||w.WY()}N.menuItem.open()}}); LX(e,"resetSleepTimerMenuSettings",function(){N.resetSleepTimerMenuSettings()}); LX(e,"setSleepTimerTimeLeft",function(y){N.setSleepTimerTimeLeft(y)}); LX(e,"setVideoTimeLeft",function(y){N.setVideoTimeLeft(y)})}; WmF=function(e){jX.call(this,e);var N=this;this.events=new g.fd(e);g.Q(this,this.events);this.events.Y(e,"onSnackbarMessage",function(y){switch(y){case 1:y=N.api.getPlayerStateObject(),y.isBuffering()&&g.G(y,8)&&g.G(y,16)&&N.api.Mg("innertubeCommand",{openPopupAction:{popup:{notificationActionRenderer:{responseText:{runs:[{text:"Enfrentando interrup\u00e7\u00f5es?"}]},actionButton:{buttonRenderer:{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:{runs:[{text:"Descubra por qu\u00ea"}]},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.sd=function(e,N,y,w,E){N=N===void 0?!1:N;w=w===void 0?!1:w;E=E===void 0?!1:E;g.pT.call(this);this.D=E;this.G=!1;this.j=new iY(this);this.L=this.Z=null;this.K=this.N=!1;g.Q(this,this.j);this.target=e;this.J=N;this.U=y||e;this.G=w;N&&(g.RB&&this.target.setAttribute("draggable","true"),E||(this.target.style.touchAction="none"));L$(this)}; aY=function(e){g.g9(e.j,!e.J)}; L$=function(e){e.L=null;e.Z=null;e.Y(eB("over"),e.IL);e.Y("touchstart",e.ob);e.J&&e.Y(eB("down"),e.CtB)}; OZ0=function(e,N){for(var y=0;yE.start&&y>=5;d+=V}S=d.substr(0,4)+" "+d.substr(4,4)+" "+d.substr(8,4)+" "+(d.substr(12,4)+" "+d.substr(16, 4))}else S="";C={video_id_and_cpn:String(N.videoId)+" / "+S,codecs:"",dims_and_frames:"",bandwidth_kbps:C.toFixed(0)+" Kbps",buffer_health_seconds:Y.toFixed(2)+" s",date:""+(new Date).toString(),drm_style:M?"":"display:none",drm:M,debug_info:y,extra_debug_info:"",bandwidth_style:F,network_activity_style:F,network_activity_bytes:r.toFixed(0)+" KB",shader_info:l,shader_info_style:l?"":"display:none",playback_categories:""};r=w.clientWidth+"x"+w.clientHeight+(E>1?"*"+E.toFixed(2):"");Y="-";T.totalVideoFrames&& (Y=(T.droppedVideoFrames||0)+" dropped of "+T.totalVideoFrames);C.dims_and_frames=r+" / "+Y;e=e.getVolume();T=eq1(N);var n;r=((n=N.j)==null?0:n.audio.J)?"DRC":Math.round(e*T)+"%";n=Math.round(e)+"% / "+r;e=N.Fo.toFixed(1);isFinite(Number(e))&&(n+=" (content loudness "+e+"dB)");C.volume=n;C.resolution=w.videoWidth+"x"+w.videoHeight;if(w=N.N){if(n=w.video)e=n.fps,e>1&&(C.resolution+="@"+e),(e=A.xP1)&&e.video&&(C.resolution+=" / "+e.video.width+"x"+e.video.height,e.video.fps>1&&(C.resolution+="@"+e.video.fps)), C.codecs=s3M(w),!N.j||w.audio&&w.video?w.ZZ&&(C.codecs+=" / "+w.ZZ+"A"):C.codecs+=" / "+s3M(N.j),n.N||n.primaries?(e=n.N||"unknown",e==="smpte2084"?e+=" (PQ)":e==="arib-std-b67"&&(e+=" (HLG)"),C.color=e+" / "+(n.primaries||"unknown"),C.color_style=""):C.color_style="display:none";if(w.debugInfo)for(C.fmt_debug_info="",w=g.c(w.debugInfo),n=w.next();!n.done;n=w.next())n=n.value,C.fmt_debug_info+=n.label+":"+n.text+" ";C.fmt_debug_info_style=C.fmt_debug_info&&C.fmt_debug_info.length>0?"":"display:none"}w= N.isLivePlayback;n=N.Ta;C.live_mode_style=w||n?"":"display:none";C.live_latency_style=w?"":"display:none";if(n)C.live_mode="Post-Live"+(wd(N)?" Manifestless":"");else if(w){n=Y7(p,"livelatency");C.live_latency_secs=n.toFixed(2)+"s";w=wd(N)?"Manifestless, ":"";N.Rq&&(w+="Windowed, ");e="Uncertain";if(n>=0&&n<120)if(N.latencyClass&&N.latencyClass!=="UNKNOWN")switch(N.latencyClass){case "NORMAL":e="Optimized for Normal Latency";break;case "LOW":e="Optimized for Low Latency";break;case "ULTRALOW":e="Optimized for Ultra Low Latency"; break;default:e="Unknown Latency Setting"}else e=N.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";w+=e;(n=A.G9t)&&(w+=", seq "+n.sequence);C.live_mode=w}!A.isGapless||Rf(N)&&A.xB||(C.playback_categories+="Gapless ");C.playback_categories_style=C.playback_categories?"":"display:none";C.bandwidth_samples=$7(p,"bandwidth");C.network_activity_samples=$7(p,"networkactivity");C.live_latency_samples=$7(p,"livelatency");C.buffer_health_samples=$7(p,"bufferhealth");A=g.QG(N); if(N.cotn||A)C.cotn_and_local_media=(N.cotn?N.cotn:"null")+" / "+A;C.cotn_and_local_media_style=C.cotn_and_local_media?"":"display:none";NK(N,"web_player_release_debug")?(C.release_name="youtube.player.web_20250209_00_RC00",C.release_style=""):C.release_style="display:none";C.debug_info&&k.length>0&&C.debug_info.length+k.length<=60?C.debug_info+=" "+k:C.extra_debug_info=k;C.extra_debug_info_style=C.extra_debug_info&&C.extra_debug_info.length>0?"":"display:none";return C}; s3M=function(e){var N=/codecs="([^"]*)"/.exec(e.mimeType);return N&&N[1]?N[1]+" ("+e.itag+")":e.itag}; J9=function(e,N,y,w,E){g.W.call(this,{S:"div",B:"ytp-horizonchart"});this.G=N;this.sampleCount=y;this.j=w;this.Z=E;this.index=0;this.heightPx=-1;this.K=this.N=null;this.J=Math.round(e/y);this.element.style.width=this.J*this.sampleCount+"px";this.element.style.height=this.G+"em"}; pZ=function(e,N){if(e.heightPx===-1){var y=null;try{y=g.sA("CANVAS"),e.N=y.getContext("2d")}catch(p){}if(e.N){var w=e.J*e.sampleCount;e.K=y;e.K.width=w;e.K.style.width=w+"px";e.element.appendChild(e.K)}else for(e.sampleCount=Math.floor(e.sampleCount/4),e.J*=4,y=0;y1?2:1,e.K.height=e.heightPx*y,e.K.style.height= e.heightPx+"px",e.N.scale(1,y)));N=g.c(N);for(w=N.next();!w.done;w=N.next()){y=e;var E=e.index,A=w.value;for(w=0;w+20&&g.N8(N.K.element);w.classList.add("ytp-timely-actions-overlay");N.K.element.appendChild(w)}); g.Q(this,this.K);g.Pb(this.api,this.K.element,4)}; Mzn=function(e){e.timelyActions&&(e.j=e.timelyActions.reduce(function(N,y){if(y.cueRangeId===void 0)return N;N[y.cueRangeId]=0;return N},{}))}; YP=function(e,N){if(e.timelyActions){e=g.c(e.timelyActions);for(var y=e.next();!y.done;y=e.next())if(y=y.value,y.cueRangeId===N)return y}}; lDE=function(e,N){if((e=YP(e,N))&&e.onCueRangeExit)return jP(e.onCueRangeExit)}; F25=function(e){if(e.J!==void 0){var N=(N=YP(e,e.J))&&N.onCueRangeEnter?jP(N.onCueRangeEnter):void 0;var y=YP(e,e.J);if(y&&y.additionalTrigger){var w=!1;for(var E=g.c(y.additionalTrigger),A=E.next();!A.done;A=E.next())A=A.value,A.type&&A.args&&e.Z[A.type]!==void 0&&(w=w||e.Z[A.type](A.args))}else w=!0;N&&w&&(e.api.Mg("innertubeCommand",N),e.setTimeout(y),e.j[e.J]!==void 0&&e.j[e.J]++)}}; rk0=function(e,N){return e.N===void 0?!1:N.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(N.seekLengthMilliseconds)===5E3?e.N===72:N.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(N.seekLengthMilliseconds)===1E4?e.N===74:N.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(N.seekLengthMilliseconds)===5E3?e.N===71:N.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(N.seekLengthMilliseconds)===1E4?e.N===73:!1}; $hH=function(e){if(e=e.getWatchNextResponse()){var N,y;e=(N=e.playerOverlays)==null?void 0:(y=N.playerOverlayRenderer)==null?void 0:y.timelyActionsOverlayViewModel;N=g.m(e,SL0);if(N!=null&&N.timelyActions)return N==null?void 0:N.timelyActions.map(function(w){return g.m(w,oyH)}).filter(function(w){return!!w})}}; bJ0=function(e){jX.call(this,e);var N=this;a$(this.api,"getPlaybackRate",function(){return N.api.getPlaybackRate()}); a$(this.api,"setPlaybackRate",function(y){typeof y==="number"&&N.api.setPlaybackRate(y)})}; hZ_=function(e){e=e.nC();if(!e)return!1;e=g.JE(e).exp||"";return e.includes("xpv")||e.includes("xpe")}; ck0=function(e){e=g.c(g.Ml(e,!0));for(var N=e.next();!N.done;N=e.next())if(hZ_(N.value))return!0;return!1}; kP_=function(e,N){e=g.c(g.Ml(e,!0));for(var y=e.next();!y.done;y=e.next())if(y=y.value,hZ_(y)){var w={potc:"1",pot:N};y.url&&(y.url=pp(y.url,w))}}; BC1=function(e){var N=new NR1,y={},w=(y["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",y);return new Bn(N,e,function(){return w})}; F_=function(e){jX.call(this,e);var N=this;this.useLivingRoomPoToken=!1;this.j=new g.lq;this.R9=null;this.G=!1;this.K=null;this.L=!1;var y=e.X().getWebPlayerContextConfig();this.events=new g.fd(e);g.Q(this,this.events);this.events.Y(e,"spsumpreject",function(w,E,A){N.L=E;w&&N.G&&!N.K&&(N.T("html5_generate_content_po_token")&&A?N.pJ(A):N.T("html5_generate_session_po_token")&&X65(N));N.K||N.api.Fh("stp",{s:+N.G,b:+N.L})}); this.events.Y(e,"poTokenVideoBindingChange",function(w){N.pJ(w)}); this.useLivingRoomPoToken=!(y==null||!y.useLivingRoomPoToken);e.addEventListener("csiinitialized",function(){N.R9=e.s4();var w=(N.T("html5_generate_session_po_token")||N.T("html5_generate_content_po_token"))&&!N.useLivingRoomPoToken;try{if(N.T("html5_use_shared_owl_instance"))PoH(N);else if(w){N.R9.oe("pot_isc");N.T("html5_new_wpo_client")||dh5(N);var E=g.Y2(N.api.X().experiments,"html5_webpo_kaios_defer_timeout_ms");E?(N.T("html5_new_wpo_client")&&(N.N=QX()),g.b4(function(){lJ(N)},E)):N.T("html5_webpo_idle_priority_job")? (N.T("html5_new_wpo_client")&&(N.N=QX()),g.e1(g.yK(),function(){lJ(N)})):lJ(N)}}catch(A){A instanceof Error&&g.uA(A)}}); e.addEventListener("trackListLoaded",this.Qb.bind(this));e.lG(this)}; IDH=function(e){var N=ms(e.experiments,"html5_web_po_request_key");return N?N:g.I_(e)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; zZ0=function(e,N){var y=new O5(N);return Object.assign({},vy5(e,y),{Ss:function(){return y.Ss()}, dispose:function(){return void y.dispose()}})}; SB=function(e,N){if(e.T("html5_webpo_bge_ctmp")){var y,w={hwpo:!!e.J,hwpor:!((y=e.J)==null||!y.isReady())};e.api.Fh(N,w)}}; PoH=function(e){var N,y;g.f(function(w){if(w.J==1)return SB(e,"swpo_i"),e.N=QX(),o3(e),g.D(w,DS(),2);if(w.J!=3)return N=w.N,SB(e,"swpo_co"),g.D(w,spM(N),3);y=w.N;e.J=vy5(e,y);SB(e,"swpo_cc");e.J.ready().then(function(){e.j.resolve();SB(e,"swpo_re")}); g.b4(function(){lJ(e);SB(e,"swpo_si")},0); g.hn(w)})}; dh5=function(e){var N=e.api.X(),y=IDH(N),w=BC1(y);N=new UJ({XB:y,Gq:w,onEvent:function(E){(E=iJP[E])&&e.R9.oe(E)}, onError:g.uA,Dv:F5n(N.experiments),TK:function(){return void e.api.Fh("itr",{})}, Nmh:N.experiments.gP("html5_web_po_disable_remote_logging")||DhE.includes(g.uB(N.qg)||"")});N.ready().then(function(){return void e.j.resolve()}); g.Q(e,N);e.J=N}; gy1=function(e){var N=e.api.X(),y=BC1(IDH(N)),w=y.BU.bind(y);y.BU=function(p){var C;return g.f(function(r){if(r.J==1)return g.D(r,w(p),2);C=r.N;e.api.Fh("itr",{});return r.return(C)})}; try{var E=new Xa({Gq:y,T3:{maxAttempts:5},EW:{disable:N.experiments.gP("html5_web_po_disable_remote_logging")||DhE.includes(g.uB(N.qg)||""),QV:F5n(N.experiments),Sg1:e.T("wpo_dis_lfdms")?0:1E3},x7h:g.uA});var A=zZ0(e,{f$:E,Gq:y,onError:g.uA});A.ready().then(function(){return void e.j.resolve()}); g.Q(e,E);g.Q(e,A);e.J=A}catch(p){g.uA(p);var T;(T=E)==null||T.dispose()}}; lJ=function(e){var N=e.api.X();e.R9.oe("pot_ist");e.J?e.J.start():e.T("html5_new_wpo_client")&&gy1(e);e.T("html5_bandaid_attach_content_po_token")||(e.T("html5_generate_session_po_token")&&(o3(e),X65(e)),N=g.Y2(N.experiments,"html5_session_po_token_interval_time_ms")||0,N>0&&(e.Z=g.hE(function(){o3(e)},N)),e.G=!0)}; o3=function(e){var N,y,w,E;g.f(function(A){if(!e.T("html5_generate_session_po_token")||e.useLivingRoomPoToken)return A.return();N=e.api.X();y=g.Lb("EOM_VISITOR_DATA")||g.Lb("VISITOR_DATA");w=N.il?N.datasyncId:y;E=ms(N.experiments,"html5_mock_content_binding_for_session_token")||N.livingRoomPoTokenId||w;N.NG=bJ(e,E);g.hn(A)})}; bJ=function(e,N){if(!e.J)return e.N?e.N(N):"";try{var y=e.J.isReady();e.R9.oe(y?"pot_cms":"pot_csms");var w="";w=e.T("html5_web_po_token_disable_caching")?e.J.Gr({qX:N}):e.J.Gr({qX:N,h1:{Lk:N,w9B:150,Xa:!0,W4:!0}});e.R9.oe(y?"pot_cmf":"pot_csmf");if(y){var E;(E=e.K)==null||E.resolve();e.K=null;if(e.L){e.L=!1;var A;(A=e.api.app.nh())==null||A.GR(!1)}}return w}catch(T){return g.uA(T),""}}; X65=function(e){e.J&&(e.K=new O3,e.J.ready().then(function(){e.R9.oe("pot_if");o3(e)}))}; vy5=function(e,N){e.T("html5_web_po_token_disable_caching")||N.Mh(150);var y=!1;N.L3().finally(function(){y=!0}); return{isReady:function(){return y}, Gr:function(w){return N.Gr({qX:w.qX,Ic:!0,Dw:!0,h1:w.h1?{Lk:w.h1.Lk,Xa:w.h1.Xa,W4:w.h1.W4}:void 0})}, ready:function(){return g.f(function(w){if(w.J==1)return g.c5(w,2),g.D(w,N.L3(),4);if(w.J!=2)return g.B5(w,0);g.XH(w);g.hn(w)})}, start:function(){}}}; VzF=function(e){jX.call(this,e);var N=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.fd(e);g.Q(this,this.events);this.events.Y(e,"heartbeatRequest",function(y){if(N.freePreviewUsageDetails.length||N.freePreviewWatchedDuration!==null)y.heartbeatRequestParams||(y.heartbeatRequestParams={}),y.heartbeatRequestParams.unpluggedParams||(y.heartbeatRequestParams.unpluggedParams={}),N.freePreviewUsageDetails.length>0?y.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= N.freePreviewUsageDetails:y.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+N.freePreviewWatchedDuration}}); LX(e,"setFreePreviewWatchedDuration",function(y){N.freePreviewWatchedDuration=y}); LX(e,"setFreePreviewUsageDetails",function(y){N.freePreviewUsageDetails=y})}; h9=function(e){g.x.call(this);this.features=[];var N=this.J,y=new FC(e),w=new nD(e),E=new ir(e),A=new F_(e);var T=g.Pa(e.X())?void 0:new Jz(e);var p=new zo(e),C=new yk_(e),r=new bJ0(e),Y=new l3(e);var M=g.Pa(e.X())?new VzF(e):void 0;var l=e.T("html5_enable_ssap")?new Lm5(e):void 0;var F=e.T("web_cinematic_watch_settings")&&(F=e.X().getWebPlayerContextConfig())!=null&&F.cinematicSettingsAvailable?new y9(e):void 0;var S=new Mw(e);var k=e.T("enable_courses_player_overlay_purchase")?new r$E(e):void 0; var X=g.na(e.X())?new TQ5(e):void 0;var d=new p5(e);var v=e.X().j?new eBM(e):void 0;var V=g.hR(e.X())?new azP(e):void 0;var Z=e.T("web_player_move_autonav_toggle")&&e.X().YO?new WlM(e):void 0;var n=g.na(e.X())?new UJ3(e):void 0;var R=e.T("web_enable_speedmaster")&&g.na(e.X())?new wH(e):void 0;var O=e.X().ul?void 0:new Con(e);var E9=e.T("report_pml_debug_signal")?new Qcs(e):void 0;var Jn=new CJn(e),eM=new f$(e);var H=e.T("enable_web_player_player_in_bar_feature")&&g.ZY(e.X())?new hNM(e):void 0;var a= navigator.mediaSession&&window.MediaMetadata&&e.X().DN?new IY(e):void 0;var h=e.T("html5_enable_drc")&&!e.X().Z?new Tc(e):void 0;var K=new m3(e);var aP=g.na(e.X())?new gPE(e):void 0;var XF=e.T("html5_enable_d6de4")?new DN(e):void 0;var Yw=g.na(e.X())&&e.T("web_sleep_timer")?new Ud(e):void 0;var v5=g.hR(e.X())?new y$0(e):void 0;var U9=new Od(e),yT=new w3(e),S0=new Go5(e);var P=e.T("enable_sabr_snackbar_message")?new WmF(e):void 0;var I=e.T("web_enable_timely_actions")?new YL0(e):void 0;N.call(this, y,w,E,A,T,p,C,r,Y,M,l,F,S,k,X,d,v,V,Z,n,R,O,E9,Jn,eM,H,void 0,a,h,K,void 0,aP,XF,Yw,v5,void 0,U9,yT,S0,void 0,P,I,new Ei(e))}; co=function(){this.N=this.J=NaN}; fD9=function(e,N){this.ph=e;this.timerName="";this.K=!1;this.N=NaN;this.j=new co;this.J=N||null;this.K=!1}; tzM=function(e,N,y){var w=g.dw(N.Ot)&&!N.Ot.Z;if(N.Ot.yh&&(kj(N.Ot)||N.Ot.Rq==="shortspage"||Wg(N.Ot)||w)&&!e.K){e.K=!0;e.Z=N.clientPlaybackNonce;g.Lb("TIMING_ACTION")||Ua("TIMING_ACTION",e.ph.csiPageType);e.ph.csiServiceName&&Ua("CSI_SERVICE_NAME",e.ph.csiServiceName);if(e.J){w=e.J.s4();for(var E=g.c(Object.keys(w)),A=E.next();!A.done;A=E.next())A=A.value,jZ(A,w[A],e.timerName);w=g.NR(t7F)(e.J.OV);g.nV(w,e.timerName);w=e.J;w.N={};w.OV={}}g.nV({playerInfo:{visibilityState:g.NR(fxH)()},playerType:"LATENCY_PLAYER_HTML5"}, e.timerName);e.L!==N.clientPlaybackNonce||Number.isNaN(e.N)||(mo("_start",e.timerName)?y=g.NR(ty)("_start",e.timerName)+e.N:g.uA(new g.Gh("attempted to log gapless pbs before CSI timeline started",{cpn:N.clientPlaybackNonce})));y&&!mo("pbs",e.timerName)&&e.tick("pbs",y)}}; uhH=function(e,N,y,w,E,A,T){e=(e===y?"video":"ad")+"_to_"+(N===y?"video":"ad");if(e!=="video_to_ad"||A!=null&&A.qg){A=e==="ad_to_video"?A:w;y=A==null?void 0:A.Al;var p={};if(w==null?0:w.Z)p.cttAuthInfo={token:w.Z,videoId:w.videoId};E&&(p.startTime=E);QQ(e,p);var C,r,Y;w={targetVideoId:(C=w==null?void 0:w.videoId)!=null?C:"empty_video",targetCpn:N,adVideoId:(r=A==null?void 0:A.videoId)!=null?r:"empty_video",adClientPlaybackNonce:(Y=y==null?void 0:y.cpn)!=null?Y:A==null?void 0:A.clientPlaybackNonce}; y&&(w.adBreakType=y.adBreakType,w.adType=y.adType);g.nV(w,e);jZ("pbs",T!=null?T:(0,g.iC)(),e)}}; kP=function(e){KKM();H6M();e.timerName=""}; qL9=function(e){if(e.J){var N=e.J;N.N={};N.OV={}}e.K=!1;e.L=void 0;e.N=NaN}; ZJ3=function(e,N){g.pT.call(this);this.Ot=e;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.J=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.D={};this.N=0;if(e=N.session_data)this.sessionData=w2(e,"&");this.index=Math.max(0,Number(N.index)||0);this.loop=!!N.loop;this.startSeconds=Number(N.startSeconds)||0;this.title=N.playlist_title||"";this.description=N.playlist_description||"";this.author= N.author||N.playlist_author||"";N.video_id&&(this.items[this.index]=N);if(e=N.api)typeof e==="string"&&e.length===16?N.list="PL"+e:N.playlist=e;if(e=N.list)switch(N.listType){case "user_uploads":this.listId=new YK("UU","PLAYER_"+e);break;default:var y=N.playlist_length;y&&(this.length=Number(y)||0);this.listId=g.MO(e);if(e=N.video)this.items=e.slice(0),this.loaded=!0}else if(N.playlist){e=N.playlist.toString().split(",");this.index>0&&(this.items=[]);e=g.c(e);for(y=e.next();!y.done;y=e.next())(y= y.value)&&this.items.push({video_id:y});this.length=this.items.length;if(e=N.video)this.items=e.slice(0),this.loaded=!0}this.setShuffle(!!N.shuffle);if(e=N.suggestedQuality)this.quality=e;this.D=p3(N,"playlist_");this.K=(N=N.thumbnail_ids)?N.split(","):[]}; xhs=function(e){return!!(e.playlist||e.list||e.api)}; jmH=function(e){var N=e.index+1;return N>=e.length?0:N}; ny9=function(e){var N=e.index-1;return N<0?e.length-1:N}; g.Bo=function(e,N,y,w){N=N!==void 0?N:e.index;N=e.items&&N in e.items?e.items[e.order[N]]:null;var E=null;N&&(y&&(N.autoplay="1"),w&&(N.autonav="1"),E=new g.t3(e.Ot,N),g.Q(e,E),E.d2=!0,E.startSeconds=e.startSeconds||E.clipStart||0,e.listId&&(E.playlistId=e.listId.toString()));return E}; Qm5=function(e,N){e.index=g.Ja(N,0,e.length-1);e.startSeconds=0}; mh9=function(e,N){if(N.video&&N.video.length){e.title=N.title||"";e.description=N.description;e.views=N.views;e.likes=N.likes;e.dislikes=N.dislikes;e.author=N.author||"";var y=N.loop;y&&(e.loop=y);y=g.Bo(e);e.items=[];for(var w=g.c(N.video),E=w.next();!E.done;E=w.next())if(E=E.value)E.video_id=E.encrypted_id,e.items.push(E);e.length=e.items.length;(N=N.index)?e.index=N:e.findIndex(y);e.setShuffle(!1);e.loaded=!0;e.N++;e.J&&e.J()}}; W29=function(e,N){var y,w,E,A,T,p,C;return g.f(function(r){if(r.J==1){y=g.AC();var Y=e.X(),M={context:g.GC(e),playbackContext:{contentPlaybackContext:{ancestorOrigins:Y.ancestorOrigins}}},l=Y.getWebPlayerContextConfig();if(l==null?0:l.encryptedHostFlags)M.playbackContext.contentPlaybackContext.encryptedHostFlags=l.encryptedHostFlags;if(l==null?0:l.hideInfo)M.playerParams={showinfo:!1};Y=Y.embedConfig;l=N.docid||N.video_id||N.videoId||N.id;if(!l){l=N.raw_embedded_player_response;if(!l){var F=N.embedded_player_response; F&&(l=JSON.parse(F))}if(l){var S,k,X,d,v,V;l=((V=g.m((S=l)==null?void 0:(k=S.embedPreview)==null?void 0:(X=k.thumbnailPreviewRenderer)==null?void 0:(d=X.playButton)==null?void 0:(v=d.buttonRenderer)==null?void 0:v.navigationEndpoint,g.m0))==null?void 0:V.videoId)||null}else l=null}S=(S=l)?S:void 0;k=e.playlistId?e.playlistId:N.list;X=N.listType;if(k){var Z;X==="user_uploads"?Z={username:k}:Z={playlistId:k};HJ5(Y,S,N,Z);M.playlistRequest=Z}else N.playlist?(Z={templistVideoIds:N.playlist.toString().split(",")}, HJ5(Y,S,N,Z),M.playlistRequest=Z):S&&(Z={videoId:S},Y&&(Z.serializedThirdPartyEmbedConfig=Y),M.singleVideoRequest=Z);w=M;E=g.eZ(K2M);g.c5(r,2);return g.D(r,g.Rg(y,w,E),4)}if(r.J!=2)return A=r.N,T=e.X(),N.raw_embedded_player_response=A,T.i9=$h(N,g.hR(T)),T.K=T.i9==="EMBEDDED_PLAYER_MODE_PFL",A&&(p=A,p.trackingParams&&h$(p.trackingParams)),r.return(new g.t3(T,N));C=g.XH(r);C instanceof Error||(C=Error("b259802748"));g.t0(C);return r.return(e)})}; HJ5=function(e,N,y,w){y.index&&(w.playlistIndex=String(Number(y.index)+1));w.videoId=N?N:"";e&&(w.serializedThirdPartyEmbedConfig=e)}; g.Po=function(e,N){X_.get(e);X_.set(e,N)}; g.dH=function(e){g.pT.call(this);this.loaded=!1;this.player=e}; OJJ=function(){this.N=[];this.J=[]}; g.Ml=function(e,N){return N?e.J.concat(e.N):e.J}; g.I3=function(e,N){switch(N.kind){case "asr":RZH(N,e.N);break;default:RZH(N,e.J)}}; RZH=function(e,N){g.Ok(N,function(y){return e.Bw(y)})||N.push(e)}; g.vo=function(e){g.x.call(this);this.Lh=e;this.N=new OJJ;this.j=null;this.L=[];this.U=[]}; g.zf=function(e,N,y){g.vo.call(this,e);this.videoData=N;this.audioTrack=y;this.J=null;this.K=!1;this.L=N.wE;this.U=N.jE;this.K=g.vF(N)}; g.iJ=function(e,N){return Ug(e.info)?N?e.info.itag===N:!0:!1}; g.GP5=function(e,N){if(e.J!=null&&g.Pa(N.X())&&!e.J.isManifestless&&e.J.J.rawcc!=null)return!0;if(!e.Cx())return!1;N=!!e.J&&e.J.isManifestless&&Object.values(e.J.J).some(function(y){return g.iJ(y,"386")}); e=!!e.J&&!e.J.isManifestless&&g.d$F(e.J);return N||e}; g.Dv=function(e,N,y,w,E,A){g.vo.call(this,e);this.videoId=y;this.Cn=E;this.eventId=A;this.Z={};this.J=null;e=w||g.JE(N).hl||"";e=e.split("_").join("-");this.K=pp(N,{hl:e})}; Uh0=function(e,N){this.N=e;this.J=N;this.onFailure=void 0}; L25=function(e,N){return{Yw:e.Yw&&N.Yw,uB:e.uB&&N.uB,sync:e.sync&&N.sync,streaming:e.streaming&&N.streaming}}; Vm=function(e,N){var y=smE,w=this;this.path=e;this.K=N;this.j=y;this.capabilities={Yw:!!this.K,uB:"WebAssembly"in window,sync:"WebAssembly"in window,streaming:"WebAssembly"in window&&"instantiateStreaming"in WebAssembly&&"compileStreaming"in WebAssembly};this.L=new Uh0([{name:"compileStreaming",condition:function(E){return!!w.N&&E.streaming}, gE:gH.tU("wmcx",function(){return WebAssembly.compileStreaming(fetch(w.path))}), onFailure:function(){return w.capabilities.streaming=!1}}, {name:"sync",condition:function(E){return E.sync}, gE:function(){return A$(aDM(w),gH.tU("wmcs",function(E){return new WebAssembly.Module(E)}))}, onFailure:function(){return w.capabilities.sync=!1}}, {name:"async",condition:function(){return!0}, gE:function(){return A$(aDM(w),gH.tU("wmca",function(E){return WebAssembly.compile(E)}))}, onFailure:function(){return w.capabilities.uB=!1}}]); this.Z=new Uh0([{name:"instantiateStreaming",condition:function(E){return E.uB&&E.streaming&&!w.N&&!w.J}, gE:function(E,A){return gH.le("wmix",function(){return WebAssembly.instantiateStreaming(fetch(w.path),A)}).then(function(T){w.J=Nc(T.module); return{instance:T.instance,Um:!1}})}, onFailure:function(){return w.capabilities.streaming=!1}}, {name:"sync",condition:function(E){return E.uB&&E.sync}, gE:function(E,A){return A$(eVM(w,E),gH.tU("wmis",function(T){return{instance:new WebAssembly.Instance(T,A),Um:!1}}))}, onFailure:function(){return w.capabilities.sync=!1}}, {name:"async",condition:function(E){return E.uB}, gE:function(E,A){return A$(A$(eVM(w,E),gH.tU("wmia",function(T){return WebAssembly.instantiate(T,A)})),function(T){return{instance:T, Um:!1}})}, onFailure:function(){return w.capabilities.uB=!1}}, {name:"asmjs",condition:function(E){return E.Yw}, gE:function(E,A){return Nc(gH.le("wmij",function(){return w.K(A)}).then(function(T){return{instance:{exports:T}, Um:!0}}))}, onFailure:function(){return w.capabilities.Yw=!1}}],function(E,A,T){return w.j(T,E.instance.exports)})}; wK0=function(e){var N=NTM;return N.instantiate(e?L25(N.capabilities,e):N.capabilities,new yUs)}; aDM=function(e){if(e.N)return e.N;var N=fetch(e.path).then(function(y){return y.arrayBuffer()}).then(function(y){e.N=Nc(y); return y}).then(void 0,function(y){g.uA(Error("wasm module fetch failure: "+y.message,{cause:y})); e.N=void 0;throw y;}); e.N=Nc(N);return e.N}; eVM=function(e,N){if(!N.uB)return yA(Error("wasm unavailable"));if(e.J)return e.J;e.J=Tm(A$(e.compile(N),function(y){e.J=Nc(y);return y}),function(y){g.uA(Error("wasm module compile failure: "+y.message,{cause:y})); e.J=void 0;throw y;}); return e.J}; EM5=function(){}; AUJ=function(){var e=this;this.proc_exit=function(){}; this.fd_write=function(N,y,w){if(!e.exports)return 1;N=new Uint32Array(e.exports.memory.buffer,y,w*2);y=[];for(var E=0;E=11;e=e.api.X().U&&mm;return!(!N&&!e)}; ez=function(e,N){return!e.api.isInline()&&!mVF(e,vE(N))&&g.dh(N)}; Q5_=function(e){e.tT.Cd();if(e.Hl&&e.gU)e.gU=!1;else if(!e.api.X().Zl&&!e.Jm()){var N=e.api.getPlayerStateObject();g.G(N,2)&&g.oq(e.api)||e.O6(N);!e.api.X().Y_||N.isCued()||g.G(N,1024)?e.uX():e.ZV.isActive()?(e.VU(),e.ZV.stop()):e.ZV.start()}}; KYE=function(e,N){var y;if((y=e.api.getVideoData())==null?0:y.mutedAutoplay){var w,E;if((w=N.target)==null?0:(E=w.className)==null?0:E.includes("ytp-info-panel"))return!1}return g.dh(N)&&e.api.isMutedByMutedAutoplay()?(e.api.unMute(),e.api.getPresentingPlayerType()===2&&e.api.playVideo(),N=e.api.getPlayerStateObject(),!g.G(N,4)||g.G(N,8)||g.G(N,2)||e.uX(),!0):!1}; WYH=function(e,N,y){e.api.isFullscreen()?y<1-N&&e.api.toggleFullscreen():y>1+N&&e.api.toggleFullscreen()}; nM9=function(e){var N=WL()&&HL()>=67&&!e.api.X().U;e=e.api.X().disableOrganicUi;return!g.Kp("tizen")&&!KC&&!N&&!e}; Nh=function(e,N){N=N===void 0?2:N;g.pT.call(this);this.api=e;this.J=null;this.bB=new iY(this);g.Q(this,this.bB);this.N=NoP;this.bB.Y(this.api,"presentingplayerstatechange",this.Di);this.J=this.bB.Y(this.api,"progresssync",this.HY);this.UR=N;this.UR===1&&this.HY()}; g.ys=function(e){g.W.call(this,{S:"div",W:[{S:"div",B:"ytp-bezel-text-wrapper",W:[{S:"div",B:"ytp-bezel-text",b9:"{{title}}"}]},{S:"div",B:"ytp-bezel",V:{role:"status","aria-label":"{{label}}"},W:[{S:"div",B:"ytp-bezel-icon",b9:"{{icon}}"}]}]});this.C=e;this.N=new g.e6(this.show,10,this);this.J=new g.e6(this.hide,500,this);g.Q(this,this.N);g.Q(this,this.J);this.hide()}; EL=function(e,N,y){if(N<=0){y=Dh();N="som desativado";var w=0}else y=y?{S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{S:"path",Az:!0,V:{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"}}]}:{S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{S:"path",Az:!0,V:{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"}}]},w=Math.floor(N),N=w+"volume";wC(e,y,N,w+"%")}; OUH=function(e,N){N=N?{S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{S:"path",Az:!0,B:"ytp-svg-fill",V:{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"}}]}:o$M();var y=e.C.getPlaybackRate(),w=g.SO("A velocidade do v\u00eddeo \u00e9 $RATE",{RATE:String(y)});wC(e,N,w,y+"x")}; RVF=function(e,N){N=N?"Legendas/legendas ocultas ativadas":"Legendas/legendas ocultas desativadas";wC(e,GBs(),N)}; wC=function(e,N,y,w){w=w===void 0?"":w;e.updateValue("label",y===void 0?"":y);e.updateValue("icon",N);g.we(e.J);e.N.start();e.updateValue("title",w);g.Y1(e.element,"ytp-bezel-text-hide",!w)}; GTF=function(e,N){g.W.call(this,{S:"button",dP:["ytp-button","ytp-cards-button"],V:{"aria-label":"Exibir cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.hR(e.X()))},W:[{S:"span",B:"ytp-cards-button-icon-default",W:[{S:"div",B:"ytp-cards-button-icon",W:[e.X().T("player_new_info_card_format")?cgH():{S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{S:"path",Az:!0,B:"ytp-svg-fill",V:{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"}}]}]}, {S:"div",B:"ytp-cards-button-title",b9:"Informa\u00e7\u00f5es"}]},{S:"span",B:"ytp-cards-button-icon-shopping",W:[{S:"div",B:"ytp-cards-button-icon",W:[{S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{S:"path",B:"ytp-svg-shadow",V:{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"}},{S:"path",B:"ytp-svg-fill",V:{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"}},{S:"path",B:"ytp-svg-shadow-fill",V:{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"}}]}]},{S:"div", B:"ytp-cards-button-title",b9:"Compras"}]}]});this.C=e;this.K=N;this.J=null;this.N=new g.NE(this,250,!0,100);g.Q(this,this.N);g.Y1(this.K,"ytp-show-cards-title",g.hR(e.X()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.d79);this.jt(!0)}; UVP=function(e,N){g.W.call(this,{S:"div",B:"ytp-cards-teaser",W:[{S:"div",B:"ytp-cards-teaser-box"},{S:"div",B:"ytp-cards-teaser-text",W:e.X().T("player_new_info_card_format")?[{S:"button",B:"ytp-cards-teaser-info-icon",V:{"aria-label":"Exibir cards","aria-haspopup":"true"},W:[cgH()]},{S:"span",B:"ytp-cards-teaser-label",b9:"{{text}}"},{S:"button",B:"ytp-cards-teaser-close-button",V:{"aria-label":"Fechar"},W:[g.kl()]}]:[{S:"span",B:"ytp-cards-teaser-label",b9:"{{text}}"}]}]});var y=this;this.C=e; this.rQ=N;this.j=new g.NE(this,250,!1,250);this.J=null;this.U=new g.e6(this.m7q,300,this);this.G=new g.e6(this.B7Z,2E3,this);this.Z=[];this.N=null;this.D=new g.e6(function(){y.element.style.margin="0"},250); this.onClickCommand=this.K=null;g.Q(this,this.j);g.Q(this,this.U);g.Q(this,this.G);g.Q(this,this.D);e.X().T("player_new_info_card_format")?(g.pi(e.getRootNode(),"ytp-cards-teaser-dismissible"),this.Y(this.hW("ytp-cards-teaser-close-button"),"click",this.Fp),this.Y(this.hW("ytp-cards-teaser-info-icon"),"click",this.VN),this.Y(this.hW("ytp-cards-teaser-label"),"click",this.VN)):this.listen("click",this.VN);this.Y(N.element,"mouseover",this.Wb);this.Y(N.element,"mouseout",this.Us);this.Y(e,"cardsteasershow", this.s2t);this.Y(e,"cardsteaserhide",this.rT);this.Y(e,"cardstatechange",this.hh);this.Y(e,"presentingplayerstatechange",this.hh);this.Y(e,"appresize",this.EZ);this.Y(e,"onShowControls",this.EZ);this.Y(e,"onHideControls",this.X5);this.listen("mouseenter",this.JL)}; LYJ=function(e){g.W.call(this,{S:"button",dP:[Ak.BUTTON,Ak.TITLE_NOTIFICATIONS],V:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},W:[{S:"div",B:Ak.TITLE_NOTIFICATIONS_ON,V:{title:"Deixar de receber notifica\u00e7\u00f5es de todos os v\u00eddeos novos","aria-label":"Receber notifica\u00e7\u00f5es das inscri\u00e7\u00f5es"},W:[g.Pq()]},{S:"div",B:Ak.TITLE_NOTIFICATIONS_OFF,V:{title:"Receber notifica\u00e7\u00f5es de todos os v\u00eddeos novos","aria-label":"Receber notifica\u00e7\u00f5es das inscri\u00e7\u00f5es"}, W:[{S:"svg",V:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},W:[{S:"path",V:{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=e;this.J=!1;e.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Receber notifica\u00e7\u00f5es de todos os v\u00eddeos novos")}; s5M=function(e,N){e.J=N;e.element.classList.toggle(Ak.NOTIFICATIONS_ENABLED,e.J);var y=e.api.getVideoData();y?(N=N?y.lf:y.Ov)?(e=e.api.WI())?Oq(e,N):g.t0(Error("No innertube service available when updating notification preferences.")):g.t0(Error("No update preferences command available.")):g.t0(Error("No video data when updating notification preferences."))}; er1=function(e,N,y){var w=w===void 0?800:w;var E=E===void 0?600:E;e=atM(e,N);if(e=g.qm(window,e,"loginPopup","width="+w+",height="+E+",resizable=yes,scrollbars=yes"))S83(function(){y()}),e.moveTo((screen.width-w)/2,(screen.height-E)/2)}; atM=function(e,N){var y=document.location.protocol;return hmF(y+"//"+e+"/signin?context=popup","feature",N,"next",y+"//"+location.hostname+"/post_login")}; g.TP=function(e,N,y,w,E,A,T,p,C,r,Y,M){e=e.charAt(0)+e.substring(1).toLowerCase();y=y.charAt(0)+y.substring(1).toLowerCase();if(N==="0"||N==="-1")N=null;if(w==="0"||w==="-1")w=null;var l=Y.X(),F=l.userDisplayName&&g.dw(l);g.W.call(this,{S:"div",dP:["ytp-button","ytp-sb"],W:[{S:"div",B:"ytp-sb-subscribe",V:F?{title:g.SO("Inscrever-se como $USER_NAME",{USER_NAME:l.userDisplayName}),"aria-label":"Inscrever-se no canal","data-tooltip-image":OI(l),"data-tooltip-opaque":String(g.hR(l)),tabindex:"0",role:"button"}: {"aria-label":"Inscrever-se no canal"},W:[{S:"div",B:"ytp-sb-text",W:[{S:"div",B:"ytp-sb-icon"},e]},N?{S:"div",B:"ytp-sb-count",b9:N}:""]},{S:"div",B:"ytp-sb-unsubscribe",V:F?{title:g.SO("Inscrito como $USER_NAME",{USER_NAME:l.userDisplayName}),"aria-label":"Cancelar inscri\u00e7\u00e3o no canal","data-tooltip-image":OI(l),"data-tooltip-opaque":String(g.hR(l)),tabindex:"0",role:"button"}:{"aria-label":"Cancelar inscri\u00e7\u00e3o no canal"},W:[{S:"div",B:"ytp-sb-text",W:[{S:"div",B:"ytp-sb-icon"}, y]},w?{S:"div",B:"ytp-sb-count",b9:w}:""]}],V:{"aria-live":"polite"}});var S=this;this.channelId=T;this.C=Y;this.K=M;var k=this.hW("ytp-sb-subscribe"),X=this.hW("ytp-sb-unsubscribe");A&&g.pi(this.element,"ytp-sb-classic");if(E){p?this.J():this.N();var d=function(){if(l.l9){var V=S.channelId;if(C||r){var Z={c:V};var n;g.XB.isInitialized()&&(n=lF0(Z));Z=n||"";if(n=Y.getVideoData())if(n=n.subscribeCommand){var R=Y.WI();R?(Oq(R,n,{botguardResponse:Z,feature:C}),Y.Mg("SUBSCRIBE",V)):g.t0(Error("No innertube service available when updating subscriptions."))}else g.t0(Error("No subscribe command in videoData.")); else g.t0(Error("No video data available when updating subscription."))}X.focus();X.removeAttribute("aria-hidden");k.setAttribute("aria-hidden","true")}else er1(g.ud(S.C.X()),"sb_button",S.j)},v=function(){var V=S.channelId; if(C||r){var Z=Y.getVideoData();Oq(Y.WI(),Z.unsubscribeCommand,{feature:C});Y.Mg("UNSUBSCRIBE",V)}k.focus();k.removeAttribute("aria-hidden");X.setAttribute("aria-hidden","true")}; this.Y(k,"click",d);this.Y(X,"click",v);this.Y(k,"keypress",function(V){V.keyCode===13&&d(V)}); this.Y(X,"keypress",function(V){V.keyCode===13&&v(V)}); this.Y(Y,"SUBSCRIBE",this.J);this.Y(Y,"UNSUBSCRIBE",this.N);this.K&&F&&(gF1(Y),lh(Y,k,this),lh(Y,X,this))}else g.pi(k,"ytp-sb-disabled"),g.pi(X,"ytp-sb-disabled")}; wR5=function(e){g.W.call(this,{S:"div",B:"ytp-title-channel",W:[{S:"div",B:"ytp-title-beacon"},{S:"a",B:"ytp-title-channel-logo",V:{href:"{{channelLink}}",target:e.X().D,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{S:"div",B:"ytp-title-expanded-overlay",V:{"aria-hidden":"{{flyoutUnfocusable}}"},W:[{S:"div",B:"ytp-title-expanded-heading",W:[{S:"div",B:"ytp-title-expanded-title",W:[{S:"a",b9:"{{expandedTitle}}",V:{href:"{{channelTitleLink}}",target:e.X().D,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{S:"div",B:"ytp-title-expanded-subtitle",b9:"{{expandedSubtitle}}",V:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var N=this;this.api=e;this.channel=this.hW("ytp-title-channel");this.N=this.hW("ytp-title-channel-logo");this.channelName=this.hW("ytp-title-expanded-title");this.Z=this.hW("ytp-title-expanded-overlay");this.K=this.J=this.subscribeButton=null;this.j=!1;e.createClientVe(this.N,this,36925);e.createClientVe(this.channelName,this, 37220);g.hR(this.api.X())&&NlH(this);this.Y(e,"videodatachange",this.GZ);this.Y(e,"videoplayerreset",this.GZ);this.Y(this.channelName,"click",function(y){N.api.logClick(N.channelName);g.qm(window,yP0(N));y.preventDefault()}); this.Y(this.N,"click",this.Fhg);this.GZ()}; E9s=function(e){if(!e.api.X().jn){var N=e.api.getVideoData(),y=new g.TP("Inscreva-se",null,"Inscrito",null,!0,!1,N.iI,N.subscribed,"channel_avatar",null,e.api,!0);e.api.createServerVe(y.element,e);var w;e.api.setTrackingParams(y.element,((w=N.subscribeButtonRenderer)==null?void 0:w.trackingParams)||null);e.Y(y.element,"click",function(){e.api.logClick(y.element)}); e.subscribeButton=y;g.Q(e,e.subscribeButton);e.subscribeButton.yB(e.Z);e.subscribeButton.hide();var E=new LYJ(e.api);e.J=E;g.Q(e,E);E.yB(e.Z);E.hide();e.Y(e.api,"SUBSCRIBE",function(){N.Z3&&(E.show(),e.api.logVisibility(E.element,!0))}); e.Y(e.api,"UNSUBSCRIBE",function(){N.Z3&&(E.hide(),e.api.logVisibility(E.element,!1),s5M(E,!1))})}}; NlH=function(e){var N=e.api.X();E9s(e);e.updateValue("flyoutUnfocusable","true");e.updateValue("channelTitleFocusable","-1");e.updateValue("shouldHideExpandedTitleForA11y","true");e.updateValue("shouldHideExpandedSubtitleForA11y","true");N.N||N.Bk||(e.Y(e.channel,"mouseenter",e.Ro),e.Y(e.channel,"mouseleave",e.EN),e.Y(e.channel,"focusin",e.Ro),e.Y(e.channel,"focusout",function(y){e.channel.contains(y.relatedTarget)||e.EN()})); e.K=new g.e6(function(){e.isExpanded()&&(e.api.logVisibility(e.channelName,!1),e.subscribeButton&&(e.subscribeButton.hide(),e.api.logVisibility(e.subscribeButton.element,!1)),e.J&&(e.J.hide(),e.api.logVisibility(e.J.element,!1)),e.channel.classList.remove("ytp-title-expanded"),e.channel.classList.add("ytp-title-show-collapsed"))},500); g.Q(e,e.K);e.Y(e.channel,APJ,function(){Tln(e)}); e.Y(e.api,"onHideControls",e.vT);e.Y(e.api,"appresize",e.vT);e.Y(e.api,"fullscreentoggled",e.vT)}; Tln=function(e){e.channel.classList.remove("ytp-title-show-collapsed");e.channel.classList.remove("ytp-title-show-expanded")}; JP5=function(e){var N=e.api.getPlayerSize();return g.hR(e.api.X())&&N.width>=524}; yP0=function(e){var N=e.api.X(),y=e.api.getVideoData(),w=g.RK(N)+y.SR;g.Os(y)&&(w="https://music.youtube.com"+y.SR);if(!g.hR(N))return w;N={};g.NU(e.api,"addEmbedsConversionTrackingParams",[N]);return g.Qb(w,N)}; Jk=function(e){var N=g.qU({"aria-haspopup":"true"});g.uh.call(this,N,e);this.listen("keydown",this.J)}; pJ=function(e,N){e.element.setAttribute("aria-haspopup",String(N))}; pRM=function(e,N){g.W.call(this,{S:"div",B:"ytp-user-info-panel",V:{"aria-label":"Informa\u00e7\u00f5es do usu\u00e1rio"},W:e.X().l9&&!e.T("embeds_web_always_enable_signed_out_state")?[{S:"div",B:"ytp-user-info-panel-icon",b9:"{{icon}}"},{S:"div",B:"ytp-user-info-panel-content",W:[{S:"div",B:"ytp-user-info-panel-info",V:{tabIndex:"{{userInfoFocusable}}",role:"text"},b9:"{{watchingAsUsername}}"},{S:"div",B:"ytp-user-info-panel-info",V:{tabIndex:"{{userInfoFocusable2}}",role:"text"},b9:"{{watchingAsEmail}}"}]}]: [{S:"div",B:"ytp-user-info-panel-icon",b9:"{{icon}}"},{S:"div",B:"ytp-user-info-panel-content",W:[{S:"div",W:[{S:"text",V:{tabIndex:"{{userInfoFocusable}}"},b9:"Conta desconectada"}]},{S:"div",B:"ytp-user-info-panel-login",W:[{S:"a",V:{tabIndex:"{{userInfoFocusable2}}",role:"button"},b9:e.X().jn?"":"Fazer login no YouTube"}]}]}]});this.Lh=e;this.J=N;e.X().l9||e.X().jn||this.Y(this.hW("ytp-user-info-panel-login"),"click",this.kE);this.closeButton=new g.W({S:"button",dP:["ytp-collapse","ytp-button"], V:{title:"Fechar"},W:[g.ij()]});this.closeButton.yB(this.element);g.Q(this,this.closeButton);this.Y(window,"blur",this.hide);this.Y(document,"click",this.N$);this.GZ()}; rPH=function(e,N,y){g.x7.call(this,e);this.x_=N;this.XS=y;this.getVideoUrl=new Jk(6);this.Kl=new Jk(5);this.sT=new Jk(4);this.N7=new Jk(3);this.nu=new g.uh(g.qU({href:"{{href}}",target:this.C.X().D},void 0,!0),2,"Resolver problemas de reprodu\u00e7\u00e3o");this.showVideoInfo=new g.uh(g.qU(),1,"Estat\u00edsticas para nerds");this.KW=new g.Mu({S:"div",dP:["ytp-copytext","ytp-no-contextmenu"],V:{draggable:"false",tabindex:"1"},b9:"{{text}}"});this.T7=new ZN(this.C,this.KW);this.Xd=this.iJ=null;g.hR(this.C.X())&& (this.closeButton=new g.W({S:"button",dP:["ytp-collapse","ytp-button"],V:{title:"Fechar"},W:[g.ij()]}),g.Q(this,this.closeButton),this.closeButton.yB(this.element),this.closeButton.listen("click",this.va,this));g.hR(this.C.X())&&(this.A3=new g.uh(g.qU(),8,"Conta"),g.Q(this,this.A3),this.Gi(this.A3,!0),this.A3.listen("click",this.UK9,this),e.createClientVe(this.A3.element,this.A3,137682));this.C.X().Ci&&(this.pc=new Oc("Loop",7),g.Q(this,this.pc),this.Gi(this.pc,!0),this.pc.listen("click",this.Lhh, this),e.createClientVe(this.pc.element,this.pc,28661));g.Q(this,this.getVideoUrl);this.Gi(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.aBP,this);e.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.Q(this,this.Kl);this.Gi(this.Kl,!0);this.Kl.listen("click",this.S2Z,this);e.createClientVe(this.Kl.element,this.Kl,28660);g.Q(this,this.sT);this.Gi(this.sT,!0);this.sT.listen("click",this.cz9,this);e.createClientVe(this.sT.element,this.sT,28658);g.Q(this,this.N7);this.Gi(this.N7, !0);this.N7.listen("click",this.zcG,this);g.Q(this,this.nu);this.Gi(this.nu,!0);this.nu.listen("click",this.yaB,this);g.Q(this,this.showVideoInfo);this.Gi(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.WsP,this);g.Q(this,this.KW);this.KW.listen("click",this.tnP,this);g.Q(this,this.T7);N=document.queryCommandSupported&&document.queryCommandSupported("copy");OM0("Chromium")>=43&&(N=!0);OM0("Firefox")<=40&&(N=!1);N&&(this.iJ=new g.W({S:"textarea",B:"ytp-html5-clipboard",V:{readonly:"", tabindex:"-1"}}),g.Q(this,this.iJ),this.iJ.yB(this.element));var w;(w=this.A3)==null||w.setIcon(PCJ());var E;(E=this.pc)==null||E.setIcon({S:"svg",V:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{S:"path",V:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});this.N7.setIcon({S:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{S:"path",V:{"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.nu.setIcon(bl5());this.showVideoInfo.setIcon(hb0());this.Y(e,"onLoopChange",this.onLoopChange);this.Y(e,"videodatachange",this.onVideoDataChange);CKM(this);this.qa(this.C.getVideoData())}; CJ=function(e,N){var y=!1;if(e.iJ){var w=e.iJ.element;w.value=N;w.select();try{y=document.execCommand("copy")}catch(E){}}y?e.x_.rT():(e.KW.Ja(N,"text"),g.Q_(e.x_,e.T7),sc(e.KW.element),e.iJ&&(e.iJ=null,CKM(e)));return y}; CKM=function(e){var N=!!e.iJ;g.tu(e.N7,N?"Copiar informa\u00e7\u00f5es de depura\u00e7\u00e3o":"Ver informa\u00e7\u00f5es sobre depura\u00e7\u00e3o");pJ(e.N7,!N);g.tu(e.sT,N?"Copiar c\u00f3digo de incorpora\u00e7\u00e3o":"Ver c\u00f3digo de incorpora\u00e7\u00e3o");pJ(e.sT,!N);g.tu(e.getVideoUrl,N?"Copiar URL do v\u00eddeo":"Ver URL do v\u00eddeo");pJ(e.getVideoUrl,!N);g.tu(e.Kl,N?"Copiar URL do v\u00eddeo no momento atual":"Ver URL do v\u00eddeo no tempo atual");pJ(e.Kl,!N);e.sT.setIcon(N?F19(): null);e.getVideoUrl.setIcon(N?Bq():null);e.Kl.setIcon(N?Bq():null)}; $sP=function(e){return g.hR(e.C.X())?e.A3:e.pc}; Mo5=function(e,N){g.n$.call(this,e);this.XS=N;this.j=new g.fd(this);this.Kh=new g.e6(this.Ka1,1E3,this);this.qg=this.K=null;g.Q(this,this.j);g.Q(this,this.Kh);e.createClientVe(this.element,this,28656);g.pi(this.element,"ytp-contextmenu");Y4P(this);this.hide()}; Y4P=function(e){g.g9(e.j);var N=e.C.X();N.playerStyle==="gvn"||N.N||N.Bk||(N=e.C.Fz(),e.j.Y(N,"contextmenu",e.kit),e.j.Y(N,"touchstart",e.tL,null,!0),e.j.Y(N,"touchmove",e.Y4,null,!0),e.j.Y(N,"touchend",e.Y4,null,!0))}; lgs=function(e){e.C.isFullscreen()?g.Pb(e.C,e.element,10):e.yB(gZ(e).body)}; rC=function(e,N,y){y=y===void 0?240:y;g.W.call(this,{S:"button",dP:["ytp-button","ytp-copylink-button"],V:{title:"{{title-attr}}","data-tooltip-opaque":String(g.hR(e.X()))},W:[{S:"div",B:"ytp-copylink-icon",b9:"{{icon}}"},{S:"div",B:"ytp-copylink-title",b9:"Copiar link",V:{"aria-hidden":"true"}}]});this.api=e;this.J=N;this.N=y;this.visible=!1;this.tooltip=this.J.Rf();N=e.X();this.tooltip.element.setAttribute("aria-live","polite");g.Y1(this.element,"ytp-show-copylink-title",g.hR(N));e.createClientVe(this.element, this,86570);this.listen("click",this.onClick);this.Y(e,"videodatachange",this.GZ);this.Y(e,"videoplayerreset",this.GZ);this.Y(e,"appresize",this.GZ);this.GZ();this.addOnDisposeCallback(g.MU(this.tooltip,this.element))}; F8M=function(e){var N=e.api.X(),y=e.api.getVideoData(),w=e.api.Fz().getPlayerSize().width;N=N.K;return!!y.videoId&&w>=e.N&&y.hp&&!g.KX(y)&&!e.api.isEmbedsShortsMode()&&!N}; S4P=function(e){e.updateValue("icon",bj());if(e.api.X().N)e.tooltip.AE(e.element,"Link copiado para a \u00e1rea de transfer\u00eancia");else{e.updateValue("title-attr","Link copiado para a \u00e1rea de transfer\u00eancia");e.tooltip.xp();e.tooltip.AE(e.element);var N=e.listen("mouseleave",function(){e.CX(N);e.GZ();e.tooltip.Zk()})}}; o90=function(e,N){return g.f(function(y){if(y.J==1)return g.c5(y,2),g.D(y,navigator.clipboard.writeText(N),4);if(y.J!=2)return y.return(!0);g.XH(y);var w=y.return,E=!1,A=g.sA("TEXTAREA");A.value=N;A.setAttribute("readonly","");var T=e.api.getRootNode();T.appendChild(A);if(Gv){var p=window.getSelection();p.removeAllRanges();var C=document.createRange();C.selectNodeContents(A);p.addRange(C);A.setSelectionRange(0,N.length)}else A.select();try{E=document.execCommand("copy")}catch(r){}T.removeChild(A); return w.call(y,E)})}; $y=function(e){g.W.call(this,{S:"div",B:"ytp-doubletap-ui-legacy",W:[{S:"div",B:"ytp-doubletap-fast-forward-ve"},{S:"div",B:"ytp-doubletap-rewind-ve"},{S:"div",B:"ytp-doubletap-static-circle",W:[{S:"div",B:"ytp-doubletap-ripple"}]},{S:"div",B:"ytp-doubletap-overlay-a11y"},{S:"div",B:"ytp-doubletap-seek-info-container",W:[{S:"div",B:"ytp-doubletap-arrows-container",W:[{S:"span",B:"ytp-doubletap-base-arrow"},{S:"span",B:"ytp-doubletap-base-arrow"},{S:"span",B:"ytp-doubletap-base-arrow"}]},{S:"div", B:"ytp-doubletap-tooltip",W:[{S:"div",B:"ytp-seek-icon-text-container",W:[{S:"div",B:"ytp-seek-icon",b9:"{{seekIcon}}"},{S:"div",B:"ytp-chapter-seek-text-legacy",b9:"{{seekText}}"}]},{S:"div",B:"ytp-doubletap-tooltip-label",b9:"{{seekTime}}"}]}]}]});this.C=e;this.j=new g.e6(this.show,10,this);this.N=new g.e6(this.hide,700,this);this.G=this.K=0;this.Ng=this.Z=!1;this.J=this.hW("ytp-doubletap-static-circle");g.Q(this,this.j);g.Q(this,this.N);this.hide();this.U=this.hW("ytp-doubletap-fast-forward-ve"); this.D=this.hW("ytp-doubletap-rewind-ve");this.C.createClientVe(this.U,this,28240);this.C.createClientVe(this.D,this,28239);this.C.logVisibility(this.U,!0);this.C.logVisibility(this.D,!0);this.Z=e.T("web_show_cumulative_seek_time");this.Ng=e.T("web_center_static_circles")}; Yy=function(e,N,y,w){if(w=w===void 0?null:w){var E=N===-1?e.D.visualElement:e.U.visualElement;w={seekData:w};var A=g.It();A&&g.NR(at)(void 0,A,E,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",w,void 0)}e.K=N===e.G?e.K+y:y;e.G=N;E=e.C.Fz().getPlayerSize();e.Z?e.N.stop():g.we(e.N);e.j.start();e.element.setAttribute("data-side",N===-1?"back":"forward");g.pi(e.element,"ytp-time-seeking");e.J.style.width="110px";e.J.style.height="110px";w=E.width*.1-15;N===1?e.Ng?(e.J.style.right=w+"px",e.J.style.left=""): (e.J.style.right="",e.J.style.left=E.width*.8-30+"px"):N===-1&&(e.Ng?(e.J.style.right="",e.J.style.left=w+"px"):(e.J.style.right="",e.J.style.left=E.width*.1-15+"px"));e.J.style.top=E.height*.5+15+"px";b73(e,e.Z?e.K:y)}; hrJ=function(e,N,y,w){w=w===void 0?null:w;g.we(e.N);e.j.start();switch(N){case -1:N="back";break;case 1:N="forward";break;default:N=""}e.element.setAttribute("data-side",N);e.J.style.width="0";e.J.style.height="0";g.pi(e.element,"ytp-chapter-seek");e.updateValue("seekText",y);e.updateValue("seekTime","");y=e.hW("ytp-seek-icon");if(w){a:if(w){switch(w){case "PREMIUM_STANDALONE":w={S:"svg",V:{height:"24px",version:"1.1",viewBox:"-2 -2 24 24",width:"24px"},W:[{S:"path",V:{d:"M 0 1.43 C 0 .64 .64 0 1.43 0 L 18.56 0 C 19.35 0 20 .64 20 1.43 L 20 18.56 C 20 19.35 19.35 20 18.56 20 L 1.43 20 C .64 20 0 19.35 0 18.56 Z M 0 1.43 ", fill:"#c00"}},{S:"path",V:{d:"M 7.88 11.42 L 7.88 15.71 L 5.37 15.71 L 5.37 3.52 L 10.12 3.52 C 11.04 3.52 11.84 3.69 12.54 4.02 C 13.23 4.36 13.76 4.83 14.14 5.45 C 14.51 6.07 14.70 6.77 14.70 7.56 C 14.70 8.75 14.29 9.69 13.48 10.38 C 12.66 11.07 11.53 11.42 10.08 11.42 Z M 7.88 9.38 L 10.12 9.38 C 10.79 9.38 11.30 9.23 11.64 8.91 C 11.99 8.60 12.17 8.16 12.17 7.57 C 12.17 6.98 11.99 6.5 11.64 6.12 C 11.29 5.76 10.80 5.57 10.18 5.56 L 7.88 5.56 Z M 7.88 9.38 ",fill:"#fff","fill-rule":"nonzero"}}]}; break a;case "PREMIUM_STANDALONE_CAIRO":w={S:"svg",V:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{S:"rect",V:{fill:"white",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{S:"rect",V:{fill:"url(#ytp-premium-standalone-gradient)",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{S:"path",V:{d:"M12.75 13.02H9.98V11.56H12.75C13.24 11.56 13.63 11.48 13.93 11.33C14.22 11.17 14.44 10.96 14.58 10.68C14.72 10.40 14.79 10.09 14.79 9.73C14.79 9.39 14.72 9.08 14.58 8.78C14.44 8.49 14.22 8.25 13.93 8.07C13.63 7.89 13.24 7.80 12.75 7.80H10.54V17H8.70V6.33H12.75C13.58 6.33 14.28 6.48 14.86 6.77C15.44 7.06 15.88 7.46 16.18 7.97C16.48 8.48 16.64 9.06 16.64 9.71C16.64 10.40 16.48 10.99 16.18 11.49C15.88 11.98 15.44 12.36 14.86 12.62C14.28 12.89 13.58 13.02 12.75 13.02Z", fill:"white"}},{S:"defs",W:[{S:"linearGradient",V:{gradientUnits:"userSpaceOnUse",id:"ytp-premium-standalone-gradient",x1:"2",x2:"22",y1:"22",y2:"2"},W:[{S:"stop",V:{offset:"0.3","stop-color":"#E1002D"}},{S:"stop",V:{offset:"0.9","stop-color":"#E01378"}}]}]}]};break a}w=void 0}else w=null;e.updateValue("seekIcon",w);y.style.display="inline-block"}else y.style.display="none"}; b73=function(e,N){N=g.SO("$TOTAL_SEEK_TIME segundos",{TOTAL_SEEK_TIME:N.toString()});e.updateValue("seekTime",N)}; cPs=function(e){qJ.call(this,e,!1,!0);this.l9=[];this.Xz=[];this.U=!0;this.badge.element.classList.add("ytp-featured-product");this.i9=new g.W({S:"div",B:"ytp-featured-product-open-in-new"});g.Q(this,this.i9);this.countdownTimer=new g.W({S:"text",B:"ytp-featured-product-countdown",b9:"{{content}}"});this.countdownTimer.hide();g.Q(this,this.countdownTimer);this.N=new g.W({S:"div",B:"ytp-featured-product-trending",W:[{S:"div",B:"ytp-featured-product-trending-icon"},{S:"text",B:"ytp-featured-product-trending-text", b9:"{{trendingOffer}}"}]});this.N.hide();g.Q(this,this.N);this.overflowButton=new g.W({S:"button",dP:["ytp-featured-product-overflow-icon","ytp-button"],V:{"aria-haspopup":"true"}});this.overflowButton.hide();g.Q(this,this.overflowButton);this.G=new g.W({S:"text",B:"ytp-featured-product-exclusive-countdown",b9:"{{content}}",V:{id:"exclusiveCountdown","aria-hidden":"true"}});this.G.hide();g.Q(this,this.G);this.Z=new g.W({S:"div",B:"ytp-featured-product-exclusive-container",V:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"}, W:[{S:"div",B:"ytp-featured-product-exclusive-badge-container",W:[{S:"div",B:"ytp-featured-product-exclusive-badge",W:[{S:"text",B:"ytp-featured-product-exclusive-badge-text",b9:"{{exclusive}}",V:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.G]});this.Z.hide();g.Q(this,this.Z);this.banner=new g.W({S:"a",B:"ytp-featured-product-container",W:[{S:"div",B:"ytp-featured-product-thumbnail",W:[{S:"img",V:{src:"{{thumbnail}}"}},this.i9]},{S:"div",B:"ytp-featured-product-details",W:[{S:"text",B:"ytp-featured-product-title", b9:"{{title}}"},this.C.T("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{S:"div",B:"ytp-featured-product-price-container",V:{"aria-label":"{{priceA11yText}}"},W:[{S:"text",B:"ytp-featured-product-price-when-promotion-text-enabled",b9:"{{price}}",V:{"aria-hidden":"true"}},{S:"text",B:"ytp-featured-product-promotion-text",b9:"{{promotionText}}",V:{"aria-hidden":"true"}}]}:{S:"div",V:{"aria-label":"{{priceA11yText}}"},W:[{S:"text",B:"ytp-featured-product-price",b9:"{{price}}", V:{"aria-hidden":"true"}},{S:"text",B:"ytp-featured-product-sales-original-price",b9:"{{salesOriginalPrice}}",V:{"aria-hidden":"true"}},{S:"text",B:"ytp-featured-product-price-drop-reference-price",b9:"{{priceDropReferencePrice}}",V:{"aria-hidden":"true"}}]},this.C.T("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{S:"div",B:"ytp-featured-product-when-promotion-text-enabled",W:[{S:"text",B:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled",b9:"{{affiliateDisclaimer}}"}, this.N,{S:"text",B:"ytp-featured-product-vendor-when-promotion-text-enabled",b9:"{{vendor}}"}]}:{S:"div",W:[{S:"text",B:"ytp-featured-product-affiliate-disclaimer",b9:"{{affiliateDisclaimer}}"},this.C.T("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.Z:null,this.N,{S:"text",B:"ytp-featured-product-vendor",b9:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.Q(this,this.banner);this.banner.yB(this.K.element);this.Y(this.C,g.AA("featured_product"),this.mGk);this.Y(this.C, g.TW("featured_product"),this.BS);this.Y(this.C,"videodatachange",this.onVideoDataChange);this.Y(this.overflowButton.element,"click",this.j6);this.Y(e,"featuredproductdismissed",this.UA)}; kIM=function(e){var N,y;e=(N=e.J)==null?void 0:(y=N.bannerData)==null?void 0:y.itemData;var w,E,A;return(e==null||!e.affiliateDisclaimer)&&(e==null?0:(w=e.exclusivesData)==null?0:w.exclusiveOfferLabelText)&&(e==null?0:(E=e.exclusivesData)==null?0:E.expirationTimestampMs)&&(e==null?0:(A=e.exclusivesData)==null?0:A.exclusiveOfferCountdownText)?!0:!1}; XRF=function(e){var N,y,w,E,A=(N=e.J)==null?void 0:(y=N.bannerData)==null?void 0:(w=y.itemData)==null?void 0:(E=w.exclusivesData)==null?void 0:E.expirationTimestampMs;N=(Number(A)-Date.now())/1E3;if(N>0){if(N<604800){var T,p,C,r;y=(T=e.J)==null?void 0:(p=T.bannerData)==null?void 0:(C=p.itemData)==null?void 0:(r=C.exclusivesData)==null?void 0:r.exclusiveOfferCountdownText;if(y!==void 0)for(T=Date.now(),p=g.c(y),C=p.next();!C.done;C=p.next())if(C=C.value,C!==void 0&&C.text!==void 0&&(r=Number(C.textDisplayStartTimestampMs), !isNaN(r)&&T>=r)){C.insertCountdown?(N=C.text.replace(/\$0/,String(CA({seconds:N}))),e.G.Ja(N)):e.G.Ja(C.text);e.G.show();break}}var Y,M,l,F;e.Z.update({exclusive:(Y=e.J)==null?void 0:(M=Y.bannerData)==null?void 0:(l=M.itemData)==null?void 0:(F=l.exclusivesData)==null?void 0:F.exclusiveOfferLabelText});e.Z.show();Mh(e);var S;(S=e.pX)==null||S.start()}else Bl1(e)}; Bl1=function(e){var N;(N=e.pX)==null||N.stop();e.G.hide();e.Z.hide();lo(e)}; PKJ=function(e){var N,y,w=(N=e.J)==null?void 0:(y=N.bannerData)==null?void 0:y.itemData;return e.C.T("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(w==null||!w.priceReplacementText)&&(w==null?0:w.promotionText)?w==null?void 0:w.promotionText.content:null}; ds0=function(e){var N,y,w=(N=e.J)==null?void 0:(y=N.bannerData)==null?void 0:y.itemData,E,A;if(!(w!=null&&w.priceReplacementText||e.C.T("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(w==null?0:(E=w.dealsData)==null?0:(A=E.sales)==null?0:A.originalPrice)){var T,p;return w==null?void 0:(T=w.dealsData)==null?void 0:(p=T.sales)==null?void 0:p.originalPrice}return null}; Ig1=function(e){var N,y,w=(N=e.J)==null?void 0:(y=N.bannerData)==null?void 0:y.itemData,E,A,T,p;if(!((w==null?0:w.priceReplacementText)||e.C.T("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(w==null?0:(E=w.dealsData)==null?0:(A=E.sales)==null?0:A.originalPrice))&&(w==null?0:(T=w.dealsData)==null?0:(p=T.priceDrop)==null?0:p.referencePrice)){var C,r;return w==null?void 0:(C=w.dealsData)==null?void 0:(r=C.priceDrop)==null?void 0:r.referencePrice}return null}; v9J=function(e){var N,y,w=(N=e.J)==null?void 0:(y=N.bannerData)==null?void 0:y.itemData;if(w==null?0:w.priceReplacementText)return w==null?void 0:w.priceReplacementText;if((w==null?0:w.promotionText)&&e.C.T("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var E;return(w==null?void 0:w.price)+" "+(w==null?void 0:(E=w.promotionText)==null?void 0:E.content)}var A,T;if(w==null?0:(A=w.dealsData)==null?0:(T=A.sales)==null?0:T.originalPrice){var p,C;return w==null?void 0:(p=w.dealsData)== null?void 0:(C=p.sales)==null?void 0:C.salesPriceAccessibilityLabel}var r,Y;if(w==null?0:(r=w.dealsData)==null?0:(Y=r.priceDrop)==null?0:Y.referencePrice){var M,l;return(w==null?void 0:w.price)+" "+(w==null?void 0:(M=w.dealsData)==null?void 0:(l=M.priceDrop)==null?void 0:l.referencePrice)}return w==null?void 0:w.price}; zrH=function(e){if(e.C.T("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var N,y,w;return e.N.Og?null:(N=e.J)==null?void 0:(y=N.bannerData)==null?void 0:(w=y.itemData)==null?void 0:w.vendorName}var E,A,T,p,C,r;return e.N.Og||e.Z.Og||((E=e.J)==null?0:(A=E.bannerData)==null?0:(T=A.itemData)==null?0:T.affiliateDisclaimer)?null:(p=e.J)==null?void 0:(C=p.bannerData)==null?void 0:(r=C.itemData)==null?void 0:r.vendorName}; Ds0=function(e,N){Fh(e);if(N){var y=g.WH.getState().entities;y=Cj(y,"featuredProductsEntity",N);if(y!=null&&y.productsData){N=[];y=g.c(y.productsData);for(var w=y.next();!w.done;w=y.next()){w=w.value;var E=void 0;if((E=w)!=null&&E.identifier&&w.featuredSegments){e.l9.push(w);var A=void 0;E=g.c((A=w)==null?void 0:A.featuredSegments);for(A=E.next();!A.done;A=E.next()){var T=A.value;A=i7P(T.startTimeSec);A!==void 0&&(T=i7P(T.endTimeSec),N.push(new g.wF(A*1E3,T===void 0?0x7ffffffffffff:T*1E3,{id:w.identifier, namespace:"featured_product"})))}}}e.C.wx(N)}}}; lo=function(e){if(e.trendingOfferEntityKey){var N=g.WH.getState().entities;if(N=Cj(N,"trendingOfferEntity",e.trendingOfferEntityKey)){var y,w,E;N.encodedSkuId!==((y=e.J)==null?void 0:(w=y.bannerData)==null?void 0:(E=w.itemData)==null?void 0:E.encodedOfferSkuId)?Mh(e):(e.N.update({trendingOffer:N.shortLabel+" \u2022 "+N.countLabel}),e.N.show(),e.banner.update({vendor:zrH(e)}))}else Mh(e)}else Mh(e)}; Mh=function(e){e.N.hide();e.banner.update({vendor:zrH(e)})}; Fh=function(e){e.l9=[];e.BS();e.C.MK("featured_product")}; g9n=function(e){var N,y,w,E,A=(N=e.J)==null?void 0:(y=N.bannerData)==null?void 0:(w=y.itemData)==null?void 0:(E=w.hiddenProductOptions)==null?void 0:E.dropTimestampMs;N=(Number(A)-Date.now())/1E3;e.countdownTimer.Ja(CA({seconds:N}));if(N>0){var T;(T=e.Y_)==null||T.start()}}; VoF=function(e){var N;(N=e.Y_)==null||N.stop();e.countdownTimer.hide()}; i7P=function(e){if(e!==void 0&&e.trim()!==""&&(e=Math.trunc(Number(e.trim())),!(isNaN(e)||e<0)))return e}; Z7M=function(e,N,y){g.W.call(this,{S:"div",dP:["ytp-info-panel-action-item"],W:[{S:"div",B:"ytp-info-panel-action-item-disclaimer",b9:"{{disclaimer}}"},{S:"a",dP:["ytp-info-panel-action-item-button","ytp-button"],V:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},W:[{S:"div",B:"ytp-info-panel-action-item-icon",b9:"{{icon}}"},{S:"div",B:"ytp-info-panel-action-item-label",b9:"{{label}}"}]}]});this.C=e;this.J=y;this.disclaimer=this.hW("ytp-info-panel-action-item-disclaimer");this.button= this.hW("ytp-info-panel-action-item-button");this.WG=!1;this.C.createServerVe(this.element,this,!0);this.listen("click",this.onClick);e="";y=g.m(N==null?void 0:N.onTap,ZL);var w=g.m(y,g.qu);this.WG=!1;w?(e=w.url||"",e.startsWith("//")&&(e="https:"+e),this.WG=!0,g.VZ(this.button,g.Ds(e))):(w=g.m(y,fg5))&&!this.J?((e=w.phoneNumbers)&&e.length>0?(e="sms:"+e[0],w.messageText&&(e+="?&body="+encodeURI(w.messageText))):e="",this.WG=!0,g.VZ(this.button,g.Ds(e,[to5]))):(y=g.m(y,uOJ))&&!this.J&&(e=y.phoneNumber? "tel:"+y.phoneNumber:"",this.WG=!0,g.VZ(this.button,g.Ds(e,[q4_])));var E;if(y=(E=N.disclaimerText)==null?void 0:E.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var A;this.update({label:(A=N.bodyText)==null?void 0:A.content,icon:d1(),disclaimer:y})}else{this.disclaimer.style.display="none";var T;this.update({label:(T=N.bodyText)==null?void 0:T.content,icon:d1()})}this.C.setTrackingParams(this.element,N.trackingParams||null);this.WG&&(this.N={externalLinkData:{url:e}})}; xsH=function(e,N){var y=CT();g.Dq.call(this,e,{S:"div",B:"ytp-info-panel-detail-skrim",W:[{S:"div",B:"ytp-info-panel-detail",V:{role:"dialog",id:y},W:[{S:"div",B:"ytp-info-panel-detail-header",W:[{S:"div",B:"ytp-info-panel-detail-title",b9:"{{title}}"},{S:"button",dP:["ytp-info-panel-detail-close","ytp-button"],V:{"aria-label":"Fechar"},W:[g.kl()]}]},{S:"div",B:"ytp-info-panel-detail-body",b9:"{{body}}"},{S:"div",B:"ytp-info-panel-detail-items"}]}]},250);this.J=N;this.items=this.hW("ytp-info-panel-detail-items"); this.K=new g.fd(this);this.itemData=[];this.j=y;this.Y(this.hW("ytp-info-panel-detail-close"),"click",this.rT);this.Y(this.hW("ytp-info-panel-detail-skrim"),"click",this.rT);this.Y(this.hW("ytp-info-panel-detail"),"click",function(w){w.stopPropagation()}); g.Q(this,this.K);this.C.createServerVe(this.element,this,!0);this.Y(e,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",e.getVideoData());this.hide()}; jjE=function(e,N){e=g.c(e.itemData);for(var y=e.next();!y.done;y=e.next())y=y.value,y.C.logVisibility(y.element,N)}; ms5=function(e,N){g.W.call(this,{S:"div",B:"ytp-info-panel-preview",V:{"aria-live":"assertive","aria-atomic":"true","aria-owns":N.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.hR(e.X()))},W:[{S:"div",B:"ytp-info-panel-preview-text",b9:"{{text}}"},{S:"div",B:"ytp-info-panel-preview-chevron",b9:"{{chevron}}"}]});var y=this;this.C=e;this.k9=this.J=this.videoId=null;this.j=this.showControls=this.N=!1;this.Y(this.element,"click",function(){e.logClick(y.element);e.Jm();VL(N)}); this.K=new g.NE(this,250,!1,100);g.Q(this,this.K);this.C.createServerVe(this.element,this,!0);this.Y(e,"videodatachange",this.onVideoDataChange);this.Y(e,"presentingplayerstatechange",this.q$);this.Y(this.C,"paidcontentoverlayvisibilitychange",this.qW);this.Y(this.C,"infopaneldetailvisibilitychange",this.qW);var w=e.getVideoData()||{};n99(w)&&Qj5(this,w);this.Y(e,"onShowControls",this.wH);this.Y(e,"onHideControls",this.bU)}; Qj5=function(e,N){if(!N.Pf||!e.C.V_()){var y=N.gI||1E4,w=n99(N);e.J?N.videoId&&N.videoId!==e.videoId&&(g.we(e.J),e.videoId=N.videoId,w?(H70(e,y,N),e.WY()):(e.rT(),e.J.dispose(),e.J=null)):w&&(N.videoId&&(e.videoId=N.videoId),H70(e,y,N),e.WY())}}; n99=function(e){var N,y,w,E;return!!((N=e.Fr)==null?0:(y=N.title)==null?0:y.content)||!!((w=e.Fr)==null?0:(E=w.bodyText)==null?0:E.content)}; H70=function(e,N,y){e.J&&e.J.dispose();e.J=new g.e6(e.eih,N,e);g.Q(e,e.J);var w;N=((w=y.Fr)==null?void 0:w.trackingParams)||null;e.C.setTrackingParams(e.element,N);var E;var A,T;if(y==null?0:(A=y.Fr)==null?0:(T=A.title)==null?0:T.content){var p;w=(E=y.Fr)==null?void 0:(p=E.title)==null?void 0:p.content;var C,r;if((C=y.Fr)==null?0:(r=C.bodyText)==null?0:r.content)w+=" \u2022 ";E=w}else E="";var Y,M;y=((Y=y.Fr)==null?void 0:(M=Y.bodyText)==null?void 0:M.content)||"";e.update({text:E+y,chevron:g.cq()})}; K89=function(e,N){e.J&&(g.G(N,8)?(e.N=!0,e.WY(),e.J.start()):(g.G(N,2)||g.G(N,64))&&e.videoId&&(e.videoId=null))}; Sz=function(e){var N=null;try{N=e.toLocaleString("pt-BR",{style:"percent"})}catch(y){N=e.toLocaleString(void 0,{style:"percent"})}return N}; om=function(e,N){var y=0;e=g.c(e);for(var w=e.next();!(w.done||w.value.startTime>N);w=e.next())y++;return y===0?y:y-1}; W8_=function(e,N){for(var y=0,w=g.c(e),E=w.next();!E.done;E=w.next()){E=E.value;if(N=E.timeRangeStartMillis&&N0?N[0]:null;var y=g.H4("ytp-chrome-bottom"),w=g.H4("ytp-ad-module");e.j=!(y==null||!y.contains(N));e.U=!(w==null||!w.contains(N));e.D=!(N==null||!N.hasAttribute("data-tooltip-target-fixed"));return N}; C9E=function(e,N,y){if(!e.Z){if(N){e.tooltipRenderer=N;N=e.tooltipRenderer.text;var w=!1,E;(N==null?0:(E=N.runs)==null?0:E.length)&&N.runs[0].text&&(e.update({title:N.runs[0].text.toString()}),w=!0);g.X0(e.title,w);N=e.tooltipRenderer.detailsText;E=!1;var A;if((N==null?0:(A=N.runs)==null?0:A.length)&&N.runs[0].text){w=N.runs[0].text.toString();A=w.indexOf("$TARGET_ICON");if(A>-1)if(e.tooltipRenderer.targetId){N=[];w=w.split("$TARGET_ICON");var T=new g.r1({S:"span",B:"ytp-promotooltip-details-icon", W:[JMJ[e.tooltipRenderer.targetId]]});g.Q(e,T);for(var p=[],C=g.c(w),r=C.next();!r.done;r=C.next())r=new g.r1({S:"span",B:"ytp-promotooltip-details-component",b9:r.value}),g.Q(e,r),p.push(r);w.length===2?(N.push(p[0].element),N.push(T.element),N.push(p[1].element)):w.length===1&&(A===0?(N.push(T.element),N.push(p[0].element)):(N.push(p[0].element),N.push(T.element)));A=N.length?N:null}else A=null;else A=w;if(A){if(typeof A!=="string")for(g.N8(e.details),E=g.c(A),A=E.next();!A.done;A=E.next())e.details.appendChild(A.value); else e.update({details:A});E=!0}}g.X0(e.details,E);E=e.tooltipRenderer.acceptButton;A=!1;var Y,M,l;((Y=g.m(E,g.zR))==null?0:(M=Y.text)==null?0:(l=M.runs)==null?0:l.length)&&g.m(E,g.zR).text.runs[0].text&&(e.update({acceptButtonText:g.m(E,g.zR).text.runs[0].text.toString()}),A=!0);g.X0(e.acceptButton,A);Y=e.tooltipRenderer.dismissButton;M=!1;var F,S,k;((F=g.m(Y,g.zR))==null?0:(S=F.text)==null?0:(k=S.runs)==null?0:k.length)&&g.m(Y,g.zR).text.runs[0].text&&(e.update({dismissButtonText:g.m(Y,g.zR).text.runs[0].text.toString()}), M=!0);g.X0(e.dismissButton,M)}y&&(e.K=y);e.J=TVH(e);e.G=!1;e.C.X().T("web_player_hide_nitrate_promo_tooltip")||e.KX(!0);pv3(e);e.Og&&!e.Ng&&(e.Ng=!0,e.lk.Fd(0));e.N&&e.C.logVisibility(e.element,e.Og)}}; P6=function(e){e.KX(!1);e.N&&e.C.logVisibility(e.element,e.Og)}; rM1=function(e){var N,y,w,E=((N=g.m(e.acceptButton,g.zR))==null?void 0:(y=N.text)==null?void 0:(w=y.runs)==null?void 0:w.length)&&!!g.m(e.acceptButton,g.zR).text.runs[0].text,A,T,p;N=((A=g.m(e.dismissButton,g.zR))==null?void 0:(T=A.text)==null?void 0:(p=T.runs)==null?void 0:p.length)&&!!g.m(e.dismissButton,g.zR).text.runs[0].text;return E||N}; pv3=function(e){var N;if(!(N=!e.J)){N=e.J;var y=window.getComputedStyle(N);N=y.display==="none"||y.visibility==="hidden"||N.getAttribute("aria-hidden")==="true"}if(N||e.C.isMinimized())e.KX(!1);else if(N=g.Be(e.J),N.width&&N.height){e.C.yg(e.element,e.J);var w=e.C.Fz().getPlayerSize().height;y=g.Be(e.hW("ytp-promotooltip-container")).height;e.j?e.element.style.top=w-y-N.height-12+"px":e.D||(w=e.C.eW().height-y-N.height-12,e.element.style.top=w+"px");w=e.hW("ytp-promotooltip-pointer");var E=g.ce(e.J, e.C.getRootNode()),A=Number(e.element.style.left.replace(/[^\d\.]/g,""));e=e.C.isFullscreen()?18:12;w.style.left=E.x-A+N.width/2-e+"px";w.style.top=y+"px"}else e.KX(!1)}; dC=function(e){g.W.call(this,{S:"button",dP:["ytp-replay-button","ytp-button"],V:{title:"Reiniciar"},W:[g.vq()]});this.C=e;this.Y(e,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.IJ(e.getPlayerStateObject());lh(this.C,this.element,this)}; Im=function(e,N){N=N===void 0?240:N;g.W.call(this,{S:"button",dP:["ytp-button","ytp-search-button"],V:{title:"Pesquisar","data-tooltip-opaque":String(g.hR(e.X()))},W:[{S:"div",B:"ytp-search-icon",b9:"{{icon}}"},{S:"div",B:"ytp-search-title",b9:"Pesquisar"}]});this.api=e;this.N=N;this.visible=!1;this.updateValue("icon",{S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},W:[{S:"path",B:"ytp-svg-fill",V:{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"}}]}); e.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.J();this.Y(e,"appresize",this.J);this.Y(e,"videodatachange",this.J);lh(e,this.element,this)}; g.v6=function(e,N,y,w){w=w===void 0?240:w;g.W.call(this,{S:"button",dP:["ytp-button","ytp-share-button"],V:{title:"Compartilhar","aria-haspopup":"true","aria-owns":y.element.id,"data-tooltip-opaque":String(g.hR(e.X()))},W:[{S:"div",B:"ytp-share-icon",b9:"{{icon}}"},{S:"div",B:"ytp-share-title",b9:"Compartilhar"}]});this.api=e;this.J=N;this.K=y;this.j=w;this.N=this.visible=!1;this.tooltip=this.J.Rf();e.createClientVe(this.element,this,28664);this.listen("click",this.onClick);this.Y(e,"videodatachange", this.GZ);this.Y(e,"videoplayerreset",this.GZ);this.Y(e,"appresize",this.GZ);this.Y(e,"presentingplayerstatechange",this.GZ);this.GZ();this.addOnDisposeCallback(g.MU(this.tooltip,this.element))}; $r5=function(e){var N=e.api.X(),y=e.api.getVideoData(),w=g.hR(N)&&g.cb(e.api)&&g.G(e.api.getPlayerStateObject(),128);N=N.K||N.disableSharing&&e.api.getPresentingPlayerType()!==2||!y.showShareButton||y.hp||w||g.KX(y)||e.N;w=e.api.Fz().getPlayerSize().width;return!!y.videoId&&w>=e.j&&!N}; Yy3=function(e,N){N.name!=="InvalidStateError"&&N.name!=="AbortError"&&(N.name==="NotAllowedError"?(e.J.Jm(),VL(e.K,e.element,!1)):g.t0(N))}; l_5=function(e,N){var y=CT(),w=e.X();y={S:"div",B:"ytp-share-panel",V:{id:CT(),role:"dialog","aria-labelledby":y},W:[{S:"div",B:"ytp-share-panel-inner-content",W:[{S:"div",B:"ytp-share-panel-title",V:{id:y},b9:"Compartilhar"},{S:"a",dP:["ytp-share-panel-link","ytp-no-contextmenu"],V:{href:"{{link}}",target:w.D,title:"Compartilhar link","aria-label":"{{shareLinkWithUrl}}"},b9:"{{linkText}}"},{S:"label",B:"ytp-share-panel-include-playlist",W:[{S:"input",B:"ytp-share-panel-include-playlist-checkbox", V:{type:"checkbox",checked:"true"}},"Incluir lista de reprodu\u00e7\u00e3o"]},{S:"div",B:"ytp-share-panel-loading-spinner",W:[LD()]},{S:"div",B:"ytp-share-panel-service-buttons",b9:"{{buttons}}"},{S:"div",B:"ytp-share-panel-error",b9:"Ocorreu um erro ao recuperar informa\u00e7\u00f5es de compartilhamento. Tente novamente mais tarde."}]},{S:"button",dP:["ytp-share-panel-close","ytp-button"],V:{title:"Fechar"},W:[g.kl()]}]};g.Dq.call(this,e,y,250);var E=this;this.moreButton=null;this.api=e;this.tooltip= N.Rf();this.K=[];this.Z=this.hW("ytp-share-panel-inner-content");this.closeButton=this.hW("ytp-share-panel-close");this.Y(this.closeButton,"click",this.rT);this.addOnDisposeCallback(g.MU(this.tooltip,this.closeButton));this.j=this.hW("ytp-share-panel-include-playlist-checkbox");this.Y(this.j,"click",this.GZ);this.J=this.hW("ytp-share-panel-link");this.addOnDisposeCallback(g.MU(this.tooltip,this.J));this.api.createClientVe(this.J,this,164503);this.Y(this.J,"click",function(A){A.preventDefault();E.api.logClick(E.J); var T=E.api.getVideoUrl(!0,!0,!1,!1);T=MTE(E,T);g.Uc(T,E.api,A)&&E.api.Mg("SHARE_CLICKED")}); this.listen("click",this.uU);this.Y(e,"videoplayerreset",this.hide);this.Y(e,"fullscreentoggled",this.onFullscreenToggled);this.Y(e,"onLoopRangeChange",this.j9q);this.hide()}; Sy_=function(e,N){FOM(e);for(var y=N.links||N.shareTargets,w=0,E={},A=0;A'),(k=F.document)&&k.write&&(k.write(ux(S)),k.close()))):((F=g.qm(F,k,l,V))&&S.noopener&&(F.opener=null),F&&S.noreferrer&&(F.opener=null));F&&(F.opener||(F.opener=window),F.focus());M.preventDefault()}}}(E)); E.hg.addOnDisposeCallback(g.MU(e.tooltip,E.hg.element));p==="Facebook"?e.api.createClientVe(E.hg.element,E.hg,164504):p==="Twitter"&&e.api.createClientVe(E.hg.element,E.hg,164505);e.Y(E.hg.element,"click",function(Y){return function(){e.api.logClick(Y.hg.element)}}(E)); e.api.logVisibility(E.hg.element,!0);e.K.push(E.hg);w++}}var C=N.more||N.moreLink,r=new g.W({S:"a",dP:["ytp-share-panel-service-button","ytp-button"],W:[{S:"span",B:"ytp-share-panel-service-button-more",W:[{S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},W:[{S:"rect",V:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{S:"path",V:{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"}}]}]}],V:{href:C,target:"_blank",title:"Mais"}});r.listen("click",function(Y){var M=C;e.api.logClick(e.moreButton.element);M=MTE(e,M);g.Uc(M,e.api,Y)&&e.api.Mg("SHARE_CLICKED")}); r.addOnDisposeCallback(g.MU(e.tooltip,r.element));e.api.createClientVe(r.element,r,164506);e.Y(r.element,"click",function(){e.api.logClick(r.element)}); e.api.logVisibility(r.element,!0);e.K.push(r);e.moreButton=r;e.updateValue("buttons",e.K)}; MTE=function(e,N){var y={};g.hR(e.api.X())&&(g.NU(e.api,"addEmbedsConversionTrackingParams",[y]),N=g.Qb(N,y));return N}; FOM=function(e){for(var N=g.c(e.K),y=N.next();!y.done;y=N.next())y=y.value,y.detach(),g.JV(y);e.K=[]}; zP=function(e){return e===void 0||e.startSec===void 0||e.endSec===void 0?!1:!0}; oLP=function(e,N){e.startSec+=N;e.endSec+=N}; h7J=function(e){qJ.call(this,e);this.N=this.J=this.isContentForward=this.G=!1;be_(this);this.Y(this.C,"changeProductsInVideoVisibility",this.pGl);this.Y(this.C,"videodatachange",this.onVideoDataChange)}; cM1=function(e){e.Z&&e.Rq.element.removeChild(e.Z.element);e.Z=void 0}; BVM=function(e,N){return N.map(function(y){var w,E;if((y=(w=g.m(y,kdM))==null?void 0:(E=w.thumbnail)==null?void 0:E.thumbnails)&&y.length!==0)return y[0].url}).filter(function(y){return y!==void 0}).map(function(y){y=new g.W({S:"img", B:"ytp-suggested-action-product-thumbnail",V:{alt:"",src:y}});g.Q(e,y);return y})}; Xv5=function(e,N){e.isContentForward=N;g.Y1(e.badge.element,"ytp-suggested-action-badge-content-forward",N)}; io=function(e){var N=e.isContentForward&&!e.xZ();g.Y1(e.badge.element,"ytp-suggested-action-badge-preview-collapsed",N&&e.J);g.Y1(e.badge.element,"ytp-suggested-action-badge-preview-expanded",N&&e.N)}; DD=function(e,N,y){return new g.wF(e*1E3,N*1E3,{priority:9,namespace:y})}; P9M=function(e){e.C.MK("shopping_overlay_visible");e.C.MK("shopping_overlay_preview_collapsed");e.C.MK("shopping_overlay_preview_expanded");e.C.MK("shopping_overlay_expanded")}; be_=function(e){e.Y(e.C,g.AA("shopping_overlay_visible"),function(){e.iP(!0)}); e.Y(e.C,g.TW("shopping_overlay_visible"),function(){e.iP(!1)}); e.Y(e.C,g.AA("shopping_overlay_expanded"),function(){e.Kh=!0;ur(e)}); e.Y(e.C,g.TW("shopping_overlay_expanded"),function(){e.Kh=!1;ur(e)}); e.Y(e.C,g.AA("shopping_overlay_preview_collapsed"),function(){e.J=!0;io(e)}); e.Y(e.C,g.TW("shopping_overlay_preview_collapsed"),function(){e.J=!1;io(e)}); e.Y(e.C,g.AA("shopping_overlay_preview_expanded"),function(){e.N=!0;io(e)}); e.Y(e.C,g.TW("shopping_overlay_preview_expanded"),function(){e.N=!1;io(e)})}; vLF=function(e){g.W.call(this,{S:"div",B:"ytp-shorts-title-channel",W:[{S:"a",B:"ytp-shorts-title-channel-logo",V:{href:"{{channelLink}}",target:e.X().D,"aria-label":"{{channelLogoLabel}}"}},{S:"div",B:"ytp-shorts-title-expanded-heading",W:[{S:"div",B:"ytp-shorts-title-expanded-title",W:[{S:"a",b9:"{{expandedTitle}}",V:{href:"{{channelTitleLink}}",target:e.X().D,tabIndex:"0"}}]}]}]});var N=this;this.api=e;this.J=this.hW("ytp-shorts-title-channel-logo");this.channelName=this.hW("ytp-shorts-title-expanded-title"); this.subscribeButton=null;e.createClientVe(this.J,this,36925);this.Y(this.J,"click",function(y){N.api.logClick(N.J);g.qm(window,dr5(N));y.preventDefault()}); e.createClientVe(this.channelName,this,37220);this.Y(this.channelName,"click",function(y){N.api.logClick(N.channelName);g.qm(window,dr5(N));y.preventDefault()}); I_9(this);this.Y(e,"videodatachange",this.GZ);this.Y(e,"videoplayerreset",this.GZ);this.GZ()}; I_9=function(e){if(!e.api.X().jn){var N=e.api.getVideoData(),y=new g.TP("Inscreva-se",null,"Inscrito",null,!0,!1,N.iI,N.subscribed,"channel_avatar",null,e.api,!0);e.api.createServerVe(y.element,e);var w;e.api.setTrackingParams(y.element,((w=N.subscribeButtonRenderer)==null?void 0:w.trackingParams)||null);e.Y(y.element,"click",function(){e.api.logClick(y.element)}); e.subscribeButton=y;g.Q(e,e.subscribeButton);e.subscribeButton.yB(e.element)}}; dr5=function(e){var N=e.api.X(),y=e.api.getVideoData();y=g.RK(N)+y.SR;if(!g.hR(N))return y;N={};g.NU(e.api,"addEmbedsConversionTrackingParams",[N]);return g.Qb(y,N)}; gC=function(e){g.Dq.call(this,e,{S:"button",dP:["ytp-skip-intro-button","ytp-popup","ytp-button"],W:[{S:"div",B:"ytp-skip-intro-button-text",b9:"Pular introdu\u00e7\u00e3o"}]},100);var N=this;this.K=!1;this.J=new g.e6(function(){N.hide()},5E3); this.Js=this.YB=NaN;g.Q(this,this.J);this.G=function(){N.show()}; this.Z=function(){N.hide()}; this.j=function(){var y=N.C.getCurrentTime();y>N.YB/1E3&&y0?{S:"svg",V:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},W:[{S:"path",dP:["ytp-circle-arrow","ytp-svg-fill"],V:{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"}}, {S:"text",dP:["ytp-jump-button-text","ytp-svg-fill"],V:{x:"7.05",y:"15.05"}}]}:{S:"svg",V:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},W:[{S:"path",dP:["ytp-circle-arrow","ytp-svg-fill"],V:{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"}}, {S:"text",dP:["ytp-jump-button-text","ytp-svg-fill"],V:{x:"6.5",y:"15"}}]}]});var y=this;this.C=e;this.J=N;this.N=new g.e6(function(){y.K?(y.K=!1,y.N.start()):y.element.classList.remove("ytp-jump-spin","backwards")},250); this.K=!1;(N=N>0)?this.C.createClientVe(this.element,this,36843):this.C.createClientVe(this.element,this,36844);var w=g.SO(N?"Avance $SECONDS segundos. (\u2192)":"Volte $SECONDS segundos. (\u2190)",{SECONDS:Math.abs(this.J).toString()});this.update({title:w,"data-title-no-tooltip":w,"aria-keyshortcuts":N?"\u2192":"\u2190"});this.j=this.element.querySelector(".ytp-jump-button-text");this.j.textContent=Math.abs(this.J).toString();this.listen("click",this.onClick,this);lh(e,this.element,this)}; tT9=function(e,N){N?e.element.classList.add("ytp-jump-button-enabled"):e.element.classList.remove("ytp-jump-button-enabled");e.C.logVisibility(e.element,N);e.C.xp()}; ZD=function(e,N){fJ.call(this,e,N,"timedMarkerCueRange","Momentos importantes da visualiza\u00e7\u00e3o");this.Y(e,g.TW("timedMarkerCueRange"),this.HY);this.Y(e,"updatemarkervisibility",this.updateVideoData)}; u5M=function(e){var N,y=(N=e.C.getVideoData())==null?void 0:N.Dl;if(y)for(e=e.j.Zl,y=g.c(y),N=y.next();!N.done;N=y.next())if(N=e[N.value]){var w=void 0,E=void 0,A=void 0;if(((w=N.onTap)==null?void 0:(E=w.innertubeCommand)==null?void 0:(A=E.changeEngagementPanelVisibilityAction)==null?void 0:A.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return N}}; jz=function(e){var N=e.T("web_enable_pip_on_miniplayer");g.W.call(this,{S:"button",dP:["ytp-miniplayer-button","ytp-button"],V:{title:"{{title}}","aria-keyshortcuts":"i","data-priority":"6","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},W:[N?{S:"svg",V:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 -960 960 960",width:"100%"},W:[{S:"g",V:{transform:"translate(96, -96) scale(0.8)"},W:[{S:"path",Az:!0,V:{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"}}]}]}: d7E()]});this.C=e;this.visible=!1;this.listen("click",this.onClick);this.Y(e,"fullscreentoggled",this.GZ);this.updateValue("title",g.FT(e,"Miniplayer","i"));this.update({"data-title-no-tooltip":"Miniplayer"});lh(e,this.element,this);e.createClientVe(this.element,this,62946);this.GZ()}; nJ=function(e,N,y){y=y===void 0?!1:y;g.W.call(this,{S:"button",dP:["ytp-mute-button","ytp-button"],V:e.X().Et?{title:"{{title}}","aria-keyshortcuts":"m","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-priority":"{{dataPriority}}"}:{"aria-disabled":"true","aria-haspopup":"true"},b9:"{{icon}}"});this.C=e;this.i9=y;this.J=null;this.j=this.D=this.Z=this.Kh=NaN;this.qg=this.G=null;this.K=[];this.N=[];this.visible=!1;this.U=null;e.T("delhi_modern_web_player")&&this.update({"data-priority":3}); y=this.C.X();this.updateValue("icon",Dh());this.tooltip=N.Rf();this.J=new g.r1({S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{S:"defs",W:[{S:"clipPath",V:{id:"ytp-svg-volume-animation-mask"},W:[{S:"path",V:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{S:"path",V:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{S:"path",B:"ytp-svg-volume-animation-mover",V:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{S:"clipPath",V:{id:"ytp-svg-volume-animation-slash-mask"}, W:[{S:"path",B:"ytp-svg-volume-animation-mover",V:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{S:"path",Az:!0,dP:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],V:{"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"}},{S:"path",Az:!0,dP:["ytp-svg-fill","ytp-svg-volume-animation-hider"],V:{"clip-path":"url(#ytp-svg-volume-animation-slash-mask)", d:"M 9.25,9 7.98,10.27 24.71,27 l 1.27,-1.27 Z",fill:"#fff"}}]});g.Q(this,this.J);this.G=this.J.hW("ytp-svg-volume-animation-speaker");this.qg=this.G.getAttribute("d");this.K=g.QM("ytp-svg-volume-animation-mover",this.J.element);this.N=g.QM("ytp-svg-volume-animation-hider",this.J.element);this.l9=new rH;g.Q(this,this.l9);this.Ng=new rH;g.Q(this,this.Ng);this.listen("click",this.nkP);this.Y(e,"appresize",this.eG);this.Y(e,"onVolumeChange",this.onVolumeChange);var w=null;y.Et?this.addOnDisposeCallback(g.MU(N.Rf(), this.element)):(N="Seu navegador n\u00e3o suporta a altera\u00e7\u00e3o de volume. $BEGIN_LINKSaiba mais$END_LINK".split(/\$(BEGIN|END)_LINK/),w=new g.Dq(e,{S:"span",dP:["ytp-popup","ytp-generic-popup"],V:{tabindex:"0"},W:[N[0],{S:"a",V:{href:"https://support.google.com/youtube/?p=noaudio",target:y.D},b9:N[2]},N[4]]},100,!0),g.Q(this,w),w.hide(),w.subscribe("show",function(E){e.wG(w,E)}),g.Pb(e,w.element,4)); this.message=w;e.createClientVe(this.element,this,28662);this.eG(e.Fz().getPlayerSize());this.setVolume(e.getVolume(),e.isMuted())}; xrM=function(e,N){e.Kh=N;var y=e.qg;N&&(y+=TC_(qy0,Ze9,N));e.G.setAttribute("d",y)}; ja1=function(e,N){e.D=N;for(var y=20*N,w=0;w=3&&e.C.getPresentingPlayerType()!==2}; KO5=function(e){var N=hu(e.C.jR());return N?e.J?N.gk():N.GJ():!1}; QaE=function(e){var N={duration:null,preview:null,text:null,title:null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},y=e.playlist!=null&&e.playlist.gk();y=g.cb(e.C)&&(!e.J||y);var w=e.J&&g.dZ(e.C),E=KO5(e),A=e.J&&e.C.getPresentingPlayerType()===5,T=g.FT(e.C,"Pr\u00f3ximo","SHIFT+n"),p=g.FT(e.C,"Anterior","SHIFT+p");if(A)N.title="Iniciar v\u00eddeo";else if(e.K)N.title="Reiniciar";else if(y){var C=null;e.playlist&&(C=g.Bo(e.playlist,e.J?jmH(e.playlist):ny9(e.playlist)));if(C){if(C.videoId){var r= e.playlist.listId;N.url=e.C.X().getVideoUrl(C.videoId,r?r.toString():void 0)}N.text=C.title;N.duration=C.lengthText?C.lengthText:C.lengthSeconds?g.P2(C.lengthSeconds):null;N.preview=C.LN("mqdefault.jpg")}e.J?(N.title=T,N["data-title-no-tooltip"]="Pr\u00f3ximo",N["aria-keyshortcuts"]="SHIFT+n"):(N.title=p,N["data-title-no-tooltip"]="Anterior",N["aria-keyshortcuts"]="SHIFT+p")}else if(w){if(p=(C=e.videoData)==null?void 0:g.HH(C))N.url=p.ew(),N.text=p.title,N.duration=p.lengthText?p.lengthText:p.lengthSeconds? g.P2(p.lengthSeconds):null,N.preview=p.LN("mqdefault.jpg");N.title=T;N["data-title-no-tooltip"]="Pr\u00f3ximo";N["aria-keyshortcuts"]="SHIFT+n"}N.disabled=!w&&!y&&!E&&!A;e.update(N);e.G=!!N.url;w||y||e.K||E||A?e.N||(e.N=g.MU(e.tooltip,e.element),e.Z=e.listen("click",e.onClick,e)):e.N&&(e.N(),e.N=null,e.CX(e.Z),e.Z=null);e.tooltip.xp();g.Y1(e.element,"ytp-playlist-ui",e.J&&y)}; Oe3=function(e,N){g.W.call(this,{S:"div",B:"ytp-fine-scrubbing",W:[{S:"div",B:"ytp-fine-scrubbing-draggable",W:[{S:"div",B:"ytp-fine-scrubbing-thumbnails",V:{tabindex:"0",role:"slider",type:"range","aria-label":"Clique ou role o painel at\u00e9 a busca precisa","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]},{S:"div",V:{"aria-hidden":"true"},B:"ytp-fine-scrubbing-cursor"},{S:"div",B:"ytp-fine-scrubbing-seek-time",V:{"aria-hidden":"true"}, b9:"{{seekTime}}"},{S:"div",B:"ytp-fine-scrubbing-play",W:[IM()],V:{title:"Reproduzir desta posi\u00e7\u00e3o",role:"button"}},{S:"div",B:"ytp-fine-scrubbing-dismiss",W:[g.kl()],V:{title:"Sair da busca precisa",role:"button"}}]});var y=this;this.api=e;this.Z=this.hW("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.hW("ytp-fine-scrubbing-dismiss");this.qg=this.hW("ytp-fine-scrubbing-draggable");this.playButton=this.hW("ytp-fine-scrubbing-play");this.thumbnails=[];this.N=[];this.aq=this.J=0; this.Rq=void 0;this.Ng=NaN;this.Zl=this.D=this.K=this.U=0;this.j=[];this.interval=this.frameCount=0;this.G=160;this.scale=1;this.Et=0;this.isEnabled=this.i9=!1;WO5(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.MU(N,this.dismissButton));this.addOnDisposeCallback(g.MU(N,this.playButton));this.l9=new g.sd(this.qg,!0);this.l9.subscribe("dragstart",this.Xg,this);this.l9.subscribe("dragmove",this.Yd,this);this.l9.subscribe("dragend",this.iU,this);this.Y(e,"SEEK_COMPLETE",this.IE);e.T("web_fix_fine_scrubbing_false_play")&& this.Y(e,"rootnodemousedown",function(w){y.Kh=w}); this.Z.addEventListener("keydown",function(){}); g.Q(this,this.l9);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.Z,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}; WO5=function(e,N){var y=g.P2(N),w=g.SO("Procurar $PROGRESS",{PROGRESS:g.P2(N,!0)});e.update({ariamin:0,ariamax:Math.floor(e.api.getDuration()),arianow:Math.floor(N),arianowtext:w,seekTime:y})}; R7M=function(e){e.Ng=NaN;e.D=0;e.U=e.K}; LOM=function(e){var N=e.api.nO();if(N){var y=90*e.scale,w=If(N,160*e.scale);if(N=N.levels[w]){e.G=N.width;if(!e.j.length){w=[];for(var E=vH(N,N.La()),A=N.columns*N.rows,T=N.frameCount,p=0;p<=E;p++)for(var C=Te.j.length;)w= void 0,(w=e.thumbnails.pop())==null||w.dispose();for(;e.thumbnails.lengthy.length;)w=void 0,(w=e.N.pop())==null||w.dispose(); for(;e.N.length-y?-N/y*e.interval*.5:-(N+y/2)/y*e.interval}; san=function(e){return-((e.Z.offsetWidth||(e.frameCount-1)*e.G*e.scale)-e.J/2)}; Gd5=function(){g.W.call(this,{S:"div",B:"ytp-fine-scrubbing-thumbnail"})}; Ur9=function(){g.W.call(this,{S:"div",B:"ytp-fine-scrubbing-chapter-title",W:[{S:"div",B:"ytp-fine-scrubbing-chapter-title-content",b9:"{{chapterTitle}}"}]})}; eUM=function(e){g.W.call(this,{S:"div",B:"ytp-heat-map-chapter",W:[{S:"svg",B:"ytp-heat-map-svg",V:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},W:[{S:"defs",W:[{S:"clipPath",V:{id:"{{id}}"},W:[{S:"path",B:"ytp-heat-map-path",V:{d:"",fill:"white"}}]},{S:"linearGradient",V:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},W:[{S:"stop",V:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{S:"stop",V:{offset:"100%", "stop-color":"white","stop-opacity":"0"}}]}]},{S:"rect",B:"ytp-heat-map-graph",V:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{S:"rect",B:"ytp-heat-map-hover",V:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{S:"rect",B:"ytp-heat-map-play",V:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{S:"path",B:"ytp-modern-heat-map",V:{d:"",fill:"url(#ytp-heat-map-gradient-def)",height:"100%", stroke:"white","stroke-opacity":"0.7","stroke-width":"2px",style:"display: none;",width:"100%",x:"0",y:"0"}}]}]});this.api=e;this.U=this.hW("ytp-heat-map-svg");this.Z=this.hW("ytp-heat-map-path");this.j=this.hW("ytp-heat-map-graph");this.G=this.hW("ytp-heat-map-play");this.J=this.hW("ytp-heat-map-hover");this.K=this.hW("ytp-modern-heat-map");this.WG=!1;this.N=60;e=""+g.RP(this);this.update({id:e});e="url(#"+e+")";this.j.setAttribute("clip-path",e);this.G.setAttribute("clip-path",e);this.J.setAttribute("clip-path", e)}; NMM=function(e,N){N>0&&(e.N=N,e.U.style.height=e.N+"px")}; KJ=function(){g.W.call(this,{S:"div",B:"ytp-chapter-hover-container",W:[{S:"div",B:"ytp-progress-bar-padding"},{S:"div",B:"ytp-progress-list",W:[{S:"div",dP:["ytp-play-progress","ytp-swatch-background-color"]},{S:"div",B:"ytp-progress-linear-live-buffer"},{S:"div",B:"ytp-load-progress"},{S:"div",B:"ytp-hover-progress"},{S:"div",B:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.N=this.hW("ytp-progress-list");this.Z=this.hW("ytp-progress-linear-live-buffer"); this.j=this.hW("ytp-ad-progress-list");this.G=this.hW("ytp-load-progress");this.U=this.hW("ytp-play-progress");this.K=this.hW("ytp-hover-progress");this.J=this.hW("ytp-chapter-hover-container")}; W6=function(e,N){g.$0(e.J,"width",N)}; ysE=function(e,N){g.$0(e.J,"margin-right",N+"px")}; wj5=function(){this.N=this.position=this.K=this.J=this.j=this.width=NaN}; EW5=function(){g.W.call(this,{S:"div",B:"ytp-timed-marker"});this.J=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; g.Rm=function(e,N){g.Mu.call(this,{S:"div",B:"ytp-progress-bar-container",V:{"aria-disabled":"true"},W:[{S:"div",dP:["ytp-heat-map-container"],W:[{S:"div",B:"ytp-heat-map-edu"}]},{S:"div",dP:["ytp-progress-bar"],V:{tabindex:"0",role:"slider","aria-label":"Bot\u00e3o deslizante de busca","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},W:[{S:"div",B:"ytp-chapters-container"},{S:"div",B:"ytp-timed-markers-container"},{S:"div", B:"ytp-clip-start-exclude"},{S:"div",B:"ytp-clip-end-exclude"},{S:"div",B:"ytp-scrubber-container",W:[{S:"div",dP:["ytp-scrubber-button","ytp-swatch-background-color"],W:[{S:"div",B:"ytp-scrubber-pull-indicator"},{S:"img",dP:["ytp-decorated-scrubber-button"]}]}]}]},{S:"div",dP:["ytp-fine-scrubbing-container"],W:[{S:"div",B:"ytp-fine-scrubbing-edu"}]},{S:"div",B:"ytp-bound-time-left",b9:"{{boundTimeLeft}}"},{S:"div",B:"ytp-bound-time-right",b9:"{{boundTimeRight}}"},{S:"div",B:"ytp-clip-start",V:{title:"{{clipstarttitle}}"}, b9:"{{clipstarticon}}"},{S:"div",B:"ytp-clip-end",V:{title:"{{clipendtitle}}"},b9:"{{clipendicon}}"}]});this.api=e;this.WE=!1;this.jp=this.CN=this.Bk=this.G=this.Rx=0;this.YO=null;this.aq={};this.Y_={};this.clipEnd=Infinity;this.dT=this.hW("ytp-clip-end");this.FZ=new g.sd(this.dT,!0);this.pX=this.hW("ytp-clip-end-exclude");this.jn=this.hW("ytp-clip-start-exclude");this.clipStart=0;this.SR=this.hW("ytp-clip-start");this.PY=new g.sd(this.SR,!0);this.D=this.VB=0;this.progressBar=this.hW("ytp-progress-bar"); this.Kx={};this.Zl={};this.Xz=this.hW("ytp-chapters-container");this.NG=this.hW("ytp-timed-markers-container");this.J=[];this.Z=[];this.im={};this.sY=null;this.qg=-1;this.Dl=this.l9=0;this.U=null;this.DD=this.hW("ytp-scrubber-button");this.LX=this.hW("ytp-decorated-scrubber-button");this.Pf=this.hW("ytp-scrubber-container");this.Ut=new g.ri;this.Fr=new wj5;this.K=new fR(0,0);this.c9=null;this.Ng=this.UY=!1;this.Js=null;this.Kh=this.hW("ytp-heat-map-container");this.CC=this.hW("ytp-heat-map-edu"); this.j=[];this.heatMarkersDecorations=[];this.Wk=this.hW("ytp-fine-scrubbing-container");this.U2=this.hW("ytp-fine-scrubbing-edu");this.N=void 0;this.i9=this.NK=this.Rq=!1;this.tooltip=N.Rf();this.addOnDisposeCallback(g.MU(this.tooltip,this.dT));g.Q(this,this.FZ);this.FZ.subscribe("hoverstart",this.fZ,this);this.FZ.subscribe("hoverend",this.tJ,this);this.Y(this.dT,"click",this.Ur);this.addOnDisposeCallback(g.MU(this.tooltip,this.SR));g.Q(this,this.PY);this.PY.subscribe("hoverstart",this.fZ,this); this.PY.subscribe("hoverend",this.tJ,this);this.Y(this.SR,"click",this.Ur);AsM(this);this.Y(e,"resize",this.I9);this.Y(e,"presentingplayerstatechange",this.KPt);this.Y(e,"videodatachange",this.vc);this.Y(e,"videoplayerreset",this.kZB);this.Y(e,"cuerangesadded",this.gxh);this.Y(e,"cuerangesremoved",this.fMl);this.Y(e,"onLoopRangeChange",this.g3);this.Y(e,"innertubeCommand",this.onClickCommand);this.Y(e,g.AA("timedMarkerCueRange"),this.Ju9);this.Y(e,"updatemarkervisibility",this.u3);this.Y(e,"serverstitchedvideochange", this.VZW);this.updateVideoData(e.getVideoData(),!0);this.g3(e.getLoopRange());OL(this)&&!this.N&&(this.N=new Oe3(this.api,this.tooltip),e=g.hp(this.element).x||0,this.N.I9(e,this.G),this.N.yB(this.Wk),g.Q(this,this.N),this.Y(this.N.dismissButton,"click",this.v5),this.Y(this.N.playButton,"click",this.Z5),this.Y(this.N.element,"dblclick",this.Z5));this.api.createClientVe(this.Kh,this,139609,!0);this.api.createClientVe(this.CC,this,140127,!0);this.api.createClientVe(this.U2,this,151179,!0);this.api.createClientVe(this.progressBar, this,38856,!0)}; AsM=function(e){if(e.J.length===0){var N=new KJ;e.J.push(N);g.Q(e,N);N.yB(e.Xz,0)}for(;e.J.length>1;)e.J.pop().dispose();W6(e.J[0],"100%");e.J[0].startTime=0;e.J[0].title=""}; TMP=function(e){var N=N===void 0?NaN:N;var y=new eUM(e.api);e.j.push(y);g.Q(e,y);y.yB(e.Kh);N>=0&&(y.element.style.width=N+"px")}; Js0=function(e){for(;e.Z.length;)e.Z.pop().dispose()}; CWn=function(e){var N,y,w,E,A;return(A=g.m((E=g.m((N=e.getWatchNextResponse())==null?void 0:(y=N.playerOverlays)==null?void 0:(w=y.playerOverlayRenderer)==null?void 0:w.decoratedPlayerBarRenderer,Sx))==null?void 0:E.playerBar,pj5))==null?void 0:A.chapters}; rs9=function(e){for(var N=e.J,y=[],w=0;w=T&&k<=Y&&A.push(l)}C>0&&(e.Kh.style.height=C+"px");T=e.j[w];Y=A;l=E;S=C;k=w===0;k=k===void 0?!1:k;NMM(T,S);M=Y;F=T.N;k=k===void 0?!1:k;var X=1E3/M.length,d=[];d.push({x:0,y:100});for(var v=0;v0&&(y=A[A.length-1])}g.GP(e);p=[];N=g.c(N.heatMarkersDecorations||[]);for(E=N.next();!E.done;E=N.next())if(E=g.m(E.value,oWJ))C=E.label,w=y=r=void 0,p.push({visibleTimeRangeStartMillis:(r=E.visibleTimeRangeStartMillis)!=null?r:-1,visibleTimeRangeEndMillis:(y=E.visibleTimeRangeEndMillis)!=null?y:-1,decorationTimeMillis:(w=E.decorationTimeMillis)!=null?w:NaN,label:C?g.SY(C):""});e.heatMarkersDecorations=p}}; MW9=function(e,N){e.Z.push(N);g.Q(e,N);N.yB(e.NG,e.NG.children.length)}; lIs=function(e,N){N=g.c(N);for(var y=N.next();!y.done;y=N.next()){y=y.value;var w=UL(e,y.timeRangeStartMillis/(e.K.J*1E3),LJ(e));g.$0(y.element,"transform","translateX("+w+"px) scaleX(0.6)")}}; $ns=function(e,N){var y=0,w=!1;N=g.c(N);for(var E=N.next();!E.done;E=N.next()){E=E.value;if(g.m(E,hU3)){E=g.m(E,hU3);var A={startTime:NaN,title:null,onActiveCommand:void 0},T=E.title;A.title=T?g.SY(T):"";T=E.timeRangeStartMillis;T!=null&&(A.startTime=T);A.onActiveCommand=E.onActiveCommand;E=A;y===0&&E.startTime!==0&&(e.J[y].startTime=0,e.J[y].title="",e.J[y].onActiveCommand=E.onActiveCommand,y++,w=!0);e.J.length<=y&&(A=new KJ,e.J.push(A),g.Q(e,A),A.yB(e.Xz,e.Xz.children.length));e.J[y].startTime= E.startTime;e.J[y].title=E.title?E.title:"";e.J[y].onActiveCommand=E.onActiveCommand;e.J[y].index=w?y-1:y}y++}for(;y=0;w--)if(e.J[w].width>0){ysE(e.J[w],0);var E=Math.floor(e.J[w].width);e.J[w].width=E;W6(e.J[w],E+"px");break}e.J[y].width=0;W6(e.J[y],"0")}else y===e.J.length-1?(w=Math.floor(e.J[y].width+N),e.J[y].width=w,W6(e.J[y],w+"px")):(N=e.J[y].width+N,w=Math.round(N),N-=w,e.J[y].width=w,W6(e.J[y],w+"px"));y=0;if(e.j.length===e.J.length)for(N=0;N< e.j.length;N++)w=e.J[N].width,e.j[N].element.style.width=w+"px",e.j[N].element.style.left=y+"px",y+=w+am(e);e.api.T("delhi_modern_web_player")&&(e.J.length===1?e.J[0].N.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(e.J[0].N.classList.remove("ytp-progress-bar-end"),e.J[0].N.classList.add("ytp-progress-bar-start"),e.J[e.J.length-1].N.classList.add("ytp-progress-bar-end")))}; cs_=function(e,N){var y=0,w=!1,E=e.J.length,A=e.K.J*1E3;A===0&&(A=e.api.getProgressState().seekableEnd*1E3);if(A>0&&e.G>0){for(var T=e.G-am(e)*e.l9,p=e.Dl===0?3:T*e.Dl,C=g.c(e.J),r=C.next();!r.done;r=C.next())r.value.width=0;for(;y1);r=(A===0?0:C/A*T)+e.J[y].width;if(r>p)e.J[y].width=r;else{e.J[y].width=0;var Y=e,M=y,l=Y.J[M-1];l!==void 0&&l.width>0? l.width+=r:Me.Dl&&(e.Dl=C/A),w=!0)}y++}}return w}; sL=function(e){if(e.G){var N=e.api.getProgressState(),y=e.api.getVideoData();if(!(y&&y.enableServerStitchedDai&&y.enablePreroll)||isFinite(N.current)){var w;if(((w=e.api.getVideoData())==null?0:HF(w))&&N.airingStart&&N.airingEnd)var E=e8(e,N.airingStart,N.airingEnd);else if(e.api.getPresentingPlayerType()===2&&e.api.X().T("show_preskip_progress_bar_for_skippable_ads")){var A,T,p;E=(y=(E=e.api.getVideoData())==null?void 0:(A=E.getPlayerResponse())==null?void 0:(T=A.playerConfig)==null?void 0:(p=T.webPlayerConfig)== null?void 0:p.skippableAdProgressBarDuration)?e8(e,N.seekableStart,y/1E3):e8(e,N.seekableStart,N.seekableEnd)}else E=e8(e,N.seekableStart,N.seekableEnd);A=tF(E,N.loaded,0);N=tF(E,N.current,0);T=e.K.N!==E.N||e.K.J!==E.J;e.K=E;NV(e,N,A);T&&kA_(e);BM5(e)}}}; e8=function(e,N,y){return XjE(e)?new fR(Math.max(N,e.c9.startTimeMs/1E3),Math.min(y,e.c9.endTimeMs/1E3)):new fR(N,y)}; PW1=function(e,N){var y;if(((y=e.c9)==null?void 0:y.type)==="repeatChapter"||(N==null?void 0:N.type)==="repeatChapter")N&&(N=e.J[om(e.J,N.startTimeMs)],g.Y1(N.J,"ytp-repeating-chapter",!1)),e.c9&&(N=e.J[om(e.J,e.c9.startTimeMs)],g.Y1(N.J,"ytp-repeating-chapter",!0)),e.J.forEach(function(w){g.Y1(w.J,"ytp-exp-chapter-hover-container",!e.c9)})}; wT=function(e,N){var y=e.K;y=y.N+N.N*y.getLength();if(e.J.length>1){y=yq(e,N.K,!0);for(var w=0,E=0;E0&&(w+=e.J[E].width,w+=am(e));y=(e.J[y].startTime+(N.K-w)/e.J[y].width*((y===e.J.length-1?e.K.J*1E3:e.J[y+1].startTime)-e.J[y].startTime))/1E3||0}return y}; ED=function(e,N,y,w,E){N=N<0?0:Math.floor(Math.min(N,e.api.getDuration())*1E3);y=y<0?0:Math.floor(Math.min(y,e.api.getDuration())*1E3);e=e.progressBar.visualElement;w={seekData:{startMediaTimeMs:N,endMediaTimeMs:y,seekSource:w}};(N=g.It())&&g.NR(at)(void 0,N,e,E,w,void 0)}; dnF=function(e,N,y){if(y>=e.J.length)return!1;var w=e.G-am(e)*e.l9;return Math.abs(N-e.J[y].startTime/1E3)/e.K.J*w<4}; kA_=function(e){e.DD.style.removeProperty("height");for(var N=g.c(Object.keys(e.aq)),y=N.next();!y.done;y=N.next())IIs(e,y.value);AU(e);NV(e,e.D,e.VB)}; LJ=function(e){var N=e.Ut.x;N=g.Ja(N,0,e.G);e.Fr.update(N,e.G);return e.Fr}; JU=function(e){return(e.Ng?135:90)-TT(e)}; TT=function(e){var N=48,y=e.api.X();e.Ng?N=54:g.hR(y)&&!y.N?N=40:e.api.T("delhi_modern_web_player")&&(N=68);return N}; NV=function(e,N,y){e.D=N;e.VB=y;var w=LJ(e),E=e.K.J;var A=e.K;A=A.N+e.D*A.getLength();var T=g.SO("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.P2(A,!0),DURATION:g.P2(E,!0)}),p=om(e.J,A*1E3);p=e.J[p].title;e.update({ariamin:Math.floor(e.K.N),ariamax:Math.floor(E),arianow:Math.floor(A),arianowtext:p?p+" "+T:T});E=e.clipStart;A=e.clipEnd;e.c9&&e.api.getPresentingPlayerType()!==2&&(E=e.c9.startTimeMs/1E3,A=e.c9.endTimeMs/1E3);E=tF(e.K,E,0);p=tF(e.K,A,1);T=e.api.getVideoData();A=g.Ja(N,E,p);y=(T==null? 0:g.QG(T))?1:g.Ja(y,E,p);N=UL(e,N,w);g.$0(e.Pf,"transform","translateX("+N+"px)");pU(e,w,E,A,"PLAY_PROGRESS");(T==null?0:HF(T))?(N=e.api.getProgressState().seekableEnd)&&pU(e,w,A,tF(e.K,N),"LIVE_BUFFER"):pU(e,w,E,y,"LOAD_PROGRESS");if(e.api.T("web_player_heat_map_played_bar")){var C;(C=e.j[0])!=null&&C.G.setAttribute("width",(A*100).toFixed(2)+"%")}}; pU=function(e,N,y,w,E){var A=e.J.length,T=N.J-e.l9*am(e),p=y*T;y=yq(e,p);var C=w*T;T=yq(e,C);E==="HOVER_PROGRESS"&&(T=yq(e,N.J*w,!0),C=N.J*w-vW1(e,N.J*w)*am(e));w=Math.max(p-zUH(e,y),0);for(p=y;p=e.J.length)return e.G;for(var y=0,w=0;w0||e.pX.clientWidth>0?(A=N.clientWidth/y,e=-1*e.jn.clientWidth/y):(A/=y,e=-1*e.J[E].element.offsetLeft/y),g.$0(N,"background-size",A+"px"),g.$0(N,"background-position-x",e+"px"))}; CU=function(e,N,y,w,E){E||e.api.X().N?N.style.width=y+"px":g.$0(N,"transform","scalex("+(w?y/w:0)+")")}; yq=function(e,N,y){var w=0;(y===void 0?0:y)&&(N-=vW1(e,N)*am(e));y=g.c(e.J);for(var E=y.next();!E.done;E=y.next()){E=E.value;if(N>E.width)N-=E.width;else break;w++}return w===e.J.length?w-1:w}; UL=function(e,N,y){var w=N*e.K.J*1E3;for(var E=-1,A=g.c(e.J),T=A.next();!T.done;T=A.next())T=T.value,w>T.startTime&&T.width>0&&E++;w=E<0?0:E;E=y.J-am(e)*e.l9;return N*E+am(e)*w+y.j}; vW1=function(e,N){for(var y=e.J.length,w=0,E=g.c(e.J),A=E.next();!A.done;A=E.next())if(A=A.value,A.width!==0)if(N>A.width)N-=A.width,N-=am(e),w++;else break;return w===y?y-1:w}; g.gWM=function(e,N,y,w){var E=e.G!==y,A=e.Ng!==w;e.Rx=N;e.G=y;e.Ng=w;OL(e)&&(N=e.N)!=null&&(N.scale=w?1.5:1);kA_(e);e.J.length===1&&(e.J[0].width=y||0);E&&g.GP(e);e.N&&A&&OL(e)&&(e.N.isEnabled&&(y=e.Ng?135:90,w=y-TT(e),e.Wk.style.height=y+"px",g.$0(e.Kh,"transform","translateY("+-w+"px)"),g.$0(e.progressBar,"transform","translateY("+-w+"px)")),LOM(e.N))}; AU=function(e){var N=!!e.c9&&e.api.getPresentingPlayerType()!==2,y=e.clipStart,w=e.clipEnd,E=!0,A=!0;N&&e.c9?(y=e.c9.startTimeMs/1E3,w=e.c9.endTimeMs/1E3):(E=y>e.K.N,A=e.K.J>0&&we.D);g.Y1(e.DD,"ytp-scrubber-button-hover",y===w&&e.J.length>1);if(e.api.T("web_player_heat_map_played_bar")){var A;(A=e.j[0])!=null&&A.J.setAttribute("width",(N.N*100).toFixed(2)+"%")}}}; IIs=function(e,N){var y=e.aq[N];N=e.Y_[N];var w=LJ(e),E=tF(e.K,y.start/1E3,0),A=yZH(y,e.Ng)/w.width;var T=tF(e.K,y.end/1E3,1);A!==Number.POSITIVE_INFINITY&&(E=g.Ja(E,0,T-A));T=Math.min(T,E+A);y.color&&(N.style.background=y.color);y=E;N.style.left=Math.max(y*w.J+w.j,0)+"px";CU(e,N,g.Ja((T-y)*w.J+w.j,0,w.width),w.width,!0)}; VWE=function(e,N){var y=N.getId();e.aq[y]===N&&(g.ws(e.Y_[y]),delete e.aq[y],delete e.Y_[y])}; OL=function(e){var N=g.na(e.api.X())&&(e.api.T("web_enable_pip_on_miniplayer")||e.api.T("web_enable_auto_pip")),y;return!((y=e.api.getVideoData())==null?0:y.isLivePlayback)&&!e.api.isMinimized()&&!e.api.isInline()&&(!e.api.Wp()||!N)}; rT=function(e){e.N&&(e.N.disable(),e.Bk=0,e.Kh.style.removeProperty("transform"),e.progressBar.style.removeProperty("transform"),e.Wk.style.removeProperty("height"),e.element.parentElement&&e.element.parentElement.style.removeProperty("height"))}; fIM=function(e,N){var y=N/JU(e)*TT(e);g.$0(e.progressBar,"transform","translateY("+-N+"px)");g.$0(e.Kh,"transform","translateY("+-N+"px)");g.$0(e.Wk,"transform","translateY("+y+"px)");e.Wk.style.height=N+y+"px";e.element.parentElement&&(e.element.parentElement.style.height=TT(e)-y+"px")}; tW9=function(e,N){N?e.U||(e.element.removeAttribute("aria-disabled"),e.U=new g.sd(e.progressBar,!0),e.U.subscribe("hovermove",e.NaZ,e),e.U.subscribe("hoverend",e.JaW,e),e.U.subscribe("dragstart",e.Fsh,e),e.U.subscribe("dragmove",e.KsZ,e),e.U.subscribe("dragend",e.kaW,e),e.Js=e.listen("keydown",e.z0)):e.U&&(e.element.setAttribute("aria-disabled","true"),e.CX(e.Js),e.U.cancel(),e.U.dispose(),e.U=null)}; am=function(e){return e.api.T("delhi_modern_web_player")?4:e.Ng?3:2}; XjE=function(e){var N;return!((N=e.c9)==null||!N.postId)&&e.api.getPresentingPlayerType()!==2}; $M=function(e,N){g.W.call(this,{S:"button",dP:["ytp-remote-button","ytp-button"],V:{title:"Reproduzir na TV","aria-haspopup":"true","data-priority":"9"},b9:"{{icon}}"});this.C=e;this.x_=N;this.J=null;this.Y(e,"onMdxReceiversChange",this.GZ);this.Y(e,"presentingplayerstatechange",this.GZ);this.Y(e,"appresize",this.GZ);e.createClientVe(this.element,this,139118);this.GZ();this.listen("click",this.N,this);lh(e,this.element,this)}; YM=function(e,N){g.W.call(this,{S:"button",dP:["ytp-button","ytp-settings-button"],V:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":CT(),title:"Detalhes","data-tooltip-target-id":"ytp-settings-button"},W:[g.zV()]});this.C=e;this.x_=N;this.N=!0;this.listen("click",this.K);this.Y(e,"onPlaybackQualityChange",this.updateBadge);this.Y(e,"videodatachange",this.updateBadge);this.Y(e,"webglsettingschanged",this.updateBadge);this.Y(e,"appresize",this.J);lh(e,this.element,this);this.C.createClientVe(this.element, this,28663);this.updateBadge();this.J(e.Fz().getPlayerSize())}; upJ=function(e,N){e.N=!!N;e.J(e.C.Fz().getPlayerSize())}; MV=function(e,N){Oc.call(this,"Anota\u00e7\u00f5es",g.aq.vB);this.C=e;this.x_=N;this.J=!1;e.T("web_settings_menu_icons")&&this.setIcon({S:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{S:"path",V:{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.Y(e,"videodatachange",this.GZ);this.Y(e,"onApiChange",this.GZ);this.subscribe("select",this.onSelect,this);this.GZ()}; lb=function(e,N){g.Go.call(this,"Faixa de \u00e1udio",g.aq.AUDIO,e,N);this.C=e;this.tracks={};g.pi(this.element,"ytp-audio-menu-item");this.countLabel=new g.W({S:"div",W:[{S:"span",b9:"Faixa de \u00e1udio"},{S:"span",B:"ytp-menuitem-label-count",b9:"{{content}}"}]});e.T("web_settings_menu_icons")&&this.setIcon({S:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{S:"path",V:{d:"M11.72,11.93C13.58,11.59,15,9.96,15,8c0-2.21-1.79-4-4-4C8.79,4,7,5.79,7,8c0,1.96,1.42,3.59,3.28,3.93 C4.77,12.21,2,15.76,2,20h18C20,15.76,17.23,12.21,11.72,11.93z M8,8c0-1.65,1.35-3,3-3s3,1.35,3,3s-1.35,3-3,3S8,9.65,8,8z M11,12.9c5.33,0,7.56,2.99,7.94,6.1H3.06C3.44,15.89,5.67,12.9,11,12.9z M16.68,11.44l-0.48-0.88C17.31,9.95,18,8.77,18,7.5 c0-1.27-0.69-2.45-1.81-3.06l0.49-0.88C18.11,4.36,19,5.87,19,7.5C19,9.14,18.11,10.64,16.68,11.44z M18.75,13.13l-0.5-0.87 C19.95,11.28,21,9.46,21,7.5s-1.05-3.78-2.75-4.76l0.5-0.87C20.75,3.03,22,5.19,22,7.5S20.76,11.97,18.75,13.13z", fill:"white"}}]});g.Q(this,this.countLabel);g.tu(this,this.countLabel);this.Y(e,"videodatachange",this.GZ);this.Y(e,"onPlaybackAudioChange",this.GZ);this.GZ()}; Fq=function(e,N){Oc.call(this,"Reprodu\u00e7\u00e3o autom\u00e1tica",g.aq.II);this.C=e;this.x_=N;this.J=!1;this.K=[];this.Y(e,"presentingplayerstatechange",this.N);this.subscribe("select",this.onSelect,this);e.createClientVe(this.element,this,113682);this.N()}; qO3=function(e,N){g.uh.call(this,g.qU({"aria-haspopup":"false"}),0,"Mais op\u00e7\u00f5es");this.C=e;this.x_=N;this.Y(this.element,"click",this.onClick);this.x_.Gi(this)}; ZFM=function(e,N){var y;g.na(e.X())&&(y={S:"div",B:"ytp-panel-footer-content",W:[{S:"span",b9:"Ajuste a qualidade do download em "},{S:"a",B:"ytp-panel-footer-content-link",b9:"Detalhes",V:{href:"/account_downloads"}}]});g.Go.call(this,"Qualidade",g.aq.e6,e,N,void 0,void 0,y);this.C=e;this.qg={};this.D={};this.j={};this.l9=new Set;this.J=this.Z=!1;this.G="unknown";this.Ng="";this.Kh=new g.UE;g.Q(this,this.Kh);this.Z=this.C.T("web_player_use_new_api_for_quality_pullback");this.J=this.C.T("web_player_enable_premium_hbr_playback_cap"); e.T("web_settings_menu_icons")&&this.setIcon({S:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{S:"path",V:{d:"M15,17h6v1h-6V17z M11,17H3v1h8v2h1v-2v-1v-2h-1V17z M14,8h1V6V5V3h-1v2H3v1h11V8z M18,5v1h3V5H18z M6,14h1v-2v-1V9H6v2H3v1 h3V14z M10,12h11v-1H10V12z",fill:"white"}}]});g.pi(this.N.element,"ytp-quality-menu");this.Y(e,"videodatachange",this.m2);this.Y(e,"videoplayerreset",this.m2);this.Y(e,"onPlaybackQualityChange",this.VX);this.m2();e.createClientVe(this.element,this,137721)}; jHn=function(e,N,y){var w=e.qg[N],E=g.q5[N];return xn0(e,w?w.qualityLabel:E?E+"p":"Autom\u00e1tico",N,y)}; nWJ=function(e,N,y,w,E){var A=(N=e.J?e.j[N]:e.D[N])&&N.quality,T=N&&N.qualityLabel;T=T?T:"Autom\u00e1tico";w&&(T="("+T);e=xn0(e,T,A||"",E);w&&e.W.push(")");(w=(w=N&&N.paygatedQualityDetails)&&w.paygatedIndicatorText)&&y&&e.W.push({S:"div",B:"ytp-premium-label",b9:w});return e}; xn0=function(e,N,y,w){N={S:"span",dP:w,W:[N]};var E;w="ytp-swatch-color";if(e.Z||e.J)w="ytp-swatch-color-white";y==="highres"?E="8K":y==="hd2880"?E="5K":y==="hd2160"?E="4K":y.indexOf("hd")===0&&y!=="hd720"&&(E="HD");E&&(N.W.push(" "),N.W.push({S:"sup",B:w,b9:E}));return N}; S8=function(e,N,y,w,E){var A={S:"div",B:"ytp-input-slider-section",W:[{S:"input",B:"ytp-input-slider",V:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};E&&A.W.unshift(E);g.W.call(this,A);this.K=e;this.j=N;this.Z=y;this.initialValue=w;this.header=E;this.J=this.hW("ytp-input-slider");this.N=w?w:e;this.init();this.Y(this.J,"input",this.G)}; mnH=function(e,N){e.N=N;e.updateValue("slidervalue",e.N);e.J.valueAsNumber=e.N;QHH(e,N)}; QHH=function(e,N){e.J.style.setProperty("--yt-slider-shape-gradient-percent",(N-e.K)/(e.j-e.K)*100+"%")}; o5=function(e){S8.call(this,e.getAvailablePlaybackRates()[0],e.getAvailablePlaybackRates()[e.getAvailablePlaybackRates().length-1],.05,e.getPlaybackRate(),{S:"div",B:"ytp-speedslider-indicator-container",W:[{S:"div",B:"ytp-speedslider-badge"},{S:"p",B:"ytp-speedslider-text"}]});this.C=e;this.D=HB9(this.Kh,this);g.pi(this.J,"ytp-speedslider");this.U=this.hW("ytp-speedslider-text");this.l9=this.hW("ytp-speedslider-badge");HF5(this);this.Y(this.J,"change",this.qg);this.Y(this.J,"keydown",this.Ng)}; HF5=function(e){e.U.textContent=e.N+"x";e.l9.classList.toggle("ytp-speedslider-premium-badge",e.N>2&&e.C.T("enable_web_premium_varispeed"))}; bb=function(e,N,y,w,E,A,T){g.W.call(this,{S:"div",B:"ytp-slider-section",V:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},W:[{S:"div",B:"ytp-slider",W:[{S:"div",B:"ytp-slider-handle"}]}]});this.U=e;this.D=N;this.N=y;this.K=w;this.Ng=E;this.i9=A;this.range=this.K-this.N;this.Rq=this.hW("ytp-slider-section");this.j=this.hW("ytp-slider");this.Kh=this.hW("ytp-slider-handle");this.G=new g.sd(this.j, !0);this.J=T?T:y;g.Q(this,this.G);this.G.subscribe("dragmove",this.S6,this);this.Y(this.element,"keydown",this.dH);this.Y(this.element,"wheel",this.c$);this.init()}; hU=function(e){bb.call(this,.05,.05,e.getAvailablePlaybackRates()[0],e.getAvailablePlaybackRates()[e.getAvailablePlaybackRates().length-1],150,20,e.getPlaybackRate());this.C=e;this.Z=g.sA("P");this.l9=HB9(this.qg,this);g.pi(this.j,"ytp-speedslider");g.pi(this.Z,"ytp-speedslider-text");e=this.Z;var N=this.j;N.parentNode&&N.parentNode.insertBefore(e,N.nextSibling);KgE(this);this.Y(this.C,"onPlaybackRateChange",this.updateValues)}; KgE=function(e){e.Z.textContent=WgJ(e,e.J)+"x"}; WgJ=function(e,N){e=Number(g.Ja(N,e.N,e.K).toFixed(2));N=Math.floor((e+.001)*100%5+2E-15);var y=e;N!==0&&(y=e-N*.01);return Number(y.toFixed(2))}; OFP=function(e){g.Mu.call(this,{S:"div",B:"ytp-speedslider-component"});e.T("web_settings_use_input_slider")?this.J=new o5(e):this.J=new hU(e);g.Q(this,this.J);this.element.appendChild(this.J.element)}; RUn=function(e){var N=new OFP(e);ZN.call(this,e,N,"Personalizado");g.Q(this,N)}; GAF=function(e,N){var y=new RUn(e);g.Go.call(this,"Velocidade da reprodu\u00e7\u00e3o",g.aq.Ve,e,N,cK(e)?void 0:"Personalizado",cK(e)?void 0:function(){g.Q_(N,y)}); var w=this;this.Z=!1;g.Q(this,y);this.G=new o5(e);g.Q(this,this.G);e.T("web_settings_menu_icons")&&this.setIcon({S:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{S:"path",V:{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.C=e;this.Z=!1;this.Ng=null;cK(e)?(this.J=g.SO("Personalizado ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.C.getPlaybackRate().toString()}),this.j=this.C.getPlaybackRate()):this.j=this.J=null;this.D=this.C.getAvailablePlaybackRates();this.Y(e,"presentingplayerstatechange",this.GZ);var E;((E=this.C.getVideoData())==null?0:E.Au())&&this.Y(e,"serverstitchedvideochange",this.GZ);this.Y(this.G.J,"change",function(){w.Z=!0;w.GZ()}); this.GZ()}; Lg9=function(e,N){var y=UnH(N);e.J&&(e.Z||N===e.j)?(e.BI(e.J),e.Ja(N.toString())):e.BI(y)}; aI5=function(e){e.Pc(e.D.map(UnH));e.J=null;e.j=null;var N=e.C.getPlaybackRate();if(!e.D.includes(N)||cK(e.C))sHH(e,N),e.BI(e.J)}; sHH=function(e,N){e.j=N;e.J=g.SO("Personalizado ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:N.toString()});N=e.D.map(UnH);N.unshift(e.J);e.Pc(N)}; UnH=function(e){return e.toString()}; cK=function(e){return e.T("web_settings_menu_surface_custom_playback")}; e2E=function(e){return e.T("web_settings_menu_surface_custom_playback")&&e.T("web_settings_use_input_slider")}; yB0=function(e,N,y,w){var E=new g.x7(N,void 0,"Modifica\u00e7\u00e3o do v\u00eddeo");g.Go.call(this,w.text||"",e,N,y,"Modifica\u00e7\u00e3o do v\u00eddeo",function(){g.Q_(y,E)}); var A=this;g.pi(this.element,"ytp-subtitles-options-menu-item");this.setting=w.option.toString();e=w.options;this.settings=g.l7(e,this.MN,this);this.Z=E;g.Q(this,this.Z);N=new g.uh({S:"div",B:"ytp-menuitemtitle",b9:"Permitir um estilo de legenda diferente se especificado pelo v\u00eddeo."},0);g.Q(this,N);this.Z.Gi(N,!0);this.j=new g.uh({S:"div",B:"ytp-menuitem",V:{role:"menuitemradio",tabindex:"0"},W:[{S:"div",B:"ytp-menuitem-label",b9:"Ativ."}]},-1);g.Q(this,this.j);this.Z.Gi(this.j,!0);this.Y(this.j.element, "click",function(){N7F(A,!0)}); this.J=new g.uh({S:"div",B:"ytp-menuitem",V:{role:"menuitemradio",tabindex:"0"},W:[{S:"div",B:"ytp-menuitem-label",b9:"Desat"}]},-2);g.Q(this,this.J);this.Z.Gi(this.J,!0);this.Y(this.J.element,"click",function(){N7F(A,!1)}); this.Pc(g.dn(e,this.MN))}; N7F=function(e,N){e.publish("settingChange",e.setting+"Override",!N);e.x_.z4()}; kM=function(e,N){g.x7.call(this,e,void 0,"Op\u00e7\u00f5es");var y=this;this.mO={};for(var w=0;w=0);if(!(N<0||N===e.j)){e.j=N;N=243*e.scale;var y=141*e.scale,w=NjM(e.N,e.j,N);Dr5(e.bg,w,N,y,!0);e.qg.start()}}; iSn=function(e){var N=e.J;e.type===3&&e.l9.stop();e.api.removeEventListener("appresize",e.Kh);e.D||N.setAttribute("title",e.K);e.K="";e.J=null;e.updateValue("keyBoardShortcut","")}; gZ_=function(e){g.W.call(this,{S:"button",dP:["ytp-watch-later-button","ytp-button"],V:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.hR(e.X()))},W:[{S:"div",B:"ytp-watch-later-icon",b9:"{{icon}}"},{S:"div",B:"ytp-watch-later-title",b9:"Assistir mais tarde"}]});this.C=e;this.icon=null;this.visible=this.isRequestPending=this.J=!1;gF1(e);e.createClientVe(this.element,this,28665);this.listen("click",this.onClick,this);this.Y(e,"videoplayerreset",this.onReset);this.Y(e, "appresize",this.YW);this.Y(e,"videodatachange",this.YW);this.Y(e,"presentingplayerstatechange",this.YW);this.YW();e=this.C.X();var N=g.qI("yt-player-watch-later-pending");e.j&&N?(BXM(),DS3(this)):this.GZ(2);g.Y1(this.element,"ytp-show-watch-later-title",g.hR(e));lh(this.C,this.element,this)}; VsP=function(e){var N=e.C.getPlayerSize(),y=e.C.X(),w=e.C.getVideoData(),E=g.hR(y)&&g.cb(e.C)&&g.G(e.C.getPlayerStateObject(),128),A=y.K;return y.DD&&N.width>=240&&!w.isAd()&&w.DD&&!E&&!g.KX(w)&&!e.C.isEmbedsShortsMode()&&!A}; fBM=function(e,N){er1(g.ud(e.C.X()),"wl_button",function(){BXM({videoId:N});window.location.reload()})}; DS3=function(e){if(!e.isRequestPending){e.isRequestPending=!0;e.GZ(3);var N=e.C.getVideoData();N=e.J?N.removeFromWatchLaterCommand:N.addToWatchLaterCommand;var y=e.C.WI(),w=e.J?function(){e.J=!1;e.isRequestPending=!1;e.GZ(2);e.C.X().G&&e.C.Mg("WATCH_LATER_VIDEO_REMOVED")}:function(){e.J=!0; e.isRequestPending=!1;e.GZ(1);e.C.X().N&&e.C.AE(e.element);e.C.X().G&&e.C.Mg("WATCH_LATER_VIDEO_ADDED")}; Oq(y,N).then(w,function(){e.isRequestPending=!1;e.GZ(4,"Ocorreu um erro. Tente novamente mais tarde.");e.C.X().G&&e.C.Mg("WATCH_LATER_ERROR","Ocorreu um erro. Tente novamente mais tarde.")})}}; ts5=function(e,N){if(N!==e.icon){switch(N){case 3:var y=LD();break;case 1:y=bj();break;case 2:y={S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{S:"path",Az:!0,B:"ytp-svg-fill",V:{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:y={S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{S:"path", Az:!0,V:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}e.updateValue("icon",y);e.icon=N}}; g.tU=function(){g.sN.apply(this,arguments);this.GQ=(this.cF=g.hR(this.api.X()))&&(this.api.X().N||yf()||eu());this.Lb=48;this.Th=69;this.D8=this.nw=null;this.Yl=[];this.rM=this.oV=this.L0=this.X9=this.XS=null;this.HK=[];this.contextMenu=this.NS=this.overflowButton=this.Lw=this.rQ=this.searchButton=this.copyLinkButton=this.shareButton=this.v_=this.ax=this.title=this.channelAvatar=this.jm=this.tooltip=null;this.h_=!1;this.Cu=this.Gv=this.SS=this.dG=null;this.wZ=this.We=this.vX=!1}; ui0=function(e){var N=e.api.X(),y=g.G(e.api.getPlayerStateObject(),128);return N.j&&y&&!e.api.isFullscreen()}; q6E=function(e){if(e.xx()&&!e.api.isEmbedsShortsMode()&&e.Lw){var N=e.api.T("web_player_hide_overflow_button_if_empty_menu");!e.v_||N&&!VsP(e.v_)||NV1(e.Lw,e.v_);!e.shareButton||N&&!$r5(e.shareButton)||NV1(e.Lw,e.shareButton);!e.copyLinkButton||N&&!F8M(e.copyLinkButton)||NV1(e.Lw,e.copyLinkButton)}else{if(e.Lw){N=e.Lw;for(var y=g.c(N.actionButtons),w=y.next();!w.done;w=y.next())w.value.detach();N.actionButtons=[]}e.searchButton&&!g.Ex(e.ax.element,e.searchButton.element)&&e.searchButton.yB(e.ax.element); e.v_&&!g.Ex(e.ax.element,e.v_.element)&&e.v_.yB(e.ax.element);e.shareButton&&!g.Ex(e.ax.element,e.shareButton.element)&&e.shareButton.yB(e.ax.element);e.copyLinkButton&&!g.Ex(e.ax.element,e.copyLinkButton.element)&&e.copyLinkButton.yB(e.ax.element)}}; ZSs=function(e,N,y){N=y?N.lastElementChild:N.firstElementChild;for(var w=null;N;){if(lG(N,"display")!=="none"&&N.getAttribute("aria-hidden")!=="true"){var E=void 0;N.tabIndex>=0?E=N:E=ZSs(e,N,y);E&&(w?y?E.tabIndex>w.tabIndex&&(w=E):E.tabIndexw/1E3+1)return{msg:"in-the-past"};if(A.isLivePlayback&&!isFinite(w))return{msg:"live-infinite"};(w=N.LC())&&w.isView()&&(w=w.mediaElement);if(w&&w.JP().length>12&&g.$I(E))return{msg:"played-ranges"};if(!E.K)return null;if(!T)return{msg:"no-pvd-formats"};if(!E.K.J||!T.J)return{msg:"non-dash"};w=T.videoInfos[0];var p=E.K.videoInfos[0];e.G&&Rf(A)&&(w=N.fI(),p= y.fI());if(!w||!p)return{msg:"no-video-info"};if(e.K&&(Kd(w)||Kd(p)))return{msg:"av1"};N=e.J&&A.e_()&&Zo();if(p.containerType!==w.containerType)if(N)A.Fh("sgap",{ierr:"container"});else return{msg:"container"};if(e.N&&!N&&(p.Iq!==w.Iq||p.Iq===""||w.Iq===""))return{msg:"codec"};if(e.j&&p.video&&w.video&&Math.abs(p.video.width/p.video.height-w.video.width/w.video.height)>.01)return{msg:"ratio"};if(g.$I(A)&&g.$I(E))return{msg:"content-protection"};T=T.J[0];E=E.K.J[0];y=T.audio;var C=E.audio;if(y.sampleRate!== C.sampleRate&&!g.i$)if(N)A.Fh("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:T.itag,cr:y.sampleRate,ni:E.itag,nr:C.sampleRate};return(y.numChannels||2)!==(C.numChannels||2)?{msg:"channel-count"}:e.L&&A.e_()&&w.video.fps!==p.video.fps?{msg:"fps"}:null}; QSE=function(e,N,y){var w=e.getVideoData(),E=N.getVideoData();if(!w.X().supportsGaplessShorts())return{nq:"env"};if(y.Z){if(w.IV&&!w.isAd()||E.IV&&!E.isAd())return{nq:"autoplay"}}else if(w.IV||E.IV)return{nq:"autoplay"};if(!w.U)return{nq:"client"};if(!e.xB())return{nq:"no-empty"};e=nZH(y,e,N,Infinity);return e!=null?{nq:e.msg}:null}; Zt=function(e){g.x.call(this);this.app=e;this.L=this.j=this.N=this.J=null;this.K=1;this.events=new g.fd(this);this.events.Y(this.app.Lh,g.TW("gaplessshortslooprange"),this.U);g.Q(this,this.events)}; mS3=function(){this.j=this.Z=this.K=this.G=this.L=this.N=this.J=!1}; HSP=function(e){var N=new mS3;N.J=e.T("h5_gapless_support_types_diff");N.L=e.T("h5_gapless_error_on_fps_diff");N.G=e.T("html5_gapless_use_format_info_fix");N.K=e.T("html5_gapless_disable_on_av1")&&!e.T("html5_gapless_enable_on_av1");N.N=e.T("html5_gapless_check_codec_diff_strictly");N.Z=e.T("html5_gapless_on_ad_autoplay");N.j=e.T("html5_gapless_disable_diff_aspect_radio");return N}; g.xM=function(e,N,y,w){w=w===void 0?!1:w;R8.call(this);this.mediaElement=e;this.start=N;this.end=y;this.J=w}; KNM=function(e,N,y,w,E,A){A=A===void 0?0:A;g.x.call(this);var T=this;this.policy=e;this.J=N;this.N=y;this.nX=E;this.L=A;this.j=this.K=null;this.currentVideoDuration=this.Z=-1;this.G=!1;this.P7=new O3;this.iZ=w-N.w7()*1E3;this.P7.then(void 0,function(){}); this.timeout=new g.e6(function(){T.zS("timeout")},1E4); g.Q(this,this.timeout);this.U=isFinite(w);this.status={status:0,error:null}}; R29=function(e){var N,y,w,E,A,T,p,C,r,Y;return g.f(function(M){if(M.J==1){if(e.Ss())return M.return(Promise.reject(Error(e.status.error||"disposed")));e.timeout.start();N=g.j8.X0();return g.D(M,e.P7,2)}g.j8.x$("gtfta",N);y=e.J.LC();if(y.isEnded())return e.zS("ended_in_finishTransition"),M.return(Promise.reject(Error(e.status.error||"")));if(!e.j||!nh(e.j))return e.zS("next_mse_closed"),M.return(Promise.reject(Error(e.status.error||"")));if(e.N.E$()!==e.j)return e.zS("next_mse_mismatch"),M.return(Promise.reject(Error(e.status.error|| "")));w=WNM(e);E=w.Qo;A=w.Bt;T=w.Vo;e.J.s_(!1,!0);p=OS9(y,E,T,!e.N.getVideoData().isAd());e.N.setMediaElement(p);(C=e.J.NZ())&&e.N.Wm(C.ql,C.OD);e.U&&(e.N.seekTo(e.N.getCurrentTime()+.001,{l8:!0,FM:3,BY:"gapless_pseudo"}),p.play(),u4());r=y.N7();r.cpn=e.J.getVideoData().clientPlaybackNonce;r.st=""+E;r.et=""+T;e.N.Fh("gapless",r);e.J.Fh("gaplessTo",{cpn:e.N.getVideoData().clientPlaybackNonce});Y=e.J.getPlayerType()===e.N.getPlayerType();e.J.Bu(A,!0,!1,Y,e.N.getVideoData().clientPlaybackNonce);e.N.Bu(e.N.getCurrentTime(), !0,!0,Y,e.J.getVideoData().clientPlaybackNonce);e.N.p4();g.Jo(function(){!e.N.getVideoData().qg&&e.N.getPlayerState().isOrWillBePlaying()&&e.N.oi()}); nU(e,6);e.dispose();return M.return(Promise.resolve())})}; sS9=function(e){if(e.N.getVideoData().K){var N=e.nX.X().T("html5_gapless_suspend_next_loader")&&e.L===1;e.N.KH(e.j,N,GLM(e));nU(e,3);USH(e);var y=LNP(e);N=y.Sr;y=y.Oi;N.subscribe("updateend",e.Hv,e);y.subscribe("updateend",e.Hv,e);e.Hv(N);e.Hv(y)}}; USH=function(e){e.J.unsubscribe("internalvideodatachange",e.Yo,e);e.N.unsubscribe("internalvideodatachange",e.Yo,e);e.nX.X().T("html5_gapless_use_format_info_fix")&&(e.J.unsubscribe("internalvideoformatchange",e.Yo,e),e.N.unsubscribe("internalvideoformatchange",e.Yo,e));e.J.unsubscribe("mediasourceattached",e.Yo,e);e.N.unsubscribe("statechange",e.Dt,e)}; OS9=function(e,N,y,w){e=e.isView()?e.mediaElement:e;return new g.xM(e,N,y,w)}; nU=function(e,N){N<=e.status.status||(e.status={status:N,error:null},N===5&&e.P7.resolve())}; GLM=function(e){return e.nX.X().T("html5_gapless_no_clear_buffer_timeline")&&e.L===1&&L3(e.J.getVideoData())}; WNM=function(e){var N=e.J.LC();N=N.isView()?N.start:0;var y=e.J.getVideoData().isLivePlayback?Infinity:e.J.jo(!0);y=Math.min(e.iZ/1E3,y)+N;var w=e.U?100:0;e=y-e.N.eN()+w;return{A5:N,Qo:e,Bt:y,Vo:Infinity}}; LNP=function(e){return{Sr:e.K.J.KC,Oi:e.K.N.KC}}; Qq=function(e){g.x.call(this);var N=this;this.app=e;this.L=this.N=this.J=null;this.U=!1;this.K=this.j=null;this.G=HSP(this.app.X());this.Z=function(){g.Jo(function(){aBF(N)})}}; eIM=function(e,N,y,w,E){w=w===void 0?0:w;E=E===void 0?0:E;e.xB()||mY(e);e.j=new O3;e.J=N;var A=y,T=E===0;T=T===void 0?!0:T;var p=e.app.nh(),C=p.getVideoData().isLivePlayback?Infinity:p.jo(!0)*1E3;A>C&&(A=C-200,e.U=!0);T&&p.getCurrentTime()>=A/1E3?e.Z():(e.N=p,T&&(T=A,A=e.N,e.app.Lh.addEventListener(g.AA("vqueued"),e.Z),T=isFinite(T)||T/1E3>A.getDuration()?T:0x8000000000000,e.L=new g.wF(T,0x8000000000000,{namespace:"vqueued"}),A.addCueRange(e.L)));T=w/=1E3;A=N.getVideoData().J;w&&A&&e.N&&(p=w,C=0, N.getVideoData().isLivePlayback&&(T=Math.min(y/1E3,e.N.jo(!0)),C=Math.max(0,T-e.N.getCurrentTime()),p=Math.min(w,N.jo()+C)),T=Oh_(A,p)||w,T!==w&&e.J.Fh("qvaln",{st:w,at:T,rm:C,ct:p}));N=T;w=e.J;w.getVideoData().NK=!0;w.getVideoData().U=!0;w.xN(!0);A={};e.N&&(A=e.N.wS(),T=e.N.getVideoData().clientPlaybackNonce,A={crt:(A*1E3).toFixed(),cpn:T});w.Fh("queued",A);N!==0&&w.seekTo(N+.01,{l8:!0,FM:3,BY:"videoqueuer_queued"});e.K=new KNM(e.G,e.app.nh(),e.J,y,e.app,E);y=e.K;y.status.status!==Infinity&&(nU(y, 1),y.J.subscribe("internalvideodatachange",y.Yo,y),y.N.subscribe("internalvideodatachange",y.Yo,y),y.nX.X().T("html5_gapless_use_format_info_fix")&&(y.J.subscribe("internalvideoformatchange",y.Yo,y),y.N.subscribe("internalvideoformatchange",y.Yo,y)),y.J.subscribe("mediasourceattached",y.Yo,y),y.N.subscribe("statechange",y.Dt,y),y.J.subscribe("newelementrequired",y.u4,y),y.Yo());return e.j}; aBF=function(e){var N,y,w,E,A,T,p,C,r;g.f(function(Y){switch(Y.J){case 1:if(e.Ss()||!e.j||!e.J)return Y.return();e.U&&e.app.nh().U7(!0,!1);y=e.app.X().T("html5_force_csdai_gapful_transition")&&((N=e.app.nh())==null?void 0:N.getVideoData().isDaiEnabled());w=null;if(!e.K||y){Y.u9(2);break}g.c5(Y,3);return g.D(Y,R29(e.K),5);case 5:g.B5(Y,2);break;case 3:w=E=g.XH(Y);case 2:if(!e.J)return Y.return();g.j8.le("vqsp",function(){e.app.w1(e.J)}); if(!e.J)return Y.return();A=e.J.LC();e.app.X().T("html5_gapless_seek_on_negative_time")&&A&&A.getCurrentTime()<-.01&&e.J.seekTo(0);g.j8.le("vqpv",function(){e.app.playVideo()}); if(w||y)e.J?(T=w?w.message:"forced",(p=e.N)==null||p.Fh("gapfulfbk",{r:T}),e.J.E1(T)):(C=e.N)==null||C.Fh("gapsp",{});r=e.j;mY(e);r&&r.resolve();return Y.return(Promise.resolve())}})}; mY=function(e,N){N=N===void 0?!1:N;if(e.N){if(e.L){var y=e.N;e.app.Lh.removeEventListener(g.AA("vqueued"),e.Z);y.removeCueRange(e.L)}e.N=null;e.L=null}e.K&&(e.K.status.status!==6&&(y=e.K,y.status.status!==Infinity&&y.L!==1&&y.zS("Canceled")),e.K=null);e.j=null;e.J&&!N&&e.J!==e.app.NU()&&e.J!==e.app.nh()&&Ov(e.J);e.J&&N&&e.J.IN();e.J=null;e.U=!1}; Nfn=function(e){var N;return((N=e.K)==null?void 0:N.currentVideoDuration)||-1}; yNM=function(e,N,y){if(e.xB())return"qie";if(e.J==null||e.J.JW.Ss()||e.J.getVideoData()==null)return"qpd";if(N.videoId!==e.J.vE())return"vinm";if(Nfn(e)<=0)return"ivd";if(y!==1)return"upt";if((y=e.K)==null)e=void 0;else if(y.getStatus().status!==5)e="niss";else if(nZH(y.policy,y.J,y.N,y.iZ)!=null)e="pge";else{N=LNP(y);e=N.Sr;var w=N.Oi;N=g.Y2(y.nX.X().experiments,"html5_shorts_gapless_next_buffer_in_seconds");y=y.Z+N;w=AX(w.Ju(),y);e=AX(e.Ju(),y);e=!(N>0)||w&&e?null:"neb"}return e!=null?e:null}; wJE=function(){g.pT.call(this);var e=this;this.fullscreen=0;this.j=this.K=this.pictureInPicture=this.J=this.N=this.inline=!1;this.L=function(){e.iP()}; Een(this.L);this.Z=this.getVisibilityState(this.ox(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.Wp(),this.j3(),this.ly(),this.gN())}; bw=function(e){return!(e.isMinimized()||e.isInline()||e.isBackground()||e.Wp()||e.j3()||e.ly()||e.gN())}; Eo3=function(e,N){g.x.call(this);this.K=this.j=null;this.J=e;this.N=N}; CT9=function(e){var N=e.experiments,y=N.gP.bind(N);ANP=y("html5_use_async_stopVideo");TfP=y("html5_pause_for_async_stopVideo");JNE=y("html5_not_reset_media_source");y("html5_listen_for_audio_output_changed")&&(dEJ=!0);Qc=y("html5_not_reset_media_source");pJs=y("html5_not_reset_media_source");$H=y("html5_retain_source_buffer_appends_for_debugging");RNs=y("web_enable_auto_pip")||y("web_enable_pip_on_miniplayer");y("html5_mediastream_applies_timestamp_offset")&&(Cr=!0);var w=g.Y2(N,"html5_cobalt_override_quic"); w&&PG("QUIC",+(w>0));(w=g.Y2(N,"html5_cobalt_audio_write_ahead_ms"))&&PG("Media.AudioWriteDurationLocal",w);(w=y("html5_cobalt_enable_decode_to_texture"))&&PG("Media.PlayerConfiguration.DecodeToTexturePreferred",w?1:0);(e.B9()||y("html5_log_cpu_info"))&&eM_();Error.stackTraceLimit=50;var E=g.Y2(N,"html5_idle_rate_limit_ms");E&&Object.defineProperty(window,"requestIdleCallback",{value:function(A){return window.setTimeout(A,E)}}); BY3(e.L);Fy=y("html5_use_ump_request_slicer");Yj5=y("html5_record_now");y("html5_disable_streaming_xhr")&&(QY=!1);y("html5_byterate_constraints")&&(Gm=!0);y("html5_use_non_active_broadcast_for_post_live")&&(Z$=!0);y("html5_sunset_aac_high_codec_family")&&(nd["141"]="a")}; rNE=function(e){return e.slice(12).replace(/_[a-z]/g,function(N){return N.toUpperCase().replace("_","")}).replace("Dot",".")}; $FJ=function(e){var N={},y;for(y in e.experiments.flags)if(y.startsWith("cobalt_h5vcc")){var w=rNE(y),E=g.Y2(e.experiments,y);w&&E&&(N[w]=PG(w,E))}return N}; HK=function(e,N,y,w,E){E=E===void 0?[]:E;g.x.call(this);this.ph=e;this.GW=N;this.j=y;this.segments=E;this.J=void 0;this.N=new Map;E.length&&(this.J=E[0])}; YX5=function(e){if(!(e.segments.length<2)){var N=e.segments.shift();if(N){var y=N.J,w=[];if(y.size){y=g.c(y.values());for(var E=y.next();!E.done;E=y.next()){E=g.c(E.value);for(var A=E.next();!A.done;A=E.next()){A=A.value;for(var T=g.c(A.segments),p=T.next();!p.done;p=T.next())(p=KU(p.value))&&w.push(p);A.removeAll()}}}(y=KU(N))&&w.push(y);w=g.c(w);for(y=w.next();!y.done;y=w.next())e.N.delete(y.value);N.dispose()}}}; WK=function(e,N,y,w){if(!e.J||N>y)return!1;N=new HK(e.ph,N,y,e.J,w);w=g.c(w);for(y=w.next();!y.done;y=w.next()){y=y.value;var E=KU(y);E&&E!==KU(e.J)&&e.N.set(E,[y])}e=e.J;e.J.has(N.EY())?e.J.get(N.EY()).push(N):e.J.set(N.EY(),[N]);return!0}; Nt=function(e,N){return e.N.get(N)}; MhP=function(e,N,y){e.N.set(N,y)}; OD=function(e,N,y,w,E,A){return new lEs(y,y+(w||0),!w,N,e,E,A)}; lEs=function(e,N,y,w,E,A,T){g.x.call(this);this.GW=e;this.K=N;this.N=y;this.type=w;this.j=E;this.videoData=A;this.Jv=T;this.J=new Map;rd(A)}; KU=function(e){return e.videoData.clientPlaybackNonce}; FBM=function(e){if(e.J.size)for(var N=g.c(e.J.values()),y=N.next();!y.done;y=N.next()){y=g.c(y.value);for(var w=y.next();!w.done;w=y.next())w.value.dispose()}e.J.clear()}; SX9=function(e){this.end=this.start=e}; g.R5=function(){this.J=new Map;this.K=new Map;this.N=new Map}; g.GT=function(e,N,y,w){g.x.call(this);var E=this;this.api=e;this.ph=N;this.playback=y;this.app=w;this.aq=new g.R5;this.N=new Map;this.Z=[];this.L=[];this.K=new Map;this.pX=new Map;this.Ng=new Map;this.Wk=null;this.Xz=NaN;this.dT=this.Y_=null;this.SR=new g.e6(function(){ooE(E,E.Xz,E.Y_||void 0)}); this.events=new g.fd(this);this.a9=15E3;this.qg=new g.e6(function(){E.Rq=!0;E.playback.L4(E.a9);b0E(E);E.tP(!1)},this.a9); this.Rq=!1;this.G=new Map;this.Kx=[];this.Kh=null;this.jp=new Set;this.Zl=[];this.FZ=[];this.U2=[];this.LX=[];this.J=void 0;this.l9=0;this.Bk=!0;this.D=!1;this.Et=[];this.VB=new Set;this.NK=new Set;this.CC=new Set;this.Bp=0;this.Ut=new Set;this.PY=0;this.g2=this.jn=!1;this.hM=this.j="";this.Dl=null;this.lk={Vgg:function(){return E.N}, fFg:function(){return E.Z}, Qps:function(){return E.K}, nY:function(A){E.onCueRangeEnter(E.N.get(A))}, X2P:function(A){E.onCueRangeExit(E.N.get(A))}, K_1:function(A,T){E.N.set(A,T)}, fvW:function(A){E.hM=A}, Rp:function(){return E.Rp()}, MgG:function(A){return E.Ng.get(A)}}; this.playback.getPlayerType();this.playback.iG(this);this.i9=this.ph.B9();g.Q(this,this.SR);g.Q(this,this.events);g.Q(this,this.qg);this.events.Y(this.api,g.AA("serverstitchedcuerange"),this.onCueRangeEnter);this.events.Y(this.api,g.TW("serverstitchedcuerange"),this.onCueRangeExit)}; BfJ=function(e,N,y,w,E,A,T,p){var C=hIE(e,A,A+E);e.Rq&&e.playback.Fh("sdai",{adaftto:1});y||e.playback.Fh("sdai",{missadcon:1,enter:A,len:E,aid:p});e.U&&!e.U.Lo&&(e.U.Lo=p);e.g2&&e.playback.Fh("sdai",{adfbk:1,enter:A,len:E,aid:p});var r=e.playback;T=T===void 0?A+E:T;A===T&&!E&&e.ph.T("html5_allow_zero_duration_ads_on_timeline")&&e.playback.Fh("sdai",{attl0d:1});A>T&&UD(e,{reason:"enterTime_greater_than_return",GW:A,OQ:T});var Y=r.Ti()*1E3;Ar&&UD(e,{reason:"parent_return_greater_than_content_duration",OQ:T,UYh:r});r=null;Y=g.T7(e.L,{OQ:A},function(M,l){return M.OQ-l.OQ}); Y>=0&&(r=e.L[Y],r.OQ>A&&cNs(e,N.video_id||"",A,T,r));if(C&&r)for(Y=0;Y.5&&e.playback.Fh("sdai",{ttdtb:1,delta:T,cpn:E.cpn,enter:N.adCpn,exit:y.adCpn,seek:w,skip:A});e.api.T("html5_ssdai_enable_media_end_cue_range")&&e.api.iX();if(N.isAd&&y.isAd){E=!!A;if(N.adCpn&&y.adCpn){var p=e.K.get(N.adCpn);var C=e.K.get(y.adCpn)}E?e.playback.Fh("sdai",{igtransskip:1,enter:N.adCpn,exit:y.adCpn,seek:w,skip:A}):eo(e,C,p,y.Ix,N.Ix,w,E)}else if(!N.isAd&&y.isAd){e.hM=E.cpn;e.api.publish("serverstitchedvideochange"); p=sD(e,"a2c");e.playback.Fh("sdai",p);e.Bp=0;if(p=y.y6)e.l9=p.end;var r;y.adCpn&&(r=e.K.get(y.adCpn));r&&e.playback.T5(r,E,y.Ix,N.Ix,w,!!A)}else if(N.isAd&&!y.isAd){var Y;N.adCpn&&(Y=e.K.get(N.adCpn));Y&&(e.l9=0,e.hM=Y.cpn,a5(e,Y),r=sD(e,"c2a",Y),e.playback.Fh("sdai",r),e.Bp=1,e.playback.T5(E,Y,y.Ix,N.Ix,w,!!A))}}; yi=function(e,N,y){y=y===void 0?0:y;var w=g.T7(e.L,{GW:(N+y)*1E3},function(p,C){return p.GW-C.GW}); w=w<0?(w+2)*-1:w;if(w>=0)for(var E=N*1E3,A=w;A<=w+1&&A=T.GW-y*1E3&&E<=T.OQ+y*1E3)return{Lc:T,Xs:N}}return{Lc:void 0,Xs:N}}; PTE=function(e,N){var y="";(N=XJn(e,N))&&(y=N.getId());return y?e.K.get(y):void 0}; XJn=function(e,N){if(e.hM){var y=e.N.get(e.hM);if(y&&y.start-200<=N&&y.end+200>=N)return y}e=g.c(e.N.values());for(y=e.next();!y.done;y=e.next())if(y=y.value,y.start<=N&&y.end>=N)return y}; ooE=function(e,N,y){var w=e.dT||e.app.nh().getPlayerState();wl(e,!0);e.playback.seekTo(N,y);e=e.app.nh();N=e.getPlayerState();w.isOrWillBePlaying()&&!N.isOrWillBePlaying()?e.playVideo():w.isPaused()&&!N.isPaused()&&e.pauseVideo()}; wl=function(e,N){e.Xz=NaN;e.Y_=null;e.SR.stop();e.Wk&&N&&e.Wk.yr();e.dT=null;e.Wk=null}; dF0=function(e){var N=N===void 0?-1:N;var y=y===void 0?Infinity:y;for(var w=[],E=g.c(e.L),A=E.next();!A.done;A=E.next())A=A.value,(A.GWy)&&w.push(A);e.L=w;w=g.c(e.N.values());for(E=w.next();!E.done;E=w.next())E=E.value,E.start>=N&&E.end<=y&&(e.playback.removeCueRange(E),e.N.delete(E.getId()),e.playback.Fh("sdai",{rmAdCR:1}));w=yi(e,N/1E3);N=w.Lc;w=w.Xs;if(N&&(w=w*1E3-N.GW,E=N.GW+w,N.durationMs=w,N.OQ=E,w=e.N.get(N.cpn))){E=g.c(e.Z);for(A=E.next();!A.done;A=E.next())A=A.value,A.start===w.end? A.start=N.GW+N.durationMs:A.end===w.start&&(A.end=N.GW);w.start=N.GW;w.end=N.GW+N.durationMs}if(N=yi(e,y/1E3).Lc){var T;w="playback_timelinePlaybackId_"+N.FS+"_video_id_"+((T=N.videoData)==null?void 0:T.videoId)+"_durationMs_"+N.durationMs+"_enterTimeMs_"+N.GW+"_parentReturnTimeMs_"+N.OQ;e.iR("Invalid_clearEndTimeMs_"+y+"_that_falls_during_"+w+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; IE5=function(e){e.aq.clearAll();e.N.clear();e.Z=[];e.L=[];e.K.clear();e.pX.clear();e.Ng.clear();e.G.clear();e.Kx=[];e.Kh=null;e.jp.clear();e.Zl=[];e.FZ=[];e.U2=[];e.LX=[];e.Et=[];e.VB.clear();e.NK.clear();e.CC.clear();e.Ut.clear();e.Rq=!1;e.J=void 0;e.l9=0;e.Bk=!0;e.D=!1;e.Bp=0;e.PY=0;e.jn=!1;e.g2=!1;e.j="";e.qg.isActive()&&LU(e)}; zI3=function(e,N,y,w,E,A){if(!e.g2)if(g.vo0(e,y))e.i9&&e.playback.Fh("sdai",{gdu:"undec",seg:y,itag:E});else if(N=E4(e,N,y,w,A),!(e.playback.getVideoData().Au()&&(N==null?0:N.Aw)))return N}; E4=function(e,N,y,w,E){var A=e.G.get(y);if(!A){if(A=i0s(e,N))return A;N=e.ow(y-1,w!=null?w:2);if(E)return e.playback.Fh("sdai",{misscue:E,sq:y,type:w,prevsstate:N==null?void 0:N.Z8,prevrecord:e.G.has(y-1)}),e.G.get(y-1);if((N==null?void 0:N.Z8)===2)return e.playback.Fh("sdai",{adnf:1,sq:y,type:w,prevrecord:e.G.has(y-1)}),e.G.get(y-1)}return A}; i0s=function(e,N){N+=e.U$();if(e.ph.T("html5_lifa_overdecorate_fix"))a:{var y=1;y=y===void 0?0:y;var w=N*1E3;e=g.c(e.L);for(var E=e.next();!E.done;E=e.next()){E=E.value;var A=E.oO?E.oO*1E3:E.GW;if(w>=E.GW-y*1E3&&w<=A+E.durationMs+y*1E3){y={Lc:E,Xs:N};break a}}y={Lc:void 0,Xs:N}}else e.ph.T("html5_use_time_without_threshold_first")&&(y=yi(e,N)),e.ph.T("html5_use_time_without_threshold_first")&&((w=y)==null?0:w.Lc)||(y=yi(e,N,1));var T;return(T=y)==null?void 0:T.Lc}; DFE=function(e,N){N=N===void 0?"":N;var y=sh(N)||void 0;if(!N||!y){var w;e.playback.Fh("sdai",{adcfg:(w=N)==null?void 0:w.length,dcfg:y==null?void 0:y.length})}return y}; goH=function(e){if(e.Et.length)for(var N=g.c(e.Et),y=N.next();!y.done;y=N.next())e.onCueRangeExit(y.value);N=g.c(e.N.values());for(y=N.next();!y.done;y=N.next())e.playback.removeCueRange(y.value);N=g.c(e.Z);for(y=N.next();!y.done;y=N.next())e.playback.removeCueRange(y.value);e.N.clear();e.Z=[];e.aq.clearAll();e.J||(e.Bk=!0)}; eo=function(e,N,y,w,E,A,T){if(N&&y){e.hM=y.cpn;a5(e,y);var p=sD(e,"a2a",y);e.playback.Fh("sdai",p);e.Bp++;e.playback.T5(N,y,w||0,E||0,!!A,!!T)}else e.playback.Fh("sdai",{misspbkonadtrans:1,enter:(y==null?void 0:y.cpn)||"",exit:(N==null?void 0:N.cpn)||"",seek:A,skip:T})}; fEF=function(e,N,y,w){if(w)for(w=0;wy){var A=E.end;E.end=N;VhM(e,y,A)}else if(E.start>=N&&E.starty)E.start=y;else if(E.end>N&&E.end<=y&&E.start=N&&E.end<=y){e.playback.removeCueRange(E);if(e.Et.includes(E))e.onCueRangeExit(E);e.Z.splice(w,1);continue}w++}else VhM(e,N,y)}; VhM=function(e,N,y){N=e.QJ(N,y);y=!0;g.rr(e.Z,N,function(T,p){return T.start-p.start}); for(var w=0;w0){var E=e.Z[w],A=e.Z[w-1];if(Math.round(A.end/1E3)>=Math.round(E.start/1E3)){A.end=E.end;E!==N?e.playback.removeCueRange(E):y=!1;e.Z.splice(w,1);continue}}w++}if(y)for(e.playback.addCueRange(N),N=e.playback.I7("serverstitchedcuerange",36E5),N=g.c(N),y=N.next();!y.done;y=N.next())e.N.delete(y.value.getId())}; AP=function(e,N,y){if(y===void 0||!y){y=g.c(e.Kx);for(var w=y.next();!w.done;w=y.next()){w=w.value;if(N>=w.start&&N<=w.end)return;if(N===w.end+1){w.end+=1;return}}e.Kx.push(new SX9(N))}}; g.vo0=function(e,N){e=g.c(e.Kx);for(var y=e.next();!y.done;y=e.next())if(y=y.value,N>=y.start&&N<=y.end)return!0;return!1}; cNs=function(e,N,y,w,E){var A;N={reason:"overlapping_playbacks",Ey1:N,GW:y,OQ:w,nih:E.FS,Ymq:((A=E.videoData)==null?void 0:A.videoId)||"",Eik:E.durationMs,Bf1:E.GW,mTq:E.OQ};UD(e,N)}; UD=function(e,N,y){e.playback.TD(N,y)}; th5=function(e,N){var y=[];e=e.Ng.get(N);if(!e)return[];e=g.c(e);for(N=e.next();!N.done;N=e.next())N=N.value,N.cpn&&y.push(N.cpn);return y}; uW_=function(e,N,y){var w=0;e=e.Ng.get(y);if(!e)return-1;e=g.c(e);for(y=e.next();!y.done;y=e.next()){if(y.value.cpn===N)return w;w++}return-1}; qXF=function(e,N){var y=0;e=e.Ng.get(N);if(!e)return 0;e=g.c(e);for(N=e.next();!N.done;N=e.next())N=N.value,N.durationMs!==0&&N.OQ!==N.GW&&y++;return y}; Z09=function(e,N,y){var w=!1;if(y&&(y=e.Ng.get(y))){y=g.c(y);for(var E=y.next();!E.done;E=y.next())E=E.value,E.durationMs!==0&&E.OQ!==E.GW&&(E=E.cpn,N===E&&(w=!0),w&&!e.NK.has(E)&&(e.playback.Fh("sdai",{decoratedAd:E}),e.NK.add(E)))}}; b0E=function(e){e.i9&&e.playback.Fh("sdai",{adf:"0_"+((new Date).getTime()/1E3-e.PY)+"_isTimeout_"+e.Rq})}; hIE=function(e,N,y){if(e.Zl.length)for(var w=g.c(e.Zl),E=w.next(),A={};!E.done;A={fW:void 0},E=w.next()){A.fW=E.value;E=A.fW.startSecs*1E3;var T=A.fW.Vj*1E3+E;if(N>E&&NE&&y0&&w>N*1E3+e.TmP)&&(w=KB5(e,y))){N=!1;y=void 0;w=g.c(w.segments);for(E=w.next();!E.done;E=w.next()){E=E.value;if(N){y=E;break}KU(E)===e.hM&&(N=!0)}w=void 0;if(y)w=KU(y);else if(N){var A;w=(A=e.timeline.J)==null?void 0:KU(A)}if(w)e.finishSegmentByCpn(e.hM,w,2,void 0);else{var T;e.api.Fh("ssap",{mfnc:1,mfncc:(T=e.timeline.J)== null?void 0:KU(T)})}}}}; QTH=function(e){return e.api.T("html5_force_ssap_gapful_switch")||e.api.T("html5_ssap_enable_legacy_browser_logic")&&!Zo()}; G21=function(e,N,y,w){e.Q5.set(N,w);O0n(e,N,y);RI5(e,y)}; XC=function(e,N){e=Nt(e.timeline,N);return(e==null?0:e.length)?e[0].EY():0}; P0=function(e,N){var y=y===void 0?!1:y;var w=e.timeline.J;if(!w)return{clipId:"",N3:0};var E=UFH(e,N,y);if(E)return{clipId:KU(E)||"",N3:E.EY()};e.api.Fh("mci",{cs:KU(w),mt:N,tl:Mo(e),invt:!!y});return{clipId:"",N3:0}}; LH=function(e){var N=e.timeline.J;if(!N)return 0;e=0;if(N.J.size===0)return(N.U_()-N.EY())/1E3;N=N.J.values();N=g.c(N);for(var y=N.next();!y.done;y=N.next()){y=g.c(y.value);for(var w=y.next();!w.done;w=y.next())w=w.value,e+=(w.U_()-w.EY())/1E3}return e}; sTs=function(e,N){return(e=LBM(e,N*1E3))?e.EY():0}; aE9=function(e,N){var y=Nt(e.timeline,N);N=0;if(y==null?0:y.length)for(e=g.c(y),y=e.next();!y.done;y=e.next())y=y.value,N+=(y.U_()-y.EY())/1E3;else return LH(e);return N}; LBM=function(e,N){if(e=Nt(e.timeline,e.hM)){e=g.c(e);for(var y=e.next();!y.done;y=e.next())if(y=y.value,y.EY()<=N&&y.U_()>=N)return y}}; ep5=function(e){var N=e.playback.getVideoData();e.hM&&(e=e.Ws.get(e.hM))&&(N=e);return N}; KB5=function(e,N,y){y=y===void 0?!1:y;var w=e.timeline.J;if(w){w=w.J;var E=Array.from(w.keys());g.pf(E);N=g.T7(E,N);N=w.get(E[N<0?(N+2)*-1:N]);if(!y&&N){y=g.c(N);for(N=y.next();!N.done;N=y.next())if(N=N.value,N.EY()!==N.U_())return N;return e.timeline}return N&&N.length>0?N[N.length-1]:void 0}}; UFH=function(e,N,y){y=y===void 0?!1:y;var w=KB5(e,N,y);if(w){if(e=w.segments,e.length){for(var E=g.c(e),A=E.next();!A.done;A=E.next())if(A=A.value,A.EY()<=N&&A.U_()>N)return A;if(y&&w.EY()===w.U_())return e[0]}}else e.api.Fh("ssap",{ctnf:1})}; jTF=function(e,N){var y;if(e.s7)for(y=e.iQ.shift();y&&y!==e.s7;)y=e.iQ.shift();else y=e.iQ.shift();if(y){if(e.sH.has(y))NuP(e,y);else if(N===3||N===4)e.TP.stop(),e.api.playVideo(1,e.api.T("html5_ssap_keep_media_on_finish_segment"));e.Q5.set(e.hM,N);e.api.Fh("ssap",{onvftn:1});RI5(e,y);return!1}e.api.Fh("ssap",{onvftv:1});e.TP.stop();return!0}; NuP=function(e,N){N=Nt(e.timeline,N);if(N==null?0:N.length)e.api.pauseVideo(),e.TP.start(N[0].Jv)}; RI5=function(e,N){var y=e.playback.getVideoData(),w=y.clientPlaybackNonce;e.Ma&&(e.events.CX(e.Ma),e.Ma=null,e.playback.gZ());var E=e.hM,A=!1;if(E==="")E=w,A=!0;else if(E===void 0){var T=e.playback.JW.LW().b6;T&&e.timeline.N.has(T)&&(E=T);e.api.Fh("ssap",{mcc:E+";"+N});e.playback.Qi(new P3("ssap.timelineerror",{e:"missing_current_cpn",pcpn:E,ccpn:N}))}if(E===N)A&&y&&yb9(e,y,A);else{T=e.Q5.get(E);if(!A&&(!T||T!==3&&T!==5&&T!==6&&T!==7)){var p=e.api.iX(e.hM);e.api.Fh("ssap",{nmec:p,cpc:e.hM,ec:N})}T&& T!==2||e.aM();e.hM=N;e.aM();N=Nt(e.timeline,e.hM);if(N==null?0:N.length){N=N[0];p=N.getType();E!==w&&(e.vz=E,y=e.Ws.get(E));T?e.Q5.delete(E):T=A?1:2;e.api.T("html5_ssap_pacf_qoe_ctmp")&&p===2&&!N.N&&(e.Ma=e.events.Y(e.api,"onVideoProgress",e.qYP));e.api.Fh("ssapt",{ostro:T,pcpn:E,ccpn:e.hM});a:{var C=e.hM;if(!e.Tx.has(C))for(var r=g.c(e.Tx),Y=r.next();!Y.done;Y=r.next()){var M=g.c(Y.value);Y=M.next().value;M=M.next().value;if(M.getId().includes(C)){C=Y;break a}}}Y=C;r=e.api.X().T("html5_ssap_insert_su_before_nonvideo")&& Y!==e.hM;M=e.playback.JW.LW();if(M.b6!==Y){var l=M.Eg(M.b6);C=M.Eg(Y);M.b6=Y;C!==l&&(l.qoe&&(Y=l.qoe,Y.provider.ph.B9()&&Y.Fh("ssap",{qoesus:"1",vid:Y.provider.videoData.videoId}),r&&(r=g.BG(Y.provider),ljH(Y,r,"SU")),isNaN(Y.Z)||g.k3(Y.Z)),C.resume())}r=Math.max(0,TI(e,E));C=e.playback.getCurrentTime();Y=Math.max(0,C-XC(e,e.hM)/1E3);C=N.getVideoData();M=T===3||T===5||T===6||T===7;e.api.T("html5_ssap_skip_illegal_seeking")&&(l=e.playback.getPlayerState(),l=!g.G(l,8)&&g.G(l,16),M=M||l,l&&e.api.Fh("ssap", {iis:1}));l=e.playback;var F=E,S=e.hM,k=e.playback.getPlayerState();l.JW.LW().pP(F,S,r,Y,!1,M,k,!0);e.api.Fh("ssapt",{ostri:T,pcpn:E,ccpn:e.hM});var X;r=E;Y=e.hM;M=(X=e.oh.get(E))!=null?X:(0,g.iC)();uhH(r,Y,w,C,M,y);e.oh.delete(E);A?y=void 0:y||e.api.Fh("ssap",{pvdm:E+";"+e.hM,pvdmc:e.hM===w?"1":"0"});e.api.Fh("ssap",{tpac:E+";"+e.hM,tpcc:w,tpv:(C==null?0:C.WG())?"1":"0"},!1,1);e.api.X().T("html5_ssap_cleanup_player_switch_ad_player")&&e.api.MB();e.api.publish("videodatachange","newdata",C,p,y,T); N.N||e.playback.getVideoData().publish("dataupdated");e.sH.delete(E);e.s7="";C&&p===1?yb9(e,C):e.playback.Fh("ssap",{nis:e.hM});p===2?e.Bp++:e.Bp=0}}}; yb9=function(e,N,y){y=y===void 0?!1:y;if(N.startSeconds&&e.l7){var w=N.startSeconds;N=Nt(e.timeline,N.clientPlaybackNonce);if(N==null?0:N.length)w+=N[0].EY()/1E3,e.api.T("htm5_ssap_ignore_initial_seek_if_too_big")&&w>=e.K1()||(e.playback.seekTo(w,{Gf:!0}),e.l7=!1,e.playback.Fh("ssap",{is:e.hM,co:y?"1":"0",tse:w.toFixed()}))}}; O0n=function(e,N,y){N=Nt(e.timeline,N);if(N!=null&&N.length&&(N=KB5(e,N[0].EY()))){N=g.c(N.segments);for(var w=N.next();!w.done;w=N.next()){w=w.value;if(KU(w)===y)break;if(w=KU(w)){var E=e.Tx.get(w);E&&e.playback.removeCueRange(E);e.Tx.delete(w)}}}}; dA=function(e){return e.playback.getVideoData().clientPlaybackNonce}; v_1=function(e,N){if(e.ED&&e.hM!==N)return!1;if(e.a5)return!0;if(N=e.Tx.get(N))if(N=N.getId().split(","),N.length>1)for(var y=0;yA)return JP(e,"enterAfterReturn enterTimeMs="+E+" is greater than parentReturnTimeMs="+A.toFixed(3),T,p),"";var r=C.Ti()*1E3;if(Er)return C="returnAfterDuration parentReturnTimeMs="+A.toFixed(3)+" is greater than parentDurationMs="+r+". And timestampOffset in seconds is "+ C.w7(),JP(e,C,T,p),"";r=null;for(var Y=g.c(e.N),M=Y.next();!M.done;M=Y.next()){M=M.value;if(E>=M.GW&&EM.GW)return JP(e,"overlappingReturn",T,p),"";if(A===M.GW)return JP(e,"outOfOrder",T,p),"";E===M.OQ&&(r=M)}T="cs_childplayback_"+AbF++;p={y6:p7(w,!0),iZ:Infinity,target:null};var l={FS:T,playerVars:N,playerType:y,durationMs:w,GW:E,OQ:A,Qq:p};e.N=e.N.concat(l).sort(function(k,X){return k.GW-X.GW}); r?Tu1(e,r,{y6:p7(r.durationMs,!0),iZ:r.Qq.iZ,target:l}):(N={y6:p7(E,!1),iZ:E,target:l},e.L.set(N.y6,N),C.addCueRange(N.y6));N=!0;if(e.J===e.app.nh()&&(C=C.getCurrentTime()*1E3,C>=l.GW&&CN)break;if(A>N)return{Lc:w,Xs:N-E};y=A-w.OQ/1E3}return{Lc:null,Xs:N-y}}; wZP=function(e,N,y){y=y===void 0?{}:y;var w=e.Z||e.app.nh().getPlayerState();$9(e,!0);N=isFinite(N)?N:e.J.Un();var E=YTM(e,N);N=E.Xs;var A=(E=E.Lc)&&!C7(e,E)||!E&&e.J!==e.app.nh(),T=N*1E3;T=e.K&&e.K.start<=T&&T<=e.K.end;!A&&T||rl(e);E?JbE(e,E,N,y,w):MFE(e,N,y,w)}; MFE=function(e,N,y,w){var E=e.J;E!==e.app.nh()&&e.app.G5();E.seekTo(N,Object.assign({},{BY:"application_timelinemanager"},y));laF(e,w)}; JbE=function(e,N,y,w,E){var A=C7(e,N);if(!A){N.playerVars.prefer_gapless=!0;e.ph.T("html5_enable_ssap_entity_id")&&(N.playerVars.cached_load=!0);var T=new g.t3(e.ph,N.playerVars);T.FS=N.FS;e.api.Hi(T,N.playerType)}T=e.app.nh();A||T.addCueRange(N.Qq.y6);T.seekTo(y,Object.assign({},{BY:"application_timelinemanager"},w));laF(e,E)}; laF=function(e,N){e=e.app.nh();var y=e.getPlayerState();N.isOrWillBePlaying()&&!y.isOrWillBePlaying()?e.playVideo():N.isPaused()&&!y.isPaused()&&e.pauseVideo()}; $9=function(e,N){e.Ng=NaN;e.D=null;e.U.stop();e.j&&N&&e.j.yr();e.Z=null;e.j=null}; C7=function(e,N){e=e.app.nh();return!!e&&e.getVideoData().FS===N.FS}; Fn5=function(e){var N=e.N.find(function(E){return C7(e,E)}); if(N){var y=e.app.nh();rl(e);var w=new g.a8(8);N=$Bn(e,N)/1E3;MFE(e,N,{},w);y.Fh("forceParentTransition",{childPlayback:1});e.J.Fh("forceParentTransition",{parentPlayback:1})}}; oOE=function(e,N,y){N=N===void 0?-1:N;y=y===void 0?Infinity:y;for(var w=N,E=y,A=g.c(e.L),T=A.next();!T.done;T=A.next()){var p=g.c(T.value);T=p.next().value;p=p.next().value;p.iZ>=w&&p.target&&p.target.OQ<=E&&(e.J.removeCueRange(T),e.L.delete(T))}w=N;E=y;A=[];T=g.c(e.N);for(p=T.next();!p.done;p=T.next())if(p=p.value,p.GW>=w&&p.OQ<=E){var C=e;C.G===p&&rl(C);C7(C,p)&&C.app.G5()}else A.push(p);e.N=A;w=YTM(e,N/1E3);N=w.Lc;w=w.Xs;N&&(w*=1E3,ST_(e,N,w,N.OQ===N.GW+N.durationMs?N.GW+w:N.OQ));(N=YTM(e,y/1E3).Lc)&& JP(e,"Invalid clearEndTimeMs="+y+" that falls during playback={timelinePlaybackId="+(N.FS+" video_id="+N.playerVars.video_id+" durationMs="+N.durationMs+" enterTimeMs="+N.GW+" parentReturnTimeMs="+N.OQ+"}.Child playbacks can only have duration updated not their start."))}; ST_=function(e,N,y,w){N.durationMs=y;N.OQ=w;w={y6:p7(y,!0),iZ:y,target:null};Tu1(e,N,w);C7(e,N)&&e.app.nh().getCurrentTime()*1E3>y&&(N=$Bn(e,N)/1E3,y=e.app.nh().getPlayerState(),MFE(e,N,{},y))}; JP=function(e,N,y,w){e.J.Fh("timelineerror",{e:N,cpn:y?y:void 0,videoId:w?w:void 0})}; hpF=function(e){e&&e!=="web"&&bIM.includes(e)}; lK=function(e,N){g.x.call(this);var y=this;this.data=[];this.K=e||NaN;this.N=N||null;this.J=new g.e6(function(){Y9(y);Ms(y)}); g.Q(this,this.J)}; cb5=function(e){Y9(e);return e.data.map(function(N){return N.value})}; Y9=function(e){var N=(0,g.iC)();e.data.forEach(function(y){y.expireA?{width:N.width,height:N.width/E,aspectRatio:E}:EE?e.width=e.height*y:yC;if(bK(e)){var r=IaJ(e);var Y=isNaN(r)||g.Um||HT&&g.k$||C;Gv&&!g.SE(601)?r=E.aspectRatio:Y=Y||A.controlsType==="3";Y?C?(Y=A.T("place_shrunken_video_on_left_of_player")?16:e.getPlayerSize().width-N.width-16,r=Math.max((e.getPlayerSize().height-N.height)/2,0),Y=new g.pK(Y,r,N.width, N.height),e.fX.style.setProperty("border-radius","12px")):Y=new g.pK(0,0,N.width,N.height):(y=E.aspectRatio/r,Y=new g.pK((N.width-E.width/y)/2,(N.height-E.height)/2,E.width/y,E.height),y===1&&g.k$&&(r=Y.width-N.height*r,r>0&&(Y.width+=r,Y.height+=r)));g.Y1(e.element,"ytp-fit-cover-video",Math.max(Y.width-E.width,Y.height-E.height)<1);if(p||e.hn)e.fX.style.display="";e.ac=!0}else{Y=-N.height;Gv?Y*=window.devicePixelRatio:g.Hg&&(Y-=window.screen.height);Y=new g.pK(0,Y,N.width,N.height);if(p||e.hn)e.fX.style.display= "none";e.ac=!1}CK(e.ZE,Y)||(e.ZE=Y,g.IK(A)?(e.fX.style.setProperty("width",Y.width+"px","important"),e.fX.style.setProperty("height",Y.height+"px","important")):g.k0(e.fX,Y.getSize()),w=new g.ri(Y.left,Y.top),g.od(e.fX,Math.round(w.x),Math.round(w.y)),w=!0);N=new g.pK((N.width-E.width)/2,(N.height-E.height)/2,E.width,E.height);CK(e.wj,N)||(e.wj=N,w=!0);g.$0(e.fX,"transform",y===1?"":"scaleX("+y+")");T&&C!==e.Rs&&(C&&(e.fX.addEventListener(e3,e.kJ),e.fX.addEventListener("transitioncancel",e.kJ),e.fX.classList.add(g.t$.VIDEO_CONTAINER_TRANSITIONING)), e.Rs=C,e.app.Lh.publish("playerUnderlayVisibilityChange",e.Rs?"transitioning":"hidden"));return w}; DB3=function(){this.csn=g.It();this.clientPlaybackNonce=null;this.elements=new Set;this.K=new Set;this.J=new Set;this.N=new Set}; gOP=function(e){if(e.csn!==g.It())if(e.csn==="UNDEFINED_CSN")e.csn=g.It();else{var N=g.It(),y=g.dI();if(N&&y){e.csn=N;for(var w=g.c(e.elements),E=w.next();!E.done;E=w.next())(E=E.value.visualElement)&&E.isClientVe()&&N&&y&&(g.Xj("combine_ve_grafts")?bm(Sq(),E,y):g.NR(g.Rt)(void 0,N,y,E))}if(N)for(e=g.c(e.J),y=e.next();!y.done;y=e.next())(y=y.value.visualElement)&&y.isClientVe()&&g.yv(N,y)}}; g.hP=function(e,N,y,w){g.x.call(this);var E=this;this.logger=new g.RE("App");this.Xt=this.nj=!1;this.LP={};this.Sm=[];this.GU=!1;this.kY=null;this.intentionalPlayback=!1;this.PJ=!0;this.CQ=!1;this.KK=this.Zw=null;this.dC=!0;this.mediaElement=this.c9=null;this.Pr=NaN;this.Ab=!1;this.sQ=this.KJ=this.k_=this.Q6=this.screenLayer=this.playlist=null;this.fQ=[];this.Be=0;this.lk={mxB:function(){return E.UX}, bP:function(){return E.k_}, Mf:function(T){E.k_=T}, Nh:function(T,p){E.k_&&E.k_.Nh(T,p)}}; this.logger.debug("constructor begin");this.config=WI5(N||{});this.webPlayerContextConfig=y;A4E();N=this.config.args||{};this.ph=new fa(N,y,y?y.canaryState:this.config.assets.player_canary_state,w,this);g.Q(this,this.ph);CT9(this.ph);w=$FJ(this.ph);this.ph.B9()&&this.ph.T("html5_record_h5vcc_flags")&&this.fQ.push({key:"h5vcc",value:w});this.ph.experiments.gP("jspb_serialize_with_worker")&&n3J();this.ph.experiments.gP("gzip_gel_with_worker")&&grP();this.ph.N&&!VFF&&(window.addEventListener(SV?"touchstart": "click",jS5,{capture:!0,passive:!0}),VFF=!0);this.T("html5_onesie")&&(this.lz=new BO(this.ph),g.Q(this,this.lz));this.xu=A2(kj(this.ph)&&!0,N.enablesizebutton);this.zp=A2(!1,N.player_wide);this.visibility=new wJE;g.Q(this,this.visibility);this.T("web_log_theater_mode_visibility")&&this.Gb(A2(!1,N.player_wide));this.nj=A2(!1,N.external_list);this.events=new g.fd(this);g.Q(this,this.events);this.T("start_client_gcf")&&(gW(ua(),{ZT:ro,aB:NxE()}),this.Md=ua().resolve(ro),Ern(this.Md));this.v91=new yL; g.Q(this,this.v91);this.zr=new DB3;w=new wZ;this.Lh=new g.SX(this,w);g.Q(this,this.Lh);this.template=new P5E(this);g.Q(this,this.template);this.appState=1;this.Fe=fan(this);g.Q(this,w);w={};this.bK=(w.internalvideodatachange=this.qQ,w.playbackready=this.Woh,w.playbackstarted=this.eyB,w.statechange=this.v_l,w);this.pB=new h9(this.Lh);this.HG=tFE(this);w=this.T("html5_load_wasm");N=this.T("html5_allow_asmjs");if(w&&uf5||N)this.ph.AA=It3(this.HG,N),Tm(A$(this.ph.AA,function(T){E.ph.uB=T;var p;(p=E.nh())== null||p.Fh("wasm",{a:T.Um})}),function(T){g.uA(T); T="message"in T&&T.message||T.toString()||"";var p;(p=E.nh())==null||p.Fh("wasm",{e:T})}); else if(w&&!uf5){var A;(A=this.nh())==null||A.Fh("wasm",{e:"wasm unavailable"})}this.R9=new fD9(this.ph,this.HG);this.Lh.publish("csiinitialized");A=10;g.I_(this.ph)&&(A=3);Qy(this.ph)&&(A=g.Y2(this.ph.experiments,"tvhtml5_unplugged_preload_cache_size"));A=new lK(A,function(T){T!==E.Ug(T.getPlayerType())&&Ov(T)}); g.Q(this,A);this.UX=new Eo3(A,{});A=qTF(this);this.UX.tH(A.xi);ZI5(this);A={};this.hF=(A.airplayactivechange=this.onAirPlayActiveChange,A.airplayavailabilitychange=this.onAirPlayAvailabilityChange,A.beginseeking=this.AS,A.sabrCaptionsDataLoaded=this.QQ,A.endseeking=this.zK,A.internalAbandon=this.FB,A.internalaudioformatchange=this.e3,A.internalvideodatachange=this.onVideoDataChange,A.internalvideoformatchange=this.sW,A.liveviewshift=this.Pkq,A.playbackstalledatstart=this.Q2W,A.progresssync=this.f_9, A.onAbnormalityDetected=this.jT,A.onSnackbarMessage=this.onSnackbarMessage,A.onLoadProgress=this.onLoadProgress,A.SEEK_COMPLETE=this.IE,A.SEEK_TO=this.Bag,A.onVideoProgress=this.onVideoProgress,A.onLoadedMetadata=this.onLoadedMetadata,A.onAutoplayBlocked=this.onAutoplayBlocked,A.onPlaybackPauseAtStart=this.QJt,A.playbackready=this.IBg,A.statechange=this.Uw,A.newelementrequired=this.x4,A.heartbeatparams=this.pu,A.videoelementevent=this.KP,A.drmoutputrestricted=this.onDrmOutputRestricted,A.signatureexpired= this.evh,A.nonfatalerror=this.U7P,A.reloadplayer=this.uSh,A);this.EA=new g.fd(this);g.Q(this,this.EA);this.Bi=new So;g.Q(this,this.Bi);this.C3=this.EV=-1;this.Qx=new g.e6(this.template.resize,16,this.template);g.Q(this,this.Qx);this.Yk=new EOH(this.Lh,this.ph,this.NU(),this);this.qx=new HK(this.ph);this.OH=new Qq(this);g.Q(this,this.OH);this.QL=new Zt(this);g.Q(this,this.QL);hpF(this.ph.J.c);this.events.Y(this.Lh,g.AA("appapi"),this.YgB);this.events.Y(this.Lh,g.TW("appapi"),this.X9s);this.events.Y(this.Lh, g.AA("appprogressboundary"),this.tpZ);this.events.Y(this.Lh,g.TW("applooprange"),this.JH);this.events.Y(this.Lh,"presentingplayerstatechange",this.rz);this.events.Y(this.Lh,"resize",this.zv1);this.template.yB(jU(document,e));this.events.Y(this.Lh,"offlineslatestatechange",this.ecB);this.T("html5_enable_sabr_live_captions")&&(this.events.Y(this.Lh,"sabrCaptionsTrackChanged",this.Ta9),this.events.Y(this.Lh,"sabrCaptionsBufferedRangesUpdated",this.Lsh));this.HG.C.X().vp&&t9(this.HG,"offline");this.ph.Dl&& g.Po("ux",g.ub);e=g.Y2(this.ph.experiments,"html5_defer_fetch_att_ms");this.Ir=new g.e6(this.DPl,e,this);g.Q(this,this.Ir);this.M7().WG()&&(g.xh()&&this.M7().l9.push("remote"),xBH(this));this.R9.tick("fs");jbJ(this);this.ph.Dl&&t9(this.HG,"ux",!0);g.hR(this.HG.C.X())&&t9(this.HG,"embed");this.T("web_player_sentinel_is_uniplayer")||g.uA(new g.Gh("Player experiment flags missing","web_player_sentinel_is_uniplayer"));e=this.T("web_player_sentinel_yt_experiments_sync");A=g.Xj("web_player_sentinel_yt_experiments_sync"); e!==A&&g.uA(new g.Gh("b/195699950",{yt:e,player:A}));y||g.uA(new g.Gh("b/179532961"));this.ww=nO5(this);if(y=g.Y2(this.ph.experiments,"html5_block_pip_safari_delay"))this.Ey=new g.e6(this.Ak,y,this),g.Q(this,this.Ey);qR=this.ph.LX;y=g.Y2(this.ph.experiments,"html5_performance_impact_profiling_timer_ms");y>0&&(this.IU=new g.kT(y),g.Q(this,this.IU),this.events.Y(this.IU,"tick",function(){E.DO&&Qb9.x$("apit",E.DO);E.DO=Qb9.X0()})); this.Lh.publish("applicationInitialized");this.logger.debug("constructor end")}; nO5=function(e){function N(y){y.stack&&y.stack.indexOf("player")!==-1&&(e.nh()||e.NU()).ST(y)} qi.subscribe("handleError",N);aG.push(N);return function(){qi.unsubscribe("handleError",N);var y=aG.indexOf(N);y!==-1&&aG.splice(y,1)}}; qTF=function(e){var N=new g.t3(e.ph,e.config.args);e.Lh.publish("initialvideodatacreated",N);return g.cR(e,1,N)}; ZI5=function(e){var N=e.NU();N.setPlaybackRate(e.ph.j?1:mBs(e,Number(g.qI("yt-player-playback-rate"))||1));N.H_(e.bK,e);N.bW()}; tFE=function(e){var N="",y=Bu0(e);y.indexOf("//")===0&&(y=e.ph.protocol+":"+y);var w=y.lastIndexOf("/base.js");w!==-1&&(N=y.substring(0,w+1));if(y=Error().stack)if(y=y.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))y=y[1],y.includes(N)||g.uA(Error("Player module URL mismatch: "+(y+" vs "+N+".")));N=new CbM(e.Lh,N);HIF(e,N);return N}; HIF=function(e,N){var y={};y=(y.destroyed=function(){e.onApiChange()},y); N.K=y}; fan=function(e){if(e.ph.storeUserVolume){e=g.qI("yt-player-volume")||{};var N=e.volume;e={volume:isNaN(N)?100:g.Ja(Math.floor(N),0,100),muted:!!e.muted}}else e={volume:100,muted:e.ph.mute};return e}; k9=function(e){e.mediaElement=e.ph.deviceIsAudioOnly?new g.Tf(g.sA("AUDIO")):qV.pop()||new g.Tf(g.sA("VIDEO"));g.Q(e,e.mediaElement);var N=e.nh();N&&N.setMediaElement(e.mediaElement);try{e.ph.U2?(e.KJ&&e.events.CX(e.KJ),e.KJ=e.events.Y(e.mediaElement,"volumechange",e.Ekh)):(e.mediaElement.Zs(e.Fe.muted),e.mediaElement.setVolume(e.Fe.volume/100))}catch(E){e.zS("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(E&&typeof E==="object"&&"message"in E&&typeof E.message==="string"&&E.message.replace(/[;:,]/g, "_")));return}g.g9(e.EA);KnM(e);N=e.template;var y=e.mediaElement.ut();N.fX=y;N.d8=!1;N.fX.parentNode||yp(N.k$,N.fX,0);N.ZE=new g.pK(0,0,0,0);iIM(N);oj(N);y=N.fX;g.pi(y,"video-stream");g.pi(y,g.t$.MAIN_VIDEO);var w=N.app.X();w.ll&&y.setAttribute("data-no-fullscreen","true");w.T("html5_local_playsinline")?"playsInline"in v3()&&(y.playsInline=!0):w.Hc&&(y.setAttribute("webkit-playsinline",""),y.setAttribute("playsinline",""));w.TV&&N.fX&&N.Y(y,"click",y.play,y);try{e.mediaElement.activate()}catch(E){e.zS("html5.missingapi", 2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(E&&typeof E==="object"&&"message"in E&&typeof E.message==="string"&&E.message.replace(/[;:,]/g,"_")))}}; OI0=function(e){if(!Wn9(e)){var N=e.NU().LC();N&&(N=N.u5(),N instanceof Promise&&N.catch(function(){})); BR(e,J_(e.getPlayerStateObject()))}}; KnM=function(e){var N=e.mediaElement;gp()?e.EA.Y(N,"webkitpresentationmodechanged",e.Gas):window.document.pictureInPictureEnabled&&(e.EA.Y(N,"enterpictureinpicture",function(){e.bX(!0)}),e.EA.Y(N,"leavepictureinpicture",function(){e.bX(!1)})); s8&&(e.EA.Y(N,"webkitbeginfullscreen",function(){e.q3(3)}),e.EA.Y(N,"webkitendfullscreen",function(){e.q3(0)}))}; RpM=function(e,N){var y=N.getPlayerType(),w=e.UX.Ug(y);N!==e.NU()&&N!==w&&(w==null||Ov(w),e.UX.N[y]=N)}; GlM=function(e,N){N=N===void 0?!0:N;e.logger.debug("start clear presenting player");var y;if(y=e.sQ){y=e.sQ;var w=e.mediaElement;y=!!w&&w===y.mediaElement}y&&(e.s_(),k9(e));if(y=e.nh())y.s_(!N),y.qB(e.hF,e),y.getPlayerType()!==1&&Ov(y);e.UX.K=null;e.logger.debug("finish clear presenting player")}; g.cR=function(e,N,y,w){var E=e.R9;N===2&&(E=new fD9(e.ph));return new g.oY(e.ph,N,E,e.template,function(A,T,p){e.Lh.publish(A,T,p)},function(){return e.Lh.getVisibilityState()},e.visibility,e,y,w)}; UBs=function(e,N,y,w){e=g.cR(e,N,y,w);e.bW();return e}; XO=function(e,N){return e.As(N)?e.NU():N}; PR=function(e,N){var y=e.nh(),w=e.NU();return y&&N===w&&e.As(N)&&e.As(y)?y:N}; aaE=function(e){e.logger.debug("start application playback");if(e.NU().getPlayerState().isError())e.logger.debug("start application playback done, player in error state");else{var N=dl(e);e.M7().isLoaded();N&&e.yY(6);Ln3(e);hVP(e.HG)||sb_(e)}}; sb_=function(e){if(!dl(e)){var N=ql(e.HG);N&&!N.created&&rUE(e.HG)&&(e.logger.debug("reload ad module"),N.create())}}; Ln3=function(e){e.logger.debug("start presenter playback");var N=e.getVideoData(),y=e.HG;hVP(y)||y.Vc();!uf5&&y.C.T("html5_allow_asmjs")&&dVF(y);t9(y,"embed");t9(y,"kids");t9(y,"remote");t9(y,"miniplayer");t9(y,"offline");t9(y,"unplugged");t9(y,"ypc",!1,!0);t9(y,"ypc_clickwrap",!1,!0);t9(y,"yto",!1,!0);t9(y,"webgl",!1,!0);cUs(y)||(t9(y,"captions",!0),t9(y,"endscreen"),y.RZ()||y.w0(),t9(y,"creatorendscreen",!0));y.Ht();e.Lh.publish("videoready",N)}; Ij=function(e){e=e.M7();e.WG();return tY(e)}; jbJ=function(e){e.logger.debug("start prepare initial playback");e.tI();var N=e.config.args;k9(e);var y=e.M7();e.Lh.Y9("onVolumeChange",e.Fe);if(N&&xhs(N)){var w=ZW(e.ph);w&&!e.nj&&(N.fetch=0);var E=g.hR(e.ph);E&&!e.nj&&(N.fetch=0);vR(e,N);g.hR(e.ph)&&e.R9.tick("ep_pr_s");if(!w||e.nj)if(E&&!e.nj)eJH(e);else if(!y.WG())e.playlist.onReady(function(){zI(e)})}e.w1(e.NU()); g.G(e.NU().getPlayerState(),128)||(N=Thn(!e.ph.deviceIsAudioOnly),N==="fmt.noneavailable"?e.zS("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):N==="html5.missingapi"?e.zS(N,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):y&&y.WG()&&Ij(e)&&(e.ph.CN||e.ph.Pf)?iK(e):y.KT?e.T("embeds_enable_full_length_inline_muted_autoplay")?e.Lh.mutedAutoplay({durationMode:y.mutedAutoplayDurationMode}):e.Lh.mutedAutoplay():g.qI("yt-player-playback-on-reload")?(g.$$("embedsItpPlayedOnReload",{playedOnReload:!0, isLoggedIn:!!e.ph.l9}),g.uY("yt-player-playback-on-reload",!1),iK(e)):Wg(e.ph)||NJn(e),g.na(e.ph)||nC(e.ph)==="MWEB"?(g.e1(g.yK(),function(){Dg(e)}),g.e1(g.yK(),function(){lc_()})):(Dg(e),lc_()),e.logger.debug("finish prepare initial playback"))}; Dg=function(e){if(!e.T("use_rta_for_player"))if(e.T("fetch_att_independently"))g.NA(e.Ir);else{var N=e.getVideoData().botguardData;N&&g.v1(N,e.ph,e.getVideoData().VY||"")}}; NJn=function(e){e.logger.debug("start initialize to CUED mode");e.Lh.publish("initializingmode");e.yY(2);e.T("embeds_web_enable_defer_loading_remote_js")&&g.mT(e.ph)?g.e1(g.yK(),function(){t9(e.HG,"remote")}):t9(e.HG,"remote"); t9(e.HG,"miniplayer");e.logger.debug("initialized to CUED mode")}; iK=function(e){e.logger.debug("start initialize application playback");var N=e.NU();if(g.G(N.getPlayerState(),128))return!1;var y=N.getVideoData();Ij(e)&&e.ph.Pf&&(qV.length&&e.Xt?(gl(e,{muted:!1,volume:e.Fe.volume},!1),Vi(e,!1)):qV.length||e.Fe.muted||(gl(e,{muted:!0,volume:e.Fe.volume},!1),Vi(e,!0)));Ij(e)&&g.hR(e.ph)&&y.mutedAutoplay&&(gl(e,{muted:!0,volume:e.Fe.volume},!1),Vi(e,!0));y.Ly&&gl(e,{muted:!0,volume:e.Fe.volume},!1);y89(e,1,y,!1);e.Lh.publish("initializingmode");e.w1(e.NU());e.yY(3); var w;if(!(w=!e.ph.Ps)){if(w=e.sQ){w=e.sQ;var E=e.mediaElement;w=!!E&&E===w.mediaElement}w=w&&e.GU}w&&(e.s_(),k9(e),N.setMediaElement(e.mediaElement));N.yR();if(g.G(N.getPlayerState(),128))return!1;y.zx||BR(e,3);return e.GU=!0}; dl=function(e){e=hu(e.HG);return!!e&&e.loaded}; wY5=function(e,N){if(!e.c9)return!1;var y=e.c9.startTimeMs*.001-1,w=e.c9.endTimeMs*.001;e.c9.type==="repeatChapter"&&w--;return Math.abs(N-y)<=1E-6||Math.abs(N-w)<=1E-6||N>=y&&N<=w}; TJs=function(e){var N=e.nh();N&&Rf(N.getVideoData())&&!N.Nc()&&(N=EUF(e)*1E3-e.getVideoData().WD,e.T("html5_gapless_new_slr")?(e=e.QL,A8M(e.app,"gaplessshortslooprange"),N=new g.wF(0,N,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(e=e.app.nh())&&e.addCueRange(N)):e.setLoopRange({startTimeMs:0,endTimeMs:N,type:"shortsLoop"}))}; J80=function(e){var N=e.NU();if(!(g.G(N.getPlayerState(),64)&&e.M7().isLivePlayback&&e.c9.startTimeMs<5E3)){if(e.c9.type==="repeatChapter"){var y,w=(y=Xu0(e.jR()))==null?void 0:y.Yp(),E;y=(E=e.getVideoData())==null?void 0:E.ll;w instanceof g.sN&&y&&(E=y[om(y,e.c9.startTimeMs)],w.renderChapterSeekingAnimation(0,E.title));isNaN(Number(e.c9.loopCount))?e.c9.loopCount=0:e.c9.loopCount++;e.c9.loopCount===1&&e.Lh.Mg("innertubeCommand",e.getVideoData().xC)}w={BY:"application_loopRangeStart"};if(e.c9.type=== "clips"||e.c9.type==="shortsLoop")w.seekSource=58;N.seekTo(e.c9.startTimeMs*.001,w)}}; mBs=function(e,N){var y=e.Lh.getAvailablePlaybackRates();N=Number(N.toFixed(2));e=y[0];y=y[y.length-1];N<=e?N=e:N>=y?N=y:(e=Math.floor(N*100+.001)%5,N=e===0?N:Math.floor((N-e*.01)*100+.001)/100);return N}; EUF=function(e,N){N=e.Ug(N);if(!N)return 0;N=XO(e,N);return f7(e,N.jo(),N)}; f7=function(e,N,y){if(e.As(y)){y=y.getVideoData();if(tP(e))y=N;else{e=e.Yk;for(var w=g.c(e.N),E=w.next();!E.done;E=w.next())if(E=E.value,y.FS===E.FS){N+=E.GW/1E3;break}w=N;e=g.c(e.N);for(E=e.next();!E.done;E=e.next()){E=E.value;if(y.FS===E.FS)break;var A=E.GW/1E3;if(A1&&(E=!1);if(!e.Ab||E!==N){y=y.lock(E?"portrait":"landscape");if(y!=null)y["catch"](function(){}); e.Ab=!0}}else e.Ab&&(e.Ab=!1,y.unlock())}; n7=function(e,N,y){e.Lh.publish(N,y);var w=g.I_(e.ph)||g.IK(e.ph)||g.ZY(e.ph);if(y&&w){switch(N){case "cuerangemarkersupdated":var E="onCueRangeMarkersUpdated";break;case "cuerangesadded":E="onCueRangesAdded";break;case "cuerangesremoved":E="onCueRangesRemoved"}E&&e.Lh.Mg(E,y.map(function(A){return{getId:function(){return this.id}, end:A.end,id:A.getId(),namespace:A.namespace==="ad"?"ad":"",start:A.start,style:A.style,visible:A.visible}}))}}; Qi=function(e,N,y,w,E,A){y=y===void 0?!0:y;var T=e.Ug(E);T&&(T.getPlayerType()===2&&!e.As(T)||g.bk(T.getVideoData()))||(e.getPresentingPlayerType()===3?hu(e.HG).D2("control_seek",N,y):(T&&T===e.NU()&&e.c9&&!wY5(e,N)&&e.setLoopRange(null),e.seekTo(N,y,w,E,A)))}; XYH=function(e,N,y,w){y&&(e.s_(),k9(e));y=e.nh();y.HT(N);var E=e.getVideoData(),A={};A.video_id=E.videoId;A.adformat=E.adFormat;if(!E.isLivePlayback||e.T("html5_reload_live_playback_to_current_time"))A.start=y.getCurrentTime(),A.resume="1";E.isLivePlayback&&wd(E)&&g.Pa(e.ph)&&(A.live_utc_start=y.OY(),A.resume="1");E.Kh&&(A.vvt=E.Kh);E.Z&&(A.vss_credentials_token=E.Z,A.vss_credentials_token_type=E.zN);E.oauthToken&&(A.oauth_token=E.oauthToken);E.Zc&&(A.force_gvi=E.Zc);A.autoplay=1;A.reload_count=E.jn+ 1;A.reload_reason=N;E.gW&&(A.unplugged_partner_opt_out=E.gW);E.j_&&(A.ypc_is_premiere_trailer=E.j_);E.playerParams&&(A.player_params=E.playerParams);e.loadVideoByPlayerVars(A,void 0,!0,void 0,void 0,w);N==="signature"&&e.Q6&&sb_(e)}; PL_=function(e,N){e.M7().autonavState=N;g.uY("yt-player-autonavstate",N);e.Lh.publish("autonavchange",N)}; dzn=function(e){var N=e.getVideoData().xI,y=e.ph.a9,w=e.isInline()&&!e.getVideoData().Nw,E=e.mediaElement;N||y||w?E.je():(E.xj(),gl(e,e.Fe))}; uK=function(e){var N=ql(e.jR());N&&N.created&&(e.logger.debug("reset ad module"),N.destroy())}; tP=function(e){return e.getVideoData().enableServerStitchedDai&&!!e.Q6}; IQ1=function(e,N){N.bounds=e.getBoundingClientRect();for(var y=g.c(["display","opacity","visibility","zIndex"]),w=y.next();!w.done;w=y.next())w=w.value,N[w]=lG(e,w);N.hidden=!!e.hidden}; Bu0=function(e){if(e.webPlayerContextConfig){var N=e.webPlayerContextConfig.trustedJsUrl;return N?IG(N).toString():e.webPlayerContextConfig.jsUrl}return e.config.assets&&e.config.assets.js?e.config.assets.js:""}; vU1=function(e,N){var y=e.Ug(1);if(y){if(y.getVideoData().clientPlaybackNonce===N)return y;if((e=e.OH.J)&&e.getVideoData().clientPlaybackNonce===N)return e}return null}; zJs=function(e){return e.name==="TypeError"&&e.stack.includes("/s/player/")&&HL()<=105}; izF=function(e){return e.isTimeout?"NO_BID":"ERR_BID"}; Dz1=function(){var e=null;ik5().then(function(N){return e=N},function(N){return e=izF(N)}); return e}; gU_=function(){var e=XK(1E3,"NO_BID");return ho(GxM([ik5(),e]).On(izF),function(){e.cancel()})}; m8=function(e){return e.YO?g.HE(g.m6(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; HR=function(e){this.player=e;this.K=this.J=1}; tJF=function(e,N,y,w,E,A){N.client||(N.client={});e.player.X().T("h5_remove_url_for_get_ad_break")||(N.client.originalUrl=y);var T=r2(y),p=g.uB(y)?!1:!0;(T||p)&&typeof Intl!=="undefined"&&(N.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);p=g.uB(y)?!1:!0;if(T||p||w!==""){var C={};y=E8(Fj(w)).split("&");var r=new Map;y.forEach(function(Y){Y=Y.split("=");Y.length>1&&r.set(Y[0].toString(),decodeURIComponent(Y[1].toString()))}); r.has("bid")&&(C.bid=r.get("bid"));C.params=[];VJ3.forEach(function(Y){r.has(Y)&&(Y={key:Y,value:r.get(Y)},C.params.push(Y))}); fQH(e,C);N.adSignalsInfo=C}N.client.unpluggedAppInfo||(N.client.unpluggedAppInfo={});N.client.unpluggedAppInfo.enableFilterMode=!1;y=E.J.cosver;y!=null&&y!=="cosver"&&(N.client.osVersion=y);y=E.J.cplatform;y!=null&&y!=="cplatform"&&y!==""&&(N.client.platform=y);y=E.J.cmodel;y!=null&&y!=="cmodel"&&(N.client.deviceModel=y);y=E.J.cplayer;y!=null&&y!=="cplayer"&&(N.client.playerType=y);y=E.J.cbrand;y!=null&&y!=="cbrand"&&(N.client.deviceMake=y);N.user||(N.user={});N.user.lockedSafetyMode=!1;(E.T("embeds_web_enable_iframe_api_send_full_embed_url")|| E.T("embeds_enable_autoplay_and_visibility_signals"))&&g.dw(E)&&v2P(N,A,e.player.getPlayerState(1))}; Zz3=function(e,N){var y=!1;if(N==="")return y;N.split(",").forEach(function(w){var E={},A={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},T="ACTIVE";w[0]==="!"&&(w=w.substring(1),T="INACTIVE");w=w.split("-");w.length<3||(w[0]in uJ_&&(A.clientName=uJ_[w[0]]),w[1]in qwM&&(A.platform=qwM[w[1]]),A.applicationState=T,A.clientVersion=w.length>2?w[2]:"",E.remoteClient=A,e.remoteContexts?e.remoteContexts.push(E):e.remoteContexts=[E],y=!0)}); return y}; jWF=function(e){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in xz_))return!1;e=e.split(RegExp("[:&]"));var N=xz_.FLAG_AUTO_CAPTIONS_DEFAULT_ON,y="f"+(1+Math.floor(N/31)).toString();N=1<=2?T[1]:"";var p=QW5.test(N),C=mzs.exec(N);C=C!=null&&C.length>=2?C[1]:"";var r=Hzn.exec(N);r=r!=null&&r.length>=2&&!Number.isNaN(Number(r[1]))?Number(r[1]):1;var Y=KJE.exec(N);Y=Y!=null&&Y.length>=2?Y[1]:"0";var M=DW(e.player.X().qg),l=e.player.getVideoData(1),F=g.LR(l.i9,!0),S="BISCOTTI_ID"in y?y.BISCOTTI_ID:"";tJF(e,F,N,S.toString(),e.player.X(), l);l={splay:!1,lactMilliseconds:y.LACT.toString(),playerHeightPixels:Math.trunc(y.P_H),playerWidthPixels:Math.trunc(y.P_W),vis:Math.trunc(y.VIS),signatureTimestamp:20129,autonavState:m8(e.player.X())};w&&(w={},Zz3(w,y.YT_REMOTE)&&(l.mdxContext=w));if(w=WJF.includes(M)?void 0:g.jH("PREF")){for(var k=w.split(RegExp("[:&]")),X=0,d=k.length;X1&&v[1].toUpperCase()==="TRUE"){F.user.lockedSafetyMode=!0;break}}l.autoCaptionsDefaultOn= jWF(w)}N=Ozn.exec(N);(N=N!=null&&N.length>=2?N[1]:"")&&C&&(F.user.credentialTransferTokens=[{token:N,scope:"VIDEO"}]);N={contentPlaybackContext:l};T={adBlock:Math.trunc(y.AD_BLOCK),params:T,breakIndex:r,breakPositionMs:Y,clientPlaybackNonce:y.CPN,topLevelDomain:M,isProxyAdTagRequest:p,context:F,adSignalsInfoString:E8(Fj(S.toString())),overridePlaybackContext:N};E!==void 0&&(T.cueProcessedMs=Math.round(E).toString());C&&(T.videoId=C);y.LIVE_TARGETING_CONTEXT&&(T.liveTargetingParams=y.LIVE_TARGETING_CONTEXT); y.AD_BREAK_LENGTH&&(T.breakLengthMs=Math.trunc(y.AD_BREAK_LENGTH*1E3).toString());A&&(T.driftFromHeadMs=A.toString());T.currentMediaTimeMs=Math.round(e.player.getCurrentTime(1)*1E3);(e=e.player.getGetAdBreakContext())&&(T.getAdBreakContext=e);return T}; Gn9=function(){HR.apply(this,arguments)}; UzE=function(e,N,y,w,E){var A=y.m1;var T=y.y6;var p=e.player.X().kX,C=0;y.cueProcessedMs&&T&&!A&&(y=T.end-T.start,y>0&&(C=Math.floor(y/1E3)));var r={AD_BLOCK:E,AD_BREAK_LENGTH:A?A.Vj:C,AUTONAV_STATE:m8(e.player.X()),CA_TYPE:"image",CPN:e.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:e.player.k7()*1E3,LACT:z_(),LIVE_INDEX:A?e.K++:1,LIVE_TARGETING_CONTEXT:A&&A.context?A.context:"",MIDROLL_POS:T?Math.round(T.start/1E3):0,MIDROLL_POS_MS:T?Math.round(T.start):0,VIS:e.player.getVisibilityState(), P_H:e.player.Fz().aV().height,P_W:e.player.Fz().aV().width,YT_REMOTE:p?p.join(","):""},Y=l4(MR);Object.keys(Y).forEach(function(M){Y[M]!=null&&(r[M.toUpperCase()]=Y[M].toString())}); w!==""&&(r.BISCOTTI_ID=w);w={};Y3(N)&&(w.sts="20129",(e=e.player.X().forcedExperiments)&&(w.forced_experiments=e));return Cp(g.Vx(N,r),w)}; LJ5=function(e,N){var y=e.player.X(),w,E=(w=e.player.getVideoData(1))==null?void 0:w.oauthToken;return g.GX(y,E).then(function(A){if(A&&$3()){var T=z9();ih(T,A)}return g.Rg(e.player.WI(T),N,"/youtubei/v1/player/ad_break").then(function(p){return p})})}; sWs=function(e){this.Pk=e}; aQF=function(e){this.C=e}; euJ=function(e){this.Pk=e}; ySH=function(e){g.x.call(this);this.J=e;this.Ls=NUM(this)}; NUM=function(e){var N=new J0P(e.J.Vi);g.Q(e,N);e=g.c([new sWs(e.J.Pk),new aQF(e.J.C),new euJ(e.J.Pk),new DX(e.J.D3,e.J.iL),new Vg,new uZ(e.J.zo,e.J.mW,e.J.Pk),new gL,new iZ]);for(var y=e.next();!y.done;y=e.next())p7J(N,y.value);e=g.c(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(y=e.next();!y.done;y=e.next())fj(N,y.value,function(){}); return N}; K7=function(e){var N=e.Hk,y=e.wP;e=e.yT;var w=new XpH,E={OP:new ENE(N.get(),y),wP:y};return{H9:new Rc(y,e,N,E),context:E,Kw:w}}; WR=function(e,N,y,w,E){g.x.call(this);this.N=N;this.zZ=y;this.Hk=w;this.p$=E;this.listeners=[];var A=new iY(this);g.Q(this,A);A.Y(e,"internalAbandon",this.FB);this.addOnDisposeCallback(function(){g.g9(A)})}; O4=function(e){this.C=e;this.adVideoId=this.J=this.videoId=this.adCpn=this.contentCpn=null;this.L=!0;this.N=this.K=!1;this.adFormat=null;this.j="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; wkM=function(e){e.contentCpn=null;e.adCpn=null;e.videoId=null;e.adVideoId=null;e.adFormat=null;e.j="AD_PLACEMENT_KIND_UNKNOWN";e.actionType="unknown_type";e.K=!1;e.N=!1}; EkM=function(e,N){e=g.c(N);for(N=e.next();!N.done;N=e.next())if((N=N.value.renderer)&&(N.instreamVideoAdRenderer||N.linearAdSequenceRenderer||N.sandwichedLinearAdRenderer||N.instreamSurveyAdRenderer)){jZ("ad_i");g.nV({isMonetized:!0});break}}; ASE=function(e){var N;(N=e.C.getVideoData(1))!=null&&N.qg&&(e.N=!1,N={},e.J&&e.videoId&&(N.cttAuthInfo={token:e.J,videoId:e.videoId}),QQ("video_to_ad",N))}; nL=function(e){e.N=!1;var N={};e.J&&e.videoId&&(N.cttAuthInfo={token:e.J,videoId:e.videoId});QQ("ad_to_video",N);TUM(e)}; TUM=function(e){if(e.K)if(e.j==="AD_PLACEMENT_KIND_START"&&e.actionType==="video_to_ad")qY("video_to_ad");else{var N={adBreakType:oV(e.j),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:e.videoStreamType};e.actionType==="ad_to_video"?(e.contentCpn&&(N.targetCpn=e.contentCpn),e.videoId&&(N.targetVideoId=e.videoId)):(e.adCpn&&(N.targetCpn=e.adCpn),e.adVideoId&&(N.targetVideoId=e.adVideoId));e.adFormat&&(N.adType=e.adFormat);e.contentCpn&& (N.clientPlaybackNonce=e.contentCpn);e.videoId&&(N.videoId=e.videoId);e.adCpn&&(N.adClientPlaybackNonce=e.adCpn);e.adVideoId&&(N.adVideoId=e.adVideoId);g.nV(N,e.actionType)}}; Rj=function(e){g.x.call(this);this.C=e;this.J=new Map;this.N=new iY(this);g.Q(this,this.N);this.N.Y(this.C,g.AA("ad"),this.onCueRangeEnter,this);this.N.Y(this.C,g.TW("ad"),this.onCueRangeExit,this)}; JS_=function(e,N,y,w,E){g.wF.call(this,N,y,{id:e,namespace:"ad",priority:E,visible:w})}; GI=function(e){this.C=e}; U4=function(e){this.C=e;g.Y2(this.C.X().experiments,"tv_pacf_logging_sample_rate")}; k6=function(e,N){N=N===void 0?!1:N;return e.C.X().T("html5_ssap_force_ads_ctmp")?!0:(N||e.C.X().B9())&&e.C.X().T("html5_ssap_pacf_qoe_ctmp")}; L7=function(e){var N,y;return(y=(N=e.C.getVideoData(1))==null?void 0:g.xK(N))!=null?y:!1}; R_=function(e,N){return e.C.X().T(N)}; pkH=function(e){return e.C.X().T("substitute_ad_cpn_macro_in_ssdai")}; MC=function(e){var N,y,w;return((N=e.C.getVideoData(1).getPlayerResponse())==null?void 0:(y=N.playerConfig)==null?void 0:(w=y.daiConfig)==null?void 0:w.enableServerStitchedDai)||!1}; lbF=function(e){return e.C.X().T("html5_enable_vod_slar_with_notify_pacf")}; Cu9=function(e){return e.C.X().T("html5_recognize_predict_start_cue_point")}; Wr=function(e){return e.C.X().experiments.gP("enable_desktop_player_underlay")}; rSH=function(e){return e.C.X().experiments.gP("html5_load_empty_player_in_media_break_sub_lra")}; ii=function(e){return e.C.X().experiments.gP("html5_load_ads_instead_of_cue")}; Du=function(e){return e.C.X().experiments.gP("html5_preload_ads")}; Q8=function(e){return e.C.X().experiments.gP("enable_ads_control_flow_deterministic_id_generation")}; $QE=function(e){return e.C.X().experiments.gP("enable_desktop_discovery_video_abandon_pings")||g.xj(e.C.X())}; Yt_=function(e){return e.C.X().experiments.gP("enable_progres_commands_lr_feeds")}; MN3=function(e){return e.C.X().experiments.gP("html5_cuepoint_identifier_logging")}; ll_=function(e){switch(e){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}}; FtH=function(){g.pT.call(this);var e=this;this.J={};this.addOnDisposeCallback(function(){for(var N=g.c(Object.keys(e.J)),y=N.next();!y.done;y=N.next())delete e.J[y.value]})}; s4=function(){if(St5===null){St5=new FtH;z0(BB).N="b";var e=z0(BB),N=Fb(e)=="h"||Fb(e)=="b",y=!(fo(),!1);N&&y&&(e.L=!0,e.Z=new ic_)}return St5}; okJ=function(e,N,y){e.J[N]=y}; b8s=function(e){switch(e){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}}; aj=function(e,N,y){this.zZ=e;this.C=N;this.wP=y;this.N=new Set;this.J=new Map;s4().subscribe("adactiveviewmeasurable",this.tq,this);s4().subscribe("adfullyviewableaudiblehalfdurationimpression",this.KG,this);s4().subscribe("adviewableimpression",this.fG,this);s4().subscribe("adaudioaudible",this.Nf,this);s4().subscribe("adaudiomeasurable",this.k6,this)}; Nr=function(e,N,y){var w=y.Gn,E=y.vK,A=y.listener,T=y.tZ;y=y.OR===void 0?!1:y.OR;if(e.J.has(N))YN("Unexpected registration of layout in LidarApi");else{if(T){if(e.N.has(T))return;e.N.add(T)}e.J.set(N,A);Ar(fo().RJ,"fmd",1);jpn(z0(BB),w);var p=y?N:void 0;okJ(s4(),N,{sy:function(){if(!E)return{};var C=e.C.getPresentingPlayerType(!0),r;return(r=e.C.getVideoData(C))!=null&&r.isAd()?{currentTime:e.zZ.get().getCurrentTimeSec(C,!1,p),duration:E,isPlaying:eT(e.zZ.get(),C).isPlaying(),isVpaid:!1,isYouTube:!0, volume:e.zZ.get().isMuted()?0:e.zZ.get().getVolume()/100}:{}}})}}; ya=function(e,N){e.J.has(N)?(e.J.delete(N),delete s4().J[N]):YN("Unexpected unregistration of layout in LidarApi")}; hu9=function(e,N){if(e.C.isLifaAdPlaying()){var y=e.C.eW(!0,!0);e.Ld(N,y.width*.5*1.1,y.height*.25*1.1,y.width*.5*.9,y.height*.5*.9)}}; BU_=function(e,N,y){var w={};cSJ(e,w,N,y);kq5(w);w.LACT=wV(function(){return z_().toString()}); w.VIS=wV(function(){return e.getVisibilityState().toString()}); w.SDKV="h.3.0";w.VOL=wV(function(){return e.isMuted()?"0":Math.round(e.getVolume()).toString()}); w.VED="";return w}; Xks=function(e,N){var y={};if(N)return y;if(!e.kind)return g.t0(Error("AdPlacementConfig without kind")),y;if(e.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||e.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!e.adTimeOffset||!e.adTimeOffset.offsetStartMilliseconds)return g.t0(Error("malformed AdPlacementConfig")),y;y.MIDROLL_POS=wV(pY(Math.round(aA(e.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else y.MIDROLL_POS=wV(pY("0"));return y}; wV=function(e){return{toString:function(){return e()}}}; PuP=function(e,N,y){function w(p,C){(C=y[C])&&(A[p]=C)} function E(p,C){(C=y[C])&&(A[p]=T(C))} if(!y||g.v4(y))return e;var A=Object.assign({},e),T=N?encodeURIComponent:function(p){return p}; E("DV_VIEWABILITY","doubleVerifyViewability");E("IAS_VIEWABILITY","integralAdsViewability");E("MOAT_INIT","moatInit");E("MOAT_VIEWABILITY","moatViewability");w("GOOGLE_VIEWABILITY","googleViewability");w("VIEWABILITY","viewability");return A}; cSJ=function(e,N,y,w){N.CPN=wV(function(){var E;(E=e.getVideoData(1))?E=E.clientPlaybackNonce:(g.uA(Error("Video data is null.")),E=null);return E}); N.AD_MT=wV(function(){if(w!=null)var E=w;else{var A=y;e.X().T("html5_ssap_use_cpn_to_get_time")||(A=void 0);if(e.X().T("enable_h5_shorts_ad_fill_ad_mt_macro")||e.X().T("enable_desktop_discovery_pings_ad_mt_macro")||g.xj(e.X())){var T=e.getPresentingPlayerType(!0),p;E=((p=e.getVideoData(T))==null?0:p.isAd())?dQ5(e,T,A):0}else E=dQ5(e,2,A)}return Math.round(Math.max(0,E*1E3)).toString()}); N.MT=wV(function(){return Math.round(Math.max(0,e.getCurrentTime(1,!1)*1E3)).toString()}); N.P_H=wV(function(){return e.Fz().aV().height.toString()}); N.P_W=wV(function(){return e.Fz().aV().width.toString()}); N.PV_H=wV(function(){return e.Fz().getVideoContentRect().height.toString()}); N.PV_W=wV(function(){return e.Fz().getVideoContentRect().width.toString()})}; kq5=function(e){e.CONN=wV(pY("0"));e.WT=wV(function(){return Date.now().toString()})}; dQ5=function(e,N,y){return y!==void 0?e.getCurrentTime(N,!1,y):e.getCurrentTime(N,!1)}; Il0=function(){}; vk9=function(e,N,y,w,E){var A,T,p,C,r,Y,M,l,F,S,k,X,d;g.f(function(v){switch(v.J){case 1:A=!!N.scrubReferrer;T=g.Vx(N.baseUrl,PuP(y,A,w));p={};if(!N.headers){v.u9(2);break}C=e.j();if(!C.J){r=C.getValue();v.u9(3);break}return g.D(v,C.J,4);case 4:r=v.N;case 3:Y=r;M=g.c(N.headers);for(l=M.next();!l.done;l=M.next())switch(F=l.value,F.headerType){case "VISITOR_ID":g.Lb("VISITOR_DATA")&&(p["X-Goog-Visitor-Id"]=g.Lb("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.Lb("EOM_VISITOR_DATA")&&(p["X-Goog-EOM-Visitor-Id"]= g.Lb("EOM_VISITOR_DATA"));break;case "USER_AUTH":Y&&(p.Authorization="Bearer "+Y);break;case "PLUS_PAGE_ID":(S=e.L())&&(p["X-Goog-PageId"]=S);break;case "AUTH_USER":k=e.J();!Y&&k&&(p["X-Goog-AuthUser"]=k);break;case "DATASYNC_ID":if(X=void 0,(X=e.K())==null?0:X.gP("enable_datasync_id_header_in_web_vss_pings"))d=e.N(),r2(T)&&g.Lb("LOGGED_IN")&&d&&(p["X-YouTube-DataSync-Id"]=d)}"X-Goog-EOM-Visitor-Id"in p&&"X-Goog-Visitor-Id"in p&&delete p["X-Goog-Visitor-Id"];case 2:g.mK(T,void 0,A,Object.keys(p).length!== 0?p:void 0,"",!0,E),g.hn(v)}})}; zuE=function(e,N,y,w,E){this.j=e;this.L=N;this.J=y;this.N=w;this.K=E}; i8M=function(e,N){this.J=e;this.wP=N}; Ey=function(e,N,y,w,E,A,T){var p=p===void 0?new zuE(function(){var C=e.X(),r=e.getVideoData(1);return g.GX(C,r?g.qK(r):"")},function(){return e.X().pageId},function(){return e.X().l9},function(){var C; return(C=e.X().datasyncId)!=null?C:""},function(){return e.X().experiments}):p; this.C=e;this.N=N;this.AM=y;this.Hk=w;this.H9=E;this.wP=A;this.Kw=T;this.j=p;this.PK=null;this.J=new Map;this.K=new i8M(p,this.wP)}; gk5=function(e,N,y,w,E){var A=kF(e.N.get(),y);A?(y=zW(e,DQ5(A),A,void 0,void 0,w),N.hasOwnProperty("baseUrl")?e.j.send(N,y):e.K.send(N,y,{},E)):YN("Trying to ping from an unknown layout",void 0,void 0,{layoutId:y})}; YZ1=function(e,N,y,w,E,A){w=w===void 0?[]:w;var T=kF(e.N.get(),N);if(T){var p=e.AM.get().wz(N,y),C=zW(e,DQ5(T),T,E,A);w.forEach(function(r,Y){r.baseUrl&&(e.K.send(r.baseUrl,C,p,r.attributionSrcMode),r.serializedAdPingMetadata&&e.H9.ZU("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,T,new WoH(r,Y),void 0,void 0,T.adLayoutLoggingData))})}else YN("Trying to track from an unknown layout.",void 0,void 0,{layoutId:N, trackingType:y})}; kQ=function(e,N){e.C.sendVideoStatsEngageEvent(N,void 0,2)}; Gp=function(e,N){g.$$("adsClientStateChange",N)}; VN5=function(e,N){e.J.has(N.rb())?YN("Trying to register an existing AdErrorInfoSupplier."):e.J.set(N.rb(),N)}; fl0=function(e,N){e.J.delete(N.rb())||YN("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; sV=function(e,N,y){typeof y==="string"?e.C.getVideoData(1).kN(N,y):e.C.getVideoData(1).Fh(N,y)}; DQ5=function(e){var N=A6(e.clientMetadata,"metadata_type_ad_placement_config");e=A6(e.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:N,BA:e}}; zW=function(e,N,y,w,E,A){var T=y?tN0(e):{},p=y?uNs(e,y.layoutId):{},C=qts(e),r,Y=E!=null?E:(r=Mb(e.Hk.get(),2))==null?void 0:r.clientPlaybackNonce;e.C.X().T("enable_player_logging_lr_home_infeed_ads")&&!Y&&(Y=Mb(e.Hk.get(),1).clientPlaybackNonce);E=void 0;if(y){var M;if((M=e.Kw.J.get(y.layoutId))==null?0:M.OR)E=y.layoutId}M={};e=Object.assign({},BU_(e.C,E,w),Xks(N.adPlacementConfig,(y==null?void 0:y.renderingContent)!==void 0),p,T,C,(M.FINAL=wV(function(){return"1"}),M.AD_CPN=wV(function(){return Y|| ""}),M)); (y==null?void 0:y.renderingContent)!==void 0||(e.SLOT_POS=wV(function(){return(N.BA||0).toString()})); y={};A=Object.assign({},e,A);e=g.c(Object.values(Z81));for(w=e.next();!w.done;w=e.next())w=w.value,T=A[w],T!=null&&T.toString()!=null&&(y[w]=T.toString());return y}; tN0=function(e){var N={},y,w=(y=e.PK)==null?void 0:y.Cj/1E3;w!=null&&(N.SURVEY_ELAPSED_MS=wV(function(){return Math.round(w*1E3).toString()})); N.SURVEY_LOCAL_TIME_EPOCH_S=wV(function(){return Math.round(Date.now()/1E3).toString()}); return N}; uNs=function(e,N){e=e.J.get(N);if(!e)return{};e=e.B6();if(!e)return{};N={};return N.YT_ERROR_CODE=e.J0.toString(),N.ERRORCODE=e.U6.toString(),N.ERROR_MSG=e.errorMessage,N}; qts=function(e){var N={},y=e.C.getVideoData(1);N.ASR=wV(function(){var w;return(w=y==null?void 0:y.kh)!=null?w:null}); N.EI=wV(function(){var w;return(w=y==null?void 0:y.eventId)!=null?w:null}); return N}; AM=function(e,N,y){g.x.call(this);this.C=e;this.hf=N;this.wP=y;this.listeners=[];this.Tp=null;this.J_=new Map;N=new g.fd(this);g.Q(this,N);N.Y(e,"videodatachange",this.b$q);N.Y(e,"serverstitchedvideochange",this.mKG);this.nk=Mb(this)}; Mb=function(e,N){var y=e.C.getVideoData(N);return y?e.v8(y,N||e.C.getPresentingPlayerType(!0)):null}; xQ9=function(e,N,y){var w=e.v8(N,y);e.nk=w;e.listeners.forEach(function(E){E.DZ(w)})}; jn_=function(e){switch(e){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}}; Td=function(e,N,y){g.x.call(this);this.C=e;this.Hk=N;this.wP=y;this.listeners=[];this.VJ=[];this.J=function(){YN("Called 'doUnlockPreroll' before it's initialized.")}; N=new iY(this);y=new g.fd(this);g.Q(this,y);g.Q(this,N);N.Y(e,"progresssync",this.j2k);N.Y(e,"presentingplayerstatechange",this.sJh);N.Y(e,"fullscreentoggled",this.onFullscreenToggled);N.Y(e,"onVolumeChange",this.onVolumeChange);N.Y(e,"minimized",this.Yx);N.Y(e,"overlayvisibilitychange",this.D0);N.Y(e,"shortsadswipe",this.pO);N.Y(e,"resize",this.I9);y.Y(e,g.AA("appad"),this.Qs)}; JM=function(e){L7(e.wP.get())||e.J()}; nk_=function(e,N){e.VJ=e.VJ.filter(function(y){return y!==N})}; pe=function(e,N,y){return e.getCurrentTimeSec(N,y)}; QnH=function(e,N){var y;N=(y=e.Hk.get().J_.get(N))!=null?y:null;if(N===null)return YN("Expected ad video start time on playback timeline"),0;e=e.C.getCurrentTime(2,!0);return e0){var A=N.end.toString();E.forEach(function(T){(T=T.config&&T.config.adPlacementConfig)&&T.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&T.adTimeOffset&&T.adTimeOffset.offsetEndMilliseconds==="-1"&&T.adTimeOffset.offsetEndMilliseconds!==A&&(T.adTimeOffset.offsetEndMilliseconds=A)}); w.map(function(T){return g.m(T,gj)}).forEach(function(T){var p; (T=T==null?void 0:(p=T.slotEntryTrigger)==null?void 0:p.mediaTimeRangeTrigger)&&T.offsetEndMilliseconds==="-1"&&(T.offsetEndMilliseconds=A)})}return{aX:E, adSlots:w,V5:!1,ssdaiAdsConfig:e.ssdaiAdsConfig}}; Mr=function(e){g.x.call(this);this.C=e;this.listeners=[];this.J=new iY(this);g.Q(this,this.J);this.J.Y(this.C,"aduxclicked",this.onAdUxClicked);this.J.Y(this.C,"aduxmouseover",this.wX);this.J.Y(this.C,"aduxmouseout",this.bT);this.J.Y(this.C,"muteadaccepted",this.BTh)}; O85=function(e,N,y){N=g.dn(N,function(w){return new t1M(w,y,w.id)}); e.C.Mg("onAdUxUpdate",N)}; l9=function(e,N){e=g.c(e.listeners);for(var y=e.next();!y.done;y=e.next())N(y.value)}; F5=function(e,N){this.N=e;this.K=N===void 0?!1:N;this.J={}}; RuM=function(e,N){var y=e.startSecs+e.Vj;y=y<=0?null:y;if(y===null)return null;switch(e.event){case "start":case "continue":case "stop":break;case "predictStart":if(N)break;return null;default:return null}N=Math.max(e.startSecs,0);return{t5:new de(N,y),Hht:new iN(N,y-N,e.context,e.identifier,e.event,e.J)}}; Gq5=function(){this.J=[]}; ryP=function(e,N,y){var w=g.T7(e.J,N);if(w>=0)return N;N=-w-1;return N>=e.J.length||e.J[N]>y?null:e.J[N]}; ST=function(e,N,y){g.x.call(this);this.C=e;this.wP=N;this.Pk=y;this.listeners=[];this.j=!1;this.IH=[];this.J=null;this.L=new F5(this,Cu9(N.get()));this.K=new Gq5;this.N=null}; UQ3=function(e,N){e.IH.push(N);for(var y=!1,w=g.c(e.listeners),E=w.next();!E.done;E=w.next())y=E.value.Wq(N)||y;e.j=y;MN3(e.wP.get())&&sV(e.Pk.get(),"onci","cpi."+N.identifier+";cpe."+N.event+";cps."+N.startSecs+";cbi."+y)}; snP=function(e,N){Gp(e.Pk.get(),{cuepointTrigger:{event:Lt9(N.event),cuepointId:N.identifier,totalCueDurationMs:N.Vj*1E3,playheadTimeMs:N.J,cueStartTimeMs:N.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:e.C.getVideoData(1).clientPlaybackNonce}})}; Lt9=function(e){switch(e){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 wa(e,"Unexpected cuepoint event")}}; oa=function(e){this.C=e}; alE=function(e,N){e.C.cueVideoByPlayerVars(N,2)}; b9=function(e){this.C=e}; hM=function(e){this.C=e}; ewM=function(e){switch(e){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:wa(e,"unknown transitionReason")}}; Nbs=function(e){this.C=e}; yDM=function(e,N,y,w,E){g.x.call(this);var A=this,T=nn(function(){return new ns(A.wP)}); g.Q(this,T);var p=nn(function(){return new ml(T,A.wP)}); g.Q(this,p);var C=nn(function(){return new hH}); g.Q(this,C);var r=nn(function(){return new oc(e)}); g.Q(this,r);var Y=nn(function(){return new Hu(T,p,A.wP)}); g.Q(this,Y);var M=nn(function(){return new GB}); g.Q(this,M);this.q7=nn(function(){return new Mr(N)}); g.Q(this,this.q7);this.P9=nn(function(){return new m$(E)}); g.Q(this,this.P9);this.d7=nn(function(){return new O4(N)}); g.Q(this,this.d7);this.oJ=nn(function(){return new Rj(N)}); g.Q(this,this.oJ);this.s2=nn(function(){return new oa(N)}); g.Q(this,this.s2);this.Vi=nn(function(){return new GI(N)}); g.Q(this,this.Vi);this.wP=nn(function(){return new U4(N)}); g.Q(this,this.wP);var l=nn(function(){return new YL(w)}); g.Q(this,l);var F=nn(function(){return new Mx(A.wP)}); g.Q(this,F);this.DM=nn(function(){return new b9(N)}); g.Q(this,this.DM);this.uL=nn(function(){return new Wa}); g.Q(this,this.uL);this.Hk=nn(function(){return new AM(N,M,A.wP)}); g.Q(this,this.Hk);var S=K7({Hk:this.Hk,wP:this.wP,yT:F}),k=S.context,X=S.Kw;this.H9=S.H9;this.p$=nn(function(){return new ST(N,A.wP,A.Pk)}); g.Q(this,this.p$);this.xk=nn(function(){return new hM(N)}); g.Q(this,this.xk);this.zZ=nn(function(){return new Td(N,A.Hk,A.wP)}); g.Q(this,this.zZ);S=nn(function(){return new Cs(T,Y,p,A.wP,F,"SLOT_TYPE_ABOVE_FEED",A.zZ,A.Gx,A.VT)}); g.Q(this,S);this.If=nn(function(){return new OG(A.wP)}); this.AM=nn(function(){return new aj(A.zZ,N,A.wP)}); g.Q(this,this.AM);this.Pk=nn(function(){return new Ey(N,C,A.AM,A.Hk,A.H9,A.wP,X)}); g.Q(this,this.Pk);this.KE=new F7(lP,cv,function(v,V,Z,n){return KN(p.get(),v,V,Z,n)},r,Y,p,F,this.wP,this.Hk); g.Q(this,this.KE);this.Sp=new Sw(r,S,y,this.wP,e,this.Hk,this.zZ,this.d7);g.Q(this,this.Sp);var d=new WR(N,this.Sp,this.zZ,this.Hk,this.p$);this.gm=nn(function(){return d}); this.ji=d;this.Gx=new YF(r,Y,this.gm,this.p$,this.zZ,this.wP,this.Pk,this.xk);g.Q(this,this.Gx);this.kx=new bP(r,Y,this.oJ,this.gm,k);g.Q(this,this.kx);this.PG=new DC(this.wP,r,Y,S,this.Hk,this.kx,y);g.Q(this,this.PG);this.R1=nn(function(){return new YQ(l,p,F,A.wP,A.Pk,A.zZ,A.xk)}); g.Q(this,this.R1);this.PE=nn(function(){return new MG}); g.Q(this,this.PE);this.ZW=new Ic(e,this.q7,this.wP);g.Q(this,this.ZW);this.v9=new vu(e);g.Q(this,this.v9);this.oX=new zB(e);g.Q(this,this.oX);this.DW=new Dz(e,this.gm,k);g.Q(this,this.DW);this.Kq=new g$(e,this.oJ,this.zZ,this.Hk,k);g.Q(this,this.Kq);this.YL=new V8(e,this.Hk);g.Q(this,this.YL);this.VT=new uP(e,this.p$,this.zZ,this.Pk,this.gm);g.Q(this,this.VT);this.T9=new fs(e);g.Q(this,this.T9);this.EQ=new jw(e);g.Q(this,this.EQ);this.Jy=new tH(e);g.Q(this,this.Jy);this.tN=new xF(e);g.Q(this,this.tN); this.EQ=new jw(e);g.Q(this,this.EQ);this.SN=nn(function(){return new Bu}); g.Q(this,this.SN);this.fE=nn(function(){return new X7(A.zZ)}); g.Q(this,this.fE);this.G$=nn(function(){return new VYE(A.q7,A.Pk,e,C,A.AM)}); g.Q(this,this.G$);this.dN=nn(function(){return new Lv(A.PG,r,T)}); g.Q(this,this.dN);this.Bo=nn(function(){return new ec(A.wP,A.Pk,A.T9,A.AM)}); g.Q(this,this.Bo);this.kI=nn(function(){return new TK(e,A.EQ,A.T9,A.Hk,A.xk,A.zZ,A.Pk,M,A.p$,A.AM,A.If,A.s2,A.oJ,A.d7,A.Vi,A.P9,A.DM,A.wP,C,k,X)}); g.Q(this,this.kI);this.zD=nn(function(){return new R9M(A.zZ,A.Pk,A.P9,A.wP,A.AM)}); g.Q(this,this.zD);this.yQ=nn(function(){return new tZ5(A.q7,A.zZ,A.Pk,C,A.AM,A.oX,A.tN,A.P9,A.wP,y)}); g.Q(this,this.yQ);this.q9=nn(function(){return new fh5(A.q7,A.Pk,C)}); g.Q(this,this.q9);this.Ib=new $L(e,this.uL,T);g.Q(this,this.Ib);this.V2={F0:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.PG],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Gx],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.KE],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Sp],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.kx]]),Fs:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.R1],["SLOT_TYPE_ABOVE_FEED",this.PE],["SLOT_TYPE_FORECASTING",this.PE], ["SLOT_TYPE_IN_PLAYER",this.PE],["SLOT_TYPE_PLAYER_BYTES",this.PE],["SLOT_TYPE_PLAYER_UNDERLAY",this.PE],["SLOT_TYPE_PLAYBACK_TRACKING",this.PE],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.PE]]),ym:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.ZW],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.ZW],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.v9],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.v9],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.v9],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.v9],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.v9],["TRIGGER_TYPE_SLOT_ID_EXITED",this.v9],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.v9],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.v9],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.v9],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.v9],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.v9],["TRIGGER_TYPE_CLOSE_REQUESTED",this.oX],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.DW],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.Kq],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.Kq],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.Kq],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Kq],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Kq],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.Kq],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Kq],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.YL],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.YL],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.T9],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.DW],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Jy],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.tN],["TRIGGER_TYPE_AD_BREAK_STARTED",this.EQ],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.VT],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.VT],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.VT],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.VT],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.VT]]),hc:new Map([["SLOT_TYPE_ABOVE_FEED",this.SN], ["SLOT_TYPE_AD_BREAK_REQUEST",this.SN],["SLOT_TYPE_FORECASTING",this.SN],["SLOT_TYPE_IN_PLAYER",this.SN],["SLOT_TYPE_PLAYER_BYTES",this.fE],["SLOT_TYPE_PLAYER_UNDERLAY",this.SN],["SLOT_TYPE_PLAYBACK_TRACKING",this.SN],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.SN]]),L9:new Map([["SLOT_TYPE_ABOVE_FEED",this.G$],["SLOT_TYPE_AD_BREAK_REQUEST",this.dN],["SLOT_TYPE_FORECASTING",this.Bo],["SLOT_TYPE_PLAYER_BYTES",this.kI],["SLOT_TYPE_PLAYBACK_TRACKING",this.zD],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.zD],["SLOT_TYPE_IN_PLAYER",this.yQ],["SLOT_TYPE_PLAYER_UNDERLAY",this.q9]])};this.listeners=[C.get()];this.cg={PG:this.PG,mW:this.wP.get(),Y1:this.P9.get(),f8:this.zZ.get(),Sp:this.Sp,hP:T.get(),rI:this.uL.get(),iL:this.ZW,D3:C.get(),zo:this.Hk.get()}}; wSM=function(e,N,y,w,E){g.x.call(this);var A=this,T=nn(function(){return new ns(A.wP)}); g.Q(this,T);var p=nn(function(){return new ml(T,A.wP)}); g.Q(this,p);var C=nn(function(){return new hH}); g.Q(this,C);var r=nn(function(){return new oc(e)}); g.Q(this,r);var Y=nn(function(){return new Hu(T,p,A.wP)}); g.Q(this,Y);var M=nn(function(){return new GB}); g.Q(this,M);this.q7=nn(function(){return new Mr(N)}); g.Q(this,this.q7);this.P9=nn(function(){return new m$(E)}); g.Q(this,this.P9);this.d7=nn(function(){return new O4(N)}); g.Q(this,this.d7);this.oJ=nn(function(){return new Rj(N)}); g.Q(this,this.oJ);this.s2=nn(function(){return new oa(N)}); g.Q(this,this.s2);this.Vi=nn(function(){return new GI(N)}); g.Q(this,this.Vi);this.wP=nn(function(){return new U4(N)}); g.Q(this,this.wP);var l=nn(function(){return new YL(w)}); g.Q(this,l);var F=nn(function(){return new Mx(A.wP)}); g.Q(this,F);var S=nn(function(){return new Cs(T,Y,p,A.wP,F,null,null,A.Gx,A.VT)}); g.Q(this,S);this.DM=nn(function(){return new b9(N)}); g.Q(this,this.DM);this.uL=nn(function(){return new Wa}); g.Q(this,this.uL);this.Hk=nn(function(){return new AM(N,M,A.wP)}); g.Q(this,this.Hk);var k=K7({Hk:this.Hk,wP:this.wP,yT:F}),X=k.context,d=k.Kw;this.H9=k.H9;this.p$=nn(function(){return new ST(N,A.wP,A.Pk)}); this.zZ=nn(function(){return new Td(N,A.Hk,A.wP)}); g.Q(this,this.zZ);this.AM=nn(function(){return new aj(A.zZ,N,A.wP)}); g.Q(this,this.AM);this.Pk=nn(function(){return new Ey(N,C,A.AM,A.Hk,A.H9,A.wP,d)}); g.Q(this,this.Pk);this.If=nn(function(){return new OG(A.wP)}); g.Q(this,this.If);this.KE=new F7(lP,cv,function(V,Z,n,R){return KN(p.get(),V,Z,n,R)},r,Y,p,F,this.wP,this.Hk); g.Q(this,this.KE);this.Sp=new Sw(r,S,y,this.wP,e,this.Hk,this.zZ,this.d7);g.Q(this,this.Sp);var v=new WR(N,this.Sp,this.zZ,this.Hk,this.p$);this.gm=nn(function(){return v}); this.ji=v;this.Gx=new YF(r,Y,this.gm,this.p$,this.zZ,this.wP,this.Pk);g.Q(this,this.Gx);this.kx=new bP(r,Y,this.oJ,this.gm,X);g.Q(this,this.kx);this.PG=new DC(this.wP,r,Y,S,this.Hk,this.kx,y);g.Q(this,this.PG);this.R1=nn(function(){return new YQ(l,p,F,A.wP,A.Pk,A.zZ)}); g.Q(this,this.R1);this.PE=nn(function(){return new MG}); g.Q(this,this.PE);this.ZW=new Ic(e,this.q7,this.wP);g.Q(this,this.ZW);this.v9=new vu(e);g.Q(this,this.v9);this.oX=new zB(e);g.Q(this,this.oX);this.DW=new Dz(e,this.gm,X);g.Q(this,this.DW);this.Kq=new g$(e,this.oJ,this.zZ,this.Hk,X);g.Q(this,this.Kq);this.T9=new fs(e);g.Q(this,this.T9);this.Jy=new tH(e);g.Q(this,this.Jy);this.tN=new xF(e);g.Q(this,this.tN);this.xk=nn(function(){return new hM(N)}); g.Q(this,this.xk);this.EQ=new jw(e);g.Q(this,this.EQ);this.VT=new uP(e,this.p$,this.zZ,this.Pk,this.gm);g.Q(this,this.VT);this.SN=nn(function(){return new Bu}); g.Q(this,this.SN);this.fE=nn(function(){return new X7(A.zZ)}); g.Q(this,this.fE);this.dN=nn(function(){return new Lv(A.PG,r,T)}); g.Q(this,this.dN);this.Bo=nn(function(){return new ec(A.wP,A.Pk,A.T9,A.AM)}); g.Q(this,this.Bo);this.yQ=nn(function(){return new umM(A.q7,A.zZ,A.Pk,C,A.AM,A.oX,A.tN,A.P9,A.wP,y)}); g.Q(this,this.yQ);this.kI=nn(function(){return new Jc(e,A.EQ,A.T9,A.Pk,A.AM,A.If,A.s2,A.Hk,A.zZ,A.oJ,A.d7,A.Vi,A.P9,A.DM,A.wP,A.xk,X,d)}); g.Q(this,this.kI);this.Ib=new $L(e,this.uL,T);g.Q(this,this.Ib);this.V2={F0:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.PG],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Gx],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.KE],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Sp],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.kx]]),Fs:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.R1],["SLOT_TYPE_FORECASTING",this.PE],["SLOT_TYPE_IN_PLAYER",this.PE], ["SLOT_TYPE_PLAYER_BYTES",this.PE]]),ym:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.ZW],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.v9],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.v9],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.v9],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.v9],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.v9],["TRIGGER_TYPE_SLOT_ID_EXITED",this.v9],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.v9],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.v9],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.v9], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.v9],["TRIGGER_TYPE_CLOSE_REQUESTED",this.oX],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.DW],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Kq],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Kq],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Kq],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.T9],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.DW],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Jy],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.tN],["TRIGGER_TYPE_AD_BREAK_STARTED",this.EQ],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.VT],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.VT],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.VT],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.VT],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.VT]]),hc:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.SN],["SLOT_TYPE_FORECASTING",this.SN],["SLOT_TYPE_IN_PLAYER",this.SN],["SLOT_TYPE_PLAYER_BYTES",this.fE]]), L9:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.dN],["SLOT_TYPE_FORECASTING",this.Bo],["SLOT_TYPE_IN_PLAYER",this.yQ],["SLOT_TYPE_PLAYER_BYTES",this.kI]])};this.listeners=[C.get()];this.cg={PG:this.PG,mW:this.wP.get(),Y1:this.P9.get(),f8:this.zZ.get(),Sp:this.Sp,hP:T.get(),rI:this.uL.get(),iL:this.ZW,D3:C.get(),zo:this.Hk.get()}}; Ec5=function(e,N,y,w,E){g.x.call(this);var A=this,T=nn(function(){return new ns(A.wP)}); g.Q(this,T);var p=nn(function(){return new ml(T,A.wP)}); g.Q(this,p);var C=nn(function(){return new hH}); g.Q(this,C);var r=nn(function(){return new oc(e)}); g.Q(this,r);var Y=nn(function(){return new Hu(T,p,A.wP)}); g.Q(this,Y);var M=nn(function(){return new GB}); g.Q(this,M);this.q7=nn(function(){return new Mr(N)}); g.Q(this,this.q7);this.P9=nn(function(){return new m$(E)}); g.Q(this,this.P9);this.d7=nn(function(){return new O4(N)}); g.Q(this,this.d7);this.oJ=nn(function(){return new Rj(N)}); g.Q(this,this.oJ);this.s2=nn(function(){return new oa(N)}); g.Q(this,this.s2);this.Vi=nn(function(){return new GI(N)}); g.Q(this,this.Vi);this.wP=nn(function(){return new U4(N)}); g.Q(this,this.wP);var l=nn(function(){return new YL(w)}); g.Q(this,l);var F=nn(function(){return new Mx(A.wP)}); g.Q(this,F);var S=nn(function(){return new Cs(T,Y,p,A.wP,F,null,null,null,null)}); g.Q(this,S);this.DM=nn(function(){return new b9(N)}); g.Q(this,this.DM);this.Hk=nn(function(){return new AM(N,M,A.wP)}); g.Q(this,this.Hk);var k=K7({Hk:this.Hk,wP:this.wP,yT:F}),X=k.context,d=k.Kw;this.H9=k.H9;this.zZ=nn(function(){return new Td(N,A.Hk,A.wP)}); g.Q(this,this.zZ);this.AM=nn(function(){return new aj(A.zZ,N,A.wP)}); g.Q(this,this.AM);this.Pk=nn(function(){return new Ey(N,C,A.AM,A.Hk,A.H9,A.wP,d)}); g.Q(this,this.Pk);this.If=nn(function(){return new OG(A.wP)}); g.Q(this,this.If);this.KE=new F7(lP,cv,function(V,Z,n,R){return KN(p.get(),V,Z,n,R)},r,Y,p,F,this.wP,this.Hk); g.Q(this,this.KE);this.Sp=new Sw(r,S,y,this.wP,e,this.Hk,this.zZ,this.d7);g.Q(this,this.Sp);var v=new WR(N,this.Sp,this.zZ,this.Hk);this.gm=nn(function(){return v}); this.ji=v;this.kx=new bP(r,Y,this.oJ,this.gm,X);g.Q(this,this.kx);this.PG=new DC(this.wP,r,Y,S,this.Hk,this.kx,y);g.Q(this,this.PG);this.R1=nn(function(){return new YQ(l,p,F,A.wP,A.Pk,A.zZ)}); g.Q(this,this.R1);this.PE=nn(function(){return new MG}); g.Q(this,this.PE);this.ZW=new Ic(e,this.q7,this.wP);g.Q(this,this.ZW);this.v9=new vu(e);g.Q(this,this.v9);this.DW=new Dz(e,this.gm,X);g.Q(this,this.DW);this.Kq=new g$(e,this.oJ,this.zZ,this.Hk,X);g.Q(this,this.Kq);this.T9=new fs(e);g.Q(this,this.T9);this.Jy=new tH(e);g.Q(this,this.Jy);this.xk=nn(function(){return new hM(N)}); g.Q(this,this.xk);this.EQ=new jw(e);g.Q(this,this.EQ);this.SN=nn(function(){return new Bu}); g.Q(this,this.SN);this.fE=nn(function(){return new X7(A.zZ)}); g.Q(this,this.fE);this.dN=nn(function(){return new Lv(A.PG,r,T)}); g.Q(this,this.dN);this.Bo=nn(function(){return new ec(A.wP,A.Pk,A.T9,A.AM)}); g.Q(this,this.Bo);this.Q1=nn(function(){return new WkM(A.q7,A.zZ,A.Pk,C,y,A.wP)}); g.Q(this,this.Q1);this.kI=nn(function(){return new Jc(e,A.EQ,A.T9,A.Pk,A.AM,A.If,A.s2,A.Hk,A.zZ,A.oJ,A.d7,A.Vi,A.P9,A.DM,A.wP,A.xk,X,d)}); g.Q(this,this.kI);this.V2={F0:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.PG],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.KE],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Sp],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.kx]]),Fs:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.R1],["SLOT_TYPE_FORECASTING",this.PE],["SLOT_TYPE_IN_PLAYER",this.PE],["SLOT_TYPE_PLAYER_BYTES",this.PE]]),ym:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.ZW],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.v9],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.v9],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.v9],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.v9],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.v9],["TRIGGER_TYPE_SLOT_ID_EXITED",this.v9],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.v9],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.v9],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.v9],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.DW],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Kq],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.Kq],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.T9],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.DW],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Jy],["TRIGGER_TYPE_AD_BREAK_STARTED",this.EQ]]),hc:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.SN],["SLOT_TYPE_ABOVE_FEED",this.SN],["SLOT_TYPE_FORECASTING",this.SN],["SLOT_TYPE_IN_PLAYER",this.SN],["SLOT_TYPE_PLAYER_BYTES",this.fE]]),L9:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.dN],["SLOT_TYPE_FORECASTING",this.Bo],["SLOT_TYPE_IN_PLAYER", this.Q1],["SLOT_TYPE_PLAYER_BYTES",this.kI]])};this.listeners=[C.get()];this.cg={PG:this.PG,mW:this.wP.get(),Y1:this.P9.get(),f8:this.zZ.get(),Sp:this.Sp,hP:T.get(),rI:null,iL:this.ZW,D3:C.get(),zo:this.Hk.get()}}; ADP=function(e,N,y,w,E){g.x.call(this);var A=this,T=nn(function(){return new ns(A.wP)}); g.Q(this,T);var p=nn(function(){return new ml(T,A.wP)}); g.Q(this,p);var C=nn(function(){return new hH}); g.Q(this,C);var r=nn(function(){return new oc(e)}); g.Q(this,r);var Y=nn(function(){return new Hu(T,p,A.wP)}); g.Q(this,Y);var M=nn(function(){return new GB}); g.Q(this,M);this.Hs=nn(function(){return new Nbs(N)}); g.Q(this,this.Hs);this.q7=nn(function(){return new Mr(N)}); g.Q(this,this.q7);this.P9=nn(function(){return new m$(E)}); g.Q(this,this.P9);this.d7=nn(function(){return new O4(N)}); g.Q(this,this.d7);this.oJ=nn(function(){return new Rj(N)}); g.Q(this,this.oJ);this.s2=nn(function(){return new oa(N)}); g.Q(this,this.s2);this.Vi=nn(function(){return new GI(N)}); g.Q(this,this.Vi);this.wP=nn(function(){return new U4(N)}); g.Q(this,this.wP);var l=nn(function(){return new YL(w)}); g.Q(this,l);var F=nn(function(){return new Mx(A.wP)}); g.Q(this,F);var S=nn(function(){return new Cs(T,Y,p,A.wP,F,null,null,null,null)}); g.Q(this,S);this.DM=nn(function(){return new b9(N)}); g.Q(this,this.DM);this.Hk=nn(function(){return new AM(N,M,A.wP)}); g.Q(this,this.Hk);var k=K7({Hk:this.Hk,wP:this.wP,yT:F}),X=k.context,d=k.Kw;this.H9=k.H9;this.zZ=nn(function(){return new Td(N,A.Hk,A.wP)}); g.Q(this,this.zZ);this.AM=nn(function(){return new aj(A.zZ,N,A.wP)}); g.Q(this,this.AM);this.Pk=nn(function(){return new Ey(N,C,A.AM,A.Hk,A.H9,A.wP,d)}); g.Q(this,this.Pk);this.If=nn(function(){return new OG(A.wP)}); g.Q(this,this.If);this.KE=new F7(cw5,cv,function(V,Z,n,R){return QsF(p.get(),V,Z,n,R)},r,Y,p,F,this.wP,this.Hk); g.Q(this,this.KE);this.Sp=new Sw(r,S,y,this.wP,e,this.Hk,this.zZ,this.d7);g.Q(this,this.Sp);var v=new WR(N,this.Sp,this.zZ,this.Hk);this.gm=nn(function(){return v}); this.ji=v;this.kx=new bP(r,Y,this.oJ,this.gm,X);g.Q(this,this.kx);this.PG=new DC(this.wP,r,Y,S,this.Hk,this.kx,y);g.Q(this,this.PG);this.R1=nn(function(){return new YQ(l,p,F,A.wP,A.Pk,A.zZ)}); g.Q(this,this.R1);this.PE=nn(function(){return new MG}); g.Q(this,this.PE);this.ZW=new Ic(e,this.q7,this.wP);g.Q(this,this.ZW);this.v9=new vu(e);g.Q(this,this.v9);this.DW=new Dz(e,this.gm,X);g.Q(this,this.DW);this.Kq=new g$(e,this.oJ,this.zZ,this.Hk,X);g.Q(this,this.Kq);this.T9=new fs(e);g.Q(this,this.T9);this.Jy=new tH(e);g.Q(this,this.Jy);this.xk=nn(function(){return new hM(N)}); g.Q(this,this.xk);this.EQ=new jw(e);g.Q(this,this.EQ);this.SN=nn(function(){return new Bu}); g.Q(this,this.SN);this.fE=nn(function(){return new X7(A.zZ)}); g.Q(this,this.fE);this.dN=nn(function(){return new Lv(A.PG,r,T)}); g.Q(this,this.dN);this.Bo=nn(function(){return new ec(A.wP,A.Pk,A.T9,A.AM)}); g.Q(this,this.Bo);this.kI=nn(function(){return new Jc(e,A.EQ,A.T9,A.Pk,A.AM,A.If,A.s2,A.Hk,A.zZ,A.oJ,A.d7,A.Vi,A.P9,A.DM,A.wP,A.xk,X,d)}); g.Q(this,this.kI);this.Gs=nn(function(){return new ZVn(A.q7,A.zZ,A.Pk,C,A.Hs,y,A.Hk)}); g.Q(this,this.Gs);this.V2={F0:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.PG],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.KE],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Sp],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.kx]]),Fs:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.R1],["SLOT_TYPE_FORECASTING",this.PE],["SLOT_TYPE_IN_PLAYER",this.PE],["SLOT_TYPE_PLAYER_BYTES",this.PE]]),ym:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.ZW],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.v9],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.v9],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.v9],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.v9],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.v9],["TRIGGER_TYPE_SLOT_ID_EXITED",this.v9],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.v9],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.v9],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.v9],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.DW],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Kq],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.Kq],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.T9],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.DW],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Jy],["TRIGGER_TYPE_AD_BREAK_STARTED",this.EQ]]),hc:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.SN],["SLOT_TYPE_FORECASTING",this.SN],["SLOT_TYPE_IN_PLAYER",this.SN],["SLOT_TYPE_PLAYER_BYTES",this.fE]]),L9:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.dN],["SLOT_TYPE_FORECASTING",this.Bo],["SLOT_TYPE_IN_PLAYER",this.Gs],["SLOT_TYPE_PLAYER_BYTES", this.kI]])};this.listeners=[C.get()];this.cg={PG:this.PG,mW:this.wP.get(),Y1:this.P9.get(),f8:this.zZ.get(),Sp:this.Sp,hP:T.get(),rI:null,iL:this.ZW,D3:C.get(),zo:this.Hk.get()}}; Tb3=function(e,N,y,w,E){g.x.call(this);var A=this,T=nn(function(){return new ns(A.wP)}); g.Q(this,T);var p=nn(function(){return new ml(T,A.wP)}); g.Q(this,p);var C=nn(function(){return new hH}); g.Q(this,C);var r=nn(function(){return new oc(e)}); g.Q(this,r);var Y=nn(function(){return new Hu(T,p,A.wP)}); g.Q(this,Y);var M=nn(function(){return new GB}); g.Q(this,M);this.Hs=nn(function(){return new Nbs(N)}); g.Q(this,this.Hs);this.q7=nn(function(){return new Mr(N)}); g.Q(this,this.q7);this.P9=nn(function(){return new m$(E)}); g.Q(this,this.P9);this.d7=nn(function(){return new O4(N)}); g.Q(this,this.d7);this.oJ=nn(function(){return new Rj(N)}); g.Q(this,this.oJ);this.s2=nn(function(){return new oa(N)}); g.Q(this,this.s2);this.Vi=nn(function(){return new GI(N)}); g.Q(this,this.Vi);this.wP=nn(function(){return new U4(N)}); g.Q(this,this.wP);var l=nn(function(){return new YL(w)}); g.Q(this,l);var F=nn(function(){return new Mx(A.wP)}); g.Q(this,F);this.DM=nn(function(){return new b9(N)}); g.Q(this,this.DM);this.Hk=nn(function(){return new AM(N,M,A.wP)}); g.Q(this,this.Hk);var S=K7({Hk:this.Hk,wP:this.wP,yT:F}),k=S.context,X=S.Kw;this.H9=S.H9;this.p$=nn(function(){return new ST(N,A.wP,A.Pk)}); g.Q(this,this.p$);this.xk=nn(function(){return new hM(N)}); g.Q(this,this.xk);this.zZ=nn(function(){return new Td(N,A.Hk,A.wP)}); g.Q(this,this.zZ);S=nn(function(){return new Cs(T,Y,p,A.wP,F,null,A.zZ,A.Gx,A.VT,3)}); g.Q(this,S);this.If=nn(function(){return new OG(A.wP)}); this.AM=nn(function(){return new aj(A.zZ,N,A.wP)}); g.Q(this,this.AM);this.Pk=nn(function(){return new Ey(N,C,A.AM,A.Hk,A.H9,A.wP,X)}); g.Q(this,this.Pk);this.Sp=new Sw(r,S,y,this.wP,e,this.Hk,this.zZ,this.d7);g.Q(this,this.Sp);var d=new WR(N,this.Sp,this.zZ,this.Hk,this.p$);this.gm=nn(function(){return d}); this.ji=d;this.KE=new F7(kQ9,cv,function(v,V,Z,n){return QsF(p.get(),v,V,Z,n)},r,Y,p,F,this.wP,this.Hk); g.Q(this,this.KE);this.Gx=new YF(r,Y,this.gm,this.p$,this.zZ,this.wP,this.Pk,this.xk);g.Q(this,this.Gx);this.kx=new bP(r,Y,this.oJ,this.gm,k);g.Q(this,this.kx);this.PG=new DC(this.wP,r,Y,S,this.Hk,this.kx,y);g.Q(this,this.PG);this.R1=nn(function(){return new YQ(l,p,F,A.wP,A.Pk,A.zZ,A.xk)}); g.Q(this,this.R1);this.PE=nn(function(){return new MG}); g.Q(this,this.PE);this.ZW=new Ic(e,this.q7,this.wP);g.Q(this,this.ZW);this.v9=new vu(e);g.Q(this,this.v9);this.DW=new Dz(e,this.gm,k);g.Q(this,this.DW);this.Kq=new g$(e,this.oJ,this.zZ,this.Hk,k);g.Q(this,this.Kq);this.YL=new V8(e,this.Hk);g.Q(this,this.YL);this.VT=new uP(e,this.p$,this.zZ,this.Pk,this.gm);g.Q(this,this.VT);this.T9=new fs(e);g.Q(this,this.T9);this.Jy=new tH(e);g.Q(this,this.Jy);this.EQ=new jw(e);g.Q(this,this.EQ);this.SN=nn(function(){return new Bu}); g.Q(this,this.SN);this.fE=nn(function(){return new X7(A.zZ)}); g.Q(this,this.fE);this.dN=nn(function(){return new Lv(A.PG,r,T)}); g.Q(this,this.dN);this.Bo=nn(function(){return new ec(A.wP,A.Pk,A.T9,A.AM)}); g.Q(this,this.Bo);this.kI=nn(function(){return new TK(e,A.EQ,A.T9,A.Hk,A.xk,A.zZ,A.Pk,M,A.p$,A.AM,A.If,A.s2,A.oJ,A.d7,A.Vi,A.P9,A.DM,A.wP,C,k,X)}); g.Q(this,this.kI);this.yQ=nn(function(){return new xYs(A.q7,A.zZ,A.Pk,C,A.Hs,y,A.wP,A.Hk)}); g.Q(this,this.yQ);this.V2={F0:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.PG],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Gx],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.KE],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Sp],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.kx]]),Fs:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.R1],["SLOT_TYPE_FORECASTING",this.PE],["SLOT_TYPE_IN_PLAYER",this.PE],["SLOT_TYPE_PLAYER_BYTES",this.PE]]),ym:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.ZW],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.v9],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.v9],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.v9],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.v9],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.v9],["TRIGGER_TYPE_SLOT_ID_EXITED",this.v9],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.v9],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.v9],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.v9],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.DW],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.Kq],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Kq],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.YL],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.YL],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.T9],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.DW],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Jy],["TRIGGER_TYPE_AD_BREAK_STARTED",this.EQ],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.VT],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", this.VT],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.VT],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.VT],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.VT]]),hc:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.SN],["SLOT_TYPE_FORECASTING",this.SN],["SLOT_TYPE_IN_PLAYER",this.SN],["SLOT_TYPE_PLAYER_BYTES",this.fE]]),L9:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.dN],["SLOT_TYPE_FORECASTING",this.Bo],["SLOT_TYPE_PLAYER_BYTES",this.kI],["SLOT_TYPE_IN_PLAYER",this.yQ]])};this.listeners=[C.get()]; this.cg={PG:this.PG,mW:this.wP.get(),Y1:this.P9.get(),f8:this.zZ.get(),Sp:this.Sp,hP:T.get(),rI:null,iL:this.ZW,D3:C.get(),zo:this.Hk.get()}}; pSF=function(e,N,y,w){function E(){return A.N} g.x.call(this);var A=this;e.X().experiments.gP("html5_dispose_of_manager_before_dependency")?(this.J=JDM(E,e,N,y,w),this.N=(new Qk(this.J)).K(),g.Q(this,this.N),g.Q(this,this.J)):(this.J=JDM(E,e,N,y,w),g.Q(this,this.J),this.N=(new Qk(this.J)).K(),g.Q(this,this.N))}; kL=function(e){return e.J.cg}; JDM=function(e,N,y,w,E){try{var A=N.X();if(g.na(A))var T=new yDM(e,N,y,w,E);else if(g.mT(A))T=new wSM(e,N,y,w,E);else if(Vy(A))T=new Ec5(e,N,y,w,E);else if(g.ZY(A))T=new ADP(e,N,y,w,E);else if(g.IK(A))T=new Tb3(e,N,y,w,E);else throw new TypeError("Unknown web interface");return T}catch(p){return T=N.X(),YN("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:T.J.cplatform,interface:T.J.c,OIB:T.J.cver,qdq:T.J.ctheme,wFk:T.J.cplayer,gyl:T.playerStyle}),new KtE(e,N,y,w,E)}}; CD_=function(e){Hq.call(this,e)}; rD5=function(e,N,y,w,E){sZ.call(this,e,{S:"div",B:"ytp-ad-timed-pie-countdown-container",W:[{S:"svg",B:"ytp-ad-timed-pie-countdown",V:{viewBox:"0 0 20 20"},W:[{S:"circle",B:"ytp-ad-timed-pie-countdown-background",V:{r:"10",cx:"10",cy:"10"}},{S:"circle",B:"ytp-ad-timed-pie-countdown-inner",V:{r:"5",cx:"10",cy:"10"}},{S:"circle",B:"ytp-ad-timed-pie-countdown-outer",V:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",N,y,w,E);this.j=this.hW("ytp-ad-timed-pie-countdown-container");this.K=this.hW("ytp-ad-timed-pie-countdown-inner"); this.Z=this.hW("ytp-ad-timed-pie-countdown-outer");this.N=Math.ceil(2*Math.PI*5);this.hide()}; $1P=function(e,N,y,w,E,A){lj.call(this,e,{S:"div",B:"ytp-ad-action-interstitial",V:{tabindex:"0"},W:[{S:"div",B:"ytp-ad-action-interstitial-background-container"},{S:"div",B:"ytp-ad-action-interstitial-slot",W:[{S:"div",B:"ytp-ad-action-interstitial-instream-info"},{S:"div",B:"ytp-ad-action-interstitial-card",W:[{S:"div",B:"ytp-ad-action-interstitial-image-container"},{S:"div",B:"ytp-ad-action-interstitial-headline-container"},{S:"div",B:"ytp-ad-action-interstitial-description-container"},{S:"div", B:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",N,y,w);this.ZH=E;this.uC=A;this.navigationEndpoint=this.J=this.skipButton=this.N=this.actionButton=null;this.Zl=this.hW("ytp-ad-action-interstitial-instream-info");this.aq=this.hW("ytp-ad-action-interstitial-image-container");this.D=new jY(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,"ytp-ad-action-interstitial-image");g.Q(this,this.D);this.D.yB(this.aq);this.i9=this.hW("ytp-ad-action-interstitial-headline-container"); this.Z=new UZ(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,"ytp-ad-action-interstitial-headline");g.Q(this,this.Z);this.Z.yB(this.i9);this.Kh=this.hW("ytp-ad-action-interstitial-description-container");this.K=new UZ(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,"ytp-ad-action-interstitial-description");g.Q(this,this.K);this.K.yB(this.Kh);this.VB=this.hW("ytp-ad-action-interstitial-background-container");this.Bk=new jY(this.api,this.layoutId,this.interactionLoggingClientData, this.Y1,"ytp-ad-action-interstitial-background",!0);g.Q(this,this.Bk);this.Bk.yB(this.VB);this.Ut=this.hW("ytp-ad-action-interstitial-action-button-container");this.slot=this.hW("ytp-ad-action-interstitial-slot");this.kz=this.hW("ytp-ad-action-interstitial-card");this.j=new iY;g.Q(this,this.j);this.hide()}; YuH=function(e){var N=g.H4("html5-video-player");N&&g.Y1(N,"ytp-ad-display-override",e)}; SuE=function(e,N,y,w){lj.call(this,e,{S:"div",B:"ytp-ad-overlay-slot",W:[{S:"div",B:"ytp-ad-overlay-container"}]},"invideo-overlay",N,y,w);this.D=[];this.VB=this.i9=this.j=this.Ut=this.Zl=null;this.Bk=!1;this.Z=null;this.Kh=0;e=this.hW("ytp-ad-overlay-container");this.aq=new JF(e,45E3,6E3,.3,.4);g.Q(this,this.aq);this.K=MGF(this);g.Q(this,this.K);this.K.yB(e);this.N=lPP(this);g.Q(this,this.N);this.N.yB(e);this.J=FeE(this);g.Q(this,this.J);this.J.yB(e);this.hide()}; MGF=function(e){var N=new g.Mu({S:"div",B:"ytp-ad-text-overlay",W:[{S:"div",B:"ytp-ad-overlay-ad-info-button-container"},{S:"div",B:"ytp-ad-overlay-close-container",W:[{S:"button",B:"ytp-ad-overlay-close-button",W:[g1(ocM)]}]},{S:"div",B:"ytp-ad-overlay-title",b9:"{{title}}"},{S:"div",B:"ytp-ad-overlay-desc",b9:"{{description}}"},{S:"div",dP:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],b9:"{{displayUrl}}"}]});e.Y(N.hW("ytp-ad-overlay-title"),"click",function(y){Bv(e,N.element,y)}); e.Y(N.hW("ytp-ad-overlay-link"),"click",function(y){Bv(e,N.element,y)}); e.Y(N.hW("ytp-ad-overlay-close-container"),"click",e.UZ);N.hide();return N}; lPP=function(e){var N=new g.Mu({S:"div",dP:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],W:[{S:"div",B:"ytp-ad-overlay-ad-info-button-container"},{S:"div",B:"ytp-ad-overlay-close-container",W:[{S:"button",B:"ytp-ad-overlay-close-button",W:[g1(ocM)]}]},{S:"div",B:"ytp-ad-overlay-text-image",W:[{S:"img",V:{src:"{{imageUrl}}"}}]},{S:"div",B:"ytp-ad-overlay-title",b9:"{{title}}"},{S:"div",B:"ytp-ad-overlay-desc",b9:"{{description}}"},{S:"div",dP:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], b9:"{{displayUrl}}"}]});e.Y(N.hW("ytp-ad-overlay-title"),"click",function(y){Bv(e,N.element,y)}); e.Y(N.hW("ytp-ad-overlay-link"),"click",function(y){Bv(e,N.element,y)}); e.Y(N.hW("ytp-ad-overlay-close-container"),"click",e.UZ);e.Y(N.hW("ytp-ad-overlay-text-image"),"click",e.pEq);N.hide();return N}; FeE=function(e){var N=new g.Mu({S:"div",B:"ytp-ad-image-overlay",W:[{S:"div",B:"ytp-ad-overlay-ad-info-button-container"},{S:"div",B:"ytp-ad-overlay-close-container",W:[{S:"button",B:"ytp-ad-overlay-close-button",W:[g1(ocM)]}]},{S:"div",B:"ytp-ad-overlay-image",W:[{S:"img",V:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});e.Y(N.hW("ytp-ad-overlay-image"),"click",function(y){Bv(e,N.element,y)}); e.Y(N.hW("ytp-ad-overlay-close-container"),"click",e.UZ);N.hide();return N}; b4M=function(e,N){if(N){var y=g.m(N,IQ)||null;y==null?g.t0(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(N=g.H4("video-ads ytp-ad-module")||null,N==null?g.t0(Error("Could not locate the root ads container element to attach the ad info dialog.")):(e.i9=new g.Mu({S:"div",B:"ytp-ad-overlay-ad-info-dialog-container"}),g.Q(e,e.i9),e.i9.yB(N),N=new GV(e.api,e.layoutId,e.interactionLoggingClientData,e.Y1,e.i9.element,!1),g.Q(e,N),N.init(TV("ad-info-hover-text-button"),y,e.macros), e.Z?(N.yB(e.Z,0),N.subscribe("f",e.o_h,e),N.subscribe("e",e.UG,e),e.Y(e.Z,"click",e.E_s),e.Y(g.H4("ytp-ad-button",N.element),"click",function(){var w;if(g.m((w=g.m(y.button,g.zR))==null?void 0:w.serviceEndpoint,K1M))e.Bk=e.api.getPlayerState(1)===2,e.api.pauseVideo();else e.api.onAdUxClicked("ad-info-hover-text-button",e.layoutId)}),e.VB=N):g.t0(Error("Ad info button container within overlay ad was not present."))))}else g.uA(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; cD9=function(e,N){if(hw9(e,X5)||e.api.isMinimized())return!1;var y=F3(N.title),w=F3(N.description);if(g.kw(y)||g.kw(w))return!1;e.createServerVe(e.K.element,N.trackingParams||null);e.K.updateValue("title",F3(N.title));e.K.updateValue("description",F3(N.description));e.K.updateValue("displayUrl",F3(N.displayUrl));N.navigationEndpoint&&g.Nd(e.D,N.navigationEndpoint);e.K.show();e.aq.start();e.logVisibility(e.K.element,!0);e.Y(e.K.element,"mouseover",function(){e.Kh++}); return!0}; kUn=function(e,N){if(hw9(e,X5)||e.api.isMinimized())return!1;var y=F3(N.title),w=F3(N.description);if(g.kw(y)||g.kw(w))return!1;e.createServerVe(e.N.element,N.trackingParams||null);e.N.updateValue("title",F3(N.title));e.N.updateValue("description",F3(N.description));e.N.updateValue("displayUrl",F3(N.displayUrl));e.N.updateValue("imageUrl",CC5(N.image));N.navigationEndpoint&&g.Nd(e.D,N.navigationEndpoint);e.Ut=N.imageNavigationEndpoint||null;e.N.show();e.aq.start();e.logVisibility(e.N.element,!0); e.Y(e.N.element,"mouseover",function(){e.Kh++}); return!0}; BbH=function(e,N){if(e.api.isMinimized())return!1;var y=rgM(N.image),w=y;y.width0?(N=new up(e.api,e.J),N.yB(e.playerOverlay), g.Q(e,N)):g.t0(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(N)))}}else g.t0(Error("addCommonComponents() needs to be called before starting countdown."))}; fP5=function(e){function N(y){return{toString:function(){return y()}}} e.macros.SURVEY_LOCAL_TIME_EPOCH_S=N(function(){var y=new Date;return(Math.round(y.valueOf()/1E3)+-1*y.getTimezoneOffset()*60).toString()}); e.macros.SURVEY_ELAPSED_MS=N(function(){return(Date.now()-e.K).toString()})}; tGM=function(e,N,y,w,E){vv.call(this,e,N,y,w,"survey-question-multi-select");this.Kh=E;this.noneOfTheAbove=null;this.submitEndpoints=[];this.Z=null;this.hide()}; ukH=function(e,N,y){e.noneOfTheAbove=new zw5(e.api,e.layoutId,e.interactionLoggingClientData,e.Y1);e.noneOfTheAbove.yB(e.answers);e.noneOfTheAbove.init(TV("survey-none-of-the-above"),N,y)}; Z4E=function(e){e.N.forEach(function(N){N.J.toggleButton(!1)}); qu0(e,!0)}; qu0=function(e,N){var y=e.j;e=x1M(e);N=N===void 0?!1:N;y.J&&(e?y.J.hide():y.J.show(),N&&y.J instanceof bp&&!y.J.j&&eW9(y.J,!1));y.N&&(e?y.N.show():y.N.hide())}; x1M=function(e){return e.N.some(function(N){return N.J.isToggled()})||e.noneOfTheAbove.button.isToggled()}; zd=function(e,N,y,w,E){vv.call(this,e,N,y,w,"survey-question-single-select",function(T){A.api.X().T("supports_multi_step_on_desktop")&&E([T])}); var A=this;this.hide()}; i9=function(e,N,y,w){lj.call(this,e,{S:"div",B:"ytp-ad-survey",W:[{S:"div",B:"ytp-ad-survey-questions"}]},"survey",N,y,w);this.questions=[];this.N=[];this.conditioningRules=[];this.J=0;this.Z=this.hW("ytp-ad-survey-questions");this.api.X().T("fix_survey_color_contrast_on_destop")&&this.hW("ytp-ad-survey").classList.add("color-contrast-fix");this.api.X().T("web_enable_speedmaster")&&this.hW("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; Q6F=function(e,N){var y=e.N[N],w;(w=e.K)==null||w.dispose();g.m(y,Pr)?j6E(e,g.m(y,Pr),e.macros):g.m(y,X4)&&nc0(e,g.m(y,X4),e.macros);e.J=N}; j6E=function(e,N,y){var w=new zd(e.api,e.layoutId,e.interactionLoggingClientData,e.Y1,e.j.bind(e));w.yB(e.Z);w.init(TV("survey-question-single-select"),N,y);e.api.X().T("supports_multi_step_on_desktop")?e.K=w:e.questions.push(w);g.Q(e,w)}; nc0=function(e,N,y){var w=new tGM(e.api,e.layoutId,e.interactionLoggingClientData,e.Y1,e.j.bind(e));w.yB(e.Z);w.init(TV("survey-question-multi-select"),N,y);e.api.X().T("supports_multi_step_on_desktop")?e.K=w:e.questions.push(w);g.Q(e,w)}; D_=function(e,N,y,w){lj.call(this,e,{S:"div",B:"ytp-ad-survey-interstitial",W:[{S:"div",B:"ytp-ad-survey-interstitial-contents",W:[{S:"div",B:"ytp-ad-survey-interstitial-logo",W:[{S:"div",B:"ytp-ad-survey-interstitial-logo-image"}]},{S:"div",B:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",N,y,w);this.J=this.actionButton=null;this.interstitial=this.hW("ytp-ad-survey-interstitial");this.N=this.hW("ytp-ad-survey-interstitial-contents");this.text=this.hW("ytp-ad-survey-interstitial-text"); this.logoImage=this.hW("ytp-ad-survey-interstitial-logo-image");this.transition=new g.NE(this,500,!1,300);g.Q(this,this.transition)}; m1M=function(e,N){N=N&&xl(N)||"";if(g.kw(N))g.uA(Error("Found ThumbnailDetails without valid image URL"));else{var y=e.style;e=e.style.cssText;var w=document.implementation.createHTMLDocument("").createElement("DIV");w.style.cssText=e;e=xW3(w.style);y.cssText=[e,'background-image:url("'+N+'");'].join("")}}; H4M=function(e){var N=g.H4("html5-video-player");N&&g.Y1(N,"ytp-ad-display-override",e)}; gV=function(e,N,y,w,E,A){A=A===void 0?0:A;sZ.call(this,e,{S:"div",B:"ytp-preview-ad",W:[{S:"div",B:"ytp-preview-ad__text"}]},"preview-ad",N,y,w,E);var T=this;this.Kh=A;this.N=0;this.j=-1;this.K=this.hW("ytp-preview-ad__text");switch(this.Kh){case 1:this.K.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.NE(this,400,!1,100,function(){T.hide()}); g.Q(this,this.transition);this.hide()}; Va=function(e,N,y,w){lj.call(this,e,{S:"img",B:"ytp-ad-avatar"},"ad-avatar",N,y,w);this.hide()}; KeP=function(e){switch(e.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}}; fe=function(e,N,y,w,E,A){E=E===void 0?!1:E;A=A===void 0?!1:A;lj.call(this,e,{S:"button",B:"ytp-ad-button-vm"},"ad-button",N,y,w);this.buttonText=this.buttonIcon=null;this.hide();this.J=E;this.N=A}; We1=function(e,N,y,w,E){sZ.call(this,e,{S:"div",dP:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],W:[{S:"div",B:"ytp-ad-avatar-lockup-card__avatar_and_text_container",W:[{S:"div",B:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",N,y,w,E);this.startMilliseconds=0;this.adAvatar=new Va(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1);g.Q(this,this.adAvatar);yp(this.element,this.adAvatar.element,0);this.headline=new ip(this.api,this.layoutId, this.interactionLoggingClientData,this.Y1);g.Q(this,this.headline);this.headline.yB(this.hW("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new ip(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1);g.Q(this,this.description);this.description.yB(this.hW("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new fe(this.api, this.layoutId,this.interactionLoggingClientData,this.Y1);g.Q(this,this.adButton);this.adButton.yB(this.element);this.hide()}; tM=function(e,N,y,w){lj.call(this,e,{S:"button",B:"ytp-skip-ad-button",W:[{S:"div",B:"ytp-skip-ad-button__text"}]},"skip-button",N,y,w);var E=this;this.N=!1;this.j=this.hW("ytp-skip-ad-button__text");this.transition=new g.NE(this,500,!1,100,function(){E.hide()}); g.Q(this,this.transition);this.J=new JF(this.element,15E3,5E3,.5,.5,!0);g.Q(this,this.J);this.hide()}; O4P=function(e,N,y,w,E){sZ.call(this,e,{S:"div",B:"ytp-skip-ad"},"skip-ad",N,y,w,E);this.skipOffsetMilliseconds=0;this.j=this.isSkippable=!1;var A;if((A=this.api.getVideoData())==null?0:A.isDaiEnabled())this.j=this.api.X().T("clean_player_style_fix_on_web");if(this.j||!this.api.X().experiments.gP("disable_ad_preview_for_instream_ads"))this.N=new gV(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,this.J),g.Q(this,this.N),this.N.yB(this.element);this.K=new tM(this.api,this.layoutId, this.interactionLoggingClientData,this.Y1);g.Q(this,this.K);this.K.yB(this.element);this.hide()}; u9=function(e,N,y,w){lj.call(this,e,{S:"div",B:"ytp-visit-advertiser-link"},"visit-advertiser-link",N,y,w);this.hide();this.api.T("enable_ad_pod_index_autohide")&&this.element.classList.add("ytp-visit-advertiser-link--clean-player");this.api.T("clean_player_style_fix_on_web")&&this.element.classList.add("ytp-visit-advertiser-link--clean-player-with-light-shadow")}; qr=function(e,N,y,w,E){lj.call(this,e,{S:"div",B:"ytp-ad-player-overlay-layout",W:[{S:"div",B:"ytp-ad-player-overlay-layout__player-card-container"},{S:"div",B:"ytp-ad-player-overlay-layout__ad-info-container"},{S:"div",B:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{S:"div",B:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",N,y,w);this.N=E;this.i9=this.hW("ytp-ad-player-overlay-layout__player-card-container");this.J=this.hW("ytp-ad-player-overlay-layout__ad-info-container"); this.D=this.hW("ytp-ad-player-overlay-layout__skip-or-preview-container");this.Kh=this.hW("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}; Rw3=function(e,N,y,w){lj.call(this,e,{S:"div",B:"ytp-ad-grid-card-text",W:[{S:"div",B:"ytp-ad-grid-card-text__metadata",W:[{S:"div",B:"ytp-ad-grid-card-text__metadata__headline"},{S:"div",B:"ytp-ad-grid-card-text__metadata__description",W:[{S:"div",B:"ytp-ad-grid-card-text__metadata__description__line"},{S:"div",B:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{S:"div",B:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",N,y,w);this.headline=new ip(this.api,this.layoutId,this.interactionLoggingClientData, this.Y1);g.Q(this,this.headline);this.headline.yB(this.hW("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new fe(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,!0);g.Q(this,this.moreInfoButton);this.moreInfoButton.yB(this.hW("ytp-ad-grid-card-text__button"))}; Z_=function(e,N,y,w){lj.call(this,e,{S:"div",B:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",N,y,w);this.J=[]}; xL=function(e,N,y,w,E,A,T){sZ.call(this,e,A,T,N,y,w,E);this.playerProgressOffsetMs=0;this.N=!1}; GU1=function(e){var N=g.H4("html5-video-player");N&&g.Y1(N,"ytp-ad-display-override",e)}; U13=function(e,N,y,w,E){xL.call(this,e,N,y,w,E,{S:"div",B:"ytp-display-underlay-text-grid-cards",W:[{S:"div",B:"ytp-display-underlay-text-grid-cards__content_container",W:[{S:"div",B:"ytp-display-underlay-text-grid-cards__content_container__header",W:[{S:"div",B:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{S:"div",B:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{S:"div",B:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"}, {S:"div",B:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new Z_(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1);g.Q(this,this.adGridCardCollection);this.adGridCardCollection.yB(this.hW("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new fe(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1);g.Q(this,this.adButton);this.adButton.yB(this.hW("ytp-display-underlay-text-grid-cards__content_container__ad_button")); this.K=this.hW("ytp-display-underlay-text-grid-cards__content_container");this.j=this.hW("ytp-display-underlay-text-grid-cards__content_container__header")}; jT=function(e,N,y,w){lj.call(this,e,{S:"div",B:"ytp-ad-details-line"},"ad-details-line",N,y,w);this.J=[];this.hide()}; ne=function(e,N,y,w){lj.call(this,e,{S:"div",B:"ytp-image-background",W:[{S:"img",B:"ytp-image-background-image"}]},"image-background",N,y,w);this.hide()}; LeM=function(e,N,y,w,E){sZ.call(this,e,{S:"svg",B:"ytp-timed-pie-countdown",V:{viewBox:"0 0 20 20"},W:[{S:"circle",B:"ytp-timed-pie-countdown__background",V:{r:"10",cx:"10",cy:"10"}},{S:"circle",B:"ytp-timed-pie-countdown__inner",V:{r:"5",cx:"10",cy:"10"}},{S:"circle",B:"ytp-timed-pie-countdown__outer",V:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",N,y,w,E);this.K=this.hW("ytp-timed-pie-countdown__inner");this.N=Math.ceil(2*Math.PI*5);this.hide()}; Qa=function(e,N,y,w){lj.call(this,e,{S:"div",B:"ytp-video-interstitial-buttoned-centered-layout",V:{tabindex:"0"},W:[{S:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content",W:[{S:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{S:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",W:[{S:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{S:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, {S:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{S:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{S:"div",B:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",N,y,w);this.N=null;this.j=this.hW("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.K=new iY;g.Q(this,this.K);this.hide()}; s6J=function(e){var N=g.H4("html5-video-player");N&&g.Y1(N,"ytp-ad-display-override",e)}; aPn=function(e){if(!e.adAvatar||!g.m(e.adAvatar,mO))return g.t0(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!e.headline)return g.t0(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!e.adBadge||!g.m(e.adBadge,Hv))return g.t0(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!e.adButton||!g.m(e.adButton,Ke))return g.t0(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!e.adInfoRenderer|| !g.m(e.adInfoRenderer,IQ))return g.t0(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;e=e.durationMilliseconds||0;return typeof e!=="number"||e<=0?(g.t0(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+e)),!1):!0}; Wv=function(e,N,y){Hq.call(this,e);this.api=e;this.Y1=N;this.N={};e=new g.W({S:"div",dP:["video-ads","ytp-ad-module"]});g.Q(this,e);KC&&g.pi(e.element,"ytp-ads-tiny-mode");this.L=new k5(e.element);g.Q(this,this.L);g.Pb(this.api,e.element,4);Wr(y)&&(y=new g.W({S:"div",dP:["ytp-ad-underlay"]}),g.Q(this,y),this.K=new k5(y.element),g.Q(this,this.K),g.Pb(this.api,y.element,0));g.Q(this,iln())}; eo1=function(e,N){e=g.zM(e.N,N.id,null);e==null&&g.uA(Error("Component not found for element id: "+N.id));return e||null}; Nc5=function(e){g.dH.call(this,e);var N=this;this.N=null;this.created=!1;this.K=e.X().T("h5_use_refactored_get_ad_break")?new Gn9(this.player):new HR(this.player);this.j=function(){if(N.N!=null)return N.N;var w=new ySH({iL:kL(N.J).iL,zo:kL(N.J).zo,C:N.player,mW:kL(N.J).mW,Pk:N.J.J.Pk,D3:kL(N.J).D3,Vi:N.J.J.Vi});N.N=w.Ls;return N.N}; this.J=new pSF(this.player,this,this.K,this.j);g.Q(this,this.J);var y=e.X();!dX(y)||g.IK(y)||Vy(y)||(g.Q(this,new Wv(e,kL(this.J).Y1,kL(this.J).mW)),g.Q(this,new CD_(e)))}; y1H=function(e){e.created!==e.loaded&&YN("Created and loaded are out of sync")}; A11=function(e){g.dH.prototype.load.call(e);var N=kL(e.J).mW;try{e.player.getRootNode().classList.add("ad-created")}catch(C){YN(C instanceof Error?C:String(C))}var y=e.player.getVideoData(1),w=y&&y.videoId||"",E=y&&y.getPlayerResponse()||{},A=(!e.player.X().experiments.gP("debug_ignore_ad_placements")&&E&&E.adPlacements||[]).map(function(C){return C.adPlacementRenderer}),T=((E==null?void 0:E.adSlots)||[]).map(function(C){return g.m(C,gj)}); E=E.playerConfig&&E.playerConfig.daiConfig&&E.playerConfig.daiConfig.enableDai||!1;y&&y.Cx();A=wA3(A,T,N,kL(e.J).hP);T=y&&y.clientPlaybackNonce||"";y=y&&y.jg||!1;if(k6(N,!0)&&y){var p;N={};(p=e.player.getVideoData())==null||p.Fh("p_cpb",(N.cc=T,N))}p=1E3*e.player.getDuration(1);EGP(e);e.J.J.ji.I$(T,p,y,A.Ad,A.W0,A.Ad,E,w)}; EGP=function(e){var N,y;if(y=(N=e.player.getVideoData(1))==null||!N.jg)N=e.player.X(),y=dX(N)&&!g.Pa(N)&&N.playerStyle==="desktop-polymer";y&&(e=e.player.getInternalApi(),e.addEventListener("updateKevlarOrC3Companion",Ton),e.addEventListener("updateEngagementPanelAction",Jxs),e.addEventListener("changeEngagementPanelVisibility",pi5),window.addEventListener("yt-navigate-start",rxJ))}; Oy=function(e,N){N===e.H1&&(e.H1=void 0)}; Tcn=function(e){var N=kL(e.J).Sp,y=N.j().yU("SLOT_TYPE_PLAYER_BYTES",1);N=Mb(N.Hk.get(),1).clientPlaybackNonce;var w=!1;y=g.c(y);for(var E=y.next();!E.done;E=y.next()){E=E.value;var A=E.slotType==="SLOT_TYPE_PLAYER_BYTES"&&E.slotEntryTrigger instanceof kA?E.slotEntryTrigger.Zf:void 0;A&&A===N&&(w&&YN("More than 1 preroll playerBytes slot detected",E),w=!0)}w||JM(kL(e.J).f8)}; J15=function(e){if(L7(kL(e.J).mW))return!0;var N="";e=g.c(kL(e.J).D3.R$.keys());for(var y=e.next();!y.done;y=e.next()){y=y.value;if(y.slotType==="SLOT_TYPE_PLAYER_BYTES"&&y.Xh==="core")return!0;N+=y.slotType+" "}Math.random()<.01&&YN("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:N});return!1}; pAM=function(e){e=g.c(kL(e.J).D3.R$.values());for(var N=e.next();!N.done;N=e.next())if(N.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; cCF=function(e,N,y,w,E,A){y=y===void 0?[]:y;w=w===void 0?"":w;E=E===void 0?"":E;var T=kL(e.J).mW,p=e.player.getVideoData(1);p&&p.getPlayerResponse();p&&p.Cx();y=wA3(N,y,T,kL(e.J).hP);PIP(kL(e.J).PG,w,y.Ad,y.W0,N,E,A)}; wA3=function(e,N,y,w){N={Ad:[],W0:N};e=g.c(e);for(var E=e.next();!E.done;E=e.next())if((E=E.value)&&E.renderer!=null){var A=E.renderer;if(!y.C.X().T("html5_enable_vod_lasr_with_notify_pacf")){var T=void 0,p=void 0,C=void 0,r=void 0,Y=w;g.m((r=A.sandwichedLinearAdRenderer)==null?void 0:r.adVideoStart,ps)?(T=g.m((C=A.sandwichedLinearAdRenderer)==null?void 0:C.adVideoStart,ps),T=Zx0(T,Y),g.nQ(A.sandwichedLinearAdRenderer.adVideoStart,ps,T)):g.m((p=A.linearAdSequenceRenderer)==null?void 0:p.adStart,ps)&& (C=g.m((T=A.linearAdSequenceRenderer)==null?void 0:T.adStart,ps),T=Zx0(C,Y),g.nQ(A.linearAdSequenceRenderer.adStart,ps,T))}N.Ad.push(E)}return N}; g.Ra=function(e){if(typeof DOMParser!="undefined")return OK(new DOMParser,gVH(e),"application/xml");throw Error("Your browser does not support loading xml documents");}; g.Gd=function(e){g.x.call(this);this.callback=e;this.J=new XM(0,0,.4,0,.2,1,1,1);this.delay=new g.a1(this.next,window,this);g.Q(this,this.delay)}; g.C15=function(e){var N=e.X();return N.NK&&!N.K&&g.hR(N)?e.isEmbedsShortsMode()?(e=e.eW(),Math.min(e.width,e.height)>=315):!e.xx():!1}; g.Uy=function(e){g.W.call(this,{S:"div",B:"ytp-more-videos-view",V:{tabIndex:"-1"}});var N=this;this.api=e;this.N=!0;this.K=new g.fd(this);this.J=[];this.suggestionData=[];this.columns=this.containerWidth=this.U=this.j=this.scrollPosition=0;this.title=new g.W({S:"h2",B:"ytp-related-title",b9:"{{title}}"});this.previous=new g.W({S:"button",dP:["ytp-button","ytp-previous"],V:{"aria-label":"Mostrar v\u00eddeos sugeridos anteriores"},W:[g.hZ()]});this.G=new g.Gd(function(y){N.suggestions.element.scrollLeft= -y}); this.next=new g.W({S:"button",dP:["ytp-button","ytp-next"],V:{"aria-label":"Mostrar mais v\u00eddeos sugeridos"},W:[g.cq()]});g.Q(this,this.K);this.Z=e.X().j;g.Q(this,this.title);this.title.yB(this.element);this.suggestions=new g.W({S:"div",B:"ytp-suggestions"});g.Q(this,this.suggestions);this.suggestions.yB(this.element);g.Q(this,this.previous);this.previous.yB(this.element);this.previous.listen("click",this.cN,this);g.Q(this,this.G);r1_(this);g.Q(this,this.next);this.next.yB(this.element);this.next.listen("click", this.zB,this);this.K.Y(this.api,"appresize",this.I9);this.K.Y(this.api,"fullscreentoggled",this.bz);this.K.Y(this.api,"videodatachange",this.onVideoDataChange);this.I9(this.api.Fz().getPlayerSize());this.onVideoDataChange()}; r1_=function(e){for(var N={vZ:0};N.vZ<16;N={vZ:N.vZ},++N.vZ){var y=new g.W({S:"a",B:"ytp-suggestion-link",V:{href:"{{link}}",target:e.api.X().D,"aria-label":"{{aria_label}}"},W:[{S:"div",B:"ytp-suggestion-image"},{S:"div",B:"ytp-suggestion-overlay",V:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},W:[{S:"div",B:"ytp-suggestion-title",b9:"{{title}}"},{S:"div",B:"ytp-suggestion-author",b9:"{{author_and_views}}"},{S:"div",V:{"data-is-live":"{{is_live}}"},B:"ytp-suggestion-duration", b9:"{{duration}}"}]}]});g.Q(e,y);var w=y.hW("ytp-suggestion-link");g.$0(w,"transitionDelay",N.vZ/20+"s");e.K.Y(w,"click",function(E){return function(A){var T=E.vZ;if(e.N){var p=e.suggestionData[T],C=p.sessionData;e.Z&&e.api.T("web_player_log_click_before_generating_ve_conversion_params")?(e.api.logClick(e.J[T].element),T=p.ew(),p={},g.kS(e.api,p),T=g.Qb(T,p),g.Uc(T,e.api,A)):g.G9(A,e.api,e.Z,C||void 0)&&e.api.gq(p.videoId,C,p.playlistId)}else A.preventDefault(),document.activeElement.blur()}}(N)); y.yB(e.suggestions.element);e.J.push(y);e.api.createServerVe(y.element,y)}}; $j5=function(e){if(e.api.X().T("web_player_log_click_before_generating_ve_conversion_params"))for(var N=Math.floor(-e.scrollPosition/(e.j+8)),y=Math.min(N+e.columns,e.suggestionData.length)-1;N<=y;N++)e.api.logVisibility(e.J[N].element,!0)}; g.Le=function(e){var N=e.api.Nr()?32:16;N=e.U/2+N;e.next.element.style.bottom=N+"px";e.previous.element.style.bottom=N+"px";N=e.scrollPosition;var y=e.containerWidth-e.suggestionData.length*(e.j+8);g.Y1(e.element,"ytp-scroll-min",N>=0);g.Y1(e.element,"ytp-scroll-max",N<=y)}; M_9=function(e){for(var N=e.suggestionData.length,y=0;y>>0)+"_",E=0;return N}); YJ("Symbol.iterator",function(e){if(e)return e;e=Symbol("Symbol.iterator");for(var N="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),y=0;y=A}}); YJ("String.prototype.endsWith",function(e){return e?e:function(N,y){var w=D1(this,N,"endsWith");N+="";y===void 0&&(y=w.length);y=Math.max(0,Math.min(y|0,w.length));for(var E=N.length;E>0&&y>0;)if(w[--y]!=N[--E])return!1;return E<=0}}); YJ("Array.prototype.entries",function(e){return e?e:function(){return V0(this,function(N,y){return[N,y]})}}); YJ("Math.imul",function(e){return e?e:function(N,y){N=Number(N);y=Number(y);var w=N&65535,E=y&65535;return w*E+((N>>>16&65535)*E+w*(y>>>16&65535)<<16>>>0)|0}}); YJ("Math.trunc",function(e){return e?e:function(N){N=Number(N);if(isNaN(N)||N===Infinity||N===-Infinity||N===0)return N;var y=Math.floor(Math.abs(N));return N<0?-y:y}}); YJ("Math.clz32",function(e){return e?e:function(N){N=Number(N)>>>0;if(N===0)return 32;var y=0;(N&4294901760)===0&&(N<<=16,y+=16);(N&4278190080)===0&&(N<<=8,y+=8);(N&4026531840)===0&&(N<<=4,y+=4);(N&3221225472)===0&&(N<<=2,y+=2);(N&2147483648)===0&&y++;return y}}); YJ("Math.log10",function(e){return e?e:function(N){return Math.log(N)/Math.LN10}}); YJ("Number.isNaN",function(e){return e?e:function(N){return typeof N==="number"&&isNaN(N)}}); YJ("Array.prototype.keys",function(e){return e?e:function(){return V0(this,function(N){return N})}}); YJ("Array.prototype.values",function(e){return e?e:function(){return V0(this,function(N,y){return y})}}); YJ("Array.prototype.fill",function(e){return e?e:function(N,y,w){var E=this.length||0;y<0&&(y=Math.max(0,E+y));if(w==null||w>E)w=E;w=Number(w);w<0&&(w=Math.max(0,E+w));for(y=Number(y||0);y1342177279)throw new RangeError("Invalid count value");N|=0;for(var w="";N;)if(N&1&&(w+=y),N>>>=1)y+=y;return w}}); YJ("Promise.prototype.finally",function(e){return e?e:function(N){return this.then(function(y){return Promise.resolve(N()).then(function(){return y})},function(y){return Promise.resolve(N()).then(function(){throw y; })})}}); YJ("String.prototype.padStart",function(e){return e?e:function(N,y){var w=D1(this,null,"padStart");N-=w.length;y=y!==void 0?String(y):" ";return(N>0&&y?y.repeat(Math.ceil(N/y.length)).substring(0,N):"")+w}}); YJ("Array.prototype.findIndex",function(e){return e?e:function(N,y){return FF3(this,N,y).WZ}}); YJ("Math.sign",function(e){return e?e:function(N){N=Number(N);return N===0||isNaN(N)?N:N>0?1:-1}}); YJ("WeakSet",function(e){function N(y){this.J=new WeakMap;if(y){y=g.c(y);for(var w;!(w=y.next()).done;)this.add(w.value)}} if(function(){if(!e||!Object.seal)return!1;try{var y=Object.seal({}),w=Object.seal({}),E=new e([y]);if(!E.has(y)||E.has(w))return!1;E.delete(y);E.add(w);return!E.has(y)&&E.has(w)}catch(A){return!1}}())return e; N.prototype.add=function(y){this.J.set(y,!0);return this}; N.prototype.has=function(y){return this.J.has(y)}; N.prototype.delete=function(y){return this.J.delete(y)}; return N}); YJ("Array.prototype.copyWithin",function(e){function N(y){y=Number(y);return y===Infinity||y===-Infinity?y:y|0} return e?e:function(y,w,E){var A=this.length;y=N(y);w=N(w);E=E===void 0?A:N(E);y=y<0?Math.max(A+y,0):Math.min(y,A);w=w<0?Math.max(A+w,0):Math.min(w,A);E=E<0?Math.max(A+E,0):Math.min(E,A);if(yw;)--E in this?this[--y]=this[E]:delete this[--y];return this}}); YJ("Int8Array.prototype.copyWithin",tn);YJ("Uint8Array.prototype.copyWithin",tn);YJ("Uint8ClampedArray.prototype.copyWithin",tn);YJ("Int16Array.prototype.copyWithin",tn);YJ("Uint16Array.prototype.copyWithin",tn);YJ("Int32Array.prototype.copyWithin",tn);YJ("Uint32Array.prototype.copyWithin",tn);YJ("Float32Array.prototype.copyWithin",tn);YJ("Float64Array.prototype.copyWithin",tn);YJ("Array.prototype.at",function(e){return e?e:uE}); YJ("Int8Array.prototype.at",q3);YJ("Uint8Array.prototype.at",q3);YJ("Uint8ClampedArray.prototype.at",q3);YJ("Int16Array.prototype.at",q3);YJ("Uint16Array.prototype.at",q3);YJ("Int32Array.prototype.at",q3);YJ("Uint32Array.prototype.at",q3);YJ("Float32Array.prototype.at",q3);YJ("Float64Array.prototype.at",q3);YJ("String.prototype.at",function(e){return e?e:uE}); YJ("Array.prototype.findLastIndex",function(e){return e?e:function(N,y){return S9s(this,N,y).WZ}}); YJ("Int8Array.prototype.findLastIndex",Z1);YJ("Uint8Array.prototype.findLastIndex",Z1);YJ("Uint8ClampedArray.prototype.findLastIndex",Z1);YJ("Int16Array.prototype.findLastIndex",Z1);YJ("Uint16Array.prototype.findLastIndex",Z1);YJ("Int32Array.prototype.findLastIndex",Z1);YJ("Uint32Array.prototype.findLastIndex",Z1);YJ("Float32Array.prototype.findLastIndex",Z1);YJ("Float64Array.prototype.findLastIndex",Z1);YJ("Number.parseInt",function(e){return e||parseInt});var RD,O9,oJM;RD=RD||{};g.xJ=this||self;O9="closure_uid_"+(Math.random()*1E9>>>0);oJM=0;g.x.prototype.Lm=!1;g.x.prototype.Ss=function(){return this.Lm}; g.x.prototype.dispose=function(){this.Lm||(this.Lm=!0,this.fh())}; g.x.prototype[Symbol.dispose]=function(){this.dispose()}; g.x.prototype.addOnDisposeCallback=function(e,N){this.Lm?N!==void 0?e.call(N):e():(this.fl||(this.fl=[]),N&&(e=e.bind(N)),this.fl.push(e))}; g.x.prototype.fh=function(){if(this.fl)for(;this.fl.length;)this.fl.shift()()};var X5H;g.b(r5,g.x);r5.prototype.share=function(){if(this.Ss())throw Error("E:AD");this.j++;return this}; r5.prototype.dispose=function(){--this.j||g.x.prototype.dispose.call(this)}; X5H=Symbol.dispose;PEM.prototype.jW=function(e,N){this.J.jW("/client_streamz/bg/frs",e,N)}; d30.prototype.jW=function(e,N,y,w,E,A){this.J.jW("/client_streamz/bg/wrl",e,N,y,w,E,A)}; I1n.prototype.J=function(e,N){this.N.aO("/client_streamz/bg/ec",e,N)}; vJP.prototype.jW=function(e,N,y,w){this.J.jW("/client_streamz/bg/el",e,N,y,w)}; z5J.prototype.J=function(e,N,y){this.N.aO("/client_streamz/bg/cec",e,N,y)}; iME.prototype.J=function(e,N,y){this.N.aO("/client_streamz/bg/po/csc",e,N,y)}; D31.prototype.J=function(e,N,y){this.N.aO("/client_streamz/bg/po/ctav",e,N,y)}; gJ1.prototype.J=function(e,N,y){this.N.aO("/client_streamz/bg/po/cwsc",e,N,y)};g.e0(FF,Error);FF.prototype.name="CustomError";var ad1;var tQ=void 0,fB,ifP=typeof TextDecoder!=="undefined",q91,uH5=typeof String.prototype.isWellFormed==="function",tMH=typeof TextEncoder!=="undefined";var d5=String.prototype.trim?function(e){return e.trim()}:function(e){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(e)[1]},IdJ=/&/g,vbn=//g,im_=/"/g,DgP=/'/g,gbM=/\x00/g,dg9=/[\x00&<>"']/;var c1P=Q0(1,!0),i_=Q0(610401301,!1);Q0(899588437,!1);Q0(188588736,!0);Q0(651175828,!1);Q0(653718497,c1P);Q0(660014094,c1P);Q0(722764542,!1);Q0(2147483644,!1);Q0(2147483645,!1);Q0(2147483646,c1P);Q0(2147483647,!0);var DZ=!!g.nM("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var g5,kZ0=g.xJ.navigator;g5=kZ0?kZ0.userAgentData||null:null;var LF3,vQ,DR;LF3=Array.prototype.indexOf?function(e,N){return Array.prototype.indexOf.call(e,N,void 0)}:function(e,N){if(typeof e==="string")return typeof N!=="string"||N.length!=1?-1:e.indexOf(N,0); for(var y=0;y=0;y--)if(y in e&&e[y]===N)return y;return-1}; g.$R=Array.prototype.forEach?function(e,N,y){Array.prototype.forEach.call(e,N,y)}:function(e,N,y){for(var w=e.length,E=typeof e==="string"?e.split(""):e,A=0;AparseFloat(vGM)){I4F=String(sy);break a}}I4F=vGM}var C_1=I4F,JV9={};var s8,ay;g.DT=qM();s8=QT()||fq("iPod");ay=fq("iPad");g.bd=HMM();g.i$=ZZ();g.k$=xw()&&!mf();var $Ms={},cm=null,YkF=Y0||g.RB||typeof g.xJ.btoa=="function";var kw9=typeof Uint8Array!=="undefined",FfP=!g.S6&&typeof btoa==="function",hX9=/[-_.]/g,ow0={"-":"+",_:"/",".":"="},Xo={};Bm.prototype.isEmpty=function(){return this.J==null}; Bm.prototype.sizeBytes=function(){var e=dr(this);return e?e.length:0}; var X_F;var FW5=void 0;var i7=typeof Symbol==="function"&&typeof Symbol()==="symbol",dMM=new Set,DjJ=z7("jas",void 0,!0,!0),Zd=z7(void 0,"2ex"),wP=z7(void 0,"1oa",!0),Qh=z7(void 0,Symbol(),!0);Math.max.apply(Math,g.B(Object.values({ryq:1,PlZ:2,Cll:4,zDk:8,y3P:16,A3B:32,T41:64,MzW:128,XoZ:256,YHg:512,ZEl:1024,d2h:2048,B2B:4096,Cbh:8192,WvP:16384})));var Dy=i7?DjJ:"LPk",vw5={LPk:{value:0,configurable:!0,writable:!0,enumerable:!1}},IZs=Object.defineProperties;var Xt={},Or,gG_=[];Vh(gG_,55);Or=Object.freeze(gG_);var hjM=Object.freeze({});var gwM=Hm(function(e){return typeof e==="number"}),DM_=Hm(function(e){return typeof e==="string"}),V0M=Hm(function(e){return typeof e==="boolean"}),eq=Hm(function(e){return e!=null&&typeof e==="object"&&typeof e.then==="function"}),ac=Hm(function(e){return!!e&&(typeof e==="object"||typeof e==="function")});var Kf=typeof g.xJ.BigInt==="function"&&typeof g.xJ.BigInt(0)==="bigint";var hK=Hm(function(e){return Kf?e>=V_J&&e<=f4J:e[0]==="-"?fZs(e,t_H):fZs(e,uYE)}),t_H=Number.MIN_SAFE_INTEGER.toString(),V_J=Kf?BigInt(Number.MIN_SAFE_INTEGER):void 0,uYE=Number.MAX_SAFE_INTEGER.toString(),f4J=Kf?BigInt(Number.MAX_SAFE_INTEGER):void 0;var ddF=typeof Uint8Array.prototype.slice==="function",OS=0,RN=0,ay5;var Yb=typeof BigInt==="function"?BigInt.asIntN:void 0,RX_=typeof BigInt==="function"?BigInt.asUintN:void 0,S4=Number.isSafeInteger,Ty=Number.isFinite,Ft=Math.trunc,xMM=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var IF;var zy,YSs;g.J=XmM.prototype;g.J.init=function(e,N,y,w){w=w===void 0?{}:w;this.oR=w.oR===void 0?!1:w.oR;e&&(e=cy(e),this.N=e.buffer,this.L=e.zv,this.j=N||0,this.K=y!==void 0?this.j+y:this.N.length,this.J=this.j)}; g.J.free=function(){this.clear();iV.length<100&&iV.push(this)}; g.J.clear=function(){this.N=null;this.L=!1;this.J=this.K=this.j=0;this.oR=!1}; g.J.reset=function(){this.J=this.j}; g.J.iB=function(){var e=this.Z;e||(e=this.N,e=this.Z=new DataView(e.buffer,e.byteOffset,e.byteLength));return e}; var iV=[];D8.prototype.free=function(){this.J.clear();this.N=this.j=-1;aa.length<100&&aa.push(this)}; D8.prototype.reset=function(){this.J.reset();this.K=this.J.J;this.N=this.j=-1}; var aa=[];g.J=qq.prototype;g.J.toJSON=function(){return vW(this)}; g.J.jY=function(e){return JSON.stringify(vW(this,e))}; g.J.clone=function(){var e=this.wT;return new this.constructor(fm(e,e[Dy]|0,!1))}; g.J.zv=function(){return!!((this.wT[Dy]|0)&2)}; g.J.Av=Xt;g.J.toString=function(){return this.wT.toString()};var VEJ,tEE;jn.prototype.length=function(){return this.J.length}; jn.prototype.end=function(){var e=this.J;this.J=[];return e};var RL=OW(),qQ0=OW(),ZuM=OW(),xj0=OW(),jJ5=OW(),nGF=OW(),QJ9=OW(),mjM=OW();var HfE=UW(function(e,N,y,w,E){if(e.N!==2)return!1;VH(e,EW(N,w,y),E);return!0},md9),KWM=UW(function(e,N,y,w,E){if(e.N!==2)return!1; VH(e,EW(N,w,y,!0),E);return!0},md9),At=Symbol(),Nm=Symbol(),OfM=Symbol(),UdP=Symbol(),LB,sW;var Hus=py(function(e,N,y){if(e.N!==1)return!1;rG(N,y,vy(e.J));return!0},$x,QJ9),KEH=py(function(e,N,y){if(e.N!==1)return!1; e=vy(e.J);rG(N,y,e===0?void 0:e);return!0},$x,QJ9),WE3=py(function(e,N,y,w){if(e.N!==1)return!1; Nq(N,y,w,vy(e.J));return!0},$x,QJ9),Ou_=py(function(e,N,y){if(e.N!==0)return!1; rG(N,y,XX(e.J));return!0},Yx,jJ5),RoF=py(function(e,N,y){if(e.N!==0)return!1; e=XX(e.J);rG(N,y,e===0?void 0:e);return!0},Yx,jJ5),GZE=py(function(e,N,y,w){if(e.N!==0)return!1; Nq(N,y,w,XX(e.J));return!0},Yx,jJ5),Uj9=py(function(e,N,y){if(e.N!==0)return!1; rG(N,y,Py(e.J));return!0},Mm,xj0),LE_=py(function(e,N,y){if(e.N!==0)return!1; e=Py(e.J);rG(N,y,e===0?void 0:e);return!0},Mm,xj0),sJH=py(function(e,N,y,w){if(e.N!==0)return!1; Nq(N,y,w,Py(e.J));return!0},Mm,xj0),a40=py(function(e,N,y){if(e.N!==1)return!1; rG(N,y,IL(e.J));return!0},function(e,N,y){nRM(e,y,GwM(N))},nGF),e5w=Cy(function(e,N,y){if(e.N!==1&&e.N!==2)return!1; N=Ur(N,N[Dy]|0,y,!1,!1);if(e.N==2)for(y=Py(e.J)>>>0,y=e.J.J+y;e.J.J>>0);return!0},function(e,N,y){N=ra(N); N!=null&&N!=null&&(KB(e,y,0),QH(e.J,N))},OW()),Jnf=py(function(e,N,y){if(e.N!==0)return!1; rG(N,y,Py(e.J));return!0},function(e,N,y){N=Cm(N); N!=null&&(N=parseInt(N,10),KB(e,y,0),qS9(e.J,N))},OW());g.b(EbJ,qq);g.b(FZ,qq);var cP=[1,2,3];var p5k=[0,cP,EJX,sJH,yn5];var CEX=[0,Nn,[0,Hus,Ou_]];g.b(S$,qq);var ht=[1,2,3];var rnk=[0,ht,GZE,WE3,wM,CEX];g.b(oA,qq);var $3_=[0,Nn,p5k,rnk];var Y9f=[0,[1,2,3],wM,[0,eW,-1,N_F],wM,[0,eW,-1,Uj9,N_F],wM,[0,eW]];g.b(bx,qq);bx.prototype.jh=function(){var e=WW(this,3,kb,3,void 0,!0);nf(e);return e[void 0]};bx.prototype.J=wW0([0,eW,Y9f,w5f,Nn,$3_,a40,e5w]);g.b(TaE,qq);var FC3=globalThis.trustedTypes,kx;XZ.prototype.toString=function(){return this.J+""};IA.prototype.toString=function(){return this.J}; var bmH=new IA("about:invalid#zClosurez");var q4_=ix("tel"),to5=ix("sms"),obE=[ix("data"),ix("http"),ix("https"),ix("mailto"),ix("ftp"),new zJ(function(e){return/^[^:]*([/?#]|$)/.test(e)})],hfP=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;fy.prototype.toString=function(){return this.J+""};xx.prototype.toString=function(){return this.J+""};mr.prototype.toString=function(){return this.J};var Ky={};g.MM5=String.prototype.repeat?function(e,N){return e.repeat(N)}:function(e,N){return Array(N+1).join(e)};g.J=eU.prototype;g.J.isEnabled=function(){if(!g.xJ.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{B3:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.J.set=function(e,N,y){var w=!1;if(typeof y==="object"){var E=y.SXt;w=y.secure||!1;var A=y.domain||void 0;var T=y.path||void 0;var p=y.B3}if(/[;=\s]/.test(e))throw Error('Invalid cookie name "'+e+'"');if(/[;\r\n]/.test(N))throw Error('Invalid cookie value "'+N+'"');p===void 0&&(p=-1);y=A?";domain="+A:"";T=T?";path="+T:"";w=w?";secure":"";p=p<0?"":p==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+p*1E3)).toUTCString();this.J.cookie=e+"="+N+y+T+p+w+(E!=null?";samesite="+ E:"")}; g.J.get=function(e,N){for(var y=e+"=",w=(this.J.cookie||"").split(";"),E=0,A;E=0;N--)this.remove(e[N])}; var ZJ=new eU(typeof document=="undefined"?null:document);yM.prototype.compress=function(e){var N,y,w,E;return g.f(function(A){switch(A.J){case 1:return N=new CompressionStream("gzip"),y=(new Response(N.readable)).arrayBuffer(),w=N.writable.getWriter(),g.D(A,w.write((new TextEncoder).encode(e)),2);case 2:return g.D(A,w.close(),3);case 3:return E=Uint8Array,g.D(A,y,4);case 4:return A.return(new E(A.N))}})}; yM.prototype.isSupported=function(e){return e<1024?!1:typeof CompressionStream!=="undefined"};g.b(wi,qq);EA.prototype.setInterval=function(e){this.intervalMs=e;this.D_&&this.enabled?(this.stop(),this.start()):this.D_&&this.stop()}; EA.prototype.start=function(){var e=this;this.enabled=!0;this.D_||(this.D_=setTimeout(function(){e.tick()},this.intervalMs),this.N=this.J())}; EA.prototype.stop=function(){this.enabled=!1;this.D_&&(clearTimeout(this.D_),this.D_=void 0)}; EA.prototype.tick=function(){var e=this;if(this.enabled){var N=Math.max(this.J()-this.N,0);N0?y:void 0));y=j4(y,4,pm(E>0?E:void 0));y=j4(y,5,pm(A>0?A:void 0));E=y.wT;A=E[Dy]|0;y=A&2?y:new y.constructor(fm(E,A,!0));JQ(T,pg,10,y)}T=this.J.clone();y=Date.now().toString();T=j4(T,4,bc(y));e=pB(T,Sv,3,e.slice());w&&(T=new Aa,w=j4(T,13,pm(w)), T=new TM,w=JQ(T,Aa,2,w),T=new FS,w=JQ(T,TM,1,w),w=bV(w,2,9),JQ(e,FS,18,w));N&&FX(e,14,N);return e};var gf5=function(){if(!g.xJ.addEventListener||!Object.defineProperty)return!1;var e=!1,N=Object.defineProperty({},"passive",{get:function(){e=!0}}); try{var y=function(){}; g.xJ.addEventListener("test",y,N);g.xJ.removeEventListener("test",y,N)}catch(w){}return e}();var APJ=l8M("AnimationEnd"),e3=l8M("TransitionEnd");g.kv.prototype.N=0;g.kv.prototype.reset=function(){this.J=this.K=this.j;this.N=0}; g.kv.prototype.getValue=function(){return this.K};g.b(FDs,qq);var l1w=lx(FDs);g.b(SWH,qq);var As=new function(){this.J=SWH;this.isRepeated=0;this.N=Tx;this.defaultValue=void 0};g.b(PC,g.x);g.J=PC.prototype;g.J.fh=function(){this.P6();this.N.stop();this.i9.stop();g.x.prototype.fh.call(this)}; g.J.dispatch=function(e){if(e instanceof Sv)this.log(e);else try{var N=new Sv,y=e.jY();var w=Sn(N,8,y);this.log(w)}catch(E){}}; g.J.log=function(e){if(this.Rq){e=e.clone();var N=this.Et++;e=FX(e,21,N);this.componentId&&Sn(e,26,this.componentId);N=e;if(cO9(N)==null){var y=Date.now();y=Number.isFinite(y)?y.toString():"0";j4(N,1,bc(y))}WfF(qg(N,15))!=null||FX(N,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(y=this.experimentIds.clone(),JQ(N,wi,16,y));N=this.J.length-1E3+1;N>0&&(this.J.splice(0,N),this.j+=N);this.J.push(e);this.k0||this.N.enabled||this.N.start()}}; g.J.flush=function(e,N){var y=this;if(this.J.length===0)e&&e();else if(this.l9&&this.D)this.K.N=3,kxH(this);else{var w=Date.now();if(this.Zl>w&&this.qg0&&(y.qg=Date.now(),y.Zl=y.qg+k);l=As.J?As.N(l,As.J,175237375,!0):As.N(l,175237375,null,!0);if(l=l===null?void 0:l)l=Tw(l,1,-1),l!==-1&&(y.L=new g.kv(l<1?1:l,3E5,.1),y.N.setInterval(y.L.getValue()))}}e&&e();y.Z=0},r=function(M,l){var F=Ek(E,Sv, 3); var S;var k=(S=WfF(qg(E,14)))!=null?S:void 0;g.BC(y.L);y.N.setInterval(y.L.getValue());M===401&&A&&(y.aq=A);k&&(y.j+=k);l===void 0&&(l=y.isRetryable(M));l&&(y.J=F.concat(y.J),y.k0||y.N.enabled||y.N.start());N&&N("net-send-failed",M);++y.Z},Y=function(){y.network&&y.network.send(p,C,r)}; T?T.then(function(M){p.requestHeaders["Content-Encoding"]="gzip";p.requestHeaders["Content-Type"]="application/binary";p.body=M;p.Pa=2;Y()},function(){Y()}):Y()}}}}; g.J.P6=function(){this.K.isFinal=!0;this.flush();this.K.isFinal=!1}; g.J.isRetryable=function(e){return 500<=e&&e<600||e===401||e===0};ds.prototype.send=function(e,N,y){var w=this,E,A,T,p,C,r,Y,M,l,F;return g.f(function(S){switch(S.J){case 1:return A=(E=w.kF?new AbortController:void 0)?setTimeout(function(){E.abort()},e.timeoutMillis):void 0,g.c5(S,2,3),T=Object.assign({},{method:e.requestType, headers:Object.assign({},e.requestHeaders)},e.body&&{body:e.body},e.withCredentials&&{credentials:"include"},{signal:e.timeoutMillis&&E?E.signal:null}),g.D(S,fetch(e.url,T),5);case 5:p=S.N;if(p.status!==200){(C=y)==null||C(p.status);S.u9(3);break}if((r=N)==null){S.u9(7);break}return g.D(S,p.text(),8);case 8:r(S.N);case 7:case 3:g.P5(S);clearTimeout(A);g.d_(S,0);break;case 2:Y=g.XH(S);switch((M=Y)==null?void 0:M.name){case "AbortError":(l=y)==null||l(408);break;default:(F=y)==null||F(400)}S.u9(3)}})}; ds.prototype.w8=function(){return 4};g.b(IC,g.x);IC.prototype.Uc=function(){this.L=!0;return this}; IC.prototype.build=function(){this.network||(this.network=new ds);var e=new PC({logSource:this.logSource,VO:this.VO?this.VO:xg5,sessionIndex:this.sessionIndex,QxG:this.g1,Ru:this.j,k0:!1,Uc:this.L,kG:this.kG,network:this.network});g.Q(this,e);if(this.N){var N=this.N,y=cC(e.K);Sn(y,7,N)}e.G=new yM;this.componentId&&(e.componentId=this.componentId);this.z5&&(e.z5=this.z5);this.pageId&&(e.pageId=this.pageId);this.J&&((y=this.J)?(e.experimentIds||(e.experimentIds=new wi),N=e.experimentIds,y=y.jY(),Sn(N, 4,y)):e.experimentIds&&j4(e.experimentIds,4));this.K&&(e.l9=e.D);MnH(e.K);this.network.NC&&this.network.NC(this.logSource);this.network.vz9&&this.network.vz9(e);return e};g.b(vC,g.x);vC.prototype.flush=function(e){e=e||[];if(e.length){for(var N=new TaE,y=[],w=0;w-1?(N=e[T],y||(N.sj=!1)):(N=new zAJ(N,this.src,A,!!w,E),N.sj=y,e.push(N));return N}; g.J.remove=function(e,N,y,w){e=e.toString();if(!(e in this.listeners))return!1;var E=this.listeners[e];N=ZH(E,N,y,w);return N>-1?(tL(E[N]),g.Uk(E,N),E.length==0&&(delete this.listeners[e],this.J--),!0):!1}; g.J.removeAll=function(e){e=e&&e.toString();var N=0,y;for(y in this.listeners)if(!e||y==e){for(var w=this.listeners[y],E=0;E-1?e[E]:null}; g.J.hasListener=function(e,N){var y=e!==void 0,w=y?e.toString():"",E=N!==void 0;return g.c4(this.listeners,function(A){for(var T=0;T>>0);g.e0(g.Ux,g.x);g.Ux.prototype[I80]=!0;g.J=g.Ux.prototype;g.J.addEventListener=function(e,N,y,w){g.jv(this,e,N,y,w)}; g.J.removeEventListener=function(e,N,y,w){uXs(this,e,N,y,w)}; g.J.dispatchEvent=function(e){var N=this.OE;if(N){var y=[];for(var w=1;N;N=N.OE)y.push(N),++w}N=this.jq;w=e.type||e;if(typeof e==="string")e=new g.gs(e,N);else if(e instanceof g.gs)e.target=e.target||N;else{var E=e;e=new g.gs(w,N);g.VM(e,E)}E=!0;var A;if(y)for(A=y.length-1;!e.N&&A>=0;A--){var T=e.currentTarget=y[A];E=Lg(T,w,!0,e)&&E}e.N||(T=e.currentTarget=N,E=Lg(T,w,!0,e)&&E,e.N||(E=Lg(T,w,!1,e)&&E));if(y)for(A=0;!e.N&&A0){this.N--;var e=this.J;this.J=e.next;e.next=null}else e=this.K();return e};var N0;wR.prototype.add=function(e,N){var y=QLn.get();y.set(e,N);this.N?this.N.next=y:this.J=y;this.N=y}; wR.prototype.remove=function(){var e=null;this.J&&(e=this.J,this.J=this.J.next,this.J||(this.N=null),e.next=null);return e}; var QLn=new sx(function(){return new E0},function(e){return e.reset()}); E0.prototype.set=function(e,N){this.J=e;this.scope=N;this.next=null}; E0.prototype.reset=function(){this.next=this.scope=this.J=null};var Ao,T8=!1,jL0=new wR;KD1.prototype.reset=function(){this.context=this.N=this.K=this.J=null;this.j=!1}; var WDP=new sx(function(){return new KD1},function(e){e.reset()}); g.lB.prototype.then=function(e,N,y){return wP1(this,e9(typeof e==="function"?e:null),e9(typeof N==="function"?N:null),y)}; g.lB.prototype.$goog_Thenable=!0;g.J=g.lB.prototype;g.J.finally=function(e){var N=this;e=e9(e);return new Promise(function(y,w){sLs(N,function(E){e();y(E)},function(E){e(); w(E)})})}; g.J.On=function(e,N){return wP1(this,null,e9(e),N)}; g.J.catch=g.lB.prototype.On;g.J.cancel=function(e){if(this.J==0){var N=new cc(e);g.Jo(function(){a8J(this,N)},this)}}; g.J.mSg=function(e){this.J=0;M0(this,2,e)}; g.J.nxg=function(e){this.J=0;M0(this,3,e)}; g.J.Mi=function(){for(var e;e=eS0(this);)NG9(this,e,this.J,this.G);this.Z=!1}; var EY1=b_;g.e0(cc,FF);cc.prototype.name="cancel";g.e0(g.kT,g.Ux);g.J=g.kT.prototype;g.J.enabled=!1;g.J.g7=null;g.J.setInterval=function(e){this.uR=e;this.g7&&this.enabled?(this.stop(),this.start()):this.g7&&this.stop()}; g.J.dSh=function(){if(this.enabled){var e=g.s9()-this.fK;e>0&&e0&&(this.getStatus(),this.Z=setTimeout(this.CS.bind(this), this.Ng)),this.getStatus(),this.D=!0,this.J.send(e),this.D=!1}catch(T){this.getStatus(),vY0(this,T)}}; g.J.CS=function(){typeof RD!="undefined"&&this.J&&(this.j="Timed out after "+this.Ng+"ms, aborting",this.N=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.J.abort=function(e){this.J&&this.K&&(this.getStatus(),this.K=!1,this.L=!0,this.J.abort(),this.L=!1,this.N=e||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),O0(this))}; g.J.fh=function(){this.J&&(this.K&&(this.K=!1,this.L=!0,this.J.abort(),this.L=!1),O0(this,!0));g.Wc.cw.fh.call(this)}; g.J.ZO=function(){this.Ss()||(this.qg||this.D||this.L?zm_(this):this.qQB())}; g.J.qQB=function(){zm_(this)}; g.J.isActive=function(){return!!this.J}; g.J.isComplete=function(){return g.G8(this)==4}; g.J.getStatus=function(){try{return g.G8(this)>2?this.J.status:-1}catch(e){return-1}}; g.J.getResponseHeader=function(e){if(this.J&&this.isComplete())return e=this.J.getResponseHeader(e),e===null?void 0:e}; g.J.getLastError=function(){return typeof this.j==="string"?this.j:String(this.j)};et.prototype.send=function(e,N,y){N=N===void 0?function(){}:N; y=y===void 0?function(){}:y; dPE(e.url,function(w){w=w.target;U0(w)?N(g.LY(w)):y(w.getStatus())},e.requestType,e.body,e.requestHeaders,e.timeoutMillis,e.withCredentials)}; et.prototype.w8=function(){return 1};yX.prototype.done=function(){this.logger.WJ(this.event,Nv()-this.startTime)}; g.b(wq,r5);g.b(Af,wq);g.J=Af.prototype;g.J.GT=function(){}; g.J.pm=function(){}; g.J.WJ=function(){}; g.J.iR=function(){}; g.J.DU=function(){}; g.J.S3=function(e,N,y){return y}; g.J.py=function(){}; g.J.Qz=function(){}; g.J.sx=function(){}; g.J.U3=function(){}; g.b(Ta,wq);g.J=Ta.prototype;g.J.update=function(e){this.logger.dispose();this.logger=e}; g.J.pm=function(e){this.logger.pm(e)}; g.J.WJ=function(e,N){this.logger.WJ(e,N)}; g.J.iR=function(e){this.logger.iR(e)}; g.J.DU=function(){this.logger.DU()}; g.J.S3=function(e,N,y){return this.logger.S3(e,N,y)}; g.J.py=function(e){this.logger.py(e)}; g.J.Qz=function(e){this.logger.Qz(e)}; g.J.sx=function(e){this.logger.sx(e)}; g.J.U3=function(e){this.logger.U3(e)}; g.J.zf=function(e){this.logger instanceof Cw&&this.logger.zf(e)}; g.J.GT=function(e){this.logger.GT(e)}; g.b(Jf,g.x);g.b(pw,wq);g.J=pw.prototype;g.J.zf=function(e){this.Ao=e}; g.J.GT=function(e){this.metrics.NQW.jW(e,this.vI)}; g.J.pm=function(e){this.metrics.eventCount.J(e,this.vI)}; g.J.WJ=function(e,N){this.metrics.VV.jW(N,e,this.Ao,this.vI)}; g.J.iR=function(e){this.metrics.errorCount.J(e,this.Ao,this.vI)}; g.J.S3=function(e,N,y){function w(T){if(!E.Ss()){var p=Nv()-A;E.metrics.K3s.jW(p,e,N,T,E.Ao,E.vI)}} var E=this,A=Nv();y.then(function(){w(0)},function(T){T instanceof dR?w(T.code):w(-1)}); return y}; g.J.py=function(e){this.metrics.fKg.J(e,this.Ao,this.vI)}; g.J.Qz=function(e){this.metrics.Lr.J(e,this.Ao,this.vI)}; g.J.sx=function(e){this.metrics.tYW.J(e,this.Ao,this.vI)}; g.b(Cw,pw);Cw.prototype.U3=function(e){var N=this;this.J.dispose();this.N&&this.service.dispose();this.service=this.options.gj("45",this.options.Dv.concat(e));this.J=new Jf(function(){return void N.service.uW()},this.options.IA); this.metrics=gY5(this.service);this.K=e}; Cw.prototype.DU=function(){fAM(this.J)};g.b(rq,qq);g.b($s,qq);g.b(Ys,qq);var oJ0=lx(Ys),qAM=function(e){return Hm(function(N){return N instanceof e&&!((N.wT[Dy]|0)&2)})}(Ys); Ys.messageId="bfkj";g.b(tUH,qq);g.b(AV,qq);g.b(Mv,qq);var Z9F=lx(Mv);g.b(Fa,g.x);Fa.prototype.snapshot=function(e){if(this.Ss())throw Error("Already disposed");this.logger.pm("n");var N=this.logger.share();return this.K.then(function(y){var w=y.yv;return new Promise(function(E){var A=new yX(N,"n");w(function(T){A.done();N.GT(T.length);N.DU();N.dispose();E(T)},[e.qX, e.Tf,e.PH,e.oZ])})})}; Fa.prototype.mD=function(e){var N=this;if(this.Ss())throw Error("Already disposed");this.logger.pm("n");var y=E5(this.logger,function(){return N.j([e.qX,e.Tf,e.PH,e.oZ])},"n"); this.logger.GT(y.length);this.logger.DU();return y}; Fa.prototype.hd=function(e){this.K.then(function(N){var y;(y=N.aDs)==null||y(e)})}; Fa.prototype.lC=function(){return this.logger.share()}; g.b(St,Error);g.b(cn,qq);g.b(ks,qq);Bn.prototype.x0=function(e,N){var y=this,w,E,A,T,p;return g.f(function(C){if(C.J==1){var r=new cn;w=oL(r,1,y.XB);e&&oL(w,2,e);N&&oL(w,3,N);E=y.J();return g.D(C,y.client.create(w,E),2)}A=C.N;T=IN(RF(A,2));if(T.length){r=C.return;var Y=new Uint8Array(T.length);for(var M=0;M0;)N[y++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(e%62),e=Math.floor(e/62);return N.join("")}};var MvF;g.b(gq,g.x);gq.prototype.Gr=function(e,N){var y=this.HF(e);N==null||N(y);return E5(this.logger,function(){return g.oN(y,2)},this.K)}; MvF=Symbol.dispose;g.b(tf,gq);tf.prototype.HF=function(e,N){var y=this;this.logger.pm(this.J);++this.L>=this.Z&&this.N.resolve();var w=e();e=E5(this.logger,function(){return y.j(w)},"C"); if(e===void 0)throw new St(17,"YNJ:Undefined");if(!(e instanceof Uint8Array))throw new St(18,"ODM:Invalid");N==null||N(e);return e}; g.b(uq,gq);uq.prototype.HF=function(){return this.j}; g.b(qv,gq);qv.prototype.HF=function(){var e=this;return E5(this.logger,function(){return hO(e.j)},"d")}; qv.prototype.Gr=function(){return this.j}; g.b(ZV,gq);ZV.prototype.HF=function(){if(this.j)return this.j;this.j=lHH(this,function(e){return"_"+Yx_(e)}); return lHH(this,function(e){return e})}; g.b(nw,gq);nw.prototype.HF=function(e){var N=e();if(N.length>118)throw new St(19,"DFO:Invalid");e=Math.floor(Date.now()/1E3);var y=[Math.random()*255,Math.random()*255],w=y.concat([this.j&255,this.clientState],[e>>24&255,e>>16&255,e>>8&255,e&255]);e=new Uint8Array(2+w.length+N.length);e[0]=34;e[1]=w.length+N.length;e.set(w,2);e.set(N,2+w.length);N=e.subarray(2);for(w=y=y.length;w150))try{this.cache=new JL9(e,this.logger)}catch(N){this.reportError(new St(22,"GBJ:init",N))}}; mG.prototype.reportError=function(e){this.logger.iR(e.code);this.onError(e);return e}; g.b(O5,mG);O5.prototype.L3=function(){return this.j.promise}; O5.prototype.HF=function(e){return Hn(this,Object.assign({},e),!1)}; O5.prototype.Gr=function(e){return Hn(this,Object.assign({},e),!0)}; var kN0=function(e){return Hm(function(N){if(!ac(N))return!1;for(var y=g.c(Object.entries(e)),w=y.next();!w.done;w=y.next()){var E=g.c(w.value);w=E.next().value;E=E.next().value;if(!(w in N)){if(E.lUP===!0)continue;return!1}if(!E(N[w]))return!1}return!0})}({f$:function(e){return Hm(function(N){return N instanceof e})}(Xa)},"");g.b(R7,qq);var cnw=lx(R7);PQ_.prototype.getMetadata=function(){return this.metadata};Ga.prototype.getMetadata=function(){return this.metadata}; Ga.prototype.getStatus=function(){return this.status};U5.prototype.G=function(e,N){N=N===void 0?{}:N;return new PQ_(e,this,N)}; U5.prototype.getName=function(){return this.name};var ksM=new U5("/google.internal.waa.v1.Waa/Create",cn,R7,function(e){return e.jY()},cnw);g.b(Lw,qq);var bM5=new U5("/google.internal.waa.v1.Waa/GenerateIT",ks,Lw,function(e){return e.jY()},lx(Lw));var etJ=new Set(["SAPISIDHASH","APISIDHASH"]);var RR_=Promise;g.b(s5,qq);s5.prototype.getValue=function(){var e=qg(this,2);if(Array.isArray(e)||e instanceof qq)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return RF(this,2)};g.b(a7,qq);a7.prototype.getMessage=function(){return Mq(this,2)}; var D8J=lx(a7);ee.prototype.BF=function(e,N){e=="data"?this.K.push(N):e=="metadata"?this.L.push(N):e=="status"?this.Z.push(N):e=="end"?this.j.push(N):e=="error"&&this.N.push(N);return this}; ee.prototype.removeListener=function(e,N){e=="data"?Ah(this.K,N):e=="metadata"?Ah(this.L,N):e=="status"?Ah(this.Z,N):e=="end"?Ah(this.j,N):e=="error"&&Ah(this.N,N);return this}; ee.prototype.cancel=function(){this.J.abort()}; ee.prototype.cancel=ee.prototype.cancel;ee.prototype.removeListener=ee.prototype.removeListener;ee.prototype.on=ee.prototype.BF;g.b(IHn,Error);g.e0(g.T3,Fcs);g.T3.prototype.J=function(){var e=new Jh(this.j,this.K);this.N&&e.setCredentialsMode(this.N);return e}; g.T3.prototype.setCredentialsMode=function(e){this.N=e}; g.e0(Jh,g.Ux);g.J=Jh.prototype;g.J.open=function(e,N){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.Ng=e;this.D=N;this.readyState=1;pc(this)}; g.J.send=function(e){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");this.J=!0;var N={headers:this.U,method:this.Ng,credentials:this.L,cache:void 0};e&&(N.body=e);(this.Kh||g.xJ).fetch(new Request(this.D,N)).then(this.wkh.bind(this),this.yz.bind(this))}; g.J.abort=function(){this.response=this.responseText="";this.U=new Headers;this.status=0;this.K&&this.K.cancel("Request was aborted.").catch(function(){}); this.readyState>=1&&this.J&&this.readyState!=4&&(this.J=!1,Cc(this));this.readyState=0}; g.J.wkh=function(e){if(this.J&&(this.j=e,this.N||(this.status=this.j.status,this.statusText=this.j.statusText,this.N=e.headers,this.readyState=2,pc(this)),this.J&&(this.readyState=3,pc(this),this.J)))if(this.responseType==="arraybuffer")e.arrayBuffer().then(this.jqk.bind(this),this.yz.bind(this));else if(typeof g.xJ.ReadableStream!=="undefined"&&"body"in e){this.K=e.body.getReader();if(this.Z){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.'); this.response=[]}else this.response=this.responseText="",this.G=new TextDecoder;gv9(this)}else e.text().then(this.bhl.bind(this),this.yz.bind(this))}; g.J.sB=function(e){if(this.J){if(this.Z&&e.value)this.response.push(e.value);else if(!this.Z){var N=e.value?e.value:new Uint8Array(0);if(N=this.G.decode(N,{stream:!e.done}))this.response=this.responseText+=N}e.done?Cc(this):pc(this);this.readyState==3&&gv9(this)}}; g.J.bhl=function(e){this.J&&(this.response=this.responseText=e,Cc(this))}; g.J.jqk=function(e){this.J&&(this.response=e,Cc(this))}; g.J.yz=function(){this.J&&Cc(this)}; g.J.setRequestHeader=function(e,N){this.U.append(e,N)}; g.J.getResponseHeader=function(e){return this.N?this.N.get(e.toLowerCase())||"":""}; g.J.getAllResponseHeaders=function(){if(!this.N)return"";for(var e=[],N=this.N.entries(),y=N.next();!y.done;)y=y.value,e.push(y[0]+": "+y[1]),y=N.next();return e.join("\r\n")}; g.J.setCredentialsMode=function(e){this.L=e}; Object.defineProperty(Jh.prototype,"withCredentials",{get:function(){return this.L==="include"}, set:function(e){this.setCredentialsMode(e?"include":"same-origin")}});g.rS.prototype.toString=function(){var e=[],N=this.L;N&&e.push(ok(N,B_w,!0),":");var y=this.J;if(y||N=="file")e.push("//"),(N=this.U)&&e.push(ok(N,B_w,!0),"@"),e.push(g.RA(y).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),y=this.K,y!=null&&e.push(":",String(y));if(y=this.N)this.J&&y.charAt(0)!="/"&&e.push("/"),e.push(ok(y,y.charAt(0)=="/"?X5F:PEq,!0));(y=this.j.toString())&&e.push("?",y);(y=this.Z)&&e.push("#",ok(y,d3T));return e.join("")}; g.rS.prototype.resolve=function(e){var N=this.clone(),y=!!e.L;y?g.$u(N,e.L):y=!!e.U;y?N.U=e.U:y=!!e.J;y?g.Yu(N,e.J):y=e.K!=null;var w=e.N;if(y)g.Mk(N,e.K);else if(y=!!e.N){if(w.charAt(0)!="/")if(this.J&&!this.N)w="/"+w;else{var E=N.N.lastIndexOf("/");E!=-1&&(w=N.N.slice(0,E+1)+w)}E=w;if(E==".."||E==".")w="";else if(g.B_(E,"./")||g.B_(E,"/.")){w=c_(E,"/");E=E.split("/");for(var A=[],T=0;T1||A.length==1&&A[0]!="")&&A.pop(), w&&T==E.length&&A.push("")):(A.push(p),w=!0)}w=A.join("/")}else w=E}y?N.N=w:y=e.j.toString()!=="";y?lX(N,e.j.clone()):y=!!e.Z;y&&(N.Z=e.Z);return N}; g.rS.prototype.clone=function(){return new g.rS(this)}; var B_w=/[#\/\?@]/g,PEq=/[#\?:]/g,X5F=/[#\?]/g,fHs=/[#\?@]/g,d3T=/#/g;g.J=Se.prototype;g.J.add=function(e,N){cN(this);this.K=null;e=ku(this,e);var y=this.J.get(e);y||this.J.set(e,y=[]);y.push(N);this.N=this.N+1;return this}; g.J.remove=function(e){cN(this);e=ku(this,e);return this.J.has(e)?(this.K=null,this.N=this.N-this.J.get(e).length,this.J.delete(e)):!1}; g.J.clear=function(){this.J=this.K=null;this.N=0}; g.J.isEmpty=function(){cN(this);return this.N==0}; g.J.forEach=function(e,N){cN(this);this.J.forEach(function(y,w){y.forEach(function(E){e.call(N,E,w,this)},this)},this)}; g.J.Nk=function(){cN(this);for(var e=Array.from(this.J.values()),N=Array.from(this.J.keys()),y=[],w=0;w0?String(e[0]):N}; g.J.toString=function(){if(this.K)return this.K;if(!this.J)return"";for(var e=[],N=Array.from(this.J.keys()),y=0;y>>3;A.K!=1&&A.K!=2&&A.K!=15&&dS(A,T,p,"unexpected tag");A.J=1;A.N=0;A.j=0} function y(C){A.j++;A.j==5&&C&240&&dS(A,T,p,"message length too long");A.N|=(C&127)<<(A.j-1)*7;C&128||(A.J=2,A.U=0,typeof Uint8Array!=="undefined"?A.L=new Uint8Array(A.N):A.L=Array(A.N),A.N==0&&E())} function w(C){A.L[A.U++]=C;A.U==A.N&&E()} function E(){if(A.K<15){var C={};C[A.K]=A.L;A.G.push(C)}A.J=0} for(var A=this,T=e instanceof Array?e:new Uint8Array(e),p=0;p0?e:null};Ik.prototype.isInputValid=function(){return this.J===null}; Ik.prototype.Cq=function(){return this.J}; Ik.prototype.rA=function(){return!1}; Ik.prototype.parse=function(e){this.J!==null&&QC3(this,e,"stream already broken");var N=null;try{var y=this.K;y.K||nvJ(y,e,"stream already broken");y.J+=e;var w=Math.floor(y.J.length/4);if(w==0)var E=null;else{try{var A=lZn(y.J.slice(0,w*4))}catch(T){nvJ(y,y.J,T.message)}y.N+=w*4;y.J=y.J.slice(w*4);E=A}N=E===null?null:this.j.parse(E)}catch(T){QC3(this,e,T.message)}this.N+=e.length;return N};var vJw={INIT:0,AX:1,vR:2,GA:3,jf:4,fJ:5,STRING:6,WR:7,kT:8,ya:9,z$:10,Sj:11,r9:12,L7:13,TX:14,HH:15,bF:16,w_:17,qv:18,W$:19,eF:20};g.J=z3.prototype;g.J.isInputValid=function(){return this.L!=3}; g.J.Cq=function(){return this.D}; g.J.done=function(){return this.L===2}; g.J.rA=function(){return!1}; g.J.parse=function(e){function N(){for(;l0;)if(S=e[l++], A.U===4?A.U=0:A.U++,!S)break a;if(S==='"'&&!A.G){A.J=w();break}if(S==="\\"&&!A.G&&(A.G=!0,S=e[l++],!S))break;if(A.G)if(A.G=!1,S==="u"&&(A.U=1),S=e[l++])continue;else break;p.lastIndex=l;S=p.exec(e);if(!S){l=e.length+1;break}l=S.index+1;S=e[S.index];if(!S)break}A.K+=l-k;continue;case C.ya:if(!S)continue;S==="r"?A.J=C.z$:iX(A,e,l);continue;case C.z$:if(!S)continue;S==="u"?A.J=C.Sj:iX(A,e,l);continue;case C.Sj:if(!S)continue;S==="e"?A.J=w():iX(A,e,l);continue;case C.r9:if(!S)continue;S==="a"?A.J=C.L7: iX(A,e,l);continue;case C.L7:if(!S)continue;S==="l"?A.J=C.TX:iX(A,e,l);continue;case C.TX:if(!S)continue;S==="s"?A.J=C.HH:iX(A,e,l);continue;case C.HH:if(!S)continue;S==="e"?A.J=w():iX(A,e,l);continue;case C.bF:if(!S)continue;S==="u"?A.J=C.w_:iX(A,e,l);continue;case C.w_:if(!S)continue;S==="l"?A.J=C.qv:iX(A,e,l);continue;case C.qv:if(!S)continue;S==="l"?A.J=w():iX(A,e,l);continue;case C.W$:S==="."?A.J=C.eF:iX(A,e,l);continue;case C.eF:if("0123456789.eE+-".indexOf(S)!==-1)continue;else l--,A.K--,A.J= w();continue;default:iX(A,e,l)}}} function w(){var S=T.pop();return S!=null?S:C.AX} function E(S){A.N>1||(S||(S=M===-1?A.j+e.substring(Y,l):e.substring(M,l)),A.Ng?A.Z.push(S):A.Z.push(JSON.parse(S)),M=l)} for(var A=this,T=A.Kh,p=A.qg,C=vJw,r=e.length,Y=0,M=-1,l=0;l0?(F=A.Z,A.Z=[],F):null}return null};D7.prototype.isInputValid=function(){return this.L===null}; D7.prototype.Cq=function(){return this.L}; D7.prototype.rA=function(){return!1}; D7.prototype.parse=function(e){function N(C){A.N=6;A.L="The stream is broken @"+A.J+"/"+T+". Error: "+C+". With input:\n";throw Error(A.L);} function y(){A.K=new z3({OzW:!0,yV:!0})} function w(C){if(C)for(var r=0;r1)&&N("extra status: "+C);A.Z=!0;var r={};r[2]=C[0];A.j.push(r)}} for(var A=this,T=0;T0?(e=A.j,A.j=[],e):null};gS.prototype.PM=function(){return this.J}; gS.prototype.getStatus=function(){return this.L}; gS.prototype.Ng=function(e){e=e.target;try{if(e==this.J)a:{var N=g.G8(this.J),y=this.J.N,w=this.J.getStatus(),E=g.LY(this.J);e=[];if(g.s0(this.J)instanceof Array){var A=g.s0(this.J);A.length>0&&A[0]instanceof Uint8Array&&(this.D=!0,e=A)}if(!(N<3||N==3&&!E&&e.length==0))if(w=w==200||w==206,N==4&&(y==8?uX(this,7):y==7?uX(this,8):w||uX(this,3)),this.N||(this.N=m8M(this.J),this.N==null&&uX(this,5)),this.L>2)qk(this);else{if(e.length>this.K){var T=e.length;y=[];try{if(this.N.rA())for(var p=0;pthis.K){p=E.slice(this.K);this.K=E.length;try{var r=this.N.parse(p);r!=null&&this.j&&this.j(r)}catch(Y){uX(this,5);qk(this);break a}}N==4?(E.length!= 0||this.D?uX(this,2):uX(this,4),qk(this)):uX(this,1)}}}catch(Y){uX(this,6),qk(this)}};g.J=Hg5.prototype;g.J.BF=function(e,N){var y=this.N[e];y||(y=[],this.N[e]=y);y.push(N);return this}; g.J.addListener=function(e,N){this.BF(e,N);return this}; g.J.removeListener=function(e,N){var y=this.N[e];y&&g.Lq(y,N);(e=this.J[e])&&g.Lq(e,N);return this}; g.J.once=function(e,N){var y=this.J[e];y||(y=[],this.J[e]=y);y.push(N);return this}; g.J.fBs=function(e){var N=this.N.data;N&&K_J(e,N);(N=this.J.data)&&K_J(e,N);this.J.data=[]}; g.J.I_t=function(){switch(this.K.getStatus()){case 1:Z7(this,"readable");break;case 5:case 6:case 4:case 7:case 3:Z7(this,"error");break;case 8:Z7(this,"close");break;case 2:Z7(this,"end")}};W_P.prototype.serverStreaming=function(e,N,y,w){var E=this,A=e.substring(0,e.length-w.name.length);return OgJ(function(T){var p=T.Uo,C=T.getMetadata(),r=L_3(E,!1);C=sCH(E,C,r,A+p.getName());var Y=aHM(r,p.N,!0);T=p.J(T.EK);r.send(C,"POST",T);return Y},this.j).call(this,w.G(N,y))};NR1.prototype.create=function(e,N){return U85(this.J,this.N+"/$rpc/google.internal.waa.v1.Waa/Create",e,N||{},ksM)};var z5w=1,WN=new WeakMap;g.b(xu,g.x);xu.prototype.signal=function(){var e=new nc(!1);this.signals.add(e);g.Q(this,e);return e}; xu.prototype.x3=function(e){return je(this,e).x3()}; g.b(nc,g.x);g.J=nc.prototype;g.J.wU=function(){var e=this,N=z5w++;QP(function(){yoM(e,N)}); return N}; g.J.detach=function(e){var N=this;QP(function(){var y=N.slots.get(e);y&&y.YG()})}; g.J.value=function(e){return this.promise(!0,e)}; g.J.x3=function(){return this.kA}; g.J.next=function(e){return this.promise(!1,e)}; g.J.promise=function(e,N){var y=this,w=LD5();QP(function(){if(y.Ss())w.reject(new cc("Signal initially disposed"));else if(N&&N.Ss())w.reject(new cc("Owner initially disposed"));else if(e&&y.wY&&y.qn)w.resolve(y.kA);else if(y.zb.add(w),ho(w.promise,function(){y.zb.delete(w)}),N){var E=function(){w.reject(new cc("Owner asynchronously disposed"))}; ho(w.promise,function(){var A=WN.get(N);A&&g.Lq(A,E)}); AoM(N,E)}}); return w.promise}; g.J.fh=function(){var e=this;g.x.prototype.fh.call(this);QP(function(){for(var N=g.c(e.slots.values()),y=N.next();!y.done;y=N.next())y=y.value.YG,y();e.slots.clear();N=g.c(e.zb);for(y=N.next();!y.done;y=N.next())y.value.reject(new cc("Signal asynchronously disposed"));e.zb.clear()})}; var HN=[],Kc=!1;g.b(OJ,g.x);OJ.prototype.start=function(){var e=this;if(this.Ss())throw new G3("Cannot start a disposed timer.");if(!this.Z){this.j=0;if(this.G){var N=Date.now();this.handle=setInterval(function(){e.j=e.milliseconds>0?Math.trunc((Date.now()-N)/e.milliseconds):e.j+1;var y;(y=e.N)==null||y.resolve();e.N=void 0;if(e.K){var w;(w=e.J)!=null&&mM(je(w,e.K),e)}e.qU.F$(e)},this.milliseconds)}else this.handle=setTimeout(function(){e.state=3; e.handle=void 0;e.j=1;var y;(y=e.N)==null||y.resolve();e.N=void 0;if(e.K){var w;(w=e.J)!=null&&mM(je(w,e.K),e)}e.qU.F$(e)},this.milliseconds); this.state=1}}; OJ.prototype.cancel=function(){if(this.Z){this.clear();this.state=2;var e;(e=this.N)==null||e.reject(new Rk);var N;(N=this.qU.KZ)==null||N.call(this);if(this.L){var y;(y=this.J)!=null&&mM(je(y,this.L))}}}; OJ.prototype.fh=function(){this.clear();var e;(e=this.N)==null||e.reject(new G3);this.state=4;g.x.prototype.fh.call(this)}; OJ.prototype.clear=function(){this.G?clearInterval(this.handle):clearTimeout(this.handle);this.handle=void 0}; g.pM.Object.defineProperties(OJ.prototype,{Z:{configurable:!0,enumerable:!0,get:function(){return this.state===1}}, isCancelled:{configurable:!0,enumerable:!0,get:function(){return this.state===2}}, isExpired:{configurable:!0,enumerable:!0,get:function(){return this.state===3}}, tick:{configurable:!0,enumerable:!0,get:function(){return this.j}}, U:{configurable:!0,enumerable:!0,get:function(){switch(this.state){case 0:case 1:return this.N!=null||(this.N=new g.lq),this.N.promise;case 3:return Promise.resolve();case 2:return Promise.reject(new Rk("Timer has been cancelled."));case 4:return Promise.reject(new G3("Timer has been disposed."));default:wa(this.state)}}}, F$:{configurable:!0,enumerable:!0,get:function(){if(this.Ss())throw new G3("Cannot attach a signal to a disposed timer.");this.K||(this.J!=null||(this.J=new xu(this)),this.K=this.J.signal());return this.K}}, KZ:{configurable:!0,enumerable:!0,get:function(){if(this.Ss())throw new G3("Cannot attach a signal to a disposed timer.");this.L||(this.J!=null||(this.J=new xu(this)),this.L=this.J.signal());return this.L}}}); g.b(Rk,FF);g.b(G3,FF);g.b(UJ,mG);g.J=UJ.prototype;g.J.isReady=function(){return!!this.J}; g.J.ready=function(){var e=this;return g.f(function(N){return g.D(N,e.K.promise,0)})}; g.J.x0=function(e){return pc_(this,this.logger.S3("c",e===void 0?1:e,this.Gq.x0(bq().J,null)),new St(10,"JVZ:Timeout"))}; g.J.prefetch=function(){this.state===1&&(this.Kf=this.x0())}; g.J.start=function(){if(this.state===1){this.state=2;var e=new yX(this.logger,"r");this.ready().finally(function(){return void e.done()}); ro_(this)}}; g.J.HF=function(e){$0s(this,e);return Hn(this,Jo1(e),!1)}; g.J.Gr=function(e){$0s(this,e);return Hn(this,Jo1(e),!0)};var FVM={NONE:0,NNt:1},G8H={f6:0,tzh:1,KAg:2,fch:3},tr={gw:"a",DX1:"d",VIDEO:"v"};sJ.prototype.isVisible=function(){return this.cJ?this.UQ>=.3:this.UQ>=.5};var po={oBP:0,zFW:1},OY0={NONE:0,jlh:1,Pbs:2};ak.prototype.getValue=function(){return this.N}; g.b(eb,ak);eb.prototype.K=function(e){this.N===null&&g.di(this.j,e)&&(this.N=e)}; g.b(NL,ak);NL.prototype.K=function(e){this.N===null&&typeof e==="number"&&(this.N=e)}; g.b(y1,ak);y1.prototype.K=function(e){this.N===null&&typeof e==="string"&&(this.N=e)};wn.prototype.disable=function(){this.N=!1}; wn.prototype.enable=function(){this.N=!0}; wn.prototype.isEnabled=function(){return this.N}; wn.prototype.reset=function(){this.J={};this.N=!0;this.K={}};var VC=document,Yn=window;var LG1=!g.S6&&!xw();Co.prototype.now=function(){return 0}; Co.prototype.N=function(){return 0}; Co.prototype.K=function(){return 0}; Co.prototype.J=function(){return 0};g.b($n,Co);$n.prototype.now=function(){return rn()&&Yn.performance.now?Yn.performance.now():Co.prototype.now.call(this)}; $n.prototype.N=function(){return rn()&&Yn.performance.memory?Yn.performance.memory.totalJSHeapSize||0:Co.prototype.N.call(this)}; $n.prototype.K=function(){return rn()&&Yn.performance.memory?Yn.performance.memory.usedJSHeapSize||0:Co.prototype.K.call(this)}; $n.prototype.J=function(){return rn()&&Yn.performance.memory?Yn.performance.memory.jsHeapSizeLimit||0:Co.prototype.J.call(this)};var bY_=rR(function(){var e=!1;try{var N=Object.defineProperty({},"passive",{get:function(){e=!0}}); g.xJ.addEventListener("test",null,N)}catch(y){}return e});htn.prototype.isVisible=function(){return FR(VC)===1};var k83={c1q:"allow-forms",aKs:"allow-modals",S_k:"allow-orientation-lock",drG:"allow-pointer-lock",RnW:"allow-popups",Cv9:"allow-popups-to-escape-sandbox",PvG:"allow-presentation",ZwZ:"allow-same-origin",r1P:"allow-scripts",L39:"allow-top-navigation",TzP:"allow-top-navigation-by-user-activation"},d0s=rR(function(){return BR3()});var iY5=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");cQ.prototype.nC=function(e,N,y){e=e+"//"+N+y;var w=f9n(this)-y.length;if(w<0)return"";this.J.sort(function(r,Y){return r-Y}); y=null;N="";for(var E=0;E=C.length){w-=C.length;e+=C;N=this.K;break}y=y==null?A:y}}w="";y!=null&&(w=""+N+"trn="+y);return e+w};iM.prototype.setInterval=function(e,N){return Yn.setInterval(e,N)}; iM.prototype.clearInterval=function(e){Yn.clearInterval(e)}; iM.prototype.setTimeout=function(e,N){return Yn.setTimeout(e,N)}; iM.prototype.clearTimeout=function(e){Yn.clearTimeout(e)};g.b(gn,qq);gn.prototype.J=wW0([0,KEH,RoF,-2,LE_]);var RtH={XPW:1,Nd:2,tWt:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};U05.prototype.C4=function(e){if(typeof e==="string"&&e.length!=0){var N=this.RJ;if(N.N){e=e.split("&");for(var y=e.length-1;y>=0;y--){var w=e[y].split("="),E=decodeURIComponent(w[0]);w.length>1?(w=decodeURIComponent(w[1]),w=/^[0-9]+$/g.exec(w)?parseInt(w,10):w):w=1;(E=N.J[E])&&E.K(w)}}}};var TA=null;var Z5=g.xJ.performance,iM_=!!(Z5&&Z5.mark&&Z5.measure&&Z5.clearMarks),uM=rR(function(){var e;if(e=iM_){var N=N===void 0?g.xJ:N;if(TA===null){TA="";try{e="";try{e=N.top.location.hash}catch(w){e=N.location.hash}if(e){var y=e.match(/\bdeid=([\d,]+)/);TA=y?y[1]:""}}catch(w){}}N=TA;e=!!N.indexOf&&N.indexOf("1337")>=0}return e}); qL.prototype.disable=function(){this.J=!1;this.events!==this.N.google_js_reporting_queue&&(uM()&&g.$R(this.events,yfM),this.events.length=0)}; qL.prototype.start=function(e,N){if(!this.J)return null;var y=eO_()||a9_();e=new NqP(e,N,y);N="goog_"+e.label+"_"+e.uniqueId+"_start";Z5&&uM()&&Z5.mark(N);return e}; qL.prototype.end=function(e){if(this.J&&typeof e.value==="number"){var N=eO_()||a9_();e.duration=N-e.value;N="goog_"+e.label+"_"+e.uniqueId+"_end";Z5&&uM()&&Z5.mark(N);!this.J||this.events.length>2048||this.events.push(e)}};wnJ.prototype.YY=function(e,N,y,w,E){E=E||this.J6;try{var A=new cQ;A.J.push(1);A.N[1]=kn("context",e);N.error&&N.meta&&N.id||(N=new Q1(mR(N)));if(N.msg){var T=N.msg.substring(0,512);A.J.push(2);A.N[2]=kn("msg",T)}var p=N.meta||{};if(this.Kb)try{this.Kb(p)}catch(F){}if(w)try{w(p)}catch(F){}w=[p];A.J.push(3);A.N[3]=w;var C=gTP();if(C.N){var r=C.N.url||"";A.J.push(4);A.N[4]=kn("top",r)}var Y={url:C.J.url||""};if(C.J.url){var M=C.J.url.match(fY);var l=iB(M[1],null,M[3],M[4])}else l="";r=[Y,{url:l}];A.J.push(5); A.N[5]=r;LVH(this.J,E,A,y)}catch(F){try{LVH(this.J,E,{context:"ecmserr",rctx:e,msg:mR(F),url:C&&C.J.url},y)}catch(S){}}return this.Hx}; g.b(Q1,sDn);var jb,no,xn=new qL;jb=new function(){var e="https:";Yn&&Yn.location&&Yn.location.protocol==="http:"&&(e="http:");this.N=e;this.J=.01}; no=new wnJ;Yn&&Yn.document&&(Yn.document.readyState=="complete"?AfF():xn.J&&lM(Yn,"load",function(){AfF()}));var pnE=Date.now(),U7=-1,Rp=-1,dkM,Lo=-1,G0=!1;g.J=s7.prototype;g.J.getHeight=function(){return this.bottom-this.top}; g.J.clone=function(){return new s7(this.top,this.right,this.bottom,this.left)}; g.J.contains=function(e){return this&&e?e instanceof s7?e.left>=this.left&&e.right<=this.right&&e.top>=this.top&&e.bottom<=this.bottom:e.x>=this.left&&e.x<=this.right&&e.y>=this.top&&e.y<=this.bottom:!1}; g.J.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.J.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.J.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.J.scale=function(e,N){N=typeof N==="number"?N:e;this.left*=e;this.right*=e;this.top*=N;this.bottom*=N;return this};yC.prototype.Bw=function(e,N){return!!e&&(!(N===void 0?0:N)||this.volume==e.volume)&&this.K==e.K&&e2(this.J,e.J)&&!0};wm.prototype.ut=function(){return this.G}; wm.prototype.Bw=function(e,N){return this.j.Bw(e.j,N===void 0?!1:N)&&this.G==e.G&&e2(this.K,e.K)&&e2(this.Z,e.Z)&&this.J==e.J&&this.L==e.L&&this.N==e.N&&this.U==e.U};var D3Z={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},IZ={Qe:"start",O5:"firstquartile",YE:"midpoint",It:"thirdquartile",COMPLETE:"complete",ERROR:"error",mu:"metric",PAUSE:"pause",v$:"resume",gH:"skip",JZ:"viewable_impression",UF:"mute",sF:"unmute",A7:"fullscreen",wB:"exitfullscreen",p6:"bufferstart",sS:"bufferfinish",h7:"fully_viewable_audible_half_duration_impression",B$:"measurable_impression",eB:"abandon",bM:"engagedview",iM:"impression",kC:"creativeview",G0:"loaded", vKZ:"progress",CLOSE:"close",rAZ:"collapse",CIk:"overlay_resize",PIq:"overlay_unmeasurable_impression",ZcP:"overlay_unviewable_impression",LNq:"overlay_viewable_immediate_impression",r3k:"overlay_viewable_end_of_session_impression",K6:"custom_metric_viewable",V9:"audio_audible",Q9:"audio_measurable",M9:"audio_impression"},q7s="start firstquartile midpoint thirdquartile resume loaded".split(" "),ZoH=["start","firstquartile","midpoint","thirdquartile"],vu5=["abandon"],Oo={UNKNOWN:-1,Qe:0,O5:1,YE:2, It:3,COMPLETE:4,mu:5,PAUSE:6,v$:7,gH:8,JZ:9,UF:10,sF:11,A7:12,wB:13,h7:14,B$:15,eB:16,bM:17,iM:18,kC:19,G0:20,K6:21,p6:22,sS:23,M9:27,Q9:28,V9:29};var rfE={OwP:"addEventListener",roP:"getMaxSize",LSl:"getScreenSize",TNq:"getState",HOP:"getVersion",FAt:"removeEventListener",LW1:"isViewable"};g.J=g.pK.prototype;g.J.clone=function(){return new g.pK(this.left,this.top,this.width,this.height)}; g.J.contains=function(e){return e instanceof g.ri?e.x>=this.left&&e.x<=this.left+this.width&&e.y>=this.top&&e.y<=this.top+this.height:this.left<=e.left&&this.left+this.width>=e.left+e.width&&this.top<=e.top&&this.top+this.height>=e.top+e.height}; g.J.getSize=function(){return new g.l8(this.width,this.height)}; g.J.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.J.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.J.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.J.scale=function(e,N){N=typeof N==="number"?N:e;this.left*=e;this.width*=e;this.top*=N;this.height*=N;return this};var lV9={};XnP.prototype.update=function(e){e&&e.document&&(this.G=Eb(!1,e,this.isMobileDevice),this.J=Eb(!0,e,this.isMobileDevice),dv3(this,e),PqH(this,e))};tp.prototype.cancel=function(){D5().clearTimeout(this.J);this.J=null}; tp.prototype.schedule=function(){var e=this,N=D5(),y=fo().J.J;this.J=N.setTimeout(V1(y,Ko(143,function(){e.N++;e.K.sample()})),CqH())};g.J=uG.prototype;g.J.TM=function(){return!1}; g.J.initialize=function(){return this.isInitialized=!0}; g.J.SU=function(){return this.J.i9}; g.J.FL=function(){return this.J.Ng}; g.J.hA=function(e,N){if(!this.Ng||(N===void 0?0:N))this.Ng=!0,this.i9=e,this.U=0,this.J!=this||ZR(this)}; g.J.getName=function(){return this.J.Zl}; g.J.t$=function(){return this.J.PW()}; g.J.PW=function(){return{}}; g.J.hm=function(){return this.J.U}; g.J.z1=function(){var e=gm();e.J=Eb(!0,this.K,e.isMobileDevice)}; g.J.aQ=function(){PqH(gm(),this.K)}; g.J.WW=function(){return this.j.J}; g.J.sample=function(){}; g.J.isActive=function(){return this.J.Z}; g.J.mC=function(e){var N=this.J;this.J=e.hm()>=this.U?e:this;N!==this.J?(this.Z=this.J.Z,ZR(this)):this.Z!==this.J.Z&&(this.Z=this.J.Z,ZR(this))}; g.J.h$=function(e){if(e.N===this.J){var N=!this.j.Bw(e,this.D);this.j=e;N&&zO9(this)}}; g.J.xb=function(){return this.D}; g.J.dispose=function(){this.l9=!0}; g.J.Ss=function(){return this.l9};g.J=x0.prototype;g.J.observe=function(){return!0}; g.J.unobserve=function(){}; g.J.Ld=function(e){this.L=e}; g.J.dispose=function(){if(!this.Ss()){var e=this.N;g.Lq(e.L,this);e.D&&this.xb()&&vs0(e);this.unobserve();this.qg=!0}}; g.J.Ss=function(){return this.qg}; g.J.t$=function(){return this.N.t$()}; g.J.hm=function(){return this.N.hm()}; g.J.SU=function(){return this.N.SU()}; g.J.FL=function(){return this.N.FL()}; g.J.mC=function(){}; g.J.h$=function(){this.n2()}; g.J.xb=function(){return this.l9};g.J=j2.prototype;g.J.hm=function(){return this.J.hm()}; g.J.SU=function(){return this.J.SU()}; g.J.FL=function(){return this.J.FL()}; g.J.create=function(e,N,y){var w=null;this.J&&(w=this.c8(e,N,y),qW(this.J,w));return w}; g.J.SG=function(){return this.HV()}; g.J.HV=function(){return!1}; g.J.init=function(e){return this.J.initialize()?(qW(this.J,this),this.j=e,!0):!1}; g.J.mC=function(e){e.hm()==0&&this.j(e.SU(),this)}; g.J.h$=function(){}; g.J.xb=function(){return!1}; g.J.dispose=function(){this.L=!0}; g.J.Ss=function(){return this.L}; g.J.t$=function(){return{}};nK.prototype.add=function(e,N,y){++this.K;e=new Dvn(e,N,y);this.J.push(new Dvn(e.N,e.J,e.K+this.K/4096));this.N=!0;return this};uaM.prototype.toString=function(){var e="//pagead2.googlesyndication.com//pagead/gen_204",N=mw(this.J);N.length>0&&(e+="?"+N);return e};He.prototype.update=function(e,N,y){e&&(this.J+=N,this.N+=N,this.j+=N,this.K=Math.max(this.K,this.j));if(y===void 0?!e:y)this.j=0};var nss=[1,.75,.5,.3,0];KK.prototype.update=function(e,N,y,w,E,A){A=A===void 0?!0:A;N=E?Math.min(e,N):N;for(E=0;E0&&N>=T;T=!(e>0&&e>=T)||y;this.J[E].update(A&&p,w,!A||T)}};LK.prototype.update=function(e,N,y,w){this.G=this.G!=-1?Math.min(this.G,N.UQ):N.UQ;this.Kh=Math.max(this.Kh,N.UQ);this.qg=this.qg!=-1?Math.min(this.qg,N.wk):N.wk;this.i9=Math.max(this.i9,N.wk);this.Dl.update(N.wk,y.wk,N.J,e,w);this.aq+=e;N.UQ===0&&(this.Zl+=e);this.N.update(N.UQ,y.UQ,N.J,e,w);y=w||y.cJ!=N.cJ?y.isVisible()&&N.isVisible():y.isVisible();N=!N.isVisible()||N.J;this.Bk.update(y,e,N)}; LK.prototype.RN=function(){return this.Bk.K>=this.VB};if(VC&&VC.URL){var gJZ=VC.URL,VM_;if(VM_=!!gJZ){var f1f;a:{if(gJZ){var tMF=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var Js=tMF.exec(decodeURIComponent(gJZ));if(Js){f1f=Js[1]&&Js[1].length>1?Js[1].substring(1):"true";break a}}catch(e){}}f1f=""}VM_=f1f.length>0}no.Hx=!VM_};var uHX=new s7(0,0,0,0);var GaM=new s7(0,0,0,0);g.b(yn,g.x);g.J=yn.prototype; g.J.fh=function(){if(this.Ho.J){if(this.B5.pF){var e=this.Ho.J;e.removeEventListener&&e.removeEventListener("mouseover",this.B5.pF,ML());this.B5.pF=null}this.B5.sI&&(e=this.Ho.J,e.removeEventListener&&e.removeEventListener("mouseout",this.B5.sI,ML()),this.B5.sI=null)}this.cK&&this.cK.dispose();this.vG&&this.vG.dispose();delete this.j4;delete this.Xf;delete this.Ah;delete this.Ho.Gl;delete this.Ho.J;delete this.B5;delete this.cK;delete this.vG;delete this.RJ;g.x.prototype.fh.call(this)}; g.J.wD=function(){return this.vG?this.vG.J:this.position}; g.J.C4=function(e){fo().C4(e)}; g.J.xb=function(){return!1}; g.J.FQ=function(){return new LK}; g.J.Xe=function(){return this.j4}; g.J.TC=function(e){return aV5(this,e,1E4)}; g.J.GZ=function(e,N,y,w,E,A,T){this.zl||(this.jS&&(e=this.iK(e,y,E,T),w=w&&this.Cw.UQ>=(this.cJ()?.3:.5),this.uN(A,e,w),this.Qy=N,e.UQ>0&&-1===this.Bh&&(this.Bh=N),this.gp==-1&&this.RN()&&(this.gp=N),this.He==-2&&(this.He=eg(this.wD())?e.UQ:-1),this.Cw=e),this.Xf(this))}; g.J.uN=function(e,N,y){this.Xe().update(e,N,this.Cw,y)}; g.J.wc=function(){return new sJ}; g.J.iK=function(e,N,y,w){y=this.wc();y.J=N;N=D5().N;N=FR(VC)===0?-1:N.isVisible()?0:1;y.N=N;y.UQ=this.YM(e);y.cJ=this.cJ();y.wk=w;return y}; g.J.YM=function(e){return this.opacity===0&&T0(this.RJ,"opac")===1?0:e}; g.J.cJ=function(){return!1}; g.J.iC=function(){return this.n1k||this.Ug1}; g.J.IL=function(){O7()}; g.J.Y3=function(){O7()}; g.J.TJ=function(){return 0}; g.J.RN=function(){return this.j4.RN()}; g.J.Vu=function(){var e=this.jS;e=(this.hasCompleted||this.Ss())&&!e;var N=fo().N!==2||this.TQG;return this.zl||N&&e?2:this.RN()?4:3}; g.J.Xw=function(){return 0};g.Eo.prototype.next=function(){return g.pF}; g.pF={done:!0,value:void 0};g.Eo.prototype.SW=function(){return this};g.b(Ah0,sJ);var CF=Jh_([void 0,1,2,3,4,8,16]),rM=Jh_([void 0,4,8,16]),q9Z={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:pG("p0",rM),p1:pG("p1",rM),p2:pG("p2",rM),p3:pG("p3",rM),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:Jq("mtos1",[0,2,4],!1,rM),mtos2:Jq("mtos2",[0,2,4],!1,rM),mtos3:Jq("mtos3",[0,2,4],!1,rM),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:pG("a0",rM),a1:pG("a1",rM),a2:pG("a2",rM),a3:pG("a3",rM),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:pG("c0",rM),c1:pG("c1",rM),c2:pG("c2",rM),c3:pG("c3",rM),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:pG("qmtos",CF),qnc:pG("qnc",CF),qmv:pG("qmv",CF),qnv:pG("qnv",CF), 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:pG("ss0",rM),ss1:pG("ss1",rM),ss2:pG("ss2",rM),ss3:pG("ss3",rM),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"},ZMT=Object.assign({},q9Z,{avid:pY("audio"),avas:"avas",vs:"vs"}),x3w={atos:"atos",avt:Jq("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(e,N){return function(y){return y[e]===void 0&&N!==void 0?N:y[e]}}("ss",0), t:"t"};YV.prototype.getValue=function(){return this.N}; YV.prototype.update=function(e,N){e>=32||(this.J&1<=.5;iG(N.volume)&&(this.j=this.j!=-1?Math.min(this.j,N.volume):N.volume,this.Z=Math.max(this.Z,N.volume));A&&(this.l9+=e,this.D+=E?e:0);this.J.update(N.UQ,y.UQ,N.J,e,w,E);this.K.update(!0,e);this.L.update(E,e);this.Ng.update(y.fullscreen,e);this.Kx.update(E&&!A,e);e=Math.floor(N.mediaTime/1E3);this.Rq.update(e,N.isVisible());this.Ut.update(e,N.UQ>=1);this.Wk.update(e, Te(N))}};MeM.prototype.N=function(e){this.K||(this.J(e)?(e=PM0(this.D,this.j,e),this.L|=e,e=e==0):e=!1,this.K=e)};g.b(FA,MeM);FA.prototype.J=function(){return!0}; FA.prototype.Z=function(){return!1}; FA.prototype.getId=function(){var e=this,N=IB(IZ,function(y){return y==e.j}); return Oo[N].toString()}; FA.prototype.toString=function(){var e="";this.Z()&&(e+="c");this.K&&(e+="s");this.L>0&&(e+=":"+this.L);return this.getId()+e};g.b(Sg,FA);Sg.prototype.N=function(e,N){N=N===void 0?null:N;N!=null&&this.G.push(N);FA.prototype.N.call(this,e)};g.b(oZ,l7_);oZ.prototype.N=function(){return null}; oZ.prototype.K=function(){return[]};g.b(b6,x0);g.J=b6.prototype;g.J.cX=function(){if(this.element){var e=this.element,N=this.N.J.K;try{try{var y=cfP(e.getBoundingClientRect())}catch(r){y=new s7(0,0,0,0)}var w=y.right-y.left,E=y.bottom-y.top,A=osn(e,N),T=A.x,p=A.y;var C=new s7(Math.round(p),Math.round(T+w),Math.round(p+E),Math.round(T))}catch(r){C=uHX.clone()}this.K=C;this.J=iwF(this,this.K)}}; g.J.q_=function(){this.Z=this.N.j.J}; g.J.eQ=function(e){var N=T0(this.RJ,"od")==1;return RO1(e,this.Z,this.element,N)}; g.J.Oc=function(){this.timestamp=O7()}; g.J.n2=function(){this.Oc();this.cX();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var e=this.element;var N=new g.l8(e.videoWidth,e.videoHeight);e=this.J;var y=ap(e),w=e.getHeight(),E=N.width;N=N.height;E<=0||N<=0||y<=0||w<=0||(E/=N,N=y/w,e=e.clone(),E>N?(y/=E,w=(w-y)/2,w>0&&(w=e.top+w,e.top=Math.round(w),e.bottom=Math.round(w+y))):(w*=E,y=Math.round((y-w)/2),y>0&&(y=e.left+y,e.left=Math.round(y),e.right=Math.round(y+w))));this.J=e}this.q_(); e=this.J;y=this.Z;e=e.left<=y.right&&y.left<=e.right&&e.top<=y.bottom&&y.top<=e.bottom?new s7(Math.max(e.top,y.top),Math.min(e.right,y.right),Math.min(e.bottom,y.bottom),Math.max(e.left,y.left)):new s7(0,0,0,0);y=e.top>=e.bottom||e.left>=e.right?new s7(0,0,0,0):e;e=this.N.j;N=E=w=0;if((this.J.bottom-this.J.top)*(this.J.right-this.J.left)>0)if(this.eQ(y))y=new s7(0,0,0,0);else{w=gm().j;N=new s7(0,w.height,w.width,0);var A;w=Ne(y,(A=this.L)!=null?A:this.J);E=Ne(y,gm().J);N=Ne(y,N)}A=y.top>=y.bottom|| y.left>=y.right?new s7(0,0,0,0):NW(y,-this.J.left,-this.J.top);fK()||(E=w=0);this.D=new wm(e,this.element,this.J,A,w,E,this.timestamp,N)}; g.J.getName=function(){return this.N.getName()};var jPw=new s7(0,0,0,0);g.b(hq,b6);g.J=hq.prototype;g.J.observe=function(){this.j();return!0}; g.J.h$=function(){b6.prototype.n2.call(this)}; g.J.Oc=function(){}; g.J.cX=function(){}; g.J.n2=function(){this.j();b6.prototype.n2.call(this)}; g.J.mC=function(e){e=e.isActive();e!==this.U&&(e?this.j():(gm().J=new s7(0,0,0,0),this.J=new s7(0,0,0,0),this.Z=new s7(0,0,0,0),this.timestamp=-1));this.U=e};var $W={},PX9=($W.firstquartile=0,$W.midpoint=1,$W.thirdquartile=2,$W.complete=3,$W);g.b(kV,yn);g.J=kV.prototype;g.J.xb=function(){return!0}; g.J.Ax=function(){return this.I1==2}; g.J.TC=function(e){return aV5(this,e,Math.max(1E4,this.K/3))}; g.J.GZ=function(e,N,y,w,E,A,T){var p=this,C=this.G(this)||{};g.VM(C,E);this.K=C.duration||this.K;this.D=C.isVpaid||this.D;this.Zl=C.isYouTube||this.Zl;D5();this.Dl=!1;E=SJ5(this,N);FM9(this)===1&&(A=E);yn.prototype.GZ.call(this,e,N,y,w,C,A,T);this.rS&&this.rS.K&&g.$R(this.Z,function(r){r.N(p)})}; g.J.uN=function(e,N,y){yn.prototype.uN.call(this,e,N,y);Pf(this).update(e,N,this.Cw,y);this.VB=Te(this.Cw)&&Te(N);this.i9==-1&&this.Ut&&(this.i9=this.Xe().K.J);this.fN.K=0;e=this.RN();N.isVisible()&&$V(this.fN,"vs");e&&$V(this.fN,"vw");iG(N.volume)&&$V(this.fN,"am");Te(N)?$V(this.fN,"a"):$V(this.fN,"mut");this.Iw&&$V(this.fN,"f");N.N!=-1&&($V(this.fN,"bm"),N.N==1&&($V(this.fN,"b"),Te(N)&&$V(this.fN,"umutb")));Te(N)&&N.isVisible()&&$V(this.fN,"avs");this.VB&&e&&$V(this.fN,"avw");N.UQ>0&&$V(this.fN, "pv");d6(this,this.Xe().K.J,!0)&&$V(this.fN,"gdr");Gu(this.Xe().N,1)>=2E3&&$V(this.fN,"pmx");this.Dl&&$V(this.fN,"tvoff")}; g.J.FQ=function(){return new Me}; g.J.Xe=function(){return this.j4}; g.J.wc=function(){return new Ah0}; g.J.iK=function(e,N,y,w){e=yn.prototype.iK.call(this,e,N,y,w===void 0?-1:w);e.fullscreen=this.Iw;e.paused=this.Ax();e.volume=y.volume;iG(e.volume)||(this.a9++,N=this.Cw,iG(N.volume)&&(e.volume=N.volume));y=y.currentTime;e.mediaTime=y!==void 0&&y>=0?y:-1;return e}; g.J.YM=function(e){return gm(),this.Iw?1:yn.prototype.YM.call(this,e)}; g.J.TJ=function(){return 1}; g.J.getDuration=function(){return this.K}; g.J.Vu=function(){return this.zl?2:bcF(this)?5:this.RN()?4:3}; g.J.Xw=function(){return this.Kx?this.Xe().L.K>=2E3?4:3:2}; g.J.Ld=function(e){this.vG&&this.vG.Ld(e)};var nJV=g.s9();uLJ.prototype.reset=function(){this.J=[];this.N=[]}; var g6=z0(uLJ);g.b(tq,j2);g.J=tq.prototype;g.J.getName=function(){return(this.N?this.N:this.J).getName()}; g.J.t$=function(){return(this.N?this.N:this.J).t$()}; g.J.hm=function(){return(this.N?this.N:this.J).hm()}; g.J.init=function(e){var N=!1;(0,g.$R)(this.K,function(y){y.initialize()&&(N=!0)}); N&&(this.j=e,qW(this.J,this));return N}; g.J.dispose=function(){(0,g.$R)(this.K,function(e){e.dispose()}); j2.prototype.dispose.call(this)}; g.J.SG=function(){return DR(this.K,function(e){return e.TM()})}; g.J.HV=function(){return DR(this.K,function(e){return e.TM()})}; g.J.c8=function(e,N,y){return new b6(e,this.J,N,y)}; g.J.h$=function(e){this.N=e.N};var KM9={threshold:[0,.3,.5,.75,1]};g.b(u6,b6);g.J=u6.prototype;g.J.observe=function(){var e=this;this.Kh||(this.Kh=O7());if(Jfs(298,function(){return WM5(e)}))return!0; this.N.hA("msf");return!1}; g.J.unobserve=function(){if(this.j&&this.element)try{this.j.unobserve(this.element),this.U?(this.U.unobserve(this.element),this.U=null):this.G&&(this.G.disconnect(),this.G=null)}catch(e){}}; g.J.n2=function(){var e=qe(this);e.length>0&&Zf(this,e);b6.prototype.n2.call(this)}; g.J.cX=function(){}; g.J.eQ=function(){return!1}; g.J.q_=function(){}; g.J.t$=function(){var e={};return Object.assign(this.N.t$(),(e.niot_obs=this.Kh,e.niot_cbk=this.Ng,e))}; g.J.getName=function(){return"nio"};g.b(xV,j2);xV.prototype.getName=function(){return"nio"}; xV.prototype.HV=function(){return!gm().N&&this.J.J.K.IntersectionObserver!=null}; xV.prototype.c8=function(e,N,y){return new u6(e,this.J,N,y)};g.b(jg,uG);jg.prototype.WW=function(){return gm().J}; jg.prototype.TM=function(){var e=R15();this.U!==e&&(this.J!=this&&e>this.J.U&&(this.J=this,ZR(this)),this.U=e);return e==2};nG.prototype.sample=function(){Hf(this,Vn(),!1)}; nG.prototype.j=function(){var e=fK(),N=O7();e?(G0||(U7=N,g.$R(g6.J,function(y){var w=y.Xe();w.Et=l6(w,N,y.I1!=1)})),G0=!0):(this.G=a7M(this,N),G0=!1,dkM=N,g.$R(g6.J,function(y){y.jS&&(y.Xe().U=N)})); Hf(this,Vn(),!e)}; var Qn=z0(nG);var Nnn=null,MH="",YD=!1;var EnJ=wQ_().Om,Wf=wQ_().Ae;var Jr9={cok:"visible",Fv9:"audible",YTs:"time",Xsg:"timetype"},pQ0={visible:function(e){return/^(100|[0-9]{1,2})$/.test(e)}, audible:function(e){return e=="0"||e=="1"}, timetype:function(e){return e=="mtos"||e=="tos"}, time:function(e){return/^(100|[0-9]{1,2})%$/.test(e)||/^([0-9])+ms$/.test(e)}}; Tn3.prototype.setTime=function(e,N,y){N=="ms"?(this.K=e,this.j=-1):(this.K=-1,this.j=e);this.L=y===void 0?"tos":y;return this};g.b(Uo,FA);Uo.prototype.getId=function(){return this.G}; Uo.prototype.Z=function(){return!0}; Uo.prototype.J=function(e){var N=e.Xe(),y=e.getDuration();return DR(this.U,function(w){if(w.J!=void 0)var E=rr5(w,N);else b:{switch(w.L){case "mtos":E=w.N?N.L.K:N.K.J;break b;case "tos":E=w.N?N.L.J:N.K.J;break b}E=0}E==0?w=!1:(w=w.K!=-1?w.K:y!==void 0&&y>0?w.j*y:-1,w=w!=-1&&E>=w);return w})};g.b(LG,CXH);LG.prototype.J=function(e){var N=new pNM;N.J=r6(e,q9Z);N.N=r6(e,x3w);return N};g.b(so,FA);so.prototype.J=function(e){return bcF(e)};g.b(aZ,l7_);g.b(ea,FA);ea.prototype.J=function(e){return e.Xe().RN()};g.b(NH,Sg);NH.prototype.J=function(e){var N=g.Gw(this.G,T0(fo().RJ,"ovms"));return!e.zl&&(e.I1!=0||N)};g.b(yx,aZ);yx.prototype.N=function(){return new NH(this.J)}; yx.prototype.K=function(){return[new ea("viewable_impression",this.J),new so(this.J)]};g.b(wN,hq);wN.prototype.j=function(){var e=g.nM("ima.admob.getViewability"),N=T0(this.RJ,"queryid");typeof e==="function"&&N&&e(N)}; wN.prototype.getName=function(){return"gsv"};g.b(EH,j2);EH.prototype.getName=function(){return"gsv"}; EH.prototype.HV=function(){var e=gm();fo();return e.N&&!1}; EH.prototype.c8=function(e,N,y){return new wN(this.J,N,y)};g.b(A7,hq);A7.prototype.j=function(){var e=this,N=g.nM("ima.bridge.getNativeViewability"),y=T0(this.RJ,"queryid");typeof N==="function"&&y&&N(y,function(w){g.v4(w)&&e.G++;var E=w.opt_nativeViewVisibleBounds||{},A=w.opt_nativeViewHidden;e.J=kan(w.opt_nativeViewBounds||{});var T=e.N.j;T.J=A?jPw.clone():kan(E);e.timestamp=w.opt_nativeTime||-1;gm().J=T.J;w=w.opt_nativeVolume;w!==void 0&&(T.volume=w)})}; A7.prototype.getName=function(){return"nis"};g.b(T1,j2);T1.prototype.getName=function(){return"nis"}; T1.prototype.HV=function(){var e=gm();fo();return e.N&&!1}; T1.prototype.c8=function(e,N,y){return new A7(this.J,N,y)};g.b(J7,uG);g.J=J7.prototype;g.J.TM=function(){return this.N.x7!=null}; g.J.PW=function(){var e={};this.Rq&&(e.mraid=this.Rq);this.qg&&(e.mlc=1);e.mtop=this.N.Fyh;this.G&&(e.mse=this.G);this.aq&&(e.msc=1);e.mcp=this.N.compatibility;return e}; g.J.w6=function(e){var N=g.iE.apply(1,arguments);try{return this.N.x7[e].apply(this.N.x7,N)}catch(y){WQ(538,y,.01,function(w){w.method=e})}}; g.J.initialize=function(){var e=this;if(this.isInitialized)return!this.FL();this.isInitialized=!0;if(this.N.compatibility===2)return this.G="ng",this.hA("w"),!1;if(this.N.compatibility===1)return this.G="mm",this.hA("w"),!1;gm().U=!0;this.K.document.readyState&&this.K.document.readyState=="complete"?l5M(this):ad(this.K,"load",function(){D5().setTimeout(Ko(292,function(){return l5M(e)}),100)},292); return!0}; g.J.z1=function(){var e=gm(),N=hEF(this,"getMaxSize");e.J=new s7(0,N.width,N.height,0)}; g.J.aQ=function(){gm().j=hEF(this,"getScreenSize")}; g.J.dispose=function(){S70(this);uG.prototype.dispose.call(this)};var KV0=new function(e,N){this.key=e;this.defaultValue=N===void 0?!1:N;this.valueType="boolean"}("45378663");g.J=Ck.prototype;g.J.yC=function(e){w6(e,!1);jkH(e)}; g.J.qD=function(){}; g.J.o3=function(e,N,y,w){var E=this;e=new kV(Yn,e,y?N:-1,7,this.IK(),this.G7());e.a$=w;M9s(e.RJ);Ar(e.RJ,"queryid",e.a$);e.C4("");yhn(e,function(){return E.J8.apply(E,g.B(g.iE.apply(0,arguments)))},function(){return E.OhP.apply(E,g.B(g.iE.apply(0,arguments)))}); (w=z0(fG).J)&&s7_(e,w);this.K&&(e.Ld(this.K),this.K=null);e.Ho.Gl&&z0(G3P);return e}; g.J.mC=function(e){switch(e.hm()){case 0:if(e=z0(fG).J)e=e.J,g.Lq(e.L,this),e.D&&this.xb()&&vs0(e);$D();break;case 2:mi()}}; g.J.h$=function(){}; g.J.xb=function(){return!1}; g.J.OhP=function(e,N){e.zl=!0;switch(e.TJ()){case 1:dLn(e,N);break;case 2:this.BT(e)}}; g.J.cWB=function(e){var N=e.G(e);N&&(N=N.volume,e.Kx=iG(N)&&N>0);k3_(e,0);return vf(e,"start",fK())}; g.J.sD=function(e,N,y){Hf(Qn,[e],!fK());return this.H2(e,N,y)}; g.J.H2=function(e,N,y){return vf(e,y,fK())}; g.J.uhh=function(e){return o1(e,"firstquartile",1)}; g.J.ihq=function(e){e.Ut=!0;return o1(e,"midpoint",2)}; g.J.al9=function(e){return o1(e,"thirdquartile",3)}; g.J.AWh=function(e){var N=o1(e,"complete",4);Bf(e);return N}; g.J.hGt=function(e){e.I1=3;return vf(e,"error",fK())}; g.J.nt=function(e,N,y){N=fK();if(e.Ax()&&!N){var w=e.Xe(),E=O7();w.U=E}Hf(Qn,[e],!N);e.Ax()&&(e.I1=1);return vf(e,y,N)}; g.J.zGk=function(e,N){N=this.sD(e,N||{},"skip");Bf(e);return N}; g.J.xgk=function(e,N){w6(e,!0);return this.sD(e,N||{},"fullscreen")}; g.J.llP=function(e,N){w6(e,!1);return this.sD(e,N||{},"exitfullscreen")}; g.J.lx=function(e,N,y){N=e.Xe();var w=O7();N.Et=l6(N,w,e.I1!=1);Hf(Qn,[e],!fK());e.I1==1&&(e.I1=2);return vf(e,y,fK())}; g.J.yWG=function(e){Hf(Qn,[e],!fK());return e.N()}; g.J.YH=function(e){Hf(Qn,[e],!fK());this.Tj(e);Bf(e);return e.N()}; g.J.J8=function(){}; g.J.BT=function(){}; g.J.Tj=function(){}; g.J.d3=function(){}; g.J.DY=function(){}; g.J.G7=function(){this.J||(this.J=this.DY());return this.J==null?new oZ:new yx(this.J)}; g.J.IK=function(){return new LG};g.b(bf,FA);bf.prototype.J=function(e){return e.Xw()==4};g.b(h7,Sg);h7.prototype.J=function(e){e=e.Xw();return e==3||e==4};g.b(cB,aZ);cB.prototype.N=function(){return new h7(this.J)}; cB.prototype.K=function(){return[new bf(this.J)]};g.b(kD,CXH);kD.prototype.J=function(e){e&&(e.e===28&&(e=Object.assign({},e,{avas:3})),e.vs===4||e.vs===5)&&(e=Object.assign({},e,{vs:3}));var N=new pNM;N.J=r6(e,ZMT);N.N=r6(e,x3w);return N};io5.prototype.N=function(){return g.nM(this.J)};g.b(BB,Ck);g.J=BB.prototype;g.J.qD=function(e,N){var y=this,w=z0(fG);if(w.J!=null)switch(w.J.getName()){case "nis":var E=f5E(this,e,N);break;case "gsv":E=VbH(this,e,N);break;case "exc":E=tb5(this,e)}E||(N.opt_overlayAdElement?E=void 0:N.opt_adElement&&(E=vn5(this,e,N.opt_adElement,N.opt_osdId)));E&&E.TJ()==1&&(E.G==g.CY&&(E.G=function(A){return y.d3(A)}),gn5(this,E,N)); return E}; g.J.d3=function(e){e.N=0;e.l9=0;if(e.j=="h"||e.j=="n"){fo();e.Wk&&(fo(),Fb(this)!="h"&&Fb(this));var N=g.nM("ima.common.getVideoMetadata");if(typeof N==="function")try{var y=N(e.a$)}catch(E){e.N|=4}else e.N|=2}else if(e.j=="b")if(N=g.nM("ytads.bulleit.getVideoMetadata"),typeof N==="function")try{y=N(e.a$)}catch(E){e.N|=4}else e.N|=2;else if(e.j=="ml")if(N=g.nM("ima.common.getVideoMetadata"),typeof N==="function")try{y=N(e.a$)}catch(E){e.N|=4}else e.N|=2;else e.N|=1;e.N||(y===void 0?e.N|=8:y===null? e.N|=16:g.v4(y)?e.N|=32:y.errorCode!=null&&(e.l9=y.errorCode,e.N|=64));y==null&&(y={});N=y;e.U=0;for(var w in D3Z)N[w]==null&&(e.U|=D3Z[w]);zEs(N,"currentTime");zEs(N,"duration");iG(y.volume)&&iG()&&(y.volume*=NaN);return y}; g.J.DY=function(){fo();Fb(this)!="h"&&Fb(this);var e=uR_(this);return e!=null?new io5(e):null}; g.J.BT=function(e){!e.J&&e.zl&&Sa(this,e,"overlay_unmeasurable_impression")&&(e.J=!0)}; g.J.Tj=function(e){e.u7&&(e.RN()?Sa(this,e,"overlay_viewable_end_of_session_impression"):Sa(this,e,"overlay_unviewable_impression"),e.u7=!1)}; g.J.J8=function(){}; g.J.o3=function(e,N,y,w){if(WV_()){var E=T0(fo().RJ,"mm"),A={};(E=(A[tr.gw]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",A[tr.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",A)[E])&&jpn(this,E);this.j==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&WQ(1044,Error())}e=Ck.prototype.o3.call(this,e,N,y,w);this.L&&(N=this.Z,e.L==null&&(e.L=new wNJ),N.J[e.a$]=e.L,e.L.L=nJV);return e}; g.J.yC=function(e){e&&e.TJ()==1&&this.L&&delete this.Z.J[e.a$];return Ck.prototype.yC.call(this,e)}; g.J.G7=function(){this.J||(this.J=this.DY());return this.J==null?new oZ:this.j==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new cB(this.J):new yx(this.J)}; g.J.IK=function(){return this.j==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new kD:new LG}; g.J.Ld=function(e,N,y,w,E){N=new s7(y,N+w,y+E,N);(e=Df(g6,e))?e.Ld(N):this.K=N}; var QPf=HQ(193,QpM,void 0,I5J);g.jM("Goog_AdSense_Lidar_sendVastEvent",QPf);var m3k=Ko(194,function(e,N){N=N===void 0?{}:N;e=xLM(z0(BB),e,N);return nn1(e)}); g.jM("Goog_AdSense_Lidar_getViewability",m3k);var HMq=HQ(195,function(){return jDJ()}); g.jM("Goog_AdSense_Lidar_getUrlSignalsArray",HMq);var KF5=Ko(196,function(){return JSON.stringify(jDJ())}); g.jM("Goog_AdSense_Lidar_getUrlSignalsList",KF5);var mLJ=(new Date("2024-01-01T00:00:00Z")).getTime();var WRE=JnF(["//tpc.googlesyndication.com/sodar/",""]);g.b(gN,g.x);gN.prototype.L3=function(){return this.wpc.f()}; gN.prototype.Mh=function(e){this.wpc.c(e)}; gN.prototype.HF=function(e){return this.wpc.m(ULJ(e))}; gN.prototype.Gr=function(e){return this.wpc.mws(ULJ(e))}; g.b(z1,g.x);z1.prototype.snapshot=function(e){return this.f$.s(Object.assign({},e.qX&&{c:e.qX},e.Tf&&{s:e.Tf},e.oZ!==void 0&&{p:e.oZ}))}; z1.prototype.hd=function(e){this.f$.e(e)}; z1.prototype.lC=function(){return this.f$.l()};var GeJ=(new Date).getTime();var a5_="://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(" "),eGE=/\bocr\b/;var yps=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var bK5=0,o0n=0,hG9=0;var t7=null,qH=!1,YbJ=1,nk=Symbol("SIGNAL"),Qx={version:0,cmZ:0,s0:!1,TI:void 0,dO:void 0,Ap:void 0,rF:0,Qh:void 0,n_:void 0,UN:!1,rY:!1,kind:"unknown",xr:function(){return!1}, iD:function(){}, LD:function(){}, dT9:function(){}};var YW=Symbol("UNSET"),Mn=Symbol("COMPUTING"),lW=Symbol("ERRORED");Object.assign({},Qx,{value:YW,s0:!0,error:null,W5:fk,kind:"computed",xr:function(e){return e.value===YW||e.value===Mn}, iD:function(e){if(e.value===Mn)throw Error("Detected cycle in computations.");var N=e.value;e.value=Mn;var y=Ap0(e),w=!1;try{var E=e.Vv();uf(null);w=N!==YW&&N!==lW&&E!==lW&&e.W5(N,E)}catch(A){E=lW,e.error=A}finally{Tm_(e,y)}w?e.value=N:(e.value=E,e.version++)}});var rpM=Object.assign({},Qx,{W5:fk,value:void 0,kind:"signal"});Object.assign({},Qx,{value:YW,s0:!0,error:null,W5:fk,xr:function(e){return e.value===YW||e.value===Mn}, iD:function(e){if(e.value===Mn)throw Error("Detected cycle in computations.");var N=e.value;e.value=Mn;var y=Ap0(e);try{var w=e.source();var E=e.Vv(w,N===YW||N===lW?void 0:{source:e.KyP,value:N});e.KyP=w}catch(A){E=lW,e.error=A}finally{Tm_(e,y)}N!==YW&&E!==lW&&e.W5(N,E)?e.value=N:(e.value=E,e.version++)}});Object.assign({},Qx,{rY:!0,UN:!1,LD:function(e){e.schedule!==null&&e.schedule(e.DYP)}, K$B:!1,yeW:function(){}});lRP(!0);lRP(!1);var FwM=Object.assign({},{attributes:{},handleError:function(e){throw e;}},{reP:!0, Ljs:!0,HL:!1,zaW:!1,Aeh:!1,RJq:!1});var cpM=Symbol("updater");g.b(HB,g.Ux);HB.prototype.dispose=function(){window.removeEventListener("offline",this.K);window.removeEventListener("online",this.K);this.hx.Zx(this.L);delete HB.instance}; HB.prototype.E4=function(){return this.J}; HB.prototype.Ga=function(){var e=this;this.L=this.hx.kB(function(){var N;return g.f(function(y){if(y.J==1)return e.J?((N=window.navigator)==null?0:N.onLine)?y.u9(3):g.D(y,mI(e),3):g.D(y,mI(e),3);e.Ga();g.hn(y)})},3E4)};WB.prototype.set=function(e,N){N=N===void 0?!0:N;0<=e&&e<52&&Number.isInteger(e)&&this.data[e]!==N&&(this.data[e]=N,this.J=-1)}; WB.prototype.get=function(e){return!!this.data[e]};var R1;g.e0(g.a1,g.x);g.J=g.a1.prototype;g.J.start=function(){this.stop();this.j=!1;var e=PGE(this),N=dW5(this);e&&!N&&this.N.mozRequestAnimationFrame?(this.J=g.jv(this.N,"MozBeforePaint",this.K),this.N.mozRequestAnimationFrame(null),this.j=!0):this.J=e&&N?e.call(this.N,this.K):this.N.setTimeout(mqJ(this.K),20)}; g.J.stop=function(){if(this.isActive()){var e=PGE(this),N=dW5(this);e&&!N&&this.N.mozRequestAnimationFrame?Ox(this.J):e&&N?N.call(this.N,this.J):this.N.clearTimeout(this.J)}this.J=null}; g.J.isActive=function(){return this.J!=null}; g.J.PO=function(){this.j&&this.J&&Ox(this.J);this.J=null;this.Z.call(this.L,g.s9())}; g.J.fh=function(){this.stop();g.a1.cw.fh.call(this)};g.e0(g.e6,g.x);g.J=g.e6.prototype;g.J.GM=0;g.J.fh=function(){g.e6.cw.fh.call(this);this.stop();delete this.J;delete this.N}; g.J.start=function(e){this.stop();this.GM=g.Bc(this.K,e!==void 0?e:this.uR)}; g.J.stop=function(){this.isActive()&&g.xJ.clearTimeout(this.GM);this.GM=0}; g.J.isActive=function(){return this.GM!=0}; g.J.RQ=function(){this.GM=0;this.J&&this.J.call(this.N)};g.E2.prototype[Symbol.iterator]=function(){return this}; g.E2.prototype.next=function(){var e=this.J.next();return{value:e.done?void 0:this.N.call(void 0,e.value),done:e.done}};g.e0(g.MA,g.Ux);g.J=g.MA.prototype;g.J.isPlaying=function(){return this.J==1}; g.J.isPaused=function(){return this.J==-1}; g.J.Y2=function(){this.MA("begin")}; g.J.m$=function(){this.MA("end")}; g.J.onFinish=function(){this.MA("finish")}; g.J.onStop=function(){this.MA("stop")}; g.J.MA=function(e){this.dispatchEvent(e)};var WFf=rR(function(){var e=g.sA("DIV"),N=g.RB?"-webkit":Y0?"-moz":null,y="transition:opacity 1s linear;";N&&(y+=N+"-transition:opacity 1s linear;");N=UgJ({style:y});if(e.nodeType===1&&/^(script|style)$/i.test(e.tagName))throw Error("");e.innerHTML=ux(N);return g.MW(e.firstChild,"transition")!=""});g.e0(ln,g.MA);g.J=ln.prototype;g.J.play=function(){if(this.isPlaying())return!1;this.Y2();this.MA("play");this.startTime=g.s9();this.J=1;if(WFf())return g.$0(this.N,this.Z),this.K=g.Bc(this.rug,void 0,this),!0;this.PR(!1);return!1}; g.J.rug=function(){g.Be(this.N);zG5(this.N,this.G);g.$0(this.N,this.j);this.K=g.Bc((0,g.Gs)(this.PR,this,!1),this.L*1E3)}; g.J.stop=function(){this.isPlaying()&&this.PR(!0)}; g.J.PR=function(e){g.$0(this.N,"transition","");g.xJ.clearTimeout(this.K);g.$0(this.N,this.j);this.endTime=g.s9();this.J=0;if(e)this.onStop();else this.onFinish();this.m$()}; g.J.fh=function(){this.stop();ln.cw.fh.call(this)}; g.J.pause=function(){};var DWs={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};FM("Element","attributes")||FM("Node","attributes");FM("Element","innerHTML")||FM("HTMLElement","innerHTML");FM("Node","nodeName");FM("Node","nodeType");FM("Node","parentNode");FM("Node","childNodes");FM("HTMLElement","style")||FM("Element","style");FM("HTMLStyleElement","sheet");var qbP=V2E("getPropertyValue"),ZK5=V2E("setProperty");FM("Element","namespaceURI")||FM("Node","namespaceURI");var u0M={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var QdF,YQ0,n0E,jdE,mW0;QdF=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]");YQ0=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.OMT=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.or=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]");n0E=/^http:\/\/.*/;g.R5T=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");jdE=/\s+/;mW0=/[\d\u06f0-\u06f9]/;h4.prototype.SW=function(){return new cD(this.N())}; h4.prototype[Symbol.iterator]=function(){return new k1(this.N())}; h4.prototype.J=function(){return new k1(this.N())}; g.b(cD,g.Eo);cD.prototype.next=function(){return this.N.next()}; cD.prototype[Symbol.iterator]=function(){return new k1(this.N)}; cD.prototype.J=function(){return new k1(this.N)}; g.b(k1,h4);k1.prototype.next=function(){return this.K.next()};XM.prototype.clone=function(){return new XM(this.J,this.G,this.K,this.L,this.j,this.Z,this.N,this.U)}; XM.prototype.Bw=function(e){return this.J==e.J&&this.G==e.G&&this.K==e.K&&this.L==e.L&&this.j==e.j&&this.Z==e.Z&&this.N==e.N&&this.U==e.U};de.prototype.clone=function(){return new de(this.start,this.end)}; de.prototype.getLength=function(){return this.end-this.start};(function(){if(kn_){var e=/Windows NT ([0-9.]+)/;return(e=e.exec(g.zw()))?e[1]:"0"}return HT?(e=/1[0|1][_.][0-9_.]+/,(e=e.exec(g.zw()))?e[0].replace(/_/g,"."):"10"):g.NI?(e=/Android\s+([^\);]+)(\)|;)/,(e=e.exec(g.zw()))?e[1]:""):XA5||P1E||dj_?(e=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(e=e.exec(g.zw()))?e[1].replace(/_/g,"."):""):""})();var Kw9=function(){if(g.DT)return Ir(/Firefox\/([0-9.]+)/);if(g.S6||g.Um||g.oK)return C_1;if(g.i$){if(mf()||H_()){var e=Ir(/CriOS\/([0-9.]+)/);if(e)return e}return Ir(/Chrome\/([0-9.]+)/)}if(g.k$&&!mf())return Ir(/Version\/([0-9.]+)/);if(s8||ay){if(e=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.zw()))return e[1]+"."+e[2]}else if(g.bd)return(e=Ir(/Android\s+([0-9.]+)/))?e:Ir(/Version\/([0-9.]+)/);return""}();g.e0(g.zY,g.x);g.J=g.zY.prototype;g.J.subscribe=function(e,N,y){var w=this.N[e];w||(w=this.N[e]=[]);var E=this.Z;this.J[E]=e;this.J[E+1]=N;this.J[E+2]=y;this.Z=E+3;w.push(E);return E}; g.J.unsubscribe=function(e,N,y){if(e=this.N[e]){var w=this.J;if(e=e.find(function(E){return w[E+1]==N&&w[E+2]==y}))return this.qr(e)}return!1}; g.J.qr=function(e){var N=this.J[e];if(N){var y=this.N[N];this.j!=0?(this.K.push(e),this.J[e+1]=function(){}):(y&&g.Lq(y,e),delete this.J[e],delete this.J[e+1],delete this.J[e+2])}return!!N}; g.J.publish=function(e,N){var y=this.N[e];if(y){var w=Array(arguments.length-1),E=arguments.length,A;for(A=1;A0&&this.j==0)for(;y=this.K.pop();)this.qr(y)}}return A!=0}return!1}; g.J.clear=function(e){if(e){var N=this.N[e];N&&(N.forEach(this.qr,this),delete this.N[e])}else this.J.length=0,this.N={}}; g.J.fh=function(){g.zY.cw.fh.call(this);this.clear();this.K.length=0};g.D6.prototype.set=function(e,N){N===void 0?this.J.remove(e):this.J.set(e,g.ID(N))}; g.D6.prototype.get=function(e){try{var N=this.J.get(e)}catch(y){return}if(N!==null)try{return JSON.parse(N)}catch(y){throw"Storage: Invalid value was encountered";}}; g.D6.prototype.remove=function(e){this.J.remove(e)};g.e0(ge,g.D6);ge.prototype.set=function(e,N){ge.cw.set.call(this,e,RGM(N))}; ge.prototype.N=function(e){e=ge.cw.get.call(this,e);if(e===void 0||e instanceof Object)return e;throw"Storage: Invalid value was encountered";}; ge.prototype.get=function(e){if(e=this.N(e)){if(e=e.data,e===void 0)throw"Storage: Invalid value was encountered";}else e=void 0;return e};g.e0(VE,ge);VE.prototype.set=function(e,N,y){if(N=RGM(N)){if(y){if(y=y.length)return g.pF;var E=y.key(N++);if(e)return g.Aq(E);E=y.getItem(E);if(typeof E!=="string")throw"Storage mechanism: Invalid value was encountered";return g.Aq(E)}; return w}; g.J.clear=function(){qA(this);this.J.clear()}; g.J.key=function(e){qA(this);return this.J.key(e)};g.e0(Z6,un);g.e0(Lw5,un);g.e0(x1,t4);x1.prototype.set=function(e,N){this.N.set(this.J+e,N)}; x1.prototype.get=function(e){return this.N.get(this.J+e)}; x1.prototype.remove=function(e){this.N.remove(this.J+e)}; x1.prototype.SW=function(e){var N=this.N[Symbol.iterator](),y=this,w=new g.Eo;w.next=function(){var E=N.next();if(E.done)return E;for(E=E.value;E.slice(0,y.J.length)!=y.J;){E=N.next();if(E.done)return E;E=E.value}return g.Aq(e?E.slice(y.J.length):y.N.get(E))}; return w};ni.prototype.getValue=function(){return this.N}; ni.prototype.clone=function(){return new ni(this.J,this.N)};g.J=QE.prototype;g.J.J1=function(e,N){var y=this.J;y.push(new ni(e,N));e=y.length-1;N=this.J;for(y=N[e];e>0;){var w=e-1>>1;if(N[w].J>y.J)N[e]=N[w],e=w;else break}N[e]=y}; g.J.remove=function(){var e=this.J,N=e.length,y=e[0];if(!(N<=0)){if(N==1)e.length=0;else{e[0]=e.pop();e=0;N=this.J;for(var w=N.length,E=N[e];e>1;){var A=e*2+1,T=e*2+2;A=TE.J)break;N[e]=N[A];e=A}N[e]=E}return y.getValue()}}; g.J.WP=function(){for(var e=this.J,N=[],y=e.length,w=0;w>>16&65535|0;for(var A;y!==0;){A=y>2E3?2E3:y;y-=A;do E=E+N[w++]|0,e=e+E|0;while(--A);E%=65521;e%=65521}return E|e<<16|0};for(var oG={},Fp,a10=[],SW=0;SW<256;SW++){Fp=SW;for(var eX_=0;eX_<8;eX_++)Fp=Fp&1?3988292384^Fp>>>1:Fp>>>1;a10[SW]=Fp}oG=function(e,N,y,w){y=w+y;for(e^=-1;w>>8^a10[(e^N[w])&255];return e^-1};var JT={};JT={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 eC=[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],wx=[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],cqE=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],C6M=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],$r=Array(576);WD($r);var Yr=Array(60);WD(Yr);var y2=Array(512);WD(y2);var ar=Array(256);WD(ar);var Ny=Array(29);WD(Ny);var Ea=Array(30);WD(Ea);var oVJ,bGP,hx9,SoF=!1;var Bz;Bz=[new kr(0,0,0,0,function(e,N){var y=65535;for(y>e.jz-5&&(y=e.jz-5);;){if(e.MU<=1){bg(e);if(e.MU===0&&N===0)return 1;if(e.MU===0)break}e.zW+=e.MU;e.MU=0;var w=e.En+y;if(e.zW===0||e.zW>=w)if(e.MU=e.zW-w,e.zW=w,My(e,!1),e.I2.qP===0)return 1;if(e.zW-e.En>=e.r4-262&&(My(e,!1),e.I2.qP===0))return 1}e.J1=0;if(N===4)return My(e,!0),e.I2.qP===0?3:4;e.zW>e.En&&My(e,!1);return 1}), new kr(4,4,8,4,hT),new kr(4,5,16,8,hT),new kr(4,6,32,32,hT),new kr(4,4,16,16,cz),new kr(8,16,32,32,cz),new kr(8,16,128,128,cz),new kr(8,32,128,256,cz),new kr(32,128,258,1024,cz),new kr(32,258,258,4096,cz)];var Fi0={};Fi0=function(){this.input=null;this.jx=this.o$=this.FY=0;this.output=null;this.JY=this.qP=this.UW=0;this.msg="";this.state=null;this.K3=2;this.Z_=0};var keE=Object.prototype.toString; Xg.prototype.push=function(e,N){var y=this.I2,w=this.options.chunkSize;if(this.ended)return!1;var E=N===~~N?N:N===!0?4:0;typeof e==="string"?y.input=sdn(e):keE.call(e)==="[object ArrayBuffer]"?y.input=new Uint8Array(e):y.input=e;y.FY=0;y.o$=y.input.length;do{y.qP===0&&(y.output=new Ki.iV(w),y.UW=0,y.qP=w);e=lfJ(y,E);if(e!==1&&e!==0)return this.m$(e),this.ended=!0,!1;if(y.qP===0||y.o$===0&&(E===4||E===2))if(this.options.ZF==="string"){var A=Ki.LQ(y.output,y.UW);N=A;A=A.length;if(A<65537&&(N.subarray&& sPw||!N.subarray))N=String.fromCharCode.apply(null,Ki.LQ(N,A));else{for(var T="",p=0;p0||y.qP===0)&&e!==1);if(E===4)return(y=this.I2)&&y.state?(w=y.state.status,w!==42&&w!==69&&w!==73&&w!==91&&w!==103&&w!==113&&w!==666?e=pb(y,-2):(y.state=null,e=w===113?pb(y,-3):0)):e=-2,this.m$(e),this.ended=!0,e===0;E===2&&(this.m$(0),y.qP=0);return!0}; Xg.prototype.m$=function(e){e===0&&(this.result=this.options.ZF==="string"?this.chunks.join(""):Ki.Oe(this.chunks));this.chunks=[];this.err=e;this.msg=this.I2.msg};var dx="@@redux/INIT"+Pz(),vVJ="@@redux/REPLACE"+Pz();var zxF=typeof Symbol==="function"&&Symbol.observable||"@@observable";var N5w=[0,AnT,-3,EO];g.b(zz,qq);zz.prototype.getType=function(){return lV(this,11)};var jiM=function(){var e=[0,Jnf,T_w,eW,AnT,eW,-1,EO,AnT,EO,-1,Jnf,EO,T_w,Nn,N5w,eW,-1,EO];return function(N,y){if(aa.length){var w=aa.pop();vR9(w,y);w.J.init(N,void 0,void 0,y);N=w}else N=new D8(N,y);try{var E=new zz,A=E.wT;wG(e)(A,N);var T=E}finally{N.free()}return T}}();var Vg3=-1945370920;var K1M=new g.ig("adInfoDialogEndpoint");var r0J=new g.ig("adPingingEndpoint");var DEE=new g.ig("crossDeviceProgressCommand");var Lt=new g.ig("actionCompanionAdRenderer");var pd=new g.ig("adActionInterstitialRenderer");var yVq=new g.ig("adDurationRemainingRenderer");var IQ=new g.ig("adHoverTextButtonRenderer");var m7P=new g.ig("adInfoDialogRenderer");var ps=new g.ig("adMessageRenderer");var vr=new g.ig("adPreviewRenderer");var aX=new g.ig("adsEngagementPanelRenderer");var w8P=new g.ig("dismissablePanelTextPortraitImageRenderer");var Nv1=new g.ig("adsEngagementPanelSectionListViewModel");var w_X=new g.ig("flyoutCtaRenderer");var s_=new g.ig("imageCompanionAdRenderer");var TS=new g.ig("instreamAdPlayerOverlayRenderer");var gcM=new g.ig("instreamSurveyAdBackgroundImageRenderer");var dj=new g.ig("instreamSurveyAdPlayerOverlayRenderer");var Sj=new g.ig("instreamSurveyAdRenderer"),Pr=new g.ig("instreamSurveyAdSingleSelectQuestionRenderer"),X4=new g.ig("instreamSurveyAdMultiSelectQuestionRenderer"),oH=new g.ig("instreamSurveyAdAnswerRenderer"),Eww=new g.ig("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var lS=new g.ig("instreamVideoAdRenderer");var AVw=new g.ig("textOverlayAdContentRenderer"),T5T=new g.ig("enhancedTextOverlayAdContentRenderer"),JVk=new g.ig("imageOverlayAdContentRenderer");var JG=new g.ig("playerOverlayLayoutRenderer");var Cd=new g.ig("videoInterstitialButtonedCenteredLayoutRenderer");var p89=new g.ig("aboveFeedAdLayoutRenderer");var CI5=new g.ig("belowPlayerAdLayoutRenderer");var JCH=new g.ig("inPlayerAdLayoutRenderer");var he=new g.ig("playerBytesAdLayoutRenderer");var rCF=new g.ig("playerBytesSequenceItemAdLayoutRenderer");var Br=new g.ig("playerUnderlayAdLayoutRenderer");var F4=new g.ig("adIntroRenderer");var TR=new g.ig("playerBytesSequentialLayoutRenderer");var mfF=new g.ig("slidingTextPlayerOverlayRenderer");var oQ=new g.ig("surveyTextInterstitialRenderer");var $fn=new g.ig("videoAdTrackingRenderer");var p_5=new g.ig("simpleAdBadgeRenderer");var yV=new g.ig("skipAdRenderer"),C_Z=new g.ig("skipButtonRenderer");var gj=new g.ig("adSlotRenderer");var cr=new g.ig("squeezebackPlayerSidePanelRenderer");var rVk=new g.ig("timedPieCountdownRenderer");var mO=new g.ig("adAvatarViewModel");var Hv=new g.ig("adBadgeViewModel");var Ke=new g.ig("adButtonViewModel");var $Mw=new g.ig("adDetailsLineViewModel");var Ykf=new g.ig("adDisclosureBannerViewModel");var M0Z=new g.ig("adPodIndexViewModel");var lZV=new g.ig("imageBackgroundViewModel");var Ffw=new g.ig("adGridCardCollectionViewModel");var Skq=new g.ig("adGridCardTextViewModel");var owT=new g.ig("adPreviewViewModel");var bq0=new g.ig("playerAdAvatarLockupCardButtonedViewModel");var hXk=new g.ig("skipAdButtonViewModel");var cV5=new g.ig("skipAdViewModel");var kwk=new g.ig("timedPieCountdownViewModel");var B5f=new g.ig("visitAdvertiserLinkViewModel");var ej=new g.ig("bannerImageLayoutViewModel");var N2=new g.ig("topBannerImageTextIconButtonedLayoutViewModel");var yw=new g.ig("adsEngagementPanelLayoutViewModel");var kt=new g.ig("displayUnderlayTextGridCardsLayoutViewModel");g.S5=new g.ig("browseEndpoint");var X_f=new g.ig("confirmDialogEndpoint");var MuP=new g.ig("rawColdConfigGroup");var YFM=new g.ig("rawHotConfigGroup");g.o4=new g.ig("commandExecutorCommand");g.b(uAM,qq);var W51={qRP:0,SRh:1,o7h:32,X_P:61,MLZ:67,erl:103,WKt:86,Gcq:42,E7q:60,RrW:62,YRt:73,mkh:76,v7s:88,g79:90,QYG:99,Tqk:98,VLG:100,n7P:102,INP:41,Dkk:69,sYs:70,p2B:71,hDl:2,lk1:27,ANDROID:3,ops:54,EpG:14,gpt:91,BzW:55,mrB:24,np1:20,Y_P:18,Urt:21,W3k:104,MYG:30,Drk:29,sVk:28,ilW:101,ppP:34,VY9:36,XIk:38,IOS:5,wcq:15,zfW:92,qnW:40,Ayk:25,hfq:17,l31:19,uHG:64,xOW:66,iEq:26,a3t:22,SnB:33,dOB:68,Rfq:35,yy9:53,cyk:37,OEP:39,DAl:7,sOG:57,p_P:43,JxZ:59,FKq:93,IK1:74,Nqq:75,kch:85,KKh:65,fN1:80,jYl:8,QO9:10, w_G:58,blk:63,tL9:72,QVh:23,NfW:11,kJg:13,CRW:12,IcW:16,Hlq:56,UkP:31,q$1:77,Gxh:84,BqP:87,EXh:89,oXh:94,DOg:95};g.b(DO,qq);DO.prototype.l_=function(){return Mq(this,3)}; DO.prototype.Sk=function(){return Mq(this,5)}; DO.prototype.K2=function(e){return Sn(this,5,e)};g.b(gx,qq);g.b(qoJ,qq);g.b(V2,qq);g.J=V2.prototype;g.J.getDeviceId=function(){return Mq(this,6)}; g.J.cZ=function(e){var N=WW(this,9,Cm,3,void 0,!0);nf(N,e);return N[e]}; g.J.getPlayerType=function(){return lV(this,36)}; g.J.setHomeGroupInfo=function(e){return JQ(this,qoJ,81,e)}; g.J.clearLocationPlayabilityToken=function(){return j4(this,89)};g.b(fb,qq);fb.prototype.getValue=function(){return Mq(this,yH(this,r2E)===2?2:-1)}; var r2E=[2,3,4,5,6];g.b(tT,qq);tT.prototype.setTrackingParams=function(e){return j4(this,1,iqM(e,!1))};g.b(ug,qq);g.b(qy,qq);qy.prototype.cZ=function(e){var N=WW(this,5,ra,3,void 0,!0);nf(N,e);return N[e]};g.b(ZO,qq);ZO.prototype.getToken=function(){return $f(this,2)}; ZO.prototype.setToken=function(e){return Sn(this,2,e)};g.b(xr,qq);xr.prototype.setSafetyMode=function(e){return bV(this,5,e)};g.b(jC,qq);jC.prototype.JE=function(e){return JQ(this,V2,1,e)};var iS=new g.ig("thumbnailLandscapePortraitRenderer");g.P_V=new g.ig("changeEngagementPanelVisibilityAction");var FKP=new g.ig("continuationCommand");g.dMq=new g.ig("openPopupAction");g.bW=new g.ig("webCommandMetadata");var kRF=new g.ig("metadataBadgeRenderer");var lx0=new g.ig("signalServiceEndpoint");var ZL=new g.ig("innertubeCommand");var yxH=new g.ig("loggingDirectives");var BNs={j1W:"EMBEDDED_PLAYER_MODE_UNKNOWN",KSl:"EMBEDDED_PLAYER_MODE_DEFAULT",fxh:"EMBEDDED_PLAYER_MODE_PFP",t1s:"EMBEDDED_PLAYER_MODE_PFL"};var RQM=new g.ig("channelThumbnailEndpoint");var ONM=new g.ig("embeddedPlayerErrorMessageRenderer");var m23=new g.ig("embeddedPlayerOverlayVideoDetailsRenderer"),GRP=new g.ig("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),U23=new g.ig("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var bNM=new g.ig("embedsInfoPanelRenderer");var IZw=new g.ig("feedbackEndpoint");var vwX=new g.ig("callToActionButtonViewModel");var zXF=new g.ig("interactionLoggingCommandMetadata");var bb5={LKs:"WEB_DISPLAY_MODE_UNKNOWN",CLg:"WEB_DISPLAY_MODE_BROWSER",ZlW:"WEB_DISPLAY_MODE_MINIMAL_UI",rx1:"WEB_DISPLAY_MODE_STANDALONE",PLP:"WEB_DISPLAY_MODE_FULLSCREEN"};g.b(nb,qq);nb.prototype.getPlayerType=function(){return lV(this,7)}; nb.prototype.vE=function(){return Mq(this,19)}; nb.prototype.setVideoId=function(e){return Sn(this,19,e)};g.b(Q2,qq);g.b(Kb,qq);g.b(Wz,qq); var iqq=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353, 354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515];var DM5=new g.ig("loggingContext");g.b(Oa,qq);g.b(RG,qq);RG.prototype.vE=function(){return $f(this,yH(this,$g)===1?1:-1)}; RG.prototype.setVideoId=function(e){return en(this,1,$g,cW(e))}; RG.prototype.getPlaylistId=function(){return $f(this,yH(this,$g)===2?2:-1)}; var $g=[1,2];g.b(ZG5,qq);var K3=new g.ig("changeKeyedMarkersVisibilityCommand");var gw0=new g.ig("changeMarkersVisibilityCommand");var XrP=new g.ig("loadMarkersCommand");var V00=new g.ig("suggestedActionDataViewModel");var oyH=new g.ig("timelyActionViewModel");var SL0=new g.ig("timelyActionsOverlayViewModel");var kdM=new g.ig("productListItemRenderer");var fZw=new g.ig("shoppingOverlayRenderer");var HN5=new g.ig("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var t0f=new g.ig("adFeedbackEndpoint");var uFw=new g.ig("menuEndpoint");var uOJ=new g.ig("phoneDialerEndpoint");var fg5=new g.ig("sendSmsEndpoint");var QQn=new g.ig("copyTextEndpoint");var qk5=new g.ig("shareEndpoint"),Zqf=new g.ig("shareEntityEndpoint"),xM0=new g.ig("shareEntityServiceEndpoint"),jwT=new g.ig("webPlayerShareEntityServiceEndpoint");g.qu=new g.ig("urlEndpoint");g.m0=new g.ig("watchEndpoint");var nw5=new g.ig("watchPlaylistEndpoint");g.QwM=new g.ig("offlineOrchestrationActionCommand");var A9F=new g.ig("compositeVideoOverlayRenderer");var mMV=new g.ig("miniplayerRenderer");var jQs=new g.ig("paidContentOverlayRenderer");var HqF=new g.ig("playerMutedAutoplayOverlayRenderer"),KfX=new g.ig("playerMutedAutoplayEndScreenRenderer");var fpn=new g.ig("unserializedPlayerResponse"),Wff=new g.ig("unserializedPlayerResponse");var Oq_=new g.ig("playlistEditEndpoint");var hs;g.zR=new g.ig("buttonRenderer");hs=new g.ig("toggleButtonRenderer");var edF=new g.ig("counterfactualRenderer");var RX5=new g.ig("resolveUrlCommandMetadata");var Gw0=new g.ig("modifyChannelNotificationPreferenceEndpoint");var CAs=new g.ig("pingingEndpoint");var UMk=new g.ig("unsubscribeEndpoint");g.o$=new g.ig("subscribeButtonRenderer");var Lf_=new g.ig("subscribeEndpoint");var p13=new g.ig("buttonViewModel");var yCH=new g.ig("qrCodeRenderer");var Ryn={WWP:"LIVING_ROOM_APP_MODE_UNSPECIFIED",YnG:"LIVING_ROOM_APP_MODE_MAIN",nIs:"LIVING_ROOM_APP_MODE_KIDS",XcG:"LIVING_ROOM_APP_MODE_MUSIC",UOW:"LIVING_ROOM_APP_MODE_UNPLUGGED",mOh:"LIVING_ROOM_APP_MODE_GAMING"};var F9M=new g.ig("autoplaySwitchButtonRenderer");var Sx,pj5,nAE,hU3;Sx=new g.ig("decoratedPlayerBarRenderer");pj5=new g.ig("chapteredPlayerBarRenderer");nAE=new g.ig("multiMarkersPlayerBarRenderer");hU3=new g.ig("chapterRenderer");g.YOE=new g.ig("markerRenderer");var swM=new g.ig("decoratedPlayheadRenderer");var hQE=new g.ig("desktopOverlayConfigRenderer");var ECE=new g.ig("engagementPanelSectionListRenderer");var otM=new g.ig("gatedActionsOverlayViewModel");var SOJ=new g.ig("heatMarkerRenderer");var Fgs=new g.ig("heatmapRenderer");var BjM=new g.ig("watchToWatchTransitionRenderer");var K9_=new g.ig("playlistPanelRenderer");var aZ_=new g.ig("productUpsellSuggestedActionViewModel");var ejk=new g.ig("suggestedActionTimeRangeTrigger"),NrF=new g.ig("suggestedActionsRenderer"),yO_=new g.ig("suggestedActionRenderer");var oWJ=new g.ig("timedMarkerDecorationRenderer");var E6n=new g.ig("cipher");var tm5=new g.ig("playerVars");var wm5=new g.ig("playerVars");var cj=g.xJ.window,ERf,AOX,Gz=(cj==null?void 0:(ERf=cj.yt)==null?void 0:ERf.config_)||(cj==null?void 0:(AOX=cj.ytcfg)==null?void 0:AOX.data_)||{};g.jM("yt.config_",Gz);var aG=[];var Rx0=/^[\w.]*$/,HGM={q:!0,search_query:!0},meM=String(w2);var MR=new function(){var e=window.document;this.J=window;this.N=e}; g.jM("yt.ads_.signals_.getAdSignalsString",function(e){return E8(Fj(e))});g.s9();var Ue0="XMLHttpRequest"in g.xJ?function(){return new XMLHttpRequest}:null;var Trk="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.B(Trk);var eh3={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"},NN9="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.B(Trk)),Cf1=!1,sZE=y7n,TNP=vL;g.b(DJ,FF);fp.prototype.then=function(e,N,y){return this.J?this.J.then(e,N,y):this.K===1&&e?(e=e.call(y,this.N))&&typeof e.then==="function"?e:u4(e):this.K===2&&N?(e=N.call(y,this.N))&&typeof e.then==="function"?e:tE(e):this}; fp.prototype.getValue=function(){return this.N}; fp.prototype.$goog_Thenable=!0;var qR=!1;var Gv=s8||ay;var c7_=/^([0-9\.]+):([0-9\.]+)$/;g.b(lY,FF);lY.prototype.name="BiscottiError";g.b(MI,FF);MI.prototype.name="BiscottiMissingError";var PfJ={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},Fc=null;var Ba3=JnF(["data-"]),fS1={};var JOk=0,Su=g.RB?"webkit":Y0?"moz":g.S6?"ms":g.oK?"o":"",pmF=g.nM("ytDomDomGetNextId")||function(){return++JOk}; g.jM("ytDomDomGetNextId",pmF);var Zks={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};BE.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; BE.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; BE.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var Xc=g.xJ.ytEventsEventsListeners||{};g.jM("ytEventsEventsListeners",Xc);var nD0=g.xJ.ytEventsEventsCounter||{count:0};g.jM("ytEventsEventsCounter",nD0);var KI1=rR(function(){var e=!1;try{var N=Object.defineProperty({},"passive",{get:function(){e=!0}}); window.addEventListener("test",null,N)}catch(y){}return e}),Q19=rR(function(){var e=!1; try{var N=Object.defineProperty({},"capture",{get:function(){e=!0}}); window.addEventListener("test",null,N)}catch(y){}return e});var kW;kW=window;g.iC=kW.ytcsi&&kW.ytcsi.now?kW.ytcsi.now:kW.performance&&kW.performance.timing&&kW.performance.now&&kW.performance.timing.navigationStart?function(){return kW.performance.timing.navigationStart+kW.performance.now()}:function(){return(new Date).getTime()};g.e0(zh,g.x);zh.prototype.D=function(e){e.J===void 0&&xH5(e);var N=e.J;e.N===void 0&&xH5(e);this.J=new g.ri(N,e.N)}; zh.prototype.wD=function(){return this.J||new g.ri}; zh.prototype.Ng=function(){if(this.J){var e=(0,g.iC)();if(this.j!=0){var N=this.Z,y=this.J,w=N.x-y.x;N=N.y-y.y;w=Math.sqrt(w*w+N*N)/(e-this.j);this.N[this.K]=Math.abs((w-this.L)/this.L)>.5?1:0;for(y=N=0;y<4;y++)N+=this.N[y]||0;N>=3&&this.G();this.L=w}this.j=e;this.Z=this.J;this.K=(this.K+1)%4}}; zh.prototype.fh=function(){g.k3(this.U);g.d9(this.Kh)};g.b(iY,g.x);iY.prototype.Y=function(e,N,y,w,E){y=g.NR((0,g.Gs)(y,w||this.a9));y={target:e,name:N,callback:y};var A;E&&KI1()&&(A={passive:!0});e.addEventListener(N,y.callback,A);this.G.push(y);return y}; iY.prototype.CX=function(e){for(var N=0;N=n.Bs)||X.J.version>=R||X.J.objectStoreNames.contains(Z)||v.push(Z)}C=v;if(C.length===0){k.u9(5);break}r=Object.keys(y.options.Ed); Y=p.objectStoreNames();if(y.Ly.options.version+1)throw l.close(),y.K=!1,V6_(y,F);return k.return(l);case 8:throw N(), M instanceof Error&&!g.Xj("ytidb_async_stack_killswitch")&&(M.stack=M.stack+"\n"+T.substring(T.indexOf("\n")+1)),BV(M,y.name,"",(S=y.options.version)!=null?S:-1);}})} function N(){y.J===w&&(y.J=void 0)} var y=this;if(!this.K)throw V6_(this);if(this.J)return this.J;var w,E={blocking:function(A){A.close()}, closed:N,cT1:N,upgrade:this.options.upgrade};return this.J=w=e()};var Om=new Kl("YtIdbMeta",{Ed:{databases:{Bs:1}},upgrade:function(e,N){N(1)&&g.g0(e,"databases",{keyPath:"actualName"})}});var sm,Ll=new function(){}(new function(){});new g.lq;g.b(N9,Kl);N9.prototype.N=function(e,N,y){y=y===void 0?{}:y;return(this.options.shared?QrH:n15)(e,N,Object.assign({},y))}; N9.prototype.delete=function(e){e=e===void 0?{}:e;return(this.options.shared?W7M:mAF)(this.name,e)};var oRq={},RTH=g.yJ("ytGcfConfig",{Ed:(oRq.coldConfigStore={Bs:1},oRq.hotConfigStore={Bs:1},oRq),shared:!1,upgrade:function(e,N){N(1)&&(g.Zm(g.g0(e,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.Zm(g.g0(e,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.b(EE,g.x);EE.prototype.fh=function(){for(var e=g.c(this.N),N=e.next();!N.done;N=e.next()){var y=this.J;N=y.indexOf(N.value);N>=0&&y.splice(N,1)}this.N.length=0;g.x.prototype.fh.call(this)};ro.prototype.K2=function(e){this.hotHashData=e;g.jM("yt.gcf.config.hotHashData",this.hotHashData||null)};var bf_=typeof TextEncoder!=="undefined"?new TextEncoder:null,qaM=bf_?function(e){return bf_.encode(e)}:function(e){e=g.hV(e); for(var N=new Uint8Array(e.length),y=0;y=N?!1:!0}; g.J.Is=function(){var e=this;if(!Zx(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.kp.HW("QUEUED",this.fq).then(function(N){N&&!e.Vx(N,e.SA)?e.hx.kB(function(){return g.f(function(y){if(y.J==1)return N.id===void 0?y.u9(2):g.D(y,e.kp.VK(N.id,e.fq),2);e.Is();g.hn(y)})}):e.nN.E4()&&e.Ml()})};var n6;var SF1={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135, mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28, nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42, assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225, liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73, visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88, spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153, vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136, mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167, kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387, transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189, ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258, ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221, accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245, musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270, yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296, notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478, tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340, iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361, mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380, mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400, clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420, mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16, mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443, cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470, fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491, castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515};var cOk={},N2F=g.yJ("ServiceWorkerLogsDatabase",{Ed:(cOk.SWHealthLog={Bs:1},cOk),shared:!0,upgrade:function(e,N){N(1)&&g.Zm(g.g0(e,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var Hi={},JEs=0;var K6;OE.prototype.requestComplete=function(e,N){N&&(this.N=!0);e=this.removeParams(e);this.J.get(e)||this.J.set(e,N)}; OE.prototype.isEndpointCFR=function(e){e=this.removeParams(e);return(e=this.J.get(e))?!1:e===!1&&this.N?!0:null}; OE.prototype.removeParams=function(e){return e.split("?")[0]}; OE.prototype.removeParams=OE.prototype.removeParams;OE.prototype.isEndpointCFR=OE.prototype.isEndpointCFR;OE.prototype.requestComplete=OE.prototype.requestComplete;OE.getInstance=Re;g.b(Gi,g.Ux);g.J=Gi.prototype;g.J.E4=function(){return this.J.E4()}; g.J.DP=function(e){this.J.J=e}; g.J.ek=function(){var e=window.navigator.onLine;return e===void 0?!0:e}; g.J.TG=function(){this.N=!0}; g.J.listen=function(e,N){return this.J.listen(e,N)}; g.J.K0=function(e){e=mI(this.J,e);e.then(function(N){g.Xj("use_cfr_monitor")&&Re().requestComplete("generate_204",N)}); return e}; Gi.prototype.sendNetworkCheckRequest=Gi.prototype.K0;Gi.prototype.listen=Gi.prototype.listen;Gi.prototype.enableErrorFlushing=Gi.prototype.TG;Gi.prototype.getWindowStatus=Gi.prototype.ek;Gi.prototype.networkStatusHint=Gi.prototype.DP;Gi.prototype.isNetworkAvailable=Gi.prototype.E4;Gi.getInstance=rEF;g.b(g.UE,g.Ux);g.UE.prototype.E4=function(){var e=g.nM("yt.networkStatusManager.instance.isNetworkAvailable");return e?e.bind(this.N)():!0}; g.UE.prototype.DP=function(e){var N=g.nM("yt.networkStatusManager.instance.networkStatusHint").bind(this.N);N&&N(e)}; g.UE.prototype.K0=function(e){var N=this,y;return g.f(function(w){y=g.nM("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(N.N);return g.Xj("skip_network_check_if_cfr")&&Re().isEndpointCFR("generate_204")?w.return(new Promise(function(E){var A;N.DP(((A=window.navigator)==null?void 0:A.onLine)||!0);E(N.E4())})):y?w.return(y(e)):w.return(!0)})};var L6;g.b(sE,xp);sE.prototype.writeThenSend=function(e,N){N||(N={});N=eS(e,N);g.LO()||(this.J=!1);xp.prototype.writeThenSend.call(this,e,N)}; sE.prototype.sendThenWrite=function(e,N,y){N||(N={});N=eS(e,N);g.LO()||(this.J=!1);xp.prototype.sendThenWrite.call(this,e,N,y)}; sE.prototype.sendAndWrite=function(e,N){N||(N={});N=eS(e,N);g.LO()||(this.J=!1);xp.prototype.sendAndWrite.call(this,e,N)}; sE.prototype.awaitInitialization=function(){return this.K.promise};var FH9=g.xJ.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.jM("ytNetworklessLoggingInitializationOptions",FH9);g.N6.prototype.isReady=function(){!this.config_&&$yF()&&(this.config_=g.Yp());return!!this.config_};var k75,EC,T_;k75=g.xJ.ytPubsubPubsubInstance||new g.zY;EC=g.xJ.ytPubsubPubsubSubscribedKeys||{};T_=g.xJ.ytPubsubPubsubTopicToKeys||{};g.Al=g.xJ.ytPubsubPubsubIsSynchronous||{};g.zY.prototype.subscribe=g.zY.prototype.subscribe;g.zY.prototype.unsubscribeByKey=g.zY.prototype.qr;g.zY.prototype.publish=g.zY.prototype.publish;g.zY.prototype.clear=g.zY.prototype.clear;g.jM("ytPubsubPubsubInstance",k75);g.jM("ytPubsubPubsubTopicToKeys",T_);g.jM("ytPubsubPubsubIsSynchronous",g.Al); g.jM("ytPubsubPubsubSubscribedKeys",EC);var kk9={};g.b(cX,g.x);cX.prototype.append=function(e){if(!this.N)throw Error("This does not support the append operation");e=e.ut();this.ut().appendChild(e)}; g.b(k5,cX);k5.prototype.ut=function(){return this.J};g.b(P45,g.x);var BX=Date.now().toString();var vX={};var V7=Symbol("injectionDeps");ia.prototype.toString=function(){return"InjectionToken("+this.name+")"}; zgJ.prototype.resolve=function(e){return e instanceof Dc?fE(this,e.key,[],!0):fE(this,e,[])};var tl;var q6=window;var nE=g.Xj("web_enable_lifecycle_monitoring")&&Zc()!==0,ujE=g.Xj("web_enable_lifecycle_monitoring");VHE.prototype.cancel=function(){for(var e=g.c(this.J),N=e.next();!N.done;N=e.next())N=N.value,N.jobId===void 0||N.rV||this.scheduler.Zx(N.jobId),N.rV=!0;this.N.resolve()};g.J=Q7.prototype;g.J.install=function(e){this.plugins.push(e);return this}; g.J.uninstall=function(){var e=this;g.iE.apply(0,arguments).forEach(function(N){N=e.plugins.indexOf(N);N>-1&&e.plugins.splice(N,1)})}; g.J.transition=function(e,N){var y=this;nE&&DR5(this.state);var w=this.transitions.find(function(A){return Array.isArray(A.from)?A.from.find(function(T){return T===y.state&&A.ZF===e}):A.from===y.state&&A.ZF===e}); if(w){this.N&&(fJM(this.N),this.N=void 0);q8P(this,e,N);this.state=e;nE&&x5(this.state);w=w.action.bind(this);var E=this.plugins.filter(function(A){return A[e]}).map(function(A){return A[e]}); w(tHH(this,E),N)}else throw Error("no transition specified from "+this.state+" to "+e);}; g.J.iqh=function(e){var N=g.iE.apply(1,arguments);g.yK();for(var y=g.c(e),w=y.next(),E={};!w.done;E={Lf:void 0},w=y.next())E.Lf=w.value,E10(function(A){return function(){HX(A.Lf.name);WX(function(){return A.Lf.callback.apply(A.Lf,g.B(N))}); KE(A.Lf.name)}}(E))}; g.J.xGB=function(e){var N=g.iE.apply(1,arguments),y,w,E,A;return g.f(function(T){T.J==1&&(g.yK(),y=g.c(e),w=y.next(),E={});if(T.J!=3){if(w.done)return T.u9(0);E.Tl=w.value;E.m6=void 0;A=function(p){return function(){HX(p.Tl.name);var C=WX(function(){return p.Tl.callback.apply(p.Tl,g.B(N))}); eq(C)?p.m6=g.Xj("web_lifecycle_error_handling_killswitch")?C.then(function(){KE(p.Tl.name)}):C.then(function(){KE(p.Tl.name)},function(r){g3M(r); KE(p.Tl.name)}):KE(p.Tl.name)}}(E); E10(A);return E.m6?g.D(T,E.m6,3):T.u9(3)}E={Tl:void 0,m6:void 0};w=y.next();return T.u9(2)})}; g.J.jX=function(e){var N=g.iE.apply(1,arguments),y=this,w=e.map(function(E){return{S9:function(){HX(E.name);WX(function(){return E.callback.apply(E,g.B(N))}); KE(E.name)}, priority:mq(y,E)}}); w.length&&(this.N=new VHE(w))}; g.pM.Object.defineProperties(Q7.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var Ru;g.b(OC,Q7);OC.prototype.L=function(e,N){var y=this;this.J=g.e1(0,function(){y.currentState==="application_navigating"&&y.transition("none")},5E3); e(N==null?void 0:N.event)}; OC.prototype.Z=function(e,N){this.J&&(g.Kk.Zx(this.J),this.J=null);e(N==null?void 0:N.event)};var h0=[];g.jM("yt.logging.transport.getScrapedGelPayloads",function(){return h0});G_.prototype.storePayload=function(e,N){e=UC(e);this.store[e]?this.store[e].push(N):(this.N={},this.store[e]=[N]);this.J++;g.Xj("more_accurate_gel_parser")&&(N=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(N));return e}; G_.prototype.smartExtractMatchingEntries=function(e){if(!e.keys.length)return[];for(var N=sC(this,e.keys.splice(0,1)[0]),y=[],w=0;w=0){w=!1;break a}}w=!0}w&&(N=jP(N))&&this.M5(N)}}; g.J.yP=function(e){return e}; g.J.T6=function(e){var N=this.qg;N.G=!0;N.N=e.touches.length;N.J.isActive()&&(N.J.stop(),N.L=!0);e=e.touches;N.Z=dR0(N,e)||e.length!=1;var y=e.item(0);N.Z||!y?(N.U=Infinity,N.D=Infinity):(N.U=y.clientX,N.D=y.clientY);for(y=N.K.length=0;y=0)}if(y||e&&Math.pow(e.clientX-N.U,2)+Math.pow(e.clientY-N.D,2)>25)N.j=!0}; g.J.Zi=function(e){if(this.qg){var N=this.qg,y=e.changedTouches;y&&N.G&&N.N==1&&!N.j&&!N.L&&!N.Z&&dR0(N,y)&&(N.Ng=e,N.J.start());N.N=e.touches.length;N.N===0&&(N.G=!1,N.j=!1,N.K.length=0);N.L=!1}}; g.J.M5=function(e){this.layoutId?this.Y1.executeCommand(e,this.layoutId):g.t0(new g.Gh("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))}; g.J.createServerVe=function(e,N){this.api.createServerVe(e,this);this.api.setTrackingParams(e,N)}; g.J.logVisibility=function(e,N){this.api.hasVe(e)&&this.api.logVisibility(e,N,this.interactionLoggingClientData)}; g.J.fh=function(){this.clear(null);this.CX(this.Dl);for(var e=g.c(this.l9),N=e.next();!N.done;N=e.next())this.CX(N.value);g.Mu.prototype.fh.call(this)};g.b(Vv,lj); Vv.prototype.init=function(e,N,y){lj.prototype.init.call(this,e,N,y);this.J=N;if(N.text==null&&N.icon==null)g.uA(Error("ButtonRenderer did not have text or an icon set."));else{switch(N.style||null){case "STYLE_UNKNOWN":e="ytp-ad-button-link";break;default:e=null}e!=null&&g.pi(this.element,e);N.text!=null&&(e=g.SY(N.text),g.kw(e)||(this.element.setAttribute("aria-label",e),this.K=new g.Mu({S:"span",B:"ytp-ad-button-text",b9:e}),g.Q(this,this.K),this.K.yB(this.element)));N.accessibilityData&&N.accessibilityData.accessibilityData&& N.accessibilityData.accessibilityData.label&&!g.kw(N.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",N.accessibilityData.accessibilityData.label);N.icon!=null&&(N=g1(N.icon,this.j),N!=null&&(this.N=new g.Mu({S:"span",B:"ytp-ad-button-icon",W:[N]}),g.Q(this,this.N)),this.Z?yp(this.element,this.N.element,0):this.N.yB(this.element))}}; Vv.prototype.clear=function(){this.hide()}; Vv.prototype.onClick=function(e){lj.prototype.onClick.call(this,e);e=g.c(zb_(this));for(var N=e.next();!N.done;N=e.next())N=N.value,this.layoutId?this.Y1.executeCommand(N,this.layoutId):g.t0(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.b(fT,g.x);fT.prototype.fh=function(){this.N&&g.d9(this.N);this.J.clear();tZ=null;g.x.prototype.fh.call(this)}; fT.prototype.register=function(e,N){N&&this.J.set(e,N)}; var tZ=null;g.b(Zh,lj); Zh.prototype.init=function(e,N,y){lj.prototype.init.call(this,e,N,y);e=N.hoverText||null;N=N.button&&g.m(N.button,g.zR)||null;N==null?g.t0(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new Vv(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,void 0,void 0,void 0,void 0,this.K),g.Q(this,this.button),this.button.init(TV("button"),N,this.macros),e&&this.button.element.setAttribute("aria-label",g.SY(e)),this.button.yB(this.element),this.D&&!g.J4(this.button.element, "ytp-ad-clickable")&&g.pi(this.button.element,"ytp-ad-clickable"),this.K&&(g.pi(this.button.element,"ytp-ad-hover-text-button--clean-player"),this.api.T("clean_player_style_fix_on_web")&&g.pi(this.button.element,"ytp-ad-hover-text-button--clean-player-with-light-shadow")),e&&(this.N=new g.Mu({S:"div",B:"ytp-ad-hover-text-container"}),this.Z&&(N=new g.Mu({S:"div",B:"ytp-ad-hover-text-callout"}),N.yB(this.N.element),g.Q(this,N)),g.Q(this,this.N),this.N.yB(this.element),N=uj(e),yp(this.N.element,N,0)), this.show())}; Zh.prototype.hide=function(){this.button&&this.button.hide();this.N&&this.N.hide();lj.prototype.hide.call(this)}; Zh.prototype.show=function(){this.button&&this.button.show();lj.prototype.show.call(this)};g.b(jY,lj); jY.prototype.init=function(e,N,y){lj.prototype.init.call(this,e,N,y);y=(e=N.thumbnail)&&xl(e)||"";g.kw(y)?Math.random()<.01&&g.uA(Error("Found AdImage without valid image URL")):(this.J?g.$0(this.element,"backgroundImage","url("+y+")"):OA(this.element,{src:y}),OA(this.element,{alt:e&&e.accessibility&&e.accessibility.label||""}),N&&N.adRendererCommands&&N.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; jY.prototype.clear=function(){this.hide()};g.b(nT,lj);g.J=nT.prototype;g.J.hide=function(){lj.prototype.hide.call(this);this.K&&this.K.focus()}; g.J.show=function(){this.K=document.activeElement;lj.prototype.show.call(this);this.j.focus()}; g.J.init=function(e,N,y){lj.prototype.init.call(this,e,N,y);this.N=N;N.dialogMessages||N.title!=null?N.confirmLabel==null?g.t0(Error("ConfirmDialogRenderer.confirmLabel was not set.")):N.cancelLabel==null?g.t0(Error("ConfirmDialogRenderer.cancelLabel was not set.")):V1M(this,N):g.t0(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.J.clear=function(){g.g9(this.J);this.hide()}; g.J.hS=function(){this.hide()}; g.J.Zz=function(){var e=this.N.cancelEndpoint;e&&(this.layoutId?this.Y1.executeCommand(e,this.layoutId):g.t0(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.J.lT=function(){var e=this.N.confirmNavigationEndpoint||this.N.confirmEndpoint;e&&(this.layoutId?this.Y1.executeCommand(e,this.layoutId):g.t0(Error("Missing layoutId for confirm dialog.")));this.hide()};g.b(Qv,lj);g.J=Qv.prototype; g.J.init=function(e,N,y){lj.prototype.init.call(this,e,N,y);this.K=N;if(N.defaultText==null&&N.defaultIcon==null)g.t0(Error("ToggleButtonRenderer must have either text or icon set."));else if(N.defaultIcon==null&&N.toggledIcon!=null)g.t0(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(N.style){switch(N.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":e="ytp-ad-toggle-button-default-style";break;default:e=null}e!=null&&g.pi(this.j,e)}e={};N.defaultText? (y=g.SY(N.defaultText),g.kw(y)||(e.buttonText=y,this.api.X().experiments.gP("a11y_h5_associate_survey_question")||this.J.setAttribute("aria-label",y),this.api.X().experiments.gP("fix_h5_toggle_button_a11y")&&this.N.setAttribute("aria-label",y))):g.X0(this.i9,!1);N.defaultTooltip&&(e.tooltipText=N.defaultTooltip,this.J.hasAttribute("aria-label")||this.N.setAttribute("aria-label",N.defaultTooltip));N.defaultIcon?(y=g1(N.defaultIcon),this.updateValue("untoggledIconTemplateSpec",y),N.toggledIcon?(this.Kh= !0,y=g1(N.toggledIcon),this.updateValue("toggledIconTemplateSpec",y)):(g.X0(this.D,!0),g.X0(this.Z,!1)),g.X0(this.J,!1)):g.X0(this.N,!1);g.v4(e)||this.update(e);N.isToggled&&(g.pi(this.j,"ytp-ad-toggle-button-toggled"),this.toggleButton(N.isToggled));mk(this);this.Y(this.element,"change",this.CL);this.show()}}; g.J.onClick=function(e){this.l9.length>0&&(this.toggleButton(!this.isToggled()),this.CL());lj.prototype.onClick.call(this,e)}; g.J.CL=function(){g.Y1(this.j,"ytp-ad-toggle-button-toggled",this.isToggled());for(var e=g.c(fmE(this,this.isToggled())),N=e.next();!N.done;N=e.next())N=N.value,this.layoutId?this.Y1.executeCommand(N,this.layoutId):g.t0(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);mk(this)}; g.J.clear=function(){this.hide()}; g.J.toggleButton=function(e){g.Y1(this.j,"ytp-ad-toggle-button-toggled",e);this.J.checked=e;mk(this)}; g.J.isToggled=function(){return this.J.checked};g.b(Hq,iY);Hq.prototype.Z=function(e){if(Array.isArray(e)){e=g.c(e);for(var N=e.next();!N.done;N=e.next())N=N.value,N instanceof t1M&&this.j(N)}};g.b(KT,lj);g.J=KT.prototype;g.J.init=function(e,N,y){lj.prototype.init.call(this,e,N,y);N.reasons?N.confirmLabel==null?g.t0(Error("AdFeedbackRenderer.confirmLabel was not set.")):(N.cancelLabel==null&&g.uA(Error("AdFeedbackRenderer.cancelLabel was not set.")),N.title==null&&g.uA(Error("AdFeedbackRenderer.title was not set.")),x7M(this,N)):g.t0(Error("AdFeedbackRenderer.reasons were not set."))}; g.J.clear=function(){Iz(this.Z);Iz(this.D);this.j.length=0;this.hide()}; g.J.hide=function(){this.J&&this.J.hide();this.N&&this.N.hide();lj.prototype.hide.call(this);this.K&&this.K.focus()}; g.J.show=function(){this.J&&this.J.show();this.N&&this.N.show();this.K=document.activeElement;lj.prototype.show.call(this);this.Z.focus()}; g.J.j7=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.J.jft=function(){this.hide()}; Wq.prototype.ut=function(){return this.J.element}; Wq.prototype.getCommand=function(){return this.N}; Wq.prototype.isChecked=function(){return this.K.checked};g.b(OZ,nT);OZ.prototype.hS=function(e){nT.prototype.hS.call(this,e);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; OZ.prototype.Zz=function(e){nT.prototype.Zz.call(this,e);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; OZ.prototype.lT=function(e){nT.prototype.lT.call(this,e);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.b(RM,lj);g.J=RM.prototype; g.J.init=function(e,N,y){lj.prototype.init.call(this,e,N,y);this.Z=N;if(N.dialogMessage==null&&N.title==null)g.t0(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{N.confirmLabel==null&&g.uA(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(e=N.closeOverlayRenderer&&g.m(N.closeOverlayRenderer,g.zR)||null)this.J=new Vv(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), g.Q(this,this.J),this.J.init(TV("button"),e,this.macros),this.J.yB(this.element);N.title&&(e=g.SY(N.title),this.updateValue("title",e));if(N.adReasons)for(e=N.adReasons,y=0;y=this.aq?(this.i9.hide(),this.Bk=!0,this.publish("i")):this.K&&this.K.isTemplated()&&(e=Math.max(0,Math.ceil((this.aq-e)/1E3)),e!=this.Ut&&(LT(this.K,{TIME_REMAINING:String(e)}),this.Ut=e)))}};g.b(AF,sZ);g.J=AF.prototype; g.J.init=function(e,N,y){sZ.prototype.init.call(this,e,N,y);if(N.image&&N.image.thumbnail)if(N.headline)if(N.description)if((e=N.actionButton&&g.m(N.actionButton,g.zR))&&e.navigationEndpoint){var w=this.api.getVideoData(2);if(w!=null)if(N.image&&N.image.thumbnail){var E=N.image.thumbnail.thumbnails;E!=null&&E.length>0&&g.kw(g.Ly(E[0].url))&&(E[0].url=w.profilePicture)}else g.uA(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.K.init(TV("ad-image"),N.image,y);this.Z.init(TV("ad-text"), N.headline,y);this.j.init(TV("ad-text"),N.description,y);this.N.init(TV("button"),e,y);y=sH(this.N.element);G1(this.N.element,y+" This link opens in new tab");this.Kh=e.navigationEndpoint;this.api.OW()||this.show();this.api.X().T("enable_larger_flyout_cta_on_desktop")&&(this.hW("ytp-flyout-cta").classList.add("ytp-flyout-cta-large"),this.hW("ytp-flyout-cta-body").classList.add("ytp-flyout-cta-body-large"),this.hW("ytp-flyout-cta-headline-container").classList.add("ytp-flyout-cta-headline-container-dark-background"), this.hW("ytp-flyout-cta-description-container").classList.add("ytp-flyout-cta-description-container-dark-background"),this.hW("ytp-flyout-cta-text-container").classList.add("ytp-flyout-cta-text-container-large"),this.hW("ytp-flyout-cta-action-button-container").classList.add("ytp-flyout-cta-action-button-container-large"),this.N.element.classList.add("ytp-flyout-cta-action-button-large"),this.N.element.classList.add("ytp-flyout-cta-action-button-rounded-large"),this.hW("ytp-flyout-cta-icon-container").classList.add("ytp-flyout-cta-icon-container-large")); this.api.addEventListener("playerUnderlayVisibilityChange",this.Zt.bind(this));this.i9=N.startMs||0;aM(this)}else g.t0(Error("FlyoutCtaRenderer has no valid action button."));else g.t0(Error("FlyoutCtaRenderer has no description AdText."));else g.t0(Error("FlyoutCtaRenderer has no headline AdText."));else g.uA(Error("FlyoutCtaRenderer has no image."))}; g.J.onClick=function(e){sZ.prototype.onClick.call(this,e);this.api.pauseVideo();!g.Ex(this.N.element,e.target)&&this.Kh&&(this.layoutId?this.Y1.executeCommand(this.Kh,this.layoutId):g.t0(Error("Missing layoutId for flyout cta.")))}; g.J.t3=function(){if(this.J){var e=this.J.getProgressState();(e&&e.current||this.aq)&&1E3*e.current>=this.i9&&(eQ(this),g.re(this.element,"ytp-flyout-cta-inactive"),this.N.element.removeAttribute("tabIndex"))}}; g.J.w2=function(){this.clear()}; g.J.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.Zt.bind(this))}; g.J.show=function(){this.N&&this.N.show();sZ.prototype.show.call(this)}; g.J.hide=function(){this.N&&this.N.hide();sZ.prototype.hide.call(this)}; g.J.Zt=function(e){e=="hidden"?this.show():this.hide()};g.b(TF,lj);g.J=TF.prototype; g.J.init=function(e,N,y){lj.prototype.init.call(this,e,N,y);this.J=N;if(this.J.rectangle)for(e=this.J.likeButton&&g.m(this.J.likeButton,hs),N=this.J.dislikeButton&&g.m(this.J.dislikeButton,hs),this.K.init(TV("toggle-button"),e,y),this.N.init(TV("toggle-button"),N,y),this.Y(this.element,"change",this.r3),this.j.show(100),this.show(),y=g.c(this.J&&this.J.impressionCommands||[]),e=y.next();!e.done;e=y.next())e=e.value,this.layoutId?this.Y1.executeCommand(e,this.layoutId):g.t0(Error("Missing layoutId for instream user sentiment."))}; g.J.clear=function(){this.hide()}; g.J.hide=function(){this.K.hide();this.N.hide();lj.prototype.hide.call(this)}; g.J.show=function(){this.K.show();this.N.show();lj.prototype.show.call(this)}; g.J.r3=function(){v01(this.element,"ytp-ad-instream-user-sentiment-selected");this.J.postMessageAction&&this.api.Mg("onYtShowToast",this.J.postMessageAction);this.j.hide()}; g.J.onClick=function(e){this.l9.length>0&&this.r3();lj.prototype.onClick.call(this,e)};g.b(JF,g.x);g.J=JF.prototype;g.J.fh=function(){this.reset();g.x.prototype.fh.call(this)}; g.J.reset=function(){g.g9(this.j);this.Z=!1;this.J&&this.J.stop();this.L.stop();this.K&&(this.K=!1,this.G.play())}; g.J.start=function(){this.reset();this.j.Y(this.N,"mouseover",this.T1,this);this.j.Y(this.N,"mouseout",this.LL,this);this.Ng&&(this.j.Y(this.N,"focusin",this.T1,this),this.j.Y(this.N,"focusout",this.LL,this));this.J?this.J.start():(this.Z=this.K=!0,g.$0(this.N,{opacity:this.D}))}; g.J.T1=function(){this.K&&(this.K=!1,this.G.play());this.L.stop();this.J&&this.J.stop()}; g.J.LL=function(){this.Z?this.L.start():this.J&&this.J.start()}; g.J.s9=function(){this.K||(this.K=!0,this.U.play(),this.Z=!0)};var L1s=[new pR("b.f_",!1,0),new pR("j.s_",!1,2),new pR("r.s_",!1,4),new pR("e.h_",!1,6),new pR("i.s_",!0,8),new pR("s.t_",!1,10),new pR("p.h_",!1,12),new pR("s.i_",!1,14),new pR("f.i_",!1,16),new pR("a.b_",!1,18),new pR("a.o_",!1),new pR("g.o_",!1,22),new pR("p.i_",!1,24),new pR("p.m_",!1),new pR("i.k_",!0,28),new pR("n.k_",!0,20),new pR("i.f_",!1),new pR("a.s_",!0),new pR("m.c_",!1),new pR("n.h_",!1,26),new pR("o.p_",!1)].reduce(function(e,N){e[N.N]=N;return e},{});g.b(SQ,sZ);g.J=SQ.prototype; g.J.init=function(e,N,y){sZ.prototype.init.call(this,e,N,y);this.Kh=N;(this.i9=am_(this))&&g.uA(Error("hasAdControlInClickCommands_ is true."));if(!N||g.v4(N))g.t0(Error("SkipButtonRenderer was not specified or empty."));else if(!N.message||g.v4(N.message))g.t0(Error("SkipButtonRenderer.message was not specified or empty."));else{e=this.Z?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"};N=g1(e);N==null?g.t0(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+e.iconType+".")): (this.j=new g.Mu({S:"button",dP:[this.Z?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],W:[{S:"span",B:this.Z?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",W:[N]}]}),g.Q(this,this.j),this.j.yB(this.K.element),this.N=new UZ(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,"ytp-ad-skip-button-text"),this.Z&&this.N.element.classList.add("ytp-ad-skip-button-text-centered"),this.N.init(TV("ad-text"),this.Kh.message,y),g.Q(this,this.N),yp(this.j.element,this.N.element, 0));var w=w===void 0?null:w;y=this.api.X();!(this.l9.length>0)&&y.N&&(KC?0:"ontouchstart"in document.documentElement&&(co5()||Sb()))&&(this.CX(this.Dl),w&&this.CX(w),this.l9=[this.Y(this.element,"touchstart",this.T6,this),this.Y(this.element,"touchmove",this.LS,this),this.Y(this.element,"touchend",this.Zi,this)])}}; g.J.clear=function(){this.aq.reset();this.hide()}; g.J.hide=function(){this.K.hide();this.N&&this.N.hide();eQ(this);sZ.prototype.hide.call(this)}; g.J.onClick=function(e){if(this.j!=null){if(e){var N=e||window.event;N.returnValue=!1;N.preventDefault&&N.preventDefault()}var y;if(GvM(e,{contentCpn:((y=this.api.getVideoData(1))==null?void 0:y.clientPlaybackNonce)||""})===0)this.api.Mg("onAbnormalityDetected");else if(sZ.prototype.onClick.call(this,e),this.publish("j"),this.api.Mg("onAdSkip"),this.Bk||!this.i9)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; g.J.yP=function(e){if(!this.Bk)return this.i9&&YN("SkipButton click commands not pruned while ALC exist"),e;var N,y=(N=g.m(e,g.o4))==null?void 0:N.commands;if(!y)return e;e=[];for(N=0;N=this.Z&&eW9(this,!0)};g.b(hF,Vv);hF.prototype.init=function(e,N,y){Vv.prototype.init.call(this,e,N,y);e=!1;N.text!=null&&(e=g.SY(N.text),e=!g.kw(e));e?N.navigationEndpoint==null?g.uA(Error("No visit advertiser clickthrough provided in renderer,")):N.style!=="STYLE_UNKNOWN"?g.uA(Error("Button style was not a link-style type in renderer,")):this.show():g.uA(Error("No visit advertiser text was present in the renderer."))};g.b(c2,lj); c2.prototype.init=function(e,N,y){lj.prototype.init.call(this,e,N,y);e=N.text;g.kw(F3(e))?g.uA(Error("SimpleAdBadgeRenderer has invalid or empty text")):(e&&e.text&&(N=e.text,this.K&&!this.N&&(N=this.api.X(),N=e.text+" "+(N&&N.N?"\u2022":"\u00b7")),N={text:N,isTemplated:e.isTemplated},e.style&&(N.style=e.style),e.targetId&&(N.targetId=e.targetId),e=new UZ(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1),e.init(TV("simple-ad-badge"),N,y),e.yB(this.element),g.Q(this,e)),this.show())}; c2.prototype.clear=function(){this.hide()};g.b(kN,JZ);g.b(B2,g.pT);g.J=B2.prototype;g.J.WU=function(){return this.durationMs}; g.J.stop=function(){this.J&&this.bB.CX(this.J)}; g.J.HY=function(e){this.N={seekableStart:0,seekableEnd:this.durationMs/1E3,current:e.current};this.publish("h")}; g.J.getProgressState=function(){return this.N}; g.J.HO=function(e){g.FD(e,2)&&this.publish("g")};g.b(XD,g.pT);g.J=XD.prototype;g.J.WU=function(){return this.durationMs}; g.J.start=function(){this.J||(this.J=!0,this.D_.start())}; g.J.stop=function(){this.J&&(this.J=!1,this.D_.stop())}; g.J.HY=function(){this.Cj+=100;var e=!1;this.Cj>this.durationMs&&(this.Cj=this.durationMs,this.D_.stop(),e=!0);this.N={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.Cj/1E3};this.publish("h");e&&this.publish("g")}; g.J.getProgressState=function(){return this.N};g.b(I4,sZ);g.J=I4.prototype;g.J.init=function(e,N,y){sZ.prototype.init.call(this,e,N,y);var w;if(N==null?0:(w=N.templatedCountdown)==null?0:w.templatedAdText){e=N.templatedCountdown.templatedAdText;if(!e.isTemplated){g.uA(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.N=new UZ(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1);this.N.init(TV("ad-text"),e,{});this.N.yB(this.element);g.Q(this,this.N)}this.show()}; g.J.clear=function(){this.hide()}; g.J.hide=function(){eQ(this);sZ.prototype.hide.call(this)}; g.J.w2=function(){this.hide()}; g.J.t3=function(){if(this.J!=null){var e=this.J.getProgressState();if(e!=null&&e.current!=null&&this.N){var N=this.J instanceof B2?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:e.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.J instanceof XD?e.seekableEnd:this.api.getDuration(2,!1);e=e.current;N=this.api.X().experiments.gP("enable_player_overlay_non_negative_remaining_duration_on_web")?Math.max(N-e,0):N-e;LT(this.N,{FORMATTED_AD_DURATION_REMAINING:String(g.P2(N)), TIME_REMAINING:String(Math.ceil(N))})}}}; g.J.show=function(){aM(this);sZ.prototype.show.call(this)};g.b(v2,UZ);v2.prototype.onClick=function(e){UZ.prototype.onClick.call(this,e);this.api.onAdUxClicked(this.componentType)};g.b(ip,lj);ip.prototype.init=function(e,N){lj.prototype.init.call(this,e,N,{});if(e=N.content){g.AL(this.element,e);var y,w;N=((y=N.interaction)==null?void 0:(w=y.accessibility)==null?void 0:w.label)||e;this.element.setAttribute("aria-label",N)}else g.t0(Error("AdSimpleAttributedString does not have text content"))}; ip.prototype.clear=function(){this.hide()}; ip.prototype.onClick=function(e){lj.prototype.onClick.call(this,e)};g.b(DY,lj); DY.prototype.init=function(e,N){lj.prototype.init.call(this,e,N,{});(e=N.label)&&e.content&&!g.kw(e.content)?(this.adBadgeText.init(TV("ad-simple-attributed-string"),new zF(e)),(N=N.adPodIndex)&&N.content&&!g.kw(N.content)&&(this.J=new ip(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1),this.J.yB(this.element),g.Q(this,this.J),this.J.element.classList.add("ytp-ad-badge__pod-index"),this.J.init(TV("ad-simple-attributed-string"),new zF(N))),this.element.classList.add(this.N?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.t0(Error("No label is returned in AdBadgeViewModel."))}; DY.prototype.show=function(){this.adBadgeText.show();var e;(e=this.J)==null||e.show();lj.prototype.show.call(this)}; DY.prototype.hide=function(){this.adBadgeText.hide();var e;(e=this.J)==null||e.hide();lj.prototype.hide.call(this)};g.b(gh,lj); gh.prototype.init=function(e,N){lj.prototype.init.call(this,e,N,{});(e=N.adPodIndex)&&e.content&&!g.kw(e.content)&&(this.J=new ip(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1),this.J.yB(this.element),g.Q(this,this.J),this.J.init(TV("ad-simple-attributed-string"),new zF(e)),(this.api.X().T("clean_player_style_fix_on_web")?N.visibilityCondition==="AD_POD_INDEX_VISIBILITY_CONDITION_AUTOHIDE":!this.N||N.visibilityCondition!=="AD_POD_INDEX_VISIBILITY_CONDITION_ALWAYS_SHOW_IF_NONSKIPPABLE")&&this.element.classList.add("ytp-ad-pod-index--autohide")); this.element.classList.add("ytp-ad-pod-index--stark");this.api.T("clean_player_style_fix_on_web")&&this.element.classList.add("ytp-ad-pod-index--stark-with-light-shadow");this.show()}; gh.prototype.show=function(){var e;(e=this.J)==null||e.show();lj.prototype.show.call(this)}; gh.prototype.hide=function(){var e;(e=this.J)==null||e.hide();lj.prototype.hide.call(this)};g.b(Vd,lj); Vd.prototype.init=function(e,N){lj.prototype.init.call(this,e,N,{});if(N!=null&&N.text){var y;if(((y=N.text)==null?0:y.content)&&!g.kw(N.text.content)){this.J=new g.Mu({S:"div",B:"ytp-ad-disclosure-banner__text",b9:N.text.content});g.Q(this,this.J);this.J.yB(this.element);var w,E;e=((w=N.interaction)==null?void 0:(E=w.accessibility)==null?void 0:E.label)||N.text.content;this.element.setAttribute("aria-label",e);var A;if((A=N.interaction)==null?0:A.onTap)this.N=new g.Mu({S:"div",B:"ytp-ad-disclosure-banner__chevron",W:[g.cq()]}), g.Q(this,this.N),this.N.yB(this.element);this.show()}}else g.t0(Error("No banner text found in AdDisclosureBanner."))}; Vd.prototype.clear=function(){this.hide()};fR.prototype.getLength=function(){return this.J-this.N};g.b(up,g.Mu);up.prototype.HY=function(){var e=this.N.getProgressState(),N=e.seekableEnd;this.api.getPresentingPlayerType()===2&&this.api.X().T("show_preskip_progress_bar_for_skippable_ads")&&(N=this.K?this.K/1E3:e.seekableEnd);e=tF(new fR(e.seekableStart,N),e.current,0);this.progressBar.style.width=e*100+"%"}; up.prototype.onStateChange=function(){g.IK(this.api.X())||(this.api.getPresentingPlayerType()===2?this.J===-1&&(this.show(),this.J=this.N.subscribe("h",this.HY,this),this.HY()):this.J!==-1&&(this.hide(),this.N.qr(this.J),this.J=-1))};g.b(qE,lj); qE.prototype.init=function(e,N,y,w){lj.prototype.init.call(this,e,N,y);y=!0;if(N.skipOrPreviewRenderer){var E=N.skipOrPreviewRenderer;e=g.m(E,yV);E=g.m(E,vr);e?(E=new bp(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,this.N,this.Kh),E.yB(this.D),E.init(TV("skip-button"),e,this.macros),g.Q(this,E)):E&&!this.api.X().experiments.gP("disable_ad_preview_for_instream_ads")&&(e=new wh(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,this.N,!1),e.yB(this.D),e.init(TV("ad-preview"),E, this.macros),Ez(e),g.Q(this,e));if(e=g.m(N.skipOrPreviewRenderer,yV)){y=!1;var A=e.skipOffsetMilliseconds}}N.brandInteractionRenderer&&(e=N.brandInteractionRenderer.brandInteractionRenderer,E=new TF(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1),E.yB(this.aq),E.init(TV("instream-user-sentiment"),e,this.macros),g.Q(this,E));if(e=g.m(N,w_X))if(e=g.m(e,w_X))E=new AF(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,this.N,!!N.showWithoutLinkedMediaLayout),g.Q(this,E), E.yB(this.Z),E.init(TV("flyout-cta"),e,this.macros);e=(this.api.X().T("disable_ad_duration_remaining_for_instream_video_ads")||N.adPodIndex!==void 0)&&!1;w=w&&w.videoAdDurationSeconds;if(N.adBadgeRenderer){var T=N.adBadgeRenderer;E=g.m(T,Hv);E!=null?(T=new DY(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,e),g.Q(this,T),T.yB(this.J),T.init(TV("ad-badge"),E,this.macros),this.K=T.element):(E=T.simpleAdBadgeRenderer,E==null&&(E={text:{text:"An\u00fancio",isTemplated:!1}}),T=new c2(this.api, this.layoutId,this.interactionLoggingClientData,this.Y1,!0),g.Q(this,T),T.yB(this.J),T.init(TV("simple-ad-badge"),E,this.macros))}N.adPodIndex&&(E=g.m(N.adPodIndex,M0Z),E!=null&&(y=new gh(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,y),g.Q(this,y),y.yB(this.J),y.init(TV("ad-pod-index"),E)));N.adDurationRemaining&&!N.showWithoutLinkedMediaLayout&&(y=N.adDurationRemaining.adDurationRemainingRenderer,y==null&&(y={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}", isTemplated:!0}}}),w=new I4(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,this.N,w,e),g.Q(this,w),w.yB(this.J),w.init(TV("ad-duration-remaining"),y,this.macros),e&&w.element.classList.add("ytp-ad-duration-remaining-autohide"));N.adInfoRenderer&&(w=g.m(N.adInfoRenderer,IQ))&&(y=new GV(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,this.element,void 0,e),g.Q(this,y),this.api.X().T("enable_ad_pod_index_autohide")&&this.K!==null?this.J.insertBefore(y.element,this.K.nextSibling): y.yB(this.J),y.init(TV("ad-info-hover-text-button"),w,this.macros));N.visitAdvertiserRenderer&&(y=g.m(N.visitAdvertiserRenderer,g.zR))&&(E=wiJ(this)&&this.j?this.j:this.J)&&(w=new hF(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1),g.Q(this,w),w.yB(E),w.init(TV("visit-advertiser"),y,this.macros),OH(w.element),y=sH(w.element),G1(w.element,y+" This link opens in new tab"));!(w=this.api.X())||g.Pg(w)||w.controlsType!="3"&&!w.disableOrganicUi||(A=new up(this.api,this.N,A,e),A.yB(this.Zl), g.Q(this,A));N.adDisclosureBannerRenderer&&(N=g.m(N.adDisclosureBannerRenderer,Ykf))&&(A=new Vd(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1),A.yB(this.i9),A.init(TV("ad-disclosure-banner"),N),g.Q(this,A));this.api.X().T("enable_updated_html5_player_focus_style")&&g.pi(this.element,"ytp-ad-player-overlay-updated-focus-style");e&&this.api.X().N&&this.J.classList.add("ytp-ad-player-overlay-instream-info--clean-player-mweb");this.show()}; qE.prototype.clear=function(){this.hide()};nR.prototype.set=function(e,N,y){y=y!==void 0?Date.now()+y:void 0;this.J.set(e,N,y)}; nR.prototype.get=function(e){return this.J.get(e)}; nR.prototype.remove=function(e){this.J.remove(e)};var KR=null,W2=null,Oz=null,Ct0=null;g.jM("yt.www.ads.eventcache.getLastCompanionData",function(){return KR}); g.jM("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.jM("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return W2}); g.jM("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return Oz}); g.jM("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return Ct0});var $90=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);R4.prototype.handleResponse=function(e,N){if(!N)throw Error("request needs to be passed into ConsistencyService");var y,w;N=((y=N.Yi.context)==null?void 0:(w=y.request)==null?void 0:w.consistencyTokenJars)||[];var E;(e=(E=e.responseContext)==null?void 0:E.consistencyTokenJar)&&this.replace(N,e)}; R4.prototype.replace=function(e,N){e=g.c(e);for(var y=e.next();!y.done;y=e.next())delete this.J[y.value.encryptedTokenJarContents];M7M(this,N)};var zjZ=window.location.hostname.split(".").slice(-2).join("."),IH;Uz.getInstance=function(){IH=g.nM("yt.clientLocationService.instance");IH||(IH=new Uz,g.jM("yt.clientLocationService.instance",IH));return IH}; g.J=Uz.prototype; g.J.setLocationOnInnerTubeContext=function(e){e.client||(e.client={});if(this.J)e.client.locationInfo||(e.client.locationInfo={}),e.client.locationInfo.latitudeE7=Math.floor(this.J.coords.latitude*1E7),e.client.locationInfo.longitudeE7=Math.floor(this.J.coords.longitude*1E7),e.client.locationInfo.horizontalAccuracyMeters=Math.round(this.J.coords.accuracy),e.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.K||this.locationPlayabilityToken)e.client.locationPlayabilityToken=this.K|| this.locationPlayabilityToken}; g.J.handleResponse=function(e){var N;e=(N=e.responseContext)==null?void 0:N.locationPlayabilityToken;e!==void 0&&(this.locationPlayabilityToken=e,this.J=void 0,g.Lb("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=GF(this))&&this.localStorage.set("yt-location-playability-token",e,15552E3):g.x3("YT_CL",JSON.stringify({loctok:e}),15552E3,zjZ,!0))}; g.J.clearLocationPlayabilityToken=function(e){e==="TVHTML5"?(this.localStorage=GF(this))&&this.localStorage.remove("yt-location-playability-token"):g.np("YT_CL");this.K=void 0;this.N!==-1&&(clearTimeout(this.N),this.N=-1)}; g.J.getCurrentPositionFromGeolocation=function(){var e=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var N=!1,y=1E4;g.Lb("INNERTUBE_CLIENT_NAME")==="MWEB"&&(N=!0,y=15E3);return new Promise(function(w,E){navigator.geolocation.getCurrentPosition(function(A){e.J=A;w(A)},function(A){E(A)},{enableHighAccuracy:N, maximumAge:0,timeout:y})})}; g.J.createUnpluggedLocationInfo=function(e){var N={};e=e.coords;if(e==null?0:e.latitude)N.latitudeE7=Math.floor(e.latitude*1E7);if(e==null?0:e.longitude)N.longitudeE7=Math.floor(e.longitude*1E7);if(e==null?0:e.accuracy)N.locationRadiusMeters=Math.round(e.accuracy);return N}; g.J.createLocationInfo=function(e){var N={};e=e.coords;if(e==null?0:e.latitude)N.latitudeE7=Math.floor(e.latitude*1E7);if(e==null?0:e.longitude)N.longitudeE7=Math.floor(e.longitude*1E7);return N};g.J=b65.prototype;g.J.contains=function(e){return Object.prototype.hasOwnProperty.call(this.J,e)}; g.J.get=function(e){if(this.contains(e))return this.J[e]}; g.J.set=function(e,N){this.J[e]=N}; g.J.Nk=function(){return Object.keys(this.J)}; g.J.remove=function(e){delete this.J[e]};sz.prototype.getModuleId=function(e){return e.serviceId.getModuleId()}; sz.prototype.get=function(e){a:{var N=this.mappings.get(e.toString());switch(N.type){case "mapping":e=N.value;break a;case "factory":N=N.value();this.mappings.set(e.toString(),{type:"mapping",value:N});e=N;break a;default:e=wa(N)}}return e}; sz.prototype.registerService=function(e,N){this.mappings.set(e.toString(),{type:"mapping",value:N});return e}; new sz;var vj={},hWs=(vj.WEB_UNPLUGGED="^unplugged/",vj.WEB_UNPLUGGED_ONBOARDING="^unplugged/",vj.WEB_UNPLUGGED_OPS="^unplugged/",vj.WEB_UNPLUGGED_PUBLIC="^unplugged/",vj.WEB_CREATOR="^creator/",vj.WEB_KIDS="^kids/",vj.WEB_EXPERIMENTS="^experiments/",vj.WEB_MUSIC="^music/",vj.WEB_REMIX="^music/",vj.WEB_MUSIC_EMBEDDED_PLAYER="^music/",vj.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",vj);NY.prototype.L=function(e,N,y){N=N===void 0?{}:N;y=y===void 0?lt:y;var w={context:g.LR(e.clickTrackingParams,!1,this.j)};var E=this.N(e);if(E){this.J(w,E,N);var A;N=g.eZ(this.K());(E=(A=g.m(e.commandMetadata,g.bW))==null?void 0:A.apiUrl)&&(N=E);A=FI1(QN(N));e=Object.assign({},{command:e},void 0);w={input:A,bd:mH(A),Yi:w,config:e};w.config.dE?w.config.dE.identity=y:w.config.dE={identity:y};return w}g.t0(new g.Gh("Error: Failed to create Request from Command.",e))}; g.pM.Object.defineProperties(NY.prototype,{j:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.b(yQ,NY);g.b(ly,yQ);ly.prototype.L=function(){return{input:"/getDatasyncIdsEndpoint",bd:mH("/getDatasyncIdsEndpoint","GET"),Yi:{}}}; ly.prototype.K=function(){return[]}; ly.prototype.N=function(){}; ly.prototype.J=function(){};var ifw={},ax0=(ifw.GET_DATASYNC_IDS=a4(ly),ifw);var zA={},Ddf=(zA["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",zA["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",zA["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",zA["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",zA["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",zA["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",zA["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", zA["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",zA["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",zA["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",zA["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",zA["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",zA["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",zA["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",zA["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", zA["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",zA["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",zA["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",zA["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",zA["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",zA["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",zA["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", zA["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",zA.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",zA["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",zA["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",zA["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",zA["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",zA["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",zA["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", zA["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",zA["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",zA["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",zA["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",zA["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",zA["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",zA["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",zA["dialog.copyright_strikes"]= "LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",zA["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",zA["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",zA.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",zA["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",zA["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",zA["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",zA["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",zA["owner.asset_groups"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",zA["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",zA["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",zA["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",zA["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",zA["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",zA["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",zA["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",zA["owner.delivery"]= "LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",zA["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",zA["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",zA["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",zA["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",zA["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",zA["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",zA["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",zA["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", zA["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",zA["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",zA["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",zA["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",zA["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",zA["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",zA["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",zA["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",zA["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", zA["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",zA["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",zA["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",zA["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",zA["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",zA["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",zA["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",zA["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS", zA),iW={},IxJ=(iW.auto_search="LATENCY_ACTION_AUTO_SEARCH",iW.ad_to_ad="LATENCY_ACTION_AD_TO_AD",iW.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",iW.app_startup="LATENCY_ACTION_APP_STARTUP",iW.browse="LATENCY_ACTION_BROWSE",iW.cast_splash="LATENCY_ACTION_CAST_SPLASH",iW.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",iW.channels="LATENCY_ACTION_CHANNELS",iW.chips="LATENCY_ACTION_CHIPS",iW.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",iW.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK", iW.editor="LATENCY_ACTION_EDITOR",iW.embed="LATENCY_ACTION_EMBED",iW.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",iW.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",iW.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",iW.explore="LATENCY_ACTION_EXPLORE",iW.favorites="LATENCY_ACTION_FAVORITES",iW.home="LATENCY_ACTION_HOME",iW.inboarding="LATENCY_ACTION_INBOARDING",iW.library="LATENCY_ACTION_LIBRARY",iW.live="LATENCY_ACTION_LIVE",iW.live_pagination= "LATENCY_ACTION_LIVE_PAGINATION",iW.management="LATENCY_ACTION_MANAGEMENT",iW.mini_app="LATENCY_ACTION_MINI_APP_PLAY",iW.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",iW.onboarding="LATENCY_ACTION_ONBOARDING",iW.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",iW.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",iW.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",iW.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",iW.prebuffer="LATENCY_ACTION_PREBUFFER", iW.prefetch="LATENCY_ACTION_PREFETCH",iW.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",iW.profile_switcher="LATENCY_ACTION_LOGIN",iW.projects="LATENCY_ACTION_PROJECTS",iW.reel_watch="LATENCY_ACTION_REEL_WATCH",iW.results="LATENCY_ACTION_RESULTS",iW.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",iW.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",iW.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",iW.review="LATENCY_ACTION_REVIEW",iW.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER", iW.search_ui="LATENCY_ACTION_SEARCH_UI",iW.search_suggest="LATENCY_ACTION_SUGGEST",iW.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",iW.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",iW.seek="LATENCY_ACTION_PLAYER_SEEK",iW.settings="LATENCY_ACTION_SETTINGS",iW.store="LATENCY_ACTION_STORE",iW.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",iW.tenx="LATENCY_ACTION_TENX",iW.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",iW.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",iW.watch="LATENCY_ACTION_WATCH", iW.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",iW["watch,watch7"]="LATENCY_ACTION_WATCH",iW["watch,watch7_html5"]="LATENCY_ACTION_WATCH",iW["watch,watch7ad"]="LATENCY_ACTION_WATCH",iW["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",iW.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",iW.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",iW.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",iW.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",iW.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE", iW.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",iW.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",iW.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",iW);Object.assign(IxJ,Ddf);g.b(Xm,FG);var npJ=new S7("aft-recorded",Xm);var gRw=g.xJ.ytLoggingGelSequenceIdObj_||{};g.jM("ytLoggingGelSequenceIdObj_",gRw);var Ig=g.xJ.ytLoggingLatencyUsageStats_||{};g.jM("ytLoggingLatencyUsageStats_",Ig);Pw.prototype.tick=function(e,N,y,w){vw(this,"tick_"+e+"_"+N)||g.$$("latencyActionTicked",{tickName:e,clientActionNonce:N},{timestamp:y,cttAuthInfo:w})}; Pw.prototype.info=function(e,N,y){var w=Object.keys(e).join("");vw(this,"info_"+w+"_"+N)||(e=Object.assign({},e),e.clientActionNonce=N,g.$$("latencyActionInfo",e,{cttAuthInfo:y}))}; Pw.prototype.jspbInfo=function(e,N,y){for(var w="",E=0;E=E.length?(N.append(E),e-=E.length):e?(N.append(new Uint8Array(E.buffer,E.byteOffset,e)),y.append(new Uint8Array(E.buffer,E.byteOffset+e,E.length-e)),e=0):y.append(E);return{aA:N,h3:y}}; g.J.isFocused=function(e){return e>=this.Po&&e=64&&(this.Z.set(e.subarray(0,64-this.N),this.N),N=64-this.N,this.N=0,juF(this,this.Z,0));for(;N+64<=y;N+=64)juF(this,e,N);N=this.start&&(e=2&&y.ssdaiAdsConfig&&YN("Unexpected ad placement renderers length",e.slot,null,{length:w.length});w.some(function(E){var A,T,p,C;return!!((A=E.renderer)==null?0:(T=A.linearAdSequenceRenderer)==null?0:(p=T.linearAds)==null?0:p.length)||!((C=E.renderer)==null||!C.instreamVideoAdRenderer)})||wqE(e)})}; JA.prototype.Sa=function(){mi1(this.J)};pv.prototype.i5=function(){var e=this;Qts(this.N,function(){var N=A6(e.slot.clientMetadata,"metadata_type_ad_break_request_data");return N.cueProcessedMs?e.J.get().fetch({cH:N.getAdBreakUrl,JI:new g.wF(N.MY,N.VH),cueProcessedMs:N.cueProcessedMs}):e.J.get().fetch({cH:N.getAdBreakUrl,JI:new g.wF(N.MY,N.VH)})})}; pv.prototype.Sa=function(){mi1(this.N)};Cv.prototype.i5=function(){var e=this.slot.clientMetadata,N,y=(N=this.slot.fulfilledLayout)!=null?N:A6(e,"metadata_type_fulfilled_layout");kO3(this.callback,this.slot,y)}; Cv.prototype.Sa=function(){bF(this.callback,this.slot,new U("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")};$Q.prototype.build=function(e,N){return N.fulfilledLayout||rF(N,{xO:["metadata_type_fulfilled_layout"]})?new Cv(e,N):this.K(e,N)};g.b(YQ,$Q); YQ.prototype.K=function(e,N){if(rF(N,{xO:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new JA(e,N,this.J,this.N,this.yT,this.wP,this.Pk,this.zZ,this.xk);if(rF(N,{xO:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new pv(e,N,this.J,this.N,this.yT,this.wP);throw new U("Unsupported slot with type: "+N.slotType+" and client metadata: "+T5(N.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.b(MG,$Q);MG.prototype.K=function(e,N){throw new U("Unsupported slot with type: "+N.slotType+" and client metadata: "+T5(N.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.J=Eln.prototype;g.J.W9=function(){return this.slot}; g.J.mP=function(){return this.layout}; g.J.init=function(){}; g.J.release=function(){}; g.J.startRendering=function(e){if(e.layoutId!==this.layout.layoutId)this.callback.xz(this.slot,e,new wX("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 N=A6(e.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.Ql(this.slot,e),BvM(this.K, this.slot,N)):YN("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,e)}}; g.J.fC=function(e,N){e.layoutId!==this.layout.layoutId?this.callback.xz(this.slot,e,new wX("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.aJ(this.slot,e,N),T15(this),JZ_(this))};g.b(bv,g.pT);g.J=bv.prototype;g.J.W9=function(){return this.N.slot}; g.J.mP=function(){return this.N.layout}; g.J.init=function(){this.K.get().addListener(this)}; g.J.release=function(){this.K.get().removeListener(this);this.dispose()}; g.J.oG=function(){}; g.J.HM=function(){}; g.J.Tm=function(){}; g.J.uh=function(){}; g.J.startRendering=function(e){var N=this;o0(this.N,e,function(){return void N.yL()})}; g.J.yL=function(){this.K.get().yL(this.J)}; g.J.fC=function(e,N){var y=this;o0(this.N,e,function(){var w=y.K.get();O85(w,y.J,3);y.J=[];y.callback.aJ(y.slot,e,N)})}; g.J.fh=function(){this.K.Ss()||this.K.get().removeListener(this);g.pT.prototype.fh.call(this)}; g.pM.Object.defineProperties(bv.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.N.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.N.layout}}});I0.prototype.wz=function(e,N){N=N===void 0?!1:N;var y=(this.K.get(e)||[]).concat();if(N=N&&rZH(e)){var w=this.K.get(N);w&&y.push.apply(y,g.B(w))}iv(this,e,y);this.J.add(e);N&&this.J.add(N)}; I0.prototype.eR=function(e,N){N=N===void 0?!1:N;if(!this.J.has(e)){var y=N&&rZH(e);y&&(N=!this.J.has(y));this.wz(e,N)}};g.b(MY5,JZ);g.b(tA,bv);g.J=tA.prototype;g.J.Pw=function(e,N){Bt("ads-engagement-panel-layout",e,this.Z.get().R$,this.Pk.get(),this.j,this.L,this.W9(),this.mP(),N)}; g.J.startRendering=function(e){ct(this.vk,this.W9(),this.mP(),g.m(this.mP().renderingContent,yw),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(N,y,w,E,A){return new MY5(N,y,w,E,A)},this.J); bv.prototype.startRendering.call(this,e)}; g.J.Ql=function(e,N){this.L===N.layoutId&&(this.j===null?this.j=this.Pk.get().FW():YN("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.J.aJ=function(){}; g.J.JT=function(){}; g.J.eZ=function(){}; g.J.XI=function(){}; g.J.BE=function(){}; g.J.ma=function(){}; g.J.U4=function(){}; g.J.Wf=function(){}; g.J.i6=function(){}; g.J.Lq=function(){}; g.J.sX=function(){}; g.J.fh=function(){SK(this.Jz(),this);bv.prototype.fh.call(this)};g.b(Fk0,JZ);g.b(uv,bv);g.J=uv.prototype;g.J.Pw=function(e,N){Bt("banner-image",e,this.Z.get().R$,this.Pk.get(),this.j,this.L,this.W9(),this.mP(),N)}; g.J.startRendering=function(e){ct(this.vk,this.W9(),this.mP(),g.m(this.mP().renderingContent,ej),this.callback,"metadata_type_banner_image_layout_view_model",function(N,y,w,E,A){return new Fk0(N,y,w,E,A)},this.J); bv.prototype.startRendering.call(this,e)}; g.J.Ql=function(e,N){this.L===N.layoutId&&(this.j===null?this.j=this.Pk.get().FW():YN("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.J.aJ=function(){}; g.J.JT=function(){}; g.J.eZ=function(){}; g.J.XI=function(){}; g.J.BE=function(){}; g.J.ma=function(){}; g.J.U4=function(){}; g.J.Wf=function(){}; g.J.i6=function(){}; g.J.Lq=function(){}; g.J.sX=function(){}; g.J.fh=function(){SK(this.Jz(),this);bv.prototype.fh.call(this)};g.b(qG,JZ);g.b(Zk,bv);g.J=Zk.prototype;g.J.Pw=function(e,N){Bt("action-companion",e,this.Z.get().R$,this.Pk.get(),this.j,this.L,this.W9(),this.mP(),N)}; g.J.startRendering=function(e){ct(this.vk,this.W9(),this.mP(),g.m(this.mP().renderingContent,Lt),this.callback,"metadata_type_action_companion_ad_renderer",function(N,y,w,E,A){return new qG(N,y,w,E,A)},this.J); bv.prototype.startRendering.call(this,e)}; g.J.Ql=function(e,N){N.layoutId===this.layout.layoutId?this.vk.eR("impression"):this.L===N.layoutId&&(this.j===null?this.j=this.Pk.get().FW():YN("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.J.aJ=function(){}; g.J.JT=function(){}; g.J.eZ=function(){}; g.J.XI=function(){}; g.J.BE=function(){}; g.J.ma=function(){}; g.J.U4=function(){}; g.J.Wf=function(){}; g.J.i6=function(){}; g.J.Lq=function(){}; g.J.sX=function(){}; g.J.fh=function(){SK(this.Jz(),this);bv.prototype.fh.call(this)};g.b(bT9,JZ);g.b(xQ,bv);g.J=xQ.prototype;g.J.Pw=function(e,N){Bt("image-companion",e,this.Z.get().R$,this.Pk.get(),this.j,this.L,this.W9(),this.mP(),N)}; g.J.startRendering=function(e){ct(this.vk,this.W9(),this.mP(),g.m(this.mP().renderingContent,s_),this.callback,"metadata_type_image_companion_ad_renderer",function(N,y,w,E,A){return new bT9(N,y,w,E,A)},this.J); bv.prototype.startRendering.call(this,e)}; g.J.Ql=function(e,N){N.layoutId===this.layout.layoutId?this.vk.eR("impression"):this.L===N.layoutId&&(this.j===null?this.j=this.Pk.get().FW():YN("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.J.aJ=function(){}; g.J.JT=function(){}; g.J.eZ=function(){}; g.J.XI=function(){}; g.J.BE=function(){}; g.J.ma=function(){}; g.J.U4=function(){}; g.J.Wf=function(){}; g.J.i6=function(){}; g.J.Lq=function(){}; g.J.sX=function(){}; g.J.fh=function(){SK(this.Jz(),this);bv.prototype.fh.call(this)};g.b(cZF,JZ);g.b(jO,bv);g.J=jO.prototype;g.J.Pw=function(e,N){Bt("shopping-companion",e,this.Z.get().R$,this.Pk.get(),this.j,this.L,this.W9(),this.mP(),N)}; g.J.startRendering=function(e){ct(this.vk,this.W9(),this.mP(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(N,y,w,E,A){return new cZF(N,y,w,E,A)},this.J); bv.prototype.startRendering.call(this,e)}; g.J.Ql=function(e,N){N.layoutId===this.layout.layoutId?this.vk.eR("impression"):this.L===N.layoutId&&(this.j===null?this.j=this.Pk.get().FW():YN("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.J.aJ=function(){}; g.J.JT=function(){}; g.J.eZ=function(){}; g.J.XI=function(){}; g.J.BE=function(){}; g.J.ma=function(){}; g.J.U4=function(){}; g.J.Wf=function(){}; g.J.i6=function(){}; g.J.Lq=function(){}; g.J.sX=function(){}; g.J.fh=function(){SK(this.Jz(),this);bv.prototype.fh.call(this)};g.b(Q6,bv);g.J=Q6.prototype;g.J.startRendering=function(e){ct(this.vk,this.W9(),this.mP(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(N,y,w,E,A){return new qG(N,y,w,E,A)},this.J); bv.prototype.startRendering.call(this,e)}; g.J.Ql=function(){}; g.J.aJ=function(){}; g.J.JT=function(){}; g.J.eZ=function(){}; g.J.XI=function(){}; g.J.BE=function(){}; g.J.ma=function(){}; g.J.U4=function(){}; g.J.Wf=function(){}; g.J.i6=function(){}; g.J.Lq=function(){}; g.J.sX=function(){}; g.J.fh=function(){SK(this.Jz(),this);bv.prototype.fh.call(this)}; g.J.Pw=function(){};g.J=IhF.prototype;g.J.W9=function(){return this.slot}; g.J.mP=function(){return this.layout}; g.J.init=function(){this.zZ.get().addListener(this);this.zZ.get().VJ.push(this);var e=A6(this.layout.clientMetadata,"metadata_type_video_length_seconds"),N=A6(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");X1(this.layout.tM)&&Nr(this.AM.get(),this.layout.layoutId,{Gn:N,vK:e,listener:this})}; g.J.release=function(){this.zZ.get().removeListener(this);nk_(this.zZ.get(),this);X1(this.layout.tM)&&ya(this.AM.get(),this.layout.layoutId)}; g.J.startRendering=function(e){this.callback.Ql(this.slot,e)}; g.J.fC=function(e,N){$QE(this.wP.get())&&!this.J&&(this.vk.eR("abandon"),this.J=!0);this.callback.aJ(this.slot,e,N)}; g.J.Qs=function(e){switch(e.id){case "part2viewed":this.vk.eR("start");this.vk.eR("impression");break;case "videoplaytime25":this.vk.eR("first_quartile");break;case "videoplaytime50":this.vk.eR("midpoint");break;case "videoplaytime75":this.vk.eR("third_quartile");break;case "videoplaytime100":$QE(this.wP.get())?this.J||(this.vk.eR("complete"),this.J=!0):this.vk.eR("complete");fv(this.vk)&&gF(this.vk,Infinity,!0);Yt_(this.wP.get())&&nv(this.N,Infinity,!0);break;case "engagedview":fv(this.vk)||this.vk.eR("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:YN("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.J.onVolumeChange=function(){}; g.J.ys=function(){}; g.J.Yx=function(){}; g.J.D0=function(){}; g.J.onFullscreenToggled=function(){}; g.J.pN=function(){}; g.J.Vb=function(){}; g.J.uT=function(e){Yt_(this.wP.get())&&nv(this.N,e*1E3,!1);fv(this.vk)&&gF(this.vk,e*1E3,!1)}; g.J.pO=function(){}; g.J.tq=function(){this.vk.eR("active_view_measurable")}; g.J.fG=function(){this.vk.eR("active_view_viewable")}; g.J.KG=function(){this.vk.eR("active_view_fully_viewable_audible_half_duration")}; g.J.k6=function(){this.vk.eR("audio_measurable")}; g.J.Nf=function(){this.vk.eR("audio_audible")};g.b(mx,bv);g.J=mx.prototype;g.J.init=function(){bv.prototype.init.call(this);var e=A6(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),N={adsClientData:this.layout.o9};this.J.push(new kN(e,this.layout.layoutId,A6(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),N,!0))}; g.J.Jp=function(){this.j||this.zZ.get().resumeVideo(1)}; g.J.startRendering=function(e){bv.prototype.startRendering.call(this,e);Ce(this.zZ.get(),"ad-showing");this.callback.Ql(this.slot,e);this.L.H1=this}; g.J.fC=function(e,N){bv.prototype.fC.call(this,e,N);rV(this.zZ.get(),"ad-showing");Oy(this.L,this)}; g.J.Pw=function(e){switch(e){case "ad-info-icon-button":(this.j=this.zZ.get().Ax(1))||this.zZ.get().pauseVideo();break;case "visit-advertiser":this.zZ.get().pauseVideo()}}; g.J.fh=function(){bv.prototype.fh.call(this)};g.b(Ht,JZ);g.b(Kv,bv);g.J=Kv.prototype;g.J.startRendering=function(e){ct(this.vk,this.W9(),this.mP(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(N,y,w,E,A){return new Ht(N,y,w,E,A)},this.J); bv.prototype.startRendering.call(this,e)}; g.J.Ql=function(){}; g.J.aJ=function(){}; g.J.JT=function(){}; g.J.eZ=function(){}; g.J.XI=function(){}; g.J.BE=function(){}; g.J.ma=function(){}; g.J.U4=function(){}; g.J.Wf=function(){}; g.J.i6=function(){}; g.J.Lq=function(){}; g.J.sX=function(){}; g.J.fh=function(){SK(this.Jz(),this);bv.prototype.fh.call(this)}; g.J.Pw=function(){};g.b(Wt,JZ);g.b(Op,bv);Op.prototype.init=function(){bv.prototype.init.call(this);this.J.push(new Wt(g.m(this.layout.renderingContent,kt),this.layout.layoutId,{adsClientData:this.layout.o9}))}; Op.prototype.Pw=function(){cu(this.j.get(),this.L)&&kQ(this.Pk.get(),3)}; Op.prototype.startRendering=function(e){bv.prototype.startRendering.call(this,e);this.callback.Ql(this.slot,e)}; Op.prototype.fh=function(){bv.prototype.fh.call(this)};g.b(R0,JZ);g.b(GW,bv);GW.prototype.init=function(){bv.prototype.init.call(this);var e=g.m(this.layout.renderingContent,pd)||A6(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),N=hA(this.vk);this.J.push(new R0(e,N,this.layout.layoutId,{adsClientData:this.layout.o9},!0,!0))}; GW.prototype.startRendering=function(e){bv.prototype.startRendering.call(this,e);this.callback.Ql(this.slot,e)}; GW.prototype.Pw=function(e,N){if(N===this.layout.layoutId)switch(e){case "skip-button":var y;(e=(y=A6(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:y.current)&&e.wO(this.W9(),this.layout)}}; GW.prototype.fh=function(){bv.prototype.fh.call(this)};Lv.prototype.build=function(e,N,y,w){if(Up(w,{xO:["metadata_type_ad_break_response_data"],K$:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new Eln(e,y,w,this.N,this.K,this.J);throw new wX("Unsupported layout with type: "+w.layoutType+" and client metadata: "+T5(w.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.b(iTE,JZ);g.b(sp,bv);g.J=sp.prototype;g.J.Pw=function(e,N){Bt("ads-engagement-panel",e,this.Z.get().R$,this.Pk.get(),this.j,this.L,this.W9(),this.mP(),N)}; g.J.startRendering=function(e){ct(this.vk,this.W9(),this.mP(),g.m(this.mP().renderingContent,aX),this.callback,"metadata_type_ads_engagement_panel_renderer",function(N,y,w,E,A){return new iTE(N,y,w,E,A)},this.J); bv.prototype.startRendering.call(this,e)}; g.J.Ql=function(e,N){N.layoutId===this.layout.layoutId?this.vk.eR("impression"):this.L===N.layoutId&&(this.j===null?this.j=this.Pk.get().FW():YN("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.J.aJ=function(){}; g.J.JT=function(){}; g.J.eZ=function(){}; g.J.XI=function(){}; g.J.BE=function(){}; g.J.ma=function(){}; g.J.U4=function(){}; g.J.Wf=function(){}; g.J.i6=function(){}; g.J.Lq=function(){}; g.J.sX=function(){}; g.J.fh=function(){SK(this.Jz(),this);bv.prototype.fh.call(this)};g.b(a0,bv);g.J=a0.prototype;g.J.Pw=function(e,N){Bt("top-banner-image-text-icon-buttoned",e,this.Z.get().R$,this.Pk.get(),this.j,this.L,this.W9(),this.mP(),N)}; g.J.startRendering=function(e){ct(this.vk,this.W9(),this.mP(),g.m(this.mP().renderingContent,N2),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(N,y,w,E,A){return new Ht(N,y,w,E,A)},this.J); bv.prototype.startRendering.call(this,e)}; g.J.Ql=function(e,N){this.L===N.layoutId&&(this.j===null?this.j=this.Pk.get().FW():YN("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.J.aJ=function(){}; g.J.JT=function(){}; g.J.eZ=function(){}; g.J.XI=function(){}; g.J.BE=function(){}; g.J.ma=function(){}; g.J.U4=function(){}; g.J.Wf=function(){}; g.J.i6=function(){}; g.J.Lq=function(){}; g.J.sX=function(){}; g.J.fh=function(){SK(this.Jz(),this);bv.prototype.fh.call(this)};VYE.prototype.build=function(e,N,y,w){if(Up(w,DuH())||g.m(w.renderingContent,aX)!==void 0)return new sp(e,y,w,this.q7,this.Pk,this.Jz,this.AM,this.J);if(Up(w,ol9())||g.m(w.renderingContent,Lt)!==void 0)return new Zk(e,y,w,this.q7,this.Pk,this.Jz,this.AM,this.J);if(Up(w,h9J())||g.m(w.renderingContent,s_)!==void 0)return new xQ(e,y,w,this.q7,this.Pk,this.Jz,this.AM,this.J);if(Up(w,kVH()))return new jO(e,y,w,this.q7,this.Pk,this.Jz,this.AM,this.J);if(Up(w,duE()))return new Q6(e,y,w,this.q7,this.Pk,this.Jz, this.AM,this.J);if(Up(w,SZ9())||g.m(w.renderingContent,ej)!==void 0)return new uv(e,y,w,this.q7,this.Pk,this.Jz,this.AM,this.J);if(Up(w,glH())||g.m(w.renderingContent,N2)!==void 0)return new a0(e,y,w,this.q7,this.Pk,this.Jz,this.AM,this.J);if(Up(w,vl_()))return new Kv(e,y,w,this.q7,this.Pk,this.Jz,this.AM,this.J);if(Up(w,lh_())||g.m(w.renderingContent,yw)!==void 0)return new tA(e,y,w,this.q7,this.Pk,this.Jz,this.AM,this.J);throw new wX("Unsupported layout with type: "+w.layoutType+" and client metadata: "+ T5(w.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};fh5.prototype.build=function(e,N,y,w){if(Up(w,{xO:["metadata_type_linked_player_bytes_layout_id"],K$:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new Op(e,y,w,this.q7,this.Pk,this.J);throw new wX("Unsupported layout with type: "+w.layoutType+" and client metadata: "+T5(w.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.J=tYn.prototype;g.J.W9=function(){return this.slot}; g.J.mP=function(){return this.layout}; g.J.init=function(){}; g.J.release=function(){}; g.J.startRendering=function(e){e.layoutId!==this.layout.layoutId?this.callback.xz(this.slot,e,new wX("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.Ql(this.slot,e),this.vk.eR("impression"),QO(this.Mr,e,"normal"))}; g.J.fC=function(e,N){e.layoutId!==this.layout.layoutId?this.callback.xz(this.slot,e,new wX("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.aJ(this.slot,e,N)};g.J=qZM.prototype;g.J.W9=function(){return this.slot}; g.J.mP=function(){return this.layout}; g.J.init=function(){}; g.J.release=function(){}; g.J.startRendering=function(e){e.layoutId!==this.layout.layoutId?this.callback.xz(this.slot,e,new wX("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.Ql(this.slot,e),this.vk.eR("impression"),QO(this.Mr,e,"normal"))}; g.J.fC=function(e,N){e.layoutId!==this.layout.layoutId?this.callback.xz(this.slot,e,new wX("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.aJ(this.slot,e,N)};ec.prototype.build=function(e,N,y,w){if(!this.wP.get().C.X().T("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(Up(w,u3E()))return new tYn(e,y,w,this.Pk,this.Mr)}else if(Up(w,{xO:[],K$:["LAYOUT_TYPE_FORECASTING"]}))return new qZM(e,y,w,this.Pk,this.Mr);throw new wX("Unsupported layout with type: "+w.layoutType+" and client metadata: "+T5(w.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.b(jMH,JZ);g.b(N5,bv);g.J=N5.prototype;g.J.init=function(){bv.prototype.init.call(this);var e=g.m(this.layout.renderingContent,JG)||A6(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),N={adsClientData:this.layout.o9};this.J.push(new jMH(e,A6(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,N))}; g.J.Jp=function(){this.j||this.zZ.get().resumeVideo(2)}; g.J.startRendering=function(e){bv.prototype.startRendering.call(this,e);this.callback.Ql(this.slot,e);this.L.H1=this}; g.J.fC=function(e,N){bv.prototype.fC.call(this,e,N);Oy(this.L,this)}; g.J.Pw=function(e){if(cu(this.Z.get(),this.G))switch(e){case "visit-advertiser-link":kQ(this.Pk.get(),3)}switch(e){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.j||this.zZ.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.j=this.zZ.get().Ax(2))||this.zZ.get().pauseVideo();break;case "visit-advertiser-link":this.zZ.get().pauseVideo();nl1(this).e5();break;case "skip-button":if(e=nl1(this), this.layout.renderingContent&&!eK(this.layout.clientMetadata,"metadata_type_dai")||!e.Ex){var N;(e=(N=A6(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:N.current)&&e.wO(this.W9(),this.layout)}else YN("Requesting to skip by LegacyPlayerBytes when components enabled"),e.Aq(this.W9(),this.layout)}}; g.J.fh=function(){bv.prototype.fh.call(this)};g.b(yI,bv);g.J=yI.prototype;g.J.init=function(){bv.prototype.init.call(this);var e=g.m(this.layout.renderingContent,TS)||A6(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),N={adsClientData:this.layout.o9},y;(y=!!this.layout.renderingContent)||(y=!wp(this).Ex);this.J.push(new kN(e,this.layout.layoutId,A6(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),N,y))}; g.J.Jp=function(){this.j||this.zZ.get().resumeVideo(2)}; g.J.startRendering=function(e){bv.prototype.startRendering.call(this,e);this.callback.Ql(this.slot,e);this.L.H1=this}; g.J.fC=function(e,N){bv.prototype.fC.call(this,e,N);Oy(this.L,this)}; g.J.Pw=function(e){if(cu(this.Z.get(),this.G))switch(e){case "visit-advertiser":kQ(this.Pk.get(),3)}switch(e){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.j||this.zZ.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.j=this.zZ.get().Ax(2))||this.zZ.get().pauseVideo();break;case "visit-advertiser":this.zZ.get().pauseVideo();wp(this).e5();break;case "skip-button":if(e=wp(this),this.layout.renderingContent&& !eK(this.layout.clientMetadata,"metadata_type_dai")||!e.Ex){var N;(e=(N=A6(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:N.current)&&e.wO(this.W9(),this.layout)}else YN("Requesting to skip by LegacyPlayerBytes"),e.Aq(this.W9(),this.layout)}}; g.J.fh=function(){bv.prototype.fh.call(this)};g.b(muP,JZ);g.b(Eg,bv);g.J=Eg.prototype;g.J.startRendering=function(e){var N=this;o0(this.N,e,function(){N.J.push(new muP(A6(N.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),e.layoutId,e.o9));N.yL();N.callback.Ql(N.slot,e);g.G(eT(N.zZ.get(),1),512)&&N.callback.xz(N.W9(),N.mP(),new wX("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.J.Vb=function(){}; g.J.pN=function(e){if(e.state.isError()){var N;this.callback.xz(this.W9(),this.mP(),new wX("A player error happened during adNotify",{playerErrorCode:(N=e.state.qS)==null?void 0:N.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; g.J.onFullscreenToggled=function(){}; g.J.Yx=function(){}; g.J.D0=function(){}; g.J.ys=function(){}; g.J.onVolumeChange=function(){}; g.J.Qs=function(){}; g.J.pO=function(){}; g.J.Pw=function(){};g.b(Kkn,JZ);g.b(AG,bv);AG.prototype.init=function(){bv.prototype.init.call(this);var e=g.m(this.layout.renderingContent,Cd),N=hA(this.vk);this.J.push(new Kkn(e,N,this.layout.layoutId,{adsClientData:this.layout.o9}))}; AG.prototype.startRendering=function(e){bv.prototype.startRendering.call(this,e);this.callback.Ql(this.slot,e)}; AG.prototype.Pw=function(e,N){if(N===this.layout.layoutId)switch(e){case "skip-button":var y;(e=(y=A6(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:y.current)&&e.wO(this.W9(),this.layout)}}; AG.prototype.fh=function(){bv.prototype.fh.call(this)};WkM.prototype.build=function(e,N,y,w){if(e=rp(e,y,w,this.q7,this.zZ,this.Pk,this.N,this.J,this.wP))return e;throw new wX("Unsupported layout with type: "+w.layoutType+" and client metadata: "+T5(w.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.J=OTs.prototype;g.J.W9=function(){return this.slot}; g.J.mP=function(){return this.layout}; g.J.init=function(){this.zZ.get().addListener(this);this.zZ.get().VJ.push(this);var e=A6(this.layout.clientMetadata,"metadata_type_video_length_seconds"),N=A6(this.layout.clientMetadata,"metadata_type_active_view_traffic_type"),y=A6(this.layout.clientMetadata,"metadata_type_active_view_identifier");X1(this.layout.tM)&&Nr(this.AM.get(),this.layout.layoutId,{Gn:N,vK:e,listener:this,tZ:y})}; g.J.release=function(){this.zZ.get().removeListener(this);nk_(this.zZ.get(),this);X1(this.layout.tM)&&ya(this.AM.get(),this.layout.layoutId)}; g.J.startRendering=function(e){this.callback.Ql(this.slot,e)}; g.J.fC=function(e,N){M5(this,"abandon");this.callback.aJ(this.slot,e,N)}; g.J.Qs=function(e){switch(e.id){case "part2viewed":this.vk.eR("start");this.vk.eR("impression");break;case "videoplaytime25":this.vk.eR("first_quartile");break;case "videoplaytime50":this.vk.eR("midpoint");break;case "videoplaytime75":this.vk.eR("third_quartile");break;case "videoplaytime100":M5(this,"complete");fv(this.vk)&&gF(this.vk,Infinity,!0);break;case "engagedview":fv(this.vk)||this.vk.eR("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:YN("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.J.onVolumeChange=function(){}; g.J.ys=function(){}; g.J.Yx=function(){}; g.J.D0=function(){}; g.J.onFullscreenToggled=function(){}; g.J.pN=function(e){this.J||(g.FD(e,4)&&!g.FD(e,2)?Dk(this.vk,"pause"):lp(e,4)<0&&!(lp(e,2)<0)&&Dk(this.vk,"resume"))}; g.J.Vb=function(){}; g.J.uT=function(e){fv(this.vk)&&gF(this.vk,e*1E3,!1)}; g.J.pO=function(){M5(this,"swipe")}; g.J.tq=function(){this.vk.eR("active_view_measurable")}; g.J.fG=function(){this.vk.eR("active_view_viewable")}; g.J.KG=function(){this.vk.eR("active_view_fully_viewable_audible_half_duration")}; g.J.k6=function(){this.vk.eR("audio_measurable")}; g.J.Nf=function(){this.vk.eR("audio_audible")};R9M.prototype.build=function(e,N,y,w){N=["metadata_type_ad_placement_config"];for(var E=g.c(vt()),A=E.next();!A.done;A=E.next())N.push(A.value);if(Up(w,{xO:N,K$:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return y.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new OTs(e,y,w,this.zZ,this.Pk,this.wP,this.AM):new IhF(e,y,w,this.zZ,this.Pk,this.P9,this.wP,this.AM);throw new wX("Unsupported layout with type: "+w.layoutType+" and client metadata: "+T5(w.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory."); };var o2={contentCpn:"",YS:new Map};ENE.prototype.g4=function(e,N){var y={};N=Object.assign({},N,(y.cc=this.zo.YI(),y));this.zo.C.Fh(e,N)};var G70,ts; G70={HwZ:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",JAt:"AUTHENTICATION_MALFORMED",N4h:"AUTHENTICATION_MISSING",Kv9:"BAD_REQUEST",OjW:"CAST_SESSION_DEVICE_MISMATCHED",AAP:"CAST_SESSION_VIDEO_MISMATCHED",hjh:"CAST_TOKEN_EXPIRED",l0h:"CAST_TOKEN_FAILED",ueq:"CAST_TOKEN_MALFORMED",xXq:"CGI_PARAMS_MALFORMED",ijq:"CGI_PARAMS_MISSING",vB1:"DEVICE_FALLBACK",Aoh:"GENERIC_WITH_LINK_AND_CPN",hFB:"ERROR_HDCP",lxB:"LICENSE",x2t:"VIDEO_UNAVAILABLE",SHg:"FORMAT_UNAVAILABLE",ZOl:"GEO_FAILURE", gXs:"HTML5_AUDIO_RENDERER_ERROR",V1s:"GENERIC_WITHOUT_LINK",M1Z:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",Q1t:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",Ix1:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",D2k:"HTML5_SPS_UMP_STATUS_REJECTED",bEl:"INVALID_DRM_MESSAGE",VW9:"PURCHASE_NOT_FOUND",MWt:"PURCHASE_REFUNDED",Jgt:"RENTAL_EXPIRED",jOW:"RETRYABLE_ERROR",uAh:"SERVER_ERROR",RMZ:"SIGNATURE_EXPIRED",Hit:"STOPPED_BY_ANOTHER_PLAYBACK",GNh:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",oo9:"STREAMING_NOT_ALLOWED", Eog:"STREAM_LICENSE_NOT_FOUND",WAZ:"TOO_MANY_REQUESTS",eMP:"TOO_MANY_REQUESTS_WITH_LINK",voB:"TOO_MANY_STREAMS_PER_ENTITLEMENT",VzP:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",lN9:"VIDEO_FORBIDDEN",uF1:"VIDEO_NOT_FOUND",j$9:"BROWSER_OR_EXTENSION_ERROR"};ts={}; g.R3=(ts.ALREADY_PINNED_ON_A_DEVICE="Voc\u00ea j\u00e1 fez o download deste v\u00eddeo para a quantidade m\u00e1xima de dispositivos permitida pelo propriet\u00e1rio dos direitos autorais. Antes de reproduzi-lo aqui, ser\u00e1 necess\u00e1rio remov\u00ea-lo de outro dispositivo.",ts.DEVICE_FALLBACK="Este v\u00eddeo n\u00e3o est\u00e1 dispon\u00edvel neste dispositivo.",ts.GENERIC_WITH_LINK_AND_CPN="Ocorreu um erro. Tente novamente mais tarde. (ID de reprodu\u00e7\u00e3o: $CPN) $BEGIN_LINKSaiba mais$END_LINK", ts.LICENSE="Ocorreu um erro ao licenciar este v\u00eddeo.",ts.VIDEO_UNAVAILABLE="V\u00eddeo indispon\u00edvel",ts.FORMAT_UNAVAILABLE="O v\u00eddeo n\u00e3o est\u00e1 dispon\u00edvel na qualidade selecionada. Tente novamente mais tarde.",ts.GEO_FAILURE="Este v\u00eddeo n\u00e3o est\u00e1 dispon\u00edvel em seu pa\u00eds.",ts.HTML5_AUDIO_RENDERER_ERROR="Erro ao renderizar \u00e1udio. Reinicie seu computador.",ts.GENERIC_WITHOUT_LINK="Ocorreu um erro. Tente novamente mais tarde.",ts.HTML5_NO_AVAILABLE_FORMATS_FALLBACK= "Este formato de v\u00eddeo n\u00e3o \u00e9 suportado.",ts.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="No momento, seu navegador n\u00e3o reconhece os formatos de v\u00eddeo dispon\u00edveis. $BEGIN_LINKClique aqui para visitar as perguntas frequentes sobre v\u00eddeos em HTML5.$END_LINK",ts.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="N\u00e3o \u00e9 poss\u00edvel tocar este v\u00eddeo no seu navegador. $BEGIN_LINKSaiba mais$END_LINK",ts.HTML5_SPS_UMP_STATUS_REJECTED="Algo deu errado. Atualize ou tente de novo depois. $BEGIN_LINKSaiba mais$END_LINK", ts.INVALID_DRM_MESSAGE="A mensagem espec\u00edfica do sistema de DRM (gest\u00e3o de direitos digitais) \u00e9 inv\u00e1lida.",ts.PURCHASE_NOT_FOUND="Este v\u00eddeo requer pagamento.",ts.PURCHASE_REFUNDED="A compra deste v\u00eddeo foi estornada.",ts.RENTAL_EXPIRED="O aluguel deste v\u00eddeo expirou.",ts.CAST_SESSION_DEVICE_MISMATCHED="O dispositivo na sess\u00e3o de transmiss\u00e3o n\u00e3o corresponde ao solicitado.",ts.CAST_SESSION_VIDEO_MISMATCHED="O v\u00eddeo da sess\u00e3o de transmiss\u00e3o n\u00e3o corresponde ao solicitado.", ts.CAST_TOKEN_FAILED="Sess\u00e3o de transmiss\u00e3o n\u00e3o dispon\u00edvel. Atualize ou tente novamente mais tarde.",ts.CAST_TOKEN_EXPIRED="A sess\u00e3o de transmiss\u00e3o expirou. Atualize.",ts.CAST_TOKEN_MALFORMED="Sess\u00e3o de transmiss\u00e3o inv\u00e1lida. Atualize ou tente novamente mais tarde.",ts.SERVER_ERROR="Ocorreu um erro interno do servidor. Tente novamente mais tarde.",ts.STOPPED_BY_ANOTHER_PLAYBACK="Sua conta est\u00e1 reproduzindo este v\u00eddeo em outro local. Recarregue esta p\u00e1gina para continuar assistindo.", ts.STREAM_LICENSE_NOT_FOUND="Reprodu\u00e7\u00e3o de v\u00eddeo interrompida. Tente novamente.",ts.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Foram utilizados muitos dispositivos/endere\u00e7os IP no per\u00edodo de 24 horas.",ts.STREAMING_NOT_ALLOWED="Reprodu\u00e7\u00e3o n\u00e3o permitida porque este v\u00eddeo est\u00e1 fixado a outro dispositivo.",ts.RETRYABLE_ERROR="Ocorreu um erro tempor\u00e1rio no servidor. Tente novamente mais tarde.",ts.TOO_MANY_REQUESTS="Fa\u00e7a login para assistir este v\u00eddeo.", ts.TOO_MANY_REQUESTS_WITH_LINK="$BEGIN_LINKClique aqui$END_LINK para assistir este v\u00eddeo no YouTube.",ts.TOO_MANY_STREAMS_PER_USER="A reprodu\u00e7\u00e3o foi interrompida porque est\u00e3o sendo exibidos muitos v\u00eddeos da mesma conta.",ts.TOO_MANY_STREAMS_PER_ENTITLEMENT="A reprodu\u00e7\u00e3o foi interrompida porque este v\u00eddeo foi reproduzido em muitos dispositivos.",ts.UNSUPPORTED_DEVICE="A reprodu\u00e7\u00e3o n\u00e3o \u00e9 compat\u00edvel com este dispositivo.",ts.VIDEO_FORBIDDEN= "O acesso a este v\u00eddeo \u00e9 proibido.",ts.VIDEO_NOT_FOUND="N\u00e3o foi poss\u00edvel localizar o v\u00eddeo.",ts.BROWSER_OR_EXTENSION_ERROR="Algo deu errado. Atualize ou tente de novo depois. $BEGIN_LINKSaiba mais$END_LINK",ts);var Udw;var LWw=g.zw(),sN_=LWw.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!sN_||sN_.length<2)Udw=void 0;else{var ay_=LWw.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);Udw=ay_&&ay_.length===6?Number(ay_[5].replace("_",".")):0}var a3=Udw,mm=a3>=0;g.b(g.fd,iY);g.fd.prototype.Y=function(e,N,y,w,E){return iY.prototype.Y.call(this,e,N,y,w,E)};var uW={},Am=(uW.FAIRPLAY="fairplay",uW.PLAYREADY="playready",uW.WIDEVINE="widevine",uW.CLEARKEY=null,uW.FLASHACCESS=null,uW.UNKNOWN=null,uW.WIDEVINE_CLASSIC=null,uW);tG.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var qn={},$E=(qn.WIDTH={name:"width",video:!0,valid:640,jL:99999},qn.HEIGHT={name:"height",video:!0,valid:360,jL:99999},qn.FRAMERATE={name:"framerate",video:!0,valid:30,jL:9999},qn.BITRATE={name:"bitrate",video:!0,valid:3E5,jL:2E9},qn.EOTF={name:"eotf",video:!0,valid:"bt709",jL:"catavision"},qn.CHANNELS={name:"channels",video:!1,valid:2,jL:99},qn.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",jL:"invalidformat"},qn.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", jL:"nope"},qn.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",jL:"av99.0.05M.08"},qn.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",jL:"invalid"},qn);var efV=["h","H"],Naw=["9","("],yKw=["9h","(h"],wWT=["8","*"],Ebw=["a","A"],AK5=["o","O"],Ta_=["m","M"],JKT=["mac3","MAC3"],pWX=["meac3","MEAC3"],ZI={},s8_=(ZI.h=efV,ZI.H=efV,ZI["9"]=Naw,ZI["("]=Naw,ZI["9h"]=yKw,ZI["(h"]=yKw,ZI["8"]=wWT,ZI["*"]=wWT,ZI.a=Ebw,ZI.A=Ebw,ZI.o=AK5,ZI.O=AK5,ZI.m=Ta_,ZI.M=Ta_,ZI.mac3=JKT,ZI.MAC3=JKT,ZI.meac3=pWX,ZI.MEAC3=pWX,ZI),CcF=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),Hv1=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var L={},nd=(L["0"]="f",L["160"]="h",L["133"]="h",L["134"]="h",L["135"]="h",L["136"]="h",L["137"]="h",L["264"]="h",L["266"]="h",L["138"]="h",L["298"]="h",L["299"]="h",L["304"]="h",L["305"]="h",L["214"]="h",L["216"]="h",L["374"]="h",L["375"]="h",L["140"]="a",L["141"]="ah",L["327"]="sa",L["258"]="m",L["380"]="mac3",L["328"]="meac3",L["161"]="H",L["142"]="H",L["143"]="H",L["144"]="H",L["222"]="H",L["223"]="H",L["145"]="H",L["224"]="H",L["225"]="H",L["146"]="H",L["226"]="H",L["227"]="H",L["147"]="H", L["384"]="H",L["376"]="H",L["385"]="H",L["377"]="H",L["149"]="A",L["261"]="M",L["381"]="MAC3",L["329"]="MEAC3",L["598"]="9",L["278"]="9",L["242"]="9",L["243"]="9",L["244"]="9",L["775"]="9",L["776"]="9",L["777"]="9",L["778"]="9",L["779"]="9",L["780"]="9",L["781"]="9",L["782"]="9",L["783"]="9",L["247"]="9",L["248"]="9",L["353"]="9",L["355"]="9",L["356"]="9",L["271"]="9",L["577"]="9",L["313"]="9",L["579"]="9",L["272"]="9",L["302"]="9",L["303"]="9",L["407"]="9",L["408"]="9",L["308"]="9",L["315"]="9", L["330"]="9h",L["331"]="9h",L["332"]="9h",L["333"]="9h",L["334"]="9h",L["335"]="9h",L["336"]="9h",L["337"]="9h",L["338"]="so",L["600"]="o",L["250"]="o",L["251"]="o",L["774"]="o",L["194"]="*",L["195"]="*",L["220"]="*",L["221"]="*",L["196"]="*",L["197"]="*",L["279"]="(",L["280"]="(",L["317"]="(",L["318"]="(",L["273"]="(",L["274"]="(",L["357"]="(",L["358"]="(",L["275"]="(",L["359"]="(",L["360"]="(",L["276"]="(",L["583"]="(",L["584"]="(",L["314"]="(",L["585"]="(",L["561"]="(",L["277"]="(",L["361"]="(h", L["362"]="(h",L["363"]="(h",L["364"]="(h",L["365"]="(h",L["366"]="(h",L["591"]="(h",L["592"]="(h",L["367"]="(h",L["586"]="(h",L["587"]="(h",L["368"]="(h",L["588"]="(h",L["562"]="(h",L["409"]="(",L["410"]="(",L["411"]="(",L["412"]="(",L["557"]="(",L["558"]="(",L["394"]="1",L["395"]="1",L["396"]="1",L["397"]="1",L["398"]="1",L["399"]="1",L["720"]="1",L["721"]="1",L["400"]="1",L["401"]="1",L["571"]="1",L["402"]="1",L["694"]="1h",L["695"]="1h",L["696"]="1h",L["697"]="1h",L["698"]="1h",L["699"]="1h",L["700"]= "1h",L["701"]="1h",L["702"]="1h",L["703"]="1h",L["386"]="3",L["387"]="w",L["406"]="6",L["787"]="1",L["788"]="1",L["645"]="(",L["646"]="(",L["647"]="(",L["648"]="(",L["649"]="(",L["650"]="(",L["651"]="(",L["652"]="(",L["653"]="(",L["654"]="(",L["655"]="(",L["656"]="(",L["657"]="(",L["658"]="(",L["659"]="(",L["660"]="(",L["661"]="(",L["662"]="(",L["663"]="(",L["664"]="(",L["665"]="(",L["666"]="(",L["667"]="(",L["668"]="(",L["669"]="(",L["670"]="(",L["671"]="(",L["672"]="(",L["673"]="(",L["674"]="(h", L["675"]="(h",L["676"]="(h",L["677"]="(h",L["678"]="(h",L["679"]="(h",L["680"]="(h",L["681"]="(h",L["682"]="(h",L["683"]="(h",L["684"]="(h",L["685"]="(h",L["686"]="(h",L["687"]="(h",L["688"]="A",L["689"]="A",L["690"]="A",L["691"]="MEAC3",L["773"]="i",L["806"]="I",L["805"]="I",L["829"]="9",L["830"]="9",L["831"]="9",L["832"]="9",L["833"]="9",L["834"]="9",L["835"]="9",L["836"]="9",L["837"]="9",L["838"]="9",L["839"]="9",L["840"]="9",L["841"]="(",L["842"]="(",L["843"]="(",L["844"]="(",L["845"]="(",L["846"]= "(",L["847"]="(",L["848"]="(",L["849"]="(",L["850"]="(",L["851"]="(",L["852"]="(",L["865"]="9",L["866"]="9",L["867"]="9",L["868"]="9",L["869"]="9",L["870"]="9",L["871"]="9",L["872"]="9",L["873"]="9",L["874"]="9",L["875"]="9",L["876"]="9",L["877"]="(",L["878"]="(",L["879"]="(",L["880"]="(",L["881"]="(",L["882"]="(",L["883"]="(",L["884"]="(",L["885"]="(",L["886"]="(",L["887"]="(",L["888"]="(",L);var xW={},Vis=(xW.STEREO_LAYOUT_UNKNOWN=0,xW.STEREO_LAYOUT_LEFT_RIGHT=1,xW.STEREO_LAYOUT_TOP_BOTTOM=2,xW);var jW,LA;jW={};g.q5=(jW.auto=0,jW.tiny=144,jW.light=144,jW.small=240,jW.medium=360,jW.large=480,jW.hd720=720,jW.hd1080=1080,jW.hd1440=1440,jW.hd2160=2160,jW.hd2880=2880,jW.highres=4320,jW);LA={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var x6="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");Zr.prototype.isHdr=function(){return this.N==="smpte2084"||this.N==="arib-std-b67"};QI.prototype.lm=function(){return this.containerType===2}; QI.prototype.isEncrypted=function(){return!!this.BG}; QI.prototype.qG=function(){return!!this.audio}; QI.prototype.gx=function(){return!!this.video};g.b(rO,g.pT);g.J=rO.prototype;g.J.appendBuffer=function(e,N,y){if(this.KC.CV()!==this.appendWindowStart+this.start||this.KC.YV()!==this.appendWindowEnd+this.start||this.KC.w7()!==this.timestampOffset+this.start)this.KC.supports(1),this.KC.jr(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.KC.lZ(this.timestampOffset+this.start);this.KC.appendBuffer(e,N,y)}; g.J.abort=function(){this.KC.abort()}; g.J.remove=function(e,N){this.KC.remove(e+this.start,N+this.start)}; g.J.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.J.clear=function(){this.KC.clear()}; g.J.jr=function(e,N){this.appendWindowStart=e;this.appendWindowEnd=N}; g.J.dc=function(){return this.timestampOffset+this.start}; g.J.CV=function(){return this.appendWindowStart}; g.J.YV=function(){return this.appendWindowEnd}; g.J.lZ=function(e){this.timestampOffset=e}; g.J.w7=function(){return this.timestampOffset}; g.J.Ju=function(e){e=this.KC.Ju(e===void 0?!1:e);return Ch(e,this.start,this.end)}; g.J.Vh=function(){return this.KC.Vh()}; g.J.AK=function(){return this.KC.AK()}; g.J.QI=function(){return this.KC.QI()}; g.J.j9=function(){return this.KC.j9()}; g.J.IC=function(){this.KC.IC()}; g.J.L_=function(e){return this.KC.L_(e)}; g.J.QO=function(){return this.KC.QO()}; g.J.QC=function(){return this.KC.QC()}; g.J.v6=function(){return this.KC.v6()}; g.J.AY=function(e,N,y){this.KC.AY(e,N,y)}; g.J.hY=function(e,N,y){this.KC.hY(e,N,y)}; g.J.WS=function(e,N){return this.KC.WS(e,N)}; g.J.supports=function(e){return this.KC.supports(e)}; g.J.mM=function(){return this.KC.mM()}; g.J.isView=function(){return!0}; g.J.Fw=function(){return this.KC.Fw()?this.isActive:!1}; g.J.isLocked=function(){return this.MC&&!this.isActive}; g.J.N7=function(e){e=this.KC.N7(e);e.vw=this.start+"-"+this.end;return e}; g.J.Iz=function(){return this.KC.Iz()}; g.J.PZ=function(){return this.KC.PZ()}; g.J.un=function(){return this.KC.un()}; g.J.fh=function(){this.KC.qB(this.t8);g.pT.prototype.fh.call(this)};var Cr=!1;g.b(YH,g.pT);g.J=YH.prototype;g.J.appendBuffer=function(e,N,y){this.Yn=!1;y&&(this.R6=y);if(e.length){var w;((w=this.TW)==null?0:w.appendBuffer)?this.TW.appendBuffer(e):this.TW?this.TW.append(e):this.gQ&&this.gQ.webkitSourceAppend(this.id,e)}N&&(N.isEncrypted()&&(this.Pe=this.R6),N.type===3&&(this.lP=N),this.Su.push(N.O2()),this.Su.length>4&&this.Su.shift());this.aH&&(this.aH.length>=2||e.length>1048576?delete this.aH:this.aH.push(e))}; g.J.abort=function(){try{this.TW?this.TW.abort():this.gQ&&this.gQ.webkitSourceAbort(this.id)}catch(e){pJs&&g.t0(new g.Gh("Error while abort the source buffer: "+e.name+", "+e.message))}this.R6=this.lP=null}; g.J.remove=function(e,N,y){this.Yn=!1;var w;if((w=this.TW)==null?0:w.remove)y&&y({b:wO(this.Ju()),s:e,e:N}),this.TW.remove(e,N)}; g.J.removeAll=function(){this.remove(this.CV(),this.YV())}; g.J.clear=function(){this.QI()||(this.abort(),this.removeAll(),this.Pe=this.R6=this.lP=null,this.appendWindowStart=this.timestampOffset=0,this.yc=yc([],[]),this.Yn=!1,this.aH=$H?[]:void 0,this.KU=!0)}; g.J.CV=function(){if(Cr&&this.gx)return this.appendWindowStart;var e;return((e=this.TW)==null?void 0:e.appendWindowStart)||0}; g.J.YV=function(){var e;return((e=this.TW)==null?void 0:e.appendWindowEnd)||0}; g.J.jr=function(e,N){this.TW&&(Cr&&this.gx?(this.appendWindowStart=e,this.TW.appendWindowEnd=N):e>this.CV()?(this.TW.appendWindowEnd=N,this.TW.appendWindowStart=e):(this.TW.appendWindowStart=e,this.TW.appendWindowEnd=N))}; g.J.dc=function(){return this.timestampOffset}; g.J.lZ=function(e){Cr?this.timestampOffset=e:this.supports(1)&&(this.TW.timestampOffset=e)}; g.J.w7=function(){return Cr?this.timestampOffset:this.supports(1)?this.TW.timestampOffset:0}; g.J.Ju=function(e){if(e===void 0?0:e)return this.Yn||this.Vh()||(this.yc=this.Ju(!1),this.Yn=!0),this.yc;try{return this.TW?this.TW.buffered:this.gQ?this.gQ.webkitSourceBuffered(this.id):yc([0],[Infinity])}catch(N){return yc([],[])}}; g.J.Vh=function(){var e;return((e=this.TW)==null?void 0:e.updating)||!1}; g.J.QI=function(){return this.KU}; g.J.j9=function(){return!this.KU&&this.Vh()}; g.J.IC=function(){this.KU=!1}; g.J.L_=function(e){var N=e==null?void 0:e.Iq;e=e==null?void 0:e.containerType;return!N&&!e||N===this.Iq&&e===this.containerType}; g.J.QO=function(){return this.R6}; g.J.QC=function(){return this.Pe}; g.J.WS=function(e,N){return this.containerType!==e||this.Iq!==N}; g.J.AY=function(e,N,y){if(this.containerType!==e||y&&this.WS(e,y))this.supports(4),Zo()&&this.TW.changeType(N),y&&(this.Iq=y);this.containerType=e}; g.J.hY=function(e,N,y){this.containerType&&this.WS(e,N)&&Zo()&&this.TW.changeType(y);this.containerType=e;this.Iq=N}; g.J.mM=function(){return this.lP}; g.J.isView=function(){return!1}; g.J.supports=function(e){switch(e){case 1:var N;return((N=this.TW)==null?void 0:N.timestampOffset)!==void 0;case 0:var y;return!((y=this.TW)==null||!y.appendBuffer);case 2:var w;return!((w=this.TW)==null||!w.remove);case 3:var E,A;return!!(((E=this.TW)==null?0:E.addEventListener)&&((A=this.TW)==null?0:A.removeEventListener));case 4:return!(!this.TW||!this.TW.changeType);default:return!1}}; g.J.Fw=function(){return!this.Vh()}; g.J.isLocked=function(){return!1}; g.J.N7=function(e){e.to=this.w7();e.up=this.Vh();var N,y=((N=this.TW)==null?void 0:N.appendWindowStart)||0,w;N=((w=this.TW)==null?void 0:w.appendWindowEnd)||Infinity;e.aw=y.toFixed(3)+"-"+N.toFixed(3);return e}; g.J.AK=function(){var e;return((e=this.TW)==null?void 0:e.writeHead)||0}; g.J.Iz=function(){for(var e={},N=0;N=7&&AF5(this,function(){g.b4(function(){BhH(e,e.getCurrentTime(),0)},500)}); return N}; g.J.seekTo=function(e){this.Rl()>0&&(mm&&a3<4&&(e=Math.max(.1,e)),this.setCurrentTime(e))}; g.J.wK=function(){if(!this.N&&this.TZ)if(this.TZ.L)try{var e;ma(this,{l:"mer",sr:(e=this.JW)==null?void 0:e.fO(),rs:Kh(this.TZ)});this.TZ.clear();this.N=this.TZ;this.TZ=void 0}catch(N){e=new g.Gh("Error while clearing Media Source in MediaElement: "+N.name+", "+N.message),g.t0(e),this.stopVideo()}else this.stopVideo()}; g.J.stopVideo=function(){var e=this;if(!this.N){var N;(N=this.TZ)==null||h30(N);if(ANP){if(!this.K){var y=new O3;y.then(void 0,function(){}); this.K=y;TfP&&this.pause();g.b4(function(){e.K===y&&(Lh(e),y.resolve())},200)}}else Lh(this)}}; g.J.K9=function(){var e=this.O4();return JX(e)>0&&this.getDuration()?T6(e,this.getCurrentTime()):0}; g.J.sz=function(){var e=this.getDuration();return e===Infinity?1:e?this.K9()/e:0}; g.J.N7=function(){try{var e=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:wO(this.JP(),",",3),vbu:wO(this.O4()),vbs:wO(this.Gz()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.Rl(),vns:""+this.pM(),vec:""+this.pw(),vemsg:this.Cq(),vvol:""+this.getVolume(),vdom:""+ +this.bS(),vsrc:""+ +!!this.cI(),vw:""+e.width,vh:""+e.height}}catch(N){return{}}}; g.J.hasError=function(){return this.pw()>0}; g.J.addEventListener=function(e,N){this.j.listen(e,N,!1,this);this.ao(e)}; g.J.removeEventListener=function(e,N){this.j.CX(e,N,!1,this)}; g.J.dispatchEvent=function(e){if(this.K&&e.type==="pause")return!1;if(JNE){var N,y=((N=e.J)==null?void 0:N.timeStamp)||Infinity;N=y>performance.now()?y-Date.now()+performance.now():y;y=this.N||this.TZ;if((y==null?0:y.QI())||N<=((y==null?void 0:y.Z)||0)){var w;ma(this,{l:"mede",sr:(w=this.JW)==null?void 0:w.fO(),et:e.type});return!1}if(this.CM)return ma(this,{l:"medes",et:e.type}),y&&e.type==="seeking"&&(y.Z=performance.now(),this.CM=!1),!1}return this.j.dispatchEvent(e)}; g.J.xj=function(){this.Z=!1}; g.J.je=function(){this.Z=!0;this.Zs(!0)}; g.J.SM=function(){this.Z&&!this.sV()&&this.Zs(!0)}; g.J.Bw=function(e){return!!e&&e.ut()===this.ut()}; g.J.fh=function(){this.G&&this.removeEventListener("volumechange",this.SM);ANP&&Lh(this);g.x.prototype.fh.call(this)}; var ANP=!1,TfP=!1,JNE=!1,dEJ=!1;g.J=g.a8.prototype;g.J.isPaused=function(){return g.G(this,4)}; g.J.isPlaying=function(){return g.G(this,8)&&!g.G(this,512)&&!g.G(this,64)&&!g.G(this,2)}; g.J.isOrWillBePlaying=function(){return g.G(this,8)&&!g.G(this,2)&&!g.G(this,1024)}; g.J.isCued=function(){return g.G(this,64)&&!g.G(this,8)&&!g.G(this,4)}; g.J.isBuffering=function(){return g.G(this,1)&&!g.G(this,2)}; g.J.isError=function(){return g.G(this,128)}; g.J.isSuspended=function(){return g.G(this,512)}; g.J.C_=function(){return g.G(this,64)&&g.G(this,4)}; g.J.toString=function(){return"PSt."+this.state.toString(16)}; var nF={},Qz=(nF.BUFFERING="buffering-mode",nF.CUED="cued-mode",nF.ENDED="ended-mode",nF.PAUSED="paused-mode",nF.PLAYING="playing-mode",nF.SEEKING="seeking-mode",nF.UNSTARTED="unstarted-mode",nF);g.b(CL,g.x);g.J=CL.prototype;g.J.FF=function(){return this.K}; g.J.W9=function(){return this.slot}; g.J.mP=function(){return this.layout}; g.J.init=function(){var e=A6(this.layout.clientMetadata,"metadata_type_video_length_seconds"),N=A6(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");X1(this.layout.tM)&&Nr(this.AM.get(),this.layout.layoutId,{Gn:N,vK:e,listener:this,OR:this.HE()});VN5(this.Pk.get(),this);e=this.Kw;N=this.layout.layoutId;var y={OR:this.HE()};e.J.set(N,y);this.Zp()}; g.J.Ft=function(){}; g.J.release=function(){X1(this.layout.tM)&&ya(this.AM.get(),this.layout.layoutId);fl0(this.Pk.get(),this);this.Kw.J.delete(this.layout.layoutId);this.Hm()}; g.J.WF=function(){}; g.J.Jf=function(){}; g.J.startRendering=function(e){c3(rY(this));if($z(this,e)){var N=this.J;k6(N.params.OP.wP.get(),!0)&&w2J(N,"p_sr",{});Yz(this);this.Fa(e);this.HE()||this.W8(!1)}}; g.J.Ql=function(e,N){if(N.layoutId===this.layout.layoutId){this.Dg="rendering";this.N=this.zZ.get().isMuted()||this.zZ.get().getVolume()===0;this.eR("impression");this.eR("start");if(this.zZ.get().isMuted()){bi(this,"mute");var y;e=((y=pL(this))==null?void 0:y.muteCommands)||[];Ha(this.P9.get(),e,this.layout.layoutId)}if(this.zZ.get().isFullscreen()){this.wz("fullscreen");var w;y=((w=pL(this))==null?void 0:w.fullscreenCommands)||[];Ha(this.P9.get(),y,this.layout.layoutId)}this.HE()||(w=this.d7.get(), w.K&&!w.N&&(w.L=!1,w.N=!0,w.actionType!=="ad_to_video"&&(KV("pbs",void 0,w.actionType),g.Xj("finalize_all_timelines")&&WK9(w.actionType))));this.qA(1);this.GK(N);var E;N=((E=pL(this))==null?void 0:E.impressionCommands)||[];Ha(this.P9.get(),N,this.layout.layoutId)}}; g.J.GP=function(e,N,y){this.G={J0:3,U6:e==="load_timeout"?402:400,errorMessage:N.message};this.eR("error");var w;e=((w=pL(this))==null?void 0:w.errorCommands)||[];Ha(this.P9.get(),e,this.layout.layoutId);this.HE()||this.oY.xz(this.slot,this.layout,N,y)}; g.J.Jh=function(){if(this.Dg==="rendering"){bi(this,"pause");var e,N=((e=pL(this))==null?void 0:e.pauseCommands)||[];Ha(this.P9.get(),N,this.layout.layoutId);this.qA(2)}}; g.J.N9=function(){if(this.Dg==="rendering"){bi(this,"resume");var e,N=((e=pL(this))==null?void 0:e.resumeCommands)||[];Ha(this.P9.get(),N,this.layout.layoutId)}}; g.J.bV=function(e,N){N=N===void 0?!1:N;if(this.Dg==="rendering"){var y={currentTimeSec:e,flush:N};B3(this.J,"p_ip",y);gF(this.vk,e*1E3,N);this.N||gF(this.vk,e*1E3,N===void 0?!1:N);var w=this.Zj();if(w){w/=1E3;if(e>=w*.25||N)this.eR("first_quartile"),B3(this.J,"p_fq",y);if(e>=w*.5||N)this.eR("midpoint"),B3(this.J,"p_sq",y);if(e>=w*.75||N)this.eR("third_quartile"),B3(this.J,"p_tq",y);this.wP.get().C.X().experiments.gP("enable_progress_command_flush_on_kabuki")?nv(this.j,e*1E3,N):nv(this.j,e*1E3,gN_(this)? N:!1)}}}; g.J.YI=function(){var e;return((e=Mb(this.Hk.get(),1))==null?void 0:e.clientPlaybackNonce)||""}; g.J.OL=function(e,N){e.layoutId!==this.layout.layoutId?this.oY.xz(this.slot,e,new wX("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"):N()}; g.J.aJ=function(e,N,y){if(N.layoutId===this.layout.layoutId)switch(this.Dg="not_rendering",this.layoutExitReason=void 0,this.HE()||(e=y!=="normal"||this.position+1===this.Z)&&this.W8(e),this.FV(y),this.qA(0),y){case "abandoned":if(V6(this.vk,"impression")){var w,E=((w=pL(this))==null?void 0:w.abandonCommands)||[];Ha(this.P9.get(),E,this.layout.layoutId)}break;case "normal":w=((E=pL(this))==null?void 0:E.completeCommands)||[];Ha(this.P9.get(),w,this.layout.layoutId);break;case "skipped":var A;w=((A= pL(this))==null?void 0:A.skipCommands)||[];Ha(this.P9.get(),w,this.layout.layoutId)}}; g.J.rb=function(){return this.layout.layoutId}; g.J.B6=function(){return this.G}; g.J.tq=function(){if(this.Dg==="rendering"){this.vk.eR("active_view_measurable");var e,N=((e=pL(this))==null?void 0:e.activeViewMeasurableCommands)||[];Ha(this.P9.get(),N,this.layout.layoutId)}}; g.J.KG=function(){if(this.Dg==="rendering"){this.vk.eR("active_view_fully_viewable_audible_half_duration");var e,N=((e=pL(this))==null?void 0:e.activeViewFullyViewableAudibleHalfDurationCommands)||[];Ha(this.P9.get(),N,this.layout.layoutId)}}; g.J.fG=function(){if(this.Dg==="rendering"){this.vk.eR("active_view_viewable");var e,N=((e=pL(this))==null?void 0:e.activeViewViewableCommands)||[];Ha(this.P9.get(),N,this.layout.layoutId)}}; g.J.Nf=function(){if(this.Dg==="rendering"){this.vk.eR("audio_audible");var e,N=((e=pL(this))==null?void 0:e.activeViewAudioAudibleCommands)||[];Ha(this.P9.get(),N,this.layout.layoutId)}}; g.J.k6=function(){if(this.Dg==="rendering"){this.vk.eR("audio_measurable");var e,N=((e=pL(this))==null?void 0:e.activeViewAudioMeasurableCommands)||[];Ha(this.P9.get(),N,this.layout.layoutId)}}; g.J.W8=function(e){this.d7.get().W8(A6(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,e,this.position,this.Z,!1)}; g.J.onFullscreenToggled=function(e){if(this.Dg==="rendering")if(e){this.wz("fullscreen");var N,y=((N=pL(this))==null?void 0:N.fullscreenCommands)||[];Ha(this.P9.get(),y,this.layout.layoutId)}else this.wz("end_fullscreen"),N=((y=pL(this))==null?void 0:y.endFullscreenCommands)||[],Ha(this.P9.get(),N,this.layout.layoutId)}; g.J.onVolumeChange=function(){if(this.Dg==="rendering")if(this.zZ.get().isMuted()){bi(this,"mute");var e,N=((e=pL(this))==null?void 0:e.muteCommands)||[];Ha(this.P9.get(),N,this.layout.layoutId)}else bi(this,"unmute"),e=((N=pL(this))==null?void 0:N.unmuteCommands)||[],Ha(this.P9.get(),e,this.layout.layoutId)}; g.J.Yx=function(){}; g.J.D0=function(){}; g.J.ys=function(){}; g.J.Qs=function(){}; g.J.pO=function(){}; g.J.wz=function(e){this.vk.wz(e,!this.N)}; g.J.eR=function(e){this.vk.eR(e,!this.N)}; g.J.HE=function(){var e=A6(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return e===void 0?(YN("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.wP.get().HE(e)};g.b(Xl,CL);g.J=Xl.prototype;g.J.Zp=function(){}; g.J.Hm=function(){var e=this.Pk.get();e.PK===this&&(e.PK=null);this.D_.stop()}; g.J.WF=function(){this.D_.stop();CL.prototype.Jh.call(this)}; g.J.Jf=function(){dY(this);CL.prototype.N9.call(this)}; g.J.Zj=function(){return A6(this.mP().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.J.fC=function(e,N){var y=this;this.OL(e,function(){y.Dg!=="rendering_stop_requested"&&(y.Dg="rendering_stop_requested",y.layoutExitReason=N,li(y,N),y.D_.stop())})}; g.J.HY=function(){var e=Date.now(),N=e-this.Lp;this.Lp=e;this.Cj+=N;this.Cj>=this.Zj()?this.I_():(this.bV(this.Cj/1E3),Pd(this,this.Cj))}; g.J.FV=function(){}; g.J.Vb=function(){}; g.b(IV,Xl);g.J=IV.prototype;g.J.pN=function(e){if(this.Dg!=="not_rendering"){e=Fl(this,e);var N=this.zZ.get().getPresentingPlayerType()===2;this.Dg==="rendering_start_requested"?N&&$6(e)&&this.b1():N?g.FD(e,2)?YN("Receive player ended event during MediaBreak",this.W9(),this.mP()):Sp(this,e):this.Ek()}}; g.J.Fa=function(){iR5(this);H8_(this.zZ.get());this.Pk.get().PK=this;mo("pbp")||mo("pbs")||KV("pbp");mo("pbp","watch")||mo("pbs","watch")||KV("pbp",void 0,"watch");this.b1()}; g.J.GK=function(e){this.d7.get();var N=A6(e.clientMetadata,"metadata_type_ad_placement_config").kind,y=this.position===0;e=A6(e.clientMetadata,"metadata_type_linked_in_player_layout_type");e={adBreakType:oV(N),adType:mE9(e)};var w=void 0;y?N!=="AD_PLACEMENT_KIND_START"&&(w="video_to_ad"):w="ad_to_ad";jZ("ad_mbs",void 0,w);g.nV(e,w);dY(this)}; g.J.Ek=function(){this.vC()}; g.J.I_=function(){fYH(this);this.vC()}; g.b(vd,Xl);g.J=vd.prototype;g.J.pN=function(e){this.Dg!=="not_rendering"&&(e=Fl(this,e),Sp(this,e))}; g.J.Fa=function(){YN("Not used in SSAP")}; g.J.GK=function(){dY(this)}; g.J.Ek=function(){YN("Not used in SSAP")}; g.J.I_=function(){fYH(this);this.oY.xP(this.W9(),this.mP(),"normal")}; g.b(zp,vd);zp.prototype.fC=function(e,N){var y=this;this.OL(e,function(){Fe(y.K,N)&&(y.Dg="rendering_stop_requested",y.layoutExitReason=N,li(y,N),y.D_.stop())})}; zp.prototype.startRendering=function(e){c3(rY(this));$z(this,e)&&(Yz(this),this.Pk.get().PK=this)};g.b(gY,CL);g.J=gY.prototype;g.J.Ek=function(){this.vC()}; g.J.pN=function(e){if(this.Dg!=="not_rendering"){e=Fl(this,e);var N=this.zZ.get().getPresentingPlayerType()===2;this.Dg==="rendering_start_requested"?N&&$6(e)&&this.b1():!N||g.FD(e,2)?this.vC():Sp(this,e)}}; g.J.Zp=function(){A6(this.mP().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=A6(this.mP().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; g.J.Hm=function(){A6(this.mP().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.DF){var e=this.context.OP,N=this.DF,y=this.mP().layoutId;if(k6(e.wP.get(),!0)){var w={};e.g4("mccru",(w.cid=N,w.p_ac=y,w))}this.oJ.get().removeCueRange(this.DF)}this.DF=void 0;var E;(E=this.qe)==null||E.dispose();this.oE&&this.oE.dispose()}; g.J.Fa=function(e){var N=ii(this.wP.get()),y=Du(this.wP.get());if(N&&y&&!this.HE()){y=A6(e.clientMetadata,"metadata_type_preload_player_vars");var w=g.Y2(this.wP.get().C.X().experiments,"html5_preload_wait_time_secs");y&&this.oE&&this.oE.start(w*1E3)}qzH(this,e);iR5(this);N?(y=this.s2.get(),e=A6(e.clientMetadata,"metadata_type_player_vars"),y.C.loadVideoByPlayerVars(e,!1,2)):alE(this.s2.get(),A6(e.clientMetadata,"metadata_type_player_vars"));var E;(E=this.qe)==null||E.start();N||this.s2.get().C.playVideo(2)}; g.J.GK=function(){var e;(e=this.qe)==null||e.stop();this.DF="adcompletioncuerange:"+this.mP().layoutId;this.oJ.get().addCueRange(this.DF,0x7ffffffffffff,0x8000000000000,!1,this,2,2);e=this.context.OP;var N=this.DF,y=this.mP().layoutId;if(k6(e.wP.get(),!0)){var w={};e.g4("mccr",(w.cid=N,w.p_ac=y,w))}(this.adCpn=z3M(this))||YN("Media layout confirmed started, but ad CPN not set.");this.Vi.get().gS("onAdStart",this.adCpn);this.U9=Date.now()}; g.J.Zj=function(){var e;return(e=Mb(this.Hk.get(),2))==null?void 0:e.La9}; g.J.e5=function(){this.vk.wz("clickthrough")}; g.J.fC=function(e,N){var y=this;this.OL(e,function(){if(y.Dg!=="rendering_stop_requested"){y.Dg="rendering_stop_requested";y.layoutExitReason=N;li(y,N);var w;(w=y.qe)==null||w.stop();y.oE&&y.oE.stop();ZRE(y)}})}; g.J.onCueRangeEnter=function(e){if(e!==this.DF)YN("Received CueRangeEnter signal for unknown layout.",this.W9(),this.mP(),{cueRangeId:e});else{var N=this.context.OP,y=this.mP().layoutId;if(k6(N.wP.get(),!0)){var w={};N.g4("mccre",(w.cid=e,w.p_ac=y,w))}this.oJ.get().removeCueRange(this.DF);this.DF=void 0;R_(this.context.wP.get(),"html5_ssap_flush_at_stop_rendering")&&this.HE()||(e=A6(this.mP().clientMetadata,"metadata_type_video_length_seconds"),this.bV(e,!0),this.eR("complete"))}}; g.J.FV=function(e){e!=="abandoned"&&this.Vi.get().gS("onAdComplete");this.Vi.get().gS("onAdEnd",this.adCpn)}; g.J.onCueRangeExit=function(){}; g.J.Vb=function(e){this.Dg==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&e>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.zZ.get().c7(!0),this.bV(e))}; g.J.bV=function(e,N){CL.prototype.bV.call(this,e,N===void 0?!1:N);N=Date.now()-this.U9;var y=e*1E3,w={contentCpn:this.YI(),adCpn:z3M(this)};if(e>=5&&!this.w5){var E=N<1E3?0:1;CR(E,"i.k_",{metadata:w,nA:N,XN:Math.floor(y/1E3)});Ua("IKDSTAT",E);E===0&&xE9(this)&&this.Vi.get().gS("onAbnormalityDetected");this.w5=!0}this.wP.get().C.X().experiments.gP("enable_ik_opt")&&e-this.sC>=5&&(E=N=2||(this.DB.fC(this.layout,N),e=R_(this.params.context.wP.get(),"html5_ssap_pass_transition_reason")&&N==="abandoned",this.Hz()&&!e&&(R_(this.params.context.wP.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(N)||YN("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:N})),this.xk.get().finishSegmentByCpn(this.layout.layoutId, Mb(this.Hk.get(),1).clientPlaybackNonce,cd(N,this.params.context.wP))),this.zZ.get().removeListener(this),this.O8()&&Sc(this.DB.FF())&&this.lX.aJ(this.slot,this.layout,this.DB.FF().J))}; g.J.I6=function(e,N,y){Nh1({cpn:e,zo:this.Hk.get(),dS:!0});this.mP().layoutId!==e||R_(this.params.context.wP.get(),"html5_ssap_pass_transition_reason")&&y===5||(this.DB.FF().currentState<2&&(e=kz(y,this.params.context.wP),e==="error"?this.lX.xz(this.slot,this.layout,new wX("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:y},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):QO(this.T9, this.layout,e)),R_(this.params.context.wP.get(),"html5_ssap_exit_without_waiting_for_transition")||this.lX.aJ(this.slot,this.layout,this.DB.FF().J))};g.b(qb,g.x);g.J=qb.prototype;g.J.W9=function(){return this.slot}; g.J.mP=function(){return this.layout}; g.J.DZ=function(){}; g.J.jV=function(){return this.bv[this.PC]}; g.J.nE=function(){return this.PC}; g.J.WF=function(e,N){var y=this.jV();N.layoutId!==xz(y,e,N)?YN("pauseLayout for a PlayerBytes layout that is not currently active",e,N):y.WF()}; g.J.Jf=function(e,N){var y=this.jV();N.layoutId!==xz(y,e,N)?YN("resumeLayout for a PlayerBytes layout that is not currently active",e,N):y.Jf()}; g.J.Aq=function(e,N){var y=this.jV();R3s(this,e,N);GFP(y,e,N)&&this.oz(y.W9(),y.mP(),"skipped")}; g.J.wO=function(e,N){var y=this.jV();UE9(this);LQJ(y,e,N)&&(e=s4M(this,y,e,N),e!==void 0&&(this.HE()?YN("Should not happen. Should delete"):eK5(this,y.W9(),y.mP(),e)))}; g.J.Bd=function(e,N){var y=Object.assign({},Zu(this),{layoutId:N.layoutId}),w=y.layoutId,E=y.dS;if(y.OR){var A={};hG(y.zo,"wrse",(A.ec=w,A.is=E,A.ctp=b$(w),A))}va(this.Tc,e,N)}; g.J.Ql=function(e,N){var y;(y=this.jV())==null||y.Ql(e,N)}; g.J.aJ=function(e,N,y){N.layoutId===this.mP().layoutId&&(this.u8=!1,SK(this.Jz(),this));var w;(w=this.jV())==null||w.aJ(e,N,y)}; g.J.Vb=function(e){var N;(N=this.jV())==null||N.Vb(e)}; g.J.xU=function(e,N,y){this.nE()===-1&&(this.callback.Ql(this.slot,this.layout),this.PC++);var w=this.jV();w?(w.GP(e,N,y),this.HE()&&this.callback.xz(this.slot,this.layout,N,y)):YN("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.nE()),layoutId:this.mP().layoutId})}; g.J.onFullscreenToggled=function(e){var N;(N=this.jV())==null||N.onFullscreenToggled(e)}; g.J.Yx=function(e){var N;(N=this.jV())==null||N.Yx(e)}; g.J.ys=function(e){var N;(N=this.jV())==null||N.ys(e)}; g.J.onVolumeChange=function(){var e;(e=this.jV())==null||e.onVolumeChange()}; g.J.XO=function(e,N,y){z5(this.Tc,e,N,y)}; g.J.Xl=function(e){e.startRendering(e.mP())}; g.J.init=function(){var e=A6(this.mP().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");e&&(e.current=this);if(this.bv.length<1)throw new U("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.bv.length)});if(e=A6(this.mP().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))e.current=this;e=g.c(this.bv);for(var N=e.next();!N.done;N=e.next())N=N.value,N.init(),BI0(this.Tc,this.slot,N.mP()),X7F(this.Tc,this.slot,N.mP()); if(this.HE())for(this.Hk.get().addListener(this),GV3(ORM(this),this.Hk.get()),e=ORM(this),e=g.c(e),N=e.next();!N.done;N=e.next())this.t_(N.value)}; g.J.t_=function(e){var N=A6(e.clientMetadata,"metadata_type_player_vars");N?(e.layoutType!=="LAYOUT_TYPE_MEDIA"&&YN("Non-video ad contains playerVars",this.slot,e),this.s2.get().addPlayerResponseForAssociation({playerVars:N})):(e=HR_(e),this.s2.get().addPlayerResponseForAssociation({Al:e}))}; g.J.release=function(){var e=A6(this.mP().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");e&&(e.current=null);if(e=A6(this.mP().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))e.current=null;e=g.c(this.bv);for(var N=e.next();!N.done;N=e.next())N=N.value,PA5(this.Tc,this.slot,N.mP()),N.release();this.HE()&&(this.Hk.get().removeListener(this),UuH())}; g.J.OL=function(e){return e.layoutId!==this.mP().layoutId?(this.callback.xz(this.W9(),e,new wX("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.mP().layoutId+("and LayoutType: "+this.mP().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; g.J.GO=function(){this.zZ.get().addListener(this);F2(this.Jz(),this)}; g.J.pN=function(e){if(e.state.isError()){var N,y;this.xU((N=e.state.qS)==null?void 0:N.errorCode,new wX("There was a player error during this media layout.",{playerErrorCode:(y=e.state.qS)==null?void 0:y.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(N=this.jV())&&N.pN(e)}; g.J.HE=function(){var e=A6(this.W9().clientMetadata,"metadata_type_eligible_for_ssap");return e===void 0?(YN("Expected SSAP eligibility in PlayerBytes slots",this.W9(),this.mP()),!1):this.wP.get().HE(e)}; g.J.D0=function(){}; g.J.JT=function(){}; g.J.eZ=function(){}; g.J.XI=function(){}; g.J.BE=function(){}; g.J.ma=function(){}; g.J.U4=function(){}; g.J.Wf=function(){}; g.J.i6=function(){}; g.J.Lq=function(){}; g.J.sX=function(){}; g.J.Qs=function(){}; g.J.pO=function(){}; g.b(m5,qb);g.J=m5.prototype;g.J.nZ=function(e,N,y){this.oz(e,N,y)}; g.J.m0=function(e,N){this.oz(e,N,"error")}; g.J.oz=function(e,N,y){var w=this;aYE(this,e,N,y,function(){jp(w,w.nE()+1)})}; g.J.startRendering=function(e){this.OL(e)&&(this.GO(),ASE(this.d7.get()),rSH(this.wP.get())||H8_(this.zZ.get()),this.nE()===-1&&jp(this,this.nE()+1))}; g.J.fC=function(e,N){var y=this;this.u8=!0;this.nE()===this.bv.length?this.callback.aJ(this.slot,this.layout,N):(e=this.jV(),e.fC(e.mP(),N),this.d5=function(){y.callback.aJ(y.slot,y.layout,N)}); this.zZ.get().C.G5();alE(this.s2.get(),{});e=eT(this.zZ.get(),1);e.isPaused()&&!g.G(e,2)&&this.zZ.get().playVideo();this.zZ.get().removeListener(this);this.u8&&Nz_(this)}; g.J.I6=function(){}; g.J.QW=function(){}; g.J.xP=function(){}; g.b(Hd,qb);g.J=Hd.prototype;g.J.nZ=function(e,N,y){e=Object.assign({},Zu(this),{layoutId:N.layoutId,layoutExitReason:y});N=e.layoutId;y=e.layoutExitReason;var w={};hG(e.zo,"prse",(w.xc=N,w.ler=y,w.ctp=b$(N),w))}; g.J.m0=function(){YN("onSubLayoutError in SSAP")}; g.J.oz=function(){YN("exitSubLayoutAndPlayNext in SSAP")}; g.J.jV=function(){return this.G9}; g.J.nE=function(){var e=this;return this.bv.findIndex(function(N){var y;return N.mP().layoutId===((y=e.G9)==null?void 0:y.mP().layoutId)})}; g.J.Xl=function(e){$N(this.G9===void 0,"replacing another adapter");this.G9=e;e.startRendering(e.mP())}; g.J.XO=function(e,N,y){z5(this.Tc,e,N,y);var w;$N(N.layoutId===((w=this.G9)==null?void 0:w.mP().layoutId),"currentAdapter does not match exiting layout",{slot:e?"slot: "+e.slotType:"",subLayout:rh(N)})&&(this.G9=void 0)}; g.J.release=function(){qb.prototype.release.call(this);$N(this.G9===void 0,"currentAdapter is still active during release");this.G9=void 0}; g.J.Hz=function(){return this.zZ.get().getPresentingPlayerType()===2}; g.J.fC=function(e,N){function y(){KL(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(N)||YN("Composite stopRendering: Unexpected layout exit reason",this.slot,e,{layoutExitReason:N}))} function w(){this.G9&&Wd(this,this.G9,N);if(this.Hz()&&(!KL(this)||N!=="abandoned")){y.call(this);var A;var T=((A=this.Hk.get().C.getVideoData())==null?void 0:A.clientPlaybackNonce)||"";A=Mb(this.Hk.get(),1).clientPlaybackNonce;this.xk.get().finishSegmentByCpn(T,A,cd(N,this.wP))}yyE(this,N)} function E(){if(this.G9){var A=this.G9;A.FF().currentState<2&&A.fC(A.mP(),N);A=KL(this)&&N==="abandoned";this.Hz()&&!A&&(y.call(this),this.xk.get().finishSegmentByCpn(this.G9.mP().layoutId,Mb(this.Hk.get(),1).clientPlaybackNonce,cd(N,this.wP)))}} $N(e.layoutId===this.mP().layoutId,"StopRendering for wrong layout")&&Fe(this.Uf.N,N)&&(this.O8()?w.call(this):E.call(this))}; g.J.aJ=function(e,N,y){qb.prototype.aJ.call(this,e,N,y);N.layoutId===this.mP().layoutId&&this.zZ.get().removeListener(this)}; g.J.YI=function(){return Mb(this.Hk.get(),1).clientPlaybackNonce}; g.J.I6=function(e,N,y){Nh1(Object.assign({},Zu(this),{cpn:e}));if(!KL(this)||y!==5)if(this.O8()){if(this.G9&&this.G9.mP().layoutId!==N){var w=this.G9.mP().layoutId;w!==e&&YN("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:w,exitingCpn:e,enteringCpn:N});e=kz(y,this.wP);Wd(this,this.G9,e)}else this.G9&&YN("onClipExited: active layout is entering again");N===this.YI()&&Ei5(this,y)}else{if(this.G9&&this.G9.mP().layoutId===e)wwF(this,this.G9,y);else{var E;YN("Exiting cpn does not match active cpn", this.slot,(w=this.G9)==null?void 0:w.mP(),{exitingCpn:e,transitionReason:y,activeCpn:(E=this.G9)==null?void 0:E.mP().layoutId})}N===this.YI()&&(this.G9!==void 0&&(YN("active adapter is not properly exited",this.slot,this.layout,{activeLayout:rh(this.G9.mP())}),wwF(this,this.G9,y)),Ei5(this,y),yyE(this,this.Uf.N.J))}}; g.J.O8=function(){return R_(this.wP.get(),"html5_ssap_exit_without_waiting_for_transition")}; g.J.startRendering=function(e){this.OL(e)&&(e=this.Uf,$N(e.J===1,"tickStartRendering: state is not initial"),e.J=2,this.GO())}; g.J.QW=function(e){e3_(Object.assign({},Zu(this),{cpn:e}));var N=this.bv.find(function(y){return y.mP().layoutId===e}); N?(this.Uf.J!==2&&(qP3(this.EQ,this.slot.slotId),$N(this.Uf.J===2,"Expect started"),this.callback.Ql(this.slot,this.layout)),this.Xl(N),va(this.Tc,this.slot,N.mP())):Ay5(this,e)}; g.J.Aq=function(e,N){R3s(this,e,N);var y=this.jV();y?GFP(y,e,N)&&Tz_(this,"skipped"):Jy3(this,"onSkipRequested")}; g.J.wO=function(e,N){var y;a:{if(y=this.jV()){if(UE9(this),LQJ(y,e,N)&&(e=s4M(this,y,e,N),e!==void 0)){y={Kr:y,yT1:this.bv[e]};break a}}else Jy3(this,"SkipWithAdPodSkip");y=void 0}if(e=y)y=e.Kr,N=e.yT1,e=y.mP().layoutId,this.O8()?Wd(this,y,"skipped"):y.fC(y.mP(),"skipped"),y=N.mP().layoutId,this.xk.get().finishSegmentByCpn(e,y,cd("skipped",this.wP))}; g.J.Bd=function(){YN("Not used in html5_ssap_fix_layout_exit")}; g.J.pN=function(e){var N;(N=this.jV())==null||N.pN(e)}; g.J.xU=function(){YN("Not used in html5_ssap_fix_layout_exit")}; g.J.xP=function(e,N,y){var w;if(((w=this.jV())==null?void 0:w.mP().layoutId)!==N.layoutId)return void YN("requestToExitSubLayout: wrong layout");Tz_(this,y)};g.b(OV,g.x);g.J=OV.prototype;g.J.W9=function(){return this.DB.W9()}; g.J.mP=function(){return this.DB.mP()}; g.J.init=function(){var e=A6(this.mP().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");e&&(e.current=this);this.Zp()}; g.J.Zp=function(){this.DB.init()}; g.J.release=function(){var e=A6(this.mP().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");e&&(e.current=null);this.Hm()}; g.J.Hm=function(){this.DB.release()}; g.J.WF=function(){this.DB.WF()}; g.J.Jf=function(){this.DB.Jf()}; g.J.Aq=function(e,N){YN("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.W9(),this.mP(),{requestingSlot:e,requestingLayout:N})}; g.J.startRendering=function(e){e.layoutId!==this.mP().layoutId?this.callback.xz(this.W9(),e,new wX("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.mP().layoutId+("and LayoutType: "+this.mP().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.zZ.get().addListener(this),F2(this.Jz(),this),ASE(this.d7.get()),rSH(this.wP.get())||H8_(this.zZ.get()),this.DB.startRendering(e))}; g.J.fC=function(e,N){this.u8=!0;this.DB.fC(e,N);this.zZ.get().C.G5();alE(this.s2.get(),{});e=eT(this.zZ.get(),1);e.isPaused()&&!g.G(e,2)&&this.zZ.get().playVideo();this.zZ.get().removeListener(this);this.u8&&this.DB.Ek()}; g.J.Ql=function(e,N){this.DB.Ql(e,N)}; g.J.aJ=function(e,N,y){N.layoutId===this.mP().layoutId&&(this.u8=!1,SK(this.Jz(),this));this.DB.aJ(e,N,y);N.layoutId===this.mP().layoutId&&nL(this.d7.get())}; g.J.Vb=function(e){this.DB.Vb(e)}; g.J.pN=function(e){if(e.state.isError()){var N,y;this.xU((N=e.state.qS)==null?void 0:N.errorCode,new wX("There was a player error during this media layout.",{playerErrorCode:(y=e.state.qS)==null?void 0:y.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.DB.pN(e)}; g.J.xU=function(e,N,y){this.DB.GP(e,N,y)}; g.J.onFullscreenToggled=function(e){this.DB.onFullscreenToggled(e)}; g.J.Yx=function(e){this.DB.Yx(e)}; g.J.ys=function(e){this.DB.ys(e)}; g.J.onVolumeChange=function(){this.DB.onVolumeChange()}; g.J.D0=function(){}; g.J.JT=function(){}; g.J.eZ=function(){}; g.J.XI=function(){}; g.J.BE=function(){}; g.J.ma=function(){}; g.J.U4=function(){}; g.J.Wf=function(){}; g.J.i6=function(){}; g.J.Lq=function(){}; g.J.sX=function(){}; g.J.Qs=function(){}; g.J.pO=function(){};g.J=RV.prototype;g.J.W9=function(){return this.slot}; g.J.mP=function(){return this.layout}; g.J.init=function(){this.p$.get().addListener(this);this.zZ.get().addListener(this);var e=A6(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var N=A6(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.j){var y=this.p$.get().IH.slice(-1)[0];y!==void 0&&(e=y.startSecs*1E3,N=(y.startSecs+y.Vj)*1E3)}this.Ft(e,N);var w;y=(w=this.Hk.get().nk)==null?void 0:w.clientPlaybackNonce;w=this.layout.o9.adClientDataEntry;Gp(this.Pk.get(),{daiStateTrigger:{filledAdsDurationMs:N-e,contentCpn:y, adClientData:w}});var E=this.p$.get();E=ryP(E.K,e,N);E!==null&&(Gp(this.Pk.get(),{daiStateTrigger:{filledAdsDurationMs:E-e,contentCpn:y,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:w}}),this.xk.get().Qn(E,N))}; g.J.release=function(){this.Hm();this.p$.get().removeListener(this);this.zZ.get().removeListener(this)}; g.J.startRendering=function(){this.Fa();this.callback.Ql(this.slot,this.layout)}; g.J.fC=function(e,N){this.Ph(N);this.driftRecoveryMs!==null&&(UV(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round($Y0(this)-A6(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.zZ.get().C.k7()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.aJ(this.slot,this.layout,N)}; g.J.Wq=function(){return!1}; g.J.xa=function(e){var N=A6(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),y=A6(this.layout.clientMetadata,"metadata_type_layout_exit_ms");e*=1E3;if(N<=e&&e0&&iF(this.J(),N)}; g.J.eZ=function(e){this.L.delete(e.slotId);for(var N=[],y=g.c(this.Zg.values()),w=y.next();!w.done;w=y.next()){w=w.value;var E=w.trigger;E instanceof Wh&&E.triggeringSlotId===e.slotId&&N.push(w)}N.length>0&&iF(this.J(),N)}; g.J.XI=function(e){for(var N=[],y=g.c(this.Zg.values()),w=y.next();!w.done;w=y.next()){w=w.value;var E=w.trigger;E instanceof uR&&E.slotType===e.slotType&&E.J!==e.slotId&&N.push(w)}N.length>0&&iF(this.J(),N)}; g.J.BE=function(e){this.K.add(e.slotId);for(var N=[],y=g.c(this.Zg.values()),w=y.next();!w.done;w=y.next())w=w.value,w.trigger instanceof nt&&e.slotId===w.trigger.triggeringSlotId&&N.push(w);N.length>0&&iF(this.J(),N)}; g.J.ma=function(e){this.K.delete(e.slotId);this.j.add(e.slotId);for(var N=[],y=g.c(this.Zg.values()),w=y.next();!w.done;w=y.next())if(w=w.value,w.trigger instanceof QV)e.slotId===w.trigger.triggeringSlotId&&N.push(w);else if(w.trigger instanceof Ph){var E=w.trigger;e.slotId===E.slotId&&this.N.has(E.triggeringLayoutId)&&N.push(w)}N.length>0&&iF(this.J(),N)}; g.J.U4=function(e){for(var N=[],y=g.c(this.Zg.values()),w=y.next();!w.done;w=y.next())w=w.value,w.trigger instanceof mz&&e.slotId===w.trigger.triggeringSlotId&&N.push(w);N.length>0&&iF(this.J(),N)}; g.J.Wf=function(e){for(var N=[],y=g.c(this.Zg.values()),w=y.next();!w.done;w=y.next())w=w.value,w.trigger instanceof Hh&&e.slotId===w.trigger.triggeringSlotId&&N.push(w);N.length>0&&iF(this.J(),N)}; g.J.i6=function(e,N){this.Z.add(N.layoutId)}; g.J.Lq=function(e,N){this.Z.delete(N.layoutId)}; g.J.Ql=function(e,N){this.N.add(N.layoutId);for(var y=[],w=g.c(this.Zg.values()),E=w.next();!E.done;E=w.next())if(E=E.value,E.trigger instanceof dy)N.layoutId===E.trigger.triggeringLayoutId&&y.push(E);else if(E.trigger instanceof tc){var A=E.trigger;e.slotType===A.slotType&&N.layoutType===A.layoutType&&N.layoutId!==A.J&&y.push(E)}else E.trigger instanceof Ph&&(A=E.trigger,N.layoutId===A.triggeringLayoutId&&this.j.has(A.slotId)&&y.push(E));y.length>0&&iF(this.J(),y)}; g.J.aJ=function(e,N,y){this.N.delete(N.layoutId);e=[];for(var w=g.c(this.Zg.values()),E=w.next();!E.done;E=w.next())if(E=E.value,E.trigger instanceof vh&&N.layoutId===E.trigger.triggeringLayoutId&&e.push(E),E.trigger instanceof IX){var A=E.trigger;N.layoutId===A.triggeringLayoutId&&A.J.includes(y)&&e.push(E)}e.length>0&&iF(this.J(),e)}; g.J.sX=function(){}; g.J.I$=function(){this.j.clear()}; g.J.Jg=function(){};g.b(zB,g.x);zB.prototype.jw=function(e,N,y,w){if(this.Zg.has(N.triggerId))throw new U("Tried to register duplicate trigger for slot.");if(!(N instanceof Bh))throw new U("Incorrect TriggerType: Tried to register trigger of type "+N.triggerType+" in CloseRequestedTriggerAdapter");this.Zg.set(N.triggerId,new GK(e,N,y,w))}; zB.prototype.Ay=function(e){this.Zg.delete(e.triggerId)};g.b(Dz,g.x);Dz.prototype.jw=function(e,N,y,w){if(this.Zg.has(N.triggerId))throw new U("Tried to register duplicate trigger for slot.");if(!(N instanceof kA||N instanceof Zp))throw new U("Incorrect TriggerType: Tried to register trigger of type "+N.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.Zg.set(N.triggerId,new GK(e,N,y,w))}; Dz.prototype.Ay=function(e){this.Zg.delete(e.triggerId)}; Dz.prototype.I$=function(e){for(var N=[],y=N.push,w=y.apply,E=[],A=g.c(this.Zg.values()),T=A.next();!T.done;T=A.next())T=T.value,T.trigger instanceof kA&&T.trigger.Zf===e&&E.push(T);w.call(y,N,g.B(E));y=N.push;w=y.apply;E=[];A=g.c(this.Zg.values());for(T=A.next();!T.done;T=A.next())T=T.value,T.trigger instanceof Zp&&T.trigger.J!==e&&E.push(T);w.call(y,N,g.B(E));N.length&&iF(this.J(),N)}; Dz.prototype.Jg=function(e){for(var N=[],y=N.push,w=y.apply,E=[],A=g.c(this.Zg.values()),T=A.next();!T.done;T=A.next()){T=T.value;var p=T.trigger;p instanceof Zp&&p.J===e&&E.push(T)}w.call(y,N,g.B(E));N.length&&iF(this.J(),N)};g.b(g$,g.x);g.J=g$.prototype;g.J.jw=function(e,N,y,w){if(this.Zg.has(N.triggerId))throw new U("Tried to register duplicate trigger for slot.");var E="adtriggercuerange:"+N.triggerId;if(N instanceof VV)zan(this,e,N,y,w,E,N.J.start,N.J.end,N.Zf,N.visible);else if(N instanceof Xv)zan(this,e,N,y,w,E,0x7ffffffffffff,0x8000000000000,N.Zf,N.visible);else throw new U("Incorrect TriggerType: Tried to register trigger of type "+N.triggerType+" in CueRangeTriggerAdapter");}; g.J.Ay=function(e){var N=this.Zg.get(e.triggerId);N&&this.oJ.get().removeCueRange(N.cueRangeId);this.Zg.delete(e.triggerId)}; g.J.onCueRangeEnter=function(e){var N=ix_(this,e);if(N&&(N=this.Zg.get(N)))if(g.G(eT(this.zZ.get()),32))this.J.add(N.cueRangeId);else{var y=N==null?void 0:N.md.trigger;if(y instanceof VV||y instanceof Xv){if(k6(this.context.wP.get())){var w=N.md.slot,E=N.md.layout,A={};this.context.OP.g4("cre",(A.ca=N.md.category,A.tt=y.triggerType,A.st=w.slotType,A.lt=E==null?void 0:E.layoutType,A.cid=e,A))}iF(this.N(),[N.md])}}}; g.J.onCueRangeExit=function(e){(e=ix_(this,e))&&(e=this.Zg.get(e))&&this.J.delete(e.cueRangeId)}; g.J.pN=function(e){if(lp(e,16)<0){e=g.c(this.J);for(var N=e.next();!N.done;N=e.next())this.onCueRangeEnter(N.value,!0);this.J.clear()}}; g.J.JT=function(){}; g.J.eZ=function(){}; g.J.XI=function(){}; g.J.BE=function(){}; g.J.ma=function(){}; g.J.U4=function(){}; g.J.Wf=function(){}; g.J.i6=function(){}; g.J.Lq=function(){}; g.J.Ql=function(){}; g.J.aJ=function(){}; g.J.sX=function(){}; g.J.Vb=function(){}; g.J.onFullscreenToggled=function(){}; g.J.Yx=function(){}; g.J.D0=function(){}; g.J.ys=function(){}; g.J.onVolumeChange=function(){}; g.J.Qs=function(){}; g.J.pO=function(){};g.b(V8,g.x);g.J=V8.prototype; g.J.jw=function(e,N,y,w){if(this.N.has(N.triggerId)||this.K.has(N.triggerId))throw new U("Tried to re-register the trigger.");e=new GK(e,N,y,w);if(e.trigger instanceof gy)this.N.set(e.trigger.triggerId,e);else if(e.trigger instanceof zK)this.K.set(e.trigger.triggerId,e);else throw new U("Incorrect TriggerType: Tried to register trigger of type "+e.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.N.has(e.trigger.triggerId)&&e.slot.slotId===this.J&&iF(this.j(),[e])}; g.J.Ay=function(e){this.N.delete(e.triggerId);this.K.delete(e.triggerId)}; g.J.DZ=function(e){e=e.slotId;if(this.J!==e){var N=[];this.J!=null&&N.push.apply(N,g.B(DTJ(this.K,this.J)));e!=null&&N.push.apply(N,g.B(DTJ(this.N,e)));this.J=e;N.length&&iF(this.j(),N)}}; g.J.I6=function(){}; g.J.QW=function(){};g.b(fs,g.x);g.J=fs.prototype;g.J.jw=function(e,N,y,w){if(this.Zg.has(N.triggerId))throw new U("Tried to register duplicate trigger for slot.");if(!(N instanceof qp))throw new U("Incorrect TriggerType: Tried to register trigger of type "+N.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Zg.set(N.triggerId,new GK(e,N,y,w))}; g.J.Ay=function(e){this.Zg.delete(e.triggerId)}; g.J.Ql=function(){}; g.J.aJ=function(){}; g.J.JT=function(){}; g.J.eZ=function(){}; g.J.XI=function(){}; g.J.BE=function(){}; g.J.ma=function(){}; g.J.U4=function(){}; g.J.Wf=function(){}; g.J.i6=function(){}; g.J.Lq=function(){}; g.J.sX=function(){};g.b(tH,g.x);g.J=tH.prototype;g.J.sX=function(e,N){for(var y=[],w=g.c(this.Zg.values()),E=w.next();!E.done;E=w.next()){E=E.value;var A=E.trigger;A.opportunityType===e&&(A.associatedSlotId&&A.associatedSlotId!==N||y.push(E))}y.length&&iF(this.J(),y)}; g.J.jw=function(e,N,y,w){if(this.Zg.has(N.triggerId))throw new U("Tried to register duplicate trigger for slot.");if(!(N instanceof ngH))throw new U("Incorrect TriggerType: Tried to register trigger of type "+N.triggerType+" in OpportunityEventTriggerAdapter");this.Zg.set(N.triggerId,new GK(e,N,y,w))}; g.J.Ay=function(e){this.Zg.delete(e.triggerId)}; g.J.JT=function(){}; g.J.eZ=function(){}; g.J.XI=function(){}; g.J.BE=function(){}; g.J.ma=function(){}; g.J.U4=function(){}; g.J.Wf=function(){}; g.J.i6=function(){}; g.J.Lq=function(){}; g.J.Ql=function(){}; g.J.aJ=function(){};g.b(uP,g.x);g.J=uP.prototype;g.J.jw=function(e,N,y,w){e=new GK(e,N,y,w);if(N instanceof iR||N instanceof ft||N instanceof Dp||N instanceof xA||N instanceof jgH){if(this.Zg.has(N.triggerId))throw new U("Tried to register duplicate trigger for slot.");this.Zg.set(N.triggerId,e);y=y.slotId;e=this.K.has(y)?this.K.get(y):new Set;e.add(N);this.K.set(y,e)}else throw new U("Incorrect TriggerType: Tried to register trigger of type "+N.triggerType+" in PrefetchTriggerAdapter");}; g.J.Ay=function(e){this.Zg.delete(e.triggerId)}; g.J.JT=function(e){var N=e.slotId;if(this.K.has(N)){e=0;var y=new Set;N=g.c(this.K.get(N));for(var w=N.next();!w.done;w=N.next())if(w=w.value,y.add(w.triggerId),w instanceof ft&&w.breakDurationMs){e=w.breakDurationMs;break}qC(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",e,y)}}; g.J.eZ=function(){}; g.J.XI=function(){}; g.J.BE=function(){}; g.J.ma=function(){}; g.J.U4=function(){}; g.J.Wf=function(){}; g.J.i6=function(){}; g.J.Lq=function(){}; g.J.Ql=function(){}; g.J.aJ=function(){}; g.J.sX=function(){}; g.J.Wq=function(e){if(this.J){this.N&&this.N.stop();this.j&&g.NA(this.j);e=e.Vj*1E3+1E3;for(var N=0,y=g.c(this.Zg.values()),w=y.next();!w.done;w=y.next())w=w.value.trigger,w instanceof iR&&w.breakDurationMs<=e&&w.breakDurationMs>N&&(N=w.breakDurationMs);e=N;if(e>0)return qC(this,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",e,new Set,!0),qC(this,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",e,new Set,!1),!0}return!1}; g.J.xa=function(){}; g.J.I$=function(e){this.J&&this.J.contentCpn!==e?(YN("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:e,fetchInstructionsCpn:this.J.contentCpn}),Zz(this)):VR0(this)}; g.J.Jg=function(e){this.J&&this.J.contentCpn!==e&&YN("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:e,fetchInstructionsCpn:this.J.contentCpn},!0);Zz(this)}; g.J.R0=function(e){var N=this;if(this.J)YN("Unexpected multiple fetch instructions for the current content");else{this.J=e;e=tRs(e);this.N=new g.e6(function(){VR0(N)},e?e:6E5); this.N.start();this.j=new g.e6(function(){N.J&&(N.N&&(N.N.stop(),N.N.start()),gq5(N,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},fb9(this.J)); e=this.zZ.get().getCurrentTimeSec(1,!1);for(var y=g.c(this.p$.get().IH),w=y.next();!w.done;w=y.next())w=w.value,sV(this.Pk.get(),"nocache","ct."+Date.now()+";cmt."+e+";d."+w.Vj.toFixed(3)+";tw."+(w.startSecs-e)+";cid."+w.identifier+";")}}; g.J.fh=function(){g.x.prototype.fh.call(this);Zz(this)};g.b(xF,g.x);g.J=xF.prototype;g.J.jw=function(e,N,y,w){if(this.Zg.has(N.triggerId))throw new U("Tried to register duplicate trigger for slot.");if(!(N instanceof RX))throw new U("Incorrect TriggerType: Tried to register trigger of type "+N.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Zg.set(N.triggerId,new GK(e,N,y,w));e=this.J.has(N.triggeringLayoutId)?this.J.get(N.triggeringLayoutId):new Set;e.add(N);this.J.set(N.triggeringLayoutId,e)}; g.J.Ay=function(e){this.Zg.delete(e.triggerId);if(!(e instanceof RX))throw new U("Incorrect TriggerType: Tried to unregister trigger of type "+e.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var N=this.N.get(e.triggerId);N&&(N.dispose(),this.N.delete(e.triggerId));if(N=this.J.get(e.triggeringLayoutId))N.delete(e),N.size===0&&this.J.delete(e.triggeringLayoutId)}; g.J.JT=function(){}; g.J.eZ=function(){}; g.J.XI=function(){}; g.J.BE=function(){}; g.J.ma=function(){}; g.J.U4=function(){}; g.J.Wf=function(){}; g.J.i6=function(){}; g.J.Lq=function(){}; g.J.sX=function(){}; g.J.Ql=function(e,N){var y=this;if(this.J.has(N.layoutId)){e=this.J.get(N.layoutId);e=g.c(e);var w=e.next();for(N={};!w.done;N={E3:void 0},w=e.next())N.E3=w.value,w=new g.e6(function(E){return function(){var A=y.Zg.get(E.E3.triggerId);iF(y.K(),[A])}}(N),N.E3.durationMs),w.start(),this.N.set(N.E3.triggerId,w)}}; g.J.aJ=function(){};g.b(jw,g.x);jw.prototype.jw=function(e,N,y,w){if(this.Zg.has(N.triggerId))throw new U("Tried to register duplicate trigger for slot.");if(!(N instanceof hc))throw new U("Incorrect TriggerType: Tried to register trigger of type "+N.triggerType+" in VideoTransitionTriggerAdapter.");this.Zg.set(N.triggerId,new GK(e,N,y,w))}; jw.prototype.Ay=function(e){this.Zg.delete(e.triggerId)};Hu.prototype.dD=function(e){return e.kind==="AD_PLACEMENT_KIND_START"};g.b(OU,g.x);g.J=OU.prototype;g.J.logEvent=function(e){this.ZU(e)}; g.J.S1=function(e,N,y){this.ZU(e,void 0,void 0,void 0,N,void 0,void 0,void 0,N.adSlotLoggingData,void 0,void 0,y)}; g.J.A1=function(e,N,y,w){this.ZU(e,void 0,void 0,void 0,N,y?y:void 0,void 0,void 0,N.adSlotLoggingData,y?y.adLayoutLoggingData:void 0,void 0,w)}; g.J.L5=function(e,N,y,w){R_(this.wP.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+e,"trigger:",y,"slot:",N,"layout:",w);rX(this.J.get())&&this.ZU(e,void 0,void 0,void 0,N,w?w:void 0,void 0,y,N.adSlotLoggingData,w?w.adLayoutLoggingData:void 0)}; g.J.RR=function(e,N,y,w,E){this.ZU(e,N,y,w,void 0,void 0,void 0,void 0,void 0,void 0,void 0,E)}; g.J.a8=function(e,N,y,w){this.ZU("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,y,w,void 0,void 0,y.adSlotLoggingData,w?w.adLayoutLoggingData:void 0,{errorType:e,errorMessage:N})}; g.J.ZU=function(e,N,y,w,E,A,T,p,C,r,Y,M){var l=this;M=M===void 0?0:M;R_(this.wP.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+e,"slot:",E,"layout:",A,"ping:",T,"Opportunity:",{opportunityType:N,associatedSlotId:y,CXh:w,L_g:p,adSlotLoggingData:C,adLayoutLoggingData:r});try{var F=function(){if(!l.wP.get().C.X().T("html5_disable_client_tmp_logs")&&e!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){e||YN("Empty PACF event type",E,A);var S=rX(l.J.get()),k={eventType:e,eventOrder:++l.eventCount},X={}; E&&(X.slotData=Cn(S,E));A&&(X.layoutData=ogJ(S,A));T&&(X.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:T.J.serializedAdPingMetadata,pingIndex:T.index});p&&(X.triggerData=pn(p.trigger,p.category));N&&(X.opportunityData=bQ3(S,N,y,w));S={organicPlaybackContext:{contentCpn:Mb(l.Hk.get(),1).clientPlaybackNonce}};S.organicPlaybackContext.isLivePlayback=Mb(l.Hk.get(),1).Cx;var d;S.organicPlaybackContext.isMdxPlayback=(d=Mb(l.Hk.get(),1))==null?void 0:d.isMdxPlayback; var v;if((v=Mb(l.Hk.get(),1))==null?0:v.daiEnabled)S.organicPlaybackContext.isDaiContent=!0;var V;if(d=(V=Mb(l.Hk.get(),2))==null?void 0:V.clientPlaybackNonce)S.adVideoPlaybackContext={adVideoCpn:d};S&&(X.externalContext=S);k.adClientData=X;C&&(k.serializedSlotAdServingData=C.serializedSlotAdServingDataEntry);r&&(k.serializedAdServingData=r.serializedAdServingDataEntry);Y&&(k.errorInfo=Y);g.$$("adsClientStateChange",{adsClientEvent:k})}}; M&&M>0?g.e1(g.yK(),function(){return F()},M):F()}catch(S){R_(this.wP.get(),"html5_log_pacf_logging_errors")&&g.e1(g.yK(),function(){YN(S instanceof Error?S:String(S),E,A,{pacf_message:"exception during pacf logging"})})}};var $gw=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.b(Rc,OU);g.J=Rc.prototype; g.J.S1=function(e,N,y){OU.prototype.S1.call(this,e,N,y);k6(this.wP.get())&&(y={},this.context.OP.g4("pacf",(y.et=e,y.st=N.slotType,y.si=N.slotId,y)))}; g.J.A1=function(e,N,y,w){var E=$gw.has(e);OU.prototype.A1.call(this,e,N,y,w);k6(this.wP.get(),E)&&(w={},this.context.OP.g4("pacf",(w.et=e,w.st=N.slotType,w.si=N.slotId,w.lt=y==null?void 0:y.layoutType,w.li=y==null?void 0:y.layoutId,w.p_ac=y==null?void 0:y.layoutId,w)))}; g.J.RR=function(e,N,y,w,E){OU.prototype.RR.call(this,e,N,y,w,E);k6(this.wP.get())&&(y={},this.context.OP.g4("pacf",(y.et=e,y.ot=N,y.ss=w==null?void 0:w.length,y)))}; g.J.L5=function(e,N,y,w){OU.prototype.L5.call(this,e,N,y,w);if(k6(this.wP.get())){var E={};this.context.OP.g4("pacf",(E.et=e,E.tt=y.trigger.triggerType,E.tc=y.category,E.st=N.slotType,E.si=N.slotId,E.lt=w==null?void 0:w.layoutType,E.li=w==null?void 0:w.layoutId,E.p_ac=w==null?void 0:w.layoutId,E))}}; g.J.a8=function(e,N,y,w){OU.prototype.a8.call(this,e,N,y,w);if(k6(this.wP.get(),!0)){var E={};this.context.OP.g4("perror",(E.ert=e,E.erm=N,E.st=y.slotType,E.si=y.slotId,E.lt=w==null?void 0:w.layoutType,E.li=w==null?void 0:w.layoutId,E.p_ac=w==null?void 0:w.layoutId,E))}}; g.J.ZU=function(e,N,y,w,E,A,T,p,C,r,Y){if(g.I_(this.wP.get().C.X())){var M=this.wP.get();M=g.Y2(M.C.X().experiments,"H5_async_logging_delay_ms")}else M=void 0;OU.prototype.ZU.call(this,e,N,y,w,E,A,T,p,C,r,Y,M)};GB.prototype.clear=function(){this.J.clear()};sU.prototype.resolve=function(e){UU(this,e)}; sU.prototype.reject=function(e){Ls(this,e)}; sU.prototype.state=function(){return this.currentState==="done"?{state:"done",result:this.result}:this.currentState==="fail"?{state:"fail",error:this.error}:{state:"wait"}}; sU.prototype.wait=function(){var e=this;return function y(){return MM_(y,function(w){if(w.J==1)return g.kJ(w,2),g.D(w,{jk:e},4);if(w.J!=2)return w.return(w.N);g.P5(w);return g.d_(w,0)})}()}; var A__=Hm(function(e){return ac(e)?e instanceof sU:!1});var pA=window.tgh||"pt-BR";YB.prototype.JE=function(e){this.client=e}; YB.prototype.J=function(){this.clear();this.csn=g.It()}; YB.prototype.clear=function(){this.K.clear();this.N.clear();this.j.clear();this.csn=null};lm.prototype.JE=function(e){g.NR(Mc().JE).bind(Mc())(e)}; lm.prototype.clear=function(){g.NR(Mc().clear).bind(Mc())()};g.J=FB.prototype;g.J.JE=function(e){this.client=e}; g.J.oW=function(e,N){var y=this;N=N===void 0?{}:N;g.NR(function(){var w,E,A,T=((w=g.m(e==null?void 0:e.commandMetadata,g.bW))==null?void 0:w.rootVe)||((E=g.m(e==null?void 0:e.commandMetadata,zXF))==null?void 0:(A=E.screenVisualElement)==null?void 0:A.uiType);if(T){w=g.m(e==null?void 0:e.commandMetadata,RX5);if(w==null?0:w.parentTrackingParams){var p=g.XV(w.parentTrackingParams);if(w.parentCsn)var C=w.parentCsn}else N.clickedVisualElement?p=N.clickedVisualElement:e.clickTrackingParams&&(p=g.XV(e.clickTrackingParams)); a:{w=g.m(e,g.m0);E=g.m(e,nw5);if(w){if(E=ssP(w,"VIDEO")){w={token:E,videoId:w.videoId};break a}}else if(E&&(w=ssP(E,"PLAYLIST"))){w={token:w,playlistId:E.playlistId};break a}w=void 0}N=Object.assign({},{cttAuthInfo:w,parentCsn:C},N);if(g.Xj("expectation_logging")){var r;N.loggingExpectations=((r=g.m(e==null?void 0:e.commandMetadata,zXF))==null?void 0:r.loggingExpectations)||void 0}ox(y,T,p,N)}else g.uA(new g.Gh("Error: Trying to create a new screen without a rootVeType",e))})()}; g.J.clickCommand=function(e,N,y){e=e.clickTrackingParams;y=y===void 0?0:y;e?(y=g.It(y===void 0?0:y))?(AgP(this.client,y,g.XV(e),N),N=!0):N=!1:N=!1;return N}; g.J.stateChanged=function(e,N,y){this.visualElementStateChanged(g.XV(e),N,y===void 0?0:y)}; g.J.visualElementStateChanged=function(e,N,y){y=y===void 0?0:y;y===0&&this.N.has(y)?this.U.push([e,N]):waF(this,e,N,y)};kB.prototype.fetch=function(e,N,y){var w=this,E=TX5(e,N,y);return new Promise(function(A,T){function p(){if(y==null?0:y.KI)try{var r=w.handleResponse(e,E.status,E.response,y);A(r)}catch(Y){T(Y)}else A(w.handleResponse(e,E.status,E.response,y))} E.onerror=p;E.onload=p;var C;E.send((C=N.body)!=null?C:null)})}; kB.prototype.handleResponse=function(e,N,y,w){y=y.replace(")]}'","");try{var E=JSON.parse(y)}catch(A){g.uA(new g.Gh("JSON parsing failed after XHR fetch",e,N,y));if((w==null?0:w.KI)&&y)throw new g.ye(1,"JSON parsing failed after XHR fetch");E={}}N!==200&&(g.uA(new g.Gh("XHR API fetch failed",e,N,y)),E=Object.assign({},E,{errorMetadata:{status:N}}));return E};B1.getInstance=function(){var e=g.nM("ytglobal.storage_");e||(e=new B1,g.jM("ytglobal.storage_",e));return e}; B1.prototype.estimate=function(){var e,N,y;return g.f(function(w){e=navigator;return((N=e.storage)==null?0:N.estimate)?w.return(e.storage.estimate()):((y=e.webkitTemporaryStorage)==null?0:y.queryUsageAndQuota)?w.return(J6_()):w.return()})}; g.jM("ytglobal.storageClass_",B1);Cl.prototype.iR=function(e){this.handleError(e)}; Cl.prototype.logEvent=function(e,N){switch(e){case "IDB_DATA_CORRUPTED":g.Xj("idb_data_corrupted_killswitch")||this.J("idbDataCorrupted",N);break;case "IDB_UNEXPECTEDLY_CLOSED":this.J("idbUnexpectedlyClosed",N);break;case "IS_SUPPORTED_COMPLETED":g.Xj("idb_is_supported_completed_killswitch")||this.J("idbIsSupportedCompleted",N);break;case "QUOTA_EXCEEDED":CF5(this,N);break;case "TRANSACTION_ENDED":this.K&&Math.random()<=.1&&this.J("idbTransactionEnded",N);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":e= Object.assign({},N,{hasWindowUnloaded:this.N}),this.J("idbTransactionAborted",e)}};var mg={},KzP=g.yJ("yt-player-local-media",{Ed:(mg.index={Bs:2},mg.media={Bs:2},mg.captions={Bs:5},mg),shared:!1,upgrade:function(e,N){N(2)&&(g.g0(e,"index"),g.g0(e,"media"));N(5)&&g.g0(e,"captions");N(6)&&(VK(e,"metadata"),VK(e,"playerdata"))}, version:5});var Yr5={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},Hj;a:{var KF=g.zw();KF=KF.toLowerCase();if(g.B_(KF,"android")){var M4f=KF.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(M4f){var ldw=parseFloat(M4f[1]);if(ldw<100){Hj=ldw;break a}}var FCM=KF.match("("+Object.keys(Yr5).join("|")+")");Hj=FCM?Yr5[FCM[0]]:0}else Hj=void 0}var Xn=Hj,Bg=Xn>=0;var WL_=window;var r69=rR(function(){var e,N;return(N=(e=window).matchMedia)==null?void 0:N.call(e,"(prefers-reduced-motion: reduce)").matches});var P1;g.XB=new zj;P1=0;var dQ={nU:function(e,N){e.splice(0,N)}, Te:function(e,N){var y=e[0];e[0]=e[N%e.length];e[N%e.length]=y}, gh:function(e){e.reverse()}};var Av0=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var QY=bnJ()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.Um?!0:!1;var mb5={y1h:"adunit",ejt:"detailpage",Jol:"editpage",kxh:"embedded",oI9:"leanback",U3h:"previewpage",eDZ:"profilepage",F5:"unplugged",nKg:"playlistoverview",T2P:"sponsorshipsoffer",cgh:"shortspage",m2g:"handlesclaiming",pcP:"immersivelivepage",nBq:"creatormusic",FWk:"immersivelivepreviewpage",A1l:"admintoolyurt",zM1:"shortsaudiopivot",HjW:"consumption"};var Wj,Srf,ib;Wj={};g.t$=(Wj.STOP_EVENT_PROPAGATION="html5-stop-propagation",Wj.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",Wj.IV_DRAWER_OPEN="ytp-iv-drawer-open",Wj.MAIN_VIDEO="html5-main-video",Wj.VIDEO_CONTAINER="html5-video-container",Wj.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",Wj.HOUSE_BRAND="house-brand",Wj);Srf={};ib=(Srf.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",Srf.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",Srf);var dx3={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var iv1={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},DGF={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"},yJF={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var reF={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.W1.prototype.getLanguageInfo=function(){return this.Vl}; g.W1.prototype.getXtags=function(){if(!this.xtags){var e=this.id.split(";");e.length>1&&(this.xtags=e[1])}return this.xtags}; g.W1.prototype.toString=function(){return this.Vl.name}; g.W1.prototype.getLanguageInfo=g.W1.prototype.getLanguageInfo;Oj.prototype.Bw=function(e){return this.N===e.N&&this.J===e.J&&this.K===e.K&&this.reason===e.reason&&(!Gm||this.JM===e.JM)}; Oj.prototype.isLocked=function(){return this.K&&!!this.N&&this.N===this.J}; Oj.prototype.compose=function(e){if(e.K&&Uj(e))return f3;if(e.K||Uj(this))return e;if(this.K||Uj(e))return this;var N=this.N&&e.N?Math.max(this.N,e.N):this.N||e.N,y=this.J&&e.J?Math.min(this.J,e.J):this.J||e.J;N=Math.min(N,y);var w=0;Gm&&(w=this.JM!==0&&e.JM!==0?Math.min(this.JM,e.JM):this.JM===0?e.JM:this.JM);return Gm&&N===this.N&&y===this.J&&w===this.JM||!Gm&&N===this.N&&y===this.J?this:Gm?new Oj(N,y,!1,y===this.J&&w===this.JM?this.reason:e.reason,w):new Oj(N,y,!1,y===this.J?this.reason:e.reason)}; Oj.prototype.j=function(e){return!e.video||Gm&&this.JM!==0&&this.JM=0}; g.J.f9=function(){var e=this.segments[this.segments.length-1];return e?e.endTime:NaN}; g.J.Ti=function(){return this.segments[0].startTime}; g.J.Tz=function(){return this.segments.length}; g.J.mN=function(){return 0}; g.J.zI=function(e){return(e=this.uw(e))?e.Ch:-1}; g.J.tK=function(e){return(e=this.o8(e))?e.sourceURL:""}; g.J.getStartTime=function(e){return(e=this.o8(e))?e.startTime:0}; g.J.vU=function(e){return this.getStartTime(e)+this.getDuration(e)}; g.J.jP=N3(1);g.J.isLoaded=function(){return this.segments.length>0}; g.J.o8=function(e){if(this.J&&this.J.Ch===e)return this.J;e=g.T7(this.segments,new hi(e,0,0,0,""),function(N,y){return N.Ch-y.Ch}); return this.J=e>=0?this.segments[e]:null}; g.J.uw=function(e){if(this.J&&this.J.startTime<=e&&e=0?this.segments[e]:this.segments[Math.max(0,-e-2)]}; g.J.append=function(e){if(e.length)if(e=g.eE(e),this.segments.length){var N=this.segments.length?g.Kq(this.segments).endTime:0,y=e[0].Ch-this.vY();y>1&&sPJ(this.segments);for(y=y>0?0:-y+1;ye.Ch&&this.index.Jx()<=e.Ch+1}; g.J.update=function(e,N,y){this.index.append(e);AGH(this.index,y);e=this.index;e.N=N;e.K="update"}; g.J.Yz=function(){return this.hw()?!0:oi.prototype.Yz.call(this)}; g.J.Tn=function(e,N){var y=this.index.tK(e),w=this.index.getStartTime(e),E=this.index.getDuration(e),A;N?E=A=0:A=this.info.JM>0?this.info.JM*E:1E3;return new iH([new Bx(3,this,void 0,"liveCreateRequestInfoForSegment",e,w,E,0,A,!N)],y)}; g.J.f1=function(){return this.hw()?0:this.initRange.length}; g.J.ix=function(){return!1};qZ.prototype.update=function(e){var N=void 0;this.N&&(N=this.N);var y=new qZ,w=Array.from(e.getElementsByTagName("S"));if(w.length){var E=+td(e,"timescale")||1,A=(+w[0].getAttribute("t")||0)/E,T=+td(e,"startNumber")||0;y.j=A;var p=N?N.startSecs+N.Vj:0,C=Date.parse(s29(td(e,"yt:segmentIngestTime")))/1E3;y.L=e.parentElement.tagName==="SegmentTemplate";y.L&&(y.G=td(e,"media"));e=N?T-N.Ch:1;y.Z=e>0?0:-e+1;e=g.c(w);for(w=e.next();!w.done;w=e.next()){w=w.value;for(var r=+w.getAttribute("d")/E,Y=(+w.getAttribute("yt:sid")|| 0)/E,M=+w.getAttribute("r")||0,l=0;l<=M;l++)if(N&&T<=N.Ch)T++;else{var F=new U55(T,p,r,C+Y,A);y.J.push(F);var S=w;var k=E,X=F.startSecs;F=S.getAttribute("yt:cuepointTimeOffset");var d=S.getAttribute("yt:cuepointDuration");if(F&&d){F=Number(F);X=-F/k+X;k=Number(d)/k;d=S.getAttribute("yt:cuepointContext")||null;var v=S.getAttribute("yt:cuepointIdentifier")||"";S=S.getAttribute("yt:cuepointEvent")||"";S=new iN(X,k,d,v,bmF[S]||"unknown",F)}else S=null;S&&y.K.push(S);T++;p+=r;A+=r;C+=r+Y}}y.J.length&& (y.N=g.Kq(y.J))}this.Z=y.Z;this.N=y.N||this.N;g.Nd(this.J,y.J);g.Nd(this.K,y.K);this.L=y.L;this.G=y.G;this.j===-1&&(this.j=y.getStreamTimeOffset())}; qZ.prototype.getStreamTimeOffset=function(){return this.j===-1?0:this.j};g.b(xa,g.c$);g.J=xa.prototype;g.J.Mz=function(){return this.eV}; g.J.VI=function(e,N){e=jl(this,e);return e>=0&&(N||!this.segments[e].pending)}; g.J.Jx=function(){return this.mA?this.segments.length?this.uw(this.Ti()).Ch:-1:g.c$.prototype.Jx.call(this)}; g.J.Ti=function(){if(this.Ta)return 0;if(!this.mA)return g.c$.prototype.Ti.call(this);if(!this.segments.length)return 0;var e=Math.max(g.Kq(this.segments).endTime-this.pI,0);return this.L$>0&&this.uw(e).Ch0)return this.M3/1E3;if(!this.segments.length)return g.c$.prototype.f9.call(this);var e=this.vY();if(!this.mA||e<=this.segments[this.segments.length-1].Ch)e=this.segments[this.segments.length-1];else{var N=this.segments[this.segments.length-1];e=new hi(e,Math.max(0,N.startTime-(N.Ch-e)*this.eV),this.eV,0,"sq/"+e,void 0,void 0,!0)}return this.Ta?Math.min(this.pI,e.endTime):e.endTime}; g.J.Tz=function(){return this.mA?this.segments.length?this.vY()-this.Jx()+1:0:g.c$.prototype.Tz.call(this)}; g.J.vY=function(){var e=Math.min(this.ZK,Math.max(g.c$.prototype.vY.call(this),this.B2)),N=this.pI*1E3;N=this.M3>0&&this.M30&&this.B2>0&&!N&&(N=this.uw(this.pI))&&(e=Math.min(N.Ch-1,e));return e}; g.J.IX=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.J.Co=function(e){var N=jl(this,e.Ch);if(N>=0)this.segments[N]=e;else if(this.segments.splice(-(N+1),0,e),this.TR&&e.Ch%(300/this.eV)===0){var y=this.segments[0].Ch,w=Math.floor(this.TR/this.eV);e=e.Ch-w;N=-(N+1)-w;N>0&&e>y&&(this.segments=this.segments.slice(N))}}; g.J.Ms=function(){return this.B2}; g.J.xf=function(e){return Z$?!this.N&&e>=0&&this.vY()<=e:g.c$.prototype.xf.call(this,e)}; g.J.uw=function(e){if(!this.mA)return g.c$.prototype.uw.call(this,e);if(!this.segments.length)return null;var N=this.segments[this.segments.length-1];if(e=N.endTime)N=N.Ch+Math.floor((e-N.endTime)/this.eV+1);else{N=JO(this.segments,function(w){return e=w.endTime?1:0}); if(N>=0)return this.segments[N];var y=-(N+1);N=this.segments[y-1];y=this.segments[y];N=Math.floor((e-N.endTime)/((y.startTime-N.endTime)/(y.Ch-N.Ch-1))+1)+N.Ch}return this.o8(N)}; g.J.o8=function(e){if(!this.mA)return g.c$.prototype.o8.call(this,e);if(!this.segments.length)return null;var N=jl(this,e);if(N>=0)return this.segments[N];var y=-(N+1);N=this.eV;if(y===0)var w=Math.max(0,this.segments[0].startTime-(this.segments[0].Ch-e)*N);else y===this.segments.length?(w=this.segments[this.segments.length-1],w=w.endTime+(e-w.Ch-1)*N):(w=this.segments[y-1],N=this.segments[y],N=(N.startTime-w.endTime)/(N.Ch-w.Ch-1),w=w.endTime+(e-w.Ch-1)*N);return new hi(e,w,N,0,"sq/"+e,void 0,void 0, !0)}; var Z$=!1;g.b(n1,f1);g.J=n1.prototype;g.J.by=function(){return!0}; g.J.Yz=function(){return!0}; g.J.L2=function(e){return this.SJ()&&e.K&&!e.j||!e.J.index.xf(e.Ch)}; g.J.p_=function(){}; g.J.Od=function(e,N){return typeof e!=="number"||isFinite(e)?f1.prototype.Od.call(this,e,N===void 0?!1:N):new iH([new Bx(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.j1,void 0,this.j1*this.info.JM)],"")}; g.J.Tn=function(e,N){var y=y===void 0?!1:y;if(this.index.VI(e))return f1.prototype.Tn.call(this,e,N);var w=this.index.getStartTime(e),E=Math.round(this.j1*this.info.JM),A=this.j1;N&&(A=E=0);return new iH([new Bx(y?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",e,w,A,void 0,E,!N)],e>=0?"sq/"+e:"")};g.b(Qt,oi);g.J=Qt.prototype;g.J.I8=function(){return!1}; g.J.SJ=function(){return!1}; g.J.by=function(){return!1}; g.J.p_=function(){return new iH([new Bx(1,this,void 0,"otfInit")],this.L)}; g.J.rh=function(){return null}; g.J.oF=function(e){this.L2(e);return TO9(this,Ii(e),!1)}; g.J.Od=function(e,N){N=N===void 0?!1:N;e=this.index.zI(e);N&&(e=Math.min(this.index.vY(),e+1));return TO9(this,e,!0)}; g.J.Gm=function(e){e.info.type===1&&(this.J||(this.J=B8(e.J)),e.N&&e.N.uri==="http://youtube.com/streaming/otf/durations/112015"&&JXF(this,e.N))}; g.J.L2=function(e){return e.K===0?!0:this.index.vY()>e.Ch&&this.index.Jx()<=e.Ch+1}; g.J.f1=function(){return 0}; g.J.ix=function(){return!1};mv.prototype.iB=function(){return this.J.iB()};g.J=g.G4.prototype;g.J.VI=function(e){return e<=this.vY()}; g.J.mN=function(e){return this.offsets[e]}; g.J.getStartTime=function(e){return this.startTicks[e]/this.J}; g.J.vU=function(e){return this.getStartTime(e)+this.getDuration(e)}; g.J.jP=N3(0);g.J.OY=function(){return NaN}; g.J.getDuration=function(e){e=this.zC(e);return e>=0?e/this.J:-1}; g.J.zC=function(e){return e+1=0}; g.J.f9=function(){return this.N?this.startTicks[this.count]/this.J:NaN}; g.J.Ti=function(){return 0}; g.J.Tz=function(){return this.count}; g.J.tK=function(){return""}; g.J.zI=function(e){e=g.T7(this.startTicks.subarray(0,this.count),e*this.J);return e>=0?e:Math.max(0,-e-2)}; g.J.isLoaded=function(){return this.vY()>=0}; g.J.rd=function(e,N){if(e>=this.vY())return 0;var y=0;for(N=this.getStartTime(e)+N;ethis.getStartTime(e);e++)y=Math.max(y,S31(this,e)/this.getDuration(e));return y}; g.J.resize=function(e){e+=2;var N=this.offsets;this.offsets=new Float64Array(e+1);var y=this.startTicks;this.startTicks=new Float64Array(e+1);for(e=0;e0&&e&&(y=y.range.end+1,e=Math.min(e,this.info.contentLength-y),e>0&&w.push(new Bx(4,this,cx(y,e),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,N)));return new iH(w)}; g.J.Gm=function(e){if(e.info.type===1){if(this.J)return;this.J=B8(e.J)}else if(e.info.type===2){if(this.L||this.index.vY()>=0)return;if(g.R2(this.info)){var N=this.index,y=e.iB();e=e.info.range.start;var w=g.ti(y,0,1936286840);y=o69(w);N.J=y.timescale;var E=y.Zh;N.offsets[0]=y.N4+e+w.size;N.startTicks[0]=E;N.N=!0;e=y.vx.length;for(w=0;w0&&e===A[0].j8)for(e=0;e=N+y)break}E.length||g.t0(new g.Gh("b189619593",""+e,""+N,""+y));return new iH(E)}; g.J.Hb=function(e){for(var N=this.y5(e.info),y=e.info.range.start+e.info.N,w=[],E=0;E=this.index.mN(y+1);)y++;return this.eS(y,N,e.K).QB}; g.J.L2=function(e){e.eY();return this.Yz()?!0:e.range.end+1this.info.contentLength&&(N=new bH(N.start,this.info.contentLength-1)),new iH([new Bx(4,e.J,N,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,e.clipId)]);e.type===4&&(e=this.y5(e),e=e[e.length-1]);var y=0,w=e.range.start+e.N+e.K;e.type===3&&(e.eY(),y=e.Ch,w===e.range.end+1&&(y+=1));return this.eS(y,w,N)}; g.J.oF=function(){return null}; g.J.Od=function(e,N,y){N=N===void 0?!1:N;e=this.index.zI(e);N&&(e=Math.min(this.index.vY(),e+1));return this.eS(e,this.index.mN(e),0,y)}; g.J.I8=function(){return!0}; g.J.SJ=function(){return!0}; g.J.by=function(){return!1}; g.J.f1=function(){return this.indexRange.length+this.initRange.length}; g.J.ix=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var RH={},fon=(RH.COLOR_PRIMARIES_BT709="bt709",RH.COLOR_PRIMARIES_BT2020="bt2020",RH.COLOR_PRIMARIES_UNKNOWN=null,RH.COLOR_PRIMARIES_UNSPECIFIED=null,RH),GA={},bh1=(GA.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",GA.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",GA.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",GA.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",GA.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,GA.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,GA);g.sM.prototype.getName=function(){return this.name}; g.sM.prototype.getId=function(){return this.id}; g.sM.prototype.getIsDefault=function(){return this.isDefault}; g.sM.prototype.toString=function(){return this.name}; g.sM.prototype.getName=g.sM.prototype.getName;g.sM.prototype.getId=g.sM.prototype.getId;g.sM.prototype.getIsDefault=g.sM.prototype.getIsDefault;var BO_=/action_display_post/;var XI5,NX,yY;g.b(wt,g.pT);g.J=wt.prototype;g.J.isLoading=function(){return this.state===1}; g.J.Q_=function(){return this.state===3}; g.J.i$P=function(e){var N=e.getElementsByTagName("Representation");if(e.getElementsByTagName("SegmentList").length>0||e.getElementsByTagName("SegmentTemplate").length>0){this.Cx=this.N=!0;this.timeline||(this.timeline=new ez9);EHH(this.timeline,e);this.publish("refresh");for(e=0;e=0?Y=hd(l):M=M+"?range="+l}C.call(p,new hi(r.Ch,r.startSecs,r.Vj,r.J,M,Y,r.N))}w=E}y.update(w,this.isLive,this.Wk)}AXE(this.timeline);return!0}this.duration=Lu1(td(e,"mediaPresentationDuration")); a:{for(e=0;e0))return this.ra()-e}}e=this.J;for(var N in e){var y=e[N].index;if(y.isLoaded()&&!Ug(e[N].info))return y.Ti()}return 0}; g.J.getStreamTimeOffset=function(){return this.G}; g.J.OY=function(e){for(var N in this.J){var y=this.J[N].index;if(y.isLoaded()){var w=y.zI(e),E=y.OY(w);if(E)return E+e-y.getStartTime(w)}}return NaN}; var oI=null,hfw,b2=!((hfw=navigator.mediaCapabilities)==null||!hfw.decodingInfo),j8J={commentary:1,alternate:2,dub:3,main:4};var hj=new Set,hm=new Map;BU.prototype.clone=function(e){return new BU(this.flavor,e,this.N,this.experiments)}; BU.prototype.N7=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; BU.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 cKX={},VY=(cKX.playready=["com.youtube.playready","com.microsoft.playready"],cKX.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],cKX),UO={},V5H=(UO.widevine="DRM_SYSTEM_WIDEVINE",UO.fairplay="DRM_SYSTEM_FAIRPLAY",UO.playready="DRM_SYSTEM_PLAYREADY",UO),LF={},ky0=(LF.widevine=1,LF.fairplay=2,LF.playready=3,LF);tm.prototype.jW=function(e,N){N=N===void 0?1:N;this.XA+=N;this.N+=e;e/=N;for(var y=0;y0)w+="."+fC[E].toFixed(0)+"_"+y.J[E].toFixed(0);else break;y=w}y&&(e[N]=y)}this.J=new ey0;return e}; g.J.toString=function(){return""};g.J=TYn.prototype;g.J.isActive=function(){return!1}; g.J.TQ=function(){}; g.J.Jw=function(){}; g.J.tU=function(e,N){return N}; g.J.X0=function(){}; g.J.x$=function(){}; g.J.le=function(e,N){return N()}; g.J.A6=function(){return{}}; g.J.toString=function(){return""};var sO,BaM,XWT,Pc5,dgk,Idw,aH,gH,W0,Qb9,jI;sO=new TYn;BaM=!!+sa("html5_enable_profiler");XWT=!!+sa("html5_onesie_enable_profiler");Pc5=!!+sa("html5_offline_encryption_enable_profiler");dgk=!!+sa("html5_performance_impact_profiling_timer_ms");Idw=!!+sa("html5_drm_enable_profiler");aH=BaM||XWT||Pc5||dgk||Idw?new y__:sO;g.j8=BaM?aH:sO;gH=XWT?aH:sO;W0=Pc5?aH:sO;Qb9=dgk?aH:sO;jI=Idw?aH:sO;var x_;g.b(qX,g.x); qX.prototype.initialize=function(e,N){for(var y=this,w=g.c(Object.keys(e)),E=w.next();!E.done;E=w.next()){E=g.c(e[E.value]);for(var A=E.next();!A.done;A=E.next())if(A=A.value,A.BG)for(var T=g.c(Object.keys(A.BG)),p=T.next();!p.done;p=T.next()){var C=p.value;p=C;C=VY[C];!C&&this.T("html5_enable_vp9_fairplay")&&p==="fairplay"&&(C=["com.youtube.fairplay.sbdl"]);if(C){C=g.c(C);for(var r=C.next();!r.done;r=C.next())r=r.value,this.K[r]=this.K[r]||new BU(p,r,A.BG[p],this.Ot.experiments),this.J[p]=this.J[p]|| {},this.J[p][A.mimeType]=!0}}}Ry()&&(this.K["com.youtube.fairplay"]=new BU("fairplay","com.youtube.fairplay","",this.Ot.experiments),this.T("html5_enable_vp9_fairplay")||(this.J.fairplay=this.J.fairplay||{},this.J.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.J.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.N=aoM(N,this.useCobaltWidevine,this.T("html5_enable_safari_fairplay"),this.T("html5_enable_vp9_fairplay")).filter(function(Y){return!!y.K[Y]})}; qX.prototype.T=function(e){return this.Ot.experiments.gP(e)};var vbV={"":"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"};MpP.prototype.T=function(e){return this.experiments.gP(e)};var K5M={RED:"red",FjB:"white"};lu1.prototype.gP=function(e){e=this.flags[e];JSON.stringify(e);return e==="true"};var oz5=Promise.resolve(),kp3=window.queueMicrotask?window.queueMicrotask.bind(window):bLF;HU.prototype.canPlayType=function(e,N){e=e.canPlayType?e.canPlayType(N):!1;Gv?e=e||zfV[N]:Xn===2.2?e=e||im5[N]:WL()&&(e=e||Dgw[N]);return!!e}; HU.prototype.isTypeSupported=function(e){return this.Ng?window.cast.receiver.platform.canDisplayType(e):Dr(e)}; var im5={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},Dgw={"application/x-mpegURL":"maybe"},zfV={"application/x-mpegURL":"maybe"};g.b(GE,g.pT);GE.prototype.add=function(e,N){if(!this.items[e]&&(N.Ns||N.Cb||N.Ge)){var y=this.items,w=N;Object.isFrozen&&!Object.isFrozen(N)&&(w=Object.create(N),Object.freeze(w));y[e]=w;this.publish("vast_info_card_add",e)}}; GE.prototype.remove=function(e){var N=this.get(e);delete this.items[e];return N}; GE.prototype.get=function(e){return this.items[e]||null}; GE.prototype.isEmpty=function(){return g.v4(this.items)};g.b(Uh,g.kd);Uh.prototype.J=function(e,N){return g.kd.prototype.J.call(this,e,N)}; Uh.prototype.N=function(e,N,y){var w=this;return g.f(function(E){return E.J==1?g.D(E,g.kd.prototype.N.call(w,e,N,y),2):E.return(E.N)})}; g.b(LC,g.BM);LC.prototype.encrypt=function(e,N){return g.BM.prototype.encrypt.call(this,e,N)};var aI;eV.prototype.add=function(e){if(this.pos+20>this.data.length){var N=new Uint8Array(this.data.length*2);N.set(this.data);this.data=N}for(;e>31;)this.data[this.pos++]=aI[(e&31)+32],e>>=5;this.data[this.pos++]=aI[e|0]}; eV.prototype.jY=function(){return g.IR(this.data.subarray(0,this.pos))}; eV.prototype.reset=function(){this.pos=0};yy.prototype.Kj=function(e,N){var y=Math.pow(this.alpha,e);this.J=N*(1-y)+y*this.J;this.N+=e}; yy.prototype.AT=function(){return this.J/(1-Math.pow(this.alpha,this.N))};ww.prototype.Kj=function(e,N){for(var y=0;y<10;y++){var w=this.J[y],E=w+(y===0?e:0),A=1*Math.pow(2,y);if(E<=A)break;w=Math.min(1,(E-A*.5)/w);for(E=0;E<16;E++)A=this.values[y*16+E]*w,this.values[(y+1)*16+E]+=A,this.J[y+1]+=A,this.values[y*16+E]-=A,this.J[y]-=A}w=y=0;E=8192;N>8192&&(y=Math.ceil(Math.log(N/8192)/Math.log(2)),w=8192*Math.pow(2,y-1),E=w*2);y+2>16?this.values[15]+=e:(N=(N-w)/(E-w),this.values[y]+=e*(1-N),this.values[y+1]+=e*N);this.J[0]+=e}; ww.prototype.AT=function(){var e=e===void 0?this.N:e;var N=N===void 0?.02:N;var y=y===void 0?.98:y;for(var w=this.K,E=0;E<16;E++)w[E]=this.values[E];E=this.J[0];for(var A=1;A<11;A++){var T=this.J[A];if(T===0)break;for(var p=Math.min(1,(e-E)/T),C=0;C<16;C++)w[C]+=this.values[A*16+C]*p;E+=T*p;if(p<1)break}for(A=e=T=0;A<16;A++){p=T+w[A]/E;e+=Math.max(0,Math.min(p,y)-Math.max(T,N))*(A>0?8192*Math.pow(2,A-1):0);if(p>y)break;T=p}return e/(y-N)};EI.prototype.Kj=function(e,N){e=Math.min(this.J,Math.max(1,Math.round(e*this.resolution)));e+this.N>=this.J&&(this.K=!0);for(;e--;)this.values[this.N]=N,this.N=(this.N+1)%this.J;this.s0=!0}; EI.prototype.percentile=function(e){var N=this;if(!this.K&&this.N===0)return 0;this.s0&&(g.pf(this.L,function(y,w){return N.values[y]-N.values[w]}),this.s0=!1); return this.values[this.L[Math.round(e*((this.K?this.J:this.N)-1))]]||0}; EI.prototype.AT=function(){return this.Z?(this.percentile(this.j-this.Z)+this.percentile(this.j)+this.percentile(this.j+this.Z))/3:this.percentile(this.j)};g.b(AR,g.x);AR.prototype.Bk=function(){var e;(e=this.Zl)==null||e.start();if(ld(this)&&this.policy.U){var N;(N=this.nX)==null||N.Jq()}};ulP.prototype.T=function(e){return this.experiments.gP(e)};g.b(ZL_,g.x);var HL9="blogger gac books docs duo flix google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),UbF={enW:"caoe",vpB:"capsv",t_h:"cbrand",f0G:"cbr",bjP:"cbrver",zjl:"cchip",PRZ:"ccappver",Zjh:"ccrv",axB:"cfrmver",kgZ:"c",f3t:"cver",twG:"ctheme",KWs:"cplayer",KNh:"cmodel",x3Z:"cnetwork",d3B:"cos",RDB:"cosver",GqG:"cplatform",kNB:"crqyear"};g.b(fa,g.x);g.J=fa.prototype;g.J.T=function(e){return this.experiments.gP(e)}; g.J.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.J.getVideoUrl=function(e,N,y,w,E,A,T){N={list:N};y&&(E?N.time_continue=y:N.t=y);y=T?"music.youtube.com":g.ud(this);E=y==="www.youtube.com";!A&&w&&E?A="https://youtu.be/"+e:g.IK(this)?(A="https://"+y+"/fire",N.v=e):(A&&E?(A=this.protocol+"://"+y+"/shorts/"+e,w&&(N.feature="share")):(A=this.protocol+"://"+y+"/watch",N.v=e),Gv&&(e=xe_())&&(N.ebc=e));return g.Qb(A,N)}; g.J.getVideoEmbedCode=function(e,N,y,w){N="https://"+g.ud(this)+"/embed/"+N;w&&(N=g.Qb(N,{list:w}));w=y.width;y=y.height;N=UK(N);e=UK(e!=null?e:"YouTube video player");return'')}; g.J.supportsGaplessAudio=function(){return g.i$&&!Gv&&HL()>=74||g.DT&&g.SE(68)?!0:!1}; g.J.supportsGaplessShorts=function(){return!this.T("html5_enable_short_gapless")||this.Bk||g.k$?!1:!0}; g.J.getPlayerType=function(){return this.J.cplayer}; g.J.B9=function(){return this.sY}; var ec0=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],Gps=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],sV5=[19];var es={},whM=(es["140"]={numChannels:2},es["141"]={numChannels:2},es["251"]={audioSampleRate:48E3,numChannels:2},es["774"]={audioSampleRate:48E3,numChannels:2},es["380"]={numChannels:6},es["328"]={numChannels:6},es["773"]={},es),NS={},Ny1=(NS["1"]='video/mp4; codecs="av01.0.08M.08"',NS["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',NS["9"]='video/webm; codecs="vp9"',NS["("]='video/webm; codecs="vp9"',NS["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"',NS.h='video/mp4; codecs="avc1.64001e"', NS.H='video/mp4; codecs="avc1.64001e"',NS.o='audio/webm; codecs="opus"',NS.a='audio/mp4; codecs="mp4a.40.2"',NS.ah='audio/mp4; codecs="mp4a.40.2"',NS.mac3='audio/mp4; codecs="ac-3"; channels=6',NS.meac3='audio/mp4; codecs="ec-3"; channels=6',NS.i='audio/mp4; codecs="iamf.001.001.Opus"',NS),y$={},ycJ=(y$["337"]={width:3840,height:2160,bitrate:3E7,fps:30},y$["336"]={width:2560,height:1440,bitrate:15E6,fps:30},y$["335"]={width:1920,height:1080,bitrate:75E5,fps:30},y$["702"]={width:7680,height:4320,bitrate:4E7, fps:60},y$["701"]={width:3840,height:2160,bitrate:2E7,fps:60},y$["700"]={width:2560,height:1440,bitrate:1E7,fps:60},y$["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},y$["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},y$["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},y$["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"},y$["409"]={width:1280,height:720,bitrate:1996E3, fps:60,cryptoblockformat:"subsample"},y$["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},y$["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},y$["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},y$["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},y$["315"]={width:3840,height:2160,bitrate:2E7,fps:60},y$["308"]={width:2560,height:1440,bitrate:1E7,fps:60},y$["303"]= {width:1920,height:1080,bitrate:5E6,fps:60},y$["302"]={width:1280,height:720,bitrate:25E5,fps:60},y$["299"]={width:1920,height:1080,bitrate:75E5,fps:60},y$["298"]={width:1280,height:720,bitrate:35E5,fps:60},y$["571"]={width:7680,height:4320,bitrate:3E7,fps:60},y$["401"]={width:3840,height:2160,bitrate:15E6,fps:60},y$["400"]={width:2560,height:1440,bitrate:75E5,fps:60},y$["399"]={width:1920,height:1080,bitrate:2E6,fps:60},y$["398"]={width:1280,height:720,bitrate:1E6,fps:60},y$["397"]={width:854,height:480, bitrate:4E5,fps:30},y$["396"]={width:640,height:360,bitrate:25E4,fps:30},y$["787"]={width:1080,height:608,bitrate:2E5,fps:30},y$["788"]={width:1080,height:608,bitrate:4E5,fps:30},y$["313"]={width:3840,height:2160,bitrate:8E6,fps:30},y$["271"]={width:2560,height:1440,bitrate:4E6,fps:30},y$["248"]={width:1920,height:1080,bitrate:2E6,fps:30},y$["247"]={width:1280,height:720,bitrate:15E5,fps:30},y$["244"]={width:854,height:480,bitrate:52E4,fps:30},y$["243"]={width:640,height:360,bitrate:28E4,fps:30}, y$["137"]={width:1920,height:1080,bitrate:4E6,fps:30},y$["136"]={width:1280,height:720,bitrate:3E6,fps:30},y$["135"]={width:854,height:480,bitrate:1E6,fps:30},y$["385"]={width:1920,height:1080,bitrate:6503313,fps:60},y$["376"]={width:1280,height:720,bitrate:5706960,fps:60},y$["384"]={width:1280,height:720,bitrate:3660979,fps:60},y$["225"]={width:1280,height:720,bitrate:5805E3,fps:30},y$["224"]={width:1280,height:720,bitrate:453E4,fps:30},y$["145"]={width:1280,height:720,bitrate:2682052,fps:30},y$);g.J=sI.prototype;g.J.getInfo=function(){return this.J}; g.J.Eb=function(){return null}; g.J.a_=function(){var e=this.Eb();return e?(e=g.JE(e.yl),Number(e.expire)):NaN}; g.J.tj=function(){}; g.J.getHeight=function(){return this.J.video.height};Jcs.prototype.build=function(){rcJ(this);var e=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],N={};a:if(this.J)var y=this.J;else{y="";for(var w=g.c(this.K),E=w.next();!E.done;E=w.next())if(E=E.value,E.Vl){if(E.Vl.getIsDefault()){y=E.Vl.getId();break a}y||(y=E.Vl.getId())}}w=g.c(this.K);for(E=w.next();!E.done;E=w.next())if(E=E.value,this.Z||!E.Vl||E.Vl.getId()===y)N[E.itag]||(N[E.itag]=[]),N[E.itag].push(E);y=g.c(this.N);for(w=y.next();!w.done;w=y.next())if(w=w.value,E=N[w.J]){E=g.c(E);for(var A=E.next();!A.done;A= E.next()){var T=e,p=T.push;A=A.value;var C="#EXT-X-MEDIA:TYPE=AUDIO,",r="YES",Y="audio";if(A.Vl){Y=A.Vl;var M=Y.getId().split(".")[0];M&&(C+='LANGUAGE="'+M+'",');(this.J?this.J===Y.getId():Y.getIsDefault())||(r="NO");Y=Y.getName()}M="";w!==null&&(M=w.itag.toString());M=ex(this,A.url,M);C=C+('NAME="'+Y+'",DEFAULT='+(r+',AUTOSELECT=YES,GROUP-ID="'))+(CRn(A,w)+'",URI="'+(M+'"'));p.call(T,C)}}y=g.c(this.L);for(w=y.next();!w.done;w=y.next())w=w.value,E=gb0,w=(T=w.Vl)?'#EXT-X-MEDIA:URI="'+ex(this,w.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+E+'",LANGUAGE="'+T.getId()+'",NAME="'+T.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,w&&e.push(w);y=this.L.length>0?gb0:void 0;w=g.c(this.N);for(E=w.next();!E.done;E=w.next())E=E.value,p=N[E.J],T=void 0,((T=p)==null?void 0:T.length)>0&&(T=E,p=p[0],p="#EXT-X-STREAM-INF:BANDWIDTH="+(T.bitrate+p.bitrate)+',CODECS="'+(T.codecs+","+p.codecs+'",RESOLUTION=')+(T.width+"x"+T.height+',AUDIO="')+(CRn(p,T)+'",')+(y?'SUBTITLES="'+y+'",':"")+"CLOSED-CAPTIONS=NONE",T.fps>1&&(p+= ",FRAME-RATE="+T.fps),T.kW&&(p+=",VIDEO-RANGE="+T.kW),e.push(p),e.push(ex(this,E.url,"")));return e.join("\n")}; var gb0="text";g.b(NO,sI);NO.prototype.a_=function(){return this.expiration}; NO.prototype.Eb=function(){if(!this.yl||this.yl.Ss()){var e=this.N.build();e="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(e);this.yl=new xH(e)}return this.yl};g.b(y3,sI);y3.prototype.Eb=function(){return new xH(this.N.nC())}; y3.prototype.tj=function(){this.N=oh(this.N)};g.b(w8,sI);w8.prototype.Eb=function(){return new xH(this.N)};var w7={},cc5=(w7.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",w7.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",w7.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",w7);g.J=g.En.prototype;g.J.getId=function(){return this.id}; g.J.getName=function(){return this.name}; g.J.isServable=function(){return this.J}; g.J.nC=function(){return this.url}; g.J.getXtags=function(){return this.xtags}; g.J.toString=function(){return this.languageCode+": "+g.A3(this)+" - "+this.vssId+" - "+(this.captionId||"")}; g.J.Bw=function(e){return e?this.toString()===e.toString():!1}; g.J.WG=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var dp0={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},IpP={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},vA0=/^(\d*)_((\d*)_?(\d*))$/;var itE={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},Dps={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var E6={},V4M=(E6.ALWAYS=1,E6.BY_REQUEST=3,E6.UNKNOWN=void 0,E6),AB={},fdw=(AB.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",AB.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",AB.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",AB.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",AB);var PaE; PaE=function(e){for(var N=Object.keys(e),y={},w=0;ww-N?-1:e}; g.J.La=function(){return this.N.vY()}; g.J.T_=function(){return this.N.Jx()}; g.J.G1=function(e){this.N=e};g.b(V3,DG);V3.prototype.N=function(e,N){return DG.prototype.N.call(this,"$N|"+e,N)}; V3.prototype.L=function(e,N,y){return new g8(e,N,y,this.isLive)};var lCM=[],jx=new Set;g.b(g.t3,g.pT);g.J=g.t3.prototype; g.J.setData=function(e){e=e||{};var N=e.errordetail;N!=null&&(this.errorDetail=N);var y=e.errorcode;y!=null?this.errorCode=y:e.status==="fail"&&(this.errorCode="auth");var w=e.reason;w!=null&&(this.errorReason=w);var E=e.subreason;E!=null&&(this.Qm=E);this.T("html5_enable_ssap_entity_id")||this.clientPlaybackNonce||(this.clientPlaybackNonce=e.cpn||(this.Ot.B9()?"r"+g.PX(15):g.PX(16)));this.Kx=A2(this.Ot.Kx,e.livemonitor);Je1(this,e);var A=e.raw_player_response;if(A)this.xW=A;else{var T=e.player_response; T&&(A=JSON.parse(T))}if(this.T("html5_enable_ssap_entity_id")){var p=e.cached_load;p&&(this.jg=A2(this.jg,p));if(!this.clientPlaybackNonce){var C=e.cpn;C?(this.kN("ssei","shdc"),this.clientPlaybackNonce=C):this.clientPlaybackNonce=this.Ot.B9()?"r"+g.PX(15):g.PX(16)}}A&&(this.playerResponse=A);if(this.playerResponse){var r=this.playerResponse.annotations;if(r)for(var Y=g.c(r),M=Y.next();!M.done;M=Y.next()){var l=M.value.playerAnnotationsUrlsRenderer;if(l){l.adsOnly&&(this.Kk=!0);var F=l.loadPolicy; F&&(this.annotationsLoadPolicy=V4M[F]);var S=l.invideoUrl;S&&(this.Wk=NG(S));break}}var k=this.playerResponse.attestation;k&&VmM(this,k);var X=this.playerResponse.cotn;X&&(this.cotn=X);var d=this.playerResponse.heartbeatParams;if(d){EFs(this)&&(this.Ko=!0);var v=d.heartbeatToken;v&&(this.drmSessionId=d.drmSessionId||"",this.heartbeatToken=v,this.tD=Number(d.intervalMilliseconds),this.jd=Number(d.maxRetries),this.bA=!!d.softFailOnError,this.Z4=!!d.useInnertubeHeartbeatsForDrm,this.a7=!0);this.heartbeatServerData= d.heartbeatServerData;var V;this.y_=!((V=d.heartbeatAttestationConfig)==null||!V.requiresAttestation)}var Z=this.playerResponse.messages;Z&&q_J(this,Z);var n=this.playerResponse.overlay;if(n){var R=n.playerControlsOverlayRenderer;if(R)if(xp9(this,R.controlBgHtml),R.mutedAutoplay){var O=g.m(R.mutedAutoplay,HqF);if(O&&O.endScreen){var E9=g.m(O.endScreen,KfX);E9&&E9.text&&(this.uF=g.SY(E9.text))}}else this.mutedAutoplay=!1}var Jn=this.playerResponse.playabilityStatus;if(Jn){var eM=Jn.backgroundability; eM&&eM.backgroundabilityRenderer.backgroundable&&(this.backgroundable=!0);var H,a;if((H=Jn.offlineability)==null?0:(a=H.offlineabilityRenderer)==null?0:a.offlineable)this.offlineable=!0;var h=Jn.contextParams;h&&(this.contextParams=h);var K=Jn.pictureInPicture;K&&K.pictureInPictureRenderer.playableInPip&&(this.pipable=!0);Jn.playableInEmbed&&(this.allowEmbed=!0);var aP=Jn.ypcClickwrap;if(aP){var XF=aP.playerLegacyDesktopYpcClickwrapRenderer,Yw=aP.ypcRentalActivationRenderer;if(XF)this.m4=XF.durationMessage|| "",this.Pf=!0;else if(Yw){var v5=Yw.durationMessage;this.m4=v5?g.SY(v5):"";this.Pf=!0}}var U9=Jn.errorScreen;if(U9){if(U9.playerLegacyDesktopYpcTrailerRenderer){var yT=U9.playerLegacyDesktopYpcTrailerRenderer;this.R7=yT.trailerVideoId||"";var S0=U9.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var P=S0&&S0.ypcTrailerRenderer}else if(U9.playerLegacyDesktopYpcOfferRenderer)yT=U9.playerLegacyDesktopYpcOfferRenderer;else if(U9.ypcTrailerRenderer){P=U9.ypcTrailerRenderer;var I=P.fullVideoMessage;this.nm= I?g.SY(I):"";var z,t;this.R7=((z=g.m(P,Wff))==null?void 0:(t=z.videoDetails)==null?void 0:t.videoId)||""}yT&&(this.Yb=yT.itemTitle||"",yT.itemUrl&&(this.yn=yT.itemUrl),yT.itemBuyUrl&&(this.U8=yT.itemBuyUrl),this.e0=yT.itemThumbnail||"",this.aC=yT.offerHeadline||"",this.Sy=yT.offerDescription||"",this.Hc=yT.offerId||"",this.zA=yT.offerButtonText||"",this.aT=yT.offerButtonFormattedText||null,this.d1=yT.overlayDurationMsec||NaN,this.nm=yT.fullVideoMessage||"",this.bb=!0);if(P){var q=g.m(P,Wff);if(q)this.Gg= {raw_player_response:q};else{var y0=g.m(P,wm5);this.Gg=y0?AE(y0):null}this.bb=!0}}}var An=this.playerResponse.playbackTracking;if(An){var Ts=e,u=r8(An.googleRemarketingUrl);u&&(this.googleRemarketingUrl=u);var $J=r8(An.youtubeRemarketingUrl);$J&&(this.youtubeRemarketingUrl=$J);var SM={},CM=r8(An.ptrackingUrl);if(CM){var g_=$K(CM),MM=g_.oid;MM&&(this.iF=MM);var j0=g_.pltype;j0&&(this.d_=j0);var YR=g_.ptchn;YR&&(this.xT=YR);var H5=g_.ptk;H5&&(this.HJ=encodeURIComponent(H5));var Zy=g_.m;Zy&&(this.ir= Zy)}var CB=r8(An.qoeUrl);if(CB){for(var VF=g.JE(CB),K9=g.c(Object.keys(VF)),YY=K9.next();!YY.done;YY=K9.next()){var ng=YY.value,xR=VF[ng];VF[ng]=Array.isArray(xR)?xR.join(","):xR}this.hH=VF;var Qp=VF.cat;Qp&&(this.T("html5_enable_qoe_cat_list")?this.Em=this.Em.concat(Qp.split(",")):this.Cl=Qp);var hL=VF.live;hL&&(this.Ob=hL);var MP=VF.drm_product;MP&&(this.ub=MP)}var gR=r8(An.videostatsPlaybackUrl);if(gR){var Mg=$K(gR),Vb=Mg.adformat;if(Vb){Ts.adformat=Vb;var VP=this.X(),fc=zc5(Vb,this.mL,VP.j,VP.G); fc&&(this.adFormat=fc)}var iq=Mg.aqi;iq&&(Ts.ad_query_id=iq);var Lf=Mg.autoplay;Lf&&(this.IV=Lf=="1",this.rq=Lf=="1",WF(this,"vss"));var m_=Mg.autonav;m_&&(this.isAutonav=m_=="1");var wr=Mg.delay;wr&&(this.Y_=aA(wr));var Xb=Mg.ei;Xb&&(this.eventId=Xb);if(Mg.adcontext||Vb)this.IV=!0,WF(this,"ad");var my=Mg.feature;my&&(this.v2=my);var Md=Mg.list;Md&&(this.playlistId=Md);var M$=Mg.of;M$&&(this.cV=M$);var lU=Mg.osid;lU&&(this.osid=lU);var FQ=Mg.referrer;FQ&&(this.referrer=FQ);var wz=Mg.sdetail;wz&&(this.NB= wz);var Ap=Mg.ssrt;Ap&&(this.jI=Ap=="1");var Eq=Mg.subscribed;Eq&&(this.subscribed=Eq=="1",this.G.subscribed=Eq);var Ay=Mg.uga;Ay&&(this.userGenderAge=Ay);var Si=Mg.upt;Si&&(this.lV=Si);var o8=Mg.vm;o8&&(this.videoMetadata=o8);SM.playback=Mg}var bU=r8(An.videostatsWatchtimeUrl);if(bU){var hX=$K(bU),cI=hX.ald;cI&&(this.J4=cI);SM.watchtime=hX}var kH=r8(An.atrUrl);if(kH){var zC=$K(kH);SM.atr=zC}var PB=r8(An.engageUrl);if(PB){var ik=$K(PB);SM.engage=ik}this.sR=SM;if(An.promotedPlaybackTracking){var W4= An.promotedPlaybackTracking;W4.startUrls&&(this.dJ=W4.startUrls);W4.firstQuartileUrls&&(this.vV=W4.firstQuartileUrls);W4.secondQuartileUrls&&(this.Vw=W4.secondQuartileUrls);W4.thirdQuartileUrls&&(this.Qw=W4.thirdQuartileUrls);W4.completeUrls&&(this.Ub=W4.completeUrls);W4.engagedViewUrls&&(W4.engagedViewUrls.length>1&&g.uA(new g.Gh("There are more than one engaged_view_urls.")),this.vp=W4.engagedViewUrls[0])}}var TH=this.playerResponse.playerCueRanges;TH&&TH.length>0&&(this.cueRanges=TH);var BI=this.playerResponse.playerCueRangeSet; BI&&g.n3(this,BI);a:{var Jy=this.playerResponse.adPlacements;if(Jy)for(var XQ=g.c(Jy),pV=XQ.next();!pV.done;pV=XQ.next()){var PI=void 0,dO=void 0,I8=(PI=pV.value.adPlacementRenderer)==null?void 0:(dO=PI.renderer)==null?void 0:dO.videoAdTrackingRenderer;if(I8){var vI=I8;break a}}vI=null}var CV=vI;An&&An.promotedPlaybackTracking&&CV&&g.uA(new g.Gh("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));CV&&(this.N8=!0);var z6=this.playerResponse.playerAds;if(z6)for(var Di= e,iU=g.c(z6),rz=iU.next();!rz.done;rz=iU.next()){var Do=rz.value;if(Do){var gO=Do.playerLegacyDesktopWatchAdsRenderer;if(gO){var I1=gO.playerAdParams;if(I1){I1.autoplay=="1"&&(this.rq=this.IV=!0);this.kh=I1.encodedAdSafetyReason||null;I1.showContentThumbnail!==void 0&&(this.al=!!I1.showContentThumbnail);Di.enabled_engage_types=I1.enabledEngageTypes;break}}}}var kf=this.playerResponse.playerConfig;if(kf){var vB=kf.manifestlessWindowedLiveConfig;if(vB){var $i=Number(vB.minDvrSequence),ci=Number(vB.maxDvrSequence), kp=Number(vB.minDvrMediaTimeMs),Bi=Number(vB.maxDvrMediaTimeMs),Vc=Number(vB.startWalltimeMs);$i&&(this.L$=$i);kp&&(this.aq=kp/1E3,this.T("html5_sabr_parse_live_metadata_playback_boundaries")&&L3(this)&&(this.gf=kp/1E3));ci&&(this.ZK=ci);Bi&&(this.pX=Bi/1E3,this.T("html5_sabr_parse_live_metadata_playback_boundaries")&&L3(this)&&(this.zg=Bi/1E3));Vc&&(this.PY=Vc/1E3);($i||kp)&&(ci||Bi)&&(this.allowLiveDvr=this.isLivePlayback=this.Rq=!0,this.Ta=!1)}var Tu=kf.daiConfig;if(Tu){if(Tu.enableDai){this.As= !0;var XG=Tu.enableServerStitchedDai;XG&&(this.enableServerStitchedDai=XG);var gd=Tu.enablePreroll;gd&&(this.enablePreroll=gd)}var fh;if(Tu.daiType==="DAI_TYPE_SS_DISABLED"||((fh=Tu.debugInfo)==null?0:fh.isDisabledUnpluggedChannel))this.Lu=!0;Tu.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(this.KA=!0)}var th=kf.audioConfig;if(th){var tX=th.loudnessDb;tX!=null&&(this.Fo=tX);var Yi=th.trackAbsoluteLoudnessLkfs;Yi!=null&&(this.F1=Yi);var MY=th.loudnessTargetLkfs;MY!=null&&(this.loudnessTargetLkfs=MY);th.audioMuted&& (this.xI=!0);th.muteOnStart&&(this.Ly=!0);var Jp=th.loudnessNormalizationConfig;if(Jp){Jp.applyStatefulNormalization&&(this.applyStatefulNormalization=!0);Jp.preserveStatefulLoudnessTarget&&(this.preserveStatefulLoudnessTarget=!0);var uU=Jp.minimumLoudnessTargetLkfs;uU!=null&&(this.minimumLoudnessTargetLkfs=uU);var fX=Jp.maxStatefulTimeThresholdSec;fX!=null&&(this.maxStatefulTimeThresholdSec=fX)}this.T("web_player_audio_playback_from_audio_config")&&th.playAudioOnly&&(this.CN=!0)}var q$=kf.playbackEndConfig; if(q$){var Hz=q$.endSeconds,LdE=q$.limitedPlaybackDurationInSeconds;this.mutedAutoplay&&(Hz&&(this.endSeconds=Hz),LdE&&(this.limitedPlaybackDurationInSeconds=LdE))}var Gb=kf.fairPlayConfig;if(Gb){var s$J=Gb.certificate;s$J&&(this.Ut=sh(s$J));var ai5=Number(Gb.keyRotationPeriodMs);ai5>0&&(this.c5=ai5);var eDs=Number(Gb.keyPrefetchMarginMs);eDs>0&&(this.zd=eDs)}var RR=kf.playbackStartConfig;if(RR){this.pz=Number(RR.startSeconds);var NZn=RR.liveUtcStartSeconds,yun=!!this.liveUtcStartSeconds&&this.liveUtcStartSeconds> 0;NZn&&!yun&&(this.liveUtcStartSeconds=Number(NZn));var Exn=RR.startPosition;if(Exn){var wbF=Exn.utcTimeMillis;wbF&&!yun&&(this.liveUtcStartSeconds=Number(wbF)*.001);var ES0=Exn.streamTimeMillis;ES0&&(this.jN=Number(ES0)*.001)}this.progressBarStartPosition=RR.progressBarStartPosition;this.progressBarEndPosition=RR.progressBarEndPosition}else{var At5=kf.skippableSegmentsConfig;if(At5){var AuF=At5.introSkipDurationMs;AuF&&(this.Mk=Number(AuF)/1E3);var TZ0=At5.outroSkipDurationMs;TZ0&&(this.zM=Number(TZ0)/ 1E3)}}var TGH=kf.skippableIntroConfig;if(TGH){var JuE=Number(TGH.startMs),pb5=Number(TGH.endMs);isNaN(JuE)||isNaN(pb5)||(this.YB=JuE,this.Js=pb5)}var Ch1=kf.streamSelectionConfig;Ch1&&(this.CC=Number(Ch1.maxBitrate));var ru3=kf.vrConfig;ru3&&(this.qc=ru3.partialSpherical=="1");var Je=kf.webDrmConfig;if(Je){Je.skipWidevine&&(this.oI=!0);var $U5=Je.widevineServiceCert;$U5&&(this.Tg=sh($U5));Je.useCobaltWidevine&&(this.useCobaltWidevine=!0);Je.startWithNoQualityConstraint&&(this.xX=!0)}var UH=kf.mediaCommonConfig; if(UH){var Ue=UH.dynamicReadaheadConfig;if(Ue){this.maxReadAheadMediaTimeMs=Ue.maxReadAheadMediaTimeMs||NaN;this.minReadAheadMediaTimeMs=Ue.minReadAheadMediaTimeMs||NaN;this.readAheadGrowthRateMs=Ue.readAheadGrowthRateMs||NaN;var Yc1,MXF=UH==null?void 0:(Yc1=UH.mediaUstreamerRequestConfig)==null?void 0:Yc1.videoPlaybackUstreamerConfig;MXF&&(this.E_=sh(MXF));var Jt0=UH==null?void 0:UH.sabrContextUpdates;if(Jt0&&Jt0.length>0)for(var lqM=g.c(Jt0),pP0=lqM.next();!pP0.done;pP0=lqM.next()){var Fd=pP0.value; if(Fd.type&&Fd.value){var Hik={type:Fd.type,scope:Fd.scope,value:sh(Fd.value)||void 0,sendByDefault:Fd.sendByDefault};this.sabrContextUpdates.set(Fd.type,Hik)}}}var F3s=UH.serverPlaybackStartConfig;F3s&&(this.serverPlaybackStartConfig=F3s);UH.useServerDrivenAbr&&(this.xw=!0);var ScM=UH.requestPipeliningConfig;ScM&&(this.requestPipeliningConfig=ScM)}var oSH=kf.inlinePlaybackConfig;oSH&&(this.Nw=!!oSH.showAudioControls);var Lr=kf.embeddedPlayerConfig;if(Lr){this.embeddedPlayerConfig=Lr;var Cx5=Lr.embeddedPlayerMode; if(Cx5){var bDP=this.X();bDP.i9=Cx5;bDP.K=Cx5==="EMBEDDED_PLAYER_MODE_PFL"}var hD1=Lr.permissions;hD1&&(this.allowImaMonetization=!!hD1.allowImaMonetization)}var cuE=kf.ssapConfig;cuE&&(this.po=cuE.ssapPrerollEnabled||!1);var se=kf.webPlayerConfig;se&&(se.gatewayExperimentGroup&&(this.gatewayExperimentGroup=se.gatewayExperimentGroup),se.isProximaEligible&&(this.isProximaLatencyEligible=!0))}var Lk=this.playerResponse.streamingData;if(Lk){var rtM=Lk.formats;if(rtM){for(var pN=[],k9n=g.c(rtM),$m1=k9n.next();!$m1.done;$m1= k9n.next()){var YK0=$m1.value;pN.push(YK0.itag+"/"+YK0.width+"x"+YK0.height)}this.zT=pN.join(",");pN=[];for(var BZH=g.c(rtM),M$5=BZH.next();!M$5.done;M$5=BZH.next()){var CN=M$5.value,rj={itag:CN.itag,type:CN.mimeType,quality:CN.quality},XbH=CN.url;XbH&&(rj.url=XbH);var al=bN(CN),K7M=al.Uv,W70=al.xm,Oi_=al.s;al.jQ&&(rj.url=K7M,rj.sp=W70,rj.s=Oi_);pN.push(g.nY(rj))}this.Rx=pN.join(",")}var lsM=Lk.hlsFormats;if(lsM){var Ph0=kf||null,eD={};if(Ph0){var Fr5=Ph0.audioPairingConfig;if(Fr5&&Fr5.pairs)for(var dU_= g.c(Fr5.pairs),SKP=dU_.next();!SKP.done;SKP=dU_.next()){var Iq0=SKP.value,oxH=Iq0.videoItag;eD[oxH]||(eD[oxH]=[]);eD[oxH].push(Iq0.audioItag)}}for(var vSM={},zD5=g.c(lsM),by5=zD5.next();!by5.done;by5=zD5.next()){var iDF=by5.value;vSM[iDF.itag]=iDF.bitrate}for(var DUn=[],gS9=g.c(lsM),hS1=gS9.next();!hS1.done;hS1=gS9.next()){var aC=hS1.value,Pe={itag:aC.itag,type:aC.mimeType,url:aC.url,bitrate:aC.bitrate,width:aC.width,height:aC.height,fps:aC.fps},No=aC.audioTrack;if(No){var VXJ=No.displayName;VXJ&& (Pe.name=VXJ,Pe.audio_track_id=No.id,No.audioIsDefault&&(Pe.is_default="1"))}if(aC.drmFamilies){for(var fq9=[],tXM=g.c(aC.drmFamilies),ct5=tXM.next();!ct5.done;ct5=tXM.next())fq9.push(Am[ct5.value]);Pe.drm_families=fq9.join(",")}var yB=eD[aC.itag];if(yB&&yB.length){Pe.audio_itag=yB.join(",");var uTn=vSM[yB[0]];uTn&&(Pe.bitrate+=uTn)}var qcM=hz0(aC);qcM&&(Pe.eotf=qcM);aC.audioChannels&&(Pe.audio_channels=aC.audioChannels);DUn.push(g.nY(Pe))}this.hlsFormats=DUn.join(",")}var kJ3=Lk.licenseInfos;if(kJ3&& kJ3.length>0){for(var ZD5={},xU0=g.c(kJ3),BG5=xU0.next();!BG5.done;BG5=xU0.next()){var jq5=BG5.value,nS_=jq5.drmFamily,Qq5=jq5.url;nS_&&Qq5&&(ZD5[Am[nS_]]=Qq5)}this.BG=ZD5}var mU9=Lk.drmParams;mU9&&(this.drmParams=mU9);var HDH=Lk.dashManifestUrl;HDH&&(this.U2=g.Qb(HDH,{cpn:this.clientPlaybackNonce}));var K3M=Lk.hlsManifestUrl;K3M&&(this.hlsvp=K3M);var W35=Lk.probeUrl;W35&&(this.probeUrl=NG(g.Qb(W35,{cpn:this.clientPlaybackNonce})));var ODE=Lk.serverAbrStreamingUrl;ODE&&(this.kX=new g.YE(ODE,!0))}var RD0= this.playerResponse.trackingParams;RD0&&(this.i9=RD0);var sS=this.playerResponse.videoDetails;if(sS){var dm=e,XPn=sS.videoId;XPn&&(this.videoId=XPn,dm.video_id||(dm.video_id=XPn));var G99=sS.channelId;G99&&(this.G.uid=G99.substring(2));var PxF=sS.title;PxF&&(this.title=PxF,dm.title||(dm.title=PxF));var dmH=sS.lengthSeconds;dmH&&(this.lengthSeconds=Number(dmH),dm.length_seconds||(dm.length_seconds=dmH));var UUs=sS.keywords;UUs&&(this.keywords=Y1M(UUs));var Is_=sS.channelId;Is_&&(this.iI=Is_,dm.ucid|| (dm.ucid=Is_));var L3E=sS.viewCount;L3E&&(this.rawViewCount=Number(L3E));var vxE=sS.author;vxE&&(this.author=vxE,dm.author||(dm.author=vxE));var sqM=sS.shortDescription;sqM&&(this.shortDescription=sqM);var aqJ=sS.isCrawlable;aqJ&&(this.isListed=aqJ);var eFM=sS.musicVideoType;eFM&&(this.musicVideoType=eFM);var zSJ=sS.isLive;zSJ!=null&&(this.isLivePlayback=zSJ);if(zSJ||sS.isUpcoming)this.isPremiere=!sS.isLiveContent;var N3P=sS.thumbnail;N3P&&(this.D=C3(N3P));var yzs=sS.isExternallyHostedPodcast;yzs&& (this.isExternallyHostedPodcast=yzs);var iy3=sS.viewerLivestreamJoinPosition;if(iy3==null?0:iy3.utcTimeMillis)this.YN=aA(iy3.utcTimeMillis);var w0s=kf||null,DmP=e;sS.isLiveDefaultBroadcast&&(this.isLiveDefaultBroadcast=!0);sS.isUpcoming&&(this.isUpcoming=!0);if(sS.isPostLiveDvr){this.Ta=!0;var E8s=sS.latencyClass;E8s&&(this.latencyClass=fdw[E8s]||"UNKNOWN");sS.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0)}else{var gxM=!1;if(this.Kx)this.allowLiveDvr=WU()?!0:ay&&a3<5?!1:!0,this.isLivePlayback= !0;else if(sS.isLive){DmP.livestream="1";this.allowLiveDvr=sS.isLiveDvrEnabled?WU()?!0:ay&&a3<5?!1:!0:!1;this.partnerId=27;sS.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0);var AzF=sS.latencyClass;AzF&&(this.latencyClass=fdw[AzF]||"UNKNOWN");var T3H=sS.liveChunkReadahead;T3H&&(this.liveChunkReadahead=T3H);var G$=w0s&&w0s.livePlayerConfig;if(G$){G$.hasSubfragmentedFmp4&&(this.hasSubfragmentedFmp4=!0);G$.hasSubfragmentedWebm&&(this.JB=!0);G$.defraggedFromSubfragments&&(this.defraggedFromSubfragments= !0);var JzP=G$.liveExperimentalContentId;JzP&&(this.liveExperimentalContentId=Number(JzP));var p0s=G$.isLiveHeadPlayable;this.T("html5_live_head_playable")&&p0s!=null&&(this.isLiveHeadPlayable=p0s)}gxM=!0}else sS.isUpcoming&&(gxM=!0);gxM&&(this.isLivePlayback=!0,DmP.adformat&&DmP.adformat.split("_")[1]!=="8"||this.l9.push("heartbeat"),this.a7=!0)}var C3_=sS.isPrivate;C3_!==void 0&&(this.isPrivate=A2(this.isPrivate,C3_))}if(Jn){var rz9=sS||null,$w0=!1,Ul=Jn.errorScreen;$w0=Ul&&(Ul.playerLegacyDesktopYpcOfferRenderer|| Ul.playerLegacyDesktopYpcTrailerRenderer||Ul.ypcTrailerRenderer)?!0:rz9&&rz9.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(Jn.status);if(!$w0){this.errorCode=kKE(Jn.errorCode)||"auth";var wE=Ul&&Ul.playerErrorMessageRenderer;if(wE){this.playerErrorMessageRenderer=wE;var Yi0=wE.reason;Yi0&&(this.errorReason=g.SY(Yi0));var V$0=wE.subreason;V$0&&(this.Qm=g.SY(V$0),this.P5=V$0)}else this.errorReason=Jn.reason||null;var fs9=Jn.status;if(fs9==="LOGIN_REQUIRED")this.errorDetail="1"; else if(fs9==="CONTENT_CHECK_REQUIRED")this.errorDetail="2";else if(fs9==="AGE_CHECK_REQUIRED"){var M3E=Jn.errorScreen,l20=M3E&&M3E.playerKavRenderer;this.errorDetail=l20&&l20.kavUrl?"4":"3"}else this.errorDetail=Jn.isBlockedInRestrictedMode?"5":"0"}}var FA9=this.playerResponse.interstitialPods;FA9&&uv5(this,FA9);this.Wk&&this.eventId&&(this.Wk=Cp(this.Wk,{ei:this.eventId}));var t$s=this.playerResponse.captions;if(t$s&&t$s.playerCaptionsTracklistRenderer)a:{var Id=t$s.playerCaptionsTracklistRenderer; this.captionTracks=[];if(Id.captionTracks)for(var SiH=g.c(Id.captionTracks),uZs=SiH.next();!uZs.done;uZs=SiH.next()){var ve=uZs.value,o8E=CS0(ve.baseUrl);if(!o8E)break a;var qK9={is_translateable:!!ve.isTranslatable,languageCode:ve.languageCode,languageName:ve.name&&g.SY(ve.name),url:o8E,vss_id:ve.vssId,kind:ve.kind};qK9.name=ve.trackName;qK9.displayName=ve.name&&g.SY(ve.name);this.captionTracks.push(new g.En(qK9))}this.tX=Id.audioTracks||[];this.m5=Id.defaultAudioTrackIndex||0;this.wE=[];if(Id.translationLanguages)for(var b5M= g.c(Id.translationLanguages),ZyF=b5M.next();!ZyF.done;ZyF=b5M.next()){var L2=ZyF.value,SS={};SS.languageCode=L2.languageCode;SS.languageName=g.SY(L2.languageName);if(L2.translationSourceTrackIndices){SS.translationSourceTrackIndices=[];for(var hF0=g.c(L2.translationSourceTrackIndices),xmJ=hF0.next();!xmJ.done;xmJ=hF0.next())SS.translationSourceTrackIndices.push(xmJ.value)}if(L2.excludeAudioTrackIndices){SS.excludeAudioTrackIndices=[];for(var czE=g.c(L2.excludeAudioTrackIndices),jAF=czE.next();!jAF.done;jAF= czE.next())SS.excludeAudioTrackIndices.push(jAF.value)}this.wE.push(SS)}this.jE=[];if(Id.defaultTranslationSourceTrackIndices)for(var kcH=g.c(Id.defaultTranslationSourceTrackIndices),nx3=kcH.next();!nx3.done;nx3=kcH.next())this.jE.push(nx3.value);this.j$=!!Id.contribute&&!!Id.contribute.captionsMetadataRenderer}(this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.pz=Number(this.clipConfig.startTimeMs)*.001);this.playerResponse&&this.playerResponse.playerConfig&& this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&Zt5(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var B3E;this.compositeLiveIngestionOffsetToken=(B3E=this.playerResponse.playbackTracking)==null?void 0:B3E.compositeLiveIngestionOffsetToken;var X0M;this.compositeLiveStatusToken=(X0M=this.playerResponse.playbackTracking)==null?void 0:X0M.compositeLiveStatusToken}qO(this,e);e.queue_info&&(this.queueInfo= e.queue_info);var P31=e.hlsdvr;P31!=null&&(this.allowLiveDvr=Number(P31)===1?WU()?!0:ay&&a3<5?!1:!0:!1);this.adQueryId=e.ad_query_id||null;this.kh||(this.kh=e.encoded_ad_safety_reason||null);this.YU=e.agcid||null;this.M6=e.ad_id||null;this.sb=e.ad_sys||null;this.Rv=e.encoded_ad_playback_context||null;this.xI=A2(this.xI,e.infringe||e.muted);this.qq=e.authkey;this.Fn=e.authuser;this.mutedAutoplay=A2(this.mutedAutoplay,e&&e.playmuted);this.T("embeds_enable_full_length_inline_muted_autoplay")&&(this.mutedAutoplayDurationMode= J2(this.mutedAutoplayDurationMode,e&&e.muted_autoplay_duration_mode));this.KT=A2(this.KT,e&&e.mutedautoplay);var EB=e.length_seconds;EB&&(this.lengthSeconds=typeof EB==="string"?aA(EB):EB);if(this.isAd()||this.d2||!g.Yh(g.zX(this.Ot)))this.endSeconds=J2(this.endSeconds,this.zM||e.end||e.endSeconds);else{var RTF=g.zX(this.Ot),AJ=this.lengthSeconds;switch(RTF){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":AJ>30?this.limitedPlaybackDurationInSeconds=30:AJ<30&&AJ>10&&(this.limitedPlaybackDurationInSeconds= 10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":this.limitedPlaybackDurationInSeconds=AJ*.2}}this.i9=pO(this.i9,e.itct);this.o4=A2(this.o4,e.noiba);this.D7=A2(this.D7,e.is_live_destination);this.isLivePlayback=A2(this.isLivePlayback,e.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&&this.Cx();e.isUpcoming&&(this.isUpcoming=A2(this.isUpcoming,e.isUpcoming));this.Ta=A2(this.Ta,e.post_live_playback);this.Rq&&(this.Ta=!1);this.isMdxPlayback=A2(this.isMdxPlayback, e.mdx);var TG=e.mdx_control_mode;TG&&(this.mdxControlMode=typeof TG==="number"?TG:aA(TG));this.isInlinePlaybackNoAd=A2(this.isInlinePlaybackNoAd,e.is_inline_playback_no_ad);this.jn=J2(this.jn,e.reload_count);this.reloadReason=pO(this.reloadReason,e.reload_reason);this.al=A2(this.al,e.show_content_thumbnail);this.wW=A2(this.wW,e.utpsa);this.cycToken=e.cyc||null;this.bf=e.tkn||null;var dwM=p3(e);Object.keys(dwM).length>0&&(this.D=dwM);this.Kh=pO(this.Kh,e.vvt);this.mdxEnvironment=pO(this.mdxEnvironment, e.mdx_environment);e.source_container_playlist_id&&(this.sourceContainerPlaylistId=e.source_container_playlist_id);e.serialized_mdx_metadata&&(this.serializedMdxMetadata=e.serialized_mdx_metadata);this.lM=e.osig;this.eventId||(this.eventId=e.eventid);this.osid||(this.osid=e.osid);this.playlistId=pO(this.playlistId,e.list);e.index&&(this.playlistIndex=this.playlistIndex===void 0?J2(0,e.index):J2(this.playlistIndex,e.index));this.y3=e.pyv_view_beacon_url;this.bH=e.pyv_quartile25_beacon_url;this.Mm= e.pyv_quartile50_beacon_url;this.ij=e.pyv_quartile75_beacon_url;this.V3=e.pyv_quartile100_beacon_url;var I25=e.session_data;!this.Im&&I25&&(this.Im=w2(I25,"&").feature);this.isFling=J2(this.isFling?1:0,e.is_fling)===1;this.vnd=J2(this.vnd,e.vnd);this.forceAdsUrl=pO(this.forceAdsUrl,e.force_ads_url);this.S_=pO(this.S_,e.ctrl);this.N2=pO(this.N2,e.ytr);this.Ez=e.ytrcc;this.JF=e.ytrexp;this.Dy=e.ytrext;this.FZ=pO(this.FZ,e.adformat);this.mL=pO(this.mL,e.attrib);this.slotPosition=J2(this.slotPosition, e.slot_pos);this.breakType=e.break_type;this.jI=A2(this.jI,e.ssrt);this.videoId=r9(e)||this.videoId;this.Z=pO(this.Z,e.vss_credentials_token);this.zN=pO(this.zN,e.vss_credentials_token_type);this.CN=A2(this.CN,e.audio_only);this.dT=A2(this.dT,e.aac_high);this.WV=A2(this.WV,e.prefer_low_quality_audio);this.xn=A2(this.xn,e.uncap_inline_quality);this.T("html5_enable_qoe_cat_list")?e.qoe_cat&&(this.Em=this.Em.concat(e.qoe_cat.split(","))):this.Cl=pO(this.Cl,e.qoe_cat);this.Ci=A2(this.Ci,e.download_media); var v85=e.prefer_gapless;this.U=v85!=null?A2(this.U,v85):this.U?this.U:this.Ot.preferGapless&&this.Ot.supportsGaplessShorts();xT_(this.playerResponse)&&this.l9.push("ad");var zFn=e.adaptive_fmts;zFn&&(this.adaptiveFormats=zFn,this.Fh("adpfmts",{},!0));var i5H=e.allow_embed;i5H&&(this.allowEmbed=Number(i5H)===1);var DwM=e.backgroundable;DwM&&(this.backgroundable=Number(DwM)===1);var g8M=e.autonav;g8M&&(this.isAutonav=Number(g8M)===1);var V30=e.autoplay;V30&&(this.IV=this.rq=Number(V30)===1,WF(this, "c"));var f20=e.iv_load_policy;f20&&(this.annotationsLoadPolicy=Th(this.annotationsLoadPolicy,f20,id));var t3P=e.cc_lang_pref;t3P&&(this.captionsLanguagePreference=pO(t3P,this.captionsLanguagePreference));var uCF=e.cc_load_policy;uCF&&(this.XR=Th(this.XR,uCF,id));var qiE;this.deviceCaptionsOn=(qiE=e.device_captions_on)!=null?qiE:void 0;var Z5P;this.p5=(Z5P=e.device_captions_lang_pref)!=null?Z5P:"";var xwJ;this.zk=(xwJ=e.viewer_selected_caption_langs)!=null?xwJ:[];if(!this.T("html5_enable_ssap_entity_id")){var jEM= e.cached_load;jEM&&(this.jg=A2(this.jg,jEM))}if(e.dash==="0"||e.dash===0||e.dash===!1)this.uf=!0;var n8J=e.dashmpd;n8J&&(this.U2=g.Qb(n8J,{cpn:this.clientPlaybackNonce}));var QE9=e.delay;QE9&&(this.Y_=aA(QE9));var QAM=this.zM||e.end;if(this.LX?QAM!=null:QAM!=void 0)this.clipEnd=J2(this.clipEnd,QAM);var mw_=e.fmt_list;mw_&&(this.zT=mw_);e.heartbeat_preroll&&this.l9.push("heartbeat");this.Sz=-Math.floor(Math.random()*10);this.vy=-Math.floor(Math.random()*40);var H5E=e.is_listed;H5E&&(this.isListed= A2(this.isListed,H5E));var KA3=e.is_private;KA3&&(this.isPrivate=A2(this.isPrivate,KA3));var WAs=e.is_dni;WAs&&(this.hs=A2(this.hs,WAs));var O5M=e.dni_color;O5M&&(this.yy=pO(this.yy,O5M));var RF5=e.pipable;RF5&&(this.pipable=A2(this.pipable,RF5));this.mI=(this.Vz=this.pipable&&this.Ot.nm)&&!this.Ot.showMiniplayerButton;var GcP=e.paid_content_overlay_duration_ms;GcP&&(this.paidContentOverlayDurationMs=aA(GcP));var Uws=e.paid_content_overlay_text;Uws&&(this.paidContentOverlayText=Uws);var LA5=e.url_encoded_fmt_stream_map; LA5&&(this.Rx=LA5);var sE5=e.hls_formats;sE5&&(this.hlsFormats=sE5);var a2J=e.hlsvp;a2J&&(this.hlsvp=a2J);var JJ=e.live_start_walltime;JJ&&(this.AU=typeof JJ==="number"?JJ:aA(JJ));var pH=e.live_manifest_duration;pH&&(this.yh=typeof pH==="number"?pH:aA(pH));var eCM=e.player_params;eCM&&(this.playerParams=eCM);var NBH=e.partnerid;NBH&&(this.partnerId=J2(this.partnerId,NBH));var yI_=e.probe_url;yI_&&(this.probeUrl=NG(g.Qb(yI_,{cpn:this.clientPlaybackNonce})));var mmM=e.pyv_billable_url;mmM&&Rk5(mmM)&& (this.vp=mmM);var HyM=e.pyv_conv_url;HyM&&Rk5(HyM)&&(this.XD=HyM);Mj5(this,e);this.startSeconds>0?this.T("html5_log_start_seconds_inconsistency")&&this.startSeconds!==(this.pz||this.Mk||e.start||e.startSeconds)&&this.Fh("lss",{css:this.startSeconds,pcss:this.pz,iss:this.Mk,ps:e.start||void 0,pss:e.startSeconds||void 0}):this.Xz=this.startSeconds=J2(this.startSeconds,this.pz||this.Mk||e.start||e.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var wTE=e.live_utc_start;if(wTE!= null)this.liveUtcStartSeconds=Number(wTE);else{var Krs=this.startSeconds;Krs&&isFinite(Krs)&&Krs>1E9&&(this.liveUtcStartSeconds=this.startSeconds)}}if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var EXH=e.utc_start_millis;EXH&&(this.liveUtcStartSeconds=Number(EXH)*.001)}var AI5=e.stream_time_start_millis;AI5&&(this.jN=Number(AI5)*.001);var WrH=this.Mk||e.start;(this.LX?WrH==null||Number(e.resume)===1:WrH==void 0||e.resume=="1")||this.isLivePlayback||(this.clipStart=J2(this.clipStart, WrH));var TBE=e.url_encoded_third_party_media;TBE&&(this.rk=Tk(TBE));var Oy5=e.ypc_offer_button_formatted_text;if(Oy5){var JIs=JSON.parse(Oy5);this.aT=JIs!=null?JIs:null;this.ZL=Oy5}var pTH=e.ypc_offer_button_text;pTH&&(this.zA=pTH);var CO0=e.ypc_offer_description;CO0&&(this.Sy=CO0);var rI1=e.ypc_offer_headline;rI1&&(this.aC=rI1);var $43=e.ypc_full_video_message;$43&&(this.nm=$43);var YY_=e.ypc_offer_id;YY_&&(this.Hc=YY_);var Mr3=e.ypc_buy_url;Mr3&&(this.U8=Mr3);var l0H=e.ypc_item_thumbnail;l0H&& (this.e0=l0H);var FU0=e.ypc_item_title;FU0&&(this.Yb=FU0);var SY9=e.ypc_item_url;SY9&&(this.yn=SY9);var oXH=e.ypc_vid;oXH&&(this.R7=oXH);e.ypc_overlay_timeout&&(this.d1=Number(e.ypc_overlay_timeout));var bPF=e.ypc_trailer_player_vars;bPF&&(this.Gg=AE(bPF));var hCE=e.ypc_original_itct;hCE&&(this.EF=hCE);this.iI=pO(this.iI,e.ucid);e.baseUrl&&(this.G.baseUrl=e.baseUrl);e.uid&&(this.G.uid=e.uid);e.oeid&&(this.G.oeid=e.oeid);e.ieid&&(this.G.ieid=e.ieid);e.ppe&&(this.G.ppe=e.ppe);e.engaged&&(this.G.engaged= e.engaged);e.subscribed&&(this.G.subscribed=e.subscribed);this.G.focEnabled=A2(this.G.focEnabled,e.focEnabled);this.G.rmktEnabled=A2(this.G.rmktEnabled,e.rmktEnabled);this.hN=e.storyboard_spec||null;this.qZ=e.live_storyboard_spec||null;this.At=e.iv_endscreen_url||null;this.a7=A2(this.a7,e.ypc_license_checker_module);this.bb=A2(this.bb,e.ypc_module);this.Pf=A2(this.Pf,e.ypc_clickwrap_module);this.bb&&this.l9.push("ypc");this.Pf&&this.l9.push("ypc_clickwrap");this.CA={video_id:e.video_id,eventid:e.eventid, cbrand:e.cbrand,cbr:e.cbr,cbrver:e.cbrver,c:e.c,cver:e.cver,ctheme:e.ctheme,cplayer:e.cplayer,cmodel:e.cmodel,cnetwork:e.cnetwork,cos:e.cos,cosver:e.cosver,cplatform:e.cplatform,user_age:e.user_age,user_display_image:e.user_display_image,user_display_name:e.user_display_name,user_gender:e.user_gender,csi_page_type:e.csi_page_type,csi_service_name:e.csi_service_name,enablecsi:e.enablecsi,enabled_engage_types:e.enabled_engage_types};prM(this,e);var cI0=e.cotn;cI0&&(this.cotn=cI0);if(ICH(this))e5(this)&& (this.isLivePlayback&&this.U2&&(this.AA=!0),this.Ut&&(this.Qk=!0));else if(vtP(this))this.AA=!0;else{var kgs,BBM,XTJ=((kgs=this.playerResponse)==null?void 0:(BBM=kgs.streamingData)==null?void 0:BBM.adaptiveFormats)||[];if(XTJ.length>0)var $t=d2H(this,XTJ);else{var POM=this.adaptiveFormats;if(POM&&!e5(this)){NK(this,"html5_enable_cobalt_experimental_vp9_decoder")&&(b2=!0);var sl=pX(POM),RSP=this.BG,d4H=this.lengthSeconds,GYZ=this.isLivePlayback,Yt=this.Ta,aR=this.Ot,UAF=tiF(sl);if(GYZ||Yt){var I0M= aR==null?void 0:aR.experiments,xs=new wt("",I0M,!0);xs.Cx=!0;xs.isManifestless=!0;xs.N=!Yt;xs.isLive=!Yt;xs.Ta=Yt;for(var vX0=g.c(sl),GJ3=vX0.next();!GJ3.done;GJ3=vX0.next()){var eA=GJ3.value,zC9=Jm(eA,RSP),ou=pC(eA.url,eA.sp,eA.s),iPF=ou.get("id");iPF&&iPF.includes("%7E")&&(xs.D=!0);var D4n=void 0,L7V=(D4n=I0M)==null?void 0:D4n.gP("html5_max_known_end_time_rebase"),srw=Number(eA.target_duration_sec)||5,a6k=Number(eA.max_dvr_duration_sec)||14400,gXM=Number(ou.get("mindsq")||ou.get("min_sq")||"0"), VrF=Number(ou.get("maxdsq")||ou.get("max_sq")||"0")||Infinity;xs.L$=xs.L$||gXM;xs.ZK=xs.ZK||VrF;var e8k=!Ug(zC9);ou&&eI(xs,new n1(ou,zC9,{j1:srw,mA:e8k,pI:a6k,L$:gXM,ZK:VrF,TR:300,Ta:Yt,Ym:L7V}))}var f05=xs}else{if(UAF==="FORMAT_STREAM_TYPE_OTF"){var CH=d4H;CH=CH===void 0?0:CH;var ND=new wt("",aR==null?void 0:aR.experiments,!1);ND.duration=CH||0;for(var trP=g.c(sl),UmE=trP.next();!UmE.done;UmE=trP.next()){var yg=UmE.value,Lr1=Jm(yg,RSP,ND.duration),sA1=pC(yg.url,yg.sp,yg.s);if(sA1)if(Lr1.streamType=== "FORMAT_STREAM_TYPE_OTF")eI(ND,new Qt(sA1,Lr1,"sq/0"));else{var Nx_=hd(yg.init),yTw=hd(yg.index);eI(ND,new L1(sA1,Lr1,Nx_,yTw))}}ND.isOtf=!0;var uy3=ND}else{var rE=d4H;rE=rE===void 0?0:rE;var $m=new wt("",aR==null?void 0:aR.experiments,!1);$m.duration=rE||0;for(var qYF=g.c(sl),as5=qYF.next();!as5.done;as5=qYF.next()){var wL=as5.value,wz5=Jm(wL,RSP,$m.duration),ErV=hd(wL.init),AT_=hd(wL.index),ZP0=pC(wL.url,wL.sp,wL.s);ZP0&&eI($m,new L1(ZP0,wz5,ErV,AT_))}uy3=$m}f05=uy3}var x40=f05;if(sl.length>0){var jOn= sl[0];if(this.X().playerStyle==="hangouts-meet"&&jOn.url){var Txq=g.JE(jOn.url);this.TV=this.TV||Number(Txq.expire)}}var JT_=this.isLivePlayback&&!this.Ta&&!this.Rq&&!this.isPremiere;this.T("html5_live_head_playable")&&(!yG(this)&&JT_&&this.Fh("missingLiveHeadPlayable",{}),this.Ot.Ng==="yt"&&(x40.Bk=!0));$t=x40}else $t=null;this.Fh("pafmts",{isManifestFilled:!!$t})}if($t){AY(this,$t);var nXP=!0}else nXP=!1;nXP?this.enableServerStitchedDai=this.enableServerStitchedDai&&wd(this):this.U2&&(this.Ot.Ng=== "yt"&&this.Cx()&&this.T("drm_manifestless_unplugged")&&this.T("html5_deprecate_manifestful_fallback")?this.Fh("deprecateMflFallback",{}):this.AA=!0)}var emF=e.adpings;emF&&(this.NE=emF?AE(emF):null);var QOE=e.feature;QOE&&(this.v2=QOE);var m45=e.referrer;m45&&(this.referrer=m45);this.clientScreenNonce=pO(this.clientScreenNonce,e.csn);this.VM=J2(this.VM,e.root_ve_type);this.IY=J2(this.IY,e.kids_age_up_mode);this.LX||e.kids_app_info==void 0||(this.kidsAppInfo=e.kids_app_info);this.LX&&e.kids_app_info!= null&&(this.kidsAppInfo=e.kids_app_info);this.uV=A2(this.uV,e.upg_content_filter_mode);this.unpluggedFilterModeType=J2(this.unpluggedFilterModeType,e.unplugged_filter_mode_type);var HPs=e.unplugged_location_info;HPs&&(this.Ng=HPs);var KUP=e.unplugged_partner_opt_out;KUP&&(this.gW=pO("",KUP));this.lr=A2(this.lr,e.disable_watch_next);this.Li=pO(this.Li,e.internal_ip_override);this.I4=!!e.is_yto_interstitial;(this.interstitials.length||this.I4)&&this.l9.push("yto");var WU5=e.FA;WU5&&(this.FA=WU5);var OPJ; this.Et=(OPJ=e.csi_timer)!=null?OPJ:"";this.Zc=!!e.force_gvi;e.watchUrl&&(this.watchUrl=e.watchUrl);var ba=e.watch_endpoint;this.T("html5_attach_watch_endpoint_ustreamer_config")&&ba&&XhF(this,ba);if(ba==null?0:ba.ustreamerConfig)this.eL=sh(ba.ustreamerConfig);var RCM,Gg5,U4E=ba==null?void 0:(RCM=ba.loggingContext)==null?void 0:(Gg5=RCM.qoeLoggingContext)==null?void 0:Gg5.serializedContextData;U4E&&(this.T0=U4E);g.hR(this.Ot)&&this.Ot.al&&(this.embedsRct=pO(this.embedsRct,e.rct),this.embedsRctn=pO(this.embedsRctn, e.rctn));this.zx=this.zx||!!e.pause_at_start;e.default_active_source_video_id&&(this.defaultActiveSourceVideoId=e.default_active_source_video_id)}; g.J.X=function(){return this.Ot}; g.J.T=function(e){return this.Ot.T(e)}; g.J.Bf=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.J.hasSupportedAudio51Tracks=function(){var e;return!((e=this.sY)==null||!e.Kx)}; g.J.getUserAudio51Preference=function(){var e=1;Qy(this.Ot)&&this.T("html5_ytv_surround_toggle_default_off")?e=0:g.xj(this.Ot)&&this.isLivePlayback&&this.RV()&&(e=0);var N;return(N=g.qI("yt-player-audio51"))!=null?N:e}; g.J.Ow=function(){this.Ss()||(this.J.N||this.J.unsubscribe("refresh",this.Ow,this),this.z7(-1))}; g.J.z7=function(e){if(!this.isLivePlayback||!this.L||this.L.flavor!=="fairplay"){var N=q35(this.J,this.q6);if(N.length>0){for(var y=g.c(N),w=y.next();!w.done;w=y.next())w=w.value,w.startSecs=Math.max(w.startSecs,this.Ti());this.publish("cuepointupdated",N,e);this.q6+=N.length;if(wd(this)&&this.Ot.B9())for(N=g.c(N),y=N.next();!y.done;y=N.next())y=y.value,this.Fh("cuepoint",{segNum:e,event:y.event,startSecs:y.startSecs,id:y.identifier.slice(-16)}),y.event==="start"&&(y=y.startSecs,this.IF.start=this.Bk, this.IF.end=y+3)}}}; g.J.V0=function(){this.Ss()||(this.loading=!1,this.publish("dataloaded"))}; g.J.RV=function(){return this.fk!==void 0?this.fk:this.fk=!!this.BG||!!this.J&&Ai(this.J)}; g.J.v8=function(e){var N=this;if(this.Ss())return tE();this.jp=this.VB=this.K=null;NK(this,"html5_high_res_logging_always")&&(this.Ot.sY=!0);return VjM(this,e).then(void 0,function(){return fC9(N,e)}).then(void 0,function(){return tjM(N)}).then(void 0,function(){return q1M(N)})}; g.J.nO=function(){if(this.cotn)return null;var e=g.Pa(this.Ot)||this.T("web_l3_storyboard");if(!this.ul)if(this.playerResponse&&this.playerResponse.storyboards){var N=this.playerResponse.storyboards,y=N.playerStoryboardSpecRenderer;y&&y.spec?this.ul=new DG(y.spec,this.lengthSeconds,void 0,!1,e):(N=N.playerLiveStoryboardSpecRenderer)&&N.spec&&this.J&&(y=nbE(this.J.J).index)&&(this.ul=new V3(N.spec,this.J.isLive,y,e))}else this.hN?this.ul=new DG(this.hN,this.lengthSeconds,void 0,!1,e):this.qZ&&this.J&& (N=nbE(this.J.J).index)&&(this.ul=new V3(this.qZ,this.J.isLive,N,e));return this.ul}; g.J.getStoryboardFormat=function(){if(this.cotn)return null;if(this.playerResponse&&this.playerResponse.storyboards){var e=this.playerResponse.storyboards;return(e=e.playerStoryboardSpecRenderer||e.playerLiveStoryboardSpecRenderer)&&e.spec||null}return this.hN||this.qZ}; g.J.ra=function(){return this.J&&!isNaN(this.J.ra())?this.J.ra():wd(this)?0:this.lengthSeconds}; g.J.Ti=function(){return this.J&&!isNaN(this.J.Ti())?this.J.Ti():0}; g.J.getPlaylistSequenceForTime=function(e){if(this.J&&this.N){var N=this.J.J[this.N.id];if(!N)return null;var y=N.index.zI(e);N=N.index.getStartTime(y);return{sequence:y,elapsed:Math.floor((e-N)*1E3)}}return null}; g.J.WG=function(){return!this.Ss()&&!(!this.videoId&&!this.rk)}; g.J.jJ=function(){var e,N,y;return!!this.adaptiveFormats||!!((e=this.playerResponse)==null?0:(N=e.streamingData)==null?0:(y=N.adaptiveFormats)==null?0:y.length)}; g.J.isLoaded=function(){return u0(this)&&!this.AA&&!this.Qk}; g.J.LN=function(e){e||(e="hqdefault.jpg");var N=this.D[e];return N||this.Ot.Kh||e==="pop1.jpg"||e==="pop2.jpg"||e==="sddefault.jpg"||e==="hq720.jpg"||e==="maxresdefault.jpg"?N:q_(this.Ot,this.videoId,e)}; g.J.Cx=function(){return this.isLivePlayback||this.Ta||this.Rq||!(!this.liveUtcStartSeconds||!this.yh)}; g.J.isOtf=function(){return!!this.J&&(this.J.isOtf||!this.Ta&&!this.isLivePlayback&&this.J.N)}; g.J.getAvailableAudioTracks=function(){return this.K?this.K.getAvailableAudioTracks().length>0?this.K.getAvailableAudioTracks():this.e$||[]:[]}; g.J.getAudioTrack=function(){var e=this;if(this.j&&!GS(this.j))return g.Ok(this.getAvailableAudioTracks(),function(w){return w.id===e.j.id})||this.il; if(this.e$){if(!this.Ip)for(var N=g.c(this.e$),y=N.next();!y.done;y=N.next())if(y=y.value,y.Vl.getIsDefault()){this.Ip=y;break}return this.Ip||this.il}return this.il}; g.J.getPlayerResponse=function(){return this.playerResponse}; g.J.getWatchNextResponse=function(){return this.Zl}; g.J.getHeartbeatResponse=function(){return this.Z2}; g.J.ew=function(){return this.watchUrl?this.watchUrl:this.Ot.getVideoUrl(this.videoId)}; g.J.wg=function(){return!!this.J&&(Ios(this.J)||vHs(this.J)||zzn(this.J))}; g.J.getEmbeddedPlayerResponse=function(){return this.nw}; g.J.e_=function(){return(this.eventLabel||this.Ot.Rq)==="shortspage"}; g.J.isAd=function(){return this.s6||!!this.adFormat}; g.J.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; g.J.Au=function(){var e,N,y;return this.isDaiEnabled()&&!!((e=this.playerResponse)==null?0:(N=e.playerConfig)==null?0:(y=N.daiConfig)==null?0:y.ssaEnabledPlayback)}; g.J.du=function(){return EFs(this)?this.Ko:this.a7||this.j_}; g.J.qC=function(){return this.bb||this.j_}; g.J.Ej=function(){return NK(this,"html5_samsung_vp9_live")}; g.J.Fh=function(e,N,y){this.publish("ctmp",e,N,y)}; g.J.kN=function(e,N,y){this.publish("ctmpstr",e,N,y)}; g.J.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; g.J.getGetAdBreakContext=function(e,N){e=e===void 0?NaN:e;N=N===void 0?NaN:N;var y={isSabr:L3(this)},w,E=(w=this.getHeartbeatResponse())==null?void 0:w.adBreakHeartbeatParams;E&&(y.adBreakHeartbeatParams=E);if(this.T("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.J&&!isNaN(e)&&!isNaN(N)){N=e-N;for(var A in this.J.J)if(w=this.J.J[A],w.info.gx()||w.info.qG())if(w=w.index,w.isLoaded()){A=w.zI(N);w=w.OY(A)+N-w.getStartTime(A);this.Fh("gabc",{t:e.toFixed(3),mt:N.toFixed(3),sg:A,igt:w.toFixed(3)}); y.livePlaybackPosition={utcTimeMillis:""+(w*1E3).toFixed(0)};break}}return y}; g.J.isEmbedsShortsMode=function(e,N){if(!g.hR(this.Ot))return!1;var y;if(!this.T("embeds_enable_emc3ds_shorts")&&((y=this.Ot.getWebPlayerContextConfig())==null?0:y.embedsEnableEmc3ds)||(this.Ot.i9||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||N)return!1;var w,E;return!!(((w=this.embeddedPlayerConfig)==null?0:(E=w.embeddedPlayerFlags)==null?0:E.isShortsExperienceEligible)&&e.width<=e.height)}; g.J.fh=function(){g.pT.prototype.fh.call(this);this.NE=null;delete this.jD;delete this.accountLinkingConfig;delete this.J;this.K=this.Z2=this.playerResponse=this.Zl=null;this.Rx=this.adaptiveFormats="";delete this.botguardData;this.Dl=this.suggestions=this.t4=null;this.sabrContextUpdates.clear()};var $Cn={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},YU0={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},CP9={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},T$s={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"},pu0={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},JH_={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"},rHn={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.b(Us,g.x);g.J=Us.prototype;g.J.handleExternalCall=function(e,N,y){var w=this.state.G[e],E=this.state.U[e],A=w;if(E)if(y&&Ln(y,Rj0))A=E;else if(!w)throw Error('API call from an untrusted origin: "'+y+'"');this.logApiCall(e,y);if(A){y=!1;w=g.c(N);for(E=w.next();!E.done;E=w.next())if(String(E.value).includes("javascript:")){y=!0;break}y&&g.uA(Error('Dangerous call to "'+e+'" with ['+N+"]."));return A.apply(this,N)}throw Error('Unknown API method: "'+e+'".');}; g.J.logApiCall=function(e,N,y){var w=this.app.X();w.Qk&&!this.state.D.has(e)&&(this.state.D.add(e),g.$$("webPlayerApiCalled",{callerUrl:w.loaderUrl,methodName:e,origin:N||void 0,playerStyle:w.playerStyle||void 0,embeddedPlayerMode:w.i9,errorCode:y}))}; g.J.publish=function(e){var N=g.iE.apply(1,arguments);this.state.K.publish.apply(this.state.K,[e].concat(g.B(N)));if(e==="videodatachange"||e==="resize"||e==="cardstatechange")this.state.N.publish.apply(this.state.N,[e].concat(g.B(N))),this.state.j.publish.apply(this.state.j,[e].concat(g.B(N)))}; g.J.Mg=function(e){var N=g.iE.apply(1,arguments);this.state.K.publish.apply(this.state.K,[e].concat(g.B(N)));this.state.N.publish.apply(this.state.N,[e].concat(g.B(N)))}; g.J.pC=function(e){var N=g.iE.apply(1,arguments);this.state.K.publish.apply(this.state.K,[e].concat(g.B(N)));this.state.N.publish.apply(this.state.N,[e].concat(g.B(N)));this.state.j.publish.apply(this.state.j,[e].concat(g.B(N)))}; g.J.Y9=function(e){var N=g.iE.apply(1,arguments);this.state.K.publish.apply(this.state.K,[e].concat(g.B(N)));this.state.N.publish.apply(this.state.N,[e].concat(g.B(N)));this.state.j.publish.apply(this.state.j,[e].concat(g.B(N)));this.state.L.publish.apply(this.state.L,[e].concat(g.B(N)))}; g.J.T=function(e){return this.app.X().T(e)}; g.J.fh=function(){if(this.state.element){var e=this.state.element,N;for(N in this.state.J)this.state.J.hasOwnProperty(N)&&(e[N]=null);this.state.element=null}g.x.prototype.fh.call(this)};g.b(yL,g.zY);yL.prototype.publish=function(e){var N=g.iE.apply(1,arguments);if(this.L.has(e))return this.L.get(e).push(N),!0;var y=!1;try{for(N=[N],this.L.set(e,N);N.length;)y=g.zY.prototype.publish.call.apply(g.zY.prototype.publish,[this,e].concat(g.B(N.shift())))}finally{this.L.delete(e)}return y};g.b(wZ,g.x);wZ.prototype.fh=function(){this.L.dispose();this.j.dispose();this.N.dispose();this.K.dispose();this.D=this.J=this.U=this.G=this.Z=void 0};var hqH=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.b(Au,Us);g.J=Au.prototype;g.J.getApiInterface=function(){return Array.from(this.state.Z)}; g.J.uO=function(e,N){this.state.L.subscribe(e,N)}; g.J.KiB=function(e,N){this.state.L.unsubscribe(e,N)}; g.J.getPlayerState=function(e){return pY5(this.app,e)}; g.J.rl=function(){return pY5(this.app)}; g.J.ZqP=function(e,N,y){pD(this)&&(x9(this.app,!0,1),Qi(this.app,e,N,y,1))}; g.J.getCurrentTime=function(e,N,y){var w=this.getPlayerState(e);if(this.app.getAppState()===2&&w===5){var E;return((E=this.app.getVideoData())==null?void 0:E.startSeconds)||0}return this.T("web_player_max_seekable_on_ended")&&w===0?EUF(this.app,e):e?this.app.getCurrentTime(e,N,y):this.app.getCurrentTime(e)}; g.J.xQ=function(){return this.app.getCurrentTime(1)}; g.J.dl=function(){var e=this.app.OY(1);return isNaN(e)?this.getCurrentTime(1):e}; g.J.zw=function(){return this.app.getDuration(1)}; g.J.O3=function(e,N){e=g.Ja(Math.floor(e),0,100);isFinite(e)&&gl(this.app,{volume:e,muted:this.isMuted()},N)}; g.J.VVh=function(e){this.O3(e,!1)}; g.J.Cy=function(e){gl(this.app,{muted:!0,volume:this.getVolume()},e)}; g.J.ZxB=function(){this.Cy(!1)}; g.J.YZ=function(e){Ju(this.app)&&!this.T("embeds_enable_emc3ds_muted_autoplay")||gl(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},e)}; g.J.BQt=function(){Ju(this.app)&&this.T("embeds_enable_emc3ds_muted_autoplay")||this.YZ(!1)}; g.J.getPlayerMode=function(){var e={};this.app.getVideoData().hs&&(e.pfp={enableIma:g.KX(this.app.getVideoData())&&this.app.M7().allowImaMonetization,autoplay:tY(this.app.M7()),mutedAutoplay:this.app.M7().mutedAutoplay});return e}; g.J.yK=function(){var e=this.app.getPresentingPlayerType();if(e===2&&!this.app.As()){var N=ql(this.app.jR());if(!J15(N)||pAM(N))return}e===3?hu(this.app.jR()).D2("control_play"):this.app.X().T("html5_ssap_ignore_play_for_ad")&&g.xK(this.app.M7())&&e===2||this.app.playVideo(e)}; g.J.Z$W=function(){x9(this.app,!0,1);this.yK()}; g.J.pauseVideo=function(e){var N=this.app.getPresentingPlayerType();if(N!==2||this.app.As()||J15(ql(this.app.jR())))N===3?hu(this.app.jR()).D2("control_pause"):this.app.pauseVideo(N,e)}; g.J.ONs=function(){var e=this.app,N=!1;e.ph.PY&&(e.Lh.publish("pageTransition"),N=!0);e.stopVideo(N)}; g.J.clearVideo=function(){}; g.J.getAvailablePlaybackRates=function(){var e=this.app.X();return e.enableSpeedOptions?["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(e.j?e.ancestorOrigins[0]:window.location.origin)||e.IY?ddf:e.supportsVarispeedExtendedFeatures?Iyk:P7k:[1]}; g.J.getPlaybackQuality=function(e){return(e=this.app.Ug(e))?e.getPlaybackQuality():"unknown"}; g.J.Xws=function(){}; g.J.getAvailableQualityLevels=function(e){return(e=this.app.Ug(e))?(e=g.dn(e.Sg(),function(N){return N.quality}),e.length&&(e[0]==="auto"&&e.shift(),e=e.concat(["auto"])),e):[]}; g.J.AQ=function(){return this.getAvailableQualityLevels(1)}; g.J.EB=function(){return this.vW()}; g.J.Bn=function(){return 1}; g.J.getVideoLoadedFraction=function(e){return this.app.getVideoLoadedFraction(e)}; g.J.vW=function(){return this.getVideoLoadedFraction()}; g.J.YQ=function(){return 0}; g.J.getSize=function(){var e=this.app.Fz().getPlayerSize();return{width:e.width,height:e.height}}; g.J.setSize=function(){this.app.Fz().resize()}; g.J.loadVideoById=function(e,N,y,w){if(!e)return!1;e=Ec(e,N,y);return this.app.loadVideoByPlayerVars(e,w)}; g.J.p99=function(e,N,y){e=this.loadVideoById(e,N,y,1);x9(this.app,e,1)}; g.J.cueVideoById=function(e,N,y,w){e=Ec(e,N,y);this.app.cueVideoByPlayerVars(e,w)}; g.J.jC=function(e,N,y){this.cueVideoById(e,N,y,1)}; g.J.loadVideoByUrl=function(e,N,y,w){e=bsM(e,N,y);return this.app.loadVideoByPlayerVars(e,w)}; g.J.NTh=function(e,N,y){e=this.loadVideoByUrl(e,N,y,1);x9(this.app,e,1)}; g.J.cueVideoByUrl=function(e,N,y,w){e=bsM(e,N,y);this.app.cueVideoByPlayerVars(e,w)}; g.J.OM=function(e,N,y){this.cueVideoByUrl(e,N,y,1)}; g.J.UB=function(){var e=this.app.X();if(e.Kh)return"";var N=this.app.M7(),y=void 0;N.isLivePlayback||(y=Math.floor(this.app.getCurrentTime(1)));return e.getVideoUrl(N.videoId,this.getPlaylistId()||void 0,y)}; g.J.yf=function(){return this.app.getDebugText()}; g.J.getVideoEmbedCode=function(){var e=this.app.X();if(e.Kh)return"";var N=this.app.M7();return e.getVideoEmbedCode(N.isPrivate?"":N.title,this.app.M7().videoId,this.app.Fz().getPlayerSize(),this.getPlaylistId()||void 0)}; g.J.hZ=function(e,N,y){return FJ9(this.app,e,N,y)}; g.J.removeCueRange=function(e){return oU0(this.app,e)}; g.J.loadPlaylist=function(e,N,y,w){this.app.loadPlaylist(e,N,y,w)}; g.J.Dgq=function(e,N,y,w){this.loadPlaylist(e,N,y,w);x9(this.app,!0,1)}; g.J.cuePlaylist=function(e,N,y,w){this.app.cuePlaylist(e,N,y,w)}; g.J.nextVideo=function(e,N){this.app.nextVideo(e,N)}; g.J.rMl=function(){this.nextVideo();x9(this.app,!0,1)}; g.J.previousVideo=function(e){this.app.previousVideo(e)}; g.J.UPk=function(){this.previousVideo();x9(this.app,!0,1)}; g.J.playVideoAt=function(e){this.app.playVideoAt(e)}; g.J.Pms=function(e){this.playVideoAt(e);x9(this.app,!0,1)}; g.J.setShuffle=function(e){var N=this.app.getPlaylist();N&&N.setShuffle(e)}; g.J.setLoop=function(e){var N=this.app.getPlaylist();N&&(N.loop=e)}; g.J.Tw=function(){var e=this.app.getPlaylist();if(!e)return null;for(var N=[],y=0;y=400)if(e=this.M7(),this.C.X().T("client_respect_autoplay_switch_button_renderer"))e=!!e.autoplaySwitchButtonRenderer;else{var N,y,w,E;e=!!((N=e.getWatchNextResponse())==null?0:(y=N.contents)==null?0:(w=y.twoColumnWatchNextResults)==null?0:(E=w.autoplay)==null?0:E.autoplay)!==!1}if(e)this.J||(this.J=!0,this.KX(this.J),this.C.X().T("web_player_autonav_toggle_always_listen")||mC3(this), N=this.M7(),this.oQ(N.autonavState),this.C.logVisibility(this.element,this.J));else if(this.J=!1,this.KX(this.J),!this.C.X().T("web_player_autonav_toggle_always_listen"))for(this.C.X().T("web_player_autonav_toggle_always_listen"),N=g.c(this.N),y=N.next();!y.done;y=N.next())this.CX(y.value)}; g.J.oQ=function(e){Kln(this)?this.isChecked=e!==1:((e=e!==1)||(g.m6(),e=g.Xj("web_autonav_allow_off_by_default")&&!g.HE(0,141)&&g.Lb("AUTONAV_OFF_BY_DEFAULT")?!1:!g.HE(0,140)),this.isChecked=e);HsH(this)}; g.J.onClick=function(){this.isChecked=!this.isChecked;this.C.gV(this.isChecked?2:1);HsH(this);if(Kln(this)){var e=this.M7().autoplaySwitchButtonRenderer;this.isChecked&&(e==null?0:e.onEnabledCommand)?this.C.Mg("innertubeCommand",e.onEnabledCommand):!this.isChecked&&(e==null?0:e.onDisabledCommand)&&this.C.Mg("innertubeCommand",e.onDisabledCommand)}this.C.logClick(this.element)}; g.J.getValue=function(){return this.isChecked}; g.J.M7=function(){return this.C.getVideoData(1)};g.b(WlM,jX);g.b(Oc,g.uh);Oc.prototype.onClick=function(){this.enabled&&(Rq(this,!this.checked),this.publish("select",this.checked))}; Oc.prototype.getValue=function(){return this.checked}; Oc.prototype.setEnabled=function(e){(this.enabled=e)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var RqJ=["en-CA","en","es-MX","fr-CA"];g.b(Nw,Oc);Nw.prototype.GZ=function(e){e?this.J||(this.x_.Gi(this),this.J=!0):this.J&&(this.x_.MS(this),this.J=!1);this.J&&Rq(this,$xH())}; Nw.prototype.j=function(){g.re(this.element,"ytp-menuitem-highlight-transition-enabled")}; Nw.prototype.K=function(e){var N=$xH();e!==N&&(N=g.m6(),WE(190,e),WE(192,!0),N.save(),this.C.Mg("cinematicSettingsToggleChange",e))}; Nw.prototype.fh=function(){this.J&&this.x_.MS(this);Oc.prototype.fh.call(this)};g.b(y9,jX);y9.prototype.updateCinematicSettings=function(e){this.J=e;var N;(N=this.menuItem)==null||N.GZ(e);this.api.publish("onCinematicSettingsVisibilityChange",e)};g.b(w3,jX);w3.prototype.qQ=function(e,N){N=N.clipConfig;e==="dataloaded"&&N&&N.startTimeMs!=null&&N.endTimeMs!=null&&this.api.setLoopRange({startTimeMs:Math.floor(Number(N.startTimeMs)),endTimeMs:Math.floor(Number(N.endTimeMs)),postId:N.postId,type:"clips"})};g.b(Ei,jX);Ei.prototype.setCreatorEndscreenVisibility=function(e){var N;(N=nZ(this.api.jR()))==null||N.KX(e)}; Ei.prototype.J=function(e){function N(w){w==="creatorendscreen"&&(w=nZ(y.api.jR()))&&w.nzZ(y.hideButton)} var y=this;this.hideButton=e;this.events.Y(this.api,"modulecreated",N);N("creatorendscreen")};g.b(Az,Oc);Az.prototype.K=function(e){this.j(e?1:0)}; Az.prototype.N=function(){var e=this.hasDrcAudioTrack(),N=this.J()===1&&e;Rq(this,N);this.setEnabled(e)}; Az.prototype.fh=function(){this.x_.MS(this);Oc.prototype.fh.call(this)};g.b(Tc,jX);Tc.prototype.getDrcUserPreference=function(){return this.J}; Tc.prototype.setDrcUserPreference=function(e){g.uY("yt-player-drc-pref",e,31536E3);e!==this.J&&(this.J=e,this.updateEnvironmentData(),this.N()&&this.api.TE())}; Tc.prototype.updateEnvironmentData=function(){this.api.X().Js=this.J===1}; Tc.prototype.N=function(){var e,N,y=(e=this.api.getVideoData())==null?void 0:(N=e.K)==null?void 0:N.J;if(!y)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.T("mta_drc_mutual_exclusion_removal")){var w=this.api.getAudioTrack().Vl.id;return DR(y,function(E){var A;return E.audio.J&&((A=E.Vl)==null?void 0:A.id)===w})}return DR(y,function(E){var A; return((A=E.audio)==null?void 0:A.J)===!0})};g.b(Jz,jX);Jz.prototype.onVideoDataChange=function(){var e=this,N=this.api.getVideoData();this.api.MK("embargo",1);var y=N==null?void 0:N.pT.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(y==null?0:y.length)?sc0(this,y.filter(function(w){return LlJ(e,w)})):(N==null?0:N.cueRanges)&&sc0(this,N.cueRanges.filter(function(w){return LlJ(e,w)}))}; Jz.prototype.N=function(e){return e.embargo!==void 0}; Jz.prototype.fh=function(){jX.prototype.fh.call(this);this.J={}};g.b(p5,jX); p5.prototype.addEmbedsConversionTrackingParams=function(e){var N=this.api.X(),y=N.widgetReferrer,w=N.VB,E=this.J,A="",T=N.getWebPlayerContextConfig();T&&(A=T.embedsIframeOriginParam||"");y.length>0&&(e.embeds_widget_referrer=y);w.length>0&&(e.embeds_referring_euri=w);N.j&&A.length>0&&(e.embeds_referring_origin=A);T&&T.embedsFeature&&(e.feature=T.embedsFeature);E.length>0&&(N.T("embeds_web_enable_lite_experiment_control_arm_logging")?E.unshift(28572):g.Yh(g.zX(N))&&E.unshift(159628),N=E.join(","),N= g.O8()?N:g.b7(N,4),e.source_ve_path=N);this.J.length=0};g.b(azP,jX);g.b(eBM,jX);g.b(C5,g.x);C5.prototype.fh=function(){g.x.prototype.fh.call(this);this.J=null;this.N&&this.N.disconnect()};g.b(y$0,jX);g.b(r3,g.W);r3.prototype.show=function(){g.W.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; r3.prototype.onVideoDataChange=function(e){var N,y,w=(N=this.api.getVideoData())==null?void 0:(y=N.getPlayerResponse())==null?void 0:y.playabilityStatus;w&&(N=w1F(w),g.G(this.api.getPlayerStateObject(),128)||e==="dataloaderror"||!N?(this.N=0,$8(this),this.hide()):(e=(N.remainingTimeSecs||0)*1E3,e>0&&(this.show(),this.updateValue("label",rQ(N.label)),A$3(this,e))))}; r3.prototype.fh=function(){$8(this);g.W.prototype.fh.call(this)};g.b(TQ5,jX);g.b(Y8,g.W);Y8.prototype.onClick=function(){this.Lh.logClick(this.element);this.Lh.Mg("onFullerscreenEduClicked")}; Y8.prototype.GZ=function(){this.Lh.isFullscreen()?this.N?this.J.hide():this.J.show():this.hide();this.Lh.logVisibility(this.element,this.Lh.isFullscreen()&&!this.N)};g.b(Mw,jX);Mw.prototype.updateFullerscreenEduButtonSubtleModeState=function(e){var N;(N=this.J)!=null&&(g.Y1(N.element,"ytp-fullerscreen-edu-button-subtle",e),e&&!N.K&&(N.element.setAttribute("title","Role para ver detalhes"),lh(N.Lh,N.element,N),N.K=!0))}; Mw.prototype.updateFullerscreenEduButtonVisibility=function(e){var N;(N=this.J)!=null&&(N.N=e,N.GZ())};g.b(J$M,g.W);g.b(r$E,jX);g.b(l3,jX);l3.prototype.getSphericalProperties=function(){var e=g.Bb(this.api.jR());return e?e.getSphericalProperties():{}}; l3.prototype.setSphericalProperties=function(e){if(e){var N=g.Bb(this.api.jR());N&&N.setSphericalProperties(e,!0)}};g.b(FC,jX);g.J=FC.prototype;g.J.createClientVe=function(e,N,y,w){this.api.createClientVe(e,N,y,w===void 0?!1:w)}; g.J.createServerVe=function(e,N,y){this.api.createServerVe(e,N,y===void 0?!1:y)}; g.J.setTrackingParams=function(e,N){this.api.setTrackingParams(e,N)}; g.J.logClick=function(e,N){this.api.logClick(e,N)}; g.J.logVisibility=function(e,N,y){this.api.logVisibility(e,N,y)}; g.J.hasVe=function(e){return this.api.hasVe(e)}; g.J.destroyVe=function(e){this.api.destroyVe(e)};var Yj5=!1;oE.prototype.setPlaybackRate=function(e){this.playbackRate=Math.max(1,e)}; oE.prototype.getPlaybackRate=function(){return this.playbackRate};B0.prototype.Y0=function(e){var N=g.Ld(e.info.J.info,this.rP.Cx),y=e.info.Ch+this.j,w=e.info.startTime*1E3;if(this.policy.Wk)try{w=this.policy.Wk?g.K1(e)*1E3:e.info.startTime*1E3}catch(T){Math.random()>.99&&this.logger&&(w=B8(e.J).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:e.info.O2(),encodedDataView:g.oN(w,4)})),w=e.info.startTime*1E3}var E=e.info.clipId,A=this.policy.Wk?g.$$J(e)*1E3:e.info.duration*1E3;this.policy.Wk&&(w<0||A<0)&&(this.logger&&(this.logger({missingSegInfo:e.info.O2(), startTimeMs:w,durationMs:A}),this.policy.Ps||(w<0&&(w=e.info.startTime*1E3),A<0&&(A=e.info.duration*1E3))),this.policy.Ps&&(w<0&&(w=e.info.startTime*1E3),A<0&&(A=e.info.duration*1E3)));return{formatId:N,Ch:y,startTimeMs:w,clipId:E,PL:A}}; B0.prototype.lZ=function(e){this.timestampOffset=e};d3.prototype.seek=function(e,N){e!==this.J&&(this.seekCount=0);this.J=e;var y=this.videoTrack.N,w=this.audioTrack.N,E=this.audioTrack.TW,A=Dc1(this,this.videoTrack,e,this.videoTrack.TW,N);N=Dc1(this,this.audioTrack,this.policy.jp?e:A,E,N);e=Math.max(e,A,N);this.L=!0;this.rP.isManifestless&&(dcM(this,this.videoTrack,y),dcM(this,this.audioTrack,w));return e}; d3.prototype.isSeeking=function(){return this.L}; d3.prototype.xD=function(e){this.K=e}; var iA9=2/24;var fM1=0;g.J=qw.prototype;g.J.Fm=function(){this.Ng=this.now();VpP(this.bk,this.Ng);this.qU.Fm()}; g.J.X_=function(e,N){var y=this.policy.N?(0,g.iC)():0;Z2(this,e,N);e-this.Z<10&&this.N>0||this.F9(e,N);this.qU.X_(e,N);this.policy.N&&(e=(0,g.iC)()-y,this.SR+=e,this.Dl=Math.max(e,this.Dl))}; g.J.F9=function(e,N){var y=(e-this.Z)/1E3,w=N-this.K;this.Vm||(rw(this.bk,y,w),this.fd(y,w));this.Z=e;this.K=N}; g.J.c_=function(){this.i9&&tqM(this);this.qU.c_()}; g.J.nI=function(e){this.i9||(this.i9=this.L-this.Xz+e,this.FZ=this.L,this.jn=this.G)}; g.J.Kd=function(e,N){e=e===void 0?this.G:e;N=N===void 0?this.L:N;this.N>0||(this.D=e,this.N=N,this.Kh=this.isActive=!0)}; g.J.Dd=function(){return this.eV||2}; g.J.Ct=function(){}; g.J.gL=function(){var e,N={rn:this.requestNumber,rt:(this.G-this.J).toFixed(),lb:this.L,stall:(1E3*this.j).toFixed(),ht:(this.Ng-this.J).toFixed(),elt:(this.D-this.J).toFixed(),elb:this.N,d:(e=this.Rq)==null?void 0:e.jY()};this.url&&$cE(N,this.url);this.policy.N&&(N.mph=this.Dl.toFixed(),N.tph=this.SR.toFixed());N.ulb=this.l9;N.ult=this.U;N.abw=this.Zl;return N}; g.J.now=function(){return(0,g.iC)()}; g.J.deactivate=function(){this.isActive&&(this.isActive=!1)};g.b(j3,qw);g.J=j3.prototype;g.J.gL=function(){var e=qw.prototype.gL.call(this);e.pb=this.lw;e.pt=(1E3*this.Kx).toFixed();e.se=this.pX;return e}; g.J.df=function(){var e=this.qU;this.Ut||(this.Ut=e.df?e.df():1);return this.Ut}; g.J.yD=function(){return this.F6?this.df()!==1:!1}; g.J.KF=function(e,N,y){if(!this.Y_){this.Y_=!0;if(!this.Vm){Z2(this,e,N);this.F9(e,N);var w=this.df();this.pX=y;if(!this.policy.L||!this.Vm)if(w===2&&this.policy.L){w=e-this.D0)||n5(this,w,N),this.N>0&&pa(this.bk,N,this.j));e=(e-this.J)/1E3||.01;this.policy.Ng&&!(this.N>0)||JR(this.bk,e,this.K,qjH(this),this.UT)}this.deactivate()}}; g.J.Iu=function(e,N,y){y&&(this.Ut=2);e<0&&this.eV&&(e=this.eV);N?this.Wk+=e:this.aq+=e}; g.J.Dd=function(){return this.aq||this.Wk||qw.prototype.Dd.call(this)}; g.J.F9=function(e,N){var y=(e-this.Z)/1E3,w=N-this.K,E=this.df();this.isActive?E===1&&((w>0||this.policy.Z)&&(y>.2||w<1024)?(this.j+=y,w>0&&y>.2&&n5(this,this.J3?y:.05,w),this.a9=!0):w>0&&(n5(this,y,w),this.a9=!0)):N&&N>=this.policy.J&&this.Kd(e,N);qw.prototype.F9.call(this,e,N)}; g.J.Ep=function(e){if(!this.Vm){Z2(this,e,this.L);var N=(e-this.J)/1E3;this.df()!==2&&this.N>0&&(this.j+=(e-this.Z)/1E3,pa(this.bk,this.K,this.j));JR(this.bk,N,this.K,qjH(this),this.UT,!0);e=(e-this.Z)/1E3;rw(this.bk,e,0);this.fd(e,0)}}; g.J.Kd=function(e,N){e=e===void 0?this.G:e;N=N===void 0?this.L:N;if(!(this.N>0)&&(qw.prototype.Kd.call(this,e,N),this.df()===1)){N=(this.Ng-this.J)/1E3;var y=(e-this.Ng)/1E3;this.F6&&Q9(this,this.now());this.dT||this.Vm||(this.eV&&(y=Math.max(0,y-this.eV)),e=this.bk,e.U.Kj(1,N),e.i9.Kj(1,y))}}; g.J.mY=function(){this.F6&&Q9(this,this.now());return this.Bk}; g.J.RL=function(){var e;if(e=this.K>this.bx)e=(e=this.K)?e>=this.policy.J:!1;return e}; g.J.KM=function(){return this.VB}; g.J.n4=function(e){e=e===void 0?this.now():e;if(this.F6){Q9(this,e);if(this.Ut?this.yD():this.qg!==this.Et){var N=this.Et;if(e0?y+e:y+Math.max(e,N)}; g.J.e8=function(){return this.now()-this.D}; g.J.AG=function(){return(this.K-this.N)*1E3/this.e8()||0}; g.J.nR=function(){return this.D};mA.prototype.feed=function(e){bI(this.J,e);this.Ga()}; mA.prototype.Ga=function(){if(this.j){if(!this.J.getLength())return;var e=this.J.split(this.K-this.N),N=e.aA;e=e.h3;if(!this.qU.nI(this.j,N,this.N,this.K))return;this.N+=N.getLength();this.J=e;this.N===this.K&&(this.j=this.K=this.N=void 0)}for(;;){var y=0;e=g.c(nBP(this.J,y));N=e.next().value;y=e.next().value;y=g.c(nBP(this.J,y));e=y.next().value;y=y.next().value;if(N<0||e<0)break;if(!this.J.b8(y,e)){if(!this.qU.nI||!this.J.b8(y,1))break;y=this.J.split(y).h3;this.qU.nI(N,y,0,e)&&(this.j=N,this.N= y.getLength(),this.K=e,this.J=new oR([]));break}e=this.J.split(y).h3.split(e);y=e.h3;this.qU.D$(N,e.aA);this.J=y}}; mA.prototype.dispose=function(){this.J=new oR};g.J=H0.prototype;g.J.W6=function(){return 0}; g.J.Ms=function(){return null}; g.J.CR=function(){return null}; g.J.C9=function(){return this.state>=1}; g.J.isComplete=function(){return this.state>=3}; g.J.Q_=function(){return this.state===5}; g.J.onStateChange=function(){}; g.J.IJ=function(e){var N=this.state;this.state=e;this.onStateChange(N);this.callback&&this.callback(this,N)}; g.J.Wg=function(e){e&&this.state=this.xhr.HEADERS_RECEIVED}; g.J.getResponseHeader=function(e){try{return this.xhr.getResponseHeader(e)}catch(N){return""}}; g.J.rG=function(){return+this.getResponseHeader("content-length")}; g.J.BP=function(){return this.N}; g.J.CG=function(){return this.status>=200&&this.status<300&&!!this.N}; g.J.MO=function(){return this.J.getLength()>0}; g.J.Qg=function(){var e=this.J;this.J=new oR;return e}; g.J.xJ=function(){return this.J}; g.J.abort=function(){this.Ss=!0;this.xhr.abort()}; g.J.zE=function(){return!0}; g.J.GH=function(){return this.K}; g.J.Cq=function(){return""};g.J=K4n.prototype;g.J.getResponseHeader=function(e){return e==="content-type"?this.J.get("type"):""}; g.J.abort=function(){}; g.J.uJ=function(){return!0}; g.J.rG=function(){return this.range.length}; g.J.BP=function(){return this.loaded}; g.J.CG=function(){return!!this.loaded}; g.J.MO=function(){return!!this.N.getLength()}; g.J.Qg=function(){var e=this.N;this.N=new oR;return e}; g.J.xJ=function(){return this.N}; g.J.zE=function(){return!0}; g.J.GH=function(){return!!this.error}; g.J.Cq=function(){return this.error};g.J=OA0.prototype;g.J.start=function(e){var N={credentials:"include",cache:"no-store"};Object.assign(N,this.G);this.j&&(N.signal=this.j.signal);e=new Request(e,N);fetch(e).then(this.D,this.onError).then(void 0,r0)}; g.J.onDone=function(){this.Ss()||this.qU.c_()}; g.J.getResponseHeader=function(e){return this.responseHeaders?this.responseHeaders.get(e):null}; g.J.uJ=function(){return!!this.responseHeaders}; g.J.BP=function(){return this.N}; g.J.rG=function(){return+this.getResponseHeader("content-length")}; g.J.CG=function(){return this.status>=200&&this.status<300&&!!this.N}; g.J.MO=function(){return!!this.J.getLength()}; g.J.Qg=function(){this.MO();var e=this.J;this.J=new oR;return e}; g.J.xJ=function(){this.MO();return this.J}; g.J.Ss=function(){return this.L}; g.J.abort=function(){this.K&&this.K.cancel().catch(function(){}); this.j&&this.j.abort();this.L=!0}; g.J.zE=function(){return!0}; g.J.GH=function(){return this.Z}; g.J.Cq=function(){return this.errorMessage};g.J=RBs.prototype;g.J.onDone=function(){if(!this.Ss){this.status=this.xhr.status;try{this.response=this.xhr.response,this.N=this.response.byteLength}catch(e){}this.J=!0;this.qU.c_()}}; g.J.Mc=function(){this.xhr.readyState===2&&this.qU.Fm()}; g.J.FI=function(e){this.Ss||(this.status=this.xhr.status,this.J||(this.N=e.loaded),this.qU.X_((0,g.iC)(),e.loaded))}; g.J.uJ=function(){return this.xhr.readyState>=2}; g.J.getResponseHeader=function(e){try{return this.xhr.getResponseHeader(e)}catch(N){return g.uA(Error("Could not read XHR header "+e)),""}}; g.J.rG=function(){return+this.getResponseHeader("content-length")}; g.J.BP=function(){return this.N}; g.J.CG=function(){return this.status>=200&&this.status<300&&this.J&&!!this.N}; g.J.MO=function(){return this.J&&!!this.response&&!!this.response.byteLength}; g.J.Qg=function(){this.MO();var e=this.response;this.response=void 0;return new oR([new Uint8Array(e)])}; g.J.xJ=function(){this.MO();return new oR([new Uint8Array(this.response)])}; g.J.abort=function(){this.Ss=!0;this.xhr.abort()}; g.J.zE=function(){return!1}; g.J.GH=function(){return!1}; g.J.Cq=function(){return""};g.RE.prototype.info=function(){}; g.RE.prototype.debug=function(){}; g.RE.prototype.J=N3(46);var L45=new Map,evM=new Map,sx_=new function(){var e=this;this.J=new Map;this.lk={F4Z:function(){return e.J}}};g.b(Ui,g.x);Ui.prototype.O$=function(){if(!this.QT.length)return[];var e=this.QT;this.QT=[];this.K=g.Kq(e).info;return e}; Ui.prototype.uQ=function(){return this.QT}; Ui.prototype.fh=function(){g.x.prototype.fh.call(this);this.J=null;this.QT.length=0;this.QB.length=0;this.K=null};g.b(si,g.x);g.J=si.prototype; g.J.wwP=function(){if(!this.Ss()){var e=(0,g.iC)(),N=!1;if(this.policy.al){e=e-(this.timing.N>0?this.timing.D:this.timing.J)-this.timing.Dd()*1E3;var y=C1(aE(this),!1);e>=2E3*y?N=!0:e>=this.policy.a7*y&&(this.J=this.policy.ub)}else if(this.timing.N>0){if(this.L){this.policy.jn&&(this.J=0);return}var w=this.timing.KM();this.timing.n4();var E=this.timing.KM();E-w>=this.policy.sY*.8?(this.J++,this.logger.debug(function(){return"Mispredicted by "+(E-w).toFixed(0)}),N=this.J>=5):this.J=0}else{var A=e- this.timing.mY(); this.policy.ub&&A>0&&(this.J+=1);N=C1(aE(this),!1)*this.policy.Vw;(N=A>N*1E3)&&this.logger.debug(function(){return"Elbow late by "+A.toFixed(3)})}this.J>0&&this.qU.BM(); N?this.Py(!1):this.N.start()}}; g.J.Py=function(e){this.j=!0;e&&!this.policy.By&&(e=aE(this),e.N+=1);this.qU.oC();this.lastError="net.timeout";N4(this)}; g.J.canRetry=function(e){var N=aE(this);e=e?this.policy.lV:this.policy.Fo;return N.timedOut0&&(N=N.J.getUint8(0),e.ubyte=N,y===1&&N===0&&(e.b248180278=!0))}this.Ie&&(e.rc=this.policy.d2?this.Ie:this.Ie.toString());this.policy.CC&&this.Wh&&(e.tr=this.Wh);e.itag=this.info.QB[0].J.info.itag;e.ml=""+ +this.info.QB[0].J.Yz();e.sq=""+this.info.QB[0].Ch;this.R2&&(e.ifi=""+ +Sd(this.info.yl.K));this.Ie!==410&&this.Ie!==500&&this.Ie!==503||(e.fmt_unav="true");var w;(y=this.errorMessage||((w=this.xhr)==null? void 0:w.Cq()))&&(e.msg=y);this.a4&&(e.smb="1");this.info.isDecorated()&&(e.sdai="1");return e}; g.J.yu=function(){return ZAH(this.timing)}; g.J.Cq=function(){return this.xhr.Cq()||""}; g.J.RL=function(){return this.isComplete()||this.timing.RL()}; g.J.X_=function(){!this.Ss()&&this.xhr&&(this.Ie=this.xhr.status,this.policy.VE&&this.To&&this.vP(!1),this.bZ()?this.Wg(2):!this.lj&&this.RL()&&(this.Wg(),this.lj=!0))}; g.J.Fm=function(){if(!this.Ss()&&this.xhr){if(!this.pW&&this.xhr.uJ()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var e=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.pW=((0,g.iC)()-e)/1E3}this.xhr.uJ()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.po&&!XaF()&&g.uY("yt-player-headers-readable",!0,2592E3);e=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var N=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),y;(y=this.n9)==null||y.stop();this.B2=e||this.B2; this.M3=N||this.M3}}; g.J.c_=function(){var e=this.xhr;if(!this.Ss()&&e){this.Ie=e.status;e=this.XP(e);if(this.policy.CC){var N;(N=this.n9)==null||N.stop()}e===5?N4(this.r7):this.IJ(e);this.r7.N.stop()}}; g.J.XP=function(e){var N=this;VdM(this);if(yW(this.r7,this.xhr.status,this.Mo?this.timing.Kh||this.n0:this.xhr.CG(),!1,this.ZP))return 5;var y="";wB(this.r7,this.xhr)&&(y=TD1(this.r7,this.xhr));if(y)return p1(aE(this.r7)),this.info.Xo(this.R2,y),3;y=e.BP();if(this.uI){this.vP(!0);VdM(this);if(yW(this.r7,this.xhr.status,this.timing.Kh||this.n0,!1,this.ZP))return 5;if(!this.b3){if(this.n0)return p1(aE(this.r7)),3;this.r7.lastError="net.closed";return 5}}else{if(yW(this.r7,this.xhr.status,this.xhr.CG(), !1,this.ZP))return 5;var w=this.info.K;if(w&&w!==y||e.GH())return this.r7.lastError="net.closed",5;this.vP(!0)}w=Qx5(this)?e.getResponseHeader("X-Bandwidth-Est"):0;if(e=Qx5(this)?e.getResponseHeader("X-Bandwidth-Est3"):0)this.sK=!0,this.policy.YU&&(w=e);EE5(this.r7,y,w?Number(w):0,this.info.QB[0].type===5);this.logger.debug(function(){var E=N.timing;return"Succeeded, rtpd="+(E.Kx*1E3+E.J-Date.now()).toFixed(0)}); return 4}; g.J.canRetry=function(){this.Ss();var e=this.info.isDecorated();return this.r7.canRetry(e)}; g.J.onStateChange=function(){this.isComplete()&&(this.policy.m4?this.oC():this.timing.deactivate())}; g.J.Py=function(e){this.r7.Py(e)}; g.J.BM=function(){this.callback&&this.callback(this,this.state)}; g.J.qY=function(){return this.r7.qY()}; g.J.dispose=function(){H0.prototype.dispose.call(this);this.r7.dispose();var e;(e=this.n9)==null||e.dispose();this.policy.m4||this.oC()}; g.J.oC=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.J.O$=function(){if(!this.uQ().length)return[];this.WM=!0;return this.To.O$()}; g.J.bZ=function(){if(this.state<1)return!1;if(this.To&&this.To.QT.length)return!0;var e;return((e=this.xhr)==null?0:e.MO())?!0:!1}; g.J.uQ=function(){this.vP(!1);return this.To?this.To.uQ():[]}; g.J.vP=function(e){try{if(e||this.xhr.uJ()&&this.xhr.MO()&&!wB(this.r7,this.xhr)&&!this.kP)this.To||(this.To=new Ui(this.policy,this.info.QB)),this.xhr.MO()&&(this.uI?this.uI.feed(this.xhr.Qg()):L5(this.To,this.xhr.Qg(),e&&!this.xhr.MO()))}catch(N){this.uI?i_s(this,N):g.uA(N)}}; g.J.D$=function(e,N){switch(e){case 21:e=N.split(1).h3;Da_(this,e);break;case 22:this.b3=!0;L5(this.To,new oR([]),!0);break;case 43:if(e=qf(new DK(N),1))this.info.Xo(this.R2,e),this.n0=!0;break;case 45:N=KA(new DK(N));e=N.Fl;N=N.Jj;e&&N&&(this.Q7=e/N);break;case 44:this.dj=BFM(new DK(N));var y,w,E;!this.timing.Kh&&((y=this.dj)==null?void 0:y.action)===4&&((w=this.dj)==null?0:(E=w.eA)==null?0:E.Mo)&&(this.Mo=this.dj.eA.Mo);break;case 53:this.policy.CC&&(e=heP(new DK(N)).Fb)&&(this.n9||(this.Fb=e,this.n9= new g.e6(this.G8,e,this)),this.n9.start());break;case 60:this.zR=H1(new DK(N));break;case 58:if(e=L$J(new DK(N)))this.RS=e,e.RS===3&&(this.ZP=!0)}}; g.J.nI=function(e,N,y,w){y||this.timing.nI(w);if(e!==21)return!1;if(e=this.policy.VE)if(w=N.getLength()+y===w,e*=this.info.QB[0].J.info.JM,!w&&N.getLength()0)return!1;if(!this.xhr.uJ())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.uI)var e=!this.info.K;else this.xhr.rG()?e=!1:(e=this.xhr.getResponseHeader("content-type"),e=e==="audio/mp4"||e==="video/mp4"||e==="video/webm");if(!e)return!1;if(isNaN(this.info.Hf)){e=this.xhr.getResponseHeader("x-head-seqnum");var N=this.timing.policy.D?1:0;if(!e)this.logger.debug("No x-head-seqnum, cannot tell if head segment."); else if(Number(e)>this.info.QB[0].Ch+N)return!1}return!0}; g.J.zm=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.J.Ms=function(){this.xhr&&(this.B2=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.B2}; g.J.CR=function(){this.xhr&&(this.M3=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.M3}; g.J.pw=function(){return this.r7.pw()}; g.J.G8=function(){if(!this.Ss()&&this.xhr){this.Wh="heartbeat";var e=this.r7;e.J+=2;this.BM()}};g.b($X,qw);g.J=$X.prototype;g.J.F9=function(e,N){var y=(e-this.Z)/1E3,w=N-this.K;this.N>0?w>0&&(this.qg&&(y>.2||w<1024?(this.j+=y,y>.2&&fes(this,.05,w)):fes(this,y,w)),this.aq&&(this.Et+=w,this.Bk+=y)):N>this.policy.J&&this.Kd(e,N);qw.prototype.F9.call(this,e,N)}; g.J.KF=function(e,N){Z2(this,e,N);this.F9(e,N);this.qg&&(N=this.K*this.snapshot.stall+this.K/this.snapshot.byterate,this.N>0&&pa(this.bk,this.Et,this.j),e=(e-this.J)/1E3||.01,this.policy.Ng&&!(this.N>0)||JR(this.bk,e,this.K,N,!1))}; g.J.Ep=function(e){Z2(this,e,this.L);var N=(e-this.Z)/1E3;rw(this.bk,N,0);this.fd(N,0);!this.qg&&this.N>0||(N=this.K*this.snapshot.stall+this.K/this.snapshot.byterate,this.N>0&&(this.j+=(e-this.Z)/1E3,pa(this.bk,this.Et,this.j)),JR(this.bk,((e-this.J)/1E3||.01)*this.policy.l9,this.K,N,!1,!0))}; g.J.q5=function(e){e=e.uK||2147483647;(e&2)!==2&&(this.aq=!1);(e&1)===1&&(this.qg=!0)}; g.J.Jb=function(e){e=e.uK||2147483647;(e&2)===2&&(this.aq=!1);(e&1)===1&&(this.qg=!1)}; g.J.nR=function(){return this.D}; g.J.e8=function(){var e=this.aq?this.now()-this.Z:0;return Math.max(this.Bk*1E3+e,1)}; g.J.AG=function(){return this.Et*1E3/this.e8()}; g.J.Kd=function(e,N){e=e===void 0?this.G:e;N=N===void 0?this.L:N;this.N>0||(qw.prototype.Kd.call(this,e,N),N=this.bk,e=(e-this.Ng)/1E3,N.U.Kj(1,(this.Ng-this.J)/1E3),N.i9.Kj(1,e))}; g.J.Ct=function(e){this.Wk=e}; g.J.gL=function(){var e=qw.prototype.gL.call(this);e.rbw=this.AG();e.rbe=+this.aq;e.gbe=+this.qg;e.ackt=(this.Wk-this.J).toFixed();return e}; g.J.n4=function(){}; g.J.KM=function(){return NaN}; g.J.mY=function(){return this.J+this.snapshot.delay*1E3};YX.prototype.D$=function(e,N){N.getLength();switch(e){case 20:e=new DK(N);e={mj:f2(e,1),videoId:qf(e,2),itag:f2(e,3),lmt:f2(e,4),xtags:qf(e,5),RH:f2(e,6),qk:tC(e,8),ZN:f2(e,9),Poh:f2(e,10),startMs:f2(e,11),durationMs:f2(e,12),kS:f2(e,14),timeRange:ZK(e,15,tK5),KO:f2(e,16),Br:f2(e,17),clipId:qf(e,1E3)};this.nF(e);break;case 21:this.EG(N,!1);break;case 22:this.Km(N);break;case 31:e=n2(N,$G1);this.gD(e);break;case 52:e=n2(N,cAM);this.Q0(e);break;default:this.dX(e,N)}}; YX.prototype.nF=function(){}; YX.prototype.dX=function(){};g.b(M4,YX);g.J=M4.prototype; g.J.dX=function(e,N){N.getLength();switch(e){case 35:this.tp(N);break;case 44:this.fu(N);break;case 43:this.MQ(N);break;case 53:this.gX(N);break;case 55:e=new DK(N);(e={timeline:ZK(e,1,Pv5),ziq:ZK(e,2,vQP)},e.timeline)&&e.timeline.Xy&&this.qU.J9(e.timeline.Xy,e.timeline.pfq,e.ziq);break;case 56:this.Ku();break;case 57:this.qf(N);break;case 42:this.Zu(N);break;case 45:this.fm(N);break;case 59:this.tb(N);break;case 51:this.bQ(N);break;case 49:this.q5(N);break;case 50:this.Jb(N);break;case 47:this.jl(N); break;case 58:this.DI(N);break;case 61:this.qU.Aa.Ct((0,g.iC)());break;case 66:this.Yy(N);break;case 46:this.N5(N);break;case 67:this.onSnackbarMessage(N)}}; g.J.bQ=function(e){e=new DK(e);e={N1Z:jy(e,1,QA),JfZ:jy(e,2,QA)};this.qU.bQ(e)}; g.J.tb=function(e){var N=new DK(e);e=xC(N,1);var y=xC(N,2);N=xC(N,3);this.qU.tb(e,y,N)}; g.J.fm=function(e){e=KA(new DK(e));this.qU.fm(e)}; g.J.jl=function(e){e=n2(e,lkJ);this.qU.jl(e)}; g.J.Zu=function(e){e=new DK(e);e={videoId:qf(e,1),formatId:ZK(e,2,QA),endTimeMs:f2(e,3),GJg:f2(e,4),mimeType:qf(e,5),Hj:ZK(e,6,AAF),indexRange:ZK(e,7,AAF),GF:ZK(e,8,TF_)};this.qU.Zu(e)}; g.J.qf=function(e){e=vQP(new DK(e));this.qU.qf(e)}; g.J.Ku=function(){this.qU.Ku()}; g.J.tp=function(e){e=Yp9(new DK(e));this.qU.tp(e)}; g.J.gX=function(e){e=heP(new DK(e));this.qU.gX(e)}; g.J.fu=function(e){e=BFM(new DK(e));this.qU.fu(e)}; g.J.MQ=function(e){e={redirectUrl:qf(new DK(e),1)};this.qU.MQ(e)}; g.J.EG=function(e){var N=e.getUint8(0);if(e.getLength()!==1){e=e.split(1).h3;var y=this.N[N]||null;y&&cT(this.qU.uP,N,y,e)}}; g.J.Km=function(e){e=e.getUint8(0);var N=this.N[e]||null;N&&this.qU.Km(e,N)}; g.J.Q0=function(e){this.qU.Q0(e)}; g.J.nF=function(e){var N=e.mj,y=e.qk,w=e.RH,E=e.Br,A=e.KO,T=e.ZN,p=e.startMs,C=e.durationMs,r=e.timeRange,Y=e.kS,M=e.clipId,l=Sl(e);e=CcF.has(nd[""+e.itag]);this.N[N]=l;this.qU.Iu(l,e,{mj:N,qk:!!y,RH:w!=null?w:-1,ZN:T!=null?T:-1,startMs:p!=null?p:-1,durationMs:C!=null?C:-1,kS:Y,Br:E,KO:A,clipId:M,timeRange:r})}; g.J.q5=function(e){e={uK:f2(new DK(e),1)};this.qU.q5(e)}; g.J.Jb=function(e){e={uK:f2(new DK(e),1)};this.qU.Jb(e)}; g.J.gD=function(e){this.qU.gD(e)}; g.J.DI=function(e){e=L$J(new DK(e));this.qU.DI(e)}; g.J.Yy=function(e){e={wI:ZK(new DK(e),1,oQJ)};this.qU.Yy(e)}; g.J.onSnackbarMessage=function(e){e=f2(new DK(e),1);this.qU.onSnackbarMessage(e)}; g.J.N5=function(e){e={reloadPlaybackParams:ZK(new DK(e),1,Ux0)};this.qU.N5(e)};g.b(lO,g.x);g.J=lO.prototype;g.J.Np=function(){return Array.from(this.XZ.keys())}; g.J.Of=function(e){e=this.XZ.get(e);var N=e.QT;e.ex+=N.getLength();e.QT=new oR;return N}; g.J.u6=function(e){return this.XZ.get(e).u6}; g.J.i8=function(e){return this.XZ.get(e).i8}; g.J.Iu=function(e,N,y,w){this.XZ.get(e)||xan(this,e,N);N=this.XZ.get(e);if(this.rP){e=nE9(this,e,y);if(w)for(var E=g.c(e),A=E.next();!A.done;A=E.next()){A=A.value;var T=w;A.D=T;A.startTime+=T;A.o2+=T;A.XT+=T}jh5(this,y.mj,N,e)}else y.qk?N.TU=y.kS:N.Yf.push(y),N.kD.push(y)}; g.J.Lz=function(e){var N;return((N=this.XZ.get(e))==null?void 0:N.QB)||[]}; g.J.Wg=function(){for(var e=g.c(this.XZ.values()),N=e.next();!N.done;N=e.next())N=N.value,N.PT&&(N.FI&&N.FI(),N.PT=!1)}; g.J.Km=function(e,N){this.logger.debug(function(){return"[onMediaEnd] formatId: "+N}); var y=this.XZ.get(N);if(Fy){if(y&&!y.u6){if(y.Vs.get(e))y.Vs.get(e).aL=!0;else{var w;((w=this.qK)==null?0:w.LX)&&y.Vs.set(e,{data:new oR,M8:0,aL:!0})}y.i8=!0}}else y&&!y.i8&&(y.i8=!0)}; g.J.O$=function(e){if(Fy){var N=this.XZ.get(e);if(N)for(var y=g.c(N.Vs),w=y.next();!w.done;w=y.next()){var E=g.c(w.value);w=E.next().value;E=E.next().value;var A=N.lW.get(w);if(Xs(A[0])){if(!E.aL)continue;var T=A,p=E.data;p.getLength();A=0;var C=[];T=g.c(T);for(var r=T.next();!r.done;r=T.next()){r=r.value;var Y=r.K,M=hC(p,A,Y);A+=Y;C.push(new mv(r,M))}N.MZ.push.apply(N.MZ,g.B(C))}else if(E.data.getLength()>0||!A[0].range&&E.aL)p=void 0,A=A[0],C=E.M8,T=E.data,A.range||(p=E.aL),r=T.getLength(),p=new mv(Ku0(A, A.N+C,r,p),T),E.M8+=p.info.K,N.MZ.push(p);N.Vs.get(w).data=new oR;E.aL&&N.Vs.delete(w)}e=this.XZ.get(e);if(!e)return[];N=e.MZ;e.MZ=[];y=g.c(N);for(w=y.next();!w.done;w=y.next())e.ex+=w.value.info.K;return N||[]}y=(N=this.XZ.get(e))==null?void 0:N.To;if(!y)return[];this.vP(e,y);return y.O$()}; g.J.bZ=function(e){if(Fy)return hI(this,e);var N,y,w;return!!((y=(N=this.XZ.get(e))==null?void 0:N.To)==null?0:(w=y.uQ())==null?0:w.length)||hI(this,e)}; g.J.vP=function(e,N){for(;hI(this,e);){var y=this.Of(e);var w=e;w=this.XZ.get(w).u6&&!bO(this,w);L5(N,y,w&&Z_P(this,e))}}; g.J.fh=function(){g.x.prototype.fh.call(this);for(var e=g.c(this.XZ.keys()),N=e.next();!N.done;N=e.next())Sr(this,N.value);var y;if((y=this.qK)==null?0:y.zx)for(e=g.c(this.XZ.values()),N=e.next();!N.done;N=e.next())N=N.value,N.Vs.clear(),N.lW.clear(),N.MZ.length=0,N.QB.length=0,N.kD.length=0,N.Yf.length=0;this.XZ.clear()}; var Fy=!1;g.b(kX,g.x);g.J=kX.prototype;g.J.X_=function(){!this.Ss()&&this.xhr&&(this.vP(!1),ef(this.qU,this))}; g.J.Fm=function(){}; g.J.c_=function(){if(!this.Ss()&&this.xhr){var e=this.XP();e===5?N4(this.r7):this.IJ(e);this.r7.N.stop();var N;(N=this.Yc)==null||N.stop()}}; g.J.XP=function(){var e="";wB(this.r7,this.xhr)&&(e=TD1(this.r7,this.xhr));if(e)return this.info.yl.Xo(this.R2,e),3;this.vP(!0);if(yW(this.r7,this.xhr.status,this.xhr.CG(),this.info.aN(),this.ZP))return 5;if(this.vD)return 3;EE5(this.r7,this.xhr.BP(),0,this.aN());this.policy.PY&&F05(this.qU);return 4}; g.J.vP=function(e){var N=this.xhr;if((e||!wB(this.r7,this.xhr))&&N.MO()){e=N.Qg();var y=e.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+y}); this.uI.feed(e)}}; g.J.D$=function(e,N){this.xhr.zE()&&e===21&&KhJ(this);this.VP.D$(e,N)}; g.J.nI=function(e,N,y,w){y||(this.Aa.nI(w),this.policy.dJ&&e===21&&KhJ(this));if(e!==21)return!1;this.Aa.Kh=!0;e=N.getLength();y||(this.NH=N.getUint8(0),N=N.split(1).h3);var E=this.policy.pT,A=this.VP.N[this.NH],T=this.rP.K.get(A);if(E&&T&&(E*=T.info.JM,e+y!==w&&e0){this.policy.al&&this.r7.N.stop();e=this.Aa.e8();N=this.Aa.AG();var y=Wh5(this,e);if(!(N>y.zP||y.QD>0&&this.info.Io()>y.QD)){this.X$=(0,g.iC)();var w;(w=this.Yc)==null||w.stop();this.policy.PY&&(w=this.qU,e={rE:Math.round(N*e/1E3),Ka:e},w.policy.PY&&(w.i9=e,w.ue++));this.Py(!1)}}}}; g.J.Py=function(e){this.r7.Py(e)}; g.J.fu=function(e){this.qU.fu(e,this.YK())}; g.J.MQ=function(e){this.vD=!0;this.info.yl.Xo(this.R2,e.redirectUrl)}; g.J.q5=function(e){this.Aa instanceof $X&&this.Aa.q5(e)}; g.J.Jb=function(e){this.Aa instanceof $X&&this.Aa.Jb(e)}; g.J.J9=function(e,N,y){this.qU.J9(e,N,y,this.YK())}; g.J.Zu=function(e){var N=e.formatId,y=Sl({itag:N.itag,lmt:N.lmt,xtags:N.xtags}),w,E,A=new bH(((w=e.Hj)==null?void 0:w.first)||0,((E=e.Hj)==null?void 0:E.DJ)||0),T,p;w=new bH(((T=e.indexRange)==null?void 0:T.first)||0,((p=e.indexRange)==null?void 0:p.DJ)||0);if(!this.rP.K.get(y)){y=e.GF||{};if(this.policy.jI){var C,r;e=(C=e.mimeType)!=null?C:"";C=(r=N.itag)!=null?r:0;r=nd[""+C];y.mimeType=r!=="9"&&r!=="9h"?e:'video/webm; codecs="'+["vp09",r==="9h"?"02":"00","51",r==="9h"?"10":"08","01.01.01.01.00"].join(".")+ '"'}else y.mimeType=e.mimeType;y.itag=N.itag;y.lastModified=""+(N.lmt||0);y.xtags=N.xtags;N=this.rP;r=pC("");C=TE(y,null);eI(N,new L1(r,C,A,w))}}; g.J.fm=function(e){this.qU.fm(e)}; g.J.onSnackbarMessage=function(e){if(this.policy.Lu)this.qU.onSnackbarMessage(e)}; g.J.gD=function(e){this.FU=e;this.l4=(0,g.iC)();this.qU.gD(e)}; g.J.tb=function(e,N,y){this.qU.tb(e,N,y)}; g.J.qf=function(e){e.scope===2&&(this.csP=e);this.qU.qf(e)}; g.J.Ku=function(){this.Mv=!0;this.qU.Ku()}; g.J.bQ=function(e){this.policy.DD&&this.qU.bQ(e)}; g.J.jl=function(e){this.qU.jl(e,this.YK())}; g.J.DI=function(e){e.RS===3&&(this.ZP=!0);this.qU.DI(e)}; g.J.Yy=function(e){this.qU.Yy(e)}; g.J.N5=function(e){this.qU.N5(e)}; g.J.canRetry=function(){this.Ss();return this.r7.canRetry(!1)}; g.J.dispose=function(){if(!this.Ss()){g.x.prototype.dispose.call(this);this.r7.dispose();var e;(e=this.Yc)==null||e.dispose();this.IJ(-1);this.oC()}}; g.J.IJ=function(e){this.state=e;ef(this.qU,this)}; g.J.aN=function(){return this.info.aN()}; g.J.aK=function(){return this.Mv}; g.J.xH=function(){return this.csP}; g.J.Iu=function(e,N,y){y.clipId&&(this.clipId=y.clipId);this.policy.L&&!N&&(this.d4=y.ZN,this.qF=y.startMs);var w=0;this.policy.Pf&&this.Eo&&this.clipId&&(w=XC(this.Eo,this.clipId)/1E3);this.uP.Iu(e,N,y,w);this.policy.y_&&this.FU&&this.Aa instanceof j3&&(w=this.FU.NL,this.Aa.Iu(y.durationMs/1E3,N,w>0&&y.ZN+1>=w));this.uP.XZ.get(e).CT=!0}; g.J.Km=function(e,N){this.uP.Km(e,N)}; g.J.Q0=function(e){this.requestIdentifier=e}; g.J.O$=function(e){return this.uP.O$(e)}; g.J.Lz=function(e){return this.uP.Lz(e)}; g.J.bZ=function(e){return this.uP.bZ(e)}; g.J.Np=function(){return this.uP.Np()}; g.J.df=function(){return 1}; g.J.YK=function(){return this.Aa.requestNumber}; g.J.hG=function(){return this.requestIdentifier}; g.J.xv=function(){return this.clipId}; g.J.nC=function(){return this.R2.nC()}; g.J.FG=function(){this.oC()}; g.J.oC=function(){this.Aa.deactivate();var e;(e=this.xhr)==null||e.abort()}; g.J.isComplete=function(){return this.state>=3}; g.J.V4=function(){return this.state===3}; g.J.Q_=function(){return this.state===5}; g.J.Mn=function(){return this.state===4}; g.J.U1=function(){return this.isComplete()}; g.J.C9=function(){return this.state>=1}; g.J.qY=function(){return this.policy.jn?this.r7.qY():0}; g.J.BM=function(){this.policy.jn&&ef(this.qU,this)}; g.J.Yv=function(){return JR1(this.info)}; g.J.pw=function(){return this.r7.pw()}; g.J.Cz=function(){var e=Ji5(this.r7);Object.assign(e,Cd0(this.info));e.req="sabr";e.rn=this.YK();var N;if((N=this.xhr)==null?0:N.status)e.rc=this.policy.d2?this.xhr.status:this.xhr.status.toString();var y;(N=(y=this.xhr)==null?void 0:y.Cq())&&(e.msg=N);this.X$&&(y=Wh5(this,this.X$-this.Aa.nR()),e.letm=y.g1l,e.mrbps=y.zP,e.mram=y.QD);return e}; g.J.Ue=function(){return{d4:this.d4,qF:this.qF,isDecorated:this.info.isDecorated()}};O__.prototype.tick=function(e,N){this.ticks[e]=N?window.performance.timing.navigationStart+N:(0,g.iC)()};g.b(Xy,g.pT);g.J=Xy.prototype; g.J.Q8=function(e,N,y,w){var E=!1;this.policy.Ut&&(E=y?this.l9===e.Ch:this.qg===e.Ch);if(this.Z&&w&&!E){w=[];E=[];var A=[],T=void 0,p=0;N&&(w=N.J,E=N.N,A=N.j,T=N.K,p=N.Z8,this.policy.yn&&this.Fh("sdai",{sq:e.Ch,ssvicpns:w.join("."),ssvid:E.join(".")}));this.policy.Ut&&(y?this.l9=e.Ch:this.qg=e.Ch);this.Z.O7(e.Ch,e.startTime,this.N,w,E,A,y,p,T)}if(this.policy.Ut){if(y||this.policy.xX){this.N===1&&dB(this,5,"noad");var C;e.Ch!==((C=this.J)==null?void 0:C.Ch)&&(AdM(this,e,N,y),isNaN(e.startTime)||IO(this, e.Ch,iO(this,e.startTime,e.Ch),!!N,this.Z))}}else y&&AdM(this,e,N)}; g.J.Ya=function(e,N,y){var w=this.videoTrack.J.index.vY()<=N;this.J={Re:e,Ch:N,Y$:y};w&&PT(this,e,N)}; g.J.f_=function(){this.Z&&this.Z.f_()}; g.J.Fh=function(e,N){this.tW.Fh(e,N)}; g.J.Ll=function(e,N){var y=this.videoTrack.J.index.zI(e);if(y>=0){var w;var E=((w=N.Yk.ow(y,2))==null?void 0:w.Yh)||"";if(this.policy.L||E)return N.Af(e,y),vT(this.tW,e,e,y),this.Fh("sdai",{cmskpad:1,t:e.toFixed(3),sq:y}),!0}this.Fh("sdai",{cmskpad:0,t:e.toFixed(3),sq:y});return!1};g.b(fP,g.x);fP.prototype.mK=function(e,N,y){y=y===void 0?{}:y;this.policy.G4=k_(e,y,this.j,N===void 0?!1:N)};xX.prototype.gF=function(e){var N=this;if(this.policy.i$){var y=new Set(e);y.size===this.i9.size&&[].concat(g.B(y)).every(function(w){return N.i9.has(w)})||(this.tW.Fh("lwnmow",{itagDenylist:[].concat(g.B(e)).join(",")}),this.tW.Bm(!!y.size),this.D=-1,this.i9=y,jr(this,this.J),this.Zl=!0)}}; xX.prototype.mK=function(e,N,y){y=y===void 0?{}:y;var w=this.policy.G4;this.L.mK(e,N===void 0?!1:N,y);if(w!==this.policy.G4){jr(this,this.J);nP(this);var E,A;w>this.policy.G4&&((E=this.K)==null?0:Kd(E.info))&&((A=this.nextVideo)==null||!Kd(A.info))&&(this.Ng=!0)}};KP.prototype.lZ=function(e){this.timestampOffset=e;this.flush()}; KP.prototype.flush=function(){if(this.J.pos>0){var e={a:this.track.qG(),u:this.J.jY(),pd:Math.round(this.j),ad:Math.round(this.K)},N=this.N;if(N){var y=N.J.info;e.itag=y.itag;y.J&&(e.xtags=y.J);e.sq=N.Ch;e.st=N.startTime;e.sd=N.duration;this.track.policy.Ub&&(e.si=N.O2());N.j&&(e.esl=N.N+N.K);N.eY()&&(e.eos=1)}isNaN(this.timestampOffset)||(e.to=this.timestampOffset);var w;if(N=(w=this.track.TW)==null?void 0:w.N7({})){for(var E in N)this.Z[E]!==N[E]&&(e["sb_"+E]=N[E]);this.Z=N}this.track.Fh("sbu", e);this.J.reset();this.buffered=[];this.L=this.K=this.j=0;this.timestampOffset=this.N=void 0}};OY.prototype.dispose=function(){this.Kh=!0}; OY.prototype.Ss=function(){return this.Kh}; g.b(aO,Error);var QY5=new Uint8Array([0,0,0,38,112,115,115,104,0,0,0,0,237,239,139,169,121,214,74,206,163,200,39,220,213,29,33,237,0,0,0,6,72,227,220,149,155,6]);yU.prototype.skip=function(e){this.offset+=e}; yU.prototype.mN=function(){return this.offset};g.J=O1n.prototype;g.J.BW=function(){return this.N}; g.J.SL=function(){return this.N.length?this.N[this.N.length-1]:null}; g.J.w4=function(){this.N=[];JW(this);AW(this)}; g.J.Of=function(e){this.Et=this.N.shift().info;e.info.Bw(this.Et)}; g.J.Lz=function(){return g.dn(this.N,function(e){return e.info})}; g.J.qG=function(){return!!this.Z.info.audio}; g.J.getDuration=function(){return this.Z.index.f9()};g.b(IE,H0);g.J=IE.prototype;g.J.onStateChange=function(){this.Ss()&&(oO(this.uP,this.formatId),this.J.dispose())}; g.J.Cz=function(){var e=qfF(this.uP,this.formatId),N;var y=((N=this.uP.XZ.get(this.formatId))==null?void 0:N.bytesReceived)||0;var w;N=((w=this.uP.XZ.get(this.formatId))==null?void 0:w.ex)||0;return{expected:e,received:y,bytesShifted:N,sliceLength:bO(this.uP,this.formatId),isAnyMediaEndReceived:this.uP.i8(this.formatId)}}; g.J.yu=function(){return 0}; g.J.RL=function(){return!0}; g.J.O$=function(){return this.uP.O$(this.formatId)}; g.J.uQ=function(){return[]}; g.J.bZ=function(){return this.uP.bZ(this.formatId)}; g.J.pw=function(){return this.lastError}; g.J.qY=function(){return 0};g.b($e,g.x);g.J=$e.prototype;g.J.qG=function(){return!!this.J.info.audio}; g.J.SL=function(){return this.j.SL()}; g.J.Of=function(e){this.j.Of(e);var N;(N=this.U)!=null&&(N.L.add(e.info.Ch),N.J=hBF(N,N.gT,N.Ki,e,N.J),N.K=e,N.Z=(0,g.iC)());this.JM=Math.max(this.JM,e.info.J.info.JM||0)}; g.J.getDuration=function(){if(this.policy.N){var e=this.tW.bP();if(e)return LH(e)}return this.J.index.f9()}; g.J.w4=function(){zc(this);this.j.w4()}; g.J.tG=function(){return this.j}; g.J.isRequestPending=function(e){return this.K.length?e===this.K[this.K.length-1].info.QB[0].Ch:!1}; g.J.lZ=function(e){var N;(N=this.U)==null||N.lZ(e);var y;(y=this.D)==null||y.lZ(e)}; g.J.Fh=function(e,N){this.tW.Fh(e,N)}; g.J.wS=function(){return this.tW.wS()}; g.J.dispose=function(){var e;(e=this.D)==null||e.flush();g.x.prototype.dispose.call(this)};g.b(qN,g.x);qN.prototype.K=function(){this.N++>15||(this.J=!this.J,new qhF(this.tW,this.policy,this.bk,this.yl,this.J),this.delay.start())}; g.J=qhF.prototype;g.J.Fm=function(){}; g.J.X_=function(){}; g.J.c_=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.BP()===this.size)this.tW.Fh("rqs",this.getInfo());else{var e="net.connect";this.xhr.status>200?e="net.badstatus":this.xhr.uJ()&&(e="net.closed");this.onError(e)}}; g.J.onError=function(e){var N=this;this.tW.handleError(e,this.getInfo());S3("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(y){N.tW.Fh("pathprobe",y)},function(y){N.tW.handleError(y.errorCode,y.details)})}; g.J.getInfo=function(){var e=this.timing.gL();e.shost=lN(this.location.tA);e.pb=this.size;return e};g.b(ZU,g.x); ZU.prototype.G=function(e,N){if(e.G){this.rP.isLive?(e=this.rP.L$&&this.rP.j?e.J.Tn(this.rP.L$,!1):e.J.Od(Infinity),e.Hf=this.Hf):e=e.J.Tn(0,!1);if(this.Ng){var y=this.Ng;e.Hf===0&&(e.L=y.U)}else e.L=this.D;return e}y=e.N;if(!y.J.Yz())return y.J.I8()?(e=hz(this.L,e.J.info.JM,N.J.info.JM,0),e=y.J.rh(y,e)):e=y.J.oF(y),e;var w=y.XT-this.tW.getCurrentTime(),E=!y.range||y.K===0&&y.N===0?0:y.range.length-(y.N+y.K),A=y.J;this.xY(e,w)&&E===0&&(this.rP.isManifestless?A=e.J:(A=y.startTime+Jj,y.K&&(A+=y.duration), g3(e,A),y=e.N,A=y.J));A.I8()?(E=this.K,N=hz(this.L,A.info.JM,N.J.info.JM,w,E.j.length>0&&E.U===0&&this.tW.Sh),w=vl(e),e=y.J.rh(y,N),(N=e.K)&&e.QB.length>1&&(w||e.yl.N||e.QB[0].J!==y.J?e=y.J.rh(y,e.QB[0].K):(w=e.QB[e.QB.length-1],A=w.K/N,!w.j&&A<.4&&(e=y.J.rh(y,N-w.K))))):(y.Ch<0&&(N=vx(y),N.pr=""+e.K.length,this.tW.isSeeking()&&(N.sk="1"),N.snss=y.L,this.tW.Fh("nosq",N)),e=A.oF(y));if(this.policy.i9)for(y=g.c(e.QB),N=y.next();!N.done;N=y.next())N.value.type=6;return e}; ZU.prototype.xY=function(e,N){if(!vl(e)||!e.J.Yz())return!1;var y=this.K.Zl||cms(e)||N<=this.policy.vV||this.K.Ng;this.logger.debug(function(){return"ready to adapt: "+y+", upgrade pending: "+cms(e)+", health: "+N}); return y}; ZU.prototype.fh=function(){g.x.prototype.fh.call(this)}; var Jj=2/24;g.b(Oe,g.x);Oe.prototype.vr=function(e,N,y){var w;var E=((w=this.N)==null?void 0:w.reason)==="m"?"m":this.N&&LsH(this,this.N)?this.N.reason:"a";this.tW.vr(new VW(e,E,y));Hl(this.tW,N,e,!0)}; Oe.prototype.QP=function(e,N){for(var y=g.c(this.l9),w=y.next();!w.done;w=y.next())if(w=w.value,w.id===e)return this.qK.Sw||(this.K=[w]),this.Z=this.rP.J[e],tW(this.qK)&&(this.Ng=!0),new VW(this.Z,N?"t":"m");this.K=[];return null}; Oe.prototype.mK=function(e,N,y){y=y===void 0?{}:y;this.J.mK(e,N===void 0?!1:N,y)};ls.prototype.setData=function(e,N,y,w){var E=this;w=w===void 0?{}:w;if(y==null?0:y.Xz)this.Na=H_M(this,y,w),e.Td=this.yl.Td();if(this.aN())return!0;this.data=e;this.J=AR5(e,N,function(A,T){var p;(p=E.qU)==null||p.g4(A,T)},y==null?void 0:y.K); if(!this.J)return!1;this.N=g.A5(this.J,NFM);return!0}; ls.prototype.aN=function(){return this.requestType===1}; ls.prototype.Io=function(){var e;return((e=this.qU)==null?void 0:e.Io())||0}; ls.prototype.isDecorated=function(){var e;return!((e=this.data)==null||!e.Ag)};FE.prototype.encrypt=function(e){this.uB.exports.AES128CTRCipher_encrypt(this.cipher,e.byteOffset,e.byteLength);return e}; FE.prototype.Ss=function(){return this.cipher===0}; FE.prototype.dispose=function(){this.uB.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};o9.prototype.encrypt=function(e,N){return Nc(this.subtleCrypto.encrypt({name:"AES-CTR",length:128,counter:N},this.key,e).catch(function(y){return Promise.reject(y.name+": "+y.message)}).then(function(y){return new Uint8Array(y)}))}; o9.prototype.Ss=function(){return this.J}; o9.prototype.dispose=function(){this.J=!0}; gH.Jw(o9,{encrypt:SD("oan2")});bs.prototype.encrypt=function(e,N){oo(this.N,N);return Nc(this.N.encrypt(e))}; bs.prototype.Ss=function(){return this.J}; bs.prototype.dispose=function(){this.J=!0}; gH.Jw(bs,{encrypt:SD("oap")});hJ.prototype.encrypt=function(e,N){var y=this.uB.MJ(N),w=this.J;w.uB.exports.AES128CTRCipher_setCounter(w.cipher,(y!=null?y:N).byteOffset);N=this.uB.MJ(e);this.J.encrypt(N!=null?N:e);y&&this.uB.free(y.byteOffset);return N?Nc(this.uB.F4(N)):Nc(e)}; hJ.prototype.Ss=function(){return this.J.Ss()}; hJ.prototype.dispose=function(){this.J.dispose()}; gH.Jw(hJ,{encrypt:SD("oalw")});cO.prototype.encrypt=function(e,N){var y=this,w=yA("");e.length<=this.QR&&this.J&&!this.j&&(w=Tm(w,function(){return y.J?y.J.encrypt(e,N):yA("wasm unavailable")})); e.length<=this.yW&&(this.J&&this.j&&(w=Tm(w,function(){return y.J?y.J.encrypt(e,N):yA("wasm unavailable")})),w=Tm(w,function(){return MVH(y,e,N)})); return Tm(Tm(w,function(){return lWM(y,e,N)}),function(){return MVH(y,e,N)})}; cO.prototype.Ss=function(){return this.L}; cO.prototype.dispose=function(){this.L=!0;var e;(e=this.K)==null||A$(e,g.JV);g.JV(this.J);g.JV(this.N)};km.prototype.encrypt=function(e){(0,g.iC)();return(new LC(this.J.J)).encrypt(e,this.iv)}; km.prototype.decrypt=function(e,N){(0,g.iC)();return(new LC(this.J.J)).decrypt(e,N)}; km.prototype.Ss=function(){return this.K}; km.prototype.dispose=function(){this.K=!0;g.JV(this.N)};g.b(BO,g.x);BO.prototype.K=function(e,N){if(N){N=N instanceof g.YE?N:XE(this,N);var y;((y=this.J.get(e))==null?void 0:lN(y.location))!==lN(N)&&this.J.set(e,new XgH(N,e))}else this.J.delete(e)}; BO.prototype.load=function(){var e=this,N,y,w,E,A,T,p,C,r,Y;return g.f(function(M){switch(M.J){case 1:N=e.J.get(0);g.c5(M,2);var l;if(l=N&&!e.N)l=lN(N.location),l=e.N===er(l);if(l){M.u9(4);break}return g.D(M,dE(e,e.N?2:0),5);case 5:if(y=M.N)e.K(0,y),Sd(y)&&e.K(1,oh(y));case 4:g.B5(M,3);break;case 2:w=g.XH(M);g.uA(w);if(!e.N){M.u9(3);break}e.N=!1;return g.D(M,e.load(),7);case 7:return M.return();case 3:if(!e.ph.experiments.gP("html5_onesie_probe_ec_hosts")){M.u9(0);break}g.c5(M,9);E=e;A=E.K;T=3;return g.D(M, dE(e,1),11);case 11:return A.call(E,T,M.N),p=e,C=p.K,r=4,g.D(M,dE(e,2),12);case 12:C.call(p,r,M.N);g.B5(M,0);break;case 9:Y=g.XH(M),g.uA(Y),g.hn(M)}})}; BO.prototype.G=function(){var e=this,N,y;return g.f(function(w){g.NA(e.U);N=g.Y2(e.ph.experiments,"html5_onesie_prewarm_max_lact_ms");if(z_()>=N)return w.return();(y=e.J.get(0))&&kX5(e,y);g.hn(w)})}; var h$F={WNs:0,hMg:1,D3l:2,lcP:3,UXk:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};I9.prototype.decrypt=function(e){var N=this,y,w,E,A,T,p;return g.f(function(C){switch(C.J){case 1:if(N.J.length&&!N.J[0].isEncrypted)return C.return();N.N=!0;N.NA.lB("omd_s");y=new Uint8Array(16);cM()?w=new Uh(e):E=new LC(e);case 2:if(!N.J.length||!N.J[0].isEncrypted){C.u9(4);break}A=N.J.shift();if(!w){T=E.decrypt(A.buffer.YX(),y);C.u9(5);break}return g.D(C,w.decrypt(A.buffer.YX(),y),6);case 6:T=C.N;case 5:p=T;for(var r=0;r=4)){var N=HO(this),y=this.xhr;N.rc=y.status;e&&(N.ab=!0);if(y.Cq()){var w="onesie.net";N.msg=y.Cq()}else y.status>=400?w="onesie.net.badstatus":y.CG()?this.h8||(w="onesie.response.noplayerresponse"):w=y.status===204?"onesie.net.nocontent":"onesie.net.connect";w?this.hA(new P3(w,N)):(this.lB("or_fs"),this.Aa.KF((0,g.iC)(),y.BP(),0),this.IJ(4),this.gK&&this.Fh("rqs",N));this.gK&&this.Fh("ombre", "ok."+ +!w);this.vS=!1;WO(this);mp(this.NA);if(!this.nH){this.OJ.stop();var E;(E=this.fP)==null||E.stop()}var A;if(e=(A=this.Uk)==null?void 0:BwP(A))for(A=0;A1E3){var e;(e=this.Aa)==null||e.Ep((0,g.iC)());e=HO(this);if(this.ph.B9()&&this.xhr instanceof K5){var N=this.xhr;e.xrs=N.xhr.readyState;e.xpb=N.J.getLength();e.xdc=N.j}this.hA(new P3("net.timeout",e))}}else(0,g.iC)()-this.Aa.J>1E4&&((N=this.Aa)==null||N.Ep((0,g.iC)()),this.n1());this.isComplete()||this.ZY.start()}}; g.J.n1=function(){this.logger.info("Onesie request timed out");this.vS=!1;if(!WO(this)){var e=HO(this);e.timeout="1";this.hA(new P3("onesie.request",e))}}; g.J.hA=function(e){var N=this;e=I2(e);this.Ke?this.JW.Qi(e):(this.P7.reject(e),this.Ke=!0);mp(this.NA);this.nH||this.OJ.stop();this.lB("or_fe");var y,w;(y=this.Uk)==null||(w=BwP(y))==null||w.forEach(function(E){N.Fh("pathprobe",E)}); this.IJ(5);this.dispose()}; g.J.isComplete=function(){return this.state>=3}; g.J.Mn=function(){return this.state===4}; g.J.U1=function(e){var N,y;return this.isComplete()||!!((N=this.ZM)==null?0:(y=N.get(e))==null?0:y.J)}; g.J.V4=function(){return!1}; g.J.Q_=function(){return this.state===5}; g.J.notifySubscribers=function(e){for(var N=0;N102400&&!this.UC&&(this.lB("or100k"),this.UC=!0);if(e.MO()){var N=e.Qg(),y=N.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+y}); this.gK&&this.Fh("ombrss","len."+y);this.uI.feed(N)}if(this.ZM)for(var w=g.c(this.ZM.keys()),E=w.next();!E.done;E=w.next()){var A=E.value;e=void 0;(e=this.ZM.get(A))==null||e.Wg();this.notifySubscribers(A)}}catch(T){this.hA(T)}}; g.J.YK=function(){return this.Aa.requestNumber}; g.J.hG=function(e){return this.oa.get(e)}; g.J.Ue=function(){return{d4:this.d4,qF:this.qF,isDecorated:!1}};g.b(OB,g.x);g.J=OB.prototype;g.J.Fc=function(e,N){this.Kh=void 0;F05(this);Yn5(this,e,N)}; g.J.lS=function(e){if(this.J.length===0)return!1;var N=this.J[0];return N instanceof KH?e===this.tW.getCurrentTime()*1E3:!(N instanceof kX&&pgP(N.info))&&Math.abs(N.Yv()-e)<50}; g.J.tp=function(e){this.N=e;this.Kh=(0,g.iC)()+(e.backoffTimeMs||0)}; g.J.fu=function(e,N){if(e.action===void 0){var y=this.JW.F2();y!==void 0&&this.tW.ou(y)}else if(e.action!==0||!this.Et)switch(e.action===0&&this.policy.hX&&(e.action=2),y={},y.reason=e.MNg,y.action=e.action,y.rn=N,e.action){case 1:this.policy.L&&this.j&&this.j.Ok(void 0,void 0,y);break;case 0:this.Et=!0;this.videoData.Au()&&this.policy.L&&this.j&&this.j.Ok(void 0,void 0,y,!1);this.tW.qH(y);break;case 2:this.tW.handleError("sabr.config",y,1);break;case 5:Vk9(this.JW,!0);break;case 6:Vk9(this.JW,!1); break;case 3:this.policy.Xz&&((e=this.rP.U)!=null&&(e.U=!0),this.tW.handleError("sabr.hostfallback",y))}}; g.J.J9=function(e,N,y,w){if(this.policy.N){this.tW.Fh("ssap",{rn:w,v:N,tl:oK3(e)});var E=this.tW.bP();e={YS:e,context:y,version:N};MxF(this,y);E?lG9(this,E,e):(this.tW.Fh("ssap",{cacheclips:1,rn:w,v:N}),this.U=e)}}; g.J.qf=function(e){var N=this.policy.Kh||this.policy.Sz||this.policy.N;this.tW.Fh("ssap",{onsbrctxt:e.type,dflt:e.sendByDefault,enable:N?1:0});N&&MxF(this,e);this.policy.Sz&&this.JW.qf(e)}; g.J.Ku=function(){}; g.J.fm=function(e){if(e.Fl!==void 0&&e.Jj){var N=e.Fl/e.Jj;this.audioTrack.G=!1;this.videoTrack.G=!1;if(this.policy.qg||this.policy.YB||this.policy.uo)this.tW.jZ.N=!1;this.tW.Kz(N,1);if(this.JW.getCurrentTime()!==N){var y={BY:"sabr_seek",CI:!0,Gf:!0};e.seekSource&&(y.seekSource=e.seekSource);tz(this.tW,N+.1,y)}}}; g.J.onSnackbarMessage=function(e){this.JW.publish("onSnackbarMessage",e)}; g.J.gD=function(e){e.NL&&e.cz&&Fu(this.rP,e.NL,e.cz);this.policy.fk&&(e.eO&&e.vA&&(this.rP.gf=e.eO/e.vA),e.rC&&e.LK&&(this.rP.zg=e.rC/e.LK));e.MD!=null&&this.JW.LG(e.MD);this.policy.TV&&e.C7&&(e=((0,g.iC)()-e.C7)/1E3,this.tW.eE.Kj(1,e))}; g.J.DI=function(e){this.tW.DI(e)}; g.J.tb=function(e,N,y){this.policy.K&&this.tW.Fh("sabrctxtplc",{start:e?e.join("_"):"",stop:N?N.join("_"):"",discard:y?y.join("_"):""});if(e){e=g.c(e);for(var w=e.next();!w.done;w=e.next())this.UH.add(w.value)}if(N)for(N=g.c(N),e=N.next();!e.done;e=N.next())e=e.value,this.UH.has(e)&&this.UH.delete(e);if(y)for(y=g.c(y),N=y.next();!N.done;N=y.next())N=N.value,this.videoData.sabrContextUpdates.has(N)&&(this.videoData.sabrContextUpdates.delete(N),N===3&&(this.videoData.wh=""))}; g.J.bQ=function(){}; g.J.b7=function(e){this.G=e}; g.J.Fy=function(e){this.aq=e}; g.J.jl=function(e,N){uz(this.policy,e,4,N)}; g.J.Yy=function(e){if(e==null?0:e.wI)if(e=e.wI.lH){e=g.c(e);for(var N=e.next();!N.done;N=e.next())if(N=N.value,N.formatId){var y=this.rP.K.get(Sl(N.formatId));y&&y.info&&(y.info.debugInfo=N.debugInfo)}}}; g.J.N5=function(e){(e=e==null?void 0:e.reloadPlaybackParams)&&this.JW.publish("reloadplayer",e)}; g.J.vE=function(){return this.JW.vE()||""}; g.J.Io=function(){var e=ke(this.audioTrack,!0)*1E3,N=ke(this.videoTrack,!0)*1E3;return Math.min(e,N)}; g.J.g4=function(e,N){this.tW.Fh(e,N)}; g.J.Dr=function(e){Z3n(this.tW,cdE(this.Wk,e))}; g.J.fh=function(){g.x.prototype.fh.call(this);this.N=void 0;Yn5(this,!0,"i");this.J=[]};b35.prototype.Ga=function(e,N){if(this.j)return XH9(this,N);if(N=u3(e)){var y=N.N;y&&y.K&&y.J&&(e=e.K.length?e.K[0]:null)&&e.state>=2&&!e.Q_()&&e.info.Hf===0&&(this.j=e,this.G=y,this.N=N.info,this.Z=this.startTimeSecs=Date.now()/1E3,this.L=this.N.startTime)}return NaN}; b35.prototype.clear=function(){this.N=this.G=this.j=null;this.J=this.L=this.Z=this.startTimeSecs=NaN;this.K=!1};g.b(g.Ev,g.x);g.J=g.Ev.prototype;g.J.initialize=function(e,N,y){this.logger.debug(function(){return"Initialized, t="+e}); e=e||0;this.policy.J||(N=B4M(this.J),nK3(this.JW,new VW(N.video,N.reason)),this.JW.wJ(new VW(N.audio,N.reason)));this.rP.isManifestless&&WsF(this.L);this.G&&c3H(this.G,this.videoTrack.J);N=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var w=!this.rP.isManifestless;this.policy.A4&&(w=w||this.rP.Ta);this.policy.Rq||(this.currentTime=w?e:N);this.policy.qg&&this.seek(this.getCurrentTime(),{}).On(function(){}); if(this.policy.J){var E;((E=this.Ng)==null?0:U_E(E,this.vE()||""))&&zL5(this)&&vKs(this,this.videoTrack)&&vKs(this,this.audioTrack)&&(Sn0(this.K,this.Ng),this.policy.Z&&IG9(this))}else this.Kh&&(i35(this,this.videoTrack),i35(this,this.audioTrack),u9M(this.Kh),delete this.Kh);y?(this.policy.CN?(this.SR=y,Tt(this,y)):Tt(this,!1),g.NA(this.Pg)):(y=this.getCurrentTime()===0,nr(this.L,this.videoTrack,this.videoTrack.J,y),nr(this.L,this.audioTrack,this.audioTrack.J,y),this.policy.J&&aW_(this.K,!0),this.policy.qg|| this.seek(this.getCurrentTime(),{}).On(function(){}),this.timing.tick("gv")); (this.rP.L$||this.rP.ZK||this.rP.aq||this.rP.pX||this.rP.PY)&&this.JW.HS(this.rP)}; g.J.resume=function(){if(this.isSuspended||this.Sh){this.logger.debug("Resumed.");this.cU=this.Sh=this.isSuspended=!1;try{this.Ga()}catch(e){g.t0(e)}}}; g.J.Nc=function(){return!this.policy.a9}; g.J.wb=function(e,N){e=e===void 0?!1:e;N=N===void 0?!1:N;this.logger.debug("detaching media source");fGF(this);this.JW.fO()&&(this.Z=NaN);e?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.aq&&this.Fh("loader",{setsmb:1}),this.policy.i9=!0,this.w4()):(this.policy.CN?Tt(this,this.SR):Tt(this,!1),N||this.w4())}; g.J.setAudioTrack=function(e,N,y){y=y===void 0?!1:y;if(!this.Ss()){var w=!isNaN(N);y&&w&&(this.audioTrack.Ng=Date.now(),this.policy.UY&&(this.Ut=!0));if(this.policy.J){var E=this.N.QP(e.id,w);this.logger.debug(function(){return"Logging new audio format: "+E.J.info.id}); this.JW.wJ(E)}else{var A=h_E(this.J,e.id,w);this.logger.debug(function(){return"Logging new audio format: "+A.audio.info.id}); this.JW.wJ(new VW(A.audio,A.reason))}if(w&&(y=this.audioTrack.J.index.zI(N),this.Fh("setAudio",{id:e.id,cmt:N,sq:y}),y>=0)){this.policy.J&&(this.N.U=!0,this.Fc(!0,"mosaic"));Bl(this.audioTrack,y,NaN,NaN);!this.policy.im&&this.rP.isLive&&l2(this.rP,y,!1);return}this.JW.P_()}}; g.J.setPlaybackRate=function(e){e!==this.D.getPlaybackRate()&&this.D.setPlaybackRate(e)}; g.J.fH=function(e){var N=this.K.G;this.K.b7(e);this.Fh("scfidc",{curr:Sl(N),"new":Sl(e)});e&&Sl(e)!==Sl(N)&&(this.Fc(!1,"caption change"),this.Ga())}; g.J.tE=function(e){this.K.Fy(e)}; g.J.vr=function(e){var N=e.J.info.qG();this.logger.debug(function(){return"New "+(N?"audio":"video")+" format from SABR: "+N$(e.J.info)}); N?this.JW.wJ(e):nK3(this.JW,e)}; g.J.Dr=function(e){Px(e.QB[e.QB.length-1])&&Z3n(this,cdE(this.J,e.QB[0].J))}; g.J.rf=function(){return this.JW.rf()}; g.J.ND=function(){return this.JW.ND()}; g.J.DI=function(e){this.JW.X().B9()&&this.Fh("sps",{status:e.RS||""});if(e.RS===1)this.JW.videoData.JX=0;else if(e.RS===2||e.RS===3){var N=!1;if(e.RS===3){N=this.JW.kL();var y;this.FZ=(y=e.FiB)!=null?y:Infinity;this.JW.videoData.JX=N+1;(N=Kr(this))&&this.GR(!0)}this.JW.Du(!0,N)}}; g.J.HZ=function(){return this.JW.HZ()}; g.J.XW=function(){return this.JW.XW()}; g.J.k5=function(e){this.JW.k5(e)}; g.J.o9B=function(){var e,N=(e=this.JW.LC())==null?void 0:e.getCurrentTime();N?this.JW.Fh("rms",{cta:N}):g.NA(this.pX)}; g.J.Ga=function(){qnn(this);if(this.TZ&&nh(this.TZ)&&!this.TZ.Vh()&&(!this.policy.Rq||isFinite(this.getCurrentTime()))){var e=MN(this.videoTrack);e=this.policy.yw&&e&&e.eY();this.rP.isManifestless&&this.rP.j&&rt(this.rP)?(this.Z=rt(this.rP),this.TZ.zV(this.Z)):SI(this.rP)&&!e?isNaN(this.Z)?(this.Z=this.getCurrentTime()+3600,this.TZ.zV(this.Z)):this.Z<=this.getCurrentTime()+1800&&(this.Z=Math.max(this.Z+1800,this.getCurrentTime()+3600),this.TZ.zV(this.Z)):this.TZ.isView||(e=Math.max(this.audioTrack.getDuration(), this.videoTrack.getDuration()),(!isFinite(this.Z)||this.Z!==e)&&e>0&&(this.TZ.zV(e),this.Z=e))}if(!this.Ss())if(CC(this.rP)&&this.rP.Q_()){var N=this.rP;this.handleError("manifest.net.retryexhausted",N.Ut?{rc:N.Ie}:{rc:N.Ie.toString()},1)}else if(this.policy.J)a:{try{a9(this.K);this.rP.isManifestless&&this.policy.Z&&V9(this.jZ);if(Vxs(this)&&this.TZ&&!HI(this.TZ)&&this.videoTrack.aq&&this.audioTrack.aq){this.Fh("ssap",{delaysb:1,v:this.videoTrack.J.info.id,vf:this.videoTrack.J.info.Iq,a:this.audioTrack.J.info.id, af:this.audioTrack.J.info.Iq});var y=this.TZ,w=this.videoTrack.J,E=this.audioTrack.J;!HI(y)&&E&&w&&(Sz5(y,w.info,E.info,this.policy.jN),tx0(this,y))}var A;((A=this.TZ)==null?0:HI(A))&&this.bu();this.policy.J||Aj(this);aW_(this.K)}catch(p){g.uA(p);N=p;if(N.message.includes("changeType")){this.Fh("ssap",{exp:N.name,msg:N.message,s:N.stack});break a}this.handleError("fmt.unplayable",{exp:N.name,msg:N.message,s:N.stack},1)}AYE(this);g.NA(this.Bk)}else if(!this.rP.N||!XUF(this.videoTrack)&&!XUF(this.audioTrack)|| (this.videoTrack.L||this.audioTrack.L)&&this.policy.SR?y=!1:(this.w4(),this.JW.seekTo(Infinity,{BY:"checkLoaderTracksSync",Kz:!0}),y=!0),!y){qnn(this);this.rP.isManifestless&&(P2M(this.videoTrack),P2M(this.audioTrack),V9(this.jZ),(y=u3(this.videoTrack))&&y.N&&(y=y.N.K&&!this.policy.o1,this.Fh(y===this.policy.U.Z0?"strm":"strmbug",{strm:y,sfmp4:this.policy.U.Z0,dfs:this.policy.o1},!0)));if(this.TZ)this.bu();else if(this.policy.j){var T;y=!1;if(this.policy.Fq)for(w=g.c([this.videoTrack,this.audioTrack]), E=w.next();!E.done;E=w.next()){A=E.value;for(E=u3(A);E&&A.SL()!==MN(A);E=u3(A))A.Of(E);y=y||!!E}else(N=u3(this.videoTrack))&&this.videoTrack.Of(N),(T=u3(this.audioTrack))&&this.audioTrack.Of(T);bz(this.videoTrack)&&bz(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(N||T||y)&&sB(this)}Aj(this);nr(this.L,this.videoTrack,this.videoTrack.J,!1);nr(this.L,this.audioTrack,this.audioTrack.J,!1);this.policy.uf||jf9(this,this.videoTrack,this.audioTrack);jI0(this.L,this.videoTrack, this.audioTrack);jI0(this.L,this.audioTrack,this.videoTrack);AYE(this);this.G&&(N=this.G,N.j?(T=N.Z+N.policy.xw,N.K||(T=Math.min(T,N.startTimeSecs+N.policy.Tg)),N=Math.max(0,T*1E3-Date.now())):N=NaN,isNaN(N)||g.NA(this.jn,N));g.NA(this.Bk)}}; g.J.qH=function(e){this.JW.qH(e)}; g.J.bu=function(){var e=this;if(this.TZ){var N=this.TZ.J,y=this.TZ.N;rY_(this,this.audioTrack);rY_(this,this.videoTrack);var w=mOM(this);if(w){if(this.policy.oS){if(!N.QO()){var E=u3(this.audioTrack);if(E){if(!wg(this,this.audioTrack,N,E.info))return;W01(this,this.audioTrack,N,E)}}if(!y.QO()&&(E=u3(this.videoTrack))){if(!wg(this,this.videoTrack,y,E.info))return;W01(this,this.videoTrack,y,E)}}this.NT||(this.NT=(0,g.iC)(),this.logger.debug(function(){return"Appends pause start "+e.NT+" reason "+w}), this.policy.K&&this.Fh("apdps",{r:w}))}else if(this.NT&&(Qf1(this,this.NT),this.NT=0),H3P(this),E=!1,this.policy.N&&DU(this.videoTrack)||!L0n(this,this.videoTrack,y)||(E=!0,UaH(this.timing),e_9(this.timing)),this.TZ&&!this.TZ.u6()&&(this.policy.N&&DU(this.audioTrack)||!L0n(this,this.audioTrack,N)||(E=!0,LhM(this.timing),N4H(this.timing)),!this.Ss()&&this.TZ)){if(!this.policy.a9&&bz(this.videoTrack)&&bz(this.audioTrack)&&nh(this.TZ)&&!this.TZ.Vh()){y=!1; y=MN(this.audioTrack);if(this.policy.N){var A;N=(A=this.k_)==null?void 0:P0(A,y.o2*1E3);y=!(!N||N.clipId!==y.clipId);this.Fh("ssap",{eos:y})}else A=y.J,y=A===this.rP.J[A.info.id];y&&(this.logger.debug("Setting EOS"),oN3(this.TZ),fuJ(this.schedule))}E&&!this.TZ.isAsync()&&sB(this)}}}; g.J.BO=function(e){var N,y=e===((N=this.TZ)==null?void 0:N.J)?this.audioTrack:this.videoTrack,w;(w=y.l9)==null||w.stop();var E;if((E=u3(y))==null?0:E.isLocked){if(this.JW.X().B9()){var A;this.Fh("eosl",{ounlock:(A=u3(y))==null?void 0:A.info.O2()})}var T;wF5(this,e===((T=this.TZ)==null?void 0:T.J))}var p;if(this.policy.UY&&e===((p=this.TZ)==null?void 0:p.J)&&this.VB){N=this.VB-this.getCurrentTime();var C;this.JW.Fh("asl",{l:N,xtag:(C=MN(this.audioTrack))==null?void 0:C.J.info.J});this.Ut=!1;this.VB= 0}e.QI()&&e.Ju().length===0&&(e.IC(),this.TZ&&!this.TZ.QI()&&(this.JW.X().B9()&&this.JW.Fh("rms",{ld:"seek"}),this.TZ.Z=performance.now(),this.JW.TF(),this.JW.X().B9()&&g.NA(this.pX)));var r;(r=y.D)!=null&&WT(r,0);this.policy.Dl&&this.policy.Sy&&this.TZ&&(y=e.mM())&&y.eY()&&!AX(e.Ju(),Math.min(y.o2+Jj,y.XT))&&this.Fh("sbunb",{st:y.o2,et:y.XT});this.policy.FZ?mL(this):this.Ga()}; g.J.UUZ=function(e){if(this.TZ){var N=MN(e===this.TZ.J?this.audioTrack:this.videoTrack);if(e=e.un())for(var y=0;ythis.K&&(this.K=y,g.v4(this.J)||(this.J={},this.j.stop(),this.N.stop())),this.J[N]=e,g.NA(this.N))}}; rg.prototype.L=function(){for(var e=g.c(Object.keys(this.J)),N=e.next();!N.done;N=e.next()){var y=N.value;N=this.publish;for(var w=this.K,E=this.J[y].match(fY),A=[],T=g.c(E[6].split("&")),p=T.next();!p.done;p=T.next())p=p.value,p.indexOf("cpi=")===0?A.push("cpi="+w.toString()):p.indexOf("ek=")===0?A.push("ek="+g.RA(y)):A.push(p);E[6]="?"+A.join("&");y="skd://"+E.slice(2).join("");E=y.length*2;w=new Uint8Array(E+4);w[0]=E%256;w[1]=(E-w[0])/256;for(E=0;E0)for(var y=g.c(this.J),w=y.next();!w.done;w=y.next())if(N===w.value.info.cryptoPeriodIndex){N=!0;break a}N=!1}if(!N){N=(0,g.iC)();a:{y=e.cryptoPeriodIndex;if(!isNaN(y)){w=g.c(this.K.values());for(var E=w.next();!E.done;E=w.next())if(Math.abs(E.value.cryptoPeriodIndex-y)<=1){y=!0;break a}}y=!1}y?(y=e.J,y=Math.max(0,Math.random()*((isNaN(y)?120:y)-30))*1E3):y=0;this.publish("log_qoe",{wvagt:"delay."+y,cpi:e.cryptoPeriodIndex,reqlen:this.J.length, ignore:this.j});y<=0?Fd5(this,e):this.j||(this.J.push({time:N+y,info:e}),g.NA(this.N,y))}}; $4.prototype.fh=function(){this.J=[];CW.prototype.fh.call(this)};var le={},cY3=(le.DRM_TRACK_TYPE_AUDIO="AUDIO",le.DRM_TRACK_TYPE_SD="SD",le.DRM_TRACK_TYPE_HD="HD",le.DRM_TRACK_TYPE_UHD1="UHD1",le);g.b(bXM,g.x);g.b(BdM,g.pT);g.J=BdM.prototype;g.J.Nx=function(e){var N=this;this.Ss()||e.size<=0||(e.forEach(function(y,w){var E=dt(N.N)?w:y;w=new Uint8Array(dt(N.N)?y:w);dt(N.N)&&j$E(w);y=g.oN(w,4);j$E(w);w=g.oN(w,4);N.J[y]?N.J[y].status=E:N.J[w]?N.J[w].status=E:N.J[y]={type:"",status:E}}),t53(this,","),Y4(this,{onkeystatuschange:1}),this.status="kc",this.publish("keystatuseschange",this))}; g.J.error=function(e,N,y,w){this.Ss()||(this.publish("licenseerror",e,N,y,w),e==="drm.provision"&&(e=(Date.now()-this.Z)/1E3,this.Z=NaN,this.publish("ctmp","provf",{et:e.toFixed(3)})));dp(N)&&this.dispose()}; g.J.shouldRetry=function(e,N){return this.i9&&this.G?!1:!e&&this.requestNumber===N.requestNumber}; g.J.fh=function(){this.J={};g.pT.prototype.fh.call(this)}; g.J.N7=function(){var e={ctype:this.D.contentType||"",length:this.D.initData.length,requestedKeyIds:this.l9,cryptoPeriodIndex:this.cryptoPeriodIndex};this.K&&(e.keyStatuses=this.J);return e}; g.J.getInfo=function(){var e=this.j.join();if(Mt(this)){var N=new Set,y;for(y in this.J)this.J[y].status!=="usable"&&N.add(this.J[y].type);e+="/UKS."+Array.from(N)}return e+="/"+this.cryptoPeriodIndex}; g.J.nC=function(){return this.url};g.b(lw,g.x);g.J=lw.prototype;g.J.mG=function(e){if(this.L){var N=e.messageType||"license-request";this.L(new Uint8Array(e.message),N)}}; g.J.Nx=function(){this.G&&this.G(this.J.keyStatuses)}; g.J.onClosed=function(){this.Ss()||g.Kp("xboxone")&&this.K&&this.K("closed")}; g.J.CZ=function(e){this.L&&this.L(e.message,"license-request")}; g.J.RU=function(e){if(this.K){if(this.N){var N=this.N.error.code;e=this.N.error.systemCode}else N=e.errorCode,e=e.systemCode;this.K("t.prefixedKeyError;c."+N+";sc."+e,N,e)}}; g.J.S7=function(){this.Z&&this.Z()}; g.J.update=function(e){var N=this;if(this.J)return(jI.isActive()?jI.le("emeupd",function(){return N.J.update(e)}):this.J.update(e)).then(null,$B(function(y){Q$J(N,"t.update",y)})); this.N?this.N.update(e):this.element.addKey?this.element.addKey(this.U.keySystem,e,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.U.keySystem,e,this.initData,this.sessionId);return u4()}; g.J.fh=function(){this.J&&(this.D?this.J.close().catch(g.uA):this.J.close());this.element=null;g.x.prototype.fh.call(this)};g.b(F$,g.x);g.J=F$.prototype;g.J.wU=function(){var e=this;if(this.J.keySystemAccess)return(jI.isActive()?jI.le("emenew",function(){return e.J.keySystemAccess.createMediaKeys()}):this.J.keySystemAccess.createMediaKeys()).then(function(y){if(!e.Ss())if(e.N=y,jI.isActive())jI.le("emeset",function(){return e.element.setMediaKeys(y)}); else{var w;(w=e.element)==null||w.setMediaKeys(y)}}); if(PU(this.J))this.K=new (Xu())(this.J.keySystem);else if(II(this.J)){this.K=new (Xu())(this.J.keySystem);var N;(N=this.element)==null||N.webkitSetMediaKeys(this.K)}else jI.isActive()&&this.Fh("emev",{v:"01b"}),Dw(this.L,this.element,["keymessage","webkitkeymessage"],this.XK),Dw(this.L,this.element,["keyerror","webkitkeyerror"],this.Y8),Dw(this.L,this.element,["keyadded","webkitkeyadded"],this.nS);return null}; g.J.setServerCertificate=function(){return this.N.setServerCertificate?this.J.flavor==="widevine"&&this.J.Tg?this.N.setServerCertificate(this.J.Tg):zE(this.J)&&this.J.Ut?this.N.setServerCertificate(this.J.Ut):null:null}; g.J.createSession=function(e,N){var y=e.initData;if(this.J.keySystemAccess){N&&N("createsession");var w=this.N.createSession();vU(this.J)?y=mK5(y,this.J.Ut):zE(this.J)&&(y=li5(y)||new Uint8Array(0));N&&N("genreq");var E=jI.isActive()?jI.le("emegen",function(){return w.generateRequest(e.contentType,y)}):w.generateRequest(e.contentType,y); var A=new lw(null,null,null,w,null,this.G);E.then(function(){N&&N("genreqsuccess")},$B(function(p){Q$J(A,"t.generateRequest",p)})); return A}if(PU(this.J))return KdJ(this,y);if(II(this.J))return HXJ(this,y);if((E=this.element)==null?0:E.generateKeyRequest)this.element.generateKeyRequest(this.J.keySystem,y);else{var T;(T=this.element)==null||T.webkitGenerateKeyRequest(this.J.keySystem,y)}return this.j=new lw(this.element,this.J,y,null,null,this.G)}; g.J.XK=function(e){var N=Wdn(this,e);N&&N.CZ(e)}; g.J.Y8=function(e){var N=Wdn(this,e);N&&N.RU(e)}; g.J.nS=function(e){var N=Wdn(this,e);N&&N.S7(e)}; g.J.getMetrics=function(){if(this.N&&this.N.getMetrics)try{var e=this.N.getMetrics()}catch(N){}return e}; g.J.fh=function(){this.K=this.N=null;var e;(e=this.j)==null||e.dispose();e=g.c(Object.values(this.Z));for(var N=e.next();!N.done;N=e.next())N.value.dispose();this.Z={};g.x.prototype.fh.call(this);delete this.element};g.J=Sf.prototype;g.J.get=function(e){e=this.findIndex(e);return e!==-1?this.values[e]:null}; g.J.remove=function(e){e=this.findIndex(e);e!==-1&&(this.keys.splice(e,1),this.values.splice(e,1))}; g.J.removeAll=function(){this.keys=[];this.values=[]}; g.J.set=function(e,N){var y=this.findIndex(e);y!==-1?this.values[y]=N:(this.keys.push(e),this.values.push(N))}; g.J.findIndex=function(e){return g.Rw(this.keys,function(N){return g.Cf(e,N)})};g.b(GCJ,g.pT);g.J=GCJ.prototype;g.J.lBP=function(e){this.T4({onecpt:1});e.initData&&sO5(this,new Uint8Array(e.initData),e.initDataType)}; g.J.XYh=function(e){this.T4({onndky:1});sO5(this,e.initData,e.contentType)}; g.J.VQ=function(e){this.T4({onneedkeyinfo:1});this.ph.T("html5_eme_loader_sync")&&(this.G.get(e.initData)||this.G.set(e.initData,e));LU_(this,e)}; g.J.ej=function(e){this.K.push(e);oU(this)}; g.J.createSession=function(e){var N=eY3(this)?QiJ(e):g.oN(e.initData);this.N.get(N);this.l9=!0;e=new BdM(this.videoData,this.ph,e,this.drmSessionId);this.N.set(N,e);e.subscribe("ctmp",this.XE,this);e.subscribe("keystatuseschange",this.Nx,this);e.subscribe("licenseerror",this.V8,this);e.subscribe("newlicense",this.i4,this);e.subscribe("newsession",this.zL,this);e.subscribe("sessionready",this.oU,this);e.subscribe("fairplay_next_need_key_info",this.AJ,this);this.ph.T("html5_enable_vp9_fairplay")&&e.subscribe("qualitychange", this.zX,this);this.ph.T("html5_enable_sabr_drm_hd720p")&&e.subscribe("sabrlicenseconstraint",this.HC1,this);Iis(e,this.j)}; g.J.i4=function(e){this.Ss()||(this.T4({onnelcswhb:1}),e&&!this.heartbeatParams&&(this.heartbeatParams=e,this.publish("heartbeatparams",e)))}; g.J.zL=function(){this.Ss()||(this.T4({newlcssn:1}),this.K.shift(),this.l9=!1,oU(this))}; g.J.oU=function(){if(PU(this.J)&&(this.T4({onsnrdy:1}),this.aq--,this.aq===0)){var e=this.Ng,N,y;(N=e.element)==null||(y=N.msSetMediaKeys)==null||y.call(N,e.K)}}; g.J.Nx=function(e){if(!this.Ss()){!this.Rq&&this.videoData.T("html5_log_drm_metrics_on_key_statuses")&&(NAJ(this),this.Rq=!0);this.T4({onksch:1});var N=this.zX;if(!Mt(e)&&g.Um&&e.N.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var y="large";else{y=[];var w=!0;if(Mt(e))for(var E=g.c(Object.keys(e.J)),A=E.next();!A.done;A=E.next())A=A.value,e.J[A].status==="usable"&&y.push(e.J[A].type),e.J[A].status!=="unknown"&&(w=!1);if(!Mt(e)||w)y=e.j;y=fiE(y)}N.call(this,y);this.publish("keystatuseschange", e)}}; g.J.XE=function(e,N){this.Ss()||this.publish("ctmp",e,N)}; g.J.AJ=function(e,N){this.Ss()||this.publish("fairplay_next_need_key_info",e,N)}; g.J.V8=function(e,N,y,w){this.Ss()||(this.videoData.T("html5_log_drm_metrics_on_error")&&NAJ(this),this.publish("licenseerror",e,N,y,w))}; g.J.De=function(){return this.U}; g.J.zX=function(e){var N=g.Rx("auto",e,!1,"l");if(this.videoData.xX){if(this.U.Bw(N))return}else if(VO_(this.U,e))return;this.U=N;this.publish("qualitychange");this.T4({updtlq:e})}; g.J.HC1=function(e){this.videoData.sabrLicenseConstraint=e}; g.J.fh=function(){this.J.keySystemAccess&&this.element&&(this.qg?this.element.setMediaKeys(null).catch(g.uA):this.element.setMediaKeys(null));this.element=null;this.K=[];for(var e=g.c(this.N.values()),N=e.next();!N.done;N=e.next())N=N.value,N.unsubscribe("ctmp",this.XE,this),N.unsubscribe("keystatuseschange",this.Nx,this),N.unsubscribe("licenseerror",this.V8,this),N.unsubscribe("newlicense",this.i4,this),N.unsubscribe("newsession",this.zL,this),N.unsubscribe("sessionready",this.oU,this),N.unsubscribe("fairplay_next_need_key_info", this.AJ,this),this.ph.T("html5_enable_vp9_fairplay")&&N.unsubscribe("qualitychange",this.zX,this),N.dispose();this.N.clear();this.Z.removeAll();this.G.removeAll();this.heartbeatParams=null;g.pT.prototype.fh.call(this)}; g.J.N7=function(){for(var e={systemInfo:this.J.N7(),sessions:[]},N=g.c(this.N.values()),y=N.next();!y.done;y=N.next())e.sessions.push(y.value.N7());return e}; g.J.getInfo=function(){return this.N.size<=0?"no session":""+this.N.values().next().value.getInfo()+(this.L?"/KR":"")}; g.J.T4=function(e,N){N=N===void 0?!1:N;this.Ss()||(Xe(e),(this.ph.B9()||N)&&this.publish("ctmp","drmlog",e))};g.b(TA1,g.x);g.J=TA1.prototype;g.J.PU=function(){return!!this.P3}; g.J.uy=function(){return this.N}; g.J.handleError=function(e){var N=this;Yen(this,e);if((e.errorCode!=="html5.invalidstate"&&e.errorCode!=="fmt.unplayable"&&e.errorCode!=="fmt.unparseable"||!$N0(this,e.errorCode,e.details))&&!Se1(this,e)){if(this.Ot.Ng!=="yt"&&lU_(this,e)&&this.videoData.TV&&(0,g.iC)()/1E3>this.videoData.TV&&this.Ot.Ng==="hm"){var y=Object.assign({e:e.errorCode},e.details);y.stalesigexp="1";y.expire=this.videoData.TV;y.init=this.videoData.Rr/1E3;y.now=(0,g.iC)()/1E3;y.systelapsed=((0,g.iC)()-this.videoData.Rr)/1E3; e=new P3(e.errorCode,y,2);this.JW.MP(e.errorCode,2,"SIGNATURE_EXPIRED",Xe(e.details))}if(dp(e.severity)){var w;y=(w=this.JW.tW)==null?void 0:w.J.J;if(this.Ot.T("html5_use_network_error_code_enums"))if(MLs(e)&&y&&y.isLocked())var E="FORMAT_UNAVAILABLE";else if(this.Ot.Z||e.errorCode!=="auth"||e.details.rc!==429)e.errorCode==="ump.spsrejectfailure"&&(E="HTML5_SPS_UMP_STATUS_REJECTED");else{E="TOO_MANY_REQUESTS";var A="6"}else MLs(e)&&y&&y.isLocked()?E="FORMAT_UNAVAILABLE":this.Ot.Z||e.errorCode!=="auth"|| e.details.rc!=="429"?e.errorCode==="ump.spsrejectfailure"&&(E="HTML5_SPS_UMP_STATUS_REJECTED"):(E="TOO_MANY_REQUESTS",A="6");this.JW.MP(e.errorCode,e.severity,E,Xe(e.details),A)}else this.JW.publish("nonfatalerror",e),w=/^pp/.test(this.videoData.clientPlaybackNonce),this.Qi(e.errorCode,e.details),w&&e.errorCode==="manifest.net.connect"&&(e="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.iC)(),S3(e,"manifest",function(T){N.Z=!0;N.Fh("pathprobe",T)},function(T){N.Qi(T.errorCode, T.details)}))}}; g.J.Fh=function(e,N){this.JW.Eg().Fh(e,N)}; g.J.Qi=function(e,N){N=Xe(N);this.JW.Eg().Qi(e,N)};hY5.prototype.mH=function(e,N){return(N===void 0?0:N)?{FC:e?cG(this,e):f3,xs:e?ve3(this,e):f3,JT9:e?dNH(this,e):f3,kIh:e?fUs(this,e.videoData):f3,m8:e?tLE(this,e.videoData,e):f3,tZG:e?Xl9(this,e):f3}:{FC:e?cG(this,e):f3}}; hY5.prototype.T=function(e){return this.ph.T(e)};g.b(k4,g.x);k4.prototype.onError=function(e){if(e!=="player.fatalexception"||this.provider.T("html5_exception_to_health"))e==="sabr.fallback"&&(this.encounteredSabrFallback=!0),e.match(t4X)?this.networkErrorCount++:this.nonNetworkErrorCount++}; k4.prototype.send=function(){if(!(this.K||this.J<0)){ZrF(this);var e=g.BG(this.provider)-this.J,N="PLAYER_PLAYBACK_STATE_UNKNOWN",y=this.playerState.qS;this.playerState.isError()?N=y&&y.errorCode==="auth"?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.G(this.playerState,2)?N="PLAYER_PLAYBACK_STATE_ENDED":g.G(this.playerState,64)?N="PLAYER_PLAYBACK_STATE_UNSTARTED":g.G(this.playerState,16)||g.G(this.playerState,32)?N="PLAYER_PLAYBACK_STATE_SEEKING":g.G(this.playerState,1)&&g.G(this.playerState, 4)?N="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.G(this.playerState,1)?N="PLAYER_PLAYBACK_STATE_BUFFERING":g.G(this.playerState,4)?N="PLAYER_PLAYBACK_STATE_PAUSED":g.G(this.playerState,8)&&(N="PLAYER_PLAYBACK_STATE_PLAYING");y=vbV[MK(this.provider.videoData)];a:switch(this.provider.ph.playerCanaryState){case "canary":var w="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":w="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:w="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var E=xNM(this.provider), A=this.N<0?e:this.N-this.J;e=this.provider.ph.Fr+36E5<(0,g.iC)();N={started:this.N>=0,stateAtSend:N,joinLatencySecs:A,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:w,playerCanaryStage:E,isAd:this.provider.videoData.isAd(),liveMode:y,hasDrm:!!g.$I(this.provider.videoData),isGapless:this.provider.videoData.U,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:L3(this.provider.videoData)};e||g.$$("html5PlayerHealthEvent",N);this.K=!0;this.dispose()}}; k4.prototype.fh=function(){this.K||this.send();window.removeEventListener("error",this.gs);window.removeEventListener("unhandledrejection",this.gs);g.x.prototype.fh.call(this)}; var t4X=/\bnet\b/;g.b(neF,g.x);neF.prototype.fh=function(){mN_(this);g.x.prototype.fh.call(this)};var Hr0=/[?&]cpn=/;g.b(X$,g.x);X$.prototype.flush=function(){var e={};this.N&&(e.pe=this.N);this.J.length>0&&(e.pt=this.J.join("."));this.J=[];return e}; X$.prototype.stop=function(){var e=this,N,y,w;return g.f(function(E){if(E.J==1)return g.c5(E,2),g.D(E,(N=e.j)==null?void 0:N.stop(),4);if(E.J!=2)return(y=E.N)&&e.logTrace(y),g.B5(E,0);w=g.XH(E);e.N=LLJ(w.message);g.hn(E)})}; X$.prototype.logTrace=function(e){this.encoder.reset();this.encoder.add(1);this.encoder.add(e.resources.length);for(var N=g.c(e.resources),y=N.next();!y.done;y=N.next()){y=y.value.replace("https://www.youtube.com/s/","");this.encoder.add(y.length);for(var w=0;w=0?e:g.BG(this.provider),["PL","B","S"].indexOf(this.k9)>-1&&(!g.v4(this.J)||e>=this.L+30)&&(g.IU(this,e,"vps",[this.k9]),this.L=e),!g.v4(this.J))){this.sequenceNumber===7E3&&g.uA(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){zt(this,e);if(this.provider.T("html5_record_h5vcc_flags")){var N=this.provider.JW.Yj();N=g.c(N);for(var y=N.next();!y.done;y=N.next())y=y.value,this.Fh(y.key,y.value)}N=e;y=this.provider.JW.DR(); var w=y.droppedVideoFrames||0,E=y.totalVideoFrames||0,A=w-this.ql,T=E&&!this.OD;w>y.totalVideoFrames||A>5E3?rJs(this,"html5.badframedropcount","df."+w+";tf."+y.totalVideoFrames):(A>0||T)&&g.IU(this,N,"df",[A]);this.ql=w;this.OD=E;this.D>0&&(g.IU(this,e,"glf",[this.D]),this.D=0);aH.isActive()&&(e=aH.A6(),Object.keys(e).length>0&&this.Fh("profile",e));this.dT&&iw(this,"lwnmow");this.provider.ph.B9()&&this.provider.T("html5_record_now")&&this.Fh("now",{wt:(0,g.iC)()});e={};this.provider.videoData.N&& (e.fmt=this.provider.videoData.N.itag,(N=this.provider.videoData.j)&&N.itag!==e.fmt&&(e.afmt=N.itag));e.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(e.adcpn=this.adCpn);this.Ng&&(e.addocid=this.Ng);this.contentCpn&&(e.ccpn=this.contentCpn);this.qg&&(e.cdocid=this.qg);this.provider.videoData.cotn&&(e.cotn=this.provider.videoData.cotn);e.el=I$(this.provider.videoData);e.content_v=VG(this.provider.videoData);e.ns=this.provider.ph.Ng;e.fexp=SV1(this.provider.ph.experiments).toString(); e.cl=(725027312).toString();(N=this.provider.videoData.adFormat||this.adFormat)&&(e.adformat=N);(N=MK(this.provider.videoData))&&(e.live=N);this.provider.videoData.RV()&&(e.drm=1,this.provider.videoData.L&&(e.drm_system=ky0[this.provider.videoData.L.flavor]||0),this.provider.videoData.ub&&(e.drm_product=this.provider.videoData.ub));$3()&&this.provider.videoData.Z&&(e.ctt=this.provider.videoData.Z,e.cttype=this.provider.videoData.zN,this.provider.videoData.mdxEnvironment&&(e.mdx_environment=this.provider.videoData.mdxEnvironment)); this.provider.videoData.isDaiEnabled()?(e.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.fA&&(e.dai_fallback="1")):this.provider.videoData.FS?e.dai="cs":this.provider.videoData.Lu&&(e.dai="disabled");e.seq=this.sequenceNumber++;if(this.provider.videoData.hH){if(N=this.provider.videoData.hH,e&&N)for(N.ns==="3pp"&&(e.ns="3pp"),this.jp.has(N.ns)&&iw(this,"hbps"),N.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=N.shbpslc),y=g.c(Object.keys(N)),w= y.next();!w.done;w=y.next())w=w.value,this.NK.has(w)||(e[w]=N[w])}else e.event="streamingstats",e.docid=this.provider.videoData.videoId,e.ei=this.provider.videoData.eventId;this.isEmbargoed&&(e.embargoed="1");Object.assign(e,this.provider.ph.J);if(N=e.seq)N={cpn:this.provider.videoData.clientPlaybackNonce,sequenceNumber:+N,serializedWatchEndpointLoggingContext:this.provider.videoData.T0},this.serializedHouseBrandPlayerServiceLoggingContext&&(N.serializedHouseBrandPlayerServiceLoggingContext=hO(this.serializedHouseBrandPlayerServiceLoggingContext)|| void 0),this.provider.videoData.playerResponseCpn&&(N.playerResponseCpn=this.provider.videoData.playerResponseCpn),dg.length&&(N.decoderInfo=dg),this.provider.JW.bP()&&(N.transitionStitchType=4,this.l9&&(N.timestampOffsetMsecs=this.l9)),this.remoteControlMode&&(N.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(N.remoteConnectedDevices=this.remoteConnectedDevices),N=g.A5(N,EQ5),N=g.oN(N,4),this.J.qclc=[N];e=g.Qb("//"+this.provider.ph.Li+"/api/stats/qoe",e);y=N="";w=g.c(Object.keys(this.J)); for(E=w.next();!E.done;E=w.next())E=E.value,this.J[E]===null?g.uA(new g.Gh("Stats report key has invalid value",E)):(E="&"+E+"="+this.J[E].join(","),E.length>100?y+=E:N+=E);TEJ(this,e+N,y.replace(/ /g,"%20"))}this.J={}}}; g.J.Bm=function(e){this.dT=e}; g.J.Kg=function(){if(this.provider.videoData.L){var e=this.provider.videoData.L;iw(this,"eme-"+(e.keySystemAccess?"final":PU(e)?"ms":vU(e)?"ytfp":II(e)?"safarifp":"nonfinal"))}}; g.J.sW=function(e){var N=g.BG(this.provider);if(!this.provider.ph.experiments.gP("html5_refactor_sabr_video_format_selection_logging")||e.J.id!==this.Et){var y=[e.J.id,e.N,this.Et,e.reason];e.token&&y.push(e.token);g.IU(this,N,"vfs",y);this.Et=e.J.id;y=this.provider.JW.getPlayerSize();if(y.width>0&&y.height>0){y=[Math.round(y.width),Math.round(y.height)];var w=g.jV();w>1&&y.push(w);g.IU(this,N,"view",y)}this.VB||(this.provider.ph.B9()&&iw(this,"rqs2"),this.provider.videoData.J&&yo(this.provider.videoData.J)&& (this.J.preload=["1"]));this.K=this.VB=!0}e.reason==="m"&&++this.YO===100&&$oM(this,2);g.IU(this,N,"vps",[this.k9]);this.reportStats(N)}; g.J.e3=function(e){var N=g.BG(this.provider);if(this.provider.ph.experiments.gP("html5_refactor_sabr_audio_format_selection_logging")){N=e.J;var y=[N.audio&&N.video?N.ZZ?N.ZZ:"":N.id];N.Vl&&N.Vl.id&&y.push(N.Vl.id);N=y.join(";");N!==this.G&&(y=[N,this.G,e.reason],e.token&&y.push(e.token),g.IU(this,g.BG(this.provider),"afs",y),this.G=N)}else e.J.id!==this.G&&(y=[e.J.id,this.G,e.reason],e.token&&y.push(e.token),g.IU(this,N,"afs",y),this.G=e.J.id)}; g.J.yk=N3(55);g.J.bI=function(e){this.isEmbargoed=e}; g.J.t1=N3(33);g.J.DK=N3(38);g.J.onPlaybackRateChange=function(e){var N=g.BG(this.provider);e&&e!==this.PY&&(g.IU(this,N,"rate",[e]),this.PY=e);this.reportStats(N)}; g.J.pE=N3(28);g.J.getPlayerState=function(e){if(g.G(e,128))return"ER";if(g.G(e,2048))return"B";if(g.G(e,512))return"SU";if(g.G(e,16)||g.G(e,32))return"S";if(e.isOrWillBePlaying()&&g.G(e,64))return"B";var N=utw[J_(e)];g.I_(this.provider.ph)&&N==="B"&&this.provider.JW.getVisibilityState()===3&&(N="SU");N==="B"&&g.G(e,4)&&(N="PB");return N}; g.J.fh=function(){g.x.prototype.fh.call(this);g.k3(this.Z);g.k3(this.Xz)}; g.J.nP=function(e){this.isOffline=e;g.IU(this,g.BG(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.J.Fh=function(e,N,y){var w=this.J.ctmp||[],E=this.CC.indexOf(e)!==-1;E||this.CC.push(e);if(!y||!E){var A=typeof N!=="string"?Xe(N):N;A=YB3(A);if(!y&&!/^t[.]/.test(A)){var T=g.BG(this.provider)*1E3;A="t."+T.toFixed()+";"+A}w.push(e+":"+A);this.logger.debug(function(){return"ctmp "+e+" "+A}); this.J.ctmp=w;JJ1(this);return T}}; g.J.rJ=function(e,N,y){this.j={ys9:Number(this.Fh("glrem",{nst:e.toFixed(),rem:N.toFixed(),ca:+y})),Ij:e,JsB:N,isAd:y}}; g.J.QH=function(e,N,y){g.IU(this,g.BG(this.provider),"ad_playback",[e,N,y])}; g.J.Z6=function(e,N){var y=g.BG(this.provider)*1E3,w=this.J.daism||[];w.push("t."+y.toFixed(0)+";smw."+(e*1E3).toFixed(0)+";smo."+(N*1E3).toFixed(0));this.J.daism=w}; g.J.resume=function(){var e=this;this.provider.ph.B9()&&this.Fh("ssap",{qoesus:"0",vid:this.provider.videoData.videoId});isNaN(this.Z)?pO3(this):this.Z=g.hE(function(){e.reportStats()},1E4)}; var Fi={},utw=(Fi[5]="N",Fi[-1]="N",Fi[3]="B",Fi[0]="EN",Fi[2]="PA",Fi[1]="PL",Fi[-1E3]="ER",Fi[1E3]="N",Fi),dg=[];FpH.prototype.K1=function(){return this.J}; FpH.prototype.update=function(){if(this.G){var e=this.provider.JW.UV(this.provider.videoData.clientPlaybackNonce)||0,N=g.BG(this.provider);e>=this.provider.JW.getDuration()-.1&&(this.previouslyEnded=!0);if(e!==this.J||bHn(this,e,N)){var y;if(!(y=eN-this.Qy+2||bHn(this,e,N))){y=this.provider.JW.getVolume();var w=y!==this.D,E=this.provider.JW.isMuted()?1:0;E!==this.U?(this.U=E,y=!0):(!w||this.j>=0||(this.D=y,this.j=N),y=N-this.j,this.j>=0&&y>2?(this.j=-1,y=!0):y=!1)}y&&(fW(this),this.K= e);this.Qy=N;this.J=e}}};hM3.prototype.send=function(e){var N=this;if(!this.Wk){var y=kGH(this),w=g.Qb(this.uri,y);this.ph.T("vss_through_gel_double")&&BEs(w);this.qg&&!this.ph.T("html5_simplify_pings")?vmn(this,w):cJ5(this,e).then(function(E){N.qg&&(E=E||{},E.method="POST",E.postParams={atr:N.attestationResponse});RY9(w,E,{token:N.Ng,p7:N.Kx,mdxEnvironment:N.mdxEnvironment},N.ph,e,N.l9,N.isFinal&&N.sY||N.i9||N.K&&N.Fr)}); this.Wk=!0}}; hM3.prototype.N=function(e){e===void 0&&(e=NaN);return Number(e.toFixed(3)).toString()}; var Ss={},dos=(Ss.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,Ss.LIVING_ROOM_APP_MODE_MAIN=1,Ss.LIVING_ROOM_APP_MODE_KIDS=2,Ss.LIVING_ROOM_APP_MODE_MUSIC=3,Ss.LIVING_ROOM_APP_MODE_UNPLUGGED=4,Ss.LIVING_ROOM_APP_MODE_GAMING=5,Ss),oS={},Ps5=(oS.EMBEDDED_PLAYER_MODE_UNKNOWN=0,oS.EMBEDDED_PLAYER_MODE_DEFAULT=1,oS.EMBEDDED_PLAYER_MODE_PFP=2,oS.EMBEDDED_PLAYER_MODE_PFL=3,oS);g.b(uw,g.x);g.J=uw.prototype;g.J.FI=function(){this.J.update();uE9(this)&&(iHn(this),DoJ(this),this.Y7())}; g.J.fh=function(){g.x.prototype.fh.call(this);x4(this);SBJ(this.J)}; g.J.N7=function(){return kGH(qt(this,"playback"))}; g.J.Y7=function(){this.provider.videoData.G.eventLabel=I$(this.provider.videoData);this.provider.videoData.G.playerStyle=this.provider.ph.playerStyle;this.provider.videoData.vp&&(this.provider.videoData.G.feature="pyv");this.provider.videoData.G.vid=this.provider.videoData.videoId;var e=this.provider.videoData.G;var N=this.provider.videoData;N=N.isAd()||!!N.vp;e.isAd=N}; g.J.FW=function(e){var N=qt(this,"engage");N.Kh=e;return XOs(N,Q9s(this.provider))};nmH.prototype.isEmpty=function(){return this.endTime===this.startTime};nW.prototype.T=function(e){return this.ph.T(e)}; nW.prototype.getCurrentTime=function(e){if(this.T("html5_ssap_current_time_for_logging_refactor")){var N=this.JW.bP();if(N&&(e=e||N.XH()))return TI(N,e)}else if(g.xK(this.videoData)){var y=this.JW.bP();if(y)return e=this.JW.getCurrentTime(),y=(((N=P0(y,e*1E3))==null?void 0:N.N3)||0)/1E3,e-y}return this.JW.getCurrentTime()}; nW.prototype.eN=function(e){if(this.T("html5_ssap_current_time_for_logging_refactor")){var N=this.JW.bP();if(N&&(e=e||N.XH()))return TI(N,e)}else if(g.xK(this.videoData)){var y=this.JW.bP();if(y)return e=this.JW.eN(),y=(((N=P0(y,e*1E3))==null?void 0:N.N3)||0)/1E3,e-y}return this.JW.eN()}; var moP={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.b(g.QD,g.x);g.J=g.QD.prototype;g.J.FI=function(){if(this.provider.videoData.enableServerStitchedDai&&this.b6){var e;(e=this.K.get(this.b6))==null||e.FI()}else this.J&&this.J.FI()}; g.J.bI=function(e){this.qoe&&this.qoe.bI(e)}; g.J.t1=N3(32);g.J.DK=N3(37);g.J.Z6=function(e,N){this.qoe&&this.qoe.Z6(e,N)}; g.J.Qi=function(e,N){this.qoe&&rJs(this.qoe,e,N);if(this.N)this.N.onError(e)}; g.J.sW=function(e){this.qoe&&this.qoe.sW(e)}; g.J.e3=function(e){this.qoe&&this.qoe.e3(e)}; g.J.onPlaybackRateChange=function(e){if(this.qoe)this.qoe.onPlaybackRateChange(e);this.J&&fW(this.J.J)}; g.J.yk=N3(54);g.J.Fh=function(e,N,y){this.qoe&&this.qoe.Fh(e,N,y)}; g.J.rJ=function(e,N,y){this.qoe&&this.qoe.rJ(e,N,y)}; g.J.LG=function(e){var N;(N=this.qoe)==null||N.LG(e)}; g.J.HS=function(e){var N;(N=this.qoe)==null||N.HS(e)}; g.J.Bm=function(e){this.qoe&&this.qoe.Bm(e)}; g.J.QH=function(e,N,y){this.qoe&&this.qoe.QH(e,N,y)}; g.J.pE=N3(27);g.J.BQ=function(){if(this.qoe)return this.qoe.BQ()}; g.J.N7=function(){if(this.provider.videoData.enableServerStitchedDai&&this.b6){var e,N;return(N=(e=this.K.get(this.b6))==null?void 0:e.N7())!=null?N:{}}return this.J?this.J.N7():{}}; g.J.NZ=function(){var e;return(e=this.qoe)==null?void 0:e.NZ()}; g.J.Wm=function(e,N){var y;(y=this.qoe)==null||y.Wm(e,N)}; g.J.FW=function(e){return this.J?this.J.FW(e):function(){}}; g.J.Y7=function(){this.J&&this.J.Y7()}; g.J.getVideoData=function(){return this.provider.videoData}; g.J.resume=function(){this.qoe&&this.qoe.resume()};g.b(HG,g.x); HG.prototype.qs=function(e,N,y){if(this.J.has(e)){var w=this.J.get(e);if(N.videoId&&!HHs(w))this.N.Fh("ssap",{rlc:e}),Ng9(this,e);else return}if(!this.J.has(e)){w=new nW(N,this.ph,this.JW);var E=Math.round(g.BG(this.N.provider)*1E3);w=new g.QD(w,E);HHs(w)||this.N.Fh("nqv",{vv:N.videoId});E=this.N.getVideoData();this.J.set(e,w);if(w.qoe){var A=w.qoe,T=E.videoId||"";A.contentCpn=E.clientPlaybackNonce;A.qg=T}Kpn(w);y===2&&(this.ph.T("html5_log_ad_playback_docid")?(y=this.N,y.qoe&&(y=y.qoe,w=N.FZ||"", E=N.breakType||0,N=N.videoId||"",A=this.ph.Ng||"yt",g.IU(y,g.BG(y.provider),"ad_playback",[e,w,E,N,A]))):this.N.QH(e,N.FZ||"",N.breakType||0))}}; HG.prototype.pP=function(e,N,y,w,E,A,T,p){if(e!==N){var C=this.Eg(e),r=this.Eg(N),Y,M=e===((Y=C.getVideoData())==null?void 0:Y.clientPlaybackNonce),l;Y=N===((l=r.getVideoData())==null?void 0:l.clientPlaybackNonce);var F;l=M?((F=C.getVideoData())==null?void 0:F.videoId)||"":"nvd";var S;F=Y?((S=r.getVideoData())==null?void 0:S.videoId)||"":"nvd";M&&(C=C.qoe)!=null&&(gg(C,4,A?4:E?2:0,N,F,y),C.reportStats());Y&&(mS(r),(N=r.qoe)!=null&&(gg(N,4,A?5:E?3:1,e,l,w),N.reportStats()),RMs(r,new g.ME(T,r.k9)), WpE(r));p&&Ng9(this,e)}}; HG.prototype.Eg=function(e){e=e||this.b6;return this.J.get(e)||this.N};g.b(g.KW,g.x);g.J=g.KW.prototype; g.J.wx=function(e,N){this.sync();N&&this.J.array.length>=2E3&&this.I7("captions",1E4);N=this.J;if(e.length>1&&e.length>N.array.length)N.array=N.array.concat(e),N.array.sort(N.J);else for(var y=g.c(e),w=y.next();!w.done;w=y.next())w=w.value,!N.array.length||N.J(w,N.array[N.array.length-1])>0?N.array.push(w):g.rr(N.array,w,N.J);e=g.c(e);for(N=e.next();!N.done;N=e.next())N=N.value,N.namespace==="ad"&&this.j("ssap",{acrsid:N.getId(),acrsst:N.start,acrset:N.end,acrscpt:N.playerType});this.K=NaN;this.sync()}; g.J.bl=function(e){e.length>1E4&&g.uA(new g.Gh("Over 10k cueRanges removal occurs with a sample: ",e[0]));if(!this.Ss()){for(var N=g.c(e),y=N.next();!y.done;y=N.next())(y=y.value)&&y.namespace==="ad"&&this.j("ssap",{rcrid:y.getId(),rcst:y.start,rcet:y.end,rcpt:y.playerType});var w=new Set(e);this.N=this.N.filter(function(E){return!w.has(E)}); pG1(this.J,w);this.sync()}}; g.J.I7=function(e,N){var y=(isNaN(this.K)?g.G(this.Z(),2)?0x8000000000000:this.D()*1E3:this.K)-N;N=this.XW().filter(function(w){return w.namespace===e&&w.endthis.J,A=g.G(y,8)&&g.G(y,16),T=this.JW.UP().isBackground()||y.isSuspended();Ed(this,this.Dl,A&&!T,E,"qoe.slowseek",function(){},"timeout"); var p=isFinite(this.J);p=A&&p&&Pp1(N,this.J);var C=!w||Math.abs(w-this.J)>10,r=this.ph.T("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),Y=w===0&&this.N&&[11,10].includes(this.N);Ed(this,this.Kx,p&&C&&!T&&(!r||!Y),E,"qoe.slowseek",function(){N.seekTo(e.J)},"set_cmt"); C=p&&AX(N.O4(),this.J);var M=this.JW.tW;p=!M||M.Nc();var l=function(){N.seekTo(e.J+.001)}; Ed(this,this.Et,C&&p&&!T,E,"qoe.slowseek",l,"jiggle_cmt");p=function(){return e.JW.hT()}; Ed(this,this.Wk,C&&!T,E,"qoe.slowseek",p,"new_elem");C=Tp(y);r=y.isBuffering();var F=N.O4(),S=E3(F,w),k=S>=0&&F.end(S)>w+5,X=C&&r&&k;Y=this.JW.getVideoData();Ed(this,this.Bk,w<.002&&this.J<.002&&A&&g.I_(this.ph)&&g.vF(Y)&&!T,E,"qoe.slowseek",p,"slow_seek_shorts");Ed(this,this.Ng,Y.e_()&&A&&!T&&!Y.qg,E,"qoe.slowseek",p,"slow_seek_gapless_shorts");Ed(this,this.qg,X&&!T,C&&!r,"qoe.longrebuffer",l,"jiggle_cmt");Ed(this,this.l9,X&&!T,C&&!r,"qoe.longrebuffer",p,"new_elem_nnr");if(M){var d=M.getCurrentTime(); A=N.JP();A=Yz3(A,d);A=!M.isSeeking()&&w===A;Ed(this,this.Xz,C&&r&&A&&!T,C&&!r&&!A,"qoe.longrebuffer",function(){N.seekTo(d)},"seek_to_loader")}A={}; l=E3(F,Math.max(w-3.5,0));X=l>=0&&w>F.end(l)-1.1;var v=l>=0&&l+1=0&&X&&v<11;A.close2edge=X;A.gapsize=v;A.buflen=F.length;this.N&&(A.seekSour=this.N);if(l=this.JW.bP()){X=l.XH();v=X!==P0(l,w*1E3).clipId;var V=g.Y2(this.ph.experiments,"html5_ssap_skip_seeking_offset_ms"),Z=(XC(l,X)+V)/1E3;Ed(this,this.Rq,v&&C&&r&&!T,C&&!r,"qoe.longrebuffer",function(){N.seekTo(Z)},"ssap_clip_not_match")}Ed(this,this.i9,C&&r&&!T,C&&!r,"qoe.longrebuffer", function(){},"timeout",A); A=y.isSuspended();A=this.JW.wq()&&!A;Ed(this,this.G,A,!A,"qoe.start15s",function(){e.JW.Go("ad")},"ads_preroll_timeout"); l=w-this.j<.5;var n;A=!((n=this.JW.bP())==null||!n.Wo());v=(X=Y.isAd()||A&&this.ph.experiments.gP("html5_ssap_skip_slow_ad"))&&C&&!r&&l;n=function(){var R=e.JW,O=g.xK(R.videoData)&&R.k_,E9=R.nX.getVideoData();(E9&&R.videoData.isAd()&&E9.FS===R.getVideoData().FS||!R.videoData.As)&&!O?R.MP("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+R.videoData.videoId):NK(R.videoData,"html5_ssap_skip_slow_ad")&&O&&R.k_.Wo()&&(R.Qi(new P3("ssap.transitionfailure",{cpn:P0(R.k_,R.eN()).clipId,pcpn:R.k_.XH(), cmt:R.eN()})),R=R.k_,O=R.playback.eN(),(O=LBM(R,O))&&WB0(R,O.U_()/1E3))}; Ed(this,this.a9,v,!v,"ad.rebuftimeout",n,"skip_slow_ad");l=X&&r&&AX(N.O4(),w+5)&&l;Ed(this,this.dT,l&&!T,!l,"ad.rebuftimeout",n,"skip_slow_ad_buf");n=y.isOrWillBePlaying()&&g.G(y,64)&&!T;Ed(this,this.SR,n,E,"qoe.start15s",function(){},"timeout"); n=!!M&&!M.TZ&&y.isOrWillBePlaying();Ed(this,this.aq,n,E,"qoe.start15s",p,"newElemMse");n=ph(F,0);l=g.G(y,16)||g.G(y,32);l=!T&&y.isOrWillBePlaying()&&r&&!l&&(g.G(y,64)||w===0)&&n>5;Ed(this,this.VB,g.vF(Y)&&l,C&&!r,"qoe.longrebuffer",function(){e.JW.P_()},"reset_media_source"); Ed(this,this.Ut,g.vF(Y)&&l,C&&!r,"qoe.longrebuffer",p,"reset_media_element");this.j===0&&(this.Z=w);l=r&&this.J===0&&w>1&&w===this.Z;Ed(this,this.Zl,g.vF(Y)&&l,C&&!r,"qoe.slowseek",function(){N.seekTo(0)},"reseek_after_time_jump"); T=y.isOrWillBePlaying()&&!T;k=this.JW.jo()-w<6&&!k&&this.JW.au();Ed(this,this.U,Y.e_()&&T&&r&&k,C&&!r,"qoe.longrebuffer",function(){e.JW.hT(!1,!0)},"handoff_end_long_buffer_reload"); M=(M==null?void 0:Ys5(M))||NaN;M=F.length>1||!isNaN(M)&&M-.1<=w;Ed(this,this.D,Rf(Y)&&T&&r&&M,C&&!r,"qoe.longrebuffer",p,"gapless_slice_append_stuck");M=S>=0&&F.end(S)>=2;T=Rf(Y)&&this.JW.RP&&M&&!Y.qg&&T&&(r||g.G(y,8)&&g.G(y,16));Ed(this,this.Kh,T,E,"qoe.start15s",p,"gapless_slow_start");y=!!(A&&n>5&&y.isPlaying()&&w<.1);Ed(this,this.Y_,y,w>.5&&C,"qoe.longrebuffer",p,"ssap_stuck_in_ad_beginning");this.j=w;this.L.start()}}; wk.prototype.Qi=function(e,N,y){N=this.N7(N);N.wn=y;N.wdup=this.K[e]?"1":"0";this.JW.Qi(new P3(e,N));this.K[e]=!0}; wk.prototype.N7=function(e){e=Object.assign(this.JW.N7(!0),e.N7());this.J&&(e.stt=this.J.toFixed(3));this.JW.getVideoData().isLivePlayback&&(e.ct=this.JW.getCurrentTime().toFixed(3),e.to=this.JW.w7().toFixed(3));delete e.uga;delete e.euri;delete e.referrer;delete e.fexp;delete e.vm;return e}; NJ.prototype.reset=function(){this.J=this.N=this.K=this.startTimestamp=0;this.j=!1}; NJ.prototype.test=function(e){if(!this.L||this.N)return!1;if(!e)return this.reset(),!1;e=(0,g.iC)();if(!this.startTimestamp)this.startTimestamp=e,this.K=0;else if(this.K>=this.L)return this.N=e,!0;this.K+=1;return!1}; NJ.prototype.N7=function(){var e={},N=(0,g.iC)();this.startTimestamp&&(e.wsd=(N-this.startTimestamp).toFixed());this.N&&(e.wtd=(N-this.N).toFixed());this.J&&(e.wssd=(N-this.J).toFixed());return e};g.b(z69,g.x);g.J=z69.prototype;g.J.setMediaElement=function(e){(this.mediaElement=e)?(this.mediaElement&&(this.L||this.j||!this.mediaElement.eb()||this.seekTo(.01,{BY:"seektimeline_setupMediaElement"})),Av(this)):Jv(this)}; g.J.getCurrentTime=function(){if(To(this.JW)){if(!isNaN(this.N))return this.N}else if(!isNaN(this.N)&&isFinite(this.N))return this.N;return this.mediaElement&&QU5(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.j||0}; g.J.F2=function(){return this.Ut}; g.J.eN=function(){return this.getCurrentTime()-this.w7()}; g.J.Un=function(){return this.J?this.J.Un():Infinity}; g.J.isAtLiveHead=function(e){if(!this.J)return!1;e===void 0&&(e=this.getCurrentTime());return aU(this.J,e)}; g.J.eg=function(){return!!this.J&&this.J.eg()}; g.J.seekTo=function(e,N){var y=N===void 0?{}:N;N=y.E6===void 0?!1:y.E6;var w=y.bN===void 0?0:y.bN;var E=y.l8===void 0?!1:y.l8;var A=y.FM===void 0?0:y.FM;var T=y.BY===void 0?"":y.BY;var p=y.seekSource===void 0?void 0:y.seekSource;var C=y.Kz===void 0?!1:y.Kz;var r=y.CI===void 0?!1:y.CI;y=y.Gf===void 0?!1:y.Gf;C&&(e+=this.w7());L3(this.videoData)&&this.T("html5_sabr_enable_utc_seek_requests")&&p===29&&(this.Ut=void 0);C=e=this.ra())||!g.bk(this.videoData),Y||(k={st:k,mst:this.ra()},this.J&&this.T("html5_high_res_seek_logging")&&(k.ht=this.J.Un(),k.adft=ktM(this.J)),this.JW.Fh("seeknotallowed",k)),k=Y));if(!k)return this.K&&(this.K=null,jUM(this)),g.S9(this.getCurrentTime());k=.005;r&&this.T("html5_sabr_seek_no_shift_tolerance")&&(k=0);if(Math.abs(e-this.N)<=k&&this.Kh)return this.L;T&&(k=e,(this.ph.B9()||this.T("html5_log_seek_reasons"))&& this.JW.Fh("seekreason",{reason:T,tgt:k}));p&&(this.l9.N=p);this.Kh&&Jv(this);this.L||(this.L=new O3);e&&!isFinite(e)&&Vfn(this,!1);(T=y||C)||(T=e,T=!(this.videoData.isLivePlayback&&this.videoData.K&&!this.videoData.K.J&&!(this.mediaElement&&this.mediaElement.Rl()>0&&G6(this.mediaElement)>0)||wd(this.videoData)&&this.Ti()===this.ra(!1)?0:isFinite(T)||!wd(this.videoData)));T||(e=C$(this,e,E));e&&!isFinite(e)&&Vfn(this,!1);this.j=e;this.Et=A;this.N=e;this.D=0;this.J&&(E=this.J,A=e,Bg_(E,A,!1),XGM(E, A));E=this.JW;A=e;T={E6:N,seekSource:p};E.ZB.j=A;y=E.BC;y.mediaTime=A;y.J=!0;T.E6&&E.z3(T);T=A>E.videoData.endSeconds&&A>E.videoData.limitedPlaybackDurationInSeconds;E.F_&&T&&isFinite(A)&&cvH(E);AN.start&&cvH(this.JW);return this.L}; g.J.ra=function(e){if(!this.videoData.isLivePlayback)return RiM(this.JW);var N;return HF(this.videoData)&&((N=this.mediaElement)==null?0:N.isPaused())&&this.videoData.J?(e=this.getCurrentTime(),N$9(this.OY(e)*1E3)+e):this.T("html5_sabr_parse_live_metadata_playback_boundaries")&&L3(this.videoData)&&this.videoData.J?e?this.videoData.J.Kh||0:this.videoData.J.zg||0:wd(this.videoData)&&this.videoData.Rq&&this.videoData.J?this.videoData.J.ra()+this.timestampOffset:this.videoData.K&&this.videoData.K.J?!e&& this.J?this.J.Un():RiM(this.JW)+this.timestampOffset:this.mediaElement?Ry()?N$9(this.mediaElement.dA().getTime()):G6(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.J.Ti=function(){if(g.xK(this.videoData)){var e=this.JW;g.xK(e.videoData);var N,y;return(y=(N=e.k_)==null?void 0:N.Ti())!=null?y:e.videoData.Ti()}if(this.T("html5_sabr_parse_live_metadata_playback_boundaries")&&L3(this.videoData)){var w;return((w=this.videoData.J)==null?void 0:w.gf)||0}N=this.videoData?this.videoData.Ti()+this.timestampOffset:this.timestampOffset;return HF(this.videoData)&&this.videoData.J&&(y=Number((e=this.videoData.progressBarStartPosition)==null?void 0:e.utcTimeMillis)/1E3,e= this.getCurrentTime(),e=this.OY(e)-e,!isNaN(y)&&!isNaN(e))?Math.max(N,y-e):N}; g.J.TF=function(){this.L||this.seekTo(this.j,{BY:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.J.u$=function(){return this.Kh&&!isFinite(this.N)}; g.J.fh=function(){f39(this,null);this.l9.dispose();g.x.prototype.fh.call(this)}; g.J.N7=function(){var e={};this.tW&&Object.assign(e,this.tW.N7());this.mediaElement&&Object.assign(e,this.mediaElement.N7());return e}; g.J.Ny=function(e){this.timestampOffset=e}; g.J.getStreamTimeOffset=function(){return wd(this.videoData)?0:this.videoData.J?this.videoData.J.getStreamTimeOffset():0}; g.J.w7=function(){return this.timestampOffset}; g.J.OY=function(e){return this.videoData&&this.videoData.J?this.videoData.J.OY(e-this.timestampOffset):NaN}; g.J.sz=function(){if(!this.mediaElement)return 0;if(hY(this.videoData)){var e=this.mediaElement,N=e.O4();e=(JX(N)>0&&e.getDuration()?N.end(N.length-1):0)+this.timestampOffset-this.Ti();N=this.ra()-this.Ti();return Math.max(0,Math.min(1,e/N))}return this.mediaElement.sz()}; g.J.wJ=function(e){this.Z&&(this.Z.J=e)}; g.J.j0=function(e,N){this.JW.Fh("requestUtcSeek",{time:e});L3(this.videoData)&&this.T("html5_sabr_enable_utc_seek_requests")&&(this.Ut=e);var y;(y=this.tW)==null||y.j0(e);N&&(this.qg=N)}; g.J.ou=function(e){L3(this.videoData)&&this.T("html5_sabr_enable_utc_seek_requests")&&(this.Ut=void 0);if(this.qg)this.JW.Fh("utcSeekingFallback",{source:"streamTime",timeSeconds:this.qg}),this.JW.seekTo(this.qg,{BY:"utcSeekingFallback_streamTime"}),this.qg=0;else{var N=this.getCurrentTime();isNaN(N)||(e=this.OY(N)-e,N-=e,this.JW.Fh("utcSeekingFallback",{source:"estimate",timeSeconds:N}),this.JW.seekTo(N,{BY:"utcSeekingFallback_estimate"}))}}; g.J.WC=function(){this.qg=0}; g.J.T=function(e){return this.ph&&this.ph.T(e)};g.b(rk,g.x);rk.prototype.start=function(){this.N.start()}; rk.prototype.stop=function(){this.N.stop()}; rk.prototype.clear=function(){for(var e=g.c(this.J.values()),N=e.next();!N.done;N=e.next())N.value.clear()}; rk.prototype.sample=function(){for(var e=g.c(this.K),N=e.next();!N.done;N=e.next()){var y=g.c(N.value);N=y.next().value;y=y.next().value;this.J.has(N)||this.J.set(N,new R6E(qrk.has(N)));this.J.get(N).update(y())}this.N.start()}; var qrk=new Set(["networkactivity"]);R6E.prototype.update=function(e){this.J?(this.buffer.add(e-this.x3||0),this.x3=e):this.buffer.add(e)}; R6E.prototype.clear=function(){this.buffer.clear();this.x3=0};MJ.prototype.C9=function(){return this.started}; MJ.prototype.start=function(){this.started=!0}; MJ.prototype.reset=function(){this.finished=this.started=!1};var a39=!1;g.b(g.oY,g.pT);g.J=g.oY.prototype;g.J.fh=function(){this.logger.debug("dispose");g.k3(this.yx);AWH(this.iP);this.visibility.unsubscribe("visibilitystatechange",this.iP);Yd9(this);cs(this);g.Kk.Zx(this.Si);this.s_();this.yj=null;g.JV(this.videoData);g.JV(this.Bc);g.JV(this.ON);g.JV(this.A_);g.pq(this.HxP);this.F_=null;g.pT.prototype.fh.call(this)}; g.J.QH=function(e,N,y,w,E){if(this.ph.T("html5_log_ad_playback_docid")){var A=this.Eg();if(A.qoe){A=A.qoe;var T=this.ph.Ng||"yt";g.IU(A,g.BG(A.provider),"ad_playback",[e,N,y,E,T])}}else this.Eg().QH(e,N,y);this.T("html5_log_media_perf_info")&&this.Fh("adloudness",{ld:w.toFixed(3),cpn:e})}; g.J.LV=function(){var e;return(e=this.tW)==null?void 0:e.LV()}; g.J.T2=function(){var e;return(e=this.tW)==null?void 0:e.T2()}; g.J.fI=function(){var e;return(e=this.tW)==null?void 0:e.fI()}; g.J.QF=function(){var e;return(e=this.tW)==null?void 0:e.QF()}; g.J.RV=function(){return this.videoData.RV()}; g.J.fO=function(){return this.T("html5_not_reset_media_source")&&!this.RV()&&!this.videoData.isLivePlayback&&g.vF(this.videoData)&&!this.ph.supportsGaplessShorts()}; g.J.bW=function(){if(this.videoData.U){var e;if(!(e=this.videoData.g6)){var N;e=(N=this.nX.nh())==null?void 0:N.LV()}this.videoData.g6=e;if(!(e=this.videoData.VE)){var y;e=(y=this.nX.nh())==null?void 0:y.T2()}this.videoData.VE=e}if(W95(this.videoData)||!md(this.videoData))y=this.videoData.errorDetail,this.MP(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),y,y,this.videoData.Qm||void 0);this.T("html5_generate_content_po_token")&&this.pJ();this.T("html5_enable_d6de4")&&this.BK(); if(this.T("html5_ssap_cleanup_player_switch_ad_player")||this.T("html5_ssap_cleanup_ad_player_on_new_data"))if(y=this.nX.M7())this.Qa=y.clientPlaybackNonce}; g.J.LW=function(){return this.Ce}; g.J.qs=function(){!this.RE||this.RE.Ss();this.RE=new g.QD(new nW(this.videoData,this.ph,this));this.Ce=new HG(this.ph,this,this.RE)}; g.J.getVideoData=function(){return this.videoData}; g.J.X=function(){return this.ph}; g.J.mH=function(e){return this.NO.mH(this.yj,e===void 0?!1:e)}; g.J.Eg=function(e){if(e)a:{for(var N=this.Ce,y=g.c(N.J.values()),w=y.next();!w.done;w=y.next())if(w=w.value,w.getVideoData().videoId===e){e=w;break a}e=N.N}else e=this.Ce.Eg();return e}; g.J.UP=function(){return this.visibility}; g.J.K_=function(){return this.mediaElement&&this.mediaElement.pk()?this.mediaElement.ut():null}; g.J.LC=function(){return this.mediaElement}; g.J.Vn=function(){if(this.T("html5_check_video_data_errors_before_playback_start")&&this.videoData.errorCode)return!1;this.X().Z&&this.X().houseBrandUserStatus&&this.Fh("hbut",{status:this.X().houseBrandUserStatus});if(this.videoData.WG())return!0;this.MP("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.J.xN=function(e){(e=e===void 0?!1:e)||g.xK(this.videoData)||mS(this.Eg());this.So=e;!this.Vn()||this.eh.C9()?g.I_(this.ph)&&this.videoData.isLivePlayback&&this.eh.C9()&&!this.eh.finished&&!this.So&&this.rU():(this.eh.start(),e=this.Eg(),g.BG(e.provider),e.qoe&&pO3(e.qoe),this.rU())}; g.J.rU=function(){if(this.videoData.isLoaded()){var e=this.Bc;g.Y2(e.Ot.experiments,"html5_player_min_build_cl")>0&&g.Y2(e.Ot.experiments,"html5_player_min_build_cl")>725027312&&FLM(e,"oldplayer");Sd_(this)}else this.videoData.AA||this.videoData.Qk?this.So&&g.I_(this.ph)&&this.videoData.isLivePlayback||(this.videoData.AA?iNE(this.videoData):(e=this.Eg(),e.qoe&&(e=e.qoe,iw(e,"protected"),e.provider.videoData.L?e.Kg():e.provider.videoData.subscribe("dataloaded",e.Kg,e)),PSJ(this.videoData))):!this.videoData.loading&& this.Tu&&Mk5(this)}; g.J.iG=function(e){this.Yk=e;this.tW&&(JYs(this.tW,new g.pW(e)),this.T("html5_check_decorator_on_cuepoint")&&this.Fh("sdai",{sdsstm:1}))}; g.J.Mf=function(e){this.k_=e;this.tW&&this.tW.Mf(e)}; g.J.bY=N3(15);g.J.isFullscreen=function(){return this.visibility.isFullscreen()}; g.J.isBackground=function(){return this.visibility.isBackground()}; g.J.TE=function(){var e=this;this.logger.debug("Updating for format change");br(this).then(function(){return Sk(e)}); this.playerState.isOrWillBePlaying()&&this.playVideo()}; g.J.yR=function(){this.logger.debug("start readying playback");this.mediaElement&&this.mediaElement.activate();this.xN();this.Vn()&&!g.G(this.playerState,128)&&(this.vF.C9()||(this.vF.start(),this.videoData.zx?this.zi(yO(this.playerState,4)):this.zi(yO(yO(this.playerState,8),1))),lNE(this))}; g.J.Bz=function(){return this.eh.finished}; g.J.sendAbandonmentPing=function(){g.G(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.kZ(!0),Yd9(this),g.Kk.Zx(this.Si))}; g.J.U7=function(e,N){e=e===void 0?!0:e;(N===void 0||N)&&this.mediaElement&&this.mediaElement.pause();this.zi(e?new g.a8(14):new g.a8)}; g.J.W_=function(){GGE(this.Eg())}; g.J.MP=function(e,N,y,w,E,A){this.logger.debug(function(){return"set player error: ec="+e+", detail="+E}); var T,p;g.di(G70,y)?T=y:y?p=y:T="GENERIC_WITHOUT_LINK";w=(w||"")+(";a6s."+C2());if(e==="auth"||e==="drm.auth"||e==="heartbeat.stop")y&&(w+=";r."+y.replaceAll(" ","_")),A&&(w+="sr."+A.replaceAll(" ","_"));N={errorCode:e,errorDetail:E,errorMessage:p||g.R3[T]||"",Se:T,Qm:A||"",Hu:w,l5:N,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=e;hv(this,"dataloaderror");this.zi(Nb(this.playerState,128,N));g.Kk.Zx(this.Si);cs(this);this.wK()}; g.J.Go=function(e){this.wL=this.wL.filter(function(N){return e!==N}); this.logger.debug(function(){return"set preroll ready for "+e}); g.xK(this.videoData)&&!this.V_()&&this.R9.oe("pl_pr");this.vF.C9()&&lNE(this)}; g.J.V_=function(){var e;(e=!!this.wL.length)||(e=this.yb.J.array[0],e=!!e&&e.start<=-0x8000000000000);return e}; g.J.eg=function(){return this.ZB.eg()}; g.J.isPlaying=function(){return this.playerState.isPlaying()}; g.J.C_=function(){return this.playerState.C_()&&this.videoData.zx}; g.J.getPlayerState=function(){return this.playerState}; g.J.fH=function(e){var N;(N=this.tW)==null||N.fH(e)}; g.J.tE=function(e){var N;(N=this.tW)==null||N.tE(e)}; g.J.getPlayerType=function(){return this.playerType}; g.J.getPreferredQuality=function(){if(this.yj){var e=this.yj;e=e.videoData.E8.compose(e.videoData.Pl);e=sj(e)}else e="auto";return e}; g.J.bJ=N3(20);g.J.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.J.setMediaElement=function(e){this.logger.debug("set media element");if(this.mediaElement&&e.ut()===this.mediaElement.ut()&&(e.isView()||this.mediaElement.isView())){if(e.isView()||!this.mediaElement.isView())g.g9(this.N6),this.mediaElement=e,this.mediaElement.JW=this,fNJ(this),this.ZB.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.s_();if(!this.playerState.isError()){var N=wY(this.playerState,512);g.G(N,8)&&!g.G(N,2)&&(N=yO(N,1));e.isView()&&(N=wY(N,64));this.zi(N)}this.mediaElement= e;this.mediaElement.JW=this;!g.I_(this.ph)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);fNJ(this);this.ZB.setMediaElement(this.mediaElement);this.T("html5_prewarm_media_source")&&!this.Bc.PU()&&cF5(this.mediaElement)}}; g.J.s_=function(e,N,y){e=e===void 0?!1:e;N=N===void 0?!1:N;y=y===void 0?!1:y;this.logger.debug("remove media element");if(this.mediaElement){var w=this.getCurrentTime();w>0&&(this.ZB.j=w);this.ZB.setMediaElement(null);!e&&this.fO()?v7M(this):this.IN(y);this.tW&&(sB(this.tW),Ps(this,N));this.X2.stop();if(this.mediaElement&&(!(this.vF.C9()||this.T("html5_preroll_su_report_fix")&&this.wq())||this.playerState.isError()||g.G(this.playerState,2)||this.zi(yO(this.playerState,512)),this.mediaElement)){g.g9(this.N6); if(e||!this.mediaElement.isView())this.R9.d6("mesv_s"),this.mediaElement.stopVideo(),dk(this);this.mediaElement=this.mediaElement.JW=null}}}; g.J.playVideo=function(e,N){e=e===void 0?!1:e;N=N===void 0?!1:N;var y=this,w,E,A,T,p,C;return g.f(function(r){if(r.J==1){y.logger.debug("start play video");var Y=window.google_image_requests;Y&&Y.length>10&&(window.google_image_requests=Y.slice(-10));if(g.G(y.playerState,128))return r.return();if(y.Bc.uy())return y.publish("signatureexpired"),r.return();y.mediaElement&&mS(y.Eg());y.yR();(g.G(y.playerState,64)||e)&&y.zi(yO(y.playerState,8));return y.vF.finished&&y.mediaElement?y.yj||!y.lQ?r.u9(2): g.D(r,y.lQ,3):r.return()}if(r.J!=2&&g.G(y.playerState,128))return r.return();if(!y.videoData.K)return y.videoData.isLivePlayback&&!g.Oh(y.ph.L,!0)?(w="html5.unsupportedlive",E=2):(w=y.videoData.RV()?"fmt.unplayable":"fmt.noneavailable",E=1),g.uA(Error("selectableFormats")),y.MP(w,E,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),r.return();if(y.ox()&&y.videoData.K.J)return y.logger.debug("rebuild playbackData for airplay"),r.return(br(y));if(To(y))Y=y.ZB,yG(Y.videoData)?!Y.isAtLiveHead(Y.getCurrentTime())&& Y.eg()&&Y.JW.seekTo(Infinity,{BY:"seektimeline_peggedToLive",seekSource:34}):g.xK(Y.videoData)&&Y.getCurrentTime()T;T=N.T("html5_dont_save_under_1080")&&T<1080;if(!E||!A&&!T){var p;E=BAM(N,(p=w.J)==null?void 0:p.videoInfos);p=N.JW.getPlaybackRate();p>1&&E&&(p=c_5(N.ph.L,w.J.videoInfos,p),e.J!==0&&p=480;if(N.T("html5_exponential_memory_for_sticky")){C=N.ph.UY;r=1;var Y=Y===void 0?!1:Y;xb0(C,"sticky-lifetime");C.values["sticky-lifetime"]&&C.lY["sticky-lifetime"]||(C.values["sticky-lifetime"]=0,C.lY["sticky-lifetime"]=0);Y&&Fn(C,"sticky-lifetime")>.0625&&(r=C.lY["sticky-lifetime"]*2);C.values["sticky-lifetime"]+=1* Math.pow(2,C.J/r);C.lY["sticky-lifetime"]=r;C.j.start()}if(N.T("html5_perf_cap_override_sticky")){Y=N.K;C=N.T("html5_perserve_av1_perf_cap");C=C===void 0?!1:C;if(C===void 0?0:C){r=DM();N=g.c(Object.keys(r));for(e=N.next();!e.done;e=N.next())e=e.value,e.indexOf("1")!==0&&delete r[e];g.uY("yt-player-performance-cap",r,2592E3)}else g.Zw("yt-player-performance-cap");k55(C);if(C){C=g.c(hm.keys());for(r=C.next();!r.done;r=C.next())r=r.value,r.startsWith("1")||hm.delete(r);C=g.c(hj.values());for(r=C.next();!r.done;r= C.next())r=r.value,r.startsWith("1")||hj.delete(r);C=g.c(Y.keys());for(r=C.next();!r.done;r=C.next())r=r.value,r.startsWith("1")||Y.delete(r)}else hm.clear(),hj.clear(),Y.clear()}}}this.tW&&(Y=this.tW,y=y||"",Y.policy.J?q4(Y.N.J,y):q4(Y.J.L,y));this.yq()}; g.J.getUserPlaybackQualityPreference=function(){return this.videoData.K&&!this.videoData.K.J?sj(this.videoData.E8):LA[zm()]}; g.J.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()}; g.J.setUserAudio51Preference=function(e,N){this.getUserAudio51Preference()!==e&&(this.Fh("toggle51",{pref:e}),g.uY("yt-player-audio51",e,N?31536E3:2592E3),this.TE())}; g.J.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()}; g.J.setProximaLatencyPreference=function(e){var N=this.getProximaLatencyPreference();this.Fh("proxima",{pref:e});g.uY("yt-player-proxima-pref",e,31536E3);N!==e&&(e=this.ZB,e.VB=!0,e.JW.seekTo(Infinity,{BY:"seektimeline_proximaSeekToHead",seekSource:34}))}; g.J.getProximaLatencyPreference=function(){var e;return(e=im())!=null?e:0}; g.J.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; g.J.pJ=function(){this.videoData.videoId?this.nX.pJ(this.videoData):this.Fh("povid",{})}; g.J.BK=function(){this.videoData.videoId?this.nX.BK(this.videoData):this.Fh("piavid",{})}; g.J.yq=function(){if(!this.Ss()&&!g.G(this.playerState,128)&&this.videoData.K){if(this.videoData.K.J)Fx(this);else{var e=Xx(this),N=this.videoData;a:{var y=this.videoData.jp;if(e.J){for(var w=g.c(y),E=w.next();!E.done;E=w.next()){E=E.value;var A=E.getInfo(),T=g.q5[A.video.quality];if((!e.K||A.video.quality!=="auto")&&T<=e.J){y=E;break a}}y=y[y.length-1]}else y=y[0]}N.VB=y;ko_(this,e.reason,qdP(this,this.videoData.VB))}if(this.T("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.ZB.G= !1,this.playVideo()}}; g.J.qM=function(e,N){if(this.Ss()||g.G(this.playerState,128))return!1;var y,w=!((y=this.videoData.K)==null||!y.J);y=w&&N?this.getCurrentTime()-this.w7():NaN;if(this.ph.experiments.gP("html5_record_audio_format_intent")){var E=this.Eg();if(E.qoe){E=E.qoe;var A=[e.Vl.id,isNaN(y)?"m":"t"];g.IU(E,g.BG(E.provider),"afi",A)}}if(w)return N&&(w=u$_(this.ZB),this.Fh("aswh",{id:e.id,xtags:e.xtags,bh:w.toFixed(3)})),this.tW.setAudioTrack(e,y,N),!0;if(Xs3(this)){a:{N=this.mediaElement.audioTracks();for(w=0;w< N.length;++w)if(y=N[w],y.label===e.Vl.getName()){if(y.enabled){N=!1;break a}N=y.enabled=!0;break a}N=void 0}N&&this.Fh("hlsaudio",{id:e.id})}else{a:if(N=this.videoData,N.j&&!GS(N.j)||e===N.Ip||!N.jp||N.jp.length<=0)N=!1;else{w=g.c(N.jp);for(y=w.next();!y.done;y=w.next()){y=y.value;if(!(y instanceof NO)){N=!1;break a}E=e.Vl.getId();y.N&&(phM(y.N,E),y.yl=null)}N.Ip=e;N=!0}N&&Sk(this)&&(this.publish("internalaudioformatchange",this.videoData,!0),this.Fh("hlsaudio",{id:e.id}))}return!0}; g.J.getAvailableAudioTracks=function(){return g.xK(this.videoData)&&this.k_?ep5(this.k_).getAvailableAudioTracks():this.videoData.getAvailableAudioTracks()}; g.J.getAudioTrack=function(){if(Xs3(this)){var e=dJM(this);if(e)return e}return this.videoData.getAudioTrack()}; g.J.Jq=function(){if(this.videoData.T("html5_trigger_loader_when_idle_network")&&!this.videoData.Cx()&&L3(this.videoData)){var e;(e=this.tW)!=null&&e.Ga()}}; g.J.tS=function(){if(Rf(this.videoData)&&this.videoData.T("html5_gapless_append_early")){var e;(e=this.tW)!=null&&e.Ga()}}; g.J.wb=function(e){e=e===void 0?!1:e;if(this.tW){var N=this.tW,y=N.wb;var w=this.videoData;w=w.T("html5_ssdai_use_post_for_media")&&w.enableServerStitchedDai?!1:wd(w)&&w.As&&!w.isAd();y.call(N,w,e)}}; g.J.IN=function(e){e=e===void 0?!1:e;this.TZ&&(this.logger.debug("remove media source"),h30(this.TZ),this.wb(e),this.TZ.dispose(),this.TZ=null)}; g.J.E$=function(){return this.TZ}; g.J.KH=function(e,N,y,w){function E(T){try{g7E(A,T,N,y)}catch(p){g.uA(p),A.handleError(new P3("fmt.unplayable",{msi:"1",ename:p&&typeof p==="object"&&"name"in p?String(p.name):void 0},1))}} var A=this;N=N===void 0?!1:N;y=y===void 0?!1:y;i$F(this,w===void 0?!1:w);this.TZ=e;this.fO()&&Kh(this.TZ)==="open"?E(this.TZ):lYH(this.TZ,E)}; g.J.VQ=function(e){this.logger.debug("onNeedKeyInfo");this.K8.set(e.initData,e);this.FT&&(this.FT.VQ(e),this.T("html5_eme_loader_sync")||this.K8.remove(e.initData))}; g.J.k5=function(e){this.videoData.By=g.Rx("auto",e,!1,"u");Fx(this)}; g.J.wJ=function(e){var N=e.reason,y=e.J.info,w=e.token,E=e.videoId,A=this.Eg(E),T=g.xK(this.videoData)?A.getVideoData():this.videoData;if(y!==T.j){var p=!T.j;T.j=y;N!=="m"&&N!=="t"&&(N=p?"i":"a");var C=N==="m"||N==="t";this.ph.experiments.gP("html5_refactor_sabr_audio_format_selection_logging")?this.Tk=new br5(T,y,N,"",w,E):A.e3(new br5(T,y,N,"",w));this.publish("internalaudioformatchange",T,!p&&C)}this.ZB.wJ(e.J.index)}; g.J.Me=function(e){this.publish("localmediachange",e)}; g.J.mK=function(e){e=e===void 0?{}:e;var N;(N=this.tW)==null||N.mK(this.ph,Un(this.videoData),e)}; g.J.uy=function(){return this.Bc.uy()}; g.J.HT=function(e){this.Qi(new P3("staleconfig",{reason:e}))}; g.J.handleError=function(e){this.Bc.handleError(e)}; g.J.PU=function(){return this.Bc.PU()}; g.J.ou=function(e){this.ZB.ou(e)}; g.J.hT=function(e,N,y){e=e===void 0?!1:e;N=N===void 0?!1:N;y=y===void 0?!1:y;var w=this,E,A,T;return g.f(function(p){if(p.J==1){w.tW&&w.tW.f_();w.tW&&w.tW.Ss()&&cs(w);if(w.T("html5_enable_vp9_fairplay")&&w.RV()&&(E=w.videoData.J)!=null)for(var C in E.J)E.J.hasOwnProperty(C)&&(E.J[C].J=null,E.J[C].K=!1);w.zi(yO(w.playerState,2048));w.T("html5_ssap_keep_media_on_finish_segment")&&g.xK(w.videoData)?w.publish("newelementrequired",y):w.publish("newelementrequired");return e?g.D(p,br(w),2):p.u9(2)}w.videoData.Cx()&& ((A=w.tW)==null?0:A.qg)&&!To(w)&&((T=w.isAtLiveHead())&&yG(w.videoData)?w.seekTo(Infinity,{BY:"videoPlayer_getNewElement"}):w.videoData.Ta&&w.tW&&(C=w.tW,C.rP.Cx&&(C.rP.Ta||C.rP.j||C.rP.isPremiere?(C.seek(0,{BY:"loader_resetSqless"}),C.videoTrack.G=!0,C.audioTrack.G=!0,C.videoTrack.L=!0,C.audioTrack.L=!0):SI(C.rP)&&Wl(C))));N&&w.seekTo(0,{seekSource:105});g.G(w.playerState,8)&&(w.T("html5_ssap_keep_media_on_finish_segment")&&g.xK(w.videoData)?w.playVideo(!1,y):w.playVideo());g.hn(p)})}; g.J.BZ=function(e){this.Fh("hgte",{ne:+e});this.videoData.U=!1;e&&this.hT();this.tW&&gKM(this.tW)}; g.J.E1=function(e){this.Fh("newelem",{r:e});this.hT()}; g.J.pauseVideo=function(e){e=e===void 0?!1:e;if((g.G(this.playerState,64)||g.G(this.playerState,2))&&!e)if(g.G(this.playerState,8))this.zi(EV(this.playerState,4,8));else if(this.C_())Sk(this);else return;g.G(this.playerState,128)||(e?this.zi(yO(this.playerState,256)):this.zi(EV(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.bk(this.videoData)&&this.tW&&Ps(this,!1)}; g.J.stopVideo=function(){this.pauseVideo();this.tW&&(Ps(this,!1),this.tW.w4())}; g.J.wK=function(e,N){e=e===void 0?!1:e;N=N===void 0?!1:N;if(this.fO()&&N){var y;(y=this.mediaElement)==null||y.wK()}else{var w;(w=this.mediaElement)==null||w.stopVideo()}dk(this);cs(this);g.G(this.playerState,128)||(e?this.zi(wY(wY(yO(this.playerState,4),8),16)):this.zi(Nb(this.playerState)));this.videoData.videoId&&this.ph.aq.remove(this.videoData.videoId)}; g.J.seekTo=function(e,N){N=N===void 0?{}:N;this.logger.debug(function(){return"SeekTo "+e+", "+JSON.stringify(N)}); g.G(this.playerState,2)&&Sk(this);N.PYs&&this.zi(yO(this.playerState,2048));N.seekSource!==58&&N.seekSource!==60||!this.T("html5_update_vss_during_gapless_seeking")||OH9(this.Eg(),N.seekSource);this.ZB.seekTo(e,N);this.yb.sync()}; g.J.z3=function(e){this.R9.j.AS();g.G(this.playerState,32)||(this.zi(yO(this.playerState,32,e==null?void 0:e.seekSource)),g.G(this.playerState,8)&&this.pauseVideo(!0),this.publish("beginseeking",this));this.HY()}; g.J.yr=function(e){e=e==null?void 0:e.seekSource;g.G(this.playerState,32)?(this.zi(EV(this.playerState,16,32,e)),this.publish("endseeking",this)):g.G(this.playerState,2)||this.zi(yO(this.playerState,16,e));this.R9.j.zK(this.videoData,this.playerState.isPaused())}; g.J.I0=function(e){this.yr(e)}; g.J.Qt=function(){this.publish("SEEK_COMPLETE")}; g.J.jT=function(){this.publish("onAbnormalityDetected")}; g.J.qf=function(e){var N=this.nX,y=this.videoData.clientPlaybackNonce,w=this.playerType;if(e.scope===4){var E=e.type;if(E){var A=N.NU(),T=A.getVideoData().clientPlaybackNonce;w===1&&(T=y);(N=vU1(N,T))?(y=N.getVideoData())&&(e.writePolicy===2&&y.sabrContextUpdates.has(E)||y.sabrContextUpdates.set(E,e)):A.Fh("scuset",{ncpf:"1",ccpn:T,crcpn:y})}else g.uA(Error("b/380308491: contextUpdateType is undefined"))}}; g.J.VF=function(){if(this.nX.M7().zy&&this.playerType===2)return this.nX.VF("")}; g.J.getCurrentTime=function(){return this.ZB.getCurrentTime()}; g.J.F2=function(){return this.ZB.F2()}; g.J.eN=function(){return this.ZB.eN()}; g.J.UV=function(e){return this.k_&&(e=e||this.k_.XH())?TI(this.k_,e):this.eN()}; g.J.Un=function(){return this.ZB.Un()}; g.J.getPlaylistSequenceForTime=function(e){return this.videoData.getPlaylistSequenceForTime(e-this.w7())}; g.J.K9=function(){var e=NaN;this.mediaElement&&(e=this.mediaElement.K9());return e>=0?e:this.getCurrentTime()}; g.J.OY=function(){var e;return((e=this.videoData.J)==null?0:e.OY)?this.videoData.J.OY(this.getCurrentTime()-this.w7()):this.mediaElement&&(e=this.mediaElement.dA())&&(e=e.getTime(),!isNaN(e))?e/1E3+this.getCurrentTime():NaN}; g.J.getDuration=function(e){return g.xK(this.videoData)&&this.k_?e?aE9(this.k_,e):LH(this.k_):this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.w7():this.ra()?this.ra():0}; g.J.gG=function(){var e=new e63;if(this.tW){var N=this.ph.schedule,y=this.ph.B9();y=y===void 0?!1:y;e.xS=N.qg;e.RM=N.Et;e.bandwidthEstimate=M_(N);if(y){y=(N.U.AT()*1E3).toFixed();var w=(N.i9.AT()*1E3).toFixed(),E=Ca(N).toFixed(2),A=((N.G.AT()||0)*1E9).toFixed(2),T=N.K.AT().toFixed(0),p=N.Rq.AT().toFixed(0),C=N.D.percentile(.5).toFixed(2),r=N.D.percentile(.92).toFixed(2),Y=N.D.percentile(.96).toFixed(2),M=N.D.percentile(.98).toFixed(2);N.J?N.J.reset():N.J=new eV;N.J.add(N.l9);N.J.add(N.interruptions.length); for(var l=0,F=N.interruptions.length-1;F>=0;F--){var S=N.interruptions[F];N.J.add(S-l);l=S}l=0;for(F=N.j.length-1;F>=0;F--){S=N.j[F];var k=S.stamp/36E5;N.J.add(k-l);l=k;N.J.add(S.net/1E3);N.J.add(S.max)}N=N.J.jY();e.J={ttr:y,ttm:w,d:E,st:A,bw:T,abw:p,v50:C,v92:r,v96:Y,v98:M,"int":N}}Td0(this.tW,e)}else this.mediaElement&&(e.Ze=U3(this.mediaElement));e.xS=this.xS;e.RM=this.RM;e.K=this.isAtLiveHead()&&this.isPlaying()?rvH(this):NaN;return e}; g.J.Gt=function(e,N){this.RM+=e;this.xS+=N}; g.J.sz=function(){return this.mediaElement?g.bk(this.videoData)?1:hY(this.videoData)?this.isAtLiveHead()||this.eg()?1:this.ZB.sz():this.mediaElement.sz():0}; g.J.vQ=function(){var e=this.getCurrentTime();if(this.FT){var N="IT/"+(this.FT.J.getInfo()+"/"+sj(this.De()));N+="/"+this.FT.getInfo()}else N="";var y=this.isGapless(),w=this.xB(),E=this.BQ(),A=g.Bs(this),T=this.getPlayerState(),p=this.getPlaylistSequenceForTime(this.getCurrentTime());a:{var C=0;var r="";if(this.Yk){if(this.Yk.g2){r="D,";break a}C=this.Yk.MH();r=this.Yk.XH().substring(0,4)}else this.k_&&(C=this.k_.MH(),r=this.k_.XH().substring(0,4));C>0?(C="AD"+C+", ",r&&(C+=r+", "),r=C):r=""}return{currentTime:e, d0:N,isGapless:y,xB:w,dI:E,xP1:A,playerState:T,G9t:p,bNs:this.Wx,Ui:r,F3Z:this.DR()}}; g.J.N7=function(e){var N={};if(e===void 0?0:e){Object.assign(N,this.Eg().N7());this.mediaElement&&(Object.assign(N,this.mediaElement.N7()),Object.assign(N,this.DR()));this.tW&&Object.assign(N,this.tW.N7());this.FT&&(N.drm=JSON.stringify(this.FT.N7()));N.state=this.playerState.state.toString(16);g.G(this.playerState,128)&&(N.debug_error=JSON.stringify(this.playerState.qS));this.V_()&&(N.prerolls=this.wL.join(","));this.videoData.CC&&(N.ismb=this.videoData.CC);this.videoData.latencyClass!=="UNKNOWN"&& (N.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(N.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)N.is_mosaic=1;this.videoData.cotn&&(N.is_offline=1,N.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(N.playerResponseCpn=this.videoData.playerResponseCpn);this.nX.isOrchestrationLeader()&&(N.leader=1);this.videoData.isLivePlayback&&(this.videoData.J&& Y_(this.videoData.J)&&(N.segduration=Y_(this.videoData.J)),e=this.ZB,N.lat=e.Z?FSJ(e.Z.j):0,N.liveutcstart=this.videoData.liveUtcStartSeconds);N.relative_loudness=this.videoData.Fo.toFixed(3);if(e=g.Bs(this))N.optimal_format=e.video.qualityLabel;N.user_qual=zm();N.release_version="youtube.player.web_20250209_00_RC00";g.xK(this.videoData)&&this.k_&&(N.ssap=Mo(this.k_))}N.debug_videoId=this.videoData.videoId;return N}; g.J.addCueRange=function(e){this.Ef([e])}; g.J.removeCueRange=function(e){this.yb.bl([e])}; g.J.Wr=function(){this.yb.sync()}; g.J.I7=function(e,N){return this.yb.I7(e,N)}; g.J.Ef=function(e,N){this.yb.wx(e,N)}; g.J.E7=function(e){this.yb.bl(e)}; g.J.S4=function(e){var N=this.yb;e.length<=0||N.Ss()||(e=N.J,e.array.sort(e.J))}; g.J.XW=function(){return this.yb.XW()||[]}; g.J.Nj=function(){return this.qL}; g.J.ox=function(){return this.visibility.ox()}; g.J.aS=function(){this.mediaElement&&this.mediaElement.aS()}; g.J.wEG=function(){hv(this)}; g.J.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.J.KP=function(e){var N=e.target.cI();if(this.mediaElement&&this.mediaElement.cI()&&this.mediaElement.cI()===N){KP9(this,e.type);switch(e.type){case "error":var y=s3(this.mediaElement)||"",w=this.mediaElement.Cq();if(y==="capability.changed"){this.T("html5_restart_on_capability_change")?(this.Fh("capchg",{msg:w}),this.hT(!0)):br(this);return}if(this.mediaElement.hasError()&&($N0(this.Bc,y,{msg:w})||g.xK(this.videoData)&&this.k_&&(w=this.playerState.qS,this.k_.handleError(y,w==null?void 0:w.l5))))return; if(this.isBackground()&&this.mediaElement.pw()===4){this.wK();k7(this,"unplayable");return}break;case "durationchange":y=this.mediaElement.getDuration();isFinite(y)&&(!this.TZ||y>0)&&y!==1&&this.zV(y);break;case "ratechange":this.tW&&this.tW.setPlaybackRate(this.mediaElement.getPlaybackRate());CwM(this.yb);this.Eg().onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":O$3(this);this.publish("onLoadedMetadata");uxP(this);y=this.OY();this.videoData.YN&&(this.videoData.YN=y);break; case "loadstart":uxP(this);break;case "progress":case "suspend":this.HY();this.publish("onLoadProgress",this,this.sz());break;case "playing":this.R9.d6("plev");this.NR&&!To(this)&&(this.NR=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{BY:"videoplayer_onPlaying"})));break;case "timeupdate":y=this.mediaElement&&!this.mediaElement.getCurrentTime();w=this.mediaElement&&this.mediaElement.Rl()===0;if(y&&(!this.Hr||w))return;this.Hr=this.Hr||!!this.mediaElement.getCurrentTime(); tk1(this);this.HY();if(!this.mediaElement||this.mediaElement.cI()!==N)return;this.publish("onVideoProgress",this,this.getCurrentTime());break;case "waiting":if(this.mediaElement.JP().length>0&&this.mediaElement.O4().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.tW)return;this.T("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.Rl()>2||!this.mediaElement.isSeeking()&&AX(this.mediaElement.O4(),this.mediaElement.getCurrentTime()))&& (y=this.mediaElement.N7(),y.bh=U3(this.mediaElement).toFixed(3),this.Fh("uwe",y));g.xK(this.videoData)&&this.k_&&WB0(this.k_,this.mediaElement.getCurrentTime());break;case "resize":O$3(this);this.videoData.N&&this.videoData.N.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.Jk&&g.G(this.playerState,8)&&!g.G(this.playerState,1024)&&this.getCurrentTime()===0&&g.k$){k7(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.cI()=== N){KS1(this.ZB,e,this.k_||void 0);this.publish("videoelementevent",e);N=this.playerState;w=this.BC;var E=this.mediaElement;y=this.videoData.clientPlaybackNonce;var A=g.xK(this.videoData)&&this.k_?LH(this.k_):void 0;if(!g.G(N,128)){var T=N.state;E=E?E:e.target;var p=E.getCurrentTime();if(!g.G(N,64)||e.type!=="ended"&&e.type!=="pause"){A=A||E.getDuration();A=E.isEnded()||p>1&&Math.abs(p-A)<1.1;var C=e.type==="pause"&&E.isEnded();p=e.type==="ended"||e.type==="waiting"||e.type==="timeupdate"&&!g.G(N, 4)&&!RU(w,p);if(C||A&&p)E.pM()>0&&E.cI()&&(T=14);else switch(e.type){case "error":s3(E)&&(T|=128);break;case "pause":g.G(N,256)?(T^=256)||(T=64):g.G(N,32)||g.G(N,2)||g.G(N,4)||(T=4,g.G(N,1)&&g.G(N,8)&&(T|=1));break;case "playing":p=T;T=(T|8)&-1093;p&4?(T|=1,ep(w,E,!0)):RU(w,E.getCurrentTime())&&(T&=-2);g.G(N,1)&&ep(w,E)&&(T|=1);break;case "seeking":T|=16;g.G(N,8)&&(T|=1);T&=-3;break;case "seeked":T&=-17;ep(w,E,!0);break;case "waiting":g.G(N,2)||(T|=1);ep(w,E);break;case "timeupdate":p=g.G(N,16),A= g.G(N,4),(g.G(N,8)||p)&&!A&&RU(w,E.getCurrentTime())&&(T=8),ep(w,E)&&(T|=1)}}w=T;T=null;w&128&&(T=e.target,E=s3(T),p=1,E?(E==="capability.changed"&&(p=2),A="GENERIC_WITHOUT_LINK",C=T.N7(),C.mediaElem="1",/AUDIO_RENDERER/.test(T.Cq())&&(A="HTML5_AUDIO_RENDERER_ERROR"),T={errorCode:E,errorMessage:g.R3[A]||"",Se:A,Hu:Xe(C),l5:p,cpn:N.qS?N.qS.cpn:""}):T=null,T&&(T.cpn=y));N=Nb(N,w,T)}!g.G(this.playerState,1)&&g.G(N,1)&&H$H(this,"evt"+e.type);this.zi(N)}}}; g.J.mUt=function(e){e=e.J.availability==="available";e!==this.qL&&(this.qL=e,this.publish("airplayavailabilitychange"))}; g.J.n_B=function(){var e=(0,g.iC)(),N=this.mediaElement.ox();this.Fh("airplay",{ia:N});!N&&!isNaN(this.Ux)&&e-this.Ux<2E3||(this.Ux=e,N!==this.ox()&&(e=this.visibility,e.J!==N&&(e.J=N,e.iP()),this.Fh("airplay",{rbld:N}),this.TE()),this.publish("airplayactivechange"))}; g.J.tP=function(e){if(this.tW){var N=this.tW,y=N.j,w=N.getCurrentTime(),E=Date.now()-y.D;y.D=NaN;y.Fh("sdai",{adfetchdone:e,d:E});e&&!isNaN(y.G)&&y.N!==3&&vT(y.tW,w,y.G,y.L);y.policy.L?y.K=NaN:y.j=NaN;dB(y,4,y.N===3?"adfps":"adf");sB(N)}}; g.J.oi=function(){g.k3(this.yx);this.X2.stop();this.videoData.qg=!0;this.ph.Mk=!0;this.ph.pX=0;var e=this.Bc;if(e.videoData.N){var N=e.Ot.L,y=e.videoData.N.Iq;N.N.has(y)&&(N.N.delete(y),RI(N))}e.J.stop();this.IR();g.G(this.playerState,8)&&this.zi(wY(this.playerState,65));this.So=!1;WpE(this.Eg());g.NA(this.ON);this.publish("playbackstarted");(e=g.nM("yt.scheduler.instance.clearPriorityThreshold"))?e():Em(0,0)}; g.J.IR=function(){var e=this.nX.M7(),N={},y={};!mo("pbs",this.R9.timerName)&&zH.measure&&zH.getEntriesByName&&(zH.getEntriesByName("mark_nr")[0]?O6E("mark_nr"):O6E());e.videoId&&(N.videoId=e.videoId);e.clientPlaybackNonce&&!this.T("web_player_early_cpn")&&(N.clientPlaybackNonce=e.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(y.isPausedOnLoad=!0);y.itag=e.N?Number(e.N.itag):-1;e.NK&&(y.preloadType=String(this.uj?2:1));N.liveStreamMode=vbV[MK(e)];N.playerInfo=y;this.R9.infoGel(N); if(this.tW){e=this.tW.timing;window&&window.performance&&window.performance.getEntriesByName&&(e.K&&(N=window.performance.getEntriesByName(e.K),N.length&&(N=N[0],e.tick("vri",N.fetchStart),e.tick("vdns",N.domainLookupEnd),e.tick("vreq",N.requestStart),e.tick("vrc",N.responseEnd))),e.N&&(N=window.performance.getEntriesByName(e.N),N.length&&(N=N[0],e.tick("ari",N.fetchStart),e.tick("adns",N.domainLookupEnd),e.tick("areq",N.requestStart),e.tick("arc",N.responseEnd))));e=e.ticks;for(var w in e)e.hasOwnProperty(w)&& this.R9.tick(w,e[w])}}; g.J.YJ=function(e,N,y){e=(e+(this.l1===3?.3:0))/N;N=Math.floor(e*4);N>this.l1&&(this.Fh("vpq",{q:N,cpn:y||this.videoData.clientPlaybackNonce,ratio:e.toFixed(3)}),this.l1=N)}; g.J.gZ=function(){this.l1=-1}; g.J.HY=function(e){var N=this;e=e===void 0?!1:e;if(this.mediaElement&&this.videoData){qvP(this.ZB,this.isPlaying());var y=this.getCurrentTime();!this.tW||g.G(this.playerState,4)&&g.bk(this.videoData)||g.G(this.playerState,32)&&L3(this.videoData)||pFn(this.tW,y);this.T("html5_ssap_pacf_qoe_ctmp")&&this.playerType===2&&this.YJ(y,this.videoData.lengthSeconds);y>5&&(this.ZB.j=y);var w=g.w0();w?g.Kk.Zx(this.Si):g.cL(this.Si);var E=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!E||HF(this.videoData))&& !g.G(this.playerState,128)){var A=function(){if(N.mediaElement&&!g.G(N.playerState,128)){N.ph.B9()&&KP9(N,"pfx");var T=N.getCurrentTime();N.T("html5_buffer_underrun_transition_fix")&&(T-=N.w7());var p=U3(N.mediaElement),C=g.G(N.playerState,8),r=RU(N.BC,T),Y=IYn(N.BC,T,(0,g.iC)(),p);C&&r?N.zi(wY(N.playerState,1)):C&&Y?(C=N.getDuration(),r=yG(N.videoData),C&&Math.abs(C-T)<1.1?(N.Fh("setended",{ct:T,bh:p,dur:C,live:r}),N.mediaElement.ZS()?(N.logger.debug("seek to 0 because of looping"),N.seekTo(0,{BY:"videoplayer_loop", seekSource:37})):N.U7()):(N.playerState.isBuffering()||H$H(N,"progress_fix"),N.zi(yO(N.playerState,1)))):(C&&!r&&!Y&&T>0&&(C=(Date.now()-N.P3)/1E3,r=N.getDuration(),T>r-1&&N.Fh("misspg",{t:T.toFixed(2),d:r.toFixed(2),r:C.toFixed(2),bh:p.toFixed(2)})),N.playerState.isPaused()&&N.playerState.isBuffering()&&U3(N.mediaElement)>5&&N.zi(wY(N.playerState,1)));N.HY()}}; this.mediaElement.JP().length===0?this.Si=w?g.Kk.kB(A,100):g.b4(A,100):this.Si=w?g.Kk.kB(A,500):g.b4(A,500)}this.videoData.Bk=y;this.k_&&this.k_.aM();!e&&this.isPlaying()&&Z$n(this);VL5(this.NO,this.yj,this.LC(),this.isBackground())&&Fx(this);this.publish("progresssync",this,e);E&&HF(this.videoData)&&this.publish("onVideoProgress",this,this.getCurrentTime())}}; g.J.M4=function(){this.MP("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.J.BQ=function(){return this.Eg().BQ()}; g.J.Xx=function(){return this.tW?this.tW.Xx():M_(this.ph.schedule,!0)}; g.J.zi=function(e){if(!g.A_(this.playerState,e)){this.logger.debug(function(){return"Setting state "+e.toString()}); var N=new g.ME(e,this.playerState);this.playerState=e;WPP(this);var y=!this.dV.length;this.dV.push(N);var w=this.mediaElement&&this.mediaElement.isSeeking();w=N.oldState.state===8&&!w;g.FD(N,1)&&w&&g.G(this.playerState,8)&&!g.G(this.playerState,64)&&this.tW&&(DO3(this.tW),this.mediaElement&&U3(this.mediaElement)>=5&&DN1(this.NO,this.yj)&&Fx(this));(w=g.Y2(this.ph.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.G(e,1)&&(g.G(e,8)||g.G(e,16))?this.QS.start(w):this.QS.stop();(lp(N,8)<0|| g.FD(N,1024))&&this.X2.stop();!g.FD(N,8)||this.videoData.qg||g.G(N.state,1024)||this.X2.start();g.G(N.state,8)&&lp(N,16)<0&&!g.G(N.state,32)&&!g.G(N.state,2)&&this.playVideo();g.G(N.state,2)&&hY(this.videoData)&&(this.zV(this.getCurrentTime()),this.HY(!0));g.FD(N,2)&&(this.kZ(!0),this.ph.B9()&&this.T("html5_sabr_parse_live_metadata_playback_boundaries")&&L3(this.videoData)&&this.videoData.J&&(w={minst:""+this.videoData.J.gf,cminst:""+(this.videoData.J.Ti()+this.w7()),maxst:""+this.videoData.J.zg, hts:""+this.videoData.J.Kh,cmaxst:""+(this.videoData.J.ra()+this.w7())},this.Fh("sabrSeekableBoundaries",w)));g.FD(N,128)&&this.wK();this.videoData.J&&this.videoData.isLivePlayback&&!this.xq&&(lp(N,8)<0?KaJ(this.videoData.J):g.FD(N,8)&&this.videoData.J.resume());tf3(this.ZB,N);RMs(this.Eg(),N);if(y&&!this.Ss())try{for(var E=g.c(this.dV),A=E.next();!A.done;A=E.next()){var T=A.value;rj0(this.yb,T);this.publish("statechange",T)}}finally{this.dV.length=0}}}; g.J.Vt=function(){this.R9.tick("qoes")}; g.J.TF=function(){this.ZB.TF()}; g.J.V8=function(e,N,y,w){a:{var E=this.Bc;w=w===void 0?"LICENSE":w;y=y.substring(0,256);var A=dp(N);e==="drm.keyerror"&&this.FT&&this.FT.N.keys.length>1&&E.j<96&&(e="drm.sessionlimitexhausted",A=!1);if(A)if(E.videoData.N&&E.videoData.N.video.isHdr())oeM(E,e);else{if(E.JW.MP(e,N,w,y),pl3(E,{detail:y}))break a}else E.Qi(e,{detail:y});e==="drm.sessionlimitexhausted"&&(E.Fh("retrydrm",{sessionLimitExhausted:1}),E.j++,mJs(E.JW))}}; g.J.Ck9=function(){var e=this,N=g.Y2(this.ph.experiments,"html5_license_constraint_delay"),y=w9();N&&y?(N=new g.e6(function(){e.yq();hv(e)},N),g.Q(this,N),N.start()):(this.yq(),hv(this))}; g.J.pu=function(e){this.publish("heartbeatparams",e)}; g.J.Nx=function(e){this.Fh("keystatuses",uU3(e));var N="auto",y=!1;this.videoData.N&&(N=this.videoData.N.video.quality,y=this.videoData.N.video.isHdr());if(this.T("html5_drm_check_all_key_error_states")){var w=qsM(N,y);w=Mt(e)?ZXH(e,w):e.j.includes(w)}else{a:{N=qsM(N,y);for(w in e.J)if(e.J[w].status==="output-restricted"){var E=e.J[w].type;if(N===""||E==="AUDIO"||N===E){w=!0;break a}}w=!1}w=!w}if(this.T("html5_enable_vp9_fairplay")){if(y)if(e.U){var A;if((A=this.FT)==null?0:zE(A.J))if((y=this.FT)== null)y=0;else{N=A=void 0;E=g.c(y.N.values());for(var T=E.next();!T.done;T=E.next())T=T.value,A||(A=xK1(T,"SD")),N||(N=xK1(T,"AUDIO"));y.T4({sd:A,audio:N});y=A==="output-restricted"||N==="output-restricted"}else y=!w;if(y){this.Fh("drm",{dshdr:1});oeM(this.Bc);return}}else{this.videoData.yJ||(this.videoData.yJ=!0,this.Fh("drm",{dphdr:1}),this.hT(!0));return}var p;if((p=this.FT)==null?0:zE(p.J))return}else if(p=e.U&&w,y&&!p){oeM(this.Bc);return}w||ZXH(e,"AUDIO")&&ZXH(e,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"), e=uU3(e),this.Dm?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.T("html5_report_fatal_drm_restricted_error_killswitch")||this.MP("drm.keyerror",2,void 0,"info."+e)):(this.Dm=!0,this.Qi(new P3("qoe.restart",Object.assign({},{retrydrm:1},e))),Fx(this),mJs(this)))}; g.J.ZXh=function(){if(!this.videoData.qg&&this.mediaElement&&!this.isBackground()){var e="0";this.mediaElement.Rl()>0&&U3(this.mediaElement)>=5&&this.videoData.K&&this.videoData.K.J&&(this.zi(yO(this.playerState,1)),H$H(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),e="1");WPP(this);var N=this.videoData.K;e={restartmsg:e,mfmt:!On(this.videoData),mdrm:!(!(N&&N.videoInfos&&N.videoInfos.length&&N.videoInfos[0].BG)||this.FT),mfmtinfo:!this.videoData.N,prerolls:this.V_()?this.wL.join(","): "0"};if(this.FT){N=this.FT;if(N.N.size<=0){var y="ns;";N.D||(y+="nr;");N=y+="ql."+N.K.length}else N=uU3(N.N.values().next().value),N=Xe(N);e.drmp=N}var w;Object.assign(e,((w=this.tW)==null?void 0:w.N7())||{});var E;Object.assign(e,((E=this.mediaElement)==null?void 0:E.N7())||{});this.Eg().Qi("qoe.start15s",Xe(e));this.publish("loadsofttimeout")}}; g.J.zV=function(e){this.videoData.lengthSeconds!==e&&(this.videoData.lengthSeconds=e,hv(this))}; g.J.kZ=function(e,N){var y=this;e=e===void 0?!1:e;if(!this.Yg)if(mo("att_s","player_att")||KV("att_s",void 0,"player_att"),this.T("use_rta_for_player"))(function(){var E,A,T,p;return g.f(function(C){switch(C.J){case 1:if(!(E=e)){C.u9(2);break}return g.D(C,g.k_n(),3);case 3:E=!C.N;case 2:if(E)return C.return();g.c5(C,4);A=s9P(y.Eg());if(!A)throw Error();T={};return g.D(C,g.cl0((T.cpn=y.videoData.clientPlaybackNonce,T.encryptedVideoId=y.videoData.videoId||"",T),3E4),6);case 6:p=C.N;if(y.Yg)throw Error(); if(!p.challenge)throw g.uA(Error("Not sending attestation ping; no attestation challenge string")),Error();y.Yg=!0;var r=[p.challenge];p.error?r.push("r1c="+p.error):p.webResponse&&r.push("r1a="+p.webResponse);var Y;((Y=p.adblockReporting)==null?void 0:Y.reportingStatus)!==void 0&&r.push("r6a="+p.adblockReporting.reportingStatus);var M;((M=p.adblockReporting)==null?void 0:M.broadSpectrumDetectionResult)!==void 0&&r.push("r6b="+p.adblockReporting.broadSpectrumDetectionResult);A(r.join("&"));KV("att_f", void 0,"player_att");g.B5(C,0);break;case 4:g.XH(C),KV("att_e",void 0,"player_att"),g.hn(C)}})})().then(function(){N==null||N()}); else{var w=new g.SG1(this.videoData);if("c1a"in w.rK&&!g.XB.isInitialized()){KV("att_wb",void 0,"player_att");this.qh===2&&Math.random()<.01&&g.uA(Error("Botguard not available after 2 attempts"));if(e)return;if(this.qh<5){g.NA(this.A_);this.qh++;return}}(w=g.o20(w))?(KV("att_f",void 0,"player_att"),Lp0(this.Eg(),w),this.Yg=!0):KV("att_e",void 0,"player_att")}}; g.J.jo=function(e){e=e===void 0?!1:e;if(yG(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.eg()||g.bk(this.videoData)))e=this.getCurrentTime();else if(g.xK(this.videoData)&&this.k_){e=this.k_;var N=this.getCurrentTime();e=(e=UFH(e,N*1E3))?(e.U_()-e.EY())/1E3:0}else e=this.ra(e);return e}; g.J.jH=function(){return g.xK(this.videoData)?this.videoData.Ti():this.Ti()}; g.J.ra=function(e){return this.ZB.ra(e===void 0?!1:e)}; g.J.Ti=function(){return this.ZB.Ti()}; g.J.w7=function(){return this.ZB?this.ZB.w7():0}; g.J.getStreamTimeOffset=function(){return this.ZB?this.ZB.getStreamTimeOffset():0}; g.J.U$=function(){var e=0;this.ph.T("web_player_ss_media_time_offset")&&(e=this.getStreamTimeOffset()===0?this.w7():this.getStreamTimeOffset());return e}; g.J.setPlaybackRate=function(e){var N;this.playbackRate!==e&&BAM(this.NO,(N=this.videoData.K)==null?void 0:N.videoInfos)&&(this.playbackRate=e,Fx(this));this.playbackRate=e;this.mediaElement&&this.mediaElement.setPlaybackRate(e)}; g.J.getPlaybackRate=function(){return this.playbackRate}; g.J.getPlaybackQuality=function(){var e="unknown";if(this.videoData.N&&(e=this.videoData.N.video.quality,e==="auto"&&this.mediaElement)){var N=this.K_();N&&N.videoHeight>0&&(e=u$(N.videoWidth,N.videoHeight))}return e}; g.J.isHdr=function(){return!!(this.videoData.N&&this.videoData.N.video&&this.videoData.N.video.isHdr())}; g.J.Y7=function(){this.Eg().Y7()}; g.J.sendVideoStatsEngageEvent=function(e,N){var y=this.Eg();y.J?(y=qt(y.J,"engage"),y.Kh=e,y.send(N)):N&&N()}; g.J.FW=function(e){return this.Eg().FW(e)}; g.J.isAtLiveHead=function(e,N){N=N===void 0?!1:N;return yG(this.videoData)&&(this.fn||N)?this.ZB.isAtLiveHead(e):!1}; g.J.k7=function(){var e=this.ra(),N=this.getCurrentTime(),y;(y=!yG(this.videoData))||(y=this.ZB,y=!(y.J&&y.J.K));return y||this.eg()||isNaN(e)||isNaN(N)?0:Math.max(0,e-N)}; g.J.yd=function(e){(this.fn=e)||this.X2.stop();this.videoData.J&&(e?this.videoData.J.resume():KaJ(this.videoData.J));if(this.tW){var N=this.videoData.T("html5_disable_preload_for_ssdai_with_preroll")&&this.wq()&&this.videoData.isLivePlayback;e&&!N?this.tW.resume():Ps(this,!0)}g.G(this.playerState,2)||e?g.G(this.playerState,512)&&e&&this.zi(wY(this.playerState,512)):this.zi(yO(this.playerState,512));N=this.Eg();N.qoe&&(N=N.qoe,g.IU(N,g.BG(N.provider),"stream",[e?"A":"I"]))}; g.J.ST=function(e){e={n:e.name,m:e.message};this.Eg().Qi("player.exception",Xe(e))}; g.J.pE=N3(25);g.J.yk=N3(52);g.J.bI=function(e){this.Eg().bI(e)}; g.J.LG=function(e){this.Eg().LG(e)}; g.J.Bm=function(e){this.Eg().Bm(e)}; g.J.t1=N3(30);g.J.DK=N3(35);g.J.HS=function(e){this.Eg().HS(e)}; g.J.Gp=function(){this.Fh("hidden",{},!0)}; g.J.DR=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.J.Nc=function(){return this.tW?this.tW.Nc():!0}; g.J.setLoop=function(e){this.loop=e;this.mediaElement&&!g.I_(this.ph)&&this.mediaElement.setLoop(e);this.tW&&this.T("html5_loop_skip_set_end_of_stream")&&(e?this.tW.policy.a9=!0:gKM(this.tW))}; g.J.ZS=function(){return this.mediaElement&&!g.I_(this.ph)?this.mediaElement.ZS():this.loop}; g.J.Ny=function(e){this.Fh("timestamp",{o:e.toString()});this.ZB.Ny(e)}; g.J.lB=function(e){this.R9.tick(e)}; g.J.oe=function(e){return this.R9.oe(e)}; g.J.d6=function(e){this.R9.d6(e)}; g.J.Fh=function(e,N,y){y=y===void 0?!1:y;this.Eg().Fh(e,N,y)}; g.J.kN=function(e,N,y){y=y===void 0?!1:y;this.Eg().Fh(e,N,y)}; g.J.Qi=function(e){this.Eg().Qi(e.errorCode,Xe(e.details));e=e.errorCode;if(this.videoData.isLivePlayback&&(e==="qoe.longrebuffer"||e==="qoe.slowseek")||e==="qoe.restart"){e=this.tW?Yh3(this.tW.videoTrack):{};var N,y;this.Fh("lasoe",Object.assign(this.tW?Yh3(this.tW.audioTrack):{},(N=this.TZ)==null?void 0:(y=N.J)==null?void 0:y.Iz()));var w,E;this.Fh("lvsoe",Object.assign(e,(w=this.TZ)==null?void 0:(E=w.N)==null?void 0:E.Iz()))}}; g.J.rJ=function(e,N,y){this.Eg().rJ(e,N,y)}; g.J.T5=function(e,N,y,w,E,A,T,p){var C;if((C=this.videoData.J)==null?0:C.isLive){var r=N.playerType===2?N:e,Y=e.videoData.videoId,M=N.videoData.videoId;if(Y&&M){C=this.Eg();if(C.qoe){var l=C.qoe,F=e.cpn,S=N.cpn,k=r.videoData.FZ,X=l.provider.videoData.clientPlaybackNonce,d=l.provider.videoData.videoId,v=S!==X&&M!==d;X=F!==X&&Y!==d;l.reportStats();l.adCpn&&l.adCpn!==F||(l.adCpn=X?F:"",l.Ng=X?Y:"",l.adFormat=X?k:void 0,gg(l,2,A?4:E?2:0,S,M,w),l.reportStats(),l.adCpn=v?S:"",l.Ng=v?M:"",l.adFormat=v?k: void 0,gg(l,2,A?5:E?3:1,F,Y,y),l.reportStats())}y=e.cpn;if(C.K.has(y)){if(E=C.K.get(y),jf(E,!0).send(),x4(E),y!==C.provider.videoData.clientPlaybackNonce){ZHs(E);var V;(V=C.J)==null||VD5(V);C.K.delete(y)}}else C.b6=C.provider.videoData.clientPlaybackNonce,C.b6&&C.J&&(C.K.set(C.b6,C.J),jf(C.J).send(),x4(C.J));V=N.cpn;r=r.videoData;w-=this.U$();if(C.K.has(V)){w=C.K.get(V);var Z=w.K&&isNaN(w.L)?Z3(w):NaN;w=qBn(w,!1);isNaN(Z)||(w.G=Z);w.send()}else w=aj5(C,C.provider,r,w),C.K.set(V,w),xoF(w,new g.ME(yO(new g.a8, 8),new g.a8)),gmJ(w),(Z=C.J)==null||x4(Z);C.b6=V;this.T("html5_unify_csi_server_stitched_transition_logging")?uhH(e.cpn,N.cpn,this.videoData.clientPlaybackNonce,N.videoData,T,void 0,p):(Z=this.videoData.clientPlaybackNonce,C=N.videoData,e=(e.cpn===Z?"video":"ad")+"_to_"+(N.cpn===Z?"video":"ad"),Z={},C.Z&&(Z.cttAuthInfo={token:C.Z,videoId:C.videoId}),T&&(Z.startTime=T),QQ(e,Z),g.nV({targetVideoId:C.videoId,targetCpn:N.cpn,isSsdai:!0},e),jZ("pbs",p!=null?p:(0,g.iC)(),e))}}}; g.J.Yj=function(){var e=this.nX,N=e.fQ;e.fQ=[];return N}; g.J.qH=function(e){this.videoData.JD=!0;this.Qi(new P3("sabr.fallback",e));this.hT(!0)}; g.J.Oy=function(e,N){this.videoData.fA=!0;if(N===void 0||N)this.Qi(new P3("qoe.restart",e)),this.hT(!0);this.videoData.Au()&&this.T("html5_reload_caption_on_ssdai_fallback")&&this.nX.oy()}; g.J.L4=function(e){this.Fh("sdai",{aftimeout:e});this.Qi(new P3("ad.fetchtimeout",{timeout:e}))}; g.J.TD=function(e,N){this.Fh("timelineerror",e);e=new P3("dai.timelineerror",e);N?this.MP("dai.timelineerror",1,"RETRYABLE_ERROR",Xe(e.details)):this.Qi(e)}; g.J.wS=function(){return g.BG(this.Eg().provider)}; g.J.getPlayerSize=function(){return this.m7.getPlayerSize()}; g.J.aV=function(){return this.m7.aV()}; g.J.s4=function(){return this.R9}; g.J.Am=function(){return this.nX.Am()}; g.J.getVolume=function(){return this.nX.getVolume()}; g.J.Xi=function(){return this.nX.Xi()}; g.J.isMuted=function(){return this.nX.isMuted()}; g.J.yG=function(){return this.nX.yG()}; g.J.Ou=function(){this.xq=!0}; g.J.T=function(e){return this.ph.T(e)}; g.J.Bu=function(e,N,y,w,E){this.Fh("xvt",{m:e,g:N?1:0,tt:y?1:0,np:w?1:0,c:E})}; g.J.QK=function(){var e;(e=this.tW)==null||e.resume()}; g.J.wq=function(){return g.Gw(this.wL,"ad")}; g.J.Ll=function(){var e=this.getCurrentTime(),N=e-this.w7();var y=this.mediaElement?JX(this.mediaElement.O4()):0;y=Math.floor(Math.max(y-N,0))+100;var w;if(!this.T("html5_ssdai_disable_seek_to_skip")&&((w=this.tW)==null?0:w.QM(N,this.ra())))return this.Fh("sdai",{skipad:1,ct:N.toFixed(3),adj:0}),!0;var E;return((E=this.tW)==null?0:E.Ll(N,y))?(this.Fh("sdai",{skipad:1,ct:N.toFixed(3),adj:y.toFixed(3)}),L3(this.videoData)&&this.tW.seek(N+y,{seekSource:89,BY:"videoplayer_skipServerStitchedAd"}),OWM(this.ZB, e),!0):!1}; g.J.B9=function(){return this.ph.B9()}; g.J.rf=function(){if(this.T("html5_generate_content_po_token"))return this.videoData.Ih||"";this.nX.xt();return this.ph.NG||""}; g.J.ND=function(){if(this.videoData.videoId)return this.videoData.qJ}; g.J.vE=function(){return this.videoData.videoId}; g.J.HZ=function(){return this.nX.lz}; g.J.l$=function(){return this.So}; g.J.au=function(){return this.nX.au()}; g.J.j0=function(e,N){this.ZB.j0(e,N)}; g.J.WC=function(){this.ZB.WC()}; g.J.Du=function(e,N){var y=this.T("html5_generate_content_po_token")?this.videoData:void 0;this.nX.Du(e,N,y)}; g.J.EJ=function(e,N){var y;(y=this.tW)==null||y.EJ(e,N)}; g.J.Xq=function(){var e=this.E$();return!!e&&e.Xq()}; g.J.bP=function(){return this.k_}; g.J.Wm=function(e,N){this.Eg().Wm(e,N)}; g.J.NZ=function(){return this.Eg().NZ()}; g.J.kL=function(){return this.videoData.JX}; g.J.xB=function(){return this.nX.xB()}; g.J.uS=function(){return this.nX.uS(this)}; g.J.p4=function(){this.RP=!0}; g.J.n3=function(){return this.Qa}; g.J.GR=function(e){var N;(N=this.tW)==null||N.GR(e)};g.b(Go5,jX);g.b(UJ3,jX);g.J=UJ3.prototype;g.J.seekToChapterWithAnimation=function(e){var N=this;if(g.T9(this.api)&&!(e<0)){var y=this.api.getVideoData(),w=y.ll;if(w&&e=0)return;N=~N;g.ES(this.items,N,0,e);yp(this.menuItems.element,e.element,N)}e.subscribe("size-change",this.X4,this);this.menuItems.publish("size-change")}; g.J.MS=function(e){e.unsubscribe("size-change",this.X4,this);this.Ss()||(g.Lq(this.items,e),this.menuItems.element.removeChild(e.element),this.menuItems.publish("size-change"))}; g.J.X4=function(){this.menuItems.publish("size-change")}; g.J.focus=function(){for(var e=0,N=0;N1&&g.mP(this)}; g.J.FR=function(){PJ5(this);this.Og&&(BHH(this),g.k0(this.element,this.size))}; g.J.z4=function(){var e=this.J.pop();Xos(this,e,this.J[this.J.length-1],!0)}; g.J.Uq=function(e){if(!e.defaultPrevented)switch(e.keyCode){case 27:this.rT();e.preventDefault();break;case 37:this.J.length>1&&this.z4();e.preventDefault();break;case 39:e.preventDefault()}}; g.J.focus=function(){this.J.length&&this.J[this.J.length-1].focus()}; g.J.fh=function(){g.Dq.prototype.fh.call(this);this.Z&&this.Z.dispose();this.G&&this.G.dispose()};g.b(Hs,g.n$);Hs.prototype.open=function(e,N){this.initialize(e.items)&&this.WY(N,!!N)}; Hs.prototype.initialize=function(e){g.jk(this.z9);if(e===void 0||e.length===0)return!1;var N=e.length;e=g.c(e);for(var y=e.next();!y.done;y=e.next())this.Gi(y.value,N--);return!0}; Hs.prototype.Gi=function(e,N){e.menuNavigationItemRenderer?vP0(this,e.menuNavigationItemRenderer,N):e.menuServiceItemRenderer&&zNs(this,e.menuServiceItemRenderer,N)};g.b(K$,qJ);g.J=K$.prototype;g.J.VW=function(e){e.target!==this.dismissButton.element&&e.target!==this.overflowButton.element&&(this.vJ(),this.onClickCommand&&this.C.Mg("innertubeCommand",this.onClickCommand))}; g.J.UA=function(){this.enabled=!1;this.D.hide()}; g.J.Iy=function(){return!!this.J&&this.enabled}; g.J.onVideoDataChange=function(e,N){this.pg(N);if(this.J){this.Nt();a:if(!this.isCounterfactual){var y,w,E;this.banner.update({title:(y=this.J)==null?void 0:y.title,subtitle:(w=this.J)==null?void 0:w.subtitle,metadata:(E=this.J)==null?void 0:E.metadataText});var A;this.onClickCommand=g.m((A=this.J)==null?void 0:A.onTap,ZL);var T;if(e=g.m((T=this.J)==null?void 0:T.onOverflow,ZL))this.G=g.m(e,uFw);var p;if((p=this.J)==null?0:p.thumbnailImage){var C,r;T=((C=this.J)==null?void 0:(r=C.thumbnailImage)== null?void 0:r.sources)||[];if(T.length===0)break a;this.thumbnailImage.update({url:T[0].url})}else{var Y;if((Y=this.J)==null?0:Y.thumbnailIconName){var M;this.thumbnailIcon.update({icon:(M=this.J)==null?void 0:M.thumbnailIconName})}}var l;this.shouldShowOverflowButton=!((l=this.J)==null||!l.shouldShowOverflowButton);var F;this.shouldHideDismissButton=!((F=this.J)==null||!F.shouldHideDismissButton)}var S;this.banner.element.setAttribute("aria-label",((S=this.J)==null?void 0:S.a11yLabel)||"");var k; this.Bk=(k=this.J)==null?void 0:k.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;DlM(this)}}; g.J.uZZ=function(){this.isVisible=!0;DlM(this)}; g.J.iXP=function(){this.isVisible=!1;DlM(this)}; g.J.tv=function(){qJ.prototype.tv.call(this);this.N&&this.C.logVisibility(this.banner.element,this.isVisible)}; g.J.vJ=function(){qJ.prototype.vJ.call(this,!1);this.N&&this.C.logClick(this.banner.element)}; g.J.WO=function(e){this.Z||(this.Z=new Hs(this.C),g.Q(this,this.Z));var N,y;if((N=this.G)==null?0:(y=N.menu)==null?0:y.menuRenderer)this.Z.open(this.G.menu.menuRenderer,e.target),e.preventDefault()}; g.J.pg=function(){}; g.J.Nt=function(){}; g.J.fh=function(){this.C.MK("suggested_action_view_model");qJ.prototype.fh.call(this)};g.b(Ws,K$); Ws.prototype.pg=function(e){var N,y,w;this.productUpsellSuggestedActionViewModel=g.m((N=e.getWatchNextResponse())==null?void 0:(y=N.playerOverlays)==null?void 0:(w=y.playerOverlayRenderer)==null?void 0:w.suggestedActionViewModel,aZ_);var E;if((E=this.productUpsellSuggestedActionViewModel)==null?0:E.content){var A;this.J=g.m((A=this.productUpsellSuggestedActionViewModel)==null?void 0:A.content,V00)}var T,p;if(this.N=!!((T=this.productUpsellSuggestedActionViewModel)==null?0:(p=T.loggingDirectives)==null? 0:p.trackingParams)){var C,r;this.C.setTrackingParams(this.banner.element,((C=this.productUpsellSuggestedActionViewModel)==null?void 0:(r=C.loggingDirectives)==null?void 0:r.trackingParams)||null)}var Y;this.isCounterfactual=!((Y=this.productUpsellSuggestedActionViewModel)==null||!Y.isCounterfactualServing)}; Ws.prototype.Nt=function(){var e=[],N,y=g.c(((N=this.productUpsellSuggestedActionViewModel)==null?void 0:N.ranges)||[]);for(N=y.next();!N.done;N=y.next()){var w=N.value;w&&(N=Number(w.startTimeMilliseconds),w=Number(w.endTimeMilliseconds),isNaN(N)||isNaN(w)||e.push(new g.wF(N,w,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.C.wx(e)};g.b(gPE,jX);g.b(Od,jX);Od.prototype.onVideoDataChange=function(e,N){var y=this;if(!xI(N)&&(e==="newdata"&&fvn(this),this.N&&e==="dataloaded")){var w;A$(UI(this.api.X(),(w=this.api.getVideoData())==null?void 0:g.qK(w)),function(E){var A=xl5(E);A&&(A=tB_(y,y.J||A))&&y.api.setAudioTrack(A,!0);y.K&&(y.K=!1,nPM(y,E))})}}; Od.prototype.WI=function(){var e=this;if(g.I_(this.api.X())){var N,y=g.GX(this.api.X(),(N=this.api.getVideoData())==null?void 0:g.qK(N));return A$(Nc(y),function(w){var E=z9();ih(E,w);return e.api.WI(E)})}return Nc(this.api.WI())};g.b(g.Go,g.uh);g.J=g.Go.prototype;g.J.open=function(){g.Q_(this.x_,this.N)}; g.J.BI=function(e){Q31(this);var N=this.options[e];N&&(N.element.setAttribute("aria-checked","true"),this.Ja(this.CE(e)),this.K=e)}; g.J.Pc=function(e){g.jk(this.N);for(var N={},y=!1,w=0;w=0?this.J.playbackRate:1}catch(e){return 1}}; g.J.setPlaybackRate=function(e){this.getPlaybackRate()!==e&&(this.J.playbackRate=e);return e}; g.J.ZS=function(){return this.J.loop}; g.J.setLoop=function(e){this.J.loop=e}; g.J.canPlayType=function(e,N){return this.J.canPlayType(e,N)}; g.J.isPaused=function(){return this.J.paused}; g.J.isSeeking=function(){return this.J.seeking}; g.J.isEnded=function(){return this.J.ended}; g.J.sV=function(){return this.J.muted}; g.J.Zs=function(e){VI();this.J.muted=e}; g.J.JP=function(){return this.J.played||yc([],[])}; g.J.O4=function(){try{var e=this.J.buffered}catch(N){}return e||yc([],[])}; g.J.Gz=function(){return this.J.seekable||yc([],[])}; g.J.dA=function(){var e=this.J;return e.getStartDate?e.getStartDate():null}; g.J.getCurrentTime=function(){return this.J.currentTime}; g.J.setCurrentTime=function(e){this.J.currentTime=e}; g.J.getDuration=function(){return this.J.duration}; g.J.load=function(){var e=this.J.playbackRate;try{this.J.load()}catch(N){}this.J.playbackRate=e}; g.J.pause=function(){this.J.pause()}; g.J.play=function(){var e=this.J.play();if(!e||!e.then)return null;e.then(void 0,function(){}); return e}; g.J.Rl=function(){return this.J.readyState}; g.J.pM=function(){return this.J.networkState}; g.J.pw=function(){return this.J.error?this.J.error.code:null}; g.J.Cq=function(){return this.J.error?this.J.error.message:""}; g.J.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.J instanceof window.HTMLVideoElement&&this.J.getVideoPlaybackQuality)return this.J.getVideoPlaybackQuality();if(this.J){var e=this.J,N=e.webkitDroppedFrameCount;if(e=e.webkitDecodedFrameCount)return{droppedVideoFrames:N||0,totalVideoFrames:e}}return{}}; g.J.ox=function(){return!!this.J.webkitCurrentPlaybackTargetIsWireless}; g.J.aS=function(){return!!this.J.webkitShowPlaybackTargetPicker()}; g.J.togglePictureInPicture=function(){var e=this.J,N=window.document;window.document.pictureInPictureEnabled?this.J!==N.pictureInPictureElement?e.requestPictureInPicture():N.exitPictureInPicture():gp()&&e.webkitSetPresentationMode(e.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.J.wD=function(){var e=this.J;return new g.ri(e.offsetLeft,e.offsetTop)}; g.J.getSize=function(){return g.Be(this.J)}; g.J.setSize=function(e){g.k0(this.J,e)}; g.J.getVolume=function(){return this.J.volume}; g.J.setVolume=function(e){VI();this.J.volume=e}; g.J.ao=function(e){this.L[e]||(this.J.addEventListener(e,this.listener),this.L[e]=this.listener)}; g.J.setAttribute=function(e,N){this.J.setAttribute(e,N)}; g.J.removeAttribute=function(e){this.J.removeAttribute(e)}; g.J.hasAttribute=function(e){return this.J.hasAttribute(e)}; g.J.LT=N3(57);g.J.R4=N3(59);g.J.CH=N3(61);g.J.D9=N3(63);g.J.u5=function(){return kh(this.J)}; g.J.o7=function(e){g.pi(this.J,e)}; g.J.Vr=function(e){return g.MW(this.J,e)}; g.J.bS=function(){return g.Ex(document.body,this.J)}; g.J.audioTracks=function(){var e=this.J;if("audioTracks"in e)return e.audioTracks}; g.J.fh=function(){for(var e=g.c(Object.keys(this.L)),N=e.next();!N.done;N=e.next())N=N.value,this.J.removeEventListener(N,this.L[N]);R8.prototype.fh.call(this)}; g.J.wu=function(e){this.J.disableRemotePlayback=e};g.b(J9,g.W);g.b(CZ,g.W);CZ.prototype.show=function(){g.W.prototype.show.call(this);this.GZ();this.Lh.T("html5_enable_moving_s4n_window")&&g.I_(this.Lh.X())&&this.U()}; CZ.prototype.hide=function(){g.W.prototype.hide.call(this);this.delay.stop();this.j.stop()}; CZ.prototype.GZ=function(){var e=(0,g.iC)(),N=av5(this.Lh);pZ(this.J,N.bandwidth_samples);pZ(this.G,N.network_activity_samples);pZ(this.K,N.live_latency_samples);pZ(this.N,N.buffer_health_samples);var y={};N=g.c(Object.entries(N));for(var w=N.next();!w.done;w=N.next()){var E=g.c(w.value);w=E.next().value;E=E.next().value;this.D[w]!==E&&(y[w]=" "+String(E));this.D[w]=E}this.update(y);e=(0,g.iC)()-e>25?5E3:500;this.delay.start(e)}; CZ.prototype.U=function(){this.Z?(this.position+=1,this.position>15&&(this.Z=!1)):(--this.position,this.position<=0&&(this.Z=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.j.start(2E4)};g.b(yk_,jX);g.b(rH,g.x);rH.prototype.J=function(){var e=(0,g.iC)()-this.startTime;e=ethis.j[e])&&(this.J=e,F25(this))}; g.J.onCueRangeExit=function(e){var N=lDE(this,e);N&&this.J===e&&this.api.Mg("innertubeCommand",N);this.clearTimeout();this.J=void 0}; g.J.onTimeout=function(e){this.J!==void 0&&(e==null?void 0:e.cueRangeId)===this.J&&(e=lDE(this,this.J))&&this.api.Mg("innertubeCommand",e)}; g.J.I0=function(e){this.N=e}; g.J.Qt=function(){F25(this);this.N=void 0}; g.J.setTimeout=function(e){var N=this,y=Number(e==null?void 0:e.maxVisibleDurationMilliseconds);y&&(this.clearTimeout(),this.L=setTimeout(function(){N.onTimeout(e)},y))}; g.J.clearTimeout=function(){this.L&&clearTimeout(this.L);this.L=void 0}; g.J.fh=function(){this.timelyActions=this.N=this.J=this.videoId=void 0;this.j={};this.bl();this.clearTimeout();jX.prototype.fh.call(this)};g.b(bJ0,jX);var hB={},iJP=(hB[1]="pot_ss",hB[2]="pot_sf",hB[3]="pot_se",hB[4]="pot_xs",hB[5]="pot_xf",hB[6]="pot_xe",hB),DhE=["www.youtube-nocookie.com","www.youtubeeducation.com"];g.b(F_,jX);F_.prototype.fh=function(){this.Z&&(g.k3(this.Z),this.Z=void 0);jX.prototype.fh.call(this)}; F_.prototype.xt=function(){(this.J?!this.J.isReady():this.N)&&o3(this)}; F_.prototype.Qb=function(e,N,y){var w=this;if(ck0(e)){var E=y||"",A;if((A=this.J)==null?0:A.isReady())N=bJ(this,E),kP_(e,N);else{var T=new g.lq;N.push(T.promise);this.j.promise.then(function(){var p=bJ(w,E);kP_(e,p);T.resolve()})}}}; F_.prototype.pJ=function(e){var N=this;if(this.J||this.N)e.Ih=bJ(this,e.videoId),this.J&&!this.J.isReady()&&(this.K=new O3,this.j.promise.then(function(){N.R9.oe("pot_if");e.Ih=bJ(N,e.videoId)}))};g.b(VzF,jX);g.b(h9,g.x);h9.prototype.J=function(){for(var e=g.c(g.iE.apply(0,arguments)),N=e.next();!N.done;N=e.next())(N=N.value)&&this.features.push(N)}; h9.prototype.fh=function(){for(var e=this.features.length-1;e>=0;e--)this.features[e].dispose();this.features.length=0;g.x.prototype.fh.call(this)};co.prototype.AS=function(){this.N=(0,g.iC)()}; co.prototype.reset=function(){this.J=this.N=NaN}; co.prototype.zK=function(e,N){if(e.clientPlaybackNonce&&!isNaN(this.J)){if(Math.random()<.01){N=N?"pbp":"pbs";var y={startTime:this.J};e.Z&&(y.cttAuthInfo={token:e.Z,videoId:e.videoId});QQ("seek",y);g.nV({clientPlaybackNonce:e.clientPlaybackNonce},"seek");isNaN(this.N)||jZ("pl_ss",this.N,"seek");jZ(N,(0,g.iC)(),"seek")}this.reset()}};g.J=fD9.prototype;g.J.reset=function(){qY(this.timerName)}; g.J.tick=function(e,N){jZ(e,N,this.timerName)}; g.J.oe=function(e){return Hw(e,this.timerName)}; g.J.d6=function(e){Bd(e,void 0,this.timerName)}; g.J.infoGel=function(e){g.nV(e,this.timerName)};g.b(ZJ3,g.pT);g.J=ZJ3.prototype;g.J.gk=function(e){return this.loop||!!e||this.index+1=0}; g.J.setShuffle=function(e){this.shuffle=e;e=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var N=0;N0)||Qm(this,1,!0)}; g.J.YR=function(){this.Z=!0;this.J.CX(this.L);this.L=this.J.Y(document,"mouseup",this.M1)}; g.J.M1=function(){this.Z=!1;Qm(this,8,!1);this.J.CX(this.L);this.L=this.J.Y(this.target,"mousedown",this.YR)}; g.J.X3=function(e){if(e=(e=e.changedTouches)&&e[0])this.qg=e.identifier,this.J.CX(this.U),this.U=this.J.Y(this.target,"touchend",this.QZ,void 0,!0),Qm(this,1024,!0)}; g.J.QZ=function(e){if(e=e.changedTouches)for(var N=0;N1280||A>720)if(E=y.LN("maxresdefault.jpg"))break;if(w>640||A>480)if(E=y.LN("maxresdefault.jpg"))break; if(w>320||A>180)if(E=y.LN("sddefault.jpg")||y.LN("hqdefault.jpg")||y.LN("mqdefault.jpg"))break;if(E=y.LN("default.jpg"))break}g.mT(N)&&(N=new Image,N.addEventListener("load",function(){se1()}),N.src=E?E:"",this.api.s4().tick("ftr")); this.Z.style.backgroundImage=E?"url("+E+")":""};g.b(g.Wo,g.W);g.Wo.prototype.resize=function(){}; g.Wo.prototype.N=function(e){var N=this;this.K=!1;t8H(this);var y=e.Se,w=this.api.X();y!=="GENERIC_WITHOUT_LINK"||w.Z?y==="TOO_MANY_REQUESTS"?(w=this.api.getVideoData(),this.Ja(Gf(this,"TOO_MANY_REQUESTS_WITH_LINK",w.ew(),void 0,void 0,void 0,!1))):y!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||w.Z?this.api.X().T("html5_enable_bandaid_error_screen")&&y==="HTML5_SPS_UMP_STATUS_REJECTED"&&!w.Z?(w=w.hostLanguage,e="//support.google.com/youtube?p=videoError",w&&(e=g.Qb(e,{hl:w})),this.Ja(Gf(this,"HTML5_SPS_UMP_STATUS_REJECTED", e))):this.api.X().T("enable_adb_handling_in_sabr")&&y==="BROWSER_OR_EXTENSION_ERROR"&&!w.Z?(w=w.hostLanguage,e="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",w&&(e=g.Qb(e,{hl:w})),this.Ja(Gf(this,"BROWSER_OR_EXTENSION_ERROR",e))):this.Ja(g.ON(e.errorMessage)):this.Ja(Gf(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(e=w.hostLanguage,y="//support.google.com/youtube/?p=player_error1",e&&(y=g.Qb(y, {hl:e})),this.Ja(Gf(this,"GENERIC_WITH_LINK_AND_CPN",y,!0)),w.PY&&!w.j&&ft5(this,function(A){if(g.G9(A,N.api,!ZW(N.api.X()))){A={as3:!1,html5:!0,player:!0,cpn:N.api.getVideoData().clientPlaybackNonce};var T=N.api;T.pC("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:A});T.isFullscreen()&&T.toggleFullscreen()}})); if(this.K){var E=this.hW("ytp-error-link");E&&(this.api.createClientVe(E,this,216104),this.api.logVisibility(E,!0),ft5(this,function(){N.api.logClick(E)}))}}; var V8F=/([^<>]+)<\/a>/;g.b(uqM,g.W);g.J=uqM.prototype;g.J.onClick=function(e){this.innertubeCommand?(this.C.Mg("innertubeCommand",this.innertubeCommand),e.preventDefault()):g.G9(e,this.C,!0);this.C.logClick(this.element)}; g.J.onVideoDataChange=function(e,N){ZU_(this,N);this.k9&&xVn(this,this.k9)}; g.J.Ik=function(e){var N=this.C.getVideoData();this.videoId!==N.videoId&&ZU_(this,N);this.J&&xVn(this,e.state);this.k9=e.state}; g.J.WY=function(){this.j.show();this.C.publish("paidcontentoverlayvisibilitychange",!0);this.C.logVisibility(this.element,!0)}; g.J.rT=function(){this.j.hide();this.C.publish("paidcontentoverlayvisibilitychange",!1);this.C.logVisibility(this.element,!1)};g.b(UN,g.W);UN.prototype.hide=function(){this.J.stop();this.message.style.display="none";g.W.prototype.hide.call(this)}; UN.prototype.onStateChange=function(e){this.IJ(e.state)}; UN.prototype.IJ=function(e){(g.G(e,128)||this.api.l$()?0:g.G(e,16)||g.G(e,1))?this.J.start():this.hide()}; UN.prototype.N=function(){this.message.style.display="block"};g.b(LZ,g.Dq);LZ.prototype.onMutedAutoplayChange=function(e){this.K&&(e?(j53(this),this.WY()):(this.J&&this.logClick(),this.rT()))}; LZ.prototype.rz=function(e){this.api.isMutedByMutedAutoplay()&&g.FD(e,2)&&this.rT()}; LZ.prototype.onClick=function(){this.api.unMute();this.logClick()}; LZ.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.b(g.sN,g.fd);g.J=g.sN.prototype;g.J.init=function(){var e=this.api,N=e.getPlayerStateObject();this.r8=e.getPlayerSize();this.zi(N);this.GV();this.I9();this.api.publish("basechromeinitialized",this);this.SH()&&this.api.publish("standardControlsInitialized")}; g.J.onVideoDataChange=function(e,N){var y=this.Cf!==N.videoId;if(y||e==="newdata"){e=this.api;e.isFullscreen()||(this.r8=e.getPlayerSize());var w;((w=this.api.getVideoData(1))==null?0:g.xK(w))&&this.H7()}y&&(this.Cf=N.videoId,y=this.tT,y.l9=3E3,Qm(y,512,!0),this.GV());this.api.T("web_render_jump_buttons")&&N.showSeekingControls&&(this.i7=572)}; g.J.D7g=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; g.J.B4=function(){var e=this.api.CO()&&this.api.fz(),N=this.api.ws();return this.vX||e||this.vM||N}; g.J.H7=function(){var e=!this.B4();g.Y1(this.api.getRootNode(),"ytp-menu-shown",!e);var N;((N=this.api.getVideoData(1))==null?0:g.xK(N))&&g.Y1(this.api.getRootNode(),"ytp-hide-controls",!e)}; g.J.Jl=function(e){try{if(!g.Ex(this.api.getRootNode(),e))return!1}catch(N){return!1}for(;e&&!TPM(e);)e=e===this.api.getRootNode()?null:e.parentElement||null;return!!e}; g.J.vg=function(e){var N=this.api.getRootNode();g.Y1(N,"ytp-autohide",e);g.Y1(N,"ytp-autohide-active",!0);this.pD.start(e?250:100);e&&(this.Hl=!1,g.re(N,"ytp-touch-mode"));this.gU=!e;this.api.f0(!e)}; g.J.OG=function(){var e=this.api.getRootNode();g.Y1(e,"ytp-autohide-active",!1)}; g.J.ras=function(){this.kt=!0}; g.J.ZCt=function(e){if(this.api.X().T("player_doubletap_to_seek")||this.api.X().U)this.kt=!1,this.K7&&this.CX(this.K7),this.v3===0&&ez(this,e)?(this.VU(),this.S8.start(),this.K7=this.Y(this.api.Fz(),"touchmove",this.ras,void 0,!0)):this.S8.stop();HUn(this)&&ez(this,e)&&!this.api.X().U&&Q5_(this);var N=this.w9.e1();if(!g.hR(this.api.X())&&SV&&KYE(this,e))N&&e.preventDefault();else if(this.Hl=!0,g.pi(this.api.getRootNode(),"ytp-touch-mode"),this.tT.Cd(),this.api.X().T("player_doubletap_to_seek")||this.api.X().U)if(N= this.api.getPlayerStateObject(),!(!this.api.Bf()||g.G(N,2)&&g.oq(this.api)||g.G(N,64))){N=Date.now()-this.NV;this.v3+=1;if(N<=350){this.tV=!0;N=this.api.getPlayerSize().width/3;var y=this.api.getRootNode().getBoundingClientRect(),w=e.targetTouches[0].clientX-y.left;y=e.targetTouches[0].clientY-y.top;var E=(this.v3-1)*10;w>0&&wN*2&&w=650;this.tT.resize();g.Y1(N,"ytp-fullscreen",this.api.isFullscreen());g.Y1(N,"ytp-large-width-mode",y);g.Y1(N,"ytp-small-mode",this.xx());g.Y1(N,"ytp-tiny-mode",this.mx());g.Y1(N,"ytp-big-mode",this.Nr());this.MG&&this.MG.resize(e)}; g.J.rz=function(e){this.zi(e.state);this.GV()}; g.J.L8=N3(5);g.J.JG=function(){var e=!!this.Cf&&!this.api.OX()&&!this.qy,N=this.api.getPresentingPlayerType()===2,y=this.api.X();if(N){if(P1E&&y.T("enable_visit_advertiser_support_on_ipad_mweb"))return!1;N=ql(this.api.jR());e&&(N&&N.player?e=(e=N.player.getVideoData(2))?e.isListed&&!g.Pa(N.player.X()):!1:(YN("showInfoBarDuringAd: this is null"),e=!1));return e}return e&&(y.d2||this.api.isFullscreen()||y.ul)}; g.J.GV=function(){var e=this.JG();this.bL!==e&&(this.bL=e,g.Y1(this.api.getRootNode(),"ytp-hide-info-bar",!e))}; g.J.zi=function(e){var N=e.isCued()||this.api.V_()&&this.api.getPresentingPlayerType()!==3;N!==this.isCued&&(this.isCued=N,this.tY&&this.CX(this.tY),this.tY=this.Y(this.api.Fz(),"touchstart",this.ZCt,void 0,N));var y=this.tT,w=e.isPlaying()&&!g.G(e,32)||this.api.hB();Qm(y,128,!w);y=this.tT;w=this.api.getPresentingPlayerType()===3;Qm(y,256,w);y=this.api.getRootNode();g.G(e,2)?w=[Qz.ENDED]:(w=[],g.G(e,8)?w.push(Qz.PLAYING):g.G(e,4)&&w.push(Qz.PAUSED),g.G(e,1)&&!g.G(e,32)&&w.push(Qz.BUFFERING),g.G(e, 32)&&w.push(Qz.SEEKING),g.G(e,64)&&w.push(Qz.UNSTARTED));g.Cf(this.Mw,w)||(g.$1(y,this.Mw),this.Mw=w,g.Ci(y,w));w=this.api.X();var E=g.G(e,2);a:{var A=this.api.X();var T=A.controlsType;switch(T){case "2":case "0":A=!1;break a}A=T==="3"&&!g.G(e,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:pAM(ql(this.api.jR())))||this.api.ws()||g.hR(A)&&this.api.getPresentingPlayerType()===2?!1:!0}g.Y1(y,"ytp-hide-controls",!A);g.Y1(y,"ytp-native-controls",w.controlsType==="3"&&!N&&!E&&!this.vM);g.G(e, 128)&&!g.hR(w)?(this.MG||(this.MG=new g.Wo(this.api),g.Q(this,this.MG),g.Pb(this.api,this.MG.element,4)),this.MG.N(e.qS),this.MG.show()):this.MG&&(this.MG.dispose(),this.MG=null)}; g.J.Jm=function(){return this.api.CO()&&this.api.fz()?(this.api.P4(!1,!1),!0):this.api.OX()?(g.bh(this.api,!0),!0):!1}; g.J.onMutedAutoplayChange=function(e){this.vM=e;this.H7()}; g.J.Nr=function(){return!1}; g.J.xx=function(){return!this.Nr()&&(this.api.getPlayerSize().width=0&&N.left>=0&&N.bottom>N.top&&N.right>N.left?N:null;N=this.size;e=e.clone();N=N.clone();w&&(T=N,E=5,(E&65)==65&&(e.x=w.right)&&(E&=-2),(E&132)==132&&(e.y=w.bottom)&&(E&=-5),e.xw.right&&(T.width=Math.min(w.right-e.x,A+T.width-w.left),T.width=Math.max(T.width,0))),e.x+T.width>w.right&&E&1&&(e.x=Math.max(w.right-T.width,w.left)),e.yw.bottom&&(T.height=Math.min(w.bottom-e.y,A+T.height-w.top),T.height=Math.max(T.height,0))),e.y+T.height>w.bottom&&E&4&&(e.y=Math.max(w.bottom-T.height,w.top)));w=new g.pK(0,0,0,0);w.left=e.x;w.top=e.y;w.width= N.width;w.height=N.height;g.od(this.element,new g.ri(w.left,w.top));g.g9(this.j);this.j.Y(gZ(this),"contextmenu",this.q2q);this.j.Y(this.C,"fullscreentoggled",this.onFullscreenToggled);this.j.Y(this.C,"pageTransition",this.Ks)}; g.J.q2q=function(e){if(!e.defaultPrevented){var N=vE(e);g.Ex(this.element,N)||this.rT();this.C.X().disableNativeContextMenu&&e.preventDefault()}}; g.J.onFullscreenToggled=function(){this.rT();lgs(this)}; g.J.Ks=function(){this.rT()};g.b(rC,g.W);rC.prototype.onClick=function(){var e=this,N,y,w,E;return g.f(function(A){if(A.J==1)return N=e.api.X(),y=e.api.getVideoData(),w=e.api.getPlaylistId(),E=N.getVideoUrl(y.videoId,w,void 0,!0),g.D(A,o90(e,E),2);A.N&&S4P(e);e.api.logClick(e.element);g.hn(A)})}; rC.prototype.GZ=function(){this.updateValue("icon",{S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{S:"path",Az:!0,B:"ytp-svg-fill",V:{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 link");this.visible=F8M(this);g.Y1(this.element,"ytp-copylink-button-visible", this.visible);this.KX(this.visible);this.tooltip.xp();this.api.logVisibility(this.element,this.visible&&this.L)}; rC.prototype.nx=function(e){g.W.prototype.nx.call(this,e);this.api.logVisibility(this.element,this.visible&&e)}; rC.prototype.fh=function(){g.W.prototype.fh.call(this);g.re(this.element,"ytp-copylink-button-visible")};g.b($y,g.W);$y.prototype.show=function(){g.W.prototype.show.call(this);g.NA(this.N)}; $y.prototype.hide=function(){this.j.stop();this.K=0;this.hW("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.re(this.element,"ytp-chapter-seek");g.re(this.element,"ytp-time-seeking");g.W.prototype.hide.call(this)}; $y.prototype.mw=function(e,N,y,w){this.K=e===this.G?this.K+w:w;this.G=e;var E=e===-1?this.D:this.U;E&&this.C.logClick(E);this.Z?this.N.stop():g.we(this.N);this.j.start();this.element.setAttribute("data-side",e===-1?"back":"forward");var A=3*this.C.Fz().getPlayerSize().height;E=this.C.Fz().getPlayerSize();E=E.width/3-3*E.height;this.J.style.width=A+"px";this.J.style.height=A+"px";e===1?(this.J.style.left="",this.J.style.right=E+"px"):e===-1&&(this.J.style.right="",this.J.style.left=E+"px");var T=A* 2.5;A=T/2;var p=this.hW("ytp-doubletap-ripple");p.style.width=T+"px";p.style.height=T+"px";e===1?(e=this.C.Fz().getPlayerSize().width-N+Math.abs(E),p.style.left="",p.style.right=e-A+"px"):e===-1&&(e=Math.abs(E)+N,p.style.right="",p.style.left=e-A+"px");p.style.top="calc((33% + "+Math.round(y)+"px) - "+A+"px)";if(y=this.hW("ytp-doubletap-ripple"))y.classList.remove("ytp-doubletap-ripple"),y.classList.add("ytp-doubletap-ripple");b73(this,this.Z?this.K:w)};g.b(cPs,qJ);g.J=cPs.prototype;g.J.j6=function(e){this.aq||(this.aq=new Hs(this.C),g.Q(this,this.aq));var N,y;if((N=this.dT)==null?0:(y=N.menu)==null?0:y.menuRenderer)this.aq.open(this.dT.menu.menuRenderer,e.target),e.preventDefault()}; g.J.Iy=function(){return!!this.J}; g.J.xZ=function(){return!!this.J}; g.J.VW=function(e){e.target===this.overflowButton.element?e.preventDefault():(this.jn&&this.C.Mg("innertubeCommand",this.jn),this.vJ(!1))}; g.J.UA=function(){this.vJ(!0);var e,N;((e=this.J)==null?0:(N=e.bannerData)==null?0:N.dismissedStatusKey)&&this.Xz.push(this.J.bannerData.dismissedStatusKey);this.BS()}; g.J.Es=function(){this.BS();Fh(this)}; g.J.mGk=function(e){var N=this,y;if(e.id!==((y=this.J)==null?void 0:y.identifier)){this.BS();y=g.c(this.l9);for(var w=y.next();!w.done;w=y.next()){var E=w.value,A=void 0,T=void 0;if((w=(A=E)==null?void 0:(T=A.bannerData)==null?void 0:T.itemData)&&E.identifier===e.id){T=A=void 0;var p=((A=E)==null?void 0:(T=A.bannerData)==null?void 0:T.dismissedStatusKey)||"";if(this.Xz.includes(p))break;this.J=E;this.banner.element.setAttribute("aria-label",w.accessibilityLabel||"");w.trackingParams&&(this.j=!0,this.C.setTrackingParams(this.badge.element, w.trackingParams));this.D.show();ur(this);this.i9.KX(!w.stayInApp);VoF(this);Bl1(this);lo(this);this.jn=g.m(w.onTapCommand,ZL);if(E=g.m(w.menuOnTap,ZL))this.dT=g.m(E,uFw);E=void 0;this.banner.update({thumbnail:(E=(w.thumbnailSources||[])[0])==null?void 0:E.url,title:w.productTitle,price:w.priceReplacementText?w.priceReplacementText:w.price,salesOriginalPrice:ds0(this),priceDropReferencePrice:Ig1(this),promotionText:PKJ(this),priceA11yText:v9J(this),affiliateDisclaimer:w.affiliateDisclaimer,vendor:zrH(this)}); p=T=A=E=void 0;((E=w)==null?0:(A=E.hiddenProductOptions)==null?0:A.showDropCountdown)&&((T=w)==null?0:(p=T.hiddenProductOptions)==null?0:p.dropTimestampMs)&&(this.Y_=new g.e6(function(){g9n(N)},1E3),this.i9.hide(),this.countdownTimer.show(),g9n(this)); this.C.T("web_player_enable_featured_product_banner_exclusives_on_desktop")&&kIM(this)&&(this.pX=new g.e6(function(){XRF(N)},1E3),XRF(this))}}}}; g.J.BS=function(){this.J&&(this.J=void 0,this.xK())}; g.J.onVideoDataChange=function(e,N){var y=this;e==="dataloaded"&&Fh(this);var w,E,A;e=g.m((w=N.getWatchNextResponse())==null?void 0:(E=w.playerOverlays)==null?void 0:(A=E.playerOverlayRenderer)==null?void 0:A.productsInVideoOverlayRenderer,fZw);this.overflowButton.show();this.dismissButton.hide();var T=e==null?void 0:e.featuredProductsEntityKey;this.trendingOfferEntityKey=e==null?void 0:e.trendingOfferEntityKey;this.l9.length||(Ds0(this,T),lo(this));var p;(p=this.PY)==null||p.call(this);this.PY=g.WH.subscribe(function(){Ds0(y, T);lo(y)})}; g.J.fh=function(){Fh(this);VoF(this);Bl1(this);qJ.prototype.fh.call(this)};g.b(Z7M,g.W);Z7M.prototype.onClick=function(){this.C.logClick(this.element,this.N)};g.b(xsH,g.Dq);g.J=xsH.prototype;g.J.show=function(){g.Dq.prototype.show.call(this);this.C.publish("infopaneldetailvisibilitychange",!0);this.C.logVisibility(this.element,!0);jjE(this,!0)}; g.J.hide=function(){g.Dq.prototype.hide.call(this);this.C.publish("infopaneldetailvisibilitychange",!1);this.C.logVisibility(this.element,!1);jjE(this,!1)}; g.J.getId=function(){return this.j}; g.J.P2=function(){return this.itemData.length}; g.J.onVideoDataChange=function(e,N){if(N){var y,w,E,A;this.update({title:((y=N.ib)==null?void 0:(w=y.title)==null?void 0:w.content)||"",body:((E=N.ib)==null?void 0:(A=E.bodyText)==null?void 0:A.content)||""});var T;e=((T=N.ib)==null?void 0:T.trackingParams)||null;this.C.setTrackingParams(this.element,e);T=g.c(this.itemData);for(e=T.next();!e.done;e=T.next())e.value.dispose();this.itemData=[];var p;if((p=N.ib)==null?0:p.ctaButtons)for(N=g.c(N.ib.ctaButtons),p=N.next();!p.done;p=N.next())if(p=g.m(p.value, vwX))p=new Z7M(this.C,p,this.J),p.WG&&(this.itemData.push(p),p.yB(this.items))}}; g.J.fh=function(){this.hide();g.Dq.prototype.fh.call(this)};g.b(ms5,g.W);g.J=ms5.prototype;g.J.onVideoDataChange=function(e,N){Qj5(this,N);this.k9&&K89(this,this.k9)}; g.J.q$=function(e){var N=this.C.getVideoData();this.videoId!==N.videoId&&Qj5(this,N);K89(this,e.state);this.k9=e.state}; g.J.qW=function(e){(this.j=e)?this.hide():this.J&&this.show()}; g.J.wH=function(){this.N||this.WY();this.showControls=!0}; g.J.bU=function(){this.N||this.rT();this.showControls=!1}; g.J.WY=function(){var e;if((e=this.C)==null?0:e.T("embeds_web_enable_info_panel_sizing_fix")){var N;e=(N=this.C)==null?void 0:N.getPlayerSize();N=e.width<380;var y;e=e.height<(((y=this.C)==null?0:y.isEmbedsShortsMode())?400:280);var w,E;if((((w=this.C)==null?0:w.getPlayerStateObject().isCued())||((E=this.C)==null?0:g.G(E.getPlayerStateObject(),1024)))&&N&&e)return}this.J&&!this.j&&(this.K.show(),this.C.publish("infopanelpreviewvisibilitychange",!0),this.C.logVisibility(this.element,!0))}; g.J.rT=function(){this.J&&!this.j&&(this.K.hide(),this.C.publish("infopanelpreviewvisibilitychange",!1),this.C.logVisibility(this.element,!1))}; g.J.eih=function(){this.N=!1;this.showControls||this.rT()};var nb_={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(nb_).reduce(function(e,N){e[nb_[N]]=N;return e},{}); var QFk={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(QFk).reduce(function(e,N){e[QFk[N]]=N;return e},{}); var mgF={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(mgF).reduce(function(e,N){e[mgF[N]]=N;return e},{});var Hmf,KCZ;Hmf=[{option:"#fff",text:"Branco"},{option:"#ff0",text:"Amarelo"},{option:"#0f0",text:"Verde"},{option:"#0ff",text:"Ciano"},{option:"#00f",text:"Azul"},{option:"#f0f",text:"Magenta"},{option:"#f00",text:"Vermelho"},{option:"#080808",text:"Preto"}];KCZ=[{option:0,text:Sz(0)},{option:.25,text:Sz(.25)},{option:.5,text:Sz(.5)},{option:.75,text:Sz(.75)},{option:1,text:Sz(1)}]; g.c6=[{option:"fontFamily",text:"Estilo de fonte",options:[{option:1,text:"Serifada monoespa\u00e7ada"},{option:2,text:"Serifada proporcional"},{option:3,text:"Sem serifa monoespa\u00e7ada"},{option:4,text:"Sem serifa proporcional"},{option:5,text:"Casual"},{option:6,text:"Cursiva"},{option:7,text:"Versalete"}]},{option:"color",text:"Cor da fonte",options:Hmf},{option:"fontSizeIncrement",text:"Tamanho da fonte",options:[{option:-2,text:Sz(.5)},{option:-1,text:Sz(.75)},{option:0,text:Sz(1)},{option:1, text:Sz(1.5)},{option:2,text:Sz(2)},{option:3,text:Sz(3)},{option:4,text:Sz(4)}]},{option:"background",text:"Cor de fundo",options:Hmf},{option:"backgroundOpacity",text:"Opacidade de fundo",options:KCZ},{option:"windowColor",text:"Cor da janela",options:Hmf},{option:"windowOpacity",text:"Opacidade da janela",options:KCZ},{option:"charEdgeStyle",text:"Estilo de borda do caractere",options:[{option:0,text:"Nenhuma"},{option:4,text:"Sombra projetada"},{option:1,text:"Aumentada"},{option:2,text:"Reduzida"}, {option:3,text:"Circunscrito"}]},{option:"textOpacity",text:"Opacidade da fonte",options:[{option:.25,text:Sz(.25)},{option:.5,text:Sz(.5)},{option:.75,text:Sz(.75)},{option:1,text:Sz(1)}]}];var WCZ=[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.b(L8J,g.fd);g.J=L8J.prototype; g.J.Nn=function(e){e.repeat||(this.K.Pz=!1);var N=!1,y=e.keyCode,w=vE(e),E=!e.altKey&&!e.ctrlKey&&!e.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||WCZ.includes(y)),A=!1,T=!1,p=this.api.X();e.defaultPrevented?(E=!1,T=!0):p.jN&&!this.api.isMutedByEmbedsMutedAutoplay()&&(E=!1);if(y===9)N=!0;else{if(w)switch(y){case 32:case 13:if(w.tagName==="BUTTON"||w.tagName==="A"||w.tagName==="INPUT")N=!0,E=!1;else if(E){var C=w.getAttribute("role");!C||C!=="option"&&C!=="button"&&C.indexOf("menuitem")!==0|| (N=!0,w.click(),A=!0)}this.api.T("enable_key_press_enter_logging")&&(w=g.It(),C=hP0(247608),w&&C&&g.NR(at)(void 0,w,C,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",void 0,void 0));break;case 37:case 39:case 36:case 35:N=w.getAttribute("role")==="slider";break;case 38:case 40:C=w.getAttribute("role"),w=y===38?w.previousSibling:w.nextSibling,C==="slider"?N=!0:E&&(C==="option"?(w&&w.getAttribute("role")==="option"&&w.focus(),A=N=!0):C&&C.indexOf("menuitem")===0&&(w&&w.hasAttribute("role")&&w.getAttribute("role").indexOf("menuitem")=== 0&&w.focus(),A=N=!0))}if(E&&!A)switch(y){case 38:A=Math.min(this.api.getVolume()+5,100);EL(this.XS,A,!1);this.api.setVolume(A);T=A=!0;break;case 40:A=Math.max(this.api.getVolume()-5,0);EL(this.XS,A,!0);this.api.setVolume(A);T=A=!0;break;case 36:this.api.Bf()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),T=A=!0);break;case 35:this.api.Bf()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),T=A=!0)}}N&&bo(this,!0);(N||T)&&this.tT.Cd();(A|| E&&this.handleGlobalKeyDown(y,e.shiftKey,e.ctrlKey,e.altKey,e.metaKey,e.key,e.code,e.repeat))&&e.preventDefault();p.G&&(e={keyCode:e.keyCode,altKey:e.altKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,shiftKey:e.shiftKey,handled:e.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.Y9("onKeyPress",e))}; g.J.ke=function(e){var N=e.keyCode;(!this.api.T("web_player_spacebar_control_bugfix")||this.api.T("web_player_spacebar_control_bugfix")&&!this.j)&&this.handleGlobalKeyUp(N,e.shiftKey,e.ctrlKey,e.altKey,e.metaKey,e.key,e.code)&&e.preventDefault()}; g.J.handleGlobalKeyUp=function(e,N,y,w,E,A,T){this.api.publish("keyboardserviceglobalkeyup",{keyCode:e,shiftKey:N,ctrlKey:y,altKey:w,metaKey:E,key:A,code:T});N=!1;if(this.K.Pz)return N;(y=g.Bb(this.api.jR()))&&(y=y.ud)&&y.Og&&(y.FJ(e),N=!0);switch(e){case 9:bo(this,!0);N=!0;break;case 32:if(this.api.T("web_speedmaster_spacebar_control")&&(!this.api.T("web_player_spacebar_control_bugfix")&&!this.j||this.api.T("web_player_spacebar_control_bugfix"))&&!this.api.X().jN){var p,C;e=(p=this.progressBar)== null?void 0:(C=p.N)==null?void 0:C.isEnabled;N=this.uX(e)}}return N}; g.J.handleGlobalKeyDown=function(e,N,y,w,E,A,T,p){p||(this.K.Pz=!1);var C=!1,r=this.api.X();if(r.jN&&!this.api.isMutedByEmbedsMutedAutoplay())return C;var Y=g.Bb(this.api.jR());if(Y&&(Y=Y.ud)&&Y.Og)switch(e){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:C=Y.pn(e)}r.Z||C||(C=A||String.fromCharCode(e).toLowerCase(),this.N+=C,"awesome".indexOf(this.N)===0?(C=!0,7===this.N.length&&v01(this.api.getRootNode(),"ytp-color-party")):(this.N=C,C="awesome".indexOf(this.N)===0));if(!C&&(!this.api.isMutedByEmbedsMutedAutoplay()|| WCZ.includes(e))){var M=this.api.getVideoData(),l,F;Y=(l=this.progressBar)==null?void 0:(F=l.N)==null?void 0:F.isEnabled;l=M?M.ll:[];F=HT?w:y;switch(e){case 80:N&&!r.Zl&&(wC(this.XS,Im3(),"Anterior"),this.api.previousVideo(),C=!0);break;case 78:N&&!r.Zl&&(wC(this.XS,X3(),"Pr\u00f3ximo"),this.api.nextVideo(),C=!0);break;case 74:this.api.Bf()&&(this.api.startSeekCsiAction(),this.J?this.api.T("enable_key_press_seek_logging")?(C=hk(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"), Yy(this.J,-1,10,C)):Yy(this.J,-1,10):wC(this.XS,{S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{S:"path",Az:!0,B:"ytp-svg-fill",V:{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),C=!0);break;case 76:this.api.Bf()&&(this.api.startSeekCsiAction(),this.J?this.api.T("enable_key_press_seek_logging")?(C=hk(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),Yy(this.J,1,10,C)):Yy(this.J,1,10):wC(this.XS,{S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{S:"path",Az:!0,B:"ytp-svg-fill",V:{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),C=!0);break;case 37:this.api.Bf()&&(this.api.startSeekCsiAction(),F?(F=Rrn(l,this.api.getCurrentTime()*1E3),F!==-1&&this.J!=null&&(hrJ(this.J,-1,l[F].title),this.api.seekTo(l[F].startTime/1E3,void 0,void 0,void 0,53),C=!0)):(this.J?this.api.T("enable_key_press_seek_logging")?(C=hk(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"),Yy(this.J,-1,5,C)):Yy(this.J,-1,5):wC(this.XS,{S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36", width:"100%"},W:[{S:"path",Az:!0,B:"ytp-svg-fill",V:{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),C=!0));break;case 39:this.api.Bf()&&(this.api.startSeekCsiAction(),F?(F=O71(l,this.api.getCurrentTime()*1E3),F!==-1&&this.J!=null&&(hrJ(this.J,1,l[F].title),this.api.seekTo(l[F].startTime/1E3,void 0,void 0,void 0,52),C=!0)):(this.J!=null?this.api.T("enable_key_press_seek_logging")?(C=hk(this,5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),Yy(this.J,1,5,C)):Yy(this.J,1,5):wC(this.XS,{S:"svg",V:{height:"100%",version:"1.1", viewBox:"0 0 36 36",width:"100%"},W:[{S:"path",Az:!0,B:"ytp-svg-fill",V:{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),C=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),EL(this.XS,this.api.getVolume(),!1)):(this.api.mute(),EL(this.XS,0,!0));C=!0;break;case 32:C=this.api.T("web_speedmaster_spacebar_control")?!this.api.X().Zl:this.uX(Y);break;case 75:C=this.uX(Y);break;case 190:N?r.enableSpeedOptions&&agJ(this)&&(C=this.api.getPlaybackRate(),this.api.setPlaybackRate(C+.25,!0),OUH(this.XS,!1),C=!0):this.api.Bf()&&(this.step(1),C=!0);break;case 188:N? r.enableSpeedOptions&&agJ(this)&&(C=this.api.getPlaybackRate(),this.api.setPlaybackRate(C-.25,!0),OUH(this.XS,!0),C=!0):this.api.Bf()&&(this.step(-1),C=!0);break;case 70:Osn(this.api)&&(this.api.toggleFullscreen().catch(function(){}),C=!0); break;case 27:Y?(this.progressBar.v5(),C=!0):this.Z()&&(C=!0)}if(r.controlsType!=="3")switch(e){case 67:g.fZ(this.api.jR())&&(r=this.api.getOption("captions","track"),this.api.toggleSubtitles(),RVF(this.XS,!r||r&&!r.displayName),C=!0);break;case 79:ky(this,"textOpacity");break;case 87:ky(this,"windowOpacity");break;case 187:case 61:ky(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:ky(this,"fontSizeIncrement",!0,!0)}var S;N||y||w||(e>=48&&e<=57?S=e-48:e>=96&&e<=105&&(S=e-96));S!=null&&this.api.Bf()&& (this.api.startSeekCsiAction(),r=this.api.getProgressState(),this.api.seekTo(S/10*(r.seekableEnd-r.seekableStart)+r.seekableStart,void 0,void 0,void 0,81),C=!0);C&&this.tT.Cd()}this.j||this.api.publish("keyboardserviceglobalkeydown",{keyCode:e,shiftKey:N,ctrlKey:y,altKey:w,metaKey:E,key:A,code:T,repeat:p},this.K);return C}; g.J.step=function(e){this.api.Bf();if(this.api.getPlayerStateObject().isPaused()){var N=this.api.getVideoData().N;N&&(N=N.video)&&this.api.seekBy(e/(N.fps||30),void 0,void 0,e>0?77:78)}}; g.J.uX=function(e){if(!this.api.X().Zl){var N;var y,w=(N=this.api.getVideoData())==null?void 0:(y=N.getPlayerResponse())==null?void 0:y.playabilityStatus;if(w){var E;N=((E=g.m(w.miniplayer,mMV))==null?void 0:E.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else N=!1;N&&this.api.Mg("onExpandMiniplayer");e?this.progressBar.Z5():(e=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.XS.O6(e),e?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.J.fh=function(){g.we(this.L);g.fd.prototype.fh.call(this)};g.b(g.B6,g.W);g.B6.prototype.f2=N3(11); g.B6.prototype.GZ=function(){var e=this.C.X(),N=e.K||this.C.T("web_player_hide_overflow_button_if_empty_menu")&&this.Lw.isEmpty();e=g.hR(e)&&g.cb(this.C)&&g.G(this.C.getPlayerStateObject(),128);var y=this.C.getPlayerSize();this.visible=this.C.xx()&&!e&&y.width>=240&&!g.KX(this.C.getVideoData())&&!N&&!this.J&&!this.C.isEmbedsShortsMode();g.Y1(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.C.xp();this.C.logVisibility(this.element,this.visible&&this.L)}; g.B6.prototype.nx=function(e){g.W.prototype.nx.call(this,e);this.C.logVisibility(this.element,this.visible&&e)}; g.B6.prototype.fh=function(){g.W.prototype.fh.call(this);g.re(this.element,"ytp-overflow-button-visible")};g.b(e7s,g.Dq);g.J=e7s.prototype;g.J.OF=function(e){e=vE(e);g.Ex(this.element,e)&&(g.Ex(this.J,e)||g.Ex(this.closeButton,e)||VL(this))}; g.J.rT=function(){g.Dq.prototype.rT.call(this);this.C.Zk(this.element)}; g.J.show=function(){this.Og&&this.C.publish("OVERFLOW_PANEL_OPENED");g.Dq.prototype.show.call(this);this.element.setAttribute("aria-modal","true");yMF(this,!0)}; g.J.hide=function(){g.Dq.prototype.hide.call(this);this.element.removeAttribute("aria-modal");yMF(this,!1)}; g.J.onFullscreenToggled=function(e){!e&&this.e1()&&VL(this)}; g.J.isEmpty=function(){return this.actionButtons.length===0}; g.J.focus=function(){for(var e=g.c(this.actionButtons),N=e.next();!N.done;N=e.next())if(N=N.value,N.Og){N.focus();break}};g.b(wvH,g.W);wvH.prototype.onClick=function(e){g.G9(e,this.api)&&this.api.playVideoAt(this.index)};g.b(ELH,g.Dq);g.J=ELH.prototype;g.J.show=function(){g.Dq.prototype.show.call(this);this.J.Y(this.api,"videodatachange",this.BR);this.J.Y(this.api,"onPlaylistUpdate",this.BR);this.BR()}; g.J.hide=function(){g.Dq.prototype.hide.call(this);g.g9(this.J);this.updatePlaylist(null)}; g.J.BR=function(){this.updatePlaylist(this.api.getPlaylist());this.api.X().K&&(this.hW("ytp-playlist-menu-title-name").removeAttribute("href"),this.K&&(this.CX(this.K),this.K=null))}; g.J.Mb=function(){var e=this.playlist,N=e.author,y=N?"por $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",w={CURRENT_POSITION:String(e.index+1),PLAYLIST_LENGTH:String(e.getLength())};N&&(w.AUTHOR=N);this.update({title:e.title,subtitle:g.SO(y,w),playlisturl:this.api.getVideoUrl(!0)});N=e.N;if(N===this.j)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[e.index];else{y=g.c(this.playlistData);for(w=y.next();!w.done;w=y.next())w.value.dispose(); y=e.getLength();this.playlistData=[];for(w=0;w=this.N&&!e.K&&!N.isAd()&&!this.api.isEmbedsShortsMode()}else e=!1;this.visible=e;this.KX(this.visible);g.Y1(this.element,"ytp-search-button-visible",this.visible);g.Y1(this.element,"ytp-show-search-title",!this.api.xx());this.api.logVisibility(this.element,this.visible&&this.L)}; Im.prototype.nx=function(e){g.W.prototype.nx.call(this,e);this.api.logVisibility(this.element,this.visible&&e)};g.b(g.v6,g.W);g.J=g.v6.prototype;g.J.jy=N3(8);g.J.onClick=function(){var e=this,N=this.api.X(),y=this.api.getVideoData(this.api.getPresentingPlayerType()),w=this.api.getPlaylistId();N=this.api.T("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):N.getVideoUrl(y.videoId,w,void 0,!0);if(navigator.share)try{var E=navigator.share({title:y.title,url:N});E instanceof Promise&&E.catch(function(A){Yy3(e,A)})}catch(A){A instanceof Error&&Yy3(this,A)}else this.J.Jm(),VL(this.K,this.element,!1); this.api.logClick(this.element)}; g.J.GZ=function(){var e=this.api.X(),N=this.api.isEmbedsShortsMode();g.Y1(this.element,"ytp-show-share-title",g.hR(e)&&!N);this.J.Nr()&&N?(e=(this.api.Fz().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.$0(this.element,"right",e+"px")):N&&g.$0(this.element,"right","0px");this.updateValue("icon",{S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{S:"path",Az:!0,B:"ytp-svg-fill",V:{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=$r5(this);g.Y1(this.element,"ytp-share-button-visible",this.visible);this.KX(this.visible);this.tooltip.xp();this.api.logVisibility(this.element,$r5(this)&&this.L)}; g.J.nx=function(e){g.W.prototype.nx.call(this,e);this.api.logVisibility(this.element,this.visible&&e)}; g.J.fh=function(){g.W.prototype.fh.call(this);g.re(this.element,"ytp-share-button-visible")};g.b(l_5,g.Dq);g.J=l_5.prototype;g.J.uU=function(e){e=vE(e);g.Ex(this.Z,e)||g.Ex(this.closeButton,e)||VL(this)}; g.J.rT=function(){g.Dq.prototype.rT.call(this);this.tooltip.Zk(this.element);this.api.logVisibility(this.J,!1);for(var e=g.c(this.K),N=e.next();!N.done;N=e.next())N=N.value,this.api.hasVe(N.element)&&this.api.logVisibility(N.element,!1)}; g.J.show=function(){var e=this.Og;g.Dq.prototype.show.call(this);this.GZ();e||this.api.Mg("onSharePanelOpened")}; g.J.j9q=function(){this.Og&&this.GZ()}; g.J.GZ=function(){var e=this;g.pi(this.element,"ytp-share-panel-loading");g.re(this.element,"ytp-share-panel-fail");var N=this.api.getVideoData(),y=this.api.getPlaylistId()&&this.j.checked;N.getSharePanelCommand&&Oq(this.api.WI(),N.getSharePanelCommand,{includeListId:y}).then(function(w){e.Ss()||(g.re(e.element,"ytp-share-panel-loading"),Sy_(e,w))}); N=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",N);this.updateValue("linkText",N);this.updateValue("shareLinkWithUrl",g.SO("Compartilhar o link $URL",{URL:N}));sc(this.J);this.api.logVisibility(this.J,!0)}; g.J.onFullscreenToggled=function(e){!e&&this.e1()&&VL(this)}; g.J.focus=function(){this.J.focus()}; g.J.fh=function(){g.Dq.prototype.fh.call(this);FOM(this)};g.b(h7J,qJ);g.J=h7J.prototype;g.J.fh=function(){P9M(this);qJ.prototype.fh.call(this)}; g.J.VW=function(e){e.target!==this.dismissButton.element&&(this.vJ(!1),this.C.Mg("innertubeCommand",this.onClickCommand))}; g.J.UA=function(){this.Wk=!0;this.vJ(!0);this.xK()}; g.J.pGl=function(e){this.G=e;this.xK()}; g.J.onVideoDataChange=function(e,N){if(e=!!N.videoId&&this.videoId!==N.videoId)this.videoId=N.videoId,this.Wk=!1,this.qg=!0,this.U=this.Kh=!1,P9M(this),Xv5(this,!1),this.N=this.J=!1,io(this),cM1(this);if(e||!N.videoId)this.Ng=this.j=!1;var y,w;if(N==null?0:(y=N.getPlayerResponse())==null?0:(w=y.videoDetails)==null?0:w.isLiveContent)this.iP(!1);else{var E,A,T;N=g.m((E=N.getWatchNextResponse())==null?void 0:(A=E.playerOverlays)==null?void 0:(T=A.playerOverlayRenderer)==null?void 0:T.productsInVideoOverlayRenderer, fZw);this.G=this.enabled=!1;if(N){if(E=N==null?void 0:N.featuredProductsEntityKey){A=g.WH.getState().entities;var p;if((p=Cj(A,"featuredProductsEntity",E))==null?0:p.productsData){this.iP(!1);return}}this.enabled=!0;if(!this.j){var C;p=(C=N.badgeInteractionLogging)==null?void 0:C.trackingParams;(this.j=!!p)&&this.C.setTrackingParams(this.badge.element,p||null)}if(!this.Ng){var r;if(this.Ng=!((r=N.dismissButton)==null||!r.trackingParams)){var Y;this.C.setTrackingParams(this.dismissButton.element,((Y= N.dismissButton)==null?void 0:Y.trackingParams)||null)}}N.isContentForward&&(C=N.productsData,Xv5(this,!0),cM1(this),C=BVM(this,C),r=[],C.length>0&&r.push(C[0]),C.length>1&&(Y=new g.W({S:"div",B:"ytp-suggested-action-more-products-icon"}),g.Q(this,Y),r.push(Y),r.push.apply(r,g.B(C.slice(1)))),this.Z=new g.W({S:"div",W:r,B:"ytp-suggested-action-content-forward-container"}),g.Q(this,this.Z),this.Rq.element.append(this.Z.element));this.text=g.SY(N.text);var M;if(C=(M=N.dismissButton)==null?void 0:M.a11yLabel)this.Bk= g.SY(C);this.onClickCommand=N.onClickCommand;this.timing=N.timing;this.wx()}c95(this);ur(this);this.xK()}}; g.J.Iy=function(){return!this.G&&this.enabled&&!this.Wk&&!this.C.xx()&&!this.SR&&(this.U||this.qg)}; g.J.Up=function(e){qJ.prototype.Up.call(this,e);if(this.J||this.N)this.timing&&zP(this.timing.preview)&&(this.J=!1,io(this),this.N=!1,io(this),this.C.MK("shopping_overlay_preview_collapsed"),this.C.MK("shopping_overlay_preview_expanded"),e=DD(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),zP(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.C.MK("shopping_overlay_expanded"),e.end=this.timing.expanded.endSec*1E3),this.C.wx([e])), this.Kh=!0,ur(this);io(this)}; g.J.iP=function(e){(this.U=e)?(tv(this),ur(this,!1)):(P9M(this),this.Zl.start());this.xK()}; g.J.wx=function(e){var N=this.timing;e=(e===void 0?0:e)+this.C.getCurrentTime();var y=[],w=N.visible,E=N.preview;N=N.expanded;zP(w)&&(oLP(w,e),y.push(DD(w.startSec,w.endSec,"shopping_overlay_visible")));zP(E)&&(oLP(E,e),w=E.startSec+1,y.push(DD(E.startSec,w,"shopping_overlay_preview_collapsed")),y.push(DD(w,E.endSec,"shopping_overlay_preview_expanded")));zP(N)&&(oLP(N,e),y.push(DD(N.startSec,N.endSec,"shopping_overlay_expanded")));this.C.wx(y)};g.b(vLF,g.W); vLF.prototype.GZ=function(){var e=this.api.X();this.KX(g.hR(e)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.Og);var N=this.api.getVideoData(),y=!1;this.api.getPresentingPlayerType()===2?y=!!N.videoId&&!!N.isListed&&!!N.author&&!!N.SR&&!!N.profilePicture:g.hR(e)&&(y=!!N.videoId&&!!N.SR&&!!N.profilePicture&&!g.KX(N)&&!e.K&&!(e.U&&this.api.getPlayerSize().width<200));var w=N.profilePicture;e=g.hR(e)?N.expandedTitle:N.author;w=w===void 0? "":w;e=e===void 0?"":e;y?(this.N!==w&&(this.J.style.backgroundImage="url("+w+")",this.N=w),this.updateValue("channelLogoLabel",g.SO("Foto do canal $CHANNEL_NAME",{CHANNEL_NAME:e})),g.pi(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.re(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.J,y&&this.L);this.api.logVisibility(this.channelName,y&&this.L);this.subscribeButton&&(this.subscribeButton.channelId=N.iI);this.updateValue("expandedTitle",N.expandedTitle)};g.b(gC,g.Dq);gC.prototype.show=function(){g.Dq.prototype.show.call(this);this.J.start()}; gC.prototype.hide=function(){g.Dq.prototype.hide.call(this);this.J.stop()}; gC.prototype.vc=function(e,N){e==="dataloaded"&&((this.YB=N.YB,this.Js=N.Js,isNaN(this.YB)||isNaN(this.Js))?this.K&&(this.C.MK("intro"),this.C.removeEventListener(g.AA("intro"),this.G),this.C.removeEventListener(g.TW("intro"),this.Z),this.C.removeEventListener("onShowControls",this.j),this.hide(),this.K=!1):(this.C.addEventListener(g.AA("intro"),this.G),this.C.addEventListener(g.TW("intro"),this.Z),this.C.addEventListener("onShowControls",this.j),e=new g.wF(this.YB,this.Js,{priority:9,namespace:"intro"}), this.C.wx([e]),this.K=!0))};g.b(Vs,g.W);Vs.prototype.onClick=function(){this.C.aS()}; Vs.prototype.GZ=function(){var e=!0;g.hR(this.C.X())&&(e=e&&this.C.Fz().getPlayerSize().width>=480);this.KX(e);this.updateValue("icon",this.C.ox()?{S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{S:"path",Az:!0,V:{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"}}]}: {S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{S:"path",Az:!0,B:"ytp-svg-fill",V:{d:"M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z"}}]})};g.b(ie3,g.W);ie3.prototype.fh=function(){this.J=null;g.W.prototype.fh.call(this)};g.b(fJ,g.W);fJ.prototype.onClick=function(){this.C.Mg("innertubeCommand",this.N)}; fJ.prototype.D=function(e){e!==this.Z&&(this.update({title:e,ariaLabel:e}),this.Z=e);e?this.show():this.hide()}; fJ.prototype.U=function(){this.J.disabled=this.N==null;g.Y1(this.J,"ytp-chapter-container-disabled",this.J.disabled);this.HY()};g.b(tk,fJ);tk.prototype.onClickCommand=function(e){g.m(e,K3)&&this.HY()}; tk.prototype.updateVideoData=function(e,N){var y,w,E;e=g.m((y=N.getWatchNextResponse())==null?void 0:(w=y.playerOverlays)==null?void 0:(E=w.playerOverlayRenderer)==null?void 0:E.decoratedPlayerBarRenderer,Sx);y=g.m(e==null?void 0:e.playerBarActionButton,g.zR);this.C.T("web_player_updated_entrypoint")&&(this.G=rQ(y==null?void 0:y.text));this.N=y==null?void 0:y.command;fJ.prototype.U.call(this)}; tk.prototype.HY=function(){var e=this.C.T("web_player_updated_entrypoint")?this.G:"",N=this.j.J,y,w=((y=this.C.getLoopRange())==null?void 0:y.type)==="clips";if(N.length>1&&!w){e=this.C.getProgressState().current*1E3;y=om(N,e);e=N[y].title||"Cap\u00edtulos";if(y!==this.currentIndex||this.K)this.C.Mg("innertubeCommand",N[y].onActiveCommand),this.currentIndex=y;this.K=!1}else this.K=!0;fJ.prototype.D.call(this,e)};g.b(uo,g.W);uo.prototype.Z=function(e){g.G(e.state,32)?gL5(this,this.api.nO()):this.Og&&(g.G(e.state,16)||g.G(e.state,1))||this.J.hide()}; uo.prototype.FI=function(){var e=this.api.getPlayerStateObject();(g.G(e,32)||g.G(e,16))&&VTP(this)}; uo.prototype.G=function(){this.K=NaN;VTP(this)}; uo.prototype.hide=function(){this.N&&gL5(this,null);g.W.prototype.hide.call(this)};g.b(f_E,g.W);g.J=f_E.prototype;g.J.onClick=function(){var e=this;if(this.C.X().Y_||this.C.X().U){this.C.logClick(this.element);try{this.C.toggleFullscreen().catch(function(N){e.sU(N)})}catch(N){this.sU(N)}}else VL(this.message,this.element,!0)}; g.J.sU=function(e){String(e).includes("fullscreen error")?g.uA(e):g.t0(e);this.rX()}; g.J.rX=function(){this.disable();this.message.WY(this.element,!0)}; g.J.bz=function(){cE()===this.C.getRootNode()?this.K.start():(this.K.stop(),this.message&&this.message.hide())}; g.J.Eh=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var e=window.screen.width*.9,N=window.screen.height*.9,y=Math.max(window.outerWidth,window.innerWidth),w=Math.max(window.outerHeight,window.innerHeight);if(y>w!==e>N){var E=y;y=w;w=E}e>y&&N>w&&this.rX()}}; g.J.disable=function(){var e=this;if(!this.message){var N=(oz(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null?"Tela cheia indispon\u00edvel. $BEGIN_LINKSaiba mais$END_LINK":"Seu navegador n\u00e3o tem suporte para tela cheia. $BEGIN_LINKSaiba mais$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.Dq(this.C,{S:"div",dP:["ytp-popup","ytp-generic-popup"],V:{role:"alert",tabindex:"0"},W:[N[0],{S:"a",V:{href:"https://support.google.com/youtube/answer/6276924", target:this.C.X().D},b9:N[2]},N[4]]},100,!0);this.message.hide();g.Q(this,this.message);this.message.subscribe("show",function(y){e.N.wG(e.message,y)}); g.Pb(this.C,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.J)();this.J=null}}; g.J.GZ=function(){var e=Osn(this.C),N=this.C.X().U&&this.C.getPlayerSize().width<250;this.KX(e&&!N);var y;((y=this.C.X())==null?0:y.T("embeds_use_parent_visibility_in_ve_logging"))?this.C.logVisibility(this.element,this.Og&&this.L):this.C.logVisibility(this.element,this.Og)}; g.J.q3=function(e){if(e){var N={S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{S:"g",B:"ytp-fullscreen-button-corner-2",W:[{S:"path",Az:!0,B:"ytp-svg-fill",V:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{S:"g",B:"ytp-fullscreen-button-corner-3",W:[{S:"path",Az:!0,B:"ytp-svg-fill",V:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{S:"g",B:"ytp-fullscreen-button-corner-0",W:[{S:"path",Az:!0,B:"ytp-svg-fill",V:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{S:"g", B:"ytp-fullscreen-button-corner-1",W:[{S:"path",Az:!0,B:"ytp-svg-fill",V:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};e=g.FT(this.C,"Sair da tela inteira","f");this.update({"data-title-no-tooltip":"Sair da tela inteira"});document.activeElement===this.element&&this.C.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(y){g.uA(y)})}else N={S:"svg", V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{S:"g",B:"ytp-fullscreen-button-corner-0",W:[{S:"path",Az:!0,B:"ytp-svg-fill",V:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{S:"g",B:"ytp-fullscreen-button-corner-1",W:[{S:"path",Az:!0,B:"ytp-svg-fill",V:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{S:"g",B:"ytp-fullscreen-button-corner-2",W:[{S:"path",Az:!0,B:"ytp-svg-fill",V:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{S:"g",B:"ytp-fullscreen-button-corner-3", W:[{S:"path",Az:!0,B:"ytp-svg-fill",V:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},e=g.FT(this.C,"Tela inteira","f"),this.update({"data-title-no-tooltip":"Tela inteira"});e=this.message?null:e;this.update({title:e,icon:N});this.N.Rf().xp()}; g.J.fh=function(){this.message||((0,this.J)(),this.J=null);g.W.prototype.fh.call(this)}; g.J.nx=function(e){g.W.prototype.nx.call(this,e);var N;((N=this.C.X())==null?0:N.T("embeds_use_parent_visibility_in_ve_logging"))&&this.C.logVisibility(this.element,this.Og&&e)};g.b(qh,g.W);qh.prototype.onClick=function(){this.C.logClick(this.element);this.C.seekBy(this.J,!0);var e=this.J>0?1:-1,N=Math.abs(this.J),y=this.C.Yp().X9;y&&Yy(y,e,N);this.N.isActive()?this.K=!0:(e=["ytp-jump-spin"],this.J<0&&e.push("backwards"),this.element.classList.add.apply(this.element.classList,g.B(e)),g.NA(this.N))};g.b(ZD,fJ);ZD.prototype.onClickCommand=function(e){g.m(e,gw0)&&this.HY()}; ZD.prototype.updateVideoData=function(){var e,N;this.N=(e=u5M(this))==null?void 0:(N=e.onTap)==null?void 0:N.innertubeCommand;fJ.prototype.U.call(this)}; ZD.prototype.HY=function(){var e="",N=this.j.Z,y,w=(y=u5M(this))==null?void 0:y.headerTitle;y=w?g.SY(w):"";var E;w=((E=this.C.getLoopRange())==null?void 0:E.type)==="clips";N.length>1&&!w&&(e=this.C.getProgressState().current*1E3,E=W8_(N,e),e=E!=null?N[E].title:y,E!=null&&E!==this.currentIndex&&(this.C.Mg("innertubeCommand",N[E].onActiveCommand),this.currentIndex=E));fJ.prototype.D.call(this,e)};g.b(jz,g.W);jz.prototype.onClick=function(){this.C.Mg("onCollapseMiniplayer");this.C.logClick(this.element)}; jz.prototype.GZ=function(){this.visible=!this.C.isFullscreen();this.KX(this.visible);this.C.logVisibility(this.element,this.visible&&this.L)}; jz.prototype.nx=function(e){g.W.prototype.nx.call(this,e);this.C.logVisibility(this.element,this.visible&&e)};g.b(nJ,g.W);g.J=nJ.prototype;g.J.eG=function(e){this.visible=e.width>=300||this.i9;this.KX(this.visible);this.C.logVisibility(this.element,this.visible&&this.L)}; g.J.nkP=function(){this.C.X().Et?this.C.isMuted()?this.C.unMute():this.C.mute():VL(this.message,this.element,!0);this.C.logClick(this.element)}; g.J.onVolumeChange=function(e){this.setVolume(e.volume,e.muted)}; g.J.setVolume=function(e,N){var y=this,w=N?0:e/100,E=this.C.X();e=w===0?1:e>50?1:0;if(this.Z!==e){var A=this.Kh;isNaN(A)?xrM(this,e):Ak5(this.l9,function(p){xrM(y,A+(y.Z-A)*p)},250); this.Z=e}w=w===0?1:0;if(this.j!==w){var T=this.D;isNaN(T)?ja1(this,w):Ak5(this.Ng,function(p){ja1(y,T+(y.j-T)*p)},250); this.j=w}E.Et&&(E=g.FT(this.C,"Sem \u00e1udio","m"),w=g.FT(this.C,"Reativar o som","m"),this.updateValue("title",N?w:E),this.update({"data-title-no-tooltip":N?"Reativar o som":"Sem \u00e1udio"}),this.tooltip.xp())}; g.J.nx=function(e){g.W.prototype.nx.call(this,e);this.C.logVisibility(this.element,this.visible&&e)}; var qy0=["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"],Ze9=["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.b(g.Qs,g.W);g.J=g.Qs.prototype;g.J.onStateChange=function(e){this.IJ(e.state);var N;((N=this.C.X())==null?0:N.T("embeds_use_parent_visibility_in_ve_logging"))&&this.C.logVisibility(this.element,this.Og&&this.L)}; g.J.IJ=function(e){var N=g.bk(this.C.getVideoData()),y=!1;e.isOrWillBePlaying()?e=N?4:2:g.G(e,2)?(e=3,y=N):e=1;this.element.disabled=y;if(this.J!==e){N=null;switch(e){case 2:N=g.FT(this.C,"Pausa","k");this.update({"data-title-no-tooltip":"Pausa"});break;case 3:N="Reiniciar";this.update({"data-title-no-tooltip":"Reiniciar"});break;case 1:N=g.FT(this.C,"Reproduzir","k");this.update({"data-title-no-tooltip":"Reproduzir"});break;case 4:N="Interromper reprodu\u00e7\u00e3o ao vivo",this.update({"data-title-no-tooltip":"Interromper reprodu\u00e7\u00e3o ao vivo"})}e=== 3?this.update({title:N,icon:nLn(e)}):(this.update({title:N}),(N=nLn(e))&&this.J&&this.J!==3?JkP(this.transition,this.element,N):this.updateValue("icon",N));this.tooltip.xp();this.J=e}}; g.J.onVideoDataChange=function(){g.Y1(this.element,"ytp-play-button-playlist",g.cb(this.C))}; g.J.uX=function(e){this.C.logClick(this.element);if(this.C.getPlayerStateObject().isOrWillBePlaying())this.C.pauseVideo();else{if(this.C.isMinimized()&&this.C.getPlayerStateObject().isCued()){var N={},y;if((y=this.C.getVideoData())==null?0:y.Z)N.cttAuthInfo={token:this.C.getVideoData().Z,videoId:this.C.getVideoData().videoId};QQ("direct_playback",N);this.C.s4().timerName="direct_playback"}else this.J===3&&kP(this.C.s4());this.C.playVideo()}this.C.isMinimized()&&(e==null?void 0:e.type)==="click"&& this.element.blur()}; g.J.nx=function(e){g.W.prototype.nx.call(this,e);var N;((N=this.C.X())==null?0:N.T("embeds_use_parent_visibility_in_ve_logging"))&&this.C.logVisibility(this.element,this.Og&&e)};g.b(g.m2,g.W);g.J=g.m2.prototype;g.J.onVideoDataChange=function(){mr0(this);this.j&&(this.CX(this.j),this.j=null);this.videoData=this.C.getVideoData(1);if(this.playlist=this.C.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.j=this.Y(this.C,"progresssync",this.xE);this.K=HeM(this);QaE(this);this.n5(this.C.Fz().getPlayerSize())}; g.J.n5=function(e){e=e===void 0?this.C.Fz().getPlayerSize():e;var N,y=((N=this.C.getLoopRange())==null?void 0:N.type)==="clips";e=(g.cb(this.C)||this.J&&g.dZ(this.C)&&!this.C.T("web_hide_next_button")||KO5(this))&&!y&&(this.J||e.width>=400);this.KX(e);this.C.logVisibility(this.element,e)}; g.J.onClick=function(e){this.C.logClick(this.element);var N=!0;this.G?N=g.G9(e,this.C):e.preventDefault();N&&(this.J&&this.C.getPresentingPlayerType()===5?this.C.publish("ytoprerollinternstitialnext"):this.J?(kP(this.C.s4()),this.C.publish("playlistnextbuttonclicked",this.element),this.C.nextVideo(!0)):this.K?this.C.seekTo(0):(kP(this.C.s4()),this.C.publish("playlistprevbuttonclicked",this.element),this.C.previousVideo(!0)))}; g.J.xE=function(){var e=HeM(this);e!==this.K&&(this.K=e,QaE(this))}; g.J.fh=function(){this.N&&(this.N(),this.N=null);mr0(this);g.W.prototype.fh.call(this)};g.b(Oe3,g.W);g.J=Oe3.prototype;g.J.ye=function(e){this.Xg(e.pageX);this.Yd(e.pageX+e.deltaX);R7M(this)}; g.J.Xg=function(e){this.Ng=e-this.aq}; g.J.Yd=function(e){e-=this.aq;!isNaN(this.Ng)&&this.thumbnails.length>0&&(this.D=e-this.Ng,this.thumbnails.length>0&&this.D!==0&&(this.K=this.U+this.D,e=a_0(this,this.K),this.K<=this.J/2&&this.K>=san(this)?(this.api.seekTo(e,!1,void 0,void 0,25),g.$0(this.qg,"transform","translateX("+(this.K-this.J/2)+"px)"),WO5(this,e)):this.K=this.U))}; g.J.iU=function(){this.Kh&&(this.Kh.QG=!0);var e=(0,g.iC)()-this.Et<300;if(Math.abs(this.D)<5&&!e){this.Et=(0,g.iC)();e=this.Ng+this.D;var N=this.J/2-e;this.Xg(e);this.Yd(e+N);R7M(this);this.api.logClick(this.Z)}R7M(this)}; g.J.IE=function(){H6(this,this.api.getCurrentTime())}; g.J.play=function(e){this.api.seekTo(a_0(this,this.K),void 0,void 0,void 0,26);this.api.playVideo();e&&this.api.logClick(this.playButton)}; g.J.onExit=function(e){this.api.seekTo(this.Zl,void 0,void 0,void 0,63);this.api.playVideo();e&&this.api.logClick(this.dismissButton)}; g.J.I9=function(e,N){this.aq=e;this.J=N;H6(this,this.api.getCurrentTime())}; g.J.enable=function(){this.isEnabled||(this.isEnabled=!0,this.Zl=this.api.getCurrentTime(),WO5(this,this.Zl),g.Y1(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.Rq=this.Y(this.element,"wheel",this.ye),this.logVisibility(this.isEnabled))}; g.J.disable=function(){this.isEnabled=!1;this.hide();g.Y1(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.Rq&&this.CX(this.Rq);this.logVisibility(this.isEnabled)}; g.J.reset=function(){this.disable();this.j=[];this.i9=!1}; g.J.logVisibility=function(e){this.api.logVisibility(this.element,e);this.api.logVisibility(this.Z,e);this.api.logVisibility(this.dismissButton,e);this.api.logVisibility(this.playButton,e)}; g.J.fh=function(){for(;this.N.length;){var e=void 0;(e=this.N.pop())==null||e.dispose()}g.W.prototype.fh.call(this)}; g.b(Gd5,g.W);g.b(Ur9,g.W);g.b(eUM,g.W);g.b(KJ,g.W);KJ.prototype.ut=function(e){return e==="PLAY_PROGRESS"?this.U:e==="LOAD_PROGRESS"?this.G:e==="LIVE_BUFFER"?this.Z:this.K};wj5.prototype.update=function(e,N,y,w){y=y===void 0?0:y;this.width=N;this.j=y;this.J=N-y-(w===void 0?0:w);this.position=g.Ja(e,y,y+this.J);this.K=this.position-y;this.N=this.K/this.J};g.b(EW5,g.W);g.b(g.Rm,g.Mu);g.J=g.Rm.prototype; g.J.u3=function(){var e=!1,N=this.api.getVideoData();if(!N)return e;this.api.MK("timedMarkerCueRange");Js0(this);for(var y=g.c(N.Dl),w=y.next();!w.done;w=y.next()){w=w.value;var E=void 0,A=(E=this.Zl[w])==null?void 0:E.markerType;E=void 0;var T=(E=this.Zl[w])==null?void 0:E.markers;if(!T)break;if(A==="MARKER_TYPE_TIMESTAMPS"){e=g.c(T);for(A=e.next();!A.done;A=e.next()){E=A.value;A=new EW5;T=void 0;A.title=((T=E.title)==null?void 0:T.simpleText)||"";A.timeRangeStartMillis=Number(E.startMillis);A.J= Number(E.durationMillis);var p=T=void 0;A.onActiveCommand=(p=(T=E.onActive)==null?void 0:T.innertubeCommand)!=null?p:void 0;MW9(this,A)}lIs(this,this.Z);e=this.Z;A=this.im;E=[];T=null;for(p=0;pC&&(T.end=C);C=GIP(C,C+Y);E.push(C);T=C;A[C.id]=e[p].onActiveCommand}}this.api.wx(E);this.sY=this.Zl[w];e=!0}else if(A==="MARKER_TYPE_HEATMAP"){w=this.Zl[w];Y=r=E=C=p=T=void 0;if(w&& w.markers){A=(E=(Y=w.markersMetadata)==null?void 0:(r=Y.heatmapMetadata)==null?void 0:r.minHeightDp)!=null?E:0;E=(T=(C=w.markersMetadata)==null?void 0:(p=C.heatmapMetadata)==null?void 0:p.maxHeightDp)!=null?T:60;T=this.J.length;p=null;for(C=0;C=Y&&S<=M&&r.push(F)}E>0&&(this.Kh.style.height= E+"px");Y=this.j[C];M=r;F=A;var k=E,X=C===0;X=X===void 0?!1:X;NMM(Y,k);l=M;S=Y.N;X=X===void 0?!1:X;var d=1E3/l.length,v=[];v.push({x:0,y:100});for(var V=0;V0&&(p=r[r.length-1])}g.GP(this)}E=void 0;A=[];if(w=(E=w.markersDecoration)==null?void 0:E.timedMarkerDecorations)for(w=g.c(w),E=w.next();!E.done;E=w.next())E=E.value,C=p=T=void 0,A.push({visibleTimeRangeStartMillis:(T=E.visibleTimeRangeStartMillis)!=null?T:-1,visibleTimeRangeEndMillis:(p=E.visibleTimeRangeEndMillis)!=null?p:-1,decorationTimeMillis:(C=E.decorationTimeMillis)!= null?C:NaN,label:E.label?g.SY(E.label):""});w=A;this.heatMarkersDecorations=w}}N.nM=this.Z;g.Y1(this.element,"ytp-timed-markers-enabled",e);return e}; g.J.I9=function(){g.GP(this);sL(this);lIs(this,this.Z);if(this.N){var e=g.hp(this.element).x||0;this.N.I9(e,this.G)}}; g.J.onClickCommand=function(e){if(e=g.m(e,K3)){var N=e.key;e.isVisible&&N&&bF0(this,N)}}; g.J.Ju9=function(e){this.api.Mg("innertubeCommand",this.im[e.id])}; g.J.HY=function(){sL(this);var e=this.api.getCurrentTime();(ethis.clipEnd)&&this.Ur()}; g.J.z0=function(e){if(!e.defaultPrevented){var N=!1;switch(e.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);N=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);N=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);N=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);N=!0;break;case 38:this.api.T("enable_key_press_seek_logging")&&ED(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);N=!0;break;case 40:this.api.T("enable_key_press_seek_logging")&&ED(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),N=!0}N&&e.preventDefault()}}; g.J.vc=function(e,N){this.updateVideoData(N,e==="newdata")}; g.J.kZB=function(){this.vc("newdata",this.api.getVideoData())}; g.J.updateVideoData=function(e,N){N=N===void 0?!1:N;var y=!!e&&e.WG();if(y&&(HF(e)||XjE(this)?this.UY=!1:this.UY=e.allowLiveDvr,g.Y1(this.api.getRootNode(),"ytp-enable-live-buffer",!(e==null||!HF(e))),this.api.T("enable_custom_playhead_parsing"))){var w,E,A,T=g.m((w=e.getWatchNextResponse())==null?void 0:(E=w.playerOverlays)==null?void 0:(A=E.playerOverlayRenderer)==null?void 0:A.decoratedPlayerBarRenderer,Sx);if(T==null?0:T.progressColor)for(w=0;w0;)this.j.pop().dispose();this.heatMarkersDecorations=[];this.Kx={};var M;(M=this.N)==null||M.reset();rT(this);g.Y1(this.api.getRootNode(),"ytp-fine-scrubbing-exp",OL(this))}else this.Ur();this.SY()}if(e){var l;M=((l=this.c9)==null?void 0:l.type)==="clips";if(l=!e.isLivePlayback){l=this.api.getVideoData();N=g.of(l);y=CWn(l);var F;l=N!=null||y!=null&&y.length>0||((F=l.Tv)== null?void 0:F.length)>0}if(l&&!M){F=this.api.getVideoData();M=g.of(F);l=!1;if(M==null?0:M.markersMap){l=this.api.getVideoData();var S;l.A4=((S=M.visibleOnLoad)==null?void 0:S.key)||l.A4;S=g.c(M.markersMap);for(M=S.next();!M.done;M=S.next())M=M.value,M.key&&M.value&&(this.Kx[M.key]=M.value,M.value.onChapterRepeat&&(l.xC=M.value.onChapterRepeat));l.A4!=null&&bF0(this,l.A4);l=!0}var k;if(((k=F.Tv)==null?void 0:k.length)>0){k=g.WH.getState().entities;S=g.c(F.Tv);for(M=S.next();!M.done;M=S.next())if(M= M.value,y=void 0,N=(y=Cj(k,"macroMarkersListEntity",M))==null?void 0:y.markersList,p=y=void 0,((y=N)==null?void 0:y.markerType)==="MARKER_TYPE_TIMESTAMPS"||((p=N)==null?void 0:p.markerType)==="MARKER_TYPE_HEATMAP")this.Zl[M]=N;l=this.u3()||l}!l&&(k=CWn(F))&&($ns(this,k),F.ll=this.J,rs9(this));PW1(this,null);e.lF&&this.j.length===0&&(e=e.lF,k=e.key,e.isVisible&&k&&bF0(this,k))}else AsM(this),Js0(this)}sL(this)}; g.J.KPt=function(e){this.U&&!g.G(e.state,32)&&this.api.getPresentingPlayerType()!==3&&this.U.cancel();var N;((N=this.N)==null?0:N.isEnabled)&&g.G(e.state,8)&&this.api.pauseVideo();e=this.api.getPresentingPlayerType()===2||!this.api.Bf()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.Y1(this.DD,"ytp-hide-scrubber-button",e)}; g.J.g3=function(e){var N=!!this.c9!==!!e,y=this.c9;this.c9=e;PW1(this,y);(e==null?void 0:e.type)!=="clips"&&e||(e?(this.updateValue("clipstarticon",B00()),this.updateValue("clipendicon",B00()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",lmM()),this.updateValue("clipendicon",M1s()),this.updateValue("clipstarttitle","Assista o v\u00eddeo completo"),this.updateValue("clipendtitle","Assista o v\u00eddeo completo")),N&&(this.updateVideoData(this.api.getVideoData(), !0),g.GP(this)),AU(this));NV(this,this.D,this.VB)}; g.J.NaZ=function(e,N,y){var w=g.hp(this.element),E=LJ(this).J,A=y?y.getAttribute("data-tooltip"):void 0,T=y?y.getAttribute("data-position"):void 0,p=y?y.getAttribute("data-offset-y"):void 0;p=p?Number(p):0;T&&(e=tF(this.K,Number(y.getAttribute("data-position")),0)*E+g.hp(this.progressBar).x);this.Ut.x=e-w.x;this.Ut.y=N-w.y;e=LJ(this);y=wT(this,e);N=0;var C;if((C=this.api.getVideoData())==null?0:HF(C))(C=this.api.getProgressState().seekableEnd)&&y>C&&(y=C,e.position=tF(this.K,C)*LJ(this).J),N=this.K.N; XjE(this)&&(N=this.K.N);C=A||g.P2(this.UY?y-this.K.J:y-N);N=e.position+this.Rx;y-=this.api.w7();var r;if((r=this.N)==null||!r.isEnabled)if(this.api.nO()){if(this.J.length>1){r=yq(this,this.Ut.x,!0);if(!this.c9)for(w=0;w1)for(w=0;w0)for(r=this.Ut.x,w=g.c(this.Z),E=w.next();!E.done;E=w.next())E=E.value,T=UL(this,E.timeRangeStartMillis/ (this.K.J*1E3),LJ(this)),g.Y1(E.element,"ytp-timed-marker-hover",T<=r&&T+6>=r);w=this.tooltip.scale;p=(isNaN(p)?0:p)-45*w;this.api.T("web_key_moments_markers")?this.sY?(r=W8_(this.Z,y*1E3),r=r!=null?this.Z[r].title:""):(r=om(this.J,y*1E3),r=this.J[r].title):(r=om(this.J,y*1E3),r=this.J[r].title);r||(p+=16*w);this.tooltip.scale===.6&&(this.api.T("web_cairo_modern_miniplayer")?(p=this.api.Fz().getPlayerSize().height-225,p=r?p+110:p+110+16,this.api.T("web_cairo_modern_miniplayer_inset_progress_bar")&& (p-=12)):p=r?110:126);w=om(this.J,y*1E3);this.qg=dnF(this,y,w)?w:dnF(this,y,w+1)?w+1:-1;g.Y1(this.api.getRootNode(),"ytp-progress-bar-snap",this.qg!==-1&&this.J.length>1);w=!1;E=g.c(this.heatMarkersDecorations);for(T=E.next();!T.done;T=E.next()){T=T.value;var Y=y*1E3;Y>=T.visibleTimeRangeStartMillis&&Y<=T.visibleTimeRangeEndMillis&&(r=T.label,C=g.P2(T.decorationTimeMillis/1E3),w=!0)}this.NK!==w&&(this.NK=w,this.api.logVisibility(this.CC,this.NK));g.Y1(this.api.getRootNode(),"ytp-progress-bar-decoration", w);w=160*this.tooltip.scale*2;E=r.length*(this.Ng?8.55:5.7);E=E<=w?E:w;T=E<160*this.tooltip.scale;w=3;!T&&E/2>e.position&&(w=1);!T&&E/2>this.G-e.position&&(w=2);this.api.X().U&&(p-=10);this.j.length&&this.j[0].WG&&(p-=14*(this.Ng?2:1),this.Rq||(this.Rq=!0,this.api.logVisibility(this.Kh,this.Rq)));var M;if(OL(this)&&(((M=this.N)==null?0:M.isEnabled)||this.Bk>0)){var l;p-=((l=this.N)==null?0:l.isEnabled)?JU(this):this.Bk}M=void 0;OL(this)&&!this.api.T("web_player_hide_fine_scrubbing_edu")&&(M="Puxe para cima para uma busca precisa", this.i9||(this.i9=!0,this.api.logVisibility(this.U2,this.i9)));this.tooltip.ze(N,y,C,!!A,p,r,w,M)}else this.tooltip.ze(N,y,C,!!A,p);g.pi(this.api.getRootNode(),"ytp-progress-bar-hover");BM5(this)}; g.J.JaW=function(){this.SY();g.re(this.api.getRootNode(),"ytp-progress-bar-hover");this.Rq&&(this.Rq=!1,this.api.logVisibility(this.Kh,this.Rq));this.i9&&(this.i9=!1,this.api.logVisibility(this.U2,this.i9))}; g.J.Fsh=function(e,N){OL(this)&&this.N&&(this.N.i9?H6(this.N,this.api.getCurrentTime()):LOM(this.N),this.N.show(),g.Y1(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.N.isEnabled));this.YO&&(this.YO.dispose(),this.YO=null);this.CN=N;this.jp=this.api.getCurrentTime();this.J.length>1&&this.qg!==-1?this.api.seekTo(this.J[this.qg].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(wT(this,LJ(this)),!1,void 0,void 0,7);g.pi(this.element,"ytp-drag");(this.WE=this.api.getPlayerStateObject().isOrWillBePlaying())&& this.api.pauseVideo()}; g.J.kaW=function(){if(OL(this)&&this.N){var e=JU(this);this.Bk>=e*.5?(this.N.enable(),H6(this.N,this.api.getCurrentTime()),fIM(this,e)):rT(this)}if(g.G(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var N;if((N=this.N)==null?0:N.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.J.length>1&&this.qg!==-1)this.api.T("html5_enable_progress_bar_slide_seek_logging")&&ED(this,this.jp,this.J[this.qg].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.J[this.qg].startTime/1E3,void 0,void 0,void 0,7);else{e=wT(this,LJ(this));this.api.T("html5_enable_progress_bar_slide_seek_logging")&&ED(this,this.jp,e,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(e,void 0,void 0,void 0,7);N=g.c(this.heatMarkersDecorations);for(var y=N.next();!y.done;y=N.next())y=y.value,e*1E3>=y.visibleTimeRangeStartMillis&&e*1E3<=y.visibleTimeRangeEndMillis&& this.api.logClick(this.CC)}g.re(this.element,"ytp-drag");this.WE&&!g.G(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.J.KsZ=function(e,N){e=LJ(this);e=wT(this,e);this.api.seekTo(e,!1,void 0,void 0,7);var y;OL(this)&&((y=this.N)==null?0:y.i9)&&(H6(this.N,e),this.N.isEnabled||(y=JU(this),this.Bk=g.Ja(this.CN-N-10,0,y),fIM(this,this.Bk)))}; g.J.SY=function(){this.tooltip.Mj()}; g.J.fZ=function(){this.c9||(this.updateValue("clipstarticon",YmP()),this.updateValue("clipendicon",YmP()),g.pi(this.element,"ytp-clip-hover"))}; g.J.tJ=function(){this.c9||(this.updateValue("clipstarticon",lmM()),this.updateValue("clipendicon",M1s()),g.re(this.element,"ytp-clip-hover"))}; g.J.Ur=function(){this.clipStart=0;this.clipEnd=Infinity;AU(this);NV(this,this.D,this.VB)}; g.J.gxh=function(e){e=g.c(e);for(var N=e.next();!N.done;N=e.next())if(N=N.value,N.visible){var y=N.getId();if(!this.aq[y]){var w=g.sA("DIV");N.tooltip&&w.setAttribute("data-tooltip",N.tooltip);this.aq[y]=N;this.Y_[y]=w;g.TY(w,N.style);IIs(this,y);this.api.X().T("disable_ad_markers_on_content_progress_bar")||this.J[0].j.appendChild(w)}}else VWE(this,N)}; g.J.fMl=function(e){e=g.c(e);for(var N=e.next();!N.done;N=e.next())VWE(this,N.value)}; g.J.v5=function(e){this.N&&(this.N.onExit(e!=null),rT(this))}; g.J.Z5=function(e){this.N&&(this.N.play(e!=null),rT(this))}; g.J.VZW=function(){tW9(this,this.api.Bf())}; g.J.fh=function(){tW9(this,!1);g.Mu.prototype.fh.call(this)};g.b($M,g.W);$M.prototype.isActive=function(){return!!this.C.getOption("remote","casting")}; $M.prototype.GZ=function(){var e=!1;this.C.getOptions().includes("remote")&&(e=this.C.getOption("remote","receivers").length>1);this.KX(e&&this.C.Fz().getPlayerSize().width>=400);this.C.logVisibility(this.element,this.Og);var N=1;e&&this.isActive()&&(N=2);if(this.J!==N){this.J=N;switch(N){case 1:this.updateValue("icon",{S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{S:"path",Az:!0,V:{d:"M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z", fill:"#fff"}}]});break;case 2:this.updateValue("icon",g.$73())}g.Y1(this.element,"ytp-remote-button-active",this.isActive())}}; $M.prototype.N=function(){if(this.C.getOption("remote","quickCast"))this.C.setOption("remote","quickCast",!0);else{var e=this.x_,N=this.element;if(e.e1())e.rT();else{e.initialize();a:{var y=g.c(e.z9.items);for(var w=y.next();!w.done;w=y.next())if(w=w.value,w.priority===1){y=w;break a}y=null}y&&(y.open(),e.WY(N));e.WY(N)}}this.C.logClick(this.element)};g.b(YM,g.W);YM.prototype.J=function(e){var N=this.C.X(),y=400;this.C.T("web_player_small_hbp_settings_menu")&&N.Z?y=300:N.U&&(y=200);e=this.N&&e.width>=y;this.KX(e);this.C.T("embeds_use_parent_visibility_in_ve_logging")?this.C.logVisibility(this.element,e&&this.L):this.C.logVisibility(this.element,e)}; YM.prototype.K=function(){if(this.x_.Og)this.x_.rT();else{var e=g.fZ(this.C.jR());e&&!e.loaded&&(e.uv("tracklist",{includeAsr:!0}).length||e.load());this.C.logClick(this.element);this.x_.WY(this.element)}}; YM.prototype.updateBadge=function(){var e=this.C.isHdr(),N=this.C.getPresentingPlayerType(),y=N!==2&&N!==3,w=g.XT(this.C),E=y&&!!g.Bb(this.C.jR());N=E&&w.displayMode===1;w=E&&w.displayMode===2;y=(E=N||w)||!y?null:this.C.getPlaybackQuality();g.Y1(this.element,"ytp-hdr-quality-badge",e);g.Y1(this.element,"ytp-hd-quality-badge",!e&&(y==="hd1080"||y==="hd1440"));g.Y1(this.element,"ytp-4k-quality-badge",!e&&y==="hd2160");g.Y1(this.element,"ytp-5k-quality-badge",!e&&y==="hd2880");g.Y1(this.element,"ytp-8k-quality-badge", !e&&y==="highres");g.Y1(this.element,"ytp-3d-badge-grey",!e&&E&&N);g.Y1(this.element,"ytp-3d-badge",!e&&E&&w)};g.b(MV,Oc);MV.prototype.isLoaded=function(){var e=g.jB(this.C.jR());return e!==void 0&&e.loaded}; MV.prototype.GZ=function(){g.jB(this.C.jR())!==void 0&&this.C.getPresentingPlayerType()!==3?this.J||(this.x_.Gi(this),this.J=!0):this.J&&(this.x_.MS(this),this.J=!1);Rq(this,this.isLoaded())}; MV.prototype.onSelect=function(e){this.isLoaded();e?this.C.loadModule("annotations_module"):this.C.unloadModule("annotations_module");this.C.publish("annotationvisibility",e)}; MV.prototype.fh=function(){this.J&&this.x_.MS(this);Oc.prototype.fh.call(this)};g.b(lb,g.Go);lb.prototype.GZ=function(){var e=this.C.getAvailableAudioTracks();e.length>1?(this.Pc(g.dn(e,this.J)),this.tracks=g.l7(e,this.J,this),this.countLabel.Ja(e.length?" ("+e.length+")":""),this.publish("size-change"),this.BI(this.J(this.C.getAudioTrack())),this.enable(!0)):this.enable(!1)}; lb.prototype.dQ=function(e){g.Go.prototype.dQ.call(this,e);this.C.setAudioTrack(this.tracks[e]);this.x_.z4()}; lb.prototype.J=function(e){return e.toString()};g.b(Fq,Oc); Fq.prototype.N=function(){var e=this.C.getPresentingPlayerType();if(e!==2&&e!==3&&g.dZ(this.C))this.J||(this.x_.Gi(this),this.J=!0,this.K.push(this.Y(this.C,"videodatachange",this.N)),this.K.push(this.Y(this.C,"videoplayerreset",this.N)),this.K.push(this.Y(this.C,"onPlaylistUpdate",this.N)),this.K.push(this.Y(this.C,"autonavchange",this.j)),e=this.C.getVideoData(),this.j(e.autonavState),this.C.logVisibility(this.element,this.J));else if(this.J){this.x_.MS(this);this.J=!1;e=g.c(this.K);for(var N=e.next();!N.done;N= e.next())this.CX(N.value)}}; Fq.prototype.j=function(e){Rq(this,e!==1)}; Fq.prototype.onSelect=function(e){this.C.gV(e?2:1);this.J&&(this.C.logVisibility(this.element,this.J),this.C.logClick(this.element))}; Fq.prototype.fh=function(){this.J&&this.x_.MS(this);Oc.prototype.fh.call(this)};g.b(qO3,g.uh);qO3.prototype.onClick=function(e){e.preventDefault();var N,y;(N=g.T9(this.C))==null||(y=N.X6())==null||y.rT();var w,E;(w=g.T9(this.C))==null||(E=w.iH())==null||E.WY(e.target)};g.b(ZFM,g.Go);g.J=ZFM.prototype; g.J.m2=function(){var e=this.C.getPresentingPlayerType();if(e!==2&&e!==3){this.qg=this.C.Sg();e=this.C.getAvailableQualityLevels();if(this.J){this.j={};var N=g.NU(this.C,"getAvailableQualityData",[]);N=g.c(N);for(var y=N.next();!y.done;y=N.next())y=y.value,this.j[y.qualityLabel]=y;N=Object.keys(this.j);e[e.length-1]==="auto"&&N.push("auto");this.l9=new Set(e)}else if(this.Z){y=g.NU(this.C,"getAvailableQualityData",[]);N=[];y=g.c(y);for(var w=y.next();!w.done;w=y.next())w=w.value,this.D[w.quality]= w,w.quality&&N.push(w.quality);e[e.length-1]==="auto"&&N.push("auto")}else N=e;g.Vw5(this.C)&&this.C.jJ()&&N.unshift("missing-qualities");fzP(this.C)&&N.unshift("inline-survey");this.Pc(N);e=this.C.getVideoData().cotn?!0:!1;y=this.Kh.E4();y=!g.na(this.C.X())||!(e===void 0?0:e)||!(y===void 0||y);e=this.N;y=y===void 0?!1:y;e.OC&&g.Y1(e.hW("ytp-panel-footer"),"ytp-panel-hide-footer",y===void 0?!1:y);if(N.length){this.VX();this.enable(!0);return}}this.enable(!1)}; g.J.VX=function(){if(this.J){var e=this.C.getPreferredQuality();this.l9.has(e)&&(this.G=this.C.getPlaybackQuality(),this.Ng=this.C.getPlaybackQualityLabel(),e==="auto"?(this.BI(e),this.Ja(this.CE(e))):this.BI(this.Ng))}else e=this.C.getPreferredQuality(),this.options[e]&&(this.G=this.C.getPlaybackQuality(),this.BI(e),e==="auto"&&this.Ja(this.CE(e)))}; g.J.dQ=function(e){if(e!=="missing-qualities"){g.Go.prototype.dQ.call(this,e);var N=this.J?this.j[e]:this.D[e];var y=N==null?void 0:N.quality,w=N==null?void 0:N.formatId,E=N==null?void 0:N.paygatedQualityDetails;N=E==null?void 0:E.endpoint;if(E){var A;E=(A=this.options[e])==null?void 0:A.element;this.C.logClick(E)}if(this.J){var T,p;if((T=g.m(N,g.dMq))==null?0:(p=T.popup)==null?0:p.notificationActionRenderer)this.C.Mg("innertubeCommand",N);else if(N){this.C.Mg("innertubeCommand",N);return}w?this.C.setPlaybackQuality(y, w):this.C.setPlaybackQuality(y)}else{if(this.Z){var C,r;if((C=g.m(N,g.dMq))==null?0:(r=C.popup)==null?0:r.notificationActionRenderer)this.C.Mg("innertubeCommand",N);else if(N){this.C.Mg("innertubeCommand",N);return}}this.C.setPlaybackQuality(e)}this.x_.rT();this.m2()}}; g.J.open=function(){for(var e=g.c(Object.values(this.options)),N=e.next();!N.done;N=e.next()){N=N.value;var y=void 0;this.C.hasVe((y=N)==null?void 0:y.element)&&(y=void 0,this.C.logVisibility((y=N)==null?void 0:y.element,!0))}g.Go.prototype.open.call(this);this.C.logClick(this.element)}; g.J.Wv=function(e,N,y){var w=this;if(e==="missing-qualities")return new g.uh({S:"a",dP:["ytp-menuitem"],V:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.C.X().D,tabindex:"0",role:"menuitemradio"},W:[{S:"div",dP:["ytp-menuitem-label"],b9:"{{label}}"}]},N,this.CE(e));if(e!=="inline-survey"){var E,A=(E=this.J?this.j[e]:this.D[e])==null?void 0:E.paygatedQualityDetails;E=A==null?void 0:A.veType;A=A==null?void 0:A.trackingParams;N=g.Go.prototype.Wv.call(this,e,N,y);A?(this.C.createServerVe(N.element, this,!0),this.C.setTrackingParams(N.element,A)):E&&this.C.createClientVe(N.element,this,E,!0);return N}e=[{S:"span",b9:"Que tal?"}];y=g.c([!0,!1]);A=y.next();for(E={};!A.done;E={IG:void 0},A=y.next())E.IG=A.value,A=new g.W({S:"span",B:"ytp-menuitem-inline-survey-response",W:[E.IG?kv5():Sm5()],V:{tabindex:"0",role:"button"}}),A.listen("click",function(T){return function(){var p=w.C.app.nh();p&&(p.Fh("iqsr",{tu:T.IG}),p.getVideoData().wA=!0);w.x_.rT();w.m2()}}(E)),e.push(A); return new g.uh({S:"div",B:"ytp-menuitem",V:{"aria-disabled":"true"},W:[{S:"div",dP:["ytp-menuitem-label"],W:e}]},N)}; g.J.CE=function(e,N){N=N===void 0?!1:N;if(e==="missing-qualities")return{S:"div",b9:"Faltam op\u00e7\u00f5es?"};if(e==="inline-survey")return"";var y=this.Z||this.J?[nWJ(this,e,N,!1)]:[jHn(this,e)];var w=this.C.getPreferredQuality();N||w!=="auto"||e!=="auto"||(y.push(" "),this.J?y.push(nWJ(this,this.Ng,N,!0,["ytp-menu-label-secondary"])):this.Z?y.push(nWJ(this,this.G,N,!0,["ytp-menu-label-secondary"])):y.push(jHn(this,this.G,["ytp-menu-label-secondary"])));return{S:"div",W:y}};g.b(S8,g.W);S8.prototype.init=function(){this.updateValue("minvalue",this.K);this.updateValue("maxvalue",this.j);this.updateValue("stepvalue",this.Z);this.updateValue("slidervalue",this.N);QHH(this,this.N)}; S8.prototype.G=function(){mnH(this,Number(this.J.value));this.J.focus()};g.b(o5,S8);o5.prototype.G=function(){S8.prototype.G.call(this);this.U&&HF5(this)}; o5.prototype.qg=function(){this.D()}; o5.prototype.Kh=function(){this.C.setPlaybackRate(this.N,!0)}; o5.prototype.Ng=function(e){if(!e.defaultPrevented){switch(e.code){case "ArrowDown":var N=-this.Z;break;case "ArrowUp":N=this.Z;break;default:return}mnH(this,Math.min(this.j,Math.max(Number((this.N+N).toFixed(2)),this.K)));this.D();HF5(this);e.preventDefault()}};g.b(bb,g.W);g.J=bb.prototype;g.J.init=function(){this.Vg(this.J);this.updateValue("minvalue",this.N);this.updateValue("maxvalue",this.K)}; g.J.dH=function(e){if(!e.defaultPrevented){switch(e.keyCode){case 37:case 40:var N=-this.U;break;case 39:case 38:N=this.U;break;default:return}this.Vg(this.J+N);e.preventDefault()}}; g.J.c$=function(e){var N=this.J;N+=(e.deltaX||-e.deltaY)<0?-this.D:this.D;this.Vg(N);e.preventDefault()}; g.J.S6=function(e){e=(e-g.hp(this.j).x)/this.Ng*this.range+this.N;this.Vg(e)}; g.J.Vg=function(e,N){N=N===void 0?"":N;e=g.Ja(e,this.N,this.K);N===""&&(N=e.toString());this.updateValue("valuenow",e);this.updateValue("valuetext",N);this.Kh.style.left=(e-this.N)/this.range*(this.Ng-this.i9)+"px";this.J=e}; g.J.focus=function(){this.Rq.focus()};g.b(hU,bb);hU.prototype.qg=function(){this.C.setPlaybackRate(this.J,!0)}; hU.prototype.Vg=function(e){bb.prototype.Vg.call(this,e,WgJ(this,e).toString());this.Z&&(KgE(this),this.l9())}; hU.prototype.updateValues=function(){var e=this.C.getPlaybackRate();WgJ(this,this.J)!==e&&(this.Vg(e),KgE(this))};g.b(OFP,g.Mu);OFP.prototype.focus=function(){this.J.focus()};g.b(RUn,ZN);g.b(GAF,g.Go);g.J=GAF.prototype;g.J.CE=function(e){return e==="1"?"Normal":e.toLocaleString()}; g.J.GZ=function(){var e,N=(e=this.C.getVideoData())==null?void 0:e.Au();e=this.C.getPresentingPlayerType(N);this.enable(e!==2&&e!==3);aI5(this)}; g.J.Pc=function(e){g.Go.prototype.Pc.call(this,e);this.G&&this.G.J.focus()}; g.J.TA=function(e){g.Go.prototype.TA.call(this,e);e?(this.Ng=this.Y(this.C,"onPlaybackRateChange",this.onPlaybackRateChange),aI5(this),Lg9(this,this.C.getPlaybackRate())):(this.CX(this.Ng),this.Ng=null)}; g.J.onPlaybackRateChange=function(e){var N=this.C.getPlaybackRate();!this.Z&&this.D.includes(N)||sHH(this,N);Lg9(this,e)}; g.J.Wv=function(e,N,y){return e===this.J&&e2E(this.C)?g.Go.prototype.Wv.call(this,e,N,y,{S:"div",B:"ytp-speed-slider-menu-footer",W:[this.G]}):g.Go.prototype.Wv.call(this,e,N,y)}; g.J.dQ=function(e){g.Go.prototype.dQ.call(this,e);e===this.J?this.C.setPlaybackRate(this.j,!0):this.C.setPlaybackRate(Number(e),!0);e2E(this.C)&&e===this.J||this.x_.z4()}; g.J.HR=function(e){var N=e===this.J;this.Z=!1;N&&cK(this.C)&&!e2E(this.C)?(e=new RUn(this.C),g.Q_(this.x_,e)):g.Go.prototype.HR.call(this,e)};g.b(yB0,g.Go);g.J=yB0.prototype;g.J.BI=function(e){g.Go.prototype.BI.call(this,e)}; g.J.MN=function(e){return e.option.toString()}; g.J.getOption=function(e){return this.settings[e]}; g.J.CE=function(e){return this.getOption(e).text||""}; g.J.dQ=function(e){g.Go.prototype.dQ.call(this,e);this.publish("settingChange",this.setting,this.settings[e].option)};g.b(kM,g.x7);kM.prototype.GI=function(e){for(var N=g.c(Object.keys(e)),y=N.next();!y.done;y=N.next()){var w=y.value;if(y=this.mO[w]){var E=e[w].toString();w=!!e[w+"Override"];y.options[E]&&(y.BI(E),y.j.element.setAttribute("aria-checked",String(!w)),y.J.element.setAttribute("aria-checked",String(w)))}}}; kM.prototype.FH=function(e,N){this.publish("settingChange",e,N)};g.b(BK,g.Go);BK.prototype.J=function(e){return e.languageCode}; BK.prototype.CE=function(e){return this.languages[e].languageName||""}; BK.prototype.dQ=function(e){this.publish("select",e);this.C.logClick(this.element);g.mP(this.x_)};g.b(ABs,g.Go);g.J=ABs.prototype;g.J.nJ=function(e){return g.v4(e)?"__off__":e.displayName}; g.J.CE=function(e){return e==="__off__"?"Desativado":e==="__translate__"?"Traduzir automaticamente":e==="__contribute__"?"Adicionar legendas/CC":e==="__correction__"?"Sugerir corre\u00e7\u00f5es na legenda":(e==="__off__"?{}:this.tracks[e]).displayName}; g.J.dQ=function(e){if(e==="__translate__")this.J.open();else if(e==="__contribute__"){this.C.pauseVideo();this.C.isFullscreen()&&this.C.toggleFullscreen();var N=g.Ix(this.C.X(),this.C.getVideoData());g.H2(N)}else if(e==="__correction__"){this.C.pauseVideo();this.C.isFullscreen()&&this.C.toggleFullscreen();var y=T7s(this);Xq(this,y);g.Go.prototype.dQ.call(this,this.nJ(y));var w,E;y=(N=this.C.getVideoData().getPlayerResponse())==null?void 0:(w=N.captions)==null?void 0:(E=w.playerCaptionsTracklistRenderer)== null?void 0:E.openTranscriptCommand;this.C.Mg("innertubeCommand",y);this.x_.z4();this.j&&this.C.logClick(this.j)}else{if(e==="__correction__"){this.C.pauseVideo();this.C.isFullscreen()&&this.C.toggleFullscreen();N=T7s(this);Xq(this,N);g.Go.prototype.dQ.call(this,this.nJ(N));var A,T;N=(y=this.C.getVideoData().getPlayerResponse())==null?void 0:(A=y.captions)==null?void 0:(T=A.playerCaptionsTracklistRenderer)==null?void 0:T.openTranscriptCommand;this.C.Mg("innertubeCommand",N)}else this.C.logClick(this.element), Xq(this,e==="__off__"?{}:this.tracks[e]),g.Go.prototype.dQ.call(this,e);this.x_.z4()}}; g.J.GZ=function(){var e=this.C.getOptions();e=e&&e.indexOf("captions")!==-1;var N=this.C.getVideoData(),y=N&&N.j$,w,E=!((w=this.C.getVideoData())==null||!g.QG(w));w={};if(e||y){var A;if(e){var T=this.C.getOption("captions","track");w=this.C.getOption("captions","tracklist",{includeAsr:!0});var p=E?[]:this.C.getOption("captions","translationLanguages");this.tracks=g.l7(w,this.nJ,this);E=g.dn(w,this.nJ);var C,r;T7s(this)&&((A=N.getPlayerResponse())==null?0:(C=A.captions)==null?0:(r=C.playerCaptionsTracklistRenderer)== null?0:r.openTranscriptCommand)&&E.push("__correction__");if(p.length&&!g.v4(T)){if((A=T.translationLanguage)&&A.languageName){var Y=A.languageName;A=p.findIndex(function(M){return M.languageName===Y}); AVs(p,A)}w90(this.J,p);E.push("__translate__")}A=this.nJ(T)}else this.tracks={},E=[],A="__off__";E.unshift("__off__");this.tracks.__off__={};y&&E.unshift("__contribute__");this.tracks[A]||(this.tracks[A]=T,E.push(A));this.Pc(E);this.BI(A);T&&T.translationLanguage?this.J.BI(this.J.J(T.translationLanguage)):Q31(this.J);e&&this.Z.GI(this.C.getSubtitlesUserSettings());this.countLabel.Ja(w&&w.length?" ("+w.length+")":"");this.publish("size-change");this.C.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.J.Rt=function(e){var N=this.C.getOption("captions","track");N=g.DA(N);N.translationLanguage=this.J.languages[e];Xq(this,N)}; g.J.FH=function(e,N){if(e==="reset")this.C.resetSubtitlesUserSettings();else{var y={};y[e]=N;this.C.updateSubtitlesUserSettings(y)}EZ0(this,!0);this.G.start();this.Z.GI(this.C.getSubtitlesUserSettings())}; g.J.YQB=function(e){e||g.we(this.G)}; g.J.fh=function(){g.we(this.G);g.Go.prototype.fh.call(this)}; g.J.open=function(){g.Go.prototype.open.call(this);this.options.__correction__&&!this.j&&(this.j=this.options.__correction__.element,this.C.createClientVe(this.j,this,167341),this.C.logVisibility(this.j,!0))};g.b(JBM,g.n$);g.J=JBM.prototype; g.J.initialize=function(){if(!this.isInitialized){var e=this.C.X();this.isInitialized=!0;try{this.rZ=new ZFM(this.C,this)}catch(y){g.uA(Error("QualityMenuItem creation failed"))}g.Q(this,this.rZ);var N=new ABs(this.C,this);g.Q(this,N);e.K||(N=new MV(this.C,this),g.Q(this,N));e.enableSpeedOptions&&(N=new GAF(this.C,this),g.Q(this,N));(g.hR(e)||e.Z)&&(e.N||e.Bk)&&(N=new qO3(this.C,this),g.Q(this,N));e.YO&&!e.T("web_player_move_autonav_toggle")&&(e=new Fq(this.C,this),g.Q(this,e));e=new lb(this.C,this); g.Q(this,e);this.C.publish("settingsMenuInitialized");upJ(this.settingsButton,this.z9.P2())}}; g.J.Gi=function(e){this.initialize();this.z9.Gi(e);upJ(this.settingsButton,this.z9.P2())}; g.J.MS=function(e){this.Og&&this.z9.P2()<=1&&this.hide();this.z9.MS(e);upJ(this.settingsButton,this.z9.P2())}; g.J.WY=function(e){this.initialize();this.z9.P2()>0&&g.n$.prototype.WY.call(this,e)}; g.J.rT=function(){this.Or?this.Or=!1:g.n$.prototype.rT.call(this)}; g.J.show=function(){g.n$.prototype.show.call(this);g.pi(this.C.getRootNode(),"ytp-settings-shown")}; g.J.hide=function(){g.n$.prototype.hide.call(this);g.re(this.C.getRootNode(),"ytp-settings-shown")}; g.J.iP=function(e){this.C.logVisibility(this.element,e);this.C.publish("settingsMenuVisibilityChanged",e)};g.b(CeM,g.W);g.J=CeM.prototype;g.J.onClick=function(){if(rB_(this)&&(this.C.toggleSubtitles(),this.C.logClick(this.element),!this.isEnabled())){var e=!1,N=g.HE(g.m6(),65);g.na(this.C.X())&&N!=null&&(e=!N);e&&this.C.X().T("web_player_nitrate_promo_tooltip")&&this.C.publish("showpromotooltip",this.element)}}; g.J.k9W=function(e){var N,y;(N=g.T9(this.C))==null||(y=N.X6())==null||y.WY(e)}; g.J.isEnabled=function(){return!!this.C.getOption("captions","track").displayName}; g.J.GZ=function(){var e=rB_(this),N=300;this.C.X().U&&(N=480);if(this.C.X().Z){this.updateValue("title",g.FT(this.C,"Legendas/legendas ocultas","c"));this.update({"data-title-no-tooltip":"Legendas/legendas ocultas"});var y=e}else{if(e)(y=this.hW("ytp-subtitles-button-icon"))==null||y.setAttribute("fill-opacity","1"),this.updateValue("title",g.FT(this.C,"Legendas/legendas ocultas","c")),this.update({"data-title-no-tooltip":"Legendas/legendas ocultas"});else{var w;(w=this.hW("ytp-subtitles-button-icon"))== null||w.setAttribute("fill-opacity","0.3");this.updateValue("title","N\u00e3o h\u00e1 legendas/closed captions dispon\u00edveis");this.update({"data-title-no-tooltip":"N\u00e3o h\u00e1 legendas/closed captions dispon\u00edveis"})}y=!0}this.tooltip.xp();y=y&&this.C.Fz().getPlayerSize().width>=N;this.KX(y);this.C.T("embeds_use_parent_visibility_in_ve_logging")?this.C.logVisibility(this.element,y&&this.L):this.C.logVisibility(this.element,y);e?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed", !1)}; g.J.nx=function(e){g.W.prototype.nx.call(this,e);this.C.X().T("embeds_use_parent_visibility_in_ve_logging")&&this.C.logVisibility(this.element,this.Og&&e)};g.b(g.PK,g.W);g.J=g.PK.prototype; g.J.HY=function(){var e=this.api.Fz().getPlayerSize().width,N=this.U;this.api.X().U&&(N=400);N=e>=N&&(!dT(this)||!g.G(this.api.getPlayerStateObject(),64));this.KX(N);g.Y1(this.element,"ytp-time-display-allow-autohide",N&&e<400);e=this.api.getProgressState();if(N){N=this.api.getPresentingPlayerType();var y=this.api.getCurrentTime(N,!1);this.N&&(y-=e.airingStart);I5(this)&&(y-=this.c9.startTimeMs/1E3);y=g.P2(y);this.K!==y&&(this.updateValue("currenttime",y),this.K=y);N=I5(this)?g.P2((this.c9.endTimeMs- this.c9.startTimeMs)/1E3):g.P2(this.api.getDuration(N,!1));this.j!==N&&(this.updateValue("duration",N),this.j=N)}$SP(this,e.isAtLiveHead);Y6J(this,this.api.getLoopRange())}; g.J.onLoopRangeChange=function(e){var N=this.c9!==e;this.c9=e;N&&(this.HY(),MsP(this))}; g.J.O$g=function(){this.api.setLoopRange(null)}; g.J.onVideoDataChange=function(e,N,y){this.updateVideoData((this.api.X().T("enable_topsoil_wta_for_halftime")||this.api.X().T("enable_topsoil_wta_for_halftime_live_infra"))&&y===2?this.api.getVideoData(1):N);this.HY();MsP(this)}; g.J.updateVideoData=function(e){this.AB=e.isLivePlayback&&!e.Kx;this.N=HF(e);this.isPremiere=e.isPremiere;g.Y1(this.element,"ytp-live",dT(this))}; g.J.onClick=function(e){e.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.J.fh=function(){this.J&&this.J();g.W.prototype.fh.call(this)};g.b(FNE,g.W);g.J=FNE.prototype;g.J.bz=function(){var e=this.api.Nr();this.K!==e&&(this.K=e,lB_(this,this.api.getVolume(),this.api.isMuted()))}; g.J.QX=function(e){this.KX(e.width>=350)}; g.J.ZX=function(e){if(!e.defaultPrevented){var N=e.keyCode,y=null;N===37?y=this.volume-5:N===39?y=this.volume+5:N===36?y=0:N===35&&(y=100);y!==null&&(y=g.Ja(y,0,100),y===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(y)),e.preventDefault())}}; g.J.Cs=function(e){var N=e.deltaX||-e.deltaY;e.deltaMode?this.api.setVolume(this.volume+(N<0?-10:10)):this.api.setVolume(this.volume+g.Ja(N/10,-10,10));e.preventDefault()}; g.J.gOq=function(){vK(this,this.J,!0,this.N,this.api.Dk());this.D=this.volume;this.api.isMuted()&&this.api.unMute()}; g.J.P$=function(e){var N=this.K?78:52,y=this.K?18:12;e-=g.hp(this.U).x;this.api.setVolume(g.Ja((e-y/2)/(N-y),0,1)*100)}; g.J.vO1=function(){vK(this,this.J,!1,this.N,this.api.Dk());this.volume===0&&(this.api.mute(),this.api.setVolume(this.D))}; g.J.onVolumeChange=function(e){lB_(this,e.volume,e.muted)}; g.J.aW=function(){vK(this,this.J,this.isDragging,this.N,this.api.Dk())}; g.J.fh=function(){g.W.prototype.fh.call(this);g.re(this.G,"ytp-volume-slider-active")};g.b(zT,g.W); zT.prototype.onVideoDataChange=function(){var e=this.api.X();this.I9();this.visible=!!this.api.getVideoData().videoId&&!g.KX(this.api.getVideoData(1));this.KX(this.visible);this.api.logVisibility(this.element,this.visible&&this.L);if(this.visible){var N=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",N)}e.K&&(this.J&&(this.CX(this.J),this.J=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.pi(this.element,"no-link")); N=this.api.X();e=this.api.getVideoData();var y="";N.K||(N=g.ud(N),N.indexOf("www.")===0&&(N=N.substring(4)),y=g.Os(e)?"Assistir no YouTube Music":N==="youtube.com"?"Assistir no YouTube":g.SO("Assista em $WEBSITE",{WEBSITE:N}));this.updateValue("title",y)}; zT.prototype.onClick=function(e){this.api.T("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var N=this.api.X(),y=this.api.getVideoUrl(!g.dh(e),!1,!0,!0);if(g.hR(N)){var w={};g.hR(N)&&g.NU(this.api,"addEmbedsConversionTrackingParams",[w]);y=g.Qb(y,w)}g.Uc(y,this.api,e);this.api.T("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; zT.prototype.I9=function(){var e={S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},W:[{S:"path",Az:!0,B:"ytp-svg-fill",V:{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 "}}]}, N=28666,y=this.api.getVideoData();this.api.isEmbedsShortsMode()?e={S:"svg",V:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},W:[{S:"path",V:{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.Os(y)&&(e={S:"svg",V:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},W:[{S:"path",V:{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"}},{S:"path",V:{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"}},{S:"path",V:{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"}},{S:"path",V:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{S:"path",V:{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"}},{S:"path",V:{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"}},{S:"path",V:{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"}},{S:"path",V:{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"}},{S:"path",V:{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"}},{S:"path",V:{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"}},{S:"path",V:{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"}},{S:"path",V:{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"}}]},N=216163);g.Os(y)?g.pi(this.element,"ytp-youtube-music-button"):g.re(this.element,"ytp-youtube-music-button");e.V=Object.assign({},e.V,{"aria-hidden":"true"});this.updateValue("logoSvg",e);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,N,!0)}; zT.prototype.nx=function(e){g.W.prototype.nx.call(this,e);this.api.logVisibility(this.element,this.visible&&e)};g.b(oZH,g.fd);g.J=oZH.prototype;g.J.FI=function(){if(this.C.T("web_player_max_seekable_on_ended")||!g.G(this.C.getPlayerStateObject(),2))this.progressBar.HY(),this.i9.HY()}; g.J.vg=function(){this.iN();this.tT.N?this.FI():this.progressBar.SY()}; g.J.rH=function(){this.FI();this.U.start()}; g.J.iN=function(){var e;if(e=!this.C.X().N){e=this.progressBar;var N=2*g.jV()*e.G;e=e.K.getLength()*1E3/e.api.getPlaybackRate()/N<300}e=e&&this.C.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;N=!e;this.tT.N||(e=N=!1);N?this.Kh||(this.Kh=this.Y(this.C,"progresssync",this.FI)):this.Kh&&(this.CX(this.Kh),this.Kh=null);e?this.U.isActive()||this.U.start():this.U.stop()}; g.J.I9=function(){var e=this.C.Nr(),N=this.C.Fz().getPlayerSize(),y=h2F(this),w=Math.max(N.width-y*2,100);if(this.Kx!==N.width||this.Dl!==e){this.Kx=N.width;this.Dl=e;var E=cB3(this);this.j.element.style.width=E+"px";this.j.element.style.left=y+"px";g.gWM(this.progressBar,y,E,e);this.C.Rf().IQ=E}y=this.K;w=Math.min(570*(e?1.5:1),w);e=Math.min(413*(e?1.5:1),Math.round((N.height-kLP(this))*.82));y.maxWidth=w;y.maxHeight=e;y.FR();this.iN();this.C.X().T("html5_player_dynamic_bottom_gradient")&&z7M(this.VB, N.height)}; g.J.onVideoDataChange=function(){var e=this.C.getVideoData();this.Et.style.background=e.hs?e.yy:"";this.Ng&&tT9(this.Ng,e.showSeekingControls);this.D&&tT9(this.D,e.showSeekingControls)}; g.J.ut=function(){return this.j.element};g.b(B7s,qJ);g.J=B7s.prototype;g.J.VW=function(e){e.target!==this.dismissButton.element&&(this.onClickCommand&&this.C.Mg("innertubeCommand",this.onClickCommand),this.UA())}; g.J.UA=function(){this.enabled=!1;this.D.hide()}; g.J.onVideoDataChange=function(e,N){e==="dataloaded"&&X9M(this);e=[];var y,w,E,A;if(N=(A=g.m((y=N.getWatchNextResponse())==null?void 0:(w=y.playerOverlays)==null?void 0:(E=w.playerOverlayRenderer)==null?void 0:E.suggestedActionsRenderer,NrF))==null?void 0:A.suggestedActions)for(y=g.c(N),w=y.next();!w.done;w=y.next())(w=g.m(w.value,yO_))&&g.m(w.trigger,ejk)&&e.push(w);if(e.length!==0){y=[];e=g.c(e);for(w=e.next();!w.done;w=e.next())if(w=w.value,E=g.m(w.trigger,ejk))A=(A=w.title)?g.SY(A):"View Chapters", N=E.timeRangeStartMillis,E=E.timeRangeEndMillis,N!=null&&E!=null&&w.tapCommand&&(y.push(new g.wF(N,E,{priority:9,namespace:"suggested_action_button_visible",id:A})),this.suggestedActions[A]=w.tapCommand);this.C.wx(y)}}; g.J.Iy=function(){return this.enabled}; g.J.iP=function(){this.enabled?this.Zl.start():tv(this);this.xK()}; g.J.fh=function(){X9M(this);qJ.prototype.fh.call(this)};var B9={},gT=(B9.CHANNEL_NAME="ytp-title-channel-name",B9.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",B9.LINK="ytp-title-link",B9.SESSIONLINK="yt-uix-sessionlink",B9.SUBTEXT="ytp-title-subtext",B9.TEXT="ytp-title-text",B9.TITLE="ytp-title",B9);g.b(Vq,g.W);Vq.prototype.onClick=function(e){this.api.logClick(this.element);var N=this.api.X(),y=this.api.getVideoUrl(!g.dh(e),!1,!0);g.hR(N)&&(N={},g.NU(this.api,"addEmbedsConversionTrackingParams",[N]),y=g.Qb(y,N));g.Uc(y,this.api,e)}; Vq.prototype.GZ=function(){var e=this.api.getVideoData(),N=this.api.X();this.updateValue("title",e.title);var y={S:"a",B:gT.CHANNEL_NAME,V:{href:"{{channelLink}}",target:"_blank"},b9:"{{channelName}}"};this.api.X().K&&(y={S:"span",B:gT.CHANNEL_NAME,b9:"{{channelName}}",V:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",y);Pe5(this);this.api.getPresentingPlayerType()===2&&(y=this.api.getVideoData(),y.videoId&&y.isListed&&y.author&&y.SR&&y.profilePicture?(this.updateValue("channelLink", y.SR),this.updateValue("channelName",y.author),this.updateValue("channelTitleFocusable","0")):Pe5(this));y=N.externalFullscreen||!this.api.isFullscreen()&&N.ul;g.Y1(this.link,gT.FULLERSCREEN_LINK,y);N.Kh||!e.videoId||y||g.KX(e)||N.K?this.J&&(this.updateValue("url",null),this.CX(this.J),this.J=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.J||(this.J=this.Y(this.link,"click",this.onClick)));N.K&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.hR(N)?e.expandedTitle: e.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.b(g.fU,g.W);g.J=g.fU.prototype;g.J.setEnabled=function(e){if(this.type!=null)if(e)switch(this.type){case 3:case 2:IB3(this);this.G.show();break;default:this.G.show()}else this.G.hide();this.U=e}; g.J.ze=function(e,N,y,w,E,A,T,p){if(!this.i9||this.env.U){this.type===3&&this.SY();this.type!==1&&(g.TY(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.U&&this.G.show(),this.N&&this.N.dispose(),(this.N=this.api.nO())&&this.N.subscribe("l",this.hJ,this));if(p){var C=g.Be(this.bg).height||141;this.Rq.style.bottom=C+2+"px"}this.update({text:y,title:A!=null?A:"",eduText:p!=null?p:""});g.Y1(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!A);this.api.isInline()&&g.pi(this.bottomText, "ytp-modern-tooltip-text");g.Y1(this.element,"ytp-text-detail",!!w);y=-1;this.N&&(y=If(this.N,243*this.scale),this.env.T("web_l3_storyboard")&&this.N.levels.length===4&&(y=this.N.levels.length-1),y=AeM(this.N,y,N));z25(this,y);if(T)switch(N=g.Be(this.element).width,T){case 1:this.title.style.right="0";this.title.style.textAlign="left";break;case 2:this.title.style.right=N+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=N/2+"px",this.title.style.textAlign="center"}vZ5(this, !!w,e,E)}}; g.J.Mj=function(){this.type===1&&this.SY()}; g.J.AE=function(e,N){if(this.type)if(this.type===3)this.SY();else return;dSM(this,e,3,N)}; g.J.xp=function(){this.J&&!this.D&&this.J.hasAttribute("title")&&(this.K=this.J.getAttribute("title")||"",this.J.removeAttribute("title"),this.U&&IB3(this))}; g.J.hJ=function(e,N){e<=this.j&&this.j<=N&&(e=this.j,this.j=NaN,z25(this,e))}; g.J.IlB=function(){wrF(this.N,this.j,243*this.scale)}; g.J.SY=function(){switch(this.type){case 2:var e=this.J;e.removeEventListener("mouseout",this.Ng);e.addEventListener("mouseover",this.Z);e.removeEventListener("blur",this.Ng);e.addEventListener("focus",this.Z);iSn(this);break;case 3:iSn(this);break;case 1:this.N&&(this.N.unsubscribe("l",this.hJ,this),this.N=null),this.api.removeEventListener("videoready",this.Kh),this.qg.stop()}this.type=null;this.U&&this.G.hide()}; g.J.Zk=function(){if(this.J)for(var e=0;e=0;N--)if(this.Yl[N]===e){this.Yl.splice(N,1);break}Qm(this.tT,64,this.Yl.length>0)}; g.J.B4=function(){this.api.CO()&&this.api.fz();return!!this.D8||ui0(this)||g.sN.prototype.B4.call(this)}; g.J.rj=N3(3);g.J.jy=N3(7);g.J.f2=N3(10); g.J.H7=function(){var e=!this.B4(),N=e&&this.api.CO()&&!g.G(this.api.getPlayerStateObject(),2)&&!g.KX(this.api.getVideoData())&&!this.api.X().K&&!this.api.isEmbedsShortsMode(),y=this.cF&&g.cb(this.api)&&g.G(this.api.getPlayerStateObject(),128);e||y?(this.rM.show(),this.L0.show()):(this.rM.hide(),this.L0.hide(),this.api.Zk(this.oV.element));N?this.rQ.WY():this.rQ.rT();this.NS&&bSF(this.NS,this.wZ||!e);this.api.T("web_player_hide_overflow_button_if_empty_menu")&&q6E(this);g.sN.prototype.H7.call(this)}; g.J.yg=function(e,N,y,w,E){e.style.left="";e.style.top="";e.style.bottom="";var A=g.Be(e),T=w||this.NS&&g.Ex(this.NS.ut(),N),p=w=null;y!=null&&T||(w=g.Be(N),p=g.ce(N,this.api.getRootNode()),y==null&&(y=p.x+w.width/2));y-=A.width/2;T?(N=this.NS,w=h2F(N),p=cB3(N),T=this.api.Fz().getPlayerSize().height,y=g.Ja(y,w,w+p-A.width),A=T-kLP(N)-A.height):g.Ex(this.oV.element,N)?(N=this.api.Fz().getPlayerSize().width,y=g.Ja(y,12,N-A.width-12),A=this.Nr()?this.Th:this.Lb,this.api.X().playerStyle==="gvn"&&(A+= 20),this.cF&&(A-=this.Nr()?26:18)):(N=this.api.Fz().getPlayerSize(),y=g.Ja(y,12,N.width-A.width-12),A=p.y>(N.height-w.height)/2?p.y-A.height-12:p.y+w.height+12);e.style.top=A+(E||0)+"px";e.style.left=y+"px"}; g.J.vg=function(e){e&&(this.api.Zk(this.oV.element),this.NS&&this.api.Zk(this.NS.ut()));this.GQ&&(g.Y1(this.contextMenu.element,"ytp-autohide",e),g.Y1(this.contextMenu.element,"ytp-autohide-active",!0));g.sN.prototype.vg.call(this,e)}; g.J.OG=function(){g.sN.prototype.OG.call(this);this.GQ&&(g.Y1(this.contextMenu.element,"ytp-autohide-active",!1),this.GQ&&(this.contextMenu.hide(),this.Lw&&this.Lw.hide()))}; g.J.eW=function(e,N){var y=this.api.Fz().getPlayerSize();y=new g.pK(0,0,y.width,y.height);if(e||this.tT.N&&!this.B4()){if(this.api.X().d2||N)e=this.Nr()?this.Th:this.Lb,y.top+=e,y.height-=e;this.NS&&(y.height-=kLP(this.NS))}return y}; g.J.bz=function(e){var N=this.api.getRootNode();e?N.parentElement?(N.setAttribute("aria-label","Player de v\u00eddeo do YouTube em tela cheia"),this.api.X().externalFullscreen||(N.parentElement.insertBefore(this.dG.element,N),N.parentElement.insertBefore(this.SS.element,N.nextSibling))):g.t0(Error("Player not in DOM.")):(N.setAttribute("aria-label","Player de v\u00eddeo do YouTube"),this.dG.detach(),this.SS.detach());this.I9();this.GV()}; g.J.Nr=function(){var e=this.api.X();return this.api.isFullscreen()&&!e.U||!1}; g.J.showControls=function(e){this.vX=!e;this.H7()}; g.J.I9=function(){var e=this.Nr();this.tooltip.scale=e?1.5:1;this.contextMenu&&g.Y1(this.contextMenu.element,"ytp-big-mode",e);this.H7();this.api.T("web_player_hide_overflow_button_if_empty_menu")||q6E(this);this.GV();var N=this.api.isEmbedsShortsMode();N&&e?(e=(this.api.Fz().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.$0(this.oV.element,"padding-left",e+"px"),g.$0(this.oV.element,"padding-right",e+"px")):N&&(g.$0(this.oV.element,"padding-left",""),g.$0(this.oV.element,"padding-right", ""));g.sN.prototype.I9.call(this)}; g.J.JG=function(){if(ui0(this)&&!g.cb(this.api))return!1;var e=this.api.getVideoData();return!g.hR(this.api.X())||this.api.getPresentingPlayerType()===2||!this.nw||((e=this.nw||e.nw)?(e=e.embedPreview)?(e=e.thumbnailPreviewRenderer,e=e.videoDetails&&g.m(e.videoDetails,m23)||null):e=null:e=null,e&&e.collapsedRenderer&&e.expandedRenderer)?g.sN.prototype.JG.call(this):!1}; g.J.GV=function(){g.sN.prototype.GV.call(this);this.api.logVisibility(this.title.element,!!this.bL);this.jm&&this.jm.nx(!!this.bL);this.channelAvatar.nx(!!this.bL);this.overflowButton&&this.overflowButton.nx(this.xx()&&!!this.bL);this.shareButton&&this.shareButton.nx(!this.xx()&&!!this.bL);this.v_&&this.v_.nx(!this.xx()&&!!this.bL);this.searchButton&&this.searchButton.nx(!this.xx()&&!!this.bL);this.copyLinkButton&&this.copyLinkButton.nx(!this.xx()&&!!this.bL);if(!this.bL){this.api.Zk(this.oV.element); for(var e=0;e5&&N.Fh("glrs",{cmt:y});N.seekTo(0,{seekSource:58});N.Fh("glrre",{cmt:y})}}; Zt.prototype.fh=function(){this.J=null;g.x.prototype.fh.call(this)};g.b(g.xM,R8);g.J=g.xM.prototype;g.J.isView=function(){return!0}; g.J.eb=function(){var e=this.mediaElement.getCurrentTime();if(e=4&&e!=="player-reload-after-handoff";this.status={status:Infinity,error:e};if(this.J&&this.N){var w=this.N.getVideoData().clientPlaybackNonce;this.J.Qi(new P3("dai.transitionfailure",Object.assign(N,{cpn:w,transitionTimeMs:this.iZ,msg:e})));this.J.BZ(y)}this.P7.reject(e);this.dispose()}}; g.J.au=function(){return this.status.status>=4&&this.status.status<6}; g.J.fh=function(){USH(this);this.J.unsubscribe("newelementrequired",this.u4,this);if(this.K){var e=this.K.N;this.K.J.KC.unsubscribe("updateend",this.Hv,this);e.KC.unsubscribe("updateend",this.Hv,this)}g.x.prototype.fh.call(this)}; g.J.Dt=function(e){g.FD(e,128)&&this.zS("player-error-event")};g.b(Qq,g.x);Qq.prototype.clearQueue=function(e,N){e=e===void 0?!1:e;N=N===void 0?!1:N;this.j&&this.j.reject("Queue cleared");this.app.X().T("html5_gapless_fallback_on_qoe_restart_v2")||N&&this.N&&this.N.BZ(!1);mY(this,e)}; Qq.prototype.xB=function(){return!this.J}; Qq.prototype.au=function(){var e;return((e=this.K)==null?void 0:e.au())||!1}; Qq.prototype.fh=function(){mY(this);g.x.prototype.fh.call(this)};g.b(wJE,g.pT);g.J=wJE.prototype;g.J.getVisibilityState=function(e,N,y,w,E,A,T,p){return e?4:yW5()?3:N?2:y?1:w?5:E?7:A?8:T?9:p?10:0}; g.J.q3=function(e){this.fullscreen!==e&&(this.fullscreen=e,this.iP())}; g.J.setMinimized=function(e){this.N!==e&&(this.N=e,this.iP())}; g.J.setInline=function(e){this.inline!==e&&(this.inline=e,this.iP())}; g.J.bX=function(e){this.pictureInPicture!==e&&(this.pictureInPicture=e,this.iP())}; g.J.setSqueezeback=function(e){this.K!==e&&(this.K=e,this.iP())}; g.J.Gb=function(e){this.j!==e&&(this.j=e,this.iP())}; g.J.ox=function(){return this.J}; g.J.Xi=function(){return this.fullscreen!==0}; g.J.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; g.J.EU=function(){return this.fullscreen}; g.J.isMinimized=function(){return this.N}; g.J.isInline=function(){return this.inline}; g.J.isBackground=function(){return yW5()}; g.J.Wp=function(){return this.pictureInPicture}; g.J.j3=function(){return!1}; g.J.ly=function(){return this.K}; g.J.gN=function(){return this.j}; g.J.iP=function(){this.publish("visibilitychange");var e=this.getVisibilityState(this.ox(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.Wp(),this.j3(),this.ly(),this.gN());e!==this.Z&&this.publish("visibilitystatechange");this.Z=e}; g.J.fh=function(){AWH(this.L);g.pT.prototype.fh.call(this)};g.b(Eo3,g.x);g.J=Eo3.prototype;g.J.NU=function(){return this.j}; g.J.tH=function(e){this.j=e}; g.J.nh=function(){return this.K}; g.J.w1=function(e){this.K=e}; g.J.Ug=function(e){return this.N[e]||null}; g.J.fh=function(){for(var e=g.c(Object.values(this.N)),N=e.next();!N.done;N=e.next())Ov(N.value);g.x.prototype.fh.call(this)};g.b(HK,g.x);g.J=HK.prototype;g.J.enqueue=function(e,N){if(e.j!==this)return!1;if(this.segments.length===0||(N===void 0?0:N))this.J=e;this.segments.push(e);return!0}; g.J.EY=function(){return this.GW||0}; g.J.U_=function(){return this.j||0}; g.J.removeAll=function(){for(;this.segments.length;){var e=void 0;(e=this.segments.pop())==null||e.dispose()}this.N.clear();this.K=void 0}; g.J.fh=function(){this.removeAll();g.x.prototype.fh.call(this)}; g.b(lEs,g.x);g.J=lEs.prototype;g.J.EY=function(){return this.GW}; g.J.U_=function(){return this.K}; g.J.getType=function(){return this.type}; g.J.getVideoData=function(){return this.videoData}; g.J.qa=function(e){rd(e);this.videoData=e}; g.J.fh=function(){FBM(this);g.x.prototype.fh.call(this)};g.R5.prototype.ow=function(e,N){if(N===1)return this.J.get(e);if(N===2)return this.K.get(e);if(N===3)return this.N.get(e)}; g.R5.prototype.r6=N3(50);g.R5.prototype.O7=function(e,N,y,w){y={Yh:w,Z8:y};N?this.K.set(e,y):this.J.set(e,y)}; g.R5.prototype.clearAll=function(){this.J.clear();this.K.clear();this.N.clear()}; g.b(g.GT,g.x);g.J=g.GT.prototype;g.J.QJ=function(e,N,y){return new g.wF(e,N,{id:y,namespace:"serverstitchedcuerange",priority:9})}; g.J.Lt=function(e){var N=e.oO?e.oO*1E3:e.GW,y=this.N.get(e.cpn);y&&this.playback.removeCueRange(y);this.N.delete(e.cpn);this.K.delete(e.cpn);y=this.L.indexOf(e);y>=0&&this.L.splice(y,1);y=[];for(var w=g.c(this.Z),E=w.next();!E.done;E=w.next())E=E.value,E.end<=N?this.playback.removeCueRange(E):y.push(E);this.Z=y;VhM(this,0,N+e.durationMs)}; g.J.onCueRangeEnter=function(e){this.Et.push(e);var N=e.getId();this.playback.Fh("sdai",{oncueEnter:1,cpn:N,start:e.start,end:e.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.eN()||0).toFixed(3)});var y=N==="";this.Ut.add(e.N);var w=this.K.get(N);if(y){var E;if(this.playback.getVideoData().Au()&&((E=this.J)==null?0:E.qd)&&this.j){this.Bp=0;this.J=void 0;this.Dl&&(this.events.CX(this.Dl),this.Dl=null);this.j="";this.Bk=!0;return}}else if(this.playback.Fh("sdai",{enterAdCueRange:1}), this.playback.getVideoData().Au()&&(w==null?0:w.Aw))return;if(this.Bk&&!this.J)this.Bk=!1,!y&&w&&(y=this.playback.getCurrentTime(),Ns(this,{y6:e,isAd:!0,W2:!0,Ix:y,adCpn:N},{isAd:!1,W2:!1,Ix:y}),this.hM=w.cpn,a5(this,w),e=sD(this,"midab",w),this.playback.Fh("sdai",e),this.Bp=1),this.D=!1;else if(this.J){if(this.J.W2)this.playback.Fh("sdai",{a_pair_of_same_transition_occurs_enter:1,acpn:this.J.adCpn,transitionTime:this.J.Ix,cpn:N,currentTime:this.playback.getCurrentTime()}),w=this.playback.getCurrentTime(), e={y6:e,isAd:!y,W2:!0,Ix:w,adCpn:N},N={y6:this.J.y6,isAd:this.J.isAd,W2:!1,Ix:w,adCpn:this.J.adCpn},this.J.y6&&this.Ut.delete(this.J.y6.N),Ns(this,e,N);else{if(this.J.y6===e){this.playback.Fh("sdai",{same_cue_range_pair_enter:1,acpn:this.J.adCpn,transitionTime:this.J.Ix,cpn:N,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:e.start,cueRangeEndTime:e.end});this.J=void 0;return}if(this.J.adCpn===N){N&&this.playback.Fh("sdai",{dchtsc:N});this.J=void 0;return}e={y6:e,isAd:!y,W2:!0,Ix:this.playback.getCurrentTime(), adCpn:N};Ns(this,e,this.J)}this.J=void 0;this.D=!1}else this.J={y6:e,isAd:!y,W2:!0,Ix:this.playback.getCurrentTime(),adCpn:N}}; g.J.onCueRangeExit=function(e){var N=e.getId();this.playback.Fh("sdai",{oncueExit:1,cpn:N,start:e.start,end:e.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.eN()||0).toFixed(3)});var y=N==="",w=this.K.get(N);if(this.playback.getVideoData().Au()&&!y&&w){if(w.Aw)return;w.Aw=!0;this.G.clear();if(this.ph.T("html5_lifa_no_rewatch_ad_sbc"))if(this.playback.Xq()){var E=w.GW;this.playback.EJ(E/1E3,(E+w.durationMs)/1E3)}else this.playback.Fh("lifa",{remove:0})}if(this.Ut.has(e.N))if(this.Ut.delete(e.N), this.Et=this.Et.filter(function(A){return A!==e}),this.Bk&&(this.D=this.Bk=!1,this.playback.Fh("sdai",{cref:1})),this.J){if(this.J.W2){if(this.J.y6===e){this.playback.Fh("sdai",{same_cue_range_pair_exit:1, acpn:this.J.adCpn,transitionTime:this.J.Ix,cpn:N,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:e.start,cueRangeEndTime:e.end});this.J=void 0;return}if(this.J.adCpn===N){N&&this.playback.Fh("sdai",{dchtsc:N});this.J=void 0;return}N={y6:e,isAd:!y,W2:!1,Ix:this.playback.getCurrentTime(),adCpn:N};Ns(this,this.J,N)}else if(this.playback.Fh("sdai",{a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.J.adCpn,transitionTime:this.J.Ix,upcomingCpn:N,contentCpn:this.playback.getVideoData().clientPlaybackNonce, currentTime:this.playback.getCurrentTime()}),this.J.adCpn===N)return;this.J=void 0;this.D=!1}else this.J={y6:e,isAd:!y,W2:!1,Ix:this.playback.getCurrentTime(),adCpn:N};else this.playback.Fh("sdai",{ignore_single_exit:1})}; g.J.Rp=function(){return{cpn:this.playback.getVideoData().clientPlaybackNonce,durationMs:0,GW:0,playerType:1,OQ:0,videoData:this.playback.getVideoData(),errorCount:0}}; g.J.Wo=function(){if(this.g2)return!1;var e=void 0;this.hM&&(e=this.K.get(this.hM));return this.playback.getVideoData().Au()?!!e&&!e.Aw:!!e}; g.J.seekTo=function(e,N,y,w){e=e===void 0?0:e;N=N===void 0?{}:N;y=y===void 0?!1:y;w=w===void 0?null:w;if(this.playback.getVideoData().Au()&&e<=this.l9/1E3)this.playback.pauseVideo(),this.l9=0,this.D=!0,this.playback.hT(),this.playback.seekTo(e),this.playback.playVideo();else if(this.D=!0,y)ooE(this,e,N);else{y=this.app.nh();var E=y===this.Wk?this.dT:null;wl(this,!1);this.Xz=e;this.Y_=N;w!=null&&this.SR.start(w);y&&(this.dT=E||y.getPlayerState(),y.z3(),this.Wk=y)}}; g.J.fh=function(){wl(this,!1);dF0(this);IE5(this);g.x.prototype.fh.call(this)}; g.J.aZ=function(e){this.jn=e;this.playback.Fh("sdai",{swebm:e})}; g.J.Xo=function(e,N,y){if(y&&N){var w=this.G.get(e);if(w){w.locations||(w.locations=new Map);var E=Number(N.split(";")[0]);y=new g.YE(y);this.i9&&this.playback.Fh("sdai",{hdlredir:1,itag:N,seg:e,hostport:lN(y)});w.locations.set(E,y)}}}; g.J.Ox=function(e,N,y,w,E,A){var T=w===3,p=zI3(this,e,N,w,y,A);if(!p){AP(this,N,T);var C=g.vo0(this,N)?"undec":"ncp";this.playback.Fh("sdai",{gvprp:C,mt:e,seg:N,tt:w,itag:y,ce:A});return null}T||this.G.set(N,p);A=p.TN;var r;w=((r=this.ow(N-1,w,E))==null?void 0:r.Yh)||"";w===""&&this.playback.Fh("sdai",{eds:1});r=DFE(this,p.ssdaiAdsConfig);E=this.playback.getVideoData();var Y;T=((Y=E.N)==null?void 0:Y.containerType)||0;Y=E.w$[T];p=p.SI&&N>=p.SI?p.SI:void 0;Y={EL:A?th5(this,A):[],v0:r,Yh:w,Bx:p,Z1:aA(Y.split(";")[0]), Lv:Y.split(";")[1]||""};p={Ag:Y};this.i9&&(e={gvprpro:"v",sq:N,mt:e.toFixed(3),itag:y,acpns:((C=Y.EL)==null?void 0:C.join("_"))||"none",abid:A},this.playback.Fh("sdai",e));return p}; g.J.cM=function(e){a:{if(!this.g2){var N=i0s(this,e);if(!(this.playback.getVideoData().Au()&&(N==null?0:N.Aw)))break a}N=void 0}var y=N;if(!y)return this.playback.Fh("sdai",{gvprp:"ncp",mt:e}),null;N=y.TN;var w=DFE(this,y.ssdaiAdsConfig);y=y.SI&&y.S2&&e>=y.S2?y.SI:void 0;var E=this.playback.getVideoData(),A,T=((A=E.N)==null?void 0:A.containerType)||0;A=E.w$[T];A={EL:N?th5(this,N):[],v0:w,Bx:y,Z1:aA(A.split(";")[0]),Lv:A.split(";")[1]||""};if(this.ph.T("html5_use_time_without_threshold_first")){var p; e={gvprpro:"v",mt:e.toFixed(3),acpns:((p=A.EL)==null?void 0:p.join("_"))||"none",abid:N};this.playback.Fh("sdai",e)}return A}; g.J.zz=function(e,N,y,w,E,A){var T=Number(y.split(";")[0]),p=w===3;e=zI3(this,e,N,w,y,A);this.i9&&this.playback.Fh("sdai",{gdu:1,seg:N,itag:T,pb:""+!!e});if(!e)return AP(this,N,p),null;e.locations||(e.locations=new Map);if(!e.locations.has(T)){var C,r;A=(C=e.videoData.getPlayerResponse())==null?void 0:(r=C.streamingData)==null?void 0:r.adaptiveFormats;if(!A)return this.playback.Fh("sdai",{gdu:"noadpfmts",seg:N,itag:T}),AP(this,N,p),null;C=A.find(function(l){return l.itag===T}); if(!C||!C.url){var Y=e.videoData.videoId;e=[];var M=g.c(A);for(w=M.next();!w.done;w=M.next())e.push(w.value.itag);this.playback.Fh("sdai",{gdu:"nofmt",seg:N,vid:Y,itag:T,fullitag:y,itags:e.join(",")});AP(this,N,p);return null}e.locations.set(T,new g.YE(C.url,!0))}A=e.locations.get(T);if(!A)return this.playback.Fh("sdai",{gdu:"nourl",seg:N,itag:T}),AP(this,N,p),null;A=new T4(A);this.jn&&(A.get("dvc")?this.playback.Fh("sdai",{dvc:A.get("dvc")||""}):A.set("dvc","webm"));(w=(M=this.ow(N-1,w,E))==null? void 0:M.Yh)&&A.set("daistate",w);e.SI&&N>=e.SI&&A.set("skipsq",""+e.SI);(M=this.playback.getVideoData().clientPlaybackNonce)&&A.set("cpn",M);M=[];e.TN&&(M=th5(this,e.TN),M.length>0&&A.set("acpns",M.join(",")));p||this.G.set(N,e);p=null;p=A.get("aids");w=A.nC();(w==null?void 0:w.length)>2048&&this.playback.Fh("sdai",{urltoolong:1,sq:N,itag:T,len:w.length});this.i9&&(w&&(A=e.cpn,E=e.TN,Z09(this,A,E),E&&!this.CC.has(E)&&(A=uW_(this,A,E),C=qXF(this,E),this.playback.Fh("sdai",{iofa:A}),this.playback.Fh("sdai", {noawnzd:C-A}),this.playback.Fh("sdai",{acpns:M.join("."),aids:(Y=p)==null?void 0:Y.replace(/,/g,".")}),this.CC.add(E))),this.playback.Fh("sdai",{gdu:"v",seg:N,itag:y,ast:e.GW.toFixed(3),alen:e.durationMs.toFixed(3),acpn:e.cpn,avid:e.videoData.videoId}));return w}; g.J.QM=function(e,N,y){var w=E4(this,e,y);return(w=w?(w.GW+w.durationMs)/1E3:0)&&N>w?(this.Af(e,y,!0),this.playback.seekTo(w),!0):!1}; g.J.Af=function(e,N,y){y=y===void 0?!1:y;var w=E4(this,e,N);if(w){var E=void 0,A=w.TN;if(A){this.playback.Fh("sdai",{skipadonsq:N,sts:y,abid:A,acpn:w.cpn,avid:w.videoData.videoId});y=this.Ng.get(A);if(!y)return;y=g.c(y);for(A=y.next();!A.done;A=y.next())A=A.value,A.SI=N,A.S2=e,A.GW>w.GW&&(E=A)}this.j=w.cpn;goH(this);e=this.playback.getCurrentTime();eo(this,w,E,e,e,!1,!0)}}; g.J.My=function(){for(var e=g.c(this.L),N=e.next();!N.done;N=e.next())N=N.value,N.SI=NaN,N.S2=NaN;goH(this);this.playback.Fh("sdai",{rsac:"resetSkipAd",sac:this.j});this.j=""}; g.J.ow=function(e,N,y){return this.aq.ow(e,N,y)}; g.J.r6=N3(49); g.J.O7=function(e,N,y,w,E,A,T,p,C){w.length>0&&this.playback.Fh("sdai",{onssinfo:1,sq:e,start:N.toFixed(3),cpns:w.join(","),ds:E.join(","),isVideo:T?1:0});C&&this.aq.O7(e,T,p,C);p=L3(this.playback.getVideoData())&&this.ph.T("html5_process_all_cuepoints");if(T||p){if(w.length&&E.length)for(this.j&&this.j===w[0]&&this.playback.Fh("sdai",{skipfail:1,sq:e,acpn:this.j}),e=N+this.U$(),T=0;T0&&(this.Bp=0,this.hM="",this.api.publish("serverstitchedvideochange"));this.playback.Oy(y,w);return!0}; g.J.f_=function(){this.playback.Fh("sdai",{rstdaist:1});this.aq.clearAll()}; g.J.Mp=function(e){var N;if(e!==((N=this.Kh)==null?void 0:N.identifier))this.playback.Fh("sdai",{ignorenoad:e});else{this.jp.add(e);var y;((y=this.Kh)==null?void 0:y.identifier)===e&&LU(this)}}; g.J.MH=function(){return this.Bp}; g.J.XH=function(){return this.hM}; g.J.Wi=function(e){if(this.playback.getVideoData().Au()&&(this.ph.T("html5_lifa_no_gab_on_predict_start")&&e.event==="predictStart"||this.ph.T("html5_lifa_no_gab_on_continue_or_stop")&&(e.event==="continue"||e.event==="stop")))return this.api.Fh("sdai",{cuepoint_skipped:e.event}),!1;var N=ql(this.api.jR());if(N=N?N.Wi(e):!1)this.U={KY:e.identifier,TO:e.startSecs};else if(this.U&&this.U.KY===e.identifier&&e.startSecs>this.U.TO+1){this.api.Fh("sdai",{cueStChg:e.identifier,oldSt:this.U.TO.toFixed(3), newSt:e.startSecs.toFixed(3),abid:this.U.Lo});if(this.U.Lo){var y=e.startSecs-this.U.TO,w=this.Ng.get(this.U.Lo);if(w){w=g.c(w);for(var E=w.next();!E.done;E=w.next())E=E.value,E.GW>=0&&(E.GW+=y*1E3,this.ph.T("html5_ssdai_update_timeline_on_start_time_change")&&(E.OQ+=y*1E3),this.playback.getVideoData().Au()&&this.playback.Fh("sdai",{newApEt:E.GW,newApPrt:E.OQ,acpn:E.cpn}))}}this.U.TO=e.startSecs}return N}; g.J.hI=function(e){return this.g2?!1:!!i0s(this,e)}; g.J.Eu=function(e){var N=this;this.playback.pauseVideo();var y=this.playback.getCurrentTime(),w=this.K.get(this.hM),E=this.N.get(this.hM);if(w){this.j=this.hM;this.D=!1;w.Aw=!0;var A=this.playback.getCurrentTime();this.J={y6:E,isAd:!0,W2:!1,Ix:A,adCpn:this.hM,qd:w,RIG:e};this.playback.getVideoData().Au()&&this.playback.T5(w,this.Rp(),A,this.playback.getCurrentTime(),!1,!0,e,(0,g.iC)());if(E==null?0:E.start)this.l9=A*1E3-E.start;this.G.clear();this.playback.hT();this.hM=this.Rp().cpn;this.api.publish("serverstitchedvideochange"); this.playback.seekTo(y,{seekSource:89,BY:"lifa_skip"});this.playback.playVideo();this.Dl||(this.Dl=this.events.Y(this.api,"progresssync",function(){N.Lt(w)})); return!0}this.playback.Fh("sdai",{skipFail:y});return!1}; var k29=0;g.b(xFE,g.GT);g.J=xFE.prototype;g.J.Lt=function(e){var N=this.N.get(e.cpn);N&&this.playback.removeCueRange(N);this.N.delete(e.cpn);this.K.delete(e.cpn);e=this.L.indexOf(e);e>=0&&this.L.splice(e,1)}; g.J.onCueRangeEnter=function(e){var N=e.getId();this.playback.Fh("sdai",{oncueEnter:1,cpn:N,start:e.start,end:e.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.eN()||0).toFixed(3)});N=this.K.get(N);this.playback.Fh("sdai",{enterAdCueRange:1});var y=this.hM||this.Rp().cpn,w;y=(w=this.K.get(y))!=null?w:this.Rp();N&&(e={y6:e,fR:y,pR:N,Fk:this.playback.getCurrentTime()},this.pP(e))}; g.J.onCueRangeExit=function(e){for(var N=this.playback.getCurrentTime()*1E3,y=e.getId(),w=g.c(this.N.values()),E=w.next();!E.done;E=w.next())if(E=E.value,E.getId()!==y&&N>=E.start&&N<=E.end)return;if(N=this.K.get(y))e={y6:e,fR:N,pR:this.Rp(),Fk:this.playback.getCurrentTime()},this.pP(e)}; g.J.pP=function(e){this.j||this.D||this.aM(this.hM);var N=e.fR,y=e.pR;if(y.cpn===this.hM)this.playback.Fh("sdai",{igtranssame:1,enter:y.cpn,exit:N.cpn});else{var w=this.D,E=!!this.j;this.j="";e=e.Fk;var A=N.playerType===2?N.GW/1E3+N.videoData.Bk:this.Rp().videoData.Bk;if(N.playerType===2&&y.playerType===2)E?this.playback.Fh("sdai",{igtransskip:1,enter:y.cpn,exit:N.cpn,seek:w,skip:this.j}):eo(this,N,y,A,e,w,E);else{this.hM=y.cpn;if(N.playerType===1&&y.playerType===2){this.l9=0;a5(this,y);var T=sD(this, "c2a",y);this.playback.Fh("sdai",T);this.Bp++}else if(N.playerType===2&&y.playerType===1){T=N.videoData.Bk;this.api.publish("serverstitchedvideochange");var p=sD(this,"a2c");this.playback.Fh("sdai",p);this.Bp=0;this.l9=T}this.playback.T5(N,y,A,e,w,E)}this.j="";this.D=!1}}; g.J.seekTo=function(e,N,y,w){e=e===void 0?0:e;N=N===void 0?{}:N;y=y===void 0?!1:y;w=w===void 0?null:w;this.aM(this.hM);g.GT.prototype.seekTo.call(this,e,N,y,w)}; g.J.Af=function(e,N,y){y=y===void 0?!1:y;var w=E4(this,e,N);if(w){var E=void 0,A=w.TN;if(A){this.playback.Fh("sdai",{skipadonsq:N,sts:y,abid:A,acpn:w.cpn,avid:w.videoData.videoId});y=this.Ng.get(A);if(!y)return;y=g.c(y);for(A=y.next();!A.done;A=y.next())A=A.value,A.SI=N,A.S2=e,A.GW>w.GW&&(E=A)}this.aM(this.hM);this.j=w.cpn;goH(this);e=this.playback.getCurrentTime();eo(this,w,E,e,e,!1,!0)}}; g.J.O7=function(e,N,y,w,E,A,T,p,C){w.length>0&&this.playback.Fh("sdai",{onssinfo:1,sq:e,start:N.toFixed(3),cpns:w.join(","),ds:E.join(","),isVideo:T?1:0});C&&this.aq.O7(e,T,p,C);y=L3(this.playback.getVideoData())&&this.ph.T("html5_process_all_cuepoints");if(T||y){if(w.length&&E.length)for(this.j&&this.j===w[0]&&this.playback.Fh("sdai",{skipfail:1,sq:e,acpn:this.j}),e=N+this.U$(),T=0;T0?w:0}else this.Rp().videoData.Bk=this.playback.getCurrentTime()};g.b(mF_,g.x);g.J=mF_.prototype; g.J.Nh=function(e,N){N=N===void 0?"":N;if(this.timeline.K===N)return!0;var y=this.timeline.J,w=y==null?void 0:y.getVideoData();if(!y||!w)return this.api.Fh("ssap",{htsm:y?0:1}),!1;if(this.api.T("html5_ssap_clear_timeline_before_update")){var E=this.timeline,A;(A=E.J)==null||FBM(A);E.N.clear()}E=KU(y);var T=!1;A=[];var p=new Map;y=[];var C=[],r=0,Y=0,M=0,l=[];e=g.c(e);for(var F=e.next();!F.done;F=e.next())a:{var S=void 0,k=void 0,X=F.value,d=X.clipId;if(d){if(X.zn){M=X.zn.aj||0;F=X.zn.SO||1;var v= Number(((X.zn.jA||0)/(X.zn.bD||1)*1E3).toFixed(0));M=F=v+Number((M/F*1E3).toFixed(0))}else F=v=M,this.hE.has(d)||this.sH.add(d);var V=(k=p.get(d))!=null?k:0,Z=this.timeline.K;k=!1;if(Z&&this.api.T("html5_ssap_clear_timeline_before_update")){if(Z=this.Tx.get(d))Z.start=v,Z.end=F,k=!0}else{if(Z){var n=d;Z=v;var R=F,O=V,E9=Nt(this.timeline,n);if(E9!=null&&E9.length){O=p){this.Q5.set(e,y);O0n(this,e,N);this.oh.set(e,(0,g.iC)());if(y=this.Tx.get(N))for(y=y.getId().split(","),y=g.c(y),T=y.next();!T.done;T=y.next())T=T.value,T!==N&&this.sH.has(T)&&(this.sH.delete(T),this.hE.add(T));this.aM();N=A.EY()/1E3;A=void 0;y=(A=g.Y2(this.api.X().experiments,"html5_ssap_skip_seeking_offset_ms"))!=null?A:0;this.api.T("html5_ssap_keep_media_on_finish_segment")?this.playback.seekTo(N+ y/1E3,{CI:!0}):this.playback.seekTo(N+y/1E3);this.ED?(this.api.Fh("ssap",{gpfreload:this.hM}),QTH(this)||(this.ED=!1),this.playback.hT(!1,!1,this.api.T("html5_ssap_keep_media_on_finish_segment"))):w&&this.playback.hT(!1,!1,this.api.T("html5_ssap_keep_media_on_finish_segment"));E&&this.api.playVideo(1,this.api.T("html5_ssap_keep_media_on_finish_segment"));return[e]}}}return[]}; g.J.K1=function(){var e=this.timeline.J;if(!e)return 0;var N=e.U_();e=g.c(e.J.values());for(var y=e.next();!y.done;y=e.next()){y=g.c(y.value);for(var w=y.next();!w.done;w=y.next())w=w.value,w.U_()>N&&(N=w.U_())}return N/1E3}; g.J.Ti=function(){var e=this.playback.getCurrentTime()*1E3;var N=LBM(this,e);if(!N){var y=Nt(this.timeline,this.hM);if(y){y=g.c(y);for(var w=y.next();!w.done;w=y.next())w=w.value,w.EY()>e&&(N=w)}}return N&&N.getType()===1?N.EY()/1E3:0}; g.J.getVideoData=function(e){if(e===2&&!this.Wo()){if(this.vz&&this.Ws.has(this.vz))return this.Ws.get(this.vz);this.api.Fh("ssap",{lpanf:""+dA(this)});return null}return ep5(this)}; g.J.Wo=function(){var e=Nt(this.timeline,this.hM);return(e==null?0:e.length)?e[0].getType()===2:!1}; g.J.ws=function(){var e=Nt(this.timeline,this.hM);return(e==null?0:e.length)?e[0].N:!1}; g.J.seekTo=function(e,N){N=N===void 0?{}:N;var y=sTs(this,this.playback.getCurrentTime());this.playback.seekTo(e+y/1E3,N)}; g.J.QJ=function(e,N,y){return new g.wF(e,N,{id:y,namespace:"ssap",priority:9})}; g.J.onCueRangeEnter=function(e){if(!this.zH.has(e.getId())){this.api.Fh("ssap",{oce:1,cpn:e.getId(),st:e.start,et:e.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.eN()||0).toFixed(3)});for(var N=e.getId().split(","),y=0;yy+1)for(w=y+1;w0?N:0}; g.J.qYP=function(e){var N=this.Ws.get(this.hM);N&&this.playback.YJ(e-N.YO/1E3,N.lengthSeconds,this.hM)}; g.J.fh=function(){this.api.X().B9()&&this.api.Fh("ssap",{di:""+this.hM,dic:""+this.playback.getVideoData().clientPlaybackNonce});this.Ws.clear();this.sH.clear();this.zH.clear();this.Q5.clear();this.oh.clear();this.hE.clear();this.iQ=[];no_(this);this.s7="";g.g9(this.events);g.x.prototype.fh.call(this)};g.b(EOH,g.x);g.J=EOH.prototype;g.J.onCueRangeEnter=function(e){if(this.J===this.app.nh()){var N=this.L.get(e);N?rb3(this,N.target,N.iZ,e):this.Qi("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:e.toString()})}else if(N=this.N.find(function(E){return E.Qq.y6===e})){var y=N.Qq,w=y.target; y=y.iZ;w?rb3(this,w,y,e):C5_(this,N.OQ,y,e)}}; g.J.onQueuedVideoLoaded=function(){var e=this.G;rl(this);if(e){if(!C7(this,e)){var N=this.app.nh();this.Qi("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:N==null?void 0:N.getVideoData().clientPlaybackNonce,ccpn:""+e.playerVars.cpn})}this.app.nh().addCueRange(e.Qq.y6)}}; g.J.seekTo=function(e,N,y,w){e=e===void 0?0:e;N=N===void 0?{}:N;w=w===void 0?null:w;if(y===void 0?0:y)wZP(this,e,N);else{y=this.app.nh()||null;var E=y===this.j?this.Z:null;$9(this,!1);this.Ng=e;this.D=N;w!=null&&this.U.start(w);y&&(this.Z=E||y.getPlayerState(),y.z3(),this.j=y)}}; g.J.rz=function(e){g.FD(e,128)&&Fn5(this)}; g.J.isManifestless=function(){return wd(this.J.getVideoData())}; g.J.fh=function(){$9(this,!1);oOE(this);g.x.prototype.fh.call(this)}; g.J.Qi=function(e,N){this.J.Qi(new P3(e,N))}; var AbF=0;var bIM="MWEB TVHTML5 TVHTML5_AUDIO TVHTML5_CAST TVHTML5_KIDS TVHTML5_FOR_KIDS TVHTML5_SIMPLY TVHTML5_SIMPLY_EMBEDDED_PLAYER TVHTML5_UNPLUGGED TVHTML5_VR TV_UNPLUGGED_CAST WEB WEB_CREATOR WEB_EMBEDDED_PLAYER WEB_EXPERIMENTS WEB_GAMING WEB_HEROES WEB_KIDS WEB_LIVE_STREAMING WEB_MUSIC WEB_MUSIC_ANALYTICS WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.b(lK,g.x);g.J=lK.prototype;g.J.get=function(e){Y9(this);var N=this.data.find(function(y){return y.key===e}); return N?N.value:null}; g.J.set=function(e,N,y){this.remove(e,!0);Y9(this);e={key:e,value:N,expire:Infinity};y&&isFinite(y)&&(y*=1E3,e.expire=(0,g.iC)()+y);for(this.data.push(e);this.data.length>this.K;)(y=this.data.shift())&&FO(this,y,!0);Ms(this)}; g.J.remove=function(e,N){N=N===void 0?!1:N;var y=this.data.find(function(w){return w.key===e}); y&&(FO(this,y,N),g.sk(this.data,function(w){return w.key===e}),Ms(this))}; g.J.removeAll=function(e){if(e=e===void 0?!1:e)for(var N=g.c(this.data),y=N.next();!y.done;y=N.next())FO(this,y.value,e);this.data=[];Ms(this)}; g.J.fh=function(){var e=this;g.x.prototype.fh.call(this);this.data.forEach(function(N){FO(e,N,!0)}); this.data=[]};g.b(So,g.x);So.prototype.g0=function(e){if(e)return this.N.get(e)}; So.prototype.fh=function(){this.J.removeAll();this.N.removeAll();g.x.prototype.fh.call(this)};g.Omw=rR(function(){var e=window.AudioContext||window.webkitAudioContext;try{return new e}catch(N){return N.name}});g.b(P5E,g.W);g.J=P5E.prototype;g.J.o7=function(){g.Ci(this.element,g.iE.apply(0,arguments))}; g.J.s_=function(){this.fX&&(this.fX.removeEventListener("focus",this.Pq),g.ws(this.fX),this.fX=null)}; g.J.tI=function(){this.Ss();var e=this.app.X();e.Ps||this.o7("tag-pool-enabled");e.Z&&this.o7(g.t$.HOUSE_BRAND);e.playerStyle==="gvn"&&(this.o7("ytp-gvn"),this.element.style.backgroundColor="transparent");e.PY&&(this.WX=g.Jl("yt-dom-content-change",this.resize,this));this.Y(window,"orientationchange",this.resize,this);this.Y(window,"resize",this.resize,this)}; g.J.f0=function(e){g.Pg(this.app.X());this.d8=!e;oj(this)}; g.J.resize=function(){if(this.fX){var e=this.aV();if(!e.isEmpty()){var N=!g.Fw(e,this.wj.getSize()),y=iIM(this);N&&(this.wj.width=e.width,this.wj.height=e.height);e=this.app.X();(y||N||e.PY)&&this.app.Lh.publish("resize",this.getPlayerSize())}}}; g.J.vc=function(e,N){this.updateVideoData(N)}; g.J.updateVideoData=function(e){if(this.fX){var N=this.app.X();Gv&&(this.fX.setAttribute("x-webkit-airplay","allow"),e.title?this.fX.setAttribute("title",e.title):this.fX.removeAttribute("title"));this.fX.setAttribute("controlslist","nodownload");N.Yb&&e.videoId&&(this.fX.poster=e.LN("default.jpg"))}N=g.lk(e,"yt:bgcolor");this.k$.style.backgroundColor=N?N:"";this.gg=CO(g.lk(e,"yt:stretch"));this.VD=CO(g.lk(e,"yt:crop"),!0);g.Y1(this.element,"ytp-dni",e.hs);this.resize()}; g.J.setGlobalCrop=function(e){this.ZC=CO(e,!0);this.resize()}; g.J.setCenterCrop=function(e){this.xG=e;this.resize()}; g.J.q3=function(){}; g.J.getPlayerSize=function(){var e=this.app.X(),N=this.app.Lh.isFullscreen(),y=e.externalFullscreen&&g.hR(e);if(N&&WL()&&!y)return new g.l8(window.outerWidth,window.outerHeight);y=!isNaN(this.cQ.width)&&!isNaN(this.cQ.height);var w=this.app.X().T("kevlar_player_enable_squeezeback_fullscreen_sizing");if(N&&!y&&w)return new g.l8(this.element.clientWidth,this.element.clientHeight);if(N||e.Em){if(window.matchMedia){e="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.Ea&&this.Ea.media=== e||(this.Ea=window.matchMedia(e));var E=this.Ea&&this.Ea.matches}if(E)return new g.l8(window.innerWidth,window.innerHeight)}else if(y)return this.cQ.clone();return new g.l8(this.element.clientWidth,this.element.clientHeight)}; g.J.aV=function(){var e=this.app.X().T("enable_desktop_player_underlay"),N=this.getPlayerSize(),y=g.Y2(this.app.X().experiments,"player_underlay_min_player_width");return e&&this.dZ&&N.width>y?(e=g.Y2(this.app.X().experiments,"player_underlay_video_width_fraction"),new g.l8(Math.min(N.height*this.getVideoAspectRatio(),N.width*e),Math.min(N.height,N.width*e/this.getVideoAspectRatio()))):N}; g.J.getVideoAspectRatio=function(){return isNaN(this.gg)?IaJ(this):this.gg}; g.J.getVideoContentRect=function(e){var N=this.aV();e=vOJ(this,N,this.getVideoAspectRatio(),e);return new g.pK((N.width-e.width)/2,(N.height-e.height)/2,e.width,e.height)}; g.J.c7=function(e){this.dZ=e;this.resize()}; g.J.OW=function(){return this.Rs}; g.J.onMutedAutoplayChange=function(){oj(this)}; g.J.setInternalSize=function(e){g.Fw(this.cQ,e)||(this.cQ=e,this.resize())}; g.J.fh=function(){this.WX&&g.pE(this.WX);this.s_();g.W.prototype.fh.call(this)};g.J=DB3.prototype;g.J.click=function(e,N){this.elements.has(e);this.J.has(e);var y=g.It();y&&e.visualElement&&g.AZ(y,e.visualElement,N)}; g.J.createClientVe=function(e,N,y,w){var E=this;w=w===void 0?!1:w;this.elements.has(e);this.elements.add(e);y=hP0(y);e.visualElement=y;var A=g.It(),T=g.dI();A&&T&&(g.Xj("combine_ve_grafts")?bm(Sq(),y,T):g.NR(g.Rt)(void 0,A,T,y));N.addOnDisposeCallback(function(){E.elements.has(e)&&E.destroyVe(e)}); w&&this.N.add(e)}; g.J.createServerVe=function(e,N,y){var w=this;y=y===void 0?!1:y;this.elements.has(e);this.elements.add(e);N.addOnDisposeCallback(function(){w.destroyVe(e)}); y&&this.N.add(e)}; g.J.destroyVe=function(e){this.elements.has(e);this.elements.delete(e);this.K.delete(e);this.J.delete(e);this.N.delete(e)}; g.J.oW=function(e,N){this.clientPlaybackNonce!==N&&(this.clientPlaybackNonce=N,ox(Sq(),e),gOP(this))}; g.J.setTrackingParams=function(e,N){this.elements.has(e);N&&(e.visualElement=g.XV(N))}; g.J.KX=function(e,N,y){this.elements.has(e);N?this.J.add(e):this.J.delete(e);var w=g.It(),E=e.visualElement;this.N.has(e)?w&&E&&(N?g.w1(w,[E]):g.EZ(w,[E])):N&&!this.K.has(e)&&(w&&E&&g.yv(w,E,void 0,y),this.K.add(e))}; g.J.hasVe=function(e){return this.elements.has(e)};g.b(g.hP,g.x);g.hP.create=function(e,N,y,w){try{var E=typeof e==="string"?e:"player"+g.RP(e),A=Xi[E];if(A){try{A.dispose()}catch(p){g.t0(p)}Xi[E]=null}var T=new g.hP(e,N,y,w);T.addOnDisposeCallback(function(){Xi[E]=null;T.ww&&T.ww()}); return Xi[E]=T}catch(p){throw g.t0(p),(p&&p instanceof Error?p:Error(String(p))).stack;}}; g.J=g.hP.prototype;g.J.UP=function(){return this.visibility}; g.J.tH=function(e){var N=this.NU();if(e!==N){e.getVideoData().autonavState=N.getVideoData().autonavState;N.qB(this.bK,this);var y=N.getPlaybackRate();Ov(N);this.UX.tH(e);e.setPlaybackRate(y);e.H_(this.bK,this);xBH(this)}}; g.J.WI=function(){this.kY||(this.kY=g.AC(z9(),A60()));return this.kY}; g.J.s_=function(e){if(this.mediaElement){this.KJ&&(this.events.CX(this.KJ),this.KJ=null);g.g9(this.EA);var N=this.nh();N&&N.s_(!0,!1,e);this.template.s_();try{this.T("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.Wu()}catch(y){g.uA(y)}this.mediaElement=null}}; g.J.w1=function(e,N){if(e!==this.nh()){this.logger.debug(function(){return"start set presenting player, type "+e.getPlayerType()+", vid "+e.getVideoData().videoId}); var y=null,w=this.nh();w&&(y=w.getPlayerState(),this.logger.debug("set presenting player, destroy modules"),uJ(this.HG,3),n7(this,"cuerangesremoved",w.XW()),this.OH&&!e.isGapless()&&w.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo(),w=e.fO()&&w.fO(),this.R9.d6("iv_s"),GlM(this,w));e.getPlayerType()===1&&this.tH(e);RpM(this,e);this.UX.w1(e);this.mediaElement&&e.setMediaElement(this.mediaElement);e.H_(this.hF,this);e.uy()?XYH(this,"setPresenting",!1):(this.vc("newdata",e,e.getVideoData()), y&&!g.A_(y,e.getPlayerState())&&this.Uw(new g.ME(e.getPlayerState(),y)),N=N&&this.T("html5_player_preload_ad_fix")&&e.getPlayerType()===1,e.Bz()&&!N&&this.vc("dataloaded",e,e.getVideoData()),(N=(N=e.getVideoData().N)&&N.video)&&this.Lh.Y9("onPlaybackQualityChange",N.quality),n7(this,"cuerangesadded",e.XW()),N=e.getPlayerState(),g.G(N,2)?OI0(this):g.G(N,8)?e.playVideo():e.C_()&&e.pauseVideo(),N=this.NU(),e.getPlayerType()===2&&(e.getVideoData().hK=N.getVideoData().clientPlaybackNonce),e.getPlayerType()!== 2||this.As()||(y=e.getVideoData(),N.QH(y.clientPlaybackNonce,y.FZ||"",y.breakType||0,y.Fo,y.videoId||"")),this.logger.debug("finish set presenting player"))}}; g.J.G5=function(){if(this.NU()!==this.nh()){var e=this.nh();this.logger.debug(function(){return"release presenting player, type "+(e==null?void 0:e.getPlayerType())+", vid "+(e==null?void 0:e.getVideoData().videoId)}); this.w1(this.NU())}}; g.J.Ug=function(e){if(e)if(e===1)e=this.NU();else if(this.getVideoData().enableServerStitchedDai&&e===2)e=this.getVideoData().enablePreroll?this.UX.Ug(2)||this.nh():this.nh();else if(g.xK(this.getVideoData())&&e===2){if(e=this.T("html5_ssap_return_content_player_during_preroll"))if(e=this.k_)e=this.k_,e=e.hM===""?!0:e.Wo();e=e?this.nh():this.UX.Ug(2)||this.nh()}else e=this.UX.Ug(e)||null;else e=this.nh();return e}; g.J.NU=function(){return this.UX.NU()}; g.J.nh=function(){return this.UX.nh()}; g.J.IT=N3(44);g.J.Woh=function(){dl(this)||(this.logger.debug("application playback ready"),this.yY(5))}; g.J.IBg=function(e){if(!dl(this)){this.logger.debug("playback ready");hJM(this);var N=e.getPlayerState();e.C_()?this.pauseVideo():N.isOrWillBePlaying()&&this.playVideo()}}; g.J.canPlayType=function(e){return zS(e)}; g.J.X=function(){return this.ph}; g.J.getVideoData=function(){return this.nh().getVideoData()}; g.J.Qr=N3(18);g.J.M7=function(){return this.NU().getVideoData()}; g.J.getVideoLoadedFraction=function(e){e=this.Ug(e);return e?g.QG(e.getVideoData())?1:(e=e.LC())?e.sz():0:0}; g.J.Fz=function(){return this.template}; g.J.jR=function(){return this.HG}; g.J.s4=function(){return this.R9}; g.J.Tb=function(e){var N=this.Ug(1);N&&N.U7(e)}; g.J.Am=function(){var e=this.HG.Am();this.Lh.publish("videoStatsPingCreated",e);return e}; g.J.getVolume=function(){return Math.round(this.Lh.getVolume())}; g.J.isMuted=function(){return this.Lh.isMuted()}; g.J.yG=function(){if(this.NU()===this.nh()&&this.c9)return this.c9.postId}; g.J.DPl=function(){var e=this;this.T("use_rta_for_player")||(g.I_(this.ph)?g.GX(this.ph,g.qK(this.getVideoData())).then(function(N){ih(z9(),N);oF5(e.getVideoData(),e.ph,e.WI())}):oF5(this.getVideoData(),this.ph,this.WI()))}; g.J.pJ=function(e){this.Lh.publish("poTokenVideoBindingChange",e)}; g.J.BK=function(e){this.Lh.publish("d6de4videobindingchange",e)}; g.J.xt=function(){this.wv&&this.wv.xt()}; g.J.lG=function(e){this.wv=e}; g.J.rO=function(e){if(e===1){this.R9.tick("vr");var N=this.nh();N.IR();tzM(this.R9,N.getVideoData(),bzM(this));kTs(this.HG)}N=this.ph;(Wg(N)&&N.G||g.IK(N))&&(this.As()||this.Lh.Y9("onAdStateChange",e))}; g.J.setLoopVideo=function(e){var N=this.nh();N===this.NU()&&N.ZS()!==e&&(N.setLoop(e),this.Lh.Mg("onLoopChange",e))}; g.J.getLoopVideo=function(){return this.nh().ZS()}; g.J.setLoopRange=function(e){var N=!1;!!this.c9!==!!e?N=!0:this.c9&&e&&(N=this.c9.startTimeMs!==e.startTimeMs||this.c9.endTimeMs!==e.endTimeMs||this.c9.postId!==e.postId||this.c9.type!==e.type);if(N){(N=this.nh())&&Rf(N.getVideoData())&&N.Fh("slr",{et:(e==null?void 0:e.endTimeMs)||-1});N=this.NU();N.MK("applooprange");if(e){var y=new g.wF(e.startTimeMs,e.endTimeMs,{id:"looprange",namespace:"applooprange"});N.addCueRange(y)}else{this.M7().clipConfig=void 0;var w;((y=this.c9)==null?void 0:y.type)!== "repeatChapter"||isNaN(Number((w=this.c9)==null?void 0:w.loopCount))||(y={loopCount:String(this.c9.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.$$("repeatChapterLoopEvent",y))}this.c9=e;this.Lh.Mg("onLoopRangeChange",e||void 0);this.NU()===this.nh()&&(this.JH(),N.JW.W_())}}; g.J.getLoopRange=function(){return this.c9}; g.J.JH=function(){var e="",N=this.NU();this.c9?N!==this.nh()?e="pnea":wY5(this,N.getCurrentTime())&&(this.c9.loopCount=0,e="ilr"):e="nlr";var y=this.nh();if(y&&Rf(y.getVideoData()))if(this.T("html5_gapless_log_loop_range_info")){var w,E;y.Fh("slrre",{rej:e,ct:N.getCurrentTime(),lst:(w=this.c9)==null?void 0:w.startTimeMs,let:(E=this.c9)==null?void 0:E.endTimeMs})}else y.Fh("slrre",{});e||J80(this)}; g.J.setPlaybackRate=function(e,N){if(!isNaN(e)){e=mBs(this,e);var y=this.NU();y.getPlaybackRate()!==e&&(y.setPlaybackRate(e),N&&!this.ph.j&&g.uY("yt-player-playback-rate",e),this.Lh.Y9("onPlaybackRateChange",e))}}; g.J.getCurrentTime=function(e,N,y){N=N===void 0?!0:N;if(this.getPresentingPlayerType()===3)return hu(this.HG).getCurrentTime();var w=e===2&&this.getVideoData().enableServerStitchedDai,E=g.xK(this.getVideoData());e=w||E?this.nh():this.Ug(e);if(!e)return 0;if(E&&this.k_)return N=this.k_,e=e.getCurrentTime(),y?y=TI(N,y):(y=sTs(N,e),y=e-y/1E3),y;if(N){if(w&&this.Q6&&(y=this.Q6.l9/1E3,y!==0))return y;y=PR(this,e);return f7(this,y.getCurrentTime(),y)}w&&this.Q6?(y=this.Q6,e=e.getCurrentTime(),y=(y=XJn(y, e*1E3))?e-y.start/1E3:e):y=e.getCurrentTime();return y}; g.J.K9=function(){var e=this.Ug();if(!e)return 0;e=PR(this,e);return f7(this,e.K9(),e)}; g.J.getDuration=function(e,N){N=N===void 0?!0:N;var y=this.getVideoData(),w=e===2&&y.enableServerStitchedDai,E=g.xK(y);var A=w||E?this.nh():this.Ug(e);if(!A)return 0;if(y.hasProgressBarBoundaries()&&!w&&!E){var T,p=Number((T=y.progressBarStartPosition)==null?void 0:T.utcTimeMillis),C;y=Number((C=y.progressBarEndPosition)==null?void 0:C.utcTimeMillis);if(!isNaN(p)&&!isNaN(y))return(y-p)/1E3}if(E&&this.k_)return N=aE9(this.k_,this.k_.XH()),e===1&&N===0?A.getDuration():N;if(N)return A=XO(this,A),f7(this, A.getDuration(),A);w&&this.Q6?(e=this.Q6,A=A.getCurrentTime(),A=(A=PTE(e,A*1E3))?A.durationMs/1E3:0):A=A.getDuration();return A}; g.J.OY=function(e){var N=this.Ug(e);return N?this.As(N)?(N=XO(this,N),N.OY()-N.getCurrentTime()+this.getCurrentTime(e)):N.OY():0}; g.J.O1=function(){return this.qx}; g.J.addPlayerResponseForAssociation=function(e){this.k_&&this.k_.addPlayerResponseForAssociation(e)}; g.J.finishSegmentByCpn=function(e,N,y){return this.k_?this.k_.finishSegmentByCpn(e,N,y):[]}; g.J.tI=function(){this.template.tI();var e=this.Lh;e.state.element=this.template.element;var N=e.state.element,y;for(y in e.state.J)e.state.J.hasOwnProperty(y)&&(N[y]=e.state.J[y]);(e=ubn(this.template.element))&&this.events.Y(this.template,e,this.onFullscreenChange);this.events.Y(window,"resize",this.cah)}; g.J.getDebugText=function(e){var N=this.NU().N7(e),y=this.nh(),w=this.NU();if(y&&y!==w){y=y.N7(e);w=g.c(Object.keys(y));for(var E=w.next();!E.done;E=w.next())E=E.value,N["ad"+E]=y[E];if(e){y=N;w={};if(E=jU(document,"movie_player"))w.bounds=E.getBoundingClientRect(),w["class"]=E.className;E={};var A=g.H4("video-ads");A?(IQ1(A,E),E.html=A.outerHTML):E.missing=1;A={};var T=g.H4("videoAdUiSkipContainer"),p=g.H4("ytp-ad-skip-button-container"),C=g.H4("ytp-skip-ad-button"),r=T||p||C;r?(IQ1(r,A),A.ima=T? 1:0,A.bulleit=p?1:0,A.component=C?1:0):A.missing=1;w=JSON.stringify({player:w,videoAds:E,skipButton:A});y.ad_skipBtnDbgInfo=w}}e&&this.mediaElement&&(N["0sz"]=""+(+SU(this.mediaElement.getSize())===0),N.op=this.mediaElement.Vr("opacity"),y=this.mediaElement.wD().y+this.mediaElement.getSize().height,N.yof=""+(+y<=0),N.dis=this.mediaElement.Vr("display"));e&&((e=(0,g.D3)())&&(N.gpu=e),(e=this.ph.playerStyle)&&(N.ps=e),this.ph.Bk&&(N.webview=1));N.debug_playbackQuality=this.Lh.getPlaybackQuality(1); N.debug_date=(new Date).toString();N.origin=window.origin;N.timestamp=Date.now();delete N.uga;delete N.q;return JSON.stringify(N,null,2)}; g.J.getFeedbackProductData=function(){var e={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.X().experiments.experimentIds.join(", "),player_release:"youtube.player.web_20250209_00_RC00"},N=this.getPlayerStateObject().qS;N&&(e.player_error_code=N.errorCode,e.player_error_details=JSON.stringify(N.errorDetail));return e}; g.J.getPresentingPlayerType=function(e){if(this.appState===1)return 1;if(dl(this))return 3;var N;if(e&&((N=this.Q6)==null?0:N.Wo(this.getCurrentTime())))return 2;var y;return g.xK(this.getVideoData())&&((y=this.k_)==null?0:y.Wo())?2:this.nh().getPlayerType()}; g.J.ws=function(){return g.xK(this.getVideoData())&&this.k_?this.k_.ws():!1}; g.J.getPlayerStateObject=function(e){return this.getPresentingPlayerType()===3?hu(this.HG).k9:this.Ug(e).getPlayerState()}; g.J.getAppState=function(){return this.appState}; g.J.KP=function(e){switch(e.type){case "loadedmetadata":this.Qx.start();e=g.c(this.Sm);for(var N=e.next();!N.done;N=e.next())N=N.value,SwH(this,N.id,N.pI1,N.sxP,void 0,!1);this.Sm=[];break;case "loadstart":this.R9.d6("gv");break;case "progress":case "timeupdate":JX(e.target.O4())>=2&&this.R9.d6("l2s");break;case "playing":g.Hg&&this.Qx.start();if(g.I_(this.ph))e=!1;else{var y=this.nh();N=g.Bb(this.jR());e=this.mediaElement.Vr("display")==="none"||SU(this.mediaElement.getSize())===0;var w=bK(this.template), E=y.getVideoData();y=g.ZY(this.ph);E=Gr(E);N=!w||N||y||E||this.ph.a9;e=e&&!N}e&&(e=this.nh(),e.Gp(),this.getVideoData().jn||(this.getVideoData().jn=1,this.x4(),e.playVideo()))}}; g.J.onLoadProgress=function(e,N){this.Lh.pC("onLoadProgress",N)}; g.J.Q2W=function(){this.Lh.publish("playbackstalledatstart")}; g.J.QQ=function(e,N){this.Lh.publish("sabrCaptionsDataLoaded",e,N)}; g.J.Ta9=function(e){var N;(N=this.nh())==null||N.fH(e)}; g.J.Lsh=function(e){var N;(N=this.nh())==null||N.tE(e)}; g.J.onVideoProgress=function(e,N){e=PR(this,e.xi);N=f7(this,e.getCurrentTime(),e);this.Lh.Y9("onVideoProgress",N)}; g.J.onAutoplayBlocked=function(){this.Lh.Y9("onAutoplayBlocked");var e,N=(e=this.nh())==null?void 0:e.getVideoData();N&&(N.TH=!0);this.T("embeds_enable_autoplay_and_visibility_signals")&&g.hR(this.ph)&&(e={autoplayBrowserPolicy:um(),autoplayIntended:qc(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.$$("embedsAutoplayStatusChanged",e))}; g.J.f_9=function(){this.Lh.publish("progresssync")}; g.J.QJt=function(){this.Lh.pC("onPlaybackPauseAtStart")}; g.J.v_l=function(e){if(this.getPresentingPlayerType()===1){g.FD(e,1)&&!g.G(e.state,64)&&this.M7().isLivePlayback&&this.NU().isAtLiveHead()&&this.Lh.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.FD(e,2)){if(this.c9&&this.c9.endTimeMs>=(this.getDuration()-1)*1E3){J80(this);return}OI0(this)}if(g.G(e.state,128)){var N=e.state;this.cancelPlayback(5);N=N.qS;JSON.stringify({errorData:N,debugInfo:this.getDebugText(!0)});this.Lh.Y9("onError",is5(N.errorCode));this.Lh.pC("onDetailedError",{errorCode:N.errorCode, errorDetail:N.errorDetail,message:N.errorMessage,messageKey:N.Se,cpn:N.cpn});(0,g.iC)()-this.ph.Fr>6048E5&&this.Lh.pC("onReloadRequired")}N={};if(e.state.isPlaying()&&!e.state.isBuffering()&&!mo("pbresume","ad_to_video")&&mo("_start","ad_to_video")){var y=this.getVideoData();N.clientPlaybackNonce=y.clientPlaybackNonce;y.videoId&&(N.videoId=y.videoId);g.nV(N,"ad_to_video");jZ("pbresume",void 0,"ad_to_video");kTs(this.HG)}this.Lh.publish("applicationplayerstatechange",e)}}; g.J.Uw=function(e){this.getPresentingPlayerType()!==3&&this.Lh.publish("presentingplayerstatechange",e)}; g.J.rz=function(e){BR(this,J_(e.state));g.G(e.state,1024)&&this.Lh.isMutedByMutedAutoplay()&&(gl(this,{muted:!1,volume:this.Fe.volume},!1),Vi(this,!1))}; g.J.qQ=function(e,N,y){e==="newdata"&&xBH(this);this.Lh.publish("applicationvideodatachange",e,y)}; g.J.e3=function(e,N){this.Lh.pC("onPlaybackAudioChange",this.Lh.getAudioTrack().Vl.name);this.Lh.publish("internalaudioformatchange",this.Lh.getAudioTrack().Vl.id,N)}; g.J.sW=function(e){var N=this.nh().getVideoData();e===N&&this.Lh.Y9("onPlaybackQualityChange",e.N.video.quality)}; g.J.MB=function(){var e=this.UX.Ug(2);if(e){var N=e.getVideoData();e=e.n3();var y;(y=this.nh())==null||y.Fh("ssdai",{cleanaply:1,acpn:N==null?void 0:N.clientPlaybackNonce,avid:N.videoId,ccpn:e,sccpn:this.M7().clientPlaybackNonce===e?1:0,isDai:this.M7().enableServerStitchedDai?1:0});delete this.UX.N[2]}}; g.J.onVideoDataChange=function(e,N,y){this.vc(e,N.xi,y)}; g.J.vc=function(e,N,y){this.logger.debug(function(){return"on video data change "+e+", player type "+N.getPlayerType()+", vid "+y.videoId}); this.ph.B9()&&N.Fh("vdc",{type:e,vid:y.videoId||"",cpn:y.clientPlaybackNonce||""});N===this.NU()&&(this.ph.MX=y.oauthToken);if(N===this.NU()){this.getVideoData().enableServerStitchedDai&&!this.Q6?(this.T("html5_check_decorator_on_cuepoint")&&this.NU().Fh("sdai",{initSstm:1}),this.Q6=this.T("html5_enable_ssdai_transition_with_only_enter_cuerange")?new xFE(this.Lh,this.ph,this.NU(),this):new g.GT(this.Lh,this.ph,this.NU(),this)):!this.getVideoData().enableServerStitchedDai&&this.Q6&&(this.Q6.dispose(), this.Q6=null);var w,E;!g.xK(this.getVideoData())||e!=="newdata"&&e!=="dataloaded"||this.getVideoData().clientPlaybackNonce===((w=this.qx.J)==null?void 0:(E=w.getVideoData())==null?void 0:E.clientPlaybackNonce)?!g.xK(this.getVideoData())&&this.k_&&(this.k_.dispose(),this.k_=null):(YX5(this.qx),this.T("html5_ssap_cleanup_ad_player_on_new_data")&&this.MB(),w=OD(this.qx,1,0,this.getDuration(1)*1E3,this.getVideoData()),this.qx.enqueue(w,!0),WK(this.qx,0,this.getDuration(1)*1E3,[w]),MhP(this.qx,this.getVideoData().clientPlaybackNonce, [w]),this.k_&&(this.k_.dispose(),this.k_=null),this.k_=new mF_(this.Lh,this.qx,this.NU()),this.UX.NU().Mf(this.k_))}if(e==="newdata")this.logger.debug("new video data, destroy modules"),uJ(this.HG,2),this.Lh.publish("videoplayerreset",N);else{if(!this.mediaElement)return;e==="dataloaded"&&(this.NU()===this.nh()?(gw(y.Ot,y.CA),aaE(this)):Ln3(this));N.getPlayerType()===1&&(this.ph.Et&&dzn(this),this.getVideoData().isLivePlayback&&!this.ph.m4&&this.zS("html5.unsupportedlive",2,"DEVICE_FALLBACK"),y.isLoaded()&& ((ntJ(y)||this.getVideoData().NE)&&this.Lh.publish("legacyadtrackingpingchange",this.getVideoData()),y.hasProgressBarBoundaries()&&CL3(this)));this.Lh.publish("videodatachange",e,y,N.getPlayerType())}this.Lh.Y9("onVideoDataChange",{type:e,playertype:N.getPlayerType()});this.JH();(w=y.VM)?this.zr.oW(w,y.clientPlaybackNonce):gOP(this.zr)}; g.J.Gh=function(){vR(this,null);this.Lh.pC("onPlaylistUpdate")}; g.J.tpZ=function(e){delete this.LP[e.getId()];this.NU().removeCueRange(e);a:{e=this.getVideoData();var N,y,w,E,A,T,p,C,r,Y,M=((N=e.Zl)==null?void 0:(y=N.contents)==null?void 0:(w=y.singleColumnWatchNextResults)==null?void 0:(E=w.autoplay)==null?void 0:(A=E.autoplay)==null?void 0:A.sets)||((T=e.Zl)==null?void 0:(p=T.contents)==null?void 0:(C=p.twoColumnWatchNextResults)==null?void 0:(r=C.autoplay)==null?void 0:(Y=r.autoplay)==null?void 0:Y.sets);if(M)for(N=g.c(M),y=N.next();!y.done;y=N.next())if(y= y.value,E=w=void 0,y=y.autoplayVideo||((w=y.autoplayVideoRenderer)==null?void 0:(E=w.autoplayEndpointRenderer)==null?void 0:E.endpoint),w=g.m(y,g.m0),A=E=void 0,y!=null&&((E=w)==null?void 0:E.videoId)===e.videoId&&((A=w)==null?0:A.continuePlayback)){e=y;break a}e=null}(N=g.m(e,g.m0))&&this.Lh.Mg("onPlayVideo",{sessionData:{autonav:"1",itct:e==null?void 0:e.clickTrackingParams},videoId:N.videoId,watchEndpoint:N})}; g.J.yY=function(e){var N=this;e!==this.appState&&(this.logger.debug(function(){return"app state change "+N.appState+" -> "+e}),e===2&&this.getPresentingPlayerType()===1&&(BR(this,-1),BR(this,5)),this.appState=e,this.Lh.publish("appstatechange",e))}; g.J.zS=function(e,N,y,w,E){this.NU().MP(e,N,y,w,E)}; g.J.qo=function(e,N){this.NU().handleError(new P3(e,N))}; g.J.isAtLiveHead=function(e,N){N=N===void 0?!1:N;var y=this.Ug(e);if(!y)return!1;e=XO(this,y);y=PR(this,y);return e!==y?e.isAtLiveHead(f7(this,y.getCurrentTime(),y),!0):e.isAtLiveHead(void 0,N)}; g.J.k7=function(){var e=this.Ug();return e?XO(this,e).k7():0}; g.J.seekTo=function(e,N,y,w,E){N=N!==!1;if(w=this.Ug(w))this.appState===2&&iK(this),this.As(w)?tP(this)?this.Q6.seekTo(e,{seekSource:E},N,y):this.Yk.seekTo(e,{seekSource:E},N,y):g.xK(this.getVideoData())&&this.k_?this.k_.seekTo(e,{E6:!N,bN:y,BY:"application",seekSource:E}):w.seekTo(e,{E6:!N,bN:y,BY:"application",seekSource:E})}; g.J.seekBy=function(e,N,y,w){this.seekTo(this.getCurrentTime()+e,N,y,w)}; g.J.IE=function(){this.Lh.Y9("SEEK_COMPLETE")}; g.J.jT=function(){this.Lh.Mg("onAbnormalityDetected")}; g.J.onSnackbarMessage=function(e){this.Lh.Mg("onSnackbarMessage",e)}; g.J.Bag=function(e,N){e=e.xi;var y=e.getVideoData();if(this.appState===1||this.appState===2)y.startSeconds=N;this.appState===2?g.G(e.getPlayerState(),512)||iK(this):this.Lh.Y9("SEEK_TO",N)}; g.J.onAirPlayActiveChange=function(){this.Lh.publish("airplayactivechange");this.ph.T("html5_external_airplay_events")&&this.Lh.pC("onAirPlayActiveChange",this.Lh.ox())}; g.J.onAirPlayAvailabilityChange=function(){this.Lh.publish("airplayavailabilitychange");this.ph.T("html5_external_airplay_events")&&this.Lh.pC("onAirPlayAvailabilityChange",this.Lh.qL())}; g.J.showAirplayPicker=function(){var e;(e=this.nh())==null||e.aS()}; g.J.AS=function(){this.Lh.publish("beginseeking")}; g.J.zK=function(){this.Lh.publish("endseeking")}; g.J.getStoryboardFormat=function(e){return(e=this.Ug(e))?XO(this,e).getVideoData().getStoryboardFormat():null}; g.J.nO=function(e){return(e=this.Ug(e))?XO(this,e).getVideoData().nO():null}; g.J.As=function(e){e=e||this.nh();var N=!1;if(e){e=e.getVideoData();if(tP(this))e=e===this.Q6.playback.getVideoData();else a:if(N=this.Yk,e===N.J.getVideoData()&&N.N.length)e=!0;else{N=g.c(N.N);for(var y=N.next();!y.done;y=N.next())if(e.FS===y.value.FS){e=!0;break a}e=!1}N=e}return N}; g.J.r$=function(e,N,y,w,E,A,T){this.logger.debug(function(){return"Adding video to timeline id="+e.video_id+"\n lengthMs="+w+" enterTimeMs="+E}); var p="",C=tP(this),r;(r=this.nh())==null||r.Fh("appattl",{sstm:this.Q6?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:C});p=C?BfJ(this.Q6,e,N,y,w,E,A,T):pZ9(this.Yk,e,y,w,E,A);this.logger.debug(function(){return"Video added to timeline id="+e.video_id+" timelinePlaybackId="+p}); return p}; g.J.tB=function(e,N,y,w,E,A,T){if(tP(this)){var p=BfJ(this.Q6,e,N,y,w,E,A,T);this.logger.debug(function(){return"Remaining video added to timeline id="+e.video_id+" timelinePlaybackId="+p})}return""}; g.J.Mp=function(e){var N;(N=this.Q6)==null||N.Mp(e)}; g.J.Qn=function(e,N){e=e===void 0?-1:e;N=N===void 0?Infinity:N;tP(this)||oOE(this.Yk,e,N)}; g.J.mX=function(e,N,y){if(tP(this)){var w=this.Q6,E=w.pX.get(e);E?(y===void 0&&(y=E.OQ),E.durationMs=N,E.OQ=y):w.iR("Invalid_timelinePlaybackId_"+e+"_specified")}else{w=this.Yk;E=null;for(var A=g.c(w.N),T=A.next();!T.done;T=A.next())if(T=T.value,T.FS===e){E=T;break}E?(y===void 0&&(y=E.OQ),ST_(w,E,N,y)):JP(w,"InvalidTimelinePlaybackId timelinePlaybackId="+e)}}; g.J.enqueueVideoByPlayerVars=function(e,N,y,w){y=y===void 0?Infinity:y;w=w===void 0?"":w;this.As();e=new g.t3(this.ph,e);w&&(e.FS=w);r8M(this,e,N,y)}; g.J.queueNextVideo=function(e,N,y,w,E){y=y===void 0?NaN:y;y=this.preloadVideoByPlayerVars(e,N===void 0?1:N,y,w===void 0?"":w,E===void 0?"":E);e=this.nh();y&&e&&(N=y.xi,this.T("html5_check_queue_on_data_loaded")?this.X().supportsGaplessShorts()&&e.getVideoData().U&&(y=this.QL,w=this.OH.G,y.j!==N&&(y.N=e,y.j=N,y.K=1,y.J=N.getVideoData(),y.L=w,y.J.isLoaded()?y.Z():y.J.subscribe("dataloaded",y.Z,y))):(N=QSE(e,N,this.OH.G),N!=null?(e.Fh("sgap",N),e.getVideoData().U&&e.BZ(!1)):(e=y.getVideoData(),N=this.QL, N.J!==e&&(N.J=e,N.K=1,e.isLoaded()?N.G():N.J.subscribe("dataloaded",N.G,N)))))}; g.J.r0=function(e,N,y,w){var E=this;y=y===void 0?0:y;w=w===void 0?0:w;var A=this.nh();A&&XO(this,A).Ou();eIM(this.OH,e,N,y,w).then(function(){E.Lh.pC("onQueuedVideoLoaded")},function(){})}; g.J.xB=function(){return this.OH.xB()}; g.J.uS=function(e){return this.OH.J===e.xi}; g.J.clearQueue=function(e,N){e=e===void 0?!1:e;N=N===void 0?!1:N;this.logger.debug("Clearing queue");this.OH.clearQueue(e,N)}; g.J.loadVideoByPlayerVars=function(e,N,y,w,E,A){N=N===void 0?1:N;var T=this.NU();if(N===2&&this.M7().enableServerStitchedDai&&T&&!T.wq())return T.Fh("lvonss",{vid:(e==null?void 0:e.videoId)||"",ptype:N}),!1;var p=!1;T=new g.t3(this.ph,e);T.reloadPlaybackParams=A;g.mT(this.ph)&&!T.IV&&kP(this.R9);var C;A=this.R9;var r=(C=T.Et)!=null?C:"";A.timerName=r;this.R9.oe("pl_i");this.T("web_player_early_cpn")&&T.clientPlaybackNonce&&this.R9.infoGel({clientPlaybackNonce:T.clientPlaybackNonce});if(MwH(T).supportsVp9Encoding=== !1){var Y;(Y=this.nh())==null||Y.Fh("noVp9",{})}if(this.X().supportsGaplessShorts()){C=yNM(this.OH,T,N);if(C==null){BR(this,-1);e=this.OH;e.app.X().T("html5_gapless_new_slr")?A8M(e.app,"gaplessshortslooprange"):e.app.setLoopRange(null);e.app.getVideoData().cC=!0;var M;(M=e.J)==null||M.QK();var l;(l=e.J)!=null&&mS(l.JW.Eg());y={BY:"gapless_to_next_video",seekSource:60};var F;(F=e.app.nh())==null||F.seekTo(Nfn(e),y);if(!e.app.getPlayerStateObject(N).isPlaying()){var S;(S=e.app.nh())==null||S.playVideo(!0)}e.Z(); return!0}F=this.T("html5_shorts_gapless_preload_fallback");S=this.OH.J;F&&S&&!S.JW.Ss()&&(M=S.getVideoData(),M=this.ph.T("html5_autonav_autoplay_in_preload_key")?qs(this,N,M):Zg(this,N,M.videoId,M.FS),this.UX.J.set(M,S,3600));this.OH.clearQueue(F);var k;(k=this.nh())==null||k.Fh("sgap",{f:C})}if(E){for(;T.FA.length&&T.FA[0].isExpired();)T.FA.shift();p=T.FA.length-1;p=p>0&&E.N(T.FA[p])&&E.N(T.FA[p-1]);T.FA.push(E)}y||(e&&xhs(e)?(ZW(this.ph)&&!this.nj&&(e.fetch=0),vR(this,e)):this.playlist&&vR(this, null),e&&(this.nj=A2(!1,e.external_list)));this.Lh.publish("loadvideo");N=this.Hi(T,N,w);p&&this.zS("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+T.FA.join()).replace(/[;:,]/g,"_"));return N}; g.J.preloadVideoByPlayerVars=function(e,N,y,w,E){N=N===void 0?1:N;y=y===void 0?NaN:y;w=w===void 0?"":w;E=E===void 0?"":E;var A="";if(this.ph.T("html5_autonav_autoplay_in_preload_key"))A=Yw3(this,N,e,E);else{var T=r9(e);A=Zg(this,N,T,E)}if(this.UX.J.get(A))return this.logger.debug(function(){return"already preloaded "+A}),null; e=new g.t3(this.ph,e);E&&(e.FS=E);return $zJ(this,e,N,y,w)}; g.J.setMinimized=function(e){this.visibility.setMinimized(e);(e=PbM(this.HG))&&(this.isMinimized()?e.load():e.unload());this.Lh.publish("minimized")}; g.J.setInline=function(e){this.visibility.setInline(e)}; g.J.setInlinePreview=function(e){this.visibility.setInline(e)}; g.J.bX=function(e){MJ3(this,e)||this.visibility.bX(e)}; g.J.setSqueezeback=function(e){this.visibility.setSqueezeback(e)}; g.J.Ak=function(){var e,N=(e=this.mediaElement)==null?void 0:e.ut();N&&((this.T("html5_disable_pip_with_standard_api")||this.T("html5_pip_visibility_on_resize"))&&document.exitFullscreen().catch(function(){}),kh(N).catch(function(y){g.uA(y)}))}; g.J.Gas=function(){this.mediaElement.ut();this.mediaElement.ut().webkitPresentationMode==="picture-in-picture"?this.bX(!0):this.bX(!1)}; g.J.togglePictureInPicture=function(){var e=this.nh();e&&e.togglePictureInPicture()}; g.J.Hi=function(e,N,y){N=N===void 0?1:N;this.logger.debug(function(){return"start load video, id "+e.videoId+", type "+N}); mo("_start",this.R9.timerName)||g.NR(VQ)(void 0,this.R9.timerName);var w=!1,E=y89(this,N,e,!1);E?(w=!0,e.dispose()):(E=UBs(this,N,e,y).xi,(this.T("html5_onesie")||this.T("html5_load_before_stop"))&&E.Vn()&&E.xN(),this.Qx.stop(),N===1&&N!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,N),this.w1(E));E===this.NU()&&(this.ph.MX=e.oauthToken);if(!E.Vn())return!1;if(E===this.NU())return this.yY(1),y=iK(this),w&&this.T("html5_player_preload_ad_fix")&&E.getPlayerType()===1&& E.Bz()&&this.vc("dataloaded",E,E.getVideoData()),y;E.yR();return!0}; g.J.cueVideoByPlayerVars=function(e,N){var y=this;N=N===void 0?1:N;var w=this.NU();if(this.M7().enableServerStitchedDai&&w&&!w.wq()&&e&&Object.keys(e).length>0)w.Fh("qvonss",{vid:(e==null?void 0:e.videoId)||"",ptype:N});else if(e&&xhs(e))if(this.PJ=!0,vR(this,e),(e=g.Bo(this.playlist))&&e.WG())jo(this,e,N);else this.playlist.onReady(function(){zI(y)}); else{N||(N=this.getPresentingPlayerType());N===1&&this.Gh();w=new g.t3(this.ph,e);var E=g.hR(this.ph)&&!this.ph.Kh&&N===1&&!w.isAd()&&!w.FZ;this.Lh.publish("cuevideo");E?(this.nh().getVideoData().loading=!0,W29(w,e?e:{}).then(function(A){jo(y,A,N)}),w.dispose()):jo(this,w,N)}}; g.J.gq=function(e,N,y,w,E,A,T){if(!e&&!y)throw Error("Playback source is invalid");if(kj(this.ph)||g.Pa(this.ph))return N=N||{},N.lact=z_(),N.vis=this.Lh.getVisibilityState(),this.Lh.Mg("onPlayVideo",{videoId:e,watchEndpoint:A,sessionData:N,listId:y}),!1;qL9(this.R9);this.R9.reset();e={video_id:e};w&&(e.autoplay="1");w&&(e.autonav="1");A&&(e.player_params=A.playerParams);T&&(e.oauth_token=T);y?(e.list=y,this.loadPlaylist(e)):this.loadVideoByPlayerVars(e,1);return!0}; g.J.cuePlaylist=function(e,N,y,w){this.PJ=!0;lQH(this,e,N,y,w)}; g.J.loadPlaylist=function(e,N,y,w){this.PJ=!1;lQH(this,e,N,y,w)}; g.J.ZR=function(){return this.Lh.isMutedByMutedAutoplay()?!1:this.getPresentingPlayerType()===3?!0:!(!this.playlist||!this.playlist.gk())}; g.J.J$=N3(13); g.J.nextVideo=function(e,N){var y=g.HH(this.NU().getVideoData());g.dZ(this.Lh)&&y?this.gq(y.videoId,N?y.AV:y.sessionData,y.playlistId,N,void 0,y.FD||void 0):this.nj?this.Lh.pC("onPlaylistNext"):this.getPresentingPlayerType()===3?hu(this.HG).nextVideo():!this.playlist||ZW(this.ph)&&!this.Lh.isFullscreen()||(this.playlist.gk(e)&&Qm5(this.playlist,jmH(this.playlist)),this.playlist.loaded?(e=N&&this.ph.T("html5_player_autonav_logging"),N&&this.Lh.publish("playlistautonextvideo"),this.Hi(g.Bo(this.playlist,void 0, N,e),1)):this.PJ=!1)}; g.J.previousVideo=function(e){this.nj?this.Lh.pC("onPlaylistPrevious"):this.getPresentingPlayerType()===3?hu(this.HG).Pu():!this.playlist||ZW(this.ph)&&!this.Lh.isFullscreen()||(this.playlist.GJ(e)&&Qm5(this.playlist,ny9(this.playlist)),this.playlist.loaded?this.Hi(g.Bo(this.playlist),1):this.PJ=!1)}; g.J.playVideoAt=function(e){this.nj?this.Lh.pC("onPlaylistIndex",e):this.playlist&&(this.playlist.loaded?this.Hi(g.Bo(this.playlist,e),1):this.PJ=!1,Qm5(this.playlist,e))}; g.J.getPlaylist=function(){return this.playlist}; g.J.X7=N3(23);g.J.YgB=function(e){this.Lh.Y9("onCueRangeEnter",e.getId())}; g.J.X9s=function(e){this.Lh.Y9("onCueRangeExit",e.getId())}; g.J.oy=function(){var e=g.fZ(this.jR());e&&e.oy()}; g.J.Ef=function(e,N,y){var w=this.Ug(N);if(w){var E=this.M7();if(g.xK(E)){if(this.k_)if(this.T("html5_ssap_enable_cpn_triggered_media_end")&&w.getPlayerType()===2&&this.k_.Wo()&&(w=this.NU()),N===1)for(var A=XC(this.k_,E.clientPlaybackNonce),T=g.c(e),p=T.next();!p.done;p=T.next())p=p.value,p.start+=A,p.end+=A,p.N3=A,p.K=E.clientPlaybackNonce;else if(this.T("html5_ssap_enable_cpn_triggered_media_end")&&N===2)for(this.getPresentingPlayerType(),E=g.c(e),A=E.next();!A.done;A=E.next())A.value.K=this.k_.XH(); E=g.c(e);for(A=E.next();!A.done;A=E.next())T=void 0,A.value.playerType=(T=N)!=null?T:1}w.Ef(e,y);N&&this.getPresentingPlayerType()!==N||n7(this,"cuerangesadded",e)}}; g.J.E7=function(e,N){var y=this.Ug(N);y&&(y.E7(e),N&&this.getPresentingPlayerType()!==N||n7(this,"cuerangesremoved",e))}; g.J.iX=function(e){var N=this.nh()||this.NU(),y=this.getPresentingPlayerType();return this.T("html5_ssap_enable_cpn_triggered_media_end")?N.iX(y,e):N.iX(y)}; g.J.eyB=function(){function e(){var w=N.screenLayer||(N.isMinimized()?3:0),E=g.It(w);if(E&&E!=="UNDEFINED_CSN"){var A=N.ph.T("web_player_attach_player_response_ve"),T=N.ph.T("web_playback_associated_ve");w={cpn:N.getVideoData().clientPlaybackNonce,csn:E};N.getVideoData().i9&&(A||T)&&(A=g.XV(N.getVideoData().i9),g.yv(E,A),T&&(w.playbackVe=A.getAsJson()));N.getVideoData().queueInfo&&(w.queueInfo=N.getVideoData().queueInfo);E={};N.T("web_playback_associated_log_ctt")&&N.getVideoData().Z&&(E.cttAuthInfo= {token:N.getVideoData().Z,videoId:N.getVideoData().videoId});g.$$("playbackAssociated",w,E)}else g.uA(new g.Gh("CSN Missing or undefined during playback association"))} var N=this,y=this.nh();this.getPresentingPlayerType();tzM(this.R9,y.getVideoData(),bzM(this));Ij(this)&&this.ph.j&&I$(this.M7())==="embedded"&&this.dC&&Math.random()<.01&&g.$$("autoplayTriggered",{intentional:this.intentionalPlayback});this.dC=!1;kTs(this.HG);this.T("web_player_defer_ad")&&sb_(this);this.Lh.pC("onPlaybackStartExternal");(this.ph.T("mweb_client_log_screen_associated"),Vy(this.ph))||e();y={};this.getVideoData().Z&&(y.cttAuthInfo={token:this.getVideoData().Z,videoId:this.getVideoData().videoId}); y.sampleRate=20;QQ("player_att",y);if(this.getVideoData().botguardData||this.T("fetch_att_independently"))g.na(this.ph)||nC(this.ph)==="MWEB"?g.e1(g.yK(),function(){Dg(N)}):Dg(this); this.JH();TJs(this);this.T("embeds_enable_autoplay_and_visibility_signals")&&g.hR(this.ph)&&(y={autoplayBrowserPolicy:um(),autoplayIntended:qc(this.getVideoData()),autoplayStatus:IF9(this.getVideoData(),1),cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.$$("embedsAutoplayStatusChanged",y))}; g.J.FB=function(){this.Lh.publish("internalAbandon");uK(this)}; g.J.onApiChange=function(){var e=this.nh();this.ph.G&&e?this.Lh.Y9("onApiChange",e.getPlayerType()):this.Lh.Y9("onApiChange")}; g.J.Ekh=function(){var e=this.mediaElement;e={volume:g.Ja(Math.floor(e.getVolume()*100),0,100),muted:e.sV()};e.muted||Vi(this,!1);this.Fe=g.DA(e);this.Lh.Y9("onVolumeChange",e)}; g.J.mutedAutoplay=function(e){var N=this.getVideoData().videoId;isNaN(this.Pr)&&(this.Pr=this.getVideoData().startSeconds);if(!this.T("embeds_enable_full_length_inline_muted_autoplay"))N&&(this.loadVideoByPlayerVars({video_id:N,playmuted:!0,start:this.Pr}),this.Lh.pC("onMutedAutoplayStarts"));else if((e==null?0:e.videoId)||N)this.loadVideoByPlayerVars({video_id:(e==null?0:e.videoId)?e==null?void 0:e.videoId:N,playmuted:!0,start:this.Pr,muted_autoplay_duration_mode:e==null?void 0:e.durationMode}), this.Lh.pC("onMutedAutoplayStarts")}; g.J.onFullscreenChange=function(){var e=c8F(this);this.q3(e?1:0);BJM(this,!!e)}; g.J.q3=function(e){var N=!!e,y=!!this.EU()!==N;this.visibility.q3(e);this.template.q3(N);this.T("html5_media_fullscreen")&&!N&&this.mediaElement&&c8F(this)===this.mediaElement.ut()&&this.mediaElement.u5();this.template.resize();y&&this.R9.tick("fsc");y&&(this.Lh.publish("fullscreentoggled",N),e=this.M7(),N={fullscreen:N,videoId:e.d$||e.videoId,time:this.getCurrentTime()},this.Lh.getPlaylistId()&&(N.listId=this.Lh.getPlaylistId()),this.Lh.Y9("onFullscreenChange",N))}; g.J.Xi=function(){return this.visibility.Xi()}; g.J.isFullscreen=function(){return this.visibility.isFullscreen()}; g.J.EU=function(){return this.visibility.EU()}; g.J.cah=function(){if(this.nh()){var e=window.screen.width*window.screen.height,N=window.outerHeight*window.outerWidth;this.T("html5_disable_pip_with_standard_api")&&(this.Be=Math.max(this.Be,e,N));var y=this.EU();y!==0&&y!==1||this.q3(c8F(this)?1:0);if(this.T("html5_pip_visibility_on_resize"))e=y!==0&&N/this.Be<.33,this.visibility.bX(e),MJ3(this,e);else if(this.T("html5_disable_pip_with_standard_api"))this.bX(N/e<.33);else{var w;this.mediaElement&&((w=this.getVideoData())==null||!w.backgroundable)&& this.ph.Fo&&N/e<.33&&this.mediaElement.u5()}}}; g.J.Pkq=function(e){this.getPresentingPlayerType()!==3&&this.Lh.publish("liveviewshift",e)}; g.J.playVideo=function(e,N){this.logger.debug(function(){return"play video, player type "+e}); var y=this.Ug(e);y&&(this.appState===2?(g.mT(this.ph)&&kP(this.R9),iK(this)):g.G(y.getPlayerState(),2)?(N=36,this.getVideoData().e_()&&(N=37),this.seekTo(0,void 0,void 0,void 0,N)):y.playVideo(!1,N))}; g.J.pauseVideo=function(e,N){(e=this.Ug(e))&&e.pauseVideo(N)}; g.J.stopVideo=function(e){e=e===void 0?!1:e;this.logger.debug(function(){return"stop video"}); var N=this.NU().getVideoData(),y=new g.t3(this.ph,{video_id:N.d$||N.videoId,oauth_token:N.oauthToken});y.D=g.DA(N.D);var w;!e||(w=this.webPlayerContextConfig)!=null&&w.disableStaleness||(y.SP=!0);this.cancelPlayback(6);jo(this,y,1)}; g.J.cancelPlayback=function(e,N){var y=this;this.logger.debug(function(){return"start cancel playback, type "+N}); var w=this.Ug(N);w?N===2&&w.getPlayerType()===1&&(yH_(this.M7())||g.xK(this.getVideoData()))?w.Fh("canclpb",{r:"no_adpb_ssdai"}):(this.ph.B9()&&w.Fh("canclpb",{r:e}),this.appState===1||this.appState===2?this.logger.debug(function(){return"cancel playback end, app not started, state "+y.appState}):(w===this.nh()&&(this.logger.debug("cancel playback, destroy modules"),uJ(this.HG,e)),N===1&&(w.stopVideo(),uK(this)),w.wK(void 0,e!==6),n7(this,"cuerangesremoved",w.XW()),w.JW.yb.reset(),this.OH&&w.isGapless()&& (w.s_(!0),w.setMediaElement(this.mediaElement)))):this.logger.debug("cancel playback end, no player to cancel")}; g.J.sendVideoStatsEngageEvent=function(e,N,y){(N=this.Ug(N))&&auM(this.ph,e)?N.sendVideoStatsEngageEvent(e,y):y&&y()}; g.J.FW=function(e){var N=this.Ug();return N&&auM(this.ph,e)?N.FW(e):null}; g.J.updatePlaylist=function(){!ZW(this.ph)&&g.hR(this.ph)&&eJH(this);this.Lh.pC("onPlaylistUpdate")}; g.J.setSizeStyle=function(e,N){this.xu=e;this.T("web_log_theater_mode_visibility")?this.Gb(N):this.zp=N;this.Lh.publish("sizestylechange",e,N);this.template.resize()}; g.J.Gb=function(e){this.visibility.Gb(e)}; g.J.gN=function(){return this.T("web_log_theater_mode_visibility")?this.visibility.gN():this.zp}; g.J.isMinimized=function(){return this.visibility.isMinimized()}; g.J.isInline=function(){return this.visibility.isInline()}; g.J.Wp=function(){return this.visibility.Wp()}; g.J.j3=function(){return this.visibility.j3()}; g.J.ly=function(){return this.visibility.ly()}; g.J.iS=function(){return this.xu}; g.J.getAdState=function(){if(this.getPresentingPlayerType()===3)return hu(this.HG).getAdState();if(!this.As()){var e=ql(this.jR());if(e)return e.getAdState()}return-1}; g.J.zv1=function(e){var N=this.template.getVideoContentRect();CK(this.KK,N)||(this.KK=N,(N=this.nh())&&N.yq(),(N=this.NU())&&N===this.nh()&&N.yq(),this.EU()===1&&this.Ab&&BJM(this,!0));this.Zw&&g.Fw(this.Zw,e)||(this.Lh.publish("appresize",e),this.Zw=e)}; g.J.Bf=function(){return this.Lh.Bf()}; g.J.evh=function(){this.getPresentingPlayerType()===2&&this.Yk.isManifestless()?Fn5(this.Yk):(this.Q6&&(dF0(this.Q6),uK(this)),XYH(this,"signature"))}; g.J.uSh=function(e){e&&XYH(this,"reloadPlayerEvent",void 0,e)}; g.J.x4=function(e){this.s_(e);k9(this)}; g.J.U7P=function(e){if(e.errorCode==="manifest.net.badstatus"){var N=this.ph.experiments.gP("html5_use_network_error_code_enums")?401:"401";e.details.rc===N&&this.Lh.Mg("onPlayerRequestAuthFailed")}}; g.J.pu=function(e){this.Lh.publish("heartbeatparams",e)}; g.J.gV=function(e){this.Lh.Mg("onAutonavChangeRequest",e!==1)}; g.J.LC=function(){return this.mediaElement}; g.J.setBlackout=function(e){if(this.ph.a9!==e){this.ph.a9=e;var N=this.nh();N&&(N.JW.W_(),this.ph.Et&&dzn(this),N.bI(e))}}; g.J.ecB=function(){var e=this.nh();if(e){var N=!this.Lh.hB();e.yd(N)}}; g.J.onLoadedMetadata=function(){this.Lh.pC("onLoadedMetadata")}; g.J.onDrmOutputRestricted=function(){this.Lh.pC("onDrmOutputRestricted")}; g.J.Z$=function(){this.intentionalPlayback=!0}; g.J.fh=function(){this.HG.dispose();this.pB.dispose();this.Yk.dispose();this.Q6&&this.Q6.dispose();this.qx.removeAll();this.qx.dispose();this.k_&&this.k_.dispose();Ov(this.NU());this.s_();this.UX.dispose();g.pq(this.playlist);g.x.prototype.fh.call(this)}; g.J.T=function(e){return this.ph.T(e)}; g.J.setScreenLayer=function(e){this.screenLayer=e}; g.J.getInternalApi=function(){return this.Lh.getInternalApi()}; g.J.createSubtitlesModuleIfNeeded=function(){return this.HG.createSubtitlesModuleIfNeeded()}; g.J.isOrchestrationLeader=function(){var e=xP(this.HG);return e?e.isOrchestrationLeader():!1}; g.J.getVideoUrl=function(e,N,y,w,E){if(this.c9&&this.c9.postId)return e=this.ph.getVideoUrl(e),e=KY(e,"v"),e.replace("/watch","/clip/"+this.c9.postId);var A=this.Lh.isEmbedsShortsMode()||this.ph.Rq==="shortspage",T=g.Os(this.getVideoData());return this.ph.getVideoUrl(e,N,y,w,E,A,T)}; g.J.au=function(){return this.OH.au()}; g.J.Du=function(e,N,y){this.Lh.publish("spsumpreject",e,N,y)}; g.J.Jq=function(){try{for(var e=g.c(Object.values(this.UX.N)),N=e.next();!N.done;N=e.next()){var y=N.value;y.JW.Ss()||y.Jq()}if(this.T("html5_sabr_fetch_on_idle_network_preloaded_players"))for(var w=g.c(cb5(this.UX.J)),E=w.next();!E.done;E=w.next()){var A=E.value;A.JW.Ss()||A.Jq()}this.NU().Jq()}catch(T){g.uA(T)}}; g.J.Eu=function(){if(this.Q6){var e=(0,g.iC)();return this.Q6.Eu(e)}return!1}; g.J.VF=function(e){var N=this.NU();e&&(N=vU1(this,e));if(N){var y=N.getVideoData();e=new Map;y=g.c(y.sabrContextUpdates);for(var w=y.next();!w.done;w=y.next()){var E=g.c(w.value);w=E.next().value;E=E.next().value;var A,T;if(T=E.scope===4)(A=N)==null?A=0:(T=void 0,A=!((T=A.JW.tW)==null||!T.K.UH.has(w))),T=A;T&&e.set(w,E)}return e}this.NU().Fh("scuget",{ncpf:"1",ccpn:e})}; var Xi={};var Rfw={Tr:[{LI:/Unable to load player module/,weight:20},{LI:/Failed to fetch/,weight:500},{LI:/XHR API fetch failed/,weight:10},{LI:/JSON parsing failed after XHR fetch/,weight:10},{LI:/Retrying OnePlatform request/,weight:10},{LI:/CSN Missing or undefined during playback association/,weight:100},{LI:/Non-recoverable error. Do not retry./,weight:0},{LI:/Internal Error. Retry with an exponential backoff./,weight:0},{LI:/API disabled by application./,weight:0}],QY:[{callback:zJs,weight:500}]};var QW5=/[&\?]action_proxy=1/,nU9=/[&\?]token=([\w-]*)/,mzs=/[&\?]video_id=([\w-]*)/,Hzn=/[&\?]index=([\d-]*)/,KJE=/[&\?]m_pos_ms=([\d-]*)/,Ozn=/[&\?]vvt=([\w-]*)/,VJ3="ca_type dt el flash u_tz u_his u_h u_w u_ah u_aw u_cd u_nplug u_nmime frm u_java bc bih biw brdim vis wgl".split(" "),WJF="www.youtube-nocookie.com youtube-nocookie.com www.youtube-nocookie.com:443 youtube.googleapis.com www.youtubeedu.com www.youtubeeducation.com video.google.com redirector.gvt1.com".split(" "),uJ_={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"},qwM={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},xz_={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};HR.prototype.aE=function(e){this.player.s4().tick(e)}; HR.prototype.fetch=function(e,N){var y=this;if(!e.match(/\[BISCOTTI_ID\]/g))return this.N(e,N);var w=this.J===1;w&&this.aE("a_bid_s");var E=Dz1();if(E!==null)return w&&this.aE("a_bid_f"),this.N(e,N,E);E=gU_();w&&ho(E,function(){y.aE("a_bid_f")}); return E.then(function(A){return y.N(e,N,A)})}; HR.prototype.N=function(e,N,y){var w=this,E=N===void 0?{}:N;N=E.m1;var A=E.y6;var T=E.cueProcessedMs;y=y===void 0?"":y;var p=this.player.getVideoData(1);E=this.player.X().kX;var C=0;if(T&&A&&!N){var r=A.end-A.start;r>0&&(C=Math.floor(r/1E3))}C=N?N.Vj:C;var Y={AD_BLOCK:this.J++,AD_BREAK_LENGTH:C,AUTONAV_STATE:m8(this.player.X()),CA_TYPE:"image",CPN:p.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.k7()*1E3,LACT:z_(),LIVE_INDEX:N?this.K++:1,LIVE_TARGETING_CONTEXT:N&&N.context?N.context:"",MIDROLL_POS:A? Math.round(A.start/1E3):0,MIDROLL_POS_MS:A?Math.round(A.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.Fz().aV().height,P_W:this.player.Fz().aV().width,YT_REMOTE:E?E.join(","):""},M=l4(MR);Object.keys(M).forEach(function(F){M[F]!=null&&(Y[F.toUpperCase()]=M[F].toString())}); y!==""&&(Y.BISCOTTI_ID=y);y={};Y3(e)&&(y.sts="20129",(N=this.player.X().forcedExperiments)&&(y.forced_experiments=N));var l=Cp(g.Vx(e,Y),y);return l.split("?").length!==2?oD(Error("Invalid AdBreakInfo URL")):g.GX(this.player.X(),p==null?void 0:p.oauthToken).then(function(F){if(F&&$3()){var S=z9();ih(S,F)}F=w.player.WI(S);S=RJP(w,l,Y,p.isMdxPlayback,T);return g.Rg(F,S,"/youtubei/v1/player/ad_break").then(function(k){return k})})}; HR.prototype.reset=function(){this.K=this.J=1};g.b(Gn9,HR); Gn9.prototype.N=function(e,N,y){N=N===void 0?{}:N;var w=N.m1;var E=N.y6;var A=N.cueProcessedMs;y=y===void 0?"":y;N=this.J;this.J++;var T=this.player.X().T("h5_disable_macro_substitution_in_get_ad_break")?e:UzE(this,e,{m1:w,y6:E,cueProcessedMs:A},y,N);if(T.split("?").length!==2)return Math.random()<.1&&g.uA(Error("Invalid AdBreakInfo URL")),oD(Error("Invalid AdBreakInfo URL"));var p=this.player.getVideoData(1).isMdxPlayback,C=y;y=nU9.exec(T);y=y!=null&&y.length>=2?y[1]:"";e=QW5.test(T);var r=mzs.exec(T); r=r!=null&&r.length>=2?r[1]:"";var Y=Hzn.exec(T);Y=Y!=null&&Y.length>=2&&!Number.isNaN(Number(Y[1]))?Number(Y[1]):1;var M=KJE.exec(T);M=M!=null&&M.length>=2?M[1]:"0";var l=DW(this.player.X().qg),F=g.LR(this.player.getVideoData(1).i9,!0);tJF(this,F,T,C===""?"":C,this.player.X(),this.player.getVideoData(1));C={splay:!1,lactMilliseconds:String(z_()),playerHeightPixels:Math.trunc(this.player.Fz().aV().height),playerWidthPixels:Math.trunc(this.player.Fz().aV().width),vis:Math.trunc(this.player.getVisibilityState()), signatureTimestamp:20129,autonavState:m8(this.player.X())};if(p){p={};var S=this.player.X().kX;Zz3(p,S?S.join(","):"")&&(C.mdxContext=p)}if(p=WJF.includes(l)?void 0:g.jH("PREF")){S=p.split(RegExp("[:&]"));for(var k=0,X=S.length;k1&&d[1].toUpperCase()==="TRUE"){F.user.lockedSafetyMode=!0;break}}C.autoCaptionsDefaultOn=jWF(p)}T=Ozn.exec(T);(T=T!=null&&T.length>=2?T[1]:"")&&r&&(F.user.credentialTransferTokens= [{token:T,scope:"VIDEO"}]);T={contentPlaybackContext:C};C=this.player.getVideoData(1).getGetAdBreakContext();p=this.player.getVideoData(1).clientPlaybackNonce;S=A!==void 0?Math.round(A).toString():void 0;k=(w==null?0:w.context)?w.context:void 0;X=0;A&&E&&!w&&(E=E.end-E.start,E>0&&(X=Math.floor(E/1E3)));w=(w=Math.trunc((w?w.Vj:X)*1E3))?String(w):void 0;E=this.player.k7()*1E3;E=Number.isNaN(E)?0:Math.trunc(E);N={adBlock:N,params:y,breakIndex:Y,breakPositionMs:M,clientPlaybackNonce:p,topLevelDomain:l, isProxyAdTagRequest:e,context:F,overridePlaybackContext:T,cueProcessedMs:S,videoId:r?r:void 0,liveTargetingParams:k,breakLengthMs:w,driftFromHeadMs:E?String(E):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:C?C:void 0};return LJ5(this,N)};var Gyq={N2P:"replaceUrlMacros",akP:"onAboutThisAdPopupClosed",yoh:"executeCommand"};sWs.prototype.jh=function(){return"adPingingEndpoint"}; sWs.prototype.A$=function(e,N,y){gk5(this.Pk.get(),e,N,y)};aQF.prototype.jh=function(){return"changeEngagementPanelVisibilityAction"}; aQF.prototype.A$=function(e){this.C.Mg("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:e})};euJ.prototype.jh=function(){return"loggingUrls"}; euJ.prototype.A$=function(e,N,y){e=g.c(e);for(var w=e.next();!w.done;w=e.next())w=w.value,gk5(this.Pk.get(),w.baseUrl,N,y,w.attributionSrcMode)};g.b(ySH,g.x);g.b(WR,g.x);g.J=WR.prototype;g.J.addListener=function(e){this.listeners.push(e)}; g.J.removeListener=function(e){this.listeners=this.listeners.filter(function(N){return N!==e})}; g.J.I$=function(e,N,y,w,E,A,T,p){if(e==="")YN("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(e!==this.J||y){this.J=e;this.zZ.get().I$(e,N,y,w,E,A,T,p);this.Hk.get().I$(e,N,y,w,E,A,T,p);var C;(C=this.p$)==null||C.get().I$(e,N,y,w,E,A,T,p);this.N.I$(e,N,y,w,E,A,T,p);C=g.c(this.listeners);for(var r=C.next();!r.done;r=C.next())r.value.I$(e,N,y,w,E,A,T,p)}else YN("Duplicate content video loaded signal")}; g.J.FB=function(){this.J&&this.Jg(this.J)}; g.J.Jg=function(e){this.J=void 0;for(var N=g.c(this.listeners),y=N.next();!y.done;y=N.next())y.value.Jg(e)};O4.prototype.W8=function(e,N,y,w,E){wkM(this);this.L=!N&&y===0;var A=this.C.getVideoData(1),T=this.C.getVideoData(2);A&&(this.contentCpn=A.clientPlaybackNonce,this.videoId=A.videoId,this.J=A.Z);T&&(this.adCpn=T.clientPlaybackNonce,this.adVideoId=T.videoId,this.adFormat=T.adFormat);this.j=e;w<=0?(wkM(this),this.L=!N&&y===0):(this.actionType=this.L?N?"unknown_type":"video_to_ad":N?"ad_to_video":"ad_to_ad",this.videoStreamType=E?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& (this.K=!0,mo("_start",this.actionType)&&TUM(this)))}; O4.prototype.reset=function(){return new O4(this.C)};g.b(Rj,g.x);Rj.prototype.addCueRange=function(e,N,y,w,E,A,T){A=A===void 0?3:A;T=T===void 0?1:T;this.J.has(e)?YN("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:e}):(e=new JS_(e,N,y,w,A),this.J.set(e.id,{y6:e,listener:E,UR:T}),this.C.wx([e],T))}; Rj.prototype.removeCueRange=function(e){var N=this.J.get(e);N?(this.C.bl([N.y6],N.UR),this.J.delete(N.y6.id)):YN("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:e})}; Rj.prototype.onCueRangeEnter=function(e){if(this.J.has(e.id))this.J.get(e.id).listener.onCueRangeEnter(e.id)}; Rj.prototype.onCueRangeExit=function(e){if(this.J.has(e.id))this.J.get(e.id).listener.onCueRangeExit(e.id)}; g.b(JS_,g.wF);GI.prototype.rO=function(e){this.C.rO(e)}; GI.prototype.gS=function(e){var N=g.iE.apply(1,arguments);e==="onAdStart"||e==="onAdEnd"?this.C.Y9.apply(this.C,[e].concat(g.B(N))):this.C.Mg.apply(this.C,[e].concat(g.B(N)))};U4.prototype.HE=function(e){return e&&L7(this)};var St5=null;g.b(FtH,g.pT);FtH.prototype.sy=function(e){return this.J.hasOwnProperty(e)?this.J[e].sy():{}}; g.jM("ytads.bulleit.getVideoMetadata",function(e){return s4().sy(e)}); g.jM("ytads.bulleit.triggerExternalActivityEvent",function(e,N,y){var w=s4();y=ll_(y);y!==null&&w.publish(y,{queryId:e,viewabilityString:N})});g.J=aj.prototype;g.J.wz=function(e,N){if(!this.J.has(e))return{};if(N==="seek"){N=this.C.X().T("html5_dai_enable_active_view_creating_completed_adblock");N=N===void 0?!1:N;var y=z0(BB).qD(e,{});y?Bf(y):N&&(e=z0(BB).o3(null,O7(),!1,e),e.I1=3,Qks([e]));return{}}N=b8s(N);if(N===null)return{};var w=this.C.K_();if(!w)return{};var E=this.C.getPresentingPlayerType(!0);if((y=this.C.getVideoData(E))==null||!y.isAd())return{};y={opt_adElement:w,opt_fullscreen:this.zZ.get().isFullscreen()};return QpM(N,e,y)}; g.J.Ld=function(e,N,y,w,E){this.J.has(e)&&(w<=0||E<=0||z0(BB).Ld(e,N,y,w,E))}; g.J.tq=function(e){var N;(N=this.J.get(e.queryId))==null||N.tq()}; g.J.KG=function(e){var N;(N=this.J.get(e.queryId))==null||N.KG()}; g.J.fG=function(e){var N;(N=this.J.get(e.queryId))==null||N.fG()}; g.J.Nf=function(e){var N;(N=this.J.get(e.queryId))==null||N.Nf()}; g.J.k6=function(e){var N;(N=this.J.get(e.queryId))==null||N.k6()};Il0.prototype.send=function(e,N,y,w){try{vk9(this,e,N,y,w===void 0?!1:w)}catch(E){}};g.b(zuE,Il0);i8M.prototype.send=function(e,N,y,w){var E=!1;try{if(w==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||w==="ATTRIBUTION_SRC_MODE_XHR_OPTION")E=!0,e=pL0(e);w=E;var A=e.match(fY);if(A[1]==="https")var T=e;else A[1]="https",T=iB("https",A[2],A[3],A[4],A[5],A[6],A[7]);var p=NmM(T);A=[];var C=OGE(T)&&this.wP.get().C.X().experiments.gP("add_auth_headers_to_remarketing_google_dot_com_ping");if(Y3(T)||C)A.push({headerType:"USER_AUTH"}),A.push({headerType:"PLUS_PAGE_ID"}),A.push({headerType:"VISITOR_ID"}),A.push({headerType:"EOM_VISITOR_ID"}), A.push({headerType:"AUTH_USER"}),A.push({headerType:"DATASYNC_ID"});this.J.send({baseUrl:T,scrubReferrer:p,headers:A},N,y,w)}catch(r){}};Ey.prototype.FW=function(){return this.C.FW(1)};g.b(AM,g.x);g.J=AM.prototype;g.J.YI=function(){return this.C.getVideoData(1).clientPlaybackNonce}; g.J.addListener=function(e){this.listeners.push(e)}; g.J.removeListener=function(e){this.listeners=this.listeners.filter(function(N){return N!==e})}; g.J.I$=function(){this.J_.clear();this.Tp=null;this.hf.get().clear()}; g.J.Jg=function(){}; g.J.b$q=function(e,N,y,w,E){N.videoId==="nPpU29QrbiU"&&this.C.Fh("ads_ssm_vdc_s",{pt:y,dvt:e});MC(this.wP.get())&&e!=="dataloaded"||xQ9(this,N,y);if(L7(this.wP.get())&&e==="newdata"&&E!==void 0){e=this.YI();var A=N.clientPlaybackNonce,T={};hG(this,"rte",(T.ec=A,T.xc=w==null?void 0:w.clientPlaybackNonce,T.tr=E,T.pt=y,T.ia=A!==e,T.ctp=b$(A),T));N=N.clientPlaybackNonce;w=w==null?void 0:w.clientPlaybackNonce;E=jn_(E);if(E!==1)if(w!==void 0)for(y=g.c(this.listeners),e=y.next();!e.done;e=y.next())e.value.I6(w, N,E);else YN("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:N,transitionReason:String(E)});E=g.c(this.listeners);for(w=E.next();!w.done;w=E.next())w.value.QW(N)}}; g.J.mKG=function(e,N){e!==void 0&&(this.Tp=e,N===void 0?YN("Expected ad video start time on SS video changed"):this.J_.set(e,N));var y=this.C.getPresentingPlayerType(!0),w=this.C.getVideoData(y);this.C.getVideoData(1).Fh("ads_ssvc",{pt:y,cpn:w==null?void 0:w.clientPlaybackNonce,crtt:this.C.getCurrentTime(1,!1),atlh:this.C.isAtLiveHead(),adstt:N});w?xQ9(this,w,y):YN("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.C.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:e})}; g.J.v8=function(e,N){var y=e.author,w=e.clientPlaybackNonce,E=e.isListed,A=e.FS,T=e.title,p=e.S_,C=e.N2,r=e.isMdxPlayback,Y=e.zN,M=e.mdxEnvironment,l=e.isAutonav,F=e.rq,S=e.IV,k=e.jg,X=e.videoId||"",d=e.profilePicture||"",v=e.iI||"",V=e.e_()||!1,Z=e.Au()||!1;e=e.Ez||void 0;A=this.hf.get().J.get(A)||{layoutId:null,slotId:null};var n=this.C.getVideoData(1),R=n.Cx();n=n.getPlayerResponse();N=1E3*this.C.getDuration(N);var O=1E3*this.C.getDuration(1),E9,Jn,eM=(n==null?void 0:(E9=n.playerConfig)==null? void 0:(Jn=E9.daiConfig)==null?void 0:Jn.enableDai)||!1,H,a;E9=(n==null?void 0:(H=n.playerConfig)==null?void 0:(a=H.daiConfig)==null?void 0:a.enablePreroll)||!1;return Object.assign({},A,{videoId:X,author:y,clientPlaybackNonce:w,La9:N,LO:O,daiEnabled:eM,mB:E9,isListed:E,Cx:R,profilePicture:d,title:T,iI:v,S_:p,N2:C,Ez:e,isMdxPlayback:r,zN:Y,mdxEnvironment:M,isAutonav:l,rq:F,IV:S,jg:k,e_:V,Au:Z})}; g.J.fh=function(){this.listeners.length=0;this.nk=null;g.x.prototype.fh.call(this)};g.b(Td,g.x);g.J=Td.prototype;g.J.I$=function(){var e=this;L7(this.wP.get())||(this.J=$T(function(){e.C.Ss()||e.C.Go("ad",1)}))}; g.J.Jg=function(){}; g.J.addListener=function(e){this.listeners.push(e)}; g.J.removeListener=function(e){this.listeners=this.listeners.filter(function(N){return N!==e})}; g.J.uT=function(){}; g.J.playVideo=function(){this.C.playVideo()}; g.J.pauseVideo=function(){this.C.pauseVideo()}; g.J.resumeVideo=function(e){this.Ax(e)&&this.C.playVideo()}; g.J.Ax=function(e){return this.C.getPlayerState(e)===2}; g.J.getCurrentTimeSec=function(e,N,y){var w=this.Hk.get().Tp;if(e===2&&!N&&w!==null)return QnH(this,w);R_(this.wP.get(),"html5_ssap_use_cpn_to_get_time")||(y=void 0);return y!==void 0?this.C.getCurrentTime(e,N,y):this.C.getCurrentTime(e,N)}; g.J.getVolume=function(){return this.C.getVolume()}; g.J.isMuted=function(){return this.C.isMuted()}; g.J.getPresentingPlayerType=function(){return this.C.getPresentingPlayerType(!0)}; g.J.getPlayerState=function(e){return this.C.getPlayerState(e)}; g.J.isFullscreen=function(){return this.C.isFullscreen()}; g.J.isAtLiveHead=function(){return this.C.isAtLiveHead()}; g.J.c7=function(e){this.C.c7(e)}; g.J.j2k=function(){var e=this.C.getPresentingPlayerType(!0),N=this.getCurrentTimeSec(e,!1);if(e===2){e=g.c(this.listeners);for(var y=e.next();!y.done;y=e.next())y.value.Vb(N)}else if(e===1)for(e=g.c(this.VJ),y=e.next();!y.done;y=e.next())y.value.uT(N)}; g.J.sJh=function(e){for(var N=g.c(this.listeners),y=N.next();!y.done;y=N.next())y.value.pN(e,this.getPresentingPlayerType())}; g.J.onFullscreenToggled=function(e){for(var N=g.c(this.listeners),y=N.next();!y.done;y=N.next())y.value.onFullscreenToggled(e)}; g.J.onVolumeChange=function(){for(var e=g.c(this.listeners),N=e.next();!N.done;N=e.next())N.value.onVolumeChange()}; g.J.Yx=function(){for(var e=this.C.isMinimized(),N=g.c(this.listeners),y=N.next();!y.done;y=N.next())y.value.Yx(e)}; g.J.D0=function(e){for(var N=g.c(this.listeners),y=N.next();!y.done;y=N.next())y.value.D0(e)}; g.J.I9=function(){for(var e=this.C.Fz().aV(),N=g.c(this.listeners),y=N.next();!y.done;y=N.next())y.value.ys(e)}; g.J.Qs=function(e){for(var N=g.c(this.listeners),y=N.next();!y.done;y=N.next())y.value.Qs(e)}; g.J.pO=function(){for(var e=g.c(this.listeners),N=e.next();!N.done;N=e.next())N.value.pO()};g.b(KtE,g.x);g.b($L,g.x);$L.prototype.fh=function(){this.uL.Ss()||this.uL.get().removeListener(this);g.x.prototype.fh.call(this)};YL.prototype.fetch=function(e){var N=e.JI;return this.J.fetch(e.cH,{m1:e.m1===void 0?void 0:e.m1,y6:N,cueProcessedMs:e.cueProcessedMs===void 0?0:e.cueProcessedMs}).then(function(y){return Wt_(y,N)})};g.b(Mr,g.x);g.J=Mr.prototype;g.J.addListener=function(e){this.listeners.push(e)}; g.J.removeListener=function(e){this.listeners=this.listeners.filter(function(N){return N!==e})}; g.J.yL=function(e){O85(this,e,1)}; g.J.onAdUxClicked=function(e,N){l9(this,function(y){y.Pw(e,N)})}; g.J.wX=function(e){l9(this,function(N){N.HM(e)})}; g.J.bT=function(e){l9(this,function(N){N.Tm(e)})}; g.J.BTh=function(e){l9(this,function(N){N.uh(e)})};F5.prototype.reduce=function(e){switch(e.event){case "unknown":return}var N=e.identifier;var y=this.J[N];y?N=y:(y={pV:null,jO:-Infinity},N=this.J[N]=y);y=e.startSecs+e.J/1E3;if(!(y=this.J.startSecs&&y.startSecs<=this.J.startSecs+this.J.Vj)){var w=void 0;MN3(this.wP.get())&&y.identifier!==((w=this.J)==null?void 0:w.identifier)&& sV(this.Pk.get(),"ocud","cpi."+y.identifier+";cpe."+y.event+";cps."+y.startSecs+";");w=void 0;y.identifier!==((w=this.J)==null?void 0:w.identifier)&&YN("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.J=y,UQ3(this,y)}}; g.J.fh=function(){this.N!=null&&(this.N.unsubscribe("cuepointupdated",this.iT,this),this.N=null);this.listeners.length=0;this.IH.length=0;g.x.prototype.fh.call(this)};oa.prototype.addPlayerResponseForAssociation=function(e){this.C.addPlayerResponseForAssociation(e)};g.J=hM.prototype;g.J.r$=function(e,N,y,w,E,A,T){return this.C.r$(e,N,y,w,E,A,T)}; g.J.Qn=function(e,N){this.C.Qn(e,N)}; g.J.mX=function(e,N,y){this.C.mX(e,N,y)}; g.J.Mp=function(e){this.C.Mp(e)}; g.J.tB=function(e,N,y,w,E,A,T){this.C.tB(e,N,y,w,E,A,T)}; g.J.Ll=function(e){return this.C.Ll(e)}; g.J.finishSegmentByCpn=function(e,N,y){y=ewM(y);this.C.finishSegmentByCpn(e,N,y)};g.b(yDM,g.x);g.b(wSM,g.x);g.b(Ec5,g.x);g.b(ADP,g.x);g.b(Tb3,g.x);g.b(pSF,g.x);pSF.prototype.K=function(){return this.N};g.b(CD_,Hq); CD_.prototype.j=function(e){var N=e.content;if(N.componentType==="shopping-companion")switch(e.actionType){case 1:case 2:e=this.J.getVideoData(1);this.J.Mg("updateKevlarOrC3Companion",{contentVideoId:e&&e.videoId,shoppingCompanionCarouselRenderer:N.renderer,layoutId:N.layoutId,macros:N.macros,onLayoutVisibleCallback:N.J,interactionLoggingClientData:N.interactionLoggingClientData});break;case 3:this.J.Mg("updateKevlarOrC3Companion",{})}else if(N.componentType==="action-companion")switch(e.actionType){case 1:case 2:e=this.J.getVideoData(1); this.J.Mg("updateKevlarOrC3Companion",{contentVideoId:e&&e.videoId,actionCompanionAdRenderer:N.renderer,layoutId:N.layoutId,macros:N.macros,onLayoutVisibleCallback:N.J,interactionLoggingClientData:N.interactionLoggingClientData});break;case 3:N.renderer&&(N=this.J.getVideoData(1),this.J.Mg("updateKevlarOrC3Companion",{contentVideoId:N&&N.videoId})),this.J.Mg("updateKevlarOrC3Companion",{})}else if(N.componentType==="image-companion")switch(e.actionType){case 1:case 2:e=this.J.getVideoData(1);this.J.Mg("updateKevlarOrC3Companion", {contentVideoId:e&&e.videoId,imageCompanionAdRenderer:N.renderer,layoutId:N.layoutId,macros:N.macros,onLayoutVisibleCallback:N.J,interactionLoggingClientData:N.interactionLoggingClientData});break;case 3:N=this.J.getVideoData(1),this.J.Mg("updateKevlarOrC3Companion",{contentVideoId:N&&N.videoId}),this.J.Mg("updateKevlarOrC3Companion",{})}else if(N.componentType==="top-banner-image-text-icon-buttoned")switch(e.actionType){case 1:case 2:e=this.J.getVideoData(1);this.J.Mg("updateKevlarOrC3Companion", {contentVideoId:e&&e.videoId,topBannerImageTextIconButtonedLayoutViewModel:N.renderer,layoutId:N.layoutId,macros:N.macros,onLayoutVisibleCallback:N.J,interactionLoggingClientData:N.interactionLoggingClientData});break;case 3:N.renderer&&(N=this.J.getVideoData(1),this.J.Mg("updateKevlarOrC3Companion",{contentVideoId:N&&N.videoId})),this.J.Mg("updateKevlarOrC3Companion",{})}else if(N.componentType==="banner-image")switch(e.actionType){case 1:case 2:e=this.J.getVideoData(1);this.J.Mg("updateKevlarOrC3Companion", {contentVideoId:e&&e.videoId,bannerImageLayoutViewModel:N.renderer,layoutId:N.layoutId,macros:N.macros,onLayoutVisibleCallback:N.J,interactionLoggingClientData:N.interactionLoggingClientData});break;case 3:N=this.J.getVideoData(1),this.J.Mg("updateKevlarOrC3Companion",{contentVideoId:N&&N.videoId}),this.J.Mg("updateKevlarOrC3Companion",{})}else if(N.componentType==="ads-engagement-panel")switch(N=N.renderer,e.actionType){case 1:case 2:this.J.Mg("updateEngagementPanelAction",N.addAction);this.J.Mg("changeEngagementPanelVisibility", N.expandAction);break;case 3:this.J.Mg("changeEngagementPanelVisibility",N.hideAction),this.J.Mg("updateEngagementPanelAction",N.removeAction)}else if(N.componentType==="ads-engagement-panel-layout"){var y=N.renderer;switch(e.actionType){case 1:case 2:this.J.Mg("updateEngagementPanelAction",{action:jP(y.addAction),layoutId:N.layoutId,onLayoutVisibleCallback:N.J,interactionLoggingClientData:N.interactionLoggingClientData});this.J.Mg("changeEngagementPanelVisibility",jP(y.expandAction));break;case 3:this.J.Mg("changeEngagementPanelVisibility", jP(y.hideAction)),this.J.Mg("updateEngagementPanelAction",{action:jP(y.removeAction)})}}};g.b(rD5,sZ);g.J=rD5.prototype;g.J.init=function(e,N,y){sZ.prototype.init.call(this,e,N,y);g.$0(this.K,"stroke-dasharray","0 "+this.N);this.K.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.Z.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.j.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; g.J.clear=function(){this.hide()}; g.J.hide=function(){eQ(this);sZ.prototype.hide.call(this)}; g.J.show=function(){aM(this);sZ.prototype.show.call(this)}; g.J.w2=function(){this.hide()}; g.J.t3=function(){if(this.J){var e=this.J.getProgressState();e!=null&&e.current!=null&&g.$0(this.K,"stroke-dasharray",e.current/e.seekableEnd*this.N+" "+this.N)}};g.b($1P,lj);g.J=$1P.prototype; g.J.init=function(e,N,y){lj.prototype.init.call(this,e,N,y);if(N.image&&N.image.thumbnail)if(N.headline)if(N.description)if(N.backgroundImage&&N.backgroundImage.thumbnail)if(N.actionButton&&g.m(N.actionButton,g.zR))if(e=N.durationMilliseconds||0,typeof e!=="number"||e<=0)g.t0(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+e));else if(N.navigationEndpoint){var w=this.api.getVideoData(2);if(w!=null){var E=N.image.thumbnail.thumbnails;E!=null&& E.length>0&&g.kw(g.Ly(E[0].url))&&(E[0].url=w.profilePicture,g.kw(g.Ly(w.profilePicture))&&Gm0("VideoPlayer",239976093,"Expected non-empty profile picture."));E=N.backgroundImage.thumbnail.thumbnails;E!=null&&E.length>0&&g.kw(g.Ly(E[0].url))&&(E[0].url=w.LN());E=N.headline;E!=null&&g.kw(g.Ly(E.text))&&(E.text=w.author)}this.D.init(TV("ad-image"),N.image,y);this.Z.init(TV("ad-text"),N.headline,y);this.K.init(TV("ad-text"),N.description,y);this.Bk.init(TV("ad-image"),N.backgroundImage,y);w=["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.Z.element.classList.add("ytp-ad-action-interstitial-headline-light");this.K.element.classList.add("ytp-ad-action-interstitial-description-light");w.push("ytp-ad-action-interstitial-action-button-dark");this.api.X().N&&(w.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),w.push("ytp-ad-action-interstitial-action-button-dark"));this.api.X().T("enable_unified_action_endcap_on_web")&& !this.api.X().N&&(w.push("ytp-ad-action-interstitial-action-button-unified"),this.Ut.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.D.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.VB.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.kz.classList.add("ytp-ad-action-interstitial-card-unified"),this.Kh.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.K.element.classList.add("ytp-ad-action-interstitial-description-unified"), this.i9.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.Z.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.aq.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.Zl.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new Vv(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,w);g.Q(this,this.actionButton);this.actionButton.yB(this.Ut); this.actionButton.init(TV("button"),g.m(N.actionButton,g.zR),y);OH(this.actionButton.element);w=sH(this.actionButton.element);G1(this.actionButton.element,w+" This link opens in new tab");this.navigationEndpoint=N.navigationEndpoint;this.j.Y(this.aq,"click",this.dn,this);this.j.Y(this.Kh,"click",this.dn,this);!this.api.X().T("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.X().N||this.j.Y(this.i9,"click",this.dn,this);this.J=this.ZH?new B2(this.api,e):new XD(e);g.Q(this,this.J);if(N.skipButton){(e= g.m(N.skipButton,C_Z))&&this.J&&(this.skipButton=new SQ(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,this.J,this.uC),g.Q(this,this.skipButton),this.skipButton.yB(this.element),this.skipButton.init(TV("skip-button"),e,y));y=this.api.T("disable_ad_preview_for_instream_ads");if(e=N.adBadgeRenderer)if(e=g.m(e,p_5))w=new c2(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,!0,y),w.yB(this.Zl),w.init(TV("simple-ad-badge"),e,this.macros),g.Q(this,w);if(e=N.adInfoRenderer)if(e= g.m(e,IQ))y=new GV(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,this.element,void 0,y),y.yB(this.Zl),y.init(TV("ad-info-hover-text-button"),e,this.macros),g.Q(this,y)}else N.nonskippableOverlayRenderer&&(e=g.m(N.nonskippableOverlayRenderer,vr))&&this.J&&(this.N=new wh(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,this.J,!1),g.Q(this,this.N),this.N.yB(this.element),this.N.init(TV("ad-preview"),e,y));N.countdownRenderer&&(N=N.countdownRenderer,g.m(N,rVk)&&this.J&& (y=new rD5(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,this.J),g.Q(this,y),y.yB(this.element),y.init(TV("timed-pie-countdown"),g.m(N,rVk),this.macros)));this.show();this.element.focus()}else g.t0(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.t0(Error("AdActionInterstitialRenderer has no button."));else g.t0(Error("AdActionInterstitialRenderer has no background AdImage."));else g.t0(Error("AdActionInterstitialRenderer has no description AdText."));else g.t0(Error("AdActionInterstitialRenderer has no headline AdText.")); else g.t0(Error("AdActionInterstitialRenderer has no image."))}; g.J.clear=function(){g.g9(this.j);this.hide()}; g.J.show=function(){YuH(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.N&&this.N.show();lj.prototype.show.call(this)}; g.J.hide=function(){YuH(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.N&&this.N.hide();lj.prototype.hide.call(this)}; g.J.dn=function(){this.navigationEndpoint&&(this.layoutId?this.Y1.executeCommand(this.navigationEndpoint,this.layoutId):g.t0(Error("Missing layoutId for ad action interstitial.")))};var ocM={iconType:"CLOSE"},X5=new g.l8(320,63);g.b(SuE,lj);g.J=SuE.prototype; g.J.init=function(e,N,y){lj.prototype.init.call(this,e,N,y);this.j=N;this.D=g.eE(this.j.onClickCommands||[]);this.Zl=this.j.onErrorCommand||null;if(e=this.j.contentSupportedRenderer)e=this.j.contentSupportedRenderer,N=this.j.adInfoRenderer||null,g.m(e,AVw)?(this.Z=g.H4("ytp-ad-overlay-ad-info-button-container",this.K.element),b4M(this,N),e=cD9(this,g.m(e,AVw))):g.m(e,T5T)?(this.Z=g.H4("ytp-ad-overlay-ad-info-button-container",this.N.element),b4M(this,N),e=kUn(this,g.m(e,T5T))):g.m(e,JVk)?(this.Z= g.H4("ytp-ad-overlay-ad-info-button-container",this.J.element),b4M(this,N),e=BbH(this,g.m(e,JVk))):(g.t0(Error("InvideoOverlayAdRenderer content could not be initialized.")),e=!1);e&&(this.show(),XSH(this,!0))}; g.J.clear=function(){XSH(this,!1);this.aq.reset();this.Kh=0;this.K.hide();this.logVisibility(this.K.element,!1);this.N.hide();this.logVisibility(this.N.element,!1);this.J.hide();this.logVisibility(this.J.element,!1);this.hide();this.dispose()}; g.J.pEq=function(){this.Ut&&(this.layoutId?this.Y1.executeCommand(this.Ut,this.layoutId):g.t0(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.J.UZ=function(){a:{if(this.j&&this.j.closeButton&&this.j.closeButton.buttonRenderer){var e=this.j.closeButton.buttonRenderer;if(e.serviceEndpoint){e=[e.serviceEndpoint];break a}}e=[]}e=g.c(e);for(var N=e.next();!N.done;N=e.next())N=N.value,this.layoutId?this.Y1.executeCommand(N,this.layoutId):g.t0(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; g.J.o_h=function(){this.Bk||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.J.UG=function(){this.Bk||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.UG("invideo-overlay")}; g.J.E_s=function(e){e.target===this.Z&&g.H4("ytp-ad-button",this.VB.element).click()};g.b(PD3,sZ);g.J=PD3.prototype;g.J.init=function(e,N,y){sZ.prototype.init.call(this,e,N,y);e=N.durationMs;this.K=e==null||e===0?0:e+this.J.getProgressState().current*1E3;if(N.text)var w=N.text.templatedAdText;else N.staticMessage&&(w=N.staticMessage);this.messageText.init(TV("ad-text"),w,y);this.messageText.yB(this.N.element);this.j.show(100);this.show()}; g.J.clear=function(){this.hide()}; g.J.hide=function(){d1J(this,!1);sZ.prototype.hide.call(this);this.N.hide();this.messageText.hide();eQ(this)}; g.J.show=function(){d1J(this,!0);sZ.prototype.show.call(this);aM(this);this.N.show();this.messageText.show()}; g.J.w2=function(){this.hide()}; g.J.t3=function(){if(this.J!=null){var e=this.J.getProgressState();e!=null&&e.current!=null&&(e=1E3*e.current,!this.Kh&&e>=this.K?(this.j.hide(),this.Kh=!0):this.messageText&&this.messageText.isTemplated()&&(e=Math.max(0,Math.ceil((this.K-e)/1E3)),e!==this.Z&&(LT(this.messageText,{TIME_REMAINING:String(e)}),this.Z=e)))}};g.b(IPJ,lj);g.J=IPJ.prototype; g.J.init=function(e,N,y){lj.prototype.init.call(this,e,N,{});N.image&&N.image.thumbnail?N.headline?N.description?N.actionButton&&g.m(N.actionButton,g.zR)?(this.K.init(TV("ad-image"),N.image,y),this.N.init(TV("ad-text"),N.headline,y),this.j.init(TV("ad-text"),N.description,y),e=["ytp-ad-underlay-action-button"],this.api.X().T("use_blue_buttons_for_desktop_player_underlay")&&e.push("ytp-ad-underlay-action-button-blue"),this.actionButton=new Vv(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1, e),N.backgroundColor&&g.$0(this.element,"background-color",g.jQ(N.backgroundColor)),g.Q(this,this.actionButton),this.actionButton.yB(this.Z),this.actionButton.init(TV("button"),g.m(N.actionButton,g.zR),y),N=g.Y2(this.api.X().experiments,"player_underlay_video_width_fraction"),this.api.X().T("place_shrunken_video_on_left_of_player")?(y=this.J,g.re(y,"ytp-ad-underlay-left-container"),g.pi(y,"ytp-ad-underlay-right-container"),g.$0(this.J,"margin-left",Math.round((N+.02)*100)+"%")):(y=this.J,g.re(y,"ytp-ad-underlay-right-container"), g.pi(y,"ytp-ad-underlay-left-container")),g.$0(this.J,"width",Math.round((1-N-.04)*100)+"%"),this.api.OW()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.FN.bind(this)),this.api.addEventListener("resize",this.pA.bind(this))):g.t0(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.t0(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.t0(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.t0(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.J.show=function(){vcF(!0);this.actionButton&&this.actionButton.show();lj.prototype.show.call(this)}; g.J.hide=function(){vcF(!1);this.actionButton&&this.actionButton.hide();lj.prototype.hide.call(this)}; g.J.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.FN.bind(this));this.api.removeEventListener("resize",this.pA.bind(this));this.hide()}; g.J.onClick=function(e){lj.prototype.onClick.call(this,e);this.actionButton&&g.Ex(this.actionButton.element,e.target)&&this.api.pauseVideo()}; g.J.FN=function(e){e==="transitioning"?(this.J.classList.remove("ytp-ad-underlay-clickable"),this.show()):e==="visible"?this.J.classList.add("ytp-ad-underlay-clickable"):e==="hidden"&&(this.hide(),this.J.classList.remove("ytp-ad-underlay-clickable"))}; g.J.pA=function(e){e.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):e.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.$0(this.N.element,"font-size",e.width/40+"px")};g.b(Pv,lj); Pv.prototype.init=function(e,N,y){lj.prototype.init.call(this,e,N,y);N.toggledLoggingParams&&(this.toggledLoggingParams=N.toggledLoggingParams);N.answer&&g.m(N.answer,g.zR)?(e=new Vv(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),e.yB(this.answer),e.init(TV("ytp-ad-survey-answer-button"),g.m(N.answer,g.zR),y),e.show()):N.answer&&g.m(N.answer,hs)&&(this.J=new Qv(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1, ["ytp-ad-survey-answer-toggle-button"]),this.J.yB(this.answer),g.Q(this,this.J),this.J.init(TV("survey-answer-button"),g.m(N.answer,hs),y));this.show()}; Pv.prototype.M5=function(e){this.layoutId?Kn(this.Y1,e,this.layoutId,this.macros):g.t0(new g.Gh("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))}; Pv.prototype.onClick=function(e){lj.prototype.onClick.call(this,e);if(this.api.X().T("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; Pv.prototype.clear=function(){this.hide()};g.b(zw5,lj);zw5.prototype.init=function(e,N,y){lj.prototype.init.call(this,e,N,y);N.answer&&g.m(N.answer,hs)&&(this.button=new Qv(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.yB(this.J),this.button.init(TV("survey-none-of-the-above-button"),g.m(N.answer,hs),y));this.show()};g.b(dV,Vv);dV.prototype.init=function(e,N,y){Vv.prototype.init.call(this,e,N,y);e=!1;N.text&&(N=g.SY(N.text),e=!g.kw(N));e||g.uA(Error("No submit text was present in the renderer."))}; dV.prototype.onClick=function(e){this.publish("l");Vv.prototype.onClick.call(this,e)};g.b(Ia,lj); Ia.prototype.init=function(e,N,y){lj.prototype.init.call(this,e,N,y);if(e=N.skipOrPreviewRenderer)g.m(e,yV)?(e=g.m(e,yV),y=new bp(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,this.j,!0),y.yB(this.skipOrPreview),y.init(TV("skip-button"),e,this.macros),g.Q(this,y),this.J=y):g.m(e,vr)&&(e=g.m(e,vr),y=new wh(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,this.j,!1),y.yB(this.skipOrPreview),y.init(TV("ad-preview"),e,this.macros),Ez(y),g.Q(this,y),this.J=y);this.J== null&&g.t0(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(N)));N.submitButton&&(e=N.submitButton,g.m(e,g.zR)&&(e=g.m(e,g.zR),y=new dV(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1),y.yB(this.submitButton),y.init(TV("survey-submit"),e,this.macros),g.Q(this,y),this.N=y));e=this.api.T("disable_ad_preview_for_instream_ads");if(y=N.adBadgeRenderer){y=g.m(y,p_5);var w=new c2(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,!0, e,!0);w.yB(this.K);w.init(TV("simple-ad-badge"),y,this.macros);this.adBadge=w.element;g.Q(this,w)}if(y=N.adDurationRemaining)y=g.m(y,yVq),w=new I4(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,this.j,void 0,e),w.yB(this.K),w.init(TV("ad-duration-remaining"),y,this.macros),g.Q(this,w);(N=N.adInfoRenderer)&&g.m(N,IQ)&&(y=new GV(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,this.element,void 0,e),g.Q(this,y),e&&this.adBadge!==void 0?this.K.insertBefore(y.element, this.adBadge.nextSibling):y.yB(this.K),y.init(TV("ad-info-hover-text-button"),g.m(N,IQ),this.macros));this.show()}; Ia.prototype.clear=function(){this.hide()};g.b(vv,lj);vv.prototype.init=function(e,N,y){lj.prototype.init.call(this,e,N,y);fP5(this)}; vv.prototype.show=function(){this.K=Date.now();lj.prototype.show.call(this)}; vv.prototype.Zq=function(){};g.b(tGM,vv);g.J=tGM.prototype;g.J.init=function(e,N,y){var w=this;vv.prototype.init.call(this,e,N,y);N.questionText&&i4M(this,N.questionText);N.answers&&N.answers.forEach(function(E,A){g.m(E,oH)&&D1M(w,g.m(E,oH),y,A)}); this.Z=new Set(this.N.map(function(E){return E.J.J})); (e=N.noneOfTheAbove)&&(e=g.m(e,Eww))&&ukH(this,e,y);N.surveyAdQuestionCommon&&VGH(this,N.surveyAdQuestionCommon);N.submitEndpoints&&(this.submitEndpoints=N.submitEndpoints);this.Y(this.element,"change",this.onChange);this.show()}; g.J.Zq=function(){qu0(this,!1);this.j.N.subscribe("l",this.DKB,this)}; g.J.onChange=function(e){e.target===this.noneOfTheAbove.button.J?Z4E(this):this.Z.has(e.target)&&(this.noneOfTheAbove.button.toggleButton(!1),qu0(this,!0))}; g.J.DKB=function(){var e=[],N=this.N.reduce(function(E,A,T){var p=A.toggledLoggingParams;A.J&&A.J.isToggled()&&p&&(E.push(p),e.push(T));return E},[]).join("&"),y=this.submitEndpoints.map(function(E){if(!E.loggingUrls)return E; E=g.gi(E);E.loggingUrls=E.loggingUrls.map(function(A){A.baseUrl&&(A.baseUrl=mV(A.baseUrl,N));return A}); return E}); if(y){y=g.c(y);for(var w=y.next();!w.done;w=y.next())w=w.value,this.layoutId?Kn(this.Y1,w,this.layoutId,this.macros):g.t0(Error("Missing layoutId for multi_select_question."))}this.api.X().T("supports_multi_step_on_desktop")&&this.Kh(e)}; g.J.clear=function(){this.api.X().T("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.b(zd,vv);zd.prototype.init=function(e,N,y){var w=this;vv.prototype.init.call(this,e,N,y);N.questionText&&i4M(this,N.questionText);N.answers&&N.answers.forEach(function(E,A){g.m(E,oH)&&D1M(w,g.m(E,oH),y,A)}); N.surveyAdQuestionCommon?VGH(this,N.surveyAdQuestionCommon):g.t0(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(N)));this.show()}; zd.prototype.clear=function(){this.api.X().T("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.b(i9,lj);i9.prototype.init=function(e,N,y){var w=this;lj.prototype.init.call(this,e,N,y);if(this.api.X().T("supports_multi_step_on_desktop")){var E;this.conditioningRules=(E=N.conditioningRules)!=null?E:[];var A;this.N=(A=N.questions)!=null?A:[];var T;((T=N.questions)==null?0:T.length)&&Q6F(this,0)}else(N.questions||[]).forEach(function(p){g.m(p,Pr)?j6E(w,g.m(p,Pr),y):g.m(p,X4)&&nc0(w,g.m(p,X4),y)}); this.show()}; i9.prototype.clear=function(){this.api.X().T("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; i9.prototype.j=function(e){var N=this;if(this.api.X().T("supports_multi_step_on_desktop")){var y;if((y=this.conditioningRules)==null?0:y.length){var w;if(e.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(E){return E.questionIndex===N.J})==null)g.t0(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(function(E){if(E.questionIndex===N.J)switch(E.condition){case "CONDITION_ALL_OF":var A;if((A=E.answerIndices)==null?0:A.every(function(p){return e.includes(p)}))w=E.nextQuestionIndex; break;case "CONDITION_ANY_OF":var T;if((T=E.answerIndices)==null?0:T.some(function(p){return e.includes(p)}))w=E.nextQuestionIndex; break;default:g.t0(Error("Expected specified condition in survey conditioning rules."))}}),w!=null)Q6F(this,w); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.t0(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.b(D_,lj); D_.prototype.init=function(e,N,y){var w=this;lj.prototype.init.call(this,e,N,y);e=N.timeoutSeconds||0;if(typeof e!=="number"||e<0)g.t0(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+e));else if(N.timeoutCommands)if(N.text)if(N.ctaButton&&g.m(N.ctaButton,g.zR))if(N.brandImage)if(N.backgroundImage&&g.m(N.backgroundImage,iS)&&g.m(N.backgroundImage,iS).landscape){this.layoutId||g.t0(Error("Missing layoutId for survey interstitial."));m1M(this.interstitial,g.m(N.backgroundImage, iS).landscape);m1M(this.logoImage,N.brandImage);g.AL(this.text,g.SY(N.text));var E=["ytp-ad-survey-interstitial-action-button"];E.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new Vv(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,E);g.Q(this,this.actionButton);this.actionButton.yB(this.N);this.actionButton.init(TV("button"),g.m(N.ctaButton,g.zR),y);this.actionButton.show();this.J=new B2(this.api,e*1E3);this.J.subscribe("g",function(){w.transition.hide()}); g.Q(this,this.J);this.Y(this.element,"click",function(A){var T=A.target===w.interstitial;A=w.actionButton.element.contains(A.target);if(T||A)if(w.transition.hide(),T)w.api.onAdUxClicked(w.componentType,w.layoutId)}); this.transition.show(100)}else g.t0(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.t0(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.t0(Error("SurveyTextInterstitialRenderer has no button."));else g.t0(Error("SurveyTextInterstitialRenderer has no text."));else g.t0(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; D_.prototype.clear=function(){this.hide()}; D_.prototype.show=function(){H4M(!0);lj.prototype.show.call(this)}; D_.prototype.hide=function(){H4M(!1);lj.prototype.hide.call(this)};g.b(gV,sZ);g.J=gV.prototype; g.J.init=function(e,N){sZ.prototype.init.call(this,e,N,{});if(N.durationMilliseconds){if(N.durationMilliseconds<0){g.t0(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+N.durationMilliseconds));return}this.N=N.durationMilliseconds}else this.N=this.J.WU();var y;if((y=N.previewText)==null||!y.text||g.kw(N.previewText.text))g.t0(Error("No text is returned for AdPreview."));else{this.Z=N.previewText;N.previewText.isTemplated||g.AL(this.K,N.previewText.text);var w; if(((w=this.api.getVideoData(1))==null?0:w.al)&&N.previewImage){var E,A;(e=((A=dL(((E=N.previewImage)==null?void 0:E.sources)||[],52,!1))==null?void 0:A.url)||"")&&e.length?(this.previewImage=new g.Mu({S:"img",B:"ytp-preview-ad__image",V:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",e),g.Q(this,this.previewImage),this.previewImage.yB(this.element)):g.t0(Error("Failed to get imageUrl in AdPreview."))}else this.K.classList.add("ytp-preview-ad__text--padding--wide")}}; g.J.clear=function(){this.hide()}; g.J.hide=function(){eQ(this);sZ.prototype.hide.call(this)}; g.J.show=function(){aM(this);sZ.prototype.show.call(this)}; g.J.w2=function(){this.hide()}; g.J.t3=function(){if(this.J){var e=this.J.getProgressState();if(e!=null&&e.current)if(e=1E3*e.current,e>=this.N)this.transition.hide();else{var N;if((N=this.Z)==null?0:N.isTemplated)if(N=Math.max(0,Math.ceil((this.N-e)/1E3)),N!==this.j){var y,w;(e=(y=this.Z)==null?void 0:(w=y.text)==null?void 0:w.replace("{TIME_REMAINING}",String(N)))&&g.AL(this.K,e);this.j=N}}}};g.b(Va,lj); Va.prototype.init=function(e,N){lj.prototype.init.call(this,e,N,{});var y,w;if((e=((w=dL(((y=N.image)==null?void 0:y.sources)||[],KeP(N),!0))==null?void 0:w.url)||"")&&e.length){y=this.hW("ytp-ad-avatar");y.src=e;var E,A;if(w=(E=N.interaction)==null?void 0:(A=E.accessibility)==null?void 0:A.label)y.alt=w;switch(N.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(N.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.t0(Error("Failed to get imageUrl in AdAvatar."))}; Va.prototype.clear=function(){this.hide()}; Va.prototype.onClick=function(e){lj.prototype.onClick.call(this,e)};g.b(fe,lj); fe.prototype.init=function(e,N){lj.prototype.init.call(this,e,N,{});var y;e=(y=N.label)==null?void 0:y.content;if((y=e!=null&&!g.kw(e))||N.iconImage){y&&(this.buttonText=new g.Mu({S:"span",B:"ytp-ad-button-vm__text",b9:e}),g.Q(this,this.buttonText),this.buttonText.yB(this.element));var w,E,A=((w=N.interaction)==null?0:(E=w.accessibility)==null?0:E.label)||y?e:"";A&&G1(this.element,A+" This link opens in new tab");OH(this.element);if(N.iconImage){w=void 0;if(N.iconImage){a:{E=N.iconImage;if(E.sources)for(E= g.c(E.sources),e=E.next();!e.done;e=E.next())if(e=e.value,A=void 0,(A=e.clientResource)==null?0:A.imageName){E=e;break a}E=void 0}if(E){var T;w={iconType:(T=E.clientResource)==null?void 0:T.imageName}}}T=g1(w,!1,this.N);T!=null&&(this.buttonIcon=new g.Mu({S:"span",B:"ytp-ad-button-vm__icon",W:[T]}),g.Q(this,this.buttonIcon),N.iconLeading?(yp(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):y?(this.buttonIcon.yB(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): (this.buttonIcon.yB(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(N.style){case "AD_BUTTON_STYLE_TRANSPARENT":this.element.classList.add("ytp-ad-button-vm--style-transparent");break;case "AD_BUTTON_STYLE_FILLED_WHITE":this.element.classList.add("ytp-ad-button-vm--style-filled-white");break;case "AD_BUTTON_STYLE_FILLED":this.element.classList.add(this.J?"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(N.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.uA(Error("AdButton does not have label or an icon."))}; fe.prototype.clear=function(){this.hide()}; fe.prototype.onClick=function(e){lj.prototype.onClick.call(this,e)};g.b(We1,sZ);g.J=We1.prototype; g.J.init=function(e,N){sZ.prototype.init.call(this,e,N,{});this.api.X().T("enable_larger_flyout_cta_on_desktop")&&(this.element.classList.add("ytp-ad-avatar-lockup-card--large"),this.hW("ytp-ad-avatar-lockup-card__avatar_and_text_container").classList.add("ytp-ad-avatar-lockup-card__avatar_and_text_container--large"),this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline--large"),this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--large"),this.adButton.element.classList.add("ytp-ad-avatar-lockup-card__button--large"), this.adAvatar.element.classList.add("ytp-ad-avatar-lockup-card__ad_avatar--large"),yp(this.hW("ytp-ad-avatar-lockup-card__avatar_and_text_container"),this.adAvatar.element,0));if(e=g.m(N.avatar,mO)){var y=N.headline;if(y){var w=N.description;if(w){var E=g.m(N.button,Ke);E?(this.adAvatar.init(TV("ad-avatar"),e),this.headline.init(TV("ad-simple-attributed-string"),new zF(y)),this.description.init(TV("ad-simple-attributed-string"),new zF(w)),y.content&&y.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"), this.adButton.init(TV("ad-button"),E),this.startMilliseconds=N.startMs||0,this.api.OW()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.Jt.bind(this)),aM(this)):g.t0(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.t0(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.t0(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.t0(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; g.J.t3=function(){if(this.J){var e=this.J.getProgressState();e&&e.current&&1E3*e.current>=this.startMilliseconds&&(eQ(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.J.w2=function(){this.clear()}; g.J.onClick=function(e){this.api.pauseVideo();sZ.prototype.onClick.call(this,e)}; g.J.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.Jt.bind(this))}; g.J.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();sZ.prototype.show.call(this)}; g.J.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();sZ.prototype.hide.call(this)}; g.J.Jt=function(e){e==="hidden"?this.show():this.hide()};g.b(tM,lj);g.J=tM.prototype; g.J.init=function(e,N){lj.prototype.init.call(this,e,N,{});if(!N.label||g.kw(N.label))g.t0(Error("No label is returned for SkipAdButton."));else if(g.AL(this.j,N.label),e=g1({iconType:"SKIP_NEXT_NEW"}),e==null)g.t0(Error("Unable to retrieve icon for SkipAdButton"));else if(this.K=new g.Mu({S:"span",B:"ytp-skip-ad-button__icon",W:[e]}),g.Q(this,this.K),this.K.yB(this.element),this.api.X().experiments.gP("enable_skip_to_next_messaging")&&(N=g.Ly(N.targetId)))this.N=!0,this.element.setAttribute("data-tooltip-target-id",N), this.element.setAttribute("data-tooltip-target-fixed","")}; g.J.onClick=function(e){e&&e.preventDefault();var N,y;GvM(e,{contentCpn:(y=(N=this.api.getVideoData(1))==null?void 0:N.clientPlaybackNonce)!=null?y:""})===0?this.api.Mg("onAbnormalityDetected"):(lj.prototype.onClick.call(this,e),this.api.Mg("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; g.J.clear=function(){this.J.reset();this.hide()}; g.J.hide=function(){lj.prototype.hide.call(this)}; g.J.show=function(){this.J.start();lj.prototype.show.call(this);this.N&&this.api.X().experiments.gP("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.b(O4P,sZ);g.J=O4P.prototype; g.J.init=function(e,N){sZ.prototype.init.call(this,e,N,{});e=g.m(N.preskipState,owT);if(this.j||!this.api.X().experiments.gP("disable_ad_preview_for_instream_ads")){if(!e){g.t0(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}var y;(y=this.N)==null||y.init(TV("preview-ad"),e);(y=this.N)!=null&&(y.transition.show(100),y.show())}(y=g.m(N.skippableState,hXk))?(N.skipOffsetMilliseconds!=null?this.skipOffsetMilliseconds=N.skipOffsetMilliseconds:(g.uA(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds= 5E3),this.K.init(TV("skip-button"),y),this.show()):g.t0(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; g.J.show=function(){aM(this);sZ.prototype.show.call(this)}; g.J.hide=function(){!this.isSkippable&&this.N?this.N.hide():this.K&&this.K.hide();eQ(this);sZ.prototype.hide.call(this)}; g.J.clear=function(){var e;(e=this.N)==null||e.clear();this.K&&this.K.clear();eQ(this);sZ.prototype.hide.call(this)}; g.J.w2=function(){this.hide()}; g.J.t3=function(){if(1E3*this.J.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var e;(e=this.N)!=null&&e.transition.hide();(e=this.K)!=null&&(e.transition.show(),e.show())}};g.b(u9,lj); u9.prototype.init=function(e,N){lj.prototype.init.call(this,e,N,{});if(N.label){var y;((y=N.label)==null?0:y.content)&&!g.kw(N.label.content)&&(this.linkText=new g.Mu({S:"span",B:"ytp-visit-advertiser-link__text",b9:N.label.content}),g.Q(this,this.linkText),this.linkText.yB(this.element));var w,E;if((w=N.interaction)==null?0:(E=w.accessibility)==null?0:E.label)G1(this.element,N.interaction.accessibility.label+" This link opens in new tab");else{var A;((A=N.label)==null?0:A.content)&&!g.kw(N.label.content)&&G1(this.element, N.label.content+" This link opens in new tab")}OH(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.t0(Error("No label found in VisitAdvertiserLink."))}; u9.prototype.onClick=function(e){lj.prototype.onClick.call(this,e);this.api.onAdUxClicked(this.componentType,this.layoutId)}; u9.prototype.clear=function(){this.hide()};g.b(qr,lj); qr.prototype.init=function(e,N,y,w){lj.prototype.init.call(this,e,N,{});if(N.skipOrPreview){y=N.skipOrPreview;e=g.m(y,cV5);y=g.m(y,owT);var E,A=this.api.X().T("clean_player_style_fix_on_web")&&((E=this.api.getVideoData())==null?void 0:E.isDaiEnabled());e?(this.Af=new O4P(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,this.N),g.Q(this,this.Af),this.Af.yB(this.D),this.Af.init(TV("skip-ad"),e)):!y||this.api.X().experiments.gP("disable_ad_preview_for_instream_ads")&&!A||(this.j=new gV(this.api, this.layoutId,this.interactionLoggingClientData,this.Y1,this.N,1),g.Q(this,this.j),this.j.yB(this.D),this.j.init(TV("ad-preview"),y),E=this.j,E.transition.show(100),E.show());if(E=g.m(N.skipOrPreview,cV5))var T=E.skipOffsetMilliseconds}N.playerAdCard&&(E=g.m(N.playerAdCard,bq0))&&(this.playerAdCard=new We1(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,this.N),g.Q(this,this.playerAdCard),this.playerAdCard.yB(this.i9),this.playerAdCard.init(TV("ad-avatar-lockup-card"),E));E=this.api.X().T("disable_ad_duration_remaining_for_instream_video_ads")|| N.adPodIndex!==void 0;N.adBadgeRenderer&&((e=g.m(N.adBadgeRenderer,Hv))?(this.K=new DY(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,E),g.Q(this,this.K),this.K.yB(this.J),this.K.init(TV("ad-badge"),e)):g.t0(Error("AdBadgeViewModel is not found in player overlay layout.")));N.adPodIndex&&(e=g.m(N.adPodIndex,M0Z))&&(this.adPodIndex=new gh(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,g.m(N.skipOrPreview,cV5)===void 0),g.Q(this,this.adPodIndex),this.adPodIndex.yB(this.J), this.adPodIndex.init(TV("ad-pod-index"),e));N.adInfoRenderer&&(e=g.m(N.adInfoRenderer,IQ))&&(this.adInfoButton=new GV(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,this.element,void 0,E),g.Q(this,this.adInfoButton),this.api.X().T("enable_ad_pod_index_autohide")&&this.K!==void 0?this.J.insertBefore(this.adInfoButton.element,this.K.element.nextSibling):this.adInfoButton.yB(this.J),this.adInfoButton.init(TV("ad-info-hover-text-button"),e,this.macros));var p;e=this.api.X().T("clean_player_style_fix_on_web")&& ((p=this.api.getVideoData())==null?void 0:p.isDaiEnabled());N.adDurationRemaining&&(!E||e)&&(p=g.m(N.adDurationRemaining,yVq))&&(this.adDurationRemaining=new I4(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,this.N,w.videoAdDurationSeconds,E),g.Q(this,this.adDurationRemaining),E&&this.adPodIndex!==void 0?this.J.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adInfoButton!==void 0?E?this.J.insertBefore(this.adDurationRemaining.element,this.adInfoButton.element.nextSibling): this.J.insertBefore(this.adDurationRemaining.element,this.adInfoButton.element):this.adDurationRemaining.yB(this.J),this.adDurationRemaining.init(TV("ad-duration-remaining"),p,this.macros),E&&this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));N.visitAdvertiserLink&&(w=g.m(N.visitAdvertiserLink,B5f))&&(this.visitAdvertiserLink=new u9(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1),g.Q(this,this.visitAdvertiserLink),this.visitAdvertiserLink.yB(this.J), this.visitAdvertiserLink.init(TV("visit-advertiser-link"),w));N.adDisclosureBanner&&(N=g.m(N.adDisclosureBanner,Ykf))&&(this.adDisclosureBanner=new Vd(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1),g.Q(this,this.adDisclosureBanner),this.adDisclosureBanner.yB(this.Kh),this.adDisclosureBanner.init(TV("ad-disclosure-banner"),N));this.api.X().T("show_preskip_progress_bar_for_skippable_ads")&&(this.Z=new up(this.api,this.N,T,E),g.Q(this,this.Z),g.Pb(this.api,this.Z.element,4));this.show()}; qr.prototype.clear=function(){this.hide()};g.b(Rw3,lj);g.J=Rw3.prototype; g.J.init=function(e,N){lj.prototype.init.call(this,e,N,{});if(N!=null&&N.title)if(e=N.title)if(this.headline.init(TV("ad-simple-attributed-string"),new zF(e)),e=g.m(N.moreInfoButton,Ke)){if(this.moreInfoButton.init(TV("ad-button"),e),N.descriptions)N.descriptions.length>0&&(e=N.descriptions[0])&&(this.J=new ip(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1),g.Q(this,this.J),this.J.yB(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.J.init(TV("ad-simple-attributed-string"), new zF(e))),N.descriptions.length>1&&(N=N.descriptions[1])&&(this.N=new ip(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1),g.Q(this,this.N),this.N.yB(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.N.init(TV("ad-simple-attributed-string"),new zF(N)))}else g.t0(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.t0(Error("No headline found in AdGridCardText."));else g.t0(Error("No headline found in AdGridCardText."))}; g.J.onClick=function(e){lj.prototype.onClick.call(this,e);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.J.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var e;(e=this.J)==null||e.clear();var N;(N=this.N)==null||N.clear()}; g.J.hide=function(){this.headline.hide();this.moreInfoButton.hide();var e;(e=this.J)==null||e.hide();var N;(N=this.N)==null||N.hide();lj.prototype.hide.call(this)}; g.J.show=function(){lj.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var e;(e=this.J)==null||e.show();var N;(N=this.N)==null||N.show()};g.b(Z_,lj);Z_.prototype.init=function(e,N){lj.prototype.init.call(this,e,N,{});if(N!=null&&N.gridCards)if(N.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.t0(Error("Only single column style is currently supported in AdGridCardCollection."));else for(e=g.c(N.gridCards),N=e.next();!N.done;N=e.next()){if(N=g.m(N.value,Skq)){var y=new Rw3(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1);g.Q(this,y);y.yB(this.element);y.init(TV("ad-grid-card-text"),N);this.J.push(y)}}else g.t0(Error("No grid cards found in AdGridCardCollection."))}; Z_.prototype.show=function(){for(var e=g.c(this.J),N=e.next();!N.done;N=e.next())N.value.show();lj.prototype.show.call(this)}; Z_.prototype.clear=function(){this.hide();for(var e=g.c(this.J),N=e.next();!N.done;N=e.next())N.value.clear()}; Z_.prototype.hide=function(){for(var e=g.c(this.J),N=e.next();!N.done;N=e.next())N.value.hide();lj.prototype.hide.call(this)};g.b(xL,sZ);g.J=xL.prototype;g.J.init=function(e,N,y,w,E){E=E===void 0?0:E;sZ.prototype.init.call(this,e,N,y,w);this.playerProgressOffsetMs=E;aM(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.Kn.bind(this));this.api.addEventListener("resize",this.Nv.bind(this));this.api.OW()?(this.N=!0,this.api.c7(!0),this.show()):this.hide()}; g.J.t3=function(){if(this.J){var e=this.J.getProgressState();e&&e.current&&!this.N&&1E3*e.current>=this.playerProgressOffsetMs&&(this.N=!0,this.api.c7(!0),this.show())}}; g.J.w2=function(){this.N&&this.api.c7(!1);this.hide()}; g.J.clear=function(){this.api.c7(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.Kn.bind(this));this.api.removeEventListener("resize",this.Nv.bind(this));eQ(this);this.hide()}; g.J.hide=function(){GU1(!1);sZ.prototype.hide.call(this)}; g.J.show=function(){GU1(!0);sZ.prototype.show.call(this)};g.b(U13,xL);g.J=U13.prototype; g.J.init=function(e,N,y,w){if(N!=null&&N.adGridCardCollection)if(N!=null&&N.adButton){var E=Number(N.playerProgressOffsetMs||"0");isNaN(E)?xL.prototype.init.call(this,e,N,y,w):xL.prototype.init.call(this,e,N,y,w,E);e=N.headline;y=g.m(N.adAvatar,mO);e&&y?(this.headline=new ip(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1),g.Q(this,this.headline),this.headline.yB(this.hW("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(TV("ad-simple-attributed-string"),new zF(e)), this.adAvatar=new Va(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1),g.Q(this,this.adAvatar),this.adAvatar.yB(this.hW("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(TV("ad-avatar"),y)):this.j.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");e=g.m(N.adGridCardCollection,Ffw);this.adGridCardCollection.init(TV("ad-grid-card-collection"),e);N=g.m(N.adButton,Ke);this.adButton.init(TV("ad-button"),N); this.hide()}else g.t0(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.t0(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; g.J.onClick=function(e){(this.adButton&&g.Ex(this.adButton.element,e.target)||this.adAvatar&&g.Ex(this.adAvatar.element,e.target))&&this.api.pauseVideo();xL.prototype.onClick.call(this,e);this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.J.Nv=function(){}; g.J.clear=function(){this.hide();var e;(e=this.headline)==null||e.clear();var N;(N=this.adAvatar)==null||N.clear();this.adGridCardCollection.clear();this.adButton.clear();xL.prototype.clear.call(this)}; g.J.show=function(){var e;(e=this.headline)==null||e.show();var N;(N=this.adAvatar)==null||N.show();this.adGridCardCollection.show();this.adButton.show();xL.prototype.show.call(this)}; g.J.hide=function(){var e;(e=this.headline)==null||e.hide();var N;(N=this.adAvatar)==null||N.hide();this.adGridCardCollection.hide();this.adButton.hide();xL.prototype.hide.call(this)}; g.J.Kn=function(e){e==="transitioning"?(this.K.classList.remove("ytp-ad-underlay-clickable"),this.show()):e==="visible"?this.K.classList.add("ytp-ad-underlay-clickable"):e==="hidden"&&(this.hide(),this.K.classList.remove("ytp-ad-underlay-clickable"))};g.b(jT,lj); jT.prototype.init=function(e,N){lj.prototype.init.call(this,e,N,{});if(N.attributes===void 0)g.t0(Error("No attributes found in AdDetailsLineViewModel."));else if(N.style===void 0)g.t0(Error("No style found in AdDetailsLineViewModel."));else{e=g.c(N.attributes);for(var y=e.next();!y.done;y=e.next())if(y=y.value,y.text!==void 0){y=y.text;var w=N.style,E=new ip(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1);g.Q(this,E);E.yB(this.element);a:switch(w){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":w="ytp-ad-details-line__text--style-responsive"; break a;default:w="ytp-ad-details-line__text--style-standard"}E.element.classList.add(w);E.init(TV("ad-simple-attributed-string"),new zF(y));this.J.push(E)}this.show()}}; jT.prototype.show=function(){this.J.forEach(function(e){e.show()}); lj.prototype.show.call(this)}; jT.prototype.clear=function(){this.hide()}; jT.prototype.hide=function(){this.J.forEach(function(e){e.hide()}); lj.prototype.hide.call(this)};g.b(ne,lj);ne.prototype.init=function(e,N){lj.prototype.init.call(this,e,N,{});var y,w;(e=((w=dL(((y=N.image)==null?void 0:y.sources)||[]))==null?void 0:w.url)||"")&&e.length?(y=this.hW("ytp-image-background-image"),g.$0(y,"backgroundImage","url("+e+")"),N.blurLevel!==void 0&&g.$0(y,"filter","blur("+N.blurLevel+"px)"),N.gradient!==void 0&&(N=new g.W({S:"div",dP:["ytp-image-background--gradient-vertical"]}),g.Q(this,N),N.yB(this.element)),this.show()):g.t0(Error("Failed to get imageUrl in ImageBackground."))}; ne.prototype.clear=function(){this.hide()};g.b(LeM,sZ);g.J=LeM.prototype;g.J.init=function(e,N){sZ.prototype.init.call(this,e,N,{});g.$0(this.K,"stroke-dasharray","0 "+this.N);this.show()}; g.J.clear=function(){this.hide()}; g.J.hide=function(){eQ(this);sZ.prototype.hide.call(this)}; g.J.show=function(){aM(this);sZ.prototype.show.call(this)}; g.J.w2=function(){this.hide()}; g.J.t3=function(){if(this.J){var e=this.J.getProgressState();e!=null&&e.current!=null&&g.$0(this.K,"stroke-dasharray",e.current/e.seekableEnd*this.N+" "+this.N)}};g.b(Qa,lj); Qa.prototype.init=function(e,N){lj.prototype.init.call(this,e,N,{});if(aPn(N)){this.adAvatar=new Va(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1);g.Q(this,this.adAvatar);this.adAvatar.yB(this.hW("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(TV("ad-avatar"),g.m(N.adAvatar,mO));this.headline=new ip(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1);g.Q(this,this.headline);this.headline.yB(this.hW("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(TV("ad-simple-attributed-string"),new zF(N.headline));if(e=g.m(N.adDetailsLine,$Mw))this.detailsLine=new jT(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1),g.Q(this,this.detailsLine),this.detailsLine.yB(this.hW("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(TV("ad-details-line"),e);this.adButton=new fe(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,!0);g.Q(this,this.adButton); this.adButton.yB(this.hW("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(TV("ad-button"),g.m(N.adButton,Ke));e=this.api.T("disable_ad_preview_for_instream_ads");this.adBadge=new DY(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,e);g.Q(this,this.adBadge);this.adBadge.yB(this.j);this.adBadge.init(TV("ad-badge"),g.m(N.adBadge,Hv));this.adInfoButton=new GV(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,this.element, void 0,e);g.Q(this,this.adInfoButton);this.adInfoButton.yB(this.j);this.adInfoButton.init(TV("ad-info-hover-text-button"),g.m(N.adInfoRenderer,IQ),this.macros);if(e=g.m(N.skipAdButton,hXk))this.skipAdButton=new tM(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1),g.Q(this,this.skipAdButton),this.skipAdButton.yB(this.element),this.skipAdButton.init(TV("skip-button"),e);this.N=new XD(N.durationMilliseconds);g.Q(this,this.N);if(e=g.m(N.countdownViewModel,kwk))this.J=new LeM(this.api, this.layoutId,this.interactionLoggingClientData,this.Y1,this.N),g.Q(this,this.J),this.J.yB(this.hW("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.J.init(TV("timed-pie-countdown"),e);if(N=g.m(N.imageBackground,lZV))this.imageBackground=new ne(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1),g.Q(this,this.imageBackground),this.imageBackground.yB(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"), this.imageBackground.init(TV("image-background"),N);this.show();this.element.focus()}}; Qa.prototype.clear=function(){g.g9(this.K);this.hide()}; Qa.prototype.show=function(){s6J(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();lj.prototype.show.call(this)}; Qa.prototype.hide=function(){s6J(!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.J&&this.J.hide();this.imageBackground&&this.imageBackground.hide();lj.prototype.hide.call(this)};var Ugw="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.b(Wv,Hq); Wv.prototype.j=function(e){var N=e.id,y=e.content,w=y.componentType;if(!Ugw.includes(w))switch(e.actionType){case 1:e=this.api;var E=this.Y1,A=y.layoutId,T=y.interactionLoggingClientData,p=y instanceof R0?y.ZH:!1,C=y instanceof R0||y instanceof kN?y.uC:!1;T=T===void 0?{}:T;p=p===void 0?!1:p;C=C===void 0?!1:C;switch(w){case "invideo-overlay":e=new SuE(e,A,T,E);break;case "player-overlay":e=new qE(e,A,T,E,new Nh(e),C);break;case "player-overlay-layout":e=new qr(e,A,T,E,new Nh(e));break;case "survey":e= new i9(e,A,T,E);break;case "ad-action-interstitial":e=new $1P(e,A,T,E,p,C);break;case "video-interstitial-buttoned-centered":e=new Qa(e,A,T,E);break;case "survey-interstitial":e=new D_(e,A,T,E);break;case "ad-message":e=new PD3(e,A,T,E,new Nh(e,1));break;case "player-underlay":e=new IPJ(e,A,T,E);break;case "display-underlay-text-grid-cards":e=new U13(e,A,T,E,new Nh(e));break;default:e=null}if(!e){g.uA(Error("No UI component returned from ComponentFactory for type: "+w));break}g.P4(this.N,N)?g.uA(Error("Ad UI component already registered: "+ N)):this.N[N]=e;e.bind(y);y instanceof Wt?this.K?this.K.append(e.sE):g.uA(Error("Underlay view was not created but UnderlayRenderer was created")):this.L.append(e.sE);break;case 2:N=eo1(this,e);if(N==null)break;N.bind(y);break;case 3:y=eo1(this,e),y!=null&&(g.JV(y),g.P4(this.N,N)?(y=this.N,N in y&&delete y[N]):g.uA(Error("Ad UI component does not exist: "+N)))}}; Wv.prototype.fh=function(){g.pq(Object.values(this.N));this.N={};Hq.prototype.fh.call(this)};g.b(Nc5,g.dH);g.J=Nc5.prototype;g.J.create=function(){try{y1H(this),this.load(),this.created=!0,y1H(this)}catch(e){YN(e instanceof Error?e:String(e))}}; g.J.load=function(){try{A11(this)}finally{L7(kL(this.J).mW)&&this.player.Go("ad",1)}}; g.J.destroy=function(){var e=this.player.getVideoData(1);this.J.J.ji.Jg(e&&e.clientPlaybackNonce||"");this.unload();this.created=!1}; g.J.unload=function(){g.dH.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(N){YN(N instanceof Error?N:String(N))}if(this.N!=null){var e=this.N;this.N=null;e.dispose()}this.K.reset()}; g.J.uZ=function(){return!1}; g.J.getAdState=function(){return-1}; g.J.getOptions=function(){return Object.values(Gyq)}; g.J.uv=function(e,N){N=N===void 0?{}:N;switch(e){case "replaceUrlMacros":return e=N,e.url?(N=BU_(this.player),Object.assign(N,e.w21),e=g.Vx(e.url,N)):e=null,e;case "onAboutThisAdPopupClosed":this.Jp(N);break;case "executeCommand":e=N;e.command&&e.layoutId&&this.executeCommand(e);break;default:return null}}; g.J.Wi=function(e){var N;return!((N=this.J.J.p$)==null||!N.get().Wi(e))}; g.J.Jp=function(e){e.isMuted&&A00(kL(this.J).D3,kL(this.J).iL,e.layoutId);this.H1&&this.H1.Jp()}; g.J.executeCommand=function(e){kL(this.J).Y1.executeCommand(e.command,e.layoutId)};g.jM("yt.player.Application.create",g.hP.create);g.jM("yt.player.Application.createAlternate",g.hP.create);ucP(DL(),Rfw);var LCk=g.nM("ytcsi.tick");LCk&&LCk("pe");g.Po("ad",Nc5);g.b(g.Gd,g.x);g.Gd.prototype.start=function(e,N,y){this.config={from:e,ZF:N,duration:y,startTime:(0,g.iC)()};this.next()}; g.Gd.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.Gd.prototype.next=function(){if(this.config){var e=this.config,N=e.from,y=e.ZF,w=e.duration;e=e.startTime;var E=(0,g.iC)()-e;e=this.J;w=HKn(e,E/w);if(w==0)e=e.G;else if(w==1)e=e.U;else{E=C9(e.G,e.L,w);var A=C9(e.L,e.Z,w);e=C9(e.Z,e.U,w);E=C9(E,A,w);A=C9(A,e,w);e=C9(E,A,w)}e=g.Ja(e,0,1);this.callback(N+(y-N)*e);e<1&&this.delay.start()}};g.b(g.Uy,g.W);g.J=g.Uy.prototype;g.J.hasSuggestions=function(){return this.suggestionData.length>0}; g.J.zB=function(){this.N&&this.scrollTo(this.scrollPosition-this.containerWidth)}; g.J.show=function(){g.W.prototype.show.call(this);$j5(this)}; g.J.cN=function(){this.N&&this.scrollTo(this.scrollPosition+this.containerWidth)}; g.J.bz=function(){this.I9(this.api.Fz().getPlayerSize())}; g.J.I9=function(e){var N=this.api.isEmbedsShortsMode()?.5625:16/9,y=this.api.Nr();e=e.width-(y?112:58);y=Math.ceil(e/(y?320:192));var w=(e-y*8)/y;N=Math.floor(w/N);for(var E=g.c(this.J),A=E.next();!A.done;A=E.next())A=A.value.hW("ytp-suggestion-image"),A.style.width=w+"px",A.style.height=N+"px";this.suggestions.element.style.height=N+"px";this.j=w;this.U=N;this.containerWidth=e;this.columns=y;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.Le(this)}; g.J.onVideoDataChange=function(){var e=this.api.X(),N=this.api.getVideoData();this.Z=N.hs?!1:e.j;this.suggestionData=N.suggestions?g.CG(N.suggestions,function(y){return y&&!y.playlistId}):[]; M_9(this);N.hs?this.title.update({title:g.SO("Mais v\u00eddeos de $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:N.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"Mais Shorts":"Mais v\u00eddeos"})}; g.J.scrollTo=function(e){e=g.Ja(e,this.containerWidth-this.suggestionData.length*(this.j+8),0);this.G.start(this.scrollPosition,e,1E3);this.scrollPosition=e;g.Le(this);$j5(this)};})(_yt_player);