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 H_,zp8,Hnc,Mk,f6a,LZu,t8,uaY,EA,SA6,nn,gc,Z6,X_Z,vv8,y8A,Nk,IJ,qAn,MYp,CLk,tY8,rc,sA,B_,P_,aJ,UA,EvJ,c_,Kn,dc,nvv,gvA,Znk,Gu_,$ku,Hu,jJ_,FZ6,vu,ys,qs,Onn,ovn,J89,Ncp,I6_,A8Y,YA6,r8n,ET,sJa,ns,Bc6,c8Z,gJ,inA,hpZ,GY,WZp,xO,ou,rJ,sT,Bu,Pu,Dk_,KZA,au,iR,UT,VYL,dkn,mka,w_p,ht,kuL,Wu,DL,Ks,Tc8,ep_,dJ,RpY,Qu9,HY,zmc,Sj,Hsa,fLp,Lr,bsn,LBY,uxJ,E2,STc,vOv,EOa,Z3,t5k,qTZ,nOp,Zsc,$sJ,$T,jj,xT,oG,O2,FBY,Os8,JC,NI,IG,s2,BY,PY,aG,U2,cY,ILk,i4,D3,Atp,YTY,Vi,mz,PRu,ej,Qr,Ho,aLZ,zi,UsZ,ct_,fS,l4,b5, LS,is_,u5,Xc,WB9,vo,yr,q4,KBp,Zc,V5a,ds9,ms_,Ds9,gC,E7,M4,wuL,kY9,emZ,lLa,Rm9,jX,Fc,xt,QG_,zW6,oU,Lzk,XYa,Hr9,S2u,uka,brp,f3A,vT_,N4,yCa,An,IU,Mj_,Bo,rC,C4A,Po,aU,co,U7,hn,i5,m8,Wo,KS,Vr,ET9,kt,pY_,Ti,eX,zH,Hq,fw,l5,Q3,RU,Lw,ur,S4,nTA,fs,XP,y3,Dc,dC,qo,ZrZ,Mo,uR,Cw,tc,E$,pw,nw,gq,Zu,G7Y,GH,$Ip,$f,jG_,xf,FP,O$,o0,Jc,No,I0,Fzc,OrL,Yf,oT9,JCa,rq,s$,a0,I3c,U$,ACY,cq,rCZ,ir,B7u,hc,Wq,Du,P4p,Kw,a3A,V3,UI_,cCZ,irY,dq,hWu,m6,wq,TH,e4,DI6,Qo,dIL,Wzu,zU,f$,bz,wY_,L$,Se,k7c,eWA,l3v,X3,vJ,yo,qO,MO,C$,tb,QU_, zeL,HSJ,bSZ,L8v,EK,ucJ,S79,p$,n$,g$,ZT,Xou,MXZ,C5c,Et9,tXY,pok,gt9,F3,xg,OK,o$,Jb,I$,Ab,jUY,r$,BJ,PJ,a$,cJ,iz,F8Y,WJ,DT,Vo,OSA,otn,d$,w$,kg,ee,lz,Q4,z2,BC6,P5L,acJ,U4L,H3,fC,cnv,iS8,heJ,bQ,LC,uQ,Sa,XV,CC,Er,Zz,FV,W8c,D48,A6,K8A,c3,iQ,m4_,lcc,TCc,Q0Z,Dz,KC,ea,fuv,L6p,bwJ,RI,zl,uPc,Qp,uT,W3,Xqv,S$a,qK,yp,h6,MK,Cm,tU,vfn,E0,q$v,gf,M4Z,ZN,Gl,$Z,jz,Cru,t4p,EfA,xZ,pqn,nfL,fcn,NK,gf_,Zwu,GHn,j0L,$on,JU,IK,AU,F6a,xoZ,Owc,ofZ,YZ,Jcu,rf,ync,vtJ,s0,Bx,aK,U0,Ac_,cx,iT,Wx,Y$J,rcv,DN,Uok,ez,Bqc,auY,df,Vp,zM,H4, cc_,ud,iwZ,SL,Xr,hou,Dov,MH,V4k,tj,EE,dou,moJ,ge,GM,eo6,RoZ,Q$v,zOA,$r,LTu,pg,kHc,SKJ,b$J,H$a,fTn,XJ8,u3L,Fr,lu6,oR,ybA,qKA,MeY,Cz_,te_,NH,CQJ,Aj,taJ,nsu,gsZ,Yr,re,P4,id,G26,hj,W4,Dl,$zv,jI9,de,FSv,m_,we,os8,Nau,A69,Izu,Yrc,TM,RR,fW,LW,uu,SB,X0,vn,Bak,PQc,y$,azJ,qa,Ma,bu,CW,tp,Eo,bR,pW,UzL,gB,hfJ,ZW,GA,$M,WSJ,Dz6,KS6,VaL,jB,dz8,F0,xM,w3k,ef8,lzu,Oo,HmZ,z4A,fNv,bma,LUc,o6,uUk,RfJ,Jp,S0A,Xxn,Na,yUu,q0u,Mz8,CTA,tzn,YM,EZ9,pxk,nZa,gZc,$Kv,Zma,rB,so,Bn,Pn,a6,Uo,cn,hp,FU9,DW,Wn,xK6,KW,Omv,V$,oZa,JUp,Nf8, INZ,dB,wB,rUL,mv,sK8,kM,TA,Bfv,eB,lu,R6,Qf,zn,HQ,imc,PTL,ul,cUu,SF,UKL,L7,f7,aN_,bl,vQ,WU_,q7,yf,p7,n7,Zy,VzZ,gj,jF,dKu,FA,DK9,klu,TfJ,e4A,o2,Jk,N7,lNL,I2,Ak,Yq,rj,R4k,sa,BQ,il,QRp,zUa,hk,Hg_,L_k,k2A,bgk,ur9,SEA,X4_,fl9,yj9,WQ,Dy,K7,qEL,dj,Vf,MLu,Cd9,tLL,Tn,Er8,eF,ll,p48,R2,grJ,Qy,nrJ,Zgp,GMn,$Hn,z9,HI,fl,bV,Ll,uV,St,jR_,XY,vI,yy,F_Y,Ogv,orc,MT,t5,Cl,pl,nl,gA,Nev,Il9,Zk,G9,$3,YE9,rj9,Pd_,sRY,alL,hUk,jt,ign,UHp,FY,x3,W_J,On,DHn,os,VLp,K_v,dH9,mH6,A5,Y3,w4c,kMp,Teu,rA,sn,eUY,BI,llc,RU8,zZ9,Lvp,PI,u0n, SoZ,XnJ,vMZ,ypu,cI,qov,MBA,CuA,dA,Vy,Kl,tBc,EMp,pnL,mo,wA,k3,gML,QY,zJ,Hr,fh,bW,Lh,GAZ,$ac,j6L,uW,XL,vr,Ei,ph,Z5,xa8,oMa,OWn,JpY,NBa,Oi,IW6,Ap9,o3,YoJ,rpn,s6v,BBn,Br,rW,Pr,a3,Ui,PuJ,aWc,Uaa,cr,iW,cpn,hx,iWZ,hZc,Wvc,Wr,Dac,D5,Kh,KvL,VB9,dan,maY,wnv,kAc,VY,dW,mE,ke,lWn,TJ,e$,RZa,eZn,wW,Q28,lW,R3,QP,Hk,zN,z8v,H79,fyY,f8,LG6,b2,Sap,XQL,vqn,ykc,qaY,MFL,Cl6,tFL,S0,Xq,vk,pQ9,Eqa,nqp,gq_,q3,Z7Y,M3,GnA,$7k,C8,tP,E6,j2_,p8,n8,FGL,gd,ZP,GN,$B,j0,Fq,xB,O6,x7n,O76,oq6,JkJ,oL,Njn,Akp,IyA,N3,IL,rk9,YaY,Plu,ck9, U7Z,AP,i7J,h8p,WG8,KGn,D7k,VFZ,YB,d7L,m7J,s6,wQc,knc,TjJ,e8A,Bk,lyv,Pk,R8J,aL,U6,zlc,ck,HlJ,i2,hP,fkA,bl_,Wk,K8,uYL,VP,LoZ,Sn9,XI_,v38,qn8,dd,Mt6,kB,TN,ttA,E3n,g3Y,Zl8,e0,l2,RL,QK,zO,Hz,f5,bp,L5,up,S_,Xg,vz,FoL,js_,xTc,o3u,Olp,NAv,$Tu,J5u,G9A,yK,qN,A5L,Ynp,r5L,E4,p5,n5,MN,BAY,gN,Ikv,akc,UTA,PVA,ZR,GO,$W,j_,c5_,ssJ,il8,Fg,hl8,Woa,DTv,KoY,Vtk,wI6,k98,TA6,el9,oe,Rl8,Q36,f5L,bh6,Ie,uLv,AZ,NN,XrJ,Sia,qiL,rN,Bz,CW8,t$u,Ee8,prY,gea,U4,ae,Zhn,neZ,$28,FE_,I5v,hZ,AxY,ip,DR,Yi9,K5,dN,ms,rxv,s3n,HO,BW9,bn,PW6, a5c,CZ,U2k,ihJ,tD,h_L,WEk,m2k,D2_,gv,Zx,Ge,jK,F9,l5Y,xF,OF,oH,QL8,IH,zuL,H8c,AD,b8u,rv,sF,BO,PO,L4_,aH,cO,hD,WO,Dx,uqn,S6Y,Xku,VM,dv,mg,wv,kF,Te,vBv,yP9,q6L,M06,C26,t0Z,eK,EBJ,bq,pka,nBJ,gBc,LT,Sy,Xy,v5,MU,CT,tu,GNa,nT,gw,ZV,$3L,jL9,G5,F4u,x3u,jy,rPa,sLu,Bdn,Fy,P2n,aP8,i8Y,O9,W4Y,huA,Ju,K48,V0Y,d39,If,Au,m3A,Yc,rw,s9,B5,P5,af,U9,c5,iq,hu,KT,VX,dw,mk,wkn,kN9,Td9,kc,ey,euv,zr,H2,f1,bv,L1,ST,XZ,zRv,v2,yC,qn,fRv,H5L,lPJ,tF,C1,S4J,EM,x7,$7,OM,on,vW6,M_A,Nn,EW_,Cpp,t_a,nWv,jeL,gWn,GOu,$N9,AF,In,Fsa,rR, sM,B2,xNn,hF,O5n,W2,DK,VC,oWv,mW,wR,JZc,k7,Tr,IR6,Rn,zd,Hw,fF,bh,LF,uh,Ss,XX,vw,Y4J,yh,CF,M0,se6,UNa,Pp6,aRZ,cZZ,i5a,WsZ,DN6,hR9,V_v,pF,nF,Gd,dNa,mNc,ZQ,$Q,kOk,TNJ,QHa,RRc,OP,o4,Jq,N0,I4,YQ,HZa,fxa,bZA,cw,ih,LgA,u9Y,SF6,Vh,dD,m3,XOu,vFp,qFk,Cnk,es,tKp,Q5,lh,ff,b0,u0,EFu,Cf,t1,Ee,pf,gG,ZE,$w,Gev,$Pc,F8,jH8,Fgu,Oe,xPv,OZ9,oE,J1,oF_,JDY,Ixv,Yw,YFY,rD_,IE,sHa,Bvn,ax9,Pn6,PH,ADJ,cDA,iZL,WH,i0,hEZ,Wgv,DE,Kf,DP6,KgL,mx,VKc,dPL,mPv,wO_,l0,keL,TvL,eEk,lx9,RE8,Qf6,z$Z,HT_,QH,fVp,HU,LkJ,uyk,S9u,X5a,vcZ,fc,vU, q96,tyv,yH,Ecp,nc9,yu8,gcn,ZTY,G5a,MyL,Cqa,bS,Lc,Xd,p5A,Si,uS,$Up,jfA,Fk9,xU9,OTu,ocY,Y9Z,JuL,t$,E5,nc,BwJ,UUu,aVp,pc,GK,cuL,NR,iTL,Wkn,s5,h$Z,e$L,DU8,Twk,U5,lVA,zz8,cU,aW,R$J,Qna,H1J,h$,b1u,LWv,uZu,SMZ,X2c,v7Y,yF_,fKk,MTL,CvL,tTA,p29,E7J,g7L,VH,Z19,d2,mu,w2,Gr6,$nu,ei,lS,FW_,jnc,RW,xn9,o7a,NR6,JF_,IKv,rFn,AF_,y7,Ct,MA,snJ,qA,tL,Eb,pt,nt,BRk,FN,aKY,ow,Ob,NA,Iw,AL,Una,Yk,sb,cF_,Pb,Ub,cb,i18,hz9,WWc,Dnp,i8,Wb,KWY,D7,Kt,V7,dnZ,d6,mC,mna,kk,l8,ev,Tw,Rw,Qa,TRn,HF_,bF9,zMv,Q4c,fQa,f2,uU,XwY,L3L,uXu,SPp, kr_,nQA,p2,pwJ,Gd_,EQp,HT,n2,ya,tl,gQA,XG,lKc,ezA,RzA,L2,tsp,$G,oQv,jZ,NDZ,IQ6,Aq6,xG,YPp,rq_,s4n,Ph9,aQZ,Jl,cqL,NX,iFY,hMk,D0c,K3Y,Al,VsJ,m0p,YG,wwZ,rl,sX,vH,QEA,Lxk,iU,Se6,y1a,WT,M9u,C0L,t9a,Ewu,Rx,pHc,eZ,Pqa,kG,lU,T6,Dw,SE,uI,vf,qt,gwY,Mt,tB,Ec,ZfA,GaY,gs,jEn,Fx6,xV8,Ofn,ow9,J1_,NGA,IEp,A16,Ye8,Fp,r1c,xj,ov,sE_,BGp,P0n,JB,aEA,UVJ,Yj,rs,sc,c1J,Bf,ifJ,av,Wxa,hrv,cf,iI,hB,Wf,DVk,Dv,Ka,KxY,V98,VR,ds,ka8,dVZ,wHJ,mVZ,mX,ws,kj,TGa,er6,lEu,T8,QWp,fg_,Hcn,eE,lI,Rv,Q_,zS,fp,bA,Lp,uA,Sh,XS,bcZ,Lu6,ud_,v6, y_,qZ,MZ,tT,pp,vCZ,XUZ,gU,y$9,Zh,GS,$U,jh,FS,oQ,JT,NZ,IQ,AT,YU,rU,sx,B6,P6,aQ,CS9,c6,hT,tiZ,W6,pU9,nCA,gC8,GKn,jWZ,wU,Fup,TS,kU,oCv,J$Y,N2Z,lA,RQ,A$k,zv,HC,fj,bb,r$L,Lj,ub,SV,sWu,ZA,Y5_,Gv,$x,PSv,B29,jV,F7,xx,OS,JN,UR_,c$n,Io,AN,rE,sS,icc,Yx,DR_,Ku9,Viu,dR9,mRc,wUp,kKL,PC,BC,Wu_,lgu,ao,Qwk,zSv,WC,HtY,cC,ib,f7L,DA,LCA,Sb6,Kj,Vv,Xba,my,yL6,wE,pbp,tv8,qbJ,C8u,MvZ,Tv,eV,lb,Ro,QT,zp,Hm,f4,gkp,$An,uG,LEc,Sd,jw9,xA8,vm,C4,yT,Mr,qr,JLA,okv,Otk,N6A,tr,I7v,swk,E1,n4,P8A,gt,Zt,Gp,$S,a7n,jd,UAa,cLk,xS,Nr,It, Ar,YS,rt,s1,Bm,Pm,at,U1,cm,iG,hr,itL,hS6,Wm,Dt,K4,VT,dt,mt,WC6,DA6,wt,Xm,dAa,mAZ,vX,yd,pP,nP,kwA,GL,Fm,T66,l7c,eS9,RSJ,Qxp,ztL,H2c,fw9,b28,uGu,LQv,SXA,yl8,MZ6,vGY,Ol,o7,tZp,CUv,J_,Nx,I7,pTa,A_,Y9,rh,gGc,Z2A,sl,nGZ,BX,jxZ,PX,a7,Ul,cX,i1,h_,WX,Do,KP,Vd,dh,md,wh,k9,TL,e7,l1,R7,QN,zg,He,fq,bx,Lq,ux,SU,Xi,ve,yN,q9,M9,Cq,tm,Ed,pq,nq,g1,Zs,Gg,$L,jU,Fi,xL,Od,oX,Jm,N9,IX,Am,YL,r1,sd,Be,Pe,aX,Ud,ce,ix,hm,We,Ds,Kq,VN,d1,mc,w1,kL,Tg,eU,lx,QJ,z3,xXJ,Ha,e,fN,RX,bY,LN,uY,oGA,XE,Nla,So,IwL,yJ,Al_,Mf,va,CN,tO,EV, nN,rlv,sxc,Bl6,PU8,oT,JO,jo,Nf,UX_,cl9,i2a,ht8,YXp,WQ6,pN,DXv,KQv,AO,Pa,YJ,ZS,VZ8,g4,IT,r4,aT,mXu,G3,$J,Ba,sV,wTL,UV,ca,iY,hO,k6A,Wa,DS,KN,VJ,d4,Tl8,etv,Rta,Qv8,kJ,T3,eo,lY,LXc,Scn,vjA,yB9,Qx,MEA,CI_,uc,tEL,Sx,X5,vD,yx,qS,MS,Ej_,nj6,gj6,pfJ,Zac,G8a,pi,ni,ZI,$y,jx,F5,$tp,OB,jvp,oh,JX,gP,AX,Yy,rP,sB,FXv,Ih,Oan,BD,ojA,JBn,PD,Nsu,ah,UB,Iva,ABu,cD,Yc6,rBc,ic,svv,Bsn,PIJ,av_,hX,WD,Utp,cBk,DI,Ki,Vx,iac,dP,mJ,wP,ky,hIL,T4,ex,WXa,lc,DtJ,Rh,KX_,VEv,dt6,mtL,wfv,k8k,QQ,Tsn,eIn,lvA,zR,RIp,Ht,QQ8,fG,zvv,ba,Hp8, fh_,LG,yQ,bpp,qC,MC,CG,tI,L5Z,Eh,pG,nG,uSn,Sxk,ZU,GR,vU6,$K,yTv,qxa,X6p,MhJ,CAu,thp,FI,EUZ,xK,Oh,oj,JI,p6p,NC,Ij,YK,nUA,r5,sh,gUc,Pt,ct,aj,DU,KG,Zpn,VQ,GSA,mq,w5,kK,$Zp,eM,jQu,Rj,QA,zs,hI,Hs,f3,bZ,F58,L3,uZ,SP,xZ9,X$,vs,yA,q6,M6,ta,EU,p3,n3,Opk,oU9,JTL,NUY,$6,gp,mw,wp,IhZ,AT_,Yxc,k6,Ts,eP,rT9,sQp,Gs,BUc,PAp,lZ,ahv,Rm,Qu,HR,fx,bC,Lx,uC,Xn,vR,qv,Mv,Cx,tG,yu,ipc,hvc,px,nx,gn,W56,GE,K5Y,$d,jm,VhY,Fn,xd,OH,JG,dZ6,oc,Nv,Ic,AG,mZu,sH,kS9,TUY,BR,PR,evn,lhc,Rv_,ac,zAv,Z$,Qop,Hj8,UH,fAn,cR,bjc,iC,Ly8,u7n,SSa, XCZ,vxL,hG,qSA,yNY,WR,Vu,MVa,dn,Cbn,mn,tVp,Ex8,wn,pCu,nxk,gxn,Zja,kd,GvY,TE,jo8,lC,Rc,xq8,Fya,Oj8,oxa,JNL,zT,HZ,f6,NEc,IAa,ANJ,YSu,rNL,sou,BEu,PbY,aAA,Uq8,L6,uB,cNu,ijJ,Sp,XO,hAk,vZ,y0,MM,Wy9,C6,t2,Ev,DqJ,p6,Kyc,n6,VVa,g0,dqn,mqv,Zi,wC8,kvp,TEv,GT,$E,jp,FO,xE,eA_,lAn,Ov,o9,J2,RAZ,NM,I9,A2,YE,r0,Qtu,zJu,BZ,PZ,H4n,a9,Uv,cZ,iB,lw_,ft_,b4n,h2,LtA,uha,S1p,WZ,Di,K6,V0,d0,m9,w0,kE,TT,ep,lB,Xmn,vSn,LY,ug,yra,SG,tA,vc,nY,pma,$rp,nSc,jtk,xrn,O4J,Fta,oSa,JrA,Ntp,aV,Y1Y,stL,PGL,atn,UrA,ig,hA,i4Y,hJn,Vdn,Wc,drp, Wtc,Dq,KY,Vb,dg,wmc,eJa,kpk,Q7v,Slp,umn,zY8,XXa,wg,fo8,HPu,qla,t7Z,C1_,g98,E9u,kN,TC,Fd_,RV,xx9,YlA,A_c,Iou,Nh6,o99,Bha,s7c,J_v,iPZ,c__,hY_,b6,Kdv,Wd8,DxZ,OPv,V7Z,dxk,QL,HS,aoY,P1L,Ux9,mx9,zx,r_9,kLJ,eYk,RYA,zkY,bqY,Lcn,Sdc,Xe9,ymk,vLZ,ELa,MUk,qdJ,peY,ZqZ,Ggp,$99,jXJ,ED,rr_,OqL,Fcu,gM,N1u,Gx,Amn,YdA,Isc,$H,rmp,j3,FM,Ci,xH,Aru,OD,oa,J7,sXA,B1v,ND,PxZ,as_,U9Z,Ia,A7,YH,rM,sD,BS,PS,aa,UD,cmu,iqn,cS,hkv,i6,Kx,h7,WS,D9A,Wcc,DO,Kca,VUZ,KQ,VL,d9n,dM,m9L,weY,Btk,JmL,kgu,mi,tX,w4,LQ,T1_,ekn,kH,j79,eG,lsn,pQ, nQ,S3,u6,me,vS,Hqa,ui9,XM,ZP9,nL8,Rk_,v9v,bPZ,Tx,oLJ,cc,zF8,QTa,mr9,fsA,HN_,gL_,CQ,GLn,$xa,M7n,QXZ,lo9,RJJ,Tt8,KtL,Dr_,cra,wXp,LdL,Cxp,pXc,n9A,qD,MD,yL,tUa,Th8,bNY,fS6,e3,l6,Ra,Q1,z0,bM,SJ,X_,vB,y1,M1,CE,Lmp,HB,fE,q1,SV6,uEA,tK,XaZ,vJJ,pE,yO_,qV_,nE,gZ,ZJ,G0,$A,jJ,F_,xA,EJp,oA,OW,pap,CY8,to_,nJ8,JK,N1,gJ6,ZNY,IA,G3J,X8,jTZ,$f8,xfZ,oJY,JOA,ONY,N4a,YVZ,PB,aA,rOa,sTu,UW,cB,B4Y,PYY,aSp,Uf_,hK,DJ,KE,iNL,hF9,Km6,dfv,mfZ,VoZ,mN,kA,wZ,waZ,k3c,V1,T4v,eFY,lS8,RFp,dZ,fIn,biY,LJp,HiA,zL_,QhA,u5n,SBv,WmZ,XDk, DfZ,vyp,yXp,tx9,qB8,MxZ,Cca,nyA,Eyv,pD9,gy6,ZiL,eJ,jhp,G4Z,FJA,$SJ,xSY,OiL,oya,JXZ,NPv,IIu,AXL,YBk,rXJ,sh_,BPZ,Pcc,lM,USa,cXJ,iiL,aI_,hL_,WJZ,Vxu,QZ,fu,Lu,dSn,u$,Sl,XC,TPY,lIu,eLa,Qj_,XtY,pu,yZ,RLn,k4v,wDk,mSk,EY,qB,t0,$o,jl,qhZ,FC,xo,GQ,EKJ,MMc,CaY,ptv,OY,or,gKn,NB,Ir,A0,Yo,r8,sY,BM,ZG_,GRJ,PM,ar,cM,jjL,Fqp,UY,i$,oKk,JIu,h0,N5J,Ku,IUA,VZ,m0,AIp,d8,w8,Yhk,TQ,sjZ,B5Z,l$,Rr,bw,aUp,zz,L_,SA,UCn,v8,f_,uw,cI9,yj,iG9,qm,hVJ,Qj,H8,PaL,Xw,Mm,WqL,DCa,C_,Kqc,ti,EN,p_,n_,VML,ZZ,gV,Gz,$l,dCJ,mCk,jA,Fw,xl,ON, od,wtu,Ji,Nm,kRZ,T59,Id,Ai,Yl,lUc,eVY,rV,RVZ,Qmp,zqA,sN,H3J,fFk,b3p,Lw_,u$c,B8,P8,ad,UN,SUJ,Xsk,iw,v6Z,hi,W8,ya9,qUL,DZ,MPA,CZa,n6a,g6Y,tPY,E68,psc,Vj,dV,m$,wV,Z38,GsY,kl,$6a,FwY,jma,Rd,lw,O3p,o6A,Ja8,Np9,QG,IFA,Hj,fy,Aav,raY,smL,Ly,vj,U6J,uIa,MB,i3_,hqa,Ww6,D6L,KwA,vM,uD,VPY,Mj,Cy,ws8,ksk,Tpu,tQ,Qcu,eq6,lF9,Hxc,f$c,Em,bxZ,z2p,Lnk,py,ny,gS,unY,SHk,Zn,Gy,XRZ,$i,vdu,jb,yG,ok,yGJ,ShY,zVk,JQ,Nj,AQ,Yi,rS,sm,Bj,Ik,Um,MmJ,hQ,CCp,tmp,Ed8,pRn,ndp,Wj,Zx9,Dn,$v6,Ky,Fn_,xvY,jc8,GEv,Oxu,od_,JGL,ki,Nn8,I$A,YHk, Ty,yIc,eb,sc9,PCv,nu,a$k,Uvv,Rk,ixc,Cu,cGp,HGn,bGJ,LqJ,rGv,Qq,zt,H0,h2Z,WnA,fo,Dv8,Lo,uf,SN,Xu,v0,Knn,yq,q$,Vmn,dvk,M$,Co,tE,E8,po,no,wRp,mv9,gm,kE8,e2L,Zd,l$Y,Tnk,c0,al,hE,Dd,Ko,mf,R2A,uOv,xJ,U8,wm,y2u,MpJ,ol,lf,O8,Rl,HV,P0,fv,nEA,bF,Lv,gEA,Z69,GTZ,$Mu,uF,j9J,F9Y,Sw,xMY,Iiu,N0Z,O6L,J2A,oE8,vV,A2c,yc,Yvn,r2L,B09,PBZ,aip,W9_,Es,pv,VpJ,nv,gr,dMn,kTu,T0Y,ec9,li_,Z1,Rc8,zKu,HYL,Ya,qy9,u4u,Syc,Cgn,rr,tGn,pcc,ENL,nNv,PV,cV,gNc,BV,iF,hh,ZYJ,$dv,xda,Vc,TZ,z_,bE,UdJ,cAY,XD,Sn,MY,C9,iY_,DdZ,We6,KeJ,EC,tM,VGa, mdA,wcJ,Tg8,gi,kCL,eKp,lqn,G_,$m,QaL,Kv,n9,xm,Iq9,GCv,sV_,NY,qY,ddZ,P7,H7,UC,c7,iE,C6Y,M3L,f9,W7,Dm,EHa,K9,km,pSZ,L9,en,hKc,Rq,LiY,v7,nHL,oNk,OY9,jV6,Qw,HG,J7k,oH_,IOA,A7L,uj,Xv,vG,S1,qW,MW,YD_,CR,sa8,tf,P6Z,nR,BM_,gX,Za,iQv,GI,DD_,Ki9,Fv,V39,mDa,PG,UZ,cG,WG,wSY,Da,KR,wX,k1,TI,e1,kxa,lj,Rg,RsL,QW,zG,QAY,z6A,HN,HE9,fJY,bE6,LNJ,fK,bo,u_n,XBA,Sf,X1,qF,MF,vA9,CK,tv,EJ,pK,nK,yKJ,qWY,gz,MJk,CML,Z_,EAJ,tJZ,pBL,GG,gAk,nAL,$n,ZE6,jf,F1,G09,jAZ,FNL,xn,OJ,oM,x1Y,Jv,oAn,IM,JK9,NZ8,NF,Av,Yn,rz,rKc,BZa,IJY,sA6, PM9,AKc,YWJ,aJA,U1k,PN,cKp,h6L,KNn,d1v,VJk,KK,D_,mp,wBL,wz,kn,TG,TZ9,ef,e6k,k09,lo,Qra,RM,Qg,zh8,zh,Huu,LeY,yA6,bu9,fM6,uCZ,L08,SYA,fH,XM8,vo9,LH,Mla,uk,SS,Xt,tl6,noc,qQ,MQ,CH,Zun,goa,vA,GQu,$B8,jrv,xBa,ts,srv,gY,Zr,iuu,UJ,W06,DBk,K0c,VlY,dBa,$$,mBu,jS,Ft,x$,wMZ,Js,kQA,T8a,NQ,I8,ehk,lMY,Rhp,QdZ,z5v,As,o8,H_Y,Y$,b_J,L$v,uwp,rY,SNL,X8v,vlc,yin,qN_,MAp,CwY,tAJ,El8,p8A,sf,gla,BA,Z_J,a8,$m6,ik,nl6,PA,hs,WA,Dr,KH,Vg,dY,jdL,wY,F$L,Th,NV6,YN_,riu,sd8,BVY,R8,PwL,Aic,Ji_,aZL,eS,UmL,i_u,k$,lk,O_c,olA,Q8,h59, W$9,IZu,xmv,DmJ,HK,K$9,fI,bm,VAZ,LI,w8J,dma,mmY,um,kz8,Sc,XJ,vK,y8,TVa,e5J,lZ8,q5,Qku,zxZ,M5,HyY,CI,te,fn9,by_,LfL,uo_,Smp,XjL,CDc,yQ6,WNY,pI,Ei_,pj_,qm9,MbY,vic,Zp,$j_,gH,nI,tb_,FfJ,Gyn,ZyZ,gin,nin,$p,xj9,aM,jc,FJ,xp,Oy_,OR,oiL,ob,JQ6,dz,NSp,Je,io,WN,iEJ,Ae,rH,YmJ,rQY,sR,PK,Yp,Ib,UR,N5,InJ,AQ8,cK,skA,BS6,cA,Gza,cN,im,PDk,BK,ank,UjA,cQa,iyk,he,WK,Dp,WfZ,Djv,Kfp,Vba,djc,mjn,ciY,V8,dH,mr,KI,kyY,lJv,R6L,wH,TSA,exL,lnn,Rx9,kp,QlA,TX,z9a,fdu,ec,boa,LD_,Rb,uuu,lm,bK,vhu,X0n,MNk,q8J,Cf6,tN9,yEv,LB,S8k,Ehp, uK,p0u,Zoa,nhY,gh_,XT,fZu,Gtk,$$v,jln,FDu,x$_,vW,OoJ,yk,ohu,ql,Ml,JEu,AJ,Nmn,Idv,YY,AEk,Y8v,rEZ,slv,r9,pML,sz,ad6,BW,Pfv,U$Y,cEc,Eok,yg,iop,h9v,aD,w0u,m$Z,WW,ktY,d$Z,ldu,DD,R9n,QZa,f1Z,bv9,uRc,Hv6,Ss_,XV6,vav,yh8,qsY,CF_,twp,Ean,Mwa,Vk,PW,na9,zy6,gav,LIJ,d9,GZL,pVp,KB,$G6,jZ9,Ov9,I18,oan,Ah9,Nra,Ysp,FI6,ma,rhp,xG9,e8,a1Y,ch8,UGJ,iv6,hy8,WIp,PFa,DGZ,KI6,w9,Vwp,dGn,mG_,wV_,kZ9,l1v,ey9,TrA,RD,Ry8,znn,H9J,fmL,b9v,LjY,HL,Uf,uDL,SCY,X7Z,qCc,yMZ,vm8,Mna,tnc,EmL,CEp,Tc,Qk,nma,gmv,Z9Z,omp,jq_,Fj9,xYu,JMv, Imk,jka,QV,$Y9,G_c,NiZ,VW,O99,ER,hv,Jhc,Bic,sqY,PEn,amc,cM6,i9L,Qqp,fB,zc,YCA,hnY,rM6,Wj_,DYc,HoZ,Kjk,Bra,sZL,AML,HW,bH,LD,dYp,uH,mYA,w7c,k_8,Tiv,en8,Rn8,Qgk,bRA,z0k,fa8,Lhn,Xj,v1Z,SZA,XGY,M1u,Cjv,t1Y,E19,$5c,Sr,jbv,qZn,uvp,vL,Frp,HRc,x5c,yV,opY,Je6,NHJ,OI9,qJ,YRA,Aen,BHa,sbc,reZ,PmY,apL,MJ,U5_,ceu,hP9,Wra,iIn,D5Y,wK9,Vc6,d5A,m59,kX_,TH6,ePk,RP8,lpv,QDZ,z3n,HBA,bBL,LaL,Szp,uT8,XW9,fDA,vY9,qza,M8A,t8a,pWp,CKY,Eg,nYJ,gY_,yJZ,ZB9,EY6,pD,GcJ,$l9,jDv,Fap,xlp,OBp,oYp,N9J,AJ8,Yzk,rJu,sD8,B9u,gT,PKv,Z4,UlJ, cJ_,h39,Fj,DlY,Kav,V8Z,dl_,wW9,mlk,e3c,lDL,xP,oy,kca,T9A,R3u,NJ,zgv,QyY,HDa,f4v,bDJ,Sgv,LRv,ydu,Iy,ujL,qgA,Ad,EPJ,rT,sg,pL9,YP,nPY,BL,Gb8,ZDp,CHa,trJ,$J8,jyu,FRk,Mrk,xJu,PL,ODL,gPL,WaA,Jd,Jdu,Ug,NTn,I4Z,AdY,Yg9,rdc,syc,BTn,PH9,a49,cL,UJk,cdL,hgZ,WRL,DJA,iDZ,KRJ,VrZ,dJY,mJu,wLY,kbn,hd,cTv,TTc,eg6,WL,l49,RgY,KD,HLA,fbA,VV,Llv,uB8,bLZ,zCA,dT,D4,Qiv,kP,wT,Skn,Tb,mR,qkc,tWA,p9L,n_9,ZLc,v_6,E_Y,Gqp,yzu,$pL,jiY,zq,er,xpA,FlL,Ry,JzJ,NI9,Ct9,MWA,o_a,Ibn,g_a,X9Y,H9,fL,bt,AzZ,LL,abZ,sic,Up_,BI9,rzA,czL,YkZ, Dpu,iLL,ut,Kl8,dp9,w99,kqp,TIa,RCY,yO,QOL,eCY,QO,fYa,bAJ,Ek,Zva,SW,L78,ueJ,XEu,SuL,vb8,HAn,Mp,y4v,qu9,MH_,tHa,CNL,p7v,Ebv,qp,pEJ,gbY,nbL,Gj6,ZAa,mp9,jO8,$b_,CL,XB,F7k,nL,OA9,obL,J4c,N3J,IY8,pL,Kru,lbZ,A4L,Vnk,lH,Yua,r4v,sOp,B3L,PNY,gI,Zb,UbZ,c4Y,iAA,aYL,hHZ,Gq,VHL,Db9,K7k,dbZ,$_,mbp,wEp,kjp,jW,T3a,lYa,RH8,QCk,FB,eHa,x_,Ok,z7Y,HU8,Np,oi,Jz,fHu,Ii,bUY,LMA,u6Z,Xpa,SOv,P9,y9n,qOk,vzL,MOk,ai,CsJ,Uk,tO_,c9,Ez8,ppZ,GfY,ZUc,FMA,nzu,$gJ,it,gzp,jCa,xg_,OUa,ozp,J9u,W9,Nbu,VO,Db,IH8,dI,ml,YOL,k_,Tq,r9Z,wI,sCa, eW,Psp,Bba,Ri,Qn,zj,c9p,aHY,Ugv,HE,iUn,KMA,WM_,h7v,DgJ,fA,dgA,Tbk,e7u,bN,lHa,R7Y,mga,wp6,HOc,fCA,bOJ,LVa,ufp,S36,SH,q3_,Xe,v2J,yY6,E2Y,uN,vE,yn,XP8,Mkp,pP9,qb,Mb,n2A,g29,CA,ZO6,t4,GBu,$8L,jY6,FVY,x89,OOn,o29,ICa,JYu,AYL,Y3J,sYY,Bon,Ou,haA,aC9,U8_,WVc,D8v,iO6,P_8,KV9,d88,VkA,m8n,RaZ,J4,HJ_,LLv,bJ9,f29,eaY,lCY,wP6,kBa,QPZ,Nb,IO,SL9,NW,aO6,Xga,Yb,BE,ywZ,vIu,zG_,MQA,CeY,tQ8,PE,EIA,DY,nIY,gIv,ZJk,$cL,GDu,jPJ,KA,Vn,FLY,oIL,Jwk,w3,OJv,NQ8,I2_,xcu,kb,lN,AwY,YL9,eH,rwJ,sPv,BQA,Pep,Uc8,a2v,hGA,WLc,cw_,KL_, VQ_,iJJ,zf,Hp,dcn,wgp,fU,mcc,kDk,eGL,TQp,l29,bs,RGY,Q5c,zNu,LU,us,SO,H08,fBY,b0L,ulJ,LHc,Sp9,XyY,v5k,yon,qpJ,C7p,vp,X6,yI,t6J,E5Y,M6Y,Gm9,$_p,j5k,O08,x_J,FHA,o5A,Jo6,qg,Mg,NuJ,IBk,Aon,YpA,s5Y,Bu9,t9,P7A,CU,pU,roc,aBZ,U_L,co_,i0u,hNn,gb,WHZ,D_A,d_p,ZH,m_8,V6c,Gf,$z,wya,km9,eNn,RNu,Tu6,lBc,F6,QSL,HXv,fXv,LP_,uQa,xz,OO,SjY,zdY,ygA,v8_,XlA,oC,J9,MRn,qja,Ng,IC,Cy_,A9,tRu,E8u,plk,Yz,n8v,rb,g8Y,sO,Bp,$iL,jS_,FP_,OXv,o8L,JgA,xip,IX6,NxL,AgJ,sSA,UO,PyJ,BxY,Yj_,rgY,aXJ,UiA,cp,is,cga,iXZ,hd6,WPJ,DiL,KPA,diY, mi6,zBn,Txn,edZ,wlp,ffY,db,wb,Swa,eO,ls,XhZ,bec,VI,zB,Qz,kz,yHc,HP,M2Z,t2a,C3c,fO,Tf,KU,qwn,RC,LA_,vD6,phn,h9,b_,nD9,gDL,mM,uK8,LO,u_,ZeA,Sk,Xf,vP,GWu,$LJ,FAA,xLn,jFp,yz,oDu,Oek,q8,JHc,M8,CO,NLn,IfY,AHZ,Ywk,rH8,sFp,P36,BL_,E3,tY,afn,cH9,ULv,pO,nO,iek,WAu,DLu,go,hBZ,KAk,V2L,dL8,mLv,whY,kW6,TLA,GB,$2,lfv,eBn,RBu,jk,Ff,Q_6,z1n,f0p,HVL,bVk,O3,L1u,u2_,JY,SQp,Xi8,vRA,ySa,qQ9,MuJ,tu6,ERZ,pi_,CO9,nRn,gRu,ZV8,GFJ,$eY,j_Y,F1A,xec,ro,OVL,oRn,JSc,ASL,BkA,rSa,I0Y,PP,YQ9,NkZ,s_v,aY,a0A,POn,U3,Ue9,cSv,iVv,CD,Vuu, deL,meY,hY,wiv,DC,lK,kFA,KO,TkA,WP,e1J,l0a,bzn,TB,ek,RY,QU,uWc,LYv,R1_,zD,Sqp,XFn,yVn,Hg,qq_,MCu,CXa,l_,E0a,tCa,fJ,be,Hz8,wo,pF8,n0L,g0a,Zzk,QNJ,zXa,k2,Gkk,$w9,jN9,FYJ,JVA,NFY,AVu,o08,sN_,sJ,BN,kY,a9c,Uwu,PXA,cVc,I9v,BFn,xwv,izZ,rVA,hXA,Yq9,ab,hxA,OLn,LJ,S8,Oz8,DwY,mwc,SQ,wF_,kkA,VCv,vg,TFc,eX_,WYa,l9k,dwn,RXc,yU,XF,QpY,HMn,zT9,ue,bMc,CJ,LFk,qc,tw,Mc,EL,zH8,uzL,v4L,Xvp,qIA,Mgp,y3c,nJ,pJ,tga,E4u,pvk,OM9,$ua,jp8,ZM9,NKL,g49,GD,YI6,IeA,r3_,spY,Z2,jQ,FF,Uua,aea,P9Y,OL,xuk,IP,iML,Nc,xI,WFZ,Vgk,duL,J38, Dua,rQ,muJ,FFk,c3a,oP,wva,$I,k18,TKA,eTa,Pg,aP,hTZ,leZ,RTa,UL,cg,Q1A,Jw,A39,ziJ,HdL,f8J,KFc,bd9,Aw,L2p,YI,pR,ub8,X$v,ie,hw,vX9,yyL,qtu,Bg,sL,MIL,SI_,CJ8,tIn,EXa,p$Y,nXJ,Wg,D2,GVk,F2_,Od6,Zdc,s1c,By8,PJp,a8v,UEA,cy_,idn,W2A,hic,KJ,VU,dQ,DEL,K2Y,VI9,D$,dEv,mL,mEA,wQ,kI,jM,TD,mm,w$u,ZO,x99,kVa,lg,TyA,Yd,rn,wM,ein,l8n,eQ,RiY,Qz6,le,HkJ,fja,RP,zm,Hy,bk8,SG6,X1k,f0,vVv,LOY,usZ,yR6,qGY,MD9,Ciu,tDp,b7,p1k,xtp,G4,em,nVc,gVa,Q0,EVu,NS,Zku,G$9,$ha,L0,EH,FOn,xhu,u7,S6,OkY,Xl,oVv,QB,JR6,N_a,w6n,vy,yB,Ij8,q_,M_, ARp,C0,YGv,to,Ep,rR8,szZ,$qY,p0,B_J,ajp,Pi6,n0,Uh9,gu,ZB,cRu,ik_,hb9,WOp,DhL,KO_,VDp,mhA,$5,dh_,w1Z,k$u,T_J,ebc,zD_,lja,RbL,QBc,fGZ,LKY,uHp,S__,bb_,j6,Xdv,vup,yWp,q_v,Mqp,x5,CPA,Op,o5,Jo,tqn,Eun,nu6,guJ,Zba,GPp,jB8,$yZ,FKJ,N_,I5,ouv,xyJ,Ob6,Ao,JWk,NOv,Y5,ru,IGA,sp,AWa,By,Y_c,Py,a5,rWZ,Up,cy,sBL,BOc,i7,ho,PP6,Wy,aG6,Uyu,du,cW9,ibY,hD6,KKn,Dy8,mH,Vqp,dyk,myp,Itk,WKA,kPc,TOA,lGA,QJA,y9;H_=function(Q){return function(){return QJA[Q].apply(this,arguments)}}; g.fn=function(Q,z){return QJA[Q]=z}; zp8=function(Q){var z=0;return function(){return z=this.length))return this[Q]}; UA=function(Q){return Q?Q:aJ}; EvJ=function(Q,z,H){Q instanceof String&&(Q=String(Q));for(var f=Q.length-1;f>=0;f--){var b=Q[f];if(z.call(H,b,f,Q))return{AU:f,DF:b}}return{AU:-1,DF:void 0}}; c_=function(Q){return Q?Q:function(z,H){return EvJ(this,z,H).AU}}; g.W_=function(Q,z,H){Q=Q.split(".");H=H||g.iL;for(var f;Q.length&&(f=Q.shift());)Q.length||z===void 0?H[f]&&H[f]!==Object.prototype[f]?H=H[f]:H=H[f]={}:H[f]=z}; Kn=function(Q,z){var H=g.D6("CLOSURE_FLAGS");Q=H&&H[Q];return Q!=null?Q:z}; g.D6=function(Q,z){Q=Q.split(".");z=z||g.iL;for(var H=0;H2){var f=Array.prototype.slice.call(arguments,2);return function(){var b=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(b,f);return Q.apply(z,b)}}return function(){return Q.apply(z,arguments)}}; g.lL=function(Q,z,H){g.lL=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?nvv:gvA;return g.lL.apply(null,arguments)}; g.RJ=function(Q,z){var H=Array.prototype.slice.call(arguments,1);return function(){var f=H.slice();f.push.apply(f,arguments);return Q.apply(this,f)}}; g.Qs=function(){return Date.now()}; Znk=function(Q){return Q}; g.zY=function(Q,z){function H(){} H.prototype=z.prototype;Q.xu=z.prototype;Q.prototype=new H;Q.prototype.constructor=Q;Q.XI=function(f,b,L){for(var u=Array(arguments.length-2),X=2;Xz&&H.push(uR(f,1))}); return H}; g.S5=function(Q){Q&&typeof Q.dispose=="function"&&Q.dispose()}; g.Xx=function(Q){for(var z=0,H=arguments.length;z>6|192;else{if(L>=55296&&L<=57343){if(L<=56319&&b=56320&&u<=57343){L=(L-55296)*1024+ u-56320+65536;f[H++]=L>>18|240;f[H++]=L>>12&63|128;f[H++]=L>>6&63|128;f[H++]=L&63|128;continue}else b--}if(z)throw Error("Found an unpaired surrogate");L=65533}f[H++]=L>>12|224;f[H++]=L>>6&63|128}f[H++]=L&63|128}}Q=H===f.length?f:f.subarray(0,H)}return Q}; gJ=function(Q){g.iL.setTimeout(function(){throw Q;},0)}; inA=function(Q){return Array.prototype.map.call(Q,function(z){z=z.toString(16);return z.length>1?z:"0"+z}).join("")}; hpZ=function(Q){for(var z=[],H=0;H>6|192:((b&64512)==55296&&f+1>18|240,z[H++]=b>>12&63|128):z[H++]=b>>12|224,z[H++]=b>>6&63|128),z[H++]=b&63|128)}return z}; GY=function(Q,z){return Q.lastIndexOf(z,0)==0}; WZp=function(Q,z){var H=Q.length-z.length;return H>=0&&Q.indexOf(z,H)==H}; g.j5=function(Q){return/^[\s\xa0]*$/.test(Q)}; g.Fx=function(Q,z){return Q.indexOf(z)!=-1}; xO=function(Q,z){return g.Fx(Q.toLowerCase(),z.toLowerCase())}; g.Jt=function(Q,z){var H=0;Q=OT(String(Q)).split(".");z=OT(String(z)).split(".");for(var f=Math.max(Q.length,z.length),b=0;H==0&&bz?1:0}; g.Ns=function(){var Q=g.iL.navigator;return Q&&(Q=Q.userAgent)?Q:""}; rJ=function(Q){return Iu||At?YO?YO.brands.some(function(z){return(z=z.brand)&&g.Fx(z,Q)}):!1:!1}; sT=function(Q){return g.Fx(g.Ns(),Q)}; Bu=function(){return Iu||At?!!YO&&YO.brands.length>0:!1}; Pu=function(){return Bu()?!1:sT("Opera")}; Dk_=function(){return Bu()?!1:sT("Trident")||sT("MSIE")}; KZA=function(){return Bu()?rJ("Microsoft Edge"):sT("Edg/")}; au=function(){return sT("Firefox")||sT("FxiOS")}; iR=function(){return sT("Safari")&&!(UT()||(Bu()?0:sT("Coast"))||Pu()||(Bu()?0:sT("Edge"))||KZA()||(Bu()?rJ("Opera"):sT("OPR"))||au()||sT("Silk")||sT("Android"))}; UT=function(){return Bu()?rJ("Chromium"):(sT("Chrome")||sT("CriOS"))&&!(Bu()?0:sT("Edge"))||sT("Silk")}; VYL=function(){return sT("Android")&&!(UT()||au()||Pu()||sT("Silk"))}; dkn=function(Q){var z={};Q.forEach(function(H){z[H[0]]=H[1]}); return function(H){return z[H.find(function(f){return f in z})]||""}}; mka=function(Q){var z=g.Ns();if(Q==="Internet Explorer"){if(Dk_())if((Q=/rv: *([\d\.]*)/.exec(z))&&Q[1])z=Q[1];else{Q="";var H=/MSIE +([\d\.]+)/.exec(z);if(H&&H[1])if(z=/Trident\/(\d.\d)/.exec(z),H[1]=="7.0")if(z&&z[1])switch(z[1]){case "4.0":Q="8.0";break;case "5.0":Q="9.0";break;case "6.0":Q="10.0";break;case "7.0":Q="11.0"}else Q="7.0";else Q=H[1];z=Q}else z="";return z}var f=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");H=[];for(var b;b=f.exec(z);)H.push([b[1],b[2],b[3]||void 0]); z=dkn(H);switch(Q){case "Opera":if(Pu())return z(["Version","Opera"]);if(Bu()?rJ("Opera"):sT("OPR"))return z(["OPR"]);break;case "Microsoft Edge":if(Bu()?0:sT("Edge"))return z(["Edge"]);if(KZA())return z(["Edg"]);break;case "Chromium":if(UT())return z(["Chrome","CriOS","HeadlessChrome"])}return Q==="Firefox"&&au()||Q==="Safari"&&iR()||Q==="Android Browser"&&VYL()||Q==="Silk"&&sT("Silk")?(z=H[2])&&z[1]||"":""}; w_p=function(Q){if(Bu()&&Q!=="Silk"){var z=YO.brands.find(function(H){return H.brand===Q}); if(!z||!z.version)return NaN;z=z.version.split(".")}else{z=mka(Q);if(z==="")return NaN;z=z.split(".")}return z.length===0?NaN:Number(z[0])}; ht=function(){return Iu||At?!!YO&&!!YO.platform:!1}; kuL=function(){return ht()?YO.platform==="Android":sT("Android")}; Wu=function(){return sT("iPhone")&&!sT("iPod")&&!sT("iPad")}; DL=function(){return Wu()||sT("iPad")||sT("iPod")}; Ks=function(){return ht()?YO.platform==="macOS":sT("Macintosh")}; Tc8=function(){return ht()?YO.platform==="Windows":sT("Windows")}; g.Vs=function(Q){return Q[Q.length-1]}; ep_=function(Q,z){var H=Q.length,f=typeof Q==="string"?Q.split(""):Q;for(--H;H>=0;--H)H in f&&z.call(void 0,f[H],H,Q)}; g.mB=function(Q,z,H){z=dJ(Q,z,H);return z<0?null:typeof Q==="string"?Q.charAt(z):Q[z]}; dJ=function(Q,z,H){for(var f=Q.length,b=typeof Q==="string"?Q.split(""):Q,L=0;L=0;f--)if(f in b&&z.call(H,b[f],f,Q))return f;return-1}; g.kO=function(Q,z){return l6J(Q,z)>=0}; RpY=function(Q){if(!Array.isArray(Q))for(var z=Q.length-1;z>=0;z--)delete Q[z];Q.length=0}; g.e5=function(Q,z){z=l6J(Q,z);var H;(H=z>=0)&&g.TY(Q,z);return H}; g.TY=function(Q,z){return Array.prototype.splice.call(Q,z,1).length==1}; g.lR=function(Q,z){z=dJ(Q,z);z>=0&&g.TY(Q,z)}; Qu9=function(Q,z){var H=0;ep_(Q,function(f,b){z.call(void 0,f,b,Q)&&g.TY(Q,b)&&H++})}; g.Ru=function(Q){return Array.prototype.concat.apply([],arguments)}; g.Qi=function(Q){var z=Q.length;if(z>0){for(var H=Array(z),f=0;f>>1),v=void 0;H?v=z.call(void 0,Q[X],X,Q):v=z(f,Q[X]);v>0?b=X+1:(L=X,u=!v)}return u?b:-b-1}; g.Xk=function(Q,z){Q.sort(z||Lr)}; fLp=function(Q,z){var H=Lr;g.Xk(Q,function(f,b){return H(z(f),z(b))})}; g.vY=function(Q,z,H){if(!g.mZ(Q)||!g.mZ(z)||Q.length!=z.length)return!1;var f=Q.length;H=H||bsn;for(var b=0;bz?1:Q=0})}; g.nr=function(Q,z){z===void 0&&(z=0);qTZ();z=M5k[z];for(var H=Array(Math.floor(Q.length/3)),f=z[64]||"",b=0,L=0;b>2];u=z[(u&3)<<4|X>>4];X=z[(X&15)<<2|v>>6];v=z[v&63];H[L++]=""+y+u+X+v}y=0;v=f;switch(Q.length-b){case 2:y=Q[b+1],v=z[(y&15)<<2]||f;case 1:Q=Q[b],H[L]=""+z[Q>>2]+z[(Q&3)<<4|y>>4]+v+f}return H.join("")}; g.g7=function(Q,z){if(CR8&&!z)Q=g.iL.btoa(Q);else{for(var H=[],f=0,b=0;b255&&(H[f++]=L&255,L>>=8);H[f++]=L}Q=g.nr(H,z)}return Q}; EOa=function(Q){var z=[];t5k(Q,function(H){z.push(H)}); return z}; Z3=function(Q){var z=Q.length,H=z*3/4;H%3?H=Math.floor(H):g.Fx("=.",Q[z-1])&&(H=g.Fx("=.",Q[z-2])?H-2:H-1);var f=new Uint8Array(H),b=0;t5k(Q,function(L){f[b++]=L}); return b!==H?f.subarray(0,b):f}; t5k=function(Q,z){function H(v){for(;f>4);u!=64&&(z(L<<4&240|u>>2),X!=64&&z(u<<6&192|X))}}; qTZ=function(){if(!G7){G7={};for(var Q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),z=["+/=","+/","-_=","-_.","-_"],H=0;H<5;H++){var f=Q.concat(z[H].split(""));M5k[H]=f;for(var b=0;b=5||(H[Q]=z+1,Q=Error(),Os8(Q,"incident"),gJ(Q))}}; IG=function(Q,z,H){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(H===void 0?0:H)&&Symbol.for&&Q?Symbol.for(Q):Q!=null?Symbol(Q):Symbol():z}; s2=function(Q,z){AC||r7 in Q||Jt9(Q,NJ8);Q[r7]|=z}; BY=function(Q,z){AC||r7 in Q||Jt9(Q,NJ8);Q[r7]=z}; PY=function(Q,z){Q[r7]&=~z}; aG=function(){return typeof BigInt==="function"}; U2=function(Q){return Array.prototype.slice.call(Q)}; cY=function(Q){return Q!==null&&typeof Q==="object"&&!Array.isArray(Q)&&Q.constructor===Object}; ILk=function(Q,z){if(Q!=null)if(typeof Q==="string")Q=Q?new jj(Q,Fk):xT();else if(Q.constructor!==jj)if($T(Q))Q=Q.length?new jj(new Uint8Array(Q),Fk):xT();else{if(!z)throw Error();Q=void 0}return Q}; i4=function(Q){if(Q&2)throw Error();}; D3=function(Q,z){if(typeof z!=="number"||z<0||z>=Q.length)throw Error();}; Atp=function(Q){var z=Znk(Kr);return z?Q[z]:void 0}; YTY=function(Q,z,H){var f=z&512?0:-1,b=Q.length;z=z&64?z&256:!!b&&cY(Q[b-1]);for(var L=b+(z?-1:0),u=0;uz.length)return!1;if(Q.lengthb)return!1;if(f>>0;kT=z;T7=(Q-z)/4294967296>>>0}; Qr=function(Q){if(Q<0){ej(0-Q);var z=g.n(l4(kT,T7));Q=z.next().value;z=z.next().value;kT=Q>>>0;T7=z>>>0}else ej(Q)}; Ho=function(Q,z){var H=z*4294967296+(Q>>>0);return Number.isSafeInteger(H)?H:zi(Q,z)}; aLZ=function(Q,z){var H=z&2147483648;H&&(Q=~Q+1>>>0,z=~z>>>0,Q==0&&(z=z+1>>>0));Q=Ho(Q,z);return typeof Q==="number"?H?-Q:Q:H?"-"+Q:Q}; zi=function(Q,z){z>>>=0;Q>>>=0;if(z<=2097151)var H=""+(4294967296*z+Q);else aG()?H=""+(BigInt(z)<>>24|z<<8)&16777215,z=z>>16&65535,Q=(Q&16777215)+H*6777216+z*6710656,H+=z*8147497,z*=2,Q>=1E7&&(H+=Q/1E7>>>0,Q%=1E7),H>=1E7&&(z+=H/1E7>>>0,H%=1E7),H=z+UsZ(H)+UsZ(Q));return H}; UsZ=function(Q){Q=String(Q);return"0000000".slice(Q.length)+Q}; ct_=function(){var Q=kT,z=T7;z&2147483648?aG()?Q=""+(BigInt(z|0)<>>0)):(z=g.n(l4(Q,z)),Q=z.next().value,z=z.next().value,Q="-"+zi(Q,z)):Q=zi(Q,z);return Q}; fS=function(Q){if(Q.length<16)Qr(Number(Q));else if(aG())Q=BigInt(Q),kT=Number(Q&BigInt(4294967295))>>>0,T7=Number(Q>>BigInt(32)&BigInt(4294967295));else{var z=+(Q[0]==="-");T7=kT=0;for(var H=Q.length,f=0+z,b=(H-z)%6+z;b<=H;f=b,b+=6)f=Number(Q.slice(f,b)),T7*=1E6,kT=kT*1E6+f,kT>=4294967296&&(T7+=Math.trunc(kT/4294967296),T7>>>=0,kT>>>=0);z&&(z=g.n(l4(kT,T7)),Q=z.next().value,z=z.next().value,kT=Q,T7=z)}}; l4=function(Q,z){z=~z;Q?Q=~Q+1:z+=1;return[Q,z]}; b5=function(Q,z){throw Error(z===void 0?"unexpected value "+Q+"!":z);}; LS=function(Q){if(Q!=null&&typeof Q!=="number")throw Error("Value of float/double field must be a number, found "+typeof Q+": "+Q);return Q}; is_=function(Q){return Q.displayName||Q.name||"unknown type name"}; u5=function(Q){if(Q!=null&&typeof Q!=="boolean")throw Error("Expected boolean but got "+dc(Q)+": "+Q);return Q}; Xc=function(Q){switch(typeof Q){case "bigint":return!0;case "number":return SX(Q);case "string":return hmZ.test(Q);default:return!1}}; WB9=function(Q){if(typeof Q!=="number")throw JC("int32");if(!SX(Q))throw JC("int32");return Q|0}; vo=function(Q){return Q==null?Q:WB9(Q)}; yr=function(Q){if(Q==null)return Q;if(typeof Q==="string"&&Q)Q=+Q;else if(typeof Q!=="number")return;return SX(Q)?Q|0:void 0}; q4=function(Q){if(Q==null)return Q;if(typeof Q==="string"&&Q)Q=+Q;else if(typeof Q!=="number")return;return SX(Q)?Q>>>0:void 0}; KBp=function(Q){var z=0;z=z===void 0?0:z;if(!Xc(Q))throw JC("int64");var H=typeof Q;switch(z){case 2048:switch(H){case "string":return M4(Q);case "bigint":return String(CS(64,Q));default:return E7(Q)}case 4096:switch(H){case "string":return z=pS(Number(Q)),nS(z)?Q=mz(z):(z=Q.indexOf("."),z!==-1&&(Q=Q.substring(0,z)),Q=aG()?mz(CS(64,BigInt(Q))):mz(Ds9(Q))),Q;case "bigint":return mz(CS(64,Q));default:return nS(Q)?mz(gC(Q)):mz(E7(Q))}case 0:switch(H){case "string":return M4(Q);case "bigint":return mz(CS(64, Q));default:return gC(Q)}default:return b5(z,"Unknown format requested type for int64")}}; Zc=function(Q){return Q==null?Q:KBp(Q)}; V5a=function(Q){if(Q[0]==="-")return!1;var z=Q.length;return z<20?!0:z===20&&Number(Q.substring(0,6))<184467}; ds9=function(Q){var z=Q.length;return Q[0]==="-"?z<20?!0:z===20&&Number(Q.substring(0,7))>-922337:z<19?!0:z===19&&Number(Q.substring(0,6))<922337}; ms_=function(Q){if(Q<0){Qr(Q);var z=zi(kT,T7);Q=Number(z);return nS(Q)?Q:z}z=String(Q);if(V5a(z))return z;Qr(Q);return Ho(kT,T7)}; Ds9=function(Q){if(ds9(Q))return Q;fS(Q);return ct_()}; gC=function(Q){Xc(Q);Q=pS(Q);nS(Q)||(Qr(Q),Q=aLZ(kT,T7));return Q}; E7=function(Q){Xc(Q);Q=pS(Q);if(nS(Q))Q=String(Q);else{var z=String(Q);ds9(z)?Q=z:(Qr(Q),Q=ct_())}return Q}; M4=function(Q){Xc(Q);var z=pS(Number(Q));if(nS(z))return String(z);z=Q.indexOf(".");z!==-1&&(Q=Q.substring(0,z));return Ds9(Q)}; wuL=function(Q){if(Q==null)return Q;if(typeof Q==="bigint")return Gi(Q)?Q=Number(Q):(Q=CS(64,Q),Q=Gi(Q)?Number(Q):String(Q)),Q;if(Xc(Q))return typeof Q==="number"?gC(Q):M4(Q)}; kY9=function(Q){if(Q==null)return Q;var z=typeof Q;if(z==="bigint")return String(CS(64,Q));if(Xc(Q)){if(z==="string")return M4(Q);if(z==="number")return gC(Q)}}; emZ=function(Q){if(Q==null)return Q;var z=typeof Q;if(z==="bigint")return String(TJu(64,Q));if(Xc(Q)){if(z==="string")return Xc(Q),z=pS(Number(Q)),nS(z)&&z>=0?Q=String(z):(z=Q.indexOf("."),z!==-1&&(Q=Q.substring(0,z)),V5a(Q)||(fS(Q),Q=zi(kT,T7))),Q;if(z==="number")return Xc(Q),Q=pS(Q),Q>=0&&nS(Q)?Q:ms_(Q)}}; lLa=function(Q){if(Q==null||typeof Q=="string"||Q instanceof jj)return Q;if($T(Q))return $T(Q)&&NI($t),Q}; Rm9=function(Q){if(typeof Q!=="string")throw Error();return Q}; jX=function(Q){if(Q!=null&&typeof Q!=="string")throw Error();return Q}; Fc=function(Q){return Q==null||typeof Q==="string"?Q:void 0}; xt=function(Q,z){if(!(Q instanceof z))throw Error("Expected instanceof "+is_(z)+" but got "+(Q&&is_(Q.constructor)));return Q}; QG_=function(Q,z,H){if(Q!=null&&typeof Q==="object"&&Q.nI===O7)return Q;if(Array.isArray(Q)){var f=Q[r7]|0,b=f;b===0&&(b|=H&32);b|=H&2;b!==f&&BY(Q,b);return new z(Q)}}; zW6=function(Q){return Q}; oU=function(Q){return Q}; Lzk=function(Q,z,H,f){return Hr9(Q,z,H,f,f3A,brp)}; XYa=function(Q,z,H,f){return Hr9(Q,z,H,f,uka,S2u)}; Hr9=function(Q,z,H,f,b,L){if(!H.length&&!f)return 1;for(var u=0,X=0,v=0,y=0,q=0,M=H.length-1;M>=0;M--){var C=H[M];f&&M===H.length-1&&C===f||(y++,C!=null&&v++)}if(f)for(var t in f)M=+t,isNaN(M)||(q+=vT_(M),X++,M>u&&(u=M));y=b(y,v)+L(X,u,q);t=v;M=X;C=u;for(var E=q,G=H.length-1;G>=0;G--){var x=H[G];if(!(x==null||f&&G===H.length-1&&x===f)){x=G-z;var J=b(x,t)+L(M,C,E);J=1024||(M--,t++,E-=I.length,u=b(f,t)+L(M,C,E),u1?Q-1:0)}; uka=function(Q,z){return(Q>1?Q-1:0)+(Q-z)*4}; brp=function(Q,z){return Q==0?0:9*Math.max(1<<32-Math.clz32(Q+Q/2-1),4)<=z?Q==0?0:Q<4?100+(Q-1)*16:Q<6?148+(Q-4)*16:Q<12?244+(Q-6)*16:Q<22?436+(Q-12)*19:Q<44?820+(Q-22)*17:52+32*Q:40+4*z}; f3A=function(Q){return 40+4*Q}; vT_=function(Q){return Q>=100?Q>=1E4?Math.ceil(Math.log10(1+Q)):Q<1E3?3:4:Q<10?1:2}; N4=function(Q,z,H,f,b){var L=f?!!(z&32):void 0;f=[];var u=Q.length,X=!1;if(z&64){if(z&256){u--;var v=Q[u];var y=u}else y=4294967295,v=void 0;if(!(b||z&512)){X=!0;var q;var M=((q=Jn)!=null?q:oU)(v?y- -1:z>>14&1023||536870912,-1,Q,v);y=M+-1}}else y=4294967295,z&1||(v=u&&Q[u-1],cY(v)?(u--,y=u,M=0):v=void 0);q=void 0;for(var C=0;C=y){var E=void 0;((E=q)!=null?E:q={})[C- -1]=t}else f[C]=t}if(v)for(var G in v)u=v[G],u!=null&&(u=H(u,L))!=null&&(C=+G,C< M?f[C+-1]=u:(C=void 0,((C=q)!=null?C:q={})[G]=u));q&&(X?f.push(q):f[y]=q);b&&(BY(f,z&16761409|(q!=null?290:34)),(Q=Atp(Q))&&(f[Kr]=U2(Q)));return f}; yCa=function(Q){switch(typeof Q){case "number":return Number.isFinite(Q)?Q:""+Q;case "bigint":return Gi(Q)?Number(Q):""+Q;case "boolean":return Q?1:0;case "object":if(Array.isArray(Q)){var z=Q[r7]|0;return Q.length===0&&z&1?void 0:N4(Q,z,yCa,!1,!1)}if(Q.nI===O7)return IU(Q);if(Q instanceof jj)return z=Q.Z,z==null?"":typeof z==="string"?z:Q.Z=nOp(z);if($T(Q))return $T(Q)&&NI($t),nOp(Q);return}return Q}; An=function(Q,z){if(z){Jn=z===oU||z!==zW6&&z!==Lzk&&z!==XYa?oU:z;try{return IU(Q)}finally{Jn=void 0}}return IU(Q)}; IU=function(Q){Q=Q.Pz;return N4(Q,Q[r7]|0,yCa,void 0,!1)}; Mj_=function(Q){switch(typeof Q){case "boolean":return Yt||(Yt=[0,void 0,!0]);case "number":return Q>0?void 0:Q===0?q2J||(q2J=[0,void 0]):[-Q,void 0];case "string":return[0,Q];case "object":return Q}}; Bo=function(Q,z,H){Q=rC(Q,z[0],z[1],H?1:2);z!==Yt&&H&&s2(Q,8192);return Q}; rC=function(Q,z,H,f){if(Q==null){var b=96;H?(Q=[H],b|=512):Q=[];z&&(b=b&-16760833|(z&1023)<<14)}else{if(!Array.isArray(Q))throw Error("narr");b=Q[r7]|0;8192&b||!(64&b)||2&b||C4A();if(b&1024)throw Error("farr");if(b&64)return Q;f===1||f===2||(b|=64);if(H&&(b|=512,H!==Q[0]))throw Error("mid");a:{H=Q;var L=H.length;if(L){var u=L-1;f=H[u];if(cY(f)){b|=256;z=b&512?0:-1;u-=z;if(u>=1024)throw Error("pvtlmt");for(var X in f)L=+X,L1024)throw Error("spvt");b=b&-16760833|(X&1023)<<14}}}BY(Q,b);return Q}; C4A=function(){NI(tjY)}; Po=function(Q,z){if(typeof Q!=="object")return Q;if(Array.isArray(Q)){var H=Q[r7]|0;if(Q.length===0&&H&1)return;if(H&2)return Q;var f;if(f=z)f=H===0||!!(H&32)&&!(H&64||!(H&16));return f?(s2(Q,34),H&4&&Object.freeze(Q),Q):N4(Q,H,Po,z!==void 0,!0)}if(Q.nI===O7)return z=Q.Pz,H=z[r7]|0,H&2?Q:N4(z,H,Po,!0,!0);if(Q instanceof jj)return Q;if($T(Q))return $T(Q)&&NI($t),new Uint8Array(Q)}; aU=function(Q){var z=Q.Pz;if(!((z[r7]|0)&2))return Q;Q=new Q.constructor(N4(z,z[r7]|0,Po,!0,!0));PY(Q.Pz,2);return Q}; co=function(Q,z){Q=Q.Pz;return U7(Q,Q[r7]|0,z)}; U7=function(Q,z,H){if(H===-1)return null;var f=H+(z&512?0:-1),b=Q.length-1;if(f>=b&&z&256)return Q[b][H];if(f<=b)return Q[f]}; hn=function(Q,z,H){var f=Q.Pz,b=f[r7]|0;i4(b);i5(f,b,z,H);return Q}; i5=function(Q,z,H,f){var b=z&512?0:-1,L=H+b,u=Q.length-1;if(L>=u&&z&256)return Q[u][H]=f,z;if(L<=u)return Q[L]=f,z;f!==void 0&&(u=z>>14&1023||536870912,H>=u?f!=null&&(L={},Q[u+b]=(L[H]=f,L),z|=256,BY(Q,z)):Q[L]=f);return z}; m8=function(Q,z,H,f,b){var L=Q.Pz;Q=L[r7]|0;var u=2&Q?1:f;b=!!b;f=Wo(L,Q,z);var X=f[r7]|0;if(!(4&X)){4&X&&(f=U2(f),X=Dc(X,Q),Q=i5(L,Q,z,f));for(var v=0,y=0;v "+Q)}; $f=function(Q){if(typeof Q==="string")return{buffer:$sJ(Q),LQ:!1};if(Array.isArray(Q))return{buffer:new Uint8Array(Q),LQ:!1};if(Q.constructor===Uint8Array)return{buffer:Q,LQ:!1};if(Q.constructor===ArrayBuffer)return{buffer:new Uint8Array(Q),LQ:!1};if(Q.constructor===jj)return{buffer:O2(Q)||new Uint8Array(0),LQ:!0};if(Q instanceof Uint8Array)return{buffer:new Uint8Array(Q.buffer,Q.byteOffset,Q.byteLength),LQ:!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"); }; jG_=function(Q,z){this.B=null;this.S=!1;this.Z=this.L=this.D=0;this.init(Q,void 0,void 0,z)}; xf=function(Q){var z=0,H=0,f=0,b=Q.B,L=Q.Z;do{var u=b[L++];z|=(u&127)<32&&(H|=(u&127)>>4);for(f=3;f<32&&u&128;f+=7)u=b[L++],H|=(u&127)<>>0,H>>>0);throw GH();}; FP=function(Q,z){Q.Z=z;if(z>Q.L)throw $Ip(Q.L,z);}; O$=function(Q){var z=Q.B,H=Q.Z,f=z[H++],b=f&127;if(f&128&&(f=z[H++],b|=(f&127)<<7,f&128&&(f=z[H++],b|=(f&127)<<14,f&128&&(f=z[H++],b|=(f&127)<<21,f&128&&(f=z[H++],b|=f<<28,f&128&&z[H++]&128&&z[H++]&128&&z[H++]&128&&z[H++]&128&&z[H++]&128)))))throw GH();FP(Q,H);return b}; o0=function(Q){var z=Q.B,H=Q.Z,f=z[H+0],b=z[H+1],L=z[H+2];z=z[H+3];FP(Q,Q.Z+4);return(f<<0|b<<8|L<<16|z<<24)>>>0}; Jc=function(Q){var z=o0(Q);Q=o0(Q);return Ho(z,Q)}; No=function(Q){var z=o0(Q),H=o0(Q);Q=(H>>31)*2+1;var f=H>>>20&2047;z=4294967296*(H&1048575)+z;return f==2047?z?NaN:Q*Infinity:f==0?Q*4.9E-324*z:Q*Math.pow(2,f-1075)*(z+4503599627370496)}; I0=function(Q){for(var z=0,H=Q.Z,f=H+10,b=Q.B;HQ.L)throw $Ip(z,Q.L-H);Q.Z=f;return H}; OrL=function(Q,z){if(z==0)return xT();var H=Fzc(Q,z);Q.Iw&&Q.S?H=Q.B.subarray(H,H+z):(Q=Q.B,z=H+z,H=H===z?new Uint8Array(0):xI_?Q.slice(H,z):new Uint8Array(Q.subarray(H,z)));return H.length==0?xT():new jj(H,Fk)}; Yf=function(Q,z){if(Ac.length){var H=Ac.pop();H.init(Q,void 0,void 0,z);Q=H}else Q=new jG_(Q,z);this.Z=Q;this.L=this.Z.Z;this.B=this.D=-1;oT9(this,z)}; oT9=function(Q,z){z=z===void 0?{}:z;Q.FF=z.FF===void 0?!1:z.FF}; JCa=function(Q){var z=Q.Z;if(z.Z==z.L)return!1;Q.L=Q.Z.Z;var H=O$(Q.Z)>>>0;z=H>>>3;H&=7;if(!(H>=0&&H<=5))throw G7Y(H,Q.L);if(z<1)throw Error("Invalid field number: "+z+" (at position "+Q.L+")");Q.D=z;Q.B=H;return!0}; rq=function(Q){switch(Q.B){case 0:Q.B!=0?rq(Q):I0(Q.Z);break;case 1:Q=Q.Z;FP(Q,Q.Z+8);break;case 2:if(Q.B!=2)rq(Q);else{var z=O$(Q.Z)>>>0;Q=Q.Z;FP(Q,Q.Z+z)}break;case 5:Q=Q.Z;FP(Q,Q.Z+4);break;case 3:z=Q.D;do{if(!JCa(Q))throw Error("Unmatched start-group tag: stream EOF");if(Q.B==4){if(Q.D!=z)throw Error("Unmatched end-group tag");break}rq(Q)}while(1);break;default:throw G7Y(Q.B,Q.L);}}; s$=function(Q,z,H){var f=Q.Z.L,b=O$(Q.Z)>>>0,L=Q.Z.Z+b,u=L-f;u<=0&&(Q.Z.L=L,H(z,Q,void 0,void 0,void 0),u=L-Q.Z.Z);if(u)throw Error("Message parsing ended unexpectedly. Expected to read "+(b+" bytes, instead read "+(b-u)+" bytes, either the data ended unexpectedly or the message misreported its own length"));Q.Z.Z=L;Q.Z.L=f}; a0=function(Q){var z=O$(Q.Z)>>>0;Q=Q.Z;var H=Fzc(Q,z);Q=Q.B;if(N7Z){var f=Q,b;(b=Bq)||(b=Bq=new TextDecoder("utf-8",{fatal:!0}));z=H+z;f=H===0&&z===f.length?f:f.subarray(H,z);try{var L=b.decode(f)}catch(y){if(Pq===void 0){try{b.decode(new Uint8Array([128]))}catch(q){}try{b.decode(new Uint8Array([97])),Pq=!0}catch(q){Pq=!1}}!Pq&&(Bq=void 0);throw y;}}else{L=H;z=L+z;H=[];for(var u=null,X,v;L=z?ns():(v=Q[L++],X<194||(v&192)!==128?(L--,ns()):H.push((X&31)<<6|v&63)): X<240?L>=z-1?ns():(v=Q[L++],(v&192)!==128||X===224&&v<160||X===237&&v>=160||((b=Q[L++])&192)!==128?(L--,ns()):H.push((X&15)<<12|(v&63)<<6|b&63)):X<=244?L>=z-2?ns():(v=Q[L++],(v&192)!==128||(X<<28)+(v-144)>>30!==0||((b=Q[L++])&192)!==128||((f=Q[L++])&192)!==128?(L--,ns()):(X=(X&7)<<18|(v&63)<<12|(b&63)<<6|f&63,X-=65536,H.push((X>>10&1023)+55296,(X&1023)+56320))):ns(),H.length>=8192&&(u=Bc6(u,H),H.length=0);L=Bc6(u,H)}return L}; I3c=function(Q){var z=O$(Q.Z)>>>0;return OrL(Q.Z,z)}; U$=function(Q,z,H){this.Pz=rC(Q,z,H)}; ACY=function(Q,z){if(z==null||z=="")return new Q;z=JSON.parse(z);if(!Array.isArray(z))throw Error("dnarr");s2(z,32);return new Q(z)}; cq=function(Q,z){this.B=Q>>>0;this.Z=z>>>0}; rCZ=function(Q){if(!Q)return Y2Z||(Y2Z=new cq(0,0));if(!/^\d+$/.test(Q))return null;fS(Q);return new cq(kT,T7)}; ir=function(Q,z){this.B=Q>>>0;this.Z=z>>>0}; B7u=function(Q){if(!Q)return sG8||(sG8=new ir(0,0));if(!/^-?\d+$/.test(Q))return null;fS(Q);return new ir(kT,T7)}; hc=function(){this.Z=[]}; Wq=function(Q,z,H){for(;H>0||z>127;)Q.Z.push(z&127|128),z=(z>>>7|H<<25)>>>0,H>>>=7;Q.Z.push(z)}; Du=function(Q,z){for(;z>127;)Q.Z.push(z&127|128),z>>>=7;Q.Z.push(z)}; P4p=function(Q,z){if(z>=0)Du(Q,z);else{for(var H=0;H<9;H++)Q.Z.push(z&127|128),z>>=7;Q.Z.push(1)}}; Kw=function(Q,z){Q.Z.push(z>>>0&255);Q.Z.push(z>>>8&255);Q.Z.push(z>>>16&255);Q.Z.push(z>>>24&255)}; a3A=function(){this.L=[];this.B=0;this.Z=new hc}; V3=function(Q,z){z.length!==0&&(Q.L.push(z),Q.B+=z.length)}; UI_=function(Q,z){dq(Q,z,2);z=Q.Z.end();V3(Q,z);z.push(Q.B);return z}; cCZ=function(Q,z){var H=z.pop();for(H=Q.B+Q.Z.length()-H;H>127;)z.push(H&127|128),H>>>=7,Q.B++;z.push(H);Q.B++}; irY=function(Q,z){V3(Q,Q.Z.end());for(var H=0;H>BigInt(32)));Q=Q.Z;z=H.Z;Kw(Q,H.B);Kw(Q,z);break;default:H=rCZ(H),Q=Q.Z,z=H.Z,Kw(Q,H.B),Kw(Q,z)}}}; m6=function(Q,z,H){dq(Q,z,2);Du(Q.Z,H.length);V3(Q,Q.Z.end());V3(Q,H)}; wq=function(){function Q(){throw Error();} Object.setPrototypeOf(Q,Q.prototype);return Q}; TH=function(Q,z,H){this.VI=Q;this.mR=z;Q=Znk(kf);this.Z=!!Q&&H===Q||!1}; e4=function(Q,z){var H=H===void 0?kf:H;return new TH(Q,z,H)}; DI6=function(Q,z,H,f,b){z=Wzu(z,f);z!=null&&(H=UI_(Q,H),b(z,Q),cCZ(Q,H))}; Qo=function(Q,z,H,f){var b=f[Q];if(b)return b;b={};b.Efn=f;b.Fl=Mj_(f[0]);var L=f[1],u=1;L&&L.constructor===Object&&(b.extensions=L,L=f[++u],typeof L==="function"&&(b.x_=!0,lr!=null||(lr=L),R0!=null||(R0=f[u+1]),L=f[u+=2]));for(var X={};L&&Array.isArray(L)&&L.length&&typeof L[0]==="number"&&L[0]>0;){for(var v=0;v>BigInt(32)));Wq(Q.Z,H.B,H.Z);break;default:H=B7u(z),Wq(Q.Z,H.B,H.Z)}}}; tb=function(Q,z,H){z=yr(z);z!=null&&z!=null&&(dq(Q,H,0),P4p(Q.Z,z))}; QU_=function(Q,z,H){z=z==null||typeof z==="boolean"?z:typeof z==="number"?!!z:void 0;z!=null&&(dq(Q,H,0),Q.Z.Z.push(z?1:0))}; zeL=function(Q,z,H){z=Fc(z);z!=null&&m6(Q,H,c8Z(z))}; HSJ=function(Q,z,H,f,b){z=Wzu(z,f);z!=null&&(H=UI_(Q,H),b(z,Q),cCZ(Q,H))}; bSZ=function(){this.Z=fcn;this.isRepeated=0;this.B=S4;this.defaultValue=void 0}; L8v=function(Q){return function(){var z=new a3A;eWA(this.Pz,z,Qo(uz,L$,Se,Q));V3(z,z.Z.end());for(var H=new Uint8Array(z.B),f=z.L,b=f.length,L=0,u=0;u>>31)&4294967295;M=b[0];var E=b[1],G=b[2],x=b[3],J=b[4];for(t=0;t<80;t++){if(t<40)if(t<20){var I=x^E&(G^x);var r=1518500249}else I=E^G^x,r=1859775393;else t<60?(I=E&G|x&(E|G),r=2400959708):(I=E^G^x,r=3395469782);I=((M<<5|M>>>27)&4294967295)+I+J+r+C[t]&4294967295;J=x;x=G;G=(E<<30|E>>>2)&4294967295;E=M;M=I}b[0]=b[0]+M&4294967295;b[1]=b[1]+E&4294967295;b[2]= b[2]+G&4294967295;b[3]=b[3]+x&4294967295;b[4]=b[4]+J&4294967295} function H(M,C){if(typeof M==="string"){M=unescape(encodeURIComponent(M));for(var t=[],E=0,G=M.length;E=56;t--)L[t]=C&255,C>>>=8;z(L);for(t=C=0;t<5;t++)for(var E=24;E>=0;E-=8)M[C++]=b[t]>>E&255;return M} for(var b=[],L=[],u=[],X=[128],v=1;v<64;++v)X[v]=0;var y,q;Q();return{reset:Q,update:H,digest:f,dw:function(){for(var M=f(),C="",t=0;t4);b++)z[w$(Q[b])]||(H+="\nInner error "+f++ +": ",Q[b].stack&&Q[b].stack.indexOf(Q[b].toString())==0||(H+=typeof Q[b]==="string"?Q[b]:Q[b].message+"\n"),H+=d$(Q[b],z));b")!=-1&&(Q=Q.replace(An9,">")),Q.indexOf('"')!=-1&&(Q=Q.replace(Y7k,""")),Q.indexOf("'")!=-1&&(Q=Q.replace(rnA,"'")),Q.indexOf("\x00")!=-1&&(Q=Q.replace(sUZ,"�")));return Q}; g.R$=function(Q){return Q==null?"":String(Q)}; Q4=function(Q){for(var z=0,H=0;H>>0;return z}; z2=function(Q){var z=Number(Q);return z==0&&g.j5(Q)?NaN:z}; BC6=function(Q){return String(Q).replace(/\-([a-z])/g,function(z,H){return H.toUpperCase()})}; P5L=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; acJ=function(Q){return Q.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(z,H,f){return H+f.toUpperCase()})}; U4L=function(Q){var z=1;Q=Q.split(":");for(var H=[];z>0&&Q.length;)H.push(Q.shift()),z--;Q.length&&H.push(Q.join(":"));return H}; H3=function(Q){this.Z=Q||{cookie:""}}; fC=function(Q){Q=(Q.Z.cookie||"").split(";");for(var z=[],H=[],f,b,L=0;L/g,">").replace(/"/g,""").replace(/'/g,"'");return PJ(Q)}; m4_=function(Q){var z=iQ("");return PJ(Q.map(function(H){return a$(iQ(H))}).join(a$(z).toString()))}; lcc=function(Q){var z;if(!woc.test("div"))throw Error("");if(kiA.indexOf("DIV")!==-1)throw Error("");var H="":(Q=m4_(z.map(function(f){return f instanceof BJ?f:iQ(String(f))})),H+=">"+Q.toString()+""); return PJ(H)}; TCc=function(Q){for(var z="",H=Object.keys(Q),f=0;f2&&uPc(b,u,f,2);return u}; uPc=function(Q,z,H,f){function b(X){X&&z.appendChild(typeof X==="string"?Q.createTextNode(X):X)} for(;f0)b(L);else{a:{if(L&&typeof L.length=="number"){if(g.wc(L)){var u=typeof L.item=="function"||typeof L.item=="string";break a}if(typeof L==="function"){u=typeof L.item=="function";break a}}u=!1}g.qI(u?g.Qi(L):L,b)}}}; g.Hx=function(Q){return Qp(document,Q)}; Qp=function(Q,z){z=String(z);Q.contentType==="application/xhtml+xml"&&(z=z.toLowerCase());return Q.createElement(z)}; g.fm=function(Q){return document.createTextNode(String(Q))}; g.bT=function(Q,z){Q.appendChild(z)}; g.Lm=function(Q){for(var z;z=Q.firstChild;)Q.removeChild(z)}; uT=function(Q,z,H){Q.insertBefore(z,Q.childNodes[H]||null)}; g.Sz=function(Q){return Q&&Q.parentNode?Q.parentNode.removeChild(Q):null}; g.XU=function(Q,z){if(!Q||!z)return!1;if(Q.contains&&z.nodeType==1)return Q==z||Q.contains(z);if(typeof Q.compareDocumentPosition!="undefined")return Q==z||!!(Q.compareDocumentPosition(z)&16);for(;z&&Q!=z;)z=z.parentNode;return z==Q}; W3=function(Q){return Q.nodeType==9?Q:Q.ownerDocument||Q.document}; g.vx=function(Q,z){if("textContent"in Q)Q.textContent=z;else if(Q.nodeType==3)Q.data=String(z);else if(Q.firstChild&&Q.firstChild.nodeType==3){for(;Q.lastChild!=Q.firstChild;)Q.removeChild(Q.lastChild);Q.firstChild.data=String(z)}else g.Lm(Q),Q.appendChild(W3(Q).createTextNode(String(z)))}; Xqv=function(Q){return Q.tagName=="A"&&Q.hasAttribute("href")||Q.tagName=="INPUT"||Q.tagName=="TEXTAREA"||Q.tagName=="SELECT"||Q.tagName=="BUTTON"?!Q.disabled&&(!Q.hasAttribute("tabindex")||S$a(Q)):Q.hasAttribute("tabindex")&&S$a(Q)}; S$a=function(Q){Q=Q.tabIndex;return typeof Q==="number"&&Q>=0&&Q<32768}; qK=function(Q,z,H){if(!z&&!H)return null;var f=z?String(z).toUpperCase():null;return yp(Q,function(b){return(!f||b.nodeName==f)&&(!H||typeof b.className==="string"&&g.kO(b.className.split(/\s+/),H))},!0)}; yp=function(Q,z,H){Q&&!H&&(Q=Q.parentNode);for(H=0;Q;){if(z(Q))return Q;Q=Q.parentNode;H++}return null}; h6=function(Q){this.Z=Q||g.iL.document||document}; MK=function(Q){this.Pz=rC(Q)}; Cm=function(Q){this.Pz=rC(Q)}; tU=function(Q){this.Pz=rC(Q)}; vfn=function(Q,z){y3(Q,Cm,1,z)}; E0=function(Q){this.Pz=rC(Q)}; q$v=function(Q,z){z=z===void 0?ycv:z;if(!pm){var H;Q=(H=Q.navigator)==null?void 0:H.userAgentData;if(!Q||typeof Q.getHighEntropyValues!=="function"||Q.brands&&typeof Q.brands.map!=="function")return Promise.reject(Error("UACH unavailable"));H=(Q.brands||[]).map(function(b){var L=new Cm;L=nw(L,1,b.brand);return nw(L,2,b.version)}); vfn(hn(nm,2,u5(Q.mobile)),H);pm=Q.getHighEntropyValues(z)}var f=new Set(z);return pm.then(function(b){var L=nm.clone();f.has("platform")&&nw(L,3,b.platform);f.has("platformVersion")&&nw(L,4,b.platformVersion);f.has("architecture")&&nw(L,5,b.architecture);f.has("model")&&nw(L,6,b.model);f.has("uaFullVersion")&&nw(L,7,b.uaFullVersion);return L}).catch(function(){return nm.clone()})}; gf=function(Q){this.Pz=rC(Q)}; M4Z=function(Q){this.Pz=rC(Q)}; ZN=function(Q){this.Pz=rC(Q,4)}; Gl=function(Q){this.Pz=rC(Q,36)}; $Z=function(Q){this.Pz=rC(Q,19)}; jz=function(Q,z){this.M3=z=z===void 0?!1:z;this.uach=this.locale=null;this.B=0;this.isFinal=!1;this.Z=new $Z;Number.isInteger(Q)&&this.Z.bx(Q);z||(this.locale=document.documentElement.getAttribute("lang"));Cru(this,new gf)}; Cru=function(Q,z){XP(Q.Z,gf,1,z);E$(z,1)||Zu(z,1,1);Q.M3||(z=xZ(Q),tc(z,5)||nw(z,5,Q.locale));Q.uach&&(z=xZ(Q),S4(z,tU,9)||XP(z,tU,9,Q.uach))}; t4p=function(Q,z){Q.B=z}; EfA=function(Q){var z=z===void 0?ycv:z;var H=Q.M3?void 0:RI();H?q$v(H,z).then(function(f){Q.uach=f;f=xZ(Q);XP(f,tU,9,Q.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)}; xZ=function(Q){Q=S4(Q.Z,gf,1);var z=S4(Q,E0,11);z||(z=new E0,XP(Q,E0,11,z));return z}; pqn=function(Q){return g.lQ?"webkit"+Q:Q.toLowerCase()}; g.O0=function(Q,z,H,f){this.D=Q;this.S=z;this.Z=this.L=Q;this.j=H||0;this.Y=f||2}; g.oK=function(Q){Q.Z=Math.min(Q.S,Q.Z*Q.Y);Q.L=Math.min(Q.S,Q.Z+(Q.j?Math.round(Q.j*(Math.random()-.5)*2*Q.Z):0));Q.B++}; nfL=function(Q){this.Pz=rC(Q,8)}; fcn=function(Q){this.Pz=rC(Q)}; NK=function(Q){g.h.call(this);var z=this;this.componentId="";this.Z=[];this.jm="";this.pageId=null;this.mq=this.L3=-1;this.Y=this.experimentIds=null;this.Ze=this.wh=this.j=this.D=0;this.En=1;this.timeoutMillis=0;this.De=!1;this.logSource=Q.logSource;this.h3=Q.h3||function(){}; this.L=new jz(Q.logSource,Q.M3);this.network=Q.network||null;this.qY=Q.qY||null;this.N=Q.M3T||null;this.sessionIndex=Q.sessionIndex||null;this.t1=Q.t1||!1;this.logger=null;this.withCredentials=!Q.eO;this.M3=Q.M3||!1;this.U=!this.M3&&!!RI()&&!!RI().navigator&&RI().navigator.sendBeacon!==void 0;this.f3=typeof URLSearchParams!=="undefined"&&!!(new URL(JU())).searchParams&&!!(new URL(JU())).searchParams.set;var H=Zu(new gf,1,1);Cru(this.L,H);this.S=new g.O0(1E4,3E5,.1);Q=gf_(this,Q.DT);this.B=new uQ(this.S.getValue(), Q);this.yl=new uQ(6E5,Q);this.t1||this.yl.start();this.M3||(document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&z.P4()}),document.addEventListener("pagehide",this.P4.bind(this)))}; gf_=function(Q,z){return Q.f3?z?function(){z().then(function(){Q.flush()})}:function(){Q.flush()}:function(){}}; Zwu=function(Q){Q.N||(Q.N=JU());try{return(new URL(Q.N)).toString()}catch(z){return(new URL(Q.N,RI().location.origin)).toString()}}; GHn=function(Q,z,H){H=H===void 0?Q.h3():H;var f={},b=new URL(Zwu(Q));H&&(f.Authorization=H);Q.sessionIndex&&(f["X-Goog-AuthUser"]=Q.sessionIndex,b.searchParams.set("authuser",Q.sessionIndex));Q.pageId&&(Object.defineProperty(f,"X-Goog-PageId",{value:Q.pageId}),b.searchParams.set("pageId",Q.pageId));return{url:b.toString(),body:z,U$:1,requestHeaders:f,requestType:"POST",withCredentials:Q.withCredentials,timeoutMillis:Q.timeoutMillis}}; j0L=function(Q){$on(Q,function(z,H){z=new URL(z);z.searchParams.set("format","json");var f=!1;try{f=RI().navigator.sendBeacon(z.toString(),H.dP())}catch(b){}f||(Q.U=!1);return f})}; $on=function(Q,z){if(Q.Z.length!==0){var H=new URL(Zwu(Q));H.searchParams.delete("format");var f=Q.h3();f&&H.searchParams.set("auth",f);H.searchParams.set("authuser",Q.sessionIndex||"0");for(f=0;f<10&&Q.Z.length;++f){var b=Q.Z.slice(0,32),L=Q.L.build(b,Q.D,Q.j,Q.qY,Q.wh,Q.Ze);if(!z(H.toString(),L)){++Q.j;break}Q.D=0;Q.j=0;Q.wh=0;Q.Ze=0;Q.Z=Q.Z.slice(b.length)}Q.B.enabled&&Q.B.stop()}}; JU=function(){return"https://play.google.com/log?format=json&hasfast=true"}; IK=function(){this.m1=typeof AbortController!=="undefined"}; AU=function(Q,z){g.h.call(this);this.logSource=Q;this.sessionIndex=z;this.E4="https://play.google.com/log?format=json&hasfast=true";this.B=null;this.D=!1;this.network=null;this.componentId="";this.Z=this.qY=null;this.L=!1;this.pageId=null}; F6a=function(Q,z){Q.B=z;return Q}; xoZ=function(Q,z){Q.network=z;return Q}; Owc=function(Q,z){Q.Z=z}; ofZ=function(Q){Q.L=!0;return Q}; YZ=function(Q,z,H,f,b,L,u){Q=Q===void 0?-1:Q;z=z===void 0?"":z;H=H===void 0?"":H;f=f===void 0?!1:f;b=b===void 0?"":b;g.h.call(this);this.logSource=Q;this.componentId=z;L?z=L:(Q=new AU(Q,"0"),Q.componentId=z,g.W(this,Q),H!==""&&(Q.E4=H),f&&(Q.D=!0),b&&F6a(Q,b),u&&xoZ(Q,u),z=Q.build());this.Z=z}; Jcu=function(Q){this.Z=Q}; rf=function(Q,z,H){this.B=Q;this.D=z;this.fields=H||[];this.Z=new Map}; ync=function(Q){return Q.fields.map(function(z){return z.fieldType})}; vtJ=function(Q){return Q.fields.map(function(z){return z.fieldName})}; s0=function(Q,z){rf.call(this,Q,3,z)}; Bx=function(Q,z){rf.call(this,Q,2,z)}; g.Px=function(Q,z){this.type=Q;this.currentTarget=this.target=z;this.defaultPrevented=this.B=!1}; aK=function(Q,z){g.Px.call(this,Q?Q.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.Z=null;Q&&this.init(Q,z)}; U0=function(Q){return!(!Q||!Q[NqJ])}; Ac_=function(Q,z,H,f,b){this.listener=Q;this.proxy=null;this.src=z;this.type=H;this.capture=!!f;this.Hc=b;this.key=++IuJ;this.removed=this.ws=!1}; cx=function(Q){Q.removed=!0;Q.listener=null;Q.proxy=null;Q.src=null;Q.Hc=null}; iT=function(Q){this.src=Q;this.listeners={};this.Z=0}; g.hU=function(Q,z){var H=z.type;H in Q.listeners&&g.e5(Q.listeners[H],z)&&(cx(z),Q.listeners[H].length==0&&(delete Q.listeners[H],Q.Z--))}; Wx=function(Q,z,H,f){for(var b=0;b1)));u=u.next)b||(L=u);b&&(H.Z==0&&f==1?zOA(H,z):(L?(f=L,f.next==H.D&&(H.D=f),f.next=f.next.next):H$a(H),fTn(H,b,3,z)))}Q.L=null}else pg(Q,3,z)}; $r=function(Q,z){Q.B||Q.Z!=2&&Q.Z!=3||b$J(Q);Q.D?Q.D.next=z:Q.B=z;Q.D=z}; LTu=function(Q,z,H,f){var b=ge(null,null,null);b.Z=new g.ng(function(L,u){b.L=z?function(X){try{var v=z.call(f,X);L(v)}catch(y){u(y)}}:L; b.B=H?function(X){try{var v=H.call(f,X);v===void 0&&X instanceof Fr?u(X):L(v)}catch(y){u(y)}}:u}); b.Z.L=Q;$r(Q,b);return b.Z}; pg=function(Q,z,H){Q.Z==0&&(Q===H&&(z=3,H=new TypeError("Promise cannot resolve to itself")),Q.Z=1,kHc(H,Q.OEh,Q.ZEe,Q)||(Q.Y=H,Q.Z=z,Q.L=null,b$J(Q),z!=3||H instanceof Fr||u3L(Q,H)))}; kHc=function(Q,z,H,f){if(Q instanceof g.ng)return Q$v(Q,z,H,f),!0;if(Q)try{var b=!!Q.$goog_Thenable}catch(u){b=!1}else b=!1;if(b)return Q.then(z,H,f),!0;if(g.wc(Q))try{var L=Q.then;if(typeof L==="function")return SKJ(Q,L,z,H,f),!0}catch(u){return H.call(f,u),!0}return!1}; SKJ=function(Q,z,H,f,b){function L(v){X||(X=!0,f.call(b,v))} function u(v){X||(X=!0,H.call(b,v))} var X=!1;try{z.call(Q,u,L)}catch(v){L(v)}}; b$J=function(Q){Q.j||(Q.j=!0,g.qH(Q.Mo,Q))}; H$a=function(Q){var z=null;Q.B&&(z=Q.B,Q.B=z.next,z.next=null);Q.B||(Q.D=null);return z}; fTn=function(Q,z,H,f){if(H==3&&z.B&&!z.D)for(;Q&&Q.S;Q=Q.L)Q.S=!1;if(z.Z)z.Z.L=null,XJ8(z,H,f);else try{z.D?z.L.call(z.context):XJ8(z,H,f)}catch(b){vgA.call(null,b)}cc_(wqL,z)}; XJ8=function(Q,z,H){z==2?Q.L.call(Q.context,H):Q.B&&Q.B.call(Q.context,H)}; u3L=function(Q,z){Q.S=!0;g.qH(function(){Q.S&&vgA.call(null,z)})}; Fr=function(Q){ET.call(this,Q)}; lu6=function(Q,z,H){this.promise=Q;this.resolve=z;this.reject=H}; g.xr=function(Q,z){g.Qe.call(this);this.I6=Q||1;this.CR=z||g.iL;this.Kk=(0,g.lL)(this.Ish,this);this.fO=g.Qs()}; g.OE=function(Q,z,H){if(typeof Q==="function")H&&(Q=(0,g.lL)(Q,H));else if(Q&&typeof Q.handleEvent=="function")Q=(0,g.lL)(Q.handleEvent,Q);else throw Error("Invalid listener argument");return Number(z)>2147483647?-1:g.iL.setTimeout(Q,z||0)}; oR=function(Q,z){var H=null;return(new g.ng(function(f,b){H=g.OE(function(){f(z)},Q); H==-1&&b(Error("Failed to schedule timer."))})).IN(function(f){g.iL.clearTimeout(H); throw f;})}; g.Jj=function(Q){g.h.call(this);this.Y=Q;this.D=0;this.L=100;this.S=!1;this.B=new Map;this.j=new Set;this.flushInterval=3E4;this.Z=new g.xr(this.flushInterval);this.Z.listen("tick",this.nR,!1,this);g.W(this,this.Z)}; ybA=function(Q){Q.Z.enabled||Q.Z.start();Q.D++;Q.D>=Q.L&&Q.nR()}; qKA=function(Q,z){return Q.j.has(z)?void 0:Q.B.get(z)}; MeY=function(Q){for(var z=0;z=0){var L=Q[H].substring(0,f);b=Q[H].substring(f+1)}else L=Q[H];z(L,b?ee(b):"")}}}; W4=function(Q,z){if(!z)return Q;var H=Q.indexOf("#");H<0&&(H=Q.length);var f=Q.indexOf("?");if(f<0||f>H){f=H;var b=""}else b=Q.substring(f+1,H);Q=[Q.slice(0,f),b,Q.slice(H)];H=Q[1];Q[1]=z?H?H+"&"+z:z:H;return Q[0]+(Q[1]?"?"+Q[1]:"")+Q[2]}; Dl=function(Q,z,H){if(Array.isArray(z))for(var f=0;f=0&&zH)b=H;f+=z.length+1;return ee(Q.slice(f,b!==-1?b:0))}; we=function(Q,z){for(var H=Q.search(xzc),f=0,b,L=[];(b=FSv(Q,f,z,H))>=0;)L.push(Q.substring(f,b)),f=Math.min(Q.indexOf("&",b)+1||H,H);L.push(Q.slice(f));return L.join("").replace(OCp,"$1")}; os8=function(Q,z,H){return de(we(Q,z),z,H)}; g.kr=function(Q){g.Qe.call(this);this.headers=new Map;this.yl=Q||null;this.L=!1;this.Z=null;this.N="";this.B=0;this.D="";this.S=this.L3=this.U=this.wh=!1;this.Ze=0;this.j=null;this.De="";this.Y=!1}; Nau=function(Q,z,H,f,b,L,u){var X=new g.kr;J6c.push(X);z&&X.listen("complete",z);X.iJ("ready",X.zd);L&&(X.Ze=Math.max(0,L));u&&(X.Y=u);X.send(Q,H,f,b)}; A69=function(Q,z){Q.L=!1;Q.Z&&(Q.S=!0,Q.Z.abort(),Q.S=!1);Q.D=z;Q.B=5;Izu(Q);TM(Q)}; Izu=function(Q){Q.wh||(Q.wh=!0,Q.dispatchEvent("complete"),Q.dispatchEvent("error"))}; Yrc=function(Q){if(Q.L&&typeof eL!="undefined")if(Q.U&&g.ld(Q)==4)setTimeout(Q.RH.bind(Q),0);else if(Q.dispatchEvent("readystatechange"),Q.isComplete()){Q.getStatus();Q.L=!1;try{if(RR(Q))Q.dispatchEvent("complete"),Q.dispatchEvent("success");else{Q.B=6;try{var z=g.ld(Q)>2?Q.Z.statusText:""}catch(H){z=""}Q.D=z+" ["+Q.getStatus()+"]";Izu(Q)}}finally{TM(Q)}}}; TM=function(Q,z){if(Q.Z){Q.j&&(clearTimeout(Q.j),Q.j=null);var H=Q.Z;Q.Z=null;z||Q.dispatchEvent("ready");try{H.onreadystatechange=null}catch(f){}}}; RR=function(Q){var z=Q.getStatus();a:switch(z){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var H=!0;break a;default:H=!1}if(!H){if(z=z===0)Q=g.UE(1,String(Q.N)),!Q&&g.iL.self&&g.iL.self.location&&(Q=g.iL.self.location.protocol.slice(0,-1)),z=!r6A.test(Q?Q.toLowerCase():"");H=z}return H}; g.ld=function(Q){return Q.Z?Q.Z.readyState:0}; g.Q$=function(Q){try{return Q.Z?Q.Z.responseText:""}catch(z){return""}}; g.zA=function(Q){try{if(!Q.Z)return null;if("response"in Q.Z)return Q.Z.response;switch(Q.De){case "":case "text":return Q.Z.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in Q.Z)return Q.Z.mozResponseArrayBuffer}return null}catch(z){return null}}; g.sIp=function(Q){var z={};Q=(Q.Z&&g.ld(Q)>=2?Q.Z.getAllResponseHeaders()||"":"").split("\r\n");for(var H=0;H>1,z),Na(Q,Q.length>>1)]}; q0u=function(Q){var z=g.n(yUu(Q,Ap));Q=z.next().value;z=z.next().value;return Q.toString(16)+z.toString(16)}; Mz8=function(Q,z){var H=yUu(z);Q=new Uint32Array(Q.buffer);z=Q[0];var f=g.n(H);H=f.next().value;f=f.next().value;for(var b=1;b>>8|u<<24,u+=L|0,u^=X+38293,L=L<<3|L>>>29,L^=u,v=v>>>8|v<<24,v+=X|0,v^=y+38293,X=X<<3|X>>>29,X^=v;L=[L,u];Q[b]^=L[0];b+1=H?(globalThis.sessionStorage.removeItem(Q),["e"]):["a",new Uint8Array(f.buffer,z+4)]}; YM=function(Q,z,H){H=H===void 0?[]:H;this.maxItems=Q;this.Z=z===void 0?0:z;this.B=H}; EZ9=function(Q){var z=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!z)return new YM(Q);var H=z.split(",");if(H.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new YM(Q);z=H.slice(1);z.length===1&&z[0]===""&&(z=[]);H=Number(H[0]);return isNaN(H)||H<0||H>z.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new YM(Q)):new YM(Q,H,z)}; pxk=function(Q,z){this.logger=z;try{var H=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(f){H=!1}H&&(this.index=EZ9(Q))}; nZa=function(Q,z,H,f,b){var L=Q.index?SB(Q.logger,function(){return CTA(Q.index,q0u(z),H,f,b)},"W"):"u"; Q.logger.Dp(L)}; gZc=function(Q,z,H){var f=g.n(Q.index?SB(Q.logger,function(){return tzn(q0u(z),H)},"R"):["u"]),b=f.next().value; f=f.next().value;Q.logger.qk(b);return f}; $Kv=function(Q){function z(){H-=f;H-=b;H^=b>>>13;f-=b;f-=H;f^=H<<8;b-=H;b-=f;b^=f>>>13;H-=f;H-=b;H^=b>>>12;f-=b;f-=H;f^=H<<16;b-=H;b-=f;b^=f>>>5;H-=f;H-=b;H^=b>>>3;f-=b;f-=H;f^=H<<10;b-=H;b-=f;b^=f>>>15} Q=Zma(Q);for(var H=2654435769,f=2654435769,b=314159265,L=Q.length,u=L,X=0;u>=12;u-=12,X+=12)H+=rB(Q,X),f+=rB(Q,X+4),b+=rB(Q,X+8),z();b+=L;switch(u){case 11:b+=Q[X+10]<<24;case 10:b+=Q[X+9]<<16;case 9:b+=Q[X+8]<<8;case 8:f+=Q[X+7]<<24;case 7:f+=Q[X+6]<<16;case 6:f+=Q[X+5]<<8;case 5:f+=Q[X+4];case 4:H+=Q[X+3]<<24;case 3:H+=Q[X+2]<<16;case 2:H+=Q[X+1]<<8;case 1:H+=Q[X+0]}z();return Gln.toString(b)}; Zma=function(Q){for(var z=[],H=0;H>7,Q.error.code]);f.set(H,4);return f}; DW=function(Q,z,H){so.call(this,Q);this.D=z;this.clientState=H;this.Z="S";this.L="q"}; Wn=function(Q){return globalThis.TextEncoder?(new TextEncoder).encode(Q):g.ZL(Q)}; xK6=function(Q,z,H){return Q instanceof xM?ef8(Q,H,z,1):Q.Na(H)}; KW=function(Q,z,H){g.h.call(this);var f=this;this.logger=Q;this.onError=z;this.state=H;this.Y=0;this.B=void 0;this.addOnDisposeCallback(function(){f.Z&&(f.Z.dispose(),f.Z=void 0)})}; Omv=function(Q,z){z=z instanceof Hu?z:new Hu(5,"TVD:error",z);return Q.reportError(z)}; V$=function(Q,z,H){try{if(Q.Sm())throw new Hu(21,"BNT:disposed");if(!Q.Z&&Q.B)throw Q.B;var f,b;return(b=(f=oZa(Q,z,H))!=null?f:JUp(Q,z,H))!=null?b:Nf8(Q,z,H)}catch(L){if(!z.MM)throw Omv(Q,L);return INZ(Q,H,L)}}; oZa=function(Q,z,H){var f;return(f=Q.Z)==null?void 0:Pn(f,function(){return dB(Q,z)},H,function(b){var L; if(Q.Z instanceof a6&&((L=z.WB)==null?0:L.Q5))try{var u;(u=Q.cache)==null||nZa(u,dB(Q,z),b,z.WB.KW,Q.N-120)}catch(X){Q.reportError(new Hu(24,"ELX:write",X))}})}; JUp=function(Q,z,H){var f;if((f=z.WB)!=null&&f.lI)try{var b,L=(b=Q.cache)==null?void 0:gZc(b,dB(Q,z),z.WB.KW);return L?H?SB(Q.logger,function(){return g.nr(L,2)},"a"):L:void 0}catch(u){Q.reportError(new Hu(23,"RXO:read",u))}}; Nf8=function(Q,z,H){var f={stack:[],error:void 0,hasError:!1};try{if(!z.kC)throw new Hu(29,"SDF:notready");return Pn(Gu_(f,new DW(Q.logger,Q.Y,Q.state)),function(){return dB(Q,z)},H)}catch(b){f.error=b,f.hasError=!0}finally{$ku(f)}}; INZ=function(Q,z,H){var f={stack:[],error:void 0,hasError:!1};try{var b=Omv(Q,H);return Pn(Gu_(f,new hp(Q.logger,b)),function(){return[]},z)}catch(L){f.error=L,f.hasError=!0}finally{$ku(f)}}; dB=function(Q,z){return z.Zo?z.Zo:z.hT?SB(Q.logger,function(){return z.Zo=Wn(z.hT)},"c"):[]}; wB=function(Q){var z;KW.call(this,Q.Wc.Jr(),(z=Q.onError)!=null?z:function(){},0); var H=this;this.S=0;this.D=new g.nW;this.L=!1;this.Wc=Q.Wc;this.Gi=Q.Gi;this.du=Object.assign({},AUv,Q.du||{});Q.RN&&(this.logger instanceof Ma||this.logger instanceof vn)&&this.logger.vg(Q.RN);this.q5=Q.q5||!1;if(Y0Y(Q)){var f=this.Wc;this.j=function(){return HmZ(f).catch(function(u){u=H.reportError(new Hu(H.L?20:32,"TRG:Disposed",u));H.B=u;var X;(X=H.Z)==null||X.dispose();H.Z=void 0;H.D.reject(u)})}; fNv(f,function(){return void mv(H)}); f.N===2&&mv(this)}else this.j=Q.z7m,mv(this);var b=this.logger.share();b.EJ("o");var L=new LW(b,"o");this.D.promise.then(function(){L.done();b.p9();b.dispose()},function(){return void b.dispose()}); this.addOnDisposeCallback(function(){H.L||(H.B?H.logger.p9():(H.B=H.reportError(new Hu(32,"TNP:Disposed")),H.logger.p9(),H.D.reject(H.B)))}); g.W(this,this.logger)}; rUL=function(Q,z){if(!(z instanceof Hu))if(z instanceof NH){var H=Error(z.toString());H.stack=z.stack;z=new Hu(11,"EBH:Error",H)}else z=new Hu(12,"BSO:Unknown",z);return Q.reportError(z)}; mv=function(Q){var z,H,f,b,L,u,X,v,y,q,M,C,t,E,G;return g.B(function(x){switch(x.Z){case 1:z=void 0;Q.S++;H=new g.nW;Q.Wc instanceof Oo&&Q.Wc.D.push(H.promise);if(!Q.q5){x.bT(2);break}f=new g.nW;setTimeout(function(){return void f.resolve()}); return g.Y(x,f.promise,2);case 2:return b=Q.logger.share(),g.$v(x,4,5),Q.state=5,L={},u=[],g.Y(x,Jp(Q.Wc.snapshot({hT:L,XJ:u}),Q.du.ls3,function(){return Promise.reject(new Hu(15,"MDA:Timeout"))}),7); case 7:X=x.B;if(Q.Sm())throw new Hu(Q.L?20:32,"MDA:Disposed");v=u[0];Q.state=6;return g.Y(x,Jp(xK6(Q.Gi,b,X),Q.du.SX,function(){return Promise.reject(new Hu(10,"BWB:Timeout"))}),8); case 8:y=x.B;if(Q.Sm())throw new Hu(Q.L?20:32,"BWB:Disposed");Q.state=7;z=SB(b,function(){var I=sK8(Q,y,H,v);I.B.promise.then(function(){return void Q.j()}).catch(function(){}); return I},"i"); case 5:g.OA(x);b.dispose();g.oJ(x,6);break;case 4:q=g.xv(x);(M=z)==null||M.dispose();if(!Q.B){C=rUL(Q,q);H.resolve();var J;if(J=Q.Wc instanceof Oo&&Q.S<2)a:if(q instanceof Hu)J=q.code!==32&&q.code!==20&&q.code!==10;else{if(q instanceof NH)switch(q.code){case 2:case 13:case 14:case 4:break;default:J=!1;break a}J=!0}if(J)return t=(1+Math.random()*.25)*(Q.L?6E4:1E3),E=setTimeout(function(){return void Q.j()},t),Q.addOnDisposeCallback(function(){return void clearTimeout(E)}),x.return(); Q.B=C}b.NO(Q.L?13:14);Q.D.reject(Q.B);return x.return();case 6:Q.state=8,Q.S=0,(G=Q.Z)==null||G.dispose(),Q.Z=z,Q.L=!0,Q.D.resolve(),g.Gu(x)}})}; sK8=function(Q,z,H,f){var b=Cw(z,2)*1E3;if(b<=0)throw new Hu(31,"TTM:Invalid");if(tc(z,4))return new cn(Q.logger,tc(z,4),b);if(!Cw(z,3))return new Uo(Q.logger,oG(kt(z,1)),b);if(!f)throw new Hu(4,"PMD:Undefined");f=f(oG(kt(z,1)));if(!(f instanceof Function))throw new Hu(16,"APF:Failed");Q.N=Math.floor((Date.now()+b)/1E3);Q=new a6(Q.logger,f,Cw(z,3),b);Q.addOnDisposeCallback(function(){return void H.resolve()}); return Q}; kM=function(){var Q=0,z;return function(H){z||(z=new X0);var f=new DW(z,Q,1),b=Pn(f,function(){return Wn(H)},!0); f.dispose();Q++;return b}}; TA=function(Q){this.Pz=rC(Q)}; Bfv=function(Q,z,H){this.HD=Q;this.Bj=z;this.metadata=H}; eB=function(Q,z){z=z===void 0?{}:z;this.Eu3=Q;this.metadata=z;this.status=null}; lu=function(Q,z,H,f,b){this.name=Q;this.methodType="unary";this.requestType=z;this.responseType=H;this.Z=f;this.B=b}; R6=function(Q){this.Pz=rC(Q)}; Qf=function(Q){this.Pz=rC(Q)}; zn=function(Q){this.Pz=rC(Q)}; HQ=function(Q,z){this.Y=Q.e93;this.N=z;this.Z=Q.xhr;this.L=[];this.S=[];this.j=[];this.D=[];this.B=[];this.Y&&PTL(this)}; imc=function(Q,z){var H=new aN_;g.Km(Q.Z,"complete",function(){if(RR(Q.Z)){var f=g.Q$(Q.Z);if(z&&Q.Z.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");f=atob(f)}try{var b=Q.N(f)}catch(X){f7(Q,bl(new NH(13,"Error when deserializing response data; error: "+X+(", response: "+f)),H));return}f=Cz_(Q.Z.getStatus());L7(Q,ul(Q));f==0?UKL(Q,b):f7(Q,bl(new NH(f,"Xhr succeeded but the status code is not 200"),H))}else{f=g.Q$(Q.Z);b=ul(Q);if(f){var L=cUu(Q, f);f=L.code;var u=L.details;L=L.metadata}else f=2,u="Rpc failed due to xhr error. uri: "+String(Q.Z.N)+", error code: "+Q.Z.B+", error: "+Q.Z.getLastError(),L=b;L7(Q,b);f7(Q,bl(new NH(f,u,L),H))}})}; PTL=function(Q){Q.Y.SE("data",function(z){if("1"in z){var H=z["1"];try{var f=Q.N(H)}catch(b){f7(Q,new NH(13,"Error when deserializing response data; error: "+b+(", response: "+H)))}f&&UKL(Q,f)}if("2"in z)for(z=cUu(Q,z["2"]),H=0;H-1&&Q.splice(z,1)}; UKL=function(Q,z){for(var H=0;H>4&15).toString(16)+(Q&15).toString(16)}; gj=function(Q,z){this.B=this.Z=null;this.L=Q||null;this.D=!!z}; jF=function(Q){Q.Z||(Q.Z=new Map,Q.B=0,Q.L&&hj(Q.L,function(z,H){Q.add(ee(z),H)}))}; dKu=function(Q,z){jF(Q);z=FA(Q,z);return Q.Z.has(z)}; g.mKp=function(Q,z,H){Q.remove(z);H.length>0&&(Q.L=null,Q.Z.set(FA(Q,z),g.Qi(H)),Q.B=Q.B+H.length)}; FA=function(Q,z){z=String(z);Q.D&&(z=z.toLowerCase());return z}; DK9=function(Q,z){z&&!Q.D&&(jF(Q),Q.L=null,Q.Z.forEach(function(H,f){var b=f.toLowerCase();f!=b&&(this.remove(f),g.mKp(this,b,H))},Q)); Q.D=z}; g.wx_=function(Q){var z="";g.G2(Q,function(H,f){z+=f;z+=":";z+=H;z+="\r\n"}); return z}; g.xq=function(Q,z,H){if(g.Ys(H))return Q;H=g.wx_(H);if(typeof Q==="string")return de(Q,g.TU(z),H);g.Gn(Q,z,H);return Q}; g.Oa=function(Q){g.h.call(this);this.B=Q;this.Z={}}; klu=function(Q,z,H,f,b,L){if(Array.isArray(H))for(var u=0;u0&&(z[b]=f)},Q); return z}; F_Y=function(Q){Q=yy(Q);var z=[];g.G2(Q,function(H,f){f in Object.prototype||typeof H!="undefined"&&z.push([f,":",H].join(""))}); return z}; Ogv=function(Q){St(Q,"od",xHp);St(Q,"opac",qT).Z=!0;St(Q,"sbeos",qT).Z=!0;St(Q,"prf",qT).Z=!0;St(Q,"mwt",qT).Z=!0;St(Q,"iogeo",qT)}; orc=function(){this.Z=this.S5=null}; MT=function(){}; t5=function(){if(!Cl())throw Error();}; Cl=function(){return!(!En||!En.performance)}; pl=function(Q){return Q?Q.passive&&Jjv()?Q:Q.capture||!1:!1}; nl=function(Q,z,H,f){return Q.addEventListener?(Q.addEventListener(z,H,pl(f)),!0):!1}; gA=function(Q){return Q.prerendering?3:{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[Q.visibilityState||Q.webkitVisibilityState||Q.mozVisibilityState||""]||0}; Nev=function(){}; Il9=function(){return(Iu||At)&&YO?YO.mobile:!Zk()&&(sT("iPod")||sT("iPhone")||sT("Android")||sT("IEMobile"))}; Zk=function(){return(Iu||At)&&YO?!YO.mobile&&(sT("iPad")||sT("Android")||sT("Silk")):sT("iPad")||sT("Android")&&!sT("Mobile")||sT("Silk")}; G9=function(Q){try{return!!Q&&Q.location.href!=null&&STc(Q,"foo")}catch(z){return!1}}; $3=function(Q,z){if(Q)for(var H in Q)Object.prototype.hasOwnProperty.call(Q,H)&&z(Q[H],H,Q)}; YE9=function(){var Q=[];$3(Ajp,function(z){Q.push(z)}); return Q}; rj9=function(Q){var z,H;return(H=(z=/https?:\/\/[^\/]+/.exec(Q))==null?void 0:z[0])!=null?H:""}; Pd_=function(){var Q=sRY("IFRAME"),z={};g.qI(BeZ(),function(H){Q.sandbox&&Q.sandbox.supports&&Q.sandbox.supports(H)&&(z[H]=!0)}); return z}; sRY=function(Q,z){z=z===void 0?document:z;return z.createElement(String(Q).toLowerCase())}; alL=function(Q){for(var z=Q;Q&&Q!=Q.parent;)Q=Q.parent,G9(Q)&&(z=Q);return z}; hUk=function(Q){Q=Q||jt();for(var z=new UHp(g.iL.location.href,!1),H=null,f=Q.length-1,b=f;b>=0;--b){var L=Q[b];!H&&cjL.test(L.url)&&(H=L);if(L.url&&!L.Eb){z=L;break}}b=null;L=Q.length&&Q[f].url;z.depth!=0&&L&&(b=Q[f]);return new ign(z,b,H)}; jt=function(){var Q=g.iL,z=[],H=null;do{var f=Q;if(G9(f)){var b=f.location.href;H=f.document&&f.document.referrer||null}else b=H,H=null;z.push(new UHp(b||""));try{Q=f.parent}catch(L){Q=null}}while(Q&&f!=Q);f=0;for(Q=z.length-1;f<=Q;++f)z[f].depth=Q-f;f=g.iL;if(f.location&&f.location.ancestorOrigins&&f.location.ancestorOrigins.length==z.length-1)for(Q=1;Qz&&(z=H.length);return 3997-z-Q.L.length-1}; os=function(Q,z){this.Z=Q;this.depth=z}; VLp=function(){function Q(X,v){return X==null?v:X} var z=jt(),H=Math.max(z.length-1,0),f=hUk(z);z=f.Z;var b=f.B,L=f.L,u=[];L&&u.push(new os([L.url,L.Eb?2:0],Q(L.depth,1)));b&&b!=L&&u.push(new os([b.url,2],0));z.url&&z!=L&&u.push(new os([z.url,0],Q(z.depth,H)));f=g.J5(u,function(X,v){return u.slice(0,u.length-v)}); !z.url||(L||b)&&z!=L||(b=rj9(z.url))&&f.push([new os([b,1],Q(z.depth,H))]);f.push([]);return g.J5(f,function(X){return K_v(H,X)})}; K_v=function(Q,z){g.NT(z,function(b){return b.depth>=0}); var H=Is(z,function(b,L){return Math.max(b,L.depth)},-1),f=LBY(H+2); f[0]=Q;g.qI(z,function(b){return f[b.depth+1]=b.Z}); return f}; dH9=function(){var Q=Q===void 0?VLp():Q;return Q.map(function(z){return On(z)})}; mH6=function(Q){var z=!1;z=z===void 0?!1:z;En.google_image_requests||(En.google_image_requests=[]);var H=sRY("IMG",En.document);z&&(H.attributionSrc="");H.src=Q;En.google_image_requests.push(H)}; A5=function(Q){var z="bW";if(Q.bW&&Q.hasOwnProperty(z))return Q.bW;var H=new Q;Q.bW=H;Q.hasOwnProperty(z);return H}; Y3=function(){this.B=new Nev;this.Z=Cl()?new t5:new MT}; w4c=function(){rA();var Q=En.document;return!!(Q&&Q.body&&Q.body.getBoundingClientRect&&typeof En.setInterval==="function"&&typeof En.clearInterval==="function"&&typeof En.setTimeout==="function"&&typeof En.clearTimeout==="function")}; kMp=function(){rA();return dH9()}; Teu=function(){}; rA=function(){var Q=A5(Teu);if(!Q.Z){if(!En)throw Error("Context has not been set and window is undefined.");Q.Z=A5(Y3)}return Q.Z}; sn=function(Q){this.Pz=rC(Q)}; eUY=function(Q){this.L=Q;this.Z=-1;this.B=this.D=0}; BI=function(Q,z){return function(){var H=g.A8.apply(0,arguments);if(Q.Z>-1)return z.apply(null,g.F(H));try{return Q.Z=Q.L.Z.now(),z.apply(null,g.F(H))}finally{Q.D+=Q.L.Z.now()-Q.Z,Q.Z=-1,Q.B+=1}}}; llc=function(Q,z){this.B=Q;this.L=z;this.Z=new eUY(Q)}; RU8=function(){this.Z={}}; zZ9=function(){var Q=PI().flags,z=Q6Z;Q=Q.Z[z.key];if(z.valueType==="proto"){try{var H=JSON.parse(Q);if(Array.isArray(H))return H}catch(f){}return z.defaultValue}return typeof Q===typeof z.defaultValue?Q:z.defaultValue}; Lvp=function(){this.L=void 0;this.B=this.j=0;this.S=-1;this.K5=new uV;St(this.K5,"mv",HWn).Z=!0;St(this.K5,"omid",qT);St(this.K5,"epoh",qT).Z=!0;St(this.K5,"epph",qT).Z=!0;St(this.K5,"umt",qT).Z=!0;St(this.K5,"phel",qT).Z=!0;St(this.K5,"phell",qT).Z=!0;St(this.K5,"oseid",fWp).Z=!0;var Q=this.K5;Q.Z.sloi||(Q.Z.sloi=new bV);Q.Z.sloi.Z=!0;St(this.K5,"mm",as);St(this.K5,"ovms",bW_).Z=!0;St(this.K5,"xdi",qT).Z=!0;St(this.K5,"amp",qT).Z=!0;St(this.K5,"prf",qT).Z=!0;St(this.K5,"gtx",qT).Z=!0;St(this.K5, "mvp_lv",qT).Z=!0;St(this.K5,"ssmol",qT).Z=!0;St(this.K5,"fmd",qT).Z=!0;St(this.K5,"gen204simple",qT);this.Z=new llc(rA(),this.K5);this.D=!1;this.flags=new RU8}; PI=function(){return A5(Lvp)}; u0n=function(Q,z,H,f){if(Math.random()<(f||Q.Z))try{if(H instanceof FY)var b=H;else b=new FY,$3(H,function(u,X){var v=b,y=v.D++;u=x3(X,u);v.Z.push(y);v.B[y]=u}); var L=b.mM(Q.B,"pagead2.googlesyndication.com","/pagead/gen_204?id="+z+"&");L&&(rA(),mH6(L))}catch(u){}}; SoZ=function(Q,z,H){H=H===void 0?{}:H;this.error=Q;this.context=z.context;this.msg=z.message||"";this.id=z.id||"jserror";this.meta=H}; XnJ=function(){var Q=Q===void 0?g.iL:Q;return(Q=Q.performance)&&Q.now&&Q.timing?Math.floor(Q.now()+Q.timing.navigationStart):g.Qs()}; vMZ=function(){var Q=Q===void 0?g.iL:Q;return(Q=Q.performance)&&Q.now?Q.now():null}; ypu=function(Q,z,H){this.label=Q;this.type=z;this.value=H;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; cI=function(){var Q=window;this.events=[];this.B=Q||g.iL;var z=null;Q&&(Q.google_js_reporting_queue=Q.google_js_reporting_queue||[],this.events=Q.google_js_reporting_queue,z=Q.google_measure_js_timing);this.Z=Un()||(z!=null?z:Math.random()<1)}; qov=function(Q){Q&&iV&&Un()&&(iV.clearMarks("goog_"+Q.label+"_"+Q.uniqueId+"_start"),iV.clearMarks("goog_"+Q.label+"_"+Q.uniqueId+"_end"))}; MBA=function(){var Q=h5;this.Z=WI;this.k0="jserror";this.FC=!0;this.nh=null;this.B=this.ZN;this.C5=Q===void 0?null:Q}; CuA=function(Q,z,H){var f=Dk;return BI(PI().Z.Z,function(){try{if(f.C5&&f.C5.Z){var b=f.C5.start(Q.toString(),3);var L=z();f.C5.end(b)}else L=z()}catch(X){var u=f.FC;try{qov(b),u=f.B(Q,new Kl(Vy(X)),void 0,H)}catch(v){f.ZN(217,v)}if(!u)throw X;}return L})()}; dA=function(Q,z,H,f){return BI(PI().Z.Z,function(){var b=g.A8.apply(0,arguments);return CuA(Q,function(){return z.apply(H,b)},f)})}; Vy=function(Q){var z=Q.toString();Q.name&&z.indexOf(Q.name)==-1&&(z+=": "+Q.name);Q.message&&z.indexOf(Q.message)==-1&&(z+=": "+Q.message);if(Q.stack)a:{Q=Q.stack;var H=z;try{Q.indexOf(H)==-1&&(Q=H+"\n"+Q);for(var f;Q!=f;)f=Q,Q=Q.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");z=Q.replace(/\n */g,"\n");break a}catch(b){z=H;break a}z=void 0}return z}; Kl=function(Q){SoZ.call(this,Error(Q),{message:Q})}; tBc=function(){En&&typeof En.google_measure_js_timing!="undefined"&&(En.google_measure_js_timing||h5.disable())}; EMp=function(Q){Dk.nh=function(z){g.qI(Q,function(H){H(z)})}}; pnL=function(Q,z){return CuA(Q,z)}; mo=function(Q,z){return dA(Q,z)}; wA=function(Q,z,H,f){Dk.ZN(Q,z,H,f)}; k3=function(){return Date.now()-nMA}; gML=function(){var Q=PI().L,z=T9>=0?k3()-T9:-1,H=et?k3()-lV:-1,f=Rs>=0?k3()-Rs:-1;if(Q==947190542)return 100;if(Q==79463069)return 200;Q=[2E3,4E3];var b=[250,500,1E3];wA(637,Error(),.001);var L=z;H!=-1&&H1500&&f<4E3?500:u}; QY=function(Q,z,H,f){this.top=Q;this.right=z;this.bottom=H;this.left=f}; zJ=function(Q){return Q.right-Q.left}; Hr=function(Q,z){return Q==z?!0:Q&&z?Q.top==z.top&&Q.right==z.right&&Q.bottom==z.bottom&&Q.left==z.left:!1}; fh=function(Q,z,H){z instanceof g.t6?(Q.left+=z.x,Q.right+=z.x,Q.top+=z.y,Q.bottom+=z.y):(Q.left+=z,Q.right+=z,typeof H==="number"&&(Q.top+=H,Q.bottom+=H));return Q}; bW=function(Q,z,H){var f=new QY(0,0,0,0);this.time=Q;this.volume=null;this.L=z;this.Z=f;this.B=H}; Lh=function(Q,z,H,f,b,L,u,X){this.D=Q;this.Y=z;this.L=H;this.j=f;this.Z=b;this.S=L;this.B=u;this.N=X}; GAZ=function(Q){var z=Q!==Q.top,H=Q.top===alL(Q),f=-1,b=0;if(z&&H&&Q.top.mraid){f=3;var L=Q.top.mraid}else f=(L=Q.mraid)?z?H?2:1:0:-1;L&&(L.IS_GMA_SDK||(b=2),W8c(ZWZ,function(u){return typeof L[u]==="function"})||(b=1)); return{Z4:L,compatibility:b,yFI:f}}; $ac=function(){var Q=window.document;return Q&&typeof Q.elementFromPoint==="function"}; j6L=function(Q,z,H){Q&&z!==null&&z!=z.top&&(z=z.top);try{return(H===void 0?0:H)?(new g.pC(z.innerWidth,z.innerHeight)).round():fuv(z||window).round()}catch(f){return new g.pC(-12245933,-12245933)}}; uW=function(Q,z,H){try{Q&&(z=z.top);var f=j6L(Q,z,H),b=f.height,L=f.width;if(L===-12245933)return new QY(L,L,L,L);var u=L6p(Dz(z.document).Z),X=u.x,v=u.y;return new QY(v,X+L,v+b,X)}catch(y){return new QY(-12245933,-12245933,-12245933,-12245933)}}; g.S$=function(Q,z,H,f){this.left=Q;this.top=z;this.width=H;this.height=f}; XL=function(Q,z){return Q==z?!0:Q&&z?Q.left==z.left&&Q.width==z.width&&Q.top==z.top&&Q.height==z.height:!1}; g.q2=function(Q,z,H){if(typeof z==="string")(z=vr(Q,z))&&(Q.style[z]=H);else for(var f in z){H=Q;var b=z[f],L=vr(H,f);L&&(H.style[L]=b)}}; vr=function(Q,z){var H=FvL[z];if(!H){var f=BC6(z);H=f;Q.style[f]===void 0&&(f=(g.lQ?"Webkit":Ch?"Moz":null)+acJ(f),Q.style[f]!==void 0&&(H=f));FvL[z]=H}return H}; g.tx=function(Q,z){var H=Q.style[BC6(z)];return typeof H!=="undefined"?H:Q.style[vr(Q,z)]||""}; Ei=function(Q,z){var H=W3(Q);return H.defaultView&&H.defaultView.getComputedStyle&&(Q=H.defaultView.getComputedStyle(Q,null))?Q[z]||Q.getPropertyValue(z)||"":""}; ph=function(Q,z){return Ei(Q,z)||(Q.currentStyle?Q.currentStyle[z]:null)||Q.style&&Q.style[z]}; g.gW=function(Q,z,H){if(z instanceof g.t6){var f=z.x;z=z.y}else f=z,z=H;Q.style.left=g.nh(f,!1);Q.style.top=g.nh(z,!1)}; Z5=function(Q){try{return Q.getBoundingClientRect()}catch(z){return{left:0,top:0,right:0,bottom:0}}}; xa8=function(Q){var z=W3(Q),H=ph(Q,"position"),f=H=="fixed"||H=="absolute";for(Q=Q.parentNode;Q&&Q!=z;Q=Q.parentNode)if(Q.nodeType==11&&Q.host&&(Q=Q.host),H=ph(Q,"position"),f=f&&H=="static"&&Q!=z.documentElement&&Q!=z.body,!f&&(Q.scrollWidth>Q.clientWidth||Q.scrollHeight>Q.clientHeight||H=="fixed"||H=="absolute"||H=="relative"))return Q;return null}; g.GJ=function(Q){var z=W3(Q),H=new g.t6(0,0);if(Q==(z?W3(z):document).documentElement)return H;Q=Z5(Q);z=L6p(Dz(z).Z);H.x=Q.left+z.x;H.y=Q.top+z.y;return H}; oMa=function(Q,z){var H=new g.t6(0,0),f=RI(W3(Q));if(!STc(f,"parent"))return H;do{var b=f==z?g.GJ(Q):OWn(Q);H.x+=b.x;H.y+=b.y}while(f&&f!=z&&f!=f.parent&&(Q=f.frameElement)&&(f=f.parent));return H}; g.$e=function(Q,z){Q=JpY(Q);z=JpY(z);return new g.t6(Q.x-z.x,Q.y-z.y)}; OWn=function(Q){Q=Z5(Q);return new g.t6(Q.left,Q.top)}; JpY=function(Q){if(Q.nodeType==1)return OWn(Q);Q=Q.changedTouches?Q.changedTouches[0]:Q;return new g.t6(Q.clientX,Q.clientY)}; g.j$=function(Q,z,H){if(z instanceof g.pC)H=z.height,z=z.width;else if(H==void 0)throw Error("missing height argument");Q.style.width=g.nh(z,!0);Q.style.height=g.nh(H,!0)}; g.nh=function(Q,z){typeof Q=="number"&&(Q=(z?Math.round(Q):Q)+"px");return Q}; g.FL=function(Q){var z=NBa;if(ph(Q,"display")!="none")return z(Q);var H=Q.style,f=H.display,b=H.visibility,L=H.position;H.visibility="hidden";H.position="absolute";H.display="inline";Q=z(Q);H.display=f;H.position=L;H.visibility=b;return Q}; NBa=function(Q){var z=Q.offsetWidth,H=Q.offsetHeight,f=g.lQ&&!z&&!H;return(z===void 0||f)&&Q.getBoundingClientRect?(Q=Z5(Q),new g.pC(Q.right-Q.left,Q.bottom-Q.top)):new g.pC(z,H)}; g.xe=function(Q,z){Q.style.display=z?"":"none"}; Oi=function(Q,z){z=Math.pow(10,z);return Math.floor(Q*z)/z}; IW6=function(Q){return new QY(Q.top,Q.right,Q.bottom,Q.left)}; Ap9=function(Q){var z=Q.top||0,H=Q.left||0;return new QY(z,H+(Q.width||0),z+(Q.height||0),H)}; o3=function(Q){return Q!=null&&Q>=0&&Q<=1}; YoJ=function(){var Q=g.Ns();return Q?Jx("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(z){return xO(Q,z)})||xO(Q,"OMI/")&&!xO(Q,"XiaoMi/")?!0:xO(Q,"Presto")&&xO(Q,"Linux")&&!xO(Q,"X11")&&!xO(Q,"Android")&&!xO(Q,"Mobi"):!1}; rpn=function(){this.L=!G9(En.top);this.isMobileDevice=Zk()||Il9();var Q=jt();this.domain=Q.length>0&&Q[Q.length-1]!=null&&Q[Q.length-1].url!=null?g.c4(Q[Q.length-1].url)||"":"";this.Z=new QY(0,0,0,0);this.D=new g.pC(0,0);this.S=new g.pC(0,0);this.Y=new QY(0,0,0,0);this.frameOffset=new g.t6(0,0);this.j=0;this.N=!1;this.B=!(!En||!GAZ(En).Z4);this.update(En)}; s6v=function(Q,z){z&&z.screen&&(Q.D=new g.pC(z.screen.width,z.screen.height))}; BBn=function(Q,z){a:{var H=Q.Z?new g.pC(zJ(Q.Z),Q.Z.getHeight()):new g.pC(0,0);z=z===void 0?En:z;z!==null&&z!=z.top&&(z=z.top);var f=0,b=0;try{var L=z.document,u=L.body,X=L.documentElement;if(L.compatMode=="CSS1Compat"&&X.scrollHeight)f=X.scrollHeight!=H.height?X.scrollHeight:X.offsetHeight,b=X.scrollWidth!=H.width?X.scrollWidth:X.offsetWidth;else{var v=X.scrollHeight,y=X.scrollWidth,q=X.offsetHeight,M=X.offsetWidth;X.clientHeight!=q&&(v=u.scrollHeight,y=u.scrollWidth,q=u.offsetHeight,M=u.offsetWidth); v>H.height?v>q?(f=v,b=y):(f=q,b=M):v0||Q.N)return!0;Q=rA().B.isVisible();var z=gA(si)===0;return Q||z}; rW=function(){return A5(rpn)}; Pr=function(Q){this.L=Q;this.B=0;this.Z=null}; a3=function(Q,z,H){this.L=Q;this.mq=H===void 0?"na":H;this.S=[];this.isInitialized=!1;this.D=new bW(-1,!0,this);this.Z=this;this.N=z;this.Ze=this.U=!1;this.yl="uk";this.De=!1;this.j=!0}; Ui=function(Q,z){g.kO(Q.S,z)||(Q.S.push(z),z.KK(Q.Z),z.Zv(Q.D),z.OU()&&(Q.U=!0))}; PuJ=function(Q){Q=Q.Z;Q.ib();Q.pL();var z=rW();z.Y=uW(!1,Q.L,z.isMobileDevice);BBn(rW(),Q.L);Q.D.Z=Q.oO()}; aWc=function(Q){Q.U=Q.S.length?Jx(Q.S,function(z){return z.OU()}):!1}; Uaa=function(Q){var z=g.Qi(Q.S);g.qI(z,function(H){H.Zv(Q.D)})}; cr=function(Q){var z=g.Qi(Q.S);g.qI(z,function(H){H.KK(Q.Z)}); Q.Z!=Q||Uaa(Q)}; iW=function(Q,z,H,f){this.element=Q;this.Z=new QY(0,0,0,0);this.L=null;this.j=new QY(0,0,0,0);this.B=z;this.K5=H;this.De=f;this.L3=!1;this.timestamp=-1;this.U=new Lh(z.D,this.element,this.Z,new QY(0,0,0,0),0,0,k3(),0);this.S=void 0}; cpn=function(Q,z){return Q.S?new QY(Math.max(z.top+Q.S.top,z.top),Math.min(z.left+Q.S.right,z.right),Math.min(z.top+Q.S.bottom,z.bottom),Math.max(z.left+Q.S.left,z.left)):z.clone()}; hx=function(Q){this.S=!1;this.Z=Q;this.D=function(){}}; iWZ=function(Q,z,H){this.L=H===void 0?0:H;this.B=Q;this.Z=z==null?"":z}; hZc=function(Q){switch(Math.trunc(Q.L)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; Wvc=function(Q,z){return Q.Lz.L?!1:Q.Bz.B?!1:typeof Q.Ztypeof z.Z?!1:Q.Z0?f[H]-f[H-1]:f[H]})}; lW=function(){this.B=new dW;this.mq=this.jm=0;this.iT=new VY;this.wh=this.Y=-1;this.WI=1E3;this.rT=new dW([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.yl=this.L3=-1}; R3=function(Q,z){return lWn(Q.B,z===void 0?!0:z)}; QP=function(Q,z,H,f){var b=b===void 0?!1:b;H=dA(f,H);nl(Q,z,H,{capture:b})}; Hk=function(Q,z){z=zN(z);return z===0?0:zN(Q)/z}; zN=function(Q){return Math.max(Q.bottom-Q.top,0)*Math.max(Q.right-Q.left,0)}; z8v=function(Q,z){if(!Q||!z)return!1;for(var H=0;Q!==null&&H++<100;){if(Q===z)return!0;try{if(Q=Q.parentElement||Q){var f=W3(Q),b=f&&RI(f),L=b&&b.frameElement;L&&(Q=L)}}catch(u){break}}return!1}; H79=function(Q,z,H){if(!Q||!z)return!1;z=fh(Q.clone(),-z.left,-z.top);Q=(z.left+z.right)/2;z=(z.top+z.bottom)/2;G9(window.top)&&window.top&&window.top.document&&(window=window.top);if(!$ac())return!1;Q=window.document.elementFromPoint(Q,z);if(!Q)return!1;z=(z=(z=W3(H))&&z.defaultView&&z.defaultView.frameElement)&&z8v(z,Q);var f=Q===H;Q=!f&&Q&&yp(Q,function(b){return b===H}); return!(z||f||Q)}; fyY=function(Q,z,H,f){return rW().L?!1:zJ(Q)<=0||Q.getHeight()<=0?!0:H&&f?pnL(208,function(){return H79(Q,z,H)}):!1}; f8=function(Q,z,H){g.h.call(this);this.position=b7k.clone();this.fI=this.MN();this.ek=-2;this.timeCreated=Date.now();this.kY=-1;this.sJ=z;this.Zp=null;this.oR=!1;this.Uh=null;this.opacity=-1;this.requestSource=H;this.UPI=!1;this.wG=function(){}; this.Eg=function(){}; this.qG=new orc;this.qG.S5=Q;this.qG.Z=Q;this.Bn=!1;this.nW={b_:null,DN:null};this.Qc=!0;this.s6=null;this.Ew=this.qYq=!1;PI().j++;this.xn=this.Qn();this.Pb=-1;this.pp=null;this.hasCompleted=this.xzh=!1;this.K5=new uV;Ogv(this.K5);LG6(this);this.requestSource==1?XY(this.K5,"od",1):XY(this.K5,"od",0)}; LG6=function(Q){Q=Q.qG.S5;var z;if(z=Q&&Q.getAttribute)z=/-[a-z]/.test("googleAvInapp")?!1:uAn&&Q.dataset?"googleAvInapp"in Q.dataset:Q.hasAttribute?Q.hasAttribute("data-"+P5L()):!!Q.getAttribute("data-"+P5L());z&&(rW().B=!0)}; b2=function(Q,z){z!=Q.Ew&&(Q.Ew=z,Q=rW(),z?Q.j++:Q.j>0&&Q.j--)}; Sap=function(Q,z){if(Q.pp){if(z.getName()===Q.pp.getName())return;Q.pp.dispose();Q.pp=null}z=z.create(Q.qG.Z,Q.K5,Q.OU());if(z=z!=null&&z.observe()?z:null)Q.pp=z}; XQL=function(Q,z,H){if(!Q.Zp||Q.sJ==-1||z.B===-1||Q.Zp.B===-1)return 0;Q=z.B-Q.Zp.B;return Q>H?0:Q}; vqn=function(Q,z,H){if(Q.pp){Q.pp.Av();var f=Q.pp.U,b=f.D,L=b.Z;if(f.j!=null){var u=f.L;Q.Uh=new g.t6(u.left-L.left,u.top-L.top)}L=Q.iE()?Math.max(f.Z,f.S):f.Z;u={};b.volume!==null&&(u.volume=b.volume);b=Q.dO(f);Q.Zp=f;Q.Jh(L,z,H,!1,u,b,f.N)}}; ykc=function(Q){if(Q.oR&&Q.s6){var z=vI(Q.K5,"od")==1,H=rW().Z,f=Q.s6,b=Q.pp?Q.pp.getName():"ns",L=Q.Uh,u=new g.pC(zJ(H),H.getHeight());H=Q.iE();Q={vVv:b,Uh:L,j6T:u,iE:H,vc:Q.xn.vc,bEe:z};if(z=f.B){z.Av();b=z.U;L=b.D.Z;var X=u=null;b.j!=null&&L&&(u=b.L,u=new g.t6(u.left-L.left,u.top-L.top),X=new g.pC(L.right-L.left,L.bottom-L.top));b=H?Math.max(b.Z,b.S):b.Z;H={vVv:z.getName(),Uh:u,j6T:X,iE:H,bEe:!1,vc:b}}else H=null;H&&kAc(f,Q,H)}}; qaY=function(Q,z,H){z&&(Q.wG=z);H&&(Q.Eg=H)}; g.L8=function(){}; g.u2=function(Q){return{value:Q,done:!1}}; MFL=function(){this.D=this.Z=this.L=this.B=this.S=0}; Cl6=function(Q){var z={};var H=g.Qs()-Q.S;z=(z.ptlt=H,z);(H=Q.B)&&(z.pnk=H);(H=Q.L)&&(z.pnc=H);(H=Q.D)&&(z.pnmm=H);(Q=Q.Z)&&(z.pns=Q);return z}; tFL=function(){z9.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; S0=function(Q){return o3(Q.volume)&&Q.volume>0}; Xq=function(Q,z,H,f){H=H===void 0?!0:H;f=f===void 0?function(){return!0}:f; return function(b){var L=b[Q];if(Array.isArray(L)&&f(b))return Eqa(L,z,H)}}; vk=function(Q,z){return function(H){return z(H)?H[Q]:void 0}}; pQ9=function(Q){return function(z){for(var H=0;H0?L[b-1]+1:0,f+1).reduce(function(u,X){return u+X},0)})}; nqp=function(){this.B=this.Z=""}; gq_=function(){}; q3=function(Q,z){var H={};if(Q!==void 0)if(z!=null)for(var f in z){var b=z[f];f in Object.prototype||b!=null&&(H[f]=typeof b==="function"?b(Q):Q[b])}else g.aI(H,Q);return Kh(D5(new Wr,H))}; Z7Y=function(){var Q={};this.B=(Q.vs=[1,0],Q.vw=[0,1],Q.am=[2,2],Q.a=[4,4],Q.f=[8,8],Q.bm=[16,16],Q.b=[32,32],Q.avw=[0,64],Q.avs=[64,0],Q.pv=[256,256],Q.gdr=[0,512],Q.p=[0,1024],Q.r=[0,2048],Q.m=[0,4096],Q.um=[0,8192],Q.ef=[0,16384],Q.s=[0,32768],Q.pmx=[0,16777216],Q.mut=[33554432,33554432],Q.umutb=[67108864,67108864],Q.tvoff=[134217728,134217728],Q);this.Z={};for(var z in this.B)this.B[z][1]>0&&(this.Z[z]=0);this.L=0}; M3=function(Q,z){var H=Q.B[z],f=H[1];Q.L+=H[0];f>0&&Q.Z[z]==0&&(Q.Z[z]=1)}; GnA=function(Q){var z=g.J6(Q.B),H=0,f;for(f in Q.Z)g.kO(z,f)&&Q.Z[f]==1&&(H+=Q.B[f][1],Q.Z[f]=2);return H}; $7k=function(Q){var z=0,H;for(H in Q.Z){var f=Q.Z[H];if(f==1||f==2)z+=Q.B[H][1]}return z}; C8=function(){this.Z=this.B=0}; tP=function(){lW.call(this);this.L=new VY;this.En=this.U=this.De=0;this.N=-1;this.gh=new VY;this.S=new VY;this.Z=new dW;this.j=this.D=-1;this.Ze=new VY;this.WI=2E3;this.f3=new C8;this.C3=new C8;this.uT=new C8}; E6=function(Q,z,H){var f=Q.En;et||H||Q.N==-1||(f+=z-Q.N);return f}; j2_=function(){this.L=!1}; p8=function(Q,z){this.L=!1;this.D=Q;this.U=z;this.S=0}; n8=function(Q,z){p8.call(this,Q,z);this.Y=[]}; FGL=function(){}; gd=function(){}; ZP=function(Q,z,H,f){iW.call(this,Q,z,H,f)}; GN=function(Q,z,H){iW.call(this,null,Q,z,H);this.N=Q.isActive();this.Y=0}; $B=function(Q){return[Q.top,Q.left,Q.bottom,Q.right]}; j0=function(Q,z,H,f,b,L){L=L===void 0?new gd:L;f8.call(this,z,H,f);this.vy=b;this.CB=0;this.bH={};this.N8=new Z7Y;this.Ug={};this.WU="";this.uT=null;this.yE=!1;this.Z=[];this.Mt=L.B();this.j=L.L();this.D=null;this.L=-1;this.mq=this.U=void 0;this.wh=this.Ze=0;this.yl=-1;this.WI=this.C3=!1;this.De=this.N=this.B=this.U0=this.ZJ=0;new dW;this.f3=this.En=0;this.iT=-1;this.YF=0;this.Y=g.Cg;this.L3=[this.MN()];this.Xa=2;this.RK={};this.RK.pause="p";this.RK.resume="r";this.RK.skip="s";this.RK.mute="m";this.RK.unmute= "um";this.RK.exitfullscreen="ef";this.S=null;this.rT=this.gh=!1;this.KH=Math.floor(Date.now()/1E3-1704067200);this.jm=0}; Fq=function(Q){Q.hasCompleted=!0;Q.YF!=0&&(Q.YF=3)}; xB=function(Q){return Q===void 0?Q:Number(Q)?Oi(Q,3):0}; O6=function(Q,z){return Q.L3[z!=null&&zMath.max(1E4,Q.L/3)?0:z);var H=Q.Y(Q)||{};H=H.currentTime!==void 0?H.currentTime:Q.Ze;var f=H-Q.Ze,b=0;f>=0?(Q.wh+=z,Q.f3+=Math.max(z-f,0),b=Math.min(f,Q.wh)):Q.En+=Math.abs(f);f!=0&&(Q.wh=0);Q.iT==-1&&f>0&&(Q.iT=Rs>=0?k3()-Rs:-1);Q.Ze=H;return b}; oq6=function(Q,z){Jx(Q.j,function(H){return H.D==z.D})||Q.j.push(z)}; JkJ=function(Q){var z=ke(Q.Gw().Z,1);return oL(Q,z)}; oL=function(Q,z,H){return z>=15E3?!0:Q.C3?(H===void 0?0:H)?!0:Q.L>0?z>=Q.L/2:Q.yl>0?z>=Q.yl:!1:!1}; Njn=function(Q){var z=Oi(Q.xn.vc,2),H=Q.N8.L,f=Q.xn,b=O6(Q),L=xB(b.D),u=xB(b.j),X=xB(f.volume),v=Oi(b.Y,2),y=Oi(b.wh,2),q=Oi(f.vc,2),M=Oi(b.L3,2),C=Oi(b.yl,2);f=Oi(f.FW,2);var t=Q.Wr().clone().round();Q=Q.pp&&Q.pp.L?(Q.pp?Q.pp.L:null).clone().round():null;b=R3(b,!1);return{KSe:z,Pa:H,Yl:L,G6:u,SG:X,vK:v,j_:y,vc:q,Eh:M,lY:C,FW:f,position:t,iy:Q,iY:b}}; Akp=function(Q,z){IyA(Q.Z,z,function(){return{KSe:0,Pa:void 0,Yl:-1,G6:-1,SG:-1,vK:-1,j_:-1,vc:-1,Eh:-1,lY:-1,FW:-1,position:void 0,iy:void 0,iY:[]}}); Q.Z[z]=Njn(Q)}; IyA=function(Q,z,H){for(var f=Q.length;f0?1:0;M.atos= mE(y.Z);M.ssb=mE(y.rT,!1);M.amtos=lWn(y.Z,!1);M.uac=Q.ZJ;M.vpt=y.L.Z;q=="nio"&&(M.nio=1,M.avms="nio");M.gmm="4";M.gdr=oL(Q,y.L.Z,!0)?1:0;M.efpf=Q.Xa;if(q=="gsv"||q=="nis")q=Q.pp,q.Y>0&&(M.nnut=q.Y);M.tcm=x7n(Q);M.nmt=Q.En;M.bt=Q.f3;M.pst=Q.iT;M.vpaid=Q.U;M.dur=Q.L;M.vmtime=Q.Ze;M.is=Q.N8.L;Q.Z.length>=1&&(M.i0=Q.Z[0].Pa,M.a0=[Q.Z[0].SG],M.c0=[Q.Z[0].vc],M.ss0=[Q.Z[0].FW],q=Q.Z[0].position,L=Q.Z[0].iy,M.p0=q?$B(q):void 0,q&&L&&!Hr(L,q)&&(M.cp0=$B(L)));Q.Z.length>=2&&(M.i1=Q.Z[1].Pa,M.a1=IL(Q.Z[1].Yl, Q.Z[1].SG,Q.Z[1].G6),M.c1=IL(Q.Z[1].vK,Q.Z[1].vc,Q.Z[1].j_),M.ss1=IL(Q.Z[1].Eh,Q.Z[1].FW,Q.Z[1].lY),q=Q.Z[1].position,L=Q.Z[1].iy,M.p1=q?$B(q):void 0,q&&L&&!Hr(L,q)&&(M.cp1=$B(L)),M.mtos1=Q.Z[1].iY);Q.Z.length>=3&&(M.i2=Q.Z[2].Pa,M.a2=IL(Q.Z[2].Yl,Q.Z[2].SG,Q.Z[2].G6),M.c2=IL(Q.Z[2].vK,Q.Z[2].vc,Q.Z[2].j_),M.ss2=IL(Q.Z[2].Eh,Q.Z[2].FW,Q.Z[2].lY),q=Q.Z[2].position,L=Q.Z[2].iy,M.p2=q?$B(q):void 0,q&&L&&!Hr(L,q)&&(M.cp2=$B(L)),M.mtos2=Q.Z[2].iY);Q.Z.length>=4&&(M.i3=Q.Z[3].Pa,M.a3=IL(Q.Z[3].Yl,Q.Z[3].SG, Q.Z[3].G6),M.c3=IL(Q.Z[3].vK,Q.Z[3].vc,Q.Z[3].j_),M.ss3=IL(Q.Z[3].Eh,Q.Z[3].FW,Q.Z[3].lY),q=Q.Z[3].position,L=Q.Z[3].iy,M.p3=q?$B(q):void 0,q&&L&&!Hr(L,q)&&(M.cp3=$B(L)),M.mtos3=Q.Z[3].iY);M.cs=$7k(Q.N8);z&&(M.ic=GnA(Q.N8),M.dvpt=y.L.B,M.dvs=e$(y.B,.5),M.dfvs=e$(y.B,1),M.davs=e$(y.Z,.5),M.dafvs=e$(y.Z,1),H&&(y.L.B=0,RZa(y.B),RZa(y.Z)),Q.BQ()&&(M.dtos=y.De,M.dav=y.U,M.dtoss=Q.CB+1,H&&(y.De=0,y.U=0,Q.CB++)),M.dat=y.S.B,M.dft=y.Ze.B,H&&(y.S.B=0,y.Ze.B=0));M.ps=[X.S.width,X.S.height];M.bs=[zJ(X.Z),X.Z.getHeight()]; M.scs=[X.D.width,X.D.height];M.dom=X.domain;Q.U0&&(M.vds=Q.U0);if(Q.j.length>0||Q.Mt)z=g.Qi(Q.j),Q.Mt&&z.push(Q.Mt),M.pings=g.J5(z,function(C){return C.toString()}); z=g.J5(g.yP(Q.j,function(C){return C.j()}),function(C){return C.getId()}); zmc(z);M.ces=z;Q.B&&(M.vmer=Q.B);Q.N&&(M.vmmk=Q.N);Q.De&&(M.vmiec=Q.De);M.avms=Q.pp?Q.pp.getName():"ns";Q.pp&&g.aI(M,Q.pp.tv());f?(M.c=Oi(Q.xn.vc,2),M.ss=Oi(Q.xn.FW,2)):M.tth=k3()-BjY;M.mc=Oi(y.wh,2);M.nc=Oi(y.Y,2);M.mv=xB(y.j);M.nv=xB(y.D);M.lte=Oi(Q.ek,2);f=O6(Q,b);R3(y);M.qmtos=R3(f);M.qnc=Oi(f.Y,2);M.qmv=xB(f.j);M.qnv=xB(f.D);M.qas=f.D>0?1:0;M.qi=Q.WU;M.avms||(M.avms="geo");M.psm=y.f3.Z;M.psv=y.f3.getValue();M.psfv=y.C3.getValue();M.psa=y.uT.getValue();v=F_Y(v.K5);v.length&&(M.veid=v);Q.S&&g.aI(M, Cl6(Q.S));M.avas=Q.WV();M.vs=Q.Ot();M.co=Plu(Q);M.tm=y.jm;M.tu=y.mq;return M}; YaY=function(Q,z){if(g.kO(ay_,z))return!0;var H=Q.bH[z];return H!==void 0?(Q.bH[z]=!0,!H):!1}; Plu=function(Q){var z=Q.jm.toString(10).padStart(2,"0");z=""+Q.KH+z;Q.jm<99&&Q.jm++;return z}; ck9=function(){this.Z={};var Q=RI();AP(this,Q,document);var z=U7Z();try{if("1"==z){for(var H=Q.parent;H!=Q.top;H=H.parent)AP(this,H,H.document);AP(this,Q.top,Q.top.document)}}catch(f){}}; U7Z=function(){var Q=document.documentElement;try{if(!G9(RI().top))return"2";var z=[],H=RI(Q.ownerDocument);for(Q=H;Q!=H.top;Q=Q.parent)if(Q.frameElement)z.push(Q.frameElement);else break;return z&&z.length!=0?"1":"0"}catch(f){return"2"}}; AP=function(Q,z,H){QP(H,"mousedown",function(){return i7J(Q)},301); QP(z,"scroll",function(){return h8p(Q)},302); QP(H,"touchmove",function(){return WG8(Q)},303); QP(H,"mousemove",function(){return D7k(Q)},304); QP(H,"keydown",function(){return KGn(Q)},305)}; i7J=function(Q){g.G2(Q.Z,function(z){z.L>1E5||++z.L})}; h8p=function(Q){g.G2(Q.Z,function(z){z.Z>1E5||++z.Z})}; WG8=function(Q){g.G2(Q.Z,function(z){z.Z>1E5||++z.Z})}; KGn=function(Q){g.G2(Q.Z,function(z){z.B>1E5||++z.B})}; D7k=function(Q){g.G2(Q.Z,function(z){z.D>1E5||++z.D})}; VFZ=function(){this.Z=[];this.B=[]}; YB=function(Q,z){return g.mB(Q.Z,function(H){return H.WU==z})}; d7L=function(Q,z){return z?g.mB(Q.Z,function(H){return H.qG.S5==z}):null}; m7J=function(Q,z){return g.mB(Q.B,function(H){return H.kf()==2&&H.WU==z})}; s6=function(){var Q=rd;return Q.Z.length==0?Q.B:Q.B.length==0?Q.Z:g.Ru(Q.B,Q.Z)}; wQc=function(Q,z){Q=z.kf()==1?Q.Z:Q.B;var H=dJ(Q,function(f){return f==z}); return H!=-1?(Q.splice(H,1),z.pp&&z.pp.unobserve(),z.dispose(),!0):!1}; knc=function(Q){var z=rd;if(wQc(z,Q)){switch(Q.kf()){case 0:var H=function(){return null}; case 2:H=function(){return m7J(z,Q.WU)}; break;case 1:H=function(){return YB(z,Q.WU)}}for(var f=H();f;f=H())wQc(z,f)}}; TjJ=function(Q){var z=rd;Q=g.yP(Q,function(H){return!d7L(z,H.qG.S5)}); z.Z.push.apply(z.Z,g.F(Q))}; e8A=function(Q){var z=[];g.qI(Q,function(H){Jx(rd.Z,function(f){return f.qG.S5===H.qG.S5&&f.WU===H.WU})||(rd.Z.push(H),z.push(H))})}; Bk=function(){this.Z=this.B=null}; lyv=function(Q,z){function H(f,b){z(f,b)} if(Q.B==null)return!1;Q.Z=g.mB(Q.B,function(f){return f!=null&&f.XZ()}); Q.Z&&(Q.Z.init(H)?PuJ(Q.Z.Z):z(Q.Z.Z.PC(),Q.Z));return Q.Z!=null}; Pk=function(Q){Q=R8J(Q);hx.call(this,Q.length?Q[Q.length-1]:new a3(En,0));this.L=Q;this.B=null}; R8J=function(Q){if(!Q.length)return[];Q=(0,g.yP)(Q,function(H){return H!=null&&H.lN()}); for(var z=1;zH.time?z:H},Q[0])}; i2=function(Q){Q=Q===void 0?En:Q;hx.call(this,new a3(Q,2))}; hP=function(){var Q=fkA();a3.call(this,En.top,Q,"geo")}; fkA=function(){PI();var Q=rW();return Q.L||Q.B?0:2}; bl_=function(){}; Wk=function(){this.done=!1;this.Z={s$:0,U9:0,fiT:0,Zl:0,jL:-1,lA:0,j4:0,S4:0,YX5:0};this.S=null;this.j=!1;this.L=null;this.Y=0;this.B=new Pr(this)}; K8=function(){var Q=DP;Q.j||(Q.j=!0,LoZ(Q,function(){return Q.D.apply(Q,g.F(g.A8.apply(0,arguments)))}),Q.D())}; uYL=function(){A5(bl_);var Q=A5(Bk);Q.Z!=null&&Q.Z.Z?PuJ(Q.Z.Z):rW().update(En)}; VP=function(Q,z,H){if(!Q.done&&(Q.B.cancel(),z.length!=0)){Q.L=null;try{uYL();var f=k3();PI().S=f;if(A5(Bk).Z!=null)for(var b=0;b=0?k3()-T9:-1,X=k3();b.Z.jL==-1&&(u=X);var v=rW(),y=PI(),q=yy(y.K5),M=s6();try{if(M.length>0){var C=v.Z;C&&(q.bs=[zJ(C),C.getHeight()]);var t=v.S;t&&(q.ps=[t.width,t.height]);En.screen&&(q.scs=[En.screen.width,En.screen.height])}else q.url=encodeURIComponent(En.location.href.substring(0,512)),L.referrer&&(q.referrer=encodeURIComponent(L.referrer.substring(0,512))); q.tt=u;q.pt=T9;q.bin=y.B;En.google_osd_load_pub_page_exp!==void 0&&(q.olpp=En.google_osd_load_pub_page_exp);q.deb=[1,b.Z.s$,b.Z.U9,b.Z.Zl,b.Z.jL,0,b.B.B,b.Z.lA,b.Z.j4,b.Z.S4,b.Z.YX5,-1].join(";");q.tvt=XI_(b,X);v.B&&(q.inapp=1);if(En!==null&&En!=En.top){M.length>0&&(q.iframe_loc=encodeURIComponent(En.location.href.substring(0,512)));var E=v.Y;q.is=[zJ(E),E.getHeight()]}}catch(G){q.error=1}DP.L=q}C=g.B3(DP.L);t=PI().Z;vI(t.L,"prf")==1?(E=new sn,b=t.Z,L=0,b.Z>-1&&(L=b.L.Z.now()-b.Z),E=Ti(E,1,LS(b.D+ L),0),b=t.Z,E=Ti(E,5,vo(b.Z>-1?b.B+1:b.B),0),E=Ti(E,2,Zc(t.B.Z.L()),"0"),E=Ti(E,3,Zc(t.B.Z.B()),"0"),t=Ti(E,4,Zc(t.B.Z.Z()),"0"),E={},t=(E.pf=g.nr(t.Z()),E)):t={};g.aI(C,t);g.aI(z,f,H,C,Q())}])}; qn8=function(){var Q=y5n||En;if(!Q)return"";var z=[];if(!Q.location||!Q.location.href)return"";z.push("url="+encodeURIComponent(Q.location.href.substring(0,512)));Q.document&&Q.document.referrer&&z.push("referrer="+encodeURIComponent(Q.document.referrer.substring(0,512)));return z.join("&")}; dd=function(){var Q="youtube.player.web_20250305_01_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20250305_01_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20250305_01_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20250305_01_RC00".match(/_(\d{8})_\d+_RC\d+$/),z;if(((z=Q)==null?void 0:z.length)==2)return Q[1];Q="youtube.player.web_20250305_01_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var H;return((H=Q)==null?void 0:H.length)==3?"20"+Q[1]+Q[2]:null}; Mt6=function(){return"av.default_js".includes("ima_html5_sdk")?{Uv:"ima",gi:null}:"av.default_js".includes("ima_native_sdk")?{Uv:"nima",gi:null}:"av.default_js".includes("admob-native-video-javascript")?{Uv:"an",gi:null}:"youtube.player.web_20250305_01_RC00".includes("cast_js_sdk")?{Uv:"cast",gi:dd()}:"youtube.player.web_20250305_01_RC00".includes("youtube.player.web")?{Uv:"yw",gi:dd()}:"youtube.player.web_20250305_01_RC00".includes("outstream_web_client")?{Uv:"out",gi:dd()}:"youtube.player.web_20250305_01_RC00".includes("drx_rewarded_web")? {Uv:"r",gi:dd()}:"youtube.player.web_20250305_01_RC00".includes("gam_native_web_video")?{Uv:"n",gi:dd()}:"youtube.player.web_20250305_01_RC00".includes("admob_interstitial_video")?{Uv:"int",gi:dd()}:{Uv:"j",gi:null}}; kB=function(Q,z){var H={sv:"966"};m4!==null&&(H.v=m4);H.cb=CV_;H.nas=rd.Z.length;H.msg=Q;z!==void 0&&(Q=ttA(z))&&(H.e=wd[Q]);return H}; TN=function(Q){return GY(Q,"custom_metric_viewable")}; ttA=function(Q){var z=TN(Q)?"custom_metric_viewable":Q.toLowerCase();return A6(JP,function(H){return H==z})}; E3n=function(){this.Z=void 0;this.B=!1;this.L=0;this.D=-1;this.S="tos"}; g3Y=function(Q){try{var z=Q.split(",");return z.length>g.J6(pIv).length?null:Is(z,function(H,f){f=f.toLowerCase().split("=");if(f.length!=2||n3v[f[0]]===void 0||!n3v[f[0]](f[1]))throw Error("Entry ("+f[0]+", "+f[1]+") is invalid.");H[f[0]]=f[1];return H},{})}catch(H){return null}}; Zl8=function(Q,z){if(Q.Z==void 0)return 0;switch(Q.S){case "mtos":return Q.B?TJ(z.Z,Q.Z):TJ(z.B,Q.Z);case "tos":return Q.B?ke(z.Z,Q.Z):ke(z.B,Q.Z)}return 0}; e0=function(Q,z,H,f){p8.call(this,z,f);this.Y=Q;this.N=H}; l2=function(){}; RL=function(Q){p8.call(this,"fully_viewable_audible_half_duration_impression",Q)}; QK=function(Q){this.Z=Q}; zO=function(Q,z){p8.call(this,Q,z)}; Hz=function(Q){n8.call(this,"measurable_impression",Q)}; f5=function(){QK.apply(this,arguments)}; bp=function(Q,z,H){GN.call(this,Q,z,H)}; L5=function(Q){Q=Q===void 0?En:Q;hx.call(this,new a3(Q,2))}; up=function(Q,z,H){GN.call(this,Q,z,H)}; S_=function(Q){Q=Q===void 0?En:Q;hx.call(this,new a3(Q,2))}; Xg=function(){a3.call(this,En,2,"mraid");this.f3=0;this.wh=this.L3=!1;this.Y=null;this.B=GAZ(this.L);this.D.Z=new QY(0,0,0,0);this.jm=!1}; vz=function(Q,z,H){Q.wA("addEventListener",z,H)}; FoL=function(Q){PI().D=!!Q.wA("isViewable");vz(Q,"viewableChange",G9A);Q.wA("getState")==="loading"?vz(Q,"ready",$Tu):js_(Q)}; js_=function(Q){typeof Q.B.Z4.AFMA_LIDAR==="string"?(Q.L3=!0,xTc(Q)):(Q.B.compatibility=3,Q.Y="nc",Q.d7("w"))}; xTc=function(Q){Q.wh=!1;var z=vI(PI().K5,"rmmt")==1,H=!!Q.wA("isViewable");(z?!H:1)&&rA().setTimeout(mo(524,function(){Q.wh||(Olp(Q),wA(540,Error()),Q.Y="mt",Q.d7("w"))}),500); o3u(Q);vz(Q,Q.B.Z4.AFMA_LIDAR,J5u)}; o3u=function(Q){var z=vI(PI().K5,"sneio")==1,H=Q.B.Z4.AFMA_LIDAR_EXP_1!==void 0,f=Q.B.Z4.AFMA_LIDAR_EXP_2!==void 0;(z=z&&f)&&(Q.B.Z4.AFMA_LIDAR_EXP_2=!0);H&&(Q.B.Z4.AFMA_LIDAR_EXP_1=!z)}; Olp=function(Q){Q.wA("removeEventListener",Q.B.Z4.AFMA_LIDAR,J5u);Q.L3=!1}; NAv=function(Q,z){if(Q.wA("getState")==="loading")return new g.pC(-1,-1);z=Q.wA(z);if(!z)return new g.pC(-1,-1);Q=parseInt(z.width,10);z=parseInt(z.height,10);return isNaN(Q)||isNaN(z)?new g.pC(-1,-1):new g.pC(Q,z)}; $Tu=function(){try{var Q=A5(Xg);Q.wA("removeEventListener","ready",$Tu);js_(Q)}catch(z){wA(541,z)}}; J5u=function(Q,z){try{var H=A5(Xg);H.wh=!0;var f=Q?new QY(Q.y,Q.x+Q.width,Q.y+Q.height,Q.x):new QY(0,0,0,0);var b=k3(),L=Br();var u=new bW(b,L,H);u.Z=f;u.volume=z;H.Zv(u)}catch(X){wA(542,X)}}; G9A=function(Q){var z=PI(),H=A5(Xg);Q&&!z.D&&(z.D=!0,H.jm=!0,H.Y&&H.d7("w",!0))}; yK=function(){this.isInitialized=!1;this.Z=this.B=null;var Q={};this.Y=(Q.start=this.Nhe,Q.firstquartile=this.h5l,Q.midpoint=this.dc3,Q.thirdquartile=this.Fq5,Q.complete=this.i3I,Q.error=this.XII,Q.pause=this.s5,Q.resume=this.x4,Q.skip=this.Ien,Q.viewable_impression=this.Mj,Q.mute=this.R2,Q.unmute=this.R2,Q.fullscreen=this.CTn,Q.exitfullscreen=this.QjI,Q.fully_viewable_audible_half_duration_impression=this.Mj,Q.measurable_impression=this.Mj,Q.abandon=this.s5,Q.engagedview=this.Mj,Q.impression=this.Mj, Q.creativeview=this.Mj,Q.progress=this.R2,Q.custom_metric_viewable=this.Mj,Q.bufferstart=this.s5,Q.bufferfinish=this.x4,Q.audio_measurable=this.Mj,Q.audio_audible=this.Mj,Q);Q={};this.N=(Q.overlay_resize=this.u$h,Q.abandon=this.BM,Q.close=this.BM,Q.collapse=this.BM,Q.overlay_unmeasurable_impression=function(z){return N3(z,"overlay_unmeasurable_impression",Br())},Q.overlay_viewable_immediate_impression=function(z){return N3(z,"overlay_viewable_immediate_impression",Br())},Q.overlay_unviewable_impression= function(z){return N3(z,"overlay_unviewable_impression",Br())},Q.overlay_viewable_end_of_session_impression=function(z){return N3(z,"overlay_viewable_end_of_session_impression",Br())},Q); PI().B=3;Ikv(this);this.L=null}; qN=function(Q,z,H,f){Q=Q.tQ(null,f,!0,z);Q.D=H;TjJ([Q]);return Q}; A5L=function(Q,z,H){$Hn(z);var f=Q.Z;g.qI(z,function(b){var L=g.J5(b.criteria,function(u){var X=g3Y(u);if(X==null)u=null;else if(u=new E3n,X.visible!=null&&(u.Z=X.visible/100),X.audible!=null&&(u.B=X.audible==1),X.time!=null){var v=X.timetype=="mtos"?"mtos":"tos",y=WZp(X.time,"%")?"%":"ms";X=parseInt(X.time,10);y=="%"&&(X/=100);u.setTime(X,y,v)}return u}); Jx(L,function(u){return u==null})||oq6(H,new e0(b.id,b.event,L,f))})}; Ynp=function(){var Q=[],z=PI();Q.push(A5(hP));vI(z.K5,"mvp_lv")&&Q.push(A5(Xg));z=[new L5,new S_];z.push(new Pk(Q));z.push(new i2(En));return z}; r5L=function(Q){if(!Q.isInitialized){Q.isInitialized=!0;try{var z=k3(),H=PI(),f=rW();T9=z;H.L=79463069;Q.B!=="o"&&(y5n=alL(En));if(w4c()){DP.Z.U9=0;DP.Z.jL=k3()-z;var b=Ynp(),L=A5(Bk);L.B=b;lyv(L,function(){MN()})?DP.done||(Sn9(),Ui(L.Z.Z,Q),K8()):f.L?MN():K8()}else C5=!0}catch(u){throw rd.reset(),u; }}}; E4=function(Q){DP.B.cancel();tZ=Q;DP.done=!0}; p5=function(Q){if(Q.B)return Q.B;var z=A5(Bk).Z;if(z)switch(z.getName()){case "nis":Q.B="n";break;case "gsv":Q.B="m"}Q.B||(Q.B="h");return Q.B}; n5=function(Q,z,H){if(Q.Z==null)return z.U0|=4,!1;Q=ssJ(Q.Z,H,z);z.U0|=Q;return Q==0}; MN=function(){var Q=[new i2(En)],z=A5(Bk);z.B=Q;lyv(z,function(){E4("i")})?DP.done||(Sn9(),K8()):E4("i")}; BAY=function(Q,z){if(!Q.yE){var H=N3(Q,"start",Br());H=Q.vy.Z(H).Z;var f={id:"lidarv"};f.r=z;f.sv="966";m4!==null&&(f.v=m4);hj(H,function(b,L){return f[b]=b=="mtos"||b=="tos"?L:encodeURIComponent(L)}); z=qn8();hj(z,function(b,L){return f[b]=encodeURIComponent(L)}); z="//pagead2.googlesyndication.com/pagead/gen_204?"+Kh(D5(new Wr,f));maY(z);Q.yE=!0}}; gN=function(Q,z,H){VP(DP,[Q],!Br());Akp(Q,H);H!=4&&IyA(Q.L3,H,Q.MN);return N3(Q,z,Br())}; Ikv=function(Q){v38(function(){var z=PVA();Q.B!=null&&(z.sdk=Q.B);var H=A5(Bk);H.Z!=null&&(z.avms=H.Z.getName());return z})}; akc=function(Q,z,H,f){var b=d7L(rd,H);b!==null&&b.WU!==z&&(Q.fv(b),b=null);b||(z=Q.tQ(H,k3(),!1,z),rd.B.length==0&&(PI().L=79463069),e8A([z]),b=z,b.D=p5(Q),f&&(b.uT=f));return b}; UTA=function(Q,z){var H=Q[z];H!==void 0&&H>0&&(Q[z]=Math.floor(H*1E3))}; PVA=function(){var Q=rW(),z={},H={},f={};return Object.assign({},(z.sv="966",z),m4!==null&&(H.v=m4,H),(f["if"]=Q.L?"1":"0",f.nas=String(rd.Z.length),f))}; ZR=function(Q){p8.call(this,"audio_audible",Q)}; GO=function(Q){n8.call(this,"audio_measurable",Q)}; $W=function(){QK.apply(this,arguments)}; j_=function(){}; c5_=function(Q){this.Z=Q}; ssJ=function(Q,z,H){Q=Q.B();if(typeof Q==="function"){var f={};var b={};f=Object.assign({},m4!==null&&(f.v=m4,f),(b.sv="966",b.cb=CV_,b.e=il8(z),b));b=N3(H,z,Br());g.aI(f,b);H.Ug[z]=b;f=H.kf()==2?dan(f).join("&"):H.vy.Z(f).Z;try{return Q(H.WU,f,z),0}catch(L){return 2}}else return 1}; il8=function(Q){var z=TN(Q)?"custom_metric_viewable":Q;Q=A6(JP,function(H){return H==z}); return wd[Q]}; Fg=function(){yK.call(this);this.j=null;this.S=!1;this.D="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; hl8=function(Q,z,H){H=H.opt_configurable_tracking_events;Q.Z!=null&&Array.isArray(H)&&A5L(Q,H,z)}; Woa=function(Q,z,H){var f=YB(rd,z);f||(f=H.opt_nativeTime||-1,f=qN(Q,z,p5(Q),f),H.opt_osdId&&(f.uT=H.opt_osdId));return f}; DTv=function(Q,z,H){var f=YB(rd,z);f||(f=qN(Q,z,"n",H.opt_nativeTime||-1));return f}; KoY=function(Q,z){var H=YB(rd,z);H||(H=qN(Q,z,"h",-1));return H}; Vtk=function(Q){PI();switch(p5(Q)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; wI6=function(Q,z,H,f){H=H===void 0?{}:H;var b={};g.aI(b,{opt_adElement:void 0,opt_fullscreen:void 0},H);var L=Q.A6(z,H);H=L?L.vy:Q.YS();if(b.opt_bounds)return H.Z(kB("ol",f));if(f!==void 0)if(ttA(f)!==void 0)if(C5)Q=kB("ue",f);else if(r5L(Q),tZ=="i")Q=kB("i",f),Q["if"]=0;else if(z=Q.A6(z,b)){b:{tZ=="i"&&(z.Bn=!0);L=b.opt_fullscreen;L!==void 0&&b2(z,!!L);var u;if(L=!rW().B)(L=xO(g.Ns(),"CrKey")&&!(xO(g.Ns(),"CrKey")&&xO(g.Ns(),"SmartSpeaker"))||xO(g.Ns(),"PlayStation")||xO(g.Ns(),"Roku")||YoJ()||xO(g.Ns(), "Xbox"))||(L=g.Ns(),L=xO(L,"AppleTV")||xO(L,"Apple TV")||xO(L,"CFNetwork")||xO(L,"tvOS")),L||(L=g.Ns(),L=xO(L,"sdk_google_atv_x86")||xO(L,"Android TV")),L=!L;L&&(rA(),L=gA(si)===0);if(u=L){switch(z.kf()){case 1:BAY(z,"pv");break;case 2:Q.Tz(z)}E4("pv")}L=f.toLowerCase();if(u=!u)u=vI(PI().K5,"ssmol")&&L==="loaded"?!1:g.kO(dTL,L);if(u&&z.YF==0){tZ!="i"&&(DP.done=!1);u=b!==void 0?b.opt_nativeTime:void 0;Rs=u=typeof u==="number"?u:k3();z.oR=!0;var X=Br();z.YF=1;z.bH={};z.bH.start=!1;z.bH.firstquartile= !1;z.bH.midpoint=!1;z.bH.thirdquartile=!1;z.bH.complete=!1;z.bH.resume=!1;z.bH.pause=!1;z.bH.skip=!1;z.bH.mute=!1;z.bH.unmute=!1;z.bH.viewable_impression=!1;z.bH.measurable_impression=!1;z.bH.fully_viewable_audible_half_duration_impression=!1;z.bH.fullscreen=!1;z.bH.exitfullscreen=!1;z.CB=0;X||(z.Gw().N=u);VP(DP,[z],!X)}(u=z.RK[L])&&M3(z.N8,u);vI(PI().K5,"fmd")||g.kO(mTJ,L)&&z.Mt&&z.Mt.B(z,null);switch(z.kf()){case 1:var v=TN(L)?Q.Y.custom_metric_viewable:Q.Y[L];break;case 2:v=Q.N[L]}if(v&&(f=v.call(Q, z,b,f),vI(PI().K5,"fmd")&&g.kO(mTJ,L)&&z.Mt&&z.Mt.B(z,null),f!==void 0)){b=kB(void 0,L);g.aI(b,f);f=b;break b}f=void 0}z.YF==3&&Q.fv(z);Q=f}else Q=kB("nf",f);else Q=void 0;else C5?Q=kB("ue"):L?(Q=kB(),g.aI(Q,rk9(L,!0,!1,!1))):Q=kB("nf");return typeof Q==="string"?H.Z():H.Z(Q)}; k98=function(Q,z){z&&(Q.D=z)}; TA6=function(Q){var z={};return z.viewability=Q.Z,z.googleViewability=Q.B,z}; el9=function(Q,z,H){H=H===void 0?{}:H;Q=wI6(A5(Fg),z,H,Q);return TA6(Q)}; oe=function(Q){var z=g.A8.apply(1,arguments).filter(function(f){return f}).join("&"); if(!z)return Q;var H=Q.match(/[?&]adurl=/);return H?Q.slice(0,H.index+1)+z+"&"+Q.slice(H.index+1):Q+(Q.indexOf("?")===-1?"?":"&")+z}; Rl8=function(Q){var z=Q.url;Q=Q.Hlj;this.Z=z;this.Y=Q;Q=/[?&]dsh=1(&|$)/.test(z);this.S=!Q&&/[?&]ae=1(&|$)/.test(z);this.j=!Q&&/[?&]ae=2(&|$)/.test(z);if((this.B=/[?&]adurl=([^&]*)/.exec(z))&&this.B[1]){try{var H=decodeURIComponent(this.B[1])}catch(f){H=null}this.L=H}this.D=(new Date).getTime()-lkv}; Q36=function(Q){Q=Q.Y;if(!Q)return"";var z="";Q.platform&&(z+="&uap="+encodeURIComponent(Q.platform));Q.platformVersion&&(z+="&uapv="+encodeURIComponent(Q.platformVersion));Q.uaFullVersion&&(z+="&uafv="+encodeURIComponent(Q.uaFullVersion));Q.architecture&&(z+="&uaa="+encodeURIComponent(Q.architecture));Q.model&&(z+="&uam="+encodeURIComponent(Q.model));Q.bitness&&(z+="&uab="+encodeURIComponent(Q.bitness));Q.fullVersionList&&(z+="&uafvl="+encodeURIComponent(Q.fullVersionList.map(function(H){return encodeURIComponent(H.brand)+ ";"+encodeURIComponent(H.version)}).join("|"))); typeof Q.wow64!=="undefined"&&(z+="&uaw="+Number(Q.wow64));return z.substring(1)}; f5L=function(Q,z,H,f,b){var L=window;var u=u===void 0?!1:u;var X;H?X=(u===void 0?0:u)?"//ep1.adtrafficquality.google/bg/"+lz(H)+".js":"//pagead2.googlesyndication.com/bg/"+lz(H)+".js":X="";u=u===void 0?!1:u;H=L.document;var v={};z&&(v._scs_=z);v._bgu_=X;v._bgp_=f;v._li_="v_h.3.0.0.0";b&&(v._upb_=b);(z=L.GoogleTyFxhY)&&typeof z.push=="function"||(z=L.GoogleTyFxhY=[]);z.push(v);z=Dz(H).createElement("SCRIPT");z.type="text/javascript";z.async=!0;Q=(u===void 0?0:u)?Q0Z(z_n,lz(Q)+".js"):Q0Z(HhA,lz(Q)+ ".js");g.K$(z,Q);(L=(L.GoogleTyFxhYEET||{})[z.src])?L():H.getElementsByTagName("head")[0].appendChild(z)}; bh6=function(){try{var Q,z;return!!((Q=window)==null?0:(z=Q.top)==null?0:z.location.href)&&!1}catch(H){return!0}}; Ie=function(){var Q=LEc();Q=Q===void 0?"bevasrsg":Q;return new Promise(function(z){var H=window===window.top?window:bh6()?window:window.top,f=H[Q],b;((b=f)==null?0:b.bevasrs)?z(new NN(f.bevasrs)):(f||(f={},f=(f.nqfbel=[],f),H[Q]=f),f.nqfbel.push(function(L){z(new NN(L))}))})}; uLv=function(Q){var z={c:Q.hT,e:Q.Zo,mc:Q.kC,me:Q.MM};Q.WB&&(z.co={c:Q.WB.KW,a:Q.WB.lI,s:Q.WB.Q5});return z}; AZ=function(Q){g.h.call(this);this.wpc=Q}; NN=function(Q){g.h.call(this);var z=this;this.Wc=Q;this.L="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.Z=void 0;this.Ab=this.Wc.p;this.D=this.VC.bind(this);this.addOnDisposeCallback(function(){return void Sia(z)})}; XrJ=function(Q){var z;return g.B(function(H){if(H.Z==1){if(!Q.Wc.wpc)throw new Hu(30,"NWA");return Q.B?H.return(Q.B):g.Y(H,Q.Wc.wpc(),2)}z=H.B;Q.B=new AZ(z);return H.return(Q.B)})}; Sia=function(Q){Q.Z!==void 0&&(Q.L.forEach(function(z){var H;(H=Q.Z)==null||H.removeEventListener(z,Q.D)}),Q.Z=void 0)}; qiL=function(Q){if(g.j5(g.R$(Q)))return!1;if(Q.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&")>=0)return!0;try{var z=new g.M7(Q)}catch(H){return g.mB(vek,function(f){return Q.search(f)>0})!=null}return z.j.match(yxa)?!0:g.mB(vek,function(H){return Q.match(H)!=null})!=null}; g.YW=function(Q,z){return Q.replace(M$_,function(H,f){try{var b=g.ra(z,f);if(b==null||b.toString()==null)return H;b=b.toString();if(b==""||!g.j5(g.R$(b)))return encodeURIComponent(b).replace(/%2C/g,",")}catch(L){}return H})}; rN=function(Q,z){return Object.is(Q,z)}; Bz=function(Q){var z=s4;s4=Q;return z}; CW8=function(Q){if(Q.c7!==void 0){var z=Pz;Pz=!0;try{for(var H=g.n(Q.c7),f=H.next();!f.done;f=H.next()){var b=f.value;b.uF||(Q=void 0,b.uF=!0,CW8(b),(Q=b.dC)==null||Q.call(b,b))}}finally{Pz=z}}}; t$u=function(){var Q;return((Q=s4)==null?void 0:Q.hn)!==!1}; Ee8=function(Q){Q&&(Q.CI=0);return Bz(Q)}; prY=function(Q,z){Bz(z);if(Q&&Q.a6!==void 0&&Q.RD!==void 0&&Q.JQ!==void 0){if(ae(Q))for(z=Q.CI;zQ.CI;)Q.a6.pop(),Q.JQ.pop(),Q.RD.pop()}}; gea=function(Q,z,H){neZ(Q);if(Q.c7.length===0&&Q.a6!==void 0)for(var f=0;f0}; Zhn=function(Q){Q.a6!=null||(Q.a6=[]);Q.RD!=null||(Q.RD=[]);Q.JQ!=null||(Q.JQ=[])}; neZ=function(Q){Q.c7!=null||(Q.c7=[]);Q.nQ!=null||(Q.nQ=[])}; $28=function(Q){function z(){if(Pz)throw Error("");if(s4!==null){var f=s4.CI++;Zhn(s4);f0?" "+z:z))}}; g.X9=function(Q,z){if(Q.classList)Array.prototype.forEach.call(z,function(b){g.SK(Q,b)}); else{var H={};Array.prototype.forEach.call(bn(Q),function(b){H[b]=!0}); Array.prototype.forEach.call(z,function(b){H[b]=!0}); z="";for(var f in H)z+=z.length>0?" "+f:f;g.LZ(Q,z)}}; g.vO=function(Q,z){Q.classList?Q.classList.remove(z):g.un(Q,z)&&g.LZ(Q,Array.prototype.filter.call(bn(Q),function(H){return H!=z}).join(" "))}; g.yM=function(Q,z){Q.classList?Array.prototype.forEach.call(z,function(H){g.vO(Q,H)}):g.LZ(Q,Array.prototype.filter.call(bn(Q),function(H){return!g.kO(z,H)}).join(" "))}; g.qP=function(Q,z,H){H?g.SK(Q,z):g.vO(Q,z)}; PW6=function(Q,z){var H=!g.un(Q,z);g.qP(Q,z,H)}; g.MP=function(){g.Qe.call(this);this.Z=0;this.endTime=this.startTime=null}; a5c=function(Q,z){Array.isArray(z)||(z=[z]);z=z.map(function(H){return typeof H==="string"?H:H.property+" "+H.duration+"s "+H.timing+" "+H.delay+"s"}); g.q2(Q,"transition",z.join(","))}; CZ=function(Q,z,H,f,b){g.MP.call(this);this.B=Q;this.S=z;this.j=H;this.D=f;this.Y=Array.isArray(b)?b:[b]}; U2k=function(Q,z,H,f){return new CZ(Q,z,{opacity:H},{opacity:f},{property:"opacity",duration:z,timing:"ease-in",delay:0})}; ihJ=function(Q){Q=OT(Q);if(Q=="")return null;var z=String(Q.slice(0,4)).toLowerCase();if(("url("1||Q&&Q.split(")"),null;if(Q.indexOf("(")>0){if(/"|'/.test(Q))return null;z=/([\-\w]+)\(/g;for(var H;H=z.exec(Q);)if(!(H[1].toLowerCase()in cxp))return null}return Q}; tD=function(Q,z){Q=g.iL[Q];return Q&&Q.prototype?(z=Object.getOwnPropertyDescriptor(Q.prototype,z))&&z.get||null:null}; h_L=function(Q){var z=g.iL.CSSStyleDeclaration;return z&&z.prototype&&z.prototype[Q]||null}; WEk=function(Q,z,H,f){if(Q)return Q.apply(z,f);if(g.EF&&document.documentMode<10){if(!z[H].call)throw Error("IE Clobbering detected");}else if(typeof z[H]!="function")throw Error("Clobbering detected");return z[H].apply(z,f)}; m2k=function(Q){if(!Q)return"";var z=document.createElement("div").style;D2_(Q).forEach(function(H){var f=g.lQ&&H in KEa?H:H.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");GY(f,"--")||GY(f,"var")||(H=WEk(V$9,Q,Q.getPropertyValue?"getPropertyValue":"getAttribute",[H])||"",H=ihJ(H),H!=null&&WEk(d2a,z,z.setProperty?"setProperty":"setAttribute",[f,H]))}); return z.cssText||""}; D2_=function(Q){g.mZ(Q)?Q=g.Qi(Q):(Q=g.J6(Q),g.e5(Q,"cssText"));return Q}; g.nZ=function(Q){var z,H=z=0,f=!1;Q=Q.split(wrZ);for(var b=0;b.4?-1:1;return(z==0?null:z)==-1?"rtl":"ltr"}; g.$F=function(Q){if(Q instanceof gv||Q instanceof Zx||Q instanceof Ge)return Q;if(typeof Q.next=="function")return new gv(function(){return Q}); if(typeof Q[Symbol.iterator]=="function")return new gv(function(){return Q[Symbol.iterator]()}); if(typeof Q.xM=="function")return new gv(function(){return Q.xM()}); throw Error("Not an iterator or iterable.");}; gv=function(Q){this.B=Q}; Zx=function(Q){this.B=Q}; Ge=function(Q){gv.call(this,function(){return Q}); this.L=Q}; jK=function(Q,z,H,f,b,L,u,X){this.Z=Q;this.Y=z;this.L=H;this.S=f;this.D=b;this.j=L;this.B=u;this.N=X}; F9=function(Q,z){if(z==0)return Q.Z;if(z==1)return Q.B;var H=CC(Q.Z,Q.L,z),f=CC(Q.L,Q.D,z);Q=CC(Q.D,Q.B,z);H=CC(H,f,z);f=CC(f,Q,z);return CC(H,f,z)}; l5Y=function(Q,z){var H=(z-Q.Z)/(Q.B-Q.Z);if(H<=0)return 0;if(H>=1)return 1;for(var f=0,b=1,L=0,u=0;u<8;u++){L=F9(Q,H);var X=(F9(Q,H+1E-6)-L)/1E-6;if(Math.abs(L-z)<1E-6)return H;if(Math.abs(X)<1E-6)break;else L1E-6&&u<8;u++)L=0}; g.JD=function(Q){g.h.call(this);this.j=1;this.L=[];this.D=0;this.Z=[];this.B={};this.Y=!!Q}; QL8=function(Q,z,H){g.qH(function(){Q.apply(z,H)})}; g.NP=function(Q){this.Z=Q}; IH=function(Q){this.Z=Q}; zuL=function(Q){this.data=Q}; H8c=function(Q){return Q===void 0||Q instanceof zuL?Q:new zuL(Q)}; AD=function(Q){this.Z=Q}; g.fPp=function(Q){var z=Q.creation;Q=Q.expiration;return!!Q&&Qg.Qs()}; g.YF=function(Q){this.Z=Q}; b8u=function(){}; rv=function(){}; sF=function(Q){this.Z=Q;this.B=null}; BO=function(Q){if(Q.Z==null)throw Error("Storage mechanism: Storage unavailable");var z;((z=Q.B)!=null?z:Q.isAvailable())||gJ(Error("Storage mechanism: Storage unavailable"))}; PO=function(){var Q=null;try{Q=g.iL.localStorage||null}catch(z){}sF.call(this,Q)}; L4_=function(){var Q=null;try{Q=g.iL.sessionStorage||null}catch(z){}sF.call(this,Q)}; aH=function(Q,z){this.B=Q;this.Z=z+"::"}; g.UF=function(Q){var z=new PO;return z.isAvailable()?Q?new aH(z,Q):z:null}; cO=function(Q,z){this.Z=Q;this.B=z}; hD=function(Q){this.Z=[];if(Q)a:{if(Q instanceof hD){var z=Q.Im();Q=Q.fg();if(this.Z.length<=0){for(var H=this.Z,f=0;f>>6:(L<65536?X[H++]=224|L>>>12:(X[H++]=240|L>>>18,X[H++]=128|L>>>12&63),X[H++]=128|L>>> 6&63),X[H++]=128|L&63);return X}; VM=function(Q){for(var z=Q.length;--z>=0;)Q[z]=0}; dv=function(Q,z,H,f,b){this.RF=Q;this.GR=z;this.yu=H;this.UI=f;this.Xz$=b;this.cF=Q&&Q.length}; mg=function(Q,z){this.wO=Q;this.La=0;this.b9=z}; wv=function(Q,z){Q.f2[Q.pending++]=z&255;Q.f2[Q.pending++]=z>>>8&255}; kF=function(Q,z,H){Q.j3>16-H?(Q.q7|=z<>16-Q.j3,Q.j3+=H-16):(Q.q7|=z<>>=1,H<<=1;while(--z>0);return H>>>1}; yP9=function(Q,z,H){var f=Array(16),b=0,L;for(L=1;L<=15;L++)f[L]=b=b+H[L-1]<<1;for(H=0;H<=z;H++)b=Q[H*2+1],b!==0&&(Q[H*2]=vBv(f[b]++,b))}; q6L=function(Q){var z;for(z=0;z<286;z++)Q.MG[z*2]=0;for(z=0;z<30;z++)Q.EN[z*2]=0;for(z=0;z<19;z++)Q.Qk[z*2]=0;Q.MG[512]=1;Q.cQ=Q.X_=0;Q.iZ=Q.matches=0}; M06=function(Q){Q.j3>8?wv(Q,Q.q7):Q.j3>0&&(Q.f2[Q.pending++]=Q.q7);Q.q7=0;Q.j3=0}; C26=function(Q,z,H){M06(Q);wv(Q,H);wv(Q,~H);KZ.K_(Q.f2,Q.window,z,H,Q.pending);Q.pending+=H}; t0Z=function(Q,z,H,f){var b=z*2,L=H*2;return Q[b]>>7)];Te(Q,u,H);X=H5[u];X!==0&&(b-=fT[u],kF(Q,b,X))}}while(f>1;u>=1;u--)eK(Q,H,u);v=L;do u=Q.cS[1],Q.cS[1]=Q.cS[Q.OT--],eK(Q,H,1),f=Q.cS[1],Q.cS[--Q.SC]=u,Q.cS[--Q.SC]=f,H[v*2]=H[u*2]+H[f*2],Q.depth[v]=(Q.depth[u]>=Q.depth[f]?Q.depth[u]:Q.depth[f])+1,H[u*2+1]=H[f*2+1]=v,Q.cS[1]=v++,eK(Q,H,1);while(Q.OT>= 2);Q.cS[--Q.SC]=Q.cS[1];u=z.wO;v=z.La;f=z.b9.RF;b=z.b9.cF;L=z.b9.GR;var y=z.b9.yu,q=z.b9.Xz$,M,C=0;for(M=0;M<=15;M++)Q.X9[M]=0;u[Q.cS[Q.SC]*2+1]=0;for(z=Q.SC+1;z<573;z++){var t=Q.cS[z];M=u[u[t*2+1]*2+1]+1;M>q&&(M=q,C++);u[t*2+1]=M;if(!(t>v)){Q.X9[M]++;var E=0;t>=y&&(E=L[t-y]);var G=u[t*2];Q.cQ+=G*(M+E);b&&(Q.X_+=G*(f[t*2+1]+E))}}if(C!==0){do{for(M=q-1;Q.X9[M]===0;)M--;Q.X9[M]--;Q.X9[M+1]+=2;Q.X9[q]--;C-=2}while(C>0);for(M=q;M!==0;M--)for(t=Q.X9[M];t!==0;)f=Q.cS[--z],f>v||(u[f*2+1]!==M&&(Q.cQ+=(M- u[f*2+1])*u[f*2],u[f*2+1]=M),t--)}yP9(H,X,Q.X9)}; pka=function(Q,z,H){var f,b=-1,L=z[1],u=0,X=7,v=4;L===0&&(X=138,v=3);z[(H+1)*2+1]=65535;for(f=0;f<=H;f++){var y=L;L=z[(f+1)*2+1];++u>>=1)if(z&1&&Q.MG[H*2]!==0)return 0;if(Q.MG[18]!==0||Q.MG[20]!==0||Q.MG[26]!==0)return 1;for(H=32;H<256;H++)if(Q.MG[H*2]!==0)return 1;return 0}; LT=function(Q,z,H){Q.f2[Q.NW+Q.iZ*2]=z>>>8&255;Q.f2[Q.NW+Q.iZ*2+1]=z&255;Q.f2[Q.tL+Q.iZ]=H&255;Q.iZ++;z===0?Q.MG[H*2]++:(Q.matches++,z--,Q.MG[(ln[H]+256+1)*2]++,Q.EN[(z<256?z5[z]:z5[256+(z>>>7)])*2]++);return Q.iZ===Q.Xl-1}; Sy=function(Q,z){Q.msg=uq[z];return z}; Xy=function(Q){for(var z=Q.length;--z>=0;)Q[z]=0}; v5=function(Q){var z=Q.state,H=z.pending;H>Q.gr&&(H=Q.gr);H!==0&&(KZ.K_(Q.output,z.f2,z.cJ,H,Q.G2),Q.G2+=H,z.cJ+=H,Q.kE+=H,Q.gr-=H,z.pending-=H,z.pending===0&&(z.cJ=0))}; MU=function(Q,z){var H=Q.b$>=0?Q.b$:-1,f=Q.DJ-Q.b$,b=0;if(Q.level>0){Q.QR.Qp===2&&(Q.QR.Qp=gBc(Q));bq(Q,Q.e_);bq(Q,Q.jg);pka(Q,Q.MG,Q.e_.La);pka(Q,Q.EN,Q.jg.La);bq(Q,Q.GT);for(b=18;b>=3&&Q.Qk[Z86[b]*2+1]===0;b--);Q.cQ+=3*(b+1)+5+5+4;var L=Q.cQ+3+7>>>3;var u=Q.X_+3+7>>>3;u<=L&&(L=u)}else L=u=f+5;if(f+4<=L&&H!==-1)kF(Q,z?1:0,3),C26(Q,H,f);else if(Q.strategy===4||u===L)kF(Q,2+(z?1:0),3),EBJ(Q,yX,qU);else{kF(Q,4+(z?1:0),3);H=Q.e_.La+1;f=Q.jg.La+1;b+=1;kF(Q,H-257,5);kF(Q,f-1,5);kF(Q,b-4,4);for(L=0;L>>8&255;Q.f2[Q.pending++]=z&255}; GNa=function(Q,z){var H=Q.rf,f=Q.DJ,b=Q.Ix,L=Q.K1,u=Q.DJ>Q.HY-262?Q.DJ-(Q.HY-262):0,X=Q.window,v=Q.cR,y=Q.tp,q=Q.DJ+258,M=X[f+b-1],C=X[f+b];Q.Ix>=Q.wB&&(H>>=2);L>Q.Nz&&(L=Q.Nz);do{var t=z;if(X[t+b]===C&&X[t+b-1]===M&&X[t]===X[f]&&X[++t]===X[f+1]){f+=2;for(t++;X[++f]===X[++t]&&X[++f]===X[++t]&&X[++f]===X[++t]&&X[++f]===X[++t]&&X[++f]===X[++t]&&X[++f]===X[++t]&&X[++f]===X[++t]&&X[++f]===X[++t]&&fb){Q.BE=z;b=t;if(t>=L)break;M=X[f+b-1];C=X[f+b]}}}while((z=y[z&v])>u&&--H!== 0);return b<=Q.Nz?b:Q.Nz}; nT=function(Q){var z=Q.HY,H;do{var f=Q.w9-Q.Nz-Q.DJ;if(Q.DJ>=z+(z-262)){KZ.K_(Q.window,Q.window,z,z,0);Q.BE-=z;Q.DJ-=z;Q.b$-=z;var b=H=Q.iR;do{var L=Q.head[--b];Q.head[b]=L>=z?L-z:0}while(--H);b=H=z;do L=Q.tp[--b],Q.tp[b]=L>=z?L-z:0;while(--H);f+=z}if(Q.QR.BY===0)break;b=Q.QR;H=Q.window;L=Q.DJ+Q.Nz;var u=b.BY;u>f&&(u=f);u===0?H=0:(b.BY-=u,KZ.K_(H,b.input,b.FM,u,L),b.state.wrap===1?b.Kp=E9(b.Kp,H,u,L):b.state.wrap===2&&(b.Kp=pT(b.Kp,H,u,L)),b.FM+=u,b.u3+=u,H=u);Q.Nz+=H;if(Q.Nz+Q.pA>=3)for(f=Q.DJ-Q.pA, Q.Fh=Q.window[f],Q.Fh=(Q.Fh<=3&&(Q.Fh=(Q.Fh<=3)if(H=LT(Q,Q.DJ-Q.BE,Q.z1-3),Q.Nz-=Q.z1,Q.z1<=Q.Oo&&Q.Nz>=3){Q.z1--;do Q.DJ++,Q.Fh=(Q.Fh<=3&&(Q.Fh=(Q.Fh<4096)&&(Q.z1=2));if(Q.Ix>=3&&Q.z1<=Q.Ix){f=Q.DJ+Q.Nz-3;H=LT(Q,Q.DJ-1-Q.QB,Q.Ix-3);Q.Nz-=Q.Ix-1;Q.Ix-=2;do++Q.DJ<=f&&(Q.Fh=(Q.Fh<=3&&Q.DJ>0&&(f=Q.DJ-1,H=L[f],H===L[++f]&&H===L[++f]&&H===L[++f])){for(b=Q.DJ+258;H===L[++f]&&H===L[++f]&&H===L[++f]&&H===L[++f]&&H===L[++f]&&H===L[++f]&&H===L[++f]&&H===L[++f]&&fQ.Nz&&(Q.z1=Q.Nz)}Q.z1>=3?(H=LT(Q,1,Q.z1-3),Q.Nz-=Q.z1,Q.DJ+=Q.z1,Q.z1=0):(H=LT(Q,0,Q.window[Q.DJ]),Q.Nz--,Q.DJ++);if(H&&(MU(Q,!1),Q.QR.gr===0))return 1}Q.pA=0;return z=== 4?(MU(Q,!0),Q.QR.gr===0?3:4):Q.iZ&&(MU(Q,!1),Q.QR.gr===0)?1:2}; jL9=function(Q,z){for(var H;;){if(Q.Nz===0&&(nT(Q),Q.Nz===0)){if(z===0)return 1;break}Q.z1=0;H=LT(Q,0,Q.window[Q.DJ]);Q.Nz--;Q.DJ++;if(H&&(MU(Q,!1),Q.QR.gr===0))return 1}Q.pA=0;return z===4?(MU(Q,!0),Q.QR.gr===0?3:4):Q.iZ&&(MU(Q,!1),Q.QR.gr===0)?1:2}; G5=function(Q,z,H,f,b){this.Dce=Q;this.iHh=z;this.oNc=H;this.pz$=f;this.func=b}; F4u=function(){this.QR=null;this.status=0;this.f2=null;this.wrap=this.pending=this.cJ=this.dN=0;this.M4=null;this.W5=0;this.method=8;this.oZ=-1;this.cR=this.E1=this.HY=0;this.window=null;this.w9=0;this.head=this.tp=null;this.K1=this.wB=this.strategy=this.level=this.Oo=this.rf=this.Ix=this.Nz=this.BE=this.DJ=this.pQ=this.QB=this.z1=this.b$=this.HQ=this.eE=this.kW=this.iR=this.Fh=0;this.MG=new KZ.mf(1146);this.EN=new KZ.mf(122);this.Qk=new KZ.mf(78);Xy(this.MG);Xy(this.EN);Xy(this.Qk);this.GT=this.jg= this.e_=null;this.X9=new KZ.mf(16);this.cS=new KZ.mf(573);Xy(this.cS);this.SC=this.OT=0;this.depth=new KZ.mf(573);Xy(this.depth);this.j3=this.q7=this.pA=this.matches=this.X_=this.cQ=this.NW=this.iZ=this.Xl=this.tL=0}; x3u=function(Q,z){if(!Q||!Q.state||z>5||z<0)return Q?Sy(Q,-2):-2;var H=Q.state;if(!Q.output||!Q.input&&Q.BY!==0||H.status===666&&z!==4)return Sy(Q,Q.gr===0?-5:-2);H.QR=Q;var f=H.oZ;H.oZ=z;if(H.status===42)if(H.wrap===2)Q.Kp=0,CT(H,31),CT(H,139),CT(H,8),H.M4?(CT(H,(H.M4.text?1:0)+(H.M4.Pn?2:0)+(H.M4.extra?4:0)+(H.M4.name?8:0)+(H.M4.comment?16:0)),CT(H,H.M4.time&255),CT(H,H.M4.time>>8&255),CT(H,H.M4.time>>16&255),CT(H,H.M4.time>>24&255),CT(H,H.level===9?2:H.strategy>=2||H.level<2?4:0),CT(H,H.M4.os& 255),H.M4.extra&&H.M4.extra.length&&(CT(H,H.M4.extra.length&255),CT(H,H.M4.extra.length>>8&255)),H.M4.Pn&&(Q.Kp=pT(Q.Kp,H.f2,H.pending,0)),H.W5=0,H.status=69):(CT(H,0),CT(H,0),CT(H,0),CT(H,0),CT(H,0),CT(H,H.level===9?2:H.strategy>=2||H.level<2?4:0),CT(H,3),H.status=113);else{var b=8+(H.E1-8<<4)<<8;b|=(H.strategy>=2||H.level<2?0:H.level<6?1:H.level===6?2:3)<<6;H.DJ!==0&&(b|=32);H.status=113;tu(H,b+(31-b%31));H.DJ!==0&&(tu(H,Q.Kp>>>16),tu(H,Q.Kp&65535));Q.Kp=1}if(H.status===69)if(H.M4.extra){for(b= H.pending;H.W5<(H.M4.extra.length&65535)&&(H.pending!==H.dN||(H.M4.Pn&&H.pending>b&&(Q.Kp=pT(Q.Kp,H.f2,H.pending-b,b)),v5(Q),b=H.pending,H.pending!==H.dN));)CT(H,H.M4.extra[H.W5]&255),H.W5++;H.M4.Pn&&H.pending>b&&(Q.Kp=pT(Q.Kp,H.f2,H.pending-b,b));H.W5===H.M4.extra.length&&(H.W5=0,H.status=73)}else H.status=73;if(H.status===73)if(H.M4.name){b=H.pending;do{if(H.pending===H.dN&&(H.M4.Pn&&H.pending>b&&(Q.Kp=pT(Q.Kp,H.f2,H.pending-b,b)),v5(Q),b=H.pending,H.pending===H.dN)){var L=1;break}L=H.W5b&&(Q.Kp=pT(Q.Kp,H.f2,H.pending-b,b));L===0&&(H.W5=0,H.status=91)}else H.status=91;if(H.status===91)if(H.M4.comment){b=H.pending;do{if(H.pending===H.dN&&(H.M4.Pn&&H.pending>b&&(Q.Kp=pT(Q.Kp,H.f2,H.pending-b,b)),v5(Q),b=H.pending,H.pending===H.dN)){L=1;break}L=H.W5b&&(Q.Kp=pT(Q.Kp,H.f2,H.pending-b,b));L===0&&(H.status=103)}else H.status= 103;H.status===103&&(H.M4.Pn?(H.pending+2>H.dN&&v5(Q),H.pending+2<=H.dN&&(CT(H,Q.Kp&255),CT(H,Q.Kp>>8&255),Q.Kp=0,H.status=113)):H.status=113);if(H.pending!==0){if(v5(Q),Q.gr===0)return H.oZ=-1,0}else if(Q.BY===0&&(z<<1)-(z>4?9:0)<=(f<<1)-(f>4?9:0)&&z!==4)return Sy(Q,-5);if(H.status===666&&Q.BY!==0)return Sy(Q,-5);if(Q.BY!==0||H.Nz!==0||z!==0&&H.status!==666){f=H.strategy===2?jL9(H,z):H.strategy===3?$3L(H,z):$c[H.level].func(H,z);if(f===3||f===4)H.status=666;if(f===1||f===3)return Q.gr===0&&(H.oZ= -1),0;if(f===2&&(z===1?(kF(H,2,3),Te(H,256,yX),H.j3===16?(wv(H,H.q7),H.q7=0,H.j3=0):H.j3>=8&&(H.f2[H.pending++]=H.q7&255,H.q7>>=8,H.j3-=8)):z!==5&&(kF(H,0,3),C26(H,0,0),z===3&&(Xy(H.head),H.Nz===0&&(H.DJ=0,H.b$=0,H.pA=0))),v5(Q),Q.gr===0))return H.oZ=-1,0}if(z!==4)return 0;if(H.wrap<=0)return 1;H.wrap===2?(CT(H,Q.Kp&255),CT(H,Q.Kp>>8&255),CT(H,Q.Kp>>16&255),CT(H,Q.Kp>>24&255),CT(H,Q.u3&255),CT(H,Q.u3>>8&255),CT(H,Q.u3>>16&255),CT(H,Q.u3>>24&255)):(tu(H,Q.Kp>>>16),tu(H,Q.Kp&65535));v5(Q);H.wrap>0&& (H.wrap=-H.wrap);return H.pending!==0?0:1}; jy=function(Q){if(!(this instanceof jy))return new jy(Q);Q=this.options=KZ.assign({level:-1,method:8,chunkSize:16384,Y7:15,uam:8,strategy:0,ac:""},Q||{});Q.raw&&Q.Y7>0?Q.Y7=-Q.Y7:Q.b35&&Q.Y7>0&&Q.Y7<16&&(Q.Y7+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.QR=new O8p;this.QR.gr=0;var z=this.QR;var H=Q.level,f=Q.method,b=Q.Y7,L=Q.uam,u=Q.strategy;if(z){var X=1;H===-1&&(H=6);b<0?(X=0,b=-b):b>15&&(X=2,b-=16);if(L<1||L>9||f!==8||b<8||b>15||H<0||H>9||u<0||u>4)z=Sy(z,-2);else{b===8&&(b=9); var v=new F4u;z.state=v;v.QR=z;v.wrap=X;v.M4=null;v.E1=b;v.HY=1<>=7;L<30;L++)for(fT[L]=u<<7,b=0;b<1<=y.HY&&(z===0&&(Xy(y.head),y.DJ=0,y.b$=0,y.pA=0),H=new KZ.rU(y.HY),KZ.K_(H,L,u-y.HY,y.HY,0),L=H,u=y.HY);H=Q.BY;f=Q.FM;b=Q.input;Q.BY=u;Q.FM=0;Q.input=L;for(nT(y);y.Nz>=3;){L=y.DJ;u=y.Nz-2;do y.Fh=(y.Fh<=10&&(H[27]!=-2?(0,H[85])(H[73],H[7])*(((0,H[55])((0,H[63])(H[54],(0,H[15])(),H[49]),H[85],H[33],H[16]),H[70])(H[0],H[49]),H[67])(H[4],H[48]):(0,H[27])(((0,H[50])(H[41],(0,H[16])(),H[3]),H[57])(H[26],H[36])^(0,H[new Date("1970-01-01T02:01:22.000+02:00")/1E3])(H[78]),H[42],(0,H[82])(H[81]),H[48],H[36])),(H[86]<7||((0,H[27])((((0,H[50])(H[41],(0,H[2])(),H[36]),H[54])(H[78],H[23]),H[42])((((0,H[48])(H[36]),(0,H[57])(H[10], H[81]),H[57])(H[28],H[7]),H[77])(H[11],H[36]),H[72],H[76],H[36])>>(((0,H[50])(H[51],(0,H[2])(),H[36]),H[4])(H[1]),(0,H[50])(H[41],(0,H[34])(),H[36])),H[42],((0,H[50])(H[41],(0,H[16])(),H[3]),H[50])(H[51],(0,H[2])(),H[3]),H[77],H[12],H[78]),""))&&(0,H[58])((((0,H[58])((0,H[77])(H[46],H[3]),H[77],(0,H[4])(H[81]),H[64],H[7])^((0,H[85])((0,H[85])((0,H[76])(H[78],H[34]),H[6],H[7],(0,H[45])(),H[37]),H[33],H[81],H[34]),H[45])(H[69],H[47]),(0,H[1])(H[28],H[64]),H[19])(H[8],H[28]),H[1])(H[28],H[new Date("1970-01-01T01:16:24.000+01:15")/ 1E3]),H[19],(0,H[76])((0,H[24])(H[6],H[70]),H[24],H[14],H[35]),H[33],H[79]),H[16]!=3&&(H[new Date("1969-12-31T12:15:15.000-11:45")/1E3]<=-8&&((0,H[71])((0,H[62])(H[70],H[81]),H[32],((0,H[63])(H[3],H[72]),H[63])(H[84],H[72]),(0,H[63])(H[76],H[72]),(0,H[39])(H[72]),H[63],H[86],H[85]),1)||(0,H[17])(((0,H[41])(H[31],(0,H[80])(),H[81]),(0,H[41])(H[31],(0,H[24])(),H[26]),H[62])(H[8],H[26])^(0,H[41])(H[31],(0,H[53])(),H[72]),H[32],(0,H[41])(H[42],(0,H[24])(),H[72]),H[41],H[31],(0,H[6])(),H[26])),(H[87]=== -7||((0,H[62])(H[21],H[72]),0))&&(0,H[48])(H[64],H[26]),H[84]!=-5&&(H[25]!=1?((0,H[68])(H[87],H[81]),(0,H[45])(H[72],H[19]),H[48])(H[57],H[72])^(0,H[62])(H[29],H[79]):(0,H[32])((((0,H[41])(H[31],(0,H[80])(),H[81]),H[41])(H[31],(0,H[53])(),H[72]),H[48])(H[35],H[81]),H[0],H[14],H[69])),H[62]>-8&&(H[50]>2||((0,H[32])((0,H[0])(H[4],H[79]),H[45],H[85],H[66]),0))&&((0,H[44])(H[45],(0,H[83])(),H[84]),H[42])(H[84]),H[69]<=10&&(0,H[24])(H[80],H[0]),H[65]==4?(0,H[51])(H[33],H[29]):(0,H[71])(H[78],H[45]),H[64]<= -10&&((0,H[77])((0,H[4])(((0,H[13])(H[57],(0,H[52])(),H[53]),H[13])(H[57],(0,H[52])(),H[53]),H[13],H[3],(0,H[52])(),H[44]),H[4],(0,H[4])((0,H[13])(H[57],(0,H[66])(),H[53]),H[20],H[67],H[14]),H[54],H[53]),1)||(0,H[71])(H[10],(0,H[35])(H[75],H[51]),H[40],((0,H[17])(H[14],H[65]),H[36])(H[39]),(0,H[69])(H[78],H[48]),(0,H[36])(H[7],H[11]),H[63],H[48])}catch(f){((0,H[65])(H[30],H[41]),H[68])(H[41],H[2]),((0,H[50])(H[35],H[41]),H[74])(H[87])===(0,H[45])(H[57],H[41]),(0,H[65])(H[52],H[44]),(0,H[72])(H[28], (0,H[18])(),H[87]),(0,H[50])(H[53],H[87]),(0,H[65])(H[77],H[87])}}catch(f){return"PxJZLyx-tJMuZ0BxuL-_w8_"+Q}return z.join("")}; V0Y=function(Q){return Q,"instanceof"[1+!!Q]}; g.NU=function(Q){this.name=Q}; d39=function(Q){this.Pz=rC(Q)}; If=function(Q){this.Pz=rC(Q)}; Au=function(Q){this.Pz=rC(Q)}; m3A=function(Q){this.Pz=rC(Q)}; Yc=function(Q){this.Pz=rC(Q)}; rw=function(Q){this.Pz=rC(Q)}; s9=function(Q){this.Pz=rC(Q)}; B5=function(Q){this.Pz=rC(Q)}; P5=function(Q){this.Pz=rC(Q)}; af=function(Q){this.Pz=rC(Q)}; U9=function(Q){this.Pz=rC(Q)}; c5=function(Q){this.Pz=rC(Q)}; iq=function(Q){this.Pz=rC(Q)}; hu=function(Q){this.Pz=rC(Q)}; KT=function(Q){this.Pz=rC(Q)}; VX=function(Q){this.Pz=rC(Q,500)}; dw=function(Q){this.Pz=rC(Q)}; mk=function(Q){this.Pz=rC(Q)}; wkn=function(Q){this.Pz=rC(Q)}; kN9=function(){return g.D6("yt.ads.biscotti.lastId_")||""}; Td9=function(Q){g.W_("yt.ads.biscotti.lastId_",Q)}; kc=function(){var Q=arguments,z=ww;Q.length>1?z[Q[0]]=Q[1]:Q.length===1&&Object.assign(z,Q[0])}; g.T5=function(Q,z){return Q in ww?ww[Q]:z}; ey=function(Q){var z=ww.EXPERIMENT_FLAGS;return z?z[Q]:void 0}; euv=function(Q){lq.forEach(function(z){return z(Q)})}; g.QC=function(Q){return Q&&window.yterr?function(){try{return Q.apply(this,arguments)}catch(z){g.Rf(z)}}:Q}; g.Rf=function(Q){var z=g.D6("yt.logging.errors.log");z?z(Q,"ERROR",void 0,void 0,void 0,void 0,void 0):(z=g.T5("ERRORS",[]),z.push([Q,"ERROR",void 0,void 0,void 0,void 0,void 0]),kc("ERRORS",z));euv(Q)}; zr=function(Q,z,H,f,b){var L=g.D6("yt.logging.errors.log");L?L(Q,"WARNING",z,H,f,void 0,b):(L=g.T5("ERRORS",[]),L.push([Q,"WARNING",z,H,f,void 0,b]),kc("ERRORS",L))}; H2=function(Q,z){z=Q.split(z);for(var H={},f=0,b=z.length;f1?Q[1]:Q[0])):{}}; ST=function(Q,z){return zRv(Q,z||{},!0)}; XZ=function(Q,z){return zRv(Q,z||{},!1)}; zRv=function(Q,z,H){var f=Q.split("#",2);Q=f[0];f=f.length>1?"#"+f[1]:"";var b=Q.split("?",2);Q=b[0];b=bv(b[1]||"");for(var L in z)if(H||!g.Nz(b,L))b[L]=z[L];return g.Ve(Q,b)+f}; v2=function(Q){if(!z)var z=window.location.href;var H=g.UE(1,Q),f=g.c4(Q);H&&f?(Q=Q.match(aR),z=z.match(aR),Q=Q[3]==z[3]&&Q[1]==z[1]&&Q[4]==z[4]):Q=f?g.c4(z)===f&&(Number(g.UE(4,z))||null)===(Number(g.UE(4,Q))||null):!0;return Q}; yC=function(Q){Q||(Q=document.location.href);Q=g.UE(1,Q);return Q!==null&&Q==="https"}; qn=function(Q){Q=H5L(Q);return Q===null?!1:Q[0]==="com"&&Q[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; fRv=function(Q){Q=H5L(Q);return Q===null?!1:Q[1]==="google"?!0:Q[2]==="google"?Q[0]==="au"&&Q[1]==="com"?!0:Q[0]==="uk"&&Q[1]==="co"?!0:!1:!1}; H5L=function(Q){Q=g.c4(Q);return Q!==null?Q.split(".").reverse():null}; lPJ=function(Q){return Q&&Q.match(b5n)?Q:ee(Q)}; tF=function(Q){var z=Mn;Q=Q===void 0?kN9():Q;var H=Object,f=H.assign,b=C1(z);var L=z.Z;try{var u=L.screenX;var X=L.screenY}catch(J){}try{var v=L.outerWidth;var y=L.outerHeight}catch(J){}try{var q=L.innerWidth;var M=L.innerHeight}catch(J){}try{var C=L.screenLeft;var t=L.screenTop}catch(J){}try{q=L.innerWidth,M=L.innerHeight}catch(J){}try{var E=L.screen.availWidth;var G=L.screen.availTop}catch(J){}L=[C,t,u,X,E,G,v,y,q,M];u=j6L(!1,z.Z.top);X={};var x=x===void 0?g.iL:x;v=new DR;"SVGElement"in x&&"createElementNS"in x.document&&v.set(0);y=Pd_();y["allow-top-navigation-by-user-activation"]&&v.set(1);y["allow-popups-to-escape-sandbox"]&&v.set(2);x.crypto&&x.crypto.subtle&&v.set(3);"TextDecoder"in x&&"TextEncoder"in x&&v.set(4);x=Yi9(v);z=(X.bc=x,X.bih=u.height,X.biw=u.width,X.brdim=L.join(),X.vis=gA(z.B),X.wgl=!!En.WebGLRenderingContext,X);H=f.call(H,b,z);H.ca_type="image";Q&&(H.bid=Q);return H}; C1=function(Q){var z={};z.dt=Lsa;z.flash="0";a:{try{var H=Q.Z.top.location.href}catch(q){Q=2;break a}Q=H?H===Q.B.location.href?0:1:2}z=(z.frm=Q,z);try{z.u_tz=-(new Date).getTimezoneOffset();var f=f===void 0?En:f;try{var b=f.history.length}catch(q){b=0}z.u_his=b;var L;z.u_h=(L=En.screen)==null?void 0:L.height;var u;z.u_w=(u=En.screen)==null?void 0:u.width;var X;z.u_ah=(X=En.screen)==null?void 0:X.availHeight;var v;z.u_aw=(v=En.screen)==null?void 0:v.availWidth;var y;z.u_cd=(y=En.screen)==null?void 0: y.colorDepth}catch(q){}return z}; S4J=function(){if(!ugp)return null;var Q=ugp();return"open"in Q?Q:null}; g.p1=function(Q){switch(EM(Q)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; EM=function(Q){return Q&&"status"in Q?Q.status:-1}; g.n1=function(Q,z){typeof Q==="function"&&(Q=g.QC(Q));return window.setTimeout(Q,z)}; g.gR=function(Q,z){typeof Q==="function"&&(Q=g.QC(Q));return window.setInterval(Q,z)}; g.ZK=function(Q){window.clearTimeout(Q)}; g.Gr=function(Q){window.clearInterval(Q)}; g.jT=function(Q){Q=$7(Q);return typeof Q==="string"&&Q==="false"?!1:!!Q}; g.FZ=function(Q,z){Q=$7(Q);return Q===void 0&&z!==void 0?z:Number(Q||0)}; x7=function(){return g.T5("EXPERIMENTS_TOKEN","")}; $7=function(Q){return g.T5("EXPERIMENT_FLAGS",{})[Q]}; OM=function(){for(var Q=[],z=g.T5("EXPERIMENTS_FORCED_FLAGS",{}),H=g.n(Object.keys(z)),f=H.next();!f.done;f=H.next())f=f.value,Q.push({key:f,value:String(z[f])});H=g.T5("EXPERIMENT_FLAGS",{});f=g.n(Object.keys(H));for(var b=f.next();!b.done;b=f.next())b=b.value,b.startsWith("force_")&&z[b]===void 0&&Q.push({key:b,value:String(H[b])});return Q}; on=function(Q,z,H,f,b,L,u,X){function v(){(y&&"readyState"in y?y.readyState:0)===4&&z&&g.QC(z)(y)} H=H===void 0?"GET":H;f=f===void 0?"":f;X=X===void 0?!1:X;var y=S4J();if(!y)return null;"onloadend"in y?y.addEventListener("loadend",v,!1):y.onreadystatechange=v;g.jT("debug_forward_web_query_parameters")&&(Q=Xza(Q,window.location.search));y.open(H,Q,!0);L&&(y.responseType=L);u&&(y.withCredentials=!0);H=H==="POST"&&(window.FormData===void 0||!(f instanceof FormData));if(b=vW6(Q,b))for(var q in b)y.setRequestHeader(q,b[q]),"content-type"===q.toLowerCase()&&(H=!1);H&&y.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");if(X&&"setAttributionReporting"in XMLHttpRequest.prototype){Q={eventSourceEligible:!0,triggerEligible:!1};try{y.setAttributionReporting(Q)}catch(M){zr(M)}}y.send(f);return y}; vW6=function(Q,z){z=z===void 0?{}:z;var H=v2(Q),f=g.T5("INNERTUBE_CLIENT_NAME"),b=g.jT("web_ajax_ignore_global_headers_if_set"),L;for(L in yZa){var u=g.T5(yZa[L]),X=L==="X-Goog-AuthUser"||L==="X-Goog-PageId";L!=="X-Goog-Visitor-Id"||u||(u=g.T5("VISITOR_DATA"));var v;if(!(v=!u)){if(!(v=H||(g.c4(Q)?!1:!0))){v=Q;var y;if(y=g.jT("add_auth_headers_to_remarketing_google_dot_com_ping")&&L==="Authorization"&&(f==="TVHTML5"||f==="TVHTML5_UNPLUGGED"||f==="TVHTML5_SIMPLY")&&fRv(v))v=P4(g.UE(5,v))||"",v=v.split("/"), v="/"+(v.length>1?v[1]:""),y=v==="/pagead";v=y?!0:!1}v=!v}v||b&&z[L]!==void 0||f==="TVHTML5_UNPLUGGED"&&X||(z[L]=u)}"X-Goog-EOM-Visitor-Id"in z&&"X-Goog-Visitor-Id"in z&&delete z["X-Goog-Visitor-Id"];if(H||!g.c4(Q))z["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(H||!g.c4(Q)){try{var q=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(M){}q&&(z["X-YouTube-Time-Zone"]=q)}document.location.hostname.endsWith("youtubeeducation.com")||!H&&g.c4(Q)||(z["X-YouTube-Ad-Signals"]= f1(tF()));return z}; M_A=function(Q,z){var H=g.c4(Q);g.jT("debug_handle_relative_url_for_query_forward_killswitch")||!H&&v2(Q)&&(H=document.location.hostname);var f=P4(g.UE(5,Q));f=(H=H&&(H.endsWith("youtube.com")||H.endsWith("youtube-nocookie.com")))&&f&&f.startsWith("/api/");if(!H||f)return Q;var b=bv(z),L={};g.qI(q4c,function(u){b[u]&&(L[u]=b[u])}); return XZ(Q,L)}; Nn=function(Q,z){z.method="POST";z.postParams||(z.postParams={});return g.JF(Q,z)}; EW_=function(Q,z){if(window.fetch&&z.format!=="XML"){var H={method:z.method||"GET",credentials:"same-origin"};z.headers&&(H.headers=z.headers);z.priority&&(H.priority=z.priority);Q=Cpp(Q,z);var f=t_a(Q,z);f&&(H.body=f);z.withCredentials&&(H.credentials="include");var b=z.context||g.iL,L=!1,u;fetch(Q,H).then(function(X){if(!L){L=!0;u&&g.ZK(u);var v=X.ok,y=function(q){q=q||{};v?z.onSuccess&&z.onSuccess.call(b,q,X):z.onError&&z.onError.call(b,q,X);z.onFinish&&z.onFinish.call(b,q,X)}; (z.format||"JSON")==="JSON"&&(v||X.status>=400&&X.status<500)?X.json().then(y,function(){y(null)}):y(null)}}).catch(function(){z.onError&&z.onError.call(b,{},{})}); Q=z.timeout||0;z.onFetchTimeout&&Q>0&&(u=g.n1(function(){L||(L=!0,g.ZK(u),z.onFetchTimeout.call(z.context||g.iL))},Q))}else g.JF(Q,z)}; g.JF=function(Q,z){var H=z.format||"JSON";Q=Cpp(Q,z);var f=t_a(Q,z),b=!1,L=pza(Q,function(v){if(!b){b=!0;X&&g.ZK(X);var y=g.p1(v),q=null,M=400<=v.status&&v.status<500,C=500<=v.status&&v.status<600;if(y||M||C)q=nWv(Q,H,v,z.convertToSafeHtml);y&&(y=gWn(H,v,q));q=q||{};M=z.context||g.iL;y?z.onSuccess&&z.onSuccess.call(M,v,q):z.onError&&z.onError.call(M,v,q);z.onFinish&&z.onFinish.call(M,v,q)}},z.method,f,z.headers,z.responseType,z.withCredentials); f=z.timeout||0;if(z.onTimeout&&f>0){var u=z.onTimeout;var X=g.n1(function(){b||(b=!0,L.abort(),g.ZK(X),u.call(z.context||g.iL,L))},f)}return L}; Cpp=function(Q,z){z.includeDomain&&(Q=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+Q);var H=g.T5("XSRF_FIELD_NAME");if(z=z.urlParams)z[H]&&delete z[H],Q=ST(Q,z);return Q}; t_a=function(Q,z){var H=g.T5("XSRF_FIELD_NAME"),f=g.T5("XSRF_TOKEN"),b=z.postBody||"",L=z.postParams,u=g.T5("XSRF_FIELD_NAME"),X;z.headers&&(X=z.headers["Content-Type"]);z.excludeXsrf||g.c4(Q)&&!z.withCredentials&&g.c4(Q)!==document.location.hostname||z.method!=="POST"||X&&X!=="application/x-www-form-urlencoded"||z.postParams&&z.postParams[u]||(L||(L={}),L[H]=f);(g.jT("ajax_parse_query_data_only_when_filled")&&L&&Object.keys(L).length>0||L)&&typeof b==="string"&&(b=bv(b),g.aI(b,L),b=z.postBodyFormat&& z.postBodyFormat==="JSON"?JSON.stringify(b):g.Kg(b));L=b||L&&!g.Ys(L);!Z5J&&L&&z.method!=="POST"&&(Z5J=!0,g.Rf(Error("AJAX request with postData should use POST")));return b}; nWv=function(Q,z,H,f){var b=null;switch(z){case "JSON":try{var L=H.responseText}catch(u){throw f=Error("Error reading responseText"),f.params=Q,zr(f),u;}Q=H.getResponseHeader("Content-Type")||"";L&&Q.indexOf("json")>=0&&(L.substring(0,5)===")]}'\n"&&(L=L.substring(5)),b=JSON.parse(L));break;case "XML":if(Q=(Q=H.responseXML)?GOu(Q):null)b={},g.qI(Q.getElementsByTagName("*"),function(u){b[u.tagName]=$N9(u)})}f&&jeL(b); return b}; jeL=function(Q){if(g.wc(Q))for(var z in Q)z==="html_content"||WZp(z,"_html")?Q[z]=PJ(Q[z]):jeL(Q[z])}; gWn=function(Q,z,H){if(z&&z.status===204)return!0;switch(Q){case "JSON":return!!H;case "XML":return Number(H&&H.return_code)===0;case "RAW":return!0;default:return!!H}}; GOu=function(Q){return Q?(Q=("responseXML"in Q?Q.responseXML:Q).getElementsByTagName("root"))&&Q.length>0?Q[0]:null:null}; $N9=function(Q){var z="";g.qI(Q.childNodes,function(H){z+=H.nodeValue}); return z}; AF=function(Q,z){var H=g.B3(z),f;return(new g.ng(function(b,L){H.onSuccess=function(u){g.p1(u)?b(new Fsa(u)):L(new In("Request failed, status="+EM(u),"net.badstatus",u))}; H.onError=function(u){L(new In("Unknown request error","net.unknown",u))}; H.onTimeout=function(u){L(new In("Request timed out","net.timeout",u))}; f=g.JF(Q,H)})).IN(function(b){if(b instanceof Fr){var L; (L=f)==null||L.abort()}return GM(b)})}; g.Y7=function(Q,z,H,f){function b(X,v,y){return X.IN(function(q){if(v<=0||EM(q.xhr)===403)return GM(new In("Request retried too many times","net.retryexhausted",q.xhr,q));q=Math.pow(2,H-v+1)*y;var M=u>0?Math.min(u,q):q;return L(y).then(function(){return b(AF(Q,z),v-1,M)})})} function L(X){return new g.ng(function(v){setTimeout(v,X)})} var u=u===void 0?-1:u;return b(AF(Q,z),H-1,f)}; In=function(Q,z,H){ET.call(this,Q+", errorCode="+z);this.errorCode=z;this.xhr=H;this.name="PromiseAjaxError"}; Fsa=function(Q){this.xhr=Q}; rR=function(Q){this.Z=Q===void 0?null:Q;this.L=0;this.B=null}; sM=function(Q){var z=new rR;Q=Q===void 0?null:Q;z.L=2;z.B=Q===void 0?null:Q;return z}; B2=function(Q){var z=new rR;Q=Q===void 0?null:Q;z.L=1;z.B=Q===void 0?null:Q;return z}; g.UM=function(Q,z,H,f,b){P2||an.set(""+Q,z,{dF:H,path:"/",domain:f===void 0?"youtube.com":f,secure:b===void 0?!1:b})}; g.c2=function(Q,z){if(!P2)return an.get(""+Q,z)}; g.iv=function(Q,z,H){P2||an.remove(""+Q,z===void 0?"/":z,H===void 0?"youtube.com":H)}; xNn=function(){if(g.jT("embeds_web_enable_cookie_detection_fix")){if(!g.iL.navigator.cookieEnabled)return!1}else if(!an.isEnabled())return!1;if(!an.isEmpty())return!0;g.jT("embeds_web_enable_cookie_detection_fix")?an.set("TESTCOOKIESENABLED","1",{dF:60,uf5:"none",secure:!0}):an.set("TESTCOOKIESENABLED","1",{dF:60});if(an.get("TESTCOOKIESENABLED")!=="1")return!1;an.remove("TESTCOOKIESENABLED");return!0}; g.K=function(Q,z){if(Q)return Q[z.name]}; hF=function(Q){var z=g.T5("INNERTUBE_HOST_OVERRIDE");z&&(Q=String(z)+String(id(Q)));return Q}; O5n=function(Q){var z={};g.jT("json_condensed_response")&&(z.prettyPrint="false");return Q=XZ(Q,z)}; W2=function(Q,z){var H=H===void 0?{}:H;Q={method:z===void 0?"POST":z,mode:v2(Q)?"same-origin":"cors",credentials:v2(Q)?"same-origin":"include"};z={};for(var f=g.n(Object.keys(H)),b=f.next();!b.done;b=f.next())b=b.value,H[b]&&(z[b]=H[b]);Object.keys(z).length>0&&(Q.headers=z);return Q}; DK=function(){var Q=/Chrome\/(\d+)/.exec(g.Ns());return Q?parseFloat(Q[1]):NaN}; VC=function(){return g.K1("android")&&g.K1("chrome")&&!(g.K1("trident/")||g.K1("edge/"))&&!g.K1("cobalt")}; oWv=function(){return g.K1("armv7")||g.K1("aarch64")||g.K1("android")}; g.dR=function(){return g.K1("cobalt")}; mW=function(){return g.K1("cobalt")&&g.K1("appletv")}; wR=function(){return g.K1("(ps3; leanback shell)")||g.K1("ps3")&&g.dR()}; JZc=function(){return g.K1("(ps4; leanback shell)")||g.K1("ps4")&&g.dR()}; g.NNA=function(){return g.dR()&&(g.K1("ps4 vr")||g.K1("ps4 pro vr"))}; k7=function(){var Q=/WebKit\/([0-9]+)/.exec(g.Ns());return!!(Q&&parseInt(Q[1],10)>=600)}; Tr=function(){var Q=/WebKit\/([0-9]+)/.exec(g.Ns());return!!(Q&&parseInt(Q[1],10)>=602)}; IR6=function(){return g.K1("iemobile")||g.K1("windows phone")&&g.K1("edge")}; Rn=function(){return(eT||lv)&&g.K1("applewebkit")&&!g.K1("version")&&(!g.K1("safari")||g.K1("gsa/"))}; zd=function(){return g.Qh&&g.K1("version/")}; Hw=function(){return g.K1("smart-tv")&&g.K1("samsung")}; g.K1=function(Q){var z=g.Ns();return z?z.toLowerCase().indexOf(Q)>=0:!1}; fF=function(){return cnv()||Rn()||zd()?!0:g.T5("EOM_VISITOR_DATA")?!1:!0}; bh=function(Q,z){return z===void 0||z===null?Q:z==="1"||z===!0||z===1||z==="True"?!0:!1}; LF=function(Q,z,H){for(var f in H)if(H[f]==z)return H[f];return Q}; uh=function(Q,z){return z===void 0||z===null?Q:Number(z)}; Ss=function(Q,z){return z===void 0||z===null?Q:z.toString()}; XX=function(Q,z){if(z){if(Q==="fullwidth")return Infinity;if(Q==="fullheight")return 0}return Q&&(z=Q.match(AZ_))&&(Q=Number(z[2]),z=Number(z[1]),!isNaN(Q)&&!isNaN(z)&&Q>0)?z/Q:NaN}; vw=function(Q){var z=Q.docid||Q.video_id||Q.videoId||Q.id;if(z)return z;z=Q.raw_player_response;z||(Q=Q.player_response)&&(z=JSON.parse(Q));return z&&z.videoDetails&&z.videoDetails.videoId||null}; Y4J=function(Q){return yh(Q,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; g.q0=function(Q){return Q==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||Q==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; yh=function(Q,z){z=(z===void 0?0:z)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(z="EMBEDDED_PLAYER_MODE_PFL");var H=Q.raw_embedded_player_response;if(!H&&(Q=Q.embedded_player_response))try{H=JSON.parse(Q)}catch(f){return z}return H?LF(z,H.embeddedPlayerMode,rZa):z}; CF=function(Q){ET.call(this,Q.message||Q.description||Q.name);this.isMissing=Q instanceof M0;this.isTimeout=Q instanceof In&&Q.errorCode=="net.timeout";this.isCanceled=Q instanceof Fr}; M0=function(){ET.call(this,"Biscotti ID is missing from server")}; se6=function(){if(g.jT("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!fF())return Error("User has not consented - not fetching biscotti id.");var Q=g.T5("PLAYER_VARS",{});if(g.ra(Q,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(Y4J(Q))return Error("Biscotti id fetching has been disabled for pfl.")}; UNa=function(){var Q=se6();if(Q!==void 0)return GM(Q);tq||(tq=AF("//googleads.g.doubleclick.net/pagead/id",BNu).then(Pp6).IN(function(z){return aRZ(2,z)})); return tq}; Pp6=function(Q){Q=Q.xhr.responseText;if(!GY(Q,")]}'"))throw new M0;Q=JSON.parse(Q.substr(4));if((Q.type||1)>1)throw new M0;Q=Q.id;Td9(Q);tq=B2(Q);cZZ(18E5,2);return Q}; aRZ=function(Q,z){z=new CF(z);Td9("");tq=sM(z);Q>0&&cZZ(12E4,Q-1);throw z;}; cZZ=function(Q,z){g.n1(function(){AF("//googleads.g.doubleclick.net/pagead/id",BNu).then(Pp6,function(H){return aRZ(z,H)}).IN(g.Cg)},Q)}; i5a=function(){try{var Q=g.D6("yt.ads.biscotti.getId_");return Q?Q():UNa()}catch(z){return GM(z)}}; WsZ=function(Q){Q&&(Q.dataset?Q.dataset[hR9()]="true":OSA(Q))}; DN6=function(Q){return Q?Q.dataset?Q.dataset[hR9()]:Q.getAttribute("data-loaded"):null}; hR9=function(){return Ksu.loaded||(Ksu.loaded="loaded".replace(/\-([a-z])/g,function(Q,z){return z.toUpperCase()}))}; V_v=function(){var Q=document;if("visibilityState"in Q)return Q.visibilityState;var z=EP+"VisibilityState";if(z in Q)return Q[z]}; pF=function(Q,z){var H;Jx(Q,function(f){H=z[f];return!!H}); return H}; nF=function(Q){if(Q.requestFullscreen)Q=Q.requestFullscreen(void 0);else if(Q.webkitRequestFullscreen)Q=Q.webkitRequestFullscreen();else if(Q.mozRequestFullScreen)Q=Q.mozRequestFullScreen();else if(Q.msRequestFullscreen)Q=Q.msRequestFullscreen();else if(Q.webkitEnterFullscreen)Q=Q.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return Q instanceof Promise?Q:Promise.resolve()}; Gd=function(Q){var z;g.gD()?ZQ()==Q&&(z=document):z=Q;return z&&(Q=pF(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],z))?(z=Q.call(z),z instanceof Promise?z:Promise.resolve()):Promise.resolve()}; dNa=function(Q){return g.mB(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(z){return"on"+z.toLowerCase()in Q})}; mNc=function(){var Q=document;return g.mB(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(z){return"on"+z.toLowerCase()in Q})}; g.gD=function(){return!!pF(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; ZQ=function(Q){Q=Q===void 0?!1:Q;var z=pF(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(Q)for(;z&&z.shadowRoot;)z=z.shadowRoot.fullscreenElement;return z?z:null}; $Q=function(Q){this.type="";this.state=this.source=this.data=this.currentTarget=this.relatedTarget=this.target=null;this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.ctrlKey=this.altKey=!1;this.rotation=this.clientY=this.clientX=0;this.scale=1;this.changedTouches=this.touches=null;try{if(Q=Q||window.event){this.event=Q;for(var z in Q)z in wzc||(this[z]=Q[z]);this.scale=Q.scale;this.rotation=Q.rotation;var H=Q.target||Q.srcElement;H&&H.nodeType==3&&(H=H.parentNode);this.target=H;var f=Q.relatedTarget; if(f)try{f=f.nodeName?f:null}catch(b){f=null}else this.type=="mouseover"?f=Q.fromElement:this.type=="mouseout"&&(f=Q.toElement);this.relatedTarget=f;this.clientX=Q.clientX!=void 0?Q.clientX:Q.pageX;this.clientY=Q.clientY!=void 0?Q.clientY:Q.pageY;this.keyCode=Q.keyCode?Q.keyCode:Q.which;this.charCode=Q.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=Q.altKey;this.ctrlKey=Q.ctrlKey;this.shiftKey=Q.shiftKey;this.metaKey=Q.metaKey;this.Z=Q.pageX;this.B=Q.pageY}}catch(b){}}; kOk=function(Q){if(document.body&&document.documentElement){var z=document.body.scrollTop+document.documentElement.scrollTop;Q.Z=Q.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);Q.B=Q.clientY+z}}; TNJ=function(Q,z,H,f){f=f===void 0?{}:f;Q.addEventListener&&(z!="mouseenter"||"onmouseenter"in document?z!="mouseleave"||"onmouseenter"in document?z=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(z="MozMousePixelScroll"):z="mouseout":z="mouseover");return A6(js,function(b){var L=typeof b[4]==="boolean"&&b[4]==!!f,u=g.wc(b[4])&&g.wc(f)&&g.sr(b[4],f);return!!b.length&&b[0]==Q&&b[1]==z&&b[2]==H&&(L||u)})}; g.FX=function(Q,z,H,f){f=f===void 0?{}:f;if(!Q||!Q.addEventListener&&!Q.attachEvent)return"";var b=TNJ(Q,z,H,f);if(b)return b;b=++eR_.count+"";var L=!(z!="mouseenter"&&z!="mouseleave"||!Q.addEventListener||"onmouseenter"in document);var u=L?function(X){X=new $Q(X);if(!yp(X.relatedTarget,function(v){return v==Q},!0))return X.currentTarget=Q,X.type=z,H.call(Q,X)}:function(X){X=new $Q(X); X.currentTarget=Q;return H.call(Q,X)}; u=g.QC(u);Q.addEventListener?(z=="mouseenter"&&L?z="mouseover":z=="mouseleave"&&L?z="mouseout":z=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(z="MozMousePixelScroll"),lRJ()||typeof f==="boolean"?Q.addEventListener(z,u,f):Q.addEventListener(z,u,!!f.capture)):Q.attachEvent("on"+z,u);js[b]=[Q,z,H,u,f];return b}; QHa=function(Q){return RRc(Q,function(z){return g.un(z,"ytp-ad-has-logging-urls")})}; RRc=function(Q,z){var H=document.body||document;return g.FX(H,"click",function(f){var b=yp(f.target,function(L){return L===H||z(L)},!0); b&&b!==H&&!b.disabled&&(f.currentTarget=b,Q.call(b,f))})}; g.xQ=function(Q){Q&&(typeof Q=="string"&&(Q=[Q]),g.qI(Q,function(z){if(z in js){var H=js[z],f=H[0],b=H[1],L=H[3];H=H[4];f.removeEventListener?lRJ()||typeof H==="boolean"?f.removeEventListener(b,L,H):f.removeEventListener(b,L,!!H.capture):f.detachEvent&&f.detachEvent("on"+b,L);delete js[z]}}))}; OP=function(Q){for(var z in js)js[z][0]==Q&&g.xQ(z)}; o4=function(Q){Q=Q||window.event;var z;Q.composedPath&&typeof Q.composedPath==="function"?z=Q.composedPath():z=Q.path;z&&z.length?Q=z[0]:(Q=Q||window.event,Q=Q.target||Q.srcElement,Q.nodeType==3&&(Q=Q.parentNode));return Q}; Jq=function(Q){this.Y=Q;this.Z=null;this.D=0;this.j=null;this.S=0;this.B=[];for(Q=0;Q<4;Q++)this.B.push(0);this.L=0;this.wh=g.FX(window,"mousemove",(0,g.lL)(this.U,this));this.N=g.gR((0,g.lL)(this.Ze,this),25)}; N0=function(Q){g.h.call(this);this.Y=[];this.ZJ=Q||this}; I4=function(Q,z,H,f){for(var b=0;b0?H:0;H=f?Date.now()+f*1E3:0;if((f=f?(0,g.rD)():sP())&&window.JSON){typeof z!=="string"&&(z=JSON.stringify(z,void 0));try{f.set(Q,z,H)}catch(b){f.remove(Q)}}}; g.Pw=function(Q){var z=sP(),H=(0,g.rD)();if(!z&&!H||!window.JSON)return null;try{var f=z.get(Q)}catch(b){}if(typeof f!=="string")try{f=H.get(Q)}catch(b){}if(typeof f!=="string")return null;try{f=JSON.parse(f,void 0)}catch(b){}return f}; fxa=function(){var Q=(0,g.rD)();if(Q&&(Q=Q.B("yt-player-quality")))return Q.creation}; g.a4=function(Q){try{var z=sP(),H=(0,g.rD)();z&&z.remove(Q);H&&H.remove(Q)}catch(f){}}; g.UP=function(){return g.Pw("yt-remote-session-screen-id")}; bZA=function(Q){var z=this;this.B=void 0;this.Z=!1;Q.addEventListener("beforeinstallprompt",function(H){H.preventDefault();z.B=H}); Q.addEventListener("appinstalled",function(){z.Z=!0},{once:!0})}; cw=function(){if(!g.iL.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.iL.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.iL.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.iL.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.iL.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(Q){return"WEB_DISPLAY_MODE_UNKNOWN"}}; ih=function(){this.eY=!0}; LgA=function(){ih.instance||(ih.instance=new ih);return ih.instance}; u9Y=function(Q){switch(Q){case "DESKTOP":return 1;case "UNKNOWN_PLATFORM":return 0;case "TV":return 2;case "GAME_CONSOLE":return 3;case "MOBILE":return 4;case "TABLET":return 5}}; SF6=function(){this.Z=g.T5("ALT_PREF_COOKIE_NAME","PREF");this.B=g.T5("ALT_PREF_COOKIE_DOMAIN","youtube.com");var Q=g.c2(this.Z);Q&&this.parse(Q)}; g.Ww=function(){hq||(hq=new SF6);return hq}; g.DQ=function(Q,z){return!!((XOu("f"+(Math.floor(z/31)+1))||0)&1<0;)switch(Q=qV.shift(),Q.type){case "ERROR":S9.NO(Q.payload);break;case "EVENT":S9.logEvent(Q.eventType,Q.payload)}}; Cf=function(Q){MV||(S9?S9.NO(Q):(qV.push({type:"ERROR",payload:Q}),qV.length>10&&qV.shift()))}; t1=function(Q,z){MV||(S9?S9.logEvent(Q,z):(qV.push({type:"EVENT",eventType:Q,payload:z}),qV.length>10&&qV.shift()))}; Ee=function(Q){if(Q.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; pf=function(Q){return Q.substr(0,Q.indexOf(":"))||Q}; g.nf=function(Q,z,H,f,b){z=z===void 0?{}:z;H=H===void 0?pOk[Q]:H;f=f===void 0?nFZ[Q]:f;b=b===void 0?gF6[Q]:b;g.wD.call(this,H,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:Q},z));this.type=Q;this.message=H;this.level=f;this.Z=b;Object.setPrototypeOf(this,g.nf.prototype)}; gG=function(Q,z){g.nf.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:z,foundObjectStores:Q},pOk.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,gG.prototype)}; ZE=function(Q,z){var H=Error.call(this);this.message=H.message;"stack"in H&&(this.stack=H.stack);this.index=Q;this.objectStore=z;Object.setPrototypeOf(this,ZE.prototype)}; $w=function(Q,z,H,f){z=pf(z);var b=Q instanceof Error?Q:Error("Unexpected error: "+Q);if(b instanceof g.nf)return b;Q={objectStoreNames:H,dbName:z,dbVersion:f};if(b.name==="QuotaExceededError")return new g.nf("QUOTA_EXCEEDED",Q);if(g.Ga&&b.name==="UnknownError")return new g.nf("QUOTA_MAYBE_EXCEEDED",Q);if(b instanceof ZE)return new g.nf("MISSING_INDEX",Object.assign({},Q,{objectStore:b.objectStore,index:b.index}));if(b.name==="InvalidStateError"&&ZZc.some(function(L){return b.message.includes(L)}))return new g.nf("EXECUTE_TRANSACTION_ON_CLOSED_DB", Q); if(b.name==="AbortError")return new g.nf("UNKNOWN_ABORT",Q,b.message);b.args=[Object.assign({},Q,{name:"IdbError",jQ:b.name})];b.level="WARNING";return b}; g.j9=function(Q,z,H){var f=u0();return new g.nf("IDB_NOT_SUPPORTED",{context:{caller:Q,publicName:z,version:H,hasSucceededOnce:f==null?void 0:f.hasSucceededOnce}})}; Gev=function(Q){if(!Q)throw Error();throw Q;}; $Pc=function(Q){return Q}; F8=function(Q){this.Z=Q}; g.xw=function(Q){function z(b){if(f.state.status==="PENDING"){f.state={status:"REJECTED",reason:b};b=g.n(f.B);for(var L=b.next();!L.done;L=b.next())L=L.value,L()}} function H(b){if(f.state.status==="PENDING"){f.state={status:"FULFILLED",value:b};b=g.n(f.Z);for(var L=b.next();!L.done;L=b.next())L=L.value,L()}} var f=this;this.state={status:"PENDING"};this.Z=[];this.B=[];Q=Q.Z;try{Q(H,z)}catch(b){z(b)}}; jH8=function(Q,z,H,f,b){try{if(Q.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var L=H(Q.state.value);L instanceof g.xw?Oe(Q,z,L,f,b):f(L)}catch(u){b(u)}}; Fgu=function(Q,z,H,f,b){try{if(Q.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var L=H(Q.state.reason);L instanceof g.xw?Oe(Q,z,L,f,b):f(L)}catch(u){b(u)}}; Oe=function(Q,z,H,f,b){z===H?b(new TypeError("Circular promise chain detected.")):H.then(function(L){L instanceof g.xw?Oe(Q,z,L,f,b):f(L)},function(L){b(L)})}; xPv=function(Q,z,H){function f(){H(Q.error);L()} function b(){z(Q.result);L()} function L(){try{Q.removeEventListener("success",b),Q.removeEventListener("error",f)}catch(u){}} Q.addEventListener("success",b);Q.addEventListener("error",f)}; OZ9=function(Q){return new Promise(function(z,H){xPv(Q,z,H)})}; oE=function(Q){return new g.xw(new F8(function(z,H){xPv(Q,z,H)}))}; J1=function(Q,z){return new g.xw(new F8(function(H,f){function b(){var L=Q?z(Q):null;L?L.then(function(u){Q=u;b()},f):H()} b()}))}; oF_=function(Q,z){this.request=Q;this.cursor=z}; JDY=function(Q){return oE(Q).then(function(z){return z?new oF_(Q,z):null})}; g.Nv6=function(Q){Q.cursor.continue(void 0);return JDY(Q.request)}; Ixv=function(Q,z){this.Z=Q;this.options=z;this.transactionCount=0;this.L=Math.round((0,g.NV)());this.B=!1}; g.A1=function(Q,z,H){Q=Q.Z.createObjectStore(z,H);return new IE(Q)}; Yw=function(Q,z){Q.Z.objectStoreNames.contains(z)&&Q.Z.deleteObjectStore(z)}; g.BH=function(Q,z,H){return g.rG(Q,[z],{mode:"readwrite",VE:!0},function(f){return g.se(f.objectStore(z),H)})}; g.rG=function(Q,z,H,f){var b,L,u,X,v,y,q,M,C,t,E,G;return g.B(function(x){switch(x.Z){case 1:var J={mode:"readonly",VE:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof H==="string"?J.mode=H:Object.assign(J,H);b=J;Q.transactionCount++;L=b.VE?3:1;u=0;case 2:if(X){x.bT(4);break}u++;v=Math.round((0,g.NV)());g.$v(x,5);y=Q.Z.transaction(z,b.mode);J=new PH(y);J=ADJ(J,f);return g.Y(x,J,7);case 7:return q=x.B,M=Math.round((0,g.NV)()),YFY(Q,v,M,u,void 0,z.join(),b),x.return(q);case 5:C=g.xv(x);t=Math.round((0,g.NV)()); E=$w(C,Q.Z.name,z.join(),Q.Z.version);if((G=E instanceof g.nf&&!E.Z)||u>=L)YFY(Q,v,t,u,E,z.join(),b),X=E;x.bT(2);break;case 4:return x.return(Promise.reject(X))}})}; YFY=function(Q,z,H,f,b,L,u){z=H-z;b?(b instanceof g.nf&&(b.type==="QUOTA_EXCEEDED"||b.type==="QUOTA_MAYBE_EXCEEDED")&&t1("QUOTA_EXCEEDED",{dbName:pf(Q.Z.name),objectStoreNames:L,transactionCount:Q.transactionCount,transactionMode:u.mode}),b instanceof g.nf&&b.type==="UNKNOWN_ABORT"&&(H-=Q.L,H<0&&H>=2147483648&&(H=0),t1("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:L,transactionDuration:z,transactionCount:Q.transactionCount,dbDuration:H}),Q.B=!0),rD_(Q,!1,f,L,z,u.tag),Cf(b)):rD_(Q,!0,f,L,z, u.tag)}; rD_=function(Q,z,H,f,b,L){t1("TRANSACTION_ENDED",{objectStoreNames:f,connectionHasUnknownAbortedTransaction:Q.B,duration:b,isSuccessful:z,tryCount:H,tag:L===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":L})}; IE=function(Q){this.Z=Q}; g.aE=function(Q,z,H){Q.Z.createIndex(z,H,{unique:!1})}; sHa=function(Q,z){return g.Ue(Q,{query:z},function(H){return H.delete().then(function(){return g.cH(H)})}).then(function(){})}; Bvn=function(Q,z,H){var f=[];return g.Ue(Q,{query:z},function(b){if(!(H!==void 0&&f.length>=H))return f.push(b.getValue()),g.cH(b)}).then(function(){return f})}; ax9=function(Q){return"getAllKeys"in IDBObjectStore.prototype?oE(Q.Z.getAllKeys(void 0,void 0)):Pn6(Q)}; Pn6=function(Q){var z=[];return g.UP_(Q,{query:void 0},function(H){z.push(H.cursor.primaryKey);return g.Nv6(H)}).then(function(){return z})}; g.se=function(Q,z,H){return oE(Q.Z.put(z,H))}; g.Ue=function(Q,z,H){Q=Q.Z.openCursor(z.query,z.direction);return i0(Q).then(function(f){return J1(f,H)})}; g.UP_=function(Q,z,H){var f=z.query;z=z.direction;Q="openKeyCursor"in IDBObjectStore.prototype?Q.Z.openKeyCursor(f,z):Q.Z.openCursor(f,z);return JDY(Q).then(function(b){return J1(b,H)})}; PH=function(Q){var z=this;this.Z=Q;this.L=new Map;this.B=!1;this.done=new Promise(function(H,f){z.Z.addEventListener("complete",function(){H()}); z.Z.addEventListener("error",function(b){b.currentTarget===b.target&&f(z.Z.error)}); z.Z.addEventListener("abort",function(){var b=z.Z.error;if(b)f(b);else if(!z.B){b=g.nf;for(var L=z.Z.objectStoreNames,u=[],X=0;X=H))return f.push(b.getValue()),g.cH(b)}).then(function(){return f})}; g.h1=function(Q,z,H){Q=Q.Z.openCursor(z.query===void 0?null:z.query,z.direction===void 0?"next":z.direction);return i0(Q).then(function(f){return J1(f,H)})}; WH=function(Q,z){this.request=Q;this.cursor=z}; i0=function(Q){return oE(Q).then(function(z){return z?new WH(Q,z):null})}; g.cH=function(Q){Q.cursor.continue(void 0);return i0(Q.request)}; hEZ=function(Q,z,H){return new Promise(function(f,b){function L(){C||(C=new Ixv(u.result,{closed:M}));return C} var u=z!==void 0?self.indexedDB.open(Q,z):self.indexedDB.open(Q);var X=H.blocked,v=H.blocking,y=H.CWh,q=H.upgrade,M=H.closed,C;u.addEventListener("upgradeneeded",function(t){try{if(t.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(u.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");t.dataLoss&&t.dataLoss!=="none"&&t1("IDB_DATA_CORRUPTED",{reason:t.dataLossMessage||"unknown reason",dbName:pf(Q)});var E=L(),G=new PH(u.transaction); q&&q(E,function(x){return t.oldVersion=x},G); G.done.catch(function(x){b(x)})}catch(x){b(x)}}); u.addEventListener("success",function(){var t=u.result;v&&t.addEventListener("versionchange",function(){v(L())}); t.addEventListener("close",function(){t1("IDB_UNEXPECTEDLY_CLOSED",{dbName:pf(Q),dbVersion:t.version});y&&y()}); f(L())}); u.addEventListener("error",function(){b(u.error)}); X&&u.addEventListener("blocked",function(){X()})})}; Wgv=function(Q,z,H){H=H===void 0?{}:H;return hEZ(Q,z,H)}; DE=function(Q,z){z=z===void 0?{}:z;var H,f,b,L;return g.B(function(u){if(u.Z==1)return g.$v(u,2),H=self.indexedDB.deleteDatabase(Q),f=z,(b=f.blocked)&&H.addEventListener("blocked",function(){b()}),g.Y(u,OZ9(H),4); if(u.Z!=2)return g.Fa(u,0);L=g.xv(u);throw $w(L,Q,"",-1);})}; Kf=function(Q,z){this.name=Q;this.options=z;this.L=!0;this.S=this.D=0}; DP6=function(Q,z){return new g.nf("INCOMPATIBLE_DB_VERSION",{dbName:Q.name,oldVersion:Q.options.version,newVersion:z})}; g.V5=function(Q,z){if(!z)throw g.j9("openWithToken",pf(Q.name));return Q.open()}; KgL=function(Q,z){var H;return g.B(function(f){if(f.Z==1)return g.Y(f,g.V5(dG,z),2);H=f.B;return f.return(g.rG(H,["databases"],{VE:!0,mode:"readwrite"},function(b){var L=b.objectStore("databases");return L.get(Q.actualName).then(function(u){if(u?Q.actualName!==u.actualName||Q.publicName!==u.publicName||Q.userIdentifier!==u.userIdentifier:1)return g.se(L,Q).then(function(){})})}))})}; mx=function(Q,z){var H;return g.B(function(f){if(f.Z==1)return Q?g.Y(f,g.V5(dG,z),2):f.return();H=f.B;return f.return(H.delete("databases",Q))})}; VKc=function(Q,z){var H,f;return g.B(function(b){return b.Z==1?(H=[],g.Y(b,g.V5(dG,z),2)):b.Z!=3?(f=b.B,g.Y(b,g.rG(f,["databases"],{VE:!0,mode:"readonly"},function(L){H.length=0;return g.Ue(L.objectStore("databases"),{},function(u){Q(u.getValue())&&H.push(u.getValue());return g.cH(u)})}),3)):b.return(H)})}; dPL=function(Q,z){return VKc(function(H){return H.publicName===Q&&H.userIdentifier!==void 0},z)}; mPv=function(){var Q,z,H,f;return g.B(function(b){switch(b.Z){case 1:Q=u0();if((z=Q)==null?0:z.hasSucceededOnce)return b.return(!0);if(wG&&k7()&&!Tr()||g.kw)return b.return(!1);try{if(H=self,!(H.indexedDB&&H.IDBIndex&&H.IDBKeyRange&&H.IDBObjectStore))return b.return(!1)}catch(L){return b.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return b.return(!1);g.$v(b,2);f={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.Y(b,KgL(f,Ta),4);case 4:return g.Y(b,mx("yt-idb-test-do-not-use",Ta),5);case 5:return b.return(!0);case 2:return g.xv(b),b.return(!1)}})}; wO_=function(){if(e9!==void 0)return e9;MV=!0;return e9=mPv().then(function(Q){MV=!1;var z;if((z=Lf())!=null&&z.Z){var H;z={hasSucceededOnce:((H=u0())==null?void 0:H.hasSucceededOnce)||Q};var f;(f=Lf())==null||f.set("LAST_RESULT_ENTRY_KEY",z,2592E3,!0)}return Q})}; l0=function(){return g.D6("ytglobal.idbToken_")||void 0}; g.RE=function(){var Q=l0();return Q?Promise.resolve(Q):wO_().then(function(z){(z=z?Ta:void 0)&&g.W_("ytglobal.idbToken_",z);return z})}; keL=function(Q){if(!g.Td())throw Q=new g.nf("AUTH_INVALID",{dbName:Q}),Cf(Q),Q;var z=g.kQ();return{actualName:Q+":"+z,publicName:Q,userIdentifier:z}}; TvL=function(Q,z,H,f){var b,L,u,X,v,y;return g.B(function(q){switch(q.Z){case 1:return L=(b=Error().stack)!=null?b:"",g.Y(q,g.RE(),2);case 2:u=q.B;if(!u)throw X=g.j9("openDbImpl",Q,z),g.jT("ytidb_async_stack_killswitch")||(X.stack=X.stack+"\n"+L.substring(L.indexOf("\n")+1)),Cf(X),X;Ee(Q);v=H?{actualName:Q,publicName:Q,userIdentifier:void 0}:keL(Q);g.$v(q,3);return g.Y(q,KgL(v,u),5);case 5:return g.Y(q,Wgv(v.actualName,z,f),6);case 6:return q.return(q.B);case 3:return y=g.xv(q),g.$v(q,7),g.Y(q,mx(v.actualName, u),9);case 9:g.Fa(q,8);break;case 7:g.xv(q);case 8:throw y;}})}; eEk=function(Q,z,H){H=H===void 0?{}:H;return TvL(Q,z,!1,H)}; lx9=function(Q,z,H){H=H===void 0?{}:H;return TvL(Q,z,!0,H)}; RE8=function(Q,z){z=z===void 0?{}:z;var H,f;return g.B(function(b){if(b.Z==1)return g.Y(b,g.RE(),2);if(b.Z!=3){H=b.B;if(!H)return b.return();Ee(Q);f=keL(Q);return g.Y(b,DE(f.actualName,z),3)}return g.Y(b,mx(f.actualName,H),0)})}; Qf6=function(Q,z,H){Q=Q.map(function(f){return g.B(function(b){return b.Z==1?g.Y(b,DE(f.actualName,z),2):g.Y(b,mx(f.actualName,H),0)})}); return Promise.all(Q).then(function(){})}; z$Z=function(Q){var z=z===void 0?{}:z;var H,f;return g.B(function(b){if(b.Z==1)return g.Y(b,g.RE(),2);if(b.Z!=3){H=b.B;if(!H)return b.return();Ee(Q);return g.Y(b,dPL(Q,H),3)}f=b.B;return g.Y(b,Qf6(f,z,H),0)})}; HT_=function(Q,z){z=z===void 0?{}:z;var H;return g.B(function(f){if(f.Z==1)return g.Y(f,g.RE(),2);if(f.Z!=3){H=f.B;if(!H)return f.return();Ee(Q);return g.Y(f,DE(Q,z),3)}return g.Y(f,mx(Q,H),0)})}; QH=function(Q,z){Kf.call(this,Q,z);this.options=z;Ee(Q)}; fVp=function(Q,z){var H;return function(){H||(H=new QH(Q,z));return H}}; g.zK=function(Q,z){return fVp(Q,z)}; HU=function(Q){return g.V5(bTA(),Q)}; LkJ=function(Q,z,H,f){var b,L,u;return g.B(function(X){switch(X.Z){case 1:return b={config:Q,hashData:z,timestamp:f!==void 0?f:(0,g.NV)()},g.Y(X,HU(H),2);case 2:return L=X.B,g.Y(X,L.clear("hotConfigStore"),3);case 3:return g.Y(X,g.BH(L,"hotConfigStore",b),4);case 4:return u=X.B,X.return(u)}})}; uyk=function(Q,z,H,f,b){var L,u,X;return g.B(function(v){switch(v.Z){case 1:return L={config:Q,hashData:z,configData:H,timestamp:b!==void 0?b:(0,g.NV)()},g.Y(v,HU(f),2);case 2:return u=v.B,g.Y(v,u.clear("coldConfigStore"),3);case 3:return g.Y(v,g.BH(u,"coldConfigStore",L),4);case 4:return X=v.B,v.return(X)}})}; S9u=function(Q){var z,H;return g.B(function(f){return f.Z==1?g.Y(f,HU(Q),2):f.Z!=3?(z=f.B,H=void 0,g.Y(f,g.rG(z,["coldConfigStore"],{mode:"readwrite",VE:!0},function(b){return g.h1(b.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(L){H=L.getValue()})}),3)):f.return(H)})}; X5a=function(Q){var z,H;return g.B(function(f){return f.Z==1?g.Y(f,HU(Q),2):f.Z!=3?(z=f.B,H=void 0,g.Y(f,g.rG(z,["hotConfigStore"],{mode:"readwrite",VE:!0},function(b){return g.h1(b.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(L){H=L.getValue()})}),3)):f.return(H)})}; vcZ=function(){return g.B(function(Q){return g.Y(Q,z$Z("ytGcfConfig"),0)})}; fc=function(){g.h.call(this);this.B=[];this.Z=[];var Q=g.D6("yt.gcf.config.hotUpdateCallbacks");Q?(this.B=[].concat(g.F(Q)),this.Z=Q):(this.Z=[],g.W_("yt.gcf.config.hotUpdateCallbacks",this.Z))}; vU=function(){var Q=this;this.S=!1;this.L=this.D=0;this.j=new fc;this.Po={Jah:function(){Q.S=!0}, YUl:function(){return Q.Z}, prm:function(z){bS(Q,z)}, uU:function(z){Q.uU(z)}, cv$:function(z){Lc(Q,z)}, Cy:function(){return Q.coldHashData}, Ww:function(){return Q.hotHashData}, Wfq:function(){return Q.B}, CFI:function(){return uS()}, u9m:function(){return Si()}, dFl:function(){return g.D6("yt.gcf.config.coldHashData")}, Iav:function(){return g.D6("yt.gcf.config.hotHashData")}, oGn:function(){yu8(Q)}, liI:function(){Q.uU(void 0);Xd(Q);delete vU.instance}, v$$:function(z){Q.L=z}, iZT:function(){return Q.L}}}; q96=function(){if(!vU.instance){var Q=new vU;vU.instance=Q}return vU.instance}; tyv=function(Q){var z;g.B(function(H){if(H.Z==1)return g.jT("start_client_gcf")||g.jT("delete_gcf_config_db")?g.jT("start_client_gcf")?g.Y(H,g.RE(),3):H.bT(2):H.return();H.Z!=2&&((z=H.B)&&g.Td()&&!g.jT("delete_gcf_config_db")?(Q.S=!0,yu8(Q)):(MyL(Q),Cqa(Q)));return g.jT("delete_gcf_config_db")?g.Y(H,vcZ(),0):H.bT(0)})}; yH=function(){var Q;return(Q=Si())!=null?Q:g.T5("RAW_HOT_CONFIG_GROUP")}; Ecp=function(Q){var z,H,f,b,L,u;return g.B(function(X){switch(X.Z){case 1:if(Q.B)return X.return(Si());if(!Q.S)return z=g.j9("getHotConfig IDB not initialized"),zr(z),X.return(Promise.reject(z));H=l0();f=g.T5("TIME_CREATED_MS");if(!H){b=g.j9("getHotConfig token error");zr(b);X.bT(2);break}return g.Y(X,X5a(H),3);case 3:if((L=X.B)&&L.timestamp>f)return bS(Q,L.config),Q.uU(L.hashData),X.return(Si());case 2:Cqa(Q);if(!(H&&Q.B&&Q.hotHashData)){X.bT(4);break}return g.Y(X,LkJ(Q.B,Q.hotHashData,H,f),4);case 4:return Q.B? X.return(Si()):(u=new g.wD("Config not available in ytConfig"),zr(u),X.return(Promise.reject(u)))}})}; nc9=function(Q){var z,H,f,b,L,u;return g.B(function(X){switch(X.Z){case 1:if(Q.Z)return X.return(uS());if(!Q.S)return z=g.j9("getColdConfig IDB not initialized"),zr(z),X.return(Promise.reject(z));H=l0();f=g.T5("TIME_CREATED_MS");if(!H){b=g.j9("getColdConfig");zr(b);X.bT(2);break}return g.Y(X,S9u(H),3);case 3:if((L=X.B)&&L.timestamp>f)return Lc(Q,L.config),p5A(Q,L.configData),Xd(Q,L.hashData),X.return(uS());case 2:MyL(Q);if(!(H&&Q.Z&&Q.coldHashData&&Q.configData)){X.bT(4);break}return g.Y(X,uyk(Q.Z, Q.coldHashData,Q.configData,H,f),4);case 4:return Q.Z?X.return(uS()):(u=new g.wD("Config not available in ytConfig"),zr(u),X.return(Promise.reject(u)))}})}; yu8=function(Q){if(!Q.B||!Q.Z){if(!l0()){var z=g.j9("scheduleGetConfigs");zr(z)}Q.D||(Q.D=g.Wz.pE(function(){return g.B(function(H){switch(H.Z){case 1:return g.$v(H,2),g.Y(H,Ecp(Q),4);case 4:g.Fa(H,3);break;case 2:g.xv(H);case 3:return g.$v(H,5),g.Y(H,nc9(Q),7);case 7:g.Fa(H,6);break;case 5:g.xv(H);case 6:Q.D&&(Q.D=0),g.Gu(H)}})},100))}}; gcn=function(Q,z,H){var f,b,L;return g.B(function(u){switch(u.Z){case 1:if(!g.jT("start_client_gcf")){u.bT(0);break}H&&bS(Q,H);Q.uU(z);f=l0();if(!f){u.bT(3);break}if(H){u.bT(4);break}return g.Y(u,X5a(f),5);case 5:b=u.B,H=(L=b)==null?void 0:L.config;case 4:return g.Y(u,LkJ(H,z,f),3);case 3:if(H)for(var X=H,v=g.n(Q.j.Z),y=v.next();!y.done;y=v.next())y=y.value,y(X);g.Gu(u)}})}; ZTY=function(Q,z,H){var f,b,L,u;return g.B(function(X){if(X.Z==1){if(!g.jT("start_client_gcf"))return X.bT(0);Xd(Q,z);return(f=l0())?H?X.bT(4):g.Y(X,S9u(f),5):X.bT(0)}X.Z!=4&&(b=X.B,H=(L=b)==null?void 0:L.config);if(!H)return X.bT(0);u=H.configData;return g.Y(X,uyk(H,z,u,f),0)})}; G5a=function(){var Q=q96(),z=(0,g.NV)()-Q.L;if(!(Q.L!==0&&z0&&(z.request={internalExperimentFlags:H});jfA(Q,void 0,z);Fk9(void 0,z);xU9(void 0,z);OTu(Q,void 0,z);ocY(void 0,z);g.jT("start_client_gcf")&&JuL(void 0,z);g.T5("DELEGATED_SESSION_ID")&& !g.jT("pageid_as_header_web")&&(z.user={onBehalfOfUser:g.T5("DELEGATED_SESSION_ID")});!g.jT("fill_delegate_context_in_gel_killswitch")&&(Q=g.T5("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(z.user=Object.assign({},z.user,{serializedDelegationContext:Q}));Q=g.T5("INNERTUBE_CONTEXT");var f;if(g.jT("enable_persistent_device_token")&&(Q==null?0:(f=Q.client)==null?0:f.rolloutToken)){var b;z.client.rolloutToken=Q==null?void 0:(b=Q.client)==null?void 0:b.rolloutToken}f=Object;b=f.assign;Q=z.client; H={};for(var L=g.n(Object.entries(bv(g.T5("DEVICE","")))),u=L.next();!u.done;u=L.next()){var X=g.n(u.value);u=X.next().value;X=X.next().value;u==="cbrand"?H.deviceMake=X:u==="cmodel"?H.deviceModel=X:u==="cbr"?H.browserName=X:u==="cbrver"?H.browserVersion=X:u==="cos"?H.osName=X:u==="cosver"?H.osVersion=X:u==="cplatform"&&(H.platform=X)}z.client=b.call(f,Q,H);return z}; jfA=function(Q,z,H){Q=Q.lO;if(Q==="WEB"||Q==="MWEB"||Q===1||Q===2)if(z){H=S4(z,Au,96)||new Au;var f=cw();f=Object.keys(Nw9).indexOf(f);f=f===-1?null:f;f!==null&&Zu(H,3,f);XP(z,Au,96,H)}else H&&(H.client.mainAppWebInfo=(f=H.client.mainAppWebInfo)!=null?f:{},H.client.mainAppWebInfo.webDisplayMode=cw())}; Fk9=function(Q,z){var H=g.D6("yt.embedded_player.embed_url");H&&(Q?(z=S4(Q,P5,7)||new P5,nw(z,4,H),XP(Q,P5,7,z)):z&&(z.thirdParty={embedUrl:H}))}; xU9=function(Q,z){var H;if(g.jT("web_log_memory_total_kbytes")&&((H=g.iL.navigator)==null?0:H.deviceMemory)){var f;H=(f=g.iL.navigator)==null?void 0:f.deviceMemory;Q?hn(Q,95,Zc(H*1E6)):z&&(z.client.memoryTotalKbytes=""+H*1E6)}}; OTu=function(Q,z,H){if(Q.appInstallData)if(z){var f;H=(f=S4(z,If,62))!=null?f:new If;nw(H,6,Q.appInstallData);XP(z,If,62,H)}else H&&(H.client.configInfo=H.client.configInfo||{},H.client.configInfo.appInstallData=Q.appInstallData)}; ocY=function(Q,z){var H=qFk();H&&(Q?Zu(Q,61,IVA[H]):z&&(z.client.connectionType=H));g.jT("web_log_effective_connection_type")&&(H=Cnk())&&(Q?Zu(Q,94,AuZ[H]):z&&(z.client.effectiveConnectionType=H))}; Y9Z=function(Q,z,H){H=H===void 0?{}:H;var f={};g.T5("EOM_VISITOR_DATA")?f={"X-Goog-EOM-Visitor-Id":g.T5("EOM_VISITOR_DATA")}:f={"X-Goog-Visitor-Id":H.visitorData||g.T5("VISITOR_DATA","")};if(z&&z.includes("www.youtube-nocookie.com"))return f;z=H.Bx||g.T5("AUTHORIZATION");z||(Q?z="Bearer "+g.D6("gapi.auth.getToken")().access_token:(Q=LgA().Kf(Cc),g.jT("pageid_as_header_web")||delete Q["X-Goog-PageId"],f=Object.assign({},f,Q)));z&&(f.Authorization=z);return f}; JuL=function(Q,z){var H=G5a();if(H){var f=H.coldConfigData,b=H.coldHashData;H=H.hotHashData;if(Q){var L;z=(L=S4(Q,If,62))!=null?L:new If;f=nw(z,1,f);nw(f,3,b).uU(H);XP(Q,If,62,z)}else z&&(z.client.configInfo=z.client.configInfo||{},f&&(z.client.configInfo.coldConfigData=f),b&&(z.client.configInfo.coldHashData=b),H&&(z.client.configInfo.hotHashData=H))}}; t$=function(Q,z){this.version=Q;this.args=z}; E5=function(Q,z){this.topic=Q;this.Z=z}; nc=function(Q,z){var H=pc();H&&H.publish.call(H,Q.toString(),Q,z)}; BwJ=function(Q){var z=ruk,H=pc();if(!H)return 0;var f=H.subscribe(z.toString(),function(b,L){var u=g.D6("ytPubsub2Pubsub2SkipSubKey");u&&u==f||(u=function(){if(g2[f])try{if(L&&z instanceof E5&&z!=b)try{var X=z.Z,v=L;if(!v.args||!v.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!X.n$){var y=new X;X.n$=y.version}var q=X.n$}catch(M){}if(!q||v.version!=q)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{L=Reflect.construct(X, g.Qi(v.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 "+z.toString()+": "+M.message,M;}Q.call(window,L)}catch(M){g.Rf(M)}},sfv[z.toString()]?g.HH()?g.Wz.pE(u):g.n1(u,0):u())}); g2[f]=!0;Zg[z.toString()]||(Zg[z.toString()]=[]);Zg[z.toString()].push(f);return f}; UUu=function(){var Q=Pqa,z=BwJ(function(H){Q.apply(void 0,arguments);aVp(z)}); return z}; aVp=function(Q){var z=pc();z&&(typeof Q==="number"&&(Q=[Q]),g.qI(Q,function(H){z.unsubscribeByKey(H);delete g2[H]}))}; pc=function(){return g.D6("ytPubsub2Pubsub2Instance")}; GK=function(Q,z,H){H=H===void 0?{sampleRate:.1}:H;Math.random()Kk8||u=w5Z&&(PU++,g.jT("abandon_compression_after_N_slow_zips")?BU===g.FZ("compression_disable_point")&&PU>k5_&&(YC=!1):YC=!1);Twk(z);f.headers||(f.headers={});f.headers["Content-Encoding"]="gzip";f.postBody=Q;f.postParams=void 0;b(H,f)}; e$L=function(Q){var z=z===void 0?!1:z;var H=H===void 0?!1:H;var f=(0,g.NV)(),b={startTime:f,ticks:{},infos:{}},L=z?g.D6("yt.logging.gzipForFetch",!1):!0;if(YC&&L){if(!Q.body)return Q;try{var u=H?Q.body:typeof Q.body==="string"?Q.body:JSON.stringify(Q.body);L=u;if(!H&&typeof u==="string"){var X=DU8(u);if(X!=null&&(X>Kk8||X=w5Z)if(PU++,g.jT("abandon_compression_after_N_slow_zips")||g.jT("abandon_compression_after_N_slow_zips_lr")){z=PU/BU;var y=k5_/g.FZ("compression_disable_point");BU>0&&BU%g.FZ("compression_disable_point")===0&&z>=y&&(YC=!1)}else YC=!1;Twk(b)}}Q.headers=Object.assign({},{"Content-Encoding":"gzip"},Q.headers||{});Q.body=L;return Q}catch(q){return zr(q),Q}}else return Q}; DU8=function(Q){try{return(new Blob(Q.split(""))).size}catch(z){return zr(z),null}}; Twk=function(Q){g.jT("gel_compression_csi_killswitch")||!g.jT("log_gel_compression_latency")&&!g.jT("log_gel_compression_latency_lr")||GK("gel_compression",Q,{sampleRate:.1})}; U5=function(Q){var z=this;this.eg=this.Z=!1;this.potentialEsfErrorCounter=this.B=0;this.handleError=function(){}; this.jC=function(){}; this.now=Date.now;this.WX=!1;this.Po={stT:function(q){z.Iy=q}, eVm:function(){z.I2()}, OI:function(){z.oe()}, Or:function(q){return g.B(function(M){return g.Y(M,z.Or(q),0)})}, xg:function(q,M){return z.xg(q,M)}, a7:function(){z.a7()}}; var H;this.Zc=(H=Q.Zc)!=null?H:100;var f;this.q_=(f=Q.q_)!=null?f:1;var b;this.gL=(b=Q.gL)!=null?b:2592E6;var L;this.Nb=(L=Q.Nb)!=null?L:12E4;var u;this.BD=(u=Q.BD)!=null?u:5E3;var X;this.Iy=(X=Q.Iy)!=null?X:void 0;this.YO=!!Q.YO;var v;this.qa=(v=Q.qa)!=null?v:.1;var y;this.QC=(y=Q.QC)!=null?y:10;Q.handleError&&(this.handleError=Q.handleError);Q.jC&&(this.jC=Q.jC);Q.WX&&(this.WX=Q.WX);Q.eg&&(this.eg=Q.eg);this.Nc=Q.Nc;this.eT=Q.eT;this.XR=Q.XR;this.KA=Q.KA;this.sendFn=Q.sendFn;this.l6=Q.l6;this.Sk= Q.Sk;aW(this)&&(!this.Nc||this.Nc("networkless_logging"))&&lVA(this)}; lVA=function(Q){aW(Q)&&!Q.WX&&(Q.Z=!0,Q.YO&&Math.random()<=Q.qa&&Q.XR.xD(Q.Iy),Q.a7(),Q.KA.yP()&&Q.I2(),Q.KA.listen(Q.l6,Q.I2.bind(Q)),Q.KA.listen(Q.Sk,Q.oe.bind(Q)))}; zz8=function(Q,z){if(!aW(Q))throw Error("IndexedDB is not supported: updateRequestHandlers");var H=z.options.onError?z.options.onError:function(){}; z.options.onError=function(b,L){var u,X,v,y;return g.B(function(q){switch(q.Z){case 1:u=R$J(L);(X=Qna(L))&&Q.Nc&&Q.Nc("web_enable_error_204")&&Q.handleError(Error("Request failed due to compression"),z.url,L);if(!(Q.Nc&&Q.Nc("nwl_consider_error_code")&&u||Q.Nc&&!Q.Nc("nwl_consider_error_code")&&Q.potentialEsfErrorCounter<=Q.QC)){q.bT(2);break}if(!Q.KA.Kj){q.bT(3);break}return g.Y(q,Q.KA.Kj(),3);case 3:if(Q.KA.yP()){q.bT(2);break}H(b,L);if(!Q.Nc||!Q.Nc("nwl_consider_error_code")||((v=z)==null?void 0: v.id)===void 0){q.bT(6);break}return g.Y(q,Q.XR.ZI(z.id,Q.Iy,!1),6);case 6:return q.return();case 2:if(Q.Nc&&Q.Nc("nwl_consider_error_code")&&!u&&Q.potentialEsfErrorCounter>Q.QC)return q.return();Q.potentialEsfErrorCounter++;if(((y=z)==null?void 0:y.id)===void 0){q.bT(8);break}return z.sendCount=400&&Q<=599?!1:!0}; Qna=function(Q){var z;Q=Q==null?void 0:(z=Q.error)==null?void 0:z.code;return!(Q!==400&&Q!==415)}; H1J=function(){if(iS)return iS();var Q={};iS=g.zK("LogsDatabaseV2",{lU:(Q.LogsRequestsStore={Gj:2},Q),shared:!1,upgrade:function(z,H,f){H(2)&&g.A1(z,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});H(3);H(5)&&(f=f.objectStore("LogsRequestsStore"),f.Z.indexNames.contains("newRequest")&&f.Z.deleteIndex("newRequest"),g.aE(f,"newRequestV2",["status","interface","timestamp"]));H(7)&&Yw(z,"sapisid");H(9)&&Yw(z,"SWHealthLog")}, version:9});return iS()}; h$=function(Q){return g.V5(H1J(),Q)}; b1u=function(Q,z){var H,f,b,L;return g.B(function(u){if(u.Z==1)return H={startTime:(0,g.NV)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.Y(u,h$(z),2);if(u.Z!=3)return f=u.B,b=Object.assign({},Q,{options:JSON.parse(JSON.stringify(Q.options)),interface:g.T5("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.Y(u,g.BH(f,"LogsRequestsStore",b),3);L=u.B;H.ticks.tc=(0,g.NV)();fKk(H);return u.return(L)})}; LWv=function(Q,z){var H,f,b,L,u,X,v,y;return g.B(function(q){if(q.Z==1)return H={startTime:(0,g.NV)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.Y(q,h$(z),2);if(q.Z!=3)return f=q.B,b=g.T5("INNERTUBE_CONTEXT_CLIENT_NAME",0),L=[Q,b,0],u=[Q,b,(0,g.NV)()],X=IDBKeyRange.bound(L,u),v="prev",g.jT("use_fifo_for_networkless")&&(v="next"),y=void 0,g.Y(q,g.rG(f,["LogsRequestsStore"],{mode:"readwrite",VE:!0},function(M){return g.h1(M.objectStore("LogsRequestsStore").index("newRequestV2"), {query:X,direction:v},function(C){C.getValue()&&(y=C.getValue(),Q==="NEW"&&(y.status="QUEUED",C.update(y)))})}),3); H.ticks.tc=(0,g.NV)();fKk(H);return q.return(y)})}; uZu=function(Q,z){var H;return g.B(function(f){if(f.Z==1)return g.Y(f,h$(z),2);H=f.B;return f.return(g.rG(H,["LogsRequestsStore"],{mode:"readwrite",VE:!0},function(b){var L=b.objectStore("LogsRequestsStore");return L.get(Q).then(function(u){if(u)return u.status="QUEUED",g.se(L,u).then(function(){return u})})}))})}; SMZ=function(Q,z,H,f){H=H===void 0?!0:H;var b;return g.B(function(L){if(L.Z==1)return g.Y(L,h$(z),2);b=L.B;return L.return(g.rG(b,["LogsRequestsStore"],{mode:"readwrite",VE:!0},function(u){var X=u.objectStore("LogsRequestsStore");return X.get(Q).then(function(v){return v?(v.status="NEW",H&&(v.sendCount+=1),f!==void 0&&(v.options.compress=f),g.se(X,v).then(function(){return v})):g.xw.resolve(void 0)})}))})}; X2c=function(Q,z){var H;return g.B(function(f){if(f.Z==1)return g.Y(f,h$(z),2);H=f.B;return f.return(H.delete("LogsRequestsStore",Q))})}; v7Y=function(Q){var z,H;return g.B(function(f){if(f.Z==1)return g.Y(f,h$(Q),2);z=f.B;H=(0,g.NV)()-2592E6;return g.Y(f,g.rG(z,["LogsRequestsStore"],{mode:"readwrite",VE:!0},function(b){return g.Ue(b.objectStore("LogsRequestsStore"),{},function(L){if(L.getValue().timestamp<=H)return L.delete().then(function(){return g.cH(L)})})}),0)})}; yF_=function(){g.B(function(Q){return g.Y(Q,z$Z("LogsDatabaseV2"),0)})}; fKk=function(Q){g.jT("nwl_csi_killswitch")||GK("networkless_performance",Q,{sampleRate:1})}; MTL=function(Q){return g.V5(qMp(),Q)}; CvL=function(Q){var z,H;g.B(function(f){if(f.Z==1)return g.Y(f,MTL(Q),2);z=f.B;H=(0,g.NV)()-2592E6;return g.Y(f,g.rG(z,["SWHealthLog"],{mode:"readwrite",VE:!0},function(b){return g.Ue(b.objectStore("SWHealthLog"),{},function(L){if(L.getValue().timestamp<=H)return L.delete().then(function(){return g.cH(L)})})}),0)})}; tTA=function(Q){var z;return g.B(function(H){if(H.Z==1)return g.Y(H,MTL(Q),2);z=H.B;return g.Y(H,z.clear("SWHealthLog"),0)})}; g.WU=function(Q,z,H,f,b,L,u){b=b===void 0?"":b;L=L===void 0?!1:L;u=u===void 0?!1:u;if(Q)if(H&&!g.dR())zr(new g.wD("Legacy referrer-scrubbed ping detected")),Q&&E7J(Q,void 0,{scrubReferrer:!0});else if(b)on(Q,z,"POST",b,f);else if(g.T5("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||f||u)on(Q,z,"GET","",f,void 0,L,u);else{b:{try{var X=new Rl8({url:Q});if(X.S?typeof X.L!=="string"||X.L.length===0?0:{version:3,uA:X.L,RA:oe(X.Z,"act=1","ri=1",Q36(X))}:X.j&&{version:4,uA:oe(X.Z,"dct=1","suid="+X.D,""),RA:oe(X.Z, "act=1","ri=1","suid="+X.D)}){var v=P4(g.UE(5,Q));var y=!(!v||!v.endsWith("/aclk")||m_(Q,"ri")!=="1");break b}}catch(q){}y=!1}y?p29(Q)?(z&&z(),H=!0):H=!1:H=!1;H||E7J(Q,z)}}; p29=function(Q,z){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(Q,z===void 0?"":z))return!0}catch(H){}return!1}; E7J=function(Q,z,H){H=H===void 0?{}:H;var f=new Image,b=""+n7Z++;Dg[b]=f;f.onload=f.onerror=function(){z&&Dg[b]&&z();delete Dg[b]}; H.scrubReferrer&&(f.referrerPolicy="no-referrer");f.src=Q}; g7L=function(Q){var z;return((z=document.featurePolicy)==null?0:z.allowedFeatures().includes("attribution-reporting"))?Q+"&nis=6":Q+"&nis=5"}; VH=function(){Kc||(Kc=new b0("yt.offline"));return Kc}; Z19=function(Q){if(g.jT("offline_error_handling")){var z=VH().get("errors",!0)||{};z[Q.message]={name:Q.name,stack:Q.stack};Q.level&&(z[Q.message].level=Q.level);VH().set("errors",z,2592E3,!0)}}; d2=function(){this.Z=new Map;this.B=!1}; mu=function(){if(!d2.instance){var Q=g.D6("yt.networkRequestMonitor.instance")||new d2;g.W_("yt.networkRequestMonitor.instance",Q);d2.instance=Q}return d2.instance}; w2=function(){g.Qe.call(this);var Q=this;this.B=!1;this.Z=AxY();this.Z.listen("networkstatus-online",function(){if(Q.B&&g.jT("offline_error_handling")){var z=VH().get("errors",!0);if(z){for(var H in z)if(z[H]){var f=new g.wD(H,"sent via offline_errors");f.name=z[H].name;f.stack=z[H].stack;f.level=z[H].level;g.Rf(f)}VH().set("errors",{},2592E3,!0)}}})}; Gr6=function(){if(!w2.instance){var Q=g.D6("yt.networkStatusManager.instance")||new w2;g.W_("yt.networkStatusManager.instance",Q);w2.instance=Q}return w2.instance}; g.kC=function(Q){Q=Q===void 0?{}:Q;g.Qe.call(this);var z=this;this.Z=this.D=0;this.B=Gr6();var H=g.D6("yt.networkStatusManager.instance.listen").bind(this.B);H&&(Q.rateLimit?(this.rateLimit=Q.rateLimit,H("networkstatus-online",function(){$nu(z,"publicytnetworkstatus-online")}),H("networkstatus-offline",function(){$nu(z,"publicytnetworkstatus-offline")})):(H("networkstatus-online",function(){z.dispatchEvent("publicytnetworkstatus-online")}),H("networkstatus-offline",function(){z.dispatchEvent("publicytnetworkstatus-offline")})))}; $nu=function(Q,z){Q.rateLimit?Q.Z?(g.Wz.xF(Q.D),Q.D=g.Wz.pE(function(){Q.L!==z&&(Q.dispatchEvent(z),Q.L=z,Q.Z=(0,g.NV)())},Q.rateLimit-((0,g.NV)()-Q.Z))):(Q.dispatchEvent(z),Q.L=z,Q.Z=(0,g.NV)()):Q.dispatchEvent(z)}; ei=function(){var Q=U5.call;TK||(TK=new g.kC({Wr$:!0,oR3:!0}));Q.call(U5,this,{XR:{xD:v7Y,IW:X2c,uQ:LWv,sih:uZu,ZI:SMZ,set:b1u},KA:TK,handleError:function(z,H,f){var b,L=f==null?void 0:(b=f.error)==null?void 0:b.code;if(L===400||L===415){var u;zr(new g.wD(z.message,H,f==null?void 0:(u=f.error)==null?void 0:u.code),void 0,void 0,void 0,!0)}else g.Rf(z)}, jC:zr,sendFn:jnc,now:g.NV,PH:Z19,eT:g.za(),l6:"publicytnetworkstatus-online",Sk:"publicytnetworkstatus-offline",YO:!0,qa:.1,QC:g.FZ("potential_esf_error_limit",10),Nc:g.jT,WX:!(g.Td()&&g.c4(document.location.toString())!=="www.youtube-nocookie.com")});this.L=new g.nW;g.jT("networkless_immediately_drop_all_requests")&&yF_();HT_("LogsDatabaseV2")}; lS=function(){var Q=g.D6("yt.networklessRequestController.instance");Q||(Q=new ei,g.W_("yt.networklessRequestController.instance",Q),g.jT("networkless_logging")&&g.RE().then(function(z){Q.Iy=z;lVA(Q);Q.L.resolve();Q.YO&&Math.random()<=Q.qa&&Q.Iy&&CvL(Q.Iy);g.jT("networkless_immediately_drop_sw_health_store")&&FW_(Q)})); return Q}; FW_=function(Q){var z;g.B(function(H){if(!Q.Iy)throw z=g.j9("clearSWHealthLogsDb"),z;return H.return(tTA(Q.Iy).catch(function(f){Q.handleError(f)}))})}; jnc=function(Q,z,H,f){f=f===void 0?!1:f;z=g.jT("web_fp_via_jspb")?Object.assign({},z):z;g.jT("use_cfr_monitor")&&xn9(Q,z);if(g.jT("use_request_time_ms_header"))z.headers&&v2(Q)&&(z.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.NV)())));else{var b;if((b=z.postParams)==null?0:b.requestTimeMs)z.postParams.requestTimeMs=Math.round((0,g.NV)())}H&&Object.keys(z).length===0?g.WU(Q):z.compress?z.postBody?(typeof z.postBody!=="string"&&(z.postBody=JSON.stringify(z.postBody)),s5(Q,z.postBody, z,g.JF,f)):s5(Q,JSON.stringify(z.postParams),z,Nn,f):g.JF(Q,z)}; RW=function(Q,z){g.jT("use_event_time_ms_header")&&v2(Q)&&(z.headers||(z.headers={}),z.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.NV)())));return z}; xn9=function(Q,z){var H=z.onError?z.onError:function(){}; z.onError=function(b,L){mu().requestComplete(Q,!1);H(b,L)}; var f=z.onSuccess?z.onSuccess:function(){}; z.onSuccess=function(b,L){mu().requestComplete(Q,!0);f(b,L)}}; g.Q7=function(Q){this.config_=null;Q?this.config_=Q:$Up()&&(this.config_=g.qR())}; g.zw=function(Q,z,H,f){function b(y){try{if((y===void 0?0:y)&&f.retry&&!f.networklessOptions.bypassNetworkless)L.method="POST",f.networklessOptions.writeThenSend?lS().writeThenSend(v,L):lS().sendAndWrite(v,L);else if(f.compress){var q=!f.networklessOptions.writeThenSend;if(L.postBody){var M=L.postBody;typeof M!=="string"&&(M=JSON.stringify(L.postBody));s5(v,M,L,g.JF,q)}else s5(v,JSON.stringify(L.postParams),L,Nn,q)}else g.jT("web_all_payloads_via_jspb")?g.JF(v,L):Nn(v,L)}catch(C){if(C.name==="InvalidAccessError")zr(Error("An extension is blocking network request.")); else throw C;}} !g.T5("VISITOR_DATA")&&z!=="visitor_id"&&Math.random()<.01&&zr(new g.wD("Missing VISITOR_DATA when sending innertube request.",z,H,f));if(!Q.isReady())throw Q=new g.wD("innertube xhrclient not ready",z,H,f),g.Rf(Q),Q;var L={headers:f.headers||{},method:"POST",postParams:H,postBody:f.postBody,postBodyFormat:f.postBodyFormat||"JSON",onTimeout:function(){f.onTimeout()}, onFetchTimeout:f.onTimeout,onSuccess:function(y,q){if(f.onSuccess)f.onSuccess(q)}, onFetchSuccess:function(y){if(f.onSuccess)f.onSuccess(y)}, onError:function(y,q){if(f.onError)f.onError(q)}, onFetchError:function(y){if(f.onError)f.onError(y)}, timeout:f.timeout,withCredentials:!0,compress:f.compress};L.headers["Content-Type"]||(L.headers["Content-Type"]="application/json");H="";var u=Q.config_.Ut;u&&(H=u);u=Q.config_.gB||!1;var X=Y9Z(u,H,f);Object.assign(L.headers,X);L.headers.Authorization&&!H&&u&&(L.headers["x-origin"]=window.location.origin);var v=ST(""+H+("/youtubei/"+Q.config_.innertubeApiVersion+"/"+z),{alt:"json"});g.D6("ytNetworklessLoggingInitializationOptions")&&O18.isNwlInitialized?wO_().then(function(y){b(y)}):b(!1)}; g.u8=function(Q,z,H){var f=g.Hb();if(f&&z){var b=f.subscribe(Q,function(){function L(){ft[b]&&z.apply&&typeof z.apply=="function"&&z.apply(H||window,u)} var u=arguments;try{g.b8[Q]?L():g.n1(L,0)}catch(X){g.Rf(X)}},H); ft[b]=!0;Lt[Q]||(Lt[Q]=[]);Lt[Q].push(b);return b}return 0}; o7a=function(Q){var z=g.u8("LOGGED_IN",function(H){Q.apply(void 0,arguments);g.Sv(z)})}; g.Sv=function(Q){var z=g.Hb();z&&(typeof Q==="number"?Q=[Q]:typeof Q==="string"&&(Q=[parseInt(Q,10)]),g.qI(Q,function(H){z.unsubscribeByKey(H);delete ft[H]}))}; g.XN=function(Q,z){var H=g.Hb();return H?H.publish.apply(H,arguments):!1}; NR6=function(Q){var z=g.Hb();if(z)if(z.clear(Q),Q)JF_(Q);else for(var H in Lt)JF_(H)}; g.Hb=function(){return g.iL.ytPubsubPubsubInstance}; JF_=function(Q){Lt[Q]&&(Q=Lt[Q],g.qI(Q,function(z){ft[z]&&delete ft[z]}),Q.length=0)}; g.vb=function(Q,z,H){IKv(Q,z,H===void 0?null:H)}; IKv=function(Q,z,H){H=H===void 0?null:H;var f=AF_(Q),b=document.getElementById(f),L=b&&DN6(b),u=b&&!L;L?z&&z():(z&&(L=g.u8(f,z),z=""+g.Tu(z),YML[z]=L),u||(b=rFn(Q,f,function(){DN6(b)||(WsZ(b),g.XN(f),g.n1(function(){NR6(f)},0))},H)))}; rFn=function(Q,z,H,f){f=f===void 0?null:f;var b=g.Hx("SCRIPT");b.id=z;b.onload=function(){H&&setTimeout(H,0)}; b.onreadystatechange=function(){switch(b.readyState){case "loaded":case "complete":b.onload()}}; f&&b.setAttribute("nonce",f);g.K$(b,g.of(Q));Q=document.getElementsByTagName("head")[0]||document.body;Q.insertBefore(b,Q.firstChild);return b}; AF_=function(Q){var z=document.createElement("a");g.sK(z,Q);Q=z.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+Q4(Q)}; y7=function(Q,z){if(Q===z)Q=!0;else if(Array.isArray(Q)&&Array.isArray(z))Q=g.vY(Q,z,y7);else if(g.wc(Q)&&g.wc(z))a:if(g.J6(Q).length!=g.J6(z).length)Q=!1;else{for(var H in Q)if(!y7(Q[H],z[H])){Q=!1;break a}Q=!0}else Q=!1;return Q}; Ct=function(Q){var z=g.A8.apply(1,arguments);if(!qA(Q)||z.some(function(f){return!qA(f)}))throw Error("Only objects may be merged."); z=g.n(z);for(var H=z.next();!H.done;H=z.next())MA(Q,H.value)}; MA=function(Q,z){for(var H in z)if(qA(z[H])){if(H in Q&&!qA(Q[H]))throw Error("Cannot merge an object into a non-object.");H in Q||(Q[H]={});MA(Q[H],z[H])}else if(tL(z[H])){if(H in Q&&!tL(Q[H]))throw Error("Cannot merge an array into a non-array.");H in Q||(Q[H]=[]);snJ(Q[H],z[H])}else Q[H]=z[H];return Q}; snJ=function(Q,z){z=g.n(z);for(var H=z.next();!H.done;H=z.next())H=H.value,qA(H)?Q.push(MA({},H)):tL(H)?Q.push(snJ([],H)):Q.push(H);return Q}; qA=function(Q){return typeof Q==="object"&&!Array.isArray(Q)}; tL=function(Q){return typeof Q==="object"&&Array.isArray(Q)}; Eb=function(Q){g.h.call(this);this.B=Q}; pt=function(Q){Eb.call(this,!0);this.Z=Q}; nt=function(Q,z){g.h.call(this);var H=this;this.L=[];this.Y=!1;this.B=0;this.S=this.j=this.D=!1;this.Ze=null;var f=(0,g.lL)(Q,z);this.Z=new g.e_(function(){return f(H.Ze)},300); g.W(this,this.Z);this.U=this.N=Infinity}; BRk=function(Q,z){if(!z)return!1;for(var H=0;H-1)throw Error("Deps cycle for: "+z);if(Q.B.has(z))return Q.B.get(z);if(!Q.Z.has(z)){if(f)return;throw Error("No provider for: "+z);}f=Q.Z.get(z);H.push(z);if(f.s1!==void 0)var b=f.s1;else if(f.DOc)b=f[r6]?cF_(Q,f[r6],H):[],b=f.DOc.apply(f,g.F(b));else if(f.If){b=f.If;var L=b[r6]?cF_(Q,b[r6],H):[];b=new (Function.prototype.bind.apply(b,[null].concat(g.F(L))))}else throw Error("Could not resolve providers for: "+z);H.pop();f.tZ5||Q.B.set(z,b); return b}; cF_=function(Q,z,H){return z?z.map(function(f){return f instanceof AL?sb(Q,f.key,H,!0):sb(Q,f,H)}):[]}; Pb=function(){Bb||(Bb=new Una);return Bb}; Ub=function(){var Q,z;return"h5vcc"in aw&&((Q=aw.h5vcc.traceEvent)==null?0:Q.traceBegin)&&((z=aw.h5vcc.traceEvent)==null?0:z.traceEnd)?1:"performance"in aw&&aw.performance.mark&&aw.performance.measure?2:0}; cb=function(Q){var z=Ub();switch(z){case 1:aw.h5vcc.traceEvent.traceBegin("YTLR",Q);break;case 2:aw.performance.mark(Q+"-start");break;case 0:break;default:b5(z,"unknown trace type")}}; i18=function(Q){var z=Ub();switch(z){case 1:aw.h5vcc.traceEvent.traceEnd("YTLR",Q);break;case 2:z=Q+"-start";var H=Q+"-end";aw.performance.mark(H);aw.performance.measure(Q,z,H);break;case 0:break;default:b5(z,"unknown trace type")}}; hz9=function(Q){var z,H;(H=(z=window).onerror)==null||H.call(z,Q.message,"",0,0,Q)}; WWc=function(Q){var z=this;var H=H===void 0?0:H;var f=f===void 0?g.za():f;this.L=H;this.scheduler=f;this.B=new g.nW;this.Z=Q;for(Q={Hk:0};Q.Hk=1E3?b():f>=Q?vT||(vT=ya(function(){b();vT=void 0},0)):L-X>=10&&(L3L(z,H.tier),u.D=L)}; Q4c=function(Q,z){if(Q.endpoint==="log_event"){g.jT("more_accurate_gel_parser")&&Qa().storePayload({isJspb:!1},Q.payload);HT(Q);var H=f2(Q),f=new Map;f.set(H,[Q.payload]);var b=ezA(Q.payload)||"";z&&(SZ=new z);return new g.ng(function(L,u){SZ&&SZ.isReady()?uXu(f,SZ,L,u,{bypassNetworkless:!0},!0,L2(b)):L()})}}; fQa=function(Q,z,H){if(z.endpoint==="log_event"){HT(void 0,z);var f=f2(z,!0),b=new Map;b.set(f,[An(z.payload)]);H&&(SZ=new H);return new g.ng(function(L){SZ&&SZ.isReady()?SPp(b,SZ,L,{bypassNetworkless:!0},!0,L2(Q)):L()})}}; f2=function(Q,z){var H="";if(Q.dangerousLogToVisitorSession)H="visitorOnlyApprovedKey";else if(Q.cttAuthInfo){if(z===void 0?0:z){z=Q.cttAuthInfo.token;H=Q.cttAuthInfo;var f=new mk;H.videoId?f.setVideoId(H.videoId):H.playlistId&&zH(f,2,qX,jX(H.playlistId));MX[z]=f}else z=Q.cttAuthInfo,H={},z.videoId?H.videoId=z.videoId:z.playlistId&&(H.playlistId=z.playlistId),C2[Q.cttAuthInfo.token]=H;H=Q.cttAuthInfo.token}return H}; uU=function(Q,z,H){Q=Q===void 0?{}:Q;z=z===void 0?!1:z;new g.ng(function(f,b){var L=XG(z,H),u=L.L;L.L=!1;tl(L.B);tl(L.Z);L.Z=0;SZ&&SZ.isReady()?H===void 0&&g.jT("enable_web_tiered_gel")?XwY(f,b,Q,z,300,u):XwY(f,b,Q,z,H,u):(L3L(z,H),f())})}; XwY=function(Q,z,H,f,b,L){var u=SZ;H=H===void 0?{}:H;f=f===void 0?!1:f;b=b===void 0?200:b;L=L===void 0?!1:L;var X=new Map,v=new Map,y={isJspb:f,cttAuthInfo:void 0,tier:b},q={isJspb:f,cttAuthInfo:void 0};if(f){z=g.n(Object.keys(bU));for(b=z.next();!b.done;b=z.next())b=b.value,v=g.jT("enable_web_tiered_gel")?Qa().smartExtractMatchingEntries({keys:[y,q],sizeLimit:1E3}):Qa().extractMatchingEntries({isJspb:!0,cttAuthInfo:b}),v.length>0&&X.set(b,v),(g.jT("web_fp_via_jspb_and_json")&&H.writeThenSend||!g.jT("web_fp_via_jspb_and_json"))&& delete bU[b];SPp(X,u,Q,H,!1,L)}else{X=g.n(Object.keys(bU));for(y=X.next();!y.done;y=X.next())y=y.value,q=g.jT("enable_web_tiered_gel")?Qa().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:y,tier:b},{isJspb:!1,cttAuthInfo:y}],sizeLimit:1E3}):Qa().extractMatchingEntries({isJspb:!1,cttAuthInfo:y}),q.length>0&&v.set(y,q),(g.jT("web_fp_via_jspb_and_json")&&H.writeThenSend||!g.jT("web_fp_via_jspb_and_json"))&&delete bU[y];uXu(v,u,Q,z,H,!1,L)}}; L3L=function(Q,z){function H(){uU({writeThenSend:!0},Q,z)} Q=Q===void 0?!1:Q;z=z===void 0?200:z;var f=XG(Q,z),b=f===vQJ||f===yq6?5E3:qPk;g.jT("web_gel_timeout_cap")&&!f.Z&&(b=ya(function(){H()},b),f.Z=b); tl(f.B);b=g.T5("LOGGING_BATCH_TIMEOUT",g.FZ("web_gel_debounce_ms",1E4));g.jT("shorten_initial_gel_batch_timeout")&&EX&&(b=MsJ);b=ya(function(){g.FZ("gel_min_batch_size")>0?Qa().getSequenceCount({cttAuthInfo:void 0,isJspb:Q,tier:z})>=Ch6&&H():H()},b); f.B=b}; uXu=function(Q,z,H,f,b,L,u){b=b===void 0?{}:b;var X=Math.round((0,g.NV)()),v=Q.size,y=tsp(u);Q=g.n(Q);var q=Q.next();for(u={};!q.done;u={Kw:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,MV:void 0,QD:void 0},q=Q.next()){var M=g.n(q.value);q=M.next().value;M=M.next().value;u.batchRequest=g.P3({context:g.MR(z.config_||g.qR())});if(!g.mZ(M)&&!g.jT("throw_err_when_logevent_malformed_killswitch")){f();break}u.batchRequest.events=M;(M=C2[q])&&EQp(u.batchRequest,q,M);delete C2[q];u.dangerousLogToVisitorSession= q==="visitorOnlyApprovedKey";pwJ(u.batchRequest,X,u.dangerousLogToVisitorSession);nQA(b);u.MV=function(C){g.jT("start_client_gcf")&&g.Wz.pE(function(){return g.B(function(t){return g.Y(t,gQA(C),0)})}); v--;v||H()}; u.Kw=0;u.QD=function(C){return function(){C.Kw++;if(b.bypassNetworkless&&C.Kw===1)try{g.zw(z,y,C.batchRequest,p2({writeThenSend:!0},C.dangerousLogToVisitorSession,C.MV,C.QD,L)),EX=!1}catch(t){g.Rf(t),f()}v--;v||H()}}(u); try{g.zw(z,y,u.batchRequest,p2(b,u.dangerousLogToVisitorSession,u.MV,u.QD,L)),EX=!1}catch(C){g.Rf(C),f()}}}; SPp=function(Q,z,H,f,b,L){f=f===void 0?{}:f;var u=Math.round((0,g.NV)()),X={value:Q.size},v=new Map([].concat(g.F(Q)));v=g.n(v);for(var y=v.next();!y.done;y=v.next()){var q=g.n(y.value).next().value,M=Q.get(q);y=new wkn;var C=z.config_||g.qR(),t=new c5,E=new Yc;nw(E,1,C.f0);nw(E,2,C.SL);Zu(E,16,C.TF);nw(E,17,C.innertubeContextClientVersion);if(C.Fk){var G=C.Fk,x=new If;G.coldConfigData&&nw(x,1,G.coldConfigData);G.appInstallData&&nw(x,6,G.appInstallData);G.coldHashData&&nw(x,3,G.coldHashData);G.hotHashData&& x.uU(G.hotHashData);XP(E,If,62,x)}(G=g.iL.devicePixelRatio)&&G!=1&&hn(E,65,LS(G));G=x7();G!==""&&nw(E,54,G);G=OM();if(G.length>0){x=new B5;for(var J=0;J65535&&(Q=1);kc("BATCH_CLIENT_COUNTER",Q);return Q}; EQp=function(Q,z,H){if(H.videoId)var f="VIDEO";else if(H.playlistId)f="PLAYLIST";else return;Q.credentialTransferTokenTargetId=H;Q.context=Q.context||{};Q.context.user=Q.context.user||{};Q.context.user.credentialTransferTokens=[{token:z,scope:f}]}; HT=function(Q,z){if(!g.D6("yt.logging.transport.enableScrapingForTest")){var H=$7("il_payload_scraping");if((H!==void 0?String(H):"")==="enable_il_payload_scraping")Zw=[],g.W_("yt.logging.transport.enableScrapingForTest",!0),g.W_("yt.logging.transport.scrapedPayloadsForTesting",Zw),g.W_("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.W_("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.W_("yt.logging.transport.scrapeClientEvent",!0);else return}H=g.D6("yt.logging.transport.scrapedPayloadsForTesting");var f=g.D6("yt.logging.transport.payloadToScrape");z&&(z=z.payload,(z=g.D6("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(z)())&&H.push(z));z=g.D6("yt.logging.transport.scrapeClientEvent");if(f&&f.length>=1)for(var b=0;b0&&iFY(Q,z,L)}else iFY(Q,z)}; iFY=function(Q,z,H){Q=hMk(Q);z=z?g.Kg(z):"";H=H||5;fF()&&g.UM(Q,z,H)}; hMk=function(Q){for(var z=g.n(W3_),H=z.next();!H.done;H=z.next())Q=we(Q,H.value);return"ST-"+Q4(Q).toString(36)}; D0c=function(Q){if(Q.name==="JavaException")return!0;Q=Q.stack;return Q.includes("chrome://")||Q.includes("chrome-extension://")||Q.includes("moz-extension://")}; K3Y=function(){this.Qe=[];this.bU=[]}; Al=function(){if(!Ix){var Q=Ix=new K3Y;Q.bU.length=0;Q.Qe.length=0;VsJ(Q,d0u)}return Ix}; VsJ=function(Q,z){z.bU&&Q.bU.push.apply(Q.bU,z.bU);z.Qe&&Q.Qe.push.apply(Q.Qe,z.Qe)}; m0p=function(Q){function z(){return Q.charCodeAt(f++)} var H=Q.length,f=0;do{var b=YG(z);if(b===Infinity)break;var L=b>>3;switch(b&7){case 0:b=YG(z);if(L===2)return b;break;case 1:if(L===2)return;f+=8;break;case 2:b=YG(z);if(L===2)return Q.substr(f,b);f+=b;break;case 5:if(L===2)return;f+=4;break;default:return}}while(f500));f++);f=b}else if(typeof Q==="object")for(b in Q){if(Q[b]){var L=b;var u=Q[b],X=z,v=H;L=typeof u!=="string"||L!=="clickTrackingParams"&&L!=="trackingParams"?0:(u=m0p(atob(u.replace(/-/g,"+").replace(/_/g,"/"))))?rl(L+".ve",u,X,v):0;f+=L;f+=rl(b,Q[b],z,H);if(f>500)break}}else H[z]=sX(Q),f+=H[z].length;else H[z]=sX(Q),f+=H[z].length;return f}; rl=function(Q,z,H,f){H+="."+Q;Q=sX(z);f[H]=Q;return H.length+Q.length}; sX=function(Q){try{return(typeof Q==="string"?Q:String(JSON.stringify(Q))).substr(0,500)}catch(z){return"unable to serialize "+typeof Q+" ("+z.message+")"}}; vH=function(Q){g.BT(Q)}; g.PT=function(Q){g.BT(Q,"WARNING")}; g.BT=function(Q,z){var H=H===void 0?{}:H;H.name=g.T5("INNERTUBE_CONTEXT_CLIENT_NAME",1);H.version=g.T5("INNERTUBE_CONTEXT_CLIENT_VERSION");z=z===void 0?"ERROR":z;var f=!1;z=z===void 0?"ERROR":z;f=f===void 0?!1:f;if(Q){Q.hasOwnProperty("level")&&Q.level&&(z=Q.level);if(g.jT("console_log_js_exceptions")){var b=[];b.push("Name: "+Q.name);b.push("Message: "+Q.message);Q.hasOwnProperty("params")&&b.push("Error Params: "+JSON.stringify(Q.params));Q.hasOwnProperty("args")&&b.push("Error args: "+JSON.stringify(Q.args)); b.push("File name: "+Q.fileName);b.push("Stacktrace: "+Q.stack);window.console.log(b.join("\n"),Q)}if(!(kdY>=5)){b=[];for(var L=g.n(TD6),u=L.next();!u.done;u=L.next()){u=u.value;try{u()&&b.push(u())}catch(G){}}b=[].concat(g.F(eMc),g.F(b));var X=otn(Q);L=X.message||"Unknown Error";u=X.name||"UnknownError";var v=X.stack||Q.B||"Not available";if(v.startsWith(u+": "+L)){var y=v.split("\n");y.shift();v=y.join("\n")}y=X.lineNumber||"Not available";X=X.fileName||"Not available";var q=0;if(Q.hasOwnProperty("args")&& Q.args&&Q.args.length)for(var M=0;M=500);M++);else if(Q.hasOwnProperty("params")&&Q.params){var C=Q.params;if(typeof Q.params==="object")for(M in C){if(C[M]){var t="params."+M,E=sX(C[M]);H[t]=E;q+=t.length+E.length;if(q>500)break}}else H.params=sX(C)}if(b.length)for(M=0;M=500);M++);navigator.vendor&&!H.hasOwnProperty("vendor")&&(H["device.vendor"]=navigator.vendor);H={message:L,name:u,lineNumber:y, fileName:X,stack:v,params:H,sampleWeight:1};M=Number(Q.columnNumber);isNaN(M)||(H.lineNumber=H.lineNumber+":"+M);if(Q.level==="IGNORED")Q=0;else a:{Q=Al();M=g.n(Q.bU);for(b=M.next();!b.done;b=M.next())if(b=b.value,H.message&&H.message.match(b.DL)){Q=b.weight;break a}Q=g.n(Q.Qe);for(M=Q.next();!M.done;M=Q.next())if(M=M.value,M.callback(H)){Q=M.weight;break a}Q=1}H.sampleWeight=Q;Q=g.n(lQa);for(M=Q.next();!M.done;M=Q.next())if(M=M.value,M.mx[H.name])for(L=g.n(M.mx[H.name]),b=L.next();!b.done;b=L.next())if(u= b.value,b=H.message.match(u.Xp)){H.params["params.error.original"]=b[0];L=u.groups;u={};for(y=0;y1E3&&g.PT(new g.wD("IL Attach cache exceeded limit"))}X= kG(H,z);K2.has(X)?T6(H,z):dl.set(X,!0)}}f=f.filter(function(q){q.csn!==z?(q.csn=z,q=!0):q=!1;return q}); H={csn:z,parentVe:H.getAsJson(),childVes:g.J5(f,function(q){return q.getAsJson()})}; z==="UNDEFINED_CSN"?eZ("visualElementAttached",L,H):Q?$G("visualElementAttached",H,Q,L):g.y5("visualElementAttached",H,L)}; C0L=function(Q,z,H,f,b){lU(H,z);f=Dw({cttAuthInfo:Jl(z)||void 0},z);H={csn:z,ve:H.getAsJson(),eventType:1};b&&(H.clientData=b);z==="UNDEFINED_CSN"?eZ("visualElementShown",f,H):Q?$G("visualElementShown",H,Q,f):g.y5("visualElementShown",H,f)}; t9a=function(Q,z,H,f){var b=(f=f===void 0?!1:f)?16:8;f=Dw({cttAuthInfo:Jl(z)||void 0,endOfSequence:f},z);H={csn:z,ve:H.getAsJson(),eventType:b};z==="UNDEFINED_CSN"?eZ("visualElementHidden",f,H):Q?$G("visualElementHidden",H,Q,f):g.y5("visualElementHidden",H,f)}; Ewu=function(Q,z,H,f,b){Rx(Q,z,H,void 0,f,b)}; Rx=function(Q,z,H,f,b){lU(H,z);f=f||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var L=Dw({cttAuthInfo:Jl(z)||void 0},z);H={csn:z,ve:H.getAsJson(),gestureType:f};b&&(H.clientData=b);z==="UNDEFINED_CSN"?eZ("visualElementGestured",L,H):Q?$G("visualElementGestured",H,Q,L):g.y5("visualElementGestured",H,L)}; pHc=function(){var Q=FN(16);for(var z=[],H=0;H0&&H.push(g.Hx("BR"));H.push(g.fm(L))}):H.push(g.fm(f))}return H}; Mt=function(Q,z,H,f){if(H==="child"){g.Lm(z);var b;f===void 0?b=void 0:b=!Array.isArray(f)||f&&typeof f.G==="string"?[f]:f;H=gwY(Q,b);H=g.n(H);for(Q=H.next();!Q.done;Q=H.next())z.appendChild(Q.value)}else H==="style"?g.q2(z,"cssText",f?f:""):f===null||f===void 0?z.removeAttribute(H):(Q=f.toString(),H==="href"&&(Q=g.NO(g.Yg(Q))),z.setAttribute(H,Q))}; g.m=function(Q){g.yR.call(this,Q);this.LH=!0;this.S=!1;this.listeners=[]}; g.Ca=function(Q){g.m.call(this,Q);this.En=new g.Xp;g.W(this,this.En)}; tB=function(Q,z,H,f,b,L,u){u=u===void 0?null:u;g.Ca.call(this,z);this.api=Q;this.macros={};this.componentType=H;this.Y=this.N=null;this.gh=u;this.layoutId=f;this.interactionLoggingClientData=b;this.dh=L;this.uT=null;this.Bg=new pt(this.element);g.W(this,this.Bg);this.rT=this.X(this.element,"click",this.onClick);this.De=[];this.L3=new nt(this.onClick,this);g.W(this,this.L3);this.ZJ=!1;this.f3=this.Ze=null}; Ec=function(Q,z){Q=Q===void 0?null:Q;z=z===void 0?null:z;if(Q==null)return g.PT(Error("Got null or undefined adText object")),"";var H=g.R$(Q.text);if(!Q.isTemplated)return H;if(z==null)return g.PT(Error("Missing required parameters for a templated message")),H;Q=g.n(Object.entries(z));for(z=Q.next();!z.done;z=Q.next()){var f=g.n(z.value);z=f.next().value;f=f.next().value;H=H.replace("{"+z+"}",f)}return H}; ZfA=function(Q){Q=Q===void 0?null:Q;return Q!=null&&(Q=Q.thumbnail,Q!=null&&Q.thumbnails!=null&&Q.thumbnails.length!=0&&Q.thumbnails[0].url!=null)?g.R$(Q.thumbnails[0].url):""}; GaY=function(Q){Q=Q===void 0?null:Q;return Q!=null&&(Q=Q.thumbnail,Q!=null&&Q.thumbnails!=null&&Q.thumbnails.length!=0&&Q.thumbnails[0].width!=null&&Q.thumbnails[0].height!=null)?new g.pC(Q.thumbnails[0].width||0,Q.thumbnails[0].height||0):new g.pC(0,0)}; g.pa=function(Q){if(Q.simpleText)return Q.simpleText;if(Q.runs){var z=[];Q=g.n(Q.runs);for(var H=Q.next();!H.done;H=Q.next())H=H.value,H.text&&z.push(H.text);return z.join("")}return""}; g.na=function(Q){if(Q.simpleText)return Q=document.createTextNode(Q.simpleText),Q;var z=[];if(Q.runs)for(var H=0;H1){for(var z=[Q[0]],H=1;H0&&(this.Z=new g.e_(this.ql,z,this),g.W(this,this.Z));this.S=new g.e_(this.ql,H,this);g.W(this,this.S);this.N=U2k(this.B,b,1,f);g.W(this,this.N);this.Y=U2k(this.B,0,f,1);g.W(this,this.Y);this.D=new N0;g.W(this,this.D)}; XS=function(Q,z,H){this.B=Q;this.isAsync=z;this.Z=H}; bcZ=function(Q){switch(Q){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:b5(Q,"unknown result type")}}; Lu6=function(Q,z){var H=1;Q.isTrusted===!1&&(H=0);kc("ISDSTAT",H);v6(H,"i.s_",{triggerContext:"sk",metadata:z});return H}; ud_=function(Q,z){var H=[];z?z.isTrusted===!0?H.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):z.isTrusted===!1?H.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):H.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):H.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");v6(0,"a.s_",{metadata:Q,states:H});kc("ASDSTAT",0)}; v6=function(Q,z,H){z=S5v[z];var f,b,L={detected:Q===0,source:""+z.B+((f=H.triggerContext)!=null?f:"")+((b=H.p7)!=null?b:""),detectionStates:H.states,durationMs:H.E$};H.metadata&&(L.contentCpn=H.metadata.contentCpn,L.adCpn=H.metadata.adCpn);g.y5("biscottiBasedDetection",L);z.Z!==void 0&&(H=Number(g.T5("CATSTAT",0)),z.Z!==void 0?(z=z.Z,Q=bcZ(Q),Q=H&~(3<0}; pp=function(Q,z,H,f,b,L){Rv.call(this,Q,{G:"div",J:"ytp-ad-skip-button-slot"},"skip-button",z,H,f,b);var u=this;this.wh=null;this.yl=!1;this.iT=L;this.j=this.api.C().experiments.Nc("enable_modern_skip_button_on_web");this.C3=!1;this.L=new g.Ca({G:"span",lT:["ytp-ad-skip-button-container"]});this.j&&this.L.element.classList.add("ytp-ad-skip-button-container-detached");this.api.V("enable_ad_pod_index_autohide")&&this.L.element.classList.add("ytp-ad-skip-button-container--clean-player");g.W(this,this.L); this.L.Gv(this.element);this.B=this.D=null;this.WI=new g.H6(this.L,500,!1,100,function(){return u.hide()}); g.W(this,this.WI);this.jm=new Sh(this.L.element,15E3,5E3,.5,.5,this.j);g.W(this,this.jm);this.hide()}; vCZ=function(Q){Q=Q.wh&&Q.wh.adRendererCommands;return(Q&&Q.clickCommand&&g.K(Q.clickCommand,g.np)&&g.K(Q.clickCommand,g.np).commands||[]).some(function(z){return z.adLifecycleCommand?XUZ(z.adLifecycleCommand):!1})}; XUZ=function(Q){return Q.action==="END_LINEAR_AD"||Q.action==="END_LINEAR_AD_PLACEMENT"}; gU=function(Q,z,H,f,b,L){Rv.call(this,Q,{G:"div",J:"ytp-ad-skip-ad-slot"},"skip-ad",z,H,f,b);this.wh=L;this.D=!1;this.j=0;this.L=this.B=null;this.hide()}; y$9=function(Q,z){Q.D||(Q.D=!0,Q.B&&(z?Q.B.wh.hide():Q.B.hide()),z?(Q=Q.L,Q.WI.show(),Q.show()):Q.L.show())}; Zh=function(Q,z,H,f){sc.call(this,Q,z,H,f,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; GS=function(Q,z,H,f,b,L,u){L=L===void 0?!1:L;u=u===void 0?!1:u;tB.call(this,Q,{G:"span",J:"ytp-ad-simple-ad-badge"},"simple-ad-badge",z,H,f);this.L=b;this.Z=this.Mc("ytp-ad-simple-ad-badge");(this.B=L)&&this.Z.classList.add("ytp-ad-simple-ad-badge--clean-player");u&&this.Z.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}; $U=function(Q,z,H,f,b){b=b===void 0?!1:b;SE.call(this,"player-overlay",Q,{},z,f);this.videoAdDurationSeconds=H;this.interactionLoggingClientData=f;this.EH=b}; jh=function(Q,z){g.Xp.call(this);this.api=Q;this.durationMs=z;this.Z=null;this.Hc=new N0(this);g.W(this,this.Hc);this.B=q56;this.Hc.X(this.api,"presentingplayerstatechange",this.w6);this.Z=this.Hc.X(this.api,"onAdPlaybackProgress",this.A7)}; FS=function(Q){g.Xp.call(this);this.Z=!1;this.rS=0;this.Hc=new N0(this);g.W(this,this.Hc);this.durationMs=Q;this.hM=new g.xr(100);g.W(this,this.hM);this.Hc.X(this.hM,"tick",this.A7);this.B={seekableStart:0,seekableEnd:Q/1E3,current:0};this.start()}; g.xU=function(Q,z){var H=Math.abs(Math.floor(Q)),f=Math.floor(H/86400),b=Math.floor(H%86400/3600),L=Math.floor(H%3600/60);H=Math.floor(H%60);if(z){z="";f>0&&(z+=" "+f+" Days");if(f>0||b>0)z+=" "+b+" Hours";z+=" "+L+" Minutes";z+=" "+H+" Seconds";f=z.trim()}else{z="";f>0&&(z+=f+":",b<10&&(z+="0"));if(f>0||b>0)z+=b+":",L<10&&(z+="0");z+=L+":";H<10&&(z+="0");f=z+H}return Q>=0?f:"-"+f}; g.Ox=function(Q){return(!("button"in Q)||typeof Q.button!=="number"||Q.button===0)&&!("shiftKey"in Q&&Q.shiftKey)&&!("altKey"in Q&&Q.altKey)&&!("metaKey"in Q&&Q.metaKey)&&!("ctrlKey"in Q&&Q.ctrlKey)}; oQ=function(Q,z,H,f,b,L,u){Rv.call(this,Q,{G:"span",J:u?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",z,H,f,b);this.videoAdDurationSeconds=L;this.B=null;this.api.V("clean_player_style_fix_on_web")&&this.element.classList.add("ytp-ad-duration-remaining--clean-player-with-light-shadow");u&&this.api.C().B&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),this.api.V("clean_player_style_fix_on_web")&&(this.element.classList.add("ytp-ad-duration-remaining--mweb-light"), wG&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios")));this.hide()}; JT=function(Q,z,H,f){eE.call(this,Q,z,H,f,"ytp-video-ad-top-bar-title","ad-title");Q.V("enable_ad_pod_index_autohide")&&this.element.classList.add("ytp-video-ad-top-bar-title--clean-player")}; NZ=function(Q){this.content=Q.content;if(Q.commandRuns){Q=g.n(Q.commandRuns);for(var z=Q.next();!z.done;z=Q.next())z=z.value,this.loggingDirectives=g.K(z,Mik),z.onTap&&(this.interaction={onTap:z.onTap})}}; IQ=function(Q,z,H,f){tB.call(this,Q,{G:"div",J:"ad-simple-attributed-string"},"ad-simple-attributed-string",z,H,f);this.hide()}; AT=function(Q,z,H,f,b){tB.call(this,Q,{G:"span",J:b?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",z,H,f);this.B=b;this.adBadgeText=new IQ(this.api,this.layoutId,this.interactionLoggingClientData,this.dh);this.adBadgeText.Gv(this.element);g.W(this,this.adBadgeText);b?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),this.api.V("clean_player_style_fix_on_web")&&(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player-with-light-shadow"),wG&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios"))): this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; YU=function(Q,z,H,f,b){tB.call(this,Q,{G:"span",J:"ytp-ad-pod-index"},"ad-pod-index",z,H,f);this.B=b;this.api.C().B&&(this.element.classList.add("ytp-ad-pod-index--mweb"),this.api.V("clean_player_style_fix_on_web")&&(this.element.classList.add("ytp-ad-pod-index--mweb-light"),wG&&this.element.classList.add("ytp-ad-pod-index--mweb-ios")));this.hide()}; rU=function(Q,z,H,f){tB.call(this,Q,{G:"div",J:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",z,H,f);this.hide()}; sx=function(Q,z){this.B=Q;this.Z=z}; B6=function(Q,z,H){if(!Q.getLength())return H!=null?H:Infinity;Q=(z-Q.B)/Q.getLength();return g.v3(Q,0,1)}; P6=function(Q,z,H,f){f=f===void 0?!1:f;g.Ca.call(this,{G:"div",J:"ytp-ad-persistent-progress-bar-container",W:[{G:"div",J:"ytp-ad-persistent-progress-bar"}]});this.api=Q;this.B=z;this.L=H;f&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.W(this,this.B);this.progressBar=this.Mc("ytp-ad-persistent-progress-bar");this.Z=-1;this.X(Q,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; aQ=function(Q,z,H,f,b,L){tB.call(this,Q,{G:"div",J:"ytp-ad-player-overlay",W:[{G:"div",J:"ytp-ad-player-overlay-flyout-cta"},{G:"div",J:"ytp-ad-player-overlay-instream-info"},{G:"div",J:"ytp-ad-player-overlay-skip-or-preview"},{G:"div",J:"ytp-ad-player-overlay-progress-bar"},{G:"div",J:"ytp-ad-player-overlay-instream-user-sentiment"},{G:"div",J:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",z,H,f);this.U=L;this.j=this.Mc("ytp-ad-player-overlay-flyout-cta");this.j.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.Z=this.Mc("ytp-ad-player-overlay-instream-info");this.D=null;CS9(this)&&(Q=zl("div"),g.SK(Q,"ytp-ad-player-overlay-top-bar-gradients"),this.api.V("disable_ad_preview_for_instream_ads")&&g.SK(Q,"ytp-ad-player-overlay-top-bar-gradients--clean-player"),z=this.Z,z.parentNode&&z.parentNode.insertBefore(Q,z),(z=this.api.getVideoData(2))&&z.isListed&&z.title&&(H=new JT(this.api,this.layoutId,this.interactionLoggingClientData,this.dh),H.Gv(Q),H.init(uI("ad-title"),{text:z.title},this.macros),g.W(this, H)),this.D=Q);this.L=null;this.mq=this.Mc("ytp-ad-player-overlay-skip-or-preview");this.jm=this.Mc("ytp-ad-player-overlay-progress-bar");this.yl=this.Mc("ytp-ad-player-overlay-instream-user-sentiment");this.wh=this.Mc("ytp-ad-player-overlay-ad-disclosure-banner");this.B=b;g.W(this,this.B);this.hide()}; CS9=function(Q){Q=Q.api.C();return g.Ux(Q)&&Q.B}; c6=function(Q,z,H){var f={};z&&(f.v=z);H&&(f.list=H);Q={name:Q,locale:void 0,feature:void 0};for(var b in f)Q[b]=f[b];f=g.Ve("/sharing_services",Q);g.WU(f)}; g.iA=function(Q){Q&=16777215;var z=[(Q&16711680)>>16,(Q&65280)>>8,Q&255];Q=z[0];var H=z[1];z=z[2];Q=Number(Q);H=Number(H);z=Number(z);if(Q!=(Q&255)||H!=(H&255)||z!=(z&255))throw Error('"('+Q+","+H+","+z+'") is not a valid RGB color');H=Q<<16|H<<8|z;return Q<16?"#"+(16777216|H).toString(16).slice(1):"#"+H.toString(16)}; hT=function(Q){this.Z=new AD(Q)}; tiZ=function(){var Q=!1;try{Q=!!window.sessionStorage.getItem("session_logininfo")}catch(z){Q=!0}return(g.T5("INNERTUBE_CLIENT_NAME")==="WEB"||g.T5("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&Q}; W6=function(Q){if(g.T5("LOGGED_IN",!0)&&tiZ()){var z=g.T5("VALID_SESSION_TEMPDATA_DOMAINS",[]);var H=g.c4(window.location.href);H&&z.push(H);H=g.c4(Q);g.kO(z,H)||!H&&GY(Q,"/")?(z=id(Q),(z=G26(z))?(z=hMk(z),z=(z=g.c2(z)||null)?bv(z):{}):z=null):z=null;z==null&&(z={});H=z;var f=void 0;tiZ()?(f||(f=g.T5("LOGIN_INFO")),f?(H.session_logininfo=f,H=!0):H=!1):H=!1;H&&NX(Q,z)}}; g.ECL=function(Q){var z=z===void 0?{}:z;var H=H===void 0?"":H;var f=f===void 0?window:f;Q=g.Ve(Q,z);W6(Q);H=g.Yg(Q+H);f=f.location;H=r$(H);H!==void 0&&(f.href=H)}; g.Dh=function(Q,z,H){z=z===void 0?{}:z;H=H===void 0?!1:H;var f=g.T5("EVENT_ID");f&&(z.ei||(z.ei=f));z&&NX(Q,z);H||(W6(Q),g.ECL(Q))}; g.Kp=function(Q,z,H,f,b){b=b===void 0?!1:b;H&&NX(Q,H);H=g.Yg(Q);var L=g.NO(H);Q!=L&&zr(Error("Unsafe window.open URL: "+Q));Q=L;z=z||Q4(Q).toString(36);try{if(b){b=Q;b=g7L(b);W6(b);g.UK(window,b,z,"attributionsrc");return}}catch(u){g.Rf(u)}W6(Q);g.UK(window,H,z,f)}; pU9=function(Q){V_=Q}; nCA=function(Q){dU=Q}; gC8=function(Q){m5=Q}; GKn=function(){Zcc=m5=dU=V_=null}; jWZ=function(){var Q=Q===void 0?window.location.href:Q;if(g.jT("kevlar_disable_theme_param"))return null;var z=P4(g.UE(5,Q));if(g.jT("enable_dark_theme_only_on_shorts")&&z!=null&&z.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var H=g.uv(Q).theme;return $R8.get(H)||null}catch(f){}return null}; wU=function(){this.Z={};if(this.B=xNn()){var Q=g.c2("CONSISTENCY");Q&&Fup(this,{encryptedTokenJarContents:Q})}}; Fup=function(Q,z){if(z.encryptedTokenJarContents&&(Q.Z[z.encryptedTokenJarContents]=z,typeof z.expirationSeconds==="string")){var H=Number(z.expirationSeconds);setTimeout(function(){delete Q.Z[z.encryptedTokenJarContents]},H*1E3); Q.B&&g.UM("CONSISTENCY",z.encryptedTokenJarContents,H,void 0,!0)}}; TS=function(){this.B=-1;var Q=g.T5("LOCATION_PLAYABILITY_TOKEN");g.T5("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=kU(this))&&(Q=this.localStorage.get("yt-location-playability-token"));Q&&(this.locationPlayabilityToken=Q,this.Z=void 0)}; kU=function(Q){return Q.localStorage===void 0?new b0("yt-client-location"):Q.localStorage}; g.eh=function(Q,z,H){z=z===void 0?!1:z;H=H===void 0?!1:H;var f=g.T5("INNERTUBE_CONTEXT");if(!f)return g.BT(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};f=g.P3(f);g.jT("web_no_tracking_params_in_shell_killswitch")||delete f.clickTracking;f.client||(f.client={});var b=f.client;b.clientName==="MWEB"&&b.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(b.clientFormFactor=g.T5("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");b.screenWidthPoints=window.innerWidth;b.screenHeightPoints= window.innerHeight;b.screenPixelDensity=Math.round(window.devicePixelRatio||1);b.screenDensityFloat=window.devicePixelRatio||1;b.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var L=L===void 0?!1:L;g.Ww();var u="USER_INTERFACE_THEME_LIGHT";g.DQ(0,165)?u="USER_INTERFACE_THEME_DARK":g.DQ(0,174)?u="USER_INTERFACE_THEME_LIGHT":!g.jT("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& (u="USER_INTERFACE_THEME_DARK");L=L?u:jWZ()||u;b.userInterfaceTheme=L;if(!z){if(L=qFk())b.connectionType=L;g.jT("web_log_effective_connection_type")&&(L=Cnk())&&(f.client.effectiveConnectionType=L)}var X;if(g.jT("web_log_memory_total_kbytes")&&((X=g.iL.navigator)==null?0:X.deviceMemory)){var v;X=(v=g.iL.navigator)==null?void 0:v.deviceMemory;f.client.memoryTotalKbytes=""+X*1E6}g.jT("web_gcf_hashes_innertube")&&(L=G5a())&&(v=L.coldConfigData,X=L.coldHashData,L=L.hotHashData,f.client.configInfo=f.client.configInfo|| {},v&&(f.client.configInfo.coldConfigData=v),X&&(f.client.configInfo.coldHashData=X),L&&(f.client.configInfo.hotHashData=L));v=g.uv(g.iL.location.href);!g.jT("web_populate_internal_geo_killswitch")&&v.internalcountrycode&&(b.internalGeo=v.internalcountrycode);b.clientName==="MWEB"||b.clientName==="WEB"?(b.mainAppWebInfo={graftUrl:g.iL.location.href},g.jT("kevlar_woffle")&&bZA.instance&&(v=bZA.instance,b.mainAppWebInfo.pwaInstallabilityStatus=!v.Z&&v.B?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": "PWA_INSTALLABILITY_STATUS_UNKNOWN"),b.mainAppWebInfo.webDisplayMode=cw(),b.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):b.clientName==="TVHTML5"&&(!g.jT("web_lr_app_quality_killswitch")&&(v=g.T5("LIVING_ROOM_APP_QUALITY"))&&(b.tvAppInfo=Object.assign(b.tvAppInfo||{},{appQuality:v})),v=g.T5("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(b.tvAppInfo=Object.assign(b.tvAppInfo||{},{certificationScope:v}));if(!g.jT("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== "undefined")try{var y=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(U){}y=void 0}y&&(b.timeZone=y)}(y=x7())?b.experimentsToken=y:delete b.experimentsToken;y=OM();wU.instance||(wU.instance=new wU);f.request=Object.assign({},f.request,{internalExperimentFlags:y,consistencyTokenJars:g.oI(wU.instance.Z)});!g.jT("web_prequest_context_killswitch")&&(y=g.T5("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(f.request.externalPrequestContext=y);b=g.Ww();y=g.DQ(0,58);b=b.get("gsml","");f.user=Object.assign({}, f.user);y&&(f.user.enableSafetyMode=y);b&&(f.user.lockedSafetyMode=!0);g.jT("warm_op_csn_cleanup")?H&&(z=g.ox())&&(f.clientScreenNonce=z):!z&&(z=g.ox())&&(f.clientScreenNonce=z);Q&&(f.clickTracking={clickTrackingParams:Q});if(Q=g.D6("yt.mdx.remote.remoteClient_"))f.remoteClient=Q;TS.getInstance().setLocationOnInnerTubeContext(f);try{var q=tF(),M=q.bid;delete q.bid;f.adSignalsInfo={params:[],bid:M};for(var C=g.n(Object.entries(q)),t=C.next();!t.done;t=C.next()){var E=g.n(t.value),G=E.next().value, x=E.next().value;q=G;M=x;Q=void 0;(Q=f.adSignalsInfo.params)==null||Q.push({key:q,value:""+M})}var J,I;if(((J=f.client)==null?void 0:J.clientName)==="TVHTML5"||((I=f.client)==null?void 0:I.clientName)==="TVHTML5_UNPLUGGED"){var r=g.T5("INNERTUBE_CONTEXT");r.adSignalsInfo&&(f.adSignalsInfo.advertisingId=r.adSignalsInfo.advertisingId,f.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",f.adSignalsInfo.limitAdTracking=r.adSignalsInfo.limitAdTracking)}}catch(U){g.BT(U)}return f}; oCv=function(Q,z){if(!Q)return!1;var H,f=(H=g.K(Q,xRZ))==null?void 0:H.signal;if(f&&z.Jd)return!!z.Jd[f];var b;if((H=(b=g.K(Q,Ocu))==null?void 0:b.request)&&z.jV)return!!z.jV[H];for(var L in Q)if(z.MU[L])return!0;return!1}; J$Y=function(Q){var z={"Content-Type":"application/json"};g.T5("EOM_VISITOR_DATA")?z["X-Goog-EOM-Visitor-Id"]=g.T5("EOM_VISITOR_DATA"):g.T5("VISITOR_DATA")&&(z["X-Goog-Visitor-Id"]=g.T5("VISITOR_DATA"));z["X-Youtube-Bootstrap-Logged-In"]=g.T5("LOGGED_IN",!1);g.T5("DEBUG_SETTINGS_METADATA")&&(z["X-Debug-Settings-Metadata"]=g.T5("DEBUG_SETTINGS_METADATA"));Q!=="cors"&&((Q=g.T5("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(z["X-Youtube-Client-Name"]=Q),(Q=g.T5("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(z["X-Youtube-Client-Version"]= Q),(Q=g.T5("CHROME_CONNECTED_HEADER"))&&(z["X-Youtube-Chrome-Connected"]=Q),(Q=g.T5("DOMAIN_ADMIN_STATE"))&&(z["X-Youtube-Domain-Admin-State"]=Q),g.T5("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(Q=g.T5("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(z["X-YouTube-Lava-Device-Context"]=Q));return z}; N2Z=function(){this.Z={}}; lA=function(){this.mappings=new N2Z}; RQ=function(Q){return function(){return new Q}}; A$k=function(Q){var z=z===void 0?"UNKNOWN_INTERFACE":z;if(Q.length===1)return Q[0];var H=Ig6[z];if(H){H=new RegExp(H);for(var f=g.n(Q),b=f.next();!b.done;b=f.next())if(b=b.value,H.exec(b))return b}var L=[];Object.entries(Ig6).forEach(function(u){var X=g.n(u);u=X.next().value;X=X.next().value;z!==u&&L.push(X)}); H=new RegExp(L.join("|"));Q.sort(function(u,X){return u.length-X.length}); f=g.n(Q);for(b=f.next();!b.done;b=f.next())if(b=b.value,!H.exec(b))return b;return Q[0]}; g.Qv=function(Q){return"/youtubei/v1/"+A$k(Q)}; zv=function(){}; HC=function(){}; fj=function(){}; bb=function(Q){return g.D6("ytcsi."+(Q||"")+"data_")||Y5_(Q)}; r$L=function(){var Q=bb();Q.info||(Q.info={});return Q.info}; Lj=function(Q){Q=bb(Q);Q.metadata||(Q.metadata={});return Q.metadata}; ub=function(Q){Q=bb(Q);Q.tick||(Q.tick={});return Q.tick}; SV=function(Q){Q=bb(Q);if(Q.gel){var z=Q.gel;z.gelInfos||(z.gelInfos={});z.gelTicks||(z.gelTicks={})}else Q.gel={gelTicks:{},gelInfos:{}};return Q.gel}; sWu=function(Q){Q=SV(Q);Q.gelInfos||(Q.gelInfos={});return Q.gelInfos}; ZA=function(Q){var z=bb(Q).nonce;z||(z=g.xk(16),bb(Q).nonce=z);return z}; Y5_=function(Q){var z={tick:{},info:{}};g.W_("ytcsi."+(Q||"")+"data_",z);return z}; Gv=function(){var Q=g.D6("ytcsi.debug");Q||(Q=[],g.W_("ytcsi.debug",Q),g.W_("ytcsi.reference",{}));return Q}; $x=function(Q){Q=Q||"";var z=B29();if(z[Q])return z[Q];var H=Gv(),f={timerName:Q,info:{},tick:{},span:{},jspbInfo:[]};H.push(f);return z[Q]=f}; PSv=function(Q){Q=Q||"";var z=B29();z[Q]&&delete z[Q];var H=Gv(),f={timerName:Q,info:{},tick:{},span:{},jspbInfo:[]};H.push(f);z[Q]=f}; B29=function(){var Q=g.D6("ytcsi.reference");if(Q)return Q;Gv();return g.D6("ytcsi.reference")}; jV=function(Q){return agv[Q]||"LATENCY_ACTION_UNKNOWN"}; F7=function(Q,z){t$.call(this,1,arguments);this.hM=z}; xx=function(){this.Z=0}; OS=function(){xx.instance||(xx.instance=new xx);return xx.instance}; JN=function(Q,z){oo[z]=oo[z]||{count:0};var H=oo[z];H.count++;H.time=(0,g.NV)();Q.Z||(Q.Z=g.R4(0,function(){var f=(0,g.NV)(),b;for(b in oo)oo[b]&&f-oo[b].time>6E4&&delete oo[b];Q&&(Q.Z=0)},5E3)); return H.count>5?(H.count===6&&Math.random()*1E5<1&&(H=new g.wD("CSI data exceeded logging limit with key",z.split("_")),z.indexOf("plev")>=0||g.PT(H)),!0):!1}; UR_=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; c$n=function(){var Q;if(g.jT("csi_use_performance_navigation_timing")||g.jT("csi_use_performance_navigation_timing_tvhtml5")){var z,H,f,b=Nq==null?void 0:(Q=Nq.getEntriesByType)==null?void 0:(z=Q.call(Nq,"navigation"))==null?void 0:(H=z[0])==null?void 0:(f=H.toJSON)==null?void 0:f.call(H);b?(b.requestStart=Io(b.requestStart),b.responseEnd=Io(b.responseEnd),b.redirectStart=Io(b.redirectStart),b.redirectEnd=Io(b.redirectEnd),b.domainLookupEnd=Io(b.domainLookupEnd),b.connectStart=Io(b.connectStart), b.connectEnd=Io(b.connectEnd),b.responseStart=Io(b.responseStart),b.secureConnectionStart=Io(b.secureConnectionStart),b.domainLookupStart=Io(b.domainLookupStart),b.isPerformanceNavigationTiming=!0,Q=b):Q=Nq.timing}else Q=g.jT("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(Nq.timing)):Nq.timing;return Q}; Io=function(Q){return Math.round(AN()+Q)}; AN=function(){return(g.jT("csi_use_time_origin")||g.jT("csi_use_time_origin_tvhtml5"))&&Nq.timeOrigin?Math.floor(Nq.timeOrigin):Nq.timing.navigationStart}; rE=function(Q,z){Yx("_start",Q,z)}; sS=function(Q,z){if(!g.jT("web_csi_action_sampling_enabled")||!bb(z).actionDisabled){var H=$x(z||"");Ct(H.info,Q);Q.loadType&&(H=Q.loadType,Lj(z).loadType=H);Ct(sWu(z),Q);H=ZA(z);z=bb(z).cttAuthInfo;OS().info(Q,H,z)}}; icc=function(){var Q,z,H,f;return((f=Pb().resolve(new AL(vU))==null?void 0:(Q=yH())==null?void 0:(z=Q.loggingHotConfig)==null?void 0:(H=z.csiConfig)==null?void 0:H.debugTicks)!=null?f:[]).map(function(b){return Object.values(b)[0]})}; Yx=function(Q,z,H){if(!g.jT("web_csi_action_sampling_enabled")||!bb(H).actionDisabled){var f=ZA(H),b;if(b=g.jT("web_csi_debug_sample_enabled")&&f){(Pb().resolve(new AL(vU))==null?0:yH())&&!hwA&&(hwA=!0,Yx("gcfl",(0,g.NV)(),H));var L,u,X;b=(Pb().resolve(new AL(vU))==null?void 0:(L=yH())==null?void 0:(u=L.loggingHotConfig)==null?void 0:(X=u.csiConfig)==null?void 0:X.debugSampleWeight)||0;if(L=b!==0)b:{L=icc();if(L.length>0)for(u=0;uH.duration?f:H},{duration:0}))&&z.startTime>0&&z.responseEnd>0&&(Yx("wffs",Io(z.startTime)),Yx("wffe",Io(z.responseEnd)))}; wUp=function(Q,z,H){Nq&&Nq.measure&&(Q.startsWith("measure_")||(Q="measure_"+Q),H?Nq.measure(Q,z,H):z?Nq.measure(Q,z):Nq.measure(Q))}; kKL=function(Q){var z=BC("aft",Q);if(z)return z;z=g.T5((Q||"")+"TIMING_AFT_KEYS",["ol"]);for(var H=z.length,f=0;f0&&sS(z);z={isNavigation:!0,actionType:jV(g.T5("TIMING_ACTION"))};var H=g.T5("PREVIOUS_ACTION");H&&(z.previousAction=jV(H));if(H=g.T5("CLIENT_PROTOCOL"))z.httpProtocol=H;if(H=g.T5("CLIENT_TRANSPORT"))z.transportProtocol=H;(H=g.ox())&&H!=="UNDEFINED_CSN"&&(z.clientScreenNonce=H);H=Ku9();if(H===1||H===-1)z.isVisible= !0;H=Lj().loadType==="cold";var f=r$L();H||(H=f.yt_lt==="cold");if(H){z.loadType="cold";H=r$L();f=c$n();var b=AN(),L=g.T5("CSI_START_TIMESTAMP_MILLIS",0);L>0&&!g.jT("embeds_web_enable_csi_start_override_killswitch")&&(b=L);b&&(Yx("srt",f.responseStart),H.prerender!==1&&rE(b));H=lgu();H>0&&Yx("fpt",H);H=c$n();H.isPerformanceNavigationTiming&&sS({performanceNavigationTiming:!0},void 0);Yx("nreqs",H.requestStart,void 0);Yx("nress",H.responseStart,void 0);Yx("nrese",H.responseEnd,void 0);H.redirectEnd- H.redirectStart>0&&(Yx("nrs",H.redirectStart,void 0),Yx("nre",H.redirectEnd,void 0));H.domainLookupEnd-H.domainLookupStart>0&&(Yx("ndnss",H.domainLookupStart,void 0),Yx("ndnse",H.domainLookupEnd,void 0));H.connectEnd-H.connectStart>0&&(Yx("ntcps",H.connectStart,void 0),Yx("ntcpe",H.connectEnd,void 0));H.secureConnectionStart>=AN()&&H.connectEnd-H.secureConnectionStart>0&&(Yx("nstcps",H.secureConnectionStart,void 0),Yx("ntcpe",H.connectEnd,void 0));Nq&&"getEntriesByType"in Nq&&mRc();H=[];if(document.querySelector&& Nq&&Nq.getEntriesByName)for(var u in US)US.hasOwnProperty(u)&&(f=US[u],dR9(u,f)&&H.push(f));if(H.length>0)for(z.resourceInfo=[],u=g.n(H),H=u.next();!H.done;H=u.next())z.resourceInfo.push({resourceCache:H.value})}sS(z);z=SV();z.preLoggedGelInfos||(z.preLoggedGelInfos=[]);u=z.preLoggedGelInfos;z=sWu();H=void 0;for(f=0;f-1&&(delete Z["@type"],k=Z);G&&Q.B.has(G)&&Q.B.delete(G);((h8=z.config)==null?0:h8.pSq)&&ib(z.config.pSq);if(k||($O=Q.L)==null||!$O.X03(z.input,z.lz)){J8.bT(15);break}return g.Y(J8,Q.L.tET(z.input,z.lz),16);case 16:k=J8.B;case 15:return pbp(Q,k,z),((Cs=z.config)==null?0:Cs.L25)&&ib(z.config.L25),f(),J8.return(k|| void 0)}})}; qbJ=function(Q,z){a:{Q=Q.TC;var H,f=(H=g.K(z,xRZ))==null?void 0:H.signal;if(f&&Q.Jd&&(H=Q.Jd[f])){var b=H();break a}var L;if((H=(L=g.K(z,Ocu))==null?void 0:L.request)&&Q.jV&&(L=Q.jV[H])){b=L();break a}for(b in z)if(Q.MU[b]&&(z=Q.MU[b])){b=z();break a}b=void 0}if(b!==void 0)return Promise.resolve(b)}; C8u=function(Q,z,H){var f,b,L,u,X,v,y;return g.B(function(q){if(q.Z==1){L=((f=z)==null?void 0:(b=f.k9)==null?void 0:b.identity)||Cc;v=(u=z)==null?void 0:(X=u.k9)==null?void 0:X.sessionIndex;var M=g.Zl(Q.Z.Kf(L,{sessionIndex:v}));return g.Y(q,M,2)}y=q.B;return q.return(Promise.resolve(Object.assign({},J$Y(H),y)))})}; MvZ=function(Q,z,H){var f,b=(z==null?void 0:(f=z.k9)==null?void 0:f.identity)||Cc,L;z=z==null?void 0:(L=z.k9)==null?void 0:L.sessionIndex;Q=Q.Z.Kf(b,{sessionIndex:z});return Object.assign({},J$Y(H),Q)}; Tv=function(){}; eV=function(){}; lb=function(Q){this.j=Q}; Ro=function(){}; QT=function(){}; zp=function(){}; Hm=function(){}; f4=function(Q,z,H){this.Z=Q;this.B=z;this.L=H}; gkp=function(Q,z,H){if(Q.Z){var f=P4(g.UE(5,we(z,"key")))||"/UNKNOWN_PATH";Q.Z.start(f)}Q=H;g.jT("wug_networking_gzip_request")&&(Q=e$L(H));return new window.Request(z,Q)}; g.L4=function(Q,z){if(!bG){var H=Pb();Yk(H,{QX:Zt_,If:f4});var f={MU:{feedbackEndpoint:RQ(Ro),modifyChannelNotificationPreferenceEndpoint:RQ(QT),playlistEditEndpoint:RQ(zp),shareEntityEndpoint:RQ(lb),subscribeEndpoint:RQ(Tv),unsubscribeEndpoint:RQ(eV),webPlayerShareEntityServiceEndpoint:RQ(Hm)}},b=TS.getInstance(),L={};b&&(L.client_location=b);Q===void 0&&(Q=LgA());z===void 0&&(z=H.resolve(Zt_));yL6(f,z,Q,L);Yk(H,{QX:GwY,s1:my.instance});bG=H.resolve(GwY)}return bG}; $An=function(Q){var z=new Eo;if(Q.interpreterJavascript){var H=i8Y(Q.interpreterJavascript);H=WJ(H).toString();var f=new CW;nw(f,6,H);XP(z,CW,1,f)}else Q.interpreterUrl&&(H=O9(Q.interpreterUrl),H=o$(H).toString(),f=new tp,nw(f,4,H),XP(z,tp,2,f));Q.interpreterHash&&gq(z,3,Q.interpreterHash);Q.program&&gq(z,4,Q.program);Q.globalName&&gq(z,5,Q.globalName);Q.clientExperimentsStateBlob&&gq(z,7,Q.clientExperimentsStateBlob);return z}; uG=function(Q){var z={};Q=Q.split("&");Q=g.n(Q);for(var H=Q.next();!H.done;H=Q.next())H=H.value.split("="),H.length===2&&(z[H[0]]=H[1]);return z}; LEc=function(){if(g.jT("bg_st_hr"))return"havuokmhhs-0";var Q,z=((Q=performance)==null?void 0:Q.timeOrigin)||0;return"havuokmhhs-"+Math.floor(z)}; Sd=function(Q){this.Z=Q}; jw9=function(){return new Promise(function(Q){var z=window.top;z.ntpevasrs!==void 0?Q(new Sd(z.ntpevasrs)):(z.ntpqfbel===void 0&&(z.ntpqfbel=[]),z.ntpqfbel.push(function(H){Q(new Sd(H))}))})}; xA8=function(){if(!g.jT("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.jT("disable_biscotti_fetch_entirely_for_all_web_clients")&&fF()){var Q=g.T5("PLAYER_VARS",{});if(g.ra(Q,"privembed",!1)!="1"&&!Y4J(Q)){var z=function(){Xh=!0;"google_ad_status"in window?kc("DCLKSTAT",1):kc("DCLKSTAT",2)}; try{g.vb("//static.doubleclick.net/instream/ad_status.js",z)}catch(H){}FCk.push(g.Wz.pE(function(){if(!(Xh||"google_ad_status"in window)){try{if(z){var H=""+g.Tu(z),f=YML[H];f&&g.Sv(f)}}catch(b){}Xh=!0;kc("DCLKSTAT",3)}},5E3))}}}; vm=function(){var Q=Number(g.T5("DCLKSTAT",0));return isNaN(Q)?0:Q}; C4=function(Q,z,H){var f=this;this.network=Q;this.options=z;this.B=H;this.Z=null;if(z.Zlh){var b=new g.nW;this.Z=b.promise;g.iL.ytAtRC&&lh(function(){var L,u;return g.B(function(X){if(X.Z==1){if(!g.iL.ytAtRC)return X.return();L=yT(null);return g.Y(X,qr(f,L),2)}u=X.B;g.iL.ytAtRC&&g.iL.ytAtRC(JSON.stringify(u));g.Gu(X)})},2); jw9().then(function(L){var u,X,v,y;return g.B(function(q){if(q.Z==1)return L.bindInnertubeChallengeFetcher(function(M){return qr(f,yT(M))}),g.Y(q,Ie(),2); u=q.B;X=L.getLatestChallengeResponse();v=X.challenge;if(!v)throw Error("BGE_MACIL");y={challenge:v,kM:uG(v),Wc:u,bgChallenge:new Eo};b.resolve(y);L.registerChallengeFetchedCallback(function(M){M=M.challenge;if(!M)throw Error("BGE_MACR");M={challenge:M,kM:uG(M),Wc:u,bgChallenge:new Eo};f.Z=Promise.resolve(M)}); g.Gu(q)})})}else z.preload&&Otk(this,new Promise(function(L){g.R4(0,function(){L(Mr(f))},0)}))}; yT=function(Q){var z={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};Q&&(z.interpreterHash=Q);return z}; Mr=function(Q,z){z=z===void 0?0:z;var H,f,b,L,u,X,v,y,q,M,C,t;return g.B(function(E){switch(E.Z){case 1:H=yT(GA().Z);if(g.jT("att_fet_ks"))return g.$v(E,7),g.Y(E,qr(Q,H),9);g.$v(E,4);return g.Y(E,okv(Q,H),6);case 6:u=E.B;b=u.C2e;L=u.dB$;f=u;g.Fa(E,3);break;case 4:return g.xv(E),g.PT(Error("Failed to fetch attestation challenge after "+(z+" attempts; not retrying for 24h."))),tr(Q,864E5),E.return({challenge:"",kM:{},Wc:void 0,bgChallenge:void 0});case 9:f=E.B;if(!f)throw Error("Fetching Attestation challenge returned falsy"); if(!f.challenge)throw Error("Missing Attestation challenge");b=f.challenge;L=uG(b);if("c1a"in L&&(!f.bgChallenge||!f.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.Fa(E,3);break;case 7:X=g.xv(E);g.PT(X);z++;if(z>=5)return g.PT(Error("Failed to fetch attestation challenge after "+(z+" attempts; not retrying for 24h."))),tr(Q,864E5),E.return({challenge:"",kM:{},Wc:void 0,bgChallenge:void 0});v=1E3*Math.pow(2,z-1)+Math.random()*1E3;return E.return(new Promise(function(G){g.R4(0, function(){G(Mr(Q,z))},v)})); case 3:y=Number(L.t)||7200;tr(Q,y*1E3);q=void 0;if(!("c1a"in L&&f.bgChallenge)){E.bT(10);break}M=$An(f.bgChallenge);g.$v(E,11);return g.Y(E,$M(GA(),M),13);case 13:g.Fa(E,12);break;case 11:return C=g.xv(E),g.PT(C),E.return({challenge:b,kM:L,Wc:q,bgChallenge:M});case 12:return g.$v(E,14),q=new gB({challenge:M,k8:{hF:"aGIf"}}),g.Y(E,q.Ab,16);case 16:g.Fa(E,10);break;case 14:t=g.xv(E),g.PT(t),q=void 0;case 10:return E.return({challenge:b,kM:L,Wc:q,bgChallenge:M})}})}; qr=function(Q,z){var H;return g.B(function(f){H=Q.B;if(!H||H.yP())return f.return(qr(Q.network,z));Vv("att_pna",void 0,"attestation_challenge_fetch");return f.return(new Promise(function(b){H.iJ("publicytnetworkstatus-online",function(){qr(Q.network,z).then(b)})}))})}; JLA=function(Q){if(!Q)throw Error("Fetching Attestation challenge returned falsy");if(!Q.challenge)throw Error("Missing Attestation challenge");var z=Q.challenge,H=uG(z);if("c1a"in H&&(!Q.bgChallenge||!Q.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},Q,{C2e:z,dB$:H})}; okv=function(Q,z){var H,f,b,L,u;return g.B(function(X){switch(X.Z){case 1:H=void 0,f=0,b={};case 2:if(!(f<5)){X.bT(4);break}if(!(f>0)){X.bT(5);break}b.bX=1E3*Math.pow(2,f-1)+Math.random()*1E3;return g.Y(X,new Promise(function(v){return function(y){g.R4(0,function(){y(void 0)},v.bX)}}(b)),5); case 5:return g.$v(X,7),g.Y(X,qr(Q,z),9);case 9:return L=X.B,X.return(JLA(L));case 7:H=u=g.xv(X),u instanceof Error&&g.PT(u);case 8:f++;b={bX:void 0};X.bT(2);break;case 4:throw H;}})}; Otk=function(Q,z){Q.Z=z}; N6A=function(Q){var z,H,f;return g.B(function(b){if(b.Z==1)return g.Y(b,Promise.race([Q.Z,null]),2);z=b.B;var L=Mr(Q);Q.Z=L;(H=z)==null||(f=H.Wc)==null||f.dispose();g.Gu(b)})}; tr=function(Q,z){function H(){var b;return g.B(function(L){b=f-Date.now();return b<1E3?g.Y(L,N6A(Q),0):(lh(H,0,Math.min(b,6E4)),L.bT(0))})} var f=Date.now()+z;H()}; I7v=function(Q,z){return new Promise(function(H){g.R4(0,function(){H(z())},Q)})}; g.ALJ=function(Q,z){var H;return g.B(function(f){var b=g.D6("yt.aba.att");return(H=b?b:C4.instance!==void 0?C4.instance.L.bind(C4.instance):null)?f.return(H("ENGAGEMENT_TYPE_PLAYBACK",Q,z)):f.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; g.Ybv=function(){var Q;return(Q=(Q=g.D6("yt.aba.att2"))?Q:C4.instance!==void 0?C4.instance.D.bind(C4.instance):null)?Q():Promise.resolve(!1)}; swk=function(Q,z){var H=g.D6("ytDebugData.callbacks");H||(H={},g.W_("ytDebugData.callbacks",H));if(g.jT("web_dd_iu")||rLA.includes(Q))H[Q]=z}; E1=function(){var Q=B6a;var z=z===void 0?[]:z;var H=H===void 0?[]:H;z=sLu.apply(null,[Bdn.apply(null,g.F(z))].concat(g.F(H)));this.store=aP8(Q,void 0,z)}; g.p4=function(Q,z,H){for(var f=Object.assign({},Q),b=g.n(Object.keys(z)),L=b.next();!L.done;L=b.next()){L=L.value;var u=Q[L],X=z[L];if(X===void 0)delete f[L];else if(u===void 0)f[L]=X;else if(Array.isArray(X)&&Array.isArray(u))f[L]=H?[].concat(g.F(u),g.F(X)):X;else if(!Array.isArray(X)&&g.wc(X)&&!Array.isArray(u)&&g.wc(u))f[L]=g.p4(u,X,H);else if(typeof X===typeof u)f[L]=X;else return z=new g.wD("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:L,q4h:u,updateValue:X}),g.BT(z), Q}return f}; n4=function(Q){var z=this;Q=Q===void 0?[]:Q;this.zS=[];this.P7=this.x3=0;this.aR=void 0;this.totalLength=0;Q.forEach(function(H){z.append(H)})}; P8A=function(Q,z){return Q.zS.length===0?!1:(Q=Q.zS[Q.zS.length-1])&&Q.buffer===z.buffer&&Q.byteOffset+Q.length===z.byteOffset}; gt=function(Q,z){z=g.n(z.zS);for(var H=z.next();!H.done;H=z.next())Q.append(H.value)}; Zt=function(Q,z,H){return Q.split(z).TO.split(H).Qb}; Gp=function(Q){Q.aR=void 0;Q.x3=0;Q.P7=0}; $S=function(Q,z,H){Q.isFocused(z);return z-Q.P7+H<=Q.zS[Q.x3].length}; a7n=function(Q){if(!Q.aR){var z=Q.zS[Q.x3];Q.aR=new DataView(z.buffer,z.byteOffset,z.length)}return Q.aR}; jd=function(Q,z,H){Q=Q.K4(z===void 0?0:z,H===void 0?-1:H);z=new Uint8Array(Q.length);try{z.set(Q)}catch(f){for(H=0;H>10;L=56320|L&1023}O1[b++]=L}}L=String.fromCharCode.apply(String,O1); b<1024&&(L=L.substring(0,b));H.push(L)}return H.join("")}; Nr=function(Q,z){var H;if((H=Jr)==null?0:H.encodeInto)return z=Jr.encodeInto(Q,z),z.read>6|192:((b&64512)===55296&&f+1>18|240,z[H++]=b>>12&63|128):z[H++]=b>>12|224,z[H++]=b>>6&63|128),z[H++]=b&63|128)}return H}; It=function(Q){if(Jr)return Jr.encode(Q);var z=new Uint8Array(Math.ceil(Q.length*1.2)),H=Nr(Q,z);z.lengthH&&(z=z.subarray(0,H));return z}; Ar=function(Q){this.Z=Q;this.pos=0;this.B=-1}; YS=function(Q){var z=Q.Z.getUint8(Q.pos);++Q.pos;if(z<128)return z;for(var H=z&127,f=1;z>=128;)z=Q.Z.getUint8(Q.pos),++Q.pos,f*=128,H+=(z&127)*f;return H}; rt=function(Q,z){var H=Q.B;for(Q.B=-1;Q.Z.rd(Q.pos,1);){H<0&&(H=YS(Q));var f=H>>3,b=H&7;if(f===z)return!0;if(f>z){Q.B=H;break}H=-1;switch(b){case 0:YS(Q);break;case 1:Q.pos+=8;break;case 2:f=YS(Q);Q.pos+=f;break;case 5:Q.pos+=4}}return!1}; s1=function(Q,z){if(rt(Q,z))return YS(Q)}; Bm=function(Q,z){if(rt(Q,z))return!!YS(Q)}; Pm=function(Q,z){if(rt(Q,z)){z=YS(Q);var H=Q.Z.K4(Q.pos,z);Q.pos+=z;return H}}; at=function(Q,z){if(Q=Pm(Q,z))return g.ot(Q)}; U1=function(Q,z,H){if(Q=Pm(Q,z))return H(new Ar(new n4([Q])))}; cm=function(Q,z){for(var H=[];rt(Q,z);)H.push(YS(Q));return H.length?H:void 0}; iG=function(Q,z,H){for(var f=[],b;b=Pm(Q,z);)f.push(H(new Ar(new n4([b]))));return f.length?f:void 0}; hr=function(Q,z){Q=Q instanceof Uint8Array?new n4([Q]):Q;return z(new Ar(Q))}; itL=function(Q,z,H){if(z&&H&&H.buffer===z.exports.memory.buffer){var f=z.realloc(H.byteOffset,Q);if(f)return new Uint8Array(z.exports.memory.buffer,f,Q)}Q=z?new Uint8Array(z.exports.memory.buffer,z.malloc(Q),Q):new Uint8Array(Q);H&&Q.set(H);return Q}; hS6=function(Q,z){this.xs=z;this.pos=0;this.B=[];this.Z=itL(Q===void 0?4096:Q,z);this.view=new DataView(this.Z.buffer,this.Z.byteOffset,this.Z.byteLength)}; Wm=function(Q,z){z=Q.pos+z;if(!(Q.Z.length>=z)){for(var H=Q.Z.length*2;H268435455){Wm(Q,4);for(var H=z&1073741823,f=0;f<4;f++)Q.view.setUint8(Q.pos,H&127|128),H>>=7,Q.pos+=1;z=Math.floor(z/268435456)}for(Wm(Q,4);z>127;)Q.view.setUint8(Q.pos,z&127|128),z>>=7,Q.pos+=1;Q.view.setUint8(Q.pos,z);Q.pos+=1}; K4=function(Q,z,H){H!==void 0&&(Dt(Q,z*8),Dt(Q,H))}; VT=function(Q,z,H){H!==void 0&&K4(Q,z,H?1:0)}; dt=function(Q,z,H){H!==void 0&&(Dt(Q,z*8+2),z=H.length,Dt(Q,z),Wm(Q,z),Q.Z.set(H,Q.pos),Q.pos+=z)}; mt=function(Q,z,H){H!==void 0&&(WC6(Q,z,Math.ceil(Math.log2(H.length*4+2)/7)),Wm(Q,H.length*1.2),z=Nr(H,Q.Z.subarray(Q.pos)),Q.pos+z>Q.Z.length&&(Wm(Q,z),z=Nr(H,Q.Z.subarray(Q.pos))),Q.pos+=z,DA6(Q))}; WC6=function(Q,z,H){H=H===void 0?2:H;Dt(Q,z*8+2);Q.B.push(Q.pos);Q.B.push(H);Q.pos+=H}; DA6=function(Q){for(var z=Q.B.pop(),H=Q.B.pop(),f=Q.pos-H-z;z--;){var b=z?128:0;Q.view.setUint8(H++,f&127|b);f>>=7}}; wt=function(Q,z,H,f,b){H&&(WC6(Q,z,b===void 0?3:b),f(Q,H),DA6(Q))}; g.kS=function(Q,z,H){H=new hS6(4096,H);z(H,Q);return new Uint8Array(H.Z.buffer,H.Z.byteOffset,H.pos)}; g.Tp=function(Q){var z=new Ar(new n4([Z3(decodeURIComponent(Q))]));Q=at(z,2);z=s1(z,4);var H=KC6[z];if(typeof H==="undefined")throw Q=new g.wD("Failed to recognize field number",{name:"EntityKeyHelperError",Ml$:z}),g.BT(Q),Q;return{Pw:z,entityType:H,entityId:Q}}; g.ed=function(Q,z){var H=H===void 0?0:H;var f=new hS6;dt(f,2,It(Q));Q=Vvn[z];if(typeof Q==="undefined")throw H=new g.wD("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:z}),g.BT(H),H;K4(f,4,Q);K4(f,5,1);z=new Uint8Array(f.Z.buffer,f.Z.byteOffset,f.pos);return encodeURIComponent(g.nr(z,H))}; Xm=function(Q,z,H,f){if(f===void 0)return f=Object.assign({},Q[z]||{}),H=(delete f[H],f),f={},Object.assign({},Q,(f[z]=H,f));var b={},L={};return Object.assign({},Q,(L[z]=Object.assign({},Q[z],(b[H]=f,b)),L))}; dAa=function(Q,z,H,f,b){var L=Q[z];if(L==null||!L[H])return Q;f=g.p4(L[H],f,b==="REPEATED_FIELDS_MERGE_OPTION_APPEND");b={};L={};return Object.assign({},Q,(L[z]=Object.assign({},Q[z],(b[H]=f,b)),L))}; mAZ=function(Q,z){Q=Q===void 0?{}:Q;switch(z.type){case "ENTITY_LOADED":return z.payload.reduce(function(f,b){var L,u=(L=b.options)==null?void 0:L.persistenceOption;if(u&&u!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&u!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return f;if(!b.entityKey)return g.BT(Error("Missing entity key")),f;if(b.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!b.payload)return g.BT(new g.wD("REPLACE entity mutation is missing a payload",{entityKey:b.entityKey})),f;var X=g.Or(b.payload); return Xm(f,X,b.entityKey,b.payload[X])}if(b.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{b=b.entityKey;try{var v=g.Tp(b).entityType;X=Xm(f,v,b);break a}catch(M){if(M instanceof Error){g.BT(new g.wD("Failed to deserialize entity key",{entityKey:b,SB:M.message}));X=f;break a}throw M;}X=void 0}return X}if(b.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!b.payload)return g.BT(new g.wD("UPDATE entity mutation is missing a payload",{entityKey:b.entityKey})),f;X=g.Or(b.payload);var y,q;return dAa(f,X,b.entityKey, b.payload[X],(y=b.fieldMask)==null?void 0:(q=y.mergeOptions)==null?void 0:q.repeatedFieldsMergeOption)}return f},Q); case "REPLACE_ENTITY":var H=z.payload;return Xm(Q,H.entityType,H.key,H.wE);case "REPLACE_ENTITIES":return Object.keys(z.payload).reduce(function(f,b){var L=z.payload[b];return Object.keys(L).reduce(function(u,X){return Xm(u,b,X,L[X])},f)},Q); case "UPDATE_ENTITY":return H=z.payload,dAa(Q,H.entityType,H.key,H.wE,H.gQn);default:return Q}}; vX=function(Q,z,H){return Q[z]?Q[z][H]||null:null}; yd=function(Q){return window.Int32Array?new Int32Array(Q):Array(Q)}; pP=function(Q){g.h.call(this);this.counter=[0,0,0,0];this.B=new Uint8Array(16);this.Z=16;if(!wbZ){var z,H=new Uint8Array(256),f=new Uint8Array(256);var b=1;for(z=0;z<256;z++)H[b]=z,f[z]=b,b^=b<<1^(b>>7&&283);qx=new Uint8Array(256);Mx=yd(256);CP=yd(256);t_=yd(256);El=yd(256);for(var L=0;L<256;L++){b=L?f[255^H[L]]:0;b^=b<<1^b<<2^b<<3^b<<4;b=b&255^b>>>8^99;qx[L]=b;z=b<<1^(b>>7&&283);var u=z^b;Mx[L]=z<<24|b<<16|b<<8|u;CP[L]=u<<24|Mx[L]>>>8;t_[L]=b<<24|CP[L]>>>8;El[L]=b<<24|t_[L]>>>8}wbZ=!0}b=yd(44);for(H= 0;H<4;H++)b[H]=Q[4*H]<<24|Q[4*H+1]<<16|Q[4*H+2]<<8|Q[4*H+3];for(f=1;H<44;H++)Q=b[H-1],H%4||(Q=(qx[Q>>16&255]^f)<<24|qx[Q>>8&255]<<16|qx[Q&255]<<8|qx[Q>>>24],f=f<<1^(f>>7&&283)),b[H]=b[H-4]^Q;this.key=b}; nP=function(Q,z){for(var H=0;H<4;H++)Q.counter[H]=z[H*4]<<24|z[H*4+1]<<16|z[H*4+2]<<8|z[H*4+3];Q.Z=16}; kwA=function(Q){for(var z=Q.key,H=Q.counter[0]^z[0],f=Q.counter[1]^z[1],b=Q.counter[2]^z[2],L=Q.counter[3]^z[3],u=3;u>=0&&!(Q.counter[u]=-~Q.counter[u]);u--);for(var X,v,y=4;y<40;)u=Mx[H>>>24]^CP[f>>16&255]^t_[b>>8&255]^El[L&255]^z[y++],X=Mx[f>>>24]^CP[b>>16&255]^t_[L>>8&255]^El[H&255]^z[y++],v=Mx[b>>>24]^CP[L>>16&255]^t_[H>>8&255]^El[f&255]^z[y++],L=Mx[L>>>24]^CP[H>>16&255]^t_[f>>8&255]^El[b&255]^z[y++],H=u,f=X,b=v;Q=Q.B;u=z[40];Q[0]=qx[H>>>24]^u>>>24;Q[1]=qx[f>>16&255]^u>>16&255;Q[2]=qx[b>>8&255]^ u>>8&255;Q[3]=qx[L&255]^u&255;u=z[41];Q[4]=qx[f>>>24]^u>>>24;Q[5]=qx[b>>16&255]^u>>16&255;Q[6]=qx[L>>8&255]^u>>8&255;Q[7]=qx[H&255]^u&255;u=z[42];Q[8]=qx[b>>>24]^u>>>24;Q[9]=qx[L>>16&255]^u>>16&255;Q[10]=qx[H>>8&255]^u>>8&255;Q[11]=qx[f&255]^u&255;u=z[43];Q[12]=qx[L>>>24]^u>>>24;Q[13]=qx[H>>16&255]^u>>16&255;Q[14]=qx[f>>8&255]^u>>8&255;Q[15]=qx[b&255]^u&255}; GL=function(){if(!gh&&!g.kw){if(Zo)return Zo;var Q;Zo=(Q=window.crypto)==null?void 0:Q.subtle;var z,H,f;if(((z=Zo)==null?0:z.importKey)&&((H=Zo)==null?0:H.sign)&&((f=Zo)==null?0:f.encrypt))return Zo;Zo=void 0}}; g.$9=function(Q){this.D=Q}; g.j7=function(Q){this.B=Q}; Fm=function(Q){this.S=new Uint8Array(64);this.L=new Uint8Array(64);this.D=0;this.j=new Uint8Array(64);this.B=0;this.S.set(Q);this.L.set(Q);for(Q=0;Q<64;Q++)this.S[Q]^=92,this.L[Q]^=54;this.reset()}; T66=function(Q,z,H){for(var f=Q.Y,b=Q.Z[0],L=Q.Z[1],u=Q.Z[2],X=Q.Z[3],v=Q.Z[4],y=Q.Z[5],q=Q.Z[6],M=Q.Z[7],C,t,E,G=0;G<64;)G<16?(f[G]=E=z[H]<<24|z[H+1]<<16|z[H+2]<<8|z[H+3],H+=4):(C=f[G-2],t=f[G-15],E=f[G-7]+f[G-16]+((C>>>17|C<<15)^(C>>>19|C<<13)^C>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),f[G]=E),C=M+x9[G]+E+((v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7))+(v&y^~v&q),t=((b>>>2|b<<30)^(b>>>13|b<<19)^(b>>>22|b<<10))+(b&L^b&u^L&u),M=C+t,X+=C,G++,G<16?(f[G]=E=z[H]<<24|z[H+1]<<16|z[H+2]<<8|z[H+3],H+=4):(C= f[G-2],t=f[G-15],E=f[G-7]+f[G-16]+((C>>>17|C<<15)^(C>>>19|C<<13)^C>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),f[G]=E),C=q+x9[G]+E+((X>>>6|X<<26)^(X>>>11|X<<21)^(X>>>25|X<<7))+(X&v^~X&y),t=((M>>>2|M<<30)^(M>>>13|M<<19)^(M>>>22|M<<10))+(M&b^M&L^b&L),q=C+t,u+=C,G++,G<16?(f[G]=E=z[H]<<24|z[H+1]<<16|z[H+2]<<8|z[H+3],H+=4):(C=f[G-2],t=f[G-15],E=f[G-7]+f[G-16]+((C>>>17|C<<15)^(C>>>19|C<<13)^C>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),f[G]=E),C=y+x9[G]+E+((u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7))+(u&X^ ~u&v),t=((q>>>2|q<<30)^(q>>>13|q<<19)^(q>>>22|q<<10))+(q&M^q&b^M&b),y=C+t,L+=C,G++,G<16?(f[G]=E=z[H]<<24|z[H+1]<<16|z[H+2]<<8|z[H+3],H+=4):(C=f[G-2],t=f[G-15],E=f[G-7]+f[G-16]+((C>>>17|C<<15)^(C>>>19|C<<13)^C>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),f[G]=E),C=v+x9[G]+E+((L>>>6|L<<26)^(L>>>11|L<<21)^(L>>>25|L<<7))+(L&u^~L&X),t=((y>>>2|y<<30)^(y>>>13|y<<19)^(y>>>22|y<<10))+(y&q^y&M^q&M),E=M,M=X,X=E,E=q,q=u,u=E,E=y,y=L,L=E,v=b+C,b=C+t,G++;Q.Z[0]=b+Q.Z[0]|0;Q.Z[1]=L+Q.Z[1]|0;Q.Z[2]=u+Q.Z[2]|0;Q.Z[3]= X+Q.Z[3]|0;Q.Z[4]=v+Q.Z[4]|0;Q.Z[5]=y+Q.Z[5]|0;Q.Z[6]=q+Q.Z[6]|0;Q.Z[7]=M+Q.Z[7]|0}; l7c=function(Q){var z=new Uint8Array(32),H=64-Q.B;Q.B>55&&(H+=64);var f=new Uint8Array(H);f[0]=128;for(var b=Q.D*8,L=1;L<9;L++){var u=b%256;f[H-L]=u;b=(b-u)/256}Q.update(f);for(H=0;H<8;H++)z[H*4]=Q.Z[H]>>>24,z[H*4+1]=Q.Z[H]>>>16&255,z[H*4+2]=Q.Z[H]>>>8&255,z[H*4+3]=Q.Z[H]&255;eS9(Q);return z}; eS9=function(Q){Q.Z=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];Q.Y=[];Q.Y.length=64;Q.D=0;Q.B=0}; RSJ=function(Q){this.Z=Q}; Qxp=function(Q,z,H){Q=new Fm(Q.Z);Q.update(z);Q.update(H);z=l7c(Q);Q.update(Q.S);Q.update(z);z=l7c(Q);Q.reset();return z}; ztL=function(Q){this.B=Q}; H2c=function(Q,z,H,f){var b,L,u;return g.B(function(X){switch(X.Z){case 1:if(Q.Z){X.bT(2);break}return g.Y(X,f.importKey("raw",Q.B,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:Q.Z=X.B;case 2:return b=new Uint8Array(z.length+H.length),b.set(z),b.set(H,z.length),L={name:"HMAC",hash:"SHA-256"},g.Y(X,f.sign(L,Q.Z,b),4);case 4:return u=X.B,X.return(new Uint8Array(u))}})}; fw9=function(Q,z,H){Q.L||(Q.L=new RSJ(Q.B));return Qxp(Q.L,z,H)}; b28=function(Q,z,H){var f,b;return g.B(function(L){if(L.Z==1){f=GL();if(!f)return L.return(fw9(Q,z,H));g.$v(L,3);return g.Y(L,H2c(Q,z,H,f),5)}if(L.Z!=3)return L.return(L.B);b=g.xv(L);g.PT(b);gh=!0;return L.return(fw9(Q,z,H))})}; uGu=function(Q){for(var z="",H=0;H=1?Q[Q.length-1]:null;for(var f=g.n(Q),b=f.next();!b.done;b=f.next())if(b=b.value,b.width&&b.height&&(H&&b.width>=z||!H&&b.height>=z))return b;for(z=Q.length-1;z>=0;z--)if(H&&Q[z].width||!H&&Q[z].height)return Q[z];return Q[0]}; o7=function(){this.state=1;this.Wc=null;this.qP=void 0}; tZp=function(Q,z,H,f,b,L){var u=u===void 0?"trayride":u;H?(Q.Ni(2),g.vb(H,function(){if(window[u])CUv(Q,f,u,b);else{Q.Ni(3);var X=AF_(H),v=document.getElementById(X);v&&(NR6(X),v.parentNode.removeChild(v));g.PT(new g.wD("Unable to load Botguard","from "+H))}},L)):z?(L=g.Hx("SCRIPT"),z instanceof iz?(L.textContent=WJ(z),DT(L)):L.textContent=z,L.nonce=cJ(document),document.head.appendChild(L),document.head.removeChild(L),window[u]?CUv(Q,f,u,b):(Q.Ni(4),g.PT(new g.wD("Unable to load Botguard from JS")))): g.PT(new g.wD("Unable to load VM; no url or JS provided"))}; CUv=function(Q,z,H,f){Q.Ni(5);var b=!!Q.qP&&EGJ.includes(g.c4(Q.qP)||"");try{var L=new gB({program:z,globalName:H,k8:{disable:!g.jT("att_web_record_metrics")||!g.jT("att_skip_metrics_for_cookieless_domains_ks")&&b,hF:"aGIf"}});L.Ab.then(function(){Q.Ni(6);f&&f(z)}); Q.sB(L)}catch(u){Q.Ni(7),u instanceof Error&&g.PT(u)}}; J_=function(){var Q=g.D6("yt.abuse.playerAttLoader");return Q&&["bgvma","bgvmb","bgvmc"].every(function(z){return z in Q})?Q:null}; Nx=function(){o7.apply(this,arguments)}; I7=function(){}; pTa=function(Q,z,H){for(var f=!1,b=g.n(Q.g7.entries()),L=b.next();!L.done;L=b.next())L=g.n(L.value).next().value,L.slotType==="SLOT_TYPE_PLAYER_BYTES"&&L.hh==="core"&&(f=!0);if(f){a:if(!H){Q=g.n(Q.g7.entries());for(H=Q.next();!H.done;H=Q.next())if(f=g.n(H.value),H=f.next().value,f=f.next().value,H.slotType==="SLOT_TYPE_IN_PLAYER"&&H.hh==="core"){H=f.layoutId;break a}H=void 0}H?z.wH(H):MZ("No triggering layout ID available when attempting to mute.")}}; A_=function(Q,z){this.EG=Q;this.wi=z}; Y9=function(){}; rh=function(){}; gGc=function(Q){g.h.call(this);var z=this;this.Rq=Q;this.Z=new Map;sl(this,"commandExecutorCommand",function(H,f,b){nGZ(z,H.commands,f,b)}); sl(this,"clickTrackingParams",function(){})}; Z2A=function(Q,z){sl(Q,z.We(),function(H,f,b){z.OW(H,f,b)})}; sl=function(Q,z,H){Q.Sm();Q.Z.get(z)&&g.BT(Error("Extension name "+z+" already registered"));Q.Z.set(z,H)}; nGZ=function(Q,z,H,f){z=z===void 0?[]:z;Q.Sm();var b=[],L=[];z=g.n(z);for(var u=z.next();!u.done;u=z.next())u=u.value,g.K(u,G6v)||g.K(u,$X6)?b.push(u):L.push(u);b=g.n(b);for(z=b.next();!z.done;z=b.next())BX(Q,z.value,H,f);L=g.n(L);for(b=L.next();!b.done;b=L.next())BX(Q,b.value,H,f)}; BX=function(Q,z,H,f){Q.Sm();z.loggingUrls&&jxZ(Q,"loggingUrls",z.loggingUrls,H,f);z=g.n(Object.entries(z));for(var b=z.next();!b.done;b=z.next()){var L=g.n(b.value);b=L.next().value;L=L.next().value;b==="openPopupAction"?Q.Rq.get().Wn("innertubeCommand",{openPopupAction:L}):b==="confirmDialogEndpoint"?Q.Rq.get().Wn("innertubeCommand",{confirmDialogEndpoint:L}):FQu.hasOwnProperty(b)||jxZ(Q,b,L,H,f)}}; jxZ=function(Q,z,H,f,b){if((Q=Q.Z.get(z))&&typeof Q==="function")try{Q(H,f,b)}catch(L){g.BT(L)}else z=new g.wD("Unhandled field",z),g.PT(z)}; PX=function(Q,z,H){this.wQ=Q;this.Z=z;this.Vl=H}; a7=function(Q){this.value=Q}; Ul=function(Q){this.value=Q}; cX=function(Q){this.value=Q}; i1=function(Q){this.value=Q}; h_=function(Q){this.value=Q}; WX=function(Q){this.value=Q}; Do=function(Q){this.value=Q}; KP=function(){a7.apply(this,arguments)}; Vd=function(Q){this.value=Q}; dh=function(Q){this.value=Q}; md=function(Q){this.value=Q}; wh=function(Q){this.value=Q}; k9=function(Q){this.value=Q}; TL=function(Q){this.value=Q}; e7=function(Q){this.value=Q}; l1=function(Q){this.value=Q}; R7=function(Q){this.value=Q}; QN=function(Q){this.value=Q}; zg=function(){a7.apply(this,arguments)}; He=function(Q){this.value=Q}; fq=function(Q){this.value=Q}; bx=function(Q){this.value=Q}; Lq=function(Q){this.value=Q}; ux=function(Q){this.value=Q}; SU=function(Q){this.value=Q}; Xi=function(Q){this.value=Q}; ve=function(Q){this.value=Q}; yN=function(Q){this.value=Q}; q9=function(Q){this.value=Q}; M9=function(Q){this.value=Q}; Cq=function(Q){this.value=Q}; tm=function(Q){this.value=Q}; Ed=function(Q){this.value=Q}; pq=function(Q){this.value=Q}; nq=function(Q){this.value=Q}; g1=function(Q){this.value=Q}; Zs=function(Q){this.value=Q}; Gg=function(Q){this.value=Q}; $L=function(Q){this.value=Q}; jU=function(Q){this.value=Q}; Fi=function(Q){this.value=Q}; xL=function(Q){this.value=Q}; Od=function(Q){this.value=Q}; oX=function(Q){this.value=Q}; Jm=function(Q){this.value=Q}; N9=function(Q){this.value=Q}; IX=function(Q){this.value=Q}; Am=function(Q){this.value=Q}; YL=function(Q){this.value=Q}; r1=function(Q){this.value=Q}; sd=function(Q){this.value=Q}; Be=function(Q){this.value=Q}; Pe=function(Q){this.value=Q}; aX=function(Q){this.value=Q}; Ud=function(Q){this.value=Q}; ce=function(Q){this.value=Q}; ix=function(Q){this.value=Q}; hm=function(){a7.apply(this,arguments)}; We=function(Q){this.value=Q}; Ds=function(){a7.apply(this,arguments)}; Kq=function(){a7.apply(this,arguments)}; VN=function(){a7.apply(this,arguments)}; d1=function(){a7.apply(this,arguments)}; mc=function(){a7.apply(this,arguments)}; w1=function(Q){this.value=Q}; kL=function(Q){this.value=Q}; Tg=function(Q){this.value=Q}; eU=function(Q){this.value=Q}; lx=function(Q){this.value=Q}; QJ=function(Q,z,H){if(H&&!H.includes(Q.layoutType))return!1;z=g.n(z);for(H=z.next();!H.done;H=z.next())if(!RX(Q.clientMetadata,H.value))return!1;return!0}; z3=function(){return""}; xXJ=function(Q,z){switch(Q){case "TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL":return 0;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED":return 1;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED":return 2;case "TRIGGER_CATEGORY_SLOT_EXPIRATION":return 3;case "TRIGGER_CATEGORY_SLOT_FULFILLMENT":return 4;case "TRIGGER_CATEGORY_SLOT_ENTRY":return 5;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED":return 6;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED":return 7;default:return z(Q),8}}; Ha=function(Q,z,H,f){f=f===void 0?!1:f;ET.call(this,Q);this.D5=H;this.a_=f;this.args=[];z&&this.args.push(z)}; e=function(Q,z,H,f){f=f===void 0?!1:f;ET.call(this,Q);this.D5=H;this.a_=f;this.args=[];z&&this.args.push(z)}; fN=function(Q){var z=new Map;Q.forEach(function(H){z.set(H.getType(),H)}); this.Z=z}; RX=function(Q,z){return Q.Z.has(z)}; bY=function(Q,z){Q=Q.Z.get(z);if(Q!==void 0)return Q.get()}; LN=function(Q){return Array.from(Q.Z.keys())}; uY=function(Q,z,H){if(H&&H!==Q.slotType)return!1;z=g.n(z);for(H=z.next();!H.done;H=z.next())if(!RX(Q.clientMetadata,H.value))return!1;return!0}; oGA=function(Q){var z;return((z=O2n.get(Q))==null?void 0:z.QT)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; XE=function(Q,z){var H={type:z.slotType,controlFlowManagerLayer:JlJ.get(z.hh)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};z.slotEntryTrigger&&(H.entryTriggerType=z.slotEntryTrigger.triggerType);z.slotPhysicalPosition!==1&&(H.slotPhysicalPosition=z.slotPhysicalPosition);if(Q){H.debugData={slotId:z.slotId};if(Q=z.slotEntryTrigger)H.debugData.slotEntryTriggerData=So(Q);Q=z.slotFulfillmentTriggers;H.debugData.fulfillmentTriggerData=[];Q=g.n(Q);for(var f=Q.next();!f.done;f=Q.next())H.debugData.fulfillmentTriggerData.push(So(f.value)); z=z.slotExpirationTriggers;H.debugData.expirationTriggerData=[];z=g.n(z);for(Q=z.next();!Q.done;Q=z.next())H.debugData.expirationTriggerData.push(So(Q.value))}return H}; Nla=function(Q,z){var H={type:z.layoutType,controlFlowManagerLayer:JlJ.get(z.hh)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};Q&&(H.debugData={layoutId:z.layoutId});return H}; So=function(Q,z){var H={type:Q.triggerType};z!=null&&(H.category=z);Q.triggeringSlotId!=null&&(H.triggerSourceData||(H.triggerSourceData={}),H.triggerSourceData.associatedSlotId=Q.triggeringSlotId);Q.triggeringLayoutId!=null&&(H.triggerSourceData||(H.triggerSourceData={}),H.triggerSourceData.associatedLayoutId=Q.triggeringLayoutId);return H}; IwL=function(Q,z,H,f){z={opportunityType:z};Q&&(f||H)&&(f=g.J5(f||[],function(b){return XE(Q,b)}),z.debugData=Object.assign({},H&&H.length>0?{associatedSlotId:H}:{},f.length>0?{slots:f}:{})); return z}; yJ=function(Q,z){return function(H){return Al_(va(Q),z.slotId,z.slotType,z.slotPhysicalPosition,z.hh,z.slotEntryTrigger,z.slotFulfillmentTriggers,z.slotExpirationTriggers,H.layoutId,H.layoutType,H.hh)}}; Al_=function(Q,z,H,f,b,L,u,X,v,y,q){return{adClientDataEntry:{slotData:XE(Q,{slotId:z,slotType:H,slotPhysicalPosition:f,hh:b,slotEntryTrigger:L,slotFulfillmentTriggers:u,slotExpirationTriggers:X,clientMetadata:new fN([])}),layoutData:Nla(Q,{layoutId:v,layoutType:y,hh:q,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],YN:[],wT:new Map,clientMetadata:new fN([]),cz:{}})}}}; Mf=function(Q){this.qc=Q;Q=Math.random();var z=this.qc.get();z=g.qf(z.K.C().experiments,"html5_debug_data_log_probability");z=Number.isFinite(z)&&z>=0&&z<=1?z:0;this.Z=Q1){g.PT(new g.wD("Exit already started",{current:Q.currentState}));var H=!1}else H=!0;if(!H)return!1;Q.currentState=2;Q.Z=z;return!0}; nG=function(Q){if(Q.currentState!==2)return!1;Q.currentState=3;return!0}; uSn=function(Q,z){var H=new Map;Q=g.n(Q);for(var f=Q.next();!f.done;f=Q.next()){f=f.value;if(f.layoutType==="LAYOUT_TYPE_MEDIA")var b="v";else f.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(b=bY(f.clientMetadata,"metadata_type_linked_in_player_layout_type"),b=b==="LAYOUT_TYPE_ENDCAP"||b==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":b==="LAYOUT_TYPE_SURVEY"?"s":b==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):b="u";H.set(f.layoutId,b);if(b==="u"){var L={};b=z;f=(L.c=f.layoutId,L);b.K.On("uct",f)}}Q= z.jN();g5={contentCpn:Q,Vt:H};f={};H=(f.ct=H.size,f.c=Q,f);z.K.On("acc",H)}; Sxk=function(){g5={contentCpn:"",Vt:new Map}}; ZU=function(Q){var z;return(z=g5.Vt.get(Q))!=null?z:"u"}; GR=function(Q,z,H){Q.K.On(z,H);X6p(Q)}; vU6=function(Q){var z=Q.layoutId,H=Q.zN;if(Q.ri){var f={};GR(Q.wQ,"slso",(f.ec=z,f.is=H,f.ctp=ZU(z),f))}}; $K=function(Q){var z=Q.layoutId,H=Q.zN;if(Q.ri){var f={};GR(Q.wQ,"slse",(f.ec=z,f.is=H,f.ctp=ZU(z),f))}}; yTv=function(Q){var z=Q.layoutId,H=Q.zN,f=Q.wQ;Q.ri&&(Q={},GR(f,"sleo",(Q.xc=z,Q.is=H,Q.ctp=ZU(z),Q)),X6p(f))}; qxa=function(Q){var z=Q.cpn,H=Q.wQ;Q=Q.zN;var f=H.jN(),b={};GR(H,"ce",(b.ec=z,b.ia=z!==f,b.r=g5.Vt.has(z),b.is=Q,b.ctp=ZU(z),b))}; X6p=function(Q){if(Q.jN()!==g5.contentCpn){var z={};z=(z.c=g5.contentCpn,z);Q.K.On("ccm",z)}}; MhJ=function(Q){var z=Q.cpn,H=Q.wQ;Q=Q.zN;var f=H.jN(),b={};GR(H,"cx",(b.xc=z,b.ia=z!==f,b.r=g5.Vt.has(z),b.is=Q,b.ctp=ZU(z),b))}; CAu=function(Q){this.params=Q;this.Z=new Set}; thp=function(Q,z,H){if(!Q.Z.has(z)){Q.Z.add(z);var f={};Q.params.CE.Hz(z,Object.assign({},H,(f.p_ac=Q.params.adCpn,f.p_isv=Q.params.Lv5&&Q.params.rQ,f)))}}; FI=function(Q,z,H){if(jM(Q.params.CE.qc.get(),!0)){var f=H.flush,b={};thp(Q,z,(b.cts=H.currentTimeSec,b.f=f,b))}}; EUZ=function(Q,z){this.wQ=Q;this.qc=z}; xK=function(Q){var z=[];if(Q){Q=g.n(Object.entries(Q));for(var H=Q.next();!H.done;H=Q.next()){var f=g.n(H.value);H=f.next().value;f=f.next().value;f!==void 0&&(f=typeof f==="boolean"?""+ +f:(""+f).replace(/[:,=]/g,"_"),z.push(H+"."+f))}}return z.join(";")}; Oh=function(Q,z,H){z=z===void 0?{}:z;this.errorCode=Q;this.details=z;this.severity=H===void 0?0:H}; oj=function(Q){return Q===1||Q===2}; JI=function(Q,z){z=z===void 0?0:z;if(Q instanceof Oh)return Q;Q=Q&&Q instanceof Error?Q:Error(""+Q);oj(z)?g.BT(Q):g.PT(Q);return new Oh(z===1?"player.fatalexception":"player.exception",{name:""+Q.name,message:""+Q.message},z)}; p6p=function(Q,z){function H(){var f=g.A8.apply(0,arguments);Q.removeEventListener("playing",H);z.apply(null,g.F(f))} Q.addEventListener("playing",H)}; NC=function(){var Q=g.D6("yt.player.utils.videoElement_");Q||(Q=g.Hx("VIDEO"),g.W_("yt.player.utils.videoElement_",Q));return Q}; Ij=function(Q){var z=NC();return!!(z&&z.canPlayType&&z.canPlayType(Q))}; YK=function(Q){if(/opus/.test(Q)&&g.AI&&!oH("38")&&!g.dR())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(Q);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(Q);if(/webm/.test(Q)&&!JZc())return!1;Q==='audio/mp4; codecs="mp4a.40.2"'&&(Q='video/mp4; codecs="avc1.4d401f"');return!!Ij(Q)}; nUA=function(Q){try{var z=YK('video/mp4; codecs="avc1.42001E"')||YK('video/webm; codecs="vp9"');return(YK('audio/mp4; codecs="mp4a.40.2"')||YK('audio/webm; codecs="opus"'))&&(z||!Q)||Ij('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(H){return"html5.missingapi"}}; r5=function(){var Q=NC();return!(!Q.webkitSupportsPresentationMode||typeof Q.webkitSetPresentationMode!=="function")}; sh=function(){var Q=NC();try{var z=Q.muted;Q.muted=!z;return Q.muted!==z}catch(H){}return!1}; gUc=function(){var Q;return((Q=navigator.connection)==null?void 0:Q.type)||""}; g.Bt=function(){N0.apply(this,arguments)}; Pt=function(Q,z,H,f,b,L,u){this.sampleRate=Q===void 0?0:Q;this.numChannels=z===void 0?0:z;this.spatialAudioType=H===void 0?"SPATIAL_AUDIO_TYPE_NONE":H;this.Z=f===void 0?!1:f;this.L=b===void 0?0:b;this.B=L===void 0?0:L;this.audioQuality=u===void 0?"AUDIO_QUALITY_UNKNOWN":u}; ct=function(Q,z,H,f,b,L,u,X,v){this.width=Q;this.height=z;this.quality=L||aj(Q,z);this.Z=g.Uh[this.quality];this.fps=H||0;this.stereoLayout=!b||f!=null&&f!=="UNKNOWN"&&f!=="RECTANGULAR"?0:b;this.projectionType=f?f==="EQUIRECTANGULAR"&&b===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":f:"UNKNOWN";(Q=u)||(Q=g.Uh[this.quality],Q===0?Q="Auto":(z=this.fps,H=this.projectionType,Q=Q.toString()+(H==="EQUIRECTANGULAR"||H==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||H==="MESH"?"s":"p")+(z>55?"60":z>49?"50":z>39?"48":""))); this.qualityLabel=Q;this.B=X||"";this.primaries=v||""}; aj=function(Q,z){var H=Math.max(Q,z);Q=Math.min(Q,z);z=ia[0];for(var f=0;f=Math.floor(L*16/9)*1.3||Q>=L*1.3)return z;z=b}return"tiny"}; DU=function(Q,z,H){H=H===void 0?{}:H;this.id=Q;this.mimeType=z;H.oi>0||(H.oi=16E3);Object.assign(this,H);Q=g.n(this.id.split(";"));this.itag=Q.next().value;this.Z=Q.next().value;this.containerType=hI(z);this.Rj=Wt[this.itag]||""}; KG=function(Q){return Q.Rj==="9"||Q.Rj==="("||Q.Rj==="9h"||Q.Rj==="(h"}; Zpn=function(Q){return Q.Rj==="H"||Q.Rj==="h"}; VQ=function(Q){return Q.Rj==="9h"||Q.Rj==="(h"}; GSA=function(Q){return!!Q.AM&&!!Q.AM.fairplay&&(Q.Rj==="("||Q.Rj==="(h"||Q.Rj==="A"||Q.Rj==="MEAC3")||d5&&!!Q.AM&&Q.Rj==="1e"}; mq=function(Q){return Q.Rj==="1"||Q.Rj==="1h"||d5&&Q.Rj==="1e"}; w5=function(Q){return Q.Rj==="mac3"||Q.Rj==="meac3"||Q.Rj==="m"||Q.Rj==="i"}; kK=function(Q){return Q.Rj==="MAC3"||Q.Rj==="MEAC3"||Q.Rj==="M"||Q.Rj==="I"}; g.TR=function(Q){return Q.containerType===1}; $Zp=function(Q){return Q.Rj==="("||Q.Rj==="(h"||Q.Rj==="H"||d5&&Q.Rj==="1e"}; eM=function(Q){return Q.mimeType==="application/x-mpegURL"}; g.la=function(Q,z){return{itag:+Q.itag,lmt:z?0:Q.lastModified,xtags:Q.Z||""}}; jQu=function(Q){var z=navigator.mediaCapabilities;if(z==null||!z.decodingInfo||Q.Rj==="f")return Promise.resolve();var H={type:Q.audio&&Q.video?"file":"media-source"};Q.video&&(H.video={contentType:Q.mimeType,width:Q.video.width||640,height:Q.video.height||360,bitrate:Q.oi*8||1E6,framerate:Q.video.fps||30});Q.audio&&(H.audio={contentType:Q.mimeType,channels:""+(Q.audio.numChannels||2),bitrate:Q.oi*8||128E3,samplerate:Q.audio.sampleRate||44100});return z.decodingInfo(H).then(function(f){Q.B=f})}; Rj=function(Q){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(Q)}; QA=function(Q){return/(vp9|vp09|vp8|avc1|av01)/.test(Q)}; zs=function(Q){return Q.includes("vtt")||Q.includes("text/mp4")}; hI=function(Q){return Q.indexOf("/mp4")>=0?1:Q.indexOf("/webm")>=0?2:Q.indexOf("/x-flv")>=0?3:Q.indexOf("/vtt")>=0?4:0}; Hs=function(Q,z,H,f,b,L){var u=new Pt;z in g.Uh||(z="small");z==="light"&&(z="tiny");f&&b?(b=Number(b),f=Number(f)):(b=g.Uh[z],f=Math.round(b*16/9));L=new ct(f,b,0,null,void 0,z,L);Q=unescape(Q.replace(/"/g,'"'));return new DU(H,Q,{audio:u,video:L})}; f3=function(Q){var z="id="+Q.id;Q.video&&(z+=", res="+Q.video.qualityLabel);var H,f;return z+", byterate=("+((H=Q.Mx)==null?void 0:H.toFixed(0))+", "+((f=Q.oi)==null?void 0:f.toFixed(0))+")"}; bZ=function(Q,z){return{start:function(H){return Q[H]}, end:function(H){return z[H]}, length:Q.length}}; F58=function(Q,z,H){for(var f=[],b=[],L=0;L=z)return H}catch(f){}return-1}; SP=function(Q,z){return uZ(Q,z)>=0}; xZ9=function(Q,z){if(!Q)return NaN;z=uZ(Q,z);return z>=0?Q.start(z):NaN}; X$=function(Q,z){if(!Q)return NaN;z=uZ(Q,z);return z>=0?Q.end(z):NaN}; vs=function(Q){return Q&&Q.length?Q.end(Q.length-1):NaN}; yA=function(Q,z){Q=X$(Q,z);return Q>=0?Q-z:0}; q6=function(Q,z,H){for(var f=[],b=[],L=0;LH||(f.push(Math.max(z,Q.start(L))-z),b.push(Math.min(H,Q.end(L))-z));return bZ(f,b)}; M6=function(Q,z,H,f){g.Xp.call(this);var b=this;this.oB=Q;this.start=z;this.end=H;this.isActive=f;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.Dx={error:function(){!b.Sm()&&b.isActive&&b.publish("error",b)}, updateend:function(){!b.Sm()&&b.isActive&&b.publish("updateend",b)}}; this.oB.rZ(this.Dx);this.xL=this.isActive}; ta=function(Q,z,H,f,b,L){g.Xp.call(this);var u=this;this.nH=Q;this.VP=z;this.id=H;this.containerType=f;this.Rj=b;this.rQ=L;this.Tf=this.Aw=this.oz=null;this.Lv=!1;this.appendWindowStart=this.timestampOffset=0;this.RE=bZ([],[]);this.Y6=!1;this.Sj=[];this.O0=C3?[]:void 0;this.Hc=function(v){return u.publish(v.type,u)}; var X;if((X=this.nH)==null?0:X.addEventListener)this.nH.addEventListener("updateend",this.Hc),this.nH.addEventListener("error",this.Hc)}; EU=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; p3=function(Q,z){this.Mz=Q;this.Z=z===void 0?!1:z;this.B=!1}; n3=function(Q,z,H){H=H===void 0?!1:H;g.h.call(this);this.mediaElement=Q;this.vI=z;this.isView=H;this.j=0;this.D=!1;this.S=!0;this.U=0;this.callback=null;this.N=!1;this.vI||(this.VP=this.mediaElement.ai());this.events=new g.Bt(this);g.W(this,this.events);this.L=new p3(this.vI?window.URL.createObjectURL(this.vI):this.VP.webkitMediaSourceURL,!0);Q=this.vI||this.VP;I4(this.events,Q,["sourceopen","webkitsourceopen"],this.bim);I4(this.events,Q,["sourceclose","webkitsourceclose"],this.DBc);this.Y={updateend:this.PA}}; Opk=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; oU9=function(Q,z){gp(Q)?g.qH(function(){z(Q)}):Q.callback=z}; JTL=function(Q,z,H){if(ZF){var f;Gs(Q.mediaElement,{l:"mswssb",sr:(f=Q.mediaElement.HI)==null?void 0:f.Uq()},!1);z.rZ(Q.Y,Q);H.rZ(Q.Y,Q)}Q.Z=z;Q.B=H;g.W(Q,z);g.W(Q,H)}; NUY=function(Q,z,H,f){f=z.mimeType+(f===void 0?"":f);var b=H.mimeType;z=z.Rj;H=H.Rj;var L;Q.Ze=(L=Q.vI)==null?void 0:L.addSourceBuffer(b);var u;Q.wh=f.split(";")[0]==="fakesb"?void 0:(u=Q.vI)==null?void 0:u.addSourceBuffer(f);Q.VP&&(Q.VP.webkitSourceAddId("0",b),Q.VP.webkitSourceAddId("1",f));L=new ta(Q.Ze,Q.VP,"0",hI(b),H,!1);f=new ta(Q.wh,Q.VP,"1",hI(f),z,!0);JTL(Q,L,f)}; $6=function(Q){return!!Q.Z||!!Q.B}; gp=function(Q){try{return mw(Q)==="open"}catch(z){return!1}}; mw=function(Q){if(Q.vI)return Q.vI.readyState;switch(Q.VP.webkitSourceState){case Q.VP.SOURCE_OPEN:return"open";case Q.VP.SOURCE_ENDED:return"ended";default:return"closed"}}; wp=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; IhZ=function(Q){gp(Q)&&(Q.vI?Q.vI.endOfStream():Q.VP.webkitSourceEndOfStream(Q.VP.EOS_NO_ERROR))}; AT_=function(Q,z,H,f){if(!Q.Z||!Q.B)return null;var b=Q.Z.isView()?Q.Z.oB:Q.Z,L=Q.B.isView()?Q.B.oB:Q.B,u=new n3(Q.mediaElement,Q.vI,!0);u.L=Q.L;JTL(u,new M6(b,z,H,f),new M6(L,z,H,f));gp(Q)||Q.Z.WG(Q.Z.ex());return u}; Yxc=function(Q){var z;(z=Q.Z)==null||z.v1();var H;(H=Q.B)==null||H.v1();Q.S=!1}; k6=function(){var Q=this;this.tA=this.fb=sJa;this.promise=new g.ng(function(z,H){Q.fb=z;Q.tA=H})}; Ts=function(){g.h.call(this);this.uR=!1;this.Mz=null;this.Y=this.j=!1;this.D=new g.Qe;this.HI=null;g.W(this,this.D)}; eP=function(Q){Q=Q.MS();return Q.length<1?NaN:Q.end(Q.length-1)}; rT9=function(Q){!Q.B&&Opk()&&(Q.L?Q.L.then(function(){return rT9(Q)}):Q.e3()||(Q.B=Q.AB()))}; sQp=function(Q){Q.B&&(Q.B.dispose(),Q.B=void 0)}; Gs=function(Q,z,H){var f;((f=Q.HI)==null?0:f.vz())&&Q.HI.On("rms",z,H===void 0?!1:H)}; BUc=function(Q,z,H){Q.isPaused()||Q.getCurrentTime()>z||H>10||(Q.play(),g.n1(function(){BUc(Q,Q.getCurrentTime(),H+1)},500))}; PAp=function(Q,z){Q.Mz&&Q.Mz.jH(z)||(Q.Mz&&Q.Mz.dispose(),Q.Mz=z)}; lZ=function(Q){return yA(Q.Ux(),Q.getCurrentTime())}; ahv=function(Q,z){if(Q.OG()===0||Q.hasError())return!1;var H=Q.getCurrentTime()>0;return z>=0&&(Q=Q.MS(),Q.length||!H)?SP(Q,z):H}; Rm=function(Q){Q.e3()&&(Q.HI&&Q.HI.K$("rs_s"),wG&&Q.getCurrentTime()>0&&Q.seekTo(0),Q.OH(),Q.load(),PAp(Q,null));delete Q.L}; Qu=function(Q){switch(Q.JF()){case 2:return"progressive.net.retryexhausted";case 3:return Q=Q.q8(),(Q==null?0:Q.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||UZJ&&(Q==null?0:Q.includes("audio_output_change"))?"capability.changed":"fmt.decode";case 4:return"fmt.unplayable";case 5:return"drm.unavailable";case 1E3:return"capability.changed";default:return null}}; g.zE=function(Q,z,H){this.WS=z===void 0?null:z;this.seekSource=H===void 0?null:H;this.state=Q||64}; HR=function(Q,z,H){H=H===void 0?!1:H;return cTv(Q,z.getCurrentTime(),(0,g.NV)(),lZ(z),H)}; fx=function(Q,z,H,f){if(!(z===Q.state&&H===Q.WS&&f===Q.seekSource||z!==void 0&&(z&128&&!H||z&2&&z&16))){var b;if(b=z)b=z||Q.state,b=!!(b&16||b&32);Q=new g.zE(z,H,b?f?f:Q.seekSource:null)}return Q}; bC=function(Q,z,H){return fx(Q,Q.state|z,null,H===void 0?null:H)}; Lx=function(Q,z){return fx(Q,Q.state&~z,null,null)}; uC=function(Q,z,H,f){return fx(Q,(Q.state|z)&~H,null,f===void 0?null:f)}; g.w=function(Q,z){return!!(Q.state&z)}; g.Sm=function(Q,z){return z.state===Q.state&&z.WS===Q.WS}; Xn=function(Q){return Q.isPlaying()&&!g.w(Q,16)&&!g.w(Q,32)}; vR=function(Q){return g.w(Q,128)?-1:g.w(Q,2)?0:g.w(Q,2048)?3:g.w(Q,64)?-1:g.w(Q,1)&&!g.w(Q,32)?3:g.w(Q,8)?1:g.w(Q,4)?2:-1}; qv=function(Q,z,H,f,b,L,u,X,v,y,q,M,C,t,E,G,x){g.h.call(this);var J=this;this.KP=Q;this.slot=z;this.layout=H;this.Vl=f;this.Bz=b;this.cI=L;this.K3=u;this.Gq=X;this.le=v;this.NK=y;this.position=M;this.j=C;this.qc=t;this.b1=E;this.QP=G;this.context=x;this.rP=!0;this.S=!1;this.Ri="not_rendering";this.B=!1;this.L=new Eh;Q=bY(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.Ij=new oh(H.wT,this.Vl,Q,H.layoutId);var I;Q=((I=yu(this))==null?void 0:I.progressCommands)||[];this.D=new av_(v, Q,H.layoutId,function(){return J.BC()}); this.Z=new CAu({adCpn:this.layout.layoutId,CE:x.CE,Lv5:this.b1,rQ:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})}; Mv=function(Q){return{layoutId:Q.qS(),zN:Q.b1,wQ:Q.cI.get(),ri:Q.MB()}}; Cx=function(Q,z){return z.layoutId!==Q.layout.layoutId?(Q.KP.HS(Q.slot,z,new Ha("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+Q.layout.layoutId+("and LayoutType: "+Q.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; tG=function(Q){Q.Ri="rendering_start_requested";Q.NK(-1)}; yu=function(Q){return bY(Q.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; ipc=function(Q){MZ("Received layout exit signal when not in layout exit flow.",Q.slot,Q.layout)}; hvc=function(Q){var z;return((z=EH(Q.cI.get(),2))==null?void 0:z.clientPlaybackNonce)||""}; px=function(Q,z){switch(z){case "normal":Q.CH("complete");break;case "skipped":Q.CH("skip");break;case "abandoned":rP(Q.Ij,"impression")&&Q.CH("abandon")}}; nx=function(Q,z){Q.S||(z=new g.Cp(z.state,new g.zE),Q.S=!0);return z}; gn=function(Q,z){qC(z)?Q.NK(1):g.Ex(z,4)&&!g.Ex(z,2)&&Q.jY();tT(z,4)<0&&!(tT(z,2)<0)&&Q.lM()}; W56=function(Q){Q.position===0&&(Q.Gq.get(),Q=bY(Q.layout.clientMetadata,"metadata_type_ad_placement_config").kind,Q={adBreakType:Z$(Q)},ib("ad_bl"),g.hN(Q))}; GE=function(Q,z){AX(Q.Ij,z,!Q.B)}; K5Y=function(Q){var z;return(((z=yu(Q))==null?void 0:z.progressCommands)||[]).findIndex(function(H){return!!g.K(H==null?void 0:H.command,DZJ)})!==-1}; $d=function(Q,z){var H=bY(Q.clientMetadata,"metadata_type_eligible_for_ssap");return H===void 0?(MZ("Expected SSAP eligibility in PlayerBytes factory",Q),!1):z.MB(H)}; jm=function(Q,z){if(!mm(z.get(),"html5_ssap_pass_transition_reason"))return 3;switch(Q){case "skipped":case "muted":case "user_input_submitted":return 3;case "normal":return 2;case "error":return MZ("Unexpected error from cPACF during rendering"),6;case "abandoned":return 5;case "user_cancelled":case "unknown":return MZ("Unexpected layout exit reason",void 0,void 0,{layoutExitReason:Q}),3;default:b5(Q,"unknown layoutExitReason")}}; VhY=function(Q){MZ("getExitReason: unexpected reason",void 0,void 0,{reason:Q})}; Fn=function(Q,z){if(mm(z.get(),"html5_ssap_pass_transition_reason"))switch(Q){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return VhY(Q),"abandoned";case 3:case 1:return VhY(Q),"error";default:b5(Q,"unexpected transition reason")}else switch(Q){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return MZ("getExitReason: unexpected reason",void 0,void 0,{reason:Q}),"error";default:b5(Q,"unexpected transition reason")}}; xd=function(Q,z,H){DA(Q,H)||Vv(Q,z,H);DA(Q,"video_to_ad")||Vv(Q,z,"video_to_ad");DA(Q,"ad_to_video")||Vv(Q,z,"ad_to_video");DA(Q,"ad_to_ad")||Vv(Q,z,"ad_to_ad")}; OH=function(Q,z,H,f,b,L,u,X,v,y,q,M,C,t,E,G,x,J){qv.call(this,Q,z,H,f,b,L,u,X,y,q,M,C,t,E,G,x,J);var I=this;this.Rq=v;this.jd=M;this.Ua=!0;this.rG=this.rS=0;this.Dq=EE(function(){vU6(Mv(I));I.KP.Fa(I.slot,I.layout)}); this.pU=EE(function(){yTv(Mv(I));I.Ri!=="rendering_stop_requested"&&I.jd(I);I.layoutExitReason?I.KP.kN(I.slot,I.layout,I.layoutExitReason):ipc(I)}); this.hM=new g.xr(200);this.hM.listen("tick",function(){I.A7()}); g.W(this,this.hM)}; JG=function(Q){Q.rG=Date.now();oc(Q,Q.rS);Q.hM.start()}; dZ6=function(Q){Q.rS=Q.BC();Q.IK(Q.rS/1E3,!0);oc(Q,Q.rS)}; oc=function(Q,z){z={current:z/1E3,duration:Q.BC()/1E3};Q.Rq.get().Wn("onAdPlaybackProgress",z)}; Nv=function(Q){OH.call(this,Q.KP,Q.slot,Q.AN,Q.Vl,Q.Bz,Q.cI,Q.K3,Q.Gq,Q.Rq,Q.le,Q.NK,Q.jd,Q.gN,Q.Ny,Q.qc,Q.b1,Q.QP,Q.context)}; Ic=function(Q){OH.call(this,Q.KP,Q.slot,Q.AN,Q.Vl,Q.Bz,Q.cI,Q.K3,Q.Gq,Q.Rq,Q.le,Q.NK,Q.jd,Q.gN,Q.Ny,Q.qc,Q.b1,Q.QP,Q.context)}; AG=function(){Ic.apply(this,arguments)}; mZu=function(Q){return $d(Q.slot,Q.qc.get())?new AG(Q):new Nv(Q)}; sH=function(Q){qv.call(this,Q.callback,Q.slot,Q.AN,Q.Vl,Q.Bz,Q.cI,Q.K3,Q.Gq,Q.le,Q.NK,Q.jd,Q.gN,Q.Ny,Q.qc,Q.b1,Q.QP,Q.context);var z=this;this.adCpn="";this.Mq=this.rC=0;this.Dq=EE(function(){vU6(Mv(z));z.KP.Fa(z.slot,z.layout)}); this.pU=EE(function(){yTv(Mv(z));z.Ri!=="rendering_stop_requested"&&z.jd(z);z.layoutExitReason?z.KP.kN(z.slot,z.layout,z.layoutExitReason):ipc(z)}); this.Xt=Q.Xt;this.t7=Q.t7;this.n5=Q.n5;this.Rq=Q.Rq;this.sx=Q.sx;this.jd=Q.jd;if(!this.MB()){mm(this.qc.get(),"html5_disable_media_load_timeout")||(this.V7=new g.e_(function(){z.Ra("load_timeout",new Ha("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); Q=Yd(this.qc.get());var H=rn(this.qc.get());Q&&H&&(this.aZ=new g.e_(function(){var f=bY(z.layout.clientMetadata,"metadata_type_preload_player_vars");f&&z.t7.get().K.preloadVideoByPlayerVars(f,2,300)}))}}; kS9=function(Q,z){var H=bY(z.clientMetadata,"metadata_type_ad_video_id"),f=bY(z.clientMetadata,"metadata_type_legacy_info_card_vast_extension");H&&f&&Q.sx.get().K.C().f3.add(H,{BV:f});(z=bY(z.clientMetadata,"metadata_type_sodar_extension_data"))&&Tl8(Q.Xt.get(),z);w6n(Q.K3.get(),!1)}; TUY=function(Q){w6n(Q.K3.get(),!0);var z;((z=Q.shrunkenPlayerBytesConfig)==null?0:z.shouldRequestShrunkenPlayerBytes)&&Q.K3.get().Pe(!1)}; BR=function(){sH.apply(this,arguments)}; PR=function(){BR.apply(this,arguments)}; evn=function(Q){return mZu(Object.assign({},Q,{KP:Q.callback,NK:function(){}}))}; lhc=function(Q){return new sH(Object.assign({},Q,{NK:function(z){Q.Rq.get().Wn("onAdIntroStateChange",z)}}))}; Rv_=function(Q){function z(H){Q.Rq.get().hQ(H)} return $d(Q.slot,Q.qc.get())?new PR(Object.assign({},Q,{NK:z})):new sH(Object.assign({},Q,{NK:z}))}; ac=function(Q){for(var z=Q.AN,H=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],f=g.n(JX()),b=f.next();!b.done;b=f.next())H.push(b.value);if(T4(z,{q4:H,tM:["LAYOUT_TYPE_MEDIA_BREAK"]}))return evn(Q);z=Q.AN;H=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];f=g.n(JX());for(b=f.next();!b.done;b=f.next())H.push(b.value);if(T4(z,{q4:H,tM:["LAYOUT_TYPE_MEDIA"]}))return RX(Q.AN.clientMetadata,"metadata_type_ad_intro")?lhc(Q):Rv_(Q)}; zAv=function(Q){var z=bY(Q.clientMetadata,"metadata_type_ad_placement_config").kind,H=bY(Q.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:Q.layoutId,adType:Qop(H),adBreakType:Z$(z)}}; Z$=function(Q){switch(Q){case "AD_PLACEMENT_KIND_START":return"LATENCY_AD_BREAK_TYPE_PREROLL";case "AD_PLACEMENT_KIND_MILLISECONDS":case "AD_PLACEMENT_KIND_COMMAND_TRIGGERED":case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":return"LATENCY_AD_BREAK_TYPE_MIDROLL";case "AD_PLACEMENT_KIND_END":return"LATENCY_AD_BREAK_TYPE_POSTROLL";default:return"LATENCY_AD_BREAK_TYPE_UNKNOWN"}}; Qop=function(Q){switch(Q){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; Hj8=function(Q){try{return new UH(Q.Hr,Q.slot,Q.layout,Q.fp,Q.kJ,Q.cI,Q.xN,Q.t7,Q.r4,Q.K3,Q.JFI,Q)}catch(z){}}; UH=function(Q,z,H,f,b,L,u,X,v,y,q,M){g.h.call(this);this.Hr=Q;this.slot=z;this.layout=H;this.fp=f;this.kJ=b;this.cI=L;this.xN=u;this.t7=X;this.r4=v;this.K3=y;this.params=M;this.rP=!0;Q=ac(q);if(!Q)throw Error("Invalid params for sublayout");this.Fg=Q}; fAn=function(){this.Z=1;this.B=new Eh}; cR=function(Q,z,H,f,b,L,u,X,v,y,q,M,C){g.h.call(this);this.callback=Q;this.cI=z;this.xN=H;this.t7=f;this.K3=b;this.Gq=L;this.yO=u;this.slot=X;this.layout=v;this.fp=y;this.nE=q;this.r4=M;this.qc=C;this.rP=!0;this.Pk=!1;this.uW=[];this.yY=-1;this.cM=!1;this.Y$=new fAn}; bjc=function(Q){var z;return(z=Q.layout.qF)!=null?z:bY(Q.layout.clientMetadata,"metadata_type_sub_layouts")}; iC=function(Q){return{wQ:Q.cI.get(),zN:!1,ri:Q.MB()}}; Ly8=function(Q,z,H){if(Q.Kt()===Q.uW.length-1){var f,b;MZ("Unexpected skip requested during the last sublayout",(f=Q.Ft())==null?void 0:f.hZ(),(b=Q.Ft())==null?void 0:b.Ql(),{requestingSlot:z,requestingLayout:H})}}; u7n=function(Q,z,H){return H.layoutId!==hG(Q,z,H)?(MZ("onSkipRequested for a PlayerBytes layout that is not currently active",Q.hZ(),Q.Ql()),!1):!0}; SSa=function(Q){Q.Kt()===Q.uW.length-1&&MZ("Unexpected skip with target requested during the last sublayout")}; XCZ=function(Q,z,H){return H.renderingContent===void 0&&H.layoutId!==hG(Q,z,H)?(MZ("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",Q.hZ(),Q.Ql(),{requestingSlot:z,requestingLayout:H}),!1):!0}; vxL=function(Q,z,H,f){var b=bY(z.Ql().clientMetadata,"metadata_type_ad_pod_skip_target");if(b&&b>0&&b0)){MZ("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",Q.slot,Q.layout,{indexToPlay:z,layoutId:Q.layout.layoutId});break a}Q.yY=z;z=Q.Ft();if(Q.Kt()>0&&!Q.MB()){var H=Q.Gq.get();H.B=!1;var f={};H.Z&&H.videoId&&(f.cttAuthInfo={token:H.Z,videoId:H.videoId});WC("ad_to_ad",f)}Q.oL(z)}}; Vu=function(Q){cR.call(this,Q.Hr,Q.cI,Q.xN,Q.t7,Q.K3,Q.Gq,Q.yO,Q.slot,Q.layout,Q.fp,Q.nE,Q.r4,Q.qc)}; MVa=function(Q){(Q=Q.Ft())&&Q.Gn()}; dn=function(Q){cR.call(this,Q.Hr,Q.cI,Q.xN,Q.t7,Q.K3,Q.Gq,Q.yO,Q.slot,Q.layout,Q.fp,Q.nE,Q.r4,Q.qc);this.b2=void 0}; Cbn=function(Q,z){Q.a$()&&!nG(Q.Y$.B)||Q.callback.kN(Q.slot,Q.layout,z)}; mn=function(Q){return mm(Q.qc.get(),"html5_ssap_pass_transition_reason")}; tVp=function(Q,z,H){z.dZ().currentState<2&&(H=Fn(H,Q.qc),z.eA(z.Ql(),H));H=z.dZ().Z;Q.GC(Q.slot,z.Ql(),H)}; Ex8=function(Q,z){if(Q.Y$.B.currentState<2){var H=Fn(z,Q.qc);H==="error"?Q.callback.HS(Q.slot,Q.layout,new Ha("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:z},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):Kx(Q.nE,Q.layout,H)}}; wn=function(Q,z,H){z.dZ().currentState>=2||(z.eA(z.Ql(),H),nG(z.dZ())&&(JO(Q.yO,Q.slot,z.Ql(),H),Q.b2=void 0))}; pCu=function(Q,z){Q.Y$.Z===2&&z!==Q.jN()&&MZ("onClipEntered: unknown cpn",Q.slot,Q.layout,{cpn:z})}; nxk=function(Q,z){var H=Q.Ft();if(H){var f=H.Ql().layoutId,b=Q.Kt()+1;Q.a$()?wn(Q,H,z):H.eA(H.Ql(),z);b>=0&&bb&&u.To(q,b-f);return q}; oxa=function(Q,z,H){var f=bY(z.clientMetadata,"metadata_type_sodar_extension_data");if(f)try{Tl8(H,f)}catch(b){MZ("Unexpected error when loading Sodar",Q,z,{error:b})}}; JNL=function(Q,z,H,f,b,L,u){zT(Q,z,new g.Cp(H,new g.zE),f,b,u,!1,L)}; zT=function(Q,z,H,f,b,L,u,X){u=u===void 0?!0:u;qC(H)&&MC(b,0,null)&&(!rP(Q,"impression")&&X&&X(),Q.CH("impression"));rP(Q,"impression")&&(g.Ex(H,4)&&!g.Ex(H,2)&&Q.IJ("pause"),tT(H,4)<0&&!(tT(H,2)<0)&&Q.IJ("resume"),g.Ex(H,16)&&b>=.5&&Q.IJ("seek"),u&&g.Ex(H,2)&&HZ(Q,H.state,z,f,b,L))}; HZ=function(Q,z,H,f,b,L,u,X){rP(Q,"impression")&&(L?(L=b-f,L=L>=-1&&L<=2):L=Math.abs(f-b)<=1,f6(Q,z,L?f:b,H,f,u,X&&L),L&&Q.CH("complete"))}; f6=function(Q,z,H,f,b,L,u){Yy(Q,H*1E3,u);b<=0||H<=0||(z==null?0:g.w(z,16))||(z==null?0:g.w(z,32))||(MC(H,b*.25,f)&&(L&&!rP(Q,"first_quartile")&&L("first"),Q.CH("first_quartile")),MC(H,b*.5,f)&&(L&&!rP(Q,"midpoint")&&L("second"),Q.CH("midpoint")),MC(H,b*.75,f)&&(L&&!rP(Q,"third_quartile")&&L("third"),Q.CH("third_quartile")))}; NEc=function(Q,z){rP(Q,"impression")&&Q.IJ(z?"fullscreen":"end_fullscreen")}; IAa=function(Q){rP(Q,"impression")&&Q.IJ("clickthrough")}; ANJ=function(Q){Q.IJ("active_view_measurable")}; YSu=function(Q){rP(Q,"impression")&&!rP(Q,"seek")&&Q.IJ("active_view_fully_viewable_audible_half_duration")}; rNL=function(Q){rP(Q,"impression")&&!rP(Q,"seek")&&Q.IJ("active_view_viewable")}; sou=function(Q){rP(Q,"impression")&&!rP(Q,"seek")&&Q.IJ("audio_audible")}; BEu=function(Q){rP(Q,"impression")&&!rP(Q,"seek")&&Q.IJ("audio_measurable")}; PbY=function(Q,z,H,f,b,L,u,X,v,y,q,M){this.callback=Q;this.slot=z;this.layout=H;this.xN=f;this.Ij=b;this.K3=L;this.eZ=u;this.Bz=X;this.Xt=v;this.qc=y;this.Vl=q;this.cI=M;this.Ua=!0;this.Tq=this.Ri=null;this.adCpn=void 0;this.Z=!1}; aAA=function(Q,z,H){var f;Q0(Q.Vl.get(),"ads_qua","cpn."+bY(Q.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((f=EH(Q.cI.get(),2))==null?void 0:f.clientPlaybackNonce)+";qt."+z+";clr."+H)}; Uq8=function(Q,z){var H,f;Q0(Q.Vl.get(),"ads_imp","cpn."+bY(Q.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((H=EH(Q.cI.get(),2))==null?void 0:H.clientPlaybackNonce)+";clr."+z+";skp."+!!g.K((f=bY(Q.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:f.skipOrPreviewRenderer,bB))}; L6=function(Q){return{enterMs:bY(Q.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:bY(Q.clientMetadata,"metadata_type_layout_exit_ms")}}; uB=function(Q,z,H,f,b,L,u,X,v,y,q,M,C,t){TE.call(this,Q,z,H,f,b,u,X,v,y,M);this.eZ=L;this.Xt=q;this.Bz=C;this.qc=t;this.Tq=this.Ri=null}; cNu=function(Q,z){var H;Q0(Q.Vl.get(),"ads_imp","acpn."+((H=EH(Q.cI.get(),2))==null?void 0:H.clientPlaybackNonce)+";clr."+z)}; ijJ=function(Q,z,H){var f;Q0(Q.Vl.get(),"ads_qua","cpn."+bY(Q.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((f=EH(Q.cI.get(),2))==null?void 0:f.clientPlaybackNonce)+";qt."+z+";clr."+H)}; Sp=function(Q,z,H,f,b,L,u,X,v,y,q,M,C,t,E,G,x,J,I,r,U){this.r4=Q;this.fp=z;this.nE=H;this.cI=f;this.xN=b;this.K3=L;this.Vl=u;this.eZ=X;this.u8=v;this.Bz=y;this.Xt=q;this.t7=M;this.n5=C;this.Gq=t;this.Rq=E;this.le=G;this.sx=x;this.qc=J;this.Z=I;this.context=r;this.QP=U}; XO=function(Q,z,H,f,b,L,u,X,v,y,q,M,C,t,E,G,x,J){this.r4=Q;this.fp=z;this.nE=H;this.Vl=f;this.Bz=b;this.Xt=L;this.t7=u;this.cI=X;this.K3=v;this.n5=y;this.Gq=q;this.Rq=M;this.le=C;this.sx=t;this.qc=E;this.xN=G;this.context=x;this.QP=J}; hAk=function(Q,z,H,f){SE.call(this,"survey-interstitial",Q,z,H,f)}; vZ=function(Q,z,H,f,b){ni.call(this,H,Q,z,f);this.Vl=b;Q=bY(z.clientMetadata,"metadata_type_ad_placement_config");this.Ij=new oh(z.wT,b,Q,z.layoutId)}; y0=function(Q){return Math.round(Q.width)+"x"+Math.round(Q.height)}; MM=function(Q,z,H){H=H===void 0?qM:H;H.widthQ.width*Q.height*.2)return{fC:3,eP:501,errorMessage:"ad("+y0(H)+") to container("+y0(Q)+") ratio exceeds limit."};if(H.height>Q.height/3-z)return{fC:3,eP:501,errorMessage:"ad("+y0(H)+") covers container("+y0(Q)+") center."}}; Wy9=function(Q,z){var H=bY(Q.clientMetadata,"metadata_type_ad_placement_config");return new oh(Q.wT,z,H,Q.layoutId)}; C6=function(Q){return bY(Q.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")}; t2=function(Q,z,H,f){SE.call(this,"invideo-overlay",Q,z,H,f);this.interactionLoggingClientData=f}; Ev=function(Q,z,H,f,b,L,u,X,v,y,q,M){ni.call(this,L,Q,z,b);this.Vl=H;this.D=u;this.K3=X;this.le=v;this.qc=y;this.j=q;this.S=M;this.Ij=Wy9(z,H)}; DqJ=function(){var Q=["metadata_type_invideo_overlay_ad_renderer"];JX().forEach(function(z){Q.push(z)}); return{q4:Q,tM:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; p6=function(Q,z,H,f,b,L,u,X,v,y,q,M,C){ni.call(this,L,Q,z,b);this.Vl=H;this.D=u;this.N=X;this.K3=v;this.le=y;this.qc=q;this.j=M;this.S=C;this.Ij=Wy9(z,H)}; Kyc=function(){for(var Q=["metadata_type_invideo_overlay_ad_renderer"],z=g.n(JX()),H=z.next();!H.done;H=z.next())Q.push(H.value);return{q4:Q,tM:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; n6=function(Q){this.K3=Q;this.Z=!1}; VVa=function(Q,z,H){SE.call(this,"survey",Q,{},z,H)}; g0=function(Q,z,H,f,b,L,u){ni.call(this,H,Q,z,f);this.D=b;this.K3=L;this.qc=u}; dqn=function(Q,z,H,f,b,L,u,X,v,y){this.ZS=Q;this.K3=z;this.Vl=H;this.D=f;this.Bz=b;this.B=L;this.L=u;this.le=X;this.qc=v;this.Z=y}; mqv=function(Q,z,H,f,b,L,u,X,v,y){this.ZS=Q;this.K3=z;this.Vl=H;this.D=f;this.Bz=b;this.B=L;this.L=u;this.le=X;this.qc=v;this.Z=y}; Zi=function(Q,z,H,f,b,L,u,X,v,y){Ht.call(this,Q,z,H,f,b,L,u,v);this.M0=X;this.cI=y}; wC8=function(){var Q=QQ8();Q.q4.push("metadata_type_ad_info_ad_metadata");return Q}; kvp=function(Q,z,H,f,b,L,u){this.ZS=Q;this.K3=z;this.Vl=H;this.B=f;this.M0=b;this.Z=L;this.cI=u}; TEv=function(Q,z,H,f,b,L,u,X){this.ZS=Q;this.K3=z;this.Vl=H;this.B=f;this.M0=b;this.Z=L;this.qc=u;this.cI=X}; GT=function(Q,z){this.slotId=z;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=Q(this.triggerType)}; $E=function(Q,z){this.adPodIndex=Q;this.Z=z.length;this.adBreakLengthSeconds=z.reduce(function(f,b){return f+b},0); var H=0;for(Q+=1;Q0}; LY=function(Q){return!!(Q.OHn&&Q.slot&&Q.layout)}; ug=function(Q){var z,H=(z=Q.config)==null?void 0:z.adPlacementConfig;Q=Q.renderer;return!(!H||H.kind==null||!Q)}; yra=function(Q){if(!lB(Q.adLayoutMetadata))return!1;Q=Q.renderingContent;return g.K(Q,XI)||g.K(Q,vt)||g.K(Q,ua)||g.K(Q,SM)?!0:!1}; SG=function(Q){return Q.playerVars!==void 0&&Q.pings!==void 0&&Q.externalVideoId!==void 0}; tA=function(Q){if(!lB(Q.adLayoutMetadata))return!1;Q=Q.renderingContent;var z=g.K(Q,X4);return z?vc(z):(z=g.K(Q,yb))?SG(z):(z=g.K(Q,qd))?z.playerVars!==void 0:(z=g.K(Q,XI))?z.durationMilliseconds!==void 0:g.K(Q,Md)||g.K(Q,CY)?!0:!1}; vc=function(Q){Q=(Q.sequentialLayouts||[]).map(function(z){return g.K(z,Ey)}); return Q.length>0&&Q.every(tA)}; nY=function(Q){return lB(Q.adLayoutMetadata)?(Q=g.K(Q.renderingContent,pY))&&Q.pings?!0:!1:!1}; pma=function(Q){if(!lB(Q.adLayoutMetadata))return!1;if(g.K(Q.renderingContent,q1Y)||g.K(Q.renderingContent,Md9))return!0;var z=g.K(Q.renderingContent,gg);return g.K(Q.renderingContent,Zq)||g.K(z==null?void 0:z.sidePanel,CGu)||g.K(z==null?void 0:z.sidePanel,td9)||g.K(z==null?void 0:z.sidePanel,ES9)?!0:!1}; $rp=function(Q){var z;(z=!Q)||(z=Q.adSlotMetadata,z=!((z==null?void 0:z.slotId)!==void 0&&(z==null?void 0:z.slotType)!==void 0));if(z||!(nSc(Q)||Q.slotEntryTrigger&&Q.slotFulfillmentTriggers&&Q.slotExpirationTriggers))return!1;var H;Q=(H=Q.fulfillmentContent)==null?void 0:H.fulfilledLayout;return(H=g.K(Q,Ey))?tA(H):(H=g.K(Q,GC))?pma(H):(H=g.K(Q,gSA))?yra(H):(H=g.K(Q,Z4L))?Xmn(H):(H=g.K(Q,Gpu))?lB(H.adLayoutMetadata)?g.K(H.renderingContent,R9)?!0:!1:!1:(Q=g.K(Q,Nd))?nY(Q):!1}; nSc=function(Q){var z;Q=g.K((z=Q.fulfillmentContent)==null?void 0:z.fulfilledLayout,GC);var H;return Q&&((H=Q.adLayoutMetadata)==null?void 0:H.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&Q.layoutExitNormalTriggers===void 0}; jtk=function(Q){var z;return(Q==null?void 0:(z=Q.adSlotMetadata)==null?void 0:z.slotType)==="SLOT_TYPE_IN_PLAYER"}; xrn=function(Q,z){var H;if((H=Q.questions)==null||!H.length||!Q.playbackCommands||(z===void 0||!z)&&Q.questions.length!==1)return!1;Q=g.n(Q.questions);for(z=Q.next();!z.done;z=Q.next()){z=z.value;var f=H=void 0,b=((H=g.K(z,IV))==null?void 0:H.surveyAdQuestionCommon)||((f=g.K(z,AA))==null?void 0:f.surveyAdQuestionCommon);if(!Fta(b))return!1}return!0}; O4J=function(Q){Q=((Q==null?void 0:Q.playerOverlay)||{}).instreamSurveyAdRenderer;var z;if(Q)if(Q.playbackCommands&&Q.questions&&Q.questions.length===1){var H,f=((z=g.K(Q.questions[0],IV))==null?void 0:z.surveyAdQuestionCommon)||((H=g.K(Q.questions[0],AA))==null?void 0:H.surveyAdQuestionCommon);z=Fta(f)}else z=!1;else z=!1;return z}; Fta=function(Q){if(!Q)return!1;Q=g.K(Q.instreamAdPlayerOverlay,YN);var z=g.K(Q==null?void 0:Q.skipOrPreviewRenderer,bB),H=g.K(Q==null?void 0:Q.adInfoRenderer,rg);return(g.K(Q==null?void 0:Q.skipOrPreviewRenderer,sy)||z)&&H?!0:!1}; oSa=function(Q){return Q.linearAds!=null&&lB(Q.adLayoutMetadata)}; JrA=function(Q){return Q.linearAd!=null&&Q.adVideoStart!=null}; Ntp=function(Q){if(isNaN(Number(Q.timeoutSeconds))||!Q.text||!Q.ctaButton||!g.K(Q.ctaButton,g.Bc)||!Q.brandImage)return!1;var z;return Q.backgroundImage&&g.K(Q.backgroundImage,Pc)&&((z=g.K(Q.backgroundImage,Pc))==null?0:z.landscape)?!0:!1}; aV=function(Q,z,H,f,b,L,u){g.h.call(this);this.qc=Q;this.Z=z;this.L=f;this.cI=b;this.D=L;this.B=u}; Y1Y=function(Q,z,H){var f,b=((f=H.adSlots)!=null?f:[]).map(function(X){return g.K(X,Uy)}); if(H.un)if(bY(z.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))Ci(Q.Z.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},z.slotId); else{if(Q.qc.get().K.C().V("h5_check_forecasting_renderer_for_throttled_midroll")){var L=H.LW.filter(function(X){var v;return((v=X.renderer)==null?void 0:v.clientForecastingAdRenderer)!=null}); L.length!==0?Itk(Q.B,L,b,z.slotId,H.ssdaiAdsConfig):Ci(Q.Z.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},z.slotId)}else Ci(Q.Z.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},z.slotId); Aru(Q.D,z)}else{var u;f={ET:Math.round(((L=bY(z.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:L.ET)||0),Ja:(u=bY(z.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:u.Ja};Itk(Q.B,H.LW,b,z.slotId,H.ssdaiAdsConfig,f)}}; stL=function(Q,z,H,f,b,L,u){var X=EH(Q.cI.get(),1);Ci(Q.Z.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return rr_(Q.L.get(),H,f,b,X.clientPlaybackNonce,X.Lq,X.daiEnabled,X,L,u)},z)}; PGL=function(Q,z,H,f,b,L,u){z=Btk(z,L,Number(f.prefetchMilliseconds)||0,u);Q=z instanceof e?z:cc(Q,f,b,z,H);return Q instanceof e?Q:[Q]}; atn=function(Q,z,H,f,b){var L=tX(Q.B.get(),"SLOT_TYPE_AD_BREAK_REQUEST");f=[new Pe({getAdBreakUrl:f.getAdBreakUrl,ET:0,Ja:0}),new Tg(!0)];Q=z.pauseDurationMs?z.lactThresholdMs?{slotId:L,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new m9(Q.Z,L),slotFulfillmentTriggers:[new lAn(Q.Z)],slotExpirationTriggers:[new iB(Q.Z,b),new K6(Q.Z,L)],hh:"core",clientMetadata:new fN(f),adSlotLoggingData:H}:new e("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new e("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return Q instanceof e?Q:[Q]}; UrA=function(Q){var z,H;return((z=Q.renderer)==null?void 0:(H=z.adBreakServiceRenderer)==null?void 0:H.getAdBreakUrl)!==void 0}; ig=function(Q,z,H){if(Q.beforeContentVideoIdStartedTrigger)Q=Q.beforeContentVideoIdStartedTrigger?new jp(z3,z,Q.id):new e("Not able to create BeforeContentVideoIdStartedTrigger");else{if(Q.layoutIdExitedTrigger){var f;z=(f=Q.layoutIdExitedTrigger)!=null&&f.triggeringLayoutId?new NM(z3,Q.layoutIdExitedTrigger.triggeringLayoutId,Q.id):new e("Not able to create LayoutIdExitedTrigger")}else{if(Q.layoutExitedForReasonTrigger){var b,L;((b=Q.layoutExitedForReasonTrigger)==null?0:b.triggeringLayoutId)&&((L= Q.layoutExitedForReasonTrigger)==null?0:L.layoutExitReason)?(z=RAZ(Q.layoutExitedForReasonTrigger.layoutExitReason),Q=z instanceof e?z:new J2(z3,Q.layoutExitedForReasonTrigger.triggeringLayoutId,[z],Q.id)):Q=new e("Not able to create LayoutIdExitedForReasonTrigger")}else{if(Q.onLayoutSelfExitRequestedTrigger){var u;z=(u=Q.onLayoutSelfExitRequestedTrigger)!=null&&u.triggeringLayoutId?new cZ(z3,Q.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,Q.id):new e("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(Q.onNewPlaybackAfterContentVideoIdTrigger)Q= Q.onNewPlaybackAfterContentVideoIdTrigger?new iB(z3,z,Q.id):new e("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(Q.skipRequestedTrigger){var X;z=(X=Q.skipRequestedTrigger)!=null&&X.triggeringLayoutId?new WZ(z3,Q.skipRequestedTrigger.triggeringLayoutId,Q.id):new e("Not able to create SkipRequestedTrigger")}else if(Q.slotIdEnteredTrigger){var v;z=(v=Q.slotIdEnteredTrigger)!=null&&v.triggeringSlotId?new Di(z3,Q.slotIdEnteredTrigger.triggeringSlotId,Q.id):new e("Not able to create SlotIdEnteredTrigger")}else if(Q.slotIdExitedTrigger){var y; z=(y=Q.slotIdExitedTrigger)!=null&&y.triggeringSlotId?new K6(z3,Q.slotIdExitedTrigger.triggeringSlotId,Q.id):new e("Not able to create SkipRequestedTrigger")}else if(Q.surveySubmittedTrigger){var q;z=(q=Q.surveySubmittedTrigger)!=null&&q.triggeringLayoutId?new kE(z3,Q.surveySubmittedTrigger.triggeringLayoutId,Q.id):new e("Not able to create SurveySubmittedTrigger")}else{if(Q.mediaResumedTrigger)Q=Q.mediaResumedTrigger&&Q.id?new Qtu(Q.id):new e("Not able to create MediaResumedTrigger");else{if(Q.closeRequestedTrigger){var M; z=(M=Q.closeRequestedTrigger)!=null&&M.triggeringLayoutId?new FO(z3,Q.closeRequestedTrigger.triggeringLayoutId,Q.id):new e("Not able to create CloseRequestedTrigger")}else if(Q.slotIdScheduledTrigger){var C;z=(C=Q.slotIdScheduledTrigger)!=null&&C.triggeringSlotId?new m9(z3,Q.slotIdScheduledTrigger.triggeringSlotId,Q.id):new e("Not able to create SlotIdScheduledTrigger")}else{if(Q.mediaTimeRangeTrigger){var t;f=Number((t=Q.mediaTimeRangeTrigger)==null?void 0:t.offsetStartMilliseconds);var E;u=Number((E= Q.mediaTimeRangeTrigger)==null?void 0:E.offsetEndMilliseconds);isFinite(f)&&isFinite(u)?(E=u,E===-1&&(E=H),H=f>E?new e("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:f,offsetEndMs:E},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",E===H&&f-500<=E):new xF(f,E),Q=H instanceof e?H:new BZ(z3,z,H,!1,Q.id)):Q=new e("Not able to create MediaTimeRangeTrigger")}else if(Q.contentVideoIdEndedTrigger)Q=Q.contentVideoIdEndedTrigger?new xE(z3,z,!1,Q.id):new e("Not able to create ContentVideoIdEndedTrigger"); else{if(Q.layoutIdEnteredTrigger){var G;z=(G=Q.layoutIdEnteredTrigger)!=null&&G.triggeringLayoutId?new o9(z3,Q.layoutIdEnteredTrigger.triggeringLayoutId,Q.id):new e("Not able to create LayoutIdEnteredTrigger")}else if(Q.timeRelativeToLayoutEnterTrigger){var x;z=(x=Q.timeRelativeToLayoutEnterTrigger)!=null&&x.triggeringLayoutId?new TT(z3,Number(Q.timeRelativeToLayoutEnterTrigger.durationMs),Q.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,Q.id):new e("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(Q.onDifferentLayoutIdEnteredTrigger){var J; z=(J=Q.onDifferentLayoutIdEnteredTrigger)!=null&&J.triggeringLayoutId&&Q.onDifferentLayoutIdEnteredTrigger.slotType&&Q.onDifferentLayoutIdEnteredTrigger.layoutType?new a9(z3,Q.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,Q.onDifferentLayoutIdEnteredTrigger.slotType,Q.onDifferentLayoutIdEnteredTrigger.layoutType,Q.id):new e("Not able to create CloseRequestedTrigger")}else{if(Q.liveStreamBreakStartedTrigger)Q=Q.liveStreamBreakStartedTrigger&&Q.id?new r0(z3,Q.id):new e("Not able to create LiveStreamBreakStartedTrigger"); else if(Q.liveStreamBreakEndedTrigger)Q=Q.liveStreamBreakEndedTrigger&&Q.id?new I9(z3,Q.id):new e("Not able to create LiveStreamBreakEndedTrigger");else{if(Q.liveStreamBreakScheduledDurationMatchedTrigger){var I;z=(I=Q.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&I.breakDurationMs?new A2(Number(Q.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,Q.id):new e("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(Q.liveStreamBreakScheduledDurationNotMatchedTrigger){var r; z=(r=Q.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&r.breakDurationMs?new YE(Number(Q.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,Q.id):new e("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(Q.newSlotScheduledWithBreakDurationTrigger){var U;z=(U=Q.newSlotScheduledWithBreakDurationTrigger)!=null&&U.breakDurationMs?new PZ(Number(Q.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,Q.id):new e("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else z= Q.prefetchCacheExpiredTrigger?new h2(z3,Q.id):new e("Not able to convert an AdsControlflowTrigger.");Q=z}z=Q}Q=z}z=Q}Q=z}z=Q}Q=z}z=Q}Q=z}z=Q}Q=z}return Q}; hA=function(Q,z){z.Z>=2&&(Q.slot_pos=z.adPodIndex);Q.autoplay="1"}; i4Y=function(Q,z,H,f,b,L,u,X){return z===null?new e("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:z,ActionCompanionAdRenderer:f}):[cra(Q,z,u,L,function(v){var y=v.slotId;v=X(v);var q=f.adLayoutLoggingData,M=new fN([new Ul(f),new TL(b)]);y=w4(H.B.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",y);var C={layoutId:y,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",hh:"core"};return{layoutId:y,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",wT:new Map, layoutExitNormalTriggers:[new iB(H.Z,u)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],YN:[],hh:"core",clientMetadata:M,cz:v(C),adLayoutLoggingData:q}})]}; hJn=function(Q,z,H,f,b,L,u,X){return z===null?new e("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:z,TopBannerImageTextIconButtonedLayoutViewModel:f}):[cra(Q,z,u,L,function(v){var y=v.slotId;v=X(v);var q=f.adLayoutLoggingData,M=new fN([new cX(f),new TL(b)]);y=w4(H.B.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",y);var C={layoutId:y,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",hh:"core"};return{layoutId:y,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", wT:new Map,layoutExitNormalTriggers:[new iB(H.Z,u)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],YN:[],hh:"core",clientMetadata:M,cz:v(C),adLayoutLoggingData:q}})]}; Vdn=function(Q,z,H,f,b,L){if(!L)for(z=g.n(z),L=z.next();!L.done;L=z.next())L=L.value,Wc(Q,L.renderer,L.config.adPlacementConfig.kind);Q=Array.from(Q.values()).filter(function(q){return Wtc(q)}); z=[];L=g.n(Q);for(var u=L.next(),X={};!u.done;X={SM:void 0},u=L.next()){X.SM=u.value;u=g.n(X.SM.Sn);for(var v=u.next(),y={};!v.done;y={DK:void 0},v=u.next())y.DK=v.value,v=function(q,M){return function(C){return q.DK.mP(C,M.SM.instreamVideoAdRenderer.elementId,q.DK.jn)}}(y,X),y.DK.isContentVideoCompanion?z.push(Dr_(H,f,b,X.SM.instreamVideoAdRenderer.elementId,y.DK.associatedCompositePlayerBytesLayoutId,y.DK.adSlotLoggingData,v)):Q.length>1?z.push(KtL(H,f,b,X.SM.instreamVideoAdRenderer.elementId,y.DK.adSlotLoggingData, function(q,M){return function(C){return q.DK.mP(C,M.SM.instreamVideoAdRenderer.elementId,q.DK.jn,q.DK.associatedCompositePlayerBytesLayoutId)}}(y,X))):z.push(KtL(H,f,b,X.SM.instreamVideoAdRenderer.elementId,y.DK.adSlotLoggingData,v))}return z}; Wc=function(Q,z,H){if(z=drp(z)){z=g.n(z);for(var f=z.next();!f.done;f=z.next())if((f=f.value)&&f.externalVideoId){var b=Dq(Q,f.externalVideoId);b.instreamVideoAdRenderer||(b.instreamVideoAdRenderer=f,b.xA=H)}else MZ("InstreamVideoAdRenderer without externalVideoId")}}; drp=function(Q){var z=[],H=Q.sandwichedLinearAdRenderer&&Q.sandwichedLinearAdRenderer.linearAd&&g.K(Q.sandwichedLinearAdRenderer.linearAd,yb);if(H)return z.push(H),z;if(Q.instreamVideoAdRenderer)return z.push(Q.instreamVideoAdRenderer),z;if(Q.linearAdSequenceRenderer&&Q.linearAdSequenceRenderer.linearAds){Q=g.n(Q.linearAdSequenceRenderer.linearAds);for(H=Q.next();!H.done;H=Q.next())H=H.value,g.K(H,yb)&&z.push(g.K(H,yb));return z}return null}; Wtc=function(Q){if(Q.instreamVideoAdRenderer===void 0)return MZ("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var z=g.n(Q.Sn),H=z.next();!H.done;H=z.next()){H=H.value;if(H.mP===void 0)return!1;if(H.jn===void 0)return MZ("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(Q.xA===void 0||H.d_===void 0||Q.xA!==H.d_&&H.d_!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(Q.instreamVideoAdRenderer.elementId===void 0)return MZ("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:Q.xA,"matching APSR kind":H.d_}),!1}return!0}; Dq=function(Q,z){Q.has(z)||Q.set(z,{instreamVideoAdRenderer:void 0,xA:void 0,adVideoId:z,Sn:[]});return Q.get(z)}; KY=function(Q,z,H,f,b,L,u,X,v){b?Dq(Q,b).Sn.push({mj3:z,d_:H,isContentVideoCompanion:f,jn:u,associatedCompositePlayerBytesLayoutId:L,adSlotLoggingData:X,mP:v}):MZ("Companion AdPlacementSupportedRenderer without adVideoId")}; Vb=function(Q){var z=0;Q=g.n(Q.questions);for(var H=Q.next();!H.done;H=Q.next())if(H=H.value,H=g.K(H,IV)||g.K(H,AA)){var f=void 0;z+=((f=H.surveyAdQuestionCommon)==null?void 0:f.durationMilliseconds)||0}return z}; dg=function(Q){var z,H,f,b,L=((H=g.K((z=Q.questions)==null?void 0:z[0],IV))==null?void 0:H.surveyAdQuestionCommon)||((b=g.K((f=Q.questions)==null?void 0:f[0],AA))==null?void 0:b.surveyAdQuestionCommon),u;z=[].concat(g.F(((u=Q.playbackCommands)==null?void 0:u.instreamAdCompleteCommands)||[]),g.F((L==null?void 0:L.timeoutCommands)||[]));var X,v,y,q,M,C,t,E,G,x,J,I,r,U,D,T,k,bL,SY,Q9;return{impressionCommands:(X=Q.playbackCommands)==null?void 0:X.impressionCommands,errorCommands:(v=Q.playbackCommands)== null?void 0:v.errorCommands,muteCommands:(y=Q.playbackCommands)==null?void 0:y.muteCommands,unmuteCommands:(q=Q.playbackCommands)==null?void 0:q.unmuteCommands,pauseCommands:(M=Q.playbackCommands)==null?void 0:M.pauseCommands,rewindCommands:(C=Q.playbackCommands)==null?void 0:C.rewindCommands,resumeCommands:(t=Q.playbackCommands)==null?void 0:t.resumeCommands,skipCommands:(E=Q.playbackCommands)==null?void 0:E.skipCommands,progressCommands:(G=Q.playbackCommands)==null?void 0:G.progressCommands,djh:(x= Q.playbackCommands)==null?void 0:x.clickthroughCommands,fullscreenCommands:(J=Q.playbackCommands)==null?void 0:J.fullscreenCommands,activeViewViewableCommands:(I=Q.playbackCommands)==null?void 0:I.activeViewViewableCommands,activeViewMeasurableCommands:(r=Q.playbackCommands)==null?void 0:r.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(U=Q.playbackCommands)==null?void 0:U.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(D=Q.playbackCommands)== null?void 0:(T=D.activeViewTracking)==null?void 0:T.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(k=Q.playbackCommands)==null?void 0:(bL=k.activeViewTracking)==null?void 0:bL.activeViewAudioMeasurableCommands,endFullscreenCommands:(SY=Q.playbackCommands)==null?void 0:SY.endFullscreenCommands,abandonCommands:(Q9=Q.playbackCommands)==null?void 0:Q9.abandonCommands,completeCommands:z}}; wmc=function(Q,z,H,f,b,L,u){return function(X,v){return mr9(Q,v.slotId,X,L,function(y,q){var M=v.layoutId;y=u(y);return me(z,M,q,b,y,"LAYOUT_TYPE_SURVEY",[new M9(H),f],H.adLayoutLoggingData)})}}; eJa=function(Q,z,H,f,b,L,u){if(!kpk(Q))return new e("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:Q});var X=Q.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[Tt8(L,z,H,f,function(v){var y=v.slotId;v=u(v);y=w4(b.B.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",y);var q={layoutId:y,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",hh:"core"},M=new NM(b.Z,f);return{layoutId:y,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",wT:new Map,layoutExitNormalTriggers:[M], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],YN:[],hh:"core",clientMetadata:new fN([new Cq(X)]),cz:v(q)}})]}; kpk=function(Q){Q=g.K(Q==null?void 0:Q.additionalPlayerOverlay,ltu);if(!Q)return!1;var z=Q.slidingMessages;return Q.title&&z&&z.length!==0?!0:!1}; Q7v=function(Q,z,H,f,b){var L;if((L=Q.playerOverlay)==null||!L.instreamSurveyAdRenderer)return function(){return[]}; if(!O4J(Q))return function(){return new e("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:Q})}; var u=Q.playerOverlay.instreamSurveyAdRenderer,X=Vb(u);return X<=0?function(){return new e("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:u})}:function(v,y){var q=RJJ(v,H,f,function(M){var C=M.slotId; M=y(M);var t=dg(u);C=w4(b.B.get(),"LAYOUT_TYPE_SURVEY",C);var E={layoutId:C,layoutType:"LAYOUT_TYPE_SURVEY",hh:"core"},G=new NM(b.Z,f),x=new WZ(b.Z,C),J=new kE(b.Z,C),I=new b4n(b.Z);return{layoutId:C,layoutType:"LAYOUT_TYPE_SURVEY",wT:new Map,layoutExitNormalTriggers:[G,I],layoutExitSkipTriggers:[x],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[J],YN:[],hh:"core",clientMetadata:new fN([new q9(u),new TL(z),new ce(X/1E3),new Ds(t)]),cz:M(E),adLayoutLoggingData:u.adLayoutLoggingData}}); v=eJa(Q,H,q.slotId,f,b,v,y);return v instanceof e?v:[q].concat(g.F(v))}}; Slp=function(Q,z,H,f,b,L,u){u=u===void 0?!1:u;var X=[];try{var v=[];if(H.renderer.linearAdSequenceRenderer)var y=function(G){G=zY8(G.slotId,H,z,b(G),f,L,u);v=G.XBn;return G.Xj}; else if(H.renderer.instreamVideoAdRenderer)y=function(G){var x=G.slotId;G=b(G);var J=u,I=H.config.adPlacementConfig,r=HPu(I),U=r.Lu,D=r.bQ;r=H.renderer.instreamVideoAdRenderer;var T;if(r==null?0:(T=r.playerOverlay)==null?0:T.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var k=wg(r,J);T=Math.min(U+k.videoLengthSeconds*1E3,D);J=new $E(0,[k.videoLengthSeconds]);D=k.videoLengthSeconds;var bL=k.playerVars,SY=k.instreamAdPlayerOverlayRenderer,Q9=k.playerOverlayLayoutRenderer, V=k.adVideoId,R=fo8(H),Z=k.wT;k=k.K8;var d=r==null?void 0:r.adLayoutLoggingData;r=r==null?void 0:r.sodarExtensionData;x=w4(z.B.get(),"LAYOUT_TYPE_MEDIA",x);var h8={layoutId:x,layoutType:"LAYOUT_TYPE_MEDIA",hh:"core"};return{layoutId:x,layoutType:"LAYOUT_TYPE_MEDIA",wT:Z,layoutExitNormalTriggers:[new I9(z.Z)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],YN:[],hh:"core",clientMetadata:new fN([new He(f),new Fi(D),new xL(bL),new Jm(U),new N9(T),SY&&new fq(SY), Q9&&new bx(Q9),new TL(I),new zg(V),new e7(J),new sd(R),r&&new oX(r),new Zs({current:null}),new Am({}),new d1(k)].filter(bPZ)),cz:G(h8),adLayoutLoggingData:d}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var q=LdL(Q,f,H.adSlotLoggingData,y);X.push(q);for(var M=g.n(v),C=M.next();!C.done;C=M.next()){var t=C.value,E=t(Q,b);if(E instanceof e)return E;X.push.apply(X,g.F(E))}}catch(G){return new e(G,{errorMessage:G.message,AdPlacementRenderer:H,numberOfSurveyRenderers:umn(H)})}return X}; umn=function(Q){Q=(Q.renderer.linearAdSequenceRenderer||{}).linearAds;return Q!=null&&Q.length?Q.filter(function(z){var H,f;return((H=g.K(z,yb))==null?void 0:(f=H.playerOverlay)==null?void 0:f.instreamSurveyAdRenderer)!=null}).length:0}; zY8=function(Q,z,H,f,b,L,u){var X=z.config.adPlacementConfig,v=HPu(X),y=v.Lu,q=v.bQ;v=(z.renderer.linearAdSequenceRenderer||{}).linearAds;if(v==null||!v.length)throw new TypeError("Expected linear ads");var M=[],C={Jg:y,gN:0,EVv:M};v=v.map(function(E){return XXa(Q,E,C,H,f,X,b,q,u)}).map(function(E,G){G=new $E(G,M); return E(G)}); var t=v.map(function(E){return E.Q4}); return{Xj:v9v(H,Q,y,t,X,fo8(z),f,q,L),XBn:v.map(function(E){return E.iAn})}}; XXa=function(Q,z,H,f,b,L,u,X,v){var y=wg(g.K(z,yb),v),q=H.Jg,M=H.gN,C=Math.min(q+y.videoLengthSeconds*1E3,X);H.Jg=C;H.gN++;H.EVv.push(y.videoLengthSeconds);var t,E,G=(t=g.K(z,yb))==null?void 0:(E=t.playerOverlay)==null?void 0:E.instreamSurveyAdRenderer;if(y.adVideoId==="nPpU29QrbiU"&&G==null)throw new TypeError("Survey slate media has no survey overlay");return function(x){hA(y.playerVars,x);var J,I,r=y.videoLengthSeconds,U=y.playerVars,D=y.wT,T=y.K8,k=y.instreamAdPlayerOverlayRenderer,bL=y.playerOverlayLayoutRenderer, SY=y.adVideoId,Q9=(J=g.K(z,yb))==null?void 0:J.adLayoutLoggingData;J=(I=g.K(z,yb))==null?void 0:I.sodarExtensionData;I=w4(f.B.get(),"LAYOUT_TYPE_MEDIA",Q);var V={layoutId:I,layoutType:"LAYOUT_TYPE_MEDIA",hh:"adapter"};x={layoutId:I,layoutType:"LAYOUT_TYPE_MEDIA",wT:D,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],YN:[],hh:"adapter",clientMetadata:new fN([new He(u),new Fi(r),new xL(U),new Jm(q),new N9(C),new IX(M),new Zs({current:null}), k&&new fq(k),bL&&new bx(bL),new TL(L),new zg(SY),new e7(x),J&&new oX(J),G&&new VN(G),new Am({}),new d1(T)].filter(bPZ)),cz:b(V),adLayoutLoggingData:Q9};r=Q7v(g.K(z,yb),L,u,x.layoutId,f);return{Q4:x,iAn:r}}}; wg=function(Q,z){if(!Q)throw new TypeError("Expected instream video ad renderer");if(!Q.playerVars)throw new TypeError("Expected player vars in url encoded string");var H=bv(Q.playerVars),f=Number(H.length_seconds);if(isNaN(f))throw new TypeError("Expected valid length seconds in player vars");var b=Number(Q.trimmedMaxNonSkippableAdDurationMs);f=isNaN(b)?f:Math.min(f,b/1E3);b=Q.playerOverlay||{};b=b.instreamAdPlayerOverlayRenderer===void 0?null:b.instreamAdPlayerOverlayRenderer;var L=Q.playerOverlay|| {};L=L.playerOverlayLayoutRenderer===void 0?null:L.playerOverlayLayoutRenderer;var u=H.video_id;u||(u=(u=Q.externalVideoId)?u:void 0);if(!u)throw new TypeError("Expected valid video id in IVAR");if(z&&f===0){var X;z=(X=y_c[u])!=null?X:f}else z=f;return{playerVars:H,videoLengthSeconds:z,instreamAdPlayerOverlayRenderer:b,playerOverlayLayoutRenderer:L,adVideoId:u,wT:Q.pings?OB(Q.pings):new Map,K8:F5(Q.pings)}}; fo8=function(Q){Q=Number(Q.driftRecoveryMs);return isNaN(Q)||Q<=0?null:Q}; HPu=function(Q){var z=Q.adTimeOffset||{};Q=z.offsetEndMilliseconds;z=Number(z.offsetStartMilliseconds);if(isNaN(z))throw new TypeError("Expected valid start offset");Q=Number(Q);if(isNaN(Q))throw new TypeError("Expected valid end offset");return{Lu:z,bQ:Q}}; qla=function(Q){var z,H=(z=bY(Q.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:z.current;if(!H)return null;z=bY(Q.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var f=Q.layoutId,b=bY(Q.clientMetadata,"metadata_type_content_cpn"),L=bY(Q.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),u=bY(Q.clientMetadata,"metadata_type_player_underlay_renderer"),X=bY(Q.clientMetadata,"metadata_type_ad_placement_config"),v=bY(Q.clientMetadata,"metadata_type_video_length_seconds"); var y=RX(Q.clientMetadata,"metadata_type_layout_enter_ms")&&RX(Q.clientMetadata,"metadata_type_layout_exit_ms")?(bY(Q.clientMetadata,"metadata_type_layout_exit_ms")-bY(Q.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{MF:f,contentCpn:b,i6:H,fh:z,instreamAdPlayerOverlayRenderer:L,instreamAdPlayerUnderlayRenderer:u,adPlacementConfig:X,videoLengthSeconds:v,Al:y,inPlayerLayoutId:bY(Q.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:bY(Q.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; t7Z=function(Q,z,H,f,b,L,u,X,v,y,q,M,C,t,E){f=tX(f,"SLOT_TYPE_PLAYER_BYTES");Q=M7n(b,Q,u,H,f,v,y);if(Q instanceof e)return Q;var G;y=(G=bY(Q.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:G.layoutId;if(!y)return new e("Invalid adNotify layout");z=C1_(y,b,L,H,X,z,v,q,M,C,t,E,u);return z instanceof e?z:[Q].concat(g.F(z))}; C1_=function(Q,z,H,f,b,L,u,X,v,y,q,M,C){H=E9u(z,H,f,L,u,X,v,y,q,M,C);if(H instanceof e)return H;Q=pXc(z,Q,u,b,H);return Q instanceof e?Q:[].concat(g.F(Q.Se),[Q.zV])}; g98=function(Q,z,H,f,b,L,u,X,v,y,q,M,C,t){z=E9u(Q,z,H,b,L,X,v,y,q,M,C,t);if(z instanceof e)return z;Q=n9A(Q,H,L,u,f,X.AZ,z);return Q instanceof e?Q:Q.Se.concat(Q.zV)}; E9u=function(Q,z,H,f,b,L,u,X,v,y,q,M){var C=kN(f,H,y);return C instanceof Ha?new e(C):y.K.C().experiments.Nc("html5_refactor_in_player_slot_generation")?function(t){var E=new $E(0,[C.I4]);t=ZP9(z,C.layoutId,C.fP,H,TC(C.playerVars,C.UO,L,v,E),C.I4,b,E,u(t),X.get(C.fP.externalVideoId),M);E=[];if(C.fP.playerOverlay.instreamAdPlayerOverlayRenderer){var G=qla(t);if(!G)return MZ("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,t),{layout:t,Se:[]}; E=[GLn(Q,G.contentCpn,G.MF,function(J){return eG(z,J.slotId,"core",G,yJ(q,J))},G.inPlayerSlotId)].concat(g.F(E)); if(G.instreamAdPlayerUnderlayRenderer&&lg(y)){var x=G.instreamAdPlayerUnderlayRenderer;E=[$xa(Q,G.contentCpn,G.MF,function(J){return j79(z,J.slotId,x,G.adPlacementConfig,G.MF,yJ(q,J))})].concat(g.F(E))}}return{layout:t, Se:E}}:function(t){var E=new $E(0,[C.I4]); return{layout:ZP9(z,C.layoutId,C.fP,H,TC(C.playerVars,C.UO,L,v,E),C.I4,b,E,u(t),X.get(C.fP.externalVideoId),M),Se:[]}}}; kN=function(Q,z,H){if(!Q.playerVars)return new Ha("No playerVars available in InstreamVideoAdRenderer.");var f,b;if(Q.elementId==null||Q.playerVars==null||Q.playerOverlay==null||((f=Q.playerOverlay)==null?void 0:f.instreamAdPlayerOverlayRenderer)==null&&((b=Q.playerOverlay)==null?void 0:b.playerOverlayLayoutRenderer)==null||Q.pings==null||Q.externalVideoId==null)return new Ha("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:Q});f=bv(Q.playerVars);b=Number(f.length_seconds); isNaN(b)&&(b=0,MZ("Expected valid length seconds in player vars but got NaN"));if(H.MB(z.kind==="AD_PLACEMENT_KIND_START")){if(Q.layoutId===void 0)return new Ha("Expected server generated layout ID in instreamVideoAdRenderer");z=Q.layoutId}else z=Q.elementId;return{layoutId:z,fP:Q,playerVars:f,UO:Q.playerVars,I4:b}}; TC=function(Q,z,H,f,b){Q.iv_load_policy=f;z=bv(z);if(z.cta_conversion_urls)try{Q.cta_conversion_urls=JSON.parse(z.cta_conversion_urls)}catch(L){MZ(L)}H.Ts&&(Q.ctrl=H.Ts);H.Qw&&(Q.ytr=H.Qw);H.mH&&(Q.ytrcc=H.mH);H.isMdxPlayback&&(Q.mdx="1");Q.vvt&&(Q.vss_credentials_token=Q.vvt,H.ZK&&(Q.vss_credentials_token_type=H.ZK),H.mdxEnvironment&&(Q.mdx_environment=H.mdxEnvironment));hA(Q,b);return Q}; Fd_=function(Q){var z=new Map;Q=g.n(Q);for(var H=Q.next();!H.done;H=Q.next())(H=H.value.renderer.remoteSlotsRenderer)&&H.hostElementId&&z.set(H.hostElementId,H);return z}; RV=function(Q){return Q.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; xx9=function(Q){return Q!=null}; YlA=function(Q,z,H,f,b,L,u,X,v,y,q,M,C,t){for(var E=[],G=g.n(Q),x=G.next();!x.done;x=G.next())if(x=x.value,!nSc(x)&&!jtk(x)){var J=RV(x)&&!!x.slotEntryTrigger.beforeContentVideoIdStartedTrigger,I=v.MB(J),r=OPv(x,y,f,H.Lq,I);if(r instanceof e)return r;var U=void 0,D={slotId:x.adSlotMetadata.slotId,slotType:x.adSlotMetadata.slotType,slotPhysicalPosition:(U=x.adSlotMetadata.slotPhysicalPosition)!=null?U:1,hh:"core",slotEntryTrigger:r.slotEntryTrigger,slotFulfillmentTriggers:r.slotFulfillmentTriggers, slotExpirationTriggers:r.slotExpirationTriggers},T=g.K(x.fulfillmentContent.fulfilledLayout,Ey);if(T){if(!tA(T))return new e("Invalid PlayerBytesAdLayoutRenderer");U=M&&!(RV(x)&&x.slotEntryTrigger.beforeContentVideoIdStartedTrigger);r=r.slotFulfillmentTriggers.some(function(k){return k instanceof A2}); I=U?o99(D,x.adSlotMetadata.triggerEvent,T,H,f,L,y,Q,I,C,r,t):J_v(D,x.adSlotMetadata.triggerEvent,T,z,H,f,b,L,u,X,v,y,Q,q,I,x.adSlotMetadata.triggeringSourceLayoutId);if(I instanceof e)return I;r=[];RV(x)&&r.push(new eU({kG:RV(x)&&!!x.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));U&&r.push(new Am({}));H.AZ&&r.push(new Kq({}));r.push(new kL(J));x=Object.assign({},D,{clientMetadata:new fN(r),fulfilledLayout:I.layout,adSlotLoggingData:x.adSlotMetadata.adSlotLoggingData});E.push.apply(E,g.F(I.Se)); E.push(x)}else if(J=g.K(x.fulfillmentContent.fulfilledLayout,GC)){if(!pma(J))return new e("Invalid PlayerUnderlayAdLayoutRenderer");J=Nh6(J,f,H.Lq,L,D,x.adSlotMetadata.triggerEvent,x.adSlotMetadata.triggeringSourceLayoutId);if(J instanceof e)return J;x=Object.assign({},D,{clientMetadata:new fN([]),fulfilledLayout:J,adSlotLoggingData:x.adSlotMetadata.adSlotLoggingData});E.push(x)}else if(J=g.K(x.fulfillmentContent.fulfilledLayout,Z4L)){if(!Xmn(J))return new e("Invalid AboveFeedAdLayoutRenderer");J= Iou(J,f,H.Lq,L,D,x.adSlotMetadata.triggerEvent,x.adSlotMetadata.triggeringSourceLayoutId);if(J instanceof e)return J;x=Object.assign({},D,{clientMetadata:new fN([]),fulfilledLayout:J,adSlotLoggingData:x.adSlotMetadata.adSlotLoggingData});E.push(x)}else if(J=g.K(x.fulfillmentContent.fulfilledLayout,Gpu)){if(!lB(J.adLayoutMetadata)||!g.K(J.renderingContent,R9))return new e("Invalid BelowPlayerAdLayoutRenderer");J=Iou(J,f,H.Lq,L,D,x.adSlotMetadata.triggerEvent,x.adSlotMetadata.triggeringSourceLayoutId); if(J instanceof e)return J;x=Object.assign({},D,{clientMetadata:new fN([]),fulfilledLayout:J,adSlotLoggingData:x.adSlotMetadata.adSlotLoggingData});E.push(x)}else if(J=g.K(x.fulfillmentContent.fulfilledLayout,Nd)){if(!nY(J))return new e("Invalid PlayerBytesSequenceItemAdLayoutRenderer");J=A_c(J,f,H.Lq,L,D,x.adSlotMetadata.triggerEvent);if(J instanceof e)return J;x=Object.assign({},D,{clientMetadata:new fN([]),fulfilledLayout:J,adSlotLoggingData:x.adSlotMetadata.adSlotLoggingData});E.push(x)}else return new e("Unable to retrieve a client slot ["+ D.slotType+"] from a given AdSlotRenderer")}return E}; A_c=function(Q,z,H,f,b,L){var u={layoutId:Q.adLayoutMetadata.layoutId,layoutType:Q.adLayoutMetadata.layoutType,hh:"core"};z=QL(Q,z,H);return z instanceof e?z:Object.assign({},u,{renderingContent:Q.renderingContent,wT:OB(Q.renderingContent.pings)},z,{cz:yJ(f,b)(u),clientMetadata:new fN([new TL(zx(L))]),adLayoutLoggingData:Q.adLayoutMetadata.adLayoutLoggingData})}; Iou=function(Q,z,H,f,b,L,u){var X={layoutId:Q.adLayoutMetadata.layoutId,layoutType:Q.adLayoutMetadata.layoutType,hh:"core"};z=QL(Q,z,H);if(z instanceof e)return z;H=[];H.push(new TL(zx(L)));L==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&u!==void 0&&H.push(new tm(u));return Object.assign({},X,{renderingContent:Q.renderingContent,wT:new Map([["impression",r_9(Q)]])},z,{cz:yJ(f,b)(X),clientMetadata:new fN(H),adLayoutLoggingData:Q.adLayoutMetadata.adLayoutLoggingData})}; Nh6=function(Q,z,H,f,b,L,u){if(Q.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(u=g.K(Q.renderingContent,gg))if(u=g.K(u.sidePanel,td9)){var X={layoutId:Q.adLayoutMetadata.layoutId,layoutType:Q.adLayoutMetadata.layoutType,hh:"core"};z=QL(Q,z,H);Q=z instanceof e?z:Object.assign({},X,{renderingContent:Q.renderingContent,wT:new Map([["impression",u.impressionPings||[]],["resume",u.resumePings||[]]])},z,{cz:yJ(f,b)(X),clientMetadata:new fN([new TL(zx(L))]),adLayoutLoggingData:Q.adLayoutMetadata.adLayoutLoggingData})}else Q= new e("DismissablePanelTextPortraitImageRenderer is missing");else Q=new e("SqueezebackPlayerSidePanelRenderer is missing");else Q.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.K(Q.renderingContent,q1Y)?(u={layoutId:Q.adLayoutMetadata.layoutId,layoutType:Q.adLayoutMetadata.layoutType,hh:"core"},z=QL(Q,z,H),Q=z instanceof e?z:Object.assign({},u,{renderingContent:Q.renderingContent,wT:new Map},z,{cz:yJ(f,b)(u),clientMetadata:new fN([new TL(zx(L))]),adLayoutLoggingData:Q.adLayoutMetadata.adLayoutLoggingData})): Q=new e("CounterfactualRenderer is missing"):Q.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?Q=new e("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):Q.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?Q=new e("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):Q.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.K(Q.renderingContent,Zq)?(L={layoutId:Q.adLayoutMetadata.layoutId,layoutType:Q.adLayoutMetadata.layoutType, hh:"core"},z=QL(Q,z,H),Q=z instanceof e?z:u?Object.assign({},L,{renderingContent:Q.renderingContent,wT:new Map},z,{cz:yJ(f,b)(L),clientMetadata:new fN([new tm(u)]),adLayoutLoggingData:Q.adLayoutMetadata.adLayoutLoggingData}):new e("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):Q=new e("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):Q.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.K(Q.renderingContent,Md9)? (L={layoutId:Q.adLayoutMetadata.layoutId,layoutType:Q.adLayoutMetadata.layoutType,hh:"core"},z=QL(Q,z,H),Q=z instanceof e?z:Object.assign({},L,{renderingContent:Q.renderingContent,wT:new Map([])},z,{cz:yJ(f,b)(L),adLayoutLoggingData:Q.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new fN([])})):Q=new e("AdsEngagementPanelSectionListViewModel is missing"):Q=new e("LayoutType ["+Q.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return Q}; o99=function(Q,z,H,f,b,L,u,X,v,y,q,M){if((M==null?void 0:M.ET)===void 0||(M==null?void 0:M.Ja)===void 0)return new e("Cached ad break range from cue point is missing");var C=QL(H,b,f.Lq);if(C instanceof e)return C;C={layoutExitMuteTriggers:[],layoutExitNormalTriggers:C.layoutExitNormalTriggers,layoutExitSkipTriggers:[],YN:[],layoutExitUserInputSubmittedTriggers:[]};if(g.K(H.renderingContent,yb))return Q=s7c(Q,z,H,C,b,L,X,v,f.Lq,u,M.ET,M.Ja),Q instanceof e?Q:Q.i8===void 0?new e("Expecting associatedInPlayerSlot for single DAI media layout"): {layout:Q.layout,Se:[Q.i8]};var t=g.K(H.renderingContent,X4);if(t){if(!lB(H.adLayoutMetadata))return new e("Invalid ad layout metadata");if(!vc(t))return new e("Invalid sequential layout");t=t.sequentialLayouts.map(function(E){return E.playerBytesAdLayoutRenderer}); Q=Bha(Q,z,H,C,t,b,f,L,u,v,X,y,M.ET,M.Ja,q);return Q instanceof e?Q:{layout:Q.Dy,Se:Q.Se}}return new e("Not able to convert a sequential layout")}; Bha=function(Q,z,H,f,b,L,u,X,v,y,q,M,C,t,E){var G=P1L(b,C,t);if(G instanceof e)return G;var x=[],J=[];G=g.n(G);for(var I=G.next();!I.done;I=G.next()){var r=I.value;I=Q;var U=b[r.gN],D=r,T=z;r=L;var k=u,bL=X,SY=v,Q9=y,V=q,R=HS(U);if(R instanceof e)I=R;else{var Z={layoutId:U.adLayoutMetadata.layoutId,layoutType:U.adLayoutMetadata.layoutType,hh:"adapter"};D=aoY(T,U,D,r);D instanceof e?I=D:(I=Object.assign({},Z,fQ,{wT:R,renderingContent:U.renderingContent,clientMetadata:new fN(D),cz:yJ(bL,I)(Z),adLayoutLoggingData:U.adLayoutMetadata.adLayoutLoggingData}), I=(U=b6(V,I,r,k.Lq,bL,SY,Q9,void 0,!0))?U instanceof e?U:{layout:I,i8:U}:new e("Expecting associatedInPlayerSlot"))}if(I instanceof e)return I;x.push(I.layout);J.push(I.i8)}b={layoutId:H.adLayoutMetadata.layoutId,layoutType:H.adLayoutMetadata.layoutType,hh:"core"};z=[new sd(Number(H.driftRecoveryMs)),new Jm(C),new N9(t),new TL(zx(z)),new w1(M),new Am({})];E&&z.push(new lx({}));return{Dy:Object.assign({},b,f,{qF:x,wT:new Map,clientMetadata:new fN(z),cz:yJ(X,Q)(b)}),Se:J}}; s7c=function(Q,z,H,f,b,L,u,X,v,y,q,M){if(!tA(H))return new e("Invalid PlayerBytesAdLayoutRenderer");var C=HS(H);if(C instanceof e)return C;var t={layoutId:H.adLayoutMetadata.layoutId,layoutType:H.adLayoutMetadata.layoutType,hh:"core"},E=g.K(H.renderingContent,yb);if(!E)return new e("Invalid rendering content for DAI media layout");E=wg(E,!1);q={lB:E,gN:0,Jg:q,Ui:Math.min(q+E.videoLengthSeconds*1E3,M),uf:new $E(0,[E.videoLengthSeconds])};var G;M=(G=Number(H.driftRecoveryMs))!=null?G:void 0;z=aoY(z, H,q,b,M);if(z instanceof e)return z;Q=Object.assign({},t,f,{wT:C,renderingContent:H.renderingContent,clientMetadata:new fN(z),cz:yJ(L,Q)(t),adLayoutLoggingData:H.adLayoutMetadata.adLayoutLoggingData});return(b=b6(u,Q,b,v,L,y,X,void 0,!0))?b instanceof e?b:{layout:Q,i8:b}:new e("Expecting associatedInPlayerSlot")}; J_v=function(Q,z,H,f,b,L,u,X,v,y,q,M,C,t,E,G){var x=QL(H,L,b.Lq);if(x instanceof e)return x;if(g.K(H.renderingContent,yb)){v=Ux9([H],b,v);if(v instanceof e)return v;if(v.length!==1)return new e("Only expected one media layout.");Q=c__(Q,z,H,x,v[0],void 0,"core",f,L,u,X,y,C,t,E,b.Lq,M,void 0,G);return Q instanceof e?Q:{layout:Q.layout,Se:Q.i8?[Q.i8]:[]}}var J=g.K(H.renderingContent,X4);if(J){if(!lB(H.adLayoutMetadata))return new e("Invalid ad layout metadata");if(!vc(J))return new e("Invalid sequential layout"); J=J.sequentialLayouts.map(function(I){return I.playerBytesAdLayoutRenderer}); Q=iPZ(Q,z,H.adLayoutMetadata,x,J,f,L,b,v,u,X,y,q,M,E,C,t,G);return Q instanceof e?Q:{layout:Q.Dy,Se:Q.Se}}return new e("Not able to convert a sequential layout")}; iPZ=function(Q,z,H,f,b,L,u,X,v,y,q,M,C,t,E,G,x,J){var I=new QN({current:null}),r=Ux9(b,X,v);if(r instanceof e)return r;v=[];for(var U=[],D=void 0,T=0;T0&&(T.push(J),T.push(new R7(D.adPodSkipTarget)));(L=y.get(D.externalVideoId))&&T.push(new Ud(L));L=T}else L=new e("Invalid vod media renderer")}if(L instanceof e)return L;Q=Object.assign({},u,f,{wT:r,renderingContent:H.renderingContent,clientMetadata:new fN(L),cz:yJ(q,Q)(u),adLayoutLoggingData:H.adLayoutMetadata.adLayoutLoggingData});H=g.K(H.renderingContent,yb);if(!H||!SG(H))return new e("Invalid meida renderer");M=Dq(M,H.externalVideoId);M.instreamVideoAdRenderer=H;M.xA="AD_PLACEMENT_KIND_START";return t?(v=b6(C,Q,v,G,q,x,E,J,!1),v instanceof e?v:DxZ(Q.layoutId,C)&&v?{layout:Object.assign({},Q,{clientMetadata:new fN(L.concat(new SU(v)))})}:{layout:Q,i8:v}): {layout:Q}}; hY_=function(Q,z,H,f,b){if(!tA(z))return new e("Invalid PlayerBytesAdLayoutRenderer");var L=g.K(z.renderingContent,XI);if(!L||L.durationMilliseconds===void 0)return new e("Invalid endcap renderer");var u={layoutId:z.adLayoutMetadata.layoutId,layoutType:z.adLayoutMetadata.layoutType,hh:"adapter"};f=[new ix(L.durationMilliseconds),new Ds({impressionCommands:void 0,abandonCommands:L.abandonCommands?[{commandExecutorCommand:L.abandonCommands}]:void 0,completeCommands:L.completionCommands}),new TL(f), new pq("LAYOUT_TYPE_ENDCAP")];if(b){f.push(new l1(b.uf.adPodIndex-1));f.push(new IX(b.uf.adPodIndex));var X;f.push(new R7((X=b.adPodSkipTarget)!=null?X:-1))}return Object.assign({},u,fQ,{renderingContent:z.renderingContent,clientMetadata:new fN(f),wT:L.skipPings?new Map([["skip",L.skipPings]]):new Map,cz:yJ(H,Q)(u),adLayoutLoggingData:z.adLayoutMetadata.adLayoutLoggingData})}; b6=function(Q,z,H,f,b,L,u,X,v){Q=Q.filter(function(q){return q.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&q.adSlotMetadata.triggeringSourceLayoutId===z.layoutId}); if(Q.length!==0){if(Q.length!==1)return new e("Invalid InPlayer slot association for the given PlayerBytes layout");Q=Q[0];u=OPv(Q,L,H,f,u);if(u instanceof e)return u;var y;L={slotId:Q.adSlotMetadata.slotId,slotType:Q.adSlotMetadata.slotType,slotPhysicalPosition:(y=Q.adSlotMetadata.slotPhysicalPosition)!=null?y:1,hh:"core",slotEntryTrigger:u.slotEntryTrigger,slotFulfillmentTriggers:u.slotFulfillmentTriggers,slotExpirationTriggers:u.slotExpirationTriggers};y=g.K(Q.fulfillmentContent.fulfilledLayout, gSA);if(!y||!yra(y))return new e("Invalid InPlayerAdLayoutRenderer");u={layoutId:y.adLayoutMetadata.layoutId,layoutType:y.adLayoutMetadata.layoutType,hh:"core"};H=QL(y,H,f);if(H instanceof e)return H;f=[];v&&f.push(new Am({}));if(y.adLayoutMetadata.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")f.push.apply(f,g.F(Kdv(Q.adSlotMetadata.triggerEvent,z)));else if(y.adLayoutMetadata.layoutType==="LAYOUT_TYPE_ENDCAP")f.push(new TL(zx(Q.adSlotMetadata.triggerEvent))),X&&f.push(X);else return new e("Not able to parse an SDF InPlayer layout"); b=Object.assign({},u,H,{renderingContent:y.renderingContent,wT:new Map,cz:yJ(b,L)(u),clientMetadata:new fN(f),adLayoutLoggingData:y.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},L,{fulfilledLayout:b,clientMetadata:new fN([])})}}; Kdv=function(Q,z){var H=[];H.push(new TL(zx(Q)));H.push(new tm(z.layoutId));(Q=bY(z.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&H.push(new Zs(Q));(Q=bY(z.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&H.push(new QN(Q));(Q=bY(z.clientMetadata,"metadata_type_remote_slots_data"))&&H.push(new Ud(Q));(Q=bY(z.clientMetadata,"metadata_type_ad_next_params"))&&H.push(new WX(Q));(Q=bY(z.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&H.push(new Do(Q));(Q= bY(z.clientMetadata,"metadata_type_ad_pod_info"))&&H.push(new e7(Q));(z=bY(z.clientMetadata,"metadata_type_ad_video_id"))&&H.push(new zg(z));return H}; Wd8=function(Q,z,H,f,b,L){function u(y){return LQ(z,y)} var X=f.Ek.inPlayerSlotId,v={layoutId:f.Ek.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",hh:"core"};H={slotId:X,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,hh:"core",slotEntryTrigger:new o9(u,Q),slotFulfillmentTriggers:[new Di(u,X)],slotExpirationTriggers:[new K6(u,X),new iB(u,H)]};Q=Object.assign({},v,{layoutExitNormalTriggers:[new NM(u,Q)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],YN:[],wT:new Map,clientMetadata:new fN([new ve(f.Ek), new TL(f.adPlacementConfig),b]),cz:yJ(L,H)(v),adLayoutLoggingData:f.Ek.adLayoutLoggingData});return Object.assign({},H,{clientMetadata:new fN([new Be(Q)])})}; DxZ=function(Q,z){z=g.n(z);for(var H=z.next();!H.done;H=z.next())if(H=H.value,H.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var f=g.K(H.fulfillmentContent.fulfilledLayout,GC);if(f&&(f=g.K(f.renderingContent,gg))&&f.associatedPlayerBytesLayoutId===Q)return H}}; OPv=function(Q,z,H,f,b){var L=V7Z(ig(Q.slotEntryTrigger,H,f),b,Q,z);if(L instanceof e)return L;for(var u=[],X=g.n(Q.slotFulfillmentTriggers),v=X.next();!v.done;v=X.next()){v=ig(v.value,H,f);if(v instanceof e)return v;u.push(v)}u=dxk(u,b,Q,z);z=[];Q=g.n(Q.slotExpirationTriggers);for(b=Q.next();!b.done;b=Q.next()){b=ig(b.value,H,f);if(b instanceof e)return b;z.push(b)}return{slotEntryTrigger:L,slotFulfillmentTriggers:u,slotExpirationTriggers:z}}; V7Z=function(Q,z,H,f){return z&&H.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&Q instanceof jp?new GT(function(b){return LQ(f,b)},H.adSlotMetadata.slotId):Q}; dxk=function(Q,z,H,f){return z&&H.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?Q.map(function(b){return b instanceof Di?new m9(function(L){return LQ(f,L)},H.adSlotMetadata.slotId):b}):Q}; QL=function(Q,z,H){for(var f=[],b=g.n(Q.layoutExitNormalTriggers||[]),L=b.next();!L.done;L=b.next()){L=ig(L.value,z,H);if(L instanceof e)return L;f.push(L)}b=[];L=g.n(Q.layoutExitSkipTriggers||[]);for(var u=L.next();!u.done;u=L.next()){u=ig(u.value,z,H);if(u instanceof e)return u;b.push(u)}L=[];u=g.n(Q.layoutExitMuteTriggers||[]);for(var X=u.next();!X.done;X=u.next()){X=ig(X.value,z,H);if(X instanceof e)return X;L.push(X)}u=[];Q=g.n(Q.layoutExitUserInputSubmittedTriggers||[]);for(X=Q.next();!X.done;X= Q.next()){X=ig(X.value,z,H);if(X instanceof e)return X;u.push(X)}return{layoutExitNormalTriggers:f,layoutExitSkipTriggers:b,layoutExitMuteTriggers:L,layoutExitUserInputSubmittedTriggers:u,YN:[]}}; HS=function(Q){var z=g.K(Q.renderingContent,yb);if(z==null?0:z.pings)return OB(z.pings);Q=g.K(Q.renderingContent,XI);return(Q==null?0:Q.skipPings)?new Map([["skip",Q.skipPings]]):new Map}; aoY=function(Q,z,H,f,b){z=g.K(z.renderingContent,yb);if(!z)return new e("Invalid rendering content for DAI media layout");Q=[new He(f),new Fi(H.lB.videoLengthSeconds),new xL(H.lB.playerVars),new Jm(H.Jg),new N9(H.Ui),new IX(H.gN),new TL(zx(Q)),new zg(H.lB.adVideoId),new e7(H.uf),z.sodarExtensionData&&new oX(z.sodarExtensionData),new Zs({current:null}),new Am({}),new d1(F5(z.pings))].filter(xx9);b!==void 0&&Q.push(new sd(b));return Q}; P1L=function(Q,z,H){Q=Q.map(function(v){return wg(g.K(v.renderingContent,yb),!1)}); var f=Q.map(function(v){return v.videoLengthSeconds}),b=f.map(function(v,y){return new $E(y,f)}),L=z,u=H,X=[]; Q.forEach(function(v,y){u=Math.min(L+v.videoLengthSeconds*1E3,H);hA(v.playerVars,b[y]);X.push({lB:v,Jg:L,Ui:u,gN:y,uf:b[y]});L=u}); return X}; Ux9=function(Q,z,H){for(var f=[],b=g.n(Q),L=b.next();!L.done;L=b.next())if(L=g.K(L.value.renderingContent,yb)){if(!SG(L))return new e("Invalid vod media renderer");f.push(mx9(L))}b=f.map(function(M){return M.I4}); L=[];for(var u=0,X=0;X0?Q9:-1;else if(Z=g.K(R,XI)){R=bqY(Q,z,H,Z,L,G,X,k,Q9);if(R instanceof e){t= R;break a}R=R(C);x.push(R.AN);J=[].concat(g.F(R.DA),g.F(J));I=[].concat(g.F(R.zl),g.F(I));R.i8&&(SY=[R.i8].concat(g.F(SY)))}else if(Z=g.K(R,Md)){if(t===void 0){t=new e("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:Z});break a}R=Sdc(Q,z,H,L,Z,T,X,t,G,mm(q,"supports_multi_step_on_desktop"));if(R instanceof e){t=R;break a}R=R(C);x.push(R.AN);R.i8&&SY.push(R.i8);J=[].concat(g.F(R.DA),g.F(J));I=[].concat(g.F(R.zl),g.F(I));r=[].concat(g.F(R.XQ),g.F(r)); U=[].concat(g.F(R.iI),g.F(U));D=[T].concat(g.F(D))}else if(R=g.K(R,CY)){R=Xe9(Q,z,H,L,R,T,X,G);if(R instanceof e){t=R;break a}R=R(C);x.push(R.AN);R.i8&&SY.push(R.i8);I=[].concat(g.F(R.zl),g.F(I))}else{t=new e("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}t={qF:x,layoutExitSkipTriggers:J,layoutExitUserInputSubmittedTriggers:r,YN:U,layoutExitMuteTriggers:I,Ee:D,Se:SY}}}else a:if(G=peY(f,H,q),G instanceof e)t=G;else{x=0;J=[];I=[];r=[];U=[];D=[];T=[];k=new Gg({current:null});bL=new QN({current:null}); SY=!1;V=[];Q9=-1;E=g.n(f);for(R=E.next();!R.done;R=E.next())if(R=R.value,g.K(R,qd)){R=Lcn(z,H,g.K(R,qd),X);if(R instanceof e){t=R;break a}R=R(C);J.push(R.AN);I=[].concat(g.F(R.DA),g.F(I));r=[].concat(g.F(R.zl),g.F(r));R.i8&&(V=[R.i8].concat(g.F(V)))}else if(g.K(R,yb)){Q9=kN(g.K(R,yb),H,q);if(Q9 instanceof Ha){t=new e(Q9);break a}R=new $E(x,G);R=nL8(z,Q9.layoutId,Q9.fP,H,TC(Q9.playerVars,Q9.UO,u,y,R),Q9.I4,L,R,X(C),bL,v.get(Q9.fP.externalVideoId),void 0,M);x++;J.push(R.AN);I=[].concat(g.F(R.DA),g.F(I)); r=[].concat(g.F(R.zl),g.F(r));SY||(T.push(bL),SY=!0);Q9=(Q9=Q9.fP.adPodSkipTarget)&&Q9>0?Q9:-1}else if(g.K(R,XI)){R=bqY(Q,z,H,g.K(R,XI),L,x,X,bL,Q9);if(R instanceof e){t=R;break a}R=R(C);J.push(R.AN);I=[].concat(g.F(R.DA),g.F(I));r=[].concat(g.F(R.zl),g.F(r));R.i8&&(V=[R.i8].concat(g.F(V)))}else if(g.K(R,Md)){if(t===void 0){t=new e("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.K(R,Md)});break a}R=Sdc(Q,z,H,L,g.K(R,Md),k,X,t,x,mm(q,"supports_multi_step_on_desktop")); if(R instanceof e){t=R;break a}R=R(C);J.push(R.AN);R.i8&&V.push(R.i8);I=[].concat(g.F(R.DA),g.F(I));r=[].concat(g.F(R.zl),g.F(r));U=[].concat(g.F(R.XQ),g.F(U));D=[].concat(g.F(R.iI),g.F(D));T=[k].concat(g.F(T))}else if(g.K(R,CY)){R=Xe9(Q,z,H,L,g.K(R,CY),k,X,x);if(R instanceof e){t=R;break a}R=R(C);J.push(R.AN);R.i8&&V.push(R.i8);r=[].concat(g.F(R.zl),g.F(r))}else{t=new e("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}t={qF:J,layoutExitSkipTriggers:I,layoutExitUserInputSubmittedTriggers:U, YN:D,layoutExitMuteTriggers:r,Ee:T,Se:V}}t instanceof e?C=t:(D=C.slotId,G=t.qF,x=t.layoutExitSkipTriggers,J=t.layoutExitMuteTriggers,I=t.layoutExitUserInputSubmittedTriggers,r=t.Ee,C=X(C),U=b?b.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",D=b?b.layoutId:w4(z.B.get(),U,D),T={layoutId:D,layoutType:U,hh:"core"},C={layout:{layoutId:D,layoutType:U,wT:new Map,layoutExitNormalTriggers:[new cZ(z.Z,D)],layoutExitSkipTriggers:x,layoutExitMuteTriggers:J,layoutExitUserInputSubmittedTriggers:I,YN:[],hh:"core", clientMetadata:new fN([new $L(G)].concat(g.F(r))),cz:C(T)},Se:t.Se});return C}}; peY=function(Q,z,H){var f=[];Q=g.n(Q);for(var b=Q.next();!b.done;b=Q.next())if(b=b.value,g.K(b,yb)){b=kN(g.K(b,yb),z,H);if(b instanceof Ha)return new e(b);f.push(b.I4)}return f}; ZqZ=function(Q,z,H,f,b,L,u,X){if(!xrn(H,X===void 0?!1:X))return new e("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:H});var v=Vb(H);if(v<=0)return new e("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:H});var y=new Gg({current:null}),q=wmc(Q,z,H,y,f,L,u);return gL_(Q,f,L,v,b,function(M,C){var t=M.slotId,E=dg(H);M=u(M);var G,x=(G=vS(z,f,H.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?G: w4(z.B.get(),"LAYOUT_TYPE_MEDIA_BREAK",t);t={layoutId:x,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",hh:"core"};G=q(x,C);var J=bY(G.clientMetadata,"metadata_type_fulfilled_layout");J||MZ("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");E=[new TL(f),new ix(v),new Ds(E),y];J&&E.push(new pq(J.layoutType));return{Cem:{layoutId:x,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",wT:new Map,layoutExitNormalTriggers:[new cZ(z.Z,x)],layoutExitSkipTriggers:[new WZ(z.Z, C.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new kE(z.Z,C.layoutId)],YN:[],hh:"core",clientMetadata:new fN(E),cz:M(t)},Uch:G}})}; Ggp=function(Q){if(!JrA(Q))return!1;var z=g.K(Q.adVideoStart,t7);return z?g.K(Q.linearAd,yb)&&LY(z)?!0:(MZ("Invalid Sandwich with notify"),!1):!1}; $99=function(Q){if(Q.linearAds==null)return!1;Q=g.K(Q.adStart,t7);return Q?LY(Q)?!0:(MZ("Invalid LASR with notify"),!1):!1}; jXJ=function(Q){if(!oSa(Q))return!1;Q=g.K(Q.adStart,t7);return Q?LY(Q)?!0:(MZ("Invalid LASR with notify"),!1):!1}; ED=function(Q,z,H,f,b,L,u,X,v,y){this.D=Q;this.B=z;this.Z=H;this.qc=f;this.Oj=b;this.L=L;this.K3=u;this.L4=X;this.J$=v;this.loadPolicy=y===void 0?1:y}; rr_=function(Q,z,H,f,b,L,u,X,v,y){var q=[];if(z.length===0&&f.length===0&&H.length===0)return q;z=z.filter(ug);var M=H.filter($rp),C=f.filter(ug),t=new Map,E=Fd_(z),G=H.some(function(d){var h8;return(d==null?void 0:(h8=d.adSlotMetadata)==null?void 0:h8.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),x=H.some(function(d){var h8; return(d==null?void 0:(h8=d.adSlotMetadata)==null?void 0:h8.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),J=H.some(function(d){var h8; return(d==null?void 0:(h8=d.adSlotMetadata)==null?void 0:h8.slotType)==="SLOT_TYPE_IN_PLAYER"}),I=H.some(function(d){var h8,$O; return(d==null?void 0:(h8=d.adSlotMetadata)==null?void 0:h8.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(d==null?void 0:($O=d.adSlotMetadata)==null?void 0:$O.slotType)==="SLOT_TYPE_ABOVE_FEED"}); H=H.some(function(d){var h8;return(d==null?void 0:(h8=d.adSlotMetadata)==null?void 0:h8.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"}); if(G||x||J||I||H)y=YlA(M,z,X,b,E,Q.Oj.get(),Q.loadPolicy,t,Q.qc.get(),Q.D.get(),J,u,v,y),y instanceof e?MZ(y,void 0,void 0,{contentCpn:b}):q.push.apply(q,g.F(y));y=g.n(z);for(H=y.next();!H.done;H=y.next())H=H.value,x=Fcu(Q,t,H,b,L,u,G,X,E,v,M),x instanceof e?MZ(x,void 0,void 0,{renderer:H.renderer,config:H.config.adPlacementConfig,kind:H.config.adPlacementConfig.kind,contentCpn:b,daiEnabled:u}):q.push.apply(q,g.F(x));x99(Q.qc.get())||(L=OqL(Q,C,b,X,E,t),q.push.apply(q,g.F(L)));if(Q.L===null||u&&!X.TT){var r, U,D;Q=X.AZ&&z.length===1&&((r=z[0].config)==null?void 0:(U=r.adPlacementConfig)==null?void 0:U.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((D=z[0].renderer)==null?void 0:D.adBreakServiceRenderer);if(!q.length&&!Q){var T,k,bL,SY;MZ("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":z.length,contentCpn:b,"first APR kind":(T=z[0])==null?void 0:(k=T.config)==null?void 0:(bL=k.adPlacementConfig)==null?void 0:bL.kind,renderer:(SY=z[0])==null?void 0: SY.renderer})}return q}r=f.filter(ug);q.push.apply(q,g.F(Vdn(t,r,Q.B.get(),Q.L,b,G)));if(!q.length){var Q9,V,R,Z;MZ("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":z.length,contentCpn:b,daiEnabled:u.toString(),"first APR kind":(Q9=z[0])==null?void 0:(V=Q9.config)==null?void 0:(R=V.adPlacementConfig)==null?void 0:R.kind,renderer:(Z=z[0])==null?void 0:Z.renderer})}return q}; OqL=function(Q,z,H,f,b,L){function u(C){return yJ(Q.Oj.get(),C)} var X=[];z=g.n(z);for(var v=z.next();!v.done;v=z.next()){v=v.value;var y=v.renderer,q=y.sandwichedLinearAdRenderer,M=y.linearAdSequenceRenderer;q&&Ggp(q)?(MZ("Found AdNotify with SandwichedLinearAdRenderer"),M=g.K(q.adVideoStart,t7),q=g.K(q.linearAd,yb),Wc(L,y,v.config.adPlacementConfig.kind),y=void 0,M=C1_((y=M)==null?void 0:y.layout.layoutId,Q.B.get(),Q.Z.get(),v.config.adPlacementConfig,v.adSlotLoggingData,q,H,f,u,b,Q.loadPolicy,Q.qc.get(),Q.Oj.get()),M instanceof e?MZ(M):X.push.apply(X,g.F(M))): M&&(!M.adLayoutMetadata&&$99(M)||M.adLayoutMetadata&&jXJ(M))&&(MZ("Found AdNotify with LinearAdSequenceRenderer"),Wc(L,y,v.config.adPlacementConfig.kind),y=void 0,q=vLZ((y=g.K(M.adStart,t7))==null?void 0:y.layout.layoutId,Q.B.get(),Q.Z.get(),v.config.adPlacementConfig,v.adSlotLoggingData,M.linearAds,lB(M.adLayoutMetadata)?M.adLayoutMetadata:void 0,H,f,u,b,Q.loadPolicy,Q.qc.get()),q instanceof e?MZ(q):X.push.apply(X,g.F(q)))}return X}; Fcu=function(Q,z,H,f,b,L,u,X,v,y,q){function M(J){return yJ(Q.Oj.get(),J)} var C=H.renderer,t=H.config.adPlacementConfig,E=t.kind,G=H.adSlotLoggingData,x=X.TT&&E==="AD_PLACEMENT_KIND_START";x=L&&!x;if(C.adsEngagementPanelRenderer!=null)return KY(z,H.elementId,E,C.adsEngagementPanelRenderer.isContentVideoEngagementPanel,C.adsEngagementPanelRenderer.adVideoId,C.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,t,G,function(J,I,r,U){var D=Q.Z.get(),T=J.slotId,k=C.adsEngagementPanelRenderer;J=yJ(Q.Oj.get(),J);return pQ(D,T,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new i1(k),I,r,k.impressionPings,J,C.adsEngagementPanelRenderer.adLayoutLoggingData,U)}),[]; if(C.adsEngagementPanelLayoutViewModel)return KY(z,H.elementId,E,C.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,C.adsEngagementPanelLayoutViewModel.adVideoId,C.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,t,G,function(J,I,r,U){var D=Q.Z.get(),T=J.slotId,k=C.adsEngagementPanelLayoutViewModel;J=yJ(Q.Oj.get(),J);return nQ(D,T,"LAYOUT_TYPE_PANEL",new h_(k),I,r,J,C.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,U)}),[]; if(C.actionCompanionAdRenderer!=null){if(C.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return i4Y(Q.B.get(),Q.L,Q.Z.get(),C.actionCompanionAdRenderer,t,G,f,M);KY(z,H.elementId,E,C.actionCompanionAdRenderer.isContentVideoCompanion,C.actionCompanionAdRenderer.adVideoId,C.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,t,G,function(J,I,r,U){var D=Q.Z.get(),T=J.slotId,k=C.actionCompanionAdRenderer;J=yJ(Q.Oj.get(),J);return pQ(D,T,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new Ul(k),I,r,k.impressionPings,J,C.actionCompanionAdRenderer.adLayoutLoggingData,U)})}else if(C.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(C.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return hJn(Q.B.get(),Q.L,Q.Z.get(),C.topBannerImageTextIconButtonedLayoutViewModel,t,G,f,M); KY(z,H.elementId,E,C.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,C.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,C.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,t,G,function(J,I,r,U){var D=Q.Z.get(),T=J.slotId,k=C.topBannerImageTextIconButtonedLayoutViewModel;J=yJ(Q.Oj.get(),J);return nQ(D,T,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new cX(k),I,r,J,C.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,U)})}else if(C.imageCompanionAdRenderer)KY(z, H.elementId,E,C.imageCompanionAdRenderer.isContentVideoCompanion,C.imageCompanionAdRenderer.adVideoId,C.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,t,G,function(J,I,r,U){var D=Q.Z.get(),T=J.slotId,k=C.imageCompanionAdRenderer; J=yJ(Q.Oj.get(),J);return pQ(D,T,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new Vd(k),I,r,k.impressionPings,J,C.imageCompanionAdRenderer.adLayoutLoggingData,U)}); else if(C.bannerImageLayoutViewModel)KY(z,H.elementId,E,C.bannerImageLayoutViewModel.isContentVideoCompanion,C.bannerImageLayoutViewModel.adVideoId,C.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,t,G,function(J,I,r,U){var D=Q.Z.get(),T=J.slotId,k=C.bannerImageLayoutViewModel;J=yJ(Q.Oj.get(),J);return nQ(D,T,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new dh(k),I,r,J,C.bannerImageLayoutViewModel.adLayoutLoggingData,U)}); else if(C.shoppingCompanionCarouselRenderer)KY(z,H.elementId,E,C.shoppingCompanionCarouselRenderer.isContentVideoCompanion,C.shoppingCompanionCarouselRenderer.adVideoId,C.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,t,G,function(J,I,r,U){var D=Q.Z.get(),T=J.slotId,k=C.shoppingCompanionCarouselRenderer;J=yJ(Q.Oj.get(),J);return pQ(D,T,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new md(k),I,r,k.impressionPings,J,C.shoppingCompanionCarouselRenderer.adLayoutLoggingData,U)}); else if(C.adBreakServiceRenderer){if(!UrA(H))return[];if(E==="AD_PLACEMENT_KIND_PAUSE")return atn(Q.B.get(),t,G,H.renderer.adBreakServiceRenderer,f);if(E!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&E!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return PGL(Q.B.get(),t,G,H.renderer.adBreakServiceRenderer,f,b,L);X.AZ||MZ("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:E,adPlacementConfig:t,daiEnabledForContentVideo:String(L),isServedFromLiveInfra:String(X.AZ),clientPlaybackNonce:X.clientPlaybackNonce}); if(E==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!Q.K3)return new e("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!Q.J$)return new e("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");Q.J$.Cw({adPlacementRenderer:H,contentCpn:f,Lq:b});b=Q.K3.get().getCurrentTimeSec(1,!1);return oLJ(Q.B.get(),H.renderer.adBreakServiceRenderer,t,b,f,G,L)}if(!Q.L4)return new e("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface"); Q.L4.Cw({adPlacementRenderer:H,contentCpn:f,Lq:b})}else{if(C.clientForecastingAdRenderer)return eYk(Q.B.get(),Q.Z.get(),t,G,C.clientForecastingAdRenderer,f,b,M);if(C.invideoOverlayAdRenderer)return zkY(Q.B.get(),Q.Z.get(),t,G,C.invideoOverlayAdRenderer,f,b,M);if(C.instreamAdPlayerOverlayRenderer)return RYA(Q.B.get(),Q.Z.get(),t,G,C.instreamAdPlayerOverlayRenderer,f,M);if((C.linearAdSequenceRenderer||C.instreamVideoAdRenderer)&&x)return Slp(Q.B.get(),Q.Z.get(),H,f,M,y,!Q.qc.get().K.C().V("html5_override_ad_video_length_killswitch")); if(C.linearAdSequenceRenderer&&!x){if(u)return[];Wc(z,C,E);if(C.linearAdSequenceRenderer.adLayoutMetadata){if(!oSa(C.linearAdSequenceRenderer))return new e("Received invalid LinearAdSequenceRenderer.")}else if(C.linearAdSequenceRenderer.linearAds==null)return new e("Received invalid LinearAdSequenceRenderer.");if(g.K(C.linearAdSequenceRenderer.adStart,t7)){MZ("Found AdNotify in LinearAdSequenceRenderer");H=g.K(C.linearAdSequenceRenderer.adStart,t7);if(!vSn(H))return new e("Invalid AdMessageRenderer."); L=C.linearAdSequenceRenderer.linearAds;return ymk(Q.D.get(),Q.B.get(),Q.Z.get(),Q.Oj.get(),t,G,H,lB(C.linearAdSequenceRenderer.adLayoutMetadata)?C.linearAdSequenceRenderer.adLayoutMetadata:void 0,L,f,b,X,M,v,Q.loadPolicy,Q.qc.get())}return ELa(Q.B.get(),Q.Z.get(),t,G,C.linearAdSequenceRenderer.linearAds,lB(C.linearAdSequenceRenderer.adLayoutMetadata)?C.linearAdSequenceRenderer.adLayoutMetadata:void 0,f,b,X,M,v,Q.loadPolicy,Q.qc.get(),q)}if(!C.remoteSlotsRenderer||L){if(C.instreamVideoAdRenderer&& !x){if(u)return[];Wc(z,C,E);return g98(Q.B.get(),Q.Z.get(),t,G,C.instreamVideoAdRenderer,f,b,X,M,v,Q.loadPolicy,Q.qc.get(),Q.Oj.get(),q)}if(C.instreamSurveyAdRenderer)return ZqZ(Q.B.get(),Q.Z.get(),C.instreamSurveyAdRenderer,t,G,f,M,mm(Q.qc.get(),"supports_multi_step_on_desktop"));if(C.sandwichedLinearAdRenderer!=null)return JrA(C.sandwichedLinearAdRenderer)?g.K(C.sandwichedLinearAdRenderer.adVideoStart,t7)?(MZ("Found AdNotify in SandwichedLinearAdRenderer"),H=g.K(C.sandwichedLinearAdRenderer.adVideoStart, t7),vSn(H)?(L=g.K(C.sandwichedLinearAdRenderer.linearAd,yb))?t7Z(H,L,t,Q.D.get(),Q.B.get(),Q.Z.get(),Q.Oj.get(),G,f,b,X,M,v,Q.loadPolicy,Q.qc.get()):new e("Missing IVAR from Sandwich"):new e("Invalid AdMessageRenderer.")):ELa(Q.B.get(),Q.Z.get(),t,G,[C.sandwichedLinearAdRenderer.adVideoStart,C.sandwichedLinearAdRenderer.linearAd],void 0,f,b,X,M,v,Q.loadPolicy,Q.qc.get()):new e("Received invalid SandwichedLinearAdRenderer.");if(C.videoAdTrackingRenderer!=null)return kLJ(Q.B.get(),Q.Z.get(),C.videoAdTrackingRenderer, t,G,f,b,X.fq,M)}}return[]}; gM=function(Q,z,H,f,b,L,u,X){g.h.call(this);var v=this;this.B=Q;this.L=z;this.u8=f;this.K3=b;this.qc=L;this.Vl=u;this.xN=X;this.Z=null;H.get().addListener(this);this.addOnDisposeCallback(function(){H.Sm()||H.get().removeListener(v)}); f.get().addListener(this);this.addOnDisposeCallback(function(){f.Sm()||f.get().removeListener(v)})}; N1u=function(Q,z,H){var f=Q.K3.get().getCurrentTimeSec(1,!1);Q.qc.get().K.C().vz()&&Q0(Q.Vl.get(),"sdai","onopp.1;evt."+H.event+";start."+H.startSecs.toFixed(3)+";d."+H.NB.toFixed(3));Ci(Q.B.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var b=Q.L.get(),L=z.adPlacementRenderer.renderer.adBreakServiceRenderer,u=z.contentCpn,X=z.adPlacementRenderer.adSlotLoggingData,v=ZO(Q.qc.get()),y=Q.Vl;if(b.qc.get().K.C().experiments.Nc("enable_smearing_expansion_dai")){var q=g.qf(b.qc.get().K.C().experiments, "max_prefetch_window_sec_for_livestream_optimization");var M=g.qf(b.qc.get().K.C().experiments,"min_prefetch_offset_sec_for_livestream_optimization");v={Fr:JmL(H),T2:!1,cueProcessedMs:f*1E3};var C=H.startSecs+H.NB;if(f===0)v.OJ=new xF(0,C*1E3);else{M=H.startSecs-M;var t=M-f;v.OJ=t<=0?new xF(M*1E3,C*1E3):new xF(Math.floor(f+Math.random()*Math.min(t,q))*1E3,C*1E3)}q=v}else q={Fr:JmL(H),T2:!1},C=H.startSecs+H.NB,H.startSecs<=f?v=new xF((H.startSecs-4)*1E3,C*1E3):(M=Math.max(0,H.startSecs-f-10),v=new xF(Math.floor(f+ Math.random()*(v?f===0?0:Math.min(M,5):M))*1E3,C*1E3)),q.OJ=v;b=cc(b,L,u,q,X,[new jU(H)]);y.get().K.rA(q.OJ.start/1E3-f,H.startSecs-f);return[b]})}; Gx=function(Q){var z,H=(z=bY(Q.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:z.current;if(!H)return null;z=bY(Q.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var f=Q.layoutId,b=bY(Q.clientMetadata,"metadata_type_content_cpn"),L=bY(Q.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),u=bY(Q.clientMetadata,"metadata_type_player_overlay_layout_renderer"),X=bY(Q.clientMetadata,"metadata_type_player_underlay_renderer"),v=bY(Q.clientMetadata, "metadata_type_ad_placement_config"),y=bY(Q.clientMetadata,"metadata_type_video_length_seconds");var q=RX(Q.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?bY(Q.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):RX(Q.clientMetadata,"metadata_type_layout_enter_ms")&&RX(Q.clientMetadata,"metadata_type_layout_exit_ms")?(bY(Q.clientMetadata,"metadata_type_layout_exit_ms")-bY(Q.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{MF:f,contentCpn:b,i6:H,fh:z,instreamAdPlayerOverlayRenderer:L, playerOverlayLayoutRenderer:u,instreamAdPlayerUnderlayRenderer:X,adPlacementConfig:v,videoLengthSeconds:y,Al:q,inPlayerLayoutId:bY(Q.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:bY(Q.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; Amn=function(Q,z){return Isc(Q,z)}; YdA=function(Q,z){z=Isc(Q,z);if(!z)return null;var H;z.Al=(H=bY(Q.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:H.adBreakRemainingLengthSeconds;return z}; Isc=function(Q,z){var H,f=(H=bY(Q.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:H.current;if(!f)return null;H=eIn(Q,z);return{v8:Tsn(Q,z),adPlacementConfig:bY(Q.clientMetadata,"metadata_type_ad_placement_config"),Xz:H,contentCpn:bY(Q.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:bY(Q.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:bY(Q.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:bY(Q.clientMetadata, "metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,Al:void 0,i6:f,MF:Q.layoutId,videoLengthSeconds:bY(Q.clientMetadata,"metadata_type_video_length_seconds")}}; $H=function(Q,z,H,f,b,L,u,X,v){g.h.call(this);this.D=Q;this.j=z;this.S=H;this.L=f;this.Z=b;this.B=L;this.Oj=u;this.qc=X;this.cI=v;this.rP=!0}; rmp=function(Q,z,H){return $xa(Q.Z.get(),z.contentCpn,z.MF,function(f){return j79(Q.B.get(),f.slotId,H,z.adPlacementConfig,z.MF,yJ(Q.Oj.get(),f))})}; j3=function(Q,z,H,f,b,L,u,X){g.h.call(this);this.B=Q;this.Z=z;this.L=H;this.qc=f;this.D=b;this.cI=L;this.K3=u;this.Gq=X}; FM=function(Q){g.h.call(this);this.Z=Q}; Ci=function(Q,z,H,f){Q.Z().vS(z,f);H=H();Q=Q.Z();Q.Yt.E3("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",z,f,H);z=g.n(H);for(H=z.next();!H.done;H=z.next())a:{f=Q;H=H.value;f.Yt.e6("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",H);f.Yt.e6("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",H);try{var b=f.Z;if(g.j5(H.slotId))throw new e("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(ZS(b,H))throw new e("Duplicate registration for slot.",{slotId:H.slotId,slotEntryTriggerType:H.slotEntryTrigger.triggerType}, "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!b.mY.ut.has(H.slotType))throw new e("No fulfillment adapter factory registered for slot of type: "+H.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!b.mY.Mu.has(H.slotType))throw new e("No SlotAdapterFactory registered for slot of type: "+H.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");aT(b,"TRIGGER_CATEGORY_SLOT_ENTRY",H.slotEntryTrigger?[H.slotEntryTrigger]:[]);aT(b,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", H.slotFulfillmentTriggers);aT(b,"TRIGGER_CATEGORY_SLOT_EXPIRATION",H.slotExpirationTriggers);var L=f.Z,u=H.slotType+"_"+H.slotPhysicalPosition,X=YJ(L,u);if(ZS(L,H))throw new e("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");X.set(H.slotId,new KQv(H));L.Z.set(u,X)}catch(bL){bL instanceof e&&bL.D5?(f.Yt.PG("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",bL.D5,H),MZ(bL,H,void 0,void 0,bL.a_)):(f.Yt.PG("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", H),MZ(bL,H));break a}ZS(f.Z,H).j=!0;try{var v=f.Z,y=ZS(v,H),q=H.slotEntryTrigger,M=v.mY.H5.get(q.triggerType);M&&(M.u7("TRIGGER_CATEGORY_SLOT_ENTRY",q,H,null),y.L3.set(q.triggerId,M));for(var C=g.n(H.slotFulfillmentTriggers),t=C.next();!t.done;t=C.next()){var E=t.value,G=v.mY.H5.get(E.triggerType);G&&(G.u7("TRIGGER_CATEGORY_SLOT_FULFILLMENT",E,H,null),y.Ze.set(E.triggerId,G))}for(var x=g.n(H.slotExpirationTriggers),J=x.next();!J.done;J=x.next()){var I=J.value,r=v.mY.H5.get(I.triggerType);r&&(r.u7("TRIGGER_CATEGORY_SLOT_EXPIRATION", I,H,null),y.U.set(I.triggerId,r))}var U=v.mY.ut.get(H.slotType).get().build(v.L,H);y.Y=U;var D=v.mY.Mu.get(H.slotType).get().build(v.S,H);D.init();y.B=D}catch(bL){bL instanceof e&&bL.D5?(f.Yt.PG("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",bL.D5,H),MZ(bL,H,void 0,void 0,bL.a_)):(f.Yt.PG("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",H),MZ(bL,H));pN(f,H,!0);break a}f.Yt.e6("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",H);f.Z.iL(H);for(var T=g.n(f.B),k=T.next();!k.done;k= T.next())k.value.iL(H);jo(f,H)}}; xH=function(Q,z,H,f,b){g.h.call(this);var L=this;this.B=Q;this.L=z;this.n5=H;this.context=b;this.Z=new Map;f.get().addListener(this);this.addOnDisposeCallback(function(){f.Sm()||f.get().removeListener(L)})}; Aru=function(Q,z){var H=0x8000000000000;var f=0;for(var b=g.n(z.slotFulfillmentTriggers),L=b.next();!L.done;L=b.next())L=L.value,L instanceof BZ?(H=Math.min(H,L.Z.start),f=Math.max(f,L.Z.end)):MZ("Found unexpected fulfillment trigger for throttled slot.",z,null,{fulfillmentTrigger:L});f=new xF(H,f);H="throttledadcuerange:"+z.slotId;Q.Z.set(H,z);Q.n5.get().addCueRange(H,f.start,f.end,!1,Q);jM(Q.context.qc.get())&&(z=f.start,f=f.end,b={},Q.context.CE.Hz("tcrr",(b.cid=H,b.sm=z,b.em=f,b)))}; OD=function(){g.h.apply(this,arguments);this.rP=!0;this.g7=new Map;this.Z=new Map}; oa=function(Q,z){Q=g.n(Q.g7.values());for(var H=Q.next();!H.done;H=Q.next())if(H.value.layoutId===z)return!0;return!1}; J7=function(Q,z){Q=g.n(Q.Z.values());for(var H=Q.next();!H.done;H=Q.next()){H=g.n(H.value);for(var f=H.next();!f.done;f=H.next())if(f=f.value,f.layoutId===z)return f}MZ("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.j5(z)),layoutId:z})}; sXA=function(){this.Z=new Map}; B1v=function(Q,z){this.callback=Q;this.slot=z}; ND=function(){}; PxZ=function(Q,z,H){this.callback=Q;this.slot=z;this.K3=H}; as_=function(Q,z,H){this.callback=Q;this.slot=z;this.K3=H;this.B=!1;this.Z=0}; U9Z=function(Q,z,H){this.callback=Q;this.slot=z;this.K3=H}; Ia=function(Q){this.K3=Q}; A7=function(Q){g.h.call(this);this.Wt=Q;this.Sy=new Map}; YH=function(Q,z){for(var H=[],f=g.n(Q.Sy.values()),b=f.next();!b.done;b=f.next()){b=b.value;var L=b.trigger;L instanceof kE&&L.triggeringLayoutId===z&&H.push(b)}H.length?Nf(Q.Wt(),H):MZ("Survey is submitted but no registered triggers can be activated.")}; rM=function(Q,z,H){A7.call(this,Q);var f=this;this.qc=H;z.get().addListener(this);this.addOnDisposeCallback(function(){z.Sm()||z.get().removeListener(f)})}; sD=function(Q){g.h.call(this);this.Z=Q;this.rP=!0;this.Sy=new Map;this.S=new Set;this.L=new Set;this.D=new Set;this.j=new Set;this.B=new Set}; BS=function(Q){g.h.call(this);this.Z=Q;this.Sy=new Map}; PS=function(Q,z){for(var H=[],f=g.n(Q.Sy.values()),b=f.next();!b.done;b=f.next())b=b.value,b.trigger.Z===z.layoutId&&H.push(b);H.length&&Nf(Q.Z(),H)}; aa=function(Q,z,H){g.h.call(this);var f=this;this.Z=Q;this.context=H;this.Sy=new Map;z.get().addListener(this);this.addOnDisposeCallback(function(){z.Sm()||z.get().removeListener(f)})}; UD=function(Q,z,H,f,b){g.h.call(this);var L=this;this.B=Q;this.n5=z;this.K3=H;this.cI=f;this.context=b;this.rP=!0;this.Sy=new Map;this.Z=new Set;H.get().addListener(this);this.addOnDisposeCallback(function(){H.Sm()||H.get().removeListener(L)})}; cmu=function(Q,z,H,f,b,L,u,X,v,y){if(EH(Q.cI.get(),1).clientPlaybackNonce!==v)throw new e("Cannot register CueRange-based trigger for different content CPN",{trigger:H});Q.Sy.set(H.triggerId,{nU:new ep(z,H,f,b),cueRangeId:L});Q.n5.get().addCueRange(L,u,X,y,Q);jM(Q.context.qc.get())&&(v={},Q.context.CE.Hz("crr",(v.ca=z,v.tt=H.triggerType,v.st=f.slotType,v.lt=b==null?void 0:b.layoutType,v.cid=L,v.sm=u,v.em=X,v)))}; iqn=function(Q,z){Q=g.n(Q.Sy.entries());for(var H=Q.next();!H.done;H=Q.next()){var f=g.n(H.value);H=f.next().value;f=f.next().value;if(z===f.cueRangeId)return H}return""}; cS=function(Q,z){g.h.call(this);var H=this;this.D=Q;this.B=new Map;this.L=new Map;this.Z=null;z.get().addListener(this);this.addOnDisposeCallback(function(){z.Sm()||z.get().removeListener(H)}); var f;this.Z=((f=z.get().Y9)==null?void 0:f.slotId)||null}; hkv=function(Q,z){var H=[];Q=g.n(Q.values());for(var f=Q.next();!f.done;f=Q.next())f=f.value,f.slot.slotId===z&&H.push(f);return H}; i6=function(Q){g.h.call(this);this.Z=Q;this.rP=!0;this.Sy=new Map}; Kx=function(Q,z,H){z=z.layoutId;for(var f=[],b=g.n(Q.Sy.values()),L=b.next();!L.done;L=b.next())if(L=L.value,L.trigger instanceof cZ){var u;if(u=L.trigger.layoutId===z){u=H;var X=awZ.get(L.category);u=X?X===u:!1}u&&f.push(L)}f.length&&Nf(Q.Z(),f)}; h7=function(Q){g.h.call(this);this.Z=Q;this.rP=!0;this.Sy=new Map}; WS=function(Q,z,H,f,b){g.h.call(this);var L=this;this.S=Q;this.u8=z;this.K3=H;this.Vl=f;this.Z=null;this.rP=!0;this.Sy=new Map;this.L=new Map;z.get().addListener(this);this.addOnDisposeCallback(function(){z.Sm()||z.get().removeListener(L)}); b.get().addListener(this);this.addOnDisposeCallback(function(){b.Sm()||b.get().removeListener(L)})}; D9A=function(Q){Q.Z&&(Q.B&&(Q.B.stop(),Q.B.start()),Wcc(Q,"TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED"))}; Wcc=function(Q,z){for(var H=[],f=g.n(Q.Sy.values()),b=f.next();!b.done;b=f.next())b=b.value,b.trigger.triggerType===z&&H.push(b);H.length>0&&Nf(Q.S(),H)}; DO=function(Q,z,H,f,b){b=b===void 0?!0:b;for(var L=[],u=g.n(Q.Sy.values()),X=u.next();!X.done;X=u.next()){X=X.value;var v=X.trigger;if(v.triggerType===z){if(v instanceof A2||v instanceof YE||v instanceof PZ){if(b&&v.breakDurationMs!==H)continue;if(!b&&v.breakDurationMs===H)continue;if(f.has(v.triggerId))continue}L.push(X)}}L.length>0&&Nf(Q.S(),L)}; Kca=function(Q){Q=Q.adPlacementRenderer.config.adPlacementConfig;if(!Q.prefetchModeConfig||!Q.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;Q=Number(Q.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(Q)||Q<=0?0:Math.floor(Math.random()*Q)}; VUZ=function(Q){Q=Q.adPlacementRenderer.config.adPlacementConfig;if(Q.prefetchModeConfig&&Q.prefetchModeConfig.cacheFetchRefreshDurationMs&&(Q=Number(Q.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(Q)||Q<=0)))return Q}; KQ=function(Q){Q.Z=null;Q.Sy.clear();Q.L.clear();Q.B&&Q.B.stop();Q.D&&Q.D.stop()}; VL=function(Q){g.h.call(this);this.L=Q;this.rP=!0;this.Sy=new Map;this.Z=new Map;this.B=new Map}; d9n=function(Q,z){var H=[];if(z=Q.Z.get(z.layoutId)){z=g.n(z);for(var f=z.next();!f.done;f=z.next())(f=Q.B.get(f.value.triggerId))&&H.push(f)}return H}; dM=function(Q){g.h.call(this);this.Z=Q;this.Sy=new Map}; m9L=function(Q,z){for(var H=[],f=g.n(Q.Sy.values()),b=f.next();!b.done;b=f.next())b=b.value,b.trigger instanceof GT&&b.trigger.slotId===z&&H.push(b);H.length>=1&&Nf(Q.Z(),H)}; weY=function(Q,z){var H={slotId:tX(z,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],hh:"surface",clientMetadata:new fN([])},f=Object,b=f.assign;z=w4(z,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",H.slotId);z={layoutId:z,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",wT:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],YN:[],hh:"surface", clientMetadata:new fN([]),cz:Al_(!1,H.slotId,H.slotType,H.slotPhysicalPosition,H.hh,H.slotEntryTrigger,H.slotFulfillmentTriggers,H.slotExpirationTriggers,z,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return b.call(f,{},Q,{OHn:!0,slot:H,layout:z})}; Btk=function(Q,z,H,f){var b=Q.kind;f=f?!1:!Q.hideCueRangeMarker;switch(b){case "AD_PLACEMENT_KIND_START":return f={Fr:new xF(-0x8000000000000,-0x8000000000000),T2:f},H!=null&&(f.OJ=new xF(-0x8000000000000,-0x8000000000000)),f;case "AD_PLACEMENT_KIND_END":return f={Fr:new xF(0x7ffffffffffff,0x8000000000000),T2:f},H!=null&&(f.OJ=new xF(Math.max(0,z-H),0x8000000000000)),f;case "AD_PLACEMENT_KIND_MILLISECONDS":b=Q.adTimeOffset;b.offsetStartMilliseconds||MZ("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); b.offsetEndMilliseconds||MZ("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");Q=Number(b.offsetStartMilliseconds);b=Number(b.offsetEndMilliseconds);b===-1&&(b=z);if(Number.isNaN(Q)||Number.isNaN(b)||Q>b)return new e("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:Q,offsetEndMs:b},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",b===z&&Q-500<=b);f={Fr:new xF(Q,b),T2:f};if(H!=null){Q=Math.max(0,Q-H);if(Q===b)return f;f.OJ=new xF(Q,b)}return f; default:return new e("AdPlacementKind not supported in convertToRange.",{kind:b,adPlacementConfig:Q})}}; JmL=function(Q){var z=Q.startSecs*1E3;return new xF(z,z+Q.NB*1E3)}; kgu=function(Q){if(!Q||!Q.adPlacements&&!Q.adSlots)return!1;for(var z=g.n(Q.adPlacements||[]),H=z.next();!H.done;H=z.next())if(H=H.value)if(H=H.adPlacementRenderer,H!=null&&(H.config&&H.config.adPlacementConfig&&H.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;Q=g.n(Q.adSlots||[]);for(z=Q.next();!z.done;z=Q.next()){var f=H=void 0;if(((H=g.K(z.value,Uy))==null?void 0:(f=H.adSlotMetadata)==null?void 0:f.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; mi=function(Q){this.qc=Q;this.B=new Map;this.Z=new Map;this.L=new Map}; tX=function(Q,z){if(wM(Q.qc.get())){var H=Q.B.get(z)||0;H++;Q.B.set(z,H);return z+"_"+H}return g.xk(16)}; w4=function(Q,z,H){if(wM(Q.qc.get())){var f=Q.Z.get(z)||0;f++;Q.Z.set(z,f);return H+"_"+z+"_"+f}return g.xk(16)}; LQ=function(Q,z){if(wM(Q.qc.get())){var H=Q.L.get(z)||0;H++;Q.L.set(z,H);return z+"_"+H}return g.xk(16)}; T1_=function(Q){var z=[new tm(Q.MF),new g1(Q.i6),new TL(Q.adPlacementConfig),new Fi(Q.videoLengthSeconds),new ce(Q.Al)];Q.instreamAdPlayerOverlayRenderer&&z.push(new fq(Q.instreamAdPlayerOverlayRenderer));Q.playerOverlayLayoutRenderer&&z.push(new bx(Q.playerOverlayLayoutRenderer));Q.fh&&z.push(new QN(Q.fh));return z}; ekn=function(Q,z,H,f,b,L){Q=H.inPlayerLayoutId?H.inPlayerLayoutId:w4(L,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Q);var u,X,v=H.instreamAdPlayerOverlayRenderer?(u=H.instreamAdPlayerOverlayRenderer)==null?void 0:u.adLayoutLoggingData:(X=H.playerOverlayLayoutRenderer)==null?void 0:X.adLayoutLoggingData;u={layoutId:Q,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",hh:z};return{layoutId:Q,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",wT:new Map,layoutExitNormalTriggers:[new NM(function(y){return LQ(L, y)},H.MF)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],YN:[],hh:z,clientMetadata:f,cz:b(u),adLayoutLoggingData:v}}; kH=function(Q,z){var H=this;this.B=Q;this.qc=z;this.Z=function(f){return LQ(H.B.get(),f)}}; j79=function(Q,z,H,f,b,L){H=new fN([new Lq(H),new TL(f)]);z=w4(Q.B.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",z);f={layoutId:z,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",hh:"core"};return{layoutId:z,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",wT:new Map,layoutExitNormalTriggers:[new NM(function(u){return LQ(Q.B.get(),u)},b)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],YN:[],hh:"core",clientMetadata:H,cz:L(f),adLayoutLoggingData:void 0}}; eG=function(Q,z,H,f,b){var L=T1_(f);return ekn(z,H,f,new fN(L),b,Q.B.get())}; lsn=function(Q,z,H,f,b){var L=T1_(f);L.push(new wh(f.v8));L.push(new k9(f.Xz));return ekn(z,H,f,new fN(L),b,Q.B.get())}; pQ=function(Q,z,H,f,b,L,u,X,v,y){z=w4(Q.B.get(),H,z);var q={layoutId:z,layoutType:H,hh:"core"},M=new Map;u&&M.set("impression",u);u=[new a9(Q.Z,b,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];y&&u.push(new J2(Q.Z,y,["normal"]));return{layoutId:z,layoutType:H,wT:M,layoutExitNormalTriggers:u,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],YN:[],hh:"core",clientMetadata:new fN([f,new TL(L),new tm(b)]),cz:X(q),adLayoutLoggingData:v}}; nQ=function(Q,z,H,f,b,L,u,X,v){z=w4(Q.B.get(),H,z);var y={layoutId:z,layoutType:H,hh:"core"},q=[new a9(Q.Z,b,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];v&&q.push(new J2(Q.Z,v,["normal"]));return{layoutId:z,layoutType:H,wT:new Map,layoutExitNormalTriggers:q,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],YN:[],hh:"core",clientMetadata:new fN([f,new TL(L),new tm(b)]),cz:u(y),adLayoutLoggingData:X}}; S3=function(Q,z,H){var f=[];f.push(new Uv(Q.Z,H));z&&f.push(z);return f}; u6=function(Q,z,H,f,b,L,u){var X={layoutId:z,layoutType:H,hh:"core"};return{layoutId:z,layoutType:H,wT:new Map,layoutExitNormalTriggers:u,layoutExitSkipTriggers:[new FO(Q.Z,z)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],YN:[],hh:"core",clientMetadata:new fN([new KP(f),new TL(b)]),cz:L(X),adLayoutLoggingData:f.adLayoutLoggingData}}; me=function(Q,z,H,f,b,L,u,X){var v={layoutId:z,layoutType:L,hh:"core"};return{layoutId:z,layoutType:L,wT:new Map,layoutExitNormalTriggers:[new NM(Q.Z,H)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],YN:[],hh:"core",clientMetadata:new fN([new TL(f)].concat(g.F(u))),cz:b(v),adLayoutLoggingData:X}}; vS=function(Q,z,H,f){if(Q.qc.get().MB(z.kind==="AD_PLACEMENT_KIND_START"))if(H===void 0)MZ("Expected SSAP layout ID in renderer",void 0,void 0,{caller:f});else return H}; Hqa=function(Q,z,H,f,b,L,u,X,v,y,q,M,C){Q=XM(Q,z,H,b,L,u,X,v,M,vS(Q,H,f.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),C);z=Q.Ee;H=new Ed(Q.lS);f=Q.layoutExitSkipTriggers;y>0&&(z.push(H),z.push(new R7(y)),f=[]);z.push(new l1(q));return{AN:{layoutId:Q.layoutId,layoutType:Q.layoutType,wT:Q.wT,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],YN:[],hh:Q.hh,clientMetadata:new fN(z),cz:Q.cz,adLayoutLoggingData:Q.adLayoutLoggingData}, DA:f,zl:Q.layoutExitMuteTriggers,XQ:Q.layoutExitUserInputSubmittedTriggers,iI:Q.YN,i8:Q.i8}}; ui9=function(Q,z,H,f,b,L,u,X,v,y){z=XM(Q,z,H,f,L,new Map,u,function(q){return X(q,v)},void 0,vS(Q,H,b.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey")); Q=new kE(Q.Z,z.lS);H=new Ed(z.lS);y=new l1(y);return{AN:{layoutId:z.layoutId,layoutType:z.layoutType,wT:z.wT,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],YN:[],hh:z.hh,clientMetadata:new fN([].concat(g.F(z.Ee),[H,y])),cz:z.cz,adLayoutLoggingData:z.adLayoutLoggingData},DA:z.layoutExitSkipTriggers,zl:z.layoutExitMuteTriggers,XQ:[].concat(g.F(z.layoutExitUserInputSubmittedTriggers),[Q]),iI:z.YN,i8:z.i8}}; XM=function(Q,z,H,f,b,L,u,X,v,y,q){z=y!=null?y:w4(Q.B.get(),"LAYOUT_TYPE_MEDIA_BREAK",z);y={layoutId:z,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",hh:"adapter"};X=X(z);var M=bY(X.clientMetadata,"metadata_type_fulfilled_layout");M||MZ("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var C=M?M.layoutId:"";H=[new TL(H),new ix(f),new Ds(b)];M&&H.push(new pq(M.layoutType));q&&H.push(new IX(q));return{layoutId:z,layoutType:"LAYOUT_TYPE_MEDIA_BREAK", wT:L,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new WZ(Q.Z,C)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],YN:[],hh:"adapter",Ee:H,cz:u(y),adLayoutLoggingData:v,i8:X,lS:C}}; ZP9=function(Q,z,H,f,b,L,u,X,v,y,q){Q=Rk_(Q,z,"core",H,f,b,L,u,X,v,y,void 0,q);return{layoutId:Q.layoutId,layoutType:Q.layoutType,wT:Q.wT,layoutExitNormalTriggers:Q.layoutExitNormalTriggers,layoutExitSkipTriggers:Q.layoutExitSkipTriggers,layoutExitMuteTriggers:Q.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:Q.layoutExitUserInputSubmittedTriggers,YN:Q.YN,hh:Q.hh,clientMetadata:new fN(Q.EP),cz:Q.cz,adLayoutLoggingData:Q.adLayoutLoggingData}}; nL8=function(Q,z,H,f,b,L,u,X,v,y,q,M,C){z=Rk_(Q,z,"adapter",H,f,b,L,u,X,v,q,M,C);f=z.layoutExitSkipTriggers;b=z.EP;H.adPodSkipTarget&&H.adPodSkipTarget>0&&(b.push(y),b.push(new R7(H.adPodSkipTarget)),f=[]);b.push(new l1(X.adPodIndex));H.isCritical&&(f=[new J2(Q.Z,z.layoutId,["error"])].concat(g.F(f)));return{AN:{layoutId:z.layoutId,layoutType:z.layoutType,wT:z.wT,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],YN:[],hh:z.hh,clientMetadata:new fN(b), cz:z.cz,adLayoutLoggingData:z.adLayoutLoggingData},DA:f,zl:z.layoutExitMuteTriggers,XQ:z.layoutExitUserInputSubmittedTriggers,iI:z.YN}}; Rk_=function(Q,z,H,f,b,L,u,X,v,y,q,M,C){var t={layoutId:z,layoutType:"LAYOUT_TYPE_MEDIA",hh:H};b=[new TL(b),new e7(v),new zg(f.externalVideoId),new He(X),new Ds({impressionCommands:f.impressionCommands,abandonCommands:f.onAbandonCommands,completeCommands:f.completeCommands,progressCommands:f.adVideoProgressCommands}),new xL(L),new Zs({current:null}),new Fi(u)];(L=f.playerOverlay.instreamAdPlayerOverlayRenderer)&&b.push(new fq(L));(u=f.playerOverlay.playerOverlayLayoutRenderer)&&b.push(new bx(u)); M&&b.push(new Od(M));(M=f.playerUnderlay)&&b.push(new Lq(M));X=tX(Q.B.get(),"SLOT_TYPE_IN_PLAYER");M=(M=L?L.elementId:u==null?void 0:u.layoutId)?M:w4(Q.B.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",X);b.push(new Ed(M));b.push(new nq(X));b.push(new IX(v.adPodIndex));f.adNextParams&&b.push(new WX(f.adNextParams));f.shrunkenPlayerBytesConfig&&b.push(new Xi(f.shrunkenPlayerBytesConfig));f.clickthroughEndpoint&&b.push(new Do(f.clickthroughEndpoint));f.legacyInfoCardVastExtension&&b.push(new hm(f.legacyInfoCardVastExtension)); f.sodarExtensionData&&b.push(new oX(f.sodarExtensionData));q&&b.push(new Ud(q));b.push(new d1(F5(f.pings)));v=OB(f.pings);if(C){a:{C=g.n(C);for(q=C.next();!q.done;q=C.next())if(q=q.value,q.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(L=g.K(q.fulfillmentContent.fulfilledLayout,GC))&&(L=g.K(L.renderingContent,gg))&&L.associatedPlayerBytesLayoutId===z){C=q;break a}C=void 0}C&&b.push(new ux(C))}return{layoutId:z,layoutType:"LAYOUT_TYPE_MEDIA",wT:v,layoutExitNormalTriggers:[new cZ(Q.Z,z)],layoutExitSkipTriggers:f.skipOffsetMilliseconds? [new WZ(Q.Z,M)]:[],layoutExitMuteTriggers:[new WZ(Q.Z,M)],layoutExitUserInputSubmittedTriggers:[],YN:[],hh:H,EP:b,cz:y(t),adLayoutLoggingData:f.adLayoutLoggingData}}; v9v=function(Q,z,H,f,b,L,u,X,v){f.every(function(q){return QJ(q,[],["LAYOUT_TYPE_MEDIA"])})||MZ("Unexpect subLayout type for DAI composite layout"); z=w4(Q.B.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",z);var y={layoutId:z,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",hh:"core"};return{layoutId:z,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",wT:new Map,layoutExitNormalTriggers:[new I9(Q.Z)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],YN:[],hh:"core",clientMetadata:new fN([new Jm(H),new N9(X),new $L(f),new TL(b),new sd(L),new Am({}),new w1(v)]),cz:u(y)}}; bPZ=function(Q){return Q!=null}; Tx=function(Q,z,H){var f=this;this.B=Q;this.L=z;this.qc=H;this.Z=function(b){return LQ(f.B.get(),b)}}; oLJ=function(Q,z,H,f,b,L,u){if(!H.prefetchModeConfig)return new e("AdPlacementConfig for Live Prefetch is missing prefetch_config");H=H.prefetchModeConfig;f*=1E3;var X=[];if(!H.breakLengthMs)return new e("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var v=g.n(H.breakLengthMs),y=v.next();!y.done;y=v.next())if(y=y.value,Number(y)>0){var q=f+Number(H.startTimeOffsetMs),M=q+Number(H.cacheFetchSmearingDurationMs);y={Fr:new xF(M,M+Number(y)),T2:!1,OJ:new xF(Math.floor(q+Math.random()* Number(H.cacheFetchSmearingDurationMs)),M),cueProcessedMs:f?f:q};q=[];q.push(new lx({}));M=[];M.push(new h2(Q.Z));M.push(new eA_(Q.Z));u&&q.push(new Am({}));X.push(cc(Q,z,b,y,L,q,M))}return X}; cc=function(Q,z,H,f,b,L,u){L=L===void 0?[]:L;u=u===void 0?[]:u;var X=tX(Q.B.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),v=[];u=g.n(u);for(var y=u.next();!y.done;y=u.next())v.push(y.value);f.OJ&&f.OJ.start!==f.Fr.start&&v.push(new BZ(Q.Z,H,new xF(f.OJ.start,f.Fr.start),!1));v.push(new BZ(Q.Z,H,new xF(f.Fr.start,f.Fr.end),f.T2));f={getAdBreakUrl:z.getAdBreakUrl,ET:f.Fr.start,Ja:f.Fr.end,cueProcessedMs:f.cueProcessedMs};z=new d0(Q.Z,X);L=[new Pe(f)].concat(g.F(L));return{slotId:X,slotType:"SLOT_TYPE_AD_BREAK_REQUEST", slotPhysicalPosition:1,slotEntryTrigger:z,slotFulfillmentTriggers:v,slotExpirationTriggers:[new iB(Q.Z,H),new K6(Q.Z,X),new V0(Q.Z,X)],hh:"core",clientMetadata:new fN(L),adSlotLoggingData:b}}; zF8=function(Q,z,H){var f=[];H=g.n(H);for(var b=H.next();!b.done;b=H.next())f.push(QTa(Q,z,b.value));return f}; QTa=function(Q,z,H){return H.triggeringSlotId!=null&&H.triggeringSlotId===Q?H.clone(z):H}; mr9=function(Q,z,H,f,b){return HN_(Q,z,H,f,b)}; fsA=function(Q,z,H,f){var b=tX(Q.B.get(),"SLOT_TYPE_IN_PLAYER");return HN_(Q,b,z,H,f)}; HN_=function(Q,z,H,f,b){var L=new o9(Q.Z,H),u=[new Di(Q.Z,z)];Q=[new K6(Q.Z,z),new iB(Q.Z,f)];return{slotId:z,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:L,slotFulfillmentTriggers:u,slotExpirationTriggers:Q,hh:"core",clientMetadata:new fN([new Be(b({slotId:z,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,hh:"core",slotEntryTrigger:L,slotFulfillmentTriggers:u,slotExpirationTriggers:Q},H))]),adSlotLoggingData:void 0}}; gL_=function(Q,z,H,f,b,L){var u=tX(Q.B.get(),"SLOT_TYPE_PLAYER_BYTES"),X=tX(Q.B.get(),"SLOT_TYPE_IN_PLAYER"),v=w4(Q.B.get(),"LAYOUT_TYPE_SURVEY",X);f=e3(Q,z,H,f);var y=[new Di(Q.Z,u)];H=[new K6(Q.Z,u),new iB(Q.Z,H),new FO(Q.Z,v)];if(f instanceof e)return f;X=L({slotId:u,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,hh:"core",slotEntryTrigger:f,slotFulfillmentTriggers:y,slotExpirationTriggers:H},{slotId:X,layoutId:v});L=X.Cem;X=X.Uch;return[{slotId:u,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:qD(Q,z,u,f),slotFulfillmentTriggers:MD(Q,z,u,y),slotExpirationTriggers:H,hh:"core",clientMetadata:new fN([new Be(L),new kL(CQ(z)),new eU({kG:Q.kG(z)})]),adSlotLoggingData:b},X]}; CQ=function(Q){return Q.kind==="AD_PLACEMENT_KIND_START"}; GLn=function(Q,z,H,f,b){b=b?b:tX(Q.B.get(),"SLOT_TYPE_IN_PLAYER");H=new o9(Q.Z,H);var L=[new Di(Q.Z,b)];Q=[new iB(Q.Z,z),new K6(Q.Z,b)];return{slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:H,slotFulfillmentTriggers:L,slotExpirationTriggers:Q,hh:"core",clientMetadata:new fN([new Be(f({slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,hh:"core",slotEntryTrigger:H,slotFulfillmentTriggers:L,slotExpirationTriggers:Q}))])}}; $xa=function(Q,z,H,f){var b=tX(Q.B.get(),"SLOT_TYPE_PLAYER_UNDERLAY");H=new o9(Q.Z,H);var L=[new Di(Q.Z,b)];Q=[new iB(Q.Z,z),new K6(Q.Z,b)];return{slotId:b,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:H,slotFulfillmentTriggers:L,slotExpirationTriggers:Q,hh:"core",clientMetadata:new fN([new Be(f({slotId:b,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,hh:"core",slotEntryTrigger:H,slotFulfillmentTriggers:L,slotExpirationTriggers:Q}))])}}; M7n=function(Q,z,H,f,b,L,u){var X=tX(Q.B.get(),"SLOT_TYPE_IN_PLAYER"),v=w4(Q.B.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",X);f=fS6(Q,f,L,u,v);if(f instanceof e)return f;u=[new Di(Q.Z,X)];b=[new iB(Q.Z,L),new Di(Q.Z,b),new w0(Q.Z,b)];H=yJ(H,{slotId:X,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,hh:"core",slotEntryTrigger:f,slotFulfillmentTriggers:u,slotExpirationTriggers:b});Q=Q.L.get();L={layoutId:v,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",hh:"core"};z={layoutId:v,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", wT:new Map,layoutExitNormalTriggers:[new LtA(Q.Z,v,z.durationMs)],layoutExitSkipTriggers:[new S1p(Q.Z,v,z.durationMs)],YN:[new uha(Q.Z,v)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],hh:"core",clientMetadata:new fN([new We(z)]),cz:H(L)};return{slotId:X,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,hh:"core",slotEntryTrigger:f,slotFulfillmentTriggers:u,slotExpirationTriggers:b,clientMetadata:new fN([new Be(z)])}}; QXZ=function(Q,z,H,f,b,L){z=e3(Q,z,H,f);if(z instanceof e)return z;var u=z instanceof BZ?new H4n(Q.Z,H,z.Z):null;f=tX(Q.B.get(),"SLOT_TYPE_IN_PLAYER");var X=[new Di(Q.Z,f)];Q=[new iB(Q.Z,H),new K6(Q.Z,f)];L=L({slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,hh:"core",slotEntryTrigger:z,slotFulfillmentTriggers:X,slotExpirationTriggers:Q},u);return L instanceof Ha?new e(L):{slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:z,slotFulfillmentTriggers:X,slotExpirationTriggers:Q, hh:"core",clientMetadata:new fN([new Be(L)]),adSlotLoggingData:b}}; lo9=function(Q,z,H,f){var b=tX(Q.B.get(),"SLOT_TYPE_IN_PLAYER"),L=new jp(Q.Z,z),u=[new m9(Q.Z,b)];Q=[new iB(Q.Z,z),new K6(Q.Z,b)];return{slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:L,slotFulfillmentTriggers:u,slotExpirationTriggers:Q,hh:"core",clientMetadata:new fN([new Be(f({slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,hh:"core",slotEntryTrigger:L,slotFulfillmentTriggers:u,slotExpirationTriggers:Q}))]),adSlotLoggingData:H}}; RJJ=function(Q,z,H,f){var b=tX(Q.B.get(),"SLOT_TYPE_IN_PLAYER");H=new o9(Q.Z,H);var L=[new Di(Q.Z,b)],u=[new K6(Q.Z,b),new iB(Q.Z,z)];L={slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,hh:"core",slotEntryTrigger:H,slotFulfillmentTriggers:L,slotExpirationTriggers:u};return{slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:H,slotFulfillmentTriggers:[new Di(Q.Z,b)],slotExpirationTriggers:[new iB(Q.Z,z),new K6(Q.Z,b)],hh:"core",clientMetadata:new fN([new Be(f(L))])}}; Tt8=function(Q,z,H,f,b){var L=tX(Q.B.get(),"SLOT_TYPE_IN_PLAYER");H=new Ov(Q.Z,f,H);f=[new Di(Q.Z,L)];Q=[new iB(Q.Z,z)];return{slotId:L,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:H,slotFulfillmentTriggers:f,slotExpirationTriggers:Q,hh:"core",clientMetadata:new fN([new Be(b({slotId:L,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,hh:"core",slotEntryTrigger:H,slotFulfillmentTriggers:f,slotExpirationTriggers:Q}))])}}; KtL=function(Q,z,H,f,b,L){var u=tX(Q.B.get(),z);return l6(Q,u,z,new o9(Q.Z,f),[new iB(Q.Z,H),new K6(Q.Z,u),new J2(Q.Z,f,["error"])],b,L)}; Dr_=function(Q,z,H,f,b,L,u){var X=tX(Q.B.get(),z);return l6(Q,X,z,new J2(Q.Z,b,["normal"]),[new iB(Q.Z,H),new K6(Q.Z,X),new J2(Q.Z,f,["error"])],L,u)}; cra=function(Q,z,H,f,b){var L=tX(Q.B.get(),z);return l6(Q,L,z,new jp(Q.Z,H),[new iB(Q.Z,H),new K6(Q.Z,L)],f,b)}; wXp=function(Q,z,H,f,b){H=H?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var L=tX(Q.B.get(),H);z=new jp(Q.Z,z);var u=[new Di(Q.Z,L)];Q=[new K6(Q.Z,L)];return{slotId:L,slotType:H,slotPhysicalPosition:1,slotEntryTrigger:z,slotFulfillmentTriggers:u,slotExpirationTriggers:Q,hh:"core",clientMetadata:new fN([new Be(b({slotId:L,slotType:H,slotPhysicalPosition:1,hh:"core",slotEntryTrigger:z,slotFulfillmentTriggers:u,slotExpirationTriggers:Q}))]),adSlotLoggingData:f}}; LdL=function(Q,z,H,f){var b=tX(Q.B.get(),"SLOT_TYPE_PLAYER_BYTES"),L=new r0(Q.Z),u=[new m9(Q.Z,b)];Q=[new iB(Q.Z,z)];return{slotId:b,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:L,slotFulfillmentTriggers:u,slotExpirationTriggers:Q,hh:"core",clientMetadata:new fN([new Be(f({slotId:b,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,hh:"core",slotEntryTrigger:L,slotFulfillmentTriggers:u,slotExpirationTriggers:Q})),new Am({})]),adSlotLoggingData:H}}; Cxp=function(Q,z){return x99(Q.qc.get())?new J2(Q.Z,z,["normal","error","skipped"]):new J2(Q.Z,z,["normal"])}; pXc=function(Q,z,H,f,b){z=Cxp(Q,z);Q=yL(Q,z,H);b=b({slotId:Q.slotId,slotType:Q.slotType,slotPhysicalPosition:Q.slotPhysicalPosition,slotEntryTrigger:Q.slotEntryTrigger,slotFulfillmentTriggers:Q.slotFulfillmentTriggers,slotExpirationTriggers:Q.slotExpirationTriggers,hh:Q.hh});return b instanceof e?b:{zV:Object.assign({},Q,{clientMetadata:new fN([new Be(b.layout)]),adSlotLoggingData:f}),Se:b.Se}}; n9A=function(Q,z,H,f,b,L,u){H=tUa(Q,z,H,f);if(H instanceof e)return H;u=u({slotId:H.slotId,slotType:H.slotType,slotPhysicalPosition:H.slotPhysicalPosition,slotEntryTrigger:H.slotEntryTrigger,slotFulfillmentTriggers:H.slotFulfillmentTriggers,slotExpirationTriggers:H.slotExpirationTriggers,hh:H.hh});if(u instanceof e)return u;f=[new kL(CQ(z)),new Be(u.layout),new eU({kG:Q.kG(z)})];L&&f.push(new Kq({}));return{zV:{slotId:H.slotId,slotType:H.slotType,slotPhysicalPosition:H.slotPhysicalPosition,slotEntryTrigger:qD(Q, z,H.slotId,H.slotEntryTrigger),slotFulfillmentTriggers:MD(Q,z,H.slotId,H.slotFulfillmentTriggers),slotExpirationTriggers:H.slotExpirationTriggers,hh:H.hh,clientMetadata:new fN(f),adSlotLoggingData:b},Se:u.Se}}; qD=function(Q,z,H,f){return Q.qc.get().MB(CQ(z))?new GT(Q.Z,H):f}; MD=function(Q,z,H,f){return Q.qc.get().MB(CQ(z))?[new m9(Q.Z,H)]:f}; yL=function(Q,z,H){var f=tX(Q.B.get(),"SLOT_TYPE_PLAYER_BYTES"),b=[new Di(Q.Z,f)];Q=[new K6(Q.Z,f),new iB(Q.Z,H)];return{slotId:f,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:z,slotFulfillmentTriggers:b,slotExpirationTriggers:Q,hh:"core"}}; tUa=function(Q,z,H,f){z=e3(Q,z,H,f);return z instanceof e?z:yL(Q,z,H)}; Th8=function(Q,z,H,f,b,L){var u=tX(Q.B.get(),"SLOT_TYPE_FORECASTING");z=e3(Q,z,H,f);if(z instanceof e)return z;f=[new Di(Q.Z,u)];Q=[new K6(Q.Z,u),new iB(Q.Z,H)];return{slotId:u,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:z,slotFulfillmentTriggers:f,slotExpirationTriggers:Q,hh:"core",clientMetadata:new fN([new Be(L({slotId:u,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,hh:"core",slotEntryTrigger:z,slotFulfillmentTriggers:f,slotExpirationTriggers:Q}))]),adSlotLoggingData:b}}; bNY=function(Q,z,H,f,b){var L=!z.hideCueRangeMarker;switch(z.kind){case "AD_PLACEMENT_KIND_START":return new jp(Q.Z,H);case "AD_PLACEMENT_KIND_MILLISECONDS":return Q=Btk(z,f),Q instanceof e?Q:b(Q.Fr,L);case "AD_PLACEMENT_KIND_END":return new xE(Q.Z,H,L);default:return new e("Cannot construct entry trigger",{kind:z.kind})}}; fS6=function(Q,z,H,f,b){return bNY(Q,z,H,f,function(L,u){return new zJu(Q.Z,H,L,u,b)})}; e3=function(Q,z,H,f){return bNY(Q,z,H,f,function(b,L){return new BZ(Q.Z,H,b,L)})}; l6=function(Q,z,H,f,b,L,u){Q=[new m9(Q.Z,z)];return{slotId:z,slotType:H,slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:Q,slotExpirationTriggers:b,hh:"core",clientMetadata:new fN([new Be(u({slotId:z,slotType:H,slotPhysicalPosition:1,hh:"core",slotEntryTrigger:f,slotFulfillmentTriggers:Q,slotExpirationTriggers:b}))]),adSlotLoggingData:L}}; Ra=function(Q,z){g.h.call(this);this.qc=Q;this.Z=z;this.eventCount=0}; Q1=function(Q,z,H,f){Ra.call(this,Q,z);this.qc=Q;this.cI=H;this.context=f}; z0=function(){this.Z=new Map}; bM=function(Q,z){var H=this;this.currentState="wait";this.onSuccess=[];this.onFailure=[];this.currentState=Q;this.result=z.result;this.error=z.error;z.promise&&z.promise.then(function(f){HB(H,f)},function(f){fE(H,f)})}; SJ=function(Q){if(LE(Q)){if(Q instanceof bM)return Q;if(uM(Q))return new bM("wait",{promise:Q})}return new bM("done",{result:Q})}; X_=function(){return new bM("wait",{})}; vB=function(Q){return new bM("fail",{error:Q})}; y1=function(Q){try{return SJ(Q())}catch(z){return vB(z)}}; M1=function(Q,z){var H=X_();Q.onSuccess.push(function(f){try{var b=z(f);HB(H,b)}catch(L){fE(H,L)}}); Q.onFailure.push(function(f){fE(H,f)}); q1(Q);return H}; CE=function(Q,z){var H=X_();Q.onSuccess.push(function(f){HB(H,f)}); Q.onFailure.push(function(f){try{var b=z(f);HB(H,b)}catch(L){fE(H,L)}}); q1(Q);return H}; Lmp=function(Q,z){var H=X_();Q.onSuccess.push(function(f){try{z(),HB(H,f)}catch(b){fE(H,b)}}); Q.onFailure.push(function(f){try{z(),fE(H,f)}catch(b){fE(H,b)}}); q1(Q)}; HB=function(Q,z){if(LE(z)){if(uM(z)){z.then(function(H){HB(Q,H)},function(H){fE(Q,H)}); return}if(z instanceof bM){M1(z,function(H){HB(Q,H)}); CE(z,function(H){fE(Q,H)}); return}}Q.currentState="done";Q.result=z;q1(Q)}; fE=function(Q,z){Q.currentState="fail";Q.error=z;q1(Q)}; q1=function(Q){if(Q.currentState==="done"){var z=Q.onSuccess;Q.onSuccess=[];Q.onFailure=[];z=g.n(z);for(var H=z.next();!H.done;H=z.next())H=H.value,H(Q.result)}else if(Q.currentState==="fail")for(z=Q.onFailure,Q.onSuccess=[],Q.onFailure=[],z=g.n(z),H=z.next();!H.done;H=z.next())H=H.value,H(Q.error)}; SV6=function(Q){return function(){return uEA(Q.apply(this,g.A8.apply(0,arguments)))}}; uEA=function(Q){return y1(function(){return tK(Q,Q.next())})}; tK=function(Q,z){return z.done?SJ(z.value):CE(M1(z.value.sy,function(H){return tK(Q,Q.next(H))}),function(H){return tK(Q,Q.throw(H))})}; XaZ=function(Q,z){if(Q.length===0)return SJ(NaN);var H=X_(),f=Q.length;Q.forEach(function(b,L){Lmp(SJ(b),function(){H.currentState==="wait"&&(z!==void 0&&z(L)&&H.currentState==="wait"?H.resolve(L):(--f,f===0&&H.resolve(NaN)))})}); return H}; vJJ=function(Q){return Q.map(function(z){return SJ(z)})}; pE=function(Q){var z=Q.hours||0;var H=Q.minutes||0,f=Q.seconds||0;z=f+H*60+z*3600+(Q.days||0)*86400+(Q.weeks||0)*604800+(Q.months||0)*2629800+(Q.years||0)*31557600;z<=0?z={hours:0,minutes:0,seconds:0}:(Q=z,z=Math.floor(Q/3600),Q%=3600,H=Math.floor(Q/60),f=Math.floor(Q%60),z={hours:z,minutes:H,seconds:f});var b=z.hours===void 0?0:z.hours;H=z.minutes===void 0?0:z.minutes;Q=z.seconds===void 0?0:z.seconds;f=b>0;z=[];if(f){b=(new Intl.NumberFormat("en-u-nu-latn")).format(b);var L=["fr"],u="az bs ca da de el es eu gl hr id is it km lo mk nl pt-BR ro sl sr sr-Latn tr vi".split(" "); b="af be bg cs et fi fr-CA hu hy ka kk ky lt lv no pl pt-PT ru sk sq sv uk uz".split(" ").includes(EW)?b.replace(",","\u00a0"):L.includes(EW)?b.replace(",","\u202f"):u.includes(EW)?b.replace(",","."):b;z.push(b)}f=f===void 0?!1:f;H=(["af","be","lt"].includes(EW)||f)&&H<10?yO_().format(H):(new Intl.NumberFormat("en-u-nu-latn")).format(H);z.push(H);H=yO_().format(Q);z.push(H);H=":";"da fi id si sr sr-Latn".split(" ").includes(EW)&&(H=".");return z.join(H)}; yO_=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; qV_=function(Q,z){var H,f;Q=((H=Q.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(f=H.videoAuthorizationToken)==null?void 0:f.credentialTransferTokens)||[];for(H=0;Hz;Q=H}else Q=!1;return Q}; N4a=function(Q){Q=Q.split("");rZ.OP(Q,32);rZ.ZV(Q,3);rZ.OP(Q,40);rZ.kh(Q,15);rZ.ZV(Q,1);rZ.OP(Q,71);rZ.ZV(Q,2);return Q.join("")}; g.sW=function(Q,z){return Q.qP+"timedtext_video?ref=player&v="+z.videoId}; g.ISv=function(Q){var z=this;this.videoData=Q;Q={};this.Z=(Q.c1a=function(){var H=[];if(g.AK.isInitialized()){var f="";z.videoData&&z.videoData.iF&&(f=z.videoData.iF+("&r1b="+z.videoData.clientPlaybackNonce));var b={};f=(b.atr_challenge=f,b);Vv("bg_v",void 0,"player_att");(f=JOA(f))?(Vv("bg_s",void 0,"player_att"),H.push("r1a="+f)):(Vv("bg_e",void 0,"player_att"),H.push("r1c=2"))}else Vv("bg_e",void 0,"player_att"),window.trayride||window.botguard?H.push("r1c=1"):H.push("r1c=4");H.push("r1d="+g.AK.getState()); return H.join("&")},Q.c6a=function(H){return"r6a="+(Number(H.c)^vm())},Q.c6b=function(H){return"r6b="+(Number(H.c)^Number(g.T5("CATSTAT",0)))},Q); this.videoData&&this.videoData.iF?this.kM=bv(this.videoData.iF):this.kM={}}; g.AOp=function(Q){if(Q.videoData&&Q.videoData.iF){for(var z=[Q.videoData.iF],H=g.n(Object.keys(Q.Z)),f=H.next();!f.done;f=H.next())f=f.value,Q.kM[f]&&Q.Z[f]&&(f=Q.Z[f](Q.kM))&&z.push(f);return z.join("&")}return null}; g.BB=function(Q,z){oJY(Q,{GSn:g.qf(z.experiments,"bg_vm_reinit_threshold"),cspNonce:z.cspNonce,qP:z.qP||""})}; YVZ=function(){var Q=XMLHttpRequest.prototype.fetch;return!!Q&&Q.length===3}; PB=function(Q){Q=Q===void 0?2592E3:Q;if(Q>0&&!(fxa()>(0,g.NV)()-Q*1E3))return 0;Q=g.Pw("yt-player-quality");if(typeof Q==="string"){if(Q=g.Uh[Q],Q>0)return Q}else if(Q instanceof Object)return Q.quality;return 0}; aA=function(){var Q=g.Pw("yt-player-proxima-pref");return Q==null?null:Q}; rOa=function(){var Q=g.Pw("yt-player-quality");if(Q instanceof Object&&Q.quality&&Q.previousQuality){if(Q.quality>Q.previousQuality)return 1;if(Q.quality0&&z[0]?Q.getAutoplayPolicy(z[0]):Q.getAutoplayPolicy("mediaelement");if(cOA[H])return cOA[H]}}catch(f){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; KE=function(Q){return Q.m4||Q.Yn||Q.mutedAutoplay}; iNL=function(Q,z){return KE(Q)?z!==1&&z!==2&&z!==0?"AUTOPLAY_STATUS_UNAVAILABLE":Q.cK?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; hF9=function(Q,z,H){var f=z.C();Q.thirdParty||(Q.thirdParty={});f.ancestorOrigins&&(Q.thirdParty.embeddedPlayerContext=Object.assign({},Q.thirdParty.embeddedPlayerContext,{ancestorOrigins:f.ancestorOrigins}));f.V("embeds_enable_autoplay_and_visibility_signals")&&(f.Uu!=null&&(Q.thirdParty.embeddedPlayerContext=Object.assign({},Q.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(f.Uu)})),f.gt&&(Q.thirdParty.embeddedPlayerContext=Object.assign({},Q.thirdParty.embeddedPlayerContext,{visibilityFractionSource:f.gt})), Q.thirdParty.embeddedPlayerContext=Object.assign({},Q.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:DJ(),autoplayIntended:KE(z),autoplayStatus:iNL(z,H)}))}; Km6=function(Q,z){wt(Q,2,z.hK,V1,3);wt(Q,3,z.AL,WmZ,3);dt(Q,4,z.onesieUstreamerConfig);dt(Q,9,z.VO);wt(Q,10,z.Cx,dZ,3);wt(Q,15,z.reloadPlaybackParams,DfZ,3)}; dfv=function(Q,z){wt(Q,1,z.formatId,mN,3);K4(Q,2,z.startTimeMs);K4(Q,3,z.durationMs);K4(Q,4,z.t9);K4(Q,5,z.Rz);wt(Q,9,z.sDh,VoZ,3);wt(Q,11,z.MZe,wZ,1);wt(Q,12,z.nS,wZ,1)}; mfZ=function(Q,z){mt(Q,1,z.videoId);K4(Q,2,z.lmt)}; VoZ=function(Q,z){if(z.gy)for(var H=0;H>31));K4(Q,16,z.Dze);K4(Q,17,z.detailedNetworkType);K4(Q,18,z.kD);K4(Q,19,z.LJ);K4(Q,21,z.nVh);K4(Q,23,z.Tm);K4(Q,28,z.QZ);K4(Q,29,z.FYj);K4(Q,34,z.visibility);H=z.playbackRate;if(H!==void 0){var f=new ArrayBuffer(4);(new Float32Array(f))[0]=H;H=(new Uint32Array(f))[0];if(H!==void 0)for(Dt(Q,285),Wm(Q,4),f=0;f<4;)Q.view.setUint8(Q.pos,H&255),H>>=8,Q.pos+=1,f+=1}K4(Q,36,z.Td); wt(Q,38,z.mediaCapabilities,T4v,3);K4(Q,39,z.NPv);K4(Q,40,z.Oc);K4(Q,44,z.playerState);VT(Q,46,z.t2);K4(Q,48,z.VT);K4(Q,50,z.GX);K4(Q,51,z.Cb);K4(Q,54,z.He);VT(Q,56,z.RSj);K4(Q,57,z.Gd);VT(Q,58,z.LP);K4(Q,59,z.zw);K4(Q,60,z.Nm);VT(Q,61,z.isPrefetch);K4(Q,62,z.pk);dt(Q,63,z.sabrLicenseConstraint);K4(Q,64,z.yZ$);K4(Q,66,z.bHh);K4(Q,67,z.rv$);K4(Q,68,z.JZh);mt(Q,69,z.audioTrackId);VT(Q,71,z.jM);wt(Q,72,z.MHI,k3c,1);K4(Q,74,z.uJ);K4(Q,75,z.Ik)}; T4v=function(Q,z){if(z.videoFormatCapabilities)for(var H=0;H>31));mt(Q,2,z.message)}; LJp=function(Q,z){K4(Q,1,z.clientState);wt(Q,2,z.e7v,fIn,1)}; HiA=function(Q,z){dt(Q,1,z.RYn);wt(Q,2,z.teI,biY,3);wt(Q,3,z.coldStartInfo,LJp,3)}; zL_=function(Q,z){K4(Q,1,z.type);dt(Q,2,z.value)}; QhA=function(Q,z){mt(Q,1,z.hl);mt(Q,12,z.deviceMake);mt(Q,13,z.deviceModel);K4(Q,16,z.clientName);mt(Q,17,z.clientVersion);mt(Q,18,z.osName);mt(Q,19,z.osVersion)}; u5n=function(Q,z){mt(Q,1,z.name);mt(Q,2,z.value)}; SBv=function(Q,z){mt(Q,1,z.url);if(z.yS)for(var H=0;H1&&(this.S=Q[1]==="2")}; QZ=function(Q,z,H,f,b){this.B=Q;this.Z=z;this.L=H;this.reason=f;this.oi=b===void 0?0:b}; g.zQ=function(Q,z,H,f){return new QZ(g.Uh[Q]||0,g.Uh[z]||0,H,f)}; fu=function(Q){if(HM&&Q.oi)return!1;var z=g.Uh.auto;return Q.B===z&&Q.Z===z}; Lu=function(Q){return b$[Q.Z||Q.B]||"auto"}; dSn=function(Q,z){z=g.Uh[z];return Q.B<=z&&(!Q.Z||Q.Z>=z)}; u$=function(Q){return"["+Q.B+"-"+Q.Z+", override: "+(Q.L+", reason: "+Q.reason+"]")}; Sl=function(Q,z,H){this.videoInfos=Q;this.Z=z;this.audioTracks=[];if(this.Z){Q=new Set;H==null||H({ainfolen:this.Z.length});z=g.n(this.Z);for(var f=z.next();!f.done;f=z.next())if(f=f.value,!f.Ii||Q.has(f.Ii.id)){var b=void 0,L=void 0,u=void 0;(u=H)==null||u({atkerr:!!f.Ii,itag:f.itag,xtag:f.Z,lang:((b=f.Ii)==null?void 0:b.name)||"",langid:((L=f.Ii)==null?void 0:L.id)||""})}else b=new g.RA(f.id,f.Ii),Q.add(f.Ii.id),this.audioTracks.push(b);H==null||H({atklen:this.audioTracks.length})}}; XC=function(){g.h.apply(this,arguments);this.Z=null}; TPY=function(Q,z,H,f,b,L,u){if(Q.Z)return Q.Z;var X={},v=new Set,y={};if(vM(f)){for(var q in f.Z)f.Z.hasOwnProperty(q)&&(Q=f.Z[q],y[Q.info.Rj]=[Q.info]);return y}q=mSk(z,f,X);L&&b({aftsrt:yZ(q)});for(var M={},C=g.n(Object.keys(q)),t=C.next();!t.done;t=C.next()){t=t.value;for(var E=g.n(q[t]),G=E.next();!G.done;G=E.next()){G=G.value;var x=G.itag,J=void 0,I=t+"_"+(((J=G.video)==null?void 0:J.fps)||0);M.hasOwnProperty(I)?M[I]===!0?y[t].push(G):X[x]=M[I]:(J=qB(z,G,H,f.isLive,v),J!==!0?(u.add(t),X[x]=J, J==="disablevp9hfr"&&(M[I]="disablevp9hfr")):(y[t]=y[t]||[],y[t].push(G),M[I]=!0))}}L&&b({bfflt:yZ(y)});for(var r in y)y.hasOwnProperty(r)&&(f=r,y[f]&&y[f][0].rQ()&&(y[f]=y[f],y[f]=wDk(z,y[f],X),y[f]=k4v(y[f],X)));L&&Object.keys(X).length>0&&b({rjr:xK(X)});z=g.n(v.values());for(f=z.next();!f.done;f=z.next())(f=H.B.get(f.value))&&--f.zg;L&&b({aftflt:yZ(y)});Q.Z=g.$s(y,function(U){return!!U.length}); return Q.Z}; lIu=function(Q,z,H,f,b,L,u,X){X=X===void 0?!1:X;if(z.p5&&u&&u.length>1&&!(z.zw>0||z.N)){for(var v=z.B||!!b,y=v&&z.EY?L:void 0,q=mSk(z,f),M=[],C=[],t={},E=0;E0&&C&&b&&(q=[u,H],x=b.concat(C).filter(function(J){return J})); if(x.length&&!z.LP){t0(x,q);if(v){v=[];z=g.n(x);for(f=z.next();!f.done;f=z.next())v.push(f.value.itag);L({hbdfmt:v.join(".")})}return B2(new Sl(x,Q,y))}x=ShY(z);x=g.mB(x,X);if(!x){if(M[u])return L=M[u],t0(L),B2(new Sl(L,Q,y));v&&L({novideo:1});return sM()}z.ys&&(x==="1"||x==="1h")&&M[H]&&(u=EY(M[x]),q=EY(M[H]),q>u?x=H:q===u&&XtY(M[H])&&(x=H));x==="9"&&M.h&&EY(M.h)>EY(M["9"])&&(x="h");z.yE&&f.isLive&&x==="("&&M.H&&EY(M["("])<1440&&(x="H");v&&L({vfmly:pu(x)});z=M[x];if(!z.length)return v&&L({novfmly:pu(x)}), sM();t0(z);return B2(new Sl(z,Q,y))}; Qj_=function(Q,z){var H=!(!Q.m&&!Q.M),f=!(!Q.mac3&&!Q.MAC3),b=!(!Q.meac3&&!Q.MEAC3);Q=!(!Q.i&&!Q.I);z.zx=Q;return H||f||b||Q}; XtY=function(Q){Q=g.n(Q);for(var z=Q.next();!z.done;z=Q.next())if(z=z.value,z.itag&&vKu.has(z.itag))return!0;return!1}; pu=function(Q){switch(Q){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return Q}}; yZ=function(Q){var z=[],H;for(H in Q)if(Q.hasOwnProperty(H)){var f=H;z.push(pu(f));f=g.n(Q[f]);for(var b=f.next();!b.done;b=f.next())z.push(b.value.itag)}return z.join(".")}; RLn=function(Q,z,H,f,b,L){var u={},X={};g.G2(z,function(v,y){v=v.filter(function(q){var M=q.itag;if(!q.AM)return X[M]="noenc",!1;if(L.KH&&q.Rj==="(h"&&L.ZJ)return X[M]="lichdr",!1;if(!Q.L&&q.Rj==="1e")return X[M]="noav1enc",!1;if(q.Rj==="("||q.Rj==="(h"){if(Q.S&&H&&H.flavor==="widevine"){var C=q.mimeType+"; experimental=allowed";(C=!!q.AM[H.flavor]&&!!H.Z[C])||(X[M]=q.AM[H.flavor]?"unspt":"noflv");return C}if(!nu(Q,g8.CRYPTOBLOCKFORMAT)&&!Q.f3||Q.De)return X[M]=Q.De?"disvp":"vpsub",!1}return H&&q.AM[H.flavor]&& H.Z[q.mimeType]?!0:(X[M]=H?q.AM[H.flavor]?"unspt":"noflv":"nosys",!1)}); v.length&&(u[y]=v)}); f&&Object.entries(X).length&&b({rjr:xK(X)});return u}; k4v=function(Q,z){var H=Is(Q,function(f,b){return b.video.fps>32?Math.min(f,b.video.width):f},Infinity); H32||f.video.widthQ.j)return"max"+Q.j;if(Q.WI&&z.Rj==="h"&&z.video&&z.video.Z>1080)return"blkhigh264";if(z.Rj==="(h"&&!H.Y)return"enchdr";if((f===void 0?0:f)&&kK(z)&&!Q.mq)return"blk51live";if((z.Rj==="MAC3"||z.Rj==="mac3")&&!Q.D)return"blkac3";if((z.Rj==="MEAC3"||z.Rj==="meac3")&&!Q.S)return"blkeac3";if(z.Rj==="M"||z.Rj==="m")return"blkaac51";if((z.Rj==="so"|| z.Rj==="sa")&&!Q.wh)return"blkamb";if(!Q.KH&&GSA(z)&&(!H.L||z.Rj!=="1e"))return"cbc";if(!H.L&&GSA(z)&&z.Rj==="1e")return"cbcav1";if((z.Rj==="i"||z.Rj==="I")&&!Q.Xa)return"blkiamf";if(z.itag==="774"&&!Q.De)return"blkouh";var L,u;if(Q.uT&&(z.Rj==="1"||z.Rj==="1h"||H.L&&z.Rj==="1e")&&((L=z.video)==null?0:L.Z)&&((u=z.video)==null?void 0:u.Z)>Q.uT)return"av1cap";if((f=H.B.get(z.Rj))&&f.zg>0)return b.add(z.Rj),"byerr";var X;if((X=z.video)==null?0:X.fps>32){if(!H.yl&&!nu(H,g8.FRAMERATE))return"capHfr";if(Q.C3&& z.video.Z>=4320)return"blk8khfr";if(KG(z)&&Q.QN&&z.AM&&z.video.Z>=1440)return"disablevp9hfr"}if(Q.oi&&z.oi>Q.oi)return"ratecap";Q=yIc(H,z);return Q!==!0?Q:!0}; t0=function(Q,z){z=z===void 0?[]:z;g.Xk(Q,function(H,f){var b=f.oi-H.oi;if(!H.rQ()||!f.rQ())return b;var L=f.video.height*f.video.width-H.video.height*H.video.width;!L&&z&&z.length>0&&(H=z.indexOf(H.Rj)+1,f=z.indexOf(f.Rj)+1,L=H===0||f===0?f||-1:H-f);L||(L=b);return L})}; g.ZM=function(Q,z){this.B=Q;this.D=z===void 0?!1:z;this.L=this.path=this.scheme="";this.Z={};this.url=""}; $o=function(Q){GQ(Q);return Q.L}; jl=function(Q){return Q.B?Q.B.startsWith("local"):Q.scheme==="local"}; qhZ=function(Q){GQ(Q);return g.xs(Q.Z,function(z){return z!==null})}; FC=function(Q){GQ(Q);var z=decodeURIComponent(Q.get("mn")||"").split(",");return Q.path==="/videoplayback"&&z.length>1&&!!z[1]}; xo=function(Q,z){z=z===void 0?!1:z;GQ(Q);if(Q.path!=="/videoplayback"){var H=Q.clone();H.set("playerfallback","1");return H}var f=Q.mM();H=new g.M7(f);var b=Q.get("fvip"),L=decodeURIComponent(Q.get("mn")||"").split(",");if(b&&L&&L.length>1&&L[1])return f=H.Z,Q=f.replace(/^[^.]*/,""),g.tk(H,(f.indexOf("rr")===0?"rr":"r")+b+"---"+L[1]+Q),H=new g.ZM(H.toString()),H.set("fallback_count","1"),H;if(z)return H=Q.clone(),H.set("fallback_count","1"),H;b=H.Z.match("\\.a1\\.googlevideo\\.com$");H.Z.match("\\.googlevideo\\.com$")? (g.tk(H,"redirector.googlevideo.com"),f=H.toString()):H.Z.match("rr?[1-9].*\\.c\\.youtube\\.com$")?(g.tk(H,"www.youtube.com"),f=H.toString()):(H=yB9(f),lY(H)&&(f=H));H=new g.ZM(f);H.set("cmo=pf","1");b&&H.set("cmo=td","a1.googlevideo.com");return H}; GQ=function(Q){if(Q.B){if(!lY(Q.B)&&!Q.B.startsWith("local"))throw new g.wD("Untrusted URL",Q.B);var z=g.$q(Q.B);Q.scheme=z.S;Q.L=z.Z+(z.L!=null?":"+z.L:"");var H=z.B;if(H.startsWith("/videoplayback"))Q.path="/videoplayback",H=H.slice(14);else if(H.startsWith("/initplayback"))Q.path="/initplayback",H=H.slice(13);else if(H.startsWith("/api/manifest")){var f=H.indexOf("/",12),b=H.indexOf("/",f+1);f>0&&b>0?(Q.path=H.slice(0,b),H=H.slice(b+1)):(Q.path=H,H="")}else Q.path=H,H="";f=Q.Z;Q.Z=MMc(H);Object.assign(Q.Z, CaY(z.D.toString()));Object.assign(Q.Z,f);Q.Z.file==="index.m3u8"&&(delete Q.Z.file,Q.path+="/file/index.m3u8");Q.B="";Q.url="";Q.D&&(z=V0Y(),GQ(Q),H=Q.Z[z]||null)&&(H=tMa[0](H),Q.set(z,H),Q.D||V0Y(""))}}; EKJ=function(Q){GQ(Q);var z=Q.scheme+(Q.scheme?"://":"//")+Q.L+Q.path;if(qhZ(Q)){var H=[];g.G2(Q.Z,function(f,b){f!==null&&H.push(b+"="+f)}); z+="?"+H.join("&")}return z}; MMc=function(Q){Q=Q.split("/");var z=0;Q[0]||z++;for(var H={};z0?ptv(z,f.slice(0,b),f.slice(b+1)):f&&(z[f]="")}return z}; ptv=function(Q,z,H){if(z==="cmo"){var f;(f=H.indexOf("="))>=0?(z="cmo="+H.slice(0,f),H=H.slice(f+1)):(f=H.indexOf("%3D"))>=0&&(z="cmo="+H.slice(0,f),H=H.slice(f+3))}Q[z]=H}; OY=function(Q){var z=g.K(Q,nKk)||Q.signatureCipher;Q={y$:!1,vX:"",cO:"",s:""};if(!z)return Q;z=bv(z);Q.y$=!0;Q.vX=z.url;Q.cO=z.sp;Q.s=z.s;return Q}; or=function(Q,z,H,f,b,L,u,X,v){this.Ah=Q;this.startTime=z;this.duration=H;this.ingestionTime=f;this.sourceURL=b;this.BS=v;this.endTime=z+H;this.Z=u||0;this.range=L||null;this.pending=X||!1;this.BS=v||null}; g.J0=function(){this.segments=[];this.Z=null;this.B=!0;this.L=""}; gKn=function(Q,z){if(z>Q.Xg())Q.segments=[];else{var H=dJ(Q.segments,function(f){return f.Ah>=z},Q); H>0&&Q.segments.splice(0,H)}}; NB=function(Q,z,H,f,b){b=b===void 0?!1:b;this.data=Q;this.offset=z;this.size=H;this.type=f;this.Z=(this.B=b)?0:8;this.dataOffset=this.offset+this.Z}; Ir=function(Q){var z=Q.data.getUint8(Q.offset+Q.Z);Q.Z+=1;return z}; A0=function(Q){var z=Q.data.getUint16(Q.offset+Q.Z);Q.Z+=2;return z}; Yo=function(Q){var z=Q.data.getInt32(Q.offset+Q.Z);Q.Z+=4;return z}; r8=function(Q){var z=Q.data.getUint32(Q.offset+Q.Z);Q.Z+=4;return z}; sY=function(Q){var z=Q.data;var H=Q.offset+Q.Z;z=z.getUint32(H)*4294967296+z.getUint32(H+4);Q.Z+=8;return z}; BM=function(Q,z){z=z===void 0?NaN:z;if(isNaN(z))var H=Q.size;else for(H=Q.Z;H1?Math.ceil(b*z):Math.floor(b*z))}Q.skip(1);H=Ir(Q)<<16|A0(Q);if(H&256){f=H&1;b=H&4;var L=H&512,u=H&1024,X=H&2048;H=r8(Q);f&&Q.skip(4);b&&Q.skip(4);f=(L?4:0)+(u?4:0)+(X?4:0);for(b=0;b1?Math.ceil(u*z):Math.floor(u*z)),Q.skip(f)}}}; Ku=function(Q){Q=new DataView(Q.buffer,Q.byteOffset,Q.byteLength);return(Q=g.WM(Q,0,1836476516))?g.DM(Q):NaN}; IUA=function(Q){var z=g.WM(Q,0,1937011556);if(!z)return null;z=VZ(Q,z.dataOffset+8,1635148593)||VZ(Q,z.dataOffset+8,1635135537);if(!z)return null;var H=VZ(Q,z.dataOffset+78,1936995172),f=VZ(Q,z.dataOffset+78,1937126244);if(!f)return null;z=null;if(H)switch(H.skip(4),Ir(H)){default:z=0;break;case 1:z=2;break;case 2:z=1;break;case 3:z=255}var b=H=null,L=null;if(f=VZ(Q,f.dataOffset,1886547818)){var u=VZ(Q,f.dataOffset,1886546020),X=VZ(Q,f.dataOffset,2037673328);if(!X&&(X=VZ(Q,f.dataOffset,1836279920), !X))return null;u&&(u.skip(4),H=Yo(u)/65536,L=Yo(u)/65536,b=Yo(u)/65536);Q=ZG_(X);Q=new DataView(Q.buffer,Q.byteOffset+8,Q.byteLength-8);return new JIu(z,H,L,b,Q)}return null}; VZ=function(Q,z,H){for(;d8(Q,z);){var f=m0(Q,z);if(f.type===H)return f;z+=f.size}return null}; g.WM=function(Q,z,H){for(;d8(Q,z);){var f=m0(Q,z);if(f.type===H)return f;z=w8(f.type)?z+8:z+f.size}return null}; g.ko=function(Q){if(Q.data.getUint8(Q.dataOffset)){var z=Q.data;Q=Q.dataOffset+4;z=z.getUint32(Q)*4294967296+z.getUint32(Q+4)}else z=Q.data.getUint32(Q.dataOffset+4);return z}; m0=function(Q,z){var H=Q.getUint32(z),f=Q.getUint32(z+4);return new NB(Q,z,H,f)}; g.DM=function(Q){var z=Q.data.getUint8(Q.dataOffset)?20:12;return Q.data.getUint32(Q.dataOffset+z)}; AIp=function(Q){Q=new NB(Q.data,Q.offset,Q.size,Q.type,Q.B);var z=Ir(Q);Q.skip(7);var H=r8(Q);if(z===0){z=r8(Q);var f=r8(Q)}else z=sY(Q),f=sY(Q);Q.skip(2);for(var b=A0(Q),L=[],u=[],X=0;X122)return!1}return!0}; w8=function(Q){return Q===1701082227||Q===1836019558||Q===1836019574||Q===1835297121||Q===1835626086||Q===1937007212||Q===1953653094||Q===1953653099||Q===1836475768}; Yhk=function(Q){Q.skip(4);return{IYh:BM(Q,0),value:BM(Q,0),timescale:r8(Q),G0l:r8(Q),ZZh:r8(Q),id:r8(Q),Pj:BM(Q),offset:Q.offset}}; g.rI6=function(Q){var z=VZ(Q,0,1701671783);if(!z)return null;var H=Yhk(z),f=H.IYh;H=h0(H.Pj);if(Q=VZ(Q,z.offset+z.size,1701671783))if(Q=Yhk(Q),Q=h0(Q.Pj),H&&Q){z=g.n(Object.keys(Q));for(var b=z.next();!b.done;b=z.next())b=b.value,H[b]=Q[b]}return H?new cM(H,f):null}; TQ=function(Q,z){for(var H=VZ(Q,0,z);H;){var f=H;f.type=1936419184;f.data.setUint32(f.offset+4,1936419184);H=VZ(Q,H.offset+H.size,z)}}; g.el=function(Q,z){for(var H=0,f=[];d8(Q,H);){var b=m0(Q,H);b.type===z&&f.push(b);H=w8(b.type)?H+8:H+b.size}return f}; sjZ=function(Q,z){var H=g.WM(Q,0,1937011556),f=g.WM(Q,0,1953654136);if(!H||!f||Q.getUint32(H.offset+12)>=2)return null;var b=new DataView(z.buffer,z.byteOffset,z.length),L=g.WM(b,0,1937011556);if(!L)return null;z=b.getUint32(L.dataOffset+8);f=b.getUint32(L.dataOffset+12);if(f!==1701733217&&f!==1701733238)return null;f=new GRJ(Q.byteLength+z);PM(f,Q,0,H.offset+12);f.data.setInt32(f.offset,2);f.offset+=4;PM(f,Q,H.offset+16,H.size-16);PM(f,b,b.byteOffset+L.dataOffset+8,z);PM(f,Q,H.offset+H.size,Q.byteLength- (H.offset+H.size));H=g.n([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(b=H.next();!b.done;b=H.next())b=g.WM(Q,0,b.value),f.data.setUint32(b.offset,b.size+z);Q=g.WM(f.data,0,1953654136);f.data.setUint32(Q.offset+16,2);return f.data}; B5Z=function(Q){var z=g.WM(Q,0,1937011556);if(!z)return null;var H=Q.getUint32(z.dataOffset+12);if(H!==1701733217&&H!==1701733238)return null;z=VZ(Q,z.offset+24+(H===1701733217?28:78),1936289382);if(!z)return null;H=VZ(Q,z.offset+8,1935894637);if(!H||Q.getUint32(H.offset+12)!==1667392371)return null;z=VZ(Q,z.offset+8,1935894633);if(!z)return null;z=VZ(Q,z.offset+8,1952804451);if(!z)return null;H=new Uint8Array(16);for(var f=0;f<16;f++)H[f]=Q.getInt8(z.offset+16+f);return H}; l$=function(Q,z){this.Z=Q;this.pos=0;this.start=z||0}; Rr=function(Q){return Q.pos>=Q.Z.byteLength}; bw=function(Q,z,H){var f=new l$(H);if(!Qj(f,Q))return!1;f=zz(f);if(!H8(f,z))return!1;for(Q=0;z;)z>>>=8,Q++;z=f.start+f.pos;var b=f_(f,!0);f=Q+(f.start+f.pos-z)+b;f=f>9?PaL(f-9,8):PaL(f-2,1);Q=z-Q;H.setUint8(Q++,236);for(z=0;zH;b++)H=H*256+v8(Q),f*=128;return z?H-f:H}; uw=function(Q){var z=f_(Q,!0);Q.pos+=z}; cI9=function(Q){if(!H8(Q,440786851,!0))return null;var z=Q.pos;f_(Q,!1);var H=f_(Q,!0)+Q.pos-z;Q.pos=z+H;if(!H8(Q,408125543,!1))return null;f_(Q,!0);if(!H8(Q,357149030,!0))return null;var f=Q.pos;f_(Q,!1);var b=f_(Q,!0)+Q.pos-f;Q.pos=f+b;if(!H8(Q,374648427,!0))return null;var L=Q.pos;f_(Q,!1);var u=f_(Q,!0)+Q.pos-L,X=new Uint8Array(H+12+b+u),v=new DataView(X.buffer);X.set(new Uint8Array(Q.Z.buffer,Q.Z.byteOffset+z,H));v.setUint32(H,408125543);v.setUint32(H+4,33554431);v.setUint32(H+8,4294967295); X.set(new Uint8Array(Q.Z.buffer,Q.Z.byteOffset+f,b),H+12);X.set(new Uint8Array(Q.Z.buffer,Q.Z.byteOffset+L,u),H+12+b);return X}; yj=function(Q){var z=Q.pos;Q.pos=0;var H=1E6;Qj(Q,[408125543,357149030,2807729])&&(H=L_(Q));Q.pos=z;return H}; iG9=function(Q,z){var H=Q.pos;Q.pos=0;if(Q.Z.getUint8(Q.pos)!==160&&!qm(Q)||!H8(Q,160))return Q.pos=H,NaN;f_(Q,!0);var f=Q.pos;if(!H8(Q,161))return Q.pos=H,NaN;f_(Q,!0);v8(Q);var b=v8(Q)<<8|v8(Q);Q.pos=f;if(!H8(Q,155))return Q.pos=H,NaN;f=L_(Q);Q.pos=H;return(b+f)*z/1E9}; qm=function(Q){if(!hVJ(Q)||!H8(Q,524531317))return!1;f_(Q,!0);return!0}; hVJ=function(Q){if(Q.gZ()){if(!H8(Q,408125543))return!1;f_(Q,!0)}return!0}; Qj=function(Q,z){for(var H=0;H0){var f=CaY(z.substring(H+1));g.G2(f,function(b,L){this.set(L,b)},Q); z=z.substring(0,H)}z=MMc(z);g.G2(z,function(b,L){this.set(L,b)},Q)}; DCa=function(Q){var z=Q.XI.mM(),H=[];g.G2(Q.Z,function(b,L){H.push(L+"="+b)}); if(!H.length)return z;var f=H.join("&");Q=qhZ(Q.XI)?"&":"?";return z+Q+f}; C_=function(Q,z){var H=new g.ZM(z);(z=H.get("req_id"))&&Q.set("req_id",z);g.G2(Q.Z,function(f,b){H.set(b,null)}); return H}; Kqc=function(){this.D=this.L=this.Z=this.timedOut=this.started=this.S=this.B=0}; ti=function(Q){Q.S=(0,g.NV)();Q.started=0;Q.timedOut=0;Q.Z=0}; EN=function(Q,z){var H=Q.started+Q.Z*4;z&&(H+=Q.L);H=Math.max(0,H-3);return Math.pow(1.6,H)}; p_=function(Q,z){Q[z]||(Q[z]=new Kqc);return Q[z]}; n_=function(Q){this.U=this.Y=this.S=this.B=0;this.N=this.j=!1;this.Z=Q;this.L=Q.clone()}; VML=function(Q,z,H){if(jl(Q.Z))return!1;var f=p_(H,$o(Q.Z));if(f.timedOut<1&&f.Z<1)return!1;f=f.timedOut+f.Z;Q=gV(Q,z);H=p_(H,$o(Q));return H.timedOut+H.Z+01?z=z.Bl:(H=p_(H,Gz(Q,Q.Fp(z,H),z)),z=Math.max(Q.S,H.timedOut)+z.z6*(Q.B-Q.S)+.25*Q.Y,z=z>3?1E3*Math.pow(1.6,z-3):0);return z===0?!0:Q.U+z<(0,g.NV)()}; dCJ=function(Q,z,H){Q.Z.set(z,H);Q.L.set(z,H);Q.D&&Q.D.set(z,H)}; mCk=function(Q,z,H,f,b){++Q.B;z&&++Q.S;$o(H.XI).startsWith("redirector.")&&(Q.Z=Q.L.clone(),delete Q.D,f.oa&&delete b[$o(Q.Z)])}; jA=function(Q){return Q?(Q.itag||"")+";"+(Q.lmt||0)+";"+(Q.xtags||""):""}; Fw=function(Q,z,H,f){this.initRange=H;this.indexRange=f;this.Z=null;this.L=!1;this.j=0;this.D=this.UM=this.B=null;this.info=z;this.Mz=new n_(Q)}; xl=function(Q,z){this.start=Q;this.end=z;this.length=z-Q+1}; ON=function(Q){Q=Q.split("-");var z=Number(Q[0]),H=Number(Q[1]);if(!isNaN(z)&&!isNaN(H)&&Q.length===2&&(Q=new xl(z,H),!isNaN(Q.start)&&!isNaN(Q.end)&&!isNaN(Q.length)&&Q.length>0))return Q}; od=function(Q,z){return new xl(Q,Q+z-1)}; wtu=function(Q){return Q.end==null?{start:String(Q.start)}:{start:String(Q.start),end:String(Q.end)}}; Ji=function(Q){if(!Q)return new xl(0,0);var z=Number(Q.start);Q=Number(Q.end);if(!isNaN(z)&&!isNaN(Q)&&(z=new xl(z,Q),z.length>0))return z}; Nm=function(Q,z,H,f,b,L,u,X,v,y,q,M){f=f===void 0?"":f;this.type=Q;this.Z=z;this.range=H;this.source=f;this.h5=q;this.clipId=M===void 0?"":M;this.U=[];this.Y="";this.Ah=-1;this.Ze=this.wh=0;this.Y=f;this.Ah=b>=0?b:-1;this.startTime=L||0;this.duration=u||0;this.B=X||0;this.L=v>=0?v:this.range?this.range.length:NaN;this.S=this.range?this.B+this.L===this.range.length:y===void 0?!!this.L:y;this.range?(this.D=this.startTime+this.duration*this.B/this.range.length,this.N=this.duration*this.L/this.range.length, this.j=this.D+this.N):kRZ(this)}; kRZ=function(Q){Q.D=Q.startTime;Q.N=Q.duration;Q.j=Q.D+Q.N}; T59=function(Q,z,H){var f=!(!z||z.Z!==Q.Z||z.type!==Q.type||z.Ah!==Q.Ah);return H?f&&!!z&&(Q.range&&z.range?z.range.end===Q.range.end:z.range===Q.range)&&z.B+z.L===Q.B+Q.L:f}; Id=function(Q){return Q.type===1||Q.type===2}; Ai=function(Q){return Q.type===3||Q.type===6}; Yl=function(Q,z){return Q.Z===z.Z?Q.range&&z.range?Q.range.start+Q.B+Q.L===z.range.start+z.B:Q.Ah===z.Ah?Q.B+Q.L===z.B:Q.Ah+1===z.Ah&&z.B===0&&Q.S:!1}; lUc=function(Q,z){return Q.Ah!==z.Ah&&z.Ah!==Q.Ah+1||Q.type!==z.type?!1:Yl(Q,z)?!0:Math.abs(Q.D-z.D)<=1E-6&&Q.Ah===z.Ah?!1:eVY(Q,z)}; eVY=function(Q,z){return Yl(Q,z)||Math.abs(Q.j-z.D)<=1E-6||Q.Ah+1===z.Ah&&z.B===0&&Q.S?!0:!1}; rV=function(Q){return Q.Ah+(Q.S?1:0)}; RVZ=function(Q){Q.length===1||g.NT(Q,function(H){return!!H.range}); for(var z=1;z=z.range.start+z.B&&Q.range.start+Q.B+Q.L<=z.range.start+z.B+z.L:Q.Ah===z.Ah&&Q.B>=z.B&&(Q.B+Q.L<=z.B+z.L||z.S)}; u$c=function(Q,z){return Q.Z!==z.Z?!1:Q.type===4&&z.type===3&&Q.Z.SH()?(Q=Q.Z.ev(Q),Jx(Q,function(H){return u$c(H,z)})):Q.Ah===z.Ah&&!!z.L&&z.B+z.L>Q.B&&z.B+z.L<=Q.B+Q.L}; B8=function(Q,z){var H=z.Ah;Q.Y="updateWithSegmentInfo";Q.Ah=H;if(Q.startTime!==z.startTime||Q.duration!==z.duration)Q.startTime=z.startTime+Q.wh,Q.duration=z.duration,kRZ(Q)}; P8=function(Q,z){var H=this;this.Tv=Q;this.D=this.Z=null;this.S=this.Ds=NaN;this.Fp=this.requestId=null;this.Po={Lre:function(){return H.range}}; this.Mz=Q[0].Z.Mz;this.B=z||"";this.Tv[0].range&&this.Tv[0].L>0&&(Qmp(Q)?(this.range=RVZ(Q),this.L=this.range.length):(this.range=this.Tv[this.Tv.length-1].range,this.L=zqA(Q)))}; ad=function(Q){return!Id(Q.Tv[Q.Tv.length-1])}; UN=function(Q){return Q.Tv[Q.Tv.length-1].type===4}; g.c8=function(Q,z,H){H=Q.Fp===null?Q.Mz.Fp(z,H,Q.Tv[0].type):Q.Fp;if(Q.Z){z=H?xo(Q.Z,z.CP):Q.Z;var f=new Mm(z);f.get("alr")||f.set("alr","yes");Q.B&&WqL(f,Q.B)}else/http[s]?:\/\//.test(Q.B)?f=new Mm(new g.ZM(Q.B)):(f=ZZ(Q.Mz,H,z),Q.B&&WqL(f,Q.B));(z=Q.range)?f.set("range",z.toString()):Q.Tv[0].Z.Mm()&&Q.Tv.length===1&&Q.Tv[0].B&&f.set("range",Q.Tv[0].B+"-");Q.requestId&&f.set("req_id",Q.requestId);isNaN(Q.Ds)||f.set("headm",Q.Ds.toString());isNaN(Q.S)||f.set("mffa",Q.S+"ms");Q.urlParams&&g.G2(Q.urlParams, function(b,L){f.set(L,b)}); return f}; SUJ=function(Q){if(Q.range)return Q.L;Q=Q.Tv[0];return Math.round(Q.N*Q.Z.info.oi)}; Xsk=function(Q,z){return Math.max(0,Q.Tv[0].D-z)}; iw=function(Q,z,H,f,b,L){L=L===void 0?0:L;Fw.call(this,Q,z,f,void 0);this.S=H;this.Cq=L;this.index=b||new g.J0}; v6Z=function(Q,z,H,f,b){this.Ah=Q;this.startSecs=z;this.NB=H;this.Z=f||NaN;this.B=b||NaN}; hi=function(Q,z,H){for(;Q;Q=Q.parentNode)if(Q.attributes&&(!H||Q.nodeName===H)){var f=Q.getAttribute(z);if(f)return f}return""}; W8=function(Q,z){for(;Q;Q=Q.parentNode){var H=Q.getElementsByTagName(z);if(H.length>0)return H[0]}return null}; ya9=function(Q){if(!Q)return 0;var z=Q.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return z?(Number(z[2])|0)*3600+(Number(z[4])|0)*60+(Number(z[6])|0):Number(Q)|0}; qUL=function(Q){return Q.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?Q+"Z":Q}; DZ=function(){this.Z=[];this.B=null;this.j=0;this.L=[];this.S=!1;this.Y="";this.D=-1}; MPA=function(Q){var z=Q.L;Q.L=[];return z}; CZa=function(){this.D=[];this.Z=null;this.B={};this.L={}}; n6a=function(Q,z){var H=[];z=Array.from(z.getElementsByTagName("SegmentTimeline"));z=g.n(z);for(var f=z.next();!f.done;f=z.next()){f=f.value;var b=f.parentNode.parentNode,L=null;b.nodeName==="Period"?L=tPY(Q):b.nodeName==="AdaptationSet"?(b=b.getAttribute("id")||b.getAttribute("mimetype")||"",L=E68(Q,b)):b.nodeName==="Representation"&&(b=b.getAttribute("id")||"",L=psc(Q,b));if(L==null)return;L.update(f);g.z7(H,MPA(L))}g.z7(Q.D,H);fLp(Q.D,function(u){return u.startSecs*1E3+u.Z})}; g6Y=function(Q){Q.Z&&(Q.Z.Z=[]);g.G2(Q.B,function(z){z.Z=[]}); g.G2(Q.L,function(z){z.Z=[]})}; tPY=function(Q){Q.Z||(Q.Z=new DZ);return Q.Z}; E68=function(Q,z){Q.B[z]||(Q.B[z]=new DZ);return Q.B[z]}; psc=function(Q,z){Q.L[z]||(Q.L[z]=new DZ);return Q.L[z]}; Vj=function(Q){var z=Q===void 0?{}:Q;Q=z.Cq===void 0?0:z.Cq;var H=z.Kr===void 0?!1:z.Kr;var f=z.Ic===void 0?0:z.Ic;var b=z.Li===void 0?0:z.Li;var L=z.zs===void 0?Infinity:z.zs;var u=z.qJ===void 0?0:z.qJ;var X=z.l8===void 0?!1:z.l8;z=z.r_===void 0?!1:z.r_;g.J0.call(this);this.s7=this.Gp=-1;this.V9=Q;this.Ic=f;this.Kr=H;this.Li=b;this.zs=L;this.qJ=u;((this.l8=X)||isFinite(L)&&this.zs>0)&&H&&K_&&(this.B=!1,this.L="postLive");this.r_=z}; dV=function(Q,z){return Sj(Q.segments,function(H){return z-H.Ah})}; m$=function(Q,z,H){H=H===void 0?{}:H;iw.call(this,Q,z,"",void 0,void 0,H.Cq||0);this.index=new Vj(H)}; wV=function(Q,z,H){Fw.call(this,Q,z);this.S=H;Q=this.index=new g.J0;Q.B=!1;Q.L="d"}; Z38=function(Q,z,H){var f=Q.index.KT(z),b=Q.index.getStartTime(z),L=Q.index.getDuration(z);H?L=H=0:H=Q.info.oi*L;return new P8([new Nm(3,Q,void 0,"otfCreateRequestInfoForSegment",z,b,L,0,H)],f)}; GsY=function(Q,z){if(!Q.index.isLoaded()){var H=[],f=z.D;z=z.S.split(",").filter(function(q){return q.length>0}); for(var b=0,L=0,u=0,X=/^(\d+)/,v=/r=(\d+)/,y=0;y0&&(z-=Q.timestampOffset);var H=g.eA(Q)+z;jma(Q,H);Q.timestampOffset=z}; jma=function(Q,z){g.TR(Q.info.Z.info)||Q.info.Z.info.rV();Q.L=z;if(g.TR(Q.info.Z.info)){var H=Q.Lp();Q=Q.info.Z.Z;for(var f=NaN,b=NaN,L=0;d8(H,L);){var u=m0(H,L);isNaN(f)&&(u.type===1936286840?f=u.data.getUint32(u.dataOffset+8):u.type===1836476516&&(f=g.DM(u)));if(u.type===1952867444){!f&&Q&&(f=Ku(Q));var X=g.ko(u);isNaN(b)&&(b=Math.round(z*f)-X);var v=u;X+=b;if(v.data.getUint8(v.dataOffset)){var y=v.data;v=v.dataOffset+4;y.setUint32(v,Math.floor(X/4294967296));y.setUint32(v+4,X&4294967295)}else v.data.setUint32(v.dataOffset+ 4,X)}L=w8(u.type)?L+8:L+u.size}return!0}H=new l$(Q.Lp());Q=Q.S?H:new l$(new DataView(Q.info.Z.Z.buffer));f=yj(Q);Q=H.pos;H.pos=0;if(qm(H)&&H8(H,231))if(b=f_(H,!0),z=Math.floor(z*1E9/f),Math.ceil(Math.log(z)/Math.log(2)/8)>b)z=!1;else{for(f=b-1;f>=0;f--)H.Z.setUint8(H.pos+f,z&255),z>>>=8;H.pos=Q;z=!0}else z=!1;return z}; Rd=function(Q,z){z=z===void 0?!1:z;var H=lw(Q);Q=z?0:Q.info.N;return H||Q}; lw=function(Q){g.TR(Q.info.Z.info)||Q.info.Z.info.rV();if(Q.B&&Q.info.type===6)return Q.B.Cq;if(g.TR(Q.info.Z.info)){var z=Q.Lp();var H=0;z=g.el(z,1936286840);z=g.n(z);for(var f=z.next();!f.done;f=z.next())f=AIp(f.value),H+=f.ZD[0]/f.timescale;H=H||NaN;if(!(H>=0))a:{H=Q.Lp();z=Q.info.Z.Z;for(var b=f=0,L=0;d8(H,f);){var u=m0(H,f);if(u.type===1836476516)b=g.DM(u);else if(u.type===1836019558){!b&&z&&(b=Ku(z));if(!b){H=NaN;break a}var X=VZ(u.data,u.dataOffset,1953653094),v=X;X=b;var y=VZ(v.data,v.dataOffset, 1952868452);v=VZ(v.data,v.dataOffset,1953658222);var q=Yo(y);Yo(y);q&2&&Yo(y);y=q&8?Yo(y):0;var M=Yo(v),C=M&1;q=M&4;var t=M&256,E=M&512,G=M&1024;M&=2048;var x=r8(v);C&&Yo(v);q&&Yo(v);for(var J=C=0;J2048?"":z.indexOf("https://")===0?z:""}; Ly=function(Q,z,H){z.match(PZa);return Q(z,H).then(function(f){var b=g.Bpn(f.xhr);return b?Ly(Q,b,H):f.xhr})}; vj=function(Q,z,H){Q=Q===void 0?"":Q;z=z===void 0?null:z;H=H===void 0?!1:H;g.Xp.call(this);var f=this;this.sourceUrl=Q;this.isLivePlayback=H;this.uT=this.duration=0;this.isPremiere=this.l8=this.D=this.isLiveHeadPlayable=this.isLive=this.B=!1;this.zs=this.Li=0;this.isOtf=this.AZ=!1;this.En=(0,g.NV)();this.Ze=Infinity;this.Z={};this.L=new Map;this.state=this.Yu=0;this.timeline=null;this.isManifestless=!1;this.L3=[];this.j=null;this.De=0;this.S="";this.yl=NaN;this.jm=this.Wz=this.timestampOffset=this.Y= 0;this.eN=this.W0=NaN;this.ys=0;this.iT=this.U=!1;this.f3=[];this.mq={};this.wh=NaN;this.Po={nfT:function(X){uD(f,X)}}; var b;this.C3=(b=z)==null?void 0:b.Nc("html5_use_network_error_code_enums");aFu=!!z&&z.Nc("html5_modern_vp9_mime_type");var L;Sb=!((L=z)==null||!L.Nc("html5_enable_flush_during_seek"))&&g.dR();var u;Xo=!((u=z)==null||!u.Nc("html5_enable_reset_audio_decoder"))&&g.dR()}; U6J=function(Q){return g.xs(Q.Z,function(z){return!!z.info.video&&z.info.video.Z>=2160})}; uIa=function(Q){return g.xs(Q.Z,function(z){return!!z.info.video&&z.info.video.isHdr()})}; MB=function(Q){return g.xs(Q.Z,function(z){return!!z.info.AM})}; g.can=function(Q){return g.xs(Q.Z,function(z){return zs(z.info.mimeType)})}; i3_=function(Q){return g.xs(Q.Z,function(z){return z.info.video?z.info.video.projectionType==="EQUIRECTANGULAR":!1})}; hqa=function(Q){return g.xs(Q.Z,function(z){return z.info.video?z.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; Ww6=function(Q){return g.xs(Q.Z,function(z){return z.info.video?z.info.video.projectionType==="MESH":!1})}; D6L=function(Q){return g.xs(Q.Z,function(z){return z.info.video?z.info.video.stereoLayout===1:!1})}; KwA=function(Q){return W8c(Q.Z,function(z){return z.info.video?z.JA():!0})}; vM=function(Q){return g.xs(Q.Z,function(z){return jl(z.Mz.Z)})}; uD=function(Q,z){Q.Z[z.info.id]=z;Q.L.set(jA(g.la(z.info,Q.AZ)),z)}; VPY=function(Q,z){return jA({itag:z.itag,lmt:Q.AZ?0:z.lmt||0,xtags:z.xtags})}; Mj=function(Q,z,H){H=H===void 0?0:H;var f=Q.mimeType||"",b=Q.itag;var L=Q.xtags;b=b?b.toString():"";L&&(b+=";"+L);L=b;if(QA(f)){var u=Q.width||640;b=Q.height||360;var X=Q.fps,v=Q.qualityLabel,y=Q.colorInfo,q=Q.projectionType,M;Q.stereoLayout&&(M=d6c[Q.stereoLayout]);var C=raY(Q)||void 0;if(y==null?0:y.primaries)var t=m6A[y.primaries]||void 0;u=new ct(u,b,X,q,M,void 0,v,C,t);f=yG(f,u,Wt[Q.itag||""]);Sb&&(f+="; enableflushduringseek=true");Xo&&(f+="; enableresetaudiodecoder=true")}var E;if(Rj(f)){var G= Q.audioSampleRate;M=Q.audioTrack;G=new Pt(G?+G:void 0,Q.audioChannels,Q.spatialAudioType,Q.isDrc,Q.loudnessDb,Q.trackAbsoluteLoudnessLkfs,Q.audioQuality||"AUDIO_QUALITY_UNKNOWN");M&&(t=M.displayName,b=M.id,M=M.audioIsDefault,t&&(E=new g.bD(t,b||"",!!M)))}var x;Q.captionTrack&&(v=Q.captionTrack,M=v.displayName,t=v.vssId,b=v.languageCode,X=v.kind,v=v.id,M&&t&&b&&(x=new Aav(M,t,b,X,Q.xtags,v)));M=Number(Q.bitrate)/8;t=Number(Q.contentLength);b=Number(Q.lastModified);v=Q.drmFamilies;X=Q.type;H=H&&t?t/ H:0;Q=Number(Q.approxDurationMs);if(z&&v){var J={};v=g.n(v);for(y=v.next();!y.done;y=v.next())(y=qj[y.value])&&(J[y]=z[y])}return new DU(L,f,{audio:G,video:u,Ii:E,AM:J,oi:M,Mx:H,contentLength:t,lastModified:b,captionTrack:x,streamType:X,approxDurationMs:Q})}; Cy=function(Q,z,H){H=H===void 0?0:H;var f=Q.type;var b=Q.itag;var L=Q.xtags;L&&(b=Q.itag+";"+L);if(QA(f)){var u=(Q.size||"640x360").split("x");u=new ct(+u[0],+u[1],+Q.fps,Q.projection_type,+Q.stereo_layout,void 0,Q.quality_label,Q.eotf,Q.primaries);f=yG(f,u,Wt[Q.itag]);Sb&&(f+="; enableflushduringseek=true");Xo&&(f+="; enableresetaudiodecoder=true")}var X;if(Rj(f)){var v=new Pt(+Q.audio_sample_rate||void 0,+Q.audio_channels||0,Q.spatial_audio_type,!!Q.drc);Q.name&&(X=new g.bD(Q.name,Q.audio_track_id, Q.isDefault==="1"))}var y;Q.caption_display_name&&Q.caption_vss_id&&Q.caption_language_code&&(y=new Aav(Q.caption_display_name,Q.caption_vss_id,Q.caption_language_code,Q.caption_kind,Q.xtags,Q.caption_id));L=Number(Q.bitrate)/8;var q=Number(Q.clen),M=Number(Q.lmt);H=H&&q?q/H:0;if(z&&Q.drm_families){var C={};for(var t=g.n(Q.drm_families.split(",")),E=t.next();!E.done;E=t.next())E=E.value,C[E]=z[E]}return new DU(b,f,{audio:v,video:u,Ii:X,AM:C,oi:L,Mx:H,contentLength:q,lastModified:M,captionTrack:y, streamType:Q.stream_type,approxDurationMs:Number(Q.approx_duration_ms)})}; ws8=function(Q){return Jx(Q,function(z){return"FORMAT_STREAM_TYPE_OTF"===z.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; ksk=function(Q){return Jx(Q,function(z){return"FORMAT_STREAM_TYPE_OTF"===z.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; Tpu=function(Q,z){return Q.timeline?HY(Q.timeline.D,z):Q.L3.length?HY(Q.L3,z):[]}; tQ=function(Q,z,H){z=z===void 0?"":z;H=H===void 0?"":H;Q=new g.ZM(Q,!0);Q.set("alr","yes");H&&(H=N4a(decodeURIComponent(H)),Q.set(z,encodeURIComponent(H)));return Q}; Qcu=function(Q,z){var H=hi(z,"id");H=H.replace(":",";");var f=hi(z,"mimeType"),b=hi(z,"codecs");f=b?f+'; codecs="'+b+'"':f;b=Number(hi(z,"bandwidth"))/8;var L=Number(W8(z,"BaseURL").getAttribute(Q.S+":contentLength")),u=Q.duration&&L?L/Q.duration:0;if(QA(f)){var X=Number(hi(z,"width"));var v=Number(hi(z,"height")),y=Number(hi(z,"frameRate")),q=eq6(hi(z,Q.S+":projectionType"));a:switch(hi(z,Q.S+":stereoLayout")){case "layout_left_right":var M=1;break a;case "layout_top_bottom":M=2;break a;default:M= 0}X=new ct(X,v,y,q,M)}if(Rj(f)){var C=Number(hi(z,"audioSamplingRate"));var t=Number(hi(z.getElementsByTagName("AudioChannelConfiguration")[0],"value"));v=lF9(hi(z,Q.S+":spatialAudioType"));C=new Pt(C,t,v);a:{t=hi(z,"lang")||"und";if(v=W8(z,"Role"))if(q=hi(v,"value")||"",g.Nz(Rqv,q)){v=t+"."+Rqv[q];y=q==="main";Q=hi(z,Q.S+":langName")||t+" - "+q;t=new g.bD(Q,v,y);break a}t=void 0}}if(z=W8(z,"ContentProtection"))if(z.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var E={};for(z= z.firstChild;z!=null;z=z.nextSibling)z instanceof Element&&/SystemURL/.test(z.nodeName)&&(Q=z.getAttribute("type"),v=z.textContent,Q&&v&&(E[Q]=v.trim()))}else E=void 0;return new DU(H,f,{audio:C,video:X,Ii:t,AM:E,oi:b,Mx:u,contentLength:L})}; eq6=function(Q){switch(Q){case "equirectangular":return"EQUIRECTANGULAR";case "equirectangular_threed_top_bottom":return"EQUIRECTANGULAR_THREED_TOP_BOTTOM";case "mesh":return"MESH";case "rectangular":return"RECTANGULAR";default:return"UNKNOWN"}}; lF9=function(Q){switch(Q){case "spatial_audio_type_ambisonics_5_1":return"SPATIAL_AUDIO_TYPE_AMBISONICS_5_1";case "spatial_audio_type_ambisonics_quad":return"SPATIAL_AUDIO_TYPE_AMBISONICS_QUAD";case "spatial_audio_type_foa_with_non_diegetic":return"SPATIAL_AUDIO_TYPE_FOA_WITH_NON_DIEGETIC";default:return"SPATIAL_AUDIO_TYPE_NONE"}}; Hxc=function(Q,z){z=z===void 0?"":z;Q.state=1;Q.En=(0,g.NV)();return smL(z||Q.sourceUrl).then(function(H){if(!Q.Sm()){Q.Yu=H.status;H=H.responseText;var f=new DOMParser;H=kg(f,W4Y(H),"text/xml").getElementsByTagName("MPD")[0];Q.Ze=ya9(hi(H,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(H.attributes){f=g.n(H.attributes);for(var b=f.next();!b.done;b=f.next())if(b=b.value,b.value==="http://youtube.com/yt/2012/10/10"){f=b.name.split(":")[1];break b}}f=""}Q.S=f;Q.isLive=Q.Ze=Q.Ze}; bxZ=function(Q){Q.j&&Q.j.stop()}; z2p=function(Q){var z=Q.Ze;isFinite(z)&&(Em(Q)?Q.refresh():(z=Math.max(0,Q.En+z-(0,g.NV)()),Q.j||(Q.j=new g.e_(Q.refresh,z,Q),g.W(Q,Q.j)),Q.j.start(z)))}; Lnk=function(Q){Q=Q.Z;for(var z in Q){var H=Q[z].index;if(H.isLoaded())return H.Xg()+1}return 0}; py=function(Q){return Q.Wz?Q.Wz-(Q.Y||Q.timestampOffset):0}; ny=function(Q){return Q.jm?Q.jm-(Q.Y||Q.timestampOffset):0}; gS=function(Q){if(!isNaN(Q.yl))return Q.yl;var z=Q.Z,H;for(H in z){var f=z[H].index;if(f.isLoaded()&&!zs(z[H].info.mimeType)){z=0;for(H=f.ud();H<=f.Xg();H++)z+=f.getDuration(H);z/=f.LK();z=Math.round(z/.5)*.5;f.LK()>10&&(Q.yl=z);return z}if(Q.isLive&&(f=z[H],f.Cq))return f.Cq}return NaN}; unY=function(Q,z){Q=K8A(Q.Z,function(f){return f.index.isLoaded()}); if(!Q)return NaN;Q=Q.index;var H=Q.EX(z);return Q.getStartTime(H)===z?z:H=0&&b.segments.splice(L,1)}}}; XRZ=function(Q){for(var z in Q.Z)zs(Q.Z[z].info.mimeType)||gKn(Q.Z[z].index,Infinity)}; $i=function(Q,z,H){for(var f in Q.Z){var b=Q.Z[f].index,L=z,u=H;b.Kr&&(L&&(b.Gp=Math.max(b.Gp,L)),u&&(b.s7=Math.max(b.s7||0,u)))}H&&(Q.wh=H/1E3)}; vdu=function(Q){Q.jm=0;Q.Wz=0;Q.ys=0}; jb=function(Q){return Q.iT&&Q.isManifestless?Q.isLiveHeadPlayable:Q.isLive}; yG=function(Q,z,H){Fo===null&&(Fo=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(aFu&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return Fo||H!=="9"&&H!=="("?Fo||H!=="9h"&&H!=="(h"||(Q='video/webm; codecs="vp9.2"'):Q='video/webm; codecs="vp9"',Q;if(!Fo&&!xi||Q!=='video/webm; codecs="vp9"'&&Q!=='video/webm; codecs="vp9.2"')return Q; H="00";var f="08",b="01",L="01",u="01";Q==='video/webm; codecs="vp9.2"'&&(H="02",f="10",z.primaries==="bt2020"&&(u=b="09"),z.B==="smpte2084"&&(L="16"),z.B==="arib-std-b67"&&(L="18"));return'video/webm; codecs="'+["vp09",H,"51",f,"01",b,L,u,"00"].join(".")+'"'}; ok=function(Q,z,H){Q=""+Q+(z>49?"p60":z>32?"p48":"");z=UW()[Q];if(z!=null&&z>0)return z;z=Om.get(Q);if(z!=null&&z>0)return z;H=H==null?void 0:H.get(Q);return H!=null&&H>0?H:8192}; yGJ=function(Q){this.aj=Q;this.gT=this.LP=this.jm=this.S=this.D=this.rT=this.iT=this.wh=!1;this.Y=this.j=0;this.WI=!1;this.L3=!0;this.C3=!1;this.zw=0;this.Nf=this.yl=!1;this.ys=!0;this.En=this.mq=!1;this.Z={};this.UY=this.disableAv1=this.ZJ=this.zx=this.gh=this.yE=this.B=this.N=!1;this.Bc=this.aj.V("html5_disable_aac_preference");this.Wz=Infinity;this.f3=0;this.EY=this.aj.vz();this.KH=this.aj.experiments.Nc("html5_enable_vp9_fairplay");this.Tx=this.aj.V("html5_force_av1_for_testing");this.uT=g.qf(this.aj.experiments, "html5_av1_ordinal_cap");this.QN=this.aj.V("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.p5=this.aj.V("html5_account_onesie_format_selection_during_format_filter");this.oi=g.qf(this.aj.experiments,"html5_max_byterate");this.U=this.aj.V("html5_sunset_aac_high_codec_family");this.De=this.aj.V("html5_sunset_aac_high_codec_family");this.Xa=this.aj.V("html5_enable_iamf_audio");this.yR=this.aj.experiments.Nc("html5_allow_capability_merge");this.d4=this.aj.V("html5_prefer_h264_encrypted_appletv"); this.Vs=this.aj.V("html5_enable_encrypted_av1")}; ShY=function(Q){if(Q.iT)return["f"];if(Q.d4&&g.K1("appletv5"))return"9h 9 h 8 H (h ( *".split(" ");var z=["9h","9","h","8"];Q.Vs&&z.push("1e");z=z.concat(["(h","(","H","*"]);Q.yl&&(z.unshift("1"),z.unshift("1h"));Q.LP&&z.unshift("h");Q.Ze&&(z=(qH6[Q.Ze]||[Q.Ze]).concat(z));return z}; zVk=function(Q){var z=["o","a","A"];Q.f3===1&&(Q.D&&(z=["mac3","MAC3"].concat(z)),Q.S&&(z=["meac3","MEAC3"].concat(z)),Q.Xa&&(z=["i","I"].concat(z)));Q.wh&&(z=["so","sa"].concat(z));!Q.gT||Q.jm||Q.L||Q.Bc||z.unshift("a");Q.rT&&!Q.U&&z.unshift("ah");Q.L&&(z=(qH6[Q.L]||[Q.L]).concat(z));return z}; JQ=function(Q,z,H,f){z=z===void 0?{}:z;if(f===void 0?0:f)return z.disabled=1,0;if(nu(Q.S,g8.AV1_CODECS)&&nu(Q.S,g8.HEIGHT)&&nu(Q.S,g8.BITRATE))return z.isCapabilityUsable=1,8192;try{var b=Uf_();if(b)return z.localPref=b}catch(X){}f=1080;b=navigator.hardwareConcurrency;b<=2&&(f=480);z.coreCount=b;if(b=g.qf(Q.experiments,"html5_default_av1_threshold"))f=z["default"]=b;!Q.V("html5_disable_av1_arm_check")&&oWv()&&(z.isArm=1,f=240);if(Q=Q.S.L3)z.mcap=Q,f=Math.max(f,Q);if(H){var L,u;if(Q=(L=H.videoInfos.find(function(X){return mq(X)}))== null?void 0:(u=L.B)==null?void 0:u.powerEfficient)f=8192,z.isEfficient=1; H=H.videoInfos[0].video;L=Math.min(ok("1",H.fps),ok("1",30));z.perfCap=L;f=Math.min(f,L);H.isHdr()&&!Q&&(z.hdr=1,f*=.75)}else H=ok("1",30),z.perfCap30=H,f=Math.min(f,H),H=ok("1",60),z.perfCap60=H,f=Math.min(f,H);return z.av1Threshold=f}; Nj=function(Q,z,H,f){this.flavor=Q;this.keySystem=z;this.B=H;this.experiments=f;this.Z={};this.C3=this.keySystemAccess=null;this.bu=this.pW=-1;this.Lt=null;this.L=!!f&&f.Nc("edge_nonprefixed_eme");f&&f.Nc("html5_enable_vp9_fairplay")}; AQ=function(Q){return Q.L?!1:!Q.keySystemAccess&&!!Ik()&&Q.keySystem==="com.microsoft.playready"}; Yi=function(Q){return Q.keySystem==="com.microsoft.playready"}; rS=function(Q){return!Q.keySystemAccess&&!!Ik()&&Q.keySystem==="com.apple.fps.1_0"}; sm=function(Q){return Q.keySystem==="com.youtube.fairplay"}; Bj=function(Q){return Q.keySystem==="com.youtube.fairplay.sbdl"}; g.Pj=function(Q){return Q.flavor==="fairplay"}; Ik=function(){var Q=window,z=Q.MSMediaKeys;k7()&&!z&&(z=Q.WebKitMediaKeys);return z&&z.isTypeSupported?z:null}; Um=function(Q){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.AI&&!g.dR())return oH("45");if(g.kw||g.EF)return Q.Nc("edge_nonprefixed_eme");if(g.ak)return oH("47");if(g.Ga){if(Q.Nc("html5_enable_safari_fairplay"))return!1;if(Q=g.qf(Q,"html5_safari_desktop_eme_min_version"))return oH(Q)}return!0}; MmJ=function(Q,z,H,f){var b=mW(),L=(H=b||H&&k7())?["com.youtube.fairplay"]:["com.widevine.alpha"];z&&L.unshift("com.youtube.widevine.l3");b&&f&&L.unshift("com.youtube.fairplay.sbdl");return H?L:Q?[].concat(g.F(L),g.F(cj.playready)):[].concat(g.F(cj.playready),g.F(L))}; hQ=function(){this.B=this.S8=0;this.Z=Array.from({length:iD.length}).fill(0)}; CCp=function(){}; tmp=function(){this.startTimeMs=(0,g.NV)();this.Z=!1}; Ed8=function(){this.Z=new CCp}; pRn=function(Q,z,H,f){f=f===void 0?1:f;H>=0&&(z in Q.Z||(Q.Z[z]=new hQ),Q.Z[z].Fc(H,f))}; ndp=function(Q,z,H,f,b){var L=(0,g.NV)(),u=b?b(z):void 0,X;b=(X=u==null?void 0:u.S8)!=null?X:1;if(b!==0){var v;X=(v=u==null?void 0:u.profile)!=null?v:H;pRn(Q,X,L-f,b)}return z}; Wj=function(Q,z,H,f,b){if(z&&typeof z==="object"){var L=function(u){return ndp(Q,u,H,f,b)}; if(uM(z))return z.then(L);if(gdn(z))return M1(z,L)}return ndp(Q,z,H,f,b)}; Zx9=function(){}; Dn=function(Q,z,H,f,b){f=f===void 0?!1:f;g.h.call(this);this.aj=z;this.useCobaltWidevine=f;this.On=b;this.B=[];this.L={};this.Z={};this.callback=null;this.S=!1;this.D=[];this.initialize(Q,!H)}; $v6=function(Q,z){Q.callback=z;Q.D=[];Um(Q.aj.experiments)?Ky(Q):GEv(Q)}; Ky=function(Q){if(!Q.Sm())if(Q.B.length===0)Q.callback(Q.D);else{var z=Q.B[0],H=Q.L[z],f=jc8(Q,H);if(VG&&VG.keySystem===z&&VG.vu5===JSON.stringify(f))Q.On("remksa",{re:!0}),Fn_(Q,H,VG.keySystemAccess);else{var b,L;Q.On("remksa",{re:!1,ok:(L=(b=VG)==null?void 0:b.keySystem)!=null?L:""});VG=void 0;(dS.isActive()?dS.UJ("emereq",function(){return navigator.requestMediaKeySystemAccess(z,f)}):navigator.requestMediaKeySystemAccess(z,f)).then(gZ(function(u){Fn_(Q,H,u,f)}),gZ(function(){Q.S=!Q.S&&Q.L[Q.B[0]].flavor=== "widevine"; Q.S||Q.B.shift();Ky(Q)}))}}}; Fn_=function(Q,z,H,f){if(!Q.Sm()){f&&(VG={keySystem:z.keySystem,keySystemAccess:H,vu5:JSON.stringify(f)});z.keySystemAccess=H;if(Yi(z)){H=NC();f=g.n(Object.keys(Q.Z[z.flavor]));for(var b=f.next();!b.done;b=f.next())b=b.value,z.Z[b]=!!H.canPlayType(b)}else{H=z.keySystemAccess.getConfiguration();if(H.audioCapabilities)for(f=g.n(H.audioCapabilities),b=f.next();!b.done;b=f.next())xvY(Q,z,b.value);if(H.videoCapabilities)for(H=g.n(H.videoCapabilities),f=H.next();!f.done;f=H.next())xvY(Q,z,f.value)}Q.D.push(z); Q.useCobaltWidevine||Q.V("html5_enable_vp9_fairplay")&&Bj(z)?(Q.B.shift(),Ky(Q)):Q.callback(Q.D)}}; xvY=function(Q,z,H){Q.V("log_robustness_for_drm")?z.Z[H.contentType]=H.robustness||!0:z.Z[H.contentType]=!0}; jc8=function(Q,z){var H={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(Q.V("html5_enable_vp9_fairplay")&&sm(z))return H.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),H.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[H];Yi(z)&&(H.initDataTypes=["keyids","cenc"]);for(var f=g.n(Object.keys(Q.Z[z.flavor])),b=f.next();!b.done;b=f.next()){b=b.value;var L=b.indexOf("audio/")===0,u=L?H.audioCapabilities:H.videoCapabilities;z.flavor!== "widevine"||Q.S?u.push({contentType:b}):L?u.push({contentType:b,robustness:"SW_SECURE_CRYPTO"}):(g.AI&&g.K1("windows nt")&&!Q.V("html5_drm_enable_moho")||u.push({contentType:b,robustness:"HW_SECURE_ALL"}),L=b,Q.V("html5_enable_cobalt_experimental_vp9_decoder")&&b.includes("vp09")&&(L=b+"; experimental=allowed"),u.push({contentType:L,robustness:"SW_SECURE_DECODE"}),mf(Q.aj)==="MWEB"&&(zd()||VC())&&(Q.On("swcrypto",{}),u.push({contentType:b,robustness:"SW_SECURE_CRYPTO"})))}return[H]}; GEv=function(Q){if(Ik()&&(g.Ga||eT&&Q.V("html5_drm_support_ios_mweb")))Q.D.push(new Nj("fairplay","com.apple.fps.1_0","",Q.aj.experiments));else{var z=Oxu(),H=g.mB(Q.B,function(f){var b=Q.L[f],L=!1,u=!1,X;for(X in Q.Z[b.flavor])z(X,f)&&(b.Z[X]=!0,L=L||X.indexOf("audio/")===0,u=u||X.indexOf("video/")===0);return L&&u}); H&&Q.D.push(Q.L[H]);Q.B=[]}Q.callback(Q.D)}; Oxu=function(){var Q=Ik();if(Q){var z=Q.isTypeSupported;return function(f,b){return z(b,f)}}var H=NC(); return H&&(H.addKey||H.webkitAddKey)?function(f,b){return!!H.canPlayType(f,b)}:function(){return!1}}; od_=function(Q){this.experiments=Q;this.Z=2048;this.D=0;this.L3=(this.Y=this.V("html5_streaming_resilience"))?.5:.25;var z=z===void 0?0:z;this.L=g.qf(this.experiments,"html5_media_time_weight_prop")||z;this.wh=g.qf(this.experiments,"html5_sabr_timeout_penalty_factor")||1;this.U=(this.S=this.experiments.Nc("html5_consider_end_stall"))&&wS;this.B=this.experiments.Nc("html5_measure_max_progress_handling");this.N=this.V("html5_treat_requests_pre_elbow_as_metadata");this.j=this.V("html5_media_time_weight")|| !!this.L;this.Ze=g.qf(this.experiments,"html5_streaming_fallback_byterate");this.V("html5_sabr_live_audio_early_return_fix")&&wS&&(this.Z=65536)}; JGL=function(Q,z){this.Z=void 0;this.experimentIds=Q?Q.split(","):[];this.flags=H2(z||"","&");Q={};z=g.n(this.experimentIds);for(var H=z.next();!H.done;H=z.next())Q[H.value]=!0;this.experiments=Q}; g.qf=function(Q,z){Q=Q.flags[z];JSON.stringify(Q);return Number(Q)||0}; ki=function(Q,z){return(Q=Q.flags[z])?Q.toString():""}; Nn8=function(Q){if(Q=Q.flags.html5_web_po_experiment_ids)if(Q=Q.replace(/\[ *(.*?) *\]/,"$1"))return Q.split(",").map(Number);return[]}; I$A=function(Q){if(Q.Z)return Q.Z;if(Q.experimentIds.length<=1)return Q.Z=Q.experimentIds,Q.Z;var z=[].concat(g.F(Q.experimentIds)).map(function(f){return Number(f)}); z.sort();for(var H=z.length-1;H>0;--H)z[H]-=z[H-1];Q.Z=z.map(function(f){return f.toString()}); Q.Z.unshift("v1");return Q.Z}; YHk=function(Q){return AGa.then(Q)}; Ty=function(Q,z,H){this.experiments=Q;this.yl=z;this.f3=H===void 0?!1:H;this.wh=!!g.D6("cast.receiver.platform.canDisplayType");this.U={};this.N=!1;this.B=new Map;this.Y=!0;this.D=this.S=!1;this.Z=new Map;this.L3=0;this.De=this.experiments.Nc("html5_disable_vp9_encrypted");this.L=this.experiments.Nc("html5_enable_encrypted_av1");Q=g.D6("cast.receiver.platform.getValue");this.j=!this.wh&&Q&&Q("max-video-resolution-vpx")||null;rGv(this)}; yIc=function(Q,z,H){H=H===void 0?1:H;var f=z.itag;if(f==="0")return!0;var b=z.mimeType;if(z.rV()&&mW()&&Q.experiments.Nc("html5_appletv_disable_vp9"))return"dwebm";if(z.Rj==="1e"&&!Q.L)return"dav1enc";if(mq(z)&&Q.N)return"dav1";if(z.video&&(z.video.isHdr()||z.video.primaries==="bt2020")&&!(nu(Q,g8.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(f=== "338"&&!(g.AI?oH(53):g.ak&&oH(64)))return"dopus";var L=H;L=L===void 0?1:L;H={};z.video&&(z.video.width&&(H[g8.WIDTH.name]=z.video.width),z.video.height&&(H[g8.HEIGHT.name]=z.video.height),z.video.fps&&(H[g8.FRAMERATE.name]=z.video.fps*L),z.video.B&&(H[g8.EOTF.name]=z.video.B),z.oi&&(H[g8.BITRATE.name]=z.oi*8*L),z.Rj==="("&&(H[g8.CRYPTOBLOCKFORMAT.name]="subsample"),z.video.projectionType==="EQUIRECTANGULAR"||z.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||z.video.projectionType==="MESH")&& (H[g8.DECODETOTEXTURE.name]="true");z.audio&&z.audio.numChannels&&(H[g8.CHANNELS.name]=z.audio.numChannels);Q.S&&KG(z)&&(H[g8.EXPERIMENTAL.name]="allowed");L=g.n(Object.keys(g8));for(var u=L.next();!u.done;u=L.next()){u=g8[u.value];var X;if(X=H[u.name])if(X=!(u===g8.EOTF&&z.mimeType.indexOf("vp09.02")>0)){X=u;var v=z;X=!(Q.experiments.Nc("html5_ignore_h264_framerate_cap")&&X===g8.FRAMERATE&&Zpn(v))}if(X)if(nu(Q,u))if(Q.j){if(Q.j[u.name]1080&&z.AM&&(b+="; hdcp=2.2");return f==="227"?"hqcenc":f!=="585"&&f!=="588"&&f!=="583"&&f!=="586"&&f!=="584"&&f!=="587"&&f!=="591"&&f!=="592"||Q.experiments.Nc("html5_enable_new_hvc_enc")?Q.isTypeSupported(b)?!0:"tpus":"newhvc"}; eb=function(){var Q=VC()&&!oH(29),z=g.K1("google tv")&&g.K1("chrome")&&!oH(30);return Q||z?!1:Opk()}; sc9=function(Q,z,H){var f=480;z=g.n(z);for(var b=z.next();!b.done;b=z.next()){b=b.value;var L=b.video.Z;L<=1080&&L>f&&yIc(Q,b,H)===!0&&(f=L)}return f}; g.lD=function(Q,z){z=z===void 0?!1:z;return eb()&&Q.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!z&&Q.canPlayType(NC(),"application/x-mpegURL")?!0:!1}; PCv=function(Q){Bnv(function(){for(var z=g.n(Object.keys(g8)),H=z.next();!H.done;H=z.next())nu(Q,g8[H.value])})}; nu=function(Q,z){z.name in Q.U||(Q.U[z.name]=a$k(Q,z));return Q.U[z.name]}; a$k=function(Q,z){if(Q.j)return!!Q.j[z.name];if(z===g8.BITRATE&&Q.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!Q.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(z===g8.AV1_CODECS)return Q.isTypeSupported("video/mp4; codecs="+z.valid)&&!Q.isTypeSupported("video/mp4; codecs="+z.Tj);if(z.video){var H='video/webm; codecs="vp9"';Q.isTypeSupported(H)||(H='video/mp4; codecs="avc1.4d401e"')}else H='audio/webm; codecs="opus"', Q.isTypeSupported(H)||(H='audio/mp4; codecs="mp4a.40.2"');return Q.isTypeSupported(H+"; "+z.name+"="+z.valid)&&!Q.isTypeSupported(H+"; "+z.name+"="+z.Tj)}; Uvv=function(Q){Q.S||(Q.S=!0,Rk(Q))}; Rk=function(Q){Q.D=!0;Q.experiments.Nc("html5_ssap_update_capabilities_on_change")&&cGp(Q)}; ixc=function(Q,z){var H=0;Q.B.has(z)&&(H=Q.B.get(z).Ky);Q.B.set(z,{Ky:H+1,zg:Math.pow(2,H+1)});Rk(Q)}; Cu=function(Q){for(var z=[],H=g.n(Q.Z.keys()),f=H.next();!f.done;f=H.next()){f=f.value;var b=Q.Z.get(f);z.push(f+"_"+b.maxWidth+"_"+b.maxHeight)}return z.join(".")}; cGp=function(Q){Q.Ze=[];for(var z=g.n(Q.Z.values()),H=z.next();!H.done;H=z.next()){H=H.value;var f=H.Rj;Q.experiments.Nc("html5_ssap_force_mp4_aac")&&f!=="a"&&f!=="h"||Q.B.has(f)||Q.N&&(f==="1"||f==="1h"||Q.L&&f==="1e")||Q.Ze.push(H)}}; HGn=function(Q,z){for(var H=new Map,f=g.n(Q.Z.keys()),b=f.next();!b.done;b=f.next()){b=b.value;var L=b.split("_")[0];z.has(L)||H.set(b,Q.Z.get(b))}Q.Z=H}; bGJ=function(Q,z,H){var f,b=((f=H.video)==null?void 0:f.fps)||0;f=z+"_"+b;var L=!!H.audio,u={itag:H.itag,Rj:z,Wq:L};if(L)u.numChannels=H.audio.numChannels;else{var X=H.video;u.maxWidth=X==null?void 0:X.width;u.maxHeight=X==null?void 0:X.height;u.maxFramerate=b;nu(Q,g8.BITRATE)&&(u.maxBitrateBps=H.oi*8);u.Le=X==null?void 0:X.isHdr()}X=Q.Z.get(f);X?L||(H=Math.max(X.maxWidth||0,X.maxHeight||0)>Math.max(u.maxWidth||0,u.maxHeight||0)?X:u,z={itag:H.itag,Rj:z,Wq:L,maxWidth:Math.max(X.maxWidth||0,u.maxWidth|| 0),maxHeight:Math.max(X.maxHeight||0,u.maxHeight||0),maxFramerate:b,Le:H.Le},nu(Q,g8.BITRATE)&&(z.maxBitrateBps=H.maxBitrateBps),Q.Z.set(f,z)):Q.Z.set(f,u)}; LqJ=function(Q,z,H){var f,b=((f=H.video)==null?void 0:f.fps)||0;f=z+"_"+b;var L=!!H.audio,u=Q.Z.get(f);a:{var X=Q.Z.get(f),v=!!H.audio;if(X){if(v){var y=!1;break a}var q;if(!v&&((y=H.video)==null?0:y.height)&&X.maxHeight&&X.maxHeight>=((q=H.video)==null?void 0:q.height)){y=!1;break a}}y=!0}y&&(y=H.itag,z=u?u:{itag:y,Rj:z,Wq:L},L?z.numChannels=H.audio.numChannels:(L=H.video,z.maxWidth=L==null?void 0:L.width,z.maxHeight=L==null?void 0:L.height,z.maxFramerate=b,nu(Q,g8.BITRATE)&&(z.maxBitrateBps=H.oi* 8),z.Le=L==null?void 0:L.isHdr()),Q.Z.set(f,z))}; rGv=function(Q){var z;(z=navigator.mediaCapabilities)!=null&&z.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(H){H.smooth&&H.powerEfficient&&(Q.L3=2160)})}; Qq=function(){g.Xp.call(this);this.items={}}; zt=function(){g.$9.apply(this,arguments)}; H0=function(){g.j7.apply(this,arguments)}; h2Z=function(Q,z,H){this.encryptedClientKey=z;this.S=H;this.Z=new Uint8Array(Q.buffer,0,16);this.L=new Uint8Array(Q.buffer,16)}; WnA=function(Q){Q.B||(Q.B=new zt(Q.Z));return Q.B}; fo=function(Q){try{return Z3(Q)}catch(z){return null}}; Dv8=function(Q,z){if(!z&&Q)try{z=JSON.parse(Q)}catch(b){}if(z){Q=z.clientKey?fo(z.clientKey):null;var H=z.encryptedClientKey?fo(z.encryptedClientKey):null,f=z.keyExpiresInSeconds?Number(z.keyExpiresInSeconds)*1E3+(0,g.NV)():null;Q&&H&&f&&(this.Z=new h2Z(Q,H,f));z.onesieUstreamerConfig&&(this.onesieUstreamerConfig=fo(z.onesieUstreamerConfig)||void 0);this.baseUrl=z.baseUrl}}; Lo=function(){this.data=new Uint8Array(2048);this.pos=0;bf||(bf=It("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))}; uf=function(Q,z){Q.add(z==null||isNaN(z)?0:z+1)}; SN=function(Q){this.Z=this.B=0;this.alpha=Math.exp(Math.log(.5)/Q)}; Xu=function(Q){this.B=Q===void 0?15:Q;this.values=new Float64Array(176);this.Z=new Float64Array(11);this.L=new Float64Array(16)}; v0=function(Q,z,H,f){H=H===void 0?.5:H;f=f===void 0?0:f;this.resolution=z;this.B=0;this.L=!1;this.uF=!0;this.Z=Math.round(Q*this.resolution);this.values=Array(this.Z);for(Q=0;Q0)z=Q.byterate,this.Ze=!0;else{var f; H=(((f=navigator.connection)==null?void 0:f.downlink)||0)*64*1024;H>0&&(z=H,this.Ze=!0)}this.L.iH(this.policy.j,z);Q.delay>0&&this.N.iH(1,Math.min(Q.delay,2));Q.stall>0&&this.Y.iH(1,Q.stall);Q.init>0&&(this.jm=Math.min(Q.init,this.jm));Q.interruptions&&(this.D=this.D.concat(Q.interruptions),this.D.length>16&&this.D.pop());this.wh=(0,g.NV)();this.policy.Y>0&&(this.mq=new g.e_(this.iT,this.policy.Y,this),g.W(this,this.mq),this.mq.start())}; q$=function(Q,z,H,f){Q.L.iH(f===void 0?z:f,H/z);Q.j=(0,g.NV)()}; Vmn=function(Q){Q.S||(Q.S=(0,g.NV)());Q.policy.U&&(Q.j=(0,g.NV)())}; dvk=function(Q,z){if(Q.S){var H=z-Q.S;if(H<6E4){if(H>1E3){var f=Q.interruptions;f.push(Math.ceil(H));f.sort(function(b,L){return L-b}); f.length>16&&f.pop()}Q.De+=H}}Q.S=z}; M$=function(Q,z,H,f,b,L){L=L===void 0?!1:L;Q.f3.iH(z,H/z);Q.j=(0,g.NV)();b||Q.U.iH(1,z-f);L||(Q.S=0);Q.wh>-1&&(0,g.NV)()-Q.wh>3E4&&mv9(Q)}; Co=function(Q,z,H){z=Math.max(z,Q.B.Z);Q.Y.iH(1,H/z)}; tE=function(Q){Q=Q.N.gQ()+Q.yl.gQ()||0;Q=isNaN(Q)?.5:Q;return Q=Math.min(Q,5)}; E8=function(Q,z,H){isNaN(H)||(Q.L3+=H);isNaN(z)||(Q.En+=z)}; po=function(Q){Q=Q.L.gQ();return Q>0?Q:1}; no=function(Q,z,H){z=z===void 0?!1:z;H=H===void 0?1048576:H;var f=po(Q);f=1/((Q.Y.gQ()||0)*Q.policy.Ze+1/f);var b=Q.f3.gQ();b=b>0?b:1;var L=Math.max(f,b);Q.policy.S>0&&b=4E3}; kE8=function(Q){this.experiments=Q;this.Z=17;this.L=13E4;this.j=.5;this.B=!1;this.wh=this.V("html5_use_histogram_for_bandwidth");this.D=!1;this.S=g.qf(this.experiments,"html5_auxiliary_estimate_weight");this.Ze=g.qf(this.experiments,"html5_stall_factor")||1;this.Y=g.qf(this.experiments,"html5_check_for_idle_network_interval_ms");this.N=this.experiments.Nc("html5_trigger_loader_when_idle_network");this.U=this.experiments.Nc("html5_sabr_fetch_on_idle_network_preloaded_players")}; e2L=function(Q,z){Q=Q===void 0?{}:Q;z=z===void 0?{}:z;g.h.call(this);var H=this;this.values=Q;this.ol=z;this.B={};this.L=this.Z=0;this.D=new g.e_(function(){Tnk(H)},1E4); g.W(this,this.D)}; Zd=function(Q,z){l$Y(Q,z);return Q.values[z]&&Q.ol[z]?Q.values[z]/Math.pow(2,Q.Z/Q.ol[z]):0}; l$Y=function(Q,z){Q.values[z]||(z=sTu(),Q.values=z.values||{},Q.ol=z.halfLives||{},Q.B=z.values?Object.assign({},z.values):{})}; Tnk=function(Q){var z=sTu();if(z.values){z=z.values;for(var H={},f=g.n(Object.keys(Q.values)),b=f.next();!b.done;b=f.next())b=b.value,z[b]&&Q.B[b]&&(Q.values[b]+=z[b]-Q.B[b]),H[b]=Zd(Q,b);Q.B=H}z=Q.ol;H={};H.values=Q.B;H.halfLives=z;g.Bw("yt-player-memory",H,2592E3)}; c0=function(Q,z,H,f,b){g.h.call(this);this.webPlayerContextConfig=z;this.eN=f;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.j2=this.Xa=this.uT=this.r7=this.userDisplayName=this.userDisplayImage=this.uL="";this.Z={};this.Wz={};this.controlsType="0";this.yR=NaN;this.gh=!1;this.YJ=(0,g.NV)();this.EY=0;this.Pl=this.X2=!1;this.B5=!0;this.preferGapless=this.rz=this.cq=this.L=this.ox=this.m4=!1;this.kX=[];this.sj=!1;Q=Q?g.B3(Q):{};z&&z.csiPageType&&(this.csiPageType=z.csiPageType);z&&z.csiServiceName&& (this.csiServiceName=z.csiServiceName);z&&z.preferGapless&&(this.preferGapless=z.preferGapless);this.experiments=new JGL(z?z.serializedExperimentIds:Q.fexp,z?z.serializedExperimentFlags:Q.fflags);this.forcedExperiments=z?z.serializedForcedExperimentIds:Ss("",Q.forced_experiments)||void 0;this.cspNonce=(z==null?0:z.cspNonce)?z.cspNonce:Ss("",Q.csp_nonce);this.V("web_player_deprecated_uvr_killswitch");try{var L=document.location.toString()}catch(k){L=""}this.Tx=L;this.ancestorOrigins=(f=window.location.ancestorOrigins)? Array.from(f):[];this.D=bh(!1,z?z.isEmbed:Q.is_embed);if(z&&z.device){if(f=z.device,f.androidOsExperience&&(this.Z.caoe=""+f.androidOsExperience),f.androidPlayServicesVersion&&(this.Z.capsv=""+f.androidPlayServicesVersion),f.brand&&(this.Z.cbrand=f.brand),f.browser&&(this.Z.cbr=f.browser),f.browserVersion&&(this.Z.cbrver=f.browserVersion),f.cobaltReleaseVehicle&&(this.Z.ccrv=""+f.cobaltReleaseVehicle),this.Z.c=f.interfaceName||"WEB",this.Z.cver=f.interfaceVersion||"html5",f.interfaceTheme&&(this.Z.ctheme= f.interfaceTheme),this.Z.cplayer=f.interfacePlayerType||"UNIPLAYER",f.model&&(this.Z.cmodel=f.model),f.network&&(this.Z.cnetwork=f.network),f.os&&(this.Z.cos=f.os),f.osVersion&&(this.Z.cosver=f.osVersion),f.platform&&(this.Z.cplatform=f.platform),L=ki(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),L==="all"||L==="once")f.chipset&&(this.Wz.cchip=f.chipset),f.cobaltAppVersion&&(this.Wz.ccappver=f.cobaltAppVersion),f.firmwareVersion&&(this.Wz.cfrmver=f.firmwareVersion),f.deviceYear&&(this.Wz.crqyear= f.deviceYear)}else this.Z.c=Q.c||"web",this.Z.cver=Q.cver||"html5",this.Z.cplayer="UNIPLAYER";this.loaderUrl=z?this.D||R2A(this)&&z.loaderUrl?z.loaderUrl||"":this.Tx:this.D||R2A(this)&&Q.loaderUrl?Ss("",Q.loaderUrl):this.Tx;this.D&&g.W_("yt.embedded_player.embed_url",this.loaderUrl);this.Y=T3(this.loaderUrl,Q9u);f=this.loaderUrl;var u=u===void 0?!1:u;this.W0=kJ(T3(f,zcp),f,u,"Trusted Ad Domain URL");this.ys=bh(!1,Q.privembed);this.protocol=this.Tx.indexOf("http:")===0?"http":"https";this.qP=eo((z? z.customBaseYoutubeUrl:Q.BASE_YT_URL)||"")||eo(this.Tx)||this.protocol+"://www.youtube.com/";u=z?z.eventLabel:Q.el;f="detailpage";u==="adunit"?f=this.D?"embedded":"detailpage":u==="embedded"||this.Y?f=LF(f,u,H6n):u&&(f="embedded");this.yl=f;aKY();u=null;f=z?z.playerStyle:Q.ps;L=g.kO(fiL,f);!f||L&&!this.Y||(u=f);this.playerStyle=u;this.j=g.kO(fiL,this.playerStyle);this.houseBrandUserStatus=z==null?void 0:z.houseBrandUserStatus;this.wh=this.j&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard"; this.ID=!this.wh;this.jm=bh(!1,Q.disableplaybackui);this.disablePaidContentOverlay=bh(!1,z==null?void 0:z.disablePaidContentOverlay);this.disableSeek=bh(!1,z==null?void 0:z.disableSeek);this.enableSpeedOptions=(z==null?void 0:z.enableSpeedOptions)||(NC().defaultPlaybackRate?Gt||g.Qh||$h?g.ak&&oH("20")||g.AI&&oH("4")||g.jN&&oH("11")||Tr():!(g.jN&&!g.K1("chrome")||Gt||g.K1("android")||g.K1("silk")):!1);this.h_=bh(!1,Q.enable_faster_speeds);var X;this.supportsVarispeedExtendedFeatures=(X=z==null?void 0: z.supportsVarispeedExtendedFeatures)!=null?X:!1;this.B=bh(this.playerStyle==="blazer",Q.is_html5_mobile_device||z&&z.isMobileDevice);this.En=Rn()||zd();this.v0=this.V("mweb_allow_background_playback")?!1:this.B&&!this.j;this.mq=sh();this.YX=g.Fu;var v;this.xr=!!(z==null?0:(v=z.embedsHostFlags)==null?0:v.optOutApiDeprecation);var y;this.rq=!!(z==null?0:(y=z.embedsHostFlags)==null?0:y.allowPfpImaIntegration);this.mZ=this.V("embeds_web_enable_ve_conversion_logging_tracking_no_allow_list");var q;z?z.hideInfo!== void 0&&(q=!z.hideInfo):q=Q.showinfo;this.P5=g.xh(this)&&!this.xr||bh(!O8(this)&&!ol(this)&&!this.j,q);this.Lt=z?!!z.mobileIphoneSupportsInlinePlayback:bh(!1,Q.playsinline);X=this.B&&JE&&N$!=null&&N$>0&&N$<=2.3;v=z?z.useNativeControls:Q.use_native_controls;this.N=g.xh(this)&&this.B;y=this.B&&!this.N;v=g.Il(this)||!X&&bh(y,v)?"3":"1";this.disableOrganicUi=!(z==null||!z.disableOrganicUi);y=z?z.controlsType:Q.controls;this.controlsType=this.disableOrganicUi?"0":y!=="0"&&y!==0?v:"0";this.ov=this.B;this.color= LF("red",z?z.progressBarColor:Q.color,b6_);this.jl=this.controlsType==="3";this.gT=!this.D;this.zj=(v=!this.gT&&!ol(this)&&!this.wh&&!this.j&&!O8(this))&&!this.jl&&this.controlsType==="1";this.d4=g.AE(this)&&v&&this.controlsType==="0"&&!this.zj&&!(z==null?0:z.embedsEnableEmc3ds);this.Ev=this.Ve=X;this.Vs=(this.controlsType==="3"||this.B||bh(!1,Q.use_media_volume))&&!this.N;this.q0=eT&&!g.pr(601)?!1:!0;this.nV=this.D||!1;this.C3=ol(this)?"":(this.loaderUrl||Q.post_message_origin||"").substring(0,128); this.widgetReferrer=Ss("",z?z.widgetReferrer:Q.widget_referrer);var M;z?z.disableCastApi&&(M=!1):M=Q.enablecastapi;M=!this.Y||bh(!0,M);X=!0;z&&z.disableMdxCast&&(X=!1);this.J5=this.V("enable_cast_for_web_unplugged")&&g.Yh(this)&&X||g.Ux(this)&&X||M&&X&&this.controlsType==="1"&&!this.B&&(ol(this)||g.AE(this)||g.rm(this));this.J_=!!window.document.pictureInPictureEnabled||r5();M=z?!!z.supportsAutoplayOverride:bh(!1,Q.autoplayoverride);this.C2=!(this.B&&!g.xh(this))&&!g.K1("nintendo wiiu")||M;this.dQ= (z?!!z.enableMutedAutoplay:bh(!1,Q.mutedautoplay))&&!1;M=(ol(this)||O8(this))&&this.playerStyle==="blazer";this.Ef=z?!!z.disableFullscreen:!bh(!0,Q.fs);X=g.q0(g.s8(this))&&g.xh(this);this.KH=!this.Ef&&(M||g.gD())&&!X;this.AK=this.V("html5_picture_in_picture_logging_onresize");this.zO=this.V("html5_picture_in_picture_blocking_onresize");this.Bl=this.V("html5_picture_in_picture_blocking_ontimeupdate");this.Sl=this.V("html5_picture_in_picture_blocking_document_fullscreen");this.qD=this.V("html5_picture_in_picture_blocking_standard_api"); M=VC()&&oH(58)&&!zd();X=wG||typeof MediaSource==="undefined";this.Tl=this.V("uniplayer_block_pip")&&(M||X)||this.zO||this.Bl||this.qD;M=g.xh(this)&&!this.xr;var C;z?z.disableRelatedVideos!==void 0&&(C=!z.disableRelatedVideos):C=Q.rel;this.p5=M||bh(!this.j,C);this.MD=bh(!1,z?z.enableContentOwnerRelatedVideos:Q.co_rel);this.U=zd()&&N$>0&&N$<=4.4?"_top":"_blank";this.Ci=g.rm(this);this.gS=bh(this.playerStyle==="blazer",z?z.enableCsiLogging:Q.enablecsi);switch(this.playerStyle){case "blogger":C="bl"; break;case "gmail":C="gm";break;case "gac":C="ga";break;case "ads-preview":C="ap";break;case "books":C="gb";break;case "docs":case "flix":C="gd";break;case "duo":C="gu";break;case "google-live":C="gl";break;case "google-one":C="go";break;case "play":C="gp";break;case "chat":C="hc";break;case "hangouts-meet":C="hm";break;case "photos-edu":case "picasaweb":C="pw";break;default:C="yt"}this.Ze=C;this.L3=Ss("",z?z.authorizedUserIndex:Q.authuser);this.UY=g.xh(this)&&(this.ys||!xNn()||this.En);var t;z?z.disableWatchLater!== void 0&&(t=!z.disableWatchLater):t=Q.showwatchlater;this.QN=((C=!this.UY)||!!this.L3&&C)&&bh(!this.wh,this.Y?t:void 0);this.Bc=z?z.isMobileDevice||!!z.disableKeyboardControls:bh(!1,Q.disablekb);this.loop=bh(!1,Q.loop);this.pageId=Ss("",z?z.initialDelegatedSessionId:Q.pageid);this.vN=bh(!0,Q.canplaylive);this.WI=bh(!1,Q.livemonitor);this.disableSharing=bh(this.j,z?z.disableSharing:Q.ss);(t=z&&this.V("fill_video_container_size_override_from_wpcc")?z.videoContainerOverride:Q.video_container_override)? (C=t.split("x"),C.length!==2?t=null:(t=Number(C[0]),C=Number(C[1]),t=isNaN(t)||isNaN(C)||t*C<=0?null:new g.pC(t,C))):t=null;this.Lr=t;this.mute=z?!!z.startMuted:bh(!1,Q.mute);this.storeUserVolume=!this.mute&&bh(this.controlsType!=="0",z?z.storeUserVolume:Q.store_user_volume);t=z?z.annotationsLoadPolicy:Q.iv_load_policy;this.annotationsLoadPolicy=this.controlsType==="3"?3:LF(void 0,t,B0);this.captionsLanguagePreference=z?z.captionsLanguagePreference||"":Ss("",Q.cc_lang_pref);t=LF(2,z?z.captionsLanguageLoadPolicy: Q.cc_load_policy,B0);this.controlsType==="3"&&t===2&&(t=3);this.ZJ=t;this.yE=z?z.hl||"en_US":Ss("en_US",Q.hl);this.region=z?z.contentRegion||"US":Ss("US",Q.cr);this.hostLanguage=z?z.hostLanguage||"en":Ss("en",Q.host_language);this.QO=!this.ys&&Math.random()=480;this.schedule=new yq(X,new od_(this.experiments),b);g.W(this,this.schedule);var E;this.enableSafetyMode=(E=z==null?void 0:z.initialEnableSafetyMode)!=null?E:bh(!1,Q.enable_safety_mode);b=this.jm?!1:ol(this)&&this.playerStyle!=="blazer";var G;z?z.disableAutonav!=null&&(G=!z.disableAutonav): G=Q.allow_autonav;this.zx=bh(b,!this.wh&&G);this.sendVisitorIdHeader=z?!!z.sendVisitorIdHeader:bh(!1,Q.send_visitor_id_header);var x;this.playerStyle==="docs"&&(z?x=z.disableNativeContextMenu:x=Q.disable_native_context_menu);this.disableNativeContextMenu=bh(!1,x);this.yd=xJ(this)&&this.V("enable_skip_intro_button");this.embedConfig=Ss("",z?z.serializedEmbedConfig:Q.embed_config);this.De=yh(Q,g.xh(this));this.L=this.De==="EMBEDDED_PLAYER_MODE_PFL";this.embedsErrorLinks=!(z==null||!z.embedsErrorLinks); this.dS=bh(!1,Q.full_window);var J;this.rT=!((J=this.webPlayerContextConfig)==null?0:J.chromeless);var I;this.livingRoomAppMode=LF("LIVING_ROOM_APP_MODE_UNSPECIFIED",Q.living_room_app_mode||(z==null?void 0:(I=z.device)==null?void 0:I.livingRoomAppMode),Sv_);var r;G=uh(NaN,z==null?void 0:(r=z.device)==null?void 0:r.deviceYear);isNaN(G)||(this.deviceYear=G);this.transparentBackground=z?!!z.transparentBackground:bh(!1,Q.transparent_background);this.showMiniplayerButton=z?!!z.showMiniplayerButton:bh(!1, Q.show_miniplayer_button);var U;g.xh(this)&&!(z==null?0:(U=z.embedsHostFlags)==null?0:U.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=z?!!z.externalFullscreen:bh(!1,Q.external_fullscreen);this.showMiniplayerUiWhenMinimized=z?!!z.showMiniplayerUiWhenMinimized:bh(!1,Q.use_miniplayer_ui);var D;this.B5=(D=Q.show_loop_video_toggle)!=null?D:!0;this.Da=Math.random()<1E-4;this.Tw=Q.onesie_hot_config||(z==null?0:z.onesieHotConfig)?new Dv8(Q.onesie_hot_config,z==null?void 0:z.onesieHotConfig): void 0;this.isTectonic=z?!!z.isTectonic:!!Q.isTectonic;this.playerCanaryState=H;this.playerCanaryStage=z==null?void 0:z.canaryStage;this.D6=new e2L;g.W(this,this.D6);this.ox=bh(!1,Q.force_gvi);this.datasyncId=(z==null?void 0:z.datasyncId)||g.T5("DATASYNC_ID");this.WY=g.T5("LOGGED_IN",!1);this.yw=(z==null?void 0:z.allowWoffleManagement)||!1;this.W7=Infinity;this.Uf=NaN;this.livingRoomPoTokenId=z==null?void 0:z.livingRoomPoTokenId;this.V("html5_high_res_logging_always")?this.cq=!0:this.cq=Math.random()* 100=0&&Q0&&Q.Da&&(f.sort(),g.PT(new g.wD("Player client parameters changed after startup",f)));Q.userAge=uh(Q.userAge,z.user_age);Q.uL=Ss(Q.uL,z.user_display_email);Q.userDisplayImage=Ss(Q.userDisplayImage,z.user_display_image);g.RT(Q.userDisplayImage)||(Q.userDisplayImage= "");Q.userDisplayName=Ss(Q.userDisplayName,z.user_display_name);Q.r7=Ss(Q.r7,z.user_gender);Q.csiPageType=Ss(Q.csiPageType,z.csi_page_type);Q.csiServiceName=Ss(Q.csiServiceName,z.csi_service_name);Q.gS=bh(Q.gS,z.enablecsi);Q.pageId=Ss(Q.pageId,z.pageid);if(H=z.enabled_engage_types)Q.enabledEngageTypes=new Set(H.split(","));z.living_room_session_po_token&&(Q.h$=z.living_room_session_po_token.toString())}; hE=function(Q,z){return!Q.j&&VC()&&oH(55)&&Q.controlsType==="3"&&!z}; g.W0=function(Q){Q=P0(Q.qP);return Q==="www.youtube-nocookie.com"?"www.youtube.com":Q}; Dd=function(Q,z,H){return Q.protocol+"://i1.ytimg.com/vi/"+z+"/"+(H||"hqdefault.jpg")}; Ko=function(Q){return ol(Q)&&!g.Yh(Q)}; g.Il=function(Q){return Q.V("html5_local_playsinline")?eT&&!g.pr(602)&&!("playsInline"in NC()):eT&&!Q.Lt||g.K1("nintendo wiiu")?!0:!1}; mf=function(Q){return Q.Z.c}; g.OV=function(Q){return/^TVHTML5/.test(mf(Q))}; g.Vq=function(Q){return mf(Q)==="TVHTML5"}; R2A=function(Q){return mf(Q)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; uOv=function(Q){return Q.Z.cmodel==="CHROMECAST ULTRA/STEAK"||Q.Z.cmodel==="CHROMECAST/STEAK"}; g.dm=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; xJ=function(Q){return/web/i.test(mf(Q))}; g.mD=function(Q){return mf(Q).toUpperCase()==="WEB"}; U8=function(Q){return mf(Q)==="WEB_KIDS"}; g.Yh=function(Q){return mf(Q)==="WEB_UNPLUGGED"}; wm=function(Q){return mf(Q)==="TVHTML5_UNPLUGGED"}; g.FE=function(Q){return g.Yh(Q)||mf(Q)==="TV_UNPLUGGED_CAST"||wm(Q)}; g.Ux=function(Q){return mf(Q)==="WEB_REMIX"}; g.kh=function(Q){return mf(Q)==="WEB_EMBEDDED_PLAYER"}; g.eN=function(Q){return(Q.deviceIsAudioOnly||!g.AI||wG||Q.controlsType==="3"?!1:g.Qh?Q.D&&g.pr(51):!0)||(Q.deviceIsAudioOnly||!g.ak||wG||Q.controlsType==="3"?!1:g.Qh?Q.D&&g.pr(48):g.pr(38))||(Q.deviceIsAudioOnly||!g.jN||wG||Q.controlsType==="3"?!1:g.Qh?Q.D&&g.pr(37):g.pr(27))||!Q.deviceIsAudioOnly&&g.Tt&&!IR6()&&g.pr(11)||!Q.deviceIsAudioOnly&&g.Ga&&g.pr("604.4")}; y2u=function(Q){if(g.AE(Q)&&JE)return!1;if(g.ak){if(!g.pr(47)||!g.pr(52)&&g.pr(51))return!1}else if(g.Ga)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; MpJ=function(Q,z){return Q.enabledEngageTypes.has(z.toString())||qvJ.includes(z)}; ol=function(Q){return Q.yl==="detailpage"}; g.AE=function(Q){return Q.yl==="embedded"}; lf=function(Q){return Q.yl==="leanback"}; O8=function(Q){return Q.yl==="adunit"||Q.playerStyle==="gvn"}; g.rm=function(Q){return Q.yl==="profilepage"}; g.xh=function(Q){return Q.D&&g.AE(Q)&&!O8(Q)&&!Q.j}; Rl=function(Q){if(!Q.userDisplayImage)return"";var z=Q.userDisplayImage.split("/");if(z.length===5)return Q=z[z.length-1].split("="),Q[1]="s20-c",z[z.length-1]=Q.join("="),z.join("/");if(z.length===8)return z.splice(7,0,"s20-c"),z.join("/");if(z.length===9)return z[7]+="-s20-c",z.join("/");g.PT(new g.wD("Profile image not a FIFE URL.",Q.userDisplayImage));return Q.userDisplayImage}; g.Qc=function(Q){var z=g.W0(Q);CBZ.includes(z)&&(z="www.youtube.com");return Q.protocol+"://"+z}; g.zZ=function(Q,z){z=z===void 0?"":z;if(Q.eN){var H=new k6,f,b=Q.eN();b.signedOut?f="":b.token?f=b.token:b.pendingResult.then(function(L){b.signedOut?H.resolve(""):H.resolve(L.token)},function(L){g.PT(new g.wD("b189348328_oauth_callback_failed",{error:L})); H.resolve(z)}); return f!==void 0?B2(f):new rR(H)}return B2(z)}; HV=function(Q,z){z=z===void 0?"":z;return Q.WY?SJ(!0):CE(M1(SJ(g.zZ(Q,z)),function(H){return SJ(!!H)}),function(){return SJ(!1)})}; P0=function(Q){var z=g.c4(Q);return(Q=Number(g.UE(4,Q))||null)?z+":"+Q:z}; fv=function(Q,z){z=z===void 0?!1:z;var H=Wt[Q],f=tpu[H],b=EE_[Q];if(!b||!f)return null;z=new ct(z?b.height:b.width,z?b.width:b.height,b.fps);f=yG(f,z,H);return new DU(Q,f,{video:z,oi:b.bitrate/8})}; nEA=function(Q){var z=tpu[Wt[Q]],H=pZA[Q];return H&&z?new DU(Q,z,{audio:new Pt(H.audioSampleRate,H.numChannels)}):null}; bF=function(Q){this.Z=Q}; Lv=function(Q,z,H,f){if(H)return sM();H={};var b=NC();z=g.n(z);for(var L=z.next();!L.done;L=z.next())if(L=L.value,Q.canPlayType(b,L.getInfo().mimeType)||f){var u=L.Z.video.quality;if(!H[u]||H[u].getInfo().rV())H[u]=L}Q=[];H.auto&&Q.push(H.auto);f=g.n(ia);for(b=f.next();!b.done;b=f.next())(b=H[b.value])&&Q.push(b);return Q.length?B2(Q):sM()}; gEA=function(Q){this.itag=Q.itag;this.url=Q.url;this.codecs=Q.codecs;this.width=Q.width;this.height=Q.height;this.fps=Q.fps;this.bitrate=Q.bitrate;var z;this.B=((z=Q.audioItag)==null?void 0:z.split(","))||[];this.g$=Q.g$;this.AM=Q.AM||"";this.Ii=Q.Ii;this.audioChannels=Q.audioChannels;this.Z=""}; Z69=function(Q,z,H,f){z=z===void 0?!1:z;H=H===void 0?!0:H;f=f===void 0?{}:f;var b={};Q=g.n(Q);for(var L=Q.next();!L.done;L=Q.next()){L=L.value;if(z&&MediaSource&&MediaSource.isTypeSupported){var u=L.type;L.audio_channels&&(u=u+"; channels="+L.audio_channels);if(!MediaSource.isTypeSupported(u)){f[L.itag]="tpus";continue}}if(H||!L.drm_families||L.eotf!=="smpte2084"&&L.eotf!=="arib-std-b67"){u=void 0;var X={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},v=L.type.match(/codecs="([^"]*)"/); v=v?v[1]:"";L.audio_track_id&&(u=new g.bD(L.name,L.audio_track_id,!!L.is_default));var y=L.eotf;L=new gEA({itag:L.itag,url:L.url,codecs:v,width:Number(L.width),height:Number(L.height),fps:Number(L.fps),bitrate:Number(L.bitrate),audioItag:L.audio_itag,g$:y?X[y]:void 0,AM:L.drm_families,Ii:u,audioChannels:Number(L.audio_channels)});b[L.itag]=b[L.itag]||[];b[L.itag].push(L)}else f[L.itag]="enchdr"}return b}; GTZ=function(Q,z,H,f,b){this.L=Q;this.B=z;this.S=H;this.cpn=f;this.j=b;this.D=0;this.Z=""}; $Mu=function(Q,z){Q.L.some(function(H){var f;return((f=H.Ii)==null?void 0:f.getId())===z}); Q.Z=z}; uF=function(Q,z,H){Q.cpn&&(z=g.Ve(z,{cpn:Q.cpn}));H&&(z=g.Ve(z,{paired:H}));return z}; j9J=function(Q,z){Q=Q.itag.toString();z!==null&&(Q+=z.itag.toString());return Q}; F9Y=function(Q){for(var z=[],H=[],f=g.n(Q.B),b=f.next();!b.done;b=f.next())b=b.value,b.bitrate<=Q.D?z.push(b):H.push(b);z.sort(function(L,u){return u.bitrate-L.bitrate}); H.sort(function(L,u){return L.bitrate-u.bitrate}); Q.B=z.concat(H)}; Sw=function(Q,z,H){this.Z=Q;this.B=z;this.expiration=H;this.Mz=null}; xMY=function(Q,z){if(!(wG||k7()||mW()))return null;Q=Z69(z,Q.V("html5_filter_fmp4_in_hls"));if(!Q)return null;z=[];for(var H={},f=g.n(Object.keys(Q)),b=f.next();!b.done;b=f.next()){b=g.n(Q[b.value]);for(var L=b.next();!L.done;L=b.next()){var u=L.value;u.Ii&&(L=u.Ii.getId(),H[L]||(u=new g.RA(L,u.Ii),H[L]=u,z.push(u)))}}return z.length>0?z:null}; Iiu=function(Q,z,H,f,b,L,u){if(!(wG||k7()||mW()))return sM();var X={},v=O6L(H),y=Z69(H,Q.V("html5_filter_fmp4_in_hls"),Q.S.Y,X);if(!y)return u({noplst:1}),sM();oE8(y);H={};var q=(H.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",H),M;H=[];var C=[],t=[],E=null,G="";f=f&&f.match(/hls_timedtext_playlist/)?new gEA({itag:"0",url:f,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,Ii:new g.bD("English","en",!1)}):null;for(var x=g.n(Object.keys(y)),J=x.next();!J.done;J=x.next())if(J=J.value,!Q.V("html5_disable_drm_hfr_1080")|| J!=="383"&&J!=="373"){J=g.n(y[J]);for(var I=J.next();!I.done;I=J.next())if(I=I.value,I.width){for(var r=g.n(I.B),U=r.next();!U.done;U=r.next())if(U=U.value,y[U]){I.Z=U;break}I.Z||(I.Z=J2A(y,I));if(r=y[I.Z])if(H.push(I),I.AM==="fairplay"&&(M=q),U="",I.g$==="PQ"?U="smpte2084":I.g$==="HLG"&&(U="arib-std-b67"),U&&(G=U),t.push(N0Z(r,[I],f,L,I.itag,I.width,I.height,I.fps,v,void 0,void 0,M,U)),!E||I.width*I.height*I.fps>E.width*E.height*E.fps)E=I}else C.push(I)}else X[J]="disdrmhfr";t.reduce(function(D, T){return T.getInfo().isEncrypted()&&D},!0)&&(M=q); b=Math.max(b,0);q=E||{};y=q.fps===void 0?0:q.fps;E=q.width===void 0?0:q.width;q=q.height===void 0?0:q.height;x=Q.V("html5_native_audio_track_switching");t.push(N0Z(C,H,f,L,"93",E,q,y,v,"auto",b,M,G,x));Object.entries(X).length&&u(X);return Lv(Q.S,t,hE(Q,z),!1)}; N0Z=function(Q,z,H,f,b,L,u,X,v,y,q,M,C,t){for(var E=0,G="",x=g.n(Q),J=x.next();!J.done;J=x.next())J=J.value,G||(G=J.itag),J.audioChannels&&J.audioChannels>E&&(E=J.audioChannels,G=J.itag);b=new DU(b,"application/x-mpegURL",{audio:new Pt(0,E),video:new ct(L,u,X,null,void 0,y,void 0,C),AM:M,Q7:G});Q=new GTZ(Q,z,H?[H]:[],f,!!t);Q.D=q?q:1369843;return new Sw(b,Q,v)}; O6L=function(Q){Q=g.n(Q);for(var z=Q.next();!z.done;z=Q.next())if(z=z.value,z.url&&(z=z.url.split("expire/"),!(z.length<=1)))return+z[1].split("/")[0];return NaN}; J2A=function(Q,z){for(var H=g.n(Object.keys(Q)),f=H.next();!f.done;f=H.next()){f=f.value;var b=Q[f][0];if(!b.width&&b.AM===z.AM&&!b.audioChannels)return f}return""}; oE8=function(Q){for(var z=new Set,H=g.n(Object.values(Q)),f=H.next();!f.done;f=H.next())f=f.value,f.length&&(f=f[0],f.height&&f.codecs.startsWith("vp09")&&z.add(f.height));H=[];if(z.size){f=g.n(Object.keys(Q));for(var b=f.next();!b.done;b=f.next())if(b=b.value,Q[b].length){var L=Q[b][0];L.height&&z.has(L.height)&&!L.codecs.startsWith("vp09")&&H.push(b)}}z=g.n(H);for(H=z.next();!H.done;H=z.next())delete Q[H.value]}; vV=function(Q,z){this.Z=Q;this.B=z}; A2c=function(Q,z,H,f){var b=[];H=g.n(H);for(var L=H.next();!L.done;L=H.next()){var u=L.value;if(u.url){L=new g.ZM(u.url,!0);if(u.s){var X=L,v=u.sp,y=N4a(decodeURIComponent(u.s));X.set(v,encodeURIComponent(y))}X=g.n(Object.keys(f));for(v=X.next();!v.done;v=X.next())v=v.value,L.set(v,f[v]);u=Hs(u.type,u.quality,u.itag,u.width,u.height);b.push(new vV(u,L))}}return Lv(Q.S,b,hE(Q,z),!1)}; yc=function(Q,z){this.Z=Q;this.B=z}; Yvn=function(Q,z,H){var f=[];H=g.n(H);for(var b=H.next();!b.done;b=H.next())if((b=b.value)&&b.url){var L=Hs(b.type,"medium","0");f.push(new yc(L,b.url))}return Lv(Q.S,f,hE(Q,z),!1)}; r2L=function(Q,z){var H=[],f=Hs(z.type,"auto",z.itag);H.push(new yc(f,z.url));return Lv(Q.S,H,!1,!0)}; B09=function(Q){return Q&&s9J[Q]?s9J[Q]:null}; PBZ=function(Q){if(Q=Q.commonConfig)this.url=Q.url,this.urlQueryOverride=Q.urlQueryOverride,Q.ustreamerConfig&&(this.VO=fo(Q.ustreamerConfig)||void 0)}; aip=function(Q,z){var H;if(z=z==null?void 0:(H=z.watchEndpointSupportedOnesieConfig)==null?void 0:H.html5PlaybackOnesieConfig)Q.KS=new PBZ(z)}; g.qG=function(Q){Q=Q===void 0?{}:Q;this.languageCode=Q.languageCode||"";this.languageName=Q.languageName||null;this.kind=Q.kind||"";this.name=Q.name===void 0?null:Q.name;this.displayName=Q.displayName||null;this.id=Q.id||null;this.Z=Q.is_servable||!1;this.isTranslateable=Q.is_translateable||!1;this.url=Q.url||null;this.vssId=Q.vss_id||"";this.isDefault=Q.is_default||!1;this.translationLanguage=Q.translationLanguage||null;this.xtags=Q.xtags||"";this.captionId=Q.captionId||""}; g.Cv=function(Q){var z={languageCode:Q.languageCode,languageName:Q.languageName,displayName:g.MG(Q),kind:Q.kind,name:Q.name,id:Q.id,is_servable:Q.Z,is_default:Q.isDefault,is_translateable:Q.isTranslateable,vss_id:Q.vssId};Q.xtags&&(z.xtags=Q.xtags);Q.captionId&&(z.captionId=Q.captionId);Q.translationLanguage&&(z.translationLanguage=Q.translationLanguage);return z}; g.th=function(Q){return Q.translationLanguage?Q.translationLanguage.languageCode:Q.languageCode}; g.UMA=function(Q){var z=Q.vssId;Q.translationLanguage&&z&&(z="t"+z+"."+g.th(Q));return z}; g.MG=function(Q){var z=[];if(Q.displayName)z.push(Q.displayName);else{var H=Q.languageName||"";z.push(H);Q.kind==="asr"&&H.indexOf("(")===-1&&z.push(" (Automatic Captions)");Q.name&&z.push(" - "+Q.name)}Q.translationLanguage&&z.push(" >> "+Q.translationLanguage.languageName);return z.join("")}; W9_=function(Q,z,H,f){Q||(Q=z&&c2Y.hasOwnProperty(z)&&i6a.hasOwnProperty(z)?i6a[z]+"_"+c2Y[z]:void 0);z=Q;if(!z)return null;Q=z.match(hcu);if(!Q||Q.length!==5)return null;if(Q=z.match(hcu)){var b=Number(Q[3]),L=[7,8,10,5,6];Q=!(Number(Q[1])===1&&b===8)&&L.indexOf(b)>=0}else Q=!1;return H||f||Q?z:null}; Es=function(Q,z){for(var H={},f=g.n(Object.keys(DMc)),b=f.next();!b.done;b=f.next()){b=b.value;var L=z?z+b:b;L=Q[L+"_webp"]||Q[L];g.RT(L)&&(H[DMc[b]]=L)}return H}; pv=function(Q){var z={};if(!Q||!Q.thumbnails)return z;Q=Q.thumbnails.filter(function(X){return!!X.url}); Q.sort(function(X,v){return X.width-v.width||X.height-v.height}); for(var H=g.n(Object.keys(K9c)),f=H.next();!f.done;f=H.next()){var b=Number(f.value);f=K9c[b];for(var L=g.n(Q),u=L.next();!u.done;u=L.next())if(u=u.value,u.width>=b){b=VpJ(u.url);g.RT(b)&&(z[f]=b);break}}(Q=Q.pop())&&Q.width>=1280&&(Q=VpJ(Q.url),g.RT(Q)&&(z["maxresdefault.jpg"]=Q));return z}; VpJ=function(Q){return Q.startsWith("//")?"https:"+Q:Q}; nv=function(Q){return Q&&Q.baseUrl||""}; gr=function(Q){Q=g.uv(Q);for(var z=g.n(Object.keys(Q)),H=z.next();!H.done;H=z.next()){H=H.value;var f=Q[H];Q[H]=Array.isArray(f)?f[0]:f}return Q}; dMn=function(Q,z){Q.botguardData=z.playerAttestationRenderer.botguardData;z=z.playerAttestationRenderer.challenge;z!=null&&(Q.iF=z)}; kTu=function(Q,z){z=g.n(z);for(var H=z.next();!H.done;H=z.next()){H=H.value;var f=H.interstitials.map(function(u){var X=g.K(u,mM8);if(X)return{is_yto_interstitial:!0,raw_player_response:X};if(u=g.K(u,wZJ))return Object.assign({is_yto_interstitial:!0},bv(u))}); f=g.n(f);for(var b=f.next();!b.done;b=f.next())switch(b=b.value,H.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":Q.interstitials=Q.interstitials.concat({time:0,playerVars:b,A_:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":Q.interstitials=Q.interstitials.concat({time:0x7ffffffffffff,playerVars:b,A_:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var L=Number(H.podConfig.timeToInsertAtMillis);Q.interstitials=Q.interstitials.concat({time:L,playerVars:b, A_:L===0?5:7})}}}; T0Y=function(Q,z){if(z=z.find(function(H){return!(!H||!H.tooltipRenderer)}))Q.tooltipRenderer=z.tooltipRenderer}; ec9=function(Q,z){z.subscribeCommand&&(Q.subscribeCommand=z.subscribeCommand);z.unsubscribeCommand&&(Q.unsubscribeCommand=z.unsubscribeCommand);z.addToWatchLaterCommand&&(Q.addToWatchLaterCommand=z.addToWatchLaterCommand);z.removeFromWatchLaterCommand&&(Q.removeFromWatchLaterCommand=z.removeFromWatchLaterCommand);z.getSharePanelCommand&&(Q.getSharePanelCommand=z.getSharePanelCommand)}; li_=function(Q,z){z!=null?(Q.H0=z,Q.gV=!0):(Q.H0="",Q.gV=!1)}; Z1=function(Q,z){this.type=Q||"";this.id=z||""}; g.GZ=function(Q){return new Z1(Q.substring(0,2),Q.substring(2))}; g.$a=function(Q,z){this.aj=Q;this.author="";this.wv=null;this.playlistLength=0;this.Z=this.sessionData=null;this.U={};this.title="";if(z){this.author=z.author||z.playlist_author||"";this.title=z.playlist_title||"";if(Q=z.session_data)this.sessionData=H2(Q,"&");var H;this.Z=((H=z.thumbnail_ids)==null?void 0:H.split(",")[0])||null;this.U=Es(z,"playlist_");this.videoId=z.video_id||void 0;if(H=z.list)switch(z.listType){case "user_uploads":this.playlistId=(new Z1("UU","PLAYER_"+H)).toString();break;default:if(Q= z.playlist_length)this.playlistLength=Number(Q)||0;this.playlistId=g.GZ(H).toString();if(z=z.video)this.videoId=(z[0]||null).video_id||void 0}else z.playlist&&(this.playlistLength=z.playlist.toString().split(",").length)}}; g.jw=function(Q,z){this.aj=Q;this.SZ=this.author="";this.wv=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.VW=this.lengthText="";this.sessionData=null;this.U={};this.title="";if(z){this.ariaLabel=z.aria_label||void 0;this.author=z.author||"";this.SZ=z.SZ||"";if(Q=z.endscreen_autoplay_session_data)this.wv=H2(Q,"&");this.Pd=z.Pd;this.isLivePlayback=z.live_playback==="1";this.isUpcoming=!!z.isUpcoming;if(Q=z.length_seconds)this.lengthSeconds=typeof Q==="string"?Number(Q):Q;this.lengthText= z.lengthText||"";this.VW=z.VW||"";this.publishedTimeText=z.publishedTimeText||void 0;if(Q=z.session_data)this.sessionData=H2(Q,"&");this.shortViewCount=z.short_view_count_text||void 0;this.U=Es(z);this.title=z.title||"";this.videoId=z.docid||z.video_id||z.videoId||z.id||void 0;this.watchUrl=z.watchUrl||void 0}}; Rc8=function(Q){var z,H,f=(z=Q.getWatchNextResponse())==null?void 0:(H=z.contents)==null?void 0:H.twoColumnWatchNextResults,b,L,u,X,v;Q=(b=Q.getWatchNextResponse())==null?void 0:(L=b.playerOverlays)==null?void 0:(u=L.playerOverlayRenderer)==null?void 0:(X=u.endScreen)==null?void 0:(v=X.watchNextEndScreenRenderer)==null?void 0:v.results;if(!Q){var y,q;Q=f==null?void 0:(y=f.endScreen)==null?void 0:(q=y.endScreen)==null?void 0:q.results}return Q}; g.xa=function(Q){var z,H,f;Q=g.K((z=Q.getWatchNextResponse())==null?void 0:(H=z.playerOverlays)==null?void 0:(f=H.playerOverlayRenderer)==null?void 0:f.decoratedPlayerBarRenderer,FR);return g.K(Q==null?void 0:Q.playerBar,QVa)}; zKu=function(Q){this.Z=Q.playback_progress_0s_url;this.L=Q.playback_progress_2s_url;this.B=Q.playback_progress_10s_url}; HYL=function(){if(Os===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(z){}a:{try{var Q=!!self.localStorage}catch(z){Q=!1}if(Q&&(Q=g.UF(g.kQ()+"::yt-player"))){Os=new hT(Q);break a}Os=void 0}}return Os}; g.oZ=function(){var Q=HYL();if(!Q)return{};try{var z=Q.get("yt-player-lv");return JSON.parse(z||"{}")}catch(H){return{}}}; g.fqA=function(Q){var z=HYL();z&&(Q=JSON.stringify(Q),z.set("yt-player-lv",Q))}; g.Jh=function(Q){return g.oZ()[Q]||0}; g.NG=function(Q,z){var H=g.oZ();z!==H[Q]&&(z!==0?H[Q]=z:delete H[Q],g.fqA(H))}; g.IZ=function(Q){return g.B(function(z){return z.return(g.V5(bYc(),Q))})}; Ya=function(Q,z,H,f,b,L,u,X){var v,y,q,M,C,t;return g.B(function(E){switch(E.Z){case 1:return v=g.Jh(Q),v===4?E.return(4):g.Y(E,g.RE(),2);case 2:y=E.B;if(!y)throw g.j9("wiac");if(!X||u===void 0){E.bT(3);break}return g.Y(E,LeY(X,u),4);case 4:u=E.B;case 3:return q=H.lastModified||"0",g.Y(E,g.IZ(y),5);case 5:return M=E.B,g.$v(E,6),Ah++,g.Y(E,g.rG(M,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",VE:!0},function(G){if(L!==void 0&&u!==void 0){var x=""+Q+"|"+z.id+"|"+q+"|"+String(L).padStart(10, "0");x=g.se(G.objectStore("media"),u,x)}else x=g.xw.resolve(void 0);var J=u4u(Q,z.rQ()),I=u4u(Q,!z.rQ()),r={fmts:Syc(f),format:H||{}};J=g.se(G.objectStore("index"),r,J);var U=f.downloadedEndTime===-1;r=U?G.objectStore("index").get(I):g.xw.resolve(void 0);var D={fmts:"music",format:{}};G=U&&b&&!z.rQ()?g.se(G.objectStore("index"),D,I):g.xw.resolve(void 0);return g.xw.all([G,r,x,J]).then(function(T){T=g.n(T);T.next();T=T.next().value;Ah--;var k=g.Jh(Q);if(k!==4&&U&&b||T!==void 0&&g.Xcp(T.fmts))k=1,g.NG(Q, k);return k})}),8); case 8:return E.return(E.B);case 6:C=g.xv(E);Ah--;t=g.Jh(Q);if(t===4)return E.return(t);g.NG(Q,4);throw C;}})}; g.vNn=function(Q){var z,H;return g.B(function(f){if(f.Z==1)return g.Y(f,g.RE(),2);if(f.Z!=3){z=f.B;if(!z)throw g.j9("ri");return g.Y(f,g.IZ(z),3)}H=f.B;return f.return(g.rG(H,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(b){var L=IDBKeyRange.bound(Q+"|",Q+"~");return b.objectStore("index").getAll(L).then(function(u){return u.map(function(X){return X?X.format:{}})})}))})}; qy9=function(Q,z,H,f,b){var L,u,X;return g.B(function(v){if(v.Z==1)return g.Y(v,g.RE(),2);if(v.Z!=3){L=v.B;if(!L)throw g.j9("rc");return g.Y(v,g.IZ(L),3)}u=v.B;X=g.rG(u,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(y){var q=""+Q+"|"+z+"|"+H+"|"+String(f).padStart(10,"0");return y.objectStore("media").get(q)}); return b?v.return(X.then(function(y){if(y===void 0)throw Error("No data from indexDb");return yA6(b,y)}).catch(function(y){throw new g.wD("Error while reading chunk: "+y.name+", "+y.message); })):v.return(X)})}; g.Xcp=function(Q){return Q?Q==="music"?!0:Q.includes("dlt=-1")||!Q.includes("dlt="):!1}; u4u=function(Q,z){return""+Q+"|"+(z?"v":"a")}; Syc=function(Q){var z={};return f1((z.dlt=Q.downloadedEndTime.toString(),z.mket=Q.maxKnownEndTime.toString(),z.avbr=Q.averageByteRate.toString(),z))}; Cgn=function(Q){var z={},H={};Q=g.n(Q);for(var f=Q.next();!f.done;f=Q.next()){var b=f.value,L=b.split("|");b.match(g.MGZ)?(f=Number(L.pop()),isNaN(f)?H[b]="?":(L=L.join("|"),(b=z[L])?(L=b[b.length-1],f===L.end+1?L.end=f:b.push({start:f,end:f})):z[L]=[{start:f,end:f}])):H[b]="?"}Q=g.n(Object.keys(z));for(f=Q.next();!f.done;f=Q.next())f=f.value,H[f]=z[f].map(function(u){return u.start+"-"+u.end}).join(","); return H}; rr=function(Q){g.Xp.call(this);this.Z=null;this.L=new WO;this.Z=null;this.j=new Set;this.crossOrigin=Q||""}; tGn=function(Q,z,H){for(H=BV(Q,H);H>=0;){var f=Q.levels[H];if(f.isLoaded(PV(f,z))&&(f=g.aZ(f,z)))return f;H--}return g.aZ(Q.levels[0],z)}; pcc=function(Q,z,H){H=BV(Q,H);for(var f,b;H>=0;H--)if(f=Q.levels[H],b=PV(f,z),!f.isLoaded(b)){f=Q;var L=H,u=L+"-"+b;f.j.has(u)||(f.j.add(u),f.L.enqueue(L,{Jq:L,k5:b}))}ENL(Q)}; ENL=function(Q){if(!Q.Z&&!Q.L.isEmpty()){var z=Q.L.remove();Q.Z=nNv(Q,z)}}; nNv=function(Q,z){var H=document.createElement("img");Q.crossOrigin&&(H.crossOrigin=Q.crossOrigin);H.src=Q.levels[z.Jq].mM(z.k5);H.onload=function(){var f=z.Jq,b=z.k5;Q.Z!==null&&(Q.Z.onload=null,Q.Z=null);f=Q.levels[f];f.loaded.add(b);ENL(Q);var L=f.columns*f.rows;b*=L;f=Math.min(b+L-1,f.H6()-1);b=[b,f];Q.publish("l",b[0],b[1])}; return H}; g.Us=function(Q,z,H,f){this.level=Q;this.D=z;this.loaded=new Set;this.level=Q;this.D=z;Q=H.split("#");this.width=Math.floor(Number(Q[0]));this.height=Math.floor(Number(Q[1]));this.frameCount=Math.floor(Number(Q[2]));this.columns=Math.floor(Number(Q[3]));this.rows=Math.floor(Number(Q[4]));this.Z=Math.floor(Number(Q[5]));this.L=Q[6];this.signature=Q[7];this.videoLength=f}; PV=function(Q,z){return Math.floor(z/(Q.columns*Q.rows))}; g.aZ=function(Q,z){z>=Q.UC()&&Q.qT();var H=PV(Q,z),f=Q.columns*Q.rows,b=z%f;z=b%Q.columns;b=Math.floor(b/Q.columns);var L=Q.qT()+1-f*H;if(L1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; gNc=function(Q,z,H){return(Q=Q.levels[z])?Q.iK(H):-1}; BV=function(Q,z){var H=Q.D.get(z);if(H)return H;H=Q.levels.length;for(var f=0;f=z)return Q.D.set(z,f),f;Q.D.set(z,H-1);return H-1}; iF=function(Q,z,H,f){H=H.split("#");H=[H[1],H[2],0,H[3],H[4],-1,H[0],""].join("#");g.Us.call(this,Q,z,H,0);this.B=null;this.S=f?2:0}; hh=function(Q,z,H,f){cV.call(this,Q,0,void 0,z,!(f===void 0||!f));for(Q=0;Q(H!=null?H:50)&&(H=JAA.shift())&&wr.delete(H),H=b),b!==H&&Q.b3("ssei","dcpn_"+b+"_"+H+"_"+Q.clientPlaybackNonce),H)}; Vc=function(Q,z){var H=z.raw_watch_next_response;if(!H){var f=z.watch_next_response;f&&(H=JSON.parse(f))}if(H){Q.mq=H;var b=Q.mq.playerCueRangeSet;b&&g.ka(Q,b);var L=Q.mq.playerOverlays;if(L){var u=L.playerOverlayRenderer;if(u){var X=u.autonavToggle;X&&(Q.autoplaySwitchButtonRenderer=g.K(X,NgA),Q.V("web_player_autonav_use_server_provided_state")&&TZ(Q)&&(Q.autonavState=Q.autoplaySwitchButtonRenderer.enabled?2:1));var v=u.videoDetails;if(v){var y=v.embeddedPlayerOverlayVideoDetailsRenderer;var q=v.playerOverlayVideoDetailsRenderer; q&&(q.title&&(z.title=g.pa(q.title)),q.subtitle&&(z.subtitle=g.pa(q.subtitle)))}g.AE(Q.aj)&&(Q.QN=!!u.addToMenu);Iq9(Q,u.shareButton);u.startPosition&&u.endPosition&&(Q.progressBarStartPosition=u.startPosition,Q.progressBarEndPosition=u.endPosition);var M=u.gatedActionsOverlayRenderer;M&&(Q.St=g.K(M,AAZ));var C,t,E,G=g.K((C=Q.getWatchNextResponse())==null?void 0:(t=C.playerOverlays)==null?void 0:(E=t.playerOverlayRenderer)==null?void 0:E.infoPanel,Yyk);if(G){Q.o8=Number(G==null?void 0:G.durationMs)|| NaN;if(G==null?0:G.infoPanelOverviewViewModel)Q.sj=G==null?void 0:G.infoPanelOverviewViewModel;if(G==null?0:G.infoPanelDetailsViewModel)Q.Uu=G==null?void 0:G.infoPanelDetailsViewModel}Q.showSeekingControls=!!u.showSeekingControls}}var x,J,I=(x=Q.getWatchNextResponse())==null?void 0:(J=x.contents)==null?void 0:J.twoColumnWatchNextResults;if(I){var r=I.desktopOverlay&&g.K(I.desktopOverlay,rAu);r&&(r.suppressShareButton&&(Q.showShareButton=!1),r.suppressWatchLaterButton&&(Q.QN=!1))}y&&sV_(Q,z,y);var U= uh(0,z.autoplay_count),D=Q.getWatchNextResponse(),T,k=(T=D.contents)==null?void 0:T.twoColumnWatchNextResults,bL,SY,Q9,V=(bL=D.playerOverlays)==null?void 0:(SY=bL.playerOverlayRenderer)==null?void 0:(Q9=SY.autoplay)==null?void 0:Q9.playerOverlayAutoplayRenderer,R=Rc8(Q),Z,d=(Z=D.contents)==null?void 0:Z.singleColumnWatchNextResults;if(d){var h8;if(((h8=d.autoplay)==null?0:h8.autoplay)&&!d.playlist){var $O=d.autoplay.autoplay.sets,Cs={},J8=new g.jw(Q.C()),eY=null,Ls;if($O){for(var ps=g.n($O),O=ps.next();!O.done;O= ps.next()){var N=O.value.autoplayVideoRenderer;if(N&&N.compactVideoRenderer){eY=N.compactVideoRenderer;break}}if(Ls=$O[0].autoplayVideo){var A=Ls.clickTrackingParams;A&&(Cs.itct=A);Cs.autonav="1";Cs.playnext=String(U)}}else Cs.feature="related-auto";var P=g.K(Ls,g.ew);if(eY){J8.videoId=eY.videoId;var c=eY.shortBylineText;c&&(J8.author=g.pa(c));var zu=eY.title;zu&&(J8.title=g.pa(zu))}else P!=null&&P.videoId&&(J8.videoId=P.videoId);J8.wv=Cs;Q.suggestions=[];Q.o_=J8}}if(R){for(var Ln=[],uL=g.n(R),a= uL.next();!a.done;a=uL.next()){var qk=a.value,pn=void 0,v_=null;if(qk.endScreenVideoRenderer){var Yv=qk.endScreenVideoRenderer,tt=Yv.title;v_=new g.jw(Q.C());v_.videoId=Yv.videoId;v_.lengthSeconds=Yv.lengthInSeconds||0;var cu=Yv.publishedTimeText;cu&&(v_.publishedTimeText=g.pa(cu));var Cr=Yv.shortBylineText;Cr&&(v_.author=g.pa(Cr));var V9=Yv.shortViewCountText;V9&&(v_.shortViewCount=g.pa(V9));if(tt){v_.title=g.pa(tt);var hC=tt.accessibility;if(hC){var vq=hC.accessibilityData;vq&&vq.label&&(v_.ariaLabel= vq.label)}}var s7=Yv.navigationEndpoint;if(s7){pn=s7.clickTrackingParams;var wa=g.K(s7,g.ew),qz=g.K(s7,g.Uc);wa?v_.Pd=wa:qz!=null&&(v_.watchUrl=qz.url)}var mU=Yv.thumbnailOverlays;if(mU)for(var WY=g.n(mU),wf=WY.next();!wf.done;wf=WY.next()){var FU=wf.value.thumbnailOverlayTimeStatusRenderer;if(FU)if(FU.style==="LIVE"){v_.isLivePlayback=!0;break}else if(FU.style==="UPCOMING"){v_.isUpcoming=!0;break}}v_.U=pv(Yv.thumbnail)}else if(qk.endScreenPlaylistRenderer){var Mz=qk.endScreenPlaylistRenderer,sE= Mz.navigationEndpoint;if(!sE)continue;var tn=g.K(sE,g.ew);if(!tn)continue;var B4=tn.videoId;v_=new g.$a(Q.C());v_.playlistId=Mz.playlistId;v_.playlistLength=Number(Mz.videoCount)||0;v_.Z=B4||null;v_.videoId=B4;var PQ=Mz.title;PQ&&(v_.title=g.pa(PQ));var a2=Mz.shortBylineText;a2&&(v_.author=g.pa(a2));pn=sE.clickTrackingParams;v_.U=pv(Mz.thumbnail)}v_&&(pn&&(v_.sessionData={itct:pn}),Ln.push(v_))}Q.suggestions=Ln}if(V){Q.Cs=!!V.preferImmediateRedirect;Q.Ci=Q.Ci||!!V.webShowNewAutonavCountdown;Q.xr= Q.xr||!!V.webShowBigThumbnailEndscreen;if(Q.Ci||Q.xr){var I6=k||null,RG=new g.jw(Q.C());RG.videoId=V.videoId;var kZ=V.videoTitle;if(kZ){RG.title=g.pa(kZ);var fr=kZ.accessibility;if(fr){var xW=fr.accessibilityData;xW&&xW.label&&(RG.ariaLabel=xW.label)}}var W5=V.byline;W5&&(RG.author=g.pa(W5));var tC=V.publishedTimeText;tC&&(RG.publishedTimeText=g.pa(tC));var jP=V.shortViewCountText;jP&&(RG.shortViewCount=g.pa(jP));var F$=V.thumbnailOverlays;if(F$)for(var x6=g.n(F$),X7=x6.next();!X7.done;X7=x6.next()){var yY= X7.value.thumbnailOverlayTimeStatusRenderer;if(yY)if(yY.style==="LIVE"){RG.isLivePlayback=!0;break}else if(yY.style==="UPCOMING"){RG.isUpcoming=!0;break}else if(yY.style==="DEFAULT"&&yY.text){RG.lengthText=g.pa(yY.text);var vC=yY.text.accessibility;if(vC){var yv=vC.accessibilityData;yv&&yv.label&&(RG.VW=yv.label||"")}break}}RG.U=pv(V.background);var OU=V.nextButton;if(OU){var om=OU.buttonRenderer;if(om){var Ja=om.navigationEndpoint;if(Ja){var N6=g.K(Ja,g.ew);N6&&(RG.Pd=N6)}}}if(V.topBadges){var Im= V.topBadges[0];if(Im){var Aa=g.K(Im,Bgc);Aa&&Aa.style==="BADGE_STYLE_TYPE_PREMIUM"&&(RG.kZl=!0)}}var Vt=V.alternativeTitle;Vt&&(RG.SZ=g.pa(Vt));var O4={autonav:"1",playnext:String(U)};RG.playlistId&&(O4.autoplay="1");if(I6){var di,ks,qq,Y6,Mq=(di=I6.autoplay)==null?void 0:(ks=di.autoplay)==null?void 0:(qq=ks.sets)==null?void 0:(Y6=qq[0])==null?void 0:Y6.autoplayVideo;if(Mq){var rp=Mq.clickTrackingParams;rp&&(O4.itct=rp);var Cj=g.K(Mq,g.ew);Cj&&(RG.aM=Cj)}}else if(V){var sU,Bs,Ps,am=(sU=V.nextButton)== null?void 0:(Bs=sU.buttonRenderer)==null?void 0:(Ps=Bs.navigationEndpoint)==null?void 0:Ps.clickTrackingParams;am&&(O4.itct=am)}O4.itct||(O4.feature="related-auto");RG.wv=O4;Q.suggestions||(Q.suggestions=[]);Q.o_=RG}V.countDownSecs!=null&&(Q.uY=V.countDownSecs*1E3);V.countDownSecsForFullscreen!=null&&(Q.W_=V.countDownSecsForFullscreen>=0?V.countDownSecsForFullscreen*1E3:-1);Q.V("web_autonav_color_transition")&&V.watchToWatchTransitionRenderer&&(Q.watchToWatchTransitionRenderer=g.K(V.watchToWatchTransitionRenderer, PgL))}var tN=Rc8(Q);if(tN){var ji,UU,ES,pj=tN==null?void 0:(ji=tN[0])==null?void 0:(UU=ji.endScreenVideoRenderer)==null?void 0:(ES=UU.navigationEndpoint)==null?void 0:ES.clickTrackingParams,cs=g.lF(Q);pj&&cs&&(cs.sessionData={itct:pj})}Q.mq.currentVideoThumbnail&&(Q.U=pv(Q.mq.currentVideoThumbnail));var mj,iZ,ha,wi,Ws,Fd=(mj=Q.mq)==null?void 0:(iZ=mj.contents)==null?void 0:(ha=iZ.twoColumnWatchNextResults)==null?void 0:(wi=ha.results)==null?void 0:(Ws=wi.results)==null?void 0:Ws.contents;if(Fd&&Fd[1]){var DF, K3,JZ,j4,Ua=(DF=Fd[1].videoSecondaryInfoRenderer)==null?void 0:(K3=DF.owner)==null?void 0:(JZ=K3.videoOwnerRenderer)==null?void 0:(j4=JZ.thumbnail)==null?void 0:j4.thumbnails;Ua&&Ua.length&&(Q.profilePicture=Ua[Ua.length-1].url)}var VA=vw(z),nj,xC=(nj=Q.getWatchNextResponse())==null?void 0:nj.onResponseReceivedEndpoints;if(xC)for(var O5=g.n(xC),gE=O5.next();!gE.done;gE=O5.next()){var cQ=gE.value;g.K(cQ,RZ)&&(Q.Vo=g.K(cQ,RZ));var oW=g.K(cQ,aqv),dp=void 0;if((dp=oW)==null?0:dp.entityKeys)Q.Ss=oW.entityKeys|| [],oW.visibleOnLoadKeys&&(Q.visibleOnLoadKeys=oW.visibleOnLoadKeys)}if(Q.V("web_key_moments_markers")){var T_=g.Qt.getState().entities,M2=g.ed("visibility_override","markersVisibilityOverrideEntity");var DV=vX(T_,"markersVisibilityOverrideEntity",M2);Q.ZJ=(DV==null?void 0:DV.videoId)===(Q.videoId||VA)&&(DV==null?0:DV.visibilityOverrideMarkersKey)?DV.visibilityOverrideMarkersKey:Q.visibleOnLoadKeys;Q.visibleOnLoadKeys=[].concat(g.F(Q.ZJ))}}}; TZ=function(Q){var z;return((z=Q.autoplaySwitchButtonRenderer)==null?void 0:z.enabled)!==void 0}; z_=function(Q){return!!(Q.L&&Q.L.videoInfos&&Q.L.videoInfos.length)}; g.uE=function(Q){var z=Q.N;Q.V("html5_gapless_unlimit_format_selection")&&H7(Q)&&(z=!1);var H=!!Q.Z&&Q.Z.AZ,f=Q.aj,b=Q.vM(),L=f9(Q),u=Q.rT,X=z,v=Q.isOtf();z=Q.Nf();var y=Q.WI,q=Q.getUserAudio51Preference(),M=bE(Q),C=new yGJ(f);if(f.vz()||f.V("html5_logging_format_selection"))C.B=!0;C.iT=L;C.rT=u&&f.Y;C.f3=q;g.K1("windows nt 5.1")&&!g.ak&&(C.LP=!0);if(L=b)L=g.eN(f)?y2u(f):!1;L&&(C.wh=!0);X&&(C.LP=!0,C.gT=!0);v&&!f.V("html5_otf_prefer_vp9")&&(C.LP=!0);f.playerStyle==="picasaweb"&&(v&&(C.LP=!1),C.L3= !1);y&&(C.LP=!0);nu(f.S,g8.CHANNELS)&&(f.V("html5_enable_ac3")&&(C.D=!0),f.V("html5_enable_eac3")&&(C.S=!0),f.V("html5_enable_ac3_gapless")&&(C.jm=!0));f.V("html5_block_8k_hfr")&&(C.C3=!0);C.j=g.qf(f.experiments,"html5_max_selectable_quality_ordinal");C.Y=g.qf(f.experiments,"html5_min_selectable_quality_ordinal");$h&&(C.Wz=480);if(H||b)C.L3=!1;C.WI=!1;C.disableAv1=M;H=JQ(f,C.Z,void 0,C.disableAv1);H>0&&H<2160&&(EU()||f.V("html5_format_hybridization"))&&(C.Z.supportsChangeType=+EU(),C.zw=H);H>=2160&& (C.yl=!0);Uf_()&&(C.Z.serveVp9OverAv1IfHigherRes=0,C.ys=!1);C.Nf=z;C.En=g.kw||Hw()&&!z?!1:!0;C.N=f.V("html5_format_hybridization");C.yE=f.V("html5_disable_encrypted_vp9_live_non_2k_4k");L9(Q)&&(C.UY=Q.V("html5_prefer_language_over_codec"));mW()&&Q.playerResponse&&Q.playerResponse.playerConfig&&Q.playerResponse.playerConfig.webPlayerConfig&&Q.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(C.D=!0,C.S=!0);Q.N&&Q.isAd()&&(Q.WR&&(C.Ze=Q.WR),Q.R$&&(C.L=Q.R$));C.mq=Q.isLivePlayback&& Q.w7()&&Q.aj.V("html5_drm_live_audio_51");C.ZJ=Q.qW;return Q.YJ=C}; bE=function(Q){return Q.aj.V("html5_disable_av1")||Q.V("html5_gapless_shorts_disable_av1")&&H7(Q)?!0:!1}; UdJ=function(Q){ib("drm_pb_s",void 0,Q.En);Q.C3||Q.Z&&MB(Q.Z);var z={};Q.Z&&(z=TPY(Q.x9,g.uE(Q),Q.aj.S,Q.Z,function(H){return Q.publish("ctmp","fmtflt",H)},!0,new Set)); z=new Dn(z,Q.aj,Q.Lz,Q.useCobaltWidevine?mW()?Sn(Q):!1:!1,function(H,f){Q.On(H,f)}); g.W(Q,z);Q.h_=!1;Q.loading=!0;$v6(z,function(H){ib("drm_pb_f",void 0,Q.En);for(var f=g.n(H),b=f.next();!b.done;b=f.next())switch(b=b.value,b.flavor){case "fairplay":b.C3=Q.C3;b.pW=Q.pW;b.bu=Q.bu;break;case "widevine":b.Lt=Q.Lt}Q.nV=H;if(Q.nV.length>0&&(Q.S=Q.nV[0],Q.aj.vz())){H={};f=g.n(Object.entries(Q.S.Z));for(b=f.next();!b.done;b=f.next()){var L=g.n(b.value);b=L.next().value;L=L.next().value;var u="unk";(b=b.match(/(.*)codecs="(.*)"/))&&(u=b[2]);H[u]=L}Q.On("drmProbe",H)}Q.Az()})}; cAY=function(Q,z){if(z.length===0||XD(Q))return null;v7(Q,"html5_enable_cobalt_experimental_vp9_decoder")&&(xi=!0);var H=Q.AM;var f=Q.lengthSeconds,b=Q.isLivePlayback,L=Q.l8,u=Q.aj,X=ksk(z);if(b||L){u=u.experiments;f=new vj("",u,!0);f.B=!L;f.AZ=!0;f.isManifestless=!0;f.isLive=!L;f.l8=L;z=g.n(z);for(b=z.next();!b.done;b=z.next()){var v=b.value;b=Mj(v,H);X=OY(v);X=tQ(X.vX||v.url||"",X.cO,X.s);var y=X.get("id");y&&y.includes("%7E")&&(f.U=!0);var q=void 0;y=(q=u)==null?void 0:q.Nc("html5_max_known_end_time_rebase"); q=Number(v.targetDurationSec||5);v=Number(v.maxDvrDurationSec||14400);var M=Number(X.get("mindsq")||X.get("min_sq")||"0"),C=Number(X.get("maxdsq")||X.get("max_sq")||"0")||Infinity;f.Li=f.Li||M;f.zs=f.zs||C;var t=!zs(b.mimeType);X&&uD(f,new m$(X,b,{Cq:q,Kr:t,Ic:v,Li:M,zs:C,qJ:300,l8:L,r_:y}))}H=f}else if(X==="FORMAT_STREAM_TYPE_OTF"){f=f===void 0?0:f;L=new vj("",u.experiments,!1);L.duration=f||0;u=g.n(z);for(f=u.next();!f.done;f=u.next())f=f.value,z=Mj(f,H,L.duration),b=OY(f),(b=tQ(b.vX||f.url||"", b.cO,b.s))&&(z.streamType==="FORMAT_STREAM_TYPE_OTF"?uD(L,new wV(b,z,"sq/0")):uD(L,new fy(b,z,Ji(f.initRange),Ji(f.indexRange))));L.isOtf=!0;H=L}else{f=f===void 0?0:f;L=new vj("",u.experiments,!1);L.duration=f||0;u=g.n(z);for(f=u.next();!f.done;f=u.next())X=f.value,f=Mj(X,H,L.duration),z=Ji(X.initRange),b=Ji(X.indexRange),y=OY(X),(X=tQ(y.vX||X.url||"",y.cO,y.s))&&uD(L,new fy(X,f,z,b));H=L}L=Q.isLivePlayback&&!Q.l8&&!Q.f3&&!Q.isPremiere;Q.V("html5_live_head_playable")&&(!qY(Q)&&L&&Q.On("missingLiveHeadPlayable", {}),Q.aj.Ze==="yt"&&(H.iT=!0));return H}; XD=function(Q){return mW()?!Sn(Q):k7()?!(!Q.C3||!Q.V("html5_enable_safari_fairplay")&&eb()):!1}; Sn=function(Q){return Q.V("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; g.ka=function(Q,z){z=g.n(z);for(var H=z.next();!H.done;H=z.next())if(H=H.value,H.cueRangeSetIdentifier){var f=void 0;Q.Nr.set(H.cueRangeSetIdentifier,(f=H.playerCueRanges)!=null?f:[])}}; MY=function(Q){return!(!Q.Z||!Q.Z.isManifestless)}; C9=function(Q){return Q.Vs?Q.isLowLatencyLiveStream&&Q.Z!=null&&gS(Q.Z)>=5:Q.isLowLatencyLiveStream&&Q.Z!=void 0&&gS(Q.Z)>=5}; iY_=function(Q){return mW()&&Sn(Q)?!1:XD(Q)&&(g.FE(Q.aj)?!Q.isLivePlayback:Q.hlsvp)||!eb()||Q.zD?!0:!1}; DdZ=function(Q){Q.loading=!0;Q.yw=!1;if(hKc(Q))g.vNn(Q.videoId).then(function(f){We6(Q,f)}).then(function(){Q.Az()}); else{lY(Q.p5)||g.PT(new g.wD("DASH MPD Origin invalid: ",Q.p5));var z=Q.p5,H=g.qf(Q.aj.experiments,"dash_manifest_version")||4;z=g.Ve(z,{mpd_version:H});Q.isLowLatencyLiveStream&&Q.latencyClass!=="NORMAL"||(z=g.Ve(z,{pacing:0}));f$c(z,Q.aj.experiments,Q.isLivePlayback).then(function(f){Q.Sm()||(tM(Q,f,!0),ib("mrc",void 0,Q.En),Q.Az())},function(f){Q.Sm()||(Q.loading=!1,Q.publish("dataloaderror",new Oh("manifest.net.retryexhausted",{backend:"manifest", rc:f.status},1)))}); ib("mrs",void 0,Q.En)}}; We6=function(Q,z){var H=z.map(function(v){return v.itag}),f; if((f=Q.playerResponse)!=null&&f.streamingData){f=[];if(Q.V("html5_offline_always_use_local_formats")){H=0;for(var b=g.n(z),L=b.next();!L.done;L=b.next()){L=L.value;var u=Object.assign({},L);u.signatureCipher="";f.push(u);u=g.n(Q.playerResponse.streamingData.adaptiveFormats);for(var X=u.next();!X.done;X=u.next())if(X=X.value,L.itag===X.itag&&L.xtags===X.xtags){H+=1;break}}Hq&&(q=t.getInfo().audio.numChannels)}q>2&&Q.On("hlschl",{mn:q});var x;((x=Q.YJ)==null?0:x.B)&&Q.On("hlsfmtaf",{itags:M.join(".")});var J;if(Q.V("html5_enable_vp9_fairplay")&&((J=Q.S)==null?0:Bj(J)))for(Q.On("drm",{sbdlfbk:1}),q=g.n(Q.nV),M=q.next();!M.done;M=q.next())if(M=M.value,sm(M)){Q.S=M;break}gi(Q,y)})}return sM()}; wcJ=function(Q){if(Q.isExternallyHostedPodcast&&Q.C2){var z=n9(Q.C2);if(!z[0])return sM();Q.Rg=z[0];return r2L(Q.aj,z[0]).then(function(H){gi(Q,H)})}return Q.Bl&&Q.Ks?Yvn(Q.aj,Q.isAd(),Q.Bl).then(function(H){gi(Q,H)}):sM()}; Tg8=function(Q){if(Q.isExternallyHostedPodcast)return sM();var z=n9(Q.C2,Q.jj);if(Q.hlsvp){var H=ZYJ(Q.hlsvp,Q.clientPlaybackNonce,Q.yR);z.push(H)}return A2c(Q.aj,Q.isAd(),z,kCL(Q)).then(function(f){gi(Q,f)})}; gi=function(Q,z){Q.zx=z;Q.Ar(new Sl(g.J5(Q.zx,function(H){return H.getInfo()})))}; kCL=function(Q){var z={cpn:Q.clientPlaybackNonce,c:Q.aj.Z.c,cver:Q.aj.Z.cver};Q.QW&&(z.ptk=Q.QW,z.oid=Q.vu,z.ptchn=Q.s9,z.pltype=Q.JI,Q.BP&&(z.m=Q.BP));return z}; g.Zm=function(Q){return XD(Q)&&Q.C3?(Q={},Q.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",Q):Q.B&&Q.B.AM||null}; eKp=function(Q){var z=G_(Q);return z&&z.text?g.pa(z.text):Q.paidContentOverlayText}; lqn=function(Q){var z=G_(Q);return z&&z.durationMs?z2(z.durationMs):Q.paidContentOverlayDurationMs}; G_=function(Q){var z,H,f;return Q.playerResponse&&Q.playerResponse.paidContentOverlay&&Q.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.K((z=Q.mq)==null?void 0:(H=z.playerOverlays)==null?void 0:(f=H.playerOverlayRenderer)==null?void 0:f.playerDisclosure,RKA)||null}; $m=function(Q){var z="";if(Q.wD)return Q.wD;Q.isLivePlayback&&(z=Q.allowLiveDvr?"dvr":Q.isPremiere?"lp":Q.f3?"window":"live");Q.l8&&(z="post");return z}; g.jn=function(Q,z){return typeof Q.keywords[z]!=="string"?null:Q.keywords[z]}; QaL=function(Q){return!!Q.J5||!!Q.a5||!!Q.kd||!!Q.hd||Q.Mf||Q.Y.focEnabled||Q.Y.rmktEnabled}; g.FD=function(Q){return!!(Q.p5||Q.C2||Q.Bl||Q.hlsvp||Q.gp())}; Kv=function(Q){if(Q.V("html5_onesie")&&Q.errorCode)return!1;var z=g.kO(Q.De,"ypc");Q.ypcPreview&&(z=!1);return Q.EZ()&&!Q.loading&&(g.FD(Q)||g.kO(Q.De,"heartbeat")||z)}; n9=function(Q,z){Q=L1(Q);var H={};if(z){z=g.n(z.split(","));for(var f=z.next();!f.done;f=z.next())(f=f.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(H[f[1]]={width:f[2],height:f[3]})}z=g.n(Q);for(f=z.next();!f.done;f=z.next()){f=f.value;var b=H[f.itag];b&&(f.width=b.width,f.height=b.height)}return Q}; xm=function(Q){var z=Q.getAvailableAudioTracks();z=z.concat(Q.j2);for(var H=0;H0:z||Q.adFormat!=="17_8"||Q.isAutonav||g.kh(Q.aj)||Q.D4?Q.D6?!1:Q.aj.C2||Q.aj.dQ||!g.xh(Q.aj)?!z&&P7(Q)==="adunit"&&Q.J5?!1:!0:!1:!1:(Q.D6?0:Q.m4)&&g.xh(Q.aj)?!0:!1;Q.V("html5_log_detailpage_autoplay")&&P7(Q)==="detailpage"&&Q.On("autoplay_info",{autoplay:Q.Yn,autonav:Q.isAutonav,wasDompaused:Q.D6,result:z});return z}; g.hM=function(Q){return Q.oauthToken||Q.aj.j2}; C6Y=function(Q){if(Q.V("html5_stateful_audio_normalization")){var z=1,H=g.qf(Q.aj.experiments,"html5_default_ad_gain");H&&Q.isAd()&&(z=H);var f;if(H=((f=Q.D)==null?void 0:f.audio.B)||Q.AC){f=(0,g.NV)();Q.rq=2;var b=f-Q.aj.Uf<=Q.maxStatefulTimeThresholdSec*1E3;Q.applyStatefulNormalization&&b?Q.rq=4:b||(Q.aj.W7=Infinity,Q.aj.Uf=NaN);b=(Q.rq===4?g.v3(Q.aj.W7,Q.minimumLoudnessTargetLkfs,Q.loudnessTargetLkfs):Q.loudnessTargetLkfs)-H;if(Q.rq!==4){var L,u,X,v,y=((L=Q.playerResponse)==null?void 0:(u=L.playerConfig)== null?void 0:(X=u.audioConfig)==null?void 0:(v=X.loudnessNormalizationConfig)==null?void 0:v.statelessLoudnessAdjustmentGain)||0;b+=y}b=Math.min(b,0);Q.preserveStatefulLoudnessTarget&&(Q.aj.W7=H+b,Q.aj.Uf=f);Q=Math.min(1,Math.pow(10,b/20))||z}else Q=M3L(Q)}else Q=M3L(Q);return Q}; M3L=function(Q){var z=1,H=g.qf(Q.aj.experiments,"html5_default_ad_gain");H&&Q.isAd()&&(z=H);var f;if(H=((f=Q.D)==null?void 0:f.audio.L)||Q.dS)Q.rq=1;return Math.min(1,Math.pow(10,-H/20))||z}; f9=function(Q){var z=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],H=mf(Q.aj)==="TVHTML5_SIMPLY"&&Q.aj.Z.ctheme==="MUSIC";Q.dQ||!g.Ux(Q.aj)&&!H||!z.includes(Q.musicVideoType)&&!Q.isExternallyHostedPodcast||(Q.dQ=!0);if(z=g.dR())z=/Starboard\/([0-9]+)/.exec(g.Ns()),z=(z?parseInt(z[1],10):NaN)<10;H=Q.aj;H=(mf(H)==="TVHTML5_CAST"||mf(H)==="TVHTML5"&&(H.Z.cver.startsWith("6.20130725")||H.Z.cver.startsWith("6.20130726")))&&Q.aj.Z.ctheme==="MUSIC";var f;if(f=!Q.dQ)H||(H=Q.aj,H=mf(H)=== "TVHTML5"&&H.Z.cver.startsWith("7")),f=H;f&&!z&&(z=Q.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",H=(Q.V("cast_prefer_audio_only_for_atv_and_uploads")||Q.V("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&Q.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",z||H||Q.isExternallyHostedPodcast)&&(Q.dQ=!0);return Q.aj.deviceIsAudioOnly||Q.dQ&&Q.aj.Y}; g.t3J=function(Q){var z;if(!(z=Q.V("html5_enable_sabr_live_captions")&&Q.AZ()&&L9(Q))){var H,f,b;z=((H=Q.playerResponse)==null?void 0:(f=H.playerConfig)==null?void 0:(b=f.compositeVideoConfig)==null?void 0:b.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}return z}; W7=function(Q){var z,H,f;return!!((z=Q.playerResponse)==null?0:(H=z.playerConfig)==null?0:(f=H.mediaCommonConfig)==null?0:f.splitScreenEligible)}; Dm=function(Q){var z;return!((z=Q.playerResponse)==null||!z.compositePlayabilityStatus)}; EHa=function(Q){return isNaN(Q)?0:Math.max((Date.now()-Q)/1E3-30,0)}; K9=function(Q){return!(!Q.q0||!Q.aj.Y)&&Q.gp()}; km=function(Q){return Q.enablePreroll&&Q.enableServerStitchedDai}; pSZ=function(Q){return Q.WY&&!Q.N7}; L9=function(Q){var z=Q.V("html5_enable_sabr_on_drive")&&Q.aj.Ze==="gd";if(Q.kL)return Q.WY&&Q.On("fds",{fds:!0},!0),!1;if(Q.aj.Ze!=="yt"&&!z)return Q.WY&&Q.On("dsvn",{ns:Q.aj.Ze},!0),!1;if(Q.cotn||!Q.Z||Q.Z.isOtf||Q.RL&&!Q.V("html5_enable_sabr_csdai"))return!1;if(Q.V("html5_use_sabr_requests_for_debugging"))return!0;Q.WY&&Q.On("esfw",{usbc:Q.WY,hsu:!!Q.N7},!0);if(Q.WY&&Q.N7)return!0;if(Q.V("html5_remove_client_sabr_determination"))return!1;var H=!Q.Z.AZ&&!Q.w7();z=H&&wS&&Q.V("html5_enable_sabr_vod_streaming_xhr"); H=H&&!wS&&Q.V("html5_enable_sabr_vod_non_streaming_xhr");var f=en(Q),b=Q.V("html5_enable_sabr_drm_vod_streaming_xhr")&&wS&&Q.w7()&&!Q.Z.AZ&&(Q.gS==="1"?!1:!0);(z=z||H||f||b)&&!Q.N7&&Q.On("sabr",{loc:"m"},!0);return z&&!!Q.N7}; en=function(Q){var z;if(!(z=wS&&Q.AZ()&&Q.w7()&&(Q.gS==="1"?!1:!0)&&Q.V("html5_sabr_live_drm_streaming_xhr"))){z=Q.AZ()&&!Q.w7()&&wS;var H=Q.AZ()&&Q.latencyClass!=="ULTRALOW"&&!Q.isLowLatencyLiveStream&&Q.V("html5_sabr_live_normal_latency_streaming_xhr"),f=Q.isLowLatencyLiveStream&&Q.V("html5_sabr_live_low_latency_streaming_xhr"),b=Q.latencyClass==="ULTRALOW"&&Q.V("html5_sabr_live_ultra_low_latency_streaming_xhr");z=z&&(H||f||b)}H=z;z=Q.enableServerStitchedDai&&H&&Q.V("html5_enable_sabr_ssdai_streaming_xhr"); H=!Q.enableServerStitchedDai&&H;f=Q.AZ()&&!wS&&Q.V("html5_enable_sabr_live_non_streaming_xhr");Q=wS&&(Q.OZ()||W7(Q)&&Q.V("html5_enable_sabr_for_lifa_eligible_streams"));return z||H||f||Q}; g.mI=function(Q){return Q.So&&L9(Q)}; hKc=function(Q){var z;if(z=!!Q.cotn)z=Q.videoId,z=!!z&&g.Jh(z)===1;return z&&!Q.q0}; g.lE=function(Q){if(!Q.Z||!Q.B||!Q.D)return!1;var z=Q.Z.Z,H=!!z[Q.B.id]&&jl(z[Q.B.id].Mz.Z);z=!!z[Q.D.id]&&jl(z[Q.D.id].Mz.Z);return(Q.B.itag==="0"||H)&&z}; Rq=function(Q){return Q.aK?["OK","LIVE_STREAM_OFFLINE"].includes(Q.aK.status):!0}; LiY=function(Q){return(Q=Q.Lr)&&Q.showError?Q.showError:!1}; v7=function(Q,z){return Q.V(z)?!0:(Q.fflags||"").includes(z+"=true")}; nHL=function(Q){return Q.V("html5_heartbeat_iff_heartbeat_params_filled")}; oNk=function(Q,z){z.inlineMetricEnabled&&(Q.inlineMetricEnabled=!0);z.playback_progress_0s_url&&(Q.hd=new zKu(z));if(z=z.video_masthead_ad_quartile_urls)Q.a5=z.quartile_0_url,Q.IY=z.quartile_25_url,Q.NH=z.quartile_50_url,Q.FA=z.quartile_75_url,Q.uj=z.quartile_100_url,Q.kd=z.quartile_0_urls,Q.iN=z.quartile_25_urls,Q.QJ=z.quartile_50_urls,Q.Cc=z.quartile_75_urls,Q.EE=z.quartile_100_urls}; OY9=function(Q){var z={};Q=g.n(Q);for(var H=Q.next();!H.done;H=Q.next()){H=H.value;var f=H.split("=");f.length===2?z[f[0]]=f[1]:z[H]=!0}return z}; jV6=function(Q){if(Q){if(vjA(Q))return Q;Q=yB9(Q);if(vjA(Q,!0))return Q}return""}; g.gHn=function(Q){return Q.captionsLanguagePreference||Q.aj.captionsLanguagePreference||g.jn(Q,"yt:cc_default_lang")||Q.aj.yE}; Qw=function(Q){return!(!Q.isLivePlayback||!Q.hasProgressBarBoundaries())}; g.lF=function(Q){var z;return Q.o_||((z=Q.suggestions)==null?void 0:z[0])||null}; g.zI=function(Q){return Q.gV&&(Q.V("embeds_enable_pfp_always_unbranded")||Q.aj.rq)}; HG=function(Q,z){Q.V("html5_log_autoplay_src")&&H7(Q)&&Q.On("apsrc",{src:z})}; g.fR=function(Q){var z,H;return!!((z=Q.embeddedPlayerConfig)==null?0:(H=z.embeddedPlayerFlags)==null?0:H.enableMusicUx)}; g.LR=function(Q){var z=Q.C(),H=g.bj(z),f=z.C3;(z.V("embeds_web_enable_iframe_api_send_full_embed_url")||z.V("embeds_web_enable_rcat_validation_in_havs")||z.V("embeds_enable_autoplay_and_visibility_signals"))&&g.AE(z)&&(f&&(H.thirdParty=Object.assign({},H.thirdParty,{embedUrl:f})),hF9(H,Q));if(f=Q.yl)H.clickTracking={clickTrackingParams:f};f=H.client||{};var b="EMBED",L=P7(Q);L==="leanback"?b="WATCH":z.V("gvi_channel_client_screen")&&L==="profilepage"?b="CHANNEL":Q.WI?b="LIVE_MONITOR":L==="detailpage"? b="WATCH_FULL_SCREEN":L==="adunit"?b="ADUNIT":L==="sponsorshipsoffer"&&(b="UNKNOWN");f.clientScreen=b;if(z=Q.kidsAppInfo)f.kidsAppInfo=JSON.parse(z);(b=Q.CP)&&!z&&(f.kidsAppInfo={contentSettings:{ageUpMode:ZQn[b]}});if(z=Q.gg)f.unpluggedAppInfo={enableFilterMode:!0};(b=Q.unpluggedFilterModeType)&&!z&&(f.unpluggedAppInfo={filterModeType:Gxn[b]});if(z=Q.Ze)f.unpluggedLocationInfo=z;H.client=f;f=H.request||{};Q.d4&&(f.isPrefetch=!0);if(z=Q.mdxEnvironment)f.mdxEnvironment=z;if(z=Q.mdxControlMode)f.mdxControlMode= $D6[z];H.request=f;f=H.user||{};if(z=Q.wh)f.credentialTransferTokens=[{token:z,scope:"VIDEO"}];if(z=Q.yE)f.delegatePurchases={oauthToken:z},f.kidsParent={oauthToken:z};H.user=f;if(f=Q.contextParams)H.activePlayers=[{playerContextParams:f}];if(Q=Q.clientScreenNonce)H.clientScreenNonce=Q;return H}; g.bj=function(Q){var z=g.eh(),H=z.client||{};if(Q.forcedExperiments){var f=Q.forcedExperiments.split(","),b=[];f=g.n(f);for(var L=f.next();!L.done;L=f.next())b.push(Number(L.value));H.experimentIds=b}if(b=Q.homeGroupInfo)H.homeGroupInfo=JSON.parse(b);if(b=Q.getPlayerType())H.playerType=b;if(b=Q.Z.ctheme)H.theme=b;if(b=Q.livingRoomAppMode)H.tvAppInfo=Object.assign({},H.tvAppInfo,{livingRoomAppMode:b});b=Q.deviceYear;Q.V("html5_propagate_device_year")&&b&&(H.tvAppInfo=Object.assign({},H.tvAppInfo,{deviceYear:b})); if(b=Q.livingRoomPoTokenId)H.tvAppInfo=Object.assign({},H.tvAppInfo,{livingRoomPoTokenId:b});z.client=H;H=z.user||{};Q.enableSafetyMode&&(H=Object.assign({},H,{enableSafetyMode:!0}));Q.pageId&&(H=Object.assign({},H,{onBehalfOfUser:Q.pageId}));z.user=H;H=Q.C3;Q.V("embeds_web_enable_iframe_api_send_full_embed_url")||Q.V("embeds_web_enable_rcat_validation_in_havs")||Q.V("embeds_enable_autoplay_and_visibility_signals")||!H||(z.thirdParty={embedUrl:H});return z}; J7k=function(Q,z,H){var f=Q.videoId,b=g.LR(Q),L=Q.C(),u={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(NA()),referer:document.location.toString(),signatureTimestamp:20153};g.Ww();Q.isAutonav&&(u.autonav=!0);g.DQ(0,141)&&(u.autonavState=g.DQ(0,140)?"STATE_OFF":"STATE_ON");u.autoCaptionsDefaultOn=g.DQ(0,66);iE(Q)&&(u.autoplay=!0);L.Y&&Q.cycToken&&(u.cycToken=Q.cycToken);L.enablePrivacyFilter&&(u.enablePrivacyFilter=!0);Q.isFling&&(u.fling=!0);var X=Q.forceAdsUrl;if(X){var v={},y=[];X=X.split(","); X=g.n(X);for(var q=X.next();!q.done;q=X.next()){q=q.value;var M=q.split("|");M.length!==3||q.includes("=")||(M[0]="breaktype="+M[0],M[1]="offset="+M[1],M[2]="url="+M[2]);q={adtype:"video_ad"};M=g.n(M);for(var C=M.next();!C.done;C=M.next()){var t=g.n(C.value.split("="));C=t.next().value;t=LZu(t);q[C]=t.join("=")}M=q.url;C=q.presetad;t=q.viralresponseurl;var E=Number(q.campaignid);if(q.adtype==="in_display_ad")M&&(v.url=M),C&&(v.presetAd=C),t&&(v.viralAdResponseUrl=t),E&&(v.viralCampaignId=String(E)); else if(q.adtype==="video_ad"){var G={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(q.offset)||0)}};if(q=ja6[q.breaktype])G.breakType=q;M&&(G.url=M);C&&(G.presetAd=C);t&&(G.viralAdResponseUrl=t);E&&(G.viralCampaignId=String(E));y.push(G)}}u.forceAdParameters={videoAds:y,inDisplayAd:v}}Q.isInlinePlaybackNoAd&&(u.isInlinePlaybackNoAd=!0);Q.isLivingRoomDeeplink&&(u.isLivingRoomDeeplink=!0);v=Q.P_;if(v!=null){v={startWalltime:String(v)};if(y=Q.gt)v.manifestDuration=String(y||14400);u.liveContext= v}if(Q.mutedAutoplay){u.mutedAutoplay=!0;v=L.getWebPlayerContextConfig();var x,J;(v==null?0:(x=v.embedsHostFlags)==null?0:x.allowMutedAutoplayDurationMode)&&(v==null?0:(J=v.embedsHostFlags)==null?0:J.allowMutedAutoplayDurationMode.includes(Fi9[Q.mutedAutoplayDurationMode]))&&(u.mutedAutoplayDurationMode=Fi9[Q.mutedAutoplayDurationMode])}if(Q.D6?0:Q.m4)u.splay=!0;x=Q.vnd;x===5&&(u.vnd=x);x={};if(J=Q.isMdxPlayback)x.triggeredByMdx=J;if(J=Q.mH)x.skippableAdsSupported=J.split(",").includes("ska");if(y= Q.Qw){J=Q.uN;v=[];y=g.n(WJZ(y));for(X=y.next();!X.done;X=y.next()){X=X.value;q=X.platform;X={applicationState:X.Xw?"INACTIVE":"ACTIVE",clientFormFactor:xD_[q]||"UNKNOWN_FORM_FACTOR",clientName:KJL[X.dn]||"UNKNOWN_INTERFACE",clientVersion:X.deviceVersion||"",platform:OQJ[q]||"UNKNOWN_PLATFORM"};q={};if(J){M=void 0;try{M=JSON.parse(J)}catch(I){g.PT(I)}M&&(q={params:[{key:"ms",value:M.ms}]},M.advertising_id&&(q.advertisingId=M.advertising_id),M.limit_ad_tracking!==void 0&&M.limit_ad_tracking!==null&& (q.limitAdTracking=M.limit_ad_tracking),X.osName=M.os_name,X.userAgent=M.user_agent,X.windowHeightPoints=M.window_height_points,X.windowWidthPoints=M.window_width_points)}v.push({adSignalsInfo:q,remoteClient:X})}x.remoteContexts=v}J=Q.sourceContainerPlaylistId;v=Q.serializedMdxMetadata;if(J||v)y={},J&&(y.mdxPlaybackContainerInfo={sourceContainerPlaylistId:J}),v&&(y.serializedMdxMetadata=v),x.mdxPlaybackSourceContext=y;u.mdxContext=x;x=z.width;x>0&&(u.playerWidthPixels=Math.round(x));if(z=z.height)u.playerHeightPixels= Math.round(z);H!==0&&(u.vis=H);if(H=L.widgetReferrer)u.widgetReferrer=H.substring(0,128);g.xh(L)&&u&&(u.ancestorOrigins=L.ancestorOrigins);Q.defaultActiveSourceVideoId&&(u.compositeVideoContext={defaultActiveSourceVideoId:Q.defaultActiveSourceVideoId});if(L=L.getWebPlayerContextConfig())u.encryptedHostFlags=L.encryptedHostFlags;f={videoId:f,context:b,playbackContext:{contentPlaybackContext:u}};Q.reloadPlaybackParams&&(f.playbackContext.reloadPlaybackContext={reloadPlaybackParams:Q.reloadPlaybackParams}); Q.contentCheckOk&&(f.contentCheckOk=!0);if(b=Q.clientPlaybackNonce)f.cpn=b;if(b=Q.playerParams)f.params=b;if(b=Q.playlistId)f.playlistId=b;Q.racyCheckOk&&(f.racyCheckOk=!0);b=Q.C();if(u=b.embedConfig)f.serializedThirdPartyEmbedConfig=u;f.captionParams={};u=g.DQ(g.Ww(),65);Q.deviceCaptionsOn!=null?f.captionParams.deviceCaptionsOn=Q.deviceCaptionsOn:g.mD(b)&&(f.captionParams.deviceCaptionsOn=u!=null?!u:!1);Q.ZF&&(f.captionParams.deviceCaptionsLangPref=Q.ZF);Q.BX.length?f.captionParams.viewerSelectedCaptionLangs= Q.BX:g.mD(b)&&(u=g.iM(),u==null?0:u.length)&&(f.captionParams.viewerSelectedCaptionLangs=u);u=Q.fetchType==="onesie"&&Q.V("html5_onesie_attach_po_token");L=Q.fetchType!=="onesie"&&Q.V("html5_non_onesie_attach_po_token");if(u||L)u=Q.C(),u.h$&&(f.serviceIntegrityDimensions={},f.serviceIntegrityDimensions.poToken=u.h$);b.V("fetch_att_independently")&&(f.attestationRequest={omitBotguardData:!0});f.playbackContext||(f.playbackContext={});f.playbackContext.devicePlaybackCapabilities=oH_(Q);f.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding=== !1&&Q.On("noVp9",{});return f}; oH_=function(Q){var z=!(Q==null?0:Q.Nf())&&(Q==null?void 0:Q.AZ())&&Hw(),H;if(H=Q==null?0:Q.V("html5_report_supports_vp9_encoding")){if(Q==null)H=0;else{H=g.uE(Q);Q=Q.C().S;var f=fv("243");H=f?qB(H,f,Q,!0)===!0:!1}H=H&&!z}return{supportsVp9Encoding:!!H,supportXhr:wS}}; IOA=function(Q,z){var H,f,b;return g.B(function(L){if(L.Z==1)return H={context:g.bj(Q.C()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:Q.videoId,cpn:Q.clientPlaybackNonce}}]},f=g.Qv(NMY),g.Y(L,g.kx(z,H,f),2);b=L.B;return L.return(b)})}; A7L=function(Q,z,H){var f=g.qf(z.experiments,"bg_vm_reinit_threshold");(!YA||(0,g.NV)()-YA>f)&&IOA(Q,H).then(function(b){b&&(b=b.botguardData)&&g.BB(b,z)},function(b){Q.Sm()||(b=JI(b),Q.On("attf",b.details))})}; uj=function(Q,z){g.h.call(this);this.app=Q;this.state=z}; Xv=function(Q,z,H){Q.state.Z.hasOwnProperty(z)||S1(Q,z,H);Q.state.Y[z]=function(){return H.apply(Q,g.A8.apply(0,arguments))}; Q.state.j.add(z)}; vG=function(Q,z,H){Q.state.Z.hasOwnProperty(z)||S1(Q,z,H);Q.app.C().Y&&(Q.state.N[z]=function(){return H.apply(Q,g.A8.apply(0,arguments))},Q.state.j.add(z))}; S1=function(Q,z,H){Q.state.Z[z]=function(){return H.apply(Q,g.A8.apply(0,arguments))}}; g.yw=function(Q,z,H){return Q.state.Z[z].apply(Q.state.Z,g.F(H))}; qW=function(){g.JD.call(this);this.S=new Map}; MW=function(){g.h.apply(this,arguments);this.element=null;this.j=new Set;this.Y={};this.N={};this.Z={};this.U=new Set;this.L=new qW;this.B=new qW;this.D=new qW;this.S=new qW}; YD_=function(Q,z,H){typeof Q==="string"&&(Q={mediaContentUrl:Q,startSeconds:z,suggestedQuality:H});a:{if((z=Q.mediaContentUrl)&&(z=/\/([ve]|embed)\/([^#?]+)/.exec(z))&&z[2]){z=z[2];break a}z=null}Q.videoId=z;return CR(Q)}; CR=function(Q,z,H){if(typeof Q==="string")return{videoId:Q,startSeconds:z,suggestedQuality:H};z={};H=g.n(r7a);for(var f=H.next();!f.done;f=H.next())f=f.value,Q[f]&&(z[f]=Q[f]);return z}; sa8=function(Q,z,H,f){if(g.wc(Q)&&!Array.isArray(Q)){z="playlist list listType index startSeconds suggestedQuality".split(" ");H={};for(f=0;f32&&f.push("hfr");z.isHdr()&&f.push("hdr");z.primaries==="bt2020"&&f.push("wcg");H.video_quality_features=f}}if(Q=Q.getPlaylistId())H.list=Q;return H}; gX=function(){tf.apply(this,arguments)}; Za=function(Q,z){var H={};if(Q.app.C().wh){Q=g.n(UDv);for(var f=Q.next();!f.done;f=Q.next())f=f.value,z.hasOwnProperty(f)&&(H[f]=z[f]);if(z=H.qoe_cat)Q="",typeof z==="string"&&z.length>0&&(Q=z.split(",").filter(function(b){return c7c.includes(b)}).join(",")),H.qoe_cat=Q; iQv(H)}else for(Q=g.n(hsA),f=Q.next();!f.done;f=Q.next())f=f.value,z.hasOwnProperty(f)&&(H[f]=z[f]);return H}; iQv=function(Q){var z=Q.raw_player_response;if(!z){var H=Q.player_response;H&&(z=JSON.parse(H))}delete Q.player_response;delete Q.raw_player_response;if(z){Q.raw_player_response={streamingData:z.streamingData};var f;if((f=z.playbackTracking)==null?0:f.qoeUrl)Q.raw_player_response=Object.assign({},Q.raw_player_response,{playbackTracking:{qoeUrl:z.playbackTracking.qoeUrl}});var b;if((b=z.videoDetails)==null?0:b.videoId)Q.raw_player_response=Object.assign({},Q.raw_player_response,{videoDetails:{videoId:z.videoDetails.videoId}})}}; GI=function(Q,z,H){var f=Q.app.JM(H);if(!f)return 0;Q=f-Q.app.getCurrentTime(H);return z-Q}; DD_=function(Q){var z=z===void 0?5:z;return Q?Wi_[Q]||z:z}; g.$1=function(){gX.apply(this,arguments)}; Ki9=function(Q){S1(Q,"getInternalApiInterface",Q.getInternalApiInterface);S1(Q,"addEventListener",Q.C7);S1(Q,"removeEventListener",Q.Sxc);S1(Q,"cueVideoByPlayerVars",Q.sI);S1(Q,"loadVideoByPlayerVars",Q.SYn);S1(Q,"preloadVideoByPlayerVars",Q.Z2n);S1(Q,"getAdState",Q.getAdState);S1(Q,"sendAbandonmentPing",Q.sendAbandonmentPing);S1(Q,"setLoopRange",Q.setLoopRange);S1(Q,"getLoopRange",Q.getLoopRange);S1(Q,"setAutonavState",Q.setAutonavState);S1(Q,"seekTo",Q.tH$);S1(Q,"seekBy",Q.NQh);S1(Q,"seekToLiveHead", Q.seekToLiveHead);S1(Q,"requestSeekToWallTimeSeconds",Q.requestSeekToWallTimeSeconds);S1(Q,"seekToStreamTime",Q.seekToStreamTime);S1(Q,"startSeekCsiAction",Q.startSeekCsiAction);S1(Q,"getStreamTimeOffset",Q.getStreamTimeOffset);S1(Q,"getVideoData",Q.z5v);S1(Q,"setInlinePreview",Q.setInlinePreview);S1(Q,"getAppState",Q.getAppState);S1(Q,"updateLastActiveTime",Q.updateLastActiveTime);S1(Q,"setBlackout",Q.setBlackout);S1(Q,"setUserEngagement",Q.setUserEngagement);S1(Q,"updateSubtitlesUserSettings",Q.updateSubtitlesUserSettings); S1(Q,"getPresentingPlayerType",Q.yb);S1(Q,"canPlayType",Q.canPlayType);S1(Q,"updatePlaylist",Q.updatePlaylist);S1(Q,"updateVideoData",Q.updateVideoData);S1(Q,"updateEnvironmentData",Q.updateEnvironmentData);S1(Q,"sendVideoStatsEngageEvent",Q.guj);S1(Q,"productsInVideoVisibilityUpdated",Q.productsInVideoVisibilityUpdated);S1(Q,"setSafetyMode",Q.setSafetyMode);S1(Q,"isAtLiveHead",function(z){return Q.isAtLiveHead(void 0,z)}); S1(Q,"getVideoAspectRatio",Q.getVideoAspectRatio);S1(Q,"getPreferredQuality",Q.getPreferredQuality);S1(Q,"getPlaybackQualityLabel",Q.getPlaybackQualityLabel);S1(Q,"setPlaybackQualityRange",Q.PWe);S1(Q,"onAdUxClicked",Q.onAdUxClicked);S1(Q,"getFeedbackProductData",Q.getFeedbackProductData);S1(Q,"getStoryboardFrame",Q.getStoryboardFrame);S1(Q,"getStoryboardFrameIndex",Q.getStoryboardFrameIndex);S1(Q,"getStoryboardLevel",Q.getStoryboardLevel);S1(Q,"getNumberOfStoryboardLevels",Q.getNumberOfStoryboardLevels); S1(Q,"getCaptionWindowContainerId",Q.getCaptionWindowContainerId);S1(Q,"getAvailableQualityLabels",Q.getAvailableQualityLabels);S1(Q,"addCueRange",Q.addCueRange);S1(Q,"addUtcCueRange",Q.addUtcCueRange);S1(Q,"showAirplayPicker",Q.showAirplayPicker);S1(Q,"dispatchReduxAction",Q.dispatchReduxAction);S1(Q,"getPlayerResponse",Q.rh5);S1(Q,"getWatchNextResponse",Q.kv5);S1(Q,"getHeartbeatResponse",Q.R3);S1(Q,"getCurrentTime",Q.dE);S1(Q,"getDuration",Q.vT);S1(Q,"getPlayerState",Q.getPlayerState);S1(Q,"getPlayerStateObject", Q.ov3);S1(Q,"getVideoLoadedFraction",Q.getVideoLoadedFraction);S1(Q,"getProgressState",Q.getProgressState);S1(Q,"getVolume",Q.getVolume);S1(Q,"setVolume",Q.sH);S1(Q,"isMuted",Q.isMuted);S1(Q,"mute",Q.X1);S1(Q,"unMute",Q.Pt);S1(Q,"loadModule",Q.loadModule);S1(Q,"unloadModule",Q.unloadModule);S1(Q,"getOption",Q.N2);S1(Q,"getOptions",Q.getOptions);S1(Q,"setOption",Q.setOption);S1(Q,"loadVideoById",Q.QL);S1(Q,"loadVideoByUrl",Q.hq);S1(Q,"playVideo",Q.E5);S1(Q,"loadPlaylist",Q.loadPlaylist);S1(Q,"nextVideo", Q.nextVideo);S1(Q,"previousVideo",Q.previousVideo);S1(Q,"playVideoAt",Q.playVideoAt);S1(Q,"getDebugText",Q.getDebugText);S1(Q,"getWebPlayerContextConfig",Q.getWebPlayerContextConfig);S1(Q,"notifyShortsAdSwipeEvent",Q.notifyShortsAdSwipeEvent);S1(Q,"getVideoContentRect",Q.getVideoContentRect);S1(Q,"setSqueezeback",Q.setSqueezeback);S1(Q,"toggleSubtitlesOn",Q.toggleSubtitlesOn);S1(Q,"isSubtitlesOn",Q.isSubtitlesOn);S1(Q,"reportPlaybackIssue",Q.reportPlaybackIssue);S1(Q,"setAutonav",Q.setAutonav);S1(Q, "isNotServable",Q.isNotServable);S1(Q,"channelSubscribed",Q.channelSubscribed);S1(Q,"channelUnsubscribed",Q.channelUnsubscribed);S1(Q,"togglePictureInPicture",Q.togglePictureInPicture);S1(Q,"supportsGaplessAudio",Q.supportsGaplessAudio);S1(Q,"supportsGaplessShorts",Q.supportsGaplessShorts);S1(Q,"enqueueVideoByPlayerVars",function(z){return void Q.enqueueVideoByPlayerVars(z)}); S1(Q,"clearQueue",Q.clearQueue);S1(Q,"getAudioTrack",Q.Jt);S1(Q,"setAudioTrack",Q.rF3);S1(Q,"getAvailableAudioTracks",Q.ih);S1(Q,"getMaxPlaybackQuality",Q.getMaxPlaybackQuality);S1(Q,"getUserPlaybackQualityPreference",Q.getUserPlaybackQualityPreference);S1(Q,"getSubtitlesUserSettings",Q.getSubtitlesUserSettings);S1(Q,"resetSubtitlesUserSettings",Q.resetSubtitlesUserSettings);S1(Q,"setMinimized",Q.setMinimized);S1(Q,"setOverlayVisibility",Q.setOverlayVisibility);S1(Q,"confirmYpcRental",Q.confirmYpcRental); S1(Q,"queueNextVideo",Q.queueNextVideo);S1(Q,"handleExternalCall",Q.handleExternalCall);S1(Q,"logApiCall",Q.logApiCall);S1(Q,"isExternalMethodAvailable",Q.isExternalMethodAvailable);S1(Q,"setScreenLayer",Q.setScreenLayer);S1(Q,"getCurrentPlaylistSequence",Q.getCurrentPlaylistSequence);S1(Q,"getPlaylistSequenceForTime",Q.getPlaylistSequenceForTime);S1(Q,"shouldSendVisibilityState",Q.shouldSendVisibilityState);S1(Q,"syncVolume",Q.syncVolume);S1(Q,"highlightSettingsMenuItem",Q.highlightSettingsMenuItem); S1(Q,"openSettingsMenuItem",Q.openSettingsMenuItem);S1(Q,"getEmbeddedPlayerResponse",Q.getEmbeddedPlayerResponse);S1(Q,"getVisibilityState",Q.getVisibilityState);S1(Q,"isMutedByMutedAutoplay",Q.isMutedByMutedAutoplay);S1(Q,"isMutedByEmbedsMutedAutoplay",Q.isMutedByEmbedsMutedAutoplay);S1(Q,"setGlobalCrop",Q.setGlobalCrop);S1(Q,"setInternalSize",Q.setInternalSize);S1(Q,"setFauxFullscreen",Q.setFauxFullscreen);S1(Q,"setAppFullscreen",Q.setAppFullscreen)}; Fv=function(Q,z,H){Q=g.j1(Q.xJ(),z);return H?(H.addOnDisposeCallback(Q),null):Q}; g.x1=function(Q,z,H){return Q.app.C().Bc?z:g.EB("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:z,SHORTCUT:H})}; V39=function(Q){Q.xJ().element.setAttribute("aria-live","polite")}; g.OZ=function(Q,z){g.$1.call(this,Q,z);Ki9(this);vG(this,"addEventListener",this.IA);vG(this,"removeEventListener",this.ANj);vG(this,"cueVideoByPlayerVars",this.J2);vG(this,"loadVideoByPlayerVars",this.fJm);vG(this,"preloadVideoByPlayerVars",this.wSm);vG(this,"loadVideoById",this.QL);vG(this,"loadVideoByUrl",this.hq);vG(this,"playVideo",this.E5);vG(this,"loadPlaylist",this.loadPlaylist);vG(this,"nextVideo",this.nextVideo);vG(this,"previousVideo",this.previousVideo);vG(this,"playVideoAt",this.playVideoAt); vG(this,"getVideoData",this.eb);vG(this,"seekBy",this.F2I);vG(this,"seekTo",this.W2n);vG(this,"showControls",this.showControls);vG(this,"hideControls",this.hideControls);vG(this,"cancelPlayback",this.cancelPlayback);vG(this,"getProgressState",this.getProgressState);vG(this,"isInline",this.isInline);vG(this,"setInline",this.setInline);vG(this,"setLoopVideo",this.setLoopVideo);vG(this,"getLoopVideo",this.getLoopVideo);vG(this,"getVideoContentRect",this.getVideoContentRect);vG(this,"getVideoStats",this.Lqj); vG(this,"getCurrentTime",this.I3);vG(this,"getDuration",this.vT);vG(this,"getPlayerState",this.H3j);vG(this,"getVideoLoadedFraction",this.Bh$);vG(this,"mute",this.X1);vG(this,"unMute",this.Pt);vG(this,"setVolume",this.sH);vG(this,"loadModule",this.loadModule);vG(this,"unloadModule",this.unloadModule);vG(this,"getOption",this.N2);vG(this,"getOptions",this.getOptions);vG(this,"setOption",this.setOption);vG(this,"addCueRange",this.addCueRange);vG(this,"getDebugText",this.getDebugText);vG(this,"getStoryboardFormat", this.getStoryboardFormat);vG(this,"toggleFullscreen",this.toggleFullscreen);vG(this,"isFullscreen",this.isFullscreen);vG(this,"getPlayerSize",this.getPlayerSize);vG(this,"toggleSubtitles",this.toggleSubtitles);this.app.C().V("embeds_enable_move_set_center_crop_to_public")||vG(this,"setCenterCrop",this.setCenterCrop);vG(this,"setFauxFullscreen",this.setFauxFullscreen);vG(this,"setSizeStyle",this.setSizeStyle);vG(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);vG(this,"handleGlobalKeyUp",this.handleGlobalKeyUp); P6Z(this)}; g.og=function(Q){Q=Q.xt();var z=Q.Hq.get("endscreen");return z&&z.k7()?!0:Q.SD()}; g.Jf=function(Q,z){Q.getPresentingPlayerType()===3?Q.publish("mdxautoplaycancel"):Q.F$("onAutonavCancelled",z)}; g.Ig=function(Q){var z=NW(Q.xt());return Q.app.M7&&!Q.isFullscreen()||Q.getPresentingPlayerType()===3&&z&&z.Yr()&&z.bz()||!!Q.getPlaylist()}; g.Af=function(Q,z){g.yw(Q,"addEmbedsConversionTrackingParams",[z])}; g.rX=function(Q){return(Q=g.Y1(Q.xt()))?Q.jc():{}}; g.dDu=function(Q){Q=(Q=Q.getVideoData())&&Q.B;return!!Q&&!(!Q.audio||!Q.video)&&Q.mimeType!=="application/x-mpegURL"}; g.sZ=function(Q,z,H){Q=Q.Un().element;var f=Sj(Q.children,function(b){b=Number(b.getAttribute("data-layer"));return H-b||1}); f<0&&(f=-(f+1));uT(Q,z,f);z.setAttribute("data-layer",String(H))}; g.BG=function(Q){var z=Q.C();if(!z.zx)return!1;var H=Q.getVideoData();if(!H||Q.getPresentingPlayerType()===3)return!1;var f=(!H.isLiveDefaultBroadcast||z.V("allow_poltergust_autoplay"))&&!Qw(H);f=H.isLivePlayback&&(!z.V("allow_live_autoplay")||!f);var b=H.isLivePlayback&&z.V("allow_live_autoplay_on_mweb");Q=Q.getPlaylist();Q=!!Q&&Q.Yr();var L=H.mq&&H.mq.playerOverlays||null;L=!!(L&&L.playerOverlayRenderer&&L.playerOverlayRenderer.autoplay);L=H.gV&&L;return!H.ypcPreview&&(!f||b)&&!g.kO(H.De,"ypc")&& !Q&&(!g.xh(z)||L)}; mDa=function(Q){Q=Q.app.X$();if(!Q)return!1;var z=Q.getVideoData();if(!z.B||!z.B.video||z.B.video.Z<1080||z.FJ)return!1;var H=/^qsa/.test(z.clientPlaybackNonce),f="r";z.B.id.indexOf(";")>=0&&(H=/^[a-p]/.test(z.clientPlaybackNonce),f="x");return H?(Q.On("iqss",{trigger:f},!0),!0):!1}; PG=function(){ih.apply(this,arguments);this.requestHeaders={}}; UZ=function(){ag||(ag=new PG);return ag}; cG=function(Q,z){z?Q.requestHeaders.Authorization="Bearer "+z:delete Q.requestHeaders.Authorization}; g.ij=function(Q){var z=this;this.HI=Q;this.Po={fL5:function(){return z.HI}}}; g.hf=function(Q,z,H,f){f=f===void 0?!1:f;g.Ca.call(this,z);var b=this;this.K=Q;this.De=f;this.N=new g.Bt(this);this.Ze=new g.H6(this,H,!0,void 0,void 0,function(){b.fu()}); g.W(this,this.N);g.W(this,this.Ze)}; WG=function(Q){var z=Q.K.getRootNode();return Q.K.V("web_watch_pip")||Q.K.V("web_shorts_pip")?W3(z):document}; wSY=function(Q){Q.B&&(document.activeElement&&g.XU(Q.element,document.activeElement)&&Q.B.focus(),Q.B.setAttribute("aria-expanded","false"),Q.B=void 0);g.Aq(Q.N);Q.U=void 0}; Da=function(Q,z,H){Q.A9()?Q.fH():Q.ir(z,H)}; KR=function(Q,z,H,f){f=new g.m({G:"div",lT:["ytp-linked-account-popup-button"],BI:f,T:{role:"button",tabindex:"0"}});z=new g.m({G:"div",J:"ytp-linked-account-popup",T:{role:"dialog","aria-modal":"true",tabindex:"-1"},W:[{G:"div",J:"ytp-linked-account-popup-title",BI:z},{G:"div",J:"ytp-linked-account-popup-description",BI:H},{G:"div",J:"ytp-linked-account-popup-buttons",W:[f]}]});g.hf.call(this,Q,{G:"div",J:"ytp-linked-account-popup-container",W:[z]},100);var b=this;this.dialog=z;g.W(this,this.dialog); f.listen("click",function(){b.fH()}); g.W(this,f);g.sZ(this.K,this.element,4);this.hide()}; g.dX=function(Q,z,H,f){g.Ca.call(this,Q);this.priority=z;H&&g.Vw(this,H);f&&this.UV(f)}; g.mh=function(Q,z,H,f){Q=Q===void 0?{}:Q;z=z===void 0?[]:z;H=H===void 0?!1:H;f=f===void 0?!1:f;z.push("ytp-menuitem");var b=Q;"role"in b||(b.role="menuitem");H||(b=Q,"tabindex"in b||(b.tabindex="0"));Q={G:H?"a":"div",lT:z,T:Q,W:[{G:"div",J:"ytp-menuitem-icon",BI:"{{icon}}"},{G:"div",J:"ytp-menuitem-label",BI:"{{label}}"},{G:"div",J:"ytp-menuitem-content",BI:"{{content}}"}]};f&&Q.W.push({G:"div",J:"ytp-menuitem-secondary-icon",BI:"{{secondaryIcon}}"});return Q}; g.Vw=function(Q,z){Q.updateValue("label",z)}; wX=function(Q){g.dX.call(this,g.mh({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var z=this;this.K=Q;this.B=this.Z=!1;this.kt=Q.S0();Q.createServerVe(this.element,this,!0);this.X(this.K,"settingsMenuVisibilityChanged",function(H){z.pH(H)}); this.X(this.K,"videodatachange",this.D);this.listen("click",this.onClick);this.D()}; k1=function(Q){return Q?g.pa(Q):""}; TI=function(Q){g.h.call(this);this.api=Q}; e1=function(Q){TI.call(this,Q);var z=this;S1(Q,"setAccountLinkState",function(H){z.setAccountLinkState(H)}); S1(Q,"updateAccountLinkingConfig",function(H){z.updateAccountLinkingConfig(H)}); Q.addEventListener("videodatachange",function(H,f){z.onVideoDataChange(f)}); Q.addEventListener("settingsMenuInitialized",function(){z.menuItem=new wX(z.api);g.W(z,z.menuItem)})}; kxa=function(Q){this.api=Q;this.Z={}}; lj=function(Q,z,H,f){z in Q.Z||(H=new g.HD(H,f,{id:z,priority:2,namespace:"appad"}),Q.api.UZ([H],1),Q.Z[z]=H)}; Rg=function(Q){TI.call(this,Q);var z=this;this.events=new g.Bt(this);g.W(this,this.events);this.Z=new kxa(this.api);this.events.X(this.api,"legacyadtrackingpingreset",function(){z.Z.Z={}}); this.events.X(this.api,"legacyadtrackingpingchange",function(H){var f=z.Z;lj(f,"part2viewed",1,0x8000000000000);lj(f,"engagedview",Math.max(1,H.Xa*1E3),0x8000000000000);if(!H.isLivePlayback){var b=H.lengthSeconds*1E3;H7(H)&&f.api.V("html5_shorts_gapless_ads_duration_fix")&&(b=f.api.getProgressState().seekableEnd*1E3-H.lD);lj(f,"videoplaytime25",b*.25,b);lj(f,"videoplaytime50",b*.5,b);lj(f,"videoplaytime75",b*.75,b);lj(f,"videoplaytime100",b,0x8000000000000);lj(f,"conversionview",b,0x8000000000000); lj(f,"videoplaybackstart",1,b);lj(f,"videoplayback2s",2E3,b);lj(f,"videoplayback10s",1E4,b)}}); this.events.X(this.api,g.bc("appad"),this.B);this.events.X(this.api,g.Li("appad"),this.B)}; RsL=function(Q,z,H){if(!(H in z))return!1;z=z[H];Array.isArray(z)||(z=[z]);z=g.n(z);for(H=z.next();!H.done;H=z.next()){H=H.value;var f={CPN:Q.api.getVideoData().clientPlaybackNonce};H=g.YW(H,f);f=void 0;f=f===void 0?!1:f;(f=kJ(T3(H,TMJ),H,f,"Active View 3rd Party Integration URL"))||(f=void 0,f=f===void 0?!1:f,f=kJ(T3(H,es9),H,f,"Google/YouTube Brand Lift URL"));f||(f=void 0,f=f===void 0?!1:f,f=kJ(T3(H,lOp),H,f,"Nielsen OCR URL"));g.WU(H,void 0,f)}return!0}; QW=function(Q,z){QAY(Q,z).then(function(H){g.WU(z,void 0,void 0,H)})}; zG=function(Q,z){z.forEach(function(H){QW(Q,H)})}; QAY=function(Q,z){return g.OV(Q.api.C())&&qn(z)&&yC(z)?g.zZ(Q.api.C(),g.hM(Q.api.getVideoData())).then(function(H){var f;H&&(f={Authorization:"Bearer "+H});return f},void 0):B2()}; z6A=function(Q){TI.call(this,Q);this.events=new g.Bt(Q);g.W(this,this.events);this.events.X(Q,"videoready",function(z){if(Q.getPresentingPlayerType()===1){var H,f,b={playerDebugData:{pmlSignal:!!((H=z.getPlayerResponse())==null?0:(f=H.adPlacements)==null?0:f.some(function(L){var u;return L==null?void 0:(u=L.adPlacementRenderer)==null?void 0:u.renderer})), contentCpn:z.clientPlaybackNonce}};g.y5("adsClientStateChange",b)}})}; HN=function(Q){g.m.call(this,{G:"button",lT:["ytp-button"],T:{title:"{{title}}","aria-label":"{{label}}","data-priority":"2","data-tooltip-target-id":"ytp-autonav-toggle-button"},W:[{G:"div",J:"ytp-autonav-toggle-button-container",W:[{G:"div",J:"ytp-autonav-toggle-button",T:{"aria-checked":"true"}}]}]});this.K=Q;this.B=[];this.Z=!1;this.isChecked=!0;Q.createClientVe(this.element,this,113681);this.X(Q,"presentingplayerstatechange",this.c_);this.listen("click",this.onClick);this.K.C().V("web_player_autonav_toggle_always_listen")&& HE9(this);Fv(Q,this.element,this);this.c_()}; HE9=function(Q){Q.B.push(Q.X(Q.K,"videodatachange",Q.c_));Q.B.push(Q.X(Q.K,"videoplayerreset",Q.c_));Q.B.push(Q.X(Q.K,"onPlaylistUpdate",Q.c_));Q.B.push(Q.X(Q.K,"autonavchange",Q.Wh))}; fJY=function(Q){Q.isChecked=Q.isChecked;Q.Mc("ytp-autonav-toggle-button").setAttribute("aria-checked",String(Q.isChecked));var z=Q.isChecked?"Auto-play is on":"Auto-play is off";Q.updateValue("title",z);Q.updateValue("label",z);Q.K.UX()}; bE6=function(Q){return Q.K.C().V("web_player_autonav_use_server_provided_state")&&TZ(Q.Iq())}; LNJ=function(Q){TI.call(this,Q);var z=this;this.events=new g.Bt(Q);g.W(this,this.events);this.events.X(Q,"standardControlsInitialized",function(){var H=new HN(Q);g.W(z,H);Q.GJ(H,"RIGHT_CONTROLS_LEFT")})}; fK=function(Q,z){g.dX.call(this,g.mh({role:"menuitemcheckbox","aria-checked":"false"}),z,Q,{G:"div",J:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; bo=function(Q,z){Q.checked=z;Q.element.setAttribute("aria-checked",String(Q.checked))}; u_n=function(Q){var z=!Q.C().Ef&&Q.getPresentingPlayerType()!==3;return Q.isFullscreen()||z}; g.LK=function(Q,z,H,f){var b=Q.currentTarget;if((H===void 0||!H)&&g.Ox(Q))return Q.preventDefault(),!0;z.pauseVideo();Q=b.getAttribute("href");g.Dh(Q,f,!0);return!1}; g.uo=function(Q,z,H){if(Ko(z.C())&&z.getPresentingPlayerType()!==2){if(g.Ox(H))return z.isFullscreen()&&!z.C().externalFullscreen&&z.toggleFullscreen(),H.preventDefault(),!0}else{var f=g.Ox(H);f&&z.pauseVideo();g.Dh(Q,void 0,!0);f&&(g.Kp(Q),H.preventDefault())}return!1}; XBA=function(){var Q=SWa.includes("en-GB")?{G:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",w4:!0,T:{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"}}]}:{G:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",w4:!0,T:{d:"M11,11 C9.9,11 9,11.9 9,13 L9,23 C9,24.1 9.9,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M11,17 L14,17 L14,19 L11,19 L11,17 L11,17 Z M20,23 L11,23 L11,21 L20,21 L20,23 L20,23 Z M25,23 L22,23 L22,21 L25,21 L25,23 L25,23 Z M25,19 L16,19 L16,17 L25,17 L25,19 L25,19 Z",fill:"#fff"}}]};Q.J="ytp-subtitles-button-icon";return Q}; Sf=function(){return{G:"div",J:"ytp-spinner-container",W:[{G:"div",J:"ytp-spinner-rotator",W:[{G:"div",J:"ytp-spinner-left",W:[{G:"div",J:"ytp-spinner-circle"}]},{G:"div",J:"ytp-spinner-right",W:[{G:"div",J:"ytp-spinner-circle"}]}]}]}}; X1=function(Q){if(document.createRange){var z=document.createRange();z&&(z.selectNodeContents(Q),Q=window.getSelection())&&(Q.removeAllRanges(),Q.addRange(z))}}; qF=function(Q){var z=Q.V("web_player_use_cinematic_label_2")?"Ambient mode":"Cinematic lighting";fK.call(this,z,g.vN.cH);var H=this;this.K=Q;this.Z=!1;this.B=new g.e_(function(){g.vO(H.element,"ytp-menuitem-highlighted")},0); this.kt=Q.S0();this.setIcon({G:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{G:"path",T:{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.L,this);this.listen(yW,this.D);g.W(this,this.B)}; MF=function(Q){TI.call(this,Q);var z=this;this.Z=!1;Q.addEventListener("settingsMenuInitialized",function(){vA9(z)}); Q.addEventListener("highlightSettingsMenu",function(H){vA9(z);var f=z.menuItem;H==="menu_item_cinematic_lighting"&&(g.SK(f.element,"ytp-menuitem-highlighted"),g.SK(f.element,"ytp-menuitem-highlight-transition-enabled"),f.B.start())}); S1(Q,"updateCinematicSettings",function(H){z.updateCinematicSettings(H)})}; vA9=function(Q){Q.menuItem||(Q.menuItem=new qF(Q.api),g.W(Q,Q.menuItem),Q.menuItem.Jh(Q.Z))}; CK=function(Q){TI.call(this,Q);var z=this;this.events=new g.Bt(Q);g.W(this,this.events);this.events.X(Q,"applicationvideodatachange",function(H,f){z.nw(H,f)})}; tv=function(Q){TI.call(this,Q);this.events=new g.Bt(Q);g.W(this,this.events);S1(Q,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));S1(Q,"setCreatorEndscreenHideButton",this.Z.bind(this))}; EJ=function(Q,z,H,f){fK.call(this,"Stable volume",g.vN.yU);g.SK(this.element,"ytp-drc-menu-item");this.kt=Q.S0();this.D=z;this.Z=H;this.hasDrcAudioTrack=f;Q.addEventListener("videodatachange",this.B.bind(this));Q.V("mta_drc_mutual_exclusion_removal")&&this.X(Q,"onPlaybackAudioChange",this.B);Q=this.Z()===1&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());this.setIcon({G:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{G:"path",T:{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.L,this);bo(this,Q);this.kt.md(this)}; pK=function(Q){TI.call(this,Q);var z=this;this.events=new g.Bt(Q);g.W(this,this.events);Q.V("html5_show_drc_toggle")&&Q.addEventListener("settingsMenuInitialized",function(){z.menuItem||(z.menuItem=new EJ(z.api,z.setDrcUserPreference.bind(z),z.getDrcUserPreference.bind(z),z.B.bind(z)),g.W(z,z.menuItem))}); S1(this.api,"setDrcUserPreference",function(f){z.setDrcUserPreference(f)}); S1(this.api,"getDrcUserPreference",function(){return z.getDrcUserPreference()}); S1(this.api,"hasDrcAudioTrack",function(){return z.B()}); var H;this.Z=(H=g.Pw("yt-player-drc-pref"))!=null?H:1;this.updateEnvironmentData()}; nK=function(Q){TI.call(this,Q);var z=this;this.Z={};this.events=new g.Bt(Q);g.W(this,this.events);this.events.X(Q,"videodatachange",function(){z.onVideoDataChange()}); this.events.X(Q,g.bc("embargo"),function(H){z.api.C4(!0);var f,b=(f=z.Z[H.id])!=null?f:[];f=g.n(b);for(b=f.next();!b.done;b=f.next()){var L=b.value;z.api.hideControls();z.api.VN("auth",2,"This video isn't available in your current playback area",xK({embargoed:1,id:H.id,idx:H.B,start:H.start}));b=void 0;(L=(b=L.embargo)==null?void 0:b.onTrigger)&&z.api.F$("innertubeCommand",L)}})}; yKJ=function(Q,z){var H;return(H=z.onEnter)==null?void 0:H.some(Q.B)}; qWY=function(Q,z){z=g.n(z);for(var H=z.next();!H.done;H=z.next()){H=H.value;var f=void 0,b=Number((f=H.playbackPosition)==null?void 0:f.utcTimeMillis)/1E3,L=void 0;f=b+Number((L=H.duration)==null?void 0:L.seconds);L="embargo_"+b;Q.api.addUtcCueRange(L,b,f,"embargo",!1);H.onEnter&&(Q.Z[L]=H.onEnter.filter(Q.B))}}; gz=function(Q){TI.call(this,Q);var z=this;this.Z=[];this.events=new g.Bt(Q);g.W(this,this.events);S1(Q,"addEmbedsConversionTrackingParams",function(H){z.api.C().mZ&&z.addEmbedsConversionTrackingParams(H)}); this.events.X(Q,"veClickLogged",function(H){z.api.hasVe(H)&&(H=uR(H.visualElement.getAsJspb(),2),z.Z.push(H))})}; MJk=function(Q){TI.call(this,Q);S1(Q,"isEmbedsShortsMode",function(){return Q.isEmbedsShortsMode()})}; CML=function(Q){TI.call(this,Q);var z=this;this.events=new g.Bt(Q);g.W(this,this.events);this.events.X(Q,"initialvideodatacreated",function(H){xA(F_(),16623);z.Z=g.ox();var f=Q.C().C2&&!H.D6;if(c7(H)&&f){xA(F_(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(H.getWatchNextResponse()){var b,L=(b=H.getWatchNextResponse())==null?void 0:b.trackingParams;L&&oA(L)}if(H.getPlayerResponse()){var u;(H=(u=H.getPlayerResponse())==null?void 0:u.trackingParams)&&oA(H)}}else xA(F_(), 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),H.getEmbeddedPlayerResponse()&&(u=(L=H.getEmbeddedPlayerResponse())==null?void 0:L.trackingParams)&&oA(u)}); this.events.X(Q,"loadvideo",function(){xA(F_(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:z.Z})}); this.events.X(Q,"cuevideo",function(){xA(F_(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:z.Z})}); this.events.X(Q,"largeplaybuttonclicked",function(H){xA(F_(),27240,H.visualElement)}); this.events.X(Q,"playlistnextbuttonclicked",function(H){xA(F_(),27240,H.visualElement)}); this.events.X(Q,"playlistprevbuttonclicked",function(H){xA(F_(),27240,H.visualElement)}); this.events.X(Q,"playlistautonextvideo",function(){xA(F_(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; Z_=function(Q,z){g.h.call(this);var H=this;this.Z=null;this.L=z;z=[];for(var f=0;f<=100;f++)z.push(f/100);z={threshold:z,trackVisibility:!0,delay:1E3};(this.B=window.IntersectionObserver?new IntersectionObserver(function(b){b=b[b.length-1];typeof b.isVisible==="undefined"?document.visibilityState==="visible"&&b.isIntersecting&&b.intersectionRatio>0?H.Z=b.intersectionRatio:document.visibilityState==="hidden"?H.Z=0:H.Z=null:H.Z=b.isVisible?b.intersectionRatio:0;typeof H.L==="function"&&H.L(H.Z)},z): null)&&this.B.observe(Q)}; EAJ=function(Q){TI.call(this,Q);var z=this;this.events=new g.Bt(Q);g.W(this,this.events);this.events.X(Q,"applicationInitialized",function(){tJZ(z)})}; tJZ=function(Q){var z=Q.api.getRootNode(),H=z;if(!Q.api.V("embeds_emc3ds_inview_ks")){var f;H=Q.api.getWebPlayerContextConfig().embedsEnableEmc3ds?((f=z.parentElement)==null?void 0:f.parentElement)||z:z}Q.Z=new Z_(H,function(b){b!=null&&(Q.api.C().Uu=b,Q.api.C().gt="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")}); g.W(Q,Q.Z);Q.events.X(Q.api,"videoStatsPingCreated",function(b){var L=Q.Z;L=L.Z==null?null:Math.round(L.Z*100)/100;b.inview=L!=null?L:void 0;L=Q.api.getPlayerSize();if(L.height>0&&L.width>0){L=[Math.round(L.width),Math.round(L.height)];var u=g.dm();u>1&&L.push(u);L=L.join(":")}else L=void 0;b.size=L})}; pBL=function(Q){var z;return((z=((Q==null?void 0:Q.messageRenderers)||[]).find(function(H){return!!H.timeCounterRenderer}))==null?void 0:z.timeCounterRenderer)||null}; GG=function(Q){g.m.call(this,{G:"div",lT:["ytp-player-content","ytp-iv-player-content"],W:[{G:"div",J:"ytp-free-preview-countdown-timer",W:[{G:"span",BI:"{{label}}"},{G:"span",J:"ytp-free-preview-countdown-timer-separator",BI:"\u2022"},{G:"span",BI:"{{duration}}"}]}]});this.api=Q;this.Z=null;this.L=this.B=0;this.X(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; gAk=function(Q,z){Q.Z||(Q.B=z,Q.L=(0,g.NV)(),Q.Z=new g.wN(function(){nAL(Q)},null),nAL(Q))}; nAL=function(Q){var z=Math,H=z.round,f=Math.min((0,g.NV)()-Q.L,Q.B);z=H.call(z,(Q.B-f)/1E3);Q.updateValue("duration",pE({seconds:z}));z<=0&&Q.Z?$n(Q):Q.Z&&Q.Z.start()}; $n=function(Q){Q.Z&&(Q.Z.dispose(),Q.Z=null)}; ZE6=function(Q){TI.call(this,Q);var z=this;this.events=new g.Bt(Q);g.W(this,this.events);this.events.X(Q,"basechromeinitialized",function(){z.Z=new GG(Q);g.W(z,z.Z);g.sZ(Q,z.Z.element,4);z.Z.hide()})}; jf=function(Q){g.m.call(this,{G:"button",lT:["ytp-fullerscreen-edu-button","ytp-button"],W:[{G:"div",lT:["ytp-fullerscreen-edu-text"],BI:"Scroll for details"},{G:"div",lT:["ytp-fullerscreen-edu-chevron"],W:[{G:"svg",T:{height:"100%",viewBox:"0 0 24 24",width:"100%"},W:[{G:"path",T:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],T:{"data-priority":"1"}});this.Yv=Q;this.Z=new g.H6(this,250,void 0,100);this.L=this.B=!1;Q.createClientVe(this.element,this,61214);g.W(this, this.Z);this.X(Q,"fullscreentoggled",this.Jh);this.X(Q,"presentingplayerstatechange",this.Jh);this.listen("click",this.onClick);this.Jh()}; F1=function(Q){TI.call(this,Q);var z=this;this.events=new g.Bt(Q);g.W(this,this.events);S1(this.api,"updateFullerscreenEduButtonSubtleModeState",function(f){z.updateFullerscreenEduButtonSubtleModeState(f)}); S1(this.api,"updateFullerscreenEduButtonVisibility",function(f){z.updateFullerscreenEduButtonVisibility(f)}); var H=Q.C();Q.V("external_fullscreen_with_edu")&&H.externalFullscreen&&Ko(H)&&H.controlsType==="1"&&this.events.X(Q,"standardControlsInitialized",function(){z.Z=new jf(Q);g.W(z,z.Z);Q.GJ(z.Z)})}; G09=function(Q){g.m.call(this,{G:"div",J:"ytp-gated-actions-overlay",W:[{G:"div",J:"ytp-gated-actions-overlay-background",W:[{G:"div",J:"ytp-gated-actions-overlay-background-overlay"}]},{G:"button",lT:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],T:{"aria-label":"Close"},W:[g.jE()]},{G:"div",J:"ytp-gated-actions-overlay-bar",W:[{G:"div",J:"ytp-gated-actions-overlay-text-container",W:[{G:"div",J:"ytp-gated-actions-overlay-title",BI:"{{title}}"},{G:"div",J:"ytp-gated-actions-overlay-subtitle", BI:"{{subtitle}}"}]},{G:"div",J:"ytp-gated-actions-overlay-button-container"}]}]});var z=this;this.api=Q;this.background=this.Mc("ytp-gated-actions-overlay-background");this.B=this.Mc("ytp-gated-actions-overlay-button-container");this.Z=[];this.X(this.Mc("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){z.api.F$("onCloseMiniplayer")}); this.hide()}; jAZ=function(Q,z){var H=0;H=0;for(var f={};H b&&(b=X.width,L="url("+X.url+")")}H.background.style.backgroundImage=L;jAZ(H,f.actionButtons||[]);H.show()}else H.hide()}); g.sZ(this.api,this.Z.element,4)}; xn=function(Q){TI.call(this,Q);var z=this;vG(this.api,"getSphericalProperties",function(){return z.getSphericalProperties()}); vG(this.api,"setSphericalProperties",function(){z.setSphericalProperties.apply(z,g.F(g.A8.apply(0,arguments)))}); Xv(this.api,"getSphericalProperties",function(){return z.api.getPresentingPlayerType()===2?{}:z.getSphericalProperties()}); Xv(this.api,"setSphericalProperties",function(){var H=g.A8.apply(0,arguments);z.api.getPresentingPlayerType()!==2&&z.setSphericalProperties.apply(z,g.F(H))})}; OJ=function(Q){TI.call(this,Q);S1(Q,"createClientVe",this.createClientVe.bind(this));S1(Q,"createServerVe",this.createServerVe.bind(this));S1(Q,"destroyVe",this.destroyVe.bind(this));S1(Q,"hasVe",this.hasVe.bind(this));S1(Q,"logClick",this.logClick.bind(this));S1(Q,"logVisibility",this.logVisibility.bind(this));S1(Q,"setTrackingParams",this.setTrackingParams.bind(this))}; oM=function(Q,z,H,f){function b(u){var X=!(u.status!==204&&u.status!==200&&!u.response),v;u={succ:""+ +X,rc:u.status,lb:((v=u.response)==null?void 0:v.byteLength)||0,rt:((0,g.NV)()-L).toFixed(),shost:g.c4(Q),trigger:z};x1Y(u,Q);H&&H(u);f&&!X&&f(new Oh("pathprobe.net",u))} var L=(0,g.NV)();g.JF(Q,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:b,onTimeout:b})}; x1Y=function(Q,z){var H;((H=window.performance)==null?0:H.getEntriesByName)&&(z=performance.getEntriesByName(z))&&z.length&&(z=z[0],Q.pedns=(z.domainLookupEnd-z.startTime).toFixed(),Q.pecon=(z.connectEnd-z.domainLookupEnd).toFixed(),Q.perqs=(z.requestStart-z.connectEnd).toFixed(),OEc&&(Q.perqsa=z.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; Jv=function(Q,z){this.L5=Q;this.policy=z;this.playbackRate=1}; oAn=function(Q,z){var H=Math.min(2.5,tE(Q.L5));Q=NF(Q);return z-H*Q}; IM=function(Q,z,H,f,b){b=b===void 0?!1:b;if(Q.policy.vN)return Math.ceil(Q.policy.vN*z);Q.policy.B5&&(f=Math.abs(f));f/=Q.playbackRate;var L=1/no(Q.L5);H=Math.max(.9*(f-3),tE(Q.L5)+Q.L5.B.Z*L)/L*.8/(z+H);H=Math.min(H,f);Q.policy.fZ>0&&b&&(H=Math.max(H,Q.policy.fZ));return JK9(Q,H,z)}; JK9=function(Q,z,H){return Math.ceil(Math.max(Math.max(Q.policy.rz,Q.policy.Ss*H),Math.min(Math.min(Q.policy.En,31*H),Math.ceil(z*H))))||Q.policy.rz}; NZ8=function(Q,z,H){H=IM(Q,z.Z.info.oi,H.Z.info.oi,0);var f=tE(Q.L5)+H/no(Q.L5);return Math.max(f,f+Q.policy.TK-H/z.Z.info.oi)}; NF=function(Q){return no(Q.L5,!Q.policy.W7,Q.policy.l5)}; Av=function(Q){return NF(Q)/Q.playbackRate}; Yn=function(Q,z,H){var f=Q.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],b=Q.policy.playbackStartPolicy.startMinReadaheadPolicy||[];Q=Infinity;z=g.n(z&&f.length>0?f:b);for(f=z.next();!f.done;f=z.next())f=f.value,b=f.minReadaheadMs||0,H<(f.minBandwidthBytesPerSec||0)||Q>b&&(Q=b);return Q0&&(this.B=H.rp)}; rKc=function(Q,z,H,f,b){if(!f.info.S){if(H.length===0)H.push(f);else{var L;(Q=(L=H.pop())==null?void 0:g.Tz(L,f))?H.push(Q):H.push(f)}return b}var u;(H=(u=H.pop())==null?void 0:g.Tz(u,f))||(H=f);if(Q.policy.p5&&H.info.B)return Q.logger&&Q.logger({incompleteSegment:H.info.aq()}),b;u=Q.Ec(H);f=u.formatId;b=u.Ah;H=u.clipId;L=u.Rp;u=u.startTimeMs;if(!Q.policy.j2&&Q.policy.B&&Q.J7){var X=sJ(Q.J7,H);u+=X}f={clipId:H,formatId:f,startTimeMs:u,durationMs:L,t9:b,Rz:b};b=IJY(z,f.startTimeMs);(H=b>=0?z[b]:null)&& AKc(Q,H,f)?f=H:(b+=1,z.splice(b,0,f));H=0;for(L=b+1;L=y+u.B?u=!0:q+u.B=0?Q:-Q-2}; sA6=function(Q,z){if(Q.nH){var H=Q.nH.N4();if(H.length!==0){if(Q.L&&z){var f=Q.L,b=f.info.D;!SP(H,b)&&f.info.N>0&&(0,g.NV)()-Q.j<5E3&&(Q.logger&&Q.logger({dend:f.info.aq()}),H=F58(H,b,b+.01))}Q.policy.ax&&Q.logger&&Q.logger({cbri:""+Q.Z});f=[];for(var L=b=0;b=u){var q=0;if(Q.J7){var M=BN(Q.J7,v*1E3);M&&(q=M.hB/1E3)}M=Object.assign({},Q.ue[L]);var C=Q.n3.L.get(jA(Q.ue[L].formatId)), t=Math.max(v,u);u=C.index.EX(t+Q.B/1E3-q);v=C.index.getStartTime(u)+q;var E=u+ +(Math.abs(v-t)>Q.B/1E3);t=E+Q.D;E=(C.index.getStartTime(E)+q)*1E3;L!==Q.Z||z?(M.t9=t,M.startTimeMs=E):(Q.logger&&Q.logger({pEvict:"1",og:M.startTimeMs,adj:v*1E3}),M.t9=u+Q.D,M.startTimeMs=v*1E3);u=void 0;v=((u=Q.L)==null?void 0:u.info.duration)||11;L===Q.Z&&XQ.B/1E3);u=v+Q.D;q=(C.index.r0(v)+q)*1E3;M.Rz=u;M.durationMs=q-M.startTimeMs;M.t9<=M.Rz&&f.push(M)}yQ.B)return!1;if(YWJ(Q,z.formatId,H.formatId))return z.durationMs=Math.max(f,b)-z.startTimeMs,z.Rz=Math.max(z.Rz,H.Rz),!0;if(Math.abs(z.startTimeMs-H.startTimeMs)<=Q.B){if(z.durationMs>H.durationMs+Q.B){Q=z.formatId;var L=z.t9,u=z.Rz;z.formatId=H.formatId;z.durationMs=H.durationMs;z.t9=H.t9;z.Rz=H.Rz;H.formatId=Q;H.startTimeMs=b;H.durationMs=f-b;H.t9=L;H.Rz=u;return!1}z.formatId=H.formatId;return!0}f> H.startTimeMs&&(z.durationMs=H.startTimeMs-z.startTimeMs,z.clipId===H.clipId&&(z.Rz=H.t9-1));return!1}; YWJ=function(Q,z,H){return z.itag!==H.itag||z.xtags!==H.xtags?!1:Q.n3.AZ||z.lmt===H.lmt}; aJA=function(Q,z,H){if(Q.logger){for(var f=[],b=0;b=0&&io(Q.audioTrack,Q.Z)>=0&&L?((Q.videoTrack.S||Q.audioTrack.S)&&Q.xv.On("iterativeSeeking",{status:"done",count:Q.seekCount}),Q.videoTrack.S=!1,Q.audioTrack.S=!1):f&&g.qH(function(){if(Q.B||!Q.policy.yE)D_(Q);else{var u=z.startTime,X=z.duration;if(!Q.policy.j){var v=H?Q.videoTrack.S:Q.audioTrack.S,y=Q.videoTrack.j!==-1&&Q.audioTrack.j!==-1,q=Q.Z>=u&&Q.Z432E3&&vdu(Q.n3);Q.L&&(b=Q.L,Q.L=0);g.qH(function(){Q.policy.j||KK(Q,b,102)}); Q.xv.On("initManifestlessSync",{st:b,ost:b+Q.xv.ex(),a:Q.audioTrack.j,v:Q.videoTrack.j});Q.D&&(Q.D.resolve(b+.1),Q.D=null);Q.policy.j&&KK(Q,b,102)}}}; mp=function(Q,z){var H=this;this.zL=Q;this.requestNumber=++m1Y;this.Z=this.now();this.N=this.U=NaN;this.Y=this.Z;this.L=this.EY=this.S=0;this.j=this.Z;this.C3=this.wh=this.f3=this.gT=this.UY=this.De=this.B=this.D=0;this.Ze=this.isActive=!1;this.KH=this.rT=0;this.Po={dte:function(){return H.Aj}}; this.L5=z.L5;this.snapshot=wRp(this.L5);this.policy=this.L5.B;this.oD=!!z.oD;this.eJ=z.eJ;this.QF=z.QF||0;this.V9=z.V9||0;z.vV&&(this.yl=new Lo);var f;this.Aj=(f=z.Aj)!=null?f:!1;this.oD||Vmn(this.L5)}; wBL=function(Q){Q.f3=Math.max(Q.f3,Q.S-Q.UY);Q.wh=Math.max(Q.wh,Q.Y-Q.gT);Q.De=0}; wz=function(Q,z,H){dvk(Q.L5,z);Q.yl&&(Q.yl.add(Math.ceil(z)-Math.ceil(Q.Y)),Q.yl.add(Math.max(0,Math.ceil(H/1024)-Math.ceil(Q.S/1024))));var f=z-Q.Y,b=H-Q.S;Q.EY=b;Q.C3=Math.max(Q.C3,b/(f+.01)*1E3);Q.Y=z;Q.S=H;Q.De&&H>Q.De&&wBL(Q)}; kn=function(Q,z){Q.url=z;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; TG=function(Q,z){mp.call(this,Q,z);this.ZJ=this.Xa=!1;this.jm=this.L3=Infinity;this.mq=NaN;this.yE=!1;this.WI=NaN;this.Wz=this.En=this.iT=0;this.TJ=z.TJ||1;this.fS=z.fS||this.TJ;this.Xc=z.Xc;this.Ah=z.Ah;this.Ds=z.Ds;k09(this);this.U5(this.Z);this.gh=(this.WI-this.Z)/1E3}; TZ9=function(Q){var z=Q.En||Q.iT;return z?Q.snapshot.delay+Math.min(Q.V9,(Q.N-Q.U)/1E3)+z:Q.gh}; ef=function(Q,z,H){if(!Q.oD){z=Math.max(z,.01);var f=Q.QF?Math.max(z,H/Q.QF):z,b=Q.L5.B.L;b&&(f=z,Q.QF&&(f=Math.max(z,H/Q.QF*b)));q$(Q.L5,z,H,f)}}; e6k=function(Q){return(Q.j-Q.Z)/1E3}; k09=function(Q){Q.mq=Q.Z+Q.snapshot.delay*1E3;Q.yE=!1}; lo=function(Q,z){if(Q.Xc&&Q.Ah!==void 0&&Q.Ds!==void 0){var H=Math,f=H.min,b=Q.L3;var L=Q.Xc;var u=Q.Z;if(lJv(L,Q.Ah))L=z;else{var X=0;L.e2&&(X=.2);L=u+(L.V9+X)*1E3}Q.L3=f.call(H,b,L);H=Math;f=H.min;b=Q.jm;L=Q.Xc;u=Q.Z;X=R6L(L,Q.Ah,Q.Ds);X!==2&&(z=X?z:u+L.V9*1E3,L.e2&&(z+=L.V9*1E3));Q.jm=f.call(H,b,z);Q.L3<=Q.Z?k09(Q):(Q.mq=Q.L3,Q.yE=!0)}}; Qra=function(Q,z){if(Q.rd(z,1)){var H=Q.getUint8(z);H=H<128?1:H<192?2:H<224?3:H<240?4:5}else H=0;if(H<1||!Q.rd(z,H))return[-1,z];if(H===1)Q=Q.getUint8(z++);else if(H===2)H=Q.getUint8(z++),Q=Q.getUint8(z++),Q=(H&63)+64*Q;else if(H===3){H=Q.getUint8(z++);var f=Q.getUint8(z++);Q=Q.getUint8(z++);Q=(H&31)+32*(f+256*Q)}else if(H===4){H=Q.getUint8(z++);f=Q.getUint8(z++);var b=Q.getUint8(z++);Q=Q.getUint8(z++);Q=(H&15)+16*(f+256*(b+256*Q))}else H=z+1,Q.focus(H),$S(Q,H,4)?Q=a7n(Q).getUint32(H-Q.P7,!0):(f= Q.getUint8(H+2)+256*Q.getUint8(H+3),Q=Q.getUint8(H)+256*(Q.getUint8(H+1)+256*f)),z+=5;return[Q,z]}; RM=function(Q){this.zL=Q;this.Z=new n4}; Qg=function(Q,z){this.info=Q;this.callback=z;this.state=1;this.Xs=this.aS=!1;this.bL=null}; zh8=function(Q){return g.NT(Q.info.Tv,function(z){return z.type===3})}; zh=function(Q,z,H,f){var b=this;f=f===void 0?{}:f;this.policy=z;this.zL=H;this.status=0;this.Z=new n4;this.B=0;this.Sm=this.D=this.L=!1;this.xhr=new XMLHttpRequest;this.xhr.open(f.method||"GET",Q);if(f.headers)for(Q=f.headers,z=g.n(Object.keys(Q)),H=z.next();!H.done;H=z.next())H=H.value,this.xhr.setRequestHeader(H,Q[H]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return b.Vx()}; this.xhr.onload=function(){return b.onDone()}; this.xhr.onerror=function(){return b.onError()}; this.xhr.fetch(function(L){b.Z.append(L);b.B+=L.length;L=(0,g.NV)();b.zL.n9(L,b.B)},function(){},f.body||null)}; Huu=function(Q,z){this.B=(new TextEncoder).encode(Q);this.Z=(new TextEncoder).encode(z)}; LeY=function(Q,z){var H,f,b;return g.B(function(L){if(L.Z==1){if(!z)return L.return(z);H=HA.Jb();f=new g.$9(Q.B);return g.Y(L,f.encrypt(z,Q.Z),2)}b=L.B;HA.gU("woe",H,Math.ceil(z.byteLength/16));return L.return(b)})}; yA6=function(Q,z){var H,f,b;return g.B(function(L){if(L.Z==1){if(!z)return L.return(z);H=HA.Jb();f=new g.$9(Q.B);return g.Y(L,f.decrypt(z,Q.Z),2)}b=L.B;HA.gU("wod",H,Math.ceil(z.byteLength/16));return L.return(b)})}; bu9=function(Q,z){var H=this;this.Z=Q;this.zL=z;this.loaded=this.status=0;this.error="";Q=ON(this.Z.get("range")||"");if(!Q)throw Error("bad range");this.range=Q;this.B=new n4;fM6(this).then(function(){H.zL.z7()},function(f){H.error=""+f||"unknown_err"; H.zL.z7()})}; fM6=function(Q){var z,H,f,b,L,u,X,v,y,q,M,C,t,E,G;return g.B(function(x){if(x.Z==1){Q.status=200;z=Q.Z.get("docid");H=ee(Q.Z.get("fmtid")||"");f=Q.Z.get("lmt")||"0";b=+(Q.Z.get("csz")||0);if(!z||!H||!b)throw Error("Invalid local URL");Q.Z.get("ck")&&Q.Z.get("civ")&&(L=new Huu(Q.Z.get("ck"),Q.Z.get("civ")));u=Q.range;X=Math.floor(u.start/b);v=Math.floor(u.end/b);y=X}if(x.Z!=5)return y<=v?g.Y(x,qy9(z,H,f,y,L),5):x.bT(0);q=x.B;if(q===void 0)throw Error("invariant: data is undefined");M=y*b;C=(y+1)*b; t=Math.max(0,u.start-M);E=Math.min(u.end+1,C)-(t+M);G=new Uint8Array(q.buffer,t,E);Q.B.append(G);Q.loaded+=E;Q.loaded0&&(b.Z=Math.min(b.Z+u,10),b.B=L);b.Z>0?(b.Z--,b=!0):b=!1;if(b)typeof f==="function"&&(f=f()),console.log("plyr."+z,f);else{var X;f=((X=C$A.get(z))!=null?X:0)+1;C$A.set(z,f);f%100===1&&console.warn("plyr","plyr."+z+" is chatty, dropping logs.")}}}; Mla=function(){this.Z=10;this.B=Date.now()}; uk=function(Q,z){g.h.call(this);var H=this;this.policy=Q;this.Tv=z;this.B=0;this.Z=null;this.Ej=[];this.L=null;this.Po={aD:function(){return H.Tv}}; this.Tv.length===1||g.NT(this.Tv,function(f){return!!f.range})}; SS=function(Q,z,H){Q.Z&&(gt(Q.Z,z),z=Q.Z,Q.Z=null);for(var f=0,b=0,L=g.n(Q.Tv),u=L.next();!u.done;u=L.next())if(u=u.value,u.range&&f+u.L<=Q.B)f+=u.L;else{z.getLength();if(Id(u)&&!H&&Q.B+z.getLength()-b=400?(Q.lastError="net.badstatus",!0):(b===void 0?0:b)?(Q.lastError="ump.spsrejectfailure",!0):H||f!==void 0&&f?!1:(Q.lastError=z===204?"net.nocontent":"net.connect",!0)}; CH=function(Q,z){if(Q.policy.W_)return!1;var H=z.getResponseHeader("content-type"),f=z.l4();Q=!f||f<=Q.policy.R$;return(!z.yg()||!H||H.indexOf("text/plain")!==-1)&&Q}; Zun=function(Q,z){var H="";z=z.YZ();z.getLength()<=Q.policy.R$&&(H=goa(Q,z.K4()));return H}; goa=function(Q,z){var H=xS(z);return lY(H)?(Q.logger.debug(function(){return"Redirecting to "+H}),H):""}; vA=function(Q){return p_(Q.L,$o(Q.b8.XI))}; GQu=function(Q){var z=Q.timing.EU();z.shost=$o(Q.b8.XI);return z}; $B8=function(Q,z){return(Q==null?void 0:Q.maxWidth)>(z==null?void 0:z.maxWidth)||(Q==null?void 0:Q.maxHeight)>(z==null?void 0:z.maxHeight)}; jrv=function(Q,z){for(var H=g.n(z.keys()),f=H.next();!f.done;f=H.next())if(f=z.get(f.value),f.length!==0){g.Xk(f,function(X,v){return v.maxFramerate-X.maxFramerate}); for(var b=[f[0]],L=0,u=1;uQ.Z||H.push(f)}return H}; ts=function(Q,z,H){var f=Ouc[Q]||[];H.V("html5_shorts_onesie_mismatched_fix")&&(f=ooL[Q]||[]);z.push.apply(z,g.F(f));H.V("html5_early_media_for_drm")&&z.push.apply(z,g.F(J0J[Q]||[]))}; srv=function(Q,z){var H=g.uE(Q),f=Q.C(),b=f.S;f=f.V("html5_shorts_onesie_mismatched_fix");var L=Q.fq();if(f){if(!b.D){if(L&&Ef)return Ef;if(pH)return pH}}else if(pH&&!b.D)return pH;var u=[],X=[],v={},y=nH.concat(N8_);f&&(y=nH.concat(IMv));Q.V("html5_early_media_for_drm")&&(y=y.concat(A09),Q.V("allow_vp9_1080p_mq_enc")&&y.push(YYc));var q=[].concat(g.F(r0v));if(H.U)for(var M=0;MH.zw)){var G=g.qf(Q.C().experiments,"html5_drm_byterate_soft_cap");G>0&&$Zp(E)&&E.oi>G||(M?(u.push(t),ts(t,u,Q)):(E=qB(H,E,b),E===!0?(M=!0,u.push(t),ts(t,u,Q)):v[t]=E))}}}q=g.n(q);for(y=q.next();!y.done;y=q.next())for(y=g.n(y.value),M=y.next();!M.done;M=y.next())if(M= M.value,(C=nEA(M))&&C.audio&&(Q.V("html5_onesie_51_audio")||!w5(C)&&!kK(C)))if(C=qB(H,C,b),C===!0){X.push(M);ts(M,X,Q);break}else v[M]=C;H.B&&z("orfmts",v);if(f)return b.D&&(b.D=!1,Ef=pH=void 0),L?Ef={video:u,audio:X}:pH={video:u,audio:X};pH={video:u,audio:X};b.D=!1;return pH}; g.aMY=function(Q,z,H){var f=H.S,b=[],L=[],u=H.V("html5_shorts_onesie_mismatched_fix");Q=Q.fq();var X=nH.concat(N8_);u&&(X=nH.concat(IMv));H.V("html5_early_media_for_drm")&&(X=X.concat(A09),H.V("allow_vp9_1080p_mq_enc")&&X.push(YYc));var v=[].concat(g.F(r0v));if(z.U)for(var y=0;y0&&$Zp(M)&&M.oi>C)&&qB(z,M,f)===!0){b.push({videoCodec:B8k[Wt[q]],maxWidth:M.video.width,maxHeight:M.video.height,maxFramerate:M.video.fps});break}}}}u=g.n(v);for(Q=u.next();!Q.done;Q=u.next())for(Q=g.n(Q.value),v=Q.next();!v.done;v=Q.next())if(v=v.value,(X=nEA(v))&&X.audio&&(H.V("html5_onesie_51_audio")||!w5(X)&&!kK(X))&&qB(z,X,f)=== !0){L.push({audioCodec:P$J[Wt[v]],numChannels:X.audio.numChannels});break}return{videoFormatCapabilities:b,audioFormatCapabilities:L}}; gY=function(Q){var z={},H=Q.HI,f=Q.aj,b=H.getVideoData(),L=PB(0),u=H.getPlayerSize(),X=H.getVisibilityState();L&&(z.Dze=L,z.lastManualDirection=rOa(),L=fxa()||0,L>0&&(L=(f.V("html5_use_date_now_for_local_storage")?Date.now():(0,g.NV)())-L,f.V("html5_use_date_now_for_local_storage")?L>0&&(z.timeSinceLastManualFormatSelectionMs=L):z.timeSinceLastManualFormatSelectionMs=L));L=f.V("html5_use_streamer_bandwidth_for_low_latency_live")&&b.isLowLatencyLiveStream;if(f.schedule.Ze&&!L){var v;L=f.V("html5_disable_bandwidth_cofactors_for_sabr_live")? !((v=Q.Wo)==null||!v.W7):!1;z.Tm=no(f.schedule,!L)}v=g.dm();var y=g.Uh.medium,q=Math.floor(y*16/9);L=b.fq()?y:q;y=b.fq()?q:y;z.kD=Math.max(u.width*v,L);z.LJ=Math.max(u.height*v,y);z.visibility=X;z.NPv=NA();z.Td=H.B0()*1E3;u=Q.HI.b0(!0);var M,C,t,E,G,x;z.MHI={defaultPolicy:(u==null?void 0:(M=u.h2)==null?void 0:M.Z)||0,smooth:(u==null?void 0:(C=u.KYT)==null?void 0:C.Z)||0,visibility:(u==null?void 0:(t=u.l3v)==null?void 0:t.Z)||0,Hw:(u==null?void 0:(E=u.Oy)==null?void 0:E.Z)||0,performance:(u==null? void 0:(G=u.jf)==null?void 0:G.Z)||0,speed:(u==null?void 0:(x=u.fsn)==null?void 0:x.Z)||0};var J;z.nVh=(u==null?void 0:(J=u.mPv)==null?void 0:J.Z)||0;f.V("html5_enable_sabr_drm_hd720p")&&Q.sabrLicenseConstraint&&(z.sabrLicenseConstraint=Q.sabrLicenseConstraint);if(f.V("html5_onesie_media_capabilities")||f.V("html5_enable_server_format_filter"))z.Oc=3;f.V("html5_onesie_audio_only_playback")&&f9(b)&&(z.Oc=1);var I;((I=Q.Wo)==null?0:I.ZJ)&&Q.wzh&&(z.Oc=z.Oc===void 0?7:z.Oc|4);M=b.YJ?b.YJ:g.uE(b);f.V("html5_onesie_media_capabilities")&& (z.mediaCapabilities=g.aMY(b,M,f));var r;if((r=Q.Wo)==null?0:r.Z&&r.D6){t=f.S;r=[];C=[];E=new Map;f.V("html5_ssap_update_capabilities_on_change")?(t.Ze||cGp(t),G=t.Ze||[]):G=Array.from(t.Z.values());G=g.n(G);for(x=G.next();!x.done;x=G.next())J=x.value,J.Wq?C.push({audioCodec:P$J[J.Rj],numChannels:J.numChannels,spatialCapabilityBitmask:UBu[J.Rj]}):(I=B8k[J.Rj],x={videoCodec:I,maxWidth:J.maxWidth||0,maxHeight:J.maxHeight||0,maxFramerate:J.maxFramerate||0,is10BitSupported:J.Le||!1},J.maxBitrateBps&& (x.maxBitrateBps=J.maxBitrateBps,u=fv(J.itag),X=void 0,((X=u)==null?0:X.video)&&qB(M,u,t)===!0&&(u=u.oi*8,u>x.maxBitrateBps&&(x.maxBitrateBps=u))),J=I+"_"+J.Le,I=E.get(J)||[],I.push(x),E.set(J,I));r=jrv(r,E);t={};f.V("html5_ssff_denylist_opus_low")&&(t={itagDenylist:[249,350]});z.mediaCapabilities={videoFormatCapabilities:r,audioFormatCapabilities:C,hdrModeBitmask:3,perPlaybackAttributes:t}}var U;if((U=Q.Wo)==null?0:U.Z){z.LP=M.LP;var D;z.zw=(D=Q.Wo)==null?void 0:D.zw}f.sj&&(z.t2=f.sj);z.QZ=Q.IG; z.uJ=Q.uJ;z.Ik=Q.Ik;z.VT=Q.VT;if(f.V("html5_fix_time_since_last_seek_reporting")?Q.Yf!==void 0:Q.Yf)z.FYj=(0,g.NV)()-Q.Yf;Q.isPrefetch&&f.V("html5_report_prefetch_requests")&&(z.isPrefetch=!0);wS||(z.RSj=!0);U=tE(f.schedule)*1E3;U>0&&(z.Gd=U);var T;((T=Q.Wo)==null?0:T.oQ)&&Q.Nm&&Q.Nm0?k:f.schedule.interruptions[0]||0);var bL;if((bL=Q.Wo)==null?0:bL.Xa)z.jM=Q.jM;var SY;((SY=Q.Wo)==null?0:SY.va)&&b.qD&&(z.audioTrackId=b.qD);var Q9;if((Q9=Q.Wo)==null?0:Q9.NI)if(Q=gUc())z.detailedNetworkType=c0u[Q]||c0u.other;return z}; Zr=function(Q,z,H,f,b,L,u){var X={};z&&(X.Ca=z);if(!Q)return X;X.playbackCookie=H==null?void 0:H.playbackCookie;b&&(X.XN=b);X.tb=[];X.Ad=[];if(u==null?0:u.size)for(z=g.n(u.values()),H=z.next();!H.done;H=z.next())X.Ad.push(H.value);if(Q.sabrContextUpdates.size>0)for(z=g.n(Q.sabrContextUpdates.values()),H=z.next();!H.done;H=z.next())iuu(X,H.value,f);L9(Q)&&!g.mI(Q)&&Q.V("html5_enable_sabr_request_pipelining")&&L&&iuu(X,L,f);Q.Wp&&(X.DPe=Q.Wp);f=Q.C().Z;X.clientInfo={clientName:hhu[f.c.toUpperCase()]|| 0};f.cbrand&&(X.clientInfo.deviceMake=f.cbrand);f.cmodel&&(X.clientInfo.deviceModel=f.cmodel);f.cver&&(X.clientInfo.clientVersion=f.cver);f.cos&&(X.clientInfo.osName=f.cos);f.cosver&&(X.clientInfo.osVersion=f.cosver);f=Q.C();f.V("html5_sabr_enable_server_xtag_selection")&&f.yE&&(X.clientInfo.hl=f.yE);Q.VO&&(X.VO=Q.VO);return X}; iuu=function(Q,z,H){var f=z.type||0;(H==null?0:H.has(f))?Q.Ad.push(z):Q.tb.push(f)}; UJ=function(Q,z,H,f,b,L){var u=L===void 0?{}:L;var X=u.Yj===void 0?[]:u.Yj;var v=u.vO===void 0?!1:u.vO;var y=u.yq===void 0?0:u.yq;var q=u.poToken===void 0?"":u.poToken;var M=u.Pp===void 0?void 0:u.Pp;var C=u.dM===void 0?"":u.dM;var t=u.cB===void 0?0:u.cB;var E=u.KE===void 0?new Uint8Array(0):u.KE;var G=u.uE===void 0?!1:u.uE;L=u.pV===void 0?0:u.pV;u=u.Ca===void 0?void 0:u.Ca;Qg.call(this,z,b);var x=this;this.policy=Q;this.logger=new g.bk("dash/request");this.p_=this.Yu=0;this.jz=!1;this.s7=this.Gp= null;this.V$=!1;this.KE=this.cB=null;this.w1=this.mm=!1;this.Ok=null;this.pV=this.XV=0;this.yW=!1;this.Po={Ni:function(I){x.Ni(I)}, MEn:function(){return x.bL}, Qtv:function(I){x.bL=I}, Xrj:function(I){x.Yu=I}, i8m:function(I){x.f5.lastError=I}, rH:function(){return x.xhr}}; this.timing=new TG(this,H);this.vO=v;this.cB=t;this.KE=E;this.b8=g.c8(this.info,this.policy,f);this.b8.set("rn",this.lZ().toString());this.b8.set("rbuf",(y*1E3).toFixed().toString());this.vO&&this.b8.set("smb","1");this.policy.Lr&&q&&this.b8.set("pot",q);C&&this.b8.set("bbs",C);this.policy.useUmp&&!jl(this.b8.XI)&&(this.rN=new RM(this),this.b8.set("ump","1"),this.b8.set("srfvp","1"));if(Q=this.policy.KZ?this.policy.cK&&!isNaN(this.info.Ds)&&this.info.Ds>this.policy.iN?!1:!0:!1)z=null,this.policy.zK&& this.policy.kF?z=[1]:G&&(z=[]),z!=null&&(this.policy.h6&&z.push(2),this.b8.set("defsel",z.join(",")));this.f5=new Xt(this,this.policy,this.b8,this.info.Mz,this.timing,this.logger,f,M);this.Yj=X||null;this.Xs=W06(this);tl6(this.f5);f=void 0;if(this.policy.Mf||this.rN||this.policy.f3)f={method:"POST"},X=(0,g.Gh)([120,0]),M={},this.policy.MW&&u&&(u=Zr(void 0,u),M.Cx=u),this.policy.hd&&this.KE&&(M.videoPlaybackUstreamerConfig=this.KE),this.policy.f3&&(u=this.info.D)&&Object.assign(M,u),Object.keys(M).length> 0?f.body=g.kS(M,g.T0):f.body=X;if(this.cB&&this.KE){this.b8.set("iwts","1");f={method:"POST"};u={VT:this.cB*1E3};var J;X=(J=this.info.D)==null?void 0:J.t8;J=g.kS({hK:u,t8:X||void 0,videoPlaybackUstreamerConfig:this.KE},g.T0);f.body=J}try{this.xhr=fH(this.b8,this.policy.N,this.timing,Q,f),this.f5.B.start(),L&&(this.sW=new g.e_(this.eh,L,this),this.sW.start(L+(this.timing.L5.N.gQ()||0)*1E3)),this.policy.zX&&kn(this.timing,this.mM()),this.logger.debug(function(){return"Sent, itag="+x.b8.get("itag")+ " seg="+x.info.Tv[0].Ah+" range="+x.b8.get("range")+" time="+Math.round(x.info.Tv[0].D)+"-"+Math.round(g.Vs(x.info.Tv).j)+" rtp="+(x.timing.G3()-Date.now()).toFixed(0)}),g.qH(function(){})}catch(I){DBk(this,I,!0)}}; W06=function(Q){if(!(UN(Q.info)&&Q.info.Aj()&&Q.policy.Ci&&Q.Yj)||Q.info.Mz.B>=2||PB()>0||!aSp())return!1;var z=Q.b8.get("aitags");if(!z)return!1;z=ee(z).split(",");for(var H=[],f=g.n(Q.Yj),b=f.next();!b.done;b=f.next())b=b.value,g.kO(z,b)&&H.push(b);if(!H.length)return!1;Q.b8.set("altitags",g.TU(H.join(",")));return!0}; DBk=function(Q,z,H){H=H===void 0?!1:H;g.BT(z);Q.f5.lastError="player.exception";Q.errorMessage=z.name+"_"+z.message;H?g.qH(function(){qQ(Q.f5)}):qQ(Q.f5)}; K0c=function(Q,z){Q.timing.Ze=!0;Q.xhr.yg()&&Q.timing.UW();if(Q.policy.d4){var H;(H=Q.sW)==null||H.stop()}SS(Q.bL,z,!1)}; VlY=function(Q,z){Q.info=z;if(Q.bL){var H=Q.bL;z=z.Tv;(z.length!==H.Tv.length||z.length0){z=g.n(z.Tv);for(var H=z.next();!H.done;H=z.next()){var f=void 0;Q+=((f=H.value.range)==null?void 0:f.length)||0}return Q}if(z.NZ.length>0)for(H=g.n(z.NZ),f=H.next();!f.done;f=H.next())Q+=f.value.dX||0;return Q+z.Fw}; NQ=function(Q,z){if(Of){var H=0;Q=Q.EV.get(z);if(Q==null||!Q.Vw)return 0;Q=g.n(Q.Vw.values());for(z=Q.next();!z.done;z=Q.next())H+=z.value.data.getLength();return H}return((H=Q.EV.get(z))==null?void 0:H.Ej.getLength())||0}; I8=function(Q,z){Q=Q.EV.get(z);if(Of){if(Q==null||!Q.by)return!1;z=Q.Vw.size>0;return Q.hV.length>0||z}return!(Q==null||!Q.by)&&!(Q==null||!Q.Ej.getLength())}; ehk=function(Q,z){var H=Q.EV.get(z),f=T8a(Q,z),b=!f&&!!H.bytesReceived;if(Of){var L;if((L=Q.n3)==null?0:L.AZ){Q=g.n(H.Vw.values());for(z=Q.next();!z.done;z=Q.next())if(!z.value.kq)return!1;return b}}else if(L=Q.z4(z),b&&Q.Z&&L!==void 0)return L;return(b||H.bytesReceived===f)&&H.V8+NQ(Q,z)===H.bytesReceived}; lMY=function(Q,z,H){Q.EV.set(z,{Ej:new n4,V8:0,bytesReceived:0,Fw:0,u6:!1,eU:!1,z4:!1,Wq:H,bP:[],Tv:[],NZ:[],by:!1,Vw:new Map,mO:new Map,hV:[]});Q.logger.debug(function(){return"[initStream] formatId: "+z})}; Rhp=function(Q,z,H,f){H.Tv.push.apply(H.Tv,g.F(f));if(Of){H.mO.has(z)||H.mO.set(z,[]);var b;(b=H.mO.get(z)).push.apply(b,g.F(f))}else if(H.bL)for(Q=g.n(f),z=Q.next();!z.done;z=Q.next())H.bL.Tv.push(z.value);else{H.bL=new uk(Q.Wo,[].concat(g.F(H.Tv)));var L;((L=Q.Wo)==null?0:L.eN)&&g.W(Q,H.bL)}}; QdZ=function(Q,z,H){var f,b=(f=Q.n3)==null?void 0:f.L.get(z);if(!b)return[];if(H.gZ){var L;return((L=b.t3(0,H.clipId))==null?void 0:L.Tv)||[]}if(b.E7()){var u=H.startMs,X=H.durationMs,v=1E3,y;if(((y=Q.Wo)==null?0:y.Z)&&H.timeRange){var q;u=(q=H.timeRange.startTicks)!=null?q:-1;var M;X=(M=H.timeRange.gY)!=null?M:-1;var C;v=(C=H.timeRange.timescale)!=null?C:-1}if(H.P2<0||H.MC<0||X<0||u<0||H.dX<0||v<0)return Js(Q,z),[];Q=od(H.P2,H.dX);z=H.T6||0;return[new Nm(3,b,Q,"makeSliceInfosMediaBytes",H.MC-1,u/ v,X/v,z,Q.length-z,void 0,H.h5,H.clipId)]}if(H.MC<0)return Js(Q,z),[];var t;return((t=Q.n3)==null?0:t.AZ)?(z=b.Cq,y=z*b.info.oi,q=((u=Q.Wo)==null?0:u.p5)?H.T6:void 0,((v=Q.Wo)==null?0:v.JY)&&H.timeRange&&!q&&(X=H.timeRange.startTicks/H.timeRange.timescale),[new Nm(3,b,void 0,"makeSliceInfosMediaBytes",H.MC,X,z,q,y,!0,H.h5,H.clipId)]):[]}; z5v=function(Q,z,H){Q.n3=z;Q.Wo=H;z=g.n(Q.EV);for(H=z.next();!H.done;H=z.next()){var f=g.n(H.value);H=f.next().value;f=f.next().value;for(var b=g.n(f.bP),L=b.next();!L.done;L=b.next()){L=L.value;var u=QdZ(Q,H,L);Rhp(Q,L.KV,f,u)}}}; As=function(Q,z,H,f){Q.logger.debug(function(){return"[addStreamData] formatId: "+H+",headerId: "+z+" bytes: "+f.getLength()}); (Q=Q.EV.get(H))&&!Q.eU&&(Of?(Q.Vw.has(z)||Q.Vw.set(z,{data:new n4,HV:0,kq:!1}),gt(Q.Vw.get(z).data,f)):gt(Q.Ej,f),Q.bytesReceived+=f.getLength(),Q.u6=!0)}; o8=function(Q,z){Q.logger.debug(function(){return"[closeStream] formatId: "+z}); var H=Q.EV.get(z);H&&!H.eU&&(H.eU=!0,H.Ex&&H.Ex(),H_Y(Q)&&Q.D.lV())}; H_Y=function(Q){Q=g.n(Q.EV.values());for(var z=Q.next();!z.done;z=Q.next())if(!z.value.eU)return!1;return!0}; Y$=function(Q,z,H,f,b,L,u,X){g.h.call(this);this.policy=Q;this.info=z;this.n3=H;this.zL=b;this.Hj=X;this.logger=new g.bk("sabr");this.rN=new RM(this);this.Du=new Ft(this);this.eH=new x$(this);this.state=1;this.M_=!1;this.rb=0;this.clipId="";this.PR=this.D3=-1;this.oF=0;this.XF=-1;this.yW=this.Px=!1;this.EQ=0;this.BT=!1;this.policy.Ga?this.wr=new $$(this,L):this.wr=new TG(this,L);this.b8=this.policy.Xa?z.yy:fZu(z,this.policy,f);this.b8.set("rn",""+this.lZ());this.b8.set("alr","yes");z5v(this.eH,H, Q);this.f5=new Xt(this,this.policy,this.b8,z.Mz,this.wr,this.logger,f,u,this.policy.enableServerDrivenRequestCancellation);tl6(this.f5);var v;if((v=this.policy)==null?0:v.eN)g.W(this,this.eH),g.W(this,this.f5);Q=z.B;z={method:"POST",body:Q};Q&&(this.oF=Q.length);try{this.xhr=fH(this.b8,this.policy.N,this.wr,wS,z),this.policy.zX&&kn(this.wr,this.mM()),this.f5.B.start()}catch(y){g.PT(y)}}; b_J=function(Q){Q.policy.kd&&Q.DO&&!Q.BT?Q.BT=!0:Q.wr.UW()}; L$v=function(Q,z){var H=-1,f=-1,b=-1,L;if((L=Q.gI)==null?0:L.items)for(Q=g.n(Q.gI.items),L=Q.next();!L.done;L=Q.next())L=L.value,z=X,v=Q.n3.isManifestless&&Q.policy.x9, u){var y;if(((y=Q.Z)==null?void 0:y.BS.event)==="predictStart"&&Q.Z.AhQ.S&&(Q.S=NaN,Q.Y=NaN);if(Q.Z&&Q.Z.Ah===z)if(f=Q.Z,b&&f){var u=f.BS;L=b.Q6(u);u.event==="predictStart"&&(Q.wh=z);Q.On("sdai",{onqevt:u.event,sq:z,mt:H,gab:L,cst:u.startSecs,cueid:Q.policy.I5&&(L||u.event==="start")?u.identifier:void 0},!0);if(L)if(u.event!=="predictStart")u.event==="start"&&Q.wh===z-1&&Q.On("sdai",{gabonstart:z}),f.Uc?PA(Q, 4,"cue"):(Q.S=z,Q.Y=H,Q.On("sdai",{joinad:Q.B,sg:Q.S,st:Q.Y.toFixed(3)}),Q.U=Date.now(),PA(Q,2,"join"),b.c6(f.BS));else{var X=z+Math.max(Math.ceil(-u.Z/5E3),1);L=Math.floor(H-u.Z/1E3);Q.policy.S?Q.L=L:Q.D=X;Q.On("sdai",{onpred:H,estsq:X,estmt:L.toFixed(3)});Uf(Q.xv,L,L,X);Q.U=Date.now();PA(Q,3,"predict");b.c6(f.BS)}else Q.B===1?((X=Q.j)==null?0:X.tX(H))?(Uf(Q.xv,H,H,z),PA(Q,4,"sk2had")):PA(Q,5,"nogab"):u.event==="predictStart"&&(Q.policy.S&&Q.L>0?(H=Math.floor(H-u.Z/1E3),Q.L!==H&&Q.On("sdai",{updateSt:H, old:Q.L}),Q.L=H):Q.D>0&&(H=z+Math.max(Math.ceil(-u.Z/5E3),1),Q.D!==H&&(Q.On("sdai",{updateSt:H,old:Q.D}),Q.D=H)));var v,y;if(Q.OZ&&u.event==="start"&&((v=Q.Z)==null?void 0:v.BS.event)!=="predictStart"&&((y=Q.Z)==null?void 0:y.Ah)===z-1){var q;Q.On("sdai",{ovlpst:(q=Q.Z)==null?void 0:q.BS.event,sq:z})}}else Q.On("sdai",{nulldec:1,sq:z,mt:H.toFixed(3),evt:(f==null?void 0:(u=f.BS)==null?void 0:u.event)||"none"});else Q.B===1&&PA(Q,5,"noad")}; $m6=function(Q,z,H){if(Q.B===1||Q.B===2)return!1;if(Q.B!==0&&z===Q.audioTrack){if(Q.policy.S)return Gza(Q.videoTrack,H)||Gza(Q.videoTrack,H+1);Q=cA(Q.videoTrack);if(H>(Q?Q.Ah:-1))return!1}return!0}; ik=function(Q,z,H){return(H<0||H===Q.S)&&!isNaN(Q.Y)?Q.Y:z}; nl6=function(Q,z){if(Q.Z){var H=Q.Z.BS.NB-(z.startTime+Q.N-Q.Z.BS.startSecs);H<=0||(H=new ar(Q.Z.BS.startSecs-(isNaN(Q.N)?0:Q.N),H,Q.Z.BS.context,Q.Z.BS.identifier,"stop",Q.Z.BS.Z+z.duration*1E3),Q.On("cuepointdiscontinuity",{segNum:z.Ah}),BA(Q,H,z.Ah))}}; PA=function(Q,z,H){Q.B!==z&&(Q.On("sdai",{setsst:z,old:Q.B,r:H}),Q.B=z)}; hs=function(Q,z,H,f){(f===void 0?0:f)?PA(Q,1,"seek"):z>0&&Math.abs(z-H)>=5&&Q.B===4&&PA(Q,5,"sk2t."+z.toFixed(2)+";ct."+H.toFixed(2))}; WA=function(Q,z,H){this.audio=Q;this.video=z;this.reason=H}; Dr=function(Q,z,H){this.Z=Q;this.reason=z;this.token=H;this.videoId=void 0}; KH=function(Q,z,H){g.h.call(this);this.policy=Q;this.D=z;this.On=H;this.L=new Map;this.S=0;this.j=!1;this.Z="";this.B=!1}; Vg=function(Q,z,H){if(H===void 0?0:H)Q.j=!0;++Q.S;H=6E4*Math.pow(2,Q.S);H=(0,g.NV)()+H;Q.L.set(z.info.id,H)}; dY=function(Q){for(var z=g.n(Q.L.entries()),H=z.next();!H.done;H=z.next()){var f=g.n(H.value);H=f.next().value;f=f.next().value;f<(0,g.NV)()&&Q.L.delete(H)}return Q.L}; jdL=function(Q){return Q.j&&dY(Q).size>0}; wY=function(Q,z){Q.Z!==z&&(Q.Z=z,Q.B=!0)}; F$L=function(Q,z){var H;z&&(H=g.mB(Q.D.Z,function(b){return b.id===z})); if(!H&&(H=g.mB(Q.D.Z,function(b){var L;return!((L=b.Ii)==null||!L.isDefault)}),z)){var f; Q.On("iaf",{id:z,sid:(f=H)==null?void 0:f.id})}return H}; Th=function(Q,z,H,f,b,L){var u=this;L=L===void 0?[]:L;this.xv=Q;this.L3=z;this.policy=H;this.n3=f;this.j=b;this.WI=L;this.logger=new g.bk("dash/abr");this.Z=WV;this.L=this.Y=null;this.U=-1;this.jm=!1;this.nextVideo=this.B=null;this.D=[];this.En=new Set;this.f3={};this.C3=new SN(1);this.N=0;this.iT=this.wh=this.Ze=!1;this.De=0;this.uT=!1;this.yl=new Set;this.mq=!1;this.Po={yc:function(){k$(u)}}; this.S=new KH(this.policy,b,function(X,v){u.xv.On(X,v)})}; NV6=function(Q,z,H){eS(Q,z);z=F$L(Q.S,H);H||z||(z=xmv(Q));z=z||Q.j.Z[0];Q.B=Q.n3.Z[z.id];k$(Q);Q.Y=Q.B;O_c(Q);olA(Q);Q.L=Q.nextVideo;Q.Y=Q.B;return Ji_(Q)}; YN_=function(Q,z){if(IZu(Q,z))return null;if(z.reason==="m"&&z.isLocked())return Q.logger.debug(function(){return"User sets constraint to: "+u$(z)}),eS(Q,z),Q.N=Q.D.length-1,k$(Q),lk(Q),Q.wh=Q.wh||Q.L!==Q.nextVideo,Q.L=Q.nextVideo,new WA(Q.B,Q.L,z.reason); z.reason==="r"&&(Q.U=-1);eS(Q,z);lk(Q);if(z.reason==="r"&&Q.nextVideo===Q.L)return new WA(Q.B,Q.nextVideo,z.reason);Aic(Q);return null}; riu=function(Q,z,H){Q.B=Q.n3.Z[z];Q.Y=Q.B;return new WA(Q.Y,Q.L,H?"t":"m")}; sd8=function(Q,z){if(z.info.video){if(Q.L!==z)return Q.L=z,Ji_(Q)}else Q.iT=Q.Y!==z,Q.Y=z;return null}; BVY=function(Q,z){if(z.Z.info.video&&z.S){var H=(z.B+z.L)/z.duration,f=z.Z.info.oi;H&&f&&(Q.C3.iH(1,H/f),Q.policy.L&&H/f>1.5&&Q.xv.On("overshoot",{sq:z.Ah,br:H,max:f}))}}; R8=function(Q,z,H){Vg(Q.S,z,H===void 0?!1:H);Q.U=-1;eS(Q,Q.Z)}; PwL=function(Q,z){return new WA(Q.Y,Q.L,z||Q.Z.reason)}; Aic=function(Q){if(Q.L&&Q.nextVideo&&Q8(Q,Q.L.info)Q.policy.zw,X=b<=Q.policy.zw?mq(f):KG(f);if(!L||u||X)H[b]=f}return H}; eS=function(Q,z){Q.Z=z;var H=Q.j.videoInfos;if(!Q.Z.isLocked()){var f=(0,g.NV)();H=g.yP(H,function(X){if(X.oi>this.policy.oi)return!1;var v=this.n3.Z[X.id];return dY(this.S).get(X.id)>f?!1:v.Mz.B>4||v.j>4?(this.logger.debug(function(){return"Remove "+f3(X)+"; 4 load failures"}),!1):this.yl.has(+X.itag)?!1:!0},Q); jdL(Q.S)&&(H=g.yP(H,function(X){return X.video.width<=854&&X.video.height<=480}))}H.length||(H=Q.j.videoInfos); var b=H;Q.policy.J_&&(b=UmL(Q,b,z));b=g.yP(b,z.D,z);if(Q.Z.isLocked()&&Q.S.Z){var L=g.mB(H,function(X){return X.id===Q.S.Z}); L?b=[L]:wY(Q.S,"")}Q.policy.J_||(b=UmL(Q,b,z));b.length||(b=[H[0]]);b.sort(function(X,v){return Q8(Q,X)-Q8(Q,v)}); z={};for(H=1;Hz.Ch.video.width?(g.TY(b,H),H--):Q8(Q,z.ML)*Q.policy.U>Q8(Q,z.Ch)&&(g.TY(b,H-1),H--);var u=b[b.length-1];Q.uT=!!Q.L&&!!Q.L.info&&Q.L.info.Rj!==u.Rj;Q.logger.debug(function(){return"Constraint: "+u$(Q.Z)+", "+b.length+" fmts selectable, max selectable fmt: "+f3(u)}); Q.D=b;Q.En.clear();z=!1;for(H=0;H=1080&&(z=!0);ciY(Q.policy,u,Q.n3.AZ)}; UmL=function(Q,z,H){var f=H.reason==="m"||H.reason==="s";Q.policy.B$&&zX&&g.Ga&&(!f||H.Z<1080)&&(z=z.filter(function(y){return y.video&&(!y.B||y.B.powerEfficient)})); if(z.length>0)if(EU()){var b=aZL(Q,z);z=z.filter(function(y){return!!y&&!!y.video&&y.Rj===b[y.video.Z].Rj})}else{var L,u,X=(L=z[0])==null?void 0:(u=L.video)==null?void 0:u.Z; if(X){H=z.filter(function(y){return!!y&&!!y.video&&y.video.Z===X}); var v=aZL(Q,H)[X].Rj;z=z.filter(function(y){return!!y&&!!y.video&&y.Rj===v})}}return z}; i_u=function(Q,z){for(var H=0;H+1f}; k$=function(Q){if(!Q.B||!Q.policy.D&&!Q.B.info.Ii){var z=Q.j.Z;Q.B&&(z=z.filter(function(f){return f.audio.Z===Q.B.info.audio.Z}),z.length||(z=Q.j.Z)); Q.B=Q.n3.Z[z[0].id];if(z.length>1){if(Q.policy.zj){if(Q.policy.oW){var H=g.J5(z,function(f){return f.audio.audioQuality}); Q.xv.On("aq",{hqa:Q.policy.rT,qs:H.join("_")})}if(Q.policy.rT)return;if(H=g.mB(z,function(f){return f.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}))Q.B=Q.n3.Z[H.id]}H=!1; if(H=Q.policy.zx?!0:Q.Z.isLocked()?Q.Z.Z<240:i_u(Q,Q.B))Q.B=Q.n3.Z[g.Vs(z).id]}}}; lk=function(Q){if(!Q.nextVideo||!Q.policy.D)if(Q.Z.isLocked())Q.nextVideo=Q.Z.Z<=360?Q.n3.Z[Q.D[0].id]:Q.n3.Z[g.Vs(Q.D).id],Q.logger.debug(function(){return"Select max fmt: "+f3(Q.nextVideo.info)}); else{for(var z=Math.min(Q.N,Q.D.length-1),H=Av(Q.L3),f=Q8(Q,Q.B.info),b=H/Q.policy.Ze-f;z>0&&!(Q8(Q,Q.D[z])<=b);z--);for(var L=H/Q.policy.U-f;z=L);z++);Q.nextVideo=Q.n3.Z[Q.D[z].id];Q.N!==z&&Q.logger.info(function(){return"Adapt to: "+f3(Q.nextVideo.info)+", bandwidth: "+H.toFixed(0)+", bandwidth to downgrade: "+b.toFixed(0)+", bandwidth to upgrade: "+L.toFixed(0)+", constraint: "+u$(Q.Z)}); Q.N=z}}; O_c=function(Q){var z=Q.policy.Ze,H=Av(Q.L3),f=H/z-Q8(Q,Q.B.info);z=g.wJ(Q.D,function(b){return Q8(this,b)L?b=0:f[u]>Q.buffered[u]&&(u===L-1?b=2:u===L-2&&f[u+1]>Q.buffered[u+1]&&(b=3))}Q.Z.add(z<<3|(H&&4)|b);z=Math.ceil(Q.track.B0()*1E3);Q.Z.add(z-Q.S);Q.S=z;if(b===1)for(Q.Z.add(L),u=z=0;u=2&&Q.Z.add(f[L- 1]-Q.buffered[L-1]);H&&Q.Z.add(H);Q.buffered=f}; bm=function(Q,z,H){var f=this;this.policy=Q;this.Z=z;this.De=H;this.D=this.B=0;this.oz=null;this.Ze=new Set;this.U=[];this.indexRange=this.initRange=null;this.N=new k6;this.wh=this.L3=!1;this.Po={zr$:function(){return f.L}, cK5:function(){return f.chunkSize}, jch:function(){return f.Y}, Kf5:function(){return f.j}}; (z=VAZ(this))?(this.chunkSize=z.csz,this.L=Math.floor(z.clen/z.csz),this.Y=z.ck,this.j=z.civ):(this.chunkSize=Q.PX,this.L=0,this.Y=g.xk(16),this.j=g.xk(16));this.S=new Uint8Array(this.chunkSize);this.Y&&this.j&&(this.crypto=new Huu(this.Y,this.j))}; VAZ=function(Q){if(Q.policy.r7&&Q.policy.qW)for(var z=g.n(Q.policy.r7),H=z.next(),f={};!H.done;f={LB:void 0,ED:void 0},H=z.next())if(H=g.uv(H.value),f.LB=+H.clen,f.ED=+H.csz,f.LB>0&&f.ED>0&&Q.policy.D===H.docid&&Q.Z.info.id===H.fmtid&&Q.Z.info.lastModified===+H.lmt)return Q={},Q.clen=f.LB,Q.csz=f.ED,Q.ck=H.ck,Q.civ=H.civ,Q}; LI=function(Q){return!!Q.oz&&Q.oz.lc()}; w8J=function(Q,z){if(!LI(Q)&&!Q.Sm()){if(!(Q.L3||(Q.L3=!0,Q.L>0))){var H=um(Q);H=Ya(Q.policy.D,Q.Z.info,Sc(Q),H,Q.policy.WI);XJ(Q,H)}if(z.info.type===1){if(Q.oz){vK(Q,Error("Woffle: Expect INIT slices to always start us off"));return}Q.initRange=od(0,z.Z.getLength())}else if(z.info.type===2)Q.oz&&Q.oz.type===1||vK(Q,Error("Woffle: Index before init")),Q.indexRange=od(Q.initRange.end+1,z.Z.getLength());else if(z.info.type===3){if(!Q.oz){vK(Q,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(Q.oz.type===3&&!Yl(Q.oz,z.info)&&(Q.U=[],z.info.Ah!==rV(Q.oz)||z.info.B!==0))return;if(z.info.S){H=g.n(Q.U);for(var f=H.next();!f.done;f=H.next())dma(Q,f.value);Q.U=[]}else{Q.U.push(z);Q.oz=z.info;return}}else{vK(Q,Error("Woffle: Unexpected slice type"));return}Q.oz=z.info;dma(Q,z);mmY(Q)}}; dma=function(Q,z){var H=0,f=z.Z.K4();if(Q.D=f.length)return;if(H<0)throw Error("Missing data");Q.D=Q.L;Q.B=0}for(b={};H0){var u=f.getUint32(H+28);L+=u*16+4}var X=f.getUint32(H+L-4);try{var v=R59(z.subarray(H+L,H+L+X));if(v!==null){var y=v;break a}}catch(q){}}H+=b}y=null;break a}catch(q){y=null;break a}y=void 0}if(y!=null)for(z=q4(co(y,7)),z==null||Q.rV||(Q.cryptoPeriodIndex=z),z=q4(co(y,10)),z!=null&&z>0&&!Q.rV&&(Q.Z=z),y=m8(y, 2,ET9,void 0===gTJ?2:4),y=g.n(y),z=y.next();!z.done;z=y.next())Q.L.push(g.nr(oG(z.value),4))}; zxZ=function(Q){return isNaN(Q.cryptoPeriodIndex)?g.nr(Q.initData):""+Q.cryptoPeriodIndex}; M5=function(Q,z,H){var f=H===void 0?{}:H;H=f.videoDuration===void 0?0:f.videoDuration;var b=f.E_===void 0?void 0:f.E_;f=f.d0===void 0?!1:f.d0;this.videoId=Q;this.status=z;this.videoDuration=H;this.E_=b;this.d0=f}; HyY=function(Q,z,H,f,b){this.videoId=Q;this.LG=z;this.B=H;this.bytesDownloaded=f;this.Z=b}; CI=function(Q){this.Z=Q;this.offset=0}; te=function(Q){if(Q.offset>=Q.Z.getLength())throw Error();return Q.Z.getUint8(Q.offset++)}; fn9=function(Q,z){z=z===void 0?!1:z;var H=te(Q);if(H===1){z=-1;for(H=0;H<7;H++){var f=te(Q);z===-1&&f!==255&&(z=0);z>-1&&(z=z*256+f)}return z}f=128;for(var b=0;b<6&&f>H;b++)H=H*256+te(Q),f*=128;return z?H:H-f}; by_=function(Q){try{var z=fn9(Q,!0),H=fn9(Q,!1);return{id:z,size:H}}catch(f){return{id:-1,size:-1}}}; LfL=function(Q){for(var z=new CI(Q),H=-1,f=0,b=0;!f||!b;){var L=by_(z),u=L.id;L=L.size;if(u<0)return;if(u===176){if(L!==2)return;f=z.j0()}else if(u===186){if(L!==2)return;b=z.j0()}u===374648427?H=z.j0()+L:u!==408125543&&u!==174&&u!==224&&z.skip(L)}z=jd(Q,0,H);H=new DataView(z.buffer);H.setUint16(f,3840);H.setUint16(b,2160);f=new n4([z]);gt(f,Q);return f}; uo_=function(Q,z,H){var f=this;this.xv=Q;this.policy=z;this.j=H;this.logger=new g.bk("dash");this.B=[];this.Z=null;this.L3=-1;this.U=0;this.yl=NaN;this.Ze=0;this.L=NaN;this.N=this.jm=0;this.uT=-1;this.f3=this.S=this.D=this.De=null;this.C3=this.iT=NaN;this.Y=this.wh=this.En=this.WI=null;this.rT=!1;this.mq=this.timestampOffset=0;this.Po={tO:function(){return f.B}}; if(this.policy.D){var b=this.j,L=this.policy.D;this.policy.WI&&Q.On("atv",{ap:this.policy.WI});this.Y=new bm(this.policy,b,function(u,X,v){ER(Q,new M5(f.policy.D,2,{E_:new HyY(L,u,b.info,X,v)}))}); this.Y.N.promise.then(function(u){f.Y=null;u===1?ER(Q,new M5(f.policy.D,u)):f.xv.On("offlineerr",{status:u.toString()})},function(u){var X=(u.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); u instanceof y8&&!u.Z?(f.logger.info(function(){return"Assertion failed: "+X}),f.xv.On("offlinenwerr",{em:X}),pI(f),ER(Q,new M5(f.policy.D,4))):(f.logger.info(function(){return"Failed to write to disk: "+X}),f.xv.On("dldbwerr",{em:X}),pI(f),ER(Q,new M5(f.policy.D,4,{d0:!0})))})}}; Smp=function(Q){return Q.B.length?Q.B[0]:null}; XjL=function(Q,z){return Q.B.some(function(H){return H.info.Ah===z})}; CDc=function(Q,z,H,f){f=f===void 0?0:f;if(Q.S){var b=Q.S.B+Q.S.L;if(H.info.B>0)if(H.info.Ah===Q.S.Ah&&H.info.B=0&&Q.S.Ah>=0&&!Yl(Q.S,H.info))throw new g.wD("improper_continuation",Q.S.aq(),H.info.aq());lUc(Q.S,H.info)||nI(Q,"d")}else if(H.info.B>0)throw new g.wD("continuation_of_null",H.info.aq());Q.S=H.info;Q.j=H.info.Z;if(H.info.B===0){if(Q.Z)if(!Q.xv.isOffline()||Q.policy.Tl)Q.xv.On("slice_not_fully_processed",{buffered:Q.Z.info.aq(), push:H.info.aq()});else throw new g.wD("slice_not_fully_processed",Q.Z.info.aq(),H.info.aq());gH(Q);Q.jm=f}else{if(Q.jm&&f&&Q.jm!==f)throw Q=new g.wD("lmt_mismatch",H.info.Ah,Q.jm,f),Q.level="WARNING",Q;!H.info.Z.E7()&&Q.D&&(f=H.info,b=Q.D.D3,f.Y="updateWithEmsg",f.Ah=b)}if(Q.Z){f=g.Tz(Q.Z,H);if(!f)throw new g.wD("failed_to_merge",Q.Z.info.aq(),H.info.aq());Q.Z=f}else Q.Z=H;a:{H=g.TR(Q.Z.info.Z.info);if(Q.Z.info.type!==3){if(!Q.Z.info.S)break a;Q.Z.info.type===6?vic(Q,z,Q.Z):yQ6(Q,Q.Z);Q.Z=null}for(;Q.Z;){f= Q.Z.Z.getLength();if(Q.L3<=0&&Q.U===0){var L=Q.Z.Z,u=-1;b=-1;if(H){for(var X=0;X+80))break;if(M!==408125543)if(M===524531317)X=!0,q>=0&&(b=L.j0()+q,v=!0);else{if(X&&(M===160||M===163)&&(u<0&&(u=y),v))break;M===163&&(u=Math.max(0,u),b=L.j0()+q);if(M===160){u<0&&(b=u=L.j0()+q);break}L.skip(q)}}u<0&&(b=-1)}if(u< 0)break;Q.L3=u;Q.U=b-u}if(Q.L3>f)break;Q.L3?(f=qm9(Q,Q.L3),f.S&&MbY(Q,f),vic(Q,z,f),Zp(Q,f),Q.L3=0):Q.U&&(f=qm9(Q,Q.U<0?Infinity:Q.U),Q.U-=f.Z.getLength(),Zp(Q,f))}}Q.Z&&Q.Z.info.S&&(Zp(Q,Q.Z),Q.Z=null)}; yQ6=function(Q,z){!z.info.Z.E7()&&z.info.B===0&&(g.TR(z.info.Z.info)||z.info.Z.info.rV())&&Ja8(z);if(z.info.type===1)try{MbY(Q,z),tb_(Q,z)}catch(b){g.BT(b);var H=sN(z.info);H.hms="1";Q.xv.handleError("fmt.unparseable",H||{},1)}H=z.info.Z;H.ZQ(z);Q.Y&&w8J(Q.Y,z);if(H.SH()&&Q.policy.Z)a:{Q=Q.xv.n3;z=z.info.clipId;H=g.la(H.info,Q.AZ);if(z){var f=VPY(Q,H);if(Q.mq[f])break a;Q.mq[f]=z}Q.f3.push(H)}}; WNY=function(Q,z,H){if(Q.B.length!==0&&(H||Q.B.some(function(L){return L.info.D=$p(u)+X):z=Q.getDuration()>=u.getDuration(),z=!z;z&&nin(H)&&(z=Q.De,GX?(X=O3p(H),u=1/X,X=$p(Q,X),z=$p(z)+u-X):z=z.getDuration()- Q.getDuration(),z=1+z/H.info.duration,N5J(H.Lp(),z))}else{u=!1;Q.D||(Ja8(H),H.B&&(Q.D=H.B,u=!0,L=H.info,f=H.B.D3,L.Y="updateWithEmsg",L.Ah=f,L=H.B,L.lc&&(f=Q.j.index,f.B=!L.lc,f.L="emsg"),L=H.info.Z.info,f=H.Lp(),g.TR(L)?TQ(f,1701671783):L.rV()&&bw([408125543],307544935,f)));a:if((L=Rd(H,Q.policy.UY))&&o6A(H))X=gin(Q,H),Q.N+=X,L-=X,Q.Ze+=L,Q.L=Q.policy.ox?Q.L+L:NaN;else{if(Q.policy.Wp){if(f=v=Q.xv.F2(g.eA(H),1),Q.L>=0&&H.info.type!==6){if(Q.policy.ox&&isNaN(Q.iT)){g.PT(new g.wD("Missing duration while processing previous chunk", H.info.aq()));Q.xv.isOffline()&&!Q.policy.Tl||ZyZ(Q,H,f);nI(Q,"m");break a}var y=v-Q.L,q=y-Q.N,M=H.info.Ah,C=Q.f3?Q.f3.Ah:-1,t=Q.C3,E=Q.iT,G=Q.policy.Qg&&y>Q.policy.Qg,x=Math.abs(q)>10,J=Math.abs(Q.L-f)<1E-7;if(Math.abs(q)>1E-4){Q.mq+=1;var I=(b=Q.D)==null?void 0:i$(b);b={audio:""+ +Q.Wq(),sq:M.toFixed(),sliceStart:v,lastSq:C.toFixed(),lastSliceStart:t,lastSliceDuration:E,totalDrift:(y*1E3).toFixed(),segDrift:(q*1E3).toFixed(),skipRewrite:""+ +(G||x)};if(I==null?0:I.length)b.adCpn=I[0];Q.xv.handleError("qoe.avsync", b);Q.uT=M}G||x||J||(f=Q.L);b=gin(Q,H,v);L-=b;Q.N=y+b;Q.policy.L&&(q&&!J||b)&&(y=(X=Q.D)==null?void 0:i$(X),Q.xv.On("discontinuityRewrite",{adCpn:(y==null?0:y.length)?y.join("."):"",itag:H.info.Z.info.itag,sq:H.info.Ah,originalStartTime:v,rewrittenStartTime:f,startTimeAdjustment:f-v,segDrift:(q*1E3).toFixed(),originalDuration:L+b,rewrittenDuration:L,durationAdjustment:b}))}}else f=isNaN(Q.L)?H.info.startTime:Q.L;ZyZ(Q,H,f)&&(Q.Ze+=L,Q.L=f+L,Q.policy.XK&&Q.mq>=Q.policy.XK&&(Q.mq=0,Q.xv.a4({resetForRewrites:"count"})))}Q.f3= H.info;Q.iT=lw(H);H.L>=0&&(Q.C3=H.L);if(u&&Q.D){u=Gyn(Q,!0);B8(H.info,u);Q.Z&&B8(Q.Z.info,u);z=g.n(z);for(X=z.next();!X.done;X=z.next())X=X.value,b=void 0,Q.policy.j&&X.Ah!==((b=Q.D)==null?void 0:b.D3)||B8(X,u);(H.info.S||Q.Z&&Q.Z.info.S)&&H.info.type!==6||(Q.wh=u,Q.policy.C3?(z=$j_(Q.D),Q.xv.z8(Q.j,u,z)):(z=Q.xv,z.n3.isManifestless&&jka(z,u,null,!!Q.j.info.video)),Q.policy.LA||FfJ(Q))}}tb_(Q,H);Q.timestampOffset&&FwY(H,Q.timestampOffset)}; Zp=function(Q,z){if(z.info.S){Q.WI=z.info;if(Q.D){var H=Q.D,f=Gyn(Q,!1);H=$j_(H);Q.xv.z8(Q.j,f,H);Q.wh||Q.policy.LA||FfJ(Q);Q.wh=null}gH(Q)}Q.Y&&w8J(Q.Y,z);if(f=Q.qC())if(f=g.Tz(f,z,Q.policy.X2)){Q.B.pop();Q.B.push(f);return}Q.B.push(z)}; $j_=function(Q){if(Q.Uc()){var z=Q.data["Stitched-Video-Id"]?Q.data["Stitched-Video-Id"].split(",").slice(0,-1):[],H=i$(Q),f=[];if(Q.data["Stitched-Video-Duration-Us"])for(var b=g.n(Q.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),L=b.next();!L.done;L=b.next())f.push((Number(L.value)||0)/1E6);b=[];if(Q.data["Stitched-Video-Start-Frame-Index"]){L=g.n(Q.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var u=L.next();!u.done;u=L.next())b.push(Number(u.value)||0)}b=[]; if(Q.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(L=g.n(Q.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),u=L.next();!u.done;u=L.next())b.push((Number(u.value)||0)/1E6);Q=new lZ8(z,H,f,b,g.xCL(Q),g.OGL(Q))}else Q=null;return Q}; gH=function(Q){Q.Z=null;Q.L3=-1;Q.U=0;Q.D=null;Q.yl=NaN;Q.Ze=0;Q.wh=null}; nI=function(Q,z){z={rst4disc:z,cd:Q.N.toFixed(3),sq:Q.f3?Q.f3.Ah:-1};Q.L=NaN;Q.N=0;Q.uT=-1;Q.f3=null;Q.C3=NaN;Q.iT=NaN;Q.En=null;Q.xv.On("mdstm",z)}; tb_=function(Q,z){if(Q.j.info.AM){if(z.info.Z.info.rV()){var H=new l$(z.Lp());if(Qj(H,[408125543,374648427,174,28032,25152,20533,18402])){var f=f_(H,!0);H=f!==16?null:Xw(H,f)}else H=null;f="webm"}else z.info.U=TVa(z.Lp()),H=e5J(z.info.U),f="cenc";H&&H.length&&(H=new q5(H,f),Q.policy.Z_&&g.TR(z.info.Z.info)&&(f=B5Z(z.Lp()))&&(H.B=f),H.rV=z.info.Z.info.rV(),z.B&&z.B.cryptoPeriodIndex&&(H.cryptoPeriodIndex=z.B.cryptoPeriodIndex),z.B&&z.B.B&&(H.Z=z.B.B),Q.xv.Cl(H))}}; FfJ=function(Q){var z=Q.D,H=jjL(z);H&&(H.startSecs+=Q.yl,Q.xv.eB(Q.j,H,z.D3,z.Uc()))}; Gyn=function(Q,z){var H,f=Q.D;if(H=jjL(f))H.startSecs+=Q.yl;return new or(f.D3,Q.yl,z?f.Cq:Q.Ze,f.ingestionTime,"sq/"+f.D3,void 0,void 0,z,H)}; ZyZ=function(Q,z,H){if(!jma(z,H))return z=sN(z.info),z.smst="1",Q.xv.handleError("fmt.unparseable",z||{},1),!1;isNaN(Q.yl)&&(Q.yl=H);return!0}; gin=function(Q,z,H){var f=0;if(z.info.Z.info.rV()&&!o6A(z))return 0;if(Q.De&&!Q.Wq()){var b=0;H&&g.TR(z.info.Z.info)?b=H-Q.L:z.info.Z.info.rV()&&(b=Q.N);var L=z.info.Ah;H=Rd(z,Q.policy.UY);var u=Q.De;var X=u.uT;u=u.N;var v=Math.abs(u-b)>.02;if((L===X||L>X&&L>Q.uT)&&v){f=Math.max(.95,Math.min(1.05,(H-(u-b))/H));if(g.TR(z.info.Z.info))N5J(z.Lp(),f);else if(z.info.Z.info.rV()&&(L=b-u,!g.TR(z.info.Z.info)&&(z.info.Z.info.rV(),f=new l$(z.Lp()),X=z.S?f:new l$(new DataView(z.info.Z.Z.buffer)),Rd(z,!0)))){var y= L*1E3,q=yj(X);X=f.pos;f.pos=0;if(f.Z.getUint8(f.pos)===160||qm(f))if(H8(f,160))if(f_(f,!0),H8(f,155)){if(L=f.pos,v=f_(f,!0),f.pos=L,y=y*1E9/q,q=L_(f),y=q+Math.max(-q*.7,Math.min(q,y)),y=Math.sign(y)*Math.floor(Math.abs(y)),!(Math.ceil(Math.log(y)/Math.log(2)/8)>v)){f.pos=L+1;for(L=v-1;L>=0;L--)f.Z.setUint8(f.pos+L,y&255),y>>>=8;f.pos=X}}else f.pos=X;else f.pos=X;else f.pos=X}f=Rd(z,Q.policy.UY);f=H-f}f&&z.info.Z.info.rV()&&Q.xv.On("webmDurationAdjustment",{durationAdjustment:f,videoDrift:b+f,audioDrift:u})}return f}; nin=function(Q){return Q.info.Z.E7()&&Q.info.Ah===Q.info.Z.index.Xg()}; $p=function(Q,z){z=(z=z===void 0?0:z)?Math.round(Q.timestampOffset*z)/z:Q.timestampOffset;Q.j.D&&z&&(z+=Q.j.D.Z);return z+Q.getDuration()}; xj9=function(Q,z){z<0||(Q.B.forEach(function(H){FwY(H,z)}),Q.timestampOffset=z)}; aM=function(Q,z,H,f,b){Qg.call(this,H,b);var L=this;this.policy=Q;this.formatId=z;this.eH=f;this.lastError=null;this.Ex=function(){L.Sm()||(L.eH.EV.has(L.formatId)?(L.isComplete()||L.Z.start(),I8(L.eH,L.formatId)&&L.Ka(2),L.eH.eU(L.formatId)&&(ehk(L.eH,L.formatId)?L.Ni(4):(L.lastError="net.closed",L.Ni(5)))):(L.lastError="player.exception",L.Ni(5)))}; this.Z=new g.e_(function(){L.isComplete()||(L.lastError="net.timeout",L.Ni(5))},1E3); this.Z.start();wMZ(this.eH,this.formatId,this.Ex);g.qH(this.Ex)}; jc=function(Q,z,H,f){g.h.call(this);var b=this;this.xv=Q;this.policy=z;this.Z=H;this.timing=f;this.logger=new g.bk("dash");this.L=[];this.De=[];this.B=this.nH=null;this.jm=!1;this.mq=this.En=0;this.j=-1;this.L3=!1;this.yl=-1;this.f3=null;this.wh=NaN;this.Ze=[];this.Po={pG:function(){return b.D}, PUh:function(){return b.L}, Vlm:function(){return b.N}}; this.D=new uo_(Q,z,H);this.policy.Z&&(this.N=new rz(this.D,this.xv.getManifest(),this.policy,function(L){b.policy.z0&&b.On("buftl",L)})); this.policy.Wz&&(this.U=new HK(this));this.oi=H.info.oi;this.Y=this.policy.wh?!1:H.dR();this.isManifestless=H.dR();this.S=this.Y;g.W(this,this.f3)}; FJ=function(Q,z,H){H=H===void 0?!1:H;z&&GX&&xj9(Q.D,z.UF());if(!H){var f;(f=Q.N)==null||U1k(f)}Q.nH=z;(z=Q.N)!=null&&(z.nH=Q.nH)}; xp=function(Q){var z=Q.nH&&Q.nH.z3();if(Q.policy.ER){if((Q=Q.N)==null)Q=void 0;else{var H;Q=(H=Q.L)==null?void 0:H.info}return Q||null}return z}; Oy_=function(Q){for(var z={},H=0;H4&&Q.De.shift()}; oiL=function(Q,z){if(z.uZ()){var H=z.Rx();H=g.n(H);for(var f=H.next();!f.done;f=H.next())f=f.value,Q.policy.L&&z instanceof aM&&Q.On("omblss",{s:f.info.aq()}),ob(Q,z.info.Tv,f,z.RP())}}; ob=function(Q,z,H,f){f=f===void 0?0:f;isNaN(Q.wh)||(Q.On("aswm",{sq:z[0].Ah,id:z[0].Z.info.itag,xtag:z[0].Z.info.Z,ep:Date.now()-Q.wh}),Q.wh=NaN);switch(H.info.type){case 1:case 2:JQ6(Q,H);break;case 4:var b=H.info.Z,L=b.tE(H),u;((u=Q.B)==null?0:u.type===4)&&Lw_(H.info,Q.B)&&(Q.B=b.ev(Q.B).pop());H=g.n(L);for(b=H.next();!b.done;b=H.next())ob(Q,z,b.value,f);break;case 3:H.info.Z.info.video?(b=Q.timing,b.De||(b.De=(0,g.NV)(),xd("fvb_r",b.De,b.Z))):(b=Q.timing,b.j||(b.j=(0,g.NV)(),xd("fab_r",b.j,b.Z))); CDc(Q.D,z,H,f);Q.policy.Z&&NSp(Q);break;case 6:CDc(Q.D,z,H,f),Q.B=H.info}}; JQ6=function(Q,z){if(z.info.type===1)if(z.info.Z.info.video){var H=Q.timing;H.f3||(H.f3=(0,g.NV)(),xd("vis_r",H.f3,H.Z))}else H=Q.timing,H.N||(H.N=(0,g.NV)(),xd("ais_r",H.N,H.Z));yQ6(Q.D,z);Q=Q.xv;Q.videoTrack.Z.SH()&&Q.audioTrack.Z.SH()&&Q.policy.Z&&!Q.n3.AZ&&(z=Q.audioTrack.getDuration(),H=Q.videoTrack.getDuration(),Math.abs(z-H)>1&&Q.On("trBug",{af:""+g.la(Q.audioTrack.Z.info,!1),vf:""+g.la(Q.videoTrack.Z.info,!1),a:""+z,v:""+H}))}; dz=function(Q){return Smp(Q.D)}; NSp=function(Q){Q.L.length?Q.B=g.Vs(g.Vs(Q.L).info.Tv):Q.D.B.length?Q.B=Q.D.qC().info:Q.B=xp(Q)}; Je=function(Q,z){var H={ue:[],u$:[]},f;if((Q=Q.N)==null)Q=void 0;else{aJA(Q,Q.ue,"og");sA6(Q,z);aJA(Q,Q.ue,"trim");var b=PM9(Q);z=b.ue;b=b.Cg;for(var L=[],u=0;u0){var C=uZ(M,v);C>=0&&(q=(M.end(C)-v+.1)*1E3)}L.push({formatId:g.la(X.info.Z.info,Q.n3.AZ), h5:X.info.h5,sequenceNumber:X.info.Ah+Q.D,Fe:y,sz:X.info.L,M2:q})}Q={ue:z,u$:L}}return(f=Q)!=null?f:H}; io=function(Q,z,H){H=H===void 0?!1:H;if(Q.nH){var f=Q.nH.N4(),b=X$(f,z),L=NaN,u=xp(Q);u&&(L=X$(f,u.Z.index.getStartTime(u.Ah)));if(b===L&&Q.B&&Q.B.L&&InJ(N5(Q),0))return z}Q=AQ8(Q,z,H);return Q>=0?Q:NaN}; WN=function(Q,z,H){Q.Z.SH();var f=AQ8(Q,z);if(f>=0)return f;var b;(b=Q.N)==null||BZa(b,z,H);H=Math;f=H.min;b=Q.D;if(b.Y)if(b=b.Y,b.oz&&b.oz.type===3)b=b.oz.startTime;else if(b.L>0){var L=b.Z.index;L=g.u4(L.offsets.subarray(0,L.count),b.L*b.chunkSize);b=b.Z.index.getStartTime(L>=0?L:Math.max(0,-L-2))}else b=0;else b=Infinity;z=f.call(H,z,b);if(Q.policy.B){var u,X;H=(u=Q.xv.t$())==null?void 0:(X=BN(u,z))==null?void 0:X.clipId;Q.B=Q.Z.UU(z,void 0,H).Tv[0]}else Q.B=Q.policy.wh?null:Q.Z.UU(z).Tv[0];Ib(Q)&& (Q.nH&&Q.nH.abort(),Q.policy.aK&&(u=Q.N)!=null&&(u.L=void 0));Q.mq=0;return Q.B?Q.B.startTime:z}; iEJ=function(Q){Q.Y=!0;Q.S=!0;Q.j=-1;WN(Q,Infinity)}; Ae=function(Q){for(var z=0,H=g.n(Q.L),f=H.next();!f.done;f=H.next())z+=SUJ(f.value.info);return z+=Ei_(Q.D)}; rH=function(Q,z){z=z===void 0?!1:z;var H=Q.xv.getCurrentTime(),f=Q.D.qC(),b=(f==null?void 0:f.info.j)||0;Q.policy.Uf&&(f==null?0:f.info.Z.dR())&&!f.info.S&&(b=f.info.D);if(Q.policy.B&&f&&f.info.clipId){var L,u=(((L=Q.xv.t$())==null?void 0:sJ(L,f.info.clipId))||0)/1E3;b+=u}if(!Q.nH)return Q.policy.Z&&z&&!isNaN(H)&&f?b-H:0;if((L=xp(Q))&&Yp(Q,L))return L.j;u=Q.nH.N4(!0);if(z&&f)return L=0,Q.policy.Z&&(L=yA(u,b+.02)),L+b-H;b=yA(u,H);Q.policy.dD&&L&&(z=uZ(u,H),u=uZ(u,L.D-.02),z===u&&(H=L.j-H,Q.policy.L&& H>b+.02&&Q.On("abh",{bh:b,bhtls:H}),b=Math.max(b,H)));return b}; YmJ=function(Q){var z=xp(Q);return z?z.j-Q.xv.getCurrentTime():0}; rQY=function(Q,z){if(Q.L.length){if(Q.L[0].info.Tv[0].startTime<=z)return;cN(Q)}for(var H=Q.D,f=H.B.length-1;f>=0;f--)H.B[f].info.startTime>z&&H.B.pop();NSp(Q);Q.B&&z=0;u--){var X=b.B[u];X.info.Ah>=z&&(b.B.pop(),b.L-=Rd(X,b.policy.UY),L=X.info)}L&&(b.S=b.B.length>0?b.B[b.B.length-1].info:b.En,b.B.length!==0||b.S||nI(b,"r"));b.xv.On("mdstm",{rollbk:1,itag:L?L.Z.info.itag:"",popped:L?L.Ah:-1,sq:z,lastslc:b.S?b.S.Ah:-1,lastfraget:b.L.toFixed(3)});if(Q.policy.Z)return Q.B=null,!0;f>H?WN(Q,f):Q.B=Q.Z.Di(z-1,!1).Tv[0]}catch(v){return z=JI(v),z.details.reason="rollbkerr", Q.xv.handleError(z.errorCode,z.details,z.severity),!1}return!0}; PK=function(Q,z){var H;for(H=0;H0?H||z.Ah>=Q.yl:H}; UR=function(Q){var z;return Ib(Q)||Yp(Q,(z=Q.D.qC())==null?void 0:z.info)}; N5=function(Q){var z=[],H=xp(Q);H&&z.push(H);z=g.Ru(z,Q.D.aD());H=g.n(Q.L);for(var f=H.next();!f.done;f=H.next()){f=f.value;for(var b=g.n(f.info.Tv),L=b.next(),u={};!L.done;u={HO:void 0},L=b.next())u.HO=L.value,f.aS&&(z=g.yP(z,function(X){return function(v){return!Lw_(v,X.HO)}}(u))),(Ai(u.HO)||u.HO.type===4)&&z.push(u.HO)}Q.B&&!T59(Q.B,g.Vs(z),Q.B.Z.E7())&&z.push(Q.B); return z}; InJ=function(Q,z){if(!Q.length)return!1;for(z+=1;z=z){z=L;break a}}z=b}return z<0?NaN:InJ(Q,H?z:0)?Q[z].startTime:NaN}; cK=function(Q){return!(!Q.B||Q.B.Z===Q.Z)}; skA=function(Q){return cK(Q)&&Q.Z.SH()&&Q.B.Z.info.oiz&&f.j1080&&!Q.HP&&(Q.mq=36700160,Q.gh=5242880,Q.En=Math.max(4194304,Q.En),Q.HP=!0);z.video.Z>2160&&!Q.ON&&(Q.mq=104857600,Q.oi=13107200,Q.ON=!0);g.qf(Q.aj.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?z.isEncrypted()&&g.dR()&&g.K1("samsung")&&(g.K1("kant")||g.K1("muse"))&&(Q.oi=g.qf(Q.aj.experiments,"html5_samsung_kant_limit_max_bitrate")):z.isEncrypted()&&g.dR()&&g.K1("kant")&&(Q.oi=1310720);Q.ID!==0&&z.isEncrypted()&&(Q.oi=Q.ID);Q.W0!==0&&z.isEncrypted()&& H&&(Q.oi=Q.W0);z.oi&&(Q.l5=Math.max(Q.rz,Math.min(Q.En,5*z.oi)))}; V8=function(Q){return Q.Z&&Q.dS&&Q.playbackStartPolicy}; dH=function(Q){return Q.B||Q.Z&&Q.D6}; mr=function(Q,z,H,f){Q.dS&&(Q.playbackStartPolicy=z,Q.k6=H,Q.LU=f)}; KI=function(Q,z,H){H=H===void 0?0:H;return g.qf(Q.aj.experiments,z)||H}; kyY=function(Q){var z=Q===void 0?{}:Q;Q=z.kF;var H=z.e2;var f=z.V9;var b=z.Xg;z=z.I_;this.kF=Q;this.e2=H;this.V9=f;this.Xg=b;this.I_=z}; lJv=function(Q,z){if(z<0)return!0;var H=Q.Xg();return z0)return 2;if(z<0)return 1;H=Q.Xg();return z(0,g.NV)()?0:1}; kp=function(Q,z,H,f,b,L,u,X,v,y,q,M,C,t){t=t===void 0?null:t;g.h.call(this);var E=this;this.xv=Q;this.policy=z;this.videoTrack=H;this.audioTrack=f;this.D=b;this.Z=L;this.timing=u;this.S=X;this.schedule=v;this.n3=y;this.L=q;this.Ze=M;this.uE=C;this.KE=t;this.wh=!1;this.dM="";this.Xc=null;this.Ds=NaN;this.L3=!1;this.B=null;this.cB=this.U=NaN;this.pV=this.j=0;this.logger=new g.bk("dash");this.Po={hL:function(G,x){return E.hL(G,x)}}; this.policy.gA>0&&(this.dM=g.xk(this.policy.gA));this.policy.Ef&&(this.N=new wH(this.xv,this.policy,this.schedule),g.W(this,this.N))}; QlA=function(Q,z,H){var f=z.B?z.B.Z.Mz:z.Z.Mz;var b=Q.D,L;(L=!Q.policy.AP)||(L=$o(f.Z)===$o(f.L));L?f=!1:(b=p_(b,$o(f.L)),L=6E4*Math.pow(b.D,1.6),(0,g.NV)()=b.D?(b.On("sdai",{haltrq:L+1,est:b.D}),f=!1):f=b.B!==2;if(!f||!$l(z.B?z.B.Z.Mz:z.Z.Mz,Q.policy,Q.D,Q.xv.g5())||Q.xv.isSuspended&&(!gm(Q.schedule)||Q.xv.Vh))return!1;if(Q.policy.D&&Ah>=5)return g.lp(Q.xv.x8),!1;if(Q.n3.isManifestless){if(z.L.length>0&&z.B&&z.B.Ah===-1||z.L.length>=Q.policy.Br||!Q.policy.x6&&z.L.length>0&&!Q.policy.N.e2)return!1;if(z.Y)return!Q.n3.isLive||!isNaN(Q.Ds)}if(cQa(z))return Q.logger.debug("Pending request with server-selectable format found"), !1;if(!z.B){if(!z.Z.SH())return!1;WN(z,Q.xv.getCurrentTime())}if(dz(z)&&(z.qC()!==dz(z)||Q.xv.isSuspended))return!1;b=(f=Q.policy.pc)&&!z.L.length&&rH(z,!0)=Q.policy.hY)return!1;f=z.B;if(!f)return!0;f.type===4&&f.Z.SH()&&(z.B=g.Vs(f.Z.ev(f)),f=z.B);if(!f.lc()&&!f.Z.Me(f))return!1;L=Q.n3.l8||Q.n3.D;if(Q.n3.isManifestless&&L){L=z.Z.index.Xg();var u=H.Z.index.Xg(); L=Math.min(L,u);if(z.Z.index.Oa()>0&&L>0&&f.Ah>=L)return z.yl=L,H.yl=L,!1}if(f.Z.info.audio&&f.type===4||f.lc())return!1;L=!z.S&&!H.S;if(b=!b)b=f.j,b=!!(H.B&&!Yp(H,H.B)&&H.B.jz9a(Q,z)?(z9a(Q,z),!1):(Q=z.nH)&&Q.isLocked()?!1:!0}; z9a=function(Q,z){var H=Q.Z;H=H.Z?H.Z.BS:null;if(Q.policy.De&&H)return H.startSecs+H.NB+15;z=hv(Q.xv,z);Q.policy.KH>0&&(H=((0,g.NV)()-Q.xv.Yf)/1E3,z=Math.min(z,Q.policy.KH+Q.policy.kX*H));H=Q.xv.getCurrentTime()+z;return Q.policy.ZE&&(z=HoZ(Q.xv)+Q.policy.ZE,z=0||z.Mz.DR("defrag")==="1"||z.Mz.DR("otf")==="1"){z=null;break a}b=od(0,4096)}b=new P8([new Nm(5,f.Z,b,"createProbeRequestInfo"+f.Y,f.Ah)],z.B);b.Fp=H;b.Z=z.Z;z=b}z&&ec(Q,z)}}; ec=function(Q,z){Q.xv.xa(z);var H=SUJ(z),f=Q.xv.bR();H={L5:Q.schedule,TJ:H,fS:oAn(Q.S,H),Aj:Id(z.Tv[0]),oD:jl(z.Mz.Z),vV:Q.policy.L,eJ:function(u,X){Q.xv.Nn(u,X)}}; if(Q.schedule.B.j){var b,L;H.QF=(((b=Q.videoTrack.Z)==null?void 0:b.info.oi)||0)+(((L=Q.audioTrack.Z)==null?void 0:L.info.oi)||0)}Q.Xc&&(H.Ah=z.Tv[0].Ah,H.Ds=z.Ds,H.Xc=Q.Xc);f={yq:Xsk(z,Q.xv.getCurrentTime()),Yj:Q.policy.Ci&&UN(z)&&z.Tv[0].Z.info.video?W$9(Q.L):void 0,vO:Q.policy.De,poToken:Q.xv.tj(),Pp:Q.xv.kU(),dM:Q.dM,cB:isNaN(Q.cB)?null:Q.cB,KE:Q.KE,uE:Q.uE,pV:Q.pV,Ca:f};return new UJ(Q.policy,z,H,Q.D,function(u,X){try{a:{var v=u.info.Tv[0].Z,y=v.info.video?Q.videoTrack:Q.audioTrack;if(!(u.state>= 2)||u.isComplete()||u.TY()||!(!Q.xv.vI||Q.xv.isSuspended||rH(y)>3)){var q=lnn(u,Q.policy,Q.D);q===1&&(Q.L3=!0);fdu(Q,u,q);if(u.isComplete()||u.Sm()&&X<3){if(Q.policy.L){var M=u.timing.EU();M.rst=u.state;M.strm=u.xhr.yg();M.cncl=u.xhr&&u.f5.D?1:0;Q.xv.On("rqs",M)}u.jz&&Q.xv.On("sbwe3",{},!0)}if(!Q.Sm()&&u.state>=2){El8(Q.timing,u,v);var C=Q.xv;Q.cB&&u.Ok&&C&&(Q.cB=NaN,Q.xv.Y2(u.Ok),Q.xv.J1(),Q.xv.On("cabrUtcSeek",{mediaTimeSeconds:u.Ok}));u.w$&&Q.cB&&u.w$&&!u.w$.action&&(Q.xv.fl(Q.cB),Q.cB=NaN,Q.xv.On("cabrUtcSeekFallback", {targetUtcTimeSeconds:Q.cB}));u.Be&&Q.xv.N3(u.Be);Q.policy.d4&&(Q.pV=u.pV);if(u.state===3){PK(y,u);UN(u.info)&&lm(Q,y,v,!0);if(Q.B){var t=u.info.ZM();t&&Q.B.j6(u.info.Tv[0].Ah,v.info.id,t)}Q.xv.SA()}else if(u.isComplete()&&u.info.Tv[0].type===5){if(u.state!==4)u.vl()&&Q.xv.handleError(u.JF(),u.P0());else{var E=(u.info.Tv[0].Z.info.video?Q.videoTrack:Q.audioTrack).L[0]||null;E&&E instanceof UJ&&E.TY()&&E.SJ()}u.dispose()}else{u.vl()||boa(Q,u);var G;((G=u.HE)==null?0:G.itagDenylist)&&Q.xv.wK(u.HE.itagDenylist); if(u.state===4)Rb(Q,u),Q.Z&&Z_J(Q.Z,u.info,Q.B);else if(Q.policy.KZ&&u.uZ()&&!u.isComplete()&&!Rb(Q,u)&&!u.vl())break a;u.vl()&&(LD_(Q,u),isNaN(Q.cB)||(Q.xv.fl(Q.cB),Q.cB=NaN));Q.policy.gT&&!u.isComplete()?Qk(Q.xv):Q.xv.SA();var x=Rx9(u,Q.policy,Q.D);fdu(Q,u,x)}}}}}catch(J){X=Q.wh?1:0,Q.wh=!0,u=oj(X),X=JI(J,X),Q.xv.handleError(X.errorCode,X.details,X.severity),u||Q.xv.lH()}},f)}; boa=function(Q,z){if(z.Xs&&z.state>=2&&z.state!==3){var H=z.xhr.getResponseHeader("X-Response-Itag");if(H){Q.logger.debug(function(){return"Applying streamer-selected format "+H}); var f=h59(Q.L,H),b=z.info.L;b&&(b-=f.XO(),f.L=!0,z.info.Tv[0].Z.L=!1,VlY(z,f.t3(b)),zc(Q.xv,Q.videoTrack,f),iyk(Q.videoTrack,f),Q.xv.Gz(f.info.video.quality),(b=z.RP())&&f.info.lastModified&&f.info.lastModified!==+b&&PK(Q.videoTrack,z))}else z.Xs=!1}}; LD_=function(Q,z){var H=z.info.Tv[0].Z,f=z.JF();if(jl(H.Mz.Z)){var b=g.g7(z.q8(),3);Q.xv.On("dldbrerr",{em:b||"none"})}b=z.info.Tv[0].Ah;var L=ik(Q.Z,z.info.Tv[0].D,b);f==="net.badstatus"&&(Q.j+=1);if(z.canRetry()&&HW(Q.xv)){if(!(z.info.Mz.B>=Q.policy.U2&&Q.B&&z.info.isDecorated()&&f==="net.badstatus"&&Q.B.FQ(L,b))){b=(H.info.video&&H.Mz.B>1||z.Yu===410||z.Yu===500||z.Yu===503)&&!(dY(Q.L.S).size>0)&&!jl(H.Mz.Z);L=z.P0();var u=H.info.video?Q.videoTrack:Q.audioTrack;b&&(L.stun="1");Q.xv.handleError(f, L);Q.Sm()||(b&&(Q.logger.debug(function(){return"Stunning format "+H.info.id}),R8(Q.L,H)),PK(u,z),Q.xv.SA())}}else u=1,Q.B&&z.info.isDecorated()&&f==="net.badstatus"&&Q.B.FQ(L,b)&&(u=0),Q.n3.isLive&&z.JF()==="net.badstatus"&&Q.j<=Q.policy.WY*2?(XRZ(Q.n3),Q.n3.l8||Q.n3.isPremiere?VW(Q.xv,0,{lr:"badStatusWorkaround"}):Q.n3.D?VW(Q.xv,Q.n3.jm,{lr:"badStatusWorkaround", F2:!0}):fB(Q.xv)):Q.xv.handleError(f,z.P0(),u)}; Rb=function(Q,z){if(Q.policy.useUmp&&z.Sm())return!1;try{var H=z.info.Tv[0].Z,f=H.info.video?Q.videoTrack:Q.audioTrack;if(Q.n3.isManifestless&&f){Q.j=0;f.Y&&(z.Sm(),z.isComplete()||z.uZ(),f.Y=!1);z.ji()&&Q.xv.EM.iH(1,z.ji());var b=z.Oa(),L=z.iQ();$i(Q.n3,b,L)}if(z.info.Aj()&&!ad(z.info))for(var u=g.n(z.Rx()),X=u.next();!X.done;X=u.next())JQ6(f,X.value);for(Q.xv.getCurrentTime();f.L.length&&f.L[0].state===4;){var v=f.L.shift();oiL(f,v);f.En=v.Y0()}f.L.length&&oiL(f,f.L[0]);var y=!!dz(f);y&&z instanceof aM&&(H.info.Wq()?X8v(Q.timing):SNL(Q.timing));return y}catch(q){z=z.P0();z.origin="hrhs";a:{Q=Q.xv;H=q;if(H instanceof Error){z.msg||(z.msg=""+H.message);z.name||(z.name=""+H.name);if(H instanceof g.wD&&H.args)for(f=g.n(Object.entries(H.args)),b=f.next();!b.done;b=f.next())L=g.n(b.value),b=L.next().value,L=L.next().value,z["arg"+b]=""+L;g.PT(H);if(H.level==="WARNING"){Q.HI.a4(z);break a}}Q.handleError("fmt.unplayable",z,1)}return!1}}; uuu=function(Q){var z=Q.videoTrack.Z.index;Q.Xc=new kyY({kF:Q.policy.kF,e2:Q.policy.N.e2,V9:z.NR(),Xg:function(){return z.Xg()}, I_:function(){return z.I_()}})}; lm=function(Q,z,H,f){var b=Q.policy.o8?Q.xv.g5():0;H.SH()||H.WC()||H.L||!$l(H.Mz,Q.policy,Q.D,b)||H.info.Rj==="f"||Q.policy.Z||(f?(f=Q.S,b=H.info,f=JK9(f,b.video?f.policy.i9:f.policy.kc,b.oi)):f=0,f=H.t3(f),Q=ec(Q,f),ad(f)&&OR(z,Q),H.L=!0)}; bK=function(Q,z,H,f,b,L,u,X){g.h.call(this);var v=this;this.xv=Q;this.Wo=z;this.videoTrack=H;this.audioTrack=f;this.n3=b;this.U=L;this.isAudioOnly=u;this.N=X;this.B=WV;this.L3=!1;this.logger=new g.bk("sabr");this.S=this.wh=this.Ze=!1;this.videoInfos=this.Y=this.U.videoInfos;this.L=this.De=this.U.Z;this.Z=new KH(z,L,function(y,q){v.xv.On(y,q)}); this.Wo.zO||S8k(this);this.isAudioOnly&&X0n(this,this.n3.Z["0"])}; vhu=function(Q,z){var H=[];z=g.n(z);for(var f=z.next();!f.done;f=z.next())H.push(g.la(f.value,Q.n3.AZ));return H}; X0n=function(Q,z,H){z!==Q.D&&(Q.D&&(Q.L3=!0),Q.D=z,Q.Zg(z,Q.videoTrack,H))}; MNk=function(Q,z){Q.logger.debug("setConstraint: "+u$(z));dH(Q.Wo)&&(Q.wh=z.reason==="m"||z.reason==="l"?!0:!1);z.reason==="m"?z.isLocked()&&yEv(Q,z.Z):q8J(Q,z)?LB(Q,z.B,z.Z):Q.videoInfos=Q.Y;Q.B=z}; q8J=function(Q,z){return Q.Wo.yA&&z.reason==="b"||Q.Wo.nT?!1:Q.Wo.Jk?!0:z.reason==="l"||z.reason==="b"||z.reason==="o"}; Cf6=function(Q,z){return z.isLocked()&&Q.Z.B||Q.B===void 0?!1:z.jH(Q.B)}; tN9=function(Q,z){var H,f=(H=Q.D)==null?void 0:H.info.video.Z;return Q.L3?!0:Q.D?z!==f?!0:!Q.Z.B||Q.Wo.Tw&&Q.Z.Z===Q.D.info.itag?!1:!0:!1}; yEv=function(Q,z){var H=Q.Z.Z;if(H){Q.videoInfos=Q.Y;var f=g.mB(Q.videoInfos,function(b){return b.id===H}); f&&f.video.Z===z?Q.videoInfos=[f]:(f=Q.videoInfos.map(function(b){return b.id}),Q.xv.On("sabrpf",{pfid:""+H, vfids:""+f.join(".")}),LB(Q,z,z),wY(Q.Z,""))}else LB(Q,z,z)}; LB=function(Q,z,H){Q.videoInfos=Q.Y;Q.videoInfos=g.yP(Q.videoInfos,function(f){return f.video.Z>=z&&f.video.Z<=H})}; S8k=function(Q){var z=F$L(Q.Z,Q.N);z&&(Q.L=[z])}; Ehp=function(Q,z,H){if(Q.Wo.zO){if(Q.N){var f=g.yP(Q.L,function(b){return b.id===Q.N}); return uK(f,H).includes(z)}f=g.yP(Q.L,function(b){var L;return!((L=b.Ii)==null||!L.isDefault)}); if(f.length>0)return uK(f,H).includes(z)}return uK(Q.L,H).includes(z)}; uK=function(Q,z){return Q.map(function(H){return jA(g.la(H,z))})}; p0u=function(Q){var z;if((z=Q.B)==null?0:z.isLocked())return Q.videoInfos;var H=dY(Q.Z);z=g.yP(Q.videoInfos,function(f){return f.oi>Q.Wo.oi?!1:!H.has(f.id)}); jdL(Q.Z)&&(z=g.yP(z,function(f){return f.video.width<=854&&f.video.height<=480})); return z}; Zoa=function(Q,z,H,f){var b=Q.n3,L=Q.HI.getVideoData(),u=g.mI(L),X=Q.LR,v=gY({aj:L.C(),HI:Q.HI,IG:Q.IG,Wo:Q.Wo,Yf:Q.Yf,Nm:Q.Nm,GX:Q.GX,Cb:Q.Cb,He:Q.He,isPrefetch:Q.isPrefetch,pk:Q.pk,sabrLicenseConstraint:L.sabrLicenseConstraint,VT:Q.VT,jM:Q.jM,uJ:Q.uJ,Ik:Q.Ik,wzh:!!X}),y=Zr(L,Q.Ca,Q.nextRequestPolicy,Q.S6,Q.XN,Q.Yxh,Q.fJ);f&&H&&(f=y.Ad?y.Ad.map(function(G){return G.type}):[],H("sabr",{stmctxt:f.join("_"), unsntctxt:y.tb?y.tb.join("_"):""}));f=Q.qy;var q=Q.aT;if(q===void 0&&f===void 0){var M;q=nhY(b.AZ,(M=Q.gJ)==null?void 0:M.video);var C;f=nhY(b.AZ,(C=Q.gJ)==null?void 0:C.audio)}if(L.KE)var t=L.KE;L={hK:v,u$:Q.u$,qy:f,aT:q,LR:X,videoPlaybackUstreamerConfig:t,Cx:y};Q.t8&&(L.t8=Q.t8);if(u&&z){u=new Map;var E=g.n(b.f3);for(X=E.next();!X.done;X=E.next())X=X.value,(v=b.mq[VPY(b,X)]||"")?(u.has(v)||u.set(v,[]),u.get(v).push(X)):H&&H("ssap",{nocid4fmt:(X.itag||"")+"_"+(X.lmt||0)+"_"+(X.xtags||"")});b=new Map; E=g.n(Q.ue);for(X=E.next();!X.done;X=E.next())X=X.value,v=X.startTimeMs||0,y=void 0,M=(y=z)==null?void 0:BN(y,v),y=M.clipId,M=M.hB,y?(b.has(y)||(C=u.get(y)||[],b.set(y,{clipId:y,ue:[],xq:C})),M!==0&&(X.startTimeMs=v-M),b.get(y).ue.push(X)):H&&(y=void 0,H("ssap",{nocid4range:"1",fmt:((y=X.formatId)==null?void 0:y.itag)||"",st:v.toFixed(3),d:(X.durationMs||0).toFixed(3),timeline:S8(z)}));L.Yi=[];b=g.n(b.entries());for(u=b.next();!u.done;u=b.next())u=g.n(u.value),u.next(),u=u.next().value,L.Yi.push(u); if(Q.ue.length&&!L.Yi.length){H&&H("ssap",{nobfrange:"1",br:gh_(Q.ue),timeline:S8(z)});return}Q.xl&&(L.xl=Q.xl);Q.Oh&&(L.Oh=Q.Oh)}else L.ue=Q.ue,L.xq=b.f3,u&&((E=Q.ue)==null?void 0:E.length)>0&&!z&&H&&H("ssap",{bldmistlm:"1"});return L}; nhY=function(Q,z){return z?[g.la(z.info,Q)]:[]}; gh_=function(Q){var z="";Q=g.n(Q);for(var H=Q.next();!H.done;H=Q.next()){H=H.value;var f=void 0,b=void 0,L=void 0;z+="fmt."+(((f=H.formatId)==null?void 0:f.itag)||"")+"_"+(((b=H.formatId)==null?void 0:b.lmt)||0)+"_"+(((L=H.formatId)==null?void 0:L.xtags)||"")+";st."+(H.startTimeMs||0).toFixed(3)+";d."+(H.durationMs||0).toFixed(3)+";"}return z}; XT=function(Q,z,H){var f=this;this.requestType=Q;this.Mz=z;this.zL=H;this.B=null;this.Po={CUv:function(){var b;return(b=f.data)==null?void 0:b.isPrefetch}, XN:function(){var b;return(b=f.data)==null?void 0:b.XN}}}; fZu=function(Q,z,H){z=ZZ(Q.Mz,Gtk(Q,z,H),z);Q.PQ()&&z.set("probe","1");return z}; Gtk=function(Q,z,H){Q.Fp===void 0&&(Q.Fp=Q.Mz.Fp(z,H));return Q.Fp}; $$v=function(Q){var z,H;return((z=Q.Z)==null?void 0:(H=z.hK)==null?void 0:H.QZ)||0}; jln=function(Q){var z,H;return!!((z=Q.Z)==null?0:(H=z.hK)==null?0:H.VT)}; FDu=function(Q){var z={},H=[],f=[];if(!Q.data)return z;for(var b=0;b0;v--)H.push(X)}H.length!==u?z.error=!0:(L=H.slice(-L),H.length=b,w0u(z,H,L));break;case 1:w0u(z,Uz,WDJ);break;case 0:ktY(z, z.Z&7);H=WW(z,16);b=WW(z,16);(H^b)!==65535&&(z.error=!0);z.output.set(z.data.subarray(z.B,z.B+H),z.L);z.B+=H;z.L+=H;break;default:z.error=!0}Q.L>Q.output.length&&(Q.output=new Uint8Array(Q.L*2),Q.L=0,Q.B=0,Q.D=!1,Q.Z=0,Q.register=0)}Q.output.length!==Q.L&&(Q.output=Q.output.subarray(0,Q.L));return Q.error?new Uint8Array(0):Q.output}; w0u=function(Q,z,H){z=d$Z(z);H=d$Z(H);for(var f=Q.data,b=Q.output,L=Q.L,u=Q.register,X=Q.Z,v=Q.B;;){if(X<15){if(v>f.length){Q.error=!0;break}u|=(f[v+1]<<8)+f[v]<>=7;y<0;)y=z[(u&1)-y],u>>=1;else u>>=y&15;X-=y&15;y>>=4;if(y<256)b[L++]=y;else if(Q.register=u,Q.Z=X,Q.B=v,y>256){u=iK[y];u+=WW(Q,cW[y]);v=m$Z(Q,H);X=hJ[v];X+=WW(Q,D$c[v]);if(e9n&&uH.length&&(Q.error=!0);Q.register|=(H[f+1]<<8)+H[f]<=0)return ktY(Q,H&15),H>>4;for(ktY(Q,7);H<0;)H=z[WW(Q,1)-H];return H>>4}; WW=function(Q,z){for(;Q.Z=Q.data.length)return Q.error=!0,0;Q.register|=Q.data[Q.B++]<>=z;Q.Z-=z;return H}; ktY=function(Q,z){Q.Z-=z;Q.register>>=z}; d$Z=function(Q){for(var z=[],H=g.n(Q),f=H.next();!f.done;f=H.next())f=f.value,z[f]||(z[f]=0),z[f]++;var b=z[0]=0;H=[];var L=0;f=0;for(var u=1;u7&&(L+=z[u]);for(b=1;b>v&1;X=L<<4|u;if(u<=7)for(v=1<<7-u;v--;)f[v<>=7;u--;){f[v]||(f[v]=-z,z+=2);var y=b&1;b>>=1;v=y-f[v]}f[v]=X}}return f}; ldu=function(Q){var z,H,f,b,L,u,X;return g.B(function(v){switch(v.Z){case 1:if(!("DecompressionStream"in window))return v.return(g.Tmc(new g.KD6(Q)));z=new DecompressionStream("gzip");H=z.writable.getWriter();H.write(Q);H.close();f=z.readable.getReader();b=new n4([]);case 2:return g.Y(v,f.read(),5);case 5:L=v.B;u=L.value;if(X=L.done){v.bT(4);break}b.append(u);v.bT(2);break;case 4:return v.return(b.K4())}})}; DD=function(Q,z){this.Z=Q;this.xs=z}; R9n=function(Q){return CE(CE(y1(function(){return M1(Q.xs,function(z){return Q.Np(Q.Z,z)})}),function(){return Q.ul(Q.Z)}),function(){return Q.dB(Q.Z)})}; QZa=function(Q,z){return R9n(new DD(Q,z))}; f1Z=function(Q){jS.call(this,"onesie");this.Bo=Q;this.Z={};this.L=!0;this.D=null;this.queue=new h9v(this);this.S={};this.j=SV6(function(z,H){var f=this;return function L(){var u,X,v,y,q,M,C,t,E,G,x,J,I,r,U,D,T,k,bL,SY;return MYp(L,function(Q9){switch(Q9.Z){case 1:g.jY(Q9,2);f.Bo.Bm();u=function(V){return function(R){throw{name:V,message:R};}}; X=z.K4();g.$v(Q9,4,5);if(!H){Q9.bT(7);break}return X_Z(Q9,CE(zy6(f.Bo,X,f.iv),u("DecryptError")).wait(),8);case 8:v=Q9.B;case 7:if(!f.Bo.enableCompression){Q9.bT(9);break}return X_Z(Q9,CE(QZa((M=v)!=null?M:X,f.Bo.C().LA),u("DecompressError")).wait(),10);case 10:y=Q9.B;case 9:q=hr((t=(C=y)!=null?C:v)!=null?t:X,XDk);case 5:g.OA(Q9,0,2);if(G=(E=f.Bo.C())==null?void 0:E.xs)((x=v)==null?void 0:x.buffer)===G.exports.memory.buffer&&G.free(v.byteOffset),((J=y)==null?void 0:J.buffer)===G.exports.memory.buffer&& G.free(y.byteOffset);g.oJ(Q9,6);break;case 4:throw r=I=g.xv(Q9),new Oh("onesie.response.parse",{name:(k=r.name)!=null?k:"unknown",message:(bL=r.message)!=null?bL:"unknown",wasm:((U=f.Bo.C())==null?0:U.xs)?((D=f.Bo.C())==null?0:(T=D.xs)==null?0:T.fV)?"1js":"1":"0",enc:f.L,gz:f.Bo.enableCompression,webcrypto:!!GL()});case 6:return Hv6(q),SY=g.ot(q.body),Q9.return(SY);case 2:g.OA(Q9),g.oJ(Q9,0)}})}()})}; bv9=function(Q){var z=Q.queue;z.Z.length&&z.Z[0].isEncrypted&&!z.B&&(z.Z.length=0);z=g.n(Object.keys(Q.Z));for(var H=z.next();!H.done;H=z.next()){H=H.value;var f=Q.Z[H];if(!f.Ko){var b=Q.queue;b.Z.push({videoId:f.videoId,formatId:H,isEncrypted:!1});b.B||aD(b)}}}; uRc=function(Q,z){var H=z.getLength(),f=!1;switch(Q.D){case 0:Q.Bo.V("html5_future_onesie_ump_handler_on_player_response")?CE(M1(Q.j(z,Q.L),function(b){LIJ(Q.Bo,b)}),function(b){Q.Bo.d7(b)}):Q.Bm(z,Q.L).then(function(b){LIJ(Q.Bo,b)},function(b){Q.Bo.d7(b)}); break;case 2:Q.Pc("ormk");z=z.K4();Q.queue.decrypt(z);break;default:f=!0}Q.Bo.cG&&Q.Bo.On("ombup","id.11;pt."+Q.D+";len."+H+(f?";ignored.1":""));Q.D=null}; Hv6=function(Q){if(Q.LN!==1)throw new Oh("onesie.response.badproxystatus",{st:Q.LN,webcrypto:!!GL(),textencoder:!!g.iL.TextEncoder});if(Q.Et!==200)throw new Oh("onesie.response.badstatus",{st:Q.Et});}; Ss_=function(Q){return new Promise(function(z){setTimeout(z,Q)})}; XV6=function(Q,z){var H=Q.C();H=Q.d4&&H.V("html5_onesie_preload_use_content_owner");var f=Q.KS,b=ki(z.rh.experiments,"debug_bandaid_hostname");if(b)z=sz(z,b);else if((H===void 0?0:H)&&(f==null?0:f.url)&&!z.B){var L=$o(new g.ZM(f.url));z=sz(z,L)}else z=(L=z.Z.get(0))==null?void 0:L.location.clone();if(z&&Q.videoId){L=fo(Q.videoId);Q=[];if(L)for(L=g.n(L),H=L.next();!H.done;H=L.next())Q.push(H.value.toString(16).padStart(2,"0"));z.set("id",Q.join(""));return z}}; vav=function(Q,z,H){H=H===void 0?0:H;var f,b;return g.B(function(L){if(L.Z==1)return f=[],f.push(z.load()),H>0&&f.push(Ss_(H)),g.Y(L,Promise.race(f),2);b=XV6(Q,z);return L.return(b)})}; yh8=function(Q,z,H,f){f=f===void 0?!1:f;Q.set("cpn",z.clientPlaybackNonce);Q.set("opr","1");var b=z.C();Q.set("por","1");GL()||Q.set("onem","1");z.startSeconds>0&&Q.set("osts",""+z.startSeconds);f||(b.V("html5_onesie_disable_partial_segments")&&Q.set("oses","1"),z=b.V("html5_gapless_onesie_no_media_bytes")&&H7(z)&&z.d4,H&&!z?(z=H.audio,Q.set("pvi",H.video.join(",")),b.V("html5_onesie_disable_audio_bytes")||Q.set("pai",z.join(",")),wS||Q.set("osh","1")):(Q.set("oad","0"),Q.set("ovd","0"),Q.set("oaad", "0"),Q.set("oavd","0")))}; qsY=function(Q,z,H,f,b){b=b===void 0?!1:b;var L="https://youtubei.googleapis.com/youtubei/"+z.N7.innertubeApiVersion+"/player",u=[{name:"Content-Type",value:"application/json"}];f&&u.push({name:"Authorization",value:"Bearer "+f});u.push({name:"User-Agent",value:g.Ns()});g.T5("EOM_VISITOR_DATA")?u.push({name:"X-Goog-EOM-Visitor-Id",value:g.T5("EOM_VISITOR_DATA")}):(H=H.visitorData||g.T5("VISITOR_DATA"))&&u.push({name:"X-Goog-Visitor-Id",value:H});(H=g.T5("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&u.push({name:"X-YouTube-Lava-Device-Context", value:H});(z=ki(z.experiments,"debug_sherlog_username"))&&u.push({name:"X-Youtube-Sherlog-Username",value:z});Q=It(JSON.stringify(Q));return{url:L,yS:u,postBody:Q,aYT:b,YK:b}}; CF_=function(Q,z,H,f,b,L){var u=g.kS(Q,SBv,Q.YK?void 0:H.xs),X={encryptedClientKey:z.Z.encryptedClientKey,Kz:!0,x0:!0,Wf:Mwa(H,!!Q.YK),Nd:H.experiments.Nc("html5_use_jsonformatter_to_parse_player_response")};if(Q.YK)X.wU5=u;else{Q=z.encrypt(u);var v;if(((v=H.xs)==null?void 0:v.exports.memory.buffer)===u.buffer&&Q.byteOffset!==u.byteOffset){var y;(y=H.xs)==null||y.free(u.byteOffset)}var q;Q=((q=H.xs)==null?void 0:q.yD(Q))||Q;u=X.q2=Q;(0,g.NV)();u=Qxp(new RSJ(z.Z.L),u,z.iv);X.vF=u;X.iv=z.iv}z=f.getVideoData(); H=gY({aj:H,HI:f,IG:z.startSeconds*1E3});b={AL:X,hK:H,onesieUstreamerConfig:b,VO:L,Cx:Zr(z)};z.reloadPlaybackParams&&(b.reloadPlaybackParams=z.reloadPlaybackParams);return b}; twp=function(Q,z,H){var f,b,L;return g.B(function(u){if(u.Z==1)return f=g.kS(z,SBv),g.Y(u,Y8v(H,f),2);if(u.Z!=3)return b=u.B,g.Y(u,rEZ(H,b),3);L=u.B;return u.return({q2:b,encryptedClientKey:H.Z.encryptedClientKey,iv:H.iv,vF:L,Kz:!0,x0:!0,Wf:Mwa(Q,!!z.YK),Nd:Q.experiments.Nc("html5_use_jsonformatter_to_parse_player_response")})})}; Ean=function(Q,z,H,f,b,L){var u,X,v,y;return g.B(function(q){if(q.Z==1)return g.Y(q,twp(H,Q,z),2);u=q.B;X=f.getVideoData();v=gY({aj:H,HI:f,IG:X.startSeconds*1E3});y={AL:u,hK:v,onesieUstreamerConfig:b,VO:L,Cx:Zr(X)};X.reloadPlaybackParams&&(y.reloadPlaybackParams=X.reloadPlaybackParams);return q.return(y)})}; Mwa=function(Q,z){Q=no(Q.schedule,!0);z=z||!!GL()&&Q>1572864;return"DecompressionStream"in window||!z}; Vk=function(Q,z){g.h.call(this);var H=this;this.HI=Q;this.playerRequest=z;this.logger=new g.bk("onesie");this.xhr=null;this.state=1;this.LZ=new k6;this.Ae=!1;this.playerResponse="";this.rN=new RM(this);this.h8=new f1Z(this);this.RU="";this.T3=this.Oz=!1;this.jB="";this.enableCompression=this.PW=this.hU=!1;this.E6=[];this.PR=this.D3=-1;this.rh=this.HI.C();this.videoData=this.HI.getVideoData();this.cG=this.rh.vz();this.pB=this.rh.Tw;this.Jz=new YY(this.pB.Z,this.rh.LA,x$_(this.rh));this.U6=this.rh.V("html5_onesie_check_timeout"); this.Zy=new g.e_(this.Pi,500,this);this.fD=new g.e_(this.zf,1E4,this);this.G8=new g.e_(function(){if(!H.isComplete()){var f=KB(H);H.d7(new Oh("net.timeout",f))}},1E3); this.qb=new g.e_(this.Qiv,2E3,this);this.fK=this.HI.kU();this.ZP=this.V("html5_onesie_wait_for_media_availability");g.W(this.videoData,this);g.W(this,this.Zy);g.W(this,this.fD);g.W(this,this.qb);g.W(this,this.Jz);Q=eb();wS&&Q&&(this.M8=new Map);this.VQ=new Map;this.bV=new Map;this.ez=new Map;this.qg=new Map}; PW=function(Q,z){var H;return(H=Q.M8)==null?void 0:H.get(z)}; na9=function(Q,z,H){var f;return g.B(function(b){if(b.Z==1)return Q.Pc("oprd_s"),pVp(Q)?g.Y(b,slv(Q.Jz,z,H),3):(f=Q.Jz.decrypt(z,H),b.bT(2));b.Z!=2&&(f=b.B);Q.Pc("oprd_c");return b.return(f)})}; zy6=function(Q,z,H){Q.Pc("oprd_s");z=AEk(Q.Jz).encrypt(z,H);M1(z,function(){Q.Pc("oprd_c")}); return z}; gav=function(Q){return Q.V("html5_onesie_host_probing")||Q.cG?wS:!1}; LIJ=function(Q,z){Q.Pc("oprr");Q.playerResponse=z;Q.PW||(Q.ZP=!1);d9(Q)}; d9=function(Q){if(!Q.playerResponse)return!1;if(Q.hU)return!0;var z=Q.videoData.V("html5_onesie_audio_only_playback")&&f9(Q.videoData);if(Q.M8&&Q.ZP){if(!Q.M8.has(Q.RU))return!1;var H=Q.M8.get(Q.RU),f;if(f=H){f=!1;for(var b=g.n(H.EV.keys()),L=b.next();!L.done;L=b.next())if(L=H.EV.get(L.value))for(var u=g.n(L.NZ),X=u.next();!X.done;X=u.next())X.value.dX>0&&(L.Wq?f=!0:z=!0);f=!(z&&f)}if(f)return!1}Q.Pc("ofr");Q.LZ.resolve(Q.playerResponse);if(!Q.U6){var v;(v=Q.G8)==null||v.start();Q.fD.start()}return Q.hU= !0}; GZL=function(Q){if(Q.M8&&!Q.V("html5_onesie_media_capabilities")){Q.Pc("ogsf_s");var z=srv(Q.HI.getVideoData(),function(f,b){Q.On(f,b)}),H=Zva(Q.HI); z.video=xBa(H,z.video);Q.Pc("ogsf_c");if(z.video.length)return z;Q.On("ombspf","l."+H.B+";u."+H.Z+";o."+H.L+";r."+H.reason)}}; pVp=function(Q,z){return Q.V("html5_onesie_sync_request_encryption")||(z==null?0:z.YK)||g.kh(Q.rh)&&Q.V("html5_embed_onesie_use_sync_encryption")?!1:!!GL()}; KB=function(Q){if(!Q.wr)return{};var z=Q.wr.EU(),H;z.d=(H=Q.wr.yl)==null?void 0:H.dP();z.shost=Q.yy;z.ty="o";return z}; $G6=function(Q,z){var H,f;(f=(Q=(H=Q.M8)==null?void 0:H.get(z))==null)||(z=Q.L?!1:Q.L=!0,f=!z);return!f}; jZ9=function(Q,z,H,f,b,L,u,X,v,y,q){g.h.call(this);var M=this;this.HI=Q;this.xv=z;this.policy=H;this.audioTrack=f;this.videoTrack=b;this.n3=L;this.L5=u;this.uT=X;this.L=v;this.timing=y;this.U=q;this.Z=[];this.Y={};this.En=this.iT=!1;this.S6=new Set;this.S=this.mq=this.Ze=this.He=0;this.D=null;this.L3={ue:[],u$:[]};this.De={ue:[],u$:[]};this.j=null;this.jm=[];this.Po={kNl:function(){return M.Z}, ERq:function(){return M.Y}, CzI:function(){M.Z.length=0}, Tx3:function(){return M.S6}, Ffj:function(){return M.Ze}, E$5:function(C){M.Ze=C}, h7v:function(C){M.S=C}, Y4:function(C){M.j=C}}; this.videoData=this.HI.getVideoData();this.policy.Ef&&(this.f3=new wH(this.xv,this.policy,this.L5),g.W(this,this.f3))}; Ov9=function(Q,z){z=z===void 0?!1:z;if(FI6(Q,z)){Q.policy.Y&&Q.xv.On("sabrcrq",{create:1});var H=new XT(0,Q.n3.N,Q);Q.policy.dQ>0&&Q.S++;z=xG9(Q,H,z);Q.Z.push(z);var f;(f=Q.f3)==null||TSA(f,Q.n3.N)}}; I18=function(Q,z){var H=oan(Q);if(Q.policy.MD){var f=Q.L3;var b=Q.De}else f=ma(Q,Q.audioTrack),b=ma(Q,Q.videoTrack);var L=[].concat(g.F(f.ue),g.F(b.ue));Q.policy.ZJ&&Q.j&&L.push.apply(L,g.F(Q.jm));var u=[].concat(g.F(f.u$),g.F(b.u$)),X=Q.xv.bR(),v,y,q=Q.HI,M=Q.n3,C=Q.B,t=Q.S6,E=Q.policy,G=Q.xv.Yf,x=HoZ(Q.xv)*1E3,J=(v=Q.yl)==null?void 0:v.GX;v=(y=Q.yl)==null?void 0:y.Cb;var I;y=Number((I=Q.L.D)==null?void 0:I.info.itag)||0;var r;I=Number((r=Q.L.j)==null?void 0:r.info.itag)||0;z={HI:q,n3:M,ue:L,u$:u, IG:H,nextRequestPolicy:C,S6:t,Wo:E,Yf:G,Nm:x,GX:J,Cb:v,He:Q.He,isPrefetch:z||Q.xv.isSuspended,xl:y,Oh:I,Ca:X,fJ:Q.HI.Si()};H=Q.xv.tj();L=fo(H);H&&(z.XN=L);if(H=Q.HI.R_())z.VT=H*1E3;var U;H=Q.L;L=H.Ze;if((H.Wo.B&&H.Wo.Fu||((U=H.Wo)==null?0:U.Z&&U.D6))&&!L)for(U=g.n(H.L),u=U.next();!u.done;u=U.next())if(u.value.Ii){L=!0;break}U=dH(H.Wo)&&!L?[]:vhu(H,H.L);z.qy=U;U=Q.L;dH(U.Wo)&&!U.wh?U=[]:(H=p0u(U),H.length===0&&(H=U.Y),U=vhu(U,H));z.aT=U;z.LR=Q.policy.ZJ&&Q.j?[Q.j]:void 0;Q.policy.ra&&(z.uJ=Jhc(Q.xv, Q.audioTrack),z.Ik=Jhc(Q.xv,Q.videoTrack));if(Q.policy.S){f=Nra(Q,f.ue,b.ue);var D;if(b=(D=Q.D)==null?void 0:D.W4(f))z.t8=b}Q.policy.jm&&Q.Z.length>0&&Q.Z[0].TM()&&(z.Yxh=Q.Z[0].FO());return z}; oan=function(Q){var z,H=Q.policy.j&&((z=Q.xv)==null?void 0:z.bJ());z=Q.xv.getCurrentTime()||0;z=Ah9(Q,z);var f=Q.xv.ex()||0;z+=f;f=NY(Q.videoData)||g.JM(Q.videoData);var b=0;H?(f&&(b=Number.MAX_SAFE_INTEGER),Q.videoData.f3&&(b=Math.ceil(Q.videoData.jm*1E3))):b=Math.ceil(z*1E3);return Math.min(Number.MAX_SAFE_INTEGER,b)}; Ah9=function(Q,z){if(Q.xv.isSeeking())return z;var H=Q.HI.aB();if(!H)return z;H=H.Ux();if(H.length===0||SP(H,z))return z;if(!he(Q.videoTrack,z)&&!he(Q.audioTrack,z))return Q.xv.On("sundrn",{b:0,lt:z}),z;for(var f=z,b=Infinity,L=0;Lz)){var u=z-H.end(L);u=20)?(Q.xv.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),z):f}; Nra=function(Q,z,H){var f=Q.xv.getCurrentTime()||0;z=Ysp(Q,z,f);Q=Ysp(Q,H,f);return Math.min(z,Q)}; Ysp=function(Q,z,H){Q=Q.xv.ex()||0;z=g.n(z);for(var f=z.next();!f.done;f=z.next()){var b=f.value;f=b.startTimeMs?b.startTimeMs/1E3-Q:0;b=f+(b.durationMs?b.durationMs/1E3:0);if(f<=H&&H<=b)return b}return H}; FI6=function(Q,z){if(Q.policy.dQ>0){var H=Math.floor((0,g.NV)()/1E4);if(H===Q.mq){if(Q.S>=Q.policy.dQ){if(Q.S===Q.policy.dQ){var f={reason:"toomanyrequests"};f.limit=Q.S;Q.xv.handleError("player.exception",f);Q.S+=1}return!1}}else Q.mq=H,Q.S=0}z=!z&&!gm(Q.L5)&&!Q.policy.uL;if(Q.xv.isSuspended&&(Q.xv.Vh||z))return!1;if(Q.wh&&(0,g.NV)()0&&(!Q.policy.jm||Q.Z.length!==1||!Q.Z[0].TM()))return!1;var b;if((b=Q.n3.N)==null||!$l(b,Q.policy,Q.Y,Q.xv.g5()))return!1; b=Q.policy.Dj&&Q.policy.B&&Q.xv.t$();if(UR(Q.audioTrack)&&UR(Q.videoTrack)&&!b)return!1;if(Q.policy.B&&Q.N&&!Q.xv.t$())return Q.Hz("ssap",{pauseontlm:1}),!1;if(w9(Q,Q.audioTrack)&&w9(Q,Q.videoTrack))return Q.policy.L&&Q.xv.On("sabrHeap",{a:""+Ae(Q.audioTrack),v:""+Ae(Q.videoTrack)}),!1;if(b=Q.policy.S)b=!1,Q.U.B===2?b=!0:Q.U.B===3&&(oan(Q),Q.xv.ex(),z=Nra(Q,Je(Q.audioTrack,Q.xv.isSeeking()).ue,Je(Q.videoTrack,Q.xv.isSeeking()).ue),H=Q.U,z>=H.L?(H.On("sdai",{haltrq:z,est:H.L}),z=!0):z=!1,z&&(b=!0)), b&&Q.policy.Y&&Q.xv.On("sabrcrq",{waitad:1});if(b)return!1;Q.policy.MD&&(Q.L3=ma(Q,Q.audioTrack),Q.De=ma(Q,Q.videoTrack));if(!Q.B)return Q.policy.Y&&Q.xv.On("sabrcrq",{nopolicy:1}),!0;if(Q.HI.R_())return Q.policy.Y&&Q.xv.On("sabrcrq",{utc:1}),!0;if(Q.L.S)return Q.policy.Y&&Q.xv.On("sabrcrq",{audio:1}),!0;if(!Q.B.targetAudioReadaheadMs||!Q.B.targetVideoReadaheadMs)return Q.policy.Y&&Q.xv.On("sabrcrq",{noreadahead:1}),!0;if(Q.policy.j&&Q.xv.bJ())return Q.policy.Y&&Q.xv.On("sabrcrq",{seekToHead:1}), !0;b=Math.min(hv(Q.xv,Q.audioTrack)*1E3,Q.B.targetAudioReadaheadMs);z=Math.min(hv(Q.xv,Q.videoTrack)*1E3,Q.B.targetVideoReadaheadMs);var L=Math.min(b,z);H=rH(Q.audioTrack,!0)*1E3;var u=rH(Q.videoTrack,!0)*1E3;if(Q.policy.MD){var X=Q.HI.getCurrentTime()*1E3;var v=rhp(Q.L3.ue,X);X=rhp(Q.De.ue,X)}else v=H,X=u;var y=vz||f>=0&&b.t9>f+1)break;H=Math.max(H,b.startTimeMs+b.durationMs);f=Math.max(f,b.Rz)}return Math.max(0,H-z)}; xG9=function(Q,z,H){var f={L5:Q.L5,eJ:function(v,y){Q.HI.Nn(v,y)}, Aj:Q.policy.v0,vV:Q.policy.L};Q.L5.B.j&&(f.QF=(Q.videoTrack.Z.info.oi||0)+(Q.audioTrack.Z.info.oi||0));Q.policy.Pl&&(f.V9=Q.audioTrack.Z.index.NR(),f.Aj=!1);var b=Gtk(z,Q.policy,Q.Y)?2:1;b!==Q.Ze&&(Q.Ze=b,PFa(Q));H=I18(Q,H);if((Q.policy.B||Q.policy.jm)&&Q.policy.L&&H.S6){for(var L=b="",u=g.n(H.S6),X=u.next();!X.done;X=u.next())X=X.value,Q.videoData.sabrContextUpdates.has(X)?b+="_"+X:L+="_"+X;Q.xv.On("sabrbldrqs",{ctxts:b,misctxts:L})}z.setData(H,Q.xv.t$(),Q.policy,Q.Y)||!Q.policy.B&&!Q.policy.jm|| Q.xv.handleError("player.exception",{reason:"buildsabrrequestdatafailed"},1);f=new Y$(Q.policy,z,Q.n3,Q.Y,Q,f,Q.xv.kU(),Q.policy.j2?Q.xv.t$():void 0);rY(Q.timing);Q.policy.Y&&Q.xv.On("sabrcrq",{rn:f.lZ(),probe:z.PQ()});return f}; e8=function(Q,z){if(z.Sm()||Q.Sm())Q.policy.mZ||(Q.policy.j?Tc(Q.xv):Q.xv.SA());else{if(Q.policy.L&&z.isComplete()&&z instanceof Y$){var H=Q.xv,f=H.On,b,L,u=Object.assign(z.wr.EU(),{rst:z.state,strm:z.xhr.yg(),d:(b=z.wr.yl)==null?void 0:b.dP(),cncl:z.xhr&&z.f5.D?1:0,rqb:z.oF,cwt:z.EQ,swt:(L=z.DO)==null?void 0:L.pn});b=Object.assign(FDu(z.info),u);f.call(H,"rqs",b)}if(z.isComplete()&&z.PQ()&&z instanceof Y$)Q.policy.ys?z.Bs()?(z.dispose(),Q.Z.length===0?Q.xv.SA():(Q=Q.Z[0],Q instanceof Y$&&Q.TY()&& Q.SJ())):z.vl()&&Q.xv.handleError(z.JF(),z.P0()):(z.dispose(),Q.xv.SA());else{if(z.zG())z instanceof Y$&&El8(Q.timing,z),PFa(Q),a1Y(Q);else if(z.vl())H=Q.HI.R_(),z instanceof Y$&&jln(z.info)&&H&&Q.xv.fl(H),z instanceof Vk?Q.Z.pop():(H=1,z.canRetry()&&HW(Q.xv)&&(UGJ(Q,z),H=0),Q.xv.handleError(z.JF(),z.P0(),H));else{if(Q.xv.isSuspended&&!z.isComplete())return;a1Y(Q)}z.Sm()||z instanceof Vk||(z.isComplete()?H=Rx9(z,Q.policy,Q.Y):(H=lnn(z,Q.policy,Q.Y),H===1&&(Q.iT=!0)),H!==0&&(f=new XT(1,z.info.Mz), f.Fp=H===2,xG9(Q,f)));Q.policy.gT&&!z.isComplete()?Qk(Q.xv):Q.xv.SA()}}}; a1Y=function(Q){for(;Q.Z.length&&Q.Z[0].L0(Q.Ki());){var z=Q.Z.shift();ch8(Q,z);if(Q.policy.S){var H=Q;if(!H.policy.C3&&z.L0(H.Ki())){var f=z.lZ();if(H.C3!==f){var b=z.rB();z=b.D3;var L=b.PR;b=b.isDecorated;!H.D||L<0||(H.C3=f,f=ik(H.U,L/1E3,z),L=H.xv.ex()||0,a8(H.U,z,f-L,b,H.D))}}}}Q.Z.length&&ch8(Q,Q.Z[0])}; ch8=function(Q,z){var H=new Set(z.Ne(Q.Ki()));H=g.n(H);for(var f=H.next();!f.done;f=H.next()){var b=f.value;if(!(f=!(z instanceof Vk))){f=Q.L;var L=f.n3.AZ,u=uK(f.videoInfos,L);f=Ehp(f,b,L)||u.includes(b)}if(f&&(f=z.aD(b,Q.Ki()),L=Q.policy.ZJ&&zs(f[0].Z.info.mimeType),(!(!L&&Q.policy.Fo&&f.length>0&&(f[0].Z.info.Wq()?rH(Q.audioTrack):rH(Q.videoTrack))>3)||z.isComplete())&&z.uZ(b,Q.Ki()))){b=z.Rx(b,Q.Ki());if(Q.policy.B){u=f[0].Z.info;var X=Q.xv.t$();if(X&&u){var v=z.mK();X.api.V("html5_ssap_set_format_info_on_video_data")&& v===ab(X)&&(u.Wq()?X.playback.getVideoData().D=u:X.playback.getVideoData().B=u);if(X=lK(X.timeline,v))if(X=X[0].getVideoData())u.Wq()?X.D=u:X.B=u}}b=g.n(b);for(u=b.next();!u.done;u=b.next())if(u=u.value,Q.policy.L&&z instanceof Vk&&Q.xv.On("omblss",{s:u.info.aq()}),L)X=Q,X.videoData.AZ()&&X.j&&jA(X.j)===jA(g.la(u.info.Z.info,X.n3.AZ))&&X.HI.publish("sabrCaptionsDataLoaded",u,X.Sz.bind(X));else{X=u.info.Z.info.Wq();var y=u.info.Z;if(X){v=void 0;var q=Q.L,M=(v=z.IP(Q.Ki()))==null?void 0:v.token;q.Wo.YJ&& q.S&&y!==q.j?v=!0:(q.S=!1,y!==q.j&&(q.j=y,q.Zg(y,q.audioTrack,M)),v=!1);if(Q.policy.YJ&&v)continue}else v=void 0,X0n(Q.L,y,(v=z.IP(Q.Ki()))==null?void 0:v.token);v=X?Q.audioTrack:Q.videoTrack;z instanceof Vk&&(v.Y=!1,z instanceof Vk&&(X?X8v(Q.timing):SNL(Q.timing)));try{ob(v,f,u)}catch(C){u=JI(C),Q.xv.handleError(u.errorCode,u.details,u.severity),v.lH(),Q.Xx(!1,"pushSlice"),Tc(Q.xv)}}}}}; UGJ=function(Q,z){Q.policy.jm?Q.Z.splice(Q.Z.indexOf(z)).forEach(function(H){H.dispose()}):(Q.Z.pop(),z==null||z.dispose())}; iv6=function(Q,z,H){for(var f=[],b=0;b0)for(var z=g.n(Q.videoData.sabrContextUpdates.keys()),H=z.next();!H.done;H=z.next()){H=H.value;var f=void 0;((f=Q.videoData.sabrContextUpdates.get(H))==null?0:f.sendByDefault)&&Q.S6.add(H)}if(Q.policy.jm&&Q.Z.length)for(z=g.n(Q.Z),H=z.next();!H.done;H=z.next())(H=H.value.FO())&&H.type&&H.sendByDefault&&Q.S6.add(H.type)}; DGZ=function(Q){Q.policy.Vs&&(Q.yl=void 0,Q.He=0)}; KI6=function(Q,z){if(z.vl()||z.Sm()){var H=Q.xv,f=H.On,b=z.state;Q=Q.Ki();var L,u;if((z=(L=z.M8)==null?void 0:L.get(Q))==null)z=void 0;else{L=0;Q=z.Ne();for(var X=0;X=Q.policy.sR,u=!1;if(L){var X=0;!isNaN(z)&&z>Q.S&&(X=z-Q.S,Q.S=z);X/b=Q.policy.Lt&&!Q.L;if(!L&&!H&&TrA(Q,z))return NaN;H&&(Q.L=!0);a:{f=u;H=(0,g.NV)()/1E3-(Q.p_.gQ()||0)-Q.Y.Z-Q.policy.yR;L=Q.B.startTime;H=L+H;if(f){if(isNaN(z)){RD(Q,NaN,"n",z);L=NaN;break a}f=z-Q.policy.qD;f=L.D&&f<=L.j){f=!0;break a}f=!1}f=!f}if(f)return Q.On("ostmf",{ct:Q.getCurrentTime(),a:z.Z.info.Wq()}),!1;(Q=Q.wh)!=null&&(Q.EV.get(H).by=!0);return!0}; fmL=function(Q){if(!Q.n3.AZ)return!0;var z=Q.HI.getVideoData();if(z.V("html5_skip_live_preroll_onesie")&&Q.HI.vG()||z.V("html5_skip_live_preroll_onesie_post_live")&&Q.HI.vG()&&(z.l8||z.isPremiere))return Q.On("ombpa",{}),!1;var H,f;if(Q.policy.zD&&!!((H=Q.Ze)==null?0:(f=H.pO)==null?0:f.eXI)!==Q.n3.l8)return Q.On("ombplmm",{}),!1;H=z.EY||z.liveUtcStartSeconds||z.Tx;if(Q.n3.l8&&H)return Q.On("ombplst",{}),!1;if(Q.n3.U)return Q.On("ombab",{}),!1;H=Date.now();return jb(Q.n3)&&!isNaN(Q.L3)&&H-Q.L3>Q.policy.oG* 1E3?(Q.On("ombttl",{}),!1):Q.n3.Li&&Q.n3.D||!Q.policy.AC&&Q.n3.isPremiere||!(EC(z)===0||Q.policy.Z&&z.V("html5_enable_onesie_media_for_sabr_proxima_optin"))||z.V("html5_disable_onesie_media_for_mosaic")&&Dm(z)||z.V("html5_disable_onesie_media_for_ssdai")&&z.isDaiEnabled()&&z.enableServerStitchedDai||z.V("html5_disable_onesie_media_for_lifa_eligible")&&W7(z)?!1:!0}; b9v=function(Q,z){var H=z.Z,f=Q.n3.AZ;if(fmL(Q))if(Q.wh&&Q.wh.EV.has(jA(g.la(H.info,f)))){if(f=jA(g.la(H.info,f)),H9J(Q,z)){var b=new P8(Q.wh.aD(f)),L=function(u){try{if(u.vl())Q.handleError(u.JF(),u.P0()),PK(z,u),UN(u.info)&&lm(Q.S,z,H,!0),Q.SA();else if(Rb(Q.S,u)){var X;(X=Q.D)==null||Z_J(X,u.info,Q.N);Q.SA()}}catch(v){u=JI(v),Q.handleError(u.errorCode,u.details,u.severity),Q.lH()}}; H.L=!0;ad(b)&&(OR(z,new aM(Q.policy,f,b,Q.wh,L)),rY(Q.timing))}}else Q.On("ombfmt",{})}; LjY=function(Q,z){z=z||Q.videoTrack&&Q.videoTrack.B&&Q.videoTrack.B.startTime||Q.getCurrentTime();var H=zc,f=Q.videoTrack,b=Q.Z;z=b.nextVideo&&b.nextVideo.index.EX(z)||0;b.De!==z&&(b.f3={},b.De=z,eS(b,b.Z));z=!b.Z.isLocked()&&b.U>-1&&(0,g.NV)()-b.Uz.Z&&z.reason==="b";f||b||H?(Q.HI.a4({reattachOnConstraint:f?"u":b?"drm":"perf",lo:z.B,up:z.Z}),Q.policy.Tw||(Q.B.Z.B=!1)):(Q.policy.Tw&&(Q.B.Z.B=!1),Tc(Q))}}else if(!IZu(Q.Z,z)&&Q.videoTrack){Q.logger.debug(function(){return"Setting constraint: r="+z.reason+" u="+z.Z}); H=Q.Z.Z;CEp(Q,YN_(Q.Z,z));LjY(Q);f=z.isLocked()&&z.reason==="m"&&Q.Z.wh;b=Q.policy.PN&&z.reason==="l"&&cK(Q.videoTrack);H=H.Z>z.Z&&z.reason==="b";var L=Q.Z.uT&&!EU();f||b||H||L?Q.HI.a4({reattachOnConstraint:f?"u":b?"drm":L?"codec":"perf"}):Tc(Q)}}; EmL=function(Q,z,H){if((!Q.vI||gp(Q.vI)&&!Q.policy.rq)&&!Q.Ff.isSeeking()&&(Q.policy.Z||cK(z)&&z.Z.SH()&&Q.Z.Ze)){var f=Q.getCurrentTime()+NZ8(Q.U,z,H);Q.logger.debug(function(){return"Clearing back to "+f.toFixed(3)}); rQY(z,f)}}; CEp=function(Q,z){z&&(Q.logger.debug(function(){return"Logging new format: "+f3(z.video.info)}),p7v(Q.HI,new Dr(z.video,z.reason))); if(Q.Z.iT){var H=PwL(Q.Z,"a");Q.HI.e9(new Dr(H.audio,H.reason))}}; Tc=function(Q){g.lp(Q.yE)}; Qk=function(Q){Q.policy.gT&&Q.policy.KZ&&Math.min(YmJ(Q.videoTrack),YmJ(Q.audioTrack))*1E3>Q.policy.HX?g.lp(Q.ZJ):Q.SA()}; nma=function(Q,z){var H=(0,g.NV)()-z,f=rH(Q.audioTrack,!0)*1E3,b=rH(Q.videoTrack,!0)*1E3;Q.logger.debug(function(){return"Appends paused for "+H}); if(Q.policy.L&&(Q.On("apdpe",{dur:H.toFixed(),abuf:f.toFixed(),vbuf:b.toFixed()}),V8(Q.policy))){var L=Av(Q.U);Q.On("sdps",{ct:z,ah:f.toFixed(),vh:b.toFixed(),mr:Yn(Q.U,Q.xQ,L),bw:L.toFixed(),js:Q.isSeeking(),re:+Q.xQ,ps:(Q.policy.k6||"").toString(),rn:(Q.policy.LU||"").toString()})}}; gmv=function(Q){if(Q.policy.B&&WK(Q.videoTrack)&&WK(Q.audioTrack))return"ssap";if(cQa(Q.videoTrack))return Q.logger.debug("Pausing appends for server-selectable format"),"ssf";if(Q.policy.iT&&Dp(Q.videoTrack)&&Dp(Q.audioTrack))return"updateEnd";if(UR(Q.audioTrack)||UR(Q.videoTrack)&&Q.videoTrack.Z.info.Rj!=="f")return"";if(Q.Ff.isSeeking()){var z=Q.U;var H=Q.videoTrack;var f=Q.audioTrack;if(z.policy.Z){var b=z.policy.ov;V8(z.policy)&&(b=Yn(z,!1,Av(z)));z=b;H=rH(f,!0)>=z&&rH(H,!0)>=z}else H.L.length|| f.L.length?(b=H.Z.info.oi+f.Z.info.oi,b=10*(1-Av(z)/b),z=Math.max(b,z.policy.ov),H=rH(f,!0)>=z&&rH(H,!0)>=z):H=!0;if(!H)return"abr";H=Q.videoTrack;if(H.L.length>0&&H.D.B.length===1&&Smp(H.D).info.N360);f=V8(Q.policy)&&Q.policy.nV;if(!Q.xQ||!f&&H)return"";H=Q.policy.gS;V8(Q.policy)&&(H=Yn(Q.U,Q.xQ,Av(Q.U)));H=BS6(Q.videoTrack, Q.getCurrentTime(),H)||BS6(Q.audioTrack,Q.getCurrentTime(),H);return V8(Q.policy)?H?"mbnm":"":(Q.videoTrack.L.length>0||Q.audioTrack.L.length>0||TX(Q.S,Q.videoTrack,Q.audioTrack)||TX(Q.S,Q.audioTrack,Q.videoTrack))&&H?"nord":""}; Z9Z=function(Q){if(Q.Y){var z=Q.Y.SA(Q.audioTrack,vs(Q.vI.B.N4()));z&&Q.HI.seekTo(z,{wd:!0,lr:"pollSubsegmentReadahead",F2:!0})}}; omp=function(Q,z,H){if(Q.policy.iT&&Dp(z))return!1;if(H.YW())return!0;if(!H.xO())return!1;var f=dz(z);if(!f||f.info.type===6)return!1;var b=Q.policy.uN;if(b&&!f.info.S){var L=f.info.D-Q.getCurrentTime();if(f.info.NL)return Q.policy.Z&&jq_(Q,z),Q.policy.bu&&WNY(z.D,L,!1),!1;Fj9(Q,z);var X;Q.policy.sj&&H===((X=Q.vI)==null?void 0:X.Z)&&Q.C3&&(H.mT()===0?(Q.C3=!1,Q.policy.sj=!1):Q.WI=H.mT());if(!xYu(Q,H,f,z))return!1;Q.policy.iT&&f.info.lc()?(Q.HI.C().vz()&&Q.On("eosl",{ls:f.info.aq()}), f.isLocked=!0):(z.TN(f),BVY(Q.Z,f.info),Q.logger.debug(function(){return"Appended "+f.info.aq()+", buffered: "+L3(H.N4())})); b&&O99(Q,f.info.Z.UM);return!0}; jq_=function(Q,z){z===Q.videoTrack?Q.jm=Q.jm||(0,g.NV)():Q.yl=Q.yl||(0,g.NV)()}; Fj9=function(Q,z){z===Q.videoTrack?Q.jm=0:Q.yl=0}; xYu=function(Q,z,H,f){var b=Q.policy.Wz?(0,g.NV)():0,L=H.S&&H.info.Z.Z||void 0,u=H.Z;H.S&&(u=JMv(Q,H,u)||u);var X=u.K4();u=Q.policy.Wz?(0,g.NV)():0;z=NiZ(Q,z,X,H.info,L);(f=f.U)!=null&&(L=H.info,b=u-b,u=(0,g.NV)()-u,!f.B||lUc(f.B,L)&&f.B.Ah===L.Ah||f.flush(),f.D+=b,f.L+=u,b=1,!f.B&&L.B&&(b=2),fI(f,b,z),u=Math.ceil(L.B/1024),b===2&&f.Z.add(u),f.Z.add(Math.ceil((L.B+L.L)/1024)-u),f.B=L);Q.De=0;if(z===0)return Q.mq&&(Q.logger.debug("Retry succeed, back to normal append logic."),Q.mq=!1,Q.gh=!1),Q.rT= 0,!0;if(z===2||z===5)return Imk(Q,"checked",z,H.info),!1;if(z===1){if(!Q.mq)return Q.logger.debug("QuotaExceeded, retrying."),Q.mq=!0,!1;if(!Q.gh)return Q.gh=!0,Q.HI.seekTo(Q.getCurrentTime(),{lr:"quotaExceeded",F2:!0}),!1;H.info.rQ()?(b=Q.policy,b.mq=Math.floor(b.mq*.8),b.L3=Math.floor(b.L3*.8)):(b=Q.policy,b.gh=Math.floor(b.gh*.8),b.L3=Math.floor(b.L3*.8));Q.policy.Z?Vg(Q.B.Z,H.info.Z,!1):R8(Q.Z,H.info.Z)}Q.HI.a4({reattachOnAppend:z});return!1}; JMv=function(Q,z,H){var f;if(f=Q.policy.TV&&Q.vI&&!Q.vI.N&&!Q.HI.JP())z=z.info.Z.info,f=z.rV()&&KG(z)&&z.video&&z.video.width<3840&&z.video.width>z.video.height;if(f&&(Q.vI.N=!0,YK('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return H=LfL(H),Q.policy.L&&Q.On("sp4k",{s:!!H}),H}; Imk=function(Q,z,H,f){var b="fmt.unplayable",L=1;H===5||H===3?(b="fmt.unparseable",Q.policy.Z?!f.Z.info.video||dY(Q.B.Z).size>0||Vg(Q.B.Z,f.Z,!1):!f.Z.info.video||dY(Q.Z.S).size>0||R8(Q.Z,f.Z)):H===2&&(Q.rT<15?(Q.rT++,b="html5.invalidstate",L=0):b="fmt.unplayable");f=sN(f);var u;f.mrs=(u=Q.vI)==null?void 0:mw(u);f.origin=z;f.reason=H;Q.handleError(b,f,L)}; jka=function(Q,z,H,f,b){var L=Q.n3;var u=Q.policy.Z,X=!1,v=-1,y;for(y in L.Z){var q=zs(L.Z[y].info.mimeType)||L.Z[y].info.rQ();if(f===q)if(q=L.Z[y].index,q.YM(z.Ah)){X=q;var M=z,C=X.XD(M.Ah);C&&C.startTime!==M.startTime?(X.segments=[],X.pY(M),X=!0):X=!1;X?v=z.Ah:!z.pending&&u&&(M=q.getDuration(z.Ah),M!==z.duration&&(L.publish("clienttemp","mfldurUpdate",{itag:L.Z[y].info.itag,seg:z.Ah,od:M,nd:z.duration},!1),q.pY(z),X=!0))}else q.pY(z),X=!0}v>=0&&(u={},L.publish("clienttemp","resetMflIndex",(u[f? "v":"a"]=v,u),!1));L=X;d1v(Q.Ff,z,f,L);Q.D.z8(z,H,f,b);if(Q.policy.h$&&H){var t;(t=Q.UY)!=null&&t.L.set(z.Ah,H)}z.Ah===Q.n3.Li&&L&&ny(Q.n3)&&z.startTime>ny(Q.n3)&&(Q.n3.jm=z.startTime+(isNaN(Q.timestampOffset)?0:Q.timestampOffset),Q.Ff.isSeeking()&&Q.Ff.Z 5)return Q.De=0,Q.HI.a4({initSegStuck:1,as:f.info.aq()}),!0}else Q.De=0,Q.Xa=f;Q.policy.e$&&(H.abort(),(u=z.U)!=null&&(fI(u,4),u.flush()));b=NiZ(Q,H,L,v,b);var y;(y=z.U)==null||K$9(y,b,v);if(b!==0)return AML(Q,b,f),!0;f.info.rQ()?qN_(Q.timing):MAp(Q.timing);Q.logger.debug(function(){return"Appended init for "+f.info.Z.info.id}); O99(Q,f.info.Z.UM);return H.mB()}; G_c=function(Q,z,H){if(z.uu()==null){Q=xp(Q);if(!(z=!Q||Q.Z!==H.info.Z)){a:if(Q=Q.U,H=H.info.U,Q.length!==H.length)H=!1;else{for(z=0;z1)return 6;v.f3=new g.e_(function(){var y=dz(v);Q.Sm()||y==null||!y.isLocked?Q.HI.C().vz()&&Q.On("eosl",{delayA:y==null?void 0:y.info.aq()}):YCA(v)?(Q.HI.C().vz()&&Q.On("eosl",{dunlock:y==null?void 0:y.info.aq()}),rM6(Q, v===Q.audioTrack)):(Q.On("nue",{ls:y.info.aq()}),y.info.Ze+=1,Q.vI&&Q.IZ())},1E4,Q); Q.HI.C().vz()&&Q.On("eosl",{delayS:f.aq()});v.f3.start()}Q.policy.p$&&(f==null?void 0:f.Z)instanceof iw&&f.lc()&&Q.On("poseos",{itag:f.Z.info.itag,seg:f.Ah,lseg:f.Z.index.Xg(),es:f.Z.index.L});z.appendBuffer(H,f,b)}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 z=Object.assign({name:"QuotaExceededError",buffered:L3(z.N4()).replace(/,/g,"_"),vheap:Ae(Q.videoTrack),aheap:Ae(Q.audioTrack),message:g.g7(y.message, 3),track:Q.vI?z===Q.vI.B?"v":"a":"u"},Ry8()),Q.handleError("player.exception",z),1;g.BT(y)}return 4}return Q.vI.eU()?3:0}; VW=function(Q,z,H){Q.HI.seekTo(z,H)}; O99=function(Q,z){z&&Q.HI.Cl(new q5(z.key,z.type))}; ER=function(Q,z){Q.HI.xZ(z)}; hv=function(Q,z){if(Q.mq&&!Q.xQ)return 3;if(Q.isSuspended)return 1;var H;if((H=Q.vI)==null?0:H.vI&&H.vI.streaming===!1)return 4;H=(z.Z.info.audio?Q.policy.gh:Q.policy.mq)/(z.oi*Q.policy.QO);if(Q.policy.T$>0&&Q.vI&&gp(Q.vI)&&(z=z.Z.info.video?Q.vI.B:Q.vI.Z)&&!z.mB()){z=z.N4();var f=uZ(z,Q.getCurrentTime());f>=0&&(z=Q.getCurrentTime()-z.start(f),H+=Math.max(0,Math.min(z-Q.policy.T$,Q.policy.Nr)))}Q.policy.L3>0&&(H=Math.min(H,Q.policy.L3));return H}; Jhc=function(Q,z){return(hv(Q,z)+Q.policy.BX)*z.oi}; Bic=function(Q){Q.uT&&!Q.isSuspended&&gm(Q.schedule)&&(sqY(Q,Q.uT),Q.uT="")}; sqY=function(Q,z){oM(z,"cms",function(H){Q.policy.L&&Q.On("pathprobe",H)},function(H){Q.HI.handleError(H)})}; PEn=function(Q,z){if(Q.vI&&Q.vI.D&&!Q.vI.eU()&&(z.yq=rH(Q.videoTrack),z.B=rH(Q.audioTrack),Q.policy.L)){var H=Ae(Q.videoTrack),f=Ae(Q.audioTrack),b=L3(Q.vI.B.N4(),"_",5),L=L3(Q.vI.Z.N4(),"_",5);Object.assign(z.Z,{lvq:H,laq:f,lvb:b,lab:L})}z.bandwidthEstimate=NF(Q.U);var u;(u=Q.audioTrack.U)==null||u.flush();var X;(X=Q.videoTrack.U)==null||X.flush();Q.logger.debug(function(){return xK(z.Z)})}; amc=function(Q,z){Q.N=z;Q.D&&(Q.D.j=z);Q.N.Ji(Q.videoTrack.Z.info.rV());Q.S.B=Q.N;Q.policy.S&&(Q.L.D=Q.N)}; cM6=function(Q,z){if(Q.vI&&Q.vI.B){if(Q.policy.LY){var H=Kfp(Q.audioTrack);if(H&&H.Wq()){var f=Q.HI;f.ly&&(f.ly.Z=H,f.JZ(f.ly.videoId).jK(f.ly))}}Q.policy.OE&&(H=Kfp(Q.videoTrack))&&H.rQ()&&(f=Q.HI,f.O3&&(f.O3.Z=H,f.JZ(f.O3.videoId).vE(f.O3)));z-=isNaN(Q.timestampOffset)?0:Q.timestampOffset;Q.getCurrentTime()!==z&&Q.resume();Q.Ff.isSeeking()&&Q.vI&&!Q.vI.eU()&&(H=Q.getCurrentTime()<=z&&z=0&&L1?X.B[0]=z&&Qqp(Q,f.startTime,!1)}); return H&&H.startTimeQ.getCurrentTime())return H.start/1E3;return Infinity}; Kjk=function(Q){var z=xp(Q.videoTrack),H=xp(Q.audioTrack);return z&&!Djv(Q.videoTrack)?z.startTime:H&&!Djv(Q.audioTrack)?H.startTime:NaN}; Bra=function(Q){if(Q.HI.getVideoData().isLivePlayback)return!1;var z=Q.HI.aB();if(!z)return!1;z=z.getDuration();return sZL(Q,z)}; sZL=function(Q,z){if(!Q.vI||!Q.vI.Z||!Q.vI.B)return!1;var H=Q.getCurrentTime(),f=Q.vI.Z.N4();Q=Q.vI.B.N4();f=f?X$(f,H):H;H=Q?X$(Q,H):H;H=Math.min(f,H);return isNaN(H)?!1:H>=z-.01}; AML=function(Q,z,H){Q.policy.qf&&H7(Q.HI.getVideoData())?(Q.HI.QS()||Imk(Q,"sepInit",z,H.info),Vnk(Q.HI,"sie")):Imk(Q,"sepInit",z,H.info)}; HW=function(Q){return Q.HI.g5()0){var b=f.Z.shift();mYA(f,b.info)}f.Z.length>0&&(b=f.Z[0].time-(0,g.NV)(),f.B.start(Math.max(0,b)))}},0); g.W(this,this.B);z.subscribe("widevine_set_need_key_info",this.S,this)}; mYA=function(Q,z){a:{var H=z.cryptoPeriodIndex;if(isNaN(H)&&Q.L.size>0)H=!0;else{for(var f=g.n(Q.L.values()),b=f.next();!b.done;b=f.next())if(b.value.cryptoPeriodIndex===H){H=!0;break a}H=!1}}Q.publish("log_qoe",{wvagt:"reqnews",canskip:H});H||Q.publish("rotated_need_key_info_ready",z)}; w7c=function(){var Q={};var z=Q.url;var H=Q.interval;Q=Q.retries;this.url=z;this.interval=H;this.retries=Q}; k_8=function(Q,z){this.statusCode=Q;this.message=z;this.B=this.heartbeatParams=this.errorMessage=null;this.Z={};this.nextFairplayKeyId=null}; Tiv=function(Q,z,H){H=H===void 0?"":H;g.h.call(this);this.message=Q;this.requestNumber=z;this.hM=H;this.onError=this.onSuccess=null;this.Z=new g.O0(5E3,2E4,.2)}; en8=function(Q,z,H){Q.onSuccess=z;Q.onError=H}; Rn8=function(Q,z,H,f){var b={timeout:3E4,onSuccess:function(L){if(!Q.Sm()){ib("drm_net_r",void 0,Q.hM);var u=L.status==="LICENSE_STATUS_OK"?0:9999,X=null;if(L.license)try{X=Z3(L.license)}catch(E){g.BT(E)}if(u!==0||X){X=new k_8(u,X);u!==0&&L.reason&&(X.errorMessage=L.reason);if(L.authorizedFormats){u={};for(var v=[],y={},q=g.n(L.authorizedFormats),M=q.next();!M.done;M=q.next())if(M=M.value,M.trackType&&M.keyId){var C=lmY[M.trackType];if(C){C==="HD"&&L.isHd720&&(C="HD720");M.isHdr&&(C+="HDR");u[C]|| (v.push(C),u[C]=!0);var t=null;try{t=Z3(M.keyId)}catch(E){g.BT(E)}t&&(y[g.nr(t,4)]=C)}}X.B=v;X.Z=y}L.nextFairplayKeyId&&(X.nextFairplayKeyId=L.nextFairplayKeyId);L.sabrLicenseConstraint&&(X.sabrLicenseConstraint=Z3(L.sabrLicenseConstraint));L=X}else L=null;if(L)Q.onSuccess(L,Q.requestNumber);else Q.onError(Q,"drm.net","t.p;p.i")}}, onError:function(L){if(!Q.Sm())if(L&&L.error)L=L.error,Q.onError(Q,"drm.net.badstatus","t.r;p.i;c."+L.code+";s."+L.status,L.code);else Q.onError(Q,"drm.net.badstatus","t.r;p.i;c.n")}, onTimeout:function(){Q.onError(Q,"drm.net","rt.req."+Q.requestNumber)}}; f&&(b.Bx="Bearer "+f);g.zw(H,"player/get_drm_license",z,b)}; Qgk=function(Q,z,H,f){g.Xp.call(this);this.videoData=Q;this.rh=z;this.N=H;this.sessionId=f;this.S={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.Ze=this.wh=!1;this.L=null;this.L3=[];this.D=[];this.Y=!1;this.Z={};this.status="";this.j=NaN;this.B=Q.S;this.cryptoPeriodIndex=H.cryptoPeriodIndex;Q={};Object.assign(Q,this.rh.Z);Q.cpn=this.videoData.clientPlaybackNonce;this.videoData.wh&&(Q.vvt=this.videoData.wh,this.videoData.mdxEnvironment&&(Q.mdx_environment=this.videoData.mdxEnvironment)); this.rh.L3&&(Q.authuser=this.rh.L3);this.rh.pageId&&(Q.pageid=this.rh.pageId);isNaN(this.cryptoPeriodIndex)||(Q.cpi=this.cryptoPeriodIndex.toString());var b=(b=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.Ns()))?b[1]:"";b==="ATV"&&(Q.cdt=b);this.S=Q;this.S.session_id=f;this.U=!0;this.B.flavor==="widevine"&&(this.S.hdr="1");this.B.flavor==="playready"&&(z=Number(ki(z.experiments,"playready_first_play_expiration")),!isNaN(z)&&z>=0&&(this.S.mfpe=""+z),this.U=!1);z="";g.Pj(this.B)?Bj(this.B)?(f=H.B)&&(z="https://www.youtube.com/api/drm/fps?ek="+ inA(f)):(z=H.initData.subarray(4),z=new Uint16Array(z.buffer,z.byteOffset,z.byteLength/2),z=String.fromCharCode.apply(null,z).replace("skd://","https://")):z=this.B.B;this.baseUrl=z;this.fairplayKeyId=m_(this.baseUrl,"ek")||"";if(z=m_(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(z);this.L3=H.rV?[g.nr(H.initData,4)]:H.L;Sr(this,{sessioninit:H.cryptoPeriodIndex});this.status="in"}; bRA=function(Q,z){Sr(Q,{createkeysession:1});Q.status="gr";ib("drm_gk_s",void 0,Q.videoData.En);Q.url=z0k(Q);try{Q.L=z.createSession(Q.N,function(H){Sr(Q,{m:H})})}catch(H){z="t.g"; H instanceof DOMException&&(z+=";c."+H.code);Q.publish("licenseerror","drm.unavailable",1,z,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}Q.L&&(HRc(Q.L,function(H,f){fa8(Q,H,f)},function(H,f,b){if(!Q.Sm()){f=void 0; var L=1;g.Pj(Q.B)&&g.Yh(Q.rh)&&Q.rh.V("html5_enable_safari_fairplay")&&b===1212433232&&(f="ERROR_HDCP",L=Q.rh.V("html5_safari_fairplay_ignore_hdcp")?0:L);Q.error("drm.keyerror",L,H,f)}},function(){Q.Sm()||(Sr(Q,{onkyadd:1}),Q.Ze||(Q.publish("sessionready"),Q.Ze=!0))},function(H){Q.XS(H)}),g.W(Q,Q.L))}; z0k=function(Q){var z=Q.baseUrl;Scn(z)||Q.error("drm.net",2,"t.x");if(!m_(z,"fexp")){var H=["23898307","23914062","23916106","23883098"].filter(function(b){return Q.rh.experiments.experiments[b]}); H.length>0&&(Q.S.fexp=H.join())}H=g.n(Object.keys(Q.S));for(var f=H.next();!f.done;f=H.next())f=f.value,z=os8(z,f,Q.S[f]);return z}; fa8=function(Q,z,H){if(!Q.Sm())if(z){Sr(Q,{onkmtyp:H});Q.status="km";switch(H){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":Lhn(Q,z);return;default:Q.publish("ctmp","message_type",{t:H,l:z.byteLength})}Q.wh||(ib("drm_gk_f",void 0,Q.videoData.En),Q.wh=!0,Q.publish("newsession",Q));if(Yi(Q.B)&&(z=uvp(z),!z))return;z=new Tiv(z,++Q.requestNumber,Q.videoData.En);en8(z,function(f){SZA(Q,f)},function(f,b,L){if(!Q.Sm()){var u=0; f.Z.B>=3&&(u=1,b="drm.net.retryexhausted");Sr(Q,{onlcsrqerr:b,info:L});Q.error(b,u,L);Q.shouldRetry(oj(u),f)&&XGY(Q,f)}}); g.W(Q,z);v1Z(Q,z)}else Q.error("drm.unavailable",1,"km.empty")}; Lhn=function(Q,z){Sr(Q,{sdpvrq:1});Q.j=Date.now();if(Q.B.flavor!=="widevine")Q.error("drm.provision",1,"e.flavor;f."+Q.B.flavor+";l."+z.byteLength);else{var H={cpn:Q.videoData.clientPlaybackNonce};Object.assign(H,Q.rh.Z);H=g.Ve("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",H);z={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null, z)}),responseType:"arraybuffer"};g.Y7(H,z,3,500).then(gZ(function(f){f=f.xhr;if(!Q.Sm()){f=new Uint8Array(f.response);var b=String.fromCharCode.apply(null,f);try{var L=JSON.parse(b)}catch(u){}L&&L.signedResponse?(Q.publish("ctmp","drminfo",{provisioning:1}),L=(Date.now()-Q.j)/1E3,Q.j=NaN,Q.publish("ctmp","provs",{et:L.toFixed(3)}),Q.L&&Q.L.update(f)):(L=L&&L.error&&L.error.message,f="e.parse",L&&(f+=";m."+L),Q.error("drm.provision",1,f))}}),gZ(function(f){Q.Sm()||Q.error("drm.provision",1,"e."+f.errorCode+ ";c."+(f.xhr&&f.xhr.status))}))}}; Xj=function(Q){var z;if(z=Q.U&&Q.L!=null)Q=Q.L,z=!(!Q.Z||!Q.Z.keyStatuses);return z}; v1Z=function(Q,z){Q.status="km";ib("drm_net_s",void 0,Q.videoData.En);var H=new g.Q7(Q.rh.N7),f={context:g.MR(H.config_||g.qR())};f.drmSystem=yfn[Q.B.flavor];f.videoId=Q.videoData.videoId;f.cpn=Q.videoData.clientPlaybackNonce;f.sessionId=Q.sessionId;f.licenseRequest=g.nr(z.message);f.drmParams=Q.videoData.drmParams;isNaN(Q.cryptoPeriodIndex)||(f.isKeyRotated=!0,f.cryptoPeriodIndex=Q.cryptoPeriodIndex);var b,L,u=!!((b=Q.videoData.B)==null?0:(L=b.video)==null?0:L.isHdr());f.drmVideoFeature=u?"DRM_VIDEO_FEATURE_PREFER_HDR": "DRM_VIDEO_FEATURE_SDR";if(f.context&&f.context.client){if(b=Q.rh.Z)f.context.client.deviceMake=b.cbrand,f.context.client.deviceModel=b.cmodel,f.context.client.browserName=b.cbr,f.context.client.browserVersion=b.cbrver,f.context.client.osName=b.cos,f.context.client.osVersion=b.cosver;f.context.user=f.context.user||{};f.context.request=f.context.request||{};Q.videoData.wh&&(f.context.user.credentialTransferTokens=[{token:Q.videoData.wh,scope:"VIDEO"}]);f.context.request.mdxEnvironment=Q.videoData.mdxEnvironment|| f.context.request.mdxEnvironment;Q.videoData.yE&&(f.context.user.kidsParent={oauthToken:Q.videoData.yE});g.Pj(Q.B)&&(f.fairplayKeyId=g.nr(hpZ(Q.fairplayKeyId)));g.zZ(Q.rh,g.hM(Q.videoData)).then(function(X){Rn8(z,f,H,X);Q.status="rs"})}else Q.error("drm.net",2,"t.r;ic.0")}; SZA=function(Q,z){if(!Q.Sm())if(Sr(Q,{onlcsrsp:1}),Q.status="rr",z.statusCode!==0)Q.error("drm.auth",1,"t.f;c."+z.statusCode,z.errorMessage||void 0);else{ib("drm_kr_s",void 0,Q.videoData.En);if(z.heartbeatParams&&z.heartbeatParams.url&&Q.videoData.V("outertube_streaming_data_always_use_staging_license_service")){var H=Q.B.B.match(/(.*)youtube.com/g);H&&(z.heartbeatParams.url=H[0]+z.heartbeatParams.url)}z.heartbeatParams&&Q.publish("newlicense",z.heartbeatParams);z.B&&(Q.D=z.B,Q.videoData.Ga||Q.publish("newlicense", new w7c),Q.videoData.Ga=!0,Q.Y=Jx(Q.D,function(f){return f.includes("HDR")})); z.Z&&(Q.rh.V("html5_enable_vp9_fairplay")&&Bj(Q.B)?(H=g.nr(hpZ(Q.fairplayKeyId),4),Q.Z[H]={type:z.Z[H],status:"unknown"}):Q.Z=FV(z.Z,function(f){return{type:f,status:"unknown"}})); sm(Q.B)&&(z.message=cLk(g.nr(z.message)));Q.L&&(Sr(Q,{updtks:1}),Q.status="ku",Q.L.update(z.message).then(function(){ib("drm_kr_f",void 0,Q.videoData.En);Xj(Q)||(Sr(Q,{ksApiUnsup:1}),Q.publish("keystatuseschange",Q))},function(f){f="msuf.req."+Q.requestNumber+";msg."+g.g7(f.message,3); Q.error("drm.keyerror",1,f)})); g.Pj(Q.B)&&Q.publish("fairplay_next_need_key_info",Q.baseUrl,z.nextFairplayKeyId);Q.rh.V("html5_enable_vp9_fairplay")&&Bj(Q.B)&&Q.publish("qualitychange",qZn(Q.D));z.sabrLicenseConstraint&&Q.publish("sabrlicenseconstraint",z.sabrLicenseConstraint)}}; XGY=function(Q,z){var H=z.Z.getValue();H=new g.e_(function(){v1Z(Q,z)},H); g.W(Q,H);H.start();g.oK(z.Z);Sr(Q,{rtyrq:1})}; M1u=function(Q,z){for(var H=[],f=g.n(Object.keys(Q.Z)),b=f.next();!b.done;b=f.next())b=b.value,H.push(b+"_"+Q.Z[b].type+"_"+Q.Z[b].status);return H.join(z)}; Cjv=function(Q){var z={};z[Q.status]=Xj(Q)?M1u(Q,"."):Q.D.join(".");return z}; t1Y=function(Q,z){switch(Q){case "highres":case "hd2880":Q="UHD2";break;case "hd2160":case "hd1440":Q="UHD1";break;case "hd1080":case "hd720":Q="HD";break;case "large":case "medium":case "small":case "light":case "tiny":Q="SD";break;default:return""}z&&(Q+="HDR");return Q}; E19=function(Q,z){for(var H in Q.Z)if(Q.Z[H].status==="usable"&&Q.Z[H].type===z)return!0;return!1}; $5c=function(Q,z){for(var H in Q.Z)if(Q.Z[H].type===z)return Q.Z[H].status}; Sr=function(Q,z){var H=H===void 0?!1:H;xK(z);(H||Q.rh.vz())&&Q.publish("ctmp","drmlog",z)}; jbv=function(Q){var z=Q[0];Q[0]=Q[3];Q[3]=z;z=Q[1];Q[1]=Q[2];Q[2]=z;z=Q[4];Q[4]=Q[5];Q[5]=z;z=Q[6];Q[6]=Q[7];Q[7]=z}; qZn=function(Q){return g.kO(Q,"UHD2")||g.kO(Q,"UHD2HDR")?"highres":g.kO(Q,"UHD1")||g.kO(Q,"UHD1HDR")?"hd2160":g.kO(Q,"HD")||g.kO(Q,"HDHDR")?"hd1080":g.kO(Q,"HD720")||g.kO(Q,"HD720HDR")?"hd720":"large"}; uvp=function(Q){for(var z="",H=0;H'.charCodeAt(f);Q=Q.L.createSession("video/mp4",z,H);return new vL(null,null,null,null,Q)}; NHJ=function(Q,z){var H=Q.j[z.sessionId];!H&&Q.D&&(H=Q.D,Q.D=null,H.sessionId=z.sessionId,Q.j[z.sessionId]=H);return H}; OI9=function(Q,z){var H=Q.subarray(4);H=new Uint16Array(H.buffer,H.byteOffset,H.byteLength/2);H=String.fromCharCode.apply(null,H).match(/ek=([0-9a-f]+)/)[1];for(var f="",b=0;b=0&&Q.push(f);Q=parseFloat(Q.join("."))}else Q=NaN;Q>19.2999?(Q=H.pW,H=H.bu,H>=Q&&(H=Q*.75),z=(Q-H)*.5,H=new LD(z,Q,Q-z-H,this)):H=null;break a;case "widevine":H=new uH(z,this,Q);break a;default:H=null}if(this.S=H)g.W(this,this.S),this.S.subscribe("rotated_need_key_info_ready",this.e7,this),this.S.subscribe("log_qoe",this.wS,this);Um(this.rh.experiments);this.wS({cks:this.Z.getInfo()})}; Aen=function(Q){var z=Q.D.Jy();z?z.then(gZ(function(){reZ(Q)}),gZ(function(H){if(!Q.Sm()){g.BT(H); var f="t.a";H instanceof DOMException&&(f+=";n."+H.name+";m."+H.message);Q.publish("licenseerror","drm.unavailable",1,f,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(Q.wS({mdkrdy:1}),Q.U=!0); Q.Ze&&(z=Q.Ze.Jy())}; BHa=function(Q,z,H){Q.mq=!0;H=new q5(z,H);Q.rh.V("html5_eme_loader_sync")&&(Q.j.get(z)||Q.j.set(z,H));sbc(Q,H)}; sbc=function(Q,z){if(!Q.Sm()){Q.wS({onInitData:1});if(Q.rh.V("html5_eme_loader_sync")&&Q.videoData.L&&Q.videoData.L.Z){var H=Q.Y.get(z.initData);z=Q.j.get(z.initData);if(!H||!z)return;z=H;H=z.initData;Q.j.remove(H);Q.Y.remove(H)}Q.wS({initd:z.initData.length,ct:z.contentType});if(Q.Z.flavor==="widevine")if(Q.yl&&!Q.videoData.isLivePlayback)MJ(Q);else{if(!(Q.rh.V("vp9_drm_live")&&Q.videoData.isLivePlayback&&z.rV)){Q.yl=!0;H=z.cryptoPeriodIndex;var f=z.Z;Qku(z);z.rV||(f&&z.Z!==f?Q.publish("ctmp","cpsmm", {emsg:f,pssh:z.Z}):H&&z.cryptoPeriodIndex!==H&&Q.publish("ctmp","cpimm",{emsg:H,pssh:z.cryptoPeriodIndex}));Q.publish("widevine_set_need_key_info",z)}}else Q.e7(z)}}; reZ=function(Q){if(!Q.Sm())if(Q.rh.V("html5_drm_set_server_cert")||Bj(Q.Z)){var z=Q.D.setServerCertificate();z?z.then(gZ(function(H){Q.rh.vz()&&Q.publish("ctmp","ssc",{success:H})}),gZ(function(H){Q.publish("ctmp","ssce",{n:H.name, m:H.message})})).then(gZ(function(){PmY(Q)})):PmY(Q)}else PmY(Q)}; PmY=function(Q){Q.Sm()||(Q.U=!0,Q.wS({onmdkrdy:1}),MJ(Q))}; apL=function(Q){return Q.Z.flavor==="widevine"&&Q.videoData.V("html5_drm_cpi_license_key")}; MJ=function(Q){if((Q.mq||Q.rh.V("html5_widevine_use_fake_pssh"))&&Q.U&&!Q.De){for(;Q.L.length;){var z=Q.L[0],H=apL(Q)?zxZ(z):g.nr(z.initData);if(Bj(Q.Z)&&!z.B)Q.L.shift();else{if(Q.B.get(H))if(Q.Z.flavor!=="fairplay"||Bj(Q.Z)){Q.L.shift();continue}else Q.B.delete(H);Qku(z);break}}Q.L.length&&Q.createSession(Q.L[0])}}; U5_=function(Q){var z;if(z=g.dR()){var H;z=!((H=Q.D.B)==null||!H.getMetrics)}z&&(z=Q.D.getMetrics())&&(z=g.ot(z),Q.publish("ctmp","drm",{metrics:z}))}; ceu=function(){var Q=V_v();return!(!Q||Q==="visible")}; hP9=function(Q){var z=iIn();z&&document.addEventListener(z,Q,!1)}; Wra=function(Q){var z=iIn();z&&document.removeEventListener(z,Q,!1)}; iIn=function(){if(document.visibilityState)var Q="visibilitychange";else{if(!document[EP+"VisibilityState"])return"";Q=EP+"visibilitychange"}return Q}; D5Y=function(Q){g.h.call(this);var z=this;this.HI=Q;this.YA=0;this.j=this.B=this.S=!1;this.D=0;this.aj=this.HI.C();this.videoData=this.HI.getVideoData();this.L=g.qf(this.aj.experiments,"html5_delayed_retry_count");this.Z=new g.e_(function(){z.HI.lL()},g.qf(this.aj.experiments,"html5_delayed_retry_delay_ms")); g.W(this,this.Z)}; wK9=function(Q,z,H){var f=Q.videoData.B,b=Q.videoData.D;H7(Q.HI.getVideoData())&&Q.aj.V("html5_gapless_fallback_on_qoe_restart")&&Vnk(Q.HI,"pe");if((z==="progressive.net.retryexhausted"||z==="fmt.unplayable"||z==="fmt.decode")&&!Q.HI.i7.S&&f&&f.itag==="22")return Q.HI.i7.S=!0,Q.h7("qoe.restart",{reason:"fmt.unplayable.22"}),Q.HI.w5(),!0;var L=!1;if(Q.videoData.isExternallyHostedPodcast){if(L=Q.videoData.Rg)H.mimeType=L.type,Q.On("3pp",{url:L.url});H.ns="3pp";Q.HI.VN(z,1,"VIDEO_UNAVAILABLE",xK((new Oh(z, H,1)).details));return!0}var u=Q.YA+3E4<(0,g.NV)()||Q.Z.isActive();if(Q.aj.V("html5_empty_src")&&Q.videoData.isAd()&&z==="fmt.unplayable"&&/Empty src/.test(""+H.msg))return H.origin="emptysrc",Q.h7("auth",H),!0;u||CD(Q.HI.Kq())||(H.nonfg="paused",u=!0,Q.HI.pauseVideo());(z==="fmt.decode"||z==="fmt.unplayable")&&(b==null?0:w5(b)||kK(b))&&(ixc(Q.aj.S,b.Rj),H.acfallexp=b.Rj,L=u=!0);!u&&Q.L>0&&(Q.Z.start(),u=!0,H.delayed="1",--Q.L);b=Q.HI.xv;!u&&((f==null?0:mq(f))||(f==null?0:KG(f)))&&(ixc(Q.aj.S,f.Rj), L=u=!0,H.cfallexp=f.Rj);if(Q.aj.V("html5_ssap_ignore_decode_error_for_next_video")&&g.mI(Q.videoData)&&z==="fmt.unplayable"&&H.cid&&H.ccid&&CD(Q.HI.Kq())){if(H.cid!==H.ccid)return H.ignerr="1",Q.h7("ssap.transitionfailure",H),!0;Q.h7("ssap.transitionfailure",H);if(Kru(Q.HI,z))return!0}if(!u)return Vc6(Q,H);if(Q.aj.V("html5_ssap_skip_decoding_clip_with_incompatible_codec")&&g.mI(Q.videoData)&&z==="fmt.unplayable"&&H.cid&&H.ccid&&H.cid!==H.ccid&&CD(Q.HI.Kq())&&(Q.h7("ssap.transitionfailure",H),Kru(Q.HI, z)))return!0;u=!1;Q.S?Q.YA=(0,g.NV)():u=Q.S=!0;var X=Q.videoData;if(X.gh){X=X.gh.JO();var v=Date.now()/1E3+1800;X=X6048E5&&lpv(Q,"signature");return!1}; lpv=function(Q,z){try{window.location.reload(),Q.h7("qoe.restart",{detail:"pr."+z})}catch(H){}}; QDZ=function(Q,z){z=z===void 0?"fmt.noneavailable":z;var H=Q.aj.S;H.Y=!1;Rk(H);Q.h7("qoe.restart",{e:z,detail:"hdr"});Q.HI.lL(!0)}; z3n=function(Q,z,H,f,b,L){this.videoData=Q;this.Z=z;this.reason=H;this.B=f;this.token=b;this.videoId=L}; HBA=function(Q,z,H){this.rh=Q;this.nx=z;this.HI=H;this.N=this.j=this.Z=this.D=this.Y=this.B=0;this.S=!1;this.U=g.qf(this.rh.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.L=new Map}; bBL=function(Q,z,H){!Q.rh.V("html5_tv_ignore_capable_constraint")&&g.OV(Q.rh)&&(H=H.compose(fDA(Q,z)));return H}; LaL=function(Q){if(Q.HI.Kq().isInline())return WV;var z;Q.V("html5_exponential_memory_for_sticky")?z=Zd(Q.rh.D6,"sticky-lifetime")<.5?"auto":b$[PB()]:z=b$[PB()];return g.zQ("auto",z,!1,"s")}; Szp=function(Q,z){var H,f=uT8(Q,(H=z.Z)==null?void 0:H.videoInfos);H=Q.HI.getPlaybackRate();return H>1&&f?(Q=sc9(Q.rh.S,z.Z.videoInfos,H),new QZ(0,Q,!0,"o")):new QZ(0,0,!1,"o")}; uT8=function(Q,z){return z&&g.OV(Q.rh)?z.some(function(H){return H.video.fps>32}):!1}; XW9=function(Q,z){var H=Q.HI.ob();Q.V("html5_use_video_quality_cap_for_ustreamer_constraint")&&H&&H.vZ>0&&fu(z.videoData.vR)&&(Q=H.vZ,z.videoData.vR=new QZ(0,Q,!1,"u"));return z.videoData.vR}; fDA=function(Q,z){if(g.OV(Q.rh)&&nu(Q.rh.S,g8.HEIGHT))var H=z.Z.videoInfos[0].video.Z;else{var f=!!z.Z.Z;var b;g.Il(Q.rh)&&(b=window.screen&&window.screen.width?new g.pC(window.screen.width,window.screen.height):null);b||(b=Q.rh.Lr?Q.rh.Lr.clone():Q.nx.Oq());(eT||zX||f)&&b.scale(g.dm());f=b;f9(z.videoData)||K9(z.videoData);z=z.Z.videoInfos;if(z.length){b=g.qf(Q.rh.experiments,"html5_override_oversend_fraction")||.85;var L=z[0].video;L.projectionType!=="MESH"&&L.projectionType!=="EQUIRECTANGULAR"&& L.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||JE||(b=.45);Q=g.qf(Q.rh.experiments,"html5_viewport_undersend_maximum");for(L=0;L0&&(H=Math.min(H,f));if(f=g.qf(Q.rh.experiments,"html5_max_vertical_resolution")){Q=4320;for(b=0;b f&&(Q=Math.min(Q,L.video.Z));if(Q<4320){for(b=f=0;b32){b=!0;break a}}b=!1}b&&(H=Math.min(H,f));(f=g.qf(Q.rh.experiments,"html5_live_quality_cap"))&&z.videoData.isLivePlayback&&(H=Math.min(H,f));H=yJZ(Q,z,H);Q=g.qf(Q.rh.experiments,"html5_byterate_soft_cap");return new QZ(0,H===4320?0:H,!1,"d",Q)}; M8A=function(Q){var z,H,f,b;return g.B(function(L){switch(L.Z){case 1:return Q.Z.Z&&typeof((z=navigator.mediaCapabilities)==null?void 0:z.decodingInfo)==="function"?g.Y(L,Promise.resolve(),2):L.return(Promise.resolve());case 2:H=g.n(Q.Z.videoInfos),f=H.next();case 3:if(f.done){L.bT(0);break}b=f.value;return g.Y(L,jQu(b),4);case 4:f=H.next(),L.bT(3)}})}; t8a=function(Q,z){if(!z.videoData.B||Q.V("html5_disable_performance_downgrade"))return!1;Date.now()-Q.Y>6E4&&(Q.B=0);Q.B++;Q.Y=Date.now();if(Q.B!==4)return!1;CKY(Q,z.videoData.B);return!0}; pWp=function(Q,z,H,f){if(!z||!H||!z.videoData.B)return!1;var b=g.qf(Q.rh.experiments,"html5_df_downgrade_thresh"),L=Q.V("html5_log_media_perf_info");if(!((0,g.NV)()-Q.D<5E3?0:L||b>0))return!1;var u=((0,g.NV)()-Q.D)/1E3;Q.D=(0,g.NV)();H=H.getVideoPlaybackQuality();if(!H)return!1;var X=H.droppedVideoFrames-Q.j,v=H.totalVideoFrames-Q.N;Q.j=H.droppedVideoFrames;Q.N=H.totalVideoFrames;var y=H.displayCompositedVideoFrames===0?0:H.displayCompositedVideoFrames||-1;L&&Q.rh.vz()&&Q.HI.On("ddf",{dr:H.droppedVideoFrames, de:H.totalVideoFrames,comp:y});if(f)return Q.Z=0,!1;if((v-X)/u>Q.U||!b||g.OV(Q.rh))return!1;Q.Z=(v>60?X/v:0)>b?Q.Z+1:0;if(Q.Z!==3)return!1;CKY(Q,z.videoData.B);Q.HI.On("dfd",Object.assign({dr:H.droppedVideoFrames,de:H.totalVideoFrames},EY6()));return!0}; CKY=function(Q,z){var H=z.Rj,f=z.video.fps,b=z.video.Z-1,L=Q.L;z=""+H+(f>49?"p60":f>32?"p48":"");H=ok(H,f,L);b>0&&(H=Math.min(H,b));if(!td.has(z)&&cB().includes(z)){var u=H;H=UW();+H[z]>0&&(u=Math.min(+H[z],u));H[z]!==u&&(H[z]=u,g.Bw("yt-player-performance-cap",H,2592E3))}else if(td.has(z)||L==null){a:{u=u===void 0?!0:u;f=cB().slice();if(u){if(f.includes(z))break a;f.push(z)}else{if(!f.includes(z))break a;f.splice(f.indexOf(z),1)}g.Bw("yt-player-performance-cap-active-set",f,2592E3)}Om.set(z,H)}else td.add(z), L==null||L.set(z,H);Q.HI.ST()}; Eg=function(Q,z){if(!z.Z.Z)return Q.S?new QZ(0,360,!1,"b"):WV;for(var H=!1,f=!1,b=g.n(z.Z.videoInfos),L=b.next();!L.done;L=b.next())mq(L.value)?H=!0:f=!0;H=H&&f;f=0;b=g.qf(Q.rh.experiments,"html5_performance_cap_floor");b=Q.rh.B?240:b;z=g.n(z.Z.videoInfos);for(L=z.next();!L.done;L=z.next()){var u=L.value;if(!H||!mq(u))if(L=ok(u.Rj,u.video.fps,Q.L),u=u.video.Z,Math.max(L,b)>=u){f=u;break}}return new QZ(0,f,!1,"b")}; nYJ=function(Q,z){var H=Q.HI.Kq();return H.isInline()&&!z.x6?new QZ(0,480,!1,"v"):H.isBackground()&&NA()/1E3>60&&!g.OV(Q.rh)?new QZ(0,360,!1,"v"):WV}; gY_=function(Q,z,H){if(Q.rh.experiments.Nc("html5_disable_client_autonav_cap_for_onesie")&&z.fetchType==="onesie"||g.OV(Q.rh)&&(PB(-1)>=1080||z.osid))return WV;var f=g.qf(Q.rh.experiments,"html5_autonav_quality_cap"),b=g.qf(Q.rh.experiments,"html5_autonav_cap_idle_secs");return f&&z.isAutonav&&NA()/1E3>b?(H&&(f=yJZ(Q,H,f)),new QZ(0,f,!1,"e")):WV}; yJZ=function(Q,z,H){if(Q.V("html5_optimality_defaults_chooses_next_higher")&&H)for(Q=z.Z.videoInfos,z=1;z=0||(Q.provider.HI.getVisibilityState()===3?Q.S=!0:(Q.Z=g.nD(Q.provider),Q.delay.start()))}; $l9=function(Q){if(!(Q.B<0)){var z=g.nD(Q.provider),H=z-Q.D;Q.D=z;Q.playerState.state===8?Q.playTimeSecs+=H:Q.playerState.isBuffering()&&!g.w(Q.playerState,16)&&(Q.rebufferTimeSecs+=H)}}; jDv=function(Q){var z;switch((z=Q.rh.playerCanaryStage)==null?void 0:z.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"}}; Fap=function(Q){return window.PressureObserver&&new window.PressureObserver(Q)}; xlp=function(Q){Q=Q===void 0?Fap:Q;g.h.call(this);var z=this;try{this.L=Q(function(f){z.B=f.at(-1)}); var H;this.D=(H=this.L)==null?void 0:H.observe("cpu",{sampleInterval:2E3}).catch(function(f){f instanceof DOMException&&(z.Z=f)})}catch(f){f instanceof DOMException&&(this.Z=f)}}; OBp=function(Q){var z={},H=window.h5vcc;z.hwConcurrency=navigator.hardwareConcurrency;Q.Z&&(z.cpe=Q.Z.message);Q.B&&(z.cpt=Q.B.time,z.cps=Q.B.state);if(H==null?0:H.cVal)z.cb2s=H.cVal.getValue("CPU.Total.Usage.IntervalSeconds.2"),z.cb5s=H.cVal.getValue("CPU.Total.Usage.IntervalSeconds.5"),z.cb30s=H.cVal.getValue("CPU.Total.Usage.IntervalSeconds.30");return z}; oYp=function(Q){var z;g.B(function(H){switch(H.Z){case 1:return g.$v(H,2),g.Y(H,Q.D,4);case 4:g.Fa(H,3);break;case 2:g.xv(H);case 3:(z=Q.L)==null||z.disconnect(),g.Gu(H)}})}; N9J=function(Q,z){z?JJ6.test(Q):(Q=g.uv(Q),Object.keys(Q).includes("cpn"))}; AJ8=function(Q,z,H,f,b,L,u){var X={format:"RAW"},v={};if(v2(Q)&&yC()){if(u){var y;((y=IDa.uaChPolyfill)==null?void 0:y.state.type)!==2?u=null:(u=IDa.uaChPolyfill.state.data.values,u={"Synth-Sec-CH-UA-Arch":u.architecture,"Synth-Sec-CH-UA-Model":u.model,"Synth-Sec-CH-UA-Platform":u.platform,"Synth-Sec-CH-UA-Platform-Version":u.platformVersion,"Synth-Sec-CH-UA-Full-Version":u.uaFullVersion});v=Object.assign(v,u);X.withCredentials=!0}(u=g.T5("EOM_VISITOR_DATA"))?v["X-Goog-EOM-Visitor-Id"]=u:f?v["X-Goog-Visitor-Id"]= f:g.T5("VISITOR_DATA")&&(v["X-Goog-Visitor-Id"]=g.T5("VISITOR_DATA"));H&&(v["X-Goog-PageId"]=H);(f=z.L3)&&!wm(z)&&(v["X-Goog-AuthUser"]=f);b&&(v.Authorization="Bearer "+b);z.V("enable_datasync_id_header_in_web_vss_pings")&&z.WY&&z.datasyncId&&(v["X-YouTube-DataSync-Id"]=z.datasyncId);u||v["X-Goog-Visitor-Id"]||b||H||f?X.withCredentials=!0:z.V("html5_send_cpn_with_options")&&JJ6.test(Q)&&(X.withCredentials=!0)}Object.keys(v).length>0&&(X.headers=v);L&&(X.onFinish=L);return Object.keys(X).length>1? X:null}; Yzk=function(Q,z,H,f,b,L,u,X){yC()&&H.token&&(Q=ST(Q,{ctt:H.token,cttype:H.Ln,mdx_environment:H.mdxEnvironment}));f.V("net_pings_low_priority")&&(z||(z={}),z.priority="low");L||X&&f.V("nwl_skip_retry")?(z==null?z={}:N9J(Q,f.V("html5_assert_cpn_with_regex")),u?lS().sendAndWrite(Q,z):lS().sendThenWrite(Q,z,X)):z?(N9J(Q,f.V("html5_assert_cpn_with_regex")),f.V("net_pings_use_fetch")?EW_(Q,z):g.JF(Q,z)):g.WU(Q,b)}; rJu=function(Q){for(var z=[],H=0;H0&&H>0&&!Q.B&&Q.L<1E7)try{Q.D=Q.S({sampleInterval:z,maxBufferSize:H});var f;(f=Q.D)==null||f.addEventListener("samplebufferfull",function(){return g.B(function(b){if(b.Z==1)return g.Y(b,Q.stop(),2);PKv(Q);g.Gu(b)})})}catch(b){Q.B=B9u(b.message)}}; Z4=function(Q,z){var H,f;return!!((H=window.h5vcc)==null?0:(f=H.settings)==null?0:f.set(Q,z))}; UlJ=function(){var Q,z,H,f=(Q=window.h5vcc)==null?void 0:(z=Q.settings)==null?void 0:(H=z.getPersistentSettingAsString)==null?void 0:H.call(z,"cpu_usage_tracker_intervals");if(f!=null){var b;Q=(b=JSON.parse(f))!=null?b:[];b=Q.filter(function(y){return y.type==="total"}).map(function(y){return y.seconds}); z=g.n(aDY);for(H=z.next();!H.done;H=z.next())H=H.value,b.indexOf(H)===-1&&Q.push({type:"total",seconds:H});var L,u;(L=window.h5vcc)==null||(u=L.settings)==null||u.set("cpu_usage_tracker_intervals_enabled",1);var X,v;(X=window.h5vcc)==null||(v=X.settings)==null||v.set("cpu_usage_tracker_intervals",JSON.stringify(Q))}}; cJ_=function(){var Q=window.H5vccPlatformService,z="";if(Q&&Q.has("dev.cobalt.coat.clientloginfo")&&(Q=Q.open("dev.cobalt.coat.clientloginfo",function(){}))){var H=Q.send(new ArrayBuffer(0)); H&&(z=String.fromCharCode.apply(String,g.F(new Uint8Array(H))));Q.close()}return z}; g.jr=function(Q,z){g.h.call(this);var H=this;this.provider=Q;this.logger=new g.bk("qoe");this.Z={};this.sequenceNumber=1;this.j=NaN;this.oy="N";this.U=this.RZ=this.Fs=this.Xa=this.S=0;this.UY=this.jm=this.Y=this.En="";this.ys=this.mq=NaN;this.gT=0;this.p5=-1;this.Vs=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.ZJ=this.isEmbargoed=this.yl=this.isOffline=this.isBuffering=!1;this.d4=[];this.wh=null;this.gh=this.L=this.rT=this.N=!1;this.B=-1;this.uT=!1;this.yR=new g.e_(this.Yn5,750,this);this.Ze= this.adCpn=this.L3=this.contentCpn="";this.adFormat=void 0;this.Bc=0;this.WI=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.zx=new Set(["gd"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.yE=!1;this.Wz=NaN;this.f3=0;this.KH=!1;this.De=0;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.EY=!1;this.Po={T8:function(b){H.T8(b)}, gRv:function(){return H.D}, jN:function(){return H.contentCpn}, vRn:function(){return H.L3}, reportStats:function(){H.reportStats()}, mFh:function(){return H.Z.cat}, DR:function(b){return H.Z[b]}, mtT:function(){return H.De}}; var f=g.qf(this.provider.rh.experiments,"html5_qoe_proto_mock_length");f&&!Gb.length&&(Gb=rJu(f));g.W(this,this.yR);try{navigator.getBattery().then(function(b){H.wh=b})}catch(b){}g.$P(this,0,"vps",["N"]); Q.rh.vz()&&(this.f3=(0,g.NV)(),this.Wz=g.gR(function(){var b=(0,g.NV)(),L=b-H.f3;L>500&&H.On("vmlock",{diff:L.toFixed()});H.f3=b},250)); Q.HI.t$()&&z&&(this.De=z-Math.round(g.nD(Q)*1E3));this.provider.videoData.Ts&&(this.remoteControlMode=iBZ[this.provider.videoData.Ts]||0);this.provider.videoData.Qw&&(z=Vxu(this.provider.videoData.Qw),z==null?0:z.length)&&(this.remoteConnectedDevices=z);if(Q.rh.vz()||Q.V("html5_log_cpu_info"))this.C3=new xlp,g.W(this,this.C3);z=g.qf(Q.rh.experiments,"html5_js_self_profiler_sample_interval_ms");Q=g.qf(Q.rh.experiments,"html5_js_self_profiler_max_samples");z>0&&Q>0&&(this.iT=new gT(z,Q),g.W(this,this.iT))}; g.$P=function(Q,z,H,f){var b=Q.Z[H];b||(b=[],Q.Z[H]=b);b.push(z.toFixed(3)+":"+f.join(":"))}; h39=function(Q,z){var H=Q.adCpn||Q.provider.videoData.clientPlaybackNonce,f=Q.provider.getCurrentTime(H);g.$P(Q,z,"cmt",[f.toFixed(3)]);f=Q.provider.yN(H);if(Q.D&&f*1E3>Q.D.Gh+100&&Q.D){var b=Q.D;H=b.isAd;f=f*1E3-b.Gh;Q.gR=z*1E3-b.Qze-f-b.jzI;b=(0,g.NV)()-f;z=Q.gR;f=Q.provider.videoData;var L=f.isAd();if(H||L){L=(H?"ad":"video")+"_to_"+(L?"ad":"video");var u={};f.j&&(u.cttAuthInfo={token:f.j,videoId:f.videoId});u.startTime=b-z;WC(L,u);g.hN({targetVideoId:f.videoId,targetCpn:f.clientPlaybackNonce}, L);ib("pbs",b,L)}else b=Q.provider.HI.vB(),b.j!==f.clientPlaybackNonce?(b.S=f.clientPlaybackNonce,b.B=z):f.fq()||g.PT(new g.wD("CSI timing logged before gllat",{cpn:f.clientPlaybackNonce}));Q.On("gllat",{l:Q.gR.toFixed(),prev_ad:+H});delete Q.D}}; Fj=function(Q,z){z=z===void 0?NaN:z;z=z>=0?z:g.nD(Q.provider);var H=Q.provider.HI.u4(),f=H.Zi-(Q.mq||0);f>0&&g.$P(Q,z,"bwm",[f,(H.jJ-(Q.ys||0)).toFixed(3)]);isNaN(Q.mq)&&H.Zi&&Q.isOffline&&Q.T8(!1);Q.mq=H.Zi;Q.ys=H.jJ;isNaN(H.bandwidthEstimate)||g.$P(Q,z,"bwe",[H.bandwidthEstimate.toFixed(0)]);Q.provider.rh.vz()&&Object.keys(H.Z).length!==0&&Q.On("bwinfo",H.Z);if(Q.provider.rh.vz()||Q.provider.rh.V("html5_log_meminfo"))f=Ry8(),Object.values(f).some(function(L){return L!==void 0})&&Q.On("meminfo", f); if(Q.provider.rh.vz()||Q.provider.rh.V("html5_log_cpu_info")){var b;(f=(b=Q.C3)==null?void 0:OBp(b))&&Object.values(f).some(function(L){return L!=null})&&Q.On("cpuinfo",f)}Q.iT&&Q.On("jsprof",Q.iT.flush()); Q.wh&&g.$P(Q,z,"bat",[Q.wh.level,Q.wh.charging?"1":"0"]);b=Q.provider.HI.getVisibilityState();Q.p5!==b&&(g.$P(Q,z,"vis",[b]),Q.p5=b);h39(Q,z);(b=WaA(Q.provider))&&b!==Q.gT&&(g.$P(Q,z,"conn",[b]),Q.gT=b);DlY(Q,z,H)}; DlY=function(Q,z,H){if(!isNaN(H.yq)){var f=H.yq;H.B96E3&&(new g.e_(Q.reportStats,0,Q)).start()}; dl_=function(Q){Q.provider.videoData.d4&&xP(Q,"prefetch");Q.provider.videoData.gT&&Q.On("reload",{r:Q.provider.videoData.reloadReason,ct:Q.provider.videoData.gT});Q.provider.videoData.WI&&xP(Q,"monitor");Q.provider.videoData.isLivePlayback&&xP(Q,"live");wS&&xP(Q,"streaming");Q.provider.videoData.Ts&&Q.On("ctrl",{mode:Q.provider.videoData.Ts},!0);if(Q.provider.videoData.Qw){var z=Q.provider.videoData.Qw.replace(/,/g,"_");Q.On("ytp",{type:z},!0)}Q.provider.videoData.Ya&&(z=Q.provider.videoData.Ya.replace(/,/g, "."),Q.On("ytrexp",{ids:z},!0));var H=Q.provider.videoData;z=Q.provider.rh.V("enable_white_noise")||Q.provider.rh.V("enable_webgl_noop");H=g.p9(H)||g.Iq(H)||g.AM(H)||g.Ym(H);(z||H)&&(z=(0,g.Og)())&&(Q.Z.gpu=[z]);K9(Q.provider.videoData)&&g.$P(Q,g.nD(Q.provider),"dt",["1"]);Q.provider.rh.vz()&&(z=(0,g.NV)()-Q.provider.rh.YJ,Q.On("playerage",{secs:Math.pow(1.6,Math.round(Math.log(z/1E3)/Math.log(1.6))).toFixed()}));Q.L=!0;Q.j=g.gR(function(){Q.reportStats()},1E4)}; wW9=function(Q,z,H){var f=g.nD(Q.provider);mlk(Q,f,z,0,H);Fj(Q,f);V8Z(Q)}; mlk=function(Q,z,H,f,b){var L=Q.provider.rh.Z.cbrver;Q.provider.rh.Z.cbr==="Chrome"&&/^96[.]/.test(L)&&H==="net.badstatus"&&/rc\.500/.test(b)&&kca(Q,3);Q.provider.rh.V("html5_use_ump")&&/b248180278/.test(b)&&kca(Q,4);L=Q.provider.getCurrentTime(Q.adCpn||Q.provider.videoData.clientPlaybackNonce);f=f===1?"fatal":"";H=[H,f,L.toFixed(3)];f&&(b+=";a6s."+vm());b&&H.push(T9A(b));g.$P(Q,z,"error",H);Q.L=!0}; e3c=function(Q){Q.B>=0||(Q.provider.rh.m4||Q.provider.HI.getVisibilityState()!==3?Q.B=g.nD(Q.provider):Q.uT=!0)}; lDL=function(Q,z,H,f){if(H!==Q.oy){z=10&&Q.playTimeSecs<=180&&(Q.Z.qoealert=["1"],Q.ZJ=!0)),H!=="B"||Q.oy!=="PL"&&Q.oy!=="PB"||(Q.isBuffering=!0),Q.S=z);Q.oy==="PL"&&(H==="B"||H==="S")||Q.provider.rh.vz()?Fj(Q,z):(Q.yE||H!=="PL"||(Q.yE=!0,DlY(Q,z,Q.provider.HI.u4())),h39(Q,z));H==="PL"&&g.lp(Q.yR);var b=[H];H==="S"&&f&&b.push("ss."+f);g.$P(Q,z,"vps",b);Q.oy=H; Q.Xa=z;Q.S=z;Q.L=!0}}; xP=function(Q,z){var H=Q.Z.cat||[];H.push(z);Q.Z.cat=H}; oy=function(Q,z,H,f,b,L){var u=g.nD(Q.provider);H!==1&&H!==3&&H!==5||g.$P(Q,u,"vps",[Q.oy]);var X=Q.Z.xvt||[];X.push("t."+u.toFixed(3)+";m."+L.toFixed(3)+";g."+z+";tt."+H+";np.0;c."+f+";d."+b);Q.Z.xvt=X}; kca=function(Q,z){if(!Q.gh){var H=Q.Z.fcnz;H||(H=[],Q.Z.fcnz=H);H.push(String(z));Q.gh=!0}}; T9A=function(Q){/[^a-zA-Z0-9;.!_-]/.test(Q)&&(Q=Q.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return Q}; R3u=function(Q){this.provider=Q;this.Y=!1;this.Z=0;this.D=-1;this.sJ=NaN;this.L=0;this.segments=[];this.j=this.S=0;this.previouslyEnded=!1;this.U=this.provider.HI.getVolume();this.N=this.provider.HI.isMuted()?1:0;this.B=Jd(this.provider)}; NJ=function(Q){Q.B.startTime=Q.L;Q.B.endTime=Q.Z;var z=!1;Q.segments.length&&g.Vs(Q.segments).isEmpty()?(Q.segments[Q.segments.length-1].previouslyEnded&&(Q.B.previouslyEnded=!0),Q.segments[Q.segments.length-1]=Q.B,z=!0):Q.segments.length&&Q.B.isEmpty()||(Q.segments.push(Q.B),z=!0);z?Q.B.endTime===0&&(Q.previouslyEnded=!1):Q.B.previouslyEnded&&(Q.previouslyEnded=!0);Q.S+=Q.Z-Q.L;Q.B=Jd(Q.provider);Q.B.previouslyEnded=Q.previouslyEnded;Q.previouslyEnded=!1;Q.L=Q.Z}; zgv=function(Q){QyY(Q);Q.j=g.gR(function(){Q.update()},100); Q.sJ=g.nD(Q.provider);Q.B=Jd(Q.provider)}; QyY=function(Q){g.Gr(Q.j);Q.j=NaN}; HDa=function(Q,z,H){H-=Q.sJ;return z===Q.Z&&H>.5}; f4v=function(Q,z,H,f){this.rh=z;this.Wz=H;this.segments=[];this.experimentIds=[];this.iT=this.KH=this.isFinal=this.delayThresholdMet=this.ZJ=this.Vs=this.autoplay=this.autonav=!1;this.UY="yt";this.j=[];this.Y=this.U=null;this.sendVisitorIdHeader=this.uT=!1;this.N=this.pageId="";this.S=H==="watchtime";this.L=H==="playback";this.L3=H==="atr";this.m4=H==="engage";this.sendVisitorIdHeader=!1;this.uri=this.L3?"/api/stats/"+H:"//"+z.kc+"/api/stats/"+H;f&&(this.KH=f.fs,f.rtn&&(this.Y=f.rtn),this.S?(this.playerState= f.state,f.rti>0&&(this.U=f.rti)):(this.cq=f.mos,this.Ci=f.volume,f.at&&(this.adType=f.at)),f.autonav&&(this.autonav=f.autonav),f.inview!=null&&(this.ys=f.inview),f.size&&(this.gT=f.size),f.playerwidth&&(this.playerWidth=f.playerwidth),f.playerheight&&(this.playerHeight=f.playerheight));this.zx=g.B3(z.Z);this.N=ki(z.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.N==="all"||this.N==="once")this.yE=g.B3(z.Wz);this.D6=z.C3;this.experimentIds=I$A(z.experiments);this.En=z.yE;this.UY=z.Ze;this.region= z.region;this.userAge=z.userAge;this.WI=z.r7;this.yR=NA();this.sendVisitorIdHeader=z.sendVisitorIdHeader;this.De=z.V("vss_pings_using_networkless")||z.V("kevlar_woffle");this.YJ=z.V("vss_final_ping_send_and_write");this.yl=z.V("vss_use_send_and_write");this.pageId=z.pageId;this.sj=z.V("vss_playback_use_send_and_write");z.livingRoomAppMode&&(this.livingRoomAppMode=z.livingRoomAppMode);this.Tx=z.D&&z.V("embeds_append_synth_ch_headers");g.xh(z)&&(this.jm=z.De);g.q0(g.s8(z))&&this.j.push(1);this.accessToken= g.hM(Q);Q.yd[this.Wz]?this.D=Q.yd[this.Wz]:Q.yd.playback&&(this.D=Q.yd.playback);this.adFormat=Q.adFormat;this.adQueryId=Q.adQueryId;this.autoplay=iE(Q);this.L&&(this.Vs=(Q.V("html5_enable_log_server_autoplay")||Q.V("enable_cleanup_masthead_autoplay_hack_fix"))&&Q.D4&&P7(Q)==="adunit"?!0:!1);this.autonav=Q.isAutonav||this.autonav;this.contentVideoId=UC(Q);this.clientPlaybackNonce=Q.clientPlaybackNonce;this.ZJ=Q.gV;Q.j&&(this.Ze=Q.j,this.gh=Q.ZK);Q.mdxEnvironment&&(this.mdxEnvironment=Q.mdxEnvironment); this.Z=Q.iT;this.Xa=Q.Xa;Q.B&&(this.d4=Q.B.itag,Q.D&&Q.D.itag!==this.d4&&(this.rT=Q.D.itag));Q.Z&&vM(Q.Z)&&(this.offlineDownloadUserChoice="1");this.eventLabel=P7(Q);this.iT=Q.D6?!1:Q.m4;this.Bc=Q.P5;if(z=$m(Q))this.h$=z;this.QN=Q.hY;this.partnerId=Q.partnerId;this.eventId=Q.eventId;this.playlistId=Q.Z9||Q.playlistId;this.F8=Q.F8;this.Ts=Q.Ts;this.Qw=Q.Qw;this.jl=Q.jl;this.subscribed=Q.subscribed;this.videoId=Q.videoId;this.videoMetadata=Q.videoMetadata;this.visitorData=Q.visitorData;this.osid=Q.osid; this.Lc=Q.Lc;this.referrer=Q.referrer;this.ID=Q.Zx||Q.ID;this.C3=Q.Xo;this.U2=Q.U2;this.userGenderAge=Q.userGenderAge;this.T$=Q.T$;this.embedsRct=Q.embedsRct;this.embedsRctn=Q.embedsRctn;g.xh(this.rh)&&Q.mutedAutoplay&&(Q.mutedAutoplayDurationMode===2&&Q.limitedPlaybackDurationInSeconds===0&&Q.endSeconds===0?this.j.push(7):this.j.push(2));Q.isEmbedsShortsMode(new g.pC(this.playerWidth,this.playerHeight),!!this.playlistId)&&this.j.push(3);g.fR(Q)&&this.j.push(4);this.mq=Q.W$;Q.compositeLiveIngestionOffsetToken&& (this.compositeLiveIngestionOffsetToken=Q.compositeLiveIngestionOffsetToken)}; bDJ=function(Q,z){var H=Q.sendVisitorIdHeader?Q.visitorData:void 0;return g.zZ(Q.rh,Q.accessToken).then(function(f){return AJ8(Q.uri,Q.rh,Q.pageId,H,f,z,Q.Tx)})}; Sgv=function(Q,z){return function(){Q.rh.V("html5_simplify_pings")?(Q.Z=Q.f3,Q.p5=z(),Q.yR=0,Q.send()):bDJ(Q).then(function(H){var f=LRv(Q);f.cmt=f.len;f.lact="0";var b=z().toFixed(3);f.rt=Number(b).toString();f=g.Ve(Q.uri,f);Q.rh.V("vss_through_gel_double")&&ujL(f);Q.De?(H==null&&(H={}),Q.yl?lS().sendAndWrite(f,H):lS().sendThenWrite(f,H)):H?g.JF(f,H):g.WU(f)})}}; LRv=function(Q){var z={ns:Q.UY,el:Q.eventLabel,cpn:Q.clientPlaybackNonce,ver:2,cmt:Q.B(Q.Z),fmt:Q.d4,fs:Q.KH?"1":"0",rt:Q.B(Q.p5),adformat:Q.adFormat,content_v:Q.contentVideoId,euri:Q.D6,lact:Q.yR,live:Q.h$,cl:(733956867).toString(),mos:Q.cq,state:Q.playerState,volume:Q.Ci};Q.subscribed&&(z.subscribed="1");Object.assign(z,Q.zx);Q.N==="all"?Object.assign(z,Q.yE):Q.N==="once"&&Q.L&&Object.assign(z,Q.yE);Q.autoplay&&(z.autoplay="1");Q.Vs&&(z.sautoplay="1");Q.ZJ&&(z.dni="1");!Q.S&&Q.jm&&(z.epm=XLZ[Q.jm]); Q.isFinal&&(z["final"]="1");Q.iT&&(z.splay="1");Q.Xa&&(z.delay=Q.Xa);Q.En&&(z.hl=Q.En);Q.region&&(z.cr=Q.region);Q.userGenderAge&&(z.uga=Q.userGenderAge);Q.userAge!==void 0&&Q.WI&&(z.uga=Q.WI+Q.userAge);Q.f3!==void 0&&(z.len=Q.B(Q.f3));!Q.S&&Q.experimentIds.length>0&&(z.fexp=Q.experimentIds.toString());Q.Y!==null&&(z.rtn=Q.B(Q.Y));Q.ID&&(z.feature=Q.ID);Q.Ts&&(z.ctrl=Q.Ts);Q.Qw&&(z.ytr=Q.Qw);Q.rT&&(z.afmt=Q.rT);Q.offlineDownloadUserChoice&&(z.ODUC=Q.offlineDownloadUserChoice);Q.EY&&(z.lio=Q.B(Q.EY)); Q.S?(z.idpj=Q.Bc,z.ldpj=Q.QN,Q.delayThresholdMet&&(z.dtm="1"),Q.U!=null&&(z.rti=Q.B(Q.U)),Q.T$&&(z.ald=Q.T$),Q.compositeLiveIngestionOffsetToken&&(z.clio=Q.compositeLiveIngestionOffsetToken)):Q.adType!==void 0&&(z.at=Q.adType);Q.gT&&(Q.L||Q.S)&&(z.size=Q.gT);Q.L&&Q.j.length&&(z.pbstyle=Q.j.join(","));Q.ys!=null&&(Q.L||Q.S)&&(z.inview=Q.B(Q.ys));Q.S&&(z.volume=Iy(Q,g.J5(Q.segments,function(f){return f.volume})),z.st=Iy(Q,g.J5(Q.segments,function(f){return f.startTime})),z.et=Iy(Q,g.J5(Q.segments,function(f){return f.endTime})), Jx(Q.segments,function(f){return f.playbackRate!==1})&&(z.rate=Iy(Q,g.J5(Q.segments,function(f){return f.playbackRate}))),Jx(Q.segments,function(f){return f.Z!=="-"})&&(z.als=g.J5(Q.segments,function(f){return f.Z}).join(",")),Jx(Q.segments,function(f){return f.previouslyEnded})&&(z.pe=g.J5(Q.segments,function(f){return""+ +f.previouslyEnded}).join(","))); z.muted=Iy(Q,g.J5(Q.segments,function(f){return f.muted?1:0})); Jx(Q.segments,function(f){return f.visibilityState!==0})&&(z.vis=Iy(Q,g.J5(Q.segments,function(f){return f.visibilityState}))); Jx(Q.segments,function(f){return f.connectionType!==0})&&(z.conn=Iy(Q,g.J5(Q.segments,function(f){return f.connectionType}))); Jx(Q.segments,function(f){return f.B!==0})&&(z.blo=Iy(Q,g.J5(Q.segments,function(f){return f.B}))); Jx(Q.segments,function(f){return!!f.L})&&(z.blo=g.J5(Q.segments,function(f){return f.L}).join(",")); Jx(Q.segments,function(f){return!!f.compositeLiveStatusToken})&&(z.cbs=g.J5(Q.segments,function(f){return f.compositeLiveStatusToken}).join(",")); Jx(Q.segments,function(f){return f.D!=="-"})&&(z.cc=g.J5(Q.segments,function(f){return f.D}).join(",")); Jx(Q.segments,function(f){return f.clipId!=="-"})&&(z.clipid=g.J5(Q.segments,function(f){return f.clipId}).join(",")); if(Jx(Q.segments,function(f){return!!f.audioId})){var H="au"; Q.L&&(H="au_d");z[H]=g.J5(Q.segments,function(f){return f.audioId}).join(",")}yC()&&Q.Ze&&(z.ctt=Q.Ze,z.cttype=Q.gh,z.mdx_environment=Q.mdxEnvironment); Q.m4&&(z.etype=Q.wh!==void 0?Q.wh:0);Q.C3&&(z.uoo=Q.C3);Q.livingRoomAppMode&&Q.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(z.clram=vP9[Q.livingRoomAppMode]||Q.livingRoomAppMode);Q.D?ydu(Q,z):(z.docid=Q.videoId,z.referrer=Q.referrer,z.ei=Q.eventId,z.of=Q.Lc,z.osid=Q.osid,z.vm=Q.videoMetadata,Q.adQueryId&&(z.aqi=Q.adQueryId),Q.autonav&&(z.autonav="1"),Q.playlistId&&(z.list=Q.playlistId),Q.jl&&(z.ssrt="1"),Q.U2&&(z.upt=Q.U2));Q.L&&(Q.embedsRct&&(z.rct=Q.embedsRct),Q.embedsRctn&&(z.rctn= Q.embedsRctn),Q.compositeLiveIngestionOffsetToken&&(z.clio=Q.compositeLiveIngestionOffsetToken));Q.mq&&(z.host_cpn=Q.mq);return z}; ydu=function(Q,z){if(z&&Q.D){var H=new Set(["q","feature","mos"]),f=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),b=new Set(["aqi","autonav","list","ssrt","upt"]);Q.D.ns==="3pp"&&(z.ns="3pp");for(var L=g.n(Object.keys(Q.D)),u=L.next();!u.done;u=L.next())u=u.value,f.has(u)||H.has(u)||b.has(u)&&!Q.D[u]||(z[u]=Q.D[u])}}; Iy=function(Q,z){return g.J5(z,Q.B).join(",")}; ujL=function(Q){Q.indexOf("watchtime")!==-1&&g.y5("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:Q}})}; qgA=function(Q,z){Q.attestationResponse&&bDJ(Q).then(function(H){H=H||{};H.method="POST";H.postParams={atr:Q.attestationResponse};Q.De?Q.yl?lS().sendAndWrite(z,H):lS().sendThenWrite(z,H):g.JF(z,H)})}; Ad=function(Q){g.h.call(this);this.provider=Q;this.j="paused";this.S=NaN;this.Y=[10,10,10,40];this.U=this.N=0;this.wh=this.De=this.L3=this.Ze=this.L=!1;this.B=this.D=NaN;this.Z=new R3u(Q)}; EPJ=function(Q){if(!Q.L){Q.provider.videoData.PO===16623&&g.PT(Error("Playback for EmbedPage"));var z=YP(Q,"playback");a:{if(Q.provider.rh.V("web_player_use_server_vss_schedule")){var H,f=(H=Q.provider.videoData.getPlayerResponse())==null?void 0:H.playbackTracking,b=f==null?void 0:f.videostatsScheduledFlushWalltimeSeconds;f=f==null?void 0:f.videostatsDefaultFlushIntervalSeconds;if(b&&b.length>0&&f){H=[];var L=Q.provider.videoData.P5,u=Q.provider.videoData.hY,X=-L;b=g.n(b);for(var v=b.next();!v.done;v= b.next())v=v.value,H.push(v-X),X=v;H.push(f+u-L);H.push(f);Q.Y=H;break a}}Q.Y=[10+Q.provider.videoData.P5,10,10,40+Q.provider.videoData.hY-Q.provider.videoData.P5,40]}zgv(Q.Z);z.Y=rT(Q);Q.B>0&&(z.Z-=Q.B);z.send();Q.provider.videoData.QW&&(z=Q.provider.rh,f=Q.provider.videoData,H={html5:"1",video_id:f.videoId,cpn:f.clientPlaybackNonce,ei:f.eventId,ptk:f.QW,oid:f.vu,ptchn:f.s9,pltype:f.JI,content_v:UC(f)},f.BP&&Object.assign(H,{m:f.BP}),z=g.Ve(z.qP+"ptracking",H),Mrk(Q,z));Q.provider.videoData.Xa|| (CHa(Q),trJ(Q),Q.Op());Q.L=!0;Q=Q.Z;Q.Z=Q.provider.HI.yN();Q.sJ=g.nD(Q.provider);!(Q.L===0&&Q.Z<5)&&Q.Z-Q.L>2&&(Q.L=Q.Z);Q.Y=!0}}; rT=function(Q,z){z=z===void 0?NaN:z;var H=g.nD(Q.provider);z=isNaN(z)?H:z;z=Math.ceil(z);var f=Q.Y[Q.N];Q.N+11E3;!(L.length>1)&&L[0].isEmpty()||X||(u.Y=rT(Q,b));u.send();Q.U++}},(b-H)*1E3); return Q.D=b}; sg=function(Q){g.ZK(Q.S);Q.S=NaN}; pL9=function(Q){Q.Z.update();Q=Q.Z;Q.segments.length&&Q.Z===Q.L||NJ(Q);var z=Q.segments;Q.segments=[];return z}; YP=function(Q,z){var H=gPL(Q.provider);Object.assign(H,{state:Q.j});z=new f4v(Q.provider.videoData,Q.provider.rh,z,H);z.Z=Q.provider.HI.yN();H=Q.provider.videoData.clientPlaybackNonce;z.Z=Q.provider.HI.Tt(H);Q.provider.videoData.isLivePlayback||(z.f3=Q.provider.HI.getDuration(H));Q.provider.videoData.Z&&(H=Q.provider.videoData.Z.JM(z.Z))&&(z.EY=H-z.Z);z.p5=g.nD(Q.provider);z.segments=[Jd(Q.provider)];return z}; nPY=function(Q,z){var H=YP(Q,"watchtime");ZDp(Q)&&(H.delayThresholdMet=!0,Q.L3=!0);if(Q.B>0){for(var f=g.n(z),b=f.next();!b.done;b=f.next())b=b.value,b.startTime-=Q.B,b.endTime-=Q.B;H.Z-=Q.B}else H.Z=Q.Z.EF();H.segments=z;return H}; BL=function(Q,z){var H=Gb8(Q,!isNaN(Q.D));z&&(Q.D=NaN);return H}; Gb8=function(Q,z){var H=nPY(Q,pL9(Q));!isNaN(Q.D)&&z&&(H.U=Q.D);return H}; ZDp=function(Q){var z;if(z=Q.provider.videoData.isLoaded()&&Q.provider.videoData.Xa&&Q.L&&!Q.L3)z=Q.Z,z=z.S+z.provider.HI.yN()-z.L>=Q.provider.videoData.Xa;return!!z}; CHa=function(Q){Q.provider.videoData.youtubeRemarketingUrl&&!Q.De&&(Mrk(Q,Q.provider.videoData.youtubeRemarketingUrl),Q.De=!0)}; trJ=function(Q){Q.provider.videoData.googleRemarketingUrl&&!Q.wh&&(Mrk(Q,Q.provider.videoData.googleRemarketingUrl),Q.wh=!0)}; $J8=function(Q){if(!Q.Sm()&&Q.L){Q.j="paused";var z=BL(Q);z.isFinal=!0;z.send();Q.dispose()}}; jyu=function(Q,z){if(!Q.Sm())if(g.w(z.state,2)||g.w(z.state,512)){if(Q.j="paused",g.Ex(z,2)||g.Ex(z,512))g.Ex(z,2)&&(Q.Z.previouslyEnded=!0),Q.L&&(sg(Q),BL(Q).send(),Q.D=NaN)}else if(g.w(z.state,8)){Q.j="playing";var H=Q.L&&isNaN(Q.S)?rT(Q):NaN;if(!isNaN(H)&&(tT(z,64)<0||tT(z,512)<0)){var f=Gb8(Q,!1);f.Y=H;f.send()}Q.provider.rh.V("html5_report_gapless_loop_to_vss")&&g.Ex(z,16)&&z.state.seekSource===58&&(Q.Z.previouslyEnded=!0)}else Q.j="paused"}; FRk=function(Q,z,H){if(!Q.Ze){H||(H=YP(Q,"atr"));H.attestationResponse=z;try{H.send()}catch(f){if(f.message!=="Unknown Error")throw f;}Q.Ze=!0}}; Mrk=function(Q,z){var H=Q.provider.rh;g.zZ(Q.provider.rh,g.hM(Q.provider.videoData)).then(function(f){var b=Q.provider.rh.pageId,L=Q.provider.rh.sendVisitorIdHeader?Q.provider.videoData.visitorData:void 0,u=Q.provider.rh.V("vss_pings_using_networkless")||Q.provider.rh.V("kevlar_woffle"),X=Q.provider.rh.V("allow_skip_networkless");f=AJ8(z,H,b,L,f);Yzk(z,f,{token:Q.provider.videoData.j,Ln:Q.provider.videoData.ZK,mdxEnvironment:Q.provider.videoData.mdxEnvironment},H,void 0,u&&!X,!1,!0)})}; xJu=function(){this.endTime=this.startTime=-1;this.D="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.B=0;this.compositeLiveStatusToken=this.L=void 0;this.volume=this.connectionType=0;this.muted=!1;this.Z=this.clipId="-";this.previouslyEnded=!1}; PL=function(Q,z,H){this.videoData=Q;this.rh=z;this.HI=H;this.Z=void 0}; g.nD=function(Q){return ODL(Q)()}; ODL=function(Q){if(!Q.Z){var z=g.RJ(function(f){var b=(0,g.NV)();f&&b<=631152E6&&(Q.HI.On("ytnerror",{issue:28799967,value:""+b}),b=(new Date).getTime()+2);return b},Q.rh.V("html5_validate_yt_now")),H=z(); Q.Z=function(){return Math.round(z()-H)/1E3}; Q.HI.zz()}return Q.Z}; gPL=function(Q){var z=Q.HI.gx()||{};z.fs=Q.HI.Sd();z.volume=Q.HI.getVolume();z.muted=Q.HI.isMuted()?1:0;z.mos=z.muted;z.clipid=Q.HI.eC();var H;z.playerheight=((H=Q.HI.getPlayerSize())==null?void 0:H.height)||0;var f;z.playerwidth=((f=Q.HI.getPlayerSize())==null?void 0:f.width)||0;Q=Q.videoData;H={};Q.B&&(H.fmt=Q.B.itag,Q.D&&(Q.Vs?Q.D.itag!==Q.B.itag:Q.D.itag!=Q.B.itag)&&(H.afmt=Q.D.itag));H.ei=Q.eventId;H.list=Q.playlistId;H.cpn=Q.clientPlaybackNonce;Q.videoId&&(H.v=Q.videoId);Q.Uf&&(H.infringe=1); (Q.D6?0:Q.m4)&&(H.splay=1);(f=$m(Q))&&(H.live=f);Q.D4&&(H.sautoplay=1);Q.Yn&&(H.autoplay=1);Q.F8&&(H.sdetail=Q.F8);Q.partnerId&&(H.partnerid=Q.partnerId);Q.osid&&(H.osid=Q.osid);Q.PX&&(H.cc=g.UMA(Q.PX));return Object.assign(z,H)}; WaA=function(Q){var z=gUc();if(z)return oP9[z]||oP9.other;if(g.OV(Q.rh)){Q=navigator.userAgent;if(/[Ww]ireless[)]/.test(Q))return 3;if(/[Ww]ired[)]/.test(Q))return 30}return 0}; Jd=function(Q){var z=new xJu,H;z.D=((H=gPL(Q).cc)==null?void 0:H.toString())||"-";z.playbackRate=Q.HI.getPlaybackRate();H=Q.HI.getVisibilityState();H!==0&&(z.visibilityState=H);Q.rh.gh&&(z.B=1);z.L=Q.videoData.XK;z.compositeLiveStatusToken=Q.videoData.compositeLiveStatusToken;H=Q.HI.getAudioTrack();H.Ii&&H.Ii.id&&H.Ii.id!=="und"&&(z.audioId=H.Ii.id);z.connectionType=WaA(Q);z.volume=Q.HI.getVolume();z.muted=Q.HI.isMuted();z.clipId=Q.HI.eC()||"-";z.Z=Q.videoData.X5||"-";return z}; g.ay=function(Q,z){g.h.call(this);var H=this;this.provider=Q;this.D=!1;this.L=new Map;this.oy=new g.zE;this.Po={BX3:function(){return H.qoe}, VEv:function(){return H.Z}, NxT:function(){return H.B}}; this.provider.videoData.EZ()&&!this.provider.videoData.Bl&&(this.Z=new Ad(this.provider),this.Z.B=this.provider.videoData.Bc/1E3,g.W(this,this.Z),this.qoe=new g.jr(this.provider,z),g.W(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.tN=this.provider.videoData.clientPlaybackNonce)&&this.L.set(this.tN,this.Z));if(Q.rh.playerCanaryState==="canary"||Q.rh.playerCanaryState==="holdback")this.B=new pD(this.provider),g.W(this,this.B)}; Jdu=function(Q){return!!Q.Z&&!!Q.qoe}; Ug=function(Q){Q.B&&GcJ(Q.B);Q.qoe&&e3c(Q.qoe)}; NTn=function(Q){if(Q.qoe){Q=Q.qoe;for(var z=Q.provider.videoData,H=Q.provider.rh,f=g.n(H.kX),b=f.next();!b.done;b=f.next())xP(Q,b.value);if(Q.provider.V("html5_enable_qoe_cat_list"))for(f=g.n(z.v0),b=f.next();!b.done;b=f.next())xP(Q,b.value);else z.kX&&xP(Q,Q.provider.videoData.kX);z.AZ()&&(f=z.Z,MY(z)&&xP(Q,"manifestless"),f&&gS(f)&&xP(Q,"live-segment-"+gS(f).toFixed(1)));L9(z)?xP(Q,"sabr"):Q.yT(EC(z));if(W7(z)||z.OZ())z.OZ()&&xP(Q,"ssa"),xP(Q,"lifa");z.gatewayExperimentGroup&&(f=z.gatewayExperimentGroup, f==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?f="spkadtrt":f==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(f="spkadctrl"),xP(Q,f));H.Ze!=="yt"&&(Q.Z.len=[z.lengthSeconds.toFixed(2)]);z.cotn&&!K9(z)&&Q.T8(!0);H.vz()&&(z=cJ_())&&Q.On("cblt",{m:z});if(H.V("html5_log_screen_diagonal")){H=Q.On;var L;z=((L=window.H5vccScreen)==null?0:L.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;H.call(Q,"cbltdiag",{v:z})}}}; I4Z=function(Q){if(Q.provider.HI.t$()){if(Q.D)return;Q.D=!0}Q.Z&&EPJ(Q.Z);if(Q.B){Q=Q.B;var z=g.nD(Q.provider);Q.Z<0&&(Q.Z=z,Q.delay.start());Q.B=z;Q.D=z}}; AdY=function(Q,z){Q.Z&&(Q=Q.Z,z===58?Q.Z.update():Q.L&&(sg(Q),BL(Q).send(),Q.D=NaN))}; Yg9=function(Q,z){if(g.Ex(z,1024)||g.Ex(z,512)||g.Ex(z,4)){if(Q.B){var H=Q.B;H.B>=0||(H.Z=-1,H.delay.stop())}Q.qoe&&(H=Q.qoe,H.N||(H.B=-1))}if(Q.provider.videoData.enableServerStitchedDai&&Q.tN){var f;(f=Q.L.get(Q.tN))==null||jyu(f,z)}else Q.Z&&jyu(Q.Z,z);if(Q.qoe){f=Q.qoe;H=z.state;var b=g.nD(f.provider),L=f.getPlayerState(H);lDL(f,b,L,H.seekSource||void 0);L=H.WS;g.w(H,128)&&L&&(L.Fd=L.Fd||"",mlk(f,b,L.errorCode,L.zE,L.Fd));(g.w(H,2)||g.w(H,128))&&f.reportStats(b);H.isPlaying()&&!f.N&&(f.B>=0&& (f.Z.user_intent=[f.B.toString()]),f.N=!0);V8Z(f)}Q.B&&(f=Q.B,$l9(f),f.playerState=z.state,f.B>=0&&g.Ex(z,16)&&f.seekCount++,z.state.isError()&&f.send());Q.provider.HI.t$()&&(Q.oy=z.state)}; rdc=function(Q){Q.B&&Q.B.send();if(Q.qoe){var z=Q.qoe;if(z.L){z.oy==="PL"&&(z.oy="N");var H=g.nD(z.provider);g.$P(z,H,"vps",[z.oy]);z.N||(z.B>=0&&(z.Z.user_intent=[z.B.toString()]),z.N=!0);z.provider.rh.vz()&&z.On("finalized",{});z.yl=!0;z.reportStats(H)}}if(Q.provider.videoData.enableServerStitchedDai)for(z=g.n(Q.L.values()),H=z.next();!H.done;H=z.next())$J8(H.value);else Q.Z&&$J8(Q.Z);Q.dispose()}; syc=function(Q,z){Q.Z&&FRk(Q.Z,z)}; BTn=function(Q){if(!Q.Z)return null;var z=YP(Q.Z,"atr");return function(H){Q.Z&&FRk(Q.Z,H,z)}}; PH9=function(Q,z,H,f){H.adFormat=H.UY;var b=z.HI;z=new Ad(new PL(H,z.rh,{getDuration:function(){return H.lengthSeconds}, getCurrentTime:function(){return b.getCurrentTime()}, yN:function(){return b.yN()}, Tt:function(){return b.Tt()}, t$:function(){return b.t$()}, u4:function(){return b.u4()}, getPlayerSize:function(){return b.getPlayerSize()}, getAudioTrack:function(){return H.getAudioTrack()}, getPlaybackRate:function(){return b.getPlaybackRate()}, RR:function(){return b.RR()}, getVisibilityState:function(){return b.getVisibilityState()}, vB:function(){return b.vB()}, gx:function(){return b.gx()}, getVolume:function(){return b.getVolume()}, isMuted:function(){return b.isMuted()}, Sd:function(){return b.Sd()}, eC:function(){return b.eC()}, getProximaLatencyPreference:function(){return b.getProximaLatencyPreference()}, zz:function(){b.zz()}, On:function(L,u){b.On(L,u)}, yn:function(){return b.yn()}})); z.B=f;g.W(Q,z);return z}; a49=function(){this.yq=0;this.L=this.jJ=this.Zi=this.B=NaN;this.Z={};this.bandwidthEstimate=NaN}; cL=function(Q,z,H){g.h.call(this);var f=this;this.rh=Q;this.HI=z;this.B=H;this.Z=new Map;this.tN="";this.Po={Im:function(){return Array.from(f.Z.keys())}}}; UJk=function(Q,z){Q.Z.has(z)&&(rdc(Q.Z.get(z)),Q.Z.delete(z))}; cdL=function(){this.Z=g.fi;this.array=[]}; hgZ=function(Q,z,H){var f=[];for(z=iDZ(Q,z);zH)break}return f}; WRL=function(Q,z){var H=[];Q=g.n(Q.array);for(var f=Q.next();!f.done&&!(f=f.value,f.contains(z)&&H.push(f),f.start>z);f=Q.next());return H}; DJA=function(Q){return Q.array.slice(iDZ(Q,0x7ffffffffffff),Q.array.length)}; iDZ=function(Q,z){Q=Sj(Q.array,function(H){return z-H.start||1}); return Q<0?-(Q+1):Q}; KRJ=function(Q,z){var H=NaN;Q=g.n(Q.array);for(var f=Q.next();!f.done;f=Q.next())if(f=f.value,f.contains(z)&&(isNaN(H)||f.endz&&(isNaN(H)||f.startQ.mediaTime+Q.S&&z1)Q.D=!0;if((b===void 0?0:b)||isNaN(Q.B))Q.B=z;if(Q.Z)z!==Q.mediaTime&&(Q.Z=!1);else if(z>0&&Q.mediaTime===z){b=1500;if(Q.rh.V("html5_buffer_underrun_transition_fix")){b=g.qf(Q.rh.experiments,"html5_min_playback_advance_for_steady_state_secs");var L=g.qf(Q.rh.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");b=b>0&&L>0&&Math.abs(z-Q.B)(f||!Q.D?b:400)}Q.mediaTime=z;Q.L=H;return!1}; TTc=function(Q,z){this.videoData=Q;this.Z=z}; eg6=function(Q,z,H){return z.g_(H).then(function(){return B2(new TTc(z,z.L))},function(f){f instanceof Error&&g.PT(f); var b=Ij('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),L=YK('audio/mp4; codecs="mp4a.40.2"'),u=b||L,X=z.isLivePlayback&&!g.lD(Q.S,!0);f="fmt.noneavailable";X?f="html5.unsupportedlive":u||(f="html5.missingapi");u=X||!u?2:1;b={buildRej:"1",a:z.gp(),d:!!z.p5,drm:z.w7(),f18:z.C2.indexOf("itag=18")>=0,c18:b};z.Z&&(z.w7()?(b.f142=!!z.Z.Z["142"],b.f149=!!z.Z.Z["149"],b.f279=!!z.Z.Z["279"]):(b.f133=!!z.Z.Z["133"],b.f140=!!z.Z.Z["140"],b.f242=!!z.Z.Z["242"]),b.cAAC=L,b.cAVC=YK('video/mp4; codecs="avc1.42001E"'), b.cVP9=YK('video/webm; codecs="vp9"'));z.S&&(b.drmsys=z.S.keySystem,L=0,z.S.Z&&(L=Object.keys(z.S.Z).length),b.drmst=L);return new Oh(f,b,u)})}; WL=function(Q){this.data=window.Float32Array?new Float32Array(Q):Array(Q);this.B=this.Z=Q-1}; l49=function(Q){return Q.data[Q.Z]||0}; RgY=function(Q){this.S=Q;this.L=this.B=0;this.D=new WL(50)}; KD=function(Q,z,H){g.Xp.call(this);this.videoData=Q;this.experiments=z;this.S=H;this.B=[];this.f_=0;this.L=!0;this.D=!1;this.j=0;H=new Qiv;Q.latencyClass==="ULTRALOW"&&(H.D=!1);Q.WI?H.B=3:g.JM(Q)&&(H.B=2);Q.latencyClass==="NORMAL"&&(H.j=!0);var f=g.qf(z,"html5_liveness_drift_proxima_override");if(EC(Q)!==0&&f){H.Z=f;var b;((b=Q.Z)==null?0:U6J(b))&&H.Z--}L9(Q)&&z.Nc("html5_sabr_parse_live_metadata_playback_boundaries")&&(H.U=!0);if(g.K1("trident/")||g.K1("edge/"))b=g.qf(z,"html5_platform_minimum_readahead_seconds")|| 3,H.L=Math.max(H.L,b);g.qf(z,"html5_minimum_readahead_seconds")&&(H.L=g.qf(z,"html5_minimum_readahead_seconds"));g.qf(z,"html5_maximum_readahead_seconds")&&(H.N=g.qf(z,"html5_maximum_readahead_seconds"));z.Nc("html5_force_adaptive_readahead")&&(H.D=!0);if(b=g.qf(z,"html5_liveness_drift_chunk_override"))H.Z=b;C9(Q)&&(H.Z=(H.Z+1)/5,Q.latencyClass==="LOW"&&(H.Z*=2));if(Q.latencyClass==="ULTRALOW"||Q.latencyClass==="LOW")H.S=g.qf(z,"html5_low_latency_adaptive_liveness_adjustment_segments")||1,H.Y=g.qf(z, "html5_low_latency_max_allowable_liveness_drift_chunks")||10;this.policy=H;this.Y=this.policy.B!==1;this.Z=D4(this,zCA(this,isNaN(Q.liveChunkReadahead)?3:Q.liveChunkReadahead,Q))}; HLA=function(Q,z){if(z)return z=Q.videoData,z=zCA(Q,isNaN(z.liveChunkReadahead)?3:z.liveChunkReadahead,z),D4(Q,z);if(Q.B.length){if(Math.min.apply(null,Q.B)>1)return D4(Q,Q.Z-1);if(Q.policy.D)return D4(Q,Q.Z+1)}return Q.Z}; fbA=function(Q,z){if(!Q.B.length)return!1;var H=Q.Z;Q.Z=HLA(Q,z===void 0?!1:z);if(z=H!==Q.Z)Q.B=[],Q.f_=0;return z}; VV=function(Q,z){return z>=Q.yf()-bLZ(Q)}; Llv=function(Q,z,H){z=VV(Q,z);H||z?z&&(Q.L=!0):Q.L=!1;Q.Y=Q.policy.B===2||Q.policy.B===3&&Q.L}; uB8=function(Q,z){z=VV(Q,z);Q.D!==z&&Q.publish("livestatusshift",z);Q.D=z}; bLZ=function(Q){var z=Q.policy.Z;Q.D||(z=Math.max(z-1,0));return z*dT(Q)}; zCA=function(Q,z,H){H.WI&&z--;C9(H)&&(z=1);if(EC(H)!==0&&(Q=g.qf(Q.experiments,"html5_live_chunk_readahead_proxima_override"))){z=Q;var f;((f=H.Z)==null?0:U6J(f))&&z++}return z}; dT=function(Q){return Q.videoData.Z?gS(Q.videoData.Z)||5:5}; D4=function(Q,z){z=Math.max(Math.max(1,Math.ceil(Q.policy.L/dT(Q))),z);return Math.min(Math.min(8,Math.floor(Q.policy.N/dT(Q))),z)}; Qiv=function(){this.L=0;this.N=Infinity;this.D=!0;this.Z=2;this.B=1;this.j=!1;this.Y=10;this.U=!1;this.S=1}; kP=function(Q){g.h.call(this);this.HI=Q;this.Z=0;this.B=null;this.j=this.D=0;this.L={};this.rh=this.HI.C();this.S=new g.e_(this.SA,1E3,this);this.rT=new mR({delayMs:g.qf(this.rh.experiments,"html5_seek_timeout_delay_ms")});this.yl=new mR({delayMs:g.qf(this.rh.experiments,"html5_long_rebuffer_threshold_ms")});this.gh=wT(this,"html5_seek_set_cmt");this.En=wT(this,"html5_seek_jiggle_cmt");this.uT=wT(this,"html5_seek_new_elem");this.EY=wT(this,"html5_unreported_seek_reseek");this.L3=wT(this,"html5_long_rebuffer_jiggle_cmt"); this.f3=wT(this,"html5_long_rebuffer_ssap_clip_not_match");this.De=new mR({delayMs:2E4});this.iT=wT(this,"html5_seek_new_elem_shorts");this.WI=wT(this,"html5_seek_new_media_source_shorts_reuse");this.C3=wT(this,"html5_seek_new_media_element_shorts_reuse");this.mq=wT(this,"html5_reseek_after_time_jump");this.N=wT(this,"html5_gapless_handoff_close_end_long_rebuffer");this.Ze=wT(this,"html5_gapless_slow_seek");this.U=wT(this,"html5_gapless_slice_append_stuck");this.wh=wT(this,"html5_gapless_slow_start"); this.Y=wT(this,"html5_ads_preroll_lock_timeout");this.Xa=wT(this,"html5_ssap_ad_longrebuffer_new_element");this.ZJ=new mR({delayMs:g.qf(this.rh.experiments,"html5_skip_slow_ad_delay_ms")||5E3,dU:!this.rh.V("html5_report_slow_ads_as_error")});this.yE=new mR({delayMs:g.qf(this.rh.experiments,"html5_skip_slow_ad_delay_ms")||5E3,dU:!this.rh.V("html5_skip_slow_buffering_ad")});this.KH=new mR({delayMs:g.qf(this.rh.experiments,"html5_slow_start_timeout_delay_ms")});this.jm=wT(this,"html5_slow_start_no_media_source"); g.W(this,this.S)}; wT=function(Q,z){var H=g.qf(Q.rh.experiments,z+"_delay_ms");Q=Q.rh.V(z+"_cfl");return new mR({delayMs:H,dU:Q})}; Skn=function(Q,z){Q.Z=z}; Tb=function(Q,z,H,f,b,L,u,X){z.test(H)?(Q.h7(b,z,u),z.dU||L()):(z.w2&&z.B&&!z.D?(H=(0,g.NV)(),f?z.Z||(z.Z=H):z.Z=0,L=!f&&H-z.B>z.w2,H=z.Z&&H-z.Z>z.Wy||L?z.D=!0:!1):H=!1,H&&(X=Object.assign({},Q.TL(z),X),X.wn=u,X.we=b,X.wsuc=f,Q.HI.On("workaroundReport",X),f&&(z.reset(),Q.L[b]=!1)))}; mR=function(Q){var z=Q===void 0?{}:Q;Q=z.delayMs===void 0?0:z.delayMs;var H=z.Wy===void 0?1E3:z.Wy;var f=z.w2===void 0?3E4:z.w2;z=z.dU===void 0?!1:z.dU;this.Z=this.B=this.L=this.startTimestamp=0;this.D=!1;this.S=Math.ceil(Q/1E3);this.Wy=H;this.w2=f;this.dU=z}; qkc=function(Q){g.h.call(this);var z=this;this.HI=Q;this.Y=this.Z=this.xv=this.mediaElement=this.playbackData=null;this.D=0;this.S=this.Ze=this.L=null;this.wh=!1;this.ZJ=0;this.U=!1;this.timestampOffset=0;this.N=!0;this.En=0;this.uT=this.KH=!1;this.j=0;this.WI=!1;this.L3=0;this.rh=this.HI.C();this.videoData=this.HI.getVideoData();this.policy=new X9Y;this.De=new kP(this.HI);this.rT=this.mq=this.jm=this.B=NaN;this.f3=new g.e_(function(){v_6(z,!1)},2E3); this.yE=new g.e_(function(){er(z)}); this.iT=new g.e_(function(){z.wh=!0;yzu(z,{})}); this.gh=NaN;this.yl=new g.e_(function(){var H=z.rh.D6;H.Z+=1E4/36E5;H.Z-H.L>1/6&&(Tnk(H),H.L=H.Z);z.yl.start()},1E4); g.W(this,this.De);g.W(this,this.f3);g.W(this,this.iT);g.W(this,this.yE);g.W(this,this.yl)}; tWA=function(Q,z){Q.playbackData=z;Q.videoData.isLivePlayback&&(Q.Y=new RgY(function(){a:{if(Q.playbackData&&Q.playbackData.Z.Z){if(MY(Q.videoData)&&Q.xv){var H=Q.xv.EM.gQ()||0;break a}if(Q.videoData.Z){H=Q.videoData.Z.De;break a}}H=0}return H}),Q.Z=new KD(Q.videoData,Q.rh.experiments,function(){return Q.jA(!0)})); lH(Q.HI)?(z=MWA(Q),z.Ms?(Q.V("html5_sabr_enable_utc_seek_requests")&&L9(Q.videoData)&&Q.iU(z.Ms,z.startSeconds),Q.D=z.startSeconds):z.startSeconds>0&&Q.seekTo(z.startSeconds,{lr:"seektimeline_startPlayback",seekSource:15}),Q.N=!1):Ct9(Q)||(Q.D=Q.D||(g.mI(Q.videoData)?0:Q.videoData.startSeconds)||0)}; p9L=function(Q,z){(Q.xv=z)?E_Y(Q,!0):Ry(Q)}; n_9=function(Q,z){g.lp(Q.De.S);Q.V("html5_exponential_memory_for_sticky")&&(z.state.isPlaying()?g.lp(Q.yl):Q.yl.stop());if(Q.mediaElement)if(z.oldState.state===8&&Xn(z.state)&&z.state.isBuffering()){z=Q.mediaElement.getCurrentTime();var H=Q.mediaElement.Ux();var f=Q.V("manifestless_post_live_ufph")||Q.V("manifestless_post_live")?uZ(H,Math.max(z-3.5,0)):uZ(H,z-3.5);f>=0&&z>H.end(f)-1.1&&f+10?(QO(Q.HI,Q.getCurrentTime()+Q.videoData.limitedPlaybackDurationInSeconds),Q.uT=!0):Q.videoData.isLivePlayback&&Q.videoData.endSeconds>0&&(QO(Q.HI,Q.getCurrentTime()+Q.videoData.endSeconds),Q.uT=!0))}; ZLc=function(Q,z){var H=Q.getCurrentTime(),f=Q.isAtLiveHead(H);if(Q.Y&&f){var b=Q.Y;if(b.Z&&!(H>=b.B&&H50&&b.B.shift())),b=Q.Z,Llv(b,H,z===void 0?!0:z),uB8(b,H),z&&v_6(Q,!0));f!==Q.KH&&(z=Q.getCurrentTime()-Q.rT<=500,H=Q.ZJ>=1E3,z||H||(z=Q.HI.JZ(),z.qoe&&(z=z.qoe,H=g.nD(z.provider), g.$P(z,H,"lh",[f?"1":"0"])),Q.KH=f,Q.ZJ++,Q.rT=Q.getCurrentTime()))}; v_6=function(Q,z){if(Q.Z){var H=Q.Z;var f=Q.getCurrentTime();!VV(H,f)&&H.Vd()?(H.policy.j&&(H.policy.Z=Math.max(H.policy.Z+H.policy.S,H.policy.Y)),H=Infinity):H=f0&&eP(Q.mediaElement)>0&&(Q.B=zq(Q,Q.B,!1)),!Q.mediaElement||!xpA(Q))Q.yE.start(750);else if(!isNaN(Q.B)&&isFinite(Q.B)){var z=Q.mq-(Q.B-Q.timestampOffset);if(!(z===0||Q.V("html5_enable_new_seek_timeline_logic")&&Math.abs(z)<.005))if(z=Q.mediaElement.getCurrentTime()-Q.B,Math.abs(z)<=Q.En||Q.V("html5_enable_new_seek_timeline_logic")&&Math.abs(z)<.005)Q.L&&Q.L.resolve(Q.mediaElement.getCurrentTime()); else{if(Q.videoData.aG)Q.videoData.aG=!1;else if(!qY(Q.videoData)&&Q.B>=Q.jA()-.1){Q.B=Q.jA();Q.L.resolve(Q.jA());Q.HI.x7();return}try{var H=Q.B-Q.timestampOffset;Q.mediaElement.seekTo(H);Q.De.Z=H;Q.mq=H;Q.D=Q.B;Q.V("html5_enable_new_seek_timeline_logic")&&(Q.U=!1)}catch(f){}}}}; xpA=function(Q){if(!Q.mediaElement||Q.mediaElement.OG()===0||Q.mediaElement.hasError())return!1;var z=Q.mediaElement.getCurrentTime()>0;if(!(Q.videoData.L&&Q.videoData.L.Z||Q.videoData.isLivePlayback)&&Q.videoData.w7())return z;if(Q.B>=0){var H=Q.mediaElement.MS();if(H.length||!z)return SP(H,Q.B-Q.timestampOffset)}return z}; FlL=function(Q,z){Q.S&&(Q.S.resolve(z),Q.HI.qV(),Q.rh.vz()&&(z=Q.TL(),z["native"]=""+ +Q.U,z.otgt=""+(Q.B+Q.timestampOffset),Q.HI.On("seekEnd",z)));Ry(Q)}; Ry=function(Q){Q.B=NaN;Q.mq=NaN;Q.L=null;Q.Ze=null;Q.S=null;Q.wh=!1;Q.U=!1;Q.En=0;Q.f3.stop();Q.iT.stop()}; JzJ=function(Q,z,H){var f=Q.mediaElement,b=z.type;switch(b){case "seeking":var L=f.getCurrentTime()+Q.timestampOffset;if(!Q.L||Q.U&&L!==Q.B){var u=!!Q.L;Q.L=new k6;Q.V("html5_enable_new_seek_timeline_logic")&&Q.L.then(function(v){FlL(Q,v)},function(){Ry(Q)}); if(Q.videoData.isAd()){var X;ud_({adCpn:Q.videoData.clientPlaybackNonce,contentCpn:(X=Q.videoData.W$)!=null?X:""},z.Z)}Q.mq=L;Skn(Q.De,f.getCurrentTime());Q.seekTo(L,{seekSource:104,lr:"seektimeline_mediaElementEvent"});H&&OLn(H,L*1E3,!!u);Q.U=!0}break;case "seeked":Q.L&&Q.L.resolve(Q.mediaElement.getCurrentTime());break;case "loadedmetadata":lH(Q.HI)||o_a(Q);er(Q);break;case "progress":er(Q);break;case "pause":Q.j=Q.getCurrentTime()}Q.j&&((b==="play"||b==="playing"||b==="timeupdate"||b==="progress")&& Q.getCurrentTime()-Q.j>10&&(Q.V("html5_enable_new_media_element_puase_jump")?(Q.HI.h7(new Oh("qoe.restart",{reason:"pauseJump"})),Q.HI.lL(),Q.seekTo(Q.j,{lr:"pauseJumpNewElement"})):Q.seekTo(Q.j,{lr:"pauseJump"})),b!=="pause"&&b!=="play"&&b!=="playing"&&b!=="progress"&&(Q.j=0))}; NI9=function(Q){return(NY(Q.videoData)||!!Q.videoData.liveUtcStartSeconds)&&(!!Q.videoData.liveUtcStartSeconds||Ct9(Q))&&!!Q.videoData.Z}; Ct9=function(Q){return!!Q.videoData.startSeconds&&isFinite(Q.videoData.startSeconds)&&Q.videoData.startSeconds>1E9}; MWA=function(Q){var z=0,H=NaN,f="";if(!Q.N)return{startSeconds:z,Ms:H,source:f};Q.videoData.f3?z=Q.videoData.jm:qY(Q.videoData)&&(z=Infinity);if(g.JM(Q.videoData))return{startSeconds:z,Ms:H,source:f};Q.videoData.startSeconds?(f="ss",z=Q.videoData.startSeconds):Q.videoData.Tx&&(f="stss",z=Q.videoData.Tx);Q.videoData.liveUtcStartSeconds&&(H=Q.videoData.liveUtcStartSeconds);if(isFinite(z)&&(z>Q.jA()||zQ.jA()||H0?(f.onesie="0",Q.handleError(new Oh("html5.missingapi",f)),!1):!0}; Up_=function(Q){var z=UZ();cG(z,Q);return g.L4(z,gJ6())}; BI9=function(Q,z){var H,f,b,L,u,X,v,y,q,M,C,t,E,G,x,J,I,r,U,D,T,k,bL,SY,Q9,V;return g.B(function(R){if(R.Z==1)return z.fetchType="onesie",H=J7k(z,Q.getPlayerSize(),Q.getVisibilityState()),f=new Vk(Q,H),g.Y(R,f.fetch(),2);b=R.B;L={player_response:b};z.loading=!1;u=Q.sV.cn;if(f.M8){X=g.n(f.M8.entries());for(v=X.next();!v.done;v=X.next())y=v.value,q=g.n(y),M=q.next().value,C=q.next().value,t=M,E=C,u.Z.set(t,E,180),t===z.videoId&&(G=E.Ne(),z.B_=G);u.Gi=f}x=g.n(f.VQ.entries());for(J=x.next();!J.done;J= x.next())I=J.value,r=g.n(I),U=r.next().value,D=r.next().value,T=U,k=D,u.B.set(T,k,180);g.dr(z,L,!0);if(z.loading||Kv(z))return R.return(Promise.resolve());u.Z.removeAll();u.B.removeAll();z.B_=[];bL={};SY="onesie.response";Q9=0;z.errorCode?(SY="auth",bL.ec=z.errorCode,bL.ed=z.errorDetail,bL.es=z.Jj||"",Q9=2):(bL.successButUnplayable="1",bL.disposed=""+ +z.Sm(),bL.afmts=""+ +/adaptiveFormats/.test(b),bL.cpn=z.clientPlaybackNonce);V=new Oh(SY,bL,Q9);return R.return(Promise.reject(V))})}; rzA=function(Q,z){var H,f,b,L,u,X,v,y,q,M,C;return g.B(function(t){switch(t.Z){case 1:H=z.isAd(),f=!H,b=H?1:3,L=0;case 2:if(!(L0)){t.bT(5);break}return g.Y(t,oR(5E3),6);case 6:u=new g.wD("Retrying OnePlatform request",{attempt:L}),g.PT(u);case 5:return g.$v(t,7),g.Y(t,czL(Q,z),9);case 9:return t.return();case 7:X=g.xv(t);v=JI(X);y=v.errorCode;q=Q.C();M=q.V("html5_use_network_error_code_enums")?401:"401";f&&y==="manifest.net.badstatus"&&v.details.rc===M&&(f=!1,L===b-1&&(b+= 1));if(L===b-1)return C=iLL(H,v.details),C.details.backend="op",C.details.originec=y,t.return(Promise.reject(C));if(y==="auth"||y==="manifest.net.retryexhausted")return t.return(Promise.reject(v));Q.handleError(v);if(oj(v.severity)){t.bT(4);break}case 3:L++;t.bT(2);break;case 4:return t.return(Promise.reject(iLL(H,{backend:"op"})))}})}; czL=function(Q,z){function H(SY){SY.readyState===2&&Q.Pc("ps_c")} var f,b,L,u,X,v,y,q,M,C,t,E,G,x,J,I,r,U,D,T,k,bL;return g.B(function(SY){switch(SY.Z){case 1:z.fetchType="gp";f=Q.C();b=g.zZ(f,g.hM(z));if(!b.Z){L=b.getValue();SY.bT(2);break}return g.Y(SY,b.Z,3);case 3:L=SY.B;case 2:return u=L,X=Up_(u),v=J7k(z,Q.getPlayerSize(),Q.getVisibilityState()),y=g.Qv(hCL),q=g.hM(z),M=(0,g.NV)(),C=!1,t="empty",E=0,Q.Pc("psns"),G={Vx:H},g.Y(SY,g.kx(X,v,y,void 0,G),4);case 4:x=SY.B;Q.Pc("psnr");if(z.Sm())return SY.return();x?"error"in x&&x.error?(C=!0,t="esf:"+x.error.message, E=x.error.code):x.errorMetadata&&(C=!0,t="its",E=x.errorMetadata.status):C=!0;if(C)return J=0,I=((0,g.NV)()-M).toFixed(),r={},r=f.V("html5_use_network_error_code_enums")?{backend:"op",rc:E,rt:I,reason:t,has_kpt:z.yE?"1":"0",has_mdx_env:z.mdxEnvironment?"1":"0",has_omit_key_flag:g.T5("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:f.pageId?"1":"0",has_token:q?"1":"0",has_vvt:z.wh?"1":"0",is_mdx:z.isMdxPlayback?"1":"0",mdx_ctrl:z.Ts||"",token_eq:q===g.hM(z)?"1":"0"}:{backend:"op", rc:""+E,rt:I,reason:t,has_kpt:z.yE?"1":"0",has_mdx_env:z.mdxEnvironment?"1":"0",has_omit_key_flag:g.T5("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:f.pageId?"1":"0",has_token:q?"1":"0",has_vvt:z.wh?"1":"0",is_mdx:z.isMdxPlayback?"1":"0",mdx_ctrl:z.Ts||"",token_eq:q===g.hM(z)?"1":"0"},U="manifest.net.connect",E===429?(U="auth",J=2):E>200&&(U="manifest.net.badstatus",E===400&&(J=2)),SY.return(Promise.reject(new Oh(U,r,J)));z.loading=!1;g.dr(z,{raw_player_response:x},!0); D=x;g.AE(z.C())&&D&&D.trackingParams&&oA(D.trackingParams);if(z.errorCode)return T={ec:z.errorCode,ed:z.errorDetail,es:z.Jj||""},SY.return(Promise.reject(new Oh("auth",T,2)));if(!z.loading&&!Kv(z))return k=z.isAd()?"auth":"manifest.net.retryexhausted",bL=z.isAd()?2:1,SY.return(Promise.reject(new Oh(k,{successButUnplayable:"1",hasMedia:g.FD(z)?"1":"0"},bL)));g.Gu(SY)}})}; YkZ=function(Q,z,H){function f(E){E=JI(E);if(oj(E.severity))return Promise.reject(E);Q.handleError(E);return!1} function b(){return!0} var L,u,X,v,y,q,M,C,t;return g.B(function(E){switch(E.Z){case 1:var G=Q.C(),x=Q.getPlayerSize(),J=Q.getVisibilityState();Q.isFullscreen();var I=window.location.search;if(z.partnerId===38&&G.playerStyle==="books")I=z.videoId.indexOf(":"),I=g.Ve("//play.google.com/books/volumes/"+z.videoId.slice(0,I)+"/content/media",{aid:z.videoId.slice(I+1),sig:z.EK});else if(z.partnerId===30&&G.playerStyle==="docs")I=g.Ve("https://docs.google.com/get_video_info",{docid:z.videoId,authuser:z.nne,authkey:z.vH,eurl:G.C3}); else if(z.partnerId===33&&G.playerStyle==="google-live")I=g.Ve("//google-liveplayer.appspot.com/get_video_info",{key:z.videoId});else{G.Ze!=="yt"&&g.BT(Error("getVideoInfoUrl for invalid namespace: "+G.Ze));var r={html5:"1",video_id:z.videoId,cpn:z.clientPlaybackNonce,eurl:G.C3,ps:G.playerStyle,el:P7(z),hl:G.yE,list:z.playlistId,agcid:z.h6,aqi:z.adQueryId,sts:20153,lact:NA()};Object.assign(r,G.Z);G.forcedExperiments&&(r.forced_experiments=G.forcedExperiments);z.wh?(r.vvt=z.wh,z.mdxEnvironment&&(r.mdx_environment= z.mdxEnvironment)):g.hM(z)&&(r.access_token=g.hM(z));z.adFormat&&(r.adformat=z.adFormat);z.slotPosition>=0&&(r.slot_pos=z.slotPosition);z.breakType&&(r.break_type=z.breakType);z.hk!==null&&(r.ad_id=z.hk);z.I5!==null&&(r.ad_sys=z.I5);z.yA!==null&&(r.encoded_ad_playback_context=z.yA);G.captionsLanguagePreference&&(r.cc_lang_pref=G.captionsLanguagePreference);G.ZJ&&G.ZJ!==2&&(r.cc_load_policy=G.ZJ);var U=g.DQ(g.Ww(),65);g.mD(G)&&U!=null&&!U&&(r.device_captions_on="1");G.mute&&(r.mute=G.mute);z.annotationsLoadPolicy&& G.annotationsLoadPolicy!==2&&(r.iv_load_policy=z.annotationsLoadPolicy);z.qx&&(r.endscreen_ad_tracking=z.qx);(U=G.f3.get(z.videoId))&&U.g2&&(r.ic_track=U.g2);z.yl&&(r.itct=z.yl);iE(z)&&(r.autoplay="1");z.mutedAutoplay&&(r.mutedautoplay=z.mutedAutoplay);z.isAutonav&&(r.autonav="1");z.Fu&&(r.noiba="1");z.isMdxPlayback&&(r.mdx="1",r.ytr=z.Qw);z.mdxControlMode&&(r.mdx_control_mode=z.mdxControlMode);z.mH&&(r.ytrcc=z.mH);z.OE&&(r.utpsa="1");z.isFling&&(r.is_fling="1");z.isInlinePlaybackNoAd&&(r.mute="1"); z.vnd&&(r.vnd=z.vnd);z.forceAdsUrl&&(U=z.forceAdsUrl.split("|").length===3,r.force_ad_params=U?z.forceAdsUrl:"||"+z.forceAdsUrl);z.d4&&(r.preload=z.d4);x.width&&(r.width=x.width);x.height&&(r.height=x.height);(z.D6?0:z.m4)&&(r.splay="1");z.ypcPreview&&(r.ypc_preview="1");UC(z)&&(r.content_v=UC(z));z.WI&&(r.livemonitor=1);G.L3&&(r.authuser=G.L3);G.pageId&&(r.pageid=G.pageId);G.uT&&(r.ei=G.uT);G.D&&(r.iframe="1");z.contentCheckOk&&(r.cco="1");z.racyCheckOk&&(r.rco="1");G.Y&&z.P_&&(r.live_start_walltime= z.P_);G.Y&&z.gt&&(r.live_manifest_duration=z.gt);G.Y&&z.playerParams&&(r.player_params=z.playerParams);G.Y&&z.cycToken&&(r.cyc=z.cycToken);G.Y&&z.oG&&(r.tkn=z.oG);J!==0&&(r.vis=J);G.enableSafetyMode&&(r.enable_safety_mode="1");z.yE&&(r.kpt=z.yE);z.CP&&(r.kids_age_up_mode=z.CP);z.kidsAppInfo&&(r.kids_app_info=z.kidsAppInfo);z.gg&&(r.upg_content_filter_mode="1");G.widgetReferrer&&(r.widget_referrer=G.widgetReferrer.substring(0,128));z.Ze?(x=z.Ze.latitudeE7!=null&&z.Ze.longitudeE7!=null?z.Ze.latitudeE7+ ","+z.Ze.longitudeE7:",",x+=","+(z.Ze.clientPermissionState||0)+","+(z.Ze.locationRadiusMeters||"")+","+(z.Ze.locationOverrideToken||"")):x=null;x&&(r.uloc=x);z.X2&&(r.internalipoverride=z.X2);G.embedConfig&&(r.embed_config=G.embedConfig);G.MD&&(r.co_rel="1");G.ancestorOrigins.length>0&&(r.ancestor_origins=Array.from(G.ancestorOrigins).join(","));G.homeGroupInfo!==void 0&&(r.home_group_info=G.homeGroupInfo);G.livingRoomAppMode!==void 0&&(r.living_room_app_mode=G.livingRoomAppMode);G.enablePrivacyFilter&& (r.enable_privacy_filter="1");z.isLivingRoomDeeplink&&(r.is_living_room_deeplink="1");z.ZE&&z.wp&&(r.clip=z.ZE,r.clipt=z.wp);z.zX&&(r.disable_watch_next="1");z.kc&&(r.forced_by_var="1");for(var D in r)!Wln.has(D)&&r[D]&&String(r[D]).length>512&&(g.PT(Error("GVI param too long: "+D)),r[D]="");D=G.qP;g.Yh(G)&&(D=eo(D.replace(/\b(?:www|web)([.-])/,"tv$1"))||G.qP);G=g.Ve(D+"get_video_info",r);I&&(G=M_A(G,I));I=G}L=I;X=(u=z.isAd())?1:3;v=0;case 2:if(!(v0)){E.bT(5);break}return g.Y(E, oR(5E3),6);case 6:q={playerretry:v,playerretrysrc:H},u||(q.recover="embedded"),y=XZ(L,q);case 5:return g.Y(E,Dpu(z,y).then(b,f),7);case 7:if(M=E.B)return E.return();v++;E.bT(2);break;case 4:C=u?"auth":"manifest.net.retryexhausted";t=u?2:1;if(!u&&Math.random()<1E-4)try{g.PT(new g.wD("b/152131571",btoa(L)))}catch(T){}return E.return(Promise.reject(new Oh(C,{backend:"gvi"},t)))}})}; Dpu=function(Q,z){function H(x){return f(x.xhr)} function f(x){if(!Q.Sm()){x=x?x.status:-1;var J=0,I=((0,g.NV)()-q).toFixed();I=b.V("html5_use_network_error_code_enums")?{backend:"gvi",rc:x,rt:I}:{backend:"gvi",rc:""+x,rt:I};var r="manifest.net.connect";x===429?(r="auth",J=2):x>200&&(r="manifest.net.badstatus",x===400&&(J=2));return Promise.reject(new Oh(r,I,J))}} var b,L,u,X,v,y,q,M,C,t,E,G;return g.B(function(x){if(x.Z==1){Q.fetchType="gvi";b=Q.C();var J={};Q.uN&&(J.ytrext=Q.uN);(X=g.Ys(J)?void 0:J)?(L={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:X},u=XZ(z,{action_display_post:1})):(L={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},u=z);v={};b.sendVisitorIdHeader&&Q.visitorData&&(v["X-Goog-Visitor-Id"]=Q.visitorData);(y=ki(b.experiments,"debug_sherlog_username"))&&(v["X-Youtube-Sherlog-Username"]=y);Object.keys(v).length> 0&&(L.headers=v);q=(0,g.NV)();return g.Y(x,Ly(AF,u,L).then(void 0,H),2)}M=x.B;if(!M||!M.responseText)return x.return(f(M));Q.loading=!1;C=bv(M.responseText);g.dr(Q,C,!0);if(Q.errorCode)return t={ec:Q.errorCode,ed:Q.errorDetail,es:Q.Jj||""},x.return(Promise.reject(new Oh("auth",t,2)));if(!Q.loading&&!Kv(Q))return E=Q.isAd()?"auth":"manifest.net.retryexhausted",G=Q.isAd()?2:1,x.return(Promise.reject(new Oh(E,{successButUnplayable:"1"},G)));g.Gu(x)})}; iLL=function(Q,z){return new Oh(Q?"auth":"manifest.net.retryexhausted",z,Q?2:1)}; ut=function(Q,z,H){H=H===void 0?!1:H;var f,b,L,u;g.B(function(X){if(X.Z==1){f=Q.C();if(H&&(!g.kh(f)||P7(z)!=="embedded")||z.zX||P7(z)!=="adunit"&&(g.OV(f)||U8(f)||g.Ux(f)||g.Yh(f)||mf(f)==="WEB_CREATOR"))return X.return();b=g.zZ(f,g.hM(z));return b.Z?g.Y(X,b.Z,3):(L=b.getValue(),X.bT(2))}X.Z!=2&&(L=X.B);u=L;return X.return(Kl8(Q,z,u))})}; Kl8=function(Q,z,H){var f,b,L,u,X;return g.B(function(v){if(v.Z==1){g.$v(v,2);f=Up_(H);var y=z.C();g.Ww();var q={context:g.LR(z),videoId:z.videoId,racyCheckOk:z.racyCheckOk,contentCheckOk:z.contentCheckOk,autonavState:"STATE_NONE"};P7(z)==="adunit"&&(q.isAdPlayback=!0);y.embedConfig&&(q.serializedThirdPartyEmbedConfig=y.embedConfig);y.MD&&(q.showContentOwnerOnly=!0);z.uD&&(q.showShortsOnly=!0);g.DQ(0,141)&&(q.autonavState=g.DQ(0,140)?"STATE_OFF":"STATE_ON");if(g.mD(y)){var M=g.DQ(0,65);M=M!=null? !M:!1;var C=!!g.Pw("yt-player-sticky-caption");q.captionsRequested=M&&C}var t;if(y=(t=y.getWebPlayerContextConfig())==null?void 0:t.encryptedHostFlags)q.playbackContext={encryptedHostFlags:y};b=q;L=g.Qv(VWL);Q.Pc("wn_s");return g.Y(v,g.kx(f,b,L),4)}if(v.Z!=2)return u=v.B,Q.Pc("wn_r"),!u||"error"in u&&u.error||(X=u,g.AE(z.C())&&X.trackingParams&&oA(X.trackingParams),g.dr(z,{raw_watch_next_response:u},!1)),g.Fa(v,0);g.xv(v);g.Gu(v)})}; dp9=function(Q){Q.Pc("vir");Q.Pc("ps_s");Vv("vir",void 0,"video_to_ad");var z=abZ(Q);z.then(function(){Q.Pc("virc");Vv("virc",void 0,"video_to_ad");Q.Pc("ps_r");Vv("ps_r",void 0,"video_to_ad")},function(){Q.Pc("virc"); Vv("virc",void 0,"video_to_ad")}); return z}; g.v9=function(Q,z,H,f,b,L,u,X,v,y){v=v===void 0?new g.D1(Q):v;y=y===void 0?!0:y;g.Xp.call(this);var q=this;this.rh=Q;this.playerType=z;this.jy=H;this.nx=f;this.getVisibilityState=L;this.visibility=u;this.sV=X;this.videoData=v;this.Hi=y;this.logger=new g.bk("VideoPlayer");this.IB=null;this.Qx=new qJ;this.NF=null;this.bl=!0;this.vI=this.xv=null;this.Nj=[];this.sT=new LL;this.ZY=this.VX=null;this.vQ=new LL;this.sL=null;this.mU=this.aU=!1;this.Jo=NaN;this.fN=!1;this.playerState=new g.zE;this.iS=[];this.H$= new g.Bt;this.yF=new D5Y(this);this.mediaElement=null;this.sA=new g.e_(this.gNh,15E3,this);this.DI=this.Nk=!1;this.Lb=NaN;this.Rw=!1;this.Es=0;this.qZ=!1;this.HK=NaN;this.HZ=new H9(new Map([["bufferhealth",function(){return g_a(q.Sx)}], ["bandwidth",function(){return q.G9()}], ["networkactivity",function(){return q.rh.schedule.L3}], ["livelatency",function(){return q.isAtLiveHead()&&q.isPlaying()?mp9(q):NaN}], ["rawlivelatency",function(){return mp9(q)}]])); this.YA=0;this.loop=!1;this.playbackRate=1;this.yL=0;this.Sx=new qkc(this);this.kz=!1;this.pX=[];this.WM=this.VB=0;this.zU=this.Qr=!1;this.jJ=this.Zi=0;this.Kv=-1;this.xz="";this.GM=new g.e_(this.yhh,0,this);this.FH=!1;this.OY=this.J7=null;this.H5T=[this.H$,this.GM,this.sA,this.HZ];this.O3=this.ly=null;this.Ox=function(){var M=q.JZ();M.provider.rh.m4||M.provider.HI.getVisibilityState()===3||(M.provider.rh.m4=!0);M.sN();if(M.B){var C=M.B;C.S&&C.Z<0&&C.provider.HI.getVisibilityState()!==3&&GcJ(C)}M.qoe&& (M=M.qoe,M.uT&&M.B<0&&M.provider.rh.m4&&e3c(M),M.L&&Fj(M));q.xv&&SW(q);q.rh.v0&&!q.videoData.backgroundable&&q.mediaElement&&!q.oJ()&&(q.isBackground()&&q.mediaElement.v$()?(q.On("bgmobile",{suspend:1}),q.Iv(!0,!0)):q.isBackground()||XB(q)&&q.On("bgmobile",{resume:1}))}; this.Po={XS:function(M){q.XS(M)}, JvI:function(M){q.IB=M}, oQv:function(){return q.wk}, JJ:function(){return q.PE}, AB:function(){return q.vI}, SUj:function(){return q.ph}, fah:function(){return q.XX}, Ptq:function(){}, C:function(){return q.rh}, aB:function(){return q.mediaElement}, xeh:function(M){q.bS(M)}, jl3:function(){return q.nx}}; this.logger.debug(function(){return"creating, type "+z}); this.mQ=new kbn(this.rh);this.i7=new HBA(this.rh,this.nx,this);this.gP=new g.iH(function(){return q.getCurrentTime()},function(){return q.getPlaybackRate()},function(){return q.getPlayerState()},function(M,C){M!==g.bc("endcr")||g.w(q.playerState,32)||q.x7(); b(M,C,q.playerType)},function(M,C){g.mI(q.videoData)&&q.On(M,C)}); g.W(this,this.gP);g.W(this,this.Sx);w99(this,v);this.videoData.subscribe("dataupdated",this.vJj,this);this.videoData.subscribe("dataloaded",this.Pf,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.On,this);this.videoData.subscribe("ctmpstr",this.b3,this);this.nB();hP9(this.Ox);this.visibility.subscribe("visibilitystatechange",this.Ox);this.ph=new g.e_(this.Gc,g.qf(this.rh.experiments,"html5_player_att_initial_delay_ms")||4500,this);this.XX= new g.e_(this.Gc,g.qf(this.rh.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.tR=new g.ze(this.FU,g.qf(this.rh.experiments,"html5_progress_event_throttle_ms")||350,this);g.W(this,this.tR)}; w99=function(Q,z){if(Q.playerType===2||Q.rh.W0)z.Ks=!0;var H=W9_(z.UY,z.JY,Q.rh.D,Q.rh.Y);H&&(z.adFormat=H);Q.playerType===2&&(z.Yn=!0);if(Q.isFullscreen()||Q.rh.D)H=g.Pw("yt-player-autonavstate"),z.autonavState=H||(Q.rh.D?2:Q.videoData.autonavState);z.endSeconds&&z.endSeconds>z.startSeconds&&QO(Q,z.endSeconds)}; kqp=function(Q){rdc(Q.wk);g.S5(Q.wk);for(var z=Q.PE,H=g.n(z.Z.values()),f=H.next();!f.done;f=H.next())rdc(f.value);z.Z.clear();g.S5(Q.PE)}; TIa=function(Q){var z=Q.videoData;dp9(Q).then(void 0,function(H){Q.videoData!==z||z.Sm()||(H=JI(H),H.errorCode==="auth"&&Q.videoData.errorDetail?Q.VN(H.errorCode,2,unescape(Q.videoData.errorReason),xK(H.details),Q.videoData.errorDetail,Q.videoData.Jj||void 0):Q.handleError(H))})}; RCY=function(Q){if(!g.w(Q.playerState,128))if(Q.videoData.isLoaded(),Q.logger.debug("finished loading playback data"),Q.Nj=g.Qi(Q.videoData.De),g.FD(Q.videoData)){Q.jy.tick("bpd_s");yO(Q).then(function(){Q.jy.tick("bpd_c");if(!Q.Sm()){Q.aU&&(Q.zq(bC(bC(Q.playerState,512),1)),XB(Q));var f=Q.videoData;f.endSeconds&&f.endSeconds>f.startSeconds&&QO(Q,f.endSeconds);Q.sT.finished=!0;qp(Q,"dataloaded");Q.vQ.Dv()&&eCY(Q);ZB9(Q.i7,Q.ZY)}}); Q.V("html5_log_media_perf_info")&&Q.On("loudness",{v:Q.videoData.dS.toFixed(3)},!0);var z,H=(z=Q.mediaElement)==null?void 0:z.ai();if(H&&"disablePictureInPicture"in H&&Q.rh.qD)try{H.disablePictureInPicture=Q.rh.Tl&&!Q.videoData.backgroundable}catch(f){g.PT(f)}lbZ(Q)}else qp(Q,"dataloaded")}; yO=function(Q){Mp(Q);Q.ZY=null;var z=eg6(Q.rh,Q.videoData,Q.oJ());Q.VX=z;Q.VX.then(function(H){QOL(Q,H)},function(H){Q.Sm()||(H=JI(H),Q.visibility.isBackground()?(CL(Q,"vp_none_avail"),Q.VX=null,Q.sT.reset()):(Q.sT.finished=!0,Q.VN(H.errorCode,H.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",xK(H.details))))}); return z}; QOL=function(Q,z){if(!Q.Sm()&&!z.videoData.Sm()){Q.logger.debug("finished building playback data");Q.ZY=z;tWA(Q.Sx,Q.ZY);if(Q.videoData.isLivePlayback){var H=zH8(Q.sV.cn,Q.videoData.videoId)||Q.xv&&!isNaN(Q.xv.L3);H=Q.V("html5_onesie_live")&&H;lH(Q)||Q.videoData.EY>0&&!MY(Q.videoData)||H||Q.seekTo(Q.jA(),{lr:"videoplayer_playbackData",seekSource:18})}if(Q.videoData.L.Z){if(Q.V("html5_sabr_report_missing_url_as_error")&&pSZ(Q.videoData)){Q.handleError(new Oh("fmt.missing",{missabrurl:"1"},2));return}Q.xv? g.PT(Error("Duplicated Loader")):(H=g.qf(Q.rh.experiments,"html5_onesie_defer_content_loader_ms"))&&Q.vG()&&zH8(Q.sV.cn,Q.videoData.QM)?g.n1(function(){Q.Sm()||Q.xv||HAn(Q)},H):HAn(Q)}else!Q.videoData.L.Z&&K9(Q.videoData)&&Q.xZ(new M5(Q.videoData.videoId||"",4)); Q.ye();M8A(z).then(function(){var f={};Q.ST(f);Q.rh.vz()&&Q.V("html5_log_media_perf_info")&&Q.On("av1Info",f);SW(Q)})}}; eCY=function(Q){Q.Sm();Q.logger.debug("try finish readying playback");if(Q.vQ.finished)Q.logger.debug("already finished readying");else if(Q.sT.finished)if(g.w(Q.playerState,128))Q.logger.debug("cannot finish readying because of error");else if(Q.Nj.length)Q.logger.debug(function(){return"cannot finish readying because of pending preroll: "+Q.Nj}); else if(Q.gP.started||dJY(Q.gP),Q.l7())Q.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{Q.xv&&(Q.mU=p8A(Q.xv.timing));Q.vQ.finished||(Q.vQ.finished=!0);var z=Q.V("html5_onesie_live")&&Q.xv&&!isNaN(Q.xv.L3);!Q.videoData.isLivePlayback||Q.videoData.EY>0&&!MY(Q.videoData)||z||lH(Q)||(Q.logger.debug("seek to head for live"),Q.seekTo(Infinity,{lr:"videoplayer_readying",seekSource:18}),Q.isBackground()&&(Q.DI=!0));NTn(Q.JZ());Q.logger.debug("finished readying playback"); Q.publish("playbackready",Q);DA("pl_c",Q.jy.timerName)||(Q.jy.tick("pl_c"),Vv("pl_c",void 0,"video_to_ad"));DA("pbr",Q.jy.timerName)||(Q.jy.tick("pbr"),Vv("pbr",void 0,"video_to_ad"))}else Q.logger.debug("playback data not loaded")}; QO=function(Q,z){Q.NF&&fYa(Q);Q.NF=new g.HD(z*1E3,0x7ffffffffffff);Q.NF.namespace="endcr";Q.addCueRange(Q.NF)}; fYa=function(Q){Q.removeCueRange(Q.NF);Q.NF=null}; bAJ=function(Q,z,H,f,b){var L=Q.JZ(b),u=g.mI(Q.videoData)?L.getVideoData():Q.videoData;u.B=H;var X=g.tz(Q);H=new z3n(u,H,z,X?X.itag:"",f);Q.rh.experiments.Nc("html5_refactor_sabr_video_format_selection_logging")?(H.videoId=b,Q.O3=H):L.vE(H);b=Q.i7;b.B=0;b.Z=0;Q.publish("internalvideoformatchange",u,z==="m")}; g.tz=function(Q){var z=Ek(Q);return fu(z)||!Q.ZY?null:g.mB(Q.ZY.Z.videoInfos,function(H){return z.D(H)})}; Ek=function(Q){if(Q.ZY){var z=Q.i7;var H=Q.ZY;Q=Q.Nx();var f=LaL(z);if(fu(f)){if(f=fDA(z,H).compose(vY9(z,H)).compose(qza(z,H)).compose(nYJ(z,H.videoData)).compose(gY_(z,H.videoData,H)).compose(Eg(z,H)).compose(Szp(z,H)),fu(Q)||z.V("html5_apply_pbr_cap_for_drm"))f=f.compose(XW9(z,H))}else z.V("html5_perf_cap_override_sticky")&&(f=f.compose(Eg(z,H))),z.V("html5_ustreamer_cap_override_sticky")&&(f=f.compose(XW9(z,H)));f=f.compose(Szp(z,H));z=H.videoData.sR.compose(f).compose(H.videoData.M9).compose(Q)}else z= WV;return z}; Zva=function(Q){var z=Q.i7;Q=Q.videoData;var H=nYJ(z,Q);z.V("html5_disable_client_autonav_cap_for_onesie")||H.compose(gY_(z,Q));return H}; SW=function(Q){if(Q.videoData.L&&Q.videoData.L.Z){var z=Ek(Q);Q.xv&&tnc(Q.xv,z)}}; L78=function(Q){var z;return!!(Q.V("html5_native_audio_track_switching")&&g.Ga&&((z=Q.videoData.B)==null?0:eM(z)))}; ueJ=function(Q){if(!L78(Q))return!1;var z;Q=(z=Q.mediaElement)==null?void 0:z.audioTracks();return!!(Q&&Q.length>1)}; XEu=function(Q){var z=SuL(Q);if(z)return Q.videoData.getAvailableAudioTracks().find(function(H){return H.Ii.getName()===z})}; SuL=function(Q){var z;if(Q=(z=Q.mediaElement)==null?void 0:z.audioTracks())for(z=0;z0&&(z.r7=f.Qg)); z.PN=f.ov;z.zw=JQ(H,{},f.L||void 0,bE(f));z.WI=f9(f)&&g.Ux(H);L9(f)&&(z.QN=!0,H.V("html5_sabr_report_partial_segment_estimated_duration")&&(z.pW=!0),z.Z=!0,z.AK=H.V("html5_sabr_enable_utc_seek_requests"),z.Sl=H.V("html5_sabr_enable_live_clock_offset"),z.nV=H.V("html5_disable_client_resume_policy_for_sabr"),z.gg=H.V("html5_trigger_loader_when_idle_network"),z.o_=H.V("html5_sabr_parse_live_metadata_playback_boundaries"),z.eM=H.V("html5_enable_platform_backpressure_with_sabr"),z.yd=H.V("html5_consume_onesie_next_request_policy_for_sabr"), z.oQ=H.V("html5_sabr_report_next_ad_break_time"),z.z0=H.V("html5_log_high_res_buffer_timeline")&&H.vz(),z.bu=H.V("html5_remove_stuck_slices_beyond_max_buffer_limits"),z.ER=H.V("html5_gapless_sabr_btl_last_slice")&&H7(f),z.aK=H.V("html5_reset_last_appended_slice_on_seek")&&H7(f),MY(f)?(z.qx=!0,z.v0=H.V("html5_disable_variability_tracker_for_live"),z.uT=H.V("html5_sabr_use_accurate_slice_info_params"),H.V("html5_simplified_backup_timeout_sabr_live")&&(z.xr=!0,z.C2=z.Ev)):z.ys=H.V("html5_probe_request_on_sabr_request_progress"), z.wp=H.V("html5_serve_start_seconds_seek_for_post_live_sabr"),z.cq=H.V("html5_flush_index_on_updated_timestamp_offset"),z.jm=H.V("html5_enable_sabr_request_pipelining")&&!g.mI(f),z.Uf=H.V("html5_ignore_partial_segment_from_live_readahead"),z.p$=H.V("html5_use_non_active_broadcast_for_post_live"),z.yl=H.V("html5_use_centralized_player_time"),z.J5=H.V("html5_consume_onesie_sabr_seek"),z.wh=H.V("html5_enable_sabr_seek_loader_refactor"),z.JY=H.V("html5_update_segment_start_time_from_media_header"),f.enableServerStitchedDai&& (z.S=!0,z.F8=H.V("html5_reset_server_stitch_state_for_non_sabr_seek"),z.BP=H.V("html5_remove_ssdai_append_pause"),z.C3=H.V("html5_consume_ssdai_info_with_streaming"),z.gt=H.V("html5_process_all_cuepoints"),z.h$=H.V("html5_ssdai_log_ssevt_in_loader")),z.Ve=H.vz()||f.OZ());z.j=z.Z&&H.V("html5_sabr_live");z.ZJ=g.t3J(f);nu(H.S,g8.BITRATE)&&(z.oi=NaN);if(X=g.qf(H.experiments,"html5_request_size_max_kb"))z.En=X*1024;H.S.S?z.m4="; "+g8.EXPERIMENTAL.name+"=allowed":H.V("html5_enable_cobalt_tunnel_mode")&& (z.m4="; tunnelmode=true");X=f.serverPlaybackStartConfig;(X==null?0:X.enable)&&(X==null?0:X.playbackStartPolicy)&&(z.dS=!0,mr(z,X.playbackStartPolicy,2));X=vb8(Q);Q.Qx.removeAll();a:{H=Q.sV.cn;if(f=Q.videoData.videoId)if(b=H.Z.get(f)){H.Z.remove(f);H=b;break a}H=void 0}Q.xv=new g.zb(Q,Q.rh.schedule,z,Q.videoData.Z,Q.videoData.L,Ek(Q),X,Q.videoData.enableServerStitchedDai,H,Q.videoData.En);z=Q.videoData.V("html5_disable_preload_for_ssdai_with_preroll")&&Q.videoData.isLivePlayback&&Q.vG()?!0:Q.aU&& g.OV(Q.rh)&&Q.videoData.isLivePlayback;Q.xv.initialize(Q.getCurrentTime(),Ek(Q),z);Q.videoData.probeUrl&&(Q.xv.uT=Q.videoData.probeUrl);if(Q.Nj.length||Q.aU)Q.videoData.cotn||pL(Q,!1);p9L(Q.Sx,Q.xv);Q.J7&&(amc(Q.xv,new g.fD(Q.J7)),Q.On("sdai",{sdl:1}));Q.OY&&(Q.xv.L$(Q.OY),Q.Sx.N=!1);g.lE(Q.videoData)&&(Q=Q.xv,Q.policy.WY=Q.policy.gD)}; Mp=function(Q){Q.xv&&(Q.xv.dispose(),Q.xv=null,p9L(Q.Sx,null));Q.Uq()?y4v(Q):Q.gq()}; y4v=function(Q){if(Q.vI)if(Q.logger.debug("release media source"),Q.NT(),Q.vI.S)try{Q.rh.vz()&&Q.On("rms",{l:"vprms",sr:Q.Uq(),rs:mw(Q.vI)});Q.vI.clear();var z;(z=Q.mediaElement)!=null&&(z.B=Q.vI);Q.vI=null}catch(H){z=new g.wD("Error while clearing Media Source in VideoPlayer: "+H.name+", "+H.message),z=JI(z),Q.handleError(z),Q.gq()}else Q.gq()}; qu9=function(Q,z){z=z===void 0?!1:z;if(Q.vI)return Q.vI.L;Q.logger.debug("update media source");a:{z=z===void 0?!1:z;try{g.dR()&&Q.videoData.vM()&&sQp(Q.mediaElement);var H=Q.mediaElement.AB(Q.wq(),Q.A4())}catch(b){if(wK9(Q.yF,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",b);Q.VN("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}Q.B2(H,!1,!1,z)}var f;return((f=Q.AB())==null?void 0:f.L)||null}; MH_=function(Q,z){z=z===void 0?!1:z;if(Q.xv){Q.V("html5_keep_ssdai_avsync_in_loader_track")&&DYc(Q.xv);var H=Q.getCurrentTime()-Q.ex();Q.xv.seek(H,{qt:z}).IN(function(){})}else HAn(Q)}; tHa=function(Q,z,H,f){H=H===void 0?!1:H;f=f===void 0?!1:f;if(Q.vI&&(!z||Q.vI===z)){Q.logger.debug("media source opened");var b=Q.getDuration();!b&&MY(Q.videoData)&&(b=25200);if(Q.vI.isView){var L=b;Q.logger.debug(function(){return"Set media source duration to "+L+", video duration "+b}); L>Q.vI.getDuration()&&CNL(Q,L)}else CNL(Q,b);qCc(Q.xv,Q.vI,H,f);Q.publish("mediasourceattached")}}; CNL=function(Q,z){if(Q.vI){Q.vI.wx(z);var H;(H=Q.xv)!=null&&H.policy.yl&&(H.j=z)}}; p7v=function(Q,z){bAJ(Q,z.reason,z.Z.info,z.token,z.videoId)}; Ebv=function(Q,z){Q.rh.experiments.Nc("enable_adb_handling_in_sabr")&&(Q.pauseVideo(!0),Q.AS(),z&&Q.VN("sabr.config",1,"BROWSER_OR_EXTENSION_ERROR"))}; qp=function(Q,z){Q.publish("internalvideodatachange",z===void 0?"dataupdated":z,Q,Q.videoData)}; pEJ=function(Q){var z="loadstart loadedmetadata play playing pause ended seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ");Q.V("html5_remove_progress_event_listener")||(z.push("progress"),z.push("suspend"));z=g.n(z);for(var H=z.next();!H.done;H=z.next())Q.H$.X(Q.mediaElement,H.value,Q.bS,Q);Q.rh.ax&&Q.mediaElement.FK()&&(Q.H$.X(Q.mediaElement,"webkitplaybacktargetavailabilitychanged",Q.xi5,Q),Q.H$.X(Q.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",Q.z9$, Q))}; gbY=function(Q){g.Gr(Q.Jo);nbL(Q)||(Q.Jo=g.gR(function(){return nbL(Q)},100))}; nbL=function(Q){var z=Q.mediaElement;z&&Q.Nk&&!Q.videoData.L3&&!DA("vfp",Q.jy.timerName)&&z.OG()>=2&&!z.isEnded()&&vs(z.Ux())>0&&Q.jy.tick("vfp");return(z=Q.mediaElement)&&!Q.videoData.L3&&z.getDuration()>0&&(z.isPaused()&&z.OG()>=2&&vs(z.Ux())>0&&(DA("pbp",Q.jy.timerName)||Q.jy.tick("pbp"),!Q.videoData.rz||Q.fN||z.isSeeking()||(Q.fN=!0,Q.publish("onPlaybackPauseAtStart"))),z=z.getCurrentTime(),hd(Q.mQ,z))?(Q.gF(),!0):!1}; Gj6=function(Q){Q.JZ().Ex();if(qY(Q.videoData)&&Date.now()>Q.yL+6283){if(!(!Q.isAtLiveHead()||Q.videoData.Z&&Em(Q.videoData.Z))){var z=Q.JZ();if(z.qoe){z=z.qoe;var H=z.provider.HI.u4(),f=g.nD(z.provider);DlY(z,f,H);H=H.L;isNaN(H)||g.$P(z,f,"e2el",[H.toFixed(3)])}}Q.V("html5_alc_live_log_rawlat")?(z=Q.videoData,z=g.FE(z.C())?!0:g.Vq(z.C())?z.gS==="6":!1):z=g.FE(Q.rh);z&&Q.On("rawlat",{l:bt(Q.HZ,"rawlivelatency").toFixed(3)});Q.yL=Date.now()}Q.videoData.B&&eM(Q.videoData.B)&&(z=Q.e5())&&z.videoHeight!== Q.WM&&(Q.WM=z.videoHeight,bAJ(Q,"a",ZAa(Q,Q.videoData.gh)))}; ZAa=function(Q,z){if(z.Z.video.quality==="auto"&&eM(z.getInfo())&&Q.videoData.zx)for(var H=g.n(Q.videoData.zx),f=H.next();!f.done;f=H.next())if(f=f.value,f.getHeight()===Q.WM&&f.Z.video.quality!=="auto")return f.getInfo();return z.getInfo()}; mp9=function(Q){if(!qY(Q.videoData))return NaN;var z=0;Q.xv&&Q.videoData.Z&&(z=MY(Q.videoData)?Q.xv.EM.gQ()||0:Q.videoData.Z.De);return(0,g.NV)()/1E3-Q.JM()-z}; jO8=function(Q){Q.mediaElement&&Q.mediaElement.oJ()&&(Q.HK=(0,g.NV)());Q.rh.YX?g.n1(function(){$b_(Q)},0):$b_(Q)}; $b_=function(Q){var z;if((z=Q.vI)==null||!z.J8()){if(Q.mediaElement)try{Q.sL=Q.mediaElement.playVideo()}catch(f){CL(Q,"err."+f)}if(Q.sL){var H=Q.sL;H.then(void 0,function(f){Q.logger.debug(function(){return"playMediaElement failed: "+f}); if(!g.w(Q.playerState,4)&&!g.w(Q.playerState,256)&&Q.sL===H)if(f&&f.name==="AbortError"&&f.message&&f.message.includes("load"))Q.logger.debug(function(){return"ignore play media element failure: "+f.message}); else{var b="promise";f&&f.name&&(b+=";m."+f.name);CL(Q,b);Q.kz=!0;Q.videoData.D6=!0}})}}}; CL=function(Q,z){g.w(Q.playerState,128)||(Q.zq(uC(Q.playerState,1028,9)),Q.On("dompaused",{r:z}),Q.publish("onAutoplayBlocked"))}; XB=function(Q,z){z=z===void 0?!1:z;if(!Q.mediaElement||!Q.videoData.L)return!1;var H=z;H=H===void 0?!1:H;var f=null;var b;if((b=Q.videoData.L)==null?0:b.Z){f=qu9(Q,H);var L;(L=Q.xv)==null||L.resume()}else Mp(Q),Q.videoData.gh&&(f=Q.videoData.gh.mA());b=Q.mediaElement.v$();H=!1;b&&b.jH(f)||(F7k(Q,f),H=!0);g.w(Q.playerState,2)||(f=Q.Sx,z=z===void 0?!1:z,f.S||!(f.D>0)||f.mediaElement&&f.mediaElement.getCurrentTime()>0||(z={lr:"seektimeline_resumeTime",qt:z},f.videoData.L3||(z.seekSource=15),f.seekTo(f.D, z)));a:{z=H;if(L9(Q.videoData)){if(!Q.videoData.w7())break a}else if(!g.Zm(Q.videoData))break a;if(Q.mediaElement)if((f=Q.videoData.S)&&Q.mediaElement.FK()){b=Q.mediaElement.ai();if(Q.IB)if(b!==Q.IB.element)nL(Q);else if(z&&f.flavor==="fairplay"&&!mW())nL(Q);else break a;if(Q.V("html5_report_error_for_unsupported_tvos_widevine")&&mW()&&f.flavor==="widevine")Q.VN("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.unspttvoswidevine");else{Q.IB=new YRA(b,Q.videoData,Q.rh);Q.IB.subscribe("licenseerror", Q.Pm,Q);Q.IB.subscribe("qualitychange",Q.T4v,Q);Q.IB.subscribe("heartbeatparams",Q.xj,Q);Q.IB.subscribe("keystatuseschange",Q.XS,Q);Q.IB.subscribe("ctmp",Q.On,Q);Q.V("html5_widevine_use_fake_pssh")&&!Q.videoData.isLivePlayback&&f.flavor==="widevine"&&Q.IB.Cl(new q5(xb9,"cenc",!1));z=g.n(Q.Qx.keys);for(f=z.next();!f.done;f=z.next())f=Q.Qx.get(f.value),Q.IB.Cl(f);Q.V("html5_eme_loader_sync")||Q.Qx.removeAll()}}else Q.VN("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1")}return H}; F7k=function(Q,z){Q.jy.tick("vta");Vv("vta",void 0,"video_to_ad");Q.getCurrentTime()>0&&Gqp(Q.Sx,Q.getCurrentTime());Q.mediaElement.activate(z);Q.vI&&ff(0,4);!Q.videoData.L3&&Q.playerState.isOrWillBePlaying()&&Q.sA.start();if(L78(Q)){var H;if(z=(H=Q.mediaElement)==null?void 0:H.audioTracks())z.onchange=function(){Q.publish("internalaudioformatchange",Q.videoData,!0)}}}; nL=function(Q){Q.IB&&(Q.IB.dispose(),Q.IB=null)}; OA9=function(Q){var z=z===void 0?!1:z;Q.logger.debug("reattachVideoSource");Q.mediaElement&&(Q.vI?(nL(Q),Q.gq(),qu9(Q,z)):(Q.videoData.gh&&Q.videoData.gh.GU(),Q.mediaElement.stopVideo()),Q.playVideo())}; obL=function(Q,z){Q.rh.V("html5_log_rebuffer_reason")&&(z={r:z,lact:NA()},Q.mediaElement&&(z.bh=lZ(Q.mediaElement)),Q.On("bufreason",z))}; J4c=function(Q,z){if(Q.rh.vz()&&Q.mediaElement){var H=Q.mediaElement.TL();H.omt=(Q.mediaElement.getCurrentTime()+Q.ex()).toFixed(3);H.ps=Q.playerState.state.toString(16);H.rt=(g.nD(Q.JZ().provider)*1E3).toFixed();H.e=z;Q.pX[Q.VB++%5]=H}try{if(z==="timeupdate"||z==="progress")return}catch(f){}Q.logger.debug(function(){return"video element event "+z})}; N3J=function(Q){if(Q.rh.vz()){Q.pX.sort(function(f,b){return+f.rt-+b.rt}); for(var z=g.n(Q.pX),H=z.next();!H.done;H=z.next())H=H.value,Q.On("vpe",Object.assign({t:H.rt},H));Q.pX=[];Q.VB=0}}; IY8=function(Q){if(g.K1("cobalt")&&g.K1("nintendo switch")){var z=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;Q.On("nxdock",{d:z})}}; pL=function(Q,z){var H;(H=Q.xv)==null||HL(H,z)}; Kru=function(Q,z){return g.mI(Q.videoData)&&Q.OY?Q.OY.handleError(z,void 0):!1}; lbZ=function(Q){v7(Q.videoData,"html5_set_debugging_opt_in")&&(Q=g.Ww(),g.DQ(0,183)||(Vh(183,!0),Q.save()))}; A4L=function(Q){return g.mI(Q.videoData)&&Q.OY?kY(Q.OY):Q.videoData.jA()}; Vnk=function(Q,z){Q.sV.PU()||(Q.On("sgap",{f:z}),Q.sV.clearQueue(!1,z==="pe"))}; lH=function(Q){return Q.V("html5_disable_video_player_initiated_seeks")&&L9(Q.videoData)}; Yua=function(Q){TI.call(this,Q);var z=this;this.events=new g.Bt(Q);g.W(this,this.events);S1(this.api,"isLifaAdPlaying",function(){return z.api.isLifaAdPlaying()}); this.events.X(Q,"serverstitchedvideochange",function(){var H;(H=z.api.getVideoData())!=null&&H.OZ()&&(z.api.isLifaAdPlaying()?(z.playbackRate=z.api.getPlaybackRate(),z.api.setPlaybackRate(1)):z.api.setPlaybackRate(z.playbackRate))}); this.playbackRate=1}; r4v=function(Q){TI.call(this,Q);var z=this;this.events=new g.Bt(Q);g.W(this,this.events);S1(this.api,"seekToChapterWithAnimation",function(H){z.seekToChapterWithAnimation(H)}); S1(this.api,"seekToTimeWithAnimation",function(H,f){z.seekToTimeWithAnimation(H,f)}); S1(this.api,"renderChapterSeekingAnimation",function(H,f,b){z.api.renderChapterSeekingAnimation(H,f,b)}); S1(this.api,"setMacroMarkers",function(H){z.setMacroMarkers(Q,H)}); S1(this.api,"changeMarkerVisibility",function(H,f,b){z.changeMarkerVisibility(H,f,b)}); S1(this.api,"isSameMarkerTypeVisible",function(H){return z.isSameMarkerTypeVisible(H)})}; sOp=function(Q,z,H){var f=Q.api.getCurrentTime()*1E30&&b>0&&(H.width+=b,g.q2(z.element,"width",H.width+"px")));Q.size=H}}; g.sk=function(Q,z){var H=Q.Z[Q.Z.length-1];H!==z&&(Q.Z.push(z),u6Z(Q,H,z))}; g.B9=function(Q){if(!(Q.Z.length<=1)){var z=Q.Z.pop(),H=Q.Z[0];Q.Z=[H];u6Z(Q,z,H,!0)}}; u6Z=function(Q,z,H,f){SOv(Q);z&&(z.unsubscribe("size-change",Q.Ty,Q),z.unsubscribe("back",Q.R6,Q));H.subscribe("size-change",Q.Ty,Q);H.subscribe("back",Q.R6,Q);if(Q.LH){g.SK(H.element,f?"ytp-panel-animate-back":"ytp-panel-animate-forward");H.Gv(Q.element);H.focus();Q.element.scrollLeft=0;Q.element.scrollTop=0;var b=Q.size;LMA(Q);g.j$(Q.element,b);Q.j=new g.e_(function(){Xpa(Q,z,H,f)},20,Q); Q.j.start()}else H.Gv(Q.element),z&&z.detach()}; Xpa=function(Q,z,H,f){Q.j.dispose();Q.j=null;g.SK(Q.element,"ytp-popup-animating");f?(g.SK(z.element,"ytp-panel-animate-forward"),g.vO(H.element,"ytp-panel-animate-back")):(g.SK(z.element,"ytp-panel-animate-back"),g.vO(H.element,"ytp-panel-animate-forward"));g.j$(Q.element,Q.size);Q.Y=new g.e_(function(){g.vO(Q.element,"ytp-popup-animating");z.detach();g.yM(z.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);Q.Y.dispose();Q.Y=null},250,Q); Q.Y.start()}; SOv=function(Q){Q.j&&g.Re(Q.j);Q.Y&&g.Re(Q.Y)}; P9=function(Q){g.rI.call(this,Q,"ytp-shopping-product-menu");this.Z6=new g.Az(this.K);g.W(this,this.Z6);this.hide();g.sk(this,this.Z6);g.sZ(this.K,this.element,4)}; y9n=function(Q,z,H){var f,b=z==null?void 0:(f=z.text)==null?void 0:f.simpleText;b&&(H=vzL(Q,H,b,z==null?void 0:z.icon,z==null?void 0:z.secondaryIcon),z.navigationEndpoint&&H.listen("click",function(){Q.K.F$("innertubeCommand",z.navigationEndpoint);Q.hide()},Q))}; qOk=function(Q,z,H){var f,b=z==null?void 0:(f=z.text)==null?void 0:f.simpleText;b&&vzL(Q,H,b,z==null?void 0:z.icon).listen("click",function(){var L;(z==null?void 0:(L=z.icon)==null?void 0:L.iconType)==="HIDE"?Q.K.publish("featuredproductdismissed"):z.serviceEndpoint&&Q.K.F$("innertubeCommand",z.serviceEndpoint);Q.hide()},Q)}; vzL=function(Q,z,H,f,b){z=new g.dX(g.mh({},[],!1,!!b),z,H);b&&z.updateValue("secondaryIcon",MOk(b));z.setIcon(MOk(f));g.W(Q,z);Q.Z6.md(z,!0);return z}; MOk=function(Q){if(!Q)return null;switch(Q.iconType){case "ACCOUNT_CIRCLE":return{G:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{G:"path",T:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 1c4.96 0 9 4.04 9 9 0 1.42-.34 2.76-.93 3.96-1.53-1.72-3.98-2.89-7.38-3.03A3.99 3.99 0 0016 9c0-2.21-1.79-4-4-4S8 6.79 8 9c0 1.97 1.43 3.6 3.31 3.93-3.4.14-5.85 1.31-7.38 3.03C3.34 14.76 3 13.42 3 12c0-4.96 4.04-9 9-9zM9 9c0-1.65 1.35-3 3-3s3 1.35 3 3-1.35 3-3 3-3-1.35-3-3zm3 12c-3.16 0-5.94-1.64-7.55-4.12C6.01 14.93 8.61 13.9 12 13.9c3.39 0 5.99 1.03 7.55 2.98C17.94 19.36 15.16 21 12 21z", fill:"#fff"}}]};case "FLAG":return{G:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{G:"path",T:{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 NGA();case "HIDE":return{G:"svg",T:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{G:"g",W:[{G:"path",T:{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 ov()}}; ai=function(Q){Np.call(this,Q,!1,!0);this.isCounterfactual=this.B=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.N=!0;this.overflowButton=new g.m({G:"button",lT:["ytp-featured-product-overflow-icon","ytp-button"],T:{"aria-haspopup":"true"}});this.overflowButton.hide();g.W(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.m({G:"img",J:"ytp-suggested-action-badge-img",T:{src:"{{url}}"}}); this.thumbnailImage.hide();g.W(this,this.thumbnailImage);this.thumbnailIcon=new g.m({G:"div",J:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.W(this,this.thumbnailIcon);this.banner=new g.m({G:"a",J:"ytp-suggested-action-container",W:[this.thumbnailImage,this.thumbnailIcon,{G:"div",J:"ytp-suggested-action-details",W:[{G:"text",J:"ytp-suggested-action-title",BI:"{{title}}"},{G:"text",J:"ytp-suggested-action-subtitle",BI:"{{subtitle}}"},{G:"text",J:"ytp-suggested-action-metadata-text", BI:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.W(this,this.banner);this.banner.Gv(this.L.element);this.X(this.K,"videodatachange",this.onVideoDataChange);this.X(this.K,g.bc("suggested_action_view_model"),this.Crv);this.X(this.K,g.Li("suggested_action_view_model"),this.ug5);this.X(this.overflowButton.element,"click",this.M1);this.X(Q,"featuredproductdismissed",this.XE);this.K.createServerVe(this.banner.element,this.banner,!0)}; CsJ=function(Q){Q.isInitialized&&(Q.enabled=Q.isVisible,Q.wh=Q.isVisible,Jz(Q),Q.e0(),Q.thumbnailImage.Ho(Q.isVisible),Q.shouldHideDismissButton||Q.dismissButton.Ho(Q.isVisible),Q.shouldShowOverflowButton&&Q.overflowButton.Ho(Q.isVisible))}; Uk=function(){ai.apply(this,arguments)}; tO_=function(Q){TI.call(this,Q);this.Z=new Uk(this.api);g.W(this,this.Z);g.sZ(this.api,this.Z.element,4)}; c9=function(Q){TI.call(this,Q);var z=this;this.Z="";this.L=!0;this.B=this.api.V("html5_enable_audio_track_stickiness_phase_two");var H=new g.Bt(Q);g.W(this,H);H.X(Q,"internalaudioformatchange",function(f,b){Ez8(z,f,b)}); H.X(Q,"videoplayerreset",function(){ppZ(z)}); H.X(Q,"videodatachange",function(f,b){z.onVideoDataChange(f,b)})}; Ez8=function(Q,z,H){if(H){var f="";nzu(Q,z)&&(f=z,Q.B||(Q.Z=z),Q.api.V("html5_sabr_enable_server_xtag_selection")&&(H=Q.api.getVideoData(void 0,!0)))&&(H.qD=z);if(Q.B&&f&&gzp(Q,f)){var b;M1(HV(Q.api.C(),(b=Q.api.getVideoData())==null?void 0:g.hM(b)),function(L){ZUc(Q,f,L)})}}}; ppZ=function(Q){if(Q.Z)GfY(Q);else{var z;if(Q.B&&((z=hK())==null?0:z.size)){var H;M1(HV(Q.api.C(),(H=Q.api.getVideoData())==null?void 0:g.hM(H)),function(f){if((f=$gJ(f))&&gzp(Q,f)){var b=Q.api.getVideoData(void 0,!0);b&&(b.qD=f)}})}}}; GfY=function(Q){var z=Q.api.getVideoData(void 0,!0);z&&(z.qD=Q.Z)}; ZUc=function(Q,z,H){$gJ(H)!==z&&(jCa([{settingItemId:it(H),settingOptionValue:{stringValue:z}}]),M1(Q.Vk(),function(f){MZ6(f,it(H),{stringValue:z})}))}; FMA=function(Q,z){CE(M1(M1(Q.Vk(),function(H){return yl8(H,[it(z)])}),function(H){if(H){H=g.n(H); for(var f=H.next();!f.done;f=H.next()){var b=f.value;f=b.key;b=b.value;f&&b&&jCa([{settingItemId:f,settingOptionValue:b}])}}}),function(){Q.L=!0})}; nzu=function(Q,z){Q=Q.api.getAvailableAudioTracks();Q=g.n(Q);for(var H=Q.next();!H.done;H=Q.next())if(H=H.value,H.getLanguageInfo().getId()===z)return H;return null}; $gJ=function(Q){Q=it(Q);var z=hK();Q=z?z.get(Q):void 0;return Q&&Q.stringValue?Q.stringValue:""}; it=function(Q){var z=(484).toString();Q&&(z=(483).toString());return z}; gzp=function(Q,z){var H;return z.split(".")[0]!==""&&((H=Q.api.getVideoData())==null?void 0:!Dm(H))}; jCa=function(Q){var z=hK();z||(z=new Map);Q=g.n(Q);for(var H=Q.next();!H.done;H=Q.next())H=H.value,z.set(H.settingItemId,H.settingOptionValue);z=JSON.stringify(Object.fromEntries(z));g.Bw("yt-player-user-settings",z,2592E3)}; g.hz=function(Q,z,H,f,b,L,u){g.dX.call(this,g.mh({"aria-haspopup":"true"}),z,Q);this.kt=f;this.N=!1;this.L=null;this.options={};this.B=new g.Az(H,void 0,Q,b,L,u);g.W(this,this.B);this.listen("keydown",this.Dr);this.listen("click",this.open)}; xg_=function(Q){if(Q.L){var z=Q.options[Q.L];z.element.getAttribute("aria-checked");z.element.setAttribute("aria-checked","false");Q.L=null}}; OUa=function(Q,z){g.hz.call(this,"Sleep timer",g.vN.SLEEP_TIMER,Q,z);this.K=Q;this.U={};this.j=this.xU("Off");this.Y=this.Z="";Q.V("web_settings_menu_icons")&&this.setIcon({G:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{G:"path",T:{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.D=new g.m({G:"div",lT:["ytp-menuitem-label-wrapper"],W:[{G:"div",BI:"End of video"},{G:"div",lT:["ytp-menuitem-sublabel"],BI:"{{content}}"}]});g.W(this,this.D);this.listen("click",this.onClick);this.X(Q,"videodatachange",this.onVideoDataChange);this.X(Q,"presentingplayerstatechange",this.Jh);this.X(Q,"settingsMenuVisibilityChanged",this.BVm);Q.createClientVe(this.element,this,218889);this.Jh();this.K.F$("onSleepTimerFeatureAvailable")}; ozp=function(Q){var z="Off 10 15 20 30 45 60".split(" "),H;((H=Q.K.getVideoData())==null?0:H.isLivePlayback)||z.push("End of video");H=Q.K.getPlaylist();var f;H&&((f=H.listId)==null?void 0:f.type)!=="RD"&&z.push("End of playlist");Q.wz(g.J5(z,Q.xU));Q.U=g.MI(z,Q.xU,Q);z=Q.xU("End of video");Q.options[z]&&g.Vw(Q.options[z],Q.D)}; J9u=function(Q,z){var H=Q.U[z],f=H==="End of video"||H==="End of playlist";H==="Off"&&(Q.Z="");Q.K.getPlayerState()!==0&&Q.K.getPlayerState()!==5||!f?(Q.j=z,g.hz.prototype.zZ.call(Q,z),Q.RJ(z),Q.K.F$("onSleepTimerSettingsChanged",H)):Q.K.F$("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"Video has already ended"}}}}})}; W9=function(Q){TI.call(this,Q);var z=this;Q.addEventListener("settingsMenuInitialized",function(){z.menuItem||(z.menuItem=new OUa(z.api,z.api.S0()),g.W(z,z.menuItem))}); Q.addEventListener("openSettingsMenuItem",function(H){if(H==="menu_item_sleep_timer"){if(!z.menuItem){var f;(f=z.api.S0())==null||f.ir()}z.menuItem.open()}}); S1(Q,"resetSleepTimerMenuSettings",function(){z.resetSleepTimerMenuSettings()}); S1(Q,"setSleepTimerTimeLeft",function(H){z.setSleepTimerTimeLeft(H)}); S1(Q,"setVideoTimeLeft",function(H){z.setVideoTimeLeft(H)})}; Nbu=function(Q){TI.call(this,Q);var z=this;this.events=new g.Bt(Q);g.W(this,this.events);this.events.X(Q,"onSnackbarMessage",function(H){switch(H){case 1:H=z.api.getPlayerStateObject(),H.isBuffering()&&g.w(H,8)&&g.w(H,16)&&z.api.F$("innertubeCommand",{openPopupAction:{popup:{notificationActionRenderer:{responseText:{runs:[{text:"Experiencing interruptions?"}]},actionButton:{buttonRenderer:{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:{runs:[{text:"Find out why"}]},navigationEndpoint:{commandMetadata:{webCommandMetadata:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers&zippy=%2Ccheck-your-extensions-including-ad-blockers", webPageType:"WEB_PAGE_TYPE_UNKNOWN"}},urlEndpoint:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers&zippy=%2Ccheck-your-extensions-including-ad-blockers",target:"TARGET_NEW_WINDOW"}},loggingDirectives:{clientVeSpec:{uiType:232471}}}},loggingDirectives:{clientVeSpec:{uiType:232470}}}},durationHintMs:5E3,popupType:"TOAST"}})}})}; g.KL=function(Q,z,H,f,b){z=z===void 0?!1:z;f=f===void 0?!1:f;b=b===void 0?!1:b;g.Xp.call(this);this.U=b;this.Y=!1;this.D=new N0(this);this.S=this.j=null;this.L=this.B=!1;g.W(this,this.D);this.target=Q;this.Z=z;this.N=H||Q;this.Y=f;z&&(g.lQ&&this.target.setAttribute("draggable","true"),b||(this.target.style.touchAction="none"));Db(this)}; VO=function(Q){g.Aq(Q.D,!Q.Z)}; Db=function(Q){Q.S=null;Q.j=null;Q.X(dI("over"),Q.u5);Q.X("touchstart",Q.HL);Q.Z&&Q.X(dI("down"),Q.TTh)}; IH8=function(Q,z){for(var H=0;Hb.start&&H>=5;G+=J}C=G.substr(0,4)+" "+G.substr(4,4)+" "+G.substr(8,4)+" "+(G.substr(12,4)+" "+G.substr(16,4))}else C="";u={video_id_and_cpn:String(z.videoId)+" / "+C,codecs:"", dims_and_frames:"",bandwidth_kbps:u.toFixed(0)+" Kbps",buffer_health_seconds:v.toFixed(2)+" s",date:""+(new Date).toString(),drm_style:y?"":"display:none",drm:y,debug_info:H,extra_debug_info:"",bandwidth_style:M,network_activity_style:M,network_activity_bytes:X.toFixed(0)+" KB",shader_info:q,shader_info_style:q?"":"display:none",playback_categories:""};X=f.clientWidth+"x"+f.clientHeight+(b>1?"*"+b.toFixed(2):"");v="-";L.totalVideoFrames&&(v=(L.droppedVideoFrames||0)+" dropped of "+L.totalVideoFrames); u.dims_and_frames=X+" / "+v;Q=Q.getVolume();X=C6Y(z);var r;v=((r=z.D)==null?0:r.audio.Z)?"DRC":Math.round(Q*X)+"%";r=Math.round(Q)+"% / "+v;Q=z.dS.toFixed(1);isFinite(Number(Q))&&(r+=" (content loudness "+Q+"dB)");u.volume=r;u.resolution=f.videoWidth+"x"+f.videoHeight;if(f=z.B){if(r=f.video)Q=r.fps,Q>1&&(u.resolution+="@"+Q),(Q=L.Mb)&&Q.video&&(u.resolution+=" / "+Q.video.width+"x"+Q.video.height,Q.video.fps>1&&(u.resolution+="@"+Q.video.fps)),u.codecs=Bba(f),!z.D||f.audio&&f.video?f.Q7&&(u.codecs+= " / "+f.Q7+"A"):u.codecs+=" / "+Bba(z.D),r.B||r.primaries?(Q=r.B||"unknown",Q==="smpte2084"?Q+=" (PQ)":Q==="arib-std-b67"&&(Q+=" (HLG)"),u.color=Q+" / "+(r.primaries||"unknown"),u.color_style=""):u.color_style="display:none";if(f.debugInfo)for(u.fmt_debug_info="",f=g.n(f.debugInfo),r=f.next();!r.done;r=f.next())r=r.value,u.fmt_debug_info+=r.label+":"+r.text+" ";u.fmt_debug_info_style=u.fmt_debug_info&&u.fmt_debug_info.length>0?"":"display:none"}f=z.isLivePlayback;r=z.l8;u.live_mode_style=f||r?"": "display:none";u.live_latency_style=f?"":"display:none";if(r)u.live_mode="Post-Live"+(MY(z)?" Manifestless":"");else if(f){r=L.nO;u.live_latency_secs=r.toFixed(2)+"s";f=MY(z)?"Manifestless, ":"";z.f3&&(f+="Windowed, ");Q="Uncertain";if(r>=0&&r<120)if(z.latencyClass&&z.latencyClass!=="UNKNOWN")switch(z.latencyClass){case "NORMAL":Q="Optimized for Normal Latency";break;case "LOW":Q="Optimized for Low Latency";break;case "ULTRALOW":Q="Optimized for Ultra Low Latency";break;default:Q="Unknown Latency Setting"}else Q= z.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";f+=Q;(r=L.v9)&&(f+=", seq "+r.sequence);u.live_mode=f}!L.isGapless||H7(z)&&L.PU||(u.playback_categories+="Gapless ");u.playback_categories_style=u.playback_categories?"":"display:none";u.bandwidth_samples=L.yK;u.network_activity_samples=L.MQ;u.live_latency_samples=L.Ez;u.buffer_health_samples=L.f_;L=g.lE(z);if(z.cotn||L)u.cotn_and_local_media=(z.cotn?z.cotn:"null")+" / "+L;u.cotn_and_local_media_style=u.cotn_and_local_media? "":"display:none";v7(z,"web_player_release_debug")?(u.release_name="youtube.player.web_20250305_01_RC00",u.release_style=""):u.release_style="display:none";u.debug_info&&t.length>0&&u.debug_info.length+t.length<=60?u.debug_info+=" "+t:u.extra_debug_info=t;u.extra_debug_info_style=u.extra_debug_info&&u.extra_debug_info.length>0?"":"display:none";return u}; Bba=function(Q){var z=/codecs="([^"]*)"/.exec(Q.mimeType);return z&&z[1]?z[1]+" ("+Q.itag+")":Q.itag}; Ri=function(Q,z,H,f,b){g.m.call(this,{G:"div",J:"ytp-horizonchart"});this.Y=z;this.sampleCount=H;this.D=f;this.j=b;this.index=0;this.heightPx=-1;this.L=this.B=null;this.Z=Math.round(Q/H);this.element.style.width=this.Z*this.sampleCount+"px";this.element.style.height=this.Y+"em"}; Qn=function(Q,z){if(Q.heightPx===-1){var H=null;try{H=g.Hx("CANVAS"),Q.B=H.getContext("2d")}catch(X){}if(Q.B){var f=Q.Z*Q.sampleCount;Q.L=H;Q.L.width=f;Q.L.style.width=f+"px";Q.element.appendChild(Q.L)}else for(Q.sampleCount=Math.floor(Q.sampleCount/4),Q.Z*=4,H=0;H1?2:1,Q.L.height=Q.heightPx*H,Q.L.style.height= Q.heightPx+"px",Q.B.scale(1,H)));z=g.n(z);for(f=z.next();!f.done;f=z.next()){H=Q;var b=Q.index,L=f.value;for(f=0;f+20&&g.Lm(z.L.element);f.classList.add("ytp-timely-actions-overlay");z.L.element.appendChild(f)}); g.W(this,this.L);g.sZ(this.api,this.L.element,4)}; e7u=function(Q){Q.timelyActions&&(Q.D=Q.timelyActions.reduce(function(z,H){if(H.cueRangeId===void 0)return z;z[H.cueRangeId]=0;return z},{}))}; bN=function(Q,z){if(Q.timelyActions){Q=g.n(Q.timelyActions);for(var H=Q.next();!H.done;H=Q.next())if(H=H.value,H.cueRangeId===z)return H}}; lHa=function(Q,z){if((Q=bN(Q,z))&&Q.onCueRangeExit)return iU(Q.onCueRangeExit)}; R7Y=function(Q){if(Q.Z!==void 0){var z=(z=bN(Q,Q.Z))&&z.onCueRangeEnter?iU(z.onCueRangeEnter):void 0;var H=bN(Q,Q.Z);if(H&&H.additionalTrigger){var f=!1;for(var b=g.n(H.additionalTrigger),L=b.next();!L.done;L=b.next())L=L.value,L.type&&L.args&&Q.j[L.type]!==void 0&&(f=f||Q.j[L.type](L.args))}else f=!0;z&&f&&(Q.api.F$("innertubeCommand",z),Q.setTimeout(H),Q.D[Q.Z]!==void 0&&Q.D[Q.Z]++,Q.Y=!0)}}; mga=function(Q,z){return Q.B===void 0?!1:z.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(z.seekLengthMilliseconds)===5E3?Q.B===72:z.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(z.seekLengthMilliseconds)===1E4?Q.B===74:z.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(z.seekLengthMilliseconds)===5E3?Q.B===71:z.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(z.seekLengthMilliseconds)===1E4?Q.B===73:!1}; wp6=function(Q){if(Q=Q.getWatchNextResponse()){var z,H;Q=(z=Q.playerOverlays)==null?void 0:(H=z.playerOverlayRenderer)==null?void 0:H.timelyActionsOverlayViewModel;z=g.K(Q,QYp);if(z!=null&&z.timelyActions)return z==null?void 0:z.timelyActions.map(function(f){return g.K(f,za8)}).filter(function(f){return!!f})}}; HOc=function(Q){TI.call(this,Q);var z=this;Xv(this.api,"getPlaybackRate",function(){return z.api.getPlaybackRate()}); Xv(this.api,"setPlaybackRate",function(H){typeof H==="number"&&z.api.setPlaybackRate(H)})}; fCA=function(Q){Q=Q.mM();if(!Q)return!1;Q=g.uv(Q).exp||"";return Q.includes("xpv")||Q.includes("xpe")}; bOJ=function(Q){Q=g.n(g.LA(Q,!0));for(var z=Q.next();!z.done;z=Q.next())if(fCA(z.value))return!0;return!1}; LVa=function(Q,z){Q=g.n(g.LA(Q,!0));for(var H=Q.next();!H.done;H=Q.next())if(H=H.value,fCA(H)){var f={potc:"1",pot:z};H.url&&(H.url=ST(H.url,f))}}; ufp=function(Q){var z=new yj9,H={},f=(H["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",H);return new xM(z,Q,function(){return f})}; S36=function(Q){return g.B(function(z){if(z.Z==1)return g.$v(z,2),g.Y(z,Q,4);if(z.Z!=2)return g.Fa(z,0);g.xv(z);g.Gu(z)})}; SH=function(Q){TI.call(this,Q);var z=this;this.useLivingRoomPoToken=!1;this.D=new g.nW;this.jy=null;this.Y=!1;this.L=null;this.S=!1;var H=Q.C().getWebPlayerContextConfig();this.events=new g.Bt(Q);g.W(this,this.events);this.events.X(Q,"spsumpreject",function(f,b,L){z.S=b;f&&z.Y&&!z.L&&(z.V("html5_generate_content_po_token")&&L?z.W2(L):z.V("html5_generate_session_po_token")&&XP8(z));z.L||z.api.On("stp",{s:+z.Y,b:+z.S})}); this.events.X(Q,"poTokenVideoBindingChange",function(f){z.W2(f)}); this.useLivingRoomPoToken=!(H==null||!H.useLivingRoomPoToken);Q.addEventListener("csiinitialized",function(){z.jy=Q.vB();var f=(z.V("html5_generate_session_po_token")||z.V("html5_generate_content_po_token"))&&!z.useLivingRoomPoToken;try{if(z.V("html5_use_shared_owl_instance"))v2J(z);else if(f){z.jy.GS("pot_isc");z.V("html5_new_wpo_client")||yY6(z);var b=g.qf(z.api.C().experiments,"html5_webpo_kaios_defer_timeout_ms");b?(z.V("html5_new_wpo_client")&&(z.B=kM()),g.n1(function(){uN(z)},b)):z.V("html5_webpo_idle_priority_job")? (z.V("html5_new_wpo_client")&&(z.B=kM()),g.R4(g.za(),function(){uN(z)})):uN(z)}}catch(L){L instanceof Error&&g.PT(L)}}); Q.addEventListener("trackListLoaded",this.cU.bind(this));Q.mz(this)}; q3_=function(Q){var z=ki(Q.experiments,"html5_web_po_request_key");return z?z:g.OV(Q)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; Xe=function(Q,z){if(Q.V("html5_webpo_bge_ctmp")){var H,f={hwpo:!!Q.Z,hwpor:!((H=Q.Z)==null||!H.isReady())};Q.api.On(z,f)}}; v2J=function(Q){var z,H;g.B(function(f){if(f.Z==1)return Xe(Q,"swpo_i"),Q.B=kM(),vE(Q),g.Y(f,Ie(),2);if(f.Z!=3)return z=f.B,Xe(Q,"swpo_co"),g.Y(f,XrJ(z),3);H=f.B;Q.Z=Mkp(Q,H);Xe(Q,"swpo_cc");Q.Z.ready().then(function(){Q.D.resolve();Xe(Q,"swpo_re")}); g.n1(function(){uN(Q);Xe(Q,"swpo_si")},0); g.Gu(f)})}; yY6=function(Q){var z=Q.api.C(),H=q3_(z),f=ufp(H);z=new R2({hF:"CLEn",eD:H,Gi:f,onEvent:function(b){(b=C_6[b])&&Q.jy.GS(b)}, onError:g.PT,hv:Nn8(z.experiments),Ru:function(){return void Q.api.On("itr",{})}, lY$:z.experiments.Nc("html5_web_po_disable_remote_logging")||tk6.includes(g.c4(z.qP)||"")});z.ready().then(function(){return void Q.D.resolve()}); g.W(Q,z);Q.Z=z}; E2Y=function(Q){var z=Q.api.C(),H=ufp(q3_(z)),f=H.Na.bind(H);H.Na=function(X){var v;return g.B(function(y){if(y.Z==1)return g.Y(y,f(X),2);v=y.B;Q.api.On("itr",{});return y.return(v)})}; try{var b=new Oo({Gi:H,du:{maxAttempts:5},k8:{hF:"CLEn",disable:z.experiments.Nc("html5_web_po_disable_remote_logging")||tk6.includes(g.c4(z.qP)||""),Dt:Nn8(z.experiments),FvT:Q.V("wpo_dis_lfdms")?0:1E3},dim:g.PT});var L=new wB({Wc:b,Gi:H,onError:g.PT});S36(L.z9()).then(function(){return void Q.D.resolve()}); g.W(Q,b);g.W(Q,L);Q.Z=Mkp(Q,L)}catch(X){g.PT(X);var u;(u=b)==null||u.dispose()}}; uN=function(Q){var z=Q.api.C();Q.jy.GS("pot_ist");Q.Z?Q.Z.start():Q.V("html5_new_wpo_client")&&E2Y(Q);Q.V("html5_bandaid_attach_content_po_token")||(Q.V("html5_generate_session_po_token")&&(vE(Q),XP8(Q)),z=g.qf(z.experiments,"html5_session_po_token_interval_time_ms")||0,z>0&&(Q.j=g.gR(function(){vE(Q)},z)),Q.Y=!0)}; vE=function(Q){var z,H,f,b;g.B(function(L){if(!Q.V("html5_generate_session_po_token")||Q.useLivingRoomPoToken)return L.return();z=Q.api.C();H=g.T5("EOM_VISITOR_DATA")||g.T5("VISITOR_DATA");f=z.WY?z.datasyncId:H;b=ki(z.experiments,"html5_mock_content_binding_for_session_token")||z.livingRoomPoTokenId||f;z.h$=yn(Q,b);g.Gu(L)})}; yn=function(Q,z){if(!Q.Z)return Q.B?Q.B(z):"";try{var H=Q.Z.isReady();Q.jy.GS(H?"pot_cms":"pot_csms");var f="";f=Q.V("html5_web_po_token_disable_caching")?Q.Z.K9({hT:z}):Q.Z.K9({hT:z,WB:{KW:z,vtj:150,lI:!0,Q5:!0}});Q.jy.GS(H?"pot_cmf":"pot_csmf");if(H){var b;(b=Q.L)==null||b.resolve();Q.L=null;if(Q.S){Q.S=!1;var L;(L=Q.api.app.X$())==null||L.i5(!1)}}return f}catch(u){return g.PT(u),""}}; XP8=function(Q){Q.Z&&(Q.L=new k6,Q.Z.ready().then(function(){Q.jy.GS("pot_if");vE(Q)}))}; Mkp=function(Q,z){Q.V("html5_web_po_token_disable_caching")||z.Vp(150);var H=!1,f=S36(z.z9()).then(function(){H=!0}); return{isReady:function(){return H}, ready:function(){return f}, K9:function(b){return z.K9({hT:b.hT,kC:!0,MM:!0,WB:b.WB?{KW:b.WB.KW,lI:b.WB.lI,Q5:b.WB.Q5}:void 0})}, start:function(){}}}; pP9=function(Q){TI.call(this,Q);var z=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.Bt(Q);g.W(this,this.events);this.events.X(Q,"heartbeatRequest",function(H){if(z.freePreviewUsageDetails.length||z.freePreviewWatchedDuration!==null)H.heartbeatRequestParams||(H.heartbeatRequestParams={}),H.heartbeatRequestParams.unpluggedParams||(H.heartbeatRequestParams.unpluggedParams={}),z.freePreviewUsageDetails.length>0?H.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= z.freePreviewUsageDetails:H.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+z.freePreviewWatchedDuration}}); S1(Q,"setFreePreviewWatchedDuration",function(H){z.freePreviewWatchedDuration=H}); S1(Q,"setFreePreviewUsageDetails",function(H){z.freePreviewUsageDetails=H})}; qb=function(Q){g.h.call(this);this.features=[];var z=this.Z,H=new OJ(Q),f=new e1(Q),b=new $_(Q),L=new SH(Q);var u=g.FE(Q.C())?void 0:new nK(Q);var X=new Gq(Q),v=new c9p(Q),y=new HOc(Q),q=new xn(Q);var M=g.FE(Q.C())?new pP9(Q):void 0;var C=Q.V("html5_enable_ssap")?new sCa(Q):void 0;var t=Q.V("web_cinematic_watch_settings")&&(t=Q.C().getWebPlayerContextConfig())!=null&&t.cinematicSettingsAvailable?new MF(Q):void 0;var E=new F1(Q);var G=Q.V("enable_courses_player_overlay_purchase")?new FNL(Q):void 0; var x=g.mD(Q.C())?new ZE6(Q):void 0;var J=new gz(Q);var I=Q.C().D?new CML(Q):void 0;var r=g.xh(Q.C())?new MJk(Q):void 0;var U=Q.V("web_player_move_autonav_toggle")&&Q.C().zx?new LNJ(Q):void 0;var D=g.mD(Q.C())?new r4v(Q):void 0;var T=Q.V("web_enable_speedmaster")&&g.mD(Q.C())?new k_(Q):void 0;var k=Q.C().dS?void 0:new dgA(Q);var bL=Q.V("report_pml_debug_signal")?new z6A(Q):void 0;var SY=new dbZ(Q),Q9=new Ok(Q);var V=g.Ux(Q.C())?new HU8(Q):void 0;var R=navigator.mediaSession&&window.MediaMetadata&& Q.C().CP?new gI(Q):void 0;var Z=Q.V("html5_enable_drc")&&!Q.C().j?new pK(Q):void 0;var d=new Rg(Q);var h8=g.mD(Q.C())?new tO_(Q):void 0;var $O=Q.V("html5_enable_d6de4")?new jW(Q):void 0;var Cs=g.mD(Q.C())&&Q.V("web_sleep_timer")?new W9(Q):void 0;var J8=g.xh(Q.C())?new EAJ(Q):void 0;var eY=new c9(Q),Ls=new CK(Q),ps=new Yua(Q);var O=Q.V("enable_sabr_snackbar_message")?new Nbu(Q):void 0;var N=Q.V("web_enable_timely_actions")?new Tbk(Q):void 0;z.call(this,H,f,b,L,u,X,v,y,q,M,C,t,E,G,x,J,I,r,U,D,T,k,bL, SY,Q9,V,void 0,R,Z,d,void 0,h8,$O,Cs,J8,void 0,eY,Ls,ps,void 0,O,N,new tv(Q))}; Mb=function(){this.B=this.Z=NaN}; n2A=function(Q,z){this.rh=Q;this.timerName="";this.L=!1;this.B=NaN;this.D=new Mb;this.Z=z||null;this.L=!1}; g29=function(Q,z,H){var f=g.AE(z.aj)&&!z.aj.j;if(z.aj.gS&&(ol(z.aj)||z.aj.yl==="shortspage"||lf(z.aj)||f)&&!Q.L){Q.L=!0;Q.j=z.clientPlaybackNonce;g.T5("TIMING_ACTION")||kc("TIMING_ACTION",Q.rh.csiPageType);Q.rh.csiServiceName&&kc("CSI_SERVICE_NAME",Q.rh.csiServiceName);if(Q.Z){f=Q.Z.vB();for(var b=g.n(Object.keys(f)),L=b.next();!L.done;L=b.next())L=L.value,ib(L,f[L],Q.timerName);f=g.QC(Viu)(Q.Z.yh);g.hN(f,Q.timerName);f=Q.Z;f.B={};f.yh={}}g.hN({playerInfo:{visibilityState:g.QC(Ku9)()},playerType:"LATENCY_PLAYER_HTML5"}, Q.timerName);Q.S!==z.clientPlaybackNonce||Number.isNaN(Q.B)||(DA("_start",Q.timerName)?H=g.QC(BC)("_start",Q.timerName)+Q.B:g.PT(new g.wD("attempted to log gapless pbs before CSI timeline started",{cpn:z.clientPlaybackNonce})));H&&!DA("pbs",Q.timerName)&&CA(H)}}; CA=function(Q,z){ib("pbs",Q!=null?Q:(0,g.NV)(),z)}; ZO6=function(Q,z,H,f,b,L,u){Q=(Q===H?"video":"ad")+"_to_"+(z===H?"video":"ad");if(Q!=="video_to_ad"||L!=null&&L.L3){L=Q==="ad_to_video"?L:f;H=L==null?void 0:L.Gt;var X={};if(f==null?0:f.j)X.cttAuthInfo={token:f.j,videoId:f.videoId};b&&(X.startTime=b);WC(Q,X);var v,y,q;f={targetVideoId:(v=f==null?void 0:f.videoId)!=null?v:"empty_video",targetCpn:z,adVideoId:(y=L==null?void 0:L.videoId)!=null?y:"empty_video",adClientPlaybackNonce:(q=H==null?void 0:H.cpn)!=null?q:L==null?void 0:L.clientPlaybackNonce}; H&&(f.adBreakType=H.adBreakType,f.adType=H.adType);g.hN(f,Q);CA(u,Q)}}; t4=function(Q){zSv();Qwk();Q.timerName=""}; GBu=function(Q){if(Q.Z){var z=Q.Z;z.B={};z.yh={}}Q.L=!1;Q.S=void 0;Q.B=NaN}; $8L=function(Q,z){g.Xp.call(this);this.aj=Q;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.Z=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.U={};this.B=0;if(Q=z.session_data)this.sessionData=H2(Q,"&");this.index=Math.max(0,Number(z.index)||0);this.loop=!!z.loop;this.startSeconds=Number(z.startSeconds)||0;this.title=z.playlist_title||"";this.description=z.playlist_description||"";this.author= z.author||z.playlist_author||"";z.video_id&&(this.items[this.index]=z);if(Q=z.api)typeof Q==="string"&&Q.length===16?z.list="PL"+Q:z.playlist=Q;if(Q=z.list)switch(z.listType){case "user_uploads":this.listId=new Z1("UU","PLAYER_"+Q);break;default:var H=z.playlist_length;H&&(this.length=Number(H)||0);this.listId=g.GZ(Q);if(Q=z.video)this.items=Q.slice(0),this.loaded=!0}else if(z.playlist){Q=z.playlist.toString().split(",");this.index>0&&(this.items=[]);Q=g.n(Q);for(H=Q.next();!H.done;H=Q.next())(H= H.value)&&this.items.push({video_id:H});this.length=this.items.length;if(Q=z.video)this.items=Q.slice(0),this.loaded=!0}this.setShuffle(!!z.shuffle);if(Q=z.suggestedQuality)this.quality=Q;this.U=Es(z,"playlist_");this.L=(z=z.thumbnail_ids)?z.split(","):[]}; jY6=function(Q){return!!(Q.playlist||Q.list||Q.api)}; FVY=function(Q){var z=Q.index+1;return z>=Q.length?0:z}; x89=function(Q){var z=Q.index-1;return z<0?Q.length-1:z}; g.Eu=function(Q,z,H,f){z=z!==void 0?z:Q.index;z=Q.items&&z in Q.items?Q.items[Q.order[z]]:null;var b=null;z&&(H&&(z.autoplay="1"),f&&(z.autonav="1"),b=new g.D1(Q.aj,z),g.W(Q,b),b.zj=!0,b.startSeconds=Q.startSeconds||b.clipStart||0,Q.listId&&(b.playlistId=Q.listId.toString()));return b}; OOn=function(Q,z){Q.index=g.v3(z,0,Q.length-1);Q.startSeconds=0}; o29=function(Q,z){if(z.video&&z.video.length){Q.title=z.title||"";Q.description=z.description;Q.views=z.views;Q.likes=z.likes;Q.dislikes=z.dislikes;Q.author=z.author||"";var H=z.loop;H&&(Q.loop=H);H=g.Eu(Q);Q.items=[];for(var f=g.n(z.video),b=f.next();!b.done;b=f.next())if(b=b.value)b.video_id=b.encrypted_id,Q.items.push(b);Q.length=Q.items.length;(z=z.index)?Q.index=z:Q.findIndex(H);Q.setShuffle(!1);Q.loaded=!0;Q.B++;Q.Z&&Q.Z()}}; ICa=function(Q,z){var H,f,b,L,u,X,v;return g.B(function(y){if(y.Z==1){H=g.L4();var q=Q.C(),M={context:g.LR(Q),playbackContext:{contentPlaybackContext:{ancestorOrigins:q.ancestorOrigins}}},C=q.getWebPlayerContextConfig();if(C==null?0:C.encryptedHostFlags)M.playbackContext.contentPlaybackContext.encryptedHostFlags=C.encryptedHostFlags;if(C==null?0:C.hideInfo)M.playerParams={showinfo:!1};q=q.embedConfig;C=z.docid||z.video_id||z.videoId||z.id;if(!C){C=z.raw_embedded_player_response;if(!C){var t=z.embedded_player_response; t&&(C=JSON.parse(t))}if(C){var E,G,x,J,I,r;C=((r=g.K((E=C)==null?void 0:(G=E.embedPreview)==null?void 0:(x=G.thumbnailPreviewRenderer)==null?void 0:(J=x.playButton)==null?void 0:(I=J.buttonRenderer)==null?void 0:I.navigationEndpoint,g.ew))==null?void 0:r.videoId)||null}else C=null}E=(E=C)?E:void 0;G=Q.playlistId?Q.playlistId:z.list;x=z.listType;if(G){var U;x==="user_uploads"?U={username:G}:U={playlistId:G};JYu(q,E,z,U);M.playlistRequest=U}else z.playlist?(U={templistVideoIds:z.playlist.toString().split(",")}, JYu(q,E,z,U),M.playlistRequest=U):E&&(U={videoId:E},q&&(U.serializedThirdPartyEmbedConfig=q),M.singleVideoRequest=U);f=M;b=g.Qv(NoJ);g.$v(y,2);return g.Y(y,g.kx(H,f,b),4)}if(y.Z!=2)return L=y.B,u=Q.C(),z.raw_embedded_player_response=L,u.De=yh(z,g.xh(u)),u.L=u.De==="EMBEDDED_PLAYER_MODE_PFL",L&&(X=L,X.trackingParams&&oA(X.trackingParams)),y.return(new g.D1(u,z));v=g.xv(y);v instanceof Error||(v=Error("b259802748"));g.BT(v);return y.return(Q)})}; JYu=function(Q,z,H,f){H.index&&(f.playlistIndex=String(Number(H.index)+1));f.videoId=z?z:"";Q&&(f.serializedThirdPartyEmbedConfig=Q)}; g.nA=function(Q,z){pA.get(Q);pA.set(Q,z)}; g.g3=function(Q){g.Xp.call(this);this.loaded=!1;this.player=Q}; AYL=function(){this.B=[];this.Z=[]}; g.LA=function(Q,z){return z?Q.Z.concat(Q.B):Q.Z}; g.ZY=function(Q,z){switch(z.kind){case "asr":Y3J(z,Q.B);break;default:Y3J(z,Q.Z)}}; Y3J=function(Q,z){g.mB(z,function(H){return Q.jH(H)})||z.push(Q)}; g.Gj=function(Q){g.h.call(this);this.Yv=Q;this.B=new AYL;this.D=null;this.S=[];this.N=[]}; g.$b=function(Q,z,H){g.Gj.call(this,Q);this.videoData=z;this.audioTrack=H;this.Z=null;this.L=!1;this.S=z.ON;this.N=z.rY;this.L=g.aq(z)}; g.jH=function(Q,z){return zs(Q.info.mimeType)?z?Q.info.itag===z:!0:!1}; g.rYc=function(Q,z){if(Q.Z!=null&&g.FE(z.C())&&!Q.Z.isManifestless&&Q.Z.Z.rawcc!=null)return!0;if(!Q.AZ())return!1;z=!!Q.Z&&Q.Z.isManifestless&&Object.values(Q.Z.Z).some(function(H){return g.jH(H,"386")}); Q=!!Q.Z&&!Q.Z.isManifestless&&g.can(Q.Z);return z||Q}; g.Fe=function(Q,z,H,f,b,L){g.Gj.call(this,Q);this.videoId=H;this.Q$=b;this.eventId=L;this.j={};this.Z=null;Q=f||g.uv(z).hl||"";Q=Q.split("_").join("-");this.L=ST(z,{hl:Q})}; sYY=function(Q,z){this.B=Q;this.Z=z;this.onFailure=void 0}; Bon=function(Q,z){return{j$:Q.j$&&z.j$,xs:Q.xs&&z.xs,sync:Q.sync&&z.sync,streaming:Q.streaming&&z.streaming}}; Ou=function(Q,z){var H=P_8,f=this;this.path=Q;this.L=z;this.D=H;this.capabilities={j$:!!this.L,xs:"WebAssembly"in window,sync:"WebAssembly"in window,streaming:"WebAssembly"in window&&"instantiateStreaming"in WebAssembly&&"compileStreaming"in WebAssembly};this.S=new sYY([{name:"compileStreaming",condition:function(b){return!!f.B&&b.streaming}, Qq:xb.o5("wmcx",function(){return WebAssembly.compileStreaming(fetch(f.path))}), onFailure:function(){return f.capabilities.streaming=!1}}, {name:"sync",condition:function(b){return b.sync}, Qq:function(){return M1(aC9(f),xb.o5("wmcs",function(b){return new WebAssembly.Module(b)}))}, onFailure:function(){return f.capabilities.sync=!1}}, {name:"async",condition:function(){return!0}, Qq:function(){return M1(aC9(f),xb.o5("wmca",function(b){return WebAssembly.compile(b)}))}, onFailure:function(){return f.capabilities.xs=!1}}]); this.j=new sYY([{name:"instantiateStreaming",condition:function(b){return b.xs&&b.streaming&&!f.B&&!f.Z}, Qq:function(b,L){return xb.UJ("wmix",function(){return WebAssembly.instantiateStreaming(fetch(f.path),L)}).then(function(u){f.Z=SJ(u.module); return{instance:u.instance,fV:!1}})}, onFailure:function(){return f.capabilities.streaming=!1}}, {name:"sync",condition:function(b){return b.xs&&b.sync}, Qq:function(b,L){return M1(U8_(f,b),xb.o5("wmis",function(u){return{instance:new WebAssembly.Instance(u,L),fV:!1}}))}, onFailure:function(){return f.capabilities.sync=!1}}, {name:"async",condition:function(b){return b.xs}, Qq:function(b,L){return M1(M1(U8_(f,b),xb.o5("wmia",function(u){return WebAssembly.instantiate(u,L)})),function(u){return{instance:u, fV:!1}})}, onFailure:function(){return f.capabilities.xs=!1}}, {name:"asmjs",condition:function(b){return b.j$}, Qq:function(b,L){return SJ(xb.UJ("wmij",function(){return f.L(L)}).then(function(u){return{instance:{exports:u}, fV:!0}}))}, onFailure:function(){return f.capabilities.j$=!1}}],function(b,L,u){return f.D(u,b.instance.exports)})}; haA=function(Q){var z=cYk;return z.instantiate(Q?Bon(z.capabilities,Q):z.capabilities,new iO6)}; aC9=function(Q){if(Q.B)return Q.B;var z=fetch(Q.path).then(function(H){return H.arrayBuffer()}).then(function(H){Q.B=SJ(H); return H}).then(void 0,function(H){g.PT(Error("wasm module fetch failure: "+H.message,{cause:H})); Q.B=void 0;throw H;}); Q.B=SJ(z);return Q.B}; U8_=function(Q,z){if(!z.xs)return vB(Error("wasm unavailable"));if(Q.Z)return Q.Z;Q.Z=CE(M1(Q.compile(z),function(H){Q.Z=SJ(H);return H}),function(H){g.PT(Error("wasm module compile failure: "+H.message,{cause:H})); Q.Z=void 0;throw H;}); return Q.Z}; WVc=function(){}; D8v=function(){var Q=this;this.proc_exit=function(){}; this.fd_write=function(z,H,f){if(!Q.exports)return 1;z=new Uint32Array(Q.exports.memory.buffer,H,f*2);H=[];for(var b=0;b=11;Q=Q.api.C().N&&aO;return!(!z&&!Q)}; w3=function(Q,z){return!Q.api.isInline()&&!oIL(Q,o4(z))&&g.Ox(z)}; OJv=function(Q){Q.Iz.l9();if(Q.UH&&Q.fB)Q.fB=!1;else if(!Q.api.C().jm&&!Q.F9()){var z=Q.api.getPlayerStateObject();g.w(z,2)&&g.og(Q.api)||Q.fR(z);!Q.api.C().KH||z.isCued()||g.w(z,1024)?Q.O4():Q.R7.isActive()?(Q.DQ(),Q.R7.stop()):Q.R7.start()}}; NQ8=function(Q,z){var H;if((H=Q.api.getVideoData())==null?0:H.mutedAutoplay){var f,b;if((f=z.target)==null?0:(b=f.className)==null?0:b.includes("ytp-info-panel"))return!1}return g.Ox(z)&&Q.api.isMutedByMutedAutoplay()?(Q.api.unMute(),Q.api.getPresentingPlayerType()===2&&Q.api.playVideo(),z=Q.api.getPlayerStateObject(),!g.w(z,4)||g.w(z,8)||g.w(z,2)||Q.O4(),!0):!1}; I2_=function(Q,z,H){Q.api.isFullscreen()?H<1-z&&Q.api.toggleFullscreen():H>1+z&&Q.api.toggleFullscreen()}; xcu=function(Q){var z=VC()&&DK()>=67&&!Q.api.C().N;Q=Q.api.C().disableOrganicUi;return!g.K1("tizen")&&!$h&&!z&&!Q}; kb=function(Q,z){z=z===void 0?2:z;g.Xp.call(this);this.api=Q;this.Z=null;this.Hc=new N0(this);g.W(this,this.Hc);this.B=q56;this.Hc.X(this.api,"presentingplayerstatechange",this.f6);this.Z=this.Hc.X(this.api,"progresssync",this.A7);this.A_=z;this.A_===1&&this.A7()}; g.Tj=function(Q){g.m.call(this,{G:"div",W:[{G:"div",J:"ytp-bezel-text-wrapper",W:[{G:"div",J:"ytp-bezel-text",BI:"{{title}}"}]},{G:"div",J:"ytp-bezel",T:{role:"status","aria-label":"{{label}}"},W:[{G:"div",J:"ytp-bezel-icon",BI:"{{icon}}"}]}]});this.K=Q;this.B=new g.e_(this.show,10,this);Q=this.K.V("delhi_modern_web_player")?1E3:500;this.Z=new g.e_(this.hide,Q,this);g.W(this,this.B);g.W(this,this.Z);this.hide()}; lN=function(Q,z,H){if(z<=0){H=Yj();z="muted";var f=0}else H=H?{G:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",w4:!0,T:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{G:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",w4:!0,T:{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"}}]},f=Math.floor(z),z=f+"volume";eH(Q,H,z,f+"%")}; AwY=function(Q,z){z=z?{G:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",w4:!0,J:"ytp-svg-fill",T:{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"}}]}:J1_();var H=Q.K.getPlaybackRate(),f=g.EB("Speed is $RATE",{RATE:String(H)});eH(Q,z,f,H+"x")}; YL9=function(Q,z){z=z?"Subtitles/closed captions on":"Subtitles/closed captions off";eH(Q,XBA(),z)}; eH=function(Q,z,H,f){f=f===void 0?"":f;Q.updateValue("label",H===void 0?"":H);Q.updateValue("icon",z);g.QM(Q.Z);Q.B.start();Q.updateValue("title",f);g.qP(Q.element,"ytp-bezel-text-hide",!f)}; rwJ=function(Q,z){g.m.call(this,{G:"button",lT:["ytp-button","ytp-cards-button"],T:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.xh(Q.C()))},W:[{G:"span",J:"ytp-cards-button-icon-default",W:[{G:"div",J:"ytp-cards-button-icon",W:[Q.C().V("player_new_info_card_format")?A16():{G:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",w4:!0,J:"ytp-svg-fill",T:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]}, {G:"div",J:"ytp-cards-button-title",BI:"Info"}]},{G:"span",J:"ytp-cards-button-icon-shopping",W:[{G:"div",J:"ytp-cards-button-icon",W:[{G:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",J:"ytp-svg-shadow",T:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{G:"path",J:"ytp-svg-fill",T:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z", "fill-opacity":"1"}},{G:"path",J:"ytp-svg-shadow-fill",T:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{G:"div", J:"ytp-cards-button-title",BI:"Shopping"}]}]});this.K=Q;this.L=z;this.Z=null;this.B=new g.H6(this,250,!0,100);g.W(this,this.B);g.qP(this.L,"ytp-show-cards-title",g.xh(Q.C()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.onHover);this.KR(!0)}; sPv=function(Q,z){g.m.call(this,{G:"div",J:"ytp-cards-teaser",W:[{G:"div",J:"ytp-cards-teaser-box"},{G:"div",J:"ytp-cards-teaser-text",W:Q.C().V("player_new_info_card_format")?[{G:"button",J:"ytp-cards-teaser-info-icon",T:{"aria-label":"Show cards","aria-haspopup":"true"},W:[A16()]},{G:"span",J:"ytp-cards-teaser-label",BI:"{{text}}"},{G:"button",J:"ytp-cards-teaser-close-button",T:{"aria-label":"Close"},W:[g.jE()]}]:[{G:"span",J:"ytp-cards-teaser-label",BI:"{{text}}"}]}]});var H=this;this.K=Q;this.aJ= z;this.D=new g.H6(this,250,!1,250);this.Z=null;this.N=new g.e_(this.x4l,300,this);this.Y=new g.e_(this.P8n,2E3,this);this.j=[];this.B=null;this.U=new g.e_(function(){H.element.style.margin="0"},250); this.onClickCommand=this.L=null;g.W(this,this.D);g.W(this,this.N);g.W(this,this.Y);g.W(this,this.U);Q.C().V("player_new_info_card_format")?(g.SK(Q.getRootNode(),"ytp-cards-teaser-dismissible"),this.X(this.Mc("ytp-cards-teaser-close-button"),"click",this.Au),this.X(this.Mc("ytp-cards-teaser-info-icon"),"click",this.w8),this.X(this.Mc("ytp-cards-teaser-label"),"click",this.w8)):this.listen("click",this.w8);this.X(z.element,"mouseover",this.O9);this.X(z.element,"mouseout",this.Hu);this.X(Q,"cardsteasershow", this.jyv);this.X(Q,"cardsteaserhide",this.fH);this.X(Q,"cardstatechange",this.pF);this.X(Q,"presentingplayerstatechange",this.pF);this.X(Q,"appresize",this.Os);this.X(Q,"onShowControls",this.Os);this.X(Q,"onHideControls",this.Bi);this.listen("mouseenter",this.V3)}; BQA=function(Q){g.m.call(this,{G:"button",lT:[RO.BUTTON,RO.TITLE_NOTIFICATIONS],T:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},W:[{G:"div",J:RO.TITLE_NOTIFICATIONS_ON,T:{title:"Stop receiving notifications about every new video","aria-label":"Notify subscriptions"},W:[g.Oc()]},{G:"div",J:RO.TITLE_NOTIFICATIONS_OFF,T:{title:"Receive notifications about every new video","aria-label":"Notify subscriptions"},W:[{G:"svg",T:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},W:[{G:"path", T:{d:"M18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}]}]});this.api=Q;this.Z=!1;Q.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Receive notifications about every new video")}; Pep=function(Q,z){Q.Z=z;Q.element.classList.toggle(RO.NOTIFICATIONS_ENABLED,Q.Z);var H=Q.api.getVideoData();H?(z=z?H.Z_:H.HX)?(Q=Q.api.Vk())?wE(Q,z):g.BT(Error("No innertube service available when updating notification preferences.")):g.BT(Error("No update preferences command available.")):g.BT(Error("No video data when updating notification preferences."))}; Uc8=function(Q,z,H){var f=f===void 0?800:f;var b=b===void 0?600:b;var L=document.location.protocol;Q=jI9(L+"//"+Q+"/signin?context=popup","feature",z,"next",L+"//"+location.hostname+"/post_login");a2v(Q,H,f,b)}; a2v=function(Q,z,H,f){H=H===void 0?800:H;f=f===void 0?600:f;if(Q=g.UK(window,Q,"loginPopup","width="+H+",height="+f+",resizable=yes,scrollbars=yes"))o7a(function(){z()}),Q.moveTo((screen.width-H)/2,(screen.height-f)/2)}; g.QI=function(Q,z,H,f,b,L,u,X,v,y,q,M){Q=Q.charAt(0)+Q.substring(1).toLowerCase();H=H.charAt(0)+H.substring(1).toLowerCase();if(z==="0"||z==="-1")z=null;if(f==="0"||f==="-1")f=null;var C=q.C(),t=C.userDisplayName&&g.AE(C);g.m.call(this,{G:"div",lT:["ytp-button","ytp-sb"],W:[{G:"div",J:"ytp-sb-subscribe",T:t?{title:g.EB("Subscribe as $USER_NAME",{USER_NAME:C.userDisplayName}),"aria-label":"Subscribe to channel","data-tooltip-image":Rl(C),"data-tooltip-opaque":String(g.xh(C)),tabindex:"0",role:"button"}: {"aria-label":"Subscribe to channel"},W:[{G:"div",J:"ytp-sb-text",W:[{G:"div",J:"ytp-sb-icon"},Q]},z?{G:"div",J:"ytp-sb-count",BI:z}:""]},{G:"div",J:"ytp-sb-unsubscribe",T:t?{title:g.EB("Subscribed as $USER_NAME",{USER_NAME:C.userDisplayName}),"aria-label":"Unsubscribe from channel","data-tooltip-image":Rl(C),"data-tooltip-opaque":String(g.xh(C)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe from channel"},W:[{G:"div",J:"ytp-sb-text",W:[{G:"div",J:"ytp-sb-icon"},H]},f?{G:"div",J:"ytp-sb-count", BI:f}:""]}],T:{"aria-live":"polite"}});var E=this;this.channelId=u;this.K=q;this.L=M;var G=this.Mc("ytp-sb-subscribe"),x=this.Mc("ytp-sb-unsubscribe");L&&g.SK(this.element,"ytp-sb-classic");if(b){X?this.Z():this.B();var J=function(){if(C.L3){var r=E.channelId;if(v||y){var U={c:r};var D;g.AK.isInitialized()&&(D=JOA(U));U=D||"";if(D=q.getVideoData())if(D=D.subscribeCommand){var T=q.Vk();T?(wE(T,D,{botguardResponse:U,feature:v}),q.F$("SUBSCRIBE",r)):g.BT(Error("No innertube service available when updating subscriptions."))}else g.BT(Error("No subscribe command in videoData.")); else g.BT(Error("No video data available when updating subscription."))}x.focus();x.removeAttribute("aria-hidden");G.setAttribute("aria-hidden","true")}else Uc8(g.W0(E.K.C()),"sb_button",E.D)},I=function(){var r=E.channelId; if(v||y){var U=q.getVideoData();wE(q.Vk(),U.unsubscribeCommand,{feature:v});q.F$("UNSUBSCRIBE",r)}G.focus();G.removeAttribute("aria-hidden");x.setAttribute("aria-hidden","true")}; this.X(G,"click",J);this.X(x,"click",I);this.X(G,"keypress",function(r){r.keyCode===13&&J(r)}); this.X(x,"keypress",function(r){r.keyCode===13&&I(r)}); this.X(q,"SUBSCRIBE",this.Z);this.X(q,"UNSUBSCRIBE",this.B);this.L&&t&&(V39(q),Fv(q,G,this),Fv(q,x,this))}else g.SK(G,"ytp-sb-disabled"),g.SK(x,"ytp-sb-disabled")}; hGA=function(Q){g.m.call(this,{G:"div",J:"ytp-title-channel",W:[{G:"div",J:"ytp-title-beacon"},{G:"a",J:"ytp-title-channel-logo",T:{href:"{{channelLink}}",target:Q.C().U,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{G:"div",J:"ytp-title-expanded-overlay",T:{"aria-hidden":"{{flyoutUnfocusable}}"},W:[{G:"div",J:"ytp-title-expanded-heading",W:[{G:"div",J:"ytp-title-expanded-title",W:[{G:"a",BI:"{{expandedTitle}}",T:{href:"{{channelTitleLink}}",target:Q.C().U,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{G:"div",J:"ytp-title-expanded-subtitle",BI:"{{expandedSubtitle}}",T:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var z=this;this.api=Q;this.channel=this.Mc("ytp-title-channel");this.B=this.Mc("ytp-title-channel-logo");this.channelName=this.Mc("ytp-title-expanded-title");this.j=this.Mc("ytp-title-expanded-overlay");this.L=this.Z=this.subscribeButton=null;this.D=!1;Q.createClientVe(this.B,this,36925);Q.createClientVe(this.channelName,this, 37220);g.xh(this.api.C())&&cw_(this);this.X(Q,"videodatachange",this.Jh);this.X(Q,"videoplayerreset",this.Jh);this.X(this.channelName,"click",function(H){z.api.logClick(z.channelName);g.UK(window,iJJ(z));H.preventDefault()}); this.X(this.B,"click",this.fSe);this.Jh()}; WLc=function(Q){if(!Q.api.C().UY){var z=Q.api.getVideoData(),H=new g.QI("Subscribe",null,"Subscribed",null,!0,!1,z.HG,z.subscribed,"channel_avatar",null,Q.api,!0);Q.api.createServerVe(H.element,Q);var f;Q.api.setTrackingParams(H.element,((f=z.subscribeButtonRenderer)==null?void 0:f.trackingParams)||null);Q.X(H.element,"click",function(){Q.api.logClick(H.element)}); Q.subscribeButton=H;g.W(Q,Q.subscribeButton);Q.subscribeButton.Gv(Q.j);Q.subscribeButton.hide();var b=new BQA(Q.api);Q.Z=b;g.W(Q,b);b.Gv(Q.j);b.hide();Q.X(Q.api,"SUBSCRIBE",function(){z.zO&&(b.show(),Q.api.logVisibility(b.element,!0))}); Q.X(Q.api,"UNSUBSCRIBE",function(){z.zO&&(b.hide(),Q.api.logVisibility(b.element,!1),Pep(b,!1))})}}; cw_=function(Q){var z=Q.api.C();WLc(Q);Q.updateValue("flyoutUnfocusable","true");Q.updateValue("channelTitleFocusable","-1");Q.updateValue("shouldHideExpandedTitleForA11y","true");Q.updateValue("shouldHideExpandedSubtitleForA11y","true");z.B||z.En||(Q.X(Q.channel,"mouseenter",Q.Zh),Q.X(Q.channel,"mouseleave",Q.kS),Q.X(Q.channel,"focusin",Q.Zh),Q.X(Q.channel,"focusout",function(H){Q.channel.contains(H.relatedTarget)||Q.kS()})); Q.L=new g.e_(function(){Q.isExpanded()&&(Q.api.logVisibility(Q.channelName,!1),Q.subscribeButton&&(Q.subscribeButton.hide(),Q.api.logVisibility(Q.subscribeButton.element,!1)),Q.Z&&(Q.Z.hide(),Q.api.logVisibility(Q.Z.element,!1)),Q.channel.classList.remove("ytp-title-expanded"),Q.channel.classList.add("ytp-title-show-collapsed"))},500); g.W(Q,Q.L);Q.X(Q.channel,Dc6,function(){KL_(Q)}); Q.X(Q.api,"onHideControls",Q.OB);Q.X(Q.api,"appresize",Q.OB);Q.X(Q.api,"fullscreentoggled",Q.OB)}; KL_=function(Q){Q.channel.classList.remove("ytp-title-show-collapsed");Q.channel.classList.remove("ytp-title-show-expanded")}; VQ_=function(Q){var z=Q.api.getPlayerSize();return g.xh(Q.api.C())&&z.width>=524}; iJJ=function(Q){var z=Q.api.C(),H=Q.api.getVideoData(),f=g.Qc(z)+H.KH;g.fR(H)&&(f="https://music.youtube.com"+H.KH);if(!g.xh(z))return f;z={};g.yw(Q.api,"addEmbedsConversionTrackingParams",[z]);return g.Ve(f,z)}; zf=function(Q){var z=g.mh({"aria-haspopup":"true"});g.dX.call(this,z,Q);this.listen("keydown",this.Z)}; Hp=function(Q,z){Q.element.setAttribute("aria-haspopup",String(z))}; dcn=function(Q,z){g.m.call(this,{G:"div",J:"ytp-user-info-panel",T:{"aria-label":"User info"},W:Q.C().L3&&!Q.V("embeds_web_always_enable_signed_out_state")?[{G:"div",J:"ytp-user-info-panel-icon",BI:"{{icon}}"},{G:"div",J:"ytp-user-info-panel-content",W:[{G:"div",J:"ytp-user-info-panel-info",T:{tabIndex:"{{userInfoFocusable}}",role:"text"},BI:"{{watchingAsUsername}}"},{G:"div",J:"ytp-user-info-panel-info",T:{tabIndex:"{{userInfoFocusable2}}",role:"text"},BI:"{{watchingAsEmail}}"}]}]:[{G:"div",J:"ytp-user-info-panel-icon", BI:"{{icon}}"},{G:"div",J:"ytp-user-info-panel-content",W:[{G:"div",W:[{G:"text",T:{tabIndex:"{{userInfoFocusable}}"},BI:"Signed out"}]},{G:"div",J:"ytp-user-info-panel-login",W:[{G:"a",T:{tabIndex:"{{userInfoFocusable2}}",role:"button"},BI:Q.C().UY?"":"Sign in on YouTube"}]}]}]});this.Yv=Q;this.Z=z;Q.C().L3||Q.C().UY||this.X(this.Mc("ytp-user-info-panel-login"),"click",this.cA);this.closeButton=new g.m({G:"button",lT:["ytp-collapse","ytp-button"],T:{title:"Close"},W:[g.AB()]});this.closeButton.Gv(this.element); g.W(this,this.closeButton);this.X(window,"blur",this.hide);this.X(document,"click",this.n6);this.Jh()}; wgp=function(Q,z,H){g.Az.call(this,Q);this.kt=z;this.sZ=H;this.getVideoUrl=new zf(6);this.Rm=new zf(5);this.Cr=new zf(4);this.TL=new zf(3);this.gM=new g.dX(g.mh({href:"{{href}}",target:this.K.C().U},void 0,!0),2,"Troubleshoot playback issue");this.showVideoInfo=new g.dX(g.mh(),1,"Stats for nerds");this.C_=new g.Ca({G:"div",lT:["ytp-copytext","ytp-no-contextmenu"],T:{draggable:"false",tabindex:"1"},BI:"{{text}}"});this.uX=new Ii(this.K,this.C_);this.ow=this.xG=null;g.xh(this.K.C())&&(this.closeButton= new g.m({G:"button",lT:["ytp-collapse","ytp-button"],T:{title:"Close"},W:[g.AB()]}),g.W(this,this.closeButton),this.closeButton.Gv(this.element),this.closeButton.listen("click",this.M6,this));g.xh(this.K.C())&&(this.Wl=new g.dX(g.mh(),8,"Account"),g.W(this,this.Wl),this.md(this.Wl,!0),this.Wl.listen("click",this.qj$,this),Q.createClientVe(this.Wl.element,this.Wl,137682));this.K.C().B5&&(this.i$=new fK("Loop",7),g.W(this,this.i$),this.md(this.i$,!0),this.i$.listen("click",this.osh,this),Q.createClientVe(this.i$.element, this.i$,28661));g.W(this,this.getVideoUrl);this.md(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.txl,this);Q.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.W(this,this.Rm);this.md(this.Rm,!0);this.Rm.listen("click",this.R93,this);Q.createClientVe(this.Rm.element,this.Rm,28660);g.W(this,this.Cr);this.md(this.Cr,!0);this.Cr.listen("click",this.FdI,this);Q.createClientVe(this.Cr.element,this.Cr,28658);g.W(this,this.TL);this.md(this.TL,!0);this.TL.listen("click",this.N4$, this);g.W(this,this.gM);this.md(this.gM,!0);this.gM.listen("click",this.uh$,this);g.W(this,this.showVideoInfo);this.md(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.L4I,this);g.W(this,this.C_);this.C_.listen("click",this.c7h,this);g.W(this,this.uX);z=document.queryCommandSupported&&document.queryCommandSupported("copy");w_p("Chromium")>=43&&(z=!0);w_p("Firefox")<=40&&(z=!1);z&&(this.xG=new g.m({G:"textarea",J:"ytp-html5-clipboard",T:{readonly:"",tabindex:"-1"}}),g.W(this,this.xG), this.xG.Gv(this.element));var f;(f=this.Wl)==null||f.setIcon(BGp());var b;(b=this.i$)==null||b.setIcon({G:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{G:"path",T:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});this.TL.setIcon({G:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{G:"path",T:{"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.gM.setIcon(NGA());this.showVideoInfo.setIcon(IEp());this.X(Q,"onLoopChange",this.onLoopChange);this.X(Q,"videodatachange",this.onVideoDataChange);mcc(this);this.Yg(this.K.getVideoData())}; fU=function(Q,z){var H=!1;if(Q.xG){var f=Q.xG.element;f.value=z;f.select();try{H=document.execCommand("copy")}catch(b){}}H?Q.kt.fH():(Q.C_.UV(z,"text"),g.sk(Q.kt,Q.uX),X1(Q.C_.element),Q.xG&&(Q.xG=null,mcc(Q)));return H}; mcc=function(Q){var z=!!Q.xG;g.Vw(Q.TL,z?"Copy debug info":"Get debug info");Hp(Q.TL,!z);g.Vw(Q.Cr,z?"Copy embed code":"Get embed code");Hp(Q.Cr,!z);g.Vw(Q.getVideoUrl,z?"Copy video URL":"Get video URL");Hp(Q.getVideoUrl,!z);g.Vw(Q.Rm,z?"Copy video URL at current time":"Get video URL at current time");Hp(Q.Rm,!z);Q.Cr.setIcon(z?Ofn():null);Q.getVideoUrl.setIcon(z?Fp():null);Q.Rm.setIcon(z?Fp():null)}; kDk=function(Q){return g.xh(Q.K.C())?Q.Wl:Q.i$}; eGL=function(Q,z){g.rI.call(this,Q);this.sZ=z;this.D=new g.Bt(this);this.wh=new g.e_(this.mBv,1E3,this);this.L3=this.L=null;g.W(this,this.D);g.W(this,this.wh);z=this.K.C();Q.createClientVe(this.element,this,28656);g.SK(this.element,"ytp-contextmenu");this.K.C().experiments.Nc("delhi_modern_web_player")&&g.mD(z)&&g.SK(this.element,"ytp-delhi-modern-contextmenu");TQp(this);this.hide()}; TQp=function(Q){g.Aq(Q.D);var z=Q.K.C();z.playerStyle==="gvn"||z.B||z.En||(z=Q.K.Un(),Q.D.X(z,"contextmenu",Q.mie),Q.D.X(z,"touchstart",Q.onTouchStart,null,!0),Q.D.X(z,"touchmove",Q.P9,null,!0),Q.D.X(z,"touchend",Q.P9,null,!0))}; l29=function(Q){Q.K.isFullscreen()?g.sZ(Q.K,Q.element,10):Q.Gv(WG(Q).body)}; bs=function(Q,z,H){H=H===void 0?240:H;g.m.call(this,{G:"button",lT:["ytp-button","ytp-copylink-button"],T:{title:"{{title-attr}}","data-tooltip-opaque":String(g.xh(Q.C()))},W:[{G:"div",J:"ytp-copylink-icon",BI:"{{icon}}"},{G:"div",J:"ytp-copylink-title",BI:"Copy link",T:{"aria-hidden":"true"}}]});this.api=Q;this.Z=z;this.B=H;this.visible=!1;this.tooltip=this.Z.xJ();z=Q.C();this.tooltip.element.setAttribute("aria-live","polite");g.qP(this.element,"ytp-show-copylink-title",g.xh(z));Q.createClientVe(this.element, this,86570);this.listen("click",this.onClick);this.X(Q,"videodatachange",this.Jh);this.X(Q,"videoplayerreset",this.Jh);this.X(Q,"appresize",this.Jh);this.Jh();this.addOnDisposeCallback(g.j1(this.tooltip,this.element))}; RGY=function(Q){var z=Q.api.C(),H=Q.api.getVideoData(),f=Q.api.Un().getPlayerSize().width;z=z.L;return!!H.videoId&&f>=Q.B&&H.Sl&&!g.zI(H)&&!Q.api.isEmbedsShortsMode()&&!z}; Q5c=function(Q){Q.updateValue("icon",gs());if(Q.api.C().B)Q.tooltip.Ag(Q.element,"Link copied to clipboard");else{Q.updateValue("title-attr","Link copied to clipboard");Q.tooltip.UX();Q.tooltip.Ag(Q.element);var z=Q.listen("mouseleave",function(){Q.DS(z);Q.Jh();Q.tooltip.Lg()})}}; zNu=function(Q,z){return g.B(function(H){if(H.Z==1)return g.$v(H,2),g.Y(H,navigator.clipboard.writeText(z),4);if(H.Z!=2)return H.return(!0);g.xv(H);var f=H.return,b=!1,L=g.Hx("TEXTAREA");L.value=z;L.setAttribute("readonly","");var u=Q.api.getRootNode();u.appendChild(L);if(wG){var X=window.getSelection();X.removeAllRanges();var v=document.createRange();v.selectNodeContents(L);X.addRange(v);L.setSelectionRange(0,z.length)}else L.select();try{b=document.execCommand("copy")}catch(y){}u.removeChild(L); return f.call(H,b)})}; LU=function(Q){g.m.call(this,{G:"div",J:"ytp-doubletap-ui-legacy",W:[{G:"div",J:"ytp-doubletap-fast-forward-ve"},{G:"div",J:"ytp-doubletap-rewind-ve"},{G:"div",J:"ytp-doubletap-static-circle",W:[{G:"div",J:"ytp-doubletap-ripple"}]},{G:"div",J:"ytp-doubletap-overlay-a11y"},{G:"div",J:"ytp-doubletap-seek-info-container",W:[{G:"div",J:"ytp-doubletap-arrows-container",W:[{G:"span",J:"ytp-doubletap-base-arrow"},{G:"span",J:"ytp-doubletap-base-arrow"},{G:"span",J:"ytp-doubletap-base-arrow"}]},{G:"div", J:"ytp-doubletap-tooltip",W:[{G:"div",J:"ytp-seek-icon-text-container",W:[{G:"div",J:"ytp-seek-icon",BI:"{{seekIcon}}"},{G:"div",J:"ytp-chapter-seek-text-legacy",BI:"{{seekText}}"}]},{G:"div",J:"ytp-doubletap-tooltip-label",BI:"{{seekTime}}"}]}]}]});this.K=Q;this.D=new g.e_(this.show,10,this);this.B=new g.e_(this.hide,700,this);this.Y=this.L=0;this.Ze=this.j=!1;this.Z=this.Mc("ytp-doubletap-static-circle");g.W(this,this.D);g.W(this,this.B);this.hide();this.N=this.Mc("ytp-doubletap-fast-forward-ve"); this.U=this.Mc("ytp-doubletap-rewind-ve");this.K.createClientVe(this.N,this,28240);this.K.createClientVe(this.U,this,28239);this.K.logVisibility(this.N,!0);this.K.logVisibility(this.U,!0);this.j=Q.V("web_show_cumulative_seek_time");this.Ze=Q.V("web_center_static_circles")}; us=function(Q,z,H,f){if(f=f===void 0?null:f){var b=z===-1?Q.U.visualElement:Q.N.visualElement;f={seekData:f};var L=g.ox();L&&g.QC(Rx)(void 0,L,b,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",f,void 0)}Q.L=z===Q.Y?Q.L+H:H;Q.Y=z;b=Q.K.Un().getPlayerSize();Q.j?Q.B.stop():g.QM(Q.B);Q.D.start();Q.element.setAttribute("data-side",z===-1?"back":"forward");g.SK(Q.element,"ytp-time-seeking");Q.Z.style.width="110px";Q.Z.style.height="110px";f=b.width*.1-15;z===1?Q.Ze?(Q.Z.style.right=f+"px",Q.Z.style.left=""): (Q.Z.style.right="",Q.Z.style.left=b.width*.8-30+"px"):z===-1&&(Q.Ze?(Q.Z.style.right="",Q.Z.style.left=f+"px"):(Q.Z.style.right="",Q.Z.style.left=b.width*.1-15+"px"));Q.Z.style.top=b.height*.5+15+"px";H08(Q,Q.j?Q.L:H)}; SO=function(Q,z,H,f){f=f===void 0?null:f;g.QM(Q.B);Q.D.start();switch(z){case -1:z="back";break;case 1:z="forward";break;default:z=""}Q.element.setAttribute("data-side",z);Q.Z.style.width="0";Q.Z.style.height="0";g.SK(Q.element,"ytp-chapter-seek");Q.updateValue("seekText",H);Q.updateValue("seekTime","");H=Q.Mc("ytp-seek-icon");if(f){a:if(f){switch(f){case "PREMIUM_STANDALONE":f={G:"svg",T:{height:"24px",version:"1.1",viewBox:"-2 -2 24 24",width:"24px"},W:[{G:"path",T:{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"}},{G:"path",T:{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":f={G:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{G:"rect",T:{fill:"white",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{G:"rect",T:{fill:"url(#ytp-premium-standalone-gradient)",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{G:"path",T:{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"}},{G:"defs",W:[{G:"linearGradient",T:{gradientUnits:"userSpaceOnUse",id:"ytp-premium-standalone-gradient",x1:"2",x2:"22",y1:"22",y2:"2"},W:[{G:"stop",T:{offset:"0.3","stop-color":"#E1002D"}},{G:"stop",T:{offset:"0.9","stop-color":"#E01378"}}]}]}]};break a}f=void 0}else f=null;Q.updateValue("seekIcon",f);H.style.display="inline-block"}else H.style.display="none"}; H08=function(Q,z){z=g.EB("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:z.toString()});Q.updateValue("seekTime",z)}; fBY=function(Q){Np.call(this,Q,!1,!0);this.De=[];this.EY=[];this.N=!0;this.badge.element.classList.add("ytp-featured-product");this.yl=new g.m({G:"div",J:"ytp-featured-product-open-in-new"});g.W(this,this.yl);this.countdownTimer=new g.m({G:"text",J:"ytp-featured-product-countdown",BI:"{{content}}"});this.countdownTimer.hide();g.W(this,this.countdownTimer);this.B=new g.m({G:"div",J:"ytp-featured-product-trending",W:[{G:"div",J:"ytp-featured-product-trending-icon"},{G:"text",J:"ytp-featured-product-trending-text", BI:"{{trendingOffer}}"}]});this.B.hide();g.W(this,this.B);this.overflowButton=new g.m({G:"button",lT:["ytp-featured-product-overflow-icon","ytp-button"],T:{"aria-haspopup":"true"}});this.overflowButton.hide();g.W(this,this.overflowButton);this.Y=new g.m({G:"text",J:"ytp-featured-product-exclusive-countdown",BI:"{{content}}",T:{id:"exclusiveCountdown","aria-hidden":"true"}});this.Y.hide();g.W(this,this.Y);this.j=new g.m({G:"div",J:"ytp-featured-product-exclusive-container",T:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"}, W:[{G:"div",J:"ytp-featured-product-exclusive-badge-container",W:[{G:"div",J:"ytp-featured-product-exclusive-badge",W:[{G:"text",J:"ytp-featured-product-exclusive-badge-text",BI:"{{exclusive}}",T:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.Y]});this.j.hide();g.W(this,this.j);this.banner=new g.m({G:"a",J:"ytp-featured-product-container",W:[{G:"div",J:"ytp-featured-product-thumbnail",W:[{G:"img",T:{src:"{{thumbnail}}"}},this.yl]},{G:"div",J:"ytp-featured-product-details",W:[{G:"text",J:"ytp-featured-product-title", BI:"{{title}}"},this.K.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{G:"div",J:"ytp-featured-product-price-container",T:{"aria-label":"{{priceA11yText}}"},W:[{G:"text",J:"ytp-featured-product-price-when-promotion-text-enabled",BI:"{{price}}",T:{"aria-hidden":"true"}},{G:"text",J:"ytp-featured-product-promotion-text",BI:"{{promotionText}}",T:{"aria-hidden":"true"}}]}:{G:"div",T:{"aria-label":"{{priceA11yText}}"},W:[{G:"text",J:"ytp-featured-product-price",BI:"{{price}}", T:{"aria-hidden":"true"}},{G:"text",J:"ytp-featured-product-sales-original-price",BI:"{{salesOriginalPrice}}",T:{"aria-hidden":"true"}},{G:"text",J:"ytp-featured-product-price-drop-reference-price",BI:"{{priceDropReferencePrice}}",T:{"aria-hidden":"true"}}]},this.K.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{G:"div",J:"ytp-featured-product-when-promotion-text-enabled",W:[{G:"text",J:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled",BI:"{{affiliateDisclaimer}}"}, this.B,{G:"text",J:"ytp-featured-product-vendor-when-promotion-text-enabled",BI:"{{vendor}}"}]}:{G:"div",W:[{G:"text",J:"ytp-featured-product-affiliate-disclaimer",BI:"{{affiliateDisclaimer}}"},this.K.V("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.j:null,this.B,{G:"text",J:"ytp-featured-product-vendor",BI:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.W(this,this.banner);this.banner.Gv(this.L.element);this.X(this.K,g.bc("featured_product"),this.HA3);this.X(this.K, g.Li("featured_product"),this.WJ);this.X(this.K,"videodatachange",this.onVideoDataChange);this.X(this.overflowButton.element,"click",this.vA);this.X(Q,"featuredproductdismissed",this.XE)}; b0L=function(Q){var z,H;Q=(z=Q.Z)==null?void 0:(H=z.bannerData)==null?void 0:H.itemData;var f,b,L;return(Q==null||!Q.affiliateDisclaimer)&&(Q==null?0:(f=Q.exclusivesData)==null?0:f.exclusiveOfferLabelText)&&(Q==null?0:(b=Q.exclusivesData)==null?0:b.expirationTimestampMs)&&(Q==null?0:(L=Q.exclusivesData)==null?0:L.exclusiveOfferCountdownText)?!0:!1}; ulJ=function(Q){var z,H,f,b,L=(z=Q.Z)==null?void 0:(H=z.bannerData)==null?void 0:(f=H.itemData)==null?void 0:(b=f.exclusivesData)==null?void 0:b.expirationTimestampMs;z=(Number(L)-Date.now())/1E3;if(z>0){if(z<604800){var u,X,v,y;H=(u=Q.Z)==null?void 0:(X=u.bannerData)==null?void 0:(v=X.itemData)==null?void 0:(y=v.exclusivesData)==null?void 0:y.exclusiveOfferCountdownText;if(H!==void 0)for(u=Date.now(),X=g.n(H),v=X.next();!v.done;v=X.next())if(v=v.value,v!==void 0&&v.text!==void 0&&(y=Number(v.textDisplayStartTimestampMs), !isNaN(y)&&u>=y)){v.insertCountdown?(z=v.text.replace(/\$0/,String(pE({seconds:z}))),Q.Y.UV(z)):Q.Y.UV(v.text);Q.Y.show();break}}var q,M,C,t;Q.j.update({exclusive:(q=Q.Z)==null?void 0:(M=q.bannerData)==null?void 0:(C=M.itemData)==null?void 0:(t=C.exclusivesData)==null?void 0:t.exclusiveOfferLabelText});Q.j.show();X6(Q);var E;(E=Q.Wz)==null||E.start()}else LHc(Q)}; LHc=function(Q){var z;(z=Q.Wz)==null||z.stop();Q.Y.hide();Q.j.hide();vp(Q)}; Sp9=function(Q){var z,H,f=(z=Q.Z)==null?void 0:(H=z.bannerData)==null?void 0:H.itemData;return Q.K.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(f==null||!f.priceReplacementText)&&(f==null?0:f.promotionText)?f==null?void 0:f.promotionText.content:null}; XyY=function(Q){var z,H,f=(z=Q.Z)==null?void 0:(H=z.bannerData)==null?void 0:H.itemData,b,L;if(!(f!=null&&f.priceReplacementText||Q.K.V("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(f==null?0:(b=f.dealsData)==null?0:(L=b.sales)==null?0:L.originalPrice)){var u,X;return f==null?void 0:(u=f.dealsData)==null?void 0:(X=u.sales)==null?void 0:X.originalPrice}return null}; v5k=function(Q){var z,H,f=(z=Q.Z)==null?void 0:(H=z.bannerData)==null?void 0:H.itemData,b,L,u,X;if(!((f==null?0:f.priceReplacementText)||Q.K.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(f==null?0:(b=f.dealsData)==null?0:(L=b.sales)==null?0:L.originalPrice))&&(f==null?0:(u=f.dealsData)==null?0:(X=u.priceDrop)==null?0:X.referencePrice)){var v,y;return f==null?void 0:(v=f.dealsData)==null?void 0:(y=v.priceDrop)==null?void 0:y.referencePrice}return null}; yon=function(Q){var z,H,f=(z=Q.Z)==null?void 0:(H=z.bannerData)==null?void 0:H.itemData;if(f==null?0:f.priceReplacementText)return f==null?void 0:f.priceReplacementText;if((f==null?0:f.promotionText)&&Q.K.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var b;return(f==null?void 0:f.price)+" "+(f==null?void 0:(b=f.promotionText)==null?void 0:b.content)}var L,u;if(f==null?0:(L=f.dealsData)==null?0:(u=L.sales)==null?0:u.originalPrice){var X,v;return f==null?void 0:(X=f.dealsData)== null?void 0:(v=X.sales)==null?void 0:v.salesPriceAccessibilityLabel}var y,q;if(f==null?0:(y=f.dealsData)==null?0:(q=y.priceDrop)==null?0:q.referencePrice){var M,C;return(f==null?void 0:f.price)+" "+(f==null?void 0:(M=f.dealsData)==null?void 0:(C=M.priceDrop)==null?void 0:C.referencePrice)}return f==null?void 0:f.price}; qpJ=function(Q){if(Q.K.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var z,H,f;return Q.B.LH?null:(z=Q.Z)==null?void 0:(H=z.bannerData)==null?void 0:(f=H.itemData)==null?void 0:f.vendorName}var b,L,u,X,v,y;return Q.B.LH||Q.j.LH||((b=Q.Z)==null?0:(L=b.bannerData)==null?0:(u=L.itemData)==null?0:u.affiliateDisclaimer)?null:(X=Q.Z)==null?void 0:(v=X.bannerData)==null?void 0:(y=v.itemData)==null?void 0:y.vendorName}; C7p=function(Q,z){yI(Q);if(z){var H=g.Qt.getState().entities;H=vX(H,"featuredProductsEntity",z);if(H!=null&&H.productsData){z=[];H=g.n(H.productsData);for(var f=H.next();!f.done;f=H.next()){f=f.value;var b=void 0;if((b=f)!=null&&b.identifier&&f.featuredSegments){Q.De.push(f);var L=void 0;b=g.n((L=f)==null?void 0:L.featuredSegments);for(L=b.next();!L.done;L=b.next()){var u=L.value;L=M6Y(u.startTimeSec);L!==void 0&&(u=M6Y(u.endTimeSec),z.push(new g.HD(L*1E3,u===void 0?0x7ffffffffffff:u*1E3,{id:f.identifier, namespace:"featured_product"})))}}}Q.K.UZ(z)}}}; vp=function(Q){if(Q.trendingOfferEntityKey){var z=g.Qt.getState().entities;if(z=vX(z,"trendingOfferEntity",Q.trendingOfferEntityKey)){var H,f,b;z.encodedSkuId!==((H=Q.Z)==null?void 0:(f=H.bannerData)==null?void 0:(b=f.itemData)==null?void 0:b.encodedOfferSkuId)?X6(Q):(Q.B.update({trendingOffer:z.shortLabel+" \u2022 "+z.countLabel}),Q.B.show(),Q.banner.update({vendor:qpJ(Q)}))}else X6(Q)}else X6(Q)}; X6=function(Q){Q.B.hide();Q.banner.update({vendor:qpJ(Q)})}; yI=function(Q){Q.De=[];Q.WJ();Q.K.Ys("featured_product")}; t6J=function(Q){var z,H,f,b,L=(z=Q.Z)==null?void 0:(H=z.bannerData)==null?void 0:(f=H.itemData)==null?void 0:(b=f.hiddenProductOptions)==null?void 0:b.dropTimestampMs;z=(Number(L)-Date.now())/1E3;Q.countdownTimer.UV(pE({seconds:z}));if(z>0){var u;(u=Q.Xa)==null||u.start()}}; E5Y=function(Q){var z;(z=Q.Xa)==null||z.stop();Q.countdownTimer.hide()}; M6Y=function(Q){if(Q!==void 0&&Q.trim()!==""&&(Q=Math.trunc(Number(Q.trim())),!(isNaN(Q)||Q<0)))return Q}; Gm9=function(Q,z,H){g.m.call(this,{G:"div",lT:["ytp-info-panel-action-item"],W:[{G:"div",J:"ytp-info-panel-action-item-disclaimer",BI:"{{disclaimer}}"},{G:"a",lT:["ytp-info-panel-action-item-button","ytp-button"],T:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},W:[{G:"div",J:"ytp-info-panel-action-item-icon",BI:"{{icon}}"},{G:"div",J:"ytp-info-panel-action-item-label",BI:"{{label}}"}]}]});this.K=Q;this.Z=H;this.disclaimer=this.Mc("ytp-info-panel-action-item-disclaimer");this.button= this.Mc("ytp-info-panel-action-item-button");this.EZ=!1;this.K.createServerVe(this.element,this,!0);this.listen("click",this.onClick);Q="";H=g.K(z==null?void 0:z.onTap,UX);var f=g.K(H,g.Uc);this.EZ=!1;f?(Q=f.url||"",Q.startsWith("//")&&(Q="https:"+Q),this.EZ=!0,g.sK(this.button,g.Yg(Q))):(f=g.K(H,pyn))&&!this.Z?((Q=f.phoneNumbers)&&Q.length>0?(Q="sms:"+Q[0],f.messageText&&(Q+="?&body="+encodeURI(f.messageText))):Q="",this.EZ=!0,g.sK(this.button,g.Yg(Q,[n59]))):(H=g.K(H,g5a))&&!this.Z&&(Q=H.phoneNumber? "tel:"+H.phoneNumber:"",this.EZ=!0,g.sK(this.button,g.Yg(Q,[Z0A])));var b;if(H=(b=z.disclaimerText)==null?void 0:b.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var L;this.update({label:(L=z.bodyText)==null?void 0:L.content,icon:ov(),disclaimer:H})}else{this.disclaimer.style.display="none";var u;this.update({label:(u=z.bodyText)==null?void 0:u.content,icon:ov()})}this.K.setTrackingParams(this.element,z.trackingParams||null);this.EZ&&(this.B={externalLinkData:{url:Q}})}; $_p=function(Q,z){var H=vf();g.hf.call(this,Q,{G:"div",J:"ytp-info-panel-detail-skrim",W:[{G:"div",J:"ytp-info-panel-detail",T:{role:"dialog",id:H},W:[{G:"div",J:"ytp-info-panel-detail-header",W:[{G:"div",J:"ytp-info-panel-detail-title",BI:"{{title}}"},{G:"button",lT:["ytp-info-panel-detail-close","ytp-button"],T:{"aria-label":"Close"},W:[g.jE()]}]},{G:"div",J:"ytp-info-panel-detail-body",BI:"{{body}}"},{G:"div",J:"ytp-info-panel-detail-items"}]}]},250);this.Z=z;this.items=this.Mc("ytp-info-panel-detail-items"); this.L=new g.Bt(this);this.itemData=[];this.D=H;this.X(this.Mc("ytp-info-panel-detail-close"),"click",this.fH);this.X(this.Mc("ytp-info-panel-detail-skrim"),"click",this.fH);this.X(this.Mc("ytp-info-panel-detail"),"click",function(f){f.stopPropagation()}); g.W(this,this.L);this.K.createServerVe(this.element,this,!0);this.X(Q,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",Q.getVideoData());this.hide()}; j5k=function(Q,z){Q=g.n(Q.itemData);for(var H=Q.next();!H.done;H=Q.next())H=H.value,H.K.logVisibility(H.element,z)}; O08=function(Q,z){g.m.call(this,{G:"div",J:"ytp-info-panel-preview",T:{"aria-live":"assertive","aria-atomic":"true","aria-owns":z.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.xh(Q.C()))},W:[{G:"div",J:"ytp-info-panel-preview-text",BI:"{{text}}"},{G:"div",J:"ytp-info-panel-preview-chevron",BI:"{{chevron}}"}]});var H=this;this.K=Q;this.oy=this.Z=this.videoId=null;this.D=this.showControls=this.B=!1;this.X(this.element,"click",function(){Q.logClick(H.element);Q.F9();Da(z)}); this.L=new g.H6(this,250,!1,100);g.W(this,this.L);this.K.createServerVe(this.element,this,!0);this.X(Q,"videodatachange",this.onVideoDataChange);this.X(Q,"presentingplayerstatechange",this.p6);this.X(this.K,"paidcontentoverlayvisibilitychange",this.Y5);this.X(this.K,"infopaneldetailvisibilitychange",this.Y5);var f=Q.getVideoData()||{};FHA(f)&&x_J(this,f);this.X(Q,"onShowControls",this.Ed);this.X(Q,"onHideControls",this.Ju)}; x_J=function(Q,z){if(!z.uL||!Q.K.l7()){var H=z.o8||1E4,f=FHA(z);Q.Z?z.videoId&&z.videoId!==Q.videoId&&(g.QM(Q.Z),Q.videoId=z.videoId,f?(o5A(Q,H,z),Q.ir()):(Q.fH(),Q.Z.dispose(),Q.Z=null)):f&&(z.videoId&&(Q.videoId=z.videoId),o5A(Q,H,z),Q.ir())}}; FHA=function(Q){var z,H,f,b;return!!((z=Q.sj)==null?0:(H=z.title)==null?0:H.content)||!!((f=Q.sj)==null?0:(b=f.bodyText)==null?0:b.content)}; o5A=function(Q,z,H){Q.Z&&Q.Z.dispose();Q.Z=new g.e_(Q.zuT,z,Q);g.W(Q,Q.Z);var f;z=((f=H.sj)==null?void 0:f.trackingParams)||null;Q.K.setTrackingParams(Q.element,z);var b;var L,u;if(H==null?0:(L=H.sj)==null?0:(u=L.title)==null?0:u.content){var X;f=(b=H.sj)==null?void 0:(X=b.title)==null?void 0:X.content;var v,y;if((v=H.sj)==null?0:(y=v.bodyText)==null?0:y.content)f+=" \u2022 ";b=f}else b="";var q,M;H=((q=H.sj)==null?void 0:(M=q.bodyText)==null?void 0:M.content)||"";Q.update({text:b+H,chevron:g.G8()})}; Jo6=function(Q,z){Q.Z&&(g.w(z,8)?(Q.B=!0,Q.ir(),Q.Z.start()):(g.w(z,2)||g.w(z,64))&&Q.videoId&&(Q.videoId=null))}; qg=function(Q){var z=null;try{z=Q.toLocaleString("en-GB",{style:"percent"})}catch(H){z=Q.toLocaleString(void 0,{style:"percent"})}return z}; Mg=function(Q,z){var H=0;Q=g.n(Q);for(var f=Q.next();!(f.done||f.value.startTime>z);f=Q.next())H++;return H===0?H:H-1}; NuJ=function(Q,z){for(var H=0,f=g.n(Q),b=f.next();!b.done;b=f.next()){b=b.value;if(z=b.timeRangeStartMillis&&z0?z[0]:null;var H=g.T2("ytp-chrome-bottom"),f=g.T2("ytp-ad-module");Q.D=!(H==null||!H.contains(z));Q.N=!(f==null||!f.contains(z));Q.U=!(z==null||!z.hasAttribute("data-tooltip-target-fixed"));return z}; d_p=function(Q,z,H){if(!Q.j){if(z){Q.tooltipRenderer=z;z=Q.tooltipRenderer.text;var f=!1,b;(z==null?0:(b=z.runs)==null?0:b.length)&&z.runs[0].text&&(Q.update({title:z.runs[0].text.toString()}),f=!0);g.xe(Q.title,f);z=Q.tooltipRenderer.detailsText;b=!1;var L;if((z==null?0:(L=z.runs)==null?0:L.length)&&z.runs[0].text){f=z.runs[0].text.toString();L=f.indexOf("$TARGET_ICON");if(L>-1)if(Q.tooltipRenderer.targetId){z=[];f=f.split("$TARGET_ICON");var u=new g.yR({G:"span",J:"ytp-promotooltip-details-icon", W:[KHZ[Q.tooltipRenderer.targetId]]});g.W(Q,u);for(var X=[],v=g.n(f),y=v.next();!y.done;y=v.next())y=new g.yR({G:"span",J:"ytp-promotooltip-details-component",BI:y.value}),g.W(Q,y),X.push(y);f.length===2?(z.push(X[0].element),z.push(u.element),z.push(X[1].element)):f.length===1&&(L===0?(z.push(u.element),z.push(X[0].element)):(z.push(X[0].element),z.push(u.element)));L=z.length?z:null}else L=null;else L=f;if(L){if(typeof L!=="string")for(g.Lm(Q.details),b=g.n(L),L=b.next();!L.done;L=b.next())Q.details.appendChild(L.value); else Q.update({details:L});b=!0}}g.xe(Q.details,b);b=Q.tooltipRenderer.acceptButton;L=!1;var q,M,C;((q=g.K(b,g.Bc))==null?0:(M=q.text)==null?0:(C=M.runs)==null?0:C.length)&&g.K(b,g.Bc).text.runs[0].text&&(Q.update({acceptButtonText:g.K(b,g.Bc).text.runs[0].text.toString()}),L=!0);g.xe(Q.acceptButton,L);q=Q.tooltipRenderer.dismissButton;M=!1;var t,E,G;((t=g.K(q,g.Bc))==null?0:(E=t.text)==null?0:(G=E.runs)==null?0:G.length)&&g.K(q,g.Bc).text.runs[0].text&&(Q.update({dismissButtonText:g.K(q,g.Bc).text.runs[0].text.toString()}), M=!0);g.xe(Q.dismissButton,M)}H&&(Q.L=H);Q.Z=D_A(Q);Q.Y=!1;Q.K.C().V("web_player_hide_nitrate_promo_tooltip")||Q.Ho(!0);V6c(Q);Q.LH&&!Q.Ze&&(Q.Ze=!0,Q.Po.My(0));Q.B&&Q.K.logVisibility(Q.element,Q.LH)}}; ZH=function(Q){Q.Ho(!1);Q.B&&Q.K.logVisibility(Q.element,Q.LH)}; m_8=function(Q){var z,H,f,b=((z=g.K(Q.acceptButton,g.Bc))==null?void 0:(H=z.text)==null?void 0:(f=H.runs)==null?void 0:f.length)&&!!g.K(Q.acceptButton,g.Bc).text.runs[0].text,L,u,X;z=((L=g.K(Q.dismissButton,g.Bc))==null?void 0:(u=L.text)==null?void 0:(X=u.runs)==null?void 0:X.length)&&!!g.K(Q.dismissButton,g.Bc).text.runs[0].text;return b||z}; V6c=function(Q){var z;if(!(z=!Q.Z)){z=Q.Z;var H=window.getComputedStyle(z);z=H.display==="none"||H.visibility==="hidden"||z.getAttribute("aria-hidden")==="true"}if(z||Q.K.isMinimized())Q.Ho(!1);else if(z=g.FL(Q.Z),z.width&&z.height){Q.K.Bp(Q.element,Q.Z);var f=Q.K.Un().getPlayerSize().height;H=g.FL(Q.Mc("ytp-promotooltip-container")).height;Q.D?Q.element.style.top=f-H-z.height-12+"px":Q.U||(f=Q.K.A8().height-H-z.height-12,Q.element.style.top=f+"px");f=Q.Mc("ytp-promotooltip-pointer");var b=g.$e(Q.Z, Q.K.getRootNode()),L=Number(Q.element.style.left.replace(/[^\d\.]/g,""));Q=Q.K.isFullscreen()?18:12;f.style.left=b.x-L+z.width/2-Q+"px";f.style.top=H+"px"}else Q.Ho(!1)}; Gf=function(Q){g.m.call(this,{G:"button",lT:["ytp-replay-button","ytp-button"],T:{title:"Replay"},W:[g.Nt()]});this.K=Q;this.X(Q,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.Ni(Q.getPlayerStateObject());Fv(this.K,this.element,this)}; $z=function(Q,z){z=z===void 0?240:z;g.m.call(this,{G:"button",lT:["ytp-button","ytp-search-button"],T:{title:"Search","data-tooltip-opaque":String(g.xh(Q.C()))},W:[{G:"div",J:"ytp-search-icon",BI:"{{icon}}"},{G:"div",J:"ytp-search-title",BI:"Search"}]});this.api=Q;this.B=z;this.visible=!1;this.updateValue("icon",{G:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},W:[{G:"path",J:"ytp-svg-fill",T:{d:"M21.24,19.83l-5.64-5.64C16.48,13.02,17,11.57,17,10c0-3.87-3.13-7-7-7s-7,3.13-7,7c0,3.87,3.13,7,7,7 c1.57,0,3.02-0.52,4.19-1.4l5.64,5.64L21.24,19.83z M5,10c0-2.76,2.24-5,5-5s5,2.24,5,5c0,2.76-2.24,5-5,5S5,12.76,5,10z"}}]}); Q.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.Z();this.X(Q,"appresize",this.Z);this.X(Q,"videodatachange",this.Z);Fv(Q,this.element,this)}; g.jO=function(Q,z,H,f){f=f===void 0?240:f;g.m.call(this,{G:"button",lT:["ytp-button","ytp-share-button"],T:{title:"Share","aria-haspopup":"true","aria-owns":H.element.id,"data-tooltip-opaque":String(g.xh(Q.C()))},W:[{G:"div",J:"ytp-share-icon",BI:"{{icon}}"},{G:"div",J:"ytp-share-title",BI:"Share"}]});this.api=Q;this.Z=z;this.L=H;this.D=f;this.B=this.visible=!1;this.tooltip=this.Z.xJ();Q.createClientVe(this.element,this,28664);this.listen("click",this.onClick);this.X(Q,"videodatachange",this.Jh); this.X(Q,"videoplayerreset",this.Jh);this.X(Q,"appresize",this.Jh);this.X(Q,"presentingplayerstatechange",this.Jh);this.Jh();this.addOnDisposeCallback(g.j1(this.tooltip,this.element))}; wya=function(Q){var z=Q.api.C(),H=Q.api.getVideoData(),f=g.xh(z)&&g.Ig(Q.api)&&g.w(Q.api.getPlayerStateObject(),128);z=z.L||z.disableSharing&&Q.api.getPresentingPlayerType()!==2||!H.showShareButton||H.Sl||f||g.zI(H)||Q.B;f=Q.api.Un().getPlayerSize().width;return!!H.videoId&&f>=Q.D&&!z}; km9=function(Q,z){z.name!=="InvalidStateError"&&z.name!=="AbortError"&&(z.name==="NotAllowedError"?(Q.Z.F9(),Da(Q.L,Q.element,!1)):g.BT(z))}; eNn=function(Q,z){var H=vf(),f=Q.C();H={G:"div",J:"ytp-share-panel",T:{id:vf(),role:"dialog","aria-labelledby":H},W:[{G:"div",J:"ytp-share-panel-inner-content",W:[{G:"div",J:"ytp-share-panel-title",T:{id:H},BI:"Share"},{G:"a",lT:["ytp-share-panel-link","ytp-no-contextmenu"],T:{href:"{{link}}",target:f.U,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},BI:"{{linkText}}"},{G:"label",J:"ytp-share-panel-include-playlist",W:[{G:"input",J:"ytp-share-panel-include-playlist-checkbox",T:{type:"checkbox", checked:"true"}},"Include playlist"]},{G:"div",J:"ytp-share-panel-loading-spinner",W:[Sf()]},{G:"div",J:"ytp-share-panel-service-buttons",BI:"{{buttons}}"},{G:"div",J:"ytp-share-panel-error",BI:"An error occurred while retrieving sharing information. Please try again later."}]},{G:"button",lT:["ytp-share-panel-close","ytp-button"],T:{title:"Close"},W:[g.jE()]}]};g.hf.call(this,Q,H,250);var b=this;this.moreButton=null;this.api=Q;this.tooltip=z.xJ();this.L=[];this.j=this.Mc("ytp-share-panel-inner-content"); this.closeButton=this.Mc("ytp-share-panel-close");this.X(this.closeButton,"click",this.fH);this.addOnDisposeCallback(g.j1(this.tooltip,this.closeButton));this.D=this.Mc("ytp-share-panel-include-playlist-checkbox");this.X(this.D,"click",this.Jh);this.Z=this.Mc("ytp-share-panel-link");this.addOnDisposeCallback(g.j1(this.tooltip,this.Z));this.api.createClientVe(this.Z,this,164503);this.X(this.Z,"click",function(L){L.preventDefault();b.api.logClick(b.Z);var u=b.api.getVideoUrl(!0,!0,!1,!1);u=Tu6(b,u); g.uo(u,b.api,L)&&b.api.F$("SHARE_CLICKED")}); this.listen("click",this.uo);this.X(Q,"videoplayerreset",this.hide);this.X(Q,"fullscreentoggled",this.onFullscreenToggled);this.X(Q,"onLoopRangeChange",this.YYh);this.hide()}; RNu=function(Q,z){lBc(Q);for(var H=z.links||z.shareTargets,f=0,b={},L=0;L'),(G=t.document)&&G.write&&(G.write(a$(E)),G.close()))):((t=g.UK(t,G,C,r))&&E.noopener&&(t.opener=null),t&&E.noreferrer&&(t.opener=null));t&&(t.opener||(t.opener=window),t.focus());M.preventDefault()}}}(b)); b.Rs.addOnDisposeCallback(g.j1(Q.tooltip,b.Rs.element));X==="Facebook"?Q.api.createClientVe(b.Rs.element,b.Rs,164504):X==="Twitter"&&Q.api.createClientVe(b.Rs.element,b.Rs,164505);Q.X(b.Rs.element,"click",function(q){return function(){Q.api.logClick(q.Rs.element)}}(b)); Q.api.logVisibility(b.Rs.element,!0);Q.L.push(b.Rs);f++}}var v=z.more||z.moreLink,y=new g.m({G:"a",lT:["ytp-share-panel-service-button","ytp-button"],W:[{G:"span",J:"ytp-share-panel-service-button-more",W:[{G:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},W:[{G:"rect",T:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{G:"path",T:{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"}}]}]}],T:{href:v,target:"_blank",title:"More"}});y.listen("click",function(q){var M=v;Q.api.logClick(Q.moreButton.element);M=Tu6(Q,M);g.uo(M,Q.api,q)&&Q.api.F$("SHARE_CLICKED")}); y.addOnDisposeCallback(g.j1(Q.tooltip,y.element));Q.api.createClientVe(y.element,y,164506);Q.X(y.element,"click",function(){Q.api.logClick(y.element)}); Q.api.logVisibility(y.element,!0);Q.L.push(y);Q.moreButton=y;Q.updateValue("buttons",Q.L)}; Tu6=function(Q,z){var H={};g.xh(Q.api.C())&&(g.yw(Q.api,"addEmbedsConversionTrackingParams",[H]),z=g.Ve(z,H));return z}; lBc=function(Q){for(var z=g.n(Q.L),H=z.next();!H.done;H=z.next())H=H.value,H.detach(),g.S5(H);Q.L=[]}; F6=function(Q){return Q===void 0||Q.startSec===void 0||Q.endSec===void 0?!1:!0}; QSL=function(Q,z){Q.startSec+=z;Q.endSec+=z}; HXv=function(Q){Np.call(this,Q);this.B=this.Z=this.isContentForward=this.Y=!1;zdY(this);this.X(this.K,"changeProductsInVideoVisibility",this.SZn);this.X(this.K,"videodatachange",this.onVideoDataChange)}; fXv=function(Q){Q.j&&Q.f3.element.removeChild(Q.j.element);Q.j=void 0}; LP_=function(Q,z){return z.map(function(H){var f,b;if((H=(f=g.K(H,bXn))==null?void 0:(b=f.thumbnail)==null?void 0:b.thumbnails)&&H.length!==0)return H[0].url}).filter(function(H){return H!==void 0}).map(function(H){H=new g.m({G:"img", J:"ytp-suggested-action-product-thumbnail",T:{alt:"",src:H}});g.W(Q,H);return H})}; uQa=function(Q,z){Q.isContentForward=z;g.qP(Q.badge.element,"ytp-suggested-action-badge-content-forward",z)}; xz=function(Q){var z=Q.isContentForward&&!Q.pj();g.qP(Q.badge.element,"ytp-suggested-action-badge-preview-collapsed",z&&Q.Z);g.qP(Q.badge.element,"ytp-suggested-action-badge-preview-expanded",z&&Q.B)}; OO=function(Q,z,H){return new g.HD(Q*1E3,z*1E3,{priority:9,namespace:H})}; SjY=function(Q){Q.K.Ys("shopping_overlay_visible");Q.K.Ys("shopping_overlay_preview_collapsed");Q.K.Ys("shopping_overlay_preview_expanded");Q.K.Ys("shopping_overlay_expanded")}; zdY=function(Q){Q.X(Q.K,g.bc("shopping_overlay_visible"),function(){Q.Ox(!0)}); Q.X(Q.K,g.Li("shopping_overlay_visible"),function(){Q.Ox(!1)}); Q.X(Q.K,g.bc("shopping_overlay_expanded"),function(){Q.wh=!0;Jz(Q)}); Q.X(Q.K,g.Li("shopping_overlay_expanded"),function(){Q.wh=!1;Jz(Q)}); Q.X(Q.K,g.bc("shopping_overlay_preview_collapsed"),function(){Q.Z=!0;xz(Q)}); Q.X(Q.K,g.Li("shopping_overlay_preview_collapsed"),function(){Q.Z=!1;xz(Q)}); Q.X(Q.K,g.bc("shopping_overlay_preview_expanded"),function(){Q.B=!0;xz(Q)}); Q.X(Q.K,g.Li("shopping_overlay_preview_expanded"),function(){Q.B=!1;xz(Q)})}; ygA=function(Q){g.m.call(this,{G:"div",J:"ytp-shorts-title-channel",W:[{G:"a",J:"ytp-shorts-title-channel-logo",T:{href:"{{channelLink}}",target:Q.C().U,"aria-label":"{{channelLogoLabel}}"}},{G:"div",J:"ytp-shorts-title-expanded-heading",W:[{G:"div",J:"ytp-shorts-title-expanded-title",W:[{G:"a",BI:"{{expandedTitle}}",T:{href:"{{channelTitleLink}}",target:Q.C().U,tabIndex:"0"}}]}]}]});var z=this;this.api=Q;this.Z=this.Mc("ytp-shorts-title-channel-logo");this.channelName=this.Mc("ytp-shorts-title-expanded-title"); this.subscribeButton=null;Q.createClientVe(this.Z,this,36925);this.X(this.Z,"click",function(H){z.api.logClick(z.Z);g.UK(window,XlA(z));H.preventDefault()}); Q.createClientVe(this.channelName,this,37220);this.X(this.channelName,"click",function(H){z.api.logClick(z.channelName);g.UK(window,XlA(z));H.preventDefault()}); v8_(this);this.X(Q,"videodatachange",this.Jh);this.X(Q,"videoplayerreset",this.Jh);this.Jh()}; v8_=function(Q){if(!Q.api.C().UY){var z=Q.api.getVideoData(),H=new g.QI("Subscribe",null,"Subscribed",null,!0,!1,z.HG,z.subscribed,"channel_avatar",null,Q.api,!0);Q.api.createServerVe(H.element,Q);var f;Q.api.setTrackingParams(H.element,((f=z.subscribeButtonRenderer)==null?void 0:f.trackingParams)||null);Q.X(H.element,"click",function(){Q.api.logClick(H.element)}); Q.subscribeButton=H;g.W(Q,Q.subscribeButton);Q.subscribeButton.Gv(Q.element)}}; XlA=function(Q){var z=Q.api.C(),H=Q.api.getVideoData();H=g.Qc(z)+H.KH;if(!g.xh(z))return H;z={};g.yw(Q.api,"addEmbedsConversionTrackingParams",[z]);return g.Ve(H,z)}; oC=function(Q){g.hf.call(this,Q,{G:"button",lT:["ytp-skip-intro-button","ytp-popup","ytp-button"],W:[{G:"div",J:"ytp-skip-intro-button-text",BI:"Skip Intro"}]},100);var z=this;this.L=!1;this.Z=new g.e_(function(){z.hide()},5E3); this.h$=this.A5=NaN;g.W(this,this.Z);this.Y=function(){z.show()}; this.j=function(){z.hide()}; this.D=function(){var H=z.K.getCurrentTime();H>z.A5/1E3&&H0?{G:"svg",T:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},W:[{G:"path",lT:["ytp-circle-arrow","ytp-svg-fill"],T:{d:"m19,12c0,2.1 -0.93,4.07 -2.55,5.4c-1.62,1.34 -3.76,1.87 -5.86,1.46c-2.73,-0.53 -4.92,-2.72 -5.45,-5.45c-0.41,-2.1 .12,-4.24 1.46,-5.86c1.33,-1.62 3.3,-2.55 5.4,-2.55l1.27,0l-0.85,.85l1.41,1.41l3.35,-3.35l-3.35,-3.35l-1.41,1.41l1.01,1.03l-1.43,0c-2.7,0 -5.23,1.19 -6.95,3.28c-1.72,2.08 -2.4,4.82 -1.88,7.52c0.68,3.52 3.51,6.35 7.03,7.03c0.6,.11 1.19,.17 1.78,.17c2.09,0 4.11,-0.71 5.74,-2.05c2.09,-1.72 3.28,-4.25 3.28,-6.95l-2,0z"}}, {G:"text",lT:["ytp-jump-button-text","ytp-svg-fill"],T:{x:"7.05",y:"15.05"}}]}:{G:"svg",T:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},W:[{G:"path",lT:["ytp-circle-arrow","ytp-svg-fill"],T:{d:"m18.95,6.28c-1.72,-2.09 -4.25,-3.28 -6.95,-3.28l-1.43,0l1.02,-1.02l-1.41,-1.41l-3.36,3.35l3.35,3.35l1.41,-1.41l-0.85,-0.86l1.27,0c2.1,0 4.07,.93 5.4,2.55c1.34,1.62 1.87,3.76 1.46,5.86c-0.53,2.73 -2.72,4.92 -5.45,5.45c-2.11,.41 -4.24,-0.12 -5.86,-1.46c-1.62,-1.33 -2.55,-3.3 -2.55,-5.4l-2,0c0,2.7 1.19,5.23 3.28,6.95c1.62,1.34 3.65,2.05 5.74,2.05c0.59,0 1.19,-0.06 1.78,-0.17c3.52,-0.68 6.35,-3.51 7.03,-7.03c0.52,-2.7 -0.17,-5.44 -1.88,-7.52z"}}, {G:"text",lT:["ytp-jump-button-text","ytp-svg-fill"],T:{x:"6.5",y:"15"}}]}]});var H=this;this.K=Q;this.Z=z;this.B=new g.e_(function(){H.L?(H.L=!1,H.B.start()):H.element.classList.remove("ytp-jump-spin","backwards")},250); this.L=!1;(z=z>0)?this.K.createClientVe(this.element,this,36843):this.K.createClientVe(this.element,this,36844);var f=g.EB(z?"Seek forwards $SECONDS seconds. (\u2192)":"Seek backwards $SECONDS seconds. (\u2190)",{SECONDS:Math.abs(this.Z).toString()});this.update({title:f,"data-title-no-tooltip":f,"aria-keyshortcuts":z?"\u2192":"\u2190"});this.D=this.element.querySelector(".ytp-jump-button-text");this.D.textContent=Math.abs(this.Z).toString();this.listen("click",this.onClick,this);Fv(Q,this.element, this)}; n8v=function(Q,z){z?Q.element.classList.add("ytp-jump-button-enabled"):Q.element.classList.remove("ytp-jump-button-enabled");Q.K.logVisibility(Q.element,z);Q.K.UX()}; rb=function(Q,z){Ng.call(this,Q,z,"timedMarkerCueRange","View key moments");this.X(Q,g.Li("timedMarkerCueRange"),this.A7);this.X(Q,"updatemarkervisibility",this.updateVideoData)}; g8Y=function(Q){var z,H=(z=Q.K.getVideoData())==null?void 0:z.ZJ;if(H)for(Q=Q.D.mq,H=g.n(H),z=H.next();!z.done;z=H.next())if(z=Q[z.value]){var f=void 0,b=void 0,L=void 0;if(((f=z.onTap)==null?void 0:(b=f.innertubeCommand)==null?void 0:(L=b.changeEngagementPanelVisibilityAction)==null?void 0:L.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return z}}; sO=function(Q){var z=Q.V("web_enable_pip_on_miniplayer");g.m.call(this,{G:"button",lT:["ytp-miniplayer-button","ytp-button"],T:{title:"{{title}}","aria-keyshortcuts":"i","data-priority":"6","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},W:[z?{G:"svg",T:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 -960 960 960",width:"100%"},W:[{G:"g",T:{transform:"translate(96, -96) scale(0.8)"},W:[{G:"path",w4:!0,T:{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"}}]}]}: P0n()]});this.K=Q;this.visible=!1;this.listen("click",this.onClick);this.X(Q,"fullscreentoggled",this.Jh);this.updateValue("title",g.x1(Q,"Miniplayer","i"));this.update({"data-title-no-tooltip":"Miniplayer"});Fv(Q,this.element,this);Q.createClientVe(this.element,this,62946);this.Jh()}; Bp=function(Q,z,H){H=H===void 0?!1:H;g.m.call(this,{G:"button",lT:["ytp-mute-button","ytp-button"],T:Q.C().mq?{title:"{{title}}","aria-keyshortcuts":"m","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-priority":"{{dataPriority}}"}:{"aria-disabled":"true","aria-haspopup":"true"},BI:"{{icon}}"});this.K=Q;this.yl=H;this.Z=null;this.D=this.U=this.j=this.wh=NaN;this.L3=this.Y=null;this.L=[];this.B=[];this.visible=!1;this.N=null;Q.V("delhi_modern_web_player")&&this.update({"data-priority":3}); H=this.K.C();this.updateValue("icon",Yj());this.tooltip=z.xJ();this.Z=new g.yR({G:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"defs",W:[{G:"clipPath",T:{id:"ytp-svg-volume-animation-mask"},W:[{G:"path",T:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{G:"path",T:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{G:"path",J:"ytp-svg-volume-animation-mover",T:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{G:"clipPath",T:{id:"ytp-svg-volume-animation-slash-mask"}, W:[{G:"path",J:"ytp-svg-volume-animation-mover",T:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{G:"path",w4:!0,lT:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],T:{"clip-path":"url(#ytp-svg-volume-animation-mask)",d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}},{G:"path",w4:!0,lT:["ytp-svg-fill","ytp-svg-volume-animation-hider"],T:{"clip-path":"url(#ytp-svg-volume-animation-slash-mask)", d:"M 9.25,9 7.98,10.27 24.71,27 l 1.27,-1.27 Z",fill:"#fff"}}]});g.W(this,this.Z);this.Y=this.Z.Mc("ytp-svg-volume-animation-speaker");this.L3=this.Y.getAttribute("d");this.L=g.da("ytp-svg-volume-animation-mover",this.Z.element);this.B=g.da("ytp-svg-volume-animation-hider",this.Z.element);this.De=new HE;g.W(this,this.De);this.Ze=new HE;g.W(this,this.Ze);this.listen("click",this.zah);this.X(Q,"appresize",this.Zb);this.X(Q,"onVolumeChange",this.onVolumeChange);var f=null;H.mq?this.addOnDisposeCallback(g.j1(z.xJ(), this.element)):(z="Your browser doesn't support changing the volume. $BEGIN_LINKLearn More$END_LINK".split(/\$(BEGIN|END)_LINK/),f=new g.hf(Q,{G:"span",lT:["ytp-popup","ytp-generic-popup"],T:{tabindex:"0"},W:[z[0],{G:"a",T:{href:"https://support.google.com/youtube/?p=noaudio",target:H.U},BI:z[2]},z[4]]},100,!0),g.W(this,f),f.hide(),f.subscribe("show",function(b){Q.Hd(f,b)}),g.sZ(Q,f.element,4)); this.message=f;Q.createClientVe(this.element,this,28662);this.Zb(Q.Un().getPlayerSize());this.setVolume(Q.getVolume(),Q.isMuted())}; $iL=function(Q,z){Q.wh=z;var H=Q.L3;z&&(H+=DgJ(ZXa,Gop,z));Q.Y.setAttribute("d",H)}; jS_=function(Q,z){Q.U=z;for(var H=20*z,f=0;f=3&&Q.K.getPresentingPlayerType()!==2}; JgA=function(Q){var z=NW(Q.K.xt());return z?Q.Z?z.Yr():z.bz():!1}; xip=function(Q){var z={duration:null,preview:null,text:null,title:null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},H=Q.playlist!=null&&Q.playlist.Yr();H=g.Ig(Q.K)&&(!Q.Z||H);var f=Q.Z&&g.BG(Q.K),b=JgA(Q),L=Q.Z&&Q.K.getPresentingPlayerType()===5,u=g.x1(Q.K,"Next","SHIFT+n"),X=g.x1(Q.K,"Previous","SHIFT+p");if(L)z.title="Start video";else if(Q.L)z.title="Replay";else if(H){var v=null;Q.playlist&&(v=g.Eu(Q.playlist,Q.Z?FVY(Q.playlist):x89(Q.playlist)));if(v){if(v.videoId){var y=Q.playlist.listId; z.url=Q.K.C().getVideoUrl(v.videoId,y?y.toString():void 0)}z.text=v.title;z.duration=v.lengthText?v.lengthText:v.lengthSeconds?g.xU(v.lengthSeconds):null;z.preview=v.MP("mqdefault.jpg")}Q.Z?(z.title=u,z["data-title-no-tooltip"]="Next",z["aria-keyshortcuts"]="SHIFT+n"):(z.title=X,z["data-title-no-tooltip"]="Previous",z["aria-keyshortcuts"]="SHIFT+p")}else if(f){if(X=(v=Q.videoData)==null?void 0:g.lF(v))z.url=X.ma(),z.text=X.title,z.duration=X.lengthText?X.lengthText:X.lengthSeconds?g.xU(X.lengthSeconds): null,z.preview=X.MP("mqdefault.jpg");z.title=u;z["data-title-no-tooltip"]="Next";z["aria-keyshortcuts"]="SHIFT+n"}z.disabled=!f&&!H&&!b&&!L;Q.update(z);Q.Y=!!z.url;f||H||Q.L||b||L?Q.B||(Q.B=g.j1(Q.tooltip,Q.element),Q.j=Q.listen("click",Q.onClick,Q)):Q.B&&(Q.B(),Q.B=null,Q.DS(Q.j),Q.j=null);Q.tooltip.UX();g.qP(Q.element,"ytp-playlist-ui",Q.Z&&H)}; IX6=function(Q,z){g.m.call(this,{G:"div",J:"ytp-fine-scrubbing",W:[{G:"div",J:"ytp-fine-scrubbing-draggable",W:[{G:"div",J:"ytp-fine-scrubbing-thumbnails",T:{tabindex:"0",role:"slider",type:"range","aria-label":"Click or scroll the panel for precise seeking.","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]},{G:"div",T:{"aria-hidden":"true"},J:"ytp-fine-scrubbing-cursor"},{G:"div",J:"ytp-fine-scrubbing-seek-time",T:{"aria-hidden":"true"}, BI:"{{seekTime}}"},{G:"div",J:"ytp-fine-scrubbing-play",W:[JB()],T:{title:"Play from this position",role:"button"}},{G:"div",J:"ytp-fine-scrubbing-dismiss",W:[g.jE()],T:{title:"Exit precise seeking",role:"button"}}]});var H=this;this.api=Q;this.j=this.Mc("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.Mc("ytp-fine-scrubbing-dismiss");this.L3=this.Mc("ytp-fine-scrubbing-draggable");this.playButton=this.Mc("ytp-fine-scrubbing-play");this.thumbnails=[];this.B=[];this.jm=this.Z=0;this.f3=void 0; this.Ze=NaN;this.mq=this.U=this.L=this.N=0;this.D=[];this.interval=this.frameCount=0;this.Y=160;this.scale=1;this.En=0;this.isEnabled=this.yl=!1;NxL(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.j1(z,this.dismissButton));this.addOnDisposeCallback(g.j1(z,this.playButton));this.De=new g.KL(this.L3,!0);this.De.subscribe("dragstart",this.zM,this);this.De.subscribe("dragmove",this.xk,this);this.De.subscribe("dragend",this.N1,this);this.X(Q,"SEEK_COMPLETE",this.cE);Q.V("web_fix_fine_scrubbing_false_play")&& this.X(Q,"rootnodemousedown",function(f){H.wh=f}); this.j.addEventListener("keydown",function(){}); g.W(this,this.De);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.j,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}; NxL=function(Q,z){var H=g.xU(z),f=g.EB("Seek to $PROGRESS",{PROGRESS:g.xU(z,!0)});Q.update({ariamin:0,ariamax:Math.floor(Q.api.getDuration()),arianow:Math.floor(z),arianowtext:f,seekTime:H})}; AgJ=function(Q){Q.Ze=NaN;Q.U=0;Q.N=Q.L}; sSA=function(Q){var z=Q.api.HU();if(z){var H=90*Q.scale,f=BV(z,160*Q.scale);if(z=z.levels[f]){Q.Y=z.width;if(!Q.D.length){f=[];for(var b=PV(z,z.qT()),L=z.columns*z.rows,u=z.frameCount,X=0;X<=b;X++)for(var v=uQ.D.length;)f= void 0,(f=Q.thumbnails.pop())==null||f.dispose();for(;Q.thumbnails.lengthH.length;)f=void 0,(f=Q.B.pop())==null||f.dispose(); for(;Q.B.length-H?-z/H*Q.interval*.5:-(z+H/2)/H*Q.interval}; BxY=function(Q){return-((Q.j.offsetWidth||(Q.frameCount-1)*Q.Y*Q.scale)-Q.Z/2)}; Yj_=function(){g.m.call(this,{G:"div",J:"ytp-fine-scrubbing-thumbnail"})}; rgY=function(){g.m.call(this,{G:"div",J:"ytp-fine-scrubbing-chapter-title",W:[{G:"div",J:"ytp-fine-scrubbing-chapter-title-content",BI:"{{chapterTitle}}"}]})}; aXJ=function(Q){g.m.call(this,{G:"div",J:"ytp-heat-map-chapter",W:[{G:"svg",J:"ytp-heat-map-svg",T:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},W:[{G:"defs",W:[{G:"clipPath",T:{id:"{{id}}"},W:[{G:"path",J:"ytp-heat-map-path",T:{d:"",fill:"white"}}]},{G:"linearGradient",T:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},W:[{G:"stop",T:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{G:"stop",T:{offset:"100%", "stop-color":"white","stop-opacity":"0"}}]}]},{G:"rect",J:"ytp-heat-map-graph",T:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{G:"rect",J:"ytp-heat-map-hover",T:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{G:"rect",J:"ytp-heat-map-play",T:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{G:"path",J:"ytp-modern-heat-map",T:{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=Q;this.N=this.Mc("ytp-heat-map-svg");this.j=this.Mc("ytp-heat-map-path");this.D=this.Mc("ytp-heat-map-graph");this.Y=this.Mc("ytp-heat-map-play");this.Z=this.Mc("ytp-heat-map-hover");this.L=this.Mc("ytp-modern-heat-map");this.EZ=!1;this.B=60;Q=""+g.Tu(this);this.update({id:Q});Q="url(#"+Q+")";this.D.setAttribute("clip-path",Q);this.Y.setAttribute("clip-path",Q);this.Z.setAttribute("clip-path", Q)}; UiA=function(Q,z){z>0&&(Q.B=z,Q.N.style.height=Q.B+"px")}; cp=function(){g.m.call(this,{G:"div",J:"ytp-chapter-hover-container",W:[{G:"div",J:"ytp-progress-bar-padding"},{G:"div",J:"ytp-progress-list",W:[{G:"div",lT:["ytp-play-progress","ytp-swatch-background-color"]},{G:"div",J:"ytp-progress-linear-live-buffer"},{G:"div",J:"ytp-load-progress"},{G:"div",J:"ytp-hover-progress"},{G:"div",J:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.B=this.Mc("ytp-progress-list");this.j=this.Mc("ytp-progress-linear-live-buffer"); this.D=this.Mc("ytp-ad-progress-list");this.Y=this.Mc("ytp-load-progress");this.N=this.Mc("ytp-play-progress");this.L=this.Mc("ytp-hover-progress");this.Z=this.Mc("ytp-chapter-hover-container")}; is=function(Q,z){g.q2(Q.Z,"width",z)}; cga=function(Q,z){g.q2(Q.Z,"margin-right",z+"px")}; iXZ=function(){this.B=this.position=this.L=this.Z=this.D=this.width=NaN}; hd6=function(){g.m.call(this,{G:"div",J:"ytp-timed-marker"});this.Z=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; g.Wp=function(Q,z){g.Ca.call(this,{G:"div",J:"ytp-progress-bar-container",T:{"aria-disabled":"true"},W:[{G:"div",lT:["ytp-heat-map-container"],W:[{G:"div",J:"ytp-heat-map-edu"}]},{G:"div",lT:["ytp-progress-bar"],T:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},W:[{G:"div",J:"ytp-chapters-container"},{G:"div",J:"ytp-timed-markers-container"},{G:"div",J:"ytp-clip-start-exclude"}, {G:"div",J:"ytp-clip-end-exclude"},{G:"div",J:"ytp-scrubber-container",W:[{G:"div",lT:["ytp-scrubber-button","ytp-swatch-background-color"],W:[{G:"div",J:"ytp-scrubber-pull-indicator"},{G:"img",lT:["ytp-decorated-scrubber-button"]}]}]}]},{G:"div",lT:["ytp-fine-scrubbing-container"],W:[{G:"div",J:"ytp-fine-scrubbing-edu"}]},{G:"div",J:"ytp-bound-time-left",BI:"{{boundTimeLeft}}"},{G:"div",J:"ytp-bound-time-right",BI:"{{boundTimeRight}}"},{G:"div",J:"ytp-clip-start",T:{title:"{{clipstarttitle}}"},BI:"{{clipstarticon}}"}, {G:"div",J:"ytp-clip-end",T:{title:"{{clipendtitle}}"},BI:"{{clipendicon}}"}]});this.api=Q;this.sj=!1;this.QN=this.LA=this.iT=this.j=this.uL=0;this.Tx=null;this.Bc=!1;this.jm={};this.EY={};this.clipEnd=Infinity;this.KH=this.Mc("ytp-clip-end");this.UY=new g.KL(this.KH,!0);this.Wz=this.Mc("ytp-clip-end-exclude");this.gT=this.Mc("ytp-clip-start-exclude");this.clipStart=0;this.Xa=this.Mc("ytp-clip-start");this.ys=new g.KL(this.Xa,!0);this.U=this.rT=0;this.progressBar=this.Mc("ytp-progress-bar");this.ZJ= {};this.mq={};this.uT=this.Mc("ytp-chapters-container");this.dQ=this.Mc("ytp-timed-markers-container");this.Z=[];this.Y=[];this.cq={};this.h$=null;this.L3=-1;this.gh=this.De=0;this.d4=this.N=null;this.D6=this.Mc("ytp-scrubber-button");this.Vs=this.Mc("ytp-decorated-scrubber-button");this.r7=this.Mc("ytp-scrubber-container");this.WI=new g.t6;this.Ci=new iXZ;this.L=new sx(0,0);this.GL=null;this.Ze=this.YJ=!1;this.C2=null;this.wh=this.Mc("ytp-heat-map-container");this.yR=this.Mc("ytp-heat-map-edu"); this.D=[];this.heatMarkersDecorations=[];this.C3=this.Mc("ytp-fine-scrubbing-container");this.p5=this.Mc("ytp-fine-scrubbing-edu");this.B=void 0;this.yl=this.zx=this.f3=!1;this.tooltip=z.xJ();this.addOnDisposeCallback(g.j1(this.tooltip,this.KH));g.W(this,this.UY);this.UY.subscribe("hoverstart",this.mu,this);this.UY.subscribe("hoverend",this.Vm,this);this.X(this.KH,"click",this.H3);this.addOnDisposeCallback(g.j1(this.tooltip,this.Xa));g.W(this,this.ys);this.ys.subscribe("hoverstart",this.mu,this); this.ys.subscribe("hoverend",this.Vm,this);this.X(this.Xa,"click",this.H3);WPJ(this);this.X(Q,"resize",this.tZ);this.X(Q,"presentingplayerstatechange",this.nvv);this.X(Q,"videodatachange",this.nt);this.X(Q,"videoplayerreset",this.mch);this.X(Q,"cuerangesadded",this.LSe);this.X(Q,"cuerangesremoved",this.VHT);this.X(Q,"onLoopRangeChange",this.wy);this.X(Q,"innertubeCommand",this.onClickCommand);this.X(Q,g.bc("timedMarkerCueRange"),this.f6$);this.X(Q,"updatemarkervisibility",this.Xm);this.X(Q,"serverstitchedvideochange", this.a3n);this.updateVideoData(Q.getVideoData(),!0);this.wy(Q.getLoopRange());h9(this)&&!this.B&&(this.B=new IX6(this.api,this.tooltip),Q=g.GJ(this.element).x||0,this.B.tZ(Q,this.j),this.B.Gv(this.C3),g.W(this,this.B),this.X(this.B.dismissButton,"click",this.X7),this.X(this.B.playButton,"click",this.xb),this.X(this.B.element,"dblclick",this.xb));this.api.createClientVe(this.wh,this,139609,!0);this.api.createClientVe(this.yR,this,140127,!0);this.api.createClientVe(this.p5,this,151179,!0);this.api.createClientVe(this.progressBar, this,38856,!0)}; WPJ=function(Q){if(Q.Z.length===0){var z=new cp;Q.Z.push(z);g.W(Q,z);z.Gv(Q.uT,0)}for(;Q.Z.length>1;)Q.Z.pop().dispose();is(Q.Z[0],"100%");Q.Z[0].startTime=0;Q.Z[0].title=""}; DiL=function(Q){var z=z===void 0?NaN:z;var H=new aXJ(Q.api);Q.D.push(H);g.W(Q,H);H.Gv(Q.wh);z>=0&&(H.element.style.width=z+"px")}; KPA=function(Q){for(;Q.Y.length;)Q.Y.pop().dispose()}; diY=function(Q){var z,H,f,b,L;return(L=g.K((b=g.K((z=Q.getWatchNextResponse())==null?void 0:(H=z.playerOverlays)==null?void 0:(f=H.playerOverlayRenderer)==null?void 0:f.decoratedPlayerBarRenderer,FR))==null?void 0:b.playerBar,VR9))==null?void 0:L.chapters}; mi6=function(Q){for(var z=Q.Z,H=[],f=0;f=u&&G<=q&&L.push(C)}v>0&&(Q.wh.style.height=v+"px");u=Q.D[f];q=L;C=b;E=v;G=f===0;G=G===void 0?!1:G;UiA(u,E);M=q;t=u.B;G=G===void 0?!1:G;var x=1E3/M.length,J=[];J.push({x:0,y:100});for(var I=0;I0&&(H=L[L.length-1])}g.DH(Q);X=[];z=g.n(z.heatMarkersDecorations||[]);for(b=z.next();!b.done;b=z.next())if(b=g.K(b.value,QFA))v=b.label,f=H=y=void 0,X.push({visibleTimeRangeStartMillis:(y=b.visibleTimeRangeStartMillis)!=null?y:-1,visibleTimeRangeEndMillis:(H=b.visibleTimeRangeEndMillis)!=null?H:-1,decorationTimeMillis:(f=b.decorationTimeMillis)!=null?f:NaN,label:v?g.pa(v):""});Q.heatMarkersDecorations=X}}; Txn=function(Q,z){Q.Y.push(z);g.W(Q,z);z.Gv(Q.dQ,Q.dQ.children.length)}; edZ=function(Q,z){z=g.n(z);for(var H=z.next();!H.done;H=z.next()){H=H.value;var f=KU(Q,H.timeRangeStartMillis/(Q.L.Z*1E3),VI(Q));g.q2(H.element,"transform","translateX("+f+"px) scaleX(0.6)")}}; wlp=function(Q,z){var H=0,f=!1;z=g.n(z);for(var b=z.next();!b.done;b=z.next()){b=b.value;if(g.K(b,HeY)){b=g.K(b,HeY);var L={startTime:NaN,title:null,onActiveCommand:void 0},u=b.title;L.title=u?g.pa(u):"";u=b.timeRangeStartMillis;u!=null&&(L.startTime=u);L.onActiveCommand=b.onActiveCommand;b=L;H===0&&b.startTime!==0&&(Q.Z[H].startTime=0,Q.Z[H].title="",Q.Z[H].onActiveCommand=b.onActiveCommand,H++,f=!0);Q.Z.length<=H&&(L=new cp,Q.Z.push(L),g.W(Q,L),L.Gv(Q.uT,Q.uT.children.length));Q.Z[H].startTime= b.startTime;Q.Z[H].title=b.title?b.title:"";Q.Z[H].onActiveCommand=b.onActiveCommand;Q.Z[H].index=f?H-1:H}H++}for(;H=0;f--)if(Q.Z[f].width>0){cga(Q.Z[f],0);var b=Math.floor(Q.Z[f].width);Q.Z[f].width=b;is(Q.Z[f],b+"px");break}Q.Z[H].width=0;is(Q.Z[H],"0")}else H===Q.Z.length-1?(f=Math.floor(Q.Z[H].width+z),Q.Z[H].width=f,is(Q.Z[H],f+"px")):(z=Q.Z[H].width+z,f=Math.round(z),z-=f,Q.Z[H].width=f,is(Q.Z[H],f+"px"));H=0;if(Q.D.length===Q.Z.length)for(z=0;z< Q.D.length;z++)f=Q.Z[z].width,Q.D[z].element.style.width=f+"px",Q.D[z].element.style.left=H+"px",H+=f+mM(Q);Q.api.V("delhi_modern_web_player")&&(Q.Z.length===1?Q.Z[0].B.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(Q.Z[0].B.classList.remove("ytp-progress-bar-end"),Q.Z[0].B.classList.add("ytp-progress-bar-start"),Q.Z[Q.Z.length-1].B.classList.add("ytp-progress-bar-end")))}; ffY=function(Q,z){var H=0,f=!1,b=Q.Z.length,L=Q.L.Z*1E3;L===0&&(L=Q.api.getProgressState().seekableEnd*1E3);if(L>0&&Q.j>0){for(var u=Q.j-mM(Q)*Q.De,X=Q.gh===0?3:u*Q.gh,v=g.n(Q.Z),y=v.next();!y.done;y=v.next())y.value.width=0;for(;H1);y=(L===0?0:v/L*u)+Q.Z[H].width;if(y>X)Q.Z[H].width=y;else{Q.Z[H].width=0;var q=Q,M=H,C=q.Z[M-1];C!==void 0&&C.width>0? C.width+=y:MQ.gh&&(Q.gh=v/L),f=!0)}H++}}return f}; db=function(Q){if(Q.j){var z=Q.api.getProgressState(),H=Q.api.getVideoData();if(!(H&&H.enableServerStitchedDai&&H.enablePreroll)||isFinite(z.current)){var f;if(((f=Q.api.getVideoData())==null?0:Qw(f))&&z.airingStart&&z.airingEnd)var b=wb(Q,z.airingStart,z.airingEnd);else if(Q.api.getPresentingPlayerType()===2&&Q.api.C().V("show_preskip_progress_bar_for_skippable_ads")){var L,u,X;b=(H=(b=Q.api.getVideoData())==null?void 0:(L=b.getPlayerResponse())==null?void 0:(u=L.playerConfig)==null?void 0:(X=u.webPlayerConfig)== null?void 0:X.skippableAdProgressBarDuration)?wb(Q,z.seekableStart,H/1E3):wb(Q,z.seekableStart,z.seekableEnd)}else b=wb(Q,z.seekableStart,z.seekableEnd);L=B6(b,z.loaded,0);z=B6(b,z.current,0);u=Q.L.B!==b.B||Q.L.Z!==b.Z;Q.L=b;kz(Q,z,L);u&&bec(Q);LA_(Q)}}}; wb=function(Q,z,H){return uK8(Q)?new sx(Math.max(z,Q.GL.startTimeMs/1E3),Math.min(H,Q.GL.endTimeMs/1E3)):new sx(z,H)}; Swa=function(Q,z){var H;if(((H=Q.GL)==null?void 0:H.type)==="repeatChapter"||(z==null?void 0:z.type)==="repeatChapter")z&&(z=Q.Z[Mg(Q.Z,z.startTimeMs)],g.qP(z.Z,"ytp-repeating-chapter",!1)),Q.GL&&(z=Q.Z[Mg(Q.Z,Q.GL.startTimeMs)],g.qP(z.Z,"ytp-repeating-chapter",!0)),Q.Z.forEach(function(f){g.qP(f.Z,"ytp-exp-chapter-hover-container",!Q.GL)})}; eO=function(Q,z){var H=Q.L;H=H.B+z.B*H.getLength();if(Q.Z.length>1){H=Tf(Q,z.L,!0);for(var f=0,b=0;b0&&(f+=Q.Z[b].width,f+=mM(Q));H=(Q.Z[H].startTime+(z.L-f)/Q.Z[H].width*((H===Q.Z.length-1?Q.L.Z*1E3:Q.Z[H+1].startTime)-Q.Z[H].startTime))/1E3||0}return H}; ls=function(Q,z,H,f,b){z=z<0?0:Math.floor(Math.min(z,Q.api.getDuration())*1E3);H=H<0?0:Math.floor(Math.min(H,Q.api.getDuration())*1E3);Q=Q.progressBar.visualElement;f={seekData:{startMediaTimeMs:z,endMediaTimeMs:H,seekSource:f}};(z=g.ox())&&g.QC(Rx)(void 0,z,Q,b,f,void 0)}; XhZ=function(Q,z,H){if(H>=Q.Z.length)return!1;var f=Q.j-mM(Q)*Q.De;return Math.abs(z-Q.Z[H].startTime/1E3)/Q.L.Z*f<4}; bec=function(Q){Q.D6.style.removeProperty("height");for(var z=g.n(Object.keys(Q.jm)),H=z.next();!H.done;H=z.next())vD6(Q,H.value);RC(Q);kz(Q,Q.U,Q.rT)}; VI=function(Q){var z=Q.WI.x;z=g.v3(z,0,Q.j);Q.Ci.update(z,Q.j);return Q.Ci}; zB=function(Q){return(Q.Ze?135:90)-Qz(Q)}; Qz=function(Q){var z=48,H=Q.api.C();Q.Ze?z=54:g.xh(H)&&!H.B?z=40:Q.api.V("delhi_modern_web_player")&&(z=68);return z}; kz=function(Q,z,H){Q.U=z;Q.rT=H;var f=VI(Q),b=Q.L.Z;var L=Q.L;L=L.B+Q.U*L.getLength();var u=g.EB("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.xU(L,!0),DURATION:g.xU(b,!0)}),X=Mg(Q.Z,L*1E3);X=Q.Z[X].title;Q.update({ariamin:Math.floor(Q.L.B),ariamax:Math.floor(b),arianow:Math.floor(L),arianowtext:X?X+" "+u:u});b=Q.clipStart;L=Q.clipEnd;Q.GL&&Q.api.getPresentingPlayerType()!==2&&(b=Q.GL.startTimeMs/1E3,L=Q.GL.endTimeMs/1E3);b=B6(Q.L,b,0);X=B6(Q.L,L,1);u=Q.api.getVideoData();L=g.v3(z,b,X);H=(u==null? 0:g.lE(u))?1:g.v3(H,b,X);z=KU(Q,z,f);g.q2(Q.r7,"transform","translateX("+z+"px)");Q.api.V("delhi_modern_web_player")&&yHc(Q,z);HP(Q,f,b,L,"PLAY_PROGRESS");(u==null?0:Qw(u))?(z=Q.api.getProgressState().seekableEnd)&&HP(Q,f,L,B6(Q.L,z),"LIVE_BUFFER"):HP(Q,f,b,H,"LOAD_PROGRESS");if(Q.api.V("web_player_heat_map_played_bar")){var v;(v=Q.D[0])!=null&&v.Y.setAttribute("width",(L*100).toFixed(2)+"%")}}; yHc=function(Q,z){if(Q.api.getPresentingPlayerType()!==1)Q.uT.style.removeProperty("clip-path");else{z||(z=KU(Q,Q.U,VI(Q)));var H=Q.Bc?36:28,f=z-H/2;z+=H/2;Q.uT.style.clipPath='path("M 0 0 L 0 8 L '+(f+" 8 C "+(f+6+" 8 "+(f+6)+" 0 "+f+" 0 L 0 0 M ")+(z+" 0 L ")+(Q.j+" 0 L ")+(Q.j+" 8 L ")+(z+" 8 C ")+(z-6+" 8 "+(z-6)+" 0 "+z+' 0")'))}}; HP=function(Q,z,H,f,b){var L=Q.Z.length,u=z.Z-Q.De*mM(Q),X=H*u;H=Tf(Q,X);var v=f*u;u=Tf(Q,v);b==="HOVER_PROGRESS"&&(u=Tf(Q,z.Z*f,!0),v=z.Z*f-qwn(Q,z.Z*f)*mM(Q));f=Math.max(X-M2Z(Q,H),0);for(X=H;X=Q.Z.length)return Q.j;for(var H=0,f=0;f0||Q.Wz.clientWidth>0?(L=z.clientWidth/H,Q=-1*Q.gT.clientWidth/H):(L/=H,Q=-1*Q.Z[b].element.offsetLeft/H),g.q2(z,"background-size",L+"px"),g.q2(z,"background-position-x",Q+"px"))}; fO=function(Q,z,H,f,b){b||Q.api.C().B?z.style.width=H+"px":g.q2(z,"transform","scalex("+(f?H/f:0)+")")}; Tf=function(Q,z,H){var f=0;(H===void 0?0:H)&&(z-=qwn(Q,z)*mM(Q));H=g.n(Q.Z);for(var b=H.next();!b.done;b=H.next()){b=b.value;if(z>b.width)z-=b.width;else break;f++}return f===Q.Z.length?f-1:f}; KU=function(Q,z,H){var f=z*Q.L.Z*1E3;for(var b=-1,L=g.n(Q.Z),u=L.next();!u.done;u=L.next())u=u.value,f>u.startTime&&u.width>0&&b++;f=b<0?0:b;b=H.Z-mM(Q)*Q.De;return z*b+mM(Q)*f+H.D}; qwn=function(Q,z){for(var H=Q.Z.length,f=0,b=g.n(Q.Z),L=b.next();!L.done;L=b.next())if(L=L.value,L.width!==0)if(z>L.width)z-=L.width,z-=mM(Q),f++;else break;return f===H?H-1:f}; g.ED9=function(Q,z,H,f){var b=Q.j!==H,L=Q.Ze!==f;Q.uL=z;Q.j=H;Q.Ze=f;h9(Q)&&(z=Q.B)!=null&&(z.scale=f?1.5:1);bec(Q);Q.Z.length===1&&(Q.Z[0].width=H||0);b&&g.DH(Q);Q.B&&L&&h9(Q)&&(Q.B.isEnabled&&(H=Q.Ze?135:90,f=H-Qz(Q),Q.C3.style.height=H+"px",g.q2(Q.wh,"transform","translateY("+-f+"px)"),g.q2(Q.progressBar,"transform","translateY("+-f+"px)")),sSA(Q.B))}; RC=function(Q){var z=!!Q.GL&&Q.api.getPresentingPlayerType()!==2,H=Q.clipStart,f=Q.clipEnd,b=!0,L=!0;z&&Q.GL?(H=Q.GL.startTimeMs/1E3,f=Q.GL.endTimeMs/1E3):(b=H>Q.L.B,L=Q.L.Z>0&&fQ.U);g.qP(Q.D6,"ytp-scrubber-button-hover",H===f&&Q.Z.length>1);if(Q.api.V("web_player_heat_map_played_bar")){var L;(L=Q.D[0])!=null&&L.Z.setAttribute("width",(z.B*100).toFixed(2)+"%")}}}; vD6=function(Q,z){var H=Q.jm[z];z=Q.EY[z];var f=VI(Q),b=B6(Q.L,H.start/1E3,0),L=CI_(H,Q.Ze)/f.width;var u=B6(Q.L,H.end/1E3,1);L!==Number.POSITIVE_INFINITY&&(b=g.v3(b,0,u-L));u=Math.min(u,b+L);H.color&&(z.style.background=H.color);H=b;z.style.left=Math.max(H*f.Z+f.D,0)+"px";fO(Q,z,g.v3((u-H)*f.Z+f.D,0,f.width),f.width,!0)}; phn=function(Q,z){var H=z.getId();Q.jm[H]===z&&(g.Sz(Q.EY[H]),delete Q.jm[H],delete Q.EY[H])}; h9=function(Q){var z=g.mD(Q.api.C())&&(Q.api.V("web_shorts_pip")||Q.api.V("web_watch_pip")),H;return!((H=Q.api.getVideoData())==null?0:H.isLivePlayback)&&!Q.api.isMinimized()&&!Q.api.isInline()&&(!Q.api.S2()||!z)}; b_=function(Q){Q.B&&(Q.B.disable(),Q.iT=0,Q.wh.style.removeProperty("transform"),Q.progressBar.style.removeProperty("transform"),Q.C3.style.removeProperty("height"),Q.element.parentElement&&Q.element.parentElement.style.removeProperty("height"))}; nD9=function(Q,z){var H=z/zB(Q)*Qz(Q);g.q2(Q.progressBar,"transform","translateY("+-z+"px)");g.q2(Q.wh,"transform","translateY("+-z+"px)");g.q2(Q.C3,"transform","translateY("+H+"px)");Q.C3.style.height=z+H+"px";Q.element.parentElement&&(Q.element.parentElement.style.height=Qz(Q)-H+"px")}; gDL=function(Q,z){z?Q.N||(Q.element.removeAttribute("aria-disabled"),Q.N=new g.KL(Q.progressBar,!0),Q.N.subscribe("hovermove",Q.VAq,Q),Q.N.subscribe("hoverend",Q.AMT,Q),Q.N.subscribe("dragstart",Q.fmT,Q),Q.N.subscribe("dragmove",Q.nsv,Q),Q.N.subscribe("dragend",Q.m4I,Q),Q.api&&Q.api.V("delhi_modern_web_player")&&(Q.d4=new g.KL(Q.progressBar,!0),Q.d4.subscribe("hoverstart",function(){Q.Bc=!0;yHc(Q)},Q),Q.d4.subscribe("hoverend",function(){Q.Bc=!1; yHc(Q)},Q)),Q.C2=Q.listen("keydown",Q.RV)):Q.N&&(Q.element.setAttribute("aria-disabled","true"),Q.DS(Q.C2),Q.N.cancel(),Q.N.dispose(),Q.N=null)}; mM=function(Q){return Q.api.V("delhi_modern_web_player")?4:Q.Ze?3:2}; uK8=function(Q){var z;return!((z=Q.GL)==null||!z.postId)&&Q.api.getPresentingPlayerType()!==2}; LO=function(Q,z){g.m.call(this,{G:"button",lT:["ytp-remote-button","ytp-button"],T:{title:"Play on TV","aria-haspopup":"true","data-priority":"9"},BI:"{{icon}}"});this.K=Q;this.kt=z;this.Z=null;this.X(Q,"onMdxReceiversChange",this.Jh);this.X(Q,"presentingplayerstatechange",this.Jh);this.X(Q,"appresize",this.Jh);Q.createClientVe(this.element,this,139118);this.Jh();this.listen("click",this.B,this);Fv(Q,this.element,this)}; u_=function(Q,z){g.m.call(this,{G:"button",lT:["ytp-button","ytp-settings-button"],T:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":vf(),title:"Settings","data-tooltip-target-id":"ytp-settings-button"},W:[g.Iv()]});this.K=Q;this.kt=z;this.B=!0;this.listen("click",this.L);this.X(Q,"onPlaybackQualityChange",this.updateBadge);this.X(Q,"videodatachange",this.updateBadge);this.X(Q,"webglsettingschanged",this.updateBadge);this.X(Q,"appresize",this.Z);Fv(Q,this.element,this);this.K.createClientVe(this.element, this,28663);this.updateBadge();this.Z(Q.Un().getPlayerSize())}; ZeA=function(Q,z){Q.B=!!z;Q.Z(Q.K.Un().getPlayerSize())}; Sk=function(Q,z){fK.call(this,"Annotations",g.vN.M5);this.K=Q;this.kt=z;this.Z=!1;Q.V("web_settings_menu_icons")&&this.setIcon({G:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{G:"path",T:{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.X(Q,"videodatachange",this.Jh);this.X(Q,"onApiChange",this.Jh);this.subscribe("select",this.onSelect,this);this.Jh()}; Xf=function(Q,z){g.hz.call(this,"Audio track",g.vN.AUDIO,Q,z);this.K=Q;this.tracks={};g.SK(this.element,"ytp-audio-menu-item");this.countLabel=new g.m({G:"div",W:[{G:"span",BI:"Audio track"},{G:"span",J:"ytp-menuitem-label-count",BI:"{{content}}"}]});Q.V("web_settings_menu_icons")&&this.setIcon({G:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{G:"path",T:{d:"M11.72,11.93C13.58,11.59,15,9.96,15,8c0-2.21-1.79-4-4-4C8.79,4,7,5.79,7,8c0,1.96,1.42,3.59,3.28,3.93 C4.77,12.21,2,15.76,2,20h18C20,15.76,17.23,12.21,11.72,11.93z M8,8c0-1.65,1.35-3,3-3s3,1.35,3,3s-1.35,3-3,3S8,9.65,8,8z M11,12.9c5.33,0,7.56,2.99,7.94,6.1H3.06C3.44,15.89,5.67,12.9,11,12.9z M16.68,11.44l-0.48-0.88C17.31,9.95,18,8.77,18,7.5 c0-1.27-0.69-2.45-1.81-3.06l0.49-0.88C18.11,4.36,19,5.87,19,7.5C19,9.14,18.11,10.64,16.68,11.44z M18.75,13.13l-0.5-0.87 C19.95,11.28,21,9.46,21,7.5s-1.05-3.78-2.75-4.76l0.5-0.87C20.75,3.03,22,5.19,22,7.5S20.76,11.97,18.75,13.13z", fill:"white"}}]});g.W(this,this.countLabel);g.Vw(this,this.countLabel);this.X(Q,"videodatachange",this.Jh);this.X(Q,"onPlaybackAudioChange",this.Jh);this.Jh()}; vP=function(Q,z){fK.call(this,"Auto-play",g.vN.jt);this.K=Q;this.kt=z;this.Z=!1;this.L=[];this.X(Q,"presentingplayerstatechange",this.B);this.subscribe("select",this.onSelect,this);Q.createClientVe(this.element,this,113682);this.B()}; GWu=function(Q,z){g.dX.call(this,g.mh({"aria-haspopup":"false"}),0,"More options");this.K=Q;this.kt=z;this.X(this.element,"click",this.onClick);this.kt.md(this)}; $LJ=function(Q,z){var H;g.mD(Q.C())&&(H={G:"div",J:"ytp-panel-footer-content",W:[{G:"span",BI:"Adjust download quality from your "},{G:"a",J:"ytp-panel-footer-content-link",BI:"Settings",T:{href:"/account_downloads"}}]});g.hz.call(this,"Quality",g.vN.aA,Q,z,void 0,void 0,H);this.K=Q;this.L3={};this.U={};this.D={};this.De=new Set;this.Z=this.j=!1;this.Y="unknown";this.Ze="";this.wh=new g.kC;g.W(this,this.wh);this.j=this.K.V("web_player_use_new_api_for_quality_pullback");this.Z=this.K.V("web_player_enable_premium_hbr_playback_cap"); Q.V("web_settings_menu_icons")&&this.setIcon({G:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{G:"path",T:{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.SK(this.B.element,"ytp-quality-menu");this.X(Q,"videodatachange",this.Yx);this.X(Q,"videoplayerreset",this.Yx);this.X(Q,"onPlaybackQualityChange",this.Pu);this.Yx();Q.createClientVe(this.element,this,137721)}; FAA=function(Q,z,H){var f=Q.L3[z],b=g.Uh[z];return jFp(Q,f?f.qualityLabel:b?b+"p":"Auto",z,H)}; xLn=function(Q,z,H,f,b){var L=(z=Q.Z?Q.D[z]:Q.U[z])&&z.quality,u=z&&z.qualityLabel;u=u?u:"Auto";f&&(u="("+u);Q=jFp(Q,u,L||"",b);f&&Q.W.push(")");(f=(f=z&&z.paygatedQualityDetails)&&f.paygatedIndicatorText)&&H&&Q.W.push({G:"div",J:"ytp-premium-label",BI:f});return Q}; jFp=function(Q,z,H,f){z={G:"span",lT:f,W:[z]};var b;f="ytp-swatch-color";if(Q.j||Q.Z)f="ytp-swatch-color-white";H==="highres"?b="8K":H==="hd2880"?b="5K":H==="hd2160"?b="4K":H.indexOf("hd")===0&&H!=="hd720"&&(b="HD");b&&(z.W.push(" "),z.W.push({G:"sup",J:f,BI:b}));return z}; yz=function(Q,z,H,f,b,L){L=L===void 0?!1:L;var u={G:"div",lT:["ytp-input-slider-section"],W:[{G:"input",J:"ytp-input-slider",T:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};b&&u.W.unshift(b);L&&u.lT.push("ytp-vertical-slider");g.m.call(this,u);this.L=Q;this.D=z;this.Y=H;this.initialValue=f;this.header=b;this.Z=this.Mc("ytp-input-slider");this.B=f?f:Q;this.init();this.X(this.Z,"input",this.N);this.X(this.Z,"keydown", this.j)}; oDu=function(Q,z){Q.B=z;Q.updateValue("slidervalue",Q.B);Q.Z.valueAsNumber=Q.B;Oek(Q,z)}; Oek=function(Q,z){Q.Z.style.setProperty("--yt-slider-shape-gradient-percent",(z-Q.L)/(Q.D-Q.L)*100+"%")}; q8=function(Q){yz.call(this,Q.getAvailablePlaybackRates()[0],Q.getAvailablePlaybackRates()[Q.getAvailablePlaybackRates().length-1],.05,Q.getPlaybackRate(),{G:"div",J:"ytp-speedslider-indicator-container",W:[{G:"div",J:"ytp-speedslider-badge"},{G:"p",J:"ytp-speedslider-text"}]});this.K=Q;this.Ze=dou(this.wh,this);g.SK(this.Z,"ytp-speedslider");this.U=this.Mc("ytp-speedslider-text");this.De=this.Mc("ytp-speedslider-badge");JHc(this);this.X(this.Z,"change",this.L3)}; JHc=function(Q){Q.U.textContent=Q.B+"x";Q.De.classList.toggle("ytp-speedslider-premium-badge",Q.B>2&&Q.K.V("enable_web_premium_varispeed"))}; M8=function(Q,z,H,f,b,L,u){g.m.call(this,{G:"div",J:"ytp-slider-section",T:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},W:[{G:"div",J:"ytp-slider",W:[{G:"div",J:"ytp-slider-handle"}]}]});this.N=Q;this.U=z;this.B=H;this.L=f;this.Ze=b;this.yl=L;this.range=this.L-this.B;this.f3=this.Mc("ytp-slider-section");this.D=this.Mc("ytp-slider");this.wh=this.Mc("ytp-slider-handle");this.Y=new g.KL(this.D, !0);this.Z=u?u:H;g.W(this,this.Y);this.Y.subscribe("dragmove",this.TW,this);this.X(this.element,"keydown",this.Ud);this.X(this.element,"wheel",this.WA);this.init()}; CO=function(Q){M8.call(this,.05,.05,Q.getAvailablePlaybackRates()[0],Q.getAvailablePlaybackRates()[Q.getAvailablePlaybackRates().length-1],150,20,Q.getPlaybackRate());this.K=Q;this.j=g.Hx("P");this.De=dou(this.L3,this);g.SK(this.D,"ytp-speedslider");g.SK(this.j,"ytp-speedslider-text");Q=this.j;var z=this.D;z.parentNode&&z.parentNode.insertBefore(Q,z.nextSibling);NLn(this);this.X(this.K,"onPlaybackRateChange",this.updateValues)}; NLn=function(Q){Q.j.textContent=IfY(Q,Q.Z)+"x"}; IfY=function(Q,z){Q=Number(g.v3(z,Q.B,Q.L).toFixed(2));z=Math.floor((Q+.001)*100%5+2E-15);var H=Q;z!==0&&(H=Q-z*.01);return Number(H.toFixed(2))}; AHZ=function(Q){g.Ca.call(this,{G:"div",J:"ytp-speedslider-component"});Q.V("web_settings_use_input_slider")?this.Z=new q8(Q):this.Z=new CO(Q);g.W(this,this.Z);this.element.appendChild(this.Z.element)}; Ywk=function(Q){var z=new AHZ(Q);Ii.call(this,Q,z,"Custom");g.W(this,z)}; rH8=function(Q,z){var H=new Ywk(Q);g.hz.call(this,"Playback speed",g.vN.Dd,Q,z,tY(Q)?void 0:"Custom",tY(Q)?void 0:function(){g.sk(z,H)}); var f=this;this.D=!1;g.W(this,H);this.Y=new q8(Q);g.W(this,this.Y);Q.V("web_settings_menu_icons")&&this.setIcon({G:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{G:"path",T:{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.K=Q;this.D=!1;this.Ze=null;tY(Q)?(this.Z=g.EB("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.K.getPlaybackRate().toString()}),this.j=this.K.getPlaybackRate()):this.j=this.Z=null;this.U=this.K.getAvailablePlaybackRates();this.X(Q,"presentingplayerstatechange",this.Jh);var b;((b=this.K.getVideoData())==null?0:b.OZ())&&this.X(Q,"serverstitchedvideochange",this.Jh);this.X(this.Y.Z,"change",function(){f.D=!0;f.Jh()}); this.Jh()}; sFp=function(Q,z){var H=E3(z);Q.Z&&(Q.D||z===Q.j)?(Q.RJ(Q.Z),Q.UV(z.toString())):Q.RJ(H)}; P36=function(Q){Q.wz(Q.U.map(E3));Q.Z=null;Q.j=null;var z=Q.K.getPlaybackRate();tY(Q.K)&&BL_(Q,z);!Q.U.includes(z)||Q.D?Q.RJ(Q.Z):Q.RJ(E3(z))}; BL_=function(Q,z){Q.j=z;Q.Z=g.EB("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:z.toString()});z=Q.U.map(E3);z.unshift(Q.Z);Q.wz(z)}; E3=function(Q){return Q.toString()}; tY=function(Q){return Q.V("web_settings_menu_surface_custom_playback")}; afn=function(Q){return Q.V("web_settings_menu_surface_custom_playback")&&Q.V("web_settings_use_input_slider")}; cH9=function(Q,z,H,f){var b=new g.Az(z,void 0,"Video Override");g.hz.call(this,f.text||"",Q,z,H,"Video Override",function(){g.sk(H,b)}); var L=this;g.SK(this.element,"ytp-subtitles-options-menu-item");this.setting=f.option.toString();Q=f.options;this.settings=g.MI(Q,this.xT,this);this.j=b;g.W(this,this.j);z=new g.dX({G:"div",J:"ytp-menuitemtitle",BI:"Allow for a different caption style if specified by the video."},0);g.W(this,z);this.j.md(z,!0);this.D=new g.dX({G:"div",J:"ytp-menuitem",T:{role:"menuitemradio",tabindex:"0"},W:[{G:"div",J:"ytp-menuitem-label",BI:"On"}]},-1);g.W(this,this.D);this.j.md(this.D,!0);this.X(this.D.element, "click",function(){ULv(L,!0)}); this.Z=new g.dX({G:"div",J:"ytp-menuitem",T:{role:"menuitemradio",tabindex:"0"},W:[{G:"div",J:"ytp-menuitem-label",BI:"Off"}]},-2);g.W(this,this.Z);this.j.md(this.Z,!0);this.X(this.Z.element,"click",function(){ULv(L,!1)}); this.wz(g.J5(Q,this.xT))}; ULv=function(Q,z){Q.publish("settingChange",Q.setting+"Override",!z);Q.kt.R6()}; pO=function(Q,z){g.Az.call(this,Q,void 0,"Options");var H=this;this.YG={};for(var f=0;f=0);if(!(z<0||z===Q.D)){Q.D=z;z=243*Q.scale;var H=141*Q.scale,f=tGn(Q.B,Q.D,z);Cy_(Q.bg,f,z,H,!0);Q.L3.start()}}; MuJ=function(Q){var z=Q.Z;Q.type===3&&Q.De.stop();Q.api.removeEventListener("appresize",Q.wh);Q.U||z.setAttribute("title",Q.L);Q.L="";Q.Z=null;Q.updateValue("keyBoardShortcut","");Q.wrapper.style.width=""}; tu6=function(Q){g.m.call(this,{G:"button",lT:["ytp-watch-later-button","ytp-button"],T:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.xh(Q.C()))},W:[{G:"div",J:"ytp-watch-later-icon",BI:"{{icon}}"},{G:"div",J:"ytp-watch-later-title",BI:"Watch Later"}]});this.K=Q;this.icon=null;this.visible=this.isRequestPending=this.Z=!1;V39(Q);Q.createClientVe(this.element,this,28665);this.listen("click",this.onClick,this);this.X(Q,"videoplayerreset",this.onReset);this.X(Q,"appresize", this.v_);this.X(Q,"videodatachange",this.v_);this.X(Q,"presentingplayerstatechange",this.v_);this.v_();Q=this.K.C();var z=g.Pw("yt-player-watch-later-pending");Q.D&&z?(PYY(),CO9(this)):this.Jh(2);g.qP(this.element,"ytp-show-watch-later-title",g.xh(Q));Fv(this.K,this.element,this)}; ERZ=function(Q){var z=Q.K.getPlayerSize(),H=Q.K.C(),f=Q.K.getVideoData(),b=g.xh(H)&&g.Ig(Q.K)&&g.w(Q.K.getPlayerStateObject(),128),L=H.L;return H.QN&&z.width>=240&&!f.isAd()&&f.QN&&!b&&!g.zI(f)&&!Q.K.isEmbedsShortsMode()&&!L}; pi_=function(Q,z){Uc8(g.W0(Q.K.C()),"wl_button",function(){PYY({videoId:z});window.location.reload()})}; CO9=function(Q){if(!Q.isRequestPending){Q.isRequestPending=!0;Q.Jh(3);var z=Q.K.getVideoData();z=Q.Z?z.removeFromWatchLaterCommand:z.addToWatchLaterCommand;var H=Q.K.Vk(),f=Q.Z?function(){Q.Z=!1;Q.isRequestPending=!1;Q.Jh(2);Q.K.C().Y&&Q.K.F$("WATCH_LATER_VIDEO_REMOVED")}:function(){Q.Z=!0; Q.isRequestPending=!1;Q.Jh(1);Q.K.C().B&&Q.K.Ag(Q.element);Q.K.C().Y&&Q.K.F$("WATCH_LATER_VIDEO_ADDED")}; wE(H,z).then(f,function(){Q.isRequestPending=!1;Q.Jh(4,"An error has occurred. Please try again later.");Q.K.C().Y&&Q.K.F$("WATCH_LATER_ERROR","An error has occurred. Please try again later.")})}}; nRn=function(Q,z){if(z!==Q.icon){switch(z){case 3:var H=Sf();break;case 1:H=gs();break;case 2:H={G:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",w4:!0,J:"ytp-svg-fill",T:{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:H={G:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path", w4:!0,T:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}Q.updateValue("icon",H);Q.icon=z}}; g.IY=function(){g.d3.apply(this,arguments);this.W6=(this.wX=g.xh(this.api.C()))&&(this.api.C().B||zd()||Rn());this.xS=48;this.zC=69;this.dY=this.S3=null;this.vn=[];this.W3=this.Gs=this.Tc=this.J3=this.sZ=null;this.IT=[];this.contextMenu=this.Xf=this.overflowButton=this.qO=this.aJ=this.searchButton=this.copyLinkButton=this.shareButton=this.nP=this.PB=this.title=this.channelAvatar=this.uw=this.tooltip=null;this.Qj=!1;this.pD=this.fQ=this.Do=this.b4=null;this.AA=this.xC=this.SV=!1}; gRu=function(Q){var z=Q.api.C(),H=g.w(Q.api.getPlayerStateObject(),128);return z.D&&H&&!Q.api.isFullscreen()}; ZV8=function(Q){if(Q.HB()&&!Q.api.isEmbedsShortsMode()&&Q.qO){var z=Q.api.V("web_player_hide_overflow_button_if_empty_menu");!Q.nP||z&&!ERZ(Q.nP)||U_L(Q.qO,Q.nP);!Q.shareButton||z&&!wya(Q.shareButton)||U_L(Q.qO,Q.shareButton);!Q.copyLinkButton||z&&!RGY(Q.copyLinkButton)||U_L(Q.qO,Q.copyLinkButton)}else{if(Q.qO){z=Q.qO;for(var H=g.n(z.actionButtons),f=H.next();!f.done;f=H.next())f.value.detach();z.actionButtons=[]}Q.searchButton&&!g.XU(Q.PB.element,Q.searchButton.element)&&Q.searchButton.Gv(Q.PB.element); Q.nP&&!g.XU(Q.PB.element,Q.nP.element)&&Q.nP.Gv(Q.PB.element);Q.shareButton&&!g.XU(Q.PB.element,Q.shareButton.element)&&Q.shareButton.Gv(Q.PB.element);Q.copyLinkButton&&!g.XU(Q.PB.element,Q.copyLinkButton.element)&&Q.copyLinkButton.Gv(Q.PB.element)}}; GFJ=function(Q,z,H){z=H?z.lastElementChild:z.firstElementChild;for(var f=null;z;){if(Ei(z,"display")!=="none"&&z.getAttribute("aria-hidden")!=="true"){var b=void 0;z.tabIndex>=0?b=z:b=GFJ(Q,z,H);b&&(f?H?b.tabIndex>f.tabIndex&&(f=b):b.tabIndexf/1E3+1)return{msg:"in-the-past"};if(L.isLivePlayback&&!isFinite(f))return{msg:"live-infinite"};(f=z.aB())&&f.isView()&&(f=f.mediaElement);if(f&&f.WP().length>12&&g.Zm(b))return{msg:"played-ranges"};if(!b.L)return null;if(!u)return{msg:"no-pvd-formats"};if(!b.L.Z||!u.Z)return{msg:"non-dash"};f=u.videoInfos[0];var X=b.L.videoInfos[0];Q.Y&&H7(L)&&(f=z.wq(),X= H.wq());if(!f||!X)return{msg:"no-video-info"};if(Q.L&&(mq(f)||mq(X)))return{msg:"av1"};z=Q.Z&&L.fq()&&EU();if(X.containerType!==f.containerType)if(z)L.On("sgap",{ierr:"container"});else return{msg:"container"};if(Q.B&&!z&&(X.Rj!==f.Rj||X.Rj===""||f.Rj===""))return{msg:"codec"};if(Q.D&&X.video&&f.video&&Math.abs(X.video.width/X.video.height-f.video.width/f.video.height)>.01)return{msg:"ratio"};if(g.Zm(L)&&g.Zm(b))return{msg:"content-protection"};u=u.Z[0];b=b.L.Z[0];H=u.audio;var v=b.audio;if(H.sampleRate!== v.sampleRate&&!g.AI)if(z)L.On("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:u.itag,cr:H.sampleRate,ni:b.itag,nr:v.sampleRate};return(H.numChannels||2)!==(v.numChannels||2)?{msg:"channel-count"}:Q.S&&L.fq()&&f.video.fps!==X.video.fps?{msg:"fps"}:null}; xec=function(Q,z,H){var f=Q.getVideoData(),b=z.getVideoData();if(!f.C().supportsGaplessShorts())return{nq:"env"};if(H.j){if(f.Yn&&!f.isAd()||b.Yn&&!b.isAd())return{nq:"autoplay"}}else if(f.Yn||b.Yn)return{nq:"autoplay"};if(!f.N)return{nq:"client"};if(!Q.PU())return{nq:"no-empty"};Q=F1A(H,Q,z,Infinity);return Q!=null?{nq:Q.msg}:null}; ro=function(Q){g.h.call(this);this.app=Q;this.S=this.D=this.B=this.Z=null;this.L=1;this.events=new g.Bt(this);this.events.X(this.app.Yv,g.Li("gaplessshortslooprange"),this.N);g.W(this,this.events)}; OVL=function(){this.D=this.j=this.L=this.Y=this.S=this.B=this.Z=!1}; oRn=function(Q){var z=new OVL;z.Z=Q.V("h5_gapless_support_types_diff");z.S=Q.V("h5_gapless_error_on_fps_diff");z.Y=Q.V("html5_gapless_use_format_info_fix");z.L=Q.V("html5_gapless_disable_on_av1")&&!Q.V("html5_gapless_enable_on_av1");z.B=Q.V("html5_gapless_check_codec_diff_strictly");z.j=Q.V("html5_gapless_on_ad_autoplay");z.D=Q.V("html5_gapless_disable_diff_aspect_radio");return z}; g.s3=function(Q,z,H,f){f=f===void 0?!1:f;Ts.call(this);this.mediaElement=Q;this.start=z;this.end=H;this.Z=f}; JSc=function(Q,z,H,f,b,L){L=L===void 0?0:L;g.h.call(this);var u=this;this.policy=Q;this.Z=z;this.B=H;this.sV=b;this.S=L;this.D=this.L=null;this.currentVideoDuration=this.j=-1;this.Y=!1;this.LZ=new k6;this.e8=f-z.ex()*1E3;this.LZ.then(void 0,function(){}); this.timeout=new g.e_(function(){u.wP("timeout")},1E4); g.W(this,this.timeout);this.N=isFinite(f);this.status={status:0,error:null}}; ASL=function(Q){var z,H,f,b,L,u,X,v,y,q;return g.B(function(M){if(M.Z==1){if(Q.Sm())return M.return(Promise.reject(Error(Q.status.error||"disposed")));Q.timeout.start();z=g.BP.Jb();return g.Y(M,Q.LZ,2)}g.BP.gU("gtfta",z);H=Q.Z.aB();if(H.isEnded())return Q.wP("ended_in_finishTransition"),M.return(Promise.reject(Error(Q.status.error||"")));if(!Q.D||!gp(Q.D))return Q.wP("next_mse_closed"),M.return(Promise.reject(Error(Q.status.error||"")));if(Q.B.AB()!==Q.D)return Q.wP("next_mse_mismatch"),M.return(Promise.reject(Error(Q.status.error|| "")));f=NkZ(Q);b=f.ym;L=f.Wx;u=f.DZ;Q.Z.MO(!1,!0);X=I0Y(H,b,u,!Q.B.getVideoData().isAd());Q.B.setMediaElement(X);(v=Q.Z.T0())&&Q.B.BR(v.Fs,v.RZ);Q.N&&(Q.B.seekTo(Q.B.getCurrentTime()+.001,{wd:!0,aL:3,lr:"gapless_pseudo"}),X.play(),B2());y=H.TL();y.cpn=Q.Z.getVideoData().clientPlaybackNonce;y.st=""+b;y.et=""+u;Q.B.On("gapless",y);Q.Z.On("gaplessTo",{cpn:Q.B.getVideoData().clientPlaybackNonce});q=Q.Z.getPlayerType()===Q.B.getPlayerType();Q.Z.us(L,!0,!1,q,Q.B.getVideoData().clientPlaybackNonce);Q.B.us(Q.B.getCurrentTime(), !0,!0,q,Q.Z.getVideoData().clientPlaybackNonce);Q.B.MI();g.qH(function(){!Q.B.getVideoData().L3&&Q.B.getPlayerState().isOrWillBePlaying()&&Q.B.gF()}); PP(Q,6);Q.dispose();return M.return(Promise.resolve())})}; BkA=function(Q){if(Q.B.getVideoData().L){var z=Q.sV.C().V("html5_gapless_suspend_next_loader")&&Q.S===1;Q.B.B2(Q.D,z,YQ9(Q));PP(Q,3);rSa(Q);var H=s_v(Q);z=H.EB;H=H.Ei;z.subscribe("updateend",Q.aW,Q);H.subscribe("updateend",Q.aW,Q);Q.aW(z);Q.aW(H)}}; rSa=function(Q){Q.Z.unsubscribe("internalvideodatachange",Q.j8,Q);Q.B.unsubscribe("internalvideodatachange",Q.j8,Q);Q.sV.C().V("html5_gapless_use_format_info_fix")&&(Q.Z.unsubscribe("internalvideoformatchange",Q.j8,Q),Q.B.unsubscribe("internalvideoformatchange",Q.j8,Q));Q.Z.unsubscribe("mediasourceattached",Q.j8,Q);Q.B.unsubscribe("statechange",Q.qH,Q)}; I0Y=function(Q,z,H,f){Q=Q.isView()?Q.mediaElement:Q;return new g.s3(Q,z,H,f)}; PP=function(Q,z){z<=Q.status.status||(Q.status={status:z,error:null},z===5&&Q.LZ.resolve())}; YQ9=function(Q){return Q.sV.C().V("html5_gapless_no_clear_buffer_timeline")&&Q.S===1&&L9(Q.Z.getVideoData())}; NkZ=function(Q){var z=Q.Z.aB();z=z.isView()?z.start:0;var H=Q.Z.getVideoData().isLivePlayback?Infinity:Q.Z.qj(!0);H=Math.min(Q.e8/1E3,H)+z;var f=Q.N?100:0;Q=H-Q.B.yN()+f;return{iA:z,ym:Q,Wx:H,DZ:Infinity}}; s_v=function(Q){return{EB:Q.L.Z.oB,Ei:Q.L.B.oB}}; aY=function(Q){g.h.call(this);var z=this;this.app=Q;this.S=this.B=this.Z=null;this.N=!1;this.L=this.D=null;this.Y=oRn(this.app.C());this.j=function(){g.qH(function(){POn(z)})}}; a0A=function(Q,z,H,f,b){f=f===void 0?0:f;b=b===void 0?0:b;Q.PU()||U3(Q);Q.D=new k6;Q.Z=z;var L=H,u=b===0;u=u===void 0?!0:u;var X=Q.app.X$(),v=X.getVideoData().isLivePlayback?Infinity:X.qj(!0)*1E3;L>v&&(L=v-200,Q.N=!0);u&&X.getCurrentTime()>=L/1E3?Q.j():(Q.B=X,u&&(u=L,L=Q.B,Q.app.Yv.addEventListener(g.bc("vqueued"),Q.j),u=isFinite(u)||u/1E3>L.getDuration()?u:0x8000000000000,Q.S=new g.HD(u,0x8000000000000,{namespace:"vqueued"}),L.addCueRange(Q.S)));u=f/=1E3;L=z.getVideoData().Z;f&&L&&Q.B&&(X=f,v=0, z.getVideoData().isLivePlayback&&(u=Math.min(H/1E3,Q.B.qj(!0)),v=Math.max(0,u-Q.B.getCurrentTime()),X=Math.min(f,z.qj()+v)),u=unY(L,X)||f,u!==f&&Q.Z.On("qvaln",{st:f,at:u,rm:v,ct:X}));z=u;f=Q.Z;f.getVideoData().d4=!0;f.getVideoData().N=!0;f.gX(!0);L={};Q.B&&(L=Q.B.B0(),u=Q.B.getVideoData().clientPlaybackNonce,L={crt:(L*1E3).toFixed(),cpn:u});f.On("queued",L);z!==0&&f.seekTo(z+.01,{wd:!0,aL:3,lr:"videoqueuer_queued"});Q.L=new JSc(Q.Y,Q.app.X$(),Q.Z,H,Q.app,b);H=Q.L;H.status.status!==Infinity&&(PP(H, 1),H.Z.subscribe("internalvideodatachange",H.j8,H),H.B.subscribe("internalvideodatachange",H.j8,H),H.sV.C().V("html5_gapless_use_format_info_fix")&&(H.Z.subscribe("internalvideoformatchange",H.j8,H),H.B.subscribe("internalvideoformatchange",H.j8,H)),H.Z.subscribe("mediasourceattached",H.j8,H),H.B.subscribe("statechange",H.qH,H),H.Z.subscribe("newelementrequired",H.iV,H),H.j8());return Q.D}; POn=function(Q){var z,H,f,b,L,u,X,v,y;g.B(function(q){switch(q.Z){case 1:if(Q.Sm()||!Q.D||!Q.Z)return q.return();Q.N&&Q.app.X$().x7(!0,!1);H=Q.app.C().V("html5_force_csdai_gapful_transition")&&((z=Q.app.X$())==null?void 0:z.getVideoData().isDaiEnabled());f=null;if(!Q.L||H){q.bT(2);break}g.$v(q,3);return g.Y(q,ASL(Q.L),5);case 5:g.Fa(q,2);break;case 3:f=b=g.xv(q);case 2:if(!Q.Z)return q.return();g.BP.UJ("vqsp",function(){Q.app.Rl(Q.Z)}); if(!Q.Z)return q.return();L=Q.Z.aB();Q.app.C().V("html5_gapless_seek_on_negative_time")&&L&&L.getCurrentTime()<-.01&&Q.Z.seekTo(0);g.BP.UJ("vqpv",function(){Q.app.playVideo()}); if(f||H)Q.Z?(u=f?f.message:"forced",(X=Q.B)==null||X.On("gapfulfbk",{r:u}),Q.Z.J6(u)):(v=Q.B)==null||v.On("gapsp",{});y=Q.D;U3(Q);y&&y.resolve();return q.return(Promise.resolve())}})}; U3=function(Q,z){z=z===void 0?!1:z;if(Q.B){if(Q.S){var H=Q.B;Q.app.Yv.removeEventListener(g.bc("vqueued"),Q.j);H.removeCueRange(Q.S)}Q.B=null;Q.S=null}Q.L&&(Q.L.status.status!==6&&(H=Q.L,H.status.status!==Infinity&&H.S!==1&&H.wP("Canceled")),Q.L=null);Q.D=null;Q.Z&&!z&&Q.Z!==Q.app.ey()&&Q.Z!==Q.app.X$()&&Q.Z.v5();Q.Z&&z&&Q.Z.gq();Q.Z=null;Q.N=!1}; Ue9=function(Q){var z;return((z=Q.L)==null?void 0:z.currentVideoDuration)||-1}; cSv=function(Q,z,H){if(Q.PU())return"qie";if(Q.Z==null||Q.Z.Uw()||Q.Z.getVideoData()==null)return"qpd";if(z.videoId!==Q.Z.Ki())return"vinm";if(Ue9(Q)<=0)return"ivd";if(H!==1)return"upt";if((H=Q.L)==null)Q=void 0;else if(H.getStatus().status!==5)Q="niss";else if(F1A(H.policy,H.Z,H.B,H.e8)!=null)Q="pge";else{z=s_v(H);Q=z.EB;var f=z.Ei;z=g.qf(H.sV.C().experiments,"html5_shorts_gapless_next_buffer_in_seconds");H=H.j+z;f=SP(f.N4(),H);Q=SP(Q.N4(),H);Q=!(z>0)||f&&Q?null:"neb"}return Q!=null?Q:null}; iVv=function(){g.Xp.call(this);var Q=this;this.fullscreen=0;this.D=this.L=this.pictureInPicture=this.Z=this.B=this.inline=!1;this.S=function(){Q.Ox()}; hP9(this.S);this.j=this.getVisibilityState(this.oJ(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.S2(),this.CK(),this.Tn(),this.Vf())}; CD=function(Q){return!(Q.isMinimized()||Q.isInline()||Q.isBackground()||Q.S2()||Q.CK()||Q.Tn()||Q.Vf())}; g.cP=function(Q){this.rh=Q;this.videoData=this.playerState=null}; g.i_=function(Q,z){g.h.call(this);this.rh=Q;this.L={};this.kQ=this.D=this.S=null;this.Z=new g.cP(Q);this.B=z}; Vuu=function(Q){var z=Q.experiments,H=z.Nc.bind(z);h1L=H("html5_use_async_stopVideo");W18=H("html5_pause_for_async_stopVideo");Deu=H("html5_not_reset_media_source");H("html5_listen_for_audio_output_changed")&&(UZJ=!0);ZF=H("html5_not_reset_media_source");K1Y=H("html5_not_reset_media_source");C3=H("html5_retain_source_buffer_appends_for_debugging");A9Z=H("web_watch_pip");H("html5_mediastream_applies_timestamp_offset")&&(GX=!0);var f=g.qf(z,"html5_cobalt_override_quic");f&&Z4("QUIC",+(f>0));(f=g.qf(z, "html5_cobalt_audio_write_ahead_ms"))&&Z4("Media.AudioWriteDurationLocal",f);(f=H("html5_cobalt_enable_decode_to_texture"))&&Z4("Media.PlayerConfiguration.DecodeToTexturePreferred",f?1:0);(Q.vz()||H("html5_log_cpu_info"))&&UlJ();Error.stackTraceLimit=50;var b=g.qf(z,"html5_idle_rate_limit_ms");b&&Object.defineProperty(window,"requestIdleCallback",{value:function(L){return window.setTimeout(L,b)}}); PCv(Q.S);Of=H("html5_use_ump_request_slicer");OEc=H("html5_record_now");H("html5_disable_streaming_xhr")&&(wS=!1);H("html5_byterate_constraints")&&(HM=!0);H("html5_use_non_active_broadcast_for_post_live")&&(K_=!0);H("html5_sunset_aac_high_codec_family")&&(Wt["141"]="a");H("html5_enable_encrypted_av1")&&(d5=!0)}; deL=function(Q){return Q.slice(12).replace(/_[a-z]/g,function(z){return z.toUpperCase().replace("_","")}).replace("Dot",".")}; meY=function(Q){var z={},H;for(H in Q.experiments.flags)if(H.startsWith("cobalt_h5vcc")){var f=deL(H),b=g.qf(Q.experiments,H);f&&b&&(z[f]=Z4(f,b))}return z}; hY=function(Q,z,H,f,b){b=b===void 0?[]:b;g.h.call(this);this.rh=Q;this.sY=z;this.D=H;this.segments=b;this.Z=void 0;this.B=new Map;b.length&&(this.Z=b[0])}; wiv=function(Q){if(!(Q.segments.length<2)){var z=Q.segments.shift();if(z){var H=z.Z,f=[];if(H.size){H=g.n(H.values());for(var b=H.next();!b.done;b=H.next()){b=g.n(b.value);for(var L=b.next();!L.done;L=b.next()){L=L.value;for(var u=g.n(L.segments),X=u.next();!X.done;X=u.next())(X=WP(X.value))&&f.push(X);L.removeAll()}}}(H=WP(z))&&f.push(H);f=g.n(f);for(H=f.next();!H.done;H=f.next())Q.B.delete(H.value);z.dispose()}}}; DC=function(Q,z,H,f){if(!Q.Z||z>H)return!1;z=new hY(Q.rh,z,H,Q.Z,f);f=g.n(f);for(H=f.next();!H.done;H=f.next()){H=H.value;var b=WP(H);b&&b!==WP(Q.Z)&&Q.B.set(b,[H])}Q=Q.Z;Q.Z.has(z.G1())?Q.Z.get(z.G1()).push(z):Q.Z.set(z.G1(),[z]);return!0}; lK=function(Q,z){return Q.B.get(z)}; kFA=function(Q,z,H){Q.B.set(z,H)}; KO=function(Q,z,H,f,b,L){return new TkA(H,H+(f||0),!f,z,Q,b,L)}; TkA=function(Q,z,H,f,b,L,u){g.h.call(this);this.sY=Q;this.L=z;this.B=H;this.type=f;this.D=b;this.videoData=L;this.KI=u;this.Z=new Map;xm(L)}; WP=function(Q){return Q.videoData.clientPlaybackNonce}; e1J=function(Q){if(Q.Z.size)for(var z=g.n(Q.Z.values()),H=z.next();!H.done;H=z.next()){H=g.n(H.value);for(var f=H.next();!f.done;f=H.next())f.value.dispose()}Q.Z.clear()}; l0a=function(Q){this.end=this.start=Q}; g.Vz=function(){this.Z=new Map;this.L=new Map;this.B=new Map}; g.mV=function(Q,z,H,f){g.h.call(this);var b=this;this.api=Q;this.rh=z;this.playback=H;this.app=f;this.jm=new g.Vz;this.B=new Map;this.j=[];this.S=[];this.L=new Map;this.Wz=new Map;this.Y=new Map;this.uT=null;this.EY=NaN;this.yE=this.Xa=null;this.KH=new g.e_(function(){R1_(b,b.EY,b.Xa||void 0)}); this.events=new g.Bt(this);this.ZJ=15E3;this.yl=new g.e_(function(){b.f3=!0;b.playback.UL(b.ZJ);QNJ(b);b.Hn(!1)},this.ZJ); this.f3=!1;this.N=new Map;this.rT=[];this.L3=null;this.Bc=new Set;this.mq=[];this.UY=[];this.p5=[];this.Vs=[];this.Z=void 0;this.De=0;this.iT=!0;this.U=!1;this.En=[];this.WI=new Set;this.d4=new Set;this.yR=new Set;this.aN=0;this.C3=new Set;this.ys=0;this.bZ=this.gT=!1;this.qz=this.D="";this.wh=null;this.logger=new g.bk("dai");this.Po={bZn:function(){return b.B}, scl:function(){return b.j}, GYe:function(){return b.L}, Zt:function(L){b.onCueRangeEnter(b.B.get(L))}, qUT:function(L){b.onCueRangeExit(b.B.get(L))}, n$5:function(L,u){b.B.set(L,u)}, Y4j:function(L){b.qz=L}, hj:function(){return b.hj()}, yKj:function(L){return b.Y.get(L)}, lL$:function(){return b.wh}}; this.playback.getPlayerType();this.playback.nj(this);this.gh=this.rh.vz();g.W(this,this.KH);g.W(this,this.events);g.W(this,this.yl);this.events.X(this.api,g.bc("serverstitchedcuerange"),this.onCueRangeEnter);this.events.X(this.api,g.Li("serverstitchedcuerange"),this.onCueRangeExit)}; bzn=function(Q,z,H,f,b,L,u,X){var v=zXa(Q,L,L+b);Q.f3&&Q.Hz({adaftto:1});H||Q.Hz({missadcon:1,enter:L,len:b,aid:X});Q.Ze&&!Q.Ze.hf&&(Q.Ze.hf=X);Q.bZ&&Q.Hz({adfbk:1,enter:L,len:b,aid:X});var y=Q.playback;u=u===void 0?L+b:u;L===u&&!b&&Q.rh.V("html5_allow_zero_duration_ads_on_timeline")&&Q.Hz({attl0d:1});L>u&&wo(Q,{reason:"enterTime_greater_than_return",sY:L,Zm:u});var q=y.jx()*1E3;Ly&&wo(Q,{reason:"parent_return_greater_than_content_duration",Zm:u,Lbn:y});y=null;q=g.u4(Q.S,{Zm:L},function(M,C){return M.Zm-C.Zm}); q>=0&&(y=Q.S[q],y.Zm>L&&Hz8(Q,z.video_id||"",L,u,y));if(v&&y)for(q=0;q.5&&Q.Hz({ttdtb:1,delta:u,cpn:b.cpn,enter:z.adCpn,exit:H.adCpn,seek:f,skip:L});Q.api.V("html5_ssdai_enable_media_end_cue_range")&&Q.api.kR();if(z.isAd&&H.isAd){b=!!L;if(z.adCpn&&H.adCpn){var X=Q.L.get(z.adCpn);var v=Q.L.get(H.adCpn)}b?Q.Hz({igtransskip:1,enter:z.adCpn,exit:H.adCpn,seek:f,skip:L}):l_(Q,v,X,H.YV,z.YV,f,b)}else if(!z.isAd&&H.isAd){Q.qz=b.cpn;Q.api.publish("serverstitchedvideochange");X=TB(Q,"a2c");Q.Hz(X); Q.aN=0;if(X=H.VR)Q.De=X.end;var y;H.adCpn&&(y=Q.L.get(H.adCpn));y&&Q.playback.HR(y,b,H.YV,z.YV,f,!!L)}else if(z.isAd&&!H.isAd){var q;z.adCpn&&(q=Q.L.get(z.adCpn));q&&(Q.De=0,Q.qz=q.cpn,ek(Q,q),y=TB(Q,"c2a",q),Q.Hz(y),Q.aN=1,Q.playback.HR(b,q,H.YV,z.YV,f,!!L))}}; QU=function(Q,z,H){H=H===void 0?0:H;var f=g.u4(Q.S,{sY:(z+H)*1E3},function(X,v){return X.sY-v.sY}); f=f<0?(f+2)*-1:f;if(f>=0)for(var b=z*1E3,L=f;L<=f+1&&L=u.sY-H*1E3&&b<=u.Zm+H*1E3)return{MK:u,EW:z}}return{MK:void 0,EW:z}}; uWc=function(Q,z){var H="";(z=LYv(Q,z))&&(H=z.getId());return H?Q.L.get(H):void 0}; LYv=function(Q,z){if(Q.qz){var H=Q.B.get(Q.qz);if(H&&H.start-200<=z&&H.end+200>=z)return H}Q=g.n(Q.B.values());for(H=Q.next();!H.done;H=Q.next())if(H=H.value,H.start<=z&&H.end>=z)return H}; R1_=function(Q,z,H){var f=Q.yE||Q.app.X$().getPlayerState();zD(Q,!0);Q.playback.seekTo(z,H);Q=Q.app.X$();z=Q.getPlayerState();f.isOrWillBePlaying()&&!z.isOrWillBePlaying()?Q.playVideo():f.isPaused()&&!z.isPaused()&&Q.pauseVideo()}; zD=function(Q,z){Q.EY=NaN;Q.Xa=null;Q.KH.stop();Q.uT&&z&&Q.uT.rR();Q.yE=null;Q.uT=null}; Sqp=function(Q){var z=z===void 0?-1:z;var H=H===void 0?Infinity:H;for(var f=[],b=g.n(Q.S),L=b.next();!L.done;L=b.next())L=L.value,(L.sYH)&&f.push(L);Q.S=f;f=g.n(Q.B.values());for(b=f.next();!b.done;b=f.next())b=b.value,b.start>=z&&b.end<=H&&(Q.playback.removeCueRange(b),Q.B.delete(b.getId()),Q.Hz({rmAdCR:1}));f=QU(Q,z/1E3);z=f.MK;f=f.EW;if(z&&(f=f*1E3-z.sY,b=z.sY+f,z.durationMs=f,z.Zm=b,f=Q.B.get(z.cpn))){b=g.n(Q.j);for(L=b.next();!L.done;L=b.next())L=L.value,L.start===f.end?L.start=z.sY+ z.durationMs:L.end===f.start&&(L.end=z.sY);f.start=z.sY;f.end=z.sY+z.durationMs}if(z=QU(Q,H/1E3).MK){var u;f="playback_timelinePlaybackId_"+z.Tq+"_video_id_"+((u=z.videoData)==null?void 0:u.videoId)+"_durationMs_"+z.durationMs+"_enterTimeMs_"+z.sY+"_parentReturnTimeMs_"+z.Zm;Q.NO("Invalid_clearEndTimeMs_"+H+"_that_falls_during_"+f+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; XFn=function(Q){Q.jm.clearAll();Q.B.clear();Q.j=[];Q.S=[];Q.L.clear();Q.Wz.clear();Q.Y.clear();Q.N.clear();Q.rT=[];Q.L3=null;Q.Bc.clear();Q.mq=[];Q.UY=[];Q.p5=[];Q.Vs=[];Q.En=[];Q.WI.clear();Q.d4.clear();Q.yR.clear();Q.C3.clear();Q.f3=!1;Q.Z=void 0;Q.De=0;Q.iT=!0;Q.U=!1;Q.aN=0;Q.ys=0;Q.gT=!1;Q.bZ=!1;Q.D="";Q.yl.isActive()&&k2(Q)}; yVn=function(Q,z,H,f,b,L){if(!Q.bZ)if(g.v06(Q,H))Q.Hz({gdu:"undec",seg:H,itag:b});else if(z=Hg(Q,z,H,f,L),!(Q.playback.getVideoData().OZ()&&(z==null?0:z.tU)))return z}; Hg=function(Q,z,H,f,b){var L=Q.N.get(H);if(!L){if(L=qq_(Q,z))return L;z=Q.DM(H-1,f!=null?f:2);if(b)return Q.Hz({misscue:b,sq:H,type:f,prevsstate:z==null?void 0:z.GD,prevrecord:Q.N.has(H-1)}),Q.N.get(H-1);if((z==null?void 0:z.GD)===2)return Q.Hz({adnf:1,sq:H,type:f,prevrecord:Q.N.has(H-1)}),Q.N.get(H-1)}return L}; qq_=function(Q,z){z+=Q.Gl();if(Q.playback.getVideoData().OZ())a:{var H=1;H=H===void 0?0:H;var f=z*1E3;Q=g.n(Q.S);for(var b=Q.next();!b.done;b=Q.next()){b=b.value;var L=b.bd?b.bd*1E3:b.sY;if(f>=b.sY-H*1E3&&f<=L+b.durationMs+H*1E3){f={MK:b,EW:z};break a}}f={MK:void 0,EW:z}}else f=QU(Q,z),((H=f)==null?0:H.MK)||(f=QU(Q,z,1));var u;return(u=f)==null?void 0:u.MK}; MCu=function(Q,z){z=z===void 0?"":z;var H=fo(z)||void 0;if(!z||!H){var f;Q.Hz({adcfg:(f=z)==null?void 0:f.length,dcfg:H==null?void 0:H.length})}return H}; CXa=function(Q){if(Q.En.length)for(var z=g.n(Q.En),H=z.next();!H.done;H=z.next())Q.onCueRangeExit(H.value);z=g.n(Q.B.values());for(H=z.next();!H.done;H=z.next())Q.playback.removeCueRange(H.value);z=g.n(Q.j);for(H=z.next();!H.done;H=z.next())Q.playback.removeCueRange(H.value);Q.B.clear();Q.j=[];Q.jm.clearAll();Q.Z||(Q.iT=!0)}; l_=function(Q,z,H,f,b,L,u){if(z&&H){Q.qz=H.cpn;ek(Q,H);var X=TB(Q,"a2a",H);Q.Hz(X);Q.aN++;Q.playback.HR(z,H,f||0,b||0,!!L,!!u)}else Q.Hz({misspbkonadtrans:1,enter:(H==null?void 0:H.cpn)||"",exit:(z==null?void 0:z.cpn)||"",seek:L,skip:u})}; E0a=function(Q,z,H,f){if(f)for(f=0;fH){var L=b.end;b.end=z;tCa(Q,H,L)}else if(b.start>=z&&b.startH)b.start=H;else if(b.end>z&&b.end<=H&&b.start=z&&b.end<=H){Q.playback.removeCueRange(b);if(Q.En.includes(b))Q.onCueRangeExit(b);Q.j.splice(f,1);continue}f++}else tCa(Q,z,H)}; tCa=function(Q,z,H){z=Q.h1(z,H);H=!0;g.yi(Q.j,z,function(u,X){return u.start-X.start}); for(var f=0;f0){var b=Q.j[f],L=Q.j[f-1];if(Math.round(L.end/1E3)>=Math.round(b.start/1E3)){L.end=b.end;b!==z?Q.playback.removeCueRange(b):H=!1;Q.j.splice(f,1);continue}}f++}if(H)for(Q.playback.addCueRange(z),z=Q.playback.Rc("serverstitchedcuerange",36E5),z=g.n(z),H=z.next();!H.done;H=z.next())Q.B.delete(H.value.getId())}; fJ=function(Q,z,H){if(H===void 0||!H){H=g.n(Q.rT);for(var f=H.next();!f.done;f=H.next()){f=f.value;if(z>=f.start&&z<=f.end)return;if(z===f.end+1){f.end+=1;return}}Q.rT.push(new l0a(z))}}; g.v06=function(Q,z){Q=g.n(Q.rT);for(var H=Q.next();!H.done;H=Q.next())if(H=H.value,z>=H.start&&z<=H.end)return!0;return!1}; be=function(Q,z,H){var f;if(f=Q.playback.getVideoData().OZ()&&Q.rh.V("html5_lifa_extent_last_unfinished_ad_cue_range")||Q.rh.V("html5_ssdai_extent_last_unfinished_ad_cue_range"))f=(f=Q.L.get(z))&&f.PY?(Q=Q.Y.get(f==null?void 0:f.PY))&&Q.slice(-1)[0].cpn===z:!1;return f&&H===2?1E3:0}; Hz8=function(Q,z,H,f,b){var L;z={reason:"overlapping_playbacks",wrq:z,sY:H,Zm:f,zse:b.Tq,Bxm:((L=b.videoData)==null?void 0:L.videoId)||"",wem:b.durationMs,PF$:b.sY,xFT:b.Zm};wo(Q,z)}; wo=function(Q,z,H){Q.playback.gK(z,H)}; pF8=function(Q,z){var H=[];Q=Q.Y.get(z);if(!Q)return[];Q=g.n(Q);for(z=Q.next();!z.done;z=Q.next())z=z.value,z.cpn&&H.push(z.cpn);return H}; n0L=function(Q,z,H){var f=0;Q=Q.Y.get(H);if(!Q)return-1;Q=g.n(Q);for(H=Q.next();!H.done;H=Q.next()){if(H.value.cpn===z)return f;f++}return-1}; g0a=function(Q,z){var H=0;Q=Q.Y.get(z);if(!Q)return 0;Q=g.n(Q);for(z=Q.next();!z.done;z=Q.next())z=z.value,z.durationMs!==0&&z.Zm!==z.sY&&H++;return H}; Zzk=function(Q,z,H){var f=!1;if(H&&(H=Q.Y.get(H))){H=g.n(H);for(var b=H.next();!b.done;b=H.next())b=b.value,b.durationMs!==0&&b.Zm!==b.sY&&(b=b.cpn,z===b&&(f=!0),f&&!Q.d4.has(b)&&(Q.Hz({decoratedAd:b}),Q.d4.add(b)))}}; QNJ=function(Q){Q.gh&&Q.Hz({adf:"0_"+((new Date).getTime()/1E3-Q.ys)+"_isTimeout_"+Q.f3})}; zXa=function(Q,z,H){if(Q.mq.length)for(var f=g.n(Q.mq),b=f.next(),L={};!b.done;L={uI:void 0},b=f.next()){L.uI=b.value;b=L.uI.startSecs*1E3;var u=L.uI.NB*1E3+b;if(z>b&&zb&&H0&&f>z*1E3+Q.TQ5)&&(f=I9v(Q,H))){z=!1;H=void 0;f=g.n(f.segments);for(b=f.next();!b.done;b=f.next()){b=b.value;if(z){H=b;break}WP(b)===Q.qz&&(z=!0)}f=void 0;if(H)f=WP(H);else if(z){var L;f=(L=Q.timeline.Z)==null?void 0:WP(L)}if(f)Q.finishSegmentByCpn(Q.qz,f,2,void 0);else{var u;Q.api.On("ssap",{mfnc:1,mfncc:(u=Q.timeline.Z)== null?void 0:WP(u)})}}}}; o08=function(Q){return Q.api.V("html5_force_ssap_gapful_switch")||Q.api.V("html5_ssap_enable_legacy_browser_logic")&&!EU()}; sN_=function(Q,z,H,f){Q.NA.set(z,f);Yq9(Q,z,H);rVA(Q,H)}; sJ=function(Q,z){Q=lK(Q.timeline,z);return(Q==null?0:Q.length)?Q[0].G1():0}; BN=function(Q,z){var H=H===void 0?!1:H;var f=Q.timeline.Z;if(!f)return{clipId:"",hB:0};var b=BFn(Q,z,H);if(b)return{clipId:WP(b)||"",hB:b.G1()};Q.api.On("mci",{cs:WP(f),mt:z,tl:S8(Q),invt:!!H});return{clipId:"",hB:0}}; kY=function(Q){var z=Q.timeline.Z;if(!z)return 0;Q=0;if(z.Z.size===0)return(z.AT()-z.G1())/1E3;z=z.Z.values();z=g.n(z);for(var H=z.next();!H.done;H=z.next()){H=g.n(H.value);for(var f=H.next();!f.done;f=H.next())f=f.value,Q+=(f.AT()-f.G1())/1E3}return Q}; a9c=function(Q,z){return(Q=PXA(Q,z*1E3))?Q.G1():0}; Uwu=function(Q,z){var H=lK(Q.timeline,z);z=0;if(H==null?0:H.length)for(Q=g.n(H),H=Q.next();!H.done;H=Q.next())H=H.value,z+=(H.AT()-H.G1())/1E3;else return kY(Q);return z}; PXA=function(Q,z){if(Q=lK(Q.timeline,Q.qz)){Q=g.n(Q);for(var H=Q.next();!H.done;H=Q.next())if(H=H.value,H.G1()<=z&&H.AT()>=z)return H}}; cVc=function(Q){var z=Q.playback.getVideoData();Q.qz&&(Q=Q.Vz.get(Q.qz))&&(z=Q);return z}; I9v=function(Q,z,H){H=H===void 0?!1:H;var f=Q.timeline.Z;if(f){f=f.Z;var b=Array.from(f.keys());g.Xk(b);z=g.u4(b,z);z=f.get(b[z<0?(z+2)*-1:z]);if(!H&&z){H=g.n(z);for(z=H.next();!z.done;z=H.next())if(z=z.value,z.G1()!==z.AT())return z;return Q.timeline}return z&&z.length>0?z[z.length-1]:void 0}}; BFn=function(Q,z,H){H=H===void 0?!1:H;var f=I9v(Q,z,H);if(f){if(Q=f.segments,Q.length){for(var b=g.n(Q),L=b.next();!L.done;L=b.next())if(L=L.value,L.G1()<=z&&L.AT()>z)return L;if(H&&f.G1()===f.AT())return Q[0]}}else Q.api.On("ssap",{ctnf:1})}; xwv=function(Q,z){var H;if(Q.E2)for(H=Q.nD.shift();H&&H!==Q.E2;)H=Q.nD.shift();else H=Q.nD.shift();if(H){if(Q.J9.has(H))izZ(Q,H);else if(z===3||z===4)Q.Ia.stop(),Q.api.playVideo(1,Q.api.V("html5_ssap_keep_media_on_finish_segment"));Q.NA.set(Q.qz,z);Q.api.On("ssap",{onvftn:1});rVA(Q,H);return!1}Q.api.On("ssap",{onvftv:1});Q.Ia.stop();return!0}; izZ=function(Q,z){z=lK(Q.timeline,z);if(z==null?0:z.length)Q.api.pauseVideo(),Q.Ia.start(z[0].KI)}; rVA=function(Q,z){var H=Q.playback.getVideoData(),f=H.clientPlaybackNonce;Q.yI&&(Q.events.DS(Q.yI),Q.yI=null,Q.playback.B3());var b=Q.qz,L=!1;if(b==="")b=f,L=!0;else if(b===void 0){var u=Q.playback.cT();u&&Q.timeline.B.has(u)&&(b=u);Q.api.On("ssap",{mcc:b+";"+z});Q.playback.h7(new Oh("ssap.timelineerror",{e:"missing_current_cpn",pcpn:b,ccpn:z}))}if(b===z)L&&H&&hXA(Q,H,L);else{u=Q.NA.get(b);if(!L&&(!u||u!==3&&u!==5&&u!==6&&u!==7)){var X=Q.api.kR(Q.qz);Q.api.On("ssap",{nmec:X,cpc:Q.qz,ec:z})}u&&u!== 2||Q.r5();Q.qz=z;Q.r5();z=lK(Q.timeline,Q.qz);if(z==null?0:z.length){z=z[0];X=z.getType();b!==f&&(Q.PK=b,H=Q.Vz.get(b));u?Q.NA.delete(b):u=L?1:2;Q.api.V("html5_ssap_pacf_qoe_ctmp")&&X===2&&!z.B&&(Q.yI=Q.events.X(Q.api,"onVideoProgress",Q.J$m));Q.api.On("ssapt",{ostro:u,pcpn:b,ccpn:Q.qz});a:{var v=Q.qz;if(!Q.B7.has(v))for(var y=g.n(Q.B7),q=y.next();!q.done;q=y.next()){var M=g.n(q.value);q=M.next().value;M=M.next().value;if(M.getId().includes(v)){v=q;break a}}}y=Q.api.C().V("html5_ssap_insert_su_before_nonvideo")&& v!==Q.qz;Q.playback.Vc(v,y);v=Math.max(0,LJ(Q,b));y=Q.playback.getCurrentTime();y=Math.max(0,y-sJ(Q,Q.qz)/1E3);q=z.getVideoData();M=u===3||u===5||u===6||u===7;if(Q.api.V("html5_ssap_skip_illegal_seeking")){var C=Q.playback.getPlayerState();C=!g.w(C,8)&&g.w(C,16);M=M||C;C&&Q.api.On("ssap",{iis:1})}Q.playback.H9(b,Q.qz,v,y,!1,M,Q.playback.getPlayerState(),!0);Q.api.On("ssapt",{ostri:u,pcpn:b,ccpn:Q.qz});var t;Q.playback.F0(b,Q.qz,f,q,(t=Q.oC.get(b))!=null?t:(0,g.NV)(),H);Q.oC.delete(b);L?H=void 0:H|| Q.api.On("ssap",{pvdm:b+";"+Q.qz,pvdmc:Q.qz===f?"1":"0"});Q.api.On("ssap",{tpac:b+";"+Q.qz,tpcc:f,tpv:(q==null?0:q.EZ())?"1":"0"},!1,1);Q.api.C().V("html5_ssap_cleanup_player_switch_ad_player")&&Q.api.n_();Q.api.publish("videodatachange","newdata",q,X,H,u);z.B||Q.playback.getVideoData().publish("dataupdated");Q.J9.delete(b);Q.E2="";q&&X===1?hXA(Q,q):Q.playback.On("ssap",{nis:Q.qz});X===2?Q.aN++:Q.aN=0}}}; hXA=function(Q,z,H){H=H===void 0?!1:H;if(z.startSeconds&&Q.XH){var f=z.startSeconds;z=lK(Q.timeline,z.clientPlaybackNonce);if(z==null?0:z.length)f+=z[0].G1()/1E3,Q.api.V("htm5_ssap_ignore_initial_seek_if_too_big")&&f>=Q.EF()||(Q.playback.seekTo(f,{Rr:!0}),Q.XH=!1,Q.playback.On("ssap",{is:Q.qz,co:H?"1":"0",tse:f.toFixed()}))}}; Yq9=function(Q,z,H){z=lK(Q.timeline,z);if(z!=null&&z.length&&(z=I9v(Q,z[0].G1()))){z=g.n(z.segments);for(var f=z.next();!f.done;f=z.next()){f=f.value;if(WP(f)===H)break;if(f=WP(f)){var b=Q.B7.get(f);b&&Q.playback.removeCueRange(b);Q.B7.delete(f)}}}}; ab=function(Q){return Q.playback.getVideoData().clientPlaybackNonce}; hxA=function(Q,z){if(Q.V5&&Q.qz!==z)return!1;if(Q.Ip)return!0;if(z=Q.B7.get(z))if(z=z.getId().split(","),z.length>1)for(var H=0;HL)return ue(Q,"enterAfterReturn enterTimeMs="+b+" is greater than parentReturnTimeMs="+L.toFixed(3),u,X),"";var y=v.jx()*1E3;if(by)return v="returnAfterDuration parentReturnTimeMs="+L.toFixed(3)+" is greater than parentDurationMs="+y+". And timestampOffset in seconds is "+ v.ex(),ue(Q,v,u,X),"";y=null;for(var q=g.n(Q.B),M=q.next();!M.done;M=q.next()){M=M.value;if(b>=M.sY&&bM.sY)return ue(Q,"overlappingReturn",u,X),"";if(L===M.sY)return ue(Q,"outOfOrder",u,X),"";b===M.Zm&&(y=M)}u="cs_childplayback_"+KYL++;X={VR:SQ(f,!0),e8:Infinity,target:null};var C={Tq:u,playerVars:z,playerType:H,durationMs:f,sY:b,Zm:L,Qt:X};Q.B=Q.B.concat(C).sort(function(G,x){return G.sY-x.sY}); y?VCv(Q,y,{VR:SQ(y.durationMs,!0),e8:y.Qt.e8,target:C}):(z={VR:SQ(b,!1),e8:b,target:C},Q.S.set(z.VR,z),v.addCueRange(z.VR));z=!0;if(Q.Z===Q.app.X$()&&(v=v.getCurrentTime()*1E3,v>=C.sY&&vz)break;if(L>z)return{MK:f,EW:z-b};H=L-f.Zm/1E3}return{MK:null,EW:z-H}}; WYa=function(Q,z,H){H=H===void 0?{}:H;var f=Q.j||Q.app.X$().getPlayerState();yU(Q,!0);z=isFinite(z)?z:Q.Z.yf();var b=eX_(Q,z);z=b.EW;var L=(b=b.MK)&&!XF(Q,b)||!b&&Q.Z!==Q.app.X$(),u=z*1E3;u=Q.L&&Q.L.start<=u&&u<=Q.L.end;!L&&u||vg(Q);b?dwn(Q,b,z,H,f):l9k(Q,z,H,f)}; l9k=function(Q,z,H,f){var b=Q.Z,L=Q.app.X$();b!==L&&Q.app.Kb();b.seekTo(z,Object.assign({},{lr:"application_timelinemanager"},H));RXc(Q,f)}; dwn=function(Q,z,H,f,b){var L=XF(Q,z);if(!L){z.playerVars.prefer_gapless=!0;Q.rh.V("html5_enable_ssap_entity_id")&&(z.playerVars.cached_load=!0);var u=new g.D1(Q.rh,z.playerVars);u.Tq=z.Tq;Q.api.l1(u,z.playerType)}u=Q.app.X$();L||u.addCueRange(z.Qt.VR);u.seekTo(H,Object.assign({},{lr:"application_timelinemanager"},f));RXc(Q,b)}; RXc=function(Q,z){Q=Q.app.X$();var H=Q.getPlayerState();z.isOrWillBePlaying()&&!H.isOrWillBePlaying()?Q.playVideo():z.isPaused()&&!H.isPaused()&&Q.pauseVideo()}; yU=function(Q,z){Q.Ze=NaN;Q.U=null;Q.N.stop();Q.D&&z&&Q.D.rR();Q.j=null;Q.D=null}; XF=function(Q,z){Q=Q.app.X$();return!!Q&&Q.getVideoData().Tq===z.Tq}; QpY=function(Q){var z=Q.B.find(function(b){return XF(Q,b)}); if(z){var H=Q.app.X$();vg(Q);var f=new g.zE(8);z=TFc(Q,z)/1E3;l9k(Q,z,{},f);H.On("forceParentTransition",{childPlayback:1});Q.Z.On("forceParentTransition",{parentPlayback:1})}}; HMn=function(Q,z,H){z=z===void 0?-1:z;H=H===void 0?Infinity:H;for(var f=z,b=H,L=g.n(Q.S),u=L.next();!u.done;u=L.next()){var X=g.n(u.value);u=X.next().value;X=X.next().value;X.e8>=f&&X.target&&X.target.Zm<=b&&(Q.Z.removeCueRange(u),Q.S.delete(u))}f=z;b=H;L=[];u=g.n(Q.B);for(X=u.next();!X.done;X=u.next())if(X=X.value,X.sY>=f&&X.Zm<=b){var v=Q;v.Y===X&&vg(v);XF(v,X)&&v.app.Kb()}else L.push(X);Q.B=L;f=eX_(Q,z/1E3);z=f.MK;f=f.EW;z&&(f*=1E3,zT9(Q,z,f,z.Zm===z.sY+z.durationMs?z.sY+f:z.Zm));(z=eX_(Q,H/1E3).MK)&& ue(Q,"Invalid clearEndTimeMs="+H+" that falls during playback={timelinePlaybackId="+(z.Tq+" video_id="+z.playerVars.video_id+" durationMs="+z.durationMs+" enterTimeMs="+z.sY+" parentReturnTimeMs="+z.Zm+"}.Child playbacks can only have duration updated not their start."))}; zT9=function(Q,z,H,f){z.durationMs=H;z.Zm=f;f={VR:SQ(H,!0),e8:H,target:null};VCv(Q,z,f);XF(Q,z)&&Q.app.X$().getCurrentTime()*1E3>H&&(z=TFc(Q,z)/1E3,H=Q.app.X$().getPlayerState(),l9k(Q,z,{},H))}; ue=function(Q,z,H,f){Q.Z.On("timelineerror",{e:z,cpn:H?H:void 0,videoId:f?f:void 0})}; bMc=function(Q){Q&&Q!=="web"&&feu.includes(Q)}; CJ=function(Q,z){g.h.call(this);var H=this;this.data=[];this.L=Q||NaN;this.B=z||null;this.Z=new g.e_(function(){qc(H);Mc(H)}); g.W(this,this.Z)}; LFk=function(Q){qc(Q);return Q.data.map(function(z){return z.value})}; qc=function(Q){var z=(0,g.NV)();Q.data.forEach(function(H){H.expireL?{width:z.width,height:z.width/b,aspectRatio:b}:bb?Q.width=Q.height*H:Hv;if(nJ(Q)){var y=qIA(Q);var q=isNaN(y)||g.kw||zX&&g.Ga||v;wG&&!g.pr(601)?y=b.aspectRatio:q=q||L.controlsType==="3";q?v?(q=L.V("place_shrunken_video_on_left_of_player")?16:Q.getPlayerSize().width-z.width-16,y=Math.max((Q.getPlayerSize().height-z.height)/2,0),q=new g.S$(q,y,z.width, z.height),Q.OV.style.setProperty("border-radius","12px")):q=new g.S$(0,0,z.width,z.height):(H=b.aspectRatio/y,q=new g.S$((z.width-b.width/H)/2,(z.height-b.height)/2,b.width/H,b.height),H===1&&g.Ga&&(y=q.width-z.height*y,y>0&&(q.width+=y,q.height+=y)));g.qP(Q.element,"ytp-fit-cover-video",Math.max(q.width-b.width,q.height-b.height)<1);if(X||Q.iG)Q.OV.style.display="";Q.IS=!0}else{q=-z.height;wG?q*=window.devicePixelRatio:g.Tt&&(q-=window.screen.height);q=new g.S$(0,q,z.width,z.height);if(X||Q.iG)Q.OV.style.display= "none";Q.IS=!1}XL(Q.dK,q)||(Q.dK=q,g.Yh(L)?(Q.OV.style.setProperty("width",q.width+"px","important"),Q.OV.style.setProperty("height",q.height+"px","important")):g.j$(Q.OV,q.getSize()),f=new g.t6(q.left,q.top),g.gW(Q.OV,Math.round(f.x),Math.round(f.y)),f=!0);z=new g.S$((z.width-b.width)/2,(z.height-b.height)/2,b.width,b.height);XL(Q.NJ,z)||(Q.NJ=z,f=!0);g.q2(Q.OV,"transform",H===1?"":"scaleX("+H+")");u&&v!==Q.Xd&&(v&&(Q.OV.addEventListener(yW,Q.Dg),Q.OV.addEventListener("transitioncancel",Q.Dg),Q.OV.classList.add(g.WB.VIDEO_CONTAINER_TRANSITIONING)), Q.Xd=v,Q.app.Yv.publish("playerUnderlayVisibilityChange",Q.Xd?"transitioning":"hidden"));return f}; E4u=function(){this.csn=g.ox();this.clientPlaybackNonce=null;this.elements=new Set;this.L=new Set;this.Z=new Set;this.B=new Set}; pvk=function(Q){if(Q.csn!==g.ox())if(Q.csn==="UNDEFINED_CSN")Q.csn=g.ox();else{var z=g.ox(),H=g.OX();if(z&&H){Q.csn=z;for(var f=g.n(Q.elements),b=f.next();!b.done;b=f.next())(b=b.value.visualElement)&&b.isClientVe()&&z&&H&&(g.jT("combine_ve_grafts")?OW(F_(),b,H):g.QC(g.wl)(void 0,z,H,b))}if(z)for(Q=g.n(Q.Z),H=Q.next();!H.done;H=Q.next())(H=H.value.visualElement)&&H.isClientVe()&&g.Hf(z,H)}}; g.gQ=function(Q,z,H,f){g.h.call(this);var b=this;this.logger=new g.bk("App");this.yx=this.M7=!1;this.I9={};this.ZU=[];this.WF=!1;this.VS=null;this.intentionalPlayback=!1;this.b5=!0;this.Q_=!1;this.Sa=this.Ub=null;this.Nq=!0;this.mediaElement=this.GL=null;this.Gk=NaN;this.AQ=!1;this.Cp=this.rD=this.OY=this.Xh=this.screenLayer=this.playlist=null;this.Kd=[];this.HW=0;this.Po={CG:function(){return b.Qs}, t$:function(){return b.OY}, L$:function(u){b.OY=u}, Vj:function(u,X){b.OY&&b.OY.Vj(u,X)}}; this.logger.debug("constructor begin");this.config=HZa(z||{});this.webPlayerContextConfig=H;EFu();z=this.config.args||{};this.rh=new c0(z,H,H?H.canaryState:this.config.assets.player_canary_state,f,this);g.W(this,this.rh);Vuu(this.rh);f=meY(this.rh);this.rh.vz()&&this.Kd.push({key:"h5vcc",value:f});this.rh.experiments.Nc("jspb_serialize_with_worker")&&TRn();this.rh.experiments.Nc("gzip_gel_with_worker")&&Wkn();this.rh.B&&!n4n&&(window.addEventListener(Gt?"touchstart":"click",j_Y,{capture:!0,passive:!0}), n4n=!0);this.V("html5_onesie")&&(this.Pp=new r9(this.rh),g.W(this,this.Pp));this.hx=bh(ol(this.rh)&&!0,z.enablesizebutton);this.uO=bh(!1,z.player_wide);this.visibility=new iVv;g.W(this,this.visibility);this.V("web_log_theater_mode_visibility")&&this.Kx(bh(!1,z.player_wide));this.M7=bh(!1,z.external_list);this.events=new g.Bt(this);g.W(this,this.events);this.V("start_client_gcf")&&(Yk(Pb(),{QX:vU,s1:q96()}),this.y4=Pb().resolve(vU),tyv(this.y4));this.qx$=new qW;g.W(this,this.qx$);this.ZL=new E4u;f= new MW;this.Yv=new g.OZ(this,f);g.W(this,this.Yv);this.template=new v4L(this);g.W(this,this.template);this.appState=1;this.JT=g49(this);g.W(this,f);f={};this.vL=(f.internalvideodatachange=this.nw,f.playbackready=this.aS5,f.playbackstarted=this.kq5,f.statechange=this.Mxq,f);this.jX=new qb(this.Yv);this.RB=ZM9(this);f=this.V("html5_load_wasm");z=this.V("html5_allow_asmjs");if(f&&G1Z||z)this.rh.LA=ywZ(this.RB,z),CE(M1(this.rh.LA,function(u){b.rh.xs=u;var X;(X=b.X$())==null||X.On("wasm",{a:u.fV})}),function(u){g.PT(u); u="message"in u&&u.message||u.toString()||"";var X;(X=b.X$())==null||X.On("wasm",{e:u})}); else if(f&&!G1Z){var L;(L=this.X$())==null||L.On("wasm",{e:"wasm unavailable"})}this.jy=new n2A(this.rh,this.RB);this.Yv.publish("csiinitialized");L=10;g.OV(this.rh)&&(L=3);wm(this.rh)&&(L=g.qf(this.rh.experiments,"tvhtml5_unplugged_preload_cache_size"));L=new CJ(L,function(u){u!==b.QE(u.getPlayerType())&&u.v5()}); g.W(this,L);this.Qs=new g.i_(this.rh,L);L=$ua(this);this.Qs.jF(L);jp8(this);L={};this.iD=(L.airplayactivechange=this.onAirPlayActiveChange,L.airplayavailabilitychange=this.onAirPlayAvailabilityChange,L.beginseeking=this.YC,L.sabrCaptionsDataLoaded=this.u1,L.endseeking=this.XT,L.internalAbandon=this.zQ,L.internalaudioformatchange=this.jK,L.internalvideodatachange=this.onVideoDataChange,L.internalvideoformatchange=this.vE,L.liveviewshift=this.Uin,L.playbackstalledatstart=this.y$l,L.progresssync=this.YZe, L.onAbnormalityDetected=this.AS,L.onSnackbarMessage=this.onSnackbarMessage,L.onLoadProgress=this.onLoadProgress,L.SEEK_COMPLETE=this.cE,L.SEEK_TO=this.wqT,L.onVideoProgress=this.onVideoProgress,L.onLoadedMetadata=this.onLoadedMetadata,L.onAutoplayBlocked=this.onAutoplayBlocked,L.onPlaybackPauseAtStart=this.Gx3,L.playbackready=this.KMn,L.statechange=this.B9,L.newelementrequired=this.XU,L.heartbeatparams=this.xj,L.videoelementevent=this.bS,L.drmoutputrestricted=this.onDrmOutputRestricted,L.signatureexpired= this.a6n,L.nonfatalerror=this.LMn,L.reloadplayer=this.han,L);this.V6=new g.Bt(this);g.W(this,this.V6);this.cn=new EL;g.W(this,this.cn);this.wW=this.I0=-1;this.q9=new g.e_(this.template.resize,16,this.template);g.W(this,this.q9);this.J7=new DwY(this.Yv,this.rh,this.ey(),this);this.FS=new hY(this.rh);this.t5=new aY(this);g.W(this,this.t5);this.GP=new ro(this);g.W(this,this.GP);bMc(this.rh.Z.c);this.events.X(this.Yv,g.bc("appapi"),this.B4m);this.events.X(this.Yv,g.Li("appapi"),this.qVI);this.events.X(this.Yv, g.bc("appprogressboundary"),this.cMe);this.events.X(this.Yv,g.Li("applooprange"),this.bE);this.events.X(this.Yv,"presentingplayerstatechange",this.BU);this.events.X(this.Yv,"resize",this.Imc);this.template.Gv(KC(document,Q));this.events.X(this.Yv,"offlineslatestatechange",this.kx$);this.events.X(this.Yv,"sabrCaptionsTrackChanged",this.oJm);this.events.X(this.Yv,"sabrCaptionsBufferedRangesUpdated",this.r$T);this.RB.K.C().yw&&J4(this.RB,"offline");this.rh.rT&&g.nA("ux",g.AY);Q=g.qf(this.rh.experiments, "html5_defer_fetch_att_ms");this.zT=new g.e_(this.b2h,Q,this);g.W(this,this.zT);this.Iq().EZ()&&(g.UP()&&this.Iq().De.push("remote"),FFk(this));this.jy.tick("fs");xuk(this);this.rh.rT&&J4(this.RB,"ux",!0);g.xh(this.RB.K.C())&&J4(this.RB,"embed");this.V("web_player_sentinel_is_uniplayer")||g.PT(new g.wD("Player experiment flags missing","web_player_sentinel_is_uniplayer"));Q=this.V("web_player_sentinel_yt_experiments_sync");L=g.jT("web_player_sentinel_yt_experiments_sync");Q!==L&&g.PT(new g.wD("b/195699950", {yt:Q,player:L}));H||g.PT(new g.wD("b/179532961"));this.nF=OM9(this);if(H=g.qf(this.rh.experiments,"html5_block_pip_safari_delay"))this.Mg=new g.e_(this.fk,H,this),g.W(this,this.Mg);P2=this.rh.ys;H=g.qf(this.rh.experiments,"html5_performance_impact_profiling_timer_ms");H>0&&(this.G_=new g.xr(H),g.W(this,this.G_),this.events.X(this.G_,"tick",function(){b.KN&&o4Z.gU("apit",b.KN);b.KN=o4Z.Jb()})); this.Yv.publish("applicationInitialized");this.logger.debug("constructor end")}; OM9=function(Q){function z(H){H.stack&&H.stack.indexOf("player")!==-1&&(Q.X$()||Q.ey()).Hm(H)} ax.subscribe("handleError",z);lq.push(z);return function(){ax.unsubscribe("handleError",z);var H=lq.indexOf(z);H!==-1&&lq.splice(H,1)}}; $ua=function(Q){var z=new g.D1(Q.rh,Q.config.args);Q.Yv.publish("initialvideodatacreated",z);return Z2(Q,1,z,!1)}; jp8=function(Q){var z=Q.ey();z.setPlaybackRate(Q.rh.D?1:J38(Q,Number(g.Pw("yt-player-playback-rate"))||1));z.rZ(Q.vL,Q);z.Sv()}; ZM9=function(Q){var z="",H=SI_(Q);H.indexOf("//")===0&&(H=Q.rh.protocol+":"+H);var f=H.lastIndexOf("/base.js");f!==-1&&(z=H.substring(0,f+1));if(H=Error().stack)if(H=H.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))H=H[1],H.includes(z)||g.PT(Error("Player module URL mismatch: "+(H+" vs "+z+".")));z=new m8n(Q.Yv,z);NKL(Q,z);return z}; NKL=function(Q,z){var H={};H=(H.destroyed=function(){Q.onApiChange()},H); z.L=H}; g49=function(Q){if(Q.rh.storeUserVolume){Q=g.Pw("yt-player-volume")||{};var z=Q.volume;Q={volume:isNaN(z)?100:g.v3(Math.floor(z),0,100),muted:!!Q.muted}}else Q={volume:100,muted:Q.rh.mute};return Q}; GD=function(Q){Q.mediaElement=Q.rh.deviceIsAudioOnly?new g.lt(g.Hx("AUDIO")):Y2.pop()||new g.lt(g.Hx("VIDEO"));g.W(Q,Q.mediaElement);var z=Q.X$();z&&z.setMediaElement(Q.mediaElement);try{Q.rh.Vs?(Q.rD&&Q.events.DS(Q.rD),Q.rD=Q.events.X(Q.mediaElement,"volumechange",Q.wcj)):(Q.mediaElement.qA(Q.JT.muted),Q.mediaElement.setVolume(Q.JT.volume/100))}catch(b){Q.wP("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(b&&typeof b==="object"&&"message"in b&&typeof b.message==="string"&&b.message.replace(/[;:,]/g, "_")));return}g.Aq(Q.V6);IeA(Q);z=Q.template;var H=Q.mediaElement.ai();z.OV=H;z.CT=!1;z.OV.parentNode||uT(z.hc,z.OV,0);z.dK=new g.S$(0,0,0,0);tga(z);pJ(z);H=z.OV;g.SK(H,"video-stream");g.SK(H,g.WB.MAIN_VIDEO);var f=z.app.C();f.Ef&&H.setAttribute("data-no-fullscreen","true");f.V("html5_local_playsinline")?"playsInline"in NC()&&(H.playsInline=!0):f.Lt&&(H.setAttribute("webkit-playsinline",""),H.setAttribute("playsinline",""));f.Ve&&z.OV&&z.X(H,"click",H.play,H);try{Q.mediaElement.activate()}catch(b){Q.wP("html5.missingapi", 2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(b&&typeof b==="object"&&"message"in b&&typeof b.message==="string"&&b.message.replace(/[;:,]/g,"_")))}}; YI6=function(Q){if(!A39(Q)){var z=Q.ey().aB();z&&(z=z.Bd(),z instanceof Promise&&z.catch(function(){})); $I(Q,vR(Q.getPlayerStateObject()))}}; IeA=function(Q){var z=Q.mediaElement;r5()?Q.V6.X(z,"webkitpresentationmodechanged",Q.Hin):window.document.pictureInPictureEnabled&&(Q.V6.X(z,"enterpictureinpicture",function(){Q.z$(!0)}),Q.V6.X(z,"leavepictureinpicture",function(){Q.z$(!1)})); eT&&(Q.V6.X(z,"webkitbeginfullscreen",function(){Q.tB(3)}),Q.V6.X(z,"webkitendfullscreen",function(){Q.tB(0)}))}; r3_=function(Q,z){var H=z.getPlayerType(),f=Q.Qs.QE(H);z!==Q.ey()&&z!==f&&(f==null||f.v5(),Q.Qs.L[H]=z)}; spY=function(Q,z){z=z===void 0?!0:z;Q.logger.debug("start clear presenting player");var H;if(H=Q.Cp){H=Q.Cp;var f=Q.mediaElement;H=!!f&&f===H.mediaElement}H&&(Q.MO(),GD(Q));if(H=Q.X$())H.MO(!z),H.AY(Q.iD,Q),H.getPlayerType()!==1&&H.v5();Q.Qs.D=null;Q.logger.debug("finish clear presenting player")}; g.BKJ=function(Q,z,H,f){var b=Q.jy;z===2&&(b=new n2A(Q.rh));return new g.v9(Q.rh,z,b,Q.template,function(L,u,X){Q.Yv.publish(L,u,X)},function(){return Q.Yv.getVisibilityState()},Q.visibility,Q,H,f)}; Z2=function(Q,z,H,f,b){Q=g.BKJ(Q,z,H,b);z=new g.ij(Q);Q.Sg=z;f&&Q.Sv();return z}; jQ=function(Q,z){return Q.Uj(z)?Q.ey():z}; FF=function(Q,z){var H=Q.X$(),f=Q.ey();return H&&z===f&&Q.Uj(z)&&Q.Uj(H)?H:z}; Uua=function(Q){Q.logger.debug("start application playback");if(Q.ey().getPlayerState().isError())Q.logger.debug("start application playback done, player in error state");else{var z=xI(Q);Q.Iq().isLoaded();z&&Q.Za(6);P9Y(Q);f29(Q.RB)||aea(Q)}}; aea=function(Q){if(!xI(Q)){var z=IO(Q.RB);z&&!z.created&&wP6(Q.RB)&&(Q.logger.debug("reload ad module"),z.create())}}; P9Y=function(Q){Q.logger.debug("start presenter playback");var z=Q.getVideoData(),H=Q.RB;f29(H)||H.AX();!G1Z&&H.K.V("html5_allow_asmjs")&&vIu(H);J4(H,"embed");J4(H,"kids");J4(H,"remote");J4(H,"miniplayer");J4(H,"offline");J4(H,"unplugged");J4(H,"ypc",!1,!0);J4(H,"ypc_clickwrap",!1,!0);J4(H,"yto",!1,!0);J4(H,"webgl",!1,!0);bJ9(H)||(J4(H,"captions",!0),J4(H,"endscreen"),H.XC()||H.bB(),J4(H,"creatorendscreen",!0));H.IM();Q.Yv.publish("videoready",z)}; OL=function(Q){Q=Q.Iq();Q.EZ();return c7(Q)}; xuk=function(Q){Q.logger.debug("start prepare initial playback");Q.hX();var z=Q.config.args;GD(Q);var H=Q.Iq();Q.Yv.A$("onVolumeChange",Q.JT);if(z&&jY6(z)){var f=Ko(Q.rh);f&&!Q.M7&&(z.fetch=0);var b=g.xh(Q.rh);b&&!Q.M7&&(z.fetch=0);oP(Q,z);g.xh(Q.rh)&&Q.jy.tick("ep_pr_s");if(!f||Q.M7)if(b&&!Q.M7)c3a(Q);else if(!H.EZ())Q.playlist.onReady(function(){Jw(Q)})}Q.Rl(Q.ey()); g.w(Q.ey().getPlayerState(),128)||(z=nUA(!Q.rh.deviceIsAudioOnly),z==="fmt.noneavailable"?Q.wP("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):z==="html5.missingapi"?Q.wP(z,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):H&&H.EZ()&&OL(Q)&&(Q.rh.C2||Q.rh.dQ)?Nc(Q):H.TK?Q.Yv.mutedAutoplay({durationMode:H.mutedAutoplayDurationMode}):g.Pw("yt-player-playback-on-reload")?(g.y5("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!Q.rh.L3}),g.Bw("yt-player-playback-on-reload",!1), Nc(Q)):lf(Q.rh)||iML(Q),g.mD(Q.rh)||mf(Q.rh)==="MWEB"?(g.R4(g.za(),function(){IP(Q)}),g.R4(g.za(),function(){xA8()})):(IP(Q),xA8()),Q.logger.debug("finish prepare initial playback"))}; IP=function(Q){if(!Q.V("use_rta_for_player"))if(Q.V("fetch_att_independently"))g.lp(Q.zT);else{var z=Q.getVideoData().botguardData;z&&g.BB(z,Q.rh,Q.getVideoData().iF||"")}}; iML=function(Q){Q.logger.debug("start initialize to CUED mode");Q.Yv.publish("initializingmode");Q.Za(2);Q.V("embeds_web_enable_defer_loading_remote_js")&&g.kh(Q.rh)?g.R4(g.za(),function(){J4(Q.RB,"remote")}):J4(Q.RB,"remote"); J4(Q.RB,"miniplayer");Q.logger.debug("initialized to CUED mode")}; Nc=function(Q){Q.logger.debug("start initialize application playback");var z=Q.ey();if(g.w(z.getPlayerState(),128))return!1;var H=z.getVideoData();OL(Q)&&Q.rh.dQ&&(Y2.length&&Q.yx?(Aw(Q,{muted:!1,volume:Q.JT.volume},!1),YI(Q,!1)):Y2.length||Q.JT.muted||(Aw(Q,{muted:!0,volume:Q.JT.volume},!1),YI(Q,!0)));OL(Q)&&g.xh(Q.rh)&&H.mutedAutoplay&&(Aw(Q,{muted:!0,volume:Q.JT.volume},!1),YI(Q,!0));H.z6&&Aw(Q,{muted:!0,volume:Q.JT.volume},!1);hTZ(Q,1,H,!1);Q.Yv.publish("initializingmode");Q.Rl(Q.ey());Q.Za(3); var f;if(!(f=!Q.rh.q0)){if(f=Q.Cp){f=Q.Cp;var b=Q.mediaElement;f=!!b&&b===f.mediaElement}f=f&&Q.WF}f&&(Q.MO(),GD(Q),z.setMediaElement(Q.mediaElement));z.v2();if(g.w(z.getPlayerState(),128))return!1;H.rz||$I(Q,3);return Q.WF=!0}; xI=function(Q){Q=NW(Q.RB);return!!Q&&Q.loaded}; WFZ=function(Q,z){if(!Q.GL)return!1;var H=Q.GL.startTimeMs*.001-1,f=Q.GL.endTimeMs*.001;Q.GL.type==="repeatChapter"&&f--;return Math.abs(z-H)<=1E-6||Math.abs(z-f)<=1E-6||z>=H&&z<=f}; Vgk=function(Q){var z=Q.X$();z&&H7(z.getVideoData())&&!z.qm()&&(z=Dua(Q)*1E3-Q.getVideoData().lD,Q.V("html5_gapless_new_slr")?(Q=Q.GP,KFc(Q.app,"gaplessshortslooprange"),z=new g.HD(0,z,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(Q=Q.app.X$())&&Q.addCueRange(z)):Q.setLoopRange({startTimeMs:0,endTimeMs:z,type:"shortsLoop"}))}; duL=function(Q){var z=Q.ey();if(!(g.w(z.getPlayerState(),64)&&Q.Iq().isLivePlayback&&Q.GL.startTimeMs<5E3)){if(Q.GL.type==="repeatChapter"){var H,f=(H=aO6(Q.xt()))==null?void 0:H.fE(),b;H=(b=Q.getVideoData())==null?void 0:b.r7;f instanceof g.d3&&H&&(b=H[Mg(H,Q.GL.startTimeMs)],f.renderChapterSeekingAnimation(0,b.title));isNaN(Number(Q.GL.loopCount))?Q.GL.loopCount=0:Q.GL.loopCount++;Q.GL.loopCount===1&&Q.Yv.F$("innertubeCommand",Q.getVideoData().Ig)}f={lr:"application_loopRangeStart"};if(Q.GL.type=== "clips"||Q.GL.type==="shortsLoop")f.seekSource=58;z.seekTo(Q.GL.startTimeMs*.001,f)}}; J38=function(Q,z){var H=Q.Yv.getAvailablePlaybackRates();z=Number(z.toFixed(2));Q=H[0];H=H[H.length-1];z<=Q?z=Q:z>=H?z=H:(Q=Math.floor(z*100+.001)%5,z=Q===0?z:Math.floor((z-Q*.01)*100+.001)/100);return z}; Dua=function(Q,z){z=Q.QE(z);if(!z)return Q.Qs.Z.qj();z=jQ(Q,z);return rQ(Q,z.qj(),z)}; rQ=function(Q,z,H){if(Q.Uj(H)){H=H.getVideoData();if(sL(Q))H=z;else{Q=Q.J7;for(var f=g.n(Q.B),b=f.next();!b.done;b=f.next())if(b=b.value,H.Tq===b.Tq){z+=b.sY/1E3;break}f=z;Q=g.n(Q.B);for(b=Q.next();!b.done;b=Q.next()){b=b.value;if(H.Tq===b.Tq)break;var L=b.sY/1E3;if(L1&&(b=!1);if(!Q.AQ||b!==z){H=H.lock(b?"portrait":"landscape");if(H!=null)H["catch"](function(){}); Q.AQ=!0}}else Q.AQ&&(Q.AQ=!1,H.unlock())}; ie=function(Q,z,H){Q.Yv.publish(z,H);var f=g.OV(Q.rh)||g.Yh(Q.rh)||g.Ux(Q.rh);if(H&&f){switch(z){case "cuerangemarkersupdated":var b="onCueRangeMarkersUpdated";break;case "cuerangesadded":b="onCueRangesAdded";break;case "cuerangesremoved":b="onCueRangesRemoved"}b&&Q.Yv.F$(b,H.map(function(L){return{getId:function(){return this.id}, end:L.end,id:L.getId(),namespace:L.namespace==="ad"?"ad":"",start:L.start,style:L.style,visible:L.visible}}))}}; hw=function(Q,z,H,f,b,L){H=H===void 0?!0:H;var u=Q.QE(b);u&&(u.getPlayerType()===2&&!Q.Uj(u)||g.JM(u.getVideoData()))||(Q.getPresentingPlayerType()===3?NW(Q.RB).wM("control_seek",z,H):(u&&u===Q.ey()&&Q.GL&&!WFZ(Q,z)&&Q.setLoopRange(null),Q.seekTo(z,H,f,b,L)))}; vX9=function(Q,z,H,f){H&&(Q.MO(),GD(Q));H=Q.X$();H.o7(z);var b=Q.getVideoData(),L={};L.video_id=b.videoId;L.adformat=b.adFormat;b.isLivePlayback||(L.start=H.getCurrentTime(),L.resume="1");b.isLivePlayback&&MY(b)&&g.FE(Q.rh)&&(L.live_utc_start=H.JM(),L.resume="1");b.wh&&(L.vvt=b.wh);b.j&&(L.vss_credentials_token=b.j,L.vss_credentials_token_type=b.ZK);b.oauthToken&&(L.oauth_token=b.oauthToken);b.kc&&(L.force_gvi=b.kc);L.autoplay=1;L.reload_count=b.gT+1;L.reload_reason=z;b.Xo&&(L.unplugged_partner_opt_out= b.Xo);b.LA&&(L.ypc_is_premiere_trailer=b.LA);b.playerParams&&(L.player_params=b.playerParams);Q.loadVideoByPlayerVars(L,void 0,!0,void 0,void 0,f);z==="signature"&&Q.Xh&&aea(Q)}; yyL=function(Q,z){Q.Iq().autonavState=z;g.Bw("yt-player-autonavstate",z);Q.Yv.publish("autonavchange",z)}; qtu=function(Q){var z=Q.getVideoData().Uf,H=Q.rh.gh,f=Q.isInline()&&!Q.getVideoData().lq,b=Q.mediaElement;z||H||f?b.Ie():(b.Re(),Aw(Q,Q.JT))}; Bg=function(Q){var z=IO(Q.xt());z&&z.created&&(Q.logger.debug("reset ad module"),z.destroy())}; sL=function(Q){return Q.getVideoData().enableServerStitchedDai&&!!Q.Xh}; MIL=function(Q,z){z.bounds=Q.getBoundingClientRect();for(var H=g.n(["display","opacity","visibility","zIndex"]),f=H.next();!f.done;f=H.next())f=f.value,z[f]=Ei(Q,f);z.hidden=!!Q.hidden}; SI_=function(Q){if(Q.webPlayerContextConfig){var z=Q.webPlayerContextConfig.trustedJsUrl;return z?O9(z).toString():Q.webPlayerContextConfig.jsUrl}return Q.config.assets&&Q.config.assets.js?Q.config.assets.js:""}; CJ8=function(Q,z){var H=Q.QE(1);if(H){if(H.getVideoData().clientPlaybackNonce===z)return H;if((Q=Q.t5.Z)&&Q.getVideoData().clientPlaybackNonce===z)return Q}return null}; tIn=function(Q){return Q.name==="TypeError"&&Q.stack.includes("/s/player/")&&DK()<=105}; EXa=function(Q){return Q.isTimeout?"NO_BID":"ERR_BID"}; p$Y=function(){var Q=null;i5a().then(function(z){return Q=z},function(z){return Q=EXa(z)}); return Q}; nXJ=function(){var Q=oR(1E3,"NO_BID");return g.jL(eo6([i5a(),Q]).IN(EXa),function(){Q.cancel()})}; Wg=function(Q){return Q.zx?g.DQ(g.Ww(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; D2=function(Q){this.player=Q;this.L=this.Z=1}; GVk=function(Q,z,H,f,b,L){z.client||(z.client={});Q.player.C().V("h5_remove_url_for_get_ad_break")||(z.client.originalUrl=H);var u=v2(H),X=g.c4(H)?!1:!0;(u||X)&&typeof Intl!=="undefined"&&(z.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);X=g.c4(H)?!1:!0;if(u||X||f!==""){var v={};H=f1(tF(f)).split("&");var y=new Map;H.forEach(function(q){q=q.split("=");q.length>1&&y.set(q[0].toString(),decodeURIComponent(q[1].toString()))}); y.has("bid")&&(v.bid=y.get("bid"));v.params=[];gXY.forEach(function(q){y.has(q)&&(q={key:q,value:y.get(q)},v.params.push(q))}); Zdc(Q,v);z.adSignalsInfo=v}z.client.unpluggedAppInfo||(z.client.unpluggedAppInfo={});z.client.unpluggedAppInfo.enableFilterMode=!1;H=b.Z.cosver;H!=null&&H!=="cosver"&&(z.client.osVersion=H);H=b.Z.cplatform;H!=null&&H!=="cplatform"&&H!==""&&(z.client.platform=H);H=b.Z.cmodel;H!=null&&H!=="cmodel"&&(z.client.deviceModel=H);H=b.Z.cplayer;H!=null&&H!=="cplayer"&&(z.client.playerType=H);H=b.Z.cbrand;H!=null&&H!=="cbrand"&&(z.client.deviceMake=H);z.user||(z.user={});z.user.lockedSafetyMode=!1;(b.V("embeds_web_enable_iframe_api_send_full_embed_url")|| b.V("embeds_enable_autoplay_and_visibility_signals"))&&g.AE(b)&&hF9(z,L,Q.player.getPlayerState(1))}; F2_=function(Q,z){var H=!1;if(z==="")return H;z.split(",").forEach(function(f){var b={},L={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},u="ACTIVE";f[0]==="!"&&(f=f.substring(1),u="INACTIVE");f=f.split("-");f.length<3||(f[0]in $En&&(L.clientName=$En[f[0]]),f[1]in j18&&(L.platform=j18[f[1]]),L.applicationState=u,L.clientVersion=f.length>2?f[2]:"",b.remoteClient=L,Q.remoteContexts?Q.remoteContexts.push(b):Q.remoteContexts=[b],H=!0)}); return H}; Od6=function(Q){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in xEA))return!1;Q=Q.split(RegExp("[:&]"));var z=xEA.FLAG_AUTO_CAPTIONS_DEFAULT_ON,H="f"+(1+Math.floor(z/31)).toString();z=1<=2?u[1]:"";var X=Jyk.test(z),v=Ny6.exec(z);v=v!=null&&v.length>=2?v[1]:"";var y=I89.exec(z);y=y!=null&&y.length>=2&&!Number.isNaN(Number(y[1]))?Number(y[1]):1;var q=Ay_.exec(z);q=q!=null&&q.length>=2?q[1]:"0";var M=P0(Q.player.C().qP),C=Q.player.getVideoData(1),t=g.eh(C.yl,!0),E="BISCOTTI_ID"in H?H.BISCOTTI_ID:"";GVk(Q,t,z,E.toString(),Q.player.C(), C);C={splay:!1,lactMilliseconds:H.LACT.toString(),playerHeightPixels:Math.trunc(H.P_H),playerWidthPixels:Math.trunc(H.P_W),vis:Math.trunc(H.VIS),signatureTimestamp:20153,autonavState:Wg(Q.player.C())};f&&(f={},F2_(f,H.YT_REMOTE)&&(C.mdxContext=f));if(f=Ytc.includes(M)?void 0:g.c2("PREF")){for(var G=f.split(RegExp("[:&]")),x=0,J=G.length;x1&&I[1].toUpperCase()==="TRUE"){t.user.lockedSafetyMode=!0;break}}C.autoCaptionsDefaultOn= Od6(f)}z=ryJ.exec(z);(z=z!=null&&z.length>=2?z[1]:"")&&v&&(t.user.credentialTransferTokens=[{token:z,scope:"VIDEO"}]);z={contentPlaybackContext:C};u={adBlock:Math.trunc(H.AD_BLOCK),params:u,breakIndex:y,breakPositionMs:q,clientPlaybackNonce:H.CPN,topLevelDomain:M,isProxyAdTagRequest:X,context:t,adSignalsInfoString:f1(tF(E.toString())),overridePlaybackContext:z};b!==void 0&&(u.cueProcessedMs=Math.round(b).toString());v&&(u.videoId=v);H.LIVE_TARGETING_CONTEXT&&(u.liveTargetingParams=H.LIVE_TARGETING_CONTEXT); H.AD_BREAK_LENGTH&&(u.breakLengthMs=Math.trunc(H.AD_BREAK_LENGTH*1E3).toString());L&&(u.driftFromHeadMs=L.toString());u.currentMediaTimeMs=Math.round(Q.player.getCurrentTime(1)*1E3);(Q=Q.player.getGetAdBreakContext())&&(u.getAdBreakContext=Q);return u}; By8=function(){D2.apply(this,arguments)}; PJp=function(Q,z,H,f,b){var L=H.cP;var u=H.VR;var X=Q.player.C().A5,v=0;H.cueProcessedMs&&u&&!L&&(H=u.end-u.start,H>0&&(v=Math.floor(H/1E3)));var y={AD_BLOCK:b,AD_BREAK_LENGTH:L?L.NB:v,AUTONAV_STATE:Wg(Q.player.C()),CA_TYPE:"image",CPN:Q.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:Q.player.SN()*1E3,LACT:NA(),LIVE_INDEX:L?Q.L++:1,LIVE_TARGETING_CONTEXT:L&&L.context?L.context:"",MIDROLL_POS:u?Math.round(u.start/1E3):0,MIDROLL_POS_MS:u?Math.round(u.start):0,VIS:Q.player.getVisibilityState(), P_H:Q.player.Un().Oq().height,P_W:Q.player.Un().Oq().width,YT_REMOTE:X?X.join(","):""},q=C1(Mn);Object.keys(q).forEach(function(M){q[M]!=null&&(y[M.toUpperCase()]=q[M].toString())}); f!==""&&(y.BISCOTTI_ID=f);f={};qn(z)&&(f.sts="20153",(Q=Q.player.C().forcedExperiments)&&(f.forced_experiments=Q));return XZ(g.YW(z,y),f)}; a8v=function(Q,z){var H=Q.player.C(),f,b=(f=Q.player.getVideoData(1))==null?void 0:f.oauthToken;return g.zZ(H,b).then(function(L){if(L&&yC()){var u=UZ();cG(u,L)}return g.kx(Q.player.Vk(u),z,"/youtubei/v1/player/ad_break").then(function(X){return X})})}; UEA=function(Q){this.Vl=Q}; cy_=function(Q){this.K=Q}; idn=function(Q){this.Vl=Q}; W2A=function(Q){g.h.call(this);this.Z=Q;this.O$=hic(this)}; hic=function(Q){var z=new gGc(Q.Z.Rq);g.W(Q,z);Q=g.n([new UEA(Q.Z.Vl),new cy_(Q.Z.K),new idn(Q.Z.Vl),new A_(Q.Z.EG,Q.Z.wi),new rh,new PX(Q.Z.wQ,Q.Z.GO,Q.Z.Vl),new Y9,new I7]);for(var H=Q.next();!H.done;H=Q.next())Z2A(z,H.value);Q=g.n(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(H=Q.next();!H.done;H=Q.next())sl(z,H.value,function(){}); return z}; KJ=function(Q){var z=Q.cI,H=Q.qc;Q=Q.Oj;var f=new sXA,b={CE:new EUZ(z.get(),H),qc:H};return{Yt:new Q1(H,Q,z,b),context:b,QP:f}}; VU=function(Q,z,H,f,b){g.h.call(this);this.B=z;this.K3=H;this.cI=f;this.u8=b;this.listeners=[];var L=new N0(this);g.W(this,L);L.X(Q,"internalAbandon",this.zQ);this.addOnDisposeCallback(function(){g.Aq(L)})}; dQ=function(Q){this.K=Q;this.adVideoId=this.Z=this.videoId=this.adCpn=this.contentCpn=null;this.S=!0;this.B=this.L=!1;this.adFormat=null;this.D="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; DEL=function(Q){Q.contentCpn=null;Q.adCpn=null;Q.videoId=null;Q.adVideoId=null;Q.adFormat=null;Q.D="AD_PLACEMENT_KIND_UNKNOWN";Q.actionType="unknown_type";Q.L=!1;Q.B=!1}; K2Y=function(Q,z){Q=g.n(z);for(z=Q.next();!z.done;z=Q.next())if((z=z.value.renderer)&&(z.instreamVideoAdRenderer||z.linearAdSequenceRenderer||z.sandwichedLinearAdRenderer||z.instreamSurveyAdRenderer)){ib("ad_i");g.hN({isMonetized:!0});break}}; VI9=function(Q){var z;(z=Q.K.getVideoData(1))!=null&&z.L3&&(Q.B=!1,z={},Q.Z&&Q.videoId&&(z.cttAuthInfo={token:Q.Z,videoId:Q.videoId}),WC("video_to_ad",z))}; D$=function(Q){Q.B=!1;var z={};Q.Z&&Q.videoId&&(z.cttAuthInfo={token:Q.Z,videoId:Q.videoId});WC("ad_to_video",z);dEv(Q)}; dEv=function(Q){if(Q.L)if(Q.D==="AD_PLACEMENT_KIND_START"&&Q.actionType==="video_to_ad")ao("video_to_ad");else{var z={adBreakType:Z$(Q.D),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:Q.videoStreamType};Q.actionType==="ad_to_video"?(Q.contentCpn&&(z.targetCpn=Q.contentCpn),Q.videoId&&(z.targetVideoId=Q.videoId)):(Q.adCpn&&(z.targetCpn=Q.adCpn),Q.adVideoId&&(z.targetVideoId=Q.adVideoId));Q.adFormat&&(z.adType=Q.adFormat);Q.contentCpn&& (z.clientPlaybackNonce=Q.contentCpn);Q.videoId&&(z.videoId=Q.videoId);Q.adCpn&&(z.adClientPlaybackNonce=Q.adCpn);Q.adVideoId&&(z.adVideoId=Q.adVideoId);g.hN(z,Q.actionType)}}; mL=function(Q){g.h.call(this);this.K=Q;this.Z=new Map;this.B=new N0(this);g.W(this,this.B);this.B.X(this.K,g.bc("ad"),this.onCueRangeEnter,this);this.B.X(this.K,g.Li("ad"),this.onCueRangeExit,this)}; mEA=function(Q,z,H,f,b){g.HD.call(this,z,H,{id:Q,namespace:"ad",priority:b,visible:f})}; wQ=function(Q){this.K=Q}; kI=function(Q){this.K=Q;g.qf(this.K.C().experiments,"tv_pacf_logging_sample_rate")}; jM=function(Q,z){z=z===void 0?!1:z;return Q.K.C().V("html5_ssap_force_ads_ctmp")?!0:(z||Q.K.C().vz())&&Q.K.C().V("html5_ssap_pacf_qoe_ctmp")}; TD=function(Q){var z,H;return(H=(z=Q.K.getVideoData(1))==null?void 0:g.mI(z))!=null?H:!1}; mm=function(Q,z){return Q.K.C().V(z)}; w$u=function(Q){return Q.K.C().V("substitute_ad_cpn_macro_in_ssdai")}; ZO=function(Q){var z,H,f;return((z=Q.K.getVideoData(1).getPlayerResponse())==null?void 0:(H=z.playerConfig)==null?void 0:(f=H.daiConfig)==null?void 0:f.enableServerStitchedDai)||!1}; x99=function(Q){return Q.K.C().V("html5_enable_vod_slar_with_notify_pacf")}; kVa=function(Q){return Q.K.C().V("html5_recognize_predict_start_cue_point")}; lg=function(Q){return Q.K.C().experiments.Nc("enable_desktop_player_underlay")}; TyA=function(Q){return Q.K.C().experiments.Nc("html5_load_empty_player_in_media_break_sub_lra")}; Yd=function(Q){return Q.K.C().experiments.Nc("html5_load_ads_instead_of_cue")}; rn=function(Q){return Q.K.C().experiments.Nc("html5_preload_ads")}; wM=function(Q){return Q.K.C().experiments.Nc("enable_ads_control_flow_deterministic_id_generation")}; ein=function(Q){return Q.K.C().experiments.Nc("enable_desktop_discovery_video_abandon_pings")||g.Vq(Q.K.C())}; l8n=function(Q){return Q.K.C().experiments.Nc("enable_progres_commands_lr_feeds")}; eQ=function(Q){return Q.K.C().experiments.Nc("html5_cuepoint_identifier_logging")}; RiY=function(Q){switch(Q){case "audio_audible":return"adaudioaudible";case "audio_measurable":return"adaudiomeasurable";case "fully_viewable_audible_half_duration_impression":return"adfullyviewableaudiblehalfdurationimpression";case "measurable_impression":return"adactiveviewmeasurable";case "overlay_unmeasurable_impression":return"adoverlaymeasurableimpression";case "overlay_unviewable_impression":return"adoverlayunviewableimpression";case "overlay_viewable_end_of_session_impression":return"adoverlayviewableendofsessionimpression"; case "overlay_viewable_immediate_impression":return"adoverlayviewableimmediateimpression";case "viewable_impression":return"adviewableimpression";default:return null}}; Qz6=function(){g.Xp.call(this);var Q=this;this.Z={};this.addOnDisposeCallback(function(){for(var z=g.n(Object.keys(Q.Z)),H=z.next();!H.done;H=z.next())delete Q.Z[H.value]})}; le=function(){if(zbc===null){zbc=new Qz6;A5(Fg).B="b";var Q=A5(Fg),z=p5(Q)=="h"||p5(Q)=="b",H=!(PI(),!1);z&&H&&(Q.S=!0,Q.j=new ck9)}return zbc}; HkJ=function(Q,z,H){Q.Z[z]=H}; fja=function(Q){switch(Q){case "abandon":case "unmuted_abandon":return"abandon";case "active_view_fully_viewable_audible_half_duration":return"fully_viewable_audible_half_duration_impression";case "active_view_measurable":return"measurable_impression";case "active_view_viewable":return"viewable_impression";case "audio_audible":return"audio_audible";case "audio_measurable":return"audio_measurable";case "complete":case "unmuted_complete":return"complete";case "end_fullscreen":case "unmuted_end_fullscreen":return"exitfullscreen"; case "first_quartile":case "unmuted_first_quartile":return"firstquartile";case "fullscreen":case "unmuted_fullscreen":return"fullscreen";case "impression":case "unmuted_impression":return"impression";case "midpoint":case "unmuted_midpoint":return"midpoint";case "mute":case "unmuted_mute":return"mute";case "pause":case "unmuted_pause":return"pause";case "progress":case "unmuted_progress":return"progress";case "resume":case "unmuted_resume":return"resume";case "swipe":case "skip":case "unmuted_skip":return"skip"; case "start":case "unmuted_start":return"start";case "third_quartile":case "unmuted_third_quartile":return"thirdquartile";case "unmute":case "unmuted_unmute":return"unmute";default:return null}}; RP=function(Q,z,H){this.K3=Q;this.K=z;this.qc=H;this.B=new Set;this.Z=new Map;le().subscribe("adactiveviewmeasurable",this.T4,this);le().subscribe("adfullyviewableaudiblehalfdurationimpression",this.Wk,this);le().subscribe("adviewableimpression",this.UA,this);le().subscribe("adaudioaudible",this.tV,this);le().subscribe("adaudiomeasurable",this.RQ,this)}; zm=function(Q,z,H){var f=H.K8,b=H.Zj,L=H.listener,u=H.c8;H=H.ri===void 0?!1:H.ri;if(Q.Z.has(z))MZ("Unexpected registration of layout in LidarApi");else{if(u){if(Q.B.has(u))return;Q.B.add(u)}Q.Z.set(z,L);XY(PI().K5,"fmd",1);k98(A5(Fg),f);var X=H?z:void 0;HkJ(le(),z,{Yb:function(){if(!b)return{};var v=Q.K.getPresentingPlayerType(!0),y;return(y=Q.K.getVideoData(v))!=null&&y.isAd()?{currentTime:Q.K3.get().getCurrentTimeSec(v,!1,X),duration:b,isPlaying:QB(Q.K3.get(),v).isPlaying(),isVpaid:!1,isYouTube:!0, volume:Q.K3.get().isMuted()?0:Q.K3.get().getVolume()/100}:{}}})}}; Hy=function(Q,z){Q.Z.has(z)?(Q.Z.delete(z),delete le().Z[z]):MZ("Unexpected unregistration of layout in LidarApi")}; bk8=function(Q,z){if(Q.K.isLifaAdPlaying()){var H=Q.K.A8(!0,!0);Q.mI(z,H.width*.5*1.1,H.height*.25*1.1,H.width*.5*.9,H.height*.5*.9)}}; SG6=function(Q,z,H){var f={};LOY(Q,f,z,H);usZ(f);f.LACT=f0(function(){return NA().toString()}); f.VIS=f0(function(){return Q.getVisibilityState().toString()}); f.SDKV="h.3.0";f.VOL=f0(function(){return Q.isMuted()?"0":Math.round(Q.getVolume()).toString()}); f.VED="";return f}; X1k=function(Q,z){var H={};if(z)return H;if(!Q.kind)return g.BT(Error("AdPlacementConfig without kind")),H;if(Q.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||Q.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!Q.adTimeOffset||!Q.adTimeOffset.offsetStartMilliseconds)return g.BT(Error("malformed AdPlacementConfig")),H;H.MIDROLL_POS=f0(MH(Math.round(z2(Q.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else H.MIDROLL_POS=f0(MH("0"));return H}; f0=function(Q){return{toString:function(){return Q()}}}; vVv=function(Q,z,H){function f(X,v){(v=H[v])&&(L[X]=v)} function b(X,v){(v=H[v])&&(L[X]=u(v))} if(!H||g.Ys(H))return Q;var L=Object.assign({},Q),u=z?encodeURIComponent:function(X){return X}; b("DV_VIEWABILITY","doubleVerifyViewability");b("IAS_VIEWABILITY","integralAdsViewability");b("MOAT_INIT","moatInit");b("MOAT_VIEWABILITY","moatViewability");f("GOOGLE_VIEWABILITY","googleViewability");f("VIEWABILITY","viewability");return L}; LOY=function(Q,z,H,f){z.CPN=f0(function(){var b;(b=Q.getVideoData(1))?b=b.clientPlaybackNonce:(g.PT(Error("Video data is null.")),b=null);return b}); z.AD_MT=f0(function(){if(f!=null)var b=f;else{var L=H;Q.C().V("html5_ssap_use_cpn_to_get_time")||(L=void 0);if(Q.C().V("enable_h5_shorts_ad_fill_ad_mt_macro")||Q.C().V("enable_desktop_discovery_pings_ad_mt_macro")||g.Vq(Q.C())){var u=Q.getPresentingPlayerType(!0),X;b=((X=Q.getVideoData(u))==null?0:X.isAd())?yR6(Q,u,L):0}else b=yR6(Q,2,L)}return Math.round(Math.max(0,b*1E3)).toString()}); z.MT=f0(function(){return Math.round(Math.max(0,Q.getCurrentTime(1,!1)*1E3)).toString()}); z.P_H=f0(function(){return Q.Un().Oq().height.toString()}); z.P_W=f0(function(){return Q.Un().Oq().width.toString()}); z.PV_H=f0(function(){return Q.Un().getVideoContentRect().height.toString()}); z.PV_W=f0(function(){return Q.Un().getVideoContentRect().width.toString()})}; usZ=function(Q){Q.CONN=f0(MH("0"));Q.WT=f0(function(){return Date.now().toString()})}; yR6=function(Q,z,H){return H!==void 0?Q.getCurrentTime(z,!1,H):Q.getCurrentTime(z,!1)}; qGY=function(){}; MD9=function(Q,z,H,f,b){var L,u,X,v,y,q,M,C,t,E,G,x,J;g.B(function(I){switch(I.Z){case 1:L=!!z.scrubReferrer;u=g.YW(z.baseUrl,vVv(H,L,f));X={};if(!z.headers){I.bT(2);break}v=Q.D();if(!v.Z){y=v.getValue();I.bT(3);break}return g.Y(I,v.Z,4);case 4:y=I.B;case 3:q=y;M=g.n(z.headers);for(C=M.next();!C.done;C=M.next())switch(t=C.value,t.headerType){case "VISITOR_ID":g.T5("VISITOR_DATA")&&(X["X-Goog-Visitor-Id"]=g.T5("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.T5("EOM_VISITOR_DATA")&&(X["X-Goog-EOM-Visitor-Id"]= g.T5("EOM_VISITOR_DATA"));break;case "USER_AUTH":q&&(X.Authorization="Bearer "+q);break;case "PLUS_PAGE_ID":(E=Q.S())&&(X["X-Goog-PageId"]=E);break;case "AUTH_USER":G=Q.Z();!q&&G&&(X["X-Goog-AuthUser"]=G);break;case "DATASYNC_ID":if(x=void 0,(x=Q.L())==null?0:x.Nc("enable_datasync_id_header_in_web_vss_pings"))J=Q.B(),v2(u)&&g.T5("LOGGED_IN")&&J&&(X["X-YouTube-DataSync-Id"]=J)}"X-Goog-EOM-Visitor-Id"in X&&"X-Goog-Visitor-Id"in X&&delete X["X-Goog-Visitor-Id"];case 2:g.WU(u,void 0,L,Object.keys(X).length!== 0?X:void 0,"",!0,b),g.Gu(I)}})}; Ciu=function(Q,z,H,f,b){this.D=Q;this.S=z;this.Z=H;this.B=f;this.L=b}; tDp=function(Q,z){this.Z=Q;this.qc=z}; b7=function(Q,z,H,f,b,L,u){var X=X===void 0?new Ciu(function(){var v=Q.C(),y=Q.getVideoData(1);return g.zZ(v,y?g.hM(y):"")},function(){return Q.C().pageId},function(){return Q.C().L3},function(){var v; return(v=Q.C().datasyncId)!=null?v:""},function(){return Q.C().experiments}):X; this.K=Q;this.B=z;this.Bz=H;this.cI=f;this.Yt=b;this.qc=L;this.QP=u;this.D=X;this.Xu=null;this.Z=new Map;this.L=new tDp(X,this.qc)}; p1k=function(Q,z,H,f,b){var L=J7(Q.B.get(),H);L?(H=NS(Q,EVu(L),L,void 0,void 0,f),z.hasOwnProperty("baseUrl")?Q.D.send(z,H):Q.L.send(z,H,{},b)):MZ("Trying to ping from an unknown layout",void 0,void 0,{layoutId:H})}; xtp=function(Q,z,H,f,b,L){f=f===void 0?[]:f;var u=J7(Q.B.get(),z);if(u){var X=Q.Bz.get().IJ(z,H),v=NS(Q,EVu(u),u,b,L);f.forEach(function(y,q){y.baseUrl&&(Q.L.send(y.baseUrl,v,X,y.attributionSrcMode),y.serializedAdPingMetadata&&Q.Yt.al("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,u,new ft_(y,q),void 0,void 0,u.adLayoutLoggingData))})}else MZ("Trying to track from an unknown layout.",void 0,void 0,{layoutId:z, trackingType:H})}; G4=function(Q,z){Q.K.sendVideoStatsEngageEvent(z,void 0,2)}; em=function(Q,z){g.y5("adsClientStateChange",z)}; nVc=function(Q,z){Q.Z.has(z.qS())?MZ("Trying to register an existing AdErrorInfoSupplier."):Q.Z.set(z.qS(),z)}; gVa=function(Q,z){Q.Z.delete(z.qS())||MZ("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; Q0=function(Q,z,H){typeof H==="string"?Q.K.getVideoData(1).b3(z,H):Q.K.getVideoData(1).On(z,H)}; EVu=function(Q){var z=bY(Q.clientMetadata,"metadata_type_ad_placement_config");Q=bY(Q.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:z,OQ:Q}}; NS=function(Q,z,H,f,b,L){var u=H?Zku(Q):{},X=H?G$9(Q,H.layoutId):{},v=$ha(Q),y,q=b!=null?b:(y=EH(Q.cI.get(),2))==null?void 0:y.clientPlaybackNonce;b=void 0;if(H){var M;if((M=Q.QP.Z.get(H.layoutId))==null?0:M.ri)b=H.layoutId}M={};Q=Object.assign({},SG6(Q.K,b,f),X1k(z.adPlacementConfig,(H==null?void 0:H.renderingContent)!==void 0),X,u,v,(M.FINAL=f0(function(){return"1"}),M.AD_CPN=f0(function(){return q||""}),M)); (H==null?void 0:H.renderingContent)!==void 0||(Q.SLOT_POS=f0(function(){return(z.OQ||0).toString()})); H={};L=Object.assign({},Q,L);Q=g.n(Object.values(jz_));for(f=Q.next();!f.done;f=Q.next())f=f.value,u=L[f],u!=null&&u.toString()!=null&&(H[f]=u.toString());return H}; Zku=function(Q){var z={},H,f=(H=Q.Xu)==null?void 0:H.rS/1E3;f!=null&&(z.SURVEY_ELAPSED_MS=f0(function(){return Math.round(f*1E3).toString()})); z.SURVEY_LOCAL_TIME_EPOCH_S=f0(function(){return Math.round(Date.now()/1E3).toString()}); return z}; G$9=function(Q,z){Q=Q.Z.get(z);if(!Q)return{};Q=Q.Dh();if(!Q)return{};z={};return z.YT_ERROR_CODE=Q.fC.toString(),z.ERRORCODE=Q.eP.toString(),z.ERROR_MSG=Q.errorMessage,z}; $ha=function(Q){var z={},H=Q.K.getVideoData(1);z.ASR=f0(function(){var f;return(f=H==null?void 0:H.gA)!=null?f:null}); z.EI=f0(function(){var f;return(f=H==null?void 0:H.eventId)!=null?f:null}); return z}; L0=function(Q,z,H){g.h.call(this);this.K=Q;this.eZ=z;this.qc=H;this.listeners=[];this.ou=null;this.Ay=new Map;z=new g.Bt(this);g.W(this,z);z.X(Q,"videodatachange",this.syh);z.X(Q,"serverstitchedvideochange",this.P23);this.Y9=EH(this)}; EH=function(Q,z){var H=Q.K.getVideoData(z);return H?Q.g_(H,z||Q.K.getPresentingPlayerType(!0)):null}; FOn=function(Q,z,H){var f=Q.g_(z,H);Q.Y9=f;Q.listeners.forEach(function(b){b.qI(f)})}; xhu=function(Q){switch(Q){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;case 5:return 5;case 6:return 6;case 7:return 7}}; u7=function(Q,z,H){g.h.call(this);this.K=Q;this.cI=z;this.qc=H;this.listeners=[];this.XB=[];this.Z=function(){MZ("Called 'doUnlockPreroll' before it's initialized.")}; z=new N0(this);H=new g.Bt(this);g.W(this,H);g.W(this,z);z.X(Q,"progresssync",this.sBT);z.X(Q,"presentingplayerstatechange",this.lmm);z.X(Q,"fullscreentoggled",this.onFullscreenToggled);z.X(Q,"onVolumeChange",this.onVolumeChange);z.X(Q,"minimized",this.jU);z.X(Q,"overlayvisibilitychange",this.Y3);z.X(Q,"shortsadswipe",this.vY);z.X(Q,"resize",this.tZ);H.X(Q,g.bc("appad"),this.mW)}; S6=function(Q){TD(Q.qc.get())||Q.Z()}; OkY=function(Q,z){Q.XB=Q.XB.filter(function(H){return H!==z})}; Xl=function(Q,z,H){return Q.getCurrentTimeSec(z,H)}; oVv=function(Q,z){var H;z=(H=Q.cI.get().Ay.get(z))!=null?H:null;if(z===null)return MZ("Expected ad video start time on playback timeline"),0;Q=Q.K.getCurrentTime(2,!0);return Q0){var L=z.end.toString();b.forEach(function(u){(u=u.config&&u.config.adPlacementConfig)&&u.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&u.adTimeOffset&&u.adTimeOffset.offsetEndMilliseconds==="-1"&&u.adTimeOffset.offsetEndMilliseconds!==L&&(u.adTimeOffset.offsetEndMilliseconds=L)}); f.map(function(u){return g.K(u,Uy)}).forEach(function(u){var X; (u=u==null?void 0:(X=u.slotEntryTrigger)==null?void 0:X.mediaTimeRangeTrigger)&&u.offsetEndMilliseconds==="-1"&&(u.offsetEndMilliseconds=L)})}return{LW:b, adSlots:f,un:!1,ssdaiAdsConfig:Q.ssdaiAdsConfig}}; C0=function(Q){g.h.call(this);this.K=Q;this.listeners=[];this.Z=new N0(this);g.W(this,this.Z);this.Z.X(this.K,"aduxclicked",this.onAdUxClicked);this.Z.X(this.K,"aduxmouseover",this.m$);this.Z.X(this.K,"aduxmouseout",this.VD);this.Z.X(this.K,"muteadaccepted",this.Prh)}; YGv=function(Q,z,H){z=g.J5(z,function(f){return new V98(f,H,f.id)}); Q.K.F$("onAdUxUpdate",z)}; to=function(Q,z){Q=g.n(Q.listeners);for(var H=Q.next();!H.done;H=Q.next())z(H.value)}; Ep=function(Q,z){this.B=Q;this.L=z===void 0?!1:z;this.Z={}}; rR8=function(Q,z){var H=Q.startSecs+Q.NB;H=H<=0?null:H;if(H===null)return null;switch(Q.event){case "start":case "continue":case "stop":break;case "predictStart":if(z)break;return null;default:return null}z=Math.max(Q.startSecs,0);return{mX:new xF(z,H),HHv:new ar(z,H-z,Q.context,Q.identifier,Q.event,Q.Z)}}; szZ=function(){this.Z=[]}; $qY=function(Q,z,H){var f=g.u4(Q.Z,z);if(f>=0)return z;z=-f-1;return z>=Q.Z.length||Q.Z[z]>H?null:Q.Z[z]}; p0=function(Q,z,H){g.h.call(this);this.K=Q;this.qc=z;this.Vl=H;this.listeners=[];this.D=!1;this.F_=[];this.Z=null;this.S=new Ep(this,kVa(z.get()));this.L=new szZ;this.B=null}; B_J=function(Q,z){Q.F_.push(z);for(var H=!1,f=g.n(Q.listeners),b=f.next();!b.done;b=f.next())H=b.value.ZX(z)||H;Q.D=H;eQ(Q.qc.get())&&Q0(Q.Vl.get(),"onci","cpi."+z.identifier+";cpe."+z.event+";cps."+z.startSecs+";cbi."+H)}; ajp=function(Q,z){em(Q.Vl.get(),{cuepointTrigger:{event:Pi6(z.event),cuepointId:z.identifier,totalCueDurationMs:z.NB*1E3,playheadTimeMs:z.Z,cueStartTimeMs:z.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:Q.K.getVideoData(1).clientPlaybackNonce}})}; Pi6=function(Q){switch(Q){case "unknown":return"CUEPOINT_EVENT_UNKNOWN";case "start":return"CUEPOINT_EVENT_START";case "continue":return"CUEPOINT_EVENT_CONTINUE";case "stop":return"CUEPOINT_EVENT_STOP";case "predictStart":return"CUEPOINT_EVENT_PREDICT_START";default:return b5(Q,"Unexpected cuepoint event")}}; n0=function(Q){this.K=Q}; Uh9=function(Q,z){Q.K.cueVideoByPlayerVars(z,2)}; gu=function(Q){this.K=Q}; ZB=function(Q){this.K=Q}; cRu=function(Q){switch(Q){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;case 5:return 5;case 6:return 6;case 7:return 7;default:b5(Q,"unknown transitionReason")}}; ik_=function(Q){this.K=Q}; hb9=function(Q,z,H,f,b){g.h.call(this);var L=this,u=iY(function(){return new mi(L.qc)}); g.W(this,u);var X=iY(function(){return new kH(u,L.qc)}); g.W(this,X);var v=iY(function(){return new OD}); g.W(this,v);var y=iY(function(){return new FM(Q)}); g.W(this,y);var q=iY(function(){return new Tx(u,X,L.qc)}); g.W(this,q);var M=iY(function(){return new z0}); g.W(this,M);this.ZS=iY(function(){return new C0(z)}); g.W(this,this.ZS);this.le=iY(function(){return new Wa(b)}); g.W(this,this.le);this.Gq=iY(function(){return new dQ(z)}); g.W(this,this.Gq);this.n5=iY(function(){return new mL(z)}); g.W(this,this.n5);this.t7=iY(function(){return new n0(z)}); g.W(this,this.t7);this.Rq=iY(function(){return new wQ(z)}); g.W(this,this.Rq);this.qc=iY(function(){return new kI(z)}); g.W(this,this.qc);var C=iY(function(){return new M_(f)}); g.W(this,C);var t=iY(function(){return new Mf(L.qc)}); g.W(this,t);this.sx=iY(function(){return new gu(z)}); g.W(this,this.sx);this.Ov=iY(function(){return new VJ}); g.W(this,this.Ov);this.cI=iY(function(){return new L0(z,M,L.qc)}); g.W(this,this.cI);var E=KJ({cI:this.cI,qc:this.qc,Oj:t}),G=E.context,x=E.QP;this.Yt=E.Yt;this.u8=iY(function(){return new p0(z,L.qc,L.Vl)}); g.W(this,this.u8);this.xN=iY(function(){return new ZB(z)}); g.W(this,this.xN);this.K3=iY(function(){return new u7(z,L.cI,L.qc)}); g.W(this,this.K3);E=iY(function(){return new ED(u,q,X,L.qc,t,"SLOT_TYPE_ABOVE_FEED",L.K3,L.L4,L.J$)}); g.W(this,E);this.Xt=iY(function(){return new d4(L.qc)}); this.Bz=iY(function(){return new RP(L.K3,z,L.qc)}); g.W(this,this.Bz);this.Vl=iY(function(){return new b7(z,v,L.Bz,L.cI,L.Yt,L.qc,x)}); g.W(this,this.Vl);this.Qf=new $H(Gx,Gm,function(I,r,U,D){return eG(X.get(),I,r,U,D)},y,q,X,t,this.qc,this.cI); g.W(this,this.Qf);this.Dm=new j3(y,E,H,this.qc,Q,this.cI,this.K3,this.Gq);g.W(this,this.Dm);var J=new VU(z,this.Dm,this.K3,this.cI,this.u8);this.m2=iY(function(){return J}); this.rg=J;this.L4=new gM(y,q,this.m2,this.u8,this.K3,this.qc,this.Vl,this.xN);g.W(this,this.L4);this.Q9=new xH(y,q,this.n5,this.m2,G);g.W(this,this.Q9);this.Gx=new aV(this.qc,y,q,E,this.cI,this.Q9,H);g.W(this,this.Gx);this.Ou=iY(function(){return new qS(C,X,t,L.qc,L.Vl,L.K3,L.xN)}); g.W(this,this.Ou);this.Bq=iY(function(){return new MS}); g.W(this,this.Bq);this.BB=new rM(Q,this.ZS,this.qc);g.W(this,this.BB);this.dT=new sD(Q);g.W(this,this.dT);this.Vq=new BS(Q);g.W(this,this.Vq);this.sX=new aa(Q,this.m2,G);g.W(this,this.sX);this.u2=new UD(Q,this.n5,this.K3,this.cI,G);g.W(this,this.u2);this.Yq=new cS(Q,this.cI);g.W(this,this.Yq);this.J$=new WS(Q,this.u8,this.K3,this.Vl,this.m2);g.W(this,this.J$);this.kJ=new i6(Q);g.W(this,this.kJ);this.fp=new dM(Q);g.W(this,this.fp);this.p4=new h7(Q);g.W(this,this.p4);this.dg=new VL(Q);g.W(this,this.dg); this.fp=new dM(Q);g.W(this,this.fp);this.Pq=iY(function(){return new ND}); g.W(this,this.Pq);this.h9=iY(function(){return new Ia(L.K3)}); g.W(this,this.h9);this.Tb=iY(function(){return new VEv(L.ZS,L.Vl,Q,v,L.Bz)}); g.W(this,this.Tb);this.H7=iY(function(){return new ex(L.Gx,y,u)}); g.W(this,this.H7);this.DC=iY(function(){return new QQ(L.qc,L.Vl,L.kJ,L.Bz)}); g.W(this,this.DC);this.XW=iY(function(){return new Sp(Q,L.fp,L.kJ,L.cI,L.xN,L.K3,L.Vl,M,L.u8,L.Bz,L.Xt,L.t7,L.n5,L.Gq,L.Rq,L.le,L.sx,L.qc,v,G,x)}); g.W(this,this.XW);this.pS=iY(function(){return new L5Z(L.K3,L.Vl,L.le,L.qc,L.Bz,L.cI)}); g.W(this,this.pS);this.zI=iY(function(){return new dqn(L.ZS,L.K3,L.Vl,v,L.Bz,L.Vq,L.dg,L.le,L.qc,H)}); g.W(this,this.zI);this.YY=iY(function(){return new dt6(L.ZS,L.Vl,v)}); g.W(this,this.YY);this.Kh=new q_(Q,this.Ov,u);g.W(this,this.Kh);this.mY={EO:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Gx],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.L4],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Qf],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Dm],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Q9]]),ut:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ou],["SLOT_TYPE_ABOVE_FEED",this.Bq],["SLOT_TYPE_FORECASTING",this.Bq], ["SLOT_TYPE_IN_PLAYER",this.Bq],["SLOT_TYPE_PLAYER_BYTES",this.Bq],["SLOT_TYPE_PLAYER_UNDERLAY",this.Bq],["SLOT_TYPE_PLAYBACK_TRACKING",this.Bq],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.Bq]]),H5:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.BB],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.BB],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.dT],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.dT],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.dT],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.dT],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.dT],["TRIGGER_TYPE_SLOT_ID_EXITED",this.dT],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.dT],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.dT],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.dT],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.dT],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.dT],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Vq],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.sX],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.u2],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.u2],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.u2],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.u2],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.u2],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.u2],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.u2],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Yq],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Yq],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.kJ],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.sX],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.p4],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.dg],["TRIGGER_TYPE_AD_BREAK_STARTED",this.fp],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.J$],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.J$],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.J$],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.J$],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.J$]]),Mu:new Map([["SLOT_TYPE_ABOVE_FEED",this.Pq], ["SLOT_TYPE_AD_BREAK_REQUEST",this.Pq],["SLOT_TYPE_FORECASTING",this.Pq],["SLOT_TYPE_IN_PLAYER",this.Pq],["SLOT_TYPE_PLAYER_BYTES",this.h9],["SLOT_TYPE_PLAYER_UNDERLAY",this.Pq],["SLOT_TYPE_PLAYBACK_TRACKING",this.Pq],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.Pq]]),Kl:new Map([["SLOT_TYPE_ABOVE_FEED",this.Tb],["SLOT_TYPE_AD_BREAK_REQUEST",this.H7],["SLOT_TYPE_FORECASTING",this.DC],["SLOT_TYPE_PLAYER_BYTES",this.XW],["SLOT_TYPE_PLAYBACK_TRACKING",this.pS],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.pS],["SLOT_TYPE_IN_PLAYER",this.zI],["SLOT_TYPE_PLAYER_UNDERLAY",this.YY]])};this.listeners=[v.get()];this.OO={Gx:this.Gx,GO:this.qc.get(),dh:this.le.get(),dk:this.K3.get(),Dm:this.Dm,Z$:u.get(),Jw:this.Ov.get(),wi:this.BB,EG:v.get(),wQ:this.cI.get()}}; WOp=function(Q,z,H,f,b){g.h.call(this);var L=this,u=iY(function(){return new mi(L.qc)}); g.W(this,u);var X=iY(function(){return new kH(u,L.qc)}); g.W(this,X);var v=iY(function(){return new OD}); g.W(this,v);var y=iY(function(){return new FM(Q)}); g.W(this,y);var q=iY(function(){return new Tx(u,X,L.qc)}); g.W(this,q);var M=iY(function(){return new z0}); g.W(this,M);this.ZS=iY(function(){return new C0(z)}); g.W(this,this.ZS);this.le=iY(function(){return new Wa(b)}); g.W(this,this.le);this.Gq=iY(function(){return new dQ(z)}); g.W(this,this.Gq);this.n5=iY(function(){return new mL(z)}); g.W(this,this.n5);this.t7=iY(function(){return new n0(z)}); g.W(this,this.t7);this.Rq=iY(function(){return new wQ(z)}); g.W(this,this.Rq);this.qc=iY(function(){return new kI(z)}); g.W(this,this.qc);var C=iY(function(){return new M_(f)}); g.W(this,C);var t=iY(function(){return new Mf(L.qc)}); g.W(this,t);var E=iY(function(){return new ED(u,q,X,L.qc,t,null,null,L.L4,L.J$)}); g.W(this,E);this.sx=iY(function(){return new gu(z)}); g.W(this,this.sx);this.Ov=iY(function(){return new VJ}); g.W(this,this.Ov);this.cI=iY(function(){return new L0(z,M,L.qc)}); g.W(this,this.cI);var G=KJ({cI:this.cI,qc:this.qc,Oj:t}),x=G.context,J=G.QP;this.Yt=G.Yt;this.u8=iY(function(){return new p0(z,L.qc,L.Vl)}); this.K3=iY(function(){return new u7(z,L.cI,L.qc)}); g.W(this,this.K3);this.Bz=iY(function(){return new RP(L.K3,z,L.qc)}); g.W(this,this.Bz);this.Vl=iY(function(){return new b7(z,v,L.Bz,L.cI,L.Yt,L.qc,J)}); g.W(this,this.Vl);this.Xt=iY(function(){return new d4(L.qc)}); g.W(this,this.Xt);this.Qf=new $H(Gx,Gm,function(r,U,D,T){return eG(X.get(),r,U,D,T)},y,q,X,t,this.qc,this.cI); g.W(this,this.Qf);this.Dm=new j3(y,E,H,this.qc,Q,this.cI,this.K3,this.Gq);g.W(this,this.Dm);var I=new VU(z,this.Dm,this.K3,this.cI,this.u8);this.m2=iY(function(){return I}); this.rg=I;this.L4=new gM(y,q,this.m2,this.u8,this.K3,this.qc,this.Vl);g.W(this,this.L4);this.Q9=new xH(y,q,this.n5,this.m2,x);g.W(this,this.Q9);this.Gx=new aV(this.qc,y,q,E,this.cI,this.Q9,H);g.W(this,this.Gx);this.Ou=iY(function(){return new qS(C,X,t,L.qc,L.Vl,L.K3)}); g.W(this,this.Ou);this.Bq=iY(function(){return new MS}); g.W(this,this.Bq);this.BB=new rM(Q,this.ZS,this.qc);g.W(this,this.BB);this.dT=new sD(Q);g.W(this,this.dT);this.Vq=new BS(Q);g.W(this,this.Vq);this.sX=new aa(Q,this.m2,x);g.W(this,this.sX);this.u2=new UD(Q,this.n5,this.K3,this.cI,x);g.W(this,this.u2);this.kJ=new i6(Q);g.W(this,this.kJ);this.p4=new h7(Q);g.W(this,this.p4);this.dg=new VL(Q);g.W(this,this.dg);this.xN=iY(function(){return new ZB(z)}); g.W(this,this.xN);this.fp=new dM(Q);g.W(this,this.fp);this.J$=new WS(Q,this.u8,this.K3,this.Vl,this.m2);g.W(this,this.J$);this.Pq=iY(function(){return new ND}); g.W(this,this.Pq);this.h9=iY(function(){return new Ia(L.K3)}); g.W(this,this.h9);this.H7=iY(function(){return new ex(L.Gx,y,u)}); g.W(this,this.H7);this.DC=iY(function(){return new QQ(L.qc,L.Vl,L.kJ,L.Bz)}); g.W(this,this.DC);this.zI=iY(function(){return new mqv(L.ZS,L.K3,L.Vl,v,L.Bz,L.Vq,L.dg,L.le,L.qc,H)}); g.W(this,this.zI);this.XW=iY(function(){return new XO(Q,L.fp,L.kJ,L.Vl,L.Bz,L.Xt,L.t7,L.cI,L.K3,L.n5,L.Gq,L.Rq,L.le,L.sx,L.qc,L.xN,x,J)}); g.W(this,this.XW);this.Kh=new q_(Q,this.Ov,u);g.W(this,this.Kh);this.mY={EO:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Gx],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.L4],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Qf],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Dm],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Q9]]),ut:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ou],["SLOT_TYPE_FORECASTING",this.Bq],["SLOT_TYPE_IN_PLAYER",this.Bq], ["SLOT_TYPE_PLAYER_BYTES",this.Bq]]),H5:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.BB],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.dT],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.dT],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.dT],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.dT],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.dT],["TRIGGER_TYPE_SLOT_ID_EXITED",this.dT],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.dT],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.dT],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.dT], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.dT],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Vq],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.sX],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.u2],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.u2],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.u2],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.kJ],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.sX],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.p4],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.dg],["TRIGGER_TYPE_AD_BREAK_STARTED",this.fp],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.J$],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.J$],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.J$],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.J$],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.J$]]),Mu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Pq],["SLOT_TYPE_FORECASTING",this.Pq],["SLOT_TYPE_IN_PLAYER",this.Pq],["SLOT_TYPE_PLAYER_BYTES",this.h9]]), Kl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.H7],["SLOT_TYPE_FORECASTING",this.DC],["SLOT_TYPE_IN_PLAYER",this.zI],["SLOT_TYPE_PLAYER_BYTES",this.XW]])};this.listeners=[v.get()];this.OO={Gx:this.Gx,GO:this.qc.get(),dh:this.le.get(),dk:this.K3.get(),Dm:this.Dm,Z$:u.get(),Jw:this.Ov.get(),wi:this.BB,EG:v.get(),wQ:this.cI.get()}}; DhL=function(Q,z,H,f,b){g.h.call(this);var L=this,u=iY(function(){return new mi(L.qc)}); g.W(this,u);var X=iY(function(){return new kH(u,L.qc)}); g.W(this,X);var v=iY(function(){return new OD}); g.W(this,v);var y=iY(function(){return new FM(Q)}); g.W(this,y);var q=iY(function(){return new Tx(u,X,L.qc)}); g.W(this,q);var M=iY(function(){return new z0}); g.W(this,M);this.ZS=iY(function(){return new C0(z)}); g.W(this,this.ZS);this.le=iY(function(){return new Wa(b)}); g.W(this,this.le);this.Gq=iY(function(){return new dQ(z)}); g.W(this,this.Gq);this.n5=iY(function(){return new mL(z)}); g.W(this,this.n5);this.t7=iY(function(){return new n0(z)}); g.W(this,this.t7);this.Rq=iY(function(){return new wQ(z)}); g.W(this,this.Rq);this.qc=iY(function(){return new kI(z)}); g.W(this,this.qc);var C=iY(function(){return new M_(f)}); g.W(this,C);var t=iY(function(){return new Mf(L.qc)}); g.W(this,t);var E=iY(function(){return new ED(u,q,X,L.qc,t,null,null,null,null)}); g.W(this,E);this.sx=iY(function(){return new gu(z)}); g.W(this,this.sx);this.cI=iY(function(){return new L0(z,M,L.qc)}); g.W(this,this.cI);var G=KJ({cI:this.cI,qc:this.qc,Oj:t}),x=G.context,J=G.QP;this.Yt=G.Yt;this.K3=iY(function(){return new u7(z,L.cI,L.qc)}); g.W(this,this.K3);this.Bz=iY(function(){return new RP(L.K3,z,L.qc)}); g.W(this,this.Bz);this.Vl=iY(function(){return new b7(z,v,L.Bz,L.cI,L.Yt,L.qc,J)}); g.W(this,this.Vl);this.Xt=iY(function(){return new d4(L.qc)}); g.W(this,this.Xt);this.Qf=new $H(Gx,Gm,function(r,U,D,T){return eG(X.get(),r,U,D,T)},y,q,X,t,this.qc,this.cI); g.W(this,this.Qf);this.Dm=new j3(y,E,H,this.qc,Q,this.cI,this.K3,this.Gq);g.W(this,this.Dm);var I=new VU(z,this.Dm,this.K3,this.cI);this.m2=iY(function(){return I}); this.rg=I;this.Q9=new xH(y,q,this.n5,this.m2,x);g.W(this,this.Q9);this.Gx=new aV(this.qc,y,q,E,this.cI,this.Q9,H);g.W(this,this.Gx);this.Ou=iY(function(){return new qS(C,X,t,L.qc,L.Vl,L.K3)}); g.W(this,this.Ou);this.Bq=iY(function(){return new MS}); g.W(this,this.Bq);this.BB=new rM(Q,this.ZS,this.qc);g.W(this,this.BB);this.dT=new sD(Q);g.W(this,this.dT);this.sX=new aa(Q,this.m2,x);g.W(this,this.sX);this.u2=new UD(Q,this.n5,this.K3,this.cI,x);g.W(this,this.u2);this.kJ=new i6(Q);g.W(this,this.kJ);this.p4=new h7(Q);g.W(this,this.p4);this.xN=iY(function(){return new ZB(z)}); g.W(this,this.xN);this.fp=new dM(Q);g.W(this,this.fp);this.Pq=iY(function(){return new ND}); g.W(this,this.Pq);this.h9=iY(function(){return new Ia(L.K3)}); g.W(this,this.h9);this.H7=iY(function(){return new ex(L.Gx,y,u)}); g.W(this,this.H7);this.DC=iY(function(){return new QQ(L.qc,L.Vl,L.kJ,L.Bz)}); g.W(this,this.DC);this.yB=iY(function(){return new bpp(L.ZS,L.K3,L.Vl,v,H,L.qc)}); g.W(this,this.yB);this.XW=iY(function(){return new XO(Q,L.fp,L.kJ,L.Vl,L.Bz,L.Xt,L.t7,L.cI,L.K3,L.n5,L.Gq,L.Rq,L.le,L.sx,L.qc,L.xN,x,J)}); g.W(this,this.XW);this.mY={EO:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Gx],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Qf],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Dm],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Q9]]),ut:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ou],["SLOT_TYPE_FORECASTING",this.Bq],["SLOT_TYPE_IN_PLAYER",this.Bq],["SLOT_TYPE_PLAYER_BYTES",this.Bq]]),H5:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.BB],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.dT],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.dT],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.dT],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.dT],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.dT],["TRIGGER_TYPE_SLOT_ID_EXITED",this.dT],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.dT],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.dT],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.dT],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.sX],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.u2],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.u2],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.kJ],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.sX],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.p4],["TRIGGER_TYPE_AD_BREAK_STARTED",this.fp]]),Mu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Pq],["SLOT_TYPE_ABOVE_FEED",this.Pq],["SLOT_TYPE_FORECASTING",this.Pq],["SLOT_TYPE_IN_PLAYER",this.Pq],["SLOT_TYPE_PLAYER_BYTES",this.h9]]),Kl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.H7],["SLOT_TYPE_FORECASTING",this.DC],["SLOT_TYPE_IN_PLAYER", this.yB],["SLOT_TYPE_PLAYER_BYTES",this.XW]])};this.listeners=[v.get()];this.OO={Gx:this.Gx,GO:this.qc.get(),dh:this.le.get(),dk:this.K3.get(),Dm:this.Dm,Z$:u.get(),Jw:null,wi:this.BB,EG:v.get(),wQ:this.cI.get()}}; KO_=function(Q,z,H,f,b){g.h.call(this);var L=this,u=iY(function(){return new mi(L.qc)}); g.W(this,u);var X=iY(function(){return new kH(u,L.qc)}); g.W(this,X);var v=iY(function(){return new OD}); g.W(this,v);var y=iY(function(){return new FM(Q)}); g.W(this,y);var q=iY(function(){return new Tx(u,X,L.qc)}); g.W(this,q);var M=iY(function(){return new z0}); g.W(this,M);this.M0=iY(function(){return new ik_(z)}); g.W(this,this.M0);this.ZS=iY(function(){return new C0(z)}); g.W(this,this.ZS);this.le=iY(function(){return new Wa(b)}); g.W(this,this.le);this.Gq=iY(function(){return new dQ(z)}); g.W(this,this.Gq);this.n5=iY(function(){return new mL(z)}); g.W(this,this.n5);this.t7=iY(function(){return new n0(z)}); g.W(this,this.t7);this.Rq=iY(function(){return new wQ(z)}); g.W(this,this.Rq);this.qc=iY(function(){return new kI(z)}); g.W(this,this.qc);var C=iY(function(){return new M_(f)}); g.W(this,C);var t=iY(function(){return new Mf(L.qc)}); g.W(this,t);var E=iY(function(){return new ED(u,q,X,L.qc,t,null,null,null,null)}); g.W(this,E);this.sx=iY(function(){return new gu(z)}); g.W(this,this.sx);this.cI=iY(function(){return new L0(z,M,L.qc)}); g.W(this,this.cI);var G=KJ({cI:this.cI,qc:this.qc,Oj:t}),x=G.context,J=G.QP;this.Yt=G.Yt;this.K3=iY(function(){return new u7(z,L.cI,L.qc)}); g.W(this,this.K3);this.Bz=iY(function(){return new RP(L.K3,z,L.qc)}); g.W(this,this.Bz);this.Vl=iY(function(){return new b7(z,v,L.Bz,L.cI,L.Yt,L.qc,J)}); g.W(this,this.Vl);this.Xt=iY(function(){return new d4(L.qc)}); g.W(this,this.Xt);this.Qf=new $H(Amn,Gm,function(r,U,D,T){return lsn(X.get(),r,U,D,T)},y,q,X,t,this.qc,this.cI); g.W(this,this.Qf);this.Dm=new j3(y,E,H,this.qc,Q,this.cI,this.K3,this.Gq);g.W(this,this.Dm);var I=new VU(z,this.Dm,this.K3,this.cI);this.m2=iY(function(){return I}); this.rg=I;this.Q9=new xH(y,q,this.n5,this.m2,x);g.W(this,this.Q9);this.Gx=new aV(this.qc,y,q,E,this.cI,this.Q9,H);g.W(this,this.Gx);this.Ou=iY(function(){return new qS(C,X,t,L.qc,L.Vl,L.K3)}); g.W(this,this.Ou);this.Bq=iY(function(){return new MS}); g.W(this,this.Bq);this.BB=new rM(Q,this.ZS,this.qc);g.W(this,this.BB);this.dT=new sD(Q);g.W(this,this.dT);this.sX=new aa(Q,this.m2,x);g.W(this,this.sX);this.u2=new UD(Q,this.n5,this.K3,this.cI,x);g.W(this,this.u2);this.kJ=new i6(Q);g.W(this,this.kJ);this.p4=new h7(Q);g.W(this,this.p4);this.xN=iY(function(){return new ZB(z)}); g.W(this,this.xN);this.fp=new dM(Q);g.W(this,this.fp);this.Pq=iY(function(){return new ND}); g.W(this,this.Pq);this.h9=iY(function(){return new Ia(L.K3)}); g.W(this,this.h9);this.H7=iY(function(){return new ex(L.Gx,y,u)}); g.W(this,this.H7);this.DC=iY(function(){return new QQ(L.qc,L.Vl,L.kJ,L.Bz)}); g.W(this,this.DC);this.XW=iY(function(){return new XO(Q,L.fp,L.kJ,L.Vl,L.Bz,L.Xt,L.t7,L.cI,L.K3,L.n5,L.Gq,L.Rq,L.le,L.sx,L.qc,L.xN,x,J)}); g.W(this,this.XW);this.HH=iY(function(){return new kvp(L.ZS,L.K3,L.Vl,v,L.M0,H,L.cI)}); g.W(this,this.HH);this.mY={EO:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Gx],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Qf],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Dm],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Q9]]),ut:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ou],["SLOT_TYPE_FORECASTING",this.Bq],["SLOT_TYPE_IN_PLAYER",this.Bq],["SLOT_TYPE_PLAYER_BYTES",this.Bq]]),H5:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.BB],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.dT],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.dT],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.dT],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.dT],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.dT],["TRIGGER_TYPE_SLOT_ID_EXITED",this.dT],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.dT],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.dT],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.dT],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.sX],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.u2],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.u2],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.kJ],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.sX],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.p4],["TRIGGER_TYPE_AD_BREAK_STARTED",this.fp]]),Mu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Pq],["SLOT_TYPE_FORECASTING",this.Pq],["SLOT_TYPE_IN_PLAYER",this.Pq],["SLOT_TYPE_PLAYER_BYTES",this.h9]]),Kl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.H7],["SLOT_TYPE_FORECASTING",this.DC],["SLOT_TYPE_IN_PLAYER",this.HH],["SLOT_TYPE_PLAYER_BYTES", this.XW]])};this.listeners=[v.get()];this.OO={Gx:this.Gx,GO:this.qc.get(),dh:this.le.get(),dk:this.K3.get(),Dm:this.Dm,Z$:u.get(),Jw:null,wi:this.BB,EG:v.get(),wQ:this.cI.get()}}; VDp=function(Q,z,H,f,b){g.h.call(this);var L=this,u=iY(function(){return new mi(L.qc)}); g.W(this,u);var X=iY(function(){return new kH(u,L.qc)}); g.W(this,X);var v=iY(function(){return new OD}); g.W(this,v);var y=iY(function(){return new FM(Q)}); g.W(this,y);var q=iY(function(){return new Tx(u,X,L.qc)}); g.W(this,q);var M=iY(function(){return new z0}); g.W(this,M);this.M0=iY(function(){return new ik_(z)}); g.W(this,this.M0);this.ZS=iY(function(){return new C0(z)}); g.W(this,this.ZS);this.le=iY(function(){return new Wa(b)}); g.W(this,this.le);this.Gq=iY(function(){return new dQ(z)}); g.W(this,this.Gq);this.n5=iY(function(){return new mL(z)}); g.W(this,this.n5);this.t7=iY(function(){return new n0(z)}); g.W(this,this.t7);this.Rq=iY(function(){return new wQ(z)}); g.W(this,this.Rq);this.qc=iY(function(){return new kI(z)}); g.W(this,this.qc);var C=iY(function(){return new M_(f)}); g.W(this,C);var t=iY(function(){return new Mf(L.qc)}); g.W(this,t);this.sx=iY(function(){return new gu(z)}); g.W(this,this.sx);this.cI=iY(function(){return new L0(z,M,L.qc)}); g.W(this,this.cI);var E=KJ({cI:this.cI,qc:this.qc,Oj:t}),G=E.context,x=E.QP;this.Yt=E.Yt;this.u8=iY(function(){return new p0(z,L.qc,L.Vl)}); g.W(this,this.u8);this.xN=iY(function(){return new ZB(z)}); g.W(this,this.xN);this.K3=iY(function(){return new u7(z,L.cI,L.qc)}); g.W(this,this.K3);E=iY(function(){return new ED(u,q,X,L.qc,t,null,L.K3,L.L4,L.J$,3)}); g.W(this,E);this.Xt=iY(function(){return new d4(L.qc)}); this.Bz=iY(function(){return new RP(L.K3,z,L.qc)}); g.W(this,this.Bz);this.Vl=iY(function(){return new b7(z,v,L.Bz,L.cI,L.Yt,L.qc,x)}); g.W(this,this.Vl);this.Dm=new j3(y,E,H,this.qc,Q,this.cI,this.K3,this.Gq);g.W(this,this.Dm);var J=new VU(z,this.Dm,this.K3,this.cI,this.u8);this.m2=iY(function(){return J}); this.rg=J;this.Qf=new $H(YdA,Gm,function(I,r,U,D){return lsn(X.get(),I,r,U,D)},y,q,X,t,this.qc,this.cI); g.W(this,this.Qf);this.L4=new gM(y,q,this.m2,this.u8,this.K3,this.qc,this.Vl,this.xN);g.W(this,this.L4);this.Q9=new xH(y,q,this.n5,this.m2,G);g.W(this,this.Q9);this.Gx=new aV(this.qc,y,q,E,this.cI,this.Q9,H);g.W(this,this.Gx);this.Ou=iY(function(){return new qS(C,X,t,L.qc,L.Vl,L.K3,L.xN)}); g.W(this,this.Ou);this.Bq=iY(function(){return new MS}); g.W(this,this.Bq);this.BB=new rM(Q,this.ZS,this.qc);g.W(this,this.BB);this.dT=new sD(Q);g.W(this,this.dT);this.sX=new aa(Q,this.m2,G);g.W(this,this.sX);this.u2=new UD(Q,this.n5,this.K3,this.cI,G);g.W(this,this.u2);this.Yq=new cS(Q,this.cI);g.W(this,this.Yq);this.J$=new WS(Q,this.u8,this.K3,this.Vl,this.m2);g.W(this,this.J$);this.kJ=new i6(Q);g.W(this,this.kJ);this.p4=new h7(Q);g.W(this,this.p4);this.fp=new dM(Q);g.W(this,this.fp);this.Pq=iY(function(){return new ND}); g.W(this,this.Pq);this.h9=iY(function(){return new Ia(L.K3)}); g.W(this,this.h9);this.H7=iY(function(){return new ex(L.Gx,y,u)}); g.W(this,this.H7);this.DC=iY(function(){return new QQ(L.qc,L.Vl,L.kJ,L.Bz)}); g.W(this,this.DC);this.XW=iY(function(){return new Sp(Q,L.fp,L.kJ,L.cI,L.xN,L.K3,L.Vl,M,L.u8,L.Bz,L.Xt,L.t7,L.n5,L.Gq,L.Rq,L.le,L.sx,L.qc,v,G,x)}); g.W(this,this.XW);this.zI=iY(function(){return new TEv(L.ZS,L.K3,L.Vl,v,L.M0,H,L.qc,L.cI)}); g.W(this,this.zI);this.mY={EO:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Gx],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.L4],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Qf],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Dm],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Q9]]),ut:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ou],["SLOT_TYPE_FORECASTING",this.Bq],["SLOT_TYPE_IN_PLAYER",this.Bq],["SLOT_TYPE_PLAYER_BYTES",this.Bq]]),H5:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.BB],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.dT],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.dT],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.dT],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.dT],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.dT],["TRIGGER_TYPE_SLOT_ID_EXITED",this.dT],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.dT],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.dT],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.dT],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.sX],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.u2],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.u2],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Yq],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Yq],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.kJ],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.sX],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.p4],["TRIGGER_TYPE_AD_BREAK_STARTED",this.fp],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.J$],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", this.J$],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.J$],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.J$],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.J$]]),Mu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Pq],["SLOT_TYPE_FORECASTING",this.Pq],["SLOT_TYPE_IN_PLAYER",this.Pq],["SLOT_TYPE_PLAYER_BYTES",this.h9]]),Kl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.H7],["SLOT_TYPE_FORECASTING",this.DC],["SLOT_TYPE_PLAYER_BYTES",this.XW],["SLOT_TYPE_IN_PLAYER",this.zI]])};this.listeners=[v.get()]; this.OO={Gx:this.Gx,GO:this.qc.get(),dh:this.le.get(),dk:this.K3.get(),Dm:this.Dm,Z$:u.get(),Jw:null,wi:this.BB,EG:v.get(),wQ:this.cI.get()}}; mhA=function(Q,z,H,f){function b(){return L.B} g.h.call(this);var L=this;Q.C().experiments.Nc("html5_dispose_of_manager_before_dependency")?(this.Z=dh_(b,Q,z,H,f),this.B=(new hO(this.Z)).L(),g.W(this,this.B),g.W(this,this.Z)):(this.Z=dh_(b,Q,z,H,f),g.W(this,this.Z),this.B=(new hO(this.Z)).L(),g.W(this,this.B))}; $5=function(Q){return Q.Z.OO}; dh_=function(Q,z,H,f,b){try{var L=z.C();if(g.mD(L))var u=new hb9(Q,z,H,f,b);else if(g.kh(L))u=new WOp(Q,z,H,f,b);else if(U8(L))u=new DhL(Q,z,H,f,b);else if(g.Ux(L))u=new KO_(Q,z,H,f,b);else if(g.Yh(L))u=new VDp(Q,z,H,f,b);else throw new TypeError("Unknown web interface");return u}catch(X){return u=z.C(),MZ("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:u.Z.cplatform,interface:u.Z.c,i9T:u.Z.cver,pQl:u.Z.ctheme,EQ5:u.Z.cplayer,Dev:u.playerStyle}),new Ij8(Q,z,H,f,b)}}; w1Z=function(Q){VR.call(this,Q)}; k$u=function(Q,z,H,f,b){Rv.call(this,Q,{G:"div",J:"ytp-ad-timed-pie-countdown-container",W:[{G:"svg",J:"ytp-ad-timed-pie-countdown",T:{viewBox:"0 0 20 20"},W:[{G:"circle",J:"ytp-ad-timed-pie-countdown-background",T:{r:"10",cx:"10",cy:"10"}},{G:"circle",J:"ytp-ad-timed-pie-countdown-inner",T:{r:"5",cx:"10",cy:"10"}},{G:"circle",J:"ytp-ad-timed-pie-countdown-outer",T:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",z,H,f,b);this.D=this.Mc("ytp-ad-timed-pie-countdown-container");this.L=this.Mc("ytp-ad-timed-pie-countdown-inner"); this.j=this.Mc("ytp-ad-timed-pie-countdown-outer");this.B=Math.ceil(2*Math.PI*5);this.hide()}; T_J=function(Q,z,H,f,b,L){tB.call(this,Q,{G:"div",J:"ytp-ad-action-interstitial",T:{tabindex:"0"},W:[{G:"div",J:"ytp-ad-action-interstitial-background-container"},{G:"div",J:"ytp-ad-action-interstitial-slot",W:[{G:"div",J:"ytp-ad-action-interstitial-instream-info"},{G:"div",J:"ytp-ad-action-interstitial-card",W:[{G:"div",J:"ytp-ad-action-interstitial-image-container"},{G:"div",J:"ytp-ad-action-interstitial-headline-container"},{G:"div",J:"ytp-ad-action-interstitial-description-container"},{G:"div", J:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",z,H,f);this.uP=b;this.EH=L;this.navigationEndpoint=this.Z=this.skipButton=this.B=this.actionButton=null;this.mq=this.Mc("ytp-ad-action-interstitial-instream-info");this.jm=this.Mc("ytp-ad-action-interstitial-image-container");this.U=new hB(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,"ytp-ad-action-interstitial-image");g.W(this,this.U);this.U.Gv(this.jm);this.yl=this.Mc("ytp-ad-action-interstitial-headline-container"); this.j=new eE(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,"ytp-ad-action-interstitial-headline");g.W(this,this.j);this.j.Gv(this.yl);this.wh=this.Mc("ytp-ad-action-interstitial-description-container");this.L=new eE(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,"ytp-ad-action-interstitial-description");g.W(this,this.L);this.L.Gv(this.wh);this.WI=this.Mc("ytp-ad-action-interstitial-background-container");this.iT=new hB(this.api,this.layoutId,this.interactionLoggingClientData, this.dh,"ytp-ad-action-interstitial-background",!0);g.W(this,this.iT);this.iT.Gv(this.WI);this.C3=this.Mc("ytp-ad-action-interstitial-action-button-container");this.slot=this.Mc("ytp-ad-action-interstitial-slot");this.dV=this.Mc("ytp-ad-action-interstitial-card");this.D=new N0;g.W(this,this.D);this.hide()}; ebc=function(Q){var z=g.T2("html5-video-player");z&&g.qP(z,"ytp-ad-display-override",Q)}; zD_=function(Q,z,H,f){tB.call(this,Q,{G:"div",J:"ytp-ad-overlay-slot",W:[{G:"div",J:"ytp-ad-overlay-container"}]},"invideo-overlay",z,H,f);this.U=[];this.WI=this.yl=this.D=this.C3=this.mq=null;this.iT=!1;this.j=null;this.wh=0;Q=this.Mc("ytp-ad-overlay-container");this.jm=new Sh(Q,45E3,6E3,.3,.4);g.W(this,this.jm);this.L=lja(this);g.W(this,this.L);this.L.Gv(Q);this.B=RbL(this);g.W(this,this.B);this.B.Gv(Q);this.Z=QBc(this);g.W(this,this.Z);this.Z.Gv(Q);this.hide()}; lja=function(Q){var z=new g.Ca({G:"div",J:"ytp-ad-text-overlay",W:[{G:"div",J:"ytp-ad-overlay-ad-info-button-container"},{G:"div",J:"ytp-ad-overlay-close-container",W:[{G:"button",J:"ytp-ad-overlay-close-button",W:[rs(HbZ)]}]},{G:"div",J:"ytp-ad-overlay-title",BI:"{{title}}"},{G:"div",J:"ytp-ad-overlay-desc",BI:"{{description}}"},{G:"div",lT:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],BI:"{{displayUrl}}"}]});Q.X(z.Mc("ytp-ad-overlay-title"),"click",function(H){j6(Q,z.element,H)}); Q.X(z.Mc("ytp-ad-overlay-link"),"click",function(H){j6(Q,z.element,H)}); Q.X(z.Mc("ytp-ad-overlay-close-container"),"click",Q.BL);z.hide();return z}; RbL=function(Q){var z=new g.Ca({G:"div",lT:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],W:[{G:"div",J:"ytp-ad-overlay-ad-info-button-container"},{G:"div",J:"ytp-ad-overlay-close-container",W:[{G:"button",J:"ytp-ad-overlay-close-button",W:[rs(HbZ)]}]},{G:"div",J:"ytp-ad-overlay-text-image",W:[{G:"img",T:{src:"{{imageUrl}}"}}]},{G:"div",J:"ytp-ad-overlay-title",BI:"{{title}}"},{G:"div",J:"ytp-ad-overlay-desc",BI:"{{description}}"},{G:"div",lT:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], BI:"{{displayUrl}}"}]});Q.X(z.Mc("ytp-ad-overlay-title"),"click",function(H){j6(Q,z.element,H)}); Q.X(z.Mc("ytp-ad-overlay-link"),"click",function(H){j6(Q,z.element,H)}); Q.X(z.Mc("ytp-ad-overlay-close-container"),"click",Q.BL);Q.X(z.Mc("ytp-ad-overlay-text-image"),"click",Q.l6j);z.hide();return z}; QBc=function(Q){var z=new g.Ca({G:"div",J:"ytp-ad-image-overlay",W:[{G:"div",J:"ytp-ad-overlay-ad-info-button-container"},{G:"div",J:"ytp-ad-overlay-close-container",W:[{G:"button",J:"ytp-ad-overlay-close-button",W:[rs(HbZ)]}]},{G:"div",J:"ytp-ad-overlay-image",W:[{G:"img",T:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});Q.X(z.Mc("ytp-ad-overlay-image"),"click",function(H){j6(Q,z.element,H)}); Q.X(z.Mc("ytp-ad-overlay-close-container"),"click",Q.BL);z.hide();return z}; fGZ=function(Q,z){if(z){var H=g.K(z,rg)||null;H==null?g.BT(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(z=g.T2("video-ads ytp-ad-module")||null,z==null?g.BT(Error("Could not locate the root ads container element to attach the ad info dialog.")):(Q.yl=new g.Ca({G:"div",J:"ytp-ad-overlay-ad-info-dialog-container"}),g.W(Q,Q.yl),Q.yl.Gv(z),z=new T8(Q.api,Q.layoutId,Q.interactionLoggingClientData,Q.dh,Q.yl.element,!1),g.W(Q,z),z.init(uI("ad-info-hover-text-button"),H,Q.macros), Q.j?(z.Gv(Q.j,0),z.subscribe("f",Q.Z5j,Q),z.subscribe("e",Q.O5,Q),Q.X(Q.j,"click",Q.woh),Q.X(g.T2("ytp-ad-button",z.element),"click",function(){var f;if(g.K((f=g.K(H.button,g.Bc))==null?void 0:f.serviceEndpoint,zwp))Q.iT=Q.api.getPlayerState(1)===2,Q.api.pauseVideo();else Q.api.onAdUxClicked("ad-info-hover-text-button",Q.layoutId)}),Q.WI=z):g.BT(Error("Ad info button container within overlay ad was not present."))))}else g.PT(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; LKY=function(Q,z){if(bb_(Q,Fl)||Q.api.isMinimized())return!1;var H=Ec(z.title),f=Ec(z.description);if(g.j5(H)||g.j5(f))return!1;Q.createServerVe(Q.L.element,z.trackingParams||null);Q.L.updateValue("title",Ec(z.title));Q.L.updateValue("description",Ec(z.description));Q.L.updateValue("displayUrl",Ec(z.displayUrl));z.navigationEndpoint&&g.z7(Q.U,z.navigationEndpoint);Q.L.show();Q.jm.start();Q.logVisibility(Q.L.element,!0);Q.X(Q.L.element,"mouseover",function(){Q.wh++}); return!0}; uHp=function(Q,z){if(bb_(Q,Fl)||Q.api.isMinimized())return!1;var H=Ec(z.title),f=Ec(z.description);if(g.j5(H)||g.j5(f))return!1;Q.createServerVe(Q.B.element,z.trackingParams||null);Q.B.updateValue("title",Ec(z.title));Q.B.updateValue("description",Ec(z.description));Q.B.updateValue("displayUrl",Ec(z.displayUrl));Q.B.updateValue("imageUrl",ZfA(z.image));z.navigationEndpoint&&g.z7(Q.U,z.navigationEndpoint);Q.C3=z.imageNavigationEndpoint||null;Q.B.show();Q.jm.start();Q.logVisibility(Q.B.element,!0); Q.X(Q.B.element,"mouseover",function(){Q.wh++}); return!0}; S__=function(Q,z){if(Q.api.isMinimized())return!1;var H=GaY(z.image),f=H;H.width0?(z=new P6(Q.api,Q.Z),z.Gv(Q.playerOverlay), g.W(Q,z)):g.BT(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(z)))}}else g.BT(Error("addCommonComponents() needs to be called before starting countdown."))}; guJ=function(Q){function z(H){return{toString:function(){return H()}}} Q.macros.SURVEY_LOCAL_TIME_EPOCH_S=z(function(){var H=new Date;return(Math.round(H.valueOf()/1E3)+-1*H.getTimezoneOffset()*60).toString()}); Q.macros.SURVEY_ELAPSED_MS=z(function(){return(Date.now()-Q.L).toString()})}; Zba=function(Q,z,H,f,b){Jo.call(this,Q,z,H,f,"survey-question-multi-select");this.wh=b;this.noneOfTheAbove=null;this.submitEndpoints=[];this.j=null;this.hide()}; GPp=function(Q,z,H){Q.noneOfTheAbove=new CPA(Q.api,Q.layoutId,Q.interactionLoggingClientData,Q.dh);Q.noneOfTheAbove.Gv(Q.answers);Q.noneOfTheAbove.init(uI("survey-none-of-the-above"),z,H)}; jB8=function(Q){Q.B.forEach(function(z){z.Z.toggleButton(!1)}); $yZ(Q,!0)}; $yZ=function(Q,z){var H=Q.D;Q=FKJ(Q);z=z===void 0?!1:z;H.Z&&(Q?H.Z.hide():H.Z.show(),z&&H.Z instanceof gU&&!H.Z.D&&y$9(H.Z,!1));H.B&&(Q?H.B.show():H.B.hide())}; FKJ=function(Q){return Q.B.some(function(z){return z.Z.isToggled()})||Q.noneOfTheAbove.button.isToggled()}; N_=function(Q,z,H,f,b){Jo.call(this,Q,z,H,f,"survey-question-single-select",function(u){L.api.C().V("supports_multi_step_on_desktop")&&b([u])}); var L=this;this.hide()}; I5=function(Q,z,H,f){tB.call(this,Q,{G:"div",J:"ytp-ad-survey",W:[{G:"div",J:"ytp-ad-survey-questions"}]},"survey",z,H,f);this.questions=[];this.B=[];this.conditioningRules=[];this.Z=0;this.j=this.Mc("ytp-ad-survey-questions");this.api.C().V("fix_survey_color_contrast_on_destop")&&this.Mc("ytp-ad-survey").classList.add("color-contrast-fix");this.api.C().V("web_enable_speedmaster")&&this.Mc("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; ouv=function(Q,z){var H=Q.B[z],f;(f=Q.L)==null||f.dispose();g.K(H,AA)?xyJ(Q,g.K(H,AA),Q.macros):g.K(H,IV)&&Ob6(Q,g.K(H,IV),Q.macros);Q.Z=z}; xyJ=function(Q,z,H){var f=new N_(Q.api,Q.layoutId,Q.interactionLoggingClientData,Q.dh,Q.D.bind(Q));f.Gv(Q.j);f.init(uI("survey-question-single-select"),z,H);Q.api.C().V("supports_multi_step_on_desktop")?Q.L=f:Q.questions.push(f);g.W(Q,f)}; Ob6=function(Q,z,H){var f=new Zba(Q.api,Q.layoutId,Q.interactionLoggingClientData,Q.dh,Q.D.bind(Q));f.Gv(Q.j);f.init(uI("survey-question-multi-select"),z,H);Q.api.C().V("supports_multi_step_on_desktop")?Q.L=f:Q.questions.push(f);g.W(Q,f)}; Ao=function(Q,z,H,f){tB.call(this,Q,{G:"div",J:"ytp-ad-survey-interstitial",W:[{G:"div",J:"ytp-ad-survey-interstitial-contents",W:[{G:"div",J:"ytp-ad-survey-interstitial-logo",W:[{G:"div",J:"ytp-ad-survey-interstitial-logo-image"}]},{G:"div",J:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",z,H,f);this.Z=this.actionButton=null;this.interstitial=this.Mc("ytp-ad-survey-interstitial");this.B=this.Mc("ytp-ad-survey-interstitial-contents");this.text=this.Mc("ytp-ad-survey-interstitial-text"); this.logoImage=this.Mc("ytp-ad-survey-interstitial-logo-image");this.transition=new g.H6(this,500,!1,300);g.W(this,this.transition)}; JWk=function(Q,z){z=z&&iI(z)||"";if(g.j5(z))g.PT(Error("Found ThumbnailDetails without valid image URL"));else{var H=Q.style;Q=Q.style.cssText;var f=document.implementation.createHTMLDocument("").createElement("DIV");f.style.cssText=Q;Q=m2k(f.style);H.cssText=[Q,'background-image:url("'+z+'");'].join("")}}; NOv=function(Q){var z=g.T2("html5-video-player");z&&g.qP(z,"ytp-ad-display-override",Q)}; Y5=function(Q,z,H,f,b,L){L=L===void 0?0:L;Rv.call(this,Q,{G:"div",J:"ytp-preview-ad",W:[{G:"div",J:"ytp-preview-ad__text"}]},"preview-ad",z,H,f,b);var u=this;this.wh=L;this.B=0;this.D=-1;this.L=this.Mc("ytp-preview-ad__text");switch(this.wh){case 1:this.L.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.H6(this,400,!1,100,function(){u.hide()}); g.W(this,this.transition);this.hide()}; ru=function(Q,z,H,f){tB.call(this,Q,{G:"img",J:"ytp-ad-avatar"},"ad-avatar",z,H,f);this.hide()}; IGA=function(Q){switch(Q.size){case "AD_AVATAR_SIZE_XXS":return 16;case "AD_AVATAR_SIZE_XS":return 24;case "AD_AVATAR_SIZE_S":return 32;case "AD_AVATAR_SIZE_M":return 36;case "AD_AVATAR_SIZE_L":return 56;case "AD_AVATAR_SIZE_XL":return 72;default:return 36}}; sp=function(Q,z,H,f,b,L){b=b===void 0?!1:b;L=L===void 0?!1:L;tB.call(this,Q,{G:"button",J:"ytp-ad-button-vm"},"ad-button",z,H,f);this.buttonText=this.buttonIcon=null;this.hide();this.Z=b;this.B=L}; AWa=function(Q,z,H,f,b){Rv.call(this,Q,{G:"div",lT:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],W:[{G:"div",J:"ytp-ad-avatar-lockup-card__avatar_and_text_container",W:[{G:"div",J:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",z,H,f,b);this.startMilliseconds=0;this.adAvatar=new ru(this.api,this.layoutId,this.interactionLoggingClientData,this.dh);g.W(this,this.adAvatar);uT(this.element,this.adAvatar.element,0);this.headline=new IQ(this.api,this.layoutId, this.interactionLoggingClientData,this.dh);g.W(this,this.headline);this.headline.Gv(this.Mc("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new IQ(this.api,this.layoutId,this.interactionLoggingClientData,this.dh);g.W(this,this.description);this.description.Gv(this.Mc("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new sp(this.api, this.layoutId,this.interactionLoggingClientData,this.dh);g.W(this,this.adButton);this.adButton.Gv(this.element);this.hide()}; By=function(Q,z,H,f){tB.call(this,Q,{G:"button",J:"ytp-skip-ad-button",W:[{G:"div",J:"ytp-skip-ad-button__text"}]},"skip-button",z,H,f);var b=this;this.B=!1;this.D=this.Mc("ytp-skip-ad-button__text");this.transition=new g.H6(this,500,!1,100,function(){b.hide()}); g.W(this,this.transition);this.Z=new Sh(this.element,15E3,5E3,.5,.5,!0);g.W(this,this.Z);this.hide()}; Y_c=function(Q,z,H,f,b){Rv.call(this,Q,{G:"div",J:"ytp-skip-ad"},"skip-ad",z,H,f,b);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.L=new By(this.api,this.layoutId,this.interactionLoggingClientData,this.dh);g.W(this,this.L);this.L.Gv(this.element);this.hide()}; Py=function(Q,z,H,f){tB.call(this,Q,{G:"div",J:"ytp-visit-advertiser-link"},"visit-advertiser-link",z,H,f);this.hide();this.api.V("enable_ad_pod_index_autohide")&&this.element.classList.add("ytp-visit-advertiser-link--clean-player");this.api.V("clean_player_style_fix_on_web")&&this.element.classList.add("ytp-visit-advertiser-link--clean-player-with-light-shadow")}; a5=function(Q,z,H,f,b){tB.call(this,Q,{G:"div",J:"ytp-ad-player-overlay-layout",W:[{G:"div",J:"ytp-ad-player-overlay-layout__player-card-container"},{G:"div",J:"ytp-ad-player-overlay-layout__ad-info-container",W:[Q.C().V("delhi_modern_web_player")?{G:"div",J:"ytp-ad-player-overlay-layout__ad-info-container-left"}:null]},{G:"div",J:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{G:"div",J:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",z,H,f);this.L= b;this.jm=this.Mc("ytp-ad-player-overlay-layout__player-card-container");this.Z=this.Mc("ytp-ad-player-overlay-layout__ad-info-container");this.wh=this.Mc("ytp-ad-player-overlay-layout__skip-or-preview-container");this.yl=this.Mc("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");Q.C().V("delhi_modern_web_player")&&(this.D=this.Mc("ytp-ad-player-overlay-layout__ad-info-container-left"));this.hide()}; rWZ=function(Q,z,H,f){tB.call(this,Q,{G:"div",J:"ytp-ad-grid-card-text",W:[{G:"div",J:"ytp-ad-grid-card-text__metadata",W:[{G:"div",J:"ytp-ad-grid-card-text__metadata__headline"},{G:"div",J:"ytp-ad-grid-card-text__metadata__description",W:[{G:"div",J:"ytp-ad-grid-card-text__metadata__description__line"},{G:"div",J:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{G:"div",J:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",z,H,f);this.headline=new IQ(this.api,this.layoutId,this.interactionLoggingClientData, this.dh);g.W(this,this.headline);this.headline.Gv(this.Mc("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new sp(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,!0);g.W(this,this.moreInfoButton);this.moreInfoButton.Gv(this.Mc("ytp-ad-grid-card-text__button"))}; Up=function(Q,z,H,f){tB.call(this,Q,{G:"div",J:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",z,H,f);this.Z=[]}; cy=function(Q,z,H,f,b,L,u){Rv.call(this,Q,L,u,z,H,f,b);this.playerProgressOffsetMs=0;this.B=!1}; sBL=function(Q){var z=g.T2("html5-video-player");z&&g.qP(z,"ytp-ad-display-override",Q)}; BOc=function(Q,z,H,f,b){cy.call(this,Q,z,H,f,b,{G:"div",J:"ytp-display-underlay-text-grid-cards",W:[{G:"div",J:"ytp-display-underlay-text-grid-cards__content_container",W:[{G:"div",J:"ytp-display-underlay-text-grid-cards__content_container__header",W:[{G:"div",J:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{G:"div",J:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{G:"div",J:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"}, {G:"div",J:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new Up(this.api,this.layoutId,this.interactionLoggingClientData,this.dh);g.W(this,this.adGridCardCollection);this.adGridCardCollection.Gv(this.Mc("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new sp(this.api,this.layoutId,this.interactionLoggingClientData,this.dh);g.W(this,this.adButton);this.adButton.Gv(this.Mc("ytp-display-underlay-text-grid-cards__content_container__ad_button")); this.L=this.Mc("ytp-display-underlay-text-grid-cards__content_container");this.D=this.Mc("ytp-display-underlay-text-grid-cards__content_container__header")}; i7=function(Q,z,H,f){tB.call(this,Q,{G:"div",J:"ytp-ad-details-line"},"ad-details-line",z,H,f);this.Z=[];this.hide()}; ho=function(Q,z,H,f){tB.call(this,Q,{G:"div",J:"ytp-image-background",W:[{G:"img",J:"ytp-image-background-image"}]},"image-background",z,H,f);this.hide()}; PP6=function(Q,z,H,f,b){Rv.call(this,Q,{G:"svg",J:"ytp-timed-pie-countdown",T:{viewBox:"0 0 20 20"},W:[{G:"circle",J:"ytp-timed-pie-countdown__background",T:{r:"10",cx:"10",cy:"10"}},{G:"circle",J:"ytp-timed-pie-countdown__inner",T:{r:"5",cx:"10",cy:"10"}},{G:"circle",J:"ytp-timed-pie-countdown__outer",T:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",z,H,f,b);this.L=this.Mc("ytp-timed-pie-countdown__inner");this.B=Math.ceil(2*Math.PI*5);this.hide()}; Wy=function(Q,z,H,f){tB.call(this,Q,{G:"div",J:"ytp-video-interstitial-buttoned-centered-layout",T:{tabindex:"0"},W:[{G:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content",W:[{G:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{G:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",W:[{G:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{G:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, {G:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{G:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{G:"div",J:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",z,H,f);this.B=null;this.D=this.Mc("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.L=new N0;g.W(this,this.L);this.hide()}; aG6=function(Q){var z=g.T2("html5-video-player");z&&g.qP(z,"ytp-ad-display-override",Q)}; Uyu=function(Q){if(!Q.adAvatar||!g.K(Q.adAvatar,DB))return g.BT(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!Q.headline)return g.BT(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!Q.adBadge||!g.K(Q.adBadge,K0))return g.BT(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!Q.adButton||!g.K(Q.adButton,VB))return g.BT(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!Q.adInfoRenderer|| !g.K(Q.adInfoRenderer,rg))return g.BT(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;Q=Q.durationMilliseconds||0;return typeof Q!=="number"||Q<=0?(g.BT(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+Q)),!1):!0}; du=function(Q,z,H){VR.call(this,Q);this.api=Q;this.dh=z;this.B={};Q=new g.m({G:"div",lT:["video-ads","ytp-ad-module"]});g.W(this,Q);$h&&g.SK(Q.element,"ytp-ads-tiny-mode");this.S=new pt(Q.element);g.W(this,this.S);g.sZ(this.api,Q.element,4);lg(H)&&(H=new g.m({G:"div",lT:["ytp-ad-underlay"]}),g.W(this,H),this.L=new pt(H.element),g.W(this,this.L),g.sZ(this.api,H.element,0));g.W(this,ifJ())}; cW9=function(Q,z){Q=g.ra(Q.B,z.id,null);Q==null&&g.PT(Error("Component not found for element id: "+z.id));return Q||null}; ibY=function(Q){g.g3.call(this,Q);var z=this;this.B=null;this.created=!1;this.L=Q.C().V("h5_use_refactored_get_ad_break")?new By8(this.player):new D2(this.player);this.D=function(){if(z.B!=null)return z.B;var f=new W2A({wi:$5(z.Z).wi,wQ:$5(z.Z).wQ,K:z.player,GO:$5(z.Z).GO,Vl:z.Z.Z.Vl,EG:$5(z.Z).EG,Rq:z.Z.Z.Rq});z.B=f.O$;return z.B}; this.Z=new mhA(this.player,this,this.L,this.D);g.W(this,this.Z);var H=Q.C();!xJ(H)||g.Yh(H)||U8(H)||(g.W(this,new du(Q,$5(this.Z).dh,$5(this.Z).GO)),g.W(this,new w1Z(Q)))}; hD6=function(Q){Q.created!==Q.loaded&&MZ("Created and loaded are out of sync")}; KKn=function(Q){g.g3.prototype.load.call(Q);var z=$5(Q.Z).GO;try{Q.player.getRootNode().classList.add("ad-created")}catch(v){MZ(v instanceof Error?v:String(v))}var H=Q.player.getVideoData(1),f=H&&H.videoId||"",b=H&&H.getPlayerResponse()||{},L=(!Q.player.C().experiments.Nc("debug_ignore_ad_placements")&&b&&b.adPlacements||[]).map(function(v){return v.adPlacementRenderer}),u=((b==null?void 0:b.adSlots)||[]).map(function(v){return g.K(v,Uy)}); b=b.playerConfig&&b.playerConfig.daiConfig&&b.playerConfig.daiConfig.enableDai||!1;H&&H.AZ();L=WKA(L,u,z,$5(Q.Z).Z$);u=H&&H.clientPlaybackNonce||"";H=H&&H.R4||!1;if(jM(z,!0)&&H){var X;z={};(X=Q.player.getVideoData())==null||X.On("p_cpb",(z.cc=u,z))}X=1E3*Q.player.getDuration(1);Dy8(Q);Q.Z.Z.rg.cY(u,X,H,L.Ao,L.oM,L.Ao,b,f)}; Dy8=function(Q){var z,H;if(H=(z=Q.player.getVideoData(1))==null||!z.R4)z=Q.player.C(),H=xJ(z)&&!g.FE(z)&&z.playerStyle==="desktop-polymer";H&&(Q=Q.player.getInternalApi(),Q.addEventListener("updateKevlarOrC3Companion",pU9),Q.addEventListener("updateEngagementPanelAction",nCA),Q.addEventListener("changeEngagementPanelVisibility",gC8),window.addEventListener("yt-navigate-start",GKn))}; mH=function(Q,z){z===Q.G0&&(Q.G0=void 0)}; Vqp=function(Q){var z=$5(Q.Z).Dm,H=z.D().t4("SLOT_TYPE_PLAYER_BYTES",1);z=EH(z.cI.get(),1).clientPlaybackNonce;var f=!1;H=g.n(H);for(var b=H.next();!b.done;b=H.next()){b=b.value;var L=b.slotType==="SLOT_TYPE_PLAYER_BYTES"&&b.slotEntryTrigger instanceof jp?b.slotEntryTrigger.f$:void 0;L&&L===z&&(f&&MZ("More than 1 preroll playerBytes slot detected",b),f=!0)}f||S6($5(Q.Z).dk)}; dyk=function(Q){if(TD($5(Q.Z).GO))return!0;var z="";Q=g.n($5(Q.Z).EG.g7.keys());for(var H=Q.next();!H.done;H=Q.next()){H=H.value;if(H.slotType==="SLOT_TYPE_PLAYER_BYTES"&&H.hh==="core")return!0;z+=H.slotType+" "}Math.random()<.01&&MZ("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:z});return!1}; myp=function(Q){Q=g.n($5(Q.Z).EG.g7.values());for(var z=Q.next();!z.done;z=Q.next())if(z.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; Itk=function(Q,z,H,f,b,L){H=H===void 0?[]:H;f=f===void 0?"":f;b=b===void 0?"":b;var u=$5(Q.Z).GO,X=Q.player.getVideoData(1);X&&X.getPlayerResponse();X&&X.AZ();H=WKA(z,H,u,$5(Q.Z).Z$);stL($5(Q.Z).Gx,f,H.Ao,H.oM,z,b,L)}; WKA=function(Q,z,H,f){z={Ao:[],oM:z};Q=g.n(Q);for(var b=Q.next();!b.done;b=Q.next())if((b=b.value)&&b.renderer!=null){var L=b.renderer;if(!H.K.C().V("html5_enable_vod_lasr_with_notify_pacf")){var u=void 0,X=void 0,v=void 0,y=void 0,q=f;g.K((y=L.sandwichedLinearAdRenderer)==null?void 0:y.adVideoStart,t7)?(u=g.K((v=L.sandwichedLinearAdRenderer)==null?void 0:v.adVideoStart,t7),u=weY(u,q),g.hl(L.sandwichedLinearAdRenderer.adVideoStart,t7,u)):g.K((X=L.linearAdSequenceRenderer)==null?void 0:X.adStart,t7)&& (v=g.K((u=L.linearAdSequenceRenderer)==null?void 0:u.adStart,t7),u=weY(v,q),g.hl(L.linearAdSequenceRenderer.adStart,t7,u))}z.Ao.push(b)}return z}; g.wu=function(Q){if(typeof DOMParser!="undefined")return kg(new DOMParser,W4Y(Q),"application/xml");throw Error("Your browser does not support loading xml documents");}; g.k5=function(Q){g.h.call(this);this.callback=Q;this.Z=new jK(0,0,.4,0,.2,1,1,1);this.delay=new g.wN(this.next,window,this);g.W(this,this.delay)}; g.wd6=function(Q){var z=Q.C();return z.p5&&!z.L&&g.xh(z)?Q.isEmbedsShortsMode()?(Q=Q.A8(),Math.min(Q.width,Q.height)>=315):!Q.HB():!1}; g.Tm=function(Q){g.m.call(this,{G:"div",J:"ytp-more-videos-view",T:{tabIndex:"-1"}});var z=this;this.api=Q;this.B=!0;this.L=new g.Bt(this);this.Z=[];this.suggestionData=[];this.columns=this.containerWidth=this.N=this.D=this.scrollPosition=0;this.title=new g.m({G:"h2",J:"ytp-related-title",BI:"{{title}}"});this.previous=new g.m({G:"button",lT:["ytp-button","ytp-previous"],T:{"aria-label":"Show previous suggested videos"},W:[g.Zv()]});this.Y=new g.k5(function(H){z.suggestions.element.scrollLeft=-H}); this.next=new g.m({G:"button",lT:["ytp-button","ytp-next"],T:{"aria-label":"Show more suggested videos"},W:[g.G8()]});g.W(this,this.L);this.j=Q.C().D;g.W(this,this.title);this.title.Gv(this.element);this.suggestions=new g.m({G:"div",J:"ytp-suggestions"});g.W(this,this.suggestions);this.suggestions.Gv(this.element);g.W(this,this.previous);this.previous.Gv(this.element);this.previous.listen("click",this.Tu,this);g.W(this,this.Y);kPc(this);g.W(this,this.next);this.next.Gv(this.element);this.next.listen("click", this.WH,this);this.L.X(this.api,"appresize",this.tZ);this.L.X(this.api,"fullscreentoggled",this.oK);this.L.X(this.api,"videodatachange",this.onVideoDataChange);this.tZ(this.api.Un().getPlayerSize());this.onVideoDataChange()}; kPc=function(Q){for(var z={nK:0};z.nK<16;z={nK:z.nK},++z.nK){var H=new g.m({G:"a",J:"ytp-suggestion-link",T:{href:"{{link}}",target:Q.api.C().U,"aria-label":"{{aria_label}}"},W:[{G:"div",J:"ytp-suggestion-image"},{G:"div",J:"ytp-suggestion-overlay",T:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},W:[{G:"div",J:"ytp-suggestion-title",BI:"{{title}}"},{G:"div",J:"ytp-suggestion-author",BI:"{{author_and_views}}"},{G:"div",T:{"data-is-live":"{{is_live}}"},J:"ytp-suggestion-duration", BI:"{{duration}}"}]}]});g.W(Q,H);var f=H.Mc("ytp-suggestion-link");g.q2(f,"transitionDelay",z.nK/20+"s");Q.L.X(f,"click",function(b){return function(L){var u=b.nK;if(Q.B){var X=Q.suggestionData[u],v=X.sessionData;Q.j&&Q.api.V("web_player_log_click_before_generating_ve_conversion_params")?(Q.api.logClick(Q.Z[u].element),u=X.ma(),X={},g.Af(Q.api,X),u=g.Ve(u,X),g.uo(u,Q.api,L)):g.LK(L,Q.api,Q.j,v||void 0)&&Q.api.cN(X.videoId,v,X.playlistId)}else L.preventDefault(),document.activeElement.blur()}}(z)); H.Gv(Q.suggestions.element);Q.Z.push(H);Q.api.createServerVe(H.element,H)}}; TOA=function(Q){if(Q.api.C().V("web_player_log_click_before_generating_ve_conversion_params"))for(var z=Math.floor(-Q.scrollPosition/(Q.D+8)),H=Math.min(z+Q.columns,Q.suggestionData.length)-1;z<=H;z++)Q.api.logVisibility(Q.Z[z].element,!0)}; g.e6=function(Q){var z=Q.api.iW()?32:16;z=Q.N/2+z;Q.next.element.style.bottom=z+"px";Q.previous.element.style.bottom=z+"px";z=Q.scrollPosition;var H=Q.containerWidth-Q.suggestionData.length*(Q.D+8);g.qP(Q.element,"ytp-scroll-min",z>=0);g.qP(Q.element,"ytp-scroll-max",z<=H)}; lGA=function(Q){for(var z=Q.suggestionData.length,H=0;H>>0)+"_",b=0;return z}); Mk("Symbol.iterator",function(Q){if(Q)return Q;Q=Symbol("Symbol.iterator");for(var z="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),H=0;H=L}}); Mk("String.prototype.endsWith",function(Q){return Q?Q:function(z,H){var f=rc(this,z,"endsWith");z+="";H===void 0&&(H=f.length);H=Math.max(0,Math.min(H|0,f.length));for(var b=z.length;b>0&&H>0;)if(f[--H]!=z[--b])return!1;return b<=0}}); Mk("Array.prototype.entries",function(Q){return Q?Q:function(){return sA(this,function(z,H){return[z,H]})}}); Mk("Math.imul",function(Q){return Q?Q:function(z,H){z=Number(z);H=Number(H);var f=z&65535,b=H&65535;return f*b+((z>>>16&65535)*b+f*(H>>>16&65535)<<16>>>0)|0}}); Mk("Math.trunc",function(Q){return Q?Q:function(z){z=Number(z);if(isNaN(z)||z===Infinity||z===-Infinity||z===0)return z;var H=Math.floor(Math.abs(z));return z<0?-H:H}}); Mk("Math.clz32",function(Q){return Q?Q:function(z){z=Number(z)>>>0;if(z===0)return 32;var H=0;(z&4294901760)===0&&(z<<=16,H+=16);(z&4278190080)===0&&(z<<=8,H+=8);(z&4026531840)===0&&(z<<=4,H+=4);(z&3221225472)===0&&(z<<=2,H+=2);(z&2147483648)===0&&H++;return H}}); Mk("Math.log10",function(Q){return Q?Q:function(z){return Math.log(z)/Math.LN10}}); Mk("Number.isNaN",function(Q){return Q?Q:function(z){return typeof z==="number"&&isNaN(z)}}); Mk("Array.prototype.keys",function(Q){return Q?Q:function(){return sA(this,function(z){return z})}}); Mk("Array.prototype.values",function(Q){return Q?Q:function(){return sA(this,function(z,H){return H})}}); Mk("Array.prototype.fill",function(Q){return Q?Q:function(z,H,f){var b=this.length||0;H<0&&(H=Math.max(0,b+H));if(f==null||f>b)f=b;f=Number(f);f<0&&(f=Math.max(0,b+f));for(H=Number(H||0);H1342177279)throw new RangeError("Invalid count value");z|=0;for(var f="";z;)if(z&1&&(f+=H),z>>>=1)H+=H;return f}}); Mk("Promise.prototype.finally",function(Q){return Q?Q:function(z){return this.then(function(H){return Promise.resolve(z()).then(function(){return H})},function(H){return Promise.resolve(z()).then(function(){throw H; })})}}); Mk("String.prototype.padStart",function(Q){return Q?Q:function(z,H){var f=rc(this,null,"padStart");z-=f.length;H=H!==void 0?String(H):" ";return(z>0&&H?H.repeat(Math.ceil(z/H.length)).substring(0,z):"")+f}}); Mk("Array.prototype.findIndex",function(Q){return Q?Q:function(z,H){return tY8(this,z,H).AU}}); Mk("Math.sign",function(Q){return Q?Q:function(z){z=Number(z);return z===0||isNaN(z)?z:z>0?1:-1}}); Mk("WeakSet",function(Q){function z(H){this.Z=new WeakMap;if(H){H=g.n(H);for(var f;!(f=H.next()).done;)this.add(f.value)}} if(function(){if(!Q||!Object.seal)return!1;try{var H=Object.seal({}),f=Object.seal({}),b=new Q([H]);if(!b.has(H)||b.has(f))return!1;b.delete(H);b.add(f);return!b.has(H)&&b.has(f)}catch(L){return!1}}())return Q; z.prototype.add=function(H){this.Z.set(H,!0);return this}; z.prototype.has=function(H){return this.Z.has(H)}; z.prototype.delete=function(H){return this.Z.delete(H)}; return z}); Mk("Array.prototype.copyWithin",function(Q){function z(H){H=Number(H);return H===Infinity||H===-Infinity?H:H|0} return Q?Q:function(H,f,b){var L=this.length;H=z(H);f=z(f);b=b===void 0?L:z(b);H=H<0?Math.max(L+H,0):Math.min(H,L);f=f<0?Math.max(L+f,0):Math.min(f,L);b=b<0?Math.max(L+b,0):Math.min(b,L);if(Hf;)--b in this?this[--H]=this[b]:delete this[--H];return this}}); Mk("Int8Array.prototype.copyWithin",P_);Mk("Uint8Array.prototype.copyWithin",P_);Mk("Uint8ClampedArray.prototype.copyWithin",P_);Mk("Int16Array.prototype.copyWithin",P_);Mk("Uint16Array.prototype.copyWithin",P_);Mk("Int32Array.prototype.copyWithin",P_);Mk("Uint32Array.prototype.copyWithin",P_);Mk("Float32Array.prototype.copyWithin",P_);Mk("Float64Array.prototype.copyWithin",P_);Mk("Array.prototype.at",function(Q){return Q?Q:aJ}); Mk("Int8Array.prototype.at",UA);Mk("Uint8Array.prototype.at",UA);Mk("Uint8ClampedArray.prototype.at",UA);Mk("Int16Array.prototype.at",UA);Mk("Uint16Array.prototype.at",UA);Mk("Int32Array.prototype.at",UA);Mk("Uint32Array.prototype.at",UA);Mk("Float32Array.prototype.at",UA);Mk("Float64Array.prototype.at",UA);Mk("String.prototype.at",function(Q){return Q?Q:aJ}); Mk("Array.prototype.findLastIndex",function(Q){return Q?Q:function(z,H){return EvJ(this,z,H).AU}}); Mk("Int8Array.prototype.findLastIndex",c_);Mk("Uint8Array.prototype.findLastIndex",c_);Mk("Uint8ClampedArray.prototype.findLastIndex",c_);Mk("Int16Array.prototype.findLastIndex",c_);Mk("Uint16Array.prototype.findLastIndex",c_);Mk("Int32Array.prototype.findLastIndex",c_);Mk("Uint32Array.prototype.findLastIndex",c_);Mk("Float32Array.prototype.findLastIndex",c_);Mk("Float64Array.prototype.findLastIndex",c_);Mk("Number.parseInt",function(Q){return Q||parseInt});var eL,kv,p_c;eL=eL||{};g.iL=this||self;kv="closure_uid_"+(Math.random()*1E9>>>0);p_c=0;g.p(Hu,Error);g.h.prototype.fZ=!1;g.h.prototype.Sm=function(){return this.fZ}; g.h.prototype.dispose=function(){this.fZ||(this.fZ=!0,this.zv())}; g.h.prototype[Symbol.dispose]=function(){this.dispose()}; g.h.prototype.addOnDisposeCallback=function(Q,z){this.fZ?z!==void 0?Q.call(z):Q():(this.PN||(this.PN=[]),z&&(Q=Q.bind(z)),this.PN.push(Q))}; g.h.prototype.zv=function(){if(this.PN)for(;this.PN.length;)this.PN.shift()()};var xkn;g.p(ys,g.h);ys.prototype.share=function(){if(this.Sm())throw Error("E:AD");this.D++;return this}; ys.prototype.dispose=function(){--this.D||g.h.prototype.dispose.call(this)}; xkn=Symbol.dispose;Onn.prototype.Fc=function(Q,z){this.Z.Fc("/client_streamz/bg/frs",Q,z)}; ovn.prototype.Fc=function(Q,z,H,f,b,L){this.Z.Fc("/client_streamz/bg/wrl",Q,z,H,f,b,L)}; J89.prototype.Z=function(Q,z){this.B.wZ("/client_streamz/bg/ec",Q,z)}; Ncp.prototype.Fc=function(Q,z,H,f){this.Z.Fc("/client_streamz/bg/el",Q,z,H,f)}; I6_.prototype.Z=function(Q,z,H){this.B.wZ("/client_streamz/bg/cec",Q,z,H)}; A8Y.prototype.Z=function(Q,z,H){this.B.wZ("/client_streamz/bg/po/csc",Q,z,H)}; YA6.prototype.Z=function(Q,z,H){this.B.wZ("/client_streamz/bg/po/ctav",Q,z,H)}; r8n.prototype.Z=function(Q,z,H){this.B.wZ("/client_streamz/bg/po/cwsc",Q,z,H)};g.zY(ET,Error);ET.prototype.name="CustomError";var zoY;var Pq=void 0,Bq,N7Z=typeof TextDecoder!=="undefined",Ukc,a6A=typeof String.prototype.isWellFormed==="function",PLc=typeof TextEncoder!=="undefined";var OT=String.prototype.trim?function(Q){return Q.trim()}:function(Q){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(Q)[1]},NCn=/&/g,Ic8=//g,Y7k=/"/g,rnA=/'/g,sUZ=/\x00/g,JnZ=/[\x00&<>"']/;var LZY=Kn(1,!0),Iu=Kn(610401301,!1);Kn(899588437,!1);var ua5=Kn(725719775,!1),SAL=Kn(513659523,!1);Kn(568333945,!1);Kn(651175828,!1);Kn(722764542,!1);Kn(2147483644,!1);Kn(2147483645,!1);Kn(2147483646,LZY);Kn(2147483647,!0);var At=!!g.D6("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var YO,X_B=g.iL.navigator;YO=X_B?X_B.userAgentData||null:null;var l6J,Is,Jx;l6J=Array.prototype.indexOf?function(Q,z){return Array.prototype.indexOf.call(Q,z,void 0)}:function(Q,z){if(typeof Q==="string")return typeof z!=="string"||z.length!=1?-1:Q.indexOf(z,0); for(var H=0;H=0;H--)if(H in Q&&Q[H]===z)return H;return-1}; g.qI=Array.prototype.forEach?function(Q,z,H){Array.prototype.forEach.call(Q,z,H)}:function(Q,z,H){for(var f=Q.length,b=typeof Q==="string"?Q.split(""):Q,L=0;LparseFloat(tYt)){CLs=String(l7);break a}}CLs=tYt}var yta=CLs,Xu9={};var eT,lv;g.ak=au();eT=Wu()||sT("iPod");lv=sT("iPad");g.Fu=VYL();g.AI=UT();g.Ga=iR()&&!DL();var M5k={},G7=null,CR8=Ch||g.lQ||typeof g.iL.btoa=="function";var juZ=typeof Uint8Array!=="undefined",pu9=!g.EF&&typeof btoa==="function",GY6=/[-_.]/g,gOJ={"-":"+",_:"/",".":"="},Fk={};jj.prototype.isEmpty=function(){return this.Z==null}; jj.prototype.sizeBytes=function(){var Q=O2(this);return Q?Q.length:0}; var xsa;var oOL=void 0;var AC=typeof Symbol==="function"&&typeof Symbol()==="symbol",nvO=IG("jas",void 0,!0),br=IG(void 0,"1oa"),Kr=IG(void 0,Symbol()),tjY=IG(void 0,"0actk"),$t=IG(void 0,"8utk");Math.max.apply(Math,g.F(Object.values({RUh:1,tNl:2,Fa5:4,hov:8,Qsq:16,vMq:32,U7q:64,k7h:128,P$j:256,wl5:512,IC$:1024,OPv:2048,FBm:4096,z$q:8192})));var r7=AC?nvO:"ot3",NJ8={ot3:{value:0,configurable:!0,writable:!0,enumerable:!1}},Jt9=Object.defineProperties;var O7={},wC,gvT=[];BY(gvT,55);wC=Object.freeze(gvT);var gTJ=Object.freeze({});var suJ=Vi(function(Q){return typeof Q==="number"}),rtY=Vi(function(Q){return typeof Q==="string"}),BJn=Vi(function(Q){return typeof Q==="boolean"}),uM=Vi(function(Q){return Q!=null&&typeof Q==="object"&&typeof Q.then==="function"}),LE=Vi(function(Q){return!!Q&&(typeof Q==="object"||typeof Q==="function")});var d7=typeof g.iL.BigInt==="function"&&typeof g.iL.BigInt(0)==="bigint";var Gi=Vi(function(Q){return d7?Q>=Zns&&Q<=Guu:Q[0]==="-"?PRu(Q,$kY):PRu(Q,jJu)}),$kY=Number.MIN_SAFE_INTEGER.toString(),Zns=d7?BigInt(Number.MIN_SAFE_INTEGER):void 0,jJu=Number.MAX_SAFE_INTEGER.toString(),Guu=d7?BigInt(Number.MAX_SAFE_INTEGER):void 0;var xI_=typeof Uint8Array.prototype.slice==="function",kT=0,T7=0,RWc;var CS=typeof BigInt==="function"?BigInt.asIntN:void 0,TJu=typeof BigInt==="function"?BigInt.asUintN:void 0,nS=Number.isSafeInteger,SX=Number.isFinite,pS=Math.trunc,hmZ=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var Jn;var Yt,q2J;g.S=jG_.prototype;g.S.init=function(Q,z,H,f){f=f===void 0?{}:f;this.Iw=f.Iw===void 0?!1:f.Iw;Q&&(Q=$f(Q),this.B=Q.buffer,this.S=Q.LQ,this.D=z||0,this.L=H!==void 0?this.D+H:this.B.length,this.Z=this.D)}; g.S.free=function(){this.clear();Ac.length<100&&Ac.push(this)}; g.S.clear=function(){this.B=null;this.S=!1;this.Z=this.L=this.D=0;this.Iw=!1}; g.S.reset=function(){this.Z=this.D}; g.S.Lp=function(){var Q=this.j;Q||(Q=this.B,Q=this.j=new DataView(Q.buffer,Q.byteOffset,Q.byteLength));return Q}; var Ac=[];Yf.prototype.free=function(){this.Z.clear();this.B=this.D=-1;R5.length<100&&R5.push(this)}; Yf.prototype.reset=function(){this.Z.reset();this.L=this.Z.Z;this.B=this.D=-1}; var R5=[];g.S=U$.prototype;g.S.toJSON=function(){return An(this)}; g.S.dP=function(Q){return JSON.stringify(An(this,Q))}; g.S.clone=function(){var Q=this,z=Q.Pz;Q=new Q.constructor(N4(z,z[r7]|0,Po,!0,!0));PY(Q.Pz,2);return Q}; g.S.LQ=function(){return!!((this.Pz[r7]|0)&2)}; g.S.nI=O7;g.S.toString=function(){return this.Pz.toString()};var Y2Z,sG8;hc.prototype.length=function(){return this.Z.length}; hc.prototype.end=function(){var Q=this.Z;this.Z=[];return Q};var kf=wq(),FZL=wq(),xks=wq(),Ons=wq(),ovs=wq(),J8s=wq(),Ncm=wq(),I6u=wq();var KzJ=e4(function(Q,z,H,f,b){if(Q.B!==2)return!1;s$(Q,Lw(z,f,H),b);return!0},DI6),Vjn=e4(function(Q,z,H,f,b){if(Q.B!==2)return!1; s$(Q,Lw(z,f,H),b);return!0},DI6),uz=Symbol(),HJ=Symbol(),mIu=Symbol(),T7u=Symbol(),lr,R0;var A85=vJ(function(Q,z,H){if(Q.B!==1)return!1;qO(z,H,No(Q.Z));return!0},MO,Ncm),YAL=vJ(function(Q,z,H){if(Q.B!==1)return!1; Q=No(Q.Z);qO(z,H,Q===0?void 0:Q);return!0},MO,Ncm),r8s=vJ(function(Q,z,H,f){if(Q.B!==1)return!1; Hq(z,H,f,No(Q.Z));return!0},MO,Ncm),sJx=vJ(function(Q,z,H){if(Q.B!==0)return!1; qO(z,H,xf(Q.Z));return!0},C$,ovs),BcL=vJ(function(Q,z,H){if(Q.B!==0)return!1; Q=xf(Q.Z);qO(z,H,Q===0?void 0:Q);return!0},C$,ovs),PLJ=vJ(function(Q,z,H,f){if(Q.B!==0)return!1; Hq(z,H,f,xf(Q.Z));return!0},C$,ovs),a6T=vJ(function(Q,z,H){if(Q.B!==0)return!1; qO(z,H,O$(Q.Z));return!0},tb,Ons),UkJ=vJ(function(Q,z,H){if(Q.B!==0)return!1; Q=O$(Q.Z);qO(z,H,Q===0?void 0:Q);return!0},tb,Ons),c8B=vJ(function(Q,z,H,f){if(Q.B!==0)return!1; Hq(z,H,f,O$(Q.Z));return!0},tb,Ons),inT=vJ(function(Q,z,H){if(Q.B!==1)return!1; qO(z,H,Jc(Q.Z));return!0},function(Q,z,H){hWu(Q,H,emZ(z))},J8s),hpB=yo(function(Q,z,H){if(Q.B!==1&&Q.B!==2)return!1; z=eX(z,z[r7]|0,H,!1);if(Q.B==2)for(H=O$(Q.Z)>>>0,H=Q.Z.Z+H;Q.Z.Z>>0);return!0},function(Q,z,H){z=q4(z); z!=null&&z!=null&&(dq(Q,H,0),Du(Q.Z,z))},wq()),w_m=vJ(function(Q,z,H){if(Q.B!==0)return!1; qO(z,H,O$(Q.Z));return!0},function(Q,z,H){z=yr(z); z!=null&&(z=parseInt(z,10),dq(Q,H,0),P4p(Q.Z,z))},wq());bSZ.prototype.register=function(){E2(this)};g.p(ucJ,U$);g.p(p$,U$);var $g=[1,2,3];var kuR=[0,$g,VYR,c8B,Dku];var Tct=[0,zo,[0,A85,sJx]];g.p(n$,U$);var GU=[1,2,3];var epu=[0,GU,PLJ,r8s,fX,Tct];g.p(g$,U$);var l6u=[0,zo,kuR,epu];var Rp5=[0,[1,2,3],fX,[0,QE,-1,WZm],fX,[0,QE,-1,a6T,WZm],fX,[0,QE]];g.p(ZT,U$);ZT.prototype.We=function(){var Q=m8(this,3,Fc,3,!0);D3(Q);return Q[void 0]};ZT.prototype.Z=L8v([0,QE,Rp5,KZT,zo,l6u,inT,hpB]);g.p(Xou,U$);var ntv=globalThis.trustedTypes,je;xg.prototype.toString=function(){return this.Z+""};Jb.prototype.toString=function(){return this.Z}; var Gip=new Jb("about:invalid#zClosurez");var Z0A=Ab("tel"),n59=Ab("sms"),ZSu=[Ab("data"),Ab("http"),Ab("https"),Ab("mailto"),Ab("ftp"),new I$(function(Q){return/^[^:]*([/?#]|$)/.test(Q)})],$4k=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;BJ.prototype.toString=function(){return this.Z+""};iz.prototype.toString=function(){return this.Z+""};Vo.prototype.toString=function(){return this.Z};var mT={};g.Qus=String.prototype.repeat?function(Q,z){return Q.repeat(z)}:function(Q,z){return Array(z+1).join(Q)};g.S=H3.prototype;g.S.isEnabled=function(){if(!g.iL.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{dF:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.S.set=function(Q,z,H){var f=!1;if(typeof H==="object"){var b=H.uf5;f=H.secure||!1;var L=H.domain||void 0;var u=H.path||void 0;var X=H.dF}if(/[;=\s]/.test(Q))throw Error('Invalid cookie name "'+Q+'"');if(/[;\r\n]/.test(z))throw Error('Invalid cookie value "'+z+'"');X===void 0&&(X=-1);H=L?";domain="+L:"";u=u?";path="+u:"";f=f?";secure":"";X=X<0?"":X==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+X*1E3)).toUTCString();this.Z.cookie=Q+"="+z+H+u+X+f+(b!=null?";samesite="+ b:"")}; g.S.get=function(Q,z){for(var H=Q+"=",f=(this.Z.cookie||"").split(";"),b=0,L;b=0;z--)this.remove(Q[z])}; var an=new H3(typeof document=="undefined"?null:document);bQ.prototype.compress=function(Q){var z,H,f,b;return g.B(function(L){switch(L.Z){case 1:return z=new CompressionStream("gzip"),H=(new Response(z.readable)).arrayBuffer(),f=z.writable.getWriter(),g.Y(L,f.write((new TextEncoder).encode(Q)),2);case 2:return g.Y(L,f.close(),3);case 3:return b=Uint8Array,g.Y(L,H,4);case 4:return L.return(new b(L.B))}})}; bQ.prototype.isSupported=function(Q){return Q<1024?!1:typeof CompressionStream!=="undefined"};g.p(LC,U$);uQ.prototype.setInterval=function(Q){this.intervalMs=Q;this.hM&&this.enabled?(this.stop(),this.start()):this.hM&&this.stop()}; uQ.prototype.start=function(){var Q=this;this.enabled=!0;this.hM||(this.hM=setTimeout(function(){Q.tick()},this.intervalMs),this.B=this.Z())}; uQ.prototype.stop=function(){this.enabled=!1;this.hM&&(clearTimeout(this.hM),this.hM=void 0)}; uQ.prototype.tick=function(){var Q=this;if(this.enabled){var z=Math.max(this.Z()-this.B,0);z0?H:void 0));H=hn(H,4,vo(b>0?b:void 0));H=hn(H,5,vo(L>0?L:void 0));b=H.Pz;L=b[r7]|0;H=L&2?H:new H.constructor(N4(b,L,Po,!0,!0));XP(u,MK,10,H)}u=this.Z.clone();H=Date.now().toString();u=hn(u,4,Zc(H));Q=y3(u,Gl,3,Q.slice());f&&(u=new Sa,f=hn(u,13, vo(f)),u=new XV,f=XP(u,Sa,2,f),u=new ZN,f=XP(u,XV,1,f),f=Zu(f,2,9),XP(Q,ZN,18,f));z&&pw(Q,14,z);return Q};var s0c=function(){if(!g.iL.addEventListener||!Object.defineProperty)return!1;var Q=!1,z=Object.defineProperty({},"passive",{get:function(){Q=!0}}); try{var H=function(){}; g.iL.addEventListener("test",H,z);g.iL.removeEventListener("test",H,z)}catch(f){}return Q}();var Dc6=pqn("AnimationEnd"),yW=pqn("TransitionEnd");g.O0.prototype.B=0;g.O0.prototype.reset=function(){this.Z=this.L=this.D;this.B=0}; g.O0.prototype.getValue=function(){return this.L};g.p(nfL,U$);var zmJ=EK(nfL);g.p(fcn,U$);var LX=new bSZ;g.p(NK,g.h);g.S=NK.prototype;g.S.zv=function(){this.P4();this.B.stop();this.yl.stop();g.h.prototype.zv.call(this)}; g.S.dispatch=function(Q){if(Q instanceof Gl)this.log(Q);else try{var z=new Gl,H=Q.dP();var f=nw(z,8,H);this.log(f)}catch(b){}}; g.S.log=function(Q){if(this.f3){Q=Q.clone();var z=this.En++;Q=pw(Q,21,z);this.componentId&&nw(Q,26,this.componentId);z=Q;if(ZrZ(z)==null){var H=Date.now();H=Number.isFinite(H)?H.toString():"0";hn(z,1,Zc(H))}wuL(co(z,15))!=null||pw(z,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(H=this.experimentIds.clone(),XP(z,LC,16,H));z=this.Z.length-1E3+1;z>0&&(this.Z.splice(0,z),this.D+=z);this.Z.push(Q);this.t1||this.B.enabled||this.B.start()}}; g.S.flush=function(Q,z){var H=this;if(this.Z.length===0)Q&&Q();else if(this.De&&this.U)this.L.B=3,j0L(this);else{var f=Date.now();if(this.mq>f&&this.L30&&(H.L3=Date.now(),H.mq=H.L3+G);C=LX.Z?LX.B(C,LX.Z,175237375):LX.B(C,175237375,null);if(C=C===null?void 0:C)C=uR(C,1,-1),C!==-1&&(H.S=new g.O0(C<1?1:C,3E5,.1),H.B.setInterval(H.S.getValue()))}}Q&&Q();H.j=0},y=function(M,C){var t=fs(b,Gl,3); var E;var G=(E=wuL(co(b,14)))!=null?E:void 0;g.oK(H.S);H.B.setInterval(H.S.getValue());M===401&&L&&(H.jm=L);G&&(H.D+=G);C===void 0&&(C=H.isRetryable(M));C&&(H.Z=t.concat(H.Z),H.t1||H.B.enabled||H.B.start());z&&z("net-send-failed",M);++H.j},q=function(){H.network&&H.network.send(X,v,y)}; u?u.then(function(M){X.requestHeaders["Content-Encoding"]="gzip";X.requestHeaders["Content-Type"]="application/binary";X.body=M;X.U$=2;q()},function(){q()}):q()}}}}; g.S.P4=function(){this.L.isFinal=!0;this.flush();this.L.isFinal=!1}; g.S.isRetryable=function(Q){return 500<=Q&&Q<600||Q===401||Q===0};IK.prototype.send=function(Q,z,H){var f=this,b,L,u,X,v,y,q,M,C,t;return g.B(function(E){switch(E.Z){case 1:return L=(b=f.m1?new AbortController:void 0)?setTimeout(function(){b.abort()},Q.timeoutMillis):void 0,g.$v(E,2,3),u=Object.assign({},{method:Q.requestType, headers:Object.assign({},Q.requestHeaders)},Q.body&&{body:Q.body},Q.withCredentials&&{credentials:"include"},{signal:Q.timeoutMillis&&b?b.signal:null}),g.Y(E,fetch(Q.url,u),5);case 5:X=E.B;if(X.status!==200){(v=H)==null||v(X.status);E.bT(3);break}if((y=z)==null){E.bT(7);break}return g.Y(E,X.text(),8);case 8:y(E.B);case 7:case 3:g.OA(E);clearTimeout(L);g.oJ(E,0);break;case 2:q=g.xv(E);switch((M=q)==null?void 0:M.name){case "AbortError":(C=H)==null||C(408);break;default:(t=H)==null||t(400)}E.bT(3)}})}; IK.prototype.fT=function(){return 4};g.p(AU,g.h);AU.prototype.eO=function(){this.S=!0;return this}; AU.prototype.build=function(){this.network||(this.network=new IK);var Q=new NK({logSource:this.logSource,h3:this.h3?this.h3:heJ,sessionIndex:this.sessionIndex,M3T:this.E4,M3:this.D,t1:!1,eO:this.S,DT:this.DT,network:this.network});g.W(this,Q);if(this.B){var z=this.B,H=xZ(Q.L);nw(H,7,z)}Q.Y=new bQ;this.componentId&&(Q.componentId=this.componentId);this.qY&&(Q.qY=this.qY);this.pageId&&(Q.pageId=this.pageId);this.Z&&((H=this.Z)?(Q.experimentIds||(Q.experimentIds=new LC),z=Q.experimentIds,H=H.dP(),nw(z, 4,H)):Q.experimentIds&&hn(Q.experimentIds,4));this.L&&(Q.De=Q.U);EfA(Q.L);this.network.bx&&this.network.bx(this.logSource);this.network.BPq&&this.network.BPq(Q);return Q};g.p(YZ,g.h);YZ.prototype.flush=function(Q){Q=Q||[];if(Q.length){for(var z=new Xou,H=[],f=0;f-1?(z=Q[u],H||(z.ws=!1)):(z=new Ac_(z,this.src,L,!!f,b),z.ws=H,Q.push(z));return z}; g.S.remove=function(Q,z,H,f){Q=Q.toString();if(!(Q in this.listeners))return!1;var b=this.listeners[Q];z=Wx(b,z,H,f);return z>-1?(cx(b[z]),g.TY(b,z),b.length==0&&(delete this.listeners[Q],this.Z--),!0):!1}; g.S.removeAll=function(Q){Q=Q&&Q.toString();var z=0,H;for(H in this.listeners)if(!Q||H==Q){for(var f=this.listeners[H],b=0;b-1?Q[b]:null}; g.S.hasListener=function(Q,z){var H=Q!==void 0,f=H?Q.toString():"",b=z!==void 0;return g.xs(this.listeners,function(L){for(var u=0;u>>0);g.zY(g.Qe,g.h);g.Qe.prototype[NqJ]=!0;g.S=g.Qe.prototype;g.S.addEventListener=function(Q,z,H,f){g.Km(this,Q,z,H,f)}; g.S.removeEventListener=function(Q,z,H,f){Uok(this,Q,z,H,f)}; g.S.dispatchEvent=function(Q){var z=this.mN;if(z){var H=[];for(var f=1;z;z=z.mN)H.push(z),++f}z=this.YI;f=Q.type||Q;if(typeof Q==="string")Q=new g.Px(Q,z);else if(Q instanceof g.Px)Q.target=Q.target||z;else{var b=Q;Q=new g.Px(f,z);g.aI(Q,b)}b=!0;var L;if(H)for(L=H.length-1;!Q.B&&L>=0;L--){var u=Q.currentTarget=H[L];b=zM(u,f,!0,Q)&&b}Q.B||(u=Q.currentTarget=z,b=zM(u,f,!0,Q)&&b,Q.B||(b=zM(u,f,!1,Q)&&b));if(H)for(L=0;!Q.B&&L0){this.B--;var Q=this.Z;this.Z=Q.next;Q.next=null}else Q=this.L();return Q};var Lg;SL.prototype.add=function(Q,z){var H=K6a.get();H.set(Q,z);this.B?this.B.next=H:this.Z=H;this.B=H}; SL.prototype.remove=function(){var Q=null;this.Z&&(Q=this.Z,this.Z=this.Z.next,this.Z||(this.B=null),Q.next=null);return Q}; var K6a=new H4(function(){return new Xr},function(Q){return Q.reset()}); Xr.prototype.set=function(Q,z){this.Z=Q;this.scope=z;this.next=null}; Xr.prototype.reset=function(){this.next=this.scope=this.Z=null};var v4,ye=!1,W6n=new SL;moJ.prototype.reset=function(){this.context=this.B=this.L=this.Z=null;this.D=!1}; var wqL=new H4(function(){return new moJ},function(Q){Q.reset()}); g.ng.prototype.then=function(Q,z,H){return LTu(this,fg(typeof Q==="function"?Q:null),fg(typeof z==="function"?z:null),H)}; g.ng.prototype.$goog_Thenable=!0;g.S=g.ng.prototype;g.S.finally=function(Q){var z=this;Q=fg(Q);return new Promise(function(H,f){Q$v(z,function(b){Q();H(b)},function(b){Q(); f(b)})})}; g.S.IN=function(Q,z){return LTu(this,null,fg(Q),z)}; g.S.catch=g.ng.prototype.IN;g.S.cancel=function(Q){if(this.Z==0){var z=new Fr(Q);g.qH(function(){zOA(this,z)},this)}}; g.S.OEh=function(Q){this.Z=0;pg(this,2,Q)}; g.S.ZEe=function(Q){this.Z=0;pg(this,3,Q)}; g.S.Mo=function(){for(var Q;Q=H$a(this);)fTn(this,Q,this.Z,this.Y);this.j=!1}; var vgA=gJ;g.zY(Fr,ET);Fr.prototype.name="cancel";g.zY(g.xr,g.Qe);g.S=g.xr.prototype;g.S.enabled=!1;g.S.C5=null;g.S.setInterval=function(Q){this.I6=Q;this.C5&&this.enabled?(this.stop(),this.start()):this.C5&&this.stop()}; g.S.Ish=function(){if(this.enabled){var Q=g.Qs()-this.fO;Q>0&&Q0&&(this.getStatus(),this.j=setTimeout(this.Od.bind(this), this.Ze)),this.getStatus(),this.U=!0,this.Z.send(Q),this.U=!1}catch(u){this.getStatus(),A69(this,u)}}; g.S.Od=function(){typeof eL!="undefined"&&this.Z&&(this.D="Timed out after "+this.Ze+"ms, aborting",this.B=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.S.abort=function(Q){this.Z&&this.L&&(this.getStatus(),this.L=!1,this.S=!0,this.Z.abort(),this.S=!1,this.B=Q||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),TM(this))}; g.S.zv=function(){this.Z&&(this.L&&(this.L=!1,this.S=!0,this.Z.abort(),this.S=!1),TM(this,!0));g.kr.xu.zv.call(this)}; g.S.RH=function(){this.Sm()||(this.L3||this.U||this.S?Yrc(this):this.EsI())}; g.S.EsI=function(){Yrc(this)}; g.S.isActive=function(){return!!this.Z}; g.S.isComplete=function(){return g.ld(this)==4}; g.S.getStatus=function(){try{return g.ld(this)>2?this.Z.status:-1}catch(Q){return-1}}; g.S.getResponseHeader=function(Q){if(this.Z&&this.isComplete())return Q=this.Z.getResponseHeader(Q),Q===null?void 0:Q}; g.S.getLastError=function(){return typeof this.D==="string"?this.D:String(this.D)};fW.prototype.send=function(Q,z,H){z=z===void 0?function(){}:z; H=H===void 0?function(){}:H; Nau(Q.url,function(f){f=f.target;RR(f)?z(g.Q$(f)):H(f.getStatus())},Q.requestType,Q.body,Q.requestHeaders,Q.timeoutMillis,Q.withCredentials)}; fW.prototype.fT=function(){return 1};LW.prototype.done=function(){this.logger.JV(this.event,bu()-this.startTime)}; g.p(uu,ys);g.p(X0,uu);g.S=X0.prototype;g.S.QH=function(){}; g.S.EJ=function(){}; g.S.JV=function(){}; g.S.NO=function(){}; g.S.p9=function(){}; g.S.EA=function(Q,z,H){return H}; g.S.bY=function(){}; g.S.qk=function(){}; g.S.Dp=function(){}; g.S.Bt=function(){}; g.p(vn,uu);g.S=vn.prototype;g.S.update=function(Q){this.logger.dispose();this.logger=Q}; g.S.EJ=function(Q){this.logger.EJ(Q)}; g.S.JV=function(Q,z){this.logger.JV(Q,z)}; g.S.NO=function(Q){this.logger.NO(Q)}; g.S.p9=function(){this.logger.p9()}; g.S.EA=function(Q,z,H){return this.logger.EA(Q,z,H)}; g.S.bY=function(Q){this.logger.bY(Q)}; g.S.qk=function(Q){this.logger.qk(Q)}; g.S.Dp=function(Q){this.logger.Dp(Q)}; g.S.Bt=function(Q){this.logger.Bt(Q)}; g.S.vg=function(Q){this.logger instanceof Ma&&this.logger.vg(Q)}; g.S.QH=function(Q){this.logger.QH(Q)}; g.p(y$,g.h);g.p(qa,uu);g.S=qa.prototype;g.S.vg=function(Q){this.RN=Q}; g.S.QH=function(Q){this.metrics.jJI.Fc(Q,this.hF)}; g.S.EJ=function(Q){this.metrics.eventCount.Z(Q,this.hF)}; g.S.JV=function(Q,z){this.metrics.kp.Fc(z,Q,this.RN,this.hF)}; g.S.NO=function(Q){this.metrics.errorCount.Z(Q,this.RN,this.hF)}; g.S.EA=function(Q,z,H){function f(u){if(!b.Sm()){var X=bu()-L;b.metrics.Sq5.Fc(X,Q,z,u,b.RN,b.hF)}} var b=this,L=bu();H.then(function(){return void f(0)},function(u){return void f(u instanceof NH?u.code:-1)}); return H}; g.S.bY=function(Q){this.metrics.ATI.Z(Q,this.RN,this.hF)}; g.S.qk=function(Q){this.metrics.e4.Z(Q,this.RN,this.hF)}; g.S.Dp=function(Q){this.metrics.f3n.Z(Q,this.RN,this.hF)}; g.p(Ma,qa);Ma.prototype.Bt=function(Q){var z=this;this.Z.dispose();this.B&&this.service.dispose();this.service=this.options.d$("47",this.options.hv.concat(Q));this.Z=new y$(function(){return void z.service.nR()},this.options.LI); this.metrics=Bak(this.service);this.L=Q}; Ma.prototype.p9=function(){azJ(this.Z)};g.p(CW,U$);g.p(tp,U$);g.p(Eo,U$);var mzu=EK(Eo),c6_=function(Q){return Vi(function(z){return z instanceof Q&&!((z.Pz[r7]|0)&2)})}(Eo); Eo.messageId="bfkj";g.p(bR,U$);g.p(pW,U$);var iCc=EK(pW);g.p(gB,g.h);gB.prototype.snapshot=function(Q){if(this.Sm())throw Error("Already disposed");this.logger.EJ("n");var z=this.logger.share();return this.L.then(function(H){var f=H.Fz;return new Promise(function(b){var L=new LW(z,"n");f(function(u){L.done();z.QH(u.length);z.p9();z.dispose();b(u)},[Q.hT, Q.N$,Q.XJ,Q.Wg])})})}; gB.prototype.UB=function(Q){var z=this;if(this.Sm())throw Error("Already disposed");this.logger.EJ("n");var H=SB(this.logger,function(){return z.D([Q.hT,Q.N$,Q.XJ,Q.Wg])},"n"); this.logger.QH(H.length);this.logger.p9();return H}; gB.prototype.VC=function(Q){this.L.then(function(z){var H;(H=z.I6I)==null||H(Q)})}; gB.prototype.Jr=function(){return this.logger.share()};g.p(jB,U$);g.p(F0,U$);xM.prototype.qR=function(Q,z){return w3k(this,Q,z,new X0,0)}; xM.prototype.Na=function(Q){return ef8(this,Q,new X0,0)};g.p(Oo,g.h);Oo.prototype.snapshot=function(Q){var z=this;return g.B(function(H){switch(H.Z){case 1:if(z.Sm())throw Error("Already disposed");if(z.B||z.Y){H.bT(2);break}return g.Y(H,z.S.promise,2);case 2:if(!z.B){H.bT(4);break}return g.Y(H,z.B.snapshot(Q),5);case 5:return H.return(H.B);case 4:throw z.Y;}})}; Oo.prototype.VC=function(Q){var z,H;(z=this.B)==null||(H=z.VC)==null||H.call(z,Q)}; Oo.prototype.handleError=function(Q){if(!this.Sm()){this.Y=Q;this.S.resolve();var z,H;(H=(z=this.options).dim)==null||H.call(z,Q)}}; Oo.prototype.Jr=function(){return this.logger.share()}; var QKL={yNm:432E5,wl:3E5,LF:10,KJ:1E4,lh:3E4,jim:3E4,asI:6E4,Bw:1E3,zR:6E4,qo:6E5,Ly:.25,xp:2,maxAttempts:10};var bss,vZp=(bss=Math.imul)!=null?bss:function(Q,z){return Q*z|0},Ap=[196, 200,224,18];YM.prototype.dP=function(){return String(this.Z)+","+this.B.join()}; YM.prototype.pA=function(Q,z){var H=void 0;if(this.B[this.Z]!==Q){var f=this.B.indexOf(Q);f!==-1?(this.B.splice(f,1),f0;)z[H++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(Q%62),Q=Math.floor(Q/62);return z.join("")}};var jK6;g.p(so,g.h);so.prototype.K9=function(Q,z){var H=this.GN(Q);z==null||z(H);return SB(this.logger,function(){return g.nr(H,2)},this.L)}; jK6=Symbol.dispose;g.p(a6,so);a6.prototype.GN=function(Q,z){var H=this;this.logger.EJ(this.Z);++this.S>=this.j&&this.B.resolve();var f=Q();Q=SB(this.logger,function(){return H.D(f)},"C"); if(Q===void 0)throw new Hu(17,"YNJ:Undefined");if(!(Q instanceof Uint8Array))throw new Hu(18,"ODM:Invalid");z==null||z(Q);return Q}; g.p(Uo,so);Uo.prototype.GN=function(){return this.D}; g.p(cn,so);cn.prototype.GN=function(){var Q=this;return SB(this.logger,function(){return Z3(Q.D)},"d")}; cn.prototype.K9=function(){return this.D}; g.p(hp,so);hp.prototype.GN=function(){if(this.D)return this.D;this.D=FU9(this,function(Q){return"_"+$Kv(Q)}); return FU9(this,function(Q){return Q})}; g.p(DW,so);DW.prototype.GN=function(Q){var z=Q();if(z.length>118)throw new Hu(19,"DFO:Invalid");Q=Math.floor(Date.now()/1E3);var H=[Math.random()*255,Math.random()*255],f=H.concat([this.D&255,this.clientState],[Q>>24&255,Q>>16&255,Q>>8&255,Q&255]);Q=new Uint8Array(2+f.length+z.length);Q[0]=34;Q[1]=f.length+z.length;Q.set(f,2);Q.set(z,2+f.length);z=Q.subarray(2);for(f=H=H.length;f150))try{this.cache=new pxk(Q,this.logger)}catch(z){this.reportError(new Hu(22,"GBJ:init",z))}}; KW.prototype.reportError=function(Q){this.logger.NO(Q.code);this.onError(Q);return Q}; g.p(wB,KW);wB.prototype.z9=function(){return this.D.promise}; wB.prototype.GN=function(Q){return V$(this,Object.assign({},Q),!1)}; wB.prototype.K9=function(Q){return V$(this,Object.assign({},Q),!0)}; var Y0Y=function(Q){return Vi(function(z){if(!LE(z))return!1;for(var H=g.n(Object.entries(Q)),f=H.next();!f.done;f=H.next()){var b=g.n(f.value);f=b.next().value;b=b.next().value;if(!(f in z)){if(b.hrv===!0)continue;return!1}if(!b(z[f]))return!1}return!0})}({Wc:function(Q){return Vi(function(z){return z instanceof Q})}(Oo)},"");g.p(TA,U$);var LB5=EK(TA);Bfv.prototype.getMetadata=function(){return this.metadata};eB.prototype.getMetadata=function(){return this.metadata}; eB.prototype.getStatus=function(){return this.status};lu.prototype.Y=function(Q,z){z=z===void 0?{}:z;return new Bfv(Q,this,z)}; lu.prototype.getName=function(){return this.name};var uxu=new lu("/google.internal.waa.v1.Waa/Create",jB,TA,function(Q){return Q.dP()},LB5);g.p(R6,U$);var TaL=new lu("/google.internal.waa.v1.Waa/GenerateIT",F0,R6,function(Q){return Q.dP()},EK(R6));var vrZ=new Set(["SAPISIDHASH","APISIDHASH"]);g.p(Qf,U$);Qf.prototype.getValue=function(){var Q=co(this,2);if(Array.isArray(Q)||Q instanceof U$)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return kt(this,2)};g.p(zn,U$);zn.prototype.getMessage=function(){return tc(this,2)}; var h49=EK(zn);HQ.prototype.SE=function(Q,z){Q=="data"?this.L.push(z):Q=="metadata"?this.S.push(z):Q=="status"?this.j.push(z):Q=="end"?this.D.push(z):Q=="error"&&this.B.push(z);return this}; HQ.prototype.removeListener=function(Q,z){Q=="data"?SF(this.L,z):Q=="metadata"?SF(this.S,z):Q=="status"?SF(this.j,z):Q=="end"?SF(this.D,z):Q=="error"&&SF(this.B,z);return this}; HQ.prototype.cancel=function(){this.Z.abort()}; HQ.prototype.cancel=HQ.prototype.cancel;HQ.prototype.removeListener=HQ.prototype.removeListener;HQ.prototype.on=HQ.prototype.SE;g.p(aN_,Error);g.zY(g.XA,gsZ);g.XA.prototype.Z=function(){var Q=new vQ(this.D,this.L);this.B&&Q.setCredentialsMode(this.B);return Q}; g.XA.prototype.setCredentialsMode=function(Q){this.B=Q}; g.zY(vQ,g.Qe);g.S=vQ.prototype;g.S.open=function(Q,z){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.Ze=Q;this.U=z;this.readyState=1;yf(this)}; g.S.send=function(Q){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");this.Z=!0;var z={headers:this.N,method:this.Ze,credentials:this.S,cache:void 0};Q&&(z.body=Q);(this.wh||g.iL).fetch(new Request(this.U,z)).then(this.Jhh.bind(this),this.pT.bind(this))}; g.S.abort=function(){this.response=this.responseText="";this.N=new Headers;this.status=0;this.L&&this.L.cancel("Request was aborted.").catch(function(){}); this.readyState>=1&&this.Z&&this.readyState!=4&&(this.Z=!1,q7(this));this.readyState=0}; g.S.Jhh=function(Q){if(this.Z&&(this.D=Q,this.B||(this.status=this.D.status,this.statusText=this.D.statusText,this.B=Q.headers,this.readyState=2,yf(this)),this.Z&&(this.readyState=3,yf(this),this.Z)))if(this.responseType==="arraybuffer")Q.arrayBuffer().then(this.sjq.bind(this),this.pT.bind(this));else if(typeof g.iL.ReadableStream!=="undefined"&&"body"in Q){this.L=Q.body.getReader();if(this.j){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.'); this.response=[]}else this.response=this.responseText="",this.Y=new TextDecoder;WU_(this)}else Q.text().then(this.vvh.bind(this),this.pT.bind(this))}; g.S.leq=function(Q){if(this.Z){if(this.j&&Q.value)this.response.push(Q.value);else if(!this.j){var z=Q.value?Q.value:new Uint8Array(0);if(z=this.Y.decode(z,{stream:!Q.done}))this.response=this.responseText+=z}Q.done?q7(this):yf(this);this.readyState==3&&WU_(this)}}; g.S.vvh=function(Q){this.Z&&(this.response=this.responseText=Q,q7(this))}; g.S.sjq=function(Q){this.Z&&(this.response=Q,q7(this))}; g.S.pT=function(){this.Z&&q7(this)}; g.S.setRequestHeader=function(Q,z){this.N.append(Q,z)}; g.S.getResponseHeader=function(Q){return this.B?this.B.get(Q.toLowerCase())||"":""}; g.S.getAllResponseHeaders=function(){if(!this.B)return"";for(var Q=[],z=this.B.entries(),H=z.next();!H.done;)H=H.value,Q.push(H[0]+": "+H[1]),H=z.next();return Q.join("\r\n")}; g.S.setCredentialsMode=function(Q){this.S=Q}; Object.defineProperty(vQ.prototype,"withCredentials",{get:function(){return this.S==="include"}, set:function(Q){this.setCredentialsMode(Q?"include":"same-origin")}});g.M7.prototype.toString=function(){var Q=[],z=this.S;z&&Q.push(Zy(z,STJ,!0),":");var H=this.Z;if(H||z=="file")Q.push("//"),(z=this.N)&&Q.push(Zy(z,STJ,!0),"@"),Q.push(g.TU(H).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),H=this.L,H!=null&&Q.push(":",String(H));if(H=this.B)this.Z&&H.charAt(0)!="/"&&Q.push("/"),Q.push(Zy(H,H.charAt(0)=="/"?Xus:vOO,!0));(H=this.D.toString())&&Q.push("?",H);(H=this.j)&&Q.push("#",Zy(H,ytx));return Q.join("")}; g.M7.prototype.resolve=function(Q){var z=this.clone(),H=!!Q.S;H?g.C7(z,Q.S):H=!!Q.N;H?z.N=Q.N:H=!!Q.Z;H?g.tk(z,Q.Z):H=Q.L!=null;var f=Q.B;if(H)g.Ea(z,Q.L);else if(H=!!Q.B){if(f.charAt(0)!="/")if(this.Z&&!this.B)f="/"+f;else{var b=z.B.lastIndexOf("/");b!=-1&&(f=z.B.slice(0,b+1)+f)}b=f;if(b==".."||b==".")f="";else if(g.Fx(b,"./")||g.Fx(b,"/.")){f=GY(b,"/");b=b.split("/");for(var L=[],u=0;u1||L.length==1&&L[0]!="")&&L.pop(), f&&u==b.length&&L.push("")):(L.push(X),f=!0)}f=L.join("/")}else f=b}H?z.B=f:H=Q.D.toString()!=="";H?p7(z,Q.D.clone()):H=!!Q.j;H&&(z.j=Q.j);return z}; g.M7.prototype.clone=function(){return new g.M7(this)}; var STJ=/[#\/\?@]/g,vOO=/[#\?:]/g,Xus=/[#\?]/g,KUJ=/[#\?@]/g,ytx=/#/g;g.S=gj.prototype;g.S.add=function(Q,z){jF(this);this.L=null;Q=FA(this,Q);var H=this.Z.get(Q);H||this.Z.set(Q,H=[]);H.push(z);this.B=this.B+1;return this}; g.S.remove=function(Q){jF(this);Q=FA(this,Q);return this.Z.has(Q)?(this.L=null,this.B=this.B-this.Z.get(Q).length,this.Z.delete(Q)):!1}; g.S.clear=function(){this.Z=this.L=null;this.B=0}; g.S.isEmpty=function(){jF(this);return this.B==0}; g.S.forEach=function(Q,z){jF(this);this.Z.forEach(function(H,f){H.forEach(function(b){Q.call(z,b,f,this)},this)},this)}; g.S.Im=function(){jF(this);for(var Q=Array.from(this.Z.values()),z=Array.from(this.Z.keys()),H=[],f=0;f0?String(Q[0]):z}; g.S.toString=function(){if(this.L)return this.L;if(!this.Z)return"";for(var Q=[],z=Array.from(this.Z.keys()),H=0;H>>3;L.L!=1&&L.L!=2&&L.L!=15&&Jk(L,u,X,"unexpected tag");L.Z=1;L.B=0;L.D=0} function H(v){L.D++;L.D==5&&v&240&&Jk(L,u,X,"message length too long");L.B|=(v&127)<<(L.D-1)*7;v&128||(L.Z=2,L.N=0,typeof Uint8Array!=="undefined"?L.S=new Uint8Array(L.B):L.S=Array(L.B),L.B==0&&b())} function f(v){L.S[L.N++]=v;L.N==L.B&&b()} function b(){if(L.L<15){var v={};v[L.L]=L.S;L.Y.push(v)}L.Z=0} for(var L=this,u=Q instanceof Array?Q:new Uint8Array(Q),X=0;X0?Q:null};N7.prototype.isInputValid=function(){return this.Z===null}; N7.prototype.q8=function(){return this.Z}; N7.prototype.QV=function(){return!1}; N7.prototype.parse=function(Q){this.Z!==null&&lNL(this,Q,"stream already broken");var z=null;try{var H=this.L;H.L||e4A(H,Q,"stream already broken");H.Z+=Q;var f=Math.floor(H.Z.length/4);if(f==0)var b=null;else{try{var L=EOa(H.Z.slice(0,f*4))}catch(u){e4A(H,H.Z,u.message)}H.B+=f*4;H.Z=H.Z.slice(f*4);b=L}z=b===null?null:this.D.parse(b)}catch(u){lNL(this,Q,u.message)}this.B+=Q.length;return z};var M5s={INIT:0,wY:1,aE:2,Dk:3,H_:4,eS:5,STRING:6,qL:7,bj:8,ij:9,XA:10,Qo:11,h0:12,Cn:13,d8:14,IL:15,lj:16,S1:17,AI:18,L7:19,Lh:20};g.S=Ak.prototype;g.S.isInputValid=function(){return this.S!=3}; g.S.q8=function(){return this.U}; g.S.done=function(){return this.S===2}; g.S.QV=function(){return!1}; g.S.parse=function(Q){function z(){for(;C0;)if(E=Q[C++], L.N===4?L.N=0:L.N++,!E)break a;if(E==='"'&&!L.Y){L.Z=f();break}if(E==="\\"&&!L.Y&&(L.Y=!0,E=Q[C++],!E))break;if(L.Y)if(L.Y=!1,E==="u"&&(L.N=1),E=Q[C++])continue;else break;X.lastIndex=C;E=X.exec(Q);if(!E){C=Q.length+1;break}C=E.index+1;E=Q[E.index];if(!E)break}L.L+=C-G;continue;case v.ij:if(!E)continue;E==="r"?L.Z=v.XA:Yq(L,Q,C);continue;case v.XA:if(!E)continue;E==="u"?L.Z=v.Qo:Yq(L,Q,C);continue;case v.Qo:if(!E)continue;E==="e"?L.Z=f():Yq(L,Q,C);continue;case v.h0:if(!E)continue;E==="a"?L.Z=v.Cn: Yq(L,Q,C);continue;case v.Cn:if(!E)continue;E==="l"?L.Z=v.d8:Yq(L,Q,C);continue;case v.d8:if(!E)continue;E==="s"?L.Z=v.IL:Yq(L,Q,C);continue;case v.IL:if(!E)continue;E==="e"?L.Z=f():Yq(L,Q,C);continue;case v.lj:if(!E)continue;E==="u"?L.Z=v.S1:Yq(L,Q,C);continue;case v.S1:if(!E)continue;E==="l"?L.Z=v.AI:Yq(L,Q,C);continue;case v.AI:if(!E)continue;E==="l"?L.Z=f():Yq(L,Q,C);continue;case v.L7:E==="."?L.Z=v.Lh:Yq(L,Q,C);continue;case v.Lh:if("0123456789.eE+-".indexOf(E)!==-1)continue;else C--,L.L--,L.Z= f();continue;default:Yq(L,Q,C)}}} function f(){var E=u.pop();return E!=null?E:v.wY} function b(E){L.B>1||(E||(E=M===-1?L.D+Q.substring(q,C):Q.substring(M,C)),L.Ze?L.j.push(E):L.j.push(JSON.parse(E)),M=C)} for(var L=this,u=L.wh,X=L.L3,v=M5s,y=Q.length,q=0,M=-1,C=0;C0?(t=L.j,L.j=[],t):null}return null};rj.prototype.isInputValid=function(){return this.S===null}; rj.prototype.q8=function(){return this.S}; rj.prototype.QV=function(){return!1}; rj.prototype.parse=function(Q){function z(v){L.B=6;L.S="The stream is broken @"+L.Z+"/"+u+". Error: "+v+". With input:\n";throw Error(L.S);} function H(){L.L=new Ak({vf3:!0,CJ:!0})} function f(v){if(v)for(var y=0;y1)&&z("extra status: "+v);L.j=!0;var y={};y[2]=v[0];L.D.push(y)}} for(var L=this,u=0;u0?(Q=L.D,L.D=[],Q):null};sa.prototype.rH=function(){return this.Z}; sa.prototype.getStatus=function(){return this.S}; sa.prototype.Ze=function(Q){Q=Q.target;try{if(Q==this.Z)a:{var z=g.ld(this.Z),H=this.Z.B,f=this.Z.getStatus(),b=g.Q$(this.Z);Q=[];if(g.zA(this.Z)instanceof Array){var L=g.zA(this.Z);L.length>0&&L[0]instanceof Uint8Array&&(this.U=!0,Q=L)}if(!(z<3||z==3&&!b&&Q.length==0))if(f=f==200||f==206,z==4&&(H==8?BQ(this,7):H==7?BQ(this,8):f||BQ(this,3)),this.B||(this.B=R4k(this.Z),this.B==null&&BQ(this,5)),this.S>2)il(this);else{if(Q.length>this.L){var u=Q.length;H=[];try{if(this.B.QV())for(var X=0;Xthis.L){X=b.slice(this.L);this.L=b.length;try{var y=this.B.parse(X);y!=null&&this.D&&this.D(y)}catch(q){BQ(this,5);il(this);break a}}z==4?(b.length!= 0||this.U?BQ(this,2):BQ(this,4),il(this)):BQ(this,1)}}}catch(q){BQ(this,6),il(this)}};g.S=QRp.prototype;g.S.SE=function(Q,z){var H=this.B[Q];H||(H=[],this.B[Q]=H);H.push(z);return this}; g.S.addListener=function(Q,z){this.SE(Q,z);return this}; g.S.removeListener=function(Q,z){var H=this.B[Q];H&&g.e5(H,z);(Q=this.Z[Q])&&g.e5(Q,z);return this}; g.S.once=function(Q,z){var H=this.Z[Q];H||(H=[],this.Z[Q]=H);H.push(z);return this}; g.S.sqm=function(Q){var z=this.B.data;z&&zUa(Q,z);(z=this.Z.data)&&zUa(Q,z);this.Z.data=[]}; g.S.G1q=function(){switch(this.L.getStatus()){case 1:hk(this,"readable");break;case 5:case 6:case 4:case 7:case 3:hk(this,"error");break;case 8:hk(this,"close");break;case 2:hk(this,"end")}};Hg_.prototype.serverStreaming=function(Q,z,H,f){var b=this,L=Q.substring(0,Q.length-f.name.length);return fl9(function(u){var X=u.Bj,v=u.getMetadata(),y=ur9(b,!1);v=SEA(b,v,y,L+X.getName());var q=X4_(y,X.B,!0);u=X.Z(u.HD);y.send(v,"POST",u);return q},this.D).call(this,f.Y(z,H))};yj9.prototype.create=function(Q,z){return k2A(this.Z,this.B+"/$rpc/google.internal.waa.v1.Waa/Create",Q,z||{},uxu)};var CRt=1,kq=new WeakMap;g.p(WQ,g.h);WQ.prototype.signal=function(){var Q=new K7(!1);this.signals.add(Q);g.W(this,Q);return Q}; WQ.prototype.rk=function(Q){return Dy(this,Q).rk()}; g.p(K7,g.h);g.S=K7.prototype;g.S.Jy=function(){var Q=this,z=CRt++;Vf(function(){qEL(Q,z)}); return z}; g.S.detach=function(Q){var z=this;Vf(function(){var H=z.slots.get(Q);H&&H.rO()})}; g.S.value=function(Q){return this.promise(!0,Q)}; g.S.rk=function(){return this.lm}; g.S.next=function(Q){return this.promise(!1,Q)}; g.S.promise=function(Q,z){var H=this,f=RoZ();Vf(function(){if(H.Sm())f.reject(new Fr("Signal initially disposed"));else if(z&&z.Sm())f.reject(new Fr("Owner initially disposed"));else if(Q&&H.j7&&H.jb)f.resolve(H.lm);else if(H.H2.add(f),g.jL(f.promise,function(){H.H2.delete(f)}),z){var b=function(){f.reject(new Fr("Owner asynchronously disposed"))}; g.jL(f.promise,function(){var L=kq.get(z);L&&g.e5(L,b)}); tLL(z,b)}}); return f.promise}; g.S.zv=function(){var Q=this;g.h.prototype.zv.call(this);Vf(function(){for(var z=g.n(Q.slots.values()),H=z.next();!H.done;H=z.next())H=H.value.rO,H();Q.slots.clear();z=g.n(Q.H2);for(H=z.next();!H.done;H=z.next())H.value.reject(new Fr("Signal asynchronously disposed"));Q.H2.clear()})}; var mG=[],wj=!1;g.p(Tn,g.h);Tn.prototype.start=function(){var Q=this;if(this.Sm())throw new ll("Cannot start a disposed timer.");if(!this.j){this.D=0;if(this.Y){var z=Date.now();this.handle=setInterval(function(){Q.D=Q.milliseconds>0?Math.trunc((Date.now()-z)/Q.milliseconds):Q.D+1;var H;(H=Q.B)==null||H.resolve();Q.B=void 0;if(Q.L){var f;(f=Q.Z)!=null&&dj(Dy(f,Q.L),Q)}Q.zL.DX(Q)},this.milliseconds)}else this.handle=setTimeout(function(){Q.state=3; Q.handle=void 0;Q.D=1;var H;(H=Q.B)==null||H.resolve();Q.B=void 0;if(Q.L){var f;(f=Q.Z)!=null&&dj(Dy(f,Q.L),Q)}Q.zL.DX(Q)},this.milliseconds); this.state=1}}; Tn.prototype.cancel=function(){if(this.j){this.clear();this.state=2;var Q;(Q=this.B)==null||Q.reject(new eF);var z;(z=this.zL.AR)==null||z.call(this);if(this.S){var H;(H=this.Z)!=null&&dj(Dy(H,this.S))}}}; Tn.prototype.zv=function(){this.clear();var Q;(Q=this.B)==null||Q.reject(new ll);this.state=4;g.h.prototype.zv.call(this)}; Tn.prototype.clear=function(){this.Y?clearInterval(this.handle):clearTimeout(this.handle);this.handle=void 0}; g.Xa.Object.defineProperties(Tn.prototype,{j:{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.D}}, N:{configurable:!0,enumerable:!0,get:function(){switch(this.state){case 0:case 1:return this.B!=null||(this.B=new g.nW),this.B.promise;case 3:return Promise.resolve();case 2:return Promise.reject(new eF("Timer has been cancelled."));case 4:return Promise.reject(new ll("Timer has been disposed."));default:b5(this.state)}}}, DX:{configurable:!0,enumerable:!0,get:function(){if(this.Sm())throw new ll("Cannot attach a signal to a disposed timer.");this.L||(this.Z!=null||(this.Z=new WQ(this)),this.L=this.Z.signal());return this.L}}, AR:{configurable:!0,enumerable:!0,get:function(){if(this.Sm())throw new ll("Cannot attach a signal to a disposed timer.");this.S||(this.Z!=null||(this.Z=new WQ(this)),this.S=this.Z.signal());return this.S}}}); g.p(eF,ET);g.p(ll,ET);g.p(R2,KW);g.S=R2.prototype;g.S.isReady=function(){return!!this.Z}; g.S.ready=function(){var Q=this;return g.B(function(z){return g.Y(z,Q.L.promise,0)})}; g.S.qR=function(Q){return nrJ(this,this.logger.EA("c",Q===void 0?1:Q,this.Gi.qR(GA().Z,null)),new Hu(10,"JVZ:Timeout"))}; g.S.prefetch=function(){this.state===1&&(this.ZG=this.qR())}; g.S.start=function(){if(this.state===1){this.state=2;var Q=new LW(this.logger,"r");this.ready().finally(function(){return void Q.done()}); Zgp(this)}}; g.S.GN=function(Q){GMn(this,Q);return V$(this,p48(Q),!1)}; g.S.K9=function(Q){GMn(this,Q);return V$(this,p48(Q),!0)};var xHp={NONE:0,lCm:1},bW_={JG:0,V8q:1,Aj5:2,m05:3},as={D9:"a",b43:"d",VIDEO:"v"};z9.prototype.isVisible=function(){return this.aQ?this.vc>=.3:this.vc>=.5};var qT={oFI:0,h$q:1},HWn={NONE:0,mD$:1,t6j:2};HI.prototype.getValue=function(){return this.B}; g.p(fl,HI);fl.prototype.L=function(Q){this.B===null&&g.II(this.D,Q)&&(this.B=Q)}; g.p(bV,HI);bV.prototype.L=function(Q){this.B===null&&typeof Q==="number"&&(this.B=Q)}; g.p(Ll,HI);Ll.prototype.L=function(Q){this.B===null&&typeof Q==="string"&&(this.B=Q)};uV.prototype.disable=function(){this.B=!1}; uV.prototype.enable=function(){this.B=!0}; uV.prototype.isEnabled=function(){return this.B}; uV.prototype.reset=function(){this.Z={};this.B=!0;this.L={}};var si=document,En=window;var uAn=!g.EF&&!iR();MT.prototype.now=function(){return 0}; MT.prototype.B=function(){return 0}; MT.prototype.L=function(){return 0}; MT.prototype.Z=function(){return 0};g.p(t5,MT);t5.prototype.now=function(){return Cl()&&En.performance.now?En.performance.now():MT.prototype.now.call(this)}; t5.prototype.B=function(){return Cl()&&En.performance.memory?En.performance.memory.totalJSHeapSize||0:MT.prototype.B.call(this)}; t5.prototype.L=function(){return Cl()&&En.performance.memory?En.performance.memory.usedJSHeapSize||0:MT.prototype.L.call(this)}; t5.prototype.Z=function(){return Cl()&&En.performance.memory?En.performance.memory.jsHeapSizeLimit||0:MT.prototype.Z.call(this)};var Jjv=tj(function(){var Q=!1;try{var z=Object.defineProperty({},"passive",{get:function(){Q=!0}}); g.iL.addEventListener("test",null,z)}catch(H){}return Q});Nev.prototype.isVisible=function(){return gA(si)===1};var Ajp={CH$:"allow-forms",dOl:"allow-modals",uI$:"allow-orientation-lock",I3h:"allow-pointer-lock",N7q:"allow-popups",FSv:"allow-popups-to-escape-sandbox",t3j:"allow-presentation",Rim:"allow-same-origin",WSj:"allow-scripts",T7v:"allow-top-navigation",UOh:"allow-top-navigation-by-user-activation"},BeZ=tj(function(){return YE9()});var cjL=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");FY.prototype.mM=function(Q,z,H){Q=Q+"//"+z+H;var f=DHn(this)-H.length;if(f<0)return"";this.Z.sort(function(y,q){return y-q}); H=null;z="";for(var b=0;b=v.length){f-=v.length;Q+=v;z=this.L;break}H=H==null?L:H}}f="";H!=null&&(f=""+z+"trn="+H);return Q+f};Y3.prototype.setInterval=function(Q,z){return En.setInterval(Q,z)}; Y3.prototype.clearInterval=function(Q){En.clearInterval(Q)}; Y3.prototype.setTimeout=function(Q,z){return En.setTimeout(Q,z)}; Y3.prototype.clearTimeout=function(Q){En.clearTimeout(Q)};g.p(sn,U$);sn.prototype.Z=L8v([0,YAL,BcL,-2,UkJ]);var fWp={x0j:1,VU:2,A8m:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};Lvp.prototype.dI=function(Q){if(typeof Q==="string"&&Q.length!=0){var z=this.K5;if(z.B){Q=Q.split("&");for(var H=Q.length-1;H>=0;H--){var f=Q[H].split("="),b=decodeURIComponent(f[0]);f.length>1?(f=decodeURIComponent(f[1]),f=/^[0-9]+$/g.exec(f)?parseInt(f,10):f):f=1;(b=z.Z[b])&&b.L(f)}}}};var uy=null;var iV=g.iL.performance,t5s=!!(iV&&iV.mark&&iV.measure&&iV.clearMarks),Un=tj(function(){var Q;if(Q=t5s){var z=z===void 0?window:z;if(uy===null){uy="";try{Q="";try{Q=z.top.location.hash}catch(f){Q=z.location.hash}if(Q){var H=Q.match(/\bdeid=([\d,]+)/);uy=H?H[1]:""}}catch(f){}}z=uy;Q=!!z.indexOf&&z.indexOf("1337")>=0}return Q}); cI.prototype.disable=function(){this.Z=!1;this.events!==this.B.google_js_reporting_queue&&(Un()&&g.qI(this.events,qov),this.events.length=0)}; cI.prototype.start=function(Q,z){if(!this.Z)return null;var H=vMZ()||XnJ();Q=new ypu(Q,z,H);z="goog_"+Q.label+"_"+Q.uniqueId+"_start";iV&&Un()&&iV.mark(z);return Q}; cI.prototype.end=function(Q){if(this.Z&&typeof Q.value==="number"){var z=vMZ()||XnJ();Q.duration=z-Q.value;z="goog_"+Q.label+"_"+Q.uniqueId+"_end";iV&&Un()&&iV.mark(z);!this.Z||this.events.length>2048||this.events.push(Q)}};MBA.prototype.ZN=function(Q,z,H,f,b){b=b||this.k0;try{var L=new FY;L.Z.push(1);L.B[1]=x3("context",Q);z.error&&z.meta&&z.id||(z=new Kl(Vy(z)));if(z.msg){var u=z.msg.substring(0,512);L.Z.push(2);L.B[2]=x3("msg",u)}var X=z.meta||{};if(this.nh)try{this.nh(X)}catch(t){}if(f)try{f(X)}catch(t){}f=[X];L.Z.push(3);L.B[3]=f;var v=hUk();if(v.B){var y=v.B.url||"";L.Z.push(4);L.B[4]=x3("top",y)}var q={url:v.Z.url||""};if(v.Z.url){var M=v.Z.url.match(aR);var C=re(M[1],null,M[3],M[4])}else C="";y=[q,{url:C}];L.Z.push(5); L.B[5]=y;u0n(this.Z,b,L,H)}catch(t){try{u0n(this.Z,b,{context:"ecmserr",rctx:Q,msg:Vy(t),url:v&&v.Z.url},H)}catch(E){}}return this.FC}; g.p(Kl,SoZ);var WI,Dk,h5=new cI;WI=new function(){var Q="https:";En&&En.location&&En.location.protocol==="http:"&&(Q="http:");this.B=Q;this.Z=.01}; Dk=new MBA;En&&En.document&&(En.document.readyState=="complete"?tBc():h5.Z&&nl(En,"load",function(){tBc()}));var nMA=Date.now(),lV=-1,T9=-1,BjY,Rs=-1,et=!1;g.S=QY.prototype;g.S.getHeight=function(){return this.bottom-this.top}; g.S.clone=function(){return new QY(this.top,this.right,this.bottom,this.left)}; g.S.contains=function(Q){return this&&Q?Q instanceof QY?Q.left>=this.left&&Q.right<=this.right&&Q.top>=this.top&&Q.bottom<=this.bottom:Q.x>=this.left&&Q.x<=this.right&&Q.y>=this.top&&Q.y<=this.bottom:!1}; g.S.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.S.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.S.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.S.scale=function(Q,z){z=typeof z==="number"?z:Q;this.left*=Q;this.right*=Q;this.top*=z;this.bottom*=z;return this};bW.prototype.jH=function(Q,z){return!!Q&&(!(z===void 0?0:z)||this.volume==Q.volume)&&this.L==Q.L&&Hr(this.Z,Q.Z)&&!0};Lh.prototype.ai=function(){return this.Y}; Lh.prototype.jH=function(Q,z){return this.D.jH(Q.D,z===void 0?!1:z)&&this.Y==Q.Y&&Hr(this.L,Q.L)&&Hr(this.j,Q.j)&&this.Z==Q.Z&&this.S==Q.S&&this.B==Q.B&&this.N==Q.N};var EOx={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},JP={Gm:"start",hG:"firstquartile",zm:"midpoint",K7:"thirdquartile",COMPLETE:"complete",ERROR:"error",xI:"metric",PAUSE:"pause",kI:"resume",Mv:"skip",As:"viewable_impression",qv:"mute",SR:"unmute",CM:"fullscreen",Xq:"exitfullscreen",VM:"bufferstart",AG:"bufferfinish",d9:"fully_viewable_audible_half_duration_impression",P8:"measurable_impression",ag:"abandon",pM:"engagedview",tG:"impression",Ym:"creativeview",wJ:"loaded", Lc3:"progress",CLOSE:"close",WWh:"collapse",t0q:"overlay_resize",Roq:"overlay_unmeasurable_impression",Wee:"overlay_unviewable_impression",UKT:"overlay_viewable_immediate_impression",TNj:"overlay_viewable_end_of_session_impression",sK:"custom_metric_viewable",yM:"audio_audible",KM:"audio_measurable",Gu:"audio_impression"},dTL="start firstquartile midpoint thirdquartile resume loaded".split(" "),mTJ=["start","firstquartile","midpoint","thirdquartile"],ay_=["abandon"],wd={UNKNOWN:-1,Gm:0,hG:1,zm:2, K7:3,COMPLETE:4,xI:5,PAUSE:6,kI:7,Mv:8,As:9,qv:10,SR:11,CM:12,Xq:13,d9:14,P8:15,ag:16,pM:17,tG:18,Ym:19,wJ:20,sK:21,VM:22,AG:23,Gu:27,KM:28,yM:29};var ZWZ={s6v:"addEventListener",WBl:"getMaxSize",Tth:"getScreenSize",UGj:"getState",gFe:"getVersion",jm$:"removeEventListener",Wan:"isViewable"};g.S=g.S$.prototype;g.S.clone=function(){return new g.S$(this.left,this.top,this.width,this.height)}; g.S.contains=function(Q){return Q instanceof g.t6?Q.x>=this.left&&Q.x<=this.left+this.width&&Q.y>=this.top&&Q.y<=this.top+this.height:this.left<=Q.left&&this.left+this.width>=Q.left+Q.width&&this.top<=Q.top&&this.top+this.height>=Q.top+Q.height}; g.S.getSize=function(){return new g.pC(this.width,this.height)}; g.S.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.S.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.S.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.S.scale=function(Q,z){z=typeof z==="number"?z:Q;this.left*=Q;this.width*=Q;this.top*=z;this.height*=z;return this};var FvL={};rpn.prototype.update=function(Q){Q&&Q.document&&(this.Y=uW(!1,Q,this.isMobileDevice),this.Z=uW(!0,Q,this.isMobileDevice),BBn(this,Q),s6v(this,Q))};Pr.prototype.cancel=function(){rA().clearTimeout(this.Z);this.Z=null}; Pr.prototype.schedule=function(){var Q=this,z=rA(),H=PI().Z.Z;this.Z=z.setTimeout(BI(H,mo(143,function(){Q.B++;Q.L.sample()})),gML())};g.S=a3.prototype;g.S.lN=function(){return!1}; g.S.initialize=function(){return this.isInitialized=!0}; g.S.PC=function(){return this.Z.yl}; g.S.TE=function(){return this.Z.Ze}; g.S.d7=function(Q,z){if(!this.Ze||(z===void 0?0:z))this.Ze=!0,this.yl=Q,this.N=0,this.Z!=this||cr(this)}; g.S.getName=function(){return this.Z.mq}; g.S.tv=function(){return this.Z.Xi()}; g.S.Xi=function(){return{}}; g.S.rX=function(){return this.Z.N}; g.S.pL=function(){var Q=rW();Q.Z=uW(!0,this.L,Q.isMobileDevice)}; g.S.ib=function(){s6v(rW(),this.L)}; g.S.oO=function(){return this.D.Z}; g.S.sample=function(){}; g.S.isActive=function(){return this.Z.j}; g.S.KK=function(Q){var z=this.Z;this.Z=Q.rX()>=this.N?Q:this;z!==this.Z?(this.j=this.Z.j,cr(this)):this.j!==this.Z.j&&(this.j=this.Z.j,cr(this))}; g.S.Zv=function(Q){if(Q.B===this.Z){var z=!this.D.jH(Q,this.U);this.D=Q;z&&Uaa(this)}}; g.S.OU=function(){return this.U}; g.S.dispose=function(){this.De=!0}; g.S.Sm=function(){return this.De};g.S=iW.prototype;g.S.observe=function(){return!0}; g.S.unobserve=function(){}; g.S.mI=function(Q){this.S=Q}; g.S.dispose=function(){if(!this.Sm()){var Q=this.B;g.e5(Q.S,this);Q.U&&this.OU()&&aWc(Q);this.unobserve();this.L3=!0}}; g.S.Sm=function(){return this.L3}; g.S.tv=function(){return this.B.tv()}; g.S.rX=function(){return this.B.rX()}; g.S.PC=function(){return this.B.PC()}; g.S.TE=function(){return this.B.TE()}; g.S.KK=function(){}; g.S.Zv=function(){this.Av()}; g.S.OU=function(){return this.De};g.S=hx.prototype;g.S.rX=function(){return this.Z.rX()}; g.S.PC=function(){return this.Z.PC()}; g.S.TE=function(){return this.Z.TE()}; g.S.create=function(Q,z,H){var f=null;this.Z&&(f=this.c$(Q,z,H),Ui(this.Z,f));return f}; g.S.XZ=function(){return this.SS()}; g.S.SS=function(){return!1}; g.S.init=function(Q){return this.Z.initialize()?(Ui(this.Z,this),this.D=Q,!0):!1}; g.S.KK=function(Q){Q.rX()==0&&this.D(Q.PC(),this)}; g.S.Zv=function(){}; g.S.OU=function(){return!1}; g.S.dispose=function(){this.S=!0}; g.S.Sm=function(){return this.S}; g.S.tv=function(){return{}};Wr.prototype.add=function(Q,z,H){++this.L;Q=new iWZ(Q,z,H);this.Z.push(new iWZ(Q.B,Q.Z,Q.L+this.L/4096));this.B=!0;return this};VB9.prototype.toString=function(){var Q="//pagead2.googlesyndication.com//pagead/gen_204",z=Kh(this.Z);z.length>0&&(Q+="?"+z);return Q};VY.prototype.update=function(Q,z,H){Q&&(this.Z+=z,this.B+=z,this.D+=z,this.L=Math.max(this.L,this.D));if(H===void 0?!Q:H)this.D=0};var TBL=[1,.75,.5,.3,0];dW.prototype.update=function(Q,z,H,f,b,L){L=L===void 0?!0:L;z=b?Math.min(Q,z):z;for(b=0;b0&&z>=u;u=!(Q>0&&Q>=u)||H;this.Z[b].update(L&&X,f,!L||u)}};lW.prototype.update=function(Q,z,H,f){this.Y=this.Y!=-1?Math.min(this.Y,z.vc):z.vc;this.wh=Math.max(this.wh,z.vc);this.L3=this.L3!=-1?Math.min(this.L3,z.FW):z.FW;this.yl=Math.max(this.yl,z.FW);this.rT.update(z.FW,H.FW,z.Z,Q,f);this.jm+=Q;z.vc===0&&(this.mq+=Q);this.B.update(z.vc,H.vc,z.Z,Q,f);H=f||H.aQ!=z.aQ?H.isVisible()&&z.isVisible():H.isVisible();z=!z.isVisible()||z.Z;this.iT.update(H,Q,z)}; lW.prototype.BQ=function(){return this.iT.L>=this.WI};if(si&&si.URL){var pus=si.URL,nOm;if(nOm=!!pus){var gOu;a:{if(pus){var ZsJ=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var SR=ZsJ.exec(decodeURIComponent(pus));if(SR){gOu=SR[1]&&SR[1].length>1?SR[1].substring(1):"true";break a}}catch(Q){}}gOu=""}nOm=gOu.length>0}Dk.FC=!nOm};var GYL=new QY(0,0,0,0);var b7k=new QY(0,0,0,0);g.p(f8,g.h);g.S=f8.prototype; g.S.zv=function(){if(this.qG.Z){if(this.nW.b_){var Q=this.qG.Z;Q.removeEventListener&&Q.removeEventListener("mouseover",this.nW.b_,pl());this.nW.b_=null}this.nW.DN&&(Q=this.qG.Z,Q.removeEventListener&&Q.removeEventListener("mouseout",this.nW.DN,pl()),this.nW.DN=null)}this.s6&&this.s6.dispose();this.pp&&this.pp.dispose();delete this.fI;delete this.wG;delete this.Eg;delete this.qG.S5;delete this.qG.Z;delete this.nW;delete this.s6;delete this.pp;delete this.K5;g.h.prototype.zv.call(this)}; g.S.Wr=function(){return this.pp?this.pp.Z:this.position}; g.S.dI=function(Q){PI().dI(Q)}; g.S.OU=function(){return!1}; g.S.MN=function(){return new lW}; g.S.Gw=function(){return this.fI}; g.S.dO=function(Q){return XQL(this,Q,1E4)}; g.S.Jh=function(Q,z,H,f,b,L,u){this.Bn||(this.oR&&(Q=this.FX(Q,H,b,u),f=f&&this.xn.vc>=(this.aQ()?.3:.5),this.A0(L,Q,f),this.sJ=z,Q.vc>0&&-1===this.Pb&&(this.Pb=z),this.kY==-1&&this.BQ()&&(this.kY=z),this.ek==-2&&(this.ek=zN(this.Wr())?Q.vc:-1),this.xn=Q),this.wG(this))}; g.S.A0=function(Q,z,H){this.Gw().update(Q,z,this.xn,H)}; g.S.Qn=function(){return new z9}; g.S.FX=function(Q,z,H,f){H=this.Qn();H.Z=z;z=rA().B;z=gA(si)===0?-1:z.isVisible()?0:1;H.B=z;H.vc=this.yp(Q);H.aQ=this.aQ();H.FW=f;return H}; g.S.yp=function(Q){return this.opacity===0&&vI(this.K5,"opac")===1?0:Q}; g.S.aQ=function(){return!1}; g.S.iE=function(){return this.xzh||this.qYq}; g.S.u5=function(){k3()}; g.S.D1=function(){k3()}; g.S.kf=function(){return 0}; g.S.BQ=function(){return this.fI.BQ()}; g.S.Ot=function(){var Q=this.oR;Q=(this.hasCompleted||this.Sm())&&!Q;var z=PI().B!==2||this.UPI;return this.Bn||z&&Q?2:this.BQ()?4:3}; g.S.WV=function(){return 0};g.L8.prototype.next=function(){return g.XQ}; g.XQ={done:!0,value:void 0};g.L8.prototype.xM=function(){return this};g.p(tFL,z9);var vl=pQ9([void 0,1,2,3,4,8,16]),yE=pQ9([void 0,4,8,16]),$su={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:vk("p0",yE),p1:vk("p1",yE),p2:vk("p2",yE),p3:vk("p3",yE),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:Xq("mtos1",[0,2,4],!1,yE),mtos2:Xq("mtos2",[0,2,4],!1,yE),mtos3:Xq("mtos3",[0,2,4],!1,yE),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:vk("a0",yE),a1:vk("a1",yE),a2:vk("a2",yE),a3:vk("a3",yE),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:vk("c0",yE),c1:vk("c1",yE),c2:vk("c2",yE),c3:vk("c3",yE),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:vk("qmtos",vl),qnc:vk("qnc",vl),qmv:vk("qmv",vl),qnv:vk("qnv",vl), 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:vk("ss0",yE),ss1:vk("ss1",yE),ss2:vk("ss2",yE),ss3:vk("ss3",yE),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"},juB=Object.assign({},$su,{avid:MH("audio"),avas:"avas",vs:"vs"}),FB5={atos:"atos",avt:Xq("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(Q,z){return function(H){return H[Q]===void 0&&z!==void 0?z:H[Q]}}("ss",0), t:"t"};C8.prototype.getValue=function(){return this.B}; C8.prototype.update=function(Q,z){Q>=32||(this.Z&1<=.5;o3(z.volume)&&(this.D=this.D!=-1?Math.min(this.D,z.volume):z.volume,this.j=Math.max(this.j,z.volume));L&&(this.De+=Q,this.U+=b?Q:0);this.Z.update(z.vc,H.vc,z.Z,Q,f,b);this.L.update(!0,Q);this.S.update(b,Q);this.Ze.update(H.fullscreen,Q);this.gh.update(b&&!L,Q);Q=Math.floor(z.mediaTime/1E3);this.f3.update(Q,z.isVisible());this.C3.update(Q,z.vc>=1);this.uT.update(Q, S0(z))}};j2_.prototype.B=function(Q){this.L||(this.Z(Q)?(Q=ssJ(this.U,this.D,Q),this.S|=Q,Q=Q==0):Q=!1,this.L=Q)};g.p(p8,j2_);p8.prototype.Z=function(){return!0}; p8.prototype.j=function(){return!1}; p8.prototype.getId=function(){var Q=this,z=A6(JP,function(H){return H==Q.D}); return wd[z].toString()}; p8.prototype.toString=function(){var Q="";this.j()&&(Q+="c");this.L&&(Q+="s");this.S>0&&(Q+=":"+this.S);return this.getId()+Q};g.p(n8,p8);n8.prototype.B=function(Q,z){z=z===void 0?null:z;z!=null&&this.Y.push(z);p8.prototype.B.call(this,Q)};g.p(gd,FGL);gd.prototype.B=function(){return null}; gd.prototype.L=function(){return[]};g.p(ZP,iW);g.S=ZP.prototype;g.S.WL=function(){if(this.element){var Q=this.element,z=this.B.Z.L;try{try{var H=IW6(Q.getBoundingClientRect())}catch(y){H=new QY(0,0,0,0)}var f=H.right-H.left,b=H.bottom-H.top,L=oMa(Q,z),u=L.x,X=L.y;var v=new QY(Math.round(X),Math.round(u+f),Math.round(X+b),Math.round(u))}catch(y){v=GYL.clone()}this.L=v;this.Z=cpn(this,this.L)}}; g.S.lX=function(){this.j=this.B.D.Z}; g.S.wm=function(Q){var z=vI(this.K5,"od")==1;return fyY(Q,this.j,this.element,z)}; g.S.S7=function(){this.timestamp=k3()}; g.S.Av=function(){this.S7();this.WL();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var Q=this.element;var z=new g.pC(Q.videoWidth,Q.videoHeight);Q=this.Z;var H=zJ(Q),f=Q.getHeight(),b=z.width;z=z.height;b<=0||z<=0||H<=0||f<=0||(b/=z,z=H/f,Q=Q.clone(),b>z?(H/=b,f=(f-H)/2,f>0&&(f=Q.top+f,Q.top=Math.round(f),Q.bottom=Math.round(f+H))):(f*=b,H=Math.round((H-f)/2),H>0&&(H=Q.left+H,Q.left=Math.round(H),Q.right=Math.round(H+f))));this.Z=Q}this.lX(); Q=this.Z;H=this.j;Q=Q.left<=H.right&&H.left<=Q.right&&Q.top<=H.bottom&&H.top<=Q.bottom?new QY(Math.max(Q.top,H.top),Math.min(Q.right,H.right),Math.min(Q.bottom,H.bottom),Math.max(Q.left,H.left)):new QY(0,0,0,0);H=Q.top>=Q.bottom||Q.left>=Q.right?new QY(0,0,0,0):Q;Q=this.B.D;z=b=f=0;if((this.Z.bottom-this.Z.top)*(this.Z.right-this.Z.left)>0)if(this.wm(H))H=new QY(0,0,0,0);else{f=rW().D;z=new QY(0,f.height,f.width,0);var L;f=Hk(H,(L=this.S)!=null?L:this.Z);b=Hk(H,rW().Z);z=Hk(H,z)}L=H.top>=H.bottom|| H.left>=H.right?new QY(0,0,0,0):fh(H,-this.Z.left,-this.Z.top);Br()||(b=f=0);this.U=new Lh(Q,this.element,this.Z,L,f,b,this.timestamp,z)}; g.S.getName=function(){return this.B.getName()};var xsx=new QY(0,0,0,0);g.p(GN,ZP);g.S=GN.prototype;g.S.observe=function(){this.D();return!0}; g.S.Zv=function(){ZP.prototype.Av.call(this)}; g.S.S7=function(){}; g.S.WL=function(){}; g.S.Av=function(){this.D();ZP.prototype.Av.call(this)}; g.S.KK=function(Q){Q=Q.isActive();Q!==this.N&&(Q?this.D():(rW().Z=new QY(0,0,0,0),this.Z=new QY(0,0,0,0),this.j=new QY(0,0,0,0),this.timestamp=-1));this.N=Q};var qi={},s2A=(qi.firstquartile=0,qi.midpoint=1,qi.thirdquartile=2,qi.complete=3,qi);g.p(j0,f8);g.S=j0.prototype;g.S.OU=function(){return!0}; g.S.o4=function(){return this.YF==2}; g.S.dO=function(Q){return XQL(this,Q,Math.max(1E4,this.L/3))}; g.S.Jh=function(Q,z,H,f,b,L,u){var X=this,v=this.Y(this)||{};g.aI(v,b);this.L=v.duration||this.L;this.U=v.isVpaid||this.U;this.mq=v.isYouTube||this.mq;rA();this.rT=!1;b=O76(this,z);x7n(this)===1&&(L=b);f8.prototype.Jh.call(this,Q,z,H,f,v,L,u);this.Mt&&this.Mt.L&&g.qI(this.j,function(y){y.B(X)})}; g.S.A0=function(Q,z,H){f8.prototype.A0.call(this,Q,z,H);O6(this).update(Q,z,this.xn,H);this.WI=S0(this.xn)&&S0(z);this.yl==-1&&this.C3&&(this.yl=this.Gw().L.Z);this.N8.L=0;Q=this.BQ();z.isVisible()&&M3(this.N8,"vs");Q&&M3(this.N8,"vw");o3(z.volume)&&M3(this.N8,"am");S0(z)?M3(this.N8,"a"):M3(this.N8,"mut");this.Ew&&M3(this.N8,"f");z.B!=-1&&(M3(this.N8,"bm"),z.B==1&&(M3(this.N8,"b"),S0(z)&&M3(this.N8,"umutb")));S0(z)&&z.isVisible()&&M3(this.N8,"avs");this.WI&&Q&&M3(this.N8,"avw");z.vc>0&&M3(this.N8, "pv");oL(this,this.Gw().L.Z,!0)&&M3(this.N8,"gdr");TJ(this.Gw().B,1)>=2E3&&M3(this.N8,"pmx");this.rT&&M3(this.N8,"tvoff")}; g.S.MN=function(){return new tP}; g.S.Gw=function(){return this.fI}; g.S.Qn=function(){return new tFL}; g.S.FX=function(Q,z,H,f){Q=f8.prototype.FX.call(this,Q,z,H,f===void 0?-1:f);Q.fullscreen=this.Ew;Q.paused=this.o4();Q.volume=H.volume;o3(Q.volume)||(this.ZJ++,z=this.xn,o3(z.volume)&&(Q.volume=z.volume));H=H.currentTime;Q.mediaTime=H!==void 0&&H>=0?H:-1;return Q}; g.S.yp=function(Q){return rW(),this.Ew?1:f8.prototype.yp.call(this,Q)}; g.S.kf=function(){return 1}; g.S.getDuration=function(){return this.L}; g.S.Ot=function(){return this.Bn?2:JkJ(this)?5:this.BQ()?4:3}; g.S.WV=function(){return this.gh?this.Gw().S.L>=2E3?4:3:2}; g.S.mI=function(Q){this.pp&&this.pp.mI(Q)};var Ost=g.Qs();VFZ.prototype.reset=function(){this.Z=[];this.B=[]}; var rd=A5(VFZ);g.p(Pk,hx);g.S=Pk.prototype;g.S.getName=function(){return(this.B?this.B:this.Z).getName()}; g.S.tv=function(){return(this.B?this.B:this.Z).tv()}; g.S.rX=function(){return(this.B?this.B:this.Z).rX()}; g.S.init=function(Q){var z=!1;(0,g.qI)(this.L,function(H){H.initialize()&&(z=!0)}); z&&(this.D=Q,Ui(this.Z,this));return z}; g.S.dispose=function(){(0,g.qI)(this.L,function(Q){Q.dispose()}); hx.prototype.dispose.call(this)}; g.S.XZ=function(){return Jx(this.L,function(Q){return Q.lN()})}; g.S.SS=function(){return Jx(this.L,function(Q){return Q.lN()})}; g.S.c$=function(Q,z,H){return new ZP(Q,this.Z,z,H)}; g.S.Zv=function(Q){this.B=Q.B};var QsZ={threshold:[0,.3,.5,.75,1]};g.p(aL,ZP);g.S=aL.prototype;g.S.observe=function(){var Q=this;this.wh||(this.wh=k3());if(pnL(298,function(){return zlc(Q)}))return!0; this.B.d7("msf");return!1}; g.S.unobserve=function(){if(this.D&&this.element)try{this.D.unobserve(this.element),this.N?(this.N.unobserve(this.element),this.N=null):this.Y&&(this.Y.disconnect(),this.Y=null)}catch(Q){}}; g.S.Av=function(){var Q=U6(this);Q.length>0&&ck(this,Q);ZP.prototype.Av.call(this)}; g.S.WL=function(){}; g.S.wm=function(){return!1}; g.S.lX=function(){}; g.S.tv=function(){var Q={};return Object.assign(this.B.tv(),(Q.niot_obs=this.wh,Q.niot_cbk=this.Ze,Q))}; g.S.getName=function(){return"nio"};g.p(i2,hx);i2.prototype.getName=function(){return"nio"}; i2.prototype.SS=function(){return!rW().B&&this.Z.Z.L.IntersectionObserver!=null}; i2.prototype.c$=function(Q,z,H){return new aL(Q,this.Z,z,H)};g.p(hP,a3);hP.prototype.oO=function(){return rW().Z}; hP.prototype.lN=function(){var Q=fkA();this.N!==Q&&(this.Z!=this&&Q>this.Z.N&&(this.Z=this,cr(this)),this.N=Q);return Q==2};Wk.prototype.sample=function(){VP(this,s6(),!1)}; Wk.prototype.D=function(){var Q=Br(),z=k3();Q?(et||(lV=z,g.qI(rd.Z,function(H){var f=H.Gw();f.En=E6(f,z,H.YF!=1)})),et=!0):(this.Y=XI_(this,z),et=!1,BjY=z,g.qI(rd.Z,function(H){H.oR&&(H.Gw().N=z)})); VP(this,s6(),!Q)}; var DP=A5(Wk);var y5n=null,tZ="",C5=!1;var CV_=Mt6().Uv,m4=Mt6().gi;var pIv={C75:"visible",KWm:"audible",Pfv:"time",xCT:"timetype"},n3v={visible:function(Q){return/^(100|[0-9]{1,2})$/.test(Q)}, audible:function(Q){return Q=="0"||Q=="1"}, timetype:function(Q){return Q=="mtos"||Q=="tos"}, time:function(Q){return/^(100|[0-9]{1,2})%$/.test(Q)||/^([0-9])+ms$/.test(Q)}}; E3n.prototype.setTime=function(Q,z,H){z=="ms"?(this.L=Q,this.D=-1):(this.L=-1,this.D=Q);this.S=H===void 0?"tos":H;return this};g.p(e0,p8);e0.prototype.getId=function(){return this.Y}; e0.prototype.j=function(){return!0}; e0.prototype.Z=function(Q){var z=Q.Gw(),H=Q.getDuration();return Jx(this.N,function(f){if(f.Z!=void 0)var b=Zl8(f,z);else b:{switch(f.S){case "mtos":b=f.B?z.S.L:z.L.Z;break b;case "tos":b=f.B?z.S.Z:z.L.Z;break b}b=0}b==0?f=!1:(f=f.L!=-1?f.L:H!==void 0&&H>0?f.D*H:-1,f=f!=-1&&b>=f);return f})};g.p(l2,gq_);l2.prototype.Z=function(Q){var z=new nqp;z.Z=q3(Q,$su);z.B=q3(Q,FB5);return z};g.p(RL,p8);RL.prototype.Z=function(Q){return JkJ(Q)};g.p(QK,FGL);g.p(zO,p8);zO.prototype.Z=function(Q){return Q.Gw().BQ()};g.p(Hz,n8);Hz.prototype.Z=function(Q){var z=g.kO(this.Y,vI(PI().K5,"ovms"));return!Q.Bn&&(Q.YF!=0||z)};g.p(f5,QK);f5.prototype.B=function(){return new Hz(this.Z)}; f5.prototype.L=function(){return[new zO("viewable_impression",this.Z),new RL(this.Z)]};g.p(bp,GN);bp.prototype.D=function(){var Q=g.D6("ima.admob.getViewability"),z=vI(this.K5,"queryid");typeof Q==="function"&&z&&Q(z)}; bp.prototype.getName=function(){return"gsv"};g.p(L5,hx);L5.prototype.getName=function(){return"gsv"}; L5.prototype.SS=function(){var Q=rW();PI();return Q.B&&!1}; L5.prototype.c$=function(Q,z,H){return new bp(this.Z,z,H)};g.p(up,GN);up.prototype.D=function(){var Q=this,z=g.D6("ima.bridge.getNativeViewability"),H=vI(this.K5,"queryid");typeof z==="function"&&H&&z(H,function(f){g.Ys(f)&&Q.Y++;var b=f.opt_nativeViewVisibleBounds||{},L=f.opt_nativeViewHidden;Q.Z=Ap9(f.opt_nativeViewBounds||{});var u=Q.B.D;u.Z=L?xsx.clone():Ap9(b);Q.timestamp=f.opt_nativeTime||-1;rW().Z=u.Z;f=f.opt_nativeVolume;f!==void 0&&(u.volume=f)})}; up.prototype.getName=function(){return"nis"};g.p(S_,hx);S_.prototype.getName=function(){return"nis"}; S_.prototype.SS=function(){var Q=rW();PI();return Q.B&&!1}; S_.prototype.c$=function(Q,z,H){return new up(this.Z,z,H)};g.p(Xg,a3);g.S=Xg.prototype;g.S.lN=function(){return this.B.Z4!=null}; g.S.Xi=function(){var Q={};this.f3&&(Q.mraid=this.f3);this.L3&&(Q.mlc=1);Q.mtop=this.B.yFI;this.Y&&(Q.mse=this.Y);this.jm&&(Q.msc=1);Q.mcp=this.B.compatibility;return Q}; g.S.wA=function(Q){var z=g.A8.apply(1,arguments);try{return this.B.Z4[Q].apply(this.B.Z4,z)}catch(H){wA(538,H,.01,function(f){f.method=Q})}}; g.S.initialize=function(){var Q=this;if(this.isInitialized)return!this.TE();this.isInitialized=!0;if(this.B.compatibility===2)return this.Y="ng",this.d7("w"),!1;if(this.B.compatibility===1)return this.Y="mm",this.d7("w"),!1;rW().N=!0;this.L.document.readyState&&this.L.document.readyState=="complete"?FoL(this):QP(this.L,"load",function(){rA().setTimeout(mo(292,function(){return FoL(Q)}),100)},292); return!0}; g.S.pL=function(){var Q=rW(),z=NAv(this,"getMaxSize");Q.Z=new QY(0,z.width,z.height,0)}; g.S.ib=function(){rW().D=NAv(this,"getScreenSize")}; g.S.dispose=function(){Olp(this);a3.prototype.dispose.call(this)};var Q6Z=new function(Q,z){this.key=Q;this.defaultValue=z===void 0?!1:z;this.valueType="boolean"}("45378663");g.S=yK.prototype;g.S.fv=function(Q){b2(Q,!1);knc(Q)}; g.S.A6=function(){}; g.S.tQ=function(Q,z,H,f){var b=this;Q=new j0(En,Q,H?z:-1,7,this.YS(),this.Nl());Q.WU=f;jR_(Q.K5);XY(Q.K5,"queryid",Q.WU);Q.dI("");qaY(Q,function(){return b.qp.apply(b,g.F(g.A8.apply(0,arguments)))},function(){return b.pIv.apply(b,g.F(g.A8.apply(0,arguments)))}); (f=A5(Bk).Z)&&Sap(Q,f);this.L&&(Q.mI(this.L),this.L=null);Q.qG.S5&&A5(bl_);return Q}; g.S.KK=function(Q){switch(Q.rX()){case 0:if(Q=A5(Bk).Z)Q=Q.Z,g.e5(Q.S,this),Q.U&&this.OU()&&aWc(Q);MN();break;case 2:K8()}}; g.S.Zv=function(){}; g.S.OU=function(){return!1}; g.S.pIv=function(Q,z){Q.Bn=!0;switch(Q.kf()){case 1:BAY(Q,z);break;case 2:this.Tz(Q)}}; g.S.Nhe=function(Q){var z=Q.Y(Q);z&&(z=z.volume,Q.gh=o3(z)&&z>0);Akp(Q,0);return N3(Q,"start",Br())}; g.S.R2=function(Q,z,H){VP(DP,[Q],!Br());return this.Mj(Q,z,H)}; g.S.Mj=function(Q,z,H){return N3(Q,H,Br())}; g.S.h5l=function(Q){return gN(Q,"firstquartile",1)}; g.S.dc3=function(Q){Q.C3=!0;return gN(Q,"midpoint",2)}; g.S.Fq5=function(Q){return gN(Q,"thirdquartile",3)}; g.S.i3I=function(Q){var z=gN(Q,"complete",4);Fq(Q);return z}; g.S.XII=function(Q){Q.YF=3;return N3(Q,"error",Br())}; g.S.x4=function(Q,z,H){z=Br();if(Q.o4()&&!z){var f=Q.Gw(),b=k3();f.N=b}VP(DP,[Q],!z);Q.o4()&&(Q.YF=1);return N3(Q,H,z)}; g.S.Ien=function(Q,z){z=this.R2(Q,z||{},"skip");Fq(Q);return z}; g.S.CTn=function(Q,z){b2(Q,!0);return this.R2(Q,z||{},"fullscreen")}; g.S.QjI=function(Q,z){b2(Q,!1);return this.R2(Q,z||{},"exitfullscreen")}; g.S.s5=function(Q,z,H){z=Q.Gw();var f=k3();z.En=E6(z,f,Q.YF!=1);VP(DP,[Q],!Br());Q.YF==1&&(Q.YF=2);return N3(Q,H,Br())}; g.S.u$h=function(Q){VP(DP,[Q],!Br());return Q.B()}; g.S.BM=function(Q){VP(DP,[Q],!Br());this.Um(Q);Fq(Q);return Q.B()}; g.S.qp=function(){}; g.S.Tz=function(){}; g.S.Um=function(){}; g.S.Qv=function(){}; g.S.JX=function(){}; g.S.Nl=function(){this.Z||(this.Z=this.JX());return this.Z==null?new gd:new f5(this.Z)}; g.S.YS=function(){return new l2};g.p(ZR,p8);ZR.prototype.Z=function(Q){return Q.WV()==4};g.p(GO,n8);GO.prototype.Z=function(Q){Q=Q.WV();return Q==3||Q==4};g.p($W,QK);$W.prototype.B=function(){return new GO(this.Z)}; $W.prototype.L=function(){return[new ZR(this.Z)]};g.p(j_,gq_);j_.prototype.Z=function(Q){Q&&(Q.e===28&&(Q=Object.assign({},Q,{avas:3})),Q.vs===4||Q.vs===5)&&(Q=Object.assign({},Q,{vs:3}));var z=new nqp;z.Z=q3(Q,juB);z.B=q3(Q,FB5);return z};c5_.prototype.B=function(){return g.D6(this.Z)};g.p(Fg,yK);g.S=Fg.prototype;g.S.A6=function(Q,z){var H=this,f=A5(Bk);if(f.Z!=null)switch(f.Z.getName()){case "nis":var b=DTv(this,Q,z);break;case "gsv":b=Woa(this,Q,z);break;case "exc":b=KoY(this,Q)}b||(z.opt_overlayAdElement?b=void 0:z.opt_adElement&&(b=akc(this,Q,z.opt_adElement,z.opt_osdId)));b&&b.kf()==1&&(b.Y==g.Cg&&(b.Y=function(L){return H.Qv(L)}),hl8(this,b,z)); return b}; g.S.Qv=function(Q){Q.B=0;Q.De=0;if(Q.D=="h"||Q.D=="n"){PI();Q.uT&&(PI(),p5(this)!="h"&&p5(this));var z=g.D6("ima.common.getVideoMetadata");if(typeof z==="function")try{var H=z(Q.WU)}catch(b){Q.B|=4}else Q.B|=2}else if(Q.D=="b")if(z=g.D6("ytads.bulleit.getVideoMetadata"),typeof z==="function")try{H=z(Q.WU)}catch(b){Q.B|=4}else Q.B|=2;else if(Q.D=="ml")if(z=g.D6("ima.common.getVideoMetadata"),typeof z==="function")try{H=z(Q.WU)}catch(b){Q.B|=4}else Q.B|=2;else Q.B|=1;Q.B||(H===void 0?Q.B|=8:H===null? Q.B|=16:g.Ys(H)?Q.B|=32:H.errorCode!=null&&(Q.De=H.errorCode,Q.B|=64));H==null&&(H={});z=H;Q.N=0;for(var f in EOx)z[f]==null&&(Q.N|=EOx[f]);UTA(z,"currentTime");UTA(z,"duration");o3(H.volume)&&o3()&&(H.volume*=NaN);return H}; g.S.JX=function(){PI();p5(this)!="h"&&p5(this);var Q=Vtk(this);return Q!=null?new c5_(Q):null}; g.S.Tz=function(Q){!Q.Z&&Q.Bn&&n5(this,Q,"overlay_unmeasurable_impression")&&(Q.Z=!0)}; g.S.Um=function(Q){Q.Qc&&(Q.BQ()?n5(this,Q,"overlay_viewable_end_of_session_impression"):n5(this,Q,"overlay_unviewable_impression"),Q.Qc=!1)}; g.S.qp=function(){}; g.S.tQ=function(Q,z,H,f){if(zZ9()){var b=vI(PI().K5,"mm"),L={};(b=(L[as.D9]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",L[as.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",L)[b])&&k98(this,b);this.D==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&wA(1044,Error())}Q=yK.prototype.tQ.call(this,Q,z,H,f);this.S&&(z=this.j,Q.S==null&&(Q.S=new MFL),z.Z[Q.WU]=Q.S,Q.S.S=Ost);return Q}; g.S.fv=function(Q){Q&&Q.kf()==1&&this.S&&delete this.j.Z[Q.WU];return yK.prototype.fv.call(this,Q)}; g.S.Nl=function(){this.Z||(this.Z=this.JX());return this.Z==null?new gd:this.D==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new $W(this.Z):new f5(this.Z)}; g.S.YS=function(){return this.D==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new j_:new l2}; g.S.mI=function(Q,z,H,f,b){z=new QY(H,z+f,H+b,z);(Q=YB(rd,Q))?Q.mI(z):this.L=z}; var oOR=dA(193,el9,void 0,PVA);g.W_("Goog_AdSense_Lidar_sendVastEvent",oOR);var Jts=mo(194,function(Q,z){z=z===void 0?{}:z;Q=wI6(A5(Fg),Q,z);return TA6(Q)}); g.W_("Goog_AdSense_Lidar_getViewability",Jts);var NJt=dA(195,function(){return kMp()}); g.W_("Goog_AdSense_Lidar_getUrlSignalsArray",NJt);var ILs=mo(196,function(){return JSON.stringify(kMp())}); g.W_("Goog_AdSense_Lidar_getUrlSignalsList",ILs);var lkv=(new Date("2024-01-01T00:00:00Z")).getTime();var z_n=t8(["//ep2.adtrafficquality.google/sodar/",""]),HhA=t8(["//tpc.googlesyndication.com/sodar/",""]);g.p(AZ,g.h);AZ.prototype.z9=function(){return this.wpc.f()}; AZ.prototype.Vp=function(Q){this.wpc.c(Q)}; AZ.prototype.GN=function(Q){return this.wpc.m(uLv(Q))}; AZ.prototype.K9=function(Q){return this.wpc.mws(uLv(Q))}; g.p(NN,g.h);NN.prototype.snapshot=function(Q){return this.Wc.s(Object.assign({},Q.hT&&{c:Q.hT},Q.N$&&{s:Q.N$},Q.Wg!==void 0&&{p:Q.Wg}))}; NN.prototype.VC=function(Q){this.Wc.e(Q)}; NN.prototype.Jr=function(){return this.Wc.l()};var Lsa=(new Date).getTime();var vek="://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(" "),yxa=/\bocr\b/;var M$_=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var Ohc=0,x2A=0,Jxu=0;var oen=Object.assign({},{attributes:{},handleError:function(Q){throw Q;}},{TqI:!0, gfI:!0,rKh:SAL,zr:!1,ILc:!1,Jpm:!1,FZe:!1,Ujn:ua5});var s4=null,Pz=!1,j3c=1,cz=Symbol("SIGNAL"),Mi={version:0,NX$:0,uF:!1,a6:void 0,JQ:void 0,RD:void 0,CI:0,c7:void 0,nQ:void 0,hn:!1,Ck:!1,kind:"unknown",hW:function(){return!1}, CN:function(){}, dC:function(){}, Nqj:function(){}};var CX=Symbol("UNSET"),tg=Symbol("COMPUTING"),Ej=Symbol("ERRORED");Object.assign({},Mi,{value:CX,uF:!0,error:null,xo:rN,kind:"computed",hW:function(Q){return Q.value===CX||Q.value===tg}, CN:function(Q){if(Q.value===tg)throw Error("Detected cycle in computations.");var z=Q.value;Q.value=tg;var H=Ee8(Q),f=!1;try{var b=Q.bA();Bz(null);f=z!==CX&&z!==Ej&&b!==Ej&&Q.xo(z,b)}catch(L){b=Ej,Q.error=L}finally{prY(Q,H)}f?Q.value=z:(Q.value=b,Q.version++)}});var GJk=Object.assign({},Mi,{xo:rN,value:void 0,kind:"signal"});Object.assign({},Mi,{value:CX,uF:!0,error:null,xo:rN,hW:function(Q){return Q.value===CX||Q.value===tg}, CN:function(Q){if(Q.value===tg)throw Error("Detected cycle in computations.");var z=Q.value;Q.value=tg;var H=Ee8(Q);try{var f=Q.source();var b=Q.bA(f,z===CX||z===Ej?void 0:{source:Q.SXn,value:z});Q.SXn=f}catch(L){b=Ej,Q.error=L}finally{prY(Q,H)}z!==CX&&b!==Ej&&Q.xo(z,b)?Q.value=z:(Q.value=b,Q.version++)}});Object.assign({},Mi,{Ck:!0,hn:!1,dC:function(Q){Q.schedule!==null&&Q.schedule(Q.jtc)}, ca3:!1,hej:function(){}});var NWa=Symbol("updater");g.p(hZ,g.Qe);hZ.prototype.dispose=function(){window.removeEventListener("offline",this.L);window.removeEventListener("online",this.L);this.eT.xF(this.S);delete hZ.instance}; hZ.prototype.yP=function(){return this.Z}; hZ.prototype.SA=function(){var Q=this;this.S=this.eT.pE(function(){var z;return g.B(function(H){if(H.Z==1)return Q.Z?((z=window.navigator)==null?0:z.onLine)?H.bT(3):g.Y(H,ip(Q),3):g.Y(H,ip(Q),3);Q.SA();g.Gu(H)})},3E4)};DR.prototype.set=function(Q,z){z=z===void 0?!0:z;0<=Q&&Q<52&&Number.isInteger(Q)&&this.data[Q]!==z&&(this.data[Q]=z,this.Z=-1)}; DR.prototype.get=function(Q){return!!this.data[Q]};var VK;g.zY(g.wN,g.h);g.S=g.wN.prototype;g.S.start=function(){this.stop();this.D=!1;var Q=rxv(this),z=s3n(this);Q&&!z&&this.B.mozRequestAnimationFrame?(this.Z=g.Km(this.B,"MozBeforePaint",this.L),this.B.mozRequestAnimationFrame(null),this.D=!0):this.Z=Q&&z?Q.call(this.B,this.L):this.B.setTimeout(V4k(this.L),20)}; g.S.stop=function(){if(this.isActive()){var Q=rxv(this),z=s3n(this);Q&&!z&&this.B.mozRequestAnimationFrame?ez(this.Z):Q&&z?z.call(this.B,this.Z):this.B.clearTimeout(this.Z)}this.Z=null}; g.S.isActive=function(){return this.Z!=null}; g.S.Zr=function(){this.D&&this.Z&&ez(this.Z);this.Z=null;this.j.call(this.S,g.Qs())}; g.S.zv=function(){this.stop();g.wN.xu.zv.call(this)};g.zY(g.e_,g.h);g.S=g.e_.prototype;g.S.Ak=0;g.S.zv=function(){g.e_.xu.zv.call(this);this.stop();delete this.Z;delete this.B}; g.S.start=function(Q){this.stop();this.Ak=g.OE(this.L,Q!==void 0?Q:this.I6)}; g.S.stop=function(){this.isActive()&&g.iL.clearTimeout(this.Ak);this.Ak=0}; g.S.isActive=function(){return this.Ak!=0}; g.S.hE=function(){this.Ak=0;this.Z&&this.Z.call(this.B)};g.p(g.ze,g.h);g.S=g.ze.prototype;g.S.YL=function(Q){this.L=arguments;this.C5||this.B?this.Z=!0:HO(this)}; g.S.stop=function(){this.C5&&(g.iL.clearTimeout(this.C5),this.C5=null,this.Z=!1,this.L=null)}; g.S.pause=function(){this.B++}; g.S.resume=function(){this.B--;this.B||!this.Z||this.C5||(this.Z=!1,HO(this))}; g.S.zv=function(){g.h.prototype.zv.call(this);this.stop()};g.fZ.prototype[Symbol.iterator]=function(){return this}; g.fZ.prototype.next=function(){var Q=this.Z.next();return{value:Q.done?void 0:this.B.call(void 0,Q.value),done:Q.done}};g.zY(g.MP,g.Qe);g.S=g.MP.prototype;g.S.isPlaying=function(){return this.Z==1}; g.S.isPaused=function(){return this.Z==-1}; g.S.rK=function(){this.Yc("begin")}; g.S.f9=function(){this.Yc("end")}; g.S.onFinish=function(){this.Yc("finish")}; g.S.onStop=function(){this.Yc("stop")}; g.S.Yc=function(Q){this.dispatchEvent(Q)};var Atm=tj(function(){var Q=g.Hx("DIV"),z=g.lQ?"-webkit":Ch?"-moz":null,H="transition:opacity 1s linear;";z&&(H+=z+"-transition:opacity 1s linear;");z=lcc({style:H});if(Q.nodeType===1&&/^(script|style)$/i.test(Q.tagName))throw Error("");Q.innerHTML=a$(z);return g.tx(Q.firstChild,"transition")!=""});g.zY(CZ,g.MP);g.S=CZ.prototype;g.S.play=function(){if(this.isPlaying())return!1;this.rK();this.Yc("play");this.startTime=g.Qs();this.Z=1;if(Atm())return g.q2(this.B,this.j),this.L=g.OE(this.UBv,void 0,this),!0;this.tC(!1);return!1}; g.S.UBv=function(){g.FL(this.B);a5c(this.B,this.Y);g.q2(this.B,this.D);this.L=g.OE((0,g.lL)(this.tC,this,!1),this.S*1E3)}; g.S.stop=function(){this.isPlaying()&&this.tC(!0)}; g.S.tC=function(Q){g.q2(this.B,"transition","");g.iL.clearTimeout(this.L);g.q2(this.B,this.D);this.endTime=g.Qs();this.Z=0;if(Q)this.onStop();else this.onFinish();this.f9()}; g.S.zv=function(){this.stop();CZ.xu.zv.call(this)}; g.S.pause=function(){};var cxp={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};tD("Element","attributes")||tD("Node","attributes");tD("Element","innerHTML")||tD("HTMLElement","innerHTML");tD("Node","nodeName");tD("Node","nodeType");tD("Node","parentNode");tD("Node","childNodes");tD("HTMLElement","style")||tD("Element","style");tD("HTMLStyleElement","sheet");var V$9=h_L("getPropertyValue"),d2a=h_L("setProperty");tD("Element","namespaceURI")||tD("Node","namespaceURI");var KEa={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var TWv,eDu,kJk,wrZ,e_A;TWv=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]");eDu=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.YT5=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.pZ=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]");kJk=/^http:\/\/.*/;g.rt5=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");wrZ=/\s+/;e_A=/[\d\u06f0-\u06f9]/;gv.prototype.xM=function(){return new Zx(this.B())}; gv.prototype[Symbol.iterator]=function(){return new Ge(this.B())}; gv.prototype.Z=function(){return new Ge(this.B())}; g.p(Zx,g.L8);Zx.prototype.next=function(){return this.B.next()}; Zx.prototype[Symbol.iterator]=function(){return new Ge(this.B)}; Zx.prototype.Z=function(){return new Ge(this.B)}; g.p(Ge,gv);Ge.prototype.next=function(){return this.L.next()};jK.prototype.clone=function(){return new jK(this.Z,this.Y,this.L,this.S,this.D,this.j,this.B,this.N)}; jK.prototype.jH=function(Q){return this.Z==Q.Z&&this.Y==Q.Y&&this.L==Q.L&&this.S==Q.S&&this.D==Q.D&&this.j==Q.j&&this.B==Q.B&&this.N==Q.N};xF.prototype.clone=function(){return new xF(this.start,this.end)}; xF.prototype.getLength=function(){return this.end-this.start};(function(){if(Stp){var Q=/Windows NT ([0-9.]+)/;return(Q=Q.exec(g.Ns()))?Q[1]:"0"}return zX?(Q=/1[0|1][_.][0-9_.]+/,(Q=Q.exec(g.Ns()))?Q[0].replace(/_/g,"."):"10"):g.Qh?(Q=/Android\s+([^\);]+)(\)|;)/,(Q=Q.exec(g.Ns()))?Q[1]:""):y8T||qAs||MYm?(Q=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(Q=Q.exec(g.Ns()))?Q[1].replace(/_/g,"."):""):""})();var R_p=function(){if(g.ak)return OF(/Firefox\/([0-9.]+)/);if(g.EF||g.kw||g.jN)return yta;if(g.AI){if(DL()||Ks()){var Q=OF(/CriOS\/([0-9.]+)/);if(Q)return Q}return OF(/Chrome\/([0-9.]+)/)}if(g.Ga&&!DL())return OF(/Version\/([0-9.]+)/);if(eT||lv){if(Q=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.Ns()))return Q[1]+"."+Q[2]}else if(g.Fu)return(Q=OF(/Android\s+([0-9.]+)/))?Q:OF(/Version\/([0-9.]+)/);return""}();g.zY(g.JD,g.h);g.S=g.JD.prototype;g.S.subscribe=function(Q,z,H){var f=this.B[Q];f||(f=this.B[Q]=[]);var b=this.j;this.Z[b]=Q;this.Z[b+1]=z;this.Z[b+2]=H;this.j=b+3;f.push(b);return b}; g.S.unsubscribe=function(Q,z,H){if(Q=this.B[Q]){var f=this.Z;if(Q=Q.find(function(b){return f[b+1]==z&&f[b+2]==H}))return this.NP(Q)}return!1}; g.S.NP=function(Q){var z=this.Z[Q];if(z){var H=this.B[z];this.D!=0?(this.L.push(Q),this.Z[Q+1]=function(){}):(H&&g.e5(H,Q),delete this.Z[Q],delete this.Z[Q+1],delete this.Z[Q+2])}return!!z}; g.S.publish=function(Q,z){var H=this.B[Q];if(H){var f=Array(arguments.length-1),b=arguments.length,L;for(L=1;L0&&this.D==0)for(;H=this.L.pop();)this.NP(H)}}return L!=0}return!1}; g.S.clear=function(Q){if(Q){var z=this.B[Q];z&&(z.forEach(this.NP,this),delete this.B[Q])}else this.Z.length=0,this.B={}}; g.S.zv=function(){g.JD.xu.zv.call(this);this.clear();this.L.length=0};g.NP.prototype.set=function(Q,z){z===void 0?this.Z.remove(Q):this.Z.set(Q,g.IR(z))}; g.NP.prototype.get=function(Q){try{var z=this.Z.get(Q)}catch(H){return}if(z!==null)try{return JSON.parse(z)}catch(H){throw"Storage: Invalid value was encountered";}}; g.NP.prototype.remove=function(Q){this.Z.remove(Q)};g.zY(IH,g.NP);IH.prototype.set=function(Q,z){IH.xu.set.call(this,Q,H8c(z))}; IH.prototype.B=function(Q){Q=IH.xu.get.call(this,Q);if(Q===void 0||Q instanceof Object)return Q;throw"Storage: Invalid value was encountered";}; IH.prototype.get=function(Q){if(Q=this.B(Q)){if(Q=Q.data,Q===void 0)throw"Storage: Invalid value was encountered";}else Q=void 0;return Q};g.zY(AD,IH);AD.prototype.set=function(Q,z,H){if(z=H8c(z)){if(H){if(H=H.length)return g.XQ;var b=H.key(z++);if(Q)return g.u2(b);b=H.getItem(b);if(typeof b!=="string")throw"Storage mechanism: Invalid value was encountered";return g.u2(b)}; return f}; g.S.clear=function(){BO(this);this.Z.clear()}; g.S.key=function(Q){BO(this);return this.Z.key(Q)};g.zY(PO,sF);g.zY(L4_,sF);g.zY(aH,rv);aH.prototype.set=function(Q,z){this.B.set(this.Z+Q,z)}; aH.prototype.get=function(Q){return this.B.get(this.Z+Q)}; aH.prototype.remove=function(Q){this.B.remove(this.Z+Q)}; aH.prototype.xM=function(Q){var z=this.B[Symbol.iterator](),H=this,f=new g.L8;f.next=function(){var b=z.next();if(b.done)return b;for(b=b.value;b.slice(0,H.Z.length)!=H.Z;){b=z.next();if(b.done)return b;b=b.value}return g.u2(Q?b.slice(H.Z.length):H.B.get(b))}; return f};cO.prototype.getValue=function(){return this.B}; cO.prototype.clone=function(){return new cO(this.Z,this.B)};g.S=hD.prototype;g.S.pA=function(Q,z){var H=this.Z;H.push(new cO(Q,z));Q=H.length-1;z=this.Z;for(H=z[Q];Q>0;){var f=Q-1>>1;if(z[f].Z>H.Z)z[Q]=z[f],Q=f;else break}z[Q]=H}; g.S.remove=function(){var Q=this.Z,z=Q.length,H=Q[0];if(!(z<=0)){if(z==1)Q.length=0;else{Q[0]=Q.pop();Q=0;z=this.Z;for(var f=z.length,b=z[Q];Q>1;){var L=Q*2+1,u=Q*2+2;L=ub.Z)break;z[Q]=z[L];Q=L}z[Q]=b}return H.getValue()}}; g.S.fg=function(){for(var Q=this.Z,z=[],H=Q.length,f=0;f>>16&65535|0;for(var L;H!==0;){L=H>2E3?2E3:H;H-=L;do b=b+z[f++]|0,Q=Q+b|0;while(--L);b%=65521;Q%=65521}return b|Q<<16|0};for(var pT={},pX,UsB=[],nX=0;nX<256;nX++){pX=nX;for(var ctu=0;ctu<8;ctu++)pX=pX&1?3988292384^pX>>>1:pX>>>1;UsB[nX]=pX}pT=function(Q,z,H,f){H=f+H;for(Q^=-1;f>>8^UsB[(Q^z[f])&255];return Q^-1};var uq={};uq={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 RH=[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],H5=[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],APv=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Z86=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],yX=Array(576);VM(yX);var qU=Array(60);VM(qU);var z5=Array(512);VM(z5);var ln=Array(256);VM(ln);var QX=Array(29);VM(QX);var fT=Array(30);VM(fT);var JPp,NdZ,IPv,oBc=!1;var $c;$c=[new G5(0,0,0,0,function(Q,z){var H=65535;for(H>Q.dN-5&&(H=Q.dN-5);;){if(Q.Nz<=1){nT(Q);if(Q.Nz===0&&z===0)return 1;if(Q.Nz===0)break}Q.DJ+=Q.Nz;Q.Nz=0;var f=Q.b$+H;if(Q.DJ===0||Q.DJ>=f)if(Q.Nz=Q.DJ-f,Q.DJ=f,MU(Q,!1),Q.QR.gr===0)return 1;if(Q.DJ-Q.b$>=Q.HY-262&&(MU(Q,!1),Q.QR.gr===0))return 1}Q.pA=0;if(z===4)return MU(Q,!0),Q.QR.gr===0?3:4;Q.DJ>Q.b$&&MU(Q,!1);return 1}), new G5(4,4,8,4,gw),new G5(4,5,16,8,gw),new G5(4,6,32,32,gw),new G5(4,4,16,16,ZV),new G5(8,16,32,32,ZV),new G5(8,16,128,128,ZV),new G5(8,32,128,256,ZV),new G5(32,128,258,1024,ZV),new G5(32,258,258,4096,ZV)];var O8p={};O8p=function(){this.input=null;this.u3=this.BY=this.FM=0;this.output=null;this.kE=this.gr=this.G2=0;this.msg="";this.state=null;this.Qp=2;this.Kp=0};var Y6v=Object.prototype.toString; jy.prototype.push=function(Q,z){var H=this.QR,f=this.options.chunkSize;if(this.ended)return!1;var b=z===~~z?z:z===!0?4:0;typeof Q==="string"?H.input=Xku(Q):Y6v.call(Q)==="[object ArrayBuffer]"?H.input=new Uint8Array(Q):H.input=Q;H.FM=0;H.BY=H.input.length;do{H.gr===0&&(H.output=new KZ.rU(f),H.G2=0,H.gr=f);Q=x3u(H,b);if(Q!==1&&Q!==0)return this.f9(Q),this.ended=!0,!1;if(H.gr===0||H.BY===0&&(b===4||b===2))if(this.options.ac==="string"){var L=KZ.Ir(H.output,H.G2);z=L;L=L.length;if(L<65537&&(z.subarray&& aLB||!z.subarray))z=String.fromCharCode.apply(null,KZ.Ir(z,L));else{for(var u="",X=0;X0||H.gr===0)&&Q!==1);if(b===4)return(H=this.QR)&&H.state?(f=H.state.status,f!==42&&f!==69&&f!==73&&f!==91&&f!==103&&f!==113&&f!==666?Q=Sy(H,-2):(H.state=null,Q=f===113?Sy(H,-3):0)):Q=-2,this.f9(Q),this.ended=!0,Q===0;b===2&&(this.f9(0),H.gr=0);return!0}; jy.prototype.f9=function(Q){Q===0&&(this.result=this.options.ac==="string"?this.chunks.join(""):KZ.lQ(this.chunks));this.chunks=[];this.err=Q;this.msg=this.QR.msg};var xc="@@redux/INIT"+Fy(),U3n="@@redux/REPLACE"+Fy();var cPu=typeof Symbol==="function"&&Symbol.observable||"@@observable";var isu=[0,dks,-3,by];g.p(Ju,U$);Ju.prototype.getType=function(){return E$(this,11)};var R59=function(){var Q=[0,w_m,mkx,QE,dks,QE,-1,by,dks,by,-1,w_m,by,mkx,zo,isu,QE,-1,by];return function(z,H){if(R5.length){var f=R5.pop();oT9(f,H);f.Z.init(z,void 0,void 0,H);z=f}else z=new Yf(z,H);try{var b=new Ju,L=b.Pz;bz(Q)(L,z);var u=b}finally{z.free()}return u}}();var D36=1187109098;var zwp=new g.NU("adInfoDialogEndpoint");var $X6=new g.NU("adPingingEndpoint");var DZJ=new g.NU("crossDeviceProgressCommand");var R9=new g.NU("actionCompanionAdRenderer");var XI=new g.NU("adActionInterstitialRenderer");var hmB=new g.NU("adDurationRemainingRenderer");var rg=new g.NU("adHoverTextButtonRenderer");var Rr8=new g.NU("adInfoDialogRenderer");var t7=new g.NU("adMessageRenderer");var sy=new g.NU("adPreviewRenderer");var zC=new g.NU("adsEngagementPanelRenderer");var td9=new g.NU("dismissablePanelTextPortraitImageRenderer");var Md9=new g.NU("adsEngagementPanelSectionListViewModel");var WBs=new g.NU("flyoutCtaRenderer");var Qb=new g.NU("imageCompanionAdRenderer");var ua=new g.NU("instreamAdPlayerOverlayRenderer");var pdA=new g.NU("instreamSurveyAdBackgroundImageRenderer");var YN=new g.NU("instreamSurveyAdPlayerOverlayRenderer");var Md=new g.NU("instreamSurveyAdRenderer"),AA=new g.NU("instreamSurveyAdSingleSelectQuestionRenderer"),IV=new g.NU("instreamSurveyAdMultiSelectQuestionRenderer"),gx=new g.NU("instreamSurveyAdAnswerRenderer"),Dss=new g.NU("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var yb=new g.NU("instreamVideoAdRenderer");var KBm=new g.NU("textOverlayAdContentRenderer"),V5x=new g.NU("enhancedTextOverlayAdContentRenderer"),dss=new g.NU("imageOverlayAdContentRenderer");var SM=new g.NU("playerOverlayLayoutRenderer");var vt=new g.NU("videoInterstitialButtonedCenteredLayoutRenderer");var Z4L=new g.NU("aboveFeedAdLayoutRenderer");var Gpu=new g.NU("belowPlayerAdLayoutRenderer");var gSA=new g.NU("inPlayerAdLayoutRenderer");var Ey=new g.NU("playerBytesAdLayoutRenderer");var Nd=new g.NU("playerBytesSequenceItemAdLayoutRenderer");var GC=new g.NU("playerUnderlayAdLayoutRenderer");var qd=new g.NU("adIntroRenderer");var X4=new g.NU("playerBytesSequentialLayoutRenderer");var ltu=new g.NU("slidingTextPlayerOverlayRenderer");var CY=new g.NU("surveyTextInterstitialRenderer");var pY=new g.NU("videoAdTrackingRenderer");var msu=new g.NU("simpleAdBadgeRenderer");var bB=new g.NU("skipAdRenderer"),wuR=new g.NU("skipButtonRenderer");var Uy=new g.NU("adSlotRenderer");var gg=new g.NU("squeezebackPlayerSidePanelRenderer");var kYs=new g.NU("timedPieCountdownRenderer");var DB=new g.NU("adAvatarViewModel");var K0=new g.NU("adBadgeViewModel");var VB=new g.NU("adButtonViewModel");var TJY=new g.NU("adDetailsLineViewModel");var emB=new g.NU("adDisclosureBannerViewModel");var lLx=new g.NU("adPodIndexViewModel");var Rms=new g.NU("imageBackgroundViewModel");var QGu=new g.NU("adGridCardCollectionViewModel");var zWL=new g.NU("adGridCardTextViewModel");var Hrs=new g.NU("adPreviewViewModel");var f3T=new g.NU("playerAdAvatarLockupCardButtonedViewModel");var brm=new g.NU("skipAdButtonViewModel");var Lzs=new g.NU("skipAdViewModel");var ukx=new g.NU("timedPieCountdownViewModel");var S2Y=new g.NU("visitAdvertiserLinkViewModel");var Hc=new g.NU("bannerImageLayoutViewModel");var fY=new g.NU("topBannerImageTextIconButtonedLayoutViewModel");var bg=new g.NU("adsEngagementPanelLayoutViewModel");var Zq=new g.NU("displayUnderlayTextGridCardsLayoutViewModel");g.OC=new g.NU("browseEndpoint");var XYx=new g.NU("confirmDialogEndpoint");var kfA=new g.NU("commandContext");var j4_=new g.NU("rawColdConfigGroup");var $0u=new g.NU("rawHotConfigGroup");g.np=new g.NU("commandExecutorCommand");g.p(d39,U$);var L9L={Yv3:0,u2I:1,ofq:32,Pzq:61,kpc:67,Bqh:103,zeT:86,rp3:42,eej:60,Niq:62,w0v:73,OVT:76,qJv:88,LZv:90,Mdl:99,UC3:98,azj:100,ZVh:102,Djv:41,bVc:69,ypv:70,Gpv:71,J8l:2,EM5:27,ANDROID:3,o3v:54,eH$:14,LWv:91,Hq$:55,OqT:24,Zqq:20,wYI:18,x73:21,zHh:104,kwn:30,bqm:29,y53:28,XNh:101,Gwm:34,aV5:36,Pch:38,IOS:5,cBc:15,hUc:92,YGv:40,vrq:25,JB3:17,Erh:19,plc:64,itT:66,Xln:26,dDv:22,ucj:33,I5v:68,Nzh:35,Qx5:53,C$n:37,sxh:39,bPq:7,y_h:57,G7m:43,j4I:59,Khv:93,D7c:74,l4l:75,SvI:85,f4v:65,VTj:80,mCc:8,MTT:10, c_I:58,nXj:63,A_h:72,M2q:23,lzv:11,SJI:13,FWI:12,DC$:16,gXm:56,xjl:31,Y7c:77,rBh:84,HVT:87,eUm:89,orh:94,DKl:95};g.p(If,U$);If.prototype.Cy=function(){return tc(this,3)}; If.prototype.Ww=function(){return tc(this,5)}; If.prototype.uU=function(Q){return nw(this,5,Q)};g.p(Au,U$);g.p(m3A,U$);g.p(Yc,U$);g.S=Yc.prototype;g.S.getDeviceId=function(){return tc(this,6)}; g.S.wR=function(Q){var z=m8(this,9,yr,3,!0);D3(z,Q);return z[Q]}; g.S.getPlayerType=function(){return E$(this,36)}; g.S.setHomeGroupInfo=function(Q){return XP(this,m3A,81,Q)}; g.S.clearLocationPlayabilityToken=function(){return hn(this,89)};g.p(rw,U$);rw.prototype.getValue=function(){return tc(this,fw(this,ZFn)===2?2:-1)}; var ZFn=[2,3,4,5,6];g.p(s9,U$);s9.prototype.setTrackingParams=function(Q){return hn(this,1,ILk(Q,!1))};g.p(B5,U$);g.p(P5,U$);P5.prototype.wR=function(Q){var z=m8(this,5,q4,3,!0);D3(z,Q);return z[Q]};g.p(af,U$);af.prototype.getToken=function(){return Mo(this,2)}; af.prototype.setToken=function(Q){return nw(this,2,Q)};g.p(U9,U$);U9.prototype.setSafetyMode=function(Q){return Zu(this,5,Q)};g.p(c5,U$);c5.prototype.DP=function(Q){return XP(this,Yc,1,Q)};var Pc=new g.NU("thumbnailLandscapePortraitRenderer");g.vTu=new g.NU("changeEngagementPanelVisibilityAction");var Ocu=new g.NU("continuationCommand");g.yCx=new g.NU("openPopupAction");g.ZX=new g.NU("webCommandMetadata");var Bgc=new g.NU("metadataBadgeRenderer");var xRZ=new g.NU("signalServiceEndpoint");var UX=new g.NU("innertubeCommand");var Mik=new g.NU("loggingDirectives");var rZa={mGI:"EMBEDDED_PLAYER_MODE_UNKNOWN",fCn:"EMBEDDED_PLAYER_MODE_DEFAULT",V6h:"EMBEDDED_PLAYER_MODE_PFP",A9q:"EMBEDDED_PLAYER_MODE_PFL"};var SDZ=new g.NU("channelThumbnailEndpoint");var uM_=new g.NU("embeddedPlayerErrorMessageRenderer");var HQA=new g.NU("embeddedPlayerOverlayVideoDetailsRenderer"),XSa=new g.NU("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),vHu=new g.NU("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var Yyk=new g.NU("embedsInfoPanelRenderer");var q2u=new g.NU("feedbackEndpoint");var Mju=new g.NU("callToActionButtonViewModel");var C4T=new g.NU("interactionLoggingCommandMetadata");var Nw9={Tiv:"WEB_DISPLAY_MODE_UNKNOWN",Fhc:"WEB_DISPLAY_MODE_BROWSER",RbT:"WEB_DISPLAY_MODE_MINIMAL_UI",WhI:"WEB_DISPLAY_MODE_STANDALONE",tTn:"WEB_DISPLAY_MODE_FULLSCREEN"};g.p(iq,U$);iq.prototype.getPlayerType=function(){return E$(this,7)}; iq.prototype.Ki=function(){return tc(this,19)}; iq.prototype.setVideoId=function(Q){return nw(this,19,Q)};g.p(hu,U$);g.p(KT,U$);g.p(VX,U$); var tj5=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353, 354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516];var ETs=new g.NU("loggingContext");g.p(dw,U$);g.p(mk,U$);mk.prototype.Ki=function(){return Mo(this,fw(this,qX)===1?1:-1)}; mk.prototype.setVideoId=function(Q){return zH(this,1,qX,jX(Q))}; mk.prototype.getPlaylistId=function(){return Mo(this,fw(this,qX)===2?2:-1)}; var qX=[1,2];g.p(wkn,U$);var RZ=new g.NU("changeKeyedMarkersVisibilityCommand");var pYu=new g.NU("changeMarkersVisibilityCommand");var aqv=new g.NU("loadMarkersCommand");var nTT=new g.NU("suggestedActionDataViewModel");var za8=new g.NU("timelyActionViewModel");var QYp=new g.NU("timelyActionsOverlayViewModel");var bXn=new g.NU("productListItemRenderer");var gTu=new g.NU("shoppingOverlayRenderer");var fOv=new g.NU("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var ZrB=new g.NU("adFeedbackEndpoint");var G75=new g.NU("menuEndpoint");var g5a=new g.NU("phoneDialerEndpoint");var pyn=new g.NU("sendSmsEndpoint");var zs6=new g.NU("copyTextEndpoint");var $Im=new g.NU("shareEndpoint"),jGu=new g.NU("shareEntityEndpoint"),FzJ=new g.NU("shareEntityServiceEndpoint"),xIu=new g.NU("webPlayerShareEntityServiceEndpoint");g.Uc=new g.NU("urlEndpoint");g.ew=new g.NU("watchEndpoint");var OrR=new g.NU("watchPlaylistEndpoint");g.oTs=new g.NU("offlineOrchestrationActionCommand");var W7Y=new g.NU("compositeVideoOverlayRenderer");var JCx=new g.NU("miniplayerRenderer");var RKA=new g.NU("paidContentOverlayRenderer");var N7B=new g.NU("playerMutedAutoplayOverlayRenderer"),I3J=new g.NU("playerMutedAutoplayEndScreenRenderer");var mM8=new g.NU("unserializedPlayerResponse"),AC5=new g.NU("unserializedPlayerResponse");var Y2B=new g.NU("playlistEditEndpoint");var Go;g.Bc=new g.NU("buttonRenderer");Go=new g.NU("toggleButtonRenderer");var q1Y=new g.NU("counterfactualRenderer");var rCB=new g.NU("resolveUrlCommandMetadata");var sGt=new g.NU("modifyChannelNotificationPreferenceEndpoint");var G6v=new g.NU("pingingEndpoint");var B7Y=new g.NU("unsubscribeEndpoint");g.oq=new g.NU("subscribeButtonRenderer");var P4m=new g.NU("subscribeEndpoint");var $1J=new g.NU("buttonViewModel");var CGu=new g.NU("qrCodeRenderer");var Sv_={xKe:"LIVING_ROOM_APP_MODE_UNSPECIFIED",Zg5:"LIVING_ROOM_APP_MODE_MAIN",Ogv:"LIVING_ROOM_APP_MODE_KIDS",wGe:"LIVING_ROOM_APP_MODE_MUSIC",PZ$:"LIVING_ROOM_APP_MODE_UNPLUGGED",HgI:"LIVING_ROOM_APP_MODE_GAMING"};var NgA=new g.NU("autoplaySwitchButtonRenderer");var FR,VR9,QVa,HeY;FR=new g.NU("decoratedPlayerBarRenderer");VR9=new g.NU("chapteredPlayerBarRenderer");QVa=new g.NU("multiMarkersPlayerBarRenderer");HeY=new g.NU("chapterRenderer");g.koc=new g.NU("markerRenderer");var a3T=new g.NU("decoratedPlayheadRenderer");var rAu=new g.NU("desktopOverlayConfigRenderer");var ES9=new g.NU("engagementPanelSectionListRenderer");var AAZ=new g.NU("gatedActionsOverlayViewModel");var Rdu=new g.NU("heatMarkerRenderer");var lXc=new g.NU("heatmapRenderer");var PgL=new g.NU("watchToWatchTransitionRenderer");var bQk=new g.NU("playlistPanelRenderer");var UIu=new g.NU("productUpsellSuggestedActionViewModel");var cCB=new g.NU("suggestedActionTimeRangeTrigger"),ir5=new g.NU("suggestedActionsRenderer"),hWY=new g.NU("suggestedActionRenderer");var QFA=new g.NU("timedMarkerDecorationRenderer");var nKk=new g.NU("cipher");var wZJ=new g.NU("playerVars");var WzY=new g.NU("playerVars");var $8=g.iL.window,DIL,Kzu,ww=($8==null?void 0:(DIL=$8.yt)==null?void 0:DIL.config_)||($8==null?void 0:(Kzu=$8.ytcfg)==null?void 0:Kzu.data_)||{};g.W_("yt.config_",ww);var lq=[];var b5n=/^[\w.]*$/,Qek={q:!0,search_query:!0},Run=String(H2);var Mn=new function(){var Q=window.document;this.Z=window;this.B=Q}; g.W_("yt.ads_.signals_.getAdSignalsString",function(Q){return f1(tF(Q))});g.Qs();var ugp="XMLHttpRequest"in g.iL?function(){return new XMLHttpRequest}:null;var Vjs="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.F(Vjs);var yZa={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"},q4c="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.F(Vjs)),Z5J=!1,Xza=M_A,pza=on;g.p(In,ET);rR.prototype.then=function(Q,z,H){return this.Z?this.Z.then(Q,z,H):this.L===1&&Q?(Q=Q.call(H,this.B))&&typeof Q.then==="function"?Q:B2(Q):this.L===2&&z?(Q=z.call(H,this.B))&&typeof Q.then==="function"?Q:sM(Q):this}; rR.prototype.getValue=function(){return this.B}; rR.prototype.$goog_Thenable=!0;var P2=!1;var wG=eT||lv;var AZ_=/^([0-9\.]+):([0-9\.]+)$/;g.p(CF,ET);CF.prototype.name="BiscottiError";g.p(M0,ET);M0.prototype.name="BiscottiMissingError";var BNu={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},tq=null;var x49=t8(["data-"]),Ksu={};var dIR=0,EP=g.lQ?"webkit":Ch?"moz":g.EF?"ms":g.jN?"o":"",mIY=g.D6("ytDomDomGetNextId")||function(){return++dIR}; g.W_("ytDomDomGetNextId",mIY);var wzc={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};$Q.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; $Q.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; $Q.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var js=g.iL.ytEventsEventsListeners||{};g.W_("ytEventsEventsListeners",js);var eR_=g.iL.ytEventsEventsCounter||{count:0};g.W_("ytEventsEventsCounter",eR_);var zEu=tj(function(){var Q=!1;try{var z=Object.defineProperty({},"passive",{get:function(){Q=!0}}); window.addEventListener("test",null,z)}catch(H){}return Q}),lRJ=tj(function(){var Q=!1; try{var z=Object.defineProperty({},"capture",{get:function(){Q=!0}}); window.addEventListener("test",null,z)}catch(H){}return Q});var jR;jR=window;g.NV=jR.ytcsi&&jR.ytcsi.now?jR.ytcsi.now:jR.performance&&jR.performance.timing&&jR.performance.now&&jR.performance.timing.navigationStart?function(){return jR.performance.timing.navigationStart+jR.performance.now()}:function(){return(new Date).getTime()};g.zY(Jq,g.h);Jq.prototype.U=function(Q){Q.Z===void 0&&kOk(Q);var z=Q.Z;Q.B===void 0&&kOk(Q);this.Z=new g.t6(z,Q.B)}; Jq.prototype.Wr=function(){return this.Z||new g.t6}; Jq.prototype.Ze=function(){if(this.Z){var Q=(0,g.NV)();if(this.D!=0){var z=this.j,H=this.Z,f=z.x-H.x;z=z.y-H.y;f=Math.sqrt(f*f+z*z)/(Q-this.D);this.B[this.L]=Math.abs((f-this.S)/this.S)>.5?1:0;for(H=z=0;H<4;H++)z+=this.B[H]||0;z>=3&&this.Y();this.S=f}this.D=Q;this.j=this.Z;this.L=(this.L+1)%4}}; Jq.prototype.zv=function(){g.Gr(this.N);g.xQ(this.wh)};g.p(N0,g.h);N0.prototype.X=function(Q,z,H,f,b){H=g.QC((0,g.lL)(H,f||this.ZJ));H={target:Q,name:z,callback:H};var L;b&&zEu()&&(L={passive:!0});Q.addEventListener(z,H.callback,L);this.Y.push(H);return H}; N0.prototype.DS=function(Q){for(var z=0;z=D.Gj)||x.Z.version>=T||x.Z.objectStoreNames.contains(U)||I.push(U)}v=I;if(v.length===0){G.bT(5);break}y=Object.keys(H.options.lU); q=X.objectStoreNames();if(H.SH.options.version+1)throw C.close(),H.L=!1,DP6(H,t);return G.return(C);case 8:throw z(), M instanceof Error&&!g.jT("ytidb_async_stack_killswitch")&&(M.stack=M.stack+"\n"+u.substring(u.indexOf("\n")+1)),$w(M,H.name,"",(E=H.options.version)!=null?E:-1);}})} function z(){H.Z===f&&(H.Z=void 0)} var H=this;if(!this.L)throw DP6(this);if(this.Z)return this.Z;var f,b={blocking:function(L){L.close()}, closed:z,CWh:z,upgrade:this.options.upgrade};return this.Z=f=Q()};var dG=new Kf("YtIdbMeta",{lU:{databases:{Gj:1}},upgrade:function(Q,z){z(1)&&g.A1(Q,"databases",{keyPath:"actualName"})}});var e9,Ta=new function(){}(new function(){});new g.nW;g.p(QH,Kf);QH.prototype.B=function(Q,z,H){H=H===void 0?{}:H;return(this.options.shared?lx9:eEk)(Q,z,Object.assign({},H))}; QH.prototype.delete=function(Q){Q=Q===void 0?{}:Q;return(this.options.shared?HT_:RE8)(this.name,Q)};var HSu={},bTA=g.zK("ytGcfConfig",{lU:(HSu.coldConfigStore={Gj:1},HSu.hotConfigStore={Gj:1},HSu),shared:!1,upgrade:function(Q,z){z(1)&&(g.aE(g.A1(Q,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.aE(g.A1(Q,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.p(fc,g.h);fc.prototype.zv=function(){for(var Q=g.n(this.B),z=Q.next();!z.done;z=Q.next()){var H=this.Z;z=H.indexOf(z.value);z>=0&&H.splice(z,1)}this.B.length=0;g.h.prototype.zv.call(this)};vU.prototype.uU=function(Q){this.hotHashData=Q;g.W_("yt.gcf.config.hotHashData",this.hotHashData||null)};var fcs=typeof TextEncoder!=="undefined"?new TextEncoder:null,mUA=fcs?function(Q){return fcs.encode(Q)}:function(Q){Q=g.ZL(Q); for(var z=new Uint8Array(Q.length),H=0;H=z?!1:!0}; g.S.a7=function(){var Q=this;if(!aW(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.XR.uQ("QUEUED",this.Iy).then(function(z){z&&!Q.xg(z,Q.Nb)?Q.eT.pE(function(){return g.B(function(H){if(H.Z==1)return z.id===void 0?H.bT(2):g.Y(H,Q.XR.ZI(z.id,Q.Iy),2);Q.a7();g.Gu(H)})}):Q.KA.yP()&&Q.I2()})};var iS;var OFJ={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135, mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28, nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42, assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225, liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73, visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88, spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153, vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136, mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167, kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387, transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189, ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258, ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221, accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245, musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270, yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296, notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478, tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340, iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361, mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380, mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400, clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420, mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16, mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443, cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,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 L8O={},qMp=g.zK("ServiceWorkerLogsDatabase",{lU:(L8O.SWHealthLog={Gj:1},L8O),shared:!0,upgrade:function(Q,z){z(1)&&g.aE(g.A1(Q,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var Dg={},n7Z=0;var Kc;d2.prototype.requestComplete=function(Q,z){z&&(this.B=!0);Q=this.removeParams(Q);this.Z.get(Q)||this.Z.set(Q,z)}; d2.prototype.isEndpointCFR=function(Q){Q=this.removeParams(Q);return(Q=this.Z.get(Q))?!1:Q===!1&&this.B?!0:null}; d2.prototype.removeParams=function(Q){return Q.split("?")[0]}; d2.prototype.removeParams=d2.prototype.removeParams;d2.prototype.isEndpointCFR=d2.prototype.isEndpointCFR;d2.prototype.requestComplete=d2.prototype.requestComplete;d2.getInstance=mu;g.p(w2,g.Qe);g.S=w2.prototype;g.S.yP=function(){return this.Z.yP()}; g.S.IQ=function(Q){this.Z.Z=Q}; g.S.Mmj=function(){var Q=window.navigator.onLine;return Q===void 0?!0:Q}; g.S.gw=function(){this.B=!0}; g.S.listen=function(Q,z){return this.Z.listen(Q,z)}; g.S.Kj=function(Q){Q=ip(this.Z,Q);Q.then(function(z){g.jT("use_cfr_monitor")&&mu().requestComplete("generate_204",z)}); return Q}; w2.prototype.sendNetworkCheckRequest=w2.prototype.Kj;w2.prototype.listen=w2.prototype.listen;w2.prototype.enableErrorFlushing=w2.prototype.gw;w2.prototype.getWindowStatus=w2.prototype.Mmj;w2.prototype.networkStatusHint=w2.prototype.IQ;w2.prototype.isNetworkAvailable=w2.prototype.yP;w2.getInstance=Gr6;g.p(g.kC,g.Qe);g.kC.prototype.yP=function(){var Q=g.D6("yt.networkStatusManager.instance.isNetworkAvailable");return Q?Q.bind(this.B)():!0}; g.kC.prototype.IQ=function(Q){var z=g.D6("yt.networkStatusManager.instance.networkStatusHint").bind(this.B);z&&z(Q)}; g.kC.prototype.Kj=function(Q){var z=this,H;return g.B(function(f){H=g.D6("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(z.B);return g.jT("skip_network_check_if_cfr")&&mu().isEndpointCFR("generate_204")?f.return(new Promise(function(b){var L;z.IQ(((L=window.navigator)==null?void 0:L.onLine)||!0);b(z.yP())})):H?f.return(H(Q)):f.return(!0)})};var TK;g.p(ei,U5);ei.prototype.writeThenSend=function(Q,z){z||(z={});z=RW(Q,z);g.Td()||(this.Z=!1);U5.prototype.writeThenSend.call(this,Q,z)}; ei.prototype.sendThenWrite=function(Q,z,H){z||(z={});z=RW(Q,z);g.Td()||(this.Z=!1);U5.prototype.sendThenWrite.call(this,Q,z,H)}; ei.prototype.sendAndWrite=function(Q,z){z||(z={});z=RW(Q,z);g.Td()||(this.Z=!1);U5.prototype.sendAndWrite.call(this,Q,z)}; ei.prototype.awaitInitialization=function(){return this.L.promise};var O18=g.iL.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.W_("ytNetworklessLoggingInitializationOptions",O18);g.Q7.prototype.isReady=function(){!this.config_&&$Up()&&(this.config_=g.qR());return!!this.config_};var ucu,ft,Lt;ucu=g.iL.ytPubsubPubsubInstance||new g.JD;ft=g.iL.ytPubsubPubsubSubscribedKeys||{};Lt=g.iL.ytPubsubPubsubTopicToKeys||{};g.b8=g.iL.ytPubsubPubsubIsSynchronous||{};g.JD.prototype.subscribe=g.JD.prototype.subscribe;g.JD.prototype.unsubscribeByKey=g.JD.prototype.NP;g.JD.prototype.publish=g.JD.prototype.publish;g.JD.prototype.clear=g.JD.prototype.clear;g.W_("ytPubsubPubsubInstance",ucu);g.W_("ytPubsubPubsubTopicToKeys",Lt);g.W_("ytPubsubPubsubIsSynchronous",g.b8); g.W_("ytPubsubPubsubSubscribedKeys",ft);var YML={};g.p(Eb,g.h);Eb.prototype.append=function(Q){if(!this.B)throw Error("This does not support the append operation");Q=Q.ai();this.ai().appendChild(Q)}; g.p(pt,Eb);pt.prototype.ai=function(){return this.Z};g.p(nt,g.h);nt.prototype.onTouchStart=function(Q){this.Y=!0;this.B=Q.touches.length;this.Z.isActive()&&(this.Z.stop(),this.S=!0);Q=Q.touches;this.j=BRk(this,Q)||Q.length!=1;var z=Q.item(0);this.j||!z?this.U=this.N=Infinity:(this.N=z.clientX,this.U=z.clientY);for(z=this.L.length=0;z=0)}if(z||Q&&Math.pow(Q.clientX-this.N,2)+Math.pow(Q.clientY-this.U,2)>25)this.D=!0}; nt.prototype.onTouchEnd=function(Q){var z=Q.changedTouches;z&&this.Y&&this.B==1&&!this.D&&!this.S&&!this.j&&BRk(this,z)&&(this.Ze=Q,this.Z.start());this.B=Q.touches.length;this.B===0&&(this.D=this.Y=!1,this.L.length=0);this.S=!1};var jv=Date.now().toString();var JL={};var r6=Symbol("injectionDeps");Iw.prototype.toString=function(){return"InjectionToken("+this.name+")"}; Una.prototype.resolve=function(Q){return Q instanceof AL?sb(this,Q.key,[],!0):sb(this,Q,[])};var Bb;var aw=window;var hL=g.jT("web_enable_lifecycle_monitoring")&&Ub()!==0,VTJ=g.jT("web_enable_lifecycle_monitoring");WWc.prototype.cancel=function(){for(var Q=g.n(this.Z),z=Q.next();!z.done;z=Q.next())z=z.value,z.jobId===void 0||z.uS||this.scheduler.xF(z.jobId),z.uS=!0;this.B.resolve()};g.S=Wb.prototype;g.S.install=function(Q){this.plugins.push(Q);return this}; g.S.uninstall=function(){var Q=this;g.A8.apply(0,arguments).forEach(function(z){z=Q.plugins.indexOf(z);z>-1&&Q.plugins.splice(z,1)})}; g.S.transition=function(Q,z){var H=this;hL&&i18(this.state);var f=this.transitions.find(function(L){return Array.isArray(L.from)?L.from.find(function(u){return u===H.state&&L.ac===Q}):L.from===H.state&&L.ac===Q}); if(f){this.B&&(Dnp(this.B),this.B=void 0);dnZ(this,Q,z);this.state=Q;hL&&cb(this.state);f=f.action.bind(this);var b=this.plugins.filter(function(L){return L[Q]}).map(function(L){return L[Q]}); f(KWY(this,b),z)}else throw Error("no transition specified from "+this.state+" to "+Q);}; g.S.XS$=function(Q){var z=g.A8.apply(1,arguments);g.za();for(var H=g.n(Q),f=H.next(),b={};!f.done;b={Er:void 0},f=H.next())b.Er=f.value,tKp(function(L){return function(){Kt(L.Er.name);d6(function(){return L.Er.callback.apply(L.Er,g.F(z))}); V7(L.Er.name)}}(b))}; g.S.i2$=function(Q){var z=g.A8.apply(1,arguments),H,f,b,L;return g.B(function(u){u.Z==1&&(g.za(),H=g.n(Q),f=H.next(),b={});if(u.Z!=3){if(f.done)return u.bT(0);b.j5=f.value;b.tf=void 0;L=function(X){return function(){Kt(X.j5.name);var v=d6(function(){return X.j5.callback.apply(X.j5,g.F(z))}); uM(v)?X.tf=g.jT("web_lifecycle_error_handling_killswitch")?v.then(function(){V7(X.j5.name)}):v.then(function(){V7(X.j5.name)},function(y){hz9(y); V7(X.j5.name)}):V7(X.j5.name)}}(b); tKp(L);return b.tf?g.Y(u,b.tf,3):u.bT(3)}b={j5:void 0,tf:void 0};f=H.next();return u.bT(2)})}; g.S.cD=function(Q){var z=g.A8.apply(1,arguments),H=this,f=Q.map(function(b){return{F6:function(){Kt(b.name);d6(function(){return b.callback.apply(b,g.F(z))}); V7(b.name)}, priority:D7(H,b)}}); f.length&&(this.B=new WWc(f))}; g.Xa.Object.defineProperties(Wb.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var w6;g.p(mC,Wb);mC.prototype.S=function(Q,z){var H=this;this.Z=g.R4(0,function(){H.currentState==="application_navigating"&&H.transition("none")},5E3); Q(z==null?void 0:z.event)}; mC.prototype.j=function(Q,z){this.Z&&(g.Wz.xF(this.Z),this.Z=null);Q(z==null?void 0:z.event)};var Zw=[];g.W_("yt.logging.transport.getScrapedGelPayloads",function(){return Zw});kk.prototype.storePayload=function(Q,z){Q=Tw(Q);this.store[Q]?this.store[Q].push(z):(this.B={},this.store[Q]=[z]);this.Z++;g.jT("more_accurate_gel_parser")&&(z=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(z));return Q}; kk.prototype.smartExtractMatchingEntries=function(Q){if(!Q.keys.length)return[];for(var z=l8(this,Q.keys.splice(0,1)[0]),H=[],f=0;f=0){f=!1;break a}}f=!0}f&&(z=iU(z))&&this.xi(z)}}; g.S.dL=function(Q){return Q}; g.S.onTouchStart=function(Q){this.L3.onTouchStart(Q)}; g.S.onTouchMove=function(Q){this.L3.onTouchMove(Q)}; g.S.onTouchEnd=function(Q){if(this.L3)this.L3.onTouchEnd(Q)}; g.S.xi=function(Q){this.layoutId?this.dh.executeCommand(Q,this.layoutId):g.BT(new g.wD("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))}; g.S.createServerVe=function(Q,z){this.api.createServerVe(Q,this);this.api.setTrackingParams(Q,z)}; g.S.logVisibility=function(Q,z){this.api.hasVe(Q)&&this.api.logVisibility(Q,z,this.interactionLoggingClientData)}; g.S.zv=function(){this.clear(null);this.DS(this.rT);for(var Q=g.n(this.De),z=Q.next();!z.done;z=Q.next())this.DS(z.value);g.Ca.prototype.zv.call(this)};g.p(sc,tB); sc.prototype.init=function(Q,z,H){tB.prototype.init.call(this,Q,z,H);this.Z=z;if(z.text==null&&z.icon==null)g.PT(Error("ButtonRenderer did not have text or an icon set."));else{switch(z.style||null){case "STYLE_UNKNOWN":Q="ytp-ad-button-link";break;default:Q=null}Q!=null&&g.SK(this.element,Q);z.text!=null&&(Q=g.pa(z.text),g.j5(Q)||(this.element.setAttribute("aria-label",Q),this.L=new g.Ca({G:"span",J:"ytp-ad-button-text",BI:Q}),g.W(this,this.L),this.L.Gv(this.element)));z.accessibilityData&&z.accessibilityData.accessibilityData&& z.accessibilityData.accessibilityData.label&&!g.j5(z.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",z.accessibilityData.accessibilityData.label);z.icon!=null&&(z=rs(z.icon,this.D),z!=null&&(this.B=new g.Ca({G:"span",J:"ytp-ad-button-icon",W:[z]}),g.W(this,this.B)),this.j?uT(this.element,this.B.element,0):this.B.Gv(this.element))}}; sc.prototype.clear=function(){this.hide()}; sc.prototype.onClick=function(Q){tB.prototype.onClick.call(this,Q);Q=g.n(c1J(this));for(var z=Q.next();!z.done;z=Q.next())z=z.value,this.layoutId?this.dh.executeCommand(z,this.layoutId):g.BT(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.p(Bf,g.h);Bf.prototype.zv=function(){this.B&&g.xQ(this.B);this.Z.clear();Pf=null;g.h.prototype.zv.call(this)}; Bf.prototype.register=function(Q,z){z&&this.Z.set(Q,z)}; var Pf=null;g.p(cf,tB); cf.prototype.init=function(Q,z,H){tB.prototype.init.call(this,Q,z,H);Q=z.hoverText||null;z=z.button&&g.K(z.button,g.Bc)||null;z==null?g.BT(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new sc(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,void 0,void 0,void 0,void 0,this.L),g.W(this,this.button),this.button.init(uI("button"),z,this.macros),Q&&this.button.element.setAttribute("aria-label",g.pa(Q)),this.button.Gv(this.element),this.U&&!g.un(this.button.element, "ytp-ad-clickable")&&g.SK(this.button.element,"ytp-ad-clickable"),this.L&&(g.SK(this.button.element,"ytp-ad-hover-text-button--clean-player"),this.api.V("clean_player_style_fix_on_web")&&g.SK(this.button.element,"ytp-ad-hover-text-button--clean-player-with-light-shadow")),Q&&(this.B=new g.Ca({G:"div",J:"ytp-ad-hover-text-container"}),this.j&&(z=new g.Ca({G:"div",J:"ytp-ad-hover-text-callout"}),z.Gv(this.B.element),g.W(this,z)),g.W(this,this.B),this.B.Gv(this.element),z=av(Q),uT(this.B.element,z,0)), this.show())}; cf.prototype.hide=function(){this.button&&this.button.hide();this.B&&this.B.hide();tB.prototype.hide.call(this)}; cf.prototype.show=function(){this.button&&this.button.show();tB.prototype.show.call(this)};g.p(hB,tB); hB.prototype.init=function(Q,z,H){tB.prototype.init.call(this,Q,z,H);H=(Q=z.thumbnail)&&iI(Q)||"";g.j5(H)?Math.random()<.01&&g.PT(Error("Found AdImage without valid image URL")):(this.Z?g.q2(this.element,"backgroundImage","url("+H+")"):ea(this.element,{src:H}),ea(this.element,{alt:Q&&Q.accessibility&&Q.accessibility.label||""}),z&&z.adRendererCommands&&z.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; hB.prototype.clear=function(){this.hide()};g.p(Wf,tB);g.S=Wf.prototype;g.S.hide=function(){tB.prototype.hide.call(this);this.L&&this.L.focus()}; g.S.show=function(){this.L=document.activeElement;tB.prototype.show.call(this);this.D.focus()}; g.S.init=function(Q,z,H){tB.prototype.init.call(this,Q,z,H);this.B=z;z.dialogMessages||z.title!=null?z.confirmLabel==null?g.BT(Error("ConfirmDialogRenderer.confirmLabel was not set.")):z.cancelLabel==null?g.BT(Error("ConfirmDialogRenderer.cancelLabel was not set.")):DVk(this,z):g.BT(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.S.clear=function(){g.Aq(this.Z);this.hide()}; g.S.vW=function(){this.hide()}; g.S.RC=function(){var Q=this.B.cancelEndpoint;Q&&(this.layoutId?this.dh.executeCommand(Q,this.layoutId):g.BT(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.S.JS=function(){var Q=this.B.confirmNavigationEndpoint||this.B.confirmEndpoint;Q&&(this.layoutId?this.dh.executeCommand(Q,this.layoutId):g.BT(Error("Missing layoutId for confirm dialog.")));this.hide()};g.p(Dv,tB);g.S=Dv.prototype; g.S.init=function(Q,z,H){tB.prototype.init.call(this,Q,z,H);this.L=z;if(z.defaultText==null&&z.defaultIcon==null)g.BT(Error("ToggleButtonRenderer must have either text or icon set."));else if(z.defaultIcon==null&&z.toggledIcon!=null)g.BT(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(z.style){switch(z.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":Q="ytp-ad-toggle-button-default-style";break;default:Q=null}Q!=null&&g.SK(this.D,Q)}Q={};z.defaultText? (H=g.pa(z.defaultText),g.j5(H)||(Q.buttonText=H,this.api.C().experiments.Nc("a11y_h5_associate_survey_question")||this.Z.setAttribute("aria-label",H),this.api.C().experiments.Nc("fix_h5_toggle_button_a11y")&&this.B.setAttribute("aria-label",H))):g.xe(this.yl,!1);z.defaultTooltip&&(Q.tooltipText=z.defaultTooltip,this.Z.hasAttribute("aria-label")||this.B.setAttribute("aria-label",z.defaultTooltip));z.defaultIcon?(H=rs(z.defaultIcon),this.updateValue("untoggledIconTemplateSpec",H),z.toggledIcon?(this.wh= !0,H=rs(z.toggledIcon),this.updateValue("toggledIconTemplateSpec",H)):(g.xe(this.U,!0),g.xe(this.j,!1)),g.xe(this.Z,!1)):g.xe(this.B,!1);g.Ys(Q)||this.update(Q);z.isToggled&&(g.SK(this.D,"ytp-ad-toggle-button-toggled"),this.toggleButton(z.isToggled));Ka(this);this.X(this.element,"change",this.CL);this.show()}}; g.S.onClick=function(Q){this.De.length>0&&(this.toggleButton(!this.isToggled()),this.CL());tB.prototype.onClick.call(this,Q)}; g.S.CL=function(){g.qP(this.D,"ytp-ad-toggle-button-toggled",this.isToggled());for(var Q=g.n(KxY(this,this.isToggled())),z=Q.next();!z.done;z=Q.next())z=z.value,this.layoutId?this.dh.executeCommand(z,this.layoutId):g.BT(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);Ka(this)}; g.S.clear=function(){this.hide()}; g.S.toggleButton=function(Q){g.qP(this.D,"ytp-ad-toggle-button-toggled",Q);this.Z.checked=Q;Ka(this)}; g.S.isToggled=function(){return this.Z.checked};g.p(VR,N0);VR.prototype.j=function(Q){if(Array.isArray(Q)){Q=g.n(Q);for(var z=Q.next();!z.done;z=Q.next())z=z.value,z instanceof V98&&this.D(z)}};g.p(ds,tB);g.S=ds.prototype;g.S.init=function(Q,z,H){tB.prototype.init.call(this,Q,z,H);z.reasons?z.confirmLabel==null?g.BT(Error("AdFeedbackRenderer.confirmLabel was not set.")):(z.cancelLabel==null&&g.PT(Error("AdFeedbackRenderer.cancelLabel was not set.")),z.title==null&&g.PT(Error("AdFeedbackRenderer.title was not set.")),ka8(this,z)):g.BT(Error("AdFeedbackRenderer.reasons were not set."))}; g.S.clear=function(){OP(this.j);OP(this.U);this.D.length=0;this.hide()}; g.S.hide=function(){this.Z&&this.Z.hide();this.B&&this.B.hide();tB.prototype.hide.call(this);this.L&&this.L.focus()}; g.S.show=function(){this.Z&&this.Z.show();this.B&&this.B.show();this.L=document.activeElement;tB.prototype.show.call(this);this.j.focus()}; g.S.n1=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.S.YjI=function(){this.hide()}; mX.prototype.ai=function(){return this.Z.element}; mX.prototype.getCommand=function(){return this.B}; mX.prototype.isChecked=function(){return this.L.checked};g.p(ws,Wf);ws.prototype.vW=function(Q){Wf.prototype.vW.call(this,Q);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; ws.prototype.RC=function(Q){Wf.prototype.RC.call(this,Q);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; ws.prototype.JS=function(Q){Wf.prototype.JS.call(this,Q);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.p(kj,tB);g.S=kj.prototype; g.S.init=function(Q,z,H){tB.prototype.init.call(this,Q,z,H);this.j=z;if(z.dialogMessage==null&&z.title==null)g.BT(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{z.confirmLabel==null&&g.PT(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(Q=z.closeOverlayRenderer&&g.K(z.closeOverlayRenderer,g.Bc)||null)this.Z=new sc(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), g.W(this,this.Z),this.Z.init(uI("button"),Q,this.macros),this.Z.Gv(this.element);z.title&&(Q=g.pa(z.title),this.updateValue("title",Q));if(z.adReasons)for(Q=z.adReasons,H=0;H=this.jm?(this.wh.hide(),this.iT=!0,this.publish("i")):this.L&&this.L.isTemplated()&&(Q=Math.max(0,Math.ceil((this.jm-Q)/1E3)),Q!=this.C3&&(lI(this.L,{TIME_REMAINING:String(Q)}),this.C3=Q)))}};g.p(Lp,Rv);g.S=Lp.prototype; g.S.init=function(Q,z,H){Rv.prototype.init.call(this,Q,z,H);if(z.image&&z.image.thumbnail)if(z.headline)if(z.description)if((Q=z.actionButton&&g.K(z.actionButton,g.Bc))&&Q.navigationEndpoint){var f=this.api.getVideoData(2);if(f!=null)if(z.image&&z.image.thumbnail){var b=z.image.thumbnail.thumbnails;b!=null&&b.length>0&&g.j5(g.R$(b[0].url))&&(b[0].url=f.profilePicture)}else g.PT(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.L.init(uI("ad-image"),z.image,H);this.j.init(uI("ad-text"), z.headline,H);this.D.init(uI("ad-text"),z.description,H);this.B.init(uI("button"),Q,H);H=ms(this.B.element);dN(this.B.element,H+" This link opens in new tab");this.wh=Q.navigationEndpoint;this.api.Fv()||this.show();this.api.C().V("enable_larger_flyout_cta_on_desktop")&&(this.Mc("ytp-flyout-cta").classList.add("ytp-flyout-cta-large"),this.Mc("ytp-flyout-cta-body").classList.add("ytp-flyout-cta-body-large"),this.Mc("ytp-flyout-cta-headline-container").classList.add("ytp-flyout-cta-headline-container-dark-background"), this.Mc("ytp-flyout-cta-description-container").classList.add("ytp-flyout-cta-description-container-dark-background"),this.Mc("ytp-flyout-cta-text-container").classList.add("ytp-flyout-cta-text-container-large"),this.Mc("ytp-flyout-cta-action-button-container").classList.add("ytp-flyout-cta-action-button-container-large"),this.B.element.classList.add("ytp-flyout-cta-action-button-large"),this.B.element.classList.add("ytp-flyout-cta-action-button-rounded-large"),this.Mc("ytp-flyout-cta-icon-container").classList.add("ytp-flyout-cta-icon-container-large")); this.api.addEventListener("playerUnderlayVisibilityChange",this.ub.bind(this));this.yl=z.startMs||0;Q_(this)}else g.BT(Error("FlyoutCtaRenderer has no valid action button."));else g.BT(Error("FlyoutCtaRenderer has no description AdText."));else g.BT(Error("FlyoutCtaRenderer has no headline AdText."));else g.PT(Error("FlyoutCtaRenderer has no image."))}; g.S.onClick=function(Q){Rv.prototype.onClick.call(this,Q);this.api.pauseVideo();!g.XU(this.B.element,Q.target)&&this.wh&&(this.layoutId?this.dh.executeCommand(this.wh,this.layoutId):g.BT(Error("Missing layoutId for flyout cta.")))}; g.S.ND=function(){if(this.Z){var Q=this.Z.getProgressState();(Q&&Q.current||this.jm)&&1E3*Q.current>=this.yl&&(zS(this),g.vO(this.element,"ytp-flyout-cta-inactive"),this.B.element.removeAttribute("tabIndex"))}}; g.S.Is=function(){this.clear()}; g.S.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.ub.bind(this))}; g.S.show=function(){this.B&&this.B.show();Rv.prototype.show.call(this)}; g.S.hide=function(){this.B&&this.B.hide();Rv.prototype.hide.call(this)}; g.S.ub=function(Q){Q=="hidden"?this.show():this.hide()};g.p(uA,tB);g.S=uA.prototype; g.S.init=function(Q,z,H){tB.prototype.init.call(this,Q,z,H);this.Z=z;if(this.Z.rectangle)for(Q=this.Z.likeButton&&g.K(this.Z.likeButton,Go),z=this.Z.dislikeButton&&g.K(this.Z.dislikeButton,Go),this.L.init(uI("toggle-button"),Q,H),this.B.init(uI("toggle-button"),z,H),this.X(this.element,"change",this.Io),this.D.show(100),this.show(),H=g.n(this.Z&&this.Z.impressionCommands||[]),Q=H.next();!Q.done;Q=H.next())Q=Q.value,this.layoutId?this.dh.executeCommand(Q,this.layoutId):g.BT(Error("Missing layoutId for instream user sentiment."))}; g.S.clear=function(){this.hide()}; g.S.hide=function(){this.L.hide();this.B.hide();tB.prototype.hide.call(this)}; g.S.show=function(){this.L.show();this.B.show();tB.prototype.show.call(this)}; g.S.Io=function(){PW6(this.element,"ytp-ad-instream-user-sentiment-selected");this.Z.postMessageAction&&this.api.F$("onYtShowToast",this.Z.postMessageAction);this.D.hide()}; g.S.onClick=function(Q){this.De.length>0&&this.Io();tB.prototype.onClick.call(this,Q)};g.p(Sh,g.h);g.S=Sh.prototype;g.S.zv=function(){this.reset();g.h.prototype.zv.call(this)}; g.S.reset=function(){g.Aq(this.D);this.j=!1;this.Z&&this.Z.stop();this.S.stop();this.L&&(this.L=!1,this.Y.play())}; g.S.start=function(){this.reset();this.D.X(this.B,"mouseover",this.FZ,this);this.D.X(this.B,"mouseout",this.Nh,this);this.Ze&&(this.D.X(this.B,"focusin",this.FZ,this),this.D.X(this.B,"focusout",this.Nh,this));this.Z?this.Z.start():(this.j=this.L=!0,g.q2(this.B,{opacity:this.U}))}; g.S.FZ=function(){this.L&&(this.L=!1,this.Y.play());this.S.stop();this.Z&&this.Z.stop()}; g.S.Nh=function(){this.j?this.S.start():this.Z&&this.Z.start()}; g.S.ql=function(){this.L||(this.L=!0,this.N.play(),this.j=!0)};var S5v=[new XS("b.f_",!1,0),new XS("j.s_",!1,2),new XS("r.s_",!1,4),new XS("e.h_",!1,6),new XS("i.s_",!0,8),new XS("s.t_",!1,10),new XS("p.h_",!1,12),new XS("s.i_",!1,14),new XS("f.i_",!1,16),new XS("a.b_",!1,18),new XS("a.o_",!1),new XS("g.o_",!1,22),new XS("p.i_",!1,24),new XS("p.m_",!1),new XS("n.k_",!0,20),new XS("i.f_",!1),new XS("a.s_",!0),new XS("m.c_",!1),new XS("n.h_",!1,26),new XS("o.p_",!1)].reduce(function(Q,z){Q[z.B]=z;return Q},{});g.p(pp,Rv);g.S=pp.prototype; g.S.init=function(Q,z,H){Rv.prototype.init.call(this,Q,z,H);this.wh=z;(this.yl=vCZ(this))&&g.PT(Error("hasAdControlInClickCommands_ is true."));if(!z||g.Ys(z))g.BT(Error("SkipButtonRenderer was not specified or empty."));else if(!z.message||g.Ys(z.message))g.BT(Error("SkipButtonRenderer.message was not specified or empty."));else{Q=this.j?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"};z=rs(Q);z==null?g.BT(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+Q.iconType+".")): (this.D=new g.Ca({G:"button",lT:[this.j?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],W:[{G:"span",J:this.j?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",W:[z]}]}),g.W(this,this.D),this.D.Gv(this.L.element),this.B=new eE(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,"ytp-ad-skip-button-text"),this.j&&this.B.element.classList.add("ytp-ad-skip-button-text-centered"),this.B.init(uI("ad-text"),this.wh.message,H),g.W(this,this.B),uT(this.D.element,this.B.element, 0));var f=f===void 0?null:f;H=this.api.C();!(this.De.length>0)&&H.B&&($h?0:"ontouchstart"in document.documentElement&&(Il9()||Zk()))&&(this.DS(this.rT),f&&this.DS(f),this.De=[this.X(this.element,"touchstart",this.onTouchStart,this),this.X(this.element,"touchmove",this.onTouchMove,this),this.X(this.element,"touchend",this.onTouchEnd,this)])}}; g.S.clear=function(){this.jm.reset();this.hide()}; g.S.hide=function(){this.L.hide();this.B&&this.B.hide();zS(this);Rv.prototype.hide.call(this)}; g.S.onClick=function(Q){if(this.D!=null){if(Q){var z=Q||window.event;z.returnValue=!1;z.preventDefault&&z.preventDefault()}var H;if(Lu6(Q,{contentCpn:((H=this.api.getVideoData(1))==null?void 0:H.clientPlaybackNonce)||""})===0)this.api.F$("onAbnormalityDetected");else if(Rv.prototype.onClick.call(this,Q),this.publish("j"),this.api.F$("onAdSkip"),this.iT||!this.yl)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; g.S.dL=function(Q){if(!this.iT)return this.yl&&MZ("SkipButton click commands not pruned while ALC exist"),Q;var z,H=(z=g.K(Q,g.np))==null?void 0:z.commands;if(!H)return Q;Q=[];for(z=0;z=this.j&&y$9(this,!0)};g.p(Zh,sc);Zh.prototype.init=function(Q,z,H){sc.prototype.init.call(this,Q,z,H);Q=!1;z.text!=null&&(Q=g.pa(z.text),Q=!g.j5(Q));Q?z.navigationEndpoint==null?g.PT(Error("No visit advertiser clickthrough provided in renderer,")):z.style!=="STYLE_UNKNOWN"?g.PT(Error("Button style was not a link-style type in renderer,")):this.show():g.PT(Error("No visit advertiser text was present in the renderer."))};g.p(GS,tB); GS.prototype.init=function(Q,z,H){tB.prototype.init.call(this,Q,z,H);Q=z.text;g.j5(Ec(Q))?g.PT(Error("SimpleAdBadgeRenderer has invalid or empty text")):(Q&&Q.text&&(z=Q.text,this.L&&!this.B&&(z=this.api.C(),z=Q.text+" "+(z&&z.B?"\u2022":"\u00b7")),z={text:z,isTemplated:Q.isTemplated},Q.style&&(z.style=Q.style),Q.targetId&&(z.targetId=Q.targetId),Q=new eE(this.api,this.layoutId,this.interactionLoggingClientData,this.dh),Q.init(uI("simple-ad-badge"),z,H),Q.Gv(this.element),g.W(this,Q)),this.show())}; GS.prototype.clear=function(){this.hide()};g.p($U,SE);g.p(jh,g.Xp);g.S=jh.prototype;g.S.Uk=function(){return this.durationMs}; g.S.stop=function(){this.Z&&this.Hc.DS(this.Z)}; g.S.A7=function(Q){this.B={seekableStart:0,seekableEnd:this.durationMs/1E3,current:Q.current};this.publish("h")}; g.S.getProgressState=function(){return this.B}; g.S.w6=function(Q){g.Ex(Q,2)&&this.publish("g")};g.p(FS,g.Xp);g.S=FS.prototype;g.S.Uk=function(){return this.durationMs}; g.S.start=function(){this.Z||(this.Z=!0,this.hM.start())}; g.S.stop=function(){this.Z&&(this.Z=!1,this.hM.stop())}; g.S.A7=function(){this.rS+=100;var Q=!1;this.rS>this.durationMs&&(this.rS=this.durationMs,this.hM.stop(),Q=!0);this.B={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.rS/1E3};this.publish("h");Q&&this.publish("g")}; g.S.getProgressState=function(){return this.B};g.p(oQ,Rv);g.S=oQ.prototype;g.S.init=function(Q,z,H){Rv.prototype.init.call(this,Q,z,H);var f;if(z==null?0:(f=z.templatedCountdown)==null?0:f.templatedAdText){Q=z.templatedCountdown.templatedAdText;if(!Q.isTemplated){g.PT(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.B=new eE(this.api,this.layoutId,this.interactionLoggingClientData,this.dh);this.B.init(uI("ad-text"),Q,{});this.B.Gv(this.element);g.W(this,this.B)}this.show()}; g.S.clear=function(){this.hide()}; g.S.hide=function(){zS(this);Rv.prototype.hide.call(this)}; g.S.Is=function(){this.hide()}; g.S.ND=function(){if(this.Z!=null){var Q=this.Z.getProgressState();if(Q!=null&&Q.current!=null&&this.B){var z=this.Z instanceof jh?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:Q.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.Z instanceof FS?Q.seekableEnd:this.api.getDuration(2,!1);Q=Q.current;var H,f,b=((H=this.api.getVideoData())==null?0:(f=H.OZ)==null?0:f.call(H))?Math.max(z-Q,0):z-Q;lI(this.B,{FORMATTED_AD_DURATION_REMAINING:String(g.xU(b)), TIME_REMAINING:String(Math.ceil(b))})}}}; g.S.show=function(){Q_(this);Rv.prototype.show.call(this)};g.p(JT,eE);JT.prototype.onClick=function(Q){eE.prototype.onClick.call(this,Q);this.api.onAdUxClicked(this.componentType)};g.p(IQ,tB);IQ.prototype.init=function(Q,z){tB.prototype.init.call(this,Q,z,{});if(Q=z.content){g.vx(this.element,Q);var H,f;z=((H=z.interaction)==null?void 0:(f=H.accessibility)==null?void 0:f.label)||Q;this.element.setAttribute("aria-label",z)}else g.BT(Error("AdSimpleAttributedString does not have text content"))}; IQ.prototype.clear=function(){this.hide()}; IQ.prototype.onClick=function(Q){tB.prototype.onClick.call(this,Q)};g.p(AT,tB); AT.prototype.init=function(Q,z){tB.prototype.init.call(this,Q,z,{});(Q=z.label)&&Q.content&&!g.j5(Q.content)?(this.adBadgeText.init(uI("ad-simple-attributed-string"),new NZ(Q)),(z=z.adPodIndex)&&z.content&&!g.j5(z.content)&&(this.Z=new IQ(this.api,this.layoutId,this.interactionLoggingClientData,this.dh),this.Z.Gv(this.element),g.W(this,this.Z),this.Z.element.classList.add("ytp-ad-badge__pod-index"),this.Z.init(uI("ad-simple-attributed-string"),new NZ(z))),this.element.classList.add(this.B?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.BT(Error("No label is returned in AdBadgeViewModel."))}; AT.prototype.show=function(){this.adBadgeText.show();var Q;(Q=this.Z)==null||Q.show();tB.prototype.show.call(this)}; AT.prototype.hide=function(){this.adBadgeText.hide();var Q;(Q=this.Z)==null||Q.hide();tB.prototype.hide.call(this)};g.p(YU,tB); YU.prototype.init=function(Q,z){tB.prototype.init.call(this,Q,z,{});(Q=z.adPodIndex)&&Q.content&&!g.j5(Q.content)&&(this.Z=new IQ(this.api,this.layoutId,this.interactionLoggingClientData,this.dh),this.Z.Gv(this.element),g.W(this,this.Z),this.Z.init(uI("ad-simple-attributed-string"),new NZ(Q)),(this.api.C().V("clean_player_style_fix_on_web")?z.visibilityCondition==="AD_POD_INDEX_VISIBILITY_CONDITION_AUTOHIDE":!this.B||z.visibilityCondition!=="AD_POD_INDEX_VISIBILITY_CONDITION_ALWAYS_SHOW_IF_NONSKIPPABLE")&&this.element.classList.add("ytp-ad-pod-index--autohide")); this.element.classList.add("ytp-ad-pod-index--stark");this.api.V("clean_player_style_fix_on_web")&&this.element.classList.add("ytp-ad-pod-index--stark-with-light-shadow");this.show()}; YU.prototype.show=function(){var Q;(Q=this.Z)==null||Q.show();tB.prototype.show.call(this)}; YU.prototype.hide=function(){var Q;(Q=this.Z)==null||Q.hide();tB.prototype.hide.call(this)};g.p(rU,tB); rU.prototype.init=function(Q,z){tB.prototype.init.call(this,Q,z,{});if(z!=null&&z.text){var H;if(((H=z.text)==null?0:H.content)&&!g.j5(z.text.content)){this.Z=new g.Ca({G:"div",J:"ytp-ad-disclosure-banner__text",BI:z.text.content});g.W(this,this.Z);this.Z.Gv(this.element);var f,b;Q=((f=z.interaction)==null?void 0:(b=f.accessibility)==null?void 0:b.label)||z.text.content;this.element.setAttribute("aria-label",Q);var L;if((L=z.interaction)==null?0:L.onTap)this.B=new g.Ca({G:"div",J:"ytp-ad-disclosure-banner__chevron",W:[g.G8()]}), g.W(this,this.B),this.B.Gv(this.element);this.show()}}else g.BT(Error("No banner text found in AdDisclosureBanner."))}; rU.prototype.clear=function(){this.hide()};sx.prototype.getLength=function(){return this.Z-this.B};g.p(P6,g.Ca);P6.prototype.A7=function(){var Q=this.B.getProgressState(),z=Q.seekableEnd;this.api.getPresentingPlayerType()===2&&this.api.C().V("show_preskip_progress_bar_for_skippable_ads")&&(z=this.L?this.L/1E3:Q.seekableEnd);Q=B6(new sx(Q.seekableStart,z),Q.current,0);this.progressBar.style.width=Q*100+"%"}; P6.prototype.onStateChange=function(){g.Yh(this.api.C())||(this.api.getPresentingPlayerType()===2?this.Z===-1&&(this.show(),this.Z=this.B.subscribe("h",this.A7,this),this.A7()):this.Z!==-1&&(this.hide(),this.B.NP(this.Z),this.Z=-1))};g.p(aQ,tB); aQ.prototype.init=function(Q,z,H,f){tB.prototype.init.call(this,Q,z,H);H=!0;if(z.skipOrPreviewRenderer){if(Q=g.K(z.skipOrPreviewRenderer,bB)){var b=new gU(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,this.B,this.U);b.Gv(this.mq);b.init(uI("skip-button"),Q,this.macros);g.W(this,b)}if(Q=g.K(z.skipOrPreviewRenderer,bB)){H=!1;var L=Q.skipOffsetMilliseconds}}z.brandInteractionRenderer&&(Q=z.brandInteractionRenderer.brandInteractionRenderer,b=new uA(this.api,this.layoutId,this.interactionLoggingClientData, this.dh),b.Gv(this.yl),b.init(uI("instream-user-sentiment"),Q,this.macros),g.W(this,b));if(Q=g.K(z,WBs))if(Q=g.K(Q,WBs))b=new Lp(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,this.B,!!z.showWithoutLinkedMediaLayout),g.W(this,b),b.Gv(this.j),b.init(uI("flyout-cta"),Q,this.macros);Q=(this.api.C().V("disable_ad_duration_remaining_for_instream_video_ads")||z.adPodIndex!==void 0)&&!1;f=f&&f.videoAdDurationSeconds;if(z.adBadgeRenderer){var u=z.adBadgeRenderer;b=g.K(u,K0);b!=null?(u=new AT(this.api, this.layoutId,this.interactionLoggingClientData,this.dh,Q),g.W(this,u),u.Gv(this.Z),u.init(uI("ad-badge"),b,this.macros),this.L=u.element):(b=u.simpleAdBadgeRenderer,b==null&&(b={text:{text:"Ad",isTemplated:!1}}),u=new GS(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,!0),g.W(this,u),u.Gv(this.Z),u.init(uI("simple-ad-badge"),b,this.macros))}z.adPodIndex&&(b=g.K(z.adPodIndex,lLx),b!=null&&(H=new YU(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,H),g.W(this,H),H.Gv(this.Z), H.init(uI("ad-pod-index"),b)));z.adDurationRemaining&&!z.showWithoutLinkedMediaLayout&&(H=z.adDurationRemaining.adDurationRemainingRenderer,H==null&&(H={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),f=new oQ(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,this.B,f,Q),g.W(this,f),f.Gv(this.Z),f.init(uI("ad-duration-remaining"),H,this.macros),Q&&f.element.classList.add("ytp-ad-duration-remaining-autohide"));z.adInfoRenderer&&(f=g.K(z.adInfoRenderer, rg))&&(H=new T8(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,this.element,void 0,Q),g.W(this,H),this.api.C().V("enable_ad_pod_index_autohide")&&this.L!==null?this.Z.insertBefore(H.element,this.L.nextSibling):H.Gv(this.Z),H.init(uI("ad-info-hover-text-button"),f,this.macros));z.visitAdvertiserRenderer&&(H=g.K(z.visitAdvertiserRenderer,g.Bc))&&(b=CS9(this)&&this.D?this.D:this.Z)&&(f=new Zh(this.api,this.layoutId,this.interactionLoggingClientData,this.dh),g.W(this,f),f.Gv(b),f.init(uI("visit-advertiser"), H,this.macros),K5(f.element),H=ms(f.element),dN(f.element,H+" This link opens in new tab"));!(f=this.api.C())||g.Il(f)||f.controlsType!="3"&&!f.disableOrganicUi||(L=new P6(this.api,this.B,L,Q),L.Gv(this.jm),g.W(this,L));z.adDisclosureBannerRenderer&&(z=g.K(z.adDisclosureBannerRenderer,emB))&&(L=new rU(this.api,this.layoutId,this.interactionLoggingClientData,this.dh),L.Gv(this.wh),L.init(uI("ad-disclosure-banner"),z),g.W(this,L));this.api.C().V("enable_updated_html5_player_focus_style")&&g.SK(this.element, "ytp-ad-player-overlay-updated-focus-style");Q&&this.api.C().B&&this.Z.classList.add("ytp-ad-player-overlay-instream-info--clean-player-mweb");this.show()}; aQ.prototype.clear=function(){this.hide()};hT.prototype.set=function(Q,z,H){H=H!==void 0?Date.now()+H:void 0;this.Z.set(Q,z,H)}; hT.prototype.get=function(Q){return this.Z.get(Q)}; hT.prototype.remove=function(Q){this.Z.remove(Q)};var V_=null,dU=null,m5=null,Zcc=null;g.W_("yt.www.ads.eventcache.getLastCompanionData",function(){return V_}); g.W_("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.W_("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return dU}); g.W_("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return m5}); g.W_("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return Zcc});var $R8=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);wU.prototype.handleResponse=function(Q,z){if(!z)throw Error("request needs to be passed into ConsistencyService");var H,f;z=((H=z.lz.context)==null?void 0:(f=H.request)==null?void 0:f.consistencyTokenJars)||[];var b;(Q=(b=Q.responseContext)==null?void 0:b.consistencyTokenJar)&&this.replace(z,Q)}; wU.prototype.replace=function(Q,z){Q=g.n(Q);for(var H=Q.next();!H.done;H=Q.next())delete this.Z[H.value.encryptedTokenJarContents];Fup(this,z)};var C5J=window.location.hostname.split(".").slice(-2).join("."),Ni;TS.getInstance=function(){Ni=g.D6("yt.clientLocationService.instance");Ni||(Ni=new TS,g.W_("yt.clientLocationService.instance",Ni));return Ni}; g.S=TS.prototype; g.S.setLocationOnInnerTubeContext=function(Q){Q.client||(Q.client={});if(this.Z)Q.client.locationInfo||(Q.client.locationInfo={}),Q.client.locationInfo.latitudeE7=Math.floor(this.Z.coords.latitude*1E7),Q.client.locationInfo.longitudeE7=Math.floor(this.Z.coords.longitude*1E7),Q.client.locationInfo.horizontalAccuracyMeters=Math.round(this.Z.coords.accuracy),Q.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.L||this.locationPlayabilityToken)Q.client.locationPlayabilityToken=this.L|| this.locationPlayabilityToken}; g.S.handleResponse=function(Q){var z;Q=(z=Q.responseContext)==null?void 0:z.locationPlayabilityToken;Q!==void 0&&(this.locationPlayabilityToken=Q,this.Z=void 0,g.T5("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=kU(this))&&this.localStorage.set("yt-location-playability-token",Q,15552E3):g.UM("YT_CL",JSON.stringify({loctok:Q}),15552E3,C5J,!0))}; g.S.clearLocationPlayabilityToken=function(Q){Q==="TVHTML5"?(this.localStorage=kU(this))&&this.localStorage.remove("yt-location-playability-token"):g.iv("YT_CL");this.L=void 0;this.B!==-1&&(clearTimeout(this.B),this.B=-1)}; g.S.getCurrentPositionFromGeolocation=function(){var Q=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var z=!1,H=1E4;g.T5("INNERTUBE_CLIENT_NAME")==="MWEB"&&(z=!0,H=15E3);return new Promise(function(f,b){navigator.geolocation.getCurrentPosition(function(L){Q.Z=L;f(L)},function(L){b(L)},{enableHighAccuracy:z, maximumAge:0,timeout:H})})}; g.S.createUnpluggedLocationInfo=function(Q){var z={};Q=Q.coords;if(Q==null?0:Q.latitude)z.latitudeE7=Math.floor(Q.latitude*1E7);if(Q==null?0:Q.longitude)z.longitudeE7=Math.floor(Q.longitude*1E7);if(Q==null?0:Q.accuracy)z.locationRadiusMeters=Math.round(Q.accuracy);return z}; g.S.createLocationInfo=function(Q){var z={};Q=Q.coords;if(Q==null?0:Q.latitude)z.latitudeE7=Math.floor(Q.latitude*1E7);if(Q==null?0:Q.longitude)z.longitudeE7=Math.floor(Q.longitude*1E7);return z};g.S=N2Z.prototype;g.S.contains=function(Q){return Object.prototype.hasOwnProperty.call(this.Z,Q)}; g.S.get=function(Q){if(this.contains(Q))return this.Z[Q]}; g.S.set=function(Q,z){this.Z[Q]=z}; g.S.Im=function(){return Object.keys(this.Z)}; g.S.remove=function(Q){delete this.Z[Q]};lA.prototype.getModuleId=function(Q){return Q.serviceId.getModuleId()}; lA.prototype.get=function(Q){a:{var z=this.mappings.get(Q.toString());switch(z.type){case "mapping":Q=z.value;break a;case "factory":z=z.value();this.mappings.set(Q.toString(),{type:"mapping",value:z});Q=z;break a;default:Q=b5(z)}}return Q}; lA.prototype.registerService=function(Q,z){this.mappings.set(Q.toString(),{type:"mapping",value:z});return Q}; new lA;var IS={},Ig6=(IS.WEB_UNPLUGGED="^unplugged/",IS.WEB_UNPLUGGED_ONBOARDING="^unplugged/",IS.WEB_UNPLUGGED_OPS="^unplugged/",IS.WEB_UNPLUGGED_PUBLIC="^unplugged/",IS.WEB_CREATOR="^creator/",IS.WEB_KIDS="^kids/",IS.WEB_EXPERIMENTS="^experiments/",IS.WEB_MUSIC="^music/",IS.WEB_REMIX="^music/",IS.WEB_MUSIC_EMBEDDED_PLAYER="^music/",IS.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",IS);zv.prototype.S=function(Q,z,H){z=z===void 0?{}:z;H=H===void 0?Cc:H;var f={context:g.eh(Q.clickTrackingParams,!1,this.D)};var b=this.B(Q);if(b){this.Z(f,b,z);var L;z=g.Qv(this.L());(b=(L=g.K(Q.commandMetadata,g.ZX))==null?void 0:L.apiUrl)&&(z=b);L=O5n(hF(z));Q=Object.assign({},{command:Q},void 0);f={input:L,ZW:W2(L),lz:f,config:Q};f.config.k9?f.config.k9.identity=H:f.config.k9={identity:H};return f}g.BT(new g.wD("Error: Failed to create Request from Command.",Q))}; g.Xa.Object.defineProperties(zv.prototype,{D:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.p(HC,zv);g.p(fj,HC);fj.prototype.S=function(){return{input:"/getDatasyncIdsEndpoint",ZW:W2("/getDatasyncIdsEndpoint","GET"),lz:{}}}; fj.prototype.L=function(){return[]}; fj.prototype.B=function(){}; fj.prototype.Z=function(){};var tX5={},vkA=(tX5.GET_DATASYNC_IDS=RQ(fj),tX5);var Ag={},Ets=(Ag["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",Ag["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",Ag["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",Ag["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",Ag["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",Ag["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",Ag["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", Ag["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",Ag["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",Ag["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",Ag["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",Ag["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",Ag["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",Ag["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",Ag["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", Ag["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",Ag["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",Ag["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",Ag["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",Ag["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",Ag["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",Ag["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", Ag["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",Ag.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",Ag["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",Ag["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",Ag["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",Ag["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",Ag["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",Ag["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", Ag["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",Ag["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",Ag["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",Ag["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",Ag["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",Ag["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",Ag["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",Ag["dialog.copyright_strikes"]= "LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",Ag["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",Ag["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",Ag.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",Ag["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",Ag["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",Ag["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",Ag["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",Ag["owner.asset_groups"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",Ag["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",Ag["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",Ag["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",Ag["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",Ag["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",Ag["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",Ag["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",Ag["owner.delivery"]= "LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",Ag["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",Ag["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",Ag["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",Ag["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",Ag["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",Ag["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",Ag["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",Ag["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", Ag["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",Ag["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",Ag["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",Ag["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",Ag["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",Ag["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",Ag["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",Ag["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",Ag["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", Ag["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",Ag["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",Ag["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",Ag["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",Ag["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",Ag["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",Ag["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",Ag["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS", Ag),Y8={},agv=(Y8.auto_search="LATENCY_ACTION_AUTO_SEARCH",Y8.ad_to_ad="LATENCY_ACTION_AD_TO_AD",Y8.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",Y8.app_startup="LATENCY_ACTION_APP_STARTUP",Y8.browse="LATENCY_ACTION_BROWSE",Y8.cast_splash="LATENCY_ACTION_CAST_SPLASH",Y8.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",Y8.channels="LATENCY_ACTION_CHANNELS",Y8.chips="LATENCY_ACTION_CHIPS",Y8.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",Y8.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK", Y8.editor="LATENCY_ACTION_EDITOR",Y8.embed="LATENCY_ACTION_EMBED",Y8.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",Y8.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",Y8.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",Y8.explore="LATENCY_ACTION_EXPLORE",Y8.favorites="LATENCY_ACTION_FAVORITES",Y8.home="LATENCY_ACTION_HOME",Y8.inboarding="LATENCY_ACTION_INBOARDING",Y8.library="LATENCY_ACTION_LIBRARY",Y8.live="LATENCY_ACTION_LIVE",Y8.live_pagination= "LATENCY_ACTION_LIVE_PAGINATION",Y8.management="LATENCY_ACTION_MANAGEMENT",Y8.mini_app="LATENCY_ACTION_MINI_APP_PLAY",Y8.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",Y8.onboarding="LATENCY_ACTION_ONBOARDING",Y8.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",Y8.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",Y8.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",Y8.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",Y8.prebuffer="LATENCY_ACTION_PREBUFFER", Y8.prefetch="LATENCY_ACTION_PREFETCH",Y8.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",Y8.profile_switcher="LATENCY_ACTION_LOGIN",Y8.projects="LATENCY_ACTION_PROJECTS",Y8.reel_watch="LATENCY_ACTION_REEL_WATCH",Y8.results="LATENCY_ACTION_RESULTS",Y8.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",Y8.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",Y8.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",Y8.review="LATENCY_ACTION_REVIEW",Y8.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER", Y8.search_ui="LATENCY_ACTION_SEARCH_UI",Y8.search_suggest="LATENCY_ACTION_SUGGEST",Y8.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",Y8.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",Y8.seek="LATENCY_ACTION_PLAYER_SEEK",Y8.settings="LATENCY_ACTION_SETTINGS",Y8.store="LATENCY_ACTION_STORE",Y8.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",Y8.tenx="LATENCY_ACTION_TENX",Y8.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",Y8.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",Y8.watch="LATENCY_ACTION_WATCH", Y8.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",Y8["watch,watch7"]="LATENCY_ACTION_WATCH",Y8["watch,watch7_html5"]="LATENCY_ACTION_WATCH",Y8["watch,watch7ad"]="LATENCY_ACTION_WATCH",Y8["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",Y8.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",Y8.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",Y8.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",Y8.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",Y8.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE", Y8.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",Y8.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",Y8.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",Y8);Object.assign(agv,Ets);g.p(F7,t$);var ewn=new E5("aft-recorded",F7);var pos=g.iL.ytLoggingGelSequenceIdObj_||{};g.W_("ytLoggingGelSequenceIdObj_",pos);var oo=g.iL.ytLoggingLatencyUsageStats_||{};g.W_("ytLoggingLatencyUsageStats_",oo);xx.prototype.tick=function(Q,z,H,f){JN(this,"tick_"+Q+"_"+z)||g.y5("latencyActionTicked",{tickName:Q,clientActionNonce:z},{timestamp:H,cttAuthInfo:f})}; xx.prototype.info=function(Q,z,H){var f=Object.keys(Q).join("");JN(this,"info_"+f+"_"+z)||(Q=Object.assign({},Q),Q.clientActionNonce=z,g.y5("latencyActionInfo",Q,{cttAuthInfo:H}))}; xx.prototype.jspbInfo=function(Q,z,H){for(var f="",b=0;b=b.length?(z.append(b),Q-=b.length):Q?(z.append(new Uint8Array(b.buffer,b.byteOffset,Q)),H.append(new Uint8Array(b.buffer,b.byteOffset+Q,b.length-Q)),Q=0):H.append(b);return{Qb:z,TO:H}}; g.S.isFocused=function(Q){return Q>=this.P7&&Q=64&&(this.j.set(Q.subarray(0,64-this.B),this.B),z=64-this.B,this.B=0,T66(this,this.j,0));for(;z+64<=H;z+=64)T66(this,Q,z);z=this.start&&(Q=2&&H.ssdaiAdsConfig&&MZ("Unexpected ad placement renderers length",Q.slot,null,{length:f.length});var b;((b=H.adSlots)==null?0:b.some(function(L){var u,X;return((u=g.K(L,Uy))==null?void 0:(X=u.adSlotMetadata)==null?void 0:X.slotType)==="SLOT_TYPE_PLAYER_BYTES"}))||f.some(function(L){var u,X,v,y; return!!((u=L.renderer)==null?0:(X=u.linearAdSequenceRenderer)==null?0:(v=X.linearAds)==null?0:v.length)||!((y=L.renderer)==null||!y.instreamVideoAdRenderer)})||tEL(Q)})}; uc.prototype.Us=function(){Qv8(this.Z)};Sx.prototype.Lf=function(){var Q=this;Rta(this.B,function(){var z=bY(Q.slot.clientMetadata,"metadata_type_ad_break_request_data");return z.cueProcessedMs?Q.Z.get().fetch({YE:z.getAdBreakUrl,ip:new g.HD(z.ET,z.Ja),cueProcessedMs:z.cueProcessedMs}):Q.Z.get().fetch({YE:z.getAdBreakUrl,ip:new g.HD(z.ET,z.Ja)})})}; Sx.prototype.Us=function(){Qv8(this.B)};X5.prototype.Lf=function(){var Q=this.slot.clientMetadata,z,H=(z=this.slot.fulfilledLayout)!=null?z:bY(Q,"metadata_type_fulfilled_layout");rlv(this.callback,this.slot,H)}; X5.prototype.Us=function(){nN(this.callback,this.slot,new e("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")};yx.prototype.build=function(Q,z){return z.fulfilledLayout||vD(z,{q4:["metadata_type_fulfilled_layout"]})?new X5(Q,z):this.L(Q,z)};g.p(qS,yx); qS.prototype.L=function(Q,z){if(vD(z,{q4:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new uc(Q,z,this.Z,this.B,this.Oj,this.qc,this.Vl,this.K3,this.xN);if(vD(z,{q4:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new Sx(Q,z,this.Z,this.B,this.Oj,this.qc);throw new e("Unsupported slot with type: "+z.slotType+" and client metadata: "+LN(z.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.p(MS,yx);MS.prototype.L=function(Q,z){throw new e("Unsupported slot with type: "+z.slotType+" and client metadata: "+LN(z.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.S=Ej_.prototype;g.S.hZ=function(){return this.slot}; g.S.Ql=function(){return this.layout}; g.S.init=function(){}; g.S.release=function(){}; g.S.startRendering=function(Q){if(Q.layoutId!==this.layout.layoutId)this.callback.HS(this.slot,Q,new Ha("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 z=bY(Q.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.Fa(this.slot,Q),Y1Y(this.L, this.slot,z)):MZ("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,Q)}}; g.S.eA=function(Q,z){Q.layoutId!==this.layout.layoutId?this.callback.HS(this.slot,Q,new Ha("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.kN(this.slot,Q,z),nj6(this),gj6(this))};g.p(ni,g.Xp);g.S=ni.prototype;g.S.hZ=function(){return this.B.slot}; g.S.Ql=function(){return this.B.layout}; g.S.init=function(){this.L.get().addListener(this)}; g.S.release=function(){this.L.get().removeListener(this);this.dispose()}; g.S.wH=function(){}; g.S.Ob=function(){}; g.S.HM=function(){}; g.S.Y1=function(){}; g.S.startRendering=function(Q){var z=this;pi(this.B,Q,function(){return void z.Xn()})}; g.S.Xn=function(){this.L.get().Xn(this.Z)}; g.S.eA=function(Q,z){var H=this;pi(this.B,Q,function(){var f=H.L.get();YGv(f,H.Z,3);H.Z=[];H.callback.kN(H.slot,Q,z)})}; g.S.zv=function(){this.L.Sm()||this.L.get().removeListener(this);g.Xp.prototype.zv.call(this)}; g.Xa.Object.defineProperties(ni.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.B.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.B.layout}}});oh.prototype.IJ=function(Q,z){z=z===void 0?!1:z;var H=(this.L.get(Q)||[]).concat();if(z=z&&jvp(Q)){var f=this.L.get(z);f&&H.push.apply(H,g.F(f))}Ih(this,Q,H);this.Z.add(Q);z&&this.Z.add(z)}; oh.prototype.CH=function(Q,z){z=z===void 0?!1:z;if(!this.Z.has(Q)){var H=z&&jvp(Q);H&&(z=!this.Z.has(H));this.IJ(Q,z)}};g.p(Oan,SE);g.p(BD,ni);g.S=BD.prototype;g.S.L2=function(Q,z){$y("ads-engagement-panel-layout",Q,this.j.get().g7,this.Vl.get(),this.D,this.S,this.hZ(),this.Ql(),z)}; g.S.startRendering=function(Q){ZI(this.Ij,this.hZ(),this.Ql(),g.K(this.Ql().renderingContent,bg),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(z,H,f,b,L){return new Oan(z,H,f,b,L)},this.Z); ni.prototype.startRendering.call(this,Q)}; g.S.Fa=function(Q,z){this.S===z.layoutId&&(this.D===null?this.D=this.Vl.get().kV():MZ("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.S.kN=function(){}; g.S.iL=function(){}; g.S.AF=function(){}; g.S.lW=function(){}; g.S.je=function(){}; g.S.l2=function(){}; g.S.SU=function(){}; g.S.fA=function(){}; g.S.OX=function(){}; g.S.DY=function(){}; g.S.vS=function(){}; g.S.zv=function(){EV(this.r4(),this);ni.prototype.zv.call(this)};g.p(JBn,SE);g.p(PD,ni);g.S=PD.prototype;g.S.L2=function(Q,z){$y("banner-image",Q,this.j.get().g7,this.Vl.get(),this.D,this.S,this.hZ(),this.Ql(),z)}; g.S.startRendering=function(Q){ZI(this.Ij,this.hZ(),this.Ql(),g.K(this.Ql().renderingContent,Hc),this.callback,"metadata_type_banner_image_layout_view_model",function(z,H,f,b,L){return new JBn(z,H,f,b,L)},this.Z); ni.prototype.startRendering.call(this,Q)}; g.S.Fa=function(Q,z){this.S===z.layoutId&&(this.D===null?this.D=this.Vl.get().kV():MZ("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.S.kN=function(){}; g.S.iL=function(){}; g.S.AF=function(){}; g.S.lW=function(){}; g.S.je=function(){}; g.S.l2=function(){}; g.S.SU=function(){}; g.S.fA=function(){}; g.S.OX=function(){}; g.S.DY=function(){}; g.S.vS=function(){}; g.S.zv=function(){EV(this.r4(),this);ni.prototype.zv.call(this)};g.p(ah,SE);g.p(UB,ni);g.S=UB.prototype;g.S.L2=function(Q,z){$y("action-companion",Q,this.j.get().g7,this.Vl.get(),this.D,this.S,this.hZ(),this.Ql(),z)}; g.S.startRendering=function(Q){ZI(this.Ij,this.hZ(),this.Ql(),g.K(this.Ql().renderingContent,R9),this.callback,"metadata_type_action_companion_ad_renderer",function(z,H,f,b,L){return new ah(z,H,f,b,L)},this.Z); ni.prototype.startRendering.call(this,Q)}; g.S.Fa=function(Q,z){z.layoutId===this.layout.layoutId?this.Ij.CH("impression"):this.S===z.layoutId&&(this.D===null?this.D=this.Vl.get().kV():MZ("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.S.kN=function(){}; g.S.iL=function(){}; g.S.AF=function(){}; g.S.lW=function(){}; g.S.je=function(){}; g.S.l2=function(){}; g.S.SU=function(){}; g.S.fA=function(){}; g.S.OX=function(){}; g.S.DY=function(){}; g.S.vS=function(){}; g.S.zv=function(){EV(this.r4(),this);ni.prototype.zv.call(this)};g.p(ABu,SE);g.p(cD,ni);g.S=cD.prototype;g.S.L2=function(Q,z){$y("image-companion",Q,this.j.get().g7,this.Vl.get(),this.D,this.S,this.hZ(),this.Ql(),z)}; g.S.startRendering=function(Q){ZI(this.Ij,this.hZ(),this.Ql(),g.K(this.Ql().renderingContent,Qb),this.callback,"metadata_type_image_companion_ad_renderer",function(z,H,f,b,L){return new ABu(z,H,f,b,L)},this.Z); ni.prototype.startRendering.call(this,Q)}; g.S.Fa=function(Q,z){z.layoutId===this.layout.layoutId?this.Ij.CH("impression"):this.S===z.layoutId&&(this.D===null?this.D=this.Vl.get().kV():MZ("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.S.kN=function(){}; g.S.iL=function(){}; g.S.AF=function(){}; g.S.lW=function(){}; g.S.je=function(){}; g.S.l2=function(){}; g.S.SU=function(){}; g.S.fA=function(){}; g.S.OX=function(){}; g.S.DY=function(){}; g.S.vS=function(){}; g.S.zv=function(){EV(this.r4(),this);ni.prototype.zv.call(this)};g.p(rBc,SE);g.p(ic,ni);g.S=ic.prototype;g.S.L2=function(Q,z){$y("shopping-companion",Q,this.j.get().g7,this.Vl.get(),this.D,this.S,this.hZ(),this.Ql(),z)}; g.S.startRendering=function(Q){ZI(this.Ij,this.hZ(),this.Ql(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(z,H,f,b,L){return new rBc(z,H,f,b,L)},this.Z); ni.prototype.startRendering.call(this,Q)}; g.S.Fa=function(Q,z){z.layoutId===this.layout.layoutId?this.Ij.CH("impression"):this.S===z.layoutId&&(this.D===null?this.D=this.Vl.get().kV():MZ("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.S.kN=function(){}; g.S.iL=function(){}; g.S.AF=function(){}; g.S.lW=function(){}; g.S.je=function(){}; g.S.l2=function(){}; g.S.SU=function(){}; g.S.fA=function(){}; g.S.OX=function(){}; g.S.DY=function(){}; g.S.vS=function(){}; g.S.zv=function(){EV(this.r4(),this);ni.prototype.zv.call(this)};g.p(WD,ni);g.S=WD.prototype;g.S.startRendering=function(Q){ZI(this.Ij,this.hZ(),this.Ql(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(z,H,f,b,L){return new ah(z,H,f,b,L)},this.Z); ni.prototype.startRendering.call(this,Q)}; g.S.Fa=function(){}; g.S.kN=function(){}; g.S.iL=function(){}; g.S.AF=function(){}; g.S.lW=function(){}; g.S.je=function(){}; g.S.l2=function(){}; g.S.SU=function(){}; g.S.fA=function(){}; g.S.OX=function(){}; g.S.DY=function(){}; g.S.vS=function(){}; g.S.zv=function(){EV(this.r4(),this);ni.prototype.zv.call(this)}; g.S.L2=function(){};g.S=cBk.prototype;g.S.hZ=function(){return this.slot}; g.S.Ql=function(){return this.layout}; g.S.init=function(){this.K3.get().addListener(this);this.K3.get().XB.push(this);var Q=bY(this.layout.clientMetadata,"metadata_type_video_length_seconds"),z=bY(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");jx(this.layout.wT)&&zm(this.Bz.get(),this.layout.layoutId,{K8:z,Zj:Q,listener:this})}; g.S.release=function(){this.K3.get().removeListener(this);OkY(this.K3.get(),this);jx(this.layout.wT)&&Hy(this.Bz.get(),this.layout.layoutId)}; g.S.startRendering=function(Q){this.callback.Fa(this.slot,Q)}; g.S.eA=function(Q,z){ein(this.qc.get())&&!this.Z&&(this.Ij.CH("abandon"),this.Z=!0);this.callback.kN(this.slot,Q,z)}; g.S.mW=function(Q){switch(Q.id){case "part2viewed":this.Ij.CH("start");this.Ij.CH("impression");break;case "videoplaytime25":this.Ij.CH("first_quartile");break;case "videoplaytime50":this.Ij.CH("midpoint");break;case "videoplaytime75":this.Ij.CH("third_quartile");break;case "videoplaytime100":ein(this.qc.get())?this.Z||(this.Ij.CH("complete"),this.Z=!0):this.Ij.CH("complete");sB(this.Ij)&&Yy(this.Ij,Infinity,!0);l8n(this.qc.get())&&hX(this.B,Infinity,!0);break;case "engagedview":sB(this.Ij)||this.Ij.CH("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:MZ("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.S.onVolumeChange=function(){}; g.S.FI=function(){}; g.S.jU=function(){}; g.S.Y3=function(){}; g.S.onFullscreenToggled=function(){}; g.S.JN=function(){}; g.S.mS=function(){}; g.S.Eo=function(Q){l8n(this.qc.get())&&hX(this.B,Q*1E3,!1);sB(this.Ij)&&Yy(this.Ij,Q*1E3,!1)}; g.S.vY=function(){}; g.S.T4=function(){this.Ij.CH("active_view_measurable")}; g.S.UA=function(){this.Ij.CH("active_view_viewable")}; g.S.Wk=function(){this.Ij.CH("active_view_fully_viewable_audible_half_duration")}; g.S.RQ=function(){this.Ij.CH("audio_measurable")}; g.S.tV=function(){this.Ij.CH("audio_audible")};g.p(DI,ni);g.S=DI.prototype;g.S.init=function(){ni.prototype.init.call(this);var Q=bY(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),z={adsClientData:this.layout.cz};this.Z.push(new $U(Q,this.layout.layoutId,bY(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),z,!0))}; g.S.iz=function(){this.D||this.K3.get().resumeVideo(1)}; g.S.startRendering=function(Q){ni.prototype.startRendering.call(this,Q);vy(this.K3.get(),"ad-showing");this.callback.Fa(this.slot,Q);this.S.G0=this}; g.S.eA=function(Q,z){ni.prototype.eA.call(this,Q,z);yB(this.K3.get(),"ad-showing");mH(this.S,this)}; g.S.L2=function(Q){switch(Q){case "ad-info-icon-button":(this.D=this.K3.get().o4(1))||this.K3.get().pauseVideo();break;case "visit-advertiser":this.K3.get().pauseVideo()}}; g.S.zv=function(){ni.prototype.zv.call(this)};g.p(Ki,SE);g.p(Vx,ni);g.S=Vx.prototype;g.S.startRendering=function(Q){ZI(this.Ij,this.hZ(),this.Ql(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(z,H,f,b,L){return new Ki(z,H,f,b,L)},this.Z); ni.prototype.startRendering.call(this,Q)}; g.S.Fa=function(){}; g.S.kN=function(){}; g.S.iL=function(){}; g.S.AF=function(){}; g.S.lW=function(){}; g.S.je=function(){}; g.S.l2=function(){}; g.S.SU=function(){}; g.S.fA=function(){}; g.S.OX=function(){}; g.S.DY=function(){}; g.S.vS=function(){}; g.S.zv=function(){EV(this.r4(),this);ni.prototype.zv.call(this)}; g.S.L2=function(){};g.p(dP,SE);g.p(mJ,ni);mJ.prototype.init=function(){ni.prototype.init.call(this);this.Z.push(new dP(g.K(this.layout.renderingContent,Zq),this.layout.layoutId,{adsClientData:this.layout.cz}))}; mJ.prototype.L2=function(){oa(this.D.get(),this.S)&&G4(this.Vl.get(),3)}; mJ.prototype.startRendering=function(Q){ni.prototype.startRendering.call(this,Q);this.callback.Fa(this.slot,Q)}; mJ.prototype.zv=function(){ni.prototype.zv.call(this)};g.p(wP,SE);g.p(ky,ni);ky.prototype.init=function(){ni.prototype.init.call(this);var Q=g.K(this.layout.renderingContent,XI)||bY(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),z=gP(this.Ij);this.Z.push(new wP(Q,z,this.layout.layoutId,{adsClientData:this.layout.cz},!0,!0))}; ky.prototype.startRendering=function(Q){ni.prototype.startRendering.call(this,Q);this.callback.Fa(this.slot,Q)}; ky.prototype.L2=function(Q,z){if(z===this.layout.layoutId)switch(Q){case "skip-button":var H;(Q=(H=bY(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:H.current)&&Q.jW(this.hZ(),this.layout)}}; ky.prototype.zv=function(){ni.prototype.zv.call(this)};ex.prototype.build=function(Q,z,H,f){if(T4(f,{q4:["metadata_type_ad_break_response_data"],tM:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new Ej_(Q,H,f,this.B,this.L,this.Z);throw new Ha("Unsupported layout with type: "+f.layoutType+" and client metadata: "+LN(f.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.p(WXa,SE);g.p(lc,ni);g.S=lc.prototype;g.S.L2=function(Q,z){$y("ads-engagement-panel",Q,this.j.get().g7,this.Vl.get(),this.D,this.S,this.hZ(),this.Ql(),z)}; g.S.startRendering=function(Q){ZI(this.Ij,this.hZ(),this.Ql(),g.K(this.Ql().renderingContent,zC),this.callback,"metadata_type_ads_engagement_panel_renderer",function(z,H,f,b,L){return new WXa(z,H,f,b,L)},this.Z); ni.prototype.startRendering.call(this,Q)}; g.S.Fa=function(Q,z){z.layoutId===this.layout.layoutId?this.Ij.CH("impression"):this.S===z.layoutId&&(this.D===null?this.D=this.Vl.get().kV():MZ("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.S.kN=function(){}; g.S.iL=function(){}; g.S.AF=function(){}; g.S.lW=function(){}; g.S.je=function(){}; g.S.l2=function(){}; g.S.SU=function(){}; g.S.fA=function(){}; g.S.OX=function(){}; g.S.DY=function(){}; g.S.vS=function(){}; g.S.zv=function(){EV(this.r4(),this);ni.prototype.zv.call(this)};g.p(Rh,ni);g.S=Rh.prototype;g.S.L2=function(Q,z){$y("top-banner-image-text-icon-buttoned",Q,this.j.get().g7,this.Vl.get(),this.D,this.S,this.hZ(),this.Ql(),z)}; g.S.startRendering=function(Q){ZI(this.Ij,this.hZ(),this.Ql(),g.K(this.Ql().renderingContent,fY),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(z,H,f,b,L){return new Ki(z,H,f,b,L)},this.Z); ni.prototype.startRendering.call(this,Q)}; g.S.Fa=function(Q,z){this.S===z.layoutId&&(this.D===null?this.D=this.Vl.get().kV():MZ("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.S.kN=function(){}; g.S.iL=function(){}; g.S.AF=function(){}; g.S.lW=function(){}; g.S.je=function(){}; g.S.l2=function(){}; g.S.SU=function(){}; g.S.fA=function(){}; g.S.OX=function(){}; g.S.DY=function(){}; g.S.vS=function(){}; g.S.zv=function(){EV(this.r4(),this);ni.prototype.zv.call(this)};VEv.prototype.build=function(Q,z,H,f){if(T4(f,DtJ())||g.K(f.renderingContent,zC)!==void 0)return new lc(Q,H,f,this.ZS,this.Vl,this.r4,this.Bz,this.Z);if(T4(f,Iva())||g.K(f.renderingContent,R9)!==void 0)return new UB(Q,H,f,this.ZS,this.Vl,this.r4,this.Bz,this.Z);if(T4(f,Yc6())||g.K(f.renderingContent,Qb)!==void 0)return new cD(Q,H,f,this.ZS,this.Vl,this.r4,this.Bz,this.Z);if(T4(f,svv()))return new ic(Q,H,f,this.ZS,this.Vl,this.r4,this.Bz,this.Z);if(T4(f,Utp()))return new WD(Q,H,f,this.ZS,this.Vl,this.r4, this.Bz,this.Z);if(T4(f,Nsu())||g.K(f.renderingContent,Hc)!==void 0)return new PD(Q,H,f,this.ZS,this.Vl,this.r4,this.Bz,this.Z);if(T4(f,KX_())||g.K(f.renderingContent,fY)!==void 0)return new Rh(Q,H,f,this.ZS,this.Vl,this.r4,this.Bz,this.Z);if(T4(f,iac()))return new Vx(Q,H,f,this.ZS,this.Vl,this.r4,this.Bz,this.Z);if(T4(f,ojA())||g.K(f.renderingContent,bg)!==void 0)return new BD(Q,H,f,this.ZS,this.Vl,this.r4,this.Bz,this.Z);throw new Ha("Unsupported layout with type: "+f.layoutType+" and client metadata: "+ LN(f.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};dt6.prototype.build=function(Q,z,H,f){if(T4(f,{q4:["metadata_type_linked_player_bytes_layout_id"],tM:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new mJ(Q,H,f,this.ZS,this.Vl,this.Z);throw new Ha("Unsupported layout with type: "+f.layoutType+" and client metadata: "+LN(f.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.S=mtL.prototype;g.S.hZ=function(){return this.slot}; g.S.Ql=function(){return this.layout}; g.S.init=function(){}; g.S.release=function(){}; g.S.startRendering=function(Q){Q.layoutId!==this.layout.layoutId?this.callback.HS(this.slot,Q,new Ha("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.Fa(this.slot,Q),this.Ij.CH("impression"),Kx(this.nE,Q,"normal"))}; g.S.eA=function(Q,z){Q.layoutId!==this.layout.layoutId?this.callback.HS(this.slot,Q,new Ha("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.kN(this.slot,Q,z)};g.S=k8k.prototype;g.S.hZ=function(){return this.slot}; g.S.Ql=function(){return this.layout}; g.S.init=function(){}; g.S.release=function(){}; g.S.startRendering=function(Q){Q.layoutId!==this.layout.layoutId?this.callback.HS(this.slot,Q,new Ha("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.Fa(this.slot,Q),this.Ij.CH("impression"),Kx(this.nE,Q,"normal"))}; g.S.eA=function(Q,z){Q.layoutId!==this.layout.layoutId?this.callback.HS(this.slot,Q,new Ha("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.kN(this.slot,Q,z)};QQ.prototype.build=function(Q,z,H,f){if(!this.qc.get().K.C().V("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(T4(f,wfv()))return new mtL(Q,H,f,this.Vl,this.nE)}else if(T4(f,{q4:[],tM:["LAYOUT_TYPE_FORECASTING"]}))return new k8k(Q,H,f,this.Vl,this.nE);throw new Ha("Unsupported layout with type: "+f.layoutType+" and client metadata: "+LN(f.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.p(lvA,SE);g.p(zR,ni);g.S=zR.prototype;g.S.init=function(){ni.prototype.init.call(this);var Q=g.K(this.layout.renderingContent,SM)||bY(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),z={adsClientData:this.layout.cz};this.Z.push(new lvA(Q,bY(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,z))}; g.S.iz=function(){this.D||this.K3.get().resumeVideo(2)}; g.S.startRendering=function(Q){ni.prototype.startRendering.call(this,Q);this.callback.Fa(this.slot,Q);this.S.G0=this}; g.S.eA=function(Q,z){ni.prototype.eA.call(this,Q,z);mH(this.S,this)}; g.S.L2=function(Q){if(oa(this.j.get(),this.Y))switch(Q){case "visit-advertiser-link":G4(this.Vl.get(),3)}switch(Q){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.D||this.K3.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.D=this.K3.get().o4(2))||this.K3.get().pauseVideo();break;case "visit-advertiser-link":this.K3.get().pauseVideo();RIp(this).ZO();break;case "skip-button":if(Q=RIp(this), this.layout.renderingContent&&!RX(this.layout.clientMetadata,"metadata_type_dai")||!Q.Ua){var z;(Q=(z=bY(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:z.current)&&Q.jW(this.hZ(),this.layout)}else MZ("Requesting to skip by LegacyPlayerBytes when components enabled"),Q.Zf(this.hZ(),this.layout)}}; g.S.zv=function(){ni.prototype.zv.call(this)};g.p(Ht,ni);g.S=Ht.prototype;g.S.init=function(){ni.prototype.init.call(this);var Q=g.K(this.layout.renderingContent,ua)||bY(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),z={adsClientData:this.layout.cz},H;(H=!!this.layout.renderingContent)||(H=!fG(this).Ua);this.Z.push(new $U(Q,this.layout.layoutId,bY(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),z,H))}; g.S.iz=function(){this.D||this.K3.get().resumeVideo(2)}; g.S.startRendering=function(Q){ni.prototype.startRendering.call(this,Q);this.callback.Fa(this.slot,Q);this.S.G0=this}; g.S.eA=function(Q,z){ni.prototype.eA.call(this,Q,z);mH(this.S,this)}; g.S.L2=function(Q){if(oa(this.j.get(),this.Y))switch(Q){case "visit-advertiser":G4(this.Vl.get(),3)}switch(Q){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.D||this.K3.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.D=this.K3.get().o4(2))||this.K3.get().pauseVideo();break;case "visit-advertiser":this.K3.get().pauseVideo();fG(this).ZO();break;case "skip-button":if(Q=fG(this),this.layout.renderingContent&& !RX(this.layout.clientMetadata,"metadata_type_dai")||!Q.Ua){var z;(Q=(z=bY(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:z.current)&&Q.jW(this.hZ(),this.layout)}else MZ("Requesting to skip by LegacyPlayerBytes"),Q.Zf(this.hZ(),this.layout)}}; g.S.zv=function(){ni.prototype.zv.call(this)};g.p(zvv,SE);g.p(ba,ni);g.S=ba.prototype;g.S.startRendering=function(Q){var z=this;pi(this.B,Q,function(){z.Z.push(new zvv(bY(z.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),Q.layoutId,Q.cz));z.Xn();z.callback.Fa(z.slot,Q);g.w(QB(z.K3.get(),1),512)&&z.callback.HS(z.hZ(),z.Ql(),new Ha("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.S.mS=function(){}; g.S.JN=function(Q){if(Q.state.isError()){var z;this.callback.HS(this.hZ(),this.Ql(),new Ha("A player error happened during adNotify",{playerErrorCode:(z=Q.state.WS)==null?void 0:z.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; g.S.onFullscreenToggled=function(){}; g.S.jU=function(){}; g.S.Y3=function(){}; g.S.FI=function(){}; g.S.onVolumeChange=function(){}; g.S.mW=function(){}; g.S.vY=function(){}; g.S.L2=function(){};g.p(fh_,SE);g.p(LG,ni);LG.prototype.init=function(){ni.prototype.init.call(this);var Q=g.K(this.layout.renderingContent,vt),z=gP(this.Ij);this.Z.push(new fh_(Q,z,this.layout.layoutId,{adsClientData:this.layout.cz}))}; LG.prototype.startRendering=function(Q){ni.prototype.startRendering.call(this,Q);this.callback.Fa(this.slot,Q)}; LG.prototype.L2=function(Q,z){if(z===this.layout.layoutId)switch(Q){case "skip-button":var H;(Q=(H=bY(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:H.current)&&Q.jW(this.hZ(),this.layout)}}; LG.prototype.zv=function(){ni.prototype.zv.call(this)};bpp.prototype.build=function(Q,z,H,f){if(Q=yQ(Q,H,f,this.ZS,this.K3,this.Vl,this.B,this.Z,this.qc))return Q;throw new Ha("Unsupported layout with type: "+f.layoutType+" and client metadata: "+LN(f.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.S=CG.prototype;g.S.hZ=function(){return this.slot}; g.S.Ql=function(){return this.layout}; g.S.init=function(){this.K3.get().addListener(this);this.K3.get().XB.push(this);var Q=this.layout.renderingContent?EH(this.cI.get(),1).Sf/1E3:bY(this.layout.clientMetadata,"metadata_type_video_length_seconds"),z=g.K(this.layout.renderingContent,pY),H=z?F5(z.pings):bY(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");z=z?$tp(z.pings):bY(this.layout.clientMetadata,"metadata_type_active_view_identifier");jx(this.layout.wT)&&zm(this.Bz.get(),this.layout.layoutId,{K8:H,Zj:Q,listener:this, c8:z})}; g.S.release=function(){this.K3.get().removeListener(this);OkY(this.K3.get(),this);jx(this.layout.wT)&&Hy(this.Bz.get(),this.layout.layoutId)}; g.S.startRendering=function(Q){this.callback.Fa(this.slot,Q)}; g.S.eA=function(Q,z){tI(this,"abandon");this.callback.kN(this.slot,Q,z)}; g.S.mW=function(Q){switch(Q.id){case "part2viewed":this.Ij.CH("start");this.Ij.CH("impression");break;case "videoplaytime25":this.Ij.CH("first_quartile");break;case "videoplaytime50":this.Ij.CH("midpoint");break;case "videoplaytime75":this.Ij.CH("third_quartile");break;case "videoplaytime100":tI(this,"complete");sB(this.Ij)&&Yy(this.Ij,Infinity,!0);break;case "engagedview":sB(this.Ij)||this.Ij.CH("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:MZ("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.S.onVolumeChange=function(){}; g.S.FI=function(){}; g.S.jU=function(){}; g.S.Y3=function(){}; g.S.onFullscreenToggled=function(){}; g.S.JN=function(Q){this.Z||(g.Ex(Q,4)&&!g.Ex(Q,2)?AX(this.Ij,"pause"):tT(Q,4)<0&&!(tT(Q,2)<0)&&AX(this.Ij,"resume"))}; g.S.mS=function(){}; g.S.Eo=function(Q){sB(this.Ij)&&Yy(this.Ij,Q*1E3,!1)}; g.S.vY=function(){tI(this,"swipe")}; g.S.T4=function(){this.Ij.CH("active_view_measurable")}; g.S.UA=function(){this.Ij.CH("active_view_viewable")}; g.S.Wk=function(){this.Ij.CH("active_view_fully_viewable_audible_half_duration")}; g.S.RQ=function(){this.Ij.CH("audio_measurable")}; g.S.tV=function(){this.Ij.CH("audio_audible")};L5Z.prototype.build=function(Q,z,H,f){if(H.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.K(f.renderingContent,pY)!==void 0)return new CG(Q,H,f,this.K3,this.Vl,this.qc,this.Bz,this.cI);z=["metadata_type_ad_placement_config"];for(var b=g.n(JX()),L=b.next();!L.done;L=b.next())z.push(L.value);if(T4(f,{q4:z,tM:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return H.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new CG(Q,H,f,this.K3,this.Vl,this.qc,this.Bz,this.cI):new cBk(Q,H,f,this.K3,this.Vl, this.le,this.qc,this.Bz);throw new Ha("Unsupported layout with type: "+f.layoutType+" and client metadata: "+LN(f.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var g5={contentCpn:"",Vt:new Map};EUZ.prototype.Hz=function(Q,z){var H={};z=Object.assign({},z,(H.cc=this.wQ.jN(),H));this.wQ.K.On(Q,z)};var sUB,aS; sUB={gnI:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",jNl:"AUTHENTICATION_MALFORMED",lVn:"AUTHENTICATION_MISSING",fV5:"BAD_REQUEST",sNI:"CAST_SESSION_DEVICE_MISMATCHED",v3h:"CAST_SESSION_VIDEO_MISMATCHED",J5v:"CAST_TOKEN_EXPIRED",E33:"CAST_TOKEN_FAILED",pYI:"CAST_TOKEN_MALFORMED",iq3:"CGI_PARAMS_MALFORMED",XY$:"CGI_PARAMS_MISSING",qul:"DEVICE_FALLBACK",vF5:"GENERIC_WITH_LINK_AND_CPN",J9v:"ERROR_HDCP",EFv:"LICENSE",i4m:"VIDEO_UNAVAILABLE",uWh:"FORMAT_UNAVAILABLE",R$j:"GEO_FAILURE", LaT:"HTML5_AUDIO_RENDERER_ERROR",a5h:"GENERIC_WITHOUT_LINK",kOc:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",MNc:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",DDI:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",btq:"HTML5_SPS_UMP_STATUS_REJECTED",nrj:"INVALID_DRM_MESSAGE",kj5:"PURCHASE_NOT_FOUND",M8n:"PURCHASE_REFUNDED",lKh:"RENTAL_EXPIRED",ncl:"RETRYABLE_ERROR",irm:"SERVER_ERROR",Fcv:"SIGNATURE_EXPIRED",r_l:"STOPPED_BY_ANOTHER_PLAYBACK",oX$:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",ebh:"STREAMING_NOT_ALLOWED", HPv:"STREAM_LICENSE_NOT_FOUND",Bih:"TOO_MANY_REQUESTS",qvj:"TOO_MANY_REQUESTS_WITH_LINK",Lh3:"TOO_MANY_STREAMS_PER_ENTITLEMENT",a4l:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",EX$:"VIDEO_FORBIDDEN",pN3:"VIDEO_NOT_FOUND",m7j:"BROWSER_OR_EXTENSION_ERROR"};aS={}; g.WE=(aS.ALREADY_PINNED_ON_A_DEVICE="This video has already been downloaded on the maximum number of devices allowed by the copyright holder. Before you can play the video here, it needs to be unpinned on another device.",aS.DEVICE_FALLBACK="Sorry, this video is not available on this device.",aS.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",aS.LICENSE="Sorry, there was an error while licensing this video.",aS.VIDEO_UNAVAILABLE= "Video unavailable",aS.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",aS.GEO_FAILURE="This video isn't available in your country.",aS.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",aS.GENERIC_WITHOUT_LINK="An error has occurred. Please try again later.",aS.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",aS.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="Your browser does not currently recognise any of the video formats available. $BEGIN_LINKClick here to visit our frequently asked questions about HTML5 video.$END_LINK", aS.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",aS.HTML5_SPS_UMP_STATUS_REJECTED="Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",aS.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",aS.PURCHASE_NOT_FOUND="This video requires payment.",aS.PURCHASE_REFUNDED="This video's purchase has been refunded.",aS.RENTAL_EXPIRED="This video's rental has expired.",aS.CAST_SESSION_DEVICE_MISMATCHED= "The device in the cast session doesn't match the requested one.",aS.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",aS.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",aS.CAST_TOKEN_EXPIRED="Cast session has expired. Please refresh.",aS.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",aS.SERVER_ERROR="There was an internal server error. Please try again later.",aS.STOPPED_BY_ANOTHER_PLAYBACK= "Your account is playing this video in another location. Please reload this page to resume watching.",aS.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",aS.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",aS.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",aS.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",aS.TOO_MANY_REQUESTS="Please log in to watch this video.", aS.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",aS.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",aS.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",aS.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",aS.VIDEO_FORBIDDEN="Access to this video is forbidden.",aS.VIDEO_NOT_FOUND="This video cannot be found.",aS.BROWSER_OR_EXTENSION_ERROR= "Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",aS);var BCL;var P5R=g.Ns(),acu=P5R.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!acu||acu.length<2)BCL=void 0;else{var U4R=P5R.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);BCL=U4R&&U4R.length===6?Number(U4R[5].replace("_",".")):0}var m7=BCL,aO=m7>=0;g.p(g.Bt,N0);g.Bt.prototype.X=function(Q,z,H,f,b){return N0.prototype.X.call(this,Q,z,H,f,b)};var Uj={},qj=(Uj.FAIRPLAY="fairplay",Uj.PLAYREADY="playready",Uj.WIDEVINE="widevine",Uj.CLEARKEY=null,Uj.FLASHACCESS=null,Uj.UNKNOWN=null,Uj.WIDEVINE_CLASSIC=null,Uj);Pt.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var cl={},g8=(cl.WIDTH={name:"width",video:!0,valid:640,Tj:99999},cl.HEIGHT={name:"height",video:!0,valid:360,Tj:99999},cl.FRAMERATE={name:"framerate",video:!0,valid:30,Tj:9999},cl.BITRATE={name:"bitrate",video:!0,valid:3E5,Tj:2E9},cl.EOTF={name:"eotf",video:!0,valid:"bt709",Tj:"catavision"},cl.CHANNELS={name:"channels",video:!1,valid:2,Tj:99},cl.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",Tj:"invalidformat"},cl.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", Tj:"nope"},cl.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",Tj:"av99.0.05M.08"},cl.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",Tj:"invalid"},cl);var cnO=["h","H"],iSt=["9","("],heu=["9h","(h"],W8J=["8","*"],D4t=["a","A"],K8T=["o","O"],VXO=["m","M"],d4x=["mac3","MAC3"],m4u=["meac3","MEAC3"],iy={},qH6=(iy.h=cnO,iy.H=cnO,iy["9"]=iSt,iy["("]=iSt,iy["9h"]=heu,iy["(h"]=heu,iy["8"]=W8J,iy["*"]=W8J,iy.a=D4t,iy.A=D4t,iy.o=K8T,iy.O=K8T,iy.m=VXO,iy.M=VXO,iy.mac3=d4x,iy.MAC3=d4x,iy.meac3=m4u,iy.MEAC3=m4u,iy),woJ=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),fUu=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var l={},Wt=(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["548"]="1e",l["549"]="1e",l["550"]="1e",l["551"]="1e",l["809"]="1e",l["810"]="1e",l["552"]="1e",l["811"]="1e",l["812"]="1e",l["553"]="1e",l["813"]="1e",l["814"]="1e",l["554"]="1e",l["815"]="1e",l["816"]="1e",l["555"]="1e",l["817"]="1e",l["818"]="1e",l["572"]="1e",l["556"]="1e",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 hg={},d6c=(hg.STEREO_LAYOUT_UNKNOWN=0,hg.STEREO_LAYOUT_LEFT_RIGHT=1,hg.STEREO_LAYOUT_TOP_BOTTOM=2,hg);var Wl,b$;Wl={};g.Uh=(Wl.auto=0,Wl.tiny=144,Wl.light=144,Wl.small=240,Wl.medium=360,Wl.large=480,Wl.hd720=720,Wl.hd1080=1080,Wl.hd1440=1440,Wl.hd2160=2160,Wl.hd2880=2880,Wl.highres=4320,Wl);b$={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var ia="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");ct.prototype.isHdr=function(){return this.B==="smpte2084"||this.B==="arib-std-b67"};DU.prototype.rV=function(){return this.containerType===2}; DU.prototype.isEncrypted=function(){return!!this.AM}; DU.prototype.Wq=function(){return!!this.audio}; DU.prototype.rQ=function(){return!!this.video}; var d5=!1;g.p(M6,g.Xp);g.S=M6.prototype;g.S.appendBuffer=function(Q,z,H){if(this.oB.GE()!==this.appendWindowStart+this.start||this.oB.tP()!==this.appendWindowEnd+this.start||this.oB.ex()!==this.timestampOffset+this.start)this.oB.supports(1),this.oB.jr(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.oB.WG(this.timestampOffset+this.start);this.oB.appendBuffer(Q,z,H)}; g.S.abort=function(){this.oB.abort()}; g.S.remove=function(Q,z){this.oB.remove(Q+this.start,z+this.start)}; g.S.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.S.clear=function(){this.oB.clear()}; g.S.jr=function(Q,z){this.appendWindowStart=Q;this.appendWindowEnd=z}; g.S.UF=function(){return this.timestampOffset+this.start}; g.S.GE=function(){return this.appendWindowStart}; g.S.tP=function(){return this.appendWindowEnd}; g.S.WG=function(Q){this.timestampOffset=Q}; g.S.ex=function(){return this.timestampOffset}; g.S.N4=function(Q){Q=this.oB.N4(Q===void 0?!1:Q);return q6(Q,this.start,this.end)}; g.S.mB=function(){return this.oB.mB()}; g.S.mT=function(){return this.oB.mT()}; g.S.J8=function(){return this.oB.J8()}; g.S.YW=function(){return this.oB.YW()}; g.S.v1=function(){this.oB.v1()}; g.S.G4=function(Q){return this.oB.G4(Q)}; g.S.uu=function(){return this.oB.uu()}; g.S.w0=function(){return this.oB.w0()}; g.S.l0=function(){return this.oB.l0()}; g.S.lk=function(Q,z,H){this.oB.lk(Q,z,H)}; g.S.SI=function(Q,z,H){this.oB.SI(Q,z,H)}; g.S.O6=function(Q,z){return this.oB.O6(Q,z)}; g.S.supports=function(Q){return this.oB.supports(Q)}; g.S.z3=function(){return this.oB.z3()}; g.S.isView=function(){return!0}; g.S.xO=function(){return this.oB.xO()?this.isActive:!1}; g.S.isLocked=function(){return this.xL&&!this.isActive}; g.S.TL=function(Q){Q=this.oB.TL(Q);Q.vw=this.start+"-"+this.end;return Q}; g.S.P6=function(){return this.oB.P6()}; g.S.zn=function(){return this.oB.zn()}; g.S.Ng=function(){return this.oB.Ng()}; g.S.zv=function(){this.oB.AY(this.Dx);g.Xp.prototype.zv.call(this)};var GX=!1;g.p(ta,g.Xp);g.S=ta.prototype;g.S.appendBuffer=function(Q,z,H){this.Y6=!1;H&&(this.Aw=H);if(Q.length){var f;((f=this.nH)==null?0:f.appendBuffer)?this.nH.appendBuffer(Q):this.nH?this.nH.append(Q):this.VP&&this.VP.webkitSourceAppend(this.id,Q)}z&&(z.isEncrypted()&&(this.Tf=this.Aw),z.type===3&&(this.oz=z),this.Sj.push(z.aq()),this.Sj.length>4&&this.Sj.shift());this.O0&&(this.O0.length>=2||Q.length>1048576?delete this.O0:this.O0.push(Q))}; g.S.abort=function(){try{this.nH?this.nH.abort():this.VP&&this.VP.webkitSourceAbort(this.id)}catch(Q){K1Y&&g.BT(new g.wD("Error while abort the source buffer: "+Q.name+", "+Q.message))}this.Aw=this.oz=null}; g.S.remove=function(Q,z,H){this.Y6=!1;var f;if((f=this.nH)==null?0:f.remove)H&&H({b:L3(this.N4()),s:Q,e:z}),this.nH.remove(Q,z)}; g.S.removeAll=function(){this.remove(this.GE(),this.tP())}; g.S.clear=function(){this.J8()||(this.abort(),this.removeAll(),this.Tf=this.Aw=this.oz=null,this.appendWindowStart=this.timestampOffset=0,this.RE=bZ([],[]),this.Y6=!1,this.O0=C3?[]:void 0,this.Lv=!0)}; g.S.GE=function(){if(GX&&this.rQ)return this.appendWindowStart;var Q;return((Q=this.nH)==null?void 0:Q.appendWindowStart)||0}; g.S.tP=function(){var Q;return((Q=this.nH)==null?void 0:Q.appendWindowEnd)||0}; g.S.jr=function(Q,z){this.nH&&(GX&&this.rQ?(this.appendWindowStart=Q,this.nH.appendWindowEnd=z):Q>this.GE()?(this.nH.appendWindowEnd=z,this.nH.appendWindowStart=Q):(this.nH.appendWindowStart=Q,this.nH.appendWindowEnd=z))}; g.S.UF=function(){return this.timestampOffset}; g.S.WG=function(Q){GX?this.timestampOffset=Q:this.supports(1)&&(this.nH.timestampOffset=Q)}; g.S.ex=function(){return GX?this.timestampOffset:this.supports(1)?this.nH.timestampOffset:0}; g.S.N4=function(Q){if(Q===void 0?0:Q)return this.Y6||this.mB()||(this.RE=this.N4(!1),this.Y6=!0),this.RE;try{return this.nH?this.nH.buffered:this.VP?this.VP.webkitSourceBuffered(this.id):bZ([0],[Infinity])}catch(z){return bZ([],[])}}; g.S.mB=function(){var Q;return((Q=this.nH)==null?void 0:Q.updating)||!1}; g.S.J8=function(){return this.Lv}; g.S.YW=function(){return!this.Lv&&this.mB()}; g.S.v1=function(){this.Lv=!1}; g.S.G4=function(Q){var z=Q==null?void 0:Q.Rj;Q=Q==null?void 0:Q.containerType;return!z&&!Q||z===this.Rj&&Q===this.containerType}; g.S.uu=function(){return this.Aw}; g.S.w0=function(){return this.Tf}; g.S.O6=function(Q,z){return this.containerType!==Q||this.Rj!==z}; g.S.lk=function(Q,z,H){if(this.containerType!==Q||H&&this.O6(Q,H))this.supports(4),EU()&&this.nH.changeType(z),H&&(this.Rj=H);this.containerType=Q}; g.S.SI=function(Q,z,H){this.containerType&&this.O6(Q,z)&&EU()&&this.nH.changeType(H);this.containerType=Q;this.Rj=z}; g.S.z3=function(){return this.oz}; g.S.isView=function(){return!1}; g.S.supports=function(Q){switch(Q){case 1:var z;return((z=this.nH)==null?void 0:z.timestampOffset)!==void 0;case 0:var H;return!((H=this.nH)==null||!H.appendBuffer);case 2:var f;return!((f=this.nH)==null||!f.remove);case 3:var b,L;return!!(((b=this.nH)==null?0:b.addEventListener)&&((L=this.nH)==null?0:L.removeEventListener));case 4:return!(!this.nH||!this.nH.changeType);default:return!1}}; g.S.xO=function(){return!this.mB()}; g.S.isLocked=function(){return!1}; g.S.TL=function(Q){Q.to=this.ex();Q.up=this.mB();var z,H=((z=this.nH)==null?void 0:z.appendWindowStart)||0,f;z=((f=this.nH)==null?void 0:f.appendWindowEnd)||Infinity;Q.aw=H.toFixed(3)+"-"+z.toFixed(3);return Q}; g.S.mT=function(){var Q;return((Q=this.nH)==null?void 0:Q.writeHead)||0}; g.S.P6=function(){for(var Q={},z=0;z=7&&p6p(this,function(){g.n1(function(){BUc(Q,Q.getCurrentTime(),0)},500)}); return z}; g.S.seekTo=function(Q){this.OG()>0&&(aO&&m7<4&&(Q=Math.max(.1,Q)),this.setCurrentTime(Q))}; g.S.Iv=function(){if(!this.B&&this.vI)if(this.vI.S)try{var Q;Gs(this,{l:"mer",sr:(Q=this.HI)==null?void 0:Q.Uq(),rs:mw(this.vI)});this.vI.clear();this.B=this.vI;this.vI=void 0}catch(z){Q=new g.wD("Error while clearing Media Source in MediaElement: "+z.name+", "+z.message),g.BT(Q),this.stopVideo()}else this.stopVideo()}; g.S.stopVideo=function(){var Q=this;if(!this.B){var z;(z=this.vI)==null||Yxc(z);if(h1L){if(!this.L){var H=new k6;H.then(void 0,function(){}); this.L=H;W18&&this.pause();g.n1(function(){Q.L===H&&(Rm(Q),H.resolve())},200)}}else Rm(this)}}; g.S.zp=function(){var Q=this.Ux();return vs(Q)>0&&this.getDuration()?X$(Q,this.getCurrentTime()):0}; g.S.F7=function(){var Q=this.getDuration();return Q===Infinity?1:Q?this.zp()/Q:0}; g.S.TL=function(){try{var Q=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:L3(this.WP(),",",3),vbu:L3(this.Ux()),vbs:L3(this.MS()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.OG(),vns:""+this.LT(),vec:""+this.JF(),vemsg:this.q8(),vvol:""+this.getVolume(),vdom:""+ +this.sb(),vsrc:""+ +!!this.e3(),vw:""+Q.width,vh:""+Q.height}}catch(z){return{}}}; g.S.hasError=function(){return this.JF()>0}; g.S.addEventListener=function(Q,z){this.D.listen(Q,z,!1,this);this.UD(Q)}; g.S.removeEventListener=function(Q,z){this.D.DS(Q,z,!1,this)}; g.S.dispatchEvent=function(Q){if(this.L&&Q.type==="pause")return!1;if(Deu){var z,H=((z=Q.Z)==null?void 0:z.timeStamp)||Infinity;z=H>performance.now()?H-Date.now()+performance.now():H;H=this.B||this.vI;if((H==null?0:H.J8())||z<=((H==null?void 0:H.j)||0)){var f;Gs(this,{l:"mede",sr:(f=this.HI)==null?void 0:f.Uq(),et:Q.type});return!1}if(this.uR)return Gs(this,{l:"medes",et:Q.type}),H&&Q.type==="seeking"&&(H.j=performance.now(),this.uR=!1),!1}return this.D.dispatchEvent(Q)}; g.S.Re=function(){this.j=!1}; g.S.Ie=function(){this.j=!0;this.qA(!0)}; g.S.Jn=function(){this.j&&!this.qN()&&this.qA(!0)}; g.S.jH=function(Q){return!!Q&&Q.ai()===this.ai()}; g.S.zv=function(){this.Y&&this.removeEventListener("volumechange",this.Jn);h1L&&Rm(this);g.h.prototype.zv.call(this)}; var h1L=!1,W18=!1,Deu=!1,UZJ=!1;g.S=g.zE.prototype;g.S.isPaused=function(){return g.w(this,4)}; g.S.isPlaying=function(){return g.w(this,8)&&!g.w(this,512)&&!g.w(this,64)&&!g.w(this,2)}; g.S.isOrWillBePlaying=function(){return g.w(this,8)&&!g.w(this,2)&&!g.w(this,1024)}; g.S.isCued=function(){return g.w(this,64)&&!g.w(this,8)&&!g.w(this,4)}; g.S.isBuffering=function(){return g.w(this,1)&&!g.w(this,2)}; g.S.isError=function(){return g.w(this,128)}; g.S.isSuspended=function(){return g.w(this,512)}; g.S.q3=function(){return g.w(this,64)&&g.w(this,4)}; g.S.toString=function(){return"PSt."+this.state.toString(16)}; var DX={},KX=(DX.BUFFERING="buffering-mode",DX.CUED="cued-mode",DX.ENDED="ended-mode",DX.PAUSED="paused-mode",DX.PLAYING="playing-mode",DX.SEEKING="seeking-mode",DX.UNSTARTED="unstarted-mode",DX);g.p(qv,g.h);g.S=qv.prototype;g.S.dZ=function(){return this.L}; g.S.hZ=function(){return this.slot}; g.S.Ql=function(){return this.layout}; g.S.init=function(){var Q=bY(this.layout.clientMetadata,"metadata_type_video_length_seconds"),z=bY(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");jx(this.layout.wT)&&zm(this.Bz.get(),this.layout.layoutId,{K8:z,Zj:Q,listener:this,ri:this.MB()});nVc(this.Vl.get(),this);Q=this.QP;z=this.layout.layoutId;var H={ri:this.MB()};Q.Z.set(z,H);this.Ib()}; g.S.Xv=function(){}; g.S.release=function(){jx(this.layout.wT)&&Hy(this.Bz.get(),this.layout.layoutId);gVa(this.Vl.get(),this);this.QP.Z.delete(this.layout.layoutId);this.GV()}; g.S.YQ=function(){}; g.S.Q2=function(){}; g.S.startRendering=function(Q){$K(Mv(this));if(Cx(this,Q)){var z=this.Z;jM(z.params.CE.qc.get(),!0)&&thp(z,"p_sr",{});tG(this);this.X8(Q);this.MB()||this.U3(!1)}}; g.S.Fa=function(Q,z){if(z.layoutId===this.layout.layoutId){this.Ri="rendering";this.B=this.K3.get().isMuted()||this.K3.get().getVolume()===0;this.CH("impression");this.CH("start");if(this.K3.get().isMuted()){GE(this,"mute");var H;Q=((H=yu(this))==null?void 0:H.muteCommands)||[];DS(this.le.get(),Q,this.layout.layoutId)}if(this.K3.get().isFullscreen()){this.IJ("fullscreen");var f;H=((f=yu(this))==null?void 0:f.fullscreenCommands)||[];DS(this.le.get(),H,this.layout.layoutId)}this.MB()||(f=this.Gq.get(), f.L&&!f.B&&(f.S=!1,f.B=!0,f.actionType!=="ad_to_video"&&(Vv("pbs",void 0,f.actionType),g.jT("finalize_all_timelines")&&HtY(f.actionType))));this.NK(1);this.Tk(z);var b;z=((b=yu(this))==null?void 0:b.impressionCommands)||[];DS(this.le.get(),z,this.layout.layoutId)}}; g.S.Ra=function(Q,z,H){this.Y={fC:3,eP:Q==="load_timeout"?402:400,errorMessage:z.message};this.CH("error");var f;Q=((f=yu(this))==null?void 0:f.errorCommands)||[];DS(this.le.get(),Q,this.layout.layoutId);this.MB()||this.KP.HS(this.slot,this.layout,z,H)}; g.S.jY=function(){if(this.Ri==="rendering"){GE(this,"pause");var Q,z=((Q=yu(this))==null?void 0:Q.pauseCommands)||[];DS(this.le.get(),z,this.layout.layoutId);this.NK(2)}}; g.S.lM=function(){if(this.Ri==="rendering"){GE(this,"resume");var Q,z=((Q=yu(this))==null?void 0:Q.resumeCommands)||[];DS(this.le.get(),z,this.layout.layoutId)}}; g.S.IK=function(Q,z){z=z===void 0?!1:z;if(this.Ri==="rendering"){var H={currentTimeSec:Q,flush:z};FI(this.Z,"p_ip",H);Yy(this.Ij,Q*1E3,z);this.B||Yy(this.Ij,Q*1E3,z===void 0?!1:z);var f=this.BC();if(f){f/=1E3;if(Q>=f*.25||z)this.CH("first_quartile"),FI(this.Z,"p_fq",H);if(Q>=f*.5||z)this.CH("midpoint"),FI(this.Z,"p_sq",H);if(Q>=f*.75||z)this.CH("third_quartile"),FI(this.Z,"p_tq",H);this.qc.get().K.C().experiments.Nc("enable_progress_command_flush_on_kabuki")?hX(this.D,Q*1E3,z):hX(this.D,Q*1E3,K5Y(this)? z:!1)}}}; g.S.jN=function(){var Q;return((Q=EH(this.cI.get(),1))==null?void 0:Q.clientPlaybackNonce)||""}; g.S.td=function(Q,z){Q.layoutId!==this.layout.layoutId?this.KP.HS(this.slot,Q,new Ha("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"):z()}; g.S.kN=function(Q,z,H){if(z.layoutId===this.layout.layoutId)switch(this.Ri="not_rendering",this.layoutExitReason=void 0,this.MB()||(Q=H!=="normal"||this.position+1===this.j)&&this.U3(Q),this.KF(H),this.NK(0),H){case "abandoned":if(rP(this.Ij,"impression")){var f,b=((f=yu(this))==null?void 0:f.abandonCommands)||[];DS(this.le.get(),b,this.layout.layoutId)}break;case "normal":f=((b=yu(this))==null?void 0:b.completeCommands)||[];DS(this.le.get(),f,this.layout.layoutId);break;case "skipped":var L;f=((L= yu(this))==null?void 0:L.skipCommands)||[];DS(this.le.get(),f,this.layout.layoutId)}}; g.S.qS=function(){return this.layout.layoutId}; g.S.Dh=function(){return this.Y}; g.S.T4=function(){if(this.Ri==="rendering"){this.Ij.CH("active_view_measurable");var Q,z=((Q=yu(this))==null?void 0:Q.activeViewMeasurableCommands)||[];DS(this.le.get(),z,this.layout.layoutId)}}; g.S.Wk=function(){if(this.Ri==="rendering"){this.Ij.CH("active_view_fully_viewable_audible_half_duration");var Q,z=((Q=yu(this))==null?void 0:Q.activeViewFullyViewableAudibleHalfDurationCommands)||[];DS(this.le.get(),z,this.layout.layoutId)}}; g.S.UA=function(){if(this.Ri==="rendering"){this.Ij.CH("active_view_viewable");var Q,z=((Q=yu(this))==null?void 0:Q.activeViewViewableCommands)||[];DS(this.le.get(),z,this.layout.layoutId)}}; g.S.tV=function(){if(this.Ri==="rendering"){this.Ij.CH("audio_audible");var Q,z=((Q=yu(this))==null?void 0:Q.activeViewAudioAudibleCommands)||[];DS(this.le.get(),z,this.layout.layoutId)}}; g.S.RQ=function(){if(this.Ri==="rendering"){this.Ij.CH("audio_measurable");var Q,z=((Q=yu(this))==null?void 0:Q.activeViewAudioMeasurableCommands)||[];DS(this.le.get(),z,this.layout.layoutId)}}; g.S.U3=function(Q){this.Gq.get().U3(bY(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,Q,this.position,this.j,!1)}; g.S.onFullscreenToggled=function(Q){if(this.Ri==="rendering")if(Q){this.IJ("fullscreen");var z,H=((z=yu(this))==null?void 0:z.fullscreenCommands)||[];DS(this.le.get(),H,this.layout.layoutId)}else this.IJ("end_fullscreen"),z=((H=yu(this))==null?void 0:H.endFullscreenCommands)||[],DS(this.le.get(),z,this.layout.layoutId)}; g.S.onVolumeChange=function(){if(this.Ri==="rendering")if(this.K3.get().isMuted()){GE(this,"mute");var Q,z=((Q=yu(this))==null?void 0:Q.muteCommands)||[];DS(this.le.get(),z,this.layout.layoutId)}else GE(this,"unmute"),Q=((z=yu(this))==null?void 0:z.unmuteCommands)||[],DS(this.le.get(),Q,this.layout.layoutId)}; g.S.jU=function(){}; g.S.Y3=function(){}; g.S.FI=function(){}; g.S.mW=function(){}; g.S.vY=function(){}; g.S.IJ=function(Q){this.Ij.IJ(Q,!this.B)}; g.S.CH=function(Q){this.Ij.CH(Q,!this.B)}; g.S.MB=function(){var Q=bY(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return Q===void 0?(MZ("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.qc.get().MB(Q)};g.p(OH,qv);g.S=OH.prototype;g.S.Ib=function(){}; g.S.GV=function(){var Q=this.Vl.get();Q.Xu===this&&(Q.Xu=null);this.hM.stop()}; g.S.YQ=function(){this.hM.stop();qv.prototype.jY.call(this)}; g.S.Q2=function(){JG(this);qv.prototype.lM.call(this)}; g.S.BC=function(){return bY(this.Ql().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.S.eA=function(Q,z){var H=this;this.td(Q,function(){H.Ri!=="rendering_stop_requested"&&(H.Ri="rendering_stop_requested",H.layoutExitReason=z,px(H,z),H.hM.stop())})}; g.S.A7=function(){var Q=Date.now(),z=Q-this.rG;this.rG=Q;this.rS+=z;this.rS>=this.BC()?this.PF():(this.IK(this.rS/1E3),oc(this,this.rS))}; g.S.KF=function(){}; g.S.mS=function(){}; g.p(Nv,OH);g.S=Nv.prototype;g.S.JN=function(Q){if(this.Ri!=="not_rendering"){Q=nx(this,Q);var z=this.K3.get().getPresentingPlayerType()===2;this.Ri==="rendering_start_requested"?z&&qC(Q)&&this.Dq():z?g.Ex(Q,2)?MZ("Receive player ended event during MediaBreak",this.hZ(),this.Ql()):gn(this,Q):this.Gn()}}; g.S.X8=function(){W56(this);N_a(this.K3.get());this.Vl.get().Xu=this;DA("pbp")||DA("pbs")||Vv("pbp");DA("pbp","watch")||DA("pbs","watch")||Vv("pbp",void 0,"watch");this.Dq()}; g.S.Tk=function(Q){this.Gq.get();var z=bY(Q.clientMetadata,"metadata_type_ad_placement_config").kind,H=this.position===0;Q=bY(Q.clientMetadata,"metadata_type_linked_in_player_layout_type");Q={adBreakType:Z$(z),adType:Qop(Q)};var f=void 0;H?z!=="AD_PLACEMENT_KIND_START"&&(f="video_to_ad"):f="ad_to_ad";ib("ad_mbs",void 0,f);g.hN(Q,f);JG(this)}; g.S.Gn=function(){this.pU()}; g.S.PF=function(){dZ6(this);this.pU()}; g.p(Ic,OH);g.S=Ic.prototype;g.S.JN=function(Q){this.Ri!=="not_rendering"&&(Q=nx(this,Q),gn(this,Q))}; g.S.X8=function(){MZ("Not used in SSAP")}; g.S.Tk=function(){JG(this)}; g.S.Gn=function(){MZ("Not used in SSAP")}; g.S.PF=function(){dZ6(this);this.KP.o2(this.hZ(),this.Ql(),"normal")}; g.p(AG,Ic);AG.prototype.eA=function(Q,z){var H=this;this.td(Q,function(){pG(H.L,z)&&(H.Ri="rendering_stop_requested",H.layoutExitReason=z,px(H,z),H.hM.stop())})}; AG.prototype.startRendering=function(Q){$K(Mv(this));Cx(this,Q)&&(tG(this),this.Vl.get().Xu=this)};g.p(sH,qv);g.S=sH.prototype;g.S.Gn=function(){this.pU()}; g.S.JN=function(Q){if(this.Ri!=="not_rendering"){Q=nx(this,Q);var z=this.K3.get().getPresentingPlayerType()===2;this.Ri==="rendering_start_requested"?z&&qC(Q)&&this.Dq():!z||g.Ex(Q,2)?this.pU():gn(this,Q)}}; g.S.Ib=function(){bY(this.Ql().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=bY(this.Ql().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; g.S.GV=function(){bY(this.Ql().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.CZ){var Q=this.context.CE,z=this.CZ,H=this.Ql().layoutId;if(jM(Q.qc.get(),!0)){var f={};Q.Hz("mccru",(f.cid=z,f.p_ac=H,f))}this.n5.get().removeCueRange(this.CZ)}this.CZ=void 0;var b;(b=this.V7)==null||b.dispose();this.aZ&&this.aZ.dispose()}; g.S.X8=function(Q){var z=Yd(this.qc.get()),H=rn(this.qc.get());if(z&&H&&!this.MB()){H=bY(Q.clientMetadata,"metadata_type_preload_player_vars");var f=g.qf(this.qc.get().K.C().experiments,"html5_preload_wait_time_secs");H&&this.aZ&&this.aZ.start(f*1E3)}kS9(this,Q);W56(this);z?(H=this.t7.get(),Q=bY(Q.clientMetadata,"metadata_type_player_vars"),H.K.loadVideoByPlayerVars(Q,!1,2)):Uh9(this.t7.get(),bY(Q.clientMetadata,"metadata_type_player_vars"));var b;(b=this.V7)==null||b.start();z||this.t7.get().K.playVideo(2)}; g.S.Tk=function(){var Q;(Q=this.V7)==null||Q.stop();this.CZ="adcompletioncuerange:"+this.Ql().layoutId;this.n5.get().addCueRange(this.CZ,0x7ffffffffffff,0x8000000000000,!1,this,2,2);Q=this.context.CE;var z=this.CZ,H=this.Ql().layoutId;if(jM(Q.qc.get(),!0)){var f={};Q.Hz("mccr",(f.cid=z,f.p_ac=H,f))}(this.adCpn=hvc(this))||MZ("Media layout confirmed started, but ad CPN not set.");this.Rq.get().Wn("onAdStart",this.adCpn);this.rC=Date.now()}; g.S.BC=function(){var Q;return(Q=EH(this.cI.get(),2))==null?void 0:Q.Sf}; g.S.ZO=function(){this.Ij.IJ("clickthrough")}; g.S.eA=function(Q,z){var H=this;this.td(Q,function(){if(H.Ri!=="rendering_stop_requested"){H.Ri="rendering_stop_requested";H.layoutExitReason=z;px(H,z);var f;(f=H.V7)==null||f.stop();H.aZ&&H.aZ.stop();TUY(H)}})}; g.S.onCueRangeEnter=function(Q){if(Q!==this.CZ)MZ("Received CueRangeEnter signal for unknown layout.",this.hZ(),this.Ql(),{cueRangeId:Q});else{var z=this.context.CE,H=this.Ql().layoutId;if(jM(z.qc.get(),!0)){var f={};z.Hz("mccre",(f.cid=Q,f.p_ac=H,f))}this.n5.get().removeCueRange(this.CZ);this.CZ=void 0;mm(this.context.qc.get(),"html5_ssap_flush_at_stop_rendering")&&this.MB()||(Q=bY(this.Ql().clientMetadata,"metadata_type_video_length_seconds"),this.IK(Q,!0),this.CH("complete"))}}; g.S.KF=function(Q){Q!=="abandoned"&&this.Rq.get().Wn("onAdComplete");this.Rq.get().Wn("onAdEnd",this.adCpn)}; g.S.onCueRangeExit=function(){}; g.S.mS=function(Q){this.Ri==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&Q>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.K3.get().Pe(!0),this.IK(Q))}; g.S.IK=function(Q,z){qv.prototype.IK.call(this,Q,z===void 0?!1:z);z=Date.now()-this.rC;var H=Q*1E3,f={contentCpn:this.jN(),adCpn:hvc(this)};if(Q-this.Mq>=5){var b=z=2||(this.Fg.eA(this.layout,z),Q=mm(this.params.context.qc.get(),"html5_ssap_pass_transition_reason")&&z==="abandoned",this.Rb()&&!Q&&(mm(this.params.context.qc.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(z)||MZ("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:z})),this.xN.get().finishSegmentByCpn(this.layout.layoutId, EH(this.cI.get(),1).clientPlaybackNonce,jm(z,this.params.context.qc))),this.K3.get().removeListener(this),this.a$()&&nG(this.Fg.dZ())&&this.Hr.kN(this.slot,this.layout,this.Fg.dZ().Z))}; g.S.Zw=function(Q,z,H){MhJ({cpn:Q,wQ:this.cI.get(),zN:!0});this.Ql().layoutId!==Q||mm(this.params.context.qc.get(),"html5_ssap_pass_transition_reason")&&H===5||(this.Fg.dZ().currentState<2&&(Q=Fn(H,this.params.context.qc),Q==="error"?this.Hr.HS(this.slot,this.layout,new Ha("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:H},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):Kx(this.kJ, this.layout,Q)),mm(this.params.context.qc.get(),"html5_ssap_exit_without_waiting_for_transition")||this.Hr.kN(this.slot,this.layout,this.Fg.dZ().Z))};g.p(cR,g.h);g.S=cR.prototype;g.S.hZ=function(){return this.slot}; g.S.Ql=function(){return this.layout}; g.S.qI=function(){}; g.S.Ft=function(){return this.uW[this.yY]}; g.S.Kt=function(){return this.yY}; g.S.YQ=function(Q,z){var H=this.Ft();z.layoutId!==hG(H,Q,z)?MZ("pauseLayout for a PlayerBytes layout that is not currently active",Q,z):H.YQ()}; g.S.Q2=function(Q,z){var H=this.Ft();z.layoutId!==hG(H,Q,z)?MZ("resumeLayout for a PlayerBytes layout that is not currently active",Q,z):H.Q2()}; g.S.Zf=function(Q,z){var H=this.Ft();Ly8(this,Q,z);u7n(H,Q,z)&&this.uB(H.hZ(),H.Ql(),"skipped")}; g.S.jW=function(Q,z){var H=this.Ft();SSa(this);XCZ(H,Q,z)&&(Q=vxL(this,H,Q,z),Q!==void 0&&(this.MB()?MZ("Should not happen. Should delete"):qSA(this,H.hZ(),H.Ql(),Q)))}; g.S.Om=function(Q,z){var H=Object.assign({},iC(this),{layoutId:z.layoutId}),f=H.layoutId,b=H.zN;if(H.ri){var L={};GR(H.wQ,"wrse",(L.ec=f,L.is=b,L.ctp=ZU(f),L))}oT(this.yO,Q,z)}; g.S.Fa=function(Q,z){var H;(H=this.Ft())==null||H.Fa(Q,z)}; g.S.kN=function(Q,z,H){z.layoutId===this.Ql().layoutId&&(this.Pk=!1,EV(this.r4(),this));var f;(f=this.Ft())==null||f.kN(Q,z,H)}; g.S.mS=function(Q){var z;(z=this.Ft())==null||z.mS(Q)}; g.S.v6=function(Q,z,H){this.Kt()===-1&&(this.callback.Fa(this.slot,this.layout),this.yY++);var f=this.Ft();f?(f.Ra(Q,z,H),this.MB()&&this.callback.HS(this.slot,this.layout,z,H)):MZ("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.Kt()),layoutId:this.Ql().layoutId})}; g.S.onFullscreenToggled=function(Q){var z;(z=this.Ft())==null||z.onFullscreenToggled(Q)}; g.S.jU=function(Q){var z;(z=this.Ft())==null||z.jU(Q)}; g.S.FI=function(Q){var z;(z=this.Ft())==null||z.FI(Q)}; g.S.onVolumeChange=function(){var Q;(Q=this.Ft())==null||Q.onVolumeChange()}; g.S.GC=function(Q,z,H){JO(this.yO,Q,z,H)}; g.S.oL=function(Q){Q.startRendering(Q.Ql())}; g.S.init=function(){var Q=bY(this.Ql().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");Q&&(Q.current=this);if(this.uW.length<1)throw new e("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.uW.length)});if(Q=bY(this.Ql().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))Q.current=this;Q=g.n(this.uW);for(var z=Q.next();!z.done;z=Q.next())z=z.value,z.init(),sxc(this.yO,this.slot,z.Ql()),Bl6(this.yO,this.slot,z.Ql()); if(this.MB())for(this.cI.get().addListener(this),uSn(bjc(this),this.cI.get()),Q=bjc(this),Q=g.n(Q),z=Q.next();!z.done;z=Q.next())this.cL(z.value)}; g.S.cL=function(Q){var z=bY(Q.clientMetadata,"metadata_type_player_vars");z?(Q.layoutType!=="LAYOUT_TYPE_MEDIA"&&MZ("Non-video ad contains playerVars",this.slot,Q),this.t7.get().addPlayerResponseForAssociation({playerVars:z})):(Q=zAv(Q),this.t7.get().addPlayerResponseForAssociation({Gt:Q}))}; g.S.release=function(){var Q=bY(this.Ql().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");Q&&(Q.current=null);if(Q=bY(this.Ql().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))Q.current=null;Q=g.n(this.uW);for(var z=Q.next();!z.done;z=Q.next())z=z.value,PU8(this.yO,this.slot,z.Ql()),z.release();this.MB()&&(this.cI.get().removeListener(this),Sxk())}; g.S.td=function(Q){return Q.layoutId!==this.Ql().layoutId?(this.callback.HS(this.hZ(),Q,new Ha("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.Ql().layoutId+("and LayoutType: "+this.Ql().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; g.S.uK=function(){this.K3.get().addListener(this);tO(this.r4(),this)}; g.S.JN=function(Q){if(Q.state.isError()){var z,H;this.v6((z=Q.state.WS)==null?void 0:z.errorCode,new Ha("There was a player error during this media layout.",{playerErrorCode:(H=Q.state.WS)==null?void 0:H.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(z=this.Ft())&&z.JN(Q)}; g.S.MB=function(){var Q=bY(this.hZ().clientMetadata,"metadata_type_eligible_for_ssap");return Q===void 0?(MZ("Expected SSAP eligibility in PlayerBytes slots",this.hZ(),this.Ql()),!1):this.qc.get().MB(Q)}; g.S.Y3=function(){}; g.S.iL=function(){}; g.S.AF=function(){}; g.S.lW=function(){}; g.S.je=function(){}; g.S.l2=function(){}; g.S.SU=function(){}; g.S.fA=function(){}; g.S.OX=function(){}; g.S.DY=function(){}; g.S.vS=function(){}; g.S.mW=function(){}; g.S.vY=function(){}; g.p(Vu,cR);g.S=Vu.prototype;g.S.wL=function(Q,z,H){this.uB(Q,z,H)}; g.S.Z7=function(Q,z){this.uB(Q,z,"error")}; g.S.uB=function(Q,z,H){var f=this;yNY(this,Q,z,H,function(){WR(f,f.Kt()+1)})}; g.S.startRendering=function(Q){this.td(Q)&&(this.uK(),VI9(this.Gq.get()),TyA(this.qc.get())||N_a(this.K3.get()),this.Kt()===-1&&WR(this,this.Kt()+1))}; g.S.eA=function(Q,z){var H=this;this.Pk=!0;this.Kt()===this.uW.length?this.callback.kN(this.slot,this.layout,z):(Q=this.Ft(),Q.eA(Q.Ql(),z),this.il=function(){H.callback.kN(H.slot,H.layout,z)}); this.K3.get().K.Kb();Uh9(this.t7.get(),{});Q=QB(this.K3.get(),1);Q.isPaused()&&!g.w(Q,2)&&this.K3.get().playVideo();this.K3.get().removeListener(this);this.Pk&&MVa(this)}; g.S.Zw=function(){}; g.S.O_=function(){}; g.S.o2=function(){}; g.p(dn,cR);g.S=dn.prototype;g.S.wL=function(Q,z,H){Q=Object.assign({},iC(this),{layoutId:z.layoutId,layoutExitReason:H});z=Q.layoutId;H=Q.layoutExitReason;var f={};GR(Q.wQ,"prse",(f.xc=z,f.ler=H,f.ctp=ZU(z),f))}; g.S.Z7=function(){MZ("onSubLayoutError in SSAP")}; g.S.uB=function(){MZ("exitSubLayoutAndPlayNext in SSAP")}; g.S.Ft=function(){return this.b2}; g.S.Kt=function(){var Q=this;return this.uW.findIndex(function(z){var H;return z.Ql().layoutId===((H=Q.b2)==null?void 0:H.Ql().layoutId)})}; g.S.oL=function(Q){qZ(this.b2===void 0,"replacing another adapter");this.b2=Q;Q.startRendering(Q.Ql())}; g.S.GC=function(Q,z,H){JO(this.yO,Q,z,H);var f;qZ(z.layoutId===((f=this.b2)==null?void 0:f.Ql().layoutId),"currentAdapter does not match exiting layout",{slot:Q?"slot: "+Q.slotType:"",subLayout:y_(z)})&&(this.b2=void 0)}; g.S.release=function(){cR.prototype.release.call(this);qZ(this.b2===void 0,"currentAdapter is still active during release");this.b2=void 0}; g.S.Rb=function(){return this.K3.get().getPresentingPlayerType()===2}; g.S.eA=function(Q,z){function H(){mn(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(z)||MZ("Composite stopRendering: Unexpected layout exit reason",this.slot,Q,{layoutExitReason:z}))} function f(){this.b2&&wn(this,this.b2,z);if(this.Rb()&&(!mn(this)||z!=="abandoned")){H.call(this);var L;var u=((L=this.cI.get().K.getVideoData())==null?void 0:L.clientPlaybackNonce)||"";L=EH(this.cI.get(),1).clientPlaybackNonce;this.xN.get().finishSegmentByCpn(u,L,jm(z,this.qc))}Cbn(this,z)} function b(){if(this.b2){var L=this.b2;L.dZ().currentState<2&&L.eA(L.Ql(),z);L=mn(this)&&z==="abandoned";this.Rb()&&!L&&(H.call(this),this.xN.get().finishSegmentByCpn(this.b2.Ql().layoutId,EH(this.cI.get(),1).clientPlaybackNonce,jm(z,this.qc)))}} qZ(Q.layoutId===this.Ql().layoutId,"StopRendering for wrong layout")&&pG(this.Y$.B,z)&&(this.a$()?f.call(this):b.call(this))}; g.S.kN=function(Q,z,H){cR.prototype.kN.call(this,Q,z,H);z.layoutId===this.Ql().layoutId&&this.K3.get().removeListener(this)}; g.S.jN=function(){return EH(this.cI.get(),1).clientPlaybackNonce}; g.S.Zw=function(Q,z,H){MhJ(Object.assign({},iC(this),{cpn:Q}));if(!mn(this)||H!==5)if(this.a$()){if(this.b2&&this.b2.Ql().layoutId!==z){var f=this.b2.Ql().layoutId;f!==Q&&MZ("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:f,exitingCpn:Q,enteringCpn:z});Q=Fn(H,this.qc);wn(this,this.b2,Q)}else this.b2&&MZ("onClipExited: active layout is entering again");z===this.jN()&&Ex8(this,H)}else{if(this.b2&&this.b2.Ql().layoutId===Q)tVp(this,this.b2,H);else{var b;MZ("Exiting cpn does not match active cpn", this.slot,(f=this.b2)==null?void 0:f.Ql(),{exitingCpn:Q,transitionReason:H,activeCpn:(b=this.b2)==null?void 0:b.Ql().layoutId})}z===this.jN()&&(this.b2!==void 0&&(MZ("active adapter is not properly exited",this.slot,this.layout,{activeLayout:y_(this.b2.Ql())}),tVp(this,this.b2,H)),Ex8(this,H),Cbn(this,this.Y$.B.Z))}}; g.S.a$=function(){return mm(this.qc.get(),"html5_ssap_exit_without_waiting_for_transition")}; g.S.startRendering=function(Q){this.td(Q)&&(Q=this.Y$,qZ(Q.Z===1,"tickStartRendering: state is not initial"),Q.Z=2,this.uK())}; g.S.O_=function(Q){qxa(Object.assign({},iC(this),{cpn:Q}));var z=this.uW.find(function(H){return H.Ql().layoutId===Q}); z?(this.Y$.Z!==2&&(m9L(this.fp,this.slot.slotId),qZ(this.Y$.Z===2,"Expect started"),this.callback.Fa(this.slot,this.layout)),this.oL(z),oT(this.yO,this.slot,z.Ql())):pCu(this,Q)}; g.S.Zf=function(Q,z){Ly8(this,Q,z);var H=this.Ft();H?u7n(H,Q,z)&&nxk(this,"skipped"):gxn(this,"onSkipRequested")}; g.S.jW=function(Q,z){var H;a:{if(H=this.Ft()){if(SSa(this),XCZ(H,Q,z)&&(Q=vxL(this,H,Q,z),Q!==void 0)){H={n7:H,QJn:this.uW[Q]};break a}}else gxn(this,"SkipWithAdPodSkip");H=void 0}if(Q=H)H=Q.n7,z=Q.QJn,Q=H.Ql().layoutId,this.a$()?wn(this,H,"skipped"):H.eA(H.Ql(),"skipped"),H=z.Ql().layoutId,this.xN.get().finishSegmentByCpn(Q,H,jm("skipped",this.qc))}; g.S.Om=function(){MZ("Not used in html5_ssap_fix_layout_exit")}; g.S.JN=function(Q){var z;(z=this.Ft())==null||z.JN(Q)}; g.S.v6=function(){MZ("Not used in html5_ssap_fix_layout_exit")}; g.S.o2=function(Q,z,H){var f;if(((f=this.Ft())==null?void 0:f.Ql().layoutId)!==z.layoutId)return void MZ("requestToExitSubLayout: wrong layout");nxk(this,H)};g.p(kd,g.h);g.S=kd.prototype;g.S.hZ=function(){return this.Fg.hZ()}; g.S.Ql=function(){return this.Fg.Ql()}; g.S.init=function(){var Q=bY(this.Ql().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");Q&&(Q.current=this);this.Ib()}; g.S.Ib=function(){this.Fg.init()}; g.S.release=function(){var Q=bY(this.Ql().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");Q&&(Q.current=null);this.GV()}; g.S.GV=function(){this.Fg.release()}; g.S.YQ=function(){this.Fg.YQ()}; g.S.Q2=function(){this.Fg.Q2()}; g.S.Zf=function(Q,z){MZ("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.hZ(),this.Ql(),{requestingSlot:Q,requestingLayout:z})}; g.S.startRendering=function(Q){Q.layoutId!==this.Ql().layoutId?this.callback.HS(this.hZ(),Q,new Ha("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.Ql().layoutId+("and LayoutType: "+this.Ql().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.K3.get().addListener(this),tO(this.r4(),this),VI9(this.Gq.get()),TyA(this.qc.get())||N_a(this.K3.get()),this.Fg.startRendering(Q))}; g.S.eA=function(Q,z){this.Pk=!0;this.Fg.eA(Q,z);this.K3.get().K.Kb();Uh9(this.t7.get(),{});Q=QB(this.K3.get(),1);Q.isPaused()&&!g.w(Q,2)&&this.K3.get().playVideo();this.K3.get().removeListener(this);this.Pk&&this.Fg.Gn()}; g.S.Fa=function(Q,z){this.Fg.Fa(Q,z)}; g.S.kN=function(Q,z,H){z.layoutId===this.Ql().layoutId&&(this.Pk=!1,EV(this.r4(),this));this.Fg.kN(Q,z,H);z.layoutId===this.Ql().layoutId&&D$(this.Gq.get())}; g.S.mS=function(Q){this.Fg.mS(Q)}; g.S.JN=function(Q){if(Q.state.isError()){var z,H;this.v6((z=Q.state.WS)==null?void 0:z.errorCode,new Ha("There was a player error during this media layout.",{playerErrorCode:(H=Q.state.WS)==null?void 0:H.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.Fg.JN(Q)}; g.S.v6=function(Q,z,H){this.Fg.Ra(Q,z,H)}; g.S.onFullscreenToggled=function(Q){this.Fg.onFullscreenToggled(Q)}; g.S.jU=function(Q){this.Fg.jU(Q)}; g.S.FI=function(Q){this.Fg.FI(Q)}; g.S.onVolumeChange=function(){this.Fg.onVolumeChange()}; g.S.Y3=function(){}; g.S.iL=function(){}; g.S.AF=function(){}; g.S.lW=function(){}; g.S.je=function(){}; g.S.l2=function(){}; g.S.SU=function(){}; g.S.fA=function(){}; g.S.OX=function(){}; g.S.DY=function(){}; g.S.vS=function(){}; g.S.mW=function(){}; g.S.vY=function(){};g.S=TE.prototype;g.S.hZ=function(){return this.slot}; g.S.Ql=function(){return this.layout}; g.S.init=function(){this.u8.get().addListener(this);this.K3.get().addListener(this);var Q=bY(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var z=bY(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.D){var H=this.u8.get().F_.slice(-1)[0];H!==void 0&&(Q=H.startSecs*1E3,z=(H.startSecs+H.NB)*1E3)}this.Xv(Q,z);var f;H=(f=this.cI.get().Y9)==null?void 0:f.clientPlaybackNonce;f=this.layout.cz.adClientDataEntry;em(this.Vl.get(),{daiStateTrigger:{filledAdsDurationMs:z-Q,contentCpn:H, adClientData:f}});var b=this.u8.get();b=$qY(b.L,Q,z);b!==null&&(em(this.Vl.get(),{daiStateTrigger:{filledAdsDurationMs:b-Q,contentCpn:H,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:f}}),this.xN.get().Yw(b,z))}; g.S.release=function(){this.GV();this.u8.get().removeListener(this);this.K3.get().removeListener(this)}; g.S.startRendering=function(){this.X8();this.callback.Fa(this.slot,this.layout)}; g.S.eA=function(Q,z){this.WD(z);this.driftRecoveryMs!==null&&(lC(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(jo8(this)-bY(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.K3.get().K.SN()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.kN(this.slot,this.layout,z)}; g.S.ZX=function(){return!1}; g.S.pw=function(Q){var z=bY(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),H=bY(this.layout.clientMetadata,"metadata_type_layout_exit_ms");Q*=1E3;if(z<=Q&&Q0&&Nf(this.Z(),z)}; g.S.AF=function(Q){this.S.delete(Q.slotId);for(var z=[],H=g.n(this.Sy.values()),f=H.next();!f.done;f=H.next()){f=f.value;var b=f.trigger;b instanceof w0&&b.triggeringSlotId===Q.slotId&&z.push(f)}z.length>0&&Nf(this.Z(),z)}; g.S.lW=function(Q){for(var z=[],H=g.n(this.Sy.values()),f=H.next();!f.done;f=H.next()){f=f.value;var b=f.trigger;b instanceof Uv&&b.slotType===Q.slotType&&b.Z!==Q.slotId&&z.push(f)}z.length>0&&Nf(this.Z(),z)}; g.S.je=function(Q){this.L.add(Q.slotId);for(var z=[],H=g.n(this.Sy.values()),f=H.next();!f.done;f=H.next())f=f.value,f.trigger instanceof Di&&Q.slotId===f.trigger.triggeringSlotId&&z.push(f);z.length>0&&Nf(this.Z(),z)}; g.S.l2=function(Q){this.L.delete(Q.slotId);this.D.add(Q.slotId);for(var z=[],H=g.n(this.Sy.values()),f=H.next();!f.done;f=H.next())if(f=f.value,f.trigger instanceof K6)Q.slotId===f.trigger.triggeringSlotId&&z.push(f);else if(f.trigger instanceof Ov){var b=f.trigger;Q.slotId===b.slotId&&this.B.has(b.triggeringLayoutId)&&z.push(f)}z.length>0&&Nf(this.Z(),z)}; g.S.SU=function(Q){for(var z=[],H=g.n(this.Sy.values()),f=H.next();!f.done;f=H.next())f=f.value,f.trigger instanceof V0&&Q.slotId===f.trigger.triggeringSlotId&&z.push(f);z.length>0&&Nf(this.Z(),z)}; g.S.fA=function(Q){for(var z=[],H=g.n(this.Sy.values()),f=H.next();!f.done;f=H.next())f=f.value,f.trigger instanceof d0&&Q.slotId===f.trigger.triggeringSlotId&&z.push(f);z.length>0&&Nf(this.Z(),z)}; g.S.OX=function(Q,z){this.j.add(z.layoutId)}; g.S.DY=function(Q,z){this.j.delete(z.layoutId)}; g.S.Fa=function(Q,z){this.B.add(z.layoutId);for(var H=[],f=g.n(this.Sy.values()),b=f.next();!b.done;b=f.next())if(b=b.value,b.trigger instanceof o9)z.layoutId===b.trigger.triggeringLayoutId&&H.push(b);else if(b.trigger instanceof a9){var L=b.trigger;Q.slotType===L.slotType&&z.layoutType===L.layoutType&&z.layoutId!==L.Z&&H.push(b)}else b.trigger instanceof Ov&&(L=b.trigger,z.layoutId===L.triggeringLayoutId&&this.D.has(L.slotId)&&H.push(b));H.length>0&&Nf(this.Z(),H)}; g.S.kN=function(Q,z,H){this.B.delete(z.layoutId);Q=[];for(var f=g.n(this.Sy.values()),b=f.next();!b.done;b=f.next())if(b=b.value,b.trigger instanceof NM&&z.layoutId===b.trigger.triggeringLayoutId&&Q.push(b),b.trigger instanceof J2){var L=b.trigger;z.layoutId===L.triggeringLayoutId&&L.Z.includes(H)&&Q.push(b)}Q.length>0&&Nf(this.Z(),Q)}; g.S.vS=function(){}; g.S.cY=function(){this.D.clear()}; g.S.Qa=function(){};g.p(BS,g.h);BS.prototype.u7=function(Q,z,H,f){if(this.Sy.has(z.triggerId))throw new e("Tried to register duplicate trigger for slot.");if(!(z instanceof FO))throw new e("Incorrect TriggerType: Tried to register trigger of type "+z.triggerType+" in CloseRequestedTriggerAdapter");this.Sy.set(z.triggerId,new ep(Q,z,H,f))}; BS.prototype.Rv=function(Q){this.Sy.delete(Q.triggerId)};g.p(aa,g.h);aa.prototype.u7=function(Q,z,H,f){if(this.Sy.has(z.triggerId))throw new e("Tried to register duplicate trigger for slot.");if(!(z instanceof jp||z instanceof iB))throw new e("Incorrect TriggerType: Tried to register trigger of type "+z.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.Sy.set(z.triggerId,new ep(Q,z,H,f))}; aa.prototype.Rv=function(Q){this.Sy.delete(Q.triggerId)}; aa.prototype.cY=function(Q){for(var z=[],H=z.push,f=H.apply,b=[],L=g.n(this.Sy.values()),u=L.next();!u.done;u=L.next())u=u.value,u.trigger instanceof jp&&u.trigger.f$===Q&&b.push(u);f.call(H,z,g.F(b));H=z.push;f=H.apply;b=[];L=g.n(this.Sy.values());for(u=L.next();!u.done;u=L.next())u=u.value,u.trigger instanceof iB&&u.trigger.Z!==Q&&b.push(u);f.call(H,z,g.F(b));z.length&&Nf(this.Z(),z)}; aa.prototype.Qa=function(Q){for(var z=[],H=z.push,f=H.apply,b=[],L=g.n(this.Sy.values()),u=L.next();!u.done;u=L.next()){u=u.value;var X=u.trigger;X instanceof iB&&X.Z===Q&&b.push(u)}f.call(H,z,g.F(b));z.length&&Nf(this.Z(),z)};g.p(UD,g.h);g.S=UD.prototype;g.S.u7=function(Q,z,H,f){if(this.Sy.has(z.triggerId))throw new e("Tried to register duplicate trigger for slot.");var b="adtriggercuerange:"+z.triggerId;if(z instanceof BZ)cmu(this,Q,z,H,f,b,z.Z.start,z.Z.end,z.f$,z.visible);else if(z instanceof xE)cmu(this,Q,z,H,f,b,0x7ffffffffffff,0x8000000000000,z.f$,z.visible);else throw new e("Incorrect TriggerType: Tried to register trigger of type "+z.triggerType+" in CueRangeTriggerAdapter");}; g.S.Rv=function(Q){var z=this.Sy.get(Q.triggerId);z&&this.n5.get().removeCueRange(z.cueRangeId);this.Sy.delete(Q.triggerId)}; g.S.onCueRangeEnter=function(Q){var z=iqn(this,Q);if(z&&(z=this.Sy.get(z)))if(g.w(QB(this.K3.get()),32))this.Z.add(z.cueRangeId);else{var H=z==null?void 0:z.nU.trigger;if(H instanceof BZ||H instanceof xE){if(jM(this.context.qc.get())){var f=z.nU.slot,b=z.nU.layout,L={};this.context.CE.Hz("cre",(L.ca=z.nU.category,L.tt=H.triggerType,L.st=f.slotType,L.lt=b==null?void 0:b.layoutType,L.cid=Q,L))}Nf(this.B(),[z.nU])}}}; g.S.onCueRangeExit=function(Q){(Q=iqn(this,Q))&&(Q=this.Sy.get(Q))&&this.Z.delete(Q.cueRangeId)}; g.S.JN=function(Q){if(tT(Q,16)<0){Q=g.n(this.Z);for(var z=Q.next();!z.done;z=Q.next())this.onCueRangeEnter(z.value,!0);this.Z.clear()}}; g.S.iL=function(){}; g.S.AF=function(){}; g.S.lW=function(){}; g.S.je=function(){}; g.S.l2=function(){}; g.S.SU=function(){}; g.S.fA=function(){}; g.S.OX=function(){}; g.S.DY=function(){}; g.S.Fa=function(){}; g.S.kN=function(){}; g.S.vS=function(){}; g.S.mS=function(){}; g.S.onFullscreenToggled=function(){}; g.S.jU=function(){}; g.S.Y3=function(){}; g.S.FI=function(){}; g.S.onVolumeChange=function(){}; g.S.mW=function(){}; g.S.vY=function(){};g.p(cS,g.h);g.S=cS.prototype; g.S.u7=function(Q,z,H,f){if(this.B.has(z.triggerId)||this.L.has(z.triggerId))throw new e("Tried to re-register the trigger.");Q=new ep(Q,z,H,f);if(Q.trigger instanceof r0)this.B.set(Q.trigger.triggerId,Q);else if(Q.trigger instanceof I9)this.L.set(Q.trigger.triggerId,Q);else throw new e("Incorrect TriggerType: Tried to register trigger of type "+Q.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.B.has(Q.trigger.triggerId)&&Q.slot.slotId===this.Z&&Nf(this.D(),[Q])}; g.S.Rv=function(Q){this.B.delete(Q.triggerId);this.L.delete(Q.triggerId)}; g.S.qI=function(Q){Q=Q.slotId;if(this.Z!==Q){var z=[];this.Z!=null&&z.push.apply(z,g.F(hkv(this.L,this.Z)));Q!=null&&z.push.apply(z,g.F(hkv(this.B,Q)));this.Z=Q;z.length&&Nf(this.D(),z)}}; g.S.Zw=function(){}; g.S.O_=function(){};g.p(i6,g.h);g.S=i6.prototype;g.S.u7=function(Q,z,H,f){if(this.Sy.has(z.triggerId))throw new e("Tried to register duplicate trigger for slot.");if(!(z instanceof cZ))throw new e("Incorrect TriggerType: Tried to register trigger of type "+z.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Sy.set(z.triggerId,new ep(Q,z,H,f))}; g.S.Rv=function(Q){this.Sy.delete(Q.triggerId)}; g.S.Fa=function(){}; g.S.kN=function(){}; g.S.iL=function(){}; g.S.AF=function(){}; g.S.lW=function(){}; g.S.je=function(){}; g.S.l2=function(){}; g.S.SU=function(){}; g.S.fA=function(){}; g.S.OX=function(){}; g.S.DY=function(){}; g.S.vS=function(){};g.p(h7,g.h);g.S=h7.prototype;g.S.vS=function(Q,z){for(var H=[],f=g.n(this.Sy.values()),b=f.next();!b.done;b=f.next()){b=b.value;var L=b.trigger;L.opportunityType===Q&&(L.associatedSlotId&&L.associatedSlotId!==z||H.push(b))}H.length&&Nf(this.Z(),H)}; g.S.u7=function(Q,z,H,f){if(this.Sy.has(z.triggerId))throw new e("Tried to register duplicate trigger for slot.");if(!(z instanceof lw_))throw new e("Incorrect TriggerType: Tried to register trigger of type "+z.triggerType+" in OpportunityEventTriggerAdapter");this.Sy.set(z.triggerId,new ep(Q,z,H,f))}; g.S.Rv=function(Q){this.Sy.delete(Q.triggerId)}; g.S.iL=function(){}; g.S.AF=function(){}; g.S.lW=function(){}; g.S.je=function(){}; g.S.l2=function(){}; g.S.SU=function(){}; g.S.fA=function(){}; g.S.OX=function(){}; g.S.DY=function(){}; g.S.Fa=function(){}; g.S.kN=function(){};g.p(WS,g.h);g.S=WS.prototype;g.S.u7=function(Q,z,H,f){Q=new ep(Q,z,H,f);if(z instanceof A2||z instanceof PZ||z instanceof YE||z instanceof h2||z instanceof eA_){if(this.Sy.has(z.triggerId))throw new e("Tried to register duplicate trigger for slot.");this.Sy.set(z.triggerId,Q);H=H.slotId;Q=this.L.has(H)?this.L.get(H):new Set;Q.add(z);this.L.set(H,Q)}else throw new e("Incorrect TriggerType: Tried to register trigger of type "+z.triggerType+" in PrefetchTriggerAdapter");}; g.S.Rv=function(Q){this.Sy.delete(Q.triggerId)}; g.S.iL=function(Q){var z=Q.slotId;if(this.L.has(z)){Q=0;var H=new Set;z=g.n(this.L.get(z));for(var f=z.next();!f.done;f=z.next())if(f=f.value,H.add(f.triggerId),f instanceof PZ&&f.breakDurationMs){Q=f.breakDurationMs;break}DO(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",Q,H)}}; g.S.AF=function(){}; g.S.lW=function(){}; g.S.je=function(){}; g.S.l2=function(){}; g.S.SU=function(){}; g.S.fA=function(){}; g.S.OX=function(){}; g.S.DY=function(){}; g.S.Fa=function(){}; g.S.kN=function(){}; g.S.vS=function(){}; g.S.ZX=function(Q){if(this.Z){this.B&&this.B.stop();this.D&&g.lp(this.D);Q=Q.NB*1E3+1E3;for(var z=0,H=g.n(this.Sy.values()),f=H.next();!f.done;f=H.next())f=f.value.trigger,f instanceof A2&&f.breakDurationMs<=Q&&f.breakDurationMs>z&&(z=f.breakDurationMs);Q=z;if(Q>0)return DO(this,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",Q,new Set,!0),DO(this,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",Q,new Set,!1),!0}return!1}; g.S.pw=function(){}; g.S.cY=function(Q){this.Z&&this.Z.contentCpn!==Q?(MZ("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:Q,fetchInstructionsCpn:this.Z.contentCpn}),KQ(this)):D9A(this)}; g.S.Qa=function(Q){this.Z&&this.Z.contentCpn!==Q&&MZ("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:Q,fetchInstructionsCpn:this.Z.contentCpn},!0);KQ(this)}; g.S.Cw=function(Q){var z=this;if(this.Z)MZ("Unexpected multiple fetch instructions for the current content");else{this.Z=Q;Q=VUZ(Q);this.B=new g.e_(function(){D9A(z)},Q?Q:6E5); this.B.start();this.D=new g.e_(function(){z.Z&&(z.B&&(z.B.stop(),z.B.start()),Wcc(z,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},Kca(this.Z)); Q=this.K3.get().getCurrentTimeSec(1,!1);for(var H=g.n(this.u8.get().F_),f=H.next();!f.done;f=H.next())f=f.value,Q0(this.Vl.get(),"nocache","ct."+Date.now()+";cmt."+Q+";d."+f.NB.toFixed(3)+";tw."+(f.startSecs-Q)+";cid."+f.identifier+";")}}; g.S.zv=function(){g.h.prototype.zv.call(this);KQ(this)};g.p(VL,g.h);g.S=VL.prototype;g.S.u7=function(Q,z,H,f){if(this.Sy.has(z.triggerId))throw new e("Tried to register duplicate trigger for slot.");if(!(z instanceof TT))throw new e("Incorrect TriggerType: Tried to register trigger of type "+z.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Sy.set(z.triggerId,new ep(Q,z,H,f));Q=this.Z.has(z.triggeringLayoutId)?this.Z.get(z.triggeringLayoutId):new Set;Q.add(z);this.Z.set(z.triggeringLayoutId,Q)}; g.S.Rv=function(Q){this.Sy.delete(Q.triggerId);if(!(Q instanceof TT))throw new e("Incorrect TriggerType: Tried to unregister trigger of type "+Q.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var z=this.B.get(Q.triggerId);z&&(z.dispose(),this.B.delete(Q.triggerId));if(z=this.Z.get(Q.triggeringLayoutId))z.delete(Q),z.size===0&&this.Z.delete(Q.triggeringLayoutId)}; g.S.iL=function(){}; g.S.AF=function(){}; g.S.lW=function(){}; g.S.je=function(){}; g.S.l2=function(){}; g.S.SU=function(){}; g.S.fA=function(){}; g.S.OX=function(){}; g.S.DY=function(){}; g.S.vS=function(){}; g.S.Fa=function(Q,z){var H=this;if(this.Z.has(z.layoutId)){Q=this.Z.get(z.layoutId);Q=g.n(Q);var f=Q.next();for(z={};!f.done;z={Ht:void 0},f=Q.next())z.Ht=f.value,f=new g.e_(function(b){return function(){var L=H.Sy.get(b.Ht.triggerId);Nf(H.L(),[L])}}(z),z.Ht.durationMs),f.start(),this.B.set(z.Ht.triggerId,f)}}; g.S.kN=function(){};g.p(dM,g.h);dM.prototype.u7=function(Q,z,H,f){if(this.Sy.has(z.triggerId))throw new e("Tried to register duplicate trigger for slot.");if(!(z instanceof GT))throw new e("Incorrect TriggerType: Tried to register trigger of type "+z.triggerType+" in VideoTransitionTriggerAdapter.");this.Sy.set(z.triggerId,new ep(Q,z,H,f))}; dM.prototype.Rv=function(Q){this.Sy.delete(Q.triggerId)};Tx.prototype.kG=function(Q){return Q.kind==="AD_PLACEMENT_KIND_START"};g.p(Ra,g.h);g.S=Ra.prototype;g.S.logEvent=function(Q){this.al(Q)}; g.S.e6=function(Q,z,H){this.al(Q,void 0,void 0,void 0,z,void 0,void 0,void 0,z.adSlotLoggingData,void 0,void 0,H)}; g.S.tF=function(Q,z,H,f){this.al(Q,void 0,void 0,void 0,z,H?H:void 0,void 0,void 0,z.adSlotLoggingData,H?H.adLayoutLoggingData:void 0,void 0,f)}; g.S.TP=function(Q,z,H,f){mm(this.qc.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+Q,"trigger:",H,"slot:",z,"layout:",f);va(this.Z.get())&&this.al(Q,void 0,void 0,void 0,z,f?f:void 0,void 0,H,z.adSlotLoggingData,f?f.adLayoutLoggingData:void 0)}; g.S.E3=function(Q,z,H,f,b){this.al(Q,z,H,f,void 0,void 0,void 0,void 0,void 0,void 0,void 0,b)}; g.S.PG=function(Q,z,H,f){this.al("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,H,f,void 0,void 0,H.adSlotLoggingData,f?f.adLayoutLoggingData:void 0,{errorType:Q,errorMessage:z})}; g.S.al=function(Q,z,H,f,b,L,u,X,v,y,q,M){var C=this;M=M===void 0?0:M;mm(this.qc.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+Q,"slot:",b,"layout:",L,"ping:",u,"Opportunity:",{opportunityType:z,associatedSlotId:H,Wb5:f,rHh:X,adSlotLoggingData:v,adLayoutLoggingData:y});try{var t=function(){if(!C.qc.get().K.C().V("html5_disable_client_tmp_logs")&&Q!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){Q||MZ("Empty PACF event type",b,L);var E=va(C.Z.get()),G={eventType:Q,eventOrder:++C.eventCount},x={}; b&&(x.slotData=XE(E,b));L&&(x.layoutData=Nla(E,L));u&&(x.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:u.Z.serializedAdPingMetadata,pingIndex:u.index});X&&(x.triggerData=So(X.trigger,X.category));z&&(x.opportunityData=IwL(E,z,H,f));E={organicPlaybackContext:{contentCpn:EH(C.cI.get(),1).clientPlaybackNonce}};E.organicPlaybackContext.isLivePlayback=EH(C.cI.get(),1).AZ;var J;E.organicPlaybackContext.isMdxPlayback=(J=EH(C.cI.get(),1))==null?void 0:J.isMdxPlayback; var I;if((I=EH(C.cI.get(),1))==null?0:I.daiEnabled)E.organicPlaybackContext.isDaiContent=!0;var r;if(J=(r=EH(C.cI.get(),2))==null?void 0:r.clientPlaybackNonce)E.adVideoPlaybackContext={adVideoCpn:J};E&&(x.externalContext=E);G.adClientData=x;v&&(G.serializedSlotAdServingData=v.serializedSlotAdServingDataEntry);y&&(G.serializedAdServingData=y.serializedAdServingDataEntry);q&&(G.errorInfo=q);g.y5("adsClientStateChange",{adsClientEvent:G})}}; M&&M>0?g.R4(g.za(),function(){return t()},M):t()}catch(E){mm(this.qc.get(),"html5_log_pacf_logging_errors")&&g.R4(g.za(),function(){MZ(E instanceof Error?E:String(E),b,L,{pacf_message:"exception during pacf logging"})})}};var TCJ=new Set("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED".split(" "));g.p(Q1,Ra);g.S=Q1.prototype; g.S.e6=function(Q,z,H){Ra.prototype.e6.call(this,Q,z,H);jM(this.qc.get())&&(H={},this.context.CE.Hz("pacf",(H.et=Q,H.st=z.slotType,H.si=z.slotId,H)))}; g.S.tF=function(Q,z,H,f){var b=TCJ.has(Q);Ra.prototype.tF.call(this,Q,z,H,f);jM(this.qc.get(),b)&&(f={},this.context.CE.Hz("pacf",(f.et=Q,f.st=z.slotType,f.si=z.slotId,f.lt=H==null?void 0:H.layoutType,f.li=H==null?void 0:H.layoutId,f.p_ac=H==null?void 0:H.layoutId,f)))}; g.S.E3=function(Q,z,H,f,b){Ra.prototype.E3.call(this,Q,z,H,f,b);jM(this.qc.get())&&(H={},this.context.CE.Hz("pacf",(H.et=Q,H.ot=z,H.ss=f==null?void 0:f.length,H)))}; g.S.TP=function(Q,z,H,f){Ra.prototype.TP.call(this,Q,z,H,f);if(jM(this.qc.get())){var b={};this.context.CE.Hz("pacf",(b.et=Q,b.tt=H.trigger.triggerType,b.tc=H.category,b.st=z.slotType,b.si=z.slotId,b.lt=f==null?void 0:f.layoutType,b.li=f==null?void 0:f.layoutId,b.p_ac=f==null?void 0:f.layoutId,b))}}; g.S.PG=function(Q,z,H,f){Ra.prototype.PG.call(this,Q,z,H,f);if(jM(this.qc.get(),!0)){var b={};this.context.CE.Hz("perror",(b.ert=Q,b.erm=z,b.st=H.slotType,b.si=H.slotId,b.lt=f==null?void 0:f.layoutType,b.li=f==null?void 0:f.layoutId,b.p_ac=f==null?void 0:f.layoutId,b))}}; g.S.al=function(Q,z,H,f,b,L,u,X,v,y,q){if(g.OV(this.qc.get().K.C())){var M=this.qc.get();M=g.qf(M.K.C().experiments,"H5_async_logging_delay_ms")}else M=void 0;Ra.prototype.al.call(this,Q,z,H,f,b,L,u,X,v,y,q,M)};z0.prototype.clear=function(){this.Z.clear()};bM.prototype.resolve=function(Q){HB(this,Q)}; bM.prototype.reject=function(Q){fE(this,Q)}; bM.prototype.state=function(){return this.currentState==="done"?{state:"done",result:this.result}:this.currentState==="fail"?{state:"fail",error:this.error}:{state:"wait"}}; bM.prototype.wait=function(){var Q=this;return function H(){return MYp(H,function(f){if(f.Z==1)return g.jY(f,2),g.Y(f,{sy:Q},4);if(f.Z!=2)return f.return(f.B);g.OA(f);return g.oJ(f,0)})}()}; var gdn=Vi(function(Q){return LE(Q)?Q instanceof bM:!1});Object.freeze({x3v:function(Q){var z=vJJ(Q);return M1(XaZ(z,function(H){return z[H].currentState==="fail"}),function(H){return Number.isNaN(H)?z.map(function(f){return f.state().result}):z[H]})}, zVc:function(Q){var z=vJJ(Q);return M1(XaZ(z),function(){return z.map(function(H){return H.state()})})}});var EW=window.Apl||"en-GB";ZJ.prototype.DP=function(Q){this.client=Q}; ZJ.prototype.Z=function(){this.clear();this.csn=g.ox()}; ZJ.prototype.clear=function(){this.L.clear();this.B.clear();this.D.clear();this.csn=null};$A.prototype.DP=function(Q){g.QC(G0().DP).bind(G0())(Q)}; $A.prototype.clear=function(){g.QC(G0().clear).bind(G0())()};g.S=jJ.prototype;g.S.DP=function(Q){this.client=Q}; g.S.FP=function(Q,z){var H=this;z=z===void 0?{}:z;g.QC(function(){var f,b,L,u=((f=g.K(Q==null?void 0:Q.commandMetadata,g.ZX))==null?void 0:f.rootVe)||((b=g.K(Q==null?void 0:Q.commandMetadata,C4T))==null?void 0:(L=b.screenVisualElement)==null?void 0:L.uiType);if(u){f=g.K(Q==null?void 0:Q.commandMetadata,rCB);if(f==null?0:f.parentTrackingParams){var X=g.FG(f.parentTrackingParams);if(f.parentCsn)var v=f.parentCsn}else z.clickedVisualElement?X=z.clickedVisualElement:Q.clickTrackingParams&&(X=g.FG(Q.clickTrackingParams)); a:{f=g.K(Q,g.ew);b=g.K(Q,OrR);if(f){if(b=qV_(f,"VIDEO")){f={token:b,videoId:f.videoId};break a}}else if(b&&(f=qV_(b,"PLAYLIST"))){f={token:f,playlistId:b.playlistId};break a}f=void 0}z=Object.assign({},{cttAuthInfo:f,parentCsn:v},z);if(g.jT("expectation_logging")){var y;z.loggingExpectations=((y=g.K(Q==null?void 0:Q.commandMetadata,C4T))==null?void 0:y.loggingExpectations)||void 0}xA(H,u,X,z)}else g.PT(new g.wD("Error: Trying to create a new screen without a rootVeType",Q))})()}; g.S.clickCommand=function(Q,z,H){Q=Q.clickTrackingParams;H=H===void 0?0:H;Q?(H=g.ox(H===void 0?0:H))?(Ewu(this.client,H,g.FG(Q),z),z=!0):z=!1:z=!1;return z}; g.S.stateChanged=function(Q,z,H){this.visualElementStateChanged(g.FG(Q),z,H===void 0?0:H)}; g.S.visualElementStateChanged=function(Q,z,H){H=H===void 0?0:H;H===0&&this.B.has(H)?this.N.push([Q,z]):pap(this,Q,z,H)};N1.prototype.fetch=function(Q,z,H){var f=this,b=ZNY(Q,z,H);return new Promise(function(L,u){function X(){if(H==null?0:H.tK)try{var y=f.handleResponse(Q,b.status,b.response,H);L(y)}catch(q){u(q)}else L(f.handleResponse(Q,b.status,b.response,H))} b.onerror=X;b.onload=X;var v;b.send((v=z.body)!=null?v:null)})}; N1.prototype.handleResponse=function(Q,z,H,f){H=H.replace(")]}'","");try{var b=JSON.parse(H)}catch(L){g.PT(new g.wD("JSON parsing failed after XHR fetch",Q,z,H));if((f==null?0:f.tK)&&H)throw new g.dE(1,"JSON parsing failed after XHR fetch");b={}}z!==200&&(g.PT(new g.wD("XHR API fetch failed",Q,z,H)),b=Object.assign({},b,{errorMetadata:{status:z}}));return b};IA.getInstance=function(){var Q=g.D6("ytglobal.storage_");Q||(Q=new IA,g.W_("ytglobal.storage_",Q));return Q}; IA.prototype.estimate=function(){var Q,z,H;return g.B(function(f){Q=navigator;return((z=Q.storage)==null?0:z.estimate)?f.return(Q.storage.estimate()):((H=Q.webkitTemporaryStorage)==null?0:H.queryUsageAndQuota)?f.return(G3J()):f.return()})}; g.W_("ytglobal.storageClass_",IA);X8.prototype.NO=function(Q){this.handleError(Q)}; X8.prototype.logEvent=function(Q,z){switch(Q){case "IDB_DATA_CORRUPTED":g.jT("idb_data_corrupted_killswitch")||this.Z("idbDataCorrupted",z);break;case "IDB_UNEXPECTEDLY_CLOSED":this.Z("idbUnexpectedlyClosed",z);break;case "IS_SUPPORTED_COMPLETED":g.jT("idb_is_supported_completed_killswitch")||this.Z("idbIsSupportedCompleted",z);break;case "QUOTA_EXCEEDED":jTZ(this,z);break;case "TRANSACTION_ENDED":this.L&&Math.random()<=.1&&this.Z("idbTransactionEnded",z);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":Q= Object.assign({},z,{hasWindowUnloaded:this.B}),this.Z("idbTransactionAborted",Q)}};var VE={},bYc=g.zK("yt-player-local-media",{lU:(VE.index={Gj:2},VE.media={Gj:2},VE.captions={Gj:5},VE),shared:!1,upgrade:function(Q,z){z(2)&&(g.A1(Q,"index"),g.A1(Q,"media"));z(5)&&g.A1(Q,"captions");z(6)&&(Yw(Q,"metadata"),Yw(Q,"playerdata"))}, version:5});var eeu={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},dx;a:{var mP=g.Ns();mP=mP.toLowerCase();if(g.Fx(mP,"android")){var lcJ=mP.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(lcJ){var Rex=parseFloat(lcJ[1]);if(Rex<100){dx=Rex;break a}}var Q0B=mP.match("("+Object.keys(eeu).join("|")+")");dx=Q0B?eeu[Q0B[0]]:0}else dx=void 0}var N$=dx,JE=N$>=0;var IDa=window;var FmZ=tj(function(){var Q,z;return(z=(Q=window).matchMedia)==null?void 0:z.call(Q,"(prefers-reduced-motion: reduce)").matches});var YA;g.AK=new Nx;YA=0;var rZ={kh:function(Q,z){var H=Q[0];Q[0]=Q[z%Q.length];Q[z%Q.length]=H}, ZV:function(Q,z){Q.splice(0,z)}, OP:function(Q){Q.reverse()}};var Wln=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var wS=YVZ()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.kw?!0:!1;var H6n={Q6q:"adunit",Btc:"detailpage",jv5:"editpage",SuT:"embedded",r83:"leanback",zOn:"previewpage",qpj:"profilepage",f7:"unplugged",w5q:"playlistoverview",gc3:"sponsorshipsoffer",d0v:"shortspage",Otc:"handlesclaiming",GOv:"immersivelivepage",Z4T:"creatormusic",Kav:"immersivelivepreviewpage",vn5:"admintoolyurt",Cdl:"shortsaudiopivot",g3m:"consumption"};var wx,zo5,x2;wx={};g.WB=(wx.STOP_EVENT_PROPAGATION="html5-stop-propagation",wx.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",wx.IV_DRAWER_OPEN="ytp-iv-drawer-open",wx.MAIN_VIDEO="html5-main-video",wx.VIDEO_CONTAINER="html5-video-container",wx.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",wx.HOUSE_BRAND="house-brand",wx);zo5={};x2=(zo5.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",zo5.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",zo5);var cOA={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var DSk={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},KJL={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"},iBZ={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var FeL={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.RA.prototype.getLanguageInfo=function(){return this.Ii}; g.RA.prototype.getXtags=function(){if(!this.xtags){var Q=this.id.split(";");Q.length>1&&(this.xtags=Q[1])}return this.xtags}; g.RA.prototype.toString=function(){return this.Ii.name}; g.RA.prototype.getLanguageInfo=g.RA.prototype.getLanguageInfo;QZ.prototype.jH=function(Q){return this.B===Q.B&&this.Z===Q.Z&&this.L===Q.L&&this.reason===Q.reason&&(!HM||this.oi===Q.oi)}; QZ.prototype.isLocked=function(){return this.L&&!!this.B&&this.B===this.Z}; QZ.prototype.compose=function(Q){if(Q.L&&fu(Q))return WV;if(Q.L||fu(this))return Q;if(this.L||fu(Q))return this;var z=this.B&&Q.B?Math.max(this.B,Q.B):this.B||Q.B,H=this.Z&&Q.Z?Math.min(this.Z,Q.Z):this.Z||Q.Z;z=Math.min(z,H);var f=0;HM&&(f=this.oi!==0&&Q.oi!==0?Math.min(this.oi,Q.oi):this.oi===0?Q.oi:this.oi);return HM&&z===this.B&&H===this.Z&&f===this.oi||!HM&&z===this.B&&H===this.Z?this:HM?new QZ(z,H,!1,H===this.Z&&f===this.oi?this.reason:Q.reason,f):new QZ(z,H,!1,H===this.Z?this.reason:Q.reason)}; QZ.prototype.D=function(Q){return!Q.video||HM&&this.oi!==0&&this.oi=0}; g.S.Rt=function(){var Q=this.segments[this.segments.length-1];return Q?Q.endTime:NaN}; g.S.jx=function(){return this.segments[0].startTime}; g.S.LK=function(){return this.segments.length}; g.S.j0=function(){return 0}; g.S.EX=function(Q){return(Q=this.Ue(Q))?Q.Ah:-1}; g.S.KT=function(Q){return(Q=this.XD(Q))?Q.sourceURL:""}; g.S.getStartTime=function(Q){return(Q=this.XD(Q))?Q.startTime:0}; g.S.r0=function(Q){return this.getStartTime(Q)+this.getDuration(Q)}; g.S.Sc=H_(1);g.S.isLoaded=function(){return this.segments.length>0}; g.S.XD=function(Q){if(this.Z&&this.Z.Ah===Q)return this.Z;Q=g.u4(this.segments,new or(Q,0,0,0,""),function(z,H){return z.Ah-H.Ah}); return this.Z=Q>=0?this.segments[Q]:null}; g.S.Ue=function(Q){if(this.Z&&this.Z.startTime<=Q&&Q=0?this.segments[Q]:this.segments[Math.max(0,-Q-2)]}; g.S.append=function(Q){if(Q.length)if(Q=g.Qi(Q),this.segments.length){var z=this.segments.length?g.Vs(this.segments).endTime:0,H=Q[0].Ah-this.Xg();H>1&&RpY(this.segments);for(H=H>0?0:-H+1;HQ.Ah&&this.index.ud()<=Q.Ah+1}; g.S.update=function(Q,z,H){this.index.append(Q);gKn(this.index,H);Q=this.index;Q.B=z;Q.L="update"}; g.S.SH=function(){return this.WC()?!0:Fw.prototype.SH.call(this)}; g.S.Di=function(Q,z){var H=this.index.KT(Q),f=this.index.getStartTime(Q),b=this.index.getDuration(Q),L;z?b=L=0:L=this.info.oi>0?this.info.oi*b:1E3;return new P8([new Nm(3,this,void 0,"liveCreateRequestInfoForSegment",Q,f,b,0,L,!z)],H)}; g.S.XO=function(){return this.WC()?0:this.initRange.length}; g.S.JA=function(){return!1};DZ.prototype.update=function(Q){var z=void 0;this.B&&(z=this.B);var H=new DZ,f=Array.from(Q.getElementsByTagName("S"));if(f.length){var b=+hi(Q,"timescale")||1,L=(+f[0].getAttribute("t")||0)/b,u=+hi(Q,"startNumber")||0;H.D=L;var X=z?z.startSecs+z.NB:0,v=Date.parse(qUL(hi(Q,"yt:segmentIngestTime")))/1E3;H.S=Q.parentElement.tagName==="SegmentTemplate";H.S&&(H.Y=hi(Q,"media"));Q=z?u-z.Ah:1;H.j=Q>0?0:-Q+1;Q=g.n(f);for(f=Q.next();!f.done;f=Q.next()){f=f.value;for(var y=+f.getAttribute("d")/b,q=(+f.getAttribute("yt:sid")|| 0)/b,M=+f.getAttribute("r")||0,C=0;C<=M;C++)if(z&&u<=z.Ah)u++;else{var t=new v6Z(u,X,y,v+q,L);H.Z.push(t);var E=f;var G=b,x=t.startSecs;t=E.getAttribute("yt:cuepointTimeOffset");var J=E.getAttribute("yt:cuepointDuration");if(t&&J){t=Number(t);x=-t/G+x;G=Number(J)/G;J=E.getAttribute("yt:cuepointContext")||null;var I=E.getAttribute("yt:cuepointIdentifier")||"";E=E.getAttribute("yt:cuepointEvent")||"";E=new ar(x,G,J,I,fuO[E]||"unknown",t)}else E=null;E&&H.L.push(E);u++;X+=y;L+=y;v+=y+q}}H.Z.length&& (H.B=g.Vs(H.Z))}this.j=H.j;this.B=H.B||this.B;g.z7(this.Z,H.Z);g.z7(this.L,H.L);this.S=H.S;this.Y=H.Y;this.D===-1&&(this.D=H.getStreamTimeOffset())}; DZ.prototype.getStreamTimeOffset=function(){return this.D===-1?0:this.D};g.p(Vj,g.J0);g.S=Vj.prototype;g.S.NR=function(){return this.V9}; g.S.YM=function(Q,z){Q=dV(this,Q);return Q>=0&&(z||!this.segments[Q].pending)}; g.S.ud=function(){return this.Kr?this.segments.length?this.Ue(this.jx()).Ah:-1:g.J0.prototype.ud.call(this)}; g.S.jx=function(){if(this.l8)return 0;if(!this.Kr)return g.J0.prototype.jx.call(this);if(!this.segments.length)return 0;var Q=Math.max(g.Vs(this.segments).endTime-this.Ic,0);return this.Li>0&&this.Ue(Q).Ah0)return this.s7/1E3;if(!this.segments.length)return g.J0.prototype.Rt.call(this);var Q=this.Xg();if(!this.Kr||Q<=this.segments[this.segments.length-1].Ah)Q=this.segments[this.segments.length-1];else{var z=this.segments[this.segments.length-1];Q=new or(Q,Math.max(0,z.startTime-(z.Ah-Q)*this.V9),this.V9,0,"sq/"+Q,void 0,void 0,!0)}return this.l8?Math.min(this.Ic,Q.endTime):Q.endTime}; g.S.LK=function(){return this.Kr?this.segments.length?this.Xg()-this.ud()+1:0:g.J0.prototype.LK.call(this)}; g.S.Xg=function(){var Q=Math.min(this.zs,Math.max(g.J0.prototype.Xg.call(this),this.Gp)),z=this.Ic*1E3;z=this.s7>0&&this.s70&&this.Gp>0&&!z&&(z=this.Ue(this.Ic))&&(Q=Math.min(z.Ah-1,Q));return Q}; g.S.I_=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.S.pY=function(Q){var z=dV(this,Q.Ah);if(z>=0)this.segments[z]=Q;else if(this.segments.splice(-(z+1),0,Q),this.qJ&&Q.Ah%(300/this.V9)===0){var H=this.segments[0].Ah,f=Math.floor(this.qJ/this.V9);Q=Q.Ah-f;z=-(z+1)-f;z>0&&Q>H&&(this.segments=this.segments.slice(z))}}; g.S.Oa=function(){return this.Gp}; g.S.yH=function(Q){return K_?!this.B&&Q>=0&&this.Xg()<=Q:g.J0.prototype.yH.call(this,Q)}; g.S.Ue=function(Q){if(!this.Kr)return g.J0.prototype.Ue.call(this,Q);if(!this.segments.length)return null;var z=this.segments[this.segments.length-1];if(Q=z.endTime)z=z.Ah+Math.floor((Q-z.endTime)/this.V9+1);else{z=Sj(this.segments,function(f){return Q=f.endTime?1:0}); if(z>=0)return this.segments[z];var H=-(z+1);z=this.segments[H-1];H=this.segments[H];z=Math.floor((Q-z.endTime)/((H.startTime-z.endTime)/(H.Ah-z.Ah-1))+1)+z.Ah}return this.XD(z)}; g.S.XD=function(Q){if(!this.Kr)return g.J0.prototype.XD.call(this,Q);if(!this.segments.length)return null;var z=dV(this,Q);if(z>=0)return this.segments[z];var H=-(z+1);z=this.V9;if(H===0)var f=Math.max(0,this.segments[0].startTime-(this.segments[0].Ah-Q)*z);else H===this.segments.length?(f=this.segments[this.segments.length-1],f=f.endTime+(Q-f.Ah-1)*z):(f=this.segments[H-1],z=this.segments[H],z=(z.startTime-f.endTime)/(z.Ah-f.Ah-1),f=f.endTime+(Q-f.Ah-1)*z);return new or(Q,f,z,0,"sq/"+Q,void 0,void 0, !0)}; var K_=!1;g.p(m$,iw);g.S=m$.prototype;g.S.dR=function(){return!0}; g.S.SH=function(){return!0}; g.S.Me=function(Q){return this.Mm()&&Q.L&&!Q.S||!Q.Z.index.yH(Q.Ah)}; g.S.t3=function(){}; g.S.UU=function(Q,z){return typeof Q!=="number"||isFinite(Q)?iw.prototype.UU.call(this,Q,z===void 0?!1:z):new P8([new Nm(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.Cq,void 0,this.Cq*this.info.oi)],"")}; g.S.Di=function(Q,z){var H=H===void 0?!1:H;if(this.index.YM(Q))return iw.prototype.Di.call(this,Q,z);var f=this.index.getStartTime(Q),b=Math.round(this.Cq*this.info.oi),L=this.Cq;z&&(L=b=0);return new P8([new Nm(H?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",Q,f,L,void 0,b,!z)],Q>=0?"sq/"+Q:"")};g.p(wV,Fw);g.S=wV.prototype;g.S.E7=function(){return!1}; g.S.Mm=function(){return!1}; g.S.dR=function(){return!1}; g.S.t3=function(){return new P8([new Nm(1,this,void 0,"otfInit")],this.S)}; g.S.B1=function(){return null}; g.S.VJ=function(Q){this.Me(Q);return Z38(this,rV(Q),!1)}; g.S.UU=function(Q,z){z=z===void 0?!1:z;Q=this.index.EX(Q);z&&(Q=Math.min(this.index.Xg(),Q+1));return Z38(this,Q,!0)}; g.S.ZQ=function(Q){Q.info.type===1&&(this.Z||(this.Z=jd(Q.Z)),Q.B&&Q.B.uri==="http://youtube.com/streaming/otf/durations/112015"&&GsY(this,Q.B))}; g.S.Me=function(Q){return Q.L===0?!0:this.index.Xg()>Q.Ah&&this.index.ud()<=Q.Ah+1}; g.S.XO=function(){return 0}; g.S.JA=function(){return!1};kl.prototype.Lp=function(){return this.Z.Lp()};g.S=g.zy.prototype;g.S.YM=function(Q){return Q<=this.Xg()}; g.S.j0=function(Q){return this.offsets[Q]}; g.S.getStartTime=function(Q){return this.startTicks[Q]/this.Z}; g.S.r0=function(Q){return this.getStartTime(Q)+this.getDuration(Q)}; g.S.Sc=H_(0);g.S.JM=function(){return NaN}; g.S.getDuration=function(Q){Q=this.s8(Q);return Q>=0?Q/this.Z:-1}; g.S.s8=function(Q){return Q+1=0}; g.S.Rt=function(){return this.B?this.startTicks[this.count]/this.Z:NaN}; g.S.jx=function(){return 0}; g.S.LK=function(){return this.count}; g.S.KT=function(){return""}; g.S.EX=function(Q){Q=g.u4(this.startTicks.subarray(0,this.count),Q*this.Z);return Q>=0?Q:Math.max(0,-Q-2)}; g.S.isLoaded=function(){return this.Xg()>=0}; g.S.hO=function(Q,z){if(Q>=this.Xg())return 0;var H=0;for(z=this.getStartTime(Q)+z;Qthis.getStartTime(Q);Q++)H=Math.max(H,IFA(this,Q)/this.getDuration(Q));return H}; g.S.resize=function(Q){Q+=2;var z=this.offsets;this.offsets=new Float64Array(Q+1);var H=this.startTicks;this.startTicks=new Float64Array(Q+1);for(Q=0;Q0&&Q&&(H=H.range.end+1,Q=Math.min(Q,this.info.contentLength-H),Q>0&&f.push(new Nm(4,this,od(H,Q),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,z)));return new P8(f)}; g.S.ZQ=function(Q){if(Q.info.type===1){if(this.Z)return;this.Z=jd(Q.Z)}else if(Q.info.type===2){if(this.S||this.index.Xg()>=0)return;if(g.TR(this.info)){var z=this.index,H=Q.Lp();Q=Q.info.range.start;var f=g.WM(H,0,1936286840);H=AIp(f);z.Z=H.timescale;var b=H.Wi;z.offsets[0]=H.At+Q+f.size;z.startTicks[0]=b;z.B=!0;Q=H.ZD.length;for(f=0;f0&&Q===L[0].Ma)for(Q=0;Q=z+H)break}b.length||g.BT(new g.wD("b189619593",""+Q,""+z,""+H));return new P8(b)}; g.S.tE=function(Q){for(var z=this.ev(Q.info),H=Q.info.range.start+Q.info.B,f=[],b=0;b=this.index.j0(H+1);)H++;return this.Cf(H,z,Q.L).Tv}; g.S.Me=function(Q){Q.lc();return this.SH()?!0:Q.range.end+1this.info.contentLength&&(z=new xl(z.start,this.info.contentLength-1)),new P8([new Nm(4,Q.Z,z,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,Q.clipId)]);Q.type===4&&(Q=this.ev(Q),Q=Q[Q.length-1]);var H=0,f=Q.range.start+Q.B+Q.L;Q.type===3&&(Q.lc(),H=Q.Ah,f===Q.range.end+1&&(H+=1));return this.Cf(H,f,z)}; g.S.VJ=function(){return null}; g.S.UU=function(Q,z,H){z=z===void 0?!1:z;Q=this.index.EX(Q);z&&(Q=Math.min(this.index.Xg(),Q+1));return this.Cf(Q,this.index.j0(Q),0,H)}; g.S.E7=function(){return!0}; g.S.Mm=function(){return!0}; g.S.dR=function(){return!1}; g.S.XO=function(){return this.indexRange.length+this.initRange.length}; g.S.JA=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var To={},m6A=(To.COLOR_PRIMARIES_BT709="bt709",To.COLOR_PRIMARIES_BT2020="bt2020",To.COLOR_PRIMARIES_UNKNOWN=null,To.COLOR_PRIMARIES_UNSPECIFIED=null,To),eR={},YU9=(eR.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",eR.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",eR.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",eR.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",eR.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,eR.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,eR);g.bD.prototype.getName=function(){return this.name}; g.bD.prototype.getId=function(){return this.id}; g.bD.prototype.getIsDefault=function(){return this.isDefault}; g.bD.prototype.toString=function(){return this.name}; g.bD.prototype.getName=g.bD.prototype.getName;g.bD.prototype.getId=g.bD.prototype.getId;g.bD.prototype.getIsDefault=g.bD.prototype.getIsDefault;var PZa=/action_display_post/;var aFu,Sb,Xo;g.p(vj,g.Xp);g.S=vj.prototype;g.S.isLoading=function(){return this.state===1}; g.S.vl=function(){return this.state===3}; g.S.hYI=function(Q){var z=Q.getElementsByTagName("Representation");if(Q.getElementsByTagName("SegmentList").length>0||Q.getElementsByTagName("SegmentTemplate").length>0){this.AZ=this.B=!0;this.timeline||(this.timeline=new CZa);n6a(this.timeline,Q);this.publish("refresh");for(Q=0;Q=0?q=ON(C):M=M+"?range="+C}v.call(X,new or(y.Ah,y.startSecs,y.NB,y.Z,M,q,y.B))}f=b}H.update(f,this.isLive,this.uT)}g6Y(this.timeline);return!0}this.duration=ya9(hi(Q,"mediaPresentationDuration")); a:{for(Q=0;Q0))return this.jA()-Q}}Q=this.Z;for(var z in Q){var H=Q[z].index;if(H.isLoaded()&&!zs(Q[z].info.mimeType))return H.jx()}return 0}; g.S.getStreamTimeOffset=function(){return this.Y}; g.S.JM=function(Q){for(var z in this.Z){var H=this.Z[z].index;if(H.isLoaded()){var f=H.EX(Q),b=H.JM(f);if(b)return b+Q-H.getStartTime(f)}}return NaN}; var Fo=null,bwu,xi=!((bwu=navigator.mediaCapabilities)==null||!bwu.decodingInfo),Rqv={commentary:1,alternate:2,dub:3,main:4};var td=new Set,Om=new Map;Nj.prototype.clone=function(Q){return new Nj(this.flavor,Q,this.B,this.experiments)}; Nj.prototype.TL=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; Nj.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 L6m={},cj=(L6m.playready=["com.youtube.playready","com.microsoft.playready"],L6m.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],L6m),ly={},yfn=(ly.widevine="DRM_SYSTEM_WIDEVINE",ly.fairplay="DRM_SYSTEM_FAIRPLAY",ly.playready="DRM_SYSTEM_PLAYREADY",ly),RS={},uPJ=(RS.widevine=1,RS.fairplay=2,RS.playready=3,RS);hQ.prototype.Fc=function(Q,z){z=z===void 0?1:z;this.S8+=z;this.B+=Q;Q/=z;for(var H=0;H0)f+="."+iD[b].toFixed(0)+"_"+H.Z[b].toFixed(0);else break;H=f}H&&(Q[z]=H)}this.Z=new CCp;return Q}; g.S.toString=function(){return""};g.S=Zx9.prototype;g.S.isActive=function(){return!1}; g.S.t6=function(){}; g.S.Qi=function(){}; g.S.o5=function(Q,z){return z}; g.S.Jb=function(){}; g.S.gU=function(){}; g.S.UJ=function(Q,z){return z()}; g.S.SO=function(){return{}}; g.S.toString=function(){return""};var Qm,S$x,XqO,vfs,ycO,q$O,zW,xb,HA,o4Z,dS;Qm=new Zx9;S$x=!!+ey("html5_enable_profiler");XqO=!!+ey("html5_onesie_enable_profiler");vfs=!!+ey("html5_offline_encryption_enable_profiler");ycO=!!+ey("html5_performance_impact_profiling_timer_ms");q$O=!!+ey("html5_drm_enable_profiler");zW=S$x||XqO||vfs||ycO||q$O?new Ed8:Qm;g.BP=S$x?zW:Qm;xb=XqO?zW:Qm;HA=vfs?zW:Qm;o4Z=ycO?zW:Qm;dS=q$O?zW:Qm;var VG;g.p(Dn,g.h); Dn.prototype.initialize=function(Q,z){for(var H=this,f=g.n(Object.keys(Q)),b=f.next();!b.done;b=f.next()){b=g.n(Q[b.value]);for(var L=b.next();!L.done;L=b.next())if(L=L.value,L.AM)for(var u=g.n(Object.keys(L.AM)),X=u.next();!X.done;X=u.next()){var v=X.value;X=v;v=cj[v];!v&&this.V("html5_enable_vp9_fairplay")&&X==="fairplay"&&(v=["com.youtube.fairplay.sbdl"]);if(v){v=g.n(v);for(var y=v.next();!y.done;y=v.next())y=y.value,this.L[y]=this.L[y]||new Nj(X,y,L.AM[X],this.aj.experiments),this.Z[X]=this.Z[X]|| {},this.Z[X][L.mimeType]=!0}}}mW()&&(this.L["com.youtube.fairplay"]=new Nj("fairplay","com.youtube.fairplay","",this.aj.experiments),this.V("html5_enable_vp9_fairplay")||(this.Z.fairplay=this.Z.fairplay||{},this.Z.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.Z.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.B=MmJ(z,this.useCobaltWidevine,this.V("html5_enable_safari_fairplay"),this.V("html5_enable_vp9_fairplay")).filter(function(q){return!!H.L[q]})}; Dn.prototype.V=function(Q){return this.aj.experiments.Nc(Q)};var M4B={"":"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"};od_.prototype.V=function(Q){return this.experiments.Nc(Q)};var b6_={RED:"red",KZn:"white"};JGL.prototype.Nc=function(Q){Q=this.flags[Q];JSON.stringify(Q);return Q==="true"};var AGa=Promise.resolve(),Bnv=window.queueMicrotask?window.queueMicrotask.bind(window):YHk;Ty.prototype.canPlayType=function(Q,z){Q=Q.canPlayType?Q.canPlayType(z):!1;wG?Q=Q||CrY[z]:N$===2.2?Q=Q||t4m[z]:VC()&&(Q=Q||EfT[z]);return!!Q}; Ty.prototype.isTypeSupported=function(Q){return this.wh?window.cast.receiver.platform.canDisplayType(Q):YK(Q)}; var t4m={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},EfT={"application/x-mpegURL":"maybe"},CrY={"application/x-mpegURL":"maybe"};g.p(Qq,g.Xp);Qq.prototype.add=function(Q,z){if(!this.items[Q]&&(z.BV||z.Hf||z.g2)){var H=this.items,f=z;Object.isFrozen&&!Object.isFrozen(z)&&(f=Object.create(z),Object.freeze(f));H[Q]=f;this.publish("vast_info_card_add",Q)}}; Qq.prototype.remove=function(Q){var z=this.get(Q);delete this.items[Q];return z}; Qq.prototype.get=function(Q){return this.items[Q]||null}; Qq.prototype.isEmpty=function(){return g.Ys(this.items)};g.p(zt,g.$9);zt.prototype.Z=function(Q,z){return g.$9.prototype.Z.call(this,Q,z)}; zt.prototype.B=function(Q,z,H){var f=this;return g.B(function(b){return b.Z==1?g.Y(b,g.$9.prototype.B.call(f,Q,z,H),2):b.return(b.B)})}; g.p(H0,g.j7);H0.prototype.encrypt=function(Q,z){return g.j7.prototype.encrypt.call(this,Q,z)};var bf;Lo.prototype.add=function(Q){if(this.pos+20>this.data.length){var z=new Uint8Array(this.data.length*2);z.set(this.data);this.data=z}for(;Q>31;)this.data[this.pos++]=bf[(Q&31)+32],Q>>=5;this.data[this.pos++]=bf[Q|0]}; Lo.prototype.dP=function(){return g.ot(this.data.subarray(0,this.pos))}; Lo.prototype.reset=function(){this.pos=0};SN.prototype.iH=function(Q,z){var H=Math.pow(this.alpha,Q);this.Z=z*(1-H)+H*this.Z;this.B+=Q}; SN.prototype.gQ=function(){return this.Z/(1-Math.pow(this.alpha,this.B))};Xu.prototype.iH=function(Q,z){for(var H=0;H<10;H++){var f=this.Z[H],b=f+(H===0?Q:0),L=1*Math.pow(2,H);if(b<=L)break;f=Math.min(1,(b-L*.5)/f);for(b=0;b<16;b++)L=this.values[H*16+b]*f,this.values[(H+1)*16+b]+=L,this.Z[H+1]+=L,this.values[H*16+b]-=L,this.Z[H]-=L}f=H=0;b=8192;z>8192&&(H=Math.ceil(Math.log(z/8192)/Math.log(2)),f=8192*Math.pow(2,H-1),b=f*2);H+2>16?this.values[15]+=Q:(z=(z-f)/(b-f),this.values[H]+=Q*(1-z),this.values[H+1]+=Q*z);this.Z[0]+=Q}; Xu.prototype.gQ=function(){var Q=Q===void 0?this.B:Q;var z=z===void 0?.02:z;var H=H===void 0?.98:H;for(var f=this.L,b=0;b<16;b++)f[b]=this.values[b];b=this.Z[0];for(var L=1;L<11;L++){var u=this.Z[L];if(u===0)break;for(var X=Math.min(1,(Q-b)/u),v=0;v<16;v++)f[v]+=this.values[L*16+v]*X;b+=u*X;if(X<1)break}for(L=Q=u=0;L<16;L++){X=u+f[L]/b;Q+=Math.max(0,Math.min(X,H)-Math.max(u,z))*(L>0?8192*Math.pow(2,L-1):0);if(X>H)break;u=X}return Q/(H-z)};v0.prototype.iH=function(Q,z){Q=Math.min(this.Z,Math.max(1,Math.round(Q*this.resolution)));Q+this.B>=this.Z&&(this.L=!0);for(;Q--;)this.values[this.B]=z,this.B=(this.B+1)%this.Z;this.uF=!0}; v0.prototype.percentile=function(Q){var z=this;if(!this.L&&this.B===0)return 0;this.uF&&(g.Xk(this.S,function(H,f){return z.values[H]-z.values[f]}),this.uF=!1); return this.values[this.S[Math.round(Q*((this.L?this.Z:this.B)-1))]]||0}; v0.prototype.gQ=function(){return this.j?(this.percentile(this.D-this.j)+this.percentile(this.D)+this.percentile(this.D+this.j))/3:this.percentile(this.D)};g.p(yq,g.h);yq.prototype.iT=function(){var Q;(Q=this.mq)==null||Q.start();if(gm(this)&&this.policy.N){var z;(z=this.sV)==null||z.JH()}};kE8.prototype.V=function(Q){return this.experiments.Nc(Q)};g.p(e2L,g.h);var fiL="blogger ads-preview gac books docs duo flix google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),vEa={BSe:"caoe",qfq:"capsv",A5T:"cbrand",V2T:"cbr",n3v:"cbrver",hHq:"cchip",t2$:"ccappver",RHh:"ccrv",dG3:"cfrmver",SGe:"c",VNI:"cver",ABv:"ctheme",f5T:"cplayer",fA3:"cmodel",ig3:"cnetwork",NNn:"cos",FeT:"cosver",ocm:"cplatform",fKc:"crqyear"};g.p(c0,g.h);g.S=c0.prototype;g.S.V=function(Q){return this.experiments.Nc(Q)}; g.S.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.S.getVideoUrl=function(Q,z,H,f,b,L,u){z={list:z};H&&(b?z.time_continue=H:z.t=H);H=u?"music.youtube.com":g.W0(this);b=H==="www.youtube.com";!L&&f&&b?L="https://youtu.be/"+Q:g.Yh(this)?(L="https://"+H+"/fire",z.v=Q):(L&&b?(L=this.protocol+"://"+H+"/shorts/"+Q,f&&(z.feature="share")):(L=this.protocol+"://"+H+"/watch",z.v=Q),wG&&(Q=kN9())&&(z.ebc=Q));return g.Ve(L,z)}; g.S.getVideoEmbedCode=function(Q,z,H,f){z="https://"+g.W0(this)+"/embed/"+z;f&&(z=g.Ve(z,{list:f}));f=H.width;H=H.height;z=lz(z);Q=lz(Q!=null?Q:"YouTube video player");return'')}; g.S.supportsGaplessAudio=function(){return g.AI&&!wG&&DK()>=74||g.ak&&g.pr(68)?!0:!1}; g.S.supportsGaplessShorts=function(){return!this.V("html5_enable_short_gapless")||this.En||g.Ga?!1:!0}; g.S.getPlayerType=function(){return this.Z.cplayer}; g.S.vz=function(){return this.cq}; var CBZ=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],XZL=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],qvJ=[19];var Hh={},pZA=(Hh["140"]={numChannels:2},Hh["141"]={numChannels:2},Hh["251"]={audioSampleRate:48E3,numChannels:2},Hh["774"]={audioSampleRate:48E3,numChannels:2},Hh["380"]={numChannels:6},Hh["328"]={numChannels:6},Hh["773"]={},Hh),fe={},tpu=(fe["1"]='video/mp4; codecs="av01.0.08M.08"',fe["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',fe["1e"]='video/mp4; codecs="av01.0.08M.08"',fe["9"]='video/webm; codecs="vp9"',fe["("]='video/webm; codecs="vp9"',fe["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"', fe.h='video/mp4; codecs="avc1.64001e"',fe.H='video/mp4; codecs="avc1.64001e"',fe.o='audio/webm; codecs="opus"',fe.a='audio/mp4; codecs="mp4a.40.2"',fe.ah='audio/mp4; codecs="mp4a.40.2"',fe.mac3='audio/mp4; codecs="ac-3"; channels=6',fe.meac3='audio/mp4; codecs="ec-3"; channels=6',fe.i='audio/mp4; codecs="iamf.001.001.Opus"',fe),b3={},EE_=(b3["337"]={width:3840,height:2160,bitrate:3E7,fps:30},b3["336"]={width:2560,height:1440,bitrate:15E6,fps:30},b3["335"]={width:1920,height:1080,bitrate:75E5,fps:30}, b3["702"]={width:7680,height:4320,bitrate:4E7,fps:60},b3["701"]={width:3840,height:2160,bitrate:2E7,fps:60},b3["700"]={width:2560,height:1440,bitrate:1E7,fps:60},b3["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},b3["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},b3["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},b3["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"}, b3["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},b3["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},b3["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},b3["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},b3["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},b3["315"]={width:3840,height:2160,bitrate:2E7,fps:60},b3["308"]={width:2560, height:1440,bitrate:1E7,fps:60},b3["303"]={width:1920,height:1080,bitrate:5E6,fps:60},b3["302"]={width:1280,height:720,bitrate:25E5,fps:60},b3["299"]={width:1920,height:1080,bitrate:75E5,fps:60},b3["298"]={width:1280,height:720,bitrate:35E5,fps:60},b3["571"]={width:7680,height:4320,bitrate:3E7,fps:60},b3["401"]={width:3840,height:2160,bitrate:15E6,fps:60},b3["400"]={width:2560,height:1440,bitrate:75E5,fps:60},b3["399"]={width:1920,height:1080,bitrate:2E6,fps:60},b3["398"]={width:1280,height:720,bitrate:1E6, fps:60},b3["397"]={width:854,height:480,bitrate:4E5,fps:30},b3["396"]={width:640,height:360,bitrate:25E4,fps:30},b3["787"]={width:1080,height:608,bitrate:2E5,fps:30},b3["788"]={width:1080,height:608,bitrate:4E5,fps:30},b3["572"]={width:7680,height:4320,bitrate:3E7,fps:60},b3["555"]={width:3840,height:2160,bitrate:15E6,fps:60},b3["554"]={width:2560,height:1440,bitrate:75E5,fps:60},b3["553"]={width:1920,height:1080,bitrate:2E6,fps:60},b3["552"]={width:1280,height:720,bitrate:1E6,fps:60},b3["551"]={width:854, height:480,bitrate:4E5,fps:30},b3["550"]={width:640,height:360,bitrate:25E4,fps:30},b3["313"]={width:3840,height:2160,bitrate:8E6,fps:30},b3["271"]={width:2560,height:1440,bitrate:4E6,fps:30},b3["248"]={width:1920,height:1080,bitrate:2E6,fps:30},b3["247"]={width:1280,height:720,bitrate:15E5,fps:30},b3["244"]={width:854,height:480,bitrate:52E4,fps:30},b3["243"]={width:640,height:360,bitrate:28E4,fps:30},b3["137"]={width:1920,height:1080,bitrate:4E6,fps:30},b3["136"]={width:1280,height:720,bitrate:3E6, fps:30},b3["135"]={width:854,height:480,bitrate:1E6,fps:30},b3["385"]={width:1920,height:1080,bitrate:6503313,fps:60},b3["376"]={width:1280,height:720,bitrate:5706960,fps:60},b3["384"]={width:1280,height:720,bitrate:3660979,fps:60},b3["225"]={width:1280,height:720,bitrate:5805E3,fps:30},b3["224"]={width:1280,height:720,bitrate:453E4,fps:30},b3["145"]={width:1280,height:720,bitrate:2682052,fps:30},b3);g.S=bF.prototype;g.S.getInfo=function(){return this.Z}; g.S.mA=function(){return null}; g.S.JO=function(){var Q=this.mA();return Q?(Q=g.uv(Q.Mz),Number(Q.expire)):NaN}; g.S.GU=function(){}; g.S.getHeight=function(){return this.Z.video.height};GTZ.prototype.build=function(){F9Y(this);var Q=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],z={};a:if(this.Z)var H=this.Z;else{H="";for(var f=g.n(this.L),b=f.next();!b.done;b=f.next())if(b=b.value,b.Ii){if(b.Ii.getIsDefault()){H=b.Ii.getId();break a}H||(H=b.Ii.getId())}}f=g.n(this.L);for(b=f.next();!b.done;b=f.next())if(b=b.value,this.j||!b.Ii||b.Ii.getId()===H)z[b.itag]||(z[b.itag]=[]),z[b.itag].push(b);H=g.n(this.B);for(f=H.next();!f.done;f=H.next())if(f=f.value,b=z[f.Z]){b=g.n(b);for(var L=b.next();!L.done;L= b.next()){var u=Q,X=u.push;L=L.value;var v="#EXT-X-MEDIA:TYPE=AUDIO,",y="YES",q="audio";if(L.Ii){q=L.Ii;var M=q.getId().split(".")[0];M&&(v+='LANGUAGE="'+M+'",');(this.Z?this.Z===q.getId():q.getIsDefault())||(y="NO");q=q.getName()}M="";f!==null&&(M=f.itag.toString());M=uF(this,L.url,M);v=v+('NAME="'+q+'",DEFAULT='+(y+',AUTOSELECT=YES,GROUP-ID="'))+(j9J(L,f)+'",URI="'+(M+'"'));X.call(u,v)}}H=g.n(this.S);for(f=H.next();!f.done;f=H.next())f=f.value,b=pqs,f=(u=f.Ii)?'#EXT-X-MEDIA:URI="'+uF(this,f.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+b+'",LANGUAGE="'+u.getId()+'",NAME="'+u.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,f&&Q.push(f);H=this.S.length>0?pqs:void 0;f=g.n(this.B);for(b=f.next();!b.done;b=f.next())b=b.value,X=z[b.Z],u=void 0,((u=X)==null?void 0:u.length)>0&&(u=b,X=X[0],X="#EXT-X-STREAM-INF:BANDWIDTH="+(u.bitrate+X.bitrate)+',CODECS="'+(u.codecs+","+X.codecs+'",RESOLUTION=')+(u.width+"x"+u.height+',AUDIO="')+(j9J(X,u)+'",')+(H?'SUBTITLES="'+H+'",':"")+"CLOSED-CAPTIONS=NONE",u.fps>1&&(X+= ",FRAME-RATE="+u.fps),u.g$&&(X+=",VIDEO-RANGE="+u.g$),Q.push(X),Q.push(uF(this,b.url,"")));return Q.join("\n")}; var pqs="text";g.p(Sw,bF);Sw.prototype.JO=function(){return this.expiration}; Sw.prototype.mA=function(){if(!this.Mz||this.Mz.Sm()){var Q=this.B.build();Q="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(Q);this.Mz=new p3(Q)}return this.Mz};g.p(vV,bF);vV.prototype.mA=function(){return new p3(this.B.mM())}; vV.prototype.GU=function(){this.B=xo(this.B)};g.p(yc,bF);yc.prototype.mA=function(){return new p3(this.B)};var Le={},s9J=(Le.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",Le.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",Le.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",Le);g.S=g.qG.prototype;g.S.getId=function(){return this.id}; g.S.getName=function(){return this.name}; g.S.isServable=function(){return this.Z}; g.S.mM=function(){return this.url}; g.S.getXtags=function(){return this.xtags}; g.S.toString=function(){return this.languageCode+": "+g.MG(this)+" - "+this.vssId+" - "+(this.captionId||"")}; g.S.jH=function(Q){return Q?this.toString()===Q.toString():!1}; g.S.EZ=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var c2Y={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},i6a={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},hcu=/^(\d*)_((\d*)_?(\d*))$/;var DMc={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},K9c={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var u3={},nfR=(u3.ALWAYS=1,u3.BY_REQUEST=3,u3.UNKNOWN=void 0,u3),S2={},gfu=(S2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",S2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",S2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",S2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",S2);var B6a; B6a=function(Q){for(var z=Object.keys(Q),H={},f=0;ff-z?-1:Q}; g.S.qT=function(){return this.B.Xg()}; g.S.UC=function(){return this.B.ud()}; g.S.Ro=function(Q){this.B=Q};g.p(hh,cV);hh.prototype.B=function(Q,z){return cV.prototype.B.call(this,"$N|"+Q,z)}; hh.prototype.S=function(Q,z,H){return new iF(Q,z,H,this.isLive)};var JAA=[],wr=new Set;g.p(g.D1,g.Xp);g.S=g.D1.prototype; g.S.setData=function(Q){Q=Q||{};var z=Q.errordetail;z!=null&&(this.errorDetail=z);var H=Q.errorcode;H!=null?this.errorCode=H:Q.status==="fail"&&(this.errorCode="auth");var f=Q.reason;f!=null&&(this.errorReason=f);var b=Q.subreason;b!=null&&(this.Jj=b);this.V("html5_enable_ssap_entity_id")||this.clientPlaybackNonce||(this.clientPlaybackNonce=Q.cpn||(this.aj.vz()?"r"+g.xk(15):g.xk(16)));this.WI=bh(this.aj.WI,Q.livemonitor);GCv(this,Q);var L=Q.raw_player_response;if(L)this.zK=L;else{var u=Q.player_response; u&&(L=JSON.parse(u))}if(this.V("html5_enable_ssap_entity_id")){var X=Q.cached_load;X&&(this.R4=bh(this.R4,X));if(!this.clientPlaybackNonce){var v=Q.cpn;v?(this.b3("ssei","shdc"),this.clientPlaybackNonce=v):this.clientPlaybackNonce=this.aj.vz()?"r"+g.xk(15):g.xk(16)}}L&&(this.playerResponse=L);if(this.playerResponse){var y=this.playerResponse.annotations;if(y)for(var q=g.n(y),M=q.next();!M.done;M=q.next()){var C=M.value.playerAnnotationsUrlsRenderer;if(C){C.adsOnly&&(this.rp=!0);var t=C.loadPolicy; t&&(this.annotationsLoadPolicy=nfR[t]);var E=C.invideoUrl;E&&(this.uT=Qx(E));break}}var G=this.playerResponse.attestation;G&&dMn(this,G);var x=this.playerResponse.cotn;x&&(this.cotn=x);var J=this.playerResponse.heartbeatParams;if(J){nHL(this)&&(this.Dj=!0);var I=J.heartbeatToken;I&&(this.drmSessionId=J.drmSessionId||"",this.heartbeatToken=I,this.bK=Number(J.intervalMilliseconds),this.Q0=Number(J.maxRetries),this.NE=!!J.softFailOnError,this.t0=!!J.useInnertubeHeartbeatsForDrm,this.J_=!0);this.heartbeatServerData= J.heartbeatServerData;var r;this.ox=!((r=J.heartbeatAttestationConfig)==null||!r.requiresAttestation)}var U=this.playerResponse.messages;U&&T0Y(this,U);var D=this.playerResponse.overlay;if(D){var T=D.playerControlsOverlayRenderer;if(T)if(li_(this,T.controlBgHtml),T.mutedAutoplay){var k=g.K(T.mutedAutoplay,N7B);if(k&&k.endScreen){var bL=g.K(k.endScreen,I3J);bL&&bL.text&&(this.m0=g.pa(bL.text))}}else this.mutedAutoplay=!1}var SY=this.playerResponse.playabilityStatus;if(SY){var Q9=SY.backgroundability; Q9&&Q9.backgroundabilityRenderer.backgroundable&&(this.backgroundable=!0);var V,R;if((V=SY.offlineability)==null?0:(R=V.offlineabilityRenderer)==null?0:R.offlineable)this.offlineable=!0;var Z=SY.contextParams;Z&&(this.contextParams=Z);var d=SY.pictureInPicture;d&&d.pictureInPictureRenderer.playableInPip&&(this.pipable=!0);SY.playableInEmbed&&(this.allowEmbed=!0);var h8=SY.ypcClickwrap;if(h8){var $O=h8.playerLegacyDesktopYpcClickwrapRenderer,Cs=h8.ypcRentalActivationRenderer;if($O)this.Ve=$O.durationMessage|| "",this.uL=!0;else if(Cs){var J8=Cs.durationMessage;this.Ve=J8?g.pa(J8):"";this.uL=!0}}var eY=SY.errorScreen;if(eY){if(eY.playerLegacyDesktopYpcTrailerRenderer){var Ls=eY.playerLegacyDesktopYpcTrailerRenderer;this.Br=Ls.trailerVideoId||"";var ps=eY.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var O=ps&&ps.ypcTrailerRenderer}else if(eY.playerLegacyDesktopYpcOfferRenderer)Ls=eY.playerLegacyDesktopYpcOfferRenderer;else if(eY.ypcTrailerRenderer){O=eY.ypcTrailerRenderer;var N=O.fullVideoMessage;this.YX= N?g.pa(N):"";var A,P;this.Br=((A=g.K(O,AC5))==null?void 0:(P=A.videoDetails)==null?void 0:P.videoId)||""}Ls&&(this.vN=Ls.itemTitle||"",Ls.itemUrl&&(this.oW=Ls.itemUrl),Ls.itemBuyUrl&&(this.p$=Ls.itemBuyUrl),this.i9=Ls.itemThumbnail||"",this.H1=Ls.offerHeadline||"",this.Ev=Ls.offerDescription||"",this.ax=Ls.offerId||"",this.e$=Ls.offerButtonText||"",this.LU=Ls.offerButtonFormattedText||null,this.z0=Ls.overlayDurationMsec||NaN,this.YX=Ls.fullVideoMessage||"",this.Tw=!0);if(O){var c=g.K(O,AC5);if(c)this.MD= {raw_player_response:c};else{var zu=g.K(O,WzY);this.MD=zu?bv(zu):null}this.Tw=!0}}}var Ln=this.playerResponse.playbackTracking;if(Ln){var uL=Q,a=nv(Ln.googleRemarketingUrl);a&&(this.googleRemarketingUrl=a);var qk=nv(Ln.youtubeRemarketingUrl);qk&&(this.youtubeRemarketingUrl=qk);var pn={},v_=nv(Ln.ptrackingUrl);if(v_){var Yv=gr(v_),tt=Yv.oid;tt&&(this.vu=tt);var cu=Yv.pltype;cu&&(this.JI=cu);var Cr=Yv.ptchn;Cr&&(this.s9=Cr);var V9=Yv.ptk;V9&&(this.QW=encodeURIComponent(V9));var hC=Yv.m;hC&&(this.BP= hC)}var vq=nv(Ln.qoeUrl);if(vq){for(var s7=g.uv(vq),wa=g.n(Object.keys(s7)),qz=wa.next();!qz.done;qz=wa.next()){var mU=qz.value,WY=s7[mU];s7[mU]=Array.isArray(WY)?WY.join(","):WY}this.NI=s7;var wf=s7.cat;wf&&(this.V("html5_enable_qoe_cat_list")?this.v0=this.v0.concat(wf.split(",")):this.kX=wf);var FU=s7.live;FU&&(this.wD=FU);var Mz=s7.drm_product;Mz&&(this.gS=Mz)}var sE=nv(Ln.videostatsPlaybackUrl);if(sE){var tn=gr(sE),B4=tn.adformat;if(B4){uL.adformat=B4;var PQ=this.C(),a2=W9_(B4,this.JY,PQ.D,PQ.Y); a2&&(this.adFormat=a2)}var I6=tn.aqi;I6&&(uL.ad_query_id=I6);var RG=tn.autoplay;RG&&(this.Yn=RG=="1",this.D4=RG=="1",HG(this,"vss"));var kZ=tn.autonav;kZ&&(this.isAutonav=kZ=="1");var fr=tn.delay;fr&&(this.Xa=z2(fr));var xW=tn.ei;xW&&(this.eventId=xW);if(tn.adcontext||B4)this.Yn=!0,HG(this,"ad");var W5=tn.feature;W5&&(this.ID=W5);var tC=tn.list;tC&&(this.playlistId=tC);var jP=tn.of;jP&&(this.Lc=jP);var F$=tn.osid;F$&&(this.osid=F$);var x6=tn.referrer;x6&&(this.referrer=x6);var X7=tn.sdetail;X7&&(this.F8= X7);var yY=tn.ssrt;yY&&(this.jl=yY=="1");var vC=tn.subscribed;vC&&(this.subscribed=vC=="1",this.Y.subscribed=vC);var yv=tn.uga;yv&&(this.userGenderAge=yv);var OU=tn.upt;OU&&(this.U2=OU);var om=tn.vm;om&&(this.videoMetadata=om);pn.playback=tn}var Ja=nv(Ln.videostatsWatchtimeUrl);if(Ja){var N6=gr(Ja),Im=N6.ald;Im&&(this.T$=Im);pn.watchtime=N6}var Aa=nv(Ln.atrUrl);if(Aa){var Vt=gr(Aa);pn.atr=Vt}var O4=nv(Ln.engageUrl);if(O4){var di=gr(O4);pn.engage=di}this.yd=pn;if(Ln.promotedPlaybackTracking){var ks= Ln.promotedPlaybackTracking;ks.startUrls&&(this.kd=ks.startUrls);ks.firstQuartileUrls&&(this.iN=ks.firstQuartileUrls);ks.secondQuartileUrls&&(this.QJ=ks.secondQuartileUrls);ks.thirdQuartileUrls&&(this.Cc=ks.thirdQuartileUrls);ks.completeUrls&&(this.EE=ks.completeUrls);ks.engagedViewUrls&&(ks.engagedViewUrls.length>1&&g.PT(new g.wD("There are more than one engaged_view_urls.")),this.J5=ks.engagedViewUrls[0])}}var qq=this.playerResponse.playerCueRanges;qq&&qq.length>0&&(this.cueRanges=qq);var Y6=this.playerResponse.playerCueRangeSet; Y6&&g.ka(this,Y6);a:{var Mq=this.playerResponse.adPlacements;if(Mq)for(var rp=g.n(Mq),Cj=rp.next();!Cj.done;Cj=rp.next()){var sU=void 0,Bs=void 0,Ps=(sU=Cj.value.adPlacementRenderer)==null?void 0:(Bs=sU.renderer)==null?void 0:Bs.videoAdTrackingRenderer;if(Ps){var am=Ps;break a}}am=null}var tN=am;Ln&&Ln.promotedPlaybackTracking&&tN&&g.PT(new g.wD("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));var ji;if(!(ji=tN))a:{for(var UU=g.n(this.playerResponse.adSlots||[]), ES=UU.next();!ES.done;ES=UU.next()){var pj=g.K(ES.value,Uy);if(pj===void 0||!$rp(pj))break;var cs=void 0,mj=(cs=pj.fulfillmentContent)==null?void 0:cs.fulfilledLayout,iZ=g.K(mj,Nd);if(iZ&&nY(iZ)){ji=!0;break a}}ji=!1}ji&&(this.Mf=!0);var ha=this.playerResponse.playerAds;if(ha)for(var wi=Q,Ws=g.n(ha),Fd=Ws.next();!Fd.done;Fd=Ws.next()){var DF=Fd.value;if(DF){var K3=DF.playerLegacyDesktopWatchAdsRenderer;if(K3){var JZ=K3.playerAdParams;if(JZ){JZ.autoplay=="1"&&(this.D4=this.Yn=!0);this.gA=JZ.encodedAdSafetyReason|| null;JZ.showContentThumbnail!==void 0&&(this.Pl=!!JZ.showContentThumbnail);wi.enabled_engage_types=JZ.enabledEngageTypes;break}}}}var j4=this.playerResponse.playerConfig;if(j4){var Ua=j4.manifestlessWindowedLiveConfig;if(Ua){var VA=Number(Ua.minDvrSequence),nj=Number(Ua.maxDvrSequence),xC=Number(Ua.minDvrMediaTimeMs),O5=Number(Ua.maxDvrMediaTimeMs),gE=Number(Ua.startWalltimeMs);VA&&(this.Li=VA);xC&&(this.jm=xC/1E3,this.V("html5_sabr_parse_live_metadata_playback_boundaries")&&L9(this)&&(this.W0=xC/ 1E3));nj&&(this.zs=nj);O5&&(this.Wz=O5/1E3,this.V("html5_sabr_parse_live_metadata_playback_boundaries")&&L9(this)&&(this.eN=O5/1E3));gE&&(this.ys=gE/1E3);(VA||xC)&&(nj||O5)&&(this.allowLiveDvr=this.isLivePlayback=this.f3=!0,this.l8=!1)}var cQ=j4.daiConfig;if(cQ){if(cQ.enableDai){this.Uj=!0;var oW=cQ.enableServerStitchedDai;oW&&(this.enableServerStitchedDai=oW);var dp=cQ.enablePreroll;dp&&(this.enablePreroll=dp)}var T_;if(cQ.daiType==="DAI_TYPE_SS_DISABLED"||((T_=cQ.debugInfo)==null?0:T_.isDisabledUnpluggedChannel))this.CD= !0;cQ.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(this.RL=!0)}var M2=j4.audioConfig;if(M2){var DV=M2.loudnessDb;DV!=null&&(this.dS=DV);var pG6=M2.trackAbsoluteLoudnessLkfs;pG6!=null&&(this.AC=pG6);var n1_=M2.loudnessTargetLkfs;n1_!=null&&(this.loudnessTargetLkfs=n1_);M2.audioMuted&&(this.Uf=!0);M2.muteOnStart&&(this.z6=!0);var $N=M2.loudnessNormalizationConfig;if($N){$N.applyStatefulNormalization&&(this.applyStatefulNormalization=!0);$N.preserveStatefulLoudnessTarget&&(this.preserveStatefulLoudnessTarget= !0);var g16=$N.minimumLoudnessTargetLkfs;g16!=null&&(this.minimumLoudnessTargetLkfs=g16);var ZRL=$N.maxStatefulTimeThresholdSec;ZRL!=null&&(this.maxStatefulTimeThresholdSec=ZRL)}this.V("web_player_audio_playback_from_audio_config")&&M2.playAudioOnly&&(this.dQ=!0)}var Egu=j4.playbackEndConfig;if(Egu){var GIJ=Egu.endSeconds,$W6=Egu.limitedPlaybackDurationInSeconds;this.mutedAutoplay&&(GIJ&&(this.endSeconds=GIJ),$W6&&(this.limitedPlaybackDurationInSeconds=$W6))}var CB=j4.fairPlayConfig;if(CB){var jga= CB.certificate;jga&&(this.C3=fo(jga));var Fhk=Number(CB.keyRotationPeriodMs);Fhk>0&&(this.pW=Fhk);var xWk=Number(CB.keyPrefetchMarginMs);xWk>0&&(this.bu=xWk)}var lG=j4.playbackStartConfig;if(lG){this.mZ=Number(lG.startSeconds);var ORY=lG.liveUtcStartSeconds,o19=!!this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0;ORY&&!o19&&(this.liveUtcStartSeconds=Number(ORY));var pJu=lG.startPosition;if(pJu){var Jfu=pJu.utcTimeMillis;Jfu&&!o19&&(this.liveUtcStartSeconds=Number(Jfu)*.001);var NXa=pJu.streamTimeMillis; NXa&&(this.Tx=Number(NXa)*.001)}this.progressBarStartPosition=lG.progressBarStartPosition;this.progressBarEndPosition=lG.progressBarEndPosition}else{var nga=j4.skippableSegmentsConfig;if(nga){var Iav=nga.introSkipDurationMs;Iav&&(this.QO=Number(Iav)/1E3);var AfZ=nga.outroSkipDurationMs;AfZ&&(this.qr=Number(AfZ)/1E3)}}var gg6=j4.skippableIntroConfig;if(gg6){var YZ6=Number(gg6.startMs),rfL=Number(gg6.endMs);isNaN(YZ6)||isNaN(rfL)||(this.A5=YZ6,this.h$=rfL)}var sgA=j4.streamSelectionConfig;sgA&&(this.yR= Number(sgA.maxBitrate));var BXn=j4.vrConfig;BXn&&(this.In=BXn.partialSpherical=="1");var jG=j4.webDrmConfig;if(jG){jG.skipWidevine&&(this.Lz=!0);var PjY=jG.widevineServiceCert;PjY&&(this.Lt=fo(PjY));jG.useCobaltWidevine&&(this.useCobaltWidevine=!0);jG.startWithNoQualityConstraint&&(this.ov=!0)}var kW=j4.mediaCommonConfig;if(kW){var tJ=kW.dynamicReadaheadConfig;if(tJ){this.maxReadAheadMediaTimeMs=tJ.maxReadAheadMediaTimeMs||NaN;this.minReadAheadMediaTimeMs=tJ.minReadAheadMediaTimeMs||NaN;this.readAheadGrowthRateMs= tJ.readAheadGrowthRateMs||NaN;var aaL,UWa=kW==null?void 0:(aaL=kW.mediaUstreamerRequestConfig)==null?void 0:aaL.videoPlaybackUstreamerConfig;UWa&&(this.KE=fo(UWa));var Z$8=kW==null?void 0:kW.sabrContextUpdates;if(Z$8&&Z$8.length>0)for(var cfJ=g.n(Z$8),GU6=cfJ.next();!GU6.done;GU6=cfJ.next()){var g6=GU6.value;if(g6.type&&g6.value){var JuR={type:g6.type,scope:g6.scope,value:fo(g6.value)||void 0,sendByDefault:g6.sendByDefault};this.sabrContextUpdates.set(g6.type,JuR)}}}var iR_=kW.serverPlaybackStartConfig; iR_&&(this.serverPlaybackStartConfig=iR_);kW.useServerDrivenAbr&&(this.WY=!0);var h0_=kW.requestPipeliningConfig;h0_&&(this.requestPipeliningConfig=h0_)}var Wh_=j4.inlinePlaybackConfig;Wh_&&(this.lq=!!Wh_.showAudioControls);var Ez=j4.embeddedPlayerConfig;if(Ez){this.embeddedPlayerConfig=Ez;var $O_=Ez.embeddedPlayerMode;if($O_){var DWu=this.C();DWu.De=$O_;DWu.L=$O_==="EMBEDDED_PLAYER_MODE_PFL"}var Khv=Ez.permissions;Khv&&(this.allowImaMonetization=!!Khv.allowImaMonetization)}var V1Y=j4.ssapConfig; V1Y&&(this.So=V1Y.ssapPrerollEnabled||!1);var pB=j4.webPlayerConfig;pB&&(pB.gatewayExperimentGroup&&(this.gatewayExperimentGroup=pB.gatewayExperimentGroup),pB.isProximaEligible&&(this.isProximaLatencyEligible=!0))}var TO=this.playerResponse.streamingData;if(TO){var j$L=TO.formats;if(j$L){for(var F4=[],dWp=g.n(j$L),FTn=dWp.next();!FTn.done;FTn=dWp.next()){var xO8=FTn.value;F4.push(xO8.itag+"/"+xO8.width+"x"+xO8.height)}this.jj=F4.join(",");F4=[];for(var mW9=g.n(j$L),O$k=mW9.next();!O$k.done;O$k=mW9.next()){var xN= O$k.value,Oy={itag:xN.itag,type:xN.mimeType,quality:xN.quality},wG6=xN.url;wG6&&(Oy.url=wG6);var nB=OY(xN),Nws=nB.vX,IVT=nB.cO,AuB=nB.s;nB.y$&&(Oy.url=Nws,Oy.sp=IVT,Oy.s=AuB);F4.push(g.Kg(Oy))}this.C2=F4.join(",")}var ogv=TO.hlsFormats;if(ogv){var kIn=j4||null,g9={};if(kIn){var JbL=kIn.audioPairingConfig;if(JbL&&JbL.pairs)for(var TXp=g.n(JbL.pairs),N$A=TXp.next();!N$A.done;N$A=TXp.next()){var e0J=N$A.value,ITn=e0J.videoItag;g9[ITn]||(g9[ITn]=[]);g9[ITn].push(e0J.audioItag)}}for(var laZ={},R0k=g.n(ogv), AbZ=R0k.next();!AbZ.done;AbZ=R0k.next()){var QMY=AbZ.value;laZ[QMY.itag]=QMY.bitrate}for(var zj6=[],HK8=g.n(ogv),YK9=HK8.next();!YK9.done;YK9=HK8.next()){var bd=YK9.value,N2={itag:bd.itag,type:bd.mimeType,url:bd.url,bitrate:bd.bitrate,width:bd.width,height:bd.height,fps:bd.fps},ZD=bd.audioTrack;if(ZD){var f_L=ZD.displayName;f_L&&(N2.name=f_L,N2.audio_track_id=ZD.id,ZD.audioIsDefault&&(N2.is_default="1"))}if(bd.drmFamilies){for(var bK_=[],Lp9=g.n(bd.drmFamilies),rbk=Lp9.next();!rbk.done;rbk=Lp9.next())bK_.push(qj[rbk.value]); N2.drm_families=bK_.join(",")}var Gc=g9[bd.itag];if(Gc&&Gc.length){N2.audio_itag=Gc.join(",");var u1c=laZ[Gc[0]];u1c&&(N2.bitrate+=u1c)}var SJ_=raY(bd);SJ_&&(N2.eotf=SJ_);bd.audioChannels&&(N2.audio_channels=bd.audioChannels);zj6.push(g.Kg(N2))}this.hlsFormats=zj6.join(",")}var s$v=TO.licenseInfos;if(s$v&&s$v.length>0){for(var XN8={},vnp=g.n(s$v),B$L=vnp.next();!B$L.done;B$L=vnp.next()){var yvZ=B$L.value,qJv=yvZ.drmFamily,Mfk=yvZ.url;qJv&&Mfk&&(XN8[qj[qJv]]=Mfk)}this.AM=XN8}var Co8=TO.drmParams;Co8&& (this.drmParams=Co8);var tfk=TO.dashManifestUrl;tfk&&(this.p5=g.Ve(tfk,{cpn:this.clientPlaybackNonce}));var Env=TO.hlsManifestUrl;Env&&(this.hlsvp=Env);var pNn=TO.probeUrl;pNn&&(this.probeUrl=Qx(g.Ve(pNn,{cpn:this.clientPlaybackNonce})));var nn6=TO.serverAbrStreamingUrl;nn6&&(this.N7=new g.ZM(nn6,!0))}var gn_=this.playerResponse.trackingParams;gn_&&(this.yl=gn_);var w7=this.playerResponse.videoDetails;if(w7){var I3=Q,PzZ=w7.videoId;PzZ&&(this.videoId=PzZ,I3.video_id||(I3.video_id=PzZ));var ZK_=w7.channelId; ZK_&&(this.Y.uid=ZK_.substring(2));var aTv=w7.title;aTv&&(this.title=aTv,I3.title||(I3.title=aTv));var UO8=w7.lengthSeconds;UO8&&(this.lengthSeconds=Number(UO8),I3.length_seconds||(I3.length_seconds=UO8));var GGL=w7.keywords;GGL&&(this.keywords=OY9(GGL));var cb_=w7.channelId;cb_&&(this.HG=cb_,I3.ucid||(I3.ucid=cb_));var $Fv=w7.viewCount;$Fv&&(this.rawViewCount=Number($Fv));var i$Z=w7.author;i$Z&&(this.author=i$Z,I3.author||(I3.author=i$Z));var jMa=w7.shortDescription;jMa&&(this.shortDescription=jMa); var Fpa=w7.isCrawlable;Fpa&&(this.isListed=Fpa);var xFL=w7.musicVideoType;xFL&&(this.musicVideoType=xFL);var hOn=w7.isLive;hOn!=null&&(this.isLivePlayback=hOn);if(hOn||w7.isUpcoming)this.isPremiere=!w7.isLiveContent;var OKn=w7.thumbnail;OKn&&(this.U=pv(OKn));var onc=w7.isExternallyHostedPodcast;onc&&(this.isExternallyHostedPodcast=onc);var WTa=w7.viewerLivestreamJoinPosition;if(WTa==null?0:WTa.utcTimeMillis)this.ER=z2(WTa.utcTimeMillis);var Jv_=j4||null,DOk=Q;w7.isLiveDefaultBroadcast&&(this.isLiveDefaultBroadcast= !0);w7.isUpcoming&&(this.isUpcoming=!0);if(w7.isPostLiveDvr){this.l8=!0;var Nzc=w7.latencyClass;Nzc&&(this.latencyClass=gfu[Nzc]||"UNKNOWN");w7.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0)}else{var KTk=!1;this.WI?(this.allowLiveDvr=eb()?!0:lv&&m7<5?!1:!0,this.isLivePlayback=!0):w7.isLive?(DOk.livestream="1",this.allowLiveDvr=w7.isLiveDvrEnabled?eb()?!0:lv&&m7<5?!1:!0:!1,this.partnerId=27,KTk=!0):w7.isUpcoming&&(KTk=!0);if(w7.isLive||this.WI&&this.V("html5_parse_live_monitor_flags")){w7.isLowLatencyLiveStream&& (this.isLowLatencyLiveStream=!0);var I_A=w7.latencyClass;I_A&&(this.latencyClass=gfu[I_A]||"UNKNOWN");var Av9=w7.liveChunkReadahead;Av9&&(this.liveChunkReadahead=Av9);var Rt=Jv_&&Jv_.livePlayerConfig;if(Rt){Rt.hasSubfragmentedFmp4&&(this.hasSubfragmentedFmp4=!0);Rt.hasSubfragmentedWebm&&(this.rF=!0);Rt.defraggedFromSubfragments&&(this.defraggedFromSubfragments=!0);var YJu=Rt.liveExperimentalContentId;YJu&&(this.liveExperimentalContentId=Number(YJu));var rva=Rt.isLiveHeadPlayable;this.V("html5_live_head_playable")&& rva!=null&&(this.isLiveHeadPlayable=rva)}}KTk&&(this.isLivePlayback=!0,DOk.adformat&&DOk.adformat.split("_")[1]!=="8"||this.De.push("heartbeat"),this.J_=!0)}var sMv=w7.isPrivate;sMv!==void 0&&(this.isPrivate=bh(this.isPrivate,sMv))}if(SY){var Bz8=w7||null,Poa=!1,Qd=SY.errorScreen;Poa=Qd&&(Qd.playerLegacyDesktopYpcOfferRenderer||Qd.playerLegacyDesktopYpcTrailerRenderer||Qd.ypcTrailerRenderer)?!0:Bz8&&Bz8.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(SY.status);if(!Poa){this.errorCode= B09(SY.errorCode)||"auth";var $Y=Qd&&Qd.playerErrorMessageRenderer;if($Y){this.playerErrorMessageRenderer=$Y;var a_9=$Y.reason;a_9&&(this.errorReason=g.pa(a_9));var VeA=$Y.subreason;VeA&&(this.Jj=g.pa(VeA),this.oQ=VeA)}else this.errorReason=SY.reason||null;var dO9=SY.status;if(dO9==="LOGIN_REQUIRED")this.errorDetail="1";else if(dO9==="CONTENT_CHECK_REQUIRED")this.errorDetail="2";else if(dO9==="AGE_CHECK_REQUIRED"){var UFa=SY.errorScreen,cva=UFa&&UFa.playerKavRenderer;this.errorDetail=cva&&cva.kavUrl? "4":"3"}else this.errorDetail=SY.isBlockedInRestrictedMode?"5":"0"}}var iKY=this.playerResponse.interstitialPods;iKY&&kTu(this,iKY);this.uT&&this.eventId&&(this.uT=XZ(this.uT,{ei:this.eventId}));var mOn=this.playerResponse.captions;if(mOn&&mOn.playerCaptionsTracklistRenderer)a:{var Ax=mOn.playerCaptionsTracklistRenderer;this.captionTracks=[];if(Ax.captionTracks)for(var hjn=g.n(Ax.captionTracks),wJL=hjn.next();!wJL.done;wJL=hjn.next()){var Ye=wJL.value,WpL=jV6(Ye.baseUrl);if(!WpL)break a;var kU8={is_translateable:!!Ye.isTranslatable, languageCode:Ye.languageCode,languageName:Ye.name&&g.pa(Ye.name),url:WpL,vss_id:Ye.vssId,kind:Ye.kind};kU8.name=Ye.trackName;kU8.displayName=Ye.name&&g.pa(Ye.name);this.captionTracks.push(new g.qG(kU8))}this.UE=Ax.audioTracks||[];this.v3=Ax.defaultAudioTrackIndex||0;this.ON=[];if(Ax.translationLanguages)for(var DFL=g.n(Ax.translationLanguages),T$u=DFL.next();!T$u.done;T$u=DFL.next()){var zL=T$u.value,Z7={};Z7.languageCode=zL.languageCode;Z7.languageName=g.pa(zL.languageName);if(zL.translationSourceTrackIndices){Z7.translationSourceTrackIndices= [];for(var Kp8=g.n(zL.translationSourceTrackIndices),eOc=Kp8.next();!eOc.done;eOc=Kp8.next())Z7.translationSourceTrackIndices.push(eOc.value)}if(zL.excludeAudioTrackIndices){Z7.excludeAudioTrackIndices=[];for(var Vf8=g.n(zL.excludeAudioTrackIndices),lT9=Vf8.next();!lT9.done;lT9=Vf8.next())Z7.excludeAudioTrackIndices.push(lT9.value)}this.ON.push(Z7)}this.rY=[];if(Ax.defaultTranslationSourceTrackIndices)for(var dF9=g.n(Ax.defaultTranslationSourceTrackIndices),RO6=dF9.next();!RO6.done;RO6=dF9.next())this.rY.push(RO6.value); this.HP=!!Ax.contribute&&!!Ax.contribute.captionsMetadataRenderer}(this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.mZ=Number(this.clipConfig.startTimeMs)*.001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&ec9(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var mFc;this.compositeLiveIngestionOffsetToken= (mFc=this.playerResponse.playbackTracking)==null?void 0:mFc.compositeLiveIngestionOffsetToken;var wNv;this.compositeLiveStatusToken=(wNv=this.playerResponse.playbackTracking)==null?void 0:wNv.compositeLiveStatusToken}Vc(this,Q);Q.queue_info&&(this.queueInfo=Q.queue_info);var kGa=Q.hlsdvr;kGa!=null&&(this.allowLiveDvr=Number(kGa)===1?eb()?!0:lv&&m7<5?!1:!0:!1);this.adQueryId=Q.ad_query_id||null;this.gA||(this.gA=Q.encoded_ad_safety_reason||null);this.h6=Q.agcid||null;this.hk=Q.ad_id||null;this.I5= Q.ad_sys||null;this.yA=Q.encoded_ad_playback_context||null;this.Uf=bh(this.Uf,Q.infringe||Q.muted);this.vH=Q.authkey;this.nne=Q.authuser;this.mutedAutoplay=bh(this.mutedAutoplay,Q&&Q.playmuted);this.mutedAutoplayDurationMode=uh(this.mutedAutoplayDurationMode,Q&&Q.muted_autoplay_duration_mode);this.TK=bh(this.TK,Q&&Q.mutedautoplay);var j8=Q.length_seconds;j8&&(this.lengthSeconds=typeof j8==="string"?z2(j8):j8);if(this.isAd()||this.zj||!g.q0(g.s8(this.aj)))this.endSeconds=uh(this.endSeconds,this.qr|| Q.end||Q.endSeconds);else{var Y9B=g.s8(this.aj),FT=this.lengthSeconds;switch(Y9B){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":FT>30?this.limitedPlaybackDurationInSeconds=30:FT<30&&FT>10&&(this.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":this.limitedPlaybackDurationInSeconds=FT*.2}}this.yl=Ss(this.yl,Q.itct);this.Fu=bh(this.Fu,Q.noiba);this.qf=bh(this.qf,Q.is_live_destination);this.isLivePlayback=bh(this.isLivePlayback,Q.live_playback); this.enableServerStitchedDai=this.enableServerStitchedDai&&this.AZ();Q.isUpcoming&&(this.isUpcoming=bh(this.isUpcoming,Q.isUpcoming));this.l8=bh(this.l8,Q.post_live_playback);this.f3&&(this.l8=!1);this.isMdxPlayback=bh(this.isMdxPlayback,Q.mdx);var xY=Q.mdx_control_mode;xY&&(this.mdxControlMode=typeof xY==="number"?xY:z2(xY));this.isInlinePlaybackNoAd=bh(this.isInlinePlaybackNoAd,Q.is_inline_playback_no_ad);this.gT=uh(this.gT,Q.reload_count);this.reloadReason=Ss(this.reloadReason,Q.reload_reason); this.Pl=bh(this.Pl,Q.show_content_thumbnail);this.OE=bh(this.OE,Q.utpsa);this.cycToken=Q.cyc||null;this.oG=Q.tkn||null;var Tzc=Es(Q);Object.keys(Tzc).length>0&&(this.U=Tzc);this.wh=Ss(this.wh,Q.vvt);this.mdxEnvironment=Ss(this.mdxEnvironment,Q.mdx_environment);Q.source_container_playlist_id&&(this.sourceContainerPlaylistId=Q.source_container_playlist_id);Q.serialized_mdx_metadata&&(this.serializedMdxMetadata=Q.serialized_mdx_metadata);this.EK=Q.osig;this.eventId||(this.eventId=Q.eventid);this.osid|| (this.osid=Q.osid);this.playlistId=Ss(this.playlistId,Q.list);Q.index&&(this.playlistIndex=this.playlistIndex===void 0?uh(0,Q.index):uh(this.playlistIndex,Q.index));this.tI=Q.pyv_view_beacon_url;this.oh=Q.pyv_quartile25_beacon_url;this.PT=Q.pyv_quartile50_beacon_url;this.Gr=Q.pyv_quartile75_beacon_url;this.Yz=Q.pyv_quartile100_beacon_url;var ejA=Q.session_data;!this.Zx&&ejA&&(this.Zx=H2(ejA,"&").feature);this.isFling=uh(this.isFling?1:0,Q.is_fling)===1;this.vnd=uh(this.vnd,Q.vnd);this.forceAdsUrl= Ss(this.forceAdsUrl,Q.force_ads_url);this.Ts=Ss(this.Ts,Q.ctrl);this.Qw=Ss(this.Qw,Q.ytr);this.mH=Q.ytrcc;this.Ya=Q.ytrexp;this.uN=Q.ytrext;this.UY=Ss(this.UY,Q.adformat);this.JY=Ss(this.JY,Q.attrib);this.slotPosition=uh(this.slotPosition,Q.slot_pos);this.breakType=Q.break_type;this.jl=bh(this.jl,Q.ssrt);this.videoId=vw(Q)||this.videoId;this.j=Ss(this.j,Q.vss_credentials_token);this.ZK=Ss(this.ZK,Q.vss_credentials_token_type);this.dQ=bh(this.dQ,Q.audio_only);this.rT=bh(this.rT,Q.aac_high);this.pc= bh(this.pc,Q.prefer_low_quality_audio);this.x6=bh(this.x6,Q.uncap_inline_quality);this.V("html5_enable_qoe_cat_list")?Q.qoe_cat&&(this.v0=this.v0.concat(Q.qoe_cat.split(","))):this.kX=Ss(this.kX,Q.qoe_cat);this.q0=bh(this.q0,Q.download_media);var l__=Q.prefer_gapless;this.N=l__!=null?bh(this.N,l__):this.N?this.N:this.aj.preferGapless&&this.aj.supportsGaplessShorts();kgu(this.playerResponse)&&this.De.push("ad");var RjY=Q.adaptive_fmts;RjY&&(this.adaptiveFormats=RjY,this.On("adpfmts",{},!0));var Q8L= Q.allow_embed;Q8L&&(this.allowEmbed=Number(Q8L)===1);var zQZ=Q.backgroundable;zQZ&&(this.backgroundable=Number(zQZ)===1);var HHu=Q.autonav;HHu&&(this.isAutonav=Number(HHu)===1);var frJ=Q.autoplay;frJ&&(this.Yn=this.D4=Number(frJ)===1,HG(this,"c"));var bH8=Q.iv_load_policy;bH8&&(this.annotationsLoadPolicy=LF(this.annotationsLoadPolicy,bH8,B0));var LbA=Q.cc_lang_pref;LbA&&(this.captionsLanguagePreference=Ss(LbA,this.captionsLanguagePreference));var utv=Q.cc_load_policy;utv&&(this.Jk=LF(this.Jk,utv, B0));var Sf9;this.deviceCaptionsOn=(Sf9=Q.device_captions_on)!=null?Sf9:void 0;var XAp;this.ZF=(XAp=Q.device_captions_lang_pref)!=null?XAp:"";var v$a;this.BX=(v$a=Q.viewer_selected_caption_langs)!=null?v$a:[];if(!this.V("html5_enable_ssap_entity_id")){var ysL=Q.cached_load;ysL&&(this.R4=bh(this.R4,ysL))}if(Q.dash==="0"||Q.dash===0||Q.dash===!1)this.zD=!0;var qfZ=Q.dashmpd;qfZ&&(this.p5=g.Ve(qfZ,{cpn:this.clientPlaybackNonce}));var MSp=Q.delay;MSp&&(this.Xa=z2(MSp));var QIZ=this.qr||Q.end;if(this.Vs? QIZ!=null:QIZ!=void 0)this.clipEnd=uh(this.clipEnd,QIZ);var CkL=Q.fmt_list;CkL&&(this.jj=CkL);Q.heartbeat_preroll&&this.De.push("heartbeat");this.P5=-Math.floor(Math.random()*10);this.hY=-Math.floor(Math.random()*40);var tSv=Q.is_listed;tSv&&(this.isListed=bh(this.isListed,tSv));var E$p=Q.is_private;E$p&&(this.isPrivate=bh(this.isPrivate,E$p));var pAn=Q.is_dni;pAn&&(this.gV=bh(this.gV,pAn));var n$p=Q.dni_color;n$p&&(this.H0=Ss(this.H0,n$p));var g$Z$=Q.pipable;g$Z$&&(this.pipable=bh(this.pipable,g$Z$)); this.Rf=(this.ra=this.pipable&&this.aj.J_)&&!this.aj.showMiniplayerButton;var ZHu=Q.paid_content_overlay_duration_ms;ZHu&&(this.paidContentOverlayDurationMs=z2(ZHu));var Ghk=Q.paid_content_overlay_text;Ghk&&(this.paidContentOverlayText=Ghk);var $QL=Q.url_encoded_fmt_stream_map;$QL&&(this.C2=$QL);var j8v=Q.hls_formats;j8v&&(this.hlsFormats=j8v);var Fbu=Q.hlsvp;Fbu&&(this.hlsvp=Fbu);var Oz=Q.live_start_walltime;Oz&&(this.P_=typeof Oz==="number"?Oz:z2(Oz));var oD=Q.live_manifest_duration;oD&&(this.gt= typeof oD==="number"?oD:z2(oD));var xQA=Q.player_params;xQA&&(this.playerParams=xQA);var OHA=Q.partnerid;OHA&&(this.partnerId=uh(this.partnerId,OHA));var o$Y=Q.probe_url;o$Y&&(this.probeUrl=Qx(g.Ve(o$Y,{cpn:this.clientPlaybackNonce})));var zf8=Q.pyv_billable_url;zf8&&LXc(zf8)&&(this.J5=zf8);var HCv=Q.pyv_conv_url;HCv&&LXc(HCv)&&(this.ZT=HCv);oNk(this,Q);this.startSeconds>0?this.V("html5_log_start_seconds_inconsistency")&&this.startSeconds!==(this.mZ||this.QO||Q.start||Q.startSeconds)&&this.On("lss", {css:this.startSeconds,pcss:this.mZ,iss:this.QO,ps:Q.start||void 0,pss:Q.startSeconds||void 0}):this.EY=this.startSeconds=uh(this.startSeconds,this.mZ||this.QO||Q.start||Q.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var Js9=Q.live_utc_start;if(Js9!=null)this.liveUtcStartSeconds=Number(Js9);else{var fzJ=this.startSeconds;fzJ&&isFinite(fzJ)&&fzJ>1E9&&(this.liveUtcStartSeconds=this.startSeconds)}}if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var NYv=Q.utc_start_millis; NYv&&(this.liveUtcStartSeconds=Number(NYv)*.001)}var Iru=Q.stream_time_start_millis;Iru&&(this.Tx=Number(Iru)*.001);var bCk=this.QO||Q.start;(this.Vs?bCk==null||Number(Q.resume)===1:bCk==void 0||Q.resume=="1")||this.isLivePlayback||(this.clipStart=uh(this.clipStart,bCk));var AsY=Q.url_encoded_third_party_media;AsY&&(this.Bl=L1(AsY));var LS6=Q.ypc_offer_button_formatted_text;if(LS6){var Yf8=JSON.parse(LS6);this.LU=Yf8!=null?Yf8:null;this.BH=LS6}var rsA=Q.ypc_offer_button_text;rsA&&(this.e$=rsA);var s8c= Q.ypc_offer_description;s8c&&(this.Ev=s8c);var BYk=Q.ypc_offer_headline;BYk&&(this.H1=BYk);var PkJ=Q.ypc_full_video_message;PkJ&&(this.YX=PkJ);var arL=Q.ypc_offer_id;arL&&(this.ax=arL);var UQk=Q.ypc_buy_url;UQk&&(this.p$=UQk);var csc=Q.ypc_item_thumbnail;csc&&(this.i9=csc);var iH8=Q.ypc_item_title;iH8&&(this.vN=iH8);var hQL=Q.ypc_item_url;hQL&&(this.oW=hQL);var Wbp=Q.ypc_vid;Wbp&&(this.Br=Wbp);Q.ypc_overlay_timeout&&(this.z0=Number(Q.ypc_overlay_timeout));var DQp=Q.ypc_trailer_player_vars;DQp&&(this.MD= bv(DQp));var KbA=Q.ypc_original_itct;KbA&&(this.Zd=KbA);this.HG=Ss(this.HG,Q.ucid);Q.baseUrl&&(this.Y.baseUrl=Q.baseUrl);Q.uid&&(this.Y.uid=Q.uid);Q.oeid&&(this.Y.oeid=Q.oeid);Q.ieid&&(this.Y.ieid=Q.ieid);Q.ppe&&(this.Y.ppe=Q.ppe);Q.engaged&&(this.Y.engaged=Q.engaged);Q.subscribed&&(this.Y.subscribed=Q.subscribed);this.Y.focEnabled=bh(this.Y.focEnabled,Q.focEnabled);this.Y.rmktEnabled=bh(this.Y.rmktEnabled,Q.rmktEnabled);this.TV=Q.storyboard_spec||null;this.l5=Q.live_storyboard_spec||null;this.j1= Q.iv_endscreen_url||null;this.J_=bh(this.J_,Q.ypc_license_checker_module);this.Tw=bh(this.Tw,Q.ypc_module);this.uL=bh(this.uL,Q.ypc_clickwrap_module);this.Tw&&this.De.push("ypc");this.uL&&this.De.push("ypc_clickwrap");this.hI={video_id:Q.video_id,eventid:Q.eventid,cbrand:Q.cbrand,cbr:Q.cbr,cbrver:Q.cbrver,c:Q.c,cver:Q.cver,ctheme:Q.ctheme,cplayer:Q.cplayer,cmodel:Q.cmodel,cnetwork:Q.cnetwork,cos:Q.cos,cosver:Q.cosver,cplatform:Q.cplatform,user_age:Q.user_age,user_display_image:Q.user_display_image, user_display_name:Q.user_display_name,user_gender:Q.user_gender,csi_page_type:Q.csi_page_type,csi_service_name:Q.csi_service_name,enablecsi:Q.enablecsi,enabled_engage_types:Q.enabled_engage_types};$dv(this,Q);var VSa=Q.cotn;VSa&&(this.cotn=VSa);if(iY_(this))XD(this)&&(this.isLivePlayback&&this.p5&&(this.yw=!0),this.C3&&(this.h_=!0));else if(hKc(this))this.yw=!0;else{var dQ_,mQZ,wAk=((dQ_=this.playerResponse)==null?void 0:(mQZ=dQ_.streamingData)==null?void 0:mQZ.adaptiveFormats)||[];if(wAk.length> 0)var oV=cAY(this,wAk);else{var khZ=this.adaptiveFormats;if(khZ&&!XD(this)){v7(this,"html5_enable_cobalt_experimental_vp9_decoder")&&(xi=!0);var HX=n9(khZ),uVc=this.AM,TY8=this.lengthSeconds,rus=this.isLivePlayback,JA=this.l8,fP=this.aj,sfO=ws8(HX);if(rus||JA){var eQ9=fP==null?void 0:fP.experiments,iu=new vj("",eQ9,!0);iu.AZ=!0;iu.isManifestless=!0;iu.B=!JA;iu.isLive=!JA;iu.l8=JA;for(var lrv=g.n(HX),SrZ=lrv.next();!SrZ.done;SrZ=lrv.next()){var b1=SrZ.value,RQY=Cy(b1,uVc),Gw=tQ(b1.url,b1.sp,b1.s), QbA=Gw.get("id");QbA&&QbA.includes("%7E")&&(iu.U=!0);var zPY=void 0,Bwu=(zPY=eQ9)==null?void 0:zPY.Nc("html5_max_known_end_time_rebase"),Pqx=Number(b1.target_duration_sec)||5,aVm=Number(b1.max_dvr_duration_sec)||14400,HIZ=Number(Gw.get("mindsq")||Gw.get("min_sq")||"0"),fp8=Number(Gw.get("maxdsq")||Gw.get("max_sq")||"0")||Infinity;iu.Li=iu.Li||HIZ;iu.zs=iu.zs||fp8;var UUY=!zs(RQY.mimeType);Gw&&uD(iu,new m$(Gw,RQY,{Cq:Pqx,Kr:UUY,Ic:aVm,Li:HIZ,zs:fp8,qJ:300,l8:JA,r_:Bwu}))}var bIY=iu}else{if(sfO==="FORMAT_STREAM_TYPE_OTF"){var JJ= TY8;JJ=JJ===void 0?0:JJ;var LP=new vj("",fP==null?void 0:fP.experiments,!1);LP.duration=JJ||0;for(var Lr6=g.n(HX),X3Z=Lr6.next();!X3Z.done;X3Z=Lr6.next()){var u1=X3Z.value,vs9=Cy(u1,uVc,LP.duration),y6_=tQ(u1.url,u1.sp,u1.s);if(y6_)if(vs9.streamType==="FORMAT_STREAM_TYPE_OTF")uD(LP,new wV(y6_,vs9,"sq/0"));else{var cuR=ON(u1.init),iTR=ON(u1.index);uD(LP,new fy(y6_,vs9,cuR,iTR))}}LP.isOtf=!0;var uJc=LP}else{var Nl=TY8;Nl=Nl===void 0?0:Nl;var ID=new vj("",fP==null?void 0:fP.experiments,!1);ID.duration= Nl||0;for(var SRn=g.n(HX),qrA=SRn.next();!qrA.done;qrA=SRn.next()){var S7=qrA.value,h$B=Cy(S7,uVc,ID.duration),Wks=ON(S7.init),DUt=ON(S7.index),XKv=tQ(S7.url,S7.sp,S7.s);XKv&&uD(ID,new fy(XKv,h$B,Wks,DUt))}uJc=ID}bIY=uJc}var vp9=bIY;if(HX.length>0){var ye8=HX[0];if(this.C().playerStyle==="hangouts-meet"&&ye8.url){var Kkt=g.uv(ye8.url);this.AK=this.AK||Number(Kkt.expire)}}var Vy5=this.isLivePlayback&&!this.l8&&!this.f3&&!this.isPremiere;this.V("html5_live_head_playable")&&(!qY(this)&&Vy5&&this.On("missingLiveHeadPlayable", {}),this.aj.Ze==="yt"&&(vp9.iT=!0));oV=vp9}else oV=null;this.On("pafmts",{isManifestFilled:!!oV})}if(oV){tM(this,oV);var qRc=!0}else qRc=!1;qRc?this.enableServerStitchedDai=this.enableServerStitchedDai&&MY(this):this.p5&&(this.aj.Ze==="yt"&&this.AZ()&&this.V("drm_manifestless_unplugged")&&this.V("html5_deprecate_manifestful_fallback")?this.On("deprecateMflFallback",{}):this.yw=!0)}var MaA=Q.adpings;MaA&&(this.UR=MaA?bv(MaA):null);var McJ=Q.feature;McJ&&(this.ID=McJ);var Cmk=Q.referrer;Cmk&&(this.referrer= Cmk);this.clientScreenNonce=Ss(this.clientScreenNonce,Q.csn);this.PO=uh(this.PO,Q.root_ve_type);this.CP=uh(this.CP,Q.kids_age_up_mode);this.Vs||Q.kids_app_info==void 0||(this.kidsAppInfo=Q.kids_app_info);this.Vs&&Q.kids_app_info!=null&&(this.kidsAppInfo=Q.kids_app_info);this.gg=bh(this.gg,Q.upg_content_filter_mode);this.unpluggedFilterModeType=uh(this.unpluggedFilterModeType,Q.unplugged_filter_mode_type);var tc8=Q.unplugged_location_info;tc8&&(this.Ze=tc8);var Epp=Q.unplugged_partner_opt_out;Epp&& (this.Xo=Ss("",Epp));this.zX=bh(this.zX,Q.disable_watch_next);this.X2=Ss(this.X2,Q.internal_ip_override);this.B$=!!Q.is_yto_interstitial;(this.interstitials.length||this.B$)&&this.De.push("yto");var pKc=Q.Xr;pKc&&(this.Xr=pKc);var npv;this.En=(npv=Q.csi_timer)!=null?npv:"";this.kc=!!Q.force_gvi;Q.watchUrl&&(this.watchUrl=Q.watchUrl);var $k=Q.watch_endpoint;this.V("html5_attach_watch_endpoint_ustreamer_config")&&$k&&aip(this,$k);if($k==null?0:$k.ustreamerConfig)this.VO=fo($k.ustreamerConfig);var gpA, ZI_,GXY=$k==null?void 0:(gpA=$k.loggingContext)==null?void 0:(ZI_=gpA.qoeLoggingContext)==null?void 0:ZI_.serializedContextData;GXY&&(this.Fq=GXY);g.xh(this.aj)&&this.aj.rz&&(this.embedsRct=Ss(this.embedsRct,Q.rct),this.embedsRctn=Ss(this.embedsRctn,Q.rctn));this.rz=this.rz||!!Q.pause_at_start;Q.default_active_source_video_id&&(this.defaultActiveSourceVideoId=Q.default_active_source_video_id)}; g.S.C=function(){return this.aj}; g.S.V=function(Q){return this.aj.V(Q)}; g.S.GZ=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.S.hasSupportedAudio51Tracks=function(){var Q;return!((Q=this.YJ)==null||!Q.gh)}; g.S.getUserAudio51Preference=function(){var Q=1;wm(this.aj)&&this.V("html5_ytv_surround_toggle_default_off")?Q=0:g.Vq(this.aj)&&this.isLivePlayback&&this.w7()&&(Q=0);var z;return(z=g.Pw("yt-player-audio51"))!=null?z:Q}; g.S.sQ=function(){this.Sm()||(this.Z.B||this.Z.unsubscribe("refresh",this.sQ,this),this.sP(-1))}; g.S.sP=function(Q){if(!this.isLivePlayback||!this.S||this.S.flavor!=="fairplay"){var z=Tpu(this.Z,this.ZH);if(z.length>0){for(var H=g.n(z),f=H.next();!f.done;f=H.next())f=f.value,f.startSecs=Math.max(f.startSecs,this.jx()),this.V("html5_cuepoint_identifier_logging")&&f.event==="start"&&this.On("cuepoint",{pubCue:f.identifier,segNum:Q});this.publish("cuepointupdated",z,Q);this.ZH+=z.length;if(MY(this)&&this.aj.vz())for(z=g.n(z),H=z.next();!H.done;H=z.next())H=H.value,this.On("cuepoint",{segNum:Q,event:H.event, startSecs:H.startSecs,id:H.identifier.slice(-16)}),H.event==="start"&&(H=H.startSecs,this.dD.start=this.iT,this.dD.end=H+3)}}}; g.S.Az=function(){this.Sm()||(this.loading=!1,this.publish("dataloaded"))}; g.S.w7=function(){return this.eM!==void 0?this.eM:this.eM=!!this.AM||!!this.Z&&MB(this.Z)}; g.S.g_=function(Q){var z=this;if(this.Sm())return sM();this.zx=this.gh=this.L=null;v7(this,"html5_high_res_logging_always")&&(this.aj.cq=!0);return VGa(this,Q).then(void 0,function(){return mdA(z,Q)}).then(void 0,function(){return wcJ(z)}).then(void 0,function(){return Tg8(z)})}; g.S.Ar=function(Q){this.L=Q;ddZ(this,this.L.getAvailableAudioTracks());if(this.L){Q=g.n(this.L.videoInfos);for(var z=Q.next();!z.done;z=Q.next()){z=z.value;var H=z.containerType;H!==0&&(this.eG[H]=z.id)}}xm(this);if(this.S&&this.L&&this.L.videoInfos&&!(this.L.videoInfos.length<=0)&&(Q=eM(this.L.videoInfos[0]),this.S.flavor==="fairplay"!==Q))for(z=g.n(this.nV),H=z.next();!H.done;H=z.next())if(H=H.value,Q===(H.flavor==="fairplay")){this.S=H;break}}; g.S.HU=function(){if(this.cotn)return null;var Q=g.FE(this.aj)||this.V("web_l3_storyboard");if(!this.W7)if(this.playerResponse&&this.playerResponse.storyboards){var z=this.playerResponse.storyboards,H=z.playerStoryboardSpecRenderer;H&&H.spec?this.W7=new cV(H.spec,this.lengthSeconds,void 0,!1,Q):(z=z.playerLiveStoryboardSpecRenderer)&&z.spec&&this.Z&&(H=D48(this.Z.Z).index)&&(this.W7=new hh(z.spec,this.Z.isLive,H,Q))}else this.TV?this.W7=new cV(this.TV,this.lengthSeconds,void 0,!1,Q):this.l5&&this.Z&& (z=D48(this.Z.Z).index)&&(this.W7=new hh(this.l5,this.Z.isLive,z,Q));return this.W7}; g.S.getStoryboardFormat=function(){if(this.cotn)return null;if(this.playerResponse&&this.playerResponse.storyboards){var Q=this.playerResponse.storyboards;return(Q=Q.playerStoryboardSpecRenderer||Q.playerLiveStoryboardSpecRenderer)&&Q.spec||null}return this.TV||this.l5}; g.S.jA=function(){return this.Z&&!isNaN(this.Z.jA())?this.Z.jA():MY(this)?0:this.lengthSeconds}; g.S.jx=function(){return this.Z&&!isNaN(this.Z.jx())?this.Z.jx():0}; g.S.getPlaylistSequenceForTime=function(Q){if(this.Z&&this.B){var z=this.Z.Z[this.B.id];if(!z)return null;var H=z.index.EX(Q);z=z.index.getStartTime(H);return{sequence:H,elapsed:Math.floor((Q-z)*1E3)}}return null}; g.S.EZ=function(){return!this.Sm()&&!(!this.videoId&&!this.Bl)}; g.S.gp=function(){var Q,z,H;return!!this.adaptiveFormats||!!((Q=this.playerResponse)==null?0:(z=Q.streamingData)==null?0:(H=z.adaptiveFormats)==null?0:H.length)}; g.S.isLoaded=function(){return Kv(this)&&!this.yw&&!this.h_}; g.S.MP=function(Q){Q||(Q="hqdefault.jpg");var z=this.U[Q];return z||this.aj.wh||Q==="pop1.jpg"||Q==="pop2.jpg"||Q==="sddefault.jpg"||Q==="hq720.jpg"||Q==="maxresdefault.jpg"?z:Dd(this.aj,this.videoId,Q)}; g.S.AZ=function(){return this.isLivePlayback||this.l8||this.f3||!(!this.liveUtcStartSeconds||!this.gt)}; g.S.isOtf=function(){return!!this.Z&&(this.Z.isOtf||!this.l8&&!this.isLivePlayback&&this.Z.B)}; g.S.getAvailableAudioTracks=function(){return this.L?this.L.getAvailableAudioTracks().length>0?this.L.getAvailableAudioTracks():this.Tl||[]:[]}; g.S.getAudioTrack=function(){var Q=this;if(this.D&&!eM(this.D))return g.mB(this.getAvailableAudioTracks(),function(f){return f.id===Q.D.id})||this.j2; if(this.Tl){if(!this.Da)for(var z=g.n(this.Tl),H=z.next();!H.done;H=z.next())if(H=H.value,H.Ii.getIsDefault()){this.Da=H;break}return this.Da||this.j2}return this.j2}; g.S.getPlayerResponse=function(){return this.playerResponse}; g.S.getWatchNextResponse=function(){return this.mq}; g.S.getHeartbeatResponse=function(){return this.va}; g.S.ma=function(){return this.watchUrl?this.watchUrl:this.aj.getVideoUrl(this.videoId)}; g.S.vM=function(){return!!this.Z&&(i3_(this.Z)||hqa(this.Z)||Ww6(this.Z))}; g.S.getEmbeddedPlayerResponse=function(){return this.S3}; g.S.fq=function(){return(this.eventLabel||this.aj.yl)==="shortspage"}; g.S.isAd=function(){return this.LY||!!this.adFormat}; g.S.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; g.S.OZ=function(){var Q,z,H;return this.isDaiEnabled()&&!!((Q=this.playerResponse)==null?0:(z=Q.playerConfig)==null?0:(H=z.daiConfig)==null?0:H.ssaEnabledPlayback)}; g.S.iP=function(){return nHL(this)?this.Dj:this.J_||this.LA}; g.S.SD=function(){return this.Tw||this.LA}; g.S.Nf=function(){return v7(this,"html5_samsung_vp9_live")}; g.S.On=function(Q,z,H){this.publish("ctmp",Q,z,H)}; g.S.b3=function(Q,z,H){this.publish("ctmpstr",Q,z,H)}; g.S.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; g.S.getGetAdBreakContext=function(Q,z){Q=Q===void 0?NaN:Q;z=z===void 0?NaN:z;var H={isSabr:L9(this)},f,b=(f=this.getHeartbeatResponse())==null?void 0:f.adBreakHeartbeatParams;b&&(H.adBreakHeartbeatParams=b);if(this.V("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.Z&&!isNaN(Q)&&!isNaN(z)){z=Q-z;for(var L in this.Z.Z)if(f=this.Z.Z[L],f.info.rQ()||f.info.Wq())if(f=f.index,f.isLoaded()){L=f.EX(z);f=f.JM(L)+z-f.getStartTime(L);this.On("gabc",{t:Q.toFixed(3),mt:z.toFixed(3),sg:L,igt:f.toFixed(3)}); H.livePlaybackPosition={utcTimeMillis:""+(f*1E3).toFixed(0)};break}}return H}; g.S.isEmbedsShortsMode=function(Q,z){if(!g.xh(this.aj))return!1;var H;if(!this.V("embeds_enable_emc3ds_shorts")&&((H=this.aj.getWebPlayerContextConfig())==null?0:H.embedsEnableEmc3ds)||(this.aj.De||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||z)return!1;var f,b;return!!(((f=this.embeddedPlayerConfig)==null?0:(b=f.embeddedPlayerFlags)==null?0:b.isShortsExperienceEligible)&&Q.width<=Q.height)}; g.S.zv=function(){g.Xp.prototype.zv.call(this);this.UR=null;delete this.mF;delete this.accountLinkingConfig;delete this.Z;this.L=this.va=this.playerResponse=this.mq=null;this.C2=this.adaptiveFormats="";delete this.botguardData;this.ZJ=this.suggestions=this.o_=null;this.sabrContextUpdates.clear()};var xD_={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},OQJ={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},ja6={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},ZQn={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"},$D6={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},Gxn={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"},Fi9={0:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_UNSPECIFIED",1:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_30_SECONDS",2:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_FULL"};g.p(uj,g.h);g.S=uj.prototype;g.S.handleExternalCall=function(Q,z,H){var f=this.state.Y[Q],b=this.state.N[Q],L=f;if(b)if(H&&T3(H,rnT))L=b;else if(!f)throw Error('API call from an untrusted origin: "'+H+'"');this.logApiCall(Q,H);if(L){H=!1;f=g.n(z);for(b=f.next();!b.done;b=f.next())if(String(b.value).includes("javascript:")){H=!0;break}H&&g.PT(Error('Dangerous call to "'+Q+'" with ['+z+"]."));return L.apply(this,z)}throw Error('Unknown API method: "'+Q+'".');}; g.S.logApiCall=function(Q,z,H){var f=this.app.C();f.QO&&!this.state.U.has(Q)&&(this.state.U.add(Q),g.y5("webPlayerApiCalled",{callerUrl:f.loaderUrl,methodName:Q,origin:z||void 0,playerStyle:f.playerStyle||void 0,embeddedPlayerMode:f.De,errorCode:H}))}; g.S.publish=function(Q){var z=g.A8.apply(1,arguments);this.state.L.publish.apply(this.state.L,[Q].concat(g.F(z)));if(Q==="videodatachange"||Q==="resize"||Q==="cardstatechange")this.state.B.publish.apply(this.state.B,[Q].concat(g.F(z))),this.state.D.publish.apply(this.state.D,[Q].concat(g.F(z)))}; g.S.F$=function(Q){var z=g.A8.apply(1,arguments);this.state.L.publish.apply(this.state.L,[Q].concat(g.F(z)));this.state.B.publish.apply(this.state.B,[Q].concat(g.F(z)))}; g.S.g4=function(Q){var z=g.A8.apply(1,arguments);this.state.L.publish.apply(this.state.L,[Q].concat(g.F(z)));this.state.B.publish.apply(this.state.B,[Q].concat(g.F(z)));this.state.D.publish.apply(this.state.D,[Q].concat(g.F(z)))}; g.S.A$=function(Q){var z=g.A8.apply(1,arguments);this.state.L.publish.apply(this.state.L,[Q].concat(g.F(z)));this.state.B.publish.apply(this.state.B,[Q].concat(g.F(z)));this.state.D.publish.apply(this.state.D,[Q].concat(g.F(z)));this.state.S.publish.apply(this.state.S,[Q].concat(g.F(z)))}; g.S.V=function(Q){return this.app.C().V(Q)}; g.S.zv=function(){if(this.state.element){var Q=this.state.element,z;for(z in this.state.Z)this.state.Z.hasOwnProperty(z)&&(Q[z]=null);this.state.element=null}g.h.prototype.zv.call(this)};g.p(qW,g.JD);qW.prototype.publish=function(Q){var z=g.A8.apply(1,arguments);if(this.S.has(Q))return this.S.get(Q).push(z),!0;var H=!1;try{for(z=[z],this.S.set(Q,z);z.length;)H=g.JD.prototype.publish.call.apply(g.JD.prototype.publish,[this,Q].concat(g.F(z.shift())))}finally{this.S.delete(Q)}return H};g.p(MW,g.h);MW.prototype.zv=function(){this.S.dispose();this.D.dispose();this.B.dispose();this.L.dispose();this.U=this.Z=this.N=this.Y=this.j=void 0};var r7a=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.p(tf,uj);g.S=tf.prototype;g.S.getApiInterface=function(){return Array.from(this.state.j)}; g.S.dJ=function(Q,z){this.state.S.subscribe(Q,z)}; g.S.fY$=function(Q,z){this.state.S.unsubscribe(Q,z)}; g.S.getPlayerState=function(Q){return muJ(this.app,Q)}; g.S.e5j=function(){return muJ(this.app)}; g.S.RXh=function(Q,z,H){nR(this)&&(UL(this.app,!0,1),hw(this.app,Q,z,H,1))}; g.S.getCurrentTime=function(Q,z,H){var f=this.getPlayerState(Q);if(this.app.getAppState()===2&&f===5){var b;return((b=this.app.getVideoData())==null?void 0:b.startSeconds)||0}return this.V("web_player_max_seekable_on_ended")&&f===0?Dua(this.app,Q):Q?this.app.getCurrentTime(Q,z,H):this.app.getCurrentTime(Q)}; g.S.uh=function(){return this.app.getCurrentTime(1)}; g.S.TR=function(){var Q=this.app.JM(1);return isNaN(Q)?this.getCurrentTime(1):Q}; g.S.FY=function(){return this.app.getDuration(1)}; g.S.sH=function(Q,z){Q=g.v3(Math.floor(Q),0,100);isFinite(Q)&&Aw(this.app,{volume:Q,muted:this.isMuted()},z)}; g.S.LYv=function(Q){this.sH(Q,!1)}; g.S.X1=function(Q){Aw(this.app,{muted:!0,volume:this.getVolume()},Q)}; g.S.gtl=function(){this.X1(!1)}; g.S.Pt=function(Q){pR(this.app)&&!this.V("embeds_enable_emc3ds_muted_autoplay")||Aw(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},Q)}; g.S.HEl=function(){pR(this.app)&&this.V("embeds_enable_emc3ds_muted_autoplay")||this.Pt(!1)}; g.S.getPlayerMode=function(){var Q={};this.app.getVideoData().gV&&(Q.pfp={enableIma:g.zI(this.app.getVideoData())&&this.app.Iq().allowImaMonetization,autoplay:c7(this.app.Iq()),mutedAutoplay:this.app.Iq().mutedAutoplay});return Q}; g.S.E5=function(){var Q=this.app.getPresentingPlayerType();if(Q===2&&!this.app.Uj()){var z=IO(this.app.xt());if(!dyk(z)||myp(z))return}Q===3?NW(this.app.xt()).wM("control_play"):this.app.C().V("html5_ssap_ignore_play_for_ad")&&g.mI(this.app.Iq())&&Q===2||this.app.playVideo(Q)}; g.S.TV$=function(){UL(this.app,!0,1);this.E5()}; g.S.pauseVideo=function(Q){var z=this.app.getPresentingPlayerType();if(z!==2||this.app.Uj()||dyk(IO(this.app.xt())))z===3?NW(this.app.xt()).wM("control_pause"):this.app.pauseVideo(z,Q)}; g.S.sJ$=function(){var Q=this.app,z=!1;Q.rh.gT&&(Q.Yv.publish("pageTransition"),z=!0);Q.stopVideo(z)}; g.S.clearVideo=function(){}; g.S.getAvailablePlaybackRates=function(){var Q=this.app.C();return Q.enableSpeedOptions?["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(Q.D?Q.ancestorOrigins[0]:window.location.origin)||Q.h_?vtu:Q.supportsVarispeedExtendedFeatures?ynJ:Q.V("web_remix_allow_up_to_3x_playback_rate")&&g.Ux(Q)?q7Y:Jg:[1]}; g.S.getPlaybackQuality=function(Q){return(Q=this.app.QE(Q))?Q.getPlaybackQuality():"unknown"}; g.S.wBT=function(){}; g.S.getAvailableQualityLevels=function(Q){return(Q=this.app.QE(Q))?(Q=g.J5(Q.Qz(),function(z){return z.quality}),Q.length&&(Q[0]==="auto"&&Q.shift(),Q=Q.concat(["auto"])),Q):[]}; g.S.XY=function(){return this.getAvailableQualityLevels(1)}; g.S.PTT=function(){return this.HF()}; g.S.xcv=function(){return 1}; g.S.getVideoLoadedFraction=function(Q){return this.app.getVideoLoadedFraction(Q)}; g.S.HF=function(){return this.getVideoLoadedFraction()}; g.S.qnh=function(){return 0}; g.S.getSize=function(){var Q=this.app.Un().getPlayerSize();return{width:Q.width,height:Q.height}}; g.S.setSize=function(){this.app.Un().resize()}; g.S.loadVideoById=function(Q,z,H,f){if(!Q)return!1;Q=CR(Q,z,H);return this.app.loadVideoByPlayerVars(Q,f)}; g.S.lJv=function(Q,z,H){Q=this.loadVideoById(Q,z,H,1);UL(this.app,Q,1)}; g.S.cueVideoById=function(Q,z,H,f){Q=CR(Q,z,H);this.app.cueVideoByPlayerVars(Q,f)}; g.S.YD=function(Q,z,H){this.cueVideoById(Q,z,H,1)}; g.S.loadVideoByUrl=function(Q,z,H,f){Q=YD_(Q,z,H);return this.app.loadVideoByPlayerVars(Q,f)}; g.S.AZI=function(Q,z,H){Q=this.loadVideoByUrl(Q,z,H,1);UL(this.app,Q,1)}; g.S.cueVideoByUrl=function(Q,z,H,f){Q=YD_(Q,z,H);this.app.cueVideoByPlayerVars(Q,f)}; g.S.pJ=function(Q,z,H){this.cueVideoByUrl(Q,z,H,1)}; g.S.ae$=function(){var Q=this.app.C();if(Q.wh)return"";var z=this.app.Iq(),H=void 0;z.isLivePlayback||(H=Math.floor(this.app.getCurrentTime(1)));return Q.getVideoUrl(z.videoId,this.getPlaylistId()||void 0,H)}; g.S.No=function(){return this.app.getDebugText()}; g.S.getVideoEmbedCode=function(){var Q=this.app.C();if(Q.wh)return"";var z=this.app.Iq();return Q.getVideoEmbedCode(z.isPrivate?"":z.title,this.app.Iq().videoId,this.app.Un().getPlayerSize(),this.getPlaylistId()||void 0)}; g.S.hs=function(Q,z,H){return ziJ(this.app,Q,z,H)}; g.S.removeCueRange=function(Q){return f8J(this.app,Q)}; g.S.loadPlaylist=function(Q,z,H,f){this.app.loadPlaylist(Q,z,H,f)}; g.S.KvT=function(Q,z,H,f){this.loadPlaylist(Q,z,H,f);UL(this.app,!0,1)}; g.S.cuePlaylist=function(Q,z,H,f){this.app.cuePlaylist(Q,z,H,f)}; g.S.nextVideo=function(Q,z){this.app.nextVideo(Q,z)}; g.S.r7$=function(){this.nextVideo();UL(this.app,!0,1)}; g.S.previousVideo=function(Q){this.app.previousVideo(Q)}; g.S.x8l=function(){this.previousVideo();UL(this.app,!0,1)}; g.S.playVideoAt=function(Q){this.app.playVideoAt(Q)}; g.S.W4m=function(Q){this.playVideoAt(Q);UL(this.app,!0,1)}; g.S.setShuffle=function(Q){var z=this.app.getPlaylist();z&&z.setShuffle(Q)}; g.S.setLoop=function(Q){var z=this.app.getPlaylist();z&&(z.loop=Q)}; g.S.O35=function(){var Q=this.app.getPlaylist();if(!Q)return null;for(var z=[],H=0;H=400)if(Q=this.Iq(),this.K.C().V("client_respect_autoplay_switch_button_renderer"))Q=!!Q.autoplaySwitchButtonRenderer;else{var z,H,f,b;Q=!!((z=Q.getWatchNextResponse())==null?0:(H=z.contents)==null?0:(f=H.twoColumnWatchNextResults)==null?0:(b=f.autoplay)==null?0:b.autoplay)!==!1}if(Q)this.Z||(this.Z=!0,this.Ho(this.Z),this.K.C().V("web_player_autonav_toggle_always_listen")||HE9(this), z=this.Iq(),this.Wh(z.autonavState),this.K.logVisibility(this.element,this.Z));else if(this.Z=!1,this.Ho(this.Z),!this.K.C().V("web_player_autonav_toggle_always_listen"))for(this.K.C().V("web_player_autonav_toggle_always_listen"),z=g.n(this.B),H=z.next();!H.done;H=z.next())this.DS(H.value)}; g.S.Wh=function(Q){bE6(this)?this.isChecked=Q!==1:((Q=Q!==1)||(g.Ww(),Q=g.jT("web_autonav_allow_off_by_default")&&!g.DQ(0,141)&&g.T5("AUTONAV_OFF_BY_DEFAULT")?!1:!g.DQ(0,140)),this.isChecked=Q);fJY(this)}; g.S.onClick=function(){this.isChecked=!this.isChecked;this.K.P3(this.isChecked?2:1);fJY(this);if(bE6(this)){var Q=this.Iq().autoplaySwitchButtonRenderer;this.isChecked&&(Q==null?0:Q.onEnabledCommand)?this.K.F$("innertubeCommand",Q.onEnabledCommand):!this.isChecked&&(Q==null?0:Q.onDisabledCommand)&&this.K.F$("innertubeCommand",Q.onDisabledCommand)}this.K.logClick(this.element)}; g.S.getValue=function(){return this.isChecked}; g.S.Iq=function(){return this.K.getVideoData(1)};g.p(LNJ,TI);g.p(fK,g.dX);fK.prototype.onClick=function(){this.enabled&&(bo(this,!this.checked),this.publish("select",this.checked))}; fK.prototype.getValue=function(){return this.checked}; fK.prototype.setEnabled=function(Q){(this.enabled=Q)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var SWa=["en-CA","en","es-MX","fr-CA"];g.p(qF,fK);qF.prototype.Jh=function(Q){Q?this.Z||(this.kt.md(this),this.Z=!0):this.Z&&(this.kt.nA(this),this.Z=!1);this.Z&&bo(this,xfZ())}; qF.prototype.D=function(){g.vO(this.element,"ytp-menuitem-highlight-transition-enabled")}; qF.prototype.L=function(Q){var z=xfZ();Q!==z&&(z=g.Ww(),Vh(190,Q),Vh(192,!0),z.save(),this.K.F$("cinematicSettingsToggleChange",Q))}; qF.prototype.zv=function(){this.Z&&this.kt.nA(this);fK.prototype.zv.call(this)};g.p(MF,TI);MF.prototype.updateCinematicSettings=function(Q){this.Z=Q;var z;(z=this.menuItem)==null||z.Jh(Q);this.api.publish("onCinematicSettingsVisibilityChange",Q)};g.p(CK,TI);CK.prototype.nw=function(Q,z){z=z.clipConfig;Q==="dataloaded"&&z&&z.startTimeMs!=null&&z.endTimeMs!=null&&this.api.setLoopRange({startTimeMs:Math.floor(Number(z.startTimeMs)),endTimeMs:Math.floor(Number(z.endTimeMs)),postId:z.postId,type:"clips"})};g.p(tv,TI);tv.prototype.setCreatorEndscreenVisibility=function(Q){var z;(z=BE(this.api.xt()))==null||z.Ho(Q)}; tv.prototype.Z=function(Q){function z(f){f==="creatorendscreen"&&(f=BE(H.api.xt()))&&f.OAl(H.hideButton)} var H=this;this.hideButton=Q;this.events.X(this.api,"modulecreated",z);z("creatorendscreen")};g.p(EJ,fK);EJ.prototype.L=function(Q){this.D(Q?1:0)}; EJ.prototype.B=function(){var Q=this.hasDrcAudioTrack(),z=this.Z()===1&&Q;bo(this,z);this.setEnabled(Q)}; EJ.prototype.zv=function(){this.kt.nA(this);fK.prototype.zv.call(this)};g.p(pK,TI);pK.prototype.getDrcUserPreference=function(){return this.Z}; pK.prototype.setDrcUserPreference=function(Q){g.Bw("yt-player-drc-pref",Q,31536E3);Q!==this.Z&&(this.Z=Q,this.updateEnvironmentData(),this.B()&&this.api.w5())}; pK.prototype.updateEnvironmentData=function(){this.api.C().sj=this.Z===1}; pK.prototype.B=function(){var Q,z,H=(Q=this.api.getVideoData())==null?void 0:(z=Q.L)==null?void 0:z.Z;if(!H)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.V("mta_drc_mutual_exclusion_removal")){var f=this.api.getAudioTrack().Ii.id;return Jx(H,function(b){var L;return b.audio.Z&&((L=b.Ii)==null?void 0:L.id)===f})}return Jx(H,function(b){var L; return((L=b.audio)==null?void 0:L.Z)===!0})};g.p(nK,TI);nK.prototype.onVideoDataChange=function(){var Q=this,z=this.api.getVideoData();this.api.Ys("embargo",1);var H=z==null?void 0:z.Nr.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(H==null?0:H.length)?qWY(this,H.filter(function(f){return yKJ(Q,f)})):(z==null?0:z.cueRanges)&&qWY(this,z.cueRanges.filter(function(f){return yKJ(Q,f)}))}; nK.prototype.B=function(Q){return Q.embargo!==void 0}; nK.prototype.zv=function(){TI.prototype.zv.call(this);this.Z={}};g.p(gz,TI); gz.prototype.addEmbedsConversionTrackingParams=function(Q){var z=this.api.C(),H=z.widgetReferrer,f=z.C3,b=this.Z,L="",u=z.getWebPlayerContextConfig();u&&(L=u.embedsIframeOriginParam||"");H.length>0&&(Q.embeds_widget_referrer=H);f.length>0&&(Q.embeds_referring_euri=f);z.D&&L.length>0&&(Q.embeds_referring_origin=L);u&&u.embedsFeature&&(Q.feature=u.embedsFeature);b.length>0&&(z.V("embeds_web_enable_lite_experiment_control_arm_logging")?b.unshift(28572):g.q0(g.s8(z))&&b.unshift(159628),z=b.join(","),z= g.dR()?z:g.g7(z,4),Q.source_ve_path=z);this.Z.length=0};g.p(MJk,TI);g.p(CML,TI);g.p(Z_,g.h);Z_.prototype.zv=function(){g.h.prototype.zv.call(this);this.Z=null;this.B&&this.B.disconnect()};g.p(EAJ,TI);g.p(GG,g.m);GG.prototype.show=function(){g.m.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; GG.prototype.onVideoDataChange=function(Q){var z,H,f=(z=this.api.getVideoData())==null?void 0:(H=z.getPlayerResponse())==null?void 0:H.playabilityStatus;f&&(z=pBL(f),g.w(this.api.getPlayerStateObject(),128)||Q==="dataloaderror"||!z?(this.B=0,$n(this),this.hide()):(Q=(z.remainingTimeSecs||0)*1E3,Q>0&&(this.show(),this.updateValue("label",nE(z.label)),gAk(this,Q))))}; GG.prototype.zv=function(){$n(this);g.m.prototype.zv.call(this)};g.p(ZE6,TI);g.p(jf,g.m);jf.prototype.onClick=function(){this.Yv.logClick(this.element);this.Yv.F$("onFullerscreenEduClicked")}; jf.prototype.Jh=function(){this.Yv.isFullscreen()?this.B?this.Z.hide():this.Z.show():this.hide();this.Yv.logVisibility(this.element,this.Yv.isFullscreen()&&!this.B)};g.p(F1,TI);F1.prototype.updateFullerscreenEduButtonSubtleModeState=function(Q){var z;(z=this.Z)!=null&&(g.qP(z.element,"ytp-fullerscreen-edu-button-subtle",Q),Q&&!z.L&&(z.element.setAttribute("title","Scroll for details"),Fv(z.Yv,z.element,z),z.L=!0))}; F1.prototype.updateFullerscreenEduButtonVisibility=function(Q){var z;(z=this.Z)!=null&&(z.B=Q,z.Jh())};g.p(G09,g.m);g.p(FNL,TI);g.p(xn,TI);xn.prototype.getSphericalProperties=function(){var Q=g.Y1(this.api.xt());return Q?Q.getSphericalProperties():{}}; xn.prototype.setSphericalProperties=function(Q){if(Q){var z=g.Y1(this.api.xt());z&&z.setSphericalProperties(Q,!0)}};g.p(OJ,TI);g.S=OJ.prototype;g.S.createClientVe=function(Q,z,H,f){this.api.createClientVe(Q,z,H,f===void 0?!1:f)}; g.S.createServerVe=function(Q,z,H){this.api.createServerVe(Q,z,H===void 0?!1:H)}; g.S.setTrackingParams=function(Q,z){this.api.setTrackingParams(Q,z)}; g.S.logClick=function(Q,z){this.api.logClick(Q,z)}; g.S.logVisibility=function(Q,z,H){this.api.logVisibility(Q,z,H)}; g.S.hasVe=function(Q){return this.api.hasVe(Q)}; g.S.destroyVe=function(Q){this.api.destroyVe(Q)};var OEc=!1;Jv.prototype.setPlaybackRate=function(Q){this.playbackRate=Math.max(1,Q)}; Jv.prototype.getPlaybackRate=function(){return this.playbackRate};rz.prototype.Ec=function(Q){var z=g.la(Q.info.Z.info,this.n3.AZ),H=Q.info.Ah+this.D,f=Q.info.startTime*1E3;if(this.policy.uT)try{f=this.policy.uT?g.eA(Q)*1E3:Q.info.startTime*1E3}catch(u){Math.random()>.99&&this.logger&&(f=jd(Q.Z).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:Q.info.aq(),encodedDataView:g.nr(f,4)})),f=Q.info.startTime*1E3}var b=Q.info.clipId,L=this.policy.uT?g.x6A(Q)*1E3:Q.info.duration*1E3;this.policy.uT&&(f<0||L<0)&&(this.logger&&(this.logger({missingSegInfo:Q.info.aq(), startTimeMs:f,durationMs:L}),this.policy.q0||(f<0&&(f=Q.info.startTime*1E3),L<0&&(L=Q.info.duration*1E3))),this.policy.q0&&(f<0&&(f=Q.info.startTime*1E3),L<0&&(L=Q.info.duration*1E3)));return{formatId:z,Ah:H,startTimeMs:f,clipId:b,Rp:L}}; rz.prototype.WG=function(Q){this.timestampOffset=Q};PN.prototype.seek=function(Q,z){Q!==this.Z&&(this.seekCount=0);this.Z=Q;var H=this.videoTrack.B,f=this.audioTrack.B,b=this.audioTrack.nH,L=KNn(this,this.videoTrack,Q,this.videoTrack.nH,z);z=KNn(this,this.audioTrack,this.policy.QN?Q:L,b,z);Q=Math.max(Q,L,z);this.S=!0;this.n3.isManifestless&&(cKp(this,this.videoTrack,H),cKp(this,this.audioTrack,f));return Q}; PN.prototype.isSeeking=function(){return this.S}; PN.prototype.Y2=function(Q){this.L=Q}; var D1n=2/24;var m1Y=0;g.S=mp.prototype;g.S.tH=function(){this.U=this.now();dvk(this.L5,this.U);this.zL.tH()}; g.S.n9=function(Q,z){var H=this.policy.B?(0,g.NV)():0;wz(this,Q,z);Q-this.j<10&&this.B>0||this.tY(Q,z);this.zL.n9(Q,z);this.policy.B&&(Q=(0,g.NV)()-H,this.KH+=Q,this.rT=Math.max(Q,this.rT))}; g.S.tY=function(Q,z){var H=(Q-this.j)/1E3,f=z-this.L;this.oD||(E8(this.L5,H,f),this.eJ(H,f));this.j=Q;this.L=z}; g.S.z7=function(){this.De&&wBL(this);this.zL.z7()}; g.S.Aa=function(Q){this.De||(this.De=this.S-this.EY+Q,this.UY=this.S,this.gT=this.Y)}; g.S.UW=function(Q,z){Q=Q===void 0?this.Y:Q;z=z===void 0?this.S:z;this.B>0||(this.N=Q,this.B=z,this.Ze=this.isActive=!0)}; g.S.B6=function(){return this.V9||2}; g.S.tW=function(){}; g.S.EU=function(){var Q,z={rn:this.requestNumber,rt:(this.Y-this.Z).toFixed(),lb:this.S,stall:(1E3*this.D).toFixed(),ht:(this.U-this.Z).toFixed(),elt:(this.N-this.Z).toFixed(),elb:this.B,d:(Q=this.yl)==null?void 0:Q.dP()};this.url&&x1Y(z,this.url);this.policy.B&&(z.mph=this.rT.toFixed(),z.tph=this.KH.toFixed());z.ulb=this.f3;z.ult=this.wh;z.abw=this.C3;return z}; g.S.now=function(){return(0,g.NV)()}; g.S.deactivate=function(){this.isActive&&(this.isActive=!1)};g.p(TG,mp);g.S=TG.prototype;g.S.EU=function(){var Q=mp.prototype.EU.call(this);Q.pb=this.TJ;Q.pt=(1E3*this.gh).toFixed();Q.se=this.Wz;return Q}; g.S.Zz=function(){var Q=this.zL;this.uT||(this.uT=Q.Zz?Q.Zz():1);return this.uT}; g.S.dH=function(){return this.Xc?this.Zz()!==1:!1}; g.S.l_=function(Q,z,H){if(!this.Xa){this.Xa=!0;if(!this.oD){wz(this,Q,z);this.tY(Q,z);var f=this.Zz();this.Wz=H;if(!this.oD)if(f===2){f=Q-this.N0)||ef(this,f,z),this.B>0&&Co(this.L5, z,this.D));Q=(Q-this.Z)/1E3||.01;this.policy.N&&!(this.B>0)||M$(this.L5,Q,this.L,TZ9(this),this.Aj)}this.deactivate()}}; g.S.IU=function(Q,z,H){H&&(this.uT=2);Q<0&&this.V9&&(Q=this.V9);z?this.iT+=Q:this.En+=Q}; g.S.B6=function(){return this.En||this.iT||mp.prototype.B6.call(this)}; g.S.tY=function(Q,z){var H=(Q-this.j)/1E3,f=z-this.L,b=this.Zz();this.isActive?b===1&&((f>0||this.policy.S)&&(H>.2||f<1024)?(this.D+=H,f>0&&H>.2&&ef(this,this.QF?H:.05,f),this.ZJ=!0):f>0&&(ef(this,H,f),this.ZJ=!0)):z&&z>=this.policy.Z&&this.UW(Q,z);mp.prototype.tY.call(this,Q,z)}; g.S.WK=function(Q){if(!this.oD){wz(this,Q,this.S);var z=(Q-this.Z)/1E3;this.Zz()!==2&&this.B>0&&(this.D+=(Q-this.j)/1E3,Co(this.L5,this.L,this.D));M$(this.L5,z,this.L,TZ9(this),this.Aj,!0);Q=(Q-this.j)/1E3;E8(this.L5,Q,0);this.eJ(Q,0)}}; g.S.UW=function(Q,z){Q=Q===void 0?this.Y:Q;z=z===void 0?this.S:z;if(!(this.B>0)&&(mp.prototype.UW.call(this,Q,z),this.Zz()===1)){z=(this.U-this.Z)/1E3;var H=(Q-this.U)/1E3;this.Xc&&lo(this,this.now());this.yE||this.oD||(this.V9&&(H=Math.max(0,H-this.V9)),Q=this.L5,Q.N.iH(1,z),Q.yl.iH(1,H))}}; g.S.Rh=function(){this.Xc&&lo(this,this.now());return this.mq}; g.S.D$=function(){var Q;if(Q=this.L>this.fS)Q=(Q=this.L)?Q>=this.policy.Z:!1;return Q}; g.S.G3=function(){return this.WI}; g.S.U5=function(Q){Q=Q===void 0?this.now():Q;if(this.Xc){lo(this,Q);if(this.uT?this.dH():this.L3!==this.jm){var z=this.jm;if(Q0?H+Q:H+Math.max(Q,z)}; g.S.gs=function(){return this.now()-this.N}; g.S.u0=function(){return(this.L-this.B)*1E3/this.gs()||0}; g.S.Tr=function(){return this.N};RM.prototype.feed=function(Q){gt(this.Z,Q);this.SA()}; RM.prototype.SA=function(){if(this.D){if(!this.Z.getLength())return;var Q=this.Z.split(this.L-this.B),z=Q.Qb;Q=Q.TO;if(!this.zL.Aa(this.D,z,this.B,this.L))return;this.B+=z.getLength();this.Z=Q;this.B===this.L&&(this.D=this.L=this.B=void 0)}for(;;){var H=0;Q=g.n(Qra(this.Z,H));z=Q.next().value;H=Q.next().value;H=g.n(Qra(this.Z,H));Q=H.next().value;H=H.next().value;if(z<0||Q<0)break;if(!this.Z.rd(H,Q)){if(!this.zL.Aa||!this.Z.rd(H,1))break;H=this.Z.split(H).TO;this.zL.Aa(z,H,0,Q)&&(this.D=z,this.B= H.getLength(),this.L=Q,this.Z=new n4([]));break}Q=this.Z.split(H).TO.split(Q);H=Q.TO;this.zL.sO(z,Q.Qb);this.Z=H}}; RM.prototype.dispose=function(){this.Z=new n4};g.S=Qg.prototype;g.S.ji=function(){return 0}; g.S.Oa=function(){return null}; g.S.iQ=function(){return null}; g.S.Dv=function(){return this.state>=1}; g.S.isComplete=function(){return this.state>=3}; g.S.vl=function(){return this.state===5}; g.S.onStateChange=function(){}; g.S.Ni=function(Q){var z=this.state;this.state=Q;this.onStateChange(z);this.callback&&this.callback(this,z)}; g.S.Ka=function(Q){Q&&this.state=this.xhr.HEADERS_RECEIVED}; g.S.getResponseHeader=function(Q){try{return this.xhr.getResponseHeader(Q)}catch(z){return""}}; g.S.l4=function(){return+this.getResponseHeader("content-length")}; g.S.Kg=function(){return this.B}; g.S.MY=function(){return this.status>=200&&this.status<300&&!!this.B}; g.S.sG=function(){return this.Z.getLength()>0}; g.S.s2=function(){var Q=this.Z;this.Z=new n4;return Q}; g.S.YZ=function(){return this.Z}; g.S.abort=function(){this.Sm=!0;this.xhr.abort()}; g.S.yg=function(){return!0}; g.S.R9=function(){return this.L}; g.S.q8=function(){return""};g.S=bu9.prototype;g.S.getResponseHeader=function(Q){return Q==="content-type"?this.Z.get("type"):""}; g.S.abort=function(){}; g.S.wc=function(){return!0}; g.S.l4=function(){return this.range.length}; g.S.Kg=function(){return this.loaded}; g.S.MY=function(){return!!this.loaded}; g.S.sG=function(){return!!this.B.getLength()}; g.S.s2=function(){var Q=this.B;this.B=new n4;return Q}; g.S.YZ=function(){return this.B}; g.S.yg=function(){return!0}; g.S.R9=function(){return!!this.error}; g.S.q8=function(){return this.error};g.S=uCZ.prototype;g.S.start=function(Q){var z={credentials:"include",cache:"no-store"};Object.assign(z,this.Y);this.D&&(z.signal=this.D.signal);Q=new Request(Q,z);fetch(Q).then(this.U,this.onError).then(void 0,vH)}; g.S.onDone=function(){this.Sm()||this.zL.z7()}; g.S.getResponseHeader=function(Q){return this.responseHeaders?this.responseHeaders.get(Q):null}; g.S.wc=function(){return!!this.responseHeaders}; g.S.Kg=function(){return this.B}; g.S.l4=function(){return+this.getResponseHeader("content-length")}; g.S.MY=function(){return this.status>=200&&this.status<300&&!!this.B}; g.S.sG=function(){return!!this.Z.getLength()}; g.S.s2=function(){this.sG();var Q=this.Z;this.Z=new n4;return Q}; g.S.YZ=function(){this.sG();return this.Z}; g.S.Sm=function(){return this.S}; g.S.abort=function(){this.L&&this.L.cancel().catch(function(){}); this.D&&this.D.abort();this.S=!0}; g.S.yg=function(){return!0}; g.S.R9=function(){return this.j}; g.S.q8=function(){return this.errorMessage};g.S=SYA.prototype;g.S.onDone=function(){if(!this.Sm){this.status=this.xhr.status;try{this.response=this.xhr.response,this.B=this.response.byteLength}catch(Q){}this.Z=!0;this.zL.z7()}}; g.S.Vx=function(){this.xhr.readyState===2&&this.zL.tH()}; g.S.Ex=function(Q){this.Sm||(this.status=this.xhr.status,this.Z||(this.B=Q.loaded),this.zL.n9((0,g.NV)(),Q.loaded))}; g.S.wc=function(){return this.xhr.readyState>=2}; g.S.getResponseHeader=function(Q){try{return this.xhr.getResponseHeader(Q)}catch(z){return g.PT(Error("Could not read XHR header "+Q)),""}}; g.S.l4=function(){return+this.getResponseHeader("content-length")}; g.S.Kg=function(){return this.B}; g.S.MY=function(){return this.status>=200&&this.status<300&&this.Z&&!!this.B}; g.S.sG=function(){return this.Z&&!!this.response&&!!this.response.byteLength}; g.S.s2=function(){this.sG();var Q=this.response;this.response=void 0;return new n4([new Uint8Array(Q)])}; g.S.YZ=function(){this.sG();return new n4([new Uint8Array(this.response)])}; g.S.abort=function(){this.Sm=!0;this.xhr.abort()}; g.S.yg=function(){return!1}; g.S.R9=function(){return!1}; g.S.q8=function(){return""};g.bk.prototype.info=function(){}; g.bk.prototype.debug=function(){}; g.bk.prototype.Z=function(Q){LH.apply(null,[5,this.tag,Q].concat(g.F(g.A8.apply(1,arguments))))}; var y0a=new Map,C$A=new Map,qYZ=new function(){var Q=this;this.Z=new Map;this.Po={AKh:function(){return Q.Z}}};g.p(uk,g.h);uk.prototype.Rx=function(){if(!this.Ej.length)return[];var Q=this.Ej;this.Ej=[];this.L=g.Vs(Q).info;return Q}; uk.prototype.m_=function(){return this.Ej}; uk.prototype.zv=function(){g.h.prototype.zv.call(this);this.Z=null;this.Ej.length=0;this.Tv.length=0;this.L=null};g.p(Xt,g.h);g.S=Xt.prototype; g.S.cNv=function(){if(!this.Sm()){var Q=(0,g.NV)(),z=!1;if(this.policy.xr){Q=Q-(this.timing.B>0?this.timing.N:this.timing.Z)-this.timing.B6()*1E3;var H=EN(vA(this),!1);Q>=2E3*H?z=!0:Q>=this.policy.Ev*H&&(this.Z=this.policy.Uu)}else if(this.timing.B>0){if(this.S){this.policy.ys&&(this.Z=0);return}var f=this.timing.G3();this.timing.U5();var b=this.timing.G3();b-f>=this.policy.C2*.8?(this.Z++,this.logger.debug(function(){return"Mispredicted by "+(b-f).toFixed(0)}),z=this.Z>=5):this.Z=0}else{var L=Q- this.timing.Rh(); this.policy.Uu&&L>0&&(this.Z+=1);z=EN(vA(this),!1)*this.policy.EE;(z=L>z*1E3)&&this.logger.debug(function(){return"Elbow late by "+L.toFixed(3)})}this.Z>0&&this.zL.PM(); z?this.SJ():this.B.start()}}; g.S.SJ=function(){this.D=!0;this.zL.bI();this.lastError="net.timeout";qQ(this)}; g.S.canRetry=function(Q){var z=vA(this);Q=Q?this.policy.U2:this.policy.WY;return z.timedOut0&&(z=z.Z.getUint8(0),Q.ubyte=z,H===1&&z===0&&(Q.b248180278=!0))}this.Yu&&(Q.rc=this.policy.P5?this.Yu:this.Yu.toString());this.policy.d4&&this.qd&&(Q.tr=this.qd);Q.itag=this.info.Tv[0].Z.info.itag;Q.ml=""+ +this.info.Tv[0].Z.SH();Q.sq=""+this.info.Tv[0].Ah;this.b8&&(Q.ifi=""+ +FC(this.info.Mz.L));this.Yu!==410&&this.Yu!==500&&this.Yu!==503||(Q.fmt_unav="true");var f;(H=this.errorMessage||((f=this.xhr)==null? void 0:f.q8()))&&(Q.msg=H);this.vO&&(Q.smb="1");this.info.isDecorated()&&(Q.sdai="1");return Q}; g.S.Y0=function(){return e6k(this.timing)}; g.S.q8=function(){return this.xhr.q8()||""}; g.S.D$=function(){return this.isComplete()||this.timing.D$()}; g.S.n9=function(){!this.Sm()&&this.xhr&&(this.Yu=this.xhr.status,this.policy.WR&&this.bL&&this.Va(!1),this.uZ()?this.Ka(2):!this.V$&&this.D$()&&(this.Ka(),this.V$=!0))}; g.S.tH=function(){if(!this.Sm()&&this.xhr){if(!this.p_&&this.xhr.wc()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var Q=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.p_=((0,g.NV)()-Q)/1E3}this.xhr.wc()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.Fn&&!aSp()&&g.Bw("yt-player-headers-readable",!0,2592E3);Q=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var z=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),H;(H=this.sW)==null||H.stop();this.Gp=Q||this.Gp; this.s7=z||this.s7}}; g.S.z7=function(){var Q=this.xhr;if(!this.Sm()&&Q){this.Yu=Q.status;Q=this.qX(Q);if(this.policy.d4){var z;(z=this.sW)==null||z.stop()}Q===5?qQ(this.f5):this.Ni(Q);this.f5.B.stop()}}; g.S.qX=function(Q){var z=this;dBa(this);if(MQ(this.f5,this.xhr.status,this.XV?this.timing.Ze||this.w1:this.xhr.MY(),!1,this.yW))return 5;var H="";CH(this.f5,this.xhr)&&(H=Zun(this.f5,this.xhr));if(H)return ti(vA(this.f5)),this.info.j6(this.b8,H),3;H=Q.Kg();if(this.rN){this.Va(!0);dBa(this);if(MQ(this.f5,this.xhr.status,this.timing.Ze||this.w1,!1,this.yW))return 5;if(!this.mm){if(this.w1)return ti(vA(this.f5)),3;this.f5.lastError="net.closed";return 5}}else{if(MQ(this.f5,this.xhr.status,this.xhr.MY(), !1,this.yW))return 5;var f=this.info.L;if(f&&f!==H||Q.R9())return this.f5.lastError="net.closed",5;this.Va(!0)}f=zh8(this)?Q.getResponseHeader("X-Bandwidth-Est"):0;if(Q=zh8(this)?Q.getResponseHeader("X-Bandwidth-Est3"):0)this.jz=!0,this.policy.W$&&(f=Q);noc(this.f5,H,f?Number(f):0,this.info.Tv[0].type===5);this.logger.debug(function(){var b=z.timing;return"Succeeded, rtpd="+(b.gh*1E3+b.Z-Date.now()).toFixed(0)}); return 4}; g.S.canRetry=function(){this.Sm();var Q=this.info.isDecorated();return this.f5.canRetry(Q)}; g.S.onStateChange=function(){this.isComplete()&&(this.policy.YX?this.bI():this.timing.deactivate())}; g.S.SJ=function(){this.f5.SJ()}; g.S.PM=function(){this.callback&&this.callback(this,this.state)}; g.S.TY=function(){return this.f5.TY()}; g.S.dispose=function(){Qg.prototype.dispose.call(this);this.f5.dispose();var Q;(Q=this.sW)==null||Q.dispose();this.policy.YX||this.bI()}; g.S.bI=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.S.Rx=function(){if(!this.m_().length)return[];this.aS=!0;return this.bL.Rx()}; g.S.uZ=function(){if(this.state<1)return!1;if(this.bL&&this.bL.Ej.length)return!0;var Q;return((Q=this.xhr)==null?0:Q.sG())?!0:!1}; g.S.m_=function(){this.Va(!1);return this.bL?this.bL.m_():[]}; g.S.Va=function(Q){try{if(Q||this.xhr.wc()&&this.xhr.sG()&&!CH(this.f5,this.xhr)&&!this.Xs)this.bL||(this.bL=new uk(this.policy,this.info.Tv)),this.xhr.sG()&&(this.rN?this.rN.feed(this.xhr.s2()):SS(this.bL,this.xhr.s2(),Q&&!this.xhr.sG()))}catch(z){this.rN?DBk(this,z):g.PT(z)}}; g.S.sO=function(Q,z){switch(Q){case 21:Q=z.split(1).TO;K0c(this,Q);break;case 22:this.mm=!0;SS(this.bL,new n4([]),!0);break;case 43:if(Q=at(new Ar(z),1))this.info.j6(this.b8,Q),this.w1=!0;break;case 45:z=lM(new Ar(z));Q=z.Ld;z=z.M$;Q&&z&&(this.Ok=Q/z);break;case 44:this.w$=Pcc(new Ar(z));var H,f,b;!this.timing.Ze&&((H=this.w$)==null?void 0:H.action)===4&&((f=this.w$)==null?0:(b=f.aF)==null?0:b.XV)&&(this.XV=this.w$.aF.XV);break;case 53:this.policy.d4&&(Q=rXJ(new Ar(z)).pV)&&(this.sW||(this.pV=Q,this.sW= new g.e_(this.eh,Q,this)),this.sW.start());break;case 60:this.HE=eJ(new Ar(z));break;case 58:if(Q=yXp(new Ar(z)))this.Be=Q,Q.Be===3&&(this.yW=!0)}}; g.S.Aa=function(Q,z,H,f){H||this.timing.Aa(f);if(Q!==21)return!1;if(Q=this.policy.WR)if(f=z.getLength()+H===f,Q*=this.info.Tv[0].Z.info.oi,!f&&z.getLength()0)return!1;if(!this.xhr.wc())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.rN)var Q=!this.info.L;else this.xhr.l4()?Q=!1:(Q=this.xhr.getResponseHeader("content-type"),Q=Q==="audio/mp4"||Q==="video/mp4"||Q==="video/webm");if(!Q)return!1;if(isNaN(this.info.Ds)){Q=this.xhr.getResponseHeader("x-head-seqnum");var z=this.timing.policy.Y?1:0;if(!Q)this.logger.debug("No x-head-seqnum, cannot tell if head segment."); else if(Number(Q)>this.info.Tv[0].Ah+z)return!1}return!0}; g.S.RP=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.S.Oa=function(){this.xhr&&(this.Gp=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.Gp}; g.S.iQ=function(){this.xhr&&(this.s7=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.s7}; g.S.JF=function(){return this.f5.JF()}; g.S.eh=function(){if(!this.Sm()&&this.xhr){this.qd="heartbeat";var Q=this.f5;Q.Z+=2;this.PM()}};g.p($$,mp);g.S=$$.prototype;g.S.tY=function(Q,z){var H=(Q-this.j)/1E3,f=z-this.L;this.B>0?f>0&&(this.L3&&(H>.2||f<1024?(this.D+=H,H>.2&&mBu(this,.05,f)):mBu(this,H,f)),this.jm&&(this.mq+=f,this.En+=H)):z>this.policy.Z&&this.UW(Q,z);mp.prototype.tY.call(this,Q,z)}; g.S.l_=function(Q,z){wz(this,Q,z);this.tY(Q,z);this.L3&&(z=this.L*this.snapshot.stall+this.L/this.snapshot.byterate,this.B>0&&Co(this.L5,this.mq,this.D),Q=(Q-this.Z)/1E3||.01,this.policy.N&&!(this.B>0)||M$(this.L5,Q,this.L,z,!1))}; g.S.WK=function(Q){wz(this,Q,this.S);var z=(Q-this.j)/1E3;E8(this.L5,z,0);this.eJ(z,0);!this.L3&&this.B>0||(z=this.L*this.snapshot.stall+this.L/this.snapshot.byterate,this.B>0&&(this.D+=(Q-this.j)/1E3,Co(this.L5,this.mq,this.D)),M$(this.L5,((Q-this.Z)/1E3||.01)*this.policy.wh,this.L,z,!1,!0))}; g.S.SW=function(Q){Q=Q.IE||2147483647;(Q&2)!==2&&(this.jm=!1);(Q&1)===1&&(this.L3=!0)}; g.S.BJ=function(Q){Q=Q.IE||2147483647;(Q&2)===2&&(this.jm=!1);(Q&1)===1&&(this.L3=!1)}; g.S.Tr=function(){return this.N}; g.S.gs=function(){var Q=this.jm?this.now()-this.j:0;return Math.max(this.En*1E3+Q,1)}; g.S.u0=function(){return this.mq*1E3/this.gs()}; g.S.UW=function(Q,z){Q=Q===void 0?this.Y:Q;z=z===void 0?this.S:z;this.B>0||(mp.prototype.UW.call(this,Q,z),z=this.L5,Q=(Q-this.U)/1E3,z.N.iH(1,(this.U-this.Z)/1E3),z.yl.iH(1,Q))}; g.S.tW=function(Q){this.iT=Q}; g.S.EU=function(){var Q=mp.prototype.EU.call(this);Q.rbw=this.u0();Q.rbe=+this.jm;Q.gbe=+this.L3;Q.ackt=(this.iT-this.Z).toFixed();return Q}; g.S.U5=function(){}; g.S.G3=function(){return NaN}; g.S.Rh=function(){return this.Z+this.snapshot.delay*1E3};jS.prototype.sO=function(Q,z){z.getLength();switch(Q){case 20:Q=new Ar(z);Q={KV:s1(Q,1),videoId:at(Q,2),itag:s1(Q,3),lmt:s1(Q,4),xtags:at(Q,5),P2:s1(Q,6),gZ:Bm(Q,8),MC:s1(Q,9),Re$:s1(Q,10),startMs:s1(Q,11),durationMs:s1(Q,12),dX:s1(Q,14),timeRange:U1(Q,15,waZ),h5:s1(Q,16),T6:s1(Q,17),clipId:at(Q,1E3)};this.oX(Q);break;case 21:this.gG(z,!1);break;case 22:this.Qd(z);break;case 31:Q=hr(z,xSY);this.hH(Q);break;case 52:Q=hr(z,sh_);this.m5(Q);break;default:this.hS(Q,z)}}; jS.prototype.oX=function(){}; jS.prototype.hS=function(){};g.p(Ft,jS);g.S=Ft.prototype; g.S.hS=function(Q,z){z.getLength();switch(Q){case 35:this.hp(z);break;case 44:this.yX(z);break;case 43:this.By(z);break;case 53:this.wI(z);break;case 55:Q=new Ar(z);(Q={timeline:U1(Q,1,USa),hXn:U1(Q,2,hL_)},Q.timeline)&&Q.timeline.Bb&&this.zL.b6(Q.timeline.Bb,Q.timeline.bAj,Q.hXn);break;case 56:this.Mn();break;case 57:this.Hp(z);break;case 42:this.Iu(z);break;case 45:this.CV(z);break;case 59:this.Dw(z);break;case 51:this.KD(z);break;case 49:this.SW(z);break;case 50:this.BJ(z);break;case 47:this.GQ(z); break;case 58:this.N3(z);break;case 61:this.zL.wr.tW((0,g.NV)());break;case 66:this.V2(z);break;case 46:this.LD(z);break;case 67:this.onSnackbarMessage(z)}}; g.S.KD=function(Q){Q=new Ar(Q);Q={VZh:iG(Q,1,kA),Avl:iG(Q,2,kA)};this.zL.KD(Q)}; g.S.Dw=function(Q){var z=new Ar(Q);Q=cm(z,1);var H=cm(z,2);z=cm(z,3);this.zL.Dw(Q,H,z)}; g.S.CV=function(Q){Q=lM(new Ar(Q));this.zL.CV(Q)}; g.S.GQ=function(Q){Q=hr(Q,JXZ);this.zL.GQ(Q)}; g.S.Iu=function(Q){Q=new Ar(Q);Q={videoId:at(Q,1),formatId:U1(Q,2,kA),endTimeMs:s1(Q,3),OZl:s1(Q,4),mimeType:at(Q,5),RO:U1(Q,6,gy6),indexRange:U1(Q,7,gy6),LG:U1(Q,8,ZiL)};this.zL.Iu(Q)}; g.S.Hp=function(Q){Q=hL_(new Ar(Q));this.zL.Hp(Q)}; g.S.Mn=function(){this.zL.Mn()}; g.S.hp=function(Q){Q=OiL(new Ar(Q));this.zL.hp(Q)}; g.S.wI=function(Q){Q=rXJ(new Ar(Q));this.zL.wI(Q)}; g.S.yX=function(Q){Q=Pcc(new Ar(Q));this.zL.yX(Q)}; g.S.By=function(Q){Q={redirectUrl:at(new Ar(Q),1)};this.zL.By(Q)}; g.S.gG=function(Q){var z=Q.getUint8(0);if(Q.getLength()!==1){Q=Q.split(1).TO;var H=this.B[z]||null;H&&As(this.zL.eH,z,H,Q)}}; g.S.Qd=function(Q){Q=Q.getUint8(0);var z=this.B[Q]||null;z&&this.zL.Qd(Q,z)}; g.S.m5=function(Q){this.zL.m5(Q)}; g.S.oX=function(Q){var z=Q.KV,H=Q.gZ,f=Q.P2,b=Q.T6,L=Q.h5,u=Q.MC,X=Q.startMs,v=Q.durationMs,y=Q.timeRange,q=Q.dX,M=Q.clipId,C=jA(Q);Q=woJ.has(Wt[""+Q.itag]);this.B[z]=C;this.zL.IU(C,Q,{KV:z,gZ:!!H,P2:f!=null?f:-1,MC:u!=null?u:-1,startMs:X!=null?X:-1,durationMs:v!=null?v:-1,dX:q,T6:b,h5:L,clipId:M,timeRange:y})}; g.S.SW=function(Q){Q={IE:s1(new Ar(Q),1)};this.zL.SW(Q)}; g.S.BJ=function(Q){Q={IE:s1(new Ar(Q),1)};this.zL.BJ(Q)}; g.S.hH=function(Q){this.zL.hH(Q)}; g.S.N3=function(Q){Q=yXp(new Ar(Q));this.zL.N3(Q)}; g.S.V2=function(Q){Q={Ba:U1(new Ar(Q),1,AXL)};this.zL.V2(Q)}; g.S.onSnackbarMessage=function(Q){Q=s1(new Ar(Q),1);this.zL.onSnackbarMessage(Q)}; g.S.LD=function(Q){Q={reloadPlaybackParams:U1(new Ar(Q),1,vyp)};this.zL.LD(Q)};g.p(x$,g.h);g.S=x$.prototype;g.S.Ne=function(){return Array.from(this.EV.keys())}; g.S.TN=function(Q){Q=this.EV.get(Q);var z=Q.Ej;Q.V8+=z.getLength();Q.Ej=new n4;return z}; g.S.eU=function(Q){return this.EV.get(Q).eU}; g.S.z4=function(Q){return this.EV.get(Q).z4}; g.S.IU=function(Q,z,H,f){this.EV.get(Q)||lMY(this,Q,z);z=this.EV.get(Q);if(this.n3){Q=QdZ(this,Q,H);if(f)for(var b=g.n(Q),L=b.next();!L.done;L=b.next()){L=L.value;var u=f;L.wh=u;L.startTime+=u;L.D+=u;L.j+=u}Rhp(this,H.KV,z,Q)}else H.gZ?z.Fw=H.dX:z.NZ.push(H),z.bP.push(H)}; g.S.aD=function(Q){var z;return((z=this.EV.get(Q))==null?void 0:z.Tv)||[]}; g.S.Ka=function(){for(var Q=g.n(this.EV.values()),z=Q.next();!z.done;z=Q.next())z=z.value,z.u6&&(z.Ex&&z.Ex(),z.u6=!1)}; g.S.Qd=function(Q,z){this.logger.debug(function(){return"[onMediaEnd] formatId: "+z}); var H=this.EV.get(z);if(Of){if(H&&!H.eU){if(H.Vw.get(Q))H.Vw.get(Q).kq=!0;else{var f;((f=this.Wo)==null?0:f.p5)&&H.Vw.set(Q,{data:new n4,HV:0,kq:!0})}H.z4=!0}}else H&&!H.z4&&(H.z4=!0)}; g.S.Rx=function(Q){if(Of){var z=this.EV.get(Q);if(z)for(var H=g.n(z.Vw),f=H.next();!f.done;f=H.next()){var b=g.n(f.value);f=b.next().value;b=b.next().value;var L=z.mO.get(f);if(Id(L[0])){if(!b.kq)continue;var u=L,X=b.data;X.getLength();L=0;var v=[];u=g.n(u);for(var y=u.next();!y.done;y=u.next()){y=y.value;var q=y.L,M=Zt(X,L,q);L+=q;v.push(new kl(y,M))}z.hV.push.apply(z.hV,g.F(v))}else if(b.data.getLength()>0||!L[0].range&&b.kq)X=void 0,L=L[0],v=b.HV,u=b.data,L.range||(X=b.kq),y=u.getLength(),X=new kl(b3p(L, L.B+v,y,X),u),b.HV+=X.info.L,z.hV.push(X);z.Vw.get(f).data=new n4;b.kq&&z.Vw.delete(f)}Q=this.EV.get(Q);if(!Q)return[];z=Q.hV;Q.hV=[];H=g.n(z);for(f=H.next();!f.done;f=H.next())Q.V8+=f.value.info.L;return z||[]}H=(z=this.EV.get(Q))==null?void 0:z.bL;if(!H)return[];this.Va(Q,H);return H.Rx()}; g.S.uZ=function(Q){if(Of)return I8(this,Q);var z,H,f;return!!((H=(z=this.EV.get(Q))==null?void 0:z.bL)==null?0:(f=H.m_())==null?0:f.length)||I8(this,Q)}; g.S.Va=function(Q,z){for(;I8(this,Q);){var H=this.TN(Q);var f=Q;f=this.EV.get(f).eU&&!NQ(this,f);SS(z,H,f&&ehk(this,Q))}}; g.S.zv=function(){g.h.prototype.zv.call(this);for(var Q=g.n(this.EV.keys()),z=Q.next();!z.done;z=Q.next())o8(this,z.value);var H;if((H=this.Wo)==null?0:H.eN)for(Q=g.n(this.EV.values()),z=Q.next();!z.done;z=Q.next())z=z.value,z.Vw.clear(),z.mO.clear(),z.hV.length=0,z.Tv.length=0,z.bP.length=0,z.NZ.length=0;this.EV.clear()}; var Of=!1;g.p(Y$,g.h);g.S=Y$.prototype;g.S.n9=function(){!this.Sm()&&this.xhr&&(this.Va(!1),e8(this.zL,this))}; g.S.tH=function(){}; g.S.z7=function(){if(!this.Sm()&&this.xhr){var Q=this.qX();Q===5?qQ(this.f5):this.Ni(Q);this.f5.B.stop();var z;(z=this.oT)==null||z.stop()}}; g.S.qX=function(){var Q="";CH(this.f5,this.xhr)&&(Q=Zun(this.f5,this.xhr));if(Q)return this.info.Mz.j6(this.b8,Q),3;this.Va(!0);if(MQ(this.f5,this.xhr.status,this.xhr.MY(),this.info.PQ(),this.yW))return 5;if(this.M_)return 3;noc(this.f5,this.xhr.Kg(),0,this.PQ());this.policy.Vs&&DGZ(this.zL);return 4}; g.S.Va=function(Q){var z=this.xhr;if((Q||!CH(this.f5,this.xhr))&&z.sG()){Q=z.s2();var H=Q.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+H}); this.rN.feed(Q)}}; g.S.sO=function(Q,z){this.xhr.yg()&&Q===21&&b_J(this);this.Du.sO(Q,z)}; g.S.Aa=function(Q,z,H,f){H||(this.wr.Aa(f),this.policy.kd&&Q===21&&b_J(this));if(Q!==21)return!1;this.wr.Ze=!0;Q=z.getLength();H||(this.XF=z.getUint8(0),z=z.split(1).TO);var b=this.policy.Cc,L=this.Du.B[this.XF],u=this.n3.L.get(L);if(b&&u&&(b*=u.info.oi,Q+H!==f&&Q0){this.policy.xr&&this.f5.B.stop();Q=this.wr.gs();z=this.wr.u0();var H=L$v(this,Q);if(!(z>H.Jl||H.au>0&&this.info.Vn()>H.au)){this.rb=(0,g.NV)();var f;(f=this.oT)==null||f.stop();this.policy.Vs&&(f=this.zL,Q={GX:Math.round(z*Q/1E3),Cb:Q},f.policy.Vs&&(f.yl=Q,f.He++));this.SJ()}}}}; g.S.SJ=function(){this.f5.SJ()}; g.S.yX=function(Q){this.zL.yX(Q,this.lZ())}; g.S.By=function(Q){this.M_=!0;this.info.Mz.j6(this.b8,Q.redirectUrl)}; g.S.SW=function(Q){this.wr instanceof $$&&this.wr.SW(Q)}; g.S.BJ=function(Q){this.wr instanceof $$&&this.wr.BJ(Q)}; g.S.b6=function(Q,z,H){this.zL.b6(Q,z,H,this.lZ())}; g.S.Iu=function(Q){var z=Q.formatId,H=jA({itag:z.itag,lmt:z.lmt,xtags:z.xtags}),f,b,L=new xl(((f=Q.RO)==null?void 0:f.first)||0,((b=Q.RO)==null?void 0:b.k_)||0),u,X;f=new xl(((u=Q.indexRange)==null?void 0:u.first)||0,((X=Q.indexRange)==null?void 0:X.k_)||0);if(!this.n3.L.get(H)){H=Q.LG||{};if(this.policy.Da){var v,y;Q=(v=Q.mimeType)!=null?v:"";v=(y=z.itag)!=null?y:0;y=Wt[""+v];H.mimeType=y!=="9"&&y!=="9h"?Q:'video/webm; codecs="'+["vp09",y==="9h"?"02":"00","51",y==="9h"?"10":"08","01.01.01.01.00"].join(".")+ '"'}else H.mimeType=Q.mimeType;H.itag=z.itag;H.lastModified=""+(z.lmt||0);H.xtags=z.xtags;z=this.n3;y=tQ("");v=Mj(H,null);uD(z,new fy(y,v,L,f))}}; g.S.CV=function(Q){this.zL.CV(Q)}; g.S.onSnackbarMessage=function(Q){if(this.policy.jj)this.zL.onSnackbarMessage(Q)}; g.S.hH=function(Q){this.DO=Q;this.EQ=(0,g.NV)();this.zL.hH(Q)}; g.S.Dw=function(Q,z,H){this.zL.Dw(Q,z,H)}; g.S.Hp=function(Q){Q.scope===2&&(this.CLc=Q);this.zL.Hp(Q)}; g.S.Mn=function(){this.Px=!0;this.zL.Mn()}; g.S.KD=function(Q){this.policy.D6&&this.zL.KD(Q)}; g.S.GQ=function(Q){this.zL.GQ(Q,this.lZ())}; g.S.N3=function(Q){Q.Be===3&&(this.yW=!0);this.zL.N3(Q)}; g.S.V2=function(Q){this.zL.V2(Q)}; g.S.LD=function(Q){this.zL.LD(Q)}; g.S.canRetry=function(){this.Sm();return this.f5.canRetry(!1)}; g.S.dispose=function(){if(!this.Sm()){g.h.prototype.dispose.call(this);this.f5.dispose();var Q;(Q=this.oT)==null||Q.dispose();this.Ni(-1);this.bI()}}; g.S.Ni=function(Q){this.state=Q;e8(this.zL,this)}; g.S.PQ=function(){return this.info.PQ()}; g.S.TM=function(){return this.Px}; g.S.FO=function(){return this.CLc}; g.S.IU=function(Q,z,H){H.clipId&&(this.clipId=H.clipId);this.policy.S&&!z&&(this.D3=H.MC,this.PR=H.startMs);var f=0;this.policy.j2&&this.Hj&&this.clipId&&(f=sJ(this.Hj,this.clipId)/1E3);this.eH.IU(Q,z,H,f);this.policy.Pl&&this.DO&&this.wr instanceof TG&&(f=this.DO.ej,this.wr.IU(H.durationMs/1E3,z,f>0&&H.MC+1>=f));this.eH.EV.get(Q).by=!0}; g.S.Qd=function(Q,z){this.eH.Qd(Q,z)}; g.S.m5=function(Q){this.requestIdentifier=Q}; g.S.Rx=function(Q){return this.eH.Rx(Q)}; g.S.aD=function(Q){return this.eH.aD(Q)}; g.S.uZ=function(Q){return this.eH.uZ(Q)}; g.S.Ne=function(){return this.eH.Ne()}; g.S.Zz=function(){return 1}; g.S.lZ=function(){return this.wr.requestNumber}; g.S.IP=function(){return this.requestIdentifier}; g.S.mK=function(){return this.clipId}; g.S.mM=function(){return this.b8.mM()}; g.S.lV=function(){this.bI()}; g.S.bI=function(){this.wr.deactivate();var Q;(Q=this.xhr)==null||Q.abort()}; g.S.isComplete=function(){return this.state>=3}; g.S.zG=function(){return this.state===3}; g.S.vl=function(){return this.state===5}; g.S.Bs=function(){return this.state===4}; g.S.L0=function(){return this.isComplete()}; g.S.Dv=function(){return this.state>=1}; g.S.TY=function(){return this.policy.ys?this.f5.TY():0}; g.S.PM=function(){this.policy.ys&&e8(this.zL,this)}; g.S.U8=function(){return $$v(this.info)}; g.S.JF=function(){return this.f5.JF()}; g.S.P0=function(){var Q=GQu(this.f5);Object.assign(Q,FDu(this.info));Q.req="sabr";Q.rn=this.lZ();var z;if((z=this.xhr)==null?0:z.status)Q.rc=this.policy.P5?this.xhr.status:this.xhr.status.toString();var H;(z=(H=this.xhr)==null?void 0:H.q8())&&(Q.msg=z);this.rb&&(H=L$v(this,this.rb-this.wr.Tr()),Q.letm=H.MyT,Q.mrbps=H.Jl,Q.mram=H.au);return Q}; g.S.rB=function(){return{D3:this.D3,PR:this.PR,isDecorated:this.info.isDecorated()}};uwp.prototype.tick=function(Q,z){this.ticks[Q]=z?window.performance.timing.navigationStart+z:(0,g.NV)()};g.p(sf,g.Xp);g.S=sf.prototype; g.S.z8=function(Q,z,H,f){var b=!1;this.policy.C3&&(b=H?this.De===Q.Ah:this.L3===Q.Ah);if(this.j&&f&&!b){f=[];b=[];var L=[],u=void 0,X=0;z&&(f=z.Z,b=z.B,L=z.L,u=z.D,X=z.GD,this.On("sdai",{sq:Q.Ah,ssvicpns:f.join("."),ssvid:b.join(".")}));this.policy.C3&&(H?this.De=Q.Ah:this.L3=Q.Ah);this.j.O2(Q.Ah,Q.startTime,this.B,f,b,L,H,X,u)}if(this.policy.C3){if(H||this.policy.gt){this.B===1&&PA(this,5,"noad");var v;Q.Ah!==((v=this.Z)==null?void 0:v.Ah)&&(gla(this,Q,z,H),isNaN(Q.startTime)||a8(this,Q.Ah,ik(this, Q.startTime,Q.Ah),!!z,this.j))}}else H&&gla(this,Q,z)}; g.S.eB=function(Q,z,H){var f=this.videoTrack.Z.index.Xg()<=z;this.Z={BS:Q,Ah:z,Uc:H};f&&BA(this,Q,z)}; g.S.UN=function(){this.j&&this.j.UN()}; g.S.On=function(Q,z,H){(Q!=="sdai"||this.policy.Ve||(H===void 0?0:H))&&this.xv.On(Q,z)}; g.S.U7=function(Q,z){var H=this.videoTrack.Z.index.EX(Q);if(H>=0){var f;var b=((f=z.J7.DM(H,2))==null?void 0:f.vP)||"";if(this.policy.S||b)return z.UT(Q,H),Uf(this.xv,Q,Q,H),this.On("sdai",{cmskpad:1,t:Q.toFixed(3),sq:H}),!0}this.On("sdai",{cmskpad:0,t:Q.toFixed(3),sq:H});return!1};g.p(KH,g.h);KH.prototype.ST=function(Q,z,H){H=H===void 0?{}:H;this.policy.zw=JQ(Q,H,this.D,z===void 0?!1:z)};Th.prototype.wK=function(Q){var z=this;if(this.policy.aG){var H=new Set(Q);H.size===this.yl.size&&[].concat(g.F(H)).every(function(f){return z.yl.has(f)})||(this.xv.On("lwnmow",{itagDenylist:[].concat(g.F(Q)).join(",")}),this.xv.l3(!!H.size),this.U=-1,this.yl=H,eS(this,this.Z),this.mq=!0)}}; Th.prototype.ST=function(Q,z,H){H=H===void 0?{}:H;var f=this.policy.zw;this.S.ST(Q,z===void 0?!1:z,H);if(f!==this.policy.zw){eS(this,this.Z);lk(this);var b,L;f>this.policy.zw&&((b=this.L)==null?0:mq(b.info))&&((L=this.nextVideo)==null||!mq(L.info))&&(this.Ze=!0)}};HK.prototype.WG=function(Q){this.timestampOffset=Q;this.flush()}; HK.prototype.flush=function(){if(this.Z.pos>0){var Q={a:this.track.Wq(),u:this.Z.dP(),pd:Math.round(this.D),ad:Math.round(this.L)},z=this.B;if(z){var H=z.Z.info;Q.itag=H.itag;H.Z&&(Q.xtags=H.Z);Q.sq=z.Ah;Q.st=z.startTime;Q.sd=z.duration;this.track.policy.Lc&&(Q.si=z.aq());z.S&&(Q.esl=z.B+z.L);z.lc()&&(Q.eos=1)}isNaN(this.timestampOffset)||(Q.to=this.timestampOffset);var f;if(z=(f=this.track.nH)==null?void 0:f.TL({})){for(var b in z)this.j[b]!==z[b]&&(Q["sb_"+b]=z[b]);this.j=z}this.track.On("sbu", Q);this.Z.reset();this.buffered=[];this.S=this.L=this.D=0;this.timestampOffset=this.B=void 0}};bm.prototype.dispose=function(){this.wh=!0}; bm.prototype.Sm=function(){return this.wh}; g.p(y8,Error);var xb9=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]);CI.prototype.skip=function(Q){this.offset+=Q}; CI.prototype.j0=function(){return this.offset};g.S=uo_.prototype;g.S.tO=function(){return this.B}; g.S.qC=function(){return this.B.length?this.B[this.B.length-1]:null}; g.S.lH=function(){this.B=[];gH(this);pI(this)}; g.S.TN=function(Q){this.En=this.B.shift().info;Q.info.jH(this.En)}; g.S.aD=function(){return g.J5(this.B,function(Q){return Q.info})}; g.S.Wq=function(){return!!this.j.info.audio}; g.S.getDuration=function(){return this.j.index.Rt()};g.p(aM,Qg);g.S=aM.prototype;g.S.onStateChange=function(){this.Sm()&&(Js(this.eH,this.formatId),this.Z.dispose())}; g.S.P0=function(){var Q=T8a(this.eH,this.formatId),z;var H=((z=this.eH.EV.get(this.formatId))==null?void 0:z.bytesReceived)||0;var f;z=((f=this.eH.EV.get(this.formatId))==null?void 0:f.V8)||0;return{expected:Q,received:H,bytesShifted:z,sliceLength:NQ(this.eH,this.formatId),isAnyMediaEndReceived:this.eH.z4(this.formatId)}}; g.S.Y0=function(){return 0}; g.S.D$=function(){return!0}; g.S.Rx=function(){return this.eH.Rx(this.formatId)}; g.S.m_=function(){return[]}; g.S.uZ=function(){return this.eH.uZ(this.formatId)}; g.S.JF=function(){return this.lastError}; g.S.TY=function(){return 0};g.p(jc,g.h);g.S=jc.prototype;g.S.Wq=function(){return!!this.Z.info.audio}; g.S.qC=function(){return this.D.qC()}; g.S.TN=function(Q){this.D.TN(Q);var z;(z=this.N)!=null&&(z.S.add(Q.info.Ah),z.Z=rKc(z,z.ue,z.Cg,Q,z.Z),z.L=Q,z.j=(0,g.NV)());this.oi=Math.max(this.oi,Q.info.Z.info.oi||0)}; g.S.getDuration=function(){if(this.policy.B){var Q=this.xv.t$();if(Q)return kY(Q)}return this.Z.index.Rt()}; g.S.lH=function(){cN(this);this.D.lH()}; g.S.pG=function(){return this.D}; g.S.isRequestPending=function(Q){return this.L.length?Q===this.L[this.L.length-1].info.Tv[0].Ah:!1}; g.S.WG=function(Q){var z;(z=this.N)==null||z.WG(Q);var H;(H=this.U)==null||H.WG(Q)}; g.S.On=function(Q,z){this.xv.On(Q,z)}; g.S.B0=function(){return this.xv.B0()}; g.S.dispose=function(){var Q;(Q=this.U)==null||Q.flush();g.h.prototype.dispose.call(this)};g.p(wH,g.h);wH.prototype.L=function(){this.B++>15||(this.Z=!this.Z,new exL(this.xv,this.policy,this.L5,this.Mz,this.Z),this.delay.start())}; g.S=exL.prototype;g.S.tH=function(){}; g.S.n9=function(){}; g.S.z7=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.Kg()===this.size)this.xv.On("rqs",this.getInfo());else{var Q="net.connect";this.xhr.status>200?Q="net.badstatus":this.xhr.wc()&&(Q="net.closed");this.onError(Q)}}; g.S.onError=function(Q){var z=this;this.xv.handleError(Q,this.getInfo());oM("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(H){z.xv.On("pathprobe",H)},function(H){z.xv.handleError(H.errorCode,H.details)})}; g.S.getInfo=function(){var Q=this.timing.EU();Q.shost=$o(this.location.XI);Q.pb=this.size;return Q};g.p(kp,g.h); kp.prototype.Y=function(Q,z){if(Q.Y){this.n3.isLive?(Q=this.n3.Li&&this.n3.D?Q.Z.Di(this.n3.Li,!1):Q.Z.UU(Infinity),Q.Ds=this.Ds):Q=Q.Z.Di(0,!1);if(this.Ze){var H=this.Ze;Q.Ds===0&&(Q.S=H.N)}else Q.S=this.U;return Q}H=Q.B;if(!H.Z.SH())return H.Z.E7()?(Q=IM(this.S,Q.Z.info.oi,z.Z.info.oi,0),Q=H.Z.B1(H,Q)):Q=H.Z.VJ(H),Q;var f=H.j-this.xv.getCurrentTime(),b=!H.range||H.L===0&&H.B===0?0:H.range.length-(H.B+H.L),L=H.Z;this.hL(Q,f)&&b===0&&(this.n3.isManifestless?L=Q.Z:(L=H.startTime+UYa,H.L&&(L+=H.duration), WN(Q,L),H=Q.B,L=H.Z));L.E7()?(b=this.L,z=IM(this.S,L.info.oi,z.Z.info.oi,f,b.D.length>0&&b.N===0&&this.xv.xQ),f=cK(Q),Q=H.Z.B1(H,z),(z=Q.L)&&Q.Tv.length>1&&(f||Q.Mz.B||Q.Tv[0].Z!==H.Z?Q=H.Z.B1(H,Q.Tv[0].L):(f=Q.Tv[Q.Tv.length-1],L=f.L/z,!f.S&&L<.4&&(Q=H.Z.B1(H,z-f.L))))):(H.Ah<0&&(z=sN(H),z.pr=""+Q.L.length,this.xv.isSeeking()&&(z.sk="1"),z.snss=H.Y,this.xv.On("nosq",z)),Q=L.VJ(H));if(this.policy.De)for(H=g.n(Q.Tv),z=H.next();!z.done;z=H.next())z.value.type=6;return Q}; kp.prototype.hL=function(Q,z){if(!cK(Q)||!Q.Z.SH())return!1;var H=this.L.mq||skA(Q)||z<=this.policy.a5||this.L.Ze;this.logger.debug(function(){return"ready to adapt: "+H+", upgrade pending: "+skA(Q)+", health: "+z}); return H}; kp.prototype.zv=function(){g.h.prototype.zv.call(this)}; var UYa=2/24;g.p(bK,g.h);bK.prototype.Zg=function(Q,z,H){var f;var b=((f=this.B)==null?void 0:f.reason)==="m"?"m":this.B&&q8J(this,this.B)?this.B.reason:"a";this.xv.Zg(new Dr(Q,b,H));zc(this.xv,z,Q,!0)}; bK.prototype.yc=function(Q,z){for(var H=g.n(this.De),f=H.next();!f.done;f=H.next())if(f=f.value,f.id===Q)return this.Wo.zO||(this.L=[f]),this.j=this.n3.Z[Q],dH(this.Wo)&&(this.Ze=!0),Q=new Dr(this.j,z?"t":"m"),this.Wo.YJ&&z&&(this.S=!0),Q;this.L=[];return null}; bK.prototype.ST=function(Q,z,H){H=H===void 0?{}:H;this.Z.ST(Q,z===void 0?!1:z,H)};XT.prototype.setData=function(Q,z,H,f){var b=this;f=f===void 0?{}:f;if(H==null?0:H.Xa)this.yy=fZu(this,H,f),Q.jM=this.Mz.jM();if(this.PQ())return!0;this.data=Q;this.Z=Zoa(Q,z,function(L,u){var X;(X=b.zL)==null||X.Hz(L,u)},H==null?void 0:H.L); if(!this.Z)return!1;this.B=g.kS(this.Z,tx9);return!0}; XT.prototype.PQ=function(){return this.requestType===1}; XT.prototype.Vn=function(){var Q;return((Q=this.zL)==null?void 0:Q.Vn())||0}; XT.prototype.isDecorated=function(){var Q;return!((Q=this.data)==null||!Q.t8)};vW.prototype.encrypt=function(Q){this.xs.exports.AES128CTRCipher_encrypt(this.cipher,Q.byteOffset,Q.byteLength);return Q}; vW.prototype.Sm=function(){return this.cipher===0}; vW.prototype.dispose=function(){this.xs.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};yk.prototype.encrypt=function(Q,z){return SJ(this.subtleCrypto.encrypt({name:"AES-CTR",length:128,counter:z},this.key,Q).catch(function(H){return Promise.reject(H.name+": "+H.message)}).then(function(H){return new Uint8Array(H)}))}; yk.prototype.Sm=function(){return this.Z}; yk.prototype.dispose=function(){this.Z=!0}; xb.Qi(yk,{encrypt:OoJ("oan2")});ql.prototype.encrypt=function(Q,z){nP(this.B,z);return SJ(this.B.encrypt(Q))}; ql.prototype.Sm=function(){return this.Z}; ql.prototype.dispose=function(){this.Z=!0}; xb.Qi(ql,{encrypt:OoJ("oap")});Ml.prototype.encrypt=function(Q,z){var H=this.xs.QY(z),f=this.Z;f.xs.exports.AES128CTRCipher_setCounter(f.cipher,(H!=null?H:z).byteOffset);z=this.xs.QY(Q);this.Z.encrypt(z!=null?z:Q);H&&this.xs.free(H.byteOffset);return z?SJ(this.xs.yD(z)):SJ(Q)}; Ml.prototype.Sm=function(){return this.Z.Sm()}; Ml.prototype.dispose=function(){this.Z.dispose()}; xb.Qi(Ml,{encrypt:OoJ("oalw")});AJ.prototype.encrypt=function(Q,z){var H=this,f=vB("");Q.length<=this.zB&&this.Z&&!this.D&&(f=CE(f,function(){return H.Z?H.Z.encrypt(Q,z):vB("wasm unavailable")})); Q.length<=this.Ke&&(this.Z&&this.D&&(f=CE(f,function(){return H.Z?H.Z.encrypt(Q,z):vB("wasm unavailable")})),f=CE(f,function(){return Nmn(H,Q,z)})); return CE(CE(f,function(){return Idv(H,Q,z)}),function(){return Nmn(H,Q,z)})}; AJ.prototype.Sm=function(){return this.S}; AJ.prototype.dispose=function(){this.S=!0;var Q;(Q=this.L)==null||M1(Q,g.S5);g.S5(this.Z);g.S5(this.B)};YY.prototype.encrypt=function(Q){(0,g.NV)();return(new H0(this.Z.Z)).encrypt(Q,this.iv)}; YY.prototype.decrypt=function(Q,z){(0,g.NV)();return(new H0(this.Z.Z)).decrypt(Q,z)}; YY.prototype.Sm=function(){return this.L}; YY.prototype.dispose=function(){this.L=!0;g.S5(this.B)};g.p(r9,g.h);r9.prototype.L=function(Q,z){if(z){z=z instanceof g.ZM?z:sz(this,z);var H;((H=this.Z.get(Q))==null?void 0:$o(H.location))!==$o(z)&&this.Z.set(Q,new iop(z,Q))}else this.Z.delete(Q)}; r9.prototype.load=function(){var Q=this,z,H,f,b,L,u,X,v,y,q;return g.B(function(M){switch(M.Z){case 1:z=Q.Z.get(0);g.$v(M,2);var C;if(C=z&&!Q.B)C=$o(z.location),C=Q.B===yg(C);if(C){M.bT(4);break}return g.Y(M,U$Y(Q,Q.B?2:0),5);case 5:if(H=M.B)Q.L(0,H),FC(H)&&Q.L(1,xo(H));case 4:g.Fa(M,3);break;case 2:f=g.xv(M);g.PT(f);if(!Q.B){M.bT(3);break}Q.B=!1;return g.Y(M,Q.load(),7);case 7:return M.return();case 3:if(!Q.rh.experiments.Nc("html5_onesie_probe_ec_hosts")){M.bT(0);break}g.$v(M,9);b=Q;L=b.L;u=3;return g.Y(M, U$Y(Q,1),11);case 11:return L.call(b,u,M.B),X=Q,v=X.L,y=4,g.Y(M,U$Y(Q,2),12);case 12:v.call(X,y,M.B);g.Fa(M,0);break;case 9:q=g.xv(M),g.PT(q),g.Gu(M)}})}; r9.prototype.Y=function(){var Q=this,z,H;return g.B(function(f){g.lp(Q.N);z=g.qf(Q.rh.experiments,"html5_onesie_prewarm_max_lact_ms");if(NA()>=z)return f.return();(H=Q.Z.get(0))&&ad6(Q,H);g.Gu(f)})}; var Bm9={BZ$:0,Ec5:1,yjl:2,p5n:3,xGl:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};h9v.prototype.decrypt=function(Q){var z=this,H,f,b,L,u,X;return g.B(function(v){switch(v.Z){case 1:if(z.Z.length&&!z.Z[0].isEncrypted)return v.return();z.B=!0;z.h8.Pc("omd_s");H=new Uint8Array(16);GL()?f=new zt(Q):b=new H0(Q);case 2:if(!z.Z.length||!z.Z[0].isEncrypted){v.bT(4);break}L=z.Z.shift();if(!f){u=b.decrypt(L.buffer.K4(),H);v.bT(5);break}return g.Y(v,f.decrypt(L.buffer.K4(),H),6);case 6:u=v.B;case 5:X=u;for(var y=0;y=4)){var z=KB(this),H=this.xhr;z.rc=H.status;Q&&(z.ab=!0);if(H.q8()){var f="onesie.net";z.msg=H.q8()}else H.status>=400?f="onesie.net.badstatus":H.MY()?this.Ae||(f="onesie.response.noplayerresponse"):f=H.status===204?"onesie.net.nocontent":"onesie.net.connect";f?this.d7(new Oh(f,z)):(this.Pc("or_fs"),this.wr.l_((0,g.NV)(),H.Kg(),0),this.Ni(4),this.cG&&this.On("rqs",z));this.cG&&this.On("ombre", "ok."+ +!f);this.ZP=!1;d9(this);bv9(this.h8);if(!this.U6){this.fD.stop();var b;(b=this.G8)==null||b.stop()}var L;if(Q=(L=this.fK)==null?void 0:cEc(L))for(L=0;L1E3){var Q;(Q=this.wr)==null||Q.WK((0,g.NV)());Q=KB(this);if(this.rh.vz()&&this.xhr instanceof zh){var z=this.xhr;Q.xrs=z.xhr.readyState;Q.xpb=z.Z.getLength();Q.xdc=z.D}this.d7(new Oh("net.timeout",Q))}}else(0,g.NV)()-this.wr.Z>1E4&&((z=this.wr)==null||z.WK((0,g.NV)()),this.zf());this.isComplete()||this.Zy.start()}}; g.S.zf=function(){this.logger.info("Onesie request timed out");this.ZP=!1;if(!d9(this)){var Q=KB(this);Q.timeout="1";this.d7(new Oh("onesie.request",Q))}}; g.S.d7=function(Q){var z=this;Q=JI(Q);this.hU?this.HI.h7(Q):(this.LZ.reject(Q),this.hU=!0);bv9(this.h8);this.U6||this.fD.stop();this.Pc("or_fe");var H,f;(H=this.fK)==null||(f=cEc(H))==null||f.forEach(function(b){z.On("pathprobe",b)}); this.Ni(5);this.dispose()}; g.S.isComplete=function(){return this.state>=3}; g.S.Bs=function(){return this.state===4}; g.S.L0=function(Q){var z,H;return this.isComplete()||!!((z=this.M8)==null?0:(H=z.get(Q))==null?0:H.Z)}; g.S.zG=function(){return!1}; g.S.vl=function(){return this.state===5}; g.S.notifySubscribers=function(Q){for(var z=0;z102400&&!this.Oz&&(this.Pc("or100k"),this.Oz=!0);if(Q.sG()){var z=Q.s2(),H=z.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+H}); this.cG&&this.On("ombrss","len."+H);this.rN.feed(z)}if(this.M8)for(var f=g.n(this.M8.keys()),b=f.next();!b.done;b=f.next()){var L=b.value;Q=void 0;(Q=this.M8.get(L))==null||Q.Ka();this.notifySubscribers(L)}}catch(u){this.d7(u)}}; g.S.lZ=function(){return this.wr.requestNumber}; g.S.IP=function(Q){return this.ez.get(Q)}; g.S.rB=function(){return{D3:this.D3,PR:this.PR,isDecorated:!1}};g.p(jZ9,g.h);g.S=jZ9.prototype;g.S.Xx=function(Q,z){this.wh=void 0;DGZ(this);iv6(this,Q,z)}; g.S.X6=function(Q){if(this.Z.length===0)return!1;var z=this.Z[0];return z instanceof Vk?Q===this.xv.getCurrentTime()*1E3:!(z instanceof Y$&&jln(z.info))&&Math.abs(z.U8()-Q)<50}; g.S.hp=function(Q){this.B=Q;this.wh=(0,g.NV)()+(Q.backoffTimeMs||0)}; g.S.yX=function(Q,z){if(Q.action===void 0){var H=this.HI.R_();H!==void 0&&this.xv.fl(H)}else if(Q.action!==0||!this.En)switch(Q.action===0&&this.policy.rY&&(Q.action=2),H={},H.reason=Q.kSl,H.action=Q.action,H.rn=z,Q.action){case 1:this.policy.S&&this.D&&this.D.FQ(void 0,void 0,H);break;case 0:this.En=!0;this.videoData.OZ()&&this.policy.S&&this.D&&this.D.FQ(void 0,void 0,H,!1);this.xv.NU(H);break;case 2:this.xv.handleError("sabr.config",H,1);break;case 5:Ebv(this.HI,!0);break;case 6:Ebv(this.HI,!1); break;case 3:this.policy.Xa&&((Q=this.n3.N)!=null&&(Q.N=!0),this.xv.handleError("sabr.hostfallback",H))}}; g.S.b6=function(Q,z,H,f){if(this.policy.B){this.xv.On("ssap",{rn:f,v:z,tl:Vwp(Q)});var b=this.xv.t$();Q={Vt:Q,context:H,version:z};hy8(this,H);b?WIp(this,b,Q):(this.xv.On("ssap",{cacheclips:1,rn:f,v:z}),this.N=Q)}}; g.S.Hp=function(Q){this.xv.On("ssap",{onsbrctxt:Q.type,dflt:Q.sendByDefault});hy8(this,Q);this.HI.Hp(Q)}; g.S.Mn=function(){}; g.S.CV=function(Q){if(Q.Ld!==void 0&&Q.M$){var z=Q.Ld/Q.M$;this.audioTrack.Y=!1;this.videoTrack.Y=!1;if(this.policy.wh||this.policy.J5||this.policy.mZ)this.xv.Ff.B=!1;this.xv.F2(z,1);if(this.HI.getCurrentTime()!==z){var H={lr:"sabr_seek",qt:!0,Rr:!0};Q.seekSource&&(H.seekSource=Q.seekSource);VW(this.xv,z+.1,H)}}}; g.S.onSnackbarMessage=function(Q){this.HI.publish("onSnackbarMessage",Q)}; g.S.hH=function(Q){Q.ej&&Q.Xk&&$i(this.n3,Q.ej,Q.Xk);this.policy.o_&&(Q.L1&&Q.aH&&(this.n3.W0=Q.L1/Q.aH),Q.Uz&&Q.gm&&(this.n3.eN=Q.Uz/Q.gm));Q.BK!=null&&this.HI.yT(Q.BK);this.policy.Sl&&Q.pn&&(Q=((0,g.NV)()-Q.pn)/1E3,this.xv.EM.iH(1,Q))}; g.S.N3=function(Q){this.xv.N3(Q)}; g.S.Rn=function(Q){return this.S6.has(Q)}; g.S.Dw=function(Q,z,H){this.policy.L&&this.xv.On("sabrctxtplc",{start:Q?Q.join("_"):"",stop:z?z.join("_"):"",discard:H?H.join("_"):""});if(Q){Q=g.n(Q);for(var f=Q.next();!f.done;f=Q.next())this.S6.add(f.value)}if(z)for(z=g.n(z),Q=z.next();!Q.done;Q=z.next())Q=Q.value,this.S6.has(Q)&&this.S6.delete(Q);if(H)for(H=g.n(H),z=H.next();!z.done;z=H.next())z=z.value,this.videoData.sabrContextUpdates.has(z)&&(this.videoData.sabrContextUpdates.delete(z),z===3&&(this.videoData.Wp=""))}; g.S.KD=function(){}; g.S.Y4=function(Q){this.j=Q}; g.S.Sz=function(Q){this.jm=Q}; g.S.GQ=function(Q,z){mr(this.policy,Q,4,z)}; g.S.V2=function(Q){if(Q==null?0:Q.Ba)if(Q=Q.Ba.AO){Q=g.n(Q);for(var z=Q.next();!z.done;z=Q.next())if(z=z.value,z.formatId){var H=this.n3.L.get(jA(z.formatId));H&&H.info&&(H.info.debugInfo=z.debugInfo)}}}; g.S.LD=function(Q){(Q=Q==null?void 0:Q.reloadPlaybackParams)&&this.HI.publish("reloadplayer",Q)}; g.S.Ki=function(){return this.HI.Ki()||""}; g.S.Vn=function(){var Q=rH(this.audioTrack,!0)*1E3,z=rH(this.videoTrack,!0)*1E3;return Math.min(Q,z)}; g.S.Hz=function(Q,z){this.xv.On(Q,z)}; g.S.xa=function(Q){CEp(this.xv,sd8(this.uT,Q))}; g.S.zv=function(){g.h.prototype.zv.call(this);this.B=void 0;iv6(this,!0,"i");this.Z=[]};mG_.prototype.SA=function(Q,z){if(this.D)return l1v(this,z);if(z=dz(Q)){var H=z.B;H&&H.L&&H.Z&&(Q=Q.L.length?Q.L[0]:null)&&Q.state>=2&&!Q.vl()&&Q.info.Ds===0&&(this.D=Q,this.Y=H,this.B=z.info,this.j=this.startTimeSecs=Date.now()/1E3,this.S=this.B.startTime)}return NaN}; mG_.prototype.clear=function(){this.B=this.Y=this.D=null;this.Z=this.S=this.j=this.startTimeSecs=NaN;this.L=!1};g.p(g.zb,g.h);g.S=g.zb.prototype;g.S.initialize=function(Q,z,H){this.logger.debug(function(){return"Initialized, t="+Q}); Q=Q||0;this.policy.Z||(z=PwL(this.Z),p7v(this.HI,new Dr(z.video,z.reason)),this.HI.e9(new Dr(z.audio,z.reason)));this.n3.isManifestless&&uuu(this.S);this.Y&&kZ9(this.Y,this.videoTrack.Z);z=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var f=!this.n3.isManifestless;this.policy.wp&&(f=f||this.n3.l8);this.policy.yl||(this.currentTime=f?Q:z);this.policy.wh&&this.seek(this.getCurrentTime(),{}).IN(function(){}); if(this.policy.Z){var b;((b=this.Ze)==null?0:$G6(b,this.Ki()||""))&&fmL(this)&&H9J(this,this.videoTrack)&&H9J(this,this.audioTrack)&&(KI6(this.L,this.Ze),this.policy.j&&znn(this))}else this.wh&&(b9v(this,this.videoTrack),b9v(this,this.audioTrack),kQA(this.wh),delete this.wh);H?(this.policy.yw?(this.KH=H,HL(this,H)):HL(this,!1),g.lp(this.x8)):(H=this.getCurrentTime()===0,lm(this.S,this.videoTrack,this.videoTrack.Z,H),lm(this.S,this.audioTrack,this.audioTrack.Z,H),this.policy.Z&&Ov9(this.L,!0),this.policy.wh|| this.seek(this.getCurrentTime(),{}).IN(function(){}),this.timing.tick("gv")); (this.n3.Li||this.n3.zs||this.n3.jm||this.n3.Wz||this.n3.ys)&&this.HI.I8(this.n3)}; g.S.resume=function(){if(this.isSuspended||this.xQ){this.logger.debug("Resumed.");this.Vh=this.xQ=this.isSuspended=!1;try{this.SA()}catch(Q){g.BT(Q)}}}; g.S.qm=function(){return!this.policy.Bc}; g.S.NT=function(Q,z){Q=Q===void 0?!1:Q;z=z===void 0?!1:z;this.logger.debug("detaching media source");vm8(this);this.HI.Uq()&&(this.j=NaN);Q?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.f3&&this.On("loader",{setsmb:1}),this.policy.De=!0,this.lH()):(this.policy.yw?HL(this,this.KH):HL(this,!1),z||this.lH())}; g.S.setAudioTrack=function(Q,z,H){H=H===void 0?!1:H;if(!this.Sm()){var f=!isNaN(z);H&&f&&(this.audioTrack.wh=Date.now(),this.policy.sj&&(this.C3=!0));if(this.policy.Z){var b=this.B.yc(Q.id,f);this.logger.debug(function(){return"Logging new audio format: "+b.Z.info.id}); this.HI.e9(b)}else{var L=riu(this.Z,Q.id,f);this.logger.debug(function(){return"Logging new audio format: "+L.audio.info.id}); this.HI.e9(new Dr(L.audio,L.reason))}if(f&&(H=this.audioTrack.Z.index.EX(z),this.On("setAudio",{id:Q.id,cmt:z,sq:H}),H>=0)){this.policy.Z&&(this.policy.YJ||(this.B.S=!0),this.Xx(!0,"mosaic"));sR(this.audioTrack,H,NaN,NaN);!this.policy.cq&&this.n3.isLive&&Gy(this.n3,H,!1);return}this.HI.a4()}}; g.S.setPlaybackRate=function(Q){Q!==this.U.getPlaybackRate()&&this.U.setPlaybackRate(Q)}; g.S.y5=function(Q){var z=this.L.j;this.L.Y4(Q);this.On("scfidc",{curr:jA(z),"new":jA(Q)});Q&&jA(Q)!==jA(z)&&(this.Xx(!1,"caption change"),this.SA())}; g.S.DU=function(Q){this.L.Sz(Q)}; g.S.Zg=function(Q){var z=Q.Z.info.Wq();this.logger.debug(function(){return"New "+(z?"audio":"video")+" format from SABR: "+f3(Q.Z.info)}); z?this.HI.e9(Q):p7v(this.HI,Q)}; g.S.xa=function(Q){Ai(Q.Tv[Q.Tv.length-1])&&CEp(this,sd8(this.Z,Q.Tv[0].Z))}; g.S.tj=function(){return this.HI.tj()}; g.S.bR=function(){return this.HI.bR()}; g.S.N3=function(Q){this.HI.C().vz()&&this.On("sps",{status:Q.Be||""});if(Q.Be===1)this.HI.videoData.R5=0;else if(Q.Be===2||Q.Be===3){var z=!1;if(Q.Be===3){z=this.HI.g5();var H;this.gT=(H=Q.K2m)!=null?H:Infinity;this.HI.videoData.R5=z+1;(z=HW(this))&&this.i5(!0)}this.HI.aX(!0,z)}}; g.S.kU=function(){return this.HI.kU()}; g.S.o6=function(){return this.HI.o6()}; g.S.Gz=function(Q){this.HI.Gz(Q)}; g.S.ouv=function(){var Q,z=(Q=this.HI.aB())==null?void 0:Q.getCurrentTime();z?this.HI.On("rms",{cta:z}):g.lp(this.Wz)}; g.S.SA=function(){Mna(this);if(this.vI&&gp(this.vI)&&!this.vI.mB()&&(!this.policy.yl||isFinite(this.getCurrentTime()))){var Q=xp(this.videoTrack);Q=this.policy.P_&&Q&&Q.lc();this.n3.isManifestless&&this.n3.D&&py(this.n3)?(this.j=py(this.n3),this.vI.wx(this.j)):jb(this.n3)&&!Q?isNaN(this.j)?(this.j=this.getCurrentTime()+3600,this.vI.wx(this.j)):this.j<=this.getCurrentTime()+1800&&(this.j=Math.max(this.j+1800,this.getCurrentTime()+3600),this.vI.wx(this.j)):this.vI.isView||(Q=Math.max(this.audioTrack.getDuration(), this.videoTrack.getDuration()),(!isFinite(this.j)||this.j!==Q)&&Q>0&&(this.vI.wx(Q),this.j=Q))}if(!this.Sm())if(Em(this.n3)&&this.n3.vl()){var z=this.n3;this.handleError("manifest.net.retryexhausted",z.C3?{rc:z.Yu}:{rc:z.Yu.toString()},1)}else if(this.policy.Z)a:{try{a1Y(this.L);this.n3.isManifestless&&this.policy.j&&D_(this.Ff);if(X7Z(this)&&this.vI&&!$6(this.vI)&&this.videoTrack.jm&&this.audioTrack.jm){this.On("ssap",{delaysb:1,v:this.videoTrack.Z.info.id,vf:this.videoTrack.Z.info.Rj,a:this.audioTrack.Z.info.id, af:this.audioTrack.Z.info.Rj});var H=this.vI,f=this.videoTrack.Z,b=this.audioTrack.Z;!$6(H)&&b&&f&&(NUY(H,f.info,b.info,this.policy.m4),yMZ(this,H))}var L;((L=this.vI)==null?0:$6(L))&&this.IZ();Ov9(this.L)}catch(X){g.PT(X);z=X;if(z.message.includes("changeType")){this.On("ssap",{exp:z.name,msg:z.message,s:z.stack});break a}this.handleError("fmt.unplayable",{exp:z.name,msg:z.message,s:z.stack},1)}Bic(this);g.lp(this.iT)}else if(!this.n3.B||!ank(this.videoTrack)&&!ank(this.audioTrack)||(this.videoTrack.S|| this.audioTrack.S)&&this.policy.yE?H=!1:(this.lH(),this.HI.seekTo(Infinity,{lr:"checkLoaderTracksSync",F2:!0}),H=!0),!H){Mna(this);this.n3.isManifestless&&(UjA(this.videoTrack),UjA(this.audioTrack),D_(this.Ff),(H=dz(this.videoTrack))&&H.B&&(H=H.B.L&&!this.policy.kF,this.On(H===this.policy.N.e2?"strm":"strmbug",{strm:H,sfmp4:this.policy.N.e2,dfs:this.policy.kF},!0)));if(this.vI)this.IZ();else if(this.policy.D){var u;H=!1;if(this.policy.hk)for(f=g.n([this.videoTrack,this.audioTrack]),b=f.next();!b.done;b= f.next()){L=b.value;for(b=dz(L);b&&L.qC()!==xp(L);b=dz(L))L.TN(b);H=H||!!b}else(z=dz(this.videoTrack))&&this.videoTrack.TN(z),(u=dz(this.audioTrack))&&this.audioTrack.TN(u);Ib(this.videoTrack)&&Ib(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(z||u||H)&&Tc(this)}LjY(this);lm(this.S,this.videoTrack,this.videoTrack.Z,!1);lm(this.S,this.audioTrack,this.audioTrack.Z,!1);this.policy.eG||EmL(this,this.videoTrack,this.audioTrack);QlA(this.S,this.videoTrack,this.audioTrack); QlA(this.S,this.audioTrack,this.videoTrack);Bic(this);this.Y&&(z=this.Y,z.D?(u=z.j+z.policy.sR,z.L||(u=Math.min(u,z.startTimeSecs+z.policy.Lt)),z=Math.max(0,u*1E3-Date.now())):z=NaN,isNaN(z)||g.lp(this.ys,z));g.lp(this.iT)}}; g.S.NU=function(Q){this.HI.NU(Q)}; g.S.IZ=function(){var Q=this;if(this.vI){var z=this.vI.Z,H=this.vI.B;hnY(this,this.audioTrack);hnY(this,this.videoTrack);var f=gmv(this);if(f){if(this.policy.KZ){if(!z.uu()){var b=dz(this.audioTrack);if(b){if(!QV(this,this.audioTrack,z,b.info))return;$Y9(this,this.audioTrack,z,b)}}if(!H.uu()&&(b=dz(this.videoTrack))){if(!QV(this,this.videoTrack,H,b.info))return;$Y9(this,this.videoTrack,H,b)}}this.NC||(this.NC=(0,g.NV)(),this.logger.debug(function(){return"Appends pause start "+Q.NC+" reason "+f}), this.policy.L&&this.On("apdps",{r:f}))}else if(this.NC&&(nma(this,this.NC),this.NC=0),Z9Z(this),b=!1,this.policy.B&&WK(this.videoTrack)||!omp(this,this.videoTrack,H)||(b=!0,vlc(this.timing),CwY(this.timing)),this.vI&&!this.vI.eU()&&(this.policy.B&&WK(this.audioTrack)||!omp(this,this.audioTrack,z)||(b=!0,yin(this.timing),tAJ(this.timing)),!this.Sm()&&this.vI)){if(!this.policy.Bc&&Ib(this.videoTrack)&&Ib(this.audioTrack)&&gp(this.vI)&&!this.vI.mB()){H=!1; H=xp(this.audioTrack);if(this.policy.B){var L;z=(L=this.OY)==null?void 0:BN(L,H.D*1E3);H=!(!z||z.clipId!==H.clipId);this.On("ssap",{eos:H})}else L=H.Z,H=L===this.n3.Z[L.info.id];H&&(this.logger.debug("Setting EOS"),IhZ(this.vI),mv9(this.schedule))}b&&!this.vI.isAsync()&&Tc(this)}}}; g.S.zW=function(Q){var z,H=Q===((z=this.vI)==null?void 0:z.Z)?this.audioTrack:this.videoTrack,f;if((f=dz(H))==null?0:f.isLocked){if(this.HI.C().vz()){var b;this.On("eosl",{ounlock:(b=dz(H))==null?void 0:b.info.aq()})}var L;rM6(this,Q===((L=this.vI)==null?void 0:L.Z))}var u;if(this.policy.sj&&Q===((u=this.vI)==null?void 0:u.Z)&&this.WI){z=this.WI-this.getCurrentTime();var X;this.HI.On("asl",{l:z,xtag:(X=xp(this.audioTrack))==null?void 0:X.Z.info.Z});this.C3=!1;this.WI=0}Q.J8()&&Q.N4().length===0&& (Q.v1(),this.vI&&!this.vI.J8()&&(this.HI.C().vz()&&this.HI.On("rms",{ld:"seek"}),this.vI.j=performance.now(),this.HI.B4(),this.HI.C().vz()&&g.lp(this.Wz)));var v;(v=H.U)!=null&&fI(v,0);this.policy.gT?Qk(this):this.SA()}; g.S.LdT=function(Q){if(this.vI){var z=xp(Q===this.vI.Z?this.audioTrack:this.videoTrack);if(Q=Q.Ng())for(var H=0;H5&&Q.Ze.shift();z=z.Ah;var f;this.policy.EY&&((f=this.HI.getVideoData())==null?0:f.enableServerStitchedDai)&&(f=Vba(this.audioTrack,z),H=Vba(this.videoTrack,z),f!==0&&H!==0&&f!==H&&this.handleError("ssdai.avsync",{sq:z,a:f,v:H},0))}}; g.S.eB=function(Q,z,H,f){Q.info.video&&this.D.eB(z,H,f)}; g.S.wK=function(Q){this.Z.wK(Q)}; g.S.F4=H_(20);g.S.L$=function(Q){this.OY=Q;var z;(z=this.audioTrack.N)!=null&&(z.J7=Q);(z=this.videoTrack.N)!=null&&(z.J7=Q);z=this.L;z.N&&(z.xv.On("ssap",{addcacheclips:1,v:z.N.version,tl:Vwp(z.N.Vt)}),WIp(z,Q,z.N),z.N=void 0)}; g.S.t$=function(){return this.OY}; g.S.bJ=function(){return this.videoTrack.Y||this.audioTrack.Y}; g.S.seek=function(Q,z){if(this.Sm())return GM();if(this.bJ())return GM("seeking to head");if(this.policy.wh&&!isFinite(Q))return h6L(this.Ff),g.Zl(Infinity);Mna(this);this.Yf=(0,g.NV)();this.policy.Z||LjY(this,Q);this.vI&&this.vI.Z&&this.vI.B&&!this.HI.getVideoData().oa&&(this.vI.Z.isLocked()||this.vI.B.isLocked())&&this.HI.a4({reattachOnLockedBuffer:1,vsb:""+this.vI.B.isLocked(),asb:""+this.vI.Z.isLocked()});var H=this.getCurrentTime(),f=this.Ff.seek(Q,z);this.policy.yl||(this.currentTime=f);hs(this.D, Q,H,this.policy.F8&&!z.qt);Tc(this);return g.Zl(f)}; g.S.X6=function(Q){return this.policy.Z&&this.L.X6(Q)}; g.S.Rn=function(Q){return this.L.Rn(Q)}; g.S.Xx=function(Q,z){this.L.Xx(Q,z)}; g.S.getCurrentTime=function(){if(this.policy.yl){var Q=this.ex()||0;return this.HI.getCurrentTime()-Q}return this.currentTime}; g.S.A4=function(){return this.audioTrack.Z.info}; g.S.wq=function(){return this.videoTrack.Z.info}; g.S.HC=function(){return this.audioTrack.Z.info.Rj}; g.S.Ow=function(){return this.videoTrack.Z.info.Rj}; g.S.zv=function(){try{this.NT(),cN(this.audioTrack),cN(this.videoTrack),im(this.audioTrack),im(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.h.prototype.zv.call(this)}catch(Q){g.BT(Q)}}; g.S.handleError=function(Q,z,H){H=H===void 0?0:H;var f=oj(H);Q==="fmt.unplayable"&&this.n3.isLive&&(this.policy.KZ=!1,Zn(this.n3));z=new Oh(Q,z,H);g.Tu(this);xK(z.details);this.HI.handleError(z);Q!=="html5.invalidstate"&&z.errorCode!=="fmt.unplayable"&&Q!=="fmt.unparseable"&&f&&this.dispose()}; g.S.TL=function(){var Q=xp(this.audioTrack),z=xp(this.videoTrack);Q={lct:this.getCurrentTime().toFixed(3),lsk:this.Ff.isSeeking(),lmf:this.Z.Z.isLocked(),lbw:po(this.schedule).toFixed(3),lhd:tE(this.schedule).toFixed(3),lst:((this.schedule.Y.gQ()||0)*1E9).toFixed(3),laa:Q?Q.aq():"",lva:z?z.aq():"",lar:this.audioTrack.B?this.audioTrack.B.aq():"",lvr:this.videoTrack.B?this.videoTrack.B.aq():"",laq:""+Ae(this.audioTrack),lvq:""+Ae(this.videoTrack)};this.vI&&!this.vI.eU()&&this.vI.Z&&this.vI.B&&(Q.lab= L3(this.vI.Z.N4()),Q.lvb=L3(this.vI.B.N4()));this.NC&&(Q.lapt=((0,g.NV)()-this.NC).toFixed(0),Q.lapr=gmv(this));this.yl&&(Q.lapmabht=((0,g.NV)()-this.yl).toFixed(0),Q.lapmabh=hv(this,this.audioTrack).toFixed(0));this.jm&&(Q.lapmvbht=((0,g.NV)()-this.jm).toFixed(0),Q.lapmvbh=hv(this,this.videoTrack).toFixed(0));this.f3&&(Q.lapsdai=((0,g.NV)()-this.f3).toFixed(0));return Q}; g.S.lH=function(){try{this.policy.Z&&this.L.Xx(!1,"pending"),this.audioTrack.lH(),this.videoTrack.lH()}catch(Q){g.BT(Q)}this.policy.D=""}; g.S.G9=function(){return NF(this.U)}; g.S.On=function(Q,z,H){this.HI.On(Q,z,H===void 0?!1:H)}; g.S.Ki=function(){return this.HI.Ki()}; g.S.F2=function(Q,z){Q/=z;isNaN(this.timestampOffset)&&Wj_(this,Q-Math.min(Q,this.policy.QJ));return(Q-this.timestampOffset)*z}; g.S.ex=function(){return this.timestampOffset}; g.S.isSeeking=function(){return this.Ff.isSeeking()}; g.S.UN=function(){this.D.UN()}; g.S.ST=function(Q,z,H){z=z===void 0?!1:z;H=H===void 0?{}:H;this.policy.Z?this.B.ST(Q,z,H):this.Z.ST(Q,z,H)}; g.S.zo=function(Q,z){if(!this.N)return!1;var H=this.videoTrack.Z.index.EX(Q);return this.N.zo(Q,z,H)}; g.S.U7=function(Q,z){if(this.N&&this.D.U7(Q,this.N))return Wj_(this,this.timestampOffset-z),Tc(this),this.policy.S&&(Zn(this.n3),im(this.audioTrack),im(this.videoTrack),this.lH()),!0;z=this.videoTrack.Z.index.EX(Q);this.handleError("ad.skipfailed",{dec:!!this.N,t:Q.toFixed(3),sq:z});return!1}; g.S.getManifest=function(){return this.n3}; g.S.isOffline=function(){return!!this.HI.getVideoData().cotn}; g.S.Nn=function(Q,z){this.HI.Nn(Q,z)}; g.S.iU=function(Q){if(this.policy.AK)this.policy.Z&&this.L.Xx(!0,"utc"),this.SA();else{var z=this.HI.getVideoData().KE;if(z){var H=this.S;H.cB=Q;H.KE=z;fB(this)}}}; g.S.fl=function(Q){this.videoTrack.Y=!1;this.audioTrack.Y=!1;this.Ff.B=!1;this.HI.fl(Q)}; g.S.Y2=function(Q){this.Ff.Y2(Q-this.ex())}; g.S.J1=function(){this.HI.J1()}; g.S.i5=function(Q){Q!==this.policy.A5&&((this.policy.A5=Q)||this.SA())}; g.S.gk=function(Q,z){var H=this.audioTrack.nH,f=this.videoTrack.nH;H&&f&&(H.remove(Q,z),f.remove(Q,z))}; g.S.a4=function(Q){this.HI.a4(Q)}; g.S.l3=function(Q){this.HI.l3(Q)}; g.S.g5=function(){return this.HI.g5()}; g.S.Y8=function(){Zn(this.n3);this.lH()};g.S=g.fD.prototype;g.S.ZM=function(Q,z,H,f,b,L){return this.J7.ZM(Q,z,H,f,b,L)}; g.S.Vb=function(Q,z,H,f,b,L){return this.J7.Vb(Q,z,H,f,b,L)}; g.S.W4=function(Q){return this.J7.W4(Q)}; g.S.c6=function(Q){this.J7.c6(Q)}; g.S.FQ=function(Q,z,H,f){return this.J7.FQ(Q,z,H,f)}; g.S.UN=function(){this.J7.UN()}; g.S.zo=function(Q,z,H){return this.J7.zo(Q,z,H)}; g.S.UT=function(Q,z){this.J7.UT(Q,z)}; g.S.wb=function(){this.J7.wb()}; g.S.Sq=H_(62);g.S.j6=function(Q,z,H){this.J7.j6(Q,z,H)}; g.S.Vg=H_(65);g.S.O2=function(Q,z,H,f,b,L,u,X,v){this.J7.O2(Q,z,H,f,b,L,u,X,v)}; g.S.Ji=function(Q){this.J7.Ji(Q)}; g.S.Q6=function(Q){return this.J7.Q6(Q)}; g.S.tX=function(Q){return this.J7.tX(Q)};g.p(bH,g.Xp);g.p(LD,bH);LD.prototype.j=function(Q,z){if(Q&&z){var H=Number(m_(Q,"cpi"))*1+1;isNaN(H)||H<=0||Hthis.L&&(this.L=H,g.Ys(this.Z)||(this.Z={},this.D.stop(),this.B.stop())),this.Z[z]=Q,g.lp(this.B))}}; LD.prototype.S=function(){for(var Q=g.n(Object.keys(this.Z)),z=Q.next();!z.done;z=Q.next()){var H=z.value;z=this.publish;for(var f=this.L,b=this.Z[H].match(aR),L=[],u=g.n(b[6].split("&")),X=u.next();!X.done;X=u.next())X=X.value,X.indexOf("cpi=")===0?L.push("cpi="+f.toString()):X.indexOf("ek=")===0?L.push("ek="+g.TU(H)):L.push(X);b[6]="?"+L.join("&");H="skd://"+b.slice(2).join("");b=H.length*2;f=new Uint8Array(b+4);f[0]=b%256;f[1]=(b-f[0])/256;for(b=0;b0)for(var H=g.n(this.Z),f=H.next();!f.done;f=H.next())if(z===f.value.info.cryptoPeriodIndex){z=!0;break a}z=!1}if(!z){z=(0,g.NV)();a:{H=Q.cryptoPeriodIndex;if(!isNaN(H)){f=g.n(this.L.values());for(var b=f.next();!b.done;b=f.next())if(Math.abs(b.value.cryptoPeriodIndex-H)<=1){H=!0;break a}}H=!1}H?(H=Q.Z,H=Math.max(0,Math.random()*((isNaN(H)?120:H)-30))*1E3):H=0;this.publish("log_qoe",{wvagt:"delay."+H,cpi:Q.cryptoPeriodIndex,reqlen:this.Z.length, ignore:this.D});H<=0?mYA(this,Q):this.D||(this.Z.push({time:z+H,info:Q}),g.lp(this.B,H))}}; uH.prototype.zv=function(){this.Z=[];bH.prototype.zv.call(this)};var pe={},lmY=(pe.DRM_TRACK_TYPE_AUDIO="AUDIO",pe.DRM_TRACK_TYPE_SD="SD",pe.DRM_TRACK_TYPE_HD="HD",pe.DRM_TRACK_TYPE_UHD1="UHD1",pe);g.p(Tiv,g.h);g.p(Qgk,g.Xp);g.S=Qgk.prototype;g.S.XS=function(Q){var z=this;this.Sm()||Q.size<=0||(Q.forEach(function(H,f){var b=Yi(z.B)?f:H;f=new Uint8Array(Yi(z.B)?H:f);Yi(z.B)&&jbv(f);H=g.nr(f,4);jbv(f);f=g.nr(f,4);z.Z[H]?z.Z[H].status=b:z.Z[f]?z.Z[f].status=b:z.Z[H]={type:"",status:b}}),M1u(this,","),Sr(this,{onkeystatuschange:1}),this.status="kc",this.publish("keystatuseschange",this))}; g.S.error=function(Q,z,H,f){this.Sm()||(this.publish("licenseerror",Q,z,H,f),Q==="drm.provision"&&(Q=(Date.now()-this.j)/1E3,this.j=NaN,this.publish("ctmp","provf",{et:Q.toFixed(3)})));oj(z)&&this.dispose()}; g.S.shouldRetry=function(Q,z){return!Q&&this.requestNumber===z.requestNumber}; g.S.zv=function(){this.Z={};g.Xp.prototype.zv.call(this)}; g.S.TL=function(){var Q={ctype:this.N.contentType||"",length:this.N.initData.length,requestedKeyIds:this.L3,cryptoPeriodIndex:this.cryptoPeriodIndex};this.L&&(Q.keyStatuses=this.Z);return Q}; g.S.getInfo=function(){var Q=this.D.join();if(Xj(this)){var z=new Set,H;for(H in this.Z)this.Z[H].status!=="usable"&&z.add(this.Z[H].type);Q+="/UKS."+Array.from(z)}return Q+="/"+this.cryptoPeriodIndex}; g.S.mM=function(){return this.url};g.p(vL,g.h);g.S=vL.prototype;g.S.BA=function(Q){if(this.S){var z=Q.messageType||"license-request";this.S(new Uint8Array(Q.message),z)}}; g.S.XS=function(){this.Y&&this.Y(this.Z.keyStatuses)}; g.S.onClosed=function(){this.Sm()||g.K1("xboxone")&&this.L&&this.L("closed")}; g.S.IH=function(Q){this.S&&this.S(Q.message,"license-request")}; g.S.uV=function(Q){if(this.L){if(this.B){var z=this.B.error.code;Q=this.B.error.systemCode}else z=Q.errorCode,Q=Q.systemCode;this.L("t.prefixedKeyError;c."+z+";sc."+Q,z,Q)}}; g.S.df=function(){this.j&&this.j()}; g.S.update=function(Q){var z=this;if(this.Z)return(dS.isActive()?dS.UJ("emeupd",function(){return z.Z.update(Q)}):this.Z.update(Q)).then(null,gZ(function(H){x5c(z,"t.update",H)})); this.B?this.B.update(Q):this.element.addKey?this.element.addKey(this.N.keySystem,Q,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.N.keySystem,Q,this.initData,this.sessionId);return B2()}; g.S.zv=function(){this.Z&&(this.U?this.Z.close().catch(g.PT):this.Z.close());this.element=null;g.h.prototype.zv.call(this)};g.p(yV,g.h);g.S=yV.prototype;g.S.Jy=function(){var Q=this;if(this.Z.keySystemAccess)return(dS.isActive()?dS.UJ("emenew",function(){return Q.Z.keySystemAccess.createMediaKeys()}):this.Z.keySystemAccess.createMediaKeys()).then(function(H){if(!Q.Sm())if(Q.B=H,dS.isActive())dS.UJ("emeset",function(){return Q.element.setMediaKeys(H)}); else{var f;(f=Q.element)==null||f.setMediaKeys(H)}}); if(AQ(this.Z))this.L=new (Ik())(this.Z.keySystem);else if(rS(this.Z)){this.L=new (Ik())(this.Z.keySystem);var z;(z=this.element)==null||z.webkitSetMediaKeys(this.L)}else dS.isActive()&&this.On("emev",{v:"01b"}),I4(this.S,this.element,["keymessage","webkitkeymessage"],this.aV),I4(this.S,this.element,["keyerror","webkitkeyerror"],this.L6),I4(this.S,this.element,["keyadded","webkitkeyadded"],this.q1);return null}; g.S.setServerCertificate=function(){return this.B.setServerCertificate?this.Z.flavor==="widevine"&&this.Z.Lt?this.B.setServerCertificate(this.Z.Lt):Bj(this.Z)&&this.Z.C3?this.B.setServerCertificate(this.Z.C3):null:null}; g.S.createSession=function(Q,z){var H=Q.initData;if(this.Z.keySystemAccess){z&&z("createsession");var f=this.B.createSession();sm(this.Z)?H=OI9(H,this.Z.C3):Bj(this.Z)&&(H=dYp(H)||new Uint8Array(0));z&&z("genreq");var b=dS.isActive()?dS.UJ("emegen",function(){return f.generateRequest(Q.contentType,H)}):f.generateRequest(Q.contentType,H); var L=new vL(null,null,null,f,null,this.Y);b.then(function(){z&&z("genreqsuccess")},gZ(function(X){x5c(L,"t.generateRequest",X)})); return L}if(AQ(this.Z))return Je6(this,H);if(rS(this.Z))return opY(this,H);if((b=this.element)==null?0:b.generateKeyRequest)this.element.generateKeyRequest(this.Z.keySystem,H);else{var u;(u=this.element)==null||u.webkitGenerateKeyRequest(this.Z.keySystem,H)}return this.D=new vL(this.element,this.Z,H,null,null,this.Y)}; g.S.aV=function(Q){var z=NHJ(this,Q);z&&z.IH(Q)}; g.S.L6=function(Q){var z=NHJ(this,Q);z&&z.uV(Q)}; g.S.q1=function(Q){var z=NHJ(this,Q);z&&z.df(Q)}; g.S.getMetrics=function(){if(this.B&&this.B.getMetrics)try{var Q=this.B.getMetrics()}catch(z){}return Q}; g.S.zv=function(){this.L=this.B=null;var Q;(Q=this.D)==null||Q.dispose();Q=g.n(Object.values(this.j));for(var z=Q.next();!z.done;z=Q.next())z.value.dispose();this.j={};g.h.prototype.zv.call(this);delete this.element};g.S=qJ.prototype;g.S.get=function(Q){Q=this.findIndex(Q);return Q!==-1?this.values[Q]:null}; g.S.remove=function(Q){Q=this.findIndex(Q);Q!==-1&&(this.keys.splice(Q,1),this.values.splice(Q,1))}; g.S.removeAll=function(){this.keys=[];this.values=[]}; g.S.set=function(Q,z){var H=this.findIndex(Q);H!==-1?this.values[H]=z:(this.keys.push(Q),this.values.push(z))}; g.S.findIndex=function(Q){return g.wJ(this.keys,function(z){return g.vY(Q,z)})};g.p(YRA,g.Xp);g.S=YRA.prototype;g.S.h9v=function(Q){this.wS({onecpt:1});Q.initData&&BHa(this,new Uint8Array(Q.initData),Q.initDataType)}; g.S.qZ3=function(Q){this.wS({onndky:1});BHa(this,Q.initData,Q.contentType)}; g.S.Cl=function(Q){this.wS({onneedkeyinfo:1});this.rh.V("html5_eme_loader_sync")&&(this.Y.get(Q.initData)||this.Y.set(Q.initData,Q));sbc(this,Q)}; g.S.e7=function(Q){this.L.push(Q);MJ(this)}; g.S.createSession=function(Q){var z=apL(this)?zxZ(Q):g.nr(Q.initData);this.B.get(z);this.De=!0;Q=new Qgk(this.videoData,this.rh,Q,this.drmSessionId);this.B.set(z,Q);Q.subscribe("ctmp",this.o9,this);Q.subscribe("keystatuseschange",this.XS,this);Q.subscribe("licenseerror",this.Pm,this);Q.subscribe("newlicense",this.Qm,this);Q.subscribe("newsession",this.hR,this);Q.subscribe("sessionready",this.rL,this);Q.subscribe("fairplay_next_need_key_info",this.vj,this);this.rh.V("html5_enable_vp9_fairplay")&&Q.subscribe("qualitychange", this.cZ,this);this.rh.V("html5_enable_sabr_drm_hd720p")&&Q.subscribe("sabrlicenseconstraint",this.eYc,this);bRA(Q,this.D)}; g.S.Qm=function(Q){this.Sm()||(this.wS({onnelcswhb:1}),Q&&!this.heartbeatParams&&(this.heartbeatParams=Q,this.publish("heartbeatparams",Q)))}; g.S.hR=function(){this.Sm()||(this.wS({newlcssn:1}),this.L.shift(),this.De=!1,MJ(this))}; g.S.rL=function(){if(AQ(this.Z)&&(this.wS({onsnrdy:1}),this.jm--,this.jm===0)){var Q=this.Ze,z,H;(z=Q.element)==null||(H=z.msSetMediaKeys)==null||H.call(z,Q.L)}}; g.S.XS=function(Q){if(!this.Sm()){!this.f3&&this.videoData.V("html5_log_drm_metrics_on_key_statuses")&&(U5_(this),this.f3=!0);this.wS({onksch:1});var z=this.cZ;if(!Xj(Q)&&g.kw&&Q.B.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var H="large";else{H=[];var f=!0;if(Xj(Q))for(var b=g.n(Object.keys(Q.Z)),L=b.next();!L.done;L=b.next())L=L.value,Q.Z[L].status==="usable"&&H.push(Q.Z[L].type),Q.Z[L].status!=="unknown"&&(f=!1);if(!Xj(Q)||f)H=Q.D;H=qZn(H)}z.call(this,H);this.publish("keystatuseschange", Q)}}; g.S.o9=function(Q,z){this.Sm()||this.publish("ctmp",Q,z)}; g.S.vj=function(Q,z){this.Sm()||this.publish("fairplay_next_need_key_info",Q,z)}; g.S.Pm=function(Q,z,H,f){this.Sm()||(this.videoData.V("html5_log_drm_metrics_on_error")&&U5_(this),this.publish("licenseerror",Q,z,H,f))}; g.S.Nx=function(){return this.N}; g.S.cZ=function(Q){var z=g.zQ("auto",Q,!1,"l");if(this.videoData.ov){if(this.N.jH(z))return}else if(dSn(this.N,Q))return;this.N=z;this.publish("qualitychange");this.wS({updtlq:Q})}; g.S.eYc=function(Q){this.videoData.sabrLicenseConstraint=Q}; g.S.zv=function(){this.Z.keySystemAccess&&this.element&&(this.L3?this.element.setMediaKeys(null).catch(g.PT):this.element.setMediaKeys(null));this.element=null;this.L=[];for(var Q=g.n(this.B.values()),z=Q.next();!z.done;z=Q.next())z=z.value,z.unsubscribe("ctmp",this.o9,this),z.unsubscribe("keystatuseschange",this.XS,this),z.unsubscribe("licenseerror",this.Pm,this),z.unsubscribe("newlicense",this.Qm,this),z.unsubscribe("newsession",this.hR,this),z.unsubscribe("sessionready",this.rL,this),z.unsubscribe("fairplay_next_need_key_info", this.vj,this),this.rh.V("html5_enable_vp9_fairplay")&&z.unsubscribe("qualitychange",this.cZ,this),z.dispose();this.B.clear();this.j.removeAll();this.Y.removeAll();this.heartbeatParams=null;g.Xp.prototype.zv.call(this)}; g.S.TL=function(){for(var Q={systemInfo:this.Z.TL(),sessions:[]},z=g.n(this.B.values()),H=z.next();!H.done;H=z.next())Q.sessions.push(H.value.TL());return Q}; g.S.getInfo=function(){return this.B.size<=0?"no session":""+this.B.values().next().value.getInfo()+(this.S?"/KR":"")}; g.S.wS=function(Q,z){z=z===void 0?!1:z;this.Sm()||(xK(Q),(this.rh.vz()||z)&&this.publish("ctmp","drmlog",Q))};g.p(D5Y,g.h);g.S=D5Y.prototype;g.S.JP=function(){return!!this.YA}; g.S.KQ=function(){return this.B}; g.S.handleError=function(Q){var z=this;kX_(this,Q);if((Q.errorCode!=="html5.invalidstate"&&Q.errorCode!=="fmt.unplayable"&&Q.errorCode!=="fmt.unparseable"||!wK9(this,Q.errorCode,Q.details))&&!RP8(this,Q)){if(this.aj.Ze!=="yt"&&ePk(this,Q)&&this.videoData.AK&&(0,g.NV)()/1E3>this.videoData.AK&&this.aj.Ze==="hm"){var H=Object.assign({e:Q.errorCode},Q.details);H.stalesigexp="1";H.expire=this.videoData.AK;H.init=this.videoData.E9/1E3;H.now=(0,g.NV)()/1E3;H.systelapsed=((0,g.NV)()-this.videoData.E9)/1E3; Q=new Oh(Q.errorCode,H,2);this.HI.VN(Q.errorCode,2,"SIGNATURE_EXPIRED",xK(Q.details))}if(oj(Q.severity)){var f;H=(f=this.HI.xv)==null?void 0:f.Z.Z;if(this.aj.V("html5_use_network_error_code_enums"))if(TH6(Q)&&H&&H.isLocked())var b="FORMAT_UNAVAILABLE";else if(this.aj.j||Q.errorCode!=="auth"||Q.details.rc!==429)Q.errorCode==="ump.spsrejectfailure"&&(b="HTML5_SPS_UMP_STATUS_REJECTED");else{b="TOO_MANY_REQUESTS";var L="6"}else TH6(Q)&&H&&H.isLocked()?b="FORMAT_UNAVAILABLE":this.aj.j||Q.errorCode!=="auth"|| Q.details.rc!=="429"?Q.errorCode==="ump.spsrejectfailure"&&(b="HTML5_SPS_UMP_STATUS_REJECTED"):(b="TOO_MANY_REQUESTS",L="6");this.HI.VN(Q.errorCode,Q.severity,b,xK(Q.details),L)}else this.HI.publish("nonfatalerror",Q),f=/^pp/.test(this.videoData.clientPlaybackNonce),this.h7(Q.errorCode,Q.details),f&&Q.errorCode==="manifest.net.connect"&&(Q="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.NV)(),oM(Q,"manifest",function(u){z.j=!0;z.On("pathprobe",u)},function(u){z.h7(u.errorCode, u.details)}))}}; g.S.On=function(Q,z){this.HI.JZ().On(Q,z)}; g.S.h7=function(Q,z){z=xK(z);this.HI.JZ().h7(Q,z)};HBA.prototype.b0=function(Q,z){return(z===void 0?0:z)?{jf:Q?Eg(this,Q):WV,h2:Q?qza(this,Q):WV,KYT:Q?vY9(this,Q):WV,l3v:Q?nYJ(this,Q.videoData):WV,Oy:Q?gY_(this,Q.videoData,Q):WV,fsn:Q?Szp(this,Q):WV,mPv:LaL(this)}:{jf:Q?Eg(this,Q):WV}}; HBA.prototype.V=function(Q){return this.rh.V(Q)};g.p(pD,g.h);pD.prototype.onError=function(Q){if(Q!=="player.fatalexception"||this.provider.V("html5_exception_to_health"))Q==="sabr.fallback"&&(this.encounteredSabrFallback=!0),Q.match(ZwY)?this.networkErrorCount++:this.nonNetworkErrorCount++}; pD.prototype.send=function(){if(!(this.L||this.Z<0)){$l9(this);var Q=g.nD(this.provider)-this.Z,z="PLAYER_PLAYBACK_STATE_UNKNOWN",H=this.playerState.WS;this.playerState.isError()?z=H&&H.errorCode==="auth"?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.w(this.playerState,2)?z="PLAYER_PLAYBACK_STATE_ENDED":g.w(this.playerState,64)?z="PLAYER_PLAYBACK_STATE_UNSTARTED":g.w(this.playerState,16)||g.w(this.playerState,32)?z="PLAYER_PLAYBACK_STATE_SEEKING":g.w(this.playerState,1)&&g.w(this.playerState, 4)?z="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.w(this.playerState,1)?z="PLAYER_PLAYBACK_STATE_BUFFERING":g.w(this.playerState,4)?z="PLAYER_PLAYBACK_STATE_PAUSED":g.w(this.playerState,8)&&(z="PLAYER_PLAYBACK_STATE_PLAYING");H=M4B[$m(this.provider.videoData)];a:switch(this.provider.rh.playerCanaryState){case "canary":var f="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":f="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:f="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var b=jDv(this.provider), L=this.B<0?Q:this.B-this.Z;Q=this.provider.rh.YJ+36E5<(0,g.NV)();z={started:this.B>=0,stateAtSend:z,joinLatencySecs:L,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:f,playerCanaryStage:b,isAd:this.provider.videoData.isAd(),liveMode:H,hasDrm:!!g.Zm(this.provider.videoData),isGapless:this.provider.videoData.N,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:L9(this.provider.videoData)};Q||g.y5("html5PlayerHealthEvent",z);this.L=!0;this.dispose()}}; pD.prototype.zv=function(){this.L||this.send();window.removeEventListener("error",this.SK);window.removeEventListener("unhandledrejection",this.SK);g.h.prototype.zv.call(this)}; var ZwY=/\bnet\b/;g.p(xlp,g.h);xlp.prototype.zv=function(){oYp(this);g.h.prototype.zv.call(this)};var JJ6=/[?&]cpn=/;g.p(gT,g.h);gT.prototype.flush=function(){var Q={};this.B&&(Q.pe=this.B);this.Z.length>0&&(Q.pt=this.Z.join("."));this.Z=[];return Q}; gT.prototype.stop=function(){var Q=this,z,H,f;return g.B(function(b){if(b.Z==1)return g.$v(b,2),g.Y(b,(z=Q.D)==null?void 0:z.stop(),4);if(b.Z!=2)return(H=b.B)&&Q.logTrace(H),g.Fa(b,0);f=g.xv(b);Q.B=B9u(f.message);g.Gu(b)})}; gT.prototype.logTrace=function(Q){this.encoder.reset();this.encoder.add(1);this.encoder.add(Q.resources.length);for(var z=g.n(Q.resources),H=z.next();!H.done;H=z.next()){H=H.value.replace("https://www.youtube.com/s/","");this.encoder.add(H.length);for(var f=0;f=0?Q:g.nD(this.provider),["PL","B","S"].indexOf(this.oy)>-1&&(!g.Ys(this.Z)||Q>=this.S+30)&&(g.$P(this,Q,"vps",[this.oy]),this.S=Q),!g.Ys(this.Z))){this.sequenceNumber===7E3&&g.PT(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){Fj(this,Q);var z=this.provider.HI.yn();z=g.n(z);for(var H=z.next();!H.done;H=z.next())H=H.value,this.On(H.key,H.value);z=Q;H=this.provider.HI.RR();var f=H.droppedVideoFrames||0,b=H.totalVideoFrames|| 0,L=f-this.Fs,u=b&&!this.RZ;f>H.totalVideoFrames||L>5E3?wW9(this,"html5.badframedropcount","df."+f+";tf."+H.totalVideoFrames):(L>0||u)&&g.$P(this,z,"df",[L]);this.Fs=f;this.RZ=b;this.U>0&&(g.$P(this,Q,"glf",[this.U]),this.U=0);zW.isActive()&&(Q=zW.SO(),Object.keys(Q).length>0&&this.On("profile",Q));this.KH&&xP(this,"lwnmow");this.provider.rh.vz()&&this.provider.V("html5_record_now")&&this.On("now",{wt:(0,g.NV)()});Q={};this.provider.videoData.B&&(Q.fmt=this.provider.videoData.B.itag,(z=this.provider.videoData.D)&& z.itag!==Q.fmt&&(Q.afmt=z.itag));Q.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(Q.adcpn=this.adCpn);this.Ze&&(Q.addocid=this.Ze);this.contentCpn&&(Q.ccpn=this.contentCpn);this.L3&&(Q.cdocid=this.L3);this.provider.videoData.cotn&&(Q.cotn=this.provider.videoData.cotn);Q.el=P7(this.provider.videoData);Q.content_v=UC(this.provider.videoData);Q.ns=this.provider.rh.Ze;Q.fexp=I$A(this.provider.rh.experiments).toString();Q.cl=(733956867).toString();(z=this.provider.videoData.adFormat||this.adFormat)&& (Q.adformat=z);(z=$m(this.provider.videoData))&&(Q.live=z);this.provider.videoData.w7()&&(Q.drm=1,this.provider.videoData.S&&(Q.drm_system=uPJ[this.provider.videoData.S.flavor]||0),this.provider.videoData.gS&&(Q.drm_product=this.provider.videoData.gS));yC()&&this.provider.videoData.j&&(Q.ctt=this.provider.videoData.j,Q.cttype=this.provider.videoData.ZK,this.provider.videoData.mdxEnvironment&&(Q.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(Q.dai= this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.Db&&(Q.dai_fallback="1")):this.provider.videoData.Tq?Q.dai="cs":this.provider.videoData.CD&&(Q.dai="disabled");Q.seq=this.sequenceNumber++;if(this.provider.videoData.NI){if(z=this.provider.videoData.NI,Q&&z)for(z.ns==="3pp"&&(Q.ns="3pp"),this.zx.has(z.ns)&&xP(this,"hbps"),z.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=z.shbpslc),this.provider.rh.experiments.Nc("html5_use_server_qoe_el_value")&&this.WI.delete("el"), H=g.n(Object.keys(z)),f=H.next();!f.done;f=H.next())f=f.value,this.WI.has(f)||(Q[f]=z[f])}else Q.event="streamingstats",Q.docid=this.provider.videoData.videoId,Q.ei=this.provider.videoData.eventId;this.isEmbargoed&&(Q.embargoed="1");Object.assign(Q,this.provider.rh.Z);if(z=Q.seq)z={cpn:this.provider.videoData.clientPlaybackNonce,sequenceNumber:+z,serializedWatchEndpointLoggingContext:this.provider.videoData.Fq},this.serializedHouseBrandPlayerServiceLoggingContext&&(z.serializedHouseBrandPlayerServiceLoggingContext= Z3(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0),this.provider.videoData.playerResponseCpn&&(z.playerResponseCpn=this.provider.videoData.playerResponseCpn),Gb.length&&(z.decoderInfo=Gb),this.provider.HI.t$()&&(z.transitionStitchType=4,this.De&&(z.timestampOffsetMsecs=this.De)),this.remoteControlMode&&(z.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(z.remoteConnectedDevices=this.remoteConnectedDevices),z=g.kS(z,nyA),z=g.nr(z,4),this.Z.qclc=[z];Q=g.Ve("//"+ this.provider.rh.kc+"/api/stats/qoe",Q);H=z="";f=g.n(Object.keys(this.Z));for(b=f.next();!b.done;b=f.next())b=b.value,this.Z[b]===null?g.PT(new g.wD("Stats report key has invalid value",b)):(b="&"+b+"="+this.Z[b].join(","),b.length>100?H+=b:z+=b);Kav(this,Q+z,H.replace(/ /g,"%20"))}this.Z={}}}; g.S.l3=function(Q){this.KH=Q}; g.S.mV=function(){if(this.provider.videoData.S){var Q=this.provider.videoData.S;xP(this,"eme-"+(Q.keySystemAccess?"final":AQ(Q)?"ms":sm(Q)?"ytfp":rS(Q)?"safarifp":"nonfinal"))}}; g.S.vE=function(Q){var z=g.nD(this.provider);if(!this.provider.rh.experiments.Nc("html5_refactor_sabr_video_format_selection_logging")||Q.Z.id!==this.En){var H=[Q.Z.id,Q.B,this.En,Q.reason];Q.token&&H.push(Q.token);g.$P(this,z,"vfs",H);this.En=Q.Z.id;H=this.provider.HI.getPlayerSize();if(H.width>0&&H.height>0){H=[Math.round(H.width),Math.round(H.height)];var f=g.dm();f>1&&H.push(f);g.$P(this,z,"view",H)}this.rT||(this.provider.rh.vz()&&xP(this,"rqs2"),this.provider.videoData.Z&&vM(this.provider.videoData.Z)&& (this.Z.preload=["1"]));this.L=this.rT=!0}Q.reason==="m"&&++this.Bc===100&&kca(this,2);g.$P(this,z,"vps",[this.oy]);this.reportStats(z)}; g.S.jK=function(Q){var z=g.nD(this.provider);if(this.provider.rh.experiments.Nc("html5_refactor_sabr_audio_format_selection_logging")){z=Q.Z;var H=[z.audio&&z.video?z.Q7?z.Q7:"":z.id];z.Ii&&z.Ii.id&&H.push(z.Ii.id);z=H.join(";");z!==this.Y&&(H=[z,this.Y,Q.reason],Q.token&&H.push(Q.token),g.$P(this,g.nD(this.provider),"afs",H),this.Y=z)}else Q.Z.id!==this.Y&&(H=[Q.Z.id,this.Y,Q.reason],Q.token&&H.push(Q.token),g.$P(this,z,"afs",H),this.Y=Q.Z.id)}; g.S.Ct=H_(59);g.S.C4=function(Q){this.isEmbargoed=Q}; g.S.Zs=H_(36);g.S.CA=H_(42);g.S.onPlaybackRateChange=function(Q){var z=g.nD(this.provider);Q&&Q!==this.Vs&&(g.$P(this,z,"rate",[Q]),this.Vs=Q);this.reportStats(z)}; g.S.tT=H_(30);g.S.getPlayerState=function(Q){if(g.w(Q,128))return"ER";if(g.w(Q,2048))return"B";if(g.w(Q,512))return"SU";if(g.w(Q,16)||g.w(Q,32))return"S";if(Q.isOrWillBePlaying()&&g.w(Q,64))return"B";var z=GHs[vR(Q)];g.OV(this.provider.rh)&&z==="B"&&this.provider.HI.getVisibilityState()===3&&(z="SU");z==="B"&&g.w(Q,4)&&(z="PB");return z}; g.S.zv=function(){g.h.prototype.zv.call(this);g.Gr(this.j);g.Gr(this.Wz)}; g.S.T8=function(Q){this.isOffline=Q;g.$P(this,g.nD(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.S.On=function(Q,z,H){var f=this.Z.ctmp||[],b=this.d4.indexOf(Q)!==-1;b||this.d4.push(Q);if(!H||!b){var L=typeof z!=="string"?xK(z):z;L=T9A(L);if(!H&&!/^t[.]/.test(L)){var u=g.nD(this.provider)*1E3;L="t."+u.toFixed()+";"+L}f.push(Q+":"+L);this.logger.debug(function(){return"ctmp "+Q+" "+L}); this.Z.ctmp=f;V8Z(this);return u}}; g.S.o$=function(Q,z,H){this.D={Qze:Number(this.On("glrem",{nst:Q.toFixed(),rem:z.toFixed(),ca:+H})),Gh:Q,jzI:z,isAd:H}}; g.S.Tp=function(Q,z,H){g.$P(this,g.nD(this.provider),"ad_playback",[Q,z,H])}; g.S.rA=function(Q,z){var H=g.nD(this.provider)*1E3,f=this.Z.daism||[];f.push("t."+H.toFixed(0)+";smw."+(Q*1E3).toFixed(0)+";smo."+(z*1E3).toFixed(0));this.Z.daism=f}; g.S.resume=function(){var Q=this;this.provider.rh.vz()&&this.On("ssap",{qoesus:"0",vid:this.provider.videoData.videoId});isNaN(this.j)?dl_(this):this.j=g.gR(function(){Q.reportStats()},1E4)}; var ne={},GHs=(ne[5]="N",ne[-1]="N",ne[3]="B",ne[0]="EN",ne[2]="PA",ne[1]="PL",ne[-1E3]="ER",ne[1E3]="N",ne),Gb=[];R3u.prototype.EF=function(){return this.Z}; R3u.prototype.update=function(){if(this.Y){var Q=this.provider.HI.Tt(this.provider.videoData.clientPlaybackNonce)||0,z=g.nD(this.provider);Q>=this.provider.HI.getDuration()-.1&&(this.previouslyEnded=!0);if(Q!==this.Z||HDa(this,Q,z)){var H;if(!(H=Qz-this.sJ+2||HDa(this,Q,z))){H=this.provider.HI.getVolume();var f=H!==this.U,b=this.provider.HI.isMuted()?1:0;b!==this.N?(this.N=b,H=!0):(!f||this.D>=0||(this.U=H,this.D=z),H=z-this.D,this.D>=0&&H>2?(this.D=-1,H=!0):H=!1)}H&&(NJ(this),this.L= Q);this.sJ=z;this.Z=Q}}};f4v.prototype.send=function(Q){var z=this;if(!this.uT){var H=LRv(this),f=g.Ve(this.uri,H);this.rh.V("vss_through_gel_double")&&ujL(f);this.L3&&!this.rh.V("html5_simplify_pings")?qgA(this,f):bDJ(this,Q).then(function(b){z.L3&&(b=b||{},b.method="POST",b.postParams={atr:z.attestationResponse});Yzk(f,b,{token:z.Ze,Ln:z.gh,mdxEnvironment:z.mdxEnvironment},z.rh,Q,z.De,z.isFinal&&z.YJ||z.yl||z.L&&z.sj)}); this.uT=!0}}; f4v.prototype.B=function(Q){Q===void 0&&(Q=NaN);return Number(Q.toFixed(3)).toString()}; var gL={},vP9=(gL.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,gL.LIVING_ROOM_APP_MODE_MAIN=1,gL.LIVING_ROOM_APP_MODE_KIDS=2,gL.LIVING_ROOM_APP_MODE_MUSIC=3,gL.LIVING_ROOM_APP_MODE_UNPLUGGED=4,gL.LIVING_ROOM_APP_MODE_GAMING=5,gL),Zf={},XLZ=(Zf.EMBEDDED_PLAYER_MODE_UNKNOWN=0,Zf.EMBEDDED_PLAYER_MODE_DEFAULT=1,Zf.EMBEDDED_PLAYER_MODE_PFP=2,Zf.EMBEDDED_PLAYER_MODE_PFL=3,Zf);g.p(Ad,g.h);g.S=Ad.prototype;g.S.Ex=function(){this.Z.update();ZDp(this)&&(CHa(this),trJ(this),this.Op())}; g.S.zv=function(){g.h.prototype.zv.call(this);sg(this);QyY(this.Z)}; g.S.TL=function(){return LRv(YP(this,"playback"))}; g.S.Op=function(){this.provider.videoData.Y.eventLabel=P7(this.provider.videoData);this.provider.videoData.Y.playerStyle=this.provider.rh.playerStyle;this.provider.videoData.J5&&(this.provider.videoData.Y.feature="pyv");this.provider.videoData.Y.vid=this.provider.videoData.videoId;var Q=this.provider.videoData.Y;var z=this.provider.videoData;z=z.isAd()||!!z.J5;Q.isAd=z}; g.S.kV=function(Q){var z=YP(this,"engage");z.wh=Q;return Sgv(z,ODL(this.provider))};xJu.prototype.isEmpty=function(){return this.endTime===this.startTime};PL.prototype.V=function(Q){return this.rh.V(Q)}; PL.prototype.getCurrentTime=function(Q){if(this.V("html5_ssap_current_time_for_logging_refactor")){var z=this.HI.t$();if(z&&(Q=Q||z.l$()))return LJ(z,Q)}else if(g.mI(this.videoData)){var H=this.HI.t$();if(H)return Q=this.HI.getCurrentTime(),H=(((z=BN(H,Q*1E3))==null?void 0:z.hB)||0)/1E3,Q-H}return this.HI.getCurrentTime()}; PL.prototype.yN=function(Q){if(this.V("html5_ssap_current_time_for_logging_refactor")){var z=this.HI.t$();if(z&&(Q=Q||z.l$()))return LJ(z,Q)}else if(g.mI(this.videoData)){var H=this.HI.t$();if(H)return Q=this.HI.yN(),H=(((z=BN(H,Q*1E3))==null?void 0:z.hB)||0)/1E3,Q-H}return this.HI.yN()}; var oP9={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.p(g.ay,g.h);g.S=g.ay.prototype;g.S.Ex=function(){if(this.provider.videoData.enableServerStitchedDai&&this.tN){var Q;(Q=this.L.get(this.tN))==null||Q.Ex()}else this.Z&&this.Z.Ex()}; g.S.C4=function(Q){this.qoe&&this.qoe.C4(Q)}; g.S.Zs=H_(35);g.S.CA=H_(41);g.S.rA=function(Q,z){this.qoe&&this.qoe.rA(Q,z)}; g.S.sN=function(){if(this.provider.videoData.enableServerStitchedDai&&this.tN){var Q;(Q=this.L.get(this.tN))!=null&&NJ(Q.Z)}else this.Z&&NJ(this.Z.Z)}; g.S.h7=function(Q,z){this.qoe&&wW9(this.qoe,Q,z);if(this.B)this.B.onError(Q)}; g.S.vE=function(Q){this.qoe&&this.qoe.vE(Q)}; g.S.jK=function(Q){this.qoe&&this.qoe.jK(Q)}; g.S.onPlaybackRateChange=function(Q){if(this.qoe)this.qoe.onPlaybackRateChange(Q);this.Z&&NJ(this.Z.Z)}; g.S.Ct=H_(58);g.S.On=function(Q,z,H){this.qoe&&this.qoe.On(Q,z,H)}; g.S.o$=function(Q,z,H){this.qoe&&this.qoe.o$(Q,z,H)}; g.S.yT=function(Q){var z;(z=this.qoe)==null||z.yT(Q)}; g.S.I8=function(Q){var z;(z=this.qoe)==null||z.I8(Q)}; g.S.l3=function(Q){this.qoe&&this.qoe.l3(Q)}; g.S.Tp=function(Q,z,H){this.qoe&&this.qoe.Tp(Q,z,H)}; g.S.tT=H_(29);g.S.nf=function(){if(this.qoe)return this.qoe.nf()}; g.S.TL=function(){if(this.provider.videoData.enableServerStitchedDai&&this.tN){var Q,z;return(z=(Q=this.L.get(this.tN))==null?void 0:Q.TL())!=null?z:{}}return this.Z?this.Z.TL():{}}; g.S.T0=function(){var Q;return(Q=this.qoe)==null?void 0:Q.T0()}; g.S.BR=function(Q,z){var H;(H=this.qoe)==null||H.BR(Q,z)}; g.S.kV=function(Q){return this.Z?this.Z.kV(Q):function(){}}; g.S.Op=function(){this.Z&&this.Z.Op()}; g.S.getVideoData=function(){return this.provider.videoData}; g.S.resume=function(){this.qoe&&this.qoe.resume()};g.p(cL,g.h); cL.prototype.nB=function(Q,z,H){if(this.Z.has(Q)){var f=this.Z.get(Q);if(z.videoId&&!Jdu(f))this.B.On("ssap",{rlc:Q}),UJk(this,Q);else return}if(!this.Z.has(Q)){f=new PL(z,this.rh,this.HI);var b=Math.round(g.nD(this.B.provider)*1E3);f=new g.ay(f,b);Jdu(f)||this.B.On("nqv",{vv:z.videoId});b=this.B.getVideoData();this.Z.set(Q,f);if(f.qoe){var L=f.qoe,u=b.videoId||"";L.contentCpn=b.clientPlaybackNonce;L.L3=u}NTn(f);H===2&&(this.rh.V("html5_log_ad_playback_docid")?(H=this.B,H.qoe&&(H=H.qoe,f=z.UY||"", b=z.breakType||0,z=z.videoId||"",L=this.rh.Ze||"yt",g.$P(H,g.nD(H.provider),"ad_playback",[Q,f,b,z,L]))):this.B.Tp(Q,z.UY||"",z.breakType||0))}}; cL.prototype.qn=function(Q,z,H,f,b,L,u,X){if(Q!==z){var v=this.JZ(Q),y=this.JZ(z),q,M=Q===((q=v.getVideoData())==null?void 0:q.clientPlaybackNonce),C;q=z===((C=y.getVideoData())==null?void 0:C.clientPlaybackNonce);var t;C=M?((t=v.getVideoData())==null?void 0:t.videoId)||"":"nvd";var E;t=q?((E=y.getVideoData())==null?void 0:E.videoId)||"":"nvd";M&&(v=v.qoe)!=null&&(oy(v,4,L?4:b?2:0,z,t,H),v.reportStats());q&&(Ug(y),(z=y.qoe)!=null&&(oy(z,4,L?5:b?3:1,Q,C,f),z.reportStats()),Yg9(y,new g.Cp(u,y.oy)), I4Z(y));X&&UJk(this,Q)}}; cL.prototype.JZ=function(Q){Q=Q||this.tN;return this.Z.get(Q)||this.B};g.p(g.iH,g.h);g.S=g.iH.prototype; g.S.UZ=function(Q,z){this.sync();z&&this.Z.array.length>=2E3&&this.Rc("captions",1E4);z=this.Z;if(Q.length>1&&Q.length>z.array.length)z.array=z.array.concat(Q),z.array.sort(z.Z);else for(var H=g.n(Q),f=H.next();!f.done;f=H.next())f=f.value,!z.array.length||z.Z(f,z.array[z.array.length-1])>0?z.array.push(f):g.yi(z.array,f,z.Z);Q=g.n(Q);for(z=Q.next();!z.done;z=Q.next())z=z.value,z.namespace==="ad"&&this.D("ssap",{acrsid:z.getId(),acrsst:z.start,acrset:z.end,acrscpt:z.playerType});this.L=NaN;this.sync()}; g.S.NG=function(Q){Q.length>1E4&&g.PT(new g.wD("Over 10k cueRanges removal occurs with a sample: ",Q[0]));if(!this.Sm()){for(var z=g.n(Q),H=z.next();!H.done;H=z.next())(H=H.value)&&H.namespace==="ad"&&this.D("ssap",{rcrid:H.getId(),rcst:H.start,rcet:H.end,rcpt:H.playerType});var f=new Set(Q);this.B=this.B.filter(function(b){return!f.has(b)}); VrZ(this.Z,f);this.sync()}}; g.S.Rc=function(Q,z){var H=(isNaN(this.L)?g.w(this.j(),2)?0x8000000000000:this.U()*1E3:this.L)-z;z=this.o6().filter(function(f){return f.namespace===Q&&f.endthis.Z,L=g.w(H,8)&&g.w(H,16),u=this.HI.Kq().isBackground()||H.isSuspended();Tb(this,this.rT,L&&!u,b,"qoe.slowseek",function(){},"timeout"); var X=isFinite(this.Z);X=L&&X&&ahv(z,this.Z);var v=!f||Math.abs(f-this.Z)>10,y=this.rh.V("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),q=f===0&&this.B&&[11,10].includes(this.B);Tb(this,this.gh,X&&v&&!u&&(!y||!q),b,"qoe.slowseek",function(){z.seekTo(Q.Z)},"set_cmt"); v=X&&SP(z.Ux(),this.Z);var M=this.HI.xv;X=!M||M.qm();var C=function(){z.seekTo(Q.Z+.001)}; Tb(this,this.En,v&&X&&!u,b,"qoe.slowseek",C,"jiggle_cmt");X=function(){return Q.HI.lL()}; Tb(this,this.uT,v&&!u,b,"qoe.slowseek",X,"new_elem");v=Xn(H);y=H.isBuffering();var t=z.Ux(),E=uZ(t,f),G=E>=0&&t.end(E)>f+5,x=v&&y&&G;q=this.HI.getVideoData();Tb(this,this.iT,f<.002&&this.Z<.002&&L&&g.OV(this.rh)&&g.aq(q)&&!u,b,"qoe.slowseek",X,"slow_seek_shorts");Tb(this,this.Ze,q.fq()&&L&&!u&&!q.L3,b,"qoe.slowseek",X,"slow_seek_gapless_shorts");Tb(this,this.L3,x&&!u,v&&!y,"qoe.longrebuffer",C,"jiggle_cmt");Tb(this,this.De,x&&!u,v&&!y,"qoe.longrebuffer",X,"new_elem_nnr");if(M){var J=M.getCurrentTime(); L=z.WP();L=xZ9(L,J);L=!M.isSeeking()&&f===L;Tb(this,this.EY,v&&y&&L&&!u,v&&!y&&!L,"qoe.longrebuffer",function(){z.seekTo(J)},"seek_to_loader")}L={}; C=uZ(t,Math.max(f-3.5,0));x=C>=0&&f>t.end(C)-1.1;var I=C>=0&&C+1=0&&x&&I<11;L.close2edge=x;L.gapsize=I;L.buflen=t.length;this.B&&(L.seekSour=this.B);if(C=this.HI.t$()){x=C.l$();I=x!==BN(C,f*1E3).clipId;var r=g.qf(this.rh.experiments,"html5_ssap_skip_seeking_offset_ms"),U=(sJ(C,x)+r)/1E3;Tb(this,this.f3,I&&v&&y&&!u,v&&!y,"qoe.longrebuffer",function(){z.seekTo(U)},"ssap_clip_not_match")}Tb(this,this.yl,v&&y&&!u,v&&!y,"qoe.longrebuffer", function(){},"timeout",L); L=H.isSuspended();L=this.HI.vG()&&!L;Tb(this,this.Y,L,!L,"qoe.start15s",function(){Q.HI.PS("ad")},"ads_preroll_timeout"); C=f-this.D<.5;var D;L=!((D=this.HI.t$())==null||!D.f4());I=(x=q.isAd()||L&&this.rh.experiments.Nc("html5_ssap_skip_slow_ad"))&&v&&!y&&C;D=function(){var T=Q.HI,k=g.mI(T.videoData)&&T.OY,bL=T.sV.getVideoData();(bL&&T.videoData.isAd()&&bL.Tq===T.getVideoData().Tq||!T.videoData.Uj)&&!k?T.VN("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+T.videoData.videoId):v7(T.videoData,"html5_ssap_skip_slow_ad")&&k&&T.OY.f4()&&(T.h7(new Oh("ssap.transitionfailure",{cpn:BN(T.OY,T.yN()).clipId,pcpn:T.OY.l$(), cmt:T.yN()})),T=T.OY,k=T.playback.yN(),(k=PXA(T,k))&&AVu(T,k.AT()/1E3))}; Tb(this,this.ZJ,I,!I,"ad.rebuftimeout",D,"skip_slow_ad");C=x&&y&&SP(z.Ux(),f+5)&&C;Tb(this,this.yE,C&&!u,!C,"ad.rebuftimeout",D,"skip_slow_ad_buf");D=H.isOrWillBePlaying()&&g.w(H,64)&&!u;Tb(this,this.KH,D,b,"qoe.start15s",function(){},"timeout"); D=!!M&&!M.vI&&H.isOrWillBePlaying();Tb(this,this.jm,D,b,"qoe.start15s",X,"newElemMse");D=yA(t,0);C=g.w(H,16)||g.w(H,32);C=!u&&H.isOrWillBePlaying()&&y&&!C&&(g.w(H,64)||f===0)&&D>5;Tb(this,this.WI,g.aq(q)&&C,v&&!y,"qoe.longrebuffer",function(){Q.HI.a4()},"reset_media_source"); Tb(this,this.C3,g.aq(q)&&C,v&&!y,"qoe.longrebuffer",X,"reset_media_element");this.D===0&&(this.j=f);C=y&&this.Z===0&&f>1&&f===this.j;Tb(this,this.mq,g.aq(q)&&C,v&&!y,"qoe.slowseek",function(){z.seekTo(0)},"reseek_after_time_jump"); u=H.isOrWillBePlaying()&&!u;G=this.HI.qj()-f<6&&!G&&this.HI.Ll();Tb(this,this.N,q.fq()&&u&&y&&G,v&&!y,"qoe.longrebuffer",function(){Q.HI.lL(!1,!0)},"handoff_end_long_buffer_reload"); M=(M==null?void 0:Kjk(M))||NaN;M=t.length>1||!isNaN(M)&&M-.1<=f;Tb(this,this.U,H7(q)&&u&&y&&M,v&&!y,"qoe.longrebuffer",X,"gapless_slice_append_stuck");M=E>=0&&t.end(E)>=2;u=H7(q)&&this.HI.FH&&M&&!q.L3&&u&&(y||g.w(H,8)&&g.w(H,16));Tb(this,this.wh,u,b,"qoe.start15s",X,"gapless_slow_start");H=!!(L&&D>5&&H.isPlaying()&&f<.1);Tb(this,this.Xa,H,f>.5&&v,"qoe.longrebuffer",X,"ssap_stuck_in_ad_beginning");this.D=f;this.S.start()}}; kP.prototype.h7=function(Q,z,H){z=this.TL(z);z.wn=H;z.wdup=this.L[Q]?"1":"0";this.HI.h7(new Oh(Q,z));this.L[Q]=!0}; kP.prototype.TL=function(Q){Q=Object.assign(this.HI.TL(!0),Q.TL());this.Z&&(Q.stt=this.Z.toFixed(3));this.HI.getVideoData().isLivePlayback&&(Q.ct=this.HI.getCurrentTime().toFixed(3),Q.to=this.HI.ex().toFixed(3));delete Q.uga;delete Q.euri;delete Q.referrer;delete Q.fexp;delete Q.vm;return Q}; mR.prototype.reset=function(){this.Z=this.B=this.L=this.startTimestamp=0;this.D=!1}; mR.prototype.test=function(Q){if(!this.S||this.B)return!1;if(!Q)return this.reset(),!1;Q=(0,g.NV)();if(!this.startTimestamp)this.startTimestamp=Q,this.L=0;else if(this.L>=this.S)return this.B=Q,!0;this.L+=1;return!1}; mR.prototype.TL=function(){var Q={},z=(0,g.NV)();this.startTimestamp&&(Q.wsd=(z-this.startTimestamp).toFixed());this.B&&(Q.wtd=(z-this.B).toFixed());this.Z&&(Q.wssd=(z-this.Z).toFixed());return Q};g.p(qkc,g.h);g.S=qkc.prototype;g.S.setMediaElement=function(Q){(this.mediaElement=Q)?(this.mediaElement&&(this.S||this.D||!this.mediaElement.Hg()||this.seekTo(.01,{lr:"seektimeline_setupMediaElement"})),er(this)):Ry(this)}; g.S.getCurrentTime=function(){if(lH(this.HI)){if(!isNaN(this.B))return this.B}else if(!isNaN(this.B)&&isFinite(this.B))return this.B;return this.mediaElement&&xpA(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.D||0}; g.S.R_=function(){return this.C3}; g.S.yN=function(){return this.getCurrentTime()-this.ex()}; g.S.yf=function(){return this.Z?this.Z.yf():Infinity}; g.S.isAtLiveHead=function(Q){if(!this.Z)return!1;Q===void 0&&(Q=this.getCurrentTime());return VV(this.Z,Q)}; g.S.Vd=function(){return!!this.Z&&this.Z.Vd()}; g.S.seekTo=function(Q,z){var H=z===void 0?{}:z;z=H.RT===void 0?!1:H.RT;var f=H.GA===void 0?0:H.GA;var b=H.wd===void 0?!1:H.wd;var L=H.aL===void 0?0:H.aL;var u=H.lr===void 0?"":H.lr;var X=H.seekSource===void 0?void 0:H.seekSource;var v=H.F2===void 0?!1:H.F2;var y=H.qt===void 0?!1:H.qt;H=H.Rr===void 0?!1:H.Rr;v&&(Q+=this.ex());L9(this.videoData)&&this.V("html5_sabr_enable_utc_seek_requests")&&X===29&&(this.C3=void 0);v=Q=this.jA())||!g.JM(this.videoData),q||(G={st:G,mst:this.jA()},this.Z&&this.V("html5_high_res_seek_logging")&&(G.ht=this.Z.yf(),G.adft=bLZ(this.Z)),this.HI.On("seeknotallowed",G)),G=q));if(!G)return this.L&&(this.L=null,jiY(this)),g.Zl(this.getCurrentTime());G=.005;y&&this.V("html5_sabr_seek_no_shift_tolerance")&&(G=0);if(Math.abs(Q-this.B)<=G&&this.wh)return this.S;u&&(G=Q,(this.rh.vz()||this.V("html5_log_seek_reasons"))&& this.HI.On("seekreason",{reason:u,tgt:G}));X&&(this.De.B=X);this.wh&&Ry(this);this.S||(this.S=new k6);Q&&!isFinite(Q)&&E_Y(this,!1);(u=H||v)||(u=Q,u=!(this.videoData.isLivePlayback&&this.videoData.L&&!this.videoData.L.Z&&!(this.mediaElement&&this.mediaElement.OG()>0&&eP(this.mediaElement)>0)||MY(this.videoData)&&this.jx()===this.jA(!1)?0:isFinite(u)||!MY(this.videoData)));u||(Q=zq(this,Q,b));Q&&!isFinite(Q)&&E_Y(this,!1);this.D=Q;this.En=L;this.B=Q;this.j=0;this.Z&&(b=this.Z,L=Q,Llv(b,L,!1),uB8(b, L));b=this.HI;L=Q;u={RT:z,seekSource:X};b.Sx.D=L;H=b.mQ;H.mediaTime=L;H.Z=!0;u.RT&&b.E0(u);u=L>b.videoData.endSeconds&&L>b.videoData.limitedPlaybackDurationInSeconds;b.NF&&u&&isFinite(L)&&fYa(b);Lz.start&&fYa(this.HI);return this.S}; g.S.jA=function(Q){if(!this.videoData.isLivePlayback)return A4L(this.HI);var z;return Qw(this.videoData)&&((z=this.mediaElement)==null?0:z.isPaused())&&this.videoData.Z?(Q=this.getCurrentTime(),EHa(this.JM(Q)*1E3)+Q):this.V("html5_sabr_parse_live_metadata_playback_boundaries")&&L9(this.videoData)&&this.videoData.Z?Q?this.videoData.Z.wh||0:this.videoData.Z.eN||0:MY(this.videoData)&&this.videoData.f3&&this.videoData.Z?this.videoData.Z.jA()+this.timestampOffset:this.videoData.L&&this.videoData.L.Z?!Q&& this.Z?this.Z.yf():A4L(this.HI)+this.timestampOffset:this.mediaElement?mW()?EHa(this.mediaElement.Jf().getTime()):eP(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.S.jx=function(){if(g.mI(this.videoData)){var Q=this.HI;g.mI(Q.videoData);var z,H;return(H=(z=Q.OY)==null?void 0:z.jx())!=null?H:Q.videoData.jx()}if(this.V("html5_sabr_parse_live_metadata_playback_boundaries")&&L9(this.videoData)){var f;return((f=this.videoData.Z)==null?void 0:f.W0)||0}z=this.videoData?this.videoData.jx()+this.timestampOffset:this.timestampOffset;return Qw(this.videoData)&&this.videoData.Z&&(H=Number((Q=this.videoData.progressBarStartPosition)==null?void 0:Q.utcTimeMillis)/1E3,Q= this.getCurrentTime(),Q=this.JM(Q)-Q,!isNaN(H)&&!isNaN(Q))?Math.max(z,H-Q):z}; g.S.B4=function(){this.S||this.seekTo(this.D,{lr:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.S.bJ=function(){return this.wh&&!isFinite(this.B)}; g.S.zv=function(){p9L(this,null);this.De.dispose();g.h.prototype.zv.call(this)}; g.S.TL=function(){var Q={};this.xv&&Object.assign(Q,this.xv.TL());this.mediaElement&&Object.assign(Q,this.mediaElement.TL());return Q}; g.S.yZ=function(Q){this.timestampOffset=Q}; g.S.getStreamTimeOffset=function(){return MY(this.videoData)?0:this.videoData.Z?this.videoData.Z.getStreamTimeOffset():0}; g.S.ex=function(){return this.timestampOffset}; g.S.JM=function(Q){return this.videoData&&this.videoData.Z?this.videoData.Z.JM(Q-this.timestampOffset):NaN}; g.S.F7=function(){if(!this.mediaElement)return 0;if(NY(this.videoData)){var Q=this.mediaElement,z=Q.Ux();Q=(vs(z)>0&&Q.getDuration()?z.end(z.length-1):0)+this.timestampOffset-this.jx();z=this.jA()-this.jx();return Math.max(0,Math.min(1,Q/z))}return this.mediaElement.F7()}; g.S.e9=function(Q){this.Y&&(this.Y.Z=Q)}; g.S.iU=function(Q,z){this.HI.On("requestUtcSeek",{time:Q});L9(this.videoData)&&this.V("html5_sabr_enable_utc_seek_requests")&&(this.C3=Q);var H;(H=this.xv)==null||H.iU(Q);z&&(this.L3=z)}; g.S.fl=function(Q){L9(this.videoData)&&this.V("html5_sabr_enable_utc_seek_requests")&&(this.C3=void 0);if(this.L3)this.HI.On("utcSeekingFallback",{source:"streamTime",timeSeconds:this.L3}),this.HI.seekTo(this.L3,{lr:"utcSeekingFallback_streamTime"}),this.L3=0;else{var z=this.getCurrentTime();isNaN(z)||(Q=this.JM(z)-Q,z-=Q,this.HI.On("utcSeekingFallback",{source:"estimate",timeSeconds:z}),this.HI.seekTo(z,{lr:"utcSeekingFallback_estimate"}))}}; g.S.J1=function(){this.L3=0}; g.S.V=function(Q){return this.rh&&this.rh.V(Q)};g.p(H9,g.h);H9.prototype.start=function(){this.B.start()}; H9.prototype.stop=function(){this.B.stop()}; H9.prototype.clear=function(){for(var Q=g.n(this.Z.values()),z=Q.next();!z.done;z=Q.next())z.value.clear()}; H9.prototype.sample=function(){for(var Q=g.n(this.L),z=Q.next();!z.done;z=Q.next()){var H=g.n(z.value);z=H.next().value;H=H.next().value;this.Z.has(z)||this.Z.set(z,new AzZ($os.has(z)));this.Z.get(z).update(H())}this.B.start()}; var $os=new Set(["networkactivity"]);AzZ.prototype.update=function(Q){this.Z?(this.buffer.add(Q-this.rk||0),this.rk=Q):this.buffer.add(Q)}; AzZ.prototype.clear=function(){this.buffer.clear();this.rk=0};LL.prototype.Dv=function(){return this.started}; LL.prototype.start=function(){this.started=!0}; LL.prototype.reset=function(){this.finished=this.started=!1};var PtZ=!1;g.p(g.v9,g.Xp);g.S=g.v9.prototype;g.S.zv=function(){this.logger.debug("dispose");g.Gr(this.Jo);Wra(this.Ox);this.visibility.unsubscribe("visibilitystatechange",this.Ox);kqp(this);Mp(this);g.Wz.xF(this.Lb);this.MO();this.ZY=null;g.S5(this.videoData);g.S5(this.yF);g.S5(this.ph);g.S5(this.XX);g.Xx(this.H5T);this.NF=null;g.Xp.prototype.zv.call(this)}; g.S.Tp=function(Q,z,H,f,b){if(this.rh.V("html5_log_ad_playback_docid")){var L=this.JZ();if(L.qoe){L=L.qoe;var u=this.rh.Ze||"yt";g.$P(L,g.nD(L.provider),"ad_playback",[Q,z,H,b,u])}}else this.JZ().Tp(Q,z,H);this.V("html5_log_media_perf_info")&&this.On("adloudness",{ld:f.toFixed(3),cpn:Q})}; g.S.HC=function(){var Q;return(Q=this.xv)==null?void 0:Q.HC()}; g.S.Ow=function(){var Q;return(Q=this.xv)==null?void 0:Q.Ow()}; g.S.wq=function(){var Q;return(Q=this.xv)==null?void 0:Q.wq()}; g.S.A4=function(){var Q;return(Q=this.xv)==null?void 0:Q.A4()}; g.S.w7=function(){return this.videoData.w7()}; g.S.Uq=function(){return this.V("html5_not_reset_media_source")&&!this.w7()&&!this.videoData.isLivePlayback&&g.aq(this.videoData)&&!this.rh.supportsGaplessShorts()}; g.S.Sv=function(){if(this.videoData.N){var Q=this.videoData,z;if(!(z=this.videoData.R$)){var H;z=(H=this.sV.X$())==null?void 0:H.HC()}Q.R$=z;Q=this.videoData;if(!(z=this.videoData.WR)){var f;z=(f=this.sV.X$())==null?void 0:f.Ow()}Q.WR=z}if(LiY(this.videoData)||!Rq(this.videoData))f=this.videoData.errorDetail,this.VN(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),f,f,this.videoData.Jj||void 0);this.V("html5_generate_content_po_token")&&this.W2();this.V("html5_enable_d6de4")&& this.WO();if(this.V("html5_ssap_cleanup_player_switch_ad_player")||this.V("html5_ssap_cleanup_ad_player_on_new_data"))if(f=this.sV.Iq())this.xz=f.clientPlaybackNonce}; g.S.JJ=function(){return this.PE}; g.S.nB=function(){!this.wk||this.wk.Sm();this.wk=new g.ay(new PL(this.videoData,this.rh,this));this.PE=new cL(this.rh,this,this.wk)}; g.S.getVideoData=function(){return this.videoData}; g.S.C=function(){return this.rh}; g.S.b0=function(Q){return this.i7.b0(this.ZY,Q===void 0?!1:Q)}; g.S.JZ=function(Q){if(Q)a:{for(var z=this.PE,H=g.n(z.Z.values()),f=H.next();!f.done;f=H.next())if(f=f.value,f.getVideoData().videoId===Q){Q=f;break a}Q=z.B}else Q=this.PE.JZ();return Q}; g.S.Kq=function(){return this.visibility}; g.S.e5=function(){return this.mediaElement&&this.mediaElement.FK()?this.mediaElement.ai():null}; g.S.aB=function(){return this.mediaElement}; g.S.A3=function(){if(this.V("html5_check_video_data_errors_before_playback_start")&&this.videoData.errorCode)return!1;this.C().j&&this.C().houseBrandUserStatus&&this.On("hbut",{status:this.C().houseBrandUserStatus});if(this.videoData.EZ())return!0;this.VN("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.S.gX=function(Q){(Q=Q===void 0?!1:Q)||g.mI(this.videoData)||Ug(this.JZ());this.aU=Q;!this.A3()||this.sT.Dv()?g.OV(this.rh)&&this.videoData.isLivePlayback&&this.sT.Dv()&&!this.sT.finished&&!this.aU&&this.Pf():(this.sT.start(),Q=this.JZ(),g.nD(Q.provider),Q.qoe&&dl_(Q.qoe),this.Pf())}; g.S.Pf=function(){if(this.videoData.isLoaded()){var Q=this.yF;g.qf(Q.aj.experiments,"html5_player_min_build_cl")>0&&g.qf(Q.aj.experiments,"html5_player_min_build_cl")>733956867&&lpv(Q,"oldplayer");RCY(this)}else this.videoData.yw||this.videoData.h_?this.aU&&g.OV(this.rh)&&this.videoData.isLivePlayback||(this.videoData.yw?DdZ(this.videoData):(Q=this.JZ(),Q.qoe&&(Q=Q.qoe,xP(Q,"protected"),Q.provider.videoData.S?Q.mV():Q.provider.videoData.subscribe("dataloaded",Q.mV,Q)),UdJ(this.videoData))):!this.videoData.loading&& this.Hi&&TIa(this)}; g.S.nj=function(Q){this.J7=Q;this.xv&&(amc(this.xv,new g.fD(Q)),this.On("sdai",{sdsstm:1}))}; g.S.L$=function(Q){this.OY=Q;this.xv&&this.xv.L$(Q)}; g.S.N0=H_(16);g.S.isFullscreen=function(){return this.visibility.isFullscreen()}; g.S.isBackground=function(){return this.visibility.isBackground()}; g.S.w5=function(){var Q=this;this.logger.debug("Updating for format change");yO(this).then(function(){return XB(Q)}); this.playerState.isOrWillBePlaying()&&this.playVideo()}; g.S.v2=function(){this.logger.debug("start readying playback");this.mediaElement&&this.mediaElement.activate();this.gX();this.A3()&&!g.w(this.playerState,128)&&(this.vQ.Dv()||(this.vQ.start(),this.videoData.rz?this.zq(bC(this.playerState,4)):this.zq(bC(bC(this.playerState,8),1))),eCY(this))}; g.S.DG=function(){return this.sT.finished}; g.S.sendAbandonmentPing=function(){g.w(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.Gc(!0),kqp(this),g.Wz.xF(this.Lb))}; g.S.x7=function(Q,z){Q=Q===void 0?!0:Q;(z===void 0||z)&&this.mediaElement&&this.mediaElement.pause();this.zq(Q?new g.zE(14):new g.zE)}; g.S.x$=function(){this.JZ().sN()}; g.S.VN=function(Q,z,H,f,b,L){this.logger.debug(function(){return"set player error: ec="+Q+", detail="+b}); var u,X;g.II(sUB,H)?u=H:H?X=H:u="GENERIC_WITHOUT_LINK";f=(f||"")+(";a6s."+vm());if(Q==="auth"||Q==="drm.auth"||Q==="heartbeat.stop")H&&(f+=";r."+H.replaceAll(" ","_")),L&&(f+="sr."+L.replaceAll(" ","_"));z={errorCode:Q,errorDetail:b,errorMessage:X||g.WE[u]||"",oP:u,Jj:L||"",Fd:f,zE:z,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=Q;qp(this,"dataloaderror");this.zq(fx(this.playerState,128,z));g.Wz.xF(this.Lb);Mp(this);this.Iv()}; g.S.PS=function(Q){this.Nj=this.Nj.filter(function(z){return Q!==z}); this.logger.debug(function(){return"set preroll ready for "+Q}); g.mI(this.videoData)&&!this.l7()&&this.jy.GS("pl_pr");this.vQ.Dv()&&eCY(this)}; g.S.l7=function(){var Q;(Q=!!this.Nj.length)||(Q=this.gP.Z.array[0],Q=!!Q&&Q.start<=-0x8000000000000);return Q}; g.S.Vd=function(){return this.Sx.Vd()}; g.S.isPlaying=function(){return this.playerState.isPlaying()}; g.S.q3=function(){return this.playerState.q3()&&this.videoData.rz}; g.S.getPlayerState=function(){return this.playerState}; g.S.y5=function(Q){var z;(z=this.xv)==null||z.y5(Q)}; g.S.DU=function(Q){var z;(z=this.xv)==null||z.DU(Q)}; g.S.getPlayerType=function(){return this.playerType}; g.S.getPreferredQuality=function(){if(this.ZY){var Q=this.ZY;Q=Q.videoData.sR.compose(Q.videoData.M9);Q=Lu(Q)}else Q="auto";return Q}; g.S.LV=H_(22);g.S.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.S.setMediaElement=function(Q){this.logger.debug("set media element");if(this.mediaElement&&Q.ai()===this.mediaElement.ai()&&(Q.isView()||this.mediaElement.isView())){if(Q.isView()||!this.mediaElement.isView())this.r$(),this.mediaElement=Q,this.mediaElement.HI=this,pEJ(this),this.Sx.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.MO();if(!this.playerState.isError()){var z=Lx(this.playerState,512);g.w(z,8)&&!g.w(z,2)&&(z=bC(z,1));Q.isView()&&(z=Lx(z,64));this.zq(z)}this.mediaElement= Q;this.mediaElement.HI=this;!g.OV(this.rh)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);pEJ(this);this.Sx.setMediaElement(this.mediaElement);this.V("html5_prewarm_media_source")&&!this.yF.JP()&&rT9(this.mediaElement)}}; g.S.MO=function(Q,z,H){Q=Q===void 0?!1:Q;z=z===void 0?!1:z;H=H===void 0?!1:H;this.logger.debug("remove media element");if(this.mediaElement){var f=this.getCurrentTime();f>0&&(this.Sx.D=f);this.Sx.setMediaElement(null);!Q&&this.Uq()?y4v(this):this.gq(H);this.xv&&(Tc(this.xv),pL(this,z));this.sA.stop();if(this.mediaElement&&(!this.vQ.Dv()&&!this.vG()||this.playerState.isError()||g.w(this.playerState,2)||this.zq(bC(this.playerState,512)),this.mediaElement)){this.r$();if(Q||!this.mediaElement.isView())this.jy.K$("mesv_s"), this.mediaElement.stopVideo(),nL(this);this.mediaElement=this.mediaElement.HI=null}}}; g.S.playVideo=function(Q,z){Q=Q===void 0?!1:Q;z=z===void 0?!1:z;var H=this,f,b,L,u,X,v;return g.B(function(y){if(y.Z==1){H.logger.debug("start play video");var q=window.google_image_requests;q&&q.length>10&&(window.google_image_requests=q.slice(-10));if(g.w(H.playerState,128))return y.return();if(H.yF.KQ())return H.publish("signatureexpired"),y.return();H.mediaElement&&Ug(H.JZ());H.v2();(g.w(H.playerState,64)||Q)&&H.zq(bC(H.playerState,8));return H.vQ.finished&&H.mediaElement?H.ZY||!H.VX?y.bT(2): g.Y(y,H.VX,3):y.return()}if(y.Z!=2&&g.w(H.playerState,128))return y.return();if(!H.videoData.L)return H.videoData.isLivePlayback&&!g.lD(H.rh.S,!0)?(f="html5.unsupportedlive",b=2):(f=H.videoData.w7()?"fmt.unplayable":"fmt.noneavailable",b=1),g.PT(Error("selectableFormats")),H.VN(f,b,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),y.return();if(H.oJ()&&H.videoData.L.Z)return H.logger.debug("rebuild playbackData for airplay"),y.return(yO(H));if(lH(H))q=H.Sx,qY(q.videoData)?!q.isAtLiveHead(q.getCurrentTime())&& q.Vd()&&q.HI.seekTo(Infinity,{lr:"seektimeline_peggedToLive",seekSource:34}):g.mI(q.videoData)&&q.getCurrentTime()u;u=z.V("html5_dont_save_under_1080")&&u<1080;if(!b||!L&&!u){var X;b=uT8(z,(X=f.Z)==null?void 0:X.videoInfos);X=z.HI.getPlaybackRate();X>1&&b&&(X=sc9(z.rh.S,f.Z.videoInfos,X),Q.Z!==0&&X=480;if(z.V("html5_exponential_memory_for_sticky")){v=z.rh.D6;y=1;var q=q===void 0?!1:q;l$Y(v,"sticky-lifetime");v.values["sticky-lifetime"]&&v.ol["sticky-lifetime"]||(v.values["sticky-lifetime"]=0,v.ol["sticky-lifetime"]=0);q&&Zd(v,"sticky-lifetime")>.0625&&(y=v.ol["sticky-lifetime"]*2);v.values["sticky-lifetime"]+=1*Math.pow(2,v.Z/y);v.ol["sticky-lifetime"]=y; v.D.start()}if(z.V("html5_perf_cap_override_sticky")){q=z.L;v=z.V("html5_perserve_av1_perf_cap");v=v===void 0?!1:v;if(v===void 0?0:v){y=UW();z=g.n(Object.keys(y));for(Q=z.next();!Q.done;Q=z.next())Q=Q.value,Q.indexOf("1")!==0&&delete y[Q];g.Bw("yt-player-performance-cap",y,2592E3)}else g.a4("yt-player-performance-cap");B4Y(v);if(v){v=g.n(Om.keys());for(y=v.next();!y.done;y=v.next())y=y.value,y.startsWith("1")||Om.delete(y);v=g.n(td.values());for(y=v.next();!y.done;y=v.next())y=y.value,y.startsWith("1")|| td.delete(y);v=g.n(q.keys());for(y=v.next();!y.done;y=v.next())y=y.value,y.startsWith("1")||q.delete(y)}else Om.clear(),td.clear(),q.clear()}}}this.xv&&(q=this.xv,H=H||"",q.policy.Z?wY(q.B.Z,H):wY(q.Z.S,H));this.ye()}; g.S.getUserPlaybackQualityPreference=function(){return this.videoData.L&&!this.videoData.L.Z?Lu(this.videoData.sR):b$[PB()]}; g.S.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()}; g.S.setUserAudio51Preference=function(Q,z){this.getUserAudio51Preference()!==Q&&(this.On("toggle51",{pref:Q}),g.Bw("yt-player-audio51",Q,z?31536E3:2592E3),this.w5())}; g.S.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()}; g.S.setProximaLatencyPreference=function(Q){var z=this.getProximaLatencyPreference();this.On("proxima",{pref:Q});g.Bw("yt-player-proxima-pref",Q,31536E3);z!==Q&&(Q=this.Sx,Q.WI=!0,Q.HI.seekTo(Infinity,{lr:"seektimeline_proximaSeekToHead",seekSource:34}))}; g.S.getProximaLatencyPreference=function(){var Q;return(Q=aA())!=null?Q:0}; g.S.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; g.S.W2=function(){this.videoData.videoId?this.sV.W2(this.videoData):this.On("povid",{})}; g.S.WO=function(){this.videoData.videoId?this.sV.WO(this.videoData):this.On("piavid",{})}; g.S.ye=function(){if(!this.Sm()&&!g.w(this.playerState,128)&&this.videoData.L){if(this.videoData.L.Z)SW(this);else{var Q=Ek(this),z=this.videoData;a:{var H=this.videoData.zx;if(Q.Z){for(var f=g.n(H),b=f.next();!b.done;b=f.next()){b=b.value;var L=b.getInfo(),u=g.Uh[L.video.quality];if((!Q.L||L.video.quality!=="auto")&&u<=Q.Z){H=b;break a}}H=H[H.length-1]}else H=H[0]}z.gh=H;bAJ(this,Q.reason,ZAa(this,this.videoData.gh))}if(this.V("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.Sx.N= !1,this.playVideo()}}; g.S.xB=function(Q,z){if(this.Sm()||g.w(this.playerState,128))return!1;var H,f=!((H=this.videoData.L)==null||!H.Z);H=f&&z?this.getCurrentTime()-this.ex():NaN;if(this.rh.experiments.Nc("html5_record_audio_format_intent")){var b=this.JZ();if(b.qoe){b=b.qoe;var L=[Q.Ii.id,isNaN(H)?"m":"t"];g.$P(b,g.nD(b.provider),"afi",L)}}if(f)return z&&(f=g_a(this.Sx),this.On("aswh",{id:Q.id,xtags:Q.xtags,bh:f.toFixed(3)})),this.xv.setAudioTrack(Q,H,z),!0;if(ueJ(this)){a:{z=this.mediaElement.audioTracks();for(f=0;f< z.length;++f)if(H=z[f],H.label===Q.Ii.getName()){if(H.enabled){z=!1;break a}z=H.enabled=!0;break a}z=void 0}z&&this.On("hlsaudio",{id:Q.id})}else{a:if(z=this.videoData,z.D&&!eM(z.D)||Q===z.Da||!z.zx||z.zx.length<=0)z=!1;else{f=g.n(z.zx);for(H=f.next();!H.done;H=f.next()){H=H.value;if(!(H instanceof Sw)){z=!1;break a}b=Q.Ii.getId();H.B&&($Mu(H.B,b),H.Mz=null)}z.Da=Q;z=!0}z&&XB(this)&&(this.publish("internalaudioformatchange",this.videoData,!0),this.On("hlsaudio",{id:Q.id}))}return!0}; g.S.getAvailableAudioTracks=function(){return g.mI(this.videoData)&&this.OY?cVc(this.OY).getAvailableAudioTracks():this.videoData.getAvailableAudioTracks()}; g.S.getAudioTrack=function(){if(ueJ(this)){var Q=XEu(this);if(Q)return Q}return this.videoData.getAudioTrack()}; g.S.JH=function(){if(this.videoData.V("html5_trigger_loader_when_idle_network")&&!this.videoData.AZ()&&L9(this.videoData)){var Q;(Q=this.xv)!=null&&Q.SA()}}; g.S.F1=function(){if(H7(this.videoData)&&this.videoData.V("html5_gapless_append_early")){var Q;(Q=this.xv)!=null&&Q.SA()}}; g.S.NT=function(Q){Q=Q===void 0?!1:Q;if(this.xv){var z=this.xv,H=z.NT;var f=this.videoData;f=f.V("html5_ssdai_use_post_for_media")&&f.enableServerStitchedDai?!1:MY(f)&&f.Uj&&!f.isAd();H.call(z,f,Q)}}; g.S.gq=function(Q){Q=Q===void 0?!1:Q;this.vI&&(this.logger.debug("remove media source"),Yxc(this.vI),this.NT(Q),this.vI.dispose(),this.vI=null)}; g.S.AB=function(){return this.vI}; g.S.B2=function(Q,z,H,f){function b(u){try{tHa(L,u,z,H)}catch(X){g.PT(X),L.handleError(new Oh("fmt.unplayable",{msi:"1",ename:X&&typeof X==="object"&&"name"in X?String(X.name):void 0},1))}} var L=this;z=z===void 0?!1:z;H=H===void 0?!1:H;MH_(this,f===void 0?!1:f);this.vI=Q;this.Uq()&&mw(this.vI)==="open"?b(this.vI):oU9(this.vI,b)}; g.S.Cl=function(Q){this.logger.debug("onNeedKeyInfo");this.Qx.set(Q.initData,Q);this.IB&&(this.IB.Cl(Q),this.V("html5_eme_loader_sync")||this.Qx.remove(Q.initData))}; g.S.Gz=function(Q){this.videoData.vR=g.zQ("auto",Q,!1,"u");SW(this)}; g.S.e9=function(Q){var z=Q.reason,H=Q.Z.info,f=Q.token,b=Q.videoId,L=this.JZ(b),u=g.mI(this.videoData)?L.getVideoData():this.videoData;if(H!==u.D){var X=!u.D;u.D=H;z!=="m"&&z!=="t"&&(z=X?"i":"a");var v=z==="m"||z==="t";this.rh.experiments.Nc("html5_refactor_sabr_audio_format_selection_logging")?this.ly=new z3n(u,H,z,"",f,b):L.jK(new z3n(u,H,z,"",f));this.publish("internalaudioformatchange",u,!X&&v)}this.Sx.e9(Q.Z.index)}; g.S.xZ=function(Q){this.publish("localmediachange",Q)}; g.S.ST=function(Q){Q=Q===void 0?{}:Q;var z;(z=this.xv)==null||z.ST(this.rh,bE(this.videoData),Q)}; g.S.KQ=function(){return this.yF.KQ()}; g.S.o7=function(Q){this.h7(new Oh("staleconfig",{reason:Q}))}; g.S.handleError=function(Q){this.yF.handleError(Q)}; g.S.JP=function(){return this.yF.JP()}; g.S.fl=function(Q){this.Sx.fl(Q)}; g.S.lL=function(Q,z,H){Q=Q===void 0?!1:Q;z=z===void 0?!1:z;H=H===void 0?!1:H;var f=this,b,L,u;return g.B(function(X){if(X.Z==1){f.xv&&f.xv.UN();f.xv&&f.xv.Sm()&&Mp(f);if(f.V("html5_enable_vp9_fairplay")&&f.w7()&&(b=f.videoData.Z)!=null)for(var v in b.Z)b.Z.hasOwnProperty(v)&&(b.Z[v].Z=null,b.Z[v].L=!1);f.zq(bC(f.playerState,2048));f.V("html5_ssap_keep_media_on_finish_segment")&&g.mI(f.videoData)?f.publish("newelementrequired",H):f.publish("newelementrequired");return Q?g.Y(X,yO(f),2):X.bT(2)}f.videoData.AZ()&& ((L=f.xv)==null?0:L.L3)&&!lH(f)&&((u=f.isAtLiveHead())&&qY(f.videoData)?f.seekTo(Infinity,{lr:"videoPlayer_getNewElement"}):f.videoData.l8&&f.xv&&(v=f.xv,v.n3.AZ&&(v.n3.l8||v.n3.D||v.n3.isPremiere?(v.seek(0,{lr:"loader_resetSqless"}),v.videoTrack.Y=!0,v.audioTrack.Y=!0,v.videoTrack.S=!0,v.audioTrack.S=!0):jb(v.n3)&&fB(v))));z&&f.seekTo(0,{seekSource:105});g.w(f.playerState,8)&&(f.V("html5_ssap_keep_media_on_finish_segment")&&g.mI(f.videoData)?f.playVideo(!1,H):f.playVideo());g.Gu(X)})}; g.S.TX=function(Q){this.On("hgte",{ne:+Q});this.videoData.N=!1;Q&&this.lL();this.xv&&SCY(this.xv)}; g.S.J6=function(Q){this.On("newelem",{r:Q});this.lL()}; g.S.pauseVideo=function(Q){Q=Q===void 0?!1:Q;if((g.w(this.playerState,64)||g.w(this.playerState,2))&&!Q)if(g.w(this.playerState,8))this.zq(uC(this.playerState,4,8));else if(this.q3())XB(this);else return;g.w(this.playerState,128)||(Q?this.zq(bC(this.playerState,256)):this.zq(uC(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.JM(this.videoData)&&this.xv&&pL(this,!1)}; g.S.stopVideo=function(){this.pauseVideo();this.xv&&(pL(this,!1),this.xv.lH())}; g.S.Iv=function(Q,z){Q=Q===void 0?!1:Q;z=z===void 0?!1:z;if(this.Uq()&&z){var H;(H=this.mediaElement)==null||H.Iv()}else{var f;(f=this.mediaElement)==null||f.stopVideo()}nL(this);Mp(this);g.w(this.playerState,128)||(Q?this.zq(Lx(Lx(bC(this.playerState,4),8),16)):this.zq(fx(this.playerState)));this.videoData.videoId&&this.rh.f3.remove(this.videoData.videoId)}; g.S.seekTo=function(Q,z){z=z===void 0?{}:z;this.logger.debug(function(){return"SeekTo "+Q+", "+JSON.stringify(z)}); g.w(this.playerState,2)&&XB(this);z.Ut5&&this.zq(bC(this.playerState,2048));z.seekSource!==58&&z.seekSource!==60||!this.V("html5_update_vss_during_gapless_seeking")||AdY(this.JZ(),z.seekSource);this.Sx.seekTo(Q,z);this.gP.sync()}; g.S.E0=function(Q){this.jy.D.YC();g.w(this.playerState,32)||(this.zq(bC(this.playerState,32,Q==null?void 0:Q.seekSource)),g.w(this.playerState,8)&&this.pauseVideo(!0),this.publish("beginseeking",this));this.A7()}; g.S.rR=function(Q){Q=Q==null?void 0:Q.seekSource;g.w(this.playerState,32)?(this.zq(uC(this.playerState,16,32,Q)),this.publish("endseeking",this)):g.w(this.playerState,2)||this.zq(bC(this.playerState,16,Q));this.jy.D.XT(this.videoData,this.playerState.isPaused())}; g.S.LS=function(Q){this.rR(Q)}; g.S.qV=function(){this.publish("SEEK_COMPLETE")}; g.S.AS=function(){this.publish("onAbnormalityDetected")}; g.S.Hp=function(Q){var z=this.sV,H=this.videoData.clientPlaybackNonce,f=this.playerType;if(Q.scope===4){var b=Q.type;if(b){var L=z.ey(),u=L.getVideoData().clientPlaybackNonce;f===1&&(u=H);(z=CJ8(z,u))?(H=z.getVideoData())&&(Q.writePolicy===2&&H.sabrContextUpdates.has(b)||H.sabrContextUpdates.set(b,Q)):L.On("scuset",{ncpf:"1",ccpn:u,crcpn:H})}else g.PT(Error("b/380308491: contextUpdateType is undefined"))}}; g.S.Si=function(){if(this.playerType===2)return this.sV.Si("")}; g.S.getCurrentTime=function(){return this.Sx.getCurrentTime()}; g.S.R_=function(){return this.Sx.R_()}; g.S.yN=function(){return this.Sx.yN()}; g.S.Tt=function(Q){return this.OY&&(Q=Q||this.OY.l$())?LJ(this.OY,Q):this.yN()}; g.S.yf=function(){return this.Sx.yf()}; g.S.getPlaylistSequenceForTime=function(Q){return this.videoData.getPlaylistSequenceForTime(Q-this.ex())}; g.S.zp=function(){var Q=NaN;this.mediaElement&&(Q=this.mediaElement.zp());return Q>=0?Q:this.getCurrentTime()}; g.S.JM=function(){var Q;return((Q=this.videoData.Z)==null?0:Q.JM)?this.videoData.Z.JM(this.getCurrentTime()-this.ex()):this.mediaElement&&(Q=this.mediaElement.Jf())&&(Q=Q.getTime(),!isNaN(Q))?Q/1E3+this.getCurrentTime():NaN}; g.S.getDuration=function(Q){return g.mI(this.videoData)&&this.OY?Q?Uwu(this.OY,Q):kY(this.OY):this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.ex():this.jA()?this.jA():0}; g.S.u4=function(){var Q=new a49;if(this.xv){var z=this.rh.schedule,H=this.rh.vz();H=H===void 0?!1:H;Q.Zi=z.L3;Q.jJ=z.En;Q.bandwidthEstimate=no(z);if(H){H=(z.N.gQ()*1E3).toFixed();var f=(z.yl.gQ()*1E3).toFixed(),b=tE(z).toFixed(2),L=((z.Y.gQ()||0)*1E9).toFixed(2),u=z.L.gQ().toFixed(0),X=z.f3.gQ().toFixed(0),v=z.U.percentile(.5).toFixed(2),y=z.U.percentile(.92).toFixed(2),q=z.U.percentile(.96).toFixed(2),M=z.U.percentile(.98).toFixed(2);z.Z?z.Z.reset():z.Z=new Lo;z.Z.add(z.De);z.Z.add(z.interruptions.length); for(var C=0,t=z.interruptions.length-1;t>=0;t--){var E=z.interruptions[t];z.Z.add(E-C);C=E}C=0;for(t=z.D.length-1;t>=0;t--){E=z.D[t];var G=E.stamp/36E5;z.Z.add(G-C);C=G;z.Z.add(E.net/1E3);z.Z.add(E.max)}z=z.Z.dP();Q.Z={ttr:H,ttm:f,d:b,st:L,bw:u,abw:X,v50:v,v92:y,v96:q,v98:M,"int":z}}PEn(this.xv,Q)}else this.mediaElement&&(Q.yq=lZ(this.mediaElement));Q.Zi=this.Zi;Q.jJ=this.jJ;Q.L=this.isAtLiveHead()&&this.isPlaying()?mp9(this):NaN;return Q}; g.S.Nn=function(Q,z){this.jJ+=Q;this.Zi+=z}; g.S.F7=function(){return this.mediaElement?g.JM(this.videoData)?1:NY(this.videoData)?this.isAtLiveHead()||this.Vd()?1:this.Sx.F7():this.mediaElement.F7():0}; g.S.bv=function(){var Q=this.HZ,z=bt(Q,"bandwidth"),H=bt(Q,"bufferhealth"),f=bt(Q,"livelatency"),b=bt(Q,"networkactivity"),L=fL(Q,"bandwidth"),u=fL(Q,"bufferhealth"),X=fL(Q,"livelatency");Q=fL(Q,"networkactivity");var v=this.RR(),y=v.droppedVideoFrames;v=v.totalVideoFrames;var q=this.getCurrentTime();if(this.IB){var M="IT/"+(this.IB.Z.getInfo()+"/"+Lu(this.Nx()));M+="/"+this.IB.getInfo()}else M="";var C=this.isGapless(),t=this.PU(),E=this.nf(),G=g.tz(this),x=this.getPlayerState(),J=this.getPlaylistSequenceForTime(this.getCurrentTime()); a:{var I=0;var r="";if(this.J7){if(this.J7.bZ){r="D,";break a}I=this.J7.fG();r=this.J7.l$().substring(0,4)}else this.OY&&(I=this.OY.fG(),r=this.OY.l$().substring(0,4));I>0?(I="AD"+I+", ",r&&(I+=r+", "),r=I):r=""}return{yK:L,f_:u,currentTime:q,UM:M,droppedVideoFrames:y,isGapless:C,PU:t,gR:E,Aq:z,VL:H,nO:f,Y_:b,Ez:X,MQ:Q,Mb:G,playerState:x,v9:J,zA:r,totalVideoFrames:v}}; g.S.TL=function(Q){var z={};if(Q===void 0?0:Q){Object.assign(z,this.JZ().TL());this.mediaElement&&(Object.assign(z,this.mediaElement.TL()),Object.assign(z,this.RR()));this.xv&&Object.assign(z,this.xv.TL());this.IB&&(z.drm=JSON.stringify(this.IB.TL()));z.state=this.playerState.state.toString(16);g.w(this.playerState,128)&&(z.debug_error=JSON.stringify(this.playerState.WS));this.l7()&&(z.prerolls=this.Nj.join(","));this.videoData.yR&&(z.ismb=this.videoData.yR);this.videoData.latencyClass!=="UNKNOWN"&& (z.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(z.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)z.is_mosaic=1;this.videoData.cotn&&(z.is_offline=1,z.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(z.playerResponseCpn=this.videoData.playerResponseCpn);this.sV.isOrchestrationLeader()&&(z.leader=1);this.videoData.isLivePlayback&&(this.videoData.Z&& gS(this.videoData.Z)&&(z.segduration=gS(this.videoData.Z)),Q=this.Sx,z.lat=Q.Y?l49(Q.Y.D):0,z.liveutcstart=this.videoData.liveUtcStartSeconds);z.relative_loudness=this.videoData.dS.toFixed(3);if(Q=g.tz(this))z.optimal_format=Q.video.qualityLabel;z.user_qual=PB();z.release_version="youtube.player.web_20250305_01_RC00";g.mI(this.videoData)&&this.OY&&(z.ssap=S8(this.OY))}z.debug_videoId=this.videoData.videoId;return z}; g.S.addCueRange=function(Q){this.pZ([Q])}; g.S.removeCueRange=function(Q){this.gP.NG([Q])}; g.S.PJ=function(){this.gP.sync()}; g.S.Rc=function(Q,z){return this.gP.Rc(Q,z)}; g.S.pZ=function(Q,z){this.gP.UZ(Q,z)}; g.S.OR=function(Q){this.gP.NG(Q)}; g.S.Rk=function(Q){var z=this.gP;Q.length<=0||z.Sm()||(Q=z.Z,Q.array.sort(Q.Z))}; g.S.o6=function(){return this.gP.o6()||[]}; g.S.ZR=function(){return this.qZ}; g.S.oJ=function(){return this.visibility.oJ()}; g.S.bf=function(){this.mediaElement&&this.mediaElement.bf()}; g.S.vJj=function(){qp(this)}; g.S.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.S.r$=function(){g.Aq(this.H$)}; g.S.FU=function(){this.A7();this.publish("onLoadProgress",this,this.F7())}; g.S.bS=function(Q){var z=Q.target.e3();if(this.mediaElement&&this.mediaElement.e3()&&this.mediaElement.e3()===z){J4c(this,Q.type);switch(Q.type){case "error":var H=Qu(this.mediaElement)||"",f=this.mediaElement.q8();if(H==="capability.changed"){this.V("html5_restart_on_capability_change")?(this.On("capchg",{msg:f}),this.lL(!0)):yO(this);return}if(this.mediaElement.hasError()&&(wK9(this.yF,H,{msg:f})||g.mI(this.videoData)&&this.OY&&(f=this.playerState.WS,this.OY.handleError(H,f==null?void 0:f.zE))))return; if(this.isBackground()&&this.mediaElement.JF()===4){this.Iv();CL(this,"unplayable");return}break;case "durationchange":H=this.mediaElement.getDuration();isFinite(H)&&(!this.vI||H>0)&&H!==1&&this.wx(H);break;case "ratechange":this.xv&&this.xv.setPlaybackRate(this.mediaElement.getPlaybackRate());dJY(this.gP);this.JZ().onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":IY8(this);this.publish("onLoadedMetadata");gbY(this);H=this.JM();this.videoData.ER&&(this.videoData.ER=H);break; case "loadstart":gbY(this);break;case "progress":case "suspend":g.qf(this.rh.experiments,"html5_progress_event_throttle_ms")>0?this.tR.YL():this.FU();break;case "playing":this.jy.K$("plev");this.DI&&!lH(this)&&(this.DI=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{lr:"videoplayer_onPlaying"})));break;case "timeupdate":H=this.mediaElement&&!this.mediaElement.getCurrentTime();f=this.mediaElement&&this.mediaElement.OG()===0;if(H&&(!this.Nk||f))return; this.Nk=this.Nk||!!this.mediaElement.getCurrentTime();nbL(this);this.A7();if(!this.mediaElement||this.mediaElement.e3()!==z)return;this.publish("onVideoProgress",this,this.getCurrentTime());break;case "waiting":if(this.mediaElement.WP().length>0&&this.mediaElement.Ux().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.xv)return;this.V("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.OG()>2||!this.mediaElement.isSeeking()&& SP(this.mediaElement.Ux(),this.mediaElement.getCurrentTime()))&&(H=this.mediaElement.TL(),H.bh=lZ(this.mediaElement).toFixed(3),this.On("uwe",H));g.mI(this.videoData)&&this.OY&&AVu(this.OY,this.mediaElement.getCurrentTime());break;case "resize":IY8(this);this.videoData.B&&this.videoData.B.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.kz&&g.w(this.playerState,8)&&!g.w(this.playerState,1024)&&this.getCurrentTime()===0&&g.Ga){CL(this,"safari_autoplay_disabled"); return}}if(this.mediaElement&&this.mediaElement.e3()===z){JzJ(this.Sx,Q,this.OY||void 0);this.publish("videoelementevent",Q);z=this.playerState;f=this.mQ;var b=this.mediaElement;H=this.videoData.clientPlaybackNonce;var L=g.mI(this.videoData)&&this.OY?kY(this.OY):void 0;if(!g.w(z,128)){var u=z.state;b=b?b:Q.target;var X=b.getCurrentTime();if(!g.w(z,64)||Q.type!=="ended"&&Q.type!=="pause"){L=L||b.getDuration();L=b.isEnded()||X>1&&Math.abs(X-L)<1.1;var v=Q.type==="pause"&&b.isEnded();X=Q.type==="ended"|| Q.type==="waiting"||Q.type==="timeupdate"&&!g.w(z,4)&&!hd(f,X);if(v||L&&X)b.LT()>0&&b.e3()&&(u=14);else switch(Q.type){case "error":Qu(b)&&(u|=128);break;case "pause":g.w(z,256)?(u^=256)||(u=64):g.w(z,32)||g.w(z,2)||g.w(z,4)||(u=4,g.w(z,1)&&g.w(z,8)&&(u|=1));break;case "playing":X=u;u=(u|8)&-1093;X&4?(u|=1,HR(f,b,!0)):hd(f,b.getCurrentTime())&&(u&=-2);g.w(z,1)&&HR(f,b)&&(u|=1);break;case "seeking":u|=16;g.w(z,8)&&(u|=1);u&=-3;break;case "seeked":u&=-17;HR(f,b,!0);break;case "waiting":g.w(z,2)||(u|= 1);HR(f,b);break;case "timeupdate":X=g.w(z,16),L=g.w(z,4),(g.w(z,8)||X)&&!L&&hd(f,b.getCurrentTime())&&(u=8),HR(f,b)&&(u|=1)}}f=u;u=null;f&128&&(u=Q.target,b=Qu(u),X=1,b?(b==="capability.changed"&&(X=2),L="GENERIC_WITHOUT_LINK",v=u.TL(),v.mediaElem="1",/AUDIO_RENDERER/.test(u.q8())&&(L="HTML5_AUDIO_RENDERER_ERROR"),u={errorCode:b,errorMessage:g.WE[L]||"",oP:L,Fd:xK(v),zE:X,cpn:z.WS?z.WS.cpn:""}):u=null,u&&(u.cpn=H));z=fx(z,f,u)}!g.w(this.playerState,1)&&g.w(z,1)&&obL(this,"evt"+Q.type);this.zq(z)}}}; g.S.xi5=function(Q){Q=Q.Z.availability==="available";Q!==this.qZ&&(this.qZ=Q,this.publish("airplayavailabilitychange"))}; g.S.z9$=function(){var Q=(0,g.NV)(),z=this.mediaElement.oJ();this.On("airplay",{ia:z});!z&&!isNaN(this.HK)&&Q-this.HK<2E3||(this.HK=Q,z!==this.oJ()&&(Q=this.visibility,Q.Z!==z&&(Q.Z=z,Q.Ox()),this.On("airplay",{rbld:z}),this.w5()),this.publish("airplayactivechange"))}; g.S.Hn=function(Q){if(this.xv){var z=this.xv,H=z.D,f=z.getCurrentTime(),b=Date.now()-H.U;H.U=NaN;H.On("sdai",{adfetchdone:Q,d:b});Q&&!isNaN(H.Y)&&H.B!==3&&Uf(H.xv,f,H.Y,H.S);H.policy.S?H.L=NaN:H.D=NaN;PA(H,4,H.B===3?"adfps":"adf");Tc(z)}}; g.S.gF=function(){g.Gr(this.Jo);this.sA.stop();this.videoData.L3=!0;this.rh.X2=!0;this.rh.EY=0;var Q=this.yF;if(Q.videoData.B){var z=Q.aj.S,H=Q.videoData.B.Rj;z.B.has(H)&&(z.B.delete(H),Rk(z))}Q.Z.stop();this.sM();g.w(this.playerState,8)&&this.zq(Lx(this.playerState,65));this.aU=!1;I4Z(this.JZ());g.lp(this.ph);this.publish("playbackstarted");(Q=g.D6("yt.scheduler.instance.clearPriorityThreshold"))?Q():ff(0,0)}; g.S.sM=function(){var Q=this.sV.Iq(),z={},H={};!DA("pbs",this.jy.timerName)&&Nq.measure&&Nq.getEntriesByName&&(Nq.getEntriesByName("mark_nr")[0]?f7L("mark_nr"):f7L());Q.videoId&&(z.videoId=Q.videoId);Q.clientPlaybackNonce&&!this.V("web_player_early_cpn")&&(z.clientPlaybackNonce=Q.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(H.isPausedOnLoad=!0);H.itag=Q.B?Number(Q.B.itag):-1;Q.d4&&(H.preloadType=String(this.mU?2:1));z.liveStreamMode=M4B[$m(Q)];z.playerInfo=H;this.jy.infoGel(z); if(this.xv){Q=this.xv.timing;window&&window.performance&&window.performance.getEntriesByName&&(Q.L&&(z=window.performance.getEntriesByName(Q.L),z.length&&(z=z[0],Q.tick("vri",z.fetchStart),Q.tick("vdns",z.domainLookupEnd),Q.tick("vreq",z.requestStart),Q.tick("vrc",z.responseEnd))),Q.B&&(z=window.performance.getEntriesByName(Q.B),z.length&&(z=z[0],Q.tick("ari",z.fetchStart),Q.tick("adns",z.domainLookupEnd),Q.tick("areq",z.requestStart),Q.tick("arc",z.responseEnd))));Q=Q.ticks;for(var f in Q)Q.hasOwnProperty(f)&& this.jy.tick(f,Q[f])}}; g.S.FN=function(Q,z,H){Q=(Q+(this.Kv===3?.3:0))/z;z=Math.floor(Q*4);z>this.Kv&&(this.On("vpq",{q:z,cpn:H||this.videoData.clientPlaybackNonce,ratio:Q.toFixed(3)}),this.Kv=z)}; g.S.B3=function(){this.Kv=-1}; g.S.A7=function(Q){var z=this;Q=Q===void 0?!1:Q;if(this.mediaElement&&this.videoData){ZLc(this.Sx,this.isPlaying());var H=this.getCurrentTime();!this.xv||g.w(this.playerState,4)&&g.JM(this.videoData)||g.w(this.playerState,32)&&L9(this.videoData)||cM6(this.xv,H);this.V("html5_ssap_pacf_qoe_ctmp")&&this.playerType===2&&this.FN(H,this.videoData.lengthSeconds);H>5&&(this.Sx.D=H);var f=g.HH();f?g.Wz.xF(this.Lb):g.ZK(this.Lb);var b=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!b||Qw(this.videoData))&& !g.w(this.playerState,128)){var L=function(){if(z.mediaElement&&!g.w(z.playerState,128)){z.rh.vz()&&J4c(z,"pfx");var u=z.getCurrentTime();z.V("html5_buffer_underrun_transition_fix")&&(u-=z.ex());var X=lZ(z.mediaElement),v=g.w(z.playerState,8),y=hd(z.mQ,u),q=cTv(z.mQ,u,(0,g.NV)(),X);v&&y?z.zq(Lx(z.playerState,1)):v&&q?(v=z.getDuration(),y=qY(z.videoData),v&&Math.abs(v-u)<1.1?(z.On("setended",{ct:u,bh:X,dur:v,live:y}),z.mediaElement.FD()?(z.logger.debug("seek to 0 because of looping"),z.seekTo(0,{lr:"videoplayer_loop", seekSource:37})):z.x7()):(z.playerState.isBuffering()||obL(z,"progress_fix"),z.zq(bC(z.playerState,1)))):(v&&!y&&!q&&u>0&&(v=(Date.now()-z.YA)/1E3,y=z.getDuration(),u>y-1&&z.On("misspg",{t:u.toFixed(2),d:y.toFixed(2),r:v.toFixed(2),bh:X.toFixed(2)})),z.playerState.isPaused()&&z.playerState.isBuffering()&&lZ(z.mediaElement)>5&&z.zq(Lx(z.playerState,1)));z.A7()}}; this.mediaElement.WP().length===0?this.Lb=f?g.Wz.pE(L,100):g.n1(L,100):this.Lb=f?g.Wz.pE(L,500):g.n1(L,500)}this.videoData.iT=H;this.OY&&this.OY.r5();!Q&&this.isPlaying()&&Gj6(this);pWp(this.i7,this.ZY,this.aB(),this.isBackground())&&SW(this);this.publish("progresssync",this,Q);b&&Qw(this.videoData)&&this.publish("onVideoProgress",this,this.getCurrentTime())}}; g.S.yhh=function(){this.VN("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.S.nf=function(){return this.JZ().nf()}; g.S.G9=function(){return this.xv?this.xv.G9():no(this.rh.schedule,!0)}; g.S.zq=function(Q){if(!g.Sm(this.playerState,Q)){this.logger.debug(function(){return"Setting state "+Q.toString()}); var z=new g.Cp(Q,this.playerState);this.playerState=Q;N3J(this);var H=!this.iS.length;this.iS.push(z);var f=this.mediaElement&&this.mediaElement.isSeeking();f=z.oldState.state===8&&!f;g.Ex(z,1)&&f&&g.w(this.playerState,8)&&!g.w(this.playerState,64)&&this.xv&&(uDL(this.xv),this.mediaElement&&lZ(this.mediaElement)>=5&&t8a(this.i7,this.ZY)&&SW(this));(f=g.qf(this.rh.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.w(Q,1)&&(g.w(Q,8)||g.w(Q,16))?this.GM.start(f):this.GM.stop();(tT(z,8)<0|| g.Ex(z,1024))&&this.sA.stop();!g.Ex(z,8)||this.videoData.L3||g.w(z.state,1024)||this.sA.start();g.w(z.state,8)&&tT(z,16)<0&&!g.w(z.state,32)&&!g.w(z.state,2)&&this.playVideo();g.w(z.state,2)&&NY(this.videoData)&&(this.wx(this.getCurrentTime()),this.A7(!0));g.Ex(z,2)&&(this.Gc(!0),this.rh.vz()&&this.V("html5_sabr_parse_live_metadata_playback_boundaries")&&L9(this.videoData)&&this.videoData.Z&&(f={minst:""+this.videoData.Z.W0,cminst:""+(this.videoData.Z.jx()+this.ex()),maxst:""+this.videoData.Z.eN, hts:""+this.videoData.Z.wh,cmaxst:""+(this.videoData.Z.jA()+this.ex())},this.On("sabrSeekableBoundaries",f)));g.Ex(z,128)&&this.Iv();this.videoData.Z&&this.videoData.isLivePlayback&&!this.Qr&&(tT(z,8)<0?bxZ(this.videoData.Z):g.Ex(z,8)&&this.videoData.Z.resume());n_9(this.Sx,z);Yg9(this.JZ(),z);if(H&&!this.Sm())try{for(var b=g.n(this.iS),L=b.next();!L.done;L=b.next()){var u=L.value;mJu(this.gP,u);this.publish("statechange",u)}}finally{this.iS.length=0}}}; g.S.zz=function(){this.jy.tick("qoes")}; g.S.B4=function(){this.Sx.B4()}; g.S.Pm=function(Q,z,H,f){a:{var b=this.yF;f=f===void 0?"LICENSE":f;H=H.substring(0,256);var L=oj(z);Q==="drm.keyerror"&&this.IB&&this.IB.B.keys.length>1&&b.D<96&&(Q="drm.sessionlimitexhausted",L=!1);if(L)if(b.videoData.B&&b.videoData.B.video.isHdr())QDZ(b,Q);else{if(b.HI.VN(Q,z,f,H),Vc6(b,{detail:H}))break a}else b.h7(Q,{detail:H});Q==="drm.sessionlimitexhausted"&&(b.On("retrydrm",{sessionLimitExhausted:1}),b.D++,OA9(b.HI))}}; g.S.T4v=function(){var Q=this,z=g.qf(this.rh.experiments,"html5_license_constraint_delay"),H=Hw();z&&H?(z=new g.e_(function(){Q.ye();qp(Q)},z),g.W(this,z),z.start()):(this.ye(),qp(this))}; g.S.xj=function(Q){this.publish("heartbeatparams",Q)}; g.S.XS=function(Q){this.On("keystatuses",Cjv(Q));var z="auto",H=!1;this.videoData.B&&(z=this.videoData.B.video.quality,H=this.videoData.B.video.isHdr());if(this.V("html5_drm_check_all_key_error_states")){var f=t1Y(z,H);f=Xj(Q)?E19(Q,f):Q.D.includes(f)}else{a:{z=t1Y(z,H);for(f in Q.Z)if(Q.Z[f].status==="output-restricted"){var b=Q.Z[f].type;if(z===""||b==="AUDIO"||z===b){f=!0;break a}}f=!1}f=!f}if(this.V("html5_enable_vp9_fairplay")){if(H)if(Q.Y){var L;if((L=this.IB)==null?0:Bj(L.Z))if((H=this.IB)== null)H=0;else{z=L=void 0;b=g.n(H.B.values());for(var u=b.next();!u.done;u=b.next())u=u.value,L||(L=$5c(u,"SD")),z||(z=$5c(u,"AUDIO"));H.wS({sd:L,audio:z});H=L==="output-restricted"||z==="output-restricted"}else H=!f;if(H){this.On("drm",{dshdr:1});QDZ(this.yF);return}}else{this.videoData.qW||(this.videoData.qW=!0,this.On("drm",{dphdr:1}),this.lL(!0));return}var X;if((X=this.IB)==null?0:Bj(X.Z))return}else if(X=Q.Y&&f,H&&!X){QDZ(this.yF);return}f||E19(Q,"AUDIO")&&E19(Q,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"), Q=Cjv(Q),this.zU?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.V("html5_report_fatal_drm_restricted_error_killswitch")||this.VN("drm.keyerror",2,void 0,"info."+Q)):(this.zU=!0,this.h7(new Oh("qoe.restart",Object.assign({},{retrydrm:1},Q))),SW(this),OA9(this)))}; g.S.gNh=function(){if(!this.videoData.L3&&this.mediaElement&&!this.isBackground()){var Q="0";this.mediaElement.OG()>0&&lZ(this.mediaElement)>=5&&this.videoData.L&&this.videoData.L.Z&&(this.zq(bC(this.playerState,1)),obL(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),Q="1");N3J(this);var z=this.videoData.L;Q={restartmsg:Q,mfmt:!z_(this.videoData),mdrm:!(!(z&&z.videoInfos&&z.videoInfos.length&&z.videoInfos[0].AM)||this.IB),mfmtinfo:!this.videoData.B,prerolls:this.l7()?this.Nj.join(","): "0"};if(this.IB){z=this.IB;if(z.B.size<=0){var H="ns;";z.U||(H+="nr;");z=H+="ql."+z.L.length}else z=Cjv(z.B.values().next().value),z=xK(z);Q.drmp=z}var f;Object.assign(Q,((f=this.xv)==null?void 0:f.TL())||{});var b;Object.assign(Q,((b=this.mediaElement)==null?void 0:b.TL())||{});this.JZ().h7("qoe.start15s",xK(Q));this.publish("loadsofttimeout")}}; g.S.wx=function(Q){this.videoData.lengthSeconds!==Q&&(this.videoData.lengthSeconds=Q,qp(this))}; g.S.Gc=function(Q,z){var H=this;Q=Q===void 0?!1:Q;if(!this.Rw)if(DA("att_s","player_att")||Vv("att_s",void 0,"player_att"),this.V("use_rta_for_player"))(function(){var b,L,u,X;return g.B(function(v){switch(v.Z){case 1:if(!(b=Q)){v.bT(2);break}return g.Y(v,g.Ybv(),3);case 3:b=!v.B;case 2:if(b)return v.return();g.$v(v,4);L=BTn(H.JZ());if(!L)throw Error();u={};return g.Y(v,g.ALJ((u.cpn=H.videoData.clientPlaybackNonce,u.encryptedVideoId=H.videoData.videoId||"",u),3E4),6);case 6:X=v.B;if(H.Rw)throw Error(); if(!X.challenge)throw g.PT(Error("Not sending attestation ping; no attestation challenge string")),Error();H.Rw=!0;var y=[X.challenge];X.error?y.push("r1c="+X.error):X.webResponse&&y.push("r1a="+X.webResponse);var q;((q=X.adblockReporting)==null?void 0:q.reportingStatus)!==void 0&&y.push("r6a="+X.adblockReporting.reportingStatus);var M;((M=X.adblockReporting)==null?void 0:M.broadSpectrumDetectionResult)!==void 0&&y.push("r6b="+X.adblockReporting.broadSpectrumDetectionResult);L(y.join("&"));Vv("att_f", void 0,"player_att");g.Fa(v,0);break;case 4:g.xv(v),Vv("att_e",void 0,"player_att"),g.Gu(v)}})})().then(function(){z==null||z()}); else{var f=new g.ISv(this.videoData);if("c1a"in f.kM&&!g.AK.isInitialized()){Vv("att_wb",void 0,"player_att");this.Es===2&&Math.random()<.01&&g.PT(Error("Botguard not available after 2 attempts"));if(Q)return;if(this.Es<5){g.lp(this.XX);this.Es++;return}}(f=g.AOp(f))?(Vv("att_f",void 0,"player_att"),syc(this.JZ(),f),this.Rw=!0):Vv("att_e",void 0,"player_att")}}; g.S.qj=function(Q){Q=Q===void 0?!1:Q;if(qY(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.Vd()||g.JM(this.videoData)))Q=this.getCurrentTime();else if(g.mI(this.videoData)&&this.OY){Q=this.OY;var z=this.getCurrentTime();Q=(Q=BFn(Q,z*1E3))?(Q.AT()-Q.G1())/1E3:0}else Q=this.jA(Q);return Q}; g.S.i4=function(){return g.mI(this.videoData)?this.videoData.jx():this.jx()}; g.S.jA=function(Q){return this.Sx.jA(Q===void 0?!1:Q)}; g.S.jx=function(){return this.Sx.jx()}; g.S.ex=function(){return this.Sx?this.Sx.ex():0}; g.S.getStreamTimeOffset=function(){return this.Sx?this.Sx.getStreamTimeOffset():0}; g.S.Gl=function(){var Q=0;this.rh.V("web_player_ss_media_time_offset")&&(Q=this.getStreamTimeOffset()===0?this.ex():this.getStreamTimeOffset());return Q}; g.S.setPlaybackRate=function(Q){var z;this.playbackRate!==Q&&uT8(this.i7,(z=this.videoData.L)==null?void 0:z.videoInfos)&&(this.playbackRate=Q,SW(this));this.playbackRate=Q;this.mediaElement&&this.mediaElement.setPlaybackRate(Q)}; g.S.getPlaybackRate=function(){return this.playbackRate}; g.S.getPlaybackQuality=function(){var Q="unknown";if(this.videoData.B&&(Q=this.videoData.B.video.quality,Q==="auto"&&this.mediaElement)){var z=this.e5();z&&z.videoHeight>0&&(Q=aj(z.videoWidth,z.videoHeight))}return Q}; g.S.isHdr=function(){return!!(this.videoData.B&&this.videoData.B.video&&this.videoData.B.video.isHdr())}; g.S.Op=function(){this.JZ().Op()}; g.S.sendVideoStatsEngageEvent=function(Q,z){var H=this.JZ();H.Z?(H=YP(H.Z,"engage"),H.wh=Q,H.send(z)):z&&z()}; g.S.kV=function(Q){return this.JZ().kV(Q)}; g.S.isAtLiveHead=function(Q,z){z=z===void 0?!1:z;return qY(this.videoData)&&(this.bl||z)?this.Sx.isAtLiveHead(Q):!1}; g.S.SN=function(){var Q=this.jA(),z=this.getCurrentTime(),H;(H=!qY(this.videoData))||(H=this.Sx,H=!(H.Z&&H.Z.L));return H||this.Vd()||isNaN(Q)||isNaN(z)?0:Math.max(0,Q-z)}; g.S.aC=function(Q){(this.bl=Q)||this.sA.stop();this.videoData.Z&&(Q?this.videoData.Z.resume():bxZ(this.videoData.Z));if(this.xv){var z=this.videoData.V("html5_disable_preload_for_ssdai_with_preroll")&&this.vG()&&this.videoData.isLivePlayback;Q&&!z?this.xv.resume():pL(this,!0)}g.w(this.playerState,2)||Q?g.w(this.playerState,512)&&Q&&this.zq(Lx(this.playerState,512)):this.zq(bC(this.playerState,512));z=this.JZ();z.qoe&&(z=z.qoe,g.$P(z,g.nD(z.provider),"stream",[Q?"A":"I"]))}; g.S.Hm=function(Q){Q={n:Q.name,m:Q.message};this.JZ().h7("player.exception",xK(Q))}; g.S.tT=H_(28);g.S.Ct=H_(57);g.S.C4=function(Q){this.JZ().C4(Q)}; g.S.yT=function(Q){this.JZ().yT(Q)}; g.S.l3=function(Q){this.JZ().l3(Q)}; g.S.Zs=H_(34);g.S.CA=H_(40);g.S.I8=function(Q){this.JZ().I8(Q)}; g.S.y7=function(){this.On("hidden",{},!0)}; g.S.RR=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.S.qm=function(){return this.xv?this.xv.qm():!0}; g.S.setLoop=function(Q){this.loop=Q;this.mediaElement&&!g.OV(this.rh)&&this.mediaElement.setLoop(Q)}; g.S.FD=function(){return this.mediaElement&&!g.OV(this.rh)?this.mediaElement.FD():this.loop}; g.S.yZ=function(Q){this.On("timestamp",{o:Q.toString()});this.Sx.yZ(Q)}; g.S.Pc=function(Q){this.jy.tick(Q)}; g.S.GS=function(Q){return this.jy.GS(Q)}; g.S.K$=function(Q){this.jy.K$(Q)}; g.S.On=function(Q,z,H){H=H===void 0?!1:H;this.JZ().On(Q,z,H)}; g.S.b3=function(Q,z,H){H=H===void 0?!1:H;this.JZ().On(Q,z,H)}; g.S.h7=function(Q){this.JZ().h7(Q.errorCode,xK(Q.details));Q=Q.errorCode;if(this.videoData.isLivePlayback&&(Q==="qoe.longrebuffer"||Q==="qoe.slowseek")||Q==="qoe.restart"){Q=this.xv?Oy_(this.xv.videoTrack):{};var z,H;this.On("lasoe",Object.assign(this.xv?Oy_(this.xv.audioTrack):{},(z=this.vI)==null?void 0:(H=z.Z)==null?void 0:H.P6()));var f,b;this.On("lvsoe",Object.assign(Q,(f=this.vI)==null?void 0:(b=f.B)==null?void 0:b.P6()))}}; g.S.o$=function(Q,z,H){this.JZ().o$(Q,z,H)}; g.S.HR=function(Q,z,H,f,b,L,u,X){var v;if((v=this.videoData.Z)!=null&&v.isLive){var y=z.playerType===2?z:Q,q=Q.videoData.videoId,M=z.videoData.videoId;if(q&&M){v=this.JZ();if(v.qoe){var C=v.qoe,t=Q.cpn,E=z.cpn,G=y.videoData.UY,x=C.provider.videoData.clientPlaybackNonce,J=C.provider.videoData.videoId,I=E!==x&&M!==J;x=t!==x&&q!==J;C.reportStats();C.adCpn&&C.adCpn!==t||(C.adCpn=x?t:"",C.Ze=x?q:"",C.adFormat=x?G:void 0,oy(C,2,L?4:b?2:0,E,M,f),C.reportStats(),C.adCpn=I?E:"",C.Ze=I?M:"",C.adFormat=I?G: void 0,oy(C,2,L?5:b?3:1,t,q,H),C.reportStats())}H=Q.cpn;if(v.L.has(H)){if(b=v.L.get(H),BL(b,!0).send(),sg(b),H!==v.provider.videoData.clientPlaybackNonce){$J8(b);var r;(r=v.Z)==null||pL9(r);v.L.delete(H)}}else v.tN=v.provider.videoData.clientPlaybackNonce,v.tN&&v.Z&&(v.L.set(v.tN,v.Z),BL(v.Z).send(),sg(v.Z));r=z.cpn;y=y.videoData;f-=this.Gl();if(v.L.has(r)){f=v.L.get(r);var U=f.L&&isNaN(f.S)?rT(f):NaN;f=Gb8(f,!1);isNaN(U)||(f.Y=U);f.send()}else f=PH9(v,v.provider,y,f),v.L.set(r,f),jyu(f,new g.Cp(bC(new g.zE, 8),new g.zE)),EPJ(f),(U=v.Z)==null||sg(U);v.tN=r;this.V("html5_unify_csi_server_stitched_transition_logging")?ZO6(Q.cpn,z.cpn,this.videoData.clientPlaybackNonce,z.videoData,u,void 0,X):(v=this.jy,f=this.videoData.clientPlaybackNonce,U=z.videoData,Q=(Q.cpn===f?"video":"ad")+"_to_"+(z.cpn===f?"video":"ad"),f={},U.j&&(f.cttAuthInfo={token:U.j,videoId:U.videoId}),u&&(f.startTime=u),WC(Q,f),g.hN({targetVideoId:U.videoId,targetCpn:z.cpn,isSsdai:!0},Q),v.rh.V("html5_enable_ssdai_transition_with_only_enter_cuerange")? u||CA(X,Q):CA(X,Q))}}else this.logger.Z(360717806,"SSTEvent for nonSS")}; g.S.yn=function(){var Q=this.sV,z=Q.Kd;Q.Kd=[];return z}; g.S.NU=function(Q){this.videoData.kL=!0;this.h7(new Oh("sabr.fallback",Q));this.lL(!0)}; g.S.m6=function(Q,z){this.videoData.Db=!0;if(z===void 0||z)this.h7(new Oh("qoe.restart",Q)),this.lL(!0);this.videoData.OZ()&&this.V("html5_reload_caption_on_ssdai_fallback")&&this.sV.j9()}; g.S.UL=function(Q){this.On("sdai",{aftimeout:Q});this.h7(new Oh("ad.fetchtimeout",{timeout:Q}))}; g.S.gK=function(Q,z){this.On("timelineerror",Q);Q=new Oh("dai.timelineerror",Q);z?this.VN("dai.timelineerror",1,"RETRYABLE_ERROR",xK(Q.details)):this.h7(Q)}; g.S.B0=function(){return g.nD(this.JZ().provider)}; g.S.getPlayerSize=function(){return this.nx.getPlayerSize()}; g.S.Oq=function(){return this.nx.Oq()}; g.S.vB=function(){return this.jy}; g.S.gx=function(){return this.sV.gx()}; g.S.getVolume=function(){return this.sV.getVolume()}; g.S.Sd=function(){return this.sV.Sd()}; g.S.isMuted=function(){return this.sV.isMuted()}; g.S.eC=function(){return this.sV.eC()}; g.S.SF=function(){this.Qr=!0}; g.S.V=function(Q){return this.rh.V(Q)}; g.S.us=function(Q,z,H,f,b){this.On("xvt",{m:Q,g:z?1:0,tt:H?1:0,np:f?1:0,c:b})}; g.S.Lj=function(){var Q;(Q=this.xv)==null||Q.resume()}; g.S.vG=function(){return g.kO(this.Nj,"ad")}; g.S.U7=function(){var Q=this.getCurrentTime(),z=Q-this.ex();var H=this.mediaElement?vs(this.mediaElement.Ux()):0;H=Math.floor(Math.max(H-z,0))+100;var f;if(!this.V("html5_ssdai_disable_seek_to_skip")&&((f=this.xv)==null?0:f.zo(z,this.jA())))return this.On("sdai",{skipad:1,ct:z.toFixed(3),adj:0}),!0;var b;return((b=this.xv)==null?0:b.U7(z,H))?(this.On("sdai",{skipad:1,ct:z.toFixed(3),adj:H.toFixed(3)}),L9(this.videoData)&&this.xv.seek(z+H,{seekSource:89,lr:"videoplayer_skipServerStitchedAd"}),Ibn(this.Sx, Q),!0):!1}; g.S.vz=function(){return this.rh.vz()}; g.S.tj=function(){if(this.V("html5_generate_content_po_token"))return this.videoData.Fn||"";this.sV.V0();return this.rh.h$||""}; g.S.bR=function(){if(this.videoData.videoId)return this.videoData.OM}; g.S.Ki=function(){return this.videoData.videoId}; g.S.kU=function(){return this.sV.Pp}; g.S.NS=function(){return this.aU}; g.S.Ll=function(){return this.sV.Ll()}; g.S.iU=function(Q,z){this.Sx.iU(Q,z)}; g.S.J1=function(){this.Sx.J1()}; g.S.aX=function(Q,z){var H=this.V("html5_generate_content_po_token")?this.videoData:void 0;this.sV.aX(Q,z,H)}; g.S.gk=function(Q,z){var H;(H=this.xv)==null||H.gk(Q,z)}; g.S.mj=function(){var Q=this.AB();return!!Q&&Q.mj()}; g.S.t$=function(){return this.OY}; g.S.BR=function(Q,z){this.JZ().BR(Q,z)}; g.S.T0=function(){return this.JZ().T0()}; g.S.g5=function(){return this.videoData.R5}; g.S.PU=function(){return this.sV.PU()}; g.S.QS=function(){return this.sV.QS(this)}; g.S.MI=function(){this.FH=!0}; g.S.R0=function(){return this.xz}; g.S.i5=function(Q){var z;(z=this.xv)==null||z.i5(Q)}; g.S.Y8=function(){var Q;(Q=this.xv)==null||Q.Y8()};g.p(Yua,TI);g.p(r4v,TI);g.S=r4v.prototype;g.S.seekToChapterWithAnimation=function(Q){var z=this;if(g.EZ(this.api)&&!(Q<0)){var H=this.api.getVideoData(),f=H.r7;if(f&&Q=0)return;z=~z;g.b4(this.items,z,0,Q);uT(this.menuItems.element,Q.element,z)}Q.subscribe("size-change",this.Hy,this);this.menuItems.publish("size-change")}; g.S.nA=function(Q){Q.unsubscribe("size-change",this.Hy,this);this.Sm()||(g.e5(this.items,Q),this.menuItems.element.removeChild(Q.element),this.menuItems.publish("size-change"))}; g.S.Hy=function(){this.menuItems.publish("size-change")}; g.S.focus=function(){for(var Q=0,z=0;z1&&g.B9(this)}; g.S.Ty=function(){SOv(this);this.LH&&(LMA(this),g.j$(this.element,this.size))}; g.S.R6=function(){var Q=this.Z.pop();u6Z(this,Q,this.Z[this.Z.length-1],!0)}; g.S.kP=function(Q){if(!Q.defaultPrevented)switch(Q.keyCode){case 27:this.fH();Q.preventDefault();break;case 37:this.Z.length>1&&this.R6();Q.preventDefault();break;case 39:Q.preventDefault()}}; g.S.focus=function(){this.Z.length&&this.Z[this.Z.length-1].focus()}; g.S.zv=function(){g.hf.prototype.zv.call(this);this.j&&this.j.dispose();this.Y&&this.Y.dispose()};g.p(P9,g.rI);P9.prototype.open=function(Q,z){this.initialize(Q.items)&&this.ir(z,!!z)}; P9.prototype.initialize=function(Q){g.Y_(this.Z6);if(Q===void 0||Q.length===0)return!1;var z=Q.length;Q=g.n(Q);for(var H=Q.next();!H.done;H=Q.next())this.md(H.value,z--);return!0}; P9.prototype.md=function(Q,z){Q.menuNavigationItemRenderer?y9n(this,Q.menuNavigationItemRenderer,z):Q.menuServiceItemRenderer&&qOk(this,Q.menuServiceItemRenderer,z)};g.p(ai,Np);g.S=ai.prototype;g.S.eW=function(Q){Q.target!==this.dismissButton.element&&Q.target!==this.overflowButton.element&&(this.XM(),this.onClickCommand&&this.K.F$("innertubeCommand",this.onClickCommand))}; g.S.XE=function(){this.enabled=!1;this.U.hide()}; g.S.vp=function(){return!!this.Z&&this.enabled}; g.S.onVideoDataChange=function(Q,z){this.lG(z);if(this.Z){this.Ax();a:if(!this.isCounterfactual){var H,f,b;this.banner.update({title:(H=this.Z)==null?void 0:H.title,subtitle:(f=this.Z)==null?void 0:f.subtitle,metadata:(b=this.Z)==null?void 0:b.metadataText});var L;this.onClickCommand=g.K((L=this.Z)==null?void 0:L.onTap,UX);var u;if(Q=g.K((u=this.Z)==null?void 0:u.onOverflow,UX))this.Y=g.K(Q,G75);var X;if((X=this.Z)==null?0:X.thumbnailImage){var v,y;u=((v=this.Z)==null?void 0:(y=v.thumbnailImage)== null?void 0:y.sources)||[];if(u.length===0)break a;this.thumbnailImage.update({url:u[0].url})}else{var q;if((q=this.Z)==null?0:q.thumbnailIconName){var M;this.thumbnailIcon.update({icon:(M=this.Z)==null?void 0:M.thumbnailIconName})}}var C;this.shouldShowOverflowButton=!((C=this.Z)==null||!C.shouldShowOverflowButton);var t;this.shouldHideDismissButton=!((t=this.Z)==null||!t.shouldHideDismissButton)}var E;this.banner.element.setAttribute("aria-label",((E=this.Z)==null?void 0:E.a11yLabel)||"");var G; this.iT=(G=this.Z)==null?void 0:G.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;CsJ(this)}}; g.S.Crv=function(){this.isVisible=!0;CsJ(this)}; g.S.ug5=function(){this.isVisible=!1;CsJ(this)}; g.S.S_=function(){Np.prototype.S_.call(this);this.B&&this.K.logVisibility(this.banner.element,this.isVisible)}; g.S.XM=function(){Np.prototype.XM.call(this,!1);this.B&&this.K.logClick(this.banner.element)}; g.S.M1=function(Q){this.j||(this.j=new P9(this.K),g.W(this,this.j));var z,H;if((z=this.Y)==null?0:(H=z.menu)==null?0:H.menuRenderer)this.j.open(this.Y.menu.menuRenderer,Q.target),Q.preventDefault()}; g.S.lG=function(){}; g.S.Ax=function(){}; g.S.zv=function(){this.K.Ys("suggested_action_view_model");Np.prototype.zv.call(this)};g.p(Uk,ai); Uk.prototype.lG=function(Q){var z,H,f;this.productUpsellSuggestedActionViewModel=g.K((z=Q.getWatchNextResponse())==null?void 0:(H=z.playerOverlays)==null?void 0:(f=H.playerOverlayRenderer)==null?void 0:f.suggestedActionViewModel,UIu);var b;if((b=this.productUpsellSuggestedActionViewModel)==null?0:b.content){var L;this.Z=g.K((L=this.productUpsellSuggestedActionViewModel)==null?void 0:L.content,nTT)}var u,X;if(this.B=!!((u=this.productUpsellSuggestedActionViewModel)==null?0:(X=u.loggingDirectives)==null? 0:X.trackingParams)){var v,y;this.K.setTrackingParams(this.banner.element,((v=this.productUpsellSuggestedActionViewModel)==null?void 0:(y=v.loggingDirectives)==null?void 0:y.trackingParams)||null)}var q;this.isCounterfactual=!((q=this.productUpsellSuggestedActionViewModel)==null||!q.isCounterfactualServing)}; Uk.prototype.Ax=function(){var Q=[],z,H=g.n(((z=this.productUpsellSuggestedActionViewModel)==null?void 0:z.ranges)||[]);for(z=H.next();!z.done;z=H.next()){var f=z.value;f&&(z=Number(f.startTimeMilliseconds),f=Number(f.endTimeMilliseconds),isNaN(z)||isNaN(f)||Q.push(new g.HD(z,f,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.K.UZ(Q)};g.p(tO_,TI);g.p(c9,TI);c9.prototype.onVideoDataChange=function(Q,z){var H=this;if(!Dm(z)&&(Q==="newdata"&&ppZ(this),this.B&&Q==="dataloaded")){var f;M1(HV(this.api.C(),(f=this.api.getVideoData())==null?void 0:g.hM(f)),function(b){var L=$gJ(b);L&&(L=nzu(H,H.Z||L))&&H.api.setAudioTrack(L,!0);H.L&&(H.L=!1,FMA(H,b))})}}; c9.prototype.Vk=function(){var Q=this;if(g.OV(this.api.C())){var z,H=g.zZ(this.api.C(),(z=this.api.getVideoData())==null?void 0:g.hM(z));return M1(SJ(H),function(f){var b=UZ();cG(b,f);return Q.api.Vk(b)})}return SJ(this.api.Vk())};g.p(g.hz,g.dX);g.S=g.hz.prototype;g.S.open=function(){g.sk(this.kt,this.B)}; g.S.RJ=function(Q){xg_(this);var z=this.options[Q];z&&(z.element.setAttribute("aria-checked","true"),this.UV(this.Z5(Q)),this.L=Q)}; g.S.wz=function(Q){g.Y_(this.B);for(var z={},H=!1,f=0;f=0?this.Z.playbackRate:1}catch(Q){return 1}}; g.S.setPlaybackRate=function(Q){this.getPlaybackRate()!==Q&&(this.Z.playbackRate=Q);return Q}; g.S.FD=function(){return this.Z.loop}; g.S.setLoop=function(Q){this.Z.loop=Q}; g.S.canPlayType=function(Q,z){return this.Z.canPlayType(Q,z)}; g.S.isPaused=function(){return this.Z.paused}; g.S.isSeeking=function(){return this.Z.seeking}; g.S.isEnded=function(){return this.Z.ended}; g.S.qN=function(){return this.Z.muted}; g.S.qA=function(Q){sh();this.Z.muted=Q}; g.S.WP=function(){return this.Z.played||bZ([],[])}; g.S.Ux=function(){try{var Q=this.Z.buffered}catch(z){}return Q||bZ([],[])}; g.S.MS=function(){return this.Z.seekable||bZ([],[])}; g.S.Jf=function(){var Q=this.Z;return Q.getStartDate?Q.getStartDate():null}; g.S.getCurrentTime=function(){return this.Z.currentTime}; g.S.setCurrentTime=function(Q){this.Z.currentTime=Q}; g.S.getDuration=function(){return this.Z.duration}; g.S.load=function(){var Q=this.Z.playbackRate;try{this.Z.load()}catch(z){}this.Z.playbackRate=Q}; g.S.pause=function(){this.Z.pause()}; g.S.play=function(){var Q=this.Z.play();if(!Q||!Q.then)return null;Q.then(void 0,function(){}); return Q}; g.S.OG=function(){return this.Z.readyState}; g.S.LT=function(){return this.Z.networkState}; g.S.JF=function(){return this.Z.error?this.Z.error.code:null}; g.S.q8=function(){return this.Z.error?this.Z.error.message:""}; g.S.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.Z instanceof window.HTMLVideoElement&&this.Z.getVideoPlaybackQuality)return this.Z.getVideoPlaybackQuality();if(this.Z){var Q=this.Z,z=Q.webkitDroppedFrameCount;if(Q=Q.webkitDecodedFrameCount)return{droppedVideoFrames:z||0,totalVideoFrames:Q}}return{}}; g.S.oJ=function(){return!!this.Z.webkitCurrentPlaybackTargetIsWireless}; g.S.bf=function(){return!!this.Z.webkitShowPlaybackTargetPicker()}; g.S.togglePictureInPicture=function(){var Q=this.Z,z=window.document;window.document.pictureInPictureEnabled?this.Z!==z.pictureInPictureElement?Q.requestPictureInPicture():z.exitPictureInPicture():r5()&&Q.webkitSetPresentationMode(Q.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.S.Wr=function(){var Q=this.Z;return new g.t6(Q.offsetLeft,Q.offsetTop)}; g.S.getSize=function(){return g.FL(this.Z)}; g.S.setSize=function(Q){g.j$(this.Z,Q)}; g.S.getVolume=function(){return this.Z.volume}; g.S.setVolume=function(Q){sh();this.Z.volume=Q}; g.S.UD=function(Q){this.S[Q]||(this.Z.addEventListener(Q,this.listener),this.S[Q]=this.listener)}; g.S.setAttribute=function(Q,z){this.Z.setAttribute(Q,z)}; g.S.removeAttribute=function(Q){this.Z.removeAttribute(Q)}; g.S.hasAttribute=function(Q){return this.Z.hasAttribute(Q)}; g.S.jG=H_(67);g.S.pR=H_(69);g.S.ix=H_(71);g.S.Jc=H_(73);g.S.Bd=function(){return Gd(this.Z)}; g.S.jZ=function(Q){g.SK(this.Z,Q)}; g.S.IR=function(Q){return g.tx(this.Z,Q)}; g.S.sb=function(){return g.XU(document.body,this.Z)}; g.S.audioTracks=function(){var Q=this.Z;if("audioTracks"in Q)return Q.audioTracks}; g.S.zv=function(){for(var Q=g.n(Object.keys(this.S)),z=Q.next();!z.done;z=Q.next())z=z.value,this.Z.removeEventListener(z,this.S[z]);Ts.prototype.zv.call(this)}; g.S.Sr=function(Q){this.Z.disableRemotePlayback=Q};g.p(Ri,g.m);g.p(zj,g.m);zj.prototype.show=function(){g.m.prototype.show.call(this);this.Jh();this.Yv.V("html5_enable_moving_s4n_window")&&g.OV(this.Yv.C())&&this.N()}; zj.prototype.hide=function(){g.m.prototype.hide.call(this);this.delay.stop();this.D.stop()}; zj.prototype.Jh=function(){var Q=(0,g.NV)(),z=Psp(this.Yv);Qn(this.Z,z.bandwidth_samples);Qn(this.Y,z.network_activity_samples);Qn(this.L,z.live_latency_samples);Qn(this.B,z.buffer_health_samples);var H={};z=g.n(Object.entries(z));for(var f=z.next();!f.done;f=z.next()){var b=g.n(f.value);f=b.next().value;b=b.next().value;this.U[f]!==b&&(H[f]=" "+String(b));this.U[f]=b}this.update(H);Q=(0,g.NV)()-Q>25?5E3:500;this.delay.start(Q)}; zj.prototype.N=function(){this.j?(this.position+=1,this.position>15&&(this.j=!1)):(--this.position,this.position<=0&&(this.j=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.D.start(2E4)};g.p(c9p,TI);g.p(HE,g.h);HE.prototype.Z=function(){var Q=(0,g.NV)()-this.startTime;Q=Qthis.D[Q])&&(this.Z=Q,R7Y(this))}; g.S.onCueRangeExit=function(Q){var z=lHa(this,Q);z&&this.Z===Q&&this.api.F$("innertubeCommand",z);this.clearTimeout();this.Z=void 0}; g.S.onTimeout=function(Q){this.Z!==void 0&&(Q==null?void 0:Q.cueRangeId)===this.Z&&(Q=lHa(this,this.Z))&&this.api.F$("innertubeCommand",Q)}; g.S.LS=function(Q){this.B=Q}; g.S.qV=function(){R7Y(this);this.B=void 0}; g.S.setTimeout=function(Q){var z=this,H=Number(Q==null?void 0:Q.maxVisibleDurationMilliseconds);H&&(this.clearTimeout(),this.S=setTimeout(function(){z.onTimeout(Q)},H))}; g.S.clearTimeout=function(){this.S&&clearTimeout(this.S);this.S=void 0;this.Y=!1}; g.S.zv=function(){this.timelyActions=this.B=this.Z=this.videoId=void 0;this.D={};this.NG();this.clearTimeout();TI.prototype.zv.call(this)};g.p(HOc,TI);var $D={},C_6=($D[1]="pot_ss",$D[2]="pot_sf",$D[3]="pot_se",$D[4]="pot_xs",$D[5]="pot_xf",$D[6]="pot_xe",$D),tk6=["www.youtube-nocookie.com","www.youtubeeducation.com"];g.p(SH,TI);SH.prototype.zv=function(){this.j&&(g.Gr(this.j),this.j=void 0);TI.prototype.zv.call(this)}; SH.prototype.V0=function(){(this.Z?!this.Z.isReady():this.B)&&vE(this)}; SH.prototype.cU=function(Q,z,H){var f=this;if(bOJ(Q)){var b=H||"",L;if((L=this.Z)==null?0:L.isReady())z=yn(this,b),LVa(Q,z);else{var u=new g.nW;z.push(u.promise);this.D.promise.then(function(){var X=yn(f,b);LVa(Q,X);u.resolve()})}}}; SH.prototype.W2=function(Q){var z=this;if(this.Z||this.B)Q.Fn=yn(this,Q.videoId),this.Z&&!this.Z.isReady()&&(this.L=new k6,this.D.promise.then(function(){z.jy.GS("pot_if");Q.Fn=yn(z,Q.videoId)}))};g.p(pP9,TI);g.p(qb,g.h);qb.prototype.Z=function(){for(var Q=g.n(g.A8.apply(0,arguments)),z=Q.next();!z.done;z=Q.next())(z=z.value)&&this.features.push(z)}; qb.prototype.zv=function(){for(var Q=this.features.length-1;Q>=0;Q--)this.features[Q].dispose();this.features.length=0;g.h.prototype.zv.call(this)};Mb.prototype.YC=function(){this.B=(0,g.NV)()}; Mb.prototype.reset=function(){this.Z=this.B=NaN}; Mb.prototype.XT=function(Q,z){if(Q.clientPlaybackNonce&&!isNaN(this.Z)){if(Math.random()<.01){z=z?"pbp":"pbs";var H={startTime:this.Z};Q.j&&(H.cttAuthInfo={token:Q.j,videoId:Q.videoId});WC("seek",H);g.hN({clientPlaybackNonce:Q.clientPlaybackNonce},"seek");isNaN(this.B)||ib("pl_ss",this.B,"seek");ib(z,(0,g.NV)(),"seek")}this.reset()}};g.S=n2A.prototype;g.S.reset=function(){ao(this.timerName)}; g.S.tick=function(Q,z){ib(Q,z,this.timerName)}; g.S.GS=function(Q){return Kj(Q,this.timerName)}; g.S.K$=function(Q){xd(Q,void 0,this.timerName)}; g.S.infoGel=function(Q){g.hN(Q,this.timerName)};g.p($8L,g.Xp);g.S=$8L.prototype;g.S.Yr=function(Q){return this.loop||!!Q||this.index+1=0}; g.S.setShuffle=function(Q){this.shuffle=Q;Q=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var z=0;z0)||PE(this,1,!0)}; g.S.oY=function(){this.j=!0;this.Z.DS(this.S);this.S=this.Z.X(document,"mouseup",this.K6)}; g.S.K6=function(){this.j=!1;PE(this,8,!1);this.Z.DS(this.S);this.S=this.Z.X(this.target,"mousedown",this.oY)}; g.S.e1=function(Q){if(Q=(Q=Q.changedTouches)&&Q[0])this.L3=Q.identifier,this.Z.DS(this.N),this.N=this.Z.X(this.target,"touchend",this.ju,void 0,!0),PE(this,1024,!0)}; g.S.ju=function(Q){if(Q=Q.changedTouches)for(var z=0;z1280||L>720)if(b=H.MP("maxresdefault.jpg"))break;if(f>640||L>480)if(b=H.MP("maxresdefault.jpg"))break; if(f>320||L>180)if(b=H.MP("sddefault.jpg")||H.MP("hqdefault.jpg")||H.MP("mqdefault.jpg"))break;if(b=H.MP("default.jpg"))break}g.kh(z)&&(z=new Image,z.addEventListener("load",function(){Xba()}),z.src=b?b:"",this.api.vB().tick("ftr")); this.j.style.backgroundImage=b?"url("+b+")":""};g.p(g.iN,g.m);g.iN.prototype.resize=function(){}; g.iN.prototype.B=function(Q){var z=this;this.L=!1;gIv(this);var H=Q.oP,f=this.api.C();H!=="GENERIC_WITHOUT_LINK"||f.j?H==="TOO_MANY_REQUESTS"?(f=this.api.getVideoData(),this.UV(DY(this,"TOO_MANY_REQUESTS_WITH_LINK",f.ma(),void 0,void 0,void 0,!1))):H!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||f.j?this.api.C().V("html5_enable_bandaid_error_screen")&&H==="HTML5_SPS_UMP_STATUS_REJECTED"&&!f.j?(f=f.hostLanguage,Q="//support.google.com/youtube?p=videoError",f&&(Q=g.Ve(Q,{hl:f})),this.UV(DY(this,"HTML5_SPS_UMP_STATUS_REJECTED", Q))):this.api.C().V("enable_adb_handling_in_sabr")&&H==="BROWSER_OR_EXTENSION_ERROR"&&!f.j?(f=f.hostLanguage,Q="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",f&&(Q=g.Ve(Q,{hl:f})),this.UV(DY(this,"BROWSER_OR_EXTENSION_ERROR",Q))):this.UV(g.h4(Q.errorMessage)):this.UV(DY(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(Q=f.hostLanguage,H="//support.google.com/youtube/?p=player_error1",Q&&(H=g.Ve(H, {hl:Q})),this.UV(DY(this,"GENERIC_WITH_LINK_AND_CPN",H,!0)),f.gT&&!f.D&&nIY(this,function(L){if(g.LK(L,z.api,!Ko(z.api.C()))){L={as3:!1,html5:!0,player:!0,cpn:z.api.getVideoData().clientPlaybackNonce};var u=z.api;u.g4("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:L});u.isFullscreen()&&u.toggleFullscreen()}})); if(this.L){var b=this.Mc("ytp-error-link");b&&(this.api.createClientVe(b,this,216104),this.api.logVisibility(b,!0),nIY(this,function(){z.api.logClick(b)}))}}; var pgJ=/([^<>]+)<\/a>/;g.p(ZJk,g.m);g.S=ZJk.prototype;g.S.onClick=function(Q){this.innertubeCommand?(this.K.F$("innertubeCommand",this.innertubeCommand),Q.preventDefault()):g.LK(Q,this.K,!0);this.K.logClick(this.element)}; g.S.onVideoDataChange=function(Q,z){$cL(this,z);this.oy&&jPJ(this,this.oy)}; g.S.Su=function(Q){var z=this.K.getVideoData();this.videoId!==z.videoId&&$cL(this,z);this.Z&&jPJ(this,Q.state);this.oy=Q.state}; g.S.ir=function(){this.D.show();this.K.publish("paidcontentoverlayvisibilitychange",!0);this.K.logVisibility(this.element,!0)}; g.S.fH=function(){this.D.hide();this.K.publish("paidcontentoverlayvisibilitychange",!1);this.K.logVisibility(this.element,!1)};g.p(KA,g.m);KA.prototype.hide=function(){this.Z.stop();this.message.style.display="none";g.m.prototype.hide.call(this)}; KA.prototype.onStateChange=function(Q){this.Ni(Q.state)}; KA.prototype.Ni=function(Q){(g.w(Q,128)||this.api.NS()?0:g.w(Q,16)||g.w(Q,1))?this.Z.start():this.hide()}; KA.prototype.B=function(){this.message.style.display="block"};g.p(Vn,g.hf);Vn.prototype.onMutedAutoplayChange=function(Q){this.L&&(Q?(FLY(this),this.ir()):(this.Z&&this.logClick(),this.fH()))}; Vn.prototype.BU=function(Q){this.api.isMutedByMutedAutoplay()&&g.Ex(Q,2)&&this.fH()}; Vn.prototype.onClick=function(){this.api.unMute();this.logClick()}; Vn.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.p(g.d3,g.Bt);g.S=g.d3.prototype;g.S.init=function(){var Q=this.api,z=Q.getPlayerStateObject();this.NN=Q.getPlayerSize();this.zq(z);this.GY();this.tZ();this.api.publish("basechromeinitialized",this);this.T9()&&this.api.publish("standardControlsInitialized")}; g.S.onVideoDataChange=function(Q,z){var H=this.VH!==z.videoId;if(H||Q==="newdata"){Q=this.api;Q.isFullscreen()||(this.NN=Q.getPlayerSize());var f;((f=this.api.getVideoData(1))==null?0:g.mI(f))&&this.bF()}H&&(this.VH=z.videoId,H=this.Iz,H.De=3E3,PE(H,512,!0),this.GY());this.api.V("web_render_jump_buttons")&&z.showSeekingControls&&(this.Cz=572)}; g.S.jBh=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; g.S.mJ=function(){var Q=this.api.ZC()&&this.api.t_(),z=this.api.uv();return this.SV||Q||this.MX||z}; g.S.bF=function(){var Q=!this.mJ();g.qP(this.api.getRootNode(),"ytp-menu-shown",!Q);var z;((z=this.api.getVideoData(1))==null?0:g.mI(z))&&g.qP(this.api.getRootNode(),"ytp-hide-controls",!Q)}; g.S.zt=function(Q){try{if(!g.XU(this.api.getRootNode(),Q))return!1}catch(z){return!1}for(;Q&&!Xqv(Q);)Q=Q===this.api.getRootNode()?null:Q.parentElement||null;return!!Q}; g.S.lw=function(Q){var z=this.api.getRootNode();g.qP(z,"ytp-autohide",Q);g.qP(z,"ytp-autohide-active",!0);this.Lk.start(Q?250:100);Q&&(this.UH=!1,g.vO(z,"ytp-touch-mode"));this.fB=!Q;this.api.lE(!Q)}; g.S.cW=function(){var Q=this.api.getRootNode();g.qP(Q,"ytp-autohide-active",!1)}; g.S.gsq=function(){this.ME=!0}; g.S.U4T=function(Q){if(this.api.C().V("player_doubletap_to_seek")||this.api.C().N)this.ME=!1,this.DD&&this.DS(this.DD),this.rM===0&&w3(this,Q)?(this.DQ(),this.cV.start(),this.DD=this.X(this.api.Un(),"touchmove",this.gsq,void 0,!0)):this.cV.stop();Jwk(this)&&w3(this,Q)&&!this.api.C().N&&OJv(this);var z=this.Kn.A9();if(!g.xh(this.api.C())&&Gt&&NQ8(this,Q))z&&Q.preventDefault();else if(this.UH=!0,g.SK(this.api.getRootNode(),"ytp-touch-mode"),this.Iz.l9(),this.api.C().V("player_doubletap_to_seek")||this.api.C().N)if(z= this.api.getPlayerStateObject(),!(!this.api.GZ()||g.w(z,2)&&g.og(this.api)||g.w(z,64))){z=Date.now()-this.KO;this.rM+=1;if(z<=350){this.TD=!0;z=this.api.getPlayerSize().width/3;var H=this.api.getRootNode().getBoundingClientRect(),f=Q.targetTouches[0].clientX-H.left;H=Q.targetTouches[0].clientY-H.top;var b=(this.rM-1)*10;f>0&&fz*2&&f=650;this.Iz.resize();g.qP(z,"ytp-fullscreen",this.api.isFullscreen());g.qP(z,"ytp-large-width-mode",H);g.qP(z,"ytp-small-mode",this.HB());g.qP(z,"ytp-tiny-mode",this.g0());g.qP(z,"ytp-big-mode",this.iW());this.n2&&this.n2.resize(Q)}; g.S.BU=function(Q){this.zq(Q.state);this.GY()}; g.S.kK=H_(5);g.S.v4=function(){var Q=!!this.VH&&!this.api.T1()&&!this.VZ,z=this.api.getPresentingPlayerType()===2,H=this.api.C();if(z){if(qAs&&H.V("enable_visit_advertiser_support_on_ipad_mweb"))return!1;z=IO(this.api.xt());Q&&(z&&z.player?Q=(Q=z.player.getVideoData(2))?Q.isListed&&!g.FE(z.player.C()):!1:(MZ("showInfoBarDuringAd: this is null"),Q=!1));return Q}return Q&&(H.P5||this.api.isFullscreen()||H.dS)}; g.S.GY=function(){var Q=this.v4();this.Up!==Q&&(this.Up=Q,g.qP(this.api.getRootNode(),"ytp-hide-info-bar",!Q))}; g.S.zq=function(Q){var z=Q.isCued()||this.api.l7()&&this.api.getPresentingPlayerType()!==3;z!==this.isCued&&(this.isCued=z,this.bk&&this.DS(this.bk),this.bk=this.X(this.api.Un(),"touchstart",this.U4T,void 0,z));var H=this.Iz,f=Q.isPlaying()&&!g.w(Q,32)||this.api.MZ();PE(H,128,!f);H=this.Iz;f=this.api.getPresentingPlayerType()===3;PE(H,256,f);H=this.api.getRootNode();g.w(Q,2)?f=[KX.ENDED]:(f=[],g.w(Q,8)?f.push(KX.PLAYING):g.w(Q,4)&&f.push(KX.PAUSED),g.w(Q,1)&&!g.w(Q,32)&&f.push(KX.BUFFERING),g.w(Q, 32)&&f.push(KX.SEEKING),g.w(Q,64)&&f.push(KX.UNSTARTED));g.vY(this.yj,f)||(g.yM(H,this.yj),this.yj=f,g.X9(H,f));f=this.api.C();var b=g.w(Q,2);a:{var L=this.api.C();var u=L.controlsType;switch(u){case "2":case "0":L=!1;break a}L=u==="3"&&!g.w(Q,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:myp(IO(this.api.xt())))||this.api.uv()||g.xh(L)&&this.api.getPresentingPlayerType()===2?!1:!0}g.qP(H,"ytp-hide-controls",!L);g.qP(H,"ytp-native-controls",f.controlsType==="3"&&!z&&!b&&!this.MX);g.w(Q, 128)&&!g.xh(f)?(this.n2||(this.n2=new g.iN(this.api),g.W(this,this.n2),g.sZ(this.api,this.n2.element,4)),this.n2.B(Q.WS),this.n2.show()):this.n2&&(this.n2.dispose(),this.n2=null)}; g.S.F9=function(){return this.api.ZC()&&this.api.t_()?(this.api.zy(!1,!1),!0):this.api.T1()?(g.Jf(this.api,!0),!0):!1}; g.S.onMutedAutoplayChange=function(Q){this.MX=Q;this.bF()}; g.S.iW=function(){return!1}; g.S.HB=function(){return!this.iW()&&(this.api.getPlayerSize().width=0&&z.left>=0&&z.bottom>z.top&&z.right>z.left?z:null;z=this.size;Q=Q.clone();z=z.clone();f&&(u=z,b=5,(b&65)==65&&(Q.x=f.right)&&(b&=-2),(b&132)==132&&(Q.y=f.bottom)&&(b&=-5),Q.xf.right&&(u.width=Math.min(f.right-Q.x,L+u.width-f.left),u.width=Math.max(u.width,0))),Q.x+u.width>f.right&&b&1&&(Q.x=Math.max(f.right-u.width,f.left)),Q.yf.bottom&&(u.height=Math.min(f.bottom-Q.y,L+u.height-f.top),u.height=Math.max(u.height,0))),Q.y+u.height>f.bottom&&b&4&&(Q.y=Math.max(f.bottom-u.height,f.top)));f=new g.S$(0,0,0,0);f.left=Q.x;f.top=Q.y;f.width= z.width;f.height=z.height;g.gW(this.element,new g.t6(f.left,f.top));g.Aq(this.D);this.D.X(WG(this),"contextmenu",this.poc);this.D.X(this.K,"fullscreentoggled",this.onFullscreenToggled);this.D.X(this.K,"pageTransition",this.YP)}; g.S.poc=function(Q){if(!Q.defaultPrevented){var z=o4(Q);g.XU(this.element,z)||this.fH();this.K.C().disableNativeContextMenu&&Q.preventDefault()}}; g.S.onFullscreenToggled=function(){this.fH();l29(this)}; g.S.YP=function(){this.fH()};g.p(bs,g.m);bs.prototype.onClick=function(){var Q=this,z,H,f,b;return g.B(function(L){if(L.Z==1)return z=Q.api.C(),H=Q.api.getVideoData(),f=Q.api.getPlaylistId(),b=z.getVideoUrl(H.videoId,f,void 0,!0),g.Y(L,zNu(Q,b),2);L.B&&Q5c(Q);Q.api.logClick(Q.element);g.Gu(L)})}; bs.prototype.Jh=function(){this.updateValue("icon",{G:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",w4:!0,J:"ytp-svg-fill",T:{d:"M21.9,8.3H11.3c-0.9,0-1.7,.8-1.7,1.7v12.3h1.7V10h10.6V8.3z M24.6,11.8h-9.7c-1,0-1.8,.8-1.8,1.8v12.3 c0,1,.8,1.8,1.8,1.8h9.7c1,0,1.8-0.8,1.8-1.8V13.5C26.3,12.6,25.5,11.8,24.6,11.8z M24.6,25.9h-9.7V13.5h9.7V25.9z"}}]});this.updateValue("title-attr","Copy link");this.visible=RGY(this);g.qP(this.element,"ytp-copylink-button-visible",this.visible); this.Ho(this.visible);this.tooltip.UX();this.api.logVisibility(this.element,this.visible&&this.S)}; bs.prototype.pH=function(Q){g.m.prototype.pH.call(this,Q);this.api.logVisibility(this.element,this.visible&&Q)}; bs.prototype.zv=function(){g.m.prototype.zv.call(this);g.vO(this.element,"ytp-copylink-button-visible")};g.p(LU,g.m);LU.prototype.show=function(){g.m.prototype.show.call(this);g.lp(this.B)}; LU.prototype.hide=function(){this.D.stop();this.L=0;this.Mc("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.vO(this.element,"ytp-chapter-seek");g.vO(this.element,"ytp-time-seeking");g.m.prototype.hide.call(this)}; LU.prototype.U_=function(Q,z,H,f){this.L=Q===this.Y?this.L+f:f;this.Y=Q;var b=Q===-1?this.U:this.N;b&&this.K.logClick(b);this.j?this.B.stop():g.QM(this.B);this.D.start();this.element.setAttribute("data-side",Q===-1?"back":"forward");var L=3*this.K.Un().getPlayerSize().height;b=this.K.Un().getPlayerSize();b=b.width/3-3*b.height;this.Z.style.width=L+"px";this.Z.style.height=L+"px";Q===1?(this.Z.style.left="",this.Z.style.right=b+"px"):Q===-1&&(this.Z.style.right="",this.Z.style.left=b+"px");var u=L* 2.5;L=u/2;var X=this.Mc("ytp-doubletap-ripple");X.style.width=u+"px";X.style.height=u+"px";Q===1?(Q=this.K.Un().getPlayerSize().width-z+Math.abs(b),X.style.left="",X.style.right=Q-L+"px"):Q===-1&&(Q=Math.abs(b)+z,X.style.right="",X.style.left=Q-L+"px");X.style.top="calc((33% + "+Math.round(H)+"px) - "+L+"px)";if(H=this.Mc("ytp-doubletap-ripple"))H.classList.remove("ytp-doubletap-ripple"),H.classList.add("ytp-doubletap-ripple");H08(this,this.j?this.L:f)};g.p(fBY,Np);g.S=fBY.prototype;g.S.vA=function(Q){this.jm||(this.jm=new P9(this.K),g.W(this,this.jm));var z,H;if((z=this.ZJ)==null?0:(H=z.menu)==null?0:H.menuRenderer)this.jm.open(this.ZJ.menu.menuRenderer,Q.target),Q.preventDefault()}; g.S.vp=function(){return!!this.Z}; g.S.pj=function(){return!!this.Z}; g.S.eW=function(Q){Q.target===this.overflowButton.element?Q.preventDefault():(this.gT&&this.K.F$("innertubeCommand",this.gT),this.XM(!1))}; g.S.XE=function(){this.XM(!0);var Q,z;((Q=this.Z)==null?0:(z=Q.bannerData)==null?0:z.dismissedStatusKey)&&this.EY.push(this.Z.bannerData.dismissedStatusKey);this.WJ()}; g.S.T5=function(){this.WJ();yI(this)}; g.S.HA3=function(Q){var z=this,H;if(Q.id!==((H=this.Z)==null?void 0:H.identifier)){this.WJ();H=g.n(this.De);for(var f=H.next();!f.done;f=H.next()){var b=f.value,L=void 0,u=void 0;if((f=(L=b)==null?void 0:(u=L.bannerData)==null?void 0:u.itemData)&&b.identifier===Q.id){u=L=void 0;var X=((L=b)==null?void 0:(u=L.bannerData)==null?void 0:u.dismissedStatusKey)||"";if(this.EY.includes(X))break;this.Z=b;this.banner.element.setAttribute("aria-label",f.accessibilityLabel||"");f.trackingParams&&(this.D=!0,this.K.setTrackingParams(this.badge.element, f.trackingParams));this.U.show();Jz(this);this.yl.Ho(!f.stayInApp);E5Y(this);LHc(this);vp(this);this.gT=g.K(f.onTapCommand,UX);if(b=g.K(f.menuOnTap,UX))this.ZJ=g.K(b,G75);b=void 0;this.banner.update({thumbnail:(b=(f.thumbnailSources||[])[0])==null?void 0:b.url,title:f.productTitle,price:f.priceReplacementText?f.priceReplacementText:f.price,salesOriginalPrice:XyY(this),priceDropReferencePrice:v5k(this),promotionText:Sp9(this),priceA11yText:yon(this),affiliateDisclaimer:f.affiliateDisclaimer,vendor:qpJ(this)}); X=u=L=b=void 0;((b=f)==null?0:(L=b.hiddenProductOptions)==null?0:L.showDropCountdown)&&((u=f)==null?0:(X=u.hiddenProductOptions)==null?0:X.dropTimestampMs)&&(this.Xa=new g.e_(function(){t6J(z)},1E3),this.yl.hide(),this.countdownTimer.show(),t6J(this)); this.K.V("web_player_enable_featured_product_banner_exclusives_on_desktop")&&b0L(this)&&(this.Wz=new g.e_(function(){ulJ(z)},1E3),ulJ(this))}}}}; g.S.WJ=function(){this.Z&&(this.Z=void 0,this.e0())}; g.S.onVideoDataChange=function(Q,z){var H=this;Q==="dataloaded"&&yI(this);var f,b,L;Q=g.K((f=z.getWatchNextResponse())==null?void 0:(b=f.playerOverlays)==null?void 0:(L=b.playerOverlayRenderer)==null?void 0:L.productsInVideoOverlayRenderer,gTu);this.overflowButton.show();this.dismissButton.hide();var u=Q==null?void 0:Q.featuredProductsEntityKey;this.trendingOfferEntityKey=Q==null?void 0:Q.trendingOfferEntityKey;this.De.length||(C7p(this,u),vp(this));var X;(X=this.ys)==null||X.call(this);this.ys=g.Qt.subscribe(function(){C7p(H, u);vp(H)})}; g.S.zv=function(){yI(this);E5Y(this);LHc(this);Np.prototype.zv.call(this)};g.p(Gm9,g.m);Gm9.prototype.onClick=function(){this.K.logClick(this.element,this.B)};g.p($_p,g.hf);g.S=$_p.prototype;g.S.show=function(){g.hf.prototype.show.call(this);this.K.publish("infopaneldetailvisibilitychange",!0);this.K.logVisibility(this.element,!0);j5k(this,!0)}; g.S.hide=function(){g.hf.prototype.hide.call(this);this.K.publish("infopaneldetailvisibilitychange",!1);this.K.logVisibility(this.element,!1);j5k(this,!1)}; g.S.getId=function(){return this.D}; g.S.xf=function(){return this.itemData.length}; g.S.onVideoDataChange=function(Q,z){if(z){var H,f,b,L;this.update({title:((H=z.Uu)==null?void 0:(f=H.title)==null?void 0:f.content)||"",body:((b=z.Uu)==null?void 0:(L=b.bodyText)==null?void 0:L.content)||""});var u;Q=((u=z.Uu)==null?void 0:u.trackingParams)||null;this.K.setTrackingParams(this.element,Q);u=g.n(this.itemData);for(Q=u.next();!Q.done;Q=u.next())Q.value.dispose();this.itemData=[];var X;if((X=z.Uu)==null?0:X.ctaButtons)for(z=g.n(z.Uu.ctaButtons),X=z.next();!X.done;X=z.next())if(X=g.K(X.value, Mju))X=new Gm9(this.K,X,this.Z),X.EZ&&(this.itemData.push(X),X.Gv(this.items))}}; g.S.zv=function(){this.hide();g.hf.prototype.zv.call(this)};g.p(O08,g.m);g.S=O08.prototype;g.S.onVideoDataChange=function(Q,z){x_J(this,z);this.oy&&Jo6(this,this.oy)}; g.S.p6=function(Q){var z=this.K.getVideoData();this.videoId!==z.videoId&&x_J(this,z);Jo6(this,Q.state);this.oy=Q.state}; g.S.Y5=function(Q){(this.D=Q)?this.hide():this.Z&&this.show()}; g.S.Ed=function(){this.B||this.ir();this.showControls=!0}; g.S.Ju=function(){this.B||this.fH();this.showControls=!1}; g.S.ir=function(){var Q;if((Q=this.K)==null?0:Q.V("embeds_web_enable_info_panel_sizing_fix")){var z;Q=(z=this.K)==null?void 0:z.getPlayerSize();z=Q.width<380;var H;Q=Q.height<(((H=this.K)==null?0:H.isEmbedsShortsMode())?400:280);var f,b;if((((f=this.K)==null?0:f.getPlayerStateObject().isCued())||((b=this.K)==null?0:g.w(b.getPlayerStateObject(),1024)))&&z&&Q)return}this.Z&&!this.D&&(this.L.show(),this.K.publish("infopanelpreviewvisibilitychange",!0),this.K.logVisibility(this.element,!0))}; g.S.fH=function(){this.Z&&!this.D&&(this.L.hide(),this.K.publish("infopanelpreviewvisibilitychange",!1),this.K.logVisibility(this.element,!1))}; g.S.zuT=function(){this.B=!1;this.showControls||this.fH()};var OwJ={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(OwJ).reduce(function(Q,z){Q[OwJ[z]]=z;return Q},{}); var ofB={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(ofB).reduce(function(Q,z){Q[ofB[z]]=z;return Q},{}); var JcY={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(JcY).reduce(function(Q,z){Q[JcY[z]]=z;return Q},{});var Nqu,Iuu;Nqu=[{option:"#fff",text:"White"},{option:"#ff0",text:"Yellow"},{option:"#0f0",text:"Green"},{option:"#0ff",text:"Cyan"},{option:"#00f",text:"Blue"},{option:"#f0f",text:"Magenta"},{option:"#f00",text:"Red"},{option:"#080808",text:"Black"}];Iuu=[{option:0,text:qg(0)},{option:.25,text:qg(.25)},{option:.5,text:qg(.5)},{option:.75,text:qg(.75)},{option:1,text:qg(1)}]; g.EO=[{option:"fontFamily",text:"Font family",options:[{option:1,text:"Monospaced Serif"},{option:2,text:"Proportional Serif"},{option:3,text:"Monospaced Sans-Serif"},{option:4,text:"Proportional Sans-Serif"},{option:5,text:"Casual"},{option:6,text:"Cursive"},{option:7,text:"Small Capitals"}]},{option:"color",text:"Font colour",options:Nqu},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:qg(.5)},{option:-1,text:qg(.75)},{option:0,text:qg(1)},{option:1,text:qg(1.5)},{option:2, text:qg(2)},{option:3,text:qg(3)},{option:4,text:qg(4)}]},{option:"background",text:"Background colour",options:Nqu},{option:"backgroundOpacity",text:"Background opacity",options:Iuu},{option:"windowColor",text:"Window colour",options:Nqu},{option:"windowOpacity",text:"Window opacity",options:Iuu},{option:"charEdgeStyle",text:"Character edge style",options:[{option:0,text:"None"},{option:4,text:"Drop Shadow"},{option:1,text:"Raised"},{option:2,text:"Depressed"},{option:3,text:"Outline"}]},{option:"textOpacity", text:"Font opacity",options:[{option:.25,text:qg(.25)},{option:.5,text:qg(.5)},{option:.75,text:qg(.75)},{option:1,text:qg(1)}]}];var Acu=[27,9,33,34,13,32,187,61,43,189,173,95,79,87,67,80,78,75,70,65,68,87,83,107,221,109,219];g.p(s5Y,g.Bt);g.S=s5Y.prototype; g.S.Lo=function(Q){Q.repeat||(this.L.Ha=!1);var z=!1,H=Q.keyCode,f=o4(Q),b=!Q.altKey&&!Q.ctrlKey&&!Q.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||Acu.includes(H)),L=!1,u=!1,X=this.api.C();Q.defaultPrevented?(b=!1,u=!0):X.Bc&&!this.api.isMutedByEmbedsMutedAutoplay()&&(b=!1);if(H===9)z=!0;else{if(f)switch(H){case 32:case 13:if(f.tagName==="BUTTON"||f.tagName==="A"||f.tagName==="INPUT")z=!0,b=!1;else if(b){var v=f.getAttribute("role");!v||v!=="option"&&v!=="button"&&v.indexOf("menuitem")!==0|| (z=!0,f.click(),L=!0)}break;case 37:case 39:case 36:case 35:z=f.getAttribute("role")==="slider";break;case 38:case 40:v=f.getAttribute("role"),f=H===38?f.previousSibling:f.nextSibling,v==="slider"?z=!0:b&&(v==="option"?(f&&f.getAttribute("role")==="option"&&f.focus(),L=z=!0):v&&v.indexOf("menuitem")===0&&(f&&f.hasAttribute("role")&&f.getAttribute("role").indexOf("menuitem")===0&&f.focus(),L=z=!0))}if(b&&!L)switch(H){case 38:L=Math.min(this.api.getVolume()+5,100);lN(this.sZ,L,!1);this.api.setVolume(L); u=L=!0;break;case 40:L=Math.max(this.api.getVolume()-5,0);lN(this.sZ,L,!0);this.api.setVolume(L);u=L=!0;break;case 36:this.api.GZ()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),u=L=!0);break;case 35:this.api.GZ()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),u=L=!0)}}z&&CU(this,!0);(z||u)&&this.Iz.l9();(L||b&&this.handleGlobalKeyDown(H,Q.shiftKey,Q.ctrlKey,Q.altKey,Q.metaKey,Q.key,Q.code,Q.repeat))&&Q.preventDefault();X.Y&&(Q={keyCode:Q.keyCode, altKey:Q.altKey,ctrlKey:Q.ctrlKey,metaKey:Q.metaKey,shiftKey:Q.shiftKey,handled:Q.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.A$("onKeyPress",Q))}; g.S.aO=function(Q){var z=Q.keyCode;(!this.api.V("web_player_spacebar_control_bugfix")||this.api.V("web_player_spacebar_control_bugfix")&&!this.D)&&this.handleGlobalKeyUp(z,Q.shiftKey,Q.ctrlKey,Q.altKey,Q.metaKey,Q.key,Q.code)&&Q.preventDefault()}; g.S.handleGlobalKeyUp=function(Q,z,H,f,b,L,u){this.api.publish("keyboardserviceglobalkeyup",{keyCode:Q,shiftKey:z,ctrlKey:H,altKey:f,metaKey:b,key:L,code:u});z=!1;if(this.L.Ha)return z;(b=g.Y1(this.api.xt()))&&(b=b.DW)&&b.LH&&(b.BF(Q),z=!0);switch(Q){case 9:CU(this,!0);z=!0;break;case 32:if(this.api.V("web_speedmaster_spacebar_control")&&(!this.api.V("web_player_spacebar_control_bugfix")&&!this.D||this.api.V("web_player_spacebar_control_bugfix"))&&!this.api.C().Bc){var X,v;Q=(X=this.progressBar)== null?void 0:(v=X.B)==null?void 0:v.isEnabled;z=this.O4(Q)}break;case 39:(zX?f:H)&&this.api.V("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(),X=(X=this.api.getVideoData())?X.r7:[],v=IBk(X,this.api.getCurrentTime()*1E3),v!==-1&&this.Z!=null&&(SO(this.Z,1,X[v].title),this.api.seekTo(X[v].startTime/1E3,void 0,void 0,void 0,52),z=!0))}return z}; g.S.handleGlobalKeyDown=function(Q,z,H,f,b,L,u,X){X||(this.L.Ha=!1);var v=!1,y=this.api.C();if(y.Bc&&!this.api.isMutedByEmbedsMutedAutoplay())return v;var q=g.Y1(this.api.xt());if(q&&(q=q.DW)&&q.LH)switch(Q){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:v=q.zF(Q)}y.j||v||(v=L||String.fromCharCode(Q).toLowerCase(),this.B+=v,"awesome".indexOf(this.B)===0?(v=!0,7===this.B.length&&PW6(this.api.getRootNode(),"ytp-color-party")):(this.B=v,v="awesome".indexOf(this.B)===0));if(!v&&(!this.api.isMutedByEmbedsMutedAutoplay()|| Acu.includes(Q))){var M=this.api.getVideoData(),C,t;q=(C=this.progressBar)==null?void 0:(t=C.B)==null?void 0:t.isEnabled;C=M?M.r7:[];t=zX?f:H;switch(Q){case 80:z&&!y.jm&&(eH(this.sZ,aEA(),"Previous"),this.api.previousVideo(),v=!0);break;case 78:z&&!y.jm&&(eH(this.sZ,xj(),"Next"),this.api.nextVideo(),v=!0);break;case 74:this.api.GZ()&&(this.api.startSeekCsiAction(),this.Z?this.api.V("enable_key_press_seek_logging")?(v=t9(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),us(this.Z, -1,10,v)):us(this.Z,-1,10):eH(this.sZ,{G:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",w4:!0,J:"ytp-svg-fill",T:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z M 16.9,22 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 -0.2,0 -0.4,.1 -0.6,.1 -0.2,0 -0.4,0 -0.6,-0.1 -0.2,-0.1 -0.3,-0.2 -0.5,-0.3 -0.2,-0.1 -0.2,-0.3 -0.3,-0.6 -0.1,-0.3 -0.1,-0.5 -0.1,-0.8 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.9,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}), this.api.seekBy(-10*this.api.getPlaybackRate(),void 0,void 0,73),v=!0);break;case 76:this.api.GZ()&&(this.api.startSeekCsiAction(),this.Z?this.api.V("enable_key_press_seek_logging")?(v=t9(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),us(this.Z,1,10,v)):us(this.Z,1,10):eH(this.sZ,{G:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",w4:!0,J:"ytp-svg-fill",T:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.8,3 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 C 20,21.9 19.8,22 19.6,22 19.4,22 19.2,22 19,21.9 18.8,21.8 18.7,21.7 18.5,21.6 18.3,21.5 18.3,21.3 18.2,21 18.1,20.7 18.1,20.5 18.1,20.2 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.8,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}), this.api.seekBy(10*this.api.getPlaybackRate(),void 0,void 0,74),v=!0);break;case 37:this.api.GZ()&&(this.api.startSeekCsiAction(),t?(t=Aon(C,this.api.getCurrentTime()*1E3),t!==-1&&this.Z!=null&&(SO(this.Z,-1,C[t].title),this.api.seekTo(C[t].startTime/1E3,void 0,void 0,void 0,53),v=!0)):(this.Z?this.api.V("enable_key_press_seek_logging")?(v=t9(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"),us(this.Z,-1,5,v)):us(this.Z,-1,5):eH(this.sZ,{G:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36", width:"100%"},W:[{G:"path",w4:!0,J:"ytp-svg-fill",T:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z m -1.3,8.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.4,.3 C 18.5,22 18.2,22 18,22 17.8,22 17.6,22 17.5,21.9 17.4,21.8 17.2,21.8 17,21.7 16.8,21.6 16.8,21.5 16.7,21.3 16.6,21.1 16.6,21 16.6,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.5,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.7 z"}}]}), this.api.seekBy(-5*this.api.getPlaybackRate(),void 0,void 0,71),v=!0));break;case 39:this.api.GZ()&&(this.api.startSeekCsiAction(),t?this.api.V("web_enable_keyboard_shortcut_for_timely_actions")||(t=IBk(C,this.api.getCurrentTime()*1E3),t!==-1&&this.Z!=null&&(SO(this.Z,1,C[t].title),this.api.seekTo(C[t].startTime/1E3,void 0,void 0,void 0,52),v=!0)):(this.Z!=null?this.api.V("enable_key_press_seek_logging")?(v=t9(this,5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),us(this.Z,1,5,v)):us(this.Z, 1,5):eH(this.sZ,{G:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",w4:!0,J:"ytp-svg-fill",T:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.7,.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.5,.3 C 18.3,22 18.1,22 17.9,22 17.7,22 17.5,22 17.4,21.9 17.3,21.8 17.1,21.8 16.9,21.7 16.7,21.6 16.7,21.5 16.6,21.3 16.5,21.1 16.5,21 16.5,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.4,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.6 z"}}]}), this.api.seekBy(5*this.api.getPlaybackRate(),void 0,void 0,72),v=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),lN(this.sZ,this.api.getVolume(),!1)):(this.api.mute(),lN(this.sZ,0,!0));v=!0;break;case 32:v=this.api.V("web_speedmaster_spacebar_control")?!this.api.C().jm:this.O4(q);break;case 75:v=this.O4(q);break;case 190:z?y.enableSpeedOptions&&P7A(this)&&(v=this.api.getPlaybackRate(),this.api.setPlaybackRate(v+.25,!0),AwY(this.sZ,!1),v=!0):this.api.GZ()&&(this.step(1),v=!0);break;case 188:z? y.enableSpeedOptions&&P7A(this)&&(v=this.api.getPlaybackRate(),this.api.setPlaybackRate(v-.25,!0),AwY(this.sZ,!0),v=!0):this.api.GZ()&&(this.step(-1),v=!0);break;case 70:u_n(this.api)&&(this.api.toggleFullscreen().catch(function(){}),v=!0); break;case 27:q?(this.progressBar.X7(),v=!0):this.j()&&(v=!0)}if(y.controlsType!=="3")switch(Q){case 67:g.oO(this.api.xt())&&(y=this.api.getOption("captions","track"),this.api.toggleSubtitles(),YL9(this.sZ,!y||y&&!y.displayName),v=!0);break;case 79:pU(this,"textOpacity");break;case 87:pU(this,"windowOpacity");break;case 187:case 61:pU(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:pU(this,"fontSizeIncrement",!0,!0)}var E;z||H||f||(Q>=48&&Q<=57?E=Q-48:Q>=96&&Q<=105&&(E=Q-96));E!=null&&this.api.GZ()&& (this.api.startSeekCsiAction(),y=this.api.getProgressState(),this.api.seekTo(E/10*(y.seekableEnd-y.seekableStart)+y.seekableStart,void 0,void 0,void 0,81),v=!0);v&&this.Iz.l9()}this.D||this.api.publish("keyboardserviceglobalkeydown",{keyCode:Q,shiftKey:z,ctrlKey:H,altKey:f,metaKey:b,key:L,code:u,repeat:X},this.L);return v}; g.S.step=function(Q){this.api.GZ();if(this.api.getPlayerStateObject().isPaused()){var z=this.api.getVideoData().B;z&&(z=z.video)&&this.api.seekBy(Q/(z.fps||30),void 0,void 0,Q>0?77:78)}}; g.S.O4=function(Q){if(!this.api.C().jm){var z;var H,f=(z=this.api.getVideoData())==null?void 0:(H=z.getPlayerResponse())==null?void 0:H.playabilityStatus;if(f){var b;z=((b=g.K(f.miniplayer,JCx))==null?void 0:b.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else z=!1;z&&this.api.F$("onExpandMiniplayer");Q?this.progressBar.xb():(Q=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.sZ.fR(Q),Q?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.S.zv=function(){g.QM(this.S);g.Bt.prototype.zv.call(this)};g.p(g.nU,g.m);g.nU.prototype.Nt=H_(11); g.nU.prototype.Jh=function(){var Q=this.K.C(),z=Q.L||this.K.V("web_player_hide_overflow_button_if_empty_menu")&&this.qO.isEmpty();Q=g.xh(Q)&&g.Ig(this.K)&&g.w(this.K.getPlayerStateObject(),128);var H=this.K.getPlayerSize();this.visible=this.K.HB()&&!Q&&H.width>=240&&!g.zI(this.K.getVideoData())&&!z&&!this.Z&&!this.K.isEmbedsShortsMode();g.qP(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.K.UX();this.K.logVisibility(this.element,this.visible&&this.S)}; g.nU.prototype.pH=function(Q){g.m.prototype.pH.call(this,Q);this.K.logVisibility(this.element,this.visible&&Q)}; g.nU.prototype.zv=function(){g.m.prototype.zv.call(this);g.vO(this.element,"ytp-overflow-button-visible")};g.p(aBZ,g.hf);g.S=aBZ.prototype;g.S.XL=function(Q){Q=o4(Q);g.XU(this.element,Q)&&(g.XU(this.Z,Q)||g.XU(this.closeButton,Q)||Da(this))}; g.S.fH=function(){g.hf.prototype.fH.call(this);this.K.Lg(this.element)}; g.S.show=function(){this.LH&&this.K.publish("OVERFLOW_PANEL_OPENED");g.hf.prototype.show.call(this);this.element.setAttribute("aria-modal","true");co_(this,!0)}; g.S.hide=function(){g.hf.prototype.hide.call(this);this.element.removeAttribute("aria-modal");co_(this,!1)}; g.S.onFullscreenToggled=function(Q){!Q&&this.A9()&&Da(this)}; g.S.isEmpty=function(){return this.actionButtons.length===0}; g.S.focus=function(){for(var Q=g.n(this.actionButtons),z=Q.next();!z.done;z=Q.next())if(z=z.value,z.LH){z.focus();break}};g.p(i0u,g.m);i0u.prototype.onClick=function(Q){g.LK(Q,this.api)&&this.api.playVideoAt(this.index)};g.p(hNn,g.hf);g.S=hNn.prototype;g.S.show=function(){g.hf.prototype.show.call(this);this.Z.X(this.api,"videodatachange",this.Z0);this.Z.X(this.api,"onPlaylistUpdate",this.Z0);this.Z0()}; g.S.hide=function(){g.hf.prototype.hide.call(this);g.Aq(this.Z);this.updatePlaylist(null)}; g.S.Z0=function(){this.updatePlaylist(this.api.getPlaylist());this.api.C().L&&(this.Mc("ytp-playlist-menu-title-name").removeAttribute("href"),this.L&&(this.DS(this.L),this.L=null))}; g.S.zc=function(){var Q=this.playlist,z=Q.author,H=z?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",f={CURRENT_POSITION:String(Q.index+1),PLAYLIST_LENGTH:String(Q.getLength())};z&&(f.AUTHOR=z);this.update({title:Q.title,subtitle:g.EB(H,f),playlisturl:this.api.getVideoUrl(!0)});z=Q.B;if(z===this.D)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[Q.index];else{H=g.n(this.playlistData);for(f=H.next();!f.done;f=H.next())f.value.dispose(); H=Q.getLength();this.playlistData=[];for(f=0;f=this.B&&!Q.L&&!z.isAd()&&!this.api.isEmbedsShortsMode()}else Q=!1;this.visible=Q;this.Ho(this.visible);g.qP(this.element,"ytp-search-button-visible",this.visible);g.qP(this.element,"ytp-show-search-title",!this.api.HB());this.api.logVisibility(this.element,this.visible&&this.S)}; $z.prototype.pH=function(Q){g.m.prototype.pH.call(this,Q);this.api.logVisibility(this.element,this.visible&&Q)};g.p(g.jO,g.m);g.S=g.jO.prototype;g.S.Fx=H_(8);g.S.onClick=function(){var Q=this,z=this.api.C(),H=this.api.getVideoData(this.api.getPresentingPlayerType()),f=this.api.getPlaylistId();z=this.api.V("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):z.getVideoUrl(H.videoId,f,void 0,!0);if(navigator.share)try{var b=navigator.share({title:H.title,url:z});b instanceof Promise&&b.catch(function(L){km9(Q,L)})}catch(L){L instanceof Error&&km9(this,L)}else this.Z.F9(),Da(this.L,this.element,!1); this.api.logClick(this.element)}; g.S.Jh=function(){var Q=this.api.C(),z=this.api.isEmbedsShortsMode();g.qP(this.element,"ytp-show-share-title",g.xh(Q)&&!z);this.Z.iW()&&z?(Q=(this.api.Un().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.q2(this.element,"right",Q+"px")):z&&g.q2(this.element,"right","0px");this.updateValue("icon",{G:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",w4:!0,J:"ytp-svg-fill",T:{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=wya(this);g.qP(this.element,"ytp-share-button-visible",this.visible);this.Ho(this.visible);this.tooltip.UX();this.api.logVisibility(this.element,wya(this)&&this.S)}; g.S.pH=function(Q){g.m.prototype.pH.call(this,Q);this.api.logVisibility(this.element,this.visible&&Q)}; g.S.zv=function(){g.m.prototype.zv.call(this);g.vO(this.element,"ytp-share-button-visible")};g.p(eNn,g.hf);g.S=eNn.prototype;g.S.uo=function(Q){Q=o4(Q);g.XU(this.j,Q)||g.XU(this.closeButton,Q)||Da(this)}; g.S.fH=function(){g.hf.prototype.fH.call(this);this.tooltip.Lg(this.element);this.api.logVisibility(this.Z,!1);for(var Q=g.n(this.L),z=Q.next();!z.done;z=Q.next())z=z.value,this.api.hasVe(z.element)&&this.api.logVisibility(z.element,!1)}; g.S.show=function(){var Q=this.LH;g.hf.prototype.show.call(this);this.Jh();Q||this.api.F$("onSharePanelOpened")}; g.S.YYh=function(){this.LH&&this.Jh()}; g.S.Jh=function(){var Q=this;g.SK(this.element,"ytp-share-panel-loading");g.vO(this.element,"ytp-share-panel-fail");var z=this.api.getVideoData(),H=this.api.getPlaylistId()&&this.D.checked;z.getSharePanelCommand&&wE(this.api.Vk(),z.getSharePanelCommand,{includeListId:H}).then(function(f){Q.Sm()||(g.vO(Q.element,"ytp-share-panel-loading"),RNu(Q,f))}); z=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",z);this.updateValue("linkText",z);this.updateValue("shareLinkWithUrl",g.EB("Share link $URL",{URL:z}));X1(this.Z);this.api.logVisibility(this.Z,!0)}; g.S.onFullscreenToggled=function(Q){!Q&&this.A9()&&Da(this)}; g.S.focus=function(){this.Z.focus()}; g.S.zv=function(){g.hf.prototype.zv.call(this);lBc(this)};g.p(HXv,Np);g.S=HXv.prototype;g.S.zv=function(){SjY(this);Np.prototype.zv.call(this)}; g.S.eW=function(Q){Q.target!==this.dismissButton.element&&(this.XM(!1),this.K.F$("innertubeCommand",this.onClickCommand))}; g.S.XE=function(){this.uT=!0;this.XM(!0);this.e0()}; g.S.SZn=function(Q){this.Y=Q;this.e0()}; g.S.onVideoDataChange=function(Q,z){if(Q=!!z.videoId&&this.videoId!==z.videoId)this.videoId=z.videoId,this.uT=!1,this.L3=!0,this.N=this.wh=!1,SjY(this),uQa(this,!1),this.B=this.Z=!1,xz(this),fXv(this);if(Q||!z.videoId)this.Ze=this.D=!1;var H,f;if(z==null?0:(H=z.getPlayerResponse())==null?0:(f=H.videoDetails)==null?0:f.isLiveContent)this.Ox(!1);else{var b,L,u;z=g.K((b=z.getWatchNextResponse())==null?void 0:(L=b.playerOverlays)==null?void 0:(u=L.playerOverlayRenderer)==null?void 0:u.productsInVideoOverlayRenderer, gTu);this.Y=this.enabled=!1;if(z){if(b=z==null?void 0:z.featuredProductsEntityKey){L=g.Qt.getState().entities;var X;if((X=vX(L,"featuredProductsEntity",b))==null?0:X.productsData){this.Ox(!1);return}}this.enabled=!0;if(!this.D){var v;X=(v=z.badgeInteractionLogging)==null?void 0:v.trackingParams;(this.D=!!X)&&this.K.setTrackingParams(this.badge.element,X||null)}if(!this.Ze){var y;if(this.Ze=!((y=z.dismissButton)==null||!y.trackingParams)){var q;this.K.setTrackingParams(this.dismissButton.element,((q= z.dismissButton)==null?void 0:q.trackingParams)||null)}}z.isContentForward&&(v=z.productsData,uQa(this,!0),fXv(this),v=LP_(this,v),y=[],v.length>0&&y.push(v[0]),v.length>1&&(q=new g.m({G:"div",J:"ytp-suggested-action-more-products-icon"}),g.W(this,q),y.push(q),y.push.apply(y,g.F(v.slice(1)))),this.j=new g.m({G:"div",W:y,J:"ytp-suggested-action-content-forward-container"}),g.W(this,this.j),this.f3.element.append(this.j.element));this.text=g.pa(z.text);var M;if(v=(M=z.dismissButton)==null?void 0:M.a11yLabel)this.iT= g.pa(v);this.onClickCommand=z.onClickCommand;this.timing=z.timing;this.UZ()}fHu(this);Jz(this);this.e0()}}; g.S.vp=function(){return!this.Y&&this.enabled&&!this.uT&&!this.K.HB()&&!this.KH&&(this.N||this.L3)}; g.S.eQ=function(Q){Np.prototype.eQ.call(this,Q);if(this.Z||this.B)this.timing&&F6(this.timing.preview)&&(this.Z=!1,xz(this),this.B=!1,xz(this),this.K.Ys("shopping_overlay_preview_collapsed"),this.K.Ys("shopping_overlay_preview_expanded"),Q=OO(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),F6(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.K.Ys("shopping_overlay_expanded"),Q.end=this.timing.expanded.endSec*1E3),this.K.UZ([Q])), this.wh=!0,Jz(this);xz(this)}; g.S.Ox=function(Q){(this.N=Q)?(oi(this),Jz(this,!1)):(SjY(this),this.mq.start());this.e0()}; g.S.UZ=function(Q){var z=this.timing;Q=(Q===void 0?0:Q)+this.K.getCurrentTime();var H=[],f=z.visible,b=z.preview;z=z.expanded;F6(f)&&(QSL(f,Q),H.push(OO(f.startSec,f.endSec,"shopping_overlay_visible")));F6(b)&&(QSL(b,Q),f=b.startSec+1,H.push(OO(b.startSec,f,"shopping_overlay_preview_collapsed")),H.push(OO(f,b.endSec,"shopping_overlay_preview_expanded")));F6(z)&&(QSL(z,Q),H.push(OO(z.startSec,z.endSec,"shopping_overlay_expanded")));this.K.UZ(H)};g.p(ygA,g.m); ygA.prototype.Jh=function(){var Q=this.api.C();this.Ho(g.xh(Q)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.LH);var z=this.api.getVideoData(),H=!1;this.api.getPresentingPlayerType()===2?H=!!z.videoId&&!!z.isListed&&!!z.author&&!!z.KH&&!!z.profilePicture:g.xh(Q)&&(H=!!z.videoId&&!!z.KH&&!!z.profilePicture&&!g.zI(z)&&!Q.L&&!(Q.N&&this.api.getPlayerSize().width<200));var f=z.profilePicture;Q=g.xh(Q)?z.expandedTitle:z.author;f=f===void 0? "":f;Q=Q===void 0?"":Q;H?(this.B!==f&&(this.Z.style.backgroundImage="url("+f+")",this.B=f),this.updateValue("channelLogoLabel",g.EB("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:Q})),g.SK(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.vO(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.Z,H&&this.S);this.api.logVisibility(this.channelName,H&&this.S);this.subscribeButton&&(this.subscribeButton.channelId=z.HG);this.updateValue("expandedTitle",z.expandedTitle)};g.p(oC,g.hf);oC.prototype.show=function(){g.hf.prototype.show.call(this);this.Z.start()}; oC.prototype.hide=function(){g.hf.prototype.hide.call(this);this.Z.stop()}; oC.prototype.nt=function(Q,z){Q==="dataloaded"&&((this.A5=z.A5,this.h$=z.h$,isNaN(this.A5)||isNaN(this.h$))?this.L&&(this.K.Ys("intro"),this.K.removeEventListener(g.bc("intro"),this.Y),this.K.removeEventListener(g.Li("intro"),this.j),this.K.removeEventListener("onShowControls",this.D),this.hide(),this.L=!1):(this.K.addEventListener(g.bc("intro"),this.Y),this.K.addEventListener(g.Li("intro"),this.j),this.K.addEventListener("onShowControls",this.D),Q=new g.HD(this.A5,this.h$,{priority:9,namespace:"intro"}), this.K.UZ([Q]),this.L=!0))};g.p(J9,g.m);J9.prototype.onClick=function(){this.K.bf()}; J9.prototype.Jh=function(){var Q=!0;g.xh(this.K.C())&&(Q=Q&&this.K.Un().getPlayerSize().width>=480);this.Ho(Q);this.updateValue("icon",this.K.oJ()?{G:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",w4:!0,T:{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"}}]}: {G:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",w4:!0,J:"ytp-svg-fill",T:{d:"M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z"}}]})};g.p(MRn,g.m);MRn.prototype.zv=function(){this.Z=null;g.m.prototype.zv.call(this)};g.p(Ng,g.m);Ng.prototype.onClick=function(){this.K.F$("innertubeCommand",this.B)}; Ng.prototype.U=function(Q){Q!==this.j&&(this.update({title:Q,ariaLabel:Q}),this.j=Q);Q?this.show():this.hide()}; Ng.prototype.N=function(){this.Z.disabled=this.B==null;g.qP(this.Z,"ytp-chapter-container-disabled",this.Z.disabled);this.A7()};g.p(IC,Ng);IC.prototype.onClickCommand=function(Q){g.K(Q,RZ)&&this.A7()}; IC.prototype.updateVideoData=function(Q,z){var H,f,b;Q=g.K((H=z.getWatchNextResponse())==null?void 0:(f=H.playerOverlays)==null?void 0:(b=f.playerOverlayRenderer)==null?void 0:b.decoratedPlayerBarRenderer,FR);H=g.K(Q==null?void 0:Q.playerBarActionButton,g.Bc);this.K.V("web_player_updated_entrypoint")&&(this.Y=nE(H==null?void 0:H.text));this.B=H==null?void 0:H.command;Ng.prototype.N.call(this)}; IC.prototype.A7=function(){var Q=this.K.V("web_player_updated_entrypoint")?this.Y:"",z=this.D.Z,H,f=((H=this.K.getLoopRange())==null?void 0:H.type)==="clips";if(z.length>1&&!f){Q=this.K.getProgressState().current*1E3;H=Mg(z,Q);Q=z[H].title||"Chapters";if(H!==this.currentIndex||this.L)this.K.F$("innertubeCommand",z[H].onActiveCommand),this.currentIndex=H;this.L=!1}else this.L=!0;Ng.prototype.U.call(this,Q)};g.p(A9,g.m);A9.prototype.j=function(Q){g.w(Q.state,32)?tRu(this,this.api.HU()):this.LH&&(g.w(Q.state,16)||g.w(Q.state,1))||this.Z.hide()}; A9.prototype.Ex=function(){var Q=this.api.getPlayerStateObject();(g.w(Q,32)||g.w(Q,16))&&E8u(this)}; A9.prototype.Y=function(){this.L=NaN;E8u(this)}; A9.prototype.hide=function(){this.B&&tRu(this,null);g.m.prototype.hide.call(this)};g.p(plk,g.m);g.S=plk.prototype;g.S.onClick=function(){var Q=this;if(this.K.C().KH||this.K.C().N){this.K.logClick(this.element);try{this.K.toggleFullscreen().catch(function(z){Q.Wd(z)})}catch(z){this.Wd(z)}}else Da(this.message,this.element,!0)}; g.S.Wd=function(Q){String(Q).includes("fullscreen error")?g.PT(Q):g.BT(Q);this.FT()}; g.S.FT=function(){this.disable();this.message.ir(this.element,!0)}; g.S.oK=function(){ZQ()===this.K.getRootNode()?this.L.start():(this.L.stop(),this.message&&this.message.hide())}; g.S.ww=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var Q=window.screen.width*.9,z=window.screen.height*.9,H=Math.max(window.outerWidth,window.innerWidth),f=Math.max(window.outerHeight,window.innerHeight);if(H>f!==Q>z){var b=H;H=f;f=b}Q>H&&z>f&&this.FT()}}; g.S.disable=function(){var Q=this;if(!this.message){var z=(pF(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null?"Full screen is unavailable. $BEGIN_LINKFind out more$END_LINK":"Your browser doesn't support full screen. $BEGIN_LINKFind out more$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.hf(this.K,{G:"div",lT:["ytp-popup","ytp-generic-popup"],T:{role:"alert",tabindex:"0"},W:[z[0],{G:"a",T:{href:"https://support.google.com/youtube/answer/6276924", target:this.K.C().U},BI:z[2]},z[4]]},100,!0);this.message.hide();g.W(this,this.message);this.message.subscribe("show",function(H){Q.B.Hd(Q.message,H)}); g.sZ(this.K,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.Z)();this.Z=null}}; g.S.Jh=function(){var Q=u_n(this.K),z=this.K.C().N&&this.K.getPlayerSize().width<250;this.Ho(Q&&!z);var H;((H=this.K.C())==null?0:H.V("embeds_use_parent_visibility_in_ve_logging"))?this.K.logVisibility(this.element,this.LH&&this.S):this.K.logVisibility(this.element,this.LH)}; g.S.tB=function(Q){if(Q){var z={G:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"g",J:"ytp-fullscreen-button-corner-2",W:[{G:"path",w4:!0,J:"ytp-svg-fill",T:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{G:"g",J:"ytp-fullscreen-button-corner-3",W:[{G:"path",w4:!0,J:"ytp-svg-fill",T:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{G:"g",J:"ytp-fullscreen-button-corner-0",W:[{G:"path",w4:!0,J:"ytp-svg-fill",T:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{G:"g", J:"ytp-fullscreen-button-corner-1",W:[{G:"path",w4:!0,J:"ytp-svg-fill",T:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};Q=g.x1(this.K,"Exit full screen","f");this.update({"data-title-no-tooltip":"Exit full screen"});document.activeElement===this.element&&this.K.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(H){g.PT(H)})}else z={G:"svg", T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"g",J:"ytp-fullscreen-button-corner-0",W:[{G:"path",w4:!0,J:"ytp-svg-fill",T:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{G:"g",J:"ytp-fullscreen-button-corner-1",W:[{G:"path",w4:!0,J:"ytp-svg-fill",T:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{G:"g",J:"ytp-fullscreen-button-corner-2",W:[{G:"path",w4:!0,J:"ytp-svg-fill",T:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{G:"g",J:"ytp-fullscreen-button-corner-3", W:[{G:"path",w4:!0,J:"ytp-svg-fill",T:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},Q=g.x1(this.K,"Full screen","f"),this.update({"data-title-no-tooltip":"Full screen"});Q=this.message?null:Q;this.update({title:Q,icon:z});this.B.xJ().UX()}; g.S.zv=function(){this.message||((0,this.Z)(),this.Z=null);g.m.prototype.zv.call(this)}; g.S.pH=function(Q){g.m.prototype.pH.call(this,Q);var z;((z=this.K.C())==null?0:z.V("embeds_use_parent_visibility_in_ve_logging"))&&this.K.logVisibility(this.element,this.LH&&Q)};g.p(Yz,g.m);Yz.prototype.onClick=function(){this.K.logClick(this.element);this.K.seekBy(this.Z,!0);var Q=this.Z>0?1:-1,z=Math.abs(this.Z),H=this.K.fE().J3;H&&us(H,Q,z);this.B.isActive()?this.L=!0:(Q=["ytp-jump-spin"],this.Z<0&&Q.push("backwards"),this.element.classList.add.apply(this.element.classList,g.F(Q)),g.lp(this.B))};g.p(rb,Ng);rb.prototype.onClickCommand=function(Q){g.K(Q,pYu)&&this.A7()}; rb.prototype.updateVideoData=function(){var Q,z;this.B=(Q=g8Y(this))==null?void 0:(z=Q.onTap)==null?void 0:z.innertubeCommand;Ng.prototype.N.call(this)}; rb.prototype.A7=function(){var Q="",z=this.D.Y,H,f=(H=g8Y(this))==null?void 0:H.headerTitle;H=f?g.pa(f):"";var b;f=((b=this.K.getLoopRange())==null?void 0:b.type)==="clips";z.length>1&&!f&&(Q=this.K.getProgressState().current*1E3,b=NuJ(z,Q),Q=b!=null?z[b].title:H,b!=null&&b!==this.currentIndex&&(this.K.F$("innertubeCommand",z[b].onActiveCommand),this.currentIndex=b));Ng.prototype.U.call(this,Q)};g.p(sO,g.m);sO.prototype.onClick=function(){this.K.F$("onCollapseMiniplayer");this.K.logClick(this.element)}; sO.prototype.Jh=function(){this.visible=!this.K.isFullscreen();this.Ho(this.visible);this.K.logVisibility(this.element,this.visible&&this.S)}; sO.prototype.pH=function(Q){g.m.prototype.pH.call(this,Q);this.K.logVisibility(this.element,this.visible&&Q)};g.p(Bp,g.m);g.S=Bp.prototype;g.S.Zb=function(Q){this.visible=Q.width>=300||this.yl;this.Ho(this.visible);this.K.logVisibility(this.element,this.visible&&this.S)}; g.S.zah=function(){this.K.C().mq?this.K.isMuted()?this.K.unMute():this.K.mute():Da(this.message,this.element,!0);this.K.logClick(this.element)}; g.S.onVolumeChange=function(Q){this.setVolume(Q.volume,Q.muted)}; g.S.setVolume=function(Q,z){var H=this,f=z?0:Q/100,b=this.K.C();Q=f===0?1:Q>50?1:0;if(this.j!==Q){var L=this.wh;isNaN(L)?$iL(this,Q):WM_(this.De,function(X){$iL(H,L+(H.j-L)*X)},250); this.j=Q}f=f===0?1:0;if(this.D!==f){var u=this.U;isNaN(u)?jS_(this,f):WM_(this.Ze,function(X){jS_(H,u+(H.D-u)*X)},250); this.D=f}b.mq&&(b=g.x1(this.K,"Mute","m"),f=g.x1(this.K,"Unmute","m"),this.updateValue("title",z?f:b),this.update({"data-title-no-tooltip":z?"Unmute":"Mute"}),this.tooltip.UX())}; g.S.pH=function(Q){g.m.prototype.pH.call(this,Q);this.K.logVisibility(this.element,this.visible&&Q)}; var ZXa=["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"],Gop=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",26.77," C",23.01,",",25.86," ",26,",",22.28," ",26,",",18," C",26,",",13.72," ", 23.01,",",10.14," ",19,",",9.23," L",19,",",11.29," Z"];g.p(g.Pp,g.m);g.S=g.Pp.prototype;g.S.onStateChange=function(Q){this.Ni(Q.state);var z;((z=this.K.C())==null?0:z.V("embeds_use_parent_visibility_in_ve_logging"))&&this.K.logVisibility(this.element,this.LH&&this.S)}; g.S.Ni=function(Q){var z=g.JM(this.K.getVideoData()),H=!1;Q.isOrWillBePlaying()?Q=z?4:2:g.w(Q,2)?(Q=3,H=z):Q=1;this.element.disabled=H;if(this.Z!==Q){z=null;switch(Q){case 2:z=g.x1(this.K,"Pause","k");this.update({"data-title-no-tooltip":"Pause"});break;case 3:z="Replay";this.update({"data-title-no-tooltip":"Replay"});break;case 1:z=g.x1(this.K,"Play","k");this.update({"data-title-no-tooltip":"Play"});break;case 4:z="Stop live playback",this.update({"data-title-no-tooltip":"Stop live playback"})}Q=== 3?this.update({title:z,icon:FP_(Q)}):(this.update({title:z}),(z=FP_(Q))&&this.Z&&this.Z!==3?KMA(this.transition,this.element,z):this.updateValue("icon",z));this.tooltip.UX();this.Z=Q}}; g.S.onVideoDataChange=function(){g.qP(this.element,"ytp-play-button-playlist",g.Ig(this.K))}; g.S.O4=function(Q){this.K.logClick(this.element);if(this.K.getPlayerStateObject().isOrWillBePlaying())this.K.pauseVideo();else{if(this.K.isMinimized()&&this.K.getPlayerStateObject().isCued()){var z={},H;if((H=this.K.getVideoData())==null?0:H.j)z.cttAuthInfo={token:this.K.getVideoData().j,videoId:this.K.getVideoData().videoId};WC("direct_playback",z);this.K.vB().timerName="direct_playback"}else this.Z!==3||this.K.C().V("html5_no_csi_on_replay")||t4(this.K.vB());this.K.playVideo()}this.K.isMinimized()&& (Q==null?void 0:Q.type)==="click"&&this.element.blur()}; g.S.pH=function(Q){g.m.prototype.pH.call(this,Q);var z;((z=this.K.C())==null?0:z.V("embeds_use_parent_visibility_in_ve_logging"))&&this.K.logVisibility(this.element,this.LH&&Q)};g.p(g.aC,g.m);g.S=g.aC.prototype;g.S.onVideoDataChange=function(){OXv(this);this.D&&(this.DS(this.D),this.D=null);this.videoData=this.K.getVideoData(1);if(this.playlist=this.K.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.D=this.X(this.K,"progresssync",this.IV);this.L=o8L(this);xip(this);this.PL(this.K.Un().getPlayerSize())}; g.S.PL=function(Q){Q=Q===void 0?this.K.Un().getPlayerSize():Q;var z,H=((z=this.K.getLoopRange())==null?void 0:z.type)==="clips";Q=(g.Ig(this.K)||this.Z&&g.BG(this.K)&&!this.K.V("web_hide_next_button")||JgA(this))&&!H&&(this.Z||Q.width>=400);this.Ho(Q);this.K.logVisibility(this.element,Q)}; g.S.onClick=function(Q){this.K.logClick(this.element);var z=!0;this.Y?z=g.LK(Q,this.K):Q.preventDefault();z&&(this.Z&&this.K.getPresentingPlayerType()===5?this.K.publish("ytoprerollinternstitialnext"):this.Z?(t4(this.K.vB()),this.K.publish("playlistnextbuttonclicked",this.element),this.K.nextVideo(!0)):this.L?this.K.seekTo(0):(t4(this.K.vB()),this.K.publish("playlistprevbuttonclicked",this.element),this.K.previousVideo(!0)))}; g.S.IV=function(){var Q=o8L(this);Q!==this.L&&(this.L=Q,xip(this))}; g.S.zv=function(){this.B&&(this.B(),this.B=null);OXv(this);g.m.prototype.zv.call(this)};g.p(IX6,g.m);g.S=IX6.prototype;g.S.FL=function(Q){this.zM(Q.pageX);this.xk(Q.pageX+Q.deltaX);AgJ(this)}; g.S.zM=function(Q){this.Ze=Q-this.jm}; g.S.xk=function(Q){Q-=this.jm;!isNaN(this.Ze)&&this.thumbnails.length>0&&(this.U=Q-this.Ze,this.thumbnails.length>0&&this.U!==0&&(this.L=this.N+this.U,Q=PyJ(this,this.L),this.L<=this.Z/2&&this.L>=BxY(this)?(this.api.seekTo(Q,!1,void 0,void 0,25),g.q2(this.L3,"transform","translateX("+(this.L-this.Z/2)+"px)"),NxL(this,Q)):this.L=this.N))}; g.S.N1=function(){this.wh&&(this.wh.JU=!0);var Q=(0,g.NV)()-this.En<300;if(Math.abs(this.U)<5&&!Q){this.En=(0,g.NV)();Q=this.Ze+this.U;var z=this.Z/2-Q;this.zM(Q);this.xk(Q+z);AgJ(this);this.api.logClick(this.j)}AgJ(this)}; g.S.cE=function(){UO(this,this.api.getCurrentTime())}; g.S.play=function(Q){this.api.seekTo(PyJ(this,this.L),void 0,void 0,void 0,26);this.api.playVideo();Q&&this.api.logClick(this.playButton)}; g.S.onExit=function(Q){this.api.seekTo(this.mq,void 0,void 0,void 0,63);this.api.playVideo();Q&&this.api.logClick(this.dismissButton)}; g.S.tZ=function(Q,z){this.jm=Q;this.Z=z;UO(this,this.api.getCurrentTime())}; g.S.enable=function(){this.isEnabled||(this.isEnabled=!0,this.mq=this.api.getCurrentTime(),NxL(this,this.mq),g.qP(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.f3=this.X(this.element,"wheel",this.FL),this.logVisibility(this.isEnabled))}; g.S.disable=function(){this.isEnabled=!1;this.hide();g.qP(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.f3&&this.DS(this.f3);this.logVisibility(this.isEnabled)}; g.S.reset=function(){this.disable();this.D=[];this.yl=!1}; g.S.logVisibility=function(Q){this.api.logVisibility(this.element,Q);this.api.logVisibility(this.j,Q);this.api.logVisibility(this.dismissButton,Q);this.api.logVisibility(this.playButton,Q)}; g.S.zv=function(){for(;this.B.length;){var Q=void 0;(Q=this.B.pop())==null||Q.dispose()}g.m.prototype.zv.call(this)}; g.p(Yj_,g.m);g.p(rgY,g.m);g.p(aXJ,g.m);g.p(cp,g.m);cp.prototype.ai=function(Q){return Q==="PLAY_PROGRESS"?this.N:Q==="LOAD_PROGRESS"?this.Y:Q==="LIVE_BUFFER"?this.j:this.L};iXZ.prototype.update=function(Q,z,H,f){H=H===void 0?0:H;this.width=z;this.D=H;this.Z=z-H-(f===void 0?0:f);this.position=g.v3(Q,H,H+this.Z);this.L=this.position-H;this.B=this.L/this.Z};g.p(hd6,g.m);g.p(g.Wp,g.Ca);g.S=g.Wp.prototype; g.S.Xm=function(){var Q=!1,z=this.api.getVideoData();if(!z)return Q;this.api.Ys("timedMarkerCueRange");KPA(this);for(var H=g.n(z.ZJ),f=H.next();!f.done;f=H.next()){f=f.value;var b=void 0,L=(b=this.mq[f])==null?void 0:b.markerType;b=void 0;var u=(b=this.mq[f])==null?void 0:b.markers;if(!u)break;if(L==="MARKER_TYPE_TIMESTAMPS"){Q=g.n(u);for(L=Q.next();!L.done;L=Q.next()){b=L.value;L=new hd6;u=void 0;L.title=((u=b.title)==null?void 0:u.simpleText)||"";L.timeRangeStartMillis=Number(b.startMillis);L.Z= Number(b.durationMillis);var X=u=void 0;L.onActiveCommand=(X=(u=b.onActive)==null?void 0:u.innertubeCommand)!=null?X:void 0;Txn(this,L)}edZ(this,this.Y);Q=this.Y;L=this.cq;b=[];u=null;for(X=0;Xv&&(u.end=v);v=YpA(v,v+q);b.push(v);u=v;L[v.id]=Q[X].onActiveCommand}}this.api.UZ(b);this.h$=this.mq[f];Q=!0}else if(L==="MARKER_TYPE_HEATMAP"){f=this.mq[f];q=y=b=v=X=u=void 0;if(f&& f.markers){L=(b=(q=f.markersMetadata)==null?void 0:(y=q.heatmapMetadata)==null?void 0:y.minHeightDp)!=null?b:0;b=(u=(v=f.markersMetadata)==null?void 0:(X=v.heatmapMetadata)==null?void 0:X.maxHeightDp)!=null?u:60;u=this.Z.length;X=null;for(v=0;v=q&&E<=M&&y.push(t)}b>0&&(this.wh.style.height= b+"px");q=this.D[v];M=y;t=L;var G=b,x=v===0;x=x===void 0?!1:x;UiA(q,G);C=M;E=q.B;x=x===void 0?!1:x;var J=1E3/C.length,I=[];I.push({x:0,y:100});for(var r=0;r0&&(X=y[y.length-1])}g.DH(this)}b=void 0;L=[];if(f=(b=f.markersDecoration)==null?void 0:b.timedMarkerDecorations)for(f=g.n(f),b=f.next();!b.done;b=f.next())b=b.value,v=X=u=void 0,L.push({visibleTimeRangeStartMillis:(u=b.visibleTimeRangeStartMillis)!=null?u:-1,visibleTimeRangeEndMillis:(X=b.visibleTimeRangeEndMillis)!=null?X:-1,decorationTimeMillis:(v=b.decorationTimeMillis)!= null?v:NaN,label:b.label?g.pa(b.label):""});f=L;this.heatMarkersDecorations=f}}z.nT=this.Y;g.qP(this.element,"ytp-timed-markers-enabled",Q);return Q}; g.S.tZ=function(){g.DH(this);db(this);edZ(this,this.Y);if(this.B){var Q=g.GJ(this.element).x||0;this.B.tZ(Q,this.j)}}; g.S.onClickCommand=function(Q){if(Q=g.K(Q,RZ)){var z=Q.key;Q.isVisible&&z&&zBn(this,z)}}; g.S.f6$=function(Q){this.api.F$("innertubeCommand",this.cq[Q.id])}; g.S.A7=function(){db(this);var Q=this.api.getCurrentTime();(Qthis.clipEnd)&&this.H3()}; g.S.RV=function(Q){if(!Q.defaultPrevented){var z=!1;switch(Q.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);z=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);z=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);z=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);z=!0;break;case 38:this.api.V("enable_key_press_seek_logging")&&ls(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);z=!0;break;case 40:this.api.V("enable_key_press_seek_logging")&&ls(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),z=!0}z&&Q.preventDefault()}}; g.S.nt=function(Q,z){this.updateVideoData(z,Q==="newdata")}; g.S.mch=function(){this.nt("newdata",this.api.getVideoData())}; g.S.updateVideoData=function(Q,z){z=z===void 0?!1:z;var H=!!Q&&Q.EZ();if(H&&(Qw(Q)||uK8(this)?this.YJ=!1:this.YJ=Q.allowLiveDvr,g.qP(this.api.getRootNode(),"ytp-enable-live-buffer",!(Q==null||!Qw(Q))),this.api.V("enable_custom_playhead_parsing"))){var f,b,L,u=g.K((f=Q.getWatchNextResponse())==null?void 0:(b=f.playerOverlays)==null?void 0:(L=b.playerOverlayRenderer)==null?void 0:L.decoratedPlayerBarRenderer,FR);if(u==null?0:u.progressColor)for(f=0;f0;)this.D.pop().dispose();this.heatMarkersDecorations=[];this.ZJ={};var M;(M=this.B)==null||M.reset();b_(this);g.qP(this.api.getRootNode(),"ytp-fine-scrubbing-exp",h9(this))}else this.H3();this.Z3()}if(Q){var C;M=((C=this.GL)==null?void 0:C.type)==="clips";if(C=!Q.isLivePlayback){C=this.api.getVideoData();z=g.xa(C);H=diY(C);var t;C=z!=null||H!=null&&H.length>0||((t=C.Ss)== null?void 0:t.length)>0}if(C&&!M){t=this.api.getVideoData();M=g.xa(t);C=!1;if(M==null?0:M.markersMap){C=this.api.getVideoData();var E;C.PP=((E=M.visibleOnLoad)==null?void 0:E.key)||C.PP;E=g.n(M.markersMap);for(M=E.next();!M.done;M=E.next())M=M.value,M.key&&M.value&&(this.ZJ[M.key]=M.value,M.value.onChapterRepeat&&(C.Ig=M.value.onChapterRepeat));C.PP!=null&&zBn(this,C.PP);C=!0}var G;if(((G=t.Ss)==null?void 0:G.length)>0){G=g.Qt.getState().entities;E=g.n(t.Ss);for(M=E.next();!M.done;M=E.next())if(M= M.value,H=void 0,z=(H=vX(G,"macroMarkersListEntity",M))==null?void 0:H.markersList,X=H=void 0,((H=z)==null?void 0:H.markerType)==="MARKER_TYPE_TIMESTAMPS"||((X=z)==null?void 0:X.markerType)==="MARKER_TYPE_HEATMAP")this.mq[M]=z;C=this.Xm()||C}!C&&(G=diY(t))&&(wlp(this,G),t.r7=this.Z,mi6(this));Swa(this,null);Q.Vo&&this.D.length===0&&(Q=Q.Vo,G=Q.key,Q.isVisible&&G&&zBn(this,G))}else WPJ(this),KPA(this)}db(this)}; g.S.nvv=function(Q){this.N&&!g.w(Q.state,32)&&this.api.getPresentingPlayerType()!==3&&this.N.cancel();var z;((z=this.B)==null?0:z.isEnabled)&&g.w(Q.state,8)&&this.api.pauseVideo();Q=this.api.getPresentingPlayerType()===2||!this.api.GZ()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.qP(this.D6,"ytp-hide-scrubber-button",Q)}; g.S.wy=function(Q){var z=!!this.GL!==!!Q,H=this.GL;this.GL=Q;Swa(this,H);(Q==null?void 0:Q.type)!=="clips"&&Q||(Q?(this.updateValue("clipstarticon",r1c()),this.updateValue("clipendicon",r1c()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",xV8()),this.updateValue("clipendicon",Fx6()),this.updateValue("clipstarttitle","Watch full video"),this.updateValue("clipendtitle","Watch full video")),z&&(this.updateVideoData(this.api.getVideoData(), !0),g.DH(this)),RC(this));kz(this,this.U,this.rT)}; g.S.VAq=function(Q,z,H){var f=g.GJ(this.element),b=VI(this).Z,L=H?H.getAttribute("data-tooltip"):void 0,u=H?H.getAttribute("data-position"):void 0,X=H?H.getAttribute("data-offset-y"):void 0;X=X?Number(X):0;u&&(Q=B6(this.L,Number(H.getAttribute("data-position")),0)*b+g.GJ(this.progressBar).x);this.WI.x=Q-f.x;this.WI.y=z-f.y;Q=VI(this);H=eO(this,Q);z=0;var v;if((v=this.api.getVideoData())==null?0:Qw(v))(v=this.api.getProgressState().seekableEnd)&&H>v&&(H=v,Q.position=B6(this.L,v)*VI(this).Z),z=this.L.B; uK8(this)&&(z=this.L.B);v=L||g.xU(this.YJ?H-this.L.Z:H-z);z=Q.position+this.uL;H-=this.api.ex();var y;if((y=this.B)==null||!y.isEnabled)if(this.api.HU()){if(this.Z.length>1){y=Tf(this,this.WI.x,!0);if(!this.GL)for(f=0;f1)for(f=0;f0)for(y=this.WI.x,f=g.n(this.Y),b=f.next();!b.done;b=f.next())b=b.value,u=KU(this,b.timeRangeStartMillis/ (this.L.Z*1E3),VI(this)),g.qP(b.element,"ytp-timed-marker-hover",u<=y&&u+6>=y);f=this.tooltip.scale;X=(isNaN(X)?0:X)-45*f;this.api.V("web_key_moments_markers")?this.h$?(y=NuJ(this.Y,H*1E3),y=y!=null?this.Y[y].title:""):(y=Mg(this.Z,H*1E3),y=this.Z[y].title):(y=Mg(this.Z,H*1E3),y=this.Z[y].title);y||(X+=16*f);this.tooltip.scale===.6&&(g.mD(this.api.C())?(X=this.api.Un().getPlayerSize().height-225,X=y?X+110:X+110+16):X=y?110:126);f=Mg(this.Z,H*1E3);this.L3=XhZ(this,H,f)?f:XhZ(this,H,f+1)?f+1:-1;g.qP(this.api.getRootNode(), "ytp-progress-bar-snap",this.L3!==-1&&this.Z.length>1);f=!1;b=g.n(this.heatMarkersDecorations);for(u=b.next();!u.done;u=b.next()){u=u.value;var q=H*1E3;q>=u.visibleTimeRangeStartMillis&&q<=u.visibleTimeRangeEndMillis&&(y=u.label,v=g.xU(u.decorationTimeMillis/1E3),f=!0)}this.zx!==f&&(this.zx=f,this.api.logVisibility(this.yR,this.zx));g.qP(this.api.getRootNode(),"ytp-progress-bar-decoration",f);f=160*this.tooltip.scale*2;b=y.length*(this.Ze?8.55:5.7);b=b<=f?b:f;u=b<160*this.tooltip.scale;f=3;!u&&b/ 2>Q.position&&(f=1);!u&&b/2>this.j-Q.position&&(f=2);this.api.C().N&&(X-=10);this.D.length&&this.D[0].EZ&&(X-=14*(this.Ze?2:1),this.f3||(this.f3=!0,this.api.logVisibility(this.wh,this.f3)));var M;if(h9(this)&&(((M=this.B)==null?0:M.isEnabled)||this.iT>0)){var C;X-=((C=this.B)==null?0:C.isEnabled)?zB(this):this.iT}M=void 0;h9(this)&&!this.api.V("web_player_hide_fine_scrubbing_edu")&&(M="Pull up for precise seeking",this.yl||(this.yl=!0,this.api.logVisibility(this.p5,this.yl)));this.tooltip.Qy(z,H, v,!!L,X,y,f,M)}else this.tooltip.Qy(z,H,v,!!L,X);g.SK(this.api.getRootNode(),"ytp-progress-bar-hover");LA_(this)}; g.S.AMT=function(){this.Z3();g.vO(this.api.getRootNode(),"ytp-progress-bar-hover");this.f3&&(this.f3=!1,this.api.logVisibility(this.wh,this.f3));this.yl&&(this.yl=!1,this.api.logVisibility(this.p5,this.yl))}; g.S.fmT=function(Q,z){h9(this)&&this.B&&(this.B.yl?UO(this.B,this.api.getCurrentTime()):sSA(this.B),this.B.show(),g.qP(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.B.isEnabled));this.Tx&&(this.Tx.dispose(),this.Tx=null);this.LA=z;this.QN=this.api.getCurrentTime();this.Z.length>1&&this.L3!==-1?this.api.seekTo(this.Z[this.L3].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(eO(this,VI(this)),!1,void 0,void 0,7);g.SK(this.element,"ytp-drag");(this.sj=this.api.getPlayerStateObject().isOrWillBePlaying())&& this.api.pauseVideo()}; g.S.m4I=function(){if(h9(this)&&this.B){var Q=zB(this);this.iT>=Q*.5?(this.B.enable(),UO(this.B,this.api.getCurrentTime()),nD9(this,Q)):b_(this)}if(g.w(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var z;if((z=this.B)==null?0:z.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.Z.length>1&&this.L3!==-1)this.api.V("html5_enable_progress_bar_slide_seek_logging")&&ls(this,this.QN,this.Z[this.L3].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.Z[this.L3].startTime/1E3,void 0,void 0,void 0,7);else{Q=eO(this,VI(this));this.api.V("html5_enable_progress_bar_slide_seek_logging")&&ls(this,this.QN,Q,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(Q,void 0,void 0,void 0,7);z=g.n(this.heatMarkersDecorations);for(var H=z.next();!H.done;H=z.next())H=H.value,Q*1E3>=H.visibleTimeRangeStartMillis&&Q*1E3<=H.visibleTimeRangeEndMillis&& this.api.logClick(this.yR)}g.vO(this.element,"ytp-drag");this.sj&&!g.w(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.S.nsv=function(Q,z){Q=VI(this);Q=eO(this,Q);this.api.seekTo(Q,!1,void 0,void 0,7);var H;h9(this)&&((H=this.B)==null?0:H.yl)&&(UO(this.B,Q),this.B.isEnabled||(H=zB(this),this.iT=g.v3(this.LA-z-10,0,H),nD9(this,this.iT)))}; g.S.Z3=function(){this.tooltip.bO()}; g.S.mu=function(){this.GL||(this.updateValue("clipstarticon",jEn()),this.updateValue("clipendicon",jEn()),g.SK(this.element,"ytp-clip-hover"))}; g.S.Vm=function(){this.GL||(this.updateValue("clipstarticon",xV8()),this.updateValue("clipendicon",Fx6()),g.vO(this.element,"ytp-clip-hover"))}; g.S.H3=function(){this.clipStart=0;this.clipEnd=Infinity;RC(this);kz(this,this.U,this.rT)}; g.S.LSe=function(Q){Q=g.n(Q);for(var z=Q.next();!z.done;z=Q.next())if(z=z.value,z.visible){var H=z.getId();if(!this.jm[H]){var f=g.Hx("DIV");z.tooltip&&f.setAttribute("data-tooltip",z.tooltip);this.jm[H]=z;this.EY[H]=f;g.LZ(f,z.style);vD6(this,H);this.api.C().V("disable_ad_markers_on_content_progress_bar")||this.Z[0].D.appendChild(f)}}else phn(this,z)}; g.S.VHT=function(Q){Q=g.n(Q);for(var z=Q.next();!z.done;z=Q.next())phn(this,z.value)}; g.S.X7=function(Q){this.B&&(this.B.onExit(Q!=null),b_(this))}; g.S.xb=function(Q){this.B&&(this.B.play(Q!=null),b_(this))}; g.S.a3n=function(){gDL(this,this.api.GZ())}; g.S.zv=function(){gDL(this,!1);g.Ca.prototype.zv.call(this)};g.p(LO,g.m);LO.prototype.isActive=function(){return!!this.K.getOption("remote","casting")}; LO.prototype.Jh=function(){var Q=!1;this.K.getOptions().includes("remote")&&(Q=this.K.getOption("remote","receivers").length>1);this.Ho(Q&&this.K.Un().getPlayerSize().width>=400);this.K.logVisibility(this.element,this.LH);var z=1;Q&&this.isActive()&&(z=2);if(this.Z!==z){this.Z=z;switch(z){case 1:this.updateValue("icon",{G:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",w4:!0,T:{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.$Vp())}g.qP(this.element,"ytp-remote-button-active",this.isActive())}}; LO.prototype.B=function(){if(this.K.getOption("remote","quickCast"))this.K.setOption("remote","quickCast",!0);else{var Q=this.kt,z=this.element;if(Q.A9())Q.fH();else{Q.initialize();a:{var H=g.n(Q.Z6.items);for(var f=H.next();!f.done;f=H.next())if(f=f.value,f.priority===1){H=f;break a}H=null}H&&(H.open(),Q.ir(z));Q.ir(z)}}this.K.logClick(this.element)};g.p(u_,g.m);u_.prototype.Z=function(Q){var z=this.K.C(),H=400;this.K.V("web_player_small_hbp_settings_menu")&&z.j?H=300:z.N&&(H=200);Q=this.B&&Q.width>=H;this.Ho(Q);this.K.V("embeds_use_parent_visibility_in_ve_logging")?this.K.logVisibility(this.element,Q&&this.S):this.K.logVisibility(this.element,Q)}; u_.prototype.L=function(){if(this.kt.LH)this.kt.fH();else{var Q=g.oO(this.K.xt());Q&&!Q.loaded&&(Q.TZ("tracklist",{includeAsr:!0}).length||Q.load());this.K.logClick(this.element);this.kt.ir(this.element)}}; u_.prototype.updateBadge=function(){var Q=this.K.isHdr(),z=this.K.getPresentingPlayerType(),H=z!==2&&z!==3,f=g.rX(this.K),b=H&&!!g.Y1(this.K.xt());z=b&&f.displayMode===1;f=b&&f.displayMode===2;H=(b=z||f)||!H?null:this.K.getPlaybackQuality();g.qP(this.element,"ytp-hdr-quality-badge",Q);g.qP(this.element,"ytp-hd-quality-badge",!Q&&(H==="hd1080"||H==="hd1440"));g.qP(this.element,"ytp-4k-quality-badge",!Q&&H==="hd2160");g.qP(this.element,"ytp-5k-quality-badge",!Q&&H==="hd2880");g.qP(this.element,"ytp-8k-quality-badge", !Q&&H==="highres");g.qP(this.element,"ytp-3d-badge-grey",!Q&&b&&z);g.qP(this.element,"ytp-3d-badge",!Q&&b&&f)};g.p(Sk,fK);Sk.prototype.isLoaded=function(){var Q=g.r3(this.K.xt());return Q!==void 0&&Q.loaded}; Sk.prototype.Jh=function(){g.r3(this.K.xt())!==void 0&&this.K.getPresentingPlayerType()!==3?this.Z||(this.kt.md(this),this.Z=!0):this.Z&&(this.kt.nA(this),this.Z=!1);bo(this,this.isLoaded())}; Sk.prototype.onSelect=function(Q){this.isLoaded();Q?this.K.loadModule("annotations_module"):this.K.unloadModule("annotations_module");this.K.publish("annotationvisibility",Q)}; Sk.prototype.zv=function(){this.Z&&this.kt.nA(this);fK.prototype.zv.call(this)};g.p(Xf,g.hz);Xf.prototype.Jh=function(){var Q=this.K.getAvailableAudioTracks();Q.length>1?(this.wz(g.J5(Q,this.Z)),this.tracks=g.MI(Q,this.Z,this),this.countLabel.UV(Q.length?" ("+Q.length+")":""),this.publish("size-change"),this.RJ(this.Z(this.K.getAudioTrack())),this.enable(!0)):this.enable(!1)}; Xf.prototype.zZ=function(Q){g.hz.prototype.zZ.call(this,Q);this.K.setAudioTrack(this.tracks[Q]);this.kt.R6()}; Xf.prototype.Z=function(Q){return Q.toString()};g.p(vP,fK); vP.prototype.B=function(){var Q=this.K.getPresentingPlayerType();if(Q!==2&&Q!==3&&g.BG(this.K))this.Z||(this.kt.md(this),this.Z=!0,this.L.push(this.X(this.K,"videodatachange",this.B)),this.L.push(this.X(this.K,"videoplayerreset",this.B)),this.L.push(this.X(this.K,"onPlaylistUpdate",this.B)),this.L.push(this.X(this.K,"autonavchange",this.D)),Q=this.K.getVideoData(),this.D(Q.autonavState),this.K.logVisibility(this.element,this.Z));else if(this.Z){this.kt.nA(this);this.Z=!1;Q=g.n(this.L);for(var z=Q.next();!z.done;z= Q.next())this.DS(z.value)}}; vP.prototype.D=function(Q){bo(this,Q!==1)}; vP.prototype.onSelect=function(Q){this.K.P3(Q?2:1);this.Z&&(this.K.logVisibility(this.element,this.Z),this.K.logClick(this.element))}; vP.prototype.zv=function(){this.Z&&this.kt.nA(this);fK.prototype.zv.call(this)};g.p(GWu,g.dX);GWu.prototype.onClick=function(Q){Q.preventDefault();var z,H;(z=g.EZ(this.K))==null||(H=z.S0())==null||H.fH();var f,b;(f=g.EZ(this.K))==null||(b=f.nu())==null||b.ir(Q.target)};g.p($LJ,g.hz);g.S=$LJ.prototype; g.S.Yx=function(){var Q=this.K.getPresentingPlayerType();if(Q!==2&&Q!==3){this.L3=this.K.Qz();Q=this.K.getAvailableQualityLevels();if(this.Z){this.D={};var z=g.yw(this.K,"getAvailableQualityData",[]);z=g.n(z);for(var H=z.next();!H.done;H=z.next())H=H.value,this.D[H.qualityLabel]=H;z=Object.keys(this.D);Q[Q.length-1]==="auto"&&z.push("auto");this.De=new Set(Q)}else if(this.j){H=g.yw(this.K,"getAvailableQualityData",[]);z=[];H=g.n(H);for(var f=H.next();!f.done;f=H.next())f=f.value,this.U[f.quality]= f,f.quality&&z.push(f.quality);Q[Q.length-1]==="auto"&&z.push("auto")}else z=Q;g.dDu(this.K)&&this.K.gp()&&z.unshift("missing-qualities");mDa(this.K)&&z.unshift("inline-survey");this.wz(z);Q=this.K.getVideoData().cotn?!0:!1;H=this.wh.yP();H=!g.mD(this.K.C())||!(Q===void 0?0:Q)||!(H===void 0||H);Q=this.B;H=H===void 0?!1:H;Q.ll&&g.qP(Q.Mc("ytp-panel-footer"),"ytp-panel-hide-footer",H===void 0?!1:H);if(z.length){this.Pu();this.enable(!0);return}}this.enable(!1)}; g.S.Pu=function(){if(this.Z){var Q=this.K.getPreferredQuality();this.De.has(Q)&&(this.Y=this.K.getPlaybackQuality(),this.Ze=this.K.getPlaybackQualityLabel(),Q==="auto"?(this.RJ(Q),this.UV(this.Z5(Q))):this.RJ(this.Ze))}else Q=this.K.getPreferredQuality(),this.options[Q]&&(this.Y=this.K.getPlaybackQuality(),this.RJ(Q),Q==="auto"&&this.UV(this.Z5(Q)))}; g.S.zZ=function(Q){if(Q!=="missing-qualities"){g.hz.prototype.zZ.call(this,Q);var z=this.Z?this.D[Q]:this.U[Q];var H=z==null?void 0:z.quality,f=z==null?void 0:z.formatId,b=z==null?void 0:z.paygatedQualityDetails;z=b==null?void 0:b.endpoint;if(b){var L;b=(L=this.options[Q])==null?void 0:L.element;this.K.logClick(b)}if(this.Z){var u,X;if((u=g.K(z,g.yCx))==null?0:(X=u.popup)==null?0:X.notificationActionRenderer)this.K.F$("innertubeCommand",z);else if(z){this.K.F$("innertubeCommand",z);return}f?this.K.setPlaybackQuality(H, f):this.K.setPlaybackQuality(H)}else{if(this.j){var v,y;if((v=g.K(z,g.yCx))==null?0:(y=v.popup)==null?0:y.notificationActionRenderer)this.K.F$("innertubeCommand",z);else if(z){this.K.F$("innertubeCommand",z);return}}this.K.setPlaybackQuality(Q)}this.kt.fH();this.Yx()}}; g.S.open=function(){for(var Q=g.n(Object.values(this.options)),z=Q.next();!z.done;z=Q.next()){z=z.value;var H=void 0;this.K.hasVe((H=z)==null?void 0:H.element)&&(H=void 0,this.K.logVisibility((H=z)==null?void 0:H.element,!0))}g.hz.prototype.open.call(this);this.K.logClick(this.element)}; g.S.Ac=function(Q,z,H){var f=this;if(Q==="missing-qualities")return new g.dX({G:"a",lT:["ytp-menuitem"],T:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.K.C().U,tabindex:"0",role:"menuitemradio"},W:[{G:"div",lT:["ytp-menuitem-label"],BI:"{{label}}"}]},z,this.Z5(Q));if(Q!=="inline-survey"){var b,L=(b=this.Z?this.D[Q]:this.U[Q])==null?void 0:b.paygatedQualityDetails;b=L==null?void 0:L.veType;L=L==null?void 0:L.trackingParams;z=g.hz.prototype.Ac.call(this,Q,z,H);L?(this.K.createServerVe(z.element, this,!0),this.K.setTrackingParams(z.element,L)):b&&this.K.createClientVe(z.element,this,b,!0);return z}Q=[{G:"span",BI:"Look good?"}];H=g.n([!0,!1]);L=H.next();for(b={};!L.done;b={Gf:void 0},L=H.next())b.Gf=L.value,L=new g.m({G:"span",J:"ytp-menuitem-inline-survey-response",W:[b.Gf?Ye8():ow9()],T:{tabindex:"0",role:"button"}}),L.listen("click",function(u){return function(){var X=u.Gf,v=f.K.app.X$();v&&(v.On("iqsr",{tu:X}),v.getVideoData().FJ=!0);f.kt.fH();f.Yx()}}(b)),Q.push(L); return new g.dX({G:"div",J:"ytp-menuitem",T:{"aria-disabled":"true"},W:[{G:"div",lT:["ytp-menuitem-label"],W:Q}]},z)}; g.S.Z5=function(Q,z){z=z===void 0?!1:z;if(Q==="missing-qualities")return{G:"div",BI:"Missing options?"};if(Q==="inline-survey")return"";var H=this.j||this.Z?[xLn(this,Q,z,!1)]:[FAA(this,Q)];var f=this.K.getPreferredQuality();z||f!=="auto"||Q!=="auto"||(H.push(" "),this.Z?H.push(xLn(this,this.Ze,z,!0,["ytp-menu-label-secondary"])):this.j?H.push(xLn(this,this.Y,z,!0,["ytp-menu-label-secondary"])):H.push(FAA(this,this.Y,["ytp-menu-label-secondary"])));return{G:"div",W:H}};g.p(yz,g.m);yz.prototype.init=function(){this.updateValue("minvalue",this.L);this.updateValue("maxvalue",this.D);this.updateValue("stepvalue",this.Y);this.updateValue("slidervalue",this.B);Oek(this,this.B)}; yz.prototype.N=function(){oDu(this,Number(this.Z.value));this.Z.focus()}; yz.prototype.j=function(Q){if(!Q.defaultPrevented){switch(Q.code){case "ArrowDown":Q=-this.Y;break;case "ArrowUp":Q=this.Y;break;default:return}oDu(this,Math.min(this.D,Math.max(Number((this.B+Q).toFixed(2)),this.L)))}};g.p(q8,yz);q8.prototype.N=function(){yz.prototype.N.call(this);this.U&&JHc(this)}; q8.prototype.L3=function(){this.Ze()}; q8.prototype.wh=function(){this.K.setPlaybackRate(this.B,!0)}; q8.prototype.j=function(Q){yz.prototype.j.call(this,Q);this.Ze();JHc(this);Q.preventDefault()};g.p(M8,g.m);g.S=M8.prototype;g.S.init=function(){this.Yd(this.Z);this.updateValue("minvalue",this.B);this.updateValue("maxvalue",this.L)}; g.S.Ud=function(Q){if(!Q.defaultPrevented){switch(Q.keyCode){case 37:case 40:var z=-this.N;break;case 39:case 38:z=this.N;break;default:return}this.Yd(this.Z+z);Q.preventDefault()}}; g.S.WA=function(Q){var z=this.Z;z+=(Q.deltaX||-Q.deltaY)<0?-this.U:this.U;this.Yd(z);Q.preventDefault()}; g.S.TW=function(Q){Q=(Q-g.GJ(this.D).x)/this.Ze*this.range+this.B;this.Yd(Q)}; g.S.Yd=function(Q,z){z=z===void 0?"":z;Q=g.v3(Q,this.B,this.L);z===""&&(z=Q.toString());this.updateValue("valuenow",Q);this.updateValue("valuetext",z);this.wh.style.left=(Q-this.B)/this.range*(this.Ze-this.yl)+"px";this.Z=Q}; g.S.focus=function(){this.f3.focus()};g.p(CO,M8);CO.prototype.L3=function(){this.K.setPlaybackRate(this.Z,!0)}; CO.prototype.Yd=function(Q){M8.prototype.Yd.call(this,Q,IfY(this,Q).toString());this.j&&(NLn(this),this.De())}; CO.prototype.updateValues=function(){var Q=this.K.getPlaybackRate();IfY(this,this.Z)!==Q&&(this.Yd(Q),NLn(this))};g.p(AHZ,g.Ca);AHZ.prototype.focus=function(){this.Z.focus()};g.p(Ywk,Ii);g.p(rH8,g.hz);g.S=rH8.prototype;g.S.Z5=function(Q){return Q==="1"?"Normal":Q.toLocaleString()}; g.S.Jh=function(){var Q,z=(Q=this.K.getVideoData())==null?void 0:Q.OZ();Q=this.K.getPresentingPlayerType(z);this.enable(Q!==2&&Q!==3);P36(this)}; g.S.wz=function(Q){g.hz.prototype.wz.call(this,Q);this.Y&&this.Y.Z.focus()}; g.S.L_=function(Q){g.hz.prototype.L_.call(this,Q);Q?(this.Ze=this.X(this.K,"onPlaybackRateChange",this.onPlaybackRateChange),P36(this),sFp(this,this.K.getPlaybackRate())):(this.DS(this.Ze),this.Ze=null)}; g.S.onPlaybackRateChange=function(Q){var z=this.K.getPlaybackRate();!this.D&&this.U.includes(z)||BL_(this,z);sFp(this,Q)}; g.S.Ac=function(Q,z,H){return Q===this.Z&&afn(this.K)?g.hz.prototype.Ac.call(this,Q,z,H,{G:"div",J:"ytp-speed-slider-menu-footer",W:[this.Y]}):g.hz.prototype.Ac.call(this,Q,z,H)}; g.S.zZ=function(Q){g.hz.prototype.zZ.call(this,Q);Q===this.Z?this.K.setPlaybackRate(this.j,!0):this.K.setPlaybackRate(Number(Q),!0);afn(this.K)&&Q===this.Z||this.kt.R6()}; g.S.g1=function(Q){var z=Q===this.Z;this.D=!1;z&&tY(this.K)&&!afn(this.K)?(Q=new Ywk(this.K),g.sk(this.kt,Q)):g.hz.prototype.g1.call(this,Q)};g.p(cH9,g.hz);g.S=cH9.prototype;g.S.RJ=function(Q){g.hz.prototype.RJ.call(this,Q)}; g.S.xT=function(Q){return Q.option.toString()}; g.S.getOption=function(Q){return this.settings[Q]}; g.S.Z5=function(Q){return this.getOption(Q).text||""}; g.S.zZ=function(Q){g.hz.prototype.zZ.call(this,Q);this.publish("settingChange",this.setting,this.settings[Q].option)};g.p(pO,g.Az);pO.prototype.yk=function(Q){for(var z=g.n(Object.keys(Q)),H=z.next();!H.done;H=z.next()){var f=H.value;if(H=this.YG[f]){var b=Q[f].toString();f=!!Q[f+"Override"];H.options[b]&&(H.RJ(b),H.D.element.setAttribute("aria-checked",String(!f)),H.Z.element.setAttribute("aria-checked",String(f)))}}}; pO.prototype.Eu=function(Q,z){this.publish("settingChange",Q,z)};g.p(nO,g.hz);nO.prototype.Z=function(Q){return Q.languageCode}; nO.prototype.Z5=function(Q){return this.languages[Q].languageName||""}; nO.prototype.zZ=function(Q){this.publish("select",Q);this.K.logClick(this.element);g.B9(this.kt)};g.p(WAu,g.hz);g.S=WAu.prototype;g.S.sE=function(Q){return g.Ys(Q)?"__off__":Q.displayName}; g.S.Z5=function(Q){return Q==="__off__"?"Off":Q==="__translate__"?"Auto-translate":Q==="__contribute__"?"Add subtitles/CC":Q==="__correction__"?"Suggest caption corrections":(Q==="__off__"?{}:this.tracks[Q]).displayName}; g.S.zZ=function(Q){if(Q==="__translate__")this.Z.open();else if(Q==="__contribute__"){this.K.pauseVideo();this.K.isFullscreen()&&this.K.toggleFullscreen();var z=g.sW(this.K.C(),this.K.getVideoData());g.Kp(z)}else if(Q==="__correction__"){this.K.pauseVideo();this.K.isFullscreen()&&this.K.toggleFullscreen();var H=DLu(this);go(this,H);g.hz.prototype.zZ.call(this,this.sE(H));var f,b;H=(z=this.K.getVideoData().getPlayerResponse())==null?void 0:(f=z.captions)==null?void 0:(b=f.playerCaptionsTracklistRenderer)== null?void 0:b.openTranscriptCommand;this.K.F$("innertubeCommand",H);this.kt.R6();this.D&&this.K.logClick(this.D)}else{if(Q==="__correction__"){this.K.pauseVideo();this.K.isFullscreen()&&this.K.toggleFullscreen();z=DLu(this);go(this,z);g.hz.prototype.zZ.call(this,this.sE(z));var L,u;z=(H=this.K.getVideoData().getPlayerResponse())==null?void 0:(L=H.captions)==null?void 0:(u=L.playerCaptionsTracklistRenderer)==null?void 0:u.openTranscriptCommand;this.K.F$("innertubeCommand",z)}else this.K.logClick(this.element), go(this,Q==="__off__"?{}:this.tracks[Q]),g.hz.prototype.zZ.call(this,Q);this.kt.R6()}}; g.S.Jh=function(){var Q=this.K.getOptions();Q=Q&&Q.indexOf("captions")!==-1;var z=this.K.getVideoData(),H=z&&z.HP,f,b=!((f=this.K.getVideoData())==null||!g.lE(f));f={};if(Q||H){var L;if(Q){var u=this.K.getOption("captions","track");f=this.K.getOption("captions","tracklist",{includeAsr:!0});var X=b?[]:this.K.getOption("captions","translationLanguages");this.tracks=g.MI(f,this.sE,this);b=g.J5(f,this.sE);var v,y;DLu(this)&&((L=z.getPlayerResponse())==null?0:(v=L.captions)==null?0:(y=v.playerCaptionsTracklistRenderer)== null?0:y.openTranscriptCommand)&&b.push("__correction__");if(X.length&&!g.Ys(u)){if((L=u.translationLanguage)&&L.languageName){var q=L.languageName;L=X.findIndex(function(M){return M.languageName===q}); uxJ(X,L)}iek(this.Z,X);b.push("__translate__")}L=this.sE(u)}else this.tracks={},b=[],L="__off__";b.unshift("__off__");this.tracks.__off__={};H&&b.unshift("__contribute__");this.tracks[L]||(this.tracks[L]=u,b.push(L));this.wz(b);this.RJ(L);u&&u.translationLanguage?this.Z.RJ(this.Z.Z(u.translationLanguage)):xg_(this.Z);Q&&this.j.yk(this.K.getSubtitlesUserSettings());this.countLabel.UV(f&&f.length?" ("+f.length+")":"");this.publish("size-change");this.K.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.S.g6=function(Q){var z=this.K.getOption("captions","track");z=g.B3(z);z.translationLanguage=this.Z.languages[Q];go(this,z)}; g.S.Eu=function(Q,z){if(Q==="reset")this.K.resetSubtitlesUserSettings();else{var H={};H[Q]=z;this.K.updateSubtitlesUserSettings(H)}hBZ(this,!0);this.Y.start();this.j.yk(this.K.getSubtitlesUserSettings())}; g.S.zYh=function(Q){Q||g.QM(this.Y)}; g.S.zv=function(){g.QM(this.Y);g.hz.prototype.zv.call(this)}; g.S.open=function(){g.hz.prototype.open.call(this);this.options.__correction__&&!this.D&&(this.D=this.options.__correction__.element,this.K.createClientVe(this.D,this,167341),this.K.logVisibility(this.D,!0))};g.p(KAk,g.rI);g.S=KAk.prototype; g.S.initialize=function(){if(!this.isInitialized){var Q=this.K.C();this.isInitialized=!0;try{this.NV=new $LJ(this.K,this)}catch(H){g.PT(Error("QualityMenuItem creation failed"))}g.W(this,this.NV);var z=new WAu(this.K,this);g.W(this,z);Q.L||(z=new Sk(this.K,this),g.W(this,z));Q.enableSpeedOptions&&(z=new rH8(this.K,this),g.W(this,z));(g.xh(Q)||Q.j)&&(Q.B||Q.En)&&(z=new GWu(this.K,this),g.W(this,z));Q.zx&&!Q.V("web_player_move_autonav_toggle")&&(Q=new vP(this.K,this),g.W(this,Q));Q=new Xf(this.K,this); g.W(this,Q);this.K.publish("settingsMenuInitialized");ZeA(this.settingsButton,this.Z6.xf())}}; g.S.md=function(Q){this.initialize();this.Z6.md(Q);ZeA(this.settingsButton,this.Z6.xf())}; g.S.nA=function(Q){this.LH&&this.Z6.xf()<=1&&this.hide();this.Z6.nA(Q);ZeA(this.settingsButton,this.Z6.xf())}; g.S.ir=function(Q){this.initialize();this.Z6.xf()>0&&g.rI.prototype.ir.call(this,Q)}; g.S.fH=function(){this.fX?this.fX=!1:g.rI.prototype.fH.call(this)}; g.S.show=function(){g.rI.prototype.show.call(this);g.SK(this.K.getRootNode(),"ytp-settings-shown")}; g.S.hide=function(){g.rI.prototype.hide.call(this);g.vO(this.K.getRootNode(),"ytp-settings-shown")}; g.S.Ox=function(Q){this.K.logVisibility(this.element,Q);this.K.publish("settingsMenuVisibilityChanged",Q)};g.p(dL8,g.m);g.S=dL8.prototype;g.S.onClick=function(){if(mLv(this)&&(this.K.toggleSubtitles(),this.K.logClick(this.element),!this.isEnabled())){var Q=!1,z=g.DQ(g.Ww(),65);g.mD(this.K.C())&&z!=null&&(Q=!z);Q&&this.K.C().V("web_player_nitrate_promo_tooltip")&&this.K.publish("showpromotooltip",this.element)}}; g.S.Ven=function(Q){var z,H;(z=g.EZ(this.K))==null||(H=z.S0())==null||H.ir(Q)}; g.S.isEnabled=function(){return!!this.K.getOption("captions","track").displayName}; g.S.Jh=function(){var Q=mLv(this),z=300;this.K.C().N&&(z=480);if(this.K.C().j){this.updateValue("title",g.x1(this.K,"Subtitles/closed captions","c"));this.update({"data-title-no-tooltip":"Subtitles/closed captions"});var H=Q}else{if(Q)(H=this.Mc("ytp-subtitles-button-icon"))==null||H.setAttribute("fill-opacity","1"),this.updateValue("title",g.x1(this.K,"Subtitles/closed captions","c")),this.update({"data-title-no-tooltip":"Subtitles/closed captions"});else{var f;(f=this.Mc("ytp-subtitles-button-icon"))== null||f.setAttribute("fill-opacity","0.3");this.updateValue("title","Subtitles/closed captions unavailable");this.update({"data-title-no-tooltip":"Subtitles/closed captions unavailable"})}H=!0}this.tooltip.UX();H=H&&this.K.Un().getPlayerSize().width>=z;this.Ho(H);this.K.V("embeds_use_parent_visibility_in_ve_logging")?this.K.logVisibility(this.element,H&&this.S):this.K.logVisibility(this.element,H);Q?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)}; g.S.pH=function(Q){g.m.prototype.pH.call(this,Q);this.K.C().V("embeds_use_parent_visibility_in_ve_logging")&&this.K.logVisibility(this.element,this.LH&&Q)};g.p(g.ZC,g.m);g.S=g.ZC.prototype; g.S.A7=function(){var Q=this.api.Un().getPlayerSize().width,z=this.U;this.api.C().N&&(z=400);z=Q>=z&&(!GB(this)||!g.w(this.api.getPlayerStateObject(),64));this.Ho(z);g.qP(this.element,"ytp-time-display-allow-autohide",z&&Q<400);Q=this.api.getProgressState();if(z){z=this.api.getPresentingPlayerType();var H=this.api.getCurrentTime(z,!1);this.B&&(H-=Q.airingStart);$2(this)&&(H-=this.GL.startTimeMs/1E3);$2(this)||GB(this)||!this.L||(H=this.api.getDuration(z,!1)-H);H=g.xU(H);this.D!==H&&(this.updateValue("currenttime", H),this.D=H);z=$2(this)?g.xU((this.GL.endTimeMs-this.GL.startTimeMs)/1E3):g.xU(this.api.getDuration(z,!1));this.j!==z&&(this.updateValue("duration",z),this.j=z)}whY(this,Q.isAtLiveHead);kW6(this,this.api.getLoopRange())}; g.S.onLoopRangeChange=function(Q){var z=this.GL!==Q;this.GL=Q;z&&(this.A7(),TLA(this))}; g.S.EJ5=function(){this.api.setLoopRange(null)}; g.S.YVq=function(){this.L=!this.L;this.A7()}; g.S.onVideoDataChange=function(Q,z,H){this.updateVideoData((this.api.C().V("enable_topsoil_wta_for_halftime")||this.api.C().V("enable_topsoil_wta_for_halftime_live_infra"))&&H===2?this.api.getVideoData(1):z);this.A7();TLA(this)}; g.S.updateVideoData=function(Q){this.kA=Q.isLivePlayback&&!Q.WI;this.B=Qw(Q);this.isPremiere=Q.isPremiere;g.qP(this.element,"ytp-live",GB(this))}; g.S.onClick=function(Q){Q.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.S.zv=function(){this.Z&&this.Z();g.m.prototype.zv.call(this)};g.p(lfv,g.m);g.S=lfv.prototype;g.S.oK=function(){var Q=this.api.iW();this.L!==Q&&(this.L=Q,eBn(this,this.api.getVolume(),this.api.isMuted()))}; g.S.zb=function(Q){this.Ho(Q.width>=350)}; g.S.eR=function(Q){if(!Q.defaultPrevented){var z=Q.keyCode,H=null;z===37?H=this.volume-5:z===39?H=this.volume+5:z===36?H=0:z===35&&(H=100);H!==null&&(H=g.v3(H,0,100),H===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(H)),Q.preventDefault())}}; g.S.rJ=function(Q){var z=Q.deltaX||-Q.deltaY;Q.deltaMode?this.api.setVolume(this.volume+(z<0?-10:10)):this.api.setVolume(this.volume+g.v3(z/10,-10,10));Q.preventDefault()}; g.S.Mem=function(){jk(this,this.Z,!0,this.B,this.api.pg());this.U=this.volume;this.api.isMuted()&&this.api.unMute()}; g.S.oA=function(Q){var z=this.L?78:52,H=this.L?18:12;Q-=g.GJ(this.N).x;this.api.setVolume(g.v3((Q-H/2)/(z-H),0,1)*100)}; g.S.k1h=function(){jk(this,this.Z,!1,this.B,this.api.pg());this.volume===0&&(this.api.mute(),this.api.setVolume(this.U))}; g.S.onVolumeChange=function(Q){eBn(this,Q.volume,Q.muted)}; g.S.vx=function(){jk(this,this.Z,this.isDragging,this.B,this.api.pg())}; g.S.zv=function(){g.m.prototype.zv.call(this);g.vO(this.Y,"ytp-volume-slider-active")};g.p(Ff,g.m); Ff.prototype.onVideoDataChange=function(){var Q=this.api.C();this.tZ();this.visible=!!this.api.getVideoData().videoId&&!g.zI(this.api.getVideoData(1));this.Ho(this.visible);this.api.logVisibility(this.element,this.visible&&this.S);if(this.visible){var z=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",z)}Q.L&&(this.Z&&(this.DS(this.Z),this.Z=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.SK(this.element,"no-link")); z=this.api.C();Q=this.api.getVideoData();var H="";z.L||(z=g.W0(z),z.indexOf("www.")===0&&(z=z.substring(4)),H=g.fR(Q)?"Watch on YouTube Music":z==="youtube.com"?"Watch on YouTube":g.EB("Watch on $WEBSITE",{WEBSITE:z}));this.updateValue("title",H)}; Ff.prototype.onClick=function(Q){this.api.V("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var z=this.api.C(),H=this.api.getVideoUrl(!g.Ox(Q),!1,!0,!0);if(g.xh(z)){var f={};g.xh(z)&&g.yw(this.api,"addEmbedsConversionTrackingParams",[f]);H=g.Ve(H,f)}g.uo(H,this.api,Q);this.api.V("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; Ff.prototype.tZ=function(){var Q={G:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},W:[{G:"path",w4:!0,J:"ytp-svg-fill",T:{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 "}}]}, z=28666,H=this.api.getVideoData();this.api.isEmbedsShortsMode()?Q={G:"svg",T:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},W:[{G:"path",T:{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.fR(H)&&(Q={G:"svg",T:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},W:[{G:"path",T:{d:"M33.96 20.91V15.45L37.43 4.11H34.84L33.52 9.26C33.22 10.44 32.95 11.67 32.75 12.81H32.59C32.48 11.81 32.16 10.50 31.84 9.24L30.56 4.11H27.97L31.39 15.45V20.91H33.96Z",fill:"white"}},{G:"path",T:{d:"M40.92 8.31C37.89 8.31 36.85 10.06 36.85 13.83V15.62C36.85 19.00 37.50 21.12 40.86 21.12C44.17 21.12 44.88 19.10 44.88 15.62V13.83C44.88 10.46 44.20 8.31 40.92 8.31ZM42.21 16.73C42.21 18.37 41.92 19.40 40.87 19.40C39.84 19.40 39.55 18.36 39.55 16.73V12.69C39.55 11.29 39.75 10.04 40.87 10.04C42.05 10.04 42.21 11.36 42.21 12.69V16.73Z", fill:"white"}},{G:"path",T:{d:"M49.09 21.10C50.55 21.10 51.46 20.49 52.21 19.39H52.32L52.43 20.91H54.42V8.55H51.78V18.48C51.50 18.97 50.85 19.33 50.24 19.33C49.47 19.33 49.23 18.72 49.23 17.70V8.55H46.60V17.82C46.60 19.83 47.18 21.10 49.09 21.10Z",fill:"white"}},{G:"path",T:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{G:"path",T:{d:"M64.69 21.10C66.15 21.10 67.06 20.49 67.81 19.39H67.92L68.03 20.91H70.02V8.55H67.38V18.48C67.10 18.97 66.45 19.33 65.84 19.33C65.07 19.33 64.83 18.72 64.83 17.70V8.55H62.20V17.82C62.20 19.83 62.78 21.10 64.69 21.10Z", fill:"white"}},{G:"path",T:{d:"M77.49 8.28C76.21 8.28 75.29 8.84 74.68 9.75H74.55C74.63 8.55 74.69 7.53 74.69 6.72V3.45H72.14L72.13 14.19L72.14 20.91H74.36L74.55 19.71H74.62C75.21 20.52 76.12 21.03 77.33 21.03C79.34 21.03 80.20 19.30 80.20 15.62V13.71C80.20 10.27 79.81 8.28 77.49 8.28ZM77.58 15.62C77.58 17.92 77.24 19.29 76.17 19.29C75.67 19.29 74.98 19.05 74.67 18.60V11.25C74.94 10.55 75.54 10.04 76.21 10.04C77.29 10.04 77.58 11.35 77.58 13.74V15.62Z",fill:"white"}},{G:"path",T:{d:"M89.47 13.51C89.47 10.53 89.17 8.32 85.74 8.32C82.51 8.32 81.79 10.47 81.79 13.63V15.80C81.79 18.88 82.45 21.12 85.66 21.12C88.20 21.12 89.51 19.85 89.36 17.39L87.11 17.27C87.08 18.79 86.73 19.41 85.72 19.41C84.45 19.41 84.39 18.20 84.39 16.40V15.56H89.47V13.51ZM85.68 9.98C86.90 9.98 86.99 11.13 86.99 13.08V14.09H84.39V13.08C84.39 11.15 84.47 9.98 85.68 9.98Z", fill:"white"}},{G:"path",T:{d:"M93.18 20.86H95.50V13.57C95.50 11.53 95.46 9.36 95.30 6.46H95.56L95.99 8.24L98.73 20.86H101.09L103.78 8.24L104.25 6.46H104.49C104.37 9.03 104.30 11.35 104.30 13.57V20.86H106.63V4.06H102.67L101.25 10.27C100.65 12.85 100.22 16.05 99.97 17.68H99.78C99.60 16.02 99.15 12.83 98.56 10.29L97.10 4.06H93.18V20.86Z",fill:"white"}},{G:"path",T:{d:"M111.27 21.05C112.73 21.05 113.64 20.44 114.39 19.34H114.50L114.61 20.86H116.60V8.50H113.96V18.43C113.68 18.92 113.03 19.28 112.42 19.28C111.65 19.28 111.41 18.67 111.41 17.65V8.50H108.78V17.77C108.78 19.78 109.36 21.05 111.27 21.05Z", fill:"white"}},{G:"path",T:{d:"M121.82 21.12C124.24 21.12 125.59 20.05 125.59 17.86C125.59 15.87 124.59 15.06 122.21 13.44C121.12 12.72 120.53 12.27 120.53 11.21C120.53 10.42 121.02 10.00 121.91 10.00C122.88 10.00 123.21 10.64 123.25 12.46L125.41 12.34C125.59 9.49 124.57 8.27 121.95 8.27C119.47 8.27 118.28 9.34 118.28 11.46C118.28 13.42 119.21 14.31 120.96 15.53C122.51 16.60 123.36 17.27 123.36 18.16C123.36 18.89 122.85 19.42 121.96 19.42C120.94 19.42 120.36 18.54 120.46 17.21L118.27 17.25C117.93 19.81 119.13 21.12 121.82 21.12Z", fill:"white"}},{G:"path",T:{d:"M128.45 6.93C129.35 6.93 129.77 6.63 129.77 5.39C129.77 4.23 129.32 3.87 128.45 3.87C127.57 3.87 127.14 4.19 127.14 5.39C127.14 6.63 127.55 6.93 128.45 6.93ZM127.23 20.86H129.76V8.50H127.23V20.86Z",fill:"white"}},{G:"path",T:{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"}}]},z=216163);g.fR(H)?g.SK(this.element,"ytp-youtube-music-button"):g.vO(this.element,"ytp-youtube-music-button");Q.T=Object.assign({},Q.T,{"aria-hidden":"true"});this.updateValue("logoSvg",Q);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,z,!0)}; Ff.prototype.pH=function(Q){g.m.prototype.pH.call(this,Q);this.api.logVisibility(this.element,this.visible&&Q)};g.p(Q_6,g.Bt);g.S=Q_6.prototype;g.S.Ex=function(){if(this.K.V("web_player_max_seekable_on_ended")||!g.w(this.K.getPlayerStateObject(),2))this.progressBar.A7(),this.yl.A7()}; g.S.lw=function(){this.mC();this.Iz.B?this.Ex():this.progressBar.Z3()}; g.S.H8=function(){this.Ex();this.N.start()}; g.S.mC=function(){var Q;if(Q=!this.K.C().B){Q=this.progressBar;var z=2*g.dm()*Q.j;Q=Q.L.getLength()*1E3/Q.api.getPlaybackRate()/z<300}Q=Q&&this.K.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;z=!Q;this.Iz.B||(Q=z=!1);z?this.wh||(this.wh=this.X(this.K,"progresssync",this.Ex)):this.wh&&(this.DS(this.wh),this.wh=null);Q?this.N.isActive()||this.N.start():this.N.stop()}; g.S.tZ=function(){var Q=this.K.iW(),z=this.K.Un().getPlayerSize(),H=HVL(this),f=Math.max(z.width-H*2,100);if(this.gh!==z.width||this.rT!==Q){this.gh=z.width;this.rT=Q;var b=f0p(this);this.D.element.style.width=b+"px";this.D.element.style.left=H+"px";g.ED9(this.progressBar,H,b,Q);this.K.xJ().Bu=b}H=this.L;f=Math.min(570*(Q?1.5:1),f);Q=Math.min(413*(Q?1.5:1),Math.round((z.height-bVk(this))*.82));H.maxWidth=f;H.maxHeight=Q;H.Ty();this.mC();this.K.C().V("html5_player_dynamic_bottom_gradient")&&qja(this.WI, z.height)}; g.S.onVideoDataChange=function(){var Q=this.K.getVideoData();this.En.style.background=Q.gV?Q.H0:"";this.Ze&&n8v(this.Ze,Q.showSeekingControls);this.U&&n8v(this.U,Q.showSeekingControls)}; g.S.ai=function(){return this.D.element};g.p(L1u,Np);g.S=L1u.prototype;g.S.eW=function(Q){Q.target!==this.dismissButton.element&&(this.onClickCommand&&this.K.F$("innertubeCommand",this.onClickCommand),this.XE())}; g.S.XE=function(){this.enabled=!1;this.U.hide()}; g.S.onVideoDataChange=function(Q,z){Q==="dataloaded"&&u2_(this);Q=[];var H,f,b,L;if(z=(L=g.K((H=z.getWatchNextResponse())==null?void 0:(f=H.playerOverlays)==null?void 0:(b=f.playerOverlayRenderer)==null?void 0:b.suggestedActionsRenderer,ir5))==null?void 0:L.suggestedActions)for(H=g.n(z),f=H.next();!f.done;f=H.next())(f=g.K(f.value,hWY))&&g.K(f.trigger,cCB)&&Q.push(f);if(Q.length!==0){H=[];Q=g.n(Q);for(f=Q.next();!f.done;f=Q.next())if(f=f.value,b=g.K(f.trigger,cCB))L=(L=f.title)?g.pa(L):"View Chapters", z=b.timeRangeStartMillis,b=b.timeRangeEndMillis,z!=null&&b!=null&&f.tapCommand&&(H.push(new g.HD(z,b,{priority:9,namespace:"suggested_action_button_visible",id:L})),this.suggestedActions[L]=f.tapCommand);this.K.UZ(H)}}; g.S.vp=function(){return this.enabled}; g.S.Ox=function(){this.enabled?this.mq.start():oi(this);this.e0()}; g.S.zv=function(){u2_(this);Np.prototype.zv.call(this)};var xD={},oY=(xD.CHANNEL_NAME="ytp-title-channel-name",xD.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",xD.LINK="ytp-title-link",xD.SESSIONLINK="yt-uix-sessionlink",xD.SUBTEXT="ytp-title-subtext",xD.TEXT="ytp-title-text",xD.TITLE="ytp-title",xD);g.p(JY,g.m);JY.prototype.onClick=function(Q){this.api.logClick(this.element);var z=this.api.C(),H=this.api.getVideoUrl(!g.Ox(Q),!1,!0);g.xh(z)&&(z={},g.yw(this.api,"addEmbedsConversionTrackingParams",[z]),H=g.Ve(H,z));g.uo(H,this.api,Q)}; JY.prototype.Jh=function(){var Q=this.api.getVideoData(),z=this.api.C();this.updateValue("title",Q.title);var H={G:"a",J:oY.CHANNEL_NAME,T:{href:"{{channelLink}}",target:"_blank"},BI:"{{channelName}}"};this.api.C().L&&(H={G:"span",J:oY.CHANNEL_NAME,BI:"{{channelName}}",T:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",H);SQp(this);this.api.getPresentingPlayerType()===2&&(H=this.api.getVideoData(),H.videoId&&H.isListed&&H.author&&H.KH&&H.profilePicture?(this.updateValue("channelLink", H.KH),this.updateValue("channelName",H.author),this.updateValue("channelTitleFocusable","0")):SQp(this));H=z.externalFullscreen||!this.api.isFullscreen()&&z.dS;g.qP(this.link,oY.FULLERSCREEN_LINK,H);z.wh||!Q.videoId||H||g.zI(Q)||z.L?this.Z&&(this.updateValue("url",null),this.DS(this.Z),this.Z=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.Z||(this.Z=this.X(this.link,"click",this.onClick)));z.L&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.xh(z)?Q.expandedTitle: Q.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.p(g.N8,g.m);g.S=g.N8.prototype;g.S.setEnabled=function(Q){if(this.type!=null)if(Q)switch(this.type){case 3:case 2:vRA(this);this.Y.show();break;default:this.Y.show()}else this.Y.hide();this.N=Q}; g.S.Qy=function(Q,z,H,f,b,L,u,X){if(!this.yl||this.env.N){this.type===3&&this.Z3();this.type!==1&&(g.LZ(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.N&&this.Y.show(),this.B&&this.B.dispose(),(this.B=this.api.HU())&&this.B.subscribe("l",this.JR,this));if(X){var v=g.FL(this.bg).height||141;this.f3.style.bottom=v+2+"px"}else this.f3.style.display="none";this.update({text:H,title:L!=null?L:"",eduText:X!=null?X:""});g.qP(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!L);this.api.isInline()&& g.SK(this.bottomText,"ytp-modern-tooltip-text");g.qP(this.element,"ytp-text-detail",!!f);H=-1;this.B&&(H=BV(this.B,243*this.scale),this.env.V("web_l3_storyboard")&&this.B.levels.length===4&&(H=this.B.levels.length-1),H=gNc(this.B,H,z));qQ9(this,H);if(u)switch(z=g.FL(this.element).width,u){case 1:this.title.style.right="0";this.title.style.textAlign="left";break;case 2:this.title.style.right=z+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=z/2+"px",this.title.style.textAlign= "center"}ySa(this,!!f,Q,b)}}; g.S.bO=function(){this.type===1&&this.Z3()}; g.S.Ag=function(Q,z){if(this.type)if(this.type===3)this.Z3();else return;Xi8(this,Q,3,z)}; g.S.UX=function(){this.Z&&!this.U&&this.Z.hasAttribute("title")&&(this.L=this.Z.getAttribute("title")||"",this.Z.removeAttribute("title"),this.N&&vRA(this))}; g.S.JR=function(Q,z){Q<=this.D&&this.D<=z&&(Q=this.D,this.D=NaN,qQ9(this,Q))}; g.S.GL3=function(){pcc(this.B,this.D,243*this.scale)}; g.S.Z3=function(){switch(this.type){case 2:var Q=this.Z;Q.removeEventListener("mouseout",this.Ze);Q.addEventListener("mouseover",this.j);Q.removeEventListener("blur",this.Ze);Q.addEventListener("focus",this.j);MuJ(this);break;case 3:MuJ(this);break;case 1:this.B&&(this.B.unsubscribe("l",this.JR,this),this.B=null),this.api.removeEventListener("videoready",this.wh),this.L3.stop()}this.type=null;this.N&&this.Y.hide()}; g.S.Lg=function(){if(this.Z)for(var Q=0;Q=0;z--)if(this.vn[z]===Q){this.vn.splice(z,1);break}PE(this.Iz,64,this.vn.length>0)}; g.S.mJ=function(){this.api.ZC()&&this.api.t_();return!!this.dY||gRu(this)||g.d3.prototype.mJ.call(this)}; g.S.Lx=H_(3);g.S.Fx=H_(7);g.S.Nt=H_(10); g.S.bF=function(){var Q=!this.mJ(),z=Q&&this.api.ZC()&&!g.w(this.api.getPlayerStateObject(),2)&&!g.zI(this.api.getVideoData())&&!this.api.C().L&&!this.api.isEmbedsShortsMode(),H=this.wX&&g.Ig(this.api)&&g.w(this.api.getPlayerStateObject(),128);Q||H?(this.W3.show(),this.Tc.show()):(this.W3.hide(),this.Tc.hide(),this.api.Lg(this.Gs.element));z?this.aJ.ir():this.aJ.fH();this.Xf&&z1n(this.Xf,this.AA||!Q);this.api.V("web_player_hide_overflow_button_if_empty_menu")&&ZV8(this);g.d3.prototype.bF.call(this)}; g.S.Bp=function(Q,z,H,f,b){Q.style.left="";Q.style.top="";Q.style.bottom="";var L=g.FL(Q),u=f||this.Xf&&g.XU(this.Xf.ai(),z),X=f=null;H!=null&&u||(f=g.FL(z),X=g.$e(z,this.api.getRootNode()),H==null&&(H=X.x+f.width/2));H-=L.width/2;u?(z=this.Xf,f=HVL(z),X=f0p(z),u=this.api.Un().getPlayerSize().height,H=g.v3(H,f,f+X-L.width),L=u-bVk(z)-L.height):g.XU(this.Gs.element,z)?(z=this.api.Un().getPlayerSize().width,H=g.v3(H,12,z-L.width-12),L=this.iW()?this.zC:this.xS,this.api.C().playerStyle==="gvn"&&(L+= 20),this.wX&&(L-=this.iW()?26:18)):(z=this.api.Un().getPlayerSize(),H=g.v3(H,12,z.width-L.width-12),L=X.y>(z.height-f.height)/2?X.y-L.height-12:X.y+f.height+12);Q.style.top=L+(b||0)+"px";Q.style.left=H+"px"}; g.S.lw=function(Q){Q&&(this.api.Lg(this.Gs.element),this.Xf&&this.api.Lg(this.Xf.ai()));this.W6&&(g.qP(this.contextMenu.element,"ytp-autohide",Q),g.qP(this.contextMenu.element,"ytp-autohide-active",!0));g.d3.prototype.lw.call(this,Q)}; g.S.cW=function(){g.d3.prototype.cW.call(this);this.W6&&(g.qP(this.contextMenu.element,"ytp-autohide-active",!1),this.W6&&(this.contextMenu.hide(),this.qO&&this.qO.hide()))}; g.S.A8=function(Q,z){var H=this.api.Un().getPlayerSize();H=new g.S$(0,0,H.width,H.height);if(Q||this.Iz.B&&!this.mJ()){if(this.api.C().P5||z)Q=this.iW()?this.zC:this.xS,H.top+=Q,H.height-=Q;this.Xf&&(H.height-=bVk(this.Xf))}return H}; g.S.oK=function(Q){var z=this.api.getRootNode();Q?z.parentElement?(z.setAttribute("aria-label","YouTube Video Player in Full screen"),this.api.C().externalFullscreen||(z.parentElement.insertBefore(this.b4.element,z),z.parentElement.insertBefore(this.Do.element,z.nextSibling))):g.BT(Error("Player not in DOM.")):(z.setAttribute("aria-label","YouTube Video Player"),this.b4.detach(),this.Do.detach());this.tZ();this.GY()}; g.S.iW=function(){var Q=this.api.C();return this.api.isFullscreen()&&!Q.N||!1}; g.S.showControls=function(Q){this.SV=!Q;this.bF()}; g.S.tZ=function(){var Q=this.iW();this.tooltip.scale=Q?1.5:1;this.contextMenu&&g.qP(this.contextMenu.element,"ytp-big-mode",Q);this.bF();this.api.V("web_player_hide_overflow_button_if_empty_menu")||ZV8(this);this.GY();var z=this.api.isEmbedsShortsMode();z&&Q?(Q=(this.api.Un().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.q2(this.Gs.element,"padding-left",Q+"px"),g.q2(this.Gs.element,"padding-right",Q+"px")):z&&(g.q2(this.Gs.element,"padding-left",""),g.q2(this.Gs.element,"padding-right", ""));g.d3.prototype.tZ.call(this)}; g.S.v4=function(){if(gRu(this)&&!g.Ig(this.api))return!1;var Q=this.api.getVideoData();return!g.xh(this.api.C())||this.api.getPresentingPlayerType()===2||!this.S3||((Q=this.S3||Q.S3)?(Q=Q.embedPreview)?(Q=Q.thumbnailPreviewRenderer,Q=Q.videoDetails&&g.K(Q.videoDetails,HQA)||null):Q=null:Q=null,Q&&Q.collapsedRenderer&&Q.expandedRenderer)?g.d3.prototype.v4.call(this):!1}; g.S.GY=function(){g.d3.prototype.GY.call(this);this.api.logVisibility(this.title.element,!!this.Up);this.uw&&this.uw.pH(!!this.Up);this.channelAvatar.pH(!!this.Up);this.overflowButton&&this.overflowButton.pH(this.HB()&&!!this.Up);this.shareButton&&this.shareButton.pH(!this.HB()&&!!this.Up);this.nP&&this.nP.pH(!this.HB()&&!!this.Up);this.searchButton&&this.searchButton.pH(!this.HB()&&!!this.Up);this.copyLinkButton&&this.copyLinkButton.pH(!this.HB()&&!!this.Up);if(!this.Up){this.api.Lg(this.Gs.element); for(var Q=0;Q5&&z.On("glrs",{cmt:H});z.seekTo(0,{seekSource:58});z.On("glrre",{cmt:H})}}; ro.prototype.zv=function(){this.Z=null;g.h.prototype.zv.call(this)};g.p(g.s3,Ts);g.S=g.s3.prototype;g.S.isView=function(){return!0}; g.S.Hg=function(){var Q=this.mediaElement.getCurrentTime();if(Q1;SP(Q.N4(),f-.01)&&!b&&(PP(this,4),H.isActive=!1,H.xL=H.xL||H.isActive,(this.S===1?this.Z:this.B).On("sbh",{}),z.isActive=!0,z.xL=z.xL||z.isActive,this.S!==0&&(this.Z.getVideoData().oa=!0));Q=this.D.B;if(this.D.Z.isActive&&Q.isActive&&(PP(this,5),this.S!==0)){Q=this.B.wq();H=this.Z.wq(); this.Z.On("sbs",{citag:H==null?void 0:H.itag,nitag:Q==null?void 0:Q.itag});this.B.On("gitags",{pitag:H==null?void 0:H.itag,citag:Q==null?void 0:Q.itag});var L;(L=this.B)==null||L.F1()}}}; g.S.iV=function(){this.Ll()&&this.wP("player-reload-after-handoff")}; g.S.wP=function(Q,z){z=z===void 0?{}:z;if(!this.Sm()&&this.status.status!==6){var H=this.status.status>=4&&Q!=="player-reload-after-handoff";this.status={status:Infinity,error:Q};if(this.Z&&this.B){var f=this.B.getVideoData().clientPlaybackNonce;this.Z.h7(new Oh("dai.transitionfailure",Object.assign(z,{cpn:f,transitionTimeMs:this.e8,msg:Q})));this.Z.TX(H)}this.LZ.reject(Q);this.dispose()}}; g.S.Ll=function(){return this.status.status>=4&&this.status.status<6}; g.S.zv=function(){rSa(this);this.Z.unsubscribe("newelementrequired",this.iV,this);if(this.L){var Q=this.L.B;this.L.Z.oB.unsubscribe("updateend",this.aW,this);Q.oB.unsubscribe("updateend",this.aW,this)}g.h.prototype.zv.call(this)}; g.S.qH=function(Q){g.Ex(Q,128)&&this.wP("player-error-event")};g.p(aY,g.h);aY.prototype.clearQueue=function(Q,z){Q=Q===void 0?!1:Q;z=z===void 0?!1:z;this.D&&this.D.reject("Queue cleared");this.app.C().V("html5_gapless_fallback_on_qoe_restart_v2")||z&&this.B&&this.B.TX(!1);U3(this,Q)}; aY.prototype.PU=function(){return!this.Z}; aY.prototype.Ll=function(){var Q;return((Q=this.L)==null?void 0:Q.Ll())||!1}; aY.prototype.zv=function(){U3(this);g.h.prototype.zv.call(this)};g.p(iVv,g.Xp);g.S=iVv.prototype;g.S.getVisibilityState=function(Q,z,H,f,b,L,u,X){return Q?4:ceu()?3:z?2:H?1:f?5:b?7:L?8:u?9:X?10:0}; g.S.tB=function(Q){this.fullscreen!==Q&&(this.fullscreen=Q,this.Ox())}; g.S.setMinimized=function(Q){this.B!==Q&&(this.B=Q,this.Ox())}; g.S.setInline=function(Q){this.inline!==Q&&(this.inline=Q,this.Ox())}; g.S.z$=function(Q){this.pictureInPicture!==Q&&(this.pictureInPicture=Q,this.Ox())}; g.S.setSqueezeback=function(Q){this.L!==Q&&(this.L=Q,this.Ox())}; g.S.Kx=function(Q){this.D!==Q&&(this.D=Q,this.Ox())}; g.S.oJ=function(){return this.Z}; g.S.Sd=function(){return this.fullscreen!==0}; g.S.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; g.S.mG=function(){return this.fullscreen}; g.S.isMinimized=function(){return this.B}; g.S.isInline=function(){return this.inline}; g.S.isBackground=function(){return ceu()}; g.S.S2=function(){return this.pictureInPicture}; g.S.CK=function(){return!1}; g.S.Tn=function(){return this.L}; g.S.Vf=function(){return this.D}; g.S.Ox=function(){this.publish("visibilitychange");var Q=this.getVisibilityState(this.oJ(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.S2(),this.CK(),this.Tn(),this.Vf());Q!==this.j&&this.publish("visibilitystatechange");this.j=Q}; g.S.zv=function(){Wra(this.S);g.Xp.prototype.zv.call(this)};g.S=g.cP.prototype;g.S.addCueRange=function(){}; g.S.pZ=function(){}; g.S.sM=function(){}; g.S.mj=function(){return!1}; g.S.A3=function(){return!1}; g.S.sD=function(){}; g.S.sN=function(){}; g.S.m6=function(){}; g.S.v5=function(){}; g.S.Rc=function(){return[]}; g.S.rR=function(){}; g.S.R0=function(){return""}; g.S.getAudioTrack=function(){return this.getVideoData().j2}; g.S.getAvailableAudioTracks=function(){return[]}; g.S.Qz=function(){return[]}; g.S.FV=function(){return[]}; g.S.o6=function(){return[]}; g.S.HC=function(){}; g.S.yN=function(){return 0}; g.S.cT=function(){return""}; g.S.getCurrentTime=function(){return 0}; g.S.Ow=function(){}; g.S.wq=function(){}; g.S.TL=function(){return{}}; g.S.getDuration=function(){return 0}; g.S.yf=function(){return 0}; g.S.JM=function(){return 0}; g.S.ZR=function(){return!1}; g.S.SN=function(){return 0}; g.S.zp=function(){return 0}; g.S.N0=H_(15);g.S.B0=function(){return 0}; g.S.FD=function(){return!1}; g.S.qj=function(){return 0}; g.S.aB=function(){return null}; g.S.AB=function(){return null}; g.S.jx=function(){return 0}; g.S.i4=function(){return 0}; g.S.lL=function(){return g.B(function(Q){g.Gu(Q)})}; g.S.LV=H_(21);g.S.getPlaybackQuality=function(){return"auto"}; g.S.getPlaybackRate=function(){return 1}; g.S.getPlayerState=function(){this.playerState||(this.playerState=new g.zE);return this.playerState}; g.S.getPlayerType=function(){return 0}; g.S.getPlaylistSequenceForTime=function(){return null}; g.S.kV=function(){return function(){}}; g.S.tj=function(){return""}; g.S.getPreferredQuality=function(){return"unknown"}; g.S.T0=function(){}; g.S.getProximaLatencyPreference=function(){return 0}; g.S.lR=function(){return WV}; g.S.HU=function(){return null}; g.S.getStoryboardFormat=function(){return null}; g.S.getStreamTimeOffset=function(){return 0}; g.S.Gl=function(){return 0}; g.S.ex=function(){return 0}; g.S.bv=function(){return{yK:[],f_:[],currentTime:0,UM:"",droppedVideoFrames:0,isGapless:!1,PU:!0,gR:0,Aq:0,VL:0,nO:0,Y_:0,Ez:[],MQ:[],Mb:null,playerState:this.getPlayerState(),v9:null,zA:"",totalVideoFrames:0}}; g.S.getUserAudio51Preference=function(){return 0}; g.S.getUserPlaybackQualityPreference=function(){return""}; g.S.getVideoData=function(){this.videoData||(this.videoData=new g.D1(this.rh));return this.videoData}; g.S.e5=function(){return null}; g.S.Ki=function(){}; g.S.getVideoLoadedFraction=function(){return 0}; g.S.Hn=function(){}; g.S.handleError=function(){}; g.S.TX=function(){}; g.S.J6=function(){}; g.S.GF=function(){return!1}; g.S.Dz=H_(46);g.S.l7=function(){return!1}; g.S.hasSupportedAudio51Tracks=function(){return!1}; g.S.vG=function(){return!1}; g.S.oJ=function(){return!1}; g.S.isAtLiveHead=function(){return!1}; g.S.qm=function(){return!0}; g.S.isGapless=function(){return!1}; g.S.isHdr=function(){return!1}; g.S.q3=function(){return!1}; g.S.DG=function(){return!1}; g.S.NS=function(){return!1}; g.S.isProximaLatencyEligible=function(){return!1}; g.S.PU=function(){return!0}; g.S.Rn=function(){return!1}; g.S.KQ=function(){return!1}; g.S.Uw=function(){return!1}; g.S.F0=function(){}; g.S.y7=function(){}; g.S.i5=function(){}; g.S.Rk=function(){}; g.S.F1=function(){}; g.S.JH=function(){}; g.S.gF=function(){}; g.S.PJ=function(){}; g.S.Hm=function(){}; g.S.Ct=H_(56);g.S.tT=H_(27);g.S.Y8=function(){}; g.S.H9=function(){}; g.S.MI=function(){}; g.S.pauseVideo=function(){}; g.S.playVideo=function(){return g.B(function(Q){return Q.return()})}; g.S.Tp=function(){}; g.S.Zs=H_(33);g.S.CA=H_(39);g.S.us=function(){}; g.S.On=function(){}; g.S.C4=function(){}; g.S.rA=function(){}; g.S.o$=function(){}; g.S.h7=function(){}; g.S.FN=function(){}; g.S.UL=function(){}; g.S.gK=function(){}; g.S.HR=function(){}; g.S.RI=function(){}; g.S.o7=function(){}; g.S.Iv=function(){}; g.S.gk=function(){}; g.S.removeCueRange=function(){}; g.S.OR=function(){}; g.S.Ys=function(){return[]}; g.S.gq=function(){}; g.S.MO=function(){}; g.S.r$=function(){}; g.S.Oi=function(){}; g.S.Lj=function(){}; g.S.iU=function(){}; g.S.B3=function(){}; g.S.seekTo=function(){}; g.S.sendAbandonmentPing=function(){}; g.S.sendVideoStatsEngageEvent=function(){}; g.S.Vc=function(){}; g.S.x7=function(){}; g.S.setLoop=function(){}; g.S.SF=function(){}; g.S.setMediaElement=function(){}; g.S.B2=function(){}; g.S.setPlaybackRate=function(){}; g.S.VN=function(){}; g.S.BR=function(){}; g.S.PS=function(){}; g.S.setProximaLatencyPreference=function(){}; g.S.DU=function(){}; g.S.y5=function(){}; g.S.L$=function(){}; g.S.Sv=function(){}; g.S.nj=function(){}; g.S.setUserAudio51Preference=function(){}; g.S.jD=function(){}; g.S.Uq=function(){return!1}; g.S.bf=function(){}; g.S.U7=function(){return!1}; g.S.gX=function(){}; g.S.v2=function(){}; g.S.E0=function(){}; g.S.stopVideo=function(){}; g.S.subscribe=function(){return NaN}; g.S.rZ=function(){}; g.S.togglePictureInPicture=function(){}; g.S.kR=function(){return 0}; g.S.unsubscribe=function(){return!1}; g.S.AY=function(){}; g.S.xB=function(){return!1}; g.S.Op=function(){}; g.S.ye=function(){}; g.S.aC=function(){}; g.S.w5=function(){};g.p(g.i_,g.h);g.S=g.i_.prototype;g.S.ey=function(){return this.S}; g.S.jF=function(Q){this.S=Q}; g.S.X$=function(){return this.rh.V("web_player_present_empty")?this.D||this.Z:this.D}; g.S.Rl=function(Q){this.D=Q}; g.S.Go=H_(52);g.S.TQ=H_(54);g.S.QE=function(Q){return this.L[Q]||null}; g.S.zv=function(){for(var Q=g.n(Object.values(this.L)),z=Q.next();!z.done;z=Q.next())z.value.v5();g.h.prototype.zv.call(this)};g.p(hY,g.h);g.S=hY.prototype;g.S.enqueue=function(Q,z){if(Q.D!==this)return!1;if(this.segments.length===0||(z===void 0?0:z))this.Z=Q;this.segments.push(Q);return!0}; g.S.G1=function(){return this.sY||0}; g.S.AT=function(){return this.D||0}; g.S.removeAll=function(){for(;this.segments.length;){var Q=void 0;(Q=this.segments.pop())==null||Q.dispose()}this.B.clear();this.L=void 0}; g.S.zv=function(){this.removeAll();g.h.prototype.zv.call(this)}; g.p(TkA,g.h);g.S=TkA.prototype;g.S.G1=function(){return this.sY}; g.S.AT=function(){return this.L}; g.S.getType=function(){return this.type}; g.S.getVideoData=function(){return this.videoData}; g.S.Yg=function(Q){xm(Q);this.videoData=Q}; g.S.zv=function(){e1J(this);g.h.prototype.zv.call(this)};g.Vz.prototype.DM=function(Q,z){if(z===1)return this.Z.get(Q);if(z===2)return this.L.get(Q);if(z===3)return this.B.get(Q)}; g.Vz.prototype.Vg=H_(64);g.Vz.prototype.O2=function(Q,z,H,f){H={vP:f,GD:H};z?this.L.set(Q,H):this.Z.set(Q,H)}; g.Vz.prototype.clearAll=function(){this.Z.clear();this.L.clear();this.B.clear()}; g.p(g.mV,g.h);g.S=g.mV.prototype;g.S.h1=function(Q,z,H){return new g.HD(Q,z,{id:H,namespace:"serverstitchedcuerange",priority:9})}; g.S.RX=function(Q){var z=Q.bd?Q.bd*1E3:Q.sY,H=this.B.get(Q.cpn);H&&this.playback.removeCueRange(H);this.B.delete(Q.cpn);this.L.delete(Q.cpn);H=this.S.indexOf(Q);H>=0&&this.S.splice(H,1);H=[];for(var f=g.n(this.j),b=f.next();!b.done;b=f.next())b=b.value,b.end<=z?this.playback.removeCueRange(b):H.push(b);this.j=H;tCa(this,0,z+Q.durationMs)}; g.S.onCueRangeEnter=function(Q){this.En.push(Q);var z=Q.getId();this.Hz({oncueEnter:1,cpn:z,start:Q.start,end:Q.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.yN()||0).toFixed(3)});var H=z==="";this.C3.add(Q.B);var f=this.L.get(z);if(H){var b;if(this.playback.getVideoData().OZ()&&((b=this.Z)==null?0:b.Js)&&this.D){this.aN=0;this.Z=void 0;this.wh&&(this.events.DS(this.wh),this.wh=null);this.D="";this.iT=!0;return}}else if(this.Hz({enterAdCueRange:1}),this.playback.getVideoData().OZ()&& (f==null?0:f.tU))return;if(this.iT&&!this.Z)this.iT=!1,!H&&f&&(H=this.playback.getCurrentTime(),RY(this,{VR:Q,isAd:!0,Ap:!0,YV:H,adCpn:z},{isAd:!1,Ap:!1,YV:H}),this.qz=f.cpn,ek(this,f),Q=TB(this,"midab",f),this.Hz(Q),this.aN=1),this.U=!1;else if(this.Z){if(this.Z.Ap)this.Hz({a_pair_of_same_transition_occurs_enter:1,acpn:this.Z.adCpn,transitionTime:this.Z.YV,cpn:z,currentTime:this.playback.getCurrentTime()}),f=this.playback.getCurrentTime(),Q={VR:Q,isAd:!H,Ap:!0,YV:f,adCpn:z},z={VR:this.Z.VR,isAd:this.Z.isAd, Ap:!1,YV:f,adCpn:this.Z.adCpn},this.Z.VR&&this.C3.delete(this.Z.VR.B),RY(this,Q,z);else{if(this.Z.VR===Q){this.Hz({same_cue_range_pair_enter:1,acpn:this.Z.adCpn,transitionTime:this.Z.YV,cpn:z,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:Q.start,cueRangeEndTime:Q.end});this.Z=void 0;return}if(this.Z.adCpn===z){z&&this.Hz({dchtsc:z});this.Z=void 0;return}Q={VR:Q,isAd:!H,Ap:!0,YV:this.playback.getCurrentTime(),adCpn:z};RY(this,Q,this.Z)}this.Z=void 0;this.U=!1}else this.Z={VR:Q,isAd:!H, Ap:!0,YV:this.playback.getCurrentTime(),adCpn:z}}; g.S.onCueRangeExit=function(Q){var z=Q.getId();this.Hz({oncueExit:1,cpn:z,start:Q.start,end:Q.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.yN()||0).toFixed(3)});var H=z==="",f=this.L.get(z);if(this.playback.getVideoData().OZ()&&!H&&f){if(f.tU)return;f.tU=!0;this.N.clear();if(this.rh.V("html5_lifa_no_rewatch_ad_sbc"))if(this.playback.mj()){var b=f.sY;this.playback.gk(b/1E3,(b+f.durationMs)/1E3)}else this.playback.On("lifa",{remove:0})}if(this.C3.has(Q.B))if(this.C3.delete(Q.B), this.En=this.En.filter(function(L){return L!==Q}),this.iT&&(this.U=this.iT=!1,this.Hz({cref:1})),this.Z){if(this.Z.Ap){if(this.Z.VR===Q){this.Hz({same_cue_range_pair_exit:1, acpn:this.Z.adCpn,transitionTime:this.Z.YV,cpn:z,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:Q.start,cueRangeEndTime:Q.end});this.Z=void 0;return}if(this.Z.adCpn===z){z&&this.Hz({dchtsc:z});this.Z=void 0;return}z={VR:Q,isAd:!H,Ap:!1,YV:this.playback.getCurrentTime(),adCpn:z};RY(this,this.Z,z)}else if(this.Hz({a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.Z.adCpn,transitionTime:this.Z.YV,upcomingCpn:z,contentCpn:this.playback.getVideoData().clientPlaybackNonce,currentTime:this.playback.getCurrentTime()}), this.Z.adCpn===z)return;this.Z=void 0;this.U=!1}else this.Z={VR:Q,isAd:!H,Ap:!1,YV:this.playback.getCurrentTime(),adCpn:z};else this.Hz({ignore_single_exit:1})}; g.S.hj=function(){return{cpn:this.playback.getVideoData().clientPlaybackNonce,durationMs:0,sY:0,playerType:1,Zm:0,videoData:this.playback.getVideoData(),errorCount:0}}; g.S.f4=function(){if(this.bZ)return!1;var Q=void 0;this.qz&&(Q=this.L.get(this.qz));return this.playback.getVideoData().OZ()?!!Q&&!Q.tU:!!Q}; g.S.seekTo=function(Q,z,H,f){Q=Q===void 0?0:Q;z=z===void 0?{}:z;H=H===void 0?!1:H;f=f===void 0?null:f;if(this.playback.getVideoData().OZ()&&Q<=this.De/1E3)this.playback.pauseVideo(),this.De=0,this.U=!0,this.playback.lL(),this.playback.seekTo(Q),this.playback.playVideo();else if(this.U=!0,H)R1_(this,Q,z);else{H=this.app.X$();var b=H===this.uT?this.yE:null;zD(this,!1);this.EY=Q;this.Xa=z;f!=null&&this.KH.start(f);H&&(this.yE=b||H.getPlayerState(),H.E0(),this.uT=H)}}; g.S.zv=function(){zD(this,!1);Sqp(this);XFn(this);g.h.prototype.zv.call(this)}; g.S.Ji=function(Q){this.gT=Q;this.Hz({swebm:Q})}; g.S.j6=function(Q,z,H){if(H&&z){var f=this.N.get(Q);if(f){f.locations||(f.locations=new Map);var b=Number(z.split(";")[0]);H=new g.ZM(H);this.Hz({hdlredir:1,itag:z,seg:Q,hostport:$o(H)});f.locations.set(b,H)}}}; g.S.Vb=function(Q,z,H,f,b,L){var u=f===3,X=yVn(this,Q,z,f,H,L);if(!X){fJ(this,z,u);var v=g.v06(this,z)?"undec":"ncp";this.Hz({gvprp:v,mt:Q,seg:z,tt:f,itag:H,ce:L});return null}u||this.N.set(z,X);L=X.PY;var y;f=((y=this.DM(z-1,f,b))==null?void 0:y.vP)||"";f===""&&this.Hz({eds:1});y=MCu(this,X.ssdaiAdsConfig);b=this.playback.getVideoData();var q;u=((q=b.B)==null?void 0:q.containerType)||0;q=b.eG[u];X=X.xR&&z>=X.xR?X.xR:void 0;q={y8:L?pF8(this,L):[],Hx:y,vP:f,TU:X,Wb:z2(q.split(";")[0]),TH:q.split(";")[1]|| ""};X={t8:q};this.gh&&(Q={gvprpro:"v",sq:z,mt:Q.toFixed(3),itag:H,acpns:((v=q.y8)==null?void 0:v.join("_"))||"none",abid:L},this.Hz(Q));return X}; g.S.W4=function(Q){a:{if(!this.bZ){var z=qq_(this,Q);if(!(this.playback.getVideoData().OZ()&&(z==null?0:z.tU)))break a}z=void 0}var H=z;if(!H)return this.Hz({gvprp:"ncp",mt:Q}),null;z=H.PY;var f=MCu(this,H.ssdaiAdsConfig);H=H.xR&&H.d2&&Q>=H.d2?H.xR:void 0;var b=this.playback.getVideoData(),L,u=((L=b.B)==null?void 0:L.containerType)||0;L=b.eG[u];L={y8:z?pF8(this,z):[],Hx:f,TU:H,Wb:z2(L.split(";")[0]),TH:L.split(";")[1]||""};var X;Q={gvprpro:"v",mt:Q.toFixed(3),acpns:((X=L.y8)==null?void 0:X.join("_"))|| "none",abid:z};this.Hz(Q);return L}; g.S.ZM=function(Q,z,H,f,b,L){var u=Number(H.split(";")[0]),X=f===3;Q=yVn(this,Q,z,f,H,L);this.Hz({gdu:1,seg:z,itag:u,pb:""+!!Q});if(!Q)return fJ(this,z,X),null;Q.locations||(Q.locations=new Map);if(!Q.locations.has(u)){var v,y;L=(v=Q.videoData.getPlayerResponse())==null?void 0:(y=v.streamingData)==null?void 0:y.adaptiveFormats;if(!L)return this.Hz({gdu:"noadpfmts",seg:z,itag:u}),fJ(this,z,X),null;v=L.find(function(C){return C.itag===u}); if(!v||!v.url){var q=Q.videoData.videoId;Q=[];var M=g.n(L);for(f=M.next();!f.done;f=M.next())Q.push(f.value.itag);this.Hz({gdu:"nofmt",seg:z,vid:q,itag:u,fullitag:H,itags:Q.join(",")});fJ(this,z,X);return null}Q.locations.set(u,new g.ZM(v.url,!0))}L=Q.locations.get(u);if(!L)return this.Hz({gdu:"nourl",seg:z,itag:u}),fJ(this,z,X),null;L=new Mm(L);this.gT&&(L.get("dvc")?this.Hz({dvc:L.get("dvc")||""}):L.set("dvc","webm"));(f=(M=this.DM(z-1,f,b))==null?void 0:M.vP)&&L.set("daistate",f);Q.xR&&z>=Q.xR&& L.set("skipsq",""+Q.xR);(M=this.playback.getVideoData().clientPlaybackNonce)&&L.set("cpn",M);M=[];Q.PY&&(M=pF8(this,Q.PY),M.length>0&&L.set("acpns",M.join(",")));X||this.N.set(z,Q);X=null;X=L.get("aids");f=L.mM();(f==null?void 0:f.length)>2048&&this.Hz({urltoolong:1,sq:z,itag:u,len:f.length});this.gh&&(f&&(L=Q.cpn,b=Q.PY,Zzk(this,L,b),b&&!this.yR.has(b)&&(L=n0L(this,L,b),v=g0a(this,b),this.Hz({iofa:L}),this.Hz({noawnzd:v-L}),this.Hz({acpns:M.join("."),aids:(q=X)==null?void 0:q.replace(/,/g,".")}), this.yR.add(b))),this.Hz({gdu:"v",seg:z,itag:H,ast:Q.sY.toFixed(3),alen:Q.durationMs.toFixed(3),acpn:Q.cpn,avid:Q.videoData.videoId}));return f}; g.S.zo=function(Q,z,H){var f=Hg(this,Q,H);return(f=f?(f.sY+f.durationMs)/1E3:0)&&z>f?(this.UT(Q,H,!0),this.playback.seekTo(f),!0):!1}; g.S.UT=function(Q,z,H){H=H===void 0?!1:H;var f=Hg(this,Q,z);if(f){var b=void 0,L=f.PY;if(L){this.Hz({skipadonsq:z,sts:H,abid:L,acpn:f.cpn,avid:f.videoData.videoId});H=this.Y.get(L);if(!H)return;H=g.n(H);for(L=H.next();!L.done;L=H.next())L=L.value,L.xR=z,L.d2=Q,L.sY>f.sY&&(b=L)}this.D=f.cpn;CXa(this);Q=this.playback.getCurrentTime();l_(this,f,b,Q,Q,!1,!0)}}; g.S.wb=function(){for(var Q=g.n(this.S),z=Q.next();!z.done;z=Q.next())z=z.value,z.xR=NaN,z.d2=NaN;CXa(this);this.Hz({rsac:"resetSkipAd",sac:this.D});this.D=""}; g.S.DM=function(Q,z,H){return this.jm.DM(Q,z,H)}; g.S.Vg=H_(63); g.S.O2=function(Q,z,H,f,b,L,u,X,v){f.length>0&&this.Hz({onssinfo:1,sq:Q,start:z.toFixed(3),cpns:f.join(","),ds:b.join(","),isVideo:u?1:0});v&&this.jm.O2(Q,u,X,v);v=L9(this.playback.getVideoData())&&this.rh.V("html5_process_all_cuepoints");if(u||v){if(f.length&&b.length)for(this.D&&this.D===f[0]&&this.Hz({skipfail:1,sq:Q,acpn:this.D}),Q=z+this.Gl(),u=0;u0&&(this.aN=0,this.qz="",this.api.publish("serverstitchedvideochange"));this.playback.m6(H,f);return!0}; g.S.UN=function(){this.Hz({rstdaist:1});this.jm.clearAll()}; g.S.dc=function(Q){var z;if(Q!==((z=this.L3)==null?void 0:z.identifier))this.Hz({ignorenoad:Q});else{this.Bc.add(Q);var H;((H=this.L3)==null?void 0:H.identifier)===Q&&k2(this)}}; g.S.fG=function(){return this.aN}; g.S.l$=function(){return this.qz}; g.S.Q6=function(Q){if(this.bZ)return this.Hz({dai_disabled:Q.event}),!1;if(this.playback.getVideoData().OZ()&&(this.rh.V("html5_lifa_no_gab_on_predict_start")&&Q.event==="predictStart"||Q.event==="continue"||Q.event==="stop"))return this.Hz({cuepoint_skipped:Q.event}),!1;var z=IO(this.api.xt());if(z=z?z.Q6(Q):!1)this.Ze={V4:Q.identifier,CY:Q.startSecs};else if(this.Ze&&this.Ze.V4===Q.identifier&&Q.startSecs>this.Ze.CY+1){this.Hz({cueStChg:Q.identifier,oldSt:this.Ze.CY.toFixed(3),newSt:Q.startSecs.toFixed(3), abid:this.Ze.hf});if(this.Ze.hf){var H=Q.startSecs-this.Ze.CY,f=this.Y.get(this.Ze.hf);if(f){f=g.n(f);for(var b=f.next();!b.done;b=f.next())b=b.value,b.sY>=0&&(b.sY+=H*1E3,this.rh.V("html5_ssdai_update_timeline_on_start_time_change")&&(b.Zm+=H*1E3),this.Hz({newApEt:b.sY,newApPrt:b.Zm,acpn:b.cpn}))}}this.Ze.CY=Q.startSecs}return z}; g.S.tX=function(Q){return this.bZ?!1:!!qq_(this,Q)}; g.S.Cj=function(Q){var z=this;this.playback.pauseVideo();var H=this.playback.getCurrentTime(),f=this.rh.V("html5_lifa_reset_segment_index_on_skip"),b=f?H+this.playback.Gl():H,L=this.L.get(this.qz),u=this.B.get(this.qz);if(L){this.D=this.qz;this.U=!1;L.tU=!0;H=this.playback.getCurrentTime();this.Z={VR:u,isAd:!0,Ap:!1,YV:H,adCpn:this.qz,Js:L,R7m:Q};this.playback.HR(L,this.hj(),H,this.playback.getCurrentTime(),!1,!0,Q,(0,g.NV)());f&&this.playback.Y8();if(u==null?0:u.start)this.De=H*1E3-u.start;this.N.clear(); this.playback.lL();this.qz=this.hj().cpn;this.api.publish("serverstitchedvideochange");this.playback.seekTo(b,{seekSource:89,lr:"lifa_skip"});this.playback.playVideo();this.wh||(this.wh=this.events.X(this.api,"progresssync",function(){z.RX(L)})); return!0}this.Hz({skipFail:H},!0);return!1}; g.S.Hz=function(Q,z){((z===void 0?0:z)||this.gh||this.playback.getVideoData().OZ())&&this.playback.On("sdai",Q)}; var f98=0;g.p(Gkk,g.mV);g.S=Gkk.prototype;g.S.onCueRangeEnter=function(Q){var z=Q.getId();this.playback.On("sdai",{oncueEnter:1,cpn:z,start:Q.start,end:Q.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.yN()||0).toFixed(3)});Q=this.L.get(z);this.playback.On("sdai",{enterAdCueRange:1});z=this.qz||this.hj().cpn;var H;z=(H=this.L.get(z))!=null?H:this.hj();Q&&(H={OF:z,ge:Q,rW:this.playback.getCurrentTime()},this.qn(H))}; g.S.onCueRangeExit=function(Q){var z=this.playback.getCurrentTime()*1E3;Q=Q.getId();for(var H=g.n(this.B.values()),f=H.next();!f.done;f=H.next())if(f=f.value,f.getId()!==Q&&z>=f.start&&z<=f.end)return;if(z=this.L.get(Q))z={OF:z,ge:this.hj(),rW:this.playback.getCurrentTime()},this.qn(z)}; g.S.qn=function(Q){this.D||this.U||this.r5(this.qz);var z=Q.OF,H=Q.ge;if(H.cpn===this.qz)this.playback.On("sdai",{igtranssame:1,enter:H.cpn,exit:z.cpn});else{var f=this.U,b=!!this.D;this.D="";var L=Q.rW,u=z.playerType===2?z.sY/1E3+z.videoData.iT:this.hj().videoData.iT;if(z.playerType===2&&H.playerType===2)b?this.playback.On("sdai",{igtransskip:1,enter:H.cpn,exit:z.cpn,seek:f,skip:this.D}):l_(this,z,H,u,L,f,b);else{this.qz=H.cpn;Q=Q.GZT;if(z.playerType===1&&H.playerType===2){this.De=0;ek(this,H);var X= TB(this,"c2a",H);this.playback.On("sdai",X);this.aN++}else if(z.playerType===2&&H.playerType===1){X=z.videoData.iT;this.api.publish("serverstitchedvideochange");var v=TB(this,"a2c");this.playback.On("sdai",v);this.aN=0;this.De=X*1E3;this.zx=u;FYJ(this,z.PY)}this.playback.HR(z,H,u,L,f,b,Q)}this.D="";this.U=!1}}; g.S.seekTo=function(Q,z,H,f){Q=Q===void 0?0:Q;z=z===void 0?{}:z;H=H===void 0?!1:H;f=f===void 0?null:f;this.r5(this.qz);this.playback.getVideoData().OZ()&&Q<=this.zx?(this.playback.pauseVideo(),this.zx=this.De=0,$w9(this,Q)):g.mV.prototype.seekTo.call(this,Q,z,H,f)}; g.S.UT=function(Q,z,H){H=H===void 0?!1:H;var f=Hg(this,Q,z);if(f){var b=void 0,L=f.PY;if(L){this.playback.On("sdai",{skipadonsq:z,sts:H,abid:L,acpn:f.cpn,avid:f.videoData.videoId});H=this.Y.get(L);if(!H)return;H=g.n(H);for(L=H.next();!L.done;L=H.next())L=L.value,L.xR=z,L.d2=Q,L.sY>f.sY&&(b=L)}this.r5(this.qz);this.D=f.cpn;CXa(this);Q=this.playback.getCurrentTime();l_(this,f,b,Q,Q,!1,!0)}}; g.S.O2=function(Q,z,H,f,b,L,u,X,v){f.length>0&&this.playback.On("sdai",{onssinfo:1,sq:Q,start:z.toFixed(3),cpns:f.join(","),ds:b.join(","),isVideo:u?1:0});v&&this.jm.O2(Q,u,X,v);H=L9(this.playback.getVideoData())&&this.rh.V("html5_process_all_cuepoints");if(u||H){if(f.length&&b.length)for(this.D&&this.D===f[0]&&this.playback.On("sdai",{skipfail:1,sq:Q,acpn:this.D}),Q=z+this.Gl(),u=0;u=0&&this.S.splice(Q,1)}; g.S.r5=function(Q){var z=Q||this.qz,H=this.L.get(z);if(H){Q=H.videoData;var f,b;z=H.bd||((b=(f=this.B.get(z))==null?void 0:f.start)!=null?b:0)/1E3;f=this.playback.getCurrentTime()-z;Q.iT=f>0?f:0}else this.hj().videoData.iT=this.playback.getCurrentTime()};g.p(JVA,g.h);g.S=JVA.prototype; g.S.Vj=function(Q,z){z=z===void 0?"":z;if(this.timeline.L===z)return!0;var H=this.timeline.Z,f=H==null?void 0:H.getVideoData();if(!H||!f)return this.api.On("ssap",{htsm:H?0:1}),!1;if(this.api.V("html5_ssap_clear_timeline_before_update")){var b=this.timeline,L;(L=b.Z)==null||e1J(L);b.B.clear()}b=WP(H);var u=!1;L=[];var X=new Map;H=[];var v=[],y=0,q=0,M=0,C=[];Q=g.n(Q);for(var t=Q.next();!t.done;t=Q.next())a:{var E=void 0,G=void 0,x=t.value,J=x.clipId;if(J){if(x.Pr){M=x.Pr.CO||0;t=x.Pr.Id||1;var I= Number(((x.Pr.c9||0)/(x.Pr.Yh||1)*1E3).toFixed(0));M=t=I+Number((M/t*1E3).toFixed(0))}else t=I=M,this.V1.has(J)||this.J9.add(J);var r=(G=X.get(J))!=null?G:0,U=this.timeline.L;G=!1;if(U&&this.api.V("html5_ssap_clear_timeline_before_update")){if(U=this.B7.get(J))U.start=I,U.end=t,G=!0}else{if(U){var D=J;U=I;var T=t,k=r,bL=lK(this.timeline,D);if(bL!=null&&bL.length){k=X){this.NA.set(Q,H);Yq9(this,Q,z);this.oC.set(Q,(0,g.NV)());if(H=this.B7.get(z))for(H=H.getId().split(","),H=g.n(H),u=H.next();!u.done;u=H.next())u=u.value,u!==z&&this.J9.has(u)&&(this.J9.delete(u),this.V1.add(u));this.r5();z=L.G1()/1E3;L=void 0;H=(L=g.qf(this.api.C().experiments,"html5_ssap_skip_seeking_offset_ms"))!=null?L:0;this.api.V("html5_ssap_keep_media_on_finish_segment")?this.playback.seekTo(z+ H/1E3,{qt:!0}):this.playback.seekTo(z+H/1E3);this.V5?(this.api.On("ssap",{gpfreload:this.qz}),o08(this)||(this.V5=!1),this.playback.lL(!1,!1,this.api.V("html5_ssap_keep_media_on_finish_segment"))):f&&this.playback.lL(!1,!1,this.api.V("html5_ssap_keep_media_on_finish_segment"));b&&this.api.playVideo(1,this.api.V("html5_ssap_keep_media_on_finish_segment"));return[Q]}}}return[]}; g.S.EF=function(){var Q=this.timeline.Z;if(!Q)return 0;var z=Q.AT();Q=g.n(Q.Z.values());for(var H=Q.next();!H.done;H=Q.next()){H=g.n(H.value);for(var f=H.next();!f.done;f=H.next())f=f.value,f.AT()>z&&(z=f.AT())}return z/1E3}; g.S.jx=function(){var Q=this.playback.getCurrentTime()*1E3;var z=PXA(this,Q);if(!z){var H=lK(this.timeline,this.qz);if(H){H=g.n(H);for(var f=H.next();!f.done;f=H.next())f=f.value,f.G1()>Q&&(z=f)}}return z&&z.getType()===1?z.G1()/1E3:0}; g.S.getVideoData=function(Q){if(Q===2&&!this.f4()){if(this.PK&&this.Vz.has(this.PK))return this.Vz.get(this.PK);this.api.On("ssap",{lpanf:""+ab(this)});return null}return cVc(this)}; g.S.f4=function(){var Q=lK(this.timeline,this.qz);return(Q==null?0:Q.length)?Q[0].getType()===2:!1}; g.S.uv=function(){var Q=lK(this.timeline,this.qz);return(Q==null?0:Q.length)?Q[0].B:!1}; g.S.seekTo=function(Q,z){z=z===void 0?{}:z;var H=a9c(this,this.playback.getCurrentTime());this.playback.seekTo(Q+H/1E3,z)}; g.S.h1=function(Q,z,H){return new g.HD(Q,z,{id:H,namespace:"ssap",priority:9})}; g.S.onCueRangeEnter=function(Q){if(!this.EL.has(Q.getId())){this.api.On("ssap",{oce:1,cpn:Q.getId(),st:Q.start,et:Q.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.yN()||0).toFixed(3)});for(var z=Q.getId().split(","),H=0;HH+1)for(f=H+1;f0?z:0}; g.S.J$m=function(Q){var z=this.Vz.get(this.qz);z&&this.playback.FN(Q-z.Bc/1E3,z.lengthSeconds,this.qz)}; g.S.zv=function(){this.api.C().vz()&&this.api.On("ssap",{di:""+this.qz,dic:""+this.playback.getVideoData().clientPlaybackNonce});this.Vz.clear();this.J9.clear();this.EL.clear();this.NA.clear();this.oC.clear();this.V1.clear();this.nD=[];Oz8(this);this.E2="";g.Aq(this.events);g.h.prototype.zv.call(this)};g.p(DwY,g.h);g.S=DwY.prototype;g.S.onCueRangeEnter=function(Q){if(this.Z===this.app.X$()){var z=this.S.get(Q);z?kkA(this,z.target,z.e8,Q):this.h7("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:Q.toString()})}else if(z=this.B.find(function(b){return b.Qt.VR===Q})){var H=z.Qt,f=H.target; H=H.e8;f?kkA(this,f,H,Q):wF_(this,z.Zm,H,Q)}}; g.S.onQueuedVideoLoaded=function(){var Q=this.Y;vg(this);if(Q){if(!XF(this,Q)){var z=this.app.X$();this.h7("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:z==null?void 0:z.getVideoData().clientPlaybackNonce,ccpn:""+Q.playerVars.cpn})}this.app.X$().addCueRange(Q.Qt.VR)}}; g.S.seekTo=function(Q,z,H,f){Q=Q===void 0?0:Q;z=z===void 0?{}:z;f=f===void 0?null:f;if(H===void 0?0:H)WYa(this,Q,z);else{H=this.app.X$()||null;var b=H===this.D?this.j:null;yU(this,!1);this.Ze=Q;this.U=z;f!=null&&this.N.start(f);H&&(this.j=b||H.getPlayerState(),H.E0(),this.D=H)}}; g.S.BU=function(Q){g.Ex(Q,128)&&QpY(this)}; g.S.isManifestless=function(){return MY(this.Z.getVideoData())}; g.S.zv=function(){yU(this,!1);HMn(this);g.h.prototype.zv.call(this)}; g.S.h7=function(Q,z){this.Z.h7(new Oh(Q,z))}; var KYL=0;var feu="MWEB TVHTML5 TVHTML5_AUDIO TVHTML5_CAST TVHTML5_KIDS TVHTML5_FOR_KIDS TVHTML5_SIMPLY TVHTML5_SIMPLY_EMBEDDED_PLAYER TVHTML5_UNPLUGGED TVHTML5_VR TV_UNPLUGGED_CAST WEB WEB_CREATOR WEB_EMBEDDED_PLAYER WEB_EXPERIMENTS WEB_GAMING WEB_HEROES WEB_KIDS WEB_LIVE_STREAMING WEB_MUSIC WEB_MUSIC_ANALYTICS WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.p(CJ,g.h);g.S=CJ.prototype;g.S.get=function(Q){qc(this);var z=this.data.find(function(H){return H.key===Q}); return z?z.value:null}; g.S.set=function(Q,z,H){this.remove(Q,!0);qc(this);Q={key:Q,value:z,expire:Infinity};H&&isFinite(H)&&(H*=1E3,Q.expire=(0,g.NV)()+H);for(this.data.push(Q);this.data.length>this.L;)(H=this.data.shift())&&tw(this,H,!0);Mc(this)}; g.S.remove=function(Q,z){z=z===void 0?!1:z;var H=this.data.find(function(f){return f.key===Q}); H&&(tw(this,H,z),g.lR(this.data,function(f){return f.key===Q}),Mc(this))}; g.S.removeAll=function(Q){if(Q=Q===void 0?!1:Q)for(var z=g.n(this.data),H=z.next();!H.done;H=z.next())tw(this,H.value,Q);this.data=[];Mc(this)}; g.S.zv=function(){var Q=this;g.h.prototype.zv.call(this);this.data.forEach(function(z){tw(Q,z,!0)}); this.data=[]};g.p(EL,g.h);EL.prototype.ob=function(Q){if(Q)return this.B.get(Q)}; EL.prototype.zv=function(){this.Z.removeAll();this.B.removeAll();g.h.prototype.zv.call(this)};g.Y$u=tj(function(){var Q=window.AudioContext||window.webkitAudioContext;try{return new Q}catch(z){return z.name}});g.p(v4L,g.m);g.S=v4L.prototype;g.S.jZ=function(){g.X9(this.element,g.A8.apply(0,arguments))}; g.S.MO=function(){this.OV&&(this.OV.removeEventListener("focus",this.u_),g.Sz(this.OV),this.OV=null)}; g.S.hX=function(){this.Sm();var Q=this.app.C();Q.q0||this.jZ("tag-pool-enabled");Q.j&&this.jZ(g.WB.HOUSE_BRAND);Q.playerStyle==="gvn"&&(this.jZ("ytp-gvn"),this.element.style.backgroundColor="transparent");Q.gT&&(this.KB=g.u8("yt-dom-content-change",this.resize,this));this.X(window,"orientationchange",this.resize,this);this.X(window,"resize",this.resize,this)}; g.S.lE=function(Q){g.Il(this.app.C());this.CT=!Q;pJ(this)}; g.S.resize=function(){if(this.OV){var Q=this.Oq();if(!Q.isEmpty()){var z=!g.nC(Q,this.NJ.getSize()),H=tga(this);z&&(this.NJ.width=Q.width,this.NJ.height=Q.height);Q=this.app.C();(H||z||Q.gT)&&this.app.Yv.publish("resize",this.getPlayerSize())}}}; g.S.nt=function(Q,z){this.updateVideoData(z)}; g.S.updateVideoData=function(Q){if(this.OV){var z=this.app.C();wG&&(this.OV.setAttribute("x-webkit-airplay","allow"),Q.title?this.OV.setAttribute("title",Q.title):this.OV.removeAttribute("title"));this.OV.setAttribute("controlslist","nodownload");z.Ev&&Q.videoId&&(this.OV.poster=Q.MP("default.jpg"))}z=g.jn(Q,"yt:bgcolor");this.hc.style.backgroundColor=z?z:"";this.BW=XX(g.jn(Q,"yt:stretch"));this.qM=XX(g.jn(Q,"yt:crop"),!0);g.qP(this.element,"ytp-dni",Q.gV);this.resize()}; g.S.setGlobalCrop=function(Q){this.oS=XX(Q,!0);this.resize()}; g.S.setCenterCrop=function(Q){this.nk=Q;this.resize()}; g.S.tB=function(){}; g.S.getPlayerSize=function(){var Q=this.app.C(),z=this.app.Yv.isFullscreen(),H=Q.externalFullscreen&&g.xh(Q);if(z&&VC()&&!H)return new g.pC(window.outerWidth,window.outerHeight);H=!isNaN(this.MR.width)&&!isNaN(this.MR.height);var f=this.app.C().V("kevlar_player_enable_squeezeback_fullscreen_sizing");if(z&&!H&&f)return new g.pC(this.element.clientWidth,this.element.clientHeight);if(z||Q.nV){if(window.matchMedia){Q="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.Ce&&this.Ce.media=== Q||(this.Ce=window.matchMedia(Q));var b=this.Ce&&this.Ce.matches}if(b)return new g.pC(window.innerWidth,window.innerHeight)}else if(H)return this.MR.clone();return new g.pC(this.element.clientWidth,this.element.clientHeight)}; g.S.Oq=function(){var Q=this.app.C().V("enable_desktop_player_underlay"),z=this.getPlayerSize(),H=g.qf(this.app.C().experiments,"player_underlay_min_player_width");return Q&&this.hA&&z.width>H?(Q=g.qf(this.app.C().experiments,"player_underlay_video_width_fraction"),new g.pC(Math.min(z.height*this.getVideoAspectRatio(),z.width*Q),Math.min(z.height,z.width*Q/this.getVideoAspectRatio()))):z}; g.S.getVideoAspectRatio=function(){return isNaN(this.BW)?qIA(this):this.BW}; g.S.getVideoContentRect=function(Q){var z=this.Oq();Q=Mgp(this,z,this.getVideoAspectRatio(),Q);return new g.S$((z.width-Q.width)/2,(z.height-Q.height)/2,Q.width,Q.height)}; g.S.Pe=function(Q){this.hA=Q;this.resize()}; g.S.Fv=function(){return this.Xd}; g.S.onMutedAutoplayChange=function(){pJ(this)}; g.S.setInternalSize=function(Q){g.nC(this.MR,Q)||(this.MR=Q,this.resize())}; g.S.zv=function(){this.KB&&g.Sv(this.KB);this.MO();g.m.prototype.zv.call(this)};g.S=E4u.prototype;g.S.click=function(Q,z){this.elements.has(Q);this.Z.has(Q);var H=g.ox();H&&Q.visualElement&&g.La(H,Q.visualElement,z)}; g.S.createClientVe=function(Q,z,H,f){var b=this;f=f===void 0?!1:f;this.elements.has(Q);this.elements.add(Q);H=NDZ(H);Q.visualElement=H;var L=g.ox(),u=g.OX();L&&u&&(g.jT("combine_ve_grafts")?OW(F_(),H,u):g.QC(g.wl)(void 0,L,u,H));z.addOnDisposeCallback(function(){b.elements.has(Q)&&b.destroyVe(Q)}); f&&this.B.add(Q)}; g.S.createServerVe=function(Q,z,H){var f=this;H=H===void 0?!1:H;this.elements.has(Q);this.elements.add(Q);z.addOnDisposeCallback(function(){f.destroyVe(Q)}); H&&this.B.add(Q)}; g.S.destroyVe=function(Q){this.elements.has(Q);this.elements.delete(Q);this.L.delete(Q);this.Z.delete(Q);this.B.delete(Q)}; g.S.FP=function(Q,z){this.clientPlaybackNonce!==z&&(this.clientPlaybackNonce=z,xA(F_(),Q),pvk(this))}; g.S.setTrackingParams=function(Q,z){this.elements.has(Q);z&&(Q.visualElement=g.FG(z))}; g.S.Ho=function(Q,z,H){this.elements.has(Q);z?this.Z.add(Q):this.Z.delete(Q);var f=g.ox(),b=Q.visualElement;this.B.has(Q)?f&&b&&(z?g.fa(f,[b]):g.bI(f,[b])):z&&!this.L.has(Q)&&(f&&b&&g.Hf(f,b,void 0,H),this.L.add(Q))}; g.S.hasVe=function(Q){return this.elements.has(Q)};g.p(g.gQ,g.h);g.gQ.create=function(Q,z,H,f){try{var b=typeof Q==="string"?Q:"player"+g.Tu(Q),L=Ow[b];if(L){try{L.dispose()}catch(X){g.BT(X)}Ow[b]=null}var u=new g.gQ(Q,z,H,f);u.addOnDisposeCallback(function(){Ow[b]=null;u.nF&&u.nF()}); return Ow[b]=u}catch(X){throw g.BT(X),(X&&X instanceof Error?X:Error(String(X))).stack;}}; g.S=g.gQ.prototype;g.S.Kq=function(){return this.visibility}; g.S.jF=function(Q){var z=this.ey();if(Q!==z){Q.getVideoData().autonavState=z.getVideoData().autonavState;z.AY(this.vL,this);var H=z.getPlaybackRate();z.v5();this.Qs.jF(Q);Q.setPlaybackRate(H);Q.rZ(this.vL,this);FFk(this)}}; g.S.Vk=function(){this.VS||(this.VS=g.L4(UZ(),gJ6()));return this.VS}; g.S.MO=function(Q){if(this.mediaElement){this.rD&&(this.events.DS(this.rD),this.rD=null);g.Aq(this.V6);var z=this.X$();z&&z.MO(!0,!1,Q);this.template.MO();try{this.V("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.OH()}catch(H){g.PT(H)}this.mediaElement=null}}; g.S.Rl=function(Q,z){if(Q!==this.X$()){this.logger.debug(function(){return"start set presenting player, type "+Q.getPlayerType()+", vid "+Q.getVideoData().videoId}); var H=null,f=this.X$();f&&(H=f.getPlayerState(),this.logger.debug("set presenting player, destroy modules"),Nb(this.RB,3),ie(this,"cuerangesremoved",f.o6()),this.t5&&!Q.isGapless()&&f.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo(),f=Q.Uq()&&f.Uq(),this.jy.K$("iv_s"),spY(this,f));Q.getPlayerType()===1&&this.jF(Q);r3_(this,Q);this.Qs.Rl(Q);this.mediaElement&&Q.setMediaElement(this.mediaElement);Q.rZ(this.iD,this);Q.KQ()?vX9(this,"setPresenting",!1):(this.nt("newdata",Q,Q.getVideoData()), H&&!g.Sm(H,Q.getPlayerState())&&this.B9(new g.Cp(Q.getPlayerState(),H)),z=z&&this.V("html5_player_preload_ad_fix")&&Q.getPlayerType()===1,Q.DG()&&!z&&this.nt("dataloaded",Q,Q.getVideoData()),(z=(z=Q.getVideoData().B)&&z.video)&&this.Yv.A$("onPlaybackQualityChange",z.quality),this.X$(),ie(this,"cuerangesadded",Q.o6()),z=Q.getPlayerState(),g.w(z,2)?YI6(this):g.w(z,8)?Q.playVideo():Q.q3()&&Q.pauseVideo(),z=this.ey(),Q.getPlayerType()===2&&(Q.getVideoData().W$=z.getVideoData().clientPlaybackNonce),Q.getPlayerType()!== 2||this.Uj()||(H=Q.getVideoData(),z.Tp(H.clientPlaybackNonce,H.UY||"",H.breakType||0,H.dS,H.videoId||"")),this.logger.debug("finish set presenting player"))}}; g.S.Kb=function(){if(this.ey()!==this.X$()){var Q=this.X$();this.logger.debug(function(){return"release presenting player, type "+(Q==null?void 0:Q.getPlayerType())+", vid "+(Q==null?void 0:Q.getVideoData().videoId)}); this.Rl(this.ey())}}; g.S.CG=function(){return this.Qs}; g.S.QE=function(Q){if(Q)if(Q===1)Q=this.ey();else if(this.getVideoData().enableServerStitchedDai&&Q===2)Q=this.getVideoData().enablePreroll?this.Qs.QE(2)||this.X$():this.X$();else if(g.mI(this.getVideoData())&&Q===2){if(Q=this.V("html5_ssap_return_content_player_during_preroll"))if(Q=this.OY)Q=this.OY,Q=Q.qz===""?!0:Q.f4();Q=Q?this.X$():this.Qs.QE(2)||this.X$()}else Q=this.Qs.QE(Q)||null;else Q=this.X$();return Q}; g.S.ey=function(){return this.Qs.ey()}; g.S.X$=function(){return this.Qs.X$()}; g.S.CU=H_(50);g.S.aS5=function(){xI(this)||(this.logger.debug("application playback ready"),this.Za(5))}; g.S.KMn=function(Q){if(!xI(this)){this.logger.debug("playback ready");L2p(this);var z=Q.getPlayerState();Q.q3()?this.pauseVideo():z.isOrWillBePlaying()&&this.playVideo()}}; g.S.canPlayType=function(Q){return Ij(Q)}; g.S.C=function(){return this.rh}; g.S.getVideoData=function(){return this.X$().getVideoData()}; g.S.F4=H_(19);g.S.Iq=function(){return this.ey().getVideoData()}; g.S.getVideoLoadedFraction=function(Q){return(Q=this.QE(Q))?Q.getVideoLoadedFraction():this.Qs.Z.getVideoLoadedFraction()}; g.S.Un=function(){return this.template}; g.S.xt=function(){return this.RB}; g.S.vB=function(){return this.jy}; g.S.MA=function(Q){var z=this.QE(1);z&&z.x7(Q)}; g.S.gx=function(){var Q=this.RB.gx();this.Yv.publish("videoStatsPingCreated",Q);return Q}; g.S.getVolume=function(){return Math.round(this.Yv.getVolume())}; g.S.isMuted=function(){return this.Yv.isMuted()}; g.S.eC=function(){if(this.ey()===this.X$()&&this.GL)return this.GL.postId}; g.S.b2h=function(){var Q=this;this.V("use_rta_for_player")||(g.OV(this.rh)?g.zZ(this.rh,g.hM(this.getVideoData())).then(function(z){cG(UZ(),z);A7L(Q.getVideoData(),Q.rh,Q.Vk())}):A7L(this.getVideoData(),this.rh,this.Vk()))}; g.S.W2=function(Q){this.Yv.publish("poTokenVideoBindingChange",Q)}; g.S.WO=function(Q){this.Yv.publish("d6de4videobindingchange",Q)}; g.S.V0=function(){this.JW&&this.JW.V0()}; g.S.mz=function(Q){this.JW=Q}; g.S.hQ=function(Q){if(Q===1){this.jy.tick("vr");var z=this.X$();z.sM();g29(this.jy,z.getVideoData(),bd9(this));LLv(this.RB)}z=this.rh;(lf(z)&&z.Y||g.Yh(z))&&(this.Uj()||this.Yv.A$("onAdStateChange",Q))}; g.S.setLoopVideo=function(Q){var z=this.X$();z===this.ey()&&z.FD()!==Q&&(z.setLoop(Q),this.Yv.F$("onLoopChange",Q))}; g.S.getLoopVideo=function(){return this.X$().FD()}; g.S.setLoopRange=function(Q){var z=!1;!!this.GL!==!!Q?z=!0:this.GL&&Q&&(z=this.GL.startTimeMs!==Q.startTimeMs||this.GL.endTimeMs!==Q.endTimeMs||this.GL.postId!==Q.postId||this.GL.type!==Q.type);if(z){(z=this.X$())&&H7(z.getVideoData())&&z.On("slr",{et:(Q==null?void 0:Q.endTimeMs)||-1});z=this.ey();z.Ys("applooprange");if(Q){var H=new g.HD(Q.startTimeMs,Q.endTimeMs,{id:"looprange",namespace:"applooprange"});z.addCueRange(H)}else{this.Iq().clipConfig=void 0;var f;((H=this.GL)==null?void 0:H.type)!== "repeatChapter"||isNaN(Number((f=this.GL)==null?void 0:f.loopCount))||(H={loopCount:String(this.GL.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.y5("repeatChapterLoopEvent",H))}this.GL=Q;this.Yv.F$("onLoopRangeChange",Q||void 0);this.ey()===this.X$()&&(this.bE(),z.sN())}}; g.S.getLoopRange=function(){return this.GL}; g.S.bE=function(){var Q="",z=this.ey();this.GL?z!==this.X$()?Q="pnea":WFZ(this,z.getCurrentTime())&&(this.GL.loopCount=0,Q="ilr"):Q="nlr";var H=this.X$();if(H&&H7(H.getVideoData()))if(this.V("html5_gapless_log_loop_range_info")){var f,b;H.On("slrre",{rej:Q,ct:z.getCurrentTime(),lst:(f=this.GL)==null?void 0:f.startTimeMs,let:(b=this.GL)==null?void 0:b.endTimeMs})}else H.On("slrre",{});Q||duL(this)}; g.S.setPlaybackRate=function(Q,z){if(!isNaN(Q)){Q=J38(this,Q);var H=this.ey();H.getPlaybackRate()!==Q&&(H.setPlaybackRate(Q),z&&!this.rh.D&&g.Bw("yt-player-playback-rate",Q),this.Yv.A$("onPlaybackRateChange",Q))}}; g.S.getCurrentTime=function(Q,z,H){z=z===void 0?!0:z;if(this.getPresentingPlayerType()===3)return this.Qs.kQ.getCurrentTime();var f=Q===2&&this.getVideoData().enableServerStitchedDai,b=g.mI(this.getVideoData());Q=f||b?this.X$():this.QE(Q);if(!Q)return this.Qs.Z.getCurrentTime();if(b&&this.OY)return z=this.OY,Q=Q.getCurrentTime(),H?H=LJ(z,H):(H=a9c(z,Q),H=Q-H/1E3),H;if(z){if(f&&this.Xh&&(H=this.Xh.De/1E3,H!==0))return H;H=FF(this,Q);return rQ(this,H.getCurrentTime(),H)}f&&this.Xh?(H=this.Xh,Q=Q.getCurrentTime(), H=(H=LYv(H,Q*1E3))?Q-H.start/1E3:Q):H=Q.getCurrentTime();return H}; g.S.zp=function(){var Q=this.QE();if(!Q)return this.Qs.Z.zp();Q=FF(this,Q);return rQ(this,Q.zp(),Q)}; g.S.getDuration=function(Q,z){z=z===void 0?!0:z;var H=this.getVideoData(),f=Q===2&&H.enableServerStitchedDai,b=g.mI(H);var L=f||b?this.X$():this.QE(Q);if(!L)return this.Qs.Z.getDuration();if(H.hasProgressBarBoundaries()&&!f&&!b){var u,X=Number((u=H.progressBarStartPosition)==null?void 0:u.utcTimeMillis),v;H=Number((v=H.progressBarEndPosition)==null?void 0:v.utcTimeMillis);if(!isNaN(X)&&!isNaN(H))return(H-X)/1E3}if(b&&this.OY)return z=Uwu(this.OY,this.OY.l$()),Q===1&&z===0?L.getDuration():z;if(z)return L= jQ(this,L),rQ(this,L.getDuration(),L);f&&this.Xh?(Q=this.Xh,L=L.getCurrentTime(),L=(L=uWc(Q,L*1E3))?L.durationMs/1E3:0):L=L.getDuration();return L}; g.S.JM=function(Q){var z=this.QE(Q);return z?this.Uj(z)?(z=jQ(this,z),z.JM()-z.getCurrentTime()+this.getCurrentTime(Q)):z.JM():this.Qs.Z.JM()}; g.S.dW=function(){return this.FS}; g.S.addPlayerResponseForAssociation=function(Q){this.OY&&this.OY.addPlayerResponseForAssociation(Q)}; g.S.finishSegmentByCpn=function(Q,z,H){return this.OY?this.OY.finishSegmentByCpn(Q,z,H):[]}; g.S.hX=function(){this.template.hX();var Q=this.Yv;Q.state.element=this.template.element;var z=Q.state.element,H;for(H in Q.state.Z)Q.state.Z.hasOwnProperty(H)&&(z[H]=Q.state.Z[H]);(Q=dNa(this.template.element))&&this.events.X(this.template,Q,this.onFullscreenChange);this.events.X(window,"resize",this.Nr$)}; g.S.getDebugText=function(Q){var z=this.ey().TL(Q),H=this.X$(),f=this.ey();if(H&&H!==f){H=H.TL(Q);f=g.n(Object.keys(H));for(var b=f.next();!b.done;b=f.next())b=b.value,z["ad"+b]=H[b];if(Q){H=z;f={};if(b=KC(document,"movie_player"))f.bounds=b.getBoundingClientRect(),f["class"]=b.className;b={};var L=g.T2("video-ads");L?(MIL(L,b),b.html=L.outerHTML):b.missing=1;L={};var u=g.T2("videoAdUiSkipContainer"),X=g.T2("ytp-ad-skip-button-container"),v=g.T2("ytp-skip-ad-button"),y=u||X||v;y?(MIL(y,L),L.ima=u? 1:0,L.bulleit=X?1:0,L.component=v?1:0):L.missing=1;f=JSON.stringify({player:f,videoAds:b,skipButton:L});H.ad_skipBtnDbgInfo=f}}Q&&this.mediaElement&&(z["0sz"]=""+(+Zz(this.mediaElement.getSize())===0),z.op=this.mediaElement.IR("opacity"),H=this.mediaElement.Wr().y+this.mediaElement.getSize().height,z.yof=""+(+H<=0),z.dis=this.mediaElement.IR("display"));Q&&((Q=(0,g.Og)())&&(z.gpu=Q),(Q=this.rh.playerStyle)&&(z.ps=Q),this.rh.En&&(z.webview=1));z.debug_playbackQuality=this.Yv.getPlaybackQuality(1); z.debug_date=(new Date).toString();z.origin=window.origin;z.timestamp=Date.now();delete z.uga;delete z.q;return JSON.stringify(z,null,2)}; g.S.getFeedbackProductData=function(){var Q={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.C().experiments.experimentIds.join(", "),player_release:"youtube.player.web_20250305_01_RC00"},z=this.getPlayerStateObject().WS;z&&(Q.player_error_code=z.errorCode,Q.player_error_details=JSON.stringify(z.errorDetail));return Q}; g.S.getPresentingPlayerType=function(Q){if(this.appState===1)return 1;if(xI(this))return 3;var z;if(Q&&((z=this.Xh)==null?0:z.f4(this.getCurrentTime())))return 2;var H;return g.mI(this.getVideoData())&&((H=this.OY)==null?0:H.f4())?2:this.X$().getPlayerType()}; g.S.uv=function(){return g.mI(this.getVideoData())&&this.OY?this.OY.uv():!1}; g.S.getPlayerStateObject=function(Q){return this.getPresentingPlayerType()===3?this.Qs.kQ.getPlayerState():this.QE(Q).getPlayerState()}; g.S.getAppState=function(){return this.appState}; g.S.bS=function(Q){switch(Q.type){case "loadedmetadata":this.q9.start();Q=g.n(this.ZU);for(var z=Q.next();!z.done;z=Q.next())z=z.value,HdL(this,z.id,z.Gsm,z.yTv,void 0,!1);this.ZU=[];break;case "loadstart":this.jy.K$("gv");break;case "progress":case "timeupdate":vs(Q.target.Ux())>=2&&this.jy.K$("l2s");break;case "playing":g.Tt&&this.q9.start();if(g.OV(this.rh))Q=!1;else{var H=this.X$();z=g.Y1(this.xt());Q=this.mediaElement.IR("display")==="none"||Zz(this.mediaElement.getSize())===0;var f=nJ(this.template), b=H.getVideoData();H=g.Ux(this.rh);b=f9(b);z=!f||z||H||b||this.rh.gh;Q=Q&&!z}Q&&(Q=this.X$(),Q.y7(),this.getVideoData().gT||(this.getVideoData().gT=1,this.XU(),Q.playVideo()))}}; g.S.onLoadProgress=function(Q,z){this.Yv.g4("onLoadProgress",z)}; g.S.y$l=function(){this.Yv.publish("playbackstalledatstart")}; g.S.u1=function(Q,z){this.Yv.publish("sabrCaptionsDataLoaded",Q,z)}; g.S.oJm=function(Q){var z;(z=this.X$())==null||z.y5(Q)}; g.S.r$T=function(Q){var z;(z=this.X$())==null||z.DU(Q)}; g.S.onVideoProgress=function(Q,z){Q=FF(this,Q.Sg);z=rQ(this,Q.getCurrentTime(),Q);this.Yv.A$("onVideoProgress",z);this.rh.Bl&&leZ(this,this.visibility.S2())&&this.pauseVideo()}; g.S.onAutoplayBlocked=function(){this.Yv.A$("onAutoplayBlocked");var Q,z=(Q=this.X$())==null?void 0:Q.getVideoData();z&&(z.cK=!0);this.V("embeds_enable_autoplay_and_visibility_signals")&&g.xh(this.rh)&&(Q={autoplayBrowserPolicy:DJ(),autoplayIntended:KE(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.y5("embedsAutoplayStatusChanged",Q))}; g.S.YZe=function(){this.Yv.publish("progresssync")}; g.S.Gx3=function(){this.Yv.g4("onPlaybackPauseAtStart")}; g.S.Mxq=function(Q){if(this.getPresentingPlayerType()===1){g.Ex(Q,1)&&!g.w(Q.state,64)&&this.Iq().isLivePlayback&&this.ey().isAtLiveHead()&&this.Yv.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.Ex(Q,2)){if(this.GL&&this.GL.endTimeMs>=(this.getDuration()-1)*1E3){duL(this);return}YI6(this)}if(g.w(Q.state,128)){var z=Q.state;this.cancelPlayback(5);z=z.WS;JSON.stringify({errorData:z,debugInfo:this.getDebugText(!0)});this.Yv.A$("onError",DD_(z.errorCode));this.Yv.g4("onDetailedError",{errorCode:z.errorCode, errorDetail:z.errorDetail,message:z.errorMessage,messageKey:z.oP,cpn:z.cpn});(0,g.NV)()-this.rh.YJ>6048E5&&this.Yv.g4("onReloadRequired")}z={};if(Q.state.isPlaying()&&!Q.state.isBuffering()&&!DA("pbresume","ad_to_video")&&DA("_start","ad_to_video")){var H=this.getVideoData();z.clientPlaybackNonce=H.clientPlaybackNonce;H.videoId&&(z.videoId=H.videoId);g.hN(z,"ad_to_video");ib("pbresume",void 0,"ad_to_video");LLv(this.RB)}this.Yv.publish("applicationplayerstatechange",Q)}}; g.S.B9=function(Q){this.getPresentingPlayerType()!==3&&this.Yv.publish("presentingplayerstatechange",Q)}; g.S.BU=function(Q){$I(this,vR(Q.state));g.w(Q.state,1024)&&this.Yv.isMutedByMutedAutoplay()&&(Aw(this,{muted:!1,volume:this.JT.volume},!1),YI(this,!1))}; g.S.nw=function(Q,z,H){Q==="newdata"&&FFk(this);this.Yv.publish("applicationvideodatachange",Q,H)}; g.S.jK=function(Q,z){this.Yv.g4("onPlaybackAudioChange",this.Yv.getAudioTrack().Ii.name);this.Yv.publish("internalaudioformatchange",this.Yv.getAudioTrack().Ii.id,z)}; g.S.vE=function(Q){var z=this.X$().getVideoData();Q===z&&this.Yv.A$("onPlaybackQualityChange",Q.B.video.quality)}; g.S.n_=function(){var Q=this.Qs.QE(2);if(Q){var z=Q.getVideoData();Q=Q.R0();var H;(H=this.X$())==null||H.On("ssdai",{cleanaply:1,acpn:z==null?void 0:z.clientPlaybackNonce,avid:z.videoId,ccpn:Q,sccpn:this.Iq().clientPlaybackNonce===Q?1:0,isDai:this.Iq().enableServerStitchedDai?1:0});delete this.Qs.L[2]}}; g.S.onVideoDataChange=function(Q,z,H){this.nt(Q,z.Sg,H)}; g.S.nt=function(Q,z,H){this.X$();this.logger.debug(function(){return"on video data change "+Q+", player type "+z.getPlayerType()+", vid "+H.videoId}); this.rh.vz()&&z.On("vdc",{type:Q,vid:H.videoId||"",cpn:H.clientPlaybackNonce||""});z===this.ey()&&(this.rh.j2=H.oauthToken);if(z===this.ey()){this.getVideoData().enableServerStitchedDai&&!this.Xh?(this.ey().On("sdai",{initSstm:1}),this.Xh=this.V("html5_enable_ssdai_transition_with_only_enter_cuerange")?new Gkk(this.Yv,this.rh,this.ey(),this):new g.mV(this.Yv,this.rh,this.ey(),this)):!this.getVideoData().enableServerStitchedDai&&this.Xh&&(this.Xh.dispose(),this.Xh=null);var f,b;!g.mI(this.getVideoData())|| Q!=="newdata"&&Q!=="dataloaded"||this.getVideoData().clientPlaybackNonce===((f=this.FS.Z)==null?void 0:(b=f.getVideoData())==null?void 0:b.clientPlaybackNonce)?!g.mI(this.getVideoData())&&this.OY&&(this.OY.dispose(),this.OY=null):(wiv(this.FS),this.V("html5_ssap_cleanup_ad_player_on_new_data")&&this.n_(),f=KO(this.FS,1,0,this.getDuration(1)*1E3,this.getVideoData()),this.FS.enqueue(f,!0),DC(this.FS,0,this.getDuration(1)*1E3,[f]),kFA(this.FS,this.getVideoData().clientPlaybackNonce,[f]),this.OY&&(this.OY.dispose(), this.OY=null),this.OY=new JVA(this.Yv,this.FS,this.ey()),this.Qs.ey().L$(this.OY))}if(Q==="newdata")this.logger.debug("new video data, destroy modules"),Nb(this.RB,2),this.Yv.publish("videoplayerreset",z);else{if(!this.mediaElement)return;Q==="dataloaded"&&(this.ey()===this.X$()?(al(H.aj,H.hI),Uua(this)):P9Y(this));z.getPlayerType()===1&&(this.rh.mq&&qtu(this),this.getVideoData().isLivePlayback&&!this.rh.vN&&this.wP("html5.unsupportedlive",2,"DEVICE_FALLBACK"),H.isLoaded()&&((QaL(H)||this.getVideoData().UR)&& this.Yv.publish("legacyadtrackingpingchange",this.getVideoData()),H.hasProgressBarBoundaries()&&wva(this)));this.Yv.publish("videodatachange",Q,H,z.getPlayerType())}this.Yv.A$("onVideoDataChange",{type:Q,playertype:z.getPlayerType()});this.bE();(f=H.PO)?this.ZL.FP(f,H.clientPlaybackNonce):pvk(this.ZL)}; g.S.qU=function(){oP(this,null);this.Yv.g4("onPlaylistUpdate")}; g.S.cMe=function(Q){delete this.I9[Q.getId()];this.ey().removeCueRange(Q);a:{Q=this.getVideoData();var z,H,f,b,L,u,X,v,y,q,M=((z=Q.mq)==null?void 0:(H=z.contents)==null?void 0:(f=H.singleColumnWatchNextResults)==null?void 0:(b=f.autoplay)==null?void 0:(L=b.autoplay)==null?void 0:L.sets)||((u=Q.mq)==null?void 0:(X=u.contents)==null?void 0:(v=X.twoColumnWatchNextResults)==null?void 0:(y=v.autoplay)==null?void 0:(q=y.autoplay)==null?void 0:q.sets);if(M)for(z=g.n(M),H=z.next();!H.done;H=z.next())if(H= H.value,b=f=void 0,H=H.autoplayVideo||((f=H.autoplayVideoRenderer)==null?void 0:(b=f.autoplayEndpointRenderer)==null?void 0:b.endpoint),f=g.K(H,g.ew),L=b=void 0,H!=null&&((b=f)==null?void 0:b.videoId)===Q.videoId&&((L=f)==null?0:L.continuePlayback)){Q=H;break a}Q=null}(z=g.K(Q,g.ew))&&this.Yv.F$("onPlayVideo",{sessionData:{autonav:"1",itct:Q==null?void 0:Q.clickTrackingParams},videoId:z.videoId,watchEndpoint:z})}; g.S.Za=function(Q){var z=this;Q!==this.appState&&(this.logger.debug(function(){return"app state change "+z.appState+" -> "+Q}),Q===2&&this.getPresentingPlayerType()===1&&($I(this,-1),$I(this,5)),this.appState=Q,this.Yv.publish("appstatechange",Q))}; g.S.wP=function(Q,z,H,f,b){this.ey().VN(Q,z,H,f,b)}; g.S.WQ=function(Q,z){this.ey().handleError(new Oh(Q,z))}; g.S.isAtLiveHead=function(Q,z){z=z===void 0?!1:z;var H=this.QE(Q);if(!H)return this.Qs.Z.isAtLiveHead();Q=jQ(this,H);H=FF(this,H);return Q!==H?Q.isAtLiveHead(rQ(this,H.getCurrentTime(),H),!0):Q.isAtLiveHead(void 0,z)}; g.S.SN=function(){var Q=this.QE();return Q?jQ(this,Q).SN():this.Qs.Z.SN()}; g.S.seekTo=function(Q,z,H,f,b){z=z!==!1;if(f=this.QE(f))this.appState===2&&Nc(this),this.Uj(f)?sL(this)?this.Xh.seekTo(Q,{seekSource:b},z,H):this.J7.seekTo(Q,{seekSource:b},z,H):g.mI(this.getVideoData())&&this.OY?this.OY.seekTo(Q,{RT:!z,GA:H,lr:"application",seekSource:b}):f.seekTo(Q,{RT:!z,GA:H,lr:"application",seekSource:b})}; g.S.seekBy=function(Q,z,H,f){this.seekTo(this.getCurrentTime()+Q,z,H,f)}; g.S.cE=function(){this.Yv.A$("SEEK_COMPLETE")}; g.S.AS=function(){this.Yv.F$("onAbnormalityDetected")}; g.S.onSnackbarMessage=function(Q){this.Yv.F$("onSnackbarMessage",Q)}; g.S.wqT=function(Q,z){Q=Q.Sg;var H=Q.getVideoData();if(this.appState===1||this.appState===2)H.startSeconds=z;this.appState===2?g.w(Q.getPlayerState(),512)||Nc(this):this.Yv.A$("SEEK_TO",z)}; g.S.onAirPlayActiveChange=function(){this.Yv.publish("airplayactivechange");this.rh.V("html5_external_airplay_events")&&this.Yv.g4("onAirPlayActiveChange",this.Yv.oJ())}; g.S.onAirPlayAvailabilityChange=function(){this.Yv.publish("airplayavailabilitychange");this.rh.V("html5_external_airplay_events")&&this.Yv.g4("onAirPlayAvailabilityChange",this.Yv.qZ())}; g.S.showAirplayPicker=function(){var Q;(Q=this.X$())==null||Q.bf()}; g.S.YC=function(){this.Yv.publish("beginseeking")}; g.S.XT=function(){this.Yv.publish("endseeking")}; g.S.getStoryboardFormat=function(Q){return(Q=this.QE(Q))?jQ(this,Q).getStoryboardFormat():this.Qs.Z.getStoryboardFormat()}; g.S.HU=function(Q){return(Q=this.QE(Q))?jQ(this,Q).getVideoData().HU():this.Qs.Z.HU()}; g.S.Uj=function(Q){Q=Q||this.X$();var z=!1;if(Q){Q=Q.getVideoData();if(sL(this))Q=Q===this.Xh.playback.getVideoData();else a:if(z=this.J7,Q===z.Z.getVideoData()&&z.B.length)Q=!0;else{z=g.n(z.B);for(var H=z.next();!H.done;H=z.next())if(Q.Tq===H.value.Tq){Q=!0;break a}Q=!1}z=Q}return z}; g.S.KU=function(Q,z,H,f,b,L,u){this.logger.debug(function(){return"Adding video to timeline id="+Q.video_id+"\n lengthMs="+f+" enterTimeMs="+b}); var X="",v=sL(this),y;(y=this.X$())==null||y.On("appattl",{sstm:this.Xh?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:v});X=v?bzn(this.Xh,Q,z,H,f,b,L,u):mwc(this.J7,Q,H,f,b,L);this.logger.debug(function(){return"Video added to timeline id="+Q.video_id+" timelinePlaybackId="+X}); return X}; g.S.wF=function(Q,z,H,f,b,L,u){if(sL(this)){var X=bzn(this.Xh,Q,z,H,f,b,L,u);this.logger.debug(function(){return"Remaining video added to timeline id="+Q.video_id+" timelinePlaybackId="+X})}return""}; g.S.dc=function(Q){var z;(z=this.Xh)==null||z.dc(Q)}; g.S.Yw=function(Q,z){Q=Q===void 0?-1:Q;z=z===void 0?Infinity:z;sL(this)||HMn(this.J7,Q,z)}; g.S.To=function(Q,z,H){if(sL(this)){var f=this.Xh,b=f.Wz.get(Q);b?(H===void 0&&(H=b.Zm),b.durationMs=z,b.Zm=H):f.NO("Invalid_timelinePlaybackId_"+Q+"_specified")}else{f=this.J7;b=null;for(var L=g.n(f.B),u=L.next();!u.done;u=L.next())if(u=u.value,u.Tq===Q){b=u;break}b?(H===void 0&&(H=b.Zm),zT9(f,b,z,H)):ue(f,"InvalidTimelinePlaybackId timelinePlaybackId="+Q)}}; g.S.enqueueVideoByPlayerVars=function(Q,z,H,f){H=H===void 0?Infinity:H;f=f===void 0?"":f;this.Uj();Q=new g.D1(this.rh,Q);f&&(Q.Tq=f);k18(this,Q,z,H)}; g.S.queueNextVideo=function(Q,z,H,f,b){H=H===void 0?NaN:H;Q=this.preloadVideoByPlayerVars(Q,z===void 0?1:z,H,f===void 0?"":f,b===void 0?"":b);z=this.X$();Q&&z&&(this.V("html5_check_queue_on_data_loaded")?this.C().supportsGaplessShorts()&&z.getVideoData().N&&(H=this.GP,f=this.t5.Y,H.D!==Q&&(H.B=z,H.D=Q,H.L=1,H.Z=Q.getVideoData(),H.S=f,H.Z.isLoaded()?H.j():H.Z.subscribe("dataloaded",H.j,H))):(H=xec(z,Q,this.t5.Y),H!=null?(z.On("sgap",H),z.getVideoData().N&&z.TX(!1)):(Q=Q.getVideoData(),z=this.GP,z.Z!== Q&&(z.Z=Q,z.L=1,Q.isLoaded()?z.Y():z.Z.subscribe("dataloaded",z.Y,z)))))}; g.S.iB=function(Q,z,H,f){var b=this;H=H===void 0?0:H;f=f===void 0?0:f;var L=this.X$();L&&jQ(this,L).SF();a0A(this.t5,Q,z,H,f).then(function(){b.Yv.g4("onQueuedVideoLoaded")},function(){})}; g.S.PU=function(){return this.t5.PU()}; g.S.QS=function(Q){return this.t5.Z===Q.Sg}; g.S.clearQueue=function(Q,z){Q=Q===void 0?!1:Q;z=z===void 0?!1:z;this.logger.debug("Clearing queue");this.t5.clearQueue(Q,z)}; g.S.loadVideoByPlayerVars=function(Q,z,H,f,b,L){z=z===void 0?1:z;var u=this.ey();if(z===2&&this.Iq().enableServerStitchedDai&&u&&!u.vG())return u.On("lvonss",{vid:(Q==null?void 0:Q.videoId)||"",ptype:z}),!1;var X=!1;u=new g.D1(this.rh,Q);u.reloadPlaybackParams=L;g.kh(this.rh)&&!u.Yn&&t4(this.jy);var v;L=this.jy;var y=(v=u.En)!=null?v:"";L.timerName=y;this.jy.GS("pl_i");this.V("web_player_early_cpn")&&u.clientPlaybackNonce&&this.jy.infoGel({clientPlaybackNonce:u.clientPlaybackNonce});if(oH_(u).supportsVp9Encoding=== !1){var q;(q=this.X$())==null||q.On("noVp9",{})}if(this.C().supportsGaplessShorts()){v=cSv(this.t5,u,z);if(v==null){$I(this,-1);Q=this.t5;Q.app.C().V("html5_gapless_new_slr")?KFc(Q.app,"gaplessshortslooprange"):Q.app.setLoopRange(null);Q.app.getVideoData().aG=!0;var M;(M=Q.Z)==null||M.Lj();var C;(C=Q.Z)==null||C.RI();H={lr:"gapless_to_next_video",seekSource:60};f=g.qf(Q.app.C().experiments,"html5_gapless_seek_offset");var t;(t=Q.app.X$())==null||t.seekTo(Ue9(Q)+f,H);if(!Q.app.getPlayerStateObject(z).isPlaying()){var E; (E=Q.app.X$())==null||E.playVideo(!0)}if(Q.app.C().V("html5_short_gapless_unlisten_after_seek")){var G;(G=Q.app.X$())==null||G.r$()}Q.j();return!0}t=this.V("html5_shorts_gapless_preload_fallback");E=this.t5.Z;t&&E&&!E.Uw()&&(G=E.getVideoData(),G=this.rh.V("html5_autonav_autoplay_in_preload_key")?Pg(this,z,G):aP(this,z,G.videoId,G.Tq),this.Qs.B.set(G,E,3600));this.t5.clearQueue(t);var x;(x=this.X$())==null||x.On("sgap",{f:v})}if(b){for(;u.Xr.length&&u.Xr[0].isExpired();)u.Xr.shift();X=u.Xr.length- 1;X=X>0&&b.B(u.Xr[X])&&b.B(u.Xr[X-1]);u.Xr.push(b)}H||(Q&&jY6(Q)?(Ko(this.rh)&&!this.M7&&(Q.fetch=0),oP(this,Q)):this.playlist&&oP(this,null),Q&&(this.M7=bh(!1,Q.external_list)));this.Yv.publish("loadvideo");z=this.l1(u,z,f);X&&this.wP("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+u.Xr.join()).replace(/[;:,]/g,"_"));return z}; g.S.preloadVideoByPlayerVars=function(Q,z,H,f,b){z=z===void 0?1:z;H=H===void 0?NaN:H;f=f===void 0?"":f;b=b===void 0?"":b;var L="";if(this.rh.V("html5_autonav_autoplay_in_preload_key"))L=eTa(this,z,Q,b);else{var u=vw(Q);L=aP(this,z,u,b)}if(this.Qs.B.get(L))return this.logger.debug(function(){return"already preloaded "+L}),null; Q=new g.D1(this.rh,Q);b&&(Q.Tq=b);return TKA(this,Q,z,H,f)}; g.S.setMinimized=function(Q){this.visibility.setMinimized(Q);(Q=Xga(this.RB))&&(this.isMinimized()?Q.load():Q.unload());this.Yv.publish("minimized")}; g.S.setInline=function(Q){this.visibility.setInline(Q)}; g.S.setInlinePreview=function(Q){this.visibility.setInline(Q)}; g.S.z$=function(Q){RTa(this,Q)||this.visibility.z$(Q)}; g.S.setSqueezeback=function(Q){this.visibility.setSqueezeback(Q)}; g.S.fk=function(){var Q,z=(Q=this.mediaElement)==null?void 0:Q.ai();z&&(this.rh.Sl&&CE(y1(function(){return document.exitFullscreen()}),function(){}),CE(y1(function(){return Gd(z)}),function(){}))}; g.S.Hin=function(){this.mediaElement.ai();this.mediaElement.ai().webkitPresentationMode==="picture-in-picture"?this.z$(!0):this.z$(!1)}; g.S.togglePictureInPicture=function(){var Q=this.X$();Q&&Q.togglePictureInPicture()}; g.S.l1=function(Q,z,H){z=z===void 0?1:z;this.logger.debug(function(){return"start load video, id "+Q.videoId+", type "+z}); DA("_start",this.jy.timerName)||g.QC(rE)(void 0,this.jy.timerName);var f=!1,b=hTZ(this,z,Q,!1);b?(f=!0,Q.dispose()):(b=Z2(this,z,Q,!0,H),(this.V("html5_onesie")||this.V("html5_load_before_stop"))&&b.A3()&&b.gX(),this.q9.stop(),z===1&&z!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,z),this.Rl(b));b===this.ey()&&(this.rh.j2=Q.oauthToken);if(!b.A3())return!1;if(b===this.ey())return this.Za(1),H=Nc(this),f&&this.V("html5_player_preload_ad_fix")&&b.getPlayerType()===1&& b.DG()&&this.nt("dataloaded",b,b.getVideoData()),H;b.v2();return!0}; g.S.cueVideoByPlayerVars=function(Q,z){var H=this;z=z===void 0?1:z;var f=this.ey();if(this.Iq().enableServerStitchedDai&&f&&!f.vG()&&Q&&Object.keys(Q).length>0)f.On("qvonss",{vid:(Q==null?void 0:Q.videoId)||"",ptype:z});else if(Q&&jY6(Q))if(this.b5=!0,oP(this,Q),(Q=g.Eu(this.playlist))&&Q.EZ())cg(this,Q,z);else this.playlist.onReady(function(){Jw(H)}); else{z||(z=this.getPresentingPlayerType());z===1&&this.qU();f=new g.D1(this.rh,Q);var b=g.xh(this.rh)&&!this.rh.wh&&z===1&&!f.isAd()&&!f.UY;this.Yv.publish("cuevideo");b?(this.X$().getVideoData().loading=!0,ICa(f,Q?Q:{}).then(function(L){cg(H,L,z)}),f.dispose()):cg(this,f,z)}}; g.S.cN=function(Q,z,H,f,b,L,u){if(!Q&&!H)throw Error("Playback source is invalid");if(ol(this.rh)||g.FE(this.rh))return z=z||{},z.lact=NA(),z.vis=this.Yv.getVisibilityState(),this.Yv.F$("onPlayVideo",{videoId:Q,watchEndpoint:L,sessionData:z,listId:H}),!1;GBu(this.jy);this.jy.reset();Q={video_id:Q};f&&(Q.autoplay="1");f&&(Q.autonav="1");L&&(Q.player_params=L.playerParams);u&&(Q.oauth_token=u);H?(Q.list=H,this.loadPlaylist(Q)):this.loadVideoByPlayerVars(Q,1);return!0}; g.S.cuePlaylist=function(Q,z,H,f){this.b5=!0;Q1A(this,Q,z,H,f)}; g.S.loadPlaylist=function(Q,z,H,f){this.b5=!1;Q1A(this,Q,z,H,f)}; g.S.jq=function(){return this.Yv.isMutedByMutedAutoplay()?!1:this.getPresentingPlayerType()===3?!0:!(!this.playlist||!this.playlist.Yr())}; g.S.It=H_(13); g.S.nextVideo=function(Q,z){var H=g.lF(this.ey().getVideoData());g.BG(this.Yv)&&H?this.cN(H.videoId,z?H.wv:H.sessionData,H.playlistId,z,void 0,H.aM||void 0):this.M7?this.Yv.g4("onPlaylistNext"):this.getPresentingPlayerType()===3?NW(this.RB).nextVideo():!this.playlist||Ko(this.rh)&&!this.Yv.isFullscreen()||(this.playlist.Yr(Q)&&OOn(this.playlist,FVY(this.playlist)),this.playlist.loaded?(Q=z&&this.rh.V("html5_player_autonav_logging"),z&&this.Yv.publish("playlistautonextvideo"),this.l1(g.Eu(this.playlist,void 0, z,Q),1)):this.b5=!1)}; g.S.previousVideo=function(Q){this.M7?this.Yv.g4("onPlaylistPrevious"):this.getPresentingPlayerType()===3?NW(this.RB).CX():!this.playlist||Ko(this.rh)&&!this.Yv.isFullscreen()||(this.playlist.bz(Q)&&OOn(this.playlist,x89(this.playlist)),this.playlist.loaded?this.l1(g.Eu(this.playlist),1):this.b5=!1)}; g.S.playVideoAt=function(Q){this.M7?this.Yv.g4("onPlaylistIndex",Q):this.playlist&&(this.playlist.loaded?this.l1(g.Eu(this.playlist,Q),1):this.b5=!1,OOn(this.playlist,Q))}; g.S.getPlaylist=function(){return this.playlist}; g.S.X4=H_(25);g.S.B4m=function(Q){this.Yv.A$("onCueRangeEnter",Q.getId())}; g.S.qVI=function(Q){this.Yv.A$("onCueRangeExit",Q.getId())}; g.S.j9=function(){var Q=g.oO(this.xt());Q&&Q.j9()}; g.S.pZ=function(Q,z,H){var f=this.QE(z);if(f){var b=this.Iq();if(g.mI(b)){if(this.OY)if(this.V("html5_ssap_enable_cpn_triggered_media_end")&&f.getPlayerType()===2&&this.OY.f4()&&(f=this.ey()),z===1)for(var L=sJ(this.OY,b.clientPlaybackNonce),u=g.n(Q),X=u.next();!X.done;X=u.next())X=X.value,X.start+=L,X.end+=L,X.hB=L,X.L=b.clientPlaybackNonce;else if(this.V("html5_ssap_enable_cpn_triggered_media_end")&&z===2)for(this.getPresentingPlayerType(),b=g.n(Q),L=b.next();!L.done;L=b.next())L.value.L=this.OY.l$(); b=g.n(Q);for(L=b.next();!L.done;L=b.next())u=void 0,L.value.playerType=(u=z)!=null?u:1}f.pZ(Q,H);z&&this.getPresentingPlayerType()!==z||ie(this,"cuerangesadded",Q)}}; g.S.OR=function(Q,z){var H=this.QE(z);H&&(H.OR(Q),z&&this.getPresentingPlayerType()!==z||ie(this,"cuerangesremoved",Q))}; g.S.kR=function(Q){var z=this.X$()||this.ey(),H=this.getPresentingPlayerType();return this.V("html5_ssap_enable_cpn_triggered_media_end")?z.kR(H,Q):z.kR(H)}; g.S.kq5=function(){function Q(){var f=z.screenLayer||(z.isMinimized()?3:0),b=g.ox(f);if(b&&b!=="UNDEFINED_CSN"){var L=z.rh.V("web_player_attach_player_response_ve"),u=z.rh.V("web_playback_associated_ve");f={cpn:z.getVideoData().clientPlaybackNonce,csn:b};z.getVideoData().yl&&(L||u)&&(L=g.FG(z.getVideoData().yl),g.Hf(b,L),u&&(f.playbackVe=L.getAsJson()));z.getVideoData().queueInfo&&(f.queueInfo=z.getVideoData().queueInfo);b={};z.V("web_playback_associated_log_ctt")&&z.getVideoData().j&&(b.cttAuthInfo= {token:z.getVideoData().j,videoId:z.getVideoData().videoId});g.y5("playbackAssociated",f,b)}else g.PT(new g.wD("CSN Missing or undefined during playback association"))} var z=this,H=this.X$();this.getPresentingPlayerType();g29(this.jy,H.getVideoData(),bd9(this));OL(this)&&this.rh.D&&P7(this.Iq())==="embedded"&&this.Nq&&Math.random()<.01&&g.y5("autoplayTriggered",{intentional:this.intentionalPlayback});this.Nq=!1;LLv(this.RB);this.V("web_player_defer_ad")&&aea(this);this.Yv.g4("onPlaybackStartExternal");(this.rh.V("mweb_client_log_screen_associated"),U8(this.rh))||Q();H={};this.getVideoData().j&&(H.cttAuthInfo={token:this.getVideoData().j,videoId:this.getVideoData().videoId}); H.sampleRate=20;WC("player_att",H);if(this.getVideoData().botguardData||this.V("fetch_att_independently"))g.mD(this.rh)||mf(this.rh)==="MWEB"?g.R4(g.za(),function(){IP(z)}):IP(this); this.bE();Vgk(this);this.V("embeds_enable_autoplay_and_visibility_signals")&&g.xh(this.rh)&&(H={autoplayBrowserPolicy:DJ(),autoplayIntended:KE(this.getVideoData()),autoplayStatus:iNL(this.getVideoData(),1),cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.y5("embedsAutoplayStatusChanged",H))}; g.S.zQ=function(){this.Yv.publish("internalAbandon");Bg(this)}; g.S.onApiChange=function(){var Q=this.X$();this.rh.Y&&Q?this.Yv.A$("onApiChange",Q.getPlayerType()):this.Yv.A$("onApiChange")}; g.S.wcj=function(){var Q=this.mediaElement;Q={volume:g.v3(Math.floor(Q.getVolume()*100),0,100),muted:Q.qN()};Q.muted||YI(this,!1);this.JT=g.B3(Q);this.Yv.A$("onVolumeChange",Q)}; g.S.mutedAutoplay=function(Q){var z=this.getVideoData().videoId;isNaN(this.Gk)&&(this.Gk=this.getVideoData().startSeconds);if((Q==null?0:Q.videoId)||z)this.loadVideoByPlayerVars({video_id:(Q==null?0:Q.videoId)?Q==null?void 0:Q.videoId:z,playmuted:!0,start:this.Gk,muted_autoplay_duration_mode:Q==null?void 0:Q.durationMode}),this.Yv.g4("onMutedAutoplayStarts")}; g.S.onFullscreenChange=function(){var Q=ub8(this);this.tB(Q?1:0);X$v(this,!!Q)}; g.S.tB=function(Q){var z=!!Q,H=!!this.mG()!==z;this.visibility.tB(Q);this.template.tB(z);this.V("html5_media_fullscreen")&&!z&&this.mediaElement&&ub8(this)===this.mediaElement.ai()&&this.mediaElement.Bd();this.template.resize();H&&this.jy.tick("fsc");H&&(this.Yv.publish("fullscreentoggled",z),Q=this.Iq(),z={fullscreen:z,videoId:Q.k6||Q.videoId,time:this.getCurrentTime()},this.Yv.getPlaylistId()&&(z.listId=this.Yv.getPlaylistId()),this.Yv.A$("onFullscreenChange",z))}; g.S.Sd=function(){return this.visibility.Sd()}; g.S.isFullscreen=function(){return this.visibility.isFullscreen()}; g.S.mG=function(){return this.visibility.mG()}; g.S.Nr$=function(){if(this.X$()){var Q=this.mG();Q!==0&&Q!==1||this.tB(ub8(this)?1:0);Q=window.screen.width*window.screen.height;var z=window.outerHeight*window.outerWidth;this.rh.AK?(this.HW=Math.max(this.HW,Q,z),Q=z/this.HW<.33,this.visibility.z$(Q),this.rh.zO&&RTa(this,Q)):this.mediaElement&&leZ(this,z/Q<.33)&&this.mediaElement.Bd()}}; g.S.Uin=function(Q){this.getPresentingPlayerType()!==3&&this.Yv.publish("liveviewshift",Q)}; g.S.playVideo=function(Q,z){this.logger.debug(function(){return"play video, player type "+Q}); var H=this.QE(Q);H?this.appState===2?(g.kh(this.rh)&&t4(this.jy),Nc(this)):g.w(H.getPlayerState(),2)?(z=36,this.getVideoData().fq()&&(z=37),this.seekTo(0,void 0,void 0,void 0,z)):H.playVideo(!1,z):this.Qs.Z.playVideo(!1,z)}; g.S.pauseVideo=function(Q,z){(Q=this.QE(Q))?Q.pauseVideo(z):this.Qs.Z.pauseVideo(z)}; g.S.stopVideo=function(Q){Q=Q===void 0?!1:Q;this.logger.debug(function(){return"stop video"}); var z=this.ey().getVideoData(),H=new g.D1(this.rh,{video_id:z.k6||z.videoId,oauth_token:z.oauthToken});H.U=g.B3(z.U);var f;!Q||(f=this.webPlayerContextConfig)!=null&&f.disableStaleness||(H.AP=!0);this.cancelPlayback(6);cg(this,H,1)}; g.S.cancelPlayback=function(Q,z){var H=this;this.logger.debug(function(){return"start cancel playback, type "+z}); var f=this.QE(z);f?z===2&&f.getPlayerType()===1&&(km(this.Iq())||g.mI(this.getVideoData()))?f.On("canclpb",{r:"no_adpb_ssdai"}):(this.rh.vz()&&f.On("canclpb",{r:Q}),this.appState===1||this.appState===2?this.logger.debug(function(){return"cancel playback end, app not started, state "+H.appState}):(f===this.X$()&&(this.logger.debug("cancel playback, destroy modules"),Nb(this.RB,Q)),z===1&&(f.stopVideo(),Bg(this)),f.Iv(void 0,Q!==6),ie(this,"cuerangesremoved",f.o6()),f.Oi(),this.t5&&f.isGapless()&&(f.MO(!0), f.setMediaElement(this.mediaElement)))):this.logger.debug("cancel playback end, no player to cancel")}; g.S.sendVideoStatsEngageEvent=function(Q,z,H){(z=this.QE(z))&&MpJ(this.rh,Q)?z.sendVideoStatsEngageEvent(Q,H):H&&H()}; g.S.kV=function(Q){var z=this.QE();return z&&MpJ(this.rh,Q)?z.kV(Q):null}; g.S.updatePlaylist=function(){!Ko(this.rh)&&g.xh(this.rh)&&c3a(this);this.Yv.g4("onPlaylistUpdate")}; g.S.setSizeStyle=function(Q,z){this.hx=Q;this.V("web_log_theater_mode_visibility")?this.Kx(z):this.uO=z;this.Yv.publish("sizestylechange",Q,z);this.template.resize()}; g.S.Kx=function(Q){this.visibility.Kx(Q)}; g.S.Vf=function(){return this.V("web_log_theater_mode_visibility")?this.visibility.Vf():this.uO}; g.S.isMinimized=function(){return this.visibility.isMinimized()}; g.S.isInline=function(){return this.visibility.isInline()}; g.S.S2=function(){return this.visibility.S2()}; g.S.CK=function(){return this.visibility.CK()}; g.S.Tn=function(){return this.visibility.Tn()}; g.S.C0=function(){return this.hx}; g.S.getAdState=function(){if(this.getPresentingPlayerType()===3)return NW(this.RB).getAdState();if(!this.Uj()){var Q=IO(this.xt());if(Q)return Q.getAdState()}return-1}; g.S.Imc=function(Q){var z=this.template.getVideoContentRect();XL(this.Sa,z)||(this.Sa=z,(z=this.X$())&&z.ye(),(z=this.ey())&&z===this.X$()&&z.ye(),this.mG()===1&&this.AQ&&X$v(this,!0));this.Ub&&g.nC(this.Ub,Q)||(this.Yv.publish("appresize",Q),this.Ub=Q)}; g.S.GZ=function(){return this.Yv.GZ()}; g.S.a6n=function(){this.getPresentingPlayerType()===2&&this.J7.isManifestless()?QpY(this.J7):(this.Xh&&(Sqp(this.Xh),Bg(this)),vX9(this,"signature"))}; g.S.han=function(Q){Q&&vX9(this,"reloadPlayerEvent",void 0,Q)}; g.S.XU=function(Q){this.MO(Q);GD(this)}; g.S.LMn=function(Q){if(Q.errorCode==="manifest.net.badstatus"){var z=this.rh.experiments.Nc("html5_use_network_error_code_enums")?401:"401";Q.details.rc===z&&this.Yv.F$("onPlayerRequestAuthFailed")}}; g.S.xj=function(Q){this.Yv.publish("heartbeatparams",Q)}; g.S.P3=function(Q){this.Yv.F$("onAutonavChangeRequest",Q!==1)}; g.S.aB=function(){return this.mediaElement}; g.S.setBlackout=function(Q){if(this.rh.gh!==Q){this.rh.gh=Q;var z=this.X$();z&&(z.sN(),this.rh.mq&&qtu(this),z.C4(Q))}}; g.S.kx$=function(){var Q=this.X$();if(Q){var z=!this.Yv.MZ();Q.aC(z)}}; g.S.onLoadedMetadata=function(){this.Yv.g4("onLoadedMetadata")}; g.S.onDrmOutputRestricted=function(){this.Yv.g4("onDrmOutputRestricted")}; g.S.z2=function(){this.intentionalPlayback=!0}; g.S.zv=function(){this.RB.dispose();this.jX.dispose();this.J7.dispose();this.Xh&&this.Xh.dispose();this.FS.removeAll();this.FS.dispose();this.OY&&this.OY.dispose();this.ey().v5();this.MO();this.Qs.dispose();g.Xx(this.playlist);g.h.prototype.zv.call(this)}; g.S.V=function(Q){return this.rh.V(Q)}; g.S.setScreenLayer=function(Q){this.screenLayer=Q}; g.S.getInternalApi=function(){return this.Yv.getInternalApi()}; g.S.createSubtitlesModuleIfNeeded=function(){return this.RB.createSubtitlesModuleIfNeeded()}; g.S.isOrchestrationLeader=function(){var Q=Yb(this.RB);return Q?Q.isOrchestrationLeader():!1}; g.S.getVideoUrl=function(Q,z,H,f,b){if(this.GL&&this.GL.postId)return Q=this.rh.getVideoUrl(Q),Q=we(Q,"v"),Q.replace("/watch","/clip/"+this.GL.postId);var L=this.Yv.isEmbedsShortsMode()||this.rh.yl==="shortspage",u=g.fR(this.getVideoData());return this.rh.getVideoUrl(Q,z,H,f,b,L,u)}; g.S.Ll=function(){return this.t5.Ll()}; g.S.aX=function(Q,z,H){this.Yv.publish("spsumpreject",Q,z,H)}; g.S.JH=function(){try{for(var Q=g.n(Object.values(this.Qs.L)),z=Q.next();!z.done;z=Q.next()){var H=z.value;H.Uw()||H.JH()}if(this.V("html5_sabr_fetch_on_idle_network_preloaded_players"))for(var f=g.n(LFk(this.Qs.B)),b=f.next();!b.done;b=f.next()){var L=b.value;L.Uw()||L.JH()}this.ey().JH()}catch(u){g.PT(u)}}; g.S.Cj=function(){if(this.Xh){var Q=(0,g.NV)();return this.Xh.Cj(Q)}return!1}; g.S.Si=function(Q){var z=this.ey();Q&&(z=CJ8(this,Q));if(z){var H=z.getVideoData();Q=new Map;H=g.n(H.sabrContextUpdates);for(var f=H.next();!f.done;f=H.next()){var b=g.n(f.value);f=b.next().value;b=b.next().value;var L=void 0;b.scope===4&&((L=z)==null?0:L.Rn(f))&&Q.set(f,b)}return Q}this.ey().On("scuget",{ncpf:"1",ccpn:Q})}; var Ow={};var rcO={bU:[{DL:/Unable to load player module/,weight:20},{DL:/Failed to fetch/,weight:500},{DL:/XHR API fetch failed/,weight:10},{DL:/JSON parsing failed after XHR fetch/,weight:10},{DL:/Retrying OnePlatform request/,weight:10},{DL:/CSN Missing or undefined during playback association/,weight:100},{DL:/Non-recoverable error. Do not retry./,weight:0},{DL:/Internal Error. Retry with an exponential backoff./,weight:0},{DL:/API disabled by application./,weight:0}],Qe:[{callback:tIn,weight:500}]};var Jyk=/[&\?]action_proxy=1/,oXa=/[&\?]token=([\w-]*)/,Ny6=/[&\?]video_id=([\w-]*)/,I89=/[&\?]index=([\d-]*)/,Ay_=/[&\?]m_pos_ms=([\d-]*)/,ryJ=/[&\?]vvt=([\w-]*)/,gXY="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(" "),Ytc="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(" "),$En={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"},j18={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},xEA={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};D2.prototype.Z1=function(Q){this.player.vB().tick(Q)}; D2.prototype.fetch=function(Q,z){var H=this;if(!Q.match(/\[BISCOTTI_ID\]/g))return this.B(Q,z);var f=this.Z===1;f&&this.Z1("a_bid_s");var b=p$Y();if(b!==null)return f&&this.Z1("a_bid_f"),this.B(Q,z,b);b=nXJ();f&&g.jL(b,function(){H.Z1("a_bid_f")}); return b.then(function(L){return H.B(Q,z,L)})}; D2.prototype.B=function(Q,z,H){var f=this,b=z===void 0?{}:z;z=b.cP;var L=b.VR;var u=b.cueProcessedMs;H=H===void 0?"":H;var X=this.player.getVideoData(1);b=this.player.C().A5;var v=0;if(u&&L&&!z){var y=L.end-L.start;y>0&&(v=Math.floor(y/1E3))}v=z?z.NB:v;var q={AD_BLOCK:this.Z++,AD_BREAK_LENGTH:v,AUTONAV_STATE:Wg(this.player.C()),CA_TYPE:"image",CPN:X.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.SN()*1E3,LACT:NA(),LIVE_INDEX:z?this.L++:1,LIVE_TARGETING_CONTEXT:z&&z.context?z.context:"",MIDROLL_POS:L? Math.round(L.start/1E3):0,MIDROLL_POS_MS:L?Math.round(L.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.Un().Oq().height,P_W:this.player.Un().Oq().width,YT_REMOTE:b?b.join(","):""},M=C1(Mn);Object.keys(M).forEach(function(t){M[t]!=null&&(q[t.toUpperCase()]=M[t].toString())}); H!==""&&(q.BISCOTTI_ID=H);H={};qn(Q)&&(H.sts="20153",(z=this.player.C().forcedExperiments)&&(H.forced_experiments=z));var C=XZ(g.YW(Q,q),H);return C.split("?").length!==2?GM(Error("Invalid AdBreakInfo URL")):g.zZ(this.player.C(),X==null?void 0:X.oauthToken).then(function(t){if(t&&yC()){var E=UZ();cG(E,t)}t=f.player.Vk(E);E=s1c(f,C,q,X.isMdxPlayback,u);return g.kx(t,E,"/youtubei/v1/player/ad_break").then(function(G){return G})})}; D2.prototype.reset=function(){this.L=this.Z=1};g.p(By8,D2); By8.prototype.B=function(Q,z,H){z=z===void 0?{}:z;var f=z.cP;var b=z.VR;var L=z.cueProcessedMs;H=H===void 0?"":H;z=this.Z;this.Z++;var u=this.player.C().V("h5_disable_macro_substitution_in_get_ad_break")?Q:PJp(this,Q,{cP:f,VR:b,cueProcessedMs:L},H,z);if(u.split("?").length!==2)return Math.random()<.1&&g.PT(Error("Invalid AdBreakInfo URL")),GM(Error("Invalid AdBreakInfo URL"));var X=this.player.getVideoData(1).isMdxPlayback,v=H;H=oXa.exec(u);H=H!=null&&H.length>=2?H[1]:"";Q=Jyk.test(u);var y=Ny6.exec(u); y=y!=null&&y.length>=2?y[1]:"";var q=I89.exec(u);q=q!=null&&q.length>=2&&!Number.isNaN(Number(q[1]))?Number(q[1]):1;var M=Ay_.exec(u);M=M!=null&&M.length>=2?M[1]:"0";var C=P0(this.player.C().qP),t=g.eh(this.player.getVideoData(1).yl,!0);GVk(this,t,u,v===""?"":v,this.player.C(),this.player.getVideoData(1));v={splay:!1,lactMilliseconds:String(NA()),playerHeightPixels:Math.trunc(this.player.Un().Oq().height),playerWidthPixels:Math.trunc(this.player.Un().Oq().width),vis:Math.trunc(this.player.getVisibilityState()), signatureTimestamp:20153,autonavState:Wg(this.player.C())};if(X){X={};var E=this.player.C().A5;F2_(X,E?E.join(","):"")&&(v.mdxContext=X)}if(X=Ytc.includes(C)?void 0:g.c2("PREF")){E=X.split(RegExp("[:&]"));for(var G=0,x=E.length;G1&&J[1].toUpperCase()==="TRUE"){t.user.lockedSafetyMode=!0;break}}v.autoCaptionsDefaultOn=Od6(X)}u=ryJ.exec(u);(u=u!=null&&u.length>=2?u[1]:"")&&y&&(t.user.credentialTransferTokens= [{token:u,scope:"VIDEO"}]);u={contentPlaybackContext:v};v=this.player.getVideoData(1).getGetAdBreakContext();X=this.player.getVideoData(1).clientPlaybackNonce;E=L!==void 0?Math.round(L).toString():void 0;G=(f==null?0:f.context)?f.context:void 0;x=0;L&&b&&!f&&(b=b.end-b.start,b>0&&(x=Math.floor(b/1E3)));f=(f=Math.trunc((f?f.NB:x)*1E3))?String(f):void 0;b=this.player.SN()*1E3;b=Number.isNaN(b)?0:Math.trunc(b);z={adBlock:z,params:H,breakIndex:q,breakPositionMs:M,clientPlaybackNonce:X,topLevelDomain:C, isProxyAdTagRequest:Q,context:t,overridePlaybackContext:u,cueProcessedMs:E,videoId:y?y:void 0,liveTargetingParams:G,breakLengthMs:f,driftFromHeadMs:b?String(b):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:v?v:void 0};return a8v(this,z)};var s0J={Spl:"replaceUrlMacros",dKv:"onAboutThisAdPopupClosed",Qvh:"executeCommand"};UEA.prototype.We=function(){return"adPingingEndpoint"}; UEA.prototype.OW=function(Q,z,H){p1k(this.Vl.get(),Q,z,H)};cy_.prototype.We=function(){return"changeEngagementPanelVisibilityAction"}; cy_.prototype.OW=function(Q){this.K.F$("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:Q})};idn.prototype.We=function(){return"loggingUrls"}; idn.prototype.OW=function(Q,z,H){Q=g.n(Q);for(var f=Q.next();!f.done;f=Q.next())f=f.value,p1k(this.Vl.get(),f.baseUrl,z,H,f.attributionSrcMode)};g.p(W2A,g.h);g.p(VU,g.h);g.S=VU.prototype;g.S.addListener=function(Q){this.listeners.push(Q)}; g.S.removeListener=function(Q){this.listeners=this.listeners.filter(function(z){return z!==Q})}; g.S.cY=function(Q,z,H,f,b,L,u,X){if(Q==="")MZ("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(Q!==this.Z||H){this.Z=Q;this.K3.get().cY(Q,z,H,f,b,L,u,X);this.cI.get().cY(Q,z,H,f,b,L,u,X);var v;(v=this.u8)==null||v.get().cY(Q,z,H,f,b,L,u,X);this.B.cY(Q,z,H,f,b,L,u,X);v=g.n(this.listeners);for(var y=v.next();!y.done;y=v.next())y.value.cY(Q,z,H,f,b,L,u,X)}else MZ("Duplicate content video loaded signal")}; g.S.zQ=function(){this.Z&&this.Qa(this.Z)}; g.S.Qa=function(Q){this.Z=void 0;for(var z=g.n(this.listeners),H=z.next();!H.done;H=z.next())H.value.Qa(Q)};dQ.prototype.U3=function(Q,z,H,f,b){DEL(this);this.S=!z&&H===0;var L=this.K.getVideoData(1),u=this.K.getVideoData(2);L&&(this.contentCpn=L.clientPlaybackNonce,this.videoId=L.videoId,this.Z=L.j);u&&(this.adCpn=u.clientPlaybackNonce,this.adVideoId=u.videoId,this.adFormat=u.adFormat);this.D=Q;f<=0?(DEL(this),this.S=!z&&H===0):(this.actionType=this.S?z?"unknown_type":"video_to_ad":z?"ad_to_video":"ad_to_ad",this.videoStreamType=b?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& (this.L=!0,DA("_start",this.actionType)&&dEv(this)))}; dQ.prototype.reset=function(){return new dQ(this.K)};g.p(mL,g.h);mL.prototype.addCueRange=function(Q,z,H,f,b,L,u){L=L===void 0?3:L;u=u===void 0?1:u;this.Z.has(Q)?MZ("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:Q}):(Q=new mEA(Q,z,H,f,L),this.Z.set(Q.id,{VR:Q,listener:b,A_:u}),this.K.UZ([Q],u))}; mL.prototype.removeCueRange=function(Q){var z=this.Z.get(Q);z?(this.K.NG([z.VR],z.A_),this.Z.delete(z.VR.id)):MZ("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:Q})}; mL.prototype.onCueRangeEnter=function(Q){if(this.Z.has(Q.id))this.Z.get(Q.id).listener.onCueRangeEnter(Q.id)}; mL.prototype.onCueRangeExit=function(Q){if(this.Z.has(Q.id))this.Z.get(Q.id).listener.onCueRangeExit(Q.id)}; g.p(mEA,g.HD);wQ.prototype.hQ=function(Q){this.K.hQ(Q)}; wQ.prototype.Wn=function(Q){var z=g.A8.apply(1,arguments);Q==="onAdStart"||Q==="onAdEnd"?this.K.A$.apply(this.K,[Q].concat(g.F(z))):this.K.F$.apply(this.K,[Q].concat(g.F(z)))};kI.prototype.MB=function(Q){return Q&&TD(this)};var zbc=null;g.p(Qz6,g.Xp);Qz6.prototype.Yb=function(Q){return this.Z.hasOwnProperty(Q)?this.Z[Q].Yb():{}}; g.W_("ytads.bulleit.getVideoMetadata",function(Q){return le().Yb(Q)}); g.W_("ytads.bulleit.triggerExternalActivityEvent",function(Q,z,H){var f=le();H=RiY(H);H!==null&&f.publish(H,{queryId:Q,viewabilityString:z})});g.S=RP.prototype;g.S.IJ=function(Q,z){if(!this.Z.has(Q))return{};if(z==="seek"){z=!1;z=z===void 0?!1:z;var H=A5(Fg).A6(Q,{});H?Fq(H):z&&(Q=A5(Fg).tQ(null,k3(),!1,Q),Q.YF=3,e8A([Q]));return{}}z=fja(z);if(z===null)return{};var f=this.K.e5();if(!f)return{};var b=this.K.getPresentingPlayerType(!0);if((H=this.K.getVideoData(b))==null||!H.isAd())return{};H={opt_adElement:f,opt_fullscreen:this.K3.get().isFullscreen()};return el9(z,Q,H)}; g.S.mI=function(Q,z,H,f,b){this.Z.has(Q)&&(f<=0||b<=0||A5(Fg).mI(Q,z,H,f,b))}; g.S.T4=function(Q){var z;(z=this.Z.get(Q.queryId))==null||z.T4()}; g.S.Wk=function(Q){var z;(z=this.Z.get(Q.queryId))==null||z.Wk()}; g.S.UA=function(Q){var z;(z=this.Z.get(Q.queryId))==null||z.UA()}; g.S.tV=function(Q){var z;(z=this.Z.get(Q.queryId))==null||z.tV()}; g.S.RQ=function(Q){var z;(z=this.Z.get(Q.queryId))==null||z.RQ()};qGY.prototype.send=function(Q,z,H,f){try{MD9(this,Q,z,H,f===void 0?!1:f)}catch(b){}};g.p(Ciu,qGY);tDp.prototype.send=function(Q,z,H,f){var b=!1;try{if(f==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||f==="ATTRIBUTION_SRC_MODE_XHR_OPTION")b=!0,Q=g7L(Q);f=b;var L=Q.match(aR);if(L[1]==="https")var u=Q;else L[1]="https",u=re("https",L[2],L[3],L[4],L[5],L[6],L[7]);var X=qiL(u);L=[];var v=fRv(u)&&this.qc.get().K.C().experiments.Nc("add_auth_headers_to_remarketing_google_dot_com_ping");if(qn(u)||v)L.push({headerType:"USER_AUTH"}),L.push({headerType:"PLUS_PAGE_ID"}),L.push({headerType:"VISITOR_ID"}),L.push({headerType:"EOM_VISITOR_ID"}), L.push({headerType:"AUTH_USER"}),L.push({headerType:"DATASYNC_ID"});this.Z.send({baseUrl:u,scrubReferrer:X,headers:L},z,H,f)}catch(y){}};b7.prototype.kV=function(){return this.K.kV(1)};g.p(L0,g.h);g.S=L0.prototype;g.S.jN=function(){return this.K.getVideoData(1).clientPlaybackNonce}; g.S.addListener=function(Q){this.listeners.push(Q)}; g.S.removeListener=function(Q){this.listeners=this.listeners.filter(function(z){return z!==Q})}; g.S.cY=function(){this.Ay.clear();this.ou=null;this.eZ.get().clear()}; g.S.Qa=function(){}; g.S.syh=function(Q,z,H,f,b){z.videoId==="nPpU29QrbiU"&&this.K.On("ads_ssm_vdc_s",{pt:H,dvt:Q});ZO(this.qc.get())&&Q!=="dataloaded"||FOn(this,z,H);if(TD(this.qc.get())&&Q==="newdata"&&b!==void 0){Q=this.jN();var L=z.clientPlaybackNonce,u={};GR(this,"rte",(u.ec=L,u.xc=f==null?void 0:f.clientPlaybackNonce,u.tr=b,u.pt=H,u.ia=L!==Q,u.ctp=ZU(L),u));z=z.clientPlaybackNonce;f=f==null?void 0:f.clientPlaybackNonce;b=xhu(b);if(b!==1)if(f!==void 0)for(H=g.n(this.listeners),Q=H.next();!Q.done;Q=H.next())Q.value.Zw(f, z,b);else MZ("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:z,transitionReason:String(b)});b=g.n(this.listeners);for(f=b.next();!f.done;f=b.next())f.value.O_(z)}}; g.S.P23=function(Q,z){Q!==void 0&&(this.ou=Q,z===void 0?MZ("Expected ad video start time on SS video changed"):this.Ay.set(Q,z));var H=this.K.getPresentingPlayerType(!0),f=this.K.getVideoData(H);this.K.getVideoData(1).On("ads_ssvc",{pt:H,cpn:f==null?void 0:f.clientPlaybackNonce,crtt:this.K.getCurrentTime(1,!1),atlh:this.K.isAtLiveHead(),adstt:z});f?FOn(this,f,H):MZ("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.K.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:Q})}; g.S.g_=function(Q,z){var H=Q.author,f=Q.clientPlaybackNonce,b=Q.isListed,L=Q.Tq,u=Q.title,X=Q.Ts,v=Q.Qw,y=Q.isMdxPlayback,q=Q.ZK,M=Q.mdxEnvironment,C=Q.isAutonav,t=Q.D4,E=Q.Yn,G=Q.R4,x=Q.videoId||"",J=Q.profilePicture||"",I=Q.HG||"",r=Q.fq()||!1,U=Q.OZ()||!1;Q=Q.mH||void 0;L=this.eZ.get().Z.get(L)||{layoutId:null,slotId:null};var D=this.K.getVideoData(1),T=D.AZ();D=D.getPlayerResponse();z=1E3*this.K.getDuration(z);var k=1E3*this.K.getDuration(1),bL,SY,Q9=(D==null?void 0:(bL=D.playerConfig)==null? void 0:(SY=bL.daiConfig)==null?void 0:SY.enableDai)||!1,V,R;bL=(D==null?void 0:(V=D.playerConfig)==null?void 0:(R=V.daiConfig)==null?void 0:R.enablePreroll)||!1;return Object.assign({},L,{videoId:x,author:H,clientPlaybackNonce:f,Sf:z,Lq:k,daiEnabled:Q9,TT:bL,isListed:b,AZ:T,profilePicture:J,title:u,HG:I,Ts:X,Qw:v,mH:Q,isMdxPlayback:y,ZK:q,mdxEnvironment:M,isAutonav:C,D4:t,Yn:E,R4:G,fq:r,OZ:U})}; g.S.zv=function(){this.listeners.length=0;this.Y9=null;g.h.prototype.zv.call(this)};g.p(u7,g.h);g.S=u7.prototype;g.S.cY=function(){var Q=this;TD(this.qc.get())||(this.Z=EE(function(){Q.K.Sm()||Q.K.PS("ad",1)}))}; g.S.Qa=function(){}; g.S.addListener=function(Q){this.listeners.push(Q)}; g.S.removeListener=function(Q){this.listeners=this.listeners.filter(function(z){return z!==Q})}; g.S.Eo=function(){}; g.S.playVideo=function(){this.K.playVideo()}; g.S.pauseVideo=function(){this.K.pauseVideo()}; g.S.resumeVideo=function(Q){this.o4(Q)&&this.K.playVideo()}; g.S.o4=function(Q){return this.K.getPlayerState(Q)===2}; g.S.getCurrentTimeSec=function(Q,z,H){var f=this.cI.get().ou;if(Q===2&&!z&&f!==null)return oVv(this,f);mm(this.qc.get(),"html5_ssap_use_cpn_to_get_time")||(H=void 0);return H!==void 0?this.K.getCurrentTime(Q,z,H):this.K.getCurrentTime(Q,z)}; g.S.getVolume=function(){return this.K.getVolume()}; g.S.isMuted=function(){return this.K.isMuted()}; g.S.getPresentingPlayerType=function(){return this.K.getPresentingPlayerType(!0)}; g.S.getPlayerState=function(Q){return this.K.getPlayerState(Q)}; g.S.isFullscreen=function(){return this.K.isFullscreen()}; g.S.isAtLiveHead=function(){return this.K.isAtLiveHead()}; g.S.Pe=function(Q){this.K.Pe(Q)}; g.S.sBT=function(){var Q=this.K.getPresentingPlayerType(!0),z=this.getCurrentTimeSec(Q,!1);if(Q===2){Q=g.n(this.listeners);for(var H=Q.next();!H.done;H=Q.next())H.value.mS(z)}else if(Q===1)for(Q=g.n(this.XB),H=Q.next();!H.done;H=Q.next())H.value.Eo(z)}; g.S.lmm=function(Q){for(var z=g.n(this.listeners),H=z.next();!H.done;H=z.next())H.value.JN(Q,this.getPresentingPlayerType())}; g.S.onFullscreenToggled=function(Q){for(var z=g.n(this.listeners),H=z.next();!H.done;H=z.next())H.value.onFullscreenToggled(Q)}; g.S.onVolumeChange=function(){for(var Q=g.n(this.listeners),z=Q.next();!z.done;z=Q.next())z.value.onVolumeChange()}; g.S.jU=function(){for(var Q=this.K.isMinimized(),z=g.n(this.listeners),H=z.next();!H.done;H=z.next())H.value.jU(Q)}; g.S.Y3=function(Q){for(var z=g.n(this.listeners),H=z.next();!H.done;H=z.next())H.value.Y3(Q)}; g.S.tZ=function(){for(var Q=this.K.Un().Oq(),z=g.n(this.listeners),H=z.next();!H.done;H=z.next())H.value.FI(Q)}; g.S.mW=function(Q){for(var z=g.n(this.listeners),H=z.next();!H.done;H=z.next())H.value.mW(Q)}; g.S.vY=function(){for(var Q=g.n(this.listeners),z=Q.next();!z.done;z=Q.next())z.value.vY()};g.p(Ij8,g.h);g.p(q_,g.h);q_.prototype.zv=function(){this.Ov.Sm()||this.Ov.get().removeListener(this);g.h.prototype.zv.call(this)};M_.prototype.fetch=function(Q){var z=Q.ip;return this.Z.fetch(Q.YE,{cP:Q.cP===void 0?void 0:Q.cP,VR:z,cueProcessedMs:Q.cueProcessedMs===void 0?0:Q.cueProcessedMs}).then(function(H){return ARp(H,z)})};g.p(C0,g.h);g.S=C0.prototype;g.S.addListener=function(Q){this.listeners.push(Q)}; g.S.removeListener=function(Q){this.listeners=this.listeners.filter(function(z){return z!==Q})}; g.S.Xn=function(Q){YGv(this,Q,1)}; g.S.onAdUxClicked=function(Q,z){to(this,function(H){H.L2(Q,z)})}; g.S.m$=function(Q){to(this,function(z){z.Ob(Q)})}; g.S.VD=function(Q){to(this,function(z){z.HM(Q)})}; g.S.Prh=function(Q){to(this,function(z){z.Y1(Q)})};Ep.prototype.reduce=function(Q){switch(Q.event){case "unknown":return}var z=Q.identifier;var H=this.Z[z];H?z=H:(H={uy:null,mp:-Infinity},z=this.Z[z]=H);H=Q.startSecs+Q.Z/1E3;if(!(H=this.Z.startSecs&&H.startSecs<=this.Z.startSecs+this.Z.NB)){var f=void 0;if(eQ(this.qc.get())&&H.identifier!==((f=this.Z)==null?void 0:f.identifier)){var b=f=void 0,L=void 0,u=void 0;Q0(this.Vl.get(),"ocud","ccpi."+H.identifier+";ccpe."+H.event+";ccps."+H.startSecs+";\n ccpd."+H.NB+";pcpi."+((f=this.Z)==null?void 0:f.identifier)+";pcpe."+ ((b=this.Z)==null?void 0:b.event)+";\n pcps."+((L=this.Z)==null?void 0:L.startSecs)+";pcpd."+((u=this.Z)==null?void 0:u.NB)+";")}f=void 0;H.identifier!==((f=this.Z)==null?void 0:f.identifier)&&MZ("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.Z=H,B_J(this,H)}}; g.S.zv=function(){this.B!=null&&(this.B.unsubscribe("cuepointupdated",this.i_,this),this.B=null);this.listeners.length=0;this.F_.length=0;g.h.prototype.zv.call(this)};n0.prototype.addPlayerResponseForAssociation=function(Q){this.K.addPlayerResponseForAssociation(Q)};g.S=ZB.prototype;g.S.KU=function(Q,z,H,f,b,L,u){return this.K.KU(Q,z,H,f,b,L,u)}; g.S.Yw=function(Q,z){this.K.Yw(Q,z)}; g.S.To=function(Q,z,H){this.K.To(Q,z,H)}; g.S.dc=function(Q){this.K.dc(Q)}; g.S.wF=function(Q,z,H,f,b,L,u){this.K.wF(Q,z,H,f,b,L,u)}; g.S.U7=function(Q){return this.K.U7(Q)}; g.S.finishSegmentByCpn=function(Q,z,H){H=cRu(H);this.K.finishSegmentByCpn(Q,z,H)};g.p(hb9,g.h);g.p(WOp,g.h);g.p(DhL,g.h);g.p(KO_,g.h);g.p(VDp,g.h);g.p(mhA,g.h);mhA.prototype.L=function(){return this.B};g.p(w1Z,VR); w1Z.prototype.D=function(Q){var z=Q.content;if(z.componentType==="shopping-companion")switch(Q.actionType){case 1:case 2:Q=this.Z.getVideoData(1);this.Z.F$("updateKevlarOrC3Companion",{contentVideoId:Q&&Q.videoId,shoppingCompanionCarouselRenderer:z.renderer,layoutId:z.layoutId,macros:z.macros,onLayoutVisibleCallback:z.Z,interactionLoggingClientData:z.interactionLoggingClientData});break;case 3:this.Z.F$("updateKevlarOrC3Companion",{})}else if(z.componentType==="action-companion")switch(Q.actionType){case 1:case 2:Q=this.Z.getVideoData(1); this.Z.F$("updateKevlarOrC3Companion",{contentVideoId:Q&&Q.videoId,actionCompanionAdRenderer:z.renderer,layoutId:z.layoutId,macros:z.macros,onLayoutVisibleCallback:z.Z,interactionLoggingClientData:z.interactionLoggingClientData});break;case 3:z.renderer&&(z=this.Z.getVideoData(1),this.Z.F$("updateKevlarOrC3Companion",{contentVideoId:z&&z.videoId})),this.Z.F$("updateKevlarOrC3Companion",{})}else if(z.componentType==="image-companion")switch(Q.actionType){case 1:case 2:Q=this.Z.getVideoData(1);this.Z.F$("updateKevlarOrC3Companion", {contentVideoId:Q&&Q.videoId,imageCompanionAdRenderer:z.renderer,layoutId:z.layoutId,macros:z.macros,onLayoutVisibleCallback:z.Z,interactionLoggingClientData:z.interactionLoggingClientData});break;case 3:z=this.Z.getVideoData(1),this.Z.F$("updateKevlarOrC3Companion",{contentVideoId:z&&z.videoId}),this.Z.F$("updateKevlarOrC3Companion",{})}else if(z.componentType==="top-banner-image-text-icon-buttoned")switch(Q.actionType){case 1:case 2:Q=this.Z.getVideoData(1);this.Z.F$("updateKevlarOrC3Companion", {contentVideoId:Q&&Q.videoId,topBannerImageTextIconButtonedLayoutViewModel:z.renderer,layoutId:z.layoutId,macros:z.macros,onLayoutVisibleCallback:z.Z,interactionLoggingClientData:z.interactionLoggingClientData});break;case 3:z.renderer&&(z=this.Z.getVideoData(1),this.Z.F$("updateKevlarOrC3Companion",{contentVideoId:z&&z.videoId})),this.Z.F$("updateKevlarOrC3Companion",{})}else if(z.componentType==="banner-image")switch(Q.actionType){case 1:case 2:Q=this.Z.getVideoData(1);this.Z.F$("updateKevlarOrC3Companion", {contentVideoId:Q&&Q.videoId,bannerImageLayoutViewModel:z.renderer,layoutId:z.layoutId,macros:z.macros,onLayoutVisibleCallback:z.Z,interactionLoggingClientData:z.interactionLoggingClientData});break;case 3:z=this.Z.getVideoData(1),this.Z.F$("updateKevlarOrC3Companion",{contentVideoId:z&&z.videoId}),this.Z.F$("updateKevlarOrC3Companion",{})}else if(z.componentType==="ads-engagement-panel")switch(z=z.renderer,Q.actionType){case 1:case 2:this.Z.F$("updateEngagementPanelAction",z.addAction);this.Z.F$("changeEngagementPanelVisibility", z.expandAction);break;case 3:this.Z.F$("changeEngagementPanelVisibility",z.hideAction),this.Z.F$("updateEngagementPanelAction",z.removeAction)}else if(z.componentType==="ads-engagement-panel-layout"){var H=z.renderer;switch(Q.actionType){case 1:case 2:this.Z.F$("updateEngagementPanelAction",{action:iU(H.addAction),layoutId:z.layoutId,onLayoutVisibleCallback:z.Z,interactionLoggingClientData:z.interactionLoggingClientData});this.Z.F$("changeEngagementPanelVisibility",iU(H.expandAction));break;case 3:this.Z.F$("changeEngagementPanelVisibility", iU(H.hideAction)),this.Z.F$("updateEngagementPanelAction",{action:iU(H.removeAction)})}}};g.p(k$u,Rv);g.S=k$u.prototype;g.S.init=function(Q,z,H){Rv.prototype.init.call(this,Q,z,H);g.q2(this.L,"stroke-dasharray","0 "+this.B);this.L.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.j.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.D.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; g.S.clear=function(){this.hide()}; g.S.hide=function(){zS(this);Rv.prototype.hide.call(this)}; g.S.show=function(){Q_(this);Rv.prototype.show.call(this)}; g.S.Is=function(){this.hide()}; g.S.ND=function(){if(this.Z){var Q=this.Z.getProgressState();Q!=null&&Q.current!=null&&g.q2(this.L,"stroke-dasharray",Q.current/Q.seekableEnd*this.B+" "+this.B)}};g.p(T_J,tB);g.S=T_J.prototype; g.S.init=function(Q,z,H){tB.prototype.init.call(this,Q,z,H);if(z.image&&z.image.thumbnail)if(z.headline)if(z.description)if(z.backgroundImage&&z.backgroundImage.thumbnail)if(z.actionButton&&g.K(z.actionButton,g.Bc))if(Q=z.durationMilliseconds||0,typeof Q!=="number"||Q<=0)g.BT(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+Q));else if(z.navigationEndpoint){var f=this.api.getVideoData(2);if(f!=null){var b=z.image.thumbnail.thumbnails;b!=null&& b.length>0&&g.j5(g.R$(b[0].url))&&(b[0].url=f.profilePicture,g.j5(g.R$(f.profilePicture))&&XM8("VideoPlayer",239976093,"Expected non-empty profile picture."));b=z.backgroundImage.thumbnail.thumbnails;b!=null&&b.length>0&&g.j5(g.R$(b[0].url))&&(b[0].url=f.MP());b=z.headline;b!=null&&g.j5(g.R$(b.text))&&(b.text=f.author)}this.U.init(uI("ad-image"),z.image,H);this.j.init(uI("ad-text"),z.headline,H);this.L.init(uI("ad-text"),z.description,H);this.iT.init(uI("ad-image"),z.backgroundImage,H);f=["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.j.element.classList.add("ytp-ad-action-interstitial-headline-light");this.L.element.classList.add("ytp-ad-action-interstitial-description-light");f.push("ytp-ad-action-interstitial-action-button-dark");this.api.C().B&&(f.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),f.push("ytp-ad-action-interstitial-action-button-dark"));this.api.C().V("enable_unified_action_endcap_on_web")&& !this.api.C().B&&(f.push("ytp-ad-action-interstitial-action-button-unified"),this.C3.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.U.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.WI.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.dV.classList.add("ytp-ad-action-interstitial-card-unified"),this.wh.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.L.element.classList.add("ytp-ad-action-interstitial-description-unified"), this.yl.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.j.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.jm.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.mq.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new sc(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,f);g.W(this,this.actionButton);this.actionButton.Gv(this.C3); this.actionButton.init(uI("button"),g.K(z.actionButton,g.Bc),H);K5(this.actionButton.element);f=ms(this.actionButton.element);dN(this.actionButton.element,f+" This link opens in new tab");this.navigationEndpoint=z.navigationEndpoint;this.D.X(this.jm,"click",this.H4,this);this.D.X(this.wh,"click",this.H4,this);!this.api.C().V("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.C().B||this.D.X(this.yl,"click",this.H4,this);this.Z=this.uP?new jh(this.api,Q):new FS(Q);g.W(this,this.Z);if(z.skipButton){(Q= g.K(z.skipButton,wuR))&&this.Z&&(this.skipButton=new pp(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,this.Z,this.EH),g.W(this,this.skipButton),this.skipButton.Gv(this.element),this.skipButton.init(uI("skip-button"),Q,H));if(H=z.adBadgeRenderer)if(H=g.K(H,msu))Q=new GS(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,!0,!0),Q.Gv(this.mq),Q.init(uI("simple-ad-badge"),H,this.macros),g.W(this,Q);if(H=z.adInfoRenderer)if(H=g.K(H,rg))Q=new T8(this.api,this.layoutId,this.interactionLoggingClientData, this.dh,this.element,void 0,!0),Q.Gv(this.mq),Q.init(uI("ad-info-hover-text-button"),H,this.macros),g.W(this,Q)}else z.nonskippableOverlayRenderer&&(Q=g.K(z.nonskippableOverlayRenderer,sy))&&this.Z&&(this.B=new bA(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,this.Z,!1),g.W(this,this.B),this.B.Gv(this.element),this.B.init(uI("ad-preview"),Q,H));z.countdownRenderer&&(z=z.countdownRenderer,g.K(z,kYs)&&this.Z&&(H=new k$u(this.api,this.layoutId,this.interactionLoggingClientData,this.dh, this.Z),g.W(this,H),H.Gv(this.element),H.init(uI("timed-pie-countdown"),g.K(z,kYs),this.macros)));this.show();this.element.focus()}else g.BT(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.BT(Error("AdActionInterstitialRenderer has no button."));else g.BT(Error("AdActionInterstitialRenderer has no background AdImage."));else g.BT(Error("AdActionInterstitialRenderer has no description AdText."));else g.BT(Error("AdActionInterstitialRenderer has no headline AdText."));else g.BT(Error("AdActionInterstitialRenderer has no image."))}; g.S.clear=function(){g.Aq(this.D);this.hide()}; g.S.show=function(){ebc(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.B&&this.B.show();tB.prototype.show.call(this)}; g.S.hide=function(){ebc(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.B&&this.B.hide();tB.prototype.hide.call(this)}; g.S.H4=function(){this.navigationEndpoint&&(this.layoutId?this.dh.executeCommand(this.navigationEndpoint,this.layoutId):g.BT(Error("Missing layoutId for ad action interstitial.")))};var HbZ={iconType:"CLOSE"},Fl=new g.pC(320,63);g.p(zD_,tB);g.S=zD_.prototype; g.S.init=function(Q,z,H){tB.prototype.init.call(this,Q,z,H);this.D=z;this.U=g.Qi(this.D.onClickCommands||[]);this.mq=this.D.onErrorCommand||null;if(Q=this.D.contentSupportedRenderer)Q=this.D.contentSupportedRenderer,z=this.D.adInfoRenderer||null,g.K(Q,KBm)?(this.j=g.T2("ytp-ad-overlay-ad-info-button-container",this.L.element),fGZ(this,z),Q=LKY(this,g.K(Q,KBm))):g.K(Q,V5x)?(this.j=g.T2("ytp-ad-overlay-ad-info-button-container",this.B.element),fGZ(this,z),Q=uHp(this,g.K(Q,V5x))):g.K(Q,dss)?(this.j= g.T2("ytp-ad-overlay-ad-info-button-container",this.Z.element),fGZ(this,z),Q=S__(this,g.K(Q,dss))):(g.BT(Error("InvideoOverlayAdRenderer content could not be initialized.")),Q=!1);Q&&(this.show(),Xdv(this,!0))}; g.S.clear=function(){Xdv(this,!1);this.jm.reset();this.wh=0;this.L.hide();this.logVisibility(this.L.element,!1);this.B.hide();this.logVisibility(this.B.element,!1);this.Z.hide();this.logVisibility(this.Z.element,!1);this.hide();this.dispose()}; g.S.l6j=function(){this.C3&&(this.layoutId?this.dh.executeCommand(this.C3,this.layoutId):g.BT(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.S.BL=function(){a:{if(this.D&&this.D.closeButton&&this.D.closeButton.buttonRenderer){var Q=this.D.closeButton.buttonRenderer;if(Q.serviceEndpoint){Q=[Q.serviceEndpoint];break a}}Q=[]}Q=g.n(Q);for(var z=Q.next();!z.done;z=Q.next())z=z.value,this.layoutId?this.dh.executeCommand(z,this.layoutId):g.BT(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; g.S.Z5j=function(){this.iT||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.S.O5=function(){this.iT||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.O5("invideo-overlay")}; g.S.woh=function(Q){Q.target===this.j&&g.T2("ytp-ad-button",this.WI.element).click()};g.p(vup,Rv);g.S=vup.prototype;g.S.init=function(Q,z,H){Rv.prototype.init.call(this,Q,z,H);Q=z.durationMs;this.L=Q==null||Q===0?0:Q+this.Z.getProgressState().current*1E3;if(z.text)var f=z.text.templatedAdText;else z.staticMessage&&(f=z.staticMessage);this.messageText.init(uI("ad-text"),f,H);this.messageText.Gv(this.B.element);this.D.show(100);this.show()}; g.S.clear=function(){this.hide()}; g.S.hide=function(){yWp(this,!1);Rv.prototype.hide.call(this);this.B.hide();this.messageText.hide();zS(this)}; g.S.show=function(){yWp(this,!0);Rv.prototype.show.call(this);Q_(this);this.B.show();this.messageText.show()}; g.S.Is=function(){this.hide()}; g.S.ND=function(){if(this.Z!=null){var Q=this.Z.getProgressState();Q!=null&&Q.current!=null&&(Q=1E3*Q.current,!this.wh&&Q>=this.L?(this.D.hide(),this.wh=!0):this.messageText&&this.messageText.isTemplated()&&(Q=Math.max(0,Math.ceil((this.L-Q)/1E3)),Q!==this.j&&(lI(this.messageText,{TIME_REMAINING:String(Q)}),this.j=Q)))}};g.p(q_v,tB);g.S=q_v.prototype; g.S.init=function(Q,z,H){tB.prototype.init.call(this,Q,z,{});z.image&&z.image.thumbnail?z.headline?z.description?z.actionButton&&g.K(z.actionButton,g.Bc)?(this.L.init(uI("ad-image"),z.image,H),this.B.init(uI("ad-text"),z.headline,H),this.D.init(uI("ad-text"),z.description,H),Q=["ytp-ad-underlay-action-button"],this.api.C().V("use_blue_buttons_for_desktop_player_underlay")&&Q.push("ytp-ad-underlay-action-button-blue"),this.actionButton=new sc(this.api,this.layoutId,this.interactionLoggingClientData,this.dh, Q),z.backgroundColor&&g.q2(this.element,"background-color",g.iA(z.backgroundColor)),g.W(this,this.actionButton),this.actionButton.Gv(this.j),this.actionButton.init(uI("button"),g.K(z.actionButton,g.Bc),H),z=g.qf(this.api.C().experiments,"player_underlay_video_width_fraction"),this.api.C().V("place_shrunken_video_on_left_of_player")?(H=this.Z,g.vO(H,"ytp-ad-underlay-left-container"),g.SK(H,"ytp-ad-underlay-right-container"),g.q2(this.Z,"margin-left",Math.round((z+.02)*100)+"%")):(H=this.Z,g.vO(H,"ytp-ad-underlay-right-container"), g.SK(H,"ytp-ad-underlay-left-container")),g.q2(this.Z,"width",Math.round((1-z-.04)*100)+"%"),this.api.Fv()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.aY.bind(this)),this.api.addEventListener("resize",this.Ls.bind(this))):g.BT(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.BT(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.BT(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.BT(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.S.show=function(){Mqp(!0);this.actionButton&&this.actionButton.show();tB.prototype.show.call(this)}; g.S.hide=function(){Mqp(!1);this.actionButton&&this.actionButton.hide();tB.prototype.hide.call(this)}; g.S.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.aY.bind(this));this.api.removeEventListener("resize",this.Ls.bind(this));this.hide()}; g.S.onClick=function(Q){tB.prototype.onClick.call(this,Q);this.actionButton&&g.XU(this.actionButton.element,Q.target)&&this.api.pauseVideo()}; g.S.aY=function(Q){Q==="transitioning"?(this.Z.classList.remove("ytp-ad-underlay-clickable"),this.show()):Q==="visible"?this.Z.classList.add("ytp-ad-underlay-clickable"):Q==="hidden"&&(this.hide(),this.Z.classList.remove("ytp-ad-underlay-clickable"))}; g.S.Ls=function(Q){Q.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):Q.width>875?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-medium"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large")):(this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")); g.q2(this.B.element,"font-size",Q.width/40+"px")};g.p(x5,tB); x5.prototype.init=function(Q,z,H){tB.prototype.init.call(this,Q,z,H);z.toggledLoggingParams&&(this.toggledLoggingParams=z.toggledLoggingParams);z.answer&&g.K(z.answer,g.Bc)?(Q=new sc(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),Q.Gv(this.answer),Q.init(uI("ytp-ad-survey-answer-button"),g.K(z.answer,g.Bc),H),Q.show()):z.answer&&g.K(z.answer,Go)&&(this.Z=new Dv(this.api,this.layoutId,this.interactionLoggingClientData,this.dh, ["ytp-ad-survey-answer-toggle-button"]),this.Z.Gv(this.answer),g.W(this,this.Z),this.Z.init(uI("survey-answer-button"),g.K(z.answer,Go),H));this.show()}; x5.prototype.xi=function(Q){this.layoutId?KN(this.dh,Q,this.layoutId,this.macros):g.BT(new g.wD("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))}; x5.prototype.onClick=function(Q){tB.prototype.onClick.call(this,Q);if(this.api.C().V("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; x5.prototype.clear=function(){this.hide()};g.p(CPA,tB);CPA.prototype.init=function(Q,z,H){tB.prototype.init.call(this,Q,z,H);z.answer&&g.K(z.answer,Go)&&(this.button=new Dv(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.Gv(this.Z),this.button.init(uI("survey-none-of-the-above-button"),g.K(z.answer,Go),H));this.show()};g.p(Op,sc);Op.prototype.init=function(Q,z,H){sc.prototype.init.call(this,Q,z,H);Q=!1;z.text&&(z=g.pa(z.text),Q=!g.j5(z));Q||g.PT(Error("No submit text was present in the renderer."))}; Op.prototype.onClick=function(Q){this.publish("l");sc.prototype.onClick.call(this,Q)};g.p(o5,tB); o5.prototype.init=function(Q,z,H){tB.prototype.init.call(this,Q,z,H);if(Q=z.skipOrPreviewRenderer)g.K(Q,bB)?(Q=g.K(Q,bB),H=new gU(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,this.D,!0),H.Gv(this.skipOrPreview),H.init(uI("skip-button"),Q,this.macros),g.W(this,H),this.Z=H):g.K(Q,sy)&&(Q=g.K(Q,sy),H=new bA(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,this.D,!1),H.Gv(this.skipOrPreview),H.init(uI("ad-preview"),Q,this.macros),H.wh.show(100),H.show(),g.W(this,H), this.Z=H);this.Z==null&&g.BT(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(z)));z.submitButton&&(Q=z.submitButton,g.K(Q,g.Bc)&&(Q=g.K(Q,g.Bc),H=new Op(this.api,this.layoutId,this.interactionLoggingClientData,this.dh),H.Gv(this.submitButton),H.init(uI("survey-submit"),Q,this.macros),g.W(this,H),this.B=H));if(Q=z.adBadgeRenderer)Q=g.K(Q,msu),H=new GS(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,!0,!0,!0),H.Gv(this.L),H.init(uI("simple-ad-badge"), Q,this.macros),this.adBadge=H.element,g.W(this,H);if(Q=z.adDurationRemaining)Q=g.K(Q,hmB),H=new oQ(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,this.D,void 0,!0),H.Gv(this.L),H.init(uI("ad-duration-remaining"),Q,this.macros),g.W(this,H);(z=z.adInfoRenderer)&&g.K(z,rg)&&(Q=new T8(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,this.element,void 0,!0),g.W(this,Q),this.adBadge!==void 0?this.L.insertBefore(Q.element,this.adBadge.nextSibling):Q.Gv(this.L),Q.init(uI("ad-info-hover-text-button"), g.K(z,rg),this.macros));this.show()}; o5.prototype.clear=function(){this.hide()};g.p(Jo,tB);Jo.prototype.init=function(Q,z,H){tB.prototype.init.call(this,Q,z,H);guJ(this)}; Jo.prototype.show=function(){this.L=Date.now();tB.prototype.show.call(this)}; Jo.prototype.T_=function(){};g.p(Zba,Jo);g.S=Zba.prototype;g.S.init=function(Q,z,H){var f=this;Jo.prototype.init.call(this,Q,z,H);z.questionText&&tqn(this,z.questionText);z.answers&&z.answers.forEach(function(b,L){g.K(b,gx)&&Eun(f,g.K(b,gx),H,L)}); this.j=new Set(this.B.map(function(b){return b.Z.Z})); (Q=z.noneOfTheAbove)&&(Q=g.K(Q,Dss))&&GPp(this,Q,H);z.surveyAdQuestionCommon&&nu6(this,z.surveyAdQuestionCommon);z.submitEndpoints&&(this.submitEndpoints=z.submitEndpoints);this.X(this.element,"change",this.onChange);this.show()}; g.S.T_=function(){$yZ(this,!1);this.D.B.subscribe("l",this.K4h,this)}; g.S.onChange=function(Q){Q.target===this.noneOfTheAbove.button.Z?jB8(this):this.j.has(Q.target)&&(this.noneOfTheAbove.button.toggleButton(!1),$yZ(this,!0))}; g.S.K4h=function(){var Q=[],z=this.B.reduce(function(b,L,u){var X=L.toggledLoggingParams;L.Z&&L.Z.isToggled()&&X&&(b.push(X),Q.push(u));return b},[]).join("&"),H=this.submitEndpoints.map(function(b){if(!b.loggingUrls)return b; b=g.P3(b);b.loggingUrls=b.loggingUrls.map(function(L){L.baseUrl&&(L.baseUrl=de(L.baseUrl,z));return L}); return b}); if(H){H=g.n(H);for(var f=H.next();!f.done;f=H.next())f=f.value,this.layoutId?KN(this.dh,f,this.layoutId,this.macros):g.BT(Error("Missing layoutId for multi_select_question."))}this.api.C().V("supports_multi_step_on_desktop")&&this.wh(Q)}; g.S.clear=function(){this.api.C().V("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.p(N_,Jo);N_.prototype.init=function(Q,z,H){var f=this;Jo.prototype.init.call(this,Q,z,H);z.questionText&&tqn(this,z.questionText);z.answers&&z.answers.forEach(function(b,L){g.K(b,gx)&&Eun(f,g.K(b,gx),H,L)}); z.surveyAdQuestionCommon?nu6(this,z.surveyAdQuestionCommon):g.BT(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(z)));this.show()}; N_.prototype.clear=function(){this.api.C().V("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.p(I5,tB);I5.prototype.init=function(Q,z,H){var f=this;tB.prototype.init.call(this,Q,z,H);if(this.api.C().V("supports_multi_step_on_desktop")){var b;this.conditioningRules=(b=z.conditioningRules)!=null?b:[];var L;this.B=(L=z.questions)!=null?L:[];var u;((u=z.questions)==null?0:u.length)&&ouv(this,0)}else(z.questions||[]).forEach(function(X){g.K(X,AA)?xyJ(f,g.K(X,AA),H):g.K(X,IV)&&Ob6(f,g.K(X,IV),H)}); this.show()}; I5.prototype.clear=function(){this.api.C().V("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; I5.prototype.D=function(Q){var z=this;if(this.api.C().V("supports_multi_step_on_desktop")){var H;if((H=this.conditioningRules)==null?0:H.length){var f;if(Q.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(b){return b.questionIndex===z.Z})==null)g.BT(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(function(b){if(b.questionIndex===z.Z)switch(b.condition){case "CONDITION_ALL_OF":var L;if((L=b.answerIndices)==null?0:L.every(function(X){return Q.includes(X)}))f=b.nextQuestionIndex; break;case "CONDITION_ANY_OF":var u;if((u=b.answerIndices)==null?0:u.some(function(X){return Q.includes(X)}))f=b.nextQuestionIndex; break;default:g.BT(Error("Expected specified condition in survey conditioning rules."))}}),f!=null)ouv(this,f); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.BT(Error("No conditioning rules, yet survey is multi step. Expected questions.length to be 1.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}};g.p(Ao,tB); Ao.prototype.init=function(Q,z,H){var f=this;tB.prototype.init.call(this,Q,z,H);Q=z.timeoutSeconds||0;if(typeof Q!=="number"||Q<0)g.BT(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+Q));else if(z.timeoutCommands)if(z.text)if(z.ctaButton&&g.K(z.ctaButton,g.Bc))if(z.brandImage)if(z.backgroundImage&&g.K(z.backgroundImage,Pc)&&g.K(z.backgroundImage,Pc).landscape){this.layoutId||g.BT(Error("Missing layoutId for survey interstitial."));JWk(this.interstitial,g.K(z.backgroundImage, Pc).landscape);JWk(this.logoImage,z.brandImage);g.vx(this.text,g.pa(z.text));var b=["ytp-ad-survey-interstitial-action-button"];b.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new sc(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,b);g.W(this,this.actionButton);this.actionButton.Gv(this.B);this.actionButton.init(uI("button"),g.K(z.ctaButton,g.Bc),H);this.actionButton.show();this.Z=new jh(this.api,Q*1E3);this.Z.subscribe("g",function(){f.transition.hide()}); g.W(this,this.Z);this.X(this.element,"click",function(L){var u=L.target===f.interstitial;L=f.actionButton.element.contains(L.target);if(u||L)if(f.transition.hide(),u)f.api.onAdUxClicked(f.componentType,f.layoutId)}); this.transition.show(100)}else g.BT(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.BT(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.BT(Error("SurveyTextInterstitialRenderer has no button."));else g.BT(Error("SurveyTextInterstitialRenderer has no text."));else g.BT(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; Ao.prototype.clear=function(){this.hide()}; Ao.prototype.show=function(){NOv(!0);tB.prototype.show.call(this)}; Ao.prototype.hide=function(){NOv(!1);tB.prototype.hide.call(this)};g.p(Y5,Rv);g.S=Y5.prototype; g.S.init=function(Q,z){Rv.prototype.init.call(this,Q,z,{});if(z.durationMilliseconds){if(z.durationMilliseconds<0){g.BT(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+z.durationMilliseconds));return}this.B=z.durationMilliseconds}else this.B=this.Z.Uk();var H;if((H=z.previewText)==null||!H.text||g.j5(z.previewText.text))g.BT(Error("No text is returned for AdPreview."));else{this.j=z.previewText;z.previewText.isTemplated||g.vx(this.L,z.previewText.text);var f; if(((f=this.api.getVideoData(1))==null?0:f.Pl)&&z.previewImage){var b,L;(Q=((L=Ol(((b=z.previewImage)==null?void 0:b.sources)||[],52,!1))==null?void 0:L.url)||"")&&Q.length?(this.previewImage=new g.Ca({G:"img",J:"ytp-preview-ad__image",T:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",Q),g.W(this,this.previewImage),this.previewImage.Gv(this.element)):g.BT(Error("Failed to get imageUrl in AdPreview."))}else this.L.classList.add("ytp-preview-ad__text--padding--wide")}}; g.S.clear=function(){this.hide()}; g.S.hide=function(){zS(this);Rv.prototype.hide.call(this)}; g.S.show=function(){Q_(this);Rv.prototype.show.call(this)}; g.S.Is=function(){this.hide()}; g.S.ND=function(){if(this.Z){var Q=this.Z.getProgressState();if(Q!=null&&Q.current)if(Q=1E3*Q.current,Q>=this.B)this.transition.hide();else{var z;if((z=this.j)==null?0:z.isTemplated)if(z=Math.max(0,Math.ceil((this.B-Q)/1E3)),z!==this.D){var H,f;(Q=(H=this.j)==null?void 0:(f=H.text)==null?void 0:f.replace("{TIME_REMAINING}",String(z)))&&g.vx(this.L,Q);this.D=z}}}};g.p(ru,tB); ru.prototype.init=function(Q,z){tB.prototype.init.call(this,Q,z,{});var H,f;if((Q=((f=Ol(((H=z.image)==null?void 0:H.sources)||[],IGA(z),!0))==null?void 0:f.url)||"")&&Q.length){H=this.Mc("ytp-ad-avatar");H.src=Q;var b,L;if(f=(b=z.interaction)==null?void 0:(L=b.accessibility)==null?void 0:L.label)H.alt=f;switch(z.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(z.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.BT(Error("Failed to get imageUrl in AdAvatar."))}; ru.prototype.clear=function(){this.hide()}; ru.prototype.onClick=function(Q){tB.prototype.onClick.call(this,Q)};g.p(sp,tB); sp.prototype.init=function(Q,z){tB.prototype.init.call(this,Q,z,{});var H;Q=(H=z.label)==null?void 0:H.content;if((H=Q!=null&&!g.j5(Q))||z.iconImage){H&&(this.buttonText=new g.Ca({G:"span",J:"ytp-ad-button-vm__text",BI:Q}),g.W(this,this.buttonText),this.buttonText.Gv(this.element));var f,b,L=((f=z.interaction)==null?0:(b=f.accessibility)==null?0:b.label)||H?Q:"";L&&dN(this.element,L+" This link opens in new tab");K5(this.element);if(z.iconImage){f=void 0;if(z.iconImage){a:{b=z.iconImage;if(b.sources)for(b= g.n(b.sources),Q=b.next();!Q.done;Q=b.next())if(Q=Q.value,L=void 0,(L=Q.clientResource)==null?0:L.imageName){b=Q;break a}b=void 0}if(b){var u;f={iconType:(u=b.clientResource)==null?void 0:u.imageName}}}u=rs(f,!1,this.B);u!=null&&(this.buttonIcon=new g.Ca({G:"span",J:"ytp-ad-button-vm__icon",W:[u]}),g.W(this,this.buttonIcon),z.iconLeading?(uT(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):H?(this.buttonIcon.Gv(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): (this.buttonIcon.Gv(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(z.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.Z?"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(z.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.PT(Error("AdButton does not have label or an icon."))}; sp.prototype.clear=function(){this.hide()}; sp.prototype.onClick=function(Q){tB.prototype.onClick.call(this,Q)};g.p(AWa,Rv);g.S=AWa.prototype; g.S.init=function(Q,z){Rv.prototype.init.call(this,Q,z,{});this.api.C().V("enable_larger_flyout_cta_on_desktop")&&(this.element.classList.add("ytp-ad-avatar-lockup-card--large"),this.Mc("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"),uT(this.Mc("ytp-ad-avatar-lockup-card__avatar_and_text_container"),this.adAvatar.element,0));if(Q=g.K(z.avatar,DB)){var H=z.headline;if(H){var f=z.description;if(f){var b=g.K(z.button,VB);b?(this.adAvatar.init(uI("ad-avatar"),Q),this.headline.init(uI("ad-simple-attributed-string"),new NZ(H)),this.description.init(uI("ad-simple-attributed-string"),new NZ(f)),H.content&&H.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"), this.adButton.init(uI("ad-button"),b),this.startMilliseconds=z.startMs||0,this.api.Fv()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.kT.bind(this)),Q_(this)):g.BT(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.BT(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.BT(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.BT(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; g.S.ND=function(){if(this.Z){var Q=this.Z.getProgressState();Q&&Q.current&&1E3*Q.current>=this.startMilliseconds&&(zS(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.S.Is=function(){this.clear()}; g.S.onClick=function(Q){this.api.pauseVideo();Rv.prototype.onClick.call(this,Q)}; g.S.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.kT.bind(this))}; g.S.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();Rv.prototype.show.call(this)}; g.S.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();Rv.prototype.hide.call(this)}; g.S.kT=function(Q){Q==="hidden"?this.show():this.hide()};g.p(By,tB);g.S=By.prototype; g.S.init=function(Q,z){tB.prototype.init.call(this,Q,z,{});if(!z.label||g.j5(z.label))g.BT(Error("No label is returned for SkipAdButton."));else if(g.vx(this.D,z.label),Q=rs({iconType:"SKIP_NEXT_NEW"}),Q==null)g.BT(Error("Unable to retrieve icon for SkipAdButton"));else if(this.L=new g.Ca({G:"span",J:"ytp-skip-ad-button__icon",W:[Q]}),g.W(this,this.L),this.L.Gv(this.element),this.api.C().experiments.Nc("enable_skip_to_next_messaging")&&(z=g.R$(z.targetId)))this.B=!0,this.element.setAttribute("data-tooltip-target-id",z), this.element.setAttribute("data-tooltip-target-fixed","")}; g.S.onClick=function(Q){Q&&Q.preventDefault();var z,H;Lu6(Q,{contentCpn:(H=(z=this.api.getVideoData(1))==null?void 0:z.clientPlaybackNonce)!=null?H:""})===0?this.api.F$("onAbnormalityDetected"):(tB.prototype.onClick.call(this,Q),this.api.F$("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; g.S.clear=function(){this.Z.reset();this.hide()}; g.S.hide=function(){tB.prototype.hide.call(this)}; g.S.show=function(){this.Z.start();tB.prototype.show.call(this);this.B&&this.api.C().experiments.Nc("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.p(Y_c,Rv);g.S=Y_c.prototype; g.S.init=function(Q,z){Rv.prototype.init.call(this,Q,z,{});Q=g.K(z.preskipState,Hrs);var H;if((H=this.api.getVideoData())==null?0:H.isDaiEnabled()){if(!Q){g.BT(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.B=new Y5(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,this.Z);g.W(this,this.B);this.B.Gv(this.element);var f;(f=this.B)==null||f.init(uI("preview-ad"),Q);(H=this.B)!=null&&(H.transition.show(100),H.show())}(H=g.K(z.skippableState,brm))?(z.skipOffsetMilliseconds!= null?this.skipOffsetMilliseconds=z.skipOffsetMilliseconds:(g.PT(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.L.init(uI("skip-button"),H),this.show()):g.BT(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; g.S.show=function(){Q_(this);Rv.prototype.show.call(this)}; g.S.hide=function(){!this.isSkippable&&this.B?this.B.hide():this.L&&this.L.hide();zS(this);Rv.prototype.hide.call(this)}; g.S.clear=function(){var Q;(Q=this.B)==null||Q.clear();this.L&&this.L.clear();zS(this);Rv.prototype.hide.call(this)}; g.S.Is=function(){this.hide()}; g.S.ND=function(){if(1E3*this.Z.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var Q;(Q=this.B)!=null&&Q.transition.hide();(Q=this.L)!=null&&(Q.transition.show(),Q.show())}};g.p(Py,tB); Py.prototype.init=function(Q,z){tB.prototype.init.call(this,Q,z,{});if(z.label){var H;((H=z.label)==null?0:H.content)&&!g.j5(z.label.content)&&(this.linkText=new g.Ca({G:"span",J:"ytp-visit-advertiser-link__text",BI:z.label.content}),g.W(this,this.linkText),this.linkText.Gv(this.element));var f,b;if((f=z.interaction)==null?0:(b=f.accessibility)==null?0:b.label)dN(this.element,z.interaction.accessibility.label+" This link opens in new tab");else{var L;((L=z.label)==null?0:L.content)&&!g.j5(z.label.content)&&dN(this.element, z.label.content+" This link opens in new tab")}K5(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.BT(Error("No label found in VisitAdvertiserLink."))}; Py.prototype.onClick=function(Q){tB.prototype.onClick.call(this,Q);this.api.onAdUxClicked(this.componentType,this.layoutId)}; Py.prototype.clear=function(){this.hide()};g.p(a5,tB); a5.prototype.init=function(Q,z,H,f){tB.prototype.init.call(this,Q,z,{});if(z.skipOrPreview){H=z.skipOrPreview;Q=g.K(H,Lzs);H=g.K(H,Hrs);if(Q)this.UT=new Y_c(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,this.L),g.W(this,this.UT),this.UT.Gv(this.wh),this.UT.init(uI("skip-ad"),Q);else{var b;H&&((b=this.api.getVideoData())==null?0:b.isDaiEnabled())&&(this.j=new Y5(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,this.L,1),g.W(this,this.j),this.j.Gv(this.wh),this.j.init(uI("ad-preview"), H),b=this.j,b.transition.show(100),b.show())}if(b=g.K(z.skipOrPreview,Lzs))var L=b.skipOffsetMilliseconds}z.playerAdCard&&(b=g.K(z.playerAdCard,f3T))&&(this.playerAdCard=new AWa(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,this.L),g.W(this,this.playerAdCard),this.playerAdCard.Gv(this.jm),this.playerAdCard.init(uI("ad-avatar-lockup-card"),b));b=this.api.C().V("disable_ad_duration_remaining_for_instream_video_ads")||z.adPodIndex!==void 0;z.adBadgeRenderer&&((Q=g.K(z.adBadgeRenderer, K0))?(this.B=new AT(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,b),g.W(this,this.B),this.api.C().V("delhi_modern_web_player")?this.B.Gv(this.D):this.B.Gv(this.Z),this.B.init(uI("ad-badge"),Q)):g.BT(Error("AdBadgeViewModel is not found in player overlay layout.")));z.adPodIndex&&(Q=g.K(z.adPodIndex,lLx))&&(this.adPodIndex=new YU(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,g.K(z.skipOrPreview,Lzs)===void 0),g.W(this,this.adPodIndex),this.api.C().V("delhi_modern_web_player")? this.adPodIndex.Gv(this.D):this.adPodIndex.Gv(this.Z),this.adPodIndex.init(uI("ad-pod-index"),Q));if(z.adInfoRenderer&&(Q=g.K(z.adInfoRenderer,rg))){this.adInfoButton=new T8(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,this.element,void 0,b);g.W(this,this.adInfoButton);H=(this.api.C().V("delhi_modern_web_player")||this.api.C().V("enable_ad_pod_index_autohide"))&&this.B!==void 0;var u=this.api.C().V("delhi_modern_web_player")?this.D:this.Z;H?u.insertBefore(this.adInfoButton.element, this.B.element.nextSibling):this.adInfoButton.Gv(u);this.adInfoButton.init(uI("ad-info-hover-text-button"),Q,this.macros)}var X;Q=this.api.C().V("clean_player_style_fix_on_web")&&((X=this.api.getVideoData())==null?void 0:X.isDaiEnabled());z.adDurationRemaining&&(!b||Q)&&(X=g.K(z.adDurationRemaining,hmB))&&(this.adDurationRemaining=new oQ(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,this.L,f.videoAdDurationSeconds,b),g.W(this,this.adDurationRemaining),f=this.api.C().V("delhi_modern_web_player")? this.D:this.Z,(b||this.api.C().V("delhi_modern_web_player"))&&this.adPodIndex!==void 0?f.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adInfoButton!==void 0?b||this.api.C().V("delhi_modern_web_player")?f.insertBefore(this.adDurationRemaining.element,this.adInfoButton.element.nextSibling):this.Z.insertBefore(this.adDurationRemaining.element,this.adInfoButton.element):this.adDurationRemaining.Gv(this.Z),this.adDurationRemaining.init(uI("ad-duration-remaining"), X,this.macros),b&&this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));z.visitAdvertiserLink&&(f=g.K(z.visitAdvertiserLink,S2Y))&&(this.visitAdvertiserLink=new Py(this.api,this.layoutId,this.interactionLoggingClientData,this.dh),g.W(this,this.visitAdvertiserLink),this.visitAdvertiserLink.Gv(this.Z),this.visitAdvertiserLink.init(uI("visit-advertiser-link"),f));z.adDisclosureBanner&&(z=g.K(z.adDisclosureBanner,emB))&&(this.adDisclosureBanner=new rU(this.api,this.layoutId, this.interactionLoggingClientData,this.dh),g.W(this,this.adDisclosureBanner),this.adDisclosureBanner.Gv(this.yl),this.adDisclosureBanner.init(uI("ad-disclosure-banner"),z));this.api.C().V("show_preskip_progress_bar_for_skippable_ads")&&(this.U=new P6(this.api,this.L,L,b),g.W(this,this.U),g.sZ(this.api,this.U.element,4));this.show()}; a5.prototype.clear=function(){this.hide()};g.p(rWZ,tB);g.S=rWZ.prototype; g.S.init=function(Q,z){tB.prototype.init.call(this,Q,z,{});if(z!=null&&z.title)if(Q=z.title)if(this.headline.init(uI("ad-simple-attributed-string"),new NZ(Q)),Q=g.K(z.moreInfoButton,VB)){if(this.moreInfoButton.init(uI("ad-button"),Q),z.descriptions)z.descriptions.length>0&&(Q=z.descriptions[0])&&(this.Z=new IQ(this.api,this.layoutId,this.interactionLoggingClientData,this.dh),g.W(this,this.Z),this.Z.Gv(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.Z.init(uI("ad-simple-attributed-string"), new NZ(Q))),z.descriptions.length>1&&(z=z.descriptions[1])&&(this.B=new IQ(this.api,this.layoutId,this.interactionLoggingClientData,this.dh),g.W(this,this.B),this.B.Gv(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.B.init(uI("ad-simple-attributed-string"),new NZ(z)))}else g.BT(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.BT(Error("No headline found in AdGridCardText."));else g.BT(Error("No headline found in AdGridCardText."))}; g.S.onClick=function(Q){tB.prototype.onClick.call(this,Q);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.S.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var Q;(Q=this.Z)==null||Q.clear();var z;(z=this.B)==null||z.clear()}; g.S.hide=function(){this.headline.hide();this.moreInfoButton.hide();var Q;(Q=this.Z)==null||Q.hide();var z;(z=this.B)==null||z.hide();tB.prototype.hide.call(this)}; g.S.show=function(){tB.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var Q;(Q=this.Z)==null||Q.show();var z;(z=this.B)==null||z.show()};g.p(Up,tB);Up.prototype.init=function(Q,z){tB.prototype.init.call(this,Q,z,{});if(z!=null&&z.gridCards)if(z.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.BT(Error("Only single column style is currently supported in AdGridCardCollection."));else for(Q=g.n(z.gridCards),z=Q.next();!z.done;z=Q.next()){if(z=g.K(z.value,zWL)){var H=new rWZ(this.api,this.layoutId,this.interactionLoggingClientData,this.dh);g.W(this,H);H.Gv(this.element);H.init(uI("ad-grid-card-text"),z);this.Z.push(H)}}else g.BT(Error("No grid cards found in AdGridCardCollection."))}; Up.prototype.show=function(){for(var Q=g.n(this.Z),z=Q.next();!z.done;z=Q.next())z.value.show();tB.prototype.show.call(this)}; Up.prototype.clear=function(){this.hide();for(var Q=g.n(this.Z),z=Q.next();!z.done;z=Q.next())z.value.clear()}; Up.prototype.hide=function(){for(var Q=g.n(this.Z),z=Q.next();!z.done;z=Q.next())z.value.hide();tB.prototype.hide.call(this)};g.p(cy,Rv);g.S=cy.prototype;g.S.init=function(Q,z,H,f,b){b=b===void 0?0:b;Rv.prototype.init.call(this,Q,z,H,f);this.playerProgressOffsetMs=b;Q_(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.Mp.bind(this));this.api.addEventListener("resize",this.MH.bind(this));this.api.Fv()?(this.B=!0,this.api.Pe(!0),this.show()):this.hide()}; g.S.ND=function(){if(this.Z){var Q=this.Z.getProgressState();Q&&Q.current&&!this.B&&1E3*Q.current>=this.playerProgressOffsetMs&&(this.B=!0,this.api.Pe(!0),this.show())}}; g.S.Is=function(){this.B&&this.api.Pe(!1);this.hide()}; g.S.clear=function(){this.api.Pe(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.Mp.bind(this));this.api.removeEventListener("resize",this.MH.bind(this));zS(this);this.hide()}; g.S.hide=function(){sBL(!1);Rv.prototype.hide.call(this)}; g.S.show=function(){sBL(!0);Rv.prototype.show.call(this)};g.p(BOc,cy);g.S=BOc.prototype; g.S.init=function(Q,z,H,f){if(z!=null&&z.adGridCardCollection)if(z!=null&&z.adButton){var b=Number(z.playerProgressOffsetMs||"0");isNaN(b)?cy.prototype.init.call(this,Q,z,H,f):cy.prototype.init.call(this,Q,z,H,f,b);Q=z.headline;H=g.K(z.adAvatar,DB);Q&&H?(this.headline=new IQ(this.api,this.layoutId,this.interactionLoggingClientData,this.dh),g.W(this,this.headline),this.headline.Gv(this.Mc("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(uI("ad-simple-attributed-string"),new NZ(Q)), this.adAvatar=new ru(this.api,this.layoutId,this.interactionLoggingClientData,this.dh),g.W(this,this.adAvatar),this.adAvatar.Gv(this.Mc("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(uI("ad-avatar"),H)):this.D.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");Q=g.K(z.adGridCardCollection,QGu);this.adGridCardCollection.init(uI("ad-grid-card-collection"),Q);z=g.K(z.adButton,VB);this.adButton.init(uI("ad-button"),z); this.hide()}else g.BT(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.BT(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; g.S.onClick=function(Q){(this.adButton&&g.XU(this.adButton.element,Q.target)||this.adAvatar&&g.XU(this.adAvatar.element,Q.target))&&this.api.pauseVideo();cy.prototype.onClick.call(this,Q);this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.S.MH=function(){}; g.S.clear=function(){this.hide();var Q;(Q=this.headline)==null||Q.clear();var z;(z=this.adAvatar)==null||z.clear();this.adGridCardCollection.clear();this.adButton.clear();cy.prototype.clear.call(this)}; g.S.show=function(){var Q;(Q=this.headline)==null||Q.show();var z;(z=this.adAvatar)==null||z.show();this.adGridCardCollection.show();this.adButton.show();cy.prototype.show.call(this)}; g.S.hide=function(){var Q;(Q=this.headline)==null||Q.hide();var z;(z=this.adAvatar)==null||z.hide();this.adGridCardCollection.hide();this.adButton.hide();cy.prototype.hide.call(this)}; g.S.Mp=function(Q){Q==="transitioning"?(this.L.classList.remove("ytp-ad-underlay-clickable"),this.show()):Q==="visible"?this.L.classList.add("ytp-ad-underlay-clickable"):Q==="hidden"&&(this.hide(),this.L.classList.remove("ytp-ad-underlay-clickable"))};g.p(i7,tB); i7.prototype.init=function(Q,z){tB.prototype.init.call(this,Q,z,{});if(z.attributes===void 0)g.BT(Error("No attributes found in AdDetailsLineViewModel."));else if(z.style===void 0)g.BT(Error("No style found in AdDetailsLineViewModel."));else{Q=g.n(z.attributes);for(var H=Q.next();!H.done;H=Q.next())if(H=H.value,H.text!==void 0){H=H.text;var f=z.style,b=new IQ(this.api,this.layoutId,this.interactionLoggingClientData,this.dh);g.W(this,b);b.Gv(this.element);a:switch(f){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":f="ytp-ad-details-line__text--style-responsive"; break a;default:f="ytp-ad-details-line__text--style-standard"}b.element.classList.add(f);b.init(uI("ad-simple-attributed-string"),new NZ(H));this.Z.push(b)}this.show()}}; i7.prototype.show=function(){this.Z.forEach(function(Q){Q.show()}); tB.prototype.show.call(this)}; i7.prototype.clear=function(){this.hide()}; i7.prototype.hide=function(){this.Z.forEach(function(Q){Q.hide()}); tB.prototype.hide.call(this)};g.p(ho,tB);ho.prototype.init=function(Q,z){tB.prototype.init.call(this,Q,z,{});var H,f;(Q=((f=Ol(((H=z.image)==null?void 0:H.sources)||[]))==null?void 0:f.url)||"")&&Q.length?(H=this.Mc("ytp-image-background-image"),g.q2(H,"backgroundImage","url("+Q+")"),z.blurLevel!==void 0&&g.q2(H,"filter","blur("+z.blurLevel+"px)"),z.gradient!==void 0&&(z=new g.m({G:"div",lT:["ytp-image-background--gradient-vertical"]}),g.W(this,z),z.Gv(this.element)),this.show()):g.BT(Error("Failed to get imageUrl in ImageBackground."))}; ho.prototype.clear=function(){this.hide()};g.p(PP6,Rv);g.S=PP6.prototype;g.S.init=function(Q,z){Rv.prototype.init.call(this,Q,z,{});g.q2(this.L,"stroke-dasharray","0 "+this.B);this.show()}; g.S.clear=function(){this.hide()}; g.S.hide=function(){zS(this);Rv.prototype.hide.call(this)}; g.S.show=function(){Q_(this);Rv.prototype.show.call(this)}; g.S.Is=function(){this.hide()}; g.S.ND=function(){if(this.Z){var Q=this.Z.getProgressState();Q!=null&&Q.current!=null&&g.q2(this.L,"stroke-dasharray",Q.current/Q.seekableEnd*this.B+" "+this.B)}};g.p(Wy,tB); Wy.prototype.init=function(Q,z){tB.prototype.init.call(this,Q,z,{});if(Uyu(z)){this.adAvatar=new ru(this.api,this.layoutId,this.interactionLoggingClientData,this.dh);g.W(this,this.adAvatar);this.adAvatar.Gv(this.Mc("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(uI("ad-avatar"),g.K(z.adAvatar,DB));this.headline=new IQ(this.api,this.layoutId,this.interactionLoggingClientData,this.dh);g.W(this,this.headline);this.headline.Gv(this.Mc("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(uI("ad-simple-attributed-string"),new NZ(z.headline));if(Q=g.K(z.adDetailsLine,TJY))this.detailsLine=new i7(this.api,this.layoutId,this.interactionLoggingClientData,this.dh),g.W(this,this.detailsLine),this.detailsLine.Gv(this.Mc("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(uI("ad-details-line"),Q);this.adButton=new sp(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,!0);g.W(this,this.adButton); this.adButton.Gv(this.Mc("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(uI("ad-button"),g.K(z.adButton,VB));this.adBadge=new AT(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,!0);g.W(this,this.adBadge);this.adBadge.Gv(this.D);this.adBadge.init(uI("ad-badge"),g.K(z.adBadge,K0));this.adInfoButton=new T8(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,this.element,void 0,!0);g.W(this,this.adInfoButton);this.adInfoButton.Gv(this.D); this.adInfoButton.init(uI("ad-info-hover-text-button"),g.K(z.adInfoRenderer,rg),this.macros);if(Q=g.K(z.skipAdButton,brm))this.skipAdButton=new By(this.api,this.layoutId,this.interactionLoggingClientData,this.dh),g.W(this,this.skipAdButton),this.skipAdButton.Gv(this.element),this.skipAdButton.init(uI("skip-button"),Q);this.B=new FS(z.durationMilliseconds);g.W(this,this.B);if(Q=g.K(z.countdownViewModel,ukx))this.Z=new PP6(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,this.B),g.W(this, this.Z),this.Z.Gv(this.Mc("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.Z.init(uI("timed-pie-countdown"),Q);if(z=g.K(z.imageBackground,Rms))this.imageBackground=new ho(this.api,this.layoutId,this.interactionLoggingClientData,this.dh),g.W(this,this.imageBackground),this.imageBackground.Gv(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init(uI("image-background"), z);this.show();this.element.focus()}}; Wy.prototype.clear=function(){g.Aq(this.L);this.hide()}; Wy.prototype.show=function(){aG6(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();tB.prototype.show.call(this)}; Wy.prototype.hide=function(){aG6(!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.Z&&this.Z.hide();this.imageBackground&&this.imageBackground.hide();tB.prototype.hide.call(this)};var BqJ="ad-attribution-bar ad-channel-thumbnail advertiser-name ad-preview ad-title skip-button visit-advertiser".split(" ").concat("shopping-companion action-companion image-companion ads-engagement-panel ads-engagement-panel-layout banner-image top-banner-image-text-icon-buttoned".split(" "));g.p(du,VR); du.prototype.D=function(Q){var z=Q.id,H=Q.content,f=H.componentType;if(!BqJ.includes(f))switch(Q.actionType){case 1:Q=this.api;var b=this.dh,L=H.layoutId,u=H.interactionLoggingClientData,X=H instanceof wP?H.uP:!1,v=H instanceof wP||H instanceof $U?H.EH:!1;u=u===void 0?{}:u;X=X===void 0?!1:X;v=v===void 0?!1:v;switch(f){case "invideo-overlay":Q=new zD_(Q,L,u,b);break;case "player-overlay":Q=new aQ(Q,L,u,b,new kb(Q),v);break;case "player-overlay-layout":Q=new a5(Q,L,u,b,new kb(Q));break;case "survey":Q= new I5(Q,L,u,b);break;case "ad-action-interstitial":Q=new T_J(Q,L,u,b,X,v);break;case "video-interstitial-buttoned-centered":Q=new Wy(Q,L,u,b);break;case "survey-interstitial":Q=new Ao(Q,L,u,b);break;case "ad-message":Q=new vup(Q,L,u,b,new kb(Q,1));break;case "player-underlay":Q=new q_v(Q,L,u,b);break;case "display-underlay-text-grid-cards":Q=new BOc(Q,L,u,b,new kb(Q));break;default:Q=null}if(!Q){g.PT(Error("No UI component returned from ComponentFactory for type: "+f));break}g.Nz(this.B,z)?g.PT(Error("Ad UI component already registered: "+ z)):this.B[z]=Q;Q.bind(H);H instanceof dP?this.L?this.L.append(Q.Bg):g.PT(Error("Underlay view was not created but UnderlayRenderer was created")):this.S.append(Q.Bg);break;case 2:z=cW9(this,Q);if(z==null)break;z.bind(H);break;case 3:H=cW9(this,Q),H!=null&&(g.S5(H),g.Nz(this.B,z)?(H=this.B,z in H&&delete H[z]):g.PT(Error("Ad UI component does not exist: "+z)))}}; du.prototype.zv=function(){g.Xx(Object.values(this.B));this.B={};VR.prototype.zv.call(this)};g.p(ibY,g.g3);g.S=ibY.prototype;g.S.create=function(){try{hD6(this),this.load(),this.created=!0,hD6(this)}catch(Q){MZ(Q instanceof Error?Q:String(Q))}}; g.S.load=function(){try{KKn(this)}finally{TD($5(this.Z).GO)&&this.player.PS("ad",1)}}; g.S.destroy=function(){var Q=this.player.getVideoData(1);this.Z.Z.rg.Qa(Q&&Q.clientPlaybackNonce||"");this.unload();this.created=!1}; g.S.unload=function(){g.g3.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(z){MZ(z instanceof Error?z:String(z))}if(this.B!=null){var Q=this.B;this.B=null;Q.dispose()}this.L.reset()}; g.S.Ti=function(){return!1}; g.S.getAdState=function(){return-1}; g.S.getOptions=function(){return Object.values(s0J)}; g.S.TZ=function(Q,z){z=z===void 0?{}:z;switch(Q){case "replaceUrlMacros":return Q=z,Q.url?(z=SG6(this.player),Object.assign(z,Q.YJv),Q=g.YW(Q.url,z)):Q=null,Q;case "onAboutThisAdPopupClosed":this.iz(z);break;case "executeCommand":Q=z;Q.command&&Q.layoutId&&this.executeCommand(Q);break;default:return null}}; g.S.Q6=function(Q){var z;return!((z=this.Z.Z.u8)==null||!z.get().Q6(Q))}; g.S.iz=function(Q){Q.isMuted&&pTa($5(this.Z).EG,$5(this.Z).wi,Q.layoutId);this.G0&&this.G0.iz()}; g.S.executeCommand=function(Q){$5(this.Z).dh.executeCommand(Q.command,Q.layoutId)};g.W_("yt.player.Application.create",g.gQ.create);g.W_("yt.player.Application.createAlternate",g.gQ.create);VsJ(Al(),rcO);var Prt=g.D6("ytcsi.tick");Prt&&Prt("pe");g.nA("ad",ibY);g.p(g.k5,g.h);g.k5.prototype.start=function(Q,z,H){this.config={from:Q,ac:z,duration:H,startTime:(0,g.NV)()};this.next()}; g.k5.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.k5.prototype.next=function(){if(this.config){var Q=this.config,z=Q.from,H=Q.ac,f=Q.duration;Q=Q.startTime;var b=(0,g.NV)()-Q;Q=this.Z;f=l5Y(Q,b/f);if(f==0)Q=Q.Y;else if(f==1)Q=Q.N;else{b=CC(Q.Y,Q.S,f);var L=CC(Q.S,Q.j,f);Q=CC(Q.j,Q.N,f);b=CC(b,L,f);L=CC(L,Q,f);Q=CC(b,L,f)}Q=g.v3(Q,0,1);this.callback(z+(H-z)*Q);Q<1&&this.delay.start()}};g.p(g.Tm,g.m);g.S=g.Tm.prototype;g.S.hasSuggestions=function(){return this.suggestionData.length>0}; g.S.WH=function(){this.B&&this.scrollTo(this.scrollPosition-this.containerWidth)}; g.S.show=function(){g.m.prototype.show.call(this);TOA(this)}; g.S.Tu=function(){this.B&&this.scrollTo(this.scrollPosition+this.containerWidth)}; g.S.oK=function(){this.tZ(this.api.Un().getPlayerSize())}; g.S.tZ=function(Q){var z=this.api.isEmbedsShortsMode()?.5625:16/9,H=this.api.iW();Q=Q.width-(H?112:58);H=Math.ceil(Q/(H?320:192));var f=(Q-H*8)/H;z=Math.floor(f/z);for(var b=g.n(this.Z),L=b.next();!L.done;L=b.next())L=L.value.Mc("ytp-suggestion-image"),L.style.width=f+"px",L.style.height=z+"px";this.suggestions.element.style.height=z+"px";this.D=f;this.N=z;this.containerWidth=Q;this.columns=H;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.e6(this)}; g.S.onVideoDataChange=function(){var Q=this.api.C(),z=this.api.getVideoData();this.j=z.gV?!1:Q.D;this.suggestionData=z.suggestions?g.yP(z.suggestions,function(H){return H&&!H.playlistId}):[]; lGA(this);z.gV?this.title.update({title:g.EB("More videos from $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:z.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"More Shorts":"More videos"})}; g.S.scrollTo=function(Q){Q=g.v3(Q,this.containerWidth-this.suggestionData.length*(this.D+8),0);this.Y.start(this.scrollPosition,Q,1E3);this.scrollPosition=Q;g.e6(this);TOA(this)};})(_yt_player);